diff --git a/AdelaiDet/.gitignore b/AdelaiDet/.gitignore new file mode 100755 index 0000000..4948818 --- /dev/null +++ b/AdelaiDet/.gitignore @@ -0,0 +1,57 @@ +# output dir +output +instant_test_output +inference_test_output + + +*.jpg +*.png +*.txt + +# compilation and distribution +__pycache__ +_ext +*.pyc +*.so +AdelaiDet.egg-info/ +build/ +dist/ + +# pytorch/python/numpy formats +*.pth +*.pkl +*.npy + +# ipython/jupyter notebooks +*.ipynb +**/.ipynb_checkpoints/ + +# Editor temporaries +*.swn +*.swo +*.swp +*~ + +# Pycharm editor settings +.idea +.vscode +.python-version + +# project dirs +/datasets/coco +/datasets/lvis +/datasets/pic +/datasets/ytvos +/models +/demo_outputs +/example_inputs +/debug +/weights +/export +eval.sh + +demo/performance.py +demo/demo2.py +train.sh +benchmark.sh +script \ No newline at end of file diff --git a/AdelaiDet/LICENSE b/AdelaiDet/LICENSE new file mode 100755 index 0000000..ce9f162 --- /dev/null +++ b/AdelaiDet/LICENSE @@ -0,0 +1,26 @@ +AdelaiDet for non-commercial purposes +(For commercial use, contact chhshen@gmail.com for obtaining a commerical license.) + +Copyright (c) 2019 the authors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/AdelaiDet/MODEL_ZOO.md b/AdelaiDet/MODEL_ZOO.md new file mode 100755 index 0000000..66c542f --- /dev/null +++ b/AdelaiDet/MODEL_ZOO.md @@ -0,0 +1,44 @@ +# AdelaiDet Model Zoo and Baselines + +## Introduction +This file documents a collection of models trained with AdelaiDet in Nov, 2019. + +## Models + +The inference time is measured on one 1080Ti based on the most recent commit on Detectron2 ([ffff8ac](https://github.com/facebookresearch/detectron2/commit/ffff8acc35ea88ad1cb1806ab0f00b4c1c5dbfd9)). + +More models will be released soon. Stay tuned. + +### COCO Object Detecton Baselines with FCOS + +Name | box AP | download +--- |:---:|:---: +[FCOS_R_50_1x](configs/FCOS-Detection/R_50_1x.yaml) | 38.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/glqFc13cCoEyHYy/download) + +### COCO Instance Segmentation Baselines with [BlendMask](https://arxiv.org/abs/2001.00309) + +Model | Name |inference time (ms/im) | box AP | mask AP | download +--- |:---:|:---:|:---:|:---:|:---: +Mask R-CNN | [550_R_50_3x](configs/RCNN/550_R_50_FPN_3x.yaml) | 63 | 39.1 | 35.3 | +BlendMask | [550_R_50_3x](configs/BlendMask/550_R_50_3x.yaml) | 36 | 38.7 | 34.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/R3Qintf7N8UCiIt/download) +Mask R-CNN | [R_50_1x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml) | 80 | 38.6 | 35.2 | +BlendMask | [R_50_1x](configs/BlendMask/R_50_1x.yaml) | 73 | 39.9 | 35.8 | [model](https://cloudstor.aarnet.edu.au/plus/s/zoxXPnr6Hw3OJgK/download) +Mask R-CNN | [R_50_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml) | 80 | 41.0 | 37.2 | +BlendMask | [R_50_3x](configs/BlendMask/R_50_3x.yaml) | 74 | 42.7 | 37.8 | [model](https://cloudstor.aarnet.edu.au/plus/s/ZnaInHFEKst6mvg/download) +Mask R-CNN | [R_101_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml) | 100 | 42.9 | 38.6 | +BlendMask | [R_101_3x](configs/BlendMask/R_101_3x.yaml) | 94 | 44.8 | 39.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/e4fXrliAcMtyEBy/download) +BlendMask | [R_101_dcni3_5x](configs/BlendMask/R_101_dcni3_5x.yaml) | 105 | 46.8 | 41.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/vbnKnQtaGlw8TKv/download) + +### COCO Panoptic Segmentation Baselines with BlendMask +Model | Name | PQ | PQTh | PQSt | download +--- |:---:|:---:|:---:|:---:|:---: +Panoptic FPN | [R_50_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml) | 41.5 | 48.3 | 31.2 | +BlendMask | [R_50_3x](configs/BlendMask/Panoptic/R_50_3x.yaml) | 42.5 | 49.5 | 32.0 | [model](https://cloudstor.aarnet.edu.au/plus/s/oDgi0826JOJXCr5/download) +Panoptic FPN | [R_101_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/panoptic_fpn_R_101_3x.yaml) | 43.0 | 49.7 | 32.9 | +BlendMask | [R_101_3x](configs/BlendMask/Panoptic/R_101_3x.yaml) | 44.3 | 51.6 | 33.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/u6gZwj06MWDEkYe/download) +BlendMask | [R_101_dcni3_5x](configs/BlendMask/Panoptic/R_101_dcni3_5x.yaml) | 46.0 | 52.9 | 35.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/Jwp41WEzDdrhWsN/download) + +### Person in Context with BlendMask +Model | Name | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +BlendMask | [R_50_1x](configs/BlendMask/Person/R_50_1x.yaml) | 70.6 | 66.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/nvpcKTFA5fsagc0/download) \ No newline at end of file diff --git a/AdelaiDet/README.md b/AdelaiDet/README.md new file mode 100755 index 0000000..5125704 --- /dev/null +++ b/AdelaiDet/README.md @@ -0,0 +1,281 @@ +
+ +
+ +# AdelaiDet + +AdelaiDet is an open source toolbox for multiple instance-level recognition tasks on top of [Detectron2](https://github.com/facebookresearch/detectron2). +All instance-level recognition works from our group are open-sourced here. + +To date, AdelaiDet implements the following algorithms: + +* [FCOS](configs/FCOS-Detection/README.md) +* [BlendMask](configs/BlendMask/README.md) +* [MEInst](configs/MEInst-InstanceSegmentation/README.md) +* [ABCNet](configs/BAText/README.md) +* [ABCNetv2](configs/BAText#quick-start-abcnetv2) +* [CondInst](configs/CondInst/README.md) +* [SOLO](https://arxiv.org/abs/1912.04488) ([mmdet version](https://github.com/WXinlong/SOLO)) +* [SOLOv2](configs/SOLOv2/README.md) +* [BoxInst](configs/BoxInst/README.md) ([video demo](https://www.youtube.com/watch?v=NuF8NAYf5L8)) +* [DenseCL](configs/DenseCL/README.md) +* [FCPose](configs/FCPose/README.md) +* [DirectPose](https://arxiv.org/abs/1911.07451) _to be released_ + + + +## Models +### COCO Object Detecton Baselines with [FCOS](https://arxiv.org/abs/1904.01355) +Name | inf. time | box AP | download +--- |:---:|:---:|:--- +[FCOS_R_50_1x](configs/FCOS-Detection/R_50_1x.yaml) | 16 FPS | 38.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/glqFc13cCoEyHYy/download) +[FCOS_MS_R_101_2x](configs/FCOS-Detection/MS_R_101_2x.yaml) | 12 FPS | 43.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/M3UOT6JcyHy2QW1/download) +[FCOS_MS_X_101_32x8d_2x](configs/FCOS-Detection/MS_X_101_32x8d_2x.yaml) | 6.6 FPS | 43.9 | [model](https://cloudstor.aarnet.edu.au/plus/s/R7H00WeWKZG45pP/download) +[FCOS_MS_X_101_32x8d_dcnv2_2x](configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2.yaml) | 4.6 FPS | 46.6 | [model](https://cloudstor.aarnet.edu.au/plus/s/TDsnYK8OXDTrafF/download) +[FCOS_RT_MS_DLA_34_4x_shtw](configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers.yaml) | 52 FPS | 39.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/4vc3XwQezyhNvnB/download) + +More models can be found in FCOS [README.md](configs/FCOS-Detection/README.md). + +### COCO Instance Segmentation Baselines with [BlendMask](https://arxiv.org/abs/2001.00309) + +Model | Name |inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---:|:---: +Mask R-CNN | [R_101_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml) | 10 FPS | 42.9 | 38.6 | +BlendMask | [R_101_3x](configs/BlendMask/R_101_3x.yaml) | 11 FPS | 44.8 | 39.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/e4fXrliAcMtyEBy/download) +BlendMask | [R_101_dcni3_5x](configs/BlendMask/R_101_dcni3_5x.yaml) | 10 FPS | 46.8 | 41.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/vbnKnQtaGlw8TKv/download) + +For more models and information, please refer to BlendMask [README.md](configs/BlendMask/README.md). + +### COCO Instance Segmentation Baselines with [MEInst](https://arxiv.org/abs/2003.11712) + +Name | inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +[MEInst_R_50_3x](https://github.com/aim-uofa/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x.yaml) | 12 FPS | 43.6 | 34.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/1ID0DeuI9JsFQoG/download) + +For more models and information, please refer to MEInst [README.md](configs/MEInst-InstanceSegmentation/README.md). + +### Total_Text results with [ABCNet](configs/BAText/README.md) + +Name | inf. time | e2e-hmean | det-hmean | download +--- |:---------:|:---------:|:---------:|:---: +[v1-totaltext](configs/BAText/TotalText/attn_R_50.yaml) | 11 FPS | 67.1 | 86.0 | [model](https://cloudstor.aarnet.edu.au/plus/s/t2EFYGxNpKPUqhc/download) +[v2-totaltext](configs/BAText/TotalText/v2_attn_R_50.yaml) | 7.7 FPS | 71.8 | 87.2 | [model](https://drive.google.com/file/d/1jR5-A-7ITvjdSx3kWVE9bMgh_biMsqcR/view?usp=sharing) + +For more models and information, please refer to ABCNet [README.md](configs/BAText/README.md). + +### COCO Instance Segmentation Baselines with [CondInst](https://arxiv.org/abs/2003.05664) + +Name | inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +[CondInst_MS_R_50_1x](configs/CondInst/MS_R_50_1x.yaml) | 14 FPS | 39.7 | 35.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/Trx1r4tLJja7sLT/download) +[CondInst_MS_R_50_BiFPN_3x_sem](configs/CondInst/MS_R_50_BiFPN_3x_sem.yaml) | 13 FPS | 44.7 | 39.4 | [model](https://cloudstor.aarnet.edu.au/plus/s/9cAHjZtdaAGnb2Q/download) +[CondInst_MS_R_101_3x](configs/CondInst/MS_R_101_3x.yaml) | 11 FPS | 43.3 | 38.6 | [model](https://cloudstor.aarnet.edu.au/plus/s/vWLiYm8OnrTSUD2/download) +[CondInst_MS_R_101_BiFPN_3x_sem](configs/CondInst/MS_R_101_BiFPN_3x_sem.yaml) | 10 FPS | 45.7 | 40.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/2p1ashxl54Su8vv/download) + +For more models and information, please refer to CondInst [README.md](configs/CondInst/README.md). + +Note that: +- Inference time for all projects is measured on a NVIDIA 1080Ti with batch size 1. +- APs are evaluated on COCO2017 val split unless specified. + + +## Installation + +First install Detectron2 following the official guide: [INSTALL.md](https://github.com/facebookresearch/detectron2/blob/master/INSTALL.md). + +*Please use Detectron2 with commit id [9eb4831](https://github.com/facebookresearch/detectron2/commit/9eb4831f742ae6a13b8edb61d07b619392fb6543) if you have any issues related to Detectron2.* + +Then build AdelaiDet with: + +``` +git clone https://github.com/aim-uofa/AdelaiDet.git +cd AdelaiDet +python setup.py build develop +``` + +If you are using docker, a pre-built image can be pulled with: + +``` +docker pull tianzhi0549/adet:latest +``` + +Some projects may require special setup, please follow their own `README.md` in [configs](configs). + +## Quick Start + +### Inference with Pre-trained Models + +1. Pick a model and its config file, for example, `fcos_R_50_1x.yaml`. +2. Download the model `wget https://cloudstor.aarnet.edu.au/plus/s/glqFc13cCoEyHYy/download -O fcos_R_50_1x.pth` +3. Run the demo with +``` +python demo/demo.py \ + --config-file configs/FCOS-Detection/R_50_1x.yaml \ + --input input1.jpg input2.jpg \ + --opts MODEL.WEIGHTS fcos_R_50_1x.pth +``` + +### Train Your Own Models + +To train a model with "train_net.py", first +setup the corresponding datasets following +[datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md), +then run: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/FCOS-Detection/R_50_1x.yaml \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/fcos_R_50_1x +``` +To evaluate the model after training, run: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/FCOS-Detection/R_50_1x.yaml \ + --eval-only \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/fcos_R_50_1x \ + MODEL.WEIGHTS training_dir/fcos_R_50_1x/model_final.pth +``` +Note that: +- The configs are made for 8-GPU training. To train on another number of GPUs, change the `--num-gpus`. +- If you want to measure the inference time, please change `--num-gpus` to 1. +- We set `OMP_NUM_THREADS=1` by default, which achieves the best speed on our machines, please change it as needed. +- This quick start is made for FCOS. If you are using other projects, please check the projects' own `README.md` in [configs](configs). + + +## Acknowledgements + +The authors are grateful to +Nvidia, Huawei Noah's Ark Lab, ByteDance, Adobe who generously donated GPU computing in the past a few years. + +## Citing AdelaiDet + +If you use this toolbox in your research or wish to refer to the baseline results published here, please use the following BibTeX entries: + +```BibTeX + +@misc{tian2019adelaidet, + author = {Tian, Zhi and Chen, Hao and Wang, Xinlong and Liu, Yuliang and Shen, Chunhua}, + title = {{AdelaiDet}: A Toolbox for Instance-level Recognition Tasks}, + howpublished = {\url{https://git.io/adelaidet}}, + year = {2019} +} +``` +and relevant publications: +```BibTeX + +@inproceedings{tian2019fcos, + title = {{FCOS}: Fully Convolutional One-Stage Object Detection}, + author = {Tian, Zhi and Shen, Chunhua and Chen, Hao and He, Tong}, + booktitle = {Proc. Int. Conf. Computer Vision (ICCV)}, + year = {2019} +} + +@article{tian2021fcos, + title = {{FCOS}: A Simple and Strong Anchor-free Object Detector}, + author = {Tian, Zhi and Shen, Chunhua and Chen, Hao and He, Tong}, + journal = {IEEE T. Pattern Analysis and Machine Intelligence (TPAMI)}, + year = {2021} +} + +@inproceedings{chen2020blendmask, + title = {{BlendMask}: Top-Down Meets Bottom-Up for Instance Segmentation}, + author = {Chen, Hao and Sun, Kunyang and Tian, Zhi and Shen, Chunhua and Huang, Yongming and Yan, Youliang}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2020} +} + +@inproceedings{zhang2020MEInst, + title = {Mask Encoding for Single Shot Instance Segmentation}, + author = {Zhang, Rufeng and Tian, Zhi and Shen, Chunhua and You, Mingyu and Yan, Youliang}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2020} +} + +@inproceedings{liu2020abcnet, + title = {{ABCNet}: Real-time Scene Text Spotting with Adaptive {B}ezier-Curve Network}, + author = {Liu, Yuliang and Chen, Hao and Shen, Chunhua and He, Tong and Jin, Lianwen and Wang, Liangwei}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2020} +} + +@ARTICLE{9525302, + author={Liu, Yuliang and Shen, Chunhua and Jin, Lianwen and He, Tong and Chen, Peng and Liu, Chongyu and Chen, Hao}, + journal={IEEE Transactions on Pattern Analysis and Machine Intelligence}, + title={ABCNet v2: Adaptive Bezier-Curve Network for Real-time End-to-end Text Spotting}, + year={2021}, + volume={}, + number={}, + pages={1-1}, + doi={10.1109/TPAMI.2021.3107437} +} + +@inproceedings{wang2020solo, + title = {{SOLO}: Segmenting Objects by Locations}, + author = {Wang, Xinlong and Kong, Tao and Shen, Chunhua and Jiang, Yuning and Li, Lei}, + booktitle = {Proc. Eur. Conf. Computer Vision (ECCV)}, + year = {2020} +} + +@inproceedings{wang2020solov2, + title = {{SOLOv2}: Dynamic and Fast Instance Segmentation}, + author = {Wang, Xinlong and Zhang, Rufeng and Kong, Tao and Li, Lei and Shen, Chunhua}, + booktitle = {Proc. Advances in Neural Information Processing Systems (NeurIPS)}, + year = {2020} +} + +@article{wang2021solo, + title = {{SOLO}: A Simple Framework for Instance Segmentation}, + author = {Wang, Xinlong and Zhang, Rufeng and Shen, Chunhua and Kong, Tao and Li, Lei}, + journal = {IEEE T. Pattern Analysis and Machine Intelligence (TPAMI)}, + year = {2021} +} + +@article{tian2019directpose, + title = {{DirectPose}: Direct End-to-End Multi-Person Pose Estimation}, + author = {Tian, Zhi and Chen, Hao and Shen, Chunhua}, + journal = {arXiv preprint arXiv:1911.07451}, + year = {2019} +} + +@inproceedings{tian2020conditional, + title = {Conditional Convolutions for Instance Segmentation}, + author = {Tian, Zhi and Shen, Chunhua and Chen, Hao}, + booktitle = {Proc. Eur. Conf. Computer Vision (ECCV)}, + year = {2020} +} + +@article{CondInst2022Tian, + title = {Instance and Panoptic Segmentation Using Conditional Convolutions}, + author = {Tian, Zhi and Zhang, Bowen and Chen, Hao and Shen, Chunhua}, + journal = {IEEE T. Pattern Analysis and Machine Intelligence (TPAMI)}, + year = {2022} +} + +@inproceedings{tian2021boxinst, + title = {{BoxInst}: High-Performance Instance Segmentation with Box Annotations}, + author = {Tian, Zhi and Shen, Chunhua and Wang, Xinlong and Chen, Hao}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2021} +} + +@inproceedings{wang2021densecl, + title = {Dense Contrastive Learning for Self-Supervised Visual Pre-Training}, + author = {Wang, Xinlong and Zhang, Rufeng and Shen, Chunhua and Kong, Tao and Li, Lei}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2021} +} + +@inproceedings{Mao2021pose, + title = {{FCPose}: Fully Convolutional Multi-Person Pose Estimation With Dynamic Instance-Aware Convolutions}, + author = {Mao, Weian and Tian, Zhi and Wang, Xinlong and Shen, Chunhua}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2021} +} +``` + +## License + +For academic use, this project is licensed under the 2-clause BSD License - see the LICENSE file for details. For commercial use, please contact [Chunhua Shen](mailto:chhshen@gmail.com). diff --git a/AdelaiDet/adet/__init__.py b/AdelaiDet/adet/__init__.py new file mode 100755 index 0000000..8969464 --- /dev/null +++ b/AdelaiDet/adet/__init__.py @@ -0,0 +1,3 @@ +from adet import modeling + +__version__ = "0.1.1" diff --git a/AdelaiDet/adet/checkpoint/__init__.py b/AdelaiDet/adet/checkpoint/__init__.py new file mode 100755 index 0000000..77c2142 --- /dev/null +++ b/AdelaiDet/adet/checkpoint/__init__.py @@ -0,0 +1,3 @@ +from .adet_checkpoint import AdetCheckpointer + +__all__ = ["AdetCheckpointer"] diff --git a/AdelaiDet/adet/checkpoint/adet_checkpoint.py b/AdelaiDet/adet/checkpoint/adet_checkpoint.py new file mode 100755 index 0000000..6d03b20 --- /dev/null +++ b/AdelaiDet/adet/checkpoint/adet_checkpoint.py @@ -0,0 +1,36 @@ +import pickle, os +from fvcore.common.file_io import PathManager +from detectron2.checkpoint import DetectionCheckpointer + + +class AdetCheckpointer(DetectionCheckpointer): + """ + Same as :class:`DetectronCheckpointer`, but is able to convert models + in AdelaiDet, such as LPF backbone. + """ + def _load_file(self, filename): + if filename.endswith(".pkl"): + with PathManager.open(filename, "rb") as f: + data = pickle.load(f, encoding="latin1") + if "model" in data and "__author__" in data: + # file is in Detectron2 model zoo format + self.logger.info("Reading a file from '{}'".format(data["__author__"])) + return data + else: + # assume file is from Caffe2 / Detectron1 model zoo + if "blobs" in data: + # Detection models have "blobs", but ImageNet models don't + data = data["blobs"] + data = {k: v for k, v in data.items() if not k.endswith("_momentum")} + if "weight_order" in data: + del data["weight_order"] + return {"model": data, "__author__": "Caffe2", "matching_heuristics": True} + + loaded = super()._load_file(filename) # load native pth checkpoint + if "model" not in loaded: + loaded = {"model": loaded} + + basename = os.path.basename(filename).lower() + if "lpf" in basename or "dla" in basename: + loaded["matching_heuristics"] = True + return loaded diff --git a/AdelaiDet/adet/config/__init__.py b/AdelaiDet/adet/config/__init__.py new file mode 100755 index 0000000..be94463 --- /dev/null +++ b/AdelaiDet/adet/config/__init__.py @@ -0,0 +1,5 @@ +from .config import get_cfg + +__all__ = [ + "get_cfg", +] diff --git a/AdelaiDet/adet/config/config.py b/AdelaiDet/adet/config/config.py new file mode 100755 index 0000000..3501d32 --- /dev/null +++ b/AdelaiDet/adet/config/config.py @@ -0,0 +1,13 @@ +from detectron2.config import CfgNode + + +def get_cfg() -> CfgNode: + """ + Get a copy of the default config. + + Returns: + a detectron2 CfgNode instance. + """ + from .defaults import _C + + return _C.clone() diff --git a/AdelaiDet/adet/config/defaults.py b/AdelaiDet/adet/config/defaults.py new file mode 100755 index 0000000..d262079 --- /dev/null +++ b/AdelaiDet/adet/config/defaults.py @@ -0,0 +1,367 @@ +from detectron2.config.defaults import _C +from detectron2.config import CfgNode as CN + + +# ---------------------------------------------------------------------------- # +# Additional Configs +# ---------------------------------------------------------------------------- # +_C.MODEL.MOBILENET = False +_C.MODEL.BACKBONE.ANTI_ALIAS = False +_C.MODEL.RESNETS.DEFORM_INTERVAL = 1 +_C.INPUT.HFLIP_TRAIN = True +_C.INPUT.CROP.CROP_INSTANCE = True +_C.INPUT.IS_ROTATE = False + +# ---------------------------------------------------------------------------- # +# FCOS Head +# ---------------------------------------------------------------------------- # +_C.MODEL.FCOS = CN() + +# This is the number of foreground classes. +_C.MODEL.FCOS.NUM_CLASSES = 80 +_C.MODEL.FCOS.IN_FEATURES = ["p3", "p4", "p5", "p6", "p7"] +_C.MODEL.FCOS.FPN_STRIDES = [8, 16, 32, 64, 128] +_C.MODEL.FCOS.PRIOR_PROB = 0.01 +_C.MODEL.FCOS.INFERENCE_TH_TRAIN = 0.05 +_C.MODEL.FCOS.INFERENCE_TH_TEST = 0.05 +_C.MODEL.FCOS.NMS_TH = 0.6 +_C.MODEL.FCOS.PRE_NMS_TOPK_TRAIN = 1000 +_C.MODEL.FCOS.PRE_NMS_TOPK_TEST = 1000 +_C.MODEL.FCOS.POST_NMS_TOPK_TRAIN = 100 +_C.MODEL.FCOS.POST_NMS_TOPK_TEST = 100 +_C.MODEL.FCOS.TOP_LEVELS = 2 +_C.MODEL.FCOS.NORM = "GN" # Support GN or none +_C.MODEL.FCOS.USE_SCALE = True + +# The options for the quality of box prediction +# It can be "ctrness" (as described in FCOS paper) or "iou" +# Using "iou" here generally has ~0.4 better AP on COCO +# Note that for compatibility, we still use the term "ctrness" in the code +_C.MODEL.FCOS.BOX_QUALITY = "ctrness" + +# Multiply centerness before threshold +# This will affect the final performance by about 0.05 AP but save some time +_C.MODEL.FCOS.THRESH_WITH_CTR = False + +# Focal loss parameters +_C.MODEL.FCOS.LOSS_ALPHA = 0.25 +_C.MODEL.FCOS.LOSS_GAMMA = 2.0 + +# The normalizer of the classification loss +# The normalizer can be "fg" (normalized by the number of the foreground samples), +# "moving_fg" (normalized by the MOVING number of the foreground samples), +# or "all" (normalized by the number of all samples) +_C.MODEL.FCOS.LOSS_NORMALIZER_CLS = "fg" +_C.MODEL.FCOS.LOSS_WEIGHT_CLS = 1.0 + +_C.MODEL.FCOS.SIZES_OF_INTEREST = [64, 128, 256, 512] +_C.MODEL.FCOS.USE_RELU = True +_C.MODEL.FCOS.USE_DEFORMABLE = False + +# the number of convolutions used in the cls and bbox tower +_C.MODEL.FCOS.NUM_CLS_CONVS = 4 +_C.MODEL.FCOS.NUM_BOX_CONVS = 4 +_C.MODEL.FCOS.NUM_SHARE_CONVS = 0 +_C.MODEL.FCOS.CENTER_SAMPLE = True +_C.MODEL.FCOS.POS_RADIUS = 1.5 +_C.MODEL.FCOS.LOC_LOSS_TYPE = 'giou' +_C.MODEL.FCOS.YIELD_PROPOSAL = False +_C.MODEL.FCOS.YIELD_BOX_FEATURES = False + +# ---------------------------------------------------------------------------- # +# VoVNet backbone +# ---------------------------------------------------------------------------- # +_C.MODEL.VOVNET = CN() +_C.MODEL.VOVNET.CONV_BODY = "V-39-eSE" +_C.MODEL.VOVNET.OUT_FEATURES = ["stage2", "stage3", "stage4", "stage5"] + +# Options: FrozenBN, GN, "SyncBN", "BN" +_C.MODEL.VOVNET.NORM = "FrozenBN" +_C.MODEL.VOVNET.OUT_CHANNELS = 256 +_C.MODEL.VOVNET.BACKBONE_OUT_CHANNELS = 256 + +# ---------------------------------------------------------------------------- # +# DLA backbone +# ---------------------------------------------------------------------------- # + +_C.MODEL.DLA = CN() +_C.MODEL.DLA.CONV_BODY = "DLA34" +_C.MODEL.DLA.OUT_FEATURES = ["stage2", "stage3", "stage4", "stage5"] + +# Options: FrozenBN, GN, "SyncBN", "BN" +_C.MODEL.DLA.NORM = "FrozenBN" + +# ---------------------------------------------------------------------------- # +# BAText Options +# ---------------------------------------------------------------------------- # +_C.MODEL.BATEXT = CN() +_C.MODEL.BATEXT.VOC_SIZE = 96 +_C.MODEL.BATEXT.NUM_CHARS = 25 +_C.MODEL.BATEXT.POOLER_RESOLUTION = (8, 32) +_C.MODEL.BATEXT.IN_FEATURES = ["p2", "p3", "p4"] +_C.MODEL.BATEXT.POOLER_SCALES = (0.25, 0.125, 0.0625) +_C.MODEL.BATEXT.SAMPLING_RATIO = 1 +_C.MODEL.BATEXT.CONV_DIM = 256 +_C.MODEL.BATEXT.NUM_CONV = 2 +_C.MODEL.BATEXT.RECOGNITION_LOSS = "ctc" +_C.MODEL.BATEXT.RECOGNIZER = "attn" +_C.MODEL.BATEXT.CANONICAL_SIZE = 96 # largest min_size for level 3 (stride=8) +_C.MODEL.BATEXT.USE_COORDCONV = False +_C.MODEL.BATEXT.USE_AET = False +_C.MODEL.BATEXT.EVAL_TYPE = 3 # 1: G; 2: W; 3: S +_C.MODEL.BATEXT.CUSTOM_DICT = "" # Path to the class file. + +# ---------------------------------------------------------------------------- # +# BlendMask Options +# ---------------------------------------------------------------------------- # +_C.MODEL.BLENDMASK = CN() +_C.MODEL.BLENDMASK.ATTN_SIZE = 14 +_C.MODEL.BLENDMASK.TOP_INTERP = "bilinear" +_C.MODEL.BLENDMASK.BOTTOM_RESOLUTION = 56 +_C.MODEL.BLENDMASK.POOLER_TYPE = "ROIAlignV2" +_C.MODEL.BLENDMASK.POOLER_SAMPLING_RATIO = 1 +_C.MODEL.BLENDMASK.POOLER_SCALES = (0.25,) +_C.MODEL.BLENDMASK.INSTANCE_LOSS_WEIGHT = 1.0 +_C.MODEL.BLENDMASK.VISUALIZE = False + +# ---------------------------------------------------------------------------- # +# Basis Module Options +# ---------------------------------------------------------------------------- # +_C.MODEL.BASIS_MODULE = CN() +_C.MODEL.BASIS_MODULE.NAME = "ProtoNet" +_C.MODEL.BASIS_MODULE.NUM_BASES = 4 +_C.MODEL.BASIS_MODULE.LOSS_ON = False +_C.MODEL.BASIS_MODULE.ANN_SET = "coco" +_C.MODEL.BASIS_MODULE.CONVS_DIM = 128 +_C.MODEL.BASIS_MODULE.IN_FEATURES = ["p3", "p4", "p5"] +_C.MODEL.BASIS_MODULE.NORM = "SyncBN" +_C.MODEL.BASIS_MODULE.NUM_CONVS = 3 +_C.MODEL.BASIS_MODULE.COMMON_STRIDE = 8 +_C.MODEL.BASIS_MODULE.NUM_CLASSES = 80 +_C.MODEL.BASIS_MODULE.LOSS_WEIGHT = 0.3 + +# ---------------------------------------------------------------------------- # +# MEInst Head +# ---------------------------------------------------------------------------- # +_C.MODEL.MEInst = CN() + +# This is the number of foreground classes. +_C.MODEL.MEInst.NUM_CLASSES = 80 +_C.MODEL.MEInst.IN_FEATURES = ["p3", "p4", "p5", "p6", "p7"] +_C.MODEL.MEInst.FPN_STRIDES = [8, 16, 32, 64, 128] +_C.MODEL.MEInst.PRIOR_PROB = 0.01 +_C.MODEL.MEInst.INFERENCE_TH_TRAIN = 0.05 +_C.MODEL.MEInst.INFERENCE_TH_TEST = 0.05 +_C.MODEL.MEInst.NMS_TH = 0.6 +_C.MODEL.MEInst.PRE_NMS_TOPK_TRAIN = 1000 +_C.MODEL.MEInst.PRE_NMS_TOPK_TEST = 1000 +_C.MODEL.MEInst.POST_NMS_TOPK_TRAIN = 100 +_C.MODEL.MEInst.POST_NMS_TOPK_TEST = 100 +_C.MODEL.MEInst.TOP_LEVELS = 2 +_C.MODEL.MEInst.NORM = "GN" # Support GN or none +_C.MODEL.MEInst.USE_SCALE = True + +# Multiply centerness before threshold +# This will affect the final performance by about 0.05 AP but save some time +_C.MODEL.MEInst.THRESH_WITH_CTR = False + +# Focal loss parameters +_C.MODEL.MEInst.LOSS_ALPHA = 0.25 +_C.MODEL.MEInst.LOSS_GAMMA = 2.0 +_C.MODEL.MEInst.SIZES_OF_INTEREST = [64, 128, 256, 512] +_C.MODEL.MEInst.USE_RELU = True +_C.MODEL.MEInst.USE_DEFORMABLE = False +_C.MODEL.MEInst.LAST_DEFORMABLE = False +_C.MODEL.MEInst.TYPE_DEFORMABLE = "DCNv1" # or DCNv2. + +# the number of convolutions used in the cls and bbox tower +_C.MODEL.MEInst.NUM_CLS_CONVS = 4 +_C.MODEL.MEInst.NUM_BOX_CONVS = 4 +_C.MODEL.MEInst.NUM_SHARE_CONVS = 0 +_C.MODEL.MEInst.CENTER_SAMPLE = True +_C.MODEL.MEInst.POS_RADIUS = 1.5 +_C.MODEL.MEInst.LOC_LOSS_TYPE = 'giou' + +# ---------------------------------------------------------------------------- # +# Mask Encoding +# ---------------------------------------------------------------------------- # +# Whether to use mask branch. +_C.MODEL.MEInst.MASK_ON = True +# IOU overlap ratios [IOU_THRESHOLD] +# Overlap threshold for an RoI to be considered background (if < IOU_THRESHOLD) +# Overlap threshold for an RoI to be considered foreground (if >= IOU_THRESHOLD) +_C.MODEL.MEInst.IOU_THRESHOLDS = [0.5] +_C.MODEL.MEInst.IOU_LABELS = [0, 1] +# Whether to use class_agnostic or class_specific. +_C.MODEL.MEInst.AGNOSTIC = True +# Some operations in mask encoding. +_C.MODEL.MEInst.WHITEN = True +_C.MODEL.MEInst.SIGMOID = True + +# The number of convolutions used in the mask tower. +_C.MODEL.MEInst.NUM_MASK_CONVS = 4 + +# The dim of mask before/after mask encoding. +_C.MODEL.MEInst.DIM_MASK = 60 +_C.MODEL.MEInst.MASK_SIZE = 28 +# The default path for parameters of mask encoding. +_C.MODEL.MEInst.PATH_COMPONENTS = "datasets/coco/components/" \ + "coco_2017_train_class_agnosticTrue_whitenTrue_sigmoidTrue_60.npz" +# An indicator for encoding parameters loading during training. +_C.MODEL.MEInst.FLAG_PARAMETERS = False +# The loss for mask branch, can be mse now. +_C.MODEL.MEInst.MASK_LOSS_TYPE = "mse" + +# Whether to use gcn in mask prediction. +# Large Kernel Matters -- https://arxiv.org/abs/1703.02719 +_C.MODEL.MEInst.USE_GCN_IN_MASK = False +_C.MODEL.MEInst.GCN_KERNEL_SIZE = 9 +# Whether to compute loss on original mask (binary mask). +_C.MODEL.MEInst.LOSS_ON_MASK = False + +# ---------------------------------------------------------------------------- # +# CondInst Options +# ---------------------------------------------------------------------------- # +_C.MODEL.CONDINST = CN() + +# the downsampling ratio of the final instance masks to the input image +_C.MODEL.CONDINST.MASK_OUT_STRIDE = 4 +_C.MODEL.CONDINST.BOTTOM_PIXELS_REMOVED = -1 + +# if not -1, we only compute the mask loss for MAX_PROPOSALS random proposals PER GPU +_C.MODEL.CONDINST.MAX_PROPOSALS = -1 +# if not -1, we only compute the mask loss for top `TOPK_PROPOSALS_PER_IM` proposals +# PER IMAGE in terms of their detection scores +_C.MODEL.CONDINST.TOPK_PROPOSALS_PER_IM = -1 + +_C.MODEL.CONDINST.MASK_HEAD = CN() +_C.MODEL.CONDINST.MASK_HEAD.CHANNELS = 8 +_C.MODEL.CONDINST.MASK_HEAD.NUM_LAYERS = 3 +_C.MODEL.CONDINST.MASK_HEAD.USE_FP16 = False +_C.MODEL.CONDINST.MASK_HEAD.DISABLE_REL_COORDS = False + +_C.MODEL.CONDINST.MASK_BRANCH = CN() +_C.MODEL.CONDINST.MASK_BRANCH.OUT_CHANNELS = 8 +_C.MODEL.CONDINST.MASK_BRANCH.IN_FEATURES = ["p3", "p4", "p5"] +_C.MODEL.CONDINST.MASK_BRANCH.CHANNELS = 128 +_C.MODEL.CONDINST.MASK_BRANCH.NORM = "BN" +_C.MODEL.CONDINST.MASK_BRANCH.NUM_CONVS = 4 +_C.MODEL.CONDINST.MASK_BRANCH.SEMANTIC_LOSS_ON = False + +# The options for BoxInst, which can train the instance segmentation model with box annotations only +# Please refer to the paper https://arxiv.org/abs/2012.02310 +_C.MODEL.BOXINST = CN() +# Whether to enable BoxInst +_C.MODEL.BOXINST.ENABLED = False +_C.MODEL.BOXINST.BOTTOM_PIXELS_REMOVED = 10 + +_C.MODEL.BOXINST.PAIRWISE = CN() +_C.MODEL.BOXINST.PAIRWISE.SIZE = 3 +_C.MODEL.BOXINST.PAIRWISE.DILATION = 2 +_C.MODEL.BOXINST.PAIRWISE.WARMUP_ITERS = 10000 +_C.MODEL.BOXINST.PAIRWISE.COLOR_THRESH = 0.3 + +# ---------------------------------------------------------------------------- # +# TOP Module Options +# ---------------------------------------------------------------------------- # +_C.MODEL.TOP_MODULE = CN() +_C.MODEL.TOP_MODULE.NAME = "conv" +_C.MODEL.TOP_MODULE.DIM = 16 + +# ---------------------------------------------------------------------------- # +# BiFPN options +# ---------------------------------------------------------------------------- # + +_C.MODEL.BiFPN = CN() +# Names of the input feature maps to be used by BiFPN +# They must have contiguous power of 2 strides +# e.g., ["res2", "res3", "res4", "res5"] +_C.MODEL.BiFPN.IN_FEATURES = ["res2", "res3", "res4", "res5"] +_C.MODEL.BiFPN.OUT_CHANNELS = 160 +_C.MODEL.BiFPN.NUM_REPEATS = 6 + +# Options: "" (no norm), "GN" +_C.MODEL.BiFPN.NORM = "" + +# ---------------------------------------------------------------------------- # +# SOLOv2 Options +# ---------------------------------------------------------------------------- # +_C.MODEL.SOLOV2 = CN() + +# Instance hyper-parameters +_C.MODEL.SOLOV2.INSTANCE_IN_FEATURES = ["p2", "p3", "p4", "p5", "p6"] +_C.MODEL.SOLOV2.FPN_INSTANCE_STRIDES = [8, 8, 16, 32, 32] +_C.MODEL.SOLOV2.FPN_SCALE_RANGES = ((1, 96), (48, 192), (96, 384), (192, 768), (384, 2048)) +_C.MODEL.SOLOV2.SIGMA = 0.2 +# Channel size for the instance head. +_C.MODEL.SOLOV2.INSTANCE_IN_CHANNELS = 256 +_C.MODEL.SOLOV2.INSTANCE_CHANNELS = 512 +# Convolutions to use in the instance head. +_C.MODEL.SOLOV2.NUM_INSTANCE_CONVS = 4 +_C.MODEL.SOLOV2.USE_DCN_IN_INSTANCE = False +_C.MODEL.SOLOV2.TYPE_DCN = 'DCN' +_C.MODEL.SOLOV2.NUM_GRIDS = [40, 36, 24, 16, 12] +# Number of foreground classes. +_C.MODEL.SOLOV2.NUM_CLASSES = 80 +_C.MODEL.SOLOV2.NUM_KERNELS = 256 +_C.MODEL.SOLOV2.NORM = "GN" +_C.MODEL.SOLOV2.USE_COORD_CONV = True +_C.MODEL.SOLOV2.PRIOR_PROB = 0.01 + +# Mask hyper-parameters. +# Channel size for the mask tower. +_C.MODEL.SOLOV2.MASK_IN_FEATURES = ["p2", "p3", "p4", "p5"] +_C.MODEL.SOLOV2.MASK_IN_CHANNELS = 256 +_C.MODEL.SOLOV2.MASK_CHANNELS = 128 +_C.MODEL.SOLOV2.NUM_MASKS = 256 + +# Test cfg. +_C.MODEL.SOLOV2.NMS_PRE = 500 +_C.MODEL.SOLOV2.SCORE_THR = 0.1 +_C.MODEL.SOLOV2.UPDATE_THR = 0.05 +_C.MODEL.SOLOV2.MASK_THR = 0.5 +_C.MODEL.SOLOV2.MAX_PER_IMG = 100 +# NMS type: matrix OR mask. +_C.MODEL.SOLOV2.NMS_TYPE = "matrix" +# Matrix NMS kernel type: gaussian OR linear. +_C.MODEL.SOLOV2.NMS_KERNEL = "gaussian" +_C.MODEL.SOLOV2.NMS_SIGMA = 2 +# Arguments for PointWSSIS, Weakly Semi-Supervised Instance Segmentation with Point Labels +_C.MODEL.SOLOV2.PROMPT = "none" +_C.MODEL.SOLOV2.EVAL_PSEUDO_LABEL = False + +# Loss cfg. +_C.MODEL.SOLOV2.LOSS = CN() +_C.MODEL.SOLOV2.LOSS.FOCAL_USE_SIGMOID = True +_C.MODEL.SOLOV2.LOSS.FOCAL_ALPHA = 0.25 +_C.MODEL.SOLOV2.LOSS.FOCAL_GAMMA = 2.0 +_C.MODEL.SOLOV2.LOSS.FOCAL_WEIGHT = 1.0 +_C.MODEL.SOLOV2.LOSS.DICE_WEIGHT = 3.0 + + +# ---------------------------------------------------------------------------- # +# FCPose Options +# ---------------------------------------------------------------------------- # +_C.MODEL.FCPOSE = CN() +_C.MODEL.FCPOSE_ON = False +_C.MODEL.FCPOSE.ATTN_LEN = 2737 +_C.MODEL.FCPOSE.DYNAMIC_CHANNELS = 32 +_C.MODEL.FCPOSE.MAX_PROPOSALS = 70 +_C.MODEL.FCPOSE.PROPOSALS_PER_INST = 70 +_C.MODEL.FCPOSE.LOSS_WEIGHT_KEYPOINT = 2.5 +_C.MODEL.FCPOSE.FOCAL_LOSS_ALPHA = 0.25 +_C.MODEL.FCPOSE.FOCAL_LOSS_GAMMA = 2.0 +_C.MODEL.FCPOSE.GT_HEATMAP_STRIDE = 2 +_C.MODEL.FCPOSE.SIGMA = 1 +_C.MODEL.FCPOSE.HEATMAP_SIGMA = 1.8 +_C.MODEL.FCPOSE.HEAD_HEATMAP_SIGMA = 0.01 +_C.MODEL.FCPOSE.DISTANCE_NORM = 12.0 +_C.MODEL.FCPOSE.LOSS_WEIGHT_DIRECTION = 9.0 + +_C.MODEL.FCPOSE.BASIS_MODULE = CN() +_C.MODEL.FCPOSE.BASIS_MODULE.NUM_BASES = 32 +_C.MODEL.FCPOSE.BASIS_MODULE.CONVS_DIM = 128 +_C.MODEL.FCPOSE.BASIS_MODULE.COMMON_STRIDE = 8 +_C.MODEL.FCPOSE.BASIS_MODULE.NUM_CLASSES = 17 +_C.MODEL.FCPOSE.BASIS_MODULE.LOSS_WEIGHT = 0.2 +_C.MODEL.FCPOSE.BASIS_MODULE.BN_TYPE = "SyncBN" \ No newline at end of file diff --git a/AdelaiDet/adet/data/__init__.py b/AdelaiDet/adet/data/__init__.py new file mode 100755 index 0000000..20954f7 --- /dev/null +++ b/AdelaiDet/adet/data/__init__.py @@ -0,0 +1,6 @@ +from . import builtin # ensure the builtin datasets are registered +from .dataset_mapper import DatasetMapperWithBasis +from .fcpose_dataset_mapper import FCPoseDatasetMapper + + +__all__ = ["DatasetMapperWithBasis"] diff --git a/AdelaiDet/adet/data/augmentation.py b/AdelaiDet/adet/data/augmentation.py new file mode 100755 index 0000000..165cab9 --- /dev/null +++ b/AdelaiDet/adet/data/augmentation.py @@ -0,0 +1,110 @@ +import random + +import numpy as np +from fvcore.transforms import transform as T + +from detectron2.data.transforms import RandomCrop, StandardAugInput +from detectron2.structures import BoxMode + + +def gen_crop_transform_with_instance(crop_size, image_size, instances, crop_box=True): + """ + Generate a CropTransform so that the cropping region contains + the center of the given instance. + + Args: + crop_size (tuple): h, w in pixels + image_size (tuple): h, w + instance (dict): an annotation dict of one instance, in Detectron2's + dataset format. + """ + bbox = random.choice(instances) + bbox[::2] = np.clip(bbox[::2], 0, image_size[1]) + bbox[1::2] = np.clip(bbox[1::2], 0, image_size[0]) + crop_size = np.asarray(crop_size, dtype=np.int32) + center_yx = (bbox[1] + bbox[3]) * 0.5, (bbox[0] + bbox[2]) * 0.5 + assert ( + image_size[0] >= center_yx[0] and image_size[1] >= center_yx[1] + ), "The annotation bounding box is outside of the image!" + assert ( + image_size[0] >= crop_size[0] and image_size[1] >= crop_size[1] + ), "Crop size is larger than image size!" + + min_yx = np.maximum(np.floor(center_yx).astype(np.int32) - crop_size, 0) + max_yx = np.maximum(np.asarray(image_size, dtype=np.int32) - crop_size, 0) + max_yx = np.minimum(max_yx, np.ceil(center_yx).astype(np.int32)) + + y0 = np.random.randint(min_yx[0], max_yx[0] + 1) + x0 = np.random.randint(min_yx[1], max_yx[1] + 1) + + # if some instance is cropped extend the box + if not crop_box: + num_modifications = 0 + modified = True + + # convert crop_size to float + crop_size = crop_size.astype(np.float32) + while modified: + modified, x0, y0, crop_size = adjust_crop(x0, y0, crop_size, instances) + num_modifications += 1 + if num_modifications > 100: + raise ValueError( + "Cannot finished cropping adjustment within 100 tries (#instances {}).".format( + len(instances) + ) + ) + return T.CropTransform(0, 0, image_size[1], image_size[0]) + + return T.CropTransform(*map(int, (x0, y0, crop_size[1], crop_size[0]))) + + +def adjust_crop(x0, y0, crop_size, instances, eps=1e-3): + modified = False + + x1 = x0 + crop_size[1] + y1 = y0 + crop_size[0] + + for bbox in instances: + + if bbox[0] < x0 - eps and bbox[2] > x0 + eps: + crop_size[1] += x0 - bbox[0] + x0 = bbox[0] + modified = True + + if bbox[0] < x1 - eps and bbox[2] > x1 + eps: + crop_size[1] += bbox[2] - x1 + x1 = bbox[2] + modified = True + + if bbox[1] < y0 - eps and bbox[3] > y0 + eps: + crop_size[0] += y0 - bbox[1] + y0 = bbox[1] + modified = True + + if bbox[1] < y1 - eps and bbox[3] > y1 + eps: + crop_size[0] += bbox[3] - y1 + y1 = bbox[3] + modified = True + + return modified, x0, y0, crop_size + + +class RandomCropWithInstance(RandomCrop): + """ Instance-aware cropping. + """ + + def __init__(self, crop_type, crop_size, crop_instance=True): + """ + Args: + crop_instance (bool): if False, extend cropping boxes to avoid cropping instances + """ + super().__init__(crop_type, crop_size) + self.crop_instance = crop_instance + self.input_args = ("image", "boxes") + + def get_transform(self, img, boxes): + image_size = img.shape[:2] + crop_size = self.get_crop_size(image_size) + return gen_crop_transform_with_instance( + crop_size, image_size, boxes, crop_box=self.crop_instance + ) diff --git a/AdelaiDet/adet/data/builtin.py b/AdelaiDet/adet/data/builtin.py new file mode 100755 index 0000000..e7ecc92 --- /dev/null +++ b/AdelaiDet/adet/data/builtin.py @@ -0,0 +1,62 @@ +import os + +from detectron2.data.datasets.register_coco import register_coco_instances +from detectron2.data.datasets.builtin_meta import _get_builtin_metadata + +from .datasets.text import register_text_instances + +# register plane reconstruction + +_PREDEFINED_SPLITS_PIC = { + "pic_person_train": ("pic/image/train", "pic/annotations/train_person.json"), + "pic_person_val": ("pic/image/val", "pic/annotations/val_person.json"), +} + +metadata_pic = { + "thing_classes": ["person"] +} + +_PREDEFINED_SPLITS_TEXT = { + "totaltext_train": ("totaltext/train_images", "totaltext/train.json"), + "totaltext_val": ("totaltext/test_images", "totaltext/test.json"), + "ctw1500_word_train": ("CTW1500/ctwtrain_text_image", "CTW1500/annotations/train_ctw1500_maxlen100_v2.json"), + "ctw1500_word_test": ("CTW1500/ctwtest_text_image","CTW1500/annotations/test_ctw1500_maxlen100.json"), + "syntext1_train": ("syntext1/images", "syntext1/annotations/train.json"), + "syntext2_train": ("syntext2/images", "syntext2/annotations/train.json"), + "mltbezier_word_train": ("mlt2017/images","mlt2017/annotations/train.json"), + "rects_train": ("ReCTS/ReCTS_train_images", "ReCTS/annotations/rects_train.json"), + "rects_val": ("ReCTS/ReCTS_val_images", "ReCTS/annotations/rects_val.json"), + "rects_test": ("ReCTS/ReCTS_test_images", "ReCTS/annotations/rects_test.json"), + "art_train": ("ArT/rename_artimg_train", "ArT/annotations/abcnet_art_train.json"), + "lsvt_train": ("LSVT/rename_lsvtimg_train", "LSVT/annotations/abcnet_lsvt_train.json"), + "chnsyn_train": ("ChnSyn/syn_130k_images", "ChnSyn/annotations/chn_syntext.json"), + "icdar2013_train": ("icdar2013/train_images", "icdar2013/ic13_train.json"), + "icdar2015_train": ("icdar2015/train_images", "icdar2015/ic15_train.json"), + "icdar2015_test": ("icdar2015/test_images", "icdar2015/ic15_test.json"), +} + +metadata_text = { + "thing_classes": ["text"] +} + + +def register_all_coco(root="datasets"): + for key, (image_root, json_file) in _PREDEFINED_SPLITS_PIC.items(): + # Assume pre-defined datasets live in `./datasets`. + register_coco_instances( + key, + metadata_pic, + os.path.join(root, json_file) if "://" not in json_file else json_file, + os.path.join(root, image_root), + ) + for key, (image_root, json_file) in _PREDEFINED_SPLITS_TEXT.items(): + # Assume pre-defined datasets live in `./datasets`. + register_text_instances( + key, + metadata_text, + os.path.join(root, json_file) if "://" not in json_file else json_file, + os.path.join(root, image_root), + ) + + +register_all_coco() diff --git a/AdelaiDet/adet/data/dataset_mapper.py b/AdelaiDet/adet/data/dataset_mapper.py new file mode 100755 index 0000000..31f9fb2 --- /dev/null +++ b/AdelaiDet/adet/data/dataset_mapper.py @@ -0,0 +1,237 @@ +import copy +import logging +import os.path as osp + +import numpy as np +import torch +from fvcore.common.file_io import PathManager +from PIL import Image +from pycocotools import mask as maskUtils + +from detectron2.data import detection_utils as utils +from detectron2.data import transforms as T +from detectron2.data.dataset_mapper import DatasetMapper +from detectron2.data.detection_utils import SizeMismatchError +from detectron2.structures import BoxMode + +from .augmentation import RandomCropWithInstance +from .detection_utils import (annotations_to_instances, build_augmentation, + transform_instance_annotations) + +""" +This file contains the default mapping that's applied to "dataset dicts". +""" + +__all__ = ["DatasetMapperWithBasis"] + +logger = logging.getLogger(__name__) + + +def segmToRLE(segm, img_size): + h, w = img_size + if type(segm) == list: + # polygon -- a single object might consist of multiple parts + # we merge all parts into one mask rle code + rles = maskUtils.frPyObjects(segm, h, w) + rle = maskUtils.merge(rles) + elif type(segm["counts"]) == list: + # uncompressed RLE + rle = maskUtils.frPyObjects(segm, h, w) + else: + # rle + rle = segm + return rle + + +def segmToMask(segm, img_size): + rle = segmToRLE(segm, img_size) + m = maskUtils.decode(rle) + return m + + +class DatasetMapperWithBasis(DatasetMapper): + """ + This caller enables the default Detectron2 mapper to read an additional basis semantic label + """ + + def __init__(self, cfg, is_train=True): + super().__init__(cfg, is_train) + + # Rebuild augmentations + logger.info( + "Rebuilding the augmentations. The previous augmentations will be overridden." + ) + self.augmentation = build_augmentation(cfg, is_train) + self.cfg = cfg + + if cfg.INPUT.CROP.ENABLED and is_train: + self.augmentation.insert( + 0, + RandomCropWithInstance( + cfg.INPUT.CROP.TYPE, + cfg.INPUT.CROP.SIZE, + cfg.INPUT.CROP.CROP_INSTANCE, + ), + ) + logging.getLogger(__name__).info( + "Cropping used in training: " + str(self.augmentation[0]) + ) + if cfg.INPUT.IS_ROTATE: + self.augmentation.insert( + 1, + T.RandomRotation(angle=[-30,30],sample_style="range") + ) + logging.getLogger(__name__).info( + "Rotation used in training: " + str(self.augmentation[1]) + ) + + self.basis_loss_on = cfg.MODEL.BASIS_MODULE.LOSS_ON + self.ann_set = cfg.MODEL.BASIS_MODULE.ANN_SET + self.boxinst_enabled = cfg.MODEL.BOXINST.ENABLED + + if self.boxinst_enabled: + self.use_instance_mask = False + self.recompute_boxes = False + + def __call__(self, dataset_dict): + """ + Args: + dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. + + Returns: + dict: a format that builtin models in detectron2 accept + """ + if self.cfg.INPUT.IS_ROTATE: + augmentation = self.augmentation[2:] + pp = np.random.rand() + if pp < 0.5: + augmentation = [self.augmentation[0]] + augmentation + pp1 = np.random.rand() + if pp1 < 0.5: + augmentation = [self.augmentation[1]] + augmentation + + dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below + # USER: Write your own image loading if it's not from a file + try: + image = utils.read_image( + dataset_dict["file_name"], format=self.image_format + ) + except Exception as e: + print(dataset_dict["file_name"]) + print(e) + raise e + try: + utils.check_image_size(dataset_dict, image) + except SizeMismatchError as e: + expected_wh = (dataset_dict["width"], dataset_dict["height"]) + image_wh = (image.shape[1], image.shape[0]) + if (image_wh[1], image_wh[0]) == expected_wh: + print("transposing image {}".format(dataset_dict["file_name"])) + image = image.transpose(1, 0, 2) + else: + raise e + if image.shape[1]==0 or image.shape[0]==0: + print(dataset_dict) + raise e + # USER: Remove if you don't do semantic/panoptic segmentation. + if "sem_seg_file_name" in dataset_dict: + sem_seg_gt = utils.read_image( + dataset_dict.pop("sem_seg_file_name"), "L" + ).squeeze(2) + else: + sem_seg_gt = None + + boxes = np.asarray( + [ + BoxMode.convert( + instance["bbox"], instance["bbox_mode"], BoxMode.XYXY_ABS + ) + for instance in dataset_dict["annotations"] + ] + ) + aug_input = T.StandardAugInput(image, boxes=boxes, sem_seg=sem_seg_gt) + transforms = aug_input.apply_augmentations(self.augmentation) + image, sem_seg_gt = aug_input.image, aug_input.sem_seg + + image_shape = image.shape[:2] # h, w + if image.shape[1]==0 or image.shape[0]==0: + print(dataset_dict) + raise e + # Pytorch's dataloader is efficient on torch.Tensor due to shared-memory, + # but not efficient on large generic data structures due to the use of pickle & mp.Queue. + # Therefore it's important to use torch.Tensor. + dataset_dict["image"] = torch.as_tensor( + np.ascontiguousarray(image.transpose(2, 0, 1)) + ) + if sem_seg_gt is not None: + dataset_dict["sem_seg"] = torch.as_tensor(sem_seg_gt.astype("long")) + + # USER: Remove if you don't use pre-computed proposals. + # Most users would not need this feature. + if self.proposal_topk: + utils.transform_proposals( + dataset_dict, + image_shape, + transforms, + proposal_topk=self.proposal_topk, + min_box_size=self.proposal_min_box_size, + ) + + if not self.is_train: + dataset_dict.pop("annotations", None) + dataset_dict.pop("sem_seg_file_name", None) + dataset_dict.pop("pano_seg_file_name", None) + return dataset_dict + + if "annotations" in dataset_dict: + # USER: Modify this if you want to keep them for some reason. + for anno in dataset_dict["annotations"]: + if not self.use_instance_mask: + anno.pop("segmentation", None) + if not self.use_keypoint: + anno.pop("keypoints", None) + + # USER: Implement additional transformations if you have other types of data + annos = [ + transform_instance_annotations( + obj, + transforms, + image_shape, + keypoint_hflip_indices=self.keypoint_hflip_indices, + ) + for obj in dataset_dict.pop("annotations") + if obj.get("iscrowd", 0) == 0 + ] + instances = annotations_to_instances( + annos, image_shape, mask_format=self.instance_mask_format + ) + + # After transforms such as cropping are applied, the bounding box may no longer + # tightly bound the object. As an example, imagine a triangle object + # [(0,0), (2,0), (0,2)] cropped by a box [(1,0),(2,2)] (XYXY format). The tight + # bounding box of the cropped triangle should be [(1,0),(2,1)], which is not equal to + if self.recompute_boxes: + instances.gt_boxes = instances.gt_masks.get_bounding_boxes() + dataset_dict["instances"] = utils.filter_empty_instances(instances) + + if self.basis_loss_on and self.is_train: + # load basis supervisions + if self.ann_set == "coco": + basis_sem_path = ( + dataset_dict["file_name"] + .replace("train2017", "thing_train2017") + .replace("image/train", "thing_train") + ) + else: + basis_sem_path = ( + dataset_dict["file_name"] + .replace("coco", "lvis") + .replace("train2017", "thing_train") + ) + # change extension to npz + basis_sem_path = osp.splitext(basis_sem_path)[0] + ".npz" + basis_sem_gt = np.load(basis_sem_path)["mask"] + basis_sem_gt = transforms.apply_segmentation(basis_sem_gt) + basis_sem_gt = torch.as_tensor(basis_sem_gt.astype("long")) + dataset_dict["basis_sem"] = basis_sem_gt + return dataset_dict diff --git a/AdelaiDet/adet/data/datasets/text.py b/AdelaiDet/adet/data/datasets/text.py new file mode 100755 index 0000000..8fd8edf --- /dev/null +++ b/AdelaiDet/adet/data/datasets/text.py @@ -0,0 +1,203 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import contextlib +import io +import logging +import os +from fvcore.common.timer import Timer +from fvcore.common.file_io import PathManager + +from detectron2.structures import BoxMode + +from detectron2.data import DatasetCatalog, MetadataCatalog + +""" +This file contains functions to parse COCO-format text annotations into dicts in "Detectron2 format". +""" + + +logger = logging.getLogger(__name__) + +__all__ = ["load_text_json", "register_text_instances"] + + +def register_text_instances(name, metadata, json_file, image_root): + """ + Register a dataset in json annotation format for text detection and recognition. + + Args: + name (str): a name that identifies the dataset, e.g. "lvis_v0.5_train". + metadata (dict): extra metadata associated with this dataset. It can be an empty dict. + json_file (str): path to the json instance annotation file. + image_root (str or path-like): directory which contains all the images. + """ + DatasetCatalog.register(name, lambda: load_text_json(json_file, image_root, name)) + MetadataCatalog.get(name).set( + json_file=json_file, image_root=image_root, evaluator_type="text", **metadata + ) + + +def load_text_json(json_file, image_root, dataset_name=None, extra_annotation_keys=None): + """ + Load a json file with totaltext annotation format. + Currently supports text detection and recognition. + + Args: + json_file (str): full path to the json file in totaltext annotation format. + image_root (str or path-like): the directory where the images in this json file exists. + dataset_name (str): the name of the dataset (e.g., coco_2017_train). + If provided, this function will also put "thing_classes" into + the metadata associated with this dataset. + extra_annotation_keys (list[str]): list of per-annotation keys that should also be + loaded into the dataset dict (besides "iscrowd", "bbox", "keypoints", + "category_id", "segmentation"). The values for these keys will be returned as-is. + For example, the densepose annotations are loaded in this way. + + Returns: + list[dict]: a list of dicts in Detectron2 standard dataset dicts format. (See + `Using Custom Datasets `_ ) + + Notes: + 1. This function does not read the image files. + The results do not have the "image" field. + """ + from pycocotools.coco import COCO + + timer = Timer() + json_file = PathManager.get_local_path(json_file) + with contextlib.redirect_stdout(io.StringIO()): + coco_api = COCO(json_file) + if timer.seconds() > 1: + logger.info("Loading {} takes {:.2f} seconds.".format(json_file, timer.seconds())) + + id_map = None + if dataset_name is not None: + meta = MetadataCatalog.get(dataset_name) + cat_ids = sorted(coco_api.getCatIds()) + cats = coco_api.loadCats(cat_ids) + # The categories in a custom json file may not be sorted. + thing_classes = [c["name"] for c in sorted(cats, key=lambda x: x["id"])] + meta.thing_classes = thing_classes + + # In COCO, certain category ids are artificially removed, + # and by convention they are always ignored. + # We deal with COCO's id issue and translate + # the category ids to contiguous ids in [0, 80). + + # It works by looking at the "categories" field in the json, therefore + # if users' own json also have incontiguous ids, we'll + # apply this mapping as well but print a warning. + if not (min(cat_ids) == 1 and max(cat_ids) == len(cat_ids)): + if "coco" not in dataset_name: + logger.warning( + """ +Category ids in annotations are not in [1, #categories]! We'll apply a mapping for you. +""" + ) + id_map = {v: i for i, v in enumerate(cat_ids)} + meta.thing_dataset_id_to_contiguous_id = id_map + + # sort indices for reproducible results + img_ids = sorted(coco_api.imgs.keys()) + # imgs is a list of dicts, each looks something like: + # {'license': 4, + # 'url': 'http://farm6.staticflickr.com/5454/9413846304_881d5e5c3b_z.jpg', + # 'file_name': 'COCO_val2014_000000001268.jpg', + # 'height': 427, + # 'width': 640, + # 'date_captured': '2013-11-17 05:57:24', + # 'id': 1268} + imgs = coco_api.loadImgs(img_ids) + # anns is a list[list[dict]], where each dict is an annotation + # record for an object. The inner list enumerates the objects in an image + # and the outer list enumerates over images. Example of anns[0]: + # [{'segmentation': [[192.81, + # 247.09, + # ... + # 219.03, + # 249.06]], + # 'area': 1035.749, + # 'rec': [84, 72, ... 96], + # 'bezier_pts': [169.0, 425.0, ..., ] + # 'iscrowd': 0, + # 'image_id': 1268, + # 'bbox': [192.81, 224.8, 74.73, 33.43], + # 'category_id': 16, + # 'id': 42986}, + # ...] + anns = [coco_api.imgToAnns[img_id] for img_id in img_ids] + + if "minival" not in json_file: + # The popular valminusminival & minival annotations for COCO2014 contain this bug. + # However the ratio of buggy annotations there is tiny and does not affect accuracy. + # Therefore we explicitly white-list them. + ann_ids = [ann["id"] for anns_per_image in anns for ann in anns_per_image] + assert len(set(ann_ids)) == len(ann_ids), "Annotation ids in '{}' are not unique!".format( + json_file + ) + + imgs_anns = list(zip(imgs, anns)) + + logger.info("Loaded {} images in COCO format from {}".format(len(imgs_anns), json_file)) + + dataset_dicts = [] + + ann_keys = ["iscrowd", "bbox", "rec", "category_id"] + (extra_annotation_keys or []) + + num_instances_without_valid_segmentation = 0 + + for (img_dict, anno_dict_list) in imgs_anns: + record = {} + record["file_name"] = os.path.join(image_root, img_dict["file_name"]) + record["height"] = img_dict["height"] + record["width"] = img_dict["width"] + image_id = record["image_id"] = img_dict["id"] + + objs = [] + for anno in anno_dict_list: + # Check that the image_id in this annotation is the same as + # the image_id we're looking at. + # This fails only when the data parsing logic or the annotation file is buggy. + + # The original COCO valminusminival2014 & minival2014 annotation files + # actually contains bugs that, together with certain ways of using COCO API, + # can trigger this assertion. + assert anno["image_id"] == image_id + + assert anno.get("ignore", 0) == 0, '"ignore" in COCO json file is not supported.' + + obj = {key: anno[key] for key in ann_keys if key in anno} + + segm = anno.get("segmentation", None) + if segm: # either list[list[float]] or dict(RLE) + if not isinstance(segm, dict): + # filter out invalid polygons (< 3 points) + segm = [poly for poly in segm if len(poly) % 2 == 0 and len(poly) >= 6] + if len(segm) == 0: + num_instances_without_valid_segmentation += 1 + continue # ignore this instance + obj["segmentation"] = segm + + bezierpts = anno.get("bezier_pts", None) + # Bezier Points are the control points for BezierAlign Text recognition (BAText) + if bezierpts: # list[float] + obj["beziers"] = bezierpts + + text = anno.get("rec", None) + if text: + obj["text"] = text + + obj["bbox_mode"] = BoxMode.XYWH_ABS + if id_map: + obj["category_id"] = id_map[obj["category_id"]] + objs.append(obj) + record["annotations"] = objs + dataset_dicts.append(record) + + if num_instances_without_valid_segmentation > 0: + logger.warning( + "Filtered out {} instances without valid segmentation. " + "There might be issues in your dataset generation process.".format( + num_instances_without_valid_segmentation + ) + ) + return dataset_dicts \ No newline at end of file diff --git a/AdelaiDet/adet/data/detection_utils.py b/AdelaiDet/adet/data/detection_utils.py new file mode 100755 index 0000000..6841b8a --- /dev/null +++ b/AdelaiDet/adet/data/detection_utils.py @@ -0,0 +1,219 @@ +import logging + +import numpy as np +import torch + +from detectron2.data import transforms as T +from detectron2.data.detection_utils import \ + annotations_to_instances as d2_anno_to_inst +from detectron2.data.detection_utils import \ + transform_instance_annotations as d2_transform_inst_anno + +import math + +def transform_instance_annotations( + annotation, transforms, image_size, *, keypoint_hflip_indices=None +): + + annotation = d2_transform_inst_anno( + annotation, + transforms, + image_size, + keypoint_hflip_indices=keypoint_hflip_indices, + ) + + if "beziers" in annotation: + beziers = transform_beziers_annotations(annotation["beziers"], transforms) + annotation["beziers"] = beziers + return annotation + + +def transform_beziers_annotations(beziers, transforms): + """ + Transform keypoint annotations of an image. + + Args: + beziers (list[float]): Nx16 float in Detectron2 Dataset format. + transforms (TransformList): + """ + # (N*2,) -> (N, 2) + beziers = np.asarray(beziers, dtype="float64").reshape(-1, 2) + beziers = transforms.apply_coords(beziers).reshape(-1) + + # This assumes that HorizFlipTransform is the only one that does flip + do_hflip = ( + sum(isinstance(t, T.HFlipTransform) for t in transforms.transforms) % 2 == 1 + ) + if do_hflip: + raise ValueError("Flipping text data is not supported (also disencouraged).") + + return beziers + + +def annotations_to_instances(annos, image_size, mask_format="polygon"): + instance = d2_anno_to_inst(annos, image_size, mask_format) + + if not annos: + return instance + + # add attributes + if "beziers" in annos[0]: + beziers = [obj.get("beziers", []) for obj in annos] + instance.beziers = torch.as_tensor(beziers, dtype=torch.float32) + + if "rec" in annos[0]: + text = [obj.get("rec", []) for obj in annos] + instance.text = torch.as_tensor(text, dtype=torch.int32) + + return instance + + +def build_augmentation(cfg, is_train): + """ + With option to don't use hflip + + Returns: + list[Augmentation] + """ + if is_train: + min_size = cfg.INPUT.MIN_SIZE_TRAIN + max_size = cfg.INPUT.MAX_SIZE_TRAIN + sample_style = cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING + else: + min_size = cfg.INPUT.MIN_SIZE_TEST + max_size = cfg.INPUT.MAX_SIZE_TEST + sample_style = "choice" + if sample_style == "range": + assert ( + len(min_size) == 2 + ), "more than 2 ({}) min_size(s) are provided for ranges".format(len(min_size)) + + logger = logging.getLogger(__name__) + + augmentation = [] + augmentation.append(T.ResizeShortestEdge(min_size, max_size, sample_style)) + if is_train: + if cfg.INPUT.HFLIP_TRAIN: + augmentation.append(T.RandomFlip()) + logger.info("Augmentations used in training: " + str(augmentation)) + return augmentation + + +build_transform_gen = build_augmentation +""" +Alias for backward-compatibility. +""" + + + +class HeatmapGenerator(): + def __init__(self, num_joints, sigma, head_sigma): + self.num_joints = num_joints + self.sigma = sigma + self.head_sigma = head_sigma + + self.p3_sigma = sigma / 2 + + size = 2*np.round(3 * sigma) + 3 + x = np.arange(0, size, 1, float) + y = x[:, np.newaxis] + x0, y0 = (size - 1) /2, (size - 1) /2 + self.g = np.exp(- ((x - x0) ** 2 + (y - y0) ** 2) / (2 * sigma ** 2)) + + size = 2*np.round(3 * self.p3_sigma) + 3 + x = np.arange(0, size, 1, float) + y = x[:, np.newaxis] + x0, y0 = (size - 1) /2, (size - 1) /2 + self.p3_g = np.exp(- ((x - x0) ** 2 + (y - y0) ** 2) / (2 * self.p3_sigma ** 2)) + + size = 2*np.round(3 * head_sigma) + 3 + x = np.arange(0, size, 1, float) + y = x[:, np.newaxis] + x0, y0 = (size - 1) /2, (size - 1) /2 + self.head_g = np.exp(- ((x - x0) ** 2 + (y - y0) ** 2) / (2 * head_sigma ** 2)) + + def __call__(self, gt_instance, gt_heatmap_stride): + heatmap_size = gt_instance.image_size + heatmap_size = [math.ceil(heatmap_size[0]/ 32)*(32/gt_heatmap_stride), + math.ceil(heatmap_size[1]/ 32)*(32/gt_heatmap_stride)] + + h,w = heatmap_size + h,w = int(h),int(w) + joints = gt_instance.gt_keypoints.tensor.numpy().copy() + joints[:,:,[0,1]] = joints[:,:,[0,1]] / gt_heatmap_stride + sigma = self.sigma + head_sigma = self.head_sigma + p3_sigma = self.p3_sigma + + output_list = [] + head_output_list = [] + for p in joints: + hms = np.zeros((self.num_joints, h, w),dtype=np.float32) + head_hms = np.zeros((self.num_joints, h, w),dtype=np.float32) + for idx, pt in enumerate(p): + if pt[2] > 0: + x, y = int(pt[0]), int(pt[1]) + if x < 0 or y < 0 or \ + x >= w or y >= h: + continue + + ul = int(np.round(x - 3 * sigma - 1)), int(np.round(y - 3 * sigma - 1)) + br = int(np.round(x + 3 * sigma + 2)), int(np.round(y + 3 * sigma + 2)) + + c, d = max(0, -ul[0]), min(br[0], w) - ul[0] + a, b = max(0, -ul[1]), min(br[1], h) - ul[1] + + cc, dd = max(0, ul[0]), min(br[0], w) + aa, bb = max(0, ul[1]), min(br[1], h) + hms[idx, aa:bb, cc:dd] = np.maximum( + hms[idx, aa:bb, cc:dd], self.g[a:b, c:d]) + + ul = int(np.round(x - 3 * head_sigma - 1)), int(np.round(y - 3 * head_sigma - 1)) + br = int(np.round(x + 3 * head_sigma + 2)), int(np.round(y + 3 * head_sigma + 2)) + + c, d = max(0, -ul[0]), min(br[0], w) - ul[0] + a, b = max(0, -ul[1]), min(br[1], h) - ul[1] + + cc, dd = max(0, ul[0]), min(br[0], w) + aa, bb = max(0, ul[1]), min(br[1], h) + head_hms[idx, aa:bb, cc:dd] = np.maximum( + head_hms[idx, aa:bb, cc:dd], self.head_g[a:b, c:d]) + + hms = torch.from_numpy(hms) + head_hms = torch.from_numpy(head_hms) + output_list.append(hms) + head_output_list.append(head_hms) + + h,w = h//4, w//4 + p3_output_list = [] + joints = gt_instance.gt_keypoints.tensor.numpy().copy() + joints[:,:,[0,1]] = joints[:,:,[0,1]] / 8 + for p in joints: + p3_hms = np.zeros((self.num_joints, h, w),dtype=np.float32) + for idx, pt in enumerate(p): + if pt[2] > 0: + x, y = int(pt[0]), int(pt[1]) + if x < 0 or y < 0 or \ + x >= w or y >= h: + continue + + ul = int(np.round(x - 3 * p3_sigma - 1)), int(np.round(y - 3 * p3_sigma - 1)) + br = int(np.round(x + 3 * p3_sigma + 2)), int(np.round(y + 3 * p3_sigma + 2)) + + c, d = max(0, -ul[0]), min(br[0], w) - ul[0] + a, b = max(0, -ul[1]), min(br[1], h) - ul[1] + + cc, dd = max(0, ul[0]), min(br[0], w) + aa, bb = max(0, ul[1]), min(br[1], h) + p3_hms[idx, aa:bb, cc:dd] = np.maximum( + p3_hms[idx, aa:bb, cc:dd], self.p3_g[a:b, c:d]) + + p3_hms = torch.from_numpy(p3_hms) + p3_output_list.append(p3_hms) + output_list = torch.stack(output_list,dim=0) + p3_output_list = torch.stack(p3_output_list,dim=0) + head_output_list = torch.stack(head_output_list,dim=0) + gt_instance.keypoint_heatmap = output_list + gt_instance.head_heatmap = head_output_list + gt_instance.p3_output_list = p3_output_list + return gt_instance \ No newline at end of file diff --git a/AdelaiDet/adet/data/fcpose_dataset_mapper.py b/AdelaiDet/adet/data/fcpose_dataset_mapper.py new file mode 100755 index 0000000..4735e45 --- /dev/null +++ b/AdelaiDet/adet/data/fcpose_dataset_mapper.py @@ -0,0 +1,62 @@ +import copy +import logging +import os.path as osp + +import numpy as np +import torch +from fvcore.common.file_io import PathManager +from PIL import Image +from pycocotools import mask as maskUtils + +from detectron2.data import detection_utils as utils +from detectron2.data import transforms as T +from detectron2.data.dataset_mapper import DatasetMapper +from detectron2.data.detection_utils import SizeMismatchError +from detectron2.structures import BoxMode + +from .augmentation import RandomCropWithInstance +from .detection_utils import (annotations_to_instances, build_augmentation, + transform_instance_annotations) + +from adet.data.detection_utils import HeatmapGenerator +from adet.data.dataset_mapper import DatasetMapperWithBasis +""" +This file contains the default mapping that's applied to "dataset dicts". +""" + +__all__ = ["DatasetMapperWithBasis"] + +logger = logging.getLogger(__name__) + +class FCPoseDatasetMapper(DatasetMapperWithBasis): + """ + This caller enables the default Detectron2 mapper to read an additional basis semantic label + """ + + def __init__(self, cfg, is_train=True): + super().__init__(cfg, is_train) + + self.fcpose_on = cfg.MODEL.FCPOSE_ON + if self.fcpose_on: + self.gt_heatmap_stride = cfg.MODEL.FCPOSE.GT_HEATMAP_STRIDE + self.sigma = cfg.MODEL.FCPOSE.HEATMAP_SIGMA + self.head_sigma = cfg.MODEL.FCPOSE.HEAD_HEATMAP_SIGMA + self.HeatmapGenerator = HeatmapGenerator(17, self.sigma, self.head_sigma) + + def __call__(self, dataset_dict): + """ + Args: + dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. + + Returns: + dict: a format that builtin models in detectron2 accept + """ + for i in range(100): + dataset_dict_temp = copy.deepcopy(dataset_dict) + dataset_dict_temp = super().__call__(dataset_dict_temp) + if len(dataset_dict_temp["instances"]) != 0: + if self.is_train: + dataset_dict_temp['instances'] = self.HeatmapGenerator(dataset_dict_temp['instances'], + self.gt_heatmap_stride) + return dataset_dict_temp + raise diff --git a/AdelaiDet/adet/evaluation/__init__.py b/AdelaiDet/adet/evaluation/__init__.py new file mode 100755 index 0000000..b114e91 --- /dev/null +++ b/AdelaiDet/adet/evaluation/__init__.py @@ -0,0 +1,5 @@ +from .text_evaluation_all import TextEvaluator +from .text_eval_script import text_eval_main +from .text_eval_script_ic15 import text_eval_main_ic15 +from . import rrc_evaluation_funcs +from . import rrc_evaluation_funcs_ic15 \ No newline at end of file diff --git a/AdelaiDet/adet/evaluation/rrc_evaluation_funcs.py b/AdelaiDet/adet/evaluation/rrc_evaluation_funcs.py new file mode 100755 index 0000000..f383710 --- /dev/null +++ b/AdelaiDet/adet/evaluation/rrc_evaluation_funcs.py @@ -0,0 +1,482 @@ +#!/usr/bin/env python2 +#encoding: UTF-8 +import json +import sys;sys.path.append('./') +import zipfile +import re +import sys +import os +import codecs +import importlib +from io import StringIO + +from shapely.geometry import * + +def print_help(): + sys.stdout.write('Usage: python %s.py -g= -s= [-o= -p=]' %sys.argv[0]) + sys.exit(2) + + +def load_zip_file_keys(file,fileNameRegExp=''): + """ + Returns an array with the entries of the ZIP file that match with the regular expression. + The key's are the names or the file or the capturing group definied in the fileNameRegExp + """ + try: + archive=zipfile.ZipFile(file, mode='r', allowZip64=True) + except : + raise Exception('Error loading the ZIP archive.') + + pairs = [] + + for name in archive.namelist(): + addFile = True + keyName = name + if fileNameRegExp!="": + m = re.match(fileNameRegExp,name) + if m == None: + addFile = False + else: + if len(m.groups())>0: + keyName = m.group(1) + + if addFile: + pairs.append( keyName ) + + return pairs + + +def load_zip_file(file,fileNameRegExp='',allEntries=False): + """ + Returns an array with the contents (filtered by fileNameRegExp) of a ZIP file. + The key's are the names or the file or the capturing group definied in the fileNameRegExp + allEntries validates that all entries in the ZIP file pass the fileNameRegExp + """ + try: + archive=zipfile.ZipFile(file, mode='r', allowZip64=True) + except : + raise Exception('Error loading the ZIP archive') + + pairs = [] + for name in archive.namelist(): + addFile = True + keyName = name + if fileNameRegExp!="": + m = re.match(fileNameRegExp,name) + if m == None: + addFile = False + else: + if len(m.groups())>0: + keyName = m.group(1) + + if addFile: + pairs.append( [ keyName , archive.read(name)] ) + else: + if allEntries: + raise Exception('ZIP entry not valid: %s' %name) + + return dict(pairs) + +def decode_utf8(raw): + """ + Returns a Unicode object on success, or None on failure + """ + try: + raw = codecs.decode(raw,'utf-8', 'replace') + #extracts BOM if exists + raw = raw.encode('utf8') + if raw.startswith(codecs.BOM_UTF8): + raw = raw.replace(codecs.BOM_UTF8, '', 1) + return raw.decode('utf-8') + except: + return None + +def validate_lines_in_file_gt(fileName,file_contents,CRLF=True,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0): + """ + This function validates that all lines of the file calling the Line validation function for each line + """ + utf8File = decode_utf8(file_contents) + if (utf8File is None) : + raise Exception("The file %s is not UTF-8" %fileName) + + lines = utf8File.split( "\r\n" if CRLF else "\n" ) + for line in lines: + line = line.replace("\r","").replace("\n","") + if(line != ""): + try: + validate_tl_line_gt(line,LTRB,withTranscription,withConfidence,imWidth,imHeight) + except Exception as e: + raise Exception(("Line in sample not valid. Sample: %s Line: %s Error: %s" %(fileName,line,str(e))).encode('utf-8', 'replace')) + +def validate_lines_in_file(fileName,file_contents,CRLF=True,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0): + """ + This function validates that all lines of the file calling the Line validation function for each line + """ + utf8File = decode_utf8(file_contents) + if (utf8File is None) : + raise Exception("The file %s is not UTF-8" %fileName) + + lines = utf8File.split( "\r\n" if CRLF else "\n" ) + for line in lines: + line = line.replace("\r","").replace("\n","") + if(line != ""): + try: + validate_tl_line(line,LTRB,withTranscription,withConfidence,imWidth,imHeight) + except Exception as e: + raise Exception(("Line in sample not valid. Sample: %s Line: %s Error: %s" %(fileName,line,str(e))).encode('utf-8', 'replace')) + +def validate_tl_line_gt(line,LTRB=True,withTranscription=True,withConfidence=True,imWidth=0,imHeight=0): + """ + Validate the format of the line. If the line is not valid an exception will be raised. + If maxWidth and maxHeight are specified, all points must be inside the imgage bounds. + Posible values are: + LTRB=True: xmin,ymin,xmax,ymax[,confidence][,transcription] + LTRB=False: x1,y1,x2,y2,x3,y3,x4,y4[,confidence][,transcription] + """ + get_tl_line_values_gt(line,LTRB,withTranscription,withConfidence,imWidth,imHeight) + +def validate_tl_line(line,LTRB=True,withTranscription=True,withConfidence=True,imWidth=0,imHeight=0): + """ + Validate the format of the line. If the line is not valid an exception will be raised. + If maxWidth and maxHeight are specified, all points must be inside the imgage bounds. + Posible values are: + LTRB=True: xmin,ymin,xmax,ymax[,confidence][,transcription] + LTRB=False: x1,y1,x2,y2,x3,y3,x4,y4[,confidence][,transcription] + """ + get_tl_line_values(line,LTRB,withTranscription,withConfidence,imWidth,imHeight) + +def get_tl_line_values_gt(line,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0): + """ + Validate the format of the line. If the line is not valid an exception will be raised. + If maxWidth and maxHeight are specified, all points must be inside the imgage bounds. + Posible values are: + LTRB=True: xmin,ymin,xmax,ymax[,confidence][,transcription] + LTRB=False: x1,y1,x2,y2,x3,y3,x4,y4[,confidence][,transcription] + Returns values from a textline. Points , [Confidences], [Transcriptions] + """ + confidence = 0.0 + transcription = ""; + points = [] + + if LTRB: + # do not use + raise Exception('Not implemented.') + + else: + # if withTranscription and withConfidence: + # cors = line.split(',') + # assert(len(cors)%2 -2 == 0), 'num cors should be even.' + # try: + # points = [ float(ic) for ic in cors[:-2]] + # except Exception as e: + # raise(e) + # elif withConfidence: + # cors = line.split(',') + # assert(len(cors)%2 -1 == 0), 'num cors should be even.' + # try: + # points = [ float(ic) for ic in cors[:-1]] + # except Exception as e: + # raise(e) + # elif withTranscription: + # cors = line.split(',') + # assert(len(cors)%2 -1 == 0), 'num cors should be even.' + # try: + # points = [ float(ic) for ic in cors[:-1]] + # except Exception as e: + # raise(e) + # else: + # cors = line.split(',') + # assert(len(cors)%2 == 0), 'num cors should be even.' + # try: + # points = [ float(ic) for ic in cors[:]] + # except Exception as e: + # raise(e) + + if withTranscription and withConfidence: + raise('not implemented') + elif withConfidence: + raise('not implemented') + elif withTranscription: + ptr = line.strip().split(',####') + cors = ptr[0].split(',') + recs = ptr[1].strip() + assert(len(cors)%2 == 0), 'num cors should be even.' + try: + points = [ float(ic) for ic in cors[:]] + except Exception as e: + raise(e) + else: + raise('not implemented') + + validate_clockwise_points(points) + + if (imWidth>0 and imHeight>0): + for ip in range(0, len(points), 2): + validate_point_inside_bounds(points[ip],points[ip+1],imWidth,imHeight); + + + if withConfidence: + try: + confidence = 1.0 + except ValueError: + raise Exception("Confidence value must be a float") + + if withTranscription: + # posTranscription = numPoints + (2 if withConfidence else 1) + # transcription = cors[-1].strip() + transcription = recs + m2 = re.match(r'^\s*\"(.*)\"\s*$',transcription) + if m2 != None : #Transcription with double quotes, we extract the value and replace escaped characters + transcription = m2.group(1).replace("\\\\", "\\").replace("\\\"", "\"") + + return points,confidence,transcription + +def get_tl_line_values(line,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0): + """ + Validate the format of the line. If the line is not valid an exception will be raised. + If maxWidth and maxHeight are specified, all points must be inside the imgage bounds. + Posible values are: + LTRB=True: xmin,ymin,xmax,ymax[,confidence][,transcription] + LTRB=False: x1,y1,x2,y2,x3,y3,x4,y4[,confidence][,transcription] + Returns values from a textline. Points , [Confidences], [Transcriptions] + """ + confidence = 0.0 + transcription = ""; + points = [] + + if LTRB: + # do not use + raise Exception('Not implemented.') + + else: + if withTranscription and withConfidence: + raise('not implemented') + elif withConfidence: + raise('not implemented') + elif withTranscription: + ptr = line.strip().split(',####') + cors = ptr[0].split(',') + recs = ptr[1].strip() + assert(len(cors)%2 == 0), 'num cors should be even.' + try: + points = [ float(ic) for ic in cors[:]] + except Exception as e: + raise(e) + else: + raise('not implemented') + + # print('det clock wise') + validate_clockwise_points(points) + + if (imWidth>0 and imHeight>0): + for ip in range(0, len(points), 2): + validate_point_inside_bounds(points[ip],points[ip+1],imWidth,imHeight); + + + if withConfidence: + try: + confidence = 1.0 + except ValueError: + raise Exception("Confidence value must be a float") + + if withTranscription: + # posTranscription = numPoints + (2 if withConfidence else 1) + transcription = recs + m2 = re.match(r'^\s*\"(.*)\"\s*$',transcription) + if m2 != None : #Transcription with double quotes, we extract the value and replace escaped characters + transcription = m2.group(1).replace("\\\\", "\\").replace("\\\"", "\"") + + return points,confidence,transcription + + +def validate_point_inside_bounds(x,y,imWidth,imHeight): + if(x<0 or x>imWidth): + raise Exception("X value (%s) not valid. Image dimensions: (%s,%s)" %(xmin,imWidth,imHeight)) + if(y<0 or y>imHeight): + raise Exception("Y value (%s) not valid. Image dimensions: (%s,%s) Sample: %s Line:%s" %(ymin,imWidth,imHeight)) + +def validate_clockwise_points(points): + """ + Validates that the points that the 4 points that dlimite a polygon are in clockwise order. + """ + + # if len(points) != 8: + # raise Exception("Points list not valid." + str(len(points))) + + # point = [ + # [int(points[0]) , int(points[1])], + # [int(points[2]) , int(points[3])], + # [int(points[4]) , int(points[5])], + # [int(points[6]) , int(points[7])] + # ] + # edge = [ + # ( point[1][0] - point[0][0])*( point[1][1] + point[0][1]), + # ( point[2][0] - point[1][0])*( point[2][1] + point[1][1]), + # ( point[3][0] - point[2][0])*( point[3][1] + point[2][1]), + # ( point[0][0] - point[3][0])*( point[0][1] + point[3][1]) + # ] + + # summatory = edge[0] + edge[1] + edge[2] + edge[3]; + # if summatory>0: + # raise Exception("Points are not clockwise. The coordinates of bounding quadrilaterals have to be given in clockwise order. Regarding the correct interpretation of 'clockwise' remember that the image coordinate system used is the standard one, with the image origin at the upper left, the X axis extending to the right and Y axis extending downwards.") + pts = [(points[j], points[j+1]) for j in range(0,len(points),2)] + try: + pdet = Polygon(pts) + except: + assert(0), ('not a valid polygon', pts) + # The polygon should be valid. + if not pdet.is_valid: + assert(0), ('polygon has intersection sides', pts) + pRing = LinearRing(pts) + if pRing.is_ccw: + assert(0), ("Points are not clockwise. The coordinates of bounding quadrilaterals have to be given in clockwise order. Regarding the correct interpretation of 'clockwise' remember that the image coordinate system used is the standard one, with the image origin at the upper left, the X axis extending to the right and Y axis extending downwards.") + +def get_tl_line_values_from_file_contents(content,CRLF=True,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0,sort_by_confidences=True): + """ + Returns all points, confindences and transcriptions of a file in lists. Valid line formats: + xmin,ymin,xmax,ymax,[confidence],[transcription] + x1,y1,x2,y2,x3,y3,x4,y4,[confidence],[transcription] + """ + pointsList = [] + transcriptionsList = [] + confidencesList = [] + + lines = content.split( "\r\n" if CRLF else "\n" ) + for line in lines: + line = line.replace("\r","").replace("\n","") + if(line != "") : + points, confidence, transcription = get_tl_line_values_gt(line,LTRB,withTranscription,withConfidence,imWidth,imHeight); + pointsList.append(points) + transcriptionsList.append(transcription) + confidencesList.append(confidence) + + if withConfidence and len(confidencesList)>0 and sort_by_confidences: + import numpy as np + sorted_ind = np.argsort(-np.array(confidencesList)) + confidencesList = [confidencesList[i] for i in sorted_ind] + pointsList = [pointsList[i] for i in sorted_ind] + transcriptionsList = [transcriptionsList[i] for i in sorted_ind] + + return pointsList,confidencesList,transcriptionsList + +def get_tl_line_values_from_file_contents_det(content,CRLF=True,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0,sort_by_confidences=True): + """ + Returns all points, confindences and transcriptions of a file in lists. Valid line formats: + xmin,ymin,xmax,ymax,[confidence],[transcription] + x1,y1,x2,y2,x3,y3,x4,y4,[confidence],[transcription] + """ + pointsList = [] + transcriptionsList = [] + confidencesList = [] + + lines = content.split( "\r\n" if CRLF else "\n" ) + for line in lines: + line = line.replace("\r","").replace("\n","") + if(line != "") : + points, confidence, transcription = get_tl_line_values(line,LTRB,withTranscription,withConfidence,imWidth,imHeight); + pointsList.append(points) + transcriptionsList.append(transcription) + confidencesList.append(confidence) + + if withConfidence and len(confidencesList)>0 and sort_by_confidences: + import numpy as np + sorted_ind = np.argsort(-np.array(confidencesList)) + confidencesList = [confidencesList[i] for i in sorted_ind] + pointsList = [pointsList[i] for i in sorted_ind] + transcriptionsList = [transcriptionsList[i] for i in sorted_ind] + + return pointsList,confidencesList,transcriptionsList + +def main_evaluation(p,det_file, gt_file, default_evaluation_params_fn,validate_data_fn,evaluate_method_fn,show_result=True,per_sample=True): + """ + This process validates a method, evaluates it and if it succed generates a ZIP file with a JSON entry for each sample. + Params: + p: Dictionary of parmeters with the GT/submission locations. If None is passed, the parameters send by the system are used. + default_evaluation_params_fn: points to a function that returns a dictionary with the default parameters used for the evaluation + validate_data_fn: points to a method that validates the corrct format of the submission + evaluate_method_fn: points to a function that evaluated the submission and return a Dictionary with the results + """ + + # if (p == None): + # p = dict([s[1:].split('=') for s in sys.argv[1:]]) + # if(len(sys.argv)<3): + # print_help() + p = {} + p['g'] =gt_file #'tttgt.zip' + p['s'] =det_file #'det.zip' + + evalParams = default_evaluation_params_fn() + if 'p' in p.keys(): + evalParams.update( p['p'] if isinstance(p['p'], dict) else json.loads(p['p'][1:-1]) ) + + resDict={'calculated':True,'Message':'','method':'{}','per_sample':'{}'} + # try: + validate_data_fn(p['g'], p['s'], evalParams) + evalData = evaluate_method_fn(p['g'], p['s'], evalParams) + resDict.update(evalData) + + # except Exception as e: + # resDict['Message']= str(e) + # resDict['calculated']=False + + if 'o' in p: + if not os.path.exists(p['o']): + os.makedirs(p['o']) + + resultsOutputname = p['o'] + '/results.zip' + outZip = zipfile.ZipFile(resultsOutputname, mode='w', allowZip64=True) + + del resDict['per_sample'] + if 'output_items' in resDict.keys(): + del resDict['output_items'] + + outZip.writestr('method.json',json.dumps(resDict)) + + if not resDict['calculated']: + if show_result: + sys.stderr.write('Error!\n'+ resDict['Message']+'\n\n') + if 'o' in p: + outZip.close() + return resDict + + if 'o' in p: + if per_sample == True: + for k,v in evalData['per_sample'].items(): + outZip.writestr( k + '.json',json.dumps(v)) + + if 'output_items' in evalData.keys(): + for k, v in evalData['output_items'].items(): + outZip.writestr( k,v) + + outZip.close() + + # if show_result: + # sys.stdout.write("Calculated!") + # sys.stdout.write('\n') + # sys.stdout.write(json.dumps(resDict['e2e_method'])) + # sys.stdout.write('\n') + # sys.stdout.write(json.dumps(resDict['det_only_method'])) + # sys.stdout.write('\n') + + return resDict + + +def main_validation(default_evaluation_params_fn,validate_data_fn): + """ + This process validates a method + Params: + default_evaluation_params_fn: points to a function that returns a dictionary with the default parameters used for the evaluation + validate_data_fn: points to a method that validates the corrct format of the submission + """ + try: + p = dict([s[1:].split('=') for s in sys.argv[1:]]) + evalParams = default_evaluation_params_fn() + if 'p' in p.keys(): + evalParams.update( p['p'] if isinstance(p['p'], dict) else json.loads(p['p'][1:-1]) ) + + validate_data_fn(p['g'], p['s'], evalParams) + print('SUCCESS') + sys.exit(0) + except Exception as e: + print(str(e)) + sys.exit(101) \ No newline at end of file diff --git a/AdelaiDet/adet/evaluation/rrc_evaluation_funcs_ic15.py b/AdelaiDet/adet/evaluation/rrc_evaluation_funcs_ic15.py new file mode 100755 index 0000000..4e708aa --- /dev/null +++ b/AdelaiDet/adet/evaluation/rrc_evaluation_funcs_ic15.py @@ -0,0 +1,371 @@ +#!/usr/bin/env python2 +#encoding: UTF-8 +import json +import sys;sys.path.append('./') +import zipfile +import re +import sys +import os +import codecs +import importlib +try: + from StringIO import StringIO +except ImportError: + from io import StringIO + +def print_help(): + sys.stdout.write('Usage: python %s.py -g= -s= [-o= -p=]' %sys.argv[0]) + sys.exit(2) + + +def load_zip_file_keys(file,fileNameRegExp=''): + """ + Returns an array with the entries of the ZIP file that match with the regular expression. + The key's are the names or the file or the capturing group definied in the fileNameRegExp + """ + try: + archive=zipfile.ZipFile(file, mode='r', allowZip64=True) + except : + raise Exception('Error loading the ZIP archive.') + + pairs = [] + + for name in archive.namelist(): + addFile = True + keyName = name + if fileNameRegExp!="": + m = re.match(fileNameRegExp,name) + if m == None: + addFile = False + else: + if len(m.groups())>0: + keyName = m.group(1) + + if addFile: + pairs.append( keyName ) + + return pairs + + +def load_zip_file(file,fileNameRegExp='',allEntries=False): + """ + Returns an array with the contents (filtered by fileNameRegExp) of a ZIP file. + The key's are the names or the file or the capturing group definied in the fileNameRegExp + allEntries validates that all entries in the ZIP file pass the fileNameRegExp + """ + try: + archive=zipfile.ZipFile(file, mode='r', allowZip64=True) + except : + raise Exception('Error loading the ZIP archive') + + pairs = [] + for name in archive.namelist(): + addFile = True + keyName = name + if fileNameRegExp!="": + m = re.match(fileNameRegExp,name) + if m == None: + addFile = False + else: + if len(m.groups())>0: + keyName = m.group(1) + + if addFile: + pairs.append( [ keyName , archive.read(name)] ) + else: + if allEntries: + raise Exception('ZIP entry not valid: %s' %name) + + return dict(pairs) + +def decode_utf8(raw): + """ + Returns a Unicode object on success, or None on failure + """ + try: + raw = codecs.decode(raw,'utf-8', 'replace') + #extracts BOM if exists + raw = raw.encode('utf8') + if raw.startswith(codecs.BOM_UTF8): + raw = raw.replace(codecs.BOM_UTF8, '', 1) + return raw.decode('utf-8') + except: + return None + +def validate_lines_in_file(fileName,file_contents,CRLF=True,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0): + """ + This function validates that all lines of the file calling the Line validation function for each line + """ + utf8File = decode_utf8(file_contents) + if (utf8File is None) : + raise Exception("The file %s is not UTF-8" %fileName) + + lines = utf8File.split( "\r\n" if CRLF else "\n" ) + for line in lines: + line = line.replace("\r","").replace("\n","") + if(line != ""): + try: + validate_tl_line(line,LTRB,withTranscription,withConfidence,imWidth,imHeight) + except Exception as e: + raise Exception(("Line in sample not valid. Sample: %s Line: %s Error: %s" %(fileName,line,str(e))).encode('utf-8', 'replace')) + + + +def validate_tl_line(line,LTRB=True,withTranscription=True,withConfidence=True,imWidth=0,imHeight=0): + """ + Validate the format of the line. If the line is not valid an exception will be raised. + If maxWidth and maxHeight are specified, all points must be inside the imgage bounds. + Posible values are: + LTRB=True: xmin,ymin,xmax,ymax[,confidence][,transcription] + LTRB=False: x1,y1,x2,y2,x3,y3,x4,y4[,confidence][,transcription] + """ + get_tl_line_values(line,LTRB,withTranscription,withConfidence,imWidth,imHeight) + + +def get_tl_line_values(line,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0): + """ + Validate the format of the line. If the line is not valid an exception will be raised. + If maxWidth and maxHeight are specified, all points must be inside the imgage bounds. + Posible values are: + LTRB=True: xmin,ymin,xmax,ymax[,confidence][,transcription] + LTRB=False: x1,y1,x2,y2,x3,y3,x4,y4[,confidence][,transcription] + Returns values from a textline. Points , [Confidences], [Transcriptions] + """ + confidence = 0.0 + transcription = ""; + points = [] + + numPoints = 4; + + if LTRB: + + numPoints = 4; + + if withTranscription and withConfidence: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-1].?[0-9]*)\s*,(.*)$',line) + if m == None : + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-1].?[0-9]*)\s*,(.*)$',line) + raise Exception("Format incorrect. Should be: xmin,ymin,xmax,ymax,confidence,transcription") + elif withConfidence: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-1].?[0-9]*)\s*$',line) + if m == None : + raise Exception("Format incorrect. Should be: xmin,ymin,xmax,ymax,confidence") + elif withTranscription: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,(.*)$',line) + if m == None : + raise Exception("Format incorrect. Should be: xmin,ymin,xmax,ymax,transcription") + else: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,?\s*$',line) + if m == None : + raise Exception("Format incorrect. Should be: xmin,ymin,xmax,ymax") + + xmin = int(m.group(1)) + ymin = int(m.group(2)) + xmax = int(m.group(3)) + ymax = int(m.group(4)) + if(xmax0 and imHeight>0): + validate_point_inside_bounds(xmin,ymin,imWidth,imHeight); + validate_point_inside_bounds(xmax,ymax,imWidth,imHeight); + + else: + + numPoints = 8; + + if withTranscription and withConfidence: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-1].?[0-9]*)\s*,(.*)$',line) + if m == None : + raise Exception("Format incorrect. Should be: x1,y1,x2,y2,x3,y3,x4,y4,confidence,transcription") + elif withConfidence: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*([0-1].?[0-9]*)\s*$',line) + if m == None : + raise Exception("Format incorrect. Should be: x1,y1,x2,y2,x3,y3,x4,y4,confidence") + elif withTranscription: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,(.*)$',line) + if m == None : + raise Exception("Format incorrect. Should be: x1,y1,x2,y2,x3,y3,x4,y4,transcription") + else: + m = re.match(r'^\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*,\s*(-?[0-9]+)\s*$',line) + if m == None : + raise Exception("Format incorrect. Should be: x1,y1,x2,y2,x3,y3,x4,y4") + + points = [ float(m.group(i)) for i in range(1, (numPoints+1) ) ] + + validate_clockwise_points(points) + + if (imWidth>0 and imHeight>0): + validate_point_inside_bounds(points[0],points[1],imWidth,imHeight); + validate_point_inside_bounds(points[2],points[3],imWidth,imHeight); + validate_point_inside_bounds(points[4],points[5],imWidth,imHeight); + validate_point_inside_bounds(points[6],points[7],imWidth,imHeight); + + + if withConfidence: + try: + confidence = float(m.group(numPoints+1)) + except ValueError: + raise Exception("Confidence value must be a float") + + if withTranscription: + posTranscription = numPoints + (2 if withConfidence else 1) + transcription = m.group(posTranscription) + m2 = re.match(r'^\s*\"(.*)\"\s*$',transcription) + if m2 != None : #Transcription with double quotes, we extract the value and replace escaped characters + transcription = m2.group(1).replace("\\\\", "\\").replace("\\\"", "\"") + + return points,confidence,transcription + + +def validate_point_inside_bounds(x,y,imWidth,imHeight): + if(x<0 or x>imWidth): + raise Exception("X value (%s) not valid. Image dimensions: (%s,%s)" %(xmin,imWidth,imHeight)) + if(y<0 or y>imHeight): + raise Exception("Y value (%s) not valid. Image dimensions: (%s,%s) Sample: %s Line:%s" %(ymin,imWidth,imHeight)) + +def validate_clockwise_points(points): + """ + Validates that the points that the 4 points that dlimite a polygon are in clockwise order. + """ + + if len(points) != 8: + raise Exception("Points list not valid." + str(len(points))) + + point = [ + [int(points[0]) , int(points[1])], + [int(points[2]) , int(points[3])], + [int(points[4]) , int(points[5])], + [int(points[6]) , int(points[7])] + ] + edge = [ + ( point[1][0] - point[0][0])*( point[1][1] + point[0][1]), + ( point[2][0] - point[1][0])*( point[2][1] + point[1][1]), + ( point[3][0] - point[2][0])*( point[3][1] + point[2][1]), + ( point[0][0] - point[3][0])*( point[0][1] + point[3][1]) + ] + + summatory = edge[0] + edge[1] + edge[2] + edge[3]; + if summatory>0: + raise Exception("Points are not clockwise. The coordinates of bounding quadrilaterals have to be given in clockwise order. Regarding the correct interpretation of 'clockwise' remember that the image coordinate system used is the standard one, with the image origin at the upper left, the X axis extending to the right and Y axis extending downwards.") + +def get_tl_line_values_from_file_contents(content,CRLF=True,LTRB=True,withTranscription=False,withConfidence=False,imWidth=0,imHeight=0,sort_by_confidences=True): + """ + Returns all points, confindences and transcriptions of a file in lists. Valid line formats: + xmin,ymin,xmax,ymax,[confidence],[transcription] + x1,y1,x2,y2,x3,y3,x4,y4,[confidence],[transcription] + """ + pointsList = [] + transcriptionsList = [] + confidencesList = [] + + lines = content.split( "\r\n" if CRLF else "\n" ) + for line in lines: + line = line.replace("\r","").replace("\n","") + if(line != "") : + points, confidence, transcription = get_tl_line_values(line,LTRB,withTranscription,withConfidence,imWidth,imHeight); + pointsList.append(points) + transcriptionsList.append(transcription) + confidencesList.append(confidence) + + if withConfidence and len(confidencesList)>0 and sort_by_confidences: + import numpy as np + sorted_ind = np.argsort(-np.array(confidencesList)) + confidencesList = [confidencesList[i] for i in sorted_ind] + pointsList = [pointsList[i] for i in sorted_ind] + transcriptionsList = [transcriptionsList[i] for i in sorted_ind] + + return pointsList,confidencesList,transcriptionsList + +def main_evaluation(p,default_evaluation_params_fn,validate_data_fn,evaluate_method_fn,show_result=True,per_sample=True): + """ + This process validates a method, evaluates it and if it succed generates a ZIP file with a JSON entry for each sample. + Params: + p: Dictionary of parmeters with the GT/submission locations. If None is passed, the parameters send by the system are used. + default_evaluation_params_fn: points to a function that returns a dictionary with the default parameters used for the evaluation + validate_data_fn: points to a method that validates the corrct format of the submission + evaluate_method_fn: points to a function that evaluated the submission and return a Dictionary with the results + """ + + if (p == None): + p = dict([s[1:].split('=') for s in sys.argv[1:]]) + if(len(sys.argv)<3): + print_help() + + evalParams = default_evaluation_params_fn() + if 'p' in p.keys(): + evalParams.update( p['p'] if isinstance(p['p'], dict) else json.loads(p['p'][1:-1]) ) + + resDict={'calculated':True,'Message':'','method':'{}','per_sample':'{}'} + try: + validate_data_fn(p['g'], p['s'], evalParams) + evalData = evaluate_method_fn(p['g'], p['s'], evalParams) + resDict.update(evalData) + + except Exception as e: + resDict['Message']= str(e) + resDict['calculated']=False + + if 'o' in p: + if not os.path.exists(p['o']): + os.makedirs(p['o']) + + resultsOutputname = p['o'] + '/results.zip' + outZip = zipfile.ZipFile(resultsOutputname, mode='w', allowZip64=True) + + del resDict['per_sample'] + if 'output_items' in resDict.keys(): + del resDict['output_items'] + + outZip.writestr('method.json',json.dumps(resDict)) + + if not resDict['calculated']: + if show_result: + sys.stderr.write('Error!\n'+ resDict['Message']+'\n\n') + if 'o' in p: + outZip.close() + return resDict + + if 'o' in p: + if per_sample == True: + for k,v in evalData['per_sample'].items(): + outZip.writestr( k + '.json',json.dumps(v)) + + if 'output_items' in evalData.keys(): + for k, v in evalData['output_items'].items(): + outZip.writestr( k,v) + + outZip.close() + + # if show_result: + # sys.stdout.write("Calculated!") + # sys.stdout.write("\n") + # sys.stdout.write(json.dumps(resDict['e2e_method'])) + # sys.stdout.write("\n") + + return resDict + + +def main_validation(default_evaluation_params_fn,validate_data_fn): + """ + This process validates a method + Params: + default_evaluation_params_fn: points to a function that returns a dictionary with the default parameters used for the evaluation + validate_data_fn: points to a method that validates the corrct format of the submission + """ + try: + p = dict([s[1:].split('=') for s in sys.argv[1:]]) + evalParams = default_evaluation_params_fn() + if 'p' in p.keys(): + evalParams.update( p['p'] if isinstance(p['p'], dict) else json.loads(p['p'][1:-1]) ) + + validate_data_fn(p['g'], p['s'], evalParams) + print('SUCCESS') + sys.exit(0) + except Exception as e: + print(str(e)) + sys.exit(101) diff --git a/AdelaiDet/adet/evaluation/text_eval_script.py b/AdelaiDet/adet/evaluation/text_eval_script.py new file mode 100755 index 0000000..8c6cdcd --- /dev/null +++ b/AdelaiDet/adet/evaluation/text_eval_script.py @@ -0,0 +1,472 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# encoding=utf8 +from collections import namedtuple +from adet.evaluation import rrc_evaluation_funcs +import importlib +import sys + +import math + +from rapidfuzz import string_metric + +WORD_SPOTTING =True +def evaluation_imports(): + """ + evaluation_imports: Dictionary ( key = module name , value = alias ) with python modules used in the evaluation. + """ + return { + 'Polygon':'plg', + 'numpy':'np' + } + +def default_evaluation_params(): + """ + default_evaluation_params: Default parameters to use for the validation and evaluation. + """ + global WORD_SPOTTING + return { + 'IOU_CONSTRAINT' :0.5, + 'AREA_PRECISION_CONSTRAINT' :0.5, + 'WORD_SPOTTING' :WORD_SPOTTING, + 'MIN_LENGTH_CARE_WORD' :3, + 'GT_SAMPLE_NAME_2_ID':'([0-9]+).txt', + 'DET_SAMPLE_NAME_2_ID':'([0-9]+).txt', + 'LTRB':False, #LTRB:2points(left,top,right,bottom) or 4 points(x1,y1,x2,y2,x3,y3,x4,y4) + 'CRLF':False, # Lines are delimited by Windows CRLF format + 'CONFIDENCES':False, #Detections must include confidence value. MAP and MAR will be calculated, + 'SPECIAL_CHARACTERS':str('!?.:,*"()·[]/\''), + 'ONLY_REMOVE_FIRST_LAST_CHARACTER' : True + } + +def validate_data(gtFilePath, submFilePath, evaluationParams): + """ + Method validate_data: validates that all files in the results folder are correct (have the correct name contents). + Validates also that there are no missing files in the folder. + If some error detected, the method raises the error + """ + gt = rrc_evaluation_funcs.load_zip_file(gtFilePath, evaluationParams['GT_SAMPLE_NAME_2_ID']) + + subm = rrc_evaluation_funcs.load_zip_file(submFilePath, evaluationParams['DET_SAMPLE_NAME_2_ID'], True) + + #Validate format of GroundTruth + for k in gt: + rrc_evaluation_funcs.validate_lines_in_file_gt(k,gt[k],evaluationParams['CRLF'],evaluationParams['LTRB'],True) + + #Validate format of results + for k in subm: + if (k in gt) == False : + raise Exception("The sample %s not present in GT" %k) + + rrc_evaluation_funcs.validate_lines_in_file(k,subm[k],evaluationParams['CRLF'],evaluationParams['LTRB'],True,evaluationParams['CONFIDENCES']) + + +def evaluate_method(gtFilePath, submFilePath, evaluationParams): + """ + Method evaluate_method: evaluate method and returns the results + Results. Dictionary with the following values: + - method (required) Global method metrics. Ex: { 'Precision':0.8,'Recall':0.9 } + - samples (optional) Per sample metrics. Ex: {'sample1' : { 'Precision':0.8,'Recall':0.9 } , 'sample2' : { 'Precision':0.8,'Recall':0.9 } + """ + for module,alias in evaluation_imports().items(): + globals()[alias] = importlib.import_module(module) + + def polygon_from_points(points): + """ + Returns a Polygon object to use with the Polygon2 class from a list of 8 points: x1,y1,x2,y2,x3,y3,x4,y4 + """ + num_points = len(points) + # resBoxes=np.empty([1,num_points],dtype='int32') + resBoxes=np.empty([1,num_points],dtype='float32') + for inp in range(0, num_points, 2): + resBoxes[0, int(inp/2)] = float(points[int(inp)]) + resBoxes[0, int(inp/2+num_points/2)] = float(points[int(inp+1)]) + pointMat = resBoxes[0].reshape([2,int(num_points/2)]).T + return plg.Polygon(pointMat) + + def rectangle_to_polygon(rect): + resBoxes=np.empty([1,8],dtype='int32') + resBoxes[0,0]=int(rect.xmin) + resBoxes[0,4]=int(rect.ymax) + resBoxes[0,1]=int(rect.xmin) + resBoxes[0,5]=int(rect.ymin) + resBoxes[0,2]=int(rect.xmax) + resBoxes[0,6]=int(rect.ymin) + resBoxes[0,3]=int(rect.xmax) + resBoxes[0,7]=int(rect.ymax) + + pointMat = resBoxes[0].reshape([2,4]).T + + return plg.Polygon( pointMat) + + def rectangle_to_points(rect): + points = [int(rect.xmin), int(rect.ymax), int(rect.xmax), int(rect.ymax), int(rect.xmax), int(rect.ymin), int(rect.xmin), int(rect.ymin)] + return points + + def get_union(pD,pG): + areaA = pD.area(); + areaB = pG.area(); + return areaA + areaB - get_intersection(pD, pG); + + def get_intersection_over_union(pD,pG): + try: + return get_intersection(pD, pG) / get_union(pD, pG); + except: + return 0 + + def get_intersection(pD,pG): + pInt = pD & pG + if len(pInt) == 0: + return 0 + return pInt.area() + + def compute_ap(confList, matchList,numGtCare): + correct = 0 + AP = 0 + if len(confList)>0: + confList = np.array(confList) + matchList = np.array(matchList) + sorted_ind = np.argsort(-confList) + confList = confList[sorted_ind] + matchList = matchList[sorted_ind] + for n in range(len(confList)): + match = matchList[n] + if match: + correct += 1 + AP += float(correct)/(n + 1) + + if numGtCare>0: + AP /= numGtCare + + return AP + + def transcription_match(transGt,transDet,specialCharacters=str(r'!?.:,*"()·[]/\''),onlyRemoveFirstLastCharacterGT=True): + + if onlyRemoveFirstLastCharacterGT: + #special characters in GT are allowed only at initial or final position + if (transGt==transDet): + return True + + if specialCharacters.find(transGt[0])>-1: + if transGt[1:]==transDet: + return True + + if specialCharacters.find(transGt[-1])>-1: + if transGt[0:len(transGt)-1]==transDet: + return True + + if specialCharacters.find(transGt[0])>-1 and specialCharacters.find(transGt[-1])>-1: + if transGt[1:len(transGt)-1]==transDet: + return True + return False + else: + #Special characters are removed from the begining and the end of both Detection and GroundTruth + while len(transGt)>0 and specialCharacters.find(transGt[0])>-1: + transGt = transGt[1:] + + while len(transDet)>0 and specialCharacters.find(transDet[0])>-1: + transDet = transDet[1:] + + while len(transGt)>0 and specialCharacters.find(transGt[-1])>-1 : + transGt = transGt[0:len(transGt)-1] + + while len(transDet)>0 and specialCharacters.find(transDet[-1])>-1: + transDet = transDet[0:len(transDet)-1] + + return transGt == transDet + + + def include_in_dictionary(transcription): + """ + Function used in Word Spotting that finds if the Ground Truth transcription meets the rules to enter into the dictionary. If not, the transcription will be cared as don't care + """ + #special case 's at final + if transcription[len(transcription)-2:]=="'s" or transcription[len(transcription)-2:]=="'S": + transcription = transcription[0:len(transcription)-2] + + #hypens at init or final of the word + transcription = transcription.strip('-'); + + specialCharacters = str("'!?.:,*\"()·[]/"); + for character in specialCharacters: + transcription = transcription.replace(character,' ') + + transcription = transcription.strip() + + if len(transcription) != len(transcription.replace(" ","")) : + return False; + + if len(transcription) < evaluationParams['MIN_LENGTH_CARE_WORD']: + return False; + + notAllowed = str("×÷·"); + + range1 = [ ord(u'a'), ord(u'z') ] + range2 = [ ord(u'A'), ord(u'Z') ] + range3 = [ ord(u'À'), ord(u'ƿ') ] + range4 = [ ord(u'DŽ'), ord(u'ɿ') ] + range5 = [ ord(u'Ά'), ord(u'Ͽ') ] + range6 = [ ord(u'-'), ord(u'-') ] + + for char in transcription : + charCode = ord(char) + if(notAllowed.find(char) != -1): + return False + + valid = ( charCode>=range1[0] and charCode<=range1[1] ) or ( charCode>=range2[0] and charCode<=range2[1] ) or ( charCode>=range3[0] and charCode<=range3[1] ) or ( charCode>=range4[0] and charCode<=range4[1] ) or ( charCode>=range5[0] and charCode<=range5[1] ) or ( charCode>=range6[0] and charCode<=range6[1] ) + if valid == False: + return False + + return True + + def include_in_dictionary_transcription(transcription): + """ + Function applied to the Ground Truth transcriptions used in Word Spotting. It removes special characters or terminations + """ + #special case 's at final + if transcription[len(transcription)-2:]=="'s" or transcription[len(transcription)-2:]=="'S": + transcription = transcription[0:len(transcription)-2] + + #hypens at init or final of the word + transcription = transcription.strip('-'); + + specialCharacters = str("'!?.:,*\"()·[]/"); + for character in specialCharacters: + transcription = transcription.replace(character,' ') + + transcription = transcription.strip() + + return transcription + + perSampleMetrics = {} + + matchedSum = 0 + det_only_matchedSum = 0 + + Rectangle = namedtuple('Rectangle', 'xmin ymin xmax ymax') + + gt = rrc_evaluation_funcs.load_zip_file(gtFilePath,evaluationParams['GT_SAMPLE_NAME_2_ID']) + subm = rrc_evaluation_funcs.load_zip_file(submFilePath,evaluationParams['DET_SAMPLE_NAME_2_ID'],True) + + numGlobalCareGt = 0; + numGlobalCareDet = 0; + det_only_numGlobalCareGt = 0; + det_only_numGlobalCareDet = 0; + + arrGlobalConfidences = []; + arrGlobalMatches = []; + + for resFile in gt: + # print('resgt', resFile) + gtFile = rrc_evaluation_funcs.decode_utf8(gt[resFile]) + if (gtFile is None) : + raise Exception("The file %s is not UTF-8" %resFile) + + recall = 0 + precision = 0 + hmean = 0 + detCorrect = 0 + detOnlyCorrect = 0 + iouMat = np.empty([1,1]) + gtPols = [] + detPols = [] + gtTrans = [] + detTrans = [] + gtPolPoints = [] + detPolPoints = [] + gtDontCarePolsNum = [] #Array of Ground Truth Polygons' keys marked as don't Care + det_only_gtDontCarePolsNum = [] + detDontCarePolsNum = [] #Array of Detected Polygons' matched with a don't Care GT + det_only_detDontCarePolsNum = [] + detMatchedNums = [] + pairs = [] + + arrSampleConfidences = []; + arrSampleMatch = []; + sampleAP = 0; + + pointsList,_,transcriptionsList = rrc_evaluation_funcs.get_tl_line_values_from_file_contents(gtFile,evaluationParams['CRLF'],evaluationParams['LTRB'],True,False) + + for n in range(len(pointsList)): + points = pointsList[n] + transcription = transcriptionsList[n] + det_only_dontCare = dontCare = transcription == "###" # ctw1500 and total_text gt have been modified to the same format. + if evaluationParams['LTRB']: + gtRect = Rectangle(*points) + gtPol = rectangle_to_polygon(gtRect) + else: + gtPol = polygon_from_points(points) + gtPols.append(gtPol) + gtPolPoints.append(points) + + #On word spotting we will filter some transcriptions with special characters + if evaluationParams['WORD_SPOTTING'] : + if dontCare == False : + if include_in_dictionary(transcription) == False : + dontCare = True + else: + transcription = include_in_dictionary_transcription(transcription) + + gtTrans.append(transcription) + if dontCare: + gtDontCarePolsNum.append( len(gtPols)-1 ) + if det_only_dontCare: + det_only_gtDontCarePolsNum.append( len(gtPols)-1 ) + + + if resFile in subm: + + detFile = rrc_evaluation_funcs.decode_utf8(subm[resFile]) + + pointsList,confidencesList,transcriptionsList = rrc_evaluation_funcs.get_tl_line_values_from_file_contents_det(detFile,evaluationParams['CRLF'],evaluationParams['LTRB'],True,evaluationParams['CONFIDENCES']) + + for n in range(len(pointsList)): + points = pointsList[n] + transcription = transcriptionsList[n] + + if evaluationParams['LTRB']: + detRect = Rectangle(*points) + detPol = rectangle_to_polygon(detRect) + else: + detPol = polygon_from_points(points) + detPols.append(detPol) + detPolPoints.append(points) + detTrans.append(transcription) + + if len(gtDontCarePolsNum)>0 : + for dontCarePol in gtDontCarePolsNum: + dontCarePol = gtPols[dontCarePol] + intersected_area = get_intersection(dontCarePol,detPol) + pdDimensions = detPol.area() + precision = 0 if pdDimensions == 0 else intersected_area / pdDimensions + if (precision > evaluationParams['AREA_PRECISION_CONSTRAINT'] ): + detDontCarePolsNum.append( len(detPols)-1 ) + break + + if len(det_only_gtDontCarePolsNum)>0 : + for dontCarePol in det_only_gtDontCarePolsNum: + dontCarePol = gtPols[dontCarePol] + intersected_area = get_intersection(dontCarePol,detPol) + pdDimensions = detPol.area() + precision = 0 if pdDimensions == 0 else intersected_area / pdDimensions + if (precision > evaluationParams['AREA_PRECISION_CONSTRAINT'] ): + det_only_detDontCarePolsNum.append( len(detPols)-1 ) + break + + + if len(gtPols)>0 and len(detPols)>0: + #Calculate IoU and precision matrixs + outputShape=[len(gtPols),len(detPols)] + iouMat = np.empty(outputShape) + gtRectMat = np.zeros(len(gtPols),np.int8) + detRectMat = np.zeros(len(detPols),np.int8) + det_only_gtRectMat = np.zeros(len(gtPols),np.int8) + det_only_detRectMat = np.zeros(len(detPols),np.int8) + for gtNum in range(len(gtPols)): + for detNum in range(len(detPols)): + pG = gtPols[gtNum] + pD = detPols[detNum] + iouMat[gtNum,detNum] = get_intersection_over_union(pD,pG) + + for gtNum in range(len(gtPols)): + for detNum in range(len(detPols)): + if gtRectMat[gtNum] == 0 and detRectMat[detNum] == 0 and gtNum not in gtDontCarePolsNum and detNum not in detDontCarePolsNum : + if iouMat[gtNum,detNum]>evaluationParams['IOU_CONSTRAINT']: + gtRectMat[gtNum] = 1 + detRectMat[detNum] = 1 + #detection matched only if transcription is equal + # det_only_correct = True + # detOnlyCorrect += 1 + if evaluationParams['WORD_SPOTTING']: + edd = string_metric.levenshtein(gtTrans[gtNum].upper(), detTrans[detNum].upper()) + if edd<=0: + correct = True + else: + correct = False + # correct = gtTrans[gtNum].upper() == detTrans[detNum].upper() + else: + try: + correct = transcription_match(gtTrans[gtNum].upper(),detTrans[detNum].upper(),evaluationParams['SPECIAL_CHARACTERS'],evaluationParams['ONLY_REMOVE_FIRST_LAST_CHARACTER'])==True + except: # empty + correct = False + detCorrect += (1 if correct else 0) + if correct: + detMatchedNums.append(detNum) + + for gtNum in range(len(gtPols)): + for detNum in range(len(detPols)): + if det_only_gtRectMat[gtNum] == 0 and det_only_detRectMat[detNum] == 0 and gtNum not in det_only_gtDontCarePolsNum and detNum not in det_only_detDontCarePolsNum: + if iouMat[gtNum,detNum]>evaluationParams['IOU_CONSTRAINT']: + det_only_gtRectMat[gtNum] = 1 + det_only_detRectMat[detNum] = 1 + #detection matched only if transcription is equal + det_only_correct = True + detOnlyCorrect += 1 + + + numGtCare = (len(gtPols) - len(gtDontCarePolsNum)) + numDetCare = (len(detPols) - len(detDontCarePolsNum)) + det_only_numGtCare = (len(gtPols) - len(det_only_gtDontCarePolsNum)) + det_only_numDetCare = (len(detPols) - len(det_only_detDontCarePolsNum)) + if numGtCare == 0: + recall = float(1) + precision = float(0) if numDetCare >0 else float(1) + else: + recall = float(detCorrect) / numGtCare + precision = 0 if numDetCare==0 else float(detCorrect) / numDetCare + + if det_only_numGtCare == 0: + det_only_recall = float(1) + det_only_precision = float(0) if det_only_numDetCare >0 else float(1) + else: + det_only_recall = float(detOnlyCorrect) / det_only_numGtCare + det_only_precision = 0 if det_only_numDetCare==0 else float(detOnlyCorrect) / det_only_numDetCare + + + hmean = 0 if (precision + recall)==0 else 2.0 * precision * recall / (precision + recall) + det_only_hmean = 0 if (det_only_precision + det_only_recall)==0 else 2.0 * det_only_precision * det_only_recall / (det_only_precision + det_only_recall) + + matchedSum += detCorrect + det_only_matchedSum += detOnlyCorrect + numGlobalCareGt += numGtCare + numGlobalCareDet += numDetCare + det_only_numGlobalCareGt += det_only_numGtCare + det_only_numGlobalCareDet += det_only_numDetCare + + perSampleMetrics[resFile] = { + 'precision':precision, + 'recall':recall, + 'hmean':hmean, + 'iouMat':[] if len(detPols)>100 else iouMat.tolist(), + 'gtPolPoints':gtPolPoints, + 'detPolPoints':detPolPoints, + 'gtTrans':gtTrans, + 'detTrans':detTrans, + 'gtDontCare':gtDontCarePolsNum, + 'detDontCare':detDontCarePolsNum, + 'evaluationParams': evaluationParams, + } + + + methodRecall = 0 if numGlobalCareGt == 0 else float(matchedSum)/numGlobalCareGt + methodPrecision = 0 if numGlobalCareDet == 0 else float(matchedSum)/numGlobalCareDet + methodHmean = 0 if methodRecall + methodPrecision==0 else 2* methodRecall * methodPrecision / (methodRecall + methodPrecision) + + det_only_methodRecall = 0 if det_only_numGlobalCareGt == 0 else float(det_only_matchedSum)/det_only_numGlobalCareGt + det_only_methodPrecision = 0 if det_only_numGlobalCareDet == 0 else float(det_only_matchedSum)/det_only_numGlobalCareDet + det_only_methodHmean = 0 if det_only_methodRecall + det_only_methodPrecision==0 else 2* det_only_methodRecall * det_only_methodPrecision / (det_only_methodRecall + det_only_methodPrecision) + + + methodMetrics = r"E2E_RESULTS: precision: {}, recall: {}, hmean: {}".format(methodPrecision, methodRecall, methodHmean) + det_only_methodMetrics = r"DETECTION_ONLY_RESULTS: precision: {}, recall: {}, hmean: {}".format(det_only_methodPrecision, det_only_methodRecall, det_only_methodHmean) + + + resDict = {'calculated':True,'Message':'','e2e_method': methodMetrics,'det_only_method': det_only_methodMetrics,'per_sample': perSampleMetrics} + + + return resDict; + +def text_eval_main(det_file, gt_file, is_word_spotting): + global WORD_SPOTTING + WORD_SPOTTING = is_word_spotting + return rrc_evaluation_funcs.main_evaluation(None,det_file, gt_file, default_evaluation_params,validate_data,evaluate_method) diff --git a/AdelaiDet/adet/evaluation/text_eval_script_ic15.py b/AdelaiDet/adet/evaluation/text_eval_script_ic15.py new file mode 100755 index 0000000..5b023db --- /dev/null +++ b/AdelaiDet/adet/evaluation/text_eval_script_ic15.py @@ -0,0 +1,501 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# encoding=utf8 +from collections import namedtuple +from adet.evaluation import rrc_evaluation_funcs_ic15 as rrc_evaluation_funcs +import importlib +import sys + +import math + +from rapidfuzz import string_metric + +WORD_SPOTTING =True +def evaluation_imports(): + """ + evaluation_imports: Dictionary ( key = module name , value = alias ) with python modules used in the evaluation. + """ + return { + 'Polygon':'plg', + 'numpy':'np' + } + +def default_evaluation_params(): + """ + default_evaluation_params: Default parameters to use for the validation and evaluation. + """ + global WORD_SPOTTING + return { + 'IOU_CONSTRAINT' :0.5, + 'AREA_PRECISION_CONSTRAINT' :0.5, + 'WORD_SPOTTING' :WORD_SPOTTING, + 'MIN_LENGTH_CARE_WORD' :3, + 'GT_SAMPLE_NAME_2_ID':'gt_img_([0-9]+).txt', + 'DET_SAMPLE_NAME_2_ID':'res_img_([0-9]+).txt', + 'LTRB':False, #LTRB:2points(left,top,right,bottom) or 4 points(x1,y1,x2,y2,x3,y3,x4,y4) + 'CRLF':False, # Lines are delimited by Windows CRLF format + 'CONFIDENCES':False, #Detections must include confidence value. MAP and MAR will be calculated, + 'SPECIAL_CHARACTERS':'!?.:,*"()·[]/\'', + 'ONLY_REMOVE_FIRST_LAST_CHARACTER' : True + } + +def validate_data(gtFilePath, submFilePath, evaluationParams): + """ + Method validate_data: validates that all files in the results folder are correct (have the correct name contents). + Validates also that there are no missing files in the folder. + If some error detected, the method raises the error + """ + gt = rrc_evaluation_funcs.load_zip_file(gtFilePath, evaluationParams['GT_SAMPLE_NAME_2_ID']) + subm = rrc_evaluation_funcs.load_zip_file(submFilePath, evaluationParams['DET_SAMPLE_NAME_2_ID'], True) + #Validate format of GroundTruth + for k in gt: + rrc_evaluation_funcs.validate_lines_in_file(k,gt[k],evaluationParams['CRLF'],evaluationParams['LTRB'],True) + + #Validate format of results + for k in subm: + if (k in gt) == False : + raise Exception("The sample %s not present in GT" %k) + + rrc_evaluation_funcs.validate_lines_in_file(k,subm[k],evaluationParams['CRLF'],evaluationParams['LTRB'],True,evaluationParams['CONFIDENCES']) + + +def evaluate_method(gtFilePath, submFilePath, evaluationParams): + """ + Method evaluate_method: evaluate method and returns the results + Results. Dictionary with the following values: + - method (required) Global method metrics. Ex: { 'Precision':0.8,'Recall':0.9 } + - samples (optional) Per sample metrics. Ex: {'sample1' : { 'Precision':0.8,'Recall':0.9 } , 'sample2' : { 'Precision':0.8,'Recall':0.9 } + """ + for module,alias in evaluation_imports().items(): + globals()[alias] = importlib.import_module(module) + + def polygon_from_points(points,correctOffset=False): + """ + Returns a Polygon object to use with the Polygon2 class from a list of 8 points: x1,y1,x2,y2,x3,y3,x4,y4 + """ + + if correctOffset: #this will substract 1 from the coordinates that correspond to the xmax and ymax + points[2] -= 1 + points[4] -= 1 + points[5] -= 1 + points[7] -= 1 + + resBoxes=np.empty([1,8],dtype='int32') + resBoxes[0,0]=int(points[0]) + resBoxes[0,4]=int(points[1]) + resBoxes[0,1]=int(points[2]) + resBoxes[0,5]=int(points[3]) + resBoxes[0,2]=int(points[4]) + resBoxes[0,6]=int(points[5]) + resBoxes[0,3]=int(points[6]) + resBoxes[0,7]=int(points[7]) + pointMat = resBoxes[0].reshape([2,4]).T + return plg.Polygon( pointMat) + + def rectangle_to_polygon(rect): + resBoxes=np.empty([1,8],dtype='int32') + resBoxes[0,0]=int(rect.xmin) + resBoxes[0,4]=int(rect.ymax) + resBoxes[0,1]=int(rect.xmin) + resBoxes[0,5]=int(rect.ymin) + resBoxes[0,2]=int(rect.xmax) + resBoxes[0,6]=int(rect.ymin) + resBoxes[0,3]=int(rect.xmax) + resBoxes[0,7]=int(rect.ymax) + + pointMat = resBoxes[0].reshape([2,4]).T + + return plg.Polygon( pointMat) + + def rectangle_to_points(rect): + points = [int(rect.xmin), int(rect.ymax), int(rect.xmax), int(rect.ymax), int(rect.xmax), int(rect.ymin), int(rect.xmin), int(rect.ymin)] + return points + + def get_union(pD,pG): + areaA = pD.area(); + areaB = pG.area(); + return areaA + areaB - get_intersection(pD, pG); + + def get_intersection_over_union(pD,pG): + try: + return get_intersection(pD, pG) / get_union(pD, pG); + except: + return 0 + + def get_intersection(pD,pG): + pInt = pD & pG + if len(pInt) == 0: + return 0 + return pInt.area() + + def compute_ap(confList, matchList,numGtCare): + correct = 0 + AP = 0 + if len(confList)>0: + confList = np.array(confList) + matchList = np.array(matchList) + sorted_ind = np.argsort(-confList) + confList = confList[sorted_ind] + matchList = matchList[sorted_ind] + for n in range(len(confList)): + match = matchList[n] + if match: + correct += 1 + AP += float(correct)/(n + 1) + + if numGtCare>0: + AP /= numGtCare + + return AP + + def transcription_match(transGt,transDet,specialCharacters='!?.:,*"()·[]/\'',onlyRemoveFirstLastCharacterGT=True): + + if onlyRemoveFirstLastCharacterGT: + #special characters in GT are allowed only at initial or final position + if (transGt==transDet): + return True + + if specialCharacters.find(transGt[0])>-1: + if transGt[1:]==transDet: + return True + + if specialCharacters.find(transGt[-1])>-1: + if transGt[0:len(transGt)-1]==transDet: + return True + + if specialCharacters.find(transGt[0])>-1 and specialCharacters.find(transGt[-1])>-1: + if transGt[1:len(transGt)-1]==transDet: + return True + return False + else: + #Special characters are removed from the begining and the end of both Detection and GroundTruth + while len(transGt)>0 and specialCharacters.find(transGt[0])>-1: + transGt = transGt[1:] + + while len(transDet)>0 and specialCharacters.find(transDet[0])>-1: + transDet = transDet[1:] + + while len(transGt)>0 and specialCharacters.find(transGt[-1])>-1 : + transGt = transGt[0:len(transGt)-1] + + while len(transDet)>0 and specialCharacters.find(transDet[-1])>-1: + transDet = transDet[0:len(transDet)-1] + + return transGt == transDet + + + def include_in_dictionary(transcription): + """ + Function used in Word Spotting that finds if the Ground Truth transcription meets the rules to enter into the dictionary. If not, the transcription will be cared as don't care + """ + #special case 's at final + if transcription[len(transcription)-2:]=="'s" or transcription[len(transcription)-2:]=="'S": + transcription = transcription[0:len(transcription)-2] + + #hypens at init or final of the word + transcription = transcription.strip('-'); + + specialCharacters = "'!?.:,*\"()·[]/"; + for character in specialCharacters: + transcription = transcription.replace(character,' ') + + transcription = transcription.strip() + + if len(transcription) != len(transcription.replace(" ","")) : + return False; + + if len(transcription) < evaluationParams['MIN_LENGTH_CARE_WORD']: + return False; + + notAllowed = "×÷·"; + + range1 = [ ord(u'a'), ord(u'z') ] + range2 = [ ord(u'A'), ord(u'Z') ] + range3 = [ ord(u'À'), ord(u'ƿ') ] + range4 = [ ord(u'DŽ'), ord(u'ɿ') ] + range5 = [ ord(u'Ά'), ord(u'Ͽ') ] + range6 = [ ord(u'-'), ord(u'-') ] + + for char in transcription : + charCode = ord(char) + if(notAllowed.find(char) != -1): + return False + + valid = ( charCode>=range1[0] and charCode<=range1[1] ) or ( charCode>=range2[0] and charCode<=range2[1] ) or ( charCode>=range3[0] and charCode<=range3[1] ) or ( charCode>=range4[0] and charCode<=range4[1] ) or ( charCode>=range5[0] and charCode<=range5[1] ) or ( charCode>=range6[0] and charCode<=range6[1] ) + if valid == False: + return False + + return True + + def include_in_dictionary_transcription(transcription): + """ + Function applied to the Ground Truth transcriptions used in Word Spotting. It removes special characters or terminations + """ + #special case 's at final + if transcription[len(transcription)-2:]=="'s" or transcription[len(transcription)-2:]=="'S": + transcription = transcription[0:len(transcription)-2] + + #hypens at init or final of the word + transcription = transcription.strip('-'); + + specialCharacters = "'!?.:,*\"()·[]/"; + for character in specialCharacters: + transcription = transcription.replace(character,' ') + + transcription = transcription.strip() + + return transcription + + perSampleMetrics = {} + + matchedSum = 0 + det_only_matchedSum = 0 + + Rectangle = namedtuple('Rectangle', 'xmin ymin xmax ymax') + + gt = rrc_evaluation_funcs.load_zip_file(gtFilePath,evaluationParams['GT_SAMPLE_NAME_2_ID']) + subm = rrc_evaluation_funcs.load_zip_file(submFilePath,evaluationParams['DET_SAMPLE_NAME_2_ID'],True) + + numGlobalCareGt = 0; + numGlobalCareDet = 0; + det_only_numGlobalCareGt = 0; + det_only_numGlobalCareDet = 0; + + arrGlobalConfidences = []; + arrGlobalMatches = []; + + for resFile in gt: + + gtFile = rrc_evaluation_funcs.decode_utf8(gt[resFile]) + if (gtFile is None) : + raise Exception("The file %s is not UTF-8" %resFile) + + recall = 0 + precision = 0 + hmean = 0 + detCorrect = 0 + detOnlyCorrect = 0 + iouMat = np.empty([1,1]) + gtPols = [] + detPols = [] + gtTrans = [] + detTrans = [] + gtPolPoints = [] + detPolPoints = [] + gtDontCarePolsNum = [] #Array of Ground Truth Polygons' keys marked as don't Care + det_only_gtDontCarePolsNum = [] + detDontCarePolsNum = [] #Array of Detected Polygons' matched with a don't Care GT + det_only_detDontCarePolsNum = [] + detMatchedNums = [] + pairs = [] + + arrSampleConfidences = []; + arrSampleMatch = []; + sampleAP = 0; + + evaluationLog = "" + + pointsList,_,transcriptionsList = rrc_evaluation_funcs.get_tl_line_values_from_file_contents(gtFile,evaluationParams['CRLF'],evaluationParams['LTRB'],True,False) + for n in range(len(pointsList)): + points = pointsList[n] + transcription = transcriptionsList[n] + # dontCare = transcription == "###" + det_only_dontCare = dontCare = transcription == "###" # ctw1500 and total_text gt have been modified to the same format. + if evaluationParams['LTRB']: + gtRect = Rectangle(*points) + gtPol = rectangle_to_polygon(gtRect) + else: + gtPol = polygon_from_points(points) + gtPols.append(gtPol) + gtPolPoints.append(points) + + #On word spotting we will filter some transcriptions with special characters + if evaluationParams['WORD_SPOTTING'] : + if dontCare == False : + if include_in_dictionary(transcription) == False : + dontCare = True + else: + transcription = include_in_dictionary_transcription(transcription) + + gtTrans.append(transcription) + if dontCare: + gtDontCarePolsNum.append( len(gtPols)-1 ) + if det_only_dontCare: + det_only_gtDontCarePolsNum.append( len(gtPols)-1 ) + + evaluationLog += "GT polygons: " + str(len(gtPols)) + (" (" + str(len(gtDontCarePolsNum)) + " don't care)\n" if len(gtDontCarePolsNum)>0 else "\n") + + if resFile in subm: + + detFile = rrc_evaluation_funcs.decode_utf8(subm[resFile]) + + pointsList,confidencesList,transcriptionsList = rrc_evaluation_funcs.get_tl_line_values_from_file_contents(detFile,evaluationParams['CRLF'],evaluationParams['LTRB'],True,evaluationParams['CONFIDENCES']) + + for n in range(len(pointsList)): + points = pointsList[n] + transcription = transcriptionsList[n] + + if evaluationParams['LTRB']: + detRect = Rectangle(*points) + detPol = rectangle_to_polygon(detRect) + else: + detPol = polygon_from_points(points) + detPols.append(detPol) + detPolPoints.append(points) + detTrans.append(transcription) + + if len(gtDontCarePolsNum)>0 : + for dontCarePol in gtDontCarePolsNum: + dontCarePol = gtPols[dontCarePol] + intersected_area = get_intersection(dontCarePol,detPol) + pdDimensions = detPol.area() + precision = 0 if pdDimensions == 0 else intersected_area / pdDimensions + if (precision > evaluationParams['AREA_PRECISION_CONSTRAINT'] ): + detDontCarePolsNum.append( len(detPols)-1 ) + break + + + if len(det_only_gtDontCarePolsNum)>0 : + for dontCarePol in det_only_gtDontCarePolsNum: + dontCarePol = gtPols[dontCarePol] + intersected_area = get_intersection(dontCarePol,detPol) + pdDimensions = detPol.area() + precision = 0 if pdDimensions == 0 else intersected_area / pdDimensions + if (precision > evaluationParams['AREA_PRECISION_CONSTRAINT'] ): + det_only_detDontCarePolsNum.append( len(detPols)-1 ) + break + + evaluationLog += "DET polygons: " + str(len(detPols)) + (" (" + str(len(detDontCarePolsNum)) + " don't care)\n" if len(detDontCarePolsNum)>0 else "\n") + + if len(gtPols)>0 and len(detPols)>0: + #Calculate IoU and precision matrixs + outputShape=[len(gtPols),len(detPols)] + iouMat = np.empty(outputShape) + gtRectMat = np.zeros(len(gtPols),np.int8) + detRectMat = np.zeros(len(detPols),np.int8) + det_only_gtRectMat = np.zeros(len(gtPols),np.int8) + det_only_detRectMat = np.zeros(len(detPols),np.int8) + for gtNum in range(len(gtPols)): + for detNum in range(len(detPols)): + pG = gtPols[gtNum] + pD = detPols[detNum] + iouMat[gtNum,detNum] = get_intersection_over_union(pD,pG) + + for gtNum in range(len(gtPols)): + for detNum in range(len(detPols)): + if gtRectMat[gtNum] == 0 and detRectMat[detNum] == 0 and gtNum not in gtDontCarePolsNum and detNum not in detDontCarePolsNum : + if iouMat[gtNum,detNum]>evaluationParams['IOU_CONSTRAINT']: + gtRectMat[gtNum] = 1 + detRectMat[detNum] = 1 + #detection matched only if transcription is equal + if evaluationParams['WORD_SPOTTING']: + correct = gtTrans[gtNum].upper() == detTrans[detNum].upper() + else: + correct = transcription_match(gtTrans[gtNum].upper(),detTrans[detNum].upper(),evaluationParams['SPECIAL_CHARACTERS'],evaluationParams['ONLY_REMOVE_FIRST_LAST_CHARACTER'])==True + detCorrect += (1 if correct else 0) + if correct: + detMatchedNums.append(detNum) + pairs.append({'gt':gtNum,'det':detNum,'correct':correct}) + evaluationLog += "Match GT #" + str(gtNum) + " with Det #" + str(detNum) + " trans. correct: " + str(correct) + "\n" + + for gtNum in range(len(gtPols)): + for detNum in range(len(detPols)): + if det_only_gtRectMat[gtNum] == 0 and det_only_detRectMat[detNum] == 0 and gtNum not in det_only_gtDontCarePolsNum and detNum not in det_only_detDontCarePolsNum: + if iouMat[gtNum,detNum]>evaluationParams['IOU_CONSTRAINT']: + det_only_gtRectMat[gtNum] = 1 + det_only_detRectMat[detNum] = 1 + #detection matched only if transcription is equal + det_only_correct = True + detOnlyCorrect += 1 + + if evaluationParams['CONFIDENCES']: + for detNum in range(len(detPols)): + if detNum not in detDontCarePolsNum : + #we exclude the don't care detections + match = detNum in detMatchedNums + + arrSampleConfidences.append(confidencesList[detNum]) + arrSampleMatch.append(match) + + arrGlobalConfidences.append(confidencesList[detNum]); + arrGlobalMatches.append(match); + + numGtCare = (len(gtPols) - len(gtDontCarePolsNum)) + numDetCare = (len(detPols) - len(detDontCarePolsNum)) + det_only_numGtCare = (len(gtPols) - len(det_only_gtDontCarePolsNum)) + det_only_numDetCare = (len(detPols) - len(det_only_detDontCarePolsNum)) + if numGtCare == 0: + recall = float(1) + precision = float(0) if numDetCare >0 else float(1) + sampleAP = precision + else: + recall = float(detCorrect) / numGtCare + precision = 0 if numDetCare==0 else float(detCorrect) / numDetCare + if evaluationParams['CONFIDENCES']: + sampleAP = compute_ap(arrSampleConfidences, arrSampleMatch, numGtCare ) + + if det_only_numGtCare == 0: + det_only_recall = float(1) + det_only_precision = float(0) if det_only_numDetCare >0 else float(1) + else: + det_only_recall = float(detOnlyCorrect) / det_only_numGtCare + det_only_precision = 0 if det_only_numDetCare==0 else float(detOnlyCorrect) / det_only_numDetCare + + hmean = 0 if (precision + recall)==0 else 2.0 * precision * recall / (precision + recall) + det_only_hmean = 0 if (det_only_precision + det_only_recall)==0 else 2.0 * det_only_precision * det_only_recall / (det_only_precision + det_only_recall) + + matchedSum += detCorrect + det_only_matchedSum += detOnlyCorrect + numGlobalCareGt += numGtCare + numGlobalCareDet += numDetCare + det_only_numGlobalCareGt += det_only_numGtCare + det_only_numGlobalCareDet += det_only_numDetCare + + perSampleMetrics[resFile] = { + 'precision':precision, + 'recall':recall, + 'hmean':hmean, + 'pairs':pairs, + 'AP':sampleAP, + 'iouMat':[] if len(detPols)>100 else iouMat.tolist(), + 'gtPolPoints':gtPolPoints, + 'detPolPoints':detPolPoints, + 'gtTrans':gtTrans, + 'detTrans':detTrans, + 'gtDontCare':gtDontCarePolsNum, + 'detDontCare':detDontCarePolsNum, + 'evaluationParams': evaluationParams, + 'evaluationLog': evaluationLog + } + + # Compute AP + AP = 0 + if evaluationParams['CONFIDENCES']: + AP = compute_ap(arrGlobalConfidences, arrGlobalMatches, numGlobalCareGt) + + methodRecall = 0 if numGlobalCareGt == 0 else float(matchedSum)/numGlobalCareGt + methodPrecision = 0 if numGlobalCareDet == 0 else float(matchedSum)/numGlobalCareDet + methodHmean = 0 if methodRecall + methodPrecision==0 else 2* methodRecall * methodPrecision / (methodRecall + methodPrecision) + + det_only_methodRecall = 0 if det_only_numGlobalCareGt == 0 else float(det_only_matchedSum)/det_only_numGlobalCareGt + det_only_methodPrecision = 0 if det_only_numGlobalCareDet == 0 else float(det_only_matchedSum)/det_only_numGlobalCareDet + det_only_methodHmean = 0 if det_only_methodRecall + det_only_methodPrecision==0 else 2* det_only_methodRecall * det_only_methodPrecision / (det_only_methodRecall + det_only_methodPrecision) + + methodMetrics = r"E2E_RESULTS: precision: {}, recall: {}, hmean: {}".format(methodPrecision, methodRecall, methodHmean) + det_only_methodMetrics = r"DETECTION_ONLY_RESULTS: precision: {}, recall: {}, hmean: {}".format(det_only_methodPrecision, det_only_methodRecall, det_only_methodHmean) + + resDict = {'calculated':True,'Message':'','e2e_method': methodMetrics, 'det_only_method': det_only_methodMetrics, 'per_sample': perSampleMetrics} + + + return resDict; + + + +def text_eval_main_ic15(det_file, gt_file, is_word_spotting): + global WORD_SPOTTING + WORD_SPOTTING = is_word_spotting + p = { + 'g': gt_file, + 's': det_file + } + return rrc_evaluation_funcs.main_evaluation(p,default_evaluation_params,validate_data,evaluate_method) diff --git a/AdelaiDet/adet/evaluation/text_evaluation_all.py b/AdelaiDet/adet/evaluation/text_evaluation_all.py new file mode 100755 index 0000000..1021d3c --- /dev/null +++ b/AdelaiDet/adet/evaluation/text_evaluation_all.py @@ -0,0 +1,505 @@ +import contextlib +import copy +import io +import itertools +import json +import logging +import numpy as np +import os +import re +import torch +from collections import OrderedDict +from fvcore.common.file_io import PathManager +from pycocotools.coco import COCO + +from detectron2.utils import comm +from detectron2.data import MetadataCatalog +from detectron2.evaluation.evaluator import DatasetEvaluator + +import glob +import shutil +from shapely.geometry import Polygon, LinearRing +from adet.evaluation import text_eval_script +from adet.evaluation import text_eval_script_ic15 +import zipfile +import pickle +import editdistance +import cv2 +class TextEvaluator(): + """ + Evaluate text proposals and recognition. + """ + + def __init__(self, dataset_name, cfg, distributed, output_dir=None): + self._tasks = ("polygon", "recognition") + self._distributed = distributed + self._output_dir = output_dir + + self._cpu_device = torch.device("cpu") + self._logger = logging.getLogger(__name__) + + self._metadata = MetadataCatalog.get(dataset_name) + if not hasattr(self._metadata, "json_file"): + raise AttributeError( + f"json_file was not found in MetaDataCatalog for '{dataset_name}'." + ) + + self.voc_size = cfg.MODEL.BATEXT.VOC_SIZE + self.use_customer_dictionary = cfg.MODEL.BATEXT.CUSTOM_DICT + if not self.use_customer_dictionary: + self.CTLABELS = [' ','!','"','#','$','%','&','\'','(',')','*','+',',','-','.','/','0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?','@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','[','\\',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~'] + else: + with open(self.use_customer_dictionary, 'rb') as fp: + self.CTLABELS = pickle.load(fp) + assert(int(self.voc_size - 1) == len(self.CTLABELS)), "voc_size is not matched dictionary size, got {} and {}.".format(int(self.voc_size - 1), len(self.CTLABELS)) + + json_file = PathManager.get_local_path(self._metadata.json_file) + with contextlib.redirect_stdout(io.StringIO()): + self._coco_api = COCO(json_file) + self.dataset_name = dataset_name + # use dataset_name to decide eval_gt_path + self.lexicon_type = cfg.MODEL.BATEXT.EVAL_TYPE + if "totaltext" in dataset_name: + self._text_eval_gt_path = "datasets/evaluation/gt_totaltext.zip" + self._word_spotting = True + self.dataset_name = "totaltext" + elif "ctw1500" in dataset_name: + self._text_eval_gt_path = "datasets/evaluation/gt_ctw1500.zip" + self._word_spotting = False + self.dataset_name = "ctw1500" + elif "icdar2015" in dataset_name: + self._text_eval_gt_path = "datasets/evaluation/gt_icdar2015.zip" + self._word_spotting = False + self.dataset_name = "icdar2015" + elif "custom" in dataset_name: + self._text_eval_gt_path = "datasets/evaluation/gt_custom.zip" + self._word_spotting = False + + self._text_eval_confidence = cfg.MODEL.FCOS.INFERENCE_TH_TEST + def reset(self): + self._predictions = [] + + def process(self, inputs, outputs): + for input, output in zip(inputs, outputs): + prediction = {"image_id": input["image_id"]} + instances = output["instances"].to(self._cpu_device) + prediction["instances"] = self.instances_to_coco_json(instances, input) + self._predictions.append(prediction) + + def to_eval_format(self, file_path, temp_dir="temp_det_results", cf_th=0.5): + def fis_ascii(s): + a = (ord(c) < 128 for c in s) + return all(a) + + def de_ascii(s): + a = [c for c in s if ord(c) < 128] + outa = '' + for i in a: + outa +=i + return outa + + with open(file_path, 'r') as f: + data = json.load(f) + with open('temp_all_det_cors.txt', 'w') as f2: + for ix in range(len(data)): + if data[ix]['score'] > 0.1: + outstr = '{}: '.format(data[ix]['image_id']) + xmin = 1000000 + ymin = 1000000 + xmax = 0 + ymax = 0 + for i in range(len(data[ix]['polys'])): + outstr = outstr + str(int(data[ix]['polys'][i][0])) +','+str(int(data[ix]['polys'][i][1])) +',' + # ass = de_ascii(data[ix]['rec']) + ass = str(data[ix]['rec']) + if len(ass)>=0: # + outstr = outstr + str(round(data[ix]['score'], 3)) +',####'+ass+'\n' + f2.writelines(outstr) + f2.close() + dirn = temp_dir + lsc = [cf_th] + fres = open('temp_all_det_cors.txt', 'r').readlines() + for isc in lsc: + if not os.path.isdir(dirn): + os.mkdir(dirn) + for line in fres: + line = line.strip() + s = line.split(': ') + filename = '{:07d}.txt'.format(int(s[0])) + outName = os.path.join(dirn, filename) + with open(outName, 'a') as fout: + ptr = s[1].strip().split(',####') + score = ptr[0].split(',')[-1] + if float(score) < isc: + continue + if "icdar2015" in self.dataset_name and float(score) < 0.45: + continue + cors = ','.join(e for e in ptr[0].split(',')[:-1]) + fout.writelines(cors+',####'+str(ptr[1])+'\n') + os.remove("temp_all_det_cors.txt") + + def sort_detection(self, temp_dir): + origin_file = temp_dir + output_file = "final_"+temp_dir + output_file_full = "full_final_"+temp_dir + if not os.path.isdir(output_file_full): + os.mkdir(output_file_full) + if not os.path.isdir(output_file): + os.mkdir(output_file) + files = glob.glob(origin_file+'*.txt') + files.sort() + if "totaltext" in self.dataset_name: + if not self.lexicon_type == None: + lexicon_path = 'datasets/totaltext/weak_voc_new.txt' + lexicon_fid=open(lexicon_path, 'r') + pair_list = open('datasets/totaltext/weak_voc_pair_list.txt', 'r') + pairs = dict() + for line in pair_list.readlines(): + line=line.strip() + word = line.split(' ')[0].upper() + word_gt = line[len(word)+1:] + pairs[word] = word_gt + lexicon_fid=open(lexicon_path, 'r') + lexicon=[] + for line in lexicon_fid.readlines(): + line=line.strip() + lexicon.append(line) + elif "ctw1500" in self.dataset_name: + if not self.lexicon_type == None: + lexicon_path = 'datasets/CTW1500/weak_voc_new.txt' + lexicon_fid=open(lexicon_path, 'r') + pair_list = open('datasets/CTW1500/weak_voc_pair_list.txt', 'r') + pairs = dict() + lexicon_fid=open(lexicon_path, 'r') + lexicon=[] + for line in lexicon_fid.readlines(): + line=line.strip() + lexicon.append(line) + pairs[line.upper()] = line + elif "icdar2015" in self.dataset_name: + if self.lexicon_type==1: + # generic lexicon + lexicon_path = 'datasets/icdar2015/GenericVocabulary_new.txt' + lexicon_fid=open(lexicon_path, 'r') + pair_list = open('datasets/icdar2015/GenericVocabulary_pair_list.txt', 'r') + pairs = dict() + for line in pair_list.readlines(): + line=line.strip() + word = line.split(' ')[0].upper() + word_gt = line[len(word)+1:] + pairs[word] = word_gt + lexicon_fid=open(lexicon_path, 'r') + lexicon=[] + for line in lexicon_fid.readlines(): + line=line.strip() + lexicon.append(line) + if self.lexicon_type==2: + # weak lexicon + lexicon_path = 'datasets/icdar2015/ch4_test_vocabulary_new.txt' + lexicon_fid=open(lexicon_path, 'r') + pair_list = open('datasets/icdar2015/ch4_test_vocabulary_pair_list.txt', 'r') + pairs = dict() + for line in pair_list.readlines(): + line=line.strip() + word = line.split(' ')[0].upper() + word_gt = line[len(word)+1:] + pairs[word] = word_gt + lexicon_fid=open(lexicon_path, 'r') + lexicon=[] + for line in lexicon_fid.readlines(): + line=line.strip() + lexicon.append(line) + + def find_match_word(rec_str, pairs, lexicon=None): + rec_str = rec_str.upper() + dist_min = 100 + dist_min_pre = 100 + match_word = '' + match_dist = 100 + for word in lexicon: + word = word.upper() + ed = editdistance.eval(rec_str, word) + length_dist = abs(len(word) - len(rec_str)) + dist = ed + if dist ps[0][1]: + px1 = ps[0][0] * scale + start_x + py1 = ps[0][1] * scale + start_y + px4 = ps[1][0] * scale + start_x + py4 = ps[1][1] * scale + start_y + else: + px1 = ps[1][0] * scale + start_x + py1 = ps[1][1] * scale + start_y + px4 = ps[0][0] * scale + start_x + py4 = ps[0][1] * scale + start_y + if ps[3][1] > ps[2][1]: + px2 = ps[2][0] * scale + start_x + py2 = ps[2][1] * scale + start_y + px3 = ps[3][0] * scale + start_x + py3 = ps[3][1] * scale + start_y + else: + px2 = ps[3][0] * scale + start_x + py2 = ps[3][1] * scale + start_y + px3 = ps[2][0] * scale + start_x + py3 = ps[2][1] * scale + start_y + + px1 = min(max(px1, 1), image_width - 1) + px2 = min(max(px2, 1), image_width - 1) + px3 = min(max(px3, 1), image_width - 1) + px4 = min(max(px4, 1), image_width - 1) + py1 = min(max(py1, 1), image_height - 1) + py2 = min(max(py2, 1), image_height - 1) + py3 = min(max(py3, 1), image_height - 1) + py4 = min(max(py4, 1), image_height - 1) + return [px1, py1, px2, py2, px3, py3, px4, py4] diff --git a/AdelaiDet/adet/layers/__init__.py b/AdelaiDet/adet/layers/__init__.py new file mode 100755 index 0000000..ca175b5 --- /dev/null +++ b/AdelaiDet/adet/layers/__init__.py @@ -0,0 +1,10 @@ +from .deform_conv import DFConv2d +from .ml_nms import ml_nms +from .iou_loss import IOULoss +from .conv_with_kaiming_uniform import conv_with_kaiming_uniform +from .bezier_align import BezierAlign +from .def_roi_align import DefROIAlign +from .naive_group_norm import NaiveGroupNorm +from .gcn import GCN + +__all__ = [k for k in globals().keys() if not k.startswith("_")] \ No newline at end of file diff --git a/AdelaiDet/adet/layers/bezier_align.py b/AdelaiDet/adet/layers/bezier_align.py new file mode 100755 index 0000000..435adf7 --- /dev/null +++ b/AdelaiDet/adet/layers/bezier_align.py @@ -0,0 +1,97 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +from torch import nn +from torch.autograd import Function +from torch.autograd.function import once_differentiable +from torch.nn.modules.utils import _pair + +from adet import _C + + +class _BezierAlign(Function): + @staticmethod + def forward(ctx, input, roi, output_size, spatial_scale, sampling_ratio, aligned): + ctx.save_for_backward(roi) + ctx.output_size = _pair(output_size) + ctx.spatial_scale = spatial_scale + ctx.sampling_ratio = sampling_ratio + ctx.input_shape = input.size() + ctx.aligned = aligned + output = _C.bezier_align_forward( + input, roi, spatial_scale, output_size[0], output_size[1], sampling_ratio, aligned + ) + return output + + @staticmethod + @once_differentiable + def backward(ctx, grad_output): + rois, = ctx.saved_tensors + output_size = ctx.output_size + spatial_scale = ctx.spatial_scale + sampling_ratio = ctx.sampling_ratio + bs, ch, h, w = ctx.input_shape + grad_input = _C.bezier_align_backward( + grad_output, + rois, + spatial_scale, + output_size[0], + output_size[1], + bs, + ch, + h, + w, + sampling_ratio, + ctx.aligned, + ) + return grad_input, None, None, None, None, None + + +bezier_align = _BezierAlign.apply + + +class BezierAlign(nn.Module): + def __init__(self, output_size, spatial_scale, sampling_ratio, aligned=True): + """ + Args: + output_size (tuple): h, w + spatial_scale (float): scale the input boxes by this number + sampling_ratio (int): number of inputs samples to take for each output + sample. 0 to take samples densely. + aligned (bool): if False, use the legacy implementation in + Detectron. If True, align the results more perfectly. + + Note: + The meaning of aligned=True: + + With `aligned=True`, + we first appropriately scale the ROI and then shift it by -0.5 + prior to calling bezier_align. This produces the correct neighbors; see + adet/tests/test_bezier_align.py for verification. + + The difference does not make a difference to the model's performance if + ROIAlign is used together with conv layers. + """ + super(BezierAlign, self).__init__() + self.output_size = output_size + self.spatial_scale = spatial_scale + self.sampling_ratio = sampling_ratio + self.aligned = aligned + + def forward(self, input, rois): + """ + Args: + input: NCHW images + rois: Bx17 boxes. First column is the index into N. The other 16 columns are [xy]x8. + """ + assert rois.dim() == 2 and rois.size(1) == 17 + return bezier_align( + input, rois, self.output_size, self.spatial_scale, self.sampling_ratio, self.aligned + ) + + def __repr__(self): + tmpstr = self.__class__.__name__ + "(" + tmpstr += "output_size=" + str(self.output_size) + tmpstr += ", spatial_scale=" + str(self.spatial_scale) + tmpstr += ", sampling_ratio=" + str(self.sampling_ratio) + tmpstr += ", aligned=" + str(self.aligned) + tmpstr += ")" + return tmpstr diff --git a/AdelaiDet/adet/layers/conv_with_kaiming_uniform.py b/AdelaiDet/adet/layers/conv_with_kaiming_uniform.py new file mode 100755 index 0000000..88cb682 --- /dev/null +++ b/AdelaiDet/adet/layers/conv_with_kaiming_uniform.py @@ -0,0 +1,52 @@ +from torch import nn + +from detectron2.layers import Conv2d +from .deform_conv import DFConv2d +from detectron2.layers.batch_norm import get_norm + + +def conv_with_kaiming_uniform( + norm=None, activation=None, + use_deformable=False, use_sep=False): + def make_conv( + in_channels, out_channels, kernel_size, stride=1, dilation=1 + ): + if use_deformable: + conv_func = DFConv2d + else: + conv_func = Conv2d + if use_sep: + assert in_channels == out_channels + groups = in_channels + else: + groups = 1 + conv = conv_func( + in_channels, + out_channels, + kernel_size=kernel_size, + stride=stride, + padding=dilation * (kernel_size - 1) // 2, + dilation=dilation, + groups=groups, + bias=(norm is None) + ) + if not use_deformable: + # Caffe2 implementation uses XavierFill, which in fact + # corresponds to kaiming_uniform_ in PyTorch + nn.init.kaiming_uniform_(conv.weight, a=1) + if norm is None: + nn.init.constant_(conv.bias, 0) + module = [conv,] + if norm is not None and len(norm) > 0: + if norm == "GN": + norm_module = nn.GroupNorm(32, out_channels) + else: + norm_module = get_norm(norm, out_channels) + module.append(norm_module) + if activation is not None: + module.append(nn.ReLU(inplace=True)) + if len(module) > 1: + return nn.Sequential(*module) + return conv + + return make_conv diff --git a/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h b/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h new file mode 100755 index 0000000..2808f28 --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign.h @@ -0,0 +1,130 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +#pragma once +#include + +namespace adet { + +at::Tensor BezierAlign_forward_cpu( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + bool aligned); + +at::Tensor BezierAlign_backward_cpu( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + bool aligned); + +#ifdef WITH_CUDA +at::Tensor BezierAlign_forward_cuda( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + bool aligned); + +at::Tensor BezierAlign_backward_cuda( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + bool aligned); +#endif + +// Interface for Python +inline at::Tensor BezierAlign_forward( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + bool aligned) { + if (input.type().is_cuda()) { +#ifdef WITH_CUDA + return BezierAlign_forward_cuda( + input, + rois, + spatial_scale, + pooled_height, + pooled_width, + sampling_ratio, + aligned); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + return BezierAlign_forward_cpu( + input, + rois, + spatial_scale, + pooled_height, + pooled_width, + sampling_ratio, + aligned); +} + +inline at::Tensor BezierAlign_backward( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + bool aligned) { + if (grad.type().is_cuda()) { +#ifdef WITH_CUDA + return BezierAlign_backward_cuda( + grad, + rois, + spatial_scale, + pooled_height, + pooled_width, + batch_size, + channels, + height, + width, + sampling_ratio, + aligned); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + return BezierAlign_backward_cpu( + grad, + rois, + spatial_scale, + pooled_height, + pooled_width, + batch_size, + channels, + height, + width, + sampling_ratio, + aligned); +} + +} // namespace detectron2 diff --git a/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp b/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp new file mode 100755 index 0000000..1809509 --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cpu.cpp @@ -0,0 +1,567 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +#include +#include "BezierAlign.h" + +namespace { + +// implementation taken from Caffe2 +template +struct PreCalc { + int pos1; + int pos2; + int pos3; + int pos4; + T w1; + T w2; + T w3; + T w4; +}; + + +template +T bezier_curve( + const T p0, + const T p1, + const T p2, + const T p3, + const T u) { + return ( + (1. - u) * (1. - u) * (1. - u) * p0 + + 3. * u * (1. - u) * (1. - u) * p1 + + 3. * u * u * (1. - u) * p2 + + u * u * u * p3); +} + + +template +void pre_calc_for_bilinear_interpolate( + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int iy_upper, + const int ix_upper, + T p0_x, T p0_y, T p1_x, T p1_y, + T p2_x, T p2_y, T p3_x, T p3_y, + T p4_x, T p4_y, T p5_x, T p5_y, + T p6_x, T p6_y, T p7_x, T p7_y, + T bin_size_h, + T bin_size_w, + int roi_bin_grid_h, + int roi_bin_grid_w, + std::vector>& pre_calc) { + int pre_calc_index = 0; + for (int ph = 0; ph < pooled_height; ph++) { + for (int pw = 0; pw < pooled_width; pw++) { + // compute the coords + const T u = pw / static_cast(pooled_width); + const T v = ph / static_cast(pooled_height); + const T x0 = bezier_curve(p0_x, p1_x, p2_x, p3_x, u); + const T y0 = bezier_curve(p0_y, p1_y, p2_y, p3_y, u); + const T x1 = bezier_curve(p4_x, p5_x, p6_x, p7_x, u); + const T y1 = bezier_curve(p4_y, p5_y, p6_y, p7_y, u); + const T x_center = x1 * v + x0 * (1. - v); + const T y_center = y1 * v + y0 * (1. - v); + for (int iy = 0; iy < iy_upper; iy++) { + const T yy = y_center - (T)0.5 * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < ix_upper; ix++) { + const T xx = x_center - (T)0.5 * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + T x = xx; + T y = yy; + // deal with: inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + PreCalc pc; + pc.pos1 = 0; + pc.pos2 = 0; + pc.pos3 = 0; + pc.pos4 = 0; + pc.w1 = 0; + pc.w2 = 0; + pc.w3 = 0; + pc.w4 = 0; + pre_calc[pre_calc_index] = pc; + pre_calc_index += 1; + continue; + } + + if (y <= 0) { + y = 0; + } + if (x <= 0) { + x = 0; + } + + int y_low = (int)y; + int x_low = (int)x; + int y_high; + int x_high; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + T w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + // save weights and indices + PreCalc pc; + pc.pos1 = y_low * width + x_low; + pc.pos2 = y_low * width + x_high; + pc.pos3 = y_high * width + x_low; + pc.pos4 = y_high * width + x_high; + pc.w1 = w1; + pc.w2 = w2; + pc.w3 = w3; + pc.w4 = w4; + pre_calc[pre_calc_index] = pc; + + pre_calc_index += 1; + } + } + } + } +} + +template +void BezierAlignForward( + const int nthreads, + const T* input, + const T& spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const T* rois, + T* output, + bool aligned) { + int n_rois = nthreads / channels / pooled_width / pooled_height; + // (n, c, ph, pw) is an element in the pooled output + // can be parallelized using omp + // #pragma omp parallel for num_threads(32) + for (int n = 0; n < n_rois; n++) { + int index_n = n * channels * pooled_width * pooled_height; + + // beziers have size Nx(1+8*2) = Nx17 + const T* offset_rois = rois + n * 17; + int roi_batch_ind = offset_rois[0]; + + T offset = aligned ? (T)0.5 : (T)0.0; + // Do not use rounding; this implementation detail is critical + T p0_x = offset_rois[1] * spatial_scale; + T p0_y = offset_rois[2] * spatial_scale; + T p1_x = offset_rois[3] * spatial_scale; + T p1_y = offset_rois[4] * spatial_scale; + T p2_x = offset_rois[5] * spatial_scale; + T p2_y = offset_rois[6] * spatial_scale; + T p3_x = offset_rois[7] * spatial_scale; + T p3_y = offset_rois[8] * spatial_scale; + T p4_x = offset_rois[15] * spatial_scale; + T p4_y = offset_rois[16] * spatial_scale; + T p5_x = offset_rois[13] * spatial_scale; + T p5_y = offset_rois[14] * spatial_scale; + T p6_x = offset_rois[11] * spatial_scale; + T p6_y = offset_rois[12] * spatial_scale; + T p7_x = offset_rois[9 ] * spatial_scale; + T p7_y = offset_rois[10] * spatial_scale; + + T roi_width = std::max(std::abs(p0_x - p3_x), std::abs(p4_x - p7_x)); + T roi_height = std::max(std::abs(p0_y - p3_y), std::abs(p4_y - p7_y)); + if (aligned) { + AT_ASSERTM( + roi_width >= 0 && roi_height >= 0, + "ROIs in ROIAlign cannot have non-negative size!"); + } else { // for backward-compatibility only + roi_width = std::max(roi_width, (T)1.); + roi_height = std::max(roi_height, (T)1.); + } + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // We do average (integral) pooling inside a bin + // When the grid is empty, output zeros == 0/1, instead of NaN. + const T count = std::max(roi_bin_grid_h * roi_bin_grid_w, 1); // e.g. = 4 + + // we want to precalculate indices and weights shared by all channels, + // this is the key point of optimization + std::vector> pre_calc( + roi_bin_grid_h * roi_bin_grid_w * pooled_width * pooled_height); + pre_calc_for_bilinear_interpolate( + height, + width, + pooled_height, + pooled_width, + roi_bin_grid_h, + roi_bin_grid_w, + p0_x, p0_y, p1_x, p1_y, + p2_x, p2_y, p3_x, p3_y, + p4_x, p4_y, p5_x, p5_y, + p6_x, p6_y, p7_x, p7_y, + bin_size_h, + bin_size_w, + roi_bin_grid_h, + roi_bin_grid_w, + pre_calc); + + for (int c = 0; c < channels; c++) { + int index_n_c = index_n + c * pooled_width * pooled_height; + const T* offset_input = + input + (roi_batch_ind * channels + c) * height * width; + int pre_calc_index = 0; + + for (int ph = 0; ph < pooled_height; ph++) { + for (int pw = 0; pw < pooled_width; pw++) { + int index = index_n_c + ph * pooled_width + pw; + + T output_val = 0.; + for (int iy = 0; iy < roi_bin_grid_h; iy++) { + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + PreCalc pc = pre_calc[pre_calc_index]; + output_val += pc.w1 * offset_input[pc.pos1] + + pc.w2 * offset_input[pc.pos2] + + pc.w3 * offset_input[pc.pos3] + pc.w4 * offset_input[pc.pos4]; + + pre_calc_index += 1; + } + } + output_val /= count; + + output[index] = output_val; + } // for pw + } // for ph + } // for c + } // for n +} + +template +void bilinear_interpolate_gradient( + const int height, + const int width, + T y, + T x, + T& w1, + T& w2, + T& w3, + T& w4, + int& x_low, + int& x_high, + int& y_low, + int& y_high, + const int index /* index for debug only*/) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + w1 = w2 = w3 = w4 = 0.; + x_low = x_high = y_low = y_high = -1; + return; + } + + if (y <= 0) + y = 0; + if (x <= 0) + x = 0; + + y_low = (int)y; + x_low = (int)x; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + + // reference in forward + // T v1 = input[y_low * width + x_low]; + // T v2 = input[y_low * width + x_high]; + // T v3 = input[y_high * width + x_low]; + // T v4 = input[y_high * width + x_high]; + // T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + return; +} + +template +inline void add(T* address, const T& val) { + *address += val; +} + +template +void BezierAlignBackward( + const int nthreads, + const T* grad_output, + const T& spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + T* grad_input, + const T* rois, + const int n_stride, + const int c_stride, + const int h_stride, + const int w_stride, + bool aligned) { + for (int index = 0; index < nthreads; index++) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + const T* offset_rois = rois + n * 17; + int roi_batch_ind = offset_rois[0]; + + // Do not use rounding; this implementation detail is critical + T offset = aligned ? (T)0.5 : (T)0.0; + T p0_x = offset_rois[1] * spatial_scale; + T p0_y = offset_rois[2] * spatial_scale; + T p1_x = offset_rois[3] * spatial_scale; + T p1_y = offset_rois[4] * spatial_scale; + T p2_x = offset_rois[5] * spatial_scale; + T p2_y = offset_rois[6] * spatial_scale; + T p3_x = offset_rois[7] * spatial_scale; + T p3_y = offset_rois[8] * spatial_scale; + T p4_x = offset_rois[15] * spatial_scale; + T p4_y = offset_rois[16] * spatial_scale; + T p5_x = offset_rois[13] * spatial_scale; + T p5_y = offset_rois[14] * spatial_scale; + T p6_x = offset_rois[11] * spatial_scale; + T p6_y = offset_rois[12] * spatial_scale; + T p7_x = offset_rois[9 ] * spatial_scale; + T p7_y = offset_rois[10] * spatial_scale; + + // compute the coords + const T u = pw / static_cast(pooled_width); + const T v = ph / static_cast(pooled_height); + const T x0 = bezier_curve(p0_x, p1_x, p2_x, p3_x, u); + const T y0 = bezier_curve(p0_y, p1_y, p2_y, p3_y, u); + const T x1 = bezier_curve(p4_x, p5_x, p6_x, p7_x, u); + const T y1 = bezier_curve(p4_y, p5_y, p6_y, p7_y, u); + const T x_center = x1 * v + x0 * (1. - v) - offset; + const T y_center = y1 * v + y0 * (1. - v) - offset; + + T roi_width = std::max(std::abs(p0_x - p3_x), std::abs(p4_x - p7_x)); + T roi_height = std::max(std::abs(p0_y - p3_y), std::abs(p4_y - p7_y)); + if (aligned) { + AT_ASSERTM( + roi_width >= 0 && roi_height >= 0, + "ROIs in ROIAlign do not have non-negative size!"); + } else { // for backward-compatibility only + roi_width = std::max(roi_width, (T)1.); + roi_height = std::max(roi_height, (T)1.); + } + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + T* offset_grad_input = + grad_input + ((roi_batch_ind * channels + c) * height * width); + + int output_offset = n * n_stride + c * c_stride; + const T* offset_grad_output = grad_output + output_offset; + const T grad_output_this_bin = + offset_grad_output[ph * h_stride + pw * w_stride]; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // We do average (integral) pooling inside a bin + const T count = roi_bin_grid_h * roi_bin_grid_w; // e.g. = 4 + + for (int iy = 0; iy < roi_bin_grid_h; iy++) { + const T y = y_center - (T)0.5 * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T x = x_center - (T)0.5 * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + T w1, w2, w3, w4; + int x_low, x_high, y_low, y_high; + + bilinear_interpolate_gradient( + height, + width, + y, + x, + w1, + w2, + w3, + w4, + x_low, + x_high, + y_low, + y_high, + index); + + T g1 = grad_output_this_bin * w1 / count; + T g2 = grad_output_this_bin * w2 / count; + T g3 = grad_output_this_bin * w3 / count; + T g4 = grad_output_this_bin * w4 / count; + + if (x_low >= 0 && x_high >= 0 && y_low >= 0 && y_high >= 0) { + // atomic add is not needed for now since it is single threaded + add(offset_grad_input + y_low * width + x_low, static_cast(g1)); + add(offset_grad_input + y_low * width + x_high, static_cast(g2)); + add(offset_grad_input + y_high * width + x_low, static_cast(g3)); + add(offset_grad_input + y_high * width + x_high, static_cast(g4)); + } // if + } // ix + } // iy + } // for +} // BezierAlignBackward + +} // namespace + +namespace adet { + +at::Tensor BezierAlign_forward_cpu( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + bool aligned) { + AT_ASSERTM(input.device().is_cpu(), "input must be a CPU tensor"); + AT_ASSERTM(rois.device().is_cpu(), "rois must be a CPU tensor"); + + at::TensorArg input_t{input, "input", 1}, rois_t{rois, "rois", 2}; + + at::CheckedFrom c = "BezierAlign_forward_cpu"; + at::checkAllSameType(c, {input_t, rois_t}); + + auto num_rois = rois.size(0); + auto channels = input.size(1); + auto height = input.size(2); + auto width = input.size(3); + + at::Tensor output = at::zeros( + {num_rois, channels, pooled_height, pooled_width}, input.options()); + + auto output_size = num_rois * pooled_height * pooled_width * channels; + + if (output.numel() == 0) + return output; + + AT_DISPATCH_FLOATING_TYPES_AND_HALF(input.type(), "BezierAlign_forward", [&] { + BezierAlignForward( + output_size, + input.contiguous().data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + rois.contiguous().data_ptr(), + output.data_ptr(), + aligned); + }); + return output; +} + +at::Tensor BezierAlign_backward_cpu( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + bool aligned) { + AT_ASSERTM(grad.device().is_cpu(), "grad must be a CPU tensor"); + AT_ASSERTM(rois.device().is_cpu(), "rois must be a CPU tensor"); + + at::TensorArg grad_t{grad, "grad", 1}, rois_t{rois, "rois", 2}; + + at::CheckedFrom c = "BezierAlign_backward_cpu"; + at::checkAllSameType(c, {grad_t, rois_t}); + + at::Tensor grad_input = + at::zeros({batch_size, channels, height, width}, grad.options()); + + // handle possibly empty gradients + if (grad.numel() == 0) { + return grad_input; + } + + // get stride values to ensure indexing into gradients is correct. + int n_stride = grad.stride(0); + int c_stride = grad.stride(1); + int h_stride = grad.stride(2); + int w_stride = grad.stride(3); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF(grad.type(), "BezierAlign_forward", [&] { + BezierAlignBackward( + grad.numel(), + grad.contiguous().data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + grad_input.data_ptr(), + rois.contiguous().data_ptr(), + n_stride, + c_stride, + h_stride, + w_stride, + aligned); + }); + return grad_input; +} + +} // namespace adet diff --git a/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cuda.cu b/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cuda.cu new file mode 100755 index 0000000..9581c9f --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/BezierAlign/BezierAlign_cuda.cu @@ -0,0 +1,491 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +#include +#include +#include +#include + +// TODO make it in a common file +#define CUDA_1D_KERNEL_LOOP(i, n) \ + for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \ + i += blockDim.x * gridDim.x) + + +template +__device__ T bezier_curve( + const T p0, + const T p1, + const T p2, + const T p3, + const T u) { + return ( + (1. - u) * (1. - u) * (1. - u) * p0 + + 3. * u * (1. - u) * (1. - u) * p1 + + 3. * u * u * (1. - u) * p2 + + u * u * u * p3); +} + +template +__device__ T bilinear_interpolate( + const T* bottom_data, + const int height, + const int width, + T y, + T x, + const int index /* index for debug only*/) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + return 0; + } + + if (y <= 0) + y = 0; + if (x <= 0) + x = 0; + + int y_low = (int)y; + int x_low = (int)x; + int y_high; + int x_high; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + // do bilinear interpolation + T v1 = bottom_data[y_low * width + x_low]; + T v2 = bottom_data[y_low * width + x_high]; + T v3 = bottom_data[y_high * width + x_low]; + T v4 = bottom_data[y_high * width + x_high]; + T w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + return val; +} + +template +__global__ void BezierAlignForward( + const int nthreads, + const T* bottom_data, + const T spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const T* bottom_rois, // bottom rois contains the bezier curve + T* top_data, + bool aligned) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + // beziers have size Nx(1+8*2) = Nx17 + const T* offset_bottom_rois = bottom_rois + n * 17; + int roi_batch_ind = offset_bottom_rois[0]; + + // Do not use rounding; this implementation detail is critical + T offset = aligned ? (T)0.5 : (T)0.0; + + // TODO: avoid this by using parallel annotation, for good + T p0_x = offset_bottom_rois[1 ] * spatial_scale; + T p0_y = offset_bottom_rois[2 ] * spatial_scale; + T p1_x = offset_bottom_rois[3 ] * spatial_scale; + T p1_y = offset_bottom_rois[4 ] * spatial_scale; + T p2_x = offset_bottom_rois[5 ] * spatial_scale; + T p2_y = offset_bottom_rois[6 ] * spatial_scale; + T p3_x = offset_bottom_rois[7 ] * spatial_scale; + T p3_y = offset_bottom_rois[8 ] * spatial_scale; + T p4_x = offset_bottom_rois[15] * spatial_scale; + T p4_y = offset_bottom_rois[16] * spatial_scale; + T p5_x = offset_bottom_rois[13] * spatial_scale; + T p5_y = offset_bottom_rois[14] * spatial_scale; + T p6_x = offset_bottom_rois[11] * spatial_scale; + T p6_y = offset_bottom_rois[12] * spatial_scale; + T p7_x = offset_bottom_rois[9 ] * spatial_scale; + T p7_y = offset_bottom_rois[10] * spatial_scale; + + // compute the coords + const T u = pw / static_cast(pooled_width); + const T v = ph / static_cast(pooled_height); + const T x0 = bezier_curve(p0_x, p1_x, p2_x, p3_x, u); + const T y0 = bezier_curve(p0_y, p1_y, p2_y, p3_y, u); + const T x1 = bezier_curve(p4_x, p5_x, p6_x, p7_x, u); + const T y1 = bezier_curve(p4_y, p5_y, p6_y, p7_y, u); + const T x_center = x1 * v + x0 * (1. - v) - offset; + const T y_center = y1 * v + y0 * (1. - v) - offset; + + T roi_width = max(abs(p0_x - p3_x), abs(p4_x - p7_x)); + T roi_height = max(abs(p0_y - p3_y), abs(p4_y - p7_y)); + if (!aligned) { // for backward-compatibility only + roi_width = max(roi_width, (T)1.); + roi_height = max(roi_height, (T)1.); + } + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + const T* offset_bottom_data = + bottom_data + (roi_batch_ind * channels + c) * height * width; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // We do average (integral) pooling inside a bin + // When the grid is empty, output zeros == 0/1, instead of NaN. + const T count = max(roi_bin_grid_h * roi_bin_grid_w, 1); // e.g. = 4 + + T output_val = 0.; + for (int iy = 0; iy < roi_bin_grid_h; iy++) // e.g., iy = 0, 1 + { + const T y = y_center - (T)0.5 * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T x = x_center - (T)0.5 * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + T val = bilinear_interpolate( + offset_bottom_data, height, width, y, x, index); + output_val += val; + } + } + output_val /= count; + + top_data[index] = output_val; + } +} + +template +__device__ void bilinear_interpolate_gradient( + const int height, + const int width, + T y, + T x, + T& w1, + T& w2, + T& w3, + T& w4, + int& x_low, + int& x_high, + int& y_low, + int& y_high, + const int index /* index for debug only*/) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + w1 = w2 = w3 = w4 = 0.; + x_low = x_high = y_low = y_high = -1; + return; + } + + if (y <= 0) + y = 0; + if (x <= 0) + x = 0; + + y_low = (int)y; + x_low = (int)x; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + + // reference in forward + // T v1 = bottom_data[y_low * width + x_low]; + // T v2 = bottom_data[y_low * width + x_high]; + // T v3 = bottom_data[y_high * width + x_low]; + // T v4 = bottom_data[y_high * width + x_high]; + // T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + return; +} + +template +__global__ void BezierAlignBackwardFeature( + const int nthreads, + const T* top_diff, + const int num_rois, + const T spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + T* bottom_diff, + const T* bottom_rois, + bool aligned) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + // beziers have size Nx(1+8*2) = Nx17 + const T* offset_bottom_rois = bottom_rois + n * 17; + int roi_batch_ind = offset_bottom_rois[0]; + + // Do not use rounding; this implementation detail is critical + T offset = aligned ? (T)0.5 : (T)0.0; + T p0_x = offset_bottom_rois[1 ] * spatial_scale; + T p0_y = offset_bottom_rois[2 ] * spatial_scale; + T p1_x = offset_bottom_rois[3 ] * spatial_scale; + T p1_y = offset_bottom_rois[4 ] * spatial_scale; + T p2_x = offset_bottom_rois[5 ] * spatial_scale; + T p2_y = offset_bottom_rois[6 ] * spatial_scale; + T p3_x = offset_bottom_rois[7 ] * spatial_scale; + T p3_y = offset_bottom_rois[8 ] * spatial_scale; + T p4_x = offset_bottom_rois[15] * spatial_scale; + T p4_y = offset_bottom_rois[16] * spatial_scale; + T p5_x = offset_bottom_rois[13] * spatial_scale; + T p5_y = offset_bottom_rois[14] * spatial_scale; + T p6_x = offset_bottom_rois[11] * spatial_scale; + T p6_y = offset_bottom_rois[12] * spatial_scale; + T p7_x = offset_bottom_rois[9 ] * spatial_scale; + T p7_y = offset_bottom_rois[10] * spatial_scale; + + // compute the coords + const T u = pw / static_cast(pooled_width); + const T v = ph / static_cast(pooled_height); + const T x0 = bezier_curve(p0_x, p1_x, p2_x, p3_x, u); + const T y0 = bezier_curve(p0_y, p1_y, p2_y, p3_y, u); + const T x1 = bezier_curve(p4_x, p5_x, p6_x, p7_x, u); + const T y1 = bezier_curve(p4_y, p5_y, p6_y, p7_y, u); + const T x_center = x1 * v + x0 * (1. - v) - offset; + const T y_center = y1 * v + y0 * (1. - v) - offset; + + T roi_width = max(abs(p0_x - p3_x), abs(p4_x - p7_x)); + T roi_height = max(abs(p0_y - p3_y), abs(p4_y - p7_y)); + if (!aligned) { // for backward-compatibility only + roi_width = max(roi_width, (T)1.); + roi_height = max(roi_height, (T)1.); + } + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + T* offset_bottom_diff = + bottom_diff + (roi_batch_ind * channels + c) * height * width; + + int top_offset = (n * channels + c) * pooled_height * pooled_width; + const T* offset_top_diff = top_diff + top_offset; + const T top_diff_this_bin = offset_top_diff[ph * pooled_width + pw]; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // We do average (integral) pooling inside a bin + const T count = roi_bin_grid_h * roi_bin_grid_w; // e.g. = 4 + + for (int iy = 0; iy < roi_bin_grid_h; iy++) // e.g., iy = 0, 1 + { + const T y = y_center - (T)0.5 * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T x = x_center - (T)0.5 * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + T w1, w2, w3, w4; + int x_low, x_high, y_low, y_high; + + bilinear_interpolate_gradient( + height, + width, + y, + x, + w1, + w2, + w3, + w4, + x_low, + x_high, + y_low, + y_high, + index); + + T g1 = top_diff_this_bin * w1 / count; + T g2 = top_diff_this_bin * w2 / count; + T g3 = top_diff_this_bin * w3 / count; + T g4 = top_diff_this_bin * w4 / count; + + if (x_low >= 0 && x_high >= 0 && y_low >= 0 && y_high >= 0) { + atomicAdd( + offset_bottom_diff + y_low * width + x_low, static_cast(g1)); + atomicAdd( + offset_bottom_diff + y_low * width + x_high, static_cast(g2)); + atomicAdd( + offset_bottom_diff + y_high * width + x_low, static_cast(g3)); + atomicAdd( + offset_bottom_diff + y_high * width + x_high, static_cast(g4)); + } // if + } // ix + } // iy + } // CUDA_1D_KERNEL_LOOP +} // RoIAlignBackward + +namespace adet { + +at::Tensor BezierAlign_forward_cuda( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + bool aligned) { + AT_ASSERTM(input.device().is_cuda(), "input must be a CUDA tensor"); + AT_ASSERTM(rois.device().is_cuda(), "rois must be a CUDA tensor"); + at::TensorArg input_t{input, "input", 1}, rois_t{rois, "rois", 2}; + + at::CheckedFrom c = "ROIAlign_forward_cuda"; + at::checkAllSameGPU(c, {input_t, rois_t}); + at::checkAllSameType(c, {input_t, rois_t}); + at::cuda::CUDAGuard device_guard(input.device()); + + auto num_rois = rois.size(0); + auto channels = input.size(1); + auto height = input.size(2); + auto width = input.size(3); + + auto output = at::empty( + {num_rois, channels, pooled_height, pooled_width}, input.options()); + auto output_size = num_rois * pooled_height * pooled_width * channels; + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min( + at::cuda::ATenCeilDiv( + static_cast(output_size), static_cast(512)), + static_cast(4096))); + dim3 block(512); + + if (output.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return output; + } + + AT_DISPATCH_FLOATING_TYPES(input.scalar_type(), "BezierAlign_forward", [&] { + BezierAlignForward<<>>( + output_size, + input.contiguous().data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + rois.contiguous().data_ptr(), + output.data_ptr(), + aligned); + }); + cudaDeviceSynchronize(); + AT_CUDA_CHECK(cudaGetLastError()); + return output; +} + +// TODO remove the dependency on input and use instead its sizes -> save memory +at::Tensor BezierAlign_backward_cuda( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + bool aligned) { + AT_ASSERTM(grad.device().is_cuda(), "grad must be a CUDA tensor"); + AT_ASSERTM(rois.device().is_cuda(), "rois must be a CUDA tensor"); + + at::TensorArg grad_t{grad, "grad", 1}, rois_t{rois, "rois", 2}; + at::CheckedFrom c = "ROIAlign_backward_cuda"; + at::checkAllSameGPU(c, {grad_t, rois_t}); + at::checkAllSameType(c, {grad_t, rois_t}); + at::cuda::CUDAGuard device_guard(grad.device()); + + auto num_rois = rois.size(0); + auto grad_input = + at::zeros({batch_size, channels, height, width}, grad.options()); + + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min( + at::cuda::ATenCeilDiv( + static_cast(grad.numel()), static_cast(512)), + static_cast(4096))); + dim3 block(512); + + // handle possibly empty gradients + if (grad.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return grad_input; + } + + AT_DISPATCH_FLOATING_TYPES(grad.scalar_type(), "BezierAlign_backward", [&] { + BezierAlignBackwardFeature<<>>( + grad.numel(), + grad.contiguous().data_ptr(), + num_rois, + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + grad_input.data_ptr(), + rois.contiguous().data_ptr(), + aligned); + }); + AT_CUDA_CHECK(cudaGetLastError()); + return grad_input; +} + +} // namespace detectron2 diff --git a/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h b/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h new file mode 100755 index 0000000..bee6fcc --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign.h @@ -0,0 +1,107 @@ +#pragma once +#include + +namespace adet { + +#ifdef WITH_CUDA +at::Tensor DefROIAlign_forward_cuda( + const at::Tensor& input, + const at::Tensor& rois, + const at::Tensor& offsets, // def added + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const float trans_std, // def added + bool aligned); + +at::Tensor DefROIAlign_backward_cuda( + const at::Tensor& input, // def added + const at::Tensor& grad, + const at::Tensor& rois, + const at::Tensor& offsets, // def added + const at::Tensor& grad_offsets, // def added + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + const float trans_std, // def added + bool aligned); +#endif + +// Interface for Python +inline at::Tensor DefROIAlign_forward( + const at::Tensor& input, + const at::Tensor& rois, + const at::Tensor& offsets, // def added + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const float trans_std, // def added + bool aligned) { + if (input.type().is_cuda()) { +#ifdef WITH_CUDA + return DefROIAlign_forward_cuda( + input, + rois, + offsets, + spatial_scale, + pooled_height, + pooled_width, + sampling_ratio, + trans_std, + aligned); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + AT_ERROR("CPU version not supported"); +} + +inline at::Tensor DefROIAlign_backward( + const at::Tensor& input, // def added + const at::Tensor& grad, + const at::Tensor& rois, + const at::Tensor& offsets, // def added + const at::Tensor& grad_offsets, // def added + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + const float trans_std, // def added + bool aligned) { + if (grad.type().is_cuda()) { +#ifdef WITH_CUDA + return DefROIAlign_backward_cuda( + input, // def added + grad, + rois, + offsets, // def added + grad_offsets, // def added + spatial_scale, + pooled_height, + pooled_width, + batch_size, + channels, + height, + width, + sampling_ratio, + trans_std, // def added + aligned); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + AT_ERROR("CPU version not supported"); +} + +} // namespace adet diff --git a/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign_cuda.cu b/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign_cuda.cu new file mode 100755 index 0000000..65c68fc --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/DefROIAlign/DefROIAlign_cuda.cu @@ -0,0 +1,476 @@ +#include +#include +#include +#include + +// TODO make it in a common file +#define CUDA_1D_KERNEL_LOOP(i, n) \ + for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \ + i += blockDim.x * gridDim.x) + + +template +__device__ T bilinear_interpolate( + const T* bottom_data, + const int height, + const int width, + T y, + T x, + const int index /* index for debug only*/) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + return 0; + } + + if (y <= 0) + y = 0; + if (x <= 0) + x = 0; + + int y_low = (int)y; + int x_low = (int)x; + int y_high; + int x_high; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + // do bilinear interpolation + T v1 = bottom_data[y_low * width + x_low]; + T v2 = bottom_data[y_low * width + x_high]; + T v3 = bottom_data[y_high * width + x_low]; + T v4 = bottom_data[y_high * width + x_high]; + T w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + return val; +} + +template +__global__ void DefRoIAlignForward( + const int nthreads, + const T* bottom_data, + const T spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const T* bottom_rois, + const T* bottom_trans, // def added + const T trans_std, // def added + T* top_data, + bool aligned) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + const T* offset_bottom_rois = bottom_rois + n * 5; + int roi_batch_ind = offset_bottom_rois[0]; + + // Do not use rounding; this implementation detail is critical + T offset = aligned ? (T)0.5 : (T)0.0; + T roi_start_w = offset_bottom_rois[1] * spatial_scale - offset; + T roi_start_h = offset_bottom_rois[2] * spatial_scale - offset; + T roi_end_w = offset_bottom_rois[3] * spatial_scale - offset; + T roi_end_h = offset_bottom_rois[4] * spatial_scale - offset; + + T roi_width = roi_end_w - roi_start_w; + T roi_height = roi_end_h - roi_start_h; + if (!aligned) { // for backward-compatibility only + roi_width = max(roi_width, (T)1.); + roi_height = max(roi_height, (T)1.); + } + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + const T* offset_bottom_data = + bottom_data + (roi_batch_ind * channels + c) * height * width; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // roi output is the same size + T trans_x = bottom_trans[((n * 2) * pooled_height + ph) * pooled_width + pw] * trans_std; + T trans_y = bottom_trans[((n * 2 + 1) * pooled_height + ph) * pooled_width + pw] * trans_std; + + // We do average (integral) pooling inside a bin + // When the grid is empty, output zeros == 0/1, instead of NaN. + // Should make bin size adaptive as well + const T count = max(roi_bin_grid_h * roi_bin_grid_w, 1); // e.g. = 4 + + T output_val = 0.; + for (int iy = 0; iy < roi_bin_grid_h; iy++) // e.g., iy = 0, 1 + { + const T y = roi_start_h + ph * bin_size_h + trans_y * roi_height + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T x = roi_start_w + pw * bin_size_w + trans_x * roi_width + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + T val = bilinear_interpolate( + offset_bottom_data, height, width, y, x, index); + output_val += val; + } + } + output_val /= count; + + top_data[index] = output_val; + } +} + +template +__device__ void bilinear_interpolate_gradient( + const int height, + const int width, + T y, + T x, + T& w1, + T& w2, + T& w3, + T& w4, + int& x_low, + int& x_high, + int& y_low, + int& y_high, + const int index /* index for debug only*/) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + w1 = w2 = w3 = w4 = 0.; + x_low = x_high = y_low = y_high = -1; + return; + } + + if (y <= 0) + y = 0; + if (x <= 0) + x = 0; + + y_low = (int)y; + x_low = (int)x; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + + // reference in forward + // T v1 = bottom_data[y_low * width + x_low]; + // T v2 = bottom_data[y_low * width + x_high]; + // T v3 = bottom_data[y_high * width + x_low]; + // T v4 = bottom_data[y_high * width + x_high]; + // T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + return; +} + +template +__global__ void DefRoIAlignBackwardFeature( + const int nthreads, + const T* top_diff, + const int num_rois, + const T spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + T* bottom_diff, + T* bottom_trans_diff, // added for deformable + const T* bottom_data, // added for deformable + const T* bottom_rois, + const T* bottom_trans, // added for deformable + const T trans_std, // added for deformable + bool aligned) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + const T* offset_bottom_rois = bottom_rois + n * 5; + int roi_batch_ind = offset_bottom_rois[0]; + + // Do not use rounding; this implementation detail is critical + T offset = aligned ? (T)0.5 : (T)0.0; + T roi_start_w = offset_bottom_rois[1] * spatial_scale - offset; + T roi_start_h = offset_bottom_rois[2] * spatial_scale - offset; + T roi_end_w = offset_bottom_rois[3] * spatial_scale - offset; + T roi_end_h = offset_bottom_rois[4] * spatial_scale - offset; + + T roi_width = roi_end_w - roi_start_w; + T roi_height = roi_end_h - roi_start_h; + if (!aligned) { // for backward-compatibility only + roi_width = max(roi_width, (T)1.); + roi_height = max(roi_height, (T)1.); + } + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + T* offset_bottom_diff = + bottom_diff + (roi_batch_ind * channels + c) * height * width; + + // compute input data location for offset gradient + const T* offset_bottom_data = + bottom_data + (roi_batch_ind * channels + c) * height * width; + + + int top_offset = (n * channels + c) * pooled_height * pooled_width; + const T* offset_top_diff = top_diff + top_offset; + const T top_diff_this_bin = offset_top_diff[ph * pooled_width + pw]; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + T trans_x = bottom_trans[((n * 2) * pooled_height + ph) * pooled_width + pw] * trans_std; + T trans_y = bottom_trans[((n * 2 + 1) * pooled_height + ph) * pooled_width + pw] * trans_std; + + // We do average (integral) pooling inside a bin + const T count = roi_bin_grid_h * roi_bin_grid_w; // e.g. = 4 + + for (int iy = 0; iy < roi_bin_grid_h; iy++) // e.g., iy = 0, 1 + { + const T y = roi_start_h + ph * bin_size_h + trans_y * roi_height + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T x = roi_start_w + pw * bin_size_w + trans_x * roi_width + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + T w1, w2, w3, w4; + int x_low, x_high, y_low, y_high; + + bilinear_interpolate_gradient( + height, + width, + y, + x, + w1, + w2, + w3, + w4, + x_low, + x_high, + y_low, + y_high, + index); + + T g1 = top_diff_this_bin * w1 / count; + T g2 = top_diff_this_bin * w2 / count; + T g3 = top_diff_this_bin * w3 / count; + T g4 = top_diff_this_bin * w4 / count; + + if (x_low >= 0 && x_high >= 0 && y_low >= 0 && y_high >= 0) { + atomicAdd( + offset_bottom_diff + y_low * width + x_low, static_cast(g1)); + atomicAdd( + offset_bottom_diff + y_low * width + x_high, static_cast(g2)); + atomicAdd( + offset_bottom_diff + y_high * width + x_low, static_cast(g3)); + atomicAdd( + offset_bottom_diff + y_high * width + x_high, static_cast(g4)); + + T U00 = offset_bottom_data[y_low * width + x_low]; + T U01 = offset_bottom_data[y_high * width + x_low]; + T U10 = offset_bottom_data[y_low * width + x_high]; + T U11 = offset_bottom_data[y_high * width + x_high]; + T dist_x = x - x_low, dist_y = y - y_low; + T diff_val = top_diff_this_bin / count; + T diff_x = (U11 * dist_y + U10 * (1 - dist_y) - U01 * dist_y - U00 * (1 - dist_y)) * trans_std * diff_val; + diff_x *= roi_width; + T diff_y = (U11 * dist_x + U01 * (1 - dist_x) - U10 * dist_x - U00 * (1 - dist_x)) * trans_std * diff_val; + diff_y *= roi_height; + + atomicAdd(bottom_trans_diff + ((n * 2) * pooled_height + ph) * pooled_width + pw, diff_x); + atomicAdd(bottom_trans_diff + ((n * 2 + 1) * pooled_height + ph) * pooled_width + pw, diff_y); + } // if + } // ix + } // iy + } // CUDA_1D_KERNEL_LOOP +} // RoIAlignBackward + +namespace adet { + +at::Tensor DefROIAlign_forward_cuda( + const at::Tensor& input, + const at::Tensor& rois, + const at::Tensor& offsets, // def added + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const float trans_std, // def added + bool aligned) { + AT_ASSERTM(input.device().is_cuda(), "input must be a CUDA tensor"); + AT_ASSERTM(rois.device().is_cuda(), "rois must be a CUDA tensor"); + AT_ASSERTM(offsets.device().is_cuda(), "offsets must be a CUDA tensor"); + at::TensorArg input_t{input, "input", 1}, rois_t{rois, "rois", 2}, offsets_t{offsets, "offsets", 3}; + + at::CheckedFrom c = "DefROIAlign_forward_cuda"; + at::checkAllSameGPU(c, {input_t, rois_t, offsets_t}); + at::checkAllSameType(c, {input_t, rois_t, offsets_t}); + at::cuda::CUDAGuard device_guard(input.device()); + + auto num_rois = rois.size(0); + auto channels = input.size(1); + auto height = input.size(2); + auto width = input.size(3); + + auto output = at::empty( + {num_rois, channels, pooled_height, pooled_width}, input.options()); + auto output_size = num_rois * pooled_height * pooled_width * channels; + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min( + at::cuda::ATenCeilDiv( + static_cast(output_size), static_cast(512)), + static_cast(4096))); + dim3 block(512); + + if (output.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return output; + } + + AT_DISPATCH_FLOATING_TYPES(input.scalar_type(), "DefROIAlign_forward", [&] { + DefRoIAlignForward<<>>( + output_size, + input.contiguous().data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + rois.contiguous().data_ptr(), + offsets.contiguous().data_ptr(), // def added + trans_std, //def added + output.data_ptr(), + aligned); + }); + cudaDeviceSynchronize(); + AT_CUDA_CHECK(cudaGetLastError()); + return output; +} + +// TODO remove the dependency on input and use instead its sizes -> save memory +at::Tensor DefROIAlign_backward_cuda( + const at::Tensor& input, // def added + const at::Tensor& grad, + const at::Tensor& rois, + const at::Tensor& offsets, // def added + const at::Tensor& grad_offsets, // def added + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio, + const float trans_std, // def added + bool aligned) { + AT_ASSERTM(grad.device().is_cuda(), "grad must be a CUDA tensor"); + AT_ASSERTM(rois.device().is_cuda(), "rois must be a CUDA tensor"); + AT_ASSERTM(input.device().is_cuda(), "input must be a CUDA tensor"); + AT_ASSERTM(offsets.device().is_cuda(), "offsets must be a CUDA tensor"); + + at::TensorArg grad_t{grad, "grad", 1}, rois_t{rois, "rois", 2}, input_t{input, "input", 3}, offsets_t{offsets, "offsets", 4}; + at::CheckedFrom c = "DefROIAlign_backward_cuda"; + at::checkAllSameGPU(c, {grad_t, rois_t, input_t, offsets_t}); + at::checkAllSameType(c, {grad_t, rois_t, input_t, offsets_t}); + at::cuda::CUDAGuard device_guard(grad.device()); + + auto num_rois = rois.size(0); + auto grad_input = + at::zeros({batch_size, channels, height, width}, grad.options()); + + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min( + at::cuda::ATenCeilDiv( + static_cast(grad.numel()), static_cast(512)), + static_cast(4096))); + dim3 block(512); + + // handle possibly empty gradients + if (grad.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return grad_input; + } + + AT_DISPATCH_FLOATING_TYPES(grad.scalar_type(), "DefROIAlign_backward", [&] { + DefRoIAlignBackwardFeature<<>>( + grad.numel(), + grad.contiguous().data_ptr(), + num_rois, + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + grad_input.data_ptr(), + grad_offsets.data_ptr(), // def added + input.contiguous().data_ptr(), // def added + rois.contiguous().data_ptr(), + offsets.contiguous().data_ptr(), // def added + trans_std, // def added + aligned); + }); + AT_CUDA_CHECK(cudaGetLastError()); + return grad_input; +} + +} // namespace adet diff --git a/AdelaiDet/adet/layers/csrc/cuda_version.cu b/AdelaiDet/adet/layers/csrc/cuda_version.cu new file mode 100755 index 0000000..1b9bbfe --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/cuda_version.cu @@ -0,0 +1,7 @@ +#include + +namespace adet { +int get_cudart_version() { + return CUDART_VERSION; +} +} // namespace adet diff --git a/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.cu b/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.cu new file mode 100755 index 0000000..f1c1a42 --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.cu @@ -0,0 +1,139 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. +#include +#include +#include +#include + +#include +#include + +int const threadsPerBlock = sizeof(unsigned long long) * 8; + +__device__ inline float devIoU(float const * const a, float const * const b) { + if (a[5] != b[5]) { + return 0.0; + } + float left = max(a[0], b[0]), right = min(a[2], b[2]); + float top = max(a[1], b[1]), bottom = min(a[3], b[3]); + float width = max(right - left + 1, 0.f), height = max(bottom - top + 1, 0.f); + float interS = width * height; + float Sa = (a[2] - a[0] + 1) * (a[3] - a[1] + 1); + float Sb = (b[2] - b[0] + 1) * (b[3] - b[1] + 1); + return interS / (Sa + Sb - interS); +} + +__global__ void ml_nms_kernel(const int n_boxes, const float nms_overlap_thresh, + const float *dev_boxes, unsigned long long *dev_mask) { + const int row_start = blockIdx.y; + const int col_start = blockIdx.x; + + // if (row_start > col_start) return; + + const int row_size = + min(n_boxes - row_start * threadsPerBlock, threadsPerBlock); + const int col_size = + min(n_boxes - col_start * threadsPerBlock, threadsPerBlock); + + __shared__ float block_boxes[threadsPerBlock * 6]; + if (threadIdx.x < col_size) { + block_boxes[threadIdx.x * 6 + 0] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 6 + 0]; + block_boxes[threadIdx.x * 6 + 1] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 6 + 1]; + block_boxes[threadIdx.x * 6 + 2] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 6 + 2]; + block_boxes[threadIdx.x * 6 + 3] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 6 + 3]; + block_boxes[threadIdx.x * 6 + 4] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 6 + 4]; + block_boxes[threadIdx.x * 6 + 5] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 6 + 5]; + } + __syncthreads(); + + if (threadIdx.x < row_size) { + const int cur_box_idx = threadsPerBlock * row_start + threadIdx.x; + const float *cur_box = dev_boxes + cur_box_idx * 6; + int i = 0; + unsigned long long t = 0; + int start = 0; + if (row_start == col_start) { + start = threadIdx.x + 1; + } + for (i = start; i < col_size; i++) { + if (devIoU(cur_box, block_boxes + i * 6) > nms_overlap_thresh) { + t |= 1ULL << i; + } + } + const int col_blocks = THCCeilDiv(n_boxes, threadsPerBlock); + dev_mask[cur_box_idx * col_blocks + col_start] = t; + } +} + +namespace adet { + +// boxes is a N x 6 tensor +at::Tensor ml_nms_cuda(const at::Tensor boxes, const float nms_overlap_thresh) { + using scalar_t = float; + AT_ASSERTM(boxes.type().is_cuda(), "boxes must be a CUDA tensor"); + auto scores = boxes.select(1, 4); + auto order_t = std::get<1>(scores.sort(0, /* descending=*/true)); + auto boxes_sorted = boxes.index_select(0, order_t); + + int boxes_num = boxes.size(0); + + const int col_blocks = THCCeilDiv(boxes_num, threadsPerBlock); + + scalar_t* boxes_dev = boxes_sorted.data(); + + THCState *state = at::globalContext().lazyInitCUDA(); // TODO replace with getTHCState + + unsigned long long* mask_dev = NULL; + //THCudaCheck(THCudaMalloc(state, (void**) &mask_dev, + // boxes_num * col_blocks * sizeof(unsigned long long))); + + mask_dev = (unsigned long long*) THCudaMalloc(state, boxes_num * col_blocks * sizeof(unsigned long long)); + + dim3 blocks(THCCeilDiv(boxes_num, threadsPerBlock), + THCCeilDiv(boxes_num, threadsPerBlock)); + dim3 threads(threadsPerBlock); + ml_nms_kernel<<>>(boxes_num, + nms_overlap_thresh, + boxes_dev, + mask_dev); + + std::vector mask_host(boxes_num * col_blocks); + THCudaCheck(cudaMemcpy(&mask_host[0], + mask_dev, + sizeof(unsigned long long) * boxes_num * col_blocks, + cudaMemcpyDeviceToHost)); + + std::vector remv(col_blocks); + memset(&remv[0], 0, sizeof(unsigned long long) * col_blocks); + + at::Tensor keep = at::empty({boxes_num}, boxes.options().dtype(at::kLong).device(at::kCPU)); + int64_t* keep_out = keep.data(); + + int num_to_keep = 0; + for (int i = 0; i < boxes_num; i++) { + int nblock = i / threadsPerBlock; + int inblock = i % threadsPerBlock; + + if (!(remv[nblock] & (1ULL << inblock))) { + keep_out[num_to_keep++] = i; + unsigned long long *p = &mask_host[0] + i * col_blocks; + for (int j = nblock; j < col_blocks; j++) { + remv[j] |= p[j]; + } + } + } + + THCudaFree(state, mask_dev); + // TODO improve this part + return std::get<0>(order_t.index({ + keep.narrow(/*dim=*/0, /*start=*/0, /*length=*/num_to_keep).to( + order_t.device(), keep.scalar_type()) + }).sort(0, false)); +} + +} // namespace adet \ No newline at end of file diff --git a/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h b/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h new file mode 100755 index 0000000..f33851a --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/ml_nms/ml_nms.h @@ -0,0 +1,32 @@ +#pragma once +#include + +namespace adet { + + +#ifdef WITH_CUDA +at::Tensor ml_nms_cuda( + const at::Tensor dets, + const float threshold); +#endif + +at::Tensor ml_nms(const at::Tensor& dets, + const at::Tensor& scores, + const at::Tensor& labels, + const float threshold) { + + if (dets.type().is_cuda()) { +#ifdef WITH_CUDA + // TODO raise error if not compiled with CUDA + if (dets.numel() == 0) + return at::empty({0}, dets.options().dtype(at::kLong).device(at::kCPU)); + auto b = at::cat({dets, scores.unsqueeze(1), labels.unsqueeze(1)}, 1); + return ml_nms_cuda(b, threshold); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + AT_ERROR("CPU version not implemented"); +} + +} // namespace adet diff --git a/AdelaiDet/adet/layers/csrc/vision.cpp b/AdelaiDet/adet/layers/csrc/vision.cpp new file mode 100755 index 0000000..d780a95 --- /dev/null +++ b/AdelaiDet/adet/layers/csrc/vision.cpp @@ -0,0 +1,63 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +#include "ml_nms/ml_nms.h" +#include "DefROIAlign/DefROIAlign.h" +#include "BezierAlign/BezierAlign.h" + +namespace adet { + +#ifdef WITH_CUDA +extern int get_cudart_version(); +#endif + +std::string get_cuda_version() { +#ifdef WITH_CUDA + std::ostringstream oss; + + // copied from + // https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/cuda/detail/CUDAHooks.cpp#L231 + auto printCudaStyleVersion = [&](int v) { + oss << (v / 1000) << "." << (v / 10 % 100); + if (v % 10 != 0) { + oss << "." << (v % 10); + } + }; + printCudaStyleVersion(get_cudart_version()); + return oss.str(); +#else + return std::string("not available"); +#endif +} + +// similar to +// https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/Version.cpp +std::string get_compiler_version() { + std::ostringstream ss; +#if defined(__GNUC__) +#ifndef __clang__ + { ss << "GCC " << __GNUC__ << "." << __GNUC_MINOR__; } +#endif +#endif + +#if defined(__clang_major__) + { + ss << "clang " << __clang_major__ << "." << __clang_minor__ << "." + << __clang_patchlevel__; + } +#endif + +#if defined(_MSC_VER) + { ss << "MSVC " << _MSC_FULL_VER; } +#endif + return ss.str(); +} + +PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { + m.def("ml_nms", &ml_nms, "Multi-Label NMS"); + m.def("def_roi_align_forward", &DefROIAlign_forward, "def_roi_align_forward"); + m.def("def_roi_align_backward", &DefROIAlign_backward, "def_roi_align_backward"); + m.def("bezier_align_forward", &BezierAlign_forward, "bezier_align_forward"); + m.def("bezier_align_backward", &BezierAlign_backward, "bezier_align_backward"); +} + +} // namespace adet diff --git a/AdelaiDet/adet/layers/def_roi_align.py b/AdelaiDet/adet/layers/def_roi_align.py new file mode 100755 index 0000000..f3ea8bb --- /dev/null +++ b/AdelaiDet/adet/layers/def_roi_align.py @@ -0,0 +1,101 @@ +import torch +from torch import nn +from torch.autograd import Function +from torch.autograd.function import once_differentiable +from torch.nn.modules.utils import _pair + +from adet import _C + + +class _DefROIAlign(Function): + @staticmethod + def forward(ctx, input, roi, offsets, output_size, spatial_scale, sampling_ratio, trans_std, aligned): + ctx.save_for_backward(input, roi, offsets) + ctx.output_size = _pair(output_size) + ctx.spatial_scale = spatial_scale + ctx.sampling_ratio = sampling_ratio + ctx.trans_std = trans_std + ctx.input_shape = input.size() + ctx.aligned = aligned + output = _C.def_roi_align_forward( + input, roi, offsets, spatial_scale, output_size[0], output_size[1], + sampling_ratio, trans_std, aligned + ) + return output + + @staticmethod + @once_differentiable + def backward(ctx, grad_output): + data, rois, offsets = ctx.saved_tensors + output_size = ctx.output_size + spatial_scale = ctx.spatial_scale + sampling_ratio = ctx.sampling_ratio + trans_std = ctx.trans_std + bs, ch, h, w = ctx.input_shape + grad_offsets = torch.zeros_like(offsets) + + grad_input = _C.def_roi_align_backward( + data, + grad_output, + rois, + offsets, + grad_offsets, + spatial_scale, + output_size[0], + output_size[1], + bs, + ch, + h, + w, + sampling_ratio, + trans_std, + ctx.aligned, + ) + return grad_input, None, grad_offsets, None, None, None, None, None + + +def_roi_align = _DefROIAlign.apply + + +class DefROIAlign(nn.Module): + def __init__(self, output_size, spatial_scale, + sampling_ratio, trans_std, aligned=True): + """ + Args: + output_size (tuple): h, w + spatial_scale (float): scale the input boxes by this number + sampling_ratio (int): number of inputs samples to take for each output + sample. 0 to take samples densely. + trans_std (float): offset scale according to the normalized roi size + aligned (bool): if False, use the legacy implementation in + Detectron. If True, align the results more perfectly. + """ + super(DefROIAlign, self).__init__() + self.output_size = output_size + self.spatial_scale = spatial_scale + self.sampling_ratio = sampling_ratio + self.trans_std = trans_std + self.aligned = aligned + + def forward(self, input, rois, offsets): + """ + Args: + input: NCHW images + rois: Bx5 boxes. First column is the index into N. The other 4 columns are xyxy. + """ + assert rois.dim() == 2 and rois.size(1) == 5 + return def_roi_align( + input, rois, offsets, self.output_size, + self.spatial_scale, self.sampling_ratio, + self.trans_std, self.aligned + ) + + def __repr__(self): + tmpstr = self.__class__.__name__ + "(" + tmpstr += "output_size=" + str(self.output_size) + tmpstr += ", spatial_scale=" + str(self.spatial_scale) + tmpstr += ", sampling_ratio=" + str(self.sampling_ratio) + tmpstr += ", trans_std=" + str(self.trans_std) + tmpstr += ", aligned=" + str(self.aligned) + tmpstr += ")" + return tmpstr diff --git a/AdelaiDet/adet/layers/deform_conv.py b/AdelaiDet/adet/layers/deform_conv.py new file mode 100755 index 0000000..6671200 --- /dev/null +++ b/AdelaiDet/adet/layers/deform_conv.py @@ -0,0 +1,120 @@ +import torch +from torch import nn + +from detectron2.layers import Conv2d + + +class _NewEmptyTensorOp(torch.autograd.Function): + @staticmethod + def forward(ctx, x, new_shape): + ctx.shape = x.shape + return x.new_empty(new_shape) + + @staticmethod + def backward(ctx, grad): + shape = ctx.shape + return _NewEmptyTensorOp.apply(grad, shape), None + + +class DFConv2d(nn.Module): + """ + Deformable convolutional layer with configurable + deformable groups, dilations and groups. + + Code is from: + https://github.com/facebookresearch/maskrcnn-benchmark/blob/master/maskrcnn_benchmark/layers/misc.py + + + """ + def __init__( + self, + in_channels, + out_channels, + with_modulated_dcn=True, + kernel_size=3, + stride=1, + groups=1, + dilation=1, + deformable_groups=1, + bias=False, + padding=None + ): + super(DFConv2d, self).__init__() + if isinstance(kernel_size, (list, tuple)): + assert isinstance(stride, (list, tuple)) + assert isinstance(dilation, (list, tuple)) + assert len(kernel_size) == 2 + assert len(stride) == 2 + assert len(dilation) == 2 + padding = ( + dilation[0] * (kernel_size[0] - 1) // 2, + dilation[1] * (kernel_size[1] - 1) // 2 + ) + offset_base_channels = kernel_size[0] * kernel_size[1] + else: + padding = dilation * (kernel_size - 1) // 2 + offset_base_channels = kernel_size * kernel_size + if with_modulated_dcn: + from detectron2.layers.deform_conv import ModulatedDeformConv + offset_channels = offset_base_channels * 3 # default: 27 + conv_block = ModulatedDeformConv + else: + from detectron2.layers.deform_conv import DeformConv + offset_channels = offset_base_channels * 2 # default: 18 + conv_block = DeformConv + self.offset = Conv2d( + in_channels, + deformable_groups * offset_channels, + kernel_size=kernel_size, + stride=stride, + padding=padding, + groups=1, + dilation=dilation + ) + for l in [self.offset, ]: + nn.init.kaiming_uniform_(l.weight, a=1) + torch.nn.init.constant_(l.bias, 0.) + self.conv = conv_block( + in_channels, + out_channels, + kernel_size=kernel_size, + stride=stride, + padding=padding, + dilation=dilation, + groups=groups, + deformable_groups=deformable_groups, + bias=bias + ) + self.with_modulated_dcn = with_modulated_dcn + self.kernel_size = kernel_size + self.stride = stride + self.padding = padding + self.dilation = dilation + self.offset_split = offset_base_channels * deformable_groups * 2 + + def forward(self, x, return_offset=False): + if x.numel() > 0: + if not self.with_modulated_dcn: + offset_mask = self.offset(x) + x = self.conv(x, offset_mask) + else: + offset_mask = self.offset(x) + offset = offset_mask[:, :self.offset_split, :, :] + mask = offset_mask[:, self.offset_split:, :, :].sigmoid() + x = self.conv(x, offset, mask) + if return_offset: + return x, offset_mask + return x + # get output shape + output_shape = [ + (i + 2 * p - (di * (k - 1) + 1)) // d + 1 + for i, p, di, k, d in zip( + x.shape[-2:], + self.padding, + self.dilation, + self.kernel_size, + self.stride + ) + ] + output_shape = [x.shape[0], self.conv.weight.shape[0]] + output_shape + return _NewEmptyTensorOp.apply(x, output_shape) diff --git a/AdelaiDet/adet/layers/gcn.py b/AdelaiDet/adet/layers/gcn.py new file mode 100755 index 0000000..b47585c --- /dev/null +++ b/AdelaiDet/adet/layers/gcn.py @@ -0,0 +1,74 @@ +# coding:utf-8 +import torch.nn as nn +import torch.nn.functional as F + + +class Conv2D(nn.Module): + def __init__(self, in_channels, out_channels, kernel_size, padding='same', + stride=1, dilation=1, groups=1): + super(Conv2D, self).__init__() + + assert type(kernel_size) in [int, tuple], "Allowed kernel type [int or tuple], not {}".format(type(kernel_size)) + assert padding == 'same', "Allowed padding type {}, not {}".format('same', padding) + + self.kernel_size = kernel_size + if isinstance(kernel_size, tuple): + self.h_kernel = kernel_size[0] + self.w_kernel = kernel_size[1] + else: + self.h_kernel = kernel_size + self.w_kernel = kernel_size + + self.padding = padding + self.stride = stride + self.dilation = dilation + self.groups = groups + self.conv = nn.Conv2d(in_channels=in_channels, out_channels=out_channels, kernel_size=kernel_size, + stride=self.stride, dilation=self.dilation, groups=self.groups) + + def forward(self, x): + + if self.padding == 'same': + + height, width = x.shape[2:] + + h_pad_need = max(0, (height - 1) * self.stride + self.h_kernel - height) + w_pad_need = max(0, (width - 1) * self.stride + self.w_kernel - width) + + pad_left = w_pad_need // 2 + pad_right = w_pad_need - pad_left + pad_top = h_pad_need // 2 + pad_bottom = h_pad_need - pad_top + + padding = (pad_left, pad_right, pad_top, pad_bottom) + + x = F.pad(x, padding, 'constant', 0) + + x = self.conv(x) + + return x + + +class GCN(nn.Module): + """ + Large Kernel Matters -- https://arxiv.org/abs/1703.02719 + """ + def __init__(self, in_channels, out_channels, k=3): + super(GCN, self).__init__() + + self.conv_l1 = Conv2D(in_channels=in_channels, out_channels=out_channels, kernel_size=(k, 1), padding='same') + self.conv_l2 = Conv2D(in_channels=out_channels, out_channels=out_channels, kernel_size=(1, k), padding='same') + + self.conv_r1 = Conv2D(in_channels=in_channels, out_channels=out_channels, kernel_size=(1, k), padding='same') + self.conv_r2 = Conv2D(in_channels=out_channels, out_channels=out_channels, kernel_size=(k, 1), padding='same') + + def forward(self, x): + x1 = self.conv_l1(x) + x1 = self.conv_l2(x1) + + x2 = self.conv_r1(x) + x2 = self.conv_r2(x2) + + out = x1 + x2 + + return out diff --git a/AdelaiDet/adet/layers/iou_loss.py b/AdelaiDet/adet/layers/iou_loss.py new file mode 100755 index 0000000..d04d7e5 --- /dev/null +++ b/AdelaiDet/adet/layers/iou_loss.py @@ -0,0 +1,32 @@ +import torch +from torch import nn + + +class IOULoss(nn.Module): + """ + Intersetion Over Union (IoU) loss which supports three + different IoU computations: + + * IoU + * Linear IoU + * gIoU + """ + def __init__(self, loc_loss_type='iou'): + super(IOULoss, self).__init__() + self.loc_loss_type = loc_loss_type + + def forward(self, ious, gious=None, weight=None): + if self.loc_loss_type == 'iou': + losses = -torch.log(ious) + elif self.loc_loss_type == 'linear_iou': + losses = 1 - ious + elif self.loc_loss_type == 'giou': + assert gious is not None + losses = 1 - gious + else: + raise NotImplementedError + + if weight is not None: + return (losses * weight).sum() + else: + return losses.sum() diff --git a/AdelaiDet/adet/layers/ml_nms.py b/AdelaiDet/adet/layers/ml_nms.py new file mode 100755 index 0000000..c052780 --- /dev/null +++ b/AdelaiDet/adet/layers/ml_nms.py @@ -0,0 +1,26 @@ +from detectron2.layers import batched_nms + + +def ml_nms(boxlist, nms_thresh, max_proposals=-1, + score_field="scores", label_field="labels"): + """ + Performs non-maximum suppression on a boxlist, with scores specified + in a boxlist field via score_field. + + Args: + boxlist (detectron2.structures.Boxes): + nms_thresh (float): + max_proposals (int): if > 0, then only the top max_proposals are kept + after non-maximum suppression + score_field (str): + """ + if nms_thresh <= 0: + return boxlist + boxes = boxlist.pred_boxes.tensor + scores = boxlist.scores + labels = boxlist.pred_classes + keep = batched_nms(boxes, scores, labels, nms_thresh) + if max_proposals > 0: + keep = keep[: max_proposals] + boxlist = boxlist[keep] + return boxlist diff --git a/AdelaiDet/adet/layers/naive_group_norm.py b/AdelaiDet/adet/layers/naive_group_norm.py new file mode 100755 index 0000000..20d70d9 --- /dev/null +++ b/AdelaiDet/adet/layers/naive_group_norm.py @@ -0,0 +1,74 @@ +import torch +from torch.nn import Module, Parameter +from torch.nn import init + + +class NaiveGroupNorm(Module): + r"""NaiveGroupNorm implements Group Normalization with the high-level matrix operations in PyTorch. + It is a temporary solution to export GN by ONNX before the official GN can be exported by ONNX. + The usage of NaiveGroupNorm is exactly the same as the official :class:`torch.nn.GroupNorm`. + Args: + num_groups (int): number of groups to separate the channels into + num_channels (int): number of channels expected in input + eps: a value added to the denominator for numerical stability. Default: 1e-5 + affine: a boolean value that when set to ``True``, this module + has learnable per-channel affine parameters initialized to ones (for weights) + and zeros (for biases). Default: ``True``. + + Shape: + - Input: :math:`(N, C, *)` where :math:`C=\text{num\_channels}` + - Output: :math:`(N, C, *)` (same shape as input) + + Examples:: + + >>> input = torch.randn(20, 6, 10, 10) + >>> # Separate 6 channels into 3 groups + >>> m = NaiveGroupNorm(3, 6) + >>> # Separate 6 channels into 6 groups (equivalent with InstanceNorm) + >>> m = NaiveGroupNorm(6, 6) + >>> # Put all 6 channels into a single group (equivalent with LayerNorm) + >>> m = NaiveGroupNorm(1, 6) + >>> # Activating the module + >>> output = m(input) + + .. _`Group Normalization`: https://arxiv.org/abs/1803.08494 + """ + __constants__ = ['num_groups', 'num_channels', 'eps', 'affine', 'weight', + 'bias'] + + def __init__(self, num_groups, num_channels, eps=1e-5, affine=True): + super(NaiveGroupNorm, self).__init__() + self.num_groups = num_groups + self.num_channels = num_channels + self.eps = eps + self.affine = affine + if self.affine: + self.weight = Parameter(torch.Tensor(num_channels)) + self.bias = Parameter(torch.Tensor(num_channels)) + else: + self.register_parameter('weight', None) + self.register_parameter('bias', None) + self.reset_parameters() + + def reset_parameters(self): + if self.affine: + init.ones_(self.weight) + init.zeros_(self.bias) + + def forward(self, input): + N, C, H, W = input.size() + assert C % self.num_groups == 0 + input = input.reshape(N, self.num_groups, -1) + mean = input.mean(dim=-1, keepdim=True) + var = (input ** 2).mean(dim=-1, keepdim=True) - mean ** 2 + std = torch.sqrt(var + self.eps) + + input = (input - mean) / std + input = input.reshape(N, C, H, W) + if self.affine: + input = input * self.weight.reshape(1, C, 1, 1) + self.bias.reshape(1, C, 1, 1) + return input + + def extra_repr(self): + return '{num_groups}, {num_channels}, eps={eps}, ' \ + 'affine={affine}'.format(**self.__dict__) diff --git a/AdelaiDet/adet/modeling/MEInst/LME/MaskLoader.py b/AdelaiDet/adet/modeling/MEInst/LME/MaskLoader.py new file mode 100755 index 0000000..b5ebd73 --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/LME/MaskLoader.py @@ -0,0 +1,81 @@ +# coding:utf-8 + +import os +import json +import numpy as np + +import torch.utils.data as data + +from detectron2.structures import ( + Boxes, + PolygonMasks, + BoxMode +) + + +DATASETS = { + "coco_2017_train": { + "img_dir": "coco/train2017", + "ann_file": "coco/annotations/instances_train2017.json" + }, + "coco_2017_val": { + "img_dir": "coco/val2017", + "ann_file": "coco/annotations/instances_val2017.json" + } +} + + +class MaskLoader(data.Dataset): + """ + Dataloader for Local Mask. + + Arguments: + root (string): filepath to dataset folder. + dataset (string): mask to use (eg. 'train', 'val'). + size (tuple): The size used for train/val (height, width). + transform (callable, optional): transformation to perform on the input mask. + + """ + + def __init__(self, root="datasets", dataset="coco_2017_train", size=28, transform=False): + self.root = root + self.dataset = dataset + self.transform = transform + + if isinstance(size, int): + self.size = size + else: + raise TypeError + + data_info = DATASETS[dataset] + img_dir, ann_file = data_info['img_dir'], data_info['ann_file'] + img_dir = os.path.join(self.root, img_dir) # actually we do not use it. + ann_file = os.path.join(self.root, ann_file) + + with open(ann_file, 'r') as f: + anns = json.load(f) + anns = anns['annotations'] + coco = list() + for ann in anns: + if ann.get('iscrowd', 0) == 0: + coco.append(ann) + self.coco = coco + print("Removed {} images with no usable annotations. {} images left.".format( + len(anns) - len(self.coco), len(self.coco))) + + def __len__(self): + return len(self.coco) + + def __getitem__(self, index): + ann = self.coco[index] + + # bbox transform. + bbox = np.array([ann["bbox"]]) # xmin, ymin, w, h + bbox = BoxMode.convert(bbox, BoxMode.XYWH_ABS, BoxMode.XYXY_ABS) # x1y1x2y2 + bbox = Boxes(bbox) + + # mask transform. + mask = PolygonMasks([ann["segmentation"]]) + mask = mask.crop_and_resize(bbox.tensor, self.size).float() + + return mask diff --git a/AdelaiDet/adet/modeling/MEInst/LME/__init__.py b/AdelaiDet/adet/modeling/MEInst/LME/__init__.py new file mode 100755 index 0000000..f2869e4 --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/LME/__init__.py @@ -0,0 +1,7 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +from .MaskLoader import MaskLoader +from .utils import inverse_sigmoid, direct_sigmoid, IOUMetric, transform, inverse_transform + +__all__ = ["MaskLoader", "IOUMetric", + "inverse_sigmoid", "direct_sigmoid", + "transform", "inverse_transform"] diff --git a/AdelaiDet/adet/modeling/MEInst/LME/mask_evaluation.py b/AdelaiDet/adet/modeling/MEInst/LME/mask_evaluation.py new file mode 100755 index 0000000..93cef4c --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/LME/mask_evaluation.py @@ -0,0 +1,104 @@ +# coding:utf-8 + +import os +import argparse +import numpy as np +from torch.utils.data import DataLoader + +from MaskLoader import MaskLoader +from utils import ( + IOUMetric, + transform, + inverse_transform, + direct_sigmoid, + inverse_sigmoid +) + + +VALUE_MAX = 0.05 +VALUE_MIN = 0.01 + + +def parse_args(): + parser = argparse.ArgumentParser(description='Evaluation for PCA Mask Encoding.') + parser.add_argument('--root', default='datasets', type=str) + parser.add_argument('--dataset', default='coco_2017_train', type=str) + parser.add_argument('--matrix', default='coco/components/coco_2017_train' + '_class_agnosticTrue_whitenTrue_sigmoidTrue_60.npz', type=str) + # mask encoding params. + parser.add_argument('--mask_size', default=28, type=int) + parser.add_argument('--n_components', default=60, type=int) + parser.add_argument('--class_agnostic', default=True, type=bool) + parser.add_argument('--whiten', default=True, type=bool) + parser.add_argument('--sigmoid', default=True, type=bool) + parser.add_argument('--batch-size', default=1024, type=int) + args = parser.parse_args() + return args + + +if __name__ == "__main__": + args = parse_args() + # parse args. + mask_size = args.mask_size + n_components = args.n_components + class_agnostic = args.class_agnostic + whiten = args.whiten + sigmoid = args.sigmoid + + cur_path = os.path.abspath(os.path.dirname(__file__)) + root_path = cur_path[:cur_path.find("AdelaiDet") + len("AdelaiDet")] + dataset_root = os.path.join(root_path, args.root) + matrix_path = os.path.join(dataset_root, args.matrix) + + # load matrix. + print("Loading matrix parameters: {}".format(matrix_path)) + parameters = np.load(matrix_path) + components_c = parameters['components_c'] + mean_c = parameters['mean_c'] + ratio_c = parameters['ratio_c'] + explained_variance_c = parameters['explained_variance_c'] + if class_agnostic: + components_c = np.squeeze(components_c) + mean_c = np.squeeze(mean_c) + explained_variance_c = np.squeeze(explained_variance_c) + assert n_components == components_c.shape[0], \ + print("The n_components in component_ must equal to the supposed shape.") + else: + # TODO: We have not achieve the function in class-specific. + raise NotImplementedError + + # build data loader. + mask_data = MaskLoader(root=dataset_root, dataset=args.dataset, size=mask_size) + mask_loader = DataLoader(mask_data, batch_size=args.batch_size, shuffle=False, num_workers=4) + size_data = len(mask_loader) + + # evaluation. + IoUevaluate = IOUMetric(2) + print("Start Eva ...") + for i, masks in enumerate(mask_loader): + print("Eva [{} / {}]".format(i, size_data)) + # generate the reconstruction mask. + masks = masks.view(masks.shape[0], -1).numpy() + masks = masks.astype(np.float32) + # pre-process. + if sigmoid: + value_random = VALUE_MAX * np.random.rand(masks.shape[0], masks.shape[1]) + value_random = np.maximum(value_random, VALUE_MIN) + masks_random = np.where(masks > value_random, 1 - value_random, value_random) + masks_random = inverse_sigmoid(masks_random) + else: + masks_random = masks + # --> encode --> decode. + mask_rc = transform(masks_random, components_=components_c, explained_variance_=explained_variance_c, + mean_=mean_c, whiten=whiten) + mask_rc = inverse_transform(mask_rc, components_=components_c, explained_variance_=explained_variance_c, + mean_=mean_c, whiten=whiten) + # post-process. + if sigmoid: + mask_rc = direct_sigmoid(mask_rc) + # eva. + mask_rc = np.where(mask_rc >= 0.5, 1, 0) + IoUevaluate.add_batch(mask_rc, masks) + + _, _, _, mean_iu, _ = IoUevaluate.evaluate() + print("The mIoU for {}: {}".format(args.matrix, mean_iu)) diff --git a/AdelaiDet/adet/modeling/MEInst/LME/mask_generation.py b/AdelaiDet/adet/modeling/MEInst/LME/mask_generation.py new file mode 100755 index 0000000..5172c6f --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/LME/mask_generation.py @@ -0,0 +1,115 @@ +# coding:utf-8 + +import os +import argparse +import time +import numpy as np +import torch +from torch.utils.data import DataLoader +from sklearn.decomposition import IncrementalPCA + +from MaskLoader import MaskLoader +from utils import inverse_sigmoid + + +VALUE_MAX = 0.05 +VALUE_MIN = 0.01 + + +def mask_encoding(masks, n_components=60, class_agnostic=True, whiten=True, sigmoid=True, batch_size=1024): + components_c = [] + mean_c = [] + ratio_c = [] + explained_variance_c = [] + if class_agnostic: + if sigmoid: + value_random = VALUE_MAX * np.random.rand(masks.shape[0], masks.shape[1]) + value_random = np.maximum(value_random, VALUE_MIN) + masks = np.where(masks > value_random, 1-value_random, value_random) + masks = inverse_sigmoid(masks) + pca = IncrementalPCA(n_components=n_components, copy=False, whiten=whiten, batch_size=batch_size) + pca.fit(masks) + components_c.append(pca.components_[np.newaxis, :, :]) + mean_c.append(pca.mean_[np.newaxis, :]) + ratio_c.append(pca.explained_variance_ratio_[np.newaxis, :]) + explained_variance_c.append(pca.explained_variance_[np.newaxis, :]) + ratio = pca.explained_variance_ratio_.sum() + else: + # TODO: We have not achieve the function in class-specific. + raise NotImplemented + + return components_c, mean_c, ratio_c, explained_variance_c, ratio + + +def parse_args(): + parser = argparse.ArgumentParser(description='PCA Mask Encoding for local mask.') + parser.add_argument('--root', default='datasets', type=str) + parser.add_argument('--dataset', default='coco_2017_train', type=str) + parser.add_argument('--output', default='coco/components', type=str) + # mask encoding params. + parser.add_argument('--mask_size', default=28, type=int) + parser.add_argument('--n_components', default=60, type=int) + parser.add_argument('--class_agnostic', default=True, type=bool) + parser.add_argument('--whiten', default=True, type=bool) + parser.add_argument('--sigmoid', default=True, type=bool) + parser.add_argument('--batch-size', default=1024, type=int) + args = parser.parse_args() + return args + + +if __name__ == "__main__": + args = parse_args() + # parse args. + mask_size = args.mask_size + n_components = args.n_components + class_agnostic = args.class_agnostic + whiten = args.whiten + sigmoid = args.sigmoid + + cur_path = os.path.abspath(os.path.dirname(__file__)) + root_path = cur_path[:cur_path.find("AdelaiDet") + len("AdelaiDet")] + dataset_root = os.path.join(root_path, args.root) + output_dir = os.path.join(dataset_root, args.output) + os.makedirs(output_dir, exist_ok=True) + + # build data loader. + mask_data = MaskLoader(root=dataset_root, dataset=args.dataset, size=mask_size) + mask_loader = DataLoader(mask_data, batch_size=args.batch_size, shuffle=False, num_workers=4) + + # loading masks. + masks = list() + print("Start Loading Masks.") + tic = time.time() + for mask in mask_loader: + masks.append(mask.squeeze(1)) + toc = time.time() - tic + print("Finish Loading Masks in {}s.".format(toc)) + masks = torch.cat(masks, 0) + masks = masks.view(masks.shape[0], -1).numpy() + masks = masks.astype(np.float32) + + # mask encoding. + print("Start to mask encoding ...") + print("It may take several times, please wait patiently ...") + tic = time.time() + components_c, mean_c, ratio_c, explained_variance_c, ratio = \ + mask_encoding(masks, n_components, class_agnostic, whiten, sigmoid, args.batch_size) + toc = time.time() - tic + print("Finish the mask encoding in {}s.".format(toc)) + + components_c = np.concatenate(components_c).mean(0)[np.newaxis, :, :].astype(np.float32) + mean_c = np.concatenate(mean_c).mean(0)[np.newaxis, :].astype(np.float32) + ratio_c = np.concatenate(ratio_c).mean(0)[np.newaxis, :].astype(np.float32) + explained_variance_c = np.concatenate(explained_variance_c).mean(0)[np.newaxis, :].astype(np.float32) + print("The mean variance_ratio for all categories is {}".format(np.mean(ratio))) + + # save the parameters. + output_path = os.path.join(output_dir, args.dataset + '_class_agnostic' + str(class_agnostic) + + '_whiten' + str(whiten) + '_sigmoid' + str(sigmoid) + '_' + str(n_components) + + '.npz') + print("Save the local mask encoding matrix: " + output_path) + np.savez(output_path, + components_c=components_c, + mean_c=mean_c, + ratio_c=ratio_c, + explained_variance_c=explained_variance_c) diff --git a/AdelaiDet/adet/modeling/MEInst/LME/utils.py b/AdelaiDet/adet/modeling/MEInst/LME/utils.py new file mode 100755 index 0000000..afaf664 --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/LME/utils.py @@ -0,0 +1,120 @@ +# coding:utf-8 + +import numpy as np + + +def direct_sigmoid(x): + """Apply the sigmoid operation. + """ + y = 1./(1.+1./np.exp(x)) + dy = y*(1-y) + return y + + +def inverse_sigmoid(x): + """Apply the inverse sigmoid operation. + y = -ln(1-x/x) + """ + y = -1 * np.log((1-x)/x) + return y + + +def transform(X, components_, explained_variance_, mean_=None, whiten=False): + """Apply dimensionality reduction to X. + X is projected on the first principal components previously extracted + from a training set. + Parameters + ---------- + X: array-like, shape (n_samples, n_features) + New data, where n_samples is the number of samples + and n_features is the number of features. + components_: array-like, shape (n_components, n_features) + mean_: array-like, shape (n_features,) + explained_variance_: array-like, shape (n_components,) + Variance explained by each of the selected components. + whiten : bool, optional + When True (False by default) the ``components_`` vectors are divided + by ``n_samples`` times ``components_`` to ensure uncorrelated outputs + with unit component-wise variances. + Whitening will remove some information from the transformed signal + (the relative variance scales of the components) but can sometimes + improve the predictive accuracy of the downstream estimators by + making data respect some hard-wired assumptions. + Returns + ------- + X_new : array-like, shape (n_samples, n_components) + """ + + if mean_ is not None: + X = X - mean_ + X_transformed = np.dot(X, components_.T) + if whiten: + X_transformed /= np.sqrt(explained_variance_) + return X_transformed + + +def inverse_transform(X, components_, explained_variance_, mean_=None, whiten=False): + """Transform data back to its original space. + In other words, return an input X_original whose transform would be X. + Parameters + ---------- + X : array-like, shape (n_samples, n_components) + New data, where n_samples is the number of samples + and n_components is the number of components. + components_: array-like, shape (n_components, n_features) + mean_: array-like, shape (n_features,) + explained_variance_: array-like, shape (n_components,) + Variance explained by each of the selected components. + whiten : bool, optional + When True (False by default) the ``components_`` vectors are divided + by ``n_samples`` times ``components_`` to ensure uncorrelated outputs + with unit component-wise variances. + Whitening will remove some information from the transformed signal + (the relative variance scales of the components) but can sometimes + improve the predictive accuracy of the downstream estimators by + making data respect some hard-wired assumptions. + + Returns + ------- + X_original array-like, shape (n_samples, n_features) + """ + if whiten: + X_transformed = np.dot(X, np.sqrt(explained_variance_[:, np.newaxis]) * components_) + else: + X_transformed = np.dot(X, components_) + + if mean_ is not None: + X_transformed = X_transformed + mean_ + + return X_transformed + + +class IOUMetric(object): + """ + Class to calculate mean-iou using fast_hist method + """ + + def __init__(self, num_classes): + self.num_classes = num_classes + self.hist = np.zeros((num_classes, num_classes)) + + def _fast_hist(self, label_pred, label_true): + mask = (label_true >= 0) & (label_true < self.num_classes) + hist = np.bincount( + self.num_classes * label_true[mask].astype(int) + + label_pred[mask], minlength=self.num_classes ** 2).reshape(self.num_classes, self.num_classes) + return hist + + def add_batch(self, predictions, gts): + for lp, lt in zip(predictions, gts): + self.hist += self._fast_hist(lp.flatten(), lt.flatten()) + + def evaluate(self): + acc = np.diag(self.hist).sum() / self.hist.sum() + acc_cls = np.diag(self.hist) / self.hist.sum(axis=1) + acc_cls = np.nanmean(acc_cls) + iu = np.diag(self.hist) / (self.hist.sum(axis=1) + self.hist.sum(axis=0) - np.diag(self.hist)) + mean_iu = np.nanmean(iu) + freq = self.hist.sum(axis=1) / self.hist.sum() + fwavacc = (freq[freq > 0] * iu[freq > 0]).sum() + return acc, acc_cls, iu, mean_iu, fwavacc \ No newline at end of file diff --git a/AdelaiDet/adet/modeling/MEInst/MEInst.py b/AdelaiDet/adet/modeling/MEInst/MEInst.py new file mode 100755 index 0000000..d5e1822 --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/MEInst.py @@ -0,0 +1,328 @@ +import math +from typing import List, Dict +import numpy as np +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec +from detectron2.modeling.proposal_generator.build import PROPOSAL_GENERATOR_REGISTRY + +from adet.layers import DFConv2d, IOULoss, NaiveGroupNorm, GCN +from .MEInst_outputs import MEInstOutputs +from .MaskEncoding import PCAMaskEncoding + + +__all__ = ["MEInst"] + +INF = 100000000 + + +class Scale(nn.Module): + def __init__(self, init_value=1.0): + super(Scale, self).__init__() + self.scale = nn.Parameter(torch.FloatTensor([init_value])) + + def forward(self, input): + return input * self.scale + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class MEInst(nn.Module): + """ + Implement MEInst (https://arxiv.org/abs/2003.11712). + """ + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + # fmt: off + self.cfg = cfg + self.in_features = cfg.MODEL.MEInst.IN_FEATURES + self.fpn_strides = cfg.MODEL.MEInst.FPN_STRIDES + self.focal_loss_alpha = cfg.MODEL.MEInst.LOSS_ALPHA + self.focal_loss_gamma = cfg.MODEL.MEInst.LOSS_GAMMA + self.center_sample = cfg.MODEL.MEInst.CENTER_SAMPLE + self.strides = cfg.MODEL.MEInst.FPN_STRIDES + self.radius = cfg.MODEL.MEInst.POS_RADIUS + self.pre_nms_thresh_train = cfg.MODEL.MEInst.INFERENCE_TH_TRAIN + self.pre_nms_thresh_test = cfg.MODEL.MEInst.INFERENCE_TH_TEST + self.pre_nms_topk_train = cfg.MODEL.MEInst.PRE_NMS_TOPK_TRAIN + self.pre_nms_topk_test = cfg.MODEL.MEInst.PRE_NMS_TOPK_TEST + self.nms_thresh = cfg.MODEL.MEInst.NMS_TH + self.post_nms_topk_train = cfg.MODEL.MEInst.POST_NMS_TOPK_TRAIN + self.post_nms_topk_test = cfg.MODEL.MEInst.POST_NMS_TOPK_TEST + self.thresh_with_ctr = cfg.MODEL.MEInst.THRESH_WITH_CTR + # fmt: on + self.iou_loss = IOULoss(cfg.MODEL.MEInst.LOC_LOSS_TYPE) + # generate sizes of interest + soi = [] + prev_size = -1 + for s in cfg.MODEL.MEInst.SIZES_OF_INTEREST: + soi.append([prev_size, s]) + prev_size = s + soi.append([prev_size, INF]) + self.sizes_of_interest = soi + self.MEInst_head = MEInstHead(cfg, [input_shape[f] for f in self.in_features]) + + self.flag_parameters = cfg.MODEL.MEInst.FLAG_PARAMETERS + self.mask_encoding = PCAMaskEncoding(cfg) + + def forward(self, images, features, gt_instances): + """ + Arguments: + images (list[Tensor] or ImageList): images to be processed + targets (list[BoxList]): ground-truth present in the image (optional) + + Returns: + result (list[BoxList] or dict[Tensor]): the output from the model. + During training, it returns a dict[Tensor] which contains the losses. + During testing, it returns list[BoxList] contains additional fields + like `scores`, `labels` and `mask` (for Mask R-CNN models). + + """ + features = [features[f] for f in self.in_features] + locations = self.compute_locations(features) + logits_pred, reg_pred, ctrness_pred, bbox_towers, mask_regression = self.MEInst_head(features) + + if self.training: + pre_nms_thresh = self.pre_nms_thresh_train + pre_nms_topk = self.pre_nms_topk_train + post_nms_topk = self.post_nms_topk_train + if not self.flag_parameters: + # encoding parameters. + components_path = self.cfg.MODEL.MEInst.PATH_COMPONENTS + # update parameters. + components_path = components_path.replace('agnosticTrue', 'agnostic' + str(self.cfg.MODEL.MEInst.AGNOSTIC)) + components_path = components_path.replace('whitenTrue', 'whiten' + str(self.cfg.MODEL.MEInst.WHITEN)) + components_path = components_path.replace('sigmoidTrue', 'sigmoid' + str(self.cfg.MODEL.MEInst.SIGMOID)) + components_path = components_path.replace('60', str(self.cfg.MODEL.MEInst.DIM_MASK)) + parameters = np.load(components_path) + device = torch.device(self.cfg.MODEL.DEVICE) + with torch.no_grad(): + if self.cfg.MODEL.MEInst.AGNOSTIC: + components = nn.Parameter(torch.from_numpy(parameters['components_c'][0]).float().to(device), + requires_grad=False) + explained_variances = nn.Parameter(torch.from_numpy(parameters['explained_variance_c'][0]) + .float().to(device), requires_grad=False) + means = nn.Parameter(torch.from_numpy(parameters['mean_c'][0]).float().to(device), + requires_grad=False) + self.mask_encoding.components = components + self.mask_encoding.explained_variances = explained_variances + self.mask_encoding.means = means + else: + raise NotImplementedError + self.flag_parameters = True + else: + pre_nms_thresh = self.pre_nms_thresh_test + pre_nms_topk = self.pre_nms_topk_test + post_nms_topk = self.post_nms_topk_test + + outputs = MEInstOutputs( + images, + locations, + logits_pred, + reg_pred, + ctrness_pred, + mask_regression, + self.mask_encoding, + self.focal_loss_alpha, + self.focal_loss_gamma, + self.iou_loss, + self.center_sample, + self.sizes_of_interest, + self.strides, + self.radius, + self.MEInst_head.num_classes, + pre_nms_thresh, + pre_nms_topk, + self.nms_thresh, + post_nms_topk, + self.thresh_with_ctr, + gt_instances, + cfg=self.cfg + ) + + if self.training: + losses, _ = outputs.losses() + return None, losses + else: + proposals = outputs.predict_proposals() + return proposals, {} + + def compute_locations(self, features): + locations = [] + for level, feature in enumerate(features): + h, w = feature.size()[-2:] + locations_per_level = self.compute_locations_per_level( + h, w, self.fpn_strides[level], + feature.device + ) + locations.append(locations_per_level) + return locations + + @staticmethod + def compute_locations_per_level(h, w, stride, device): + shifts_x = torch.arange( + 0, w * stride, step=stride, + dtype=torch.float32, device=device + ) + shifts_y = torch.arange( + 0, h * stride, step=stride, + dtype=torch.float32, device=device + ) + shift_y, shift_x = torch.meshgrid(shifts_y, shifts_x) + shift_x = shift_x.reshape(-1) + shift_y = shift_y.reshape(-1) + locations = torch.stack((shift_x, shift_y), dim=1) + stride // 2 + return locations + + +class MEInstHead(nn.Module): + def __init__(self, cfg, input_shape: List[ShapeSpec]): + """ + Arguments: + in_channels (int): number of channels of the input feature + """ + super().__init__() + # TODO: Implement the sigmoid version first. + self.num_classes = cfg.MODEL.MEInst.NUM_CLASSES + self.fpn_strides = cfg.MODEL.MEInst.FPN_STRIDES + self.dim_mask = cfg.MODEL.MEInst.DIM_MASK + self.use_gcn_in_mask = cfg.MODEL.MEInst.USE_GCN_IN_MASK + self.gcn_kernel_size = cfg.MODEL.MEInst.GCN_KERNEL_SIZE + + head_configs = {"cls": (cfg.MODEL.MEInst.NUM_CLS_CONVS, + cfg.MODEL.MEInst.USE_DEFORMABLE), + "bbox": (cfg.MODEL.MEInst.NUM_BOX_CONVS, + cfg.MODEL.MEInst.USE_DEFORMABLE), + "share": (cfg.MODEL.MEInst.NUM_SHARE_CONVS, + cfg.MODEL.MEInst.USE_DEFORMABLE), + "mask": (cfg.MODEL.MEInst.NUM_MASK_CONVS, + cfg.MODEL.MEInst.USE_DEFORMABLE)} + + self.type_deformable = cfg.MODEL.MEInst.TYPE_DEFORMABLE + self.last_deformable = cfg.MODEL.MEInst.LAST_DEFORMABLE + norm = None if cfg.MODEL.MEInst.NORM == "none" else cfg.MODEL.MEInst.NORM + + in_channels = [s.channels for s in input_shape] + assert len(set(in_channels)) == 1, "Each level must have the same channel!" + in_channels = in_channels[0] + + for head in head_configs: + tower = [] + num_convs, use_deformable = head_configs[head] + for i in range(num_convs): + # conv type. + if use_deformable: + if self.last_deformable: + if i == num_convs - 1: + conv_func = DFConv2d + type_func = self.type_deformable + else: + conv_func = nn.Conv2d + type_func = "Conv2d" + else: + conv_func = DFConv2d + type_func = self.type_deformable + else: + conv_func = nn.Conv2d + type_func = "Conv2d" + # conv operation. + if type_func == "DCNv1": + tower.append(conv_func( + in_channels, in_channels, + kernel_size=3, stride=1, + padding=1, bias=False, + with_modulated_dcn=False + )) + elif type_func == "DCNv2": + tower.append(conv_func( + in_channels, in_channels, + kernel_size=3, stride=1, + padding=1, bias=False, + with_modulated_dcn=True + )) + elif type_func == "Conv2d": + tower.append(conv_func( + in_channels, in_channels, + kernel_size=3, stride=1, + padding=1, bias=True + )) + else: + raise NotImplementedError + # norm. + if norm == "GN": + tower.append(nn.GroupNorm(32, in_channels)) + elif norm == "NaiveGN": + tower.append(NaiveGroupNorm(32, in_channels)) + # activation. + tower.append(nn.ReLU()) + self.add_module('{}_tower'.format(head), + nn.Sequential(*tower)) + + self.cls_logits = nn.Conv2d( + in_channels, self.num_classes, + kernel_size=3, stride=1, + padding=1 + ) + self.bbox_pred = nn.Conv2d( + in_channels, 4, kernel_size=3, + stride=1, padding=1 + ) + self.ctrness = nn.Conv2d( + in_channels, 1, kernel_size=3, + stride=1, padding=1 + ) + + if self.use_gcn_in_mask: + self.mask_pred = GCN(in_channels, self.dim_mask, k=self.gcn_kernel_size) + else: + self.mask_pred = nn.Conv2d( + in_channels, self.dim_mask, kernel_size=3, + stride=1, padding=1 + ) + + if cfg.MODEL.MEInst.USE_SCALE: + self.scales = nn.ModuleList([Scale(init_value=1.0) for _ in self.fpn_strides]) + else: + self.scales = None + + for modules in [ + self.cls_tower, self.bbox_tower, + self.share_tower, self.cls_logits, + self.bbox_pred, self.ctrness, + self.mask_tower, self.mask_pred + ]: + for l in modules.modules(): + if isinstance(l, nn.Conv2d): + torch.nn.init.normal_(l.weight, std=0.01) + torch.nn.init.constant_(l.bias, 0) + + # initialize the bias for focal loss + prior_prob = cfg.MODEL.MEInst.PRIOR_PROB + bias_value = -math.log((1 - prior_prob) / prior_prob) + torch.nn.init.constant_(self.cls_logits.bias, bias_value) + + def forward(self, x): + logits = [] + bbox_reg = [] + ctrness = [] + bbox_towers = [] + mask_reg = [] + for l, feature in enumerate(x): + feature = self.share_tower(feature) + cls_tower = self.cls_tower(feature) + bbox_tower = self.bbox_tower(feature) + + logits.append(self.cls_logits(cls_tower)) + ctrness.append(self.ctrness(bbox_tower)) + reg = self.bbox_pred(bbox_tower) + if self.scales is not None: + reg = self.scales[l](reg) + # Note that we use relu, as in the improved MEInst, instead of exp. + bbox_reg.append(F.relu(reg)) + + # Mask Encoding + mask_tower = self.mask_tower(feature) + mask_reg.append(self.mask_pred(mask_tower)) + + return logits, bbox_reg, ctrness, bbox_towers, mask_reg diff --git a/AdelaiDet/adet/modeling/MEInst/MEInst_outputs.py b/AdelaiDet/adet/modeling/MEInst/MEInst_outputs.py new file mode 100755 index 0000000..884abad --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/MEInst_outputs.py @@ -0,0 +1,645 @@ +import logging +from typing import List +import torch +import torch.nn as nn +import torch.nn.functional as F + +from detectron2.layers import cat +from detectron2.structures import Instances, Boxes, pairwise_iou + +from detectron2.utils.comm import get_world_size +from detectron2.modeling.matcher import Matcher + +from fvcore.nn import sigmoid_focal_loss_jit + +from adet.utils.comm import reduce_sum +from adet.layers import ml_nms + + +logger = logging.getLogger(__name__) + +INF = 100000000 + +""" +Shape shorthand in this module: + + N: number of images in the minibatch + L: number of feature maps per image on which RPN is run + Hi, Wi: height and width of the i-th feature map + +Naming convention: + + labels: refers to the ground-truth class of an position. + + reg_targets: refers to the 4-d (left, top, right, bottom) distances that parameterize the ground-truth box. + + logits_pred: predicted classification scores in [-inf, +inf]; + + reg_pred: the predicted (left, top, right, bottom), corresponding to reg_targets + + ctrness_pred: predicted centerness scores + + mask_regression: the predicted mask coefficients (D) + +""" + + +def compute_ctrness_targets(reg_targets): + if len(reg_targets) == 0: + return reg_targets.new_zeros(len(reg_targets)) + left_right = reg_targets[:, [0, 2]] + top_bottom = reg_targets[:, [1, 3]] + ctrness = (left_right.min(dim=-1)[0] / left_right.max(dim=-1)[0]) * \ + (top_bottom.min(dim=-1)[0] / top_bottom.max(dim=-1)[0]) + return torch.sqrt(ctrness) + + +class MEInstOutputs(object): + def __init__( + self, + images, + locations, + logits_pred, + reg_pred, + ctrness_pred, + mask_regression, + mask_encoding, + focal_loss_alpha, + focal_loss_gamma, + iou_loss, + center_sample, + sizes_of_interest, + strides, + radius, + num_classes, + pre_nms_thresh, + pre_nms_top_n, + nms_thresh, + fpn_post_nms_top_n, + thresh_with_ctr, + gt_instances=None, + cfg=None, + ): + self.cfg = cfg + self.logits_pred = logits_pred + self.reg_pred = reg_pred + self.ctrness_pred = ctrness_pred + self.locations = locations + self.mask_regression = mask_regression + self.mask_encoding = mask_encoding + + self.gt_instances = gt_instances + self.num_feature_maps = len(logits_pred) + self.num_images = len(images) + self.image_sizes = images.image_sizes + self.focal_loss_alpha = focal_loss_alpha + self.focal_loss_gamma = focal_loss_gamma + self.iou_loss = iou_loss + self.center_sample = center_sample + self.sizes_of_interest = sizes_of_interest + self.strides = strides + self.radius = radius + self.num_classes = num_classes + self.pre_nms_thresh = pre_nms_thresh + self.pre_nms_top_n = pre_nms_top_n + self.nms_thresh = nms_thresh + self.fpn_post_nms_top_n = fpn_post_nms_top_n + self.thresh_with_ctr = thresh_with_ctr + + self.loss_on_mask = cfg.MODEL.MEInst.LOSS_ON_MASK + self.mask_loss_type = cfg.MODEL.MEInst.MASK_LOSS_TYPE + self.dim_mask = cfg.MODEL.MEInst.DIM_MASK + self.mask_size = cfg.MODEL.MEInst.MASK_SIZE + if self.loss_on_mask: + self.mask_loss_func = nn.BCEWithLogitsLoss(reduction="none") + elif self.mask_loss_type == 'mse': + self.mask_loss_func = nn.MSELoss(reduction="none") + else: + raise NotImplementedError + + # Matcher to assign box proposals to gt boxes + self.proposal_matcher = Matcher( + cfg.MODEL.MEInst.IOU_THRESHOLDS, + cfg.MODEL.MEInst.IOU_LABELS, + allow_low_quality_matches=False, + ) + + @torch.no_grad() + def prepare_masks( + self, proposals: List[Instances], targets: List[Instances] + ) -> List[Instances]: + proposals_with_gt = [] + for proposals_per_image, targets_per_image in zip(proposals, targets): + # No proposal boxes available for images during training. + if not len(proposals_per_image): + gt_boxes = Boxes( + targets_per_image.gt_boxes.tensor.new_zeros((0, 4)) + ) + proposals_per_image.gt_boxes = gt_boxes + proposals_with_gt.append(proposals_per_image) + continue + + has_gt = len(targets_per_image) > 0 + match_quality_matrix = pairwise_iou( + targets_per_image.gt_boxes, proposals_per_image.pos_boxes + ) + + matched_idxs, matched_labels = self.proposal_matcher(match_quality_matrix) + + # We index all the attributes of targets that start with "gt_" + # and have not been added to proposals yet (="gt_classes"). + if has_gt: + for (trg_name, trg_value) in targets_per_image.get_fields().items(): + if trg_name.startswith("gt_") and not proposals_per_image.has(trg_name): + proposals_per_image.set(trg_name, trg_value[matched_idxs]) + else: + gt_boxes = Boxes( + targets_per_image.gt_boxes.tensor.new_zeros((len(matched_idxs), 4)) + ) + proposals_per_image.gt_boxes = gt_boxes + + proposals_with_gt.append(proposals_per_image) + + return proposals_with_gt + + @staticmethod + def _transpose(training_targets, num_loc_list): + ''' + This function is used to transpose image first training targets to level first ones + :return: level first training targets + ''' + for im_i in range(len(training_targets)): + training_targets[im_i] = torch.split( + training_targets[im_i], num_loc_list, dim=0 + ) + + targets_level_first = [] + for targets_per_level in zip(*training_targets): + targets_level_first.append( + torch.cat(targets_per_level, dim=0) + ) + return targets_level_first + + def _get_ground_truth(self): + num_loc_list = [len(loc) for loc in self.locations] + self.num_loc_list = num_loc_list + + # compute locations to size ranges + loc_to_size_range = [] + for l, loc_per_level in enumerate(self.locations): + loc_to_size_range_per_level = loc_per_level.new_tensor(self.sizes_of_interest[l]) + loc_to_size_range.append( + loc_to_size_range_per_level[None].expand(num_loc_list[l], -1) + ) + + loc_to_size_range = torch.cat(loc_to_size_range, dim=0) + locations = torch.cat(self.locations, dim=0) + + training_targets = self.compute_targets_for_locations( + locations, self.gt_instances, loc_to_size_range + ) + + # Mask Encoding + mask_targets = training_targets.pop("mask_targets") + mask_indices = training_targets.pop("mask_indices") + mask_targets = self.prepare_masks(mask_targets, self.gt_instances) + mask_targets_split = [] + for mask_target_per_img, mask_index_per_img in zip(mask_targets, mask_indices): + assert len(mask_target_per_img) == len(mask_index_per_img), print( + "The number(positive) should be equal between mask_target and mask_index, " + "which means that the function(prepare_masks) should not filter any proposals, " + "the mask should be generated one by one according to the input proposals.") + # there is no gt target assigned to the image. + if len(mask_target_per_img) == 0: + continue + mask_level = [] + level_s = 0 + for level_e in num_loc_list: + level_e += level_s + level_ge = mask_index_per_img.ge(level_s) + level_lt = mask_index_per_img.lt(level_e) + index_level = torch.nonzero(level_ge * level_lt).squeeze(1) + mask_target_per_level = mask_target_per_img[index_level].gt_masks.crop_and_resize( + mask_target_per_img[index_level].pos_boxes.tensor, + self.mask_size).float() + mask_level.append(mask_target_per_level) + level_s = level_e + mask_targets_split.append(mask_level) + + mask_targets_level_first = [] + for level in range(len(self.locations)): + mask_targets_level_first.append( + torch.cat([mask_per_im[level] for mask_per_im in mask_targets_split], dim=0) + ) + + # transpose im first training_targets to level first ones + training_targets = { + k: self._transpose(v, num_loc_list) for k, v in training_targets.items() + } + + labels_level_first = training_targets["labels"] + for labels_per_level, mask_targets_level in zip(labels_level_first, mask_targets_level_first): + num_pos = (labels_per_level != self.num_classes).nonzero().numel() + assert num_pos == mask_targets_level.shape[0], \ + print("The number(positive) should be equal between labels_per_level and mask_targets_level.") + + # append mask_targets to training targets. + training_targets["mask_targets"] = mask_targets_level_first + + # we normalize reg_targets by FPN's strides here + reg_targets = training_targets["reg_targets"] + for l in range(len(reg_targets)): + reg_targets[l] = reg_targets[l] / float(self.strides[l]) + + return training_targets + + @staticmethod + def get_sample_region(gt, strides, num_loc_list, loc_xs, loc_ys, radius=1): + num_gts = gt.shape[0] + K = len(loc_xs) + gt = gt[None].expand(K, num_gts, 4) + center_x = (gt[..., 0] + gt[..., 2]) / 2 + center_y = (gt[..., 1] + gt[..., 3]) / 2 + center_gt = gt.new_zeros(gt.shape) + # no gt + if center_x.numel() == 0 or center_x[..., 0].sum() == 0: + return loc_xs.new_zeros(loc_xs.shape, dtype=torch.uint8) + beg = 0 + for level, num_loc in enumerate(num_loc_list): + end = beg + num_loc + stride = strides[level] * radius + xmin = center_x[beg:end] - stride + ymin = center_y[beg:end] - stride + xmax = center_x[beg:end] + stride + ymax = center_y[beg:end] + stride + # limit sample region in gt + center_gt[beg:end, :, 0] = torch.where(xmin > gt[beg:end, :, 0], xmin, gt[beg:end, :, 0]) + center_gt[beg:end, :, 1] = torch.where(ymin > gt[beg:end, :, 1], ymin, gt[beg:end, :, 1]) + center_gt[beg:end, :, 2] = torch.where(xmax > gt[beg:end, :, 2], gt[beg:end, :, 2], xmax) + center_gt[beg:end, :, 3] = torch.where(ymax > gt[beg:end, :, 3], gt[beg:end, :, 3], ymax) + beg = end + left = loc_xs[:, None] - center_gt[..., 0] + right = center_gt[..., 2] - loc_xs[:, None] + top = loc_ys[:, None] - center_gt[..., 1] + bottom = center_gt[..., 3] - loc_ys[:, None] + center_bbox = torch.stack((left, top, right, bottom), -1) + inside_gt_bbox_mask = center_bbox.min(-1)[0] > 0 + return inside_gt_bbox_mask + + def compute_targets_for_locations(self, locations, targets, size_ranges): + labels = [] + reg_targets = [] + mask_targets = [] + mask_indices = [] + xs, ys = locations[:, 0], locations[:, 1] + + for im_i in range(len(targets)): + targets_per_im = targets[im_i] + bboxes = targets_per_im.gt_boxes.tensor + labels_per_im = targets_per_im.gt_classes + + # no gt + if bboxes.numel() == 0: + labels.append(labels_per_im.new_zeros(locations.size(0)) + self.num_classes) + reg_targets.append(locations.new_zeros((locations.size(0), 4))) + continue + + area = targets_per_im.gt_boxes.area() + + l = xs[:, None] - bboxes[:, 0][None] + t = ys[:, None] - bboxes[:, 1][None] + r = bboxes[:, 2][None] - xs[:, None] + b = bboxes[:, 3][None] - ys[:, None] + reg_targets_per_im = torch.stack([l, t, r, b], dim=2) + + if self.center_sample: + is_in_boxes = self.get_sample_region( + bboxes, self.strides, self.num_loc_list, + xs, ys, radius=self.radius + ) + else: + is_in_boxes = reg_targets_per_im.min(dim=2)[0] > 0 + + max_reg_targets_per_im = reg_targets_per_im.max(dim=2)[0] + # limit the regression range for each location + is_cared_in_the_level = \ + (max_reg_targets_per_im >= size_ranges[:, [0]]) & \ + (max_reg_targets_per_im <= size_ranges[:, [1]]) + + locations_to_gt_area = area[None].repeat(len(locations), 1) + locations_to_gt_area[is_in_boxes == 0] = INF + locations_to_gt_area[is_cared_in_the_level == 0] = INF + + # if there are still more than one objects for a location, + # we choose the one with minimal area + locations_to_min_area, locations_to_gt_inds = locations_to_gt_area.min(dim=1) + + reg_targets_per_im = reg_targets_per_im[range(len(locations)), locations_to_gt_inds] + + labels_per_im = labels_per_im[locations_to_gt_inds] + labels_per_im[locations_to_min_area == INF] = self.num_classes + + labels.append(labels_per_im) + reg_targets.append(reg_targets_per_im) + + # Mask Encoding. + pos_inds = torch.nonzero(labels_per_im != self.num_classes).squeeze(1) + pos_labels = labels_per_im[pos_inds] + pos_reg_targets = reg_targets_per_im[pos_inds] + pos_locations = locations[pos_inds] + bbs = torch.stack([ + pos_locations[:, 0] - pos_reg_targets[:, 0], + pos_locations[:, 1] - pos_reg_targets[:, 1], + pos_locations[:, 0] + pos_reg_targets[:, 2], + pos_locations[:, 1] + pos_reg_targets[:, 3], + ], dim=1) + bbs = Boxes(bbs) + + mask_targets_per_im = Instances(targets_per_im.image_size) + mask_targets_per_im.set("pos_classes", pos_labels) + mask_targets_per_im.set("pos_boxes", bbs) + + mask_targets.append(mask_targets_per_im) + mask_indices.append(pos_inds) + + return {"labels": labels, "reg_targets": reg_targets, + "mask_targets": mask_targets, "mask_indices": mask_indices} + + def MEInst_losses( + self, + labels, + reg_targets, + logits_pred, + reg_pred, + ctrness_pred, + mask_pred, + mask_targets + ): + num_classes = logits_pred.size(1) + labels = labels.flatten() + + pos_inds = torch.nonzero(labels != num_classes).squeeze(1) + num_pos_local = pos_inds.numel() + num_gpus = get_world_size() + total_num_pos = reduce_sum(pos_inds.new_tensor([num_pos_local])).item() + num_pos_avg = max(total_num_pos / num_gpus, 1.0) + + # prepare one_hot + class_target = torch.zeros_like(logits_pred) + class_target[pos_inds, labels[pos_inds]] = 1 + + class_loss = sigmoid_focal_loss_jit( + logits_pred, + class_target, + alpha=self.focal_loss_alpha, + gamma=self.focal_loss_gamma, + reduction="sum", + ) / num_pos_avg + + reg_pred = reg_pred[pos_inds] + reg_targets = reg_targets[pos_inds] + ctrness_pred = ctrness_pred[pos_inds] + mask_pred = mask_pred[pos_inds] + assert mask_pred.shape[0] == mask_targets.shape[0], \ + print("The number(positive) should be equal between " + "masks_pred(prediction) and mask_targets(target).") + + ctrness_targets = compute_ctrness_targets(reg_targets) + ctrness_targets_sum = ctrness_targets.sum() + ctrness_norm = max(reduce_sum(ctrness_targets_sum).item() / num_gpus, 1e-6) + + reg_loss = self.iou_loss( + reg_pred, + reg_targets, + ctrness_targets + ) / ctrness_norm + + ctrness_loss = F.binary_cross_entropy_with_logits( + ctrness_pred, + ctrness_targets, + reduction="sum" + ) / num_pos_avg + + if self.loss_on_mask: + # n_components predictions --> m*m mask predictions without sigmoid + # as sigmoid function is combined in loss. + mask_pred = self.mask_encoding.decoder(mask_pred, is_train=True) + mask_loss = self.mask_loss_func( + mask_pred, + mask_targets + ) + mask_loss = mask_loss.sum(1) * ctrness_targets + mask_loss = mask_loss.sum() / max(ctrness_norm * self.mask_size ** 2, 1.0) + else: + # m*m mask labels --> n_components encoding labels + mask_targets = self.mask_encoding.encoder(mask_targets) + if self.mask_loss_type == 'mse': + mask_loss = self.mask_loss_func( + mask_pred, + mask_targets + ) + mask_loss = mask_loss.sum(1) * ctrness_targets + mask_loss = mask_loss.sum() / max(ctrness_norm * self.dim_mask, 1.0) + else: + raise NotImplementedError + + losses = { + "loss_MEInst_cls": class_loss, + "loss_MEInst_loc": reg_loss, + "loss_MEInst_ctr": ctrness_loss, + "loss_MEInst_mask": mask_loss, + } + return losses, {} + + def losses(self): + """ + Return the losses from a set of MEInst predictions and their associated ground-truth. + + Returns: + dict[loss name -> loss value]: A dict mapping from loss name to loss value. + """ + + training_targets = self._get_ground_truth() + labels, reg_targets, mask_targets = training_targets["labels"], training_targets["reg_targets"], \ + training_targets["mask_targets"] + + # Collect all logits and regression predictions over feature maps + # and images to arrive at the same shape as the labels and targets + # The final ordering is L, N, H, W from slowest to fastest axis. + logits_pred = cat( + [ + # Reshape: (N, C, Hi, Wi) -> (N, Hi, Wi, C) -> (N*Hi*Wi, C) + x.permute(0, 2, 3, 1).reshape(-1, self.num_classes) + for x in self.logits_pred + ], dim=0,) + reg_pred = cat( + [ + # Reshape: (N, B, Hi, Wi) -> (N, Hi, Wi, B) -> (N*Hi*Wi, B) + x.permute(0, 2, 3, 1).reshape(-1, 4) + for x in self.reg_pred + ], dim=0,) + ctrness_pred = cat( + [ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.reshape(-1) for x in self.ctrness_pred + ], dim=0,) + + labels = cat( + [ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.reshape(-1) for x in labels + ], dim=0,) + + reg_targets = cat( + [ + # Reshape: (N, Hi, Wi, 4) -> (N*Hi*Wi, 4) + x.reshape(-1, 4) for x in reg_targets + ], dim=0,) + + mask_pred = cat( + [ + # Reshape: (N, D, Hi, Wi) -> (N, Hi, Wi, D) -> (N*Hi*Wi, D) + x.permute(0, 2, 3, 1).reshape(-1, self.dim_mask) + for x in self.mask_regression + ], dim=0,) + + mask_targets = cat( + [ + # Reshape: (N, Hi, Wi, mask_size^2) -> (N*Hi*Wi, mask_size^2) + x.reshape(-1, self.mask_size ** 2) for x in mask_targets + ], dim=0,) + + return self.MEInst_losses( + labels, + reg_targets, + logits_pred, + reg_pred, + ctrness_pred, + mask_pred, + mask_targets + ) + + def predict_proposals(self): + sampled_boxes = [] + + bundle = ( + self.locations, self.logits_pred, + self.reg_pred, self.ctrness_pred, + self.strides, self.mask_regression + ) + + for i, (l, o, r, c, s, mr) in enumerate(zip(*bundle)): + # recall that during training, we normalize regression targets with FPN's stride. + # we denormalize them here. + r = r * s + sampled_boxes.append( + self.forward_for_single_feature_map( + l, o, r, c, mr, self.image_sizes + ) + ) + + boxlists = list(zip(*sampled_boxes)) + boxlists = [Instances.cat(boxlist) for boxlist in boxlists] + boxlists = self.select_over_all_levels(boxlists) + + num_images = len(boxlists) + for i in range(num_images): + per_image_masks = boxlists[i].pred_masks + per_image_masks = self.mask_encoding.decoder(per_image_masks, is_train=False) + per_image_masks = per_image_masks.view(-1, 1, self.mask_size, self.mask_size) + boxlists[i].pred_masks = per_image_masks + + return boxlists + + def forward_for_single_feature_map( + self, locations, box_cls, + reg_pred, ctrness, mask_regression, image_sizes + ): + N, C, H, W = box_cls.shape + + # put in the same format as locations + box_cls = box_cls.view(N, C, H, W).permute(0, 2, 3, 1) + box_cls = box_cls.reshape(N, -1, C).sigmoid() + box_regression = reg_pred.view(N, 4, H, W).permute(0, 2, 3, 1) + box_regression = box_regression.reshape(N, -1, 4) + ctrness = ctrness.view(N, 1, H, W).permute(0, 2, 3, 1) + ctrness = ctrness.reshape(N, -1).sigmoid() + mask_regression = mask_regression.view(N, self.dim_mask, H, W).permute(0, 2, 3, 1) + mask_regression = mask_regression.reshape(N, -1, self.dim_mask) + + # if self.thresh_with_ctr is True, we multiply the classification + # scores with centerness scores before applying the threshold. + if self.thresh_with_ctr: + box_cls = box_cls * ctrness[:, :, None] + candidate_inds = box_cls > self.pre_nms_thresh + pre_nms_top_n = candidate_inds.view(N, -1).sum(1) + pre_nms_top_n = pre_nms_top_n.clamp(max=self.pre_nms_top_n) + + if not self.thresh_with_ctr: + box_cls = box_cls * ctrness[:, :, None] + + results = [] + for i in range(N): + per_box_cls = box_cls[i] + per_candidate_inds = candidate_inds[i] + per_box_cls = per_box_cls[per_candidate_inds] + + per_candidate_nonzeros = per_candidate_inds.nonzero() + per_box_loc = per_candidate_nonzeros[:, 0] + per_class = per_candidate_nonzeros[:, 1] + + per_box_regression = box_regression[i] + per_box_regression = per_box_regression[per_box_loc] + per_locations = locations[per_box_loc] + + per_box_mask = mask_regression[i] + per_box_mask = per_box_mask[per_box_loc] + + per_pre_nms_top_n = pre_nms_top_n[i] + + if per_candidate_inds.sum().item() > per_pre_nms_top_n.item(): + per_box_cls, top_k_indices = \ + per_box_cls.topk(per_pre_nms_top_n, sorted=False) + per_class = per_class[top_k_indices] + per_box_regression = per_box_regression[top_k_indices] + per_locations = per_locations[top_k_indices] + per_box_mask = per_box_mask[top_k_indices] + + detections = torch.stack([ + per_locations[:, 0] - per_box_regression[:, 0], + per_locations[:, 1] - per_box_regression[:, 1], + per_locations[:, 0] + per_box_regression[:, 2], + per_locations[:, 1] + per_box_regression[:, 3], + ], dim=1) + + boxlist = Instances(image_sizes[i]) + boxlist.pred_boxes = Boxes(detections) + boxlist.scores = torch.sqrt(per_box_cls) + boxlist.pred_classes = per_class + boxlist.locations = per_locations + boxlist.pred_masks = per_box_mask + + results.append(boxlist) + + return results + + def select_over_all_levels(self, boxlists): + num_images = len(boxlists) + results = [] + for i in range(num_images): + # multiclass nms + result = ml_nms(boxlists[i], self.nms_thresh) + number_of_detections = len(result) + + # Limit to max_per_image detections **over all classes** + if number_of_detections > self.fpn_post_nms_top_n > 0: + cls_scores = result.scores + image_thresh, _ = torch.kthvalue( + cls_scores.cpu(), + number_of_detections - self.fpn_post_nms_top_n + 1 + ) + keep = cls_scores >= image_thresh.item() + keep = torch.nonzero(keep).squeeze(1) + result = result[keep] + results.append(result) + return results diff --git a/AdelaiDet/adet/modeling/MEInst/MaskEncoding.py b/AdelaiDet/adet/modeling/MEInst/MaskEncoding.py new file mode 100755 index 0000000..ae5c718 --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/MaskEncoding.py @@ -0,0 +1,125 @@ +# coding:utf-8 +import torch +import torch.nn as nn + +VALUE_MAX = 0.05 +VALUE_MIN = 0.01 + + +@torch.no_grad() +class PCAMaskEncoding(nn.Module): + """ + To do the mask encoding of PCA. + components_: (tensor), shape (n_components, n_features) if agnostic=True + else (n_samples, n_components, n_features) + explained_variance_: Variance explained by each of the selected components. + (tensor), shape (n_components) if agnostic=True + else (n_samples, n_components) + mean_: (tensor), shape (n_features) if agnostic=True + else (n_samples, n_features) + agnostic: (bool), whether class_agnostic or class_specific. + whiten : (bool), optional + When True (False by default) the ``components_`` vectors are divided + by ``n_samples`` times ``components_`` to ensure uncorrelated outputs + with unit component-wise variances. + Whitening will remove some information from the transformed signal + (the relative variance scales of the components) but can sometimes + improve the predictive accuracy of the downstream estimators by + making data respect some hard-wired assumptions. + sigmoid: (bool) whether to apply inverse sigmoid before transform. + """ + def __init__(self, cfg): + super().__init__() + self.cfg = cfg + self.agnostic = cfg.MODEL.MEInst.AGNOSTIC + self.whiten = cfg.MODEL.MEInst.WHITEN + self.sigmoid = cfg.MODEL.MEInst.SIGMOID + self.dim_mask = cfg.MODEL.MEInst.DIM_MASK + self.mask_size = cfg.MODEL.MEInst.MASK_SIZE + + if self.agnostic: + self.components = nn.Parameter(torch.zeros(self.dim_mask, self.mask_size**2), requires_grad=False) + self.explained_variances = nn.Parameter(torch.zeros(self.dim_mask), requires_grad=False) + self.means = nn.Parameter(torch.zeros(self.mask_size**2), requires_grad=False) + else: + raise NotImplementedError + + def inverse_sigmoid(self, x): + """Apply the inverse sigmoid operation. + y = -ln(1-x/x) + """ + # In case of overflow + value_random = VALUE_MAX * torch.rand_like(x) + value_random = torch.where(value_random > VALUE_MIN, value_random, VALUE_MIN * torch.ones_like(x)) + x = torch.where(x > value_random, 1 - value_random, value_random) + # inverse sigmoid + y = -1 * torch.log((1 - x) / x) + return y + + def encoder(self, X): + """Apply dimensionality reduction to X. + X is projected on the first principal components previously extracted + from a training set. + Parameters + ---------- + X : Original features(tensor), shape (n_samples, n_features) + New data, where n_samples is the number of samples + and n_features is the number of features. + + Returns + ------- + X_transformed : Transformed features(tensor), shape (n_samples, n_features) + """ + assert X.shape[1] == self.mask_size**2, print("The original mask_size of input" + " should be equal to the supposed size.") + + if self.sigmoid: + X = self.inverse_sigmoid(X) + + if self.agnostic: + if self.means is not None: + X_transformed = X - self.means + X_transformed = torch.matmul(X_transformed, self.components.T) + if self.whiten: + X_transformed /= torch.sqrt(self.explained_variances) + else: + # TODO: The class-specific version has not implemented. + raise NotImplementedError + + return X_transformed + + def decoder(self, X, is_train=False): + """Transform data back to its original space. + In other words, return an input X_original whose transform would be X. + Parameters + ---------- + X : Encoded features(tensor), shape (n_samples, n_components) + New data, where n_samples is the number of samples + and n_components is the number of components. + + Returns + ------- + X_original original features(tensor), shape (n_samples, n_features) + """ + assert X.shape[1] == self.dim_mask, print("The dim of transformed data " + "should be equal to the supposed dim.") + + if self.agnostic: + if self.whiten: + components_ = self.components * torch.sqrt(self.explained_variances.unsqueeze(1)) + X_transformed = torch.matmul(X, components_) + if self.means is not None: + X_transformed = X_transformed + self.means + else: + # TODO: The class-specific version has not implemented. + raise NotImplementedError + + if is_train: + pass + else: + if self.sigmoid: + X_transformed = torch.sigmoid(X_transformed) + else: + X_transformed = torch.clamp(X_transformed, min=0.01, max=0.99) + + return X_transformed diff --git a/AdelaiDet/adet/modeling/MEInst/__init__.py b/AdelaiDet/adet/modeling/MEInst/__init__.py new file mode 100755 index 0000000..648b794 --- /dev/null +++ b/AdelaiDet/adet/modeling/MEInst/__init__.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +from .MEInst import MEInst +from .MaskEncoding import PCAMaskEncoding diff --git a/AdelaiDet/adet/modeling/__init__.py b/AdelaiDet/adet/modeling/__init__.py new file mode 100755 index 0000000..c7caf1a --- /dev/null +++ b/AdelaiDet/adet/modeling/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +from .fcos import FCOS +from .blendmask import BlendMask +from .backbone import build_fcos_resnet_fpn_backbone +from .one_stage_detector import OneStageDetector, OneStageRCNN +from .roi_heads.text_head import TextHead +from .batext import BAText +from .MEInst import MEInst +from .condinst import condinst +from .solov2 import SOLOv2 +from .fcpose import FCPose + +_EXCLUDE = {"torch", "ShapeSpec"} +__all__ = [k for k in globals().keys() if k not in _EXCLUDE and not k.startswith("_")] diff --git a/AdelaiDet/adet/modeling/backbone/__init__.py b/AdelaiDet/adet/modeling/backbone/__init__.py new file mode 100755 index 0000000..93af744 --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/__init__.py @@ -0,0 +1,5 @@ +from .fpn import build_fcos_resnet_fpn_backbone +from .vovnet import build_vovnet_fpn_backbone, build_vovnet_backbone +from .dla import build_fcos_dla_fpn_backbone +from .resnet_lpf import build_resnet_lpf_backbone +from .bifpn import build_fcos_resnet_bifpn_backbone diff --git a/AdelaiDet/adet/modeling/backbone/bifpn.py b/AdelaiDet/adet/modeling/backbone/bifpn.py new file mode 100755 index 0000000..7c2c385 --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/bifpn.py @@ -0,0 +1,410 @@ +import torch +import torch.nn.functional as F +from torch import nn + +from detectron2.layers import Conv2d, ShapeSpec, get_norm + +from detectron2.modeling.backbone import Backbone, build_resnet_backbone +from detectron2.modeling import BACKBONE_REGISTRY +from .mobilenet import build_mnv2_backbone + +__all__ = [] + + +def swish(x): + return x * x.sigmoid() + + +def split_name(name): + for i, c in enumerate(name): + if not c.isalpha(): + return name[:i], int(name[i:]) + raise ValueError() + + +class FeatureMapResampler(nn.Module): + def __init__(self, in_channels, out_channels, stride, norm=""): + super(FeatureMapResampler, self).__init__() + if in_channels != out_channels: + self.reduction = Conv2d( + in_channels, out_channels, kernel_size=1, + bias=(norm == ""), + norm=get_norm(norm, out_channels), + activation=None + ) + else: + self.reduction = None + + assert stride <= 2 + self.stride = stride + + def forward(self, x): + if self.reduction is not None: + x = self.reduction(x) + + if self.stride == 2: + x = F.max_pool2d( + x, kernel_size=self.stride + 1, + stride=self.stride, padding=1 + ) + elif self.stride == 1: + pass + else: + raise NotImplementedError() + return x + + +class BackboneWithTopLevels(Backbone): + def __init__(self, backbone, out_channels, num_top_levels, norm=""): + super(BackboneWithTopLevels, self).__init__() + self.backbone = backbone + backbone_output_shape = backbone.output_shape() + + self._out_feature_channels = {name: shape.channels for name, shape in backbone_output_shape.items()} + self._out_feature_strides = {name: shape.stride for name, shape in backbone_output_shape.items()} + self._out_features = list(self._out_feature_strides.keys()) + + last_feature_name = max(self._out_feature_strides.keys(), key=lambda x: split_name(x)[1]) + self.last_feature_name = last_feature_name + self.num_top_levels = num_top_levels + + last_channels = self._out_feature_channels[last_feature_name] + last_stride = self._out_feature_strides[last_feature_name] + + prefix, suffix = split_name(last_feature_name) + prev_channels = last_channels + for i in range(num_top_levels): + name = prefix + str(suffix + i + 1) + self.add_module(name, FeatureMapResampler( + prev_channels, out_channels, 2, norm + )) + prev_channels = out_channels + + self._out_feature_channels[name] = out_channels + self._out_feature_strides[name] = last_stride * 2 ** (i + 1) + self._out_features.append(name) + + def forward(self, x): + outputs = self.backbone(x) + last_features = outputs[self.last_feature_name] + prefix, suffix = split_name(self.last_feature_name) + + x = last_features + for i in range(self.num_top_levels): + name = prefix + str(suffix + i + 1) + x = self.__getattr__(name)(x) + outputs[name] = x + + return outputs + + +class SingleBiFPN(Backbone): + """ + This module implements Feature Pyramid Network. + It creates pyramid features built on top of some input feature maps. + """ + + def __init__( + self, in_channels_list, out_channels, norm="" + ): + """ + Args: + bottom_up (Backbone): module representing the bottom up subnetwork. + Must be a subclass of :class:`Backbone`. The multi-scale feature + maps generated by the bottom up network, and listed in `in_features`, + are used to generate FPN levels. + in_features (list[str]): names of the input feature maps coming + from the backbone to which FPN is attached. For example, if the + backbone produces ["res2", "res3", "res4"], any *contiguous* sublist + of these may be used; order must be from high to low resolution. + out_channels (int): number of channels in the output feature maps. + norm (str): the normalization to use. + """ + super(SingleBiFPN, self).__init__() + + self.out_channels = out_channels + # build 5-levels bifpn + if len(in_channels_list) == 5: + self.nodes = [ + {'feat_level': 3, 'inputs_offsets': [3, 4]}, + {'feat_level': 2, 'inputs_offsets': [2, 5]}, + {'feat_level': 1, 'inputs_offsets': [1, 6]}, + {'feat_level': 0, 'inputs_offsets': [0, 7]}, + {'feat_level': 1, 'inputs_offsets': [1, 7, 8]}, + {'feat_level': 2, 'inputs_offsets': [2, 6, 9]}, + {'feat_level': 3, 'inputs_offsets': [3, 5, 10]}, + {'feat_level': 4, 'inputs_offsets': [4, 11]}, + ] + elif len(in_channels_list) == 6: + self.nodes = [ + {'feat_level': 4, 'inputs_offsets': [4, 5]}, + {'feat_level': 3, 'inputs_offsets': [3, 6]}, + {'feat_level': 2, 'inputs_offsets': [2, 7]}, + {'feat_level': 1, 'inputs_offsets': [1, 8]}, + {'feat_level': 0, 'inputs_offsets': [0, 9]}, + {'feat_level': 1, 'inputs_offsets': [1, 9, 10]}, + {'feat_level': 2, 'inputs_offsets': [2, 8, 11]}, + {'feat_level': 3, 'inputs_offsets': [3, 7, 12]}, + {'feat_level': 4, 'inputs_offsets': [4, 6, 13]}, + {'feat_level': 5, 'inputs_offsets': [5, 14]}, + ] + elif len(in_channels_list) == 3: + self.nodes = [ + {'feat_level': 1, 'inputs_offsets': [1, 2]}, + {'feat_level': 0, 'inputs_offsets': [0, 3]}, + {'feat_level': 1, 'inputs_offsets': [1, 3, 4]}, + {'feat_level': 2, 'inputs_offsets': [2, 5]}, + ] + else: + raise NotImplementedError + + node_info = [_ for _ in in_channels_list] + + num_output_connections = [0 for _ in in_channels_list] + for fnode in self.nodes: + feat_level = fnode["feat_level"] + inputs_offsets = fnode["inputs_offsets"] + inputs_offsets_str = "_".join(map(str, inputs_offsets)) + for input_offset in inputs_offsets: + num_output_connections[input_offset] += 1 + + in_channels = node_info[input_offset] + if in_channels != out_channels: + lateral_conv = Conv2d( + in_channels, + out_channels, + kernel_size=1, + norm=get_norm(norm, out_channels) + ) + self.add_module( + "lateral_{}_f{}".format(input_offset, feat_level), lateral_conv + ) + node_info.append(out_channels) + num_output_connections.append(0) + + # generate attention weights + name = "weights_f{}_{}".format(feat_level, inputs_offsets_str) + self.__setattr__(name, nn.Parameter( + torch.ones(len(inputs_offsets), dtype=torch.float32), + requires_grad=True + )) + + # generate convolutions after combination + name = "outputs_f{}_{}".format(feat_level, inputs_offsets_str) + self.add_module(name, Conv2d( + out_channels, + out_channels, + kernel_size=3, + padding=1, + norm=get_norm(norm, out_channels), + bias=(norm == "") + )) + + def forward(self, feats): + """ + Args: + input (dict[str->Tensor]): mapping feature map name (e.g., "p5") to + feature map tensor for each feature level in high to low resolution order. + + Returns: + dict[str->Tensor]: + mapping from feature map name to FPN feature map tensor + in high to low resolution order. Returned feature names follow the FPN + paper convention: "p", where stage has stride = 2 ** stage e.g., + ["n2", "n3", ..., "n6"]. + """ + feats = [_ for _ in feats] + num_levels = len(feats) + num_output_connections = [0 for _ in feats] + for fnode in self.nodes: + feat_level = fnode["feat_level"] + inputs_offsets = fnode["inputs_offsets"] + inputs_offsets_str = "_".join(map(str, inputs_offsets)) + input_nodes = [] + _, _, target_h, target_w = feats[feat_level].size() + for input_offset in inputs_offsets: + num_output_connections[input_offset] += 1 + input_node = feats[input_offset] + + # reduction + if input_node.size(1) != self.out_channels: + name = "lateral_{}_f{}".format(input_offset, feat_level) + input_node = self.__getattr__(name)(input_node) + + # maybe downsample + _, _, h, w = input_node.size() + if h > target_h and w > target_w: + height_stride_size = int((h - 1) // target_h + 1) + width_stride_size = int((w - 1) // target_w + 1) + assert height_stride_size == width_stride_size == 2 + input_node = F.max_pool2d( + input_node, kernel_size=(height_stride_size + 1, width_stride_size + 1), + stride=(height_stride_size, width_stride_size), padding=1 + ) + elif h <= target_h and w <= target_w: + if h < target_h or w < target_w: + input_node = F.interpolate( + input_node, + size=(target_h, target_w), + mode="nearest" + ) + else: + raise NotImplementedError() + input_nodes.append(input_node) + + # attention + name = "weights_f{}_{}".format(feat_level, inputs_offsets_str) + weights = F.relu(self.__getattr__(name)) + norm_weights = weights / (weights.sum() + 0.0001) + + new_node = torch.stack(input_nodes, dim=-1) + new_node = (norm_weights * new_node).sum(dim=-1) + new_node = swish(new_node) + + name = "outputs_f{}_{}".format(feat_level, inputs_offsets_str) + feats.append(self.__getattr__(name)(new_node)) + + num_output_connections.append(0) + + output_feats = [] + for idx in range(num_levels): + for i, fnode in enumerate(reversed(self.nodes)): + if fnode['feat_level'] == idx: + output_feats.append(feats[-1 - i]) + break + else: + raise ValueError() + return output_feats + + +class BiFPN(Backbone): + """ + This module implements Feature Pyramid Network. + It creates pyramid features built on top of some input feature maps. + """ + + def __init__( + self, bottom_up, in_features, out_channels, num_top_levels, num_repeats, norm="" + ): + """ + Args: + bottom_up (Backbone): module representing the bottom up subnetwork. + Must be a subclass of :class:`Backbone`. The multi-scale feature + maps generated by the bottom up network, and listed in `in_features`, + are used to generate FPN levels. + in_features (list[str]): names of the input feature maps coming + from the backbone to which FPN is attached. For example, if the + backbone produces ["res2", "res3", "res4"], any *contiguous* sublist + of these may be used; order must be from high to low resolution. + out_channels (int): number of channels in the output feature maps. + num_top_levels (int): the number of the top levels (p6 or p7). + num_repeats (int): the number of repeats of BiFPN. + norm (str): the normalization to use. + """ + super(BiFPN, self).__init__() + assert isinstance(bottom_up, Backbone) + + # add extra feature levels (i.e., 6 and 7) + self.bottom_up = BackboneWithTopLevels( + bottom_up, out_channels, + num_top_levels, norm + ) + bottom_up_output_shapes = self.bottom_up.output_shape() + + in_features = sorted(in_features, key=lambda x: split_name(x)[1]) + self._size_divisibility = bottom_up_output_shapes[in_features[-1]].stride + self.out_channels = out_channels + self.min_level = split_name(in_features[0])[1] + + # add the names for top blocks + prefix, last_suffix = split_name(in_features[-1]) + for i in range(num_top_levels): + in_features.append(prefix + str(last_suffix + i + 1)) + self.in_features = in_features + + # generate output features + self._out_features = ["p{}".format(split_name(name)[1]) for name in in_features] + self._out_feature_strides = { + out_name: bottom_up_output_shapes[in_name].stride + for out_name, in_name in zip(self._out_features, in_features) + } + self._out_feature_channels = {k: out_channels for k in self._out_features} + + # build bifpn + self.repeated_bifpn = nn.ModuleList() + for i in range(num_repeats): + if i == 0: + in_channels_list = [ + bottom_up_output_shapes[name].channels for name in in_features + ] + else: + in_channels_list = [ + self._out_feature_channels[name] for name in self._out_features + ] + self.repeated_bifpn.append(SingleBiFPN( + in_channels_list, out_channels, norm + )) + + @property + def size_divisibility(self): + return self._size_divisibility + + def forward(self, x): + """ + Args: + input (dict[str->Tensor]): mapping feature map name (e.g., "p5") to + feature map tensor for each feature level in high to low resolution order. + + Returns: + dict[str->Tensor]: + mapping from feature map name to FPN feature map tensor + in high to low resolution order. Returned feature names follow the FPN + paper convention: "p", where stage has stride = 2 ** stage e.g., + ["n2", "n3", ..., "n6"]. + """ + bottom_up_features = self.bottom_up(x) + feats = [bottom_up_features[f] for f in self.in_features] + + for bifpn in self.repeated_bifpn: + feats = bifpn(feats) + + return dict(zip(self._out_features, feats)) + + +def _assert_strides_are_log2_contiguous(strides): + """ + Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2". + """ + for i, stride in enumerate(strides[1:], 1): + assert stride == 2 * strides[i - 1], "Strides {} {} are not log2 contiguous".format( + stride, strides[i - 1] + ) + + +@BACKBONE_REGISTRY.register() +def build_fcos_resnet_bifpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + if cfg.MODEL.MOBILENET: + bottom_up = build_mnv2_backbone(cfg, input_shape) + else: + bottom_up = build_resnet_backbone(cfg, input_shape) + in_features = cfg.MODEL.BiFPN.IN_FEATURES + out_channels = cfg.MODEL.BiFPN.OUT_CHANNELS + num_repeats = cfg.MODEL.BiFPN.NUM_REPEATS + top_levels = cfg.MODEL.FCOS.TOP_LEVELS + + backbone = BiFPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + num_top_levels=top_levels, + num_repeats=num_repeats, + norm=cfg.MODEL.BiFPN.NORM + ) + return backbone diff --git a/AdelaiDet/adet/modeling/backbone/dla.py b/AdelaiDet/adet/modeling/backbone/dla.py new file mode 100755 index 0000000..9039952 --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/dla.py @@ -0,0 +1,441 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# this file is from https://github.com/ucbdrive/dla/blob/master/dla.py. + +import math +from os.path import join + +import torch +from torch import nn +import torch.utils.model_zoo as model_zoo +import torch.nn.functional as F +import fvcore.nn.weight_init as weight_init + +from detectron2.modeling.backbone import FPN +from detectron2.layers import ShapeSpec +from detectron2.modeling.backbone.build import BACKBONE_REGISTRY +from detectron2.layers.batch_norm import get_norm +from detectron2.modeling.backbone import Backbone + +from .fpn import LastLevelP6, LastLevelP6P7 + + +WEB_ROOT = 'http://dl.yf.io/dla/models' + + +def get_model_url(data, name): + return join(WEB_ROOT, data.name, + '{}-{}.pth'.format(name, data.model_hash[name])) + + +def conv3x3(in_planes, out_planes, stride=1): + "3x3 convolution with padding" + return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, + padding=1, bias=False) + + +class BasicBlock(nn.Module): + def __init__(self, cfg, inplanes, planes, stride=1, dilation=1): + super(BasicBlock, self).__init__() + self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=3, + stride=stride, padding=dilation, + bias=False, dilation=dilation) + self.bn1 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.relu = nn.ReLU(inplace=True) + self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, + stride=1, padding=dilation, + bias=False, dilation=dilation) + self.bn2 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.stride = stride + + def forward(self, x, residual=None): + if residual is None: + residual = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + + out += residual + out = self.relu(out) + + return out + + +class Bottleneck(nn.Module): + expansion = 2 + + def __init__(self, cfg, inplanes, planes, stride=1, dilation=1): + super(Bottleneck, self).__init__() + expansion = Bottleneck.expansion + bottle_planes = planes // expansion + self.conv1 = nn.Conv2d(inplanes, bottle_planes, + kernel_size=1, bias=False) + self.bn1 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.conv2 = nn.Conv2d(bottle_planes, bottle_planes, kernel_size=3, + stride=stride, padding=dilation, + bias=False, dilation=dilation) + self.bn2 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.conv3 = nn.Conv2d(bottle_planes, planes, + kernel_size=1, bias=False) + self.bn3 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.relu = nn.ReLU(inplace=True) + self.stride = stride + + def forward(self, x, residual=None): + if residual is None: + residual = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + out = self.relu(out) + + out = self.conv3(out) + out = self.bn3(out) + + out += residual + out = self.relu(out) + + return out + + +class BottleneckX(nn.Module): + expansion = 2 + cardinality = 32 + + def __init__(self, cfg, inplanes, planes, stride=1, dilation=1): + super(BottleneckX, self).__init__() + cardinality = BottleneckX.cardinality + # dim = int(math.floor(planes * (BottleneckV5.expansion / 64.0))) + # bottle_planes = dim * cardinality + bottle_planes = planes * cardinality // 32 + self.conv1 = nn.Conv2d(inplanes, bottle_planes, + kernel_size=1, bias=False) + self.bn1 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.conv2 = nn.Conv2d(bottle_planes, bottle_planes, kernel_size=3, + stride=stride, padding=dilation, bias=False, + dilation=dilation, groups=cardinality) + self.bn2 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.conv3 = nn.Conv2d(bottle_planes, planes, + kernel_size=1, bias=False) + self.bn3 = get_norm(cfg.MODEL.DLA.NORM, planes) + self.relu = nn.ReLU(inplace=True) + self.stride = stride + + def forward(self, x, residual=None): + if residual is None: + residual = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + out = self.relu(out) + + out = self.conv3(out) + out = self.bn3(out) + + out += residual + out = self.relu(out) + + return out + + +class Root(nn.Module): + def __init__(self, cfg, in_channels, out_channels, kernel_size, residual): + super(Root, self).__init__() + self.conv = nn.Conv2d( + in_channels, out_channels, kernel_size, + stride=1, bias=False, padding=(kernel_size - 1) // 2) + self.bn = get_norm(cfg.MODEL.DLA.NORM, out_channels) + self.relu = nn.ReLU(inplace=True) + self.residual = residual + + def forward(self, *x): + children = x + x = self.conv(torch.cat(x, 1)) + x = self.bn(x) + if self.residual: + x += children[0] + x = self.relu(x) + + return x + + +class Tree(nn.Module): + def __init__(self, cfg, levels, block, in_channels, out_channels, stride=1, + level_root=False, root_dim=0, root_kernel_size=1, + dilation=1, root_residual=False): + super(Tree, self).__init__() + if root_dim == 0: + root_dim = 2 * out_channels + if level_root: + root_dim += in_channels + if levels == 1: + self.tree1 = block(cfg, in_channels, out_channels, stride, + dilation=dilation) + self.tree2 = block(cfg, out_channels, out_channels, 1, + dilation=dilation) + else: + self.tree1 = Tree(cfg, levels - 1, block, in_channels, out_channels, + stride, root_dim=0, + root_kernel_size=root_kernel_size, + dilation=dilation, root_residual=root_residual) + self.tree2 = Tree(cfg, levels - 1, block, out_channels, out_channels, + root_dim=root_dim + out_channels, + root_kernel_size=root_kernel_size, + dilation=dilation, root_residual=root_residual) + if levels == 1: + self.root = Root(cfg, root_dim, out_channels, root_kernel_size, + root_residual) + self.level_root = level_root + self.root_dim = root_dim + self.downsample = None + self.project = None + self.levels = levels + if stride > 1: + self.downsample = nn.MaxPool2d(stride, stride=stride) + if in_channels != out_channels: + self.project = nn.Sequential( + nn.Conv2d(in_channels, out_channels, + kernel_size=1, stride=1, bias=False), + get_norm(cfg.MODEL.DLA.NORM, out_channels) + ) + + def forward(self, x, residual=None, children=None): + if self.training and residual is not None: + x = x + residual.sum() * 0.0 + children = [] if children is None else children + bottom = self.downsample(x) if self.downsample else x + residual = self.project(bottom) if self.project else bottom + if self.level_root: + children.append(bottom) + x1 = self.tree1(x, residual) + if self.levels == 1: + x2 = self.tree2(x1) + x = self.root(x2, x1, *children) + else: + children.append(x1) + x = self.tree2(x1, children=children) + return x + + +class DLA(Backbone): + def __init__(self, cfg, levels, channels, block=BasicBlock, residual_root=False): + super(DLA, self).__init__() + self.cfg = cfg + self.channels = channels + + self._out_features = ["level{}".format(i) for i in range(6)] + self._out_feature_channels = {k: channels[i] for i, k in enumerate(self._out_features)} + self._out_feature_strides = {k: 2 ** i for i, k in enumerate(self._out_features)} + + self.base_layer = nn.Sequential( + nn.Conv2d(3, channels[0], kernel_size=7, stride=1, + padding=3, bias=False), + get_norm(cfg.MODEL.DLA.NORM, channels[0]), + nn.ReLU(inplace=True)) + self.level0 = self._make_conv_level( + channels[0], channels[0], levels[0]) + self.level1 = self._make_conv_level( + channels[0], channels[1], levels[1], stride=2) + self.level2 = Tree(cfg, levels[2], block, channels[1], channels[2], 2, + level_root=False, + root_residual=residual_root) + self.level3 = Tree(cfg, levels[3], block, channels[2], channels[3], 2, + level_root=True, root_residual=residual_root) + self.level4 = Tree(cfg, levels[4], block, channels[3], channels[4], 2, + level_root=True, root_residual=residual_root) + self.level5 = Tree(cfg, levels[5], block, channels[4], channels[5], 2, + level_root=True, root_residual=residual_root) + + # self.avgpool = nn.AvgPool2d(pool_size) + # self.fc = nn.Conv2d(channels[-1], num_classes, kernel_size=1, + # stride=1, padding=0, bias=True) + + for m in self.modules(): + if isinstance(m, nn.Conv2d): + n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels + m.weight.data.normal_(0, math.sqrt(2. / n)) + + def _make_level(self, block, inplanes, planes, blocks, stride=1): + downsample = None + if stride != 1 or inplanes != planes: + downsample = nn.Sequential( + nn.MaxPool2d(stride, stride=stride), + nn.Conv2d(inplanes, planes, + kernel_size=1, stride=1, bias=False), + get_norm(self.cfg.MODEL.DLA.NORM, planes), + ) + + layers = [] + layers.append(block(inplanes, planes, stride, downsample=downsample)) + for i in range(1, blocks): + layers.append(block(inplanes, planes)) + + return nn.Sequential(*layers) + + def _make_conv_level(self, inplanes, planes, convs, stride=1, dilation=1): + modules = [] + for i in range(convs): + modules.extend([ + nn.Conv2d(inplanes, planes, kernel_size=3, + stride=stride if i == 0 else 1, + padding=dilation, bias=False, dilation=dilation), + get_norm(self.cfg.MODEL.DLA.NORM, planes), + nn.ReLU(inplace=True)]) + inplanes = planes + return nn.Sequential(*modules) + + def forward(self, x): + y = {} + x = self.base_layer(x) + for i in range(6): + name = 'level{}'.format(i) + x = getattr(self, name)(x) + y[name] = x + return y + + +def dla34(cfg, pretrained=None, **kwargs): # DLA-34 + model = DLA(cfg, [1, 1, 1, 2, 2, 1], + [16, 32, 64, 128, 256, 512], + block=BasicBlock, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla34') + return model + + +def dla46_c(cfg, pretrained=None, **kwargs): # DLA-46-C + Bottleneck.expansion = 2 + model = DLA(cfg, [1, 1, 1, 2, 2, 1], + [16, 32, 64, 64, 128, 256], + block=Bottleneck, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla46_c') + return model + + +def dla46x_c(cfg, pretrained=None, **kwargs): # DLA-X-46-C + BottleneckX.expansion = 2 + model = DLA(cfg, [1, 1, 1, 2, 2, 1], + [16, 32, 64, 64, 128, 256], + block=BottleneckX, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla46x_c') + return model + + +def dla60x_c(cfg, pretrained=None, **kwargs): # DLA-X-60-C + BottleneckX.expansion = 2 + model = DLA(cfg, [1, 1, 1, 2, 3, 1], + [16, 32, 64, 64, 128, 256], + block=BottleneckX, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla60x_c') + return model + + +def dla60(cfg, pretrained=None, **kwargs): # DLA-60 + Bottleneck.expansion = 2 + model = DLA(cfg, [1, 1, 1, 2, 3, 1], + [16, 32, 128, 256, 512, 1024], + block=Bottleneck, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla60') + return model + + +def dla60x(cfg, pretrained=None, **kwargs): # DLA-X-60 + BottleneckX.expansion = 2 + model = DLA(cfg, [1, 1, 1, 2, 3, 1], + [16, 32, 128, 256, 512, 1024], + block=BottleneckX, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla60x') + return model + + +def dla102(cfg, pretrained=None, **kwargs): # DLA-102 + Bottleneck.expansion = 2 + model = DLA(cfg, [1, 1, 1, 3, 4, 1], [16, 32, 128, 256, 512, 1024], + block=Bottleneck, residual_root=True, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla102') + return model + + +def dla102x(cfg, pretrained=None, **kwargs): # DLA-X-102 + BottleneckX.expansion = 2 + model = DLA(cfg, [1, 1, 1, 3, 4, 1], [16, 32, 128, 256, 512, 1024], + block=BottleneckX, residual_root=True, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla102x') + return model + + +def dla102x2(cfg, pretrained=None, **kwargs): # DLA-X-102 64 + BottleneckX.cardinality = 64 + model = DLA(cfg, [1, 1, 1, 3, 4, 1], [16, 32, 128, 256, 512, 1024], + block=BottleneckX, residual_root=True, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla102x2') + return model + + +def dla169(cfg, pretrained=None, **kwargs): # DLA-169 + Bottleneck.expansion = 2 + model = DLA(cfg, [1, 1, 2, 3, 5, 1], [16, 32, 128, 256, 512, 1024], + block=Bottleneck, residual_root=True, **kwargs) + if pretrained is not None: + model.load_pretrained_model(pretrained, 'dla169') + return model + + +@BACKBONE_REGISTRY.register() +def build_fcos_dla_fpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + assert cfg.MODEL.BACKBONE.FREEZE_AT == -1, "Freezing layers does not be supported for DLA" + + depth_to_creator = {"DLA34": dla34} + bottom_up = depth_to_creator[cfg.MODEL.DLA.CONV_BODY](cfg) + in_features = cfg.MODEL.FPN.IN_FEATURES + out_channels = cfg.MODEL.FPN.OUT_CHANNELS + top_levels = cfg.MODEL.FCOS.TOP_LEVELS + in_channels_top = out_channels + + if top_levels == 2: + top_block = LastLevelP6P7(in_channels_top, out_channels, "p5") + elif top_levels == 1: + top_block = LastLevelP6(in_channels_top, out_channels, "p5") + elif top_levels == 0: + top_block = None + else: + raise NotImplementedError() + + backbone = FPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + norm=cfg.MODEL.FPN.NORM, + top_block=top_block, + fuse_type=cfg.MODEL.FPN.FUSE_TYPE, + ) + + return backbone diff --git a/AdelaiDet/adet/modeling/backbone/fpn.py b/AdelaiDet/adet/modeling/backbone/fpn.py new file mode 100755 index 0000000..70adaa0 --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/fpn.py @@ -0,0 +1,88 @@ +from torch import nn +import torch.nn.functional as F +import fvcore.nn.weight_init as weight_init + +from detectron2.modeling.backbone import FPN, build_resnet_backbone +from detectron2.layers import ShapeSpec +from detectron2.modeling.backbone.build import BACKBONE_REGISTRY + +from .resnet_lpf import build_resnet_lpf_backbone +from .resnet_interval import build_resnet_interval_backbone +from .mobilenet import build_mnv2_backbone + + +class LastLevelP6P7(nn.Module): + """ + This module is used in RetinaNet and FCOS to generate extra layers, P6 and P7 from + C5 or P5 feature. + """ + + def __init__(self, in_channels, out_channels, in_features="res5"): + super().__init__() + self.num_levels = 2 + self.in_feature = in_features + self.p6 = nn.Conv2d(in_channels, out_channels, 3, 2, 1) + self.p7 = nn.Conv2d(out_channels, out_channels, 3, 2, 1) + for module in [self.p6, self.p7]: + weight_init.c2_xavier_fill(module) + + def forward(self, x): + p6 = self.p6(x) + p7 = self.p7(F.relu(p6)) + return [p6, p7] + + +class LastLevelP6(nn.Module): + """ + This module is used in FCOS to generate extra layers + """ + + def __init__(self, in_channels, out_channels, in_features="res5"): + super().__init__() + self.num_levels = 1 + self.in_feature = in_features + self.p6 = nn.Conv2d(in_channels, out_channels, 3, 2, 1) + for module in [self.p6]: + weight_init.c2_xavier_fill(module) + + def forward(self, x): + p6 = self.p6(x) + return [p6] + + +@BACKBONE_REGISTRY.register() +def build_fcos_resnet_fpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + if cfg.MODEL.BACKBONE.ANTI_ALIAS: + bottom_up = build_resnet_lpf_backbone(cfg, input_shape) + elif cfg.MODEL.RESNETS.DEFORM_INTERVAL > 1: + bottom_up = build_resnet_interval_backbone(cfg, input_shape) + elif cfg.MODEL.MOBILENET: + bottom_up = build_mnv2_backbone(cfg, input_shape) + else: + bottom_up = build_resnet_backbone(cfg, input_shape) + in_features = cfg.MODEL.FPN.IN_FEATURES + out_channels = cfg.MODEL.FPN.OUT_CHANNELS + top_levels = cfg.MODEL.FCOS.TOP_LEVELS + in_channels_top = out_channels + if top_levels == 2: + top_block = LastLevelP6P7(in_channels_top, out_channels, "p5") + if top_levels == 1: + top_block = LastLevelP6(in_channels_top, out_channels, "p5") + elif top_levels == 0: + top_block = None + backbone = FPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + norm=cfg.MODEL.FPN.NORM, + top_block=top_block, + fuse_type=cfg.MODEL.FPN.FUSE_TYPE, + ) + return backbone diff --git a/AdelaiDet/adet/modeling/backbone/lpf.py b/AdelaiDet/adet/modeling/backbone/lpf.py new file mode 100755 index 0000000..a2be70f --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/lpf.py @@ -0,0 +1,114 @@ +import torch +import torch.nn.parallel +import numpy as np +import torch.nn as nn +import torch.nn.functional as F + + +class Downsample(nn.Module): + def __init__(self, pad_type='reflect', filt_size=3, stride=2, channels=None, pad_off=0): + super(Downsample, self).__init__() + self.filt_size = filt_size + self.pad_off = pad_off + self.pad_sizes = [int(1.*(filt_size-1)/2), int(np.ceil(1.*(filt_size-1)/2)), int(1.*(filt_size-1)/2), int(np.ceil(1.*(filt_size-1)/2))] + self.pad_sizes = [pad_size+pad_off for pad_size in self.pad_sizes] + self.stride = stride + self.off = int((self.stride-1)/2.) + self.channels = channels + + # print('Filter size [%i]'%filt_size) + if(self.filt_size==1): + a = np.array([1.,]) + elif(self.filt_size==2): + a = np.array([1., 1.]) + elif(self.filt_size==3): + a = np.array([1., 2., 1.]) + elif(self.filt_size==4): + a = np.array([1., 3., 3., 1.]) + elif(self.filt_size==5): + a = np.array([1., 4., 6., 4., 1.]) + elif(self.filt_size==6): + a = np.array([1., 5., 10., 10., 5., 1.]) + elif(self.filt_size==7): + a = np.array([1., 6., 15., 20., 15., 6., 1.]) + + filt = torch.Tensor(a[:,None]*a[None,:]) + filt = filt/torch.sum(filt) + self.register_buffer('filt', filt[None,None,:,:].repeat((self.channels,1,1,1))) + + self.pad = get_pad_layer(pad_type)(self.pad_sizes) + + def forward(self, inp): + if(self.filt_size==1): + if(self.pad_off==0): + return inp[:,:,::self.stride,::self.stride] + else: + return self.pad(inp)[:,:,::self.stride,::self.stride] + else: + return F.conv2d(self.pad(inp), self.filt, stride=self.stride, groups=inp.shape[1]) + +def get_pad_layer(pad_type): + if(pad_type in ['refl','reflect']): + PadLayer = nn.ReflectionPad2d + elif(pad_type in ['repl','replicate']): + PadLayer = nn.ReplicationPad2d + elif(pad_type=='zero'): + PadLayer = nn.ZeroPad2d + else: + print('Pad type [%s] not recognized'%pad_type) + return PadLayer + + +class Downsample1D(nn.Module): + def __init__(self, pad_type='reflect', filt_size=3, stride=2, channels=None, pad_off=0): + super(Downsample1D, self).__init__() + self.filt_size = filt_size + self.pad_off = pad_off + self.pad_sizes = [int(1. * (filt_size - 1) / 2), int(np.ceil(1. * (filt_size - 1) / 2))] + self.pad_sizes = [pad_size + pad_off for pad_size in self.pad_sizes] + self.stride = stride + self.off = int((self.stride - 1) / 2.) + self.channels = channels + + # print('Filter size [%i]' % filt_size) + if(self.filt_size == 1): + a = np.array([1., ]) + elif(self.filt_size == 2): + a = np.array([1., 1.]) + elif(self.filt_size == 3): + a = np.array([1., 2., 1.]) + elif(self.filt_size == 4): + a = np.array([1., 3., 3., 1.]) + elif(self.filt_size == 5): + a = np.array([1., 4., 6., 4., 1.]) + elif(self.filt_size == 6): + a = np.array([1., 5., 10., 10., 5., 1.]) + elif(self.filt_size == 7): + a = np.array([1., 6., 15., 20., 15., 6., 1.]) + + filt = torch.Tensor(a) + filt = filt / torch.sum(filt) + self.register_buffer('filt', filt[None, None, :].repeat((self.channels, 1, 1))) + + self.pad = get_pad_layer_1d(pad_type)(self.pad_sizes) + + def forward(self, inp): + if(self.filt_size == 1): + if(self.pad_off == 0): + return inp[:, :, ::self.stride] + else: + return self.pad(inp)[:, :, ::self.stride] + else: + return F.conv1d(self.pad(inp), self.filt, stride=self.stride, groups=inp.shape[1]) + + +def get_pad_layer_1d(pad_type): + if(pad_type in ['refl', 'reflect']): + PadLayer = nn.ReflectionPad1d + elif(pad_type in ['repl', 'replicate']): + PadLayer = nn.ReplicationPad1d + elif(pad_type == 'zero'): + PadLayer = nn.ZeroPad1d + else: + print('Pad type [%s] not recognized' % pad_type) + return PadLayer diff --git a/AdelaiDet/adet/modeling/backbone/mobilenet.py b/AdelaiDet/adet/modeling/backbone/mobilenet.py new file mode 100755 index 0000000..cbd231f --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/mobilenet.py @@ -0,0 +1,155 @@ +# taken from https://github.com/tonylins/pytorch-mobilenet-v2/ +# Published by Ji Lin, tonylins +# licensed under the Apache License, Version 2.0, January 2004 + +from torch import nn +from torch.nn import BatchNorm2d +#from detectron2.layers.batch_norm import NaiveSyncBatchNorm as BatchNorm2d +from detectron2.layers import Conv2d +from detectron2.modeling.backbone.build import BACKBONE_REGISTRY +from detectron2.modeling.backbone import Backbone + + +def conv_bn(inp, oup, stride): + return nn.Sequential( + Conv2d(inp, oup, 3, stride, 1, bias=False), + BatchNorm2d(oup), + nn.ReLU6(inplace=True) + ) + + +def conv_1x1_bn(inp, oup): + return nn.Sequential( + Conv2d(inp, oup, 1, 1, 0, bias=False), + BatchNorm2d(oup), + nn.ReLU6(inplace=True) + ) + + +class InvertedResidual(nn.Module): + def __init__(self, inp, oup, stride, expand_ratio): + super(InvertedResidual, self).__init__() + self.stride = stride + assert stride in [1, 2] + + hidden_dim = int(round(inp * expand_ratio)) + self.use_res_connect = self.stride == 1 and inp == oup + + if expand_ratio == 1: + self.conv = nn.Sequential( + # dw + Conv2d(hidden_dim, hidden_dim, 3, stride, 1, groups=hidden_dim, bias=False), + BatchNorm2d(hidden_dim), + nn.ReLU6(inplace=True), + # pw-linear + Conv2d(hidden_dim, oup, 1, 1, 0, bias=False), + BatchNorm2d(oup), + ) + else: + self.conv = nn.Sequential( + # pw + Conv2d(inp, hidden_dim, 1, 1, 0, bias=False), + BatchNorm2d(hidden_dim), + nn.ReLU6(inplace=True), + # dw + Conv2d(hidden_dim, hidden_dim, 3, stride, 1, groups=hidden_dim, bias=False), + BatchNorm2d(hidden_dim), + nn.ReLU6(inplace=True), + # pw-linear + Conv2d(hidden_dim, oup, 1, 1, 0, bias=False), + BatchNorm2d(oup), + ) + + def forward(self, x): + if self.use_res_connect: + return x + self.conv(x) + else: + return self.conv(x) + + +class MobileNetV2(Backbone): + """ + Should freeze bn + """ + def __init__(self, cfg, n_class=1000, input_size=224, width_mult=1.): + super(MobileNetV2, self).__init__() + block = InvertedResidual + input_channel = 32 + interverted_residual_setting = [ + # t, c, n, s + [1, 16, 1, 1], + [6, 24, 2, 2], + [6, 32, 3, 2], + [6, 64, 4, 2], + [6, 96, 3, 1], + [6, 160, 3, 2], + [6, 320, 1, 1], + ] + + # building first layer + assert input_size % 32 == 0 + input_channel = int(input_channel * width_mult) + self.return_features_indices = [3, 6, 13, 17] + self.return_features_num_channels = [] + self.features = nn.ModuleList([conv_bn(3, input_channel, 2)]) + # building inverted residual blocks + for t, c, n, s in interverted_residual_setting: + output_channel = int(c * width_mult) + for i in range(n): + if i == 0: + self.features.append(block(input_channel, output_channel, s, expand_ratio=t)) + else: + self.features.append(block(input_channel, output_channel, 1, expand_ratio=t)) + input_channel = output_channel + if len(self.features) - 1 in self.return_features_indices: + self.return_features_num_channels.append(output_channel) + + self._initialize_weights() + self._freeze_backbone(cfg.MODEL.BACKBONE.FREEZE_AT) + + def _freeze_backbone(self, freeze_at): + for layer_index in range(freeze_at): + for p in self.features[layer_index].parameters(): + p.requires_grad = False + + def forward(self, x): + res = [] + for i, m in enumerate(self.features): + x = m(x) + if i in self.return_features_indices: + res.append(x) + return {'res{}'.format(i + 2): r for i, r in enumerate(res)} + + def _initialize_weights(self): + for m in self.modules(): + if isinstance(m, Conv2d): + n = m.kernel_size[0] * m.kernel_size[1] * m.out_channels + m.weight.data.normal_(0, (2. / n) ** 0.5) + if m.bias is not None: + m.bias.data.zero_() + elif isinstance(m, BatchNorm2d): + m.weight.data.fill_(1) + m.bias.data.zero_() + elif isinstance(m, nn.Linear): + n = m.weight.size(1) + m.weight.data.normal_(0, 0.01) + m.bias.data.zero_() + +@BACKBONE_REGISTRY.register() +def build_mnv2_backbone(cfg, input_shape): + """ + Create a ResNet instance from config. + + Returns: + ResNet: a :class:`ResNet` instance. + """ + out_features = cfg.MODEL.RESNETS.OUT_FEATURES + + out_feature_channels = {"res2": 24, "res3": 32, + "res4": 96, "res5": 320} + out_feature_strides = {"res2": 4, "res3": 8, "res4": 16, "res5": 32} + model = MobileNetV2(cfg) + model._out_features = out_features + model._out_feature_channels = out_feature_channels + model._out_feature_strides = out_feature_strides + return model diff --git a/AdelaiDet/adet/modeling/backbone/resnet_interval.py b/AdelaiDet/adet/modeling/backbone/resnet_interval.py new file mode 100755 index 0000000..b91be6e --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/resnet_interval.py @@ -0,0 +1,116 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +from detectron2.layers import FrozenBatchNorm2d +from detectron2.modeling.backbone import BACKBONE_REGISTRY +from detectron2.modeling.backbone.resnet import ( + BasicStem, + DeformBottleneckBlock, + BottleneckBlock, + ResNet, +) + + +def make_stage_intervals(block_class, num_blocks, first_stride, **kwargs): + """ + Create a resnet stage by creating many blocks. + Args: + block_class (class): a subclass of ResNetBlockBase + num_blocks (int): + first_stride (int): the stride of the first block. The other blocks will have stride=1. + A `stride` argument will be passed to the block constructor. + kwargs: other arguments passed to the block constructor. + + Returns: + list[nn.Module]: a list of block module. + """ + blocks = [] + conv_kwargs = {key: kwargs[key] for key in kwargs if "deform" not in key} + deform_kwargs = {key: kwargs[key] for key in kwargs if key != "deform_interval"} + deform_interval = kwargs.get("deform_interval", None) + for i in range(num_blocks): + if deform_interval and i % deform_interval == 0: + blocks.append(block_class(stride=first_stride if i == 0 else 1, **deform_kwargs)) + else: + blocks.append(BottleneckBlock(stride=first_stride if i == 0 else 1, **conv_kwargs)) + conv_kwargs["in_channels"] = conv_kwargs["out_channels"] + deform_kwargs["in_channels"] = deform_kwargs["out_channels"] + return blocks + + +@BACKBONE_REGISTRY.register() +def build_resnet_interval_backbone(cfg, input_shape): + """ + Create a ResNet instance from config. + + Returns: + ResNet: a :class:`ResNet` instance. + """ + # need registration of new blocks/stems? + norm = cfg.MODEL.RESNETS.NORM + stem = BasicStem( + in_channels=input_shape.channels, + out_channels=cfg.MODEL.RESNETS.STEM_OUT_CHANNELS, + norm=norm, + ) + freeze_at = cfg.MODEL.BACKBONE.FREEZE_AT + + if freeze_at >= 1: + for p in stem.parameters(): + p.requires_grad = False + stem = FrozenBatchNorm2d.convert_frozen_batchnorm(stem) + + # fmt: off + out_features = cfg.MODEL.RESNETS.OUT_FEATURES + depth = cfg.MODEL.RESNETS.DEPTH + num_groups = cfg.MODEL.RESNETS.NUM_GROUPS + width_per_group = cfg.MODEL.RESNETS.WIDTH_PER_GROUP + bottleneck_channels = num_groups * width_per_group + in_channels = cfg.MODEL.RESNETS.STEM_OUT_CHANNELS + out_channels = cfg.MODEL.RESNETS.RES2_OUT_CHANNELS + stride_in_1x1 = cfg.MODEL.RESNETS.STRIDE_IN_1X1 + res5_dilation = cfg.MODEL.RESNETS.RES5_DILATION + deform_on_per_stage = cfg.MODEL.RESNETS.DEFORM_ON_PER_STAGE + deform_modulated = cfg.MODEL.RESNETS.DEFORM_MODULATED + deform_num_groups = cfg.MODEL.RESNETS.DEFORM_NUM_GROUPS + deform_interval = cfg.MODEL.RESNETS.DEFORM_INTERVAL + # fmt: on + assert res5_dilation in {1, 2}, "res5_dilation cannot be {}.".format(res5_dilation) + + num_blocks_per_stage = {50: [3, 4, 6, 3], 101: [3, 4, 23, 3], 152: [3, 8, 36, 3]}[depth] + + stages = [] + + # Avoid creating variables without gradients + # It consumes extra memory and may cause allreduce to fail + out_stage_idx = [{"res2": 2, "res3": 3, "res4": 4, "res5": 5}[f] for f in out_features] + max_stage_idx = max(out_stage_idx) + for idx, stage_idx in enumerate(range(2, max_stage_idx + 1)): + dilation = res5_dilation if stage_idx == 5 else 1 + first_stride = 1 if idx == 0 or (stage_idx == 5 and dilation == 2) else 2 + stage_kargs = { + "num_blocks": num_blocks_per_stage[idx], + "first_stride": first_stride, + "in_channels": in_channels, + "bottleneck_channels": bottleneck_channels, + "out_channels": out_channels, + "num_groups": num_groups, + "norm": norm, + "stride_in_1x1": stride_in_1x1, + "dilation": dilation, + } + if deform_on_per_stage[idx]: + stage_kargs["block_class"] = DeformBottleneckBlock + stage_kargs["deform_modulated"] = deform_modulated + stage_kargs["deform_num_groups"] = deform_num_groups + stage_kargs["deform_interval"] = deform_interval + else: + stage_kargs["block_class"] = BottleneckBlock + blocks = make_stage_intervals(**stage_kargs) + in_channels = out_channels + out_channels *= 2 + bottleneck_channels *= 2 + + if freeze_at >= stage_idx: + for block in blocks: + block.freeze() + stages.append(blocks) + return ResNet(stem, stages, out_features=out_features) diff --git a/AdelaiDet/adet/modeling/backbone/resnet_lpf.py b/AdelaiDet/adet/modeling/backbone/resnet_lpf.py new file mode 100755 index 0000000..867de6d --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/resnet_lpf.py @@ -0,0 +1,291 @@ +# This code is built from the PyTorch examples repository: https://github.com/pytorch/vision/tree/master/torchvision/models. +# Copyright (c) 2017 Torch Contributors. +# The Pytorch examples are available under the BSD 3-Clause License. +# +# ========================================================================================== +# +# Adobe’s modifications are Copyright 2019 Adobe. All rights reserved. +# Adobe’s modifications are licensed under the Creative Commons Attribution-NonCommercial-ShareAlike +# 4.0 International Public License (CC-NC-SA-4.0). To view a copy of the license, visit +# https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode. +# +# ========================================================================================== +# +# BSD-3 License +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, this +# list of conditions and the following disclaimer. +# +# * Redistributions in binary form must reproduce the above copyright notice, +# this list of conditions and the following disclaimer in the documentation +# and/or other materials provided with the distribution. +# +# * Neither the name of the copyright holder nor the names of its +# contributors may be used to endorse or promote products derived from +# this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + +import torch.nn as nn + +from detectron2.layers.batch_norm import NaiveSyncBatchNorm +from detectron2.modeling.backbone.build import BACKBONE_REGISTRY +from detectron2.modeling.backbone import Backbone + +from .lpf import * + + +__all__ = ['ResNetLPF', 'build_resnet_lpf_backbone'] + + +def conv3x3(in_planes, out_planes, stride=1, groups=1): + """3x3 convolution with padding""" + return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, + padding=1, groups=groups, bias=False) + + +def conv1x1(in_planes, out_planes, stride=1): + """1x1 convolution""" + return nn.Conv2d(in_planes, out_planes, kernel_size=1, stride=stride, bias=False) + + +class BasicBlock(nn.Module): + expansion = 1 + + def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, norm_layer=None, filter_size=1): + super(BasicBlock, self).__init__() + if norm_layer is None: + norm_layer = nn.BatchNorm2d + if groups != 1: + raise ValueError('BasicBlock only supports groups=1') + # Both self.conv1 and self.downsample layers downsample the input when stride != 1 + self.conv1 = conv3x3(inplanes, planes) + self.bn1 = norm_layer(planes) + self.relu = nn.ReLU(inplace=True) + if(stride == 1): + self.conv2 = conv3x3(planes, planes) + else: + self.conv2 = nn.Sequential(Downsample(filt_size=filter_size, stride=stride, channels=planes), + conv3x3(planes, planes),) + self.bn2 = norm_layer(planes) + self.downsample = downsample + self.stride = stride + + def forward(self, x): + identity = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + + if self.downsample is not None: + identity = self.downsample(x) + + out += identity + out = self.relu(out) + + return out + + +class Bottleneck(nn.Module): + expansion = 4 + + def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, norm_layer=None, filter_size=1): + super(Bottleneck, self).__init__() + if norm_layer is None: + norm_layer = nn.BatchNorm2d + # Both self.conv2 and self.downsample layers downsample the input when stride != 1 + self.conv1 = conv1x1(inplanes, planes) + self.bn1 = norm_layer(planes) + self.conv2 = conv3x3(planes, planes, groups) # stride moved + self.bn2 = norm_layer(planes) + if(stride == 1): + self.conv3 = conv1x1(planes, planes * self.expansion) + else: + self.conv3 = nn.Sequential(Downsample(filt_size=filter_size, stride=stride, channels=planes), + conv1x1(planes, planes * self.expansion)) + self.bn3 = norm_layer(planes * self.expansion) + self.relu = nn.ReLU(inplace=True) + self.downsample = downsample + self.stride = stride + + def forward(self, x): + identity = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + out = self.relu(out) + + out = self.conv3(out) + out = self.bn3(out) + + if self.downsample is not None: + identity = self.downsample(x) + + out += identity + out = self.relu(out) + + return out + + +class ResNetLPF(Backbone): + + def __init__(self, cfg, block, layers, num_classes=1000, zero_init_residual=False, + groups=1, width_per_group=64, norm_layer=None, filter_size=1, + pool_only=True, return_idx=[0, 1, 2, 3]): + super().__init__() + self.return_idx = return_idx + if norm_layer is None: + norm_layer = nn.BatchNorm2d + planes = [int(width_per_group * groups * 2 ** i) for i in range(4)] + self.inplanes = planes[0] + + if(pool_only): + self.conv1 = nn.Conv2d(3, planes[0], kernel_size=7, stride=2, padding=3, bias=False) + else: + self.conv1 = nn.Conv2d(3, planes[0], kernel_size=7, stride=1, padding=3, bias=False) + self.bn1 = norm_layer(planes[0]) + self.relu = nn.ReLU(inplace=True) + + if(pool_only): + self.maxpool = nn.Sequential(*[nn.MaxPool2d(kernel_size=2, stride=1), + Downsample(filt_size=filter_size, stride=2, channels=planes[0])]) + else: + self.maxpool = nn.Sequential(*[Downsample(filt_size=filter_size, stride=2, channels=planes[0]), + nn.MaxPool2d(kernel_size=2, stride=1), + Downsample(filt_size=filter_size, stride=2, channels=planes[0])]) + + self.layer1 = self._make_layer( + block, planes[0], layers[0], groups=groups, norm_layer=norm_layer) + self.layer2 = self._make_layer( + block, planes[1], layers[1], stride=2, groups=groups, norm_layer=norm_layer, filter_size=filter_size) + self.layer3 = self._make_layer( + block, planes[2], layers[2], stride=2, groups=groups, norm_layer=norm_layer, filter_size=filter_size) + self.layer4 = self._make_layer( + block, planes[3], layers[3], stride=2, groups=groups, norm_layer=norm_layer, filter_size=filter_size) + + for m in self.modules(): + if isinstance(m, nn.Conv2d): + if(m.in_channels != m.out_channels or m.out_channels != m.groups or m.bias is not None): + # don't want to reinitialize downsample layers, code assuming normal conv layers will not have these characteristics + nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu') + else: + print('Not initializing') + elif isinstance(m, (nn.BatchNorm2d, nn.GroupNorm)): + nn.init.constant_(m.weight, 1) + nn.init.constant_(m.bias, 0) + + # Zero-initialize the last BN in each residual branch, + # so that the residual branch starts with zeros, and each residual block behaves like an identity. + # This improves the model by 0.2~0.3% according to https://arxiv.org/abs/1706.02677 + if zero_init_residual: + for m in self.modules(): + if isinstance(m, Bottleneck): + nn.init.constant_(m.bn3.weight, 0) + elif isinstance(m, BasicBlock): + nn.init.constant_(m.bn2.weight, 0) + self._freeze_backbone(cfg.MODEL.BACKBONE.FREEZE_AT) + if False: + self._freeze_bn() + + def _freeze_backbone(self, freeze_at): + if freeze_at < 0: + return + for stage_index in range(freeze_at): + if stage_index == 0: + # stage 0 is the stem + for p in self.conv1.parameters(): + p.requires_grad = False + for p in self.bn1.parameters(): + p.requires_grad = False + else: + m = getattr(self, "layer" + str(stage_index)) + for p in m.parameters(): + p.requires_grad = False + + def _freeze_bn(self): + for m in self.modules(): + if isinstance(m, nn.BatchNorm2d): + m.eval() + + def _make_layer(self, block, planes, blocks, stride=1, groups=1, norm_layer=None, filter_size=1): + if norm_layer is None: + norm_layer = nn.BatchNorm2d + downsample = None + if stride != 1 or self.inplanes != planes * block.expansion: + # downsample = nn.Sequential( + # conv1x1(self.inplanes, planes * block.expansion, stride, filter_size=filter_size), + # norm_layer(planes * block.expansion), + # ) + + downsample = [Downsample(filt_size=filter_size, stride=stride, + channels=self.inplanes), ] if(stride != 1) else [] + downsample += [conv1x1(self.inplanes, planes * block.expansion, 1), + norm_layer(planes * block.expansion)] + # print(downsample) + downsample = nn.Sequential(*downsample) + + layers = [] + layers.append(block(self.inplanes, planes, stride, downsample, + groups, norm_layer, filter_size=filter_size)) + self.inplanes = planes * block.expansion + for _ in range(1, blocks): + layers.append(block(self.inplanes, planes, groups=groups, + norm_layer=norm_layer, filter_size=filter_size)) + + return nn.Sequential(*layers) + + def forward(self, x): + x = self.conv1(x) + x = self.bn1(x) + x = self.relu(x) + x = self.maxpool(x) + + outs = [] + outs.append(self.layer1(x)) # 1/4 + outs.append(self.layer2(outs[-1])) # 1/8 + outs.append(self.layer3(outs[-1])) # 1/16 + outs.append(self.layer4(outs[-1])) # 1/32 + return {"res{}".format(idx + 2): outs[idx] for idx in self.return_idx} + + +@BACKBONE_REGISTRY.register() +def build_resnet_lpf_backbone(cfg, input_shape): + """ + Create a ResNet instance from config. + + Returns: + ResNet: a :class:`ResNet` instance. + """ + depth = cfg.MODEL.RESNETS.DEPTH + out_features = cfg.MODEL.RESNETS.OUT_FEATURES + + num_blocks_per_stage = {50: [3, 4, 6, 3], 101: [3, 4, 23, 3], 152: [3, 8, 36, 3]}[depth] + out_stage_idx = [{"res2": 0, "res3": 1, "res4": 2, "res5": 3}[f] for f in out_features] + out_feature_channels = {"res2": 256, "res3": 512, + "res4": 1024, "res5": 2048} + out_feature_strides = {"res2": 4, "res3": 8, "res4": 16, "res5": 32} + model = ResNetLPF(cfg, Bottleneck, num_blocks_per_stage, norm_layer=NaiveSyncBatchNorm, + filter_size=3, pool_only=True, return_idx=out_stage_idx) + model._out_features = out_features + model._out_feature_channels = out_feature_channels + model._out_feature_strides = out_feature_strides + return model diff --git a/AdelaiDet/adet/modeling/backbone/vovnet.py b/AdelaiDet/adet/modeling/backbone/vovnet.py new file mode 100755 index 0000000..fde0a1d --- /dev/null +++ b/AdelaiDet/adet/modeling/backbone/vovnet.py @@ -0,0 +1,376 @@ +# Copyright (c) Youngwan Lee (ETRI) All Rights Reserved. +from collections import OrderedDict +import torch +import torch.nn as nn +import torch.nn.functional as F + +import fvcore.nn.weight_init as weight_init +from detectron2.modeling.backbone import Backbone +from detectron2.modeling.backbone.build import BACKBONE_REGISTRY +from detectron2.modeling.backbone.fpn import FPN +from detectron2.layers import ( + Conv2d, + DeformConv, + FrozenBatchNorm2d, + ShapeSpec, + get_norm, +) +from .fpn import LastLevelP6, LastLevelP6P7 + +__all__ = [ + "VoVNet", + "build_vovnet_backbone", + "build_vovnet_fpn_backbone" +] + +_NORM = False + +VoVNet19_eSE = { + 'stage_conv_ch': [128, 160, 192, 224], + 'stage_out_ch': [256, 512, 768, 1024], + 'layer_per_block': 3, + 'block_per_stage': [1, 1, 1, 1], + 'eSE' : True +} + +VoVNet39_eSE = { + 'stage_conv_ch': [128, 160, 192, 224], + 'stage_out_ch': [256, 512, 768, 1024], + 'layer_per_block': 5, + 'block_per_stage': [1, 1, 2, 2], + 'eSE' : True +} + +VoVNet57_eSE = { + 'stage_conv_ch': [128, 160, 192, 224], + 'stage_out_ch': [256, 512, 768, 1024], + 'layer_per_block': 5, + 'block_per_stage': [1, 1, 4, 3], + 'eSE' : True +} + +VoVNet99_eSE = { + 'stage_conv_ch': [128, 160, 192, 224], + 'stage_out_ch': [256, 512, 768, 1024], + 'layer_per_block': 5, + 'block_per_stage': [1, 3, 9, 3], + 'eSE' : True +} + +_STAGE_SPECS = { + "V-19-eSE": VoVNet19_eSE, + "V-39-eSE": VoVNet39_eSE, + "V-57-eSE": VoVNet57_eSE, + "V-99-eSE": VoVNet99_eSE +} + +def conv3x3(in_channels, out_channels, module_name, postfix, + stride=1, groups=1, kernel_size=3, padding=1): + """3x3 convolution with padding""" + return [ + (f'{module_name}_{postfix}/conv', + nn.Conv2d(in_channels, + out_channels, + kernel_size=kernel_size, + stride=stride, + padding=padding, + groups=groups, + bias=False)), + (f'{module_name}_{postfix}/norm', get_norm(_NORM, out_channels)), + (f'{module_name}_{postfix}/relu', nn.ReLU(inplace=True)) + ] + + +def conv1x1(in_channels, out_channels, module_name, postfix, + stride=1, groups=1, kernel_size=1, padding=0): + """1x1 convolution with padding""" + return [ + (f'{module_name}_{postfix}/conv', + nn.Conv2d(in_channels, + out_channels, + kernel_size=kernel_size, + stride=stride, + padding=padding, + groups=groups, + bias=False)), + (f'{module_name}_{postfix}/norm', get_norm(_NORM, out_channels)), + (f'{module_name}_{postfix}/relu', nn.ReLU(inplace=True)) + ] + +class Hsigmoid(nn.Module): + def __init__(self, inplace=True): + super(Hsigmoid, self).__init__() + self.inplace = inplace + + def forward(self, x): + return F.relu6(x + 3., inplace=self.inplace) / 6. + + +class eSEModule(nn.Module): + def __init__(self, channel, reduction=4): + super(eSEModule, self).__init__() + self.avg_pool = nn.AdaptiveAvgPool2d(1) + self.fc = nn.Conv2d(channel,channel, kernel_size=1, + padding=0) + self.hsigmoid = Hsigmoid() + + def forward(self, x): + input = x + x = self.avg_pool(x) + x = self.fc(x) + x = self.hsigmoid(x) + return input * x + + +class _OSA_module(nn.Module): + + def __init__(self, + in_ch, + stage_ch, + concat_ch, + layer_per_block, + module_name, + SE=False, + identity=False): + + super(_OSA_module, self).__init__() + + self.identity = identity + self.layers = nn.ModuleList() + in_channel = in_ch + for i in range(layer_per_block): + self.layers.append(nn.Sequential(OrderedDict(conv3x3(in_channel, stage_ch, module_name, i)))) + in_channel = stage_ch + + # feature aggregation + in_channel = in_ch + layer_per_block * stage_ch + self.concat = nn.Sequential(OrderedDict(conv1x1(in_channel, concat_ch, module_name, 'concat'))) + + self.ese = eSEModule(concat_ch) + + def forward(self, x): + + identity_feat = x + + output = [] + output.append(x) + for layer in self.layers: + x = layer(x) + output.append(x) + + x = torch.cat(output, dim=1) + xt = self.concat(x) + + xt = self.ese(xt) + + if self.identity: + xt = xt + identity_feat + + return xt + + +class _OSA_stage(nn.Sequential): + + def __init__(self, + in_ch, + stage_ch, + concat_ch, + block_per_stage, + layer_per_block, + stage_num, + SE=False): + super(_OSA_stage, self).__init__() + + if not stage_num == 2: + self.add_module('Pooling', nn.MaxPool2d(kernel_size=3, stride=2, ceil_mode=True)) + + if block_per_stage !=1: + SE = False + module_name = f'OSA{stage_num}_1' + self.add_module(module_name, _OSA_module(in_ch, + stage_ch, + concat_ch, + layer_per_block, + module_name, + SE)) + for i in range(block_per_stage - 1): + if i != block_per_stage -2: #last block + SE = False + module_name = f'OSA{stage_num}_{i + 2}' + self.add_module(module_name, + _OSA_module(concat_ch, + stage_ch, + concat_ch, + layer_per_block, + module_name, + SE, + identity=True)) + + + +class VoVNet(Backbone): + + def __init__(self, cfg, input_ch, out_features=None): + """ + Args: + input_ch(int) : the number of input channel + out_features (list[str]): name of the layers whose outputs should + be returned in forward. Can be anything in "stem", "stage2" ... + """ + super(VoVNet, self).__init__() + + global _NORM + _NORM = cfg.MODEL.VOVNET.NORM + + stage_specs = _STAGE_SPECS[cfg.MODEL.VOVNET.CONV_BODY] + + config_stage_ch = stage_specs['stage_conv_ch'] + config_concat_ch = stage_specs['stage_out_ch'] + block_per_stage = stage_specs['block_per_stage'] + layer_per_block = stage_specs['layer_per_block'] + SE = stage_specs['eSE'] + + self._out_features = out_features + + + # Stem module + stem = conv3x3(input_ch, 64, 'stem', '1', 2) + stem += conv3x3(64, 64, 'stem', '2', 1) + stem += conv3x3(64, 128, 'stem', '3', 2) + self.add_module('stem', nn.Sequential((OrderedDict(stem)))) + current_stirde = 4 + self._out_feature_strides = {"stem": current_stirde, "stage2": current_stirde} + self._out_feature_channels = {"stem": 128} + + stem_out_ch = [128] + in_ch_list = stem_out_ch + config_concat_ch[:-1] + # OSA stages + self.stage_names = [] + for i in range(4): # num_stages + name = 'stage%d' % (i + 2) # stage 2 ... stage 5 + self.stage_names.append(name) + self.add_module(name, _OSA_stage(in_ch_list[i], + config_stage_ch[i], + config_concat_ch[i], + block_per_stage[i], + layer_per_block, + i + 2, + SE)) + + self._out_feature_channels[name] = config_concat_ch[i] + if not i == 0: + self._out_feature_strides[name] = current_stirde = int( + current_stirde * 2) + + # initialize weights + self._initialize_weights() + # Optionally freeze (requires_grad=False) parts of the backbone + self._freeze_backbone(cfg.MODEL.BACKBONE.FREEZE_AT) + + + def _initialize_weights(self): + for m in self.modules(): + if isinstance(m, nn.Conv2d): + nn.init.kaiming_normal_(m.weight) + + def _freeze_backbone(self, freeze_at): + if freeze_at < 0: + return + # freeze BN layers + for m in self.modules(): + if isinstance(m, nn.BatchNorm2d): + freeze_bn_params(m) + for stage_index in range(freeze_at): + if stage_index == 0: + m = self.stem # stage 0 is the stem + else: + m = getattr(self, "stage" + str(stage_index+1)) + for p in m.parameters(): + p.requires_grad = False + FrozenBatchNorm2d.convert_frozen_batchnorm(self) + + def forward(self, x): + outputs = {} + x = self.stem(x) + if "stem" in self._out_features: + outputs["stem"] = x + for name in self.stage_names: + x = getattr(self, name)(x) + if name in self._out_features: + outputs[name] = x + + return outputs + + def output_shape(self): + return { + name: ShapeSpec( + channels=self._out_feature_channels[name], stride=self._out_feature_strides[name] + ) + for name in self._out_features + } + + +@BACKBONE_REGISTRY.register() +def build_vovnet_backbone(cfg, input_shape): + """ + Create a VoVNet instance from config. + + Returns: + VoVNet: a :class:`VoVNet` instance. + """ + out_features = cfg.MODEL.VOVNET.OUT_FEATURES + return VoVNet(cfg, input_shape.channels, out_features=out_features) + + +@BACKBONE_REGISTRY.register() +def build_vovnet_fpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + bottom_up = build_vovnet_backbone(cfg, input_shape) + in_features = cfg.MODEL.FPN.IN_FEATURES + out_channels = cfg.MODEL.FPN.OUT_CHANNELS + backbone = FPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + norm=cfg.MODEL.FPN.NORM, + top_block=LastLevelMaxPool(), + fuse_type=cfg.MODEL.FPN.FUSE_TYPE, + ) + return backbone + + +@BACKBONE_REGISTRY.register() +def build_fcos_vovnet_fpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + bottom_up = build_vovnet_backbone(cfg, input_shape) + in_features = cfg.MODEL.FPN.IN_FEATURES + out_channels = cfg.MODEL.FPN.OUT_CHANNELS + top_levels = cfg.MODEL.FCOS.TOP_LEVELS + in_channels_top = out_channels + if top_levels == 2: + top_block = LastLevelP6P7(in_channels_top, out_channels, "p5") + if top_levels == 1: + top_block = LastLevelP6(in_channels_top, out_channels, "p5") + elif top_levels == 0: + top_block = None + backbone = FPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + norm=cfg.MODEL.FPN.NORM, + top_block=top_block, + fuse_type=cfg.MODEL.FPN.FUSE_TYPE, + ) + return backbone diff --git a/AdelaiDet/adet/modeling/batext/__init__.py b/AdelaiDet/adet/modeling/batext/__init__.py new file mode 100755 index 0000000..35cd85f --- /dev/null +++ b/AdelaiDet/adet/modeling/batext/__init__.py @@ -0,0 +1 @@ +from .batext import BAText diff --git a/AdelaiDet/adet/modeling/batext/batext.py b/AdelaiDet/adet/modeling/batext/batext.py new file mode 100755 index 0000000..974bec5 --- /dev/null +++ b/AdelaiDet/adet/modeling/batext/batext.py @@ -0,0 +1,262 @@ +import math +from typing import List, Dict +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec +from detectron2.modeling.proposal_generator.build import PROPOSAL_GENERATOR_REGISTRY + +from adet.layers import DFConv2d, IOULoss +from .batext_outputs import BATextOutputs + + +__all__ = ["BAText"] + +INF = 100000000 + + +class Scale(nn.Module): + def __init__(self, init_value=1.0): + super(Scale, self).__init__() + self.scale = nn.Parameter(torch.FloatTensor([init_value])) + + def forward(self, input): + return input * self.scale + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class BAText(nn.Module): + """ + A modified version of FCOS with Bezier regression + """ + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + # fmt: off + self.in_features = cfg.MODEL.FCOS.IN_FEATURES + self.fpn_strides = cfg.MODEL.FCOS.FPN_STRIDES + self.focal_loss_alpha = cfg.MODEL.FCOS.LOSS_ALPHA + self.focal_loss_gamma = cfg.MODEL.FCOS.LOSS_GAMMA + self.center_sample = cfg.MODEL.FCOS.CENTER_SAMPLE + self.strides = cfg.MODEL.FCOS.FPN_STRIDES + self.radius = cfg.MODEL.FCOS.POS_RADIUS + self.pre_nms_thresh_train = cfg.MODEL.FCOS.INFERENCE_TH_TRAIN + self.pre_nms_thresh_test = cfg.MODEL.FCOS.INFERENCE_TH_TEST + self.pre_nms_topk_train = cfg.MODEL.FCOS.PRE_NMS_TOPK_TRAIN + self.pre_nms_topk_test = cfg.MODEL.FCOS.PRE_NMS_TOPK_TEST + self.nms_thresh = cfg.MODEL.FCOS.NMS_TH + self.yield_proposal = cfg.MODEL.FCOS.YIELD_PROPOSAL + self.post_nms_topk_train = cfg.MODEL.FCOS.POST_NMS_TOPK_TRAIN + self.post_nms_topk_test = cfg.MODEL.FCOS.POST_NMS_TOPK_TEST + self.thresh_with_ctr = cfg.MODEL.FCOS.THRESH_WITH_CTR + # fmt: on + self.iou_loss = IOULoss(cfg.MODEL.FCOS.LOC_LOSS_TYPE) + # generate sizes of interest + soi = [] + prev_size = -1 + for s in cfg.MODEL.FCOS.SIZES_OF_INTEREST: + soi.append([prev_size, s]) + prev_size = s + soi.append([prev_size, INF]) + self.sizes_of_interest = soi + self.fcos_head = FCOSHead(cfg, [input_shape[f] for f in self.in_features]) + + def forward_head(self, features, top_module=None): + features = [features[f] for f in self.in_features] + pred_class_logits, pred_deltas, pred_centerness, top_feats, bbox_towers = self.fcos_head( + features, top_module, self.yield_proposal) + return pred_class_logits, pred_deltas, pred_centerness, top_feats, bbox_towers + + def forward(self, images, features, gt_instances=None, top_module=None): + """ + Arguments: + images (list[Tensor] or ImageList): images to be processed + targets (list[BoxList]): ground-truth boxes present in the image (optional) + + Returns: + result (list[BoxList] or dict[Tensor]): the output from the model. + During training, it returns a dict[Tensor] which contains the losses. + During testing, it returns list[BoxList] contains additional fields + like `scores`, `labels` and `mask` (for Mask R-CNN models). + + """ + features = [features[f] for f in self.in_features] + locations = self.compute_locations(features) + logits_pred, reg_pred, ctrness_pred, top_feats, bbox_towers = self.fcos_head( + features, top_module, self.yield_proposal) + + if self.training: + pre_nms_thresh = self.pre_nms_thresh_train + pre_nms_topk = self.pre_nms_topk_train + post_nms_topk = self.post_nms_topk_train + else: + pre_nms_thresh = self.pre_nms_thresh_test + pre_nms_topk = self.pre_nms_topk_test + post_nms_topk = self.post_nms_topk_test + + outputs = BATextOutputs( + images, + locations, + logits_pred, + reg_pred, + ctrness_pred, + top_feats, + self.focal_loss_alpha, + self.focal_loss_gamma, + self.iou_loss, + self.center_sample, + self.sizes_of_interest, + self.strides, + self.radius, + self.fcos_head.num_classes, + pre_nms_thresh, + pre_nms_topk, + self.nms_thresh, + post_nms_topk, + self.thresh_with_ctr, + gt_instances + ) + + results = {} + if self.yield_proposal: + results["features"] = { + f: b for f, b in zip(self.in_features, bbox_towers)} + + if self.training: + losses = outputs.losses() + results = outputs.predict_proposals(top_feats) + else: + losses = {} + with torch.no_grad(): + proposals = outputs.predict_proposals(top_feats) + if self.yield_proposal: + results["proposals"] = proposals + else: + results = proposals + return results, losses + + def compute_locations(self, features): + locations = [] + for level, feature in enumerate(features): + h, w = feature.size()[-2:] + locations_per_level = self.compute_locations_per_level( + h, w, self.fpn_strides[level], + feature.device + ) + locations.append(locations_per_level) + return locations + + def compute_locations_per_level(self, h, w, stride, device): + shifts_x = torch.arange( + 0, w * stride, step=stride, + dtype=torch.float32, device=device + ) + shifts_y = torch.arange( + 0, h * stride, step=stride, + dtype=torch.float32, device=device + ) + shift_y, shift_x = torch.meshgrid(shifts_y, shifts_x) + shift_x = shift_x.reshape(-1) + shift_y = shift_y.reshape(-1) + locations = torch.stack((shift_x, shift_y), dim=1) + stride // 2 + return locations + + +class FCOSHead(nn.Module): + def __init__(self, cfg, input_shape: List[ShapeSpec]): + """ + Arguments: + in_channels (int): number of channels of the input feature + """ + super().__init__() + # TODO: Implement the sigmoid version first. + self.num_classes = cfg.MODEL.FCOS.NUM_CLASSES + self.fpn_strides = cfg.MODEL.FCOS.FPN_STRIDES + head_configs = {"cls": (cfg.MODEL.FCOS.NUM_CLS_CONVS, + False), + "bbox": (cfg.MODEL.FCOS.NUM_BOX_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "share": (cfg.MODEL.FCOS.NUM_SHARE_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE)} + norm = None if cfg.MODEL.FCOS.NORM == "none" else cfg.MODEL.FCOS.NORM + + in_channels = [s.channels for s in input_shape] + assert len(set(in_channels)) == 1, "Each level must have the same channel!" + in_channels = in_channels[0] + + for head in head_configs: + tower = [] + num_convs, use_deformable = head_configs[head] + if use_deformable: + conv_func = DFConv2d + else: + conv_func = nn.Conv2d + for i in range(num_convs): + tower.append(conv_func( + in_channels, in_channels, + kernel_size=3, stride=1, + padding=1, bias=True + )) + if norm == "GN": + tower.append(nn.GroupNorm(32, in_channels)) + tower.append(nn.ReLU()) + self.add_module('{}_tower'.format(head), + nn.Sequential(*tower)) + + self.cls_logits = nn.Conv2d( + in_channels, self.num_classes, + kernel_size=3, stride=1, + padding=1 + ) + self.bbox_pred = nn.Conv2d( + in_channels, 4, kernel_size=3, + stride=1, padding=1 + ) + self.ctrness = nn.Conv2d( + in_channels, 1, kernel_size=3, + stride=1, padding=1 + ) + + if cfg.MODEL.FCOS.USE_SCALE: + self.scales = nn.ModuleList([Scale(init_value=1.0) for _ in self.fpn_strides]) + else: + self.scales = None + + for modules in [ + self.cls_tower, self.bbox_tower, + self.share_tower, self.cls_logits, + self.bbox_pred, self.ctrness + ]: + for l in modules.modules(): + if isinstance(l, nn.Conv2d): + torch.nn.init.normal_(l.weight, std=0.01) + torch.nn.init.constant_(l.bias, 0) + + # initialize the bias for focal loss + prior_prob = cfg.MODEL.FCOS.PRIOR_PROB + bias_value = -math.log((1 - prior_prob) / prior_prob) + torch.nn.init.constant_(self.cls_logits.bias, bias_value) + + def forward(self, x, top_module=None, yield_bbox_towers=False): + logits = [] + bbox_reg = [] + ctrness = [] + top_feats = [] + bbox_towers = [] + for l, feature in enumerate(x): + feature = self.share_tower(feature) + cls_tower = self.cls_tower(feature) + bbox_tower = self.bbox_tower(feature) + if yield_bbox_towers: + bbox_towers.append(bbox_tower) + + logits.append(self.cls_logits(cls_tower)) + ctrness.append(self.ctrness(bbox_tower)) + reg = self.bbox_pred(bbox_tower) + if self.scales is not None: + reg = self.scales[l](reg) + # Note that we use relu, as in the improved FCOS, instead of exp. + bbox_reg.append(F.relu(reg)) + if top_module is not None: + top_feats.append(top_module(bbox_tower)) + return logits, bbox_reg, ctrness, top_feats, bbox_towers diff --git a/AdelaiDet/adet/modeling/batext/batext_outputs.py b/AdelaiDet/adet/modeling/batext/batext_outputs.py new file mode 100755 index 0000000..f2056e8 --- /dev/null +++ b/AdelaiDet/adet/modeling/batext/batext_outputs.py @@ -0,0 +1,532 @@ +import logging +import torch +import torch.nn.functional as F + +from detectron2.layers import cat +from detectron2.structures import Instances, Boxes +from adet.utils.comm import get_world_size +from fvcore.nn import sigmoid_focal_loss_jit + +from adet.utils.comm import reduce_sum, compute_ious +from adet.layers import ml_nms + + +logger = logging.getLogger(__name__) + +INF = 100000000 + +""" +Shape shorthand in this module: + + N: number of images in the minibatch + L: number of feature maps per image on which RPN is run + Hi, Wi: height and width of the i-th feature map + 4: size of the box parameterization + +Naming convention: + + labels: refers to the ground-truth class of an position. + + reg_targets: refers to the 4-d (left, top, right, bottom) distances that parameterize the ground-truth box. + + logits_pred: predicted classification scores in [-inf, +inf]; + + reg_pred: the predicted (left, top, right, bottom), corresponding to reg_targets + + ctrness_pred: predicted centerness scores + +""" + + +def compute_ctrness_targets(reg_targets): + if len(reg_targets) == 0: + return reg_targets.new_zeros(len(reg_targets)) + left_right = reg_targets[:, [0, 2]] + top_bottom = reg_targets[:, [1, 3]] + ctrness = (left_right.min(dim=-1)[0] / left_right.max(dim=-1)[0]) * \ + (top_bottom.min(dim=-1)[0] / top_bottom.max(dim=-1)[0]) + return torch.sqrt(ctrness) + + +def fcos_losses( + labels, + reg_targets, + bezier_targets, + logits_pred, + reg_pred, + bezier_pred, + ctrness_pred, + focal_loss_alpha, + focal_loss_gamma, + iou_loss, +): + num_classes = logits_pred.size(1) + labels = labels.flatten() + + pos_inds = torch.nonzero(labels != num_classes).squeeze(1) + num_pos_local = pos_inds.numel() + num_gpus = get_world_size() + total_num_pos = reduce_sum(pos_inds.new_tensor([num_pos_local])).item() + num_pos_avg = max(total_num_pos / num_gpus, 1.0) + + # prepare one_hot + class_target = torch.zeros_like(logits_pred) + class_target[pos_inds, labels[pos_inds]] = 1 + + class_loss = sigmoid_focal_loss_jit( + logits_pred, + class_target, + alpha=focal_loss_alpha, + gamma=focal_loss_gamma, + reduction="sum", + ) / num_pos_avg + + reg_pred = reg_pred[pos_inds] + bezier_pred = bezier_pred[pos_inds] + reg_targets = reg_targets[pos_inds] + bezier_targets = bezier_targets[pos_inds] + ctrness_pred = ctrness_pred[pos_inds] + + ious, gious = compute_ious(reg_pred, reg_targets) + ctrness_targets = compute_ctrness_targets(reg_targets) + ctrness_targets_sum = ctrness_targets.sum() + loss_denorm = max(reduce_sum(ctrness_targets_sum).item() / num_gpus, 1e-6) + + if pos_inds.numel() > 0: + reg_loss = iou_loss( + ious, + gious, + ctrness_targets + ) / loss_denorm + + ctrness_loss = F.binary_cross_entropy_with_logits( + ctrness_pred, + ctrness_targets, + reduction="sum" + ) / num_pos_avg + else: + reg_loss = reg_pred.sum() * 0 + bezier_loss = bezier_pred.sum() * 0 + ctrness_loss = ctrness_pred.sum() * 0 + + bezier_loss = F.smooth_l1_loss( + bezier_pred, bezier_targets, reduction="none") + bezier_loss = ((bezier_loss.mean(dim=-1) * ctrness_targets).sum() + / loss_denorm) + + losses = { + "loss_fcos_cls": class_loss, + "loss_fcos_loc": reg_loss, + "loss_fcos_ctr": ctrness_loss, + "loss_fcos_bezier": bezier_loss, + } + return losses + + +class BATextOutputs(object): + def __init__( + self, + images, + locations, + logits_pred, + reg_pred, + ctrness_pred, + bezier_pred, + focal_loss_alpha, + focal_loss_gamma, + iou_loss, + center_sample, + sizes_of_interest, + strides, + radius, + num_classes, + pre_nms_thresh, + pre_nms_top_n, + nms_thresh, + fpn_post_nms_top_n, + thresh_with_ctr, + gt_instances=None, + ): + self.logits_pred = logits_pred + self.reg_pred = reg_pred + self.bezier_pred = bezier_pred + self.ctrness_pred = ctrness_pred + self.locations = locations + + self.gt_instances = gt_instances + self.num_feature_maps = len(logits_pred) + self.num_images = len(images) + self.image_sizes = images.image_sizes + self.focal_loss_alpha = focal_loss_alpha + self.focal_loss_gamma = focal_loss_gamma + self.iou_loss = iou_loss + self.center_sample = center_sample + self.sizes_of_interest = sizes_of_interest + self.strides = strides + self.radius = radius + self.num_classes = num_classes + self.pre_nms_thresh = pre_nms_thresh + self.pre_nms_top_n = pre_nms_top_n + self.nms_thresh = nms_thresh + self.fpn_post_nms_top_n = fpn_post_nms_top_n + self.thresh_with_ctr = thresh_with_ctr + + def _transpose(self, training_targets, num_loc_list): + ''' + This function is used to transpose image first training targets to level first ones + :return: level first training targets + ''' + for im_i in range(len(training_targets)): + training_targets[im_i] = torch.split( + training_targets[im_i], num_loc_list, dim=0 + ) + + targets_level_first = [] + for targets_per_level in zip(*training_targets): + targets_level_first.append( + torch.cat(targets_per_level, dim=0) + ) + return targets_level_first + + def _get_ground_truth(self): + num_loc_list = [len(loc) for loc in self.locations] + self.num_loc_list = num_loc_list + + # compute locations to size ranges + loc_to_size_range = [] + for l, loc_per_level in enumerate(self.locations): + loc_to_size_range_per_level = loc_per_level.new_tensor(self.sizes_of_interest[l]) + loc_to_size_range.append( + loc_to_size_range_per_level[None].expand(num_loc_list[l], -1) + ) + + loc_to_size_range = torch.cat(loc_to_size_range, dim=0) + locations = torch.cat(self.locations, dim=0) + + training_targets = self.compute_targets_for_locations( + locations, self.gt_instances, loc_to_size_range + ) + + # transpose im first training_targets to level first ones + training_targets = { + k: self._transpose(v, num_loc_list) for k, v in training_targets.items() + } + + # we normalize reg_targets by FPN's strides here + reg_targets = training_targets["reg_targets"] + bezier_targets = training_targets["bezier_targets"] + for l in range(len(reg_targets)): + reg_targets[l] = reg_targets[l] / float(self.strides[l]) + bezier_targets[l] = bezier_targets[l] / float(self.strides[l]) + + return training_targets + + def get_sample_region(self, gt, strides, num_loc_list, loc_xs, loc_ys, radius=1): + num_gts = gt.shape[0] + K = len(loc_xs) + gt = gt[None].expand(K, num_gts, 4) + center_x = (gt[..., 0] + gt[..., 2]) / 2 + center_y = (gt[..., 1] + gt[..., 3]) / 2 + center_gt = gt.new_zeros(gt.shape) + # no gt + if center_x.numel() == 0 or center_x[..., 0].sum() == 0: + return loc_xs.new_zeros(loc_xs.shape, dtype=torch.uint8) + beg = 0 + for level, num_loc in enumerate(num_loc_list): + end = beg + num_loc + stride = strides[level] * radius + xmin = center_x[beg:end] - stride + ymin = center_y[beg:end] - stride + xmax = center_x[beg:end] + stride + ymax = center_y[beg:end] + stride + # limit sample region in gt + center_gt[beg:end, :, 0] = torch.where(xmin > gt[beg:end, :, 0], xmin, gt[beg:end, :, 0]) + center_gt[beg:end, :, 1] = torch.where(ymin > gt[beg:end, :, 1], ymin, gt[beg:end, :, 1]) + center_gt[beg:end, :, 2] = torch.where(xmax > gt[beg:end, :, 2], gt[beg:end, :, 2], xmax) + center_gt[beg:end, :, 3] = torch.where(ymax > gt[beg:end, :, 3], gt[beg:end, :, 3], ymax) + beg = end + left = loc_xs[:, None] - center_gt[..., 0] + right = center_gt[..., 2] - loc_xs[:, None] + top = loc_ys[:, None] - center_gt[..., 1] + bottom = center_gt[..., 3] - loc_ys[:, None] + center_bbox = torch.stack((left, top, right, bottom), -1) + inside_gt_bbox_mask = center_bbox.min(-1)[0] > 0 + return inside_gt_bbox_mask + + def compute_targets_for_locations(self, locations, targets, size_ranges): + labels = [] + reg_targets = [] + bezier_targets = [] + xs, ys = locations[:, 0], locations[:, 1] + + num_targets = 0 + for im_i in range(len(targets)): + targets_per_im = targets[im_i] + bboxes = targets_per_im.gt_boxes.tensor + labels_per_im = targets_per_im.gt_classes + + # no gt + if bboxes.numel() == 0: + labels.append(labels_per_im.new_zeros(locations.size(0)) + self.num_classes) + reg_targets.append(locations.new_zeros((locations.size(0), 4))) + bezier_targets.append(locations.new_zeros((locations.size(0), 16))) + continue + + area = targets_per_im.gt_boxes.area() + + l = xs[:, None] - bboxes[:, 0][None] + t = ys[:, None] - bboxes[:, 1][None] + r = bboxes[:, 2][None] - xs[:, None] + b = bboxes[:, 3][None] - ys[:, None] + reg_targets_per_im = torch.stack([l, t, r, b], dim=2) + + # bezier points are relative distances from center to control points + bezier_pts = targets_per_im.beziers.view(-1, 8, 2) + x_targets = bezier_pts[:, :, 0][None] - xs[:, None, None] + y_targets = bezier_pts[:, :, 1][None] - ys[:, None, None] + bezier_targets_per_im = torch.stack((x_targets, y_targets), dim=3) + bezier_targets_per_im = bezier_targets_per_im.view(xs.size(0), bboxes.size(0), 16) + + if self.center_sample: + is_in_boxes = self.get_sample_region( + bboxes, self.strides, self.num_loc_list, + xs, ys, radius=self.radius + ) + else: + is_in_boxes = reg_targets_per_im.min(dim=2)[0] > 0 + + max_reg_targets_per_im = reg_targets_per_im.max(dim=2)[0] + # limit the regression range for each location + is_cared_in_the_level = \ + (max_reg_targets_per_im >= size_ranges[:, [0]]) & \ + (max_reg_targets_per_im <= size_ranges[:, [1]]) + + locations_to_gt_area = area[None].repeat(len(locations), 1) + locations_to_gt_area[is_in_boxes == 0] = INF + locations_to_gt_area[is_cared_in_the_level == 0] = INF + + # if there are still more than one objects for a location, + # we choose the one with minimal area + locations_to_min_area, locations_to_gt_inds = locations_to_gt_area.min(dim=1) + + reg_targets_per_im = reg_targets_per_im[range(len(locations)), locations_to_gt_inds] + bezier_targets_per_im = bezier_targets_per_im[range(len(locations)), locations_to_gt_inds] + # target_inds_per_im = locations_to_gt_inds + num_targets + + labels_per_im = labels_per_im[locations_to_gt_inds] + labels_per_im[locations_to_min_area == INF] = self.num_classes + + labels.append(labels_per_im) + reg_targets.append(reg_targets_per_im) + bezier_targets.append(bezier_targets_per_im) + # target_inds.append(target_inds_per_im) + + return { + "labels": labels, + "reg_targets": reg_targets, + "bezier_targets": bezier_targets} + + def losses(self): + """ + Return the losses from a set of FCOS predictions and their associated ground-truth. + + Returns: + dict[loss name -> loss value]: A dict mapping from loss name to loss value. + """ + + training_targets = self._get_ground_truth() + labels, reg_targets, bezier_targets = ( + training_targets["labels"], + training_targets["reg_targets"], + training_targets["bezier_targets"]) + + # Collect all logits and regression predictions over feature maps + # and images to arrive at the same shape as the labels and targets + # The final ordering is L, N, H, W from slowest to fastest axis. + logits_pred = cat( + [ + # Reshape: (N, C, Hi, Wi) -> (N, Hi, Wi, C) -> (N*Hi*Wi, C) + x.permute(0, 2, 3, 1).reshape(-1, self.num_classes) + for x in self.logits_pred + ], dim=0,) + reg_pred = cat( + [ + # Reshape: (N, B, Hi, Wi) -> (N, Hi, Wi, B) -> (N*Hi*Wi, B) + x.permute(0, 2, 3, 1).reshape(-1, 4) + for x in self.reg_pred + ], dim=0,) + bezier_pred = cat( + [ + # Reshape: (N, B, Hi, Wi) -> (N, Hi, Wi, B) -> (N*Hi*Wi, B) + x.permute(0, 2, 3, 1).reshape(-1, 16) + for x in self.bezier_pred + ], dim=0,) + ctrness_pred = cat( + [ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.reshape(-1) for x in self.ctrness_pred + ], dim=0,) + + labels = cat( + [ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.reshape(-1) for x in labels + ], dim=0,) + + bezier_targets = cat( + [ + # Reshape: (N, Hi, Wi, 16) -> (N*Hi*Wi, 16) + x.reshape(-1, 16) for x in bezier_targets + ], dim=0,) + + reg_targets = cat( + [ + # Reshape: (N, Hi, Wi, 4) -> (N*Hi*Wi, 4) + x.reshape(-1, 4) for x in reg_targets + ], dim=0,) + + return fcos_losses( + labels, + reg_targets, + bezier_targets, + logits_pred, + reg_pred, + bezier_pred, + ctrness_pred, + self.focal_loss_alpha, + self.focal_loss_gamma, + self.iou_loss, + ) + + def predict_proposals(self, top_feats): + sampled_boxes = [] + + bundle = { + "l": self.locations, "o": self.logits_pred, + "r": self.reg_pred, "c": self.ctrness_pred, + "s": self.strides, + } + + if len(top_feats) > 0: + bundle["t"] = top_feats + + for i, instance in enumerate(zip(*bundle.values())): + instance_dict = dict(zip(bundle.keys(), instance)) + # recall that during training, we normalize regression targets with FPN's stride. + # we denormalize them here. + l = instance_dict["l"] + o = instance_dict["o"] + r = instance_dict["r"] * instance_dict["s"] + c = instance_dict["c"] + # top_feat is the bezier regression + t = instance_dict["t"] * instance_dict["s"] if "t" in bundle else None + + sampled_boxes.append( + self.forward_for_single_feature_map( + l, o, r, c, self.image_sizes, t + ) + ) + + boxlists = list(zip(*sampled_boxes)) + boxlists = [Instances.cat(boxlist) for boxlist in boxlists] + boxlists = self.select_over_all_levels(boxlists) + return boxlists + + def forward_for_single_feature_map( + self, locations, box_cls, + reg_pred, ctrness, + image_sizes, top_feat=None): + N, C, H, W = box_cls.shape + + # put in the same format as locations + box_cls = box_cls.view(N, C, H, W).permute(0, 2, 3, 1) + box_cls = box_cls.reshape(N, -1, C).sigmoid() + box_regression = reg_pred.view(N, 4, H, W).permute(0, 2, 3, 1) + box_regression = box_regression.reshape(N, -1, 4) + ctrness = ctrness.view(N, 1, H, W).permute(0, 2, 3, 1) + ctrness = ctrness.reshape(N, -1).sigmoid() + if top_feat is not None: + top_feat = top_feat.view(N, -1, H, W).permute(0, 2, 3, 1) + top_feat = top_feat.reshape(N, H * W, -1) + + # if self.thresh_with_ctr is True, we multiply the classification + # scores with centerness scores before applying the threshold. + if self.thresh_with_ctr: + box_cls = box_cls * ctrness[:, :, None] + candidate_inds = box_cls > self.pre_nms_thresh + pre_nms_top_n = candidate_inds.view(N, -1).sum(1) + pre_nms_top_n = pre_nms_top_n.clamp(max=self.pre_nms_top_n) + + if not self.thresh_with_ctr: + box_cls = box_cls * ctrness[:, :, None] + + results = [] + for i in range(N): + per_box_cls = box_cls[i] + per_candidate_inds = candidate_inds[i] + per_box_cls = per_box_cls[per_candidate_inds] + + per_candidate_nonzeros = per_candidate_inds.nonzero() + per_box_loc = per_candidate_nonzeros[:, 0] + per_class = per_candidate_nonzeros[:, 1] + + per_box_regression = box_regression[i] + per_box_regression = per_box_regression[per_box_loc] + per_locations = locations[per_box_loc] + if top_feat is not None: + per_top_feat = top_feat[i] + per_top_feat = per_top_feat[per_box_loc] + + per_pre_nms_top_n = pre_nms_top_n[i] + + if per_candidate_inds.sum().item() > per_pre_nms_top_n.item(): + per_box_cls, top_k_indices = \ + per_box_cls.topk(per_pre_nms_top_n, sorted=False) + per_class = per_class[top_k_indices] + per_box_regression = per_box_regression[top_k_indices] + per_locations = per_locations[top_k_indices] + if top_feat is not None: + per_top_feat = per_top_feat[top_k_indices] + + detections = torch.stack([ + per_locations[:, 0] - per_box_regression[:, 0], + per_locations[:, 1] - per_box_regression[:, 1], + per_locations[:, 0] + per_box_regression[:, 2], + per_locations[:, 1] + per_box_regression[:, 3], + ], dim=1) + + boxlist = Instances(image_sizes[i]) + boxlist.pred_boxes = Boxes(detections) + boxlist.scores = torch.sqrt(per_box_cls) + boxlist.pred_classes = per_class + boxlist.locations = per_locations + if top_feat is not None: + # top_feat in batext is bezier regression + # decentralize + bezier_detections = per_locations.unsqueeze(1) + per_top_feat.view(-1, 8, 2) + bezier_detections = bezier_detections.view(-1, 16) + boxlist.top_feat = bezier_detections + results.append(boxlist) + + return results + + def select_over_all_levels(self, boxlists): + num_images = len(boxlists) + results = [] + for i in range(num_images): + # multiclass nms + result = ml_nms(boxlists[i], self.nms_thresh) + number_of_detections = len(result) + + # Limit to max_per_image detections **over all classes** + if number_of_detections > self.fpn_post_nms_top_n > 0: + cls_scores = result.scores + image_thresh, _ = torch.kthvalue( + cls_scores.cpu(), + number_of_detections - self.fpn_post_nms_top_n + 1 + ) + keep = cls_scores >= image_thresh.item() + keep = torch.nonzero(keep).squeeze(1) + result = result[keep] + results.append(result) + return results diff --git a/AdelaiDet/adet/modeling/blendmask/__init__.py b/AdelaiDet/adet/modeling/blendmask/__init__.py new file mode 100755 index 0000000..66e4125 --- /dev/null +++ b/AdelaiDet/adet/modeling/blendmask/__init__.py @@ -0,0 +1,2 @@ +from .basis_module import build_basis_module +from .blendmask import BlendMask diff --git a/AdelaiDet/adet/modeling/blendmask/basis_module.py b/AdelaiDet/adet/modeling/blendmask/basis_module.py new file mode 100755 index 0000000..e1e067d --- /dev/null +++ b/AdelaiDet/adet/modeling/blendmask/basis_module.py @@ -0,0 +1,104 @@ +from typing import Dict +from torch import nn +from torch.nn import functional as F + +from detectron2.utils.registry import Registry +from detectron2.layers import ShapeSpec + +from adet.layers import conv_with_kaiming_uniform + + +BASIS_MODULE_REGISTRY = Registry("BASIS_MODULE") +BASIS_MODULE_REGISTRY.__doc__ = """ +Registry for basis module, which produces global bases from feature maps. + +The registered object will be called with `obj(cfg, input_shape)`. +The call should return a `nn.Module` object. +""" + + +def build_basis_module(cfg, input_shape): + name = cfg.MODEL.BASIS_MODULE.NAME + return BASIS_MODULE_REGISTRY.get(name)(cfg, input_shape) + + +@BASIS_MODULE_REGISTRY.register() +class ProtoNet(nn.Module): + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + """ + TODO: support deconv and variable channel width + """ + # official protonet has a relu after each conv + super().__init__() + # fmt: off + mask_dim = cfg.MODEL.BASIS_MODULE.NUM_BASES + planes = cfg.MODEL.BASIS_MODULE.CONVS_DIM + self.in_features = cfg.MODEL.BASIS_MODULE.IN_FEATURES + self.loss_on = cfg.MODEL.BASIS_MODULE.LOSS_ON + norm = cfg.MODEL.BASIS_MODULE.NORM + num_convs = cfg.MODEL.BASIS_MODULE.NUM_CONVS + self.visualize = cfg.MODEL.BLENDMASK.VISUALIZE + # fmt: on + + feature_channels = {k: v.channels for k, v in input_shape.items()} + + conv_block = conv_with_kaiming_uniform(norm, True) # conv relu bn + self.refine = nn.ModuleList() + for in_feature in self.in_features: + self.refine.append(conv_block( + feature_channels[in_feature], planes, 3, 1)) + tower = [] + for i in range(num_convs): + tower.append( + conv_block(planes, planes, 3, 1)) + tower.append( + nn.Upsample(scale_factor=2, mode='bilinear', align_corners=False)) + tower.append( + conv_block(planes, planes, 3, 1)) + tower.append( + nn.Conv2d(planes, mask_dim, 1)) + self.add_module('tower', nn.Sequential(*tower)) + + if self.loss_on: + # fmt: off + self.common_stride = cfg.MODEL.BASIS_MODULE.COMMON_STRIDE + num_classes = cfg.MODEL.BASIS_MODULE.NUM_CLASSES + 1 + self.sem_loss_weight = cfg.MODEL.BASIS_MODULE.LOSS_WEIGHT + # fmt: on + + inplanes = feature_channels[self.in_features[0]] + self.seg_head = nn.Sequential(nn.Conv2d(inplanes, planes, kernel_size=3, + stride=1, padding=1, bias=False), + nn.BatchNorm2d(planes), + nn.ReLU(), + nn.Conv2d(planes, planes, kernel_size=3, + stride=1, padding=1, bias=False), + nn.BatchNorm2d(planes), + nn.ReLU(), + nn.Conv2d(planes, num_classes, kernel_size=1, + stride=1)) + + def forward(self, features, targets=None): + for i, f in enumerate(self.in_features): + if i == 0: + x = self.refine[i](features[f]) + else: + x_p = self.refine[i](features[f]) + x_p = F.interpolate(x_p, x.size()[2:], mode="bilinear", align_corners=False) + # x_p = aligned_bilinear(x_p, x.size(3) // x_p.size(3)) + x = x + x_p + outputs = {"bases": [self.tower(x)]} + losses = {} + # auxiliary thing semantic loss + if self.training and self.loss_on: + sem_out = self.seg_head(features[self.in_features[0]]) + # resize target to reduce memory + gt_sem = targets.unsqueeze(1).float() + gt_sem = F.interpolate( + gt_sem, scale_factor=1 / self.common_stride) + seg_loss = F.cross_entropy( + sem_out, gt_sem.squeeze(1).long()) + losses['loss_basis_sem'] = seg_loss * self.sem_loss_weight + elif self.visualize and hasattr(self, "seg_head"): + outputs["seg_thing_out"] = self.seg_head(features[self.in_features[0]]) + return outputs, losses diff --git a/AdelaiDet/adet/modeling/blendmask/blender.py b/AdelaiDet/adet/modeling/blendmask/blender.py new file mode 100755 index 0000000..009d8c8 --- /dev/null +++ b/AdelaiDet/adet/modeling/blendmask/blender.py @@ -0,0 +1,103 @@ +import torch +from torch.nn import functional as F + +from detectron2.layers import cat +from detectron2.modeling.poolers import ROIPooler + + +def build_blender(cfg): + return Blender(cfg) + + +class Blender(object): + def __init__(self, cfg): + + # fmt: off + self.pooler_resolution = cfg.MODEL.BLENDMASK.BOTTOM_RESOLUTION + sampling_ratio = cfg.MODEL.BLENDMASK.POOLER_SAMPLING_RATIO + pooler_type = cfg.MODEL.BLENDMASK.POOLER_TYPE + pooler_scales = cfg.MODEL.BLENDMASK.POOLER_SCALES + self.attn_size = cfg.MODEL.BLENDMASK.ATTN_SIZE + self.top_interp = cfg.MODEL.BLENDMASK.TOP_INTERP + num_bases = cfg.MODEL.BASIS_MODULE.NUM_BASES + # fmt: on + + self.attn_len = num_bases * self.attn_size * self.attn_size + + self.pooler = ROIPooler( + output_size=self.pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + canonical_level=2) + + def __call__(self, bases, proposals, gt_instances): + if gt_instances is not None: + # training + # reshape attns + dense_info = proposals["instances"] + attns = dense_info.top_feats + pos_inds = dense_info.pos_inds + if pos_inds.numel() == 0: + return None, {"loss_mask": sum([x.sum() * 0 for x in attns]) + bases[0].sum() * 0} + + gt_inds = dense_info.gt_inds + + rois = self.pooler(bases, [x.gt_boxes for x in gt_instances]) + rois = rois[gt_inds] + pred_mask_logits = self.merge_bases(rois, attns) + + # gen targets + gt_masks = [] + for instances_per_image in gt_instances: + if len(instances_per_image.gt_boxes.tensor) == 0: + continue + gt_mask_per_image = instances_per_image.gt_masks.crop_and_resize( + instances_per_image.gt_boxes.tensor, self.pooler_resolution + ).to(device=pred_mask_logits.device) + gt_masks.append(gt_mask_per_image) + gt_masks = cat(gt_masks, dim=0) + gt_masks = gt_masks[gt_inds] + N = gt_masks.size(0) + gt_masks = gt_masks.view(N, -1) + + gt_ctr = dense_info.gt_ctrs + loss_denorm = proposals["loss_denorm"] + mask_losses = F.binary_cross_entropy_with_logits( + pred_mask_logits, gt_masks.to(dtype=torch.float32), reduction="none") + mask_loss = ((mask_losses.mean(dim=-1) * gt_ctr).sum() + / loss_denorm) + return None, {"loss_mask": mask_loss} + else: + # no proposals + total_instances = sum([len(x) for x in proposals]) + if total_instances == 0: + # add empty pred_masks results + for box in proposals: + box.pred_masks = box.pred_classes.view( + -1, 1, self.pooler_resolution, self.pooler_resolution) + return proposals, {} + rois = self.pooler(bases, [x.pred_boxes for x in proposals]) + attns = cat([x.top_feat for x in proposals], dim=0) + pred_mask_logits = self.merge_bases(rois, attns).sigmoid() + pred_mask_logits = pred_mask_logits.view( + -1, 1, self.pooler_resolution, self.pooler_resolution) + start_ind = 0 + for box in proposals: + end_ind = start_ind + len(box) + box.pred_masks = pred_mask_logits[start_ind:end_ind] + start_ind = end_ind + return proposals, {} + + def merge_bases(self, rois, coeffs, location_to_inds=None): + # merge predictions + N = coeffs.size(0) + if location_to_inds is not None: + rois = rois[location_to_inds] + N, B, H, W = rois.size() + + coeffs = coeffs.view(N, -1, self.attn_size, self.attn_size) + coeffs = F.interpolate(coeffs, (H, W), + mode=self.top_interp).softmax(dim=1) + masks_preds = (rois * coeffs).sum(dim=1) + return masks_preds.view(N, -1) diff --git a/AdelaiDet/adet/modeling/blendmask/blendmask.py b/AdelaiDet/adet/modeling/blendmask/blendmask.py new file mode 100755 index 0000000..5ebe77c --- /dev/null +++ b/AdelaiDet/adet/modeling/blendmask/blendmask.py @@ -0,0 +1,154 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import torch +from torch import nn + +from detectron2.structures import ImageList +from detectron2.modeling.postprocessing import detector_postprocess, sem_seg_postprocess +from detectron2.modeling.proposal_generator import build_proposal_generator +from detectron2.modeling.backbone import build_backbone +from detectron2.modeling.meta_arch.panoptic_fpn import combine_semantic_and_instance_outputs +from detectron2.modeling.meta_arch.build import META_ARCH_REGISTRY +from detectron2.modeling.meta_arch.semantic_seg import build_sem_seg_head + +from .blender import build_blender +from .basis_module import build_basis_module + +__all__ = ["BlendMask"] + + +@META_ARCH_REGISTRY.register() +class BlendMask(nn.Module): + """ + Main class for BlendMask architectures (see https://arxiv.org/abd/1901.02446). + """ + + def __init__(self, cfg): + super().__init__() + + self.device = torch.device(cfg.MODEL.DEVICE) + self.instance_loss_weight = cfg.MODEL.BLENDMASK.INSTANCE_LOSS_WEIGHT + + self.backbone = build_backbone(cfg) + self.proposal_generator = build_proposal_generator(cfg, self.backbone.output_shape()) + self.blender = build_blender(cfg) + self.basis_module = build_basis_module(cfg, self.backbone.output_shape()) + + # options when combining instance & semantic outputs + self.combine_on = cfg.MODEL.PANOPTIC_FPN.COMBINE.ENABLED + if self.combine_on: + self.panoptic_module = build_sem_seg_head(cfg, self.backbone.output_shape()) + self.combine_overlap_threshold = cfg.MODEL.PANOPTIC_FPN.COMBINE.OVERLAP_THRESH + self.combine_stuff_area_limit = cfg.MODEL.PANOPTIC_FPN.COMBINE.STUFF_AREA_LIMIT + self.combine_instances_confidence_threshold = ( + cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH) + + # build top module + in_channels = cfg.MODEL.FPN.OUT_CHANNELS + num_bases = cfg.MODEL.BASIS_MODULE.NUM_BASES + attn_size = cfg.MODEL.BLENDMASK.ATTN_SIZE + attn_len = num_bases * attn_size * attn_size + self.top_layer = nn.Conv2d( + in_channels, attn_len, + kernel_size=3, stride=1, padding=1) + torch.nn.init.normal_(self.top_layer.weight, std=0.01) + torch.nn.init.constant_(self.top_layer.bias, 0) + + pixel_mean = torch.Tensor(cfg.MODEL.PIXEL_MEAN).to(self.device).view(3, 1, 1) + pixel_std = torch.Tensor(cfg.MODEL.PIXEL_STD).to(self.device).view(3, 1, 1) + self.normalizer = lambda x: (x - pixel_mean) / pixel_std + self.to(self.device) + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper`. + Each item in the list contains the inputs for one image. + + For now, each item in the list is a dict that contains: + image: Tensor, image in (C, H, W) format. + instances: Instances + sem_seg: semantic segmentation ground truth. + Other information that's included in the original dicts, such as: + "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + + Returns: + list[dict]: each dict is the results for one image. The dict + contains the following keys: + "instances": see :meth:`GeneralizedRCNN.forward` for its format. + "sem_seg": see :meth:`SemanticSegmentor.forward` for its format. + "panoptic_seg": available when `PANOPTIC_FPN.COMBINE.ENABLED`. + See the return value of + :func:`combine_semantic_and_instance_outputs` for its format. + """ + images = [x["image"].to(self.device) for x in batched_inputs] + images = [self.normalizer(x) for x in images] + images = ImageList.from_tensors(images, self.backbone.size_divisibility) + features = self.backbone(images.tensor) + + if self.combine_on: + if "sem_seg" in batched_inputs[0]: + gt_sem = [x["sem_seg"].to(self.device) for x in batched_inputs] + gt_sem = ImageList.from_tensors( + gt_sem, self.backbone.size_divisibility, self.panoptic_module.ignore_value + ).tensor + else: + gt_sem = None + sem_seg_results, sem_seg_losses = self.panoptic_module(features, gt_sem) + + if "basis_sem" in batched_inputs[0]: + basis_sem = [x["basis_sem"].to(self.device) for x in batched_inputs] + basis_sem = ImageList.from_tensors( + basis_sem, self.backbone.size_divisibility, 0).tensor + else: + basis_sem = None + basis_out, basis_losses = self.basis_module(features, basis_sem) + + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + else: + gt_instances = None + proposals, proposal_losses = self.proposal_generator( + images, features, gt_instances, self.top_layer) + detector_results, detector_losses = self.blender( + basis_out["bases"], proposals, gt_instances) + + if self.training: + losses = {} + losses.update(basis_losses) + losses.update({k: v * self.instance_loss_weight for k, v in detector_losses.items()}) + losses.update(proposal_losses) + if self.combine_on: + losses.update(sem_seg_losses) + return losses + + processed_results = [] + for i, (detector_result, input_per_image, image_size) in enumerate(zip( + detector_results, batched_inputs, images.image_sizes)): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + detector_r = detector_postprocess(detector_result, height, width) + processed_result = {"instances": detector_r} + if self.combine_on: + sem_seg_r = sem_seg_postprocess( + sem_seg_results[i], image_size, height, width) + processed_result["sem_seg"] = sem_seg_r + if "seg_thing_out" in basis_out: + seg_thing_r = sem_seg_postprocess( + basis_out["seg_thing_out"], image_size, height, width) + processed_result["sem_thing_seg"] = seg_thing_r + if self.basis_module.visualize: + processed_result["bases"] = basis_out["bases"] + processed_results.append(processed_result) + + if self.combine_on: + panoptic_r = combine_semantic_and_instance_outputs( + detector_r, + sem_seg_r.argmax(dim=0), + self.combine_overlap_threshold, + self.combine_stuff_area_limit, + self.combine_instances_confidence_threshold) + processed_results[-1]["panoptic_seg"] = panoptic_r + return processed_results diff --git a/AdelaiDet/adet/modeling/condinst/__init__.py b/AdelaiDet/adet/modeling/condinst/__init__.py new file mode 100755 index 0000000..395e19f --- /dev/null +++ b/AdelaiDet/adet/modeling/condinst/__init__.py @@ -0,0 +1 @@ +from .condinst import CondInst diff --git a/AdelaiDet/adet/modeling/condinst/condinst.py b/AdelaiDet/adet/modeling/condinst/condinst.py new file mode 100755 index 0000000..4e0ed06 --- /dev/null +++ b/AdelaiDet/adet/modeling/condinst/condinst.py @@ -0,0 +1,372 @@ +# -*- coding: utf-8 -*- +import logging +from skimage import color + +import torch +from torch import nn +import torch.nn.functional as F + +from detectron2.structures import ImageList +from detectron2.modeling.proposal_generator import build_proposal_generator +from detectron2.modeling.backbone import build_backbone +from detectron2.modeling.meta_arch.build import META_ARCH_REGISTRY +from detectron2.structures.instances import Instances +from detectron2.structures.masks import PolygonMasks, polygons_to_bitmask + +from .dynamic_mask_head import build_dynamic_mask_head +from .mask_branch import build_mask_branch + +from adet.utils.comm import aligned_bilinear + +__all__ = ["CondInst"] + + +logger = logging.getLogger(__name__) + + +def unfold_wo_center(x, kernel_size, dilation): + assert x.dim() == 4 + assert kernel_size % 2 == 1 + + # using SAME padding + padding = (kernel_size + (dilation - 1) * (kernel_size - 1)) // 2 + unfolded_x = F.unfold( + x, kernel_size=kernel_size, + padding=padding, + dilation=dilation + ) + + unfolded_x = unfolded_x.reshape( + x.size(0), x.size(1), -1, x.size(2), x.size(3) + ) + + # remove the center pixels + size = kernel_size ** 2 + unfolded_x = torch.cat(( + unfolded_x[:, :, :size // 2], + unfolded_x[:, :, size // 2 + 1:] + ), dim=2) + + return unfolded_x + + +def get_images_color_similarity(images, image_masks, kernel_size, dilation): + assert images.dim() == 4 + assert images.size(0) == 1 + + unfolded_images = unfold_wo_center( + images, kernel_size=kernel_size, dilation=dilation + ) + + diff = images[:, :, None] - unfolded_images + similarity = torch.exp(-torch.norm(diff, dim=1) * 0.5) + + unfolded_weights = unfold_wo_center( + image_masks[None, None], kernel_size=kernel_size, + dilation=dilation + ) + unfolded_weights = torch.max(unfolded_weights, dim=1)[0] + + return similarity * unfolded_weights + + +@META_ARCH_REGISTRY.register() +class CondInst(nn.Module): + """ + Main class for CondInst architectures (see https://arxiv.org/abs/2003.05664). + """ + + def __init__(self, cfg): + super().__init__() + self.device = torch.device(cfg.MODEL.DEVICE) + + self.backbone = build_backbone(cfg) + self.proposal_generator = build_proposal_generator(cfg, self.backbone.output_shape()) + self.mask_head = build_dynamic_mask_head(cfg) + self.mask_branch = build_mask_branch(cfg, self.backbone.output_shape()) + + self.mask_out_stride = cfg.MODEL.CONDINST.MASK_OUT_STRIDE + + self.max_proposals = cfg.MODEL.CONDINST.MAX_PROPOSALS + self.topk_proposals_per_im = cfg.MODEL.CONDINST.TOPK_PROPOSALS_PER_IM + + # boxinst configs + self.boxinst_enabled = cfg.MODEL.BOXINST.ENABLED + self.bottom_pixels_removed = cfg.MODEL.BOXINST.BOTTOM_PIXELS_REMOVED + self.pairwise_size = cfg.MODEL.BOXINST.PAIRWISE.SIZE + self.pairwise_dilation = cfg.MODEL.BOXINST.PAIRWISE.DILATION + self.pairwise_color_thresh = cfg.MODEL.BOXINST.PAIRWISE.COLOR_THRESH + + # build top module + in_channels = self.proposal_generator.in_channels_to_top_module + + self.controller = nn.Conv2d( + in_channels, self.mask_head.num_gen_params, + kernel_size=3, stride=1, padding=1 + ) + torch.nn.init.normal_(self.controller.weight, std=0.01) + torch.nn.init.constant_(self.controller.bias, 0) + + pixel_mean = torch.Tensor(cfg.MODEL.PIXEL_MEAN).to(self.device).view(3, 1, 1) + pixel_std = torch.Tensor(cfg.MODEL.PIXEL_STD).to(self.device).view(3, 1, 1) + self.normalizer = lambda x: (x - pixel_mean) / pixel_std + self.to(self.device) + + def forward(self, batched_inputs): + original_images = [x["image"].to(self.device) for x in batched_inputs] + + # normalize images + images_norm = [self.normalizer(x) for x in original_images] + images_norm = ImageList.from_tensors(images_norm, self.backbone.size_divisibility) + + features = self.backbone(images_norm.tensor) + + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + if self.boxinst_enabled: + original_image_masks = [torch.ones_like(x[0], dtype=torch.float32) for x in original_images] + + # mask out the bottom area where the COCO dataset probably has wrong annotations + for i in range(len(original_image_masks)): + im_h = batched_inputs[i]["height"] + pixels_removed = int( + self.bottom_pixels_removed * + float(original_images[i].size(1)) / float(im_h) + ) + if pixels_removed > 0: + original_image_masks[i][-pixels_removed:, :] = 0 + + original_images = ImageList.from_tensors(original_images, self.backbone.size_divisibility) + original_image_masks = ImageList.from_tensors( + original_image_masks, self.backbone.size_divisibility, pad_value=0.0 + ) + self.add_bitmasks_from_boxes( + gt_instances, original_images.tensor, original_image_masks.tensor, + original_images.tensor.size(-2), original_images.tensor.size(-1) + ) + else: + self.add_bitmasks(gt_instances, images_norm.tensor.size(-2), images_norm.tensor.size(-1)) + else: + gt_instances = None + + mask_feats, sem_losses = self.mask_branch(features, gt_instances) + + proposals, proposal_losses = self.proposal_generator( + images_norm, features, gt_instances, self.controller + ) + + if self.training: + mask_losses = self._forward_mask_heads_train(proposals, mask_feats, gt_instances) + + losses = {} + losses.update(sem_losses) + losses.update(proposal_losses) + losses.update(mask_losses) + return losses + else: + pred_instances_w_masks = self._forward_mask_heads_test(proposals, mask_feats) + + padded_im_h, padded_im_w = images_norm.tensor.size()[-2:] + processed_results = [] + for im_id, (input_per_image, image_size) in enumerate(zip(batched_inputs, images_norm.image_sizes)): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + + instances_per_im = pred_instances_w_masks[pred_instances_w_masks.im_inds == im_id] + instances_per_im = self.postprocess( + instances_per_im, height, width, + padded_im_h, padded_im_w + ) + + processed_results.append({ + "instances": instances_per_im + }) + + return processed_results + + def _forward_mask_heads_train(self, proposals, mask_feats, gt_instances): + # prepare the inputs for mask heads + pred_instances = proposals["instances"] + + assert (self.max_proposals == -1) or (self.topk_proposals_per_im == -1), \ + "MAX_PROPOSALS and TOPK_PROPOSALS_PER_IM cannot be used at the same time." + if self.max_proposals != -1: + if self.max_proposals < len(pred_instances): + inds = torch.randperm(len(pred_instances), device=mask_feats.device).long() + logger.info("clipping proposals from {} to {}".format( + len(pred_instances), self.max_proposals + )) + pred_instances = pred_instances[inds[:self.max_proposals]] + elif self.topk_proposals_per_im != -1: + num_images = len(gt_instances) + + kept_instances = [] + for im_id in range(num_images): + instances_per_im = pred_instances[pred_instances.im_inds == im_id] + if len(instances_per_im) == 0: + kept_instances.append(instances_per_im) + continue + + unique_gt_inds = instances_per_im.gt_inds.unique() + num_instances_per_gt = max(int(self.topk_proposals_per_im / len(unique_gt_inds)), 1) + + for gt_ind in unique_gt_inds: + instances_per_gt = instances_per_im[instances_per_im.gt_inds == gt_ind] + + if len(instances_per_gt) > num_instances_per_gt: + scores = instances_per_gt.logits_pred.sigmoid().max(dim=1)[0] + ctrness_pred = instances_per_gt.ctrness_pred.sigmoid() + inds = (scores * ctrness_pred).topk(k=num_instances_per_gt, dim=0)[1] + instances_per_gt = instances_per_gt[inds] + + kept_instances.append(instances_per_gt) + + pred_instances = Instances.cat(kept_instances) + + pred_instances.mask_head_params = pred_instances.top_feats + + loss_mask = self.mask_head( + mask_feats, self.mask_branch.out_stride, + pred_instances, gt_instances + ) + + return loss_mask + + def _forward_mask_heads_test(self, proposals, mask_feats): + # prepare the inputs for mask heads + for im_id, per_im in enumerate(proposals): + per_im.im_inds = per_im.locations.new_ones(len(per_im), dtype=torch.long) * im_id + pred_instances = Instances.cat(proposals) + pred_instances.mask_head_params = pred_instances.top_feat + + pred_instances_w_masks = self.mask_head( + mask_feats, self.mask_branch.out_stride, pred_instances + ) + + return pred_instances_w_masks + + def add_bitmasks(self, instances, im_h, im_w): + for per_im_gt_inst in instances: + if not per_im_gt_inst.has("gt_masks"): + continue + start = int(self.mask_out_stride // 2) + if isinstance(per_im_gt_inst.get("gt_masks"), PolygonMasks): + polygons = per_im_gt_inst.get("gt_masks").polygons + per_im_bitmasks = [] + per_im_bitmasks_full = [] + for per_polygons in polygons: + bitmask = polygons_to_bitmask(per_polygons, im_h, im_w) + bitmask = torch.from_numpy(bitmask).to(self.device).float() + start = int(self.mask_out_stride // 2) + bitmask_full = bitmask.clone() + bitmask = bitmask[start::self.mask_out_stride, start::self.mask_out_stride] + + assert bitmask.size(0) * self.mask_out_stride == im_h + assert bitmask.size(1) * self.mask_out_stride == im_w + + per_im_bitmasks.append(bitmask) + per_im_bitmasks_full.append(bitmask_full) + + per_im_gt_inst.gt_bitmasks = torch.stack(per_im_bitmasks, dim=0) + per_im_gt_inst.gt_bitmasks_full = torch.stack(per_im_bitmasks_full, dim=0) + else: # RLE format bitmask + bitmasks = per_im_gt_inst.get("gt_masks").tensor + h, w = bitmasks.size()[1:] + # pad to new size + bitmasks_full = F.pad(bitmasks, (0, im_w - w, 0, im_h - h), "constant", 0) + bitmasks = bitmasks_full[:, start::self.mask_out_stride, start::self.mask_out_stride] + per_im_gt_inst.gt_bitmasks = bitmasks + per_im_gt_inst.gt_bitmasks_full = bitmasks_full + + def add_bitmasks_from_boxes(self, instances, images, image_masks, im_h, im_w): + stride = self.mask_out_stride + start = int(stride // 2) + + assert images.size(2) % stride == 0 + assert images.size(3) % stride == 0 + + downsampled_images = F.avg_pool2d( + images.float(), kernel_size=stride, + stride=stride, padding=0 + )[:, [2, 1, 0]] + image_masks = image_masks[:, start::stride, start::stride] + + for im_i, per_im_gt_inst in enumerate(instances): + images_lab = color.rgb2lab(downsampled_images[im_i].byte().permute(1, 2, 0).cpu().numpy()) + images_lab = torch.as_tensor(images_lab, device=downsampled_images.device, dtype=torch.float32) + images_lab = images_lab.permute(2, 0, 1)[None] + images_color_similarity = get_images_color_similarity( + images_lab, image_masks[im_i], + self.pairwise_size, self.pairwise_dilation + ) + + per_im_boxes = per_im_gt_inst.gt_boxes.tensor + per_im_bitmasks = [] + per_im_bitmasks_full = [] + for per_box in per_im_boxes: + bitmask_full = torch.zeros((im_h, im_w), device=self.device).float() + bitmask_full[int(per_box[1]):int(per_box[3] + 1), int(per_box[0]):int(per_box[2] + 1)] = 1.0 + + bitmask = bitmask_full[start::stride, start::stride] + + assert bitmask.size(0) * stride == im_h + assert bitmask.size(1) * stride == im_w + + per_im_bitmasks.append(bitmask) + per_im_bitmasks_full.append(bitmask_full) + + per_im_gt_inst.gt_bitmasks = torch.stack(per_im_bitmasks, dim=0) + per_im_gt_inst.gt_bitmasks_full = torch.stack(per_im_bitmasks_full, dim=0) + per_im_gt_inst.image_color_similarity = torch.cat([ + images_color_similarity for _ in range(len(per_im_gt_inst)) + ], dim=0) + + def postprocess(self, results, output_height, output_width, padded_im_h, padded_im_w, mask_threshold=0.5): + """ + Resize the output instances. + The input images are often resized when entering an object detector. + As a result, we often need the outputs of the detector in a different + resolution from its inputs. + This function will resize the raw outputs of an R-CNN detector + to produce outputs according to the desired output resolution. + Args: + results (Instances): the raw outputs from the detector. + `results.image_size` contains the input image resolution the detector sees. + This object might be modified in-place. + output_height, output_width: the desired output resolution. + Returns: + Instances: the resized output from the model, based on the output resolution + """ + scale_x, scale_y = (output_width / results.image_size[1], output_height / results.image_size[0]) + resized_im_h, resized_im_w = results.image_size + results = Instances((output_height, output_width), **results.get_fields()) + + if results.has("pred_boxes"): + output_boxes = results.pred_boxes + elif results.has("proposal_boxes"): + output_boxes = results.proposal_boxes + + output_boxes.scale(scale_x, scale_y) + output_boxes.clip(results.image_size) + + results = results[output_boxes.nonempty()] + + if results.has("pred_global_masks"): + mask_h, mask_w = results.pred_global_masks.size()[-2:] + factor_h = padded_im_h // mask_h + factor_w = padded_im_w // mask_w + assert factor_h == factor_w + factor = factor_h + pred_global_masks = aligned_bilinear( + results.pred_global_masks, factor + ) + pred_global_masks = pred_global_masks[:, :, :resized_im_h, :resized_im_w] + pred_global_masks = F.interpolate( + pred_global_masks, + size=(output_height, output_width), + mode="bilinear", align_corners=False + ) + pred_global_masks = pred_global_masks[:, 0, :, :] + results.pred_masks = (pred_global_masks > mask_threshold).float() + + return results diff --git a/AdelaiDet/adet/modeling/condinst/dynamic_mask_head.py b/AdelaiDet/adet/modeling/condinst/dynamic_mask_head.py new file mode 100755 index 0000000..7c77ee8 --- /dev/null +++ b/AdelaiDet/adet/modeling/condinst/dynamic_mask_head.py @@ -0,0 +1,259 @@ +import torch +from torch.nn import functional as F +from torch import nn + +from adet.utils.comm import compute_locations, aligned_bilinear + + +def compute_project_term(mask_scores, gt_bitmasks): + mask_losses_y = dice_coefficient( + mask_scores.max(dim=2, keepdim=True)[0], + gt_bitmasks.max(dim=2, keepdim=True)[0] + ) + mask_losses_x = dice_coefficient( + mask_scores.max(dim=3, keepdim=True)[0], + gt_bitmasks.max(dim=3, keepdim=True)[0] + ) + return (mask_losses_x + mask_losses_y).mean() + + +def compute_pairwise_term(mask_logits, pairwise_size, pairwise_dilation): + assert mask_logits.dim() == 4 + + log_fg_prob = F.logsigmoid(mask_logits) + log_bg_prob = F.logsigmoid(-mask_logits) + + from adet.modeling.condinst.condinst import unfold_wo_center + log_fg_prob_unfold = unfold_wo_center( + log_fg_prob, kernel_size=pairwise_size, + dilation=pairwise_dilation + ) + log_bg_prob_unfold = unfold_wo_center( + log_bg_prob, kernel_size=pairwise_size, + dilation=pairwise_dilation + ) + + # the probability of making the same prediction = p_i * p_j + (1 - p_i) * (1 - p_j) + # we compute the the probability in log space to avoid numerical instability + log_same_fg_prob = log_fg_prob[:, :, None] + log_fg_prob_unfold + log_same_bg_prob = log_bg_prob[:, :, None] + log_bg_prob_unfold + + max_ = torch.max(log_same_fg_prob, log_same_bg_prob) + log_same_prob = torch.log( + torch.exp(log_same_fg_prob - max_) + + torch.exp(log_same_bg_prob - max_) + ) + max_ + + # loss = -log(prob) + return -log_same_prob[:, 0] + + +def dice_coefficient(x, target): + eps = 1e-5 + n_inst = x.size(0) + x = x.reshape(n_inst, -1) + target = target.reshape(n_inst, -1) + intersection = (x * target).sum(dim=1) + union = (x ** 2.0).sum(dim=1) + (target ** 2.0).sum(dim=1) + eps + loss = 1. - (2 * intersection / union) + return loss + + +def parse_dynamic_params(params, channels, weight_nums, bias_nums): + assert params.dim() == 2 + assert len(weight_nums) == len(bias_nums) + assert params.size(1) == sum(weight_nums) + sum(bias_nums) + + num_insts = params.size(0) + num_layers = len(weight_nums) + + params_splits = list(torch.split_with_sizes( + params, weight_nums + bias_nums, dim=1 + )) + + weight_splits = params_splits[:num_layers] + bias_splits = params_splits[num_layers:] + + for l in range(num_layers): + if l < num_layers - 1: + # out_channels x in_channels x 1 x 1 + weight_splits[l] = weight_splits[l].reshape(num_insts * channels, -1, 1, 1) + bias_splits[l] = bias_splits[l].reshape(num_insts * channels) + else: + # out_channels x in_channels x 1 x 1 + weight_splits[l] = weight_splits[l].reshape(num_insts * 1, -1, 1, 1) + bias_splits[l] = bias_splits[l].reshape(num_insts) + + return weight_splits, bias_splits + + +def build_dynamic_mask_head(cfg): + return DynamicMaskHead(cfg) + + +class DynamicMaskHead(nn.Module): + def __init__(self, cfg): + super(DynamicMaskHead, self).__init__() + self.num_layers = cfg.MODEL.CONDINST.MASK_HEAD.NUM_LAYERS + self.channels = cfg.MODEL.CONDINST.MASK_HEAD.CHANNELS + self.in_channels = cfg.MODEL.CONDINST.MASK_BRANCH.OUT_CHANNELS + self.mask_out_stride = cfg.MODEL.CONDINST.MASK_OUT_STRIDE + self.disable_rel_coords = cfg.MODEL.CONDINST.MASK_HEAD.DISABLE_REL_COORDS + + soi = cfg.MODEL.FCOS.SIZES_OF_INTEREST + self.register_buffer("sizes_of_interest", torch.tensor(soi + [soi[-1] * 2])) + + # boxinst configs + self.boxinst_enabled = cfg.MODEL.BOXINST.ENABLED + self.bottom_pixels_removed = cfg.MODEL.BOXINST.BOTTOM_PIXELS_REMOVED + self.pairwise_size = cfg.MODEL.BOXINST.PAIRWISE.SIZE + self.pairwise_dilation = cfg.MODEL.BOXINST.PAIRWISE.DILATION + self.pairwise_color_thresh = cfg.MODEL.BOXINST.PAIRWISE.COLOR_THRESH + self._warmup_iters = cfg.MODEL.BOXINST.PAIRWISE.WARMUP_ITERS + + weight_nums, bias_nums = [], [] + for l in range(self.num_layers): + if l == 0: + if not self.disable_rel_coords: + weight_nums.append((self.in_channels + 2) * self.channels) + else: + weight_nums.append(self.in_channels * self.channels) + bias_nums.append(self.channels) + elif l == self.num_layers - 1: + weight_nums.append(self.channels * 1) + bias_nums.append(1) + else: + weight_nums.append(self.channels * self.channels) + bias_nums.append(self.channels) + + self.weight_nums = weight_nums + self.bias_nums = bias_nums + self.num_gen_params = sum(weight_nums) + sum(bias_nums) + + self.register_buffer("_iter", torch.zeros([1])) + + def mask_heads_forward(self, features, weights, biases, num_insts): + ''' + :param features + :param weights: [w0, w1, ...] + :param bias: [b0, b1, ...] + :return: + ''' + assert features.dim() == 4 + n_layers = len(weights) + x = features + for i, (w, b) in enumerate(zip(weights, biases)): + x = F.conv2d( + x, w, bias=b, + stride=1, padding=0, + groups=num_insts + ) + if i < n_layers - 1: + x = F.relu(x) + return x + + def mask_heads_forward_with_coords( + self, mask_feats, mask_feat_stride, instances + ): + locations = compute_locations( + mask_feats.size(2), mask_feats.size(3), + stride=mask_feat_stride, device=mask_feats.device + ) + n_inst = len(instances) + + im_inds = instances.im_inds + mask_head_params = instances.mask_head_params + + N, _, H, W = mask_feats.size() + + if not self.disable_rel_coords: + instance_locations = instances.locations + relative_coords = instance_locations.reshape(-1, 1, 2) - locations.reshape(1, -1, 2) + relative_coords = relative_coords.permute(0, 2, 1).float() + soi = self.sizes_of_interest.float()[instances.fpn_levels] + relative_coords = relative_coords / soi.reshape(-1, 1, 1) + relative_coords = relative_coords.to(dtype=mask_feats.dtype) + + mask_head_inputs = torch.cat([ + relative_coords, mask_feats[im_inds].reshape(n_inst, self.in_channels, H * W) + ], dim=1) + else: + mask_head_inputs = mask_feats[im_inds].reshape(n_inst, self.in_channels, H * W) + + mask_head_inputs = mask_head_inputs.reshape(1, -1, H, W) + + weights, biases = parse_dynamic_params( + mask_head_params, self.channels, + self.weight_nums, self.bias_nums + ) + + mask_logits = self.mask_heads_forward(mask_head_inputs, weights, biases, n_inst) + + mask_logits = mask_logits.reshape(-1, 1, H, W) + + assert mask_feat_stride >= self.mask_out_stride + assert mask_feat_stride % self.mask_out_stride == 0 + mask_logits = aligned_bilinear(mask_logits, int(mask_feat_stride / self.mask_out_stride)) + + return mask_logits + + def __call__(self, mask_feats, mask_feat_stride, pred_instances, gt_instances=None): + if self.training: + self._iter += 1 + + gt_inds = pred_instances.gt_inds + gt_bitmasks = torch.cat([per_im.gt_bitmasks for per_im in gt_instances]) + gt_bitmasks = gt_bitmasks[gt_inds].unsqueeze(dim=1).to(dtype=mask_feats.dtype) + + losses = {} + + if len(pred_instances) == 0: + dummy_loss = mask_feats.sum() * 0 + pred_instances.mask_head_params.sum() * 0 + if not self.boxinst_enabled: + losses["loss_mask"] = dummy_loss + else: + losses["loss_prj"] = dummy_loss + losses["loss_pairwise"] = dummy_loss + else: + mask_logits = self.mask_heads_forward_with_coords( + mask_feats, mask_feat_stride, pred_instances + ) + mask_scores = mask_logits.sigmoid() + + if self.boxinst_enabled: + # box-supervised BoxInst losses + image_color_similarity = torch.cat([x.image_color_similarity for x in gt_instances]) + image_color_similarity = image_color_similarity[gt_inds].to(dtype=mask_feats.dtype) + + loss_prj_term = compute_project_term(mask_scores, gt_bitmasks) + + pairwise_losses = compute_pairwise_term( + mask_logits, self.pairwise_size, + self.pairwise_dilation + ) + + weights = (image_color_similarity >= self.pairwise_color_thresh).float() * gt_bitmasks.float() + loss_pairwise = (pairwise_losses * weights).sum() / weights.sum().clamp(min=1.0) + + warmup_factor = min(self._iter.item() / float(self._warmup_iters), 1.0) + loss_pairwise = loss_pairwise * warmup_factor + + losses.update({ + "loss_prj": loss_prj_term, + "loss_pairwise": loss_pairwise, + }) + else: + # fully-supervised CondInst losses + mask_losses = dice_coefficient(mask_scores, gt_bitmasks) + loss_mask = mask_losses.mean() + losses["loss_mask"] = loss_mask + + return losses + else: + if len(pred_instances) > 0: + mask_logits = self.mask_heads_forward_with_coords( + mask_feats, mask_feat_stride, pred_instances + ) + pred_instances.pred_global_masks = mask_logits.sigmoid() + + return pred_instances diff --git a/AdelaiDet/adet/modeling/condinst/mask_branch.py b/AdelaiDet/adet/modeling/condinst/mask_branch.py new file mode 100755 index 0000000..bb15fcb --- /dev/null +++ b/AdelaiDet/adet/modeling/condinst/mask_branch.py @@ -0,0 +1,138 @@ +from typing import Dict +import math + +import torch +from torch import nn + +from fvcore.nn import sigmoid_focal_loss_jit +from detectron2.layers import ShapeSpec + +from adet.layers import conv_with_kaiming_uniform +from adet.utils.comm import aligned_bilinear + + +INF = 100000000 + + +def build_mask_branch(cfg, input_shape): + return MaskBranch(cfg, input_shape) + + +class MaskBranch(nn.Module): + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + self.in_features = cfg.MODEL.CONDINST.MASK_BRANCH.IN_FEATURES + self.sem_loss_on = cfg.MODEL.CONDINST.MASK_BRANCH.SEMANTIC_LOSS_ON + self.num_outputs = cfg.MODEL.CONDINST.MASK_BRANCH.OUT_CHANNELS + norm = cfg.MODEL.CONDINST.MASK_BRANCH.NORM + num_convs = cfg.MODEL.CONDINST.MASK_BRANCH.NUM_CONVS + channels = cfg.MODEL.CONDINST.MASK_BRANCH.CHANNELS + self.out_stride = input_shape[self.in_features[0]].stride + + feature_channels = {k: v.channels for k, v in input_shape.items()} + + conv_block = conv_with_kaiming_uniform(norm, activation=True) + + self.refine = nn.ModuleList() + for in_feature in self.in_features: + self.refine.append(conv_block( + feature_channels[in_feature], + channels, 3, 1 + )) + + tower = [] + for i in range(num_convs): + tower.append(conv_block( + channels, channels, 3, 1 + )) + tower.append(nn.Conv2d( + channels, max(self.num_outputs, 1), 1 + )) + self.add_module('tower', nn.Sequential(*tower)) + + if self.sem_loss_on: + num_classes = cfg.MODEL.FCOS.NUM_CLASSES + self.focal_loss_alpha = cfg.MODEL.FCOS.LOSS_ALPHA + self.focal_loss_gamma = cfg.MODEL.FCOS.LOSS_GAMMA + + in_channels = feature_channels[self.in_features[0]] + self.seg_head = nn.Sequential( + conv_block(in_channels, channels, kernel_size=3, stride=1), + conv_block(channels, channels, kernel_size=3, stride=1) + ) + + self.logits = nn.Conv2d(channels, num_classes, kernel_size=1, stride=1) + + prior_prob = cfg.MODEL.FCOS.PRIOR_PROB + bias_value = -math.log((1 - prior_prob) / prior_prob) + torch.nn.init.constant_(self.logits.bias, bias_value) + + def forward(self, features, gt_instances=None): + for i, f in enumerate(self.in_features): + if i == 0: + x = self.refine[i](features[f]) + else: + x_p = self.refine[i](features[f]) + + target_h, target_w = x.size()[2:] + h, w = x_p.size()[2:] + assert target_h % h == 0 + assert target_w % w == 0 + factor_h, factor_w = target_h // h, target_w // w + assert factor_h == factor_w + x_p = aligned_bilinear(x_p, factor_h) + x = x + x_p + + mask_feats = self.tower(x) + + if self.num_outputs == 0: + mask_feats = mask_feats[:, :self.num_outputs] + + losses = {} + # auxiliary thing semantic loss + if self.training and self.sem_loss_on: + logits_pred = self.logits(self.seg_head( + features[self.in_features[0]] + )) + + # compute semantic targets + semantic_targets = [] + for per_im_gt in gt_instances: + h, w = per_im_gt.gt_bitmasks_full.size()[-2:] + areas = per_im_gt.gt_bitmasks_full.sum(dim=-1).sum(dim=-1) + areas = areas[:, None, None].repeat(1, h, w) + areas[per_im_gt.gt_bitmasks_full == 0] = INF + areas = areas.permute(1, 2, 0).reshape(h * w, -1) + min_areas, inds = areas.min(dim=1) + per_im_sematic_targets = per_im_gt.gt_classes[inds] + 1 + per_im_sematic_targets[min_areas == INF] = 0 + per_im_sematic_targets = per_im_sematic_targets.reshape(h, w) + semantic_targets.append(per_im_sematic_targets) + + semantic_targets = torch.stack(semantic_targets, dim=0) + + # resize target to reduce memory + semantic_targets = semantic_targets[ + :, None, self.out_stride // 2::self.out_stride, + self.out_stride // 2::self.out_stride + ] + + # prepare one-hot targets + num_classes = logits_pred.size(1) + class_range = torch.arange( + num_classes, dtype=logits_pred.dtype, + device=logits_pred.device + )[:, None, None] + class_range = class_range + 1 + one_hot = (semantic_targets == class_range).float() + num_pos = (one_hot > 0).sum().float().clamp(min=1.0) + + loss_sem = sigmoid_focal_loss_jit( + logits_pred, one_hot, + alpha=self.focal_loss_alpha, + gamma=self.focal_loss_gamma, + reduction="sum", + ) / num_pos + losses['loss_sem'] = loss_sem + + return mask_feats, losses diff --git a/AdelaiDet/adet/modeling/fcos/__init__.py b/AdelaiDet/adet/modeling/fcos/__init__.py new file mode 100755 index 0000000..6571ba1 --- /dev/null +++ b/AdelaiDet/adet/modeling/fcos/__init__.py @@ -0,0 +1 @@ +from .fcos import FCOS diff --git a/AdelaiDet/adet/modeling/fcos/fcos.py b/AdelaiDet/adet/modeling/fcos/fcos.py new file mode 100755 index 0000000..1ee7be8 --- /dev/null +++ b/AdelaiDet/adet/modeling/fcos/fcos.py @@ -0,0 +1,235 @@ +import math +from typing import List, Dict +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec, NaiveSyncBatchNorm +from detectron2.modeling.proposal_generator.build import PROPOSAL_GENERATOR_REGISTRY + +from adet.layers import DFConv2d, NaiveGroupNorm +from adet.utils.comm import compute_locations +from .fcos_outputs import FCOSOutputs + + +__all__ = ["FCOS"] + +INF = 100000000 + + +class Scale(nn.Module): + def __init__(self, init_value=1.0): + super(Scale, self).__init__() + self.scale = nn.Parameter(torch.FloatTensor([init_value])) + + def forward(self, input): + return input * self.scale + + +class ModuleListDial(nn.ModuleList): + def __init__(self, modules=None): + super(ModuleListDial, self).__init__(modules) + self.cur_position = 0 + + def forward(self, x): + result = self[self.cur_position](x) + self.cur_position += 1 + if self.cur_position >= len(self): + self.cur_position = 0 + return result + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class FCOS(nn.Module): + """ + Implement FCOS (https://arxiv.org/abs/1904.01355). + """ + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + self.in_features = cfg.MODEL.FCOS.IN_FEATURES + self.fpn_strides = cfg.MODEL.FCOS.FPN_STRIDES + self.yield_proposal = cfg.MODEL.FCOS.YIELD_PROPOSAL + self.yield_box_feats = cfg.MODEL.FCOS.YIELD_BOX_FEATURES + + self.fcos_head = FCOSHead(cfg, [input_shape[f] for f in self.in_features]) + self.in_channels_to_top_module = self.fcos_head.in_channels_to_top_module + + self.fcos_outputs = FCOSOutputs(cfg) + + def forward_head(self, features, top_module=None): + features = [features[f] for f in self.in_features] + pred_class_logits, pred_deltas, pred_centerness, top_feats, bbox_towers = self.fcos_head( + features, top_module, self.yield_proposal) + return pred_class_logits, pred_deltas, pred_centerness, top_feats, bbox_towers + + def forward(self, images, features, gt_instances=None, top_module=None): + """ + Arguments: + images (list[Tensor] or ImageList): images to be processed + targets (list[BoxList]): ground-truth boxes present in the image (optional) + + Returns: + result (list[BoxList] or dict[Tensor]): the output from the model. + During training, it returns a dict[Tensor] which contains the losses. + During testing, it returns list[BoxList] contains additional fields + like `scores`, `labels` and `mask` (for Mask R-CNN models). + + """ + features = [features[f] for f in self.in_features] + locations = self.compute_locations(features) + logits_pred, reg_pred, ctrness_pred, top_feats, bbox_towers = self.fcos_head( + features, top_module, self.yield_proposal or self.yield_box_feats + ) + + if self.training: + results, losses = self.fcos_outputs.losses( + logits_pred, reg_pred, ctrness_pred, + locations, gt_instances, top_feats + ) + + if self.yield_proposal: + with torch.no_grad(): + results["proposals"] = self.fcos_outputs.predict_proposals( + logits_pred, reg_pred, ctrness_pred, + locations, images.image_sizes, top_feats + ) + if self.yield_box_feats: + results["box_feats"] = { + f: b for f, b in zip(self.in_features, bbox_towers) + } + return results, losses + else: + results = self.fcos_outputs.predict_proposals( + logits_pred, reg_pred, ctrness_pred, + locations, images.image_sizes, top_feats + ) + extras = {} + if self.yield_box_feats: + extras["box_feats"] = { + f: b for f, b in zip(self.in_features, bbox_towers) + } + return results, extras + + def compute_locations(self, features): + locations = [] + for level, feature in enumerate(features): + h, w = feature.size()[-2:] + locations_per_level = compute_locations( + h, w, self.fpn_strides[level], + feature.device + ) + locations.append(locations_per_level) + return locations + + +class FCOSHead(nn.Module): + def __init__(self, cfg, input_shape: List[ShapeSpec]): + """ + Arguments: + in_channels (int): number of channels of the input feature + """ + super().__init__() + # TODO: Implement the sigmoid version first. + self.num_classes = cfg.MODEL.FCOS.NUM_CLASSES + self.fpn_strides = cfg.MODEL.FCOS.FPN_STRIDES + head_configs = {"cls": (cfg.MODEL.FCOS.NUM_CLS_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "bbox": (cfg.MODEL.FCOS.NUM_BOX_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "share": (cfg.MODEL.FCOS.NUM_SHARE_CONVS, + False)} + norm = None if cfg.MODEL.FCOS.NORM == "none" else cfg.MODEL.FCOS.NORM + self.num_levels = len(input_shape) + + in_channels = [s.channels for s in input_shape] + assert len(set(in_channels)) == 1, "Each level must have the same channel!" + in_channels = in_channels[0] + + self.in_channels_to_top_module = in_channels + + for head in head_configs: + tower = [] + num_convs, use_deformable = head_configs[head] + for i in range(num_convs): + if use_deformable and i == num_convs - 1: + conv_func = DFConv2d + else: + conv_func = nn.Conv2d + tower.append(conv_func( + in_channels, in_channels, + kernel_size=3, stride=1, + padding=1, bias=True + )) + if norm == "GN": + tower.append(nn.GroupNorm(32, in_channels)) + elif norm == "NaiveGN": + tower.append(NaiveGroupNorm(32, in_channels)) + elif norm == "BN": + tower.append(ModuleListDial([ + nn.BatchNorm2d(in_channels) for _ in range(self.num_levels) + ])) + elif norm == "SyncBN": + tower.append(ModuleListDial([ + NaiveSyncBatchNorm(in_channels) for _ in range(self.num_levels) + ])) + tower.append(nn.ReLU()) + self.add_module('{}_tower'.format(head), + nn.Sequential(*tower)) + + self.cls_logits = nn.Conv2d( + in_channels, self.num_classes, + kernel_size=3, stride=1, + padding=1 + ) + self.bbox_pred = nn.Conv2d( + in_channels, 4, kernel_size=3, + stride=1, padding=1 + ) + self.ctrness = nn.Conv2d( + in_channels, 1, kernel_size=3, + stride=1, padding=1 + ) + + if cfg.MODEL.FCOS.USE_SCALE: + self.scales = nn.ModuleList([Scale(init_value=1.0) for _ in range(self.num_levels)]) + else: + self.scales = None + + for modules in [ + self.cls_tower, self.bbox_tower, + self.share_tower, self.cls_logits, + self.bbox_pred, self.ctrness + ]: + for l in modules.modules(): + if isinstance(l, nn.Conv2d): + torch.nn.init.normal_(l.weight, std=0.01) + torch.nn.init.constant_(l.bias, 0) + + # initialize the bias for focal loss + prior_prob = cfg.MODEL.FCOS.PRIOR_PROB + bias_value = -math.log((1 - prior_prob) / prior_prob) + torch.nn.init.constant_(self.cls_logits.bias, bias_value) + + def forward(self, x, top_module=None, yield_bbox_towers=False): + logits = [] + bbox_reg = [] + ctrness = [] + top_feats = [] + bbox_towers = [] + for l, feature in enumerate(x): + feature = self.share_tower(feature) + cls_tower = self.cls_tower(feature) + bbox_tower = self.bbox_tower(feature) + if yield_bbox_towers: + bbox_towers.append(bbox_tower) + + logits.append(self.cls_logits(cls_tower)) + ctrness.append(self.ctrness(bbox_tower)) + reg = self.bbox_pred(bbox_tower) + if self.scales is not None: + reg = self.scales[l](reg) + # Note that we use relu, as in the improved FCOS, instead of exp. + bbox_reg.append(F.relu(reg)) + if top_module is not None: + top_feats.append(top_module(bbox_tower)) + return logits, bbox_reg, ctrness, top_feats, bbox_towers diff --git a/AdelaiDet/adet/modeling/fcos/fcos_outputs.py b/AdelaiDet/adet/modeling/fcos/fcos_outputs.py new file mode 100755 index 0000000..b61b8a6 --- /dev/null +++ b/AdelaiDet/adet/modeling/fcos/fcos_outputs.py @@ -0,0 +1,550 @@ +import logging +import torch +from torch import nn +import torch.nn.functional as F + +from detectron2.layers import cat +from detectron2.structures import Instances, Boxes +from detectron2.utils.comm import get_world_size +from fvcore.nn import sigmoid_focal_loss_jit + +from adet.utils.comm import reduce_sum, reduce_mean, compute_ious +from adet.layers import ml_nms, IOULoss + + +logger = logging.getLogger(__name__) + +INF = 100000000 + +""" +Shape shorthand in this module: + + N: number of images in the minibatch + L: number of feature maps per image on which RPN is run + Hi, Wi: height and width of the i-th feature map + 4: size of the box parameterization + +Naming convention: + + labels: refers to the ground-truth class of an position. + + reg_targets: refers to the 4-d (left, top, right, bottom) distances that parameterize the ground-truth box. + + logits_pred: predicted classification scores in [-inf, +inf]; + + reg_pred: the predicted (left, top, right, bottom), corresponding to reg_targets + + ctrness_pred: predicted centerness scores + +""" + + +def compute_ctrness_targets(reg_targets): + if len(reg_targets) == 0: + return reg_targets.new_zeros(len(reg_targets)) + left_right = reg_targets[:, [0, 2]] + top_bottom = reg_targets[:, [1, 3]] + ctrness = (left_right.min(dim=-1)[0] / left_right.max(dim=-1)[0]) * \ + (top_bottom.min(dim=-1)[0] / top_bottom.max(dim=-1)[0]) + return torch.sqrt(ctrness) + + +class FCOSOutputs(nn.Module): + def __init__(self, cfg): + super(FCOSOutputs, self).__init__() + + self.focal_loss_alpha = cfg.MODEL.FCOS.LOSS_ALPHA + self.focal_loss_gamma = cfg.MODEL.FCOS.LOSS_GAMMA + self.center_sample = cfg.MODEL.FCOS.CENTER_SAMPLE + self.radius = cfg.MODEL.FCOS.POS_RADIUS + self.pre_nms_thresh_train = cfg.MODEL.FCOS.INFERENCE_TH_TRAIN + self.pre_nms_topk_train = cfg.MODEL.FCOS.PRE_NMS_TOPK_TRAIN + self.post_nms_topk_train = cfg.MODEL.FCOS.POST_NMS_TOPK_TRAIN + self.loc_loss_func = IOULoss(cfg.MODEL.FCOS.LOC_LOSS_TYPE) + + self.pre_nms_thresh_test = cfg.MODEL.FCOS.INFERENCE_TH_TEST + self.pre_nms_topk_test = cfg.MODEL.FCOS.PRE_NMS_TOPK_TEST + self.post_nms_topk_test = cfg.MODEL.FCOS.POST_NMS_TOPK_TEST + self.nms_thresh = cfg.MODEL.FCOS.NMS_TH + self.thresh_with_ctr = cfg.MODEL.FCOS.THRESH_WITH_CTR + self.box_quality = cfg.MODEL.FCOS.BOX_QUALITY + + self.num_classes = cfg.MODEL.FCOS.NUM_CLASSES + self.strides = cfg.MODEL.FCOS.FPN_STRIDES + + # generate sizes of interest + soi = [] + prev_size = -1 + for s in cfg.MODEL.FCOS.SIZES_OF_INTEREST: + soi.append([prev_size, s]) + prev_size = s + soi.append([prev_size, INF]) + self.sizes_of_interest = soi + + self.loss_normalizer_cls = cfg.MODEL.FCOS.LOSS_NORMALIZER_CLS + assert self.loss_normalizer_cls in ("moving_fg", "fg", "all"), \ + 'MODEL.FCOS.CLS_LOSS_NORMALIZER can only be "moving_fg", "fg", or "all"' + + # For an explanation, please refer to + # https://github.com/facebookresearch/detectron2/blob/ea8b17914fc9a5b7d82a46ccc72e7cf6272b40e4/detectron2/modeling/meta_arch/retinanet.py#L148 + self.moving_num_fg = 100 # initialize with any reasonable #fg that's not too small + self.moving_num_fg_momentum = 0.9 + + self.loss_weight_cls = cfg.MODEL.FCOS.LOSS_WEIGHT_CLS + + def _transpose(self, training_targets, num_loc_list): + ''' + This function is used to transpose image first training targets to level first ones + :return: level first training targets + ''' + for im_i in range(len(training_targets)): + training_targets[im_i] = torch.split( + training_targets[im_i], num_loc_list, dim=0 + ) + + targets_level_first = [] + for targets_per_level in zip(*training_targets): + targets_level_first.append( + torch.cat(targets_per_level, dim=0) + ) + return targets_level_first + + def _get_ground_truth(self, locations, gt_instances): + num_loc_list = [len(loc) for loc in locations] + + # compute locations to size ranges + loc_to_size_range = [] + for l, loc_per_level in enumerate(locations): + loc_to_size_range_per_level = loc_per_level.new_tensor(self.sizes_of_interest[l]) + loc_to_size_range.append( + loc_to_size_range_per_level[None].expand(num_loc_list[l], -1) + ) + + loc_to_size_range = torch.cat(loc_to_size_range, dim=0) + locations = torch.cat(locations, dim=0) + + training_targets = self.compute_targets_for_locations( + locations, gt_instances, loc_to_size_range, num_loc_list + ) + + training_targets["locations"] = [locations.clone() for _ in range(len(gt_instances))] + training_targets["im_inds"] = [ + locations.new_ones(locations.size(0), dtype=torch.long) * i for i in range(len(gt_instances)) + ] + + # transpose im first training_targets to level first ones + training_targets = { + k: self._transpose(v, num_loc_list) for k, v in training_targets.items() + } + + training_targets["fpn_levels"] = [ + loc.new_ones(len(loc), dtype=torch.long) * level + for level, loc in enumerate(training_targets["locations"]) + ] + + # we normalize reg_targets by FPN's strides here + reg_targets = training_targets["reg_targets"] + for l in range(len(reg_targets)): + reg_targets[l] = reg_targets[l] / float(self.strides[l]) + + return training_targets + + def get_sample_region(self, boxes, strides, num_loc_list, loc_xs, loc_ys, bitmasks=None, radius=1): + if bitmasks is not None: + _, h, w = bitmasks.size() + + ys = torch.arange(0, h, dtype=torch.float32, device=bitmasks.device) + xs = torch.arange(0, w, dtype=torch.float32, device=bitmasks.device) + + m00 = bitmasks.sum(dim=-1).sum(dim=-1).clamp(min=1e-6) + m10 = (bitmasks * xs).sum(dim=-1).sum(dim=-1) + m01 = (bitmasks * ys[:, None]).sum(dim=-1).sum(dim=-1) + center_x = m10 / m00 + center_y = m01 / m00 + else: + center_x = boxes[..., [0, 2]].sum(dim=-1) * 0.5 + center_y = boxes[..., [1, 3]].sum(dim=-1) * 0.5 + + num_gts = boxes.shape[0] + K = len(loc_xs) + boxes = boxes[None].expand(K, num_gts, 4) + center_x = center_x[None].expand(K, num_gts) + center_y = center_y[None].expand(K, num_gts) + center_gt = boxes.new_zeros(boxes.shape) + # no gt + if center_x.numel() == 0 or center_x[..., 0].sum() == 0: + return loc_xs.new_zeros(loc_xs.shape, dtype=torch.uint8) + beg = 0 + for level, num_loc in enumerate(num_loc_list): + end = beg + num_loc + stride = strides[level] * radius + xmin = center_x[beg:end] - stride + ymin = center_y[beg:end] - stride + xmax = center_x[beg:end] + stride + ymax = center_y[beg:end] + stride + # limit sample region in gt + center_gt[beg:end, :, 0] = torch.where(xmin > boxes[beg:end, :, 0], xmin, boxes[beg:end, :, 0]) + center_gt[beg:end, :, 1] = torch.where(ymin > boxes[beg:end, :, 1], ymin, boxes[beg:end, :, 1]) + center_gt[beg:end, :, 2] = torch.where(xmax > boxes[beg:end, :, 2], boxes[beg:end, :, 2], xmax) + center_gt[beg:end, :, 3] = torch.where(ymax > boxes[beg:end, :, 3], boxes[beg:end, :, 3], ymax) + beg = end + left = loc_xs[:, None] - center_gt[..., 0] + right = center_gt[..., 2] - loc_xs[:, None] + top = loc_ys[:, None] - center_gt[..., 1] + bottom = center_gt[..., 3] - loc_ys[:, None] + center_bbox = torch.stack((left, top, right, bottom), -1) + inside_gt_bbox_mask = center_bbox.min(-1)[0] > 0 + return inside_gt_bbox_mask + + def compute_targets_for_locations(self, locations, targets, size_ranges, num_loc_list): + labels = [] + reg_targets = [] + target_inds = [] + xs, ys = locations[:, 0], locations[:, 1] + + num_targets = 0 + for im_i in range(len(targets)): + targets_per_im = targets[im_i] + bboxes = targets_per_im.gt_boxes.tensor + labels_per_im = targets_per_im.gt_classes + + # no gt + if bboxes.numel() == 0: + labels.append(labels_per_im.new_zeros(locations.size(0)) + self.num_classes) + reg_targets.append(locations.new_zeros((locations.size(0), 4))) + target_inds.append(labels_per_im.new_zeros(locations.size(0)) - 1) + continue + + area = targets_per_im.gt_boxes.area() + + l = xs[:, None] - bboxes[:, 0][None] + t = ys[:, None] - bboxes[:, 1][None] + r = bboxes[:, 2][None] - xs[:, None] + b = bboxes[:, 3][None] - ys[:, None] + reg_targets_per_im = torch.stack([l, t, r, b], dim=2) + + if self.center_sample: + if targets_per_im.has("gt_bitmasks_full"): + bitmasks = targets_per_im.gt_bitmasks_full + else: + bitmasks = None + is_in_boxes = self.get_sample_region( + bboxes, self.strides, num_loc_list, xs, ys, + bitmasks=bitmasks, radius=self.radius + ) + else: + is_in_boxes = reg_targets_per_im.min(dim=2)[0] > 0 + + max_reg_targets_per_im = reg_targets_per_im.max(dim=2)[0] + # limit the regression range for each location + is_cared_in_the_level = \ + (max_reg_targets_per_im >= size_ranges[:, [0]]) & \ + (max_reg_targets_per_im <= size_ranges[:, [1]]) + + locations_to_gt_area = area[None].repeat(len(locations), 1) + locations_to_gt_area[is_in_boxes == 0] = INF + locations_to_gt_area[is_cared_in_the_level == 0] = INF + + # if there are still more than one objects for a location, + # we choose the one with minimal area + locations_to_min_area, locations_to_gt_inds = locations_to_gt_area.min(dim=1) + + reg_targets_per_im = reg_targets_per_im[range(len(locations)), locations_to_gt_inds] + target_inds_per_im = locations_to_gt_inds + num_targets + num_targets += len(targets_per_im) + + labels_per_im = labels_per_im[locations_to_gt_inds] + labels_per_im[locations_to_min_area == INF] = self.num_classes + + labels.append(labels_per_im) + reg_targets.append(reg_targets_per_im) + target_inds.append(target_inds_per_im) + + return { + "labels": labels, + "reg_targets": reg_targets, + "target_inds": target_inds + } + + def losses(self, logits_pred, reg_pred, ctrness_pred, locations, gt_instances, top_feats=None): + """ + Return the losses from a set of FCOS predictions and their associated ground-truth. + + Returns: + dict[loss name -> loss value]: A dict mapping from loss name to loss value. + """ + + training_targets = self._get_ground_truth(locations, gt_instances) + + # Collect all logits and regression predictions over feature maps + # and images to arrive at the same shape as the labels and targets + # The final ordering is L, N, H, W from slowest to fastest axis. + + instances = Instances((0, 0)) + instances.labels = cat([ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.reshape(-1) for x in training_targets["labels"] + ], dim=0) + instances.gt_inds = cat([ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.reshape(-1) for x in training_targets["target_inds"] + ], dim=0) + instances.im_inds = cat([ + x.reshape(-1) for x in training_targets["im_inds"] + ], dim=0) + instances.reg_targets = cat([ + # Reshape: (N, Hi, Wi, 4) -> (N*Hi*Wi, 4) + x.reshape(-1, 4) for x in training_targets["reg_targets"] + ], dim=0,) + instances.locations = cat([ + x.reshape(-1, 2) for x in training_targets["locations"] + ], dim=0) + instances.fpn_levels = cat([ + x.reshape(-1) for x in training_targets["fpn_levels"] + ], dim=0) + + instances.logits_pred = cat([ + # Reshape: (N, C, Hi, Wi) -> (N, Hi, Wi, C) -> (N*Hi*Wi, C) + x.permute(0, 2, 3, 1).reshape(-1, self.num_classes) for x in logits_pred + ], dim=0,) + instances.reg_pred = cat([ + # Reshape: (N, B, Hi, Wi) -> (N, Hi, Wi, B) -> (N*Hi*Wi, B) + x.permute(0, 2, 3, 1).reshape(-1, 4) for x in reg_pred + ], dim=0,) + instances.ctrness_pred = cat([ + # Reshape: (N, 1, Hi, Wi) -> (N*Hi*Wi,) + x.permute(0, 2, 3, 1).reshape(-1) for x in ctrness_pred + ], dim=0,) + + if len(top_feats) > 0: + instances.top_feats = cat([ + # Reshape: (N, -1, Hi, Wi) -> (N*Hi*Wi, -1) + x.permute(0, 2, 3, 1).reshape(-1, x.size(1)) for x in top_feats + ], dim=0,) + + return self.fcos_losses(instances) + + def fcos_losses(self, instances): + losses, extras = {}, {} + + # 1. compute the cls loss + num_classes = instances.logits_pred.size(1) + assert num_classes == self.num_classes + + labels = instances.labels.flatten() + + pos_inds = torch.nonzero(labels != num_classes).squeeze(1) + + num_pos_local = torch.ones_like(pos_inds).sum() + num_pos_avg = max(reduce_mean(num_pos_local).item(), 1.0) + + # prepare one_hot + class_target = torch.zeros_like(instances.logits_pred) + class_target[pos_inds, labels[pos_inds]] = 1 + + class_loss = sigmoid_focal_loss_jit( + instances.logits_pred, + class_target, + alpha=self.focal_loss_alpha, + gamma=self.focal_loss_gamma, + reduction="sum" + ) + + if self.loss_normalizer_cls == "moving_fg": + self.moving_num_fg = self.moving_num_fg_momentum * self.moving_num_fg + ( + 1 - self.moving_num_fg_momentum + ) * num_pos_avg + class_loss = class_loss / self.moving_num_fg + elif self.loss_normalizer_cls == "fg": + class_loss = class_loss / num_pos_avg + else: + num_samples_local = torch.ones_like(labels).sum() + num_samples_avg = max(reduce_mean(num_samples_local).item(), 1.0) + class_loss = class_loss / num_samples_avg + + losses["loss_fcos_cls"] = class_loss * self.loss_weight_cls + + # 2. compute the box regression and quality loss + instances = instances[pos_inds] + instances.pos_inds = pos_inds + + ious, gious = compute_ious(instances.reg_pred, instances.reg_targets) + + if self.box_quality == "ctrness": + ctrness_targets = compute_ctrness_targets(instances.reg_targets) + instances.gt_ctrs = ctrness_targets + + ctrness_targets_sum = ctrness_targets.sum() + loss_denorm = max(reduce_mean(ctrness_targets_sum).item(), 1e-6) + extras["loss_denorm"] = loss_denorm + + reg_loss = self.loc_loss_func(ious, gious, ctrness_targets) / loss_denorm + losses["loss_fcos_loc"] = reg_loss + + ctrness_loss = F.binary_cross_entropy_with_logits( + instances.ctrness_pred, ctrness_targets, + reduction="sum" + ) / num_pos_avg + losses["loss_fcos_ctr"] = ctrness_loss + elif self.box_quality == "iou": + reg_loss = self.loc_loss_func(ious, gious) / num_pos_avg + losses["loss_fcos_loc"] = reg_loss + + quality_loss = F.binary_cross_entropy_with_logits( + instances.ctrness_pred, ious.detach(), + reduction="sum" + ) / num_pos_avg + losses["loss_fcos_iou"] = quality_loss + else: + raise NotImplementedError + + extras["instances"] = instances + + return extras, losses + + def predict_proposals( + self, logits_pred, reg_pred, ctrness_pred, + locations, image_sizes, top_feats=None + ): + if self.training: + self.pre_nms_thresh = self.pre_nms_thresh_train + self.pre_nms_topk = self.pre_nms_topk_train + self.post_nms_topk = self.post_nms_topk_train + else: + self.pre_nms_thresh = self.pre_nms_thresh_test + self.pre_nms_topk = self.pre_nms_topk_test + self.post_nms_topk = self.post_nms_topk_test + + sampled_boxes = [] + + bundle = { + "l": locations, "o": logits_pred, + "r": reg_pred, "c": ctrness_pred, + "s": self.strides, + } + + if len(top_feats) > 0: + bundle["t"] = top_feats + + for i, per_bundle in enumerate(zip(*bundle.values())): + # get per-level bundle + per_bundle = dict(zip(bundle.keys(), per_bundle)) + # recall that during training, we normalize regression targets with FPN's stride. + # we denormalize them here. + l = per_bundle["l"] + o = per_bundle["o"] + r = per_bundle["r"] * per_bundle["s"] + c = per_bundle["c"] + t = per_bundle["t"] if "t" in bundle else None + + sampled_boxes.append( + self.forward_for_single_feature_map( + l, o, r, c, image_sizes, t + ) + ) + + for per_im_sampled_boxes in sampled_boxes[-1]: + per_im_sampled_boxes.fpn_levels = l.new_ones( + len(per_im_sampled_boxes), dtype=torch.long + ) * i + + boxlists = list(zip(*sampled_boxes)) + boxlists = [Instances.cat(boxlist) for boxlist in boxlists] + boxlists = self.select_over_all_levels(boxlists) + + return boxlists + + def forward_for_single_feature_map( + self, locations, logits_pred, reg_pred, + ctrness_pred, image_sizes, top_feat=None + ): + N, C, H, W = logits_pred.shape + + # put in the same format as locations + logits_pred = logits_pred.view(N, C, H, W).permute(0, 2, 3, 1) + logits_pred = logits_pred.reshape(N, -1, C).sigmoid() + box_regression = reg_pred.view(N, 4, H, W).permute(0, 2, 3, 1) + box_regression = box_regression.reshape(N, -1, 4) + ctrness_pred = ctrness_pred.view(N, 1, H, W).permute(0, 2, 3, 1) + ctrness_pred = ctrness_pred.reshape(N, -1).sigmoid() + if top_feat is not None: + top_feat = top_feat.view(N, -1, H, W).permute(0, 2, 3, 1) + top_feat = top_feat.reshape(N, H * W, -1) + + # if self.thresh_with_ctr is True, we multiply the classification + # scores with centerness scores before applying the threshold. + if self.thresh_with_ctr: + logits_pred = logits_pred * ctrness_pred[:, :, None] + candidate_inds = logits_pred > self.pre_nms_thresh + pre_nms_top_n = candidate_inds.reshape(N, -1).sum(1) + pre_nms_top_n = pre_nms_top_n.clamp(max=self.pre_nms_topk) + + if not self.thresh_with_ctr: + logits_pred = logits_pred * ctrness_pred[:, :, None] + + results = [] + for i in range(N): + per_box_cls = logits_pred[i] + per_candidate_inds = candidate_inds[i] + per_box_cls = per_box_cls[per_candidate_inds] + + per_candidate_nonzeros = per_candidate_inds.nonzero() + per_box_loc = per_candidate_nonzeros[:, 0] + per_class = per_candidate_nonzeros[:, 1] + + per_box_regression = box_regression[i] + per_box_regression = per_box_regression[per_box_loc] + per_locations = locations[per_box_loc] + if top_feat is not None: + per_top_feat = top_feat[i] + per_top_feat = per_top_feat[per_box_loc] + + per_pre_nms_top_n = pre_nms_top_n[i] + + if per_candidate_inds.sum().item() > per_pre_nms_top_n.item(): + per_box_cls, top_k_indices = \ + per_box_cls.topk(per_pre_nms_top_n, sorted=False) + per_class = per_class[top_k_indices] + per_box_regression = per_box_regression[top_k_indices] + per_locations = per_locations[top_k_indices] + if top_feat is not None: + per_top_feat = per_top_feat[top_k_indices] + + detections = torch.stack([ + per_locations[:, 0] - per_box_regression[:, 0], + per_locations[:, 1] - per_box_regression[:, 1], + per_locations[:, 0] + per_box_regression[:, 2], + per_locations[:, 1] + per_box_regression[:, 3], + ], dim=1) + + boxlist = Instances(image_sizes[i]) + boxlist.pred_boxes = Boxes(detections) + boxlist.scores = torch.sqrt(per_box_cls) + boxlist.pred_classes = per_class + boxlist.locations = per_locations + if top_feat is not None: + boxlist.top_feat = per_top_feat + results.append(boxlist) + + return results + + def select_over_all_levels(self, boxlists): + num_images = len(boxlists) + results = [] + for i in range(num_images): + # multiclass nms + result = ml_nms(boxlists[i], self.nms_thresh) + number_of_detections = len(result) + + # Limit to max_per_image detections **over all classes** + if number_of_detections > self.post_nms_topk > 0: + cls_scores = result.scores + image_thresh, _ = torch.kthvalue( + cls_scores.cpu(), + number_of_detections - self.post_nms_topk + 1 + ) + keep = cls_scores >= image_thresh.item() + keep = torch.nonzero(keep).squeeze(1) + result = result[keep] + results.append(result) + return results diff --git a/AdelaiDet/adet/modeling/fcpose/__init__.py b/AdelaiDet/adet/modeling/fcpose/__init__.py new file mode 100755 index 0000000..de917fe --- /dev/null +++ b/AdelaiDet/adet/modeling/fcpose/__init__.py @@ -0,0 +1 @@ +from .fcpose_framework import FCPose diff --git a/AdelaiDet/adet/modeling/fcpose/basis_module.py b/AdelaiDet/adet/modeling/fcpose/basis_module.py new file mode 100755 index 0000000..1545648 --- /dev/null +++ b/AdelaiDet/adet/modeling/fcpose/basis_module.py @@ -0,0 +1,120 @@ +from typing import Dict +from torch import nn +from torch.nn import functional as F +import torch + +from detectron2.layers import ShapeSpec +from .utils import aligned_bilinear, compute_loss + +from adet.layers import conv_with_kaiming_uniform +from detectron2.structures import ImageList +from fvcore.nn import sigmoid_focal_loss_jit +from detectron2.utils.comm import get_world_size +from adet.utils.comm import reduce_sum +import math +from detectron2.layers import ConvTranspose2d +from detectron2.layers.batch_norm import get_norm + + +class basis_module(nn.Module): + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + """ + TODO: support deconv and variable channel width + """ + # official protonet has a relu after each conv + super().__init__() + # fmt: off + mask_dim = cfg.MODEL.FCPOSE.BASIS_MODULE.NUM_BASES + planes = cfg.MODEL.FCPOSE.BASIS_MODULE.CONVS_DIM + self.device = torch.device(cfg.MODEL.DEVICE) + self.in_features = ["p3", "p4", "p5"] + self.loss_on = True + norm = cfg.MODEL.FCPOSE.BASIS_MODULE.BN_TYPE #"SyncBN" + num_convs = 3 + self.visualize = False + # fmt: on + + feature_channels = {k: v.channels for k, v in input_shape.items()} + + conv_block = conv_with_kaiming_uniform(norm, True) # conv relu bn + self.refine = nn.ModuleList() + for in_feature in self.in_features: + self.refine.append(conv_block( + feature_channels[in_feature], planes, 3, 1)) + tower = [] + for i in range(num_convs): + tower.append( + conv_block(planes, planes, 3, 1)) + tower.append( + conv_block(planes, planes, 3, 1)) + tower.append( + nn.Conv2d(planes, mask_dim+(2*17), 1)) + self.add_module('tower', nn.Sequential(*tower)) + + if self.loss_on: + # fmt: off + self.common_stride = cfg.MODEL.FCPOSE.BASIS_MODULE.COMMON_STRIDE + self.num_classes = cfg.MODEL.FCPOSE.BASIS_MODULE.NUM_CLASSES + self.heatmap_loss_weight = cfg.MODEL.FCPOSE.BASIS_MODULE.LOSS_WEIGHT + # self.focal_loss_alpha = cfg.MODEL.FCPOSE.BASIS_MODULE.FOCAL_LOSS_ALPHA + # self.focal_loss_gamma = cfg.MODEL.FCPOSE.BASIS_MODULE.FOCAL_LOSS_GAMMA + + # fmt: on + + inplanes = feature_channels[self.in_features[0]] + self.seg_head = nn.Sequential(conv_block(planes, planes, 3,1), + conv_block(planes, planes, 3,1),) + self.p3_logits = nn.Conv2d(planes, self.num_classes, kernel_size=1, + stride=1) + self.upsampler = nn.Sequential( + ConvTranspose2d(planes+self.num_classes, planes, 8, stride=4, padding=6 // 2 - 1), + # get_norm(norm, planes), + nn.ReLU(), + # conv_block(planes, planes, 3,1), + ) + self.p1_logits = nn.Conv2d(planes, self.num_classes, kernel_size=3, + stride=1, padding=1) + + prior_prob = cfg.MODEL.FCOS.PRIOR_PROB + bias_value = -math.log((1 - prior_prob) / prior_prob) + torch.nn.init.constant_(self.p3_logits.bias, 0.0) + torch.nn.init.normal_(self.p3_logits.weight, std=0.0001) + torch.nn.init.constant_(self.p1_logits.bias, 0.0) + torch.nn.init.normal_(self.p1_logits.weight, std=0.0001) + # torch.nn.init.constant_(self.upsampler[0].bias, 0.0) + # torch.nn.init.normal_(self.upsampler[0].weight, std=0.001) + # torch.nn.init.constant_(self.upsampler[1].bias, 0.0) + # torch.nn.init.constant_(self.upsampler[1].weight, 1.0) + # torch.nn.init.normal_(self.upsampler[3][0].weight, std=0.0001) + + def forward(self, features, p1_heatmap_list=None, p3_heatmap_list=None): + for i, f in enumerate(self.in_features): + if i == 0: + x = self.refine[i](features[f]) + else: + x_p = self.refine[i](features[f]) + target_h, target_w = x.size()[2:] + h, w = x_p.size()[2:] + assert target_h % h == 0 + assert target_w % w == 0 + factor_h, factor_w = target_h // h, target_w // w + assert factor_h == factor_w + x_p = aligned_bilinear(x_p, factor_h) + x = x + x_p + outputs = {"bases": [self.tower(x)]} + losses = {} + # auxiliary thing semantic loss + x = self.seg_head(x) + p3_logits = self.p3_logits(x) + outputs['basis_seg'] = p3_logits + if self.training and self.loss_on: + x = torch.cat([x, p3_logits], dim = 1) + x = self.upsampler(x) + p1_logits = self.p1_logits(x) + p1_loss,p3_loss = compute_loss(p1_heatmap_list, p3_heatmap_list, p1_logits, p3_logits) + losses['p1_loss'] = p1_loss * self.heatmap_loss_weight + losses['p3_loss'] = p3_loss * self.heatmap_loss_weight + return outputs, losses + + + diff --git a/AdelaiDet/adet/modeling/fcpose/fcpose_framework.py b/AdelaiDet/adet/modeling/fcpose/fcpose_framework.py new file mode 100755 index 0000000..dfe0a6e --- /dev/null +++ b/AdelaiDet/adet/modeling/fcpose/fcpose_framework.py @@ -0,0 +1,59 @@ +import math +from typing import List, Dict +import torch +from torch import nn +from torch.nn import functional as F +from detectron2.modeling.proposal_generator.build import PROPOSAL_GENERATOR_REGISTRY +from detectron2.layers import ShapeSpec, NaiveSyncBatchNorm +from adet.modeling.fcos import FCOS +from .basis_module import basis_module +from .fcpose_head import fcpose_head_module +from .utils import compute_basis_stride, top_module, process_gt_instances + + + +__all__ = ["FCPose"] + + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class FCPose(nn.Module): + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + self.fcos = FCOS(cfg, input_shape) + self.top_module = top_module(256, cfg.MODEL.FCPOSE.ATTN_LEN) + + self.basis_module = basis_module(cfg,input_shape) + + self.fcpose_head = fcpose_head_module(cfg) + + self.gt_stride = cfg.MODEL.FCPOSE.GT_HEATMAP_STRIDE + self.device = cfg.MODEL.DEVICE + + def forward(self, images, features, gt_instances=None): + if gt_instances is not None: + basis_gt_heatmap, head_gt_heatmap,p3_heatmap_list = process_gt_instances(gt_instances, self.gt_stride, self.device) + else: + basis_gt_heatmap, head_gt_heatmap,p3_heatmap_list = None, None, None + + proposals, proposal_losses = self.fcos(images, features, gt_instances, self.top_module) + + + basis_out, basis_losses = self.basis_module(features, basis_gt_heatmap, p3_heatmap_list) + del features, basis_gt_heatmap, p3_heatmap_list + + + # base_stride = compute_basis_stride(images, basis_out) + detector_results, detector_losses = self.fcpose_head( + basis_out["bases"], proposals, + head_gt_heatmap, gt_instances, basis_out["basis_seg"] + ) + + losses = {} + if self.training: + losses.update(proposal_losses) + losses.update(basis_losses) + losses.update(detector_losses) + + + return detector_results, losses \ No newline at end of file diff --git a/AdelaiDet/adet/modeling/fcpose/fcpose_head.py b/AdelaiDet/adet/modeling/fcpose/fcpose_head.py new file mode 100755 index 0000000..6382070 --- /dev/null +++ b/AdelaiDet/adet/modeling/fcpose/fcpose_head.py @@ -0,0 +1,289 @@ +import torch +from torch.nn import functional as F +from torch import nn + +from detectron2.layers import cat +from detectron2.modeling.poolers import ROIPooler +from .utils import aligned_bilinear, compute_loss, compute_loss_softmax +from fvcore.nn import sigmoid_focal_loss_jit +from adet.utils.comm import reduce_sum +from detectron2.utils.comm import get_world_size +from detectron2.layers import ConvTranspose2d +from detectron2.structures.instances import Instances + +import logging + + +logger = logging.getLogger("detectron2.blender") + + +def build_blender(cfg): + return Blender(cfg) + + +def compute_locations_per_level(h, w, stride, device): + shifts_x = torch.arange( + 0, w * stride, step=stride, + dtype=torch.float32, device=device + ) + shifts_y = torch.arange( + 0, h * stride, step=stride, + dtype=torch.float32, device=device + ) + shift_y, shift_x = torch.meshgrid(shifts_y, shifts_x) + shift_x = shift_x.reshape(-1) + shift_y = shift_y.reshape(-1) + locations = torch.stack((shift_x, shift_y), dim=1) + stride // 2 + return locations + + +def dice_coefficient(x, target): + eps = 1e-5 + n_inst = x.size(0) + x = x.reshape(n_inst, -1) + target = target.reshape(n_inst, -1) + intersection = (x * target).sum(dim=1) + union = (x ** 2.0).sum(dim=1) + (target ** 2.0).sum(dim=1) + eps + loss = 1. - (2 * intersection / union) + return loss + + +def get_subnetworks_params(attns, num_bases, channels): + assert attns.dim() == 2 + n_inst = attns.size(0) + + w0, b0, w1, b1, w2, b2 = torch.split_with_sizes(attns, [ + (2 + num_bases) * channels, channels, + channels * channels, channels, + channels * 17, 17 + ], dim=1) + + # out_channels x in_channels x 1 x 1 + w0 = w0.reshape(n_inst * channels, 2 + num_bases, 1, 1) + b0 = b0.reshape(n_inst * channels) + w1 = w1.reshape(n_inst * channels, channels, 1, 1) + b1 = b1.reshape(n_inst * channels) + w2 = w2.reshape(n_inst * 17, channels, 1, 1) + b2 = b2.reshape(n_inst*17) + + return [w0, w1, w2], [b0, b1, b2] + + +def subnetworks_forward(inputs, weights, biases, n_subnets): + ''' + :param inputs: a list of inputs + :param weights: [w0, w1, ...] + :param bias: [b0, b1, ...] + :return: + ''' + assert inputs.dim() == 4 + n_layer = len(weights) + x = inputs + for i, (w, b) in enumerate(zip(weights, biases)): + x = F.conv2d( + x, w, bias=b, + stride=1, padding=0, + groups=n_subnets + ) + if i < n_layer - 1: + x = F.relu(x) + return x + + +class fcpose_head_module(nn.Module): + def __init__(self, cfg): + super(fcpose_head_module, self).__init__() + # fmt: off + + self.attn_len = cfg.MODEL.FCPOSE.ATTN_LEN + self.dynamic_channels = cfg.MODEL.FCPOSE.DYNAMIC_CHANNELS + self.max_proposals_per_im = cfg.MODEL.FCPOSE.MAX_PROPOSALS + self.loss_weight_keypoint = cfg.MODEL.FCPOSE.LOSS_WEIGHT_KEYPOINT + self.distance_norm = cfg.MODEL.FCPOSE.DISTANCE_NORM + self.sizes_of_interest = nn.Parameter(torch.tensor( + cfg.MODEL.FCOS.SIZES_OF_INTEREST + [cfg.INPUT.MAX_SIZE_TRAIN] + ), requires_grad=False) + self.device = cfg.MODEL.DEVICE + self.focal_loss_alpha = cfg.MODEL.FCPOSE.FOCAL_LOSS_ALPHA + self.focal_loss_gamma = cfg.MODEL.FCPOSE.FOCAL_LOSS_GAMMA + self.atten_producer = nn.Linear(256*9, self.attn_len) + self.upsampler = nn.Upsample(scale_factor = 4, mode = 'bilinear') + self.loss_weight_direction = cfg.MODEL.FCPOSE.LOSS_WEIGHT_DIRECTION + self.mask_dim = cfg.MODEL.FCPOSE.BASIS_MODULE.NUM_BASES + # fmt: on + + def select_pred_inst(self, proposals): + pred_instances = proposals["instances"] + N = len(pred_instances.image_size) + try: + num_instance = pred_instances.gt_inds.max() + 1 + except: #TODO fix this bug + print('error') + print(pred_instances) + num_instance = 0 + max_num_instances_per_gt = self.max_proposals_per_im // num_instance + max_num_instances_per_gt = max(max_num_instances_per_gt,1) + + kept_instances = [] + num_loss = [] + for im_id in range(N): + instances_per_im = pred_instances[pred_instances.im_inds == im_id] + if len(instances_per_im) == 0: + continue + + unique_gt_inds = instances_per_im.gt_inds.unique() + + for gt_ind in unique_gt_inds: + instances_per_gt = instances_per_im[instances_per_im.gt_inds == gt_ind] + + if len(instances_per_gt) > max_num_instances_per_gt: + scores = instances_per_gt.logits_pred.sigmoid().max(dim=1)[0] + ctrness_pred = instances_per_gt.ctrness_pred.sigmoid() + inds = (scores * ctrness_pred).topk(k=max_num_instances_per_gt, dim=0)[1] + instances_per_gt = instances_per_gt[inds] + num_loss_per_inst = unique_gt_inds.new_full([max_num_instances_per_gt], max_num_instances_per_gt) + else: + num_loss_per_inst = unique_gt_inds.new_full([len(instances_per_gt)], len(instances_per_gt)) + + + kept_instances.append(instances_per_gt) + num_loss.append(num_loss_per_inst) + + pred_instances = Instances.cat(kept_instances) + num_loss = torch.cat(num_loss,dim=0) + # del kept_instances, proposals + + # pred_instances.mask_head_params = pred_instances.top_feats + attns = pred_instances.top_feats + im_inds = pred_instances.im_inds + locations = pred_instances.locations + levels = pred_instances.fpn_levels + gt_inds = pred_instances.gt_inds + + return attns, im_inds, locations, levels, gt_inds, num_instance, num_loss + + def forward(self, bases, proposals, head_gt_heatmap, gt_instances, basis_seg, base_stride = 8): + bases = bases[0] + bases, direction = torch.split_with_sizes(bases, [self.mask_dim,34], dim=1) + base_locations = compute_locations_per_level( + bases.size(2), bases.size(3), + stride=base_stride, device=bases.device + ) + + N,num_bases,H,W = bases.shape + direction_locations = base_locations.reshape(H,W,2) + direction_locations = direction_locations.permute(2,0,1)[None].repeat(N,17,1,1) # N, 17*2, H ,W + direction = direction + direction_locations + + if self.training: + + attns, im_inds, locations, levels, gt_inds, num_instance, num_loss = \ + self.select_pred_inst(proposals) + + gt_keypoint = [] + gt_box = [] + for per_keypoint in gt_instances: + gt_keypoint.append(per_keypoint.gt_keypoints.tensor) + gt_box.append(per_keypoint.gt_boxes.tensor) + gt_keypoint = torch.cat(gt_keypoint,dim=0)[gt_inds] + gt_box = torch.cat(gt_box,dim=0)[gt_inds] + gt_bitmasks = head_gt_heatmap[gt_inds] + direction = direction[im_inds] + max_ranges = self.sizes_of_interest[levels.long()] + + n_inst = attns.size(0) + + + assert not torch.isnan(locations).any() + assert not torch.isnan(base_locations).any() + assert not torch.isnan(bases).any() + offsets = locations.reshape(-1, 1, 2) - base_locations.reshape(1, -1, 2) + offsets = offsets.permute(0, 2, 1).float() / max_ranges.reshape(-1, 1, 1).float() + offsets = torch.cat([offsets, bases[im_inds].reshape(n_inst, num_bases, -1)], dim=1) + offsets = offsets.reshape(1, -1, H, W) + + assert not torch.isnan(attns).any() + attns = self.atten_producer(attns) + weights, biases = get_subnetworks_params(attns, num_bases, self.dynamic_channels) + for weight, biase in zip(weights,biases): + assert not torch.isnan(weight).any() + assert not torch.isnan(biase).any() + assert not torch.isnan(offsets).any() + + mask_logits = subnetworks_forward(offsets, weights, biases, n_inst).squeeze() + + mask_logits = mask_logits.reshape(-1, 17, H, W) + larger_mask_logits = self.upsampler(mask_logits) + assert not torch.isnan(larger_mask_logits).any() + + assert not torch.isnan(mask_logits).any() + mask_logits = mask_logits.flatten(start_dim=2).softmax(dim=2).reshape(-1, 17, H, W) + direction = direction[:,:,:,:,None].permute(0,2,3,4,1).reshape(n_inst,H,W,17,2) + mask_logits = mask_logits.permute(0,2,3,1)[:,:,:,:,None] + + del weights, biases + + + gt_box_x = gt_box[:,2] - gt_box[:,0] + gt_box_y = gt_box[:,3] - gt_box[:,1] + max_ranges = (gt_box_x + gt_box_y) / 2 + keypoint_loss, direction_loss = \ + compute_loss_softmax(gt_bitmasks, larger_mask_logits, + num_loss, num_instance, direction, mask_logits, gt_keypoint, + max_ranges, self.distance_norm) + + + return None, {"loss_keypoint": keypoint_loss * self.loss_weight_keypoint, + "loss_direction": direction_loss * self.loss_weight_direction} + else: + # no proposals + total_instances = sum([len(x) for x in proposals]) + if total_instances == 0: + # add empty pred_masks results + for box in proposals: + box.pred_keypoints = box.pred_classes.new_full((0,17,3),0).float() + return proposals, {} + + N, num_bases, H, W = bases.size() + for im_i in range(len(proposals)): + per_attns = proposals[im_i].top_feat + n_inst = per_attns.size(0) + + per_locations = proposals[im_i].locations + max_ranges = self.sizes_of_interest[proposals[im_i].fpn_levels.long()] + + offsets = per_locations.reshape(-1, 1, 2) - base_locations.reshape(1, -1, 2) + offsets = offsets.permute(0, 2, 1).float() / max_ranges.reshape(-1, 1, 1).float() + # offsets = offsets.tanh() + offsets = torch.cat([offsets, bases[im_i].reshape(1, num_bases, -1).expand(n_inst, -1, -1)], dim=1) + offsets = offsets.reshape(1, -1, H, W) + + attns = self.atten_producer(per_attns) + weights, biases = get_subnetworks_params(attns, num_bases, self.dynamic_channels) + pred_mask_logits = subnetworks_forward(offsets, weights, biases, n_inst) + + pred_mask_logits = pred_mask_logits.reshape(-1, 17, H, W) + # pred_mask_logits = pred_mask_logits.flatten(start_dim=2).softmax(dim=2).reshape(-1, 17, H, W) + direction = direction.repeat(n_inst,1,1,1) + direction = direction[:,:,:,:,None].permute(0,2,3,4,1).reshape(n_inst,H,W,17,2) + pred_mask_logits = pred_mask_logits.permute(0,2,3,1)[:,:,:,:,None] + + pred_mask_logits = pred_mask_logits.reshape(n_inst,H*W,17).permute(0,2,1)#.sigmoid() + pred_mask_logits = pred_mask_logits.reshape(n_inst*17,H*W) + max_value, max_index = pred_mask_logits.max(dim = 1) + arr = torch.arange(n_inst*17, device=pred_mask_logits.device) + direction = direction.permute(0,3,1,2,4).reshape(n_inst*17,H*W,2) + direction = direction[arr,max_index] + pred_keypoints = direction.reshape(n_inst,17,2) + + vis = max_value.reshape(pred_keypoints.size(0),pred_keypoints.size(1),1) + # vis = pred_keypoints.new_ones((pred_keypoints.size(0), pred_keypoints.size(1), 1)) + pred_keypoints = torch.cat([pred_keypoints, vis], dim = 2) + + proposals[im_i].set("pred_keypoints", pred_keypoints) + + + return proposals, {} + + + diff --git a/AdelaiDet/adet/modeling/fcpose/utils.py b/AdelaiDet/adet/modeling/fcpose/utils.py new file mode 100755 index 0000000..7e836de --- /dev/null +++ b/AdelaiDet/adet/modeling/fcpose/utils.py @@ -0,0 +1,215 @@ +import torch.distributed as dist +from detectron2.utils.comm import get_world_size +from torch.nn import functional as F +from torch import nn +import torch +from detectron2.structures import ImageList +from adet.utils.comm import reduce_sum +from fvcore.nn import sigmoid_focal_loss_jit + + +def aligned_bilinear(tensor, factor): + assert tensor.dim() == 4 + assert factor >= 1 + assert int(factor) == factor + + if factor == 1: + return tensor + + h, w = tensor.size()[2:] + tensor = F.pad(tensor, pad=(0, 1, 0, 1), mode="replicate") + oh = factor * h + 1 + ow = factor * w + 1 + tensor = F.interpolate( + tensor, size=(oh, ow), + mode='bilinear', + align_corners=True + ) + tensor = F.pad( + tensor, pad=(factor // 2, 0, factor // 2, 0), + mode="replicate" + ) + + return tensor[:, :, :oh - 1, :ow - 1] + +def compute_basis_stride(images, basis_out): + im_h, im_w = images.tensor.size()[-2:] + assert len(basis_out["bases"]) == 1 + base_h, base_w = basis_out["bases"][0].size()[2:] + base_stride_h, base_stride_w = im_h // base_h, im_w // base_w + assert base_stride_h == base_stride_w + base_stride = base_stride_w + return base_stride + +class folder(nn.Module): + def __init__(self): + super().__init__() + def forward(self, feature_map): + N,_,H,W = feature_map.size() + feature_map = F.unfold(feature_map,kernel_size=3,padding=1) + feature_map = feature_map.view(N,-1,H,W) + return feature_map + +def top_module(in_channels, attn_len): + return folder() + +def process_gt_instances(gt_instances, gt_stride, device): + basis_heatmap_list = [] + head_heatmap_list = [] + p3_heatmap_list = [] + for instances in gt_instances: + one_frame_instances = instances.keypoint_heatmap.to(device = device, dtype = torch.float) + one_basis_heatmap = one_frame_instances.max(dim = 0)[0]#.clamp(0,1) + basis_heatmap_list.append(one_basis_heatmap) + + p3_output_list = instances.p3_output_list.to(device = device, dtype = torch.float) + p3_output_list = p3_output_list.max(dim = 0)[0]#.clamp(0,1) + p3_heatmap_list.append(p3_output_list) + + one_frame_instances = instances.head_heatmap.to(device = device, dtype = torch.float) + for index_instence in range(len(instances)): + head_heatmap_list.append(one_frame_instances[index_instence]) + basis_heatmap_list = ImageList.from_tensors(basis_heatmap_list) + p3_heatmap_list = ImageList.from_tensors(p3_heatmap_list) + head_heatmap_list = ImageList.from_tensors(head_heatmap_list) + return basis_heatmap_list.tensor, head_heatmap_list.tensor.bool(), p3_heatmap_list.tensor, + + +def compute_loss(p1_heatmap_list, p3_heatmap_list, p1_logits, p3_logits): + # gt_bitmasks = gt_bitmasks.float() + # mask_logits = mask_logits.sigmoid() + num_gpus = get_world_size() + + num_dice = (p1_heatmap_list**2).sum() + num_dice = reduce_sum(p1_logits.new_tensor([num_dice])).item() + num_dice = max(num_dice / num_gpus, 1.0) + + p1_loss = F.mse_loss(p1_heatmap_list, p1_logits, reduction='sum') / num_dice + + num_dice = (p3_heatmap_list**2).sum() + num_dice = reduce_sum(p3_logits.new_tensor([num_dice])).item() + num_dice = max(num_dice / num_gpus, 1.0) + + p3_loss = F.mse_loss(p3_heatmap_list, p3_logits, reduction='sum') / num_dice + + # loss = (p1_loss + p3_loss) / 2 + + return p1_loss, p3_loss + +def compute_loss_softmax(gt_bitmasks, mask_logits, num_loss, num_instances, direction, direction_mask_logits, gt_keypoint, max_ranges, distance_norm): + assert not torch.isnan(mask_logits).any() + assert not torch.isnan(direction).any() + assert not torch.isnan(direction_mask_logits).any() + # direction_mask_logits = direction_mask_logits.detach() + N,K,H,W = gt_bitmasks.size() + # gt_bitmasks = gt_bitmasks.float() + num_gpus = get_world_size() + assert not (num_loss == 0).any() + loss_weight = 1/num_loss #TODO num_loss can be 0 + sum_loss_weight = loss_weight.sum() + assert sum_loss_weight!=0 + loss_weight = loss_weight[:,None].repeat(1,17).flatten() + + gt_bitmasks = gt_bitmasks.reshape(N*K,H*W) + mask_logits = mask_logits.reshape(N*K,H*W) + gt_bitmasks_visible_mask = gt_bitmasks.sum(dim=1).bool() + # assert gt_bitmasks_visible_mask.sum()!=0 #TODO AssertionError + if gt_bitmasks_visible_mask.sum()!=0: + loss_weight = loss_weight[gt_bitmasks_visible_mask] + mask_logits = mask_logits[gt_bitmasks_visible_mask] + gt_bitmasks = gt_bitmasks[gt_bitmasks_visible_mask] + mask_logits = F.log_softmax(mask_logits,dim=1) + + total_instances = reduce_sum(mask_logits.new_tensor([num_instances])).item() + gpu_balence_factor = num_instances/total_instances + + loss = (- mask_logits[gt_bitmasks]) + loss = (loss*loss_weight).sum()/17 + loss = (loss/sum_loss_weight)*gpu_balence_factor + + max_ranges = max_ranges[:,None].repeat(1,17).flatten()[gt_bitmasks_visible_mask] + gt_keypoint = gt_keypoint[:,:,[0,1]] + + N,H,W,K,_ = direction_mask_logits.size() + direction = direction - gt_keypoint[:,None,None,:,:] + direction = direction.permute(0,3,1,2,4).reshape(N*17,H,W,2) + direction = direction[gt_bitmasks_visible_mask] + direction = (direction[:,:,:,0] ** 2 + direction[:,:,:,1] ** 2).sqrt()[:,:,:,None] + assert (max_ranges != 0).all() + direction = direction / max_ranges[:,None,None,None] + direction = direction * distance_norm + direction = (direction.sigmoid()-0.5) * 2 + direction_mask_logits = direction_mask_logits.permute(0,3,1,2,4).reshape(N*17,H,W,1) + direction_mask_logits = direction_mask_logits[gt_bitmasks_visible_mask] + direction = direction * direction_mask_logits + direction = direction.flatten(start_dim=1).sum(dim=1) + direction = direction * loss_weight + assert distance_norm != 0 + direction_loss = (direction/sum_loss_weight * gpu_balence_factor) / distance_norm + direction_loss = direction_loss.sum() + assert not torch.isnan(direction_loss).any() + assert not torch.isnan(loss).any() + return loss, direction_loss + else: + print('gt_bitmasks_visible_mask.sum()==0') + total_instances = reduce_sum(mask_logits.new_tensor([num_instances])).item() + loss = mask_logits.sum() + direction.sum() + direction_mask_logits.sum() + loss = loss*0.0 + return loss, loss + + +# def compute_loss(gt_bitmasks, mask_logits): +# # assert torch.isfinite(gt_bitmasks).all() and torch.isfinite(mask_logits).all() +# gt_bitmasks = gt_bitmasks.float() +# num_gpus = get_world_size() + +# num_dice = gt_bitmasks.sum() +# num_dice = reduce_sum(mask_logits.new_tensor([num_dice])).item() +# num_dice = max(num_dice / num_gpus, 1.0) + + +# loss = F.mse_loss(mask_logits, gt_bitmasks, reduction='sum') / num_dice + +# # assert torch.isfinite(loss).all() +# return loss + +# def compute_loss(gt_bitmasks, mask_logits): +# # assert torch.isfinite(gt_bitmasks).all() and torch.isfinite(mask_logits).all() +# gt_bitmasks = gt_bitmasks.float() +# eps = 1e-5 +# intersection = (mask_logits * gt_bitmasks).sum(dim=1) +# union = (mask_logits ** 2.0).sum(dim=1) + (gt_bitmasks ** 2.0).sum(dim=1) + eps +# loss = 1. - (2 * intersection / union) +# return loss.mean() + +# def compute_loss(gt_bitmasks, mask_logits): +# # assert torch.isfinite(gt_bitmasks).all() and torch.isfinite(mask_logits).all() +# gt_bitmasks = gt_bitmasks.float() +# num_gpus = get_world_size() + +# true_point = gt_bitmasks > 0.5 +# num_true = torch.where(true_point)[0].size(0) +# if num_true == 0: +# num_true = reduce_sum(mask_logits.new_tensor([num_true])).item() +# loss1 = mask_logits.sum() * 0.0 +# else: +# num_true = reduce_sum(mask_logits.new_tensor([num_true])).item() +# num_true = max(num_true / num_gpus, 1.0) +# loss1 = F.mse_loss(mask_logits[true_point], +# gt_bitmasks[true_point], reduction='sum') / num_true + +# positive_point = mask_logits > 0.5 +# false_positive_point = (~true_point) | positive_point +# num_false_positive = torch.where(false_positive_point)[0].size(0) +# if num_false_positive == 0: +# num_false_positive = reduce_sum(mask_logits.new_tensor([num_false_positive])).item() +# loss2 = mask_logits.sum() * 0.0 +# else: +# num_false_positive = reduce_sum(mask_logits.new_tensor([num_false_positive])).item() +# num_false_positive = max(num_false_positive / num_gpus, 1.0) +# loss2 = F.mse_loss(mask_logits[false_positive_point], +# gt_bitmasks[false_positive_point], reduction='sum') / num_false_positive + +# loss = 0.5*loss1 + 0.5*loss2 + +# return loss diff --git a/AdelaiDet/adet/modeling/one_stage_detector.py b/AdelaiDet/adet/modeling/one_stage_detector.py new file mode 100755 index 0000000..ad59cb7 --- /dev/null +++ b/AdelaiDet/adet/modeling/one_stage_detector.py @@ -0,0 +1,188 @@ +import logging +from torch import nn + +from detectron2.modeling.meta_arch.build import META_ARCH_REGISTRY +from detectron2.modeling import ProposalNetwork, GeneralizedRCNN +from detectron2.utils.events import get_event_storage +from detectron2.utils.logger import log_first_n +from detectron2.modeling.postprocessing import detector_postprocess as d2_postprocesss + + +def detector_postprocess(results, output_height, output_width, mask_threshold=0.5): + """ + In addition to the post processing of detectron2, we add scalign for + bezier control points. + """ + scale_x, scale_y = (output_width / results.image_size[1], output_height / results.image_size[0]) + results = d2_postprocesss(results, output_height, output_width, mask_threshold) + + # scale bezier points + if results.has("beziers"): + beziers = results.beziers + # scale and clip in place + beziers[:, 0::2] *= scale_x + beziers[:, 1::2] *= scale_y + h, w = results.image_size + beziers[:, 0].clamp_(min=0, max=w) + beziers[:, 1].clamp_(min=0, max=h) + beziers[:, 6].clamp_(min=0, max=w) + beziers[:, 7].clamp_(min=0, max=h) + beziers[:, 8].clamp_(min=0, max=w) + beziers[:, 9].clamp_(min=0, max=h) + beziers[:, 14].clamp_(min=0, max=w) + beziers[:, 15].clamp_(min=0, max=h) + + return results + + +@META_ARCH_REGISTRY.register() +class OneStageDetector(ProposalNetwork): + """ + Same as :class:`detectron2.modeling.ProposalNetwork`. + Uses "instances" as the return key instead of using "proposal". + """ + def forward(self, batched_inputs): + if self.training: + return super().forward(batched_inputs) + processed_results = super().forward(batched_inputs) + processed_results = [{"instances": r["proposals"]} for r in processed_results] + return processed_results + + +def build_top_module(cfg): + top_type = cfg.MODEL.TOP_MODULE.NAME + if top_type == "conv": + inp = cfg.MODEL.FPN.OUT_CHANNELS + oup = cfg.MODEL.TOP_MODULE.DIM + top_module = nn.Conv2d( + inp, oup, + kernel_size=3, stride=1, padding=1) + else: + top_module = None + return top_module + + +@META_ARCH_REGISTRY.register() +class OneStageRCNN(GeneralizedRCNN): + """ + Same as :class:`detectron2.modeling.ProposalNetwork`. + Use one stage detector and a second stage for instance-wise prediction. + """ + def __init__(self, cfg): + super().__init__(cfg) + self.top_module = build_top_module(cfg) + self.to(self.device) + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper` . + Each item in the list contains the inputs for one image. + For now, each item in the list is a dict that contains: + + * image: Tensor, image in (C, H, W) format. + * instances (optional): groundtruth :class:`Instances` + * proposals (optional): :class:`Instances`, precomputed proposals. + + Other information that's included in the original dicts, such as: + + * "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + + Returns: + list[dict]: + Each dict is the output for one input image. + The dict contains one key "instances" whose value is a :class:`Instances`. + The :class:`Instances` object has the following keys: + "pred_boxes", "pred_classes", "scores", "pred_masks", "pred_keypoints" + """ + if not self.training: + return self.inference(batched_inputs) + + images = self.preprocess_image(batched_inputs) + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + elif "targets" in batched_inputs[0]: + log_first_n( + logging.WARN, "'targets' in the model inputs is now renamed to 'instances'!", n=10 + ) + gt_instances = [x["targets"].to(self.device) for x in batched_inputs] + else: + gt_instances = None + + features = self.backbone(images.tensor) + + if self.proposal_generator: + proposals, proposal_losses = self.proposal_generator( + images, features, gt_instances, self.top_module) + else: + assert "proposals" in batched_inputs[0] + proposals = [x["proposals"].to(self.device) for x in batched_inputs] + proposal_losses = {} + + _, detector_losses = self.roi_heads(images, features, proposals, gt_instances) + if self.vis_period > 0: + storage = get_event_storage() + if storage.iter % self.vis_period == 0: + self.visualize_training(batched_inputs, proposals) + + losses = {} + losses.update(detector_losses) + losses.update(proposal_losses) + return losses + + def inference(self, batched_inputs, detected_instances=None, do_postprocess=True): + """ + Run inference on the given inputs. + + Args: + batched_inputs (list[dict]): same as in :meth:`forward` + detected_instances (None or list[Instances]): if not None, it + contains an `Instances` object per image. The `Instances` + object contains "pred_boxes" and "pred_classes" which are + known boxes in the image. + The inference will then skip the detection of bounding boxes, + and only predict other per-ROI outputs. + do_postprocess (bool): whether to apply post-processing on the outputs. + + Returns: + same as in :meth:`forward`. + """ + assert not self.training + + images = self.preprocess_image(batched_inputs) + features = self.backbone(images.tensor) + + if detected_instances is None: + if self.proposal_generator: + proposals, _ = self.proposal_generator( + images, features, None, self.top_module) + else: + assert "proposals" in batched_inputs[0] + proposals = [x["proposals"].to(self.device) for x in batched_inputs] + + results, _ = self.roi_heads(images, features, proposals, None) + else: + detected_instances = [x.to(self.device) for x in detected_instances] + results = self.roi_heads.forward_with_given_boxes(features, detected_instances) + + if do_postprocess: + return OneStageRCNN._postprocess(results, batched_inputs, images.image_sizes) + else: + return results + + @staticmethod + def _postprocess(instances, batched_inputs, image_sizes): + """ + Rescale the output instances to the target size. + """ + # note: private function; subject to changes + processed_results = [] + for results_per_image, input_per_image, image_size in zip( + instances, batched_inputs, image_sizes + ): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + r = detector_postprocess(results_per_image, height, width) + processed_results.append({"instances": r}) + return processed_results \ No newline at end of file diff --git a/AdelaiDet/adet/modeling/poolers.py b/AdelaiDet/adet/modeling/poolers.py new file mode 100755 index 0000000..3bf77b0 --- /dev/null +++ b/AdelaiDet/adet/modeling/poolers.py @@ -0,0 +1,163 @@ +import sys +import torch +from torch import nn +from detectron2.layers import cat + +from detectron2.modeling.poolers import ( + ROIPooler, convert_boxes_to_pooler_format, assign_boxes_to_levels +) + +from adet.layers import BezierAlign +from adet.structures import Beziers + +__all__ = ["TopPooler"] + + +def _box_max_size(boxes): + box = boxes.tensor + max_size = torch.max(box[:, 2] - box[:, 0], box[:, 3] - box[:, 1]) + return max_size + + +def _bezier_height(beziers): + beziers = beziers.tensor + # compute the distance between the first and last control point + p1 = beziers[:, :2] + p2 = beziers[:, 14:] + height = ((p1 - p2) ** 2).sum(dim=1).sqrt() + return height + + +def assign_boxes_to_levels_by_metric( + box_lists, min_level, max_level, canonical_box_size, + canonical_level, metric_fn=_box_max_size): + """ + Map each box in `box_lists` to a feature map level index and return the assignment + vector. + + Args: + box_lists (list[detectron2.structures.Boxes]): A list of N Boxes or N RotatedBoxes, + where N is the number of images in the batch. + min_level (int): Smallest feature map level index. The input is considered index 0, + the output of stage 1 is index 1, and so. + max_level (int): Largest feature map level index. + canonical_box_size (int): A canonical box size in pixels (shorter side). + canonical_level (int): The feature map level index on which a canonically-sized box + should be placed. + + Returns: + A tensor of length M, where M is the total number of boxes aggregated over all + N batch images. The memory layout corresponds to the concatenation of boxes + from all images. Each element is the feature map index, as an offset from + `self.min_level`, for the corresponding box (so value i means the box is at + `self.min_level + i`). + """ + eps = sys.float_info.epsilon + box_sizes = cat([metric_fn(boxes) for boxes in box_lists]) + # Eqn.(1) in FPN paper + level_assignments = torch.floor( + canonical_level + torch.log2(box_sizes / canonical_box_size + eps) + ) + level_assignments = torch.clamp(level_assignments, min=min_level, max=max_level) + return level_assignments.to(torch.int64) - min_level + + +def assign_boxes_to_levels_max( + box_lists, min_level, max_level, canonical_box_size, + canonical_level): + return assign_boxes_to_levels_by_metric( + box_lists, min_level, max_level, canonical_box_size, + canonical_level, metric_fn=_box_max_size + ) + + +def assign_boxes_to_levels_bezier( + box_lists, min_level, max_level, canonical_box_size, + canonical_level): + return assign_boxes_to_levels_by_metric( + box_lists, min_level, max_level, canonical_box_size, + canonical_level, metric_fn=_bezier_height + ) + + +class TopPooler(ROIPooler): + """ + ROIPooler with option to assign level by max length. Used by top modules. + """ + def __init__(self, + output_size, + scales, + sampling_ratio, + pooler_type, + canonical_box_size=224, + canonical_level=4, + assign_crit="area",): + # to reuse the parent initialization, handle unsupported pooler types + parent_pooler_type = "ROIAlign" if pooler_type == "BezierAlign" else pooler_type + super().__init__(output_size, scales, sampling_ratio, parent_pooler_type, + canonical_box_size=canonical_box_size, + canonical_level=canonical_level) + if parent_pooler_type != pooler_type: + # reinit the level_poolers here + self.level_poolers = nn.ModuleList( + BezierAlign( + output_size, spatial_scale=scale, + sampling_ratio=sampling_ratio) for scale in scales + ) + self.assign_crit = assign_crit + + def forward(self, x, box_lists): + """ + see + """ + num_level_assignments = len(self.level_poolers) + + assert isinstance(x, list) and isinstance( + box_lists, list + ), "Arguments to pooler must be lists" + assert ( + len(x) == num_level_assignments + ), "unequal value, num_level_assignments={}, but x is list of {} Tensors".format( + num_level_assignments, len(x) + ) + + assert len(box_lists) == x[0].size( + 0 + ), "unequal value, x[0] batch dim 0 is {}, but box_list has length {}".format( + x[0].size(0), len(box_lists) + ) + + if isinstance(box_lists[0], torch.Tensor): + # TODO: use Beziers for data_mapper + box_lists = [Beziers(x) for x in box_lists] + pooler_fmt_boxes = convert_boxes_to_pooler_format(box_lists) + + if num_level_assignments == 1: + return self.level_poolers[0](x[0], pooler_fmt_boxes) + + if self.assign_crit == "max": + assign_method = assign_boxes_to_levels_max + elif self.assign_crit == "bezier": + assign_method = assign_boxes_to_levels_bezier + else: + assign_method = assign_boxes_to_levels + + level_assignments = assign_method( + box_lists, self.min_level, self.max_level, + self.canonical_box_size, self.canonical_level) + + num_boxes = len(pooler_fmt_boxes) + num_channels = x[0].shape[1] + output_size = self.output_size + + dtype, device = x[0].dtype, x[0].device + output = torch.zeros( + (num_boxes, num_channels, output_size[0], output_size[1]), dtype=dtype, device=device + ) + + for level, (x_level, pooler) in enumerate(zip(x, self.level_poolers)): + inds = torch.nonzero(level_assignments == level).squeeze(1) + pooler_fmt_boxes_level = pooler_fmt_boxes[inds] + output[inds] = pooler(x_level, pooler_fmt_boxes_level) + + return output diff --git a/AdelaiDet/adet/modeling/roi_heads/__init__.py b/AdelaiDet/adet/modeling/roi_heads/__init__.py new file mode 100755 index 0000000..8b13789 --- /dev/null +++ b/AdelaiDet/adet/modeling/roi_heads/__init__.py @@ -0,0 +1 @@ + diff --git a/AdelaiDet/adet/modeling/roi_heads/attn_predictor.py b/AdelaiDet/adet/modeling/roi_heads/attn_predictor.py new file mode 100755 index 0000000..657431a --- /dev/null +++ b/AdelaiDet/adet/modeling/roi_heads/attn_predictor.py @@ -0,0 +1,156 @@ +import random +import torch +from torch import nn +from torch.nn import functional as F +from torch.autograd import Variable + +from adet.layers import conv_with_kaiming_uniform + + +class BidirectionalLSTM(nn.Module): + + def __init__(self, nIn, nHidden, nOut): + super(BidirectionalLSTM, self).__init__() + + self.rnn = nn.LSTM(nIn, nHidden, bidirectional=True) + self.embedding = nn.Linear(nHidden * 2, nOut) + + def forward(self, input): + recurrent, _ = self.rnn(input) + T, b, h = recurrent.size() + t_rec = recurrent.view(T * b, h) + + output = self.embedding(t_rec) # [T * b, nOut] + output = output.view(T, b, -1) + + return output + + +class CRNN(nn.Module): + def __init__(self, cfg, in_channels): + super(CRNN, self).__init__() + conv_func = conv_with_kaiming_uniform(norm="GN", activation=True) + convs = [] + for i in range(2): + convs.append(conv_func(in_channels, in_channels, 3, stride=(2, 1))) + self.convs = nn.Sequential(*convs) + self.rnn = BidirectionalLSTM(in_channels, in_channels, in_channels) + + def forward(self, x): + # average along H dimension + x = self.convs(x) + x = x.mean(dim=2) # NxCxW + x = x.permute(2, 0, 1) # WxNxC + x = self.rnn(x) + return x + + +# apply attention +class Attention(nn.Module): + def __init__(self, cfg, in_channels): + super(Attention, self).__init__() + self.hidden_size = in_channels + self.output_size = cfg.MODEL.BATEXT.VOC_SIZE + 1 + self.dropout_p = 0.1 + self.max_len = cfg.MODEL.BATEXT.NUM_CHARS + + self.embedding = nn.Embedding(self.output_size, self.hidden_size) + self.attn_combine = nn.Linear(self.hidden_size * 2, self.hidden_size) + self.dropout = nn.Dropout(self.dropout_p) + self.gru = nn.GRU(self.hidden_size, self.hidden_size) + self.out = nn.Linear(self.hidden_size, self.output_size) + + # test + self.vat = nn.Linear(self.hidden_size, 1) + + def forward(self, input, hidden, encoder_outputs): + ''' + hidden: 1 x n x self.hidden_size + encoder_outputs: time_step x n x self.hidden_size (T,N,C) + ''' + embedded = self.embedding(input) + embedded = self.dropout(embedded) + + # test + batch_size = encoder_outputs.shape[1] + + alpha = hidden + encoder_outputs + alpha = alpha.view(-1, alpha.shape[-1]) # (T * n, hidden_size) + attn_weights = self.vat(torch.tanh(alpha)) # (T * n, 1) + attn_weights = attn_weights.view(-1, 1, batch_size).permute((2,1,0)) # (T, 1, n) -> (n, 1, T) + attn_weights = F.softmax(attn_weights, dim=2) + + attn_applied = torch.matmul(attn_weights, + encoder_outputs.permute((1, 0, 2))) + + if embedded.dim() == 1: + embedded = embedded.unsqueeze(0) + output = torch.cat((embedded, attn_applied.squeeze(1)), 1) + output = self.attn_combine(output).unsqueeze(0) # (1, n, hidden_size) + + output = F.relu(output) + output, hidden = self.gru(output, hidden) # (1, n, hidden_size) + + output = F.log_softmax(self.out(output[0]), dim=1) # (n, hidden_size) + return output, hidden, attn_weights + + def initHidden(self, batch_size): + result = Variable(torch.zeros(1, batch_size, self.hidden_size)) + return result + + def prepare_targets(self, targets): + target_lengths = (targets != self.output_size - 1).long().sum(dim=-1) + sum_targets = [t[:l] for t, l in zip(targets, target_lengths)] + return target_lengths, sum_targets + + +class ATTPredictor(nn.Module): + def __init__(self, cfg): + super(ATTPredictor, self).__init__() + in_channels = cfg.MODEL.BATEXT.CONV_DIM + self.CRNN = CRNN(cfg, in_channels) + self.criterion = torch.nn.NLLLoss() + self.attention = Attention(cfg, in_channels) + self.teach_prob = 0.5 + + def forward(self, rois, targets=None): + rois = self.CRNN(rois) + if self.training: + target_variable = targets + _init = torch.zeros((rois.size()[1], 1)).long() + _init = torch.LongTensor(_init).to(rois.device) + target_variable = torch.cat((_init, target_variable.long()), 1) + target_variable = target_variable.to(rois.device) + decoder_input = target_variable[:,0] # init decoder, from 0 + decoder_hidden = self.attention.initHidden(rois.size()[1]).to(rois.device) # batch rois.size[1] + loss = 0.0 + + for di in range(1, target_variable.shape[1]): + decoder_output, decoder_hidden, decoder_attention = self.attention( # decoder_output (nbatch, ncls) + decoder_input, decoder_hidden, rois) + loss += self.criterion(decoder_output, target_variable[:,di]) + teach_forcing = True if random.random() > self.teach_prob else False + if teach_forcing: + decoder_input = target_variable[:,di] # Teacher forcing + else: + topv, topi = decoder_output.data.topk(1) + ni = topi.squeeze() + decoder_input = ni + + return None, loss + else: + n = rois.size()[1] + decodes = torch.zeros((n, self.attention.max_len)) + prob = 1.0 + decoder_input = torch.zeros(n).long().to(rois.device) + decoder_hidden = self.attention.initHidden(n).to(rois.device) + for di in range(self.attention.max_len): + decoder_output, decoder_hidden, decoder_attention = self.attention( + decoder_input, decoder_hidden, rois) + probs = torch.exp(decoder_output) + topv, topi = decoder_output.data.topk(1) + ni = topi.squeeze() + decoder_input = ni + prob *= probs[:, ni] + decodes[:, di] = decoder_input + return decodes, None \ No newline at end of file diff --git a/AdelaiDet/adet/modeling/roi_heads/text_head.py b/AdelaiDet/adet/modeling/roi_heads/text_head.py new file mode 100755 index 0000000..b40d170 --- /dev/null +++ b/AdelaiDet/adet/modeling/roi_heads/text_head.py @@ -0,0 +1,230 @@ +import math + +from typing import Dict, List +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec, cat +from detectron2.modeling import ROI_HEADS_REGISTRY + +from adet.layers import conv_with_kaiming_uniform +from ..poolers import TopPooler +from .attn_predictor import ATTPredictor + + +class SeqConvs(nn.Module): + def __init__(self, conv_dim, roi_size): + super().__init__() + + height = roi_size[0] + downsample_level = math.log2(height) - 2 + assert math.isclose(downsample_level, int(downsample_level)) + downsample_level = int(downsample_level) + + conv_block = conv_with_kaiming_uniform( + norm="BN", activation=True) + convs = [] + for i in range(downsample_level): + convs.append(conv_block( + conv_dim, conv_dim, 3, stride=(2, 1))) + convs.append(nn.Conv2d(conv_dim, conv_dim, kernel_size=(4, 1), bias=False)) + self.convs = nn.Sequential(*convs) + + def forward(self, x): + return self.convs(x) + + +class RNNPredictor(nn.Module): + def __init__(self, cfg): + super(RNNPredictor, self).__init__() + # fmt: off + self.voc_size = cfg.MODEL.BATEXT.VOC_SIZE + conv_dim = cfg.MODEL.BATEXT.CONV_DIM + roi_size = cfg.MODEL.BATEXT.POOLER_RESOLUTION + # fmt: on + + self.convs = SeqConvs(conv_dim, roi_size) + self.rnn = nn.LSTM(conv_dim, conv_dim, num_layers=1, bidirectional=True) + self.clf = nn.Linear(conv_dim * 2, self.voc_size + 1) + self.recognition_loss_fn = build_recognition_loss_fn() + + def forward(self, x, targets=None): + # check empty + if x.size(0) == 0: + return x.new_zeros((x.size(2), 0, self.voc_size)) + x = self.convs(x).squeeze(dim=2) # NxCxW + x = x.permute(2, 0, 1) # WxNxC + x, _ = self.rnn(x) + preds = self.clf(x) + + if self.training: + rec_loss = self.recognition_loss_fn(preds, targets, self.voc_size) + return preds, rec_loss + else: + # (W, N, C) -> (N, W, C) + _, preds = preds.permute(1, 0, 2).max(dim=-1) + return preds, None + +### CoordConv +class MaskHead(nn.Module): + def __init__(self, cfg): + super(MaskHead, self).__init__() + + conv_dim = cfg.MODEL.BATEXT.CONV_DIM + + conv_block = conv_with_kaiming_uniform( + norm="BN", activation=True) + convs = [] + convs.append(conv_block(258, conv_dim, 3, 1)) + for i in range(3): + convs.append(conv_block( + conv_dim, conv_dim, 3, 1)) + self.mask_convs = nn.Sequential(*convs) + + def forward(self, features): + x_range = torch.linspace(-1, 1, features.shape[-1], device=features.device) + y_range = torch.linspace(-1, 1, features.shape[-2], device=features.device) + y, x = torch.meshgrid(y_range, x_range) + y = y.expand([features.shape[0], 1, -1, -1]) + x = x.expand([features.shape[0], 1, -1, -1]) + coord_feat = torch.cat([x, y], 1) + ins_features = torch.cat([features, coord_feat], dim=1) + mask_features = self.mask_convs(ins_features) + return mask_features + +def build_recognizer(cfg, type): + if type == 'rnn': + return RNNPredictor(cfg) + if type == 'attn': + return ATTPredictor(cfg) + else: + raise NotImplementedError("{} is not a valid recognizer".format(type)) + + +def ctc_loss(preds, targets, voc_size): + # prepare targets + target_lengths = (targets != voc_size).long().sum(dim=-1) + trimmed_targets = [t[:l] for t, l in zip(targets, target_lengths)] + targets = torch.cat(trimmed_targets) + + x = F.log_softmax(preds, dim=-1) + input_lengths = torch.full((x.size(1),), x.size(0), dtype=torch.long) + return F.ctc_loss( + x, targets, input_lengths, target_lengths, + blank=voc_size, zero_infinity=True + ) + + +def build_recognition_loss_fn(rec_type="ctc"): + if rec_type == "ctc": + return ctc_loss + else: + raise NotImplementedError("{} is not a valid recognition loss".format(rec_type)) + + +@ROI_HEADS_REGISTRY.register() +class TextHead(nn.Module): + """ + TextHead performs text region alignment and recognition. + + It is a simplified ROIHeads, only ground truth RoIs are + used during training. + """ + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + """ + Args: + in_channels (int): number of channels of the input feature + """ + super(TextHead, self).__init__() + # fmt: off + pooler_resolution = cfg.MODEL.BATEXT.POOLER_RESOLUTION + pooler_scales = cfg.MODEL.BATEXT.POOLER_SCALES + sampling_ratio = cfg.MODEL.BATEXT.SAMPLING_RATIO + conv_dim = cfg.MODEL.BATEXT.CONV_DIM + num_conv = cfg.MODEL.BATEXT.NUM_CONV + canonical_size = cfg.MODEL.BATEXT.CANONICAL_SIZE + self.in_features = cfg.MODEL.BATEXT.IN_FEATURES + self.voc_size = cfg.MODEL.BATEXT.VOC_SIZE + recognizer = cfg.MODEL.BATEXT.RECOGNIZER + self.top_size = cfg.MODEL.TOP_MODULE.DIM + self.coordconv = cfg.MODEL.BATEXT.USE_COORDCONV + self.aet = cfg.MODEL.BATEXT.USE_AET + # fmt: on + + self.pooler = TopPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type="BezierAlign", + canonical_box_size=canonical_size, + canonical_level=3, + assign_crit="bezier") + + conv_block = conv_with_kaiming_uniform( + norm="BN", activation=True) + tower = [] + for i in range(num_conv): + tower.append( + conv_block(conv_dim, conv_dim, 3, 1)) + self.tower = nn.Sequential(*tower) + + if self.coordconv: + self.mask_head = MaskHead(cfg) + + self.recognizer = build_recognizer(cfg, recognizer) + + def forward(self, images, features, proposals, targets=None): + """ + see detectron2.modeling.ROIHeads + """ + del images + features = [features[f] for f in self.in_features] + + if self.coordconv: + mask_features = [] + for i in range(len(features)): + mask_feat = self.mask_head(features[i]) + all_feat = mask_feat + features[i] + mask_features.append(all_feat) + features = mask_features + + if self.training: + beziers = [p.beziers for p in targets] + if not self.aet: + targets = torch.cat([x.text for x in targets], dim=0) + else: + beziers2 = [p.top_feat for p in proposals] + for k in range(len(targets)): + rec_assign = [int(torch.argmin(torch.abs(beziers[k] - beziers2[k][i]).sum(dim=1))) for i in range(len(beziers2[k]))] + targets[k] = torch.cat([targets[k].text, targets[k].text[rec_assign]], dim = 0) + targets = torch.cat([x for x in targets], dim = 0) + cat_beziers = [] + for ix in range(len(beziers)): + cat_beziers.append(cat((beziers[ix], beziers2[ix]), dim=0)) + beziers = cat_beziers + else: + beziers = [p.top_feat for p in proposals] + bezier_features = self.pooler(features, beziers) + bezier_features = self.tower(bezier_features) + + # TODO: move this part to recognizer + if self.training: + preds, rec_loss = self.recognizer(bezier_features, targets) + rec_loss *= 0.05 + losses = {'rec_loss': rec_loss} + return None, losses + else: + if bezier_features.size(0) == 0: + for box in proposals: + box.beziers = box.top_feat + box.recs = box.top_feat + return proposals, {} + preds, _ = self.recognizer(bezier_features, targets) + start_ind = 0 + for proposals_per_im in proposals: + end_ind = start_ind + len(proposals_per_im) + proposals_per_im.recs = preds[start_ind:end_ind] + proposals_per_im.beziers = proposals_per_im.top_feat + start_ind = end_ind + return proposals, {} diff --git a/AdelaiDet/adet/modeling/solov2/__init__.py b/AdelaiDet/adet/modeling/solov2/__init__.py new file mode 100755 index 0000000..40eac44 --- /dev/null +++ b/AdelaiDet/adet/modeling/solov2/__init__.py @@ -0,0 +1 @@ +from .solov2 import SOLOv2 diff --git a/AdelaiDet/adet/modeling/solov2/loss.py b/AdelaiDet/adet/modeling/solov2/loss.py new file mode 100755 index 0000000..e049fe0 --- /dev/null +++ b/AdelaiDet/adet/modeling/solov2/loss.py @@ -0,0 +1,127 @@ +import torch +from torch import nn +import torch.nn.functional as F +from fvcore.nn import sigmoid_focal_loss_jit + + +def dice_loss(input, target): + input = input.contiguous().view(input.size()[0], -1) + target = target.contiguous().view(target.size()[0], -1).float() + + a = torch.sum(input * target, 1) + b = torch.sum(input * input, 1) + 0.001 + c = torch.sum(target * target, 1) + 0.001 + d = (2 * a) / (b + c) + return 1 - d + + +def reduce_loss(loss, reduction): + """Reduce loss as specified. + Args: + loss (Tensor): Elementwise loss tensor. + reduction (str): Options are "none", "mean" and "sum". + Return: + Tensor: Reduced loss tensor. + """ + reduction_enum = F._Reduction.get_enum(reduction) + # none: 0, elementwise_mean:1, sum: 2 + if reduction_enum == 0: + return loss + elif reduction_enum == 1: + return loss.mean() + elif reduction_enum == 2: + return loss.sum() + + +def weight_reduce_loss(loss, weight=None, reduction='mean', avg_factor=None): + """Apply element-wise weight and reduce loss. + Args: + loss (Tensor): Element-wise loss. + weight (Tensor): Element-wise weights. + reduction (str): Same as built-in losses of PyTorch. + avg_factor (float): Avarage factor when computing the mean of losses. + Returns: + Tensor: Processed loss values. + """ + # if weight is specified, apply element-wise weight + if weight is not None: + loss = loss * weight + + # if avg_factor is not specified, just reduce the loss + if avg_factor is None: + loss = reduce_loss(loss, reduction) + else: + # if reduction is mean, then average the loss by avg_factor + if reduction == 'mean': + loss = loss.sum() / avg_factor + # if reduction is 'none', then do nothing, otherwise raise an error + elif reduction != 'none': + raise ValueError('avg_factor can not be used with reduction="sum"') + return loss + + +def sigmoid_focal_loss(pred, + target, + weight=None, + gamma=2.0, + alpha=0.25, + reduction='mean', + avg_factor=None): + # Function.apply does not accept keyword arguments, so the decorator + # "weighted_loss" is not applicable + loss = sigmoid_focal_loss_jit(pred, target, gamma=gamma, alpha=alpha) + if weight is not None: + if weight.shape != loss.shape: + if weight.size(0) == loss.size(0): + # For most cases, weight is of shape (num_priors, ), + # which means it does not have the second axis num_class + weight = weight.view(-1, 1) + else: + # Sometimes, weight per anchor per class is also needed. e.g. + # in FSAF. But it may be flattened of shape + # (num_priors x num_class, ), while loss is still of shape + # (num_priors, num_class). + assert weight.numel() == loss.numel() + weight = weight.view(loss.size(0), -1) + assert weight.ndim == loss.ndim + loss = weight_reduce_loss(loss, weight, reduction, avg_factor) + return loss + + +class FocalLoss(nn.Module): + + def __init__(self, + use_sigmoid=True, + gamma=2.0, + alpha=0.25, + reduction='mean', + loss_weight=1.0): + super(FocalLoss, self).__init__() + assert use_sigmoid is True, 'Only sigmoid focal loss supported now.' + self.use_sigmoid = use_sigmoid + self.gamma = gamma + self.alpha = alpha + self.reduction = reduction + self.loss_weight = loss_weight + + def forward(self, + pred, + target, + weight=None, + avg_factor=None, + reduction_override=None): + assert reduction_override in (None, 'none', 'mean', 'sum') + reduction = ( + reduction_override if reduction_override else self.reduction) + if self.use_sigmoid: + loss_cls = self.loss_weight * sigmoid_focal_loss( + pred, + target, + weight, + gamma=self.gamma, + alpha=self.alpha, + reduction=reduction, + avg_factor=avg_factor) + else: + raise NotImplementedError + return loss_cls diff --git a/AdelaiDet/adet/modeling/solov2/solov2.py b/AdelaiDet/adet/modeling/solov2/solov2.py new file mode 100755 index 0000000..dea9c62 --- /dev/null +++ b/AdelaiDet/adet/modeling/solov2/solov2.py @@ -0,0 +1,949 @@ +# -*- coding: utf-8 -*- +import logging +import math +from typing import List + +import torch +import torch.nn.functional as F +from torch import nn + +from detectron2.layers import ShapeSpec, batched_nms, cat, paste_masks_in_image +from detectron2.modeling.anchor_generator import DefaultAnchorGenerator +from detectron2.modeling.backbone import build_backbone +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.meta_arch.build import META_ARCH_REGISTRY +from detectron2.structures import Boxes, ImageList, Instances +from detectron2.utils.logger import log_first_n +from fvcore.nn import sigmoid_focal_loss_jit + +from .utils import imrescale, center_of_mass, point_nms, mask_nms, matrix_nms +from .loss import dice_loss, FocalLoss + +__all__ = ["SOLOv2"] + +# projection 2D point to 1D value +PROJECTION=10000 + +@META_ARCH_REGISTRY.register() +class SOLOv2(nn.Module): + """ + SOLOv2 model. Creates FPN backbone, instance branch for kernels and categories prediction, + mask branch for unified mask features. + Calculates and applies proper losses to class and masks. + """ + + def __init__(self, cfg): + super().__init__() + + # get the device of the model + self.device = torch.device(cfg.MODEL.DEVICE) + + self.scale_ranges = cfg.MODEL.SOLOV2.FPN_SCALE_RANGES + self.strides = cfg.MODEL.SOLOV2.FPN_INSTANCE_STRIDES + self.sigma = cfg.MODEL.SOLOV2.SIGMA + # Instance parameters. + self.num_classes = cfg.MODEL.SOLOV2.NUM_CLASSES + self.num_kernels = cfg.MODEL.SOLOV2.NUM_KERNELS + self.num_grids = cfg.MODEL.SOLOV2.NUM_GRIDS + + self.instance_in_features = cfg.MODEL.SOLOV2.INSTANCE_IN_FEATURES + self.instance_strides = cfg.MODEL.SOLOV2.FPN_INSTANCE_STRIDES + self.instance_in_channels = cfg.MODEL.SOLOV2.INSTANCE_IN_CHANNELS # = fpn. + self.instance_channels = cfg.MODEL.SOLOV2.INSTANCE_CHANNELS + + # Mask parameters. + self.mask_on = cfg.MODEL.MASK_ON + self.mask_in_features = cfg.MODEL.SOLOV2.MASK_IN_FEATURES + self.mask_in_channels = cfg.MODEL.SOLOV2.MASK_IN_CHANNELS + self.mask_channels = cfg.MODEL.SOLOV2.MASK_CHANNELS + self.num_masks = cfg.MODEL.SOLOV2.NUM_MASKS + + # Inference parameters. + self.max_before_nms = cfg.MODEL.SOLOV2.NMS_PRE + self.score_threshold = cfg.MODEL.SOLOV2.SCORE_THR + self.update_threshold = cfg.MODEL.SOLOV2.UPDATE_THR + self.mask_threshold = cfg.MODEL.SOLOV2.MASK_THR + self.max_per_img = cfg.MODEL.SOLOV2.MAX_PER_IMG + self.nms_kernel = cfg.MODEL.SOLOV2.NMS_KERNEL + self.nms_sigma = cfg.MODEL.SOLOV2.NMS_SIGMA + self.nms_type = cfg.MODEL.SOLOV2.NMS_TYPE + self.prompt = cfg.MODEL.SOLOV2.PROMPT + self.eval_pseudo_label = cfg.MODEL.SOLOV2.EVAL_PSEUDO_LABEL + + # build the backbone. + self.backbone = build_backbone(cfg) + backbone_shape = self.backbone.output_shape() + + # build the ins head. + instance_shapes = [backbone_shape[f] for f in self.instance_in_features] + self.ins_head = SOLOv2InsHead(cfg, instance_shapes) + + # build the mask head. + mask_shapes = [backbone_shape[f] for f in self.mask_in_features] + self.mask_head = SOLOv2MaskHead(cfg, mask_shapes) + + # loss + self.ins_loss_weight = cfg.MODEL.SOLOV2.LOSS.DICE_WEIGHT + self.focal_loss_alpha = cfg.MODEL.SOLOV2.LOSS.FOCAL_ALPHA + self.focal_loss_gamma = cfg.MODEL.SOLOV2.LOSS.FOCAL_GAMMA + self.focal_loss_weight = cfg.MODEL.SOLOV2.LOSS.FOCAL_WEIGHT + + # image transform + pixel_mean = torch.Tensor(cfg.MODEL.PIXEL_MEAN).to(self.device).view(3, 1, 1) + pixel_std = torch.Tensor(cfg.MODEL.PIXEL_STD).to(self.device).view(3, 1, 1) + self.normalizer = lambda x: (x - pixel_mean) / pixel_std + self.to(self.device) + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DetectionTransform` . + Each item in the list contains the inputs for one image. + For now, each item in the list is a dict that contains: + image: Tensor, image in (C, H, W) format. + instances: Instances + Other information that's included in the original dicts, such as: + "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + Returns: + losses (dict[str: Tensor]): mapping from a named loss to a tensor + storing the loss. Used during training only. + """ + images = self.preprocess_image(batched_inputs) + + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + elif "targets" in batched_inputs[0]: + log_first_n( + logging.WARN, "'targets' in the model inputs is now renamed to 'instances'!", n=10 + ) + gt_instances = [x["targets"].to(self.device) for x in batched_inputs] + else: + gt_instances = None + + features = self.backbone(images.tensor) + + # ins branch + ins_features = [features[f] for f in self.instance_in_features] + ins_features = self.split_feats(ins_features) + cate_pred, kernel_pred = self.ins_head(ins_features) + + # mask branch + mask_features = [features[f] for f in self.mask_in_features] + mask_pred = self.mask_head(mask_features) + + if self.training: + """ + get_ground_truth. + return loss and so on. + """ + mask_feat_size = mask_pred.size()[-2:] + targets = self.get_ground_truth(gt_instances, mask_feat_size) + losses = self.loss(cate_pred, kernel_pred, mask_pred, targets) + return losses + + else: + if self.prompt == "none": + # point nms. + cate_pred = [point_nms(cate_p.sigmoid(), kernel=2).permute(0, 2, 3, 1) for cate_p in cate_pred] + + # do inference for results. + results = self.inference(cate_pred, kernel_pred, mask_pred, images.image_sizes, batched_inputs, cate_pred) + + else: + """ + Implementation for PointWSSIS (https://arxiv.org/abs/2303.15062), + Weakly Semi-Supervised Instance Segmentation with Point Labels. + """ + # do inference with prompt. + targets = self.get_ground_truth(gt_instances, mask_pred.size()[-2:]) + points = [t.unsqueeze(0) for target in targets[5] for t in target] + + # prompt -> image-level labels : removing misclassified proposals + if self.prompt == "cls": + # point nms. + cate_pred = [point_nms(cate_p.sigmoid(), kernel=2).permute(0, 2, 3, 1) + for cate_p in cate_pred] + + cate_gt = [] + for cat in targets[1]: + for c in cat: + c_onehot = torch.nn.functional.one_hot(c, num_classes=self.num_classes+1) + c_onehot = c_onehot[:, :, :self.num_classes].unsqueeze(0).float() + cate_gt.append(c_onehot) + + cate_pred = [cat_pred * cat_gt for cat_pred, cat_gt in zip(cate_pred, cate_gt)] # score filtering with gt cls labels + + results = self.inference(cate_pred, kernel_pred, mask_pred, images.image_sizes, batched_inputs, points) + + # prompt -> point labels : removing false-positive and false-negative proposals + elif self.prompt == "point": + point_encodings_flatten = [t.unsqueeze(0) for target in targets[4] for t in target ] + + cate_gt = [] + for cat in targets[1]: + for c in cat: + c_onehot = torch.nn.functional.one_hot(c, num_classes=self.num_classes+1) + c_onehot = c_onehot[:, :, :self.num_classes].unsqueeze(0).float() + cate_gt.append(c_onehot) + + point_encodings = [] + for cate_p, cate_g, point in zip(cate_pred, cate_gt, point_encodings_flatten): + # cate_p : [1, C, S, S] + # cate_g : [1, S, S, C] + # point : [1, S, S, C] + for p, c_nonzero in zip(point[cate_g.nonzero(as_tuple=True)], cate_g.nonzero()): + cy = float(p // PROJECTION) / float(PROJECTION) + cx = float(p % PROJECTION) / float(PROJECTION) + point_encodings.append((c_nonzero[0].item(), cy, cx, c_nonzero[3].item())) + + point_encodings = list(set(point_encodings)) + + new_cate_gt = [torch.zeros_like(gt) for gt in cate_gt] + for p_encoding in point_encodings: + + max_score, max_fpn_level, max_idx = -1, 0, (0,0,0,0) + for fpn_level, (cate_p, cate_g, kernel_p) in enumerate(zip(cate_pred, cate_gt, kernel_pred)): + cate_p = cate_p.sigmoid().permute(0, 2, 3, 1) + s = cate_p.size(2) # grid size + + idx = tuple(map(int, [ + p_encoding[0], + max(0, min(s-1, int( p_encoding[1] // (1. / s) ))), + max(0, min(s-1, int( p_encoding[2] // (1. / s) ))), + p_encoding[3], + ])) + + # obtaining kernels decoded from the point + kernel = kernel_p.permute(0,2,3,1)[idx[:-1]] + kernel = kernel[None, :, None, None] + + # from point to mask + seg_pred = F.conv2d(mask_pred, kernel, stride=1).squeeze(0).sigmoid() + seg_mask = seg_pred > self.mask_threshold + sum_mask = seg_mask.sum((1, 2)).float() + seg_score = (seg_pred * seg_mask.float()).sum((1, 2)) / (sum_mask+1e-8) + + score = seg_score * cate_p[idx] + + # adaptive pyramid selection: get max-scoring fpn-level + if score > max_score: + max_score = score + max_fpn_level = fpn_level + max_idx = idx + + if max_score > 0: + new_cate_gt[max_fpn_level][max_idx] = 1. + + results = self.inference(new_cate_gt, kernel_pred, mask_pred, images.image_sizes, batched_inputs, points) + + # prompt -> point labels including instance size information + elif self.prompt == "point_with_size": + cate_gt = [] + for cat in targets[1]: + for c in cat: + c_onehot = torch.nn.functional.one_hot(c, num_classes=self.num_classes+1) + c_onehot = c_onehot[:, :, :self.num_classes].unsqueeze(0).float() + cate_gt.append(c_onehot) + + results = self.inference(cate_gt, kernel_pred, mask_pred, images.image_sizes, batched_inputs, points) + else: + raise "[ASSERT] MODEL.SOLOV2.PROMPT can be none, cls, point, point_with_size" + + return results + + def preprocess_image(self, batched_inputs): + """ + Normalize, pad and batch the input images. + """ + images = [x["image"].to(self.device) for x in batched_inputs] + images = [self.normalizer(x) for x in images] + images = ImageList.from_tensors(images, self.backbone.size_divisibility) + return images + + @torch.no_grad() + def get_ground_truth(self, gt_instances, mask_feat_size=None): + ins_label_list, cate_label_list, ins_ind_label_list, grid_order_list, cate_point_encoding_list, cate_point_original_list = [], [], [], [], [], [] + for img_idx in range(len(gt_instances)): + cur_ins_label_list, cur_cate_label_list, \ + cur_ins_ind_label_list, cur_grid_order_list, cur_cate_point_encoding_list, cur_cate_point_original_list = \ + self.get_ground_truth_single(img_idx, gt_instances, + mask_feat_size=mask_feat_size) + ins_label_list.append(cur_ins_label_list) + cate_label_list.append(cur_cate_label_list) + ins_ind_label_list.append(cur_ins_ind_label_list) + grid_order_list.append(cur_grid_order_list) + cate_point_encoding_list.append(cur_cate_point_encoding_list) + cate_point_original_list.append(cur_cate_point_original_list) + + return ins_label_list, cate_label_list, ins_ind_label_list, grid_order_list, cate_point_encoding_list, cate_point_original_list + + def get_ground_truth_single(self, img_idx, gt_instances, mask_feat_size): + gt_bboxes_raw = gt_instances[img_idx].gt_boxes.tensor + gt_labels_raw = gt_instances[img_idx].gt_classes + gt_masks_raw = gt_instances[img_idx].gt_masks.tensor + + ins_label_list = [] + cate_label_list = [] + ins_ind_label_list = [] + grid_order_list = [] + cate_point_encoding_list = [] + cate_point_original_list = [] + + # handling unlabeled data + if gt_labels_raw.shape[0] == 0: + for num_grid in self.num_grids: + ins_label = torch.zeros([0, mask_feat_size[0], mask_feat_size[1]], dtype=torch.uint8, device=self.device) + cate_label = torch.zeros([num_grid, num_grid], dtype=torch.int64, device=self.device) + cate_label = torch.fill_(cate_label, self.num_classes) + ins_ind_label = torch.zeros([num_grid ** 2], dtype=torch.bool, device=self.device) + cate_point_encoding = torch.zeros([num_grid, num_grid, self.num_classes], dtype=torch.int64, device=self.device) + cate_point_original = torch.zeros([num_grid, num_grid, self.num_classes], dtype=torch.int64, device=self.device) + + ins_label_list.append(ins_label) + cate_label_list.append(cate_label) + ins_ind_label_list.append(ins_ind_label) + grid_order_list.append([]) + cate_point_encoding_list.append(cate_point_encoding) + cate_point_original_list.append(cate_point_original) + + return ins_label_list, cate_label_list, ins_ind_label_list, grid_order_list, cate_point_encoding_list, cate_point_original_list + + device = gt_labels_raw[0].device + + # ins + gt_areas = torch.sqrt((gt_bboxes_raw[:, 2] - gt_bboxes_raw[:, 0]) * ( + gt_bboxes_raw[:, 3] - gt_bboxes_raw[:, 1])) + + for (lower_bound, upper_bound), stride, num_grid \ + in zip(self.scale_ranges, self.strides, self.num_grids): + + hit_indices = ((gt_areas >= lower_bound) & (gt_areas < upper_bound)).nonzero().flatten() + num_ins = len(hit_indices) + + ins_label = [] + grid_order = [] + cate_label = torch.zeros([num_grid, num_grid], dtype=torch.int64, device=device) + cate_label = torch.fill_(cate_label, self.num_classes) + ins_ind_label = torch.zeros([num_grid ** 2], dtype=torch.bool, device=device) + cate_point_encoding = torch.zeros([num_grid, num_grid, self.num_classes], dtype=torch.int64, device=device) + cate_point_original = torch.zeros([num_grid, num_grid, self.num_classes], dtype=torch.int64, device=device) + + if num_ins == 0: + ins_label = torch.zeros([0, mask_feat_size[0], mask_feat_size[1]], dtype=torch.uint8, device=device) + ins_label_list.append(ins_label) + cate_label_list.append(cate_label) + ins_ind_label_list.append(ins_ind_label) + grid_order_list.append([]) + cate_point_encoding_list.append(cate_point_encoding) + cate_point_original_list.append(cate_point_original) + continue + + gt_bboxes = gt_bboxes_raw[hit_indices] + gt_labels = gt_labels_raw[hit_indices] + gt_masks = gt_masks_raw[hit_indices, ...] + + half_ws = 0.5 * (gt_bboxes[:, 2] - gt_bboxes[:, 0]) * self.sigma + half_hs = 0.5 * (gt_bboxes[:, 3] - gt_bboxes[:, 1]) * self.sigma + + # mass center + mh, mw = gt_masks.shape[1:] + center_ws, center_hs = center_of_mass(gt_masks) + valid_mask_flags = gt_masks.sum(dim=-1).sum(dim=-1) > 0 + + output_stride = 4 + gt_masks = gt_masks.permute(1, 2, 0).to(dtype=torch.uint8).cpu().numpy() + gt_masks = imrescale(gt_masks, scale=1./output_stride) + if len(gt_masks.shape) == 2: + gt_masks = gt_masks[..., None] + gt_masks = torch.from_numpy(gt_masks).to(dtype=torch.uint8, device=device).permute(2, 0, 1) + + for seg_mask, gt_label, half_h, half_w, center_h, center_w, valid_mask_flag in zip(gt_masks, gt_labels, half_hs, half_ws, center_hs, center_ws, valid_mask_flags): + if not valid_mask_flag: + continue + upsampled_size = (mask_feat_size[0] * 4, mask_feat_size[1] * 4) + coord_w = int((center_w / upsampled_size[1]) // (1. / num_grid)) + coord_h = int((center_h / upsampled_size[0]) // (1. / num_grid)) + + # left, top, right, down -> box for positive region + if not self.training and self.prompt == 'point': + # point positive region (one-pixel positive sample assignment) + top_box = max(0, int(((center_h) / upsampled_size[0]) // (1. / num_grid))) + down_box = min(num_grid - 1, int(((center_h) / upsampled_size[0]) // (1. / num_grid))) + left_box = max(0, int(((center_w) / upsampled_size[1]) // (1. / num_grid))) + right_box = min(num_grid - 1, int(((center_w) / upsampled_size[1]) // (1. / num_grid))) + + else: # box positive region (widen positive sample assignment) + top_box = max(0, int(((center_h - half_h) / upsampled_size[0]) // (1. / num_grid))) + down_box = min(num_grid - 1, int(((center_h + half_h) / upsampled_size[0]) // (1. / num_grid))) + left_box = max(0, int(((center_w - half_w) / upsampled_size[1]) // (1. / num_grid))) + right_box = min(num_grid - 1, int(((center_w + half_w) / upsampled_size[1]) // (1. / num_grid))) + + top = max(top_box, coord_h-1) + down = min(down_box, coord_h+1) + left = max(coord_w-1, left_box) + right = min(right_box, coord_w+1) + + cate_label[top:(down+1), left:(right+1)] = gt_label + + enc_ch = center_h / upsampled_size[0] * PROJECTION + enc_cw = center_w / upsampled_size[1] * PROJECTION + cate_point_encoding[top:(down+1), left:(right+1)] = int(enc_ch) * PROJECTION + int(enc_cw) + + ori_ch = center_h / mh * PROJECTION + ori_cw = center_w / mw * PROJECTION + cate_point_original[top:(down+1), left:(right+1)] = int(ori_ch) * PROJECTION + int(ori_cw) + + for i in range(top, down+1): + for j in range(left, right+1): + label = int(i * num_grid + j) + + cur_ins_label = torch.zeros([mask_feat_size[0], mask_feat_size[1]], dtype=torch.uint8, + device=device) + cur_ins_label[:seg_mask.shape[0], :seg_mask.shape[1]] = seg_mask + ins_label.append(cur_ins_label) + ins_ind_label[label] = True + grid_order.append(label) + if len(ins_label) == 0: + ins_label = torch.zeros([0, mask_feat_size[0], mask_feat_size[1]], dtype=torch.uint8, device=device) + else: + ins_label = torch.stack(ins_label, 0) + ins_label_list.append(ins_label) + cate_label_list.append(cate_label) + ins_ind_label_list.append(ins_ind_label) + grid_order_list.append(grid_order) + cate_point_encoding_list.append(cate_point_encoding) + cate_point_original_list.append(cate_point_original) + + return ins_label_list, cate_label_list, ins_ind_label_list, grid_order_list, cate_point_encoding_list, cate_point_original_list + + + def loss(self, cate_preds, kernel_preds, ins_pred, targets): + pass + ins_label_list, cate_label_list, ins_ind_label_list, grid_order_list = targets[:4] + # ins + ins_labels = [torch.cat([ins_labels_level_img + for ins_labels_level_img in ins_labels_level], 0) + for ins_labels_level in zip(*ins_label_list)] + + kernel_preds = [[kernel_preds_level_img.view(kernel_preds_level_img.shape[0], -1)[:, grid_orders_level_img] + for kernel_preds_level_img, grid_orders_level_img in + zip(kernel_preds_level, grid_orders_level)] + for kernel_preds_level, grid_orders_level in zip(kernel_preds, zip(*grid_order_list))] + # generate masks + ins_pred_list = [] + for b_kernel_pred in kernel_preds: + b_mask_pred = [] + for idx, kernel_pred in enumerate(b_kernel_pred): + + if kernel_pred.size()[-1] == 0: + continue + cur_ins_pred = ins_pred[idx, ...] + H, W = cur_ins_pred.shape[-2:] + N, I = kernel_pred.shape + cur_ins_pred = cur_ins_pred.unsqueeze(0) + kernel_pred = kernel_pred.permute(1, 0).view(I, -1, 1, 1) + cur_ins_pred = F.conv2d(cur_ins_pred, kernel_pred, stride=1).view(-1, H, W) + b_mask_pred.append(cur_ins_pred) + if len(b_mask_pred) == 0: + b_mask_pred = None + else: + b_mask_pred = torch.cat(b_mask_pred, 0) + ins_pred_list.append(b_mask_pred) + + ins_ind_labels = [ + torch.cat([ins_ind_labels_level_img.flatten() + for ins_ind_labels_level_img in ins_ind_labels_level]) + for ins_ind_labels_level in zip(*ins_ind_label_list) + ] + flatten_ins_ind_labels = torch.cat(ins_ind_labels) + + num_ins = flatten_ins_ind_labels.sum() + + # dice loss + loss_ins = [] + for input, target in zip(ins_pred_list, ins_labels): + if input is None: + continue + input = torch.sigmoid(input) + loss_ins.append(dice_loss(input, target)) + + loss_ins_mean = torch.cat(loss_ins).mean() + loss_ins = loss_ins_mean * self.ins_loss_weight + + # cate + cate_labels = [ + torch.cat([cate_labels_level_img.flatten() + for cate_labels_level_img in cate_labels_level]) + for cate_labels_level in zip(*cate_label_list) + ] + flatten_cate_labels = torch.cat(cate_labels) + + cate_preds = [ + cate_pred.permute(0, 2, 3, 1).reshape(-1, self.num_classes) + for cate_pred in cate_preds + ] + flatten_cate_preds = torch.cat(cate_preds) + + # prepare one_hot + pos_inds = torch.nonzero(flatten_cate_labels != self.num_classes).squeeze(1) + + flatten_cate_labels_oh = torch.zeros_like(flatten_cate_preds) + flatten_cate_labels_oh[pos_inds, flatten_cate_labels[pos_inds]] = 1 + + loss_cate = self.focal_loss_weight * sigmoid_focal_loss_jit(flatten_cate_preds, flatten_cate_labels_oh, + gamma=self.focal_loss_gamma, + alpha=self.focal_loss_alpha, + reduction="sum") / (num_ins + 1) + return {'loss_ins': loss_ins, + 'loss_cate': loss_cate} + + @staticmethod + def split_feats(feats): + if len(feats) == 5: + return (F.interpolate(feats[0], scale_factor=0.5, mode='bilinear'), + feats[1], + feats[2], + feats[3], + F.interpolate(feats[4], size=feats[3].shape[-2:], mode='bilinear')) + + elif len(feats) == 4: + return (F.interpolate(feats[0], scale_factor=0.5, mode='bilinear'), + feats[1], + feats[2], + feats[3]) + + elif len(feats) == 3: + return (F.interpolate(feats[0], scale_factor=0.5, mode='bilinear'), + feats[1], + feats[2]) + + elif len(feats) == 2: + return (F.interpolate(feats[0], scale_factor=0.5, mode='bilinear'), + feats[1]) + + elif len(feats) == 1: + return (F.interpolate(feats[0], scale_factor=0.5, mode='bilinear'), ) + + + def inference(self, pred_cates, pred_kernels, pred_masks, cur_sizes, images, points): + assert len(pred_cates) == len(pred_kernels) + + results = [] + num_ins_levels = len(pred_cates) + for img_idx in range(len(images)): + # image size. + ori_img = images[img_idx] + height, width = ori_img["height"], ori_img["width"] + ori_size = (height, width) + + # prediction. + pred_cate = [pred_cates[i][img_idx].view(-1, self.num_classes).detach() + for i in range(num_ins_levels)] + pred_kernel = [pred_kernels[i][img_idx].permute(1, 2, 0).view(-1, self.num_kernels).detach() + for i in range(num_ins_levels)] + pred_mask = pred_masks[img_idx, ...].unsqueeze(0) + point = [points[i][img_idx].view(-1, self.num_classes).detach() + for i in range(num_ins_levels)] # beom + + pred_cate = torch.cat(pred_cate, dim=0) + pred_kernel = torch.cat(pred_kernel, dim=0) + point = torch.cat(point, dim=0) # beom + + # inference for single image. + result = self.inference_single_image(pred_cate, pred_kernel, pred_mask, + cur_sizes[img_idx], ori_size, point) + results.append({"instances": result}) + return results + + def inference_single_image( + self, cate_preds, kernel_preds, seg_preds, cur_size, ori_size, points + ): + # overall info. + h, w = cur_size + f_h, f_w = seg_preds.size()[-2:] + ratio = math.ceil(h/f_h) + upsampled_size_out = (int(f_h*ratio), int(f_w*ratio)) + + # process. + inds = (cate_preds > self.score_threshold) + cate_scores = cate_preds[inds] + points = points[inds] + + if len(cate_scores) == 0: + results = Instances(ori_size) + results.scores = torch.tensor([]) + results.pred_classes = torch.tensor([]) + results.pred_masks = torch.tensor([]) + results.pred_boxes = Boxes(torch.tensor([])) + return results + + # cate_labels & kernel_preds + inds = inds.nonzero() + cate_labels = inds[:, 1] + kernel_preds = kernel_preds[inds[:, 0]] + + # trans vector. + size_trans = cate_labels.new_tensor(self.num_grids).pow(2).cumsum(0) + strides = kernel_preds.new_ones(size_trans[-1]) + + n_stage = len(self.num_grids) + strides[:size_trans[0]] *= self.instance_strides[0] + for ind_ in range(1, n_stage): + strides[size_trans[ind_ - 1]:size_trans[ind_]] *= self.instance_strides[ind_] + strides = strides[inds[:, 0]] + + # mask encoding. + N, I = kernel_preds.shape + kernel_preds = kernel_preds.view(N, I, 1, 1) + seg_preds = F.conv2d(seg_preds, kernel_preds, stride=1).squeeze(0).sigmoid() + + # mask. + seg_masks = seg_preds > self.mask_threshold + sum_masks = seg_masks.sum((1, 2)).float() + + # filter. + keep = sum_masks > strides + if keep.sum() == 0: + results = Instances(ori_size) + results.scores = torch.tensor([]) + results.pred_classes = torch.tensor([]) + results.pred_masks = torch.tensor([]) + results.pred_boxes = Boxes(torch.tensor([])) + return results + + seg_masks = seg_masks[keep, ...] + seg_preds = seg_preds[keep, ...] + sum_masks = sum_masks[keep] + cate_scores = cate_scores[keep] + cate_labels = cate_labels[keep] + points = points[keep] + + # maskness. + seg_scores = (seg_preds * seg_masks.float()).sum((1, 2)) / sum_masks + cate_scores *= seg_scores + + # sort and keep top nms_pre + sort_inds = torch.argsort(cate_scores, descending=True) + if len(sort_inds) > self.max_before_nms: + sort_inds = sort_inds[:self.max_before_nms] + seg_masks = seg_masks[sort_inds, :, :] + seg_preds = seg_preds[sort_inds, :, :] + sum_masks = sum_masks[sort_inds] + cate_scores = cate_scores[sort_inds] + cate_labels = cate_labels[sort_inds] + points = points[sort_inds] + + if self.nms_type == "matrix": + # matrix nms & filter. + cate_scores = matrix_nms(cate_labels, seg_masks, sum_masks, cate_scores, + sigma=self.nms_sigma, kernel=self.nms_kernel) + keep = cate_scores >= self.update_threshold + elif self.nms_type == "mask": + # original mask nms. + keep = mask_nms(cate_labels, seg_masks, sum_masks, cate_scores, + nms_thr=self.mask_threshold) + else: + raise NotImplementedError + + if keep.sum() == 0: + results = Instances(ori_size) + results.scores = torch.tensor([]) + results.pred_classes = torch.tensor([]) + results.pred_masks = torch.tensor([]) + results.pred_boxes = Boxes(torch.tensor([])) + return results + + seg_preds = seg_preds[keep, :, :] + cate_scores = cate_scores[keep] + cate_labels = cate_labels[keep] + points = points[keep] + + # sort and keep top_k + sort_inds = torch.argsort(cate_scores, descending=True) + if len(sort_inds) > self.max_per_img: + sort_inds = sort_inds[:self.max_per_img] + seg_preds = seg_preds[sort_inds, :, :] + cate_scores = cate_scores[sort_inds] + cate_labels = cate_labels[sort_inds] + points = points[sort_inds] + + # reshape to original size. + seg_preds = F.interpolate(seg_preds.unsqueeze(0), + size=upsampled_size_out, + mode='bilinear')[:, :, :h, :w] + seg_masks = F.interpolate(seg_preds, + size=ori_size, + mode='bilinear').squeeze(0) + seg_masks = seg_masks > self.mask_threshold + + if self.eval_pseudo_label: + # set all confidence scores to 1.0 + cate_scores = torch.ones_like(cate_scores) + + results = Instances(ori_size) + results.pred_classes = cate_labels + results.scores = cate_scores + results.pred_masks = seg_masks + + # get bbox from mask + pred_boxes = torch.zeros(seg_masks.size(0), 4) + for i in range(seg_masks.size(0)): + + if self.prompt == "none": + mask = seg_masks[i].squeeze() + ys, xs = torch.where(mask) + try: + pred_boxes[i] = torch.tensor([xs.min(), ys.min(), xs.max(), ys.max()]).float() + except: + pred_boxes[i] = torch.tensor([0, 0, 0, 0]).float() + + else: + # saving point coordinate for each segment output + cy = points[i] // PROJECTION + cx = points[i] % PROJECTION + pred_boxes[i] = torch.tensor([cy, cx, 0, 0]).float() + + results.pred_boxes = Boxes(pred_boxes) + + return results + + +class SOLOv2InsHead(nn.Module): + def __init__(self, cfg, input_shape: List[ShapeSpec]): + """ + SOLOv2 Instance Head. + """ + super().__init__() + # fmt: off + self.num_classes = cfg.MODEL.SOLOV2.NUM_CLASSES + self.num_kernels = cfg.MODEL.SOLOV2.NUM_KERNELS + self.num_grids = cfg.MODEL.SOLOV2.NUM_GRIDS + self.instance_in_features = cfg.MODEL.SOLOV2.INSTANCE_IN_FEATURES + self.instance_strides = cfg.MODEL.SOLOV2.FPN_INSTANCE_STRIDES + self.instance_in_channels = cfg.MODEL.SOLOV2.INSTANCE_IN_CHANNELS # = fpn. + self.instance_channels = cfg.MODEL.SOLOV2.INSTANCE_CHANNELS + # Convolutions to use in the towers + self.type_dcn = cfg.MODEL.SOLOV2.TYPE_DCN + self.num_levels = len(self.instance_in_features) + assert self.num_levels == len(self.instance_strides), \ + print("Strides should match the features.") + # fmt: on + + head_configs = {"cate": (cfg.MODEL.SOLOV2.NUM_INSTANCE_CONVS, + cfg.MODEL.SOLOV2.USE_DCN_IN_INSTANCE, + False), + "kernel": (cfg.MODEL.SOLOV2.NUM_INSTANCE_CONVS, + cfg.MODEL.SOLOV2.USE_DCN_IN_INSTANCE, + cfg.MODEL.SOLOV2.USE_COORD_CONV) + } + + norm = None if cfg.MODEL.SOLOV2.NORM == "none" else cfg.MODEL.SOLOV2.NORM + in_channels = [s.channels for s in input_shape] + assert len(set(in_channels)) == 1, \ + print("Each level must have the same channel!") + in_channels = in_channels[0] + assert in_channels == cfg.MODEL.SOLOV2.INSTANCE_IN_CHANNELS, \ + print("In channels should equal to tower in channels!") + + for head in head_configs: + tower = [] + num_convs, use_deformable, use_coord = head_configs[head] + for i in range(num_convs): + conv_func = nn.Conv2d + if i == 0: + if use_coord: + chn = self.instance_in_channels + 2 + else: + chn = self.instance_in_channels + else: + chn = self.instance_channels + + tower.append(conv_func( + chn, self.instance_channels, + kernel_size=3, stride=1, + padding=1, bias=norm is None + )) + if norm == "GN": + tower.append(nn.GroupNorm(32, self.instance_channels)) + tower.append(nn.ReLU(inplace=True)) + self.add_module('{}_tower'.format(head), + nn.Sequential(*tower)) + + self.cate_pred = nn.Conv2d( + self.instance_channels, self.num_classes, + kernel_size=3, stride=1, padding=1 + ) + self.kernel_pred = nn.Conv2d( + self.instance_channels, self.num_kernels, + kernel_size=3, stride=1, padding=1 + ) + + for modules in [ + self.cate_tower, self.kernel_tower, + self.cate_pred, self.kernel_pred, + ]: + for l in modules.modules(): + if isinstance(l, nn.Conv2d): + torch.nn.init.normal_(l.weight, std=0.01) + if l.bias is not None: + nn.init.constant_(l.bias, 0) + + # initialize the bias for focal loss + prior_prob = cfg.MODEL.SOLOV2.PRIOR_PROB + bias_value = -math.log((1 - prior_prob) / prior_prob) + torch.nn.init.constant_(self.cate_pred.bias, bias_value) + + def forward(self, features): + """ + Arguments: + features (list[Tensor]): FPN feature map tensors in high to low resolution. + Each tensor in the list correspond to different feature levels. + + Returns: + pass + """ + cate_pred = [] + kernel_pred = [] + + for idx, feature in enumerate(features): + ins_kernel_feat = feature + # concat coord + x_range = torch.linspace(-1, 1, ins_kernel_feat.shape[-1], device=ins_kernel_feat.device) + y_range = torch.linspace(-1, 1, ins_kernel_feat.shape[-2], device=ins_kernel_feat.device) + y, x = torch.meshgrid(y_range, x_range) + y = y.expand([ins_kernel_feat.shape[0], 1, -1, -1]) + x = x.expand([ins_kernel_feat.shape[0], 1, -1, -1]) + coord_feat = torch.cat([x, y], 1) + ins_kernel_feat = torch.cat([ins_kernel_feat, coord_feat], 1) + + # individual feature. + kernel_feat = ins_kernel_feat + seg_num_grid = self.num_grids[idx] + kernel_feat = F.interpolate(kernel_feat, size=seg_num_grid, mode='bilinear') + cate_feat = kernel_feat[:, :-2, :, :] + + # kernel + kernel_feat = self.kernel_tower(kernel_feat) + kernel_pred.append(self.kernel_pred(kernel_feat)) + + # cate + cate_feat = self.cate_tower(cate_feat) + cate_pred.append(self.cate_pred(cate_feat)) + return cate_pred, kernel_pred + + +class SOLOv2MaskHead(nn.Module): + def __init__(self, cfg, input_shape: List[ShapeSpec]): + """ + SOLOv2 Mask Head. + """ + super().__init__() + # fmt: off + self.mask_on = cfg.MODEL.MASK_ON + self.num_masks = cfg.MODEL.SOLOV2.NUM_MASKS + self.mask_in_features = cfg.MODEL.SOLOV2.MASK_IN_FEATURES + self.mask_in_channels = cfg.MODEL.SOLOV2.MASK_IN_CHANNELS + self.mask_channels = cfg.MODEL.SOLOV2.MASK_CHANNELS + self.num_levels = len(input_shape) + assert self.num_levels == len(self.mask_in_features), \ + print("Input shape should match the features.") + # fmt: on + norm = None if cfg.MODEL.SOLOV2.NORM == "none" else cfg.MODEL.SOLOV2.NORM + + self.convs_all_levels = nn.ModuleList() + for i in range(self.num_levels): + convs_per_level = nn.Sequential() + if i == 0: + conv_tower = list() + conv_tower.append(nn.Conv2d( + self.mask_in_channels, self.mask_channels, + kernel_size=3, stride=1, + padding=1, bias=norm is None + )) + if norm == "GN": + conv_tower.append(nn.GroupNorm(32, self.mask_channels)) + conv_tower.append(nn.ReLU(inplace=False)) + convs_per_level.add_module('conv' + str(i), nn.Sequential(*conv_tower)) + self.convs_all_levels.append(convs_per_level) + continue + + for j in range(i): + if j == 0: + chn = self.mask_in_channels + 2 if i == 3 else self.mask_in_channels + conv_tower = list() + conv_tower.append(nn.Conv2d( + chn, self.mask_channels, + kernel_size=3, stride=1, + padding=1, bias=norm is None + )) + if norm == "GN": + conv_tower.append(nn.GroupNorm(32, self.mask_channels)) + conv_tower.append(nn.ReLU(inplace=False)) + convs_per_level.add_module('conv' + str(j), nn.Sequential(*conv_tower)) + upsample_tower = nn.Upsample( + scale_factor=2, mode='bilinear', align_corners=False) + convs_per_level.add_module( + 'upsample' + str(j), upsample_tower) + continue + conv_tower = list() + conv_tower.append(nn.Conv2d( + self.mask_channels, self.mask_channels, + kernel_size=3, stride=1, + padding=1, bias=norm is None + )) + if norm == "GN": + conv_tower.append(nn.GroupNorm(32, self.mask_channels)) + conv_tower.append(nn.ReLU(inplace=False)) + convs_per_level.add_module('conv' + str(j), nn.Sequential(*conv_tower)) + upsample_tower = nn.Upsample( + scale_factor=2, mode='bilinear', align_corners=False) + convs_per_level.add_module('upsample' + str(j), upsample_tower) + + self.convs_all_levels.append(convs_per_level) + + self.conv_pred = nn.Sequential( + nn.Conv2d( + self.mask_channels, self.num_masks, + kernel_size=1, stride=1, + padding=0, bias=norm is None), + nn.GroupNorm(32, self.num_masks), + nn.ReLU(inplace=True) + ) + + for modules in [self.convs_all_levels, self.conv_pred]: + for l in modules.modules(): + if isinstance(l, nn.Conv2d): + torch.nn.init.normal_(l.weight, std=0.01) + if l.bias is not None: + nn.init.constant_(l.bias, 0) + + def forward(self, features): + """ + Arguments: + features (list[Tensor]): FPN feature map tensors in high to low resolution. + Each tensor in the list correspond to different feature levels. + + Returns: + pass + """ + assert len(features) == self.num_levels, \ + print("The number of input features should be equal to the supposed level.") + + # bottom features first. + feature_add_all_level = self.convs_all_levels[0](features[0]) + for i in range(1, self.num_levels): + mask_feat = features[i] + if i == 3: # add for coord. + x_range = torch.linspace(-1, 1, mask_feat.shape[-1], device=mask_feat.device) + y_range = torch.linspace(-1, 1, mask_feat.shape[-2], device=mask_feat.device) + y, x = torch.meshgrid(y_range, x_range) + y = y.expand([mask_feat.shape[0], 1, -1, -1]) + x = x.expand([mask_feat.shape[0], 1, -1, -1]) + coord_feat = torch.cat([x, y], 1) + mask_feat = torch.cat([mask_feat, coord_feat], 1) + # add for top features. + feature_add_all_level = feature_add_all_level + self.convs_all_levels[i](mask_feat) + + mask_pred = self.conv_pred(feature_add_all_level) + return mask_pred diff --git a/AdelaiDet/adet/modeling/solov2/utils.py b/AdelaiDet/adet/modeling/solov2/utils.py new file mode 100755 index 0000000..a0a7f8b --- /dev/null +++ b/AdelaiDet/adet/modeling/solov2/utils.py @@ -0,0 +1,212 @@ +import cv2 +import torch +import torch.nn.functional as F + + +def _scale_size(size, scale): + """Rescale a size by a ratio. + Args: + size (tuple[int]): (w, h). + scale (float): Scaling factor. + Returns: + tuple[int]: scaled size. + """ + w, h = size + return int(w * float(scale) + 0.5), int(h * float(scale) + 0.5) + + +interp_codes = { + 'nearest': cv2.INTER_NEAREST, + 'bilinear': cv2.INTER_LINEAR, + 'bicubic': cv2.INTER_CUBIC, + 'area': cv2.INTER_AREA, + 'lanczos': cv2.INTER_LANCZOS4 +} + + +def imresize(img, + size, + return_scale=False, + interpolation='bilinear', + out=None): + """Resize image to a given size. + Args: + img (ndarray): The input image. + size (tuple[int]): Target size (w, h). + return_scale (bool): Whether to return `w_scale` and `h_scale`. + interpolation (str): Interpolation method, accepted values are + "nearest", "bilinear", "bicubic", "area", "lanczos". + out (ndarray): The output destination. + Returns: + tuple | ndarray: (`resized_img`, `w_scale`, `h_scale`) or + `resized_img`. + """ + h, w = img.shape[:2] + resized_img = cv2.resize( + img, size, dst=out, interpolation=interp_codes[interpolation]) + if not return_scale: + return resized_img + else: + w_scale = size[0] / w + h_scale = size[1] / h + return resized_img, w_scale, h_scale + + +def imresize_like(img, dst_img, return_scale=False, interpolation='bilinear'): + """Resize image to the same size of a given image. + Args: + img (ndarray): The input image. + dst_img (ndarray): The target image. + return_scale (bool): Whether to return `w_scale` and `h_scale`. + interpolation (str): Same as :func:`resize`. + Returns: + tuple or ndarray: (`resized_img`, `w_scale`, `h_scale`) or + `resized_img`. + """ + h, w = dst_img.shape[:2] + return imresize(img, (w, h), return_scale, interpolation) + + +def rescale_size(old_size, scale, return_scale=False): + """Calculate the new size to be rescaled to. + Args: + old_size (tuple[int]): The old size (w, h) of image. + scale (float | tuple[int]): The scaling factor or maximum size. + If it is a float number, then the image will be rescaled by this + factor, else if it is a tuple of 2 integers, then the image will + be rescaled as large as possible within the scale. + return_scale (bool): Whether to return the scaling factor besides the + rescaled image size. + Returns: + tuple[int]: The new rescaled image size. + """ + w, h = old_size + if isinstance(scale, (float, int)): + if scale <= 0: + raise ValueError(f'Invalid scale {scale}, must be positive.') + scale_factor = scale + elif isinstance(scale, tuple): + max_long_edge = max(scale) + max_short_edge = min(scale) + scale_factor = min(max_long_edge / max(h, w), + max_short_edge / min(h, w)) + else: + raise TypeError( + f'Scale must be a number or tuple of int, but got {type(scale)}') + + new_size = _scale_size((w, h), scale_factor) + + if return_scale: + return new_size, scale_factor + else: + return new_size + + +def imrescale(img, scale, return_scale=False, interpolation='bilinear'): + """Resize image while keeping the aspect ratio. + Args: + img (ndarray): The input image. + scale (float | tuple[int]): The scaling factor or maximum size. + If it is a float number, then the image will be rescaled by this + factor, else if it is a tuple of 2 integers, then the image will + be rescaled as large as possible within the scale. + return_scale (bool): Whether to return the scaling factor besides the + rescaled image. + interpolation (str): Same as :func:`resize`. + Returns: + ndarray: The rescaled image. + """ + h, w = img.shape[:2] + new_size, scale_factor = rescale_size((w, h), scale, return_scale=True) + rescaled_img = imresize(img, new_size, interpolation=interpolation) + if return_scale: + return rescaled_img, scale_factor + else: + return rescaled_img + +def center_of_mass(bitmasks): + _, h, w = bitmasks.size() + + ys = torch.arange(0, h, dtype=torch.float32, device=bitmasks.device) + xs = torch.arange(0, w, dtype=torch.float32, device=bitmasks.device) + + m00 = bitmasks.sum(dim=-1).sum(dim=-1).clamp(min=1e-6) + m10 = (bitmasks * xs).sum(dim=-1).sum(dim=-1) + m01 = (bitmasks * ys[:, None]).sum(dim=-1).sum(dim=-1) + center_x = m10 / m00 + center_y = m01 / m00 + return center_x, center_y + +def point_nms(heat, kernel=2): + # kernel must be 2 + hmax = F.max_pool2d(heat, (kernel, kernel), stride=1, padding=1) + keep = (hmax[:, :, :-1, :-1] == heat).float() + return heat * keep + +def matrix_nms(cate_labels, seg_masks, sum_masks, cate_scores, sigma=2.0, kernel='gaussian'): + n_samples = len(cate_labels) + if n_samples == 0: + return [] + + seg_masks = seg_masks.reshape(n_samples, -1).float() + # inter. + inter_matrix = torch.mm(seg_masks, seg_masks.transpose(1, 0)) + # union. + sum_masks_x = sum_masks.expand(n_samples, n_samples) + # iou. + iou_matrix = (inter_matrix / (sum_masks_x + sum_masks_x.transpose(1, 0) - inter_matrix)).triu(diagonal=1) + # label_specific matrix. + cate_labels_x = cate_labels.expand(n_samples, n_samples) + label_matrix = (cate_labels_x == cate_labels_x.transpose(1, 0)).float().triu(diagonal=1) + + # IoU compensation + compensate_iou, _ = (iou_matrix * label_matrix).max(0) + compensate_iou = compensate_iou.expand(n_samples, n_samples).transpose(1, 0) + + # IoU decay / soft nms + delay_iou = iou_matrix * label_matrix + + # matrix nms + if kernel == 'linear': + delay_matrix = (1 - delay_iou) / (1 - compensate_iou) + delay_coefficient, _ = delay_matrix.min(0) + else: + delay_matrix = torch.exp(-1 * sigma * (delay_iou ** 2)) + compensate_matrix = torch.exp(-1 * sigma * (compensate_iou ** 2)) + delay_coefficient, _ = (delay_matrix / compensate_matrix).min(0) + + # update the score. + cate_scores_update = cate_scores * delay_coefficient + + return cate_scores_update + + +def mask_nms(cate_labels, seg_masks, sum_masks, cate_scores, nms_thr=0.5): + n_samples = len(cate_scores) + if n_samples == 0: + return [] + + keep = seg_masks.new_ones(cate_scores.shape) + seg_masks = seg_masks.float() + + for i in range(n_samples - 1): + if not keep[i]: + continue + mask_i = seg_masks[i] + label_i = cate_labels[i] + for j in range(i + 1, n_samples, 1): + if not keep[j]: + continue + mask_j = seg_masks[j] + label_j = cate_labels[j] + if label_i != label_j: + continue + # overlaps + inter = (mask_i * mask_j).sum() + union = sum_masks[i] + sum_masks[j] - inter + if union > 0: + if inter / union > nms_thr: + keep[j] = False + else: + keep[j] = False + return keep diff --git a/AdelaiDet/adet/structures/__init__.py b/AdelaiDet/adet/structures/__init__.py new file mode 100755 index 0000000..fb84eb0 --- /dev/null +++ b/AdelaiDet/adet/structures/__init__.py @@ -0,0 +1 @@ +from .beziers import Beziers \ No newline at end of file diff --git a/AdelaiDet/adet/structures/beziers.py b/AdelaiDet/adet/structures/beziers.py new file mode 100755 index 0000000..2f222a5 --- /dev/null +++ b/AdelaiDet/adet/structures/beziers.py @@ -0,0 +1,44 @@ +from typing import Union +import torch + + +class Beziers: + """ + This structure stores a list of bezier curves as a Nx16 torch.Tensor. + It will support some common methods about bezier shapes + (`area`, `clip`, `nonempty`, etc), + and also behaves like a Tensor + (support indexing, `to(device)`, `.device`, and iteration over all boxes) + + Attributes: + tensor (torch.Tensor): float matrix of Nx4. Each row is (x1, y1, x2, y2). + """ + + def __init__(self, tensor: torch.Tensor): + """ + Args: + tensor (Tensor[float]): a Nx4 matrix. Each row is (x1, y1, x2, y2). + """ + device = tensor.device if isinstance(tensor, torch.Tensor) else torch.device("cpu") + tensor = torch.as_tensor(tensor, dtype=torch.float32, device=device) + if tensor.numel() == 0: + # Use reshape, so we don't end up creating a new tensor that does not depend on + # the inputs (and consequently confuses jit) + tensor = tensor.reshape((0, 16)).to(dtype=torch.float32, device=device) + assert tensor.dim() == 2 and tensor.size(-1) == 16, tensor.size() + + self.tensor = tensor + + def to(self, device: str) -> "Beziers": + return Beziers(self.tensor.to(device)) + + def __getitem__(self, item: Union[int, slice, torch.BoolTensor]) -> "Beziers": + """ + Returns: + Beziers: Create a new :class:`Beziers` by indexing. + """ + if isinstance(item, int): + return Beziers(self.tensor[item].view(1, -1)) + b = self.tensor[item] + assert b.dim() == 2, "Indexing on Boxes with {} failed to return a matrix!".format(item) + return Beziers(b) \ No newline at end of file diff --git a/AdelaiDet/adet/utils/__init__.py b/AdelaiDet/adet/utils/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/AdelaiDet/adet/utils/comm.py b/AdelaiDet/adet/utils/comm.py new file mode 100755 index 0000000..78f2f32 --- /dev/null +++ b/AdelaiDet/adet/utils/comm.py @@ -0,0 +1,103 @@ +import torch +import torch.nn.functional as F +import torch.distributed as dist + +from detectron2.utils.comm import get_world_size + + +def reduce_sum(tensor): + world_size = get_world_size() + if world_size < 2: + return tensor + tensor = tensor.clone() + dist.all_reduce(tensor, op=dist.ReduceOp.SUM) + return tensor + + +def reduce_mean(tensor): + num_gpus = get_world_size() + total = reduce_sum(tensor) + return total.float() / num_gpus + + +def aligned_bilinear(tensor, factor): + assert tensor.dim() == 4 + assert factor >= 1 + assert int(factor) == factor + + if factor == 1: + return tensor + + h, w = tensor.size()[2:] + tensor = F.pad(tensor, pad=(0, 1, 0, 1), mode="replicate") + oh = factor * h + 1 + ow = factor * w + 1 + tensor = F.interpolate( + tensor, size=(oh, ow), + mode='bilinear', + align_corners=True + ) + tensor = F.pad( + tensor, pad=(factor // 2, 0, factor // 2, 0), + mode="replicate" + ) + + return tensor[:, :, :oh - 1, :ow - 1] + + +def compute_locations(h, w, stride, device): + shifts_x = torch.arange( + 0, w * stride, step=stride, + dtype=torch.float32, device=device + ) + shifts_y = torch.arange( + 0, h * stride, step=stride, + dtype=torch.float32, device=device + ) + shift_y, shift_x = torch.meshgrid(shifts_y, shifts_x) + shift_x = shift_x.reshape(-1) + shift_y = shift_y.reshape(-1) + locations = torch.stack((shift_x, shift_y), dim=1) + stride // 2 + return locations + + +def compute_ious(pred, target): + """ + Args: + pred: Nx4 predicted bounding boxes + target: Nx4 target bounding boxes + Both are in the form of FCOS prediction (l, t, r, b) + """ + pred_left = pred[:, 0] + pred_top = pred[:, 1] + pred_right = pred[:, 2] + pred_bottom = pred[:, 3] + + target_left = target[:, 0] + target_top = target[:, 1] + target_right = target[:, 2] + target_bottom = target[:, 3] + + target_aera = (target_left + target_right) * \ + (target_top + target_bottom) + pred_aera = (pred_left + pred_right) * \ + (pred_top + pred_bottom) + + w_intersect = torch.min(pred_left, target_left) + \ + torch.min(pred_right, target_right) + h_intersect = torch.min(pred_bottom, target_bottom) + \ + torch.min(pred_top, target_top) + + g_w_intersect = torch.max(pred_left, target_left) + \ + torch.max(pred_right, target_right) + g_h_intersect = torch.max(pred_bottom, target_bottom) + \ + torch.max(pred_top, target_top) + ac_uion = g_w_intersect * g_h_intersect + + area_intersect = w_intersect * h_intersect + area_union = target_aera + pred_aera - area_intersect + + ious = (area_intersect + 1.0) / (area_union + 1.0) + gious = ious - (ac_uion - area_union) / ac_uion + + return ious, gious diff --git a/AdelaiDet/adet/utils/measures.py b/AdelaiDet/adet/utils/measures.py new file mode 100755 index 0000000..b99a4be --- /dev/null +++ b/AdelaiDet/adet/utils/measures.py @@ -0,0 +1,192 @@ +# coding: utf-8 +# Adapted from https://github.com/ShichenLiu/CondenseNet/blob/master/utils.py +from __future__ import absolute_import +from __future__ import unicode_literals +from __future__ import print_function +from __future__ import division + +import operator + +from functools import reduce + + +def get_num_gen(gen): + return sum(1 for x in gen) + + +def is_pruned(layer): + try: + layer.mask + return True + except AttributeError: + return False + + +def is_leaf(model): + return get_num_gen(model.children()) == 0 + + +def get_layer_info(layer): + layer_str = str(layer) + type_name = layer_str[:layer_str.find('(')].strip() + return type_name + + +def get_layer_param(model): + return sum([reduce(operator.mul, i.size(), 1) for i in model.parameters()]) + + +### The input batch size should be 1 to call this function +def measure_layer(layer, *args): + global count_ops, count_params + + for x in args: + delta_ops = 0 + delta_params = 0 + multi_add = 1 + type_name = get_layer_info(layer) + + ### ops_conv + if type_name in ['Conv2d']: + out_h = int((x.size()[2] + 2 * layer.padding[0] / layer.dilation[0] - layer.kernel_size[0]) / + layer.stride[0] + 1) + out_w = int((x.size()[3] + 2 * layer.padding[1] / layer.dilation[1] - layer.kernel_size[1]) / + layer.stride[1] + 1) + delta_ops = layer.in_channels * layer.out_channels * layer.kernel_size[0] * layer.kernel_size[1] * out_h * out_w / layer.groups * multi_add + delta_params = get_layer_param(layer) + + elif type_name in ['ConvTranspose2d']: + _, _, in_h, in_w = x.size() + out_h = int((in_h-1)*layer.stride[0] - 2 * layer.padding[0] + layer.kernel_size[0] + layer.output_padding[0]) + out_w = int((in_w-1)*layer.stride[1] - 2 * layer.padding[1] + layer.kernel_size[1] + layer.output_padding[1]) + delta_ops = layer.in_channels * layer.out_channels * layer.kernel_size[0] * \ + layer.kernel_size[1] * out_h * out_w / layer.groups * multi_add + delta_params = get_layer_param(layer) + + ### ops_learned_conv + elif type_name in ['LearnedGroupConv']: + measure_layer(layer.relu, x) + measure_layer(layer.norm, x) + conv = layer.conv + out_h = int((x.size()[2] + 2 * conv.padding[0] - conv.kernel_size[0]) / + conv.stride[0] + 1) + out_w = int((x.size()[3] + 2 * conv.padding[1] - conv.kernel_size[1]) / + conv.stride[1] + 1) + delta_ops = conv.in_channels * conv.out_channels * conv.kernel_size[0] * conv.kernel_size[1] * out_h * out_w / layer.condense_factor * multi_add + delta_params = get_layer_param(conv) / layer.condense_factor + + ### ops_nonlinearity + elif type_name in ['ReLU', 'ReLU6']: + delta_ops = x.numel() + delta_params = get_layer_param(layer) + + ### ops_pooling + elif type_name in ['AvgPool2d', 'MaxPool2d']: + in_w = x.size()[2] + kernel_ops = layer.kernel_size * layer.kernel_size + out_w = int((in_w + 2 * layer.padding - layer.kernel_size) / layer.stride + 1) + out_h = int((in_w + 2 * layer.padding - layer.kernel_size) / layer.stride + 1) + delta_ops = x.size()[0] * x.size()[1] * out_w * out_h * kernel_ops + delta_params = get_layer_param(layer) + + elif type_name in ['LastLevelMaxPool']: + pass + + elif type_name in ['AdaptiveAvgPool2d']: + delta_ops = x.size()[0] * x.size()[1] * x.size()[2] * x.size()[3] + delta_params = get_layer_param(layer) + + elif type_name in ['ZeroPad2d', 'RetinaNetPostProcessor']: + pass + #delta_ops = x.size()[0] * x.size()[1] * x.size()[2] * x.size()[3] + #delta_params = get_layer_param(layer) + + ### ops_linear + elif type_name in ['Linear']: + weight_ops = layer.weight.numel() * multi_add + bias_ops = layer.bias.numel() + delta_ops = x.size()[0] * (weight_ops + bias_ops) + delta_params = get_layer_param(layer) + + ### ops_nothing + elif type_name in ['BatchNorm2d', 'Dropout2d', 'DropChannel', 'Dropout', 'FrozenBatchNorm2d', 'GroupNorm']: + delta_params = get_layer_param(layer) + + elif type_name in ['SumTwo']: + delta_ops = x.numel() + + elif type_name in ['AggregateCell']: + if not layer.pre_transform: + delta_ops = 2 * x.numel() # twice for each input + else: + measure_layer(layer.branch_1, x) + measure_layer(layer.branch_2, x) + delta_params = get_layer_param(layer) + + elif type_name in ['Identity', 'Zero']: + pass + + elif type_name in ['Scale']: + delta_params = get_layer_param(layer) + delta_ops = x.numel() + + elif type_name in ['FCOSPostProcessor', 'RPNPostProcessor', 'KeypointPostProcessor', + 'ROIAlign', 'PostProcessor', 'KeypointRCNNPredictor', + 'NaiveSyncBatchNorm', 'Upsample', 'Sequential']: + pass + + elif type_name in ['DeformConv']: + # don't count bilinear + offset_conv = list(layer.parameters())[0] + delta_ops = reduce(operator.mul, offset_conv.size(), x.size()[2] * x.size()[3]) + out_h = int((x.size()[2] + 2 * layer.padding[0] / layer.dilation[0] + - layer.kernel_size[0]) / layer.stride[0] + 1) + out_w = int((x.size()[3] + 2 * layer.padding[1] / layer.dilation[1] + - layer.kernel_size[1]) / layer.stride[1] + 1) + delta_ops += layer.in_channels * layer.out_channels * layer.kernel_size[0] * layer.kernel_size[1] * out_h * out_w / layer.groups * multi_add + delta_params = get_layer_param(layer) + + ### unknown layer type + else: + raise TypeError('unknown layer type: %s' % type_name) + + count_ops += delta_ops + count_params += delta_params + return + + +def measure_model(model, x): + global count_ops, count_params + count_ops = 0 + count_params = 0 + + def should_measure(x): + return is_leaf(x) or is_pruned(x) + + def modify_forward(model): + for child in model.children(): + if should_measure(child): + def new_forward(m): + def lambda_forward(*args): + measure_layer(m, *args) + return m.old_forward(*args) + return lambda_forward + child.old_forward = child.forward + child.forward = new_forward(child) + else: + modify_forward(child) + + def restore_forward(model): + for child in model.children(): + # leaf node + if is_leaf(child) and hasattr(child, 'old_forward'): + child.forward = child.old_forward + child.old_forward = None + else: + restore_forward(child) + + modify_forward(model) + out = model.forward(x) + restore_forward(model) + + return out, count_ops, count_params diff --git a/AdelaiDet/adet/utils/visualizer.py b/AdelaiDet/adet/utils/visualizer.py new file mode 100755 index 0000000..8b81286 --- /dev/null +++ b/AdelaiDet/adet/utils/visualizer.py @@ -0,0 +1,161 @@ +import numpy as np +import pickle +from detectron2.utils.visualizer import Visualizer +import matplotlib.colors as mplc +import matplotlib.font_manager as mfm + +class TextVisualizer(Visualizer): + def __init__(self, image, metadata, instance_mode, cfg): + Visualizer.__init__(self, image, metadata, instance_mode=instance_mode) + self.voc_size = cfg.MODEL.BATEXT.VOC_SIZE + self.use_customer_dictionary = cfg.MODEL.BATEXT.CUSTOM_DICT + if not self.use_customer_dictionary: + self.CTLABELS = [' ','!','"','#','$','%','&','\'','(',')','*','+',',','-','.','/','0','1','2','3','4','5','6','7','8','9',':',';','<','=','>','?','@','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','[','\\',']','^','_','`','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','{','|','}','~'] + else: + with open(self.use_customer_dictionary, 'rb') as fp: + self.CTLABELS = pickle.load(fp) + assert(int(self.voc_size - 1) == len(self.CTLABELS)), "voc_size is not matched dictionary size, got {} and {}.".format(int(self.voc_size - 1), len(self.CTLABELS)) + + def draw_instance_predictions(self, predictions): + beziers = predictions.beziers.numpy() + scores = predictions.scores.tolist() + recs = predictions.recs + + self.overlay_instances(beziers, recs, scores) + + return self.output + + def _bezier_to_poly(self, bezier): + # bezier to polygon + u = np.linspace(0, 1, 20) + bezier = bezier.reshape(2, 4, 2).transpose(0, 2, 1).reshape(4, 4) + points = np.outer((1 - u) ** 3, bezier[:, 0]) \ + + np.outer(3 * u * ((1 - u) ** 2), bezier[:, 1]) \ + + np.outer(3 * (u ** 2) * (1 - u), bezier[:, 2]) \ + + np.outer(u ** 3, bezier[:, 3]) + points = np.concatenate((points[:, :2], points[:, 2:]), axis=0) + + return points + + def _decode_recognition(self, rec): + s = '' + for c in rec: + c = int(c) + if c < self.voc_size - 1: + if self.voc_size == 96: + s += self.CTLABELS[c] + else: + s += str(chr(self.CTLABELS[c])) + elif c == self.voc_size -1: + s += u'口' + return s + + def _ctc_decode_recognition(self, rec): + # ctc decoding + last_char = False + s = '' + for c in rec: + c = int(c) + if c < self.voc_size - 1: + if last_char != c: + if self.voc_size == 96: + s += self.CTLABELS[c] + last_char = c + else: + s += str(chr(self.CTLABELS[c])) + last_char = c + elif c == self.voc_size -1: + s += u'口' + else: + last_char = False + return s + + def overlay_instances(self, beziers, recs, scores, alpha=0.5): + color = (0.1, 0.2, 0.5) + + for bezier, rec, score in zip(beziers, recs, scores): + polygon = self._bezier_to_poly(bezier) + self.draw_polygon(polygon, color, alpha=alpha) + + # draw text in the top left corner + text = self._decode_recognition(rec) + text = "{:.3f}: {}".format(score, text) + lighter_color = self._change_color_brightness(color, brightness_factor=0.7) + text_pos = polygon[0] + horiz_align = "left" + font_size = self._default_font_size + + self.draw_text( + text, + text_pos, + color=lighter_color, + horizontal_alignment=horiz_align, + font_size=font_size, + draw_chinese=False if self.voc_size == 96 else True + ) + + + def draw_text( + self, + text, + position, + *, + font_size=None, + color="g", + horizontal_alignment="center", + rotation=0, + draw_chinese=False + ): + """ + Args: + text (str): class label + position (tuple): a tuple of the x and y coordinates to place text on image. + font_size (int, optional): font of the text. If not provided, a font size + proportional to the image width is calculated and used. + color: color of the text. Refer to `matplotlib.colors` for full list + of formats that are accepted. + horizontal_alignment (str): see `matplotlib.text.Text` + rotation: rotation angle in degrees CCW + Returns: + output (VisImage): image object with text drawn. + """ + if not font_size: + font_size = self._default_font_size + + # since the text background is dark, we don't want the text to be dark + color = np.maximum(list(mplc.to_rgb(color)), 0.2) + color[np.argmax(color)] = max(0.8, np.max(color)) + + x, y = position + if draw_chinese: + font_path = "./simsun.ttc" + prop = mfm.FontProperties(fname=font_path) + self.output.ax.text( + x, + y, + text, + size=font_size * self.output.scale, + family="sans-serif", + bbox={"facecolor": "black", "alpha": 0.8, "pad": 0.7, "edgecolor": "none"}, + verticalalignment="top", + horizontalalignment=horizontal_alignment, + color=color, + zorder=10, + rotation=rotation, + fontproperties=prop + ) + else: + self.output.ax.text( + x, + y, + text, + size=font_size * self.output.scale, + family="sans-serif", + bbox={"facecolor": "black", "alpha": 0.8, "pad": 0.7, "edgecolor": "none"}, + verticalalignment="top", + horizontalalignment=horizontal_alignment, + color=color, + zorder=10, + rotation=rotation, + ) + return self.output \ No newline at end of file diff --git a/AdelaiDet/configs/BAText/Base-BAText.yaml b/AdelaiDet/configs/BAText/Base-BAText.yaml new file mode 100755 index 0000000..25bc95b --- /dev/null +++ b/AdelaiDet/configs/BAText/Base-BAText.yaml @@ -0,0 +1,33 @@ +MODEL: + META_ARCHITECTURE: "OneStageRCNN" + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "BAText" + FCOS: + NMS_TH: 0.5 + THRESH_WITH_CTR: False + USE_SCALE: False + NUM_CLASSES: 1 + INFERENCE_TH_TRAIN: 0.7 + INFERENCE_TH_TEST: 0.45 + ROI_HEADS: + NAME: "TextHead" + IOU_THRESHOLDS: [0.5] +SOLVER: + CLIP_GRADIENTS: + ENABLED: True +INPUT: + HFLIP_TRAIN: False + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800, 832, 864, 896) + MAX_SIZE_TRAIN: 1600 + MIN_SIZE_TEST: 1000 + MAX_SIZE_TEST: 1824 + CROP: + ENABLED: True + CROP_INSTANCE: False + SIZE: [0.1, 0.1] \ No newline at end of file diff --git a/AdelaiDet/configs/BAText/CTW1500/Base-CTW1500.yaml b/AdelaiDet/configs/BAText/CTW1500/Base-CTW1500.yaml new file mode 100755 index 0000000..0021fd5 --- /dev/null +++ b/AdelaiDet/configs/BAText/CTW1500/Base-CTW1500.yaml @@ -0,0 +1,13 @@ +_BASE_: "../Base-BAText.yaml" +MODEL: + BATEXT: + POOLER_RESOLUTION: (8,128) + NUM_CHARS: 100 + FCOS: + INFERENCE_TH_TEST: 0.6 +DATASETS: + TRAIN: ("ctw1500_word_train",) + TEST: ("ctw1500_word_test",) +INPUT: + MIN_SIZE_TEST: 800 + MAX_SIZE_TEST: 1024 diff --git a/AdelaiDet/configs/BAText/CTW1500/attn_R_50.yaml b/AdelaiDet/configs/BAText/CTW1500/attn_R_50.yaml new file mode 100755 index 0000000..258cf1e --- /dev/null +++ b/AdelaiDet/configs/BAText/CTW1500/attn_R_50.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-CTW1500.yaml" +MODEL: + WEIGHTS: "weights/batext/pretrain_attn_R_50.pth" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" # "attn" "rnn" +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.001 + STEPS: (80000,) + MAX_ITER: 120000 + CHECKPOINT_PERIOD: 10000 +TEST: + EVAL_PERIOD: 10000 +OUTPUT_DIR: "output/batext/ctw1500/attn_R_50" diff --git a/AdelaiDet/configs/BAText/CTW1500/v2_attn_R_50.yaml b/AdelaiDet/configs/BAText/CTW1500/v2_attn_R_50.yaml new file mode 100755 index 0000000..ddcd73a --- /dev/null +++ b/AdelaiDet/configs/BAText/CTW1500/v2_attn_R_50.yaml @@ -0,0 +1,28 @@ +_BASE_: "Base-CTW1500.yaml" +MODEL: + WEIGHTS: "model_v2_pretrain.pth" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True + FCOS: + # Best e2e: 0.5; Best det: 0.3 + INFERENCE_TH_TEST: 0.5 +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.001 + STEPS: (80000, ) + MAX_ITER: 100000 + CHECKPOINT_PERIOD: 10000 +TEST: + EVAL_PERIOD: 10000 +OUTPUT_DIR: "output/batext/ctw1500/v2_attn_R_50" diff --git a/AdelaiDet/configs/BAText/ICDAR2015/Base-ic15.yaml b/AdelaiDet/configs/BAText/ICDAR2015/Base-ic15.yaml new file mode 100755 index 0000000..2bcd36c --- /dev/null +++ b/AdelaiDet/configs/BAText/ICDAR2015/Base-ic15.yaml @@ -0,0 +1,4 @@ +_BASE_: "../Base-BAText.yaml" +DATASETS: + TRAIN: ("icdar2015_train",) + TEST: ("icdar2015_test",) \ No newline at end of file diff --git a/AdelaiDet/configs/BAText/ICDAR2015/v1_attn_R_50.yaml b/AdelaiDet/configs/BAText/ICDAR2015/v1_attn_R_50.yaml new file mode 100755 index 0000000..cddc052 --- /dev/null +++ b/AdelaiDet/configs/BAText/ICDAR2015/v1_attn_R_50.yaml @@ -0,0 +1,20 @@ +_BASE_: "Base-ic15.yaml" +MODEL: + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" +SOLVER: + IMS_PER_BATCH: 4 + BASE_LR: 0.001 + MAX_ITER: 5500 + CHECKPOINT_PERIOD: 500 +INPUT: + MIN_SIZE_TRAIN: (980, 1044, 1108, 1172, 1236, 1300, 1364, 1428, 1492) + MAX_SIZE_TRAIN: 2900 + MIN_SIZE_TEST: 2000 + MAX_SIZE_TEST: 4000 + IS_ROTATE: True +TEST: + EVAL_PERIOD: 500 +OUTPUT_DIR: "output/batext/ic15/v1_attn_R_50" diff --git a/AdelaiDet/configs/BAText/ICDAR2015/v2_attn_R_50.yaml b/AdelaiDet/configs/BAText/ICDAR2015/v2_attn_R_50.yaml new file mode 100755 index 0000000..e93ae62 --- /dev/null +++ b/AdelaiDet/configs/BAText/ICDAR2015/v2_attn_R_50.yaml @@ -0,0 +1,33 @@ +_BASE_: "Base-ic15.yaml" +MODEL: + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True + POOLER_RESOLUTION: (16, 64) + FCOS: + INFERENCE_TH_TEST: 0.4 + NMS_TH: 0.4 +SOLVER: + IMS_PER_BATCH: 4 + BASE_LR: 0.001 + MAX_ITER: 5500 + CHECKPOINT_PERIOD: 500 +INPUT: + MIN_SIZE_TRAIN: (980, 1044, 1108, 1172, 1236, 1300, 1364, 1428, 1492) + MAX_SIZE_TRAIN: 2900 + MIN_SIZE_TEST: 2000 + MAX_SIZE_TEST: 4000 + IS_ROTATE: True +TEST: + EVAL_PERIOD: 500 +OUTPUT_DIR: "output/batext/ic15/v2_attn_R_50" diff --git a/AdelaiDet/configs/BAText/Pretrain/Base-Chn-Pretrain.yaml b/AdelaiDet/configs/BAText/Pretrain/Base-Chn-Pretrain.yaml new file mode 100755 index 0000000..0eeeb89 --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/Base-Chn-Pretrain.yaml @@ -0,0 +1,4 @@ +_BASE_: "../Base-BAText.yaml" +DATASETS: + TRAIN: ("chnsyn_train", "rects_train", "rects_val", "lsvt_train", "art_train", ) + TEST: ("rects_test", ) diff --git a/AdelaiDet/configs/BAText/Pretrain/Base-Pretrain-ic15.yaml b/AdelaiDet/configs/BAText/Pretrain/Base-Pretrain-ic15.yaml new file mode 100755 index 0000000..bd69190 --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/Base-Pretrain-ic15.yaml @@ -0,0 +1,4 @@ +_BASE_: "../Base-BAText.yaml" +DATASETS: + TRAIN: ("mltbezier_word_train", "totaltext_train", "syntext1_train", "syntext2_train", "icdar2013_train", "icdar2015_train") + TEST: ("icdar2015_test",) \ No newline at end of file diff --git a/AdelaiDet/configs/BAText/Pretrain/Base-Pretrain.yaml b/AdelaiDet/configs/BAText/Pretrain/Base-Pretrain.yaml new file mode 100755 index 0000000..e25a216 --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/Base-Pretrain.yaml @@ -0,0 +1,4 @@ +_BASE_: "../Base-BAText.yaml" +DATASETS: + TRAIN: ("mltbezier_word_train", "totaltext_train", "syntext1_train", "syntext2_train",) + TEST: ("totaltext_val",) \ No newline at end of file diff --git a/AdelaiDet/configs/BAText/Pretrain/attn_R_50.yaml b/AdelaiDet/configs/BAText/Pretrain/attn_R_50.yaml new file mode 100755 index 0000000..d318c31 --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/attn_R_50.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-Pretrain.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.01 + STEPS: (160000, 220000) + MAX_ITER: 260000 + CHECKPOINT_PERIOD: 20000 +TEST: + EVAL_PERIOD: 20000 +OUTPUT_DIR: "output/batext/pretrain/attn_R_50" diff --git a/AdelaiDet/configs/BAText/Pretrain/v1_ic15_attn_R_50.yaml b/AdelaiDet/configs/BAText/Pretrain/v1_ic15_attn_R_50.yaml new file mode 100755 index 0000000..98a16ac --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/v1_ic15_attn_R_50.yaml @@ -0,0 +1,19 @@ +_BASE_: "Base-Pretrain-ic15.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + POOLER_RESOLUTION: (16, 64) +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.01 + STEPS: (160000, 220000) + MAX_ITER: 260000 + CHECKPOINT_PERIOD: 5000 +TEST: + EVAL_PERIOD: 20000 +INPUT: + IS_ROTATE: True +OUTPUT_DIR: "output/batext/pretrain/v1_ic15_attn_R_50" diff --git a/AdelaiDet/configs/BAText/Pretrain/v2_attn_R_50.yaml b/AdelaiDet/configs/BAText/Pretrain/v2_attn_R_50.yaml new file mode 100755 index 0000000..5eb7753 --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/v2_attn_R_50.yaml @@ -0,0 +1,26 @@ +_BASE_: "Base-Pretrain.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.01 + STEPS: (160000, 220000) + MAX_ITER: 260000 + CHECKPOINT_PERIOD: 20000 +TEST: + EVAL_PERIOD: 20000 +OUTPUT_DIR: "output/batext/pretrain/v2_attn_R_50" + diff --git a/AdelaiDet/configs/BAText/Pretrain/v2_chn_attn_R_50.yaml b/AdelaiDet/configs/BAText/Pretrain/v2_chn_attn_R_50.yaml new file mode 100755 index 0000000..e3e01c2 --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/v2_chn_attn_R_50.yaml @@ -0,0 +1,29 @@ +_BASE_: "Base-Chn-Pretrain.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True + VOC_SIZE: 5462 + CUSTOM_DICT: "chn_cls_list" +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.01 + STEPS: (160000, 220000) + MAX_ITER: 260000 + CHECKPOINT_PERIOD: 10000 +INPUT: + CROP: + ENABLED: False +OUTPUT_DIR: "output/batext/chn_pretrain/v2_attn_R_50" + diff --git a/AdelaiDet/configs/BAText/Pretrain/v2_ic15_attn_R_50.yaml b/AdelaiDet/configs/BAText/Pretrain/v2_ic15_attn_R_50.yaml new file mode 100755 index 0000000..2a1a14b --- /dev/null +++ b/AdelaiDet/configs/BAText/Pretrain/v2_ic15_attn_R_50.yaml @@ -0,0 +1,29 @@ +_BASE_: "Base-Pretrain-ic15.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True + POOLER_RESOLUTION: (16, 64) +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.01 + STEPS: (160000, 220000) + MAX_ITER: 260000 + CHECKPOINT_PERIOD: 20000 +TEST: + EVAL_PERIOD: 20000 +INPUT: + IS_ROTATE: True +OUTPUT_DIR: "output/batext/pretrain/v2_ic15_attn_R_50" + diff --git a/AdelaiDet/configs/BAText/README.md b/AdelaiDet/configs/BAText/README.md new file mode 100755 index 0000000..2fb5ee1 --- /dev/null +++ b/AdelaiDet/configs/BAText/README.md @@ -0,0 +1,343 @@ +# ABCNetv1 & ABCNetv2 +[ABCNetv1](https://openaccess.thecvf.com/content_CVPR_2020/html/Liu_ABCNet_Real-Time_Scene_Text_Spotting_With_Adaptive_Bezier-Curve_Network_CVPR_2020_paper.html) is an efficient end-to-end scene text spotting framework over 10x faster than previous state of the art. It's published in IEEE Conf. Comp Vis Pattern Recogn.'2020 as an oral paper. [ABCNetv2](https://ieeexplore.ieee.org/document/9525302) is published in TPAMI. + +## Models +### Experimental resutls on CTW1500: + +Name | inf. time | e2e-None-hmean | e2e-Full-hmean | det-hmean | download +--- |:---:|:---:|:---:|:---:|:---: +[v1-CTW1500-finetune](CTW1500/attn_R_50.yaml) | 8.7 FPS | 53.2 | 74.7 | 84.4 | [pretrained-model](https://universityofadelaide.box.com/shared/static/okeo5pvul5v5rxqh4yg8pcf805tzj2no.pth) +[v2-CTW1500-finetune](CTW1500/v2_attn_R_50.yaml) | 7.2 FPS | 57.7 | 75.8 | 85.0 | [finetuned-model](https://drive.google.com/file/d/12HV1dHjw1POdhOiHXPPXcGnjyp-3IuQv/view?usp=sharing) + + +### Experimental resutls on TotalText: + +Config | inf. time | e2e-None-hmean | e2e-Full-hmean | det-hmean | download +--- |:---------:|:---------:|:---------:|:---------:|:---: +[v1-pretrain](Pretrain/attn_R_50.yaml) | 11.3 FPS | 58.1 | 75.5 | 80.0 | [pretrained-model](https://cloudstor.aarnet.edu.au/plus/s/dEzxhTlEumICiq0/download) +[v1-totaltext-finetune](TotalText/attn_R_50.yaml) | 11.3 FPS | 67.1 | 81.1 | 86.0 | [finetuned-model](https://cloudstor.aarnet.edu.au/plus/s/tYsnegjTs13MwwK/download) +[v2-pretrain](Pretrain/v2_attn_R_50.yaml) | 7.8 FPS | 63.5 | 78.4 | 83.7 | [pretrained-model](https://drive.google.com/file/d/1v5C9klxBuNVBaLVxZRCy1MYnwEu0F25q/view?usp=sharing) +[v2-totaltext-finetune](TotalText/v2_attn_R_50.yaml) | 7.7 FPS | 71.8 | 83.4 | 87.2 | [finetuned-model](https://drive.google.com/file/d/1jR5-A-7ITvjdSx3kWVE9bMgh_biMsqcR/view?usp=sharing) + +### Experimental resutls on [ICDAR2015](https://rrc.cvc.uab.es/?ch=4): + +Name | e2e-None | e2e-Generic | e2e-Weak | e2e-Strong | det-hmean | download +--- |:---:|:---:|:---:|:---:|:---:|:---: +[v1-icdar2015-pretrain](Pretrain/v1_ic15_attn_R_50.yaml) | 38.0 | 50.8 | 59.0 | 65.8 | 83.2 | [pretrained-model](https://drive.google.com/file/d/1MZab_ftY8qGCurW1rwZBx5ftquZgcf4e/view?usp=sharing) +[v1-icdar2015-finetune](ICDAR2015/v1_attn_R_50.yaml) | 57.1 | 66.8 | 74.1 | 79.2 | 86.8 | [finetuned-model](https://drive.google.com/file/d/15eEctI4CqTxtcMAMcYiHIysYw3l53BGQ/view?usp=sharing) +[v2-icdar2015-pretrain](Pretrain/v2_ic15_attn_R_50.yaml) | 59.5 | 69.0 | 75.8 | 80.8 | 86.2 | [pretrained-model](https://drive.google.com/file/d/17xIB064Jlq31z875POrw9a3aDmg04C3y/view?usp=sharing) +[v2-icdar2015-finetune](ICDAR2015/v2_attn_R_50.yaml) | 66.3 | 73.2 | 78.8 | 83.7 | 88.2 | [finetuned-model](https://drive.google.com/file/d/1bxVxu7kX13S1_xYvCfUfomO8hSZGNZUl/view?usp=sharing) + +### Experimental resutls on [ReCTS](https://rrc.cvc.uab.es/?ch=12): + +Name | inf. time | det-recall | det-precision | det-hmean | 1 - NED | download +--- |:---:|:---:|:---:|:---:|:---:|:---: +[v2-Chinese-pretrained](Pretrain/v2_chn_attn_R_50.yaml) | -| - | - | - | - | [pretrained-model](https://drive.google.com/file/d/1AU8yAMNm2H8ryB7uIvp2HUHpCso7eyNH/view?usp=sharing) +[v2-ReCTS-finetune](ReCTS/v2_chn_attn_R_50.yaml) | 8 FPS | 87.9 | 92.9 | 90.33 | 63.9 | [finetuned-model](https://drive.google.com/file/d/1YTlC5jkh6y3g1RRc_hDs4m_tcU2J20fe/view?usp=sharing) + + +### Experimental resutls on [MSRA-TD500](http://www.iapr-tc11.org/mediawiki/index.php/MSRA_Text_Detection_500_Database_%28MSRA-TD500%29): + +Name | det-recall | det-precision | det-hmean | download +--- |:---:|:---:|:---:|:---: +[v2-TD500-finetune](https://github.com/aim-uofa/AdelaiDet/issues/537) | 81.9 | 89.0 | 85.3 | [finetuned-model](https://github.com/aim-uofa/AdelaiDet/issues/537) + +* Note the pretrained model for TD500 is the Chinese pretrained used for ReCTS. As MSRA-TD is a det. only dataset, a small amount of [modification](https://github.com/aim-uofa/AdelaiDet/issues/537) is needed. + +## Quick Start (ABCNetv1) + +### Inference with our trained Models + +1. Select the model and config file above, for example, `configs/BAText/CTW1500/attn_R_50.yaml`. +2. Run the demo with + +``` +wget -O ctw1500_attn_R_50.pth https://universityofadelaide.box.com/shared/static/okeo5pvul5v5rxqh4yg8pcf805tzj2no.pth +python demo/demo.py \ + --config-file configs/BAText/CTW1500/attn_R_50.yaml \ + --input datasets/CTW1500/ctwtest_text_image/ \ + --opts MODEL.WEIGHTS ctw1500_attn_R_50.pth +``` +or +``` +wget -O tt_attn_R_50.pth https://cloudstor.aarnet.edu.au/plus/s/tYsnegjTs13MwwK/download +python demo/demo.py \ + --config-file configs/BAText/TotalText/attn_R_50.yaml \ + --input datasets/totaltext/test_images/ \ + --opts MODEL.WEIGHTS tt_attn_R_50.pth +``` +or +``` +# Download v1_ic15_finetuned.pth above +python demo/demo.py \ + --config-file configs/BAText/ICDAR2015/v1_attn_R_50.yaml \ + --input datasets/icdar2015/test_images \ + --opts MODEL.WEIGHTS v1_ic15_finetuned.pth +``` +### Train Your Own Models + +To train a model with "train_net.py", first setup the corresponding datasets following +[datasets/README.md](../../datasets/README.md) or using the following script: + +``` +cd datasets/ +wget https://drive.google.com/file/d/1we4iwZNA80q-yRoEKqB66SuTa1tPbhZu/view?usp=sharing -O totaltext.zip +unzip totaltext.zip +rm totaltext.zip +wget https://drive.google.com/file/d/1ntlnlnQHZisDoS_bgDvrcrYFomw9iTZ0/view?usp=sharing -O CTW1500.zip +unzip CTW1500.zip +rm CTW1500.zip +wget https://drive.google.com/file/d/1J94245rU-s7KTecNQRD3KXG04ICZhL9z/view?usp=sharing -O icdar2015.zip +unzip icdar2015.zip +rm icdar2015.zip +mkdir evaluation +cd evaluation +wget -O gt_ctw1500.zip https://cloudstor.aarnet.edu.au/plus/s/xU3yeM3GnidiSTr/download +wget -O gt_totaltext.zip https://cloudstor.aarnet.edu.au/plus/s/SFHvin8BLUM4cNd/download +wget -O gt_icdar2015.zip https://drive.google.com/file/d/1wrq_-qIyb_8dhYVlDzLZTTajQzbic82Z/view?usp=sharing +``` + +* Note (synthetic and mlt2017 datasets need to be downloaded through [datasets/README.md](../../datasets/README.md).) + +You can also prepare your custom dataset following the [example scripts](https://universityofadelaide.box.com/s/phqfzpvhe0obmkvn17akn9qw47u1m44i). + +Pretrainining with synthetic data (For Totaltext and CTW1500): + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/Pretrain/attn_R_50.yaml \ + --num-gpus 4 \ + OUTPUT_DIR text_pretraining/attn_R_50 +``` + +Pretrainining with synthetic data (For ICDAR2015): + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/Pretrain/v1_ic15_attn_R_50.yaml \ + --num-gpus 4 \ + OUTPUT_DIR text_pretraining/v1_ic15_attn_R_50 +``` + + +Finetuning on TotalText: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/TotalText/attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS text_pretraining/attn_R_50/model_final.pth +``` + +Finetuning on CTW1500: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/CTW1500/attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS text_pretraining/attn_R_50/model_final.pth +``` + +Finetuning on ICDAR2015: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/ICDAR2015/v1_attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS text_pretraining/v1_ic15_attn_R_50/model_final.pth +``` + +### Evaluate on Trained Model +Download test GT [here](../../datasets/README.md) so that the directory has the following structure: + +``` +datasets +|_ evaluation +| |_ gt_totaltext.zip +| |_ gt_ctw1500.zip +| |_ gt_icdar2015.zip +``` + +Producing both (w/wo lexion) e2e and detection results on CTW1500: +``` +wget -O ctw1500_attn_R_50.pth https://universityofadelaide.box.com/shared/static/okeo5pvul5v5rxqh4yg8pcf805tzj2no.pth +python tools/train_net.py \ + --config-file configs/BAText/CTW1500/attn_R_50.yaml \ + --eval-only \ + MODEL.WEIGHTS ctw1500_attn_R_50.pth +``` +or Totaltext: +``` +wget -O tt_attn_R_50.pth https://cloudstor.aarnet.edu.au/plus/s/tYsnegjTs13MwwK/download +python tools/train_net.py \ + --config-file configs/BAText/TotalText/attn_R_50.yaml \ + --eval-only \ + MODEL.WEIGHTS tt_attn_R_50.pth +``` +or ICDAR2015: +``` +# Download v1_ic15_finetuned.pth above +# MODEL.BATEXT.EVAL_TYPE: 3: Strong, 2: Weak, 1: Generic +python tools/train_net.py \ + --config-file configs/BAText/ICDAR2015/v1_attn_R_50.yaml \ + --num-gpus 4 \ + --eval-only \ + MODEL.WEIGHTS v1_ic15_finetuned.pth \ + MODEL.BATEXT.EVAL_TYPE 3 +``` + +You can also evalute the json result file offline following the [evaluation_example_scripts](https://universityofadelaide.box.com/shared/static/e3yha5080jzvjuyfeayprnkbu265t3hr.zip), including an example of how to evaluate on a custom dataset. If you want to measure the ***inference time***, please change --num-gpus to 1. + +### Standalone BezierAlign Warping +If you are insteresting in warping a curved instance into a rectangular format independantly, please refer to the example script [here](https://github.com/Yuliang-Liu/bezier_curve_text_spotting#bezieralign-example). + +## Quick Start (ABCNetv2) +The datasets and the basic training details (learning rate, iterations, etc.) used for ABCNetv2 are exactly the same as ABCNet v1. Please following above to prepare the training and evaluation data. If you are interesting in text spotting quantization, please refer to the [patch](https://github.com/aim-uofa/model-quantization/blob/master/doc/detectron2.md#text-spotting). + +### Demo +* For CTW1500 +``` +# Download model_v2_ctw1500.pth above +python demo/demo.py \ + --config-file configs/BAText/CTW1500/v2_attn_R_50.yaml \ + --input datasets/CTW1500/ctwtest_text_image/ \ + --opts MODEL.WEIGHTS model_v2_ctw1500.pth +``` +* For TotalText +``` +# Download model_v2_totaltext.pth above +python demo/demo.py \ + --config-file configs/BAText/TotalText/v2_attn_R_50.yaml \ + --input datasets/totaltext/test_images/ \ + --opts MODEL.WEIGHTS model_v2_totaltext.pth +``` +* For ICDAR2015 +``` +# Download ic15_finetuned.pth above +python demo/demo.py \ + --config-file configs/BAText/ICDAR2015/v2_attn_R_50.yaml \ + --input datasets/icdar2015/test_images/ \ + --opts MODEL.WEIGHTS ic15_finetuned.pth +``` +* For ReCTS (Chinese) +``` +# Download model_v2_rects.pth above +wget https://drive.google.com/file/d/1dcR__ZgV_JOfpp8Vde4FR3bSR-QnrHVo/view?usp=sharing -O simsun.ttc +wget https://drive.google.com/file/d/1wqkX2VAy48yte19q1Yn5IVjdMVpLzYVo/view?usp=sharing -O chn_cls_list +python demo/demo.py \ + --config-file configs/BAText/ReCTS/v2_chn_attn_R_50.yaml \ + --input datasets/ReCTS/ReCTS_test_images/ \ + --opts MODEL.WEIGHTS model_v2_rects.pth +``` + +### Train +Training ABCNetv2 using 4 V100. +* Pretrainining with synthetic data (for TotalText and CTW1500): +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/Pretrain/v2_attn_R_50.yaml \ + --num-gpus 4 \ + OUTPUT_DIR text_pretraining/v2_attn_R_50 +``` +* Pretrainining with synthetic data (for ICDAR2015): +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/Pretrain/v2_ic15_attn_R_50.yaml \ + --num-gpus 4 \ + OUTPUT_DIR text_pretraining/v2_ic15_attn_R_50 +``` +* Pretrainining with synthetic data (for ReCTS): +``` +wget https://drive.google.com/file/d/1wqkX2VAy48yte19q1Yn5IVjdMVpLzYVo/view?usp=sharing -O chn_cls_list +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/Pretrain/v2_chn_attn_R_50.yaml \ + --num-gpus 4 \ + OUTPUT_DIR text_pretraining/v2_chn_attn_R_50 +``` +* Finetuning on TotalText: +``` +# Download model_v2_pretrain.pth above or using your own pretrained model +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/TotalText/v2_attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS text_pretraining/v2_attn_R_50/model_final.pth +``` +* Finetuning on CTW1500: +``` +# Download model_v2_pretrain.pth above or using your own pretrained model +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/CTW1500/v2_attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS text_pretraining/v2_attn_R_50/model_final.pth +``` +* Finetuning on ICDAR2015: +``` +# Download ic15_pretrained.pth above or using your own pretrained model +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/ICDAR2015/v2_attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS ic15_pretrained.pth +``` +* Finetuning on ReCTS: +``` +# Download model_v2_chn_pretrain.pth or using your own pretrained model +wget https://drive.google.com/file/d/1XOtlUz9lxh2HV5Gmu3alb5WKZafFn-0_/view?usp=sharing -O model_v2_chn_pretrain.pth +wget https://drive.google.com/file/d/1wqkX2VAy48yte19q1Yn5IVjdMVpLzYVo/view?usp=sharing -O chn_cls_list +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BAText/ReCTS/v2_chn_attn_R_50.yaml \ + --num-gpus 4 \ + MODEL.WEIGHTS model_v2_chn_pretrain.pth +``` +### Evaluation +* Evaluate on CTW1500: +``` +# Download model_v2_ctw1500.pth above +python tools/train_net.py \ + --config-file configs/BAText/CTW1500/v2_attn_R_50.yaml \ + --eval-only \ + MODEL.WEIGHTS model_v2_ctw1500.pth +``` +* Evaluate on Totaltext: +``` +# Download model_v2_totaltext.pth above +python tools/train_net.py \ + --config-file configs/BAText/TotalText/v2_attn_R_50.yaml \ + --eval-only \ + MODEL.WEIGHTS model_v2_totaltext.pth +``` +* Evaluate on ICDAR2015: +``` +# Download ic15_finetuned.pth above +# MODEL.BATEXT.EVAL_TYPE: 3: Strong, 2: Weak, 1: Generic +python tools/train_net.py \ + --config-file configs/BAText/ICDAR2015/v2_attn_R_50.yaml \ + --num-gpus 4 \ + --eval-only \ + MODEL.WEIGHTS ic15_finetuned.pth \ + MODEL.BATEXT.EVAL_TYPE 3 +``` +* Evaluate on ReCTS: + +ReCTS does not provide annotations for the test set, you may need to submit the results using the predicted json file in the [official website](https://rrc.cvc.uab.es/?ch=12). + + +# BibTeX + +```BibTeX +@inproceedings{liu2020abcnet, + title = {{ABCNet}: Real-time Scene Text Spotting with Adaptive Bezier-Curve Network}, + author = {Liu, Yuliang and Chen, Hao and Shen, Chunhua and He, Tong and Jin, Lianwen and Wang, Liangwei}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2020} +} +@ARTICLE{9525302, + author={Liu, Yuliang and Shen, Chunhua and Jin, Lianwen and He, Tong and Chen, Peng and Liu, Chongyu and Chen, Hao}, + journal={IEEE Transactions on Pattern Analysis and Machine Intelligence}, + title={ABCNet v2: Adaptive Bezier-Curve Network for Real-time End-to-end Text Spotting}, + year={2021}, + volume={}, + number={}, + pages={1-1}, + doi={10.1109/TPAMI.2021.3107437}} +``` + diff --git a/AdelaiDet/configs/BAText/ReCTS/Base-ReCTS.yaml b/AdelaiDet/configs/BAText/ReCTS/Base-ReCTS.yaml new file mode 100755 index 0000000..b56c864 --- /dev/null +++ b/AdelaiDet/configs/BAText/ReCTS/Base-ReCTS.yaml @@ -0,0 +1,4 @@ +_BASE_: "../Base-BAText.yaml" +DATASETS: + TRAIN: ("rects_train", "rects_val") + TEST: ("rects_test",) diff --git a/AdelaiDet/configs/BAText/ReCTS/v2_chn_attn_R_50.yaml b/AdelaiDet/configs/BAText/ReCTS/v2_chn_attn_R_50.yaml new file mode 100755 index 0000000..f7a68d5 --- /dev/null +++ b/AdelaiDet/configs/BAText/ReCTS/v2_chn_attn_R_50.yaml @@ -0,0 +1,29 @@ +_BASE_: "Base-ReCTS.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True + VOC_SIZE: 5462 + CUSTOM_DICT: "chn_cls_list" +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.001 + STEPS: (140000, 160000) + MAX_ITER: 180000 + CHECKPOINT_PERIOD: 10000 +INPUT: + CROP: + ENABLED: False +OUTPUT_DIR: "output/batext/rects/v2_attn_R_50" + diff --git a/AdelaiDet/configs/BAText/TotalText/Base-TotalText.yaml b/AdelaiDet/configs/BAText/TotalText/Base-TotalText.yaml new file mode 100755 index 0000000..b84ce78 --- /dev/null +++ b/AdelaiDet/configs/BAText/TotalText/Base-TotalText.yaml @@ -0,0 +1,4 @@ +_BASE_: "../Base-BAText.yaml" +DATASETS: + TRAIN: ("totaltext_train",) + TEST: ("totaltext_val",) \ No newline at end of file diff --git a/AdelaiDet/configs/BAText/TotalText/attn_R_50.yaml b/AdelaiDet/configs/BAText/TotalText/attn_R_50.yaml new file mode 100755 index 0000000..6be64bd --- /dev/null +++ b/AdelaiDet/configs/BAText/TotalText/attn_R_50.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-TotalText.yaml" +MODEL: + WEIGHTS: "weights/batext/pretrain_attn_R_50.pth" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" # "attn" "rnn" +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.001 + MAX_ITER: 5000 + CHECKPOINT_PERIOD: 1000 +TEST: + EVAL_PERIOD: 1000 +OUTPUT_DIR: "output/batext/totaltext/attn_R_50" diff --git a/AdelaiDet/configs/BAText/TotalText/v2_attn_R_50.yaml b/AdelaiDet/configs/BAText/TotalText/v2_attn_R_50.yaml new file mode 100755 index 0000000..0da3ccc --- /dev/null +++ b/AdelaiDet/configs/BAText/TotalText/v2_attn_R_50.yaml @@ -0,0 +1,27 @@ +_BASE_: "Base-TotalText.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + BiFPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + OUT_CHANNELS: 256 + NUM_REPEATS: 2 + NORM: "SyncBN" + RESNETS: + DEPTH: 50 + BATEXT: + RECOGNIZER: "attn" + USE_COORDCONV: True + USE_AET: True + FCOS: + # Best e2e: 0.5; Best det: 0.4 + INFERENCE_TH_TEST: 0.5 +SOLVER: + IMS_PER_BATCH: 8 + BASE_LR: 0.001 + MAX_ITER: 5000 + CHECKPOINT_PERIOD: 1000 +TEST: + EVAL_PERIOD: 1000 +OUTPUT_DIR: "output/batext/pretrain/v2_attn_R_50" diff --git a/AdelaiDet/configs/BlendMask/550_R_50_1x.yaml b/AdelaiDet/configs/BlendMask/550_R_50_1x.yaml new file mode 100755 index 0000000..4e609eb --- /dev/null +++ b/AdelaiDet/configs/BlendMask/550_R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-550.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/blendmask/550_R_50_1x" diff --git a/AdelaiDet/configs/BlendMask/550_R_50_3x.yaml b/AdelaiDet/configs/BlendMask/550_R_50_3x.yaml new file mode 100755 index 0000000..ca5b575 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/550_R_50_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-550.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/blendmask/550_R_50_3x" diff --git a/AdelaiDet/configs/BlendMask/550_R_50_dcni3_5x.yaml b/AdelaiDet/configs/BlendMask/550_R_50_dcni3_5x.yaml new file mode 100755 index 0000000..d2a9501 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/550_R_50_dcni3_5x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-550.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + DEFORM_ON_PER_STAGE: [False, True, True, True] + DEFORM_MODULATED: True + DEFORM_INTERVAL: 3 +INPUT: + MIN_SIZE_TRAIN: (440, 594) + MIN_SIZE_TRAIN_SAMPLING: "range" + MAX_SIZE_TRAIN: 990 + CROP: + ENABLED: True +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/blendmask/550_R_50_dcni3_5x" diff --git a/AdelaiDet/configs/BlendMask/Base-550.yaml b/AdelaiDet/configs/BlendMask/Base-550.yaml new file mode 100755 index 0000000..3acc65d --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Base-550.yaml @@ -0,0 +1,17 @@ +_BASE_: "Base-BlendMask.yaml" +MODEL: + FCOS: + TOP_LEVELS: 1 + IN_FEATURES: ["p3", "p4", "p5", "p6"] + FPN_STRIDES: [8, 16, 32, 64] + SIZES_OF_INTEREST: [64, 128, 256] + NUM_SHARE_CONVS: 3 + NUM_CLS_CONVS: 0 + NUM_BOX_CONVS: 0 + BASIS_MODULE: + NUM_CONVS: 2 +INPUT: + MIN_SIZE_TRAIN: (440, 462, 484, 506, 528, 550) + MAX_SIZE_TRAIN: 916 + MIN_SIZE_TEST: 550 + MAX_SIZE_TEST: 916 diff --git a/AdelaiDet/configs/BlendMask/Base-BlendMask.yaml b/AdelaiDet/configs/BlendMask/Base-BlendMask.yaml new file mode 100755 index 0000000..da455b9 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Base-BlendMask.yaml @@ -0,0 +1,29 @@ +MODEL: + META_ARCHITECTURE: "BlendMask" + MASK_ON: True + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "FCOS" + BASIS_MODULE: + LOSS_ON: True + PANOPTIC_FPN: + COMBINE: + ENABLED: False + FCOS: + THRESH_WITH_CTR: True + USE_SCALE: False +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 # Note that RetinaNet uses a different default learning rate + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) diff --git a/AdelaiDet/configs/BlendMask/Base-RT.yaml b/AdelaiDet/configs/BlendMask/Base-RT.yaml new file mode 100755 index 0000000..572a7a6 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Base-RT.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-BlendMask.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 \ No newline at end of file diff --git a/AdelaiDet/configs/BlendMask/DLA_34_syncbn_4x.yaml b/AdelaiDet/configs/BlendMask/DLA_34_syncbn_4x.yaml new file mode 100755 index 0000000..cd6588c --- /dev/null +++ b/AdelaiDet/configs/BlendMask/DLA_34_syncbn_4x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-RT.yaml" +MODEL: + BACKBONE: + NAME: "build_fcos_dla_fpn_backbone" + FREEZE_AT: -1 + WEIGHTS: "http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth" + DLA: + CONV_BODY: "DLA34" + NORM: "SyncBN" + FPN: + IN_FEATURES: ["level3", "level4", "level5"] +OUTPUT_DIR: "output/blendmask/DLA_34_syncbn_4x" diff --git a/AdelaiDet/configs/BlendMask/Panoptic/Base-Panoptic.yaml b/AdelaiDet/configs/BlendMask/Panoptic/Base-Panoptic.yaml new file mode 100755 index 0000000..ffd7ff0 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Panoptic/Base-Panoptic.yaml @@ -0,0 +1,16 @@ +_BASE_: "../Base-BlendMask.yaml" +MODEL: + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + SEM_SEG_HEAD: + LOSS_WEIGHT: 0.5 + PANOPTIC_FPN: + COMBINE: + ENABLED: True + INSTANCES_CONFIDENCE_THRESH: 0.45 + OVERLAP_THRESH: 0.4 +DATASETS: + TRAIN: ("coco_2017_train_panoptic_separated",) + TEST: ("coco_2017_val_panoptic_separated",) diff --git a/AdelaiDet/configs/BlendMask/Panoptic/R_101_3x.yaml b/AdelaiDet/configs/BlendMask/Panoptic/R_101_3x.yaml new file mode 100755 index 0000000..c5afd60 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Panoptic/R_101_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-Panoptic.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/panoptic/blendmask/R_101_3x" diff --git a/AdelaiDet/configs/BlendMask/Panoptic/R_101_dcni3_5x.yaml b/AdelaiDet/configs/BlendMask/Panoptic/R_101_dcni3_5x.yaml new file mode 100755 index 0000000..45bc89c --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Panoptic/R_101_dcni3_5x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-Panoptic.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + DEFORM_ON_PER_STAGE: [False, True, True, True] + DEFORM_MODULATED: True + DEFORM_INTERVAL: 3 +SOLVER: + STEPS: (280000, 360000) + MAX_ITER: 400000 +INPUT: + MIN_SIZE_TRAIN: (640, 864) + MIN_SIZE_TRAIN_SAMPLING: "range" + MAX_SIZE_TRAIN: 1333 + CROP: + ENABLED: True +OUTPUT_DIR: "output/panoptic/blendmask/R_101_dcni3_5x" diff --git a/AdelaiDet/configs/BlendMask/Panoptic/R_50_1x.yaml b/AdelaiDet/configs/BlendMask/Panoptic/R_50_1x.yaml new file mode 100755 index 0000000..24f9e99 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Panoptic/R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-Panoptic.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/panoptic/blendmask/R_50_1x" diff --git a/AdelaiDet/configs/BlendMask/Panoptic/R_50_3x.yaml b/AdelaiDet/configs/BlendMask/Panoptic/R_50_3x.yaml new file mode 100755 index 0000000..9de5502 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Panoptic/R_50_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-Panoptic.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/panoptic/blendmask/R_50_3x" diff --git a/AdelaiDet/configs/BlendMask/Panoptic/R_50_dcni3_5x.yaml b/AdelaiDet/configs/BlendMask/Panoptic/R_50_dcni3_5x.yaml new file mode 100755 index 0000000..b928f1d --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Panoptic/R_50_dcni3_5x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-Panoptic.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + DEFORM_ON_PER_STAGE: [False, True, True, True] + DEFORM_MODULATED: True + DEFORM_INTERVAL: 3 +SOLVER: + STEPS: (280000, 360000) + MAX_ITER: 400000 +INPUT: + MIN_SIZE_TRAIN: (640, 864) + MIN_SIZE_TRAIN_SAMPLING: "range" + MAX_SIZE_TRAIN: 1440 + CROP: + ENABLED: True +OUTPUT_DIR: "output/panoptic/blendmask/R_50_dcni3_5x" diff --git a/AdelaiDet/configs/BlendMask/Person/Base-Person.yaml b/AdelaiDet/configs/BlendMask/Person/Base-Person.yaml new file mode 100755 index 0000000..f7c8be0 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Person/Base-Person.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-BlendMask.yaml" +MODEL: + BASIS_MODULE: + NUM_CLASSES: 1 + FCOS: + NUM_CLASSES: 1 +DATASETS: + TRAIN: ("pic_person_train",) + TEST: ("pic_person_val",) diff --git a/AdelaiDet/configs/BlendMask/Person/R_50_1x.yaml b/AdelaiDet/configs/BlendMask/Person/R_50_1x.yaml new file mode 100755 index 0000000..0b044c6 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/Person/R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-Person.yaml" +MODEL: + WEIGHTS: "https://cloudstor.aarnet.edu.au/plus/s/9u1cG2zXvEva5SM/download#R_50_3x.pth" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/person/blendmask/R_50_1x" diff --git a/AdelaiDet/configs/BlendMask/README.md b/AdelaiDet/configs/BlendMask/README.md new file mode 100755 index 0000000..6454bd1 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/README.md @@ -0,0 +1,93 @@ + +# BlendMask: Top-Down Meets Bottom-Up for Instance Segmentation + + BlendMask: Top-Down Meets Bottom-Up for Instance Segmentation; + Hao Chen, Kunyang Sun, Zhi Tian, Chunhua Shen, Yongming Huang, and Youliang Yan; + In: Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2020. + +[[`Paper`](https://arxiv.org/abs/2001.00309)] [[`BibTeX`](#citing-blendmask)] + +This project contains training BlendMask for instance segmentation and panoptic segmentation on COCO and configs for segmenting persons on PIC. + +## Quick Start + +### Demo + +``` +wget -O blendmask_r101_dcni3_5x.pth https://cloudstor.aarnet.edu.au/plus/s/vbnKnQtaGlw8TKv/download +python demo/demo.py \ + --config-file configs/BlendMask/R_101_dcni3_5x.yaml \ + --input datasets/coco/val2017/000000005992.jpg \ + --confidence-threshold 0.35 \ + --opts MODEL.WEIGHTS blendmask_r101_dcni3_5x.pth +``` + +### Training and evaluation + +To train a model with "train_net.py", first +setup the corresponding datasets following +[datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md), + +Then follow [these steps](https://github.com/aim-uofa/AdelaiDet/blob/master/datasets/README.md#blendmask-instance-detection) to generate blendmask format annotations for instance segmentation. + +then run: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BlendMask/R_50_1x.yaml \ + --num-gpus 4 \ + OUTPUT_DIR training_dir/blendmask_R_50_1x +``` +To evaluate the model after training, run: + +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BlendMask/R_50_1x.yaml \ + --eval-only \ + --num-gpus 4 \ + OUTPUT_DIR training_dir/blendmask_R_50_1x \ + MODEL.WEIGHTS training_dir/blendmask_R_50_1x/model_final.pth +``` + +## Models +### COCO Instance Segmentation Baselines + +Model | Name | inf. time | box AP | mask AP | download +--- |:---|:---:|:---:|:---:|:--:| +Mask R-CNN |[R_50_1x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml) | 13 FPS | 38.6 | 35.2 | +BlendMask |[R_50_1x](R_50_1x.yaml) | 14 FPS | 39.9 | 35.8 | [model](https://cloudstor.aarnet.edu.au/plus/s/zoxXPnr6Hw3OJgK/download) +Mask R-CNN |[R_50_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml) | 13 FPS | 41.0 | 37.2 | +BlendMask |[R_50_3x](R_50_3x.yaml) | 14 FPS | 42.7 | 37.8 | [model](https://cloudstor.aarnet.edu.au/plus/s/ZnaInHFEKst6mvg/download) +Mask R-CNN |[R_101_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml) | 10 FPS | 42.9 | 38.6 | +BlendMask |[R_101_3x](R_101_3x.yaml) | 11 FPS | 44.8 | 39.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/e4fXrliAcMtyEBy/download) +BlendMask |[R_101_dcni3_5x](R_101_dcni3_5x.yaml) | 10 FPS | 46.8 | 41.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/vbnKnQtaGlw8TKv/download) + +### BlendMask Real-time Models + +Model | Name | inf. time | box AP | mask AP | download +--- |:---|:---:|:---:|:---:|:---: +Mask R-CNN |[550_R_50_3x](../RCNN/550_R_50_FPN_3x.yaml) | 16 FPS | 39.1 | 35.3 | +BlendMask |[550_R_50_3x](550_R_50_3x.yaml) | 28 FPS | 38.7 | 34.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/R3Qintf7N8UCiIt/download) +BlendMask |[RT_R_50_4x_syncbn_shtw](RT_R_50_4x_syncbn_shtw.yaml) | 31 FPS | 39.3 | 35.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/iNAQQmfOJlTaBRk/download) +BlendMask |[RT_R_50_4x_bn-head_syncbn_shtw](RT_R_50_4x_bn-head_syncbn_shtw.yaml) | 31 FPS | 39.3 | 35.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/hI15l4ChWFqWvHp/download) +BlendMask |[DLA_34_4x](DLA_34_syncbn_4x.yaml) | 32 FPS | 40.8 | 36.3 | [model](https://cloudstor.aarnet.edu.au/plus/s/JO2xPUGMSbUkKFZ/download) + +### COCO Panoptic Segmentation Baselines with BlendMask +Model | Name | PQ | PQTh | PQSt | download +--- |:---|:---:|:---:|:---:|:---: +Panoptic FPN |[R_50_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml) | 41.5 | 48.3 | 31.2 | +BlendMask |[R_50_3x](Panoptic/R_50_3x.yaml) | 42.5 | 49.5 | 32.0 | [model](https://cloudstor.aarnet.edu.au/plus/s/oDgi0826JOJXCr5/download) +Panoptic FPN |[R_101_3x](https://github.com/facebookresearch/detectron2/blob/master/configs/COCO-InstanceSegmentation/panoptic_fpn_R_101_3x.yaml) | 43.0 | 49.7 | 32.9 | +BlendMask |[R_101_3x](Panoptic/R_101_3x.yaml) | 44.3 | 51.6 | 33.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/u6gZwj06MWDEkYe/download) +BlendMask |[R_101_dcni3_5x](Panoptic/R_101_dcni3_5x.yaml) | 46.0 | 52.9 | 35.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/Jwp41WEzDdrhWsN/download) + +# Citing BlendMask +If you use BlendMask in your research or wish to refer to the baseline results, please use the following BibTeX entries. +```BibTeX +@inproceedings{chen2020blendmask, + title = {{BlendMask}: Top-Down Meets Bottom-Up for Instance Segmentation}, + author = {Chen, Hao and Sun, Kunyang and Tian, Zhi and Shen, Chunhua and Huang, Yongming and Yan, Youliang}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2020} +} +``` diff --git a/AdelaiDet/configs/BlendMask/RT_R_50_4x_bn-head_syncbn_shtw.yaml b/AdelaiDet/configs/BlendMask/RT_R_50_4x_bn-head_syncbn_shtw.yaml new file mode 100755 index 0000000..a3bc210 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/RT_R_50_4x_bn-head_syncbn_shtw.yaml @@ -0,0 +1,5 @@ +_BASE_: "RT_R_50_4x_syncbn_shtw.yaml" +MODEL: + FCOS: + NORM: "SyncBN" +OUTPUT_DIR: "output/blendmask/RT_R_50_4x_bn-head_syncbn_shtw" diff --git a/AdelaiDet/configs/BlendMask/RT_R_50_4x_syncbn_shtw.yaml b/AdelaiDet/configs/BlendMask/RT_R_50_4x_syncbn_shtw.yaml new file mode 100755 index 0000000..a984161 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/RT_R_50_4x_syncbn_shtw.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-RT.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + BACKBONE: + FREEZE_AT: -1 + FCOS: + NUM_SHARE_CONVS: 3 + NUM_CLS_CONVS: 0 + NUM_BOX_CONVS: 0 + BASIS_MODULE: + NUM_CONVS: 2 +OUTPUT_DIR: "output/blendmask/RT_R_50_4x_syncbn_shtw" diff --git a/AdelaiDet/configs/BlendMask/R_101_3x.yaml b/AdelaiDet/configs/BlendMask/R_101_3x.yaml new file mode 100755 index 0000000..835e629 --- /dev/null +++ b/AdelaiDet/configs/BlendMask/R_101_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-BlendMask.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/blendmask/R_101_3x" diff --git a/AdelaiDet/configs/BlendMask/R_101_dcni3_5x.yaml b/AdelaiDet/configs/BlendMask/R_101_dcni3_5x.yaml new file mode 100755 index 0000000..b89b93f --- /dev/null +++ b/AdelaiDet/configs/BlendMask/R_101_dcni3_5x.yaml @@ -0,0 +1,20 @@ +_BASE_: "Base-BlendMask.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + DEFORM_ON_PER_STAGE: [False, True, True, True] + DEFORM_MODULATED: True + DEFORM_INTERVAL: 3 +SOLVER: + STEPS: (280000, 360000) + MAX_ITER: 400000 +INPUT: + MIN_SIZE_TRAIN: (640, 864) + MIN_SIZE_TRAIN_SAMPLING: "range" + MAX_SIZE_TRAIN: 1440 + CROP: + ENABLED: True +TEST: + EVAL_PERIOD: 20000 +OUTPUT_DIR: "output/blendmask/R_101_dcni3_5x" diff --git a/AdelaiDet/configs/BlendMask/R_50_1x.yaml b/AdelaiDet/configs/BlendMask/R_50_1x.yaml new file mode 100755 index 0000000..646430a --- /dev/null +++ b/AdelaiDet/configs/BlendMask/R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-BlendMask.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/blendmask/R_50_1x" diff --git a/AdelaiDet/configs/BlendMask/R_50_3x.yaml b/AdelaiDet/configs/BlendMask/R_50_3x.yaml new file mode 100755 index 0000000..f4acd8d --- /dev/null +++ b/AdelaiDet/configs/BlendMask/R_50_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-BlendMask.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/blendmask/R_50_3x" diff --git a/AdelaiDet/configs/BoxInst/Base-BoxInst.yaml b/AdelaiDet/configs/BoxInst/Base-BoxInst.yaml new file mode 100755 index 0000000..0ae6fea --- /dev/null +++ b/AdelaiDet/configs/BoxInst/Base-BoxInst.yaml @@ -0,0 +1,35 @@ +MODEL: + META_ARCHITECTURE: "CondInst" + MASK_ON: True + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "FCOS" + FCOS: + THRESH_WITH_CTR: True + USE_SCALE: True + CONDINST: + TOPK_PROPOSALS_PER_IM: 64 + MASK_BRANCH: + OUT_CHANNELS: 16 + BOXINST: + ENABLED: True + BOTTOM_PIXELS_REMOVED: 10 + PAIRWISE: + SIZE: 3 + DILATION: 2 + COLOR_THRESH: 0.3 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) diff --git a/AdelaiDet/configs/BoxInst/MS_R_101_1x.yaml b/AdelaiDet/configs/BoxInst/MS_R_101_1x.yaml new file mode 100755 index 0000000..a3ab902 --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_101_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +OUTPUT_DIR: "output/boxinst_MS_R_101_1x" diff --git a/AdelaiDet/configs/BoxInst/MS_R_101_3x.yaml b/AdelaiDet/configs/BoxInst/MS_R_101_3x.yaml new file mode 100755 index 0000000..eb2b32c --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_101_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/boxinst_MS_R_101_3x" diff --git a/AdelaiDet/configs/BoxInst/MS_R_101_BiFPN_3x.yaml b/AdelaiDet/configs/BoxInst/MS_R_101_BiFPN_3x.yaml new file mode 100755 index 0000000..e2cdca1 --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_101_BiFPN_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 101 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/boxinst_MS_R_101_3x_bifpn" diff --git a/AdelaiDet/configs/BoxInst/MS_R_101_BiFPN_dcni3_3x.yaml b/AdelaiDet/configs/BoxInst/MS_R_101_BiFPN_dcni3_3x.yaml new file mode 100755 index 0000000..d9a1665 --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_101_BiFPN_dcni3_3x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 101 + DEFORM_ON_PER_STAGE: [False, True, True, True] + DEFORM_MODULATED: True + DEFORM_INTERVAL: 3 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/boxinst_MS_R_101_BiFPN_dcni3_3x" diff --git a/AdelaiDet/configs/BoxInst/MS_R_50_1x.yaml b/AdelaiDet/configs/BoxInst/MS_R_50_1x.yaml new file mode 100755 index 0000000..0a0839f --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/boxinst_MS_R_50_1x" diff --git a/AdelaiDet/configs/BoxInst/MS_R_50_3x.yaml b/AdelaiDet/configs/BoxInst/MS_R_50_3x.yaml new file mode 100755 index 0000000..2764947 --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_50_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/boxinst_MS_R_50_3x" diff --git a/AdelaiDet/configs/BoxInst/MS_R_50_BiFPN_1x.yaml b/AdelaiDet/configs/BoxInst/MS_R_50_BiFPN_1x.yaml new file mode 100755 index 0000000..8f9f689 --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_50_BiFPN_1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 50 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +OUTPUT_DIR: "output/boxinst_MS_R_50_1x_bifpn" diff --git a/AdelaiDet/configs/BoxInst/MS_R_50_BiFPN_3x.yaml b/AdelaiDet/configs/BoxInst/MS_R_50_BiFPN_3x.yaml new file mode 100755 index 0000000..7888f2b --- /dev/null +++ b/AdelaiDet/configs/BoxInst/MS_R_50_BiFPN_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-BoxInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 50 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/boxinst_MS_R_50_3x_bifpn" diff --git a/AdelaiDet/configs/BoxInst/README.md b/AdelaiDet/configs/BoxInst/README.md new file mode 100755 index 0000000..93cd716 --- /dev/null +++ b/AdelaiDet/configs/BoxInst/README.md @@ -0,0 +1,71 @@ +# BoxInst: High-Performance Instance Segmentation with Box Annotations + + BoxInst: High-Performance Instance Segmentation with Box Annotations; + Zhi Tian, Chunhua Shen, Xinlong Wang and Hao Chen; + In: Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2021. + arXiv preprint arXiv:2012.02310 + +[[`Paper`](https://arxiv.org/abs/2012.02310)] [[`BibTeX`](#citing-boxinst)] [[`Video Demo`](https://www.youtube.com/watch?v=NuF8NAYf5L8)] + + +# Installation & Quick Start +First, follow the [default instruction](../../README.md#Installation) to install the project and [datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md) +set up the datasets (e.g., MS-COCO). + +For demo, run the following command lines: +``` +wget https://cloudstor.aarnet.edu.au/plus/s/Aabn3BEuq4HKiNK/download -O BoxInst_MS_R_50_3x.pth +python demo/demo.py \ + --config-file configs/BoxInst/MS_R_50_3x.yaml \ + --input input1.jpg input2.jpg \ + --opts MODEL.WEIGHTS BoxInst_MS_R_50_3x.pth +``` + +For training on COCO, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BoxInst/MS_R_50_1x.yaml \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/BoxInst_MS_R_50_1x +``` + +For evaluation on COCO, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/BoxInst/MS_R_50_1x.yaml \ + --eval-only \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/BoxInst_MS_R_50_1x \ + MODEL.WEIGHTS training_dir/BoxInst_MS_R_50_1x/model_final.pth +``` + + +## Models +### COCO Instance Segmentation Baselines with [BoxInst](https://arxiv.org/abs/2012.02310) + +Only **box annotations** are used during training. + +Name | inf. time | box AP | mask AP | mask AP (test-dev)| download +--- |:---:|:---:|:---:|:---:|:---: +[BoxInst_MS_R_50_1x](MS_R_50_1x.yaml) | 14 FPS | 39.4 | 30.7 | - | [model](https://cloudstor.aarnet.edu.au/plus/s/odj8VwqgRT8TMsR/download) +[BoxInst_MS_R_50_3x](MS_R_50_3x.yaml) | 14 FPS | 41.5 | 31.8 | 32.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/Aabn3BEuq4HKiNK/download) +[BoxInst_MS_R_101_1x](MS_R_101_1x.yaml) | 11 FPS | 41.4 | 32.2 | 32.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/FiPXJJ1GdJtdO0w/download) +[BoxInst_MS_R_101_3x](MS_R_101_3x.yaml) | 11 FPS | 43.3 | 33.0 | 33.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/8CcXfqKpPFc4bJ4/download) +[BoxInst_MS_R_101_BiFPN_3x](MS_R_101_BiFPN_3x.yaml) | 10 FPS | 45.4 | 34.1 | 33.9 | [model](https://cloudstor.aarnet.edu.au/plus/s/qGGrOlYgTqIur7B/download) +[BoxInst_MS_R_101_BiFPN_dcni3_3x](MS_R_101_BiFPN_dcni3_3x.yaml) | 8 FPS | 46.4 | 34.8 | 35.0 | [model](https://cloudstor.aarnet.edu.au/plus/s/e8hivzBFhadkEfc/download) + +Disclaimer: +- All models are trained with multi-scale data augmentation. Inference time is measured on a single NVIDIA 1080Ti with batch size 1. +- This is a reimplementation. Thus, the numbers might be slightly different from the ones reported in our original paper. + + +# Citing BoxInst +If you use BoxInst in your research or wish to refer to the baseline results, please use the following BibTeX entries. +```BibTeX +@inproceedings{tian2020boxinst, + title = {{BoxInst}: High-Performance Instance Segmentation with Box Annotations}, + author = {Tian, Zhi and Shen, Chunhua and Wang, Xinlong and Chen, Hao}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2021} +} +``` diff --git a/AdelaiDet/configs/CondInst/Base-CondInst.yaml b/AdelaiDet/configs/CondInst/Base-CondInst.yaml new file mode 100755 index 0000000..264ba64 --- /dev/null +++ b/AdelaiDet/configs/CondInst/Base-CondInst.yaml @@ -0,0 +1,26 @@ +MODEL: + META_ARCHITECTURE: "CondInst" + MASK_ON: True + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "FCOS" + FCOS: + THRESH_WITH_CTR: True + USE_SCALE: True + CONDINST: + MAX_PROPOSALS: 500 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) diff --git a/AdelaiDet/configs/CondInst/MS_R_101_1x.yaml b/AdelaiDet/configs/CondInst/MS_R_101_1x.yaml new file mode 100755 index 0000000..e8b7304 --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_101_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +OUTPUT_DIR: "output/condinst_MS_R_101_1x" diff --git a/AdelaiDet/configs/CondInst/MS_R_101_3x.yaml b/AdelaiDet/configs/CondInst/MS_R_101_3x.yaml new file mode 100755 index 0000000..d87efba --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_101_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_101_3x" diff --git a/AdelaiDet/configs/CondInst/MS_R_101_3x_sem.yaml b/AdelaiDet/configs/CondInst/MS_R_101_3x_sem.yaml new file mode 100755 index 0000000..62cb2ad --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_101_3x_sem.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + CONDINST: + MASK_BRANCH: + SEMANTIC_LOSS_ON: True +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_101_3x_sem" diff --git a/AdelaiDet/configs/CondInst/MS_R_101_BiFPN_3x.yaml b/AdelaiDet/configs/CondInst/MS_R_101_BiFPN_3x.yaml new file mode 100755 index 0000000..dfc5510 --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_101_BiFPN_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 101 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_101_3x_bifpn" diff --git a/AdelaiDet/configs/CondInst/MS_R_101_BiFPN_3x_sem.yaml b/AdelaiDet/configs/CondInst/MS_R_101_BiFPN_3x_sem.yaml new file mode 100755 index 0000000..4d19e33 --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_101_BiFPN_3x_sem.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 101 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" + CONDINST: + MASK_BRANCH: + SEMANTIC_LOSS_ON: True +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_101_3x_bifpn_sem" diff --git a/AdelaiDet/configs/CondInst/MS_R_50_1x.yaml b/AdelaiDet/configs/CondInst/MS_R_50_1x.yaml new file mode 100755 index 0000000..5271f7f --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/condinst_MS_R_50_1x" diff --git a/AdelaiDet/configs/CondInst/MS_R_50_3x.yaml b/AdelaiDet/configs/CondInst/MS_R_50_3x.yaml new file mode 100755 index 0000000..fd115a6 --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_50_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_50_3x" diff --git a/AdelaiDet/configs/CondInst/MS_R_50_3x_sem.yaml b/AdelaiDet/configs/CondInst/MS_R_50_3x_sem.yaml new file mode 100755 index 0000000..0a8f9fb --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_50_3x_sem.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + CONDINST: + MASK_BRANCH: + SEMANTIC_LOSS_ON: True +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_50_3x_sem" diff --git a/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_1x.yaml b/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_1x.yaml new file mode 100755 index 0000000..ffb1890 --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 50 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +OUTPUT_DIR: "output/condinst_MS_R_50_1x_bifpn" diff --git a/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_3x.yaml b/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_3x.yaml new file mode 100755 index 0000000..a8c4f33 --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 50 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_50_3x_bifpn" diff --git a/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_3x_sem.yaml b/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_3x_sem.yaml new file mode 100755 index 0000000..2fec59d --- /dev/null +++ b/AdelaiDet/configs/CondInst/MS_R_50_BiFPN_3x_sem.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-CondInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + NAME: "build_fcos_resnet_bifpn_backbone" + RESNETS: + DEPTH: 50 + BiFPN: + IN_FEATURES: ["res3", "res4", "res5"] + OUT_CHANNELS: 160 + NORM: "SyncBN" + CONDINST: + MASK_BRANCH: + SEMANTIC_LOSS_ON: True +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/condinst_MS_R_50_3x_bifpn_sem" diff --git a/AdelaiDet/configs/CondInst/README.md b/AdelaiDet/configs/CondInst/README.md new file mode 100755 index 0000000..9541392 --- /dev/null +++ b/AdelaiDet/configs/CondInst/README.md @@ -0,0 +1,86 @@ +# Conditional Convolutions for Instance Segmentation (Oral) + + Conditional Convolutions for Instance Segmentation; + Zhi Tian, Chunhua Shen and Hao Chen; + In: Proc. European Conference on Computer Vision (ECCV), 2020. + arXiv preprint arXiv:2003.05664 + +[[`Paper`](https://arxiv.org/abs/2003.05664)] [[`BibTeX`](#citing-condinst)] + + +# Installation & Quick Start +First, follow the [default instruction](../../README.md#Installation) to install the project and [datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md) +set up the datasets (e.g., MS-COCO). + +For demo, run the following command lines: +``` +wget https://cloudstor.aarnet.edu.au/plus/s/M8nNxSR5iNP4qyO/download -O CondInst_MS_R_101_3x_sem.pth +python demo/demo.py \ + --config-file configs/CondInst/MS_R_101_3x_sem.yaml \ + --input input1.jpg input2.jpg \ + --opts MODEL.WEIGHTS CondInst_MS_R_101_3x_sem.pth +``` + +For training on COCO, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/CondInst/MS_R_50_1x.yaml \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/CondInst_MS_R_50_1x +``` + +For evaluation on COCO, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/CondInst/MS_R_50_1x.yaml \ + --eval-only \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/CondInst_MS_R_50_1x \ + MODEL.WEIGHTS training_dir/CondInst_MS_R_50_1x/model_final.pth +``` + + +## Models +### COCO Instance Segmentation Baselines with [CondInst](https://arxiv.org/abs/2003.05664) + +Name | inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +[CondInst_MS_R_50_1x](MS_R_50_1x.yaml) | 14 FPS | 39.7 | 35.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/Trx1r4tLJja7sLT/download) +[CondInst_MS_R_50_3x](MS_R_50_3x.yaml) | 14 FPS | 41.9 | 37.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/T3OGVBiaSVLvo5E/download) +[CondInst_MS_R_101_3x](MS_R_101_3x.yaml) | 11 FPS | 43.3 | 38.6 | [model](https://cloudstor.aarnet.edu.au/plus/s/vWLiYm8OnrTSUD2/download) + +With an auxiliary semantic segmentation task (set `MODEL.CONDINST.MASK_BRANCH.SEMANTIC_LOSS_ON = True` to enable it): + +Name | inf. time | box AP | mask AP | mask AP (test-dev) | download +--- |:---:|:---:|:---:|:---:|:---: +[CondInst_MS_R_50_3x_sem](MS_R_50_3x_sem.yaml) | 14 FPS | 42.6 | 38.2 | 38.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/75Ag8VvC6WedVNh/download) +[CondInst_MS_R_101_3x_sem](MS_R_101_3x_sem.yaml) | 11 FPS | 44.6 | 39.8 | 40.1 | [model](https://cloudstor.aarnet.edu.au/plus/s/M8nNxSR5iNP4qyO/download) + +With BiFPN: + +Name | inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +[CondInst_MS_R_50_BiFPN_1x](MS_R_50_BiFPN_1x.yaml) | 13 FPS | 42.5 | 37.3 | [model](https://cloudstor.aarnet.edu.au/plus/s/RyCG82WhTop99j2/download) +[CondInst_MS_R_50_BiFPN_3x](MS_R_50_BiFPN_3x.yaml) | 13 FPS | 44.3 | 38.9 | [model](https://cloudstor.aarnet.edu.au/plus/s/W9ZCcxJF0P5NhJQ/download) +[CondInst_MS_R_50_BiFPN_3x_sem](MS_R_50_BiFPN_3x_sem.yaml) | 13 FPS | 44.7 | 39.4 | [model](https://cloudstor.aarnet.edu.au/plus/s/9cAHjZtdaAGnb2Q/download) +[CondInst_MS_R_101_BiFPN_3x](MS_R_101_BiFPN_3x.yaml) | 10 FPS | 45.3 | 39.6 | [model](https://cloudstor.aarnet.edu.au/plus/s/HyB0O0D7hfpUC2n/download) +[CondInst_MS_R_101_BiFPN_3x_sem](MS_R_101_BiFPN_3x_sem.yaml) | 10 FPS | 45.7 | 40.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/2p1ashxl54Su8vv/download) + + +*Disclaimer:* + +- All models are trained with multi-scale data augmentation. Inference time is measured on a single NVIDIA 1080Ti with batch size 1. +- The final mask's resolution is 1/4 of the input image (i.e., `MODEL.CONDINST.MASK_OUT_STRIDE = 4`, which is enough on MS-COCO and different from our original paper. In the paper, we used `MODEL.CONDINST.MASK_OUT_STRIDE = 2`. If you want high-resolution mask results, please reduce it. +- This is a reimplementation. Thus, the numbers are slightly different from our original paper (within 0.1% in mask AP). + + +# Citing CondInst +If you use CondInst in your research or wish to refer to the baseline results, please use the following BibTeX entries. +```BibTeX +@inproceedings{tian2020conditional, + title = {Conditional Convolutions for Instance Segmentation}, + author = {Tian, Zhi and Shen, Chunhua and Chen, Hao}, + booktitle = {Proc. Eur. Conf. Computer Vision (ECCV)}, + year = {2020} +} +``` diff --git a/AdelaiDet/configs/DenseCL/FCOS_R50_1x.yaml b/AdelaiDet/configs/DenseCL/FCOS_R50_1x.yaml new file mode 100755 index 0000000..bdcd931 --- /dev/null +++ b/AdelaiDet/configs/DenseCL/FCOS_R50_1x.yaml @@ -0,0 +1,13 @@ +_BASE_: "../FCOS-Detection/Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + FREEZE_AT: 0 + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + FPN: + NORM: "SyncBN" +TEST: + PRECISE_BN: + ENABLED: True diff --git a/AdelaiDet/configs/DenseCL/FCOS_R50_1x_DenseCL.yaml b/AdelaiDet/configs/DenseCL/FCOS_R50_1x_DenseCL.yaml new file mode 100755 index 0000000..36b3180 --- /dev/null +++ b/AdelaiDet/configs/DenseCL/FCOS_R50_1x_DenseCL.yaml @@ -0,0 +1,9 @@ +_BASE_: "FCOS_R50_1x.yaml" +MODEL: + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + WEIGHTS: "See Instructions" + RESNETS: + STRIDE_IN_1X1: False +INPUT: + FORMAT: "RGB" diff --git a/AdelaiDet/configs/DenseCL/README.md b/AdelaiDet/configs/DenseCL/README.md new file mode 100755 index 0000000..cbf1307 --- /dev/null +++ b/AdelaiDet/configs/DenseCL/README.md @@ -0,0 +1,92 @@ +# Dense Contrastive Learning for Self-Supervised Visual Pre-Training + +Here we provide instructions and results for applying DenseCL pre-trained models to AdelaiDet. Please refer to [https://git.io/DenseCL +](https://git.io/DenseCL +) for the pre-training code. + +> [**Dense Contrastive Learning for Self-Supervised Visual Pre-Training**](https://arxiv.org/abs/2011.09157), +> Xinlong Wang, Rufeng Zhang, Chunhua Shen, Tao Kong, Lei Li +> In: Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR), 2021, **Oral** +> *arXiv preprint ([arXiv 2011.09157](https://arxiv.org/abs/2011.09157))* + + +# Installation +First, follow the [default instruction](../../README.md#Installation) to install the project and [datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md) +set up the datasets (e.g., MS-COCO). + + +# DenseCL Pre-trained Models +pre-train method | pre-train dataset | backbone | #epoch | Link +--- |:---:|:---:|:---:|:---: +DenseCL | COCO | ResNet-50 | 800 | [download](https://cloudstor.aarnet.edu.au/plus/s/W5oDyYB218xz625/download) +DenseCL | COCO | ResNet-50 | 1600 | [download](https://cloudstor.aarnet.edu.au/plus/s/3GapXiWuVAzdKwJ/download) +DenseCL | ImageNet | ResNet-50 | 200 | [download](https://cloudstor.aarnet.edu.au/plus/s/hdAg5RYm8NNM2QP/download) +DenseCL | ImageNet | ResNet-101 | 200 | [download](https://cloudstor.aarnet.edu.au/plus/s/4sugyvuBOiMXXnC/download) + + +# Usage + +## Download the pre-trained model +``` +PRETRAIN_DIR=./ +wget https://cloudstor.aarnet.edu.au/plus/s/hdAg5RYm8NNM2QP/download -O ${PRETRAIN_DIR}/densecl_r50_imagenet_200ep.pkl +``` + +## Convert it to detectron2's format +Use [convert-pretrain-to-detectron2.py](https://github.com/WXinlong/DenseCL/blob/main/benchmarks/detection/convert-pretrain-to-detectron2.py) to convert the pre-trained backbone weights: +``` +WEIGHT_FILE=${PRETRAIN_DIR}/densecl_r50_imagenet_200ep.pth +OUTPUT_FILE=${PRETRAIN_DIR}/densecl_r50_imagenet_200ep.pkl +python convert-pretrain-to-detectron2.py ${WEIGHT_FILE} ${OUTPUT_FILE} +``` + +## Train the downstream models + +For training a SOLOv2, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/DenseCL/SOLOv2_R50_1x_DenseCL.yaml \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/SOLOv2_R50_1x_DenseCL \ + MODEL.WEIGHTS ${PRETRAIN_DIR}/densecl_r50_imagenet_200ep.pkl +``` + +For training a FCOS, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/DenseCL/FCOS_R50_1x_DenseCL.yaml \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/FCOS_R50_1x_DenseCL \ + MODEL.WEIGHTS ${PRETRAIN_DIR}/densecl_r50_imagenet_200ep.pkl +``` + + +# Performance +## SOLOv2 on COCO Instance Segmentation + +pre-train method | pre-train dataset | mask AP | +--- |:---:|:---:| +Supervised | ImageNet | 35.2 +MoCo-v2 | ImageNet | 35.2 +DenseCL | ImageNet | 35.7 (+0.5) + +## FCOS on COCO Object Detection + +pre-train method | pre-train dataset | box AP | +--- |:---:|:---:| +Supervised | ImageNet | 39.9 +MoCo-v2 | ImageNet | 40.3 +DenseCL | ImageNet | 40.9 (+1.0) + + + +# Citation +Please consider citing our paper in your publications if the project helps your research. BibTeX reference is as follows. +```BibTeX +@inproceedings{wang2020densecl, + title = {Dense Contrastive Learning for Self-Supervised Visual Pre-Training}, + author = {Wang, Xinlong and Zhang, Rufeng and Shen, Chunhua and Kong, Tao and Li, Lei}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2021} +} +``` diff --git a/AdelaiDet/configs/DenseCL/SOLOv2_R50_1x.yaml b/AdelaiDet/configs/DenseCL/SOLOv2_R50_1x.yaml new file mode 100755 index 0000000..eb9db49 --- /dev/null +++ b/AdelaiDet/configs/DenseCL/SOLOv2_R50_1x.yaml @@ -0,0 +1,13 @@ +_BASE_: "../SOLOv2/Base-SOLOv2.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + BACKBONE: + FREEZE_AT: 0 + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + FPN: + NORM: "SyncBN" +TEST: + PRECISE_BN: + ENABLED: True diff --git a/AdelaiDet/configs/DenseCL/SOLOv2_R50_1x_DenseCL.yaml b/AdelaiDet/configs/DenseCL/SOLOv2_R50_1x_DenseCL.yaml new file mode 100755 index 0000000..9b6ceb0 --- /dev/null +++ b/AdelaiDet/configs/DenseCL/SOLOv2_R50_1x_DenseCL.yaml @@ -0,0 +1,9 @@ +_BASE_: "SOLOv2_R50_1x.yaml" +MODEL: + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + WEIGHTS: "See Instructions" + RESNETS: + STRIDE_IN_1X1: False +INPUT: + FORMAT: "RGB" diff --git a/AdelaiDet/configs/FCOS-Detection/Base-FCOS.yaml b/AdelaiDet/configs/FCOS-Detection/Base-FCOS.yaml new file mode 100755 index 0000000..11539a3 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/Base-FCOS.yaml @@ -0,0 +1,21 @@ +MODEL: + META_ARCHITECTURE: "OneStageDetector" + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "FCOS" + # PIXEL_MEAN: [102.9801, 115.9465, 122.7717] +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 # Note that RetinaNet uses a different default learning rate + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) diff --git a/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn.yaml b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn.yaml new file mode 100755 index 0000000..a19af65 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn.yaml @@ -0,0 +1,25 @@ +_BASE_: "../Base-FCOS.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + BACKBONE: + NAME: "build_fcos_dla_fpn_backbone" + FREEZE_AT: -1 + WEIGHTS: "http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth" + DLA: + CONV_BODY: "DLA34" + NORM: "SyncBN" + FPN: + IN_FEATURES: ["level3", "level4", "level5"] + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 +OUTPUT_DIR: "output/fcos/FCOS_RT_MS_DLA_34_4x_syncbn" diff --git a/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_bn_head.yaml b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_bn_head.yaml new file mode 100755 index 0000000..c3a58ad --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_bn_head.yaml @@ -0,0 +1,26 @@ +_BASE_: "../Base-FCOS.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + BACKBONE: + NAME: "build_fcos_dla_fpn_backbone" + FREEZE_AT: -1 + WEIGHTS: "http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth" + DLA: + CONV_BODY: "DLA34" + NORM: "SyncBN" + FPN: + IN_FEATURES: ["level3", "level4", "level5"] + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] + NORM: "SyncBN" +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 +OUTPUT_DIR: "output/fcos/FCOS_RT_MS_DLA_34_4x_syncbn_bn_head" diff --git a/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers.yaml b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers.yaml new file mode 100755 index 0000000..84db2d1 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers.yaml @@ -0,0 +1,28 @@ +_BASE_: "../Base-FCOS.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + BACKBONE: + NAME: "build_fcos_dla_fpn_backbone" + FREEZE_AT: -1 + WEIGHTS: "http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth" + DLA: + CONV_BODY: "DLA34" + NORM: "SyncBN" + FPN: + IN_FEATURES: ["level3", "level4", "level5"] + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] + NUM_SHARE_CONVS: 4 + NUM_BOX_CONVS: 0 + NUM_CLS_CONVS: 0 +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 +OUTPUT_DIR: "output/fcos/FCOS_RT_MS_DLA_34_4x_syncbn_shared_towers" diff --git a/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers_bn_head.yaml b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers_bn_head.yaml new file mode 100755 index 0000000..773116a --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers_bn_head.yaml @@ -0,0 +1,29 @@ +_BASE_: "../Base-FCOS.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + BACKBONE: + NAME: "build_fcos_dla_fpn_backbone" + FREEZE_AT: -1 + WEIGHTS: "http://dl.yf.io/dla/models/imagenet/dla34-ba72cf86.pth" + DLA: + CONV_BODY: "DLA34" + NORM: "SyncBN" + FPN: + IN_FEATURES: ["level3", "level4", "level5"] + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] + NUM_SHARE_CONVS: 4 + NUM_BOX_CONVS: 0 + NUM_CLS_CONVS: 0 + NORM: "SyncBN" +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 +OUTPUT_DIR: "output/fcos/FCOS_RT_MS_DLA_34_4x_syncbn_shared_towers_bn_head" diff --git a/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn.yaml b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn.yaml new file mode 100755 index 0000000..5f7a90e --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn.yaml @@ -0,0 +1,20 @@ +_BASE_: "../Base-FCOS.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 +OUTPUT_DIR: "output/fcos/FCOS_RT_MS_R_50_4x_syncbn" diff --git a/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn_bn_head.yaml b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn_bn_head.yaml new file mode 100755 index 0000000..97ff613 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn_bn_head.yaml @@ -0,0 +1,21 @@ +_BASE_: "../Base-FCOS.yaml" +INPUT: + MIN_SIZE_TRAIN: (256, 288, 320, 352, 384, 416, 448, 480, 512, 544, 576, 608) + MAX_SIZE_TRAIN: 900 + MAX_SIZE_TEST: 736 + MIN_SIZE_TEST: 512 +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + FCOS: + TOP_LEVELS: 0 + SIZES_OF_INTEREST: [64, 128] + FPN_STRIDES: [8, 16, 32] + IN_FEATURES: ['p3', 'p4', 'p5'] + NORM: "SyncBN" +SOLVER: + STEPS: (300000, 340000) + MAX_ITER: 360000 +OUTPUT_DIR: "output/fcos/FCOS_RT_MS_R_50_4x_syncbn_bn_head" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_R_101_2x.yaml b/AdelaiDet/configs/FCOS-Detection/MS_R_101_2x.yaml new file mode 100755 index 0000000..7ff14a8 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_R_101_2x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/R_101_2x" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_R_101_2x_iou.yaml b/AdelaiDet/configs/FCOS-Detection/MS_R_101_2x_iou.yaml new file mode 100755 index 0000000..51199f5 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_R_101_2x_iou.yaml @@ -0,0 +1,11 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + FCOS: + BOX_QUALITY: "iou" +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/MS_R_101_2x_iou" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_R_50_2x.yaml b/AdelaiDet/configs/FCOS-Detection/MS_R_50_2x.yaml new file mode 100755 index 0000000..d7184cb --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_R_50_2x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/R_50_2x" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_R_50_2x_iou.yaml b/AdelaiDet/configs/FCOS-Detection/MS_R_50_2x_iou.yaml new file mode 100755 index 0000000..417a50f --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_R_50_2x_iou.yaml @@ -0,0 +1,11 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + FCOS: + BOX_QUALITY: "iou" +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/MS_R_50_2x_iou" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x.yaml b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x.yaml new file mode 100755 index 0000000..6e63ad5 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x.yaml @@ -0,0 +1,13 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/X_101_2x" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2.yaml b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2.yaml new file mode 100755 index 0000000..087c7b8 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2.yaml @@ -0,0 +1,17 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 + DEFORM_ON_PER_STAGE: [False, False, True, True] # on Res4, Res5 + DEFORM_MODULATED: True + FCOS: + USE_DEFORMABLE: True +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/MS_X_101_2x_dcnv2" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2_iou.yaml b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2_iou.yaml new file mode 100755 index 0000000..5e76bd8 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_dcnv2_iou.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 + DEFORM_ON_PER_STAGE: [False, False, True, True] # on Res4, Res5 + DEFORM_MODULATED: True + FCOS: + USE_DEFORMABLE: True + BOX_QUALITY: "iou" +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/MS_X_101_2x_dcnv2_iou" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_iou.yaml b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_iou.yaml new file mode 100755 index 0000000..91eff62 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_X_101_32x8d_2x_iou.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 + FCOS: + BOX_QUALITY: "iou" +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/X_101_2x_iou" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_X_101_64x4d_2x.yaml b/AdelaiDet/configs/FCOS-Detection/MS_X_101_64x4d_2x.yaml new file mode 100755 index 0000000..230698a --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_X_101_64x4d_2x.yaml @@ -0,0 +1,13 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "catalog://ImageNetPretrained/FAIR/X-101-64x4d" + PIXEL_STD: [1.0, 1.0, 1.0] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 64 + WIDTH_PER_GROUP: 4 + DEPTH: 101 +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/MS_X_101_64x4d_2x" diff --git a/AdelaiDet/configs/FCOS-Detection/MS_X_101_64x4d_2x_dcnv2.yaml b/AdelaiDet/configs/FCOS-Detection/MS_X_101_64x4d_2x_dcnv2.yaml new file mode 100755 index 0000000..41faeb3 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/MS_X_101_64x4d_2x_dcnv2.yaml @@ -0,0 +1,17 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "catalog://ImageNetPretrained/FAIR/X-101-64x4d" + PIXEL_STD: [1.0, 1.0, 1.0] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 64 + WIDTH_PER_GROUP: 4 + DEPTH: 101 + DEFORM_ON_PER_STAGE: [False, False, True, True] # on Res4, Res5 + DEFORM_MODULATED: True + FCOS: + USE_DEFORMABLE: True +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 +OUTPUT_DIR: "output/fcos/MS_X_101_64x4d_2x_dcnv2" diff --git a/AdelaiDet/configs/FCOS-Detection/README.md b/AdelaiDet/configs/FCOS-Detection/README.md new file mode 100755 index 0000000..2b7fb3d --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/README.md @@ -0,0 +1,83 @@ +# FCOS: Fully Convolutional One-Stage Object Detection + + FCOS: Fully Convolutional One-Stage Object Detection; + Zhi Tian, Chunhua Shen, Hao Chen, and Tong He; + In: Proc. Int. Conf. Computer Vision (ICCV), 2019. +[arXiv preprint arXiv:1904.01355](https://arxiv.org/abs/1904.01355) + + FCOS: A Simple and Strong Anchor-free Object Detector; + Zhi Tian, Chunhua Shen, Hao Chen, and Tong He; + IEEE T. Pattern Analysis and Machine Intelligence (TPAMI), 2021. +[arXiv preprint arXiv:2006.09214](https://arxiv.org/abs/2006.09214) + + +[`BibTeX`](#citing-fcos) + +# Installation & Quick Start +No special setup needed. The [default instruction](../../README.md#Installation) would work. + +## Models +### COCO Object Detecton Baselines with [FCOS](https://arxiv.org/abs/1904.01355) + +Name | inf. time | box AP | box AP (test-dev) | download +--- |:---:|:---:|:---:|:---: +[FCOS_R_50_1x](R_50_1x.yaml) | 16 FPS | 38.7 | [38.8](https://gist.github.com/tianzhi0549/1c8d115efaf1e49a4f390cce63ca69ca) | [model](https://cloudstor.aarnet.edu.au/plus/s/glqFc13cCoEyHYy/download) +[FCOS_MS_R_50_2x](MS_R_50_2x.yaml) | 16 FPS | 41.0 | [41.4](https://gist.github.com/tianzhi0549/3ca076c2125891312dbf5ce932469e76) | [model](https://cloudstor.aarnet.edu.au/plus/s/reA6HVaGX47yKGV/download) +[FCOS_MS_R_101_2x](MS_R_101_2x.yaml) | 12 FPS | 43.1 | [43.2](https://gist.github.com/tianzhi0549/d97994a5b72980ba94de25737d2d40cb) | [model](https://cloudstor.aarnet.edu.au/plus/s/M3UOT6JcyHy2QW1/download) +[FCOS_MS_X_101_32x8d_2x](MS_X_101_32x8d_2x.yaml) | 6.6 FPS | 43.9 | [44.1](https://gist.github.com/tianzhi0549/3135d6e0fad24b07cc685fef660c5363) | [model](https://cloudstor.aarnet.edu.au/plus/s/R7H00WeWKZG45pP/download) +[FCOS_MS_X_101_64x4d_2x](MS_X_101_64x4d_2x.yaml) | 6.1 FPS | 44.7 | [44.8](https://gist.github.com/tianzhi0549/b68f6500ec24e6b263c12c345a7b5c7b) | [model](https://cloudstor.aarnet.edu.au/plus/s/XOLUCzqKYckNII7/download) +[FCOS_MS_X_101_32x8d_dcnv2_2x](MS_X_101_32x8d_2x_dcnv2.yaml) | 4.6 FPS | 46.6 | [46.6](https://gist.github.com/tianzhi0549/316e8feaa17bf0341e2effa485fb41c0) | [model](https://cloudstor.aarnet.edu.au/plus/s/TDsnYK8OXDTrafF/download) + +The following models use IoU (instead of "center-ness") to predict the box quality (setting `MODEL.FCOS.BOX_QUALITY = "iou"`). + +Name | inf. time | box AP | download +--- |:---:|:---:|:---: +[FCOS_R_50_1x_iou](R_50_1x_iou.yaml) | 16 FPS | 39.4 | [model](https://cloudstor.aarnet.edu.au/plus/s/LE6u0koeu0YlalU/download) +[FCOS_MS_R_50_2x_iou](MS_R_50_2x_iou.yaml) | 16 FPS | 41.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/Qx7HeA0XCr2y6UW/download) +[FCOS_MS_R_101_2x_iou](MS_R_101_2x_iou.yaml) | 12 FPS | 43.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/JJhntIKrvaS51et/download) +[FCOS_MS_X_101_32x8d_2x_iou](MS_X_101_32x8d_2x_iou.yaml) | 6.6 FPS | 44.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/iYAmR0pDwIme3ac/download) +[FCOS_MS_X_101_32x8d_2x_dcnv2_iou](MS_X_101_32x8d_2x_dcnv2_iou.yaml) | 4.6 FPS | 47.4 | [model](https://cloudstor.aarnet.edu.au/plus/s/Ols6N8tarxUVEdF/download) + +*"MS": the models are trained with multi-scale data augmentation.* + +### FCOS Real-time Models + +Name | inf. time | box AP | box AP (test-dev) | download +--- |:---:|:---:|:---:|:---: +[FCOS_RT_MS_DLA_34_4x_shtw](FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers.yaml) | 52 FPS | 39.1 | [39.2](https://gist.github.com/tianzhi0549/9f56ceaec77e2eb4170b6cd18da2856c) | [model](https://cloudstor.aarnet.edu.au/plus/s/4vc3XwQezyhNvnB/download) +[FCOS_RT_MS_DLA_34_4x](FCOS_RT/MS_DLA_34_4x_syncbn.yaml) | 46 FPS | 40.3 | [40.3](https://gist.github.com/tianzhi0549/338d8614beafe21b7af4dc5defc37d95) | [model](https://cloudstor.aarnet.edu.au/plus/s/zNPNyTkizaOOsUQ/download) +[FCOS_RT_MS_R_50_4x](FCOS_RT/MS_R_50_4x_syncbn.yaml) | 38 FPS | 40.2 | [40.2](https://gist.github.com/tianzhi0549/5c7892831d9c03d615214a66e3af19f4) | [model](https://cloudstor.aarnet.edu.au/plus/s/TlnlXUr6lNNSyoZ/download) + +If you prefer BN in FCOS heads, please try the following models. + +Name | inf. time | box AP | box AP (test-dev) | download +--- |:---:|:---:|:---:|:---: +[FCOS_RT_MS_DLA_34_4x_shtw_bn](FCOS_RT/MS_DLA_34_4x_syncbn_shared_towers_bn_head.yaml) | 52 FPS | 38.9 | [39.1](https://gist.github.com/tianzhi0549/d87298bb7beb7c926a355708d05e9a0c) | [model](https://cloudstor.aarnet.edu.au/plus/s/rdmHHSs4oCg7l7U/download) +[FCOS_RT_MS_DLA_34_4x_bn](FCOS_RT/MS_DLA_34_4x_syncbn_bn_head.yaml) | 48 FPS | 39.4 | [39.9](https://gist.github.com/tianzhi0549/6a7053943c96111134a81f3141d1b9b5) | [model](https://cloudstor.aarnet.edu.au/plus/s/T5httPVo1VndbD4/download) +[FCOS_RT_MS_R_50_4x_bn](FCOS_RT/MS_R_50_4x_syncbn_bn_head.yaml) | 40 FPS | 39.3 | [39.7](https://gist.github.com/tianzhi0549/35869c1d00688b4d60cc8f7e7d91c94d) | [model](https://cloudstor.aarnet.edu.au/plus/s/dHNUNs0YxVhZAmg/download) + +*Inference time is measured on a NVIDIA 1080Ti with batch size 1. Real-time models use shorter side 512 for inference.* + +*Disclaimer:* + +If the number of foreground samples is small or unstable, please set [`MODEL.FCOS.LOSS_NORMALIZER_CLS`](https://github.com/aim-uofa/AdelaiDet/blob/586bf2d6d4a4d662956203675a108f79d7d0f3ce/adet/config/defaults.py#L47) to `"moving_fg"`, which is more stable than normalizing the loss with the number of foreground samples in this case. + + +# Citing FCOS +If you use FCOS in your research or wish to refer to the baseline results, please use the following BibTeX entries. +```BibTeX +@inproceedings{tian2019fcos, + title = {{FCOS}: Fully Convolutional One-Stage Object Detection}, + author = {Tian, Zhi and Shen, Chunhua and Chen, Hao and He, Tong}, + booktitle = {Proc. Int. Conf. Computer Vision (ICCV)}, + year = {2019} +} +``` +```BibTeX +@article{tian2021fcos, + title = {{FCOS}: A Simple and Strong Anchor-free Object Detector}, + author = {Tian, Zhi and Shen, Chunhua and Chen, Hao and He, Tong}, + journal = {IEEE T. Pattern Analysis and Machine Intelligence (TPAMI)}, + year = {2021} +} +``` diff --git a/AdelaiDet/configs/FCOS-Detection/R_50_1x.yaml b/AdelaiDet/configs/FCOS-Detection/R_50_1x.yaml new file mode 100755 index 0000000..9a1675e --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/R_50_1x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +INPUT: + MIN_SIZE_TRAIN: (800,) +OUTPUT_DIR: "output/fcos/R_50_1x" diff --git a/AdelaiDet/configs/FCOS-Detection/R_50_1x_iou.yaml b/AdelaiDet/configs/FCOS-Detection/R_50_1x_iou.yaml new file mode 100755 index 0000000..520cb25 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/R_50_1x_iou.yaml @@ -0,0 +1,10 @@ +_BASE_: "Base-FCOS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + FCOS: + BOX_QUALITY: "iou" +INPUT: + MIN_SIZE_TRAIN: (800,) +OUTPUT_DIR: "output/fcos/R_50_1x_iou" diff --git a/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_39_3x.yaml b/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_39_3x.yaml new file mode 100755 index 0000000..f748bf1 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_39_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "../Base-FCOS.yaml" +MODEL: + WEIGHTS: "https://www.dropbox.com/s/q98pypf96rhtd8y/vovnet39_ese_detectron2.pth?dl=1" + BACKBONE: + NAME: "build_fcos_vovnet_fpn_backbone" + FREEZE_AT: 0 + VOVNET: + CONV_BODY : "V-39-eSE" + OUT_FEATURES: ["stage3", "stage4", "stage5"] + FPN: + IN_FEATURES: ["stage3", "stage4", "stage5"] +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/fcos/V_39_ms_3x" diff --git a/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_57_3x.yaml b/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_57_3x.yaml new file mode 100755 index 0000000..fd700e8 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_57_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "../Base-FCOS.yaml" +MODEL: + WEIGHTS: "https://www.dropbox.com/s/8xl0cb3jj51f45a/vovnet57_ese_detectron2.pth?dl=1" + BACKBONE: + NAME: "build_fcos_vovnet_fpn_backbone" + FREEZE_AT: 0 + VOVNET: + CONV_BODY : "V-57-eSE" + OUT_FEATURES: ["stage3", "stage4", "stage5"] + FPN: + IN_FEATURES: ["stage3", "stage4", "stage5"] +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/fcos/V_57_ms_3x" diff --git a/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_99_3x.yaml b/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_99_3x.yaml new file mode 100755 index 0000000..699a05f --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/vovnet/MS_V_99_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "../Base-FCOS.yaml" +MODEL: + WEIGHTS: "https://www.dropbox.com/s/1mlv31coewx8trd/vovnet99_ese_detectron2.pth?dl=1" + BACKBONE: + NAME: "build_fcos_vovnet_fpn_backbone" + FREEZE_AT: 0 + VOVNET: + CONV_BODY : "V-99-eSE" + OUT_FEATURES: ["stage3", "stage4", "stage5"] + FPN: + IN_FEATURES: ["stage3", "stage4", "stage5"] +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/fcos/V_99_ms_3x" diff --git a/AdelaiDet/configs/FCOS-Detection/vovnet/README.md b/AdelaiDet/configs/FCOS-Detection/vovnet/README.md new file mode 100755 index 0000000..a333553 --- /dev/null +++ b/AdelaiDet/configs/FCOS-Detection/vovnet/README.md @@ -0,0 +1,59 @@ +# [VoVNet-v2](https://github.com/youngwanLEE/CenterMask) backbone networks in [FCOS](https://github.com/aim-uofa/adet) +**Efficient Backbone Network for Object Detection and Segmentation**\ +Youngwan Lee + + +[[`vovnet-detectron2`](https://github.com/youngwanLEE/vovnet-detectron2)][[`CenterMask(code)`](https://github.com/youngwanLEE/CenterMask)] [[`VoVNet-v1(arxiv)`](https://arxiv.org/abs/1904.09730)] [[`VoVNet-v2(arxiv)`](https://arxiv.org/abs/1911.06667)] [[`BibTeX`](#CitingVoVNet)] + + +
+ +
+ + +## Comparison with Faster R-CNN and ResNet + +### Note + +We measure the inference time of all models with batch size 1 on the same V100 GPU machine. + +- pytorch1.3.1 +- CUDA 10.1 +- cuDNN 7.3 + + +|Method|Backbone|lr sched|inference time|AP|APs|APm|APl|download| +|---|:--------:|:---:|:--:|--|----|----|---|--------| +|Faster|R-50-FPN|3x|0.047|40.2|24.2|43.5|52.0|model \| metrics +|Faster|**V2-39-FPN**|3x|0.047|42.7|27.1|45.6|54.0|model \| metrics +|**FCOS**|**V2-39-FPN**|3x|0.045|43.5|28.1|47.2|54.5|model \| metrics +|| +|Faster|R-101-FPN|3x|0.063|42.0|25.2|45.6|54.6|model \| metrics +|Faster|**V2-57-FPN**|3x|0.054|43.3|27.5|46.7|55.3|model \| metrics +|**FCOS**|**V2-57-FPN**|3x|0.051|44.4|28.8|47.2|56.3|model \| metrics +|| +|Faster|X-101-FPN|3x|0.120|43.0|27.2|46.1|54.9|model \| metrics| +|Faster|**V2-99-FPN**|3x|0.073|44.1|28.1|47.0|56.4|model \| metrics| +|**FCOS**|**V2-99-FPN**|3x|0.070|45.2|29.2|48.4|57.3|model \| metrics| + + + +## Citing VoVNet + +If you use VoVNet, please use the following BibTeX entry. + +```BibTeX +@inproceedings{lee2019energy, + title = {An Energy and GPU-Computation Efficient Backbone Network for Real-Time Object Detection}, + author = {Lee, Youngwan and Hwang, Joong-won and Lee, Sangrok and Bae, Yuseok and Park, Jongyoul}, + booktitle = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops}, + year = {2019} +} + +@article{lee2019centermask, + title={CenterMask: Real-Time Anchor-Free Instance Segmentation}, + author={Lee, Youngwan and Park, Jongyoul}, + journal={arXiv preprint arXiv:1911.06667}, + year={2019} +} +``` diff --git a/AdelaiDet/configs/FCPose/Base-FCPose.yaml b/AdelaiDet/configs/FCPose/Base-FCPose.yaml new file mode 100755 index 0000000..bf77c47 --- /dev/null +++ b/AdelaiDet/configs/FCPose/Base-FCPose.yaml @@ -0,0 +1,36 @@ +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + KEYPOINT_ON: True + FCPOSE_ON: True + META_ARCHITECTURE: "OneStageDetector" + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "FCPose" +DATASETS: + TRAIN: ("keypoints_coco_2017_train",) + TEST: ("keypoints_coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 + STEPS: (60000, 80000) + MAX_ITER: 90000 + CLIP_GRADIENTS: + ENABLED: True + CLIP_VALUE: 1.0 +INPUT: + MIN_SIZE_TRAIN_SAMPLING: "range" + MIN_SIZE_TRAIN: [320,800] + MAX_SIZE_TRAIN: 1333 + CROP: + ENABLED: True + TYPE: "relative_range" + SIZE: [0.4, 0.4] +TEST: + EVAL_PERIOD: 5000 diff --git a/AdelaiDet/configs/FCPose/README.md b/AdelaiDet/configs/FCPose/README.md new file mode 100755 index 0000000..e402b56 --- /dev/null +++ b/AdelaiDet/configs/FCPose/README.md @@ -0,0 +1,56 @@ +# FCPose: Fully Convolutional Multi-Person Pose Estimation with Dynamic Instance-Aware Convolutions + + + +# Installation & Quick Start +First, follow the [default instruction](../../README.md#Installation) to install the project and [datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md) +set up the datasets (e.g., MS-COCO). + +For training on COCO, run: +``` +python tools/train_net.py \ + --num-gpus 8 \ + --config-file configs/FCPose/R_50_3X.yaml \ + --dist-url tcp://127.0.0.1:$(( RANDOM % 1000 + 50000 )) \ + OUTPUT_DIR training_dir/R_50_3X +``` + +For evaluation on COCO, run: +``` +python tools/train_net.py \ + --num-gpus 8 \ + --eval-only \ + --config-file configs/FCPose/R_50_3X.yaml \ + --dist-url tcp://127.0.0.1:$(( RANDOM % 1000 + 50000 )) \ + OUTPUT_DIR training_dir/R_50_3X \ + MODEL.WEIGHTS training_dir/R_50_3X/model_final.pth +``` + + +## Models +### COCO Instance Segmentation Baselines with SOLOv2 + +Name | inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +[FCPose_R50_3x](R_50_3X.yaml) | 45ms | 57.9 | 65.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/KoM3QUu9FMbSG1Q/download) +[FCPose_R101_3x](R_101_3X.yaml) | 58ms | 58.7 | 67.0 | [model](https://cloudstor.aarnet.edu.au/plus/s/kNVlDpPNHcOsRFf/download) + + +*Disclaimer:* + +- Inference time is measured on 8 V100 GPUs. +- This is a reimplementation. Thus, the numbers are slightly different from our original paper. +- This is a alpha version. We will update our implement later, including adding real-time version FCPose and fixing the issue of the loss being nan. if you found you loss being nan when training, please try again. + + +# Citations +Please consider citing our papers in your publications if the project helps your research. BibTeX reference is as follows. +```BibTeX +@inproceedings{mao2021fcpose, + title={FCPose: Fully Convolutional Multi-Person Pose Estimation with Dynamic Instance-Aware Convolutions}, + author={Mao, Weian and Tian, Zhi and Wang, Xinlong and Shen, Chunhua}, + booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, + pages={9034--9043}, + year={2021} +} +``` diff --git a/AdelaiDet/configs/FCPose/R_101_3X.yaml b/AdelaiDet/configs/FCPose/R_101_3X.yaml new file mode 100755 index 0000000..ad8da25 --- /dev/null +++ b/AdelaiDet/configs/FCPose/R_101_3X.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-FCPose.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + FCOS: + NUM_CLASSES: 1 +SOLVER: + STEPS: (180000, 240000) + MAX_ITER: 270000 + # WARMUP_FACTOR: 1.0 / 3000 + # WARMUP_ITERS: 3000 \ No newline at end of file diff --git a/AdelaiDet/configs/FCPose/R_50_3X.yaml b/AdelaiDet/configs/FCPose/R_50_3X.yaml new file mode 100755 index 0000000..a1fbcf2 --- /dev/null +++ b/AdelaiDet/configs/FCPose/R_50_3X.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-FCPose.yaml" +SOLVER: + STEPS: (180000, 240000) + MAX_ITER: 270000 +MODEL: + FCOS: + NUM_CLASSES: 1 + # FCPOSE: + # LOSS_WEIGHT_DIRECTION: 0.0 + # LOSS_WEIGHT_KEYPOINT: 0.0 + # BASIS_MODULE: + # LOSS_WEIGHT: 0.0 \ No newline at end of file diff --git a/AdelaiDet/configs/MEInst-InstanceSegmentation/Base-MEInst.yaml b/AdelaiDet/configs/MEInst-InstanceSegmentation/Base-MEInst.yaml new file mode 100755 index 0000000..9c51d1b --- /dev/null +++ b/AdelaiDet/configs/MEInst-InstanceSegmentation/Base-MEInst.yaml @@ -0,0 +1,23 @@ +MODEL: + MASK_ON: True + META_ARCHITECTURE: "OneStageDetector" + BACKBONE: + NAME: "build_fcos_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + PROPOSAL_GENERATOR: + NAME: "MEInst" + # PIXEL_MEAN: [102.9801, 115.9465, 122.7717] +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 # Note that RetinaNet uses a different default learning rate + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_1x.yaml b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_1x.yaml new file mode 100755 index 0000000..16ecd42 --- /dev/null +++ b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-MEInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + MEInst: + DIM_MASK: 60 + MASK_SIZE: 28 + USE_DEFORMABLE: True + LAST_DEFORMABLE: True + TYPE_DEFORMABLE: "DCNv1" +INPUT: + MIN_SIZE_TRAIN: (800,) +SOLVER: + WARMUP_METHOD: "constant" + WARMUP_FACTOR: 0.3333 + WARMUP_ITERS: 500 +OUTPUT_DIR: "output/MEInst/R_50_1x" diff --git a/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_1x_none.yaml b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_1x_none.yaml new file mode 100755 index 0000000..8397298 --- /dev/null +++ b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_1x_none.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-MEInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + MEInst: + DIM_MASK: 60 + MASK_SIZE: 28 +INPUT: + MIN_SIZE_TRAIN: (800,) +SOLVER: + WARMUP_METHOD: "constant" + WARMUP_FACTOR: 0.3333 + WARMUP_ITERS: 500 +OUTPUT_DIR: "output/MEInst/R_50_1x_none" diff --git a/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x.yaml b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x.yaml new file mode 100755 index 0000000..21e42cb --- /dev/null +++ b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-MEInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + MEInst: + DIM_MASK: 60 + MASK_SIZE: 28 + USE_DEFORMABLE: True + LAST_DEFORMABLE: True + TYPE_DEFORMABLE: "DCNv1" +SOLVER: + STEPS: (180000, 240000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/MEInst/R_50_3x" diff --git a/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x_512.yaml b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x_512.yaml new file mode 100755 index 0000000..3067acd --- /dev/null +++ b/AdelaiDet/configs/MEInst-InstanceSegmentation/MEInst_R_50_3x_512.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-MEInst.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + MEInst: + DIM_MASK: 60 + MASK_SIZE: 28 + USE_DEFORMABLE: True + LAST_DEFORMABLE: True + TYPE_DEFORMABLE: "DCNv1" +INPUT: + MIN_SIZE_TRAIN: (384, 416, 448, 480, 512, 544) + MIN_SIZE_TEST: 512 +SOLVER: + STEPS: (180000, 240000) + MAX_ITER: 270000 +OUTPUT_DIR: "output/MEInst/R_50_3x_512" diff --git a/AdelaiDet/configs/MEInst-InstanceSegmentation/README.md b/AdelaiDet/configs/MEInst-InstanceSegmentation/README.md new file mode 100755 index 0000000..03d8386 --- /dev/null +++ b/AdelaiDet/configs/MEInst-InstanceSegmentation/README.md @@ -0,0 +1,57 @@ +# Mask Encoding for Single Shot Instance Segmentation + +Rufeng Zhang, Zhi Tian, Chunhua Shen, Mingyu You, Youliang Yan + +[[`arXiv`](https://arxiv.org/abs/2003.11712)] [[`BibTeX`](#CitingMEInst)] + +## Models + +### COCO Instance Segmentation Baselines with [MEInst](https://arxiv.org/abs/2003.11712) + +Name | inf. time | box AP | mask AP | download +--- |:---:|:---:|:---:|:---: +[MEInst_R_50_1x_none](MEInst_R_50_1x_none.yaml) | 13 FPS | 39.5 | 30.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/v49Av8jn9hDkSAT/download) +[MEInst_R_50_1x](MEInst_R_50_1x.yaml) | 12 FPS | 40.1 | 31.7 | [model](https://cloudstor.aarnet.edu.au/plus/s/MB7jJycGDvI7z0E/download) +[MEInst_R_50_3x](MEInst_R_50_3x.yaml) | 12 FPS | 43.6 | 34.5 | [model](https://cloudstor.aarnet.edu.au/plus/s/1ID0DeuI9JsFQoG/download) +[MEInst_R_50_3x_512](MEInst_R_50_3x_512.yaml) | 19 FPS | 40.8 | 32.2 | [model](https://cloudstor.aarnet.edu.au/plus/s/T5pNmMbTr4wsyTd/download) + +*Inference time is measured on a NVIDIA 1080Ti with batch size 1.* + +## Quick Start + +1. Download the [matrix](https://cloudstor.aarnet.edu.au/plus/s/rOLg2frN3MCeWr9/download) file for mask encoding during training +2. Symlink the matrix path to datasets/components/xxx.npz, e.g., + `coco/components/coco_2017_train_class_agnosticTrue_whitenTrue_sigmoidTrue_60.npz` +3. Follow [AdelaiDet](https://github.com/aim-uofa/AdelaiDet) for install, train and inference + +### Step by step for Mask Encoding (Optional) + + We recommend to directly download the [matrix](https://cloudstor.aarnet.edu.au/plus/s/rOLg2frN3MCeWr9/download) file and use it, as it can already handle most cases. +And we also provide tools to generate encoding matrix yourself. + +Example: + +* Generate encoding matrix + + `python adet/modeling/MEInst/LME/mask_generation.py` + +* Evaluate the quality of reconstruction + + `python adet/modeling/MEInst/LME/mask_evaluation.py` + +## Citing MEInst + +If you use MEInst, please use the following BibTeX entry. + +```BibTeX +@inproceedings{zhang2020MEInst, + title = {Mask Encoding for Single Shot Instance Segmentation}, + author = {Zhang, Rufeng and Tian, Zhi and Shen, Chunhua and You, Mingyu and Yan, Youliang}, + booktitle = {Proc. IEEE Conf. Computer Vision and Pattern Recognition (CVPR)}, + year = {2020} +} +``` + +## License + +For academic use, this project is licensed under the 2-clause BSD License - see the LICENSE file for details. For commercial use, please contact [Chunhua Shen](https://cs.adelaide.edu.au/~chhshen/). diff --git a/AdelaiDet/configs/PointWSSIS/Base-PointWSSIS.yaml b/AdelaiDet/configs/PointWSSIS/Base-PointWSSIS.yaml new file mode 100644 index 0000000..d071e4b --- /dev/null +++ b/AdelaiDet/configs/PointWSSIS/Base-PointWSSIS.yaml @@ -0,0 +1,31 @@ +MODEL: + META_ARCHITECTURE: "SOLOv2" + MASK_ON: True + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + SOLOV2: + FPN_SCALE_RANGES: "((1,72),(72,144),(144,288),(288,584),(584,2048))" + NUM_GRIDS: "80,64,32,24,12" + PROMPT: "point" + NMS_TYPE: "mask" + LOSS: + DICE_WEIGHT: 3.0 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + WARMUP_FACTOR: 0.01 + STEPS: (60000, 80000) + MAX_ITER: 90000 + BASE_LR: 0.05 + CHECKPOINT_PERIOD: 5000 + WARMUP_ITERS: 3000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) + MASK_FORMAT: "bitmask" +VERSION: 2 \ No newline at end of file diff --git a/AdelaiDet/configs/PointWSSIS/R101_teacher.yaml b/AdelaiDet/configs/PointWSSIS/R101_teacher.yaml new file mode 100755 index 0000000..cd57d88 --- /dev/null +++ b/AdelaiDet/configs/PointWSSIS/R101_teacher.yaml @@ -0,0 +1,5 @@ +_BASE_: "Base-PointWSSIS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 diff --git a/AdelaiDet/configs/RCNN/550_R_50_FPN_3x.yaml b/AdelaiDet/configs/RCNN/550_R_50_FPN_3x.yaml new file mode 100755 index 0000000..022ce44 --- /dev/null +++ b/AdelaiDet/configs/RCNN/550_R_50_FPN_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "Base-RCNN.yaml" +MODEL: + WEIGHTS: "output/mask_rcnn/550_R_50_3x/model_final.pth" + MASK_ON: True + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +INPUT: + MIN_SIZE_TRAIN: (440, 462, 484, 506, 528, 550) + MAX_SIZE_TRAIN: 916 + MIN_SIZE_TEST: 550 + MAX_SIZE_TEST: 916 +OUTPUT_DIR: "output/mask_rcnn/550_R_50_3x" diff --git a/AdelaiDet/configs/RCNN/Base-RCNN.yaml b/AdelaiDet/configs/RCNN/Base-RCNN.yaml new file mode 100755 index 0000000..3e020f2 --- /dev/null +++ b/AdelaiDet/configs/RCNN/Base-RCNN.yaml @@ -0,0 +1,42 @@ +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map + ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) + RPN: + IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] + PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level + PRE_NMS_TOPK_TEST: 1000 # Per FPN level + # Detectron1 uses 2000 proposals per-batch, + # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) + # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. + POST_NMS_TOPK_TRAIN: 1000 + POST_NMS_TOPK_TEST: 1000 + ROI_HEADS: + NAME: "StandardROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_FC: 2 + POOLER_RESOLUTION: 7 + ROI_MASK_HEAD: + NAME: "MaskRCNNConvUpsampleHead" + NUM_CONV: 4 + POOLER_RESOLUTION: 14 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/AdelaiDet/configs/RCNN/LVIS/R_50_1x.yaml b/AdelaiDet/configs/RCNN/LVIS/R_50_1x.yaml new file mode 100755 index 0000000..a1b9751 --- /dev/null +++ b/AdelaiDet/configs/RCNN/LVIS/R_50_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-LVIS.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +OUTPUT_DIR: "output/lvis/mask_rcnn/R_50_1x" diff --git a/AdelaiDet/configs/RCNN/R_101_3x.yaml b/AdelaiDet/configs/RCNN/R_101_3x.yaml new file mode 100755 index 0000000..dab490a --- /dev/null +++ b/AdelaiDet/configs/RCNN/R_101_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-RCNN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: True + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/AdelaiDet/configs/SOLOv2/Base-SOLOv2.yaml b/AdelaiDet/configs/SOLOv2/Base-SOLOv2.yaml new file mode 100755 index 0000000..7faad0e --- /dev/null +++ b/AdelaiDet/configs/SOLOv2/Base-SOLOv2.yaml @@ -0,0 +1,25 @@ +MODEL: + META_ARCHITECTURE: "SOLOv2" + MASK_ON: True + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 + WARMUP_FACTOR: 0.01 + WARMUP_ITERS: 1000 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) + MASK_FORMAT: "bitmask" +VERSION: 2 + + diff --git a/AdelaiDet/configs/SOLOv2/PointWSSIS_teacher.yaml b/AdelaiDet/configs/SOLOv2/PointWSSIS_teacher.yaml new file mode 100644 index 0000000..42867c3 --- /dev/null +++ b/AdelaiDet/configs/SOLOv2/PointWSSIS_teacher.yaml @@ -0,0 +1,20 @@ +_BASE_: "Base-SOLOv2.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + SOLOV2: + FPN_SCALE_RANGES: "((1,72),(72,144),(144,288),(288,584),(584,2048))" + NUM_GRIDS: "80,64,32,24,12" + PROMPT: "point" + NMS_TYPE: "mask" + LOSS: + DICE_WEIGHT: 3.0 +SOLVER: + STEPS: (60000, 80000) + MAX_ITER: 90000 + BASE_LR: 0.05 + CHECKPOINT_PERIOD: 5000 + WARMUP_ITERS: 3000 +TEST: + EVAL_PERIOD: 5000 diff --git a/AdelaiDet/configs/SOLOv2/R101_3x.yaml b/AdelaiDet/configs/SOLOv2/R101_3x.yaml new file mode 100755 index 0000000..146b92e --- /dev/null +++ b/AdelaiDet/configs/SOLOv2/R101_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-SOLOv2.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/AdelaiDet/configs/SOLOv2/R50_3x.yaml b/AdelaiDet/configs/SOLOv2/R50_3x.yaml new file mode 100755 index 0000000..edd2994 --- /dev/null +++ b/AdelaiDet/configs/SOLOv2/R50_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-SOLOv2.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/AdelaiDet/configs/SOLOv2/README.md b/AdelaiDet/configs/SOLOv2/README.md new file mode 100755 index 0000000..c575ca9 --- /dev/null +++ b/AdelaiDet/configs/SOLOv2/README.md @@ -0,0 +1,88 @@ +# SOLOv2: Dynamic and Fast Instance Segmentation + + +> [**SOLOv2: Dynamic and Fast Instance Segmentation**](https://arxiv.org/abs/2003.10152), +> Xinlong Wang, Rufeng Zhang, Tao Kong, Lei Li, Chunhua Shen +> In: Proc. Advances in Neural Information Processing Systems (NeurIPS), 2020 +> *arXiv preprint ([arXiv 2003.10152](https://arxiv.org/abs/2003.10152))* + + + +# Installation & Quick Start +First, follow the [default instruction](../../README.md#Installation) to install the project and [datasets/README.md](https://github.com/facebookresearch/detectron2/blob/master/datasets/README.md) +set up the datasets (e.g., MS-COCO). + +For demo, run the following command lines: +``` +wget https://cloudstor.aarnet.edu.au/plus/s/chF3VKQT4RDoEqC/download -O SOLOv2_R50_3x.pth +python demo/demo.py \ + --config-file configs/SOLOv2/R50_3x.yaml \ + --input input1.jpg input2.jpg \ + --opts MODEL.WEIGHTS SOLOv2_R50_3x.pth +``` + +For training on COCO, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/SOLOv2/R50_3x.yaml \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/SOLOv2_R50_3x +``` + +For evaluation on COCO, run: +``` +OMP_NUM_THREADS=1 python tools/train_net.py \ + --config-file configs/SOLOv2/R50_3x.yaml \ + --eval-only \ + --num-gpus 8 \ + OUTPUT_DIR training_dir/SOLOv2_R50_3x \ + MODEL.WEIGHTS training_dir/SOLOv2_R50_3x/model_final.pth +``` + + +## Models +### COCO Instance Segmentation Baselines with SOLOv2 + +Name | inf. time | train. time | Mem | box AP | mask AP | download +--- |:---:|:---:|:---:|:---:|:---:|:---: +[SOLOv2_R50_3x](R50_3x.yaml) | 47ms | ~25h(36 epochs) | 3.7GB | - | 37.6 | [model](https://cloudstor.aarnet.edu.au/plus/s/chF3VKQT4RDoEqC/download) +[SOLOv2_R101_3x](R101_3x.yaml) | 61ms | ~30h(36 epochs) | 4.7GB | - | 39.0 | [model](https://cloudstor.aarnet.edu.au/plus/s/9w7b3sjaXvqYQEQ) + + +*Disclaimer:* + +- All models are trained with multi-scale data augmentation. +- Inference time is measured on a single V100 GPU. Training time is measured on 8 V100 GPUs. +- This is a reimplementation. Thus, the numbers are slightly different from our original paper (within 0.3% in mask AP). +- The implementation on mmdetection is available at [https://github.com/WXinlong/SOLO](https://github.com/WXinlong/SOLO). + + +# Citations +Please consider citing our papers in your publications if the project helps your research. BibTeX reference is as follows. +```BibTeX +@inproceedings{wang2020solo, + title = {{SOLO}: Segmenting Objects by Locations}, + author = {Wang, Xinlong and Kong, Tao and Shen, Chunhua and Jiang, Yuning and Li, Lei}, + booktitle = {Proc. Eur. Conf. Computer Vision (ECCV)}, + year = {2020} +} + +``` + +```BibTeX +@inproceedings{wang2020solov2, + title = {{SOLOv2}: Dynamic and Fast Instance Segmentation}, + author = {Wang, Xinlong and Zhang, Rufeng and Kong, Tao and Li, Lei and Shen, Chunhua}, + booktitle = {Proc. Advances in Neural Information Processing Systems (NeurIPS)}, + year = {2020} +} +``` + +```BibTeX +@article{wang2021solo, + title = {{SOLO}: A Simple Framework for Instance Segmentation}, + author = {Wang, Xinlong and Zhang, Rufeng and Shen, Chunhua and Kong, Tao and Li, Lei}, + journal = {IEEE T. Pattern Analysis and Machine Intelligence (TPAMI)}, + year = {2021} +} +``` diff --git a/AdelaiDet/datasets/README.md b/AdelaiDet/datasets/README.md new file mode 100755 index 0000000..90168cb --- /dev/null +++ b/AdelaiDet/datasets/README.md @@ -0,0 +1,98 @@ +## BlendMask instance detection + +``` +coco/ + thing_train2017/ + # thing class label maps for auxiliary semantic loss +lvis/ + thing_train/ + # semantic labels for LVIS +``` + +Run `python prepare_thing_sem_from_instance.py`, to extract semantic labels from instance annotations. + +Run `python prepare_thing_sem_from_lvis.py`, to extract semantic labels from LVIS annotations. + +## Text Spotting + +English pretrained data: + +- Totaltext [[paper]](https://ieeexplore.ieee.org/abstract/document/8270088/) [[source]](https://github.com/cs-chan/Total-Text-Dataset). + - Download (0.4G) ([Google](https://drive.google.com/file/d/1we4iwZNA80q-yRoEKqB66SuTa1tPbhZu/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/13waftL6gPYjpLfFZ0Pt3Vg) password: 867m) + +- CTW1500 [[paper]](https://www.sciencedirect.com/science/article/pii/S0031320319300664) [[source]](https://github.com/Yuliang-Liu/Curve-Text-Detector). + - Download (0.8G) ([Google](https://drive.google.com/file/d/1ntlnlnQHZisDoS_bgDvrcrYFomw9iTZ0/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1ClLyTlvT4tzRSfRP7hea9w) password: fq8u) + +- MLT [[paper]](https://ieeexplore.ieee.org/abstract/document/8270168). + - Download (6.8G) ([Origin](https://universityofadelaide.box.com/s/qu2wctdcsxh73bb94krdredpmx9nzf8m), [Google](https://drive.google.com/file/d/1nE2d_sIfcAejgVIv6-UjGNcBXgxc4QfD/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1rjqmb3uuki_Ppcxq-tl7oQ) password: zqrm) + +- CurvedSynText150k [[paper]](https://openaccess.thecvf.com/content_CVPR_2020/papers/Liu_ABCNet_Real-Time_Scene_Text_Spotting_With_Adaptive_Bezier-Curve_Network_CVPR_2020_paper.pdf): + - Part1 (94,723) Download (15.8G) ([Origin](https://universityofadelaide.box.com/s/xyqgqx058jlxiymiorw8fsfmxzf1n03p), [Google](https://drive.google.com/file/d/1OSJ-zId2h3t_-I7g_wUkrK-VqQy153Kj/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1Y5pqVqfjcc4FKxW4y8R5jw) password: 4k3x) + - Part2 (54,327) Download (9.7G) ([Origin](https://universityofadelaide.box.com/s/e0owoic8xacralf4j5slpgu50xfjoirs), [Google](https://drive.google.com/file/d/1EzkcOlIgEp5wmEubvHb7-J5EImHExYgY/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1gRv-IjqAUu6qnXN5BXlOzQ) password: a5f5) + + +- ICDAR2013 [[paper]](https://rrc.cvc.uab.es/?ch=2) [[source]](https://rrc.cvc.uab.es/?ch=2). + - Download (0.1G) ([Google](https://drive.google.com/file/d/1qZ6yEZV81jnHbuS3KK-FCS0Iuks0nPgZ/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1-5sX-HJ_OFt-fGZeQ8nAiQ) password: isil) + + +- ICDAR2015 [[paper]](https://rrc.cvc.uab.es/?ch=4) [[source]](https://rrc.cvc.uab.es/?ch=4). + - Download (0.1G) ([Google](https://drive.google.com/file/d/1J94245rU-s7KTecNQRD3KXG04ICZhL9z/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1Ih-6LSl26UG9Y2V8hsGC-g) password: vcuc) + +Chinese pretrained data: + +- ReCTs [[Source]](https://rrc.cvc.uab.es/?ch=12) + - Download (1.7G) ([Google](https://drive.google.com/file/d/1ygDN1OHUusqzqJL2011wc2T_LX0t6Th4/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1iZsnweBNJH3UNtGB5MCwKg) password: wo3o) +- ReCTs test set [[Source]](https://rrc.cvc.uab.es/?ch=12) + - Download (0.5G) ([Google](https://drive.google.com/file/d/1WEvkLgFIWdEDQn2UXHKCTIqlNnlk4kVt/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1NTdULcWR14M8O_CmOsJz9w) password: l1zy) +- LSVT [[Source]](https://rrc.cvc.uab.es/?ch=16) + - Download (8.2G) ([Google](https://drive.google.com/file/d/1E9RMFiRaRW4WdzA9Py7OimfzA82-Bwik/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1MTC5ZQno3KT65fDGoHENwA) password: qv7k) +- ArT [[Source]](https://rrc.cvc.uab.es/?ch=14) + - Download (1.5G) ([Google](https://drive.google.com/file/d/1ss_3oYVYexSmhx7AP4cahl8Emd49Wrh8/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1XRLGzuGpxkNZXwmGy9jfbQ) password: ozht) +- SynChinese130k [[Source]](https://arxiv.org/abs/2105.03620) + - Download (25G) ([Google](https://drive.google.com/file/d/1w9BFDTfVgZvpLE003zM694E0we4OWmyP/view?usp=sharing), [BaiduNetDisk](https://pan.baidu.com/s/1DYfTVkkz5bvAmqxDWMhFlA) password: zc3q) +``` +text/ + totaltext/ + annotations/ + train_images/ + test_images/ + mlt2017/ + annotations/train.json + images/ + ... + syntext1/ + syntext2/ + ... + evaluation/ + gt_ctw1500.zip + gt_totaltext.zip +``` + +To evaluate on Total Text and CTW1500, first download the zipped annotations with + +``` +mkdir evaluation +cd evaluation +wget -O gt_ctw1500.zip https://cloudstor.aarnet.edu.au/plus/s/xU3yeM3GnidiSTr/download +wget -O gt_totaltext.zip https://cloudstor.aarnet.edu.au/plus/s/SFHvin8BLUM4cNd/download +wget -O gt_icdar2015.zip https://drive.google.com/file/d/1wrq_-qIyb_8dhYVlDzLZTTajQzbic82Z/view?usp=sharing +``` + +## Person In Context instance detection + +``` +pic/ + thing_train/ + # thing class label maps for auxiliary semantic loss + annotations/ + train_person.json + val_person.json + image/ + train/ + ... + +``` + +First link the PIC_2.0 dataset to this folder with `ln -s \path\to\PIC_2.0 pic`. Then use the `python gen_coco_person.py` to generate train and validation annotation jsons. + +Run `python prepare_thing_sem_from_instance.py --dataset-name pic`, to extract semantic labels from instance annotations. diff --git a/AdelaiDet/datasets/gen_coco_person.py b/AdelaiDet/datasets/gen_coco_person.py new file mode 100755 index 0000000..ea40bbd --- /dev/null +++ b/AdelaiDet/datasets/gen_coco_person.py @@ -0,0 +1,101 @@ +import numpy as np +import cv2 +import os +import json +error_list = ['23382.png', '23441.png', '20714.png', '20727.png', '23300.png', '21200.png'] + +def mask2box(mask): + index = np.argwhere(mask == 1) + rows = index[:, 0] + clos = index[:, 1] + y1 = int(np.min(rows)) # y + x1 = int(np.min(clos)) # x + y2 = int(np.max(rows)) + x2 = int(np.max(clos)) + return (x1, y1, x2, y2) + +def gen_coco(phase): + result = { + "info": {"description": "PIC2.0 dataset."}, + "categories": [ + {"supercategory": "none", "id": 1, "name": "person"} + ] + } + out_json = phase +'_person.json' + store_segmentation = True + + images_info = [] + labels_info = [] + img_id = 0 + files = tuple(open("pic/list5/"+phase+'_id', 'r')) + files = (_.strip() for _ in files) + + for index, image_name in enumerate(files): + image_name = image_name+".png" + print(index, image_name) + if image_name in error_list: + continue + instance = cv2.imread(os.path.join('instance', phase, image_name), flags=cv2.IMREAD_GRAYSCALE) + semantic = cv2.imread(os.path.join('semantic', phase, image_name), flags=cv2.IMREAD_GRAYSCALE) + # print(instance.shape, semantic.shape) + h = instance.shape[0] + w = instance.shape[1] + images_info.append( + { + "file_name": image_name[:-4]+'.jpg', + "height": h, + "width": w, + "id": index + } + ) + instance_max_num = instance.max() + instance_ids = np.unique(instance) + for instance_id in instance_ids: + if instance_id == 0: + continue + instance_part = instance == instance_id + object_pos = instance_part.nonzero() + # category_id_ = int(semantic[object_pos[0][0], object_pos[1][0]]) + category_id = int(np.max(semantic[object_pos[0], object_pos[1]])) + # assert category_id_ == category_id, (category_id_, category_id) + if category_id != 1: + continue + area = int(instance_part.sum()) + x1, y1, x2, y2 = mask2box(instance_part) + w = x2 - x1 + 1 + h = y2 - y1 + 1 + segmentation = [] + if store_segmentation: + contours, hierarchy = cv2.findContours((instance_part * 255).astype(np.uint8), cv2.RETR_TREE, + cv2.CHAIN_APPROX_SIMPLE) + for contour in contours: + contour = contour.flatten().tolist() + if len(contour) > 4: + segmentation.append(contour) + if len(segmentation) == 0: + print('error') + continue + labels_info.append( + { + "segmentation": segmentation, # poly + "area": area, # segmentation area + "iscrowd": 0, + "image_id": index, + "bbox": [x1, y1, w, h], + "category_id": category_id, + "id": img_id + }, + ) + img_id += 1 + # break + result["images"] = images_info + result["annotations"] = labels_info + with open('pic/annotations/' + out_json, 'w') as f: + json.dump(result, f, indent=4) + +if __name__ == "__main__": + if not os.path.exists('pic/annotations/'): + os.mkdirs('pic/annotations/') + gen_coco("train") + gen_coco("val") + #gen_coco("test") diff --git a/AdelaiDet/datasets/prepare_thing_sem_from_instance.py b/AdelaiDet/datasets/prepare_thing_sem_from_instance.py new file mode 100755 index 0000000..1f46491 --- /dev/null +++ b/AdelaiDet/datasets/prepare_thing_sem_from_instance.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import time +import functools +import multiprocessing as mp +import numpy as np +import os +import argparse +from pycocotools.coco import COCO +from pycocotools import mask as maskUtils + +from detectron2.data.datasets.builtin_meta import _get_coco_instances_meta + + +def annToRLE(ann, img_size): + h, w = img_size + segm = ann['segmentation'] + if type(segm) == list: + # polygon -- a single object might consist of multiple parts + # we merge all parts into one mask rle code + rles = maskUtils.frPyObjects(segm, h, w) + rle = maskUtils.merge(rles) + elif type(segm['counts']) == list: + # uncompressed RLE + rle = maskUtils.frPyObjects(segm, h, w) + else: + # rle + rle = ann['segmentation'] + return rle + + +def annToMask(ann, img_size): + rle = annToRLE(ann, img_size) + m = maskUtils.decode(rle) + return m + + +def _process_instance_to_semantic(anns, output_semantic, img, categories): + img_size = (img["height"], img["width"]) + output = np.zeros(img_size, dtype=np.uint8) + for ann in anns: + mask = annToMask(ann, img_size) + output[mask == 1] = categories[ann["category_id"]] + 1 + # save as compressed npz + np.savez_compressed(output_semantic, mask=output) + # Image.fromarray(output).save(output_semantic) + + +def create_coco_semantic_from_instance(instance_json, sem_seg_root, categories): + """ + Create semantic segmentation annotations from panoptic segmentation + annotations, to be used by PanopticFPN. + + It maps all thing categories to contiguous ids starting from 1, and maps all unlabeled pixels to class 0 + + Args: + instance_json (str): path to the instance json file, in COCO's format. + sem_seg_root (str): a directory to output semantic annotation files + categories (dict): category metadata. Each dict needs to have: + "id": corresponds to the "category_id" in the json annotations + "isthing": 0 or 1 + """ + os.makedirs(sem_seg_root, exist_ok=True) + + coco_detection = COCO(instance_json) + + def iter_annotations(): + for img_id in coco_detection.getImgIds(): + anns_ids = coco_detection.getAnnIds(img_id) + anns = coco_detection.loadAnns(anns_ids) + img = coco_detection.loadImgs(int(img_id))[0] + file_name = os.path.splitext(img["file_name"])[0] + output = os.path.join(sem_seg_root, file_name + '.npz') + yield anns, output, img + + # single process + # print("Start writing to {} ...".format(sem_seg_root)) + # start = time.time() + # for anno, oup, img in iter_annotations(): + # _process_instance_to_semantic( + # anno, oup, img, categories) + # print("Finished. time: {:.2f}s".format(time.time() - start)) + # return + + pool = mp.Pool(processes=max(mp.cpu_count() // 2, 4)) + + print("Start writing to {} ...".format(sem_seg_root)) + start = time.time() + pool.starmap( + functools.partial( + _process_instance_to_semantic, + categories=categories), + iter_annotations(), + chunksize=100, + ) + print("Finished. time: {:.2f}s".format(time.time() - start)) + + +def get_parser(): + parser = argparse.ArgumentParser(description="Keep only model in ckpt") + parser.add_argument( + "--dataset-name", + default="coco", + help="dataset to generate", + ) + return parser + + +if __name__ == "__main__": + args = get_parser().parse_args() + dataset_dir = os.path.join(os.path.dirname(__file__), args.dataset_name) + if args.dataset_name == "coco": + thing_id_to_contiguous_id = _get_coco_instances_meta()["thing_dataset_id_to_contiguous_id"] + split_name = 'train2017' + annotation_name = "annotations/instances_{}.json" + else: + thing_id_to_contiguous_id = {1: 0} + split_name = 'train' + annotation_name = "annotations/{}_person.json" + for s in ["train2017"]: + create_coco_semantic_from_instance( + os.path.join(dataset_dir, "annotations/instances_{}.json".format(s)), + os.path.join(dataset_dir, "thing_{}".format(s)), + thing_id_to_contiguous_id + ) diff --git a/AdelaiDet/datasets/prepare_thing_sem_from_lvis.py b/AdelaiDet/datasets/prepare_thing_sem_from_lvis.py new file mode 100755 index 0000000..dd1c669 --- /dev/null +++ b/AdelaiDet/datasets/prepare_thing_sem_from_lvis.py @@ -0,0 +1,99 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import time +import functools +import multiprocessing as mp +import numpy as np +import os +from lvis import LVIS +from pycocotools import mask as maskUtils + + +def annToRLE(ann, img_size): + h, w = img_size + segm = ann['segmentation'] + if type(segm) == list: + # polygon -- a single object might consist of multiple parts + # we merge all parts into one mask rle code + rles = maskUtils.frPyObjects(segm, h, w) + rle = maskUtils.merge(rles) + elif type(segm['counts']) == list: + # uncompressed RLE + rle = maskUtils.frPyObjects(segm, h, w) + else: + # rle + rle = ann['segmentation'] + return rle + + +def annToMask(ann, img_size): + rle = annToRLE(ann, img_size) + m = maskUtils.decode(rle) + return m + + +def _process_instance_to_semantic(anns, output_semantic, img): + img_size = (img["height"], img["width"]) + output = np.zeros(img_size, dtype=np.uint8) + for ann in anns: + mask = annToMask(ann, img_size) + output[mask == 1] = ann["category_id"] // 5 + # save as compressed npz + np.savez_compressed(output_semantic, mask=output) + # Image.fromarray(output).save(output_semantic) + + +def create_lvis_semantic_from_instance(instance_json, sem_seg_root): + """ + Create semantic segmentation annotations from panoptic segmentation + annotations, to be used by PanopticFPN. + + It maps all thing categories to contiguous ids starting from 1, and maps all unlabeled pixels to class 0 + + Args: + instance_json (str): path to the instance json file, in COCO's format. + sem_seg_root (str): a directory to output semantic annotation files + """ + os.makedirs(sem_seg_root, exist_ok=True) + + lvis_detection = LVIS(instance_json) + + def iter_annotations(): + for img_id in lvis_detection.get_img_ids(): + anns_ids = lvis_detection.get_ann_ids([img_id]) + anns = lvis_detection.load_anns(anns_ids) + img = lvis_detection.load_imgs([img_id])[0] + file_name = os.path.splitext(img["file_name"])[0] + output = os.path.join(sem_seg_root, file_name + '.npz') + yield anns, output, img + + # # single process + # print("Start writing to {} ...".format(sem_seg_root)) + # start = time.time() + # for anno, oup, img in iter_annotations(): + # _process_instance_to_semantic( + # anno, oup, img) + # print("Finished. time: {:.2f}s".format(time.time() - start)) + # return + + pool = mp.Pool(processes=max(mp.cpu_count() // 2, 4)) + + print("Start writing to {} ...".format(sem_seg_root)) + start = time.time() + pool.starmap( + functools.partial( + _process_instance_to_semantic), + iter_annotations(), + chunksize=100, + ) + print("Finished. time: {:.2f}s".format(time.time() - start)) + + +if __name__ == "__main__": + dataset_dir = os.path.join(os.path.dirname(__file__), "lvis") + for s in ["train"]: + create_lvis_semantic_from_instance( + os.path.join(dataset_dir, "lvis_v0.5_{}.json".format(s)), + os.path.join(dataset_dir, "thing_{}".format(s)), + ) diff --git a/AdelaiDet/demo/demo.py b/AdelaiDet/demo/demo.py new file mode 100755 index 0000000..52a4cd0 --- /dev/null +++ b/AdelaiDet/demo/demo.py @@ -0,0 +1,152 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import argparse +import glob +import multiprocessing as mp +import os +import time +import cv2 +import tqdm + +from detectron2.data.detection_utils import read_image +from detectron2.utils.logger import setup_logger + +from predictor import VisualizationDemo +from adet.config import get_cfg + +# constants +WINDOW_NAME = "COCO detections" + + +def setup_cfg(args): + # load config from file and command-line arguments + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + # Set score_threshold for builtin models + cfg.MODEL.RETINANET.SCORE_THRESH_TEST = args.confidence_threshold + cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = args.confidence_threshold + cfg.MODEL.FCOS.INFERENCE_TH_TEST = args.confidence_threshold + cfg.MODEL.MEInst.INFERENCE_TH_TEST = args.confidence_threshold + cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = args.confidence_threshold + cfg.freeze() + return cfg + + +def get_parser(): + parser = argparse.ArgumentParser(description="Detectron2 Demo") + parser.add_argument( + "--config-file", + default="configs/quick_schedules/e2e_mask_rcnn_R_50_FPN_inference_acc_test.yaml", + metavar="FILE", + help="path to config file", + ) + parser.add_argument("--webcam", action="store_true", help="Take inputs from webcam.") + parser.add_argument("--video-input", help="Path to video file.") + parser.add_argument("--input", nargs="+", help="A list of space separated input images") + parser.add_argument( + "--output", + help="A file or directory to save output visualizations. " + "If not given, will show output in an OpenCV window.", + ) + + parser.add_argument( + "--confidence-threshold", + type=float, + default=0.3, + help="Minimum score for instance predictions to be shown", + ) + parser.add_argument( + "--opts", + help="Modify config options using the command-line 'KEY VALUE' pairs", + default=[], + nargs=argparse.REMAINDER, + ) + return parser + + +if __name__ == "__main__": + mp.set_start_method("spawn", force=True) + args = get_parser().parse_args() + logger = setup_logger() + logger.info("Arguments: " + str(args)) + + cfg = setup_cfg(args) + + demo = VisualizationDemo(cfg) + + if args.input: + if os.path.isdir(args.input[0]): + args.input = [os.path.join(args.input[0], fname) for fname in os.listdir(args.input[0])] + elif len(args.input) == 1: + args.input = glob.glob(os.path.expanduser(args.input[0])) + assert args.input, "The input path(s) was not found" + for path in tqdm.tqdm(args.input, disable=not args.output): + # use PIL, to be consistent with evaluation + img = read_image(path, format="BGR") + start_time = time.time() + predictions, visualized_output = demo.run_on_image(img) + logger.info( + "{}: detected {} instances in {:.2f}s".format( + path, len(predictions["instances"]), time.time() - start_time + ) + ) + + if args.output: + if os.path.isdir(args.output): + assert os.path.isdir(args.output), args.output + out_filename = os.path.join(args.output, os.path.basename(path)) + else: + assert len(args.input) == 1, "Please specify a directory with args.output" + out_filename = args.output + visualized_output.save(out_filename) + else: + cv2.imshow(WINDOW_NAME, visualized_output.get_image()[:, :, ::-1]) + if cv2.waitKey(0) == 27: + break # esc to quit + elif args.webcam: + assert args.input is None, "Cannot have both --input and --webcam!" + cam = cv2.VideoCapture(0) + for vis in tqdm.tqdm(demo.run_on_video(cam)): + cv2.namedWindow(WINDOW_NAME, cv2.WINDOW_NORMAL) + cv2.imshow(WINDOW_NAME, vis) + if cv2.waitKey(1) == 27: + break # esc to quit + cv2.destroyAllWindows() + elif args.video_input: + video = cv2.VideoCapture(args.video_input) + width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH)) + height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT)) + frames_per_second = video.get(cv2.CAP_PROP_FPS) + num_frames = int(video.get(cv2.CAP_PROP_FRAME_COUNT)) + basename = os.path.basename(args.video_input) + + if args.output: + if os.path.isdir(args.output): + output_fname = os.path.join(args.output, basename) + output_fname = os.path.splitext(output_fname)[0] + ".mkv" + else: + output_fname = args.output + assert not os.path.isfile(output_fname), output_fname + output_file = cv2.VideoWriter( + filename=output_fname, + # some installation of opencv may not support x264 (due to its license), + # you can try other format (e.g. MPEG) + fourcc=cv2.VideoWriter_fourcc(*"x264"), + fps=float(frames_per_second), + frameSize=(width, height), + isColor=True, + ) + assert os.path.isfile(args.video_input) + for vis_frame in tqdm.tqdm(demo.run_on_video(video), total=num_frames): + if args.output: + output_file.write(vis_frame) + else: + cv2.namedWindow(basename, cv2.WINDOW_NORMAL) + cv2.imshow(basename, vis_frame) + if cv2.waitKey(1) == 27: + break # esc to quit + video.release() + if args.output: + output_file.release() + else: + cv2.destroyAllWindows() diff --git a/AdelaiDet/demo/predictor.py b/AdelaiDet/demo/predictor.py new file mode 100755 index 0000000..8e4e5d1 --- /dev/null +++ b/AdelaiDet/demo/predictor.py @@ -0,0 +1,248 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import numpy as np +import atexit +import bisect +import multiprocessing as mp +from collections import deque +import cv2 +import torch +import matplotlib.pyplot as plt + +from detectron2.data import MetadataCatalog +from detectron2.engine.defaults import DefaultPredictor +from detectron2.utils.video_visualizer import VideoVisualizer +from detectron2.utils.visualizer import ColorMode, Visualizer + +from adet.utils.visualizer import TextVisualizer + + +class VisualizationDemo(object): + def __init__(self, cfg, instance_mode=ColorMode.IMAGE, parallel=False): + """ + Args: + cfg (CfgNode): + instance_mode (ColorMode): + parallel (bool): whether to run the model in different processes from visualization. + Useful since the visualization logic can be slow. + """ + self.metadata = MetadataCatalog.get( + cfg.DATASETS.TEST[0] if len(cfg.DATASETS.TEST) else "__unused" + ) + self.cfg = cfg + self.cpu_device = torch.device("cpu") + self.instance_mode = instance_mode + self.vis_text = cfg.MODEL.ROI_HEADS.NAME == "TextHead" + + self.parallel = parallel + if parallel: + num_gpu = torch.cuda.device_count() + self.predictor = AsyncPredictor(cfg, num_gpus=num_gpu) + else: + self.predictor = DefaultPredictor(cfg) + + def run_on_image(self, image): + """ + Args: + image (np.ndarray): an image of shape (H, W, C) (in BGR order). + This is the format used by OpenCV. + + Returns: + predictions (dict): the output of the model. + vis_output (VisImage): the visualized image output. + """ + vis_output = None + predictions = self.predictor(image) + # Convert image from OpenCV BGR format to Matplotlib RGB format. + image = image[:, :, ::-1] + if self.vis_text: + visualizer = TextVisualizer(image, self.metadata, instance_mode=self.instance_mode, cfg=self.cfg) + else: + visualizer = Visualizer(image, self.metadata, instance_mode=self.instance_mode) + + if "bases" in predictions: + self.vis_bases(predictions["bases"]) + if "panoptic_seg" in predictions: + panoptic_seg, segments_info = predictions["panoptic_seg"] + vis_output = visualizer.draw_panoptic_seg_predictions( + panoptic_seg.to(self.cpu_device), segments_info + ) + else: + if "sem_seg" in predictions: + vis_output = visualizer.draw_sem_seg( + predictions["sem_seg"].argmax(dim=0).to(self.cpu_device)) + if "instances" in predictions: + instances = predictions["instances"].to(self.cpu_device) + vis_output = visualizer.draw_instance_predictions(predictions=instances) + + return predictions, vis_output + + def _frame_from_video(self, video): + while video.isOpened(): + success, frame = video.read() + if success: + yield frame + else: + break + + def vis_bases(self, bases): + basis_colors = [[2, 200, 255], [107, 220, 255], [30, 200, 255], [60, 220, 255]] + bases = bases[0].squeeze() + bases = (bases / 8).tanh().cpu().numpy() + num_bases = len(bases) + fig, axes = plt.subplots(nrows=num_bases // 2, ncols=2) + for i, basis in enumerate(bases): + basis = (basis + 1) / 2 + basis = basis / basis.max() + basis_viz = np.zeros((basis.shape[0], basis.shape[1], 3), dtype=np.uint8) + basis_viz[:, :, 0] = basis_colors[i][0] + basis_viz[:, :, 1] = basis_colors[i][1] + basis_viz[:, :, 2] = np.uint8(basis * 255) + basis_viz = cv2.cvtColor(basis_viz, cv2.COLOR_HSV2RGB) + axes[i // 2][i % 2].imshow(basis_viz) + plt.show() + + def run_on_video(self, video): + """ + Visualizes predictions on frames of the input video. + + Args: + video (cv2.VideoCapture): a :class:`VideoCapture` object, whose source can be + either a webcam or a video file. + + Yields: + ndarray: BGR visualizations of each video frame. + """ + video_visualizer = VideoVisualizer(self.metadata, self.instance_mode) + + def process_predictions(frame, predictions): + frame = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR) + if "panoptic_seg" in predictions: + panoptic_seg, segments_info = predictions["panoptic_seg"] + vis_frame = video_visualizer.draw_panoptic_seg_predictions( + frame, panoptic_seg.to(self.cpu_device), segments_info + ) + elif "instances" in predictions: + predictions = predictions["instances"].to(self.cpu_device) + vis_frame = video_visualizer.draw_instance_predictions(frame, predictions) + elif "sem_seg" in predictions: + vis_frame = video_visualizer.draw_sem_seg( + frame, predictions["sem_seg"].argmax(dim=0).to(self.cpu_device) + ) + + # Converts Matplotlib RGB format to OpenCV BGR format + vis_frame = cv2.cvtColor(vis_frame.get_image(), cv2.COLOR_RGB2BGR) + return vis_frame + + frame_gen = self._frame_from_video(video) + if self.parallel: + buffer_size = self.predictor.default_buffer_size + + frame_data = deque() + + for cnt, frame in enumerate(frame_gen): + frame_data.append(frame) + self.predictor.put(frame) + + if cnt >= buffer_size: + frame = frame_data.popleft() + predictions = self.predictor.get() + yield process_predictions(frame, predictions) + + while len(frame_data): + frame = frame_data.popleft() + predictions = self.predictor.get() + yield process_predictions(frame, predictions) + else: + for frame in frame_gen: + yield process_predictions(frame, self.predictor(frame)) + + +class AsyncPredictor: + """ + A predictor that runs the model asynchronously, possibly on >1 GPUs. + Because rendering the visualization takes considerably amount of time, + this helps improve throughput when rendering videos. + """ + + class _StopToken: + pass + + class _PredictWorker(mp.Process): + def __init__(self, cfg, task_queue, result_queue): + self.cfg = cfg + self.task_queue = task_queue + self.result_queue = result_queue + super().__init__() + + def run(self): + predictor = DefaultPredictor(self.cfg) + + while True: + task = self.task_queue.get() + if isinstance(task, AsyncPredictor._StopToken): + break + idx, data = task + result = predictor(data) + self.result_queue.put((idx, result)) + + def __init__(self, cfg, num_gpus: int = 1): + """ + Args: + cfg (CfgNode): + num_gpus (int): if 0, will run on CPU + """ + num_workers = max(num_gpus, 1) + self.task_queue = mp.Queue(maxsize=num_workers * 3) + self.result_queue = mp.Queue(maxsize=num_workers * 3) + self.procs = [] + for gpuid in range(max(num_gpus, 1)): + cfg = cfg.clone() + cfg.defrost() + cfg.MODEL.DEVICE = "cuda:{}".format(gpuid) if num_gpus > 0 else "cpu" + self.procs.append( + AsyncPredictor._PredictWorker(cfg, self.task_queue, self.result_queue) + ) + + self.put_idx = 0 + self.get_idx = 0 + self.result_rank = [] + self.result_data = [] + + for p in self.procs: + p.start() + atexit.register(self.shutdown) + + def put(self, image): + self.put_idx += 1 + self.task_queue.put((self.put_idx, image)) + + def get(self): + self.get_idx += 1 # the index needed for this request + if len(self.result_rank) and self.result_rank[0] == self.get_idx: + res = self.result_data[0] + del self.result_data[0], self.result_rank[0] + return res + + while True: + # make sure the results are returned in the correct order + idx, res = self.result_queue.get() + if idx == self.get_idx: + return res + insert = bisect.bisect(self.result_rank, idx) + self.result_rank.insert(insert, idx) + self.result_data.insert(insert, res) + + def __len__(self): + return self.put_idx - self.get_idx + + def __call__(self, image): + self.put(image) + return self.get() + + def shutdown(self): + for _ in self.procs: + self.task_queue.put(AsyncPredictor._StopToken()) + + @property + def default_buffer_size(self): + return len(self.procs) * 5 diff --git a/AdelaiDet/docker/Dockerfile b/AdelaiDet/docker/Dockerfile new file mode 100755 index 0000000..3a64b79 --- /dev/null +++ b/AdelaiDet/docker/Dockerfile @@ -0,0 +1,27 @@ +FROM nvidia/cuda:10.2-devel-ubuntu18.04 + +RUN apt-get update && apt-get install -y libglib2.0-0 && apt-get clean + +RUN apt-get install -y wget htop byobu git gcc g++ vim libsm6 libxext6 libxrender-dev lsb-core + +RUN cd /root && wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh + +RUN cd /root && bash Anaconda3-2020.07-Linux-x86_64.sh -b -p ./anaconda3 + +RUN bash -c "source /root/anaconda3/etc/profile.d/conda.sh && conda install -y pytorch==1.5.0 torchvision cudatoolkit=10.2 -c pytorch" + +RUN bash -c "/root/anaconda3/bin/conda init bash" + +WORKDIR /root +RUN mkdir code +WORKDIR code + +RUN git clone https://github.com/facebookresearch/detectron2.git +RUN bash -c "source /root/anaconda3/etc/profile.d/conda.sh && conda activate base && cd detectron2 && python setup.py build develop" + +RUN git clone https://github.com/aim-uofa/AdelaiDet.git adet + +WORKDIR adet +RUN bash -c "source /root/anaconda3/etc/profile.d/conda.sh && conda activate base && python setup.py build develop" + +RUN rm /root/Anaconda3-2020.07-Linux-x86_64.sh diff --git a/AdelaiDet/docs/.gitignore b/AdelaiDet/docs/.gitignore new file mode 100755 index 0000000..9c5f578 --- /dev/null +++ b/AdelaiDet/docs/.gitignore @@ -0,0 +1 @@ +_build \ No newline at end of file diff --git a/AdelaiDet/docs/Makefile b/AdelaiDet/docs/Makefile new file mode 100755 index 0000000..d4bb2cb --- /dev/null +++ b/AdelaiDet/docs/Makefile @@ -0,0 +1,20 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = . +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/AdelaiDet/docs/adel-logo.svg b/AdelaiDet/docs/adel-logo.svg new file mode 100755 index 0000000..211f3f0 --- /dev/null +++ b/AdelaiDet/docs/adel-logo.svg @@ -0,0 +1,386 @@ + + + + +Created by potrace 1.16, written by Peter Selinger 2001-2019 + + + + + + + + + + + + + + + + + + + + diff --git a/AdelaiDet/docs/conf.py b/AdelaiDet/docs/conf.py new file mode 100755 index 0000000..896f72e --- /dev/null +++ b/AdelaiDet/docs/conf.py @@ -0,0 +1,308 @@ +# Configuration file for the Sphinx documentation builder. +# +# This file only contains a selection of the most common options. For a full +# list see the documentation: +# https://www.sphinx-doc.org/en/master/usage/configuration.html + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +import mock + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +import sphinx_rtd_theme + +# The suffix(es) of source filenames. +# You can specify multiple suffix as a list of string: +# +# to support markdown +from recommonmark.parser import CommonMarkParser + +sys.path.insert(0, os.path.abspath('../')) +DEPLOY = os.environ.get("READTHEDOCS") == "True" + +# -- Project information ----------------------------------------------------- + +try: + import torch # noqa +except ImportError: + for m in [ + "torch", + "torchvision", + "torch.nn", + "torch.nn.parallel", + "torch.distributed", + "torch.multiprocessing", + "torch.autograd", + "torch.autograd.function", + "torch.nn.modules", + "torch.nn.modules.utils", + "torch.utils", + "torch.utils.data", + "torch.onnx", + "torchvision", + "torchvision.ops", + ]: + sys.modules[m] = mock.Mock(name=m) + +try: + import detectron2 +except ImportError: + for m in [ + "detectron2", + "detectron2.checkpoint", + "detectron2.config", + "detectron2.data", + "detectron2.data.datasets", + "detectron2.data.datasets.register_coco", + "detectron2.layers", + "detectron2.layers.batch_norm", + "detectron2.modeling", + "detectron2.modeling.backbone", + "detectron2.modeling.backbone.build", + "detectron2.modeling.backbone.fpn", + "detectron2.modeling.meta_arch", + "detectron2.modeling.meta_arch.build", + "detectron2.modeling.proposal_generator", + "detectron2.modeling.proposal_generator.build", + "detectron2.modeling.poolers", + "detectron2.modeling.poolers.ROIPooler", + "detectron2.structures", + "detectron2.utils", + "detectron2.utils.comm", + ]: + sys.modules[m] = mock.Mock(name=m) + +for m in [ + "cv2", + "scipy", + "portalocker", + "adet._C", + "pycocotools", + "pycocotools.mask", + "pycocotools.coco", + "pycocotools.cocoeval", + "google", + "google.protobuf", + "google.protobuf.internal", + "onnx", + "caffe2", + "caffe2.proto", + "caffe2.python", + "caffe2.python.utils", + "caffe2.python.onnx", + "caffe2.python.onnx.backend", +]: + sys.modules[m] = mock.Mock(name=m) +sys.modules["cv2"].__version__ = "3.4" + +import adet + + +project = 'AdelaiDet' +copyright = '2020, Hao Chen, Zhi Tian' +author = 'Hao Chen, Zhi Tian' + +# The short X.Y version +version = adet.__version__ +# The full version, including alpha/beta/rc tags +release = version + + +# -- General configuration --------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +# +needs_sphinx = "1.7" + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + "sphinx.ext.autodoc", + "sphinx.ext.napoleon", + "sphinx.ext.intersphinx", + "sphinx.ext.todo", + "sphinx.ext.coverage", + "sphinx.ext.mathjax", + "sphinx.ext.viewcode", + "sphinx.ext.githubpages", +] + +# -- Configurations for plugins ------------ +napoleon_google_docstring = True +napoleon_include_init_with_doc = True +napoleon_include_special_with_doc = True +napoleon_numpy_docstring = False +napoleon_use_rtype = False +autodoc_inherit_docstrings = False +autodoc_member_order = "bysource" + +if DEPLOY: + intersphinx_timeout = 10 +else: + # skip this when building locally + intersphinx_timeout = 10 +intersphinx_mapping = { + "python": ("https://docs.python.org/3.6", None), + "numpy": ("https://docs.scipy.org/doc/numpy/", None), + "torch": ("https://pytorch.org/docs/master/", None), + "detectron2": ("https://detectron2.readthedocs.io/", None), +} +# ------------------------- + + +# Add any paths that contain templates here, relative to this directory. +templates_path = ['_templates'] + +source_parsers = {".md": CommonMarkParser} + +source_suffix = [".rst", ".md"] + +# The master toctree document. +master_doc = "index" + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', "build", "README.md"] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = "sphinx" + + +# -- Options for HTML output ------------------------------------------------- + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +html_theme = "sphinx_rtd_theme" +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +# html_theme_options = {} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ['_static'] + +# -- Options for HTMLHelp output --------------------------------------------- + +# Output file base name for HTML help builder. +htmlhelp_basename = "adet2doc" + + +# -- Options for LaTeX output ------------------------------------------------ + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, "adet.tex", "AdelaiDet Documentation", "AdelaiDet contributors", "manual") +] + + +# -- Options for manual page output ------------------------------------------ + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [(master_doc, "adet", "AdelaiDet Documentation", [author], 1)] + + +# -- Options for Texinfo output ---------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ( + master_doc, + "adet", + "AdelaiDet Documentation", + author, + "adet", + "One line description of project.", + "Miscellaneous", + ) +] + + +# -- Options for todo extension ---------------------------------------------- + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +_DEPRECATED_NAMES = set() + + +def autodoc_skip_member(app, what, name, obj, skip, options): + # we hide something deliberately + if getattr(obj, "__HIDE_SPHINX_DOC__", False): + return True + # Hide some names that are deprecated or not intended to be used + if name in _DEPRECATED_NAMES: + return True + return None + + +def url_resolver(url): + if ".html" not in url: + url = url.replace("../", "") + return "https://github.com/aim-uofa/adet/blob/master/" + url + else: + if DEPLOY: + return "http://adet.readthedocs.io/" + url + else: + return "/" + url + + +def setup(app): + from recommonmark.transform import AutoStructify + + app.connect("autodoc-skip-member", autodoc_skip_member) + # app.connect('autodoc-skip-member', autodoc_skip_member) + app.add_config_value( + "recommonmark_config", + { + "url_resolver": url_resolver, + "enable_math": True, + "enable_inline_math": True, + "enable_eval_rst": True, + }, + True, + ) + app.add_transform(AutoStructify) \ No newline at end of file diff --git a/AdelaiDet/docs/index.rst b/AdelaiDet/docs/index.rst new file mode 100755 index 0000000..e384713 --- /dev/null +++ b/AdelaiDet/docs/index.rst @@ -0,0 +1,13 @@ +.. AdelaiDet documentation master file, created by + sphinx-quickstart on Wed Feb 26 15:24:04 2020. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to AdelaiDet's documentation! +===================================== + +.. toctree:: + :maxdepth: 2 + + + modules/index \ No newline at end of file diff --git a/AdelaiDet/docs/modules/checkpoint.rst b/AdelaiDet/docs/modules/checkpoint.rst new file mode 100755 index 0000000..c7949be --- /dev/null +++ b/AdelaiDet/docs/modules/checkpoint.rst @@ -0,0 +1,7 @@ +adet.checkpoint package +============================= + +.. automodule:: adet.checkpoint + :members: + :undoc-members: + :show-inheritance: \ No newline at end of file diff --git a/AdelaiDet/docs/modules/config.rst b/AdelaiDet/docs/modules/config.rst new file mode 100755 index 0000000..7e04e5a --- /dev/null +++ b/AdelaiDet/docs/modules/config.rst @@ -0,0 +1,17 @@ +adet.config package +========================= + +.. automodule:: adet.config + :members: + :undoc-members: + :show-inheritance: + :inherited-members: + + +Config References +----------------- + +.. literalinclude:: ../../adet/config/defaults.py + :language: python + :linenos: + :lines: 4- \ No newline at end of file diff --git a/AdelaiDet/docs/modules/data.rst b/AdelaiDet/docs/modules/data.rst new file mode 100755 index 0000000..a2e9160 --- /dev/null +++ b/AdelaiDet/docs/modules/data.rst @@ -0,0 +1,7 @@ +adet.data package +======================= + +.. automodule:: adet.data + :members: + :undoc-members: + :show-inheritance: \ No newline at end of file diff --git a/AdelaiDet/docs/modules/index.rst b/AdelaiDet/docs/modules/index.rst new file mode 100755 index 0000000..54387f7 --- /dev/null +++ b/AdelaiDet/docs/modules/index.rst @@ -0,0 +1,11 @@ +API Documentation +================== + +.. toctree:: + + checkpoint + config + data + layers + modeling + utils \ No newline at end of file diff --git a/AdelaiDet/docs/modules/layers.rst b/AdelaiDet/docs/modules/layers.rst new file mode 100755 index 0000000..1b06910 --- /dev/null +++ b/AdelaiDet/docs/modules/layers.rst @@ -0,0 +1,7 @@ +adet.layers package +========================= + +.. automodule:: adet.layers + :members: + :undoc-members: + :show-inheritance: \ No newline at end of file diff --git a/AdelaiDet/docs/modules/modeling.rst b/AdelaiDet/docs/modules/modeling.rst new file mode 100755 index 0000000..ecf45f8 --- /dev/null +++ b/AdelaiDet/docs/modules/modeling.rst @@ -0,0 +1,47 @@ +adet.modeling package +=========================== + +.. automodule:: adet.modeling + :members: + :undoc-members: + :show-inheritance: + +adet.modeling.backbone module +--------------------------------------- + +.. automodule:: adet.modeling.backbone + :members: + :undoc-members: + :show-inheritance: + +adet.modeling.poolers module +--------------------------------------- + +.. automodule:: adet.modeling.poolers + :members: + :undoc-members: + :show-inheritance: + + +Model Registries +----------------- + +These are different registries provided in modeling. +Each registry provide you the ability to replace it with your customized component, +without having to modify detectron2's code. + +Note that it is impossible to allow users to customize any line of code directly. +Even just to add one line at some place, +you'll likely need to find out the smallest registry which contains that line, +and register your component to that registry. + + +* detectron2.modeling.META_ARCH_REGISTRY +* detectron2.modeling.BACKBONE_REGISTRY +* detectron2.modeling.PROPOSAL_GENERATOR_REGISTRY +* detectron2.modeling.RPN_HEAD_REGISTRY +* detectron2.modeling.ANCHOR_GENERATOR_REGISTRY +* detectron2.modeling.ROI_HEADS_REGISTRY +* detectron2.modeling.ROI_BOX_HEAD_REGISTRY +* detectron2.modeling.ROI_MASK_HEAD_REGISTRY +* detectron2.modeling.ROI_KEYPOINT_HEAD_REGISTRY \ No newline at end of file diff --git a/AdelaiDet/docs/modules/utils.rst b/AdelaiDet/docs/modules/utils.rst new file mode 100755 index 0000000..092db74 --- /dev/null +++ b/AdelaiDet/docs/modules/utils.rst @@ -0,0 +1,18 @@ +adet.utils package +======================== + +adet.utils.comm module +-------------------------------- + +.. automodule:: adet.utils.comm + :members: + :undoc-members: + :show-inheritance: + +adet.utils.measures module +---------------------------- + +.. automodule:: adet.utils.measures + :members: + :undoc-members: + :show-inheritance: diff --git a/AdelaiDet/onnx/.gitignore b/AdelaiDet/onnx/.gitignore new file mode 100755 index 0000000..8a0b666 --- /dev/null +++ b/AdelaiDet/onnx/.gitignore @@ -0,0 +1 @@ +ncnn diff --git a/AdelaiDet/onnx/README.md b/AdelaiDet/onnx/README.md new file mode 100755 index 0000000..fb73eba --- /dev/null +++ b/AdelaiDet/onnx/README.md @@ -0,0 +1,73 @@ + +# update history + +2020.05.07: + +1. add [onnxruntime](https://github.com/microsoft/onnxruntime) verification demo + +2. add RT model all-in-one script + +# Export to onnx/caffe/ncnn + +Refer all-in-one script: [pytorch-onnx-caffe-ncnn.sh](pytorch-onnx-caffe-ncnn.sh) (BN instead of GN used in the FCOS head) + +Refer another all-in-one script: [pytorch-onnx-caffe-ncnn-rt.sh](pytorch-onnx-caffe-ncnn-rt.sh) for the RT model alone with onnxruntime verification demo + +note: to convert model to *Caffe* and *NCNN* requires BN in the FCOS head + +# Normalization in the FCOS head +The normalization in FOCS head is GroupNorm (GN) by default as shown in the original paper. Unlike BN, GN caculates the mean and variance of features online. Thus, it costs extra time and memory. +On the other hand, as BN can be merged into the previous convolution layer, BN introduces no computation overhead during inference. The following instruction introduces a simple method to measure the impact of GN on speed. + +* prepare some images (for example 1000) in folder output/test/input/ + +* include time measurement code in demo/demo.py + +* GN + GPU: total execution time 285.1398s, average 0.0696s per image + +```sh +python demo/demo --config-file configs/FCOS-Detection/R_50_1x.yaml --input output/test/input/ --output output/test/output/ --opts MODEL.WEIGHTS weights/fcos_R_50_1x.pth +``` +* BN + GPU: total execution time 257.4333s, average 0.0628s per image +```sh +python demo/demo.py --config-file configs/FCOS-Detection/R_50_1x.yaml --input output/test/input/ --output output/test/output/ --opts MODEL.WEIGHTS weights/fcos_R_50_1x.pth MODEL.FCOS.NORM BN +``` +* GN + CPU: total execution time 1125.4375s, average 1.0112s per image +```sh +python demo/demo.py --config-file configs/FCOS-Detection/R_50_1x.yaml --input output/test/input/ --output output/test/output/ --opts MODEL.WEIGHTS weights/fcos_R_50_1x.pth MODEL.DEVICE cpu +``` +* BN + CPU: total execution time 1068.0550s, average 0.9596s per image +```sh +python demo/demo.py --config-file configs/FCOS-Detection/R_50_1x.yaml --input output/test/input/ --output output/test/output/ --opts MODEL.WEIGHTS weights/fcos_R_50_1x.pth MODEL.DEVICE cpu MODEL.FCOS.NORM BN +``` + +Tested on 2080ti. The result shows 5~10% slower for GN compared against BN. + +# Result compare between pytorch and NCNN + +* pytorch version: run demo/demo.py +* ncnn version: refer to https://github.com/blueardour/ncnn/blob/master/examples/fcos.cpp + +Example: take coco/test2017/000000144041.jpg as the test image + +``` +#> cd AdelaiDet + +#> mkdir -p output/test/ + +#> cp $COCO/test2017/000000144041.jpg output/test/input.jpg + +#> python demo/demo.py --config-file configs/FCOS-Detection/R_50_1x.yaml --input output/test/input.jpg --output output/test/output.jpg --opts MODEL.WEIGHTS /data/pretrained/pytorch/fcos/FCOS_R_50_1x_bn_head.pth MODEL.FCOS.NORM "BN" MODEL.DEVICE cpu + + +#> cd $NCNN_ROOT # (build the project ahead) + +#> cd build-host-gcc-linux/examples + +#> ln -s /data/pretrained/ncnn/fcos/FCOS_R_50_1x_bn_head-update-opt.bin net.bin # (refer pytorch-onnx-caffe-ncnn.sh to generate the file) + +#> ln -s /data/pretrained/ncnn/fcos/FCOS_R_50_1x_bn_head-update-opt.param net.param (refer pytorch-onnx-caffe-ncnn.sh to generate the file) + +#> ./fcos /workspace/git/uofa-AdelaiDet/output/test/input.jpg net.param net.bin 800 1088 +``` + diff --git a/AdelaiDet/onnx/export_model_to_onnx.py b/AdelaiDet/onnx/export_model_to_onnx.py new file mode 100755 index 0000000..c097e12 --- /dev/null +++ b/AdelaiDet/onnx/export_model_to_onnx.py @@ -0,0 +1,299 @@ +""" +A working example to export the R-50 based FCOS model: +python onnx/export_model_to_onnx.py \ + --config-file configs/FCOS-Detection/R_50_1x.yaml \ + --output /data/pretrained/onnx/fcos/FCOS_R_50_1x_bn_head.onnx + --opts MODEL.WEIGHTS /data/pretrained/pytorch/fcos/FCOS_R_50_1x_bn_head.pth MODEL.FCOS.NORM "BN" + +# about the upsample/interpolate +https://github.com/pytorch/pytorch/issues/10446 +https://github.com/pytorch/pytorch/issues/18113 +""" + +import argparse +import os +import glob +import multiprocessing as mp +import os +import time +import cv2 +import tqdm +import types +import torch +from torch import nn +from torch.nn import functional as F +from copy import deepcopy + +# multiple versions of Adet/FCOS are installed, remove the conflict ones from the path +try: + from remove_python_path import remove_path + remove_path() +except: + import sys + print(sys.path) + +from detectron2.data.detection_utils import read_image +from detectron2.utils.logger import setup_logger +from detectron2.data import MetadataCatalog +from detectron2.modeling import build_model +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.modeling import ProposalNetwork + +from adet.config import get_cfg +from adet.modeling import FCOS, BlendMask, BAText, MEInst, condinst, SOLOv2 +from adet.modeling.condinst.mask_branch import MaskBranch + +def patch_condinst(cfg, model, output_names): + def forward(self, tensor): + images = None + gt_instances = None + mask_feats = None + proposals = None + + features = self.backbone(tensor) + #return features + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances, self.controller) + #return proposals + mask_feats, sem_losses = self.mask_branch(features, gt_instances) + #return mask_feats + return mask_feats, proposals + + model.forward = types.MethodType(forward, model) + + #output tensor naming [optional] + +def patch_blendmask(cfg, model, output_names): + def forward(self, tensor): + images = None + gt_instances = None + basis_sem = None + + features = self.backbone(tensor) + basis_out, basis_losses = self.basis_module(features, basis_sem) + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances, self.top_layer) + return basis_out["bases"], proposals + + model.forward = types.MethodType(forward, model) + + #output tensor naming [optional] + output_names.extend(["bases"]) + for item in ["logits", "bbox_reg", "centerness", "top_feats"]: + for l in range(len(cfg.MODEL.FCOS.FPN_STRIDES)): + fpn_name = "P{}".format(3 + l) + output_names.extend([fpn_name + item]) + +def patch_ProposalNetwork(cfg, model, output_names): + def forward(self, tensor): + images = None + gt_instances = None + + features = self.backbone(tensor) + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances) + return proposals + + model.forward = types.MethodType(forward, model) + + #output tensor naming [optional] + for item in ["logits", "bbox_reg", "centerness"]: + for l in range(len(cfg.MODEL.FCOS.FPN_STRIDES)): + fpn_name = "P{}".format(3 + l) + output_names.extend([fpn_name + item]) + +def patch_fcos(cfg, proposal_generator): + def proposal_generator_forward(self, images, features, gt_instances=None, top_module=None): + features = [features[f] for f in self.in_features] + logits_pred, reg_pred, ctrness_pred, top_feats, bbox_towers = self.fcos_head(features, top_module, self.yield_proposal) + return (logits_pred, reg_pred, ctrness_pred, top_feats, bbox_towers), None + + proposal_generator.forward = types.MethodType(proposal_generator_forward, proposal_generator) + +def patch_fcos_head(cfg, fcos_head): + # step 1. config + norm = None if cfg.MODEL.FCOS.NORM == "none" else cfg.MODEL.FCOS.NORM + head_configs = {"cls": (cfg.MODEL.FCOS.NUM_CLS_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "bbox": (cfg.MODEL.FCOS.NUM_BOX_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "share": (cfg.MODEL.FCOS.NUM_SHARE_CONVS, + False)} + + # step 2. separate module + for l in range(fcos_head.num_levels): + for head in head_configs: + tower = [] + num_convs, use_deformable = head_configs[head] + for i in range(num_convs): + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 0])) + if norm in ["GN", "NaiveGN"]: + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 1])) + elif norm in ["BN", "SyncBN"]: + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 1][l])) + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 2])) + fcos_head.add_module('{}_tower{}'.format(head, l), torch.nn.Sequential(*tower)) + + # step 3. override fcos_head forward + def fcos_head_forward(self, x, top_module=None, yield_bbox_towers=False): + logits = [] + bbox_reg = [] + ctrness = [] + top_feats = [] + bbox_towers = [] + for l, feature in enumerate(x): + feature = self.share_tower(feature) + cls_tower = getattr(self, 'cls_tower{}'.format(l))(feature) + bbox_tower = getattr(self, 'bbox_tower{}'.format(l))(feature) + if yield_bbox_towers: + bbox_towers.append(bbox_tower) + + logits.append(self.cls_logits(cls_tower)) + ctrness.append(self.ctrness(bbox_tower)) + reg = self.bbox_pred(bbox_tower) + if self.scales is not None: + reg = self.scales[l](reg) + # Note that we use relu, as in the improved FCOS, instead of exp. + bbox_reg.append(F.relu(reg)) + if top_module is not None: + top_feats.append(top_module(bbox_tower)) + + return logits, bbox_reg, ctrness, top_feats, bbox_towers + + fcos_head.forward = types.MethodType(fcos_head_forward, fcos_head) + +def upsample(tensor, factor): # aligned_bilinear in adet/utils/comm.py is not onnx-friendly + assert tensor.dim() == 4 + assert factor >= 1 + assert int(factor) == factor + + if factor == 1: + return tensor + + h, w = tensor.size()[2:] + oh = factor * h + ow = factor * w + tensor = F.interpolate( + tensor, size=(oh, ow), + mode='nearest', + ) + return tensor + +def patch_mask_branch(cfg, mask_branch): + def mask_branch_forward(self, features, gt_instances=None): + for i, f in enumerate(self.in_features): + if i == 0: + x = self.refine[i](features[f]) + else: + x_p = self.refine[i](features[f]) + + target_h, target_w = x.size()[2:] + h, w = x_p.size()[2:] + assert target_h % h == 0 + assert target_w % w == 0 + factor_h, factor_w = target_h // h, target_w // w + assert factor_h == factor_w + x_p = upsample(x_p, factor_h) + x = x + x_p + + mask_feats = self.tower(x) + + if self.num_outputs == 0: + mask_feats = mask_feats[:, :self.num_outputs] + + losses = {} + return mask_feats, losses + + mask_branch.forward = types.MethodType(mask_branch_forward, mask_branch) + +def main(): + parser = argparse.ArgumentParser(description="Export model to the onnx format") + parser.add_argument( + "--config-file", + default="configs/FCOS-Detection/R_50_1x.yaml", + metavar="FILE", + help="path to config file", + ) + parser.add_argument('--width', default=0, type=int) + parser.add_argument('--height', default=0, type=int) + parser.add_argument('--level', default=0, type=int) + parser.add_argument( + "--output", + default="output/fcos.onnx", + metavar="FILE", + help="path to the output onnx file", + ) + parser.add_argument( + "--opts", + help="Modify config options using the command-line 'KEY VALUE' pairs", + default=[], + nargs=argparse.REMAINDER, + ) + + cfg = get_cfg() + args = parser.parse_args() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + + # norm for ONNX: change FrozenBN back to BN + cfg.MODEL.BACKBONE.FREEZE_AT = 0 + cfg.MODEL.RESNETS.NORM = "BN" + cfg.MODEL.BASIS_MODULE.NORM = "BN" + + # turn on the following configuration according to your own convenience + #cfg.MODEL.FCOS.NORM = "BN" + #cfg.MODEL.FCOS.NORM = "NaiveGN" + + cfg.freeze() + + output_dir = cfg.OUTPUT_DIR + logger = setup_logger(output=output_dir) + logger.info(cfg) + + model = build_model(cfg) + model.eval() + model.to(cfg.MODEL.DEVICE) + logger.info("Model:\n{}".format(model)) + + checkpointer = DetectionCheckpointer(model) + _ = checkpointer.load(cfg.MODEL.WEIGHTS) + logger.info("load Model:\n{}".format(cfg.MODEL.WEIGHTS)) + + height, width = 800, 1088 + if args.width > 0: + width = args.width + if args.height > 0: + height = args.height + input_names = ["input_image"] + dummy_input = torch.zeros((1, 3, height, width)).to(cfg.MODEL.DEVICE) + output_names = [] + if isinstance(model, condinst.CondInst): + patch_condinst(cfg, model, output_names) + + if isinstance(model, BlendMask): + patch_blendmask(cfg, model, output_names) + + if isinstance(model, ProposalNetwork): + patch_ProposalNetwork(cfg, model, output_names) + + if hasattr(model, 'proposal_generator'): + if isinstance(model.proposal_generator, FCOS): + patch_fcos(cfg, model.proposal_generator) + patch_fcos_head(cfg, model.proposal_generator.fcos_head) + + if hasattr(model, 'mask_branch'): + if isinstance(model.mask_branch, MaskBranch): + patch_mask_branch(cfg, model.mask_branch) # replace aligned_bilinear with nearest upsample + + torch.onnx.export( + model, + dummy_input, + args.output, + verbose=True, + input_names=input_names, + output_names=output_names, + keep_initializers_as_inputs=True, + ) + + logger.info("Done. The onnx model is saved into {}.".format(args.output)) + + +if __name__ == "__main__": + main() diff --git a/AdelaiDet/onnx/pytorch-onnx-caffe-ncnn-rt.sh b/AdelaiDet/onnx/pytorch-onnx-caffe-ncnn-rt.sh new file mode 100755 index 0000000..9ef50b3 --- /dev/null +++ b/AdelaiDet/onnx/pytorch-onnx-caffe-ncnn-rt.sh @@ -0,0 +1,89 @@ + +if [ "$1" == "update" ]; +then + update='update' +else + update= +fi + +if [ "$1" == "test" ]; +then + onnx_rt='test' +else + onnx_rt= +fi + +caffe_repo=/data/pretrained/caffe/fcos/ +onnx_repo=/data/pretrained/onnx/fcos/ +pytorch_repo=/data/pretrained/pytorch/fcos/ +ncnn_repo=/data/pretrained/ncnn/fcos/ + +config=configs/FCOS-Detection/FCOS_RT/MS_R_50_4x_syncbn_bn_head.yaml +case=FCOS_RT_MS_R_50_4x_syncbn_bn_head + +if [ ! -e $onnx_repo/$case.onnx ] || [ "$update" != "" ]; +then + cd /workspace/git/uofa-AdelaiDet/ # folder of project https://github.com/aim-uofa/AdelaiDet + pwd + python -V # ensure python3.x + python onnx/export_model_to_onnx.py \ + --config-file $config \ + --output $onnx_repo/$case.onnx \ + --width 768 --height 640 \ + --opts MODEL.WEIGHTS $pytorch_repo/$case.pth MODEL.FCOS.NORM "BN" MODEL.DEVICE cpu + if [ $? -ne 0 ]; then exit; fi +fi + +if [ ! -e $onnx_repo/$case-update.onnx ] || [ "$update" != "" ]; +then + # advise version 1.3.0 + cd /workspace/git/onnx-simplifier # folder of project: https://github.com/daquexian/onnx-simplifier + pwd + python -V # ensure python3.x + python -m onnxsim $onnx_repo/$case.onnx $onnx_repo/$case-update.onnx + if [ $? -ne 0 ]; then exit; fi +fi + +# optional +if [ ! -e $caffe_repo/$case-update.caffemodel ]; +then + # switch to python2 and ensure caffe (with the upsample patch) ready + # refer: https://github.com/blueardour/caffe.git for patched version + cd /workspace/git/onnx2caffe # folder of project: https://github.com/MTlab/onnx2caffe + pwd + python -V + python convertCaffe.py $onnx_repo/$case-update.onnx $caffe_repo/$case-update.prototxt $caffe_repo/$case-update.caffemodel + if [ $? -ne 0 ]; then exit; fi +fi + +# ncnn +if [ ! -e $ncnn_repo/$case-update-opt.bin ] || [ "$update" != "" ] +then + cd /workspace/git/ncnn # folder of project: https://github.com/Tencent/ncnn + pwd + mkdir -p $ncnn_repo + ./build-host-gcc-linux/tools/onnx/onnx2ncnn $onnx_repo/$case-update.onnx $ncnn_repo/$case-update.param $ncnn_repo/$case-update.bin + if [ $? -eq 0 ]; then + echo "Optimizing" + ./build-host-gcc-linux/tools/ncnnoptimize $ncnn_repo/$case-update.param $ncnn_repo/$case-update.bin \ + $ncnn_repo/$case-update-opt.param $ncnn_repo/$case-update-opt.bin \ + 0 #data 640 512 3 + else + echo "Convert failed" + fi +fi + +if [ "$onnx_rt" == "test" ]; +then + cd /workspace/git/uofa-AdelaiDet/ # folder of project https://github.com/aim-uofa/AdelaiDet + pwd + python -V # ensure python3.x + python onnx/test_onnxruntime.py \ + --config-file $config \ + --output $onnx_repo/$case-update.onnx \ + --width 768 --height 640 \ + --opts MODEL.WEIGHTS $pytorch_repo/$case.pth MODEL.FCOS.NORM "BN" MODEL.DEVICE cpu + if [ $? -ne 0 ]; then exit; fi +fi + + diff --git a/AdelaiDet/onnx/pytorch-onnx-caffe-ncnn.sh b/AdelaiDet/onnx/pytorch-onnx-caffe-ncnn.sh new file mode 100755 index 0000000..2ff48a8 --- /dev/null +++ b/AdelaiDet/onnx/pytorch-onnx-caffe-ncnn.sh @@ -0,0 +1,58 @@ + +update=$1 # force update +caffe_repo=/data/pretrained/caffe/fcos/ +onnx_repo=/data/pretrained/onnx/fcos/ +pytorch_repo=/data/pretrained/pytorch/fcos/ +ncnn_repo=/data/pretrained/ncnn/fcos/ +case=FCOS_R_50_1x_bn_head + +mkdir -p $caffe_repo $onnx_repo $pytorch_repo $ncnn_repo + +if [ ! -e $onnx_repo/$case.onnx ] || [ "$update" != "" ]; +then + cd /workspace/git/uofa-AdelaiDet/ # folder of project https://github.com/aim-uofa/AdelaiDet + pwd + python -V # ensure python3.x + python onnx/export_model_to_onnx.py \ + --config-file configs/FCOS-Detection/R_50_1x.yaml \ + --output $onnx_repo/$case.onnx \ + --opts MODEL.WEIGHTS $pytorch_repo/$case.pth MODEL.FCOS.NORM "BN" MODEL.DEVICE cpu +fi + +if [ ! -e $onnx_repo/$case-update.onnx ] || [ "$update" != "" ]; +then + # advise version 1.3.0 + cd /workspace/git/onnx-simplifier # folder of project: https://github.com/daquexian/onnx-simplifier + pwd + python -V # ensure python3.x + python -m onnxsim $onnx_repo/$case.onnx $onnx_repo/$case-update.onnx +fi + +# optional +if [ ! -e $caffe_repo/$case-update.caffemodel ]; +then + # switch to python2 and ensure caffe (with the upsample patch) ready + # refer: https://github.com/blueardour/caffe.git for patched version + cd /workspace/git/onnx2caffe # folder of project: https://github.com/MTlab/onnx2caffe + pwd + python -V + python convertCaffe.py $onnx_repo/$case-update.onnx $caffe_repo/$case-update.prototxt $caffe_repo/$case-update.caffemodel +fi + +# ncnn +if [ ! -e $ncnn_repo/$case-opt.bin ] || [ "$update" != "" ] +then + cd /workspace/git/ncnn # folder of project: https://github.com/Tencent/ncnn + pwd + mkdir -p $ncnn_repo + ./build-host-gcc-linux/tools/onnx/onnx2ncnn $onnx_repo/$case-update.onnx $ncnn_repo/$case-update.param $ncnn_repo/$case-update.bin + if [ $? -eq 0 ]; then + echo "Optimizing" + ./build-host-gcc-linux/tools/ncnnoptimize $ncnn_repo/$case-update.param $ncnn_repo/$case-update.bin \ + $ncnn_repo/$case-update-opt.param $ncnn_repo/$case-update-opt.bin \ + 0 + else + echo "Convert failed" + fi +fi + diff --git a/AdelaiDet/onnx/test_onnxruntime.py b/AdelaiDet/onnx/test_onnxruntime.py new file mode 100755 index 0000000..ce5b893 --- /dev/null +++ b/AdelaiDet/onnx/test_onnxruntime.py @@ -0,0 +1,307 @@ + +""" +A working example to export the R-50 based FCOS model: +python onnx/test_onnxruntime.py \ + --config-file configs/FCOS-Detection/R_50_1x.yaml \ + --output /data/pretrained/onnx/fcos/FCOS_R_50_1x_bn_head.onnx + --opts MODEL.WEIGHTS /data/pretrained/pytorch/fcos/FCOS_R_50_1x_bn_head.pth MODEL.FCOS.NORM "BN" + +""" + +import onnx +import caffe2.python.onnx.backend as caffe2_backend +import argparse +import os +import glob +import multiprocessing as mp +import os +import time +import cv2 +import tqdm +import types +import torch +from copy import deepcopy +from torch import nn +from torch.nn import functional as F +import numpy as np +import onnxruntime as rt + +# multiple versions of Adet/FCOS are installed, remove the conflict ones from the path +try: + from remove_python_path import remove_path + remove_path() +except: + import sys + print("debug", sys.path) + +from detectron2.data.detection_utils import read_image +from detectron2.utils.logger import setup_logger +from detectron2.data import MetadataCatalog +from detectron2.modeling import build_model +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.modeling import ProposalNetwork + +from adet.config import get_cfg +from adet.modeling import FCOS, BlendMask + +import onnx_tensorrt.backend as tensorrt_backend + +def patch_blendmask(cfg, model, output_names): + def forward(self, tensor): + images = None + gt_instances = None + basis_sem = None + + features = self.backbone(tensor) + basis_out, basis_losses = self.basis_module(features, basis_sem) + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances, self.top_layer) + return basis_out["bases"], proposals + + model.forward = types.MethodType(forward, model) + # output + output_names.extend(["bases"]) + for item in ["logits", "bbox_reg", "centerness", "top_feats"]: + for l in range(len(cfg.MODEL.FCOS.FPN_STRIDES)): + fpn_name = "P{}".format(3 + l) + output_names.extend([fpn_name + item]) + +def patch_ProposalNetwork(cfg, model, output_names): + def forward(self, tensor): + images = None + gt_instances = None + + features = self.backbone(tensor) + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances) + return proposals + + model.forward = types.MethodType(forward, model) + # output + for item in ["logits", "bbox_reg", "centerness"]: + for l in range(len(cfg.MODEL.FCOS.FPN_STRIDES)): + fpn_name = "P{}".format(3 + l) + output_names.extend([fpn_name + item]) + +def patch_fcos(cfg, proposal_generator): + def proposal_generator_forward(self, images, features, gt_instances=None, top_module=None): + features = [features[f] for f in self.in_features] + logits_pred, reg_pred, ctrness_pred, top_feats, bbox_towers = self.fcos_head(features, top_module, self.yield_proposal) + return (logits_pred, reg_pred, ctrness_pred, top_feats, bbox_towers), None + + proposal_generator.forward = types.MethodType(proposal_generator_forward, proposal_generator) + +def patch_fcos_head(cfg, fcos_head): + # step 1. config + norm = None if cfg.MODEL.FCOS.NORM == "none" else cfg.MODEL.FCOS.NORM + head_configs = {"cls": (cfg.MODEL.FCOS.NUM_CLS_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "bbox": (cfg.MODEL.FCOS.NUM_BOX_CONVS, + cfg.MODEL.FCOS.USE_DEFORMABLE), + "share": (cfg.MODEL.FCOS.NUM_SHARE_CONVS, + False)} + + # step 2. seperate module + for l in range(fcos_head.num_levels): + for head in head_configs: + tower = [] + num_convs, use_deformable = head_configs[head] + for i in range(num_convs): + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 0])) + if norm in ["GN", "NaiveGN"]: + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 1])) + elif norm in ["BN", "SyncBN"]: + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 1][l])) + tower.append(deepcopy(getattr(fcos_head, '{}_tower'.format(head))[i*3 + 2])) + fcos_head.add_module('{}_tower{}'.format(head, l), torch.nn.Sequential(*tower)) + + # step 3. override fcos_head forward + def fcos_head_forward(self, x, top_module=None, yield_bbox_towers=False): + logits = [] + bbox_reg = [] + ctrness = [] + top_feats = [] + bbox_towers = [] + for l, feature in enumerate(x): + feature = self.share_tower(feature) + cls_tower = getattr(self, 'cls_tower{}'.format(l))(feature) + bbox_tower = getattr(self, 'bbox_tower{}'.format(l))(feature) + if yield_bbox_towers: + bbox_towers.append(bbox_tower) + + logits.append(self.cls_logits(cls_tower)) + ctrness.append(self.ctrness(bbox_tower)) + reg = self.bbox_pred(bbox_tower) + if self.scales is not None: + reg = self.scales[l](reg) + # Note that we use relu, as in the improved FCOS, instead of exp. + bbox_reg.append(F.relu(reg)) + if top_module is not None: + top_feats.append(top_module(bbox_tower)) + + return logits, bbox_reg, ctrness, top_feats, bbox_towers + + fcos_head.forward = types.MethodType(fcos_head_forward, fcos_head) + +def to_list(inputs): + outputs = [] + for item in inputs: + if isinstance(item, tuple) or isinstance(item, list): + for tp in item: + if isinstance(tp, tuple) or isinstance(tp, list): + for lt in tp: + if isinstance(lt, tuple) or isinstance(lt, list): + print("result is still packed strucure") + elif isinstance(lt, torch.Tensor): + print("collect tensor:", lt.shape) + outputs.append(lt) + elif isinstance(tp, torch.Tensor): + print("collect tensor:", tp.shape) + outputs.append(tp) + elif isinstance(item, torch.Tensor): + print("collect tensor:", item.shape) + outputs.append(item) + print("output item count: %d" % len(outputs)) + return outputs + +def main(): + parser = argparse.ArgumentParser(description="Export model to the onnx format") + parser.add_argument( + "--config-file", + default="configs/FCOS-Detection/R_50_1x.yaml", + metavar="FILE", + help="path to config file", + ) + parser.add_argument('--width', default=0, type=int) + parser.add_argument('--height', default=0, type=int) + parser.add_argument('--level', default=0, type=int) + parser.add_argument( + "--output", + default="output/fcos.onnx", + metavar="FILE", + help="path to the output onnx file", + ) + parser.add_argument( + "--opts", + help="Modify config options using the command-line 'KEY VALUE' pairs", + default=[], + nargs=argparse.REMAINDER, + ) + + cfg = get_cfg() + args = parser.parse_args() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + + # norm for ONNX: change FrozenBN back to BN + cfg.MODEL.BACKBONE.FREEZE_AT = 0 + cfg.MODEL.RESNETS.NORM = "BN" + cfg.MODEL.BASIS_MODULE.NORM = "BN" + + # turn on the following configuration according to your own convenience + #cfg.MODEL.FCOS.NORM = "BN" + #cfg.MODEL.FCOS.NORM = "NaiveGN" + + cfg.freeze() + + output_dir = cfg.OUTPUT_DIR + logger = setup_logger(output=output_dir) + logger.info(cfg) + + model = build_model(cfg) + model.eval() + model.to(cfg.MODEL.DEVICE) + logger.info("Model:\n{}".format(model)) + + checkpointer = DetectionCheckpointer(model) + _ = checkpointer.load(cfg.MODEL.WEIGHTS) + logger.info("load Model:\n{}".format(cfg.MODEL.WEIGHTS)) + + height, width = 800, 1088 + if args.width > 0: + width = args.width + if args.height > 0: + height = args.height + input_names = ["input_image"] + dummy_input = torch.zeros((1, 3, height, width)).to(cfg.MODEL.DEVICE) + output_names = [] + if isinstance(model, BlendMask): + patch_blendmask(cfg, model, output_names) + + if isinstance(model, ProposalNetwork): + patch_ProposalNetwork(cfg, model, output_names) + + if hasattr(model, 'proposal_generator'): + if isinstance(model.proposal_generator, FCOS): + patch_fcos(cfg, model.proposal_generator) + patch_fcos_head(cfg, model.proposal_generator.fcos_head) + + + logger.info("Load onnx model from {}.".format(args.output)) + sess = rt.InferenceSession(args.output) + + # check input and output + for in_blob in sess.get_inputs(): + if in_blob.name not in input_names: + print("Input blob name not match that in the mode") + else: + print("Input {}, shape {} and type {}".format(in_blob.name, in_blob.shape, in_blob.type)) + for out_blob in sess.get_outputs(): + if out_blob.name not in output_names: + print("Output blob name not match that in the mode") + else: + print("Output {}, shape {} and type {}".format(out_blob.name, out_blob.shape, out_blob.type)) + + # run pytorch model + with torch.no_grad(): + torch_output = model(dummy_input) + torch_output = to_list(torch_output) + + # run onnx by onnxruntime + onnx_output = sess.run(None, {input_names[0]: dummy_input.cpu().numpy()}) + + logger.info("Load onnx model from {}.".format(args.output)) + load_model = onnx.load(args.output) + onnx.checker.check_model(load_model) + + # run onnx by caffe2 + onnx_model = caffe2_backend.prepare(load_model) + caffe2_output = onnx_model.run(dummy_input.data.numpy()) + + # run onnx by tensorrt + onnx_model = tensorrt_backend.prepare(load_model) + tensorrt_output = onnx_model.run(dummy_input.data.numpy()) + + # compare the result + print("onnxruntime") + for i, out in enumerate(onnx_output): + try: + np.testing.assert_allclose(torch_output[i].cpu().detach().numpy(), out, rtol=1e-03, atol=2e-04) + except AssertionError as e: + print("ouput {} mismatch {}".format(output_names[i], e)) + continue + print("ouput {} match\n".format(output_names[i])) + + # compare the result + print("caffe2") + for i, out in enumerate(caffe2_output): + try: + np.testing.assert_allclose(torch_output[i].cpu().detach().numpy(), out, rtol=1e-03, atol=2e-04) + except AssertionError as e: + print("ouput {} mismatch {}".format(output_names[i], e)) + continue + print("ouput {} match\n".format(output_names[i])) + + # compare the result + print("tensorrt") + for i, name in enumerate(output_names): + try: + out = tensorrt_output[name] + np.testing.assert_allclose(torch_output[i].cpu().detach().numpy(), out, rtol=1e-03, atol=2e-04) + except AssertionError as e: + print("ouput {} mismatch {}".format(output_names[i], e)) + continue + print("ouput {} match\n".format(output_names[i])) + + print("script done") + +if __name__ == "__main__": + main() diff --git a/AdelaiDet/setup.py b/AdelaiDet/setup.py new file mode 100755 index 0000000..046c57c --- /dev/null +++ b/AdelaiDet/setup.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import glob +import os +from setuptools import find_packages, setup +import torch +from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension + +torch_ver = [int(x) for x in torch.__version__.split(".")[:2]] +assert torch_ver >= [1, 3], "Requires PyTorch >= 1.3" + + +def get_extensions(): + this_dir = os.path.dirname(os.path.abspath(__file__)) + extensions_dir = os.path.join(this_dir, "adet", "layers", "csrc") + + main_source = os.path.join(extensions_dir, "vision.cpp") + sources = glob.glob(os.path.join(extensions_dir, "**", "*.cpp")) + source_cuda = glob.glob(os.path.join(extensions_dir, "**", "*.cu")) + glob.glob( + os.path.join(extensions_dir, "*.cu") + ) + + sources = [main_source] + sources + + extension = CppExtension + + extra_compile_args = {"cxx": []} + define_macros = [] + + if (torch.cuda.is_available() and CUDA_HOME is not None) or os.getenv("FORCE_CUDA", "0") == "1": + extension = CUDAExtension + sources += source_cuda + define_macros += [("WITH_CUDA", None)] + extra_compile_args["nvcc"] = [ + "-DCUDA_HAS_FP16=1", + "-D__CUDA_NO_HALF_OPERATORS__", + "-D__CUDA_NO_HALF_CONVERSIONS__", + "-D__CUDA_NO_HALF2_OPERATORS__", + ] + + if torch_ver < [1, 7]: + # supported by https://github.com/pytorch/pytorch/pull/43931 + CC = os.environ.get("CC", None) + if CC is not None: + extra_compile_args["nvcc"].append("-ccbin={}".format(CC)) + + sources = [os.path.join(extensions_dir, s) for s in sources] + + include_dirs = [extensions_dir] + + ext_modules = [ + extension( + "adet._C", + sources, + include_dirs=include_dirs, + define_macros=define_macros, + extra_compile_args=extra_compile_args, + ) + ] + + return ext_modules + + +setup( + name="AdelaiDet", + version="0.2.0", + author="Adelaide Intelligent Machines", + url="https://github.com/stanstarks/AdelaiDet", + description="AdelaiDet is AIM's research " + "platform for instance-level detection tasks based on Detectron2.", + packages=find_packages(exclude=("configs", "tests")), + python_requires=">=3.6", + install_requires=[ + "termcolor>=1.1", + "Pillow>=6.0", + "yacs>=0.1.6", + "tabulate", + "cloudpickle", + "matplotlib", + "tqdm>4.29.0", + "tensorboard", + "rapidfuzz", + "Polygon3", + "shapely", + "scikit-image", + "editdistance" + ], + extras_require={"all": ["psutil"]}, + ext_modules=get_extensions(), + cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}, +) diff --git a/AdelaiDet/tools/convert_fcos_weight.py b/AdelaiDet/tools/convert_fcos_weight.py new file mode 100755 index 0000000..971525c --- /dev/null +++ b/AdelaiDet/tools/convert_fcos_weight.py @@ -0,0 +1,62 @@ +import argparse +from collections import OrderedDict + +import torch + + +def get_parser(): + parser = argparse.ArgumentParser(description="FCOS Detectron2 Converter") + parser.add_argument( + "--model", + default="weights/fcos_R_50_1x_official.pth", + metavar="FILE", + help="path to model weights", + ) + parser.add_argument( + "--output", + default="weights/fcos_R_50_1x_converted.pth", + metavar="FILE", + help="path to model weights", + ) + return parser + + +def rename_resnet_param_names(ckpt_state_dict): + converted_state_dict = OrderedDict() + for key in ckpt_state_dict.keys(): + value = ckpt_state_dict[key] + + key = key.replace("module.", "") + key = key.replace("body", "bottom_up") + + # adding a . ahead to avoid renaming the fpn modules + # this can happen after fpn renaming + key = key.replace(".layer1", ".res2") + key = key.replace(".layer2", ".res3") + key = key.replace(".layer3", ".res4") + key = key.replace(".layer4", ".res5") + key = key.replace("downsample.0", "shortcut") + key = key.replace("downsample.1", "shortcut.norm") + key = key.replace("bn1", "conv1.norm") + key = key.replace("bn2", "conv2.norm") + key = key.replace("bn3", "conv3.norm") + key = key.replace("fpn_inner2", "fpn_lateral3") + key = key.replace("fpn_inner3", "fpn_lateral4") + key = key.replace("fpn_inner4", "fpn_lateral5") + key = key.replace("fpn_layer2", "fpn_output3") + key = key.replace("fpn_layer3", "fpn_output4") + key = key.replace("fpn_layer4", "fpn_output5") + key = key.replace("top_blocks", "top_block") + key = key.replace("fpn.", "") + key = key.replace("rpn", "proposal_generator") + key = key.replace("head", "fcos_head") + + converted_state_dict[key] = value + return converted_state_dict + + +if __name__ == "__main__": + args = get_parser().parse_args() + ckpt = torch.load(args.model) + model = rename_resnet_param_names(ckpt["model"]) + torch.save(model, args.output) diff --git a/AdelaiDet/tools/merge_strong_and_weak_labels.py b/AdelaiDet/tools/merge_strong_and_weak_labels.py new file mode 100644 index 0000000..fc301cd --- /dev/null +++ b/AdelaiDet/tools/merge_strong_and_weak_labels.py @@ -0,0 +1,189 @@ +import os +import argparse +import json +import torch +import pycocotools.mask as mask_util +from tqdm import tqdm +from torch.multiprocessing import Process + +COCO_CATEGORIES = [ + {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"}, + {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"}, + {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, + {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"}, + {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"}, + {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"}, + {"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "train"}, + {"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "truck"}, + {"color": [0, 0, 192], "isthing": 1, "id": 9, "name": "boat"}, + {"color": [250, 170, 30], "isthing": 1, "id": 10, "name": "traffic light"}, + {"color": [100, 170, 30], "isthing": 1, "id": 11, "name": "fire hydrant"}, + {"color": [220, 220, 0], "isthing": 1, "id": 13, "name": "stop sign"}, + {"color": [175, 116, 175], "isthing": 1, "id": 14, "name": "parking meter"}, + {"color": [250, 0, 30], "isthing": 1, "id": 15, "name": "bench"}, + {"color": [165, 42, 42], "isthing": 1, "id": 16, "name": "bird"}, + {"color": [255, 77, 255], "isthing": 1, "id": 17, "name": "cat"}, + {"color": [0, 226, 252], "isthing": 1, "id": 18, "name": "dog"}, + {"color": [182, 182, 255], "isthing": 1, "id": 19, "name": "horse"}, + {"color": [0, 82, 0], "isthing": 1, "id": 20, "name": "sheep"}, + {"color": [120, 166, 157], "isthing": 1, "id": 21, "name": "cow"}, + {"color": [110, 76, 0], "isthing": 1, "id": 22, "name": "elephant"}, + {"color": [174, 57, 255], "isthing": 1, "id": 23, "name": "bear"}, + {"color": [199, 100, 0], "isthing": 1, "id": 24, "name": "zebra"}, + {"color": [72, 0, 118], "isthing": 1, "id": 25, "name": "giraffe"}, + {"color": [255, 179, 240], "isthing": 1, "id": 27, "name": "backpack"}, + {"color": [0, 125, 92], "isthing": 1, "id": 28, "name": "umbrella"}, + {"color": [209, 0, 151], "isthing": 1, "id": 31, "name": "handbag"}, + {"color": [188, 208, 182], "isthing": 1, "id": 32, "name": "tie"}, + {"color": [0, 220, 176], "isthing": 1, "id": 33, "name": "suitcase"}, + {"color": [255, 99, 164], "isthing": 1, "id": 34, "name": "frisbee"}, + {"color": [92, 0, 73], "isthing": 1, "id": 35, "name": "skis"}, + {"color": [133, 129, 255], "isthing": 1, "id": 36, "name": "snowboard"}, + {"color": [78, 180, 255], "isthing": 1, "id": 37, "name": "sports ball"}, + {"color": [0, 228, 0], "isthing": 1, "id": 38, "name": "kite"}, + {"color": [174, 255, 243], "isthing": 1, "id": 39, "name": "baseball bat"}, + {"color": [45, 89, 255], "isthing": 1, "id": 40, "name": "baseball glove"}, + {"color": [134, 134, 103], "isthing": 1, "id": 41, "name": "skateboard"}, + {"color": [145, 148, 174], "isthing": 1, "id": 42, "name": "surfboard"}, + {"color": [255, 208, 186], "isthing": 1, "id": 43, "name": "tennis racket"}, + {"color": [197, 226, 255], "isthing": 1, "id": 44, "name": "bottle"}, + {"color": [171, 134, 1], "isthing": 1, "id": 46, "name": "wine glass"}, + {"color": [109, 63, 54], "isthing": 1, "id": 47, "name": "cup"}, + {"color": [207, 138, 255], "isthing": 1, "id": 48, "name": "fork"}, + {"color": [151, 0, 95], "isthing": 1, "id": 49, "name": "knife"}, + {"color": [9, 80, 61], "isthing": 1, "id": 50, "name": "spoon"}, + {"color": [84, 105, 51], "isthing": 1, "id": 51, "name": "bowl"}, + {"color": [74, 65, 105], "isthing": 1, "id": 52, "name": "banana"}, + {"color": [166, 196, 102], "isthing": 1, "id": 53, "name": "apple"}, + {"color": [208, 195, 210], "isthing": 1, "id": 54, "name": "sandwich"}, + {"color": [255, 109, 65], "isthing": 1, "id": 55, "name": "orange"}, + {"color": [0, 143, 149], "isthing": 1, "id": 56, "name": "broccoli"}, + {"color": [179, 0, 194], "isthing": 1, "id": 57, "name": "carrot"}, + {"color": [209, 99, 106], "isthing": 1, "id": 58, "name": "hot dog"}, + {"color": [5, 121, 0], "isthing": 1, "id": 59, "name": "pizza"}, + {"color": [227, 255, 205], "isthing": 1, "id": 60, "name": "donut"}, + {"color": [147, 186, 208], "isthing": 1, "id": 61, "name": "cake"}, + {"color": [153, 69, 1], "isthing": 1, "id": 62, "name": "chair"}, + {"color": [3, 95, 161], "isthing": 1, "id": 63, "name": "couch"}, + {"color": [163, 255, 0], "isthing": 1, "id": 64, "name": "potted plant"}, + {"color": [119, 0, 170], "isthing": 1, "id": 65, "name": "bed"}, + {"color": [0, 182, 199], "isthing": 1, "id": 67, "name": "dining table"}, + {"color": [0, 165, 120], "isthing": 1, "id": 70, "name": "toilet"}, + {"color": [183, 130, 88], "isthing": 1, "id": 72, "name": "tv"}, + {"color": [95, 32, 0], "isthing": 1, "id": 73, "name": "laptop"}, + {"color": [130, 114, 135], "isthing": 1, "id": 74, "name": "mouse"}, + {"color": [110, 129, 133], "isthing": 1, "id": 75, "name": "remote"}, + {"color": [166, 74, 118], "isthing": 1, "id": 76, "name": "keyboard"}, + {"color": [219, 142, 185], "isthing": 1, "id": 77, "name": "cell phone"}, + {"color": [79, 210, 114], "isthing": 1, "id": 78, "name": "microwave"}, + {"color": [178, 90, 62], "isthing": 1, "id": 79, "name": "oven"}, + {"color": [65, 70, 15], "isthing": 1, "id": 80, "name": "toaster"}, + {"color": [127, 167, 115], "isthing": 1, "id": 81, "name": "sink"}, + {"color": [59, 105, 106], "isthing": 1, "id": 82, "name": "refrigerator"}, + {"color": [142, 108, 45], "isthing": 1, "id": 84, "name": "book"}, + {"color": [196, 172, 0], "isthing": 1, "id": 85, "name": "clock"}, + {"color": [95, 54, 80], "isthing": 1, "id": 86, "name": "vase"}, + {"color": [128, 76, 255], "isthing": 1, "id": 87, "name": "scissors"}, + {"color": [201, 57, 1], "isthing": 1, "id": 88, "name": "teddy bear"}, + {"color": [246, 0, 122], "isthing": 1, "id": 89, "name": "hair drier"}, + {"color": [191, 162, 208], "isthing": 1, "id": 90, "name": "toothbrush"}, +] +thing_ids = [k["id"] for k in COCO_CATEGORIES] + + +if __name__ == "__main__": + + parser = argparse.ArgumentParser(description="Detectron2 Demo") + parser.add_argument("--save_path", default="/home/user/DB/coco/annotations", help="path to config file",) + parser.add_argument("--full_json", default="/home/user/DB/coco/annotations/instances_train2017.json", help="path to config file",) + parser.add_argument("--strong_json", default="/home/user/DB", help="path to config file",) + parser.add_argument("--weak_pth", default="/home/user/DB", help="path to config file",) + parser.add_argument("--workers", default=4, type=int, help="the number of workers for multi-processing",) + args = parser.parse_args() + + with open(args.full_json) as json_file: + full_labels = json.load(json_file) + + with open(args.strong_json) as json_file: + strong_labels = json.load(json_file) + + weak_labels = torch.load(args.weak_pth, map_location='cpu') + + save_json = {} + save_json["info"] = full_labels["info"] + save_json["licenses"] = full_labels["licenses"] + save_json["categories"] = full_labels["categories"] + save_json["images"] = full_labels["images"] + save_json["annotations"] = strong_labels["annotations"] + + ''' + strong image : ['license', 'file_name', 'coco_url', 'height', 'width', 'date_captured', 'flickr_url', 'id'] + strong annotation : ['segmentation', 'area', 'iscrowd', 'image_id', 'bbox', 'category_id', 'id'] + + weak annotation : ['image_id', 'category_id', 'bbox', 'score', 'segmentation'] + ''' + + strong_images = [s['id'] for s in strong_labels["images"]] + print("strong_images : ", len(strong_images)) + + weak_images = [pred['image_id'] for pred in weak_labels] + print("weak_images : ", len(weak_images)) + + merge_images = list(set(strong_images+weak_images)) + print("merge_images : %d vs %d" %(len(strong_images)+len(weak_images), len(merge_images))) + + def run(args, pid): + anno = [] + + for n, pred in enumerate(tqdm(weak_labels)): + if n % args.workers != pid: + continue + + for inst in pred['instances']: + rle = inst['segmentation'] + mask = mask_util.decode(rle) + + if mask.sum() == 0: + continue + + y_coord, x_coord = mask.nonzero() + ymin, xmin = y_coord.min(), x_coord.min() + ymax, xmax = y_coord.max(), x_coord.max() + bbox = [int(xmin), int(ymin), int(xmax-xmin), int(ymax-ymin)] + + anno_dict = {} + anno_dict['segmentation'] = inst['segmentation'] + anno_dict['area'] = int(mask.sum()) + anno_dict['iscrowd'] = 0 + anno_dict['image_id'] = int(pred['image_id']) + anno_dict['bbox'] = bbox + anno_dict['category_id'] = thing_ids[inst['category_id']] + anno_dict['id'] = 0 + + anno.append(anno_dict) + + # temporarily save annotations on disk + with open(f"{os.path.basename(args.save_path)}_id{pid}.json", 'w') as f: + json.dump(anno, f) + + + processes = [] + for i in range(args.workers): + proc = Process(target=run, args=(args, i)) + processes.append(proc) + proc.start() + for proc in processes: + proc.join() + + # aggregate all annotations from temporarily saved files and remove them + for pid in range(args.workers): + with open(f"{os.path.basename(args.save_path)}_id{pid}.json", 'r') as f: + save_json["annotations"] += json.load(f) + os.system(f"rm -f {os.path.basename(args.save_path)}_id{pid}.json") + + for inst_id, anno in enumerate(save_json["annotations"]): + anno['id'] = inst_id+1 + + with open(args.save_path, 'w') as f: + json.dump(save_json, f) + \ No newline at end of file diff --git a/AdelaiDet/tools/remove_optim_from_ckpt.py b/AdelaiDet/tools/remove_optim_from_ckpt.py new file mode 100755 index 0000000..8298a8d --- /dev/null +++ b/AdelaiDet/tools/remove_optim_from_ckpt.py @@ -0,0 +1,25 @@ +import argparse + +import torch + + +def get_parser(): + parser = argparse.ArgumentParser(description="Keep only model in ckpt") + parser.add_argument( + "--path", + default="output/person/blendmask/R_50_1x/", + help="path to model weights", + ) + parser.add_argument( + "--name", + default="R_50_1x.pth", + help="name of output file", + ) + return parser + + +if __name__ == "__main__": + args = get_parser().parse_args() + ckpt = torch.load(args.path + 'model_final.pth') + model = ckpt["model"] + torch.save(model, args.path + args.name) diff --git a/AdelaiDet/tools/rename_blendmask.py b/AdelaiDet/tools/rename_blendmask.py new file mode 100755 index 0000000..694c502 --- /dev/null +++ b/AdelaiDet/tools/rename_blendmask.py @@ -0,0 +1,41 @@ +import argparse +from collections import OrderedDict + +import torch + + +def get_parser(): + parser = argparse.ArgumentParser(description="FCOS Detectron2 Converter") + parser.add_argument( + "--model", + default="weights/blendmask/person/R_50_1x.pth", + metavar="FILE", + help="path to model weights", + ) + parser.add_argument( + "--output", + default="weights/blendmask/person/R_50_1x.pth", + metavar="FILE", + help="path to model weights", + ) + return parser + + +def rename_resnet_param_names(ckpt_state_dict): + converted_state_dict = OrderedDict() + for key in ckpt_state_dict.keys(): + value = ckpt_state_dict[key] + key = key.replace("centerness", "ctrness") + + converted_state_dict[key] = value + return converted_state_dict + + +if __name__ == "__main__": + args = get_parser().parse_args() + ckpt = torch.load(args.model) + if "model" in ckpt: + model = rename_resnet_param_names(ckpt["model"]) + else: + model = rename_resnet_param_names(ckpt) + torch.save(model, args.output) diff --git a/AdelaiDet/tools/train_net.py b/AdelaiDet/tools/train_net.py new file mode 100755 index 0000000..e8e3aae --- /dev/null +++ b/AdelaiDet/tools/train_net.py @@ -0,0 +1,236 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +""" +Detection Training Script. + +This scripts reads a given config file and runs the training or evaluation. +It is an entry point that is made to train standard models in detectron2. + +In order to let one script support training of many models, +this script contains logic that are specific to these built-in models and therefore +may not be suitable for your own project. +For example, your research project perhaps only needs a single "evaluator". + +Therefore, we recommend you to use detectron2 as an library and take +this file as an example of how to use the library. +You may want to write your own script with your datasets and other customizations. +""" + +import logging +import os +from collections import OrderedDict +import torch +from torch.nn.parallel import DistributedDataParallel + +import detectron2.utils.comm as comm +from detectron2.data import MetadataCatalog, build_detection_train_loader +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, hooks, launch +from detectron2.utils.events import EventStorage +from detectron2.evaluation import ( + COCOEvaluator, + COCOPanopticEvaluator, + DatasetEvaluators, + LVISEvaluator, + PascalVOCDetectionEvaluator, + SemSegEvaluator, + verify_results, +) +from detectron2.modeling import GeneralizedRCNNWithTTA +from detectron2.utils.logger import setup_logger + +from adet.data.dataset_mapper import DatasetMapperWithBasis +from adet.data.fcpose_dataset_mapper import FCPoseDatasetMapper +from adet.config import get_cfg +from adet.checkpoint import AdetCheckpointer +from adet.evaluation import TextEvaluator + + +class Trainer(DefaultTrainer): + """ + This is the same Trainer except that we rewrite the + `build_train_loader`/`resume_or_load` method. + """ + def build_hooks(self): + """ + Replace `DetectionCheckpointer` with `AdetCheckpointer`. + + Build a list of default hooks, including timing, evaluation, + checkpointing, lr scheduling, precise BN, writing events. + """ + ret = super().build_hooks() + for i in range(len(ret)): + if isinstance(ret[i], hooks.PeriodicCheckpointer): + self.checkpointer = AdetCheckpointer( + self.model, + self.cfg.OUTPUT_DIR, + optimizer=self.optimizer, + scheduler=self.scheduler, + ) + ret[i] = hooks.PeriodicCheckpointer(self.checkpointer, self.cfg.SOLVER.CHECKPOINT_PERIOD) + return ret + + def resume_or_load(self, resume=True): + checkpoint = self.checkpointer.resume_or_load(self.cfg.MODEL.WEIGHTS, resume=resume) + if resume and self.checkpointer.has_checkpoint(): + self.start_iter = checkpoint.get("iteration", -1) + 1 + + def train_loop(self, start_iter: int, max_iter: int): + """ + Args: + start_iter, max_iter (int): See docs above + """ + logger = logging.getLogger("adet.trainer") + logger.info("Starting training from iteration {}".format(start_iter)) + + self.iter = self.start_iter = start_iter + self.max_iter = max_iter + + with EventStorage(start_iter) as self.storage: + self.before_train() + for self.iter in range(start_iter, max_iter): + self.before_step() + self.run_step() + self.after_step() + self.after_train() + + def train(self): + """ + Run training. + + Returns: + OrderedDict of results, if evaluation is enabled. Otherwise None. + """ + self.train_loop(self.start_iter, self.max_iter) + if hasattr(self, "_last_eval_results") and comm.is_main_process(): + verify_results(self.cfg, self._last_eval_results) + return self._last_eval_results + + @classmethod + def build_train_loader(cls, cfg): + """ + Returns: + iterable + + It calls :func:`detectron2.data.build_detection_train_loader` with a customized + DatasetMapper, which adds categorical labels as a semantic mask. + """ + if cfg.MODEL.FCPOSE_ON: + mapper = FCPoseDatasetMapper(cfg, True) + else: + mapper = DatasetMapperWithBasis(cfg, True) + return build_detection_train_loader(cfg, mapper=mapper) + + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type in ["sem_seg", "coco_panoptic_seg"]: + evaluator_list.append( + SemSegEvaluator( + dataset_name, + distributed=True, + num_classes=cfg.MODEL.SEM_SEG_HEAD.NUM_CLASSES, + ignore_label=cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE, + output_dir=output_folder, + ) + ) + if evaluator_type in ["coco", "coco_panoptic_seg"]: + evaluator_list.append(COCOEvaluator(dataset_name, cfg, True, output_folder)) + if evaluator_type == "coco_panoptic_seg": + evaluator_list.append(COCOPanopticEvaluator(dataset_name, output_folder)) + if evaluator_type == "pascal_voc": + return PascalVOCDetectionEvaluator(dataset_name) + if evaluator_type == "lvis": + return LVISEvaluator(dataset_name, cfg, True, output_folder) + if evaluator_type == "text": + return TextEvaluator(dataset_name, cfg, True, output_folder) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format( + dataset_name, evaluator_type + ) + ) + if len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + @classmethod + def test_with_TTA(cls, cfg, model): + logger = logging.getLogger("adet.trainer") + # In the end of training, run an evaluation with TTA + # Only support some R-CNN models. + logger.info("Running inference with test-time augmentation ...") + model = GeneralizedRCNNWithTTA(cfg, model) + evaluators = [ + cls.build_evaluator( + cfg, name, output_folder=os.path.join(cfg.OUTPUT_DIR, "inference_TTA") + ) + for name in cfg.DATASETS.TEST + ] + res = cls.test(cfg, model, evaluators) + res = OrderedDict({k + "_TTA": v for k, v in res.items()}) + return res + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + + rank = comm.get_rank() + setup_logger(cfg.OUTPUT_DIR, distributed_rank=rank, name="adet") + + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + AdetCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) # d2 defaults.py + if comm.is_main_process(): + verify_results(cfg, res) + if cfg.TEST.AUG.ENABLED: + res.update(Trainer.test_with_TTA(cfg, model)) + return res + + """ + If you'd like to do anything fancier than the standard training logic, + consider writing your own training loop or subclassing the trainer. + """ + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + if cfg.TEST.AUG.ENABLED: + trainer.register_hooks( + [hooks.EvalHook(0, lambda: trainer.test_with_TTA(cfg, trainer.model))] + ) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/AdelaiDet/tools/visualize_data.py b/AdelaiDet/tools/visualize_data.py new file mode 100755 index 0000000..620cc87 --- /dev/null +++ b/AdelaiDet/tools/visualize_data.py @@ -0,0 +1,101 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import argparse +import numpy as np +import os +from itertools import chain +import cv2 +import tqdm +from PIL import Image + +from detectron2.data import DatasetCatalog, MetadataCatalog, build_detection_train_loader +from detectron2.data import detection_utils as utils +from detectron2.data.build import filter_images_with_few_keypoints +from detectron2.utils.logger import setup_logger +from detectron2.utils.visualizer import Visualizer + +from adet.config import get_cfg +from adet.data.dataset_mapper import DatasetMapperWithBasis + + +def setup(args): + cfg = get_cfg() + if args.config_file: + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + return cfg + + +def parse_args(in_args=None): + parser = argparse.ArgumentParser(description="Visualize ground-truth data") + parser.add_argument( + "--source", + choices=["annotation", "dataloader"], + required=True, + help="visualize the annotations or the data loader (with pre-processing)", + ) + parser.add_argument("--config-file", metavar="FILE", help="path to config file") + parser.add_argument("--output-dir", default="./", help="path to output directory") + parser.add_argument("--show", action="store_true", help="show output in a window") + parser.add_argument( + "--opts", + help="Modify config options using the command-line", + default=[], + nargs=argparse.REMAINDER, + ) + return parser.parse_args(in_args) + + +if __name__ == "__main__": + args = parse_args() + logger = setup_logger() + logger.info("Arguments: " + str(args)) + cfg = setup(args) + + dirname = args.output_dir + os.makedirs(dirname, exist_ok=True) + metadata = MetadataCatalog.get(cfg.DATASETS.TRAIN[0]) + + def output(vis, fname): + if args.show: + print(fname) + cv2.imshow("window", vis.get_image()[:, :, ::-1]) + cv2.waitKey() + else: + filepath = os.path.join(dirname, fname) + print("Saving to {} ...".format(filepath)) + vis.save(filepath) + + scale = 2.0 if args.show else 1.0 + if args.source == "dataloader": + mapper = DatasetMapperWithBasis(cfg, True) + train_data_loader = build_detection_train_loader(cfg, mapper) + for batch in train_data_loader: + for per_image in batch: + # Pytorch tensor is in (C, H, W) format + img = per_image["image"].permute(1, 2, 0) + if cfg.INPUT.FORMAT == "BGR": + img = img[:, :, [2, 1, 0]] + else: + img = np.asarray(Image.fromarray(img, mode=cfg.INPUT.FORMAT).convert("RGB")) + + visualizer = Visualizer(img, metadata=metadata, scale=scale) + target_fields = per_image["instances"].get_fields() + labels = [metadata.thing_classes[i] for i in target_fields["gt_classes"]] + vis = visualizer.overlay_instances( + labels=labels, + boxes=target_fields.get("gt_boxes", None), + masks=target_fields.get("gt_masks", None), + keypoints=target_fields.get("gt_keypoints", None), + ) + output(vis, str(per_image["image_id"]) + ".jpg") + else: + dicts = list(chain.from_iterable([DatasetCatalog.get(k) for k in cfg.DATASETS.TRAIN])) + if cfg.MODEL.KEYPOINT_ON: + dicts = filter_images_with_few_keypoints(dicts, 1) + for dic in tqdm.tqdm(dicts): + img = utils.read_image(dic["file_name"], "RGB") + visualizer = Visualizer(img, metadata=metadata, scale=scale) + vis = visualizer.draw_dataset_dict(dic) + output(vis, os.path.basename(dic["file_name"])) \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..15b161d --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2023-present NAVER Cloud Corp. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/MaskRefineNet/datasets/__init__.py b/MaskRefineNet/datasets/__init__.py new file mode 100755 index 0000000..8e4cf6c --- /dev/null +++ b/MaskRefineNet/datasets/__init__.py @@ -0,0 +1,53 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +from utils import ext_transforms as et +from .dataset import TrainSet, ValidSet + +def dataset_factory(args): + """Dataset And Augmentation""" + # augmentation list for training + + if type(args.train_size) == list: + train_ext = [ + et.ExtResize(args.train_size), + ] + else: + train_ext = [ + et.ExtRandomScaleResize(args.train_size, (args.aug_min_scale, args.aug_max_scale), interpolation="nearest"), + et.ExtCenterCrop(args.train_size), + ] + + train_ext += [ + et.ExtColorJitter(brightness=0.5, contrast=0.25, saturation=0.25, p=args.aug_color), + et.ExtRandomHorizontalFlip(), + et.ExtToTensor(target_type="uint8"), + et.ExtNormalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]), + ] + train_transform = et.ExtCompose(train_ext) + + train_dst = TrainSet( + root=args.data_root, + dataset=args.dataset, + num_classes=args.num_classes, + weak_pth=args.weak_pth, + gt_json=args.gt_json, + transform=train_transform, + box_scale=args.box_scale + ) + + valid_dst = ValidSet( + root=args.data_root, + dataset=args.dataset, + num_classes=args.num_classes, + weak_pth=args.eval_pth, + gt_json=args.eval_json, + val_size=args.val_size, + box_scale=args.box_scale, + filtering=True, + ) + + return train_dst, valid_dst diff --git a/MaskRefineNet/datasets/coco/instances_train2017_refine_test_1K.json b/MaskRefineNet/datasets/coco/instances_train2017_refine_test_1K.json new file mode 100644 index 0000000..7bdfddb --- /dev/null +++ b/MaskRefineNet/datasets/coco/instances_train2017_refine_test_1K.json @@ -0,0 +1 @@ +{"info": {"description": "COCO 2017 Dataset", "url": "http://cocodataset.org", "version": "1.0", "year": 2017, "contributor": "COCO Consortium", "date_created": "2017/09/01"}, "licenses": [{"url": "http://creativecommons.org/licenses/by-nc-sa/2.0/", "id": 1, "name": "Attribution-NonCommercial-ShareAlike License"}, {"url": "http://creativecommons.org/licenses/by-nc/2.0/", "id": 2, "name": "Attribution-NonCommercial License"}, {"url": "http://creativecommons.org/licenses/by-nc-nd/2.0/", "id": 3, "name": "Attribution-NonCommercial-NoDerivs License"}, {"url": "http://creativecommons.org/licenses/by/2.0/", "id": 4, "name": "Attribution License"}, {"url": "http://creativecommons.org/licenses/by-sa/2.0/", "id": 5, "name": "Attribution-ShareAlike License"}, {"url": "http://creativecommons.org/licenses/by-nd/2.0/", "id": 6, "name": "Attribution-NoDerivs License"}, {"url": "http://flickr.com/commons/usage/", "id": 7, "name": "No known copyright restrictions"}, {"url": "http://www.usa.gov/copyright.shtml", "id": 8, "name": "United States Government Work"}], "categories": [{"supercategory": "person", "id": 1, "name": "person"}, {"supercategory": "vehicle", "id": 2, "name": "bicycle"}, {"supercategory": "vehicle", "id": 3, "name": "car"}, {"supercategory": "vehicle", "id": 4, "name": "motorcycle"}, {"supercategory": "vehicle", "id": 5, "name": "airplane"}, {"supercategory": "vehicle", "id": 6, "name": "bus"}, {"supercategory": "vehicle", "id": 7, "name": "train"}, {"supercategory": "vehicle", "id": 8, "name": "truck"}, {"supercategory": "vehicle", "id": 9, "name": "boat"}, {"supercategory": "outdoor", "id": 10, "name": "traffic light"}, {"supercategory": "outdoor", "id": 11, "name": "fire hydrant"}, {"supercategory": "outdoor", "id": 13, "name": "stop sign"}, {"supercategory": "outdoor", "id": 14, "name": "parking meter"}, {"supercategory": "outdoor", "id": 15, "name": "bench"}, {"supercategory": "animal", "id": 16, "name": "bird"}, {"supercategory": "animal", "id": 17, "name": "cat"}, {"supercategory": "animal", "id": 18, "name": "dog"}, {"supercategory": "animal", "id": 19, "name": "horse"}, {"supercategory": "animal", "id": 20, "name": "sheep"}, {"supercategory": "animal", "id": 21, "name": "cow"}, {"supercategory": "animal", "id": 22, "name": "elephant"}, {"supercategory": "animal", "id": 23, "name": "bear"}, {"supercategory": "animal", "id": 24, "name": "zebra"}, {"supercategory": "animal", "id": 25, "name": "giraffe"}, {"supercategory": "accessory", "id": 27, "name": "backpack"}, {"supercategory": "accessory", "id": 28, "name": "umbrella"}, {"supercategory": "accessory", "id": 31, "name": "handbag"}, {"supercategory": "accessory", "id": 32, "name": "tie"}, {"supercategory": "accessory", "id": 33, "name": "suitcase"}, {"supercategory": "sports", "id": 34, "name": "frisbee"}, {"supercategory": "sports", "id": 35, "name": "skis"}, {"supercategory": "sports", "id": 36, "name": "snowboard"}, {"supercategory": "sports", "id": 37, "name": "sports ball"}, {"supercategory": "sports", "id": 38, "name": "kite"}, {"supercategory": "sports", "id": 39, "name": "baseball bat"}, {"supercategory": "sports", "id": 40, "name": "baseball glove"}, {"supercategory": "sports", "id": 41, "name": "skateboard"}, {"supercategory": "sports", "id": 42, "name": "surfboard"}, {"supercategory": "sports", "id": 43, "name": "tennis racket"}, {"supercategory": "kitchen", "id": 44, "name": "bottle"}, {"supercategory": "kitchen", "id": 46, "name": "wine glass"}, {"supercategory": "kitchen", "id": 47, "name": "cup"}, {"supercategory": "kitchen", "id": 48, "name": "fork"}, {"supercategory": "kitchen", "id": 49, "name": "knife"}, {"supercategory": "kitchen", "id": 50, "name": "spoon"}, {"supercategory": "kitchen", "id": 51, "name": "bowl"}, {"supercategory": "food", "id": 52, "name": "banana"}, {"supercategory": "food", "id": 53, "name": "apple"}, {"supercategory": "food", "id": 54, "name": "sandwich"}, {"supercategory": "food", "id": 55, "name": "orange"}, {"supercategory": "food", "id": 56, "name": "broccoli"}, {"supercategory": "food", "id": 57, "name": "carrot"}, {"supercategory": "food", "id": 58, "name": "hot dog"}, {"supercategory": "food", "id": 59, "name": "pizza"}, {"supercategory": "food", "id": 60, "name": "donut"}, {"supercategory": "food", "id": 61, "name": "cake"}, {"supercategory": "furniture", "id": 62, "name": "chair"}, {"supercategory": "furniture", "id": 63, "name": "couch"}, {"supercategory": "furniture", "id": 64, "name": "potted plant"}, {"supercategory": "furniture", "id": 65, "name": "bed"}, {"supercategory": "furniture", "id": 67, "name": "dining table"}, {"supercategory": "furniture", "id": 70, "name": "toilet"}, {"supercategory": "electronic", "id": 72, "name": "tv"}, {"supercategory": "electronic", "id": 73, "name": "laptop"}, {"supercategory": "electronic", "id": 74, "name": "mouse"}, {"supercategory": "electronic", "id": 75, "name": "remote"}, {"supercategory": "electronic", "id": 76, "name": "keyboard"}, {"supercategory": "electronic", "id": 77, "name": "cell phone"}, {"supercategory": "appliance", "id": 78, "name": "microwave"}, {"supercategory": "appliance", "id": 79, "name": "oven"}, {"supercategory": "appliance", "id": 80, "name": "toaster"}, {"supercategory": "appliance", "id": 81, "name": "sink"}, {"supercategory": "appliance", "id": 82, "name": "refrigerator"}, {"supercategory": "indoor", "id": 84, "name": "book"}, {"supercategory": "indoor", "id": 85, "name": "clock"}, {"supercategory": "indoor", "id": 86, "name": "vase"}, {"supercategory": "indoor", "id": 87, "name": "scissors"}, {"supercategory": "indoor", "id": 88, "name": "teddy bear"}, {"supercategory": "indoor", "id": 89, "name": "hair drier"}, {"supercategory": "indoor", "id": 90, "name": "toothbrush"}], "images": [{"license": 3, "file_name": "000000349401.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000349401.jpg", "height": 640, "width": 461, "date_captured": "2013-11-17 01:12:48", "flickr_url": "http://farm3.staticflickr.com/2175/2143796722_faaaf02205_z.jpg", "id": 349401}, {"license": 1, "file_name": "000000425540.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000425540.jpg", "height": 384, "width": 640, "date_captured": "2013-11-15 21:22:03", "flickr_url": "http://farm8.staticflickr.com/7019/6782288733_c357d4a0d0_z.jpg", "id": 425540}, {"license": 4, "file_name": "000000417720.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000417720.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 05:46:56", "flickr_url": "http://farm6.staticflickr.com/5458/9529946680_ed124d4dd6_z.jpg", "id": 417720}, {"license": 2, "file_name": "000000189605.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000189605.jpg", "height": 640, "width": 640, "date_captured": "2013-11-17 08:58:27", "flickr_url": "http://farm8.staticflickr.com/7164/6454923717_c00db772dc_z.jpg", "id": 189605}, {"license": 4, "file_name": "000000385701.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000385701.jpg", "height": 480, "width": 640, "date_captured": "2013-11-23 04:52:52", "flickr_url": "http://farm2.staticflickr.com/1345/1449442000_3d2f1e3ba3_z.jpg", "id": 385701}, {"license": 5, "file_name": "000000425381.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000425381.jpg", "height": 479, "width": 640, "date_captured": "2013-11-17 08:04:46", "flickr_url": "http://farm4.staticflickr.com/3178/2478472358_f0f787361e_z.jpg", "id": 425381}, {"license": 4, "file_name": "000000174420.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000174420.jpg", "height": 421, "width": 640, "date_captured": "2013-11-17 03:17:22", "flickr_url": "http://farm7.staticflickr.com/6218/6275395123_c8a69b7539_z.jpg", "id": 174420}, {"license": 4, "file_name": "000000324285.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000324285.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 21:14:11", "flickr_url": "http://farm4.staticflickr.com/3367/3237854234_1116509806_z.jpg", "id": 324285}, {"license": 5, "file_name": "000000242368.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000242368.jpg", "height": 424, "width": 640, "date_captured": "2013-11-19 22:16:13", "flickr_url": "http://farm9.staticflickr.com/8362/8323004301_f93dfc489b_z.jpg", "id": 242368}, {"license": 1, "file_name": "000000020769.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000020769.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 16:34:36", "flickr_url": "http://farm4.staticflickr.com/3540/3378025208_6b799c3568_z.jpg", "id": 20769}, {"license": 5, "file_name": "000000264461.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000264461.jpg", "height": 478, "width": 640, "date_captured": "2013-11-15 02:08:44", "flickr_url": "http://farm6.staticflickr.com/5242/5300176021_a5c1e8f0db_z.jpg", "id": 264461}, {"license": 2, "file_name": "000000049194.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000049194.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 01:15:30", "flickr_url": "http://farm1.staticflickr.com/74/203643390_5918710698_z.jpg", "id": 49194}, {"license": 2, "file_name": "000000244520.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000244520.jpg", "height": 640, "width": 426, "date_captured": "2013-11-22 23:40:37", "flickr_url": "http://farm4.staticflickr.com/3495/3256715312_261a8778f7_z.jpg", "id": 244520}, {"license": 1, "file_name": "000000361850.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000361850.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 13:44:32", "flickr_url": "http://farm4.staticflickr.com/3119/3248026634_7d97d2a00d_z.jpg", "id": 361850}, {"license": 1, "file_name": "000000107443.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000107443.jpg", "height": 640, "width": 480, "date_captured": "2013-11-20 05:27:00", "flickr_url": "http://farm3.staticflickr.com/2471/3884448035_2273a04f09_z.jpg", "id": 107443}, {"license": 1, "file_name": "000000542173.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000542173.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 20:13:07", "flickr_url": "http://farm4.staticflickr.com/3006/2902732842_a2e5ac8c55_z.jpg", "id": 542173}, {"license": 3, "file_name": "000000359234.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000359234.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 18:07:25", "flickr_url": "http://farm4.staticflickr.com/3542/3371803756_c65ede62cc_z.jpg", "id": 359234}, {"license": 4, "file_name": "000000285307.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000285307.jpg", "height": 452, "width": 500, "date_captured": "2013-11-18 14:59:34", "flickr_url": "http://farm1.staticflickr.com/160/418984840_19ca99199d_z.jpg", "id": 285307}, {"license": 2, "file_name": "000000126978.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000126978.jpg", "height": 333, "width": 500, "date_captured": "2013-11-20 19:09:12", "flickr_url": "http://farm3.staticflickr.com/2742/4354534012_e76f627d29_z.jpg", "id": 126978}, {"license": 4, "file_name": "000000524522.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000524522.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 20:30:56", "flickr_url": "http://farm4.staticflickr.com/3580/3465076112_006740652a_z.jpg", "id": 524522}, {"license": 1, "file_name": "000000337420.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000337420.jpg", "height": 640, "width": 514, "date_captured": "2013-11-22 16:29:10", "flickr_url": "http://farm3.staticflickr.com/2615/4142111447_f430d99aef_z.jpg", "id": 337420}, {"license": 5, "file_name": "000000442961.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000442961.jpg", "height": 640, "width": 427, "date_captured": "2013-11-21 05:33:47", "flickr_url": "http://farm4.staticflickr.com/3297/4567010774_9a164f8684_z.jpg", "id": 442961}, {"license": 3, "file_name": "000000233843.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000233843.jpg", "height": 640, "width": 309, "date_captured": "2013-11-24 15:32:26", "flickr_url": "http://farm9.staticflickr.com/8170/8022993099_0c659052ee_z.jpg", "id": 233843}, {"license": 3, "file_name": "000000091359.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000091359.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 08:56:02", "flickr_url": "http://farm4.staticflickr.com/3822/9117564270_bc3f11b47d_z.jpg", "id": 91359}, {"license": 1, "file_name": "000000296281.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000296281.jpg", "height": 640, "width": 640, "date_captured": "2013-11-23 02:54:40", "flickr_url": "http://farm3.staticflickr.com/2687/4505681456_9b2fd2cd8d_z.jpg", "id": 296281}, {"license": 1, "file_name": "000000453507.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000453507.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 03:15:28", "flickr_url": "http://farm4.staticflickr.com/3314/3491234399_027b4e2c18_z.jpg", "id": 453507}, {"license": 4, "file_name": "000000091307.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000091307.jpg", "height": 640, "width": 539, "date_captured": "2013-11-24 06:02:58", "flickr_url": "http://farm9.staticflickr.com/8026/7426938870_2f4aa1ea97_z.jpg", "id": 91307}, {"license": 3, "file_name": "000000130624.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000130624.jpg", "height": 480, "width": 640, "date_captured": "2013-11-25 09:05:53", "flickr_url": "http://farm8.staticflickr.com/7445/9097195719_0ea3463779_z.jpg", "id": 130624}, {"license": 3, "file_name": "000000506140.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000506140.jpg", "height": 333, "width": 500, "date_captured": "2013-11-21 23:16:57", "flickr_url": "http://farm1.staticflickr.com/209/484028097_c4833dbd7e_z.jpg", "id": 506140}, {"license": 6, "file_name": "000000233042.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000233042.jpg", "height": 351, "width": 640, "date_captured": "2013-11-20 17:50:47", "flickr_url": "http://farm6.staticflickr.com/5503/10120976574_a698122157_z.jpg", "id": 233042}, {"license": 3, "file_name": "000000349052.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000349052.jpg", "height": 640, "width": 536, "date_captured": "2013-11-22 21:15:52", "flickr_url": "http://farm4.staticflickr.com/3164/5853006212_b81116fd9d_z.jpg", "id": 349052}, {"license": 2, "file_name": "000000096177.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000096177.jpg", "height": 375, "width": 500, "date_captured": "2013-11-21 19:23:59", "flickr_url": "http://farm5.staticflickr.com/4028/4403688060_39c6bb1b46_z.jpg", "id": 96177}, {"license": 1, "file_name": "000000558286.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000558286.jpg", "height": 498, "width": 640, "date_captured": "2013-11-16 13:35:24", "flickr_url": "http://farm8.staticflickr.com/7009/6720094931_c788f8f519_z.jpg", "id": 558286}, {"license": 5, "file_name": "000000109146.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000109146.jpg", "height": 428, "width": 640, "date_captured": "2013-11-19 00:34:15", "flickr_url": "http://farm3.staticflickr.com/2872/9644352577_5ebc16fb04_z.jpg", "id": 109146}, {"license": 1, "file_name": "000000051076.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000051076.jpg", "height": 273, "width": 500, "date_captured": "2013-11-17 01:02:29", "flickr_url": "http://farm1.staticflickr.com/161/438613062_30ae1a8ad3_z.jpg", "id": 51076}, {"license": 4, "file_name": "000000275327.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000275327.jpg", "height": 478, "width": 640, "date_captured": "2013-11-16 03:52:12", "flickr_url": "http://farm3.staticflickr.com/2201/5704042745_8a7ae21db6_z.jpg", "id": 275327}, {"license": 4, "file_name": "000000118406.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000118406.jpg", "height": 640, "width": 538, "date_captured": "2013-11-20 16:59:53", "flickr_url": "http://farm3.staticflickr.com/2760/4297413841_b5792ca042_z.jpg", "id": 118406}, {"license": 1, "file_name": "000000510314.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000510314.jpg", "height": 276, "width": 500, "date_captured": "2013-11-16 17:07:09", "flickr_url": "http://farm4.staticflickr.com/3557/3353021420_60468d63dc_z.jpg", "id": 510314}, {"license": 4, "file_name": "000000448897.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000448897.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 02:27:22", "flickr_url": "http://farm9.staticflickr.com/8162/7511850536_3524396172_z.jpg", "id": 448897}, {"license": 3, "file_name": "000000451824.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000451824.jpg", "height": 640, "width": 640, "date_captured": "2013-11-21 00:10:05", "flickr_url": "http://farm8.staticflickr.com/7378/9613329975_16300f4cf8_z.jpg", "id": 451824}, {"license": 1, "file_name": "000000374800.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000374800.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 13:33:08", "flickr_url": "http://farm5.staticflickr.com/4150/5026306995_02751a3c44_z.jpg", "id": 374800}, {"license": 1, "file_name": "000000193936.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000193936.jpg", "height": 382, "width": 640, "date_captured": "2013-11-16 15:43:45", "flickr_url": "http://farm8.staticflickr.com/7086/7194768126_f7b59069bd_z.jpg", "id": 193936}, {"license": 4, "file_name": "000000141800.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000141800.jpg", "height": 640, "width": 460, "date_captured": "2013-11-16 14:38:11", "flickr_url": "http://farm6.staticflickr.com/5255/5548312741_dc97b2976b_z.jpg", "id": 141800}, {"license": 3, "file_name": "000000358222.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000358222.jpg", "height": 373, "width": 640, "date_captured": "2013-11-18 15:02:40", "flickr_url": "http://farm6.staticflickr.com/5458/9050513095_21a552b974_z.jpg", "id": 358222}, {"license": 6, "file_name": "000000212271.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000212271.jpg", "height": 612, "width": 612, "date_captured": "2013-11-16 22:12:09", "flickr_url": "http://farm9.staticflickr.com/8435/7926748956_c1c19e8b94_z.jpg", "id": 212271}, {"license": 3, "file_name": "000000194943.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000194943.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 01:35:45", "flickr_url": "http://farm5.staticflickr.com/4140/4743830412_32158b7451_z.jpg", "id": 194943}, {"license": 2, "file_name": "000000552089.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000552089.jpg", "height": 633, "width": 640, "date_captured": "2013-11-17 02:51:23", "flickr_url": "http://farm7.staticflickr.com/6160/6209794046_55c55330c5_z.jpg", "id": 552089}, {"license": 1, "file_name": "000000050885.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000050885.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 23:01:36", "flickr_url": "http://farm2.staticflickr.com/1123/874818950_ee86749324_z.jpg", "id": 50885}, {"license": 2, "file_name": "000000384895.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000384895.jpg", "height": 481, "width": 640, "date_captured": "2013-11-16 17:21:50", "flickr_url": "http://farm8.staticflickr.com/7216/7391790680_aed54c97a2_z.jpg", "id": 384895}, {"license": 1, "file_name": "000000172059.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000172059.jpg", "height": 281, "width": 500, "date_captured": "2013-11-16 13:35:58", "flickr_url": "http://farm1.staticflickr.com/193/511404041_a5e3258102_z.jpg", "id": 172059}, {"license": 3, "file_name": "000000014960.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000014960.jpg", "height": 562, "width": 640, "date_captured": "2013-11-17 05:38:48", "flickr_url": "http://farm4.staticflickr.com/3448/3190161276_c4910ac2ce_z.jpg", "id": 14960}, {"license": 2, "file_name": "000000031602.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000031602.jpg", "height": 426, "width": 640, "date_captured": "2013-11-16 18:08:19", "flickr_url": "http://farm4.staticflickr.com/3279/2984200585_ed744ffb20_z.jpg", "id": 31602}, {"license": 3, "file_name": "000000525162.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000525162.jpg", "height": 240, "width": 320, "date_captured": "2013-11-20 18:27:55", "flickr_url": "http://farm3.staticflickr.com/2480/3607038952_8dc97e89d1_z.jpg", "id": 525162}, {"license": 2, "file_name": "000000399378.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000399378.jpg", "height": 481, "width": 640, "date_captured": "2013-11-24 01:12:30", "flickr_url": "http://farm7.staticflickr.com/6114/6274524221_3db6dbaac6_z.jpg", "id": 399378}, {"license": 3, "file_name": "000000375914.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000375914.jpg", "height": 640, "width": 454, "date_captured": "2013-11-17 06:39:58", "flickr_url": "http://farm2.staticflickr.com/1105/1289484545_6845f95ae7_z.jpg", "id": 375914}, {"license": 3, "file_name": "000000075973.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000075973.jpg", "height": 375, "width": 500, "date_captured": "2013-11-24 21:41:58", "flickr_url": "http://farm1.staticflickr.com/225/455747050_f6a68b6a12_z.jpg", "id": 75973}, {"license": 1, "file_name": "000000326472.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000326472.jpg", "height": 334, "width": 500, "date_captured": "2013-11-18 19:34:58", "flickr_url": "http://farm3.staticflickr.com/2604/3667114001_9113417131_z.jpg", "id": 326472}, {"license": 1, "file_name": "000000510371.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000510371.jpg", "height": 480, "width": 640, "date_captured": "2013-11-25 21:27:15", "flickr_url": "http://farm1.staticflickr.com/69/173074748_15e7b17360_z.jpg", "id": 510371}, {"license": 5, "file_name": "000000193474.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000193474.jpg", "height": 447, "width": 500, "date_captured": "2013-11-20 17:28:53", "flickr_url": "http://farm4.staticflickr.com/3508/3849815095_941150d787_z.jpg", "id": 193474}, {"license": 4, "file_name": "000000048451.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000048451.jpg", "height": 424, "width": 640, "date_captured": "2013-11-21 01:29:41", "flickr_url": "http://farm8.staticflickr.com/7293/9153522588_68fc60f769_z.jpg", "id": 48451}, {"license": 2, "file_name": "000000118550.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000118550.jpg", "height": 375, "width": 500, "date_captured": "2013-11-15 16:54:25", "flickr_url": "http://farm4.staticflickr.com/3187/2388320944_a1bd0bb6c4_z.jpg", "id": 118550}, {"license": 3, "file_name": "000000136833.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000136833.jpg", "height": 401, "width": 640, "date_captured": "2013-11-15 13:46:30", "flickr_url": "http://farm8.staticflickr.com/7149/6587882843_e930c42dbf_z.jpg", "id": 136833}, {"license": 5, "file_name": "000000341277.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000341277.jpg", "height": 425, "width": 640, "date_captured": "2013-11-16 17:44:03", "flickr_url": "http://farm3.staticflickr.com/2468/4166910748_916024ee11_z.jpg", "id": 341277}, {"license": 2, "file_name": "000000418810.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000418810.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 06:53:27", "flickr_url": "http://farm3.staticflickr.com/2834/9381629892_99558d02bd_z.jpg", "id": 418810}, {"license": 2, "file_name": "000000234422.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000234422.jpg", "height": 640, "width": 480, "date_captured": "2013-11-22 21:04:52", "flickr_url": "http://farm4.staticflickr.com/3146/2739155849_bdecf13260_z.jpg", "id": 234422}, {"license": 6, "file_name": "000000191858.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000191858.jpg", "height": 350, "width": 233, "date_captured": "2013-11-14 16:35:02", "flickr_url": "http://farm3.staticflickr.com/2334/2498123874_f242644e87_z.jpg", "id": 191858}, {"license": 4, "file_name": "000000319933.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000319933.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 17:05:15", "flickr_url": "http://farm4.staticflickr.com/3204/2596923869_dffa8e99e3_z.jpg", "id": 319933}, {"license": 1, "file_name": "000000369201.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000369201.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 10:01:51", "flickr_url": "http://farm8.staticflickr.com/7311/8745807258_a2df4cb743_z.jpg", "id": 369201}, {"license": 1, "file_name": "000000127076.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000127076.jpg", "height": 333, "width": 500, "date_captured": "2013-11-21 21:01:57", "flickr_url": "http://farm4.staticflickr.com/3604/3463546413_e7bed554f6_z.jpg", "id": 127076}, {"license": 4, "file_name": "000000419008.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000419008.jpg", "height": 500, "width": 375, "date_captured": "2013-11-17 21:35:42", "flickr_url": "http://farm4.staticflickr.com/3378/3314528405_8915da2125_z.jpg", "id": 419008}, {"license": 1, "file_name": "000000409496.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000409496.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 19:04:38", "flickr_url": "http://farm5.staticflickr.com/4139/4953791010_28ba636751_z.jpg", "id": 409496}, {"license": 2, "file_name": "000000114521.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000114521.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 20:11:30", "flickr_url": "http://farm5.staticflickr.com/4022/4525082717_94d05f5d75_z.jpg", "id": 114521}, {"license": 3, "file_name": "000000341989.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000341989.jpg", "height": 469, "width": 640, "date_captured": "2013-11-21 20:24:29", "flickr_url": "http://farm1.staticflickr.com/60/175262683_6278d65e1c_z.jpg", "id": 341989}, {"license": 2, "file_name": "000000111416.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000111416.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 16:18:58", "flickr_url": "http://farm8.staticflickr.com/7211/7161976183_d632686955_z.jpg", "id": 111416}, {"license": 1, "file_name": "000000144836.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000144836.jpg", "height": 640, "width": 427, "date_captured": "2013-11-20 13:56:20", "flickr_url": "http://farm4.staticflickr.com/3555/3342766303_1e2c6cddaf_z.jpg", "id": 144836}, {"license": 3, "file_name": "000000071027.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000071027.jpg", "height": 640, "width": 481, "date_captured": "2013-11-19 00:53:35", "flickr_url": "http://farm8.staticflickr.com/7421/9486368342_a4a4e1e6b8_z.jpg", "id": 71027}, {"license": 1, "file_name": "000000409374.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000409374.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 21:22:30", "flickr_url": "http://farm5.staticflickr.com/4020/4457296775_31fedfd39f_z.jpg", "id": 409374}, {"license": 1, "file_name": "000000514271.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000514271.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 12:09:38", "flickr_url": "http://farm9.staticflickr.com/8116/8694909996_dbdde0c6d4_z.jpg", "id": 514271}, {"license": 1, "file_name": "000000559566.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000559566.jpg", "height": 466, "width": 640, "date_captured": "2013-11-19 02:18:59", "flickr_url": "http://farm6.staticflickr.com/5445/8823643922_524f18098f_z.jpg", "id": 559566}, {"license": 1, "file_name": "000000002114.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000002114.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 04:42:23", "flickr_url": "http://farm1.staticflickr.com/118/250564585_78ddd4dbd9_z.jpg", "id": 2114}, {"license": 2, "file_name": "000000558153.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000558153.jpg", "height": 640, "width": 475, "date_captured": "2013-11-19 23:15:20", "flickr_url": "http://farm2.staticflickr.com/1347/5113491674_5236aaf76d_z.jpg", "id": 558153}, {"license": 3, "file_name": "000000579000.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000579000.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 20:23:16", "flickr_url": "http://farm3.staticflickr.com/2821/9328853944_bed2c514b8_z.jpg", "id": 579000}, {"license": 1, "file_name": "000000398507.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000398507.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 17:31:59", "flickr_url": "http://farm6.staticflickr.com/5465/9444394419_8a008e54f6_z.jpg", "id": 398507}, {"license": 4, "file_name": "000000233439.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000233439.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 21:09:35", "flickr_url": "http://farm1.staticflickr.com/56/170753392_9694a008b4_z.jpg", "id": 233439}, {"license": 3, "file_name": "000000401182.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000401182.jpg", "height": 640, "width": 490, "date_captured": "2013-11-14 20:42:52", "flickr_url": "http://farm9.staticflickr.com/8316/7974935052_09ceb958aa_z.jpg", "id": 401182}, {"license": 1, "file_name": "000000048756.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000048756.jpg", "height": 500, "width": 375, "date_captured": "2013-11-17 05:44:36", "flickr_url": "http://farm4.staticflickr.com/3071/2949768572_b1184ff3c7_z.jpg", "id": 48756}, {"license": 3, "file_name": "000000346754.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000346754.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 21:02:48", "flickr_url": "http://farm9.staticflickr.com/8022/7699967098_cc820c0f54_z.jpg", "id": 346754}, {"license": 2, "file_name": "000000396039.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000396039.jpg", "height": 512, "width": 640, "date_captured": "2013-11-18 00:09:44", "flickr_url": "http://farm1.staticflickr.com/227/492061865_466907b76b_z.jpg", "id": 396039}, {"license": 3, "file_name": "000000066676.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000066676.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 15:14:34", "flickr_url": "http://farm6.staticflickr.com/5251/5407519588_6e06515cd9_z.jpg", "id": 66676}, {"license": 1, "file_name": "000000099807.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000099807.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 22:12:08", "flickr_url": "http://farm6.staticflickr.com/5266/5625982005_8c95e39462_z.jpg", "id": 99807}, {"license": 4, "file_name": "000000443604.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000443604.jpg", "height": 425, "width": 640, "date_captured": "2013-11-18 10:27:25", "flickr_url": "http://farm7.staticflickr.com/6119/6329387850_67072b0800_z.jpg", "id": 443604}, {"license": 3, "file_name": "000000423036.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000423036.jpg", "height": 425, "width": 640, "date_captured": "2013-11-16 21:10:49", "flickr_url": "http://farm6.staticflickr.com/5448/10133695113_61a69a84cb_z.jpg", "id": 423036}, {"license": 1, "file_name": "000000056699.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000056699.jpg", "height": 491, "width": 640, "date_captured": "2013-11-15 18:07:48", "flickr_url": "http://farm9.staticflickr.com/8344/8176737103_9a1a080cb9_z.jpg", "id": 56699}, {"license": 1, "file_name": "000000041688.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000041688.jpg", "height": 640, "width": 427, "date_captured": "2013-11-19 18:55:50", "flickr_url": "http://farm4.staticflickr.com/3135/2924647039_10bb836c91_z.jpg", "id": 41688}, {"license": 3, "file_name": "000000514468.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000514468.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 18:00:57", "flickr_url": "http://farm1.staticflickr.com/70/158211416_d0e41167f3_z.jpg", "id": 514468}, {"license": 3, "file_name": "000000284043.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000284043.jpg", "height": 500, "width": 486, "date_captured": "2013-11-16 17:07:04", "flickr_url": "http://farm4.staticflickr.com/3256/3152811593_d6c1ea65b8_z.jpg", "id": 284043}, {"license": 3, "file_name": "000000429144.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000429144.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 19:32:31", "flickr_url": "http://farm2.staticflickr.com/1148/5114327030_f42db4933e_z.jpg", "id": 429144}, {"license": 6, "file_name": "000000013417.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000013417.jpg", "height": 428, "width": 640, "date_captured": "2013-11-18 09:50:38", "flickr_url": "http://farm4.staticflickr.com/3161/2618821968_4101fce4ff_z.jpg", "id": 13417}, {"license": 3, "file_name": "000000165773.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000165773.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 04:52:23", "flickr_url": "http://farm2.staticflickr.com/1215/4611399977_cf6e6c2694_z.jpg", "id": 165773}, {"license": 1, "file_name": "000000484754.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000484754.jpg", "height": 606, "width": 640, "date_captured": "2013-11-16 17:12:21", "flickr_url": "http://farm3.staticflickr.com/2054/2458144140_65b3a8f08c_z.jpg", "id": 484754}, {"license": 2, "file_name": "000000050429.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000050429.jpg", "height": 375, "width": 500, "date_captured": "2013-11-19 21:06:41", "flickr_url": "http://farm4.staticflickr.com/3210/2540262374_12f36864df_z.jpg", "id": 50429}, {"license": 1, "file_name": "000000471273.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000471273.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 16:10:18", "flickr_url": "http://farm2.staticflickr.com/1171/4733368985_eecff30a78_z.jpg", "id": 471273}, {"license": 3, "file_name": "000000314319.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000314319.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 09:50:38", "flickr_url": "http://farm9.staticflickr.com/8012/6961015092_6c7aed7684_z.jpg", "id": 314319}, {"license": 5, "file_name": "000000539099.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000539099.jpg", "height": 425, "width": 640, "date_captured": "2013-11-20 05:38:40", "flickr_url": "http://farm5.staticflickr.com/4019/4700771219_d586faab56_z.jpg", "id": 539099}, {"license": 3, "file_name": "000000082091.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000082091.jpg", "height": 512, "width": 640, "date_captured": "2013-11-18 14:30:43", "flickr_url": "http://farm8.staticflickr.com/7024/6704437019_f2699aec08_z.jpg", "id": 82091}, {"license": 3, "file_name": "000000434047.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000434047.jpg", "height": 612, "width": 612, "date_captured": "2013-11-21 20:19:54", "flickr_url": "http://farm7.staticflickr.com/6073/6115710633_3931350ddb_z.jpg", "id": 434047}, {"license": 5, "file_name": "000000397599.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000397599.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 06:51:41", "flickr_url": "http://farm1.staticflickr.com/220/509199888_a93f4a5b4e_z.jpg", "id": 397599}, {"license": 2, "file_name": "000000525813.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000525813.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 00:45:44", "flickr_url": "http://farm2.staticflickr.com/1350/5166870162_5d1ae4c8db_z.jpg", "id": 525813}, {"license": 1, "file_name": "000000111031.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000111031.jpg", "height": 640, "width": 598, "date_captured": "2013-11-21 23:35:08", "flickr_url": "http://farm1.staticflickr.com/180/386137759_dc2f7cf2c1_z.jpg", "id": 111031}, {"license": 4, "file_name": "000000449573.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000449573.jpg", "height": 640, "width": 480, "date_captured": "2013-11-16 17:17:25", "flickr_url": "http://farm1.staticflickr.com/63/211385607_939eaa452a_z.jpg", "id": 449573}, {"license": 5, "file_name": "000000550273.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000550273.jpg", "height": 640, "width": 480, "date_captured": "2013-11-14 11:58:59", "flickr_url": "http://farm5.staticflickr.com/4093/4901755916_0d456799a9_z.jpg", "id": 550273}, {"license": 4, "file_name": "000000288403.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000288403.jpg", "height": 612, "width": 612, "date_captured": "2013-11-19 18:39:11", "flickr_url": "http://farm4.staticflickr.com/3817/9430474810_7652674095_z.jpg", "id": 288403}, {"license": 5, "file_name": "000000409850.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000409850.jpg", "height": 640, "width": 615, "date_captured": "2013-11-17 20:58:29", "flickr_url": "http://farm6.staticflickr.com/5328/8760735654_4eba51e5ab_z.jpg", "id": 409850}, {"license": 1, "file_name": "000000064744.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000064744.jpg", "height": 360, "width": 640, "date_captured": "2013-11-15 13:58:41", "flickr_url": "http://farm3.staticflickr.com/2811/9806349084_93b3a3e3f2_z.jpg", "id": 64744}, {"license": 3, "file_name": "000000002446.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000002446.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 17:58:47", "flickr_url": "http://farm4.staticflickr.com/3745/9960038295_b23be8aff8_z.jpg", "id": 2446}, {"license": 3, "file_name": "000000088859.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000088859.jpg", "height": 426, "width": 640, "date_captured": "2013-11-22 21:31:39", "flickr_url": "http://farm2.staticflickr.com/1283/763497863_9fb226b4ed_z.jpg", "id": 88859}, {"license": 3, "file_name": "000000299946.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000299946.jpg", "height": 500, "width": 375, "date_captured": "2013-11-24 12:49:35", "flickr_url": "http://farm2.staticflickr.com/1274/1002593183_5a968c978e_z.jpg", "id": 299946}, {"license": 2, "file_name": "000000086229.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000086229.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 17:38:34", "flickr_url": "http://farm3.staticflickr.com/2493/4148301655_64f7cafe42_z.jpg", "id": 86229}, {"license": 1, "file_name": "000000443278.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000443278.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 15:08:34", "flickr_url": "http://farm8.staticflickr.com/7251/7547195532_2fdd6f5d1e_z.jpg", "id": 443278}, {"license": 3, "file_name": "000000026732.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000026732.jpg", "height": 478, "width": 640, "date_captured": "2013-11-18 14:30:04", "flickr_url": "http://farm8.staticflickr.com/7101/6962655418_5f344073ca_z.jpg", "id": 26732}, {"license": 3, "file_name": "000000517764.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000517764.jpg", "height": 426, "width": 640, "date_captured": "2013-11-15 03:37:29", "flickr_url": "http://farm4.staticflickr.com/3292/3109090576_cf921892ba_z.jpg", "id": 517764}, {"license": 3, "file_name": "000000477927.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000477927.jpg", "height": 640, "width": 456, "date_captured": "2013-11-17 04:42:35", "flickr_url": "http://farm3.staticflickr.com/2879/9683849610_01e0778298_z.jpg", "id": 477927}, {"license": 1, "file_name": "000000329368.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000329368.jpg", "height": 640, "width": 480, "date_captured": "2013-11-15 00:55:38", "flickr_url": "http://farm2.staticflickr.com/1140/575063136_924bc9219d_z.jpg", "id": 329368}, {"license": 3, "file_name": "000000495438.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000495438.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 06:18:48", "flickr_url": "http://farm4.staticflickr.com/3583/3469579978_a3094d97bd_z.jpg", "id": 495438}, {"license": 3, "file_name": "000000420051.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000420051.jpg", "height": 427, "width": 640, "date_captured": "2013-11-23 05:38:36", "flickr_url": "http://farm1.staticflickr.com/54/160936904_45c29f5b71_z.jpg", "id": 420051}, {"license": 1, "file_name": "000000204294.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000204294.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 04:17:11", "flickr_url": "http://farm5.staticflickr.com/4021/4456176240_1a14f3e11c_z.jpg", "id": 204294}, {"license": 3, "file_name": "000000181837.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000181837.jpg", "height": 425, "width": 640, "date_captured": "2013-11-15 00:55:35", "flickr_url": "http://farm9.staticflickr.com/8458/7901294420_314a728553_z.jpg", "id": 181837}, {"license": 2, "file_name": "000000240762.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000240762.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 01:15:56", "flickr_url": "http://farm1.staticflickr.com/158/381502057_0d66d152d8_z.jpg", "id": 240762}, {"license": 3, "file_name": "000000472881.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000472881.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 03:45:48", "flickr_url": "http://farm9.staticflickr.com/8217/8254250841_610f8b2b1c_z.jpg", "id": 472881}, {"license": 5, "file_name": "000000252391.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000252391.jpg", "height": 368, "width": 640, "date_captured": "2013-11-23 01:14:00", "flickr_url": "http://farm7.staticflickr.com/6137/5959798648_36bbf98e91_z.jpg", "id": 252391}, {"license": 3, "file_name": "000000135038.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000135038.jpg", "height": 640, "width": 428, "date_captured": "2013-11-15 14:04:30", "flickr_url": "http://farm4.staticflickr.com/3182/2557550187_4f89733844_z.jpg", "id": 135038}, {"license": 2, "file_name": "000000465735.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000465735.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 14:00:38", "flickr_url": "http://farm9.staticflickr.com/8252/8522106331_aa8929fb95_z.jpg", "id": 465735}, {"license": 2, "file_name": "000000276420.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000276420.jpg", "height": 434, "width": 640, "date_captured": "2013-11-21 04:46:16", "flickr_url": "http://farm6.staticflickr.com/5260/5505371010_0ea69a3a56_z.jpg", "id": 276420}, {"license": 3, "file_name": "000000107100.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000107100.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 06:15:04", "flickr_url": "http://farm5.staticflickr.com/4142/4916558598_aebd447ee3_z.jpg", "id": 107100}, {"license": 4, "file_name": "000000411559.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000411559.jpg", "height": 427, "width": 640, "date_captured": "2013-11-22 17:38:20", "flickr_url": "http://farm4.staticflickr.com/3133/3350422769_c2c596b73e_z.jpg", "id": 411559}, {"license": 4, "file_name": "000000566576.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000566576.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 15:10:38", "flickr_url": "http://farm4.staticflickr.com/3562/4561340108_b201bbfb6c_z.jpg", "id": 566576}, {"license": 5, "file_name": "000000374185.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000374185.jpg", "height": 640, "width": 479, "date_captured": "2013-11-22 08:42:23", "flickr_url": "http://farm4.staticflickr.com/3155/2548720871_b9ee38c2df_z.jpg", "id": 374185}, {"license": 5, "file_name": "000000205700.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000205700.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 00:01:27", "flickr_url": "http://farm3.staticflickr.com/2704/4499420006_72d443e592_z.jpg", "id": 205700}, {"license": 3, "file_name": "000000192335.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000192335.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 01:26:00", "flickr_url": "http://farm3.staticflickr.com/2822/9274373232_b5f35cdd53_z.jpg", "id": 192335}, {"license": 3, "file_name": "000000267628.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000267628.jpg", "height": 360, "width": 640, "date_captured": "2013-11-17 05:19:27", "flickr_url": "http://farm8.staticflickr.com/7213/7182536537_ca0c307985_z.jpg", "id": 267628}, {"license": 4, "file_name": "000000274881.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000274881.jpg", "height": 428, "width": 640, "date_captured": "2013-11-22 15:42:26", "flickr_url": "http://farm6.staticflickr.com/5148/5556850752_84b7119815_z.jpg", "id": 274881}, {"license": 1, "file_name": "000000030210.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000030210.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 09:57:37", "flickr_url": "http://farm4.staticflickr.com/3111/2619287778_654e13e9ef_z.jpg", "id": 30210}, {"license": 4, "file_name": "000000400134.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000400134.jpg", "height": 375, "width": 500, "date_captured": "2013-11-15 21:27:29", "flickr_url": "http://farm4.staticflickr.com/3063/2505484382_6437c8135b_z.jpg", "id": 400134}, {"license": 2, "file_name": "000000480629.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000480629.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 20:40:59", "flickr_url": "http://farm7.staticflickr.com/6182/6101056871_438fdf5ed5_z.jpg", "id": 480629}, {"license": 1, "file_name": "000000546562.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000546562.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 18:06:55", "flickr_url": "http://farm4.staticflickr.com/3169/3062907679_2493cca190_z.jpg", "id": 546562}, {"license": 1, "file_name": "000000155591.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000155591.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 03:32:58", "flickr_url": "http://farm1.staticflickr.com/4/5598388_62b3ee3b91_z.jpg", "id": 155591}, {"license": 4, "file_name": "000000418152.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000418152.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 08:20:26", "flickr_url": "http://farm4.staticflickr.com/3298/3340021603_27d9862da9_z.jpg", "id": 418152}, {"license": 5, "file_name": "000000282899.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000282899.jpg", "height": 338, "width": 500, "date_captured": "2013-11-17 13:59:40", "flickr_url": "http://farm1.staticflickr.com/51/142866020_ee7b622313_z.jpg", "id": 282899}, {"license": 3, "file_name": "000000482022.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000482022.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 17:22:57", "flickr_url": "http://farm7.staticflickr.com/6097/6221044512_180328a2b3_z.jpg", "id": 482022}, {"license": 1, "file_name": "000000374023.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000374023.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 21:00:47", "flickr_url": "http://farm9.staticflickr.com/8299/7997144445_ccb26082c5_z.jpg", "id": 374023}, {"license": 3, "file_name": "000000213405.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000213405.jpg", "height": 457, "width": 640, "date_captured": "2013-11-20 00:12:51", "flickr_url": "http://farm3.staticflickr.com/2638/4433287043_3c3bb15f5a_z.jpg", "id": 213405}, {"license": 1, "file_name": "000000176923.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000176923.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 01:23:37", "flickr_url": "http://farm3.staticflickr.com/2177/2273145196_cc5cc8bf74_z.jpg", "id": 176923}, {"license": 5, "file_name": "000000051355.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000051355.jpg", "height": 640, "width": 427, "date_captured": "2013-11-14 21:23:23", "flickr_url": "http://farm4.staticflickr.com/3536/3456117513_a187dbd4e4_z.jpg", "id": 51355}, {"license": 1, "file_name": "000000408607.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000408607.jpg", "height": 500, "width": 413, "date_captured": "2013-11-17 18:37:40", "flickr_url": "http://farm4.staticflickr.com/3218/2435454898_592136e651_z.jpg", "id": 408607}, {"license": 6, "file_name": "000000013258.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000013258.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 13:29:55", "flickr_url": "http://farm9.staticflickr.com/8391/8582971333_894c9407e5_z.jpg", "id": 13258}, {"license": 3, "file_name": "000000020487.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000020487.jpg", "height": 500, "width": 375, "date_captured": "2013-11-22 16:48:31", "flickr_url": "http://farm4.staticflickr.com/3429/3721973668_778b0c82fc_z.jpg", "id": 20487}, {"license": 5, "file_name": "000000547962.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000547962.jpg", "height": 640, "width": 640, "date_captured": "2013-11-18 02:30:34", "flickr_url": "http://farm9.staticflickr.com/8498/8368511338_481e9dda25_z.jpg", "id": 547962}, {"license": 1, "file_name": "000000167671.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000167671.jpg", "height": 386, "width": 640, "date_captured": "2013-11-18 20:24:48", "flickr_url": "http://farm6.staticflickr.com/5231/6898741858_3c979234d0_z.jpg", "id": 167671}, {"license": 2, "file_name": "000000448843.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000448843.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 17:02:48", "flickr_url": "http://farm3.staticflickr.com/2751/4249541591_fc55714e9d_z.jpg", "id": 448843}, {"license": 4, "file_name": "000000164208.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000164208.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 21:28:35", "flickr_url": "http://farm7.staticflickr.com/6043/6349969566_3e7cca37ce_z.jpg", "id": 164208}, {"license": 3, "file_name": "000000004278.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000004278.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 06:34:51", "flickr_url": "http://farm7.staticflickr.com/6031/6415080447_f205581c2a_z.jpg", "id": 4278}, {"license": 3, "file_name": "000000274653.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000274653.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 18:47:59", "flickr_url": "http://farm3.staticflickr.com/2389/2130070635_d46afa2577_z.jpg", "id": 274653}, {"license": 2, "file_name": "000000200910.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000200910.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 20:46:20", "flickr_url": "http://farm9.staticflickr.com/8487/8168229204_48d34c5c75_z.jpg", "id": 200910}, {"license": 6, "file_name": "000000014575.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000014575.jpg", "height": 640, "width": 640, "date_captured": "2013-11-21 00:06:58", "flickr_url": "http://farm6.staticflickr.com/5454/9529959231_556ebe131e_z.jpg", "id": 14575}, {"license": 3, "file_name": "000000346853.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000346853.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 13:06:01", "flickr_url": "http://farm4.staticflickr.com/3483/3787160834_022bf205cc_z.jpg", "id": 346853}, {"license": 2, "file_name": "000000425412.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000425412.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 04:40:53", "flickr_url": "http://farm5.staticflickr.com/4131/4833357346_54888a9525_z.jpg", "id": 425412}, {"license": 2, "file_name": "000000178407.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000178407.jpg", "height": 640, "width": 640, "date_captured": "2013-11-15 13:14:26", "flickr_url": "http://farm9.staticflickr.com/8298/7795025648_edf7f403cf_z.jpg", "id": 178407}, {"license": 2, "file_name": "000000521150.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000521150.jpg", "height": 239, "width": 640, "date_captured": "2013-11-17 06:02:51", "flickr_url": "http://farm8.staticflickr.com/7443/8729932746_3b1ba7cb9a_z.jpg", "id": 521150}, {"license": 1, "file_name": "000000435665.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000435665.jpg", "height": 375, "width": 500, "date_captured": "2013-11-16 14:11:06", "flickr_url": "http://farm4.staticflickr.com/3103/2326111151_2785564675_z.jpg", "id": 435665}, {"license": 5, "file_name": "000000133377.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000133377.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 20:17:52", "flickr_url": "http://farm4.staticflickr.com/3092/2729990968_52514f1b1a_z.jpg", "id": 133377}, {"license": 1, "file_name": "000000154727.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000154727.jpg", "height": 313, "width": 640, "date_captured": "2013-11-16 02:20:27", "flickr_url": "http://farm8.staticflickr.com/7155/6543233779_71e0217bb8_z.jpg", "id": 154727}, {"license": 3, "file_name": "000000190391.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000190391.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 12:07:52", "flickr_url": "http://farm4.staticflickr.com/3540/3406144564_f7ddfaa1b6_z.jpg", "id": 190391}, {"license": 1, "file_name": "000000156170.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000156170.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 13:36:14", "flickr_url": "http://farm1.staticflickr.com/169/412519217_ab9d39958b_z.jpg", "id": 156170}, {"license": 6, "file_name": "000000564803.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000564803.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 20:20:57", "flickr_url": "http://farm9.staticflickr.com/8164/7409713360_9e5e20caf1_z.jpg", "id": 564803}, {"license": 2, "file_name": "000000155049.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000155049.jpg", "height": 424, "width": 640, "date_captured": "2013-11-24 10:13:19", "flickr_url": "http://farm1.staticflickr.com/110/314336255_84957bbede_z.jpg", "id": 155049}, {"license": 4, "file_name": "000000025252.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000025252.jpg", "height": 640, "width": 480, "date_captured": "2013-11-20 00:53:26", "flickr_url": "http://farm4.staticflickr.com/3567/3675821327_6c38209f58_z.jpg", "id": 25252}, {"license": 3, "file_name": "000000264423.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000264423.jpg", "height": 500, "width": 333, "date_captured": "2013-11-22 20:22:14", "flickr_url": "http://farm1.staticflickr.com/51/127678858_c5736f9e46_z.jpg", "id": 264423}, {"license": 5, "file_name": "000000450281.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000450281.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 01:23:52", "flickr_url": "http://farm8.staticflickr.com/7200/6829230824_feaa752b4f_z.jpg", "id": 450281}, {"license": 4, "file_name": "000000541677.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000541677.jpg", "height": 500, "width": 333, "date_captured": "2013-11-24 06:11:26", "flickr_url": "http://farm4.staticflickr.com/3042/2860446753_b002753173_z.jpg", "id": 541677}, {"license": 3, "file_name": "000000194362.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000194362.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 04:33:14", "flickr_url": "http://farm4.staticflickr.com/3194/3662681298_8cfe6a2dc4_z.jpg", "id": 194362}, {"license": 5, "file_name": "000000128770.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000128770.jpg", "height": 640, "width": 427, "date_captured": "2013-11-20 04:50:29", "flickr_url": "http://farm5.staticflickr.com/4111/4955573913_4cabd4bc15_z.jpg", "id": 128770}, {"license": 5, "file_name": "000000111705.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000111705.jpg", "height": 640, "width": 480, "date_captured": "2013-11-20 16:28:34", "flickr_url": "http://farm5.staticflickr.com/4141/4856248695_03475782dc_z.jpg", "id": 111705}, {"license": 1, "file_name": "000000067082.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000067082.jpg", "height": 422, "width": 640, "date_captured": "2013-11-17 18:15:40", "flickr_url": "http://farm6.staticflickr.com/5080/7184373320_45ef9b3775_z.jpg", "id": 67082}, {"license": 3, "file_name": "000000100187.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000100187.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 02:28:23", "flickr_url": "http://farm4.staticflickr.com/3460/3724180180_c7ba0026e1_z.jpg", "id": 100187}, {"license": 4, "file_name": "000000337167.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000337167.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 14:15:00", "flickr_url": "http://farm9.staticflickr.com/8013/7285055114_531f4a70ee_z.jpg", "id": 337167}, {"license": 2, "file_name": "000000503212.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000503212.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 05:38:47", "flickr_url": "http://farm3.staticflickr.com/2838/9456473502_85866e0b4a_z.jpg", "id": 503212}, {"license": 4, "file_name": "000000527759.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000527759.jpg", "height": 335, "width": 640, "date_captured": "2013-11-14 18:34:07", "flickr_url": "http://farm6.staticflickr.com/5338/8807283449_a102d52f00_z.jpg", "id": 527759}, {"license": 2, "file_name": "000000521452.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000521452.jpg", "height": 351, "width": 640, "date_captured": "2013-11-20 22:38:56", "flickr_url": "http://farm7.staticflickr.com/6053/6212475432_5b3a5cc1cf_z.jpg", "id": 521452}, {"license": 1, "file_name": "000000202970.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000202970.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 15:30:29", "flickr_url": "http://farm1.staticflickr.com/56/120075587_69e992bfcf_z.jpg", "id": 202970}, {"license": 6, "file_name": "000000368142.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000368142.jpg", "height": 359, "width": 640, "date_captured": "2013-11-25 00:00:37", "flickr_url": "http://farm9.staticflickr.com/8524/8494376221_327cb96928_z.jpg", "id": 368142}, {"license": 1, "file_name": "000000036417.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000036417.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:50:51", "flickr_url": "http://farm4.staticflickr.com/3645/3483396893_6f00d37348_z.jpg", "id": 36417}, {"license": 1, "file_name": "000000022224.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000022224.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 10:46:23", "flickr_url": "http://farm9.staticflickr.com/8543/8637022213_34be39424c_z.jpg", "id": 22224}, {"license": 5, "file_name": "000000201260.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000201260.jpg", "height": 640, "width": 426, "date_captured": "2013-11-16 17:37:28", "flickr_url": "http://farm9.staticflickr.com/8287/7550443580_5c3201dbb0_z.jpg", "id": 201260}, {"license": 5, "file_name": "000000555782.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000555782.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 01:06:24", "flickr_url": "http://farm6.staticflickr.com/5512/9382548597_c1ddbb6113_z.jpg", "id": 555782}, {"license": 4, "file_name": "000000104125.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000104125.jpg", "height": 506, "width": 640, "date_captured": "2013-11-21 05:00:20", "flickr_url": "http://farm2.staticflickr.com/1359/5148207384_57907716b8_z.jpg", "id": 104125}, {"license": 3, "file_name": "000000248016.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000248016.jpg", "height": 640, "width": 427, "date_captured": "2013-11-24 18:46:19", "flickr_url": "http://farm8.staticflickr.com/7223/7401349302_dd5bab2d82_z.jpg", "id": 248016}, {"license": 6, "file_name": "000000455632.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000455632.jpg", "height": 640, "width": 456, "date_captured": "2013-11-15 02:42:26", "flickr_url": "http://farm9.staticflickr.com/8281/7707434116_fdc406cf6c_z.jpg", "id": 455632}, {"license": 3, "file_name": "000000530016.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000530016.jpg", "height": 640, "width": 426, "date_captured": "2013-11-14 23:57:33", "flickr_url": "http://farm3.staticflickr.com/2573/3887066255_b700080fe4_z.jpg", "id": 530016}, {"license": 5, "file_name": "000000001205.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000001205.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 00:00:34", "flickr_url": "http://farm3.staticflickr.com/2880/9816411185_0998bfde10_z.jpg", "id": 1205}, {"license": 1, "file_name": "000000024522.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000024522.jpg", "height": 466, "width": 640, "date_captured": "2013-11-16 23:17:50", "flickr_url": "http://farm9.staticflickr.com/8530/8492099594_8d24d1efa7_z.jpg", "id": 24522}, {"license": 4, "file_name": "000000369763.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000369763.jpg", "height": 289, "width": 640, "date_captured": "2013-11-15 19:16:52", "flickr_url": "http://farm9.staticflickr.com/8177/7897919854_d1dbf69832_z.jpg", "id": 369763}, {"license": 3, "file_name": "000000309536.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000309536.jpg", "height": 500, "width": 333, "date_captured": "2013-11-16 16:23:33", "flickr_url": "http://farm3.staticflickr.com/2753/4050882667_da296673a5_z.jpg", "id": 309536}, {"license": 3, "file_name": "000000035535.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000035535.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 04:12:00", "flickr_url": "http://farm4.staticflickr.com/3241/5724824632_95ef51923f_z.jpg", "id": 35535}, {"license": 6, "file_name": "000000202774.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000202774.jpg", "height": 640, "width": 473, "date_captured": "2013-11-20 12:50:38", "flickr_url": "http://farm3.staticflickr.com/2359/2432648371_a6d91d70f7_z.jpg", "id": 202774}, {"license": 2, "file_name": "000000036881.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000036881.jpg", "height": 640, "width": 358, "date_captured": "2013-11-21 05:17:52", "flickr_url": "http://farm5.staticflickr.com/4106/4844481999_630109cc32_z.jpg", "id": 36881}, {"license": 2, "file_name": "000000260969.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000260969.jpg", "height": 640, "width": 429, "date_captured": "2013-11-24 01:55:14", "flickr_url": "http://farm4.staticflickr.com/3339/3316767479_314f9fd8d8_z.jpg", "id": 260969}, {"license": 1, "file_name": "000000338086.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000338086.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 20:58:30", "flickr_url": "http://farm1.staticflickr.com/49/156714393_d11b28b165_z.jpg", "id": 338086}, {"license": 2, "file_name": "000000211397.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000211397.jpg", "height": 359, "width": 640, "date_captured": "2013-11-16 17:44:39", "flickr_url": "http://farm7.staticflickr.com/6032/6335502540_80d3fe6d99_z.jpg", "id": 211397}, {"license": 1, "file_name": "000000294451.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000294451.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 18:13:36", "flickr_url": "http://farm4.staticflickr.com/3315/3227038836_87a7e62ae5_z.jpg", "id": 294451}, {"license": 1, "file_name": "000000014027.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000014027.jpg", "height": 640, "width": 478, "date_captured": "2013-11-17 00:08:07", "flickr_url": "http://farm7.staticflickr.com/6008/6200080954_93ea5bf67a_z.jpg", "id": 14027}, {"license": 2, "file_name": "000000496360.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000496360.jpg", "height": 341, "width": 640, "date_captured": "2013-11-19 20:59:50", "flickr_url": "http://farm8.staticflickr.com/7265/7027725719_7ae8e22a0b_z.jpg", "id": 496360}, {"license": 3, "file_name": "000000364299.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000364299.jpg", "height": 303, "width": 640, "date_captured": "2013-11-18 04:21:02", "flickr_url": "http://farm8.staticflickr.com/7336/9886557956_c51304cbda_z.jpg", "id": 364299}, {"license": 2, "file_name": "000000252702.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000252702.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 05:32:19", "flickr_url": "http://farm4.staticflickr.com/3568/3388553276_5eb17526b4_z.jpg", "id": 252702}, {"license": 3, "file_name": "000000222987.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000222987.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 21:30:14", "flickr_url": "http://farm3.staticflickr.com/2498/4225416137_6de4896204_z.jpg", "id": 222987}, {"license": 1, "file_name": "000000497109.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000497109.jpg", "height": 445, "width": 640, "date_captured": "2013-11-18 09:12:52", "flickr_url": "http://farm2.staticflickr.com/1369/809308360_58fcf48954_z.jpg", "id": 497109}, {"license": 1, "file_name": "000000554674.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000554674.jpg", "height": 500, "width": 500, "date_captured": "2013-11-20 07:34:44", "flickr_url": "http://farm4.staticflickr.com/3302/3624233287_cfa63c92fa_z.jpg", "id": 554674}, {"license": 3, "file_name": "000000202194.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000202194.jpg", "height": 500, "width": 335, "date_captured": "2013-11-20 05:12:51", "flickr_url": "http://farm5.staticflickr.com/4020/4283507213_437dbe6007_z.jpg", "id": 202194}, {"license": 1, "file_name": "000000450940.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000450940.jpg", "height": 375, "width": 500, "date_captured": "2013-11-15 04:28:59", "flickr_url": "http://farm1.staticflickr.com/93/230349217_4c46fbee4d_z.jpg", "id": 450940}, {"license": 3, "file_name": "000000208754.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000208754.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 13:08:03", "flickr_url": "http://farm3.staticflickr.com/2153/2372600784_77651b3b04_z.jpg", "id": 208754}, {"license": 1, "file_name": "000000502517.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000502517.jpg", "height": 427, "width": 640, "date_captured": "2013-11-23 00:35:49", "flickr_url": "http://farm9.staticflickr.com/8314/7939504362_04a80e42be_z.jpg", "id": 502517}, {"license": 3, "file_name": "000000386850.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000386850.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 04:44:00", "flickr_url": "http://farm9.staticflickr.com/8384/8471789893_100101c2b0_z.jpg", "id": 386850}, {"license": 1, "file_name": "000000205676.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000205676.jpg", "height": 451, "width": 640, "date_captured": "2013-11-16 18:31:18", "flickr_url": "http://farm8.staticflickr.com/7325/9788089095_e212e848d2_z.jpg", "id": 205676}, {"license": 1, "file_name": "000000371714.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000371714.jpg", "height": 640, "width": 427, "date_captured": "2013-11-15 23:56:21", "flickr_url": "http://farm3.staticflickr.com/2778/4276079856_80ca190ac4_z.jpg", "id": 371714}, {"license": 3, "file_name": "000000183949.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000183949.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 13:34:22", "flickr_url": "http://farm9.staticflickr.com/8383/8491120192_a89cdc3cb7_z.jpg", "id": 183949}, {"license": 2, "file_name": "000000443772.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000443772.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 14:33:23", "flickr_url": "http://farm5.staticflickr.com/4056/4591949264_4be00e0df0_z.jpg", "id": 443772}, {"license": 2, "file_name": "000000083787.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000083787.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 14:06:20", "flickr_url": "http://farm1.staticflickr.com/133/348091042_15eebba747_z.jpg", "id": 83787}, {"license": 1, "file_name": "000000268406.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000268406.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 19:56:02", "flickr_url": "http://farm2.staticflickr.com/1440/1463431613_02ac5a2660_z.jpg", "id": 268406}, {"license": 1, "file_name": "000000358100.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000358100.jpg", "height": 612, "width": 612, "date_captured": "2013-11-24 15:47:29", "flickr_url": "http://farm9.staticflickr.com/8286/7690667302_d9c9eeb484_z.jpg", "id": 358100}, {"license": 4, "file_name": "000000372353.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000372353.jpg", "height": 428, "width": 640, "date_captured": "2013-11-24 10:30:00", "flickr_url": "http://farm5.staticflickr.com/4010/4529039984_5834cac2b3_z.jpg", "id": 372353}, {"license": 3, "file_name": "000000286619.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000286619.jpg", "height": 451, "width": 640, "date_captured": "2013-11-20 11:31:01", "flickr_url": "http://farm2.staticflickr.com/1155/3170421424_4704219638_z.jpg", "id": 286619}, {"license": 1, "file_name": "000000348279.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000348279.jpg", "height": 640, "width": 425, "date_captured": "2013-11-18 03:07:21", "flickr_url": "http://farm8.staticflickr.com/7005/6428985677_d1e4883d22_z.jpg", "id": 348279}, {"license": 3, "file_name": "000000373765.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000373765.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 12:03:24", "flickr_url": "http://farm1.staticflickr.com/155/424617460_0cd7527e1a_z.jpg", "id": 373765}, {"license": 1, "file_name": "000000102200.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000102200.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 04:26:22", "flickr_url": "http://farm5.staticflickr.com/4101/4935236219_00a98d175d_z.jpg", "id": 102200}, {"license": 2, "file_name": "000000364256.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000364256.jpg", "height": 359, "width": 640, "date_captured": "2013-11-21 01:07:33", "flickr_url": "http://farm5.staticflickr.com/4138/4806025776_2d17cae30c_z.jpg", "id": 364256}, {"license": 1, "file_name": "000000397184.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000397184.jpg", "height": 427, "width": 640, "date_captured": "2013-11-23 01:00:25", "flickr_url": "http://farm8.staticflickr.com/7060/6804463918_150efa684b_z.jpg", "id": 397184}, {"license": 3, "file_name": "000000149878.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000149878.jpg", "height": 426, "width": 640, "date_captured": "2013-11-16 16:21:03", "flickr_url": "http://farm9.staticflickr.com/8012/7358974610_6d155cab06_z.jpg", "id": 149878}, {"license": 1, "file_name": "000000522150.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000522150.jpg", "height": 476, "width": 640, "date_captured": "2013-11-15 17:55:28", "flickr_url": "http://farm9.staticflickr.com/8490/8247341003_476f6c57f7_z.jpg", "id": 522150}, {"license": 4, "file_name": "000000181149.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000181149.jpg", "height": 553, "width": 640, "date_captured": "2013-11-17 07:08:50", "flickr_url": "http://farm1.staticflickr.com/85/213302785_4d9451fdce_z.jpg", "id": 181149}, {"license": 3, "file_name": "000000107367.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000107367.jpg", "height": 479, "width": 376, "date_captured": "2013-11-21 00:06:54", "flickr_url": "http://farm6.staticflickr.com/5246/5273621456_acc552f7d2_z.jpg", "id": 107367}, {"license": 5, "file_name": "000000482024.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000482024.jpg", "height": 478, "width": 640, "date_captured": "2013-11-16 19:22:05", "flickr_url": "http://farm5.staticflickr.com/4080/4951482119_0ecd88aa33_z.jpg", "id": 482024}, {"license": 3, "file_name": "000000546773.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000546773.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 03:24:35", "flickr_url": "http://farm9.staticflickr.com/8333/8098484107_2984f769cf_z.jpg", "id": 546773}, {"license": 3, "file_name": "000000249264.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000249264.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 23:27:30", "flickr_url": "http://farm6.staticflickr.com/5149/5637213359_4a69d9d00a_z.jpg", "id": 249264}, {"license": 1, "file_name": "000000396660.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000396660.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 17:03:47", "flickr_url": "http://farm8.staticflickr.com/7148/6624443541_d13ddc0e20_z.jpg", "id": 396660}, {"license": 1, "file_name": "000000332065.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000332065.jpg", "height": 463, "width": 620, "date_captured": "2013-11-25 14:21:34", "flickr_url": "http://farm8.staticflickr.com/7312/9599046645_44b76d59c4_z.jpg", "id": 332065}, {"license": 1, "file_name": "000000036914.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000036914.jpg", "height": 423, "width": 410, "date_captured": "2013-11-17 16:34:57", "flickr_url": "http://farm1.staticflickr.com/122/284230747_b5dd1555e5_z.jpg", "id": 36914}, {"license": 3, "file_name": "000000207385.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000207385.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 04:56:51", "flickr_url": "http://farm5.staticflickr.com/4124/5176163199_48e30b10c5_z.jpg", "id": 207385}, {"license": 1, "file_name": "000000097479.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000097479.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 20:17:21", "flickr_url": "http://farm2.staticflickr.com/1215/537571603_341b38c4a7_z.jpg", "id": 97479}, {"license": 2, "file_name": "000000053615.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000053615.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 15:47:16", "flickr_url": "http://farm7.staticflickr.com/6041/6238710523_a0e2d22f40_z.jpg", "id": 53615}, {"license": 5, "file_name": "000000563869.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000563869.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 21:34:29", "flickr_url": "http://farm4.staticflickr.com/3095/3121637227_ba47090905_z.jpg", "id": 563869}, {"license": 3, "file_name": "000000100726.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000100726.jpg", "height": 375, "width": 500, "date_captured": "2013-11-21 19:52:51", "flickr_url": "http://farm4.staticflickr.com/3239/2689533922_f90ef8f87b_z.jpg", "id": 100726}, {"license": 3, "file_name": "000000178078.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000178078.jpg", "height": 375, "width": 500, "date_captured": "2013-11-15 14:40:55", "flickr_url": "http://farm4.staticflickr.com/3233/3067823767_3b78b30be9_z.jpg", "id": 178078}, {"license": 3, "file_name": "000000097661.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000097661.jpg", "height": 640, "width": 427, "date_captured": "2013-11-20 19:36:08", "flickr_url": "http://farm8.staticflickr.com/7383/8726811730_f48a7a6166_z.jpg", "id": 97661}, {"license": 3, "file_name": "000000022265.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000022265.jpg", "height": 500, "width": 429, "date_captured": "2013-11-18 18:08:16", "flickr_url": "http://farm1.staticflickr.com/44/183552357_b84f7d1af7_z.jpg", "id": 22265}, {"license": 1, "file_name": "000000333643.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000333643.jpg", "height": 425, "width": 640, "date_captured": "2013-11-24 03:32:47", "flickr_url": "http://farm3.staticflickr.com/2574/4201775484_23d04df590_z.jpg", "id": 333643}, {"license": 3, "file_name": "000000271900.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000271900.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 20:42:23", "flickr_url": "http://farm9.staticflickr.com/8221/8309963563_a51cbe49ea_z.jpg", "id": 271900}, {"license": 4, "file_name": "000000034861.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000034861.jpg", "height": 424, "width": 640, "date_captured": "2013-11-19 03:32:06", "flickr_url": "http://farm9.staticflickr.com/8217/8448095145_cb926d40c7_z.jpg", "id": 34861}, {"license": 4, "file_name": "000000333181.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000333181.jpg", "height": 426, "width": 640, "date_captured": "2013-11-25 14:44:45", "flickr_url": "http://farm6.staticflickr.com/5330/9250212164_75c6c11509_z.jpg", "id": 333181}, {"license": 1, "file_name": "000000079196.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000079196.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 15:03:53", "flickr_url": "http://farm6.staticflickr.com/5099/5532134331_1dec6715b8_z.jpg", "id": 79196}, {"license": 4, "file_name": "000000374391.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000374391.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 02:54:08", "flickr_url": "http://farm3.staticflickr.com/2194/2244318699_394341c36d_z.jpg", "id": 374391}, {"license": 2, "file_name": "000000239504.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000239504.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 10:08:01", "flickr_url": "http://farm5.staticflickr.com/4064/4404845464_ec375c97e4_z.jpg", "id": 239504}, {"license": 5, "file_name": "000000165388.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000165388.jpg", "height": 640, "width": 640, "date_captured": "2013-11-18 09:38:25", "flickr_url": "http://farm8.staticflickr.com/7255/7810869950_4271f59fea_z.jpg", "id": 165388}, {"license": 1, "file_name": "000000323829.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000323829.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 19:46:17", "flickr_url": "http://farm4.staticflickr.com/3050/2745445729_2e10f44fa7_z.jpg", "id": 323829}, {"license": 4, "file_name": "000000165347.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000165347.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 23:56:59", "flickr_url": "http://farm9.staticflickr.com/8219/8321512305_74bd399f08_z.jpg", "id": 165347}, {"license": 1, "file_name": "000000113333.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000113333.jpg", "height": 451, "width": 640, "date_captured": "2013-11-16 19:04:16", "flickr_url": "http://farm5.staticflickr.com/4101/4947759448_0130490ca7_z.jpg", "id": 113333}, {"license": 6, "file_name": "000000012181.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000012181.jpg", "height": 375, "width": 500, "date_captured": "2013-11-16 12:11:34", "flickr_url": "http://farm1.staticflickr.com/253/517675175_c6776a550a_z.jpg", "id": 12181}, {"license": 4, "file_name": "000000502006.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000502006.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 14:01:43", "flickr_url": "http://farm9.staticflickr.com/8434/7763024994_b21e1b3e0e_z.jpg", "id": 502006}, {"license": 4, "file_name": "000000031345.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000031345.jpg", "height": 478, "width": 640, "date_captured": "2013-11-21 19:31:17", "flickr_url": "http://farm9.staticflickr.com/8302/7878283602_ac4832d6d4_z.jpg", "id": 31345}, {"license": 3, "file_name": "000000412289.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000412289.jpg", "height": 375, "width": 500, "date_captured": "2013-11-24 04:09:24", "flickr_url": "http://farm4.staticflickr.com/3376/3514278468_ee84d83343_z.jpg", "id": 412289}, {"license": 3, "file_name": "000000461989.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000461989.jpg", "height": 612, "width": 612, "date_captured": "2013-11-21 00:22:48", "flickr_url": "http://farm8.staticflickr.com/7286/8736215589_de57169de5_z.jpg", "id": 461989}, {"license": 1, "file_name": "000000529350.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000529350.jpg", "height": 640, "width": 480, "date_captured": "2013-11-20 03:49:19", "flickr_url": "http://farm4.staticflickr.com/3242/3134474335_638ddb2fce_z.jpg", "id": 529350}, {"license": 1, "file_name": "000000037433.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000037433.jpg", "height": 426, "width": 640, "date_captured": "2013-11-21 22:43:43", "flickr_url": "http://farm7.staticflickr.com/6192/6055564084_ff7f456d68_z.jpg", "id": 37433}, {"license": 4, "file_name": "000000376177.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000376177.jpg", "height": 360, "width": 640, "date_captured": "2013-11-16 02:26:00", "flickr_url": "http://farm7.staticflickr.com/6094/6333032738_99bda4b566_z.jpg", "id": 376177}, {"license": 3, "file_name": "000000497709.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000497709.jpg", "height": 429, "width": 640, "date_captured": "2013-11-20 19:16:17", "flickr_url": "http://farm4.staticflickr.com/3496/3236620739_fa6d30514f_z.jpg", "id": 497709}, {"license": 4, "file_name": "000000440625.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000440625.jpg", "height": 640, "width": 423, "date_captured": "2013-11-16 11:58:13", "flickr_url": "http://farm5.staticflickr.com/4082/4757067763_8b78a942b3_z.jpg", "id": 440625}, {"license": 1, "file_name": "000000111644.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000111644.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 18:58:31", "flickr_url": "http://farm3.staticflickr.com/2108/5807341677_3de10f59cb_z.jpg", "id": 111644}, {"license": 7, "file_name": "000000545806.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000545806.jpg", "height": 640, "width": 503, "date_captured": "2013-11-18 04:38:49", "flickr_url": "http://farm8.staticflickr.com/7009/6548848317_020eb78cd2_z.jpg", "id": 545806}, {"license": 4, "file_name": "000000504726.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000504726.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 06:29:59", "flickr_url": "http://farm6.staticflickr.com/5059/5499346566_9a63432a7e_z.jpg", "id": 504726}, {"license": 6, "file_name": "000000124416.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000124416.jpg", "height": 355, "width": 640, "date_captured": "2013-11-20 22:53:45", "flickr_url": "http://farm7.staticflickr.com/6075/6052264540_63b935813a_z.jpg", "id": 124416}, {"license": 1, "file_name": "000000446266.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000446266.jpg", "height": 640, "width": 531, "date_captured": "2013-11-14 22:47:35", "flickr_url": "http://farm6.staticflickr.com/5310/5640810015_f9d65642b9_z.jpg", "id": 446266}, {"license": 1, "file_name": "000000171603.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000171603.jpg", "height": 333, "width": 500, "date_captured": "2013-11-24 05:00:54", "flickr_url": "http://farm4.staticflickr.com/3158/3050772463_1e471a8ae0_z.jpg", "id": 171603}, {"license": 3, "file_name": "000000465463.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000465463.jpg", "height": 429, "width": 640, "date_captured": "2013-11-14 22:29:17", "flickr_url": "http://farm8.staticflickr.com/7053/6970138351_97283f9691_z.jpg", "id": 465463}, {"license": 3, "file_name": "000000189660.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000189660.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 17:44:50", "flickr_url": "http://farm8.staticflickr.com/7229/7273362290_6eba694239_z.jpg", "id": 189660}, {"license": 1, "file_name": "000000008223.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000008223.jpg", "height": 500, "width": 375, "date_captured": "2013-11-15 15:14:41", "flickr_url": "http://farm2.staticflickr.com/1432/822318126_e6020accd2_z.jpg", "id": 8223}, {"license": 2, "file_name": "000000425578.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000425578.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 18:29:54", "flickr_url": "http://farm4.staticflickr.com/3653/3557930154_34faa830dc_z.jpg", "id": 425578}, {"license": 4, "file_name": "000000003947.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000003947.jpg", "height": 612, "width": 612, "date_captured": "2013-11-16 22:18:30", "flickr_url": "http://farm7.staticflickr.com/6217/6271713623_529cc371f9_z.jpg", "id": 3947}, {"license": 1, "file_name": "000000538843.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000538843.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 10:11:52", "flickr_url": "http://farm8.staticflickr.com/7009/6742412031_de9fe7f9c2_z.jpg", "id": 538843}, {"license": 1, "file_name": "000000061203.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000061203.jpg", "height": 612, "width": 612, "date_captured": "2013-11-14 21:53:58", "flickr_url": "http://farm8.staticflickr.com/7226/7219654146_e2c091fb0c_z.jpg", "id": 61203}, {"license": 1, "file_name": "000000115241.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000115241.jpg", "height": 335, "width": 500, "date_captured": "2013-11-23 02:56:33", "flickr_url": "http://farm5.staticflickr.com/4070/4470283166_ec752304bf_z.jpg", "id": 115241}, {"license": 5, "file_name": "000000092826.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000092826.jpg", "height": 375, "width": 500, "date_captured": "2013-11-24 04:43:15", "flickr_url": "http://farm5.staticflickr.com/4024/4355856865_f6346cee3b_z.jpg", "id": 92826}, {"license": 3, "file_name": "000000091837.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000091837.jpg", "height": 478, "width": 640, "date_captured": "2013-11-15 01:58:16", "flickr_url": "http://farm9.staticflickr.com/8117/8633519369_bd11c58db1_z.jpg", "id": 91837}, {"license": 2, "file_name": "000000448533.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000448533.jpg", "height": 427, "width": 640, "date_captured": "2013-11-22 17:03:53", "flickr_url": "http://farm4.staticflickr.com/3200/2984166899_02a2eb2e5b_z.jpg", "id": 448533}, {"license": 2, "file_name": "000000056594.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000056594.jpg", "height": 504, "width": 640, "date_captured": "2013-11-18 10:29:46", "flickr_url": "http://farm8.staticflickr.com/7024/6432638995_a09debbd03_z.jpg", "id": 56594}, {"license": 1, "file_name": "000000509822.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000509822.jpg", "height": 425, "width": 640, "date_captured": "2013-11-15 02:53:28", "flickr_url": "http://farm7.staticflickr.com/6095/6220574839_af6b6146b8_z.jpg", "id": 509822}, {"license": 3, "file_name": "000000425652.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000425652.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 17:37:40", "flickr_url": "http://farm8.staticflickr.com/7347/9361322350_f709749895_z.jpg", "id": 425652}, {"license": 5, "file_name": "000000207110.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000207110.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 16:45:59", "flickr_url": "http://farm2.staticflickr.com/1268/1310989411_b1c5fb241b_z.jpg", "id": 207110}, {"license": 2, "file_name": "000000148646.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000148646.jpg", "height": 438, "width": 640, "date_captured": "2013-11-20 22:13:46", "flickr_url": "http://farm8.staticflickr.com/7032/6564618553_321ab4df45_z.jpg", "id": 148646}, {"license": 1, "file_name": "000000502113.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000502113.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 23:33:45", "flickr_url": "http://farm8.staticflickr.com/7208/6942498585_214a5b60fd_z.jpg", "id": 502113}, {"license": 1, "file_name": "000000125135.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000125135.jpg", "height": 335, "width": 500, "date_captured": "2013-11-20 14:13:01", "flickr_url": "http://farm3.staticflickr.com/2320/2365963649_9b5aae1727_z.jpg", "id": 125135}, {"license": 5, "file_name": "000000361661.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000361661.jpg", "height": 428, "width": 640, "date_captured": "2013-11-18 09:26:54", "flickr_url": "http://farm9.staticflickr.com/8050/8089952251_9a3829f640_z.jpg", "id": 361661}, {"license": 3, "file_name": "000000313372.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000313372.jpg", "height": 640, "width": 427, "date_captured": "2013-11-21 03:11:54", "flickr_url": "http://farm8.staticflickr.com/7250/7669880144_f1fe781fcb_z.jpg", "id": 313372}, {"license": 3, "file_name": "000000485740.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000485740.jpg", "height": 427, "width": 640, "date_captured": "2013-11-22 01:53:09", "flickr_url": "http://farm4.staticflickr.com/3451/3926738414_9d7a1fc920_z.jpg", "id": 485740}, {"license": 3, "file_name": "000000078213.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000078213.jpg", "height": 424, "width": 640, "date_captured": "2013-11-20 22:07:55", "flickr_url": "http://farm8.staticflickr.com/7173/6778945057_07bfee208a_z.jpg", "id": 78213}, {"license": 4, "file_name": "000000356358.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000356358.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 16:17:09", "flickr_url": "http://farm8.staticflickr.com/7036/7061179211_1259269230_z.jpg", "id": 356358}, {"license": 4, "file_name": "000000163296.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000163296.jpg", "height": 640, "width": 427, "date_captured": "2013-11-19 21:43:31", "flickr_url": "http://farm4.staticflickr.com/3003/3029696918_127cb934c9_z.jpg", "id": 163296}, {"license": 3, "file_name": "000000572326.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000572326.jpg", "height": 640, "width": 480, "date_captured": "2013-11-19 19:57:06", "flickr_url": "http://farm9.staticflickr.com/8403/8683328751_629c1f70d7_z.jpg", "id": 572326}, {"license": 6, "file_name": "000000333324.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000333324.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 15:12:32", "flickr_url": "http://farm5.staticflickr.com/4110/5200352375_06be55a7c1_z.jpg", "id": 333324}, {"license": 3, "file_name": "000000550028.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000550028.jpg", "height": 512, "width": 640, "date_captured": "2013-11-23 00:31:07", "flickr_url": "http://farm9.staticflickr.com/8102/8556342884_1b1f7d916f_z.jpg", "id": 550028}, {"license": 3, "file_name": "000000156221.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000156221.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 06:51:15", "flickr_url": "http://farm4.staticflickr.com/3456/3293534410_e721814ab8_z.jpg", "id": 156221}, {"license": 1, "file_name": "000000399835.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000399835.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 18:19:57", "flickr_url": "http://farm6.staticflickr.com/5316/5825011155_7f7b4e84a2_z.jpg", "id": 399835}, {"license": 2, "file_name": "000000329083.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000329083.jpg", "height": 228, "width": 640, "date_captured": "2013-11-18 04:58:00", "flickr_url": "http://farm4.staticflickr.com/3677/9677316608_2c5b31822c_z.jpg", "id": 329083}, {"license": 2, "file_name": "000000121316.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000121316.jpg", "height": 640, "width": 464, "date_captured": "2013-11-14 18:41:10", "flickr_url": "http://farm9.staticflickr.com/8379/8680434179_cc6206fb75_z.jpg", "id": 121316}, {"license": 1, "file_name": "000000299854.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000299854.jpg", "height": 375, "width": 500, "date_captured": "2013-11-17 03:19:02", "flickr_url": "http://farm1.staticflickr.com/116/311793610_b4672775aa_z.jpg", "id": 299854}, {"license": 3, "file_name": "000000219192.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000219192.jpg", "height": 500, "width": 332, "date_captured": "2013-11-23 04:14:10", "flickr_url": "http://farm4.staticflickr.com/3068/2571492552_0223e3aa13_z.jpg", "id": 219192}, {"license": 1, "file_name": "000000061506.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000061506.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 23:49:17", "flickr_url": "http://farm4.staticflickr.com/3459/3877933121_d7bcb91fbd_z.jpg", "id": 61506}, {"license": 5, "file_name": "000000546342.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000546342.jpg", "height": 640, "width": 640, "date_captured": "2013-11-21 05:28:00", "flickr_url": "http://farm5.staticflickr.com/4006/4699304700_5d30e60735_z.jpg", "id": 546342}, {"license": 2, "file_name": "000000086620.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000086620.jpg", "height": 423, "width": 640, "date_captured": "2013-11-18 15:46:28", "flickr_url": "http://farm3.staticflickr.com/2778/4480105299_4d9435c570_z.jpg", "id": 86620}, {"license": 5, "file_name": "000000073727.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000073727.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 22:54:32", "flickr_url": "http://farm4.staticflickr.com/3385/3271008535_e63c3b7d9f_z.jpg", "id": 73727}, {"license": 3, "file_name": "000000309694.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000309694.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 09:10:15", "flickr_url": "http://farm5.staticflickr.com/4081/4919342301_13c5dd1253_z.jpg", "id": 309694}, {"license": 4, "file_name": "000000119729.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000119729.jpg", "height": 428, "width": 640, "date_captured": "2013-11-19 20:23:50", "flickr_url": "http://farm6.staticflickr.com/5462/7239942686_00f58f36ed_z.jpg", "id": 119729}, {"license": 2, "file_name": "000000495931.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000495931.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 07:07:58", "flickr_url": "http://farm4.staticflickr.com/3402/3525410742_ef175bb18d_z.jpg", "id": 495931}, {"license": 4, "file_name": "000000009025.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000009025.jpg", "height": 612, "width": 612, "date_captured": "2013-11-22 02:16:58", "flickr_url": "http://farm9.staticflickr.com/8045/8075801579_f5c8b0deca_z.jpg", "id": 9025}, {"license": 2, "file_name": "000000111831.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000111831.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 13:57:20", "flickr_url": "http://farm3.staticflickr.com/2484/3609840029_a1b172470c_z.jpg", "id": 111831}, {"license": 4, "file_name": "000000516914.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000516914.jpg", "height": 319, "width": 640, "date_captured": "2013-11-17 01:12:15", "flickr_url": "http://farm4.staticflickr.com/3489/3779913094_ee5b10916f_z.jpg", "id": 516914}, {"license": 6, "file_name": "000000365654.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000365654.jpg", "height": 640, "width": 429, "date_captured": "2013-11-20 05:56:14", "flickr_url": "http://farm5.staticflickr.com/4040/4636972974_d8a9496428_z.jpg", "id": 365654}, {"license": 4, "file_name": "000000554286.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000554286.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 16:56:36", "flickr_url": "http://farm4.staticflickr.com/3766/9285518514_dfb855883d_z.jpg", "id": 554286}, {"license": 1, "file_name": "000000428518.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000428518.jpg", "height": 500, "width": 357, "date_captured": "2013-11-18 18:07:12", "flickr_url": "http://farm1.staticflickr.com/71/221968319_732e6251bc_z.jpg", "id": 428518}, {"license": 4, "file_name": "000000214007.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000214007.jpg", "height": 612, "width": 612, "date_captured": "2013-11-14 22:36:11", "flickr_url": "http://farm8.staticflickr.com/7208/6821712516_bc677660b0_z.jpg", "id": 214007}, {"license": 1, "file_name": "000000319917.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000319917.jpg", "height": 433, "width": 640, "date_captured": "2013-11-15 20:52:00", "flickr_url": "http://farm4.staticflickr.com/3637/3370693576_1322e98f2f_z.jpg", "id": 319917}, {"license": 4, "file_name": "000000242379.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000242379.jpg", "height": 640, "width": 427, "date_captured": "2013-11-20 20:54:52", "flickr_url": "http://farm9.staticflickr.com/8528/8636686191_f8e490b735_z.jpg", "id": 242379}, {"license": 3, "file_name": "000000352426.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000352426.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 08:31:41", "flickr_url": "http://farm3.staticflickr.com/2220/2167872351_3e9dbe2e6b_z.jpg", "id": 352426}, {"license": 5, "file_name": "000000385241.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000385241.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 13:57:27", "flickr_url": "http://farm9.staticflickr.com/8052/8374568386_8fff8f518c_z.jpg", "id": 385241}, {"license": 1, "file_name": "000000482590.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000482590.jpg", "height": 640, "width": 427, "date_captured": "2013-11-14 12:52:07", "flickr_url": "http://farm5.staticflickr.com/4139/4803679575_e0ee2e9bd2_z.jpg", "id": 482590}, {"license": 4, "file_name": "000000493939.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000493939.jpg", "height": 640, "width": 479, "date_captured": "2013-11-15 02:06:38", "flickr_url": "http://farm7.staticflickr.com/6028/5916405928_e6b8d869e0_z.jpg", "id": 493939}, {"license": 4, "file_name": "000000140115.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000140115.jpg", "height": 640, "width": 457, "date_captured": "2013-11-24 08:51:16", "flickr_url": "http://farm4.staticflickr.com/3194/2843059666_abb36472b1_z.jpg", "id": 140115}, {"license": 3, "file_name": "000000409956.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000409956.jpg", "height": 364, "width": 640, "date_captured": "2013-11-17 22:10:25", "flickr_url": "http://farm8.staticflickr.com/7384/9501421098_e3c196a300_z.jpg", "id": 409956}, {"license": 5, "file_name": "000000114079.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000114079.jpg", "height": 428, "width": 640, "date_captured": "2013-11-15 14:35:47", "flickr_url": "http://farm3.staticflickr.com/2448/4006331418_94b1a25116_z.jpg", "id": 114079}, {"license": 1, "file_name": "000000308350.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000308350.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 02:14:42", "flickr_url": "http://farm9.staticflickr.com/8067/8235320196_c178e72a0b_z.jpg", "id": 308350}, {"license": 3, "file_name": "000000550466.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000550466.jpg", "height": 424, "width": 640, "date_captured": "2013-11-17 10:16:41", "flickr_url": "http://farm9.staticflickr.com/8547/8704392742_5baaf29408_z.jpg", "id": 550466}, {"license": 5, "file_name": "000000452087.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000452087.jpg", "height": 640, "width": 427, "date_captured": "2013-11-17 04:31:52", "flickr_url": "http://farm9.staticflickr.com/8117/8653586130_153709307a_z.jpg", "id": 452087}, {"license": 6, "file_name": "000000039958.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000039958.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 12:55:45", "flickr_url": "http://farm5.staticflickr.com/4047/4298379241_2d5334a246_z.jpg", "id": 39958}, {"license": 2, "file_name": "000000223838.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000223838.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 20:26:45", "flickr_url": "http://farm6.staticflickr.com/5464/8826579320_b5b2780cab_z.jpg", "id": 223838}, {"license": 3, "file_name": "000000022341.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000022341.jpg", "height": 375, "width": 500, "date_captured": "2013-11-24 09:13:17", "flickr_url": "http://farm2.staticflickr.com/1149/1160037901_074cac64b4_z.jpg", "id": 22341}, {"license": 3, "file_name": "000000080336.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000080336.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 22:34:05", "flickr_url": "http://farm8.staticflickr.com/7255/6863977248_db1c0cde52_z.jpg", "id": 80336}, {"license": 4, "file_name": "000000375659.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000375659.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 04:52:48", "flickr_url": "http://farm6.staticflickr.com/5210/5297099073_5eebfa26bf_z.jpg", "id": 375659}, {"license": 4, "file_name": "000000357992.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000357992.jpg", "height": 375, "width": 500, "date_captured": "2013-11-15 17:15:42", "flickr_url": "http://farm4.staticflickr.com/3087/2824314118_8ab347f069_z.jpg", "id": 357992}, {"license": 1, "file_name": "000000115055.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000115055.jpg", "height": 480, "width": 640, "date_captured": "2013-11-25 07:55:37", "flickr_url": "http://farm4.staticflickr.com/3810/9676491230_37ba190ee8_z.jpg", "id": 115055}, {"license": 4, "file_name": "000000431554.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000431554.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 04:11:53", "flickr_url": "http://farm3.staticflickr.com/2687/4392395910_94e639b1da_z.jpg", "id": 431554}, {"license": 1, "file_name": "000000101473.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000101473.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 04:02:12", "flickr_url": "http://farm4.staticflickr.com/3339/3574350862_49d337b167_z.jpg", "id": 101473}, {"license": 1, "file_name": "000000140295.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000140295.jpg", "height": 425, "width": 640, "date_captured": "2013-11-18 18:14:16", "flickr_url": "http://farm7.staticflickr.com/6149/5943935268_2c41d03f12_z.jpg", "id": 140295}, {"license": 3, "file_name": "000000386650.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000386650.jpg", "height": 484, "width": 640, "date_captured": "2013-11-16 17:06:32", "flickr_url": "http://farm1.staticflickr.com/135/327955714_f74c8d8678_z.jpg", "id": 386650}, {"license": 1, "file_name": "000000435402.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000435402.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 00:05:24", "flickr_url": "http://farm3.staticflickr.com/2782/4458732144_997d35224c_z.jpg", "id": 435402}, {"license": 1, "file_name": "000000308936.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000308936.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 23:41:14", "flickr_url": "http://farm1.staticflickr.com/25/98937914_50b6714d3e_z.jpg", "id": 308936}, {"license": 3, "file_name": "000000376888.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000376888.jpg", "height": 360, "width": 640, "date_captured": "2013-11-17 06:32:11", "flickr_url": "http://farm6.staticflickr.com/5520/9931102423_37b5701494_z.jpg", "id": 376888}, {"license": 4, "file_name": "000000515734.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000515734.jpg", "height": 640, "width": 480, "date_captured": "2013-11-15 12:59:58", "flickr_url": "http://farm9.staticflickr.com/8381/8503022320_5b85197718_z.jpg", "id": 515734}, {"license": 2, "file_name": "000000264209.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000264209.jpg", "height": 480, "width": 640, "date_captured": "2013-11-23 18:04:41", "flickr_url": "http://farm2.staticflickr.com/1195/717437685_5121437f50_z.jpg", "id": 264209}, {"license": 5, "file_name": "000000353231.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000353231.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 01:21:36", "flickr_url": "http://farm3.staticflickr.com/2068/3531671974_4949f29bd7_z.jpg", "id": 353231}, {"license": 3, "file_name": "000000450263.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000450263.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 19:05:12", "flickr_url": "http://farm3.staticflickr.com/2179/2210530394_3c6e1d462b_z.jpg", "id": 450263}, {"license": 1, "file_name": "000000264244.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000264244.jpg", "height": 640, "width": 425, "date_captured": "2013-11-17 20:15:30", "flickr_url": "http://farm5.staticflickr.com/4106/5013676763_51bcc1eab2_z.jpg", "id": 264244}, {"license": 3, "file_name": "000000294416.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000294416.jpg", "height": 375, "width": 500, "date_captured": "2013-11-14 16:27:28", "flickr_url": "http://farm1.staticflickr.com/19/105045559_655abc89f8_z.jpg", "id": 294416}, {"license": 1, "file_name": "000000574668.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000574668.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 18:53:16", "flickr_url": "http://farm3.staticflickr.com/2098/2402680350_e516b94b2d_z.jpg", "id": 574668}, {"license": 3, "file_name": "000000265472.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000265472.jpg", "height": 375, "width": 500, "date_captured": "2013-11-19 21:17:12", "flickr_url": "http://farm3.staticflickr.com/2731/4316226888_575f06f90e_z.jpg", "id": 265472}, {"license": 1, "file_name": "000000319293.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000319293.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 09:08:25", "flickr_url": "http://farm1.staticflickr.com/131/396757335_d12ff6ce0a_z.jpg", "id": 319293}, {"license": 3, "file_name": "000000269590.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000269590.jpg", "height": 640, "width": 427, "date_captured": "2013-11-16 17:31:31", "flickr_url": "http://farm8.staticflickr.com/7200/6859006995_6965e996d2_z.jpg", "id": 269590}, {"license": 3, "file_name": "000000418193.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000418193.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 11:33:49", "flickr_url": "http://farm5.staticflickr.com/4111/5145521548_ec4fc2e55d_z.jpg", "id": 418193}, {"license": 1, "file_name": "000000245295.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000245295.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 03:27:58", "flickr_url": "http://farm5.staticflickr.com/4046/4518603349_85004140cc_z.jpg", "id": 245295}, {"license": 1, "file_name": "000000335940.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000335940.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 00:35:22", "flickr_url": "http://farm1.staticflickr.com/42/104267426_b1c24f0d06_z.jpg", "id": 335940}, {"license": 1, "file_name": "000000302680.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000302680.jpg", "height": 471, "width": 500, "date_captured": "2013-11-22 02:17:49", "flickr_url": "http://farm4.staticflickr.com/3547/3660505597_24286a6ef0_z.jpg", "id": 302680}, {"license": 1, "file_name": "000000186255.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000186255.jpg", "height": 640, "width": 458, "date_captured": "2013-11-18 19:35:29", "flickr_url": "http://farm4.staticflickr.com/3207/3594690408_39ffa56043_z.jpg", "id": 186255}, {"license": 5, "file_name": "000000151322.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000151322.jpg", "height": 424, "width": 640, "date_captured": "2013-11-20 01:36:32", "flickr_url": "http://farm7.staticflickr.com/6123/6038135680_8ffe4ab90e_z.jpg", "id": 151322}, {"license": 1, "file_name": "000000171181.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000171181.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 18:10:56", "flickr_url": "http://farm4.staticflickr.com/3265/3160711365_2a2494a657_z.jpg", "id": 171181}, {"license": 1, "file_name": "000000198001.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000198001.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 00:14:25", "flickr_url": "http://farm1.staticflickr.com/44/136795582_ffd0c6019f_z.jpg", "id": 198001}, {"license": 4, "file_name": "000000204589.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000204589.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 00:09:47", "flickr_url": "http://farm8.staticflickr.com/7289/9874450136_cece597621_z.jpg", "id": 204589}, {"license": 3, "file_name": "000000208919.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000208919.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 21:02:03", "flickr_url": "http://farm6.staticflickr.com/5002/5339228879_1ed382f51d_z.jpg", "id": 208919}, {"license": 3, "file_name": "000000184877.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000184877.jpg", "height": 480, "width": 640, "date_captured": "2013-11-23 00:22:40", "flickr_url": "http://farm8.staticflickr.com/7377/8720343636_0916141418_z.jpg", "id": 184877}, {"license": 3, "file_name": "000000395893.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000395893.jpg", "height": 429, "width": 640, "date_captured": "2013-11-15 13:26:29", "flickr_url": "http://farm4.staticflickr.com/3095/2601147457_f64e702474_z.jpg", "id": 395893}, {"license": 5, "file_name": "000000260118.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000260118.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 20:33:51", "flickr_url": "http://farm4.staticflickr.com/3087/3120886429_5a9333ef39_z.jpg", "id": 260118}, {"license": 2, "file_name": "000000114868.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000114868.jpg", "height": 640, "width": 427, "date_captured": "2013-11-21 04:45:23", "flickr_url": "http://farm6.staticflickr.com/5091/5478446436_7ea2459433_z.jpg", "id": 114868}, {"license": 6, "file_name": "000000532414.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000532414.jpg", "height": 640, "width": 396, "date_captured": "2013-11-18 17:56:49", "flickr_url": "http://farm1.staticflickr.com/235/454484064_8909af4840_z.jpg", "id": 532414}, {"license": 1, "file_name": "000000574108.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000574108.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 19:08:29", "flickr_url": "http://farm5.staticflickr.com/4105/5064165703_b69f767160_z.jpg", "id": 574108}, {"license": 3, "file_name": "000000209813.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000209813.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 00:39:32", "flickr_url": "http://farm8.staticflickr.com/7224/7185126340_d3677aa8a2_z.jpg", "id": 209813}, {"license": 1, "file_name": "000000325684.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000325684.jpg", "height": 500, "width": 500, "date_captured": "2013-11-16 13:37:44", "flickr_url": "http://farm3.staticflickr.com/2064/2260204478_8e7b416534_z.jpg", "id": 325684}, {"license": 1, "file_name": "000000375528.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000375528.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 21:56:35", "flickr_url": "http://farm6.staticflickr.com/5325/7007171162_685e9bb4a0_z.jpg", "id": 375528}, {"license": 4, "file_name": "000000164036.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000164036.jpg", "height": 640, "width": 640, "date_captured": "2013-11-16 12:24:35", "flickr_url": "http://farm9.staticflickr.com/8344/8244917004_0b535fbd1a_z.jpg", "id": 164036}, {"license": 4, "file_name": "000000213510.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000213510.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 08:07:02", "flickr_url": "http://farm6.staticflickr.com/5465/9366693273_dd043def20_z.jpg", "id": 213510}, {"license": 4, "file_name": "000000087146.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000087146.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 08:53:59", "flickr_url": "http://farm4.staticflickr.com/3656/3405498206_4eeae2f9b9_z.jpg", "id": 87146}, {"license": 4, "file_name": "000000288127.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000288127.jpg", "height": 428, "width": 640, "date_captured": "2013-11-18 14:04:52", "flickr_url": "http://farm3.staticflickr.com/2825/9719235568_1e3a78e49e_z.jpg", "id": 288127}, {"license": 5, "file_name": "000000360494.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000360494.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 04:59:22", "flickr_url": "http://farm8.staticflickr.com/7191/6872683361_a6c07121e9_z.jpg", "id": 360494}, {"license": 4, "file_name": "000000242821.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000242821.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 21:25:54", "flickr_url": "http://farm8.staticflickr.com/7323/9437115659_7014678d2e_z.jpg", "id": 242821}, {"license": 3, "file_name": "000000270303.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000270303.jpg", "height": 640, "width": 640, "date_captured": "2013-11-23 03:55:16", "flickr_url": "http://farm3.staticflickr.com/2545/3979599509_759c1fb689_z.jpg", "id": 270303}, {"license": 1, "file_name": "000000398727.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000398727.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 15:50:20", "flickr_url": "http://farm7.staticflickr.com/6020/5894800403_ae4d41ce2e_z.jpg", "id": 398727}, {"license": 2, "file_name": "000000142357.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000142357.jpg", "height": 640, "width": 640, "date_captured": "2013-11-22 22:14:10", "flickr_url": "http://farm7.staticflickr.com/6125/5981233904_cb923666d7_z.jpg", "id": 142357}, {"license": 2, "file_name": "000000480115.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000480115.jpg", "height": 405, "width": 640, "date_captured": "2013-11-16 14:27:55", "flickr_url": "http://farm9.staticflickr.com/8312/8074362094_3d0fa22488_z.jpg", "id": 480115}, {"license": 1, "file_name": "000000194679.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000194679.jpg", "height": 640, "width": 427, "date_captured": "2013-11-16 21:53:59", "flickr_url": "http://farm5.staticflickr.com/4057/4288914307_8ee2c5169d_z.jpg", "id": 194679}, {"license": 2, "file_name": "000000441072.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000441072.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 23:51:45", "flickr_url": "http://farm4.staticflickr.com/3108/2524985355_dfb3bc6f02_z.jpg", "id": 441072}, {"license": 2, "file_name": "000000530876.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000530876.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 00:51:24", "flickr_url": "http://farm4.staticflickr.com/3115/2548516482_b150c4c794_z.jpg", "id": 530876}, {"license": 1, "file_name": "000000459794.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000459794.jpg", "height": 426, "width": 640, "date_captured": "2013-11-15 12:21:58", "flickr_url": "http://farm1.staticflickr.com/198/463269016_c9e52517e0_z.jpg", "id": 459794}, {"license": 5, "file_name": "000000311522.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000311522.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 22:45:43", "flickr_url": "http://farm6.staticflickr.com/5056/5446955352_ee69dbfa81_z.jpg", "id": 311522}, {"license": 2, "file_name": "000000453734.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000453734.jpg", "height": 375, "width": 500, "date_captured": "2013-11-24 05:46:43", "flickr_url": "http://farm1.staticflickr.com/64/173943797_36547f90a0_z.jpg", "id": 453734}, {"license": 3, "file_name": "000000355111.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000355111.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 06:18:24", "flickr_url": "http://farm4.staticflickr.com/3328/3625293868_53b11f3e08_z.jpg", "id": 355111}, {"license": 1, "file_name": "000000185474.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000185474.jpg", "height": 300, "width": 500, "date_captured": "2013-11-15 06:11:00", "flickr_url": "http://farm3.staticflickr.com/2716/4416100899_370b13595b_z.jpg", "id": 185474}, {"license": 2, "file_name": "000000509826.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000509826.jpg", "height": 640, "width": 640, "date_captured": "2013-11-19 23:50:35", "flickr_url": "http://farm1.staticflickr.com/161/433131972_0c7dfd1fbe_z.jpg", "id": 509826}, {"license": 1, "file_name": "000000572717.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000572717.jpg", "height": 346, "width": 640, "date_captured": "2013-11-17 04:21:09", "flickr_url": "http://farm4.staticflickr.com/3741/9790766686_2143f3dda4_z.jpg", "id": 572717}, {"license": 3, "file_name": "000000088360.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000088360.jpg", "height": 389, "width": 640, "date_captured": "2013-11-18 17:53:51", "flickr_url": "http://farm1.staticflickr.com/198/456136058_16a931a5c5_z.jpg", "id": 88360}, {"license": 3, "file_name": "000000256660.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000256660.jpg", "height": 612, "width": 612, "date_captured": "2013-11-19 22:22:57", "flickr_url": "http://farm9.staticflickr.com/8248/8655055566_c4fe22d52d_z.jpg", "id": 256660}, {"license": 3, "file_name": "000000387855.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000387855.jpg", "height": 347, "width": 640, "date_captured": "2013-11-17 08:10:15", "flickr_url": "http://farm8.staticflickr.com/7433/9361447122_dacf87b25f_z.jpg", "id": 387855}, {"license": 2, "file_name": "000000357428.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000357428.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 23:11:36", "flickr_url": "http://farm9.staticflickr.com/8522/8541226078_f46f6af4e8_z.jpg", "id": 357428}, {"license": 1, "file_name": "000000245780.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000245780.jpg", "height": 333, "width": 500, "date_captured": "2013-11-18 15:51:22", "flickr_url": "http://farm3.staticflickr.com/2561/4074247901_74041a90fd_z.jpg", "id": 245780}, {"license": 3, "file_name": "000000309195.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000309195.jpg", "height": 333, "width": 500, "date_captured": "2013-11-16 18:14:59", "flickr_url": "http://farm1.staticflickr.com/7/7728515_d3c52e621c_z.jpg", "id": 309195}, {"license": 1, "file_name": "000000456695.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000456695.jpg", "height": 428, "width": 640, "date_captured": "2013-11-15 03:03:34", "flickr_url": "http://farm3.staticflickr.com/2121/3808894948_8116ed336c_z.jpg", "id": 456695}, {"license": 3, "file_name": "000000547693.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000547693.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 21:14:48", "flickr_url": "http://farm4.staticflickr.com/3225/3157669320_a1a5d198c2_z.jpg", "id": 547693}, {"license": 3, "file_name": "000000005339.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000005339.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 20:20:38", "flickr_url": "http://farm9.staticflickr.com/8537/8669285733_feab1669e3_z.jpg", "id": 5339}, {"license": 4, "file_name": "000000247508.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000247508.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 23:16:10", "flickr_url": "http://farm3.staticflickr.com/2671/4113088262_1685d46167_z.jpg", "id": 247508}, {"license": 1, "file_name": "000000203989.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000203989.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 11:16:33", "flickr_url": "http://farm4.staticflickr.com/3211/2860328685_4873195ff8_z.jpg", "id": 203989}, {"license": 3, "file_name": "000000480215.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000480215.jpg", "height": 640, "width": 480, "date_captured": "2013-11-15 11:57:11", "flickr_url": "http://farm4.staticflickr.com/3051/2575059718_e60d5045c6_z.jpg", "id": 480215}, {"license": 3, "file_name": "000000082486.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000082486.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 07:11:42", "flickr_url": "http://farm6.staticflickr.com/5226/5602222540_cf838439b0_z.jpg", "id": 82486}, {"license": 2, "file_name": "000000404964.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000404964.jpg", "height": 481, "width": 640, "date_captured": "2013-11-22 17:48:32", "flickr_url": "http://farm4.staticflickr.com/3334/3240033603_af028dca9b_z.jpg", "id": 404964}, {"license": 1, "file_name": "000000026768.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000026768.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 04:09:21", "flickr_url": "http://farm5.staticflickr.com/4092/5122221295_b569997477_z.jpg", "id": 26768}, {"license": 4, "file_name": "000000493873.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000493873.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 12:41:21", "flickr_url": "http://farm4.staticflickr.com/3574/3667248721_688c48df74_z.jpg", "id": 493873}, {"license": 3, "file_name": "000000351876.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000351876.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 21:59:31", "flickr_url": "http://farm7.staticflickr.com/6235/6238048941_58059e9714_z.jpg", "id": 351876}, {"license": 3, "file_name": "000000065981.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000065981.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 05:24:06", "flickr_url": "http://farm1.staticflickr.com/182/430068446_506d930efc_z.jpg", "id": 65981}, {"license": 3, "file_name": "000000503023.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000503023.jpg", "height": 500, "width": 375, "date_captured": "2013-11-24 22:05:17", "flickr_url": "http://farm1.staticflickr.com/1/125342635_60b981ad60_z.jpg", "id": 503023}, {"license": 4, "file_name": "000000116740.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000116740.jpg", "height": 640, "width": 427, "date_captured": "2013-11-16 18:15:14", "flickr_url": "http://farm5.staticflickr.com/4100/4757069963_f0a25354da_z.jpg", "id": 116740}, {"license": 6, "file_name": "000000449985.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000449985.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 18:40:25", "flickr_url": "http://farm8.staticflickr.com/7076/6860792606_c2fdba1e39_z.jpg", "id": 449985}, {"license": 1, "file_name": "000000348044.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000348044.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 04:34:55", "flickr_url": "http://farm6.staticflickr.com/5295/5429834237_0e27ab28c5_z.jpg", "id": 348044}, {"license": 1, "file_name": "000000434201.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000434201.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 17:31:37", "flickr_url": "http://farm5.staticflickr.com/4101/4754224338_3fa2a71130_z.jpg", "id": 434201}, {"license": 3, "file_name": "000000387318.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000387318.jpg", "height": 478, "width": 640, "date_captured": "2013-11-20 14:38:05", "flickr_url": "http://farm8.staticflickr.com/7092/6979376322_9219bb7b00_z.jpg", "id": 387318}, {"license": 4, "file_name": "000000143847.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000143847.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 13:58:14", "flickr_url": "http://farm4.staticflickr.com/3122/2785959742_35c24f7e2b_z.jpg", "id": 143847}, {"license": 4, "file_name": "000000169111.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000169111.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 17:28:39", "flickr_url": "http://farm4.staticflickr.com/3276/2811970676_6411e6a54b_z.jpg", "id": 169111}, {"license": 1, "file_name": "000000254711.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000254711.jpg", "height": 479, "width": 640, "date_captured": "2013-11-22 22:01:50", "flickr_url": "http://farm8.staticflickr.com/7454/8728281333_56980ee9ab_z.jpg", "id": 254711}, {"license": 3, "file_name": "000000442223.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000442223.jpg", "height": 429, "width": 640, "date_captured": "2013-11-17 18:49:22", "flickr_url": "http://farm9.staticflickr.com/8052/8370718368_030e8611ec_z.jpg", "id": 442223}, {"license": 1, "file_name": "000000413895.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000413895.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 21:22:05", "flickr_url": "http://farm8.staticflickr.com/7031/6782245949_2657521fa4_z.jpg", "id": 413895}, {"license": 3, "file_name": "000000045136.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000045136.jpg", "height": 640, "width": 504, "date_captured": "2013-11-21 03:06:26", "flickr_url": "http://farm9.staticflickr.com/8152/7693987520_59d068f79b_z.jpg", "id": 45136}, {"license": 2, "file_name": "000000290628.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000290628.jpg", "height": 394, "width": 640, "date_captured": "2013-11-16 19:54:20", "flickr_url": "http://farm4.staticflickr.com/3829/9856378854_9c10757a89_z.jpg", "id": 290628}, {"license": 3, "file_name": "000000551986.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000551986.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 18:48:00", "flickr_url": "http://farm3.staticflickr.com/2035/2239655271_3884364eb0_z.jpg", "id": 551986}, {"license": 1, "file_name": "000000419281.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000419281.jpg", "height": 464, "width": 640, "date_captured": "2013-11-18 05:32:54", "flickr_url": "http://farm8.staticflickr.com/7322/9524812793_5b022d36c8_z.jpg", "id": 419281}, {"license": 3, "file_name": "000000515422.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000515422.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 13:37:31", "flickr_url": "http://farm9.staticflickr.com/8276/8749479538_92f8452f7f_z.jpg", "id": 515422}, {"license": 4, "file_name": "000000448061.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000448061.jpg", "height": 535, "width": 640, "date_captured": "2013-11-16 13:57:27", "flickr_url": "http://farm8.staticflickr.com/7124/6895272178_84baa4fc29_z.jpg", "id": 448061}, {"license": 1, "file_name": "000000130949.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000130949.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 01:02:51", "flickr_url": "http://farm3.staticflickr.com/2554/4015648349_eb6e5fab3f_z.jpg", "id": 130949}, {"license": 1, "file_name": "000000364205.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000364205.jpg", "height": 426, "width": 640, "date_captured": "2013-11-22 01:14:02", "flickr_url": "http://farm1.staticflickr.com/104/257357637_3c04b5864a_z.jpg", "id": 364205}, {"license": 5, "file_name": "000000458832.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000458832.jpg", "height": 286, "width": 640, "date_captured": "2013-11-15 18:59:39", "flickr_url": "http://farm4.staticflickr.com/3638/3643242971_552706eddb_z.jpg", "id": 458832}, {"license": 4, "file_name": "000000023676.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000023676.jpg", "height": 640, "width": 494, "date_captured": "2013-11-23 01:01:24", "flickr_url": "http://farm8.staticflickr.com/7045/6924458493_6d03bf6492_z.jpg", "id": 23676}, {"license": 5, "file_name": "000000035322.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000035322.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 20:44:25", "flickr_url": "http://farm9.staticflickr.com/8148/7006586012_4862671071_z.jpg", "id": 35322}, {"license": 1, "file_name": "000000017580.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000017580.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 11:48:16", "flickr_url": "http://farm4.staticflickr.com/3421/3358021664_b6f4693f76_z.jpg", "id": 17580}, {"license": 1, "file_name": "000000175212.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000175212.jpg", "height": 640, "width": 478, "date_captured": "2013-11-15 04:03:07", "flickr_url": "http://farm7.staticflickr.com/6003/6006138856_8bf8d2e5df_z.jpg", "id": 175212}, {"license": 3, "file_name": "000000328487.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000328487.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 18:09:34", "flickr_url": "http://farm6.staticflickr.com/5106/5633855551_8e0dd83c34_z.jpg", "id": 328487}, {"license": 4, "file_name": "000000535483.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000535483.jpg", "height": 512, "width": 640, "date_captured": "2013-11-14 23:59:08", "flickr_url": "http://farm5.staticflickr.com/4065/4621727299_ed63698506_z.jpg", "id": 535483}, {"license": 3, "file_name": "000000260150.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000260150.jpg", "height": 436, "width": 640, "date_captured": "2013-11-24 14:26:09", "flickr_url": "http://farm6.staticflickr.com/5332/8974488951_d06f3f3a7e_z.jpg", "id": 260150}, {"license": 3, "file_name": "000000191918.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000191918.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 10:22:02", "flickr_url": "http://farm9.staticflickr.com/8543/8701405288_fb25aae12d_z.jpg", "id": 191918}, {"license": 1, "file_name": "000000034354.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000034354.jpg", "height": 640, "width": 640, "date_captured": "2013-11-23 00:05:30", "flickr_url": "http://farm4.staticflickr.com/3772/9332077228_475cdddd25_z.jpg", "id": 34354}, {"license": 4, "file_name": "000000453552.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000453552.jpg", "height": 640, "width": 424, "date_captured": "2013-11-20 21:03:35", "flickr_url": "http://farm9.staticflickr.com/8237/8517000734_3c9d91c315_z.jpg", "id": 453552}, {"license": 2, "file_name": "000000277472.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000277472.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 04:01:41", "flickr_url": "http://farm6.staticflickr.com/5262/5743307438_7c8d3b9bd9_z.jpg", "id": 277472}, {"license": 1, "file_name": "000000371808.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000371808.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 23:37:29", "flickr_url": "http://farm9.staticflickr.com/8416/8706552470_8dc0206179_z.jpg", "id": 371808}, {"license": 1, "file_name": "000000316907.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000316907.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 08:57:25", "flickr_url": "http://farm3.staticflickr.com/2241/2108025546_83924da767_z.jpg", "id": 316907}, {"license": 4, "file_name": "000000451412.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000451412.jpg", "height": 640, "width": 427, "date_captured": "2013-11-15 13:05:25", "flickr_url": "http://farm3.staticflickr.com/2588/4232292573_0d918441c5_z.jpg", "id": 451412}, {"license": 1, "file_name": "000000224118.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000224118.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 19:13:02", "flickr_url": "http://farm4.staticflickr.com/3634/3529382857_bef9cbbb6a_z.jpg", "id": 224118}, {"license": 2, "file_name": "000000374977.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000374977.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 20:39:30", "flickr_url": "http://farm5.staticflickr.com/4130/4835706051_1762b569dd_z.jpg", "id": 374977}, {"license": 4, "file_name": "000000118710.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000118710.jpg", "height": 478, "width": 640, "date_captured": "2013-11-16 23:54:40", "flickr_url": "http://farm9.staticflickr.com/8219/8310250194_d916d74209_z.jpg", "id": 118710}, {"license": 1, "file_name": "000000232806.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000232806.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 09:24:50", "flickr_url": "http://farm5.staticflickr.com/4051/4703373081_4b9ae7b1ff_z.jpg", "id": 232806}, {"license": 3, "file_name": "000000257791.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000257791.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 19:57:25", "flickr_url": "http://farm2.staticflickr.com/1109/3170831528_75d4d8efba_z.jpg", "id": 257791}, {"license": 1, "file_name": "000000186556.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000186556.jpg", "height": 640, "width": 480, "date_captured": "2013-11-16 18:34:22", "flickr_url": "http://farm6.staticflickr.com/5285/5237170357_9e9d5ccf09_z.jpg", "id": 186556}, {"license": 3, "file_name": "000000139571.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000139571.jpg", "height": 457, "width": 640, "date_captured": "2013-11-20 17:26:05", "flickr_url": "http://farm9.staticflickr.com/8034/8000921749_755438d03d_z.jpg", "id": 139571}, {"license": 1, "file_name": "000000303020.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000303020.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 17:42:55", "flickr_url": "http://farm6.staticflickr.com/5105/5686989266_2d60c2a289_z.jpg", "id": 303020}, {"license": 4, "file_name": "000000316258.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000316258.jpg", "height": 360, "width": 640, "date_captured": "2013-11-18 04:34:49", "flickr_url": "http://farm3.staticflickr.com/2872/9702420264_b19134eb2b_z.jpg", "id": 316258}, {"license": 3, "file_name": "000000070288.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000070288.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 23:29:59", "flickr_url": "http://farm4.staticflickr.com/3698/9872429773_b95737e1f6_z.jpg", "id": 70288}, {"license": 3, "file_name": "000000458640.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000458640.jpg", "height": 426, "width": 640, "date_captured": "2013-11-16 14:58:34", "flickr_url": "http://farm8.staticflickr.com/7267/7444498406_2280df1913_z.jpg", "id": 458640}, {"license": 3, "file_name": "000000204603.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000204603.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 21:27:10", "flickr_url": "http://farm3.staticflickr.com/2314/2237449801_64279e9093_z.jpg", "id": 204603}, {"license": 5, "file_name": "000000027969.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000027969.jpg", "height": 424, "width": 640, "date_captured": "2013-11-16 21:42:36", "flickr_url": "http://farm9.staticflickr.com/8503/8399094687_0f1eb4cbca_z.jpg", "id": 27969}, {"license": 4, "file_name": "000000002179.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000002179.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 23:26:21", "flickr_url": "http://farm6.staticflickr.com/5330/9444360032_164eea53e3_z.jpg", "id": 2179}, {"license": 4, "file_name": "000000503293.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000503293.jpg", "height": 640, "width": 427, "date_captured": "2013-11-22 23:02:25", "flickr_url": "http://farm2.staticflickr.com/1198/691455112_1a87323f20_z.jpg", "id": 503293}, {"license": 2, "file_name": "000000315647.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000315647.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 04:57:00", "flickr_url": "http://farm6.staticflickr.com/5098/5457032938_df5f586388_z.jpg", "id": 315647}, {"license": 1, "file_name": "000000223121.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000223121.jpg", "height": 426, "width": 640, "date_captured": "2013-11-16 03:05:38", "flickr_url": "http://farm7.staticflickr.com/6025/5935474056_5d3042a48a_z.jpg", "id": 223121}, {"license": 3, "file_name": "000000487869.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000487869.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 20:25:55", "flickr_url": "http://farm8.staticflickr.com/7286/8725572878_b976696571_z.jpg", "id": 487869}, {"license": 3, "file_name": "000000476552.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000476552.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 00:25:35", "flickr_url": "http://farm4.staticflickr.com/3462/3182025446_031d06037c_z.jpg", "id": 476552}, {"license": 4, "file_name": "000000297135.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000297135.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 20:29:24", "flickr_url": "http://farm1.staticflickr.com/184/437915814_089a0a0ff0_z.jpg", "id": 297135}, {"license": 1, "file_name": "000000162164.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000162164.jpg", "height": 500, "width": 338, "date_captured": "2013-11-24 02:11:24", "flickr_url": "http://farm3.staticflickr.com/2429/3726108494_d4a29aafcc_z.jpg", "id": 162164}, {"license": 2, "file_name": "000000426513.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000426513.jpg", "height": 478, "width": 640, "date_captured": "2013-11-21 03:51:29", "flickr_url": "http://farm6.staticflickr.com/5078/5874850309_c5d58fbfc1_z.jpg", "id": 426513}, {"license": 3, "file_name": "000000480818.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000480818.jpg", "height": 461, "width": 640, "date_captured": "2013-11-24 22:17:15", "flickr_url": "http://farm4.staticflickr.com/3668/9728307883_03ce907340_z.jpg", "id": 480818}, {"license": 4, "file_name": "000000095880.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000095880.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 04:47:04", "flickr_url": "http://farm6.staticflickr.com/5024/5554114139_9d5b60e390_z.jpg", "id": 95880}, {"license": 3, "file_name": "000000173163.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000173163.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 18:20:48", "flickr_url": "http://farm2.staticflickr.com/1022/998751494_af43d9a4dc_z.jpg", "id": 173163}, {"license": 4, "file_name": "000000023906.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000023906.jpg", "height": 426, "width": 640, "date_captured": "2013-11-25 08:45:48", "flickr_url": "http://farm4.staticflickr.com/3766/9169106922_d18415e0e0_z.jpg", "id": 23906}, {"license": 4, "file_name": "000000420658.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000420658.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 10:00:12", "flickr_url": "http://farm2.staticflickr.com/1141/1414967780_898ef1d8e8_z.jpg", "id": 420658}, {"license": 3, "file_name": "000000204755.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000204755.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 21:05:01", "flickr_url": "http://farm9.staticflickr.com/8382/8579883993_2543fc358e_z.jpg", "id": 204755}, {"license": 3, "file_name": "000000009679.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000009679.jpg", "height": 640, "width": 426, "date_captured": "2013-11-18 07:47:56", "flickr_url": "http://farm7.staticflickr.com/6170/6166645030_5890d0d3bd_z.jpg", "id": 9679}, {"license": 5, "file_name": "000000369976.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000369976.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 04:29:13", "flickr_url": "http://farm9.staticflickr.com/8542/8888795517_59c9667876_z.jpg", "id": 369976}, {"license": 1, "file_name": "000000171155.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000171155.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 18:17:47", "flickr_url": "http://farm4.staticflickr.com/3252/2385152477_1a0da12197_z.jpg", "id": 171155}, {"license": 2, "file_name": "000000083142.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000083142.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 15:26:36", "flickr_url": "http://farm4.staticflickr.com/3165/3868950736_fb1193501f_z.jpg", "id": 83142}, {"license": 2, "file_name": "000000493245.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000493245.jpg", "height": 500, "width": 333, "date_captured": "2013-11-14 12:38:17", "flickr_url": "http://farm1.staticflickr.com/120/307449197_c27b678b67_z.jpg", "id": 493245}, {"license": 5, "file_name": "000000075308.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000075308.jpg", "height": 640, "width": 468, "date_captured": "2013-11-16 12:39:32", "flickr_url": "http://farm6.staticflickr.com/5349/9215256260_4eff66bff9_z.jpg", "id": 75308}, {"license": 2, "file_name": "000000254824.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000254824.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 14:07:21", "flickr_url": "http://farm6.staticflickr.com/5521/9594885128_296f16173e_z.jpg", "id": 254824}, {"license": 3, "file_name": "000000381208.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000381208.jpg", "height": 640, "width": 425, "date_captured": "2013-11-22 22:15:15", "flickr_url": "http://farm7.staticflickr.com/6124/5924808532_3234de1cd4_z.jpg", "id": 381208}, {"license": 1, "file_name": "000000291712.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000291712.jpg", "height": 448, "width": 640, "date_captured": "2013-11-18 05:52:30", "flickr_url": "http://farm8.staticflickr.com/7422/9511718485_60b1ba64cb_z.jpg", "id": 291712}, {"license": 4, "file_name": "000000102315.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000102315.jpg", "height": 360, "width": 640, "date_captured": "2013-11-14 17:40:35", "flickr_url": "http://farm4.staticflickr.com/3676/9677658402_d4ccbcfb8c_z.jpg", "id": 102315}, {"license": 1, "file_name": "000000450129.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000450129.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 04:26:10", "flickr_url": "http://farm6.staticflickr.com/5043/5211447466_891c5e5cf1_z.jpg", "id": 450129}, {"license": 3, "file_name": "000000105697.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000105697.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 22:10:37", "flickr_url": "http://farm4.staticflickr.com/3285/2720143634_fa028f5f77_z.jpg", "id": 105697}, {"license": 4, "file_name": "000000343057.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000343057.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 23:58:25", "flickr_url": "http://farm5.staticflickr.com/4053/4482225986_c47ea57ecb_z.jpg", "id": 343057}, {"license": 3, "file_name": "000000398236.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000398236.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 11:35:48", "flickr_url": "http://farm1.staticflickr.com/148/368070663_58532a03f2_z.jpg", "id": 398236}, {"license": 6, "file_name": "000000226801.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000226801.jpg", "height": 425, "width": 640, "date_captured": "2013-11-16 15:57:57", "flickr_url": "http://farm5.staticflickr.com/4125/5014696648_e7224645fd_z.jpg", "id": 226801}, {"license": 1, "file_name": "000000509269.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000509269.jpg", "height": 469, "width": 640, "date_captured": "2013-11-18 13:27:52", "flickr_url": "http://farm9.staticflickr.com/8254/8623998183_bcd2b2c081_z.jpg", "id": 509269}, {"license": 1, "file_name": "000000542041.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000542041.jpg", "height": 375, "width": 500, "date_captured": "2013-11-21 20:10:04", "flickr_url": "http://farm1.staticflickr.com/6/7860031_cd9b247471_z.jpg", "id": 542041}, {"license": 4, "file_name": "000000478164.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000478164.jpg", "height": 425, "width": 640, "date_captured": "2013-11-16 16:48:33", "flickr_url": "http://farm9.staticflickr.com/8085/8460068367_02ac7809c7_z.jpg", "id": 478164}, {"license": 2, "file_name": "000000168662.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000168662.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 06:01:05", "flickr_url": "http://farm6.staticflickr.com/5532/9378174704_6340eaeea1_z.jpg", "id": 168662}, {"license": 3, "file_name": "000000441216.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000441216.jpg", "height": 414, "width": 640, "date_captured": "2013-11-17 08:26:10", "flickr_url": "http://farm6.staticflickr.com/5498/9288069715_58158f29e4_z.jpg", "id": 441216}, {"license": 1, "file_name": "000000063123.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000063123.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 23:03:49", "flickr_url": "http://farm6.staticflickr.com/5039/5896634446_9059a60b1a_z.jpg", "id": 63123}, {"license": 3, "file_name": "000000000142.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000000142.jpg", "height": 640, "width": 480, "date_captured": "2013-11-19 18:32:24", "flickr_url": "http://farm3.staticflickr.com/2514/4162236114_97deeab0f1_z.jpg", "id": 142}, {"license": 2, "file_name": "000000574074.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000574074.jpg", "height": 394, "width": 640, "date_captured": "2013-11-17 02:34:46", "flickr_url": "http://farm4.staticflickr.com/3332/5829283837_6f32250439_z.jpg", "id": 574074}, {"license": 4, "file_name": "000000116789.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000116789.jpg", "height": 375, "width": 500, "date_captured": "2013-11-22 19:39:48", "flickr_url": "http://farm1.staticflickr.com/9/11922318_4bafd29ed6_z.jpg", "id": 116789}, {"license": 3, "file_name": "000000275917.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000275917.jpg", "height": 531, "width": 640, "date_captured": "2013-11-20 06:44:54", "flickr_url": "http://farm3.staticflickr.com/2499/3869276354_c83ca221c3_z.jpg", "id": 275917}, {"license": 3, "file_name": "000000257323.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000257323.jpg", "height": 500, "width": 332, "date_captured": "2013-11-16 20:23:48", "flickr_url": "http://farm1.staticflickr.com/113/291917504_f2077a754a_z.jpg", "id": 257323}, {"license": 3, "file_name": "000000528047.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000528047.jpg", "height": 640, "width": 427, "date_captured": "2013-11-23 04:47:39", "flickr_url": "http://farm2.staticflickr.com/1231/1354441394_525b1fc175_z.jpg", "id": 528047}, {"license": 3, "file_name": "000000347688.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000347688.jpg", "height": 640, "width": 413, "date_captured": "2013-11-22 02:39:58", "flickr_url": "http://farm3.staticflickr.com/2424/3987208534_1b0a6ea596_z.jpg", "id": 347688}, {"license": 1, "file_name": "000000285388.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000285388.jpg", "height": 500, "width": 327, "date_captured": "2013-11-16 16:38:20", "flickr_url": "http://farm2.staticflickr.com/1366/592250385_70c97c1dd0_z.jpg", "id": 285388}, {"license": 4, "file_name": "000000272111.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000272111.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 07:00:10", "flickr_url": "http://farm4.staticflickr.com/3103/5847195302_9485c14f09_z.jpg", "id": 272111}, {"license": 1, "file_name": "000000441382.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000441382.jpg", "height": 426, "width": 640, "date_captured": "2013-11-24 23:41:13", "flickr_url": "http://farm9.staticflickr.com/8541/8649293134_b5d8f0e31e_z.jpg", "id": 441382}, {"license": 3, "file_name": "000000394242.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000394242.jpg", "height": 412, "width": 640, "date_captured": "2013-11-20 23:21:24", "flickr_url": "http://farm4.staticflickr.com/3005/5826621353_8243855ee2_z.jpg", "id": 394242}, {"license": 1, "file_name": "000000163112.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000163112.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 21:45:43", "flickr_url": "http://farm9.staticflickr.com/8380/8499379044_03f63919fd_z.jpg", "id": 163112}, {"license": 5, "file_name": "000000222572.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000222572.jpg", "height": 481, "width": 640, "date_captured": "2013-11-14 20:19:22", "flickr_url": "http://farm3.staticflickr.com/2495/4192453105_aef70af8c7_z.jpg", "id": 222572}, {"license": 5, "file_name": "000000203655.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000203655.jpg", "height": 640, "width": 427, "date_captured": "2013-11-15 13:21:18", "flickr_url": "http://farm8.staticflickr.com/7142/6544378423_28824dfdac_z.jpg", "id": 203655}, {"license": 4, "file_name": "000000185962.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000185962.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 01:27:57", "flickr_url": "http://farm9.staticflickr.com/8323/8349499712_a89bb18318_z.jpg", "id": 185962}, {"license": 4, "file_name": "000000169686.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000169686.jpg", "height": 354, "width": 640, "date_captured": "2013-11-21 21:45:52", "flickr_url": "http://farm9.staticflickr.com/8063/8218611846_aa79c9b39c_z.jpg", "id": 169686}, {"license": 1, "file_name": "000000149014.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000149014.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 14:49:50", "flickr_url": "http://farm1.staticflickr.com/135/398973851_55b6401e2a_z.jpg", "id": 149014}, {"license": 4, "file_name": "000000574487.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000574487.jpg", "height": 428, "width": 640, "date_captured": "2013-11-22 15:22:31", "flickr_url": "http://farm7.staticflickr.com/6070/6116837220_c83ebaacb1_z.jpg", "id": 574487}, {"license": 1, "file_name": "000000387595.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000387595.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 19:06:19", "flickr_url": "http://farm9.staticflickr.com/8493/8295711193_f97ea1d937_z.jpg", "id": 387595}, {"license": 1, "file_name": "000000298658.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000298658.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 00:01:23", "flickr_url": "http://farm4.staticflickr.com/3215/5783076942_0f7beea896_z.jpg", "id": 298658}, {"license": 2, "file_name": "000000357929.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000357929.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 18:46:01", "flickr_url": "http://farm4.staticflickr.com/3309/4575457759_ce3c57f8f8_z.jpg", "id": 357929}, {"license": 3, "file_name": "000000540296.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000540296.jpg", "height": 353, "width": 640, "date_captured": "2013-11-20 13:30:11", "flickr_url": "http://farm9.staticflickr.com/8070/8177718795_0daf273d19_z.jpg", "id": 540296}, {"license": 6, "file_name": "000000172979.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000172979.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 02:13:37", "flickr_url": "http://farm4.staticflickr.com/3025/2643943441_1eab83380b_z.jpg", "id": 172979}, {"license": 2, "file_name": "000000095281.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000095281.jpg", "height": 500, "width": 375, "date_captured": "2013-11-22 00:55:06", "flickr_url": "http://farm5.staticflickr.com/4050/4298652999_bd26db5e32_z.jpg", "id": 95281}, {"license": 2, "file_name": "000000058949.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000058949.jpg", "height": 429, "width": 500, "date_captured": "2013-11-22 17:17:22", "flickr_url": "http://farm4.staticflickr.com/3573/3506819462_6e006a7a45_z.jpg", "id": 58949}, {"license": 1, "file_name": "000000033034.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000033034.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 01:38:50", "flickr_url": "http://farm6.staticflickr.com/5294/5497394498_7f35d7c61d_z.jpg", "id": 33034}, {"license": 3, "file_name": "000000018358.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000018358.jpg", "height": 640, "width": 493, "date_captured": "2013-11-20 18:14:37", "flickr_url": "http://farm8.staticflickr.com/7245/7314082112_b9c1d04bb8_z.jpg", "id": 18358}, {"license": 6, "file_name": "000000018874.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000018874.jpg", "height": 375, "width": 500, "date_captured": "2013-11-17 01:51:16", "flickr_url": "http://farm1.staticflickr.com/73/174120592_16a43d69ba_z.jpg", "id": 18874}, {"license": 5, "file_name": "000000575530.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000575530.jpg", "height": 500, "width": 333, "date_captured": "2013-11-15 06:27:19", "flickr_url": "http://farm5.staticflickr.com/4019/4363299631_dc6231b3d4_z.jpg", "id": 575530}, {"license": 1, "file_name": "000000206427.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000206427.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:57:18", "flickr_url": "http://farm5.staticflickr.com/4049/4687731156_be46f50e7c_z.jpg", "id": 206427}, {"license": 3, "file_name": "000000146513.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000146513.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 23:38:56", "flickr_url": "http://farm8.staticflickr.com/7165/6603457599_1cf39e1a0b_z.jpg", "id": 146513}, {"license": 5, "file_name": "000000067657.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000067657.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 01:59:28", "flickr_url": "http://farm9.staticflickr.com/8070/8252967875_863a568231_z.jpg", "id": 67657}, {"license": 1, "file_name": "000000440698.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000440698.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 23:46:56", "flickr_url": "http://farm8.staticflickr.com/7082/7380364254_888f3f962c_z.jpg", "id": 440698}, {"license": 2, "file_name": "000000444515.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000444515.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 18:48:41", "flickr_url": "http://farm4.staticflickr.com/3292/2909343607_7b25d34ce4_z.jpg", "id": 444515}, {"license": 3, "file_name": "000000288694.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000288694.jpg", "height": 500, "width": 500, "date_captured": "2013-11-22 22:43:12", "flickr_url": "http://farm4.staticflickr.com/3364/3221288498_da740c4cab_z.jpg", "id": 288694}, {"license": 6, "file_name": "000000234655.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000234655.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 19:46:24", "flickr_url": "http://farm4.staticflickr.com/3720/9769556983_03f14cdea9_z.jpg", "id": 234655}, {"license": 2, "file_name": "000000081956.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000081956.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 07:29:40", "flickr_url": "http://farm1.staticflickr.com/210/489058514_a74537034d_z.jpg", "id": 81956}, {"license": 3, "file_name": "000000174337.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000174337.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 05:48:18", "flickr_url": "http://farm9.staticflickr.com/8491/8364392614_486e22b8f7_z.jpg", "id": 174337}, {"license": 5, "file_name": "000000237841.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000237841.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 23:51:41", "flickr_url": "http://farm5.staticflickr.com/4064/4530245249_b0d8d77ea9_z.jpg", "id": 237841}, {"license": 1, "file_name": "000000146235.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000146235.jpg", "height": 500, "width": 375, "date_captured": "2013-11-24 09:09:37", "flickr_url": "http://farm2.staticflickr.com/1088/1374357154_a1e82c0ab6_z.jpg", "id": 146235}, {"license": 1, "file_name": "000000151655.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000151655.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 16:34:11", "flickr_url": "http://farm4.staticflickr.com/3531/3245754143_6e61e84009_z.jpg", "id": 151655}, {"license": 1, "file_name": "000000027070.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000027070.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 09:24:05", "flickr_url": "http://farm5.staticflickr.com/4071/4667238398_06cdcebb09_z.jpg", "id": 27070}, {"license": 2, "file_name": "000000129982.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000129982.jpg", "height": 433, "width": 640, "date_captured": "2013-11-19 23:08:54", "flickr_url": "http://farm6.staticflickr.com/5048/5334138772_4c68638f08_z.jpg", "id": 129982}, {"license": 3, "file_name": "000000428208.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000428208.jpg", "height": 375, "width": 500, "date_captured": "2013-11-19 23:24:30", "flickr_url": "http://farm3.staticflickr.com/2436/3686914726_9271dd593a_z.jpg", "id": 428208}, {"license": 4, "file_name": "000000228907.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000228907.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 15:06:00", "flickr_url": "http://farm4.staticflickr.com/3528/3252132532_580df8d5e2_z.jpg", "id": 228907}, {"license": 4, "file_name": "000000435933.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000435933.jpg", "height": 640, "width": 480, "date_captured": "2013-11-16 22:36:32", "flickr_url": "http://farm9.staticflickr.com/8428/7677381146_cc2a88f474_z.jpg", "id": 435933}, {"license": 3, "file_name": "000000199215.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000199215.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 13:08:14", "flickr_url": "http://farm3.staticflickr.com/2814/9248449830_9289a5dd5a_z.jpg", "id": 199215}, {"license": 1, "file_name": "000000485882.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000485882.jpg", "height": 298, "width": 500, "date_captured": "2013-11-18 03:24:06", "flickr_url": "http://farm1.staticflickr.com/159/333968429_b457806e20_z.jpg", "id": 485882}, {"license": 3, "file_name": "000000386012.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000386012.jpg", "height": 350, "width": 640, "date_captured": "2013-11-22 08:29:28", "flickr_url": "http://farm9.staticflickr.com/8099/8561996634_40d2945e37_z.jpg", "id": 386012}, {"license": 2, "file_name": "000000119495.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000119495.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 18:15:57", "flickr_url": "http://farm3.staticflickr.com/2075/5703376533_c8cd5a18c6_z.jpg", "id": 119495}, {"license": 2, "file_name": "000000082933.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000082933.jpg", "height": 429, "width": 640, "date_captured": "2013-11-17 23:27:04", "flickr_url": "http://farm7.staticflickr.com/6084/6114373262_2fd56e8bf6_z.jpg", "id": 82933}, {"license": 4, "file_name": "000000548253.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000548253.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 22:51:10", "flickr_url": "http://farm9.staticflickr.com/8399/8606025589_fbd3c7fef6_z.jpg", "id": 548253}, {"license": 3, "file_name": "000000422744.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000422744.jpg", "height": 536, "width": 640, "date_captured": "2013-11-20 20:53:53", "flickr_url": "http://farm9.staticflickr.com/8047/8081805601_20b58b4835_z.jpg", "id": 422744}, {"license": 5, "file_name": "000000529348.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000529348.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 20:14:21", "flickr_url": "http://farm4.staticflickr.com/3116/2686174448_b1765b469c_z.jpg", "id": 529348}, {"license": 6, "file_name": "000000432993.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000432993.jpg", "height": 339, "width": 640, "date_captured": "2013-11-20 01:38:23", "flickr_url": "http://farm7.staticflickr.com/6001/5957085508_20d6422fdc_z.jpg", "id": 432993}, {"license": 1, "file_name": "000000342843.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000342843.jpg", "height": 640, "width": 427, "date_captured": "2013-11-15 04:07:39", "flickr_url": "http://farm7.staticflickr.com/6041/6213285078_13246df881_z.jpg", "id": 342843}, {"license": 3, "file_name": "000000360902.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000360902.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 01:29:57", "flickr_url": "http://farm5.staticflickr.com/4141/4850917969_b13034e2d7_z.jpg", "id": 360902}, {"license": 1, "file_name": "000000386890.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000386890.jpg", "height": 478, "width": 640, "date_captured": "2013-11-14 22:18:21", "flickr_url": "http://farm8.staticflickr.com/7220/7038919987_39acd11aea_z.jpg", "id": 386890}, {"license": 3, "file_name": "000000501575.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000501575.jpg", "height": 423, "width": 640, "date_captured": "2013-11-20 17:18:46", "flickr_url": "http://farm4.staticflickr.com/3563/4078828952_a6faa9f3aa_z.jpg", "id": 501575}, {"license": 4, "file_name": "000000057100.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000057100.jpg", "height": 481, "width": 640, "date_captured": "2013-11-24 04:17:43", "flickr_url": "http://farm8.staticflickr.com/7088/7149520499_4952326483_z.jpg", "id": 57100}, {"license": 1, "file_name": "000000067823.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000067823.jpg", "height": 479, "width": 640, "date_captured": "2013-11-15 04:30:06", "flickr_url": "http://farm3.staticflickr.com/2727/4201263073_2b7c090aa6_z.jpg", "id": 67823}, {"license": 2, "file_name": "000000431660.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000431660.jpg", "height": 427, "width": 640, "date_captured": "2013-11-22 21:19:44", "flickr_url": "http://farm1.staticflickr.com/90/206080465_8975befeb9_z.jpg", "id": 431660}, {"license": 3, "file_name": "000000193094.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000193094.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 00:53:40", "flickr_url": "http://farm1.staticflickr.com/33/39281983_814f4c859f_z.jpg", "id": 193094}, {"license": 2, "file_name": "000000386581.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000386581.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 10:28:48", "flickr_url": "http://farm4.staticflickr.com/3204/2787758449_7e73a405f7_z.jpg", "id": 386581}, {"license": 1, "file_name": "000000405121.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000405121.jpg", "height": 640, "width": 425, "date_captured": "2013-11-21 23:09:51", "flickr_url": "http://farm2.staticflickr.com/1170/1312542597_702588e658_z.jpg", "id": 405121}, {"license": 3, "file_name": "000000317153.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000317153.jpg", "height": 426, "width": 640, "date_captured": "2013-11-18 10:28:41", "flickr_url": "http://farm7.staticflickr.com/6223/6287900247_7235f5232b_z.jpg", "id": 317153}, {"license": 1, "file_name": "000000249531.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000249531.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 02:09:48", "flickr_url": "http://farm4.staticflickr.com/3803/9549415790_043eccface_z.jpg", "id": 249531}, {"license": 2, "file_name": "000000111759.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000111759.jpg", "height": 640, "width": 471, "date_captured": "2013-11-24 08:35:56", "flickr_url": "http://farm3.staticflickr.com/2586/3885470623_bc84631c22_z.jpg", "id": 111759}, {"license": 4, "file_name": "000000559270.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000559270.jpg", "height": 426, "width": 640, "date_captured": "2013-11-15 11:50:25", "flickr_url": "http://farm4.staticflickr.com/3572/3474938109_09510096a3_z.jpg", "id": 559270}, {"license": 2, "file_name": "000000564237.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000564237.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 19:49:02", "flickr_url": "http://farm3.staticflickr.com/2872/9589831413_d0dddcdbde_z.jpg", "id": 564237}, {"license": 1, "file_name": "000000020251.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000020251.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 11:50:53", "flickr_url": "http://farm6.staticflickr.com/5082/5255040351_b2b2ff9758_z.jpg", "id": 20251}, {"license": 5, "file_name": "000000198137.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000198137.jpg", "height": 640, "width": 428, "date_captured": "2013-11-15 01:56:55", "flickr_url": "http://farm4.staticflickr.com/3656/3672970126_d045cc8d41_z.jpg", "id": 198137}, {"license": 2, "file_name": "000000167647.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000167647.jpg", "height": 383, "width": 640, "date_captured": "2013-11-21 05:32:59", "flickr_url": "http://farm5.staticflickr.com/4095/4752938761_482cc8a588_z.jpg", "id": 167647}, {"license": 3, "file_name": "000000275432.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000275432.jpg", "height": 640, "width": 480, "date_captured": "2013-11-20 08:48:23", "flickr_url": "http://farm3.staticflickr.com/2280/2258863230_d2ea8e5a0d_z.jpg", "id": 275432}, {"license": 1, "file_name": "000000438232.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000438232.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 08:29:47", "flickr_url": "http://farm3.staticflickr.com/2889/9276117055_f44f688be2_z.jpg", "id": 438232}, {"license": 3, "file_name": "000000353009.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000353009.jpg", "height": 333, "width": 500, "date_captured": "2013-11-14 21:14:28", "flickr_url": "http://farm3.staticflickr.com/2405/2322757693_9bcb102ecb_z.jpg", "id": 353009}, {"license": 2, "file_name": "000000272804.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000272804.jpg", "height": 323, "width": 640, "date_captured": "2013-11-18 12:42:05", "flickr_url": "http://farm6.staticflickr.com/5462/9934987215_76bb209373_z.jpg", "id": 272804}, {"license": 3, "file_name": "000000575792.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000575792.jpg", "height": 420, "width": 640, "date_captured": "2013-11-19 20:04:01", "flickr_url": "http://farm9.staticflickr.com/8105/8518295866_ee5ef42abe_z.jpg", "id": 575792}, {"license": 4, "file_name": "000000241431.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000241431.jpg", "height": 640, "width": 608, "date_captured": "2013-11-20 00:32:44", "flickr_url": "http://farm8.staticflickr.com/7236/7179337304_49fce17855_z.jpg", "id": 241431}, {"license": 3, "file_name": "000000034579.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000034579.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 19:57:09", "flickr_url": "http://farm3.staticflickr.com/2173/1514286152_4347128432_z.jpg", "id": 34579}, {"license": 1, "file_name": "000000277961.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000277961.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 17:38:19", "flickr_url": "http://farm9.staticflickr.com/8149/7246379802_f554469cf8_z.jpg", "id": 277961}, {"license": 1, "file_name": "000000354761.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000354761.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 12:05:39", "flickr_url": "http://farm3.staticflickr.com/2225/2324987587_210c60148b_z.jpg", "id": 354761}, {"license": 3, "file_name": "000000215908.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000215908.jpg", "height": 500, "width": 367, "date_captured": "2013-11-24 05:28:19", "flickr_url": "http://farm4.staticflickr.com/3167/2461039158_3afe33835d_z.jpg", "id": 215908}, {"license": 3, "file_name": "000000577869.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000577869.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 05:36:06", "flickr_url": "http://farm9.staticflickr.com/8421/7794078568_fe4d2cb65a_z.jpg", "id": 577869}, {"license": 3, "file_name": "000000049853.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000049853.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 13:12:40", "flickr_url": "http://farm4.staticflickr.com/3030/2989151821_5feec8fdb8_z.jpg", "id": 49853}, {"license": 6, "file_name": "000000530571.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000530571.jpg", "height": 640, "width": 449, "date_captured": "2013-11-24 15:56:16", "flickr_url": "http://farm8.staticflickr.com/7091/7169829169_22b2a2b8c0_z.jpg", "id": 530571}, {"license": 1, "file_name": "000000560350.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000560350.jpg", "height": 282, "width": 500, "date_captured": "2013-11-22 18:38:39", "flickr_url": "http://farm4.staticflickr.com/3212/2372627228_f1d76bf04e_z.jpg", "id": 560350}, {"license": 4, "file_name": "000000187063.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000187063.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 15:58:11", "flickr_url": "http://farm5.staticflickr.com/4026/4346287137_fa50e1bb30_z.jpg", "id": 187063}, {"license": 1, "file_name": "000000384755.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000384755.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 16:17:02", "flickr_url": "http://farm1.staticflickr.com/166/348459582_141b616712_z.jpg", "id": 384755}, {"license": 4, "file_name": "000000158722.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000158722.jpg", "height": 640, "width": 480, "date_captured": "2013-11-19 20:01:17", "flickr_url": "http://farm9.staticflickr.com/8528/8631263260_233838c95e_z.jpg", "id": 158722}, {"license": 6, "file_name": "000000538990.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000538990.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 05:23:21", "flickr_url": "http://farm1.staticflickr.com/24/40075160_f79e51d63c_z.jpg", "id": 538990}, {"license": 5, "file_name": "000000246356.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000246356.jpg", "height": 331, "width": 500, "date_captured": "2013-11-18 05:21:44", "flickr_url": "http://farm4.staticflickr.com/3160/3076789813_c49d20b269_z.jpg", "id": 246356}, {"license": 1, "file_name": "000000196981.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000196981.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 22:10:36", "flickr_url": "http://farm1.staticflickr.com/216/497280727_08094b7a09_z.jpg", "id": 196981}, {"license": 2, "file_name": "000000192111.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000192111.jpg", "height": 640, "width": 640, "date_captured": "2013-11-17 09:15:47", "flickr_url": "http://farm5.staticflickr.com/4044/4599931044_d0e329102a_z.jpg", "id": 192111}, {"license": 2, "file_name": "000000221842.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000221842.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 03:35:16", "flickr_url": "http://farm6.staticflickr.com/5149/5608441307_7081ac8500_z.jpg", "id": 221842}, {"license": 2, "file_name": "000000041577.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000041577.jpg", "height": 640, "width": 480, "date_captured": "2013-11-23 00:55:40", "flickr_url": "http://farm9.staticflickr.com/8014/7149313933_5065afe443_z.jpg", "id": 41577}, {"license": 7, "file_name": "000000461530.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000461530.jpg", "height": 520, "width": 640, "date_captured": "2013-11-24 03:36:15", "flickr_url": "http://farm9.staticflickr.com/8025/7680417512_57fb0a8d8f_z.jpg", "id": 461530}, {"license": 2, "file_name": "000000340412.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000340412.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 22:56:08", "flickr_url": "http://farm4.staticflickr.com/3218/3011561403_b96da07557_z.jpg", "id": 340412}, {"license": 2, "file_name": "000000365663.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000365663.jpg", "height": 424, "width": 640, "date_captured": "2013-11-20 07:03:50", "flickr_url": "http://farm3.staticflickr.com/2426/3918660389_5d0acb8862_z.jpg", "id": 365663}, {"license": 1, "file_name": "000000105671.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000105671.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 04:26:31", "flickr_url": "http://farm5.staticflickr.com/4096/4935239101_af5b316dbe_z.jpg", "id": 105671}, {"license": 3, "file_name": "000000237514.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000237514.jpg", "height": 640, "width": 462, "date_captured": "2013-11-14 16:35:41", "flickr_url": "http://farm9.staticflickr.com/8091/8519442520_ceff4bcbc3_z.jpg", "id": 237514}, {"license": 3, "file_name": "000000210408.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000210408.jpg", "height": 640, "width": 640, "date_captured": "2013-11-18 21:01:52", "flickr_url": "http://farm9.staticflickr.com/8342/8206631992_239be26274_z.jpg", "id": 210408}, {"license": 3, "file_name": "000000465007.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000465007.jpg", "height": 500, "width": 375, "date_captured": "2013-11-20 21:57:24", "flickr_url": "http://farm1.staticflickr.com/29/42101823_82781f6b24_z.jpg", "id": 465007}, {"license": 4, "file_name": "000000537924.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000537924.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 02:12:08", "flickr_url": "http://farm9.staticflickr.com/8459/7893491746_7bf3ae4af7_z.jpg", "id": 537924}, {"license": 3, "file_name": "000000439838.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000439838.jpg", "height": 640, "width": 430, "date_captured": "2013-11-16 04:37:42", "flickr_url": "http://farm6.staticflickr.com/5204/5290142709_1b104ae017_z.jpg", "id": 439838}, {"license": 1, "file_name": "000000486568.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000486568.jpg", "height": 298, "width": 500, "date_captured": "2013-11-21 22:47:33", "flickr_url": "http://farm3.staticflickr.com/2168/1819246334_ffea67ea97_z.jpg", "id": 486568}, {"license": 3, "file_name": "000000393714.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000393714.jpg", "height": 500, "width": 219, "date_captured": "2013-11-24 06:58:21", "flickr_url": "http://farm4.staticflickr.com/3049/3031112429_70680a4425_z.jpg", "id": 393714}, {"license": 3, "file_name": "000000161289.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000161289.jpg", "height": 500, "width": 375, "date_captured": "2013-11-24 03:48:55", "flickr_url": "http://farm4.staticflickr.com/3532/3776352609_97ae8e3f20_z.jpg", "id": 161289}, {"license": 3, "file_name": "000000462123.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000462123.jpg", "height": 448, "width": 640, "date_captured": "2013-11-15 17:13:41", "flickr_url": "http://farm7.staticflickr.com/6144/5936480694_b4960671ff_z.jpg", "id": 462123}, {"license": 3, "file_name": "000000354277.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000354277.jpg", "height": 455, "width": 640, "date_captured": "2013-11-16 18:38:45", "flickr_url": "http://farm6.staticflickr.com/5284/5247458986_bfb3bde3ec_z.jpg", "id": 354277}, {"license": 6, "file_name": "000000418505.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000418505.jpg", "height": 428, "width": 640, "date_captured": "2013-11-21 21:34:06", "flickr_url": "http://farm9.staticflickr.com/8519/8462817261_ebe62c7600_z.jpg", "id": 418505}, {"license": 4, "file_name": "000000501358.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000501358.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 05:54:37", "flickr_url": "http://farm8.staticflickr.com/7319/9479352482_e593da1c28_z.jpg", "id": 501358}, {"license": 2, "file_name": "000000217191.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000217191.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 23:28:34", "flickr_url": "http://farm1.staticflickr.com/19/100258256_d2937a4479_z.jpg", "id": 217191}, {"license": 4, "file_name": "000000110484.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000110484.jpg", "height": 426, "width": 640, "date_captured": "2013-11-14 21:36:04", "flickr_url": "http://farm8.staticflickr.com/7227/7314512112_429e08a9fc_z.jpg", "id": 110484}, {"license": 2, "file_name": "000000315976.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000315976.jpg", "height": 612, "width": 612, "date_captured": "2013-11-16 21:16:29", "flickr_url": "http://farm4.staticflickr.com/3761/9251876382_395e5493da_z.jpg", "id": 315976}, {"license": 3, "file_name": "000000450318.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000450318.jpg", "height": 500, "width": 313, "date_captured": "2013-11-17 10:04:43", "flickr_url": "http://farm1.staticflickr.com/117/306317158_1a635b68f7_z.jpg", "id": 450318}, {"license": 4, "file_name": "000000236837.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000236837.jpg", "height": 360, "width": 640, "date_captured": "2013-11-17 08:54:39", "flickr_url": "http://farm4.staticflickr.com/3679/9114977526_7e3c9e4ab9_z.jpg", "id": 236837}, {"license": 2, "file_name": "000000294734.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000294734.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 06:05:56", "flickr_url": "http://farm4.staticflickr.com/3461/3265402570_94705eacac_z.jpg", "id": 294734}, {"license": 4, "file_name": "000000434193.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000434193.jpg", "height": 393, "width": 640, "date_captured": "2013-11-20 22:00:48", "flickr_url": "http://farm8.staticflickr.com/7201/6922775033_620f01794b_z.jpg", "id": 434193}, {"license": 3, "file_name": "000000522406.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000522406.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 08:20:12", "flickr_url": "http://farm7.staticflickr.com/6147/5939616288_b25e29f6c8_z.jpg", "id": 522406}, {"license": 3, "file_name": "000000090582.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000090582.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 20:09:03", "flickr_url": "http://farm1.staticflickr.com/36/90901756_d6fce0a18d_z.jpg", "id": 90582}, {"license": 3, "file_name": "000000118607.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000118607.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:07:35", "flickr_url": "http://farm1.staticflickr.com/192/502826051_cb269ecb2c_z.jpg", "id": 118607}, {"license": 1, "file_name": "000000050924.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000050924.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 22:19:16", "flickr_url": "http://farm9.staticflickr.com/8239/8484170032_2fe2de2a4e_z.jpg", "id": 50924}, {"license": 6, "file_name": "000000149863.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000149863.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 00:43:54", "flickr_url": "http://farm7.staticflickr.com/6074/6118250194_dc9ce78840_z.jpg", "id": 149863}, {"license": 1, "file_name": "000000066003.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000066003.jpg", "height": 640, "width": 630, "date_captured": "2013-11-23 04:54:15", "flickr_url": "http://farm2.staticflickr.com/1349/1445700574_71d43fce41_z.jpg", "id": 66003}, {"license": 1, "file_name": "000000564095.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000564095.jpg", "height": 479, "width": 640, "date_captured": "2013-11-20 19:34:34", "flickr_url": "http://farm1.staticflickr.com/105/279270386_205d3e9df1_z.jpg", "id": 564095}, {"license": 3, "file_name": "000000408829.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000408829.jpg", "height": 428, "width": 640, "date_captured": "2013-11-15 03:21:16", "flickr_url": "http://farm4.staticflickr.com/3435/3268001458_b8b5fcc52a_z.jpg", "id": 408829}, {"license": 2, "file_name": "000000579533.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000579533.jpg", "height": 457, "width": 640, "date_captured": "2013-11-18 02:19:11", "flickr_url": "http://farm8.staticflickr.com/7319/8735605303_6ddccb29af_z.jpg", "id": 579533}, {"license": 6, "file_name": "000000241076.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000241076.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 21:35:40", "flickr_url": "http://farm6.staticflickr.com/5341/9108877160_b796980c6c_z.jpg", "id": 241076}, {"license": 1, "file_name": "000000392725.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000392725.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 21:07:50", "flickr_url": "http://farm8.staticflickr.com/7378/9547091334_f0f12ff010_z.jpg", "id": 392725}, {"license": 1, "file_name": "000000180571.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000180571.jpg", "height": 640, "width": 480, "date_captured": "2013-11-14 23:51:52", "flickr_url": "http://farm4.staticflickr.com/3491/3892220756_703eb855ef_z.jpg", "id": 180571}, {"license": 3, "file_name": "000000536972.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000536972.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 16:54:59", "flickr_url": "http://farm3.staticflickr.com/2772/4233667575_ae3125df0f_z.jpg", "id": 536972}, {"license": 3, "file_name": "000000429113.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000429113.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 23:55:31", "flickr_url": "http://farm6.staticflickr.com/5179/5403903820_d47df888d1_z.jpg", "id": 429113}, {"license": 3, "file_name": "000000269986.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000269986.jpg", "height": 417, "width": 640, "date_captured": "2013-11-18 10:40:45", "flickr_url": "http://farm7.staticflickr.com/6022/5882283987_f7256e43bf_z.jpg", "id": 269986}, {"license": 3, "file_name": "000000114540.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000114540.jpg", "height": 633, "width": 640, "date_captured": "2013-11-14 22:58:35", "flickr_url": "http://farm6.staticflickr.com/5148/5688452580_56579bf5a2_z.jpg", "id": 114540}, {"license": 3, "file_name": "000000422193.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000422193.jpg", "height": 640, "width": 478, "date_captured": "2013-11-21 20:20:22", "flickr_url": "http://farm6.staticflickr.com/5169/5349738726_2e06c52d1e_z.jpg", "id": 422193}, {"license": 5, "file_name": "000000245441.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000245441.jpg", "height": 408, "width": 640, "date_captured": "2013-11-17 06:12:31", "flickr_url": "http://farm3.staticflickr.com/2832/10174780906_c9aba60d90_z.jpg", "id": 245441}, {"license": 1, "file_name": "000000383605.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000383605.jpg", "height": 424, "width": 640, "date_captured": "2013-11-23 00:47:00", "flickr_url": "http://farm9.staticflickr.com/8151/7408968108_65ab48417a_z.jpg", "id": 383605}, {"license": 5, "file_name": "000000334097.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000334097.jpg", "height": 640, "width": 359, "date_captured": "2013-11-17 03:18:11", "flickr_url": "http://farm5.staticflickr.com/4141/4795910922_f177c471f7_z.jpg", "id": 334097}, {"license": 3, "file_name": "000000567318.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000567318.jpg", "height": 640, "width": 640, "date_captured": "2013-11-18 20:59:26", "flickr_url": "http://farm8.staticflickr.com/7060/6863345379_a45106d319_z.jpg", "id": 567318}, {"license": 1, "file_name": "000000423114.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000423114.jpg", "height": 359, "width": 640, "date_captured": "2013-11-16 18:09:46", "flickr_url": "http://farm6.staticflickr.com/5147/5878424853_969bfd49d0_z.jpg", "id": 423114}, {"license": 5, "file_name": "000000501625.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000501625.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 01:45:37", "flickr_url": "http://farm9.staticflickr.com/8081/8399534380_04a9e5b5d9_z.jpg", "id": 501625}, {"license": 3, "file_name": "000000427133.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000427133.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 13:37:29", "flickr_url": "http://farm8.staticflickr.com/7046/6808629940_db7da07bf4_z.jpg", "id": 427133}, {"license": 6, "file_name": "000000318509.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000318509.jpg", "height": 425, "width": 640, "date_captured": "2013-11-20 18:27:33", "flickr_url": "http://farm3.staticflickr.com/2847/9670877001_a1f29218fc_z.jpg", "id": 318509}, {"license": 4, "file_name": "000000205931.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000205931.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 10:59:00", "flickr_url": "http://farm4.staticflickr.com/3127/5847876466_ca92091af2_z.jpg", "id": 205931}, {"license": 1, "file_name": "000000310493.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000310493.jpg", "height": 333, "width": 500, "date_captured": "2013-11-24 21:05:09", "flickr_url": "http://farm3.staticflickr.com/2204/2358862599_1beeb90039_z.jpg", "id": 310493}, {"license": 2, "file_name": "000000016125.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000016125.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 20:12:18", "flickr_url": "http://farm8.staticflickr.com/7277/8163018396_30967a163a_z.jpg", "id": 16125}, {"license": 3, "file_name": "000000223454.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000223454.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 03:21:09", "flickr_url": "http://farm9.staticflickr.com/8225/8492900898_0c1ca6762e_z.jpg", "id": 223454}, {"license": 4, "file_name": "000000059542.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000059542.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 22:24:57", "flickr_url": "http://farm9.staticflickr.com/8007/7417649156_49d4151d9f_z.jpg", "id": 59542}, {"license": 3, "file_name": "000000506515.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000506515.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 00:50:07", "flickr_url": "http://farm6.staticflickr.com/5169/5327254325_0dfeef5aef_z.jpg", "id": 506515}, {"license": 4, "file_name": "000000214655.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000214655.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 08:36:49", "flickr_url": "http://farm2.staticflickr.com/1160/5153774455_442ae87079_z.jpg", "id": 214655}, {"license": 3, "file_name": "000000419141.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000419141.jpg", "height": 423, "width": 640, "date_captured": "2013-11-18 15:10:42", "flickr_url": "http://farm2.staticflickr.com/1020/543281106_3f16ffc78b_z.jpg", "id": 419141}, {"license": 1, "file_name": "000000265532.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000265532.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 07:21:51", "flickr_url": "http://farm4.staticflickr.com/3253/2756210794_e0c5b9ef7a_z.jpg", "id": 265532}, {"license": 1, "file_name": "000000431014.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000431014.jpg", "height": 612, "width": 612, "date_captured": "2013-11-14 21:54:20", "flickr_url": "http://farm6.staticflickr.com/5327/7177559858_798c0484e8_z.jpg", "id": 431014}, {"license": 3, "file_name": "000000353866.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000353866.jpg", "height": 290, "width": 500, "date_captured": "2013-11-17 03:03:42", "flickr_url": "http://farm3.staticflickr.com/2767/4286741645_14fac7052f_z.jpg", "id": 353866}, {"license": 1, "file_name": "000000280888.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000280888.jpg", "height": 425, "width": 640, "date_captured": "2013-11-20 17:54:04", "flickr_url": "http://farm8.staticflickr.com/7397/10037405664_0e7ac8652d_z.jpg", "id": 280888}, {"license": 1, "file_name": "000000067961.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000067961.jpg", "height": 426, "width": 640, "date_captured": "2013-11-19 22:57:14", "flickr_url": "http://farm5.staticflickr.com/4025/4498363711_12f8f7eef6_z.jpg", "id": 67961}, {"license": 2, "file_name": "000000154140.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000154140.jpg", "height": 500, "width": 375, "date_captured": "2013-11-15 15:40:36", "flickr_url": "http://farm4.staticflickr.com/3173/2446569729_117484edc7_z.jpg", "id": 154140}, {"license": 1, "file_name": "000000207463.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000207463.jpg", "height": 375, "width": 500, "date_captured": "2013-11-21 19:52:07", "flickr_url": "http://farm4.staticflickr.com/3337/3557395897_07a254816c_z.jpg", "id": 207463}, {"license": 3, "file_name": "000000289095.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000289095.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 13:48:02", "flickr_url": "http://farm4.staticflickr.com/3108/3163445617_d77c855165_z.jpg", "id": 289095}, {"license": 3, "file_name": "000000395040.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000395040.jpg", "height": 425, "width": 640, "date_captured": "2013-11-19 18:17:41", "flickr_url": "http://farm9.staticflickr.com/8376/8593609212_630fabc12d_z.jpg", "id": 395040}, {"license": 4, "file_name": "000000518110.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000518110.jpg", "height": 428, "width": 640, "date_captured": "2013-11-18 11:51:03", "flickr_url": "http://farm5.staticflickr.com/4095/4811039128_ac99dba4fe_z.jpg", "id": 518110}, {"license": 3, "file_name": "000000314944.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000314944.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 09:24:43", "flickr_url": "http://farm1.staticflickr.com/188/389742697_a72e9f0d3e_z.jpg", "id": 314944}, {"license": 1, "file_name": "000000209041.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000209041.jpg", "height": 500, "width": 375, "date_captured": "2013-11-23 19:55:00", "flickr_url": "http://farm1.staticflickr.com/214/472984351_ca85e08158_z.jpg", "id": 209041}, {"license": 3, "file_name": "000000557323.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000557323.jpg", "height": 494, "width": 640, "date_captured": "2013-11-20 22:07:08", "flickr_url": "http://farm8.staticflickr.com/7121/7673318062_f4828eb483_z.jpg", "id": 557323}, {"license": 1, "file_name": "000000521400.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000521400.jpg", "height": 640, "width": 427, "date_captured": "2013-11-21 02:53:57", "flickr_url": "http://farm9.staticflickr.com/8037/8067094921_751abf7978_z.jpg", "id": 521400}, {"license": 1, "file_name": "000000231374.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000231374.jpg", "height": 640, "width": 427, "date_captured": "2013-11-17 19:16:21", "flickr_url": "http://farm5.staticflickr.com/4053/4365099679_6a54a5ef2e_z.jpg", "id": 231374}, {"license": 1, "file_name": "000000382406.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000382406.jpg", "height": 413, "width": 640, "date_captured": "2013-11-15 08:03:55", "flickr_url": "http://farm3.staticflickr.com/2291/2392526741_f0f7b6f5e7_z.jpg", "id": 382406}, {"license": 1, "file_name": "000000285568.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000285568.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 11:42:28", "flickr_url": "http://farm4.staticflickr.com/3602/3598639595_ddb49c078c_z.jpg", "id": 285568}, {"license": 1, "file_name": "000000510979.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000510979.jpg", "height": 478, "width": 640, "date_captured": "2013-11-24 22:22:18", "flickr_url": "http://farm4.staticflickr.com/3776/10282188013_449bf6d6c4_z.jpg", "id": 510979}, {"license": 3, "file_name": "000000398949.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000398949.jpg", "height": 500, "width": 375, "date_captured": "2013-11-20 07:31:20", "flickr_url": "http://farm2.staticflickr.com/1292/561388933_bfea1fa851_z.jpg", "id": 398949}, {"license": 4, "file_name": "000000579659.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000579659.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 21:58:22", "flickr_url": "http://farm9.staticflickr.com/8319/7960131502_3160a7f683_z.jpg", "id": 579659}, {"license": 1, "file_name": "000000561406.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000561406.jpg", "height": 480, "width": 640, "date_captured": "2013-11-25 14:28:05", "flickr_url": "http://farm8.staticflickr.com/7329/9531578603_0383679193_z.jpg", "id": 561406}, {"license": 1, "file_name": "000000050404.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000050404.jpg", "height": 640, "width": 480, "date_captured": "2013-11-15 13:50:15", "flickr_url": "http://farm5.staticflickr.com/4058/4631670827_3fbe455e47_z.jpg", "id": 50404}, {"license": 1, "file_name": "000000064492.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000064492.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 23:30:47", "flickr_url": "http://farm6.staticflickr.com/5444/8757036796_c06b3c32d9_z.jpg", "id": 64492}, {"license": 3, "file_name": "000000363326.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000363326.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 02:16:02", "flickr_url": "http://farm6.staticflickr.com/5219/5446646119_a5f8d261c3_z.jpg", "id": 363326}, {"license": 4, "file_name": "000000401816.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000401816.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 03:39:02", "flickr_url": "http://farm9.staticflickr.com/8187/8390868214_66865af19c_z.jpg", "id": 401816}, {"license": 1, "file_name": "000000456653.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000456653.jpg", "height": 441, "width": 640, "date_captured": "2013-11-18 14:24:37", "flickr_url": "http://farm1.staticflickr.com/32/53152552_d5b0522df7_z.jpg", "id": 456653}, {"license": 2, "file_name": "000000314126.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000314126.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 10:51:55", "flickr_url": "http://farm5.staticflickr.com/4025/4670667930_16fba53090_z.jpg", "id": 314126}, {"license": 4, "file_name": "000000036113.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000036113.jpg", "height": 421, "width": 640, "date_captured": "2013-11-19 19:35:33", "flickr_url": "http://farm5.staticflickr.com/4154/4947516012_f089f1ff3a_z.jpg", "id": 36113}, {"license": 5, "file_name": "000000445041.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000445041.jpg", "height": 500, "width": 482, "date_captured": "2013-11-24 09:01:43", "flickr_url": "http://farm3.staticflickr.com/2325/2490659581_fc13c83803_z.jpg", "id": 445041}, {"license": 4, "file_name": "000000237495.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000237495.jpg", "height": 425, "width": 640, "date_captured": "2013-11-17 17:52:07", "flickr_url": "http://farm3.staticflickr.com/2824/9184171559_12b2cd1698_z.jpg", "id": 237495}, {"license": 4, "file_name": "000000013000.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000013000.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 05:08:12", "flickr_url": "http://farm8.staticflickr.com/7353/9939943004_4244bc59c3_z.jpg", "id": 13000}, {"license": 4, "file_name": "000000024730.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000024730.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 00:00:29", "flickr_url": "http://farm5.staticflickr.com/4019/4467816773_a4b62dda92_z.jpg", "id": 24730}, {"license": 3, "file_name": "000000417832.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000417832.jpg", "height": 640, "width": 428, "date_captured": "2013-11-24 21:03:46", "flickr_url": "http://farm3.staticflickr.com/2715/4300584172_2e1166b9f4_z.jpg", "id": 417832}, {"license": 1, "file_name": "000000157405.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000157405.jpg", "height": 640, "width": 361, "date_captured": "2013-11-17 17:42:38", "flickr_url": "http://farm4.staticflickr.com/3554/3349325911_3429783a1e_z.jpg", "id": 157405}, {"license": 3, "file_name": "000000359710.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000359710.jpg", "height": 333, "width": 500, "date_captured": "2013-11-18 06:04:37", "flickr_url": "http://farm3.staticflickr.com/2276/1626419065_0c91894d5f_z.jpg", "id": 359710}, {"license": 3, "file_name": "000000203847.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000203847.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 19:30:12", "flickr_url": "http://farm5.staticflickr.com/4120/4744899298_20bd3608ea_z.jpg", "id": 203847}, {"license": 6, "file_name": "000000445214.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000445214.jpg", "height": 500, "width": 380, "date_captured": "2013-11-15 21:33:57", "flickr_url": "http://farm1.staticflickr.com/12/19116828_e61055cfd6_z.jpg", "id": 445214}, {"license": 1, "file_name": "000000019789.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000019789.jpg", "height": 640, "width": 427, "date_captured": "2013-11-21 04:33:08", "flickr_url": "http://farm4.staticflickr.com/3046/5769227641_43cd9391b3_z.jpg", "id": 19789}, {"license": 2, "file_name": "000000566166.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000566166.jpg", "height": 424, "width": 640, "date_captured": "2013-11-18 04:37:14", "flickr_url": "http://farm9.staticflickr.com/8514/8599546146_978f59b68a_z.jpg", "id": 566166}, {"license": 1, "file_name": "000000429042.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000429042.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 14:12:12", "flickr_url": "http://farm1.staticflickr.com/23/24548615_b27793a37c_z.jpg", "id": 429042}, {"license": 1, "file_name": "000000373381.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000373381.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 23:06:06", "flickr_url": "http://farm3.staticflickr.com/2621/4123631509_88bb557909_z.jpg", "id": 373381}, {"license": 3, "file_name": "000000240418.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000240418.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 22:56:55", "flickr_url": "http://farm7.staticflickr.com/6080/6044098819_b0af0e7596_z.jpg", "id": 240418}, {"license": 1, "file_name": "000000441419.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000441419.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 06:08:30", "flickr_url": "http://farm1.staticflickr.com/61/197695873_e3ed2a2ae6_z.jpg", "id": 441419}, {"license": 1, "file_name": "000000211622.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000211622.jpg", "height": 480, "width": 640, "date_captured": "2013-11-25 21:27:17", "flickr_url": "http://farm1.staticflickr.com/53/173074571_bc1c86c2f0_z.jpg", "id": 211622}, {"license": 6, "file_name": "000000003366.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000003366.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 01:31:30", "flickr_url": "http://farm4.staticflickr.com/3813/9213521198_1ec212f4d7_z.jpg", "id": 3366}, {"license": 1, "file_name": "000000168001.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000168001.jpg", "height": 428, "width": 640, "date_captured": "2013-11-18 19:49:10", "flickr_url": "http://farm9.staticflickr.com/8529/8607270995_a5e399cb8c_z.jpg", "id": 168001}, {"license": 2, "file_name": "000000212181.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000212181.jpg", "height": 640, "width": 427, "date_captured": "2013-11-14 22:18:13", "flickr_url": "http://farm3.staticflickr.com/2426/3630361740_570152f8d4_z.jpg", "id": 212181}, {"license": 2, "file_name": "000000191173.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000191173.jpg", "height": 361, "width": 640, "date_captured": "2013-11-15 12:53:56", "flickr_url": "http://farm4.staticflickr.com/3231/2461968697_20a1a90523_z.jpg", "id": 191173}, {"license": 3, "file_name": "000000575421.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000575421.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 03:05:07", "flickr_url": "http://farm8.staticflickr.com/7020/6849328461_5ca6d06626_z.jpg", "id": 575421}, {"license": 2, "file_name": "000000132953.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000132953.jpg", "height": 360, "width": 640, "date_captured": "2013-11-20 18:19:08", "flickr_url": "http://farm4.staticflickr.com/3194/2668598327_ec0be92afb_z.jpg", "id": 132953}, {"license": 2, "file_name": "000000437373.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000437373.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 04:35:49", "flickr_url": "http://farm4.staticflickr.com/3794/9824177955_07f09844e3_z.jpg", "id": 437373}, {"license": 2, "file_name": "000000123722.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000123722.jpg", "height": 640, "width": 480, "date_captured": "2013-11-14 23:46:07", "flickr_url": "http://farm4.staticflickr.com/3591/3487312584_171dd7c469_z.jpg", "id": 123722}, {"license": 1, "file_name": "000000354718.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000354718.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 17:56:50", "flickr_url": "http://farm4.staticflickr.com/3698/9077606586_0b4152e188_z.jpg", "id": 354718}, {"license": 4, "file_name": "000000263275.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000263275.jpg", "height": 500, "width": 301, "date_captured": "2013-11-20 08:48:54", "flickr_url": "http://farm3.staticflickr.com/2359/1973261179_291e25a581_z.jpg", "id": 263275}, {"license": 1, "file_name": "000000021989.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000021989.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 19:46:40", "flickr_url": "http://farm9.staticflickr.com/8121/8618785239_4f8ebb1a44_z.jpg", "id": 21989}, {"license": 3, "file_name": "000000205309.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000205309.jpg", "height": 458, "width": 640, "date_captured": "2013-11-21 19:55:30", "flickr_url": "http://farm1.staticflickr.com/179/381084055_951f3c78e9_z.jpg", "id": 205309}, {"license": 5, "file_name": "000000527618.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000527618.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 18:05:27", "flickr_url": "http://farm6.staticflickr.com/5196/5896334344_b9434fb5e4_z.jpg", "id": 527618}, {"license": 4, "file_name": "000000373189.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000373189.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 00:17:39", "flickr_url": "http://farm8.staticflickr.com/7332/9075797883_162de49b6a_z.jpg", "id": 373189}, {"license": 2, "file_name": "000000255604.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000255604.jpg", "height": 360, "width": 640, "date_captured": "2013-11-15 04:25:05", "flickr_url": "http://farm9.staticflickr.com/8398/8633584452_8cb53543cb_z.jpg", "id": 255604}, {"license": 4, "file_name": "000000454437.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000454437.jpg", "height": 640, "width": 640, "date_captured": "2013-11-20 17:29:25", "flickr_url": "http://farm3.staticflickr.com/2325/2270149337_ee1ed2bbaa_z.jpg", "id": 454437}, {"license": 1, "file_name": "000000260011.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000260011.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 21:51:57", "flickr_url": "http://farm1.staticflickr.com/114/308654097_0818e6a23e_z.jpg", "id": 260011}, {"license": 3, "file_name": "000000516300.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000516300.jpg", "height": 640, "width": 426, "date_captured": "2013-11-24 18:31:15", "flickr_url": "http://farm2.staticflickr.com/1380/874240238_29a858a15d_z.jpg", "id": 516300}, {"license": 1, "file_name": "000000512788.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000512788.jpg", "height": 640, "width": 480, "date_captured": "2013-11-15 15:36:42", "flickr_url": "http://farm4.staticflickr.com/3542/3383100875_430fc7e21a_z.jpg", "id": 512788}, {"license": 3, "file_name": "000000319704.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000319704.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 08:28:32", "flickr_url": "http://farm1.staticflickr.com/235/457752121_445a9fedfe_z.jpg", "id": 319704}, {"license": 1, "file_name": "000000408288.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000408288.jpg", "height": 640, "width": 486, "date_captured": "2013-11-20 22:03:11", "flickr_url": "http://farm8.staticflickr.com/7052/6924540519_99d89f58b1_z.jpg", "id": 408288}, {"license": 3, "file_name": "000000077841.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000077841.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 23:08:52", "flickr_url": "http://farm2.staticflickr.com/1324/1028686521_8685ecbfcb_z.jpg", "id": 77841}, {"license": 2, "file_name": "000000263098.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000263098.jpg", "height": 432, "width": 640, "date_captured": "2013-11-24 22:06:35", "flickr_url": "http://farm1.staticflickr.com/83/212536112_baff47525c_z.jpg", "id": 263098}, {"license": 5, "file_name": "000000415946.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000415946.jpg", "height": 640, "width": 424, "date_captured": "2013-11-19 23:36:51", "flickr_url": "http://farm5.staticflickr.com/4101/4849574663_e989ef7d42_z.jpg", "id": 415946}, {"license": 5, "file_name": "000000507166.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000507166.jpg", "height": 640, "width": 450, "date_captured": "2013-11-18 03:11:06", "flickr_url": "http://farm7.staticflickr.com/6101/6318282713_b8f1b2af07_z.jpg", "id": 507166}, {"license": 3, "file_name": "000000410272.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000410272.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 17:28:47", "flickr_url": "http://farm8.staticflickr.com/7295/9794636944_714b073d8d_z.jpg", "id": 410272}, {"license": 1, "file_name": "000000578519.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000578519.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 04:47:39", "flickr_url": "http://farm3.staticflickr.com/2800/4145807911_19c75a9842_z.jpg", "id": 578519}, {"license": 4, "file_name": "000000221328.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000221328.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 07:14:25", "flickr_url": "http://farm6.staticflickr.com/5236/5911652454_2b661965cc_z.jpg", "id": 221328}, {"license": 4, "file_name": "000000570023.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000570023.jpg", "height": 640, "width": 424, "date_captured": "2013-11-17 10:37:25", "flickr_url": "http://farm9.staticflickr.com/8265/8666973824_635ab64ee7_z.jpg", "id": 570023}, {"license": 1, "file_name": "000000382979.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000382979.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:39:36", "flickr_url": "http://farm3.staticflickr.com/2664/3767661262_958b384e14_z.jpg", "id": 382979}, {"license": 3, "file_name": "000000509702.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000509702.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 05:23:45", "flickr_url": "http://farm3.staticflickr.com/2540/5803280909_60b302b9b6_z.jpg", "id": 509702}, {"license": 3, "file_name": "000000452088.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000452088.jpg", "height": 640, "width": 425, "date_captured": "2013-11-16 03:41:14", "flickr_url": "http://farm6.staticflickr.com/5103/5758791879_93eec55f58_z.jpg", "id": 452088}, {"license": 2, "file_name": "000000483948.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000483948.jpg", "height": 428, "width": 640, "date_captured": "2013-11-18 13:40:05", "flickr_url": "http://farm2.staticflickr.com/1090/752378018_5bce2b1220_z.jpg", "id": 483948}, {"license": 4, "file_name": "000000433397.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000433397.jpg", "height": 640, "width": 449, "date_captured": "2013-11-24 00:08:19", "flickr_url": "http://farm8.staticflickr.com/7008/6556429925_ea3e43538e_z.jpg", "id": 433397}, {"license": 1, "file_name": "000000069906.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000069906.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 19:59:18", "flickr_url": "http://farm4.staticflickr.com/3252/3131724126_586fc06082_z.jpg", "id": 69906}, {"license": 2, "file_name": "000000046526.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000046526.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 09:29:03", "flickr_url": "http://farm9.staticflickr.com/8264/8939958787_b2513cce68_z.jpg", "id": 46526}, {"license": 4, "file_name": "000000139605.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000139605.jpg", "height": 333, "width": 500, "date_captured": "2013-11-18 02:39:58", "flickr_url": "http://farm2.staticflickr.com/1331/560553988_bb9d103282_z.jpg", "id": 139605}, {"license": 5, "file_name": "000000546466.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000546466.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 15:04:33", "flickr_url": "http://farm3.staticflickr.com/2870/9630244957_e23c6f79e7_z.jpg", "id": 546466}, {"license": 5, "file_name": "000000484617.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000484617.jpg", "height": 426, "width": 640, "date_captured": "2013-11-17 19:00:47", "flickr_url": "http://farm3.staticflickr.com/2156/2379726526_d352749370_z.jpg", "id": 484617}, {"license": 2, "file_name": "000000034356.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000034356.jpg", "height": 544, "width": 640, "date_captured": "2013-11-18 11:38:37", "flickr_url": "http://farm5.staticflickr.com/4018/4255669122_43f617a225_z.jpg", "id": 34356}, {"license": 3, "file_name": "000000423618.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000423618.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 06:16:07", "flickr_url": "http://farm4.staticflickr.com/3083/3156395010_ed987b7277_z.jpg", "id": 423618}, {"license": 1, "file_name": "000000456433.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000456433.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 19:05:46", "flickr_url": "http://farm8.staticflickr.com/7137/7033150437_a3430b047e_z.jpg", "id": 456433}, {"license": 4, "file_name": "000000353412.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000353412.jpg", "height": 640, "width": 480, "date_captured": "2013-11-19 22:09:59", "flickr_url": "http://farm6.staticflickr.com/5342/9222028775_e09aab52f4_z.jpg", "id": 353412}, {"license": 3, "file_name": "000000217636.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000217636.jpg", "height": 425, "width": 640, "date_captured": "2013-11-15 00:15:53", "flickr_url": "http://farm7.staticflickr.com/6236/6316932524_16dc3f8e89_z.jpg", "id": 217636}, {"license": 4, "file_name": "000000112719.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000112719.jpg", "height": 640, "width": 640, "date_captured": "2013-11-17 16:25:39", "flickr_url": "http://farm4.staticflickr.com/3650/3367248342_2117b7f954_z.jpg", "id": 112719}, {"license": 3, "file_name": "000000176587.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000176587.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 22:40:26", "flickr_url": "http://farm8.staticflickr.com/7316/9571685671_bf9a844707_z.jpg", "id": 176587}, {"license": 3, "file_name": "000000446331.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000446331.jpg", "height": 472, "width": 640, "date_captured": "2013-11-19 22:14:59", "flickr_url": "http://farm6.staticflickr.com/5300/5543800317_9a18b7f610_z.jpg", "id": 446331}, {"license": 1, "file_name": "000000162882.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000162882.jpg", "height": 450, "width": 600, "date_captured": "2013-11-19 21:50:32", "flickr_url": "http://farm7.staticflickr.com/6187/6093797196_23475a3fd3_z.jpg", "id": 162882}, {"license": 1, "file_name": "000000285022.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000285022.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 20:09:02", "flickr_url": "http://farm9.staticflickr.com/8236/8461997553_79a8d88116_z.jpg", "id": 285022}, {"license": 6, "file_name": "000000359098.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000359098.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 01:30:43", "flickr_url": "http://farm5.staticflickr.com/4044/4260714990_1e62438ea4_z.jpg", "id": 359098}, {"license": 3, "file_name": "000000014812.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000014812.jpg", "height": 426, "width": 640, "date_captured": "2013-11-21 20:09:27", "flickr_url": "http://farm4.staticflickr.com/3197/3024848047_7a90ec2df7_z.jpg", "id": 14812}, {"license": 1, "file_name": "000000503790.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000503790.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 19:24:16", "flickr_url": "http://farm8.staticflickr.com/7272/7672668522_b822ed0b75_z.jpg", "id": 503790}, {"license": 3, "file_name": "000000278203.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000278203.jpg", "height": 640, "width": 383, "date_captured": "2013-11-19 18:34:17", "flickr_url": "http://farm8.staticflickr.com/7031/6691755605_d01f3d0037_z.jpg", "id": 278203}, {"license": 5, "file_name": "000000416047.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000416047.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 20:31:11", "flickr_url": "http://farm4.staticflickr.com/3361/3445330319_4c8c02857d_z.jpg", "id": 416047}, {"license": 3, "file_name": "000000460676.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000460676.jpg", "height": 409, "width": 286, "date_captured": "2013-11-21 05:40:54", "flickr_url": "http://farm3.staticflickr.com/2757/4403142519_4b1f45e1e4_z.jpg", "id": 460676}, {"license": 1, "file_name": "000000084653.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000084653.jpg", "height": 323, "width": 500, "date_captured": "2013-11-22 23:20:03", "flickr_url": "http://farm3.staticflickr.com/2253/2481464774_4ac8abe15d_z.jpg", "id": 84653}, {"license": 1, "file_name": "000000296816.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000296816.jpg", "height": 640, "width": 480, "date_captured": "2013-11-16 16:46:44", "flickr_url": "http://farm9.staticflickr.com/8227/8478983448_c65ea4b1b5_z.jpg", "id": 296816}, {"license": 5, "file_name": "000000471175.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000471175.jpg", "height": 427, "width": 640, "date_captured": "2013-11-14 17:34:23", "flickr_url": "http://farm5.staticflickr.com/4098/4737271123_7995ba705f_z.jpg", "id": 471175}, {"license": 3, "file_name": "000000369913.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000369913.jpg", "height": 500, "width": 440, "date_captured": "2013-11-14 17:15:58", "flickr_url": "http://farm1.staticflickr.com/36/73973328_d207fb03a5_z.jpg", "id": 369913}, {"license": 6, "file_name": "000000422341.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000422341.jpg", "height": 422, "width": 640, "date_captured": "2013-11-20 20:29:19", "flickr_url": "http://farm9.staticflickr.com/8206/8233595781_cec9a6a59c_z.jpg", "id": 422341}, {"license": 3, "file_name": "000000297764.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000297764.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 20:26:25", "flickr_url": "http://farm8.staticflickr.com/7011/6742327403_213766876f_z.jpg", "id": 297764}, {"license": 2, "file_name": "000000157923.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000157923.jpg", "height": 416, "width": 640, "date_captured": "2013-11-17 03:56:55", "flickr_url": "http://farm1.staticflickr.com/23/24620857_6bd1dab169_z.jpg", "id": 157923}, {"license": 3, "file_name": "000000288659.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000288659.jpg", "height": 451, "width": 640, "date_captured": "2013-11-20 01:05:10", "flickr_url": "http://farm8.staticflickr.com/7278/7429188526_a21d8573ca_z.jpg", "id": 288659}, {"license": 3, "file_name": "000000561795.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000561795.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 18:29:22", "flickr_url": "http://farm9.staticflickr.com/8404/8622444792_15497e00dd_z.jpg", "id": 561795}, {"license": 3, "file_name": "000000560819.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000560819.jpg", "height": 519, "width": 640, "date_captured": "2013-11-21 02:03:18", "flickr_url": "http://farm4.staticflickr.com/3737/9650692891_052bb47329_z.jpg", "id": 560819}, {"license": 5, "file_name": "000000279401.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000279401.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 23:07:23", "flickr_url": "http://farm6.staticflickr.com/5250/5344359152_6c8d43ac13_z.jpg", "id": 279401}, {"license": 3, "file_name": "000000231503.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000231503.jpg", "height": 500, "width": 375, "date_captured": "2013-11-17 01:29:50", "flickr_url": "http://farm1.staticflickr.com/46/194232590_9b165490ae_z.jpg", "id": 231503}, {"license": 1, "file_name": "000000476575.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000476575.jpg", "height": 240, "width": 320, "date_captured": "2013-11-22 19:42:27", "flickr_url": "http://farm1.staticflickr.com/152/411938571_4f03b57957_z.jpg", "id": 476575}, {"license": 4, "file_name": "000000231996.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000231996.jpg", "height": 429, "width": 640, "date_captured": "2013-11-21 01:51:22", "flickr_url": "http://farm9.staticflickr.com/8249/8456921254_4e6dd1801f_z.jpg", "id": 231996}, {"license": 5, "file_name": "000000432967.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000432967.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 00:24:11", "flickr_url": "http://farm3.staticflickr.com/2604/4036410286_cd71f12503_z.jpg", "id": 432967}, {"license": 2, "file_name": "000000157417.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000157417.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 21:30:44", "flickr_url": "http://farm8.staticflickr.com/7145/6621737183_71a558af72_z.jpg", "id": 157417}, {"license": 3, "file_name": "000000216075.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000216075.jpg", "height": 500, "width": 333, "date_captured": "2013-11-20 09:15:35", "flickr_url": "http://farm4.staticflickr.com/3465/3242684448_b3d6f66186_z.jpg", "id": 216075}, {"license": 1, "file_name": "000000203876.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000203876.jpg", "height": 333, "width": 500, "date_captured": "2013-11-20 15:11:39", "flickr_url": "http://farm1.staticflickr.com/20/73962908_3693c01c20_z.jpg", "id": 203876}, {"license": 3, "file_name": "000000262862.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000262862.jpg", "height": 426, "width": 640, "date_captured": "2013-11-14 12:27:20", "flickr_url": "http://farm2.staticflickr.com/1157/596770426_02e7d7c175_z.jpg", "id": 262862}, {"license": 2, "file_name": "000000059406.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000059406.jpg", "height": 512, "width": 640, "date_captured": "2013-11-18 11:29:22", "flickr_url": "http://farm8.staticflickr.com/7203/6972369459_f048de7ae3_z.jpg", "id": 59406}, {"license": 3, "file_name": "000000562845.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000562845.jpg", "height": 359, "width": 500, "date_captured": "2013-11-18 13:01:32", "flickr_url": "http://farm4.staticflickr.com/3038/2781412432_0936533223_z.jpg", "id": 562845}, {"license": 2, "file_name": "000000253143.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000253143.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 08:03:16", "flickr_url": "http://farm4.staticflickr.com/3607/3333300923_8afbca99f1_z.jpg", "id": 253143}, {"license": 5, "file_name": "000000151648.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000151648.jpg", "height": 425, "width": 640, "date_captured": "2013-11-17 20:28:20", "flickr_url": "http://farm6.staticflickr.com/5520/9520285151_060c95b4b1_z.jpg", "id": 151648}, {"license": 3, "file_name": "000000202652.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000202652.jpg", "height": 333, "width": 500, "date_captured": "2013-11-18 02:22:02", "flickr_url": "http://farm1.staticflickr.com/86/233013351_a4d6439275_z.jpg", "id": 202652}, {"license": 3, "file_name": "000000304937.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000304937.jpg", "height": 640, "width": 640, "date_captured": "2013-11-16 15:41:12", "flickr_url": "http://farm9.staticflickr.com/8425/7547130406_bb51c2f2d0_z.jpg", "id": 304937}, {"license": 1, "file_name": "000000304587.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000304587.jpg", "height": 500, "width": 375, "date_captured": "2013-11-21 19:14:34", "flickr_url": "http://farm2.staticflickr.com/1383/750099262_12a33777ba_z.jpg", "id": 304587}, {"license": 3, "file_name": "000000345100.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000345100.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 04:10:47", "flickr_url": "http://farm3.staticflickr.com/2749/4376055398_764f1d027b_z.jpg", "id": 345100}, {"license": 3, "file_name": "000000144383.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000144383.jpg", "height": 640, "width": 640, "date_captured": "2013-11-20 23:33:49", "flickr_url": "http://farm6.staticflickr.com/5024/5629923252_1fc88b58d6_z.jpg", "id": 144383}, {"license": 5, "file_name": "000000573549.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000573549.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 03:49:20", "flickr_url": "http://farm9.staticflickr.com/8171/8049511212_dbf0e434d3_z.jpg", "id": 573549}, {"license": 4, "file_name": "000000267127.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000267127.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 22:46:06", "flickr_url": "http://farm4.staticflickr.com/3399/3261529231_67c9e01bfc_z.jpg", "id": 267127}, {"license": 4, "file_name": "000000550576.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000550576.jpg", "height": 361, "width": 640, "date_captured": "2013-11-18 16:55:27", "flickr_url": "http://farm4.staticflickr.com/3142/2906131093_dda32abd81_z.jpg", "id": 550576}, {"license": 3, "file_name": "000000566501.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000566501.jpg", "height": 434, "width": 640, "date_captured": "2013-11-17 07:36:28", "flickr_url": "http://farm6.staticflickr.com/5535/9522748502_c2bdff0f2a_z.jpg", "id": 566501}, {"license": 4, "file_name": "000000139915.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000139915.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 02:54:55", "flickr_url": "http://farm4.staticflickr.com/3575/3374801874_00032e36b2_z.jpg", "id": 139915}, {"license": 1, "file_name": "000000456262.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000456262.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 23:46:57", "flickr_url": "http://farm3.staticflickr.com/2349/2206213711_964ae7efa0_z.jpg", "id": 456262}, {"license": 5, "file_name": "000000028649.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000028649.jpg", "height": 640, "width": 480, "date_captured": "2013-11-16 15:50:39", "flickr_url": "http://farm4.staticflickr.com/3356/3560404697_efeda967e3_z.jpg", "id": 28649}, {"license": 3, "file_name": "000000572574.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000572574.jpg", "height": 375, "width": 500, "date_captured": "2013-11-17 01:58:17", "flickr_url": "http://farm2.staticflickr.com/1051/1034261132_baa7b56ede_z.jpg", "id": 572574}, {"license": 3, "file_name": "000000378204.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000378204.jpg", "height": 539, "width": 640, "date_captured": "2013-11-24 05:38:15", "flickr_url": "http://farm6.staticflickr.com/5145/5597870275_aae28b831a_z.jpg", "id": 378204}, {"license": 4, "file_name": "000000379465.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000379465.jpg", "height": 640, "width": 322, "date_captured": "2013-11-24 15:48:57", "flickr_url": "http://farm9.staticflickr.com/8283/7754185164_a6747d216c_z.jpg", "id": 379465}, {"license": 2, "file_name": "000000522309.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000522309.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 21:28:35", "flickr_url": "http://farm1.staticflickr.com/41/84138687_221ae37d99_z.jpg", "id": 522309}, {"license": 3, "file_name": "000000214766.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000214766.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 10:42:51", "flickr_url": "http://farm4.staticflickr.com/3212/2443879581_51ab6c0b6f_z.jpg", "id": 214766}, {"license": 1, "file_name": "000000226262.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000226262.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 19:09:42", "flickr_url": "http://farm9.staticflickr.com/8028/7318252624_20c52898a2_z.jpg", "id": 226262}, {"license": 3, "file_name": "000000198782.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000198782.jpg", "height": 640, "width": 428, "date_captured": "2013-11-18 05:20:00", "flickr_url": "http://farm4.staticflickr.com/3378/3456285570_36b394fdc2_z.jpg", "id": 198782}, {"license": 5, "file_name": "000000017100.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000017100.jpg", "height": 424, "width": 640, "date_captured": "2013-11-17 07:54:44", "flickr_url": "http://farm8.staticflickr.com/7338/9424548834_29c9fcdf68_z.jpg", "id": 17100}, {"license": 4, "file_name": "000000099389.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000099389.jpg", "height": 533, "width": 640, "date_captured": "2013-11-15 14:37:59", "flickr_url": "http://farm8.staticflickr.com/7390/9629491436_16af77b41c_z.jpg", "id": 99389}, {"license": 5, "file_name": "000000436350.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000436350.jpg", "height": 375, "width": 500, "date_captured": "2013-11-14 23:06:44", "flickr_url": "http://farm2.staticflickr.com/1360/1336686897_6c4edbfdaa_z.jpg", "id": 436350}, {"license": 4, "file_name": "000000516791.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000516791.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 19:22:18", "flickr_url": "http://farm4.staticflickr.com/3726/9404729054_518509c6d0_z.jpg", "id": 516791}, {"license": 1, "file_name": "000000049851.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000049851.jpg", "height": 429, "width": 640, "date_captured": "2013-11-19 22:55:40", "flickr_url": "http://farm7.staticflickr.com/6178/6206798126_503dc088f5_z.jpg", "id": 49851}, {"license": 1, "file_name": "000000478902.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000478902.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 01:28:48", "flickr_url": "http://farm4.staticflickr.com/3733/9206576484_bd8a182aac_z.jpg", "id": 478902}, {"license": 4, "file_name": "000000518481.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000518481.jpg", "height": 427, "width": 640, "date_captured": "2013-11-15 00:29:57", "flickr_url": "http://farm3.staticflickr.com/2606/3700225088_82f1f8a687_z.jpg", "id": 518481}, {"license": 4, "file_name": "000000429158.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000429158.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 18:07:58", "flickr_url": "http://farm5.staticflickr.com/4139/4870758200_42c401827a_z.jpg", "id": 429158}, {"license": 4, "file_name": "000000094118.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000094118.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 15:39:39", "flickr_url": "http://farm1.staticflickr.com/52/191020381_efd5f0dfce_z.jpg", "id": 94118}, {"license": 3, "file_name": "000000295295.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000295295.jpg", "height": 481, "width": 640, "date_captured": "2013-11-18 00:12:34", "flickr_url": "http://farm4.staticflickr.com/3247/5705973501_ed54e0da5d_z.jpg", "id": 295295}, {"license": 1, "file_name": "000000544209.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000544209.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 17:27:10", "flickr_url": "http://farm4.staticflickr.com/3112/5774371064_d5eecd764d_z.jpg", "id": 544209}, {"license": 3, "file_name": "000000277642.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000277642.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:17:53", "flickr_url": "http://farm3.staticflickr.com/2040/2104837822_03fbf77fe7_z.jpg", "id": 277642}, {"license": 1, "file_name": "000000398534.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000398534.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 01:30:33", "flickr_url": "http://farm6.staticflickr.com/5056/5527638662_4c0b869b28_z.jpg", "id": 398534}, {"license": 2, "file_name": "000000379545.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000379545.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 06:02:31", "flickr_url": "http://farm4.staticflickr.com/3538/3426955997_ea57f30ac1_z.jpg", "id": 379545}, {"license": 2, "file_name": "000000538690.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000538690.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 02:36:24", "flickr_url": "http://farm4.staticflickr.com/3611/3575165638_e0fd0809e5_z.jpg", "id": 538690}, {"license": 1, "file_name": "000000478260.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000478260.jpg", "height": 640, "width": 429, "date_captured": "2013-11-21 23:51:52", "flickr_url": "http://farm1.staticflickr.com/188/371829552_721137f56b_z.jpg", "id": 478260}, {"license": 3, "file_name": "000000390094.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000390094.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 02:58:52", "flickr_url": "http://farm9.staticflickr.com/8530/8607097535_41af0ea785_z.jpg", "id": 390094}, {"license": 1, "file_name": "000000531032.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000531032.jpg", "height": 424, "width": 640, "date_captured": "2013-11-16 21:24:52", "flickr_url": "http://farm8.staticflickr.com/7314/9067568532_2826c75758_z.jpg", "id": 531032}, {"license": 1, "file_name": "000000286116.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000286116.jpg", "height": 426, "width": 640, "date_captured": "2013-11-24 04:42:59", "flickr_url": "http://farm4.staticflickr.com/3440/3394608846_c7e948533c_z.jpg", "id": 286116}, {"license": 6, "file_name": "000000113812.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000113812.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 17:28:08", "flickr_url": "http://farm8.staticflickr.com/7298/9422422185_c1ebabef89_z.jpg", "id": 113812}, {"license": 5, "file_name": "000000514049.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000514049.jpg", "height": 480, "width": 640, "date_captured": "2013-11-23 00:05:25", "flickr_url": "http://farm3.staticflickr.com/2870/9343031702_0f519abb38_z.jpg", "id": 514049}, {"license": 2, "file_name": "000000404869.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000404869.jpg", "height": 375, "width": 500, "date_captured": "2013-11-20 07:37:05", "flickr_url": "http://farm1.staticflickr.com/141/407464364_7099a07dc3_z.jpg", "id": 404869}, {"license": 1, "file_name": "000000458137.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000458137.jpg", "height": 424, "width": 640, "date_captured": "2013-11-25 14:04:10", "flickr_url": "http://farm8.staticflickr.com/7411/10063740816_40b31a5abc_z.jpg", "id": 458137}, {"license": 1, "file_name": "000000429754.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000429754.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 20:54:48", "flickr_url": "http://farm4.staticflickr.com/3655/3552569380_8ae5acbc9f_z.jpg", "id": 429754}, {"license": 1, "file_name": "000000486638.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000486638.jpg", "height": 514, "width": 640, "date_captured": "2013-11-19 18:32:31", "flickr_url": "http://farm9.staticflickr.com/8421/7784451654_083c56591f_z.jpg", "id": 486638}, {"license": 2, "file_name": "000000451160.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000451160.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 04:25:02", "flickr_url": "http://farm7.staticflickr.com/6193/6110678205_534d60f721_z.jpg", "id": 451160}, {"license": 5, "file_name": "000000260871.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000260871.jpg", "height": 435, "width": 640, "date_captured": "2013-11-14 20:27:58", "flickr_url": "http://farm9.staticflickr.com/8183/8142680049_8da3eb8e86_z.jpg", "id": 260871}, {"license": 2, "file_name": "000000517261.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000517261.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 01:06:51", "flickr_url": "http://farm8.staticflickr.com/7365/9377268811_5f7c242c26_z.jpg", "id": 517261}, {"license": 2, "file_name": "000000256611.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000256611.jpg", "height": 427, "width": 640, "date_captured": "2013-11-22 00:41:35", "flickr_url": "http://farm4.staticflickr.com/3432/3266467919_0b6ed6084c_z.jpg", "id": 256611}, {"license": 4, "file_name": "000000132964.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000132964.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 12:14:02", "flickr_url": "http://farm2.staticflickr.com/1207/536821842_4a770eaf64_z.jpg", "id": 132964}, {"license": 6, "file_name": "000000425848.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000425848.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:45:34", "flickr_url": "http://farm9.staticflickr.com/8236/8522373086_b4da2e92cb_z.jpg", "id": 425848}, {"license": 4, "file_name": "000000067726.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000067726.jpg", "height": 427, "width": 640, "date_captured": "2013-11-16 05:20:27", "flickr_url": "http://farm4.staticflickr.com/3783/9840242895_c456287efc_z.jpg", "id": 67726}, {"license": 3, "file_name": "000000322725.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000322725.jpg", "height": 640, "width": 425, "date_captured": "2013-11-14 16:44:35", "flickr_url": "http://farm4.staticflickr.com/3204/2760897557_f37d377cb1_z.jpg", "id": 322725}, {"license": 4, "file_name": "000000114259.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000114259.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 20:04:08", "flickr_url": "http://farm9.staticflickr.com/8217/8414328431_a7e8a9efcb_z.jpg", "id": 114259}, {"license": 3, "file_name": "000000423842.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000423842.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 12:05:58", "flickr_url": "http://farm2.staticflickr.com/1200/874617538_3b5d081408_z.jpg", "id": 423842}, {"license": 1, "file_name": "000000571516.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000571516.jpg", "height": 425, "width": 640, "date_captured": "2013-11-24 06:28:47", "flickr_url": "http://farm5.staticflickr.com/4046/4651252181_7d10c43c0a_z.jpg", "id": 571516}, {"license": 1, "file_name": "000000354359.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000354359.jpg", "height": 408, "width": 640, "date_captured": "2013-11-14 22:12:11", "flickr_url": "http://farm6.staticflickr.com/5336/6921996908_946e271570_z.jpg", "id": 354359}, {"license": 2, "file_name": "000000381529.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000381529.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 04:14:04", "flickr_url": "http://farm5.staticflickr.com/4043/4589621771_77a1a1c108_z.jpg", "id": 381529}, {"license": 3, "file_name": "000000543392.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000543392.jpg", "height": 500, "width": 333, "date_captured": "2013-11-16 17:24:03", "flickr_url": "http://farm5.staticflickr.com/4008/4223326076_581f474208_z.jpg", "id": 543392}, {"license": 4, "file_name": "000000403096.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000403096.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 19:02:20", "flickr_url": "http://farm9.staticflickr.com/8340/8169558298_18b811fab0_z.jpg", "id": 403096}, {"license": 3, "file_name": "000000101766.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000101766.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 14:38:20", "flickr_url": "http://farm7.staticflickr.com/6020/5898831928_37a3c13c86_z.jpg", "id": 101766}, {"license": 4, "file_name": "000000288268.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000288268.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 06:13:15", "flickr_url": "http://farm4.staticflickr.com/3094/3354108024_980a8a1bdf_z.jpg", "id": 288268}, {"license": 5, "file_name": "000000241369.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000241369.jpg", "height": 425, "width": 640, "date_captured": "2013-11-21 03:23:59", "flickr_url": "http://farm7.staticflickr.com/6062/6098875924_e2475244a5_z.jpg", "id": 241369}, {"license": 6, "file_name": "000000541994.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000541994.jpg", "height": 428, "width": 640, "date_captured": "2013-11-24 00:22:44", "flickr_url": "http://farm4.staticflickr.com/3361/3561255715_9d5f894296_z.jpg", "id": 541994}, {"license": 4, "file_name": "000000185591.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000185591.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 05:21:13", "flickr_url": "http://farm7.staticflickr.com/6099/6372229553_719e2c08ab_z.jpg", "id": 185591}, {"license": 2, "file_name": "000000009709.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000009709.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 17:06:16", "flickr_url": "http://farm6.staticflickr.com/5466/9084504467_80167f7813_z.jpg", "id": 9709}, {"license": 3, "file_name": "000000403535.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000403535.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 07:48:29", "flickr_url": "http://farm6.staticflickr.com/5017/5547519919_891998dc0e_z.jpg", "id": 403535}, {"license": 1, "file_name": "000000206107.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000206107.jpg", "height": 612, "width": 612, "date_captured": "2013-11-21 00:55:18", "flickr_url": "http://farm9.staticflickr.com/8335/8126420698_ea671a93b7_z.jpg", "id": 206107}, {"license": 2, "file_name": "000000445346.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000445346.jpg", "height": 612, "width": 612, "date_captured": "2013-11-21 04:17:29", "flickr_url": "http://farm6.staticflickr.com/5101/5625829005_098f6f3036_z.jpg", "id": 445346}, {"license": 4, "file_name": "000000135149.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000135149.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 20:29:55", "flickr_url": "http://farm6.staticflickr.com/5537/9501078235_6d0a60a2fc_z.jpg", "id": 135149}, {"license": 1, "file_name": "000000020367.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000020367.jpg", "height": 640, "width": 428, "date_captured": "2013-11-18 01:06:02", "flickr_url": "http://farm5.staticflickr.com/4135/4785345656_34272b2aba_z.jpg", "id": 20367}, {"license": 3, "file_name": "000000453332.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000453332.jpg", "height": 640, "width": 405, "date_captured": "2013-11-16 17:34:47", "flickr_url": "http://farm6.staticflickr.com/5092/5392779637_2df21eb85b_z.jpg", "id": 453332}, {"license": 1, "file_name": "000000403627.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000403627.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 18:51:02", "flickr_url": "http://farm5.staticflickr.com/4135/4820654463_eb29992f67_z.jpg", "id": 403627}, {"license": 7, "file_name": "000000379743.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000379743.jpg", "height": 431, "width": 640, "date_captured": "2013-11-16 11:59:31", "flickr_url": "http://farm4.staticflickr.com/3545/3681594683_d6404ae8ae_z.jpg", "id": 379743}, {"license": 1, "file_name": "000000191785.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000191785.jpg", "height": 300, "width": 640, "date_captured": "2013-11-16 14:44:57", "flickr_url": "http://farm9.staticflickr.com/8319/7885077674_6901d14828_z.jpg", "id": 191785}, {"license": 3, "file_name": "000000369647.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000369647.jpg", "height": 640, "width": 427, "date_captured": "2013-11-18 03:05:03", "flickr_url": "http://farm8.staticflickr.com/7151/6566381291_2c82b9e8b0_z.jpg", "id": 369647}, {"license": 2, "file_name": "000000250703.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000250703.jpg", "height": 426, "width": 640, "date_captured": "2013-11-19 00:48:03", "flickr_url": "http://farm4.staticflickr.com/3764/9511821992_4767c27aca_z.jpg", "id": 250703}, {"license": 6, "file_name": "000000016680.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000016680.jpg", "height": 161, "width": 640, "date_captured": "2013-11-19 20:40:41", "flickr_url": "http://farm7.staticflickr.com/6172/6173111913_871b04c6d3_z.jpg", "id": 16680}, {"license": 1, "file_name": "000000119337.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000119337.jpg", "height": 427, "width": 640, "date_captured": "2013-11-18 03:50:46", "flickr_url": "http://farm5.staticflickr.com/4015/5157713237_c4b0dbf0bf_z.jpg", "id": 119337}, {"license": 5, "file_name": "000000233900.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000233900.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 17:17:55", "flickr_url": "http://farm4.staticflickr.com/3087/2645431483_a669848676_z.jpg", "id": 233900}, {"license": 3, "file_name": "000000091113.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000091113.jpg", "height": 413, "width": 640, "date_captured": "2013-11-22 01:29:00", "flickr_url": "http://farm4.staticflickr.com/3393/3411190801_ce6f73bf8e_z.jpg", "id": 91113}, {"license": 4, "file_name": "000000303178.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000303178.jpg", "height": 640, "width": 515, "date_captured": "2013-11-15 01:29:29", "flickr_url": "http://farm4.staticflickr.com/3695/9263279800_76f68b7370_z.jpg", "id": 303178}, {"license": 4, "file_name": "000000188085.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000188085.jpg", "height": 500, "width": 331, "date_captured": "2013-11-23 04:03:15", "flickr_url": "http://farm4.staticflickr.com/3152/2798438970_0fd9dc91cb_z.jpg", "id": 188085}, {"license": 5, "file_name": "000000269799.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000269799.jpg", "height": 427, "width": 640, "date_captured": "2013-11-17 00:23:00", "flickr_url": "http://farm4.staticflickr.com/3104/2815807703_e31a39e48d_z.jpg", "id": 269799}, {"license": 4, "file_name": "000000000913.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000000913.jpg", "height": 512, "width": 640, "date_captured": "2013-11-16 04:59:25", "flickr_url": "http://farm2.staticflickr.com/1315/5115911977_f546265c56_z.jpg", "id": 913}, {"license": 3, "file_name": "000000260603.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000260603.jpg", "height": 375, "width": 500, "date_captured": "2013-11-15 11:44:33", "flickr_url": "http://farm4.staticflickr.com/3589/3507629408_81d882eb26_z.jpg", "id": 260603}, {"license": 3, "file_name": "000000376449.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000376449.jpg", "height": 567, "width": 640, "date_captured": "2013-11-20 17:05:59", "flickr_url": "http://farm7.staticflickr.com/6087/6070977846_ff9304968a_z.jpg", "id": 376449}, {"license": 4, "file_name": "000000402674.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000402674.jpg", "height": 423, "width": 640, "date_captured": "2013-11-23 03:01:51", "flickr_url": "http://farm3.staticflickr.com/2569/3750140400_6a145e9b69_z.jpg", "id": 402674}, {"license": 1, "file_name": "000000189847.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000189847.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 15:25:25", "flickr_url": "http://farm7.staticflickr.com/6192/6122148257_9defaa8d0e_z.jpg", "id": 189847}, {"license": 1, "file_name": "000000506417.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000506417.jpg", "height": 424, "width": 640, "date_captured": "2013-11-23 00:13:29", "flickr_url": "http://farm6.staticflickr.com/5458/9076657405_c98f368b17_z.jpg", "id": 506417}, {"license": 4, "file_name": "000000548198.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000548198.jpg", "height": 360, "width": 480, "date_captured": "2013-11-18 00:32:07", "flickr_url": "http://farm1.staticflickr.com/78/231383691_29f38a7500_z.jpg", "id": 548198}, {"license": 3, "file_name": "000000576322.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000576322.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 06:32:17", "flickr_url": "http://farm3.staticflickr.com/2757/4163974300_be92efffdb_z.jpg", "id": 576322}, {"license": 2, "file_name": "000000549519.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000549519.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 15:59:50", "flickr_url": "http://farm3.staticflickr.com/2518/4015274311_a1eb25132b_z.jpg", "id": 549519}, {"license": 3, "file_name": "000000290153.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000290153.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 20:15:08", "flickr_url": "http://farm9.staticflickr.com/8068/8213794846_bc1fc9e5ca_z.jpg", "id": 290153}, {"license": 4, "file_name": "000000376701.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000376701.jpg", "height": 598, "width": 573, "date_captured": "2013-11-18 03:18:46", "flickr_url": "http://farm7.staticflickr.com/6116/6276673964_2c92a106bc_z.jpg", "id": 376701}, {"license": 4, "file_name": "000000572602.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000572602.jpg", "height": 475, "width": 576, "date_captured": "2013-11-19 20:31:48", "flickr_url": "http://farm6.staticflickr.com/5324/7061077193_4205ed4eb7_z.jpg", "id": 572602}, {"license": 2, "file_name": "000000435187.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000435187.jpg", "height": 479, "width": 640, "date_captured": "2013-11-17 05:06:57", "flickr_url": "http://farm3.staticflickr.com/2153/2206742991_a7a5edd7ee_z.jpg", "id": 435187}, {"license": 4, "file_name": "000000239395.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000239395.jpg", "height": 480, "width": 640, "date_captured": "2013-11-18 09:36:01", "flickr_url": "http://farm9.staticflickr.com/8437/8002898957_9623f67ce5_z.jpg", "id": 239395}, {"license": 3, "file_name": "000000078798.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000078798.jpg", "height": 500, "width": 334, "date_captured": "2013-11-17 19:00:46", "flickr_url": "http://farm5.staticflickr.com/4056/4423316575_d43e3cbca7_z.jpg", "id": 78798}, {"license": 4, "file_name": "000000187474.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000187474.jpg", "height": 427, "width": 640, "date_captured": "2013-11-22 17:00:36", "flickr_url": "http://farm3.staticflickr.com/2575/3754008193_2734f1b64a_z.jpg", "id": 187474}, {"license": 4, "file_name": "000000408672.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000408672.jpg", "height": 480, "width": 640, "date_captured": "2013-11-21 01:14:05", "flickr_url": "http://farm8.staticflickr.com/7135/7615905604_15d82938fb_z.jpg", "id": 408672}, {"license": 2, "file_name": "000000318310.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000318310.jpg", "height": 428, "width": 640, "date_captured": "2013-11-21 05:36:30", "flickr_url": "http://farm5.staticflickr.com/4056/4569384983_bbbc4ea078_z.jpg", "id": 318310}, {"license": 3, "file_name": "000000064071.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000064071.jpg", "height": 640, "width": 425, "date_captured": "2013-11-20 16:56:56", "flickr_url": "http://farm5.staticflickr.com/4122/4746501309_59aef6112b_z.jpg", "id": 64071}, {"license": 3, "file_name": "000000080756.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000080756.jpg", "height": 320, "width": 400, "date_captured": "2013-11-19 20:11:26", "flickr_url": "http://farm8.staticflickr.com/7111/7645235722_755748c3dd_z.jpg", "id": 80756}, {"license": 2, "file_name": "000000047387.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000047387.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 12:49:45", "flickr_url": "http://farm1.staticflickr.com/226/467847479_bc1696db27_z.jpg", "id": 47387}, {"license": 2, "file_name": "000000099115.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000099115.jpg", "height": 360, "width": 640, "date_captured": "2013-11-25 13:53:38", "flickr_url": "http://farm6.staticflickr.com/5441/9593593363_7c72c5cdf4_z.jpg", "id": 99115}, {"license": 1, "file_name": "000000289693.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000289693.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 05:34:48", "flickr_url": "http://farm5.staticflickr.com/4116/4784171764_a6a009f4bf_z.jpg", "id": 289693}, {"license": 1, "file_name": "000000108020.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000108020.jpg", "height": 500, "width": 375, "date_captured": "2013-11-17 01:30:44", "flickr_url": "http://farm1.staticflickr.com/58/216998721_855df00efd_z.jpg", "id": 108020}, {"license": 1, "file_name": "000000091442.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000091442.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 18:02:39", "flickr_url": "http://farm1.staticflickr.com/137/327422695_410d693781_z.jpg", "id": 91442}, {"license": 1, "file_name": "000000286359.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000286359.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 12:30:02", "flickr_url": "http://farm4.staticflickr.com/3023/2671480808_35a6b0c838_z.jpg", "id": 286359}, {"license": 4, "file_name": "000000333356.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000333356.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 16:50:11", "flickr_url": "http://farm6.staticflickr.com/5246/5380089603_049e8742a5_z.jpg", "id": 333356}, {"license": 4, "file_name": "000000287396.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000287396.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 17:34:56", "flickr_url": "http://farm9.staticflickr.com/8123/8649080785_b68a767658_z.jpg", "id": 287396}, {"license": 2, "file_name": "000000045949.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000045949.jpg", "height": 500, "width": 333, "date_captured": "2013-11-20 10:26:04", "flickr_url": "http://farm4.staticflickr.com/3162/2951815335_be3fd77a7f_z.jpg", "id": 45949}, {"license": 1, "file_name": "000000280765.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000280765.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 17:14:14", "flickr_url": "http://farm6.staticflickr.com/5280/7182151424_68d5b7f02b_z.jpg", "id": 280765}, {"license": 2, "file_name": "000000195211.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000195211.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 02:24:35", "flickr_url": "http://farm4.staticflickr.com/3591/3607216616_35f7c3db6b_z.jpg", "id": 195211}, {"license": 3, "file_name": "000000472861.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000472861.jpg", "height": 480, "width": 640, "date_captured": "2013-11-14 21:49:40", "flickr_url": "http://farm4.staticflickr.com/3068/2365284950_e2b526964d_z.jpg", "id": 472861}, {"license": 3, "file_name": "000000360695.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000360695.jpg", "height": 426, "width": 640, "date_captured": "2013-11-19 23:00:00", "flickr_url": "http://farm4.staticflickr.com/3128/2772729539_561d4eab98_z.jpg", "id": 360695}, {"license": 1, "file_name": "000000439809.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000439809.jpg", "height": 375, "width": 500, "date_captured": "2013-11-18 23:46:29", "flickr_url": "http://farm1.staticflickr.com/89/229317171_9328ff9dcd_z.jpg", "id": 439809}, {"license": 3, "file_name": "000000273427.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000273427.jpg", "height": 640, "width": 480, "date_captured": "2013-11-23 12:25:30", "flickr_url": "http://farm6.staticflickr.com/5166/5339166804_c74f02e032_z.jpg", "id": 273427}, {"license": 2, "file_name": "000000104919.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000104919.jpg", "height": 424, "width": 640, "date_captured": "2013-11-20 18:20:55", "flickr_url": "http://farm1.staticflickr.com/77/180148942_d44a3967c2_z.jpg", "id": 104919}, {"license": 6, "file_name": "000000540547.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000540547.jpg", "height": 432, "width": 640, "date_captured": "2013-11-17 14:42:20", "flickr_url": "http://farm3.staticflickr.com/2153/2099476697_c156a63cea_z.jpg", "id": 540547}, {"license": 4, "file_name": "000000511988.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000511988.jpg", "height": 342, "width": 640, "date_captured": "2013-11-15 17:08:55", "flickr_url": "http://farm9.staticflickr.com/8527/8567976060_7a5eb0bfd3_z.jpg", "id": 511988}, {"license": 1, "file_name": "000000307462.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000307462.jpg", "height": 479, "width": 640, "date_captured": "2013-11-18 02:27:20", "flickr_url": "http://farm6.staticflickr.com/5467/9723727957_42baff1eba_z.jpg", "id": 307462}, {"license": 6, "file_name": "000000433911.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000433911.jpg", "height": 640, "width": 428, "date_captured": "2013-11-15 05:12:59", "flickr_url": "http://farm5.staticflickr.com/4039/5151242309_1aa5cb16f7_z.jpg", "id": 433911}, {"license": 3, "file_name": "000000554805.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000554805.jpg", "height": 640, "width": 640, "date_captured": "2013-11-17 20:35:38", "flickr_url": "http://farm6.staticflickr.com/5548/9278485295_49322c6617_z.jpg", "id": 554805}, {"license": 1, "file_name": "000000538682.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000538682.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:55:12", "flickr_url": "http://farm3.staticflickr.com/2203/2471455454_08042a261e_z.jpg", "id": 538682}, {"license": 5, "file_name": "000000096461.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000096461.jpg", "height": 500, "width": 334, "date_captured": "2013-11-15 13:58:46", "flickr_url": "http://farm5.staticflickr.com/4063/4358213857_61fc1c71c0_z.jpg", "id": 96461}, {"license": 1, "file_name": "000000484714.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000484714.jpg", "height": 424, "width": 640, "date_captured": "2013-11-20 22:23:24", "flickr_url": "http://farm7.staticflickr.com/6019/6344669059_e17e01f6ac_z.jpg", "id": 484714}, {"license": 3, "file_name": "000000045124.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000045124.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 04:14:04", "flickr_url": "http://farm5.staticflickr.com/4014/4385214202_87ca22c7fb_z.jpg", "id": 45124}, {"license": 5, "file_name": "000000428340.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000428340.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 12:06:47", "flickr_url": "http://farm2.staticflickr.com/1410/1016086199_664ab9a25a_z.jpg", "id": 428340}, {"license": 2, "file_name": "000000410561.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000410561.jpg", "height": 640, "width": 425, "date_captured": "2013-11-18 13:02:29", "flickr_url": "http://farm4.staticflickr.com/3109/2495954796_98b9135c03_z.jpg", "id": 410561}, {"license": 2, "file_name": "000000384849.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000384849.jpg", "height": 474, "width": 640, "date_captured": "2013-11-15 05:48:40", "flickr_url": "http://farm2.staticflickr.com/1247/4723694305_5be5aa30b1_z.jpg", "id": 384849}, {"license": 5, "file_name": "000000299083.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000299083.jpg", "height": 424, "width": 640, "date_captured": "2013-11-16 16:19:30", "flickr_url": "http://farm9.staticflickr.com/8344/8166458150_5c79bf780a_z.jpg", "id": 299083}, {"license": 5, "file_name": "000000063017.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000063017.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 23:38:03", "flickr_url": "http://farm1.staticflickr.com/25/46273319_3209ae489e_z.jpg", "id": 63017}, {"license": 4, "file_name": "000000406874.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000406874.jpg", "height": 640, "width": 359, "date_captured": "2013-11-18 12:51:01", "flickr_url": "http://farm7.staticflickr.com/6190/6085405014_7d8d297b16_z.jpg", "id": 406874}, {"license": 6, "file_name": "000000154424.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000154424.jpg", "height": 640, "width": 428, "date_captured": "2013-11-20 06:23:33", "flickr_url": "http://farm5.staticflickr.com/4053/4232534015_9f1ddffa8c_z.jpg", "id": 154424}, {"license": 2, "file_name": "000000053361.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000053361.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 23:24:53", "flickr_url": "http://farm6.staticflickr.com/5452/7179807570_5a05b59f21_z.jpg", "id": 53361}, {"license": 4, "file_name": "000000060771.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000060771.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 21:02:06", "flickr_url": "http://farm4.staticflickr.com/3124/2621889773_eebe953786_z.jpg", "id": 60771}, {"license": 1, "file_name": "000000463224.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000463224.jpg", "height": 640, "width": 480, "date_captured": "2013-11-18 03:26:03", "flickr_url": "http://farm1.staticflickr.com/40/82915898_0135e40ee5_z.jpg", "id": 463224}, {"license": 2, "file_name": "000000443688.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000443688.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 18:59:47", "flickr_url": "http://farm6.staticflickr.com/5062/5833468856_88928df066_z.jpg", "id": 443688}, {"license": 5, "file_name": "000000119093.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000119093.jpg", "height": 640, "width": 425, "date_captured": "2013-11-14 18:51:30", "flickr_url": "http://farm3.staticflickr.com/2635/3861316708_350665c35e_z.jpg", "id": 119093}, {"license": 3, "file_name": "000000146751.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000146751.jpg", "height": 640, "width": 480, "date_captured": "2013-11-15 10:15:56", "flickr_url": "http://farm3.staticflickr.com/2660/3690737547_c93afd1f38_z.jpg", "id": 146751}, {"license": 3, "file_name": "000000183181.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000183181.jpg", "height": 375, "width": 500, "date_captured": "2013-11-16 14:12:39", "flickr_url": "http://farm3.staticflickr.com/2135/2416463603_d970a0a38d_z.jpg", "id": 183181}, {"license": 4, "file_name": "000000496847.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000496847.jpg", "height": 500, "width": 375, "date_captured": "2013-11-24 10:16:04", "flickr_url": "http://farm1.staticflickr.com/101/258277938_9fa81edef6_z.jpg", "id": 496847}, {"license": 1, "file_name": "000000525360.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000525360.jpg", "height": 603, "width": 640, "date_captured": "2013-11-20 00:17:29", "flickr_url": "http://farm5.staticflickr.com/4006/4452905945_3e0c73f3c6_z.jpg", "id": 525360}, {"license": 1, "file_name": "000000536781.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000536781.jpg", "height": 421, "width": 640, "date_captured": "2013-11-17 01:47:54", "flickr_url": "http://farm9.staticflickr.com/8491/8282964216_bedcda2ce9_z.jpg", "id": 536781}, {"license": 4, "file_name": "000000408863.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000408863.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 10:14:03", "flickr_url": "http://farm8.staticflickr.com/7362/8715916300_1ed6ae5533_z.jpg", "id": 408863}, {"license": 2, "file_name": "000000017591.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000017591.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 19:08:29", "flickr_url": "http://farm3.staticflickr.com/2746/4369082172_e399bc5752_z.jpg", "id": 17591}, {"license": 2, "file_name": "000000476412.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000476412.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 19:51:25", "flickr_url": "http://farm9.staticflickr.com/8100/8654295888_6c17838595_z.jpg", "id": 476412}, {"license": 1, "file_name": "000000484307.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000484307.jpg", "height": 375, "width": 500, "date_captured": "2013-11-19 21:53:30", "flickr_url": "http://farm4.staticflickr.com/3540/3447792154_eae076931a_z.jpg", "id": 484307}, {"license": 3, "file_name": "000000347340.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000347340.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 21:55:18", "flickr_url": "http://farm9.staticflickr.com/8001/7868612888_fef8fa1ba4_z.jpg", "id": 347340}, {"license": 2, "file_name": "000000374628.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000374628.jpg", "height": 326, "width": 640, "date_captured": "2013-11-14 19:18:11", "flickr_url": "http://farm5.staticflickr.com/4070/4444442937_5aba7a1c31_z.jpg", "id": 374628}, {"license": 3, "file_name": "000000459823.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000459823.jpg", "height": 467, "width": 640, "date_captured": "2013-11-17 15:51:36", "flickr_url": "http://farm3.staticflickr.com/2342/1673967541_d64724ea2f_z.jpg", "id": 459823}, {"license": 3, "file_name": "000000001431.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000001431.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 04:21:36", "flickr_url": "http://farm6.staticflickr.com/5019/5506775603_bc0b3c6be4_z.jpg", "id": 1431}, {"license": 2, "file_name": "000000336675.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000336675.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 21:02:18", "flickr_url": "http://farm4.staticflickr.com/3066/2911993706_543514171d_z.jpg", "id": 336675}, {"license": 2, "file_name": "000000217951.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000217951.jpg", "height": 319, "width": 640, "date_captured": "2013-11-22 16:50:57", "flickr_url": "http://farm3.staticflickr.com/2642/3792006143_b823f92e8a_z.jpg", "id": 217951}, {"license": 1, "file_name": "000000146253.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000146253.jpg", "height": 428, "width": 640, "date_captured": "2013-11-20 04:27:25", "flickr_url": "http://farm5.staticflickr.com/4038/4365544889_a5551cdc5f_z.jpg", "id": 146253}, {"license": 5, "file_name": "000000531111.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000531111.jpg", "height": 640, "width": 427, "date_captured": "2013-11-14 23:56:32", "flickr_url": "http://farm4.staticflickr.com/3401/3496552351_8190edef65_z.jpg", "id": 531111}, {"license": 4, "file_name": "000000444214.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000444214.jpg", "height": 448, "width": 640, "date_captured": "2013-11-18 00:46:33", "flickr_url": "http://farm4.staticflickr.com/3269/5713440584_97f98b8f8a_z.jpg", "id": 444214}, {"license": 2, "file_name": "000000083483.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000083483.jpg", "height": 359, "width": 640, "date_captured": "2013-11-17 05:15:57", "flickr_url": "http://farm8.staticflickr.com/7393/9569580425_62744d6a2c_z.jpg", "id": 83483}, {"license": 5, "file_name": "000000016082.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000016082.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 01:09:07", "flickr_url": "http://farm1.staticflickr.com/197/486320813_9a0bc38197_z.jpg", "id": 16082}, {"license": 1, "file_name": "000000194701.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000194701.jpg", "height": 573, "width": 640, "date_captured": "2013-11-15 19:30:50", "flickr_url": "http://farm8.staticflickr.com/7191/6797026036_894a1f58bc_z.jpg", "id": 194701}, {"license": 3, "file_name": "000000012953.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000012953.jpg", "height": 433, "width": 640, "date_captured": "2013-11-16 22:00:27", "flickr_url": "http://farm8.staticflickr.com/7047/6902846745_0ce2f027f0_z.jpg", "id": 12953}, {"license": 1, "file_name": "000000256465.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000256465.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 00:25:34", "flickr_url": "http://farm1.staticflickr.com/103/306752063_fa9ad38da8_z.jpg", "id": 256465}, {"license": 3, "file_name": "000000496031.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000496031.jpg", "height": 500, "width": 375, "date_captured": "2013-11-20 13:10:33", "flickr_url": "http://farm4.staticflickr.com/3169/2666492488_383a2767d4_z.jpg", "id": 496031}, {"license": 4, "file_name": "000000011754.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000011754.jpg", "height": 480, "width": 640, "date_captured": "2013-11-23 03:28:10", "flickr_url": "http://farm4.staticflickr.com/3418/3380517690_530692ccd4_z.jpg", "id": 11754}, {"license": 1, "file_name": "000000162257.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000162257.jpg", "height": 640, "width": 480, "date_captured": "2013-11-16 04:26:04", "flickr_url": "http://farm7.staticflickr.com/6130/5982097795_153f0e8163_z.jpg", "id": 162257}, {"license": 3, "file_name": "000000109776.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000109776.jpg", "height": 640, "width": 480, "date_captured": "2013-11-21 19:25:01", "flickr_url": "http://farm5.staticflickr.com/4005/4436703905_6f743fec54_z.jpg", "id": 109776}, {"license": 4, "file_name": "000000306627.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000306627.jpg", "height": 640, "width": 480, "date_captured": "2013-11-20 19:25:08", "flickr_url": "http://farm6.staticflickr.com/5463/9957107995_73ecb73318_z.jpg", "id": 306627}, {"license": 4, "file_name": "000000159021.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000159021.jpg", "height": 425, "width": 640, "date_captured": "2013-11-18 02:28:04", "flickr_url": "http://farm8.staticflickr.com/7051/6785939500_340efdea7e_z.jpg", "id": 159021}, {"license": 2, "file_name": "000000270796.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000270796.jpg", "height": 480, "width": 640, "date_captured": "2013-11-22 19:00:53", "flickr_url": "http://farm3.staticflickr.com/2589/3736921592_1e4f83f994_z.jpg", "id": 270796}, {"license": 3, "file_name": "000000104310.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000104310.jpg", "height": 640, "width": 428, "date_captured": "2013-11-20 22:24:25", "flickr_url": "http://farm3.staticflickr.com/2686/4443926814_6a1c47f8b7_z.jpg", "id": 104310}, {"license": 1, "file_name": "000000257414.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000257414.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 07:44:23", "flickr_url": "http://farm6.staticflickr.com/5527/9477573181_bb6c0dde79_z.jpg", "id": 257414}, {"license": 2, "file_name": "000000062060.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000062060.jpg", "height": 334, "width": 640, "date_captured": "2013-11-18 13:15:57", "flickr_url": "http://farm5.staticflickr.com/4032/4415973592_02e948dea6_z.jpg", "id": 62060}, {"license": 3, "file_name": "000000066493.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000066493.jpg", "height": 640, "width": 427, "date_captured": "2013-11-24 13:30:59", "flickr_url": "http://farm4.staticflickr.com/3802/9608726387_2aa35bb038_z.jpg", "id": 66493}, {"license": 1, "file_name": "000000081174.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000081174.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 13:14:48", "flickr_url": "http://farm3.staticflickr.com/2824/10147547376_deb4150f7d_z.jpg", "id": 81174}, {"license": 4, "file_name": "000000128248.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000128248.jpg", "height": 500, "width": 471, "date_captured": "2013-11-15 00:39:34", "flickr_url": "http://farm4.staticflickr.com/3589/3514344432_cc8a244e4a_z.jpg", "id": 128248}, {"license": 3, "file_name": "000000487322.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000487322.jpg", "height": 514, "width": 640, "date_captured": "2013-11-19 23:52:31", "flickr_url": "http://farm9.staticflickr.com/8452/7963365554_86456d342b_z.jpg", "id": 487322}, {"license": 4, "file_name": "000000410755.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000410755.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 21:12:01", "flickr_url": "http://farm8.staticflickr.com/7052/6785123652_786498f106_z.jpg", "id": 410755}, {"license": 4, "file_name": "000000528493.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000528493.jpg", "height": 640, "width": 428, "date_captured": "2013-11-19 23:51:03", "flickr_url": "http://farm4.staticflickr.com/3384/4554037213_3a576830a3_z.jpg", "id": 528493}, {"license": 3, "file_name": "000000083968.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000083968.jpg", "height": 323, "width": 640, "date_captured": "2013-11-22 02:21:25", "flickr_url": "http://farm3.staticflickr.com/2450/3590114920_bb7e715561_z.jpg", "id": 83968}, {"license": 3, "file_name": "000000385644.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000385644.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 00:47:43", "flickr_url": "http://farm8.staticflickr.com/7134/7717454622_7739283e9a_z.jpg", "id": 385644}, {"license": 5, "file_name": "000000399873.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000399873.jpg", "height": 426, "width": 640, "date_captured": "2013-11-24 21:05:51", "flickr_url": "http://farm3.staticflickr.com/2214/1849889530_c07bc99564_z.jpg", "id": 399873}, {"license": 5, "file_name": "000000245139.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000245139.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 01:52:25", "flickr_url": "http://farm4.staticflickr.com/3011/5856271152_beb4d04206_z.jpg", "id": 245139}, {"license": 6, "file_name": "000000216851.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000216851.jpg", "height": 640, "width": 640, "date_captured": "2013-11-20 16:35:13", "flickr_url": "http://farm8.staticflickr.com/7098/7317851254_b6c4800ca6_z.jpg", "id": 216851}, {"license": 3, "file_name": "000000223932.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000223932.jpg", "height": 640, "width": 480, "date_captured": "2013-11-17 18:39:41", "flickr_url": "http://farm4.staticflickr.com/3070/3002202488_29aa9b271d_z.jpg", "id": 223932}, {"license": 2, "file_name": "000000453906.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000453906.jpg", "height": 300, "width": 480, "date_captured": "2013-11-18 16:11:49", "flickr_url": "http://farm4.staticflickr.com/3083/2715824141_ee82080213_z.jpg", "id": 453906}, {"license": 3, "file_name": "000000274671.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000274671.jpg", "height": 480, "width": 640, "date_captured": "2013-11-20 16:49:53", "flickr_url": "http://farm5.staticflickr.com/4066/4614548064_cc96b5c50d_z.jpg", "id": 274671}, {"license": 7, "file_name": "000000303376.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000303376.jpg", "height": 471, "width": 640, "date_captured": "2013-11-16 15:32:20", "flickr_url": "http://farm6.staticflickr.com/5126/5344856156_cb2e9f53b1_z.jpg", "id": 303376}, {"license": 3, "file_name": "000000084202.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000084202.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 22:31:19", "flickr_url": "http://farm8.staticflickr.com/7156/6387437717_c6e2e07431_z.jpg", "id": 84202}, {"license": 3, "file_name": "000000555687.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000555687.jpg", "height": 608, "width": 640, "date_captured": "2013-11-15 18:14:11", "flickr_url": "http://farm8.staticflickr.com/7305/9602794174_141dc1d978_z.jpg", "id": 555687}, {"license": 5, "file_name": "000000369979.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000369979.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 19:34:07", "flickr_url": "http://farm9.staticflickr.com/8183/8376398731_215be68342_z.jpg", "id": 369979}, {"license": 1, "file_name": "000000216510.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000216510.jpg", "height": 426, "width": 640, "date_captured": "2013-11-20 19:08:12", "flickr_url": "http://farm4.staticflickr.com/3063/2960992490_e6f898253f_z.jpg", "id": 216510}, {"license": 3, "file_name": "000000088868.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000088868.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 01:27:31", "flickr_url": "http://farm1.staticflickr.com/126/344559349_827a0e20c2_z.jpg", "id": 88868}, {"license": 3, "file_name": "000000298316.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000298316.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 22:38:06", "flickr_url": "http://farm9.staticflickr.com/8178/8061298306_73851b48b6_z.jpg", "id": 298316}, {"license": 1, "file_name": "000000023015.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000023015.jpg", "height": 480, "width": 640, "date_captured": "2013-11-23 05:38:44", "flickr_url": "http://farm1.staticflickr.com/86/208574495_2b8b89cfc0_z.jpg", "id": 23015}, {"license": 3, "file_name": "000000399441.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000399441.jpg", "height": 640, "width": 480, "date_captured": "2013-11-22 23:03:59", "flickr_url": "http://farm2.staticflickr.com/1060/529686843_67fd221edc_z.jpg", "id": 399441}, {"license": 3, "file_name": "000000411517.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000411517.jpg", "height": 514, "width": 640, "date_captured": "2013-11-20 13:38:14", "flickr_url": "http://farm6.staticflickr.com/5524/10231000954_34c8405a14_z.jpg", "id": 411517}, {"license": 1, "file_name": "000000099405.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000099405.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 13:49:33", "flickr_url": "http://farm8.staticflickr.com/7169/6820468467_27bd5caa66_z.jpg", "id": 99405}, {"license": 2, "file_name": "000000456200.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000456200.jpg", "height": 640, "width": 480, "date_captured": "2013-11-24 20:47:56", "flickr_url": "http://farm5.staticflickr.com/4024/4449397518_5e106599ff_z.jpg", "id": 456200}, {"license": 4, "file_name": "000000233977.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000233977.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 00:32:17", "flickr_url": "http://farm9.staticflickr.com/8209/8201806330_88dd536956_z.jpg", "id": 233977}, {"license": 3, "file_name": "000000452696.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000452696.jpg", "height": 479, "width": 640, "date_captured": "2013-11-18 00:08:52", "flickr_url": "http://farm2.staticflickr.com/1168/867151327_461a9806f6_z.jpg", "id": 452696}, {"license": 4, "file_name": "000000568060.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000568060.jpg", "height": 428, "width": 640, "date_captured": "2013-11-16 18:17:31", "flickr_url": "http://farm6.staticflickr.com/5227/5622218306_dc6902a0a5_z.jpg", "id": 568060}, {"license": 5, "file_name": "000000178436.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000178436.jpg", "height": 428, "width": 640, "date_captured": "2013-11-22 00:37:24", "flickr_url": "http://farm6.staticflickr.com/5167/5321091713_fb9c3467b1_z.jpg", "id": 178436}, {"license": 4, "file_name": "000000146049.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000146049.jpg", "height": 480, "width": 640, "date_captured": "2013-11-17 02:55:21", "flickr_url": "http://farm4.staticflickr.com/3078/2544778759_81f41977f7_z.jpg", "id": 146049}, {"license": 3, "file_name": "000000021049.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000021049.jpg", "height": 374, "width": 640, "date_captured": "2013-11-20 20:20:58", "flickr_url": "http://farm9.staticflickr.com/8546/8669284005_ffb33b06a7_z.jpg", "id": 21049}, {"license": 1, "file_name": "000000105876.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000105876.jpg", "height": 233, "width": 640, "date_captured": "2013-11-17 10:38:26", "flickr_url": "http://farm9.staticflickr.com/8251/8662928279_28ff944a7e_z.jpg", "id": 105876}, {"license": 6, "file_name": "000000064454.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000064454.jpg", "height": 427, "width": 640, "date_captured": "2013-11-19 22:14:42", "flickr_url": "http://farm9.staticflickr.com/8499/8418719651_ed52a6d8f5_z.jpg", "id": 64454}, {"license": 3, "file_name": "000000424536.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000424536.jpg", "height": 427, "width": 640, "date_captured": "2013-11-20 20:11:56", "flickr_url": "http://farm4.staticflickr.com/3774/8935481039_603e0e238f_z.jpg", "id": 424536}, {"license": 1, "file_name": "000000339202.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000339202.jpg", "height": 384, "width": 500, "date_captured": "2013-11-21 21:47:24", "flickr_url": "http://farm3.staticflickr.com/2200/2487327927_472619663e_z.jpg", "id": 339202}, {"license": 1, "file_name": "000000518081.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000518081.jpg", "height": 500, "width": 400, "date_captured": "2013-11-15 03:36:55", "flickr_url": "http://farm1.staticflickr.com/203/495937513_e933b4631a_z.jpg", "id": 518081}, {"license": 3, "file_name": "000000064974.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000064974.jpg", "height": 640, "width": 436, "date_captured": "2013-11-20 06:03:27", "flickr_url": "http://farm3.staticflickr.com/2777/4406319493_44e3aa6d59_z.jpg", "id": 64974}, {"license": 2, "file_name": "000000377226.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000377226.jpg", "height": 424, "width": 640, "date_captured": "2013-11-17 00:06:55", "flickr_url": "http://farm9.staticflickr.com/8216/8277559978_c6db219785_z.jpg", "id": 377226}, {"license": 5, "file_name": "000000507154.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000507154.jpg", "height": 480, "width": 640, "date_captured": "2013-11-25 19:25:22", "flickr_url": "http://farm9.staticflickr.com/8176/8034655381_ee423544f7_z.jpg", "id": 507154}, {"license": 5, "file_name": "000000244979.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000244979.jpg", "height": 480, "width": 640, "date_captured": "2013-11-19 00:19:44", "flickr_url": "http://farm8.staticflickr.com/7380/9774610241_1fd59f1ede_z.jpg", "id": 244979}, {"license": 1, "file_name": "000000220699.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000220699.jpg", "height": 480, "width": 640, "date_captured": "2013-11-24 06:39:53", "flickr_url": "http://farm3.staticflickr.com/2519/3833000157_1cf4cb9ea0_z.jpg", "id": 220699}, {"license": 5, "file_name": "000000064908.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000064908.jpg", "height": 480, "width": 640, "date_captured": "2013-11-16 04:11:12", "flickr_url": "http://farm7.staticflickr.com/6199/6096995027_671a831fea_z.jpg", "id": 64908}, {"license": 3, "file_name": "000000310753.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000310753.jpg", "height": 427, "width": 640, "date_captured": "2013-11-24 13:34:16", "flickr_url": "http://farm8.staticflickr.com/7370/9779863073_3025c4cf2c_z.jpg", "id": 310753}, {"license": 4, "file_name": "000000543882.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000543882.jpg", "height": 434, "width": 640, "date_captured": "2013-11-14 20:08:36", "flickr_url": "http://farm9.staticflickr.com/8488/8272158148_bcfd89c9b9_z.jpg", "id": 543882}, {"license": 3, "file_name": "000000279237.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000279237.jpg", "height": 431, "width": 640, "date_captured": "2013-11-16 04:51:14", "flickr_url": "http://farm2.staticflickr.com/1418/5166180191_8e4708eddd_z.jpg", "id": 279237}, {"license": 5, "file_name": "000000534521.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000534521.jpg", "height": 480, "width": 640, "date_captured": "2013-11-15 11:33:12", "flickr_url": "http://farm3.staticflickr.com/2016/2432839787_a050ea1485_z.jpg", "id": 534521}, {"license": 5, "file_name": "000000250345.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000250345.jpg", "height": 427, "width": 640, "date_captured": "2013-11-21 01:07:57", "flickr_url": "http://farm3.staticflickr.com/2811/10218861573_7286d18e88_z.jpg", "id": 250345}, {"license": 3, "file_name": "000000130647.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000130647.jpg", "height": 371, "width": 467, "date_captured": "2013-11-16 22:54:14", "flickr_url": "http://farm1.staticflickr.com/90/257590609_8b6b6caf5a_z.jpg", "id": 130647}, {"license": 1, "file_name": "000000561015.jpg", "coco_url": "http://images.cocodataset.org/train2017/000000561015.jpg", "height": 640, "width": 427, "date_captured": "2013-11-20 01:32:44", "flickr_url": "http://farm8.staticflickr.com/7174/6423138333_ef0e8d1212_z.jpg", "id": 561015}], "annotations": [{"segmentation": [[640.0, 190.64, 640.0, 190.64, 622.82, 176.84, 606.43, 183.74, 595.21, 211.34, 588.31, 248.44, 583.14, 287.25, 572.78, 292.43, 566.75, 281.22, 569.33, 270.86, 540.0, 214.79, 505.5, 295.88, 477.03, 269.14, 463.23, 306.23, 445.12, 303.64, 457.19, 259.65, 433.04, 282.94, 416.65, 313.13, 408.88, 306.23, 432.18, 243.26, 426.14, 244.12, 420.1, 234.63, 431.31, 170.8, 408.88, 161.31, 401.12, 146.65, 407.16, 108.69, 415.79, 51.76, 448.57, 20.7, 474.44, 6.9, 499.46, 4.31, 537.42, 14.66, 571.92, 37.09, 603.84, 63.83, 639.21, 4.31, 372.65, 0.86, 365.75, 217.38, 395.95, 211.34, 386.46, 238.08, 416.65, 251.89, 400.26, 309.68, 371.79, 316.58, 370.93, 354.54, 447.7, 353.68, 484.8, 324.35, 524.48, 335.56, 528.79, 314.0, 560.71, 301.06, 608.15, 304.51, 618.5, 285.53, 640.0, 294.16, 639.21, 192.37, 639.21, 192.37]], "area": 32993.98180000002, "iscrowd": 0, "image_id": 471175, "bbox": [365.75, 0.86, 274.25, 353.68], "category_id": 18, "id": 2259}, {"segmentation": [[75.74, 224.75, 74.45, 231.24, 92.61, 242.92, 101.69, 253.94, 107.53, 281.19, 97.8, 279.25, 99.1, 268.87, 97.15, 260.43, 88.07, 261.08, 90.02, 279.25, 84.83, 280.54, 84.83, 269.52, 81.58, 279.25, 77.69, 279.25, 81.58, 266.92, 77.04, 261.08, 74.45, 279.25, 71.85, 279.25, 71.85, 248.11, 67.96, 239.67, 58.23, 237.72, 62.12, 227.34, 75.74, 222.8]], "area": 1191.5453500000003, "iscrowd": 0, "image_id": 382406, "bbox": [58.23, 222.8, 49.3, 58.39], "category_id": 18, "id": 7158}, {"segmentation": [[241.72, 150.39, 242.77, 150.28, 242.99, 154.12, 242.66, 159.7, 242.77, 162.65, 243.21, 163.2, 243.97, 158.93, 244.19, 157.4, 244.63, 162.76, 245.95, 162.55, 245.84, 158.39, 246.38, 157.84, 251.64, 157.95, 252.3, 158.17, 252.19, 162.44, 252.51, 164.84, 253.39, 164.08, 253.39, 165.5, 254.38, 165.06, 255.03, 158.82, 256.24, 158.06, 257.66, 154.44, 258.21, 152.36, 259.85, 150.83, 262.37, 149.41, 262.26, 148.31, 260.51, 146.34, 258.75, 146.01, 256.56, 147.11, 254.81, 150.28, 251.31, 149.74, 248.24, 150.06, 246.05, 149.3, 243.87, 148.53, 239.92, 147.33, 236.97, 147.98, 236.2, 150.61, 237.63, 148.86, 241.35, 148.75]], "area": 184.96249999999995, "iscrowd": 0, "image_id": 535483, "bbox": [236.2, 146.01, 26.17, 19.49], "category_id": 18, "id": 7793}, {"segmentation": [[567.14, 258.17, 563.23, 299.81, 552.82, 314.77, 546.32, 345.35, 545.67, 348.6, 545.02, 403.9, 574.94, 405.85, 586.0, 394.14, 592.51, 317.37, 587.95, 299.81, 579.5, 282.89, 582.75, 262.73, 576.24, 257.52, 569.74, 259.48]], "area": 4919.48955, "iscrowd": 0, "image_id": 214007, "bbox": [545.02, 257.52, 47.49, 148.33], "category_id": 44, "id": 81211}, {"segmentation": [[605.73, 255.47, 606.69, 233.56, 607.02, 222.61, 607.66, 213.27, 612.81, 213.27, 615.71, 208.76, 614.42, 202.96, 617.97, 199.41, 623.77, 199.41, 623.77, 210.37, 628.6, 218.1, 625.7, 248.06, 622.8, 248.06, 616.68, 249.35, 616.04, 256.11, 614.42, 258.37, 607.02, 259.01, 605.4, 256.11]], "area": 943.2506499999996, "iscrowd": 0, "image_id": 425578, "bbox": [605.4, 199.41, 23.2, 59.6], "category_id": 44, "id": 82029}, {"segmentation": [[81.78, 247.46, 83.39, 248.26, 83.39, 249.86, 83.39, 251.3, 83.39, 251.62, 83.39, 252.74, 83.71, 254.03, 83.87, 255.63, 85.15, 256.91, 85.95, 258.03, 85.95, 259.31, 85.79, 261.55, 85.79, 262.51, 85.63, 263.95, 85.31, 264.91, 86.27, 267.47, 87.71, 270.03, 89.15, 271.8, 89.63, 273.08, 91.07, 275.8, 90.27, 278.52, 90.11, 282.84, 90.27, 285.08, 90.27, 288.13, 90.11, 300.61, 89.31, 301.89, 85.63, 302.85, 81.94, 303.49, 79.7, 303.33, 77.62, 302.05, 76.5, 301.89, 76.02, 283.0, 75.54, 279.0, 76.98, 277.56, 77.94, 275.48, 78.9, 272.6, 79.7, 270.68, 79.54, 268.75, 80.34, 266.99, 80.66, 265.55, 80.34, 262.99, 79.7, 260.27, 79.7, 256.43, 78.74, 253.06, 77.62, 252.26, 78.58, 249.86, 80.34, 247.78, 82.42, 247.78]], "area": 559.0579, "iscrowd": 0, "image_id": 536972, "bbox": [75.54, 247.46, 15.53, 56.03], "category_id": 44, "id": 88091}, {"segmentation": [[512.66, 332.84, 513.48, 302.58, 523.3, 293.17, 525.75, 266.18, 525.34, 259.63, 530.66, 256.77, 527.39, 245.73, 537.61, 246.55, 537.61, 255.95, 540.47, 256.77, 539.25, 273.13, 541.7, 294.81, 548.65, 302.17, 548.65, 325.89, 548.65, 333.25, 547.83, 338.57, 544.97, 399.51, 521.25, 401.96, 508.98, 396.23, 511.03, 375.79, 513.89, 336.93, 513.48, 331.62]], "area": 4321.364400000003, "iscrowd": 0, "image_id": 214007, "bbox": [508.98, 245.73, 39.67, 156.23], "category_id": 44, "id": 88849}, {"segmentation": [[99.29, 355.39, 121.09, 345.4, 137.43, 343.59, 153.78, 339.96, 156.5, 338.14, 148.33, 258.23, 143.79, 235.53, 141.97, 213.74, 121.09, 185.59, 113.82, 171.97, 106.56, 153.81, 111.1, 151.99, 102.92, 132.01, 95.66, 131.1, 80.22, 132.92, 74.78, 137.46, 72.05, 142.0, 76.59, 156.53, 78.41, 159.25, 77.5, 175.6, 75.68, 194.67, 67.51, 211.92, 65.69, 233.71, 68.42, 247.33, 70.24, 255.51, 72.05, 264.59, 92.03, 347.22]], "area": 13239.750499999998, "iscrowd": 0, "image_id": 51355, "bbox": [65.69, 131.1, 90.81, 224.29], "category_id": 44, "id": 88975}, {"segmentation": [[62.0, 342.54, 55.54, 343.9, 52.54, 345.46, 50.1, 348.24, 49.76, 355.46, 49.08, 360.14, 46.36, 357.85, 45.06, 363.0, 43.98, 367.03, 44.95, 371.24, 46.44, 375.08, 47.01, 377.8, 48.74, 380.29, 48.74, 382.21, 50.91, 382.3, 52.14, 382.33, 52.43, 388.73, 52.82, 392.53, 52.82, 395.59, 52.14, 398.99, 52.48, 404.43, 52.82, 410.21, 52.14, 417.35, 50.1, 422.79, 49.08, 426.19, 87.17, 426.19, 86.49, 423.13, 85.13, 417.35, 83.42, 412.93, 81.04, 405.79, 80.36, 401.03, 79.68, 396.61, 79.39, 389.93, 79.34, 383.35, 79.68, 379.61, 80.02, 377.23, 80.36, 375.19, 79.68, 372.47, 79.0, 370.77, 80.02, 368.05, 79.73, 363.93, 79.0, 361.93, 77.64, 361.25, 77.98, 359.21, 77.88, 357.9, 77.68, 355.72, 77.29, 353.69, 76.45, 351.24, 76.19, 347.11, 75.26, 344.24, 72.2, 342.2, 70.84, 342.2, 67.78, 342.2, 64.72, 341.86, 63.36, 342.2, 62.68, 343.56]], "area": 2513.3347999999996, "iscrowd": 0, "image_id": 465463, "bbox": [43.98, 341.86, 43.19, 84.33], "category_id": 44, "id": 89976}, {"segmentation": [[420.27, 296.6, 421.46, 287.01, 419.87, 279.41, 419.47, 275.82, 419.47, 272.62, 420.67, 271.02, 425.86, 270.22, 428.66, 270.22, 431.06, 274.22, 431.46, 289.01, 431.46, 295.8, 424.26, 294.6, 423.06, 294.6]], "area": 264.4941499999999, "iscrowd": 0, "image_id": 536972, "bbox": [419.47, 270.22, 11.99, 26.38], "category_id": 44, "id": 91141}, {"segmentation": [[91.53, 299.82, 90.22, 277.14, 93.12, 272.92, 93.12, 267.38, 92.85, 264.22, 92.06, 258.42, 92.33, 248.92, 91.27, 247.6, 90.22, 246.02, 96.02, 245.76, 96.28, 260.52, 99.18, 269.49, 99.71, 279.51, 100.76, 291.11, 100.76, 300.34, 93.38, 301.66, 92.06, 301.4]], "area": 385.51530000000014, "iscrowd": 0, "image_id": 536972, "bbox": [90.22, 245.76, 10.54, 55.9], "category_id": 44, "id": 91875}, {"segmentation": [[74.16, 147.78, 79.66, 168.38, 78.28, 194.47, 68.67, 199.97, 60.43, 156.02, 81.03, 123.06, 68.67, 22.8, 97.51, 18.68, 118.11, 112.07, 144.21, 143.66, 156.57, 290.61, 156.57, 300.22, 140.09, 217.82, 123.61, 188.98, 96.14, 127.18]], "area": 7788.798200000002, "iscrowd": 0, "image_id": 51355, "bbox": [60.43, 18.68, 96.14, 281.54], "category_id": 44, "id": 93855}, {"segmentation": [[636.47, 217.73, 633.05, 216.97, 633.05, 216.97, 633.05, 217.73, 633.05, 220.02, 631.15, 229.53, 631.15, 229.53, 631.15, 232.57, 631.15, 233.33, 630.77, 237.14, 629.63, 240.18, 628.48, 243.98, 627.34, 247.03, 626.2, 248.93, 626.2, 250.07, 625.82, 252.35, 625.82, 255.78, 625.44, 259.96, 624.3, 262.25, 623.16, 265.29, 622.78, 269.09, 622.78, 270.62, 623.16, 272.52, 625.44, 274.8, 630.39, 275.94, 633.81, 275.56, 633.81, 272.14, 634.19, 269.85, 634.57, 263.39, 634.57, 258.82, 634.95, 253.5, 635.33, 249.69, 635.33, 242.08, 636.09, 237.9, 636.09, 232.57, 636.47, 229.91, 637.24, 226.86, 637.24, 223.06, 637.24, 219.63, 637.24, 218.49]], "area": 442.52765000000204, "iscrowd": 0, "image_id": 425578, "bbox": [622.78, 216.97, 14.46, 58.97], "category_id": 44, "id": 94318}, {"segmentation": [[409.25, 164.73, 404.79, 170.37, 406.28, 190.28, 415.78, 192.66, 418.76, 190.28, 419.05, 189.39, 420.24, 173.94, 419.05, 167.7, 415.78, 165.62, 413.7, 163.24]], "area": 362.1887000000002, "iscrowd": 0, "image_id": 425578, "bbox": [404.79, 163.24, 15.45, 29.42], "category_id": 44, "id": 96340}, {"segmentation": [[135.91, 420.57, 165.29, 366.39, 269.97, 392.11, 286.5, 402.21, 331.5, 372.82, 365.48, 383.84, 375.58, 421.49, 140.5, 422.41]], "area": 8940.513000000008, "iscrowd": 0, "image_id": 536972, "bbox": [135.91, 366.39, 239.67, 56.02], "category_id": 63, "id": 98807}, {"segmentation": [[89.1, 199.7, 91.54, 194.31, 93.99, 190.39, 95.95, 188.92, 97.42, 188.44, 99.87, 197.25, 106.24, 214.89, 107.22, 229.58, 110.16, 239.38, 125.34, 224.68, 139.55, 224.19, 160.12, 222.23, 180.21, 222.72, 177.76, 235.46, 174.82, 242.32, 181.19, 247.22, 179.72, 251.62, 181.19, 258.97, 182.65, 282.48, 186.57, 323.63, 179.72, 323.63, 175.8, 287.38, 112.12, 296.69, 114.57, 326.0, 106.24, 325.59, 101.83, 263.87, 99.87, 259.95, 86.16, 251.13, 97.42, 242.81, 95.95, 225.66, 90.08, 201.17]], "area": 6338.3147999999965, "iscrowd": 0, "image_id": 374628, "bbox": [86.16, 188.44, 100.41, 137.56], "category_id": 62, "id": 104472}, {"segmentation": [[496.99, 213.48, 497.66, 192.9, 497.66, 178.29, 498.65, 169.66, 500.64, 166.67, 506.62, 166.67, 533.17, 167.67, 547.12, 168.0, 553.09, 170.66, 555.41, 175.3, 551.43, 250.32, 551.76, 257.29, 551.1, 263.27, 547.12, 264.6, 547.12, 257.63, 546.45, 247.34, 545.79, 246.34, 545.12, 252.32, 543.46, 249.99, 543.46, 247.0, 499.65, 243.02, 498.32, 259.62, 495.66, 260.28, 494.67, 258.29, 496.33, 230.07, 496.66, 212.48]], "area": 4537.598949999998, "iscrowd": 0, "image_id": 374628, "bbox": [494.67, 166.67, 60.74, 97.93], "category_id": 62, "id": 108463}, {"segmentation": [[425.08, 162.49, 426.08, 175.05, 413.01, 234.87, 414.52, 234.87, 419.55, 220.29, 426.58, 217.28, 425.08, 222.8, 428.09, 223.81, 433.62, 202.2, 440.16, 205.71, 457.75, 238.89, 460.26, 238.39, 451.72, 219.79, 456.74, 212.25, 466.29, 231.35, 469.31, 229.84, 459.76, 199.68, 471.82, 194.15, 469.81, 185.61, 449.2, 185.11, 435.63, 157.46, 423.07, 161.98]], "area": 1950.6561499999996, "iscrowd": 0, "image_id": 374628, "bbox": [413.01, 157.46, 58.81, 81.43], "category_id": 62, "id": 108477}, {"segmentation": [[576.72, 157.11, 583.82, 178.13, 583.82, 178.98, 570.47, 179.55, 570.76, 197.44, 569.34, 205.11, 569.34, 209.37, 569.34, 217.61, 565.08, 248.0, 564.23, 253.4, 558.54, 251.98, 558.54, 238.91, 557.98, 223.01, 558.54, 208.24, 561.95, 188.92, 561.95, 178.98, 556.55, 178.98, 553.55, 174.18, 551.14, 170.57, 545.74, 168.77, 536.13, 171.77, 529.53, 171.77, 522.92, 169.97, 512.71, 168.77, 506.71, 168.77, 500.7, 169.97, 500.7, 177.78, 500.1, 181.98, 497.1, 182.58, 490.49, 182.58, 490.49, 186.19, 486.89, 203.6, 486.89, 210.81, 485.69, 222.82, 484.49, 234.83, 482.09, 242.63, 478.48, 243.83, 478.48, 203.0, 479.69, 187.99, 479.09, 181.98, 477.88, 172.98, 469.48, 172.98, 468.88, 167.57, 491.1, 153.16, 527.73, 156.16, 536.13, 154.96, 538.53, 158.56, 538.53, 161.57, 546.94, 162.17, 548.74, 157.96, 557.15, 155.56]], "area": 3150.124050000003, "iscrowd": 0, "image_id": 374628, "bbox": [468.88, 153.16, 114.94, 100.24], "category_id": 67, "id": 123771}, {"segmentation": [[319.06, 512.0, 364.35, 510.16, 355.86, 452.42, 354.16, 422.42, 340.57, 400.35, 338.87, 394.12, 343.97, 377.71, 341.14, 357.33, 338.87, 349.97, 328.12, 348.84, 324.16, 354.5, 330.38, 359.6, 330.38, 366.95, 324.72, 370.35, 330.95, 382.24, 325.29, 401.48, 315.1, 434.88, 310.01, 440.54, 291.33, 437.14, 269.82, 443.37, 264.73, 454.69, 304.35, 455.82, 308.31, 456.95, 310.57, 496.01, 308.31, 510.72, 317.37, 510.16], [301.52, 428.08, 304.91, 388.46, 305.48, 364.12, 307.18, 349.41, 320.2, 356.2, 321.89, 379.41, 317.93, 400.35, 315.1, 425.82, 313.97, 432.61, 311.71, 437.71, 306.61, 437.71, 300.39, 426.95]], "area": 7317.771200000001, "iscrowd": 0, "image_id": 535483, "bbox": [264.73, 348.84, 99.62, 163.16], "category_id": 2, "id": 125020}, {"segmentation": [[105.79, 323.72, 96.67, 290.89, 94.85, 253.5, 108.53, 227.96, 126.77, 207.89, 151.39, 197.86, 165.08, 194.21, 186.96, 194.21, 194.26, 193.3, 187.88, 187.83, 189.7, 183.27, 228.92, 183.27, 231.65, 178.71, 232.56, 169.59, 221.62, 168.68, 213.41, 165.03, 208.85, 158.65, 209.76, 139.49, 222.53, 140.41, 230.74, 148.61, 240.77, 156.82, 241.68, 147.7, 246.24, 134.93, 246.24, 123.08, 254.45, 117.6, 261.75, 116.69, 269.96, 121.25, 280.9, 122.16, 295.49, 134.02, 289.11, 144.05, 273.61, 140.41, 285.46, 154.09, 288.2, 164.12, 277.25, 162.29, 267.22, 150.44, 257.19, 155.91, 252.63, 167.77, 319.21, 175.97, 341.09, 175.06, 380.31, 183.27, 362.98, 175.06, 352.95, 157.73, 359.33, 155.0, 381.22, 155.91, 419.53, 162.29, 421.35, 171.41, 405.85, 182.36, 396.73, 183.27, 399.46, 187.83, 480.63, 189.65, 480.63, 197.86, 492.49, 225.22, 517.11, 239.81, 527.15, 253.5, 520.76, 263.53, 521.67, 280.86, 517.11, 296.36, 494.31, 348.34, 466.95, 363.85, 425.91, 372.97, 384.87, 360.2, 373.02, 335.58, 363.89, 325.54, 344.74, 323.72, 328.33, 326.46, 319.21, 323.72, 308.26, 323.72, 300.97, 334.66, 290.93, 347.43, 283.64, 329.19, 289.11, 321.9, 300.05, 312.78, 302.79, 291.8, 262.66, 225.22, 244.42, 202.42, 241.68, 205.16, 270.87, 259.88, 265.4, 314.6, 248.98, 334.66, 226.18, 349.26, 217.97, 355.64, 189.7, 362.94, 160.52, 360.2, 142.27, 357.47, 112.18, 333.75, 107.62, 320.98]], "area": 67080.33324999995, "iscrowd": 0, "image_id": 509822, "bbox": [94.85, 116.69, 432.3, 256.28], "category_id": 2, "id": 125101}, {"segmentation": [[425.07, 230.66, 450.82, 230.66, 449.64, 233.32, 440.76, 233.32, 441.35, 245.45, 445.49, 249.6, 446.97, 257.88, 446.38, 264.39, 445.79, 271.2, 444.9, 276.23, 439.28, 277.12, 436.91, 273.27, 436.32, 262.03, 433.06, 260.84, 431.29, 265.87, 427.44, 268.83, 423.29, 266.76, 422.41, 260.25, 422.11, 250.48, 423.89, 243.09, 425.96, 241.61, 427.14, 245.45, 426.85, 261.73, 427.44, 265.87, 429.51, 264.69, 430.99, 258.18, 436.32, 251.67, 436.02, 245.16, 438.98, 241.61, 437.2, 233.91, 425.96, 232.73, 426.25, 231.25]], "area": 552.7528000000002, "iscrowd": 0, "image_id": 436350, "bbox": [422.11, 230.66, 28.71, 46.46], "category_id": 2, "id": 127040}, {"segmentation": [[330.65, 21.64, 298.39, 53.09, 291.13, 68.41, 295.16, 88.58, 295.97, 106.32, 301.61, 122.45, 321.77, 103.9, 324.19, 99.87, 334.68, 113.58, 336.29, 121.64, 341.94, 126.48, 351.61, 128.09, 351.61, 143.41, 345.16, 170.83, 337.9, 174.87, 337.9, 178.9, 343.55, 186.16, 391.94, 186.96, 413.71, 182.93, 410.48, 193.41, 432.26, 198.25, 439.52, 192.61, 449.19, 174.06, 448.39, 153.09, 454.03, 136.16, 458.87, 131.32, 456.45, 149.06, 459.68, 150.67, 467.74, 149.06, 473.39, 135.35, 475.0, 95.83, 476.61, 81.32, 473.39, 61.16, 469.35, 55.51, 457.26, 33.74, 442.74, 16.8, 439.52, 13.58]], "area": 24308.134149999998, "iscrowd": 0, "image_id": 178078, "bbox": [291.13, 13.58, 185.48, 184.67], "category_id": 3, "id": 132832}, {"segmentation": [[443.31, 18.58, 454.91, 27.81, 464.13, 43.35, 471.77, 56.53, 473.88, 60.22, 475.99, 69.7, 478.36, 77.34, 478.36, 82.09, 476.25, 93.15, 480.2, 93.42, 482.31, 98.69, 484.16, 101.59, 489.16, 102.64, 493.11, 101.59, 494.7, 98.69, 496.01, 92.36, 496.28, 87.09, 498.12, 82.09, 500.0, 75.24, 499.7, 28.6, 492.06, 15.95, 488.11, 15.68, 483.63, 15.42, 476.25, 14.63, 468.08, 14.63, 449.9, 15.68, 445.95, 15.95, 443.31, 16.21, 441.21, 17.27]], "area": 2584.462499999999, "iscrowd": 0, "image_id": 178078, "bbox": [441.21, 14.63, 58.79, 88.01], "category_id": 3, "id": 133414}, {"segmentation": [[639.91, 261.49, 624.42, 263.24, 619.42, 267.74, 616.42, 270.99, 614.17, 273.99, 612.92, 275.74, 611.92, 284.99, 612.17, 295.24, 617.42, 289.99, 619.67, 293.49, 622.67, 295.99, 625.17, 289.99, 633.17, 289.99, 639.17, 290.74]], "area": 711.6750000000002, "iscrowd": 0, "image_id": 429042, "bbox": [611.92, 261.49, 27.99, 34.5], "category_id": 3, "id": 134022}, {"segmentation": [[463.45, 14.55, 476.28, 10.42, 482.24, 10.27, 490.18, 10.57, 499.96, 10.57, 499.96, 28.6, 497.06, 22.95, 493.85, 17.6, 492.17, 15.01, 472.92, 14.7]], "area": 183.7319999999997, "iscrowd": 0, "image_id": 178078, "bbox": [463.45, 10.27, 36.51, 18.33], "category_id": 3, "id": 136778}, {"segmentation": [[4.88, 202.82, 48.81, 212.58, 75.65, 228.85, 79.72, 252.44, 52.87, 265.46, 29.28, 276.03, 13.02, 281.72, 1.63, 278.47, 3.25, 204.45]], "area": 4313.704599999999, "iscrowd": 0, "image_id": 436350, "bbox": [1.63, 202.82, 78.09, 78.9], "category_id": 3, "id": 138623}, {"segmentation": [[98.33, 175.13, 98.33, 150.78, 94.59, 139.54, 91.78, 125.49, 52.44, 124.56, 35.59, 154.52, 38.4, 173.25, 49.63, 175.13, 57.13, 158.27, 61.81, 177.0, 97.4, 171.38]], "area": 2627.0035499999994, "iscrowd": 0, "image_id": 382406, "bbox": [35.59, 124.56, 62.74, 52.44], "category_id": 3, "id": 140176}, {"segmentation": [[125.44, 130.34, 141.95, 130.92, 145.67, 131.73, 149.28, 136.85, 146.83, 136.85, 145.67, 139.75, 144.04, 136.27, 136.72, 136.27, 136.37, 138.01, 131.72, 138.36, 131.02, 140.1, 127.07, 140.22, 125.09, 142.54, 123.35, 141.15, 121.95, 138.36, 119.39, 137.08, 123.46, 130.1]], "area": 203.21425000000028, "iscrowd": 0, "image_id": 382406, "bbox": [119.39, 130.1, 29.89, 12.44], "category_id": 3, "id": 142566}, {"segmentation": [[154.52, 135.09, 151.62, 124.66, 150.17, 124.37, 147.57, 123.5, 134.53, 122.34, 128.74, 126.11, 127.58, 127.85, 127.0, 130.74, 132.8, 131.32, 142.06, 130.16, 145.83, 131.32, 148.73, 136.25, 149.31, 136.82, 152.78, 137.98, 155.1, 135.67, 155.97, 134.22]], "area": 223.2046999999998, "iscrowd": 0, "image_id": 382406, "bbox": [127.0, 122.34, 28.97, 15.64], "category_id": 3, "id": 143897}, {"segmentation": [[0.0, 128.69, 3.52, 127.82, 8.15, 130.43, 16.26, 132.74, 21.19, 132.74, 22.63, 144.04, 17.13, 144.62, 11.05, 144.62, 12.21, 144.04, 11.63, 136.22, 11.34, 134.19, 8.15, 136.22, 6.7, 136.8, 6.99, 149.25, 2.07, 149.54, 3.23, 137.67, 3.23, 135.64, 0.91, 134.48]], "area": 245.30549999999988, "iscrowd": 0, "image_id": 382406, "bbox": [0.0, 127.82, 22.63, 21.72], "category_id": 3, "id": 145460}, {"segmentation": [[324.39, 301.08, 307.51, 310.47, 301.88, 312.35, 296.25, 298.28, 285.94, 285.14, 278.43, 281.39, 275.62, 292.65, 280.31, 297.34, 291.56, 299.22, 300.94, 315.16, 286.88, 317.98, 285.94, 322.66, 304.7, 332.98, 312.19, 347.98, 323.46, 391.13, 305.64, 396.76, 293.44, 397.7, 290.62, 412.7, 270.92, 409.89, 265.31, 423.96, 251.23, 414.58, 244.67, 438.97, 248.41, 447.41, 304.7, 455.85, 321.58, 441.78, 333.77, 412.7, 333.77, 442.72, 333.77, 460.54, 337.52, 468.05, 347.84, 474.61, 401.3, 473.67, 406.93, 446.48, 388.17, 414.58, 397.56, 410.83, 370.36, 390.19, 359.09, 366.74, 353.47, 351.74, 344.09, 344.23, 334.71, 333.92, 337.52, 318.91], [209.02, 351.74, 193.08, 331.1, 190.26, 322.66, 165.88, 317.98, 157.44, 322.66, 167.75, 347.98, 152.75, 350.8, 149.93, 365.8, 143.36, 371.43, 143.36, 379.88, 128.36, 395.82, 170.57, 373.31, 179.01, 379.88, 162.12, 386.45, 153.69, 395.82, 148.06, 411.76, 149.93, 426.78, 161.18, 445.54, 178.07, 455.85, 195.89, 454.91, 202.46, 446.48, 224.97, 442.72, 225.9, 405.21, 233.41, 392.07]], "area": 20597.109750000003, "iscrowd": 0, "image_id": 429042, "bbox": [128.36, 281.39, 278.57, 193.22], "category_id": 4, "id": 150823}, {"segmentation": [[61.24, 150.25, 61.24, 150.25, 62.08, 150.25, 67.11, 149.41, 73.83, 145.22, 78.86, 141.86, 88.93, 135.15, 97.32, 134.31, 103.19, 137.66, 134.23, 147.73, 143.46, 149.41, 145.13, 150.25, 163.59, 151.09, 180.37, 151.93, 207.21, 148.57, 228.19, 145.22, 262.58, 144.38, 262.58, 132.63, 239.09, 144.38, 231.54, 137.66, 229.87, 129.28, 233.22, 124.24, 233.22, 124.24, 230.7, 117.53, 228.19, 115.85, 228.19, 109.14, 229.87, 108.3, 237.42, 109.14, 241.61, 110.82, 250.84, 113.34, 253.36, 114.18, 257.55, 114.18, 268.46, 117.53, 279.36, 124.24, 282.72, 113.34, 279.36, 100.75, 277.68, 96.56, 269.3, 87.33, 258.39, 61.32, 264.26, 47.06, 270.97, 46.22, 272.65, 50.42, 280.2, 63.84, 282.72, 45.38, 281.88, 31.12, 279.36, 29.44, 268.46, 34.48, 258.39, 38.67, 260.91, 22.73, 262.58, 19.38, 265.1, 15.18, 271.81, 8.47, 273.49, 19.38, 273.49, 19.38, 285.23, 22.73, 286.91, 28.6, 287.75, 68.87, 287.75, 68.87, 291.11, 76.42, 293.62, 85.65, 296.14, 103.27, 309.56, 119.21, 315.44, 103.27, 322.99, 99.07, 333.89, 109.14, 331.38, 125.08, 339.77, 121.73, 350.67, 132.63, 349.83, 149.41, 347.32, 161.99, 341.44, 165.35, 343.96, 183.81, 347.32, 208.97, 368.29, 207.3, 387.58, 214.85, 406.88, 229.11, 419.46, 245.89, 430.37, 270.22, 436.24, 289.51, 440.44, 306.29, 434.56, 334.81, 421.14, 347.4, 411.07, 360.82, 402.68, 368.37, 390.94, 369.21, 389.26, 369.21, 353.19, 364.18, 324.66, 352.43, 318.79, 346.56, 316.28, 341.52, 307.05, 328.1, 295.3, 308.81, 286.07, 283.64, 286.91, 262.66, 290.27, 253.44, 289.43, 246.73, 276.85, 255.11, 269.3, 271.05, 267.62, 273.57, 258.39, 290.35, 256.71, 291.19, 251.68, 294.54, 248.32, 294.54, 242.45, 294.54, 235.74, 294.54, 220.64, 296.22, 213.93, 293.71, 193.79, 290.35, 185.4, 288.67, 161.07, 287.83, 153.52, 285.32, 150.17, 283.64, 144.3, 282.8, 139.26, 284.48, 134.23, 292.03, 123.32, 297.9, 118.29, 297.9, 103.19, 300.42, 90.6, 294.54, 83.89, 291.19, 70.47, 279.44, 67.11, 273.57, 65.44, 268.54, 60.4, 259.31, 60.4, 255.95, 56.21, 250.92, 54.53, 248.4, 49.5, 241.69, 58.72, 240.85, 58.72, 240.85, 59.56, 235.82, 64.6, 205.62, 64.6, 205.62, 52.85, 196.39, 52.85, 196.39, 52.85, 196.39, 48.66, 198.07, 58.72, 172.9, 58.72, 172.06, 57.89, 167.87, 51.17, 163.67, 51.17, 159.48, 51.17, 150.25, 62.92, 146.05]], "area": 61351.138849999974, "iscrowd": 0, "image_id": 178078, "bbox": [48.66, 8.47, 391.78, 360.74], "category_id": 4, "id": 152158}, {"segmentation": [[306.51, 336.23, 292.26, 337.18, 289.41, 356.18, 312.21, 360.93, 314.11, 353.33], [375.86, 380.88, 390.11, 345.73, 373.01, 305.83, 382.51, 289.68, 391.06, 283.98, 395.81, 267.83, 395.81, 285.88, 400.56, 302.98, 400.56, 313.43, 407.21, 326.73, 422.41, 321.03, 429.06, 343.83, 426.21, 355.23, 446.16, 370.43, 440.46, 380.88, 452.81, 391.33, 452.81, 410.33, 443.31, 423.63, 426.21, 427.43, 408.16, 420.78, 398.66, 411.28, 394.86, 397.98, 407.21, 377.08, 407.21, 370.43, 390.11, 392.28, 384.41, 397.98]], "area": 6419.031249999998, "iscrowd": 0, "image_id": 429042, "bbox": [289.41, 267.83, 163.4, 159.6], "category_id": 4, "id": 153072}, {"segmentation": [[497.2, 325.58, 504.4, 348.96, 518.78, 359.75, 527.77, 365.14, 534.07, 365.14, 539.46, 365.14, 555.65, 359.75, 561.04, 351.65, 561.94, 343.56, 561.94, 331.87, 561.94, 330.08, 598.8, 308.5, 602.4, 305.8, 611.39, 315.69, 626.67, 315.69, 633.87, 301.3, 633.87, 294.11, 627.57, 278.83, 619.48, 256.35, 612.29, 246.46, 605.1, 235.67, 598.8, 226.68, 596.11, 222.18, 604.2, 213.19, 604.2, 198.81, 612.29, 199.71, 610.49, 193.41, 605.1, 189.82, 602.4, 187.12, 602.4, 179.03, 602.4, 176.33, 599.7, 170.04, 594.31, 167.34, 588.01, 170.93, 588.01, 171.83, 587.11, 175.43, 579.92, 175.43, 572.73, 170.93, 569.13, 168.24, 559.24, 168.24, 554.75, 168.24, 543.96, 170.93, 536.76, 176.33, 532.27, 186.22, 531.37, 192.51, 531.37, 203.3, 528.67, 212.29, 526.87, 212.29, 517.88, 206.0, 514.29, 206.0, 508.89, 206.9, 505.3, 206.9, 494.51, 208.7, 494.51, 211.39, 497.2, 216.79, 499.0, 220.39, 509.79, 222.18, 513.39, 220.39, 512.49, 223.08, 512.49, 224.88, 511.59, 230.28, 514.29, 237.47, 530.47, 228.48, 534.07, 223.08, 541.26, 222.18, 536.76, 229.38, 535.87, 233.87, 535.87, 238.37, 536.76, 243.76, 534.07, 251.85, 526.87, 260.84, 520.58, 266.24, 516.09, 270.73, 501.7, 274.33, 485.52, 265.34, 476.52, 265.34, 470.23, 268.04, 470.23, 270.73, 472.03, 277.93, 474.73, 284.22, 476.52, 295.01, 477.42, 300.41, 477.42, 311.19, 480.12, 328.28, 488.21, 323.78, 493.61, 327.38, 496.3, 330.08]], "area": 18212.201699999987, "iscrowd": 0, "image_id": 136833, "bbox": [470.23, 167.34, 163.64, 197.8], "category_id": 4, "id": 153100}, {"segmentation": [[85.61, 388.44, 109.04, 342.49, 144.18, 333.48, 168.51, 307.34, 179.32, 284.82, 159.5, 284.82, 143.28, 270.4, 154.09, 248.77, 154.09, 234.35, 157.7, 207.32, 174.82, 185.69, 187.43, 182.09, 238.8, 229.85, 291.06, 267.69, 308.18, 267.69, 315.39, 293.83, 315.39, 315.45, 314.49, 337.98, 325.31, 348.79, 326.21, 376.73, 346.93, 371.32, 371.26, 372.22, 392.89, 372.22, 401.9, 378.53, 419.02, 386.64, 421.73, 396.55, 85.61, 392.95]], "area": 32333.467149999997, "iscrowd": 0, "image_id": 136833, "bbox": [85.61, 182.09, 336.12, 214.46], "category_id": 4, "id": 155502}, {"segmentation": [[111.39, 509.34, 75.46, 463.83, 93.42, 426.7, 111.39, 399.15, 116.18, 377.59, 103.01, 365.61, 97.02, 368.01, 95.82, 353.64, 104.2, 350.04, 86.24, 326.09, 81.45, 321.3, 105.4, 316.51, 154.51, 332.08, 173.67, 341.66, 188.05, 344.05, 215.6, 350.04, 219.19, 347.65, 240.75, 323.69, 273.09, 316.51, 293.45, 320.1, 285.07, 309.32, 317.4, 305.73, 340.16, 304.53, 350.94, 286.56, 367.71, 298.54, 355.73, 318.9, 365.31, 329.68, 373.7, 340.46, 373.7, 362.02, 373.7, 369.21, 362.92, 381.18, 359.33, 390.77, 376.09, 406.34, 392.86, 436.28, 390.47, 468.62, 370.11, 493.77, 338.96, 484.19, 325.79, 469.82, 237.16, 481.8, 237.16, 497.37, 227.57, 498.56, 226.38, 482.99, 191.64, 481.8, 161.7, 505.75, 120.97, 516.53, 109.0, 510.54]], "area": 46907.31955, "iscrowd": 0, "image_id": 99389, "bbox": [75.46, 286.56, 317.4, 229.97], "category_id": 4, "id": 155941}, {"segmentation": [[5.16, 183.93, 40.84, 189.34, 73.27, 220.69, 90.57, 317.99, 89.49, 350.42, 84.08, 352.58, 84.08, 456.36, 83.0, 480.0, 0.0, 479.07, 0.84, 188.26]], "area": 23518.03155, "iscrowd": 0, "image_id": 566576, "bbox": [0.0, 183.93, 90.57, 296.07], "category_id": 6, "id": 165320}, {"segmentation": [[549.22, 415.96, 552.58, 353.76, 594.6, 352.92, 598.8, 414.28, 549.22, 419.32], [600.49, 363.85, 603.01, 412.6, 637.47, 411.76, 638.31, 351.24, 630.74, 350.4, 629.9, 364.69]], "area": 4746.631499999996, "iscrowd": 0, "image_id": 566576, "bbox": [549.22, 350.4, 89.09, 68.92], "category_id": 6, "id": 166878}, {"segmentation": [[131.17, 334.64, 242.15, 332.96, 385.93, 331.28, 380.04, 112.67, 379.2, 89.13, 375.84, 85.76, 375.84, 85.76, 345.57, 61.38, 303.53, 51.29, 236.27, 42.88, 162.28, 52.13, 116.87, 82.4, 116.87, 237.11, 117.71, 301.85, 116.03, 304.37, 116.87, 338.0, 127.8, 346.41, 132.01, 338.85]], "area": 73666.55159999998, "iscrowd": 0, "image_id": 436350, "bbox": [116.03, 42.88, 269.9, 303.53], "category_id": 6, "id": 168306}, {"segmentation": [[254.77, 383.13, 249.07, 346.13, 244.8, 334.74, 252.63, 330.47, 255.48, 325.49, 261.88, 287.77, 274.69, 287.77, 274.69, 287.77, 276.83, 265.71, 276.83, 265.71, 259.04, 253.61, 247.65, 248.63, 253.34, 232.26, 258.32, 223.01, 253.34, 212.34, 253.34, 212.34, 241.96, 208.07, 229.15, 213.05, 224.17, 218.74, 223.45, 225.15, 225.59, 230.84, 227.01, 244.36, 199.26, 254.32, 182.89, 293.46, 203.53, 306.27, 197.83, 327.62, 199.97, 338.3, 200.68, 339.01, 209.22, 353.95, 234.84, 387.4, 229.86, 403.06, 228.44, 415.16, 227.01, 437.93, 217.05, 461.41, 226.3, 480.0, 248.36, 480.0, 242.67, 452.16, 242.67, 440.78, 251.21, 400.92]], "area": 10718.157799999999, "iscrowd": 0, "image_id": 429042, "bbox": [182.89, 208.07, 93.94, 271.93], "category_id": 1, "id": 187134}, {"segmentation": [[337.84, 66.59, 317.74, 68.51, 302.41, 105.85, 311.99, 132.66, 307.2, 148.94, 284.22, 161.38, 254.54, 237.98, 247.84, 271.49, 278.47, 277.24, 272.74, 258.09, 293.8, 221.7, 294.76, 256.18, 276.56, 309.79, 268.9, 377.77, 279.43, 412.24, 261.24, 455.33, 268.9, 460.11, 296.66, 434.26, 295.72, 413.2, 307.2, 354.79, 322.52, 341.39, 350.29, 339.47, 349.33, 384.47, 352.2, 415.11, 361.78, 485.96, 360.82, 511.81, 382.84, 511.81, 388.58, 456.29, 390.5, 388.31, 398.16, 335.64, 393.37, 307.87, 389.54, 280.11, 385.71, 243.72, 416.35, 243.72, 433.58, 181.49, 443.16, 164.26, 439.33, 139.36, 432.62, 144.15, 422.1, 157.55, 414.43, 150.85, 412.52, 145.11, 411.56, 182.45, 399.12, 153.72, 368.47, 147.03, 365.6, 122.13, 367.52, 95.32, 358.91, 79.05, 337.84, 67.55]], "area": 39399.29399999999, "iscrowd": 0, "image_id": 535483, "bbox": [247.84, 66.59, 195.32, 445.22], "category_id": 1, "id": 187285}, {"segmentation": [[451.92, 325.53, 459.2, 330.07, 463.74, 336.44, 461.92, 341.9, 459.2, 343.71, 447.37, 348.26, 441.01, 349.17, 434.64, 350.99, 422.82, 349.17, 419.19, 345.53, 419.19, 345.53, 412.82, 340.08, 411.0, 340.08, 411.0, 340.08, 411.0, 340.08, 407.37, 343.71, 393.73, 334.62, 393.73, 326.44, 401.91, 321.89, 403.73, 321.89, 409.18, 315.53, 411.0, 312.8, 414.64, 309.16, 414.64, 300.98, 411.91, 296.43, 411.0, 292.79, 411.0, 283.7, 411.91, 272.79, 411.91, 270.97, 411.91, 260.97, 411.91, 254.6, 411.91, 241.87, 415.55, 232.78, 425.55, 228.23, 431.01, 228.23, 437.37, 212.78, 447.37, 199.14, 448.28, 199.14, 455.56, 201.86, 461.92, 205.5, 467.38, 210.96, 463.74, 220.96, 462.83, 227.32, 460.1, 231.87, 458.29, 236.42, 456.47, 238.24, 462.83, 240.05, 466.47, 243.69, 466.47, 243.69, 471.02, 246.42, 471.02, 260.97, 470.11, 265.51, 469.2, 272.79, 466.47, 280.06, 462.83, 296.43, 460.1, 300.98, 455.56, 311.89, 455.56, 318.25]], "area": 7084.713599999997, "iscrowd": 0, "image_id": 136833, "bbox": [393.73, 199.14, 77.29, 151.85], "category_id": 1, "id": 193905}, {"segmentation": [[295.7, 254.17, 305.62, 244.96, 310.58, 232.91, 312.7, 220.16, 319.79, 215.2, 321.2, 215.2, 326.87, 215.91, 338.21, 219.45, 341.04, 225.12, 339.62, 234.33, 336.79, 241.41, 333.96, 249.92, 333.25, 259.83, 336.79, 266.92, 333.96, 274.0, 351.67, 285.34, 375.05, 298.8, 373.63, 301.63, 373.63, 303.05, 365.13, 307.3, 355.92, 305.18, 349.54, 299.51, 339.62, 291.72, 325.45, 286.76, 311.28, 298.09, 307.03, 301.63, 300.66, 299.51, 298.53, 291.01, 305.62, 286.05, 307.74, 275.42, 305.62, 261.96]], "area": 2870.6319499999995, "iscrowd": 0, "image_id": 429042, "bbox": [295.7, 215.2, 79.35, 92.1], "category_id": 1, "id": 195239}, {"segmentation": [[207.87, 285.09, 206.03, 258.76, 204.8, 236.72, 194.39, 204.88, 195.62, 193.24, 182.15, 196.92, 180.31, 188.34, 183.98, 184.67, 188.27, 167.53, 198.68, 149.77, 207.25, 143.65, 204.19, 129.56, 206.64, 121.6, 216.44, 119.77, 229.3, 124.05, 234.19, 131.4, 238.48, 140.58, 247.67, 154.06, 258.69, 157.12, 263.59, 162.63, 263.59, 173.04, 261.14, 179.77, 248.28, 181.0, 245.83, 204.88, 243.99, 206.1, 232.97, 232.43, 234.81, 267.33, 235.42, 278.97, 228.68, 283.25, 220.11, 280.8, 217.66, 285.7, 210.31, 286.31]], "area": 6989.642349999999, "iscrowd": 0, "image_id": 382406, "bbox": [180.31, 119.77, 83.28, 166.54], "category_id": 1, "id": 199002}, {"segmentation": [[96.91, 348.03, 111.43, 352.37, 108.86, 355.23, 97.43, 356.94, 92.28, 357.23, 89.71, 357.23, 88.28, 357.23, 83.71, 356.94, 83.42, 356.94, 82.57, 354.94, 81.71, 354.08, 81.71, 353.23, 84.85, 346.1, 85.14, 342.67, 86.0, 337.24, 86.0, 332.95, 86.85, 327.52, 88.0, 320.09, 88.28, 314.09, 89.14, 310.37, 89.71, 308.94, 87.71, 308.94, 85.42, 308.37, 80.85, 306.94, 81.99, 301.51, 83.42, 298.37, 84.28, 296.94, 83.71, 294.08, 81.14, 290.08, 79.42, 286.36, 77.71, 278.93, 77.71, 276.36, 77.42, 269.22, 77.42, 261.79, 78.85, 255.2, 79.99, 248.62, 79.99, 243.48, 79.99, 239.48, 79.99, 235.19, 79.42, 229.76, 79.42, 225.76, 80.28, 220.9, 80.85, 217.76, 81.42, 216.04, 84.28, 213.47, 85.14, 212.9, 87.14, 211.75, 88.57, 211.18, 89.71, 208.04, 87.43, 205.75, 86.85, 203.75, 86.85, 201.18, 88.0, 197.46, 89.71, 194.61, 90.57, 191.18, 91.71, 190.6, 102.29, 186.89, 104.57, 186.89, 112.58, 190.03, 112.86, 191.18, 113.15, 196.89, 113.15, 198.03, 111.15, 203.75, 110.58, 205.18, 112.0, 208.04, 112.58, 210.32, 114.58, 211.75, 114.58, 214.61, 109.43, 214.33, 107.15, 213.18, 103.72, 213.18, 99.14, 213.75, 98.29, 214.9, 97.43, 216.9, 99.71, 220.61, 102.29, 225.19, 105.14, 227.47, 107.72, 226.9, 111.15, 225.76, 115.15, 225.47, 115.15, 225.76, 116.01, 228.33, 115.43, 230.33, 113.15, 232.05, 110.86, 232.62, 108.29, 234.33, 106.29, 235.47, 109.72, 237.76, 110.86, 236.9, 113.15, 235.19, 114.0, 234.62, 114.86, 237.19, 114.58, 238.9, 113.72, 240.91, 109.15, 243.19, 107.15, 244.62, 106.29, 246.62, 107.43, 249.48, 107.72, 251.48, 106.0, 255.2, 106.0, 256.62, 105.72, 257.2, 104.29, 260.05, 106.86, 261.2, 111.43, 264.91, 113.72, 267.2, 114.58, 270.91, 114.58, 272.63, 114.58, 273.49, 111.72, 274.92, 110.58, 275.2, 110.58, 277.49, 111.15, 287.78, 113.72, 288.35, 116.01, 292.35, 116.01, 294.06, 114.29, 295.78, 111.72, 297.49, 103.99, 299.45, 103.99, 306.42, 108.39, 308.99, 106.55, 313.02, 104.72, 315.59, 99.95, 314.12, 99.22, 321.09, 96.28, 337.6, 94.45, 340.53, 95.18, 342.0, 97.02, 346.03]], "area": 4051.872500000002, "iscrowd": 0, "image_id": 436350, "bbox": [77.42, 186.89, 38.59, 170.34], "category_id": 1, "id": 210719}, {"segmentation": [[1.93, 196.05, 3.25, 195.49, 6.26, 195.3, 7.21, 194.36, 8.9, 193.41, 8.9, 191.91, 8.53, 189.83, 8.9, 187.19, 10.22, 185.5, 14.18, 184.18, 16.26, 184.36, 17.58, 185.5, 18.52, 188.32, 17.77, 190.96, 16.26, 193.98, 15.31, 196.05, 15.31, 197.37, 17.39, 198.51, 18.71, 199.26, 21.16, 201.9, 22.29, 204.35, 23.42, 206.24, 23.8, 206.99, 21.35, 207.18, 0.42, 206.24, 0.61, 197.56, 0.61, 197.0]], "area": 308.99310000000014, "iscrowd": 0, "image_id": 436350, "bbox": [0.42, 184.18, 23.38, 23.0], "category_id": 1, "id": 214222}, {"segmentation": [[273.47, 1.92, 294.58, 27.83, 274.43, 74.84, 263.88, 179.44, 250.44, 189.99, 245.64, 87.32, 225.49, 97.87, 184.23, 181.36, 187.11, 207.26, 110.35, 218.78, 82.52, 213.98, 58.53, 187.11, 48.94, 167.92, 20.15, 174.64, 0.0, 170.8, 0.0, 87.32, 15.35, 77.72, 28.79, 24.95, 35.5, 1.92, 86.36, 1.92, 134.34, 2.88, 195.75, 0.96, 272.51, 4.8]], "area": 46972.916099999995, "iscrowd": 0, "image_id": 471175, "bbox": [0.0, 0.96, 294.58, 217.82], "category_id": 1, "id": 220062}, {"segmentation": [[448.47, 231.19, 451.67, 232.46, 452.15, 231.51, 451.19, 229.27, 449.59, 228.63, 446.72, 221.93, 444.16, 215.06, 443.04, 211.23, 442.89, 210.91, 441.13, 210.43, 440.17, 210.27, 439.37, 210.11, 440.49, 208.35, 440.97, 204.2, 439.69, 201.01, 437.94, 200.53, 435.06, 201.01, 432.51, 203.09, 433.15, 208.67, 429.47, 210.75, 427.08, 212.35, 427.24, 223.36, 424.68, 225.12, 424.05, 229.11, 425.0, 231.03, 428.68, 231.03, 440.49, 230.55, 441.61, 219.37, 441.77, 223.04, 445.12, 226.4, 447.2, 229.75], [425.96, 233.76, 431.71, 233.44, 432.03, 238.87, 432.51, 241.58, 431.39, 245.89, 431.39, 251.8, 431.39, 257.55, 431.39, 259.94, 432.03, 266.01, 428.99, 265.69, 427.24, 264.89, 427.24, 259.47, 427.56, 250.05, 427.24, 244.3]], "area": 598.1299499999999, "iscrowd": 0, "image_id": 436350, "bbox": [424.05, 200.53, 28.1, 65.48], "category_id": 1, "id": 220588}, {"segmentation": [[250.53, 147.66, 253.07, 145.11, 252.12, 140.82, 254.03, 137.48, 255.77, 136.69, 258.79, 137.17, 261.02, 138.44, 261.5, 141.14, 260.22, 145.75, 258.95, 148.93, 257.36, 149.41, 260.86, 151.31, 262.77, 154.49, 261.18, 164.51, 260.54, 167.84, 261.18, 172.13, 260.38, 181.04, 250.53, 180.56, 250.53, 168.16, 254.98, 167.05, 254.18, 164.82, 249.1, 158.78, 250.05, 147.5]], "area": 427.2171500000001, "iscrowd": 0, "image_id": 436350, "bbox": [249.1, 136.69, 13.67, 44.35], "category_id": 1, "id": 225544}, {"segmentation": [[276.29, 262.28, 285.2, 255.92, 294.11, 255.92, 301.75, 257.19, 308.12, 263.55, 309.39, 269.92, 310.66, 277.56, 308.12, 289.02, 301.75, 291.56, 299.2, 295.38, 300.48, 296.66, 301.75, 300.48, 305.57, 297.93, 306.84, 299.2, 308.12, 300.48, 317.03, 295.38, 320.85, 291.56, 325.94, 289.02, 331.03, 289.02, 338.67, 291.56, 337.4, 296.66, 334.85, 299.2, 338.67, 303.02, 337.4, 304.3, 337.4, 308.12, 332.31, 310.66, 325.94, 306.84, 323.4, 304.3, 324.67, 301.75, 313.21, 309.39, 304.3, 311.94, 292.84, 315.76, 282.65, 317.03, 285.2, 327.21, 296.66, 323.4, 297.93, 333.58, 289.02, 334.85, 285.2, 348.86, 281.38, 350.13, 280.11, 343.77, 278.83, 308.12, 266.1, 308.12, 269.92, 296.66, 273.74, 291.56]], "area": 2656.8313000000007, "iscrowd": 0, "image_id": 429042, "bbox": [266.1, 255.92, 72.57, 94.21], "category_id": 1, "id": 227540}, {"segmentation": [[1.08, 418.53, 8.0, 416.37, 12.75, 409.89, 16.21, 401.25, 14.05, 394.77, 13.61, 386.56, 17.93, 379.65, 24.41, 378.79, 27.01, 383.54, 30.46, 389.59, 33.49, 396.5, 35.65, 402.12, 35.22, 406.0, 15.77, 429.33, 1.08, 428.04]], "area": 881.4398, "iscrowd": 0, "image_id": 566576, "bbox": [1.08, 378.79, 34.57, 50.54], "category_id": 1, "id": 227936}, {"segmentation": [[98.46, 394.62, 98.35, 399.8, 98.03, 404.66, 98.03, 408.86, 98.57, 411.56, 98.68, 412.21, 100.4, 415.23, 108.49, 414.79, 108.92, 413.18, 108.92, 412.21, 108.92, 410.91, 110.11, 408.54, 111.94, 408.32, 112.05, 406.6, 112.7, 404.55, 112.81, 402.71, 110.11, 400.56, 108.17, 398.51, 106.01, 396.57, 104.82, 395.49, 102.99, 395.38, 102.24, 394.73, 101.91, 392.9, 101.7, 390.74, 101.16, 390.42, 101.16, 389.55, 100.83, 388.48, 99.76, 387.94, 98.03, 387.94, 97.92, 387.94, 98.68, 395.49], [96.73, 388.91, 94.15, 391.17, 93.93, 392.68, 94.04, 393.87, 95.33, 394.52, 95.87, 394.52, 96.73, 393.76, 96.95, 388.15], [101.05, 417.38, 100.94, 419.97, 100.83, 422.88, 103.42, 422.99, 103.75, 417.49, 101.27, 417.49], [106.44, 417.49, 108.71, 417.17, 109.03, 422.13, 107.09, 422.34, 106.77, 421.7, 106.66, 420.62, 106.66, 419.54, 106.66, 418.68, 106.66, 417.71], [100.51, 424.93, 100.83, 426.34, 101.91, 426.98, 102.45, 426.01, 102.45, 425.47, 102.13, 425.26, 101.59, 425.15, 101.05, 425.15, 100.62, 425.15], [108.28, 425.04, 106.98, 425.37, 106.98, 425.9, 107.52, 426.23, 108.71, 426.34, 109.14, 425.9, 109.25, 425.15]], "area": 291.6605000000001, "iscrowd": 0, "image_id": 566576, "bbox": [93.93, 387.94, 18.88, 39.04], "category_id": 1, "id": 230012}, {"segmentation": [[334.24, 273.74, 336.72, 267.24, 334.86, 259.49, 334.24, 249.58, 337.95, 244.32, 343.53, 242.15, 351.58, 241.53, 358.4, 243.08, 362.43, 248.96, 364.9, 258.56, 363.04, 267.55, 358.09, 274.05, 355.3, 277.15, 353.13, 284.27, 361.19, 284.58, 363.04, 285.2, 365.52, 288.3, 369.55, 290.16, 381.32, 289.85, 384.42, 289.85, 386.28, 292.64, 386.28, 298.21, 378.84, 298.21, 373.27, 295.43, 359.64, 294.19], [357.78, 305.96, 353.75, 318.35, 359.95, 323.92, 375.44, 335.7, 374.51, 350.87, 371.41, 368.22, 369.55, 375.04, 375.75, 378.13, 372.34, 381.23, 369.24, 380.61, 364.9, 371.32, 368.62, 350.56, 365.52, 344.99, 361.5, 344.37, 349.42, 349.63, 347.25, 349.63, 340.74, 338.48, 333.93, 331.05, 333.93, 327.64, 339.81, 325.16, 334.86, 315.56, 332.07, 310.91, 335.79, 310.29]], "area": 2502.817349999999, "iscrowd": 0, "image_id": 429042, "bbox": [332.07, 241.53, 54.21, 139.7], "category_id": 1, "id": 230682}, {"segmentation": [[112.53, 402.55, 110.84, 401.23, 110.08, 399.53, 110.27, 395.57, 111.21, 393.31, 112.15, 391.05, 112.53, 389.35, 113.85, 387.85, 115.36, 386.72, 115.74, 386.34, 114.98, 385.02, 114.42, 383.32, 114.79, 381.82, 115.55, 381.06, 117.62, 380.5, 118.94, 380.12, 120.64, 380.12, 122.33, 381.25, 122.52, 384.08, 122.9, 385.96, 124.41, 386.9, 125.73, 388.22, 127.04, 388.79, 127.61, 389.73, 128.18, 390.3, 128.18, 392.37, 128.18, 395.2, 127.04, 398.4, 126.67, 401.04, 125.91, 403.3, 125.35, 404.81, 124.03, 406.13, 123.09, 408.2, 122.9, 409.71, 121.96, 410.46, 116.3, 410.46, 113.29, 410.46, 112.72, 409.52, 113.1, 407.26, 113.29, 404.62, 113.29, 402.93, 111.78, 401.42]], "area": 384.57279999999986, "iscrowd": 0, "image_id": 566576, "bbox": [110.08, 380.12, 18.1, 30.34], "category_id": 1, "id": 231314}, {"segmentation": [[266.1, 394.76, 264.78, 394.1, 264.61, 391.95, 265.61, 389.63, 265.94, 385.98, 267.1, 383.83, 268.09, 378.53, 271.57, 378.2, 273.56, 382.51, 280.02, 389.79, 281.17, 394.1, 280.02, 398.24, 268.75, 398.24, 265.77, 398.24, 265.61, 395.76]], "area": 226.31390000000007, "iscrowd": 0, "image_id": 566576, "bbox": [264.61, 378.2, 16.56, 20.04], "category_id": 1, "id": 234988}, {"segmentation": [[254.56, 413.12, 277.21, 414.2, 279.37, 375.37, 252.4, 369.98, 251.33, 407.73, 251.33, 418.52]], "area": 1098.1135999999988, "iscrowd": 0, "image_id": 566576, "bbox": [251.33, 369.98, 28.04, 48.54], "category_id": 1, "id": 236624}, {"segmentation": [[192.36, 2.89, 188.51, 25.01, 203.9, 38.47, 222.18, 48.09, 237.56, 51.94, 249.11, 44.24, 257.76, 30.78, 259.69, 17.31, 259.69, 6.73, 257.76, 0.0]], "area": 2820.4705999999996, "iscrowd": 0, "image_id": 456695, "bbox": [188.51, 0.0, 71.18, 51.94], "category_id": 2, "id": 241386}, {"segmentation": [[325.55, 421.39, 322.68, 392.67, 276.72, 403.2, 223.1, 398.41, 208.73, 386.92, 216.74, 420.09, 219.27, 428.0, 325.39, 428.0], [175.68, 295.59, 165.57, 293.06, 157.99, 275.37, 162.41, 262.74, 175.05, 261.47, 169.36, 229.89, 184.52, 227.99, 182.0, 212.83, 200.31, 210.94, 200.95, 183.14, 204.74, 175.56, 205.37, 167.35, 169.36, 166.72, 130.83, 154.71, 96.08, 135.13, 67.66, 87.75, 58.81, 83.96, 42.39, 53.01, 46.81, 43.53, 63.87, 47.32, 82.82, 77.65, 82.82, 86.49, 111.24, 123.76, 145.36, 143.97, 191.47, 152.82, 202.84, 153.45, 194.0, 97.23, 183.89, 84.59, 152.94, 83.96, 141.57, 74.49, 144.72, 53.01, 168.1, 43.53, 200.95, 41.01, 221.79, 44.8, 231.9, 51.11, 234.43, 59.96, 233.16, 68.8, 209.79, 71.33, 204.74, 77.01, 205.37, 88.38, 201.58, 96.6, 212.32, 131.34, 212.32, 152.19, 220.53, 149.03, 221.79, 164.82, 216.74, 167.35, 218.63, 174.93, 224.95, 177.46, 235.06, 229.26, 230.01, 236.2, 230.64, 242.52, 202.84, 261.47, 179.47, 286.11], [333.61, 109.86, 327.29, 89.65, 329.82, 54.27, 321.6, 48.59, 319.71, 42.9, 311.5, 26.48, 308.34, 14.47, 320.97, 5.63, 339.92, 46.06, 355.72, 50.48, 360.14, 58.69, 360.77, 73.85, 354.45, 80.17, 346.24, 80.8]], "area": 17407.085700000003, "iscrowd": 0, "image_id": 456695, "bbox": [42.39, 5.63, 318.38, 422.37], "category_id": 2, "id": 241878}, {"segmentation": [[86.48, 45.82, 62.68, 42.5, 56.04, 40.29, 48.85, 48.59, 51.62, 55.23, 62.68, 59.66, 67.11, 58.0, 82.6, 59.66, 86.48, 65.19, 95.88, 62.98, 102.52, 64.64, 101.97, 76.26, 128.53, 85.66, 127.98, 92.3, 119.68, 103.92, 108.06, 106.69, 96.44, 116.65, 84.26, 134.36, 81.5, 149.3, 70.98, 168.66, 53.83, 193.56, 43.87, 225.1, 47.74, 230.08, 49.96, 235.62, 61.02, 235.06, 72.73, 253.92, 58.07, 265.5, 54.98, 282.48, 57.29, 287.11, 64.24, 285.56, 68.87, 332.64, 88.94, 358.11, 120.58, 361.97, 133.7, 348.85, 142.19, 332.64, 186.18, 342.68, 203.16, 347.31, 200.07, 361.2, 202.38, 361.2, 204.7, 361.97, 205.47, 358.88, 215.5, 361.2, 220.13, 361.2, 231.71, 363.51, 210.1, 375.09, 213.19, 380.49, 213.19, 383.58, 211.65, 385.89, 211.65, 388.21, 232.48, 387.44, 253.32, 375.09, 254.09, 369.69, 260.27, 372.77, 266.44, 364.28, 264.9, 361.97, 262.58, 364.28, 251.78, 361.2, 247.92, 356.57, 247.15, 349.62, 254.09, 348.85, 252.55, 355.79, 256.41, 358.88, 266.44, 359.65, 268.76, 358.11, 266.44, 384.35, 262.58, 388.21, 261.04, 391.3, 263.35, 393.61, 258.72, 409.82, 252.55, 416.76, 253.32, 424.48, 260.27, 426.8, 264.9, 426.02, 284.19, 434.51, 285.73, 439.92, 291.91, 440.69, 296.54, 436.06, 290.36, 429.11, 278.79, 426.02, 272.61, 421.39, 268.76, 416.76, 266.44, 418.31, 275.7, 382.03, 282.65, 365.83, 298.85, 356.57, 301.17, 385.12, 298.85, 390.52, 308.89, 391.3, 311.97, 388.98, 313.52, 384.35, 308.11, 382.81, 309.66, 357.34, 359.82, 365.83, 396.1, 417.54, 457.84, 437.6, 515.72, 409.05, 528.07, 374.32, 528.84, 365.83, 518.8, 314.89, 497.2, 288.65, 483.3, 280.16, 464.78, 271.67, 461.69, 268.59, 471.73, 267.04, 494.88, 280.93, 532.7, 316.44, 557.39, 341.9, 571.28, 346.53, 579.0, 336.5, 574.37, 331.1, 564.34, 311.03, 548.9, 279.39, 535.78, 245.43, 547.36, 236.17, 552.2, 215.28, 525.29, 174.38, 509.14, 169.0, 514.52, 144.24, 540.36, 134.55, 580.18, 122.71, 580.18, 116.25, 594.18, 105.49, 617.86, 64.58, 616.78, 41.98, 599.56, 20.45, 575.88, 8.61, 523.13, 3.23, 473.62, 17.22, 459.62, 33.37, 453.17, 68.89, 453.17, 89.34, 481.15, 128.09, 471.47, 127.02, 456.4, 122.71, 433.79, 122.71, 342.3, 135.63, 317.54, 148.54, 273.41, 150.7, 260.49, 152.85, 245.42, 169.0, 242.19, 194.83, 248.65, 200.21, 258.34, 202.36, 277.71, 235.73, 261.57, 279.87, 207.75, 273.41, 172.22, 226.04, 165.77, 201.29, 175.45, 192.68, 188.37, 165.77, 193.75, 130.24, 192.68, 116.25, 171.15, 111.95, 178.68, 91.49, 202.43, 91.44, 209.76, 91.01, 216.65, 91.87, 223.98, 88.42, 231.31, 87.99, 234.76, 84.11, 258.04, 92.73, 258.91, 82.39, 232.61, 72.9, 224.85, 71.18, 220.53, 61.26, 195.96, 50.48, 163.62, 35.39, 129.13, 30.65, 121.37, 35.39, 110.59, 32.81, 107.58, 33.24, 102.83, 33.24, 96.37, 39.7, 95.94, 43.59, 94.21, 43.59, 91.62, 43.15, 87.31, 45.31, 86.02, 45.31]], "area": 133644.39099999997, "iscrowd": 0, "image_id": 67823, "bbox": [43.87, 3.23, 573.99, 437.46], "category_id": 4, "id": 246215}, {"segmentation": [[361.42, 386.71, 364.23, 388.2, 364.98, 389.89, 369.1, 396.07, 359.74, 397.56, 358.99, 395.32, 360.68, 392.51, 359.74, 391.01, 359.74, 389.33, 359.93, 387.27]], "area": 64.05445000000022, "iscrowd": 0, "image_id": 566576, "bbox": [358.99, 386.71, 10.11, 10.85], "category_id": 1, "id": 257601}, {"segmentation": [[15.82, 112.54, 119.37, 33.44, 211.42, 19.06, 323.6, 44.94, 407.01, 131.24, 378.25, 141.3, 268.94, 136.99, 202.79, 134.11, 123.69, 124.04, 58.97, 119.73]], "area": 30293.378700000005, "iscrowd": 0, "image_id": 482590, "bbox": [15.82, 19.06, 391.19, 122.24], "category_id": 28, "id": 280427}, {"segmentation": [[482.72, 269.9, 482.72, 309.78, 479.97, 351.04, 471.72, 374.42, 477.22, 395.05, 493.73, 401.93, 506.1, 395.05, 506.1, 337.29, 497.85, 298.78]], "area": 2797.43075, "iscrowd": 0, "image_id": 214007, "bbox": [471.72, 269.9, 34.38, 132.03], "category_id": 44, "id": 288035}, {"segmentation": [[442.25, 399.77, 442.72, 334.94, 439.45, 326.08, 436.65, 302.29, 425.92, 301.36, 423.13, 328.88, 417.53, 342.87, 414.26, 398.37, 427.79, 401.64, 439.45, 399.77, 441.32, 398.84]], "area": 2203.9186500000014, "iscrowd": 0, "image_id": 214007, "bbox": [414.26, 301.36, 28.46, 100.28], "category_id": 44, "id": 288361}, {"segmentation": [[412.06, 390.42, 417.27, 329.27, 415.32, 310.4, 415.32, 299.34, 401.66, 296.74, 399.7, 314.3, 390.6, 330.57, 389.29, 394.32, 411.41, 396.27]], "area": 2171.7067999999977, "iscrowd": 0, "image_id": 214007, "bbox": [389.29, 296.74, 27.98, 99.53], "category_id": 44, "id": 288611}, {"segmentation": [[441.69, 390.13, 440.31, 312.77, 443.53, 292.05, 443.99, 273.63, 457.35, 273.17, 459.19, 304.94, 466.09, 368.02, 465.63, 398.42, 442.61, 398.42]], "area": 2585.5798, "iscrowd": 0, "image_id": 214007, "bbox": [440.31, 273.17, 25.78, 125.25], "category_id": 44, "id": 288854}, {"segmentation": [[472.01, 115.18, 492.34, 113.67, 514.17, 112.92, 554.07, 112.92, 555.57, 113.67, 551.06, 188.2, 541.27, 266.49, 479.54, 276.28, 475.02, 268.75, 476.53, 196.48, 477.28, 193.47, 462.98, 184.44, 460.72, 182.18, 453.94, 176.91, 442.65, 167.12, 444.16, 141.53, 465.24, 137.76, 465.99, 116.69]], "area": 13223.974499999997, "iscrowd": 0, "image_id": 527759, "bbox": [442.65, 112.92, 112.92, 163.36], "category_id": 82, "id": 330895}, {"segmentation": [[222.32, 86.07, 253.51, 85.38, 271.87, 87.8, 278.8, 99.24, 279.5, 140.13, 263.56, 141.86, 263.21, 146.71, 277.76, 147.4, 280.19, 147.75, 279.5, 151.91, 269.79, 152.26, 252.47, 152.6, 243.46, 155.38, 242.07, 150.18, 244.5, 147.4, 244.5, 146.02, 225.44, 143.94, 223.7, 135.62, 215.73, 135.28, 213.66, 129.39, 206.72, 129.39, 207.76, 109.98, 222.32, 109.63]], "area": 3797.4837000000007, "iscrowd": 0, "image_id": 374628, "bbox": [206.72, 85.38, 73.47, 70.0], "category_id": 82, "id": 333117}, {"segmentation": [[521.57, 105.17, 522.53, 294.31, 571.24, 297.18, 563.6, 270.43, 567.42, 251.32, 576.98, 236.04, 577.93, 186.37, 576.02, 185.41, 580.8, 176.81, 578.89, 131.92, 576.02, 123.32, 574.11, 103.26]], "area": 10113.696549999995, "iscrowd": 0, "image_id": 536972, "bbox": [521.57, 103.26, 59.23, 193.92], "category_id": 82, "id": 333576}, {"segmentation": [[119.57, 73.13, 106.76, 148.93, 107.82, 193.76, 117.43, 231.13, 112.09, 238.6, 119.57, 261.02, 131.31, 259.95, 137.72, 319.74, 167.61, 336.82, 179.35, 321.87, 180.42, 301.59, 183.62, 310.13, 197.5, 312.26, 216.72, 326.14, 222.05, 390.2, 233.8, 411.55, 262.62, 415.82, 282.91, 406.21, 288.24, 365.64, 364.04, 366.71, 398.2, 370.98, 399.27, 359.24, 464.39, 344.29, 471.86, 344.29, 490.01, 354.97, 530.58, 347.49, 544.46, 370.98, 596.77, 370.98, 601.04, 346.43, 599.97, 317.6, 614.92, 294.11, 612.78, 273.83, 602.11, 273.83, 604.24, 265.29, 614.92, 252.48, 612.78, 195.9, 605.31, 184.16, 604.24, 172.41, 553.0, 130.78, 501.76, 37.9, 501.76, 31.49, 499.62, 30.43, 467.59, 18.68, 247.68, 27.22, 143.05, 46.44, 113.16, 66.72]], "area": 152310.64575, "iscrowd": 0, "image_id": 384849, "bbox": [106.76, 18.68, 508.16, 397.14], "category_id": 3, "id": 344582}, {"segmentation": [[626.08, 242.2, 623.2, 212.52, 598.31, 203.91, 558.11, 109.13, 545.66, 91.9, 514.07, 78.5, 510.24, 74.67, 461.42, 71.8, 446.1, 70.84, 445.15, 69.88, 441.32, 60.31, 414.51, 59.35, 417.38, 66.05, 434.62, 67.01, 439.4, 71.8, 364.73, 67.97, 342.71, 67.97, 336.97, 56.48, 326.44, 53.61, 231.67, 56.48, 172.31, 62.22, 155.08, 61.27, 153.17, 67.97, 161.78, 70.84, 156.04, 74.67, 145.51, 79.46, 139.77, 86.16, 88.07, 102.43, 68.93, 117.75, 32.55, 182.84, 1.91, 181.89, 0.0, 185.72, 0.0, 394.41, 26.8, 395.37, 27.76, 399.2, 36.38, 400.15, 46.91, 421.21, 163.7, 421.21, 175.19, 391.54, 176.14, 388.67, 228.8, 383.88, 267.09, 378.13, 281.45, 386.75, 312.08, 386.75, 325.48, 377.18, 328.36, 368.56, 408.77, 359.95, 435.57, 352.29, 453.76, 348.46, 459.51, 353.24, 463.33, 359.95, 470.99, 357.07, 479.61, 377.18, 489.18, 386.75, 527.47, 382.92, 548.53, 374.31, 558.11, 350.37, 559.07, 323.57, 572.47, 324.53, 609.8, 316.87, 615.55, 308.25, 640.0, 309.21, 635.65, 287.19, 626.08, 284.32, 624.16, 284.32, 622.25, 254.64, 627.03, 249.86]], "area": 179253.70225, "iscrowd": 0, "image_id": 559270, "bbox": [0.0, 53.61, 640.0, 367.6], "category_id": 3, "id": 347223}, {"segmentation": [[0.27, 99.91, 0.0, 159.91, 36.73, 157.14, 44.58, 151.6, 45.5, 91.14, 40.89, 88.37, 1.19, 91.14], [56.12, 116.99, 56.58, 155.76, 61.19, 153.91, 61.66, 138.68, 61.19, 124.83]], "area": 3216.427349999999, "iscrowd": 0, "image_id": 384849, "bbox": [0.0, 88.37, 61.66, 71.54], "category_id": 3, "id": 348325}, {"segmentation": [[85.12, 118.09, 85.12, 109.46, 85.72, 101.22, 94.76, 93.99, 95.97, 93.38, 115.86, 91.17, 114.86, 101.42, 109.43, 103.23, 108.02, 102.62, 106.22, 102.62, 106.62, 104.63, 107.02, 105.64, 103.6, 112.87, 103.2, 116.89, 103.0, 116.89, 98.38, 117.09, 97.18, 120.91, 95.17, 121.51, 93.16, 121.71, 92.35, 119.1, 91.15, 119.1, 89.14, 121.51, 86.73, 121.71, 85.32, 120.71]], "area": 588.4656, "iscrowd": 0, "image_id": 384849, "bbox": [85.12, 91.17, 30.74, 30.54], "category_id": 3, "id": 348778}, {"segmentation": [[66.54, 107.73, 69.89, 99.59, 73.48, 94.32, 84.5, 94.8, 80.9, 100.3, 78.03, 106.05, 76.83, 116.82, 74.68, 116.11, 70.85, 118.74, 66.54, 118.5, 65.1, 113.71]], "area": 262.7777, "iscrowd": 0, "image_id": 384849, "bbox": [65.1, 94.32, 19.4, 24.42], "category_id": 3, "id": 351365}, {"segmentation": [[85.03, 95.78, 91.06, 93.92, 85.49, 99.95, 83.64, 105.05, 85.49, 115.71, 84.1, 118.96, 81.78, 119.42, 77.15, 115.71, 78.07, 105.51, 80.86, 100.41, 83.64, 95.31]], "area": 143.46889999999993, "iscrowd": 0, "image_id": 384849, "bbox": [77.15, 93.92, 13.91, 25.5], "category_id": 3, "id": 351458}, {"segmentation": [[56.71, 94.56, 71.36, 94.96, 71.23, 97.76, 68.03, 103.35, 65.63, 110.8, 65.24, 116.26, 64.7, 116.53, 57.38, 115.2]], "area": 228.58019999999996, "iscrowd": 0, "image_id": 384849, "bbox": [56.71, 94.56, 14.65, 21.97], "category_id": 3, "id": 352508}, {"segmentation": [[313.52, 383.26, 312.72, 314.74, 319.93, 315.95, 319.93, 316.75, 333.95, 316.75, 357.99, 318.75, 398.86, 328.37, 399.26, 326.76, 403.27, 325.56, 404.87, 333.17, 407.67, 410.9, 440.13, 398.48, 460.16, 404.49, 460.56, 426.53, 451.75, 427.0, 450.94, 418.91, 447.74, 418.91, 449.34, 425.33, 442.13, 426.13, 440.93, 421.32, 434.92, 426.93, 375.62, 424.92, 373.62, 395.68, 365.6, 383.66, 331.95, 374.84, 324.74, 376.04, 314.72, 383.66]], "area": 8182.852350000001, "iscrowd": 0, "image_id": 536972, "bbox": [312.72, 314.74, 147.84, 112.26], "category_id": 62, "id": 372790}, {"segmentation": [[408.85, 255.23, 457.57, 261.92, 490.03, 263.88, 488.12, 284.9, 431.76, 276.3, 431.76, 271.52, 417.43, 271.52, 406.92, 271.52, 409.79, 257.19]], "area": 1433.8882499999984, "iscrowd": 0, "image_id": 536972, "bbox": [406.92, 255.23, 83.11, 29.67], "category_id": 62, "id": 373264}, {"segmentation": [[553.99, 4.13, 557.58, 1.6, 578.45, 2.24, 579.93, 5.4, 580.56, 22.9, 576.97, 24.38, 556.52, 22.48, 555.68, 20.79]], "area": 538.3180499999994, "iscrowd": 0, "image_id": 384849, "bbox": [553.99, 1.6, 26.57, 22.78], "category_id": 10, "id": 404249}, {"segmentation": [[588.21, 212.32, 585.77, 217.59, 585.77, 225.86, 597.61, 226.61, 601.0, 220.97, 600.81, 213.26]], "area": 190.3744500000002, "iscrowd": 0, "image_id": 429042, "bbox": [585.77, 212.32, 15.23, 14.29], "category_id": 10, "id": 409731}, {"segmentation": [[106.04, 451.83, 106.04, 438.05, 90.13, 427.44, 80.59, 400.93, 65.74, 374.42, 55.14, 371.24, 48.78, 361.7, 31.81, 345.79, 37.11, 334.13, 37.11, 324.59, 12.72, 303.38, 18.03, 275.81, 19.09, 246.12, 38.17, 246.12, 76.35, 268.38, 84.83, 292.77, 123.01, 363.82, 144.21, 390.33, 169.66, 430.63, 159.06, 462.44, 108.16, 465.62]], "area": 14373.84055, "iscrowd": 0, "image_id": 384849, "bbox": [12.72, 246.12, 156.94, 219.5], "category_id": 11, "id": 416195}, {"segmentation": [[80.38, 4.6, 72.63, 14.28, 67.79, 16.22, 61.01, 22.03, 61.98, 50.11, 65.85, 67.55, 70.69, 79.17, 71.66, 103.38, 87.16, 121.78, 91.03, 130.49, 90.06, 137.27, 86.19, 141.14, 72.63, 151.8, 62.95, 159.54, 46.48, 183.75, 33.89, 201.18, 31.96, 227.33, 31.96, 259.29, 31.96, 272.85, 51.33, 353.22, 51.33, 351.29, 67.79, 344.51, 80.38, 365.81, 80.38, 398.74, 88.12, 421.98, 280.84, 423.92, 269.21, 413.26, 251.78, 397.77, 257.59, 383.24, 265.34, 356.13, 275.02, 322.23, 289.55, 304.8, 295.36, 286.4, 304.08, 302.87, 310.86, 306.74, 313.76, 300.93, 307.95, 291.25, 308.92, 281.56, 334.1, 259.29, 325.38, 252.51, 322.48, 243.79, 307.95, 249.6, 301.17, 248.64, 304.08, 238.95, 307.95, 234.11, 306.01, 225.39, 299.23, 224.43, 284.71, 237.98, 275.99, 249.6, 270.18, 264.13, 262.44, 287.37, 246.94, 311.58, 241.13, 320.3, 245.97, 300.93, 243.07, 282.53, 226.6, 258.32, 206.27, 237.02, 196.58, 220.55, 199.49, 207.96, 201.43, 198.28, 194.65, 200.22, 183.03, 209.9, 165.6, 188.6, 167.53, 176.97, 180.12, 171.16, 192.71, 160.51, 201.43, 135.33, 203.36, 118.87, 206.27, 93.69, 204.33, 72.39, 208.21, 45.27, 203.36, 25.9, 191.74, 7.51]], "area": 71530.92649999999, "iscrowd": 0, "image_id": 465463, "bbox": [31.96, 4.6, 302.14, 419.32], "category_id": 1, "id": 434533}, {"segmentation": [[38.92, 464.86, 49.01, 496.58, 67.75, 508.11, 86.49, 474.95, 109.55, 444.68, 125.41, 415.86, 138.38, 389.91, 155.68, 476.4, 151.35, 490.81, 177.3, 500.9, 177.3, 474.95, 197.48, 454.77, 255.14, 450.45, 273.87, 467.75, 273.87, 502.34, 301.26, 519.64, 335.86, 519.64, 360.36, 538.38, 381.98, 542.7, 389.19, 500.9, 377.66, 450.45, 369.01, 428.83, 396.4, 423.06, 386.31, 404.32, 412.25, 361.08, 400.72, 327.93, 328.65, 327.93, 312.79, 332.25, 298.38, 317.84, 282.52, 283.24, 278.2, 261.62, 275.32, 240.0, 273.87, 216.94, 270.99, 211.17, 286.85, 173.69, 276.76, 110.27, 246.49, 87.21, 213.33, 90.09, 194.59, 100.18, 164.32, 129.01, 167.21, 196.76, 175.86, 225.59, 191.71, 238.56, 194.59, 257.3, 190.27, 273.15, 144.14, 283.24, 129.73, 289.01, 116.76, 316.4, 147.03, 300.54, 177.3, 313.51, 196.04, 319.28, 193.15, 338.02, 188.83, 350.99, 171.53, 374.05, 129.73, 378.38, 113.87, 379.82, 86.49, 391.35, 86.49, 378.38, 100.9, 366.85, 99.46, 359.64, 47.57, 361.08, 31.71, 353.87, 12.97, 345.23, 1.44, 375.5, 0.0, 417.3, 12.97, 431.71, 2.88, 450.45, 36.04, 461.98, 37.48, 466.31]], "area": 77230.90680000001, "iscrowd": 0, "image_id": 550273, "bbox": [0.0, 87.21, 412.25, 455.49], "category_id": 1, "id": 435214}, {"segmentation": [[209.2, 60.27, 223.53, 72.69, 236.9, 84.15, 216.84, 116.63, 209.2, 126.19, 211.11, 127.14, 208.79, 129.67, 206.29, 129.67, 197.56, 134.24, 191.74, 134.66, 197.56, 161.69, 202.96, 178.32, 205.04, 184.56, 215.44, 187.47, 221.68, 187.88, 229.58, 189.13, 232.07, 191.62, 237.89, 184.56, 238.72, 187.47, 232.49, 194.12, 235.81, 199.94, 234.57, 202.85, 232.9, 204.93, 232.07, 204.51, 228.33, 208.26, 225.83, 208.67, 215.02, 204.93, 208.37, 203.27, 205.46, 216.99, 205.46, 225.3, 200.05, 234.04, 197.14, 243.18, 196.73, 247.34, 199.22, 251.5, 198.73, 284.67, 199.71, 294.98, 201.19, 304.8, 197.26, 344.57, 191.37, 369.13, 185.96, 380.42, 189.89, 384.84, 197.75, 385.33, 206.1, 385.82, 207.57, 395.15, 199.71, 400.56, 206.1, 411.85, 205.61, 416.76, 193.33, 421.18, 164.85, 415.29, 148.64, 407.92, 150.61, 371.09, 153.06, 372.56, 153.55, 361.27, 152.57, 331.32, 155.03, 311.18, 142.75, 258.15, 143.24, 231.14, 142.26, 223.28, 143.24, 222.3, 138.82, 217.39, 136.37, 187.93, 136.86, 160.92, 140.79, 140.3, 147.17, 128.02, 164.36, 109.36, 170.74, 105.92, 172.21, 105.92, 176.14, 105.43, 179.09, 100.52, 184.49, 89.72]], "area": 18972.66275, "iscrowd": 0, "image_id": 410272, "bbox": [136.37, 60.27, 102.35, 360.91], "category_id": 1, "id": 464465}, {"segmentation": [[76.4, 493.26, 78.65, 408.99, 42.7, 414.61, 35.96, 412.36, 29.21, 360.67, 17.98, 325.84, 67.42, 206.74, 132.58, 171.91, 122.47, 84.27, 140.45, 23.6, 158.43, 12.36, 204.49, 20.22, 221.35, 44.94, 222.47, 97.75, 206.74, 167.42, 213.48, 187.64, 257.3, 212.36, 271.91, 253.93, 246.07, 291.01, 207.87, 292.13, 206.74, 305.62, 243.82, 315.73, 255.06, 325.84, 277.53, 298.88, 283.15, 347.19, 250.56, 373.03, 319.1, 369.66, 330.34, 347.19, 379.78, 348.31, 379.78, 350.56, 359.55, 392.13, 319.1, 388.76, 277.53, 395.51, 278.65, 420.22, 291.01, 434.83, 289.89, 460.67, 280.9, 466.29, 282.02, 491.01]], "area": 83689.15045, "iscrowd": 0, "image_id": 369913, "bbox": [17.98, 12.36, 361.8, 480.9], "category_id": 1, "id": 470250}, {"segmentation": [[101.13, 0.0, 117.02, 48.76, 164.7, 97.88, 209.48, 134.0, 249.93, 135.44, 264.38, 164.33, 254.27, 175.89, 242.71, 180.23, 231.15, 177.34, 216.7, 164.33, 199.37, 151.33, 150.25, 129.66, 124.24, 115.21, 79.46, 61.76, 73.68, 84.88, 78.01, 132.55, 122.8, 164.33, 160.36, 178.78, 135.8, 197.56, 124.24, 213.45, 109.8, 200.45, 106.91, 191.78, 63.57, 180.23, 43.34, 177.34, 27.45, 200.45, 54.9, 316.03, 62.12, 363.7, 65.01, 386.82, 63.57, 392.6, 63.57, 443.16, 66.46, 474.94, 79.46, 522.62, 109.8, 532.73, 101.13, 548.62, 86.68, 552.96, 72.23, 560.18, 43.34, 554.4, 33.23, 545.73, 1.44, 529.84, 1.44, 2.53]], "area": 45933.27865, "iscrowd": 0, "image_id": 451412, "bbox": [1.44, 0.0, 262.94, 560.18], "category_id": 1, "id": 470712}, {"segmentation": [[0.0, 162.52, 37.39, 138.07, 73.35, 136.63, 106.43, 166.83, 119.37, 205.66, 104.99, 228.67, 96.36, 217.17, 86.29, 188.4, 74.79, 166.83, 71.91, 185.53, 58.97, 207.1, 47.46, 238.74, 37.39, 245.93, 7.19, 231.55]], "area": 7823.8418, "iscrowd": 0, "image_id": 550273, "bbox": [0.0, 136.63, 119.37, 109.3], "category_id": 1, "id": 540952}, {"segmentation": [[317.12, 50.33, 253.78, 53.61, 221.22, 51.52, 206.58, 49.43, 175.81, 49.43, 168.34, 46.44, 171.03, 42.86, 208.97, 37.78, 208.97, 29.11, 205.98, 22.54, 191.94, 0.0, 203.29, 0.0, 207.77, 2.82, 214.05, 10.29, 226.6, 34.19, 228.69, 36.58, 288.14, 34.19, 328.47, 33.0, 416.61, 37.18, 430.65, 34.49, 441.4, 36.28, 443.2, 38.97, 444.69, 41.06, 451.56, 41.66, 485.92, 48.53, 491.3, 49.13, 495.48, 51.82, 509.22, 55.11, 512.21, 56.0, 512.21, 59.29, 519.98, 64.07, 520.27, 71.54, 512.51, 72.43, 503.25, 74.82, 494.58, 74.82, 479.34, 72.43, 448.87, 66.76, 440.21, 61.38, 435.13, 61.38, 428.85, 61.38, 422.28, 61.98, 365.52, 55.41, 324.59, 52.12]], "area": 7240.990699999999, "iscrowd": 0, "image_id": 559270, "bbox": [168.34, 0.0, 351.93, 74.82], "category_id": 42, "id": 648063}, {"segmentation": [[0.51, 236.14, 60.76, 240.96, 129.86, 240.96, 129.86, 298.01, 117.81, 335.77, 81.65, 353.44, 72.82, 365.49, 82.46, 407.27, 84.87, 414.5, 100.13, 416.91, 112.18, 432.98, 111.38, 447.45, 96.12, 453.87, 24.61, 458.69, 3.72, 449.05, 0.0, 432.18, 6.13, 421.74, 14.97, 412.09, 45.5, 408.88, 50.32, 403.26, 50.32, 386.38, 41.48, 353.44, 4.52, 337.37, 0.51, 327.73]], "area": 19807.161499999995, "iscrowd": 0, "image_id": 550273, "bbox": [0.0, 236.14, 129.86, 222.55], "category_id": 46, "id": 665260}, {"segmentation": [[266.41, 213.44, 265.3, 199.73, 265.11, 196.39, 264.93, 195.47, 265.86, 193.61, 272.34, 192.87, 279.75, 194.17, 281.23, 195.47, 280.31, 198.8, 282.9, 201.03, 282.9, 202.88, 279.75, 203.43, 278.27, 206.03, 277.9, 212.33, 277.9, 214.18, 274.56, 216.4, 266.6, 215.29, 266.41, 214.74]], "area": 308.74119999999937, "iscrowd": 0, "image_id": 374628, "bbox": [264.93, 192.87, 17.97, 23.53], "category_id": 47, "id": 669981}, {"segmentation": [[513.99, 157.15, 513.78, 157.83, 511.44, 157.83, 509.85, 158.8, 508.82, 160.11, 509.02, 161.69, 509.44, 162.8, 510.06, 163.83, 511.09, 165.07, 511.64, 165.69, 512.47, 166.52, 512.95, 166.72, 513.71, 167.28, 514.19, 167.96, 514.33, 168.17, 514.61, 168.93, 516.05, 168.93, 517.91, 168.93, 521.01, 169.0, 522.05, 169.0, 522.39, 169.0, 522.25, 167.55, 522.67, 166.31, 523.08, 165.48, 523.43, 164.79, 523.63, 163.55, 523.7, 162.52, 523.84, 160.94, 523.91, 159.7, 524.11, 157.97, 523.91, 156.8, 522.81, 156.53, 519.91, 156.94, 516.47, 157.01, 513.5, 157.01]], "area": 148.55189999999996, "iscrowd": 0, "image_id": 374628, "bbox": [508.82, 156.53, 15.29, 12.47], "category_id": 47, "id": 670493}, {"segmentation": [[4.89, 70.63, 20.32, 69.45, 33.97, 71.23, 38.87, 73.6, 37.53, 77.9, 33.53, 109.06, 32.49, 111.14, 10.83, 111.28, 8.45, 103.27, 5.19, 76.86]], "area": 1174.0958, "iscrowd": 0, "image_id": 465463, "bbox": [4.89, 69.45, 33.98, 41.83], "category_id": 47, "id": 671995}, {"segmentation": [[194.16, 627.06, 175.46, 473.17, 195.6, 460.22, 222.92, 458.79, 274.7, 458.79, 260.31, 627.06, 237.3, 627.06]], "area": 13870.800149999992, "iscrowd": 0, "image_id": 550273, "bbox": [175.46, 458.79, 99.24, 168.27], "category_id": 47, "id": 681819}, {"segmentation": [[338.31, 567.91, 337.63, 584.23, 337.63, 603.28, 347.84, 635.26, 384.57, 640.0, 390.02, 608.05, 381.85, 581.51, 385.93, 554.3, 392.74, 546.82, 374.37, 542.74, 347.16, 545.46, 337.63, 555.66]], "area": 4281.726049999998, "iscrowd": 0, "image_id": 550273, "bbox": [337.63, 542.74, 55.11, 97.26], "category_id": 47, "id": 684557}, {"segmentation": [[229.55, 192.57, 236.77, 183.93, 237.34, 183.93, 238.76, 186.9, 232.52, 193.99]], "area": 35.123999999999924, "iscrowd": 0, "image_id": 410272, "bbox": [229.55, 183.93, 9.21, 10.06], "category_id": 49, "id": 693123}, {"segmentation": [[275.63, 123.92, 301.58, 110.39, 307.35, 108.17, 308.68, 105.07, 329.76, 93.09, 337.3, 88.87, 345.45, 83.45, 342.51, 81.1, 299.63, 103.23, 298.45, 104.6, 265.95, 121.05]], "area": 491.6209500000003, "iscrowd": 0, "image_id": 51355, "bbox": [265.95, 81.1, 79.5, 42.82], "category_id": 49, "id": 695519}, {"segmentation": [[57.13, 375.43, 61.81, 388.47, 69.84, 396.83, 77.53, 399.51, 89.23, 395.49, 83.55, 387.47, 79.87, 382.45, 69.17, 375.76, 63.48, 373.42, 55.12, 341.32, 52.45, 319.58, 44.09, 295.75, 36.4, 286.73, 28.37, 290.07, 35.39, 298.76, 46.76, 327.19, 54.79, 348.93, 59.47, 371.67, 59.47, 373.67]], "area": 977.2991499999999, "iscrowd": 0, "image_id": 214007, "bbox": [28.37, 286.73, 60.86, 112.78], "category_id": 50, "id": 701109}, {"segmentation": [[272.1, 126.44, 271.05, 132.15, 267.67, 130.25, 265.97, 132.79, 265.76, 135.53, 265.13, 138.28, 254.77, 135.11, 252.87, 131.09, 251.81, 139.13, 256.46, 141.66, 278.23, 144.62, 295.35, 143.99, 305.92, 143.99, 313.74, 142.3, 324.1, 135.11, 335.72, 122.22, 338.68, 116.3, 335.09, 109.32, 321.56, 105.31, 316.28, 106.15, 308.46, 107.84, 293.66, 113.34, 280.35, 122.43, 274.01, 124.97], [264.49, 121.58, 260.9, 117.78, 259.63, 117.57, 262.17, 113.55, 262.17, 111.86, 262.59, 107.63, 262.8, 105.1, 261.11, 103.83, 284.36, 102.77, 299.16, 103.41, 300.22, 103.41, 282.67, 111.65, 265.97, 121.16], [232.82, 129.19, 226.09, 119.26, 225.77, 112.21, 228.97, 109.01, 236.34, 106.45, 238.9, 106.13, 233.46, 112.85, 233.46, 117.02, 234.1, 128.87]], "area": 2456.9112000000014, "iscrowd": 0, "image_id": 51355, "bbox": [225.77, 102.77, 112.91, 41.85], "category_id": 51, "id": 712673}, {"segmentation": [[186.47, 216.0, 169.46, 208.61, 162.81, 184.21, 150.24, 167.95, 162.07, 151.68, 201.26, 145.03, 237.48, 141.33, 224.91, 197.52, 198.3, 201.95], [251.53, 145.77, 246.35, 199.74, 272.97, 204.17, 275.93, 209.35, 300.32, 188.65, 306.98, 170.16, 306.98, 162.77, 281.84, 144.29]], "area": 7042.956099999999, "iscrowd": 0, "image_id": 51355, "bbox": [150.24, 141.33, 156.74, 74.67], "category_id": 51, "id": 713153}, {"segmentation": [[167.01, 139.45, 167.09, 143.41, 167.33, 144.44, 169.39, 148.79, 171.92, 150.77, 182.21, 150.77, 184.1, 148.95, 184.58, 139.69, 172.63, 139.69]], "area": 177.08010000000021, "iscrowd": 0, "image_id": 536972, "bbox": [167.01, 139.45, 17.57, 11.32], "category_id": 51, "id": 713235}, {"segmentation": [[206.42, 218.06, 210.47, 219.93, 214.21, 228.65, 218.57, 232.39, 230.41, 232.08, 235.08, 229.28, 240.69, 226.78, 245.05, 223.36, 246.6, 219.31, 245.98, 215.88, 238.19, 214.32, 228.23, 214.32, 214.52, 214.95, 207.67, 215.26, 206.73, 217.13]], "area": 529.4443500000006, "iscrowd": 0, "image_id": 410272, "bbox": [206.42, 214.32, 40.18, 18.07], "category_id": 51, "id": 717786}, {"segmentation": [[143.9, 153.09, 141.18, 152.0, 139.36, 148.36, 138.99, 143.45, 138.45, 140.91, 139.18, 139.81, 142.81, 140.0, 144.09, 140.54, 149.36, 139.81, 154.99, 139.81, 159.54, 140.36, 160.81, 142.91, 160.27, 146.9, 158.99, 151.27, 157.36, 154.18, 155.18, 154.72, 151.54, 155.09, 149.54, 154.9, 144.81, 154.18]], "area": 285.37925000000007, "iscrowd": 0, "image_id": 536972, "bbox": [138.45, 139.81, 22.36, 15.28], "category_id": 51, "id": 1038885}, {"segmentation": [[123.58, 154.14, 115.89, 153.37, 112.44, 144.15, 122.04, 144.15]], "area": 82.07464999999996, "iscrowd": 0, "image_id": 536972, "bbox": [112.44, 144.15, 11.14, 9.99], "category_id": 51, "id": 1040477}, {"segmentation": [[441.1, 249.81, 441.1, 245.44, 441.53, 242.82, 438.03, 238.0, 441.1, 232.76, 445.91, 230.57, 453.34, 235.38, 459.9, 240.19, 462.09, 249.81, 462.52, 256.37, 461.21, 259.87, 455.53, 262.06, 448.53, 262.49, 445.47, 257.68, 442.41, 252.44]], "area": 524.9421499999994, "iscrowd": 0, "image_id": 410272, "bbox": [438.03, 230.57, 24.49, 31.92], "category_id": 56, "id": 1059121}, {"segmentation": [[231.44, 232.09, 232.39, 230.34, 234.86, 230.72, 237.72, 231.67, 243.24, 240.62, 242.48, 243.09, 241.9, 245.57, 242.29, 247.28, 239.81, 247.28, 235.81, 241.38, 230.86, 233.0], [244.95, 243.09, 246.28, 245.38, 246.28, 246.14, 244.76, 246.52, 244.19, 243.66]], "area": 109.72815, "iscrowd": 0, "image_id": 410272, "bbox": [230.86, 230.34, 15.42, 16.94], "category_id": 57, "id": 1064568}, {"segmentation": [[370.43, 249.17, 374.1, 236.94, 376.13, 234.09, 378.58, 233.95, 380.21, 234.36, 381.02, 238.44, 379.26, 245.5, 376.81, 252.16, 371.38, 252.16]], "area": 126.24829999999959, "iscrowd": 0, "image_id": 410272, "bbox": [370.43, 233.95, 10.59, 18.21], "category_id": 57, "id": 1065989}, {"segmentation": [[330.79, 172.68, 287.64, 266.16, 299.15, 315.06, 359.55, 320.81, 407.01, 300.68, 375.37, 218.7, 345.17, 184.19, 342.29, 156.86, 335.1, 158.3, 329.35, 171.24]], "area": 11204.031900000002, "iscrowd": 0, "image_id": 550273, "bbox": [287.64, 156.86, 119.37, 163.95], "category_id": 61, "id": 1089552}, {"segmentation": [[186.97, 348.14, 179.78, 405.67, 179.78, 454.57, 218.61, 476.14, 274.7, 483.33, 332.22, 493.4, 375.37, 493.4, 395.51, 493.4, 412.76, 481.89, 415.64, 447.38, 401.26, 392.73, 437.21, 365.4, 442.97, 332.32, 435.78, 312.19, 384.0, 290.61, 303.46, 281.98, 245.93, 287.74, 205.66, 299.24, 165.39, 326.57]], "area": 46423.51285, "iscrowd": 0, "image_id": 480215, "bbox": [165.39, 281.98, 277.58, 211.42], "category_id": 70, "id": 1094381}, {"segmentation": [[228.67, 589.66, 238.74, 542.2, 221.48, 539.33, 198.47, 517.75, 195.6, 500.49, 194.16, 468.85, 214.29, 431.46, 280.45, 402.7, 300.58, 399.82, 281.89, 353.8, 283.33, 302.02, 293.39, 271.82, 323.6, 243.06, 358.11, 243.06, 402.7, 280.45, 422.83, 339.42, 417.08, 384.0, 398.38, 422.83, 362.43, 510.56, 369.62, 522.07, 378.25, 545.08, 345.17, 583.91, 316.4, 621.3, 263.19, 621.3, 225.8, 593.98]], "area": 51005.83075, "iscrowd": 0, "image_id": 451412, "bbox": [194.16, 243.06, 228.67, 378.24], "category_id": 70, "id": 1094447}, {"segmentation": [[444.63, 22.07, 573.82, 26.38, 584.58, 43.6, 547.98, 150.18, 484.46, 162.02, 484.46, 184.63, 511.37, 194.32, 513.53, 212.62, 523.22, 236.31, 521.06, 250.3, 514.6, 266.45, 500.61, 284.75, 494.15, 295.52, 529.68, 348.27, 521.06, 377.34, 508.14, 397.8, 498.45, 405.33, 490.92, 407.48, 487.69, 410.71, 481.23, 457.01, 445.7, 459.16, 436.01, 449.47, 436.01, 449.47, 430.63, 444.09, 424.17, 429.02, 413.41, 398.87, 413.41, 395.64, 413.41, 388.11, 414.48, 384.88, 415.56, 382.72, 411.25, 359.04, 406.95, 340.74, 404.79, 326.74, 406.95, 308.44, 419.86, 290.14, 400.49, 236.31, 419.86, 207.24, 443.55, 183.56, 457.55, 180.33, 460.77, 157.72, 419.86, 143.72, 406.95, 26.38, 455.39, 23.15]], "area": 46132.05729999999, "iscrowd": 0, "image_id": 264461, "bbox": [400.49, 22.07, 184.09, 437.09], "category_id": 70, "id": 1096021}, {"segmentation": [[379.95, 411.02, 348.17, 409.57, 325.06, 409.57, 307.72, 425.46, 312.05, 448.58, 329.39, 481.81, 329.39, 503.48, 325.06, 519.37, 346.73, 526.59, 374.18, 526.59, 384.29, 515.03, 404.51, 434.13, 395.85, 411.02]], "area": 8454.811050000004, "iscrowd": 0, "image_id": 175212, "bbox": [307.72, 409.57, 96.79, 117.02], "category_id": 70, "id": 1096332}, {"segmentation": [[185.35, 350.81, 284.47, 352.12, 275.34, 437.54, 268.82, 472.11, 146.22, 469.5, 178.17, 349.51]], "area": 13855.905550000001, "iscrowd": 0, "image_id": 264461, "bbox": [146.22, 349.51, 138.25, 122.6], "category_id": 70, "id": 1096658}, {"segmentation": [[261.11, 482.9, 249.82, 488.55, 246.68, 496.08, 247.94, 505.49, 251.07, 516.78, 254.21, 528.7, 260.48, 549.41, 265.5, 568.23, 285.58, 570.74, 301.89, 576.39, 325.74, 583.29, 340.79, 586.43, 345.81, 544.39, 352.72, 501.1, 347.7, 500.47, 345.81, 494.2, 337.03, 489.8, 325.11, 486.04, 307.54, 482.9, 292.48, 480.39, 275.54, 480.39]], "area": 8456.32345, "iscrowd": 0, "image_id": 531111, "bbox": [246.68, 480.39, 106.04, 106.04], "category_id": 70, "id": 1097103}, {"segmentation": [[222.31, 190.8, 222.95, 189.74, 241.33, 189.32, 259.3, 187.63, 267.33, 167.13, 273.46, 153.39, 287.83, 157.62, 278.1, 181.71, 273.46, 193.54, 266.69, 193.75, 265.0, 194.81, 266.69, 197.98, 257.61, 199.25, 251.27, 202.21, 230.77, 203.05, 221.89, 192.91, 221.68, 190.16]], "area": 1103.4805000000008, "iscrowd": 0, "image_id": 374628, "bbox": [221.68, 153.39, 66.15, 49.66], "category_id": 73, "id": 1102897}, {"segmentation": [[383.14, 117.21, 344.31, 117.21, 345.78, 95.24, 380.94, 93.77, 382.41, 113.55]], "area": 835.7101500000005, "iscrowd": 0, "image_id": 374628, "bbox": [344.31, 93.77, 38.83, 23.44], "category_id": 78, "id": 1119379}, {"segmentation": [[88.22, 421.09, 70.3, 439.01, 51.0, 456.93, 34.46, 483.12, 30.32, 509.31, 30.32, 547.91, 33.08, 564.45, 52.38, 586.5, 63.41, 587.88, 92.35, 593.39, 144.73, 597.53, 183.32, 590.64, 220.54, 592.01, 253.62, 594.77, 289.46, 590.64, 321.16, 587.88, 333.57, 572.72, 340.46, 535.5, 348.73, 480.36, 337.7, 451.42, 329.43, 439.01, 321.16, 445.91, 308.76, 461.07, 288.08, 472.09, 253.62, 473.47, 213.65, 467.96, 180.57, 456.93, 150.24, 443.15, 107.51, 430.74, 92.35, 422.47]], "area": 42241.14659999999, "iscrowd": 0, "image_id": 214007, "bbox": [30.32, 421.09, 318.41, 176.44], "category_id": 79, "id": 1122027}, {"segmentation": [[608.88, 204.75, 611.02, 221.37, 608.88, 253.0, 607.8, 301.78, 589.04, 301.78, 585.29, 297.49, 583.68, 288.37, 590.65, 281.41, 579.93, 241.2, 576.18, 235.84, 577.79, 211.18, 576.71, 197.78, 587.97, 199.39]], "area": 2717.4428500000017, "iscrowd": 0, "image_id": 536972, "bbox": [576.18, 197.78, 34.84, 104.0], "category_id": 79, "id": 1122509}, {"segmentation": [[210.16, 106.04, 214.98, 105.08, 608.31, 103.15, 597.71, 422.25, 354.77, 422.25, 260.29, 404.9, 263.18, 388.51, 295.0, 376.94, 295.0, 376.94, 305.6, 302.71, 316.21, 273.79, 354.77, 274.75, 377.91, 247.76, 333.56, 221.73, 343.2, 197.63, 201.49, 178.35, 157.14, 184.13, 172.56, 175.46, 201.49, 130.15, 203.41, 106.04]], "area": 101305.77500000001, "iscrowd": 0, "image_id": 465463, "bbox": [157.14, 103.15, 451.17, 319.1], "category_id": 79, "id": 1122921}, {"segmentation": [[422.29, 283.57, 376.1, 291.02, 360.7, 291.52, 350.27, 297.48, 342.32, 293.5, 343.81, 223.47, 343.32, 201.12, 335.87, 191.68, 330.4, 186.72, 327.92, 177.28, 341.83, 168.84, 384.04, 169.33, 381.56, 177.78, 382.55, 185.72, 405.9, 182.25, 418.31, 187.71, 431.23, 195.66, 426.26, 253.27]], "area": 9663.9786, "iscrowd": 0, "image_id": 527759, "bbox": [327.92, 168.84, 103.31, 128.64], "category_id": 79, "id": 1123861}, {"segmentation": [[402.16, 318.38, 467.03, 327.03, 470.27, 245.95, 492.97, 229.73, 415.14, 227.57, 402.16, 244.86, 398.92, 319.46, 398.92, 323.78, 407.57, 323.78]], "area": 6548.624549999996, "iscrowd": 0, "image_id": 482022, "bbox": [398.92, 227.57, 94.05, 99.46], "category_id": 79, "id": 1127059}, {"segmentation": [[127.28, 280.97, 166.9, 286.72, 177.72, 285.18, 203.68, 278.38, 165.21, 274.66, 158.83, 275.12, 137.52, 282.39], [193.97, 268.7, 215.62, 270.46, 208.86, 271.48, 184.99, 269.82, 194.15, 268.89]], "area": 475.5888500000013, "iscrowd": 0, "image_id": 482022, "bbox": [127.28, 268.7, 88.34, 18.02], "category_id": 81, "id": 1129700}, {"segmentation": [[0.87, 384.76, 28.54, 391.36, 57.04, 391.36, 87.6, 388.89, 109.49, 381.45, 115.28, 374.02, 110.32, 367.82, 100.41, 364.52, 83.47, 359.56, 65.71, 358.32, 60.34, 358.32, 52.91, 358.32, 0.87, 373.6]], "area": 2824.762849999999, "iscrowd": 0, "image_id": 531111, "bbox": [0.87, 358.32, 114.41, 33.04], "category_id": 81, "id": 1130353}, {"segmentation": [[145.28, 149.77, 160.9, 151.05, 185.77, 149.13, 186.41, 147.54, 172.06, 144.99]], "area": 131.33774999999997, "iscrowd": 0, "image_id": 374628, "bbox": [145.28, 144.99, 41.13, 6.06], "category_id": 81, "id": 1130359}, {"segmentation": [[37.48, 198.2, 123.96, 231.35, 123.96, 215.5, 106.67, 190.99, 61.98, 183.78, 34.59, 196.76], [295.5, 193.87, 219.1, 227.03, 219.1, 193.87, 177.3, 183.78, 119.64, 162.16, 165.77, 166.49, 175.86, 154.95, 196.04, 149.19, 230.63, 167.93, 240.72, 186.67, 252.25, 186.67, 252.25, 196.76, 275.32, 188.11, 276.76, 180.9]], "area": 6075.977699999997, "iscrowd": 0, "image_id": 451412, "bbox": [34.59, 149.19, 260.91, 82.16], "category_id": 81, "id": 1130807}, {"segmentation": [[154.16, 198.21, 143.31, 201.27, 142.2, 206.56, 159.44, 208.22, 184.19, 204.89, 193.37, 200.44, 186.69, 196.54, 156.1, 197.93]], "area": 410.99224999999973, "iscrowd": 0, "image_id": 527759, "bbox": [142.2, 196.54, 51.17, 11.68], "category_id": 81, "id": 1135295}, {"segmentation": [[470.29, 315.85, 469.94, 315.85, 469.59, 325.06, 532.68, 333.92, 532.68, 333.92, 558.55, 324.71, 555.01, 315.85, 555.01, 315.85, 542.6, 311.59, 542.96, 306.63, 494.75, 297.77, 475.61, 309.82, 475.61, 309.82, 469.94, 315.85]], "area": 2121.4943500000013, "iscrowd": 0, "image_id": 536972, "bbox": [469.59, 297.77, 88.96, 36.15], "category_id": 84, "id": 1140875}, {"segmentation": [[160.67, 317.98, 183.15, 286.52, 230.34, 296.63, 317.98, 189.89, 288.76, 253.93, 346.07, 205.62, 260.67, 324.72, 242.7, 364.04, 237.08, 373.03, 208.99, 382.02, 202.25, 375.28]], "area": 9917.341250000001, "iscrowd": 0, "image_id": 369913, "bbox": [160.67, 189.89, 185.4, 192.13], "category_id": 87, "id": 1158110}, {"segmentation": [[336.93, 396.76, 331.72, 397.0, 330.41, 396.41, 328.87, 397.24, 328.28, 400.44, 320.8, 417.52, 319.5, 427.36, 318.67, 431.75, 318.79, 435.19, 318.55, 439.46, 314.28, 445.15, 314.64, 447.88, 322.7, 453.1, 325.31, 451.2, 332.9, 450.96, 371.92, 450.73, 374.3, 446.46, 368.84, 427.6, 367.65, 424.28, 367.18, 407.79, 366.59, 400.2, 365.28, 399.85, 367.06, 394.75, 366.35, 390.95, 361.25, 387.63, 361.13, 389.53, 364.45, 391.54, 365.04, 395.93, 364.21, 398.3, 360.89, 397.83, 359.23, 396.05, 356.98, 396.29, 354.49, 396.17, 353.54, 397.47, 355.2, 399.85, 355.79, 402.45, 355.56, 404.12, 353.42, 405.89, 350.57, 405.78, 347.37, 408.98, 344.29, 408.27, 343.7, 406.49, 339.66, 400.2, 337.17, 396.88]], "area": 2486.615000000001, "iscrowd": 0, "image_id": 482590, "bbox": [314.28, 387.63, 60.02, 65.47], "category_id": 31, "id": 1179265}, {"segmentation": [[391.12, 309.47, 386.44, 312.74, 379.89, 338.47, 379.42, 352.51, 391.59, 357.19, 400.94, 353.92, 405.15, 344.56, 405.15, 331.92, 402.82, 325.37, 394.86, 309.93], [400.94, 291.68, 410.77, 273.9, 419.19, 262.68, 426.68, 252.38, 426.68, 258.93, 410.3, 286.54, 401.41, 297.77]], "area": 1145.1356500000004, "iscrowd": 0, "image_id": 482590, "bbox": [379.42, 252.38, 47.26, 104.81], "category_id": 31, "id": 1179598}, {"segmentation": [[222.81, 439.98, 212.37, 443.78, 177.26, 430.49, 182.01, 423.85, 182.95, 365.97, 169.67, 341.3, 155.44, 311.88, 144.05, 288.16, 144.05, 268.24, 143.1, 243.57, 145.95, 228.38, 148.8, 224.59, 151.64, 226.49, 146.9, 265.39, 151.64, 291.01, 160.18, 309.99, 172.52, 334.66, 181.06, 347.94, 186.75, 361.22, 215.22, 372.61, 206.68, 341.3, 210.47, 341.3, 216.16, 363.12, 220.91, 375.46]], "area": 3753.1987499999977, "iscrowd": 0, "image_id": 482590, "bbox": [143.1, 224.59, 79.71, 219.19], "category_id": 31, "id": 1182111}, {"segmentation": [[335.56, 176.97, 319.72, 161.13, 310.14, 159.05, 301.8, 159.05, 298.47, 148.63, 298.05, 119.88, 287.22, 111.96, 283.05, 114.05, 293.05, 179.47]], "area": 1210.5222500000004, "iscrowd": 0, "image_id": 559270, "bbox": [283.05, 111.96, 52.51, 67.51], "category_id": 1, "id": 1211923}, {"segmentation": [[372.61, 146.28, 380.77, 142.29, 390.75, 142.47, 396.92, 147.55, 398.55, 155.35, 393.29, 166.77, 390.39, 175.3, 377.87, 174.03, 374.61, 161.88]], "area": 645.7830000000002, "iscrowd": 0, "image_id": 559270, "bbox": [372.61, 142.29, 25.94, 33.01], "category_id": 1, "id": 1215149}, {"segmentation": [[245.42, 66.56, 299.24, 64.4, 310.0, 68.71, 328.3, 103.16, 353.06, 127.91, 357.37, 135.45, 305.7, 148.36, 273.41, 149.44, 245.42, 170.97, 245.42, 194.65, 272.33, 238.78, 261.57, 277.53, 233.58, 276.46, 221.74, 214.03, 221.74, 206.49, 226.04, 190.34, 232.5, 180.66, 247.57, 159.13, 260.49, 140.83]], "area": 9999.134899999995, "iscrowd": 0, "image_id": 67823, "bbox": [221.74, 64.4, 135.63, 213.13], "category_id": 2, "id": 1335784}, {"segmentation": [[594.68, 276.84, 593.99, 270.56, 594.68, 263.14, 595.59, 257.32, 596.84, 252.87, 599.93, 252.3, 600.16, 266.68, 599.01, 275.82, 597.99, 280.15, 594.9, 280.04], [617.85, 251.61, 620.25, 252.07, 621.5, 254.58, 621.73, 257.32, 611.12, 257.21, 610.66, 254.81, 611.57, 252.3]], "area": 185.50369999999927, "iscrowd": 0, "image_id": 429042, "bbox": [593.99, 251.61, 27.74, 28.54], "category_id": 3, "id": 1338141}, {"segmentation": [[193.57, 135.87, 200.55, 132.12, 204.62, 131.96, 201.61, 135.66, 200.45, 139.95, 199.55, 140.74, 200.71, 143.59, 200.66, 144.34, 199.49, 144.71, 196.32, 144.34, 196.37, 142.43, 195.1, 143.28, 193.94, 143.49, 192.99, 142.06, 193.47, 138.89, 192.67, 137.46, 192.78, 135.61]], "area": 82.84785000000004, "iscrowd": 0, "image_id": 382406, "bbox": [192.67, 131.96, 11.95, 12.75], "category_id": 3, "id": 1349885}, {"segmentation": [[571.5, 266.57, 565.64, 266.67, 563.72, 264.14, 564.13, 260.1, 566.75, 258.59, 570.59, 258.08, 573.52, 257.68, 577.26, 258.18, 580.18, 259.19, 578.97, 262.83, 577.36, 264.65, 572.1, 264.65, 571.3, 266.46]], "area": 109.04799999999977, "iscrowd": 0, "image_id": 429042, "bbox": [563.72, 257.68, 16.46, 8.99], "category_id": 3, "id": 1359552}, {"segmentation": [[562.41, 139.54, 597.56, 165.1, 609.28, 201.32, 609.28, 265.23, 618.86, 295.05, 606.08, 313.16, 602.89, 320.62, 602.89, 347.24, 593.3, 365.35, 583.71, 373.87, 565.6, 373.87, 543.24, 363.22, 534.71, 350.44, 531.52, 348.31, 518.74, 348.31, 497.43, 348.31, 474.0, 340.85, 464.41, 340.85, 410.09, 339.79, 389.85, 341.92, 368.55, 348.31, 338.72, 351.51, 314.22, 350.44, 304.64, 351.51, 291.86, 368.55, 279.07, 391.98, 264.16, 407.96, 250.31, 415.42, 218.36, 406.89, 221.56, 399.44, 222.62, 386.66, 219.42, 361.09, 211.97, 319.55, 190.67, 309.96, 176.82, 298.25, 176.82, 298.25, 173.62, 324.88, 155.51, 324.88, 140.6, 323.81, 138.47, 306.77, 135.28, 273.75, 129.95, 257.77, 110.78, 248.18, 110.78, 239.66, 116.1, 231.14, 110.78, 175.75, 109.71, 129.95, 117.17, 69.24, 119.3, 57.52, 140.6, 47.93, 363.22, 18.11, 466.54, 17.04, 497.43, 31.96, 532.58, 92.67, 552.82, 100.13, 554.95, 89.47, 566.67, 89.47, 568.8, 90.54, 572.0, 91.6, 572.0, 99.06, 567.73, 104.39, 556.02, 109.71, 551.76, 113.97, 549.63, 118.23, 562.41, 132.08, 562.41, 132.08]], "area": 148988.57550000004, "iscrowd": 0, "image_id": 384849, "bbox": [109.71, 17.04, 509.15, 398.38], "category_id": 8, "id": 1368177}, {"segmentation": [[623.56, 243.69, 620.06, 243.69, 618.98, 236.55, 623.56, 236.55, 624.37, 242.89]], "area": 31.73729999999989, "iscrowd": 0, "image_id": 429042, "bbox": [618.98, 236.55, 5.39, 7.14], "category_id": 10, "id": 1384639}, {"segmentation": [[580.48, 177.96, 593.94, 179.3, 602.91, 179.3, 620.86, 148.8, 630.73, 146.1, 639.7, 150.59, 640.0, 153.28, 639.25, 218.34, 640.0, 251.54, 605.15, 251.54, 599.77, 243.02, 594.83, 236.29, 588.55, 222.38, 586.31, 213.4, 584.51, 205.33, 585.86, 189.62, 585.86, 183.34]], "area": 4465.098800000002, "iscrowd": 0, "image_id": 374628, "bbox": [580.48, 146.1, 59.52, 105.44], "category_id": 15, "id": 1396915}, {"segmentation": [[32.03, 190.16, 30.45, 191.02, 29.88, 191.59, 26.87, 194.03, 26.58, 195.47, 25.15, 196.18, 25.15, 194.18, 23.28, 194.46, 22.42, 195.9, 20.55, 197.33, 20.41, 194.89, 18.83, 193.46, 16.25, 190.16, 20.41, 189.58, 23.14, 188.15, 24.86, 186.57, 27.3, 185.57, 31.46, 185.57, 32.46, 187.29, 31.89, 189.3]], "area": 95.70045000000007, "iscrowd": 0, "image_id": 535483, "bbox": [16.25, 185.57, 16.21, 11.76], "category_id": 16, "id": 1400671}, {"segmentation": [[539.02, 274.2, 539.02, 292.2, 539.71, 293.58, 542.31, 296.0, 544.73, 297.39, 548.02, 300.68, 548.02, 305.18, 549.06, 333.04, 553.39, 314.87, 552.17, 300.16, 552.17, 291.16, 552.17, 284.06, 552.17, 278.01, 551.65, 274.02, 547.85, 272.81, 543.17, 272.81, 539.19, 274.2]], "area": 435.38689999999946, "iscrowd": 0, "image_id": 214007, "bbox": [539.02, 272.81, 14.37, 60.23], "category_id": 44, "id": 1483785}, {"segmentation": [[19.77, 339.84, 19.41, 414.85, 22.34, 419.24, 21.97, 424.73, 21.97, 424.73, 26.73, 426.19, 27.09, 426.19, 35.87, 425.82, 37.7, 423.26, 36.97, 418.51, 38.43, 414.12, 42.46, 409.36, 44.29, 406.07, 45.39, 403.87, 44.65, 342.04, 41.73, 340.21, 29.29, 339.84, 28.19, 339.84]], "area": 2040.0253000000002, "iscrowd": 0, "image_id": 214007, "bbox": [19.41, 339.84, 25.98, 86.35], "category_id": 44, "id": 1486044}, {"segmentation": [[80.0, 197.1, 94.0, 196.1, 94.0, 205.1, 91.0, 213.1, 89.0, 217.1, 89.0, 232.1, 93.0, 232.1, 81.0, 234.1, 85.0, 230.1, 85.0, 216.1, 80.0, 210.1, 79.0, 198.1, 86.0, 197.1]], "area": 314.5, "iscrowd": 0, "image_id": 536972, "bbox": [79.0, 196.1, 15.0, 38.0], "category_id": 46, "id": 1498135}, {"segmentation": [[97.72, 160.55, 94.01, 160.55, 90.56, 160.81, 88.17, 156.83, 91.62, 154.44, 93.21, 153.38, 92.95, 141.43, 88.17, 136.38, 86.31, 130.28, 85.78, 121.78, 85.78, 112.76, 93.74, 113.02], [103.3, 158.69, 101.44, 114.35, 103.57, 118.86, 104.63, 122.84, 106.22, 130.01, 106.75, 140.63, 107.02, 151.52, 105.42, 158.95]], "area": 472.3371999999998, "iscrowd": 0, "image_id": 536972, "bbox": [85.78, 112.76, 21.24, 48.05], "category_id": 46, "id": 1499176}, {"segmentation": [[73.71, 161.8, 72.27, 159.78, 76.59, 157.18, 76.59, 141.6, 74.29, 139.29, 71.98, 137.85, 70.82, 116.21, 78.04, 115.06, 84.39, 116.21, 85.83, 125.73, 86.71, 132.48, 82.88, 138.11, 81.61, 141.41, 82.92, 156.42, 86.43, 157.06, 88.24, 157.27, 89.41, 158.44, 90.05, 160.04, 89.62, 160.78]], "area": 494.86945000000003, "iscrowd": 0, "image_id": 536972, "bbox": [70.82, 115.06, 19.23, 46.74], "category_id": 46, "id": 1499363}, {"segmentation": [[227.24, 202.35, 198.47, 210.98, 189.84, 219.61, 198.47, 261.31, 208.54, 317.4, 209.98, 326.03, 215.73, 327.47, 261.75, 334.66, 270.38, 321.72, 284.76, 225.36, 284.76, 216.73, 276.13, 205.22, 254.56, 203.79, 245.93, 212.41]], "area": 9624.982750000001, "iscrowd": 0, "image_id": 51355, "bbox": [189.84, 202.35, 94.92, 132.31], "category_id": 47, "id": 1508771}, {"segmentation": [[206.0, 189.63, 206.0, 189.63, 207.24, 198.31, 208.17, 202.5, 215.46, 201.26, 214.68, 188.86, 206.31, 189.79]], "area": 102.9975, "iscrowd": 0, "image_id": 527759, "bbox": [206.0, 188.86, 9.46, 13.64], "category_id": 47, "id": 1513051}, {"segmentation": [[181.3, 110.55, 179.98, 108.58, 179.59, 101.23, 187.07, 101.49, 187.47, 102.93, 188.12, 107.92, 187.73, 111.2]], "area": 73.61035000000001, "iscrowd": 0, "image_id": 527759, "bbox": [179.59, 101.23, 8.53, 9.97], "category_id": 47, "id": 1513994}, {"segmentation": [[185.43, 67.21, 190.74, 67.1, 191.18, 83.36, 188.53, 83.25, 186.65, 82.81]], "area": 78.67260000000007, "iscrowd": 0, "image_id": 527759, "bbox": [185.43, 67.1, 5.75, 16.26], "category_id": 47, "id": 1514097}, {"segmentation": [[147.73, 73.27, 148.47, 81.23, 147.6, 82.04, 140.17, 82.11, 139.09, 80.42, 138.96, 72.12, 144.22, 71.85, 147.6, 72.12]], "area": 89.95524999999994, "iscrowd": 0, "image_id": 527759, "bbox": [138.96, 71.85, 9.51, 10.26], "category_id": 47, "id": 1514639}, {"segmentation": [[152.86, 93.38, 146.58, 92.52, 141.31, 91.81, 138.45, 91.67, 139.17, 100.22, 140.59, 110.06, 150.44, 110.64, 152.57, 110.78]], "area": 238.93025000000029, "iscrowd": 0, "image_id": 527759, "bbox": [138.45, 91.67, 14.41, 19.11], "category_id": 47, "id": 1515042}, {"segmentation": [[142.85, 128.73, 142.85, 134.46, 151.95, 134.63, 152.12, 128.23]], "area": 55.693000000000126, "iscrowd": 0, "image_id": 527759, "bbox": [142.85, 128.23, 9.27, 6.4], "category_id": 47, "id": 1515128}, {"segmentation": [[184.41, 83.35, 176.21, 82.7, 176.54, 66.31, 178.51, 65.0, 182.44, 64.02, 184.73, 65.66, 186.37, 73.52, 185.06, 83.35]], "area": 167.66984999999997, "iscrowd": 0, "image_id": 527759, "bbox": [176.21, 64.02, 10.16, 19.33], "category_id": 47, "id": 1515400}, {"segmentation": [[453.96, 100.53, 453.31, 112.86, 448.06, 113.52, 446.87, 112.99, 447.53, 100.39, 448.97, 100.13, 450.02, 100.0, 450.81, 99.74, 451.73, 99.74, 453.44, 100.0, 453.7, 100.13, 454.09, 100.53]], "area": 85.00215000000001, "iscrowd": 0, "image_id": 527759, "bbox": [446.87, 99.74, 7.22, 13.78], "category_id": 47, "id": 1515599}, {"segmentation": [[422.19, 99.4, 428.46, 99.52, 428.0, 113.22, 426.37, 114.49, 423.82, 103.23]], "area": 53.6360999999999, "iscrowd": 0, "image_id": 527759, "bbox": [422.19, 99.4, 6.27, 15.09], "category_id": 47, "id": 1515724}, {"segmentation": [[218.45, 215.36, 225.11, 215.23, 234.71, 214.34, 236.63, 215.87, 239.96, 215.87, 239.96, 214.21, 236.63, 213.7, 235.74, 212.8, 217.81, 213.7, 217.81, 214.47]], "area": 39.35985000000004, "iscrowd": 0, "image_id": 374628, "bbox": [217.81, 212.8, 22.15, 3.07], "category_id": 50, "id": 1528463}, {"segmentation": [[148.16, 282.08, 158.74, 289.14, 162.4, 288.49, 162.79, 284.96, 162.4, 278.03, 152.6, 278.16, 149.07, 280.39], [170.1, 278.69, 173.89, 279.21, 174.28, 284.44, 173.11, 286.39, 169.97, 287.18, 170.1, 279.6], [176.77, 279.08, 182.64, 279.21, 185.0, 280.25, 185.26, 281.95, 182.38, 284.17, 177.29, 285.48, 176.9, 281.95]], "area": 184.48620000000005, "iscrowd": 0, "image_id": 536972, "bbox": [148.16, 278.03, 37.1, 11.11], "category_id": 51, "id": 1534122}, {"segmentation": [[214.08, 139.21, 214.61, 141.3, 216.48, 143.1, 217.52, 143.62, 219.47, 144.0, 220.82, 144.0, 223.36, 142.05, 224.18, 140.41, 224.11, 138.68, 218.35, 138.46, 214.38, 138.01]], "area": 44.95784999999999, "iscrowd": 0, "image_id": 374628, "bbox": [214.08, 138.01, 10.1, 5.99], "category_id": 51, "id": 1536151}, {"segmentation": [[148.53, 291.48, 152.25, 288.36, 152.01, 287.28, 146.85, 284.64, 143.01, 284.52, 143.49, 291.48], [127.3, 295.2, 122.02, 294.72, 117.1, 292.92, 114.94, 289.92, 115.3, 286.44, 118.54, 285.48, 127.9, 285.12]], "area": 154.2672000000004, "iscrowd": 0, "image_id": 536972, "bbox": [114.94, 284.52, 37.31, 10.68], "category_id": 51, "id": 1536948}, {"segmentation": [[91.64, 379.18, 83.96, 380.57, 82.91, 380.92, 82.21, 381.62, 81.16, 386.86, 83.96, 395.6, 91.99, 393.85, 94.09, 407.83, 94.79, 416.91, 95.49, 420.06, 97.23, 425.3, 105.27, 428.44, 145.45, 430.89, 183.89, 427.74, 187.73, 415.51, 192.62, 406.78, 195.07, 395.95, 195.07, 387.91, 202.75, 381.27, 207.65, 377.08, 205.55, 368.69, 194.72, 368.0, 188.78, 368.0, 178.99, 365.2, 162.92, 361.71, 156.28, 361.71, 154.19, 361.71, 152.44, 359.96, 152.09, 359.61, 149.64, 353.32, 143.01, 352.62, 140.56, 358.91, 139.16, 361.36, 137.42, 362.06, 122.74, 364.15, 108.07, 366.6, 100.73, 370.09, 90.6, 377.08]], "area": 6752.713500000001, "iscrowd": 0, "image_id": 214007, "bbox": [81.16, 352.62, 126.49, 78.27], "category_id": 51, "id": 1537787}, {"segmentation": [[310.03, 125.0, 316.18, 123.75, 318.18, 124.65, 318.66, 126.58, 318.8, 130.04, 317.08, 132.87, 314.87, 134.04, 312.03, 134.11, 309.83, 131.76, 309.83, 129.35, 309.83, 127.14]], "area": 77.48930000000027, "iscrowd": 0, "image_id": 374628, "bbox": [309.83, 123.75, 8.97, 10.36], "category_id": 53, "id": 1548472}, {"segmentation": [[326.52, 134.96, 324.05, 135.51, 322.86, 134.68, 322.4, 133.67, 322.13, 132.03, 323.59, 129.55, 325.79, 130.01, 326.06, 132.48]], "area": 18.96675000000004, "iscrowd": 0, "image_id": 374628, "bbox": [322.13, 129.55, 4.39, 5.96], "category_id": 53, "id": 1550427}, {"segmentation": [[327.81, 134.01, 330.6, 135.2, 332.6, 133.11, 334.19, 131.01, 333.49, 128.52, 332.2, 127.32, 329.2, 128.02, 326.31, 130.22, 327.01, 132.21]], "area": 40.152750000000054, "iscrowd": 0, "image_id": 374628, "bbox": [326.31, 127.32, 7.88, 7.88], "category_id": 53, "id": 1550929}, {"segmentation": [[268.89, 295.81, 268.24, 293.86, 267.26, 292.56, 269.86, 293.21, 273.44, 293.21, 278.98, 286.7, 284.18, 283.45, 287.86, 282.14, 292.61, 280.93, 301.99, 280.82, 310.93, 281.7, 317.99, 282.47, 321.86, 282.8, 323.18, 280.59, 325.17, 279.71, 327.49, 280.48, 327.93, 282.14, 327.49, 282.69], [267.21, 392.66, 266.92, 366.73, 270.61, 369.14, 282.36, 370.28, 288.17, 370.98, 290.86, 371.69, 304.46, 371.27, 311.97, 371.69, 312.11, 383.45, 291.0, 379.91, 285.48, 381.18, 285.2, 384.58, 307.72, 388.97, 294.4, 395.21, 283.92, 393.65, 283.64, 402.64, 280.8, 398.25, 275.71, 394.85, 269.76, 393.15]], "area": 1223.9169500000012, "iscrowd": 0, "image_id": 536972, "bbox": [266.92, 279.71, 61.01, 122.93], "category_id": 62, "id": 1582339}, {"segmentation": [[494.35, 215.3, 485.71, 192.08, 487.06, 175.61, 498.94, 175.34, 497.59, 225.56, 493.27, 219.62], [476.8, 165.89, 470.86, 161.03, 472.21, 155.9, 483.28, 151.85, 485.44, 157.52], [476.8, 173.18, 470.86, 187.49, 472.48, 193.43, 464.38, 209.9, 467.08, 218.81, 471.13, 211.52, 472.75, 216.11, 475.99, 208.28, 479.77, 191.54, 476.8, 185.06]], "area": 825.3737999999992, "iscrowd": 0, "image_id": 374628, "bbox": [464.38, 151.85, 34.56, 73.71], "category_id": 62, "id": 1593878}, {"segmentation": [[5.75, 562.34, 112.18, 589.66, 230.11, 606.92, 241.62, 632.81, 2.88, 631.37, 4.31, 565.21]], "area": 10243.11005, "iscrowd": 0, "image_id": 51355, "bbox": [2.88, 562.34, 238.74, 70.47], "category_id": 81, "id": 1644907}, {"segmentation": [[627.69, 67.37, 640.0, 64.14, 640.0, 163.25, 640.0, 233.94, 640.0, 309.48, 640.0, 363.39, 607.03, 356.94, 610.58, 299.47, 616.39, 235.56, 616.39, 166.15, 621.88, 88.67, 625.1, 68.98]], "area": 7215.935450000001, "iscrowd": 0, "image_id": 482022, "bbox": [607.03, 64.14, 32.97, 299.25], "category_id": 82, "id": 1647566}, {"segmentation": [[382.56, 258.81, 398.11, 263.42, 426.92, 245.56, 426.92, 238.07, 341.66, 218.49, 301.34, 239.22, 322.08, 246.71, 347.42, 243.26, 369.31, 246.71]], "area": 2660.414400000001, "iscrowd": 0, "image_id": 451412, "bbox": [301.34, 218.49, 125.58, 44.93], "category_id": 84, "id": 1651725}, {"segmentation": [[494.57, 255.38, 489.41, 258.27, 487.13, 264.95, 491.23, 272.39, 497.61, 272.55, 502.32, 264.8, 497.0, 255.53, 494.72, 255.23]], "area": 179.03709999999995, "iscrowd": 0, "image_id": 566576, "bbox": [487.13, 255.23, 15.19, 17.32], "category_id": 85, "id": 1663870}, {"segmentation": [[310.5, 189.43, 310.84, 191.8, 308.58, 195.85, 306.1, 199.01, 305.09, 210.85, 309.37, 213.78, 319.74, 212.2, 321.21, 207.24, 320.53, 198.22, 319.29, 196.53, 317.83, 195.52, 316.13, 194.61, 315.01, 192.36, 315.23, 189.88]], "area": 283.7284499999998, "iscrowd": 0, "image_id": 374628, "bbox": [305.09, 189.43, 16.12, 24.35], "category_id": 86, "id": 1671237}, {"segmentation": [[538.27, 160.11, 538.08, 165.15, 541.47, 165.24, 545.13, 165.33, 545.78, 159.75, 544.4, 160.11, 542.75, 161.21, 539.64, 160.39, 538.72, 160.39]], "area": 34.15374999999993, "iscrowd": 0, "image_id": 374628, "bbox": [538.08, 159.75, 7.7, 5.58], "category_id": 86, "id": 1671286}, {"segmentation": [[439.03, 142.07, 439.45, 150.48, 445.97, 150.9, 447.23, 141.86]], "area": 64.26010000000034, "iscrowd": 0, "image_id": 374628, "bbox": [439.03, 141.86, 8.2, 9.04], "category_id": 86, "id": 1671417}, {"segmentation": [[466.24, 141.99, 466.24, 143.92, 464.97, 144.74, 464.75, 146.52, 465.05, 151.58, 469.96, 151.58, 470.11, 145.26, 468.92, 144.37, 469.14, 141.99, 467.65, 141.99, 466.69, 142.06]], "area": 43.24749999999995, "iscrowd": 0, "image_id": 374628, "bbox": [464.75, 141.99, 5.36, 9.59], "category_id": 86, "id": 1671447}, {"segmentation": [[566.47, 123.71, 564.39, 123.71, 566.47, 122.46, 566.89, 122.04, 568.97, 122.04, 571.47, 124.96, 573.97, 130.38, 577.72, 133.29, 580.64, 136.63, 581.05, 139.13, 577.72, 142.46, 576.89, 143.71, 573.14, 143.71, 571.05, 142.04, 566.89, 133.29, 563.14, 125.79]], "area": 191.3646000000007, "iscrowd": 0, "image_id": 559270, "bbox": [563.14, 122.04, 17.91, 21.67], "category_id": 1, "id": 1678397}, {"segmentation": [[56.96, 216.15, 57.44, 215.03, 58.88, 215.19, 59.04, 213.75, 57.92, 203.38, 55.85, 198.91, 51.69, 196.83, 52.49, 195.39, 52.17, 192.04, 51.37, 189.33, 46.59, 187.73, 42.59, 188.05, 41.16, 189.8, 39.4, 190.12, 38.12, 191.4, 39.56, 192.52, 41.0, 192.68, 40.84, 194.28, 41.0, 196.19, 41.95, 198.11, 43.07, 199.86, 42.91, 201.78, 42.11, 203.38, 41.95, 205.45, 40.68, 206.41, 37.17, 205.13, 34.13, 204.17, 33.01, 206.25, 35.09, 207.69, 42.59, 208.33, 45.63, 208.96]], "area": 350.0551500000001, "iscrowd": 0, "image_id": 436350, "bbox": [33.01, 187.73, 26.03, 28.42], "category_id": 1, "id": 1707200}, {"segmentation": [[220.02, 241.91, 232.9, 235.99, 241.95, 229.02, 251.0, 224.5, 258.66, 224.5, 267.02, 222.06, 257.97, 203.61, 256.23, 196.65, 256.23, 191.42, 253.44, 187.25, 251.7, 179.59, 251.0, 171.93, 257.62, 164.96, 263.19, 154.17, 265.63, 147.9, 270.5, 143.03, 275.72, 141.64, 278.51, 144.42, 281.64, 147.9, 288.61, 149.99, 295.92, 153.13, 302.18, 157.65, 307.75, 165.31, 310.54, 171.93, 314.02, 179.94, 315.76, 188.99, 311.24, 196.3, 306.01, 200.82, 302.88, 203.96, 303.23, 211.62, 306.71, 214.4, 323.07, 218.23, 330.38, 220.32, 342.22, 223.8, 350.23, 235.64, 358.24, 245.04, 363.46, 260.36, 365.55, 268.02, 364.85, 287.86, 365.2, 305.62, 366.24, 323.37, 364.15, 337.65, 362.76, 346.0, 356.5, 360.63, 357.19, 370.03, 359.98, 381.17, 362.07, 387.09, 360.67, 396.83, 356.5, 400.32, 354.06, 406.93, 348.49, 406.58, 343.61, 404.84, 341.18, 399.27, 335.95, 394.75, 327.25, 396.49, 320.98, 417.72, 319.94, 426.43, 320.29, 437.92, 316.11, 444.88, 315.06, 450.8, 325.86, 453.24, 325.51, 454.28, 322.03, 465.42, 319.59, 472.73, 328.64, 493.62, 332.12, 504.41, 334.56, 528.44, 345.35, 546.54, 354.06, 555.59, 365.55, 567.78, 359.98, 575.09, 357.19, 602.25, 347.1, 609.91, 338.04, 611.99, 335.95, 607.12, 335.26, 600.16, 335.61, 584.84, 334.91, 579.96, 328.99, 567.43, 328.99, 563.6, 328.29, 560.12, 325.86, 554.2, 320.29, 541.67, 303.23, 521.82, 302.18, 533.31, 300.79, 544.45, 301.84, 560.82, 308.45, 584.14, 313.32, 595.98, 314.37, 608.51, 315.06, 613.73, 306.36, 614.08, 293.83, 618.61, 275.38, 619.31, 264.93, 620.35, 254.49, 620.0, 249.26, 615.48, 255.18, 608.86, 265.28, 608.16, 270.15, 606.08, 277.81, 595.28, 284.78, 586.93, 282.69, 569.52, 270.15, 536.79, 267.02, 520.78, 265.28, 512.77, 264.23, 501.98, 260.06, 500.93, 250.66, 467.51, 243.69, 420.51, 241.26, 394.05, 240.56, 373.16, 239.86, 363.06, 238.12, 359.58, 239.17, 350.88, 238.47, 340.78, 236.73, 325.12, 236.38, 314.32, 232.9, 308.4, 235.34, 298.31, 236.03, 288.91, 234.29, 284.73, 231.16, 270.8, 224.54, 254.79, 220.02, 245.39], [115.02, 253.75, 112.5, 251.69, 112.96, 249.39, 112.27, 249.39, 111.58, 246.86, 114.79, 239.97, 120.77, 231.7, 125.36, 228.03, 131.1, 223.43, 137.99, 221.37, 143.51, 220.22, 149.02, 220.22, 150.86, 221.37, 151.09, 223.89, 143.28, 231.93, 137.07, 238.82, 135.01, 240.43, 130.41, 238.59, 129.95, 236.98, 129.95, 236.98, 125.36, 238.59, 121.91, 247.09, 121.45, 251.69, 119.39, 255.13, 115.94, 253.98]], "area": 40814.69605000002, "iscrowd": 0, "image_id": 482590, "bbox": [111.58, 141.64, 254.66, 478.71], "category_id": 1, "id": 1709755}, {"segmentation": [[525.3, 107.39, 508.18, 98.83, 500.69, 92.95, 504.43, 79.57, 506.04, 79.04, 512.46, 51.22, 517.81, 37.85, 526.9, 23.94, 539.74, 25.01, 555.78, 41.06, 556.32, 29.83, 561.13, 14.32, 569.16, 12.18, 570.76, 10.57, 573.97, 0.0, 632.81, 2.55, 635.48, 13.78, 638.69, 23.41, 633.88, 49.62, 631.21, 68.34, 624.25, 84.39, 608.2, 89.74, 576.65, 84.39, 569.16, 82.25, 561.67, 73.69, 556.32, 75.83, 534.39, 94.55, 534.39, 99.36, 534.39, 102.04]], "area": 9265.41045, "iscrowd": 0, "image_id": 456695, "bbox": [500.69, 0.0, 138.0, 107.39], "category_id": 1, "id": 1711760}, {"segmentation": [[185.42, 391.5, 188.3, 384.42, 191.19, 379.7, 195.91, 380.49, 195.91, 388.62, 196.44, 396.49, 196.7, 416.68, 191.71, 414.06, 191.71, 391.24]], "area": 205.1207499999996, "iscrowd": 0, "image_id": 566576, "bbox": [185.42, 379.7, 11.28, 36.98], "category_id": 1, "id": 1720499}, {"segmentation": [[480.0, 92.04, 457.35, 84.85, 442.97, 84.85, 418.52, 110.74, 402.7, 148.13, 399.82, 179.78, 411.33, 220.04, 430.02, 306.34, 455.91, 300.58, 447.28, 388.31, 431.46, 519.19, 477.48, 592.54]], "area": 23234.79525000001, "iscrowd": 0, "image_id": 550273, "bbox": [399.82, 84.85, 80.18, 507.69], "category_id": 1, "id": 1723193}, {"segmentation": [[148.13, 532.13, 184.09, 535.01, 188.4, 533.57, 186.97, 523.51, 166.83, 514.88, 162.52, 504.81, 175.46, 451.6, 165.39, 395.51, 182.65, 384.0, 189.84, 299.15, 235.87, 309.21, 284.76, 289.08, 300.58, 268.94, 247.37, 281.89, 215.73, 273.26, 217.17, 211.42, 182.65, 179.78, 161.08, 184.09, 128.0, 211.42, 103.55, 284.76, 76.22, 366.74, 86.29, 386.88, 84.85, 431.46, 115.06, 484.67, 107.87, 532.13, 117.93, 573.84, 155.33, 579.6, 169.71, 562.34]], "area": 33873.07275, "iscrowd": 0, "image_id": 451412, "bbox": [76.22, 179.78, 224.36, 399.82], "category_id": 1, "id": 1725324}, {"segmentation": [[378.84, 145.33, 372.88, 130.42, 371.39, 106.55, 389.29, 103.56, 408.68, 107.29, 419.87, 112.52, 425.84, 126.69, 428.82, 138.62, 437.02, 140.11, 441.5, 134.89, 442.99, 122.96, 447.47, 114.75, 461.64, 116.24, 465.37, 123.7, 463.88, 132.65, 459.4, 140.11, 454.93, 151.3, 445.98, 163.98, 440.01, 177.41, 413.16, 175.92, 397.49, 174.42]], "area": 4520.22735, "iscrowd": 0, "image_id": 559270, "bbox": [371.39, 103.56, 93.98, 73.85], "category_id": 1, "id": 1727088}, {"segmentation": [[548.88, 167.93, 578.18, 161.17, 613.12, 160.04, 637.92, 166.8, 640.0, 185.96, 640.0, 285.15, 640.0, 297.54, 610.87, 309.94, 597.34, 309.94, 602.98, 255.84, 584.94, 208.51, 563.53, 187.09, 543.24, 176.95]], "area": 7737.353899999998, "iscrowd": 0, "image_id": 67823, "bbox": [543.24, 160.04, 96.76, 149.9], "category_id": 2, "id": 1766943}, {"segmentation": [[530.98, 171.35, 564.78, 190.28, 598.57, 243.0, 601.62, 289.3, 593.17, 313.3, 583.03, 332.56, 578.97, 334.25, 574.92, 334.25, 563.76, 317.69, 554.3, 301.13, 543.48, 285.58, 532.67, 244.01, 543.48, 235.9, 551.6, 222.72, 546.86, 209.88, 520.5, 179.46, 517.12, 173.38, 506.31, 164.59, 512.39, 157.15, 524.22, 150.39, 529.29, 158.84], [565.84, 348.55, 525.96, 364.77, 525.96, 349.9, 523.93, 339.76, 488.78, 284.67, 481.68, 277.91, 485.06, 273.85, 544.88, 323.87, 558.4, 336.72]], "area": 9219.472900000002, "iscrowd": 0, "image_id": 67823, "bbox": [481.68, 150.39, 119.94, 214.38], "category_id": 2, "id": 1767249}, {"segmentation": [[111.59, 122.16, 107.1, 120.88, 106.46, 122.48, 103.58, 122.16, 104.86, 107.43, 107.1, 105.5, 106.14, 102.3, 109.03, 102.3, 114.47, 101.02, 112.55, 121.52, 112.55, 121.52]], "area": 172.03379999999999, "iscrowd": 0, "image_id": 384849, "bbox": [103.58, 101.02, 10.89, 21.46], "category_id": 3, "id": 1777887}, {"segmentation": [[427.07, 287.06, 434.67, 226.28, 606.15, 223.03, 613.21, 207.29, 570.88, 187.75, 377.68, 189.38, 384.2, 207.29, 406.45, 209.46, 415.13, 219.23, 412.42, 296.29, 428.7, 297.37]], "area": 8649.336300000003, "iscrowd": 0, "image_id": 425578, "bbox": [377.68, 187.75, 235.53, 109.62], "category_id": 15, "id": 1811323}, {"segmentation": [[360.69, 146.41, 480.04, 147.62, 481.25, 153.28, 481.25, 167.04, 479.23, 173.51, 483.27, 173.51, 485.7, 177.96, 484.08, 190.91, 465.07, 189.7, 465.88, 173.92, 462.64, 162.99, 459.0, 158.54, 456.17, 155.31, 453.74, 155.31, 445.65, 163.4, 439.58, 160.16, 432.3, 160.16, 426.23, 162.59, 422.99, 167.04, 416.93, 163.8, 412.88, 162.59, 410.05, 162.99, 397.51, 156.93, 391.03, 159.35, 392.65, 162.59, 396.29, 162.59, 404.38, 167.85, 403.98, 174.32, 403.57, 177.15, 396.7, 177.15, 383.75, 173.51, 383.35, 179.58, 403.98, 183.63, 403.98, 188.48, 384.56, 188.48, 379.71, 190.5, 368.38, 187.27, 362.71, 181.2, 362.71, 176.75, 354.62, 166.64, 355.84, 144.38]], "area": 3335.794850000001, "iscrowd": 0, "image_id": 425578, "bbox": [354.62, 144.38, 131.08, 46.53], "category_id": 31, "id": 1837141}, {"segmentation": [[385.83, 559.86, 406.28, 547.28, 446.38, 543.35, 480.0, 548.85, 479.41, 628.27, 480.0, 640.0, 388.98, 638.5, 388.19, 588.17, 388.19, 568.51]], "area": 8426.137, "iscrowd": 0, "image_id": 550273, "bbox": [385.83, 543.35, 94.17, 96.65], "category_id": 47, "id": 1879594}, {"segmentation": [[277.85, 214.73, 279.22, 203.4, 282.93, 203.08, 285.68, 203.08, 287.69, 203.29, 288.86, 203.82, 289.6, 204.56, 290.44, 205.31, 290.97, 207.42, 290.66, 211.44, 290.55, 216.21, 286.95, 217.16, 283.35, 217.37, 280.81, 217.27, 278.17, 216.0]], "area": 165.3999499999999, "iscrowd": 0, "image_id": 374628, "bbox": [277.85, 203.08, 13.12, 14.29], "category_id": 47, "id": 1881052}, {"segmentation": [[277.69, 139.52, 268.24, 196.85, 255.96, 198.11, 246.51, 195.27, 245.25, 177.32, 253.44, 173.85, 255.65, 170.39, 262.89, 169.76, 255.02, 150.55, 243.99, 134.48, 261.0, 137.95, 278.01, 136.06]], "area": 1287.0664000000008, "iscrowd": 0, "image_id": 451412, "bbox": [243.99, 134.48, 34.02, 63.63], "category_id": 47, "id": 1883010}, {"segmentation": [[187.74, 316.36, 197.04, 295.16, 205.59, 259.08, 210.43, 250.15, 216.38, 246.43, 221.59, 253.5, 202.62, 295.9]], "area": 541.3496499999999, "iscrowd": 0, "image_id": 550273, "bbox": [187.74, 246.43, 33.85, 69.93], "category_id": 50, "id": 1895533}, {"segmentation": [[329.46, 231.62, 326.41, 232.31, 321.42, 229.4, 320.59, 222.88, 322.95, 216.78, 332.51, 215.4, 338.06, 216.92, 341.8, 219.97, 343.47, 224.27, 338.61, 228.29, 333.21, 229.95]], "area": 277.3365500000002, "iscrowd": 0, "image_id": 410272, "bbox": [320.59, 215.4, 22.88, 16.91], "category_id": 56, "id": 1914623}, {"segmentation": [[420.35, 233.39, 419.19, 238.01, 414.37, 242.07, 414.37, 249.2, 414.95, 253.06, 416.88, 256.92, 418.81, 260.77, 432.5, 261.54, 430.38, 255.57, 432.69, 250.94, 436.55, 248.62, 441.37, 248.82, 441.95, 243.03, 437.71, 237.44, 431.54, 233.77, 426.72, 231.65, 420.93, 232.61]], "area": 551.5500999999998, "iscrowd": 0, "image_id": 410272, "bbox": [414.37, 231.65, 27.58, 29.89], "category_id": 56, "id": 1914876}, {"segmentation": [[297.32, 235.4, 302.46, 227.55, 304.27, 228.45, 302.76, 231.63, 301.1, 235.7, 297.93, 239.78], [305.03, 229.51, 306.69, 230.27, 302.76, 238.88, 298.99, 242.65, 299.29, 240.24, 304.57, 229.36]], "area": 61.57729999999982, "iscrowd": 0, "image_id": 410272, "bbox": [297.32, 227.55, 9.37, 15.1], "category_id": 57, "id": 1918087}, {"segmentation": [[351.61, 232.9, 351.71, 234.66, 351.71, 234.66, 355.44, 239.42, 357.2, 243.05, 357.61, 246.47, 354.3, 245.43, 350.98, 244.81, 347.77, 242.43, 347.77, 242.43]], "area": 64.81709999999997, "iscrowd": 0, "image_id": 410272, "bbox": [347.77, 232.9, 9.84, 13.57], "category_id": 57, "id": 1918857}, {"segmentation": [[360.38, 252.02, 357.79, 247.78, 354.61, 246.25, 352.14, 246.25, 351.32, 248.61, 354.61, 252.37, 357.2, 254.96, 358.73, 254.14]], "area": 44.2691500000001, "iscrowd": 0, "image_id": 410272, "bbox": [351.32, 246.25, 9.06, 8.71], "category_id": 57, "id": 1919290}, {"segmentation": [[240.23, 428.63, 226.09, 443.88, 205.63, 463.22, 169.93, 491.86, 149.84, 509.34, 139.43, 510.09, 131.24, 504.88, 127.52, 494.47, 133.1, 483.31, 137.19, 475.12, 139.43, 453.55, 142.4, 445.74, 145.75, 427.51, 147.98, 413.01, 158.4, 391.43, 161.74, 383.25, 165.46, 382.88, 167.69, 376.93, 166.58, 372.46, 174.76, 364.65, 187.78, 365.4, 211.96, 371.35, 227.95, 375.07, 238.37, 378.79, 245.43, 378.42, 248.78, 379.9, 253.62, 385.85, 252.5, 391.81, 249.15, 399.62, 246.18, 409.29, 242.46, 415.61, 239.48, 424.17]], "area": 10132.134050000004, "iscrowd": 0, "image_id": 51355, "bbox": [127.52, 364.65, 126.1, 145.44], "category_id": 59, "id": 1923578}, {"segmentation": [[403.31, 272.97, 403.31, 268.46, 409.45, 265.19, 423.79, 268.05, 425.84, 274.61, 416.83, 275.84]], "area": 171.87004999999996, "iscrowd": 0, "image_id": 465463, "bbox": [403.31, 265.19, 22.53, 10.65], "category_id": 61, "id": 1927366}, {"segmentation": [[30.94, 345.73, 79.4, 344.03, 94.7, 335.53, 114.26, 293.02, 104.9, 253.91, 100.65, 229.26, 98.95, 216.51, 96.4, 195.26, 92.15, 176.55, 86.2, 168.05, 81.1, 168.05, 73.45, 174.0, 61.55, 198.66, 44.55, 220.76, 42.0, 230.96, 38.59, 242.01, 24.14, 236.06, 15.64, 223.31, 8.84, 215.66, 0.34, 217.36, 0.0, 243.71, 4.59, 268.37, 7.14, 296.42, 21.59, 326.17, 34.34, 338.93]], "area": 13075.0675, "iscrowd": 0, "image_id": 550273, "bbox": [0.0, 168.05, 114.26, 177.68], "category_id": 61, "id": 1928219}, {"segmentation": [[383.91, 271.61, 378.82, 269.07, 380.27, 265.8, 389.72, 264.34, 400.26, 265.8, 398.08, 270.89, 384.27, 272.7]], "area": 125.95739999999991, "iscrowd": 0, "image_id": 465463, "bbox": [378.82, 264.34, 21.44, 8.36], "category_id": 61, "id": 1928402}, {"segmentation": [[413.77, 317.97, 406.66, 316.19, 404.17, 312.99, 407.55, 310.14, 410.04, 309.96, 411.99, 309.96, 417.86, 310.5, 420.89, 311.21, 423.02, 312.45, 423.73, 315.3, 421.06, 317.79, 416.44, 318.5]], "area": 122.93430000000033, "iscrowd": 0, "image_id": 465463, "bbox": [404.17, 309.96, 19.56, 8.54], "category_id": 61, "id": 1928648}, {"segmentation": [[402.33, 326.62, 393.0, 321.64, 392.37, 321.64, 392.37, 316.03, 394.24, 315.41, 399.84, 315.41, 403.58, 316.03, 407.94, 316.66, 406.69, 324.13, 402.96, 324.75]], "area": 125.85319999999977, "iscrowd": 0, "image_id": 465463, "bbox": [392.37, 315.41, 15.57, 11.21], "category_id": 61, "id": 1929262}, {"segmentation": [[431.49, 275.92, 445.64, 277.47, 451.45, 276.89, 453.0, 275.53, 452.42, 273.21, 450.29, 271.07, 445.44, 269.72, 440.21, 268.94, 435.17, 269.52, 431.49, 271.27, 429.36, 273.01, 429.55, 275.14]], "area": 149.94255000000035, "iscrowd": 0, "image_id": 465463, "bbox": [429.36, 268.94, 23.64, 8.53], "category_id": 61, "id": 1929415}, {"segmentation": [[426.54, 270.0, 418.67, 266.44, 419.69, 264.16, 427.05, 263.9, 433.15, 264.67, 434.16, 267.97, 426.54, 269.24]], "area": 62.67300000000007, "iscrowd": 0, "image_id": 465463, "bbox": [418.67, 263.9, 15.49, 6.1], "category_id": 61, "id": 1929539}, {"segmentation": [[416.65, 221.99, 410.74, 222.42, 405.04, 222.21, 400.82, 220.73, 400.4, 218.83, 402.72, 217.98, 406.52, 217.98, 412.64, 217.14, 416.65, 217.56, 420.45, 219.88, 419.4, 221.78]], "area": 80.19300000000005, "iscrowd": 0, "image_id": 465463, "bbox": [400.4, 217.14, 20.05, 5.28], "category_id": 61, "id": 1929827}, {"segmentation": [[427.48, 210.47, 431.48, 209.41, 438.42, 208.47, 443.36, 209.18, 445.83, 210.94, 446.07, 211.76, 444.54, 213.06, 439.25, 213.41, 436.07, 213.53, 431.36, 213.53, 427.84, 213.53, 427.01, 212.12]], "area": 75.55175, "iscrowd": 0, "image_id": 465463, "bbox": [427.01, 208.47, 19.06, 5.06], "category_id": 61, "id": 1929959}, {"segmentation": [[457.44, 206.86, 452.11, 205.85, 448.99, 205.94, 445.49, 205.94, 440.72, 207.05, 439.25, 207.69, 440.62, 208.52, 444.3, 209.44, 447.98, 210.63, 450.18, 211.18, 453.58, 210.72, 457.81, 210.35, 460.2, 210.17, 461.12, 208.61, 458.64, 206.68, 457.26, 206.68]], "area": 78.19429999999986, "iscrowd": 0, "image_id": 465463, "bbox": [439.25, 205.85, 21.87, 5.33], "category_id": 61, "id": 1929979}, {"segmentation": [[464.85, 330.26, 466.41, 332.59, 470.68, 333.17, 479.03, 334.34, 485.44, 332.78, 486.61, 330.45, 484.47, 327.34, 484.47, 327.34, 475.73, 325.6, 465.82, 328.12, 465.82, 328.12]], "area": 135.70399999999964, "iscrowd": 0, "image_id": 465463, "bbox": [464.85, 325.6, 21.76, 8.74], "category_id": 61, "id": 1929991}, {"segmentation": [[478.16, 278.41, 471.86, 279.38, 464.1, 280.35, 459.73, 277.92, 458.28, 274.53, 466.04, 272.59, 472.34, 274.04]], "area": 96.7975000000003, "iscrowd": 0, "image_id": 465463, "bbox": [458.28, 272.59, 19.88, 7.76], "category_id": 61, "id": 1930050}, {"segmentation": [[439.26, 328.92, 438.85, 323.59, 449.5, 320.72, 457.69, 322.36, 463.43, 325.64, 457.69, 330.55, 448.68, 330.14]], "area": 173.48754999999977, "iscrowd": 0, "image_id": 465463, "bbox": [438.85, 320.72, 24.58, 9.83], "category_id": 61, "id": 1930060}, {"segmentation": [[417.7, 354.96, 417.7, 340.6, 419.62, 337.25, 455.51, 342.03, 454.56, 293.21, 456.47, 272.63, 469.39, 284.12, 476.1, 300.87, 478.49, 311.4, 471.79, 325.28, 467.48, 334.38, 457.43, 344.43, 452.16, 350.17, 450.73, 358.79, 443.55, 361.66, 434.46, 359.26, 433.5, 381.76]], "area": 1971.4545500000015, "iscrowd": 0, "image_id": 550273, "bbox": [417.7, 272.63, 60.79, 109.13], "category_id": 62, "id": 1940086}, {"segmentation": [[10.0, 455.84, 13.38, 425.35, 12.25, 403.9, 30.32, 390.34, 38.22, 417.44, 54.04, 412.94, 76.62, 409.55, 77.75, 488.6, 58.56, 485.21, 51.78, 446.81, 11.13, 458.1], [288.94, 499.88, 282.16, 468.26, 290.06, 464.88, 292.32, 419.7, 292.32, 419.7, 279.9, 418.57, 279.9, 399.38, 331.84, 385.83, 360.08, 390.34, 438.0, 388.09, 440.0, 493.12, 292.32, 500.0]], "area": 19926.563700000002, "iscrowd": 0, "image_id": 369913, "bbox": [10.0, 385.83, 430.0, 114.17], "category_id": 65, "id": 1957784}, {"segmentation": [[245.22, 300.45, 353.62, 276.43, 404.38, 280.05, 406.62, 269.67, 418.12, 271.35, 428.49, 269.95, 431.3, 271.35, 432.14, 281.73, 480.65, 288.18, 489.62, 282.01, 515.14, 287.62, 518.78, 292.1, 577.67, 298.27, 619.73, 303.88, 545.14, 335.85, 537.01, 340.62, 404.94, 327.44, 403.53, 324.35, 399.33, 324.35, 397.93, 326.04, 372.41, 320.99, 345.49, 315.66, 318.29, 314.26, 312.96, 313.14]], "area": 13180.5481, "iscrowd": 0, "image_id": 536972, "bbox": [245.22, 269.67, 374.51, 70.95], "category_id": 67, "id": 1958589}, {"segmentation": [[416.97, 155.04, 416.97, 139.64, 422.82, 138.71, 431.44, 143.02, 433.6, 147.03, 433.91, 151.65, 427.44, 158.73, 421.9, 160.58, 416.66, 155.04]], "area": 279.4505499999996, "iscrowd": 0, "image_id": 535483, "bbox": [416.66, 138.71, 17.25, 21.87], "category_id": 77, "id": 1976542}, {"segmentation": [[341.45, 122.92, 386.42, 121.45, 387.89, 173.05, 369.09, 172.31, 368.36, 140.24, 383.84, 136.19, 364.3, 132.87, 362.83, 130.66, 363.56, 129.19, 346.98, 128.45]], "area": 1068.2187500000005, "iscrowd": 0, "image_id": 374628, "bbox": [341.45, 121.45, 46.44, 51.6], "category_id": 79, "id": 1980379}, {"segmentation": [[303.21, 244.55, 338.53, 149.68, 313.3, 143.63, 329.45, 130.51, 345.6, 126.47, 354.68, 166.84, 363.76, 204.18, 370.83, 279.87, 357.71, 294.0, 357.71, 367.67, 337.52, 439.32, 331.47, 320.24, 324.4, 312.16, 317.34, 268.77]], "area": 9843.67785, "iscrowd": 0, "image_id": 51355, "bbox": [303.21, 126.47, 67.62, 312.85], "category_id": 79, "id": 1980751}, {"segmentation": [[292.23, 191.05, 358.37, 192.5, 361.26, 192.02, 366.09, 196.36, 366.57, 197.81, 366.57, 199.26, 337.61, 200.71, 294.16, 198.78, 291.75, 190.57]], "area": 575.8953999999995, "iscrowd": 0, "image_id": 410272, "bbox": [291.75, 190.57, 74.82, 10.14], "category_id": 81, "id": 1983255}, {"segmentation": [[248.93, 137.19, 247.89, 132.83, 249.35, 129.71, 248.31, 127.63, 249.35, 123.06, 251.01, 122.85, 252.88, 123.06, 255.58, 125.76, 255.79, 129.92, 251.22, 131.37, 252.05, 134.49, 253.92, 139.89, 254.54, 142.59, 254.54, 145.71], [253.1, 178.7, 254.13, 197.53, 255.16, 195.13, 254.47, 176.65, 252.42, 178.36]], "area": 116.79520000000005, "iscrowd": 0, "image_id": 451412, "bbox": [247.89, 122.85, 7.9, 74.68], "category_id": 90, "id": 1997531}, {"segmentation": [[273.67, 133.04, 271.88, 127.84, 271.88, 126.23, 271.5, 119.71, 272.44, 118.29, 274.05, 118.29, 276.04, 118.58, 277.36, 122.26, 276.32, 132.19, 274.9, 134.08, 273.39, 132.95]], "area": 69.00400000000008, "iscrowd": 0, "image_id": 451412, "bbox": [271.5, 118.29, 5.86, 15.79], "category_id": 90, "id": 1998084}, {"segmentation": [[525.95, 23.31, 532.15, 0.0, 548.03, 0.3, 557.21, 0.05, 552.74, 3.77, 550.26, 14.19, 558.7, 22.87, 556.22, 24.36, 547.04, 20.15, 539.1, 15.68, 545.3, 5.76, 541.08, 6.0, 537.36, 19.65, 544.31, 27.09, 535.38, 24.86, 527.19, 23.62]], "area": 506.4926500000004, "iscrowd": 0, "image_id": 456695, "bbox": [525.95, 0.0, 32.75, 27.09], "category_id": 1, "id": 2017745}, {"segmentation": [[160.65, 172.21, 120.12, 165.46, 107.73, 163.95, 102.48, 145.94, 102.11, 135.06, 120.49, 124.93, 137.01, 130.93, 154.64, 151.57, 164.78, 172.96], [40.9, 176.16, 33.81, 176.6, 27.61, 177.49, 14.76, 166.41, 19.19, 162.42, 33.37, 163.31, 42.68, 164.19]], "area": 2121.86905, "iscrowd": 0, "image_id": 559270, "bbox": [14.76, 124.93, 150.02, 52.56], "category_id": 1, "id": 2031533}, {"segmentation": [[114.6, 215.69, 102.31, 213.15, 98.07, 217.39, 103.58, 226.72, 108.24, 223.75, 114.6, 223.75], [78.99, 217.39, 69.24, 220.36, 77.72, 229.26, 78.99, 224.17], [115.88, 241.56, 105.28, 245.37, 107.82, 252.58, 114.6, 252.58]], "area": 288.89664999999997, "iscrowd": 0, "image_id": 436350, "bbox": [69.24, 213.15, 46.64, 39.43], "category_id": 3, "id": 2039342}, {"segmentation": [[309.86, 124.22, 336.28, 124.56, 330.06, 138.19, 324.5, 141.05, 318.95, 141.05, 310.7, 140.72, 307.0, 136.68, 302.79, 129.95, 304.64, 124.73]], "area": 441.29229999999995, "iscrowd": 0, "image_id": 374628, "bbox": [302.79, 124.22, 33.49, 16.83], "category_id": 51, "id": 2108640}, {"segmentation": [[439.3, 319.35, 443.2, 319.35, 443.76, 319.08, 444.04, 318.52, 445.99, 317.54, 446.69, 316.71, 447.1, 315.73, 446.41, 315.04, 442.23, 313.09, 439.03, 312.39, 433.31, 312.39, 426.63, 314.06, 426.91, 315.59, 428.44, 317.68, 435.13, 318.8, 442.51, 319.91]], "area": 107.35220000000041, "iscrowd": 0, "image_id": 465463, "bbox": [426.63, 312.39, 20.47, 7.52], "category_id": 61, "id": 2119016}, {"segmentation": [[236.36, 199.13, 236.73, 190.84, 241.42, 189.55, 245.75, 189.18, 247.69, 190.29, 247.23, 199.96, 241.61, 200.69]], "area": 112.91614999999985, "iscrowd": 0, "image_id": 527759, "bbox": [236.36, 189.18, 11.33, 11.51], "category_id": 61, "id": 2119542}, {"segmentation": [[227.17, 195.27, 235.35, 195.17, 235.25, 198.72, 229.43, 198.67, 227.01, 197.58, 226.65, 194.91]], "area": 27.863699999999962, "iscrowd": 0, "image_id": 527759, "bbox": [226.65, 194.91, 8.7, 3.81], "category_id": 61, "id": 2119567}, {"segmentation": [[78.04, 522.33, 81.26, 524.06, 86.23, 526.42, 95.25, 520.94, 96.7, 508.64, 114.69, 497.2, 120.58, 485.49, 111.9, 465.23, 103.94, 447.14, 98.87, 437.01, 88.02, 435.56, 83.68, 426.16, 84.4, 399.38, 66.31, 391.42, 64.86, 411.68, 67.76, 420.37, 59.07, 450.76, 57.63, 468.85, 71.38, 500.68, 74.89, 517.43]], "area": 4515.798499999998, "iscrowd": 0, "image_id": 451412, "bbox": [57.63, 391.42, 62.95, 135.0], "category_id": 62, "id": 2122521}, {"segmentation": [[151.4, 521.43, 152.47, 498.96, 202.76, 499.68, 203.47, 524.28]], "area": 1204.8425999999981, "iscrowd": 0, "image_id": 214007, "bbox": [151.4, 498.96, 52.07, 25.32], "category_id": 85, "id": 2144794}, {"segmentation": [[290.97, 104.95, 292.68, 109.57, 289.51, 113.22, 290.73, 140.45, 292.43, 144.59, 304.83, 144.1, 304.59, 140.7, 305.81, 112.25, 302.65, 108.84, 303.62, 104.47, 303.13, 104.22]], "area": 568.5671499999993, "iscrowd": 0, "image_id": 374628, "bbox": [289.51, 104.22, 16.3, 40.37], "category_id": 86, "id": 2145786}, {"segmentation": [[599.78, 251.07, 613.52, 253.18, 626.2, 250.01, 631.48, 245.26, 632.01, 234.69, 627.25, 226.24, 620.91, 223.07, 617.74, 219.37, 615.63, 213.56, 612.99, 194.02, 615.63, 189.26, 623.55, 162.32, 624.61, 160.21, 615.1, 162.85, 608.24, 166.55, 607.71, 191.9, 606.12, 203.0, 600.31, 213.56, 588.69, 221.49, 586.58, 234.16, 586.05, 242.62, 595.03, 247.9]], "area": 1908.6654499999981, "iscrowd": 0, "image_id": 527759, "bbox": [586.05, 160.21, 45.96, 92.97], "category_id": 86, "id": 2145833}, {"segmentation": [[79.93, 327.08, 78.56, 319.27, 77.87, 317.76, 76.78, 314.61, 76.36, 313.37, 78.15, 311.32, 78.28, 311.18, 79.93, 312.55, 80.07, 316.12, 81.03, 320.37, 81.44, 325.3]], "area": 35.56769999999989, "iscrowd": 0, "image_id": 531111, "bbox": [76.36, 311.18, 5.08, 15.9], "category_id": 90, "id": 2148199}, {"segmentation": [[386.44, 441.56, 392.49, 394.12, 392.49, 363.85, 381.39, 355.78, 380.38, 335.59, 386.44, 313.39, 389.47, 301.28, 384.42, 277.06, 384.42, 251.83, 389.47, 229.63, 409.65, 216.51, 411.67, 202.38, 427.0, 187.24, 426.81, 336.6, 424.79, 353.76, 415.71, 411.28, 406.62, 458.71, 404.6, 484.95, 398.55, 488.99, 386.44, 482.93, 383.41, 472.84, 382.4, 449.63]], "area": 9323.365449999998, "iscrowd": 0, "image_id": 482590, "bbox": [380.38, 187.24, 46.62, 301.75], "category_id": 1, "id": 2154735}, {"segmentation": [[634.7, 261.74, 622.23, 261.27, 613.35, 261.27, 610.55, 265.32, 610.08, 266.26, 608.99, 290.57, 610.86, 290.73, 611.64, 276.86, 613.82, 273.43, 618.49, 268.75, 624.57, 263.3, 634.55, 261.9]], "area": 161.47040000000015, "iscrowd": 0, "image_id": 429042, "bbox": [608.99, 261.27, 25.71, 29.46], "category_id": 3, "id": 2169587}, {"segmentation": [[587.15, 253.39, 597.38, 253.21, 598.64, 256.83, 599.01, 257.92, 599.01, 258.73, 596.47, 260.27, 595.11, 262.26, 594.57, 268.33, 591.31, 267.51, 591.22, 262.8, 589.14, 261.99, 587.06, 261.72]], "area": 114.43995000000062, "iscrowd": 0, "image_id": 429042, "bbox": [587.06, 253.21, 11.95, 15.12], "category_id": 3, "id": 2170774}, {"segmentation": [[174.55, 371.86, 164.19, 385.94, 149.25, 422.11, 140.6, 463.79, 130.38, 498.39, 138.24, 505.47, 161.05, 497.6, 231.03, 437.05, 243.61, 421.33, 252.26, 382.01, 238.89, 377.29, 201.15, 370.22, 174.41, 366.28]], "area": 9275.678150000002, "iscrowd": 0, "image_id": 51355, "bbox": [130.38, 366.28, 121.88, 139.19], "category_id": 61, "id": 2189490}, {"segmentation": [[72.91, 182.62, 70.82, 188.89, 66.64, 193.77, 63.15, 198.3, 61.41, 202.48, 63.15, 211.19, 71.17, 215.03, 82.67, 215.73, 91.73, 212.94, 96.26, 205.97, 95.56, 197.95, 90.68, 193.07, 80.92, 182.62, 80.58, 182.27]], "area": 825.5708, "iscrowd": 0, "image_id": 527759, "bbox": [61.41, 182.27, 34.85, 33.46], "category_id": 86, "id": 2197248}, {"segmentation": [[137.66, 178.34, 155.89, 150.51, 191.39, 154.35, 193.31, 195.6, 179.88, 226.3, 219.21, 242.61, 233.6, 292.5, 224.97, 347.18, 205.78, 334.71, 219.21, 442.16, 193.31, 439.28, 179.88, 469.02, 184.67, 531.38, 212.5, 546.73, 182.75, 603.33, 171.24, 609.09, 172.2, 587.98, 184.67, 562.08, 177.96, 553.45, 165.49, 587.98, 171.24, 609.09, 158.77, 622.52, 127.11, 620.6, 132.87, 605.25, 144.38, 572.63, 142.46, 532.34, 133.83, 535.22, 114.64, 503.56, 101.21, 492.05, 108.88, 406.66, 124.23, 369.25, 118.48, 351.02, 83.94, 387.48, 85.86, 428.73, 82.02, 437.36, 70.51, 425.85, 70.51, 391.31, 99.29, 307.85, 104.09, 287.7, 116.56, 241.65, 150.14, 221.51]], "area": 39543.112799999995, "iscrowd": 0, "image_id": 482590, "bbox": [70.51, 150.51, 163.09, 472.01], "category_id": 1, "id": 2205871}, {"segmentation": [[109.04, 264.44, 102.17, 247.27, 111.62, 237.83, 130.51, 214.65, 130.51, 206.06, 132.22, 189.75, 145.1, 173.43, 118.48, 174.29, 118.48, 168.28, 141.67, 157.98, 155.4, 135.66, 169.14, 121.06, 186.31, 105.61, 202.63, 103.89, 228.38, 85.0, 242.98, 80.71, 267.88, 76.41, 291.92, 83.28, 312.53, 88.43, 326.26, 105.61, 338.28, 122.78, 339.14, 144.24, 345.15, 163.13, 337.42, 187.17, 312.53, 200.91, 300.51, 212.07, 296.21, 239.55, 295.35, 240.4, 238.69, 253.28, 201.77, 261.87, 184.6, 272.17, 156.26, 279.04, 136.52, 269.6, 114.19, 270.45]], "area": 31450.948199999995, "iscrowd": 0, "image_id": 423036, "bbox": [102.17, 76.41, 242.98, 202.63], "category_id": 18, "id": 6993}, {"segmentation": [[136.7, 275.0, 122.08, 265.25, 122.62, 256.58, 137.79, 254.96, 141.58, 256.58, 148.62, 242.5, 153.5, 232.21, 168.12, 226.25, 186.54, 226.25, 203.88, 228.41, 213.63, 228.96, 227.17, 227.33, 236.38, 223.54, 233.67, 217.04, 236.38, 214.33, 241.8, 214.87, 247.75, 220.29, 249.38, 223.0, 258.59, 229.5, 265.09, 237.08, 269.96, 239.25, 265.09, 243.04, 258.59, 250.08, 253.71, 251.17, 246.13, 245.21, 240.17, 250.08, 233.67, 254.96, 228.25, 261.46, 225.54, 263.63, 237.46, 269.58, 241.25, 275.54, 247.21, 282.04, 251.55, 288.54, 237.46, 289.63, 233.67, 280.42, 225.0, 274.46, 218.5, 271.21, 215.25, 271.75, 215.79, 284.75, 221.21, 290.71, 209.83, 291.79, 204.96, 284.75, 204.96, 269.04, 197.38, 264.17, 181.67, 259.83, 178.96, 272.29, 177.87, 272.29, 178.96, 283.13, 186.0, 286.92, 182.21, 293.42, 173.0, 288.0, 164.87, 282.59, 164.33, 271.21, 164.33, 263.63, 152.95, 274.46, 143.75, 278.25, 141.04, 290.17, 131.83, 291.25, 136.7, 279.88, 136.16, 275.54, 135.08, 274.46]], "area": 5598.32185, "iscrowd": 0, "image_id": 427133, "bbox": [122.08, 214.33, 147.88, 79.09], "category_id": 18, "id": 13570}, {"segmentation": [[372.6, 382.81, 375.26, 396.32, 377.03, 400.3, 388.54, 400.97, 393.63, 399.86, 395.18, 397.2, 397.18, 389.68, 398.73, 381.48, 398.06, 378.83, 395.85, 375.06, 393.41, 373.51, 390.76, 372.18, 388.54, 371.52, 385.44, 370.86, 382.78, 370.63, 379.24, 370.86, 375.03, 372.18, 373.26, 375.73, 372.16, 377.94, 372.16, 381.04, 372.6, 383.92]], "area": 656.8345000000004, "iscrowd": 0, "image_id": 284043, "bbox": [372.16, 370.63, 26.57, 30.34], "category_id": 64, "id": 18916}, {"segmentation": [[419.97, 235.49, 412.38, 293.0, 437.34, 347.26, 446.02, 345.09, 473.15, 352.69, 490.51, 359.2, 455.78, 372.22, 444.93, 384.16, 434.08, 392.84, 412.38, 397.18, 409.12, 400.44, 387.42, 413.46, 384.16, 427.57, 368.97, 442.76, 371.14, 466.64, 351.61, 465.55, 345.09, 470.98, 421.06, 467.72, 454.7, 448.19, 612.05, 309.28, 563.22, 395.01, 587.09, 408.04, 629.42, 342.92, 638.1, 132.39, 629.42, 18.45, 581.67, 0.0, 520.9, 6.51, 461.21, 40.15, 412.38, 77.05, 402.61, 97.67, 399.35, 118.29, 403.7, 135.65, 405.87, 146.5, 405.87, 150.84, 392.84, 170.38, 392.84, 180.14, 433.0, 193.17, 439.51, 192.08, 455.78, 201.85, 454.7, 222.47, 429.74, 231.15]], "area": 82561.81935, "iscrowd": 0, "image_id": 386650, "bbox": [345.09, 0.0, 293.01, 470.98], "category_id": 64, "id": 21893}, {"segmentation": [[341.71, 8.48, 362.54, 7.5, 372.3, 7.5, 373.93, 37.77, 373.61, 63.82, 377.19, 59.58, 377.51, 50.79, 380.12, 41.68, 386.95, 50.14, 383.05, 76.84, 379.47, 89.53, 393.46, 92.79, 407.46, 93.76, 420.81, 99.62, 428.94, 111.99, 424.06, 137.71, 410.71, 185.23, 396.39, 183.93, 336.82, 164.4, 315.99, 158.86, 287.67, 151.38, 280.84, 147.47, 281.49, 134.13, 277.26, 130.54, 273.02, 122.73, 272.05, 116.87, 274.33, 109.39, 281.81, 99.62, 291.58, 96.37, 302.65, 93.76, 303.62, 88.88, 307.53, 80.42, 309.48, 74.88, 312.41, 64.47, 313.71, 56.65, 318.92, 50.47, 322.18, 47.21, 326.41, 45.91, 330.97, 69.67, 335.52, 88.55, 349.52, 87.58, 356.03, 87.25, 357.01, 55.68, 357.01, 36.8]], "area": 13877.396500000004, "iscrowd": 0, "image_id": 386650, "bbox": [272.05, 7.5, 156.89, 177.73], "category_id": 64, "id": 26070}, {"segmentation": [[74.16, 153.58, 92.7, 247.96, 217.42, 218.47, 204.78, 130.83]], "area": 12026.457499999999, "iscrowd": 0, "image_id": 357992, "bbox": [74.16, 130.83, 143.26, 117.13], "category_id": 72, "id": 32396}, {"segmentation": [[19.53, 263.27, 96.62, 260.19, 166.51, 267.38, 234.35, 262.25, 256.96, 255.05, 281.63, 243.74, 288.82, 233.47, 271.35, 223.19, 271.35, 215.99, 289.85, 202.63, 304.24, 200.58, 314.52, 200.58, 333.02, 194.41, 344.33, 187.21, 365.91, 185.16, 391.61, 186.19, 395.72, 189.27, 417.3, 189.27, 426.55, 193.38, 423.47, 198.52, 407.02, 206.74, 398.8, 213.94, 392.63, 228.33, 389.55, 247.86, 387.49, 261.22, 390.58, 285.89, 386.47, 310.55, 376.19, 337.28, 367.97, 370.17, 357.69, 397.92, 338.16, 426.7, 327.88, 440.06, 314.52, 451.37, 305.27, 463.7, 305.27, 472.95, 1.03, 472.95, 1.03, 269.44]], "area": 84143.4223, "iscrowd": 0, "image_id": 271900, "bbox": [1.03, 185.16, 425.52, 287.79], "category_id": 20, "id": 61714}, {"segmentation": [[423.18, 278.71, 436.96, 247.08, 449.2, 229.73, 474.19, 200.15, 481.34, 188.92, 493.07, 175.66, 493.07, 164.44, 492.56, 158.32, 500.21, 146.58, 508.37, 137.91, 511.94, 130.26, 511.94, 120.57, 516.53, 108.84, 529.29, 100.67, 536.94, 96.59, 541.02, 89.45, 549.69, 85.88, 563.47, 81.29, 569.08, 84.86, 569.08, 95.06, 574.18, 106.28, 574.18, 114.96, 579.28, 125.67, 579.28, 133.83, 576.73, 144.03, 574.18, 153.22, 582.85, 171.07, 580.81, 179.74, 577.24, 183.82, 566.53, 185.86, 570.61, 194.03, 577.75, 205.76, 582.85, 217.49, 582.34, 224.12, 587.95, 230.75, 589.48, 237.9, 585.91, 244.02, 584.89, 251.16, 585.91, 261.87, 591.52, 273.6, 600.7, 285.34, 606.83, 298.6, 616.52, 305.74, 630.29, 311.86, 640.0, 315.94, 640.0, 378.69, 640.0, 400.11, 639.98, 480.0, 473.17, 480.0, 459.91, 475.1, 450.22, 466.94, 436.96, 458.27, 425.73, 448.58, 412.47, 436.33, 406.35, 425.11, 402.78, 408.28, 404.31, 386.34, 405.33, 359.3, 407.88, 338.9, 413.49, 315.94, 416.04, 295.54, 422.67, 282.28]], "area": 63246.8202, "iscrowd": 0, "image_id": 271900, "bbox": [402.78, 81.29, 237.22, 398.71], "category_id": 20, "id": 62632}, {"segmentation": [[1.03, 220.9, 39.23, 229.16, 62.97, 220.9, 106.32, 202.32, 111.48, 205.42, 113.55, 187.87, 126.97, 169.29, 158.97, 158.97, 146.58, 142.45, 169.29, 143.48, 190.97, 150.71, 199.23, 146.58, 220.9, 146.58, 247.74, 161.03, 303.48, 198.19, 294.19, 202.32, 266.32, 204.39, 253.94, 217.81, 232.26, 234.32, 215.74, 242.58, 205.42, 246.71, 207.48, 263.23, 157.94, 265.29, 100.13, 261.16, 59.87, 263.23, 26.84, 263.23, 20.65, 264.26, 1.03, 269.42]], "area": 20076.368400000007, "iscrowd": 0, "image_id": 271900, "bbox": [1.03, 142.45, 302.45, 126.97], "category_id": 20, "id": 63571}, {"segmentation": [[176.52, 269.44, 162.13, 258.98, 175.21, 222.37, 193.51, 205.37, 209.2, 180.53, 237.97, 167.45, 252.35, 150.45, 283.73, 116.46, 283.73, 75.92, 266.74, 74.62, 244.51, 56.31, 237.97, 52.39, 239.28, 43.24, 247.12, 39.31, 264.12, 39.31, 282.43, 43.24, 290.27, 57.62, 302.04, 44.54, 321.65, 44.54, 346.49, 49.77, 351.72, 56.31, 377.88, 44.54, 404.03, 49.77, 404.03, 61.54, 385.72, 79.85, 373.95, 82.46, 360.88, 89.0, 353.03, 91.61, 349.11, 103.38, 341.26, 116.46, 346.49, 125.61, 359.57, 133.45, 362.18, 146.53, 375.26, 177.91, 381.8, 196.22, 394.87, 230.21, 394.87, 258.98, 396.18, 281.21, 396.18, 295.59, 384.41, 295.59, 371.34, 290.36, 366.11, 264.21, 362.18, 249.82, 347.8, 228.9, 346.49, 207.98, 334.73, 200.14, 321.65, 194.91, 303.35, 188.37, 273.27, 183.14, 252.35, 188.37, 228.82, 196.22, 211.82, 215.83, 198.74, 221.06, 186.98, 238.06, 183.05, 265.52, 177.82, 272.05, 172.59, 269.44]], "area": 21584.507500000003, "iscrowd": 0, "image_id": 555687, "bbox": [162.13, 39.31, 241.9, 256.28], "category_id": 20, "id": 63585}, {"segmentation": [[482.1, 335.17, 474.75, 312.22, 467.4, 289.26, 469.24, 269.06, 471.08, 239.67, 468.32, 213.96, 452.71, 197.43, 440.77, 190.08, 416.9, 185.49, 399.45, 188.25, 380.17, 199.27, 343.44, 213.96, 316.81, 224.98, 293.85, 228.65, 268.14, 232.32, 251.61, 236.0, 236.92, 231.41, 212.12, 216.71, 198.35, 213.04, 179.06, 212.12, 168.96, 218.55, 157.03, 230.49, 158.86, 240.59, 148.76, 257.12, 155.19, 268.14, 156.11, 279.16, 163.45, 279.16, 172.64, 273.65, 191.92, 288.34, 207.53, 305.79, 221.31, 320.48, 236.0, 333.34, 251.61, 350.78, 255.28, 372.82, 267.22, 400.37, 269.97, 421.49, 289.26, 418.74, 286.5, 397.62, 298.44, 359.05, 303.03, 345.27, 337.01, 334.25, 367.31, 332.42, 380.17, 325.07, 414.14, 316.81, 424.25, 313.13, 439.86, 332.42, 446.28, 338.85]], "area": 37790.77514999999, "iscrowd": 0, "image_id": 359234, "bbox": [148.76, 185.49, 333.34, 236.0], "category_id": 20, "id": 64662}, {"segmentation": [[130.05, 242.94, 135.63, 217.86, 157.37, 183.85, 164.06, 167.68, 175.77, 189.43, 184.13, 194.44, 184.69, 213.4, 201.97, 212.84, 219.81, 217.86, 230.96, 191.1, 235.97, 193.33, 250.47, 216.74, 251.58, 232.35, 250.47, 236.81, 277.79, 230.12, 291.16, 208.38, 309.0, 189.98, 324.06, 176.05, 341.34, 126.99, 351.93, 80.16, 346.36, 61.2, 363.08, 60.65, 372.56, 51.73, 358.06, 47.27, 346.91, 47.82, 336.32, 34.44, 311.79, 28.87, 289.49, 42.25, 269.42, 50.05, 270.54, 54.51, 285.59, 58.42, 280.57, 65.11, 234.86, 60.09, 191.93, 56.74, 162.94, 56.74, 131.72, 79.6, 117.23, 118.62, 116.67, 162.11, 108.87, 208.38, 107.75, 220.09, 107.75, 244.06, 113.33, 257.44, 129.49, 253.54]], "area": 34603.23745000001, "iscrowd": 0, "image_id": 359234, "bbox": [107.75, 28.87, 264.81, 228.57], "category_id": 20, "id": 64983}, {"segmentation": [[397.42, 257.03, 382.97, 299.35, 373.68, 303.48, 370.58, 289.03, 375.74, 276.65, 379.87, 266.32, 378.84, 261.16, 384.0, 251.87, 384.0, 237.42, 384.0, 231.23, 392.26, 221.94, 404.65, 215.74, 416.0, 210.58, 428.39, 210.58, 435.61, 214.71, 445.94, 217.81, 458.32, 218.84, 467.61, 222.97, 480.0, 225.03, 484.13, 227.1, 494.45, 233.29, 500.65, 236.39, 514.06, 239.48, 517.16, 243.61, 528.52, 252.9, 529.55, 258.06, 530.58, 263.23, 537.81, 272.52, 535.74, 278.71, 531.61, 284.9, 529.55, 288.0, 522.32, 288.0, 508.9, 283.87, 506.84, 277.68, 496.52, 271.48, 496.52, 267.35, 491.35, 267.35, 482.06, 269.42, 478.97, 270.45, 472.77, 273.55, 472.77, 275.61, 471.74, 278.71, 468.65, 284.9, 467.61, 288.0, 467.61, 291.1, 470.71, 298.32, 471.74, 304.52, 433.55, 307.61, 431.48, 307.61, 421.16, 304.52, 421.16, 296.26, 421.16, 289.03, 417.03, 285.94, 414.97, 281.81, 413.94, 274.58, 413.94, 273.55, 413.94, 273.55]], "area": 9408.574150000004, "iscrowd": 0, "image_id": 427133, "bbox": [370.58, 210.58, 167.23, 97.03], "category_id": 20, "id": 65200}, {"segmentation": [[395.17, 219.83, 337.24, 215.69, 315.52, 230.17, 307.24, 252.93, 304.14, 262.24, 303.1, 271.55, 305.17, 274.66, 305.17, 282.93, 307.24, 292.24, 309.31, 294.31, 310.34, 290.17, 313.45, 282.93, 316.55, 292.24, 320.69, 293.28, 325.86, 294.31, 328.97, 302.59, 330.0, 276.72, 342.41, 264.31, 352.76, 274.66, 370.34, 274.66, 374.48, 271.55, 383.79, 249.83]], "area": 4480.702450000001, "iscrowd": 0, "image_id": 427133, "bbox": [303.1, 215.69, 92.07, 86.9], "category_id": 20, "id": 66196}, {"segmentation": [[67.08, 250.13, 65.46, 251.75, 63.04, 251.75, 61.42, 251.75, 59.81, 252.56, 57.38, 254.98, 56.57, 254.98, 54.96, 254.98, 46.07, 257.41, 45.26, 258.22, 43.64, 258.22, 42.03, 257.41, 39.6, 254.98, 36.37, 252.56, 36.37, 251.75, 36.37, 250.94, 37.98, 248.52, 40.41, 246.9, 42.83, 242.86, 43.64, 240.44, 49.3, 234.78, 51.72, 230.74, 51.72, 229.93, 53.34, 226.7, 55.77, 224.27, 59.0, 222.66, 63.85, 221.85, 66.27, 225.08, 67.89, 228.31, 69.5, 229.93, 69.5, 231.55, 69.5, 233.97, 69.5, 236.4, 69.5, 243.67, 68.7, 246.09, 68.7, 248.52, 68.7, 251.75, 67.08, 254.18, 67.08, 254.18, 67.08, 254.98, 64.66, 254.98, 63.85, 254.18]], "area": 744.8758500000001, "iscrowd": 0, "image_id": 183181, "bbox": [36.37, 221.85, 33.13, 36.37], "category_id": 21, "id": 73606}, {"segmentation": [[95.28, 241.75, 97.99, 244.46, 99.9, 246.21, 102.29, 248.92, 103.56, 251.95, 101.01, 253.22, 99.26, 254.02, 96.08, 253.7, 89.07, 253.7, 84.93, 253.7, 83.97, 253.54, 80.79, 253.06, 78.24, 251.95, 83.49, 247.49, 85.4, 247.65, 86.36, 245.26, 86.68, 243.19, 88.27, 241.59, 89.39, 241.43, 91.62, 238.73, 93.53, 240.8]], "area": 209.58669999999987, "iscrowd": 0, "image_id": 183181, "bbox": [78.24, 238.73, 25.32, 15.29], "category_id": 21, "id": 75403}, {"segmentation": [[11.66, 206.26, 18.57, 221.97, 24.85, 259.67, 27.37, 276.63, 27.37, 281.66, 0.0, 289.83, 1.6, 192.43, 3.49, 192.43]], "area": 1775.0690500000003, "iscrowd": 0, "image_id": 357992, "bbox": [0.0, 192.43, 27.37, 97.4], "category_id": 44, "id": 81119}, {"segmentation": [[131.47, 86.47, 169.41, 96.18, 180.0, 131.47, 147.35, 138.53]], "area": 1523.9727500000001, "iscrowd": 0, "image_id": 357992, "bbox": [131.47, 86.47, 48.53, 52.06], "category_id": 72, "id": 124511}, {"segmentation": [[98.78, 361.2, 104.53, 373.05, 109.95, 384.89, 114.35, 402.16, 114.01, 408.25, 107.58, 406.56, 100.13, 409.26, 96.41, 407.57, 95.73, 403.17, 93.7, 406.22, 88.96, 409.26, 86.25, 405.54, 80.5, 401.48, 77.12, 394.71, 75.76, 388.28, 73.39, 392.68, 70.35, 394.37, 67.64, 407.91, 35.49, 408.25, 34.47, 399.11, 38.87, 392.34, 45.3, 386.59, 54.78, 382.86, 59.52, 378.13, 60.53, 370.34, 62.9, 360.53, 60.87, 357.14, 58.16, 353.76, 52.75, 360.53, 45.3, 363.57, 49.02, 356.47, 54.44, 349.02, 61.21, 340.56, 63.92, 335.48, 62.9, 345.97, 63.24, 349.36, 63.24, 355.79, 67.64, 357.14, 70.35, 360.19, 77.45, 359.85, 78.13, 354.77, 80.16, 349.02, 89.98, 346.31, 96.07, 346.99, 93.36, 358.16, 92.35, 362.9, 95.39, 362.56, 97.42, 361.88]], "area": 3011.2497500000013, "iscrowd": 0, "image_id": 224118, "bbox": [34.47, 335.48, 79.88, 73.78], "category_id": 2, "id": 125559}, {"segmentation": [[604.17, 153.2, 612.74, 154.96, 617.22, 158.27, 620.73, 158.27, 623.45, 157.68, 630.27, 160.6, 637.67, 163.14, 639.23, 157.68, 636.89, 156.13, 626.37, 153.2, 625.79, 149.7, 621.9, 144.25, 614.3, 145.61, 611.18, 147.75, 604.17, 147.75, 597.36, 147.95, 590.93, 146.58, 585.48, 145.8, 584.9, 142.3, 579.05, 138.01, 572.82, 133.73, 566.98, 133.54, 559.58, 131.78, 558.41, 135.48, 547.89, 133.73, 551.21, 136.46, 558.02, 137.43, 565.42, 139.96, 573.41, 143.08, 578.47, 142.88, 583.34, 147.75, 586.45, 150.48, 587.82, 152.04, 588.4, 154.37, 591.13, 154.76, 596.38, 153.59, 600.08, 153.59, 593.85, 164.89, 590.54, 175.4, 588.6, 186.7, 581.78, 193.9, 575.74, 203.64, 571.65, 205.39, 570.29, 205.39, 568.15, 204.42, 564.45, 200.33, 566.78, 206.17, 565.03, 206.17, 551.59, 202.67, 544.58, 202.86, 540.3, 205.39, 528.03, 208.51, 508.36, 224.09, 498.63, 235.77, 487.92, 264.01, 484.99, 277.06, 486.16, 300.43, 491.03, 313.47, 498.82, 328.66, 507.19, 336.65, 515.96, 339.76, 525.31, 342.1, 531.54, 342.1, 536.99, 342.1, 538.35, 340.35, 536.79, 316.01, 536.41, 289.33, 539.33, 283.68, 559.19, 274.92, 572.82, 272.77, 586.26, 272.0, 593.07, 271.8, 595.61, 267.13, 595.02, 253.5, 597.16, 254.66, 602.81, 272.58, 627.54, 270.24, 640.0, 270.83, 640.0, 239.28, 640.0, 221.56, 640.0, 220.39, 640.0, 185.73, 638.84, 184.56, 630.66, 181.25, 617.61, 178.33, 604.76, 179.69, 594.24, 181.05, 596.0, 175.6, 598.92, 163.92]], "area": 14615.3226, "iscrowd": 0, "image_id": 450263, "bbox": [484.99, 131.78, 155.01, 210.32], "category_id": 2, "id": 126202}, {"segmentation": [[601.09, 134.27, 598.71, 145.6, 601.39, 147.99, 599.01, 151.86, 601.09, 153.95, 601.69, 153.95, 604.37, 152.76, 604.37, 151.56, 605.27, 150.37, 618.09, 150.67, 620.17, 153.35, 621.37, 154.84, 623.75, 155.14, 624.35, 155.14, 625.84, 155.14, 627.33, 154.25, 628.52, 152.46, 628.52, 151.27, 630.31, 149.48, 633.29, 147.99, 634.48, 142.62, 634.18, 140.53, 633.29, 138.45, 630.61, 135.47, 630.61, 134.87, 630.31, 133.68, 630.31, 132.49, 629.41, 131.29, 628.52, 129.8, 626.73, 129.21, 624.05, 128.01, 620.77, 127.72, 616.0, 127.72, 615.7, 127.72, 613.32, 127.72, 612.72, 127.72, 607.95, 127.72, 607.35, 127.72, 604.97, 128.31, 604.97, 128.31, 603.18, 129.5, 603.48, 131.0, 602.59, 133.68, 601.69, 134.57, 601.39, 135.77]], "area": 748.377549999999, "iscrowd": 0, "image_id": 503790, "bbox": [598.71, 127.72, 35.77, 27.42], "category_id": 3, "id": 132580}, {"segmentation": [[203.72, 35.83, 207.18, 34.47, 209.53, 33.85, 214.48, 31.37, 217.6, 31.54, 218.74, 33.24, 217.83, 34.84, 213.96, 35.97, 211.92, 37.68, 208.39, 38.36]], "area": 52.18230000000003, "iscrowd": 0, "image_id": 226801, "bbox": [203.72, 31.37, 15.02, 6.99], "category_id": 3, "id": 134064}, {"segmentation": [[218.3, 41.16, 219.2, 39.28, 223.41, 38.45, 225.74, 35.67, 229.73, 34.54, 234.02, 33.86, 241.09, 33.64, 241.91, 35.14, 224.77, 40.93, 221.38, 42.14, 220.25, 43.26, 218.45, 41.46]], "area": 83.65035000000002, "iscrowd": 0, "image_id": 226801, "bbox": [218.3, 33.64, 23.61, 9.62], "category_id": 3, "id": 137105}, {"segmentation": [[612.35, 366.92, 520.98, 328.04, 514.18, 345.54, 500.57, 353.32, 485.99, 342.62, 476.27, 321.24, 475.3, 307.63, 466.55, 300.83, 433.5, 278.47, 430.59, 260.01, 431.56, 251.26, 433.5, 249.31, 436.42, 225.99, 441.28, 207.52, 452.94, 201.69, 487.94, 198.77, 521.95, 158.92, 540.42, 153.09, 583.19, 148.23, 616.24, 148.23, 636.65, 148.23, 637.62, 148.23, 638.59, 366.92, 639.56, 378.59, 637.62, 393.17, 624.01, 393.17, 618.18, 379.56, 620.13, 371.78, 611.38, 367.9]], "area": 34955.80565000001, "iscrowd": 0, "image_id": 205676, "bbox": [430.59, 148.23, 208.97, 244.94], "category_id": 3, "id": 137502}, {"segmentation": [[0.0, 262.24, 18.62, 263.28, 28.97, 263.28, 43.45, 292.24, 54.83, 317.07, 56.9, 370.86, 51.72, 377.07, 45.52, 379.14, 41.38, 403.97, 35.17, 416.38, 20.69, 419.48, 15.52, 409.14, 10.34, 398.79, 12.41, 391.55, 10.34, 387.41, 0.0, 390.52, 1.03, 264.31, 7.24, 263.28]], "area": 6854.3743, "iscrowd": 0, "image_id": 287396, "bbox": [0.0, 262.24, 56.9, 157.24], "category_id": 3, "id": 138676}, {"segmentation": [[153.56, 42.33, 155.37, 39.44, 159.7, 34.92, 168.19, 36.01, 167.64, 38.36, 162.95, 37.09, 158.8, 41.42, 154.65, 42.15]], "area": 43.65050000000002, "iscrowd": 0, "image_id": 226801, "bbox": [153.56, 34.92, 14.63, 7.41], "category_id": 3, "id": 140338}, {"segmentation": [[160.42, 44.6, 166.75, 46.39, 171.88, 45.92, 175.94, 45.92, 176.42, 39.35, 171.64, 38.51, 164.0, 39.35, 159.95, 43.41, 160.66, 45.44]], "area": 101.29585000000003, "iscrowd": 0, "image_id": 226801, "bbox": [159.95, 38.51, 16.47, 7.88], "category_id": 3, "id": 140571}, {"segmentation": [[542.82, 199.08, 543.64, 188.68, 548.02, 181.84, 565.53, 181.84, 574.84, 189.5, 575.66, 198.8, 572.1, 200.17, 572.1, 199.08, 568.82, 197.98, 568.0, 200.45, 565.53, 200.45, 564.44, 197.44, 555.14, 197.71, 555.41, 201.27, 552.67, 201.27, 552.67, 199.08, 552.67, 199.08, 548.84, 199.08, 548.3, 200.99, 543.1, 201.27]], "area": 501.9186499999998, "iscrowd": 0, "image_id": 27969, "bbox": [542.82, 181.84, 32.84, 19.43], "category_id": 3, "id": 142383}, {"segmentation": [[118.72, 97.2, 119.4, 104.05, 68.04, 108.16, 70.1, 101.99, 83.79, 98.57, 100.91, 95.83]], "area": 408.84395, "iscrowd": 0, "image_id": 226801, "bbox": [68.04, 95.83, 51.36, 12.33], "category_id": 3, "id": 143485}, {"segmentation": [[107.35, 172.51, 111.09, 162.02, 112.96, 158.65, 112.96, 158.65, 112.96, 152.66, 115.96, 148.55, 121.58, 137.69, 126.82, 135.82, 130.56, 134.32, 143.29, 134.32, 160.14, 134.69, 167.62, 135.07, 168.75, 141.43, 168.0, 165.39, 168.75, 165.77, 159.01, 167.64, 151.53, 169.88, 142.91, 184.86, 137.67, 200.96, 136.92, 202.08, 133.56, 202.08, 133.18, 206.95, 124.57, 206.2, 123.07, 203.2, 123.07, 196.84, 117.46, 193.47, 117.83, 197.59, 110.34, 195.72, 108.85, 189.73, 107.35, 182.61, 108.1, 177.75, 108.47, 170.26, 108.47, 169.88]], "area": 2919.5105500000004, "iscrowd": 0, "image_id": 205676, "bbox": [107.35, 134.32, 61.4, 72.63], "category_id": 3, "id": 144349}, {"segmentation": [[45.41, 291.35, 65.95, 277.3, 73.51, 280.54, 62.7, 401.62, 48.65, 396.22, 48.65, 382.16, 52.97, 370.27, 57.3, 319.46, 45.41, 293.51], [87.57, 276.22, 179.46, 281.62, 204.32, 306.49, 200.0, 405.95, 190.27, 395.14, 156.76, 395.14, 153.51, 337.84, 113.51, 340.0, 110.27, 398.38, 88.65, 395.14, 81.08, 319.46, 85.41, 271.89]], "area": 12960.519799999996, "iscrowd": 0, "image_id": 287396, "bbox": [45.41, 271.89, 158.91, 134.06], "category_id": 3, "id": 146035}, {"segmentation": [[145.85, 189.99, 124.74, 189.03, 124.74, 180.4, 96.91, 181.36, 90.2, 196.71, 65.25, 197.67, 61.41, 204.38, 68.13, 213.02, 74.84, 224.53, 68.13, 255.24, 86.36, 253.32, 97.87, 229.33, 107.47, 236.05, 142.01, 240.85, 141.05, 250.44, 112.27, 242.77, 93.08, 256.2, 85.4, 286.91, 91.16, 332.0, 136.26, 348.32, 157.37, 323.37, 163.12, 286.91, 157.37, 279.23, 143.93, 267.71, 141.05, 256.2, 143.93, 240.85, 146.81, 212.06, 146.81, 211.1, 149.69, 194.79, 149.69, 194.79, 150.65, 188.07, 150.65, 188.07], [179.44, 123.78, 172.72, 100.75, 155.45, 103.63, 154.49, 118.98, 162.16, 137.22, 192.87, 141.05, 197.67, 153.53, 195.75, 166.0, 184.23, 169.84, 190.95, 188.07, 188.07, 204.38, 183.27, 223.58, 169.84, 241.81, 167.92, 261.0, 172.72, 264.84, 176.56, 275.39, 173.68, 283.07, 208.22, 284.03, 237.01, 269.63, 239.89, 250.44, 236.05, 236.05, 245.64, 250.44, 248.52, 281.15, 277.31, 336.8, 308.02, 335.84, 337.76, 293.62, 326.25, 238.93, 306.1, 216.86, 272.51, 217.82, 261.0, 185.19, 276.35, 174.64, 289.78, 182.31, 303.22, 181.36, 271.55, 163.12, 261.0, 166.0, 253.32, 157.37, 266.76, 158.33, 263.88, 148.73, 251.4, 137.22, 248.52, 126.66, 257.16, 126.66, 260.04, 105.55, 254.28, 107.47, 253.32, 124.74, 225.49, 124.74, 207.26, 128.58, 190.95, 131.46, 185.19, 123.78]], "area": 30699.429050000006, "iscrowd": 0, "image_id": 157417, "bbox": [61.41, 100.75, 276.35, 247.57], "category_id": 4, "id": 149468}, {"segmentation": [[453.68, 243.11, 424.39, 241.81, 397.7, 237.9, 374.92, 230.09, 359.95, 234.0, 336.52, 250.27, 324.8, 254.18, 304.62, 254.18, 270.77, 237.25, 283.14, 217.08, 288.35, 198.2, 294.86, 183.88, 309.18, 170.86, 323.5, 159.8, 335.21, 149.38, 337.82, 135.06, 338.47, 121.39, 350.18, 92.75, 354.09, 79.08, 361.9, 72.58, 380.13, 57.6, 395.75, 45.89, 406.81, 44.59, 423.74, 49.79, 429.59, 68.67, 432.85, 94.71, 445.87, 106.42, 451.07, 114.23, 456.28, 122.04, 467.35, 129.2, 488.83, 131.16, 508.35, 130.51, 518.12, 126.6, 535.69, 115.53, 548.06, 108.38, 602.73, 105.77, 611.2, 108.38, 613.15, 118.79, 616.4, 131.81, 611.2, 146.78, 605.99, 162.4, 609.89, 185.83, 619.66, 207.31, 621.61, 223.58, 612.5, 230.74, 589.07, 232.7, 578.65, 241.81, 563.68, 247.02, 552.61, 249.62, 541.55, 249.62, 524.63, 243.76, 510.96, 236.6, 484.27, 235.3, 471.9, 240.51, 450.42, 235.95, 445.87, 237.9, 432.2, 236.6]], "area": 43223.714400000004, "iscrowd": 0, "image_id": 369763, "bbox": [270.77, 44.59, 350.84, 209.59], "category_id": 4, "id": 151782}, {"segmentation": [[273.82, 158.55, 289.13, 159.5, 300.62, 184.4, 311.15, 206.42, 319.77, 257.16, 307.33, 266.73, 304.45, 268.65, 296.79, 286.84, 278.6, 284.92, 270.94, 281.09, 265.2, 265.77, 246.05, 260.03, 245.09, 193.97, 259.46, 188.22, 265.2, 160.46]], "area": 6759.233199999999, "iscrowd": 0, "image_id": 503790, "bbox": [245.09, 158.55, 74.68, 128.29], "category_id": 4, "id": 152885}, {"segmentation": [[170.32, 236.0, 196.48, 260.11, 202.64, 268.32, 212.9, 268.32, 224.7, 267.81, 231.88, 254.47, 237.53, 244.21, 235.99, 218.55, 235.99, 208.29, 236.5, 185.21, 244.2, 173.92, 247.79, 166.22, 242.14, 158.53, 239.58, 155.96, 233.42, 150.32, 227.27, 143.14, 223.67, 139.54, 192.89, 142.11, 187.76, 142.11, 176.99, 146.21, 174.93, 152.88, 172.88, 156.47, 170.83, 176.48, 163.65, 202.65, 161.59, 217.53, 163.65, 225.74, 167.75, 232.41, 171.34, 238.05]], "area": 8001.24935, "iscrowd": 0, "image_id": 503790, "bbox": [161.59, 139.54, 86.2, 128.78], "category_id": 4, "id": 153314}, {"segmentation": [[211.35, 208.79, 223.6, 198.07, 245.04, 195.01, 280.26, 184.29, 301.7, 182.76, 321.61, 188.88, 343.05, 205.73, 352.24, 221.04, 358.37, 247.08, 369.09, 280.77, 376.75, 297.62, 398.19, 280.77, 392.06, 228.7, 499.26, 251.67, 640.0, 265.46, 637.1, 308.34, 580.43, 308.34, 502.33, 303.74, 411.97, 305.28, 404.31, 305.28, 392.06, 328.25, 385.93, 342.03, 392.06, 357.35, 516.11, 368.07, 557.46, 394.1, 565.12, 435.45, 578.9, 481.4, 591.15, 600.85, 376.75, 600.85, 85.76, 593.2, 94.95, 482.93, 119.46, 391.04, 137.83, 375.72, 173.06, 361.94, 211.35, 361.94, 188.37, 326.72, 182.25, 289.96, 177.65, 286.9, 21.44, 283.84, 22.97, 250.14, 140.9, 253.21, 153.15, 228.7, 173.06, 230.23, 159.27, 259.33, 177.65, 268.52, 189.9, 228.7]], "area": 160392.33339999994, "iscrowd": 0, "image_id": 555687, "bbox": [21.44, 182.76, 618.56, 418.09], "category_id": 4, "id": 155275}, {"segmentation": [[377.05, 250.31, 374.96, 256.39, 374.39, 260.37, 377.43, 263.03, 379.7, 264.93, 393.95, 264.93, 408.96, 265.31, 408.96, 266.07, 409.91, 266.64, 413.71, 266.83, 415.61, 265.69, 419.4, 265.12, 421.11, 265.69, 421.11, 266.83, 422.25, 268.73, 423.39, 269.11, 424.15, 268.73, 425.29, 269.49, 426.05, 270.06, 427.76, 270.44, 429.28, 269.68, 429.28, 267.4, 427.19, 266.64, 426.43, 265.5, 426.81, 263.79, 429.47, 262.84, 431.94, 261.7, 434.79, 260.37, 437.07, 259.04, 438.78, 257.34, 440.11, 254.87, 438.97, 252.02, 436.69, 251.83, 415.42, 251.64, 410.86, 247.46, 406.68, 247.65, 402.31, 250.5, 396.04, 254.49, 386.16, 256.01, 380.08, 249.93]], "area": 832.4966000000001, "iscrowd": 0, "image_id": 515422, "bbox": [374.39, 247.46, 65.72, 22.98], "category_id": 5, "id": 156590}, {"segmentation": [[2.88, 319.28, 21.57, 326.47, 21.57, 350.92, 1.44, 378.25, 1.44, 394.07, 23.01, 362.43, 47.46, 381.12, 54.65, 384.0, 83.42, 384.0, 119.37, 384.0, 126.56, 385.44, 103.55, 422.83, 86.29, 445.84, 14.38, 454.47, 4.31, 461.66, 0.0, 540.76, 57.53, 526.38, 176.9, 484.67, 284.76, 425.71, 289.08, 418.52, 287.64, 404.13, 270.38, 405.57, 228.67, 422.83, 218.61, 422.83, 263.19, 381.12, 287.64, 381.12, 316.4, 386.88, 333.66, 447.28, 342.29, 471.73, 343.73, 499.06, 349.48, 513.44, 291.96, 558.02, 247.37, 608.36, 237.3, 631.37, 404.13, 627.06, 454.47, 558.02, 455.91, 526.38, 463.1, 499.06, 476.04, 470.29, 476.04, 421.39, 467.42, 419.96, 448.72, 438.65, 437.21, 440.09, 435.78, 399.82, 450.16, 386.88, 457.35, 382.56, 477.48, 394.07, 477.48, 389.75, 473.17, 368.18, 478.92, 368.18, 478.92, 329.35, 464.54, 327.91, 442.97, 303.46, 427.15, 287.64, 412.76, 283.33, 396.94, 279.01, 404.13, 231.55, 409.89, 201.35, 408.45, 199.91, 392.63, 195.6, 381.12, 227.24, 376.81, 258.88, 372.49, 281.89, 317.84, 251.69, 274.7, 235.87, 248.81, 232.99, 204.22, 234.43, 179.78, 253.12, 136.63, 261.75, 115.06, 270.38, 99.24, 280.45, 87.73, 286.2, 79.1, 283.33, 93.48, 257.44, 93.48, 244.49, 80.54, 250.25, 69.03, 273.26, 54.65, 290.52, 35.96, 290.52, 24.45, 303.46, 15.82, 309.21, 12.94, 309.21]], "area": 112028.31675, "iscrowd": 0, "image_id": 162257, "bbox": [0.0, 195.6, 478.92, 435.77], "category_id": 5, "id": 156883}, {"segmentation": [[236.22, 190.92, 313.08, 190.11, 326.02, 105.98, 341.39, 110.02, 367.28, 187.69, 371.33, 187.69, 370.52, 178.79, 372.94, 177.17, 383.46, 189.3, 389.93, 189.3, 400.45, 177.98, 406.11, 182.02, 397.21, 190.92, 425.53, 188.49, 422.29, 184.45, 428.76, 178.79, 435.24, 189.3, 444.94, 188.49, 451.42, 180.4, 457.08, 183.64, 454.65, 190.11, 464.36, 190.11, 464.36, 187.69, 476.49, 186.88, 476.49, 191.73, 498.34, 191.73, 499.15, 186.88, 514.52, 186.07, 514.52, 190.11, 522.61, 190.11, 520.18, 184.45, 525.84, 182.02, 539.6, 190.92, 547.69, 184.45, 552.54, 189.3, 543.64, 191.73, 558.2, 199.01, 564.67, 212.76, 568.72, 217.62, 576.0, 222.47, 571.15, 232.18, 558.2, 228.94, 550.11, 241.08, 545.26, 241.89, 547.69, 251.6, 526.65, 251.6, 527.46, 244.31, 481.35, 241.89, 479.73, 252.4, 467.6, 249.17, 468.4, 243.51, 444.13, 242.7, 440.9, 248.36, 429.57, 248.36, 426.34, 254.02, 416.63, 252.4, 415.01, 245.93, 399.64, 248.36, 390.74, 243.51, 380.22, 251.6, 364.04, 248.36, 365.66, 243.51, 378.61, 242.7, 380.22, 233.8, 366.47, 223.28, 352.72, 225.71, 337.35, 216.0, 347.06, 210.34, 330.88, 199.82, 321.17, 199.01, 314.7, 203.87, 284.76, 203.06, 262.92, 197.39, 249.98, 197.39, 258.88, 193.35, 235.42, 191.73]], "area": 16061.729550000002, "iscrowd": 0, "image_id": 376177, "bbox": [235.42, 105.98, 340.58, 148.04], "category_id": 5, "id": 157599}, {"segmentation": [[172.99, 235.48, 196.53, 237.94, 190.56, 242.51, 191.26, 247.43, 203.21, 248.13, 223.23, 246.73, 223.23, 239.35, 259.77, 236.19, 277.34, 231.27, 286.13, 229.51, 288.58, 228.81, 301.58, 225.3, 305.1, 224.24, 305.8, 214.4, 300.53, 208.78, 285.42, 207.03, 272.42, 198.95, 253.45, 197.54, 249.94, 197.54, 255.91, 194.03, 228.15, 191.22, 116.43, 196.49, 86.21, 134.3, 83.05, 129.03, 75.67, 130.08, 72.16, 137.11, 70.05, 141.68, 63.72, 197.19, 41.24, 194.38, 13.83, 192.62, 19.46, 200.35, 70.05, 207.73, 75.32, 208.08, 61.62, 210.54, 2.59, 207.38, 1.19, 207.73, 1.19, 210.19, 11.73, 215.11, 32.1, 216.51, 44.05, 224.59, 45.46, 231.62, 57.4, 238.3, 65.13, 239.35, 78.48, 240.05, 81.29, 232.67, 82.7, 226.0, 90.78, 224.24, 95.35, 225.3, 110.8, 228.11, 113.62, 228.46, 115.37, 234.43, 119.24, 238.65, 133.29, 242.86, 143.48, 245.32, 154.72, 243.57, 167.37, 235.48, 167.37, 235.48]], "area": 13153.9867, "iscrowd": 0, "image_id": 376177, "bbox": [1.19, 129.03, 304.61, 119.1], "category_id": 5, "id": 158277}, {"segmentation": [[140.22, 319.1, 211.42, 312.63, 296.63, 305.08, 414.2, 292.13, 468.13, 289.98, 558.74, 141.12, 594.34, 138.97, 544.72, 295.37, 588.94, 297.53, 590.02, 315.87, 536.09, 341.75, 459.51, 366.56, 404.49, 373.03, 386.16, 383.82, 365.66, 383.82, 363.51, 400.0, 348.4, 392.45, 360.27, 370.88, 325.75, 371.96, 276.13, 371.96, 258.88, 360.09, 217.89, 355.78, 60.4, 330.97, 2.16, 324.49, 120.81, 321.26]], "area": 36417.57330000001, "iscrowd": 0, "image_id": 465735, "bbox": [2.16, 138.97, 592.18, 261.03], "category_id": 5, "id": 160692}, {"segmentation": [[28.75, 231.51, 162.93, 121.98, 182.09, 112.4, 195.79, 104.19, 204.0, 97.34, 235.49, 86.39, 282.04, 82.28, 310.79, 78.17, 353.23, 85.02, 388.83, 101.45, 412.11, 113.77, 424.43, 126.09, 425.8, 130.2, 429.91, 157.58, 440.86, 197.29, 450.44, 228.78, 447.7, 276.7, 450.44, 291.76, 454.55, 310.92, 465.5, 482.07, 295.73, 524.51, 217.69, 519.03, 176.62, 502.6, 169.77, 510.82, 164.3, 510.82, 147.87, 499.86, 136.91, 490.28, 49.29, 445.1, 35.6, 442.36, 24.64, 432.78, 23.28, 427.3, 15.06, 273.96, 27.38, 230.15]], "area": 160451.48539999995, "iscrowd": 0, "image_id": 315976, "bbox": [15.06, 78.17, 450.44, 446.34], "category_id": 6, "id": 163645}, {"segmentation": [[567.37, 84.13, 555.51, 78.74, 551.19, 79.82, 508.04, 61.48, 492.94, 52.85, 489.71, 51.78, 453.03, 39.91, 368.9, 24.81, 282.61, 26.97, 248.09, 30.2, 236.22, 50.7, 236.22, 56.09, 222.2, 120.81, 221.12, 130.52, 209.26, 204.94, 211.42, 213.57, 214.65, 214.65, 213.57, 220.04, 207.1, 220.04, 199.55, 227.6, 197.39, 240.54, 197.39, 256.72, 210.34, 254.56, 204.94, 330.07, 202.79, 332.22, 196.31, 415.28, 232.99, 420.67, 234.07, 439.01, 239.46, 445.48, 262.11, 450.88, 272.9, 429.3, 297.71, 431.46, 303.1, 422.83, 327.91, 426.07, 332.22, 434.7, 347.33, 426.07, 367.82, 429.3, 366.74, 433.62, 445.48, 434.7, 445.48, 465.98, 461.66, 458.43, 467.06, 450.88, 469.21, 444.4, 473.53, 448.72, 473.53, 448.72, 480.0, 434.7, 508.04, 437.93, 510.2, 428.22, 550.11, 421.75, 552.27, 376.45, 550.11, 353.8, 553.35, 328.99, 559.82, 221.12, 553.35, 216.81, 536.09, 215.73, 537.17, 180.13, 552.27, 181.21, 559.82, 181.21, 557.66, 174.74, 544.72, 169.35, 543.64, 144.54, 558.74, 142.38, 561.98, 136.99, 564.13, 136.99], [581.39, 92.76, 597.57, 110.02, 599.73, 182.29, 600.81, 241.62, 594.34, 341.93, 590.02, 415.28, 567.37, 423.91, 569.53, 377.53, 577.08, 368.9, 577.08, 333.3, 573.84, 324.67, 573.84, 218.97, 580.31, 218.97, 582.47, 153.17, 593.26, 145.62, 593.26, 132.67, 581.39, 110.02, 580.31, 92.76]], "area": 141128.33955, "iscrowd": 0, "image_id": 287396, "bbox": [196.31, 24.81, 404.5, 441.17], "category_id": 6, "id": 164394}, {"segmentation": [[346.61, 247.29, 396.27, 247.29, 437.82, 244.25, 440.87, 219.93, 445.93, 206.75, 457.08, 204.72, 488.5, 202.7, 486.47, 57.77, 507.76, 57.77, 514.85, 77.02, 505.73, 92.23, 511.81, 106.42, 520.93, 105.4, 518.9, 87.16, 517.89, 69.93, 507.76, 48.65, 487.49, 48.65, 483.43, 37.5, 456.07, 28.38, 424.65, 25.34, 415.53, 19.26, 290.87, 12.16, 241.21, 28.38, 238.17, 44.59, 172.29, 60.81, 168.24, 70.94, 168.24, 143.91, 167.22, 167.22, 174.32, 165.2, 168.24, 146.96, 176.35, 127.7, 185.47, 115.54, 198.64, 119.59, 210.8, 126.69, 216.89, 143.91, 208.78, 154.05, 207.76, 165.2, 208.78, 171.28, 224.99, 179.39, 229.05, 190.53, 232.09, 205.74, 235.13, 227.02, 244.25, 226.01, 252.36, 227.02, 255.4, 240.2, 254.38, 248.3, 264.52, 239.18, 260.47, 218.91, 244.25, 205.74, 247.29, 180.4, 255.4, 151.01, 271.61, 139.86, 286.82, 135.81, 283.78, 112.5, 279.72, 99.32, 287.83, 87.16, 303.03, 86.15, 313.17, 89.19, 317.22, 110.47, 314.18, 121.62, 310.13, 129.73, 309.11, 135.81, 319.25, 144.93, 332.42, 152.02, 337.49, 168.24, 339.52, 186.48, 339.52, 204.72, 339.52, 220.94, 341.54, 237.16]], "area": 50886.824550000005, "iscrowd": 0, "image_id": 205676, "bbox": [167.22, 12.16, 353.71, 236.14], "category_id": 6, "id": 164530}, {"segmentation": [[234.84, 99.92, 234.84, 73.3, 103.64, 78.06, 92.23, 72.35, 85.57, 98.97, 109.34, 98.97, 117.9, 98.97, 190.16, 105.63, 191.11, 103.73, 191.11, 98.02, 219.63, 96.12, 233.89, 100.87]], "area": 3601.8938000000003, "iscrowd": 0, "image_id": 226801, "bbox": [85.57, 72.35, 149.27, 33.28], "category_id": 6, "id": 167078}, {"segmentation": [[183.89, 197.47, 202.95, 170.79, 277.27, 169.84, 281.08, 182.22, 267.74, 187.94, 262.98, 207.0, 261.07, 227.96, 257.26, 251.78, 255.35, 256.54, 234.39, 259.4, 212.48, 260.36, 196.28, 262.26, 188.66, 244.16]], "area": 6702.650350000002, "iscrowd": 0, "image_id": 299083, "bbox": [183.89, 169.84, 97.19, 92.42], "category_id": 6, "id": 167104}, {"segmentation": [[164.27, 225.39, 238.76, 221.57, 279.83, 218.71, 194.83, 272.19, 205.34, 278.88, 224.44, 287.47, 230.17, 298.93, 158.54, 308.48, 120.34, 312.3, 115.56, 295.11, 119.38, 287.47, 113.65, 279.83, 115.56, 263.6, 126.07, 249.27], [438.37, 230.17, 440.28, 273.15, 456.52, 284.61, 468.93, 278.88, 471.8, 225.39, 467.98, 222.53], [212.98, 276.01, 276.97, 229.21, 277.92, 250.22, 244.49, 272.19], [383.93, 222.53, 424.04, 219.66, 427.87, 276.97, 411.63, 276.97, 375.34, 223.48]], "area": 12978.617100000005, "iscrowd": 0, "image_id": 226801, "bbox": [113.65, 218.71, 358.15, 93.59], "category_id": 7, "id": 170341}, {"segmentation": [[433.62, 109.84, 424.99, 100.13, 415.28, 101.21, 416.36, 90.43, 400.18, 92.58, 399.1, 72.09, 400.18, 52.67, 409.89, 52.67, 414.2, 64.54, 415.28, 76.4, 407.73, 79.64, 406.65, 88.27, 422.83, 89.35, 424.99, 73.17, 458.43, 66.7, 461.66, 59.15, 509.12, 59.15, 509.12, 4.13, 639.64, 4.13, 638.56, 114.16, 637.48, 127.1, 510.2, 114.16, 463.82, 109.84], [353.8, 136.81, 428.22, 128.18, 433.62, 118.47, 484.31, 124.94, 483.24, 178.88, 348.4, 160.54], [498.34, 121.71, 495.1, 174.56, 541.48, 179.96, 553.35, 162.7, 572.76, 149.75, 578.16, 143.28, 561.98, 135.73, 563.06, 129.26, 586.79, 144.36, 606.2, 146.52, 620.22, 147.6, 640.0, 158.38, 638.56, 130.34], [605.12, 155.15, 594.34, 181.03, 622.38, 182.11, 638.56, 183.19, 637.48, 162.7], [308.49, 165.93, 305.26, 208.0, 340.85, 216.63, 343.01, 170.25], [352.72, 171.33, 354.88, 215.55, 478.92, 233.89, 482.16, 186.43], [496.18, 188.58, 494.02, 240.36, 512.36, 220.94, 535.01, 210.16, 564.13, 209.08, 573.84, 210.16, 578.16, 198.29], [590.02, 199.37, 590.02, 216.63, 599.73, 230.65, 615.91, 230.65, 636.4, 222.02, 640.0, 206.92], [595.42, 234.97, 606.2, 258.7, 628.85, 261.93, 640.0, 225.26, 611.6, 233.89], [505.89, 245.75, 520.99, 220.94, 550.11, 214.47, 563.06, 217.71, 577.08, 232.81, 578.16, 254.38], [310.65, 216.63, 310.65, 230.65, 340.85, 231.73, 340.85, 223.1], [354.88, 228.49, 353.8, 241.44, 476.76, 264.09, 478.92, 247.91], [501.57, 253.3, 497.26, 266.25, 576.0, 273.8, 583.55, 266.25]], "area": 47264.91785, "iscrowd": 0, "image_id": 450263, "bbox": [305.26, 4.13, 334.74, 269.67], "category_id": 9, "id": 176691}, {"segmentation": [[532.79, 373.99, 532.79, 363.69, 534.93, 350.39, 536.22, 339.66, 536.65, 335.79, 535.36, 329.78, 535.36, 326.35, 540.08, 322.92, 546.95, 331.93, 549.1, 337.08, 555.96, 342.23, 552.53, 353.39, 552.53, 358.54, 552.53, 361.55, 551.67, 371.85, 550.81, 378.28, 551.67, 382.58, 553.82, 393.31, 546.09, 396.31, 540.94, 396.31, 537.08, 396.31, 543.52, 390.73, 538.8, 387.3]], "area": 1125.8645500000016, "iscrowd": 0, "image_id": 315976, "bbox": [532.79, 322.92, 23.17, 73.39], "category_id": 1, "id": 184579}, {"segmentation": [[199.23, 284.13, 194.06, 270.71, 193.03, 255.23, 204.39, 194.32, 214.71, 171.61, 225.03, 145.81, 225.03, 142.71, 263.23, 128.26, 275.61, 134.45, 283.87, 159.23, 282.84, 165.42, 290.06, 184.0, 286.97, 205.68, 285.94, 221.16, 290.06, 233.55, 326.19, 237.68, 338.58, 237.68, 343.74, 235.61, 340.65, 250.06, 322.06, 251.1, 301.42, 254.19, 292.13, 256.26, 294.19, 262.45, 308.65, 268.65, 302.45, 284.13, 302.45, 287.23, 304.52, 294.45, 297.29, 306.84, 279.74, 312.0, 263.23, 301.68, 251.87, 295.48, 240.52, 298.58, 225.03, 296.52]], "area": 14987.47785, "iscrowd": 0, "image_id": 450263, "bbox": [193.03, 128.26, 150.71, 183.74], "category_id": 1, "id": 187966}, {"segmentation": [[301.33, 294.08, 297.92, 293.78, 296.99, 293.78, 293.28, 294.7, 292.66, 294.39, 290.18, 292.54, 283.67, 290.37, 261.99, 287.27, 248.67, 287.89, 244.95, 290.37, 244.34, 293.78, 248.05, 298.73, 248.98, 299.66, 251.77, 301.52, 252.7, 305.55, 248.67, 304.0, 241.86, 302.45, 235.97, 300.59, 236.59, 305.24, 239.07, 307.71, 240.0, 308.64, 234.42, 306.17, 232.25, 302.45, 232.56, 298.11, 236.59, 292.54, 238.45, 288.82, 241.55, 284.48, 244.03, 280.15, 246.19, 275.81, 250.22, 272.09, 254.25, 268.07, 256.11, 264.97, 258.58, 261.87, 261.06, 260.01, 262.92, 258.46, 263.85, 256.29, 262.61, 252.89, 262.61, 248.86, 262.61, 244.21, 264.16, 241.43, 266.64, 239.26, 269.43, 238.33, 271.59, 238.02, 275.62, 239.88, 279.65, 243.28, 280.89, 247.93, 281.82, 251.03, 282.13, 255.67, 282.13, 258.46, 288.63, 260.94, 289.87, 263.11, 293.59, 266.52, 294.83, 267.14, 299.78, 268.99, 301.02, 272.71, 303.5, 275.19, 304.43, 276.74, 306.29, 280.46, 306.6, 285.72, 306.6, 285.72, 307.22, 289.75, 307.53, 293.16, 307.53, 295.94, 308.77, 299.04, 308.46, 300.9, 307.53, 303.38, 303.5, 303.69, 298.85, 304.0, 300.09, 302.76, 301.64, 300.9, 301.64, 298.73, 301.02, 295.32], [270.36, 316.08, 270.05, 312.05, 270.66, 308.02, 272.21, 303.07, 271.59, 302.76, 268.19, 304.31, 266.95, 306.79, 263.54, 307.4, 261.37, 307.09, 257.35, 307.71, 253.32, 308.33, 252.08, 308.95, 251.46, 311.12, 251.46, 312.05, 253.01, 312.98, 256.11, 312.98, 258.89, 312.98, 264.16, 314.22, 266.33, 314.22, 268.5, 315.15]], "area": 2340.6717499999995, "iscrowd": 0, "image_id": 287396, "bbox": [232.25, 238.02, 76.52, 78.06], "category_id": 1, "id": 193800}, {"segmentation": [[281.06, 110.5, 270.81, 106.4, 258.52, 105.72, 249.64, 110.5, 243.49, 111.87, 242.12, 100.94, 240.07, 87.96, 237.34, 79.08, 231.87, 70.88, 225.73, 62.68, 222.31, 59.95, 213.43, 55.17, 208.65, 59.27, 213.43, 68.15, 215.48, 78.39, 217.53, 96.84, 222.31, 116.65, 218.89, 118.02, 216.85, 137.15, 225.04, 150.12, 222.31, 159.69, 214.8, 168.57, 207.96, 189.06, 207.28, 196.58, 191.57, 236.88, 177.22, 240.3, 159.46, 249.18, 139.65, 262.16, 134.87, 281.29, 139.65, 295.63, 153.31, 320.23, 170.39, 339.36, 170.39, 345.5, 164.24, 353.02, 158.1, 361.9, 153.31, 368.05, 152.63, 374.88, 164.24, 377.61, 173.12, 381.71, 179.96, 381.71, 188.84, 379.66, 197.03, 377.61, 205.91, 369.41, 211.38, 364.63, 217.53, 348.92, 213.43, 339.36, 210.7, 320.91, 204.55, 300.42, 203.87, 292.9, 207.28, 288.12, 216.85, 288.8, 236.66, 290.17, 252.37, 287.44, 258.52, 284.02, 261.93, 280.61, 270.13, 273.09, 275.6, 263.53, 276.96, 249.86, 282.43, 265.58, 287.21, 281.97, 298.14, 284.7, 317.95, 285.39, 332.3, 284.02, 337.08, 279.24, 326.83, 273.77, 315.22, 267.63, 315.22, 262.84, 309.07, 244.4, 307.02, 235.52, 307.02, 225.95, 304.97, 189.75, 287.21, 153.54, 291.31, 146.71, 286.53, 139.88, 282.43, 129.63, 285.16, 126.9, 281.74, 112.55, 268.08, 107.77]], "area": 24921.39295, "iscrowd": 0, "image_id": 27969, "bbox": [134.87, 55.17, 202.21, 326.54], "category_id": 1, "id": 199668}, {"segmentation": [[124.08, 251.79, 115.37, 215.87, 119.73, 158.19, 128.44, 133.15, 149.12, 120.09, 167.62, 99.41, 188.3, 98.32, 213.33, 119.0, 189.39, 145.12, 191.56, 171.25, 201.36, 221.32, 191.56, 251.79, 191.56, 269.21, 121.9, 268.12, 114.29, 247.44]], "area": 11985.338, "iscrowd": 0, "image_id": 450263, "bbox": [114.29, 98.32, 99.04, 170.89], "category_id": 1, "id": 200382}, {"segmentation": [[281.75, 414.51, 289.86, 399.31, 281.75, 372.96, 272.63, 346.61, 271.61, 317.22, 262.49, 285.8, 259.45, 262.49, 259.45, 233.1, 246.28, 208.78, 244.25, 194.59, 246.28, 163.17, 258.44, 148.98, 268.57, 137.83, 283.78, 128.71, 282.76, 116.55, 281.75, 100.33, 284.79, 89.19, 296.95, 87.16, 315.19, 94.25, 315.19, 108.44, 310.13, 126.69, 311.14, 143.91, 327.36, 151.01, 342.56, 187.49, 340.53, 198.64, 347.62, 242.22, 344.58, 264.52, 327.36, 279.72, 323.3, 298.98, 319.25, 342.56, 311.14, 377.02, 308.1, 400.33, 301.0, 418.57, 284.79, 421.61]], "area": 19172.875099999997, "iscrowd": 0, "image_id": 205676, "bbox": [244.25, 87.16, 103.37, 334.45], "category_id": 1, "id": 200796}, {"segmentation": [[291.7, 117.86, 303.22, 121.7, 312.81, 164.88, 310.89, 173.52, 323.37, 190.79, 328.17, 241.65, 332.96, 249.32, 316.65, 252.2, 309.93, 203.26, 297.46, 179.28, 286.91, 155.29, 271.55, 154.33, 261.0, 174.48, 260.04, 193.67, 257.16, 201.35, 250.44, 201.35, 249.48, 250.28, 249.48, 258.92, 240.85, 257.96, 237.97, 186.95, 259.08, 171.6, 261.96, 158.17, 250.44, 163.92, 242.77, 164.88, 227.41, 141.85, 237.97, 133.22, 247.56, 153.37, 252.36, 130.34, 260.04, 117.86, 270.59, 114.99, 267.71, 106.35, 264.84, 99.63, 267.71, 91.0, 272.51, 89.08, 276.35, 91.0, 282.11, 92.92, 282.11, 102.51, 283.07, 113.07, 287.87, 121.7, 293.62, 122.66]], "area": 5571.039550000002, "iscrowd": 0, "image_id": 503790, "bbox": [227.41, 89.08, 105.55, 169.84], "category_id": 1, "id": 201591}, {"segmentation": [[222.46, 59.81, 221.09, 52.08, 225.64, 46.16, 226.55, 40.25, 233.38, 39.8, 238.84, 42.98, 224.28, 19.32, 221.09, 16.14, 203.81, 7.5, 189.7, 10.68, 182.88, 19.32, 179.7, 28.42, 179.24, 35.7, 181.97, 48.89, 172.87, 40.25, 154.68, 50.26, 156.04, 53.44, 152.4, 56.17, 141.48, 63.45, 137.84, 73.91, 136.93, 79.37, 134.66, 88.02, 133.29, 97.12, 129.2, 99.85, 125.56, 102.12, 124.2, 107.12, 124.2, 111.22, 127.38, 115.77, 133.29, 122.14, 130.56, 126.23, 127.84, 128.96, 131.47, 132.14, 128.29, 144.88, 131.02, 150.34, 147.22, 181.73, 150.45, 188.72, 151.52, 196.78, 149.91, 204.84, 147.22, 205.91, 146.69, 211.28, 147.22, 217.19, 145.07, 221.49, 142.39, 222.56, 142.39, 226.86, 145.07, 230.09, 143.46, 240.83, 142.93, 249.96, 145.07, 254.26, 141.85, 265.54, 148.84, 271.45, 170.33, 274.14, 171.94, 268.23, 169.25, 262.86, 165.49, 257.49, 165.49, 248.89, 171.4, 236.53, 168.71, 231.7, 174.62, 207.52, 181.07, 185.49, 177.85, 161.32, 186.98, 168.84, 209.55, 153.8, 196.11, 136.6, 209.55, 114.58, 219.22, 124.25, 240.17, 125.32, 251.99, 135.53, 255.75, 147.89, 269.72, 153.8, 274.02, 145.74, 270.26, 132.31, 263.81, 129.08, 257.36, 130.69, 248.76, 129.62, 228.35, 105.98, 225.13, 91.15, 227.27, 82.02, 225.13, 72.88]], "area": 14952.411299999996, "iscrowd": 0, "image_id": 157417, "bbox": [124.2, 7.5, 149.82, 266.64], "category_id": 1, "id": 202549}, {"segmentation": [[15.43, 51.74, 18.01, 73.08, 8.31, 80.85, 6.37, 107.37, 7.67, 137.13, 9.61, 166.89, 14.78, 200.53, 12.19, 209.84, 9.61, 229.89, 21.25, 237.66, 29.66, 237.66, 29.02, 231.84, 21.25, 225.37, 25.78, 216.96, 31.6, 243.48, 44.54, 241.54, 41.31, 229.25, 37.43, 198.2, 51.01, 189.79, 46.48, 160.67, 47.13, 131.56, 53.6, 124.44, 59.42, 113.44, 59.42, 94.03, 50.37, 79.8, 45.83, 68.81, 38.72, 70.1, 40.01, 51.98, 32.89, 46.16, 24.48, 46.81]], "area": 6951.188149999999, "iscrowd": 0, "image_id": 450263, "bbox": [6.37, 46.16, 53.05, 197.32], "category_id": 1, "id": 204796}, {"segmentation": [[187.69, 181.73, 199.38, 173.29, 200.03, 136.92, 200.03, 92.76, 201.98, 77.82, 192.23, 77.17, 194.18, 64.19, 204.57, 44.7, 216.26, 41.46, 226.65, 23.27, 233.15, 23.27, 235.75, 25.22, 236.4, 40.16, 236.4, 44.7, 246.14, 50.55, 251.33, 55.74, 253.93, 78.47, 240.94, 84.97, 240.29, 104.45, 240.29, 135.62, 236.4, 178.49, 236.4, 186.93, 229.25, 185.63, 226.0, 164.2, 221.46, 131.73, 216.26, 131.73, 212.37, 166.15, 202.62, 184.98]], "area": 5740.066550000001, "iscrowd": 0, "image_id": 369763, "bbox": [187.69, 23.27, 66.24, 163.66], "category_id": 1, "id": 210647}, {"segmentation": [[284.11, 101.22, 288.35, 92.03, 301.08, 88.49, 311.69, 95.92, 312.05, 108.29, 308.86, 114.66, 307.8, 119.61, 317.7, 127.39, 326.9, 141.54, 334.68, 148.26, 333.62, 155.33, 326.19, 157.1, 319.47, 155.33, 314.87, 163.11, 318.06, 170.89, 325.48, 178.32, 329.73, 183.98, 336.8, 189.28, 345.64, 198.48, 352.36, 193.53, 359.08, 194.59, 356.25, 208.03, 341.75, 225.36, 334.33, 223.59, 331.5, 215.1, 330.08, 213.33, 326.9, 202.37, 323.01, 189.99, 312.4, 175.84, 310.63, 171.95, 307.8, 159.22, 305.68, 147.2, 304.97, 126.33, 298.96, 122.09, 290.12, 119.96, 286.94, 116.07, 285.87, 113.25]], "area": 2538.4569, "iscrowd": 0, "image_id": 503790, "bbox": [284.11, 88.49, 74.97, 136.87], "category_id": 1, "id": 213108}, {"segmentation": [[310.53, 316.35, 312.1, 319.48, 311.47, 325.13, 311.16, 332.65, 306.46, 336.42, 301.75, 342.37, 301.44, 347.08, 342.52, 347.08, 340.95, 338.92, 334.99, 333.59, 331.54, 333.28, 329.97, 328.89, 333.42, 325.44, 334.36, 319.17, 334.68, 312.9, 323.39, 305.37, 315.86, 308.51, 312.73, 310.07, 311.16, 311.33, 310.85, 314.15]], "area": 1039.4098999999997, "iscrowd": 0, "image_id": 224118, "bbox": [301.44, 305.37, 41.08, 41.71], "category_id": 1, "id": 214365}, {"segmentation": [[180.9, 154.73, 194.31, 135.97, 222.18, 134.9, 229.69, 139.19, 234.51, 132.76, 233.97, 122.57, 227.54, 122.03, 224.86, 101.13, 217.36, 89.34, 208.78, 93.09, 202.35, 98.45, 199.13, 108.1, 199.67, 112.92, 203.95, 119.89, 201.81, 122.03, 191.63, 125.25, 186.8, 131.15, 182.51, 139.19, 178.76, 145.62, 173.4, 150.98, 170.72, 153.66, 172.86, 160.63]], "area": 1516.9351500000005, "iscrowd": 0, "image_id": 503790, "bbox": [170.72, 89.34, 63.79, 71.29], "category_id": 1, "id": 215141}, {"segmentation": [[89.82, 259.19, 82.15, 261.46, 69.37, 262.85, 55.46, 261.72, 50.06, 254.62, 50.63, 244.11, 55.46, 240.7, 54.89, 235.02, 31.6, 234.46, 25.07, 225.94, 23.09, 216.0, 25.36, 210.6, 24.22, 208.62, 26.78, 204.36, 23.65, 203.79, 25.07, 195.27, 27.34, 193.0, 28.2, 177.66, 29.62, 169.2, 35.58, 158.7, 39.84, 156.99, 44.1, 157.28, 48.07, 153.87, 42.11, 149.61, 40.69, 137.4, 43.53, 128.6, 48.36, 122.92, 59.15, 121.78, 63.41, 120.08, 71.93, 125.76, 72.49, 132.57, 69.65, 134.56, 71.93, 139.96, 70.79, 147.34, 68.52, 151.03, 69.09, 153.87, 69.37, 155.29, 79.03, 156.71, 85.27, 160.12, 88.11, 167.78, 94.64, 172.33, 102.03, 183.4, 95.5, 189.65, 98.33, 194.76, 97.48, 201.29, 102.31, 207.54, 102.59, 214.07, 102.31, 218.05, 97.77, 219.75, 96.63, 214.07, 94.64, 220.6, 94.93, 233.95, 97.77, 237.64, 95.5, 246.16, 93.51, 248.71, 92.37, 254.96, 89.82, 260.36]], "area": 7419.519649999999, "iscrowd": 0, "image_id": 369763, "bbox": [23.09, 120.08, 79.5, 142.77], "category_id": 1, "id": 217238}, {"segmentation": [[467.26, 234.2, 475.45, 226.92, 478.18, 189.62, 478.18, 178.24, 497.74, 168.23, 502.75, 151.86, 506.38, 126.38, 519.12, 120.01, 520.03, 107.73, 532.77, 104.55, 538.23, 109.55, 537.77, 122.29, 533.22, 125.93, 543.23, 131.39, 538.23, 153.68, 534.59, 166.87, 545.96, 180.97, 546.87, 192.8, 545.51, 220.55, 552.79, 228.28, 553.24, 231.92, 542.32, 237.38, 536.86, 227.83, 537.32, 199.62, 536.86, 186.89, 529.59, 177.33, 523.67, 169.6, 521.85, 163.69, 510.48, 160.5, 505.93, 165.5, 499.56, 176.88, 500.02, 182.79, 486.37, 186.89, 483.64, 200.53, 485.91, 221.91, 488.19, 231.01, 488.19, 234.65, 475.0, 236.93, 469.08, 234.2]], "area": 3316.96825, "iscrowd": 0, "image_id": 503790, "bbox": [467.26, 104.55, 85.98, 132.83], "category_id": 1, "id": 218037}, {"segmentation": [[44.36, 161.67, 40.39, 144.51, 45.24, 136.15, 50.08, 129.98, 62.84, 127.34, 71.65, 130.42, 78.69, 139.23, 80.45, 147.15, 80.01, 157.27, 78.69, 159.47, 85.29, 164.32, 88.81, 172.68, 89.69, 179.72, 89.25, 192.05, 88.81, 200.41, 87.93, 211.41, 87.05, 221.98, 89.25, 231.22, 87.93, 245.74, 88.37, 252.79, 80.45, 255.43, 76.93, 258.95, 73.85, 272.15, 71.65, 283.6, 68.12, 293.28, 63.28, 301.64, 68.12, 318.81, 69.0, 327.61, 68.56, 333.34, 56.24, 333.78, 54.92, 324.97, 54.92, 316.61, 54.48, 310.89, 51.4, 304.28, 49.2, 298.56, 47.44, 287.12, 47.44, 276.56, 44.36, 265.99, 39.95, 257.19, 35.11, 250.15, 25.43, 249.71, 10.46, 241.78, 11.78, 229.9, 15.75, 219.78, 17.95, 213.17, 13.1, 207.89, 12.22, 202.61, 22.7, 196.3, 26.74, 183.15, 27.75, 176.07, 29.77, 171.02, 39.89, 160.9]], "area": 9030.7605, "iscrowd": 0, "image_id": 205676, "bbox": [10.46, 127.34, 79.23, 206.44], "category_id": 1, "id": 218739}, {"segmentation": [[201.92, 178.31, 203.66, 177.13, 202.9, 176.44, 201.71, 175.81, 201.71, 173.87, 201.99, 172.27, 200.53, 172.27, 199.0, 171.23, 197.68, 169.63, 196.71, 167.75, 199.14, 167.75, 200.74, 166.99, 201.16, 165.88, 201.23, 164.97, 201.64, 164.21, 203.59, 164.62, 203.94, 166.08, 205.19, 167.61, 205.33, 168.31, 205.33, 170.53, 205.26, 172.69, 204.63, 174.15, 203.66, 175.33, 203.87, 176.65, 204.28, 177.62, 204.42, 178.66, 203.59, 179.08, 202.41, 178.73]], "area": 57.48734999999996, "iscrowd": 0, "image_id": 183181, "bbox": [196.71, 164.21, 8.62, 14.87], "category_id": 1, "id": 222023}, {"segmentation": [[15.83, 175.99, 15.25, 169.0, 17.29, 163.77, 18.45, 157.94, 19.91, 152.71, 20.2, 148.63, 19.03, 145.14, 19.03, 141.65, 19.03, 137.57, 22.53, 134.66, 27.47, 132.62, 31.55, 131.17, 31.55, 130.0, 31.55, 127.09, 31.55, 123.31, 31.55, 119.82, 34.46, 113.71, 39.41, 113.12, 41.74, 114.29, 43.77, 115.16, 44.65, 118.36, 44.65, 120.98, 42.61, 125.06, 42.61, 127.38, 43.19, 130.59, 45.23, 132.33, 46.1, 133.21, 39.7, 145.43, 42.03, 151.83, 41.44, 156.2, 40.28, 157.65, 26.31, 168.42, 23.69, 176.57, 21.65, 179.48, 21.07, 180.06, 19.32, 180.65, 16.12, 179.77, 14.96, 178.61]], "area": 1052.5164999999997, "iscrowd": 0, "image_id": 205676, "bbox": [14.96, 113.12, 31.14, 67.53], "category_id": 1, "id": 226781}, {"segmentation": [[240.44, 376.81, 243.13, 375.46, 238.07, 352.18, 242.8, 348.13, 243.47, 342.39, 240.44, 341.38, 238.75, 335.64, 239.42, 329.57, 244.15, 324.17, 250.9, 322.48, 253.93, 322.82, 261.69, 332.94, 261.69, 341.04, 259.33, 346.78, 270.13, 350.83, 281.94, 366.69, 269.79, 371.41, 262.03, 374.78]], "area": 1376.3664, "iscrowd": 0, "image_id": 315976, "bbox": [238.07, 322.48, 43.87, 54.33], "category_id": 1, "id": 230319}, {"segmentation": [[144.67, 176.13, 144.99, 175.66, 144.99, 172.62, 147.06, 170.07, 148.5, 168.15, 151.69, 169.91, 153.13, 173.42, 148.02, 175.97, 144.99, 175.97]], "area": 41.32429999999993, "iscrowd": 0, "image_id": 183181, "bbox": [144.67, 168.15, 8.46, 7.98], "category_id": 1, "id": 235262}, {"segmentation": [[538.03, 79.53, 552.39, 35.29, 566.75, 13.45, 586.29, 8.86, 627.66, 8.86, 636.27, 10.58, 636.85, 47.93, 626.51, 60.57, 621.34, 70.33, 615.59, 76.65, 612.14, 81.83, 612.14, 89.87, 609.27, 96.19, 604.1, 101.36, 597.2, 101.93, 571.35, 100.21, 554.69, 97.91, 545.5, 100.79, 539.75, 95.04, 538.6, 91.02]], "area": 7109.3836500000025, "iscrowd": 0, "image_id": 369763, "bbox": [538.03, 8.86, 98.82, 93.07], "category_id": 3, "id": 244041}, {"segmentation": [[8.03, 15.78, 15.15, 29.63, 11.59, 43.49, 8.42, 46.26, 11.98, 61.69, 8.03, 77.92, 7.23, 86.23, 6.84, 103.64, 4.46, 134.04, 7.63, 144.33, 0.51, 151.45, 0.9, 6.6]], "area": 1081.00625, "iscrowd": 0, "image_id": 450263, "bbox": [0.51, 6.6, 14.64, 144.85], "category_id": 1, "id": 261077}, {"segmentation": [[194.25, 35.85, 190.67, 36.09, 190.19, 35.73, 191.14, 34.42, 192.46, 33.58, 193.89, 33.46, 195.68, 33.34, 196.75, 32.51, 197.95, 31.55, 199.26, 31.19, 202.01, 30.96, 204.28, 30.96, 204.75, 30.96, 200.22, 32.99, 199.38, 33.22, 198.43, 34.42, 198.43, 35.13, 198.43, 36.09]], "area": 30.18000000000005, "iscrowd": 0, "image_id": 226801, "bbox": [190.19, 30.96, 14.56, 5.13], "category_id": 3, "id": 267391}, {"segmentation": [[5.81, 35.26, 38.3, 46.09, 52.99, 89.4, 60.72, 108.73, 90.89, 99.45, 115.63, 104.09, 125.69, 83.99, 105.58, 43.0, 107.13, 35.26, 116.41, 25.21, 130.33, 13.61, 130.33, 0.0, 124.14, 0.46, 91.66, 11.29, 70.78, 1.24, 38.3, 19.02, 13.55, 17.48, 5.04, 24.44]], "area": 7762.087899999999, "iscrowd": 0, "image_id": 271900, "bbox": [5.04, 0.0, 125.29, 108.73], "category_id": 20, "id": 275670}, {"segmentation": [[333.59, 264.43, 333.59, 262.6, 330.67, 259.67, 331.4, 258.94, 332.13, 256.01, 332.5, 249.06, 332.86, 246.87, 332.13, 241.75, 329.94, 239.18, 326.64, 231.87, 327.74, 225.65, 328.11, 222.36, 327.38, 220.89, 324.08, 223.09, 321.52, 224.92, 318.23, 221.26, 317.13, 219.8, 319.69, 215.41, 321.52, 211.02, 322.62, 209.19, 316.77, 210.65, 321.89, 205.89, 324.81, 205.16, 329.94, 205.16, 332.86, 206.99, 333.59, 207.36, 336.16, 209.19, 337.25, 209.55, 337.98, 212.11, 339.45, 215.04, 350.06, 217.6, 355.91, 218.7, 362.49, 220.16, 366.15, 220.16, 374.93, 219.43, 379.69, 224.19, 379.69, 230.41, 378.59, 233.7, 378.59, 237.72, 378.59, 240.28, 376.76, 244.31, 375.3, 247.23, 375.66, 257.48, 374.93, 264.43, 373.84, 266.62, 373.1, 266.62, 373.1, 265.52, 373.1, 262.96, 370.18, 262.6, 369.45, 265.16, 368.71, 265.89, 367.25, 263.7, 368.35, 254.55, 368.35, 252.35, 367.62, 250.53, 365.06, 248.7, 358.84, 246.14, 354.45, 245.4, 349.69, 243.57, 344.93, 242.84, 342.74, 241.75, 339.45, 242.84, 338.72, 245.04, 337.25, 250.53, 339.45, 256.01, 339.08, 262.6, 339.08, 264.79, 338.35, 265.52, 335.79, 262.6, 334.69, 261.5, 333.59, 262.23]], "area": 1852.8288000000005, "iscrowd": 0, "image_id": 554286, "bbox": [316.77, 205.16, 62.92, 61.46], "category_id": 20, "id": 276435}, {"segmentation": [[429.11, 387.43, 429.4, 381.52, 432.95, 377.97, 437.38, 375.01, 444.77, 376.79, 449.5, 380.04, 451.28, 382.11, 452.46, 383.29, 454.23, 387.43, 454.23, 392.45, 452.46, 394.52, 446.84, 401.91, 440.93, 403.98, 435.02, 402.5, 430.58, 399.55, 428.52, 394.23]], "area": 559.31095, "iscrowd": 0, "image_id": 284043, "bbox": [428.52, 375.01, 25.71, 28.97], "category_id": 64, "id": 291313}, {"segmentation": [[145.21, 378.22, 145.77, 381.72, 145.07, 384.51, 144.65, 387.87, 144.93, 390.94, 144.93, 394.16, 144.37, 396.12, 141.43, 397.66, 138.77, 399.05, 136.12, 399.75, 133.6, 399.75, 131.36, 399.89, 130.25, 398.08, 128.99, 396.96, 127.59, 395.42, 126.19, 394.16, 125.21, 393.74, 123.11, 393.74, 121.02, 391.5, 119.9, 389.13, 119.2, 385.63, 120.32, 383.39, 121.86, 380.18, 122.98, 378.5, 124.51, 377.38, 125.21, 376.4, 126.19, 375.28, 127.31, 374.59, 128.01, 375.01, 132.06, 374.03, 132.48, 372.77, 136.12, 372.49, 138.77, 372.63, 141.43, 373.61, 143.53, 375.28, 145.49, 378.22]], "area": 545.8441500000002, "iscrowd": 0, "image_id": 284043, "bbox": [119.2, 372.49, 26.57, 27.4], "category_id": 64, "id": 291972}, {"segmentation": [[59.59, 401.63, 50.08, 396.51, 48.62, 388.83, 57.03, 378.6, 66.9, 377.86, 72.75, 383.35, 74.94, 392.85, 72.38, 397.97, 68.36, 402.36, 61.41, 402.36]], "area": 480.7481999999998, "iscrowd": 0, "image_id": 284043, "bbox": [48.62, 377.86, 26.32, 24.5], "category_id": 64, "id": 292287}, {"segmentation": [[243.54, 391.22, 243.54, 386.77, 243.54, 384.55, 245.02, 381.58, 247.25, 379.36, 250.21, 378.61, 254.66, 378.61, 258.37, 380.84, 261.33, 385.29, 261.33, 390.48, 261.33, 392.7, 258.37, 394.92, 255.4, 398.63, 260.59, 400.11, 256.14, 400.11, 253.18, 399.37, 247.25, 400.85, 245.02, 397.15, 244.28, 396.41, 240.58, 390.48, 240.58, 387.51, 242.06, 384.55, 242.06, 383.8, 242.8, 381.58]], "area": 341.7773999999999, "iscrowd": 0, "image_id": 284043, "bbox": [240.58, 378.61, 20.75, 22.24], "category_id": 64, "id": 292364}, {"segmentation": [[177.37, 178.01, 188.31, 189.53, 191.96, 194.53, 196.38, 194.33, 198.49, 191.84, 202.14, 186.27, 204.06, 183.96, 204.25, 184.16, 200.6, 192.99, 198.11, 197.79, 193.88, 202.78, 194.27, 241.76, 194.65, 266.34, 184.67, 276.9, 178.33, 269.22, 181.98, 248.67, 187.16, 216.61, 187.16, 216.61, 188.89, 203.93, 185.24, 197.02]], "area": 915.6681500000002, "iscrowd": 0, "image_id": 205676, "bbox": [177.37, 178.01, 26.88, 98.89], "category_id": 32, "id": 296701}, {"segmentation": [[201.81, 99.9, 199.24, 99.9, 197.52, 101.3, 196.45, 104.63, 198.92, 107.63, 198.92, 113.0, 197.41, 117.72, 196.66, 120.72, 197.2, 125.23, 199.45, 123.83, 201.92, 123.08, 204.49, 123.94, 205.78, 123.3, 203.74, 120.51, 204.28, 116.54, 203.85, 112.57, 203.53, 108.38, 202.89, 104.52, 203.53, 100.98, 202.03, 100.12]], "area": 142.51975000000007, "iscrowd": 0, "image_id": 193936, "bbox": [196.45, 99.9, 9.33, 25.33], "category_id": 32, "id": 297417}, {"segmentation": [[131.65, 188.36, 128.88, 178.28, 129.05, 168.52, 130.18, 166.41, 128.56, 164.29, 128.39, 163.32, 135.71, 163.15, 134.9, 164.94, 135.55, 176.0, 138.48, 188.04, 131.97, 188.36]], "area": 164.12615000000005, "iscrowd": 0, "image_id": 193936, "bbox": [128.39, 163.15, 10.09, 25.21], "category_id": 32, "id": 298249}, {"segmentation": [[323.84, 153.05, 328.3, 153.26, 328.44, 156.02, 327.94, 156.44, 329.64, 159.28, 329.22, 165.01, 327.45, 168.9, 323.7, 162.46, 323.56, 157.65, 324.97, 156.66]], "area": 65.74865000000017, "iscrowd": 0, "image_id": 193936, "bbox": [323.56, 153.05, 6.08, 15.85], "category_id": 32, "id": 299199}, {"segmentation": [[192.09, 347.29, 184.97, 338.93, 180.32, 329.64, 179.39, 320.96, 180.01, 309.81, 181.87, 304.85, 184.97, 299.59, 189.62, 294.94, 194.57, 294.01, 198.91, 294.32, 203.24, 295.25, 209.13, 298.35, 213.16, 303.0, 218.11, 309.81, 220.59, 318.79, 221.83, 331.18, 220.59, 339.55, 215.33, 347.91, 207.89, 351.63, 202.01, 352.87, 194.57, 350.7, 190.85, 346.98]], "area": 1925.7009000000007, "iscrowd": 0, "image_id": 369979, "bbox": [179.39, 294.01, 42.44, 58.86], "category_id": 85, "id": 338875}, {"segmentation": [[39.47, 269.04, 42.19, 264.28, 56.03, 264.5, 59.88, 268.58, 61.69, 270.4, 62.83, 272.67, 62.83, 274.25, 62.15, 275.61, 61.69, 277.88, 60.56, 279.24, 59.65, 279.24, 58.52, 276.75, 53.53, 275.39, 53.3, 279.02, 50.81, 279.02, 50.13, 275.84, 46.27, 276.75, 44.91, 280.15, 44.23, 279.47, 43.55, 275.39, 35.39, 276.75, 33.35, 274.03, 34.71, 271.76]], "area": 294.45019999999994, "iscrowd": 0, "image_id": 113333, "bbox": [33.35, 264.28, 29.48, 15.87], "category_id": 3, "id": 360572}, {"segmentation": [[331.76, 283.17, 330.77, 279.54, 344.98, 276.89, 360.51, 270.62, 377.7, 270.95, 382.32, 270.95, 393.89, 275.9, 394.22, 276.89, 405.46, 276.56, 405.79, 280.53, 409.09, 286.81, 404.46, 291.1, 395.21, 291.43, 391.91, 294.41, 344.98, 290.77, 333.41, 290.77, 333.08, 284.16]], "area": 1337.4083000000007, "iscrowd": 0, "image_id": 113333, "bbox": [330.77, 270.62, 78.32, 23.79], "category_id": 3, "id": 361113}, {"segmentation": [[599.19, 347.74, 497.84, 334.57, 499.87, 269.7, 540.41, 270.72, 624.53, 302.13, 620.47, 349.77, 575.88, 349.77], [480.61, 271.73, 408.66, 290.99, 402.58, 317.34, 489.73, 334.57, 484.67, 276.8]], "area": 11357.984099999996, "iscrowd": 0, "image_id": 113333, "bbox": [402.58, 269.7, 221.95, 80.07], "category_id": 3, "id": 364179}, {"segmentation": [[201.13, 272.37, 197.73, 281.71, 197.49, 286.56, 199.91, 287.77, 201.13, 286.19, 211.8, 286.92, 212.77, 288.98, 215.19, 288.01, 216.16, 286.07, 215.68, 275.89, 214.83, 272.86, 201.37, 272.01]], "area": 247.97670000000016, "iscrowd": 0, "image_id": 113333, "bbox": [197.49, 272.01, 18.67, 16.97], "category_id": 3, "id": 364247}, {"segmentation": [[267.14, 322.28, 265.24, 307.07, 251.93, 299.46, 251.93, 231.01, 266.19, 179.68, 273.79, 173.02, 281.4, 157.81, 292.81, 154.01, 294.71, 140.7, 304.22, 158.76, 325.13, 159.71, 330.83, 144.5, 339.39, 160.66, 356.5, 160.66, 357.45, 142.6, 371.71, 161.61, 387.87, 161.61, 401.18, 146.4, 404.04, 158.76, 418.3, 161.61, 630.3, 165.42, 640.0, 366.96, 628.39, 364.11, 593.22, 350.8, 582.76, 374.57, 553.29, 385.97, 525.72, 393.58, 501.0, 393.58, 490.55, 419.25, 453.47, 419.25, 407.84, 412.59, 388.83, 414.49, 353.65, 416.39, 339.39, 408.79, 331.78, 382.17, 330.83, 366.96, 315.62, 356.5, 313.72, 340.34, 294.71, 334.64, 289.0, 326.08, 282.35, 331.78, 266.19, 329.88]], "area": 84908.06934999999, "iscrowd": 0, "image_id": 299083, "bbox": [251.93, 140.7, 388.07, 278.55], "category_id": 8, "id": 394784}, {"segmentation": [[417.27, 56.32, 426.03, 51.06, 432.69, 49.66, 438.3, 50.01, 441.8, 50.36, 441.45, 77.69, 417.62, 80.15, 416.57, 68.23], [408.86, 62.28, 414.47, 57.72, 413.77, 82.25, 407.11, 82.6], [444.61, 56.67, 468.44, 54.92, 467.38, 77.69, 463.18, 79.1, 460.38, 79.8, 463.53, 86.1, 463.18, 91.01, 459.68, 91.36, 455.82, 91.71, 455.12, 87.16, 455.12, 84.7, 455.12, 82.95, 447.41, 80.5, 441.8, 80.85]], "area": 1497.6626999999994, "iscrowd": 0, "image_id": 226801, "bbox": [407.11, 49.66, 61.33, 42.05], "category_id": 8, "id": 394861}, {"segmentation": [[517.11, 390.15, 517.97, 383.75, 535.69, 383.75, 543.38, 372.22, 562.17, 372.64, 564.73, 379.48, 570.71, 380.12, 576.47, 389.72, 572.63, 391.01, 571.78, 395.92, 568.57, 396.13, 566.22, 395.7, 565.58, 393.35, 559.39, 393.35, 557.47, 394.64, 555.76, 396.34, 552.35, 396.34, 550.42, 394.42, 550.0, 393.35, 544.23, 392.29, 542.74, 395.49, 540.39, 396.77, 536.12, 396.77, 535.26, 394.64, 533.13, 392.5, 530.78, 391.22]], "area": 865.3907499999995, "iscrowd": 0, "image_id": 465735, "bbox": [517.11, 372.22, 59.36, 24.55], "category_id": 8, "id": 396249}, {"segmentation": [[381.98, 113.28, 391.13, 116.55, 395.7, 121.12, 400.93, 128.96, 417.92, 131.57, 438.83, 136.8, 452.55, 138.76, 466.92, 138.76, 475.41, 138.76, 483.91, 138.11, 494.36, 135.49, 505.47, 121.12, 495.67, 103.48, 495.67, 91.06, 511.35, 79.3, 525.07, 75.38, 535.53, 87.8, 544.02, 107.4, 555.78, 111.32, 558.39, 105.44, 560.35, 97.6, 550.55, 58.39, 523.76, 45.98, 502.2, 36.83, 495.67, 36.83, 491.75, 38.79, 395.7, 44.02]], "area": 12607.98425, "iscrowd": 0, "image_id": 169111, "bbox": [381.98, 36.83, 178.37, 101.93], "category_id": 8, "id": 396885}, {"segmentation": [[567.55, 112.5, 567.55, 75.0, 585.79, 78.04, 580.73, 118.58, 565.52, 118.58]], "area": 670.7794000000014, "iscrowd": 0, "image_id": 113333, "bbox": [565.52, 75.0, 20.27, 43.58], "category_id": 10, "id": 403312}, {"segmentation": [[247.63, 210.19, 249.24, 192.24, 252.57, 192.13, 253.22, 190.95, 254.62, 190.95, 253.65, 210.95, 252.04, 211.05, 251.71, 210.41, 248.27, 210.19]], "area": 106.36280000000005, "iscrowd": 0, "image_id": 113333, "bbox": [247.63, 190.95, 6.99, 20.1], "category_id": 10, "id": 403681}, {"segmentation": [[155.94, 206.1, 159.68, 206.1, 160.33, 206.75, 160.33, 212.6, 159.36, 218.94, 155.45, 219.92, 154.97, 217.32, 155.45, 210.33]], "area": 62.55420000000023, "iscrowd": 0, "image_id": 113333, "bbox": [154.97, 206.1, 5.36, 13.82], "category_id": 10, "id": 404995}, {"segmentation": [[581.71, 138.28, 579.6, 218.82, 556.03, 219.88, 553.57, 214.6, 534.93, 215.66, 536.33, 180.49, 554.62, 181.19, 556.73, 175.91, 544.07, 168.18, 542.67, 146.72, 558.49, 140.74, 560.6, 137.58, 568.34, 137.58, 568.34, 137.58, 568.69, 132.65, 575.02, 133.01, 575.02, 137.93]], "area": 3083.8322000000007, "iscrowd": 0, "image_id": 287396, "bbox": [534.93, 132.65, 46.78, 87.23], "category_id": 10, "id": 410462}, {"segmentation": [[85.7, 58.66, 90.75, 52.78, 110.92, 53.62, 128.57, 54.46, 126.04, 192.29, 121.84, 195.65, 101.67, 204.06, 93.27, 199.86, 89.07, 194.81, 92.43, 61.18, 89.07, 59.5, 87.38, 59.5]], "area": 5347.411700000001, "iscrowd": 0, "image_id": 287396, "bbox": [85.7, 52.78, 42.87, 151.28], "category_id": 10, "id": 411083}, {"segmentation": [[15.08, 567.62, 10.56, 573.65, 6.79, 583.2, 6.54, 587.22, 9.05, 591.5, 9.55, 597.53, 10.81, 602.55, 14.83, 607.08, 17.34, 610.85, 17.34, 618.38, 18.1, 622.15, 19.1, 624.42, 20.61, 626.93, 21.37, 629.44, 25.14, 638.74, 25.89, 640.0, 29.16, 637.74, 29.91, 634.72, 32.42, 630.95, 33.18, 627.18, 35.94, 618.89, 36.7, 616.12, 36.19, 612.35, 37.45, 609.34, 39.96, 606.57, 45.24, 604.81, 47.5, 603.31, 48.76, 599.54, 50.52, 594.01, 51.27, 590.74, 52.78, 586.97, 51.77, 584.96, 50.27, 585.46, 49.01, 590.49, 47.25, 593.25, 44.99, 596.27, 41.72, 597.02, 39.46, 596.52, 39.46, 588.48, 38.45, 582.95, 36.44, 579.68, 33.93, 576.17, 34.43, 575.91, 35.19, 572.65, 34.94, 571.64, 36.19, 569.88, 37.7, 569.13, 38.2, 566.62, 40.72, 563.35, 41.47, 559.58, 41.47, 554.8, 39.96, 550.53, 36.7, 548.77, 33.93, 547.77, 32.93, 545.51, 29.16, 545.76, 28.65, 547.77, 26.89, 549.53, 23.38, 553.05, 22.12, 555.56, 21.87, 557.82, 20.11, 560.33, 17.85, 562.34, 16.09, 564.1]], "area": 2077.6890500000013, "iscrowd": 0, "image_id": 296816, "bbox": [6.54, 545.51, 46.24, 94.49], "category_id": 1, "id": 438483}, {"segmentation": [[270.5, 98.4, 281.11, 92.54, 295.38, 91.81, 301.96, 93.27, 307.45, 96.93, 310.37, 103.52, 310.37, 107.54, 308.91, 109.37, 305.25, 110.83, 296.47, 114.13, 290.62, 117.42, 283.67, 121.44, 281.11, 126.56, 277.82, 131.69, 273.79, 138.64, 271.6, 144.49, 270.5, 152.17, 269.04, 160.59, 269.04, 163.15, 263.18, 166.07, 257.7, 169.37, 253.31, 162.05, 253.67, 153.27, 258.06, 144.49, 262.45, 138.64, 268.3, 133.15, 270.5, 130.59, 267.94, 119.25, 266.11, 113.03, 267.94, 102.42]], "area": 1565.1664, "iscrowd": 0, "image_id": 169111, "bbox": [253.31, 91.81, 57.06, 77.56], "category_id": 1, "id": 455434}, {"segmentation": [[499.46, 88.65, 509.19, 84.32, 524.32, 78.92, 537.3, 82.16, 540.54, 100.54, 544.86, 113.51, 550.27, 127.57, 543.78, 139.46, 527.57, 157.84, 524.32, 166.49, 523.24, 168.65, 501.62, 165.41, 471.35, 158.92, 477.84, 153.51, 486.49, 140.54, 495.14, 130.81, 503.78, 123.24, 496.22, 109.19]], "area": 3973.1998499999995, "iscrowd": 0, "image_id": 169111, "bbox": [471.35, 78.92, 78.92, 89.73], "category_id": 1, "id": 474270}, {"segmentation": [[169.35, 379.36, 129.44, 297.38, 140.22, 259.63, 189.84, 211.09, 242.7, 194.91, 234.07, 179.81, 245.93, 122.64, 281.53, 114.01, 306.34, 131.27, 303.1, 153.92, 309.57, 181.96, 304.18, 195.99, 318.2, 205.69, 349.48, 228.34, 373.21, 287.67, 407.73, 378.28, 424.99, 395.54, 406.65, 473.2, 238.38, 471.04, 200.63, 380.43, 169.35, 383.67]], "area": 62588.42094999999, "iscrowd": 0, "image_id": 163112, "bbox": [129.44, 114.01, 295.55, 359.19], "category_id": 1, "id": 502363}, {"segmentation": [[165.15, 167.78, 165.15, 151.7, 169.58, 136.17, 171.25, 130.63, 180.67, 119.54, 190.1, 111.78, 197.31, 103.46, 207.29, 92.37, 213.39, 83.5, 221.15, 79.06, 235.01, 74.07, 239.45, 74.63, 246.1, 77.95, 259.41, 90.15, 261.63, 95.7, 259.41, 109.0, 241.67, 121.2, 226.69, 129.52, 219.49, 130.08, 215.05, 133.4, 215.6, 142.27, 217.82, 156.14, 222.26, 169.44, 222.81, 171.66, 209.51, 172.77, 203.96, 172.77, 200.63, 178.87, 205.07, 182.2, 208.4, 186.08, 191.21, 186.08, 182.34, 187.19, 180.67, 186.63, 173.46, 173.33]], "area": 5470.877000000001, "iscrowd": 0, "image_id": 169111, "bbox": [165.15, 74.07, 96.48, 113.12], "category_id": 1, "id": 503327}, {"segmentation": [[586.02, 231.67, 602.87, 114.16, 601.14, 109.4, 604.17, 96.88, 606.76, 90.83, 602.44, 89.1, 595.96, 86.51, 596.82, 80.03, 599.85, 65.77, 594.66, 65.34, 589.05, 64.47, 583.43, 66.2, 578.25, 71.82, 575.65, 75.71, 572.63, 81.32, 568.74, 90.4, 568.31, 97.31, 568.31, 104.22, 566.15, 107.68, 557.94, 111.57, 551.03, 115.02, 547.57, 117.61, 548.44, 120.64, 533.75, 136.19, 527.27, 153.04, 528.13, 164.71, 528.13, 169.46, 535.48, 172.48, 545.62, 170.68, 554.75, 165.2, 560.23, 156.98, 558.4, 154.24, 552.01, 149.67, 553.84, 144.19, 562.97, 142.37, 570.28, 142.37, 572.1, 162.46, 571.19, 177.99, 571.19, 185.29, 553.84, 185.29, 562.06, 190.77, 566.62, 203.56, 566.62, 208.13, 565.71, 223.66, 561.14, 230.05]], "area": 6118.513150000001, "iscrowd": 0, "image_id": 169111, "bbox": [527.27, 64.47, 79.49, 167.2], "category_id": 1, "id": 510451}, {"segmentation": [[181.9, 208.48, 175.42, 229.36, 176.14, 248.09, 178.3, 261.41, 180.46, 274.37, 181.9, 276.89, 181.54, 294.17, 193.42, 307.86, 201.7, 322.62, 203.14, 340.62, 207.46, 349.98, 224.02, 354.3, 226.54, 343.5, 235.9, 329.82, 225.82, 311.1, 230.5, 286.61, 236.26, 280.49, 237.71, 268.97, 234.82, 253.85, 233.74, 229.0, 238.43, 214.6, 238.43, 209.56, 229.42, 202.36, 225.1, 184.0, 225.82, 168.16, 203.5, 165.64, 194.14, 177.88, 197.02, 189.76]], "area": 8039.9825999999985, "iscrowd": 0, "image_id": 193936, "bbox": [175.42, 165.64, 63.01, 188.66], "category_id": 1, "id": 528124}, {"segmentation": [[30.9, 174.12, 27.47, 130.34, 48.07, 110.59, 44.64, 89.99, 56.66, 76.26, 66.96, 77.12, 72.97, 79.69, 79.83, 91.71, 78.12, 111.45, 98.72, 132.05, 101.29, 165.53, 84.98, 192.14, 77.26, 205.02, 72.11, 217.04, 68.67, 243.65, 78.98, 253.95, 63.52, 276.27, 58.37, 286.57, 78.98, 302.02, 77.26, 311.47, 80.69, 331.21, 69.53, 332.07, 54.08, 345.8, 46.36, 330.35, 45.5, 284.85, 33.48, 284.85, 36.05, 188.71]], "area": 11053.221950000003, "iscrowd": 0, "image_id": 193936, "bbox": [27.47, 76.26, 73.82, 269.54], "category_id": 1, "id": 546356}, {"segmentation": [[238.34, 203.3, 226.62, 160.51, 228.38, 132.96, 221.93, 110.69, 228.96, 96.04, 240.69, 86.07, 237.18, 69.07, 241.86, 57.35, 253.0, 54.42, 265.89, 63.21, 263.55, 89.59, 278.79, 107.75, 278.79, 125.34, 264.13, 126.51, 261.79, 142.34, 260.03, 158.17, 242.45, 168.72, 241.27, 204.48]], "area": 4251.5346, "iscrowd": 0, "image_id": 193936, "bbox": [221.93, 54.42, 56.86, 150.06], "category_id": 1, "id": 548340}, {"segmentation": [[280.83, 116.32, 287.76, 106.98, 302.43, 96.05, 296.03, 90.98, 296.3, 82.44, 296.3, 78.18, 293.36, 74.71, 304.3, 66.98, 312.03, 64.84, 320.57, 69.11, 324.3, 74.18, 327.5, 78.71, 330.7, 84.31, 328.57, 90.45, 321.9, 94.98, 320.83, 100.31, 336.04, 113.92, 340.57, 124.05, 332.83, 117.92, 327.77, 114.18, 319.23, 116.32, 312.57, 121.92, 309.9, 126.72, 310.97, 132.85, 313.9, 146.19, 298.96, 162.19, 295.76, 170.72, 280.29, 161.12, 280.83, 154.19, 287.5, 150.45, 289.63, 147.25, 287.76, 142.72, 287.23, 132.05, 284.83, 129.38]], "area": 2867.885849999999, "iscrowd": 0, "image_id": 193936, "bbox": [280.29, 64.84, 60.28, 105.88], "category_id": 1, "id": 550278}, {"segmentation": [[382.0, 67.01, 382.0, 71.31, 382.0, 78.17, 378.57, 86.76, 375.99, 88.48, 376.85, 90.19, 379.42, 92.77, 384.58, 95.34, 394.02, 99.63, 402.6, 132.25, 402.6, 154.57, 400.89, 155.43, 395.73, 152.86, 392.3, 150.28, 394.02, 143.41, 394.88, 136.55, 394.02, 127.96, 388.87, 121.95, 386.29, 120.24, 382.86, 118.52, 378.57, 115.94, 375.99, 115.09, 367.41, 121.1, 367.41, 128.82, 368.27, 133.97, 369.12, 140.84, 369.12, 143.41, 369.12, 148.57, 363.97, 152.0, 357.11, 156.29, 353.67, 160.58, 352.81, 159.72, 349.38, 156.29, 343.37, 154.57, 337.36, 148.57, 336.5, 139.12, 341.65, 122.81, 341.65, 115.09, 341.65, 108.22, 344.23, 100.49, 347.66, 94.48, 357.11, 87.62, 360.54, 84.18, 361.4, 80.75, 357.96, 73.88, 357.96, 66.16, 358.82, 64.44, 369.12, 55.85, 374.27, 55.85, 380.28, 61.01, 383.72, 63.58, 383.72, 66.16]], "area": 3440.1399500000016, "iscrowd": 0, "image_id": 193936, "bbox": [336.5, 55.85, 66.1, 104.73], "category_id": 1, "id": 550548}, {"segmentation": [[425.11, 92.12, 409.98, 101.12, 403.14, 125.6, 402.78, 134.24, 404.22, 147.92, 404.22, 156.93, 404.94, 160.53, 410.34, 165.21, 418.99, 161.97, 425.83, 161.97, 433.75, 153.33, 433.03, 149.73, 430.51, 147.92, 428.35, 140.36, 427.99, 134.96, 433.75, 127.04, 440.59, 124.16, 449.23, 123.8, 454.99, 127.76, 457.51, 135.32, 457.15, 145.76, 453.55, 154.41, 457.51, 159.45, 464.71, 161.25, 464.71, 156.21, 464.71, 143.96, 464.71, 135.32, 463.99, 125.96, 463.63, 116.24, 458.59, 105.44, 456.79, 100.4, 449.59, 98.24, 448.15, 94.64, 444.91, 89.24, 447.43, 83.84, 447.43, 75.2, 445.99, 66.91, 443.11, 61.51, 436.99, 56.83, 426.55, 57.55, 423.31, 62.23, 419.71, 67.63, 420.43, 74.83, 420.79, 79.52, 422.59, 84.92, 425.11, 85.64]], "area": 3717.709299999999, "iscrowd": 0, "image_id": 193936, "bbox": [402.78, 56.83, 61.93, 108.38], "category_id": 1, "id": 550737}, {"segmentation": [[541.18, 191.82, 540.36, 172.2, 520.74, 150.95, 530.55, 105.98, 550.17, 85.54, 559.16, 80.64, 552.62, 57.75, 556.71, 40.58, 571.43, 34.85, 584.5, 47.93, 589.41, 77.37, 627.02, 99.44, 640.0, 160.76, 617.21, 221.26, 610.67, 290.75, 576.33, 325.09, 570.6, 305.46, 579.6, 280.94, 588.6, 278.48, 572.24, 265.41, 560.8, 262.95, 554.26, 243.33, 544.45, 193.46]], "area": 18418.276449999994, "iscrowd": 0, "image_id": 193936, "bbox": [520.74, 34.85, 119.26, 290.24], "category_id": 1, "id": 551442}, {"segmentation": [[280.53, 276.15, 281.22, 275.06, 281.32, 274.96, 281.42, 274.57, 280.93, 273.68, 280.33, 272.69, 280.33, 270.81, 280.93, 270.32, 282.41, 270.22, 284.28, 271.9, 284.68, 273.18, 285.66, 274.17, 287.64, 275.95, 288.92, 277.53, 289.12, 279.11, 289.22, 280.19, 289.22, 280.78, 289.42, 280.78, 289.02, 281.87, 289.02, 282.27, 289.02, 282.86, 288.82, 283.75, 288.82, 284.54, 289.22, 285.42, 289.32, 285.72, 289.32, 291.35, 289.12, 291.94, 289.12, 292.33, 289.12, 293.72, 288.33, 295.49, 289.42, 296.48, 290.8, 297.86, 291.69, 299.74, 292.18, 302.01, 291.98, 303.88, 291.09, 304.38, 290.3, 304.77, 289.22, 304.87, 288.23, 304.77, 287.93, 304.67, 287.44, 303.88, 287.24, 302.8, 287.44, 301.51, 286.75, 299.44, 285.96, 297.37, 284.97, 294.41, 284.78, 293.72, 284.38, 293.42, 283.39, 293.42, 282.51, 294.9, 282.11, 295.99, 281.52, 297.86, 281.81, 299.64, 281.81, 300.92, 282.01, 302.3, 281.12, 304.18, 280.43, 302.01, 280.53, 300.33, 280.73, 296.68, 280.43, 294.8, 280.24, 293.72, 280.14, 291.94, 280.04, 290.85, 280.14, 286.9, 280.14, 286.9, 280.14, 286.9, 279.45, 285.42, 280.24, 277.13, 280.24, 276.54, 280.83, 275.75]], "area": 246.77219999999997, "iscrowd": 0, "image_id": 113333, "bbox": [279.45, 270.22, 12.73, 34.65], "category_id": 1, "id": 559050}, {"segmentation": [[318.81, 303.47, 323.21, 294.89, 323.32, 293.82, 321.92, 286.85, 322.14, 284.38, 323.21, 283.52, 324.18, 282.77, 324.71, 281.38, 324.61, 278.59, 322.14, 279.12, 322.89, 278.05, 322.46, 276.66, 321.92, 274.83, 322.78, 272.47, 325.46, 271.51, 327.61, 273.01, 327.82, 275.15, 329.11, 277.19, 329.76, 281.27, 330.08, 286.74, 329.97, 290.17, 328.79, 293.71, 328.68, 293.82, 327.4, 295.96, 329.43, 303.47, 329.54, 305.08, 329.43, 307.66, 326.0, 307.55, 325.57, 302.4, 323.64, 299.18, 321.71, 304.01, 321.39, 306.48, 319.24, 305.94, 319.14, 304.12]], "area": 220.4682000000002, "iscrowd": 0, "image_id": 113333, "bbox": [318.81, 271.51, 11.27, 36.15], "category_id": 1, "id": 569008}, {"segmentation": [[296.25, 300.18, 293.75, 294.08, 294.06, 282.2, 294.06, 277.36, 294.37, 276.11, 291.87, 272.51, 293.12, 270.01, 297.81, 270.79, 298.43, 272.51, 301.56, 277.98, 301.4, 280.64, 300.15, 283.61, 299.84, 289.86, 299.06, 295.02, 297.18, 301.74]], "area": 171.4819999999997, "iscrowd": 0, "image_id": 113333, "bbox": [291.87, 270.01, 9.69, 31.73], "category_id": 1, "id": 570441}, {"segmentation": [[298.71, 298.58, 300.9, 288.88, 300.9, 282.85, 302.0, 279.38, 299.62, 273.71, 299.62, 270.78, 302.91, 268.95, 308.95, 274.25, 312.6, 285.96, 308.95, 286.33, 305.47, 297.11, 306.39, 305.34, 300.9, 304.61]], "area": 272.27245000000073, "iscrowd": 0, "image_id": 113333, "bbox": [298.71, 268.95, 13.89, 36.39], "category_id": 1, "id": 570906}, {"segmentation": [[394.98, 350.6, 343.32, 334.46, 336.86, 322.62, 298.12, 329.08, 302.42, 400.11, 279.82, 403.34, 275.52, 349.52, 152.83, 316.16, 150.67, 351.68, 129.15, 351.68, 129.15, 309.7, 49.51, 288.18, 73.18, 255.89, 113.0, 251.59, 121.61, 266.65, 194.8, 268.81, 204.48, 294.64, 246.46, 289.26, 262.6, 314.01, 293.81, 315.09, 315.34, 307.55, 355.16, 302.17, 394.98, 320.47, 403.59, 348.45, 399.28, 350.6]], "area": 15361.409100000004, "iscrowd": 0, "image_id": 450263, "bbox": [49.51, 251.59, 354.08, 151.75], "category_id": 15, "id": 572390}, {"segmentation": [[217.45, 403.32, 225.68, 343.0, 456.88, 345.75, 456.88, 399.66, 222.93, 403.32]], "area": 13448.172300000002, "iscrowd": 0, "image_id": 224118, "bbox": [217.45, 343.0, 239.43, 60.32], "category_id": 15, "id": 572405}, {"segmentation": [[319.94, 419.27, 639.89, 420.22, 640.0, 1.91, 583.54, 0.0, 579.72, 7.64, 577.81, 15.28, 630.34, 44.89, 621.74, 58.26, 587.36, 32.47, 574.94, 32.47, 566.35, 37.25, 558.71, 69.72, 557.75, 77.36, 611.24, 111.74, 606.46, 127.02, 573.99, 98.37, 556.8, 101.24, 550.11, 104.1, 544.38, 137.53, 590.22, 175.73, 586.4, 187.19, 559.66, 157.58, 539.61, 165.22, 532.92, 204.38, 533.88, 233.03, 492.81, 253.09, 425.96, 250.22, 372.47, 250.22, 308.48, 248.31, 274.1, 252.13, 249.27, 265.51, 232.08, 297.02, 230.17, 300.84, 319.94, 420.22]], "area": 83762.51665000005, "iscrowd": 0, "image_id": 423036, "bbox": [230.17, 0.0, 409.83, 420.22], "category_id": 15, "id": 574128}, {"segmentation": [[263.68, 326.1, 147.44, 322.87, 146.37, 397.13, 124.84, 390.67, 127.0, 294.89, 117.31, 252.91, 121.61, 187.26, 133.45, 186.19, 135.61, 195.87, 255.07, 193.72, 249.69, 264.75, 251.84, 297.04, 250.76, 311.03, 267.98, 329.33], [528.43, 393.9, 511.21, 394.98, 507.98, 335.78, 483.23, 321.79, 413.27, 317.49, 387.44, 281.97, 378.83, 248.61, 357.31, 234.62, 344.39, 195.87, 484.3, 191.57, 483.23, 174.35, 500.45, 174.35, 503.68, 237.85, 515.52, 247.53, 528.43, 247.53, 529.51, 264.75, 526.28, 269.06, 529.51, 372.38]], "area": 38308.29535, "iscrowd": 0, "image_id": 97479, "bbox": [117.31, 174.35, 412.2, 222.78], "category_id": 15, "id": 574649}, {"segmentation": [[11.99, 103.01, 54.5, 83.39, 452.39, 196.76, 453.48, 213.11, 408.78, 250.18, 393.52, 411.51, 365.18, 404.97, 370.63, 340.65, 353.19, 364.64, 342.29, 444.21, 306.32, 434.4, 287.78, 321.03, 81.76, 248.0, 85.03, 297.05, 62.14, 292.69, 62.14, 244.73, 44.69, 245.82, 42.51, 319.94, 16.35, 325.39, 8.72, 312.31]], "area": 77949.79735, "iscrowd": 0, "image_id": 386650, "bbox": [8.72, 83.39, 444.76, 360.82], "category_id": 15, "id": 574669}, {"segmentation": [[304.63, 194.26, 306.6, 242.2, 313.83, 268.47, 333.53, 278.98, 333.53, 282.27, 303.98, 283.58, 286.24, 273.73, 270.48, 273.73, 257.35, 282.92, 211.37, 285.55, 200.86, 290.15, 324.99, 309.19, 441.9, 323.64, 437.96, 399.17, 430.74, 424.0, 489.85, 424.0, 491.82, 401.8, 508.9, 403.11, 525.32, 379.47, 525.97, 316.42, 527.94, 303.28, 526.63, 298.03, 521.38, 297.37, 522.69, 264.53, 536.48, 263.22, 534.51, 244.83, 522.03, 242.2, 524.66, 210.68, 535.17, 209.36, 536.48, 189.66, 526.63, 189.66, 526.63, 179.81, 514.81, 176.52, 488.54, 177.18, 485.91, 189.0], [206.7, 192.35, 198.12, 218.1, 193.6, 233.46, 189.98, 237.52, 167.85, 246.1, 151.59, 258.3, 136.68, 280.89, 142.1, 297.15, 156.56, 321.99, 136.23, 321.99, 134.87, 321.99, 130.36, 312.96, 100.54, 318.38, 98.28, 337.8, 70.28, 354.06, 57.18, 347.29, 57.63, 326.06, 62.15, 323.8, 61.24, 266.88, 58.53, 261.01, 55.37, 237.52, 64.86, 232.1, 92.41, 238.42, 124.48, 235.71, 127.65, 232.1, 131.71, 202.29, 129.0, 202.74, 129.45, 192.35, 132.62, 191.9, 133.52, 182.86, 138.04, 181.96, 158.36, 182.86, 160.17, 191.9]], "area": 49843.85430000001, "iscrowd": 0, "image_id": 27969, "bbox": [55.37, 176.52, 481.11, 247.48], "category_id": 15, "id": 575169}, {"segmentation": [[0.0, 458.61, 128.64, 459.73, 118.57, 484.34, 101.79, 483.22, 95.08, 500.0, 0.0, 498.88, 0.0, 461.97]], "area": 4589.050349999998, "iscrowd": 0, "image_id": 284043, "bbox": [0.0, 458.61, 128.64, 41.39], "category_id": 15, "id": 575984}, {"segmentation": [[364.84, 269.0, 400.36, 266.85, 408.97, 266.85, 440.18, 275.46, 445.56, 293.76, 466.01, 323.89, 496.14, 329.27, 505.83, 340.04, 502.6, 352.95, 489.69, 364.79, 509.06, 411.07, 510.13, 453.04, 510.13, 473.49, 503.68, 473.49, 486.46, 457.35, 478.92, 411.07, 443.41, 412.14, 445.56, 471.34, 428.34, 460.57, 419.73, 400.3]], "area": 14676.897950000002, "iscrowd": 0, "image_id": 163112, "bbox": [364.84, 266.85, 145.29, 206.64], "category_id": 15, "id": 579683}, {"segmentation": [[208.05, 63.87, 201.34, 91.83, 210.29, 122.03, 210.29, 142.17, 202.46, 155.59, 161.07, 173.49, 106.26, 179.08, 96.2, 210.4, 76.06, 195.86, 36.91, 192.5, 38.03, 205.92, 38.03, 221.58, 69.35, 230.53, 79.42, 242.84, 97.32, 254.02, 101.79, 283.11, 91.72, 312.19, 58.17, 331.2, 55.93, 333.44, 49.22, 355.81, 30.2, 429.64, 22.37, 439.71, 27.96, 456.48, 21.25, 481.09, 43.62, 481.09, 44.74, 444.18, 66.0, 383.78, 92.84, 346.86, 121.92, 332.32, 148.77, 305.48, 164.43, 313.31, 165.55, 318.9, 139.82, 346.86, 149.89, 359.17, 167.79, 428.52, 172.26, 459.84, 193.51, 477.74, 208.05, 469.91, 187.92, 428.52, 197.99, 429.64, 203.58, 393.84, 213.65, 340.15, 211.41, 324.49, 217.0, 285.34, 224.83, 281.99, 244.97, 337.92, 256.15, 409.5, 276.29, 429.64, 287.47, 429.64, 291.95, 426.28, 259.51, 351.34, 266.22, 359.17, 253.91, 287.58, 255.03, 247.31, 265.1, 226.06, 258.39, 192.5, 262.86, 158.94, 263.98, 142.17, 272.93, 125.39, 268.46, 114.2, 304.25, 97.42, 290.83, 82.88, 258.39, 73.93, 244.97, 67.22, 239.37, 75.05, 234.9, 80.64, 212.53, 64.99]], "area": 45672.34845000002, "iscrowd": 0, "image_id": 285388, "bbox": [21.25, 63.87, 283.0, 417.22], "category_id": 24, "id": 588375}, {"segmentation": [[176.9, 133.51, 202.79, 137.83, 222.92, 172.34, 244.49, 175.22, 250.25, 203.98, 240.18, 229.87, 290.52, 293.15, 281.89, 366.5, 276.13, 383.76, 263.19, 421.15, 245.93, 439.85, 251.69, 465.74, 270.38, 493.06, 303.46, 518.95, 307.78, 553.47, 313.53, 573.6, 366.74, 560.66, 343.73, 632.57, 258.88, 623.94, 248.81, 520.39, 247.37, 493.06, 241.62, 429.78, 258.88, 396.7, 250.25, 357.87, 234.43, 327.67, 222.92, 283.09, 201.35, 290.28, 179.78, 228.43, 158.2, 219.81, 148.13, 195.36, 175.46, 183.85]], "area": 25685.658599999995, "iscrowd": 0, "image_id": 28649, "bbox": [148.13, 133.51, 218.61, 499.06], "category_id": 25, "id": 594570}, {"segmentation": [[76.22, 139.27, 94.92, 127.76, 103.55, 109.06, 116.49, 101.87, 123.69, 99.0, 135.19, 78.86, 142.38, 110.5, 163.96, 119.13, 166.83, 155.09, 172.58, 232.75, 191.28, 303.22, 220.04, 342.05, 253.12, 376.57, 251.69, 513.2, 254.56, 556.34, 258.88, 613.87, 256.0, 629.69, 243.06, 629.69, 237.3, 554.91, 231.55, 490.19, 221.48, 439.85, 220.04, 439.85, 217.17, 484.43, 228.67, 526.14, 231.55, 507.45, 230.11, 625.38, 208.54, 639.76, 199.91, 634.01, 186.97, 501.69, 185.53, 435.54, 169.71, 422.59, 163.96, 425.47, 174.02, 547.72, 172.58, 629.69, 169.71, 640.0, 148.13, 631.13, 155.33, 494.5, 132.31, 412.52, 130.88, 355.0, 142.38, 346.37, 136.63, 214.05, 133.75, 169.47, 122.25, 159.4, 76.22, 163.72, 63.28, 155.09]], "area": 38047.91664999999, "iscrowd": 0, "image_id": 186556, "bbox": [63.28, 78.86, 195.6, 561.14], "category_id": 25, "id": 594902}, {"segmentation": [[245.21, 345.64, 241.49, 379.11, 246.27, 413.65, 257.43, 433.83, 269.65, 446.58, 273.9, 446.58, 270.71, 430.11, 273.9, 421.61, 261.15, 394.52, 251.05, 369.55, 247.86, 350.42], [250.52, 277.64, 247.86, 307.92, 256.9, 320.14, 266.46, 341.92, 264.86, 290.39, 263.27, 275.52, 263.27, 265.42, 259.55, 259.05, 255.83, 254.8, 257.96, 246.83, 263.8, 238.86, 260.08, 238.86, 253.71, 238.86, 250.52, 242.58, 250.52, 249.48, 252.65, 254.26, 254.24, 255.33, 253.18, 263.3], [281.86, 465.18, 290.9, 499.71, 290.37, 535.31, 286.65, 561.34, 289.3, 557.62, 296.74, 528.4, 301.52, 525.21, 313.74, 525.74, 319.05, 533.71, 330.21, 578.34, 332.87, 586.84, 337.65, 582.06, 338.18, 563.99, 342.96, 560.28, 348.8, 567.71, 353.05, 588.43, 355.71, 588.43, 359.96, 590.56, 355.18, 563.46, 352.52, 540.09, 349.34, 531.06, 349.34, 511.4, 349.34, 500.24, 344.55, 486.96, 336.05, 476.87], [331.8, 607.03, 330.74, 620.31, 324.37, 627.21, 331.8, 627.21, 337.65, 624.03, 339.77, 609.15]], "area": 7365.461199999998, "iscrowd": 0, "image_id": 296816, "bbox": [241.49, 238.86, 118.47, 388.35], "category_id": 25, "id": 598906}, {"segmentation": [[339.42, 583.91, 339.42, 583.91, 329.35, 550.83, 316.4, 501.93, 316.4, 497.62, 323.6, 461.66, 325.03, 457.35, 337.98, 394.07, 337.98, 394.07, 323.6, 325.03, 304.9, 281.89, 290.52, 266.07, 302.02, 235.87, 310.65, 261.75, 317.84, 290.52, 322.16, 297.71, 340.85, 323.6, 391.19, 378.25, 434.34, 398.38, 461.66, 473.17, 463.1, 523.51, 461.66, 591.1, 445.84, 558.02, 444.4, 500.49, 431.46, 444.4, 431.46, 444.4, 415.64, 445.84, 411.33, 496.18, 389.75, 583.91, 371.06, 585.35, 396.94, 514.88, 396.94, 509.12, 378.25, 455.91, 371.06, 524.94, 362.43, 591.1, 360.99, 503.37, 360.99, 497.62, 349.48, 450.16, 330.79, 496.18, 346.61, 586.79]], "area": 18823.493700000003, "iscrowd": 0, "image_id": 186556, "bbox": [290.52, 235.87, 172.58, 355.23], "category_id": 25, "id": 600000}, {"segmentation": [[276.39, 447.39, 278.89, 431.12, 271.38, 414.22, 259.48, 391.05, 253.22, 372.27, 247.59, 346.61, 245.71, 338.47, 246.96, 309.04, 260.11, 320.94, 275.76, 354.74, 282.65, 376.65, 307.69, 386.67, 324.59, 400.44, 328.03, 415.0, 316.88, 427.39, 323.9, 447.21, 332.16, 461.26], [238.41, 294.81, 232.21, 294.81, 233.86, 289.44, 231.8, 284.9, 226.02, 284.9, 221.89, 291.09, 214.45, 297.7, 212.39, 301.42, 211.15, 306.38, 205.37, 311.33, 198.35, 318.77, 195.87, 324.55, 197.52, 328.27, 200.0, 333.22, 203.71, 334.87, 211.56, 324.55, 216.93, 322.48, 225.19, 322.48, 233.86, 321.24, 236.76, 320.0, 237.99, 304.31, 237.99, 298.53], [301.6, 527.75, 301.19, 546.75, 302.01, 561.62, 301.6, 569.88, 301.19, 576.9, 291.69, 573.6, 291.27, 563.27, 294.99, 550.05, 293.75, 539.73, 292.93, 537.66, 295.82, 530.23, 297.88, 527.34], [320.18, 538.49, 321.84, 542.62, 321.42, 547.16, 310.27, 547.58, 309.86, 540.97, 314.4, 538.9, 315.23, 534.36], [367.68, 532.29, 371.4, 542.21, 372.22, 547.16, 377.18, 551.71, 372.64, 557.49, 368.09, 550.05, 366.03, 537.25]], "area": 6835.107899999999, "iscrowd": 0, "image_id": 296816, "bbox": [195.87, 284.9, 181.31, 292.0], "category_id": 25, "id": 600483}, {"segmentation": [[352.03, 460.41, 338.63, 452.16, 316.97, 429.47, 325.22, 420.19, 321.1, 375.85, 306.66, 328.42, 301.51, 295.42, 283.98, 286.14, 261.29, 266.55, 257.17, 261.4, 256.14, 255.21, 273.67, 254.18, 288.1, 260.36, 297.38, 261.4, 311.82, 263.46, 315.94, 277.89, 315.94, 288.21, 322.13, 315.02, 345.85, 359.36, 387.09, 399.57, 389.16, 400.6, 392.25, 460.41, 379.88, 461.44], [346.88, 483.09, 345.85, 519.19, 351.0, 542.9, 366.47, 591.37, 376.78, 578.99, 372.66, 527.43, 370.59, 511.97, 364.41, 504.75, 382.97, 510.94, 384.0, 543.93, 376.78, 572.81, 377.81, 591.37, 379.88, 594.46, 388.12, 589.3, 399.47, 550.12, 400.5, 517.12, 392.25, 493.41, 373.69, 482.06, 343.78, 481.03]], "area": 12629.242500000004, "iscrowd": 0, "image_id": 296816, "bbox": [256.14, 254.18, 144.36, 340.28], "category_id": 25, "id": 601010}, {"segmentation": [[53.22, 391.98, 51.32, 362.56, 60.81, 348.33, 74.09, 343.58, 78.84, 337.89, 88.33, 338.84, 98.76, 344.53, 112.05, 340.74, 109.2, 332.2, 119.64, 332.2, 124.38, 328.4, 120.59, 321.76, 129.13, 323.66, 133.87, 317.96, 148.1, 337.89, 158.54, 351.17, 135.77, 356.87, 124.38, 354.97, 100.66, 376.79, 107.3, 403.36, 104.46, 408.11], [63.66, 417.59, 71.25, 446.06, 66.5, 488.76, 69.35, 501.09, 74.09, 499.2, 78.84, 483.07, 74.09, 458.4, 83.58, 501.09, 80.74, 512.48, 87.38, 512.48, 91.17, 505.84, 93.07, 498.25, 94.02, 508.69, 104.46, 516.28, 103.51, 493.5, 98.76, 467.88, 100.66, 440.37, 97.81, 422.34, 87.38, 422.34, 72.2, 415.7]], "area": 6984.647800000004, "iscrowd": 0, "image_id": 296816, "bbox": [51.32, 317.96, 107.22, 198.32], "category_id": 25, "id": 601335}, {"segmentation": [[411.33, 609.8, 386.88, 419.96, 379.69, 336.54, 355.24, 327.91, 360.99, 322.16, 396.94, 314.97, 409.89, 360.99, 398.38, 360.99, 411.33, 396.94, 464.54, 427.15, 480.0, 463.1, 473.17, 608.36, 458.79, 592.54, 448.72, 517.75, 445.84, 488.99, 427.15, 506.25, 431.46, 604.04, 417.08, 604.04]], "area": 14591.232649999996, "iscrowd": 0, "image_id": 296816, "bbox": [355.24, 314.97, 124.76, 294.83], "category_id": 25, "id": 601442}, {"segmentation": [[218.61, 550.83, 195.6, 468.85, 218.61, 417.08, 235.87, 360.99, 234.43, 296.27, 227.24, 266.07, 232.99, 248.81, 248.81, 238.74, 247.37, 293.39, 243.06, 363.87, 240.18, 412.76, 266.07, 464.54, 287.64, 496.18, 293.39, 575.28, 247.37, 565.21, 220.04, 552.27]], "area": 12403.259149999998, "iscrowd": 0, "image_id": 296816, "bbox": [195.6, 238.74, 97.79, 336.54], "category_id": 25, "id": 601466}, {"segmentation": [[567.37, 224.03, 586.79, 234.82, 607.28, 260.7, 609.44, 286.59, 587.87, 295.22, 573.84, 318.95, 568.45, 320.03, 533.93, 380.43, 458.43, 437.6, 469.21, 469.96, 234.07, 471.04, 237.3, 453.78, 243.78, 434.37, 175.82, 353.47, 140.22, 291.99, 163.96, 273.65, 244.85, 299.54, 255.64, 318.95, 288.0, 306.01, 444.4, 302.77, 568.45, 276.88, 572.76, 233.74, 566.29, 227.27]], "area": 58025.629300000015, "iscrowd": 0, "image_id": 169111, "bbox": [140.22, 224.03, 469.22, 247.01], "category_id": 51, "id": 712799}, {"segmentation": [[271.67, 131.06, 283.0, 117.26, 303.7, 108.89, 311.09, 107.41, 319.47, 109.87, 327.85, 113.81, 334.25, 116.77, 344.11, 124.65, 350.02, 134.51, 355.44, 151.76, 355.93, 160.13, 348.54, 181.81, 345.59, 186.74, 343.12, 192.16, 336.22, 195.12, 326.86, 196.6, 320.95, 195.61, 313.06, 196.1, 301.24, 193.64, 293.35, 192.16, 283.0, 190.19, 274.13, 180.83, 269.7, 168.02, 268.22, 156.19, 270.69, 135.99]], "area": 6178.748500000001, "iscrowd": 0, "image_id": 169111, "bbox": [268.22, 107.41, 87.71, 89.19], "category_id": 53, "id": 1047213}, {"segmentation": [[461.92, 190.37, 493.23, 175.2, 505.47, 175.2, 523.08, 181.07, 534.34, 189.39, 543.14, 204.55, 548.04, 216.79, 548.53, 223.15, 546.08, 239.3, 542.16, 242.23, 532.38, 244.19, 527.97, 243.7, 524.55, 235.87, 517.7, 231.96, 506.45, 231.96, 504.0, 236.85, 494.7, 230.49, 489.81, 227.55, 483.94, 223.64, 471.22, 224.13, 476.6, 208.47, 469.75, 199.66, 457.03, 198.68]], "area": 3888.8832500000003, "iscrowd": 0, "image_id": 169111, "bbox": [457.03, 175.2, 91.5, 68.99], "category_id": 53, "id": 1049412}, {"segmentation": [[276.16, 334.81, 270.52, 349.49, 266.0, 367.56, 264.87, 378.85, 276.16, 398.05, 293.11, 407.09, 330.38, 415.0, 354.09, 401.44, 359.74, 368.69, 355.22, 335.94, 329.25, 341.58, 320.21, 337.07, 298.75, 329.16, 282.94, 326.9, 276.16, 326.9]], "area": 6402.598749999997, "iscrowd": 0, "image_id": 169111, "bbox": [264.87, 326.9, 94.87, 88.1], "category_id": 53, "id": 1049981}, {"segmentation": [[548.29, 226.84, 554.45, 229.01, 561.51, 235.9, 568.4, 243.87, 572.93, 256.91, 573.11, 265.25, 572.75, 270.14, 568.58, 272.32, 566.22, 265.97, 564.96, 262.89, 562.42, 260.36, 558.43, 259.27, 554.99, 259.27, 550.28, 260.18, 551.0, 254.38, 548.83, 251.48, 547.38, 248.58, 545.57, 246.59, 543.39, 245.32, 540.13, 244.96, 535.97, 244.96, 532.52, 244.96, 530.35, 246.41, 529.99, 243.87, 535.78, 243.69, 543.03, 241.51, 547.02, 238.07, 547.02, 233.54, 547.92, 228.29]], "area": 708.9658999999996, "iscrowd": 0, "image_id": 169111, "bbox": [529.99, 226.84, 43.12, 45.48], "category_id": 53, "id": 1050012}, {"segmentation": [[511.43, 176.4, 523.43, 172.18, 532.51, 172.83, 548.08, 178.67, 558.78, 186.78, 558.78, 187.75, 563.51, 193.9, 568.49, 201.94, 568.88, 214.97, 563.51, 226.84, 559.3, 232.97, 555.09, 229.91, 552.02, 228.76, 547.81, 226.46, 547.04, 214.97, 543.6, 203.09, 539.38, 196.97, 534.79, 191.22, 528.27, 185.86, 522.53, 182.79, 516.02, 179.73, 510.65, 177.81]], "area": 1385.0654500000005, "iscrowd": 0, "image_id": 169111, "bbox": [510.65, 172.18, 58.23, 60.79], "category_id": 53, "id": 1050260}, {"segmentation": [[389.97, 231.86, 385.89, 219.17, 391.79, 209.19, 400.86, 206.47, 412.19, 211.01, 420.81, 208.74, 428.06, 209.19, 430.33, 208.74, 432.14, 194.23, 428.97, 173.82, 417.18, 159.77, 408.11, 149.79, 390.43, 146.62, 370.02, 149.79, 356.42, 163.39, 347.35, 176.54, 344.18, 197.4, 348.71, 220.07, 360.5, 231.86, 371.38, 239.12, 386.8, 242.29, 392.24, 240.48, 394.51, 235.04]], "area": 5570.489250000001, "iscrowd": 0, "image_id": 169111, "bbox": [344.18, 146.62, 87.96, 95.67], "category_id": 55, "id": 1054540}, {"segmentation": [[232.79, 154.7, 231.09, 215.65, 209.93, 245.27, 320.82, 256.28, 326.75, 224.96, 329.29, 161.47]], "area": 9279.54885, "iscrowd": 0, "image_id": 357992, "bbox": [209.93, 154.7, 119.36, 101.58], "category_id": 73, "id": 1100519}, {"segmentation": [[450.51, 298.39, 472.23, 261.73, 468.16, 258.56, 472.23, 256.75, 487.17, 187.95, 486.26, 186.6, 383.52, 168.94, 383.07, 170.76, 365.87, 235.03, 366.78, 239.1, 338.26, 265.35, 338.26, 268.07, 449.6, 298.84]], "area": 12247.832849999999, "iscrowd": 0, "image_id": 357992, "bbox": [338.26, 168.94, 148.91, 129.9], "category_id": 73, "id": 1102637}, {"segmentation": [[376.98, 311.49, 383.46, 310.41, 387.16, 305.78, 389.79, 298.99, 390.09, 294.52, 386.39, 291.28, 381.45, 289.89, 377.13, 289.43, 373.27, 289.89, 370.03, 292.67, 368.03, 295.91, 366.02, 299.61, 365.41, 301.15, 366.02, 304.24, 368.18, 307.79, 370.96, 309.64, 374.05, 311.03, 377.29, 311.8]], "area": 411.6851000000005, "iscrowd": 0, "image_id": 357992, "bbox": [365.41, 289.43, 24.68, 22.37], "category_id": 74, "id": 1104865}, {"segmentation": [[186.96, 299.96, 330.76, 307.08, 329.83, 283.84, 329.83, 282.91, 194.71, 274.55, 186.04, 298.41]], "area": 3500.8691999999946, "iscrowd": 0, "image_id": 357992, "bbox": [186.04, 274.55, 144.72, 32.53], "category_id": 76, "id": 1118132}, {"segmentation": [[81.54, 310.74, 103.5, 298.3, 99.84, 274.14, 102.04, 269.39, 104.23, 268.29, 74.22, 259.14, 67.63, 262.07, 63.24, 263.16, 25.91, 281.46, 27.38, 289.88]], "area": 2561.37485, "iscrowd": 0, "image_id": 357992, "bbox": [25.91, 259.14, 78.32, 51.6], "category_id": 84, "id": 1141196}, {"segmentation": [[244.85, 245.6, 251.33, 252.07, 283.69, 238.05, 269.66, 227.27, 255.64, 239.13, 239.46, 245.6, 234.07, 267.18, 235.15, 288.75, 240.54, 296.3, 251.33, 296.3, 254.56, 289.83, 254.56, 276.88, 248.09, 261.78, 248.09, 257.47], [298.79, 219.72, 304.18, 224.03, 317.12, 188.43, 314.97, 187.36]], "area": 1335.8221999999998, "iscrowd": 0, "image_id": 97479, "bbox": [234.07, 187.36, 83.05, 108.94], "category_id": 31, "id": 1174009}, {"segmentation": [[337.53, 271.08, 330.6, 287.53, 311.55, 288.4, 268.25, 273.68, 259.59, 264.15, 263.05, 235.58, 270.85, 220.86, 261.32, 144.65, 276.91, 142.05, 277.78, 210.46, 320.21, 231.25, 332.33, 229.52, 339.26, 276.28]], "area": 5185.716249999997, "iscrowd": 0, "image_id": 205676, "bbox": [259.59, 142.05, 79.67, 146.35], "category_id": 31, "id": 1174011}, {"segmentation": [[47.18, 163.74, 42.59, 149.45, 45.65, 132.1, 46.67, 129.04, 27.28, 90.77, 12.99, 72.4, 16.56, 72.4, 51.26, 129.55, 55.34, 128.53, 51.26, 113.73, 56.36, 113.73, 58.91, 130.57, 66.57, 142.82, 63.91, 143.89, 66.73, 152.34, 54.99, 161.73]], "area": 796.7544999999993, "iscrowd": 0, "image_id": 450263, "bbox": [12.99, 72.4, 53.74, 91.34], "category_id": 31, "id": 1174501}, {"segmentation": [[138.77, 214.94, 129.85, 223.5, 120.92, 224.24, 111.25, 251.01, 113.86, 259.19, 133.57, 267.38, 135.8, 238.74, 139.89, 220.89], [156.25, 169.95, 156.25, 184.82, 155.88, 194.12, 153.65, 206.02, 152.16, 221.64, 150.3, 230.93, 148.81, 240.6, 145.09, 252.87, 142.86, 261.05, 140.63, 269.98, 148.07, 262.91, 151.04, 240.97, 154.02, 223.87, 157.36, 197.47, 159.6, 185.19, 164.8, 168.09, 160.34, 168.09]], "area": 1205.90135, "iscrowd": 0, "image_id": 205676, "bbox": [111.25, 168.09, 53.55, 101.89], "category_id": 31, "id": 1179151}, {"segmentation": [[30.41, 192.87, 33.21, 196.27, 29.41, 202.48, 28.81, 208.69, 24.8, 214.09, 20.8, 215.69, 26.4, 200.88, 24.4, 198.68, 16.59, 219.69, 13.19, 227.7, 9.39, 236.11, 10.59, 239.71, 13.99, 242.31, 30.41, 245.92, 34.81, 242.31, 40.82, 234.31, 39.21, 214.09, 32.61, 210.09, 34.01, 202.28, 35.21, 197.48]], "area": 898.4476499999998, "iscrowd": 0, "image_id": 205676, "bbox": [9.39, 192.87, 31.43, 53.05], "category_id": 31, "id": 1181822}, {"segmentation": [[436.88, 191.43, 478.32, 192.13, 483.58, 191.43, 480.42, 187.22, 477.61, 185.46, 475.51, 178.79, 466.02, 171.06, 456.89, 170.01, 432.31, 171.06, 428.8, 190.73, 430.2, 191.78]], "area": 955.7449500000001, "iscrowd": 0, "image_id": 27969, "bbox": [428.8, 170.01, 54.78, 22.12], "category_id": 8, "id": 1196706}, {"segmentation": [[177.76, 606.7, 180.2, 604.26, 186.5, 602.86, 192.79, 606.7, 195.94, 608.8, 195.94, 613.0, 196.64, 620.69, 199.09, 640.0, 166.56, 640.0, 163.77, 638.18, 163.77, 633.63, 164.47, 628.39, 170.76, 624.89, 172.16, 613.7]], "area": 960.4408499999993, "iscrowd": 0, "image_id": 296816, "bbox": [163.77, 602.86, 35.32, 37.14], "category_id": 1, "id": 1217212}, {"segmentation": [[543.3, 327.41, 545.63, 326.1, 549.69, 325.81, 552.31, 327.99, 552.74, 331.04, 552.16, 334.81, 552.16, 337.28, 555.79, 339.32, 556.23, 343.24, 555.94, 345.71, 553.47, 342.08, 553.03, 341.06, 550.85, 339.03, 549.26, 337.86, 547.08, 336.7, 545.63, 335.39, 546.35, 332.78, 546.64, 331.76, 546.35, 330.6, 545.77, 330.17, 544.75, 329.15, 543.3, 327.55], [552.27, 372.23, 554.98, 378.19, 558.23, 383.07, 560.4, 386.59, 560.67, 387.41, 560.4, 389.03, 557.69, 387.95, 556.34, 385.24, 552.81, 382.26, 550.64, 381.99, 548.48, 377.65, 548.75, 376.29, 550.64, 372.23]], "area": 171.2001999999993, "iscrowd": 0, "image_id": 315976, "bbox": [543.3, 325.81, 17.37, 63.22], "category_id": 1, "id": 1220137}, {"segmentation": [[274.06, 141.85, 279.84, 134.38, 283.21, 129.81, 287.07, 120.42, 292.12, 112.47, 303.92, 107.41, 315.96, 111.27, 321.5, 118.25, 322.71, 125.47, 321.5, 135.59, 323.91, 145.94, 323.19, 153.65, 327.04, 159.91, 330.89, 168.34, 329.93, 173.15, 335.47, 179.66, 341.01, 186.64, 343.66, 195.55, 344.38, 197.96, 352.09, 217.71, 355.7, 229.75, 355.94, 235.77, 354.01, 239.62, 372.31, 243.95, 376.89, 246.12, 381.47, 252.86, 380.26, 260.57, 376.41, 263.94, 374.96, 266.59, 373.76, 266.59, 380.26, 270.92, 386.52, 281.52, 393.75, 292.84, 395.19, 294.77, 394.47, 297.41, 415.42, 319.09, 422.64, 325.35, 431.8, 329.68, 443.6, 334.98, 451.3, 337.87, 454.19, 338.83, 457.08, 343.41, 453.47, 347.02, 440.71, 351.36, 432.04, 353.76, 427.46, 353.28, 422.16, 351.36, 415.9, 348.71, 407.47, 344.85, 405.55, 342.45, 403.86, 339.08, 402.18, 334.5, 400.73, 331.13, 397.36, 328.48, 392.06, 324.63, 385.8, 320.53, 380.02, 316.68, 376.17, 312.34, 368.94, 303.68, 367.26, 320.29, 358.11, 346.54, 342.69, 378.81, 340.05, 386.27, 346.31, 390.37, 361.0, 398.8, 365.09, 404.58, 367.5, 408.67, 361.96, 410.36, 348.23, 411.8, 339.32, 411.08, 328.49, 409.63, 321.74, 406.98, 316.93, 403.85, 316.21, 400.24, 317.41, 394.46, 318.85, 387.72, 321.5, 386.03, 326.32, 356.9, 327.04, 340.52, 331.62, 325.11, 335.23, 319.33, 334.99, 317.88, 320.54, 325.59, 292.36, 333.78, 276.71, 334.02, 267.32, 323.9, 256.24, 310.66, 250.22, 307.29, 248.05, 306.57, 242.28, 306.08, 234.81, 305.36, 236.01, 299.58, 239.14, 295.49, 239.14, 288.5, 238.9, 285.13, 234.57, 282.72, 234.33, 274.78, 239.14, 259.85, 241.31, 250.21, 244.2, 244.44, 253.11, 239.38, 257.45, 236.01, 258.65, 232.15, 260.82, 219.39, 257.93, 212.41, 257.93, 205.66, 255.52, 199.64, 255.76, 194.59, 259.61, 186.64, 260.58, 178.93, 266.12, 172.91, 270.21, 169.3, 273.82, 166.65, 278.88, 166.17, 280.08, 163.76, 280.32, 161.35, 277.92, 158.95, 277.43, 155.82, 274.54, 149.8, 273.82, 147.15]], "area": 24896.9615, "iscrowd": 0, "image_id": 97479, "bbox": [234.33, 107.41, 222.75, 304.39], "category_id": 1, "id": 1220149}, {"segmentation": [[197.08, 625.72, 200.05, 623.39, 204.51, 621.69, 206.84, 621.9, 209.81, 622.96, 212.79, 625.72, 213.42, 627.85, 214.06, 630.18, 214.27, 631.03, 214.49, 631.67, 214.7, 633.79, 214.7, 636.34, 214.91, 637.19, 215.33, 637.4, 214.7, 638.89, 214.49, 639.74, 214.49, 639.95, 199.62, 639.74]], "area": 265.50139999999993, "iscrowd": 0, "image_id": 296816, "bbox": [197.08, 621.69, 18.25, 18.26], "category_id": 1, "id": 1228828}, {"segmentation": [[138.83, 241.7, 140.15, 234.35, 141.47, 229.07, 141.1, 226.42, 140.91, 223.41, 142.42, 218.13, 142.04, 216.24, 142.61, 214.16, 144.49, 214.16, 144.68, 212.09, 146.0, 209.83, 148.26, 210.02, 148.26, 211.71, 148.26, 213.79, 147.51, 214.73, 149.58, 215.11, 153.17, 219.26, 149.58, 224.35, 148.45, 225.29, 149.02, 229.63, 148.64, 234.16, 148.45, 242.08, 146.19, 242.65, 146.0, 240.01, 146.94, 232.46, 145.06, 229.25, 143.36, 230.2, 142.42, 233.59, 142.23, 238.68, 141.1, 241.51]], "area": 206.26859999999968, "iscrowd": 0, "image_id": 299083, "bbox": [138.83, 209.83, 14.34, 32.82], "category_id": 1, "id": 1233745}, {"segmentation": [[109.09, 151.77, 107.88, 143.8, 105.23, 141.15, 102.33, 139.22, 104.26, 133.18, 106.19, 129.56, 107.16, 125.46, 109.57, 123.53, 115.36, 122.8, 118.26, 125.46, 119.23, 128.11, 119.95, 131.25, 120.43, 134.39, 120.43, 136.56, 121.4, 149.11, 122.12, 153.46, 118.74, 153.46, 118.74, 149.84, 118.98, 146.46, 117.78, 142.11, 116.09, 140.66, 113.92, 144.04, 113.92, 148.15, 113.92, 151.77, 112.23, 153.46]], "area": 363.3566000000003, "iscrowd": 0, "image_id": 427133, "bbox": [102.33, 122.8, 19.79, 30.66], "category_id": 1, "id": 1234542}, {"segmentation": [[92.24, 346.9, 89.11, 350.03, 80.75, 349.51, 79.18, 345.85, 79.7, 340.63, 79.7, 305.11, 79.18, 287.35, 70.82, 285.79, 69.26, 281.61, 75.53, 271.68, 72.91, 265.41, 78.14, 252.36, 69.26, 244.52, 66.65, 232.51, 71.35, 219.97, 79.7, 202.74, 89.11, 198.56, 92.24, 198.56, 92.24, 193.33, 91.19, 189.68, 86.49, 187.59, 87.54, 179.23, 89.63, 178.19, 91.19, 170.35, 99.55, 163.56, 110.52, 164.61, 115.22, 167.22, 117.31, 177.14, 116.27, 185.5, 116.79, 187.07, 113.65, 193.33, 115.74, 199.08, 118.36, 199.6, 118.88, 202.21, 126.19, 204.83, 128.28, 229.37, 130.37, 237.21, 127.24, 241.39, 124.1, 244.52, 127.24, 249.74, 125.67, 263.85, 118.36, 278.99, 111.57, 283.7, 110.52, 289.96, 110.52, 299.37, 107.39, 316.6, 105.3, 323.91, 105.3, 334.36, 104.25, 347.94, 99.03, 351.08, 94.33, 350.03]], "area": 7144.3678500000005, "iscrowd": 0, "image_id": 193936, "bbox": [66.65, 163.56, 63.72, 187.52], "category_id": 1, "id": 1235266}, {"segmentation": [[518.23, 112.02, 508.01, 111.46, 502.49, 113.95, 502.49, 121.13, 502.49, 127.48, 500.55, 131.9, 494.75, 137.15, 485.64, 141.84, 482.6, 145.99, 483.98, 152.34, 493.37, 169.46, 494.75, 169.46, 501.38, 157.03, 504.97, 142.4, 504.97, 130.24, 509.39, 125.0, 517.95, 120.58, 519.06, 118.64], [541.7, 147.92, 554.69, 154.55, 558.28, 156.2, 558.55, 162.56, 554.13, 163.11, 543.91, 161.73, 537.56, 159.24, 538.39, 151.51, 538.94, 146.26], [546.12, 218.9, 551.09, 223.87, 557.45, 223.04, 565.18, 215.86, 561.59, 212.54, 551.92, 209.23, 546.95, 200.67, 546.12, 198.46]], "area": 1160.1759500000007, "iscrowd": 0, "image_id": 503790, "bbox": [482.6, 111.46, 82.58, 112.41], "category_id": 1, "id": 1237235}, {"segmentation": [[292.45, 299.12, 295.92, 295.22, 293.31, 286.55, 293.31, 278.75, 293.31, 273.98, 292.45, 272.68, 290.71, 267.91, 289.85, 261.84, 290.28, 257.07, 292.45, 252.74, 294.18, 251.0, 294.18, 247.97, 295.48, 246.23, 298.52, 243.2, 303.29, 244.5, 304.59, 247.53, 304.59, 251.87, 310.66, 258.81, 311.09, 264.44, 311.09, 270.08, 310.66, 275.28, 315.42, 278.32, 316.29, 283.95, 314.99, 285.25, 308.05, 280.48, 304.59, 293.92, 304.59, 296.96, 307.19, 299.56, 305.89, 302.16, 292.88, 300.42]], "area": 896.3928500000003, "iscrowd": 0, "image_id": 376177, "bbox": [289.85, 243.2, 26.44, 58.96], "category_id": 1, "id": 1242061}, {"segmentation": [[510.44, 168.53, 515.59, 158.22, 511.81, 152.72, 509.41, 148.25, 508.03, 139.32, 512.5, 134.16, 516.97, 132.1, 510.78, 124.19, 513.88, 117.66, 520.75, 115.94, 524.53, 118.35, 525.22, 129.35, 531.75, 133.13, 537.59, 140.69, 540.34, 145.5, 537.59, 151.35, 526.94, 156.85, 515.94, 168.19, 510.44, 169.91]], "area": 903.9991000000011, "iscrowd": 0, "image_id": 205676, "bbox": [508.03, 115.94, 32.31, 53.97], "category_id": 1, "id": 1242293}, {"segmentation": [[595.42, 298.79, 555.51, 292.31, 554.43, 290.16, 578.16, 285.84, 604.04, 211.42, 595.42, 176.9, 608.36, 129.44, 621.3, 120.81, 606.2, 98.16, 612.67, 78.74, 636.4, 75.51, 639.64, 77.66, 634.25, 242.7, 640.0, 310.65, 632.09, 306.34, 634.25, 282.61, 615.91, 243.78, 599.73, 281.53, 598.65, 299.87]], "area": 7350.476650000004, "iscrowd": 0, "image_id": 427133, "bbox": [554.43, 75.51, 85.57, 235.14], "category_id": 1, "id": 1242686}, {"segmentation": [[638.13, 145.73, 607.57, 146.22, 609.52, 133.7, 612.12, 130.77, 619.76, 127.36, 616.35, 125.9, 613.75, 121.18, 611.14, 113.7, 614.72, 108.5, 622.04, 106.06, 626.75, 106.39, 630.98, 111.91, 630.33, 118.09, 632.44, 125.9, 633.09, 127.68, 638.79, 127.52, 640.0, 132.4, 639.92, 146.71]], "area": 895.9389, "iscrowd": 0, "image_id": 205676, "bbox": [607.57, 106.06, 32.43, 40.65], "category_id": 1, "id": 1243874}, {"segmentation": [[579.64, 394.58, 579.64, 390.19, 578.03, 387.99, 578.03, 382.27, 578.18, 379.05, 579.93, 377.73, 582.57, 378.76, 584.62, 380.66, 584.62, 384.18, 583.74, 386.67, 584.04, 391.8, 585.21, 395.9, 580.96, 396.05]], "area": 96.4896500000004, "iscrowd": 0, "image_id": 465735, "bbox": [578.03, 377.73, 7.18, 18.32], "category_id": 1, "id": 1255115}, {"segmentation": [[1.39, 163.55, 5.62, 156.04, 8.43, 148.05, 16.88, 140.54, 28.62, 137.72, 32.85, 141.48, 20.17, 144.77, 33.32, 144.77, 33.79, 149.46, 30.97, 154.63, 34.72, 155.1, 26.74, 160.26, 18.29, 170.12, 0.92, 177.63, 0.92, 162.14]], "area": 741.4258499999999, "iscrowd": 0, "image_id": 169111, "bbox": [0.92, 137.72, 33.8, 39.91], "category_id": 1, "id": 1258868}, {"segmentation": [[309.57, 88.33, 314.69, 85.05, 323.29, 83.82, 329.64, 85.66, 334.35, 90.78, 337.42, 96.93, 337.01, 101.44, 333.74, 104.92, 332.92, 107.99, 331.28, 109.22, 332.1, 111.06, 333.94, 113.11, 329.02, 113.11, 324.72, 111.06, 319.4, 109.63, 314.69, 109.83, 309.57, 108.81, 310.38, 105.53, 309.57, 101.84, 308.54, 97.13, 306.7, 95.5, 309.16, 93.65, 309.77, 91.4]], "area": 642.9680500000003, "iscrowd": 0, "image_id": 169111, "bbox": [306.7, 83.82, 30.72, 29.29], "category_id": 1, "id": 1263372}, {"segmentation": [[176.84, 264.4, 165.68, 288.43, 163.96, 351.1, 147.65, 364.83, 127.91, 354.53, 131.34, 344.23, 130.48, 301.31, 127.91, 275.56, 127.91, 257.53, 129.62, 234.35, 125.33, 215.47, 124.47, 203.45, 138.21, 194.86, 145.07, 188.85, 142.5, 175.12, 148.51, 161.38, 168.25, 168.25, 169.11, 189.71, 180.27, 200.01, 181.13, 218.04, 175.12, 229.2]], "area": 7679.902550000001, "iscrowd": 0, "image_id": 193936, "bbox": [124.47, 161.38, 56.66, 203.45], "category_id": 1, "id": 1266380}, {"segmentation": [[206.74, 134.83, 208.06, 129.57, 209.18, 126.93, 214.45, 124.87, 214.64, 123.17, 214.45, 120.35, 214.45, 117.34, 216.52, 115.27, 218.78, 114.9, 222.54, 116.21, 223.67, 118.1, 224.23, 121.86, 224.42, 125.43, 223.67, 127.87, 225.36, 129.57, 227.43, 131.45, 228.93, 132.76, 226.3, 134.83, 225.55, 135.4, 223.48, 134.27, 218.78, 134.08, 217.08, 135.02, 214.64, 137.65, 210.5, 139.53, 209.94, 140.29, 210.69, 142.73, 212.57, 145.93, 211.82, 149.69, 211.44, 156.65, 205.99, 156.65]], "area": 381.1536999999999, "iscrowd": 0, "image_id": 427133, "bbox": [205.99, 114.9, 22.94, 41.75], "category_id": 1, "id": 1269390}, {"segmentation": [[168.3, 226.83, 167.87, 224.78, 167.65, 221.7, 167.22, 220.83, 166.95, 219.65, 167.76, 218.51, 168.57, 217.86, 168.57, 215.27, 168.89, 214.94, 169.32, 214.94, 169.87, 215.05, 170.73, 215.86, 171.38, 217.0, 172.35, 217.7, 172.68, 217.97, 173.22, 218.62, 173.32, 219.38, 173.16, 221.0, 173.11, 221.48, 173.16, 222.67, 172.95, 223.05, 171.32, 223.75, 171.11, 223.86, 171.27, 224.56, 171.43, 225.75, 171.38, 226.46, 170.3, 226.73, 169.6, 226.73, 169.0, 227.0]], "area": 49.59310000000001, "iscrowd": 0, "image_id": 299083, "bbox": [166.95, 214.94, 6.37, 12.06], "category_id": 1, "id": 1272693}, {"segmentation": [[246.37, 356.25, 248.94, 321.91, 248.09, 309.03, 246.37, 287.57, 243.79, 280.71, 240.36, 260.96, 234.35, 225.77, 239.5, 214.61, 250.66, 200.87, 244.65, 196.58, 242.93, 187.14, 248.09, 179.41, 254.09, 173.4, 260.96, 166.53, 275.56, 170.83, 278.13, 181.99, 277.27, 198.3, 277.27, 211.17, 291.01, 231.78, 281.56, 285.86, 279.85, 345.95, 266.97, 358.82, 256.67, 363.11]], "area": 7086.41515, "iscrowd": 0, "image_id": 193936, "bbox": [234.35, 166.53, 56.66, 196.58], "category_id": 1, "id": 1292740}, {"segmentation": [[182.4, 206.92, 178.09, 187.13, 180.68, 163.04, 188.42, 151.85, 189.28, 136.37, 189.28, 127.76, 199.6, 124.32, 212.51, 125.18, 215.09, 139.81, 218.53, 157.88, 229.72, 163.9, 239.18, 208.64, 232.3, 204.34, 224.55, 170.78, 208.21, 167.34, 199.6, 165.62, 193.58, 184.55, 196.16, 192.29, 185.84, 206.92]], "area": 2135.2470999999996, "iscrowd": 0, "image_id": 193936, "bbox": [178.09, 124.32, 61.09, 84.32], "category_id": 1, "id": 1293089}, {"segmentation": [[340.12, 208.63, 336.29, 223.93, 335.44, 237.12, 340.54, 237.12, 340.97, 247.74, 340.97, 253.7, 343.94, 271.13, 345.22, 282.18, 346.92, 289.84, 350.32, 300.04, 353.3, 309.39, 355.42, 318.32, 351.6, 326.83, 347.34, 332.78, 346.49, 339.16, 348.62, 343.41, 353.3, 345.96, 357.97, 344.68, 361.38, 337.03, 362.23, 333.2, 365.2, 342.98, 365.2, 350.64, 366.9, 351.49, 370.73, 351.49, 377.53, 350.64, 379.23, 346.38, 379.23, 340.01, 379.23, 332.78, 377.11, 326.83, 375.41, 322.15, 373.28, 319.17, 371.15, 315.35, 380.08, 312.8, 387.74, 300.89, 389.01, 295.36, 393.69, 287.71, 394.11, 276.66, 394.11, 270.28, 394.54, 264.33, 398.37, 255.82, 400.07, 251.15, 400.49, 246.47, 400.07, 234.14, 397.09, 226.49, 393.69, 216.28, 393.69, 211.18, 393.69, 209.9, 388.59, 204.14, 380.08, 200.74, 377.53, 199.04, 378.38, 195.63, 382.21, 190.53, 380.51, 186.28, 380.08, 182.03, 380.08, 177.35, 378.81, 173.53, 375.41, 171.4, 373.28, 169.27, 368.6, 168.0, 362.65, 168.0, 358.4, 170.98, 355.85, 174.8, 354.15, 180.75, 352.02, 184.16, 352.45, 189.68, 355.42, 194.36, 355.85, 198.61, 355.42, 201.16, 350.32, 202.86, 343.52, 206.26]], "area": 7331.9073499999995, "iscrowd": 0, "image_id": 193936, "bbox": [335.44, 168.0, 65.05, 183.49], "category_id": 1, "id": 1294974}, {"segmentation": [[48.03, 131.87, 51.87, 128.99, 55.71, 127.65, 62.24, 126.3, 64.54, 127.07, 64.54, 127.07, 64.16, 122.27, 61.47, 119.2, 56.48, 117.47, 51.1, 117.85, 47.65, 120.35, 46.3, 124.38, 44.96, 128.61, 44.96, 131.3, 45.92, 133.79]], "area": 180.39150000000012, "iscrowd": 0, "image_id": 205676, "bbox": [44.96, 117.47, 19.58, 16.32], "category_id": 1, "id": 1304481}, {"segmentation": [[248.43, 128.06, 248.97, 122.25, 250.73, 121.84, 250.59, 119.54, 249.78, 115.9, 249.24, 111.44, 250.86, 107.11, 255.73, 105.76, 259.11, 106.98, 261.0, 114.14, 259.65, 119.14, 267.08, 121.84, 270.32, 128.6, 275.46, 134.82, 277.62, 140.63, 277.76, 145.9, 275.46, 146.57, 275.59, 149.41, 276.41, 154.14, 275.05, 158.19, 272.35, 158.33, 271.14, 152.92, 271.0, 148.33, 269.92, 147.38, 268.43, 149.95, 264.51, 150.49, 262.62, 149.82, 261.0, 147.79, 255.86, 144.95, 252.49, 146.84, 251.27, 150.49, 250.59, 154.14, 250.59, 156.17, 250.32, 157.38, 248.97, 157.25, 247.35, 154.27, 247.22, 150.76, 248.03, 143.06, 248.84, 136.98, 248.43, 132.52]], "area": 904.6641999999994, "iscrowd": 0, "image_id": 427133, "bbox": [247.22, 105.76, 30.54, 52.57], "category_id": 1, "id": 1307288}, {"segmentation": [[310.58, 150.45, 306.69, 148.29, 302.37, 149.58, 298.05, 149.15, 297.19, 142.24, 299.4, 134.69, 303.99, 132.99, 306.01, 131.63, 304.87, 126.72, 305.25, 121.83, 306.19, 117.13, 310.7, 116.0, 313.15, 116.76, 316.91, 121.64, 316.53, 125.59, 315.97, 128.41, 315.03, 129.17, 316.53, 131.99, 317.47, 134.43, 318.79, 135.18, 318.79, 139.89, 320.48, 144.02, 323.87, 147.22, 322.55, 148.91, 318.6, 148.35, 316.34, 147.41, 317.1, 149.67, 312.39, 152.86, 310.51, 150.42]], "area": 533.5303500000002, "iscrowd": 0, "image_id": 427133, "bbox": [297.19, 116.0, 26.68, 36.86], "category_id": 1, "id": 1312368}, {"segmentation": [[564.13, 218.97, 538.25, 216.81, 537.17, 206.02, 541.48, 188.76, 545.8, 176.9, 556.58, 175.82, 559.82, 184.45, 567.37, 189.84, 566.29, 208.18]], "area": 1005.2547500000007, "iscrowd": 0, "image_id": 427133, "bbox": [537.17, 175.82, 30.2, 43.15], "category_id": 1, "id": 1317047}, {"segmentation": [[420.31, 130.36, 419.49, 128.73, 419.22, 126.82, 419.49, 125.73, 419.49, 125.45, 420.03, 124.91, 421.4, 123.82, 424.4, 122.18, 424.95, 121.91, 426.31, 123.0, 430.4, 134.73, 428.22, 136.91, 427.95, 137.18, 429.04, 137.18, 430.13, 137.46, 431.22, 138.82, 434.77, 141.82, 434.77, 146.46, 434.77, 148.1, 434.22, 150.82, 433.95, 151.1, 433.13, 152.73, 431.49, 151.92, 427.67, 153.28, 426.58, 156.28, 425.76, 156.28, 421.4, 152.73, 421.13, 139.64, 417.31, 136.09]], "area": 341.32775, "iscrowd": 0, "image_id": 427133, "bbox": [417.31, 121.91, 17.46, 34.37], "category_id": 1, "id": 1322988}, {"segmentation": [[469.13, 142.37, 474.21, 142.37, 475.15, 139.93, 475.15, 139.17, 475.15, 133.72, 476.09, 127.89, 481.17, 126.57, 483.99, 132.78, 485.31, 137.67, 488.13, 139.74, 491.33, 142.56, 493.77, 149.52, 496.4, 154.78, 495.27, 156.85, 492.83, 158.36, 491.7, 154.59, 490.39, 153.09, 486.25, 153.09, 482.3, 151.21, 481.17, 151.77, 481.73, 154.03, 479.67, 151.77, 478.35, 153.09, 477.79, 154.97, 476.47, 162.31, 473.46, 162.87, 472.33, 158.73, 472.9, 153.65, 471.96, 149.89]], "area": 440.7392000000009, "iscrowd": 0, "image_id": 427133, "bbox": [469.13, 126.57, 27.27, 36.3], "category_id": 1, "id": 1325928}, {"segmentation": [[486.79, 135.79, 485.58, 130.48, 488.72, 126.62, 491.38, 118.65, 498.37, 118.17, 503.93, 125.89, 504.65, 132.65, 504.65, 138.2, 499.58, 144.72, 500.55, 145.93, 499.82, 150.51, 498.37, 151.24, 492.34, 145.2, 492.34, 145.2]], "area": 408.71029999999956, "iscrowd": 0, "image_id": 427133, "bbox": [485.58, 118.17, 19.07, 33.07], "category_id": 1, "id": 1331450}, {"segmentation": [[503.44, 208.11, 504.67, 206.65, 504.85, 206.28, 504.85, 205.06, 504.61, 203.22, 505.1, 196.13, 506.32, 193.44, 510.85, 189.34, 511.89, 188.18, 511.89, 185.79, 514.15, 179.55, 517.57, 178.02, 521.3, 179.67, 523.14, 181.63, 523.38, 184.44, 522.41, 190.26, 522.28, 190.32, 525.65, 192.89, 527.18, 196.37, 527.54, 200.71, 528.52, 207.56, 531.21, 209.4, 533.84, 211.72, 535.56, 213.25, 537.39, 215.64, 536.78, 216.98, 531.09, 218.15, 524.79, 217.11, 517.51, 215.94, 504.61, 216.8, 503.08, 215.33, 502.1, 213.99, 501.67, 212.09, 501.67, 211.17, 502.53, 208.79]], "area": 779.9460999999991, "iscrowd": 0, "image_id": 427133, "bbox": [501.67, 178.02, 35.72, 40.13], "category_id": 1, "id": 1332680}, {"segmentation": [[270.19, 212.08, 291.04, 214.27, 299.09, 205.13, 297.99, 183.54, 291.41, 177.69, 291.04, 168.91, 287.02, 165.25, 280.8, 165.25, 276.04, 170.01, 279.7, 178.42, 272.75, 186.83, 272.38, 198.54, 268.73, 208.42]], "area": 1030.3648500000004, "iscrowd": 0, "image_id": 427133, "bbox": [268.73, 165.25, 30.36, 49.02], "category_id": 1, "id": 1332846}, {"segmentation": [[459.23, 375.0, 460.56, 387.57, 464.97, 387.79, 468.72, 390.22, 471.15, 395.29, 472.25, 406.33, 469.38, 410.96, 466.07, 412.95, 461.22, 412.95, 457.69, 409.19, 458.13, 406.77, 458.13, 399.93, 458.13, 395.29, 457.91, 390.22], [435.84, 379.19, 434.08, 381.84, 433.42, 383.38, 429.23, 386.03, 427.24, 391.99, 424.37, 398.6, 426.8, 405.22, 430.55, 411.4, 439.37, 406.11, 440.26, 397.06, 440.04, 391.1, 438.49, 385.37]], "area": 647.4444499999993, "iscrowd": 0, "image_id": 315976, "bbox": [424.37, 375.0, 47.88, 37.95], "category_id": 2, "id": 1335257}, {"segmentation": [[309.16, 219.56, 333.01, 223.53, 329.43, 231.48, 316.71, 229.89, 310.35, 230.69, 305.58, 226.71]], "area": 221.65294999999972, "iscrowd": 0, "image_id": 450263, "bbox": [305.58, 219.56, 27.43, 11.92], "category_id": 2, "id": 1336325}, {"segmentation": [[64.51, 286.84, 64.51, 299.73, 88.34, 306.17, 106.38, 303.59, 116.04, 293.93, 125.7, 290.71, 124.42, 281.04, 116.04, 270.74, 99.94, 275.25, 89.63, 276.54, 76.75, 279.11, 71.59, 284.91]], "area": 1454.0387499999995, "iscrowd": 0, "image_id": 484754, "bbox": [64.51, 270.74, 61.19, 35.43], "category_id": 3, "id": 1339220}, {"segmentation": [[90.48, 176.34, 85.54, 163.15, 83.89, 160.51, 83.89, 156.89, 82.57, 155.24, 80.92, 150.62, 81.91, 148.31, 82.9, 147.98, 83.23, 132.16, 87.19, 126.22, 113.56, 124.9, 120.82, 126.22, 126.75, 132.82, 127.74, 134.79, 121.81, 137.1, 115.21, 148.97, 113.56, 152.27, 112.58, 157.88, 109.94, 163.81, 106.64, 171.72, 103.01, 171.72, 102.68, 175.02]], "area": 1541.1357, "iscrowd": 0, "image_id": 205676, "bbox": [80.92, 124.9, 46.82, 51.44], "category_id": 3, "id": 1353581}, {"segmentation": [[134.75, 264.86, 143.68, 265.61, 145.29, 267.87, 147.44, 268.62, 147.98, 272.39, 147.98, 273.78, 146.58, 275.83, 146.69, 279.7, 144.21, 279.38, 140.67, 278.95, 140.02, 276.79, 133.68, 277.01, 133.68, 278.84, 128.09, 278.52, 127.55, 275.18, 127.87, 270.77, 128.52, 268.73, 130.56, 268.09, 131.96, 265.08]], "area": 235.6272499999997, "iscrowd": 0, "image_id": 113333, "bbox": [127.55, 264.86, 20.43, 14.84], "category_id": 8, "id": 1367833}, {"segmentation": [[501.02, 384.59, 501.12, 379.86, 504.06, 379.34, 506.9, 378.08, 510.16, 375.24, 519.09, 375.24, 522.24, 377.76, 526.02, 380.92, 529.49, 382.18, 530.85, 383.23, 530.85, 383.54, 520.56, 383.54, 518.04, 384.28, 518.25, 385.22, 517.09, 389.25, 515.52, 388.73, 514.99, 387.47, 505.54, 386.94, 504.7, 389.15, 503.85, 389.67, 502.49, 389.36, 501.86, 388.2, 501.44, 387.04]], "area": 241.51505000000037, "iscrowd": 0, "image_id": 465735, "bbox": [501.02, 375.24, 29.83, 14.43], "category_id": 8, "id": 1367955}, {"segmentation": [[32.64, 225.34, 66.73, 224.97, 73.45, 224.47, 75.82, 224.47, 82.04, 226.84, 85.89, 230.69, 86.02, 237.16, 79.42, 244.01, 69.22, 244.63, 53.05, 243.51, 28.17, 246.12, 24.06, 245.25, 20.08, 243.51, 17.84, 236.91, 19.33, 226.46]], "area": 1253.6867499999996, "iscrowd": 0, "image_id": 226801, "bbox": [17.84, 224.47, 68.18, 21.65], "category_id": 8, "id": 1368156}, {"segmentation": [[161.35, 211.37, 173.94, 208.46, 179.75, 203.62, 194.04, 203.38, 195.49, 206.28, 209.77, 205.31, 215.1, 209.19, 216.07, 215.72, 208.32, 216.21, 208.08, 219.84, 206.62, 222.02, 203.48, 222.5, 200.81, 222.02, 198.64, 221.78, 197.18, 218.63, 176.12, 218.39, 174.91, 221.78, 173.22, 222.99, 169.58, 222.74, 165.95, 222.74, 165.47, 220.32, 162.08, 219.11, 159.42, 216.93, 157.96, 213.79, 158.45, 212.58, 160.38, 212.58]], "area": 737.4484, "iscrowd": 0, "image_id": 226801, "bbox": [157.96, 203.38, 58.11, 19.61], "category_id": 8, "id": 1368234}, {"segmentation": [[487.5, 375.35, 488.62, 373.92, 492.6, 373.92, 492.92, 373.76, 493.08, 375.67, 491.96, 376.63, 491.16, 376.63, 492.76, 378.38, 495.31, 378.54, 498.33, 379.49, 499.29, 380.29, 500.4, 381.72, 500.88, 383.31, 501.2, 385.23, 501.04, 386.66, 500.08, 388.41, 499.29, 388.89, 498.81, 389.05, 496.9, 388.73, 496.26, 387.3, 495.78, 386.66, 493.39, 386.82, 491.64, 387.3, 491.16, 387.77, 490.53, 387.93, 490.37, 385.7, 489.41, 385.7, 488.94, 386.5, 488.3, 387.14, 487.66, 389.21, 487.34, 389.68, 485.75, 389.68, 484.95, 388.73, 484.64, 388.09, 484.48, 387.14, 484.0, 385.54, 483.84, 383.63, 483.36, 377.58, 483.36, 376.79, 485.59, 376.15], [478.43, 379.81, 475.4, 382.68, 474.92, 385.07, 479.06, 385.23, 480.5, 385.23, 480.81, 381.24, 480.81, 379.65]], "area": 208.68705000000006, "iscrowd": 0, "image_id": 465735, "bbox": [474.92, 373.76, 26.28, 15.92], "category_id": 8, "id": 1373052}, {"segmentation": [[191.55, 92.6, 193.4, 87.07, 201.8, 87.28, 201.8, 86.25, 204.05, 86.25, 204.05, 88.51, 221.46, 90.96, 221.46, 95.67]], "area": 160.76425, "iscrowd": 0, "image_id": 450263, "bbox": [191.55, 86.25, 29.91, 9.42], "category_id": 9, "id": 1374536}, {"segmentation": [[133.97, 102.5, 117.85, 105.14, 109.65, 106.16, 101.44, 97.96, 108.18, 96.2, 113.89, 96.35, 123.42, 98.69, 133.24, 98.69]], "area": 201.8358, "iscrowd": 0, "image_id": 450263, "bbox": [101.44, 96.2, 32.53, 9.96], "category_id": 9, "id": 1375025}, {"segmentation": [[125.71, 203.02, 130.74, 204.74, 129.45, 216.23, 125.28, 214.93, 125.71, 203.16]], "area": 55.08849999999997, "iscrowd": 0, "image_id": 113333, "bbox": [125.28, 203.02, 5.46, 13.21], "category_id": 10, "id": 1386398}, {"segmentation": [[223.76, 282.66, 222.62, 283.64, 221.99, 284.67, 222.21, 286.22, 223.02, 287.42, 223.02, 291.78, 225.71, 291.73, 225.94, 287.42, 226.75, 285.99, 226.98, 284.9, 226.86, 283.93, 226.75, 282.26, 226.17, 281.8, 224.51, 281.46]], "area": 34.721599999999974, "iscrowd": 0, "image_id": 113333, "bbox": [221.99, 281.46, 4.99, 10.32], "category_id": 11, "id": 1388194}, {"segmentation": [[33.51, 43.78, 56.22, 104.32, 65.95, 115.14, 75.68, 127.03, 83.24, 145.41, 97.3, 145.41, 100.54, 176.76, 92.97, 201.62, 92.97, 224.32, 31.35, 236.22, 2.16, 220.0, 0.0, 36.22, 14.05, 37.3, 30.27, 48.11]], "area": 13674.930649999998, "iscrowd": 0, "image_id": 271900, "bbox": [0.0, 36.22, 100.54, 200.0], "category_id": 20, "id": 1405344}, {"segmentation": [[92.47, 239.18, 92.47, 241.47, 94.5, 242.42, 96.66, 243.91, 98.96, 245.66, 100.31, 246.61, 101.93, 249.04, 103.29, 250.8, 103.29, 251.34, 103.69, 252.15, 101.66, 253.51, 98.69, 254.05, 95.45, 254.05, 91.8, 254.05, 89.23, 253.91, 85.44, 253.78, 82.87, 253.51, 79.63, 253.51, 77.6, 253.37, 78.95, 251.75, 80.44, 249.86, 81.12, 248.91, 82.2, 247.96, 83.68, 247.69, 85.17, 247.83, 85.85, 247.83, 86.12, 247.83, 86.12, 246.34, 85.85, 244.31, 85.98, 243.23, 87.74, 242.56, 89.09, 242.15, 89.77, 241.74, 89.77, 240.53, 89.9, 238.9, 91.25, 238.5, 92.2, 238.63]], "area": 213.0348, "iscrowd": 0, "image_id": 183181, "bbox": [77.6, 238.5, 26.09, 15.55], "category_id": 20, "id": 1405425}, {"segmentation": [[123.59, 131.1, 127.91, 126.26, 133.79, 126.08, 137.59, 120.55, 144.16, 123.66, 146.06, 126.08, 141.91, 126.26, 140.7, 132.65], [122.38, 134.55, 123.24, 142.33, 122.03, 145.1, 122.03, 145.1, 132.23, 145.96, 134.31, 143.02, 138.45, 142.68, 137.76, 144.75, 144.5, 146.13, 144.16, 144.23, 146.4, 143.02, 145.71, 136.97, 122.9, 134.03], [143.47, 128.16, 146.4, 128.16, 145.54, 133.17, 142.78, 133.17, 142.43, 127.64, 143.47, 128.33], [153.32, 119.69, 154.87, 124.53, 159.19, 124.7, 159.19, 124.7, 159.89, 122.97, 163.0, 123.32, 160.58, 126.95, 161.27, 133.52, 158.16, 133.86, 157.47, 126.95, 152.97, 126.43, 151.76, 118.48, 152.97, 119.17], [121.34, 147.34, 119.96, 150.28, 119.96, 150.28, 119.79, 158.75, 122.21, 158.92, 122.55, 152.01, 126.53, 151.49, 128.77, 156.33, 129.64, 159.27, 131.89, 159.27, 129.98, 151.84, 132.58, 147.86, 132.06, 147.34, 120.48, 147.0], [136.55, 147.69, 138.11, 152.36, 138.11, 159.27, 141.74, 160.31, 146.06, 159.96, 146.06, 159.96, 142.95, 156.68, 144.33, 151.15, 144.33, 147.69, 136.73, 147.69, 136.73, 147.69]], "area": 584.5751000000001, "iscrowd": 0, "image_id": 296816, "bbox": [119.79, 118.48, 43.21, 41.83], "category_id": 21, "id": 1408003}, {"segmentation": [[286.18, 280.47, 285.28, 277.39, 284.92, 274.68, 285.46, 272.87, 286.55, 271.06, 287.99, 269.25, 289.62, 266.89, 290.89, 267.44, 294.15, 269.07, 294.15, 272.32, 294.15, 274.32, 293.61, 278.84, 290.71, 279.38, 288.72, 280.29, 287.63, 281.01]], "area": 94.96644999999988, "iscrowd": 0, "image_id": 376177, "bbox": [284.92, 266.89, 9.23, 14.12], "category_id": 31, "id": 1430503}, {"segmentation": [[540.86, 338.86, 542.51, 343.14, 544.65, 351.22, 546.96, 357.98, 548.77, 361.94, 550.26, 362.77, 551.25, 363.1, 552.73, 359.14, 553.72, 361.78, 554.71, 366.39, 554.22, 370.68, 552.73, 372.83, 545.81, 375.13, 544.65, 372.66, 545.48, 365.74, 542.84, 357.49, 540.53, 345.12, 539.21, 339.35]], "area": 180.88545, "iscrowd": 0, "image_id": 315976, "bbox": [539.21, 338.86, 15.5, 36.27], "category_id": 31, "id": 1432168}, {"segmentation": [[528.9, 131.57, 531.79, 132.67, 534.27, 141.48, 536.05, 151.25, 534.27, 153.04, 533.16, 153.32, 531.1, 139.69]], "area": 58.73169999999945, "iscrowd": 0, "image_id": 205676, "bbox": [528.9, 131.57, 7.15, 21.75], "category_id": 31, "id": 1434316}, {"segmentation": [[51.97, 338.73, 50.94, 348.37, 57.92, 354.53, 64.27, 354.12, 73.71, 348.17, 77.4, 338.94, 75.35, 334.22, 65.71, 331.35, 55.86, 332.17]], "area": 460.9820999999994, "iscrowd": 0, "image_id": 284043, "bbox": [50.94, 331.35, 26.46, 23.18], "category_id": 37, "id": 1460469}, {"segmentation": [[144.52, 175.68, 153.83, 175.68, 153.58, 174.92, 143.77, 175.17]], "area": 6.133100000000186, "iscrowd": 0, "image_id": 183181, "bbox": [143.77, 174.92, 10.06, 0.76], "category_id": 42, "id": 1480783}, {"segmentation": [[408.65, 391.89, 420.54, 306.49, 508.11, 323.78, 499.46, 420.0, 447.57, 404.86, 432.43, 397.3, 407.57, 392.97]], "area": 8341.18305, "iscrowd": 0, "image_id": 369979, "bbox": [407.57, 306.49, 100.54, 113.51], "category_id": 62, "id": 1593598}, {"segmentation": [[196.0, 397.95, 193.03, 392.84, 189.63, 387.74, 190.05, 381.79, 196.43, 374.98, 206.21, 373.71, 213.44, 377.53, 213.86, 385.61, 213.02, 393.69, 207.49, 397.95, 201.11, 399.22, 197.28, 399.65]], "area": 487.98840000000007, "iscrowd": 0, "image_id": 284043, "bbox": [189.63, 373.71, 24.23, 25.94], "category_id": 64, "id": 1606309}, {"segmentation": [[181.39, 463.32, 189.57, 386.94, 162.29, 364.21, 147.74, 364.21, 143.2, 290.56, 157.75, 278.74, 180.48, 263.29, 167.75, 248.74, 196.84, 236.01, 192.3, 207.82, 180.48, 200.55, 142.29, 174.18, 126.83, 217.82, 130.47, 245.1, 70.46, 253.28, 48.63, 309.66, 76.82, 336.03, 129.56, 296.93, 137.74, 372.4, 101.37, 387.85, 134.1, 466.96, 152.29, 480.0]], "area": 17708.72455, "iscrowd": 0, "image_id": 169111, "bbox": [48.63, 174.18, 148.21, 305.82], "category_id": 64, "id": 1609173}, {"segmentation": [[135.74, 309.72, 132.45, 302.64, 133.71, 294.54, 138.01, 293.27, 141.05, 289.73, 140.55, 297.58, 138.77, 309.98, 135.99, 309.98]], "area": 107.9201000000003, "iscrowd": 0, "image_id": 205676, "bbox": [132.45, 289.73, 8.6, 20.25], "category_id": 77, "id": 1637425}, {"segmentation": [[121.08, 370.27, 131.89, 377.84, 141.62, 371.35, 149.19, 358.38, 137.3, 358.38, 141.62, 331.35, 147.03, 303.24, 140.54, 272.97, 137.3, 252.43, 142.7, 241.62, 126.49, 239.46, 107.03, 240.54, 113.51, 250.27, 118.92, 253.51, 122.16, 268.65, 115.68, 306.49, 121.08, 329.19, 130.81, 338.92, 131.89, 361.62, 124.32, 369.19]], "area": 2755.38525, "iscrowd": 0, "image_id": 369979, "bbox": [107.03, 239.46, 42.16, 138.38], "category_id": 86, "id": 1666989}, {"segmentation": [[41.02, 230.19, 43.16, 230.9, 49.56, 230.19, 52.41, 228.76, 54.54, 228.76, 60.24, 240.15, 70.2, 265.77, 73.05, 274.31, 75.18, 280.71, 80.87, 304.2, 80.87, 309.18, 80.16, 314.87, 81.59, 323.41, 80.87, 329.82, 80.87, 334.09, 73.05, 340.49, 64.51, 341.91, 41.02, 345.47, 32.48, 342.63, 29.64, 322.7, 28.92, 300.64, 31.06, 276.44, 40.31, 248.69, 40.31, 238.73, 40.31, 233.03, 40.31, 230.19]], "area": 4532.014300000003, "iscrowd": 0, "image_id": 369979, "bbox": [28.92, 228.76, 52.67, 116.71], "category_id": 86, "id": 1668442}, {"segmentation": [[502.65, 286.92, 522.07, 305.26, 527.46, 335.46, 527.46, 361.35, 512.36, 372.13, 498.34, 390.47, 504.81, 437.93, 527.46, 467.06, 547.96, 474.61, 555.51, 457.35, 582.47, 429.3, 584.63, 392.63, 578.16, 371.06, 565.21, 355.96, 557.66, 330.07, 568.45, 304.18, 577.08, 296.63, 587.87, 295.55, 587.87, 288.0, 563.06, 282.61, 568.45, 296.63, 554.43, 296.63, 542.56, 292.31, 527.46, 293.39, 519.91, 300.94, 519.91, 288.0, 525.3, 280.45, 523.15, 275.06, 508.04, 286.92, 502.65, 282.61]], "area": 10290.466699999999, "iscrowd": 0, "image_id": 369979, "bbox": [498.34, 275.06, 89.53, 199.55], "category_id": 86, "id": 1669009}, {"segmentation": [[394.59, 310.61, 392.5, 310.61, 391.57, 308.52, 392.5, 305.04, 391.11, 298.76, 389.48, 291.1, 388.55, 285.75, 387.62, 280.88, 387.62, 275.76, 387.39, 272.51, 387.62, 269.72, 387.16, 269.72, 385.3, 271.35, 384.37, 274.14, 384.14, 276.23, 383.21, 277.62, 381.81, 278.32, 380.42, 278.32, 380.42, 276.46, 381.58, 274.37, 381.35, 271.12, 381.58, 267.4, 382.28, 265.31, 382.51, 263.45, 383.44, 260.66, 384.83, 258.34, 386.0, 257.18, 388.78, 256.02, 389.48, 253.93, 389.02, 251.84, 388.09, 248.82, 388.32, 247.89, 391.11, 246.72, 393.66, 246.49, 395.06, 248.12, 395.06, 250.91, 394.13, 253.93, 394.36, 255.32, 395.75, 257.18, 397.84, 259.5, 399.7, 261.36, 400.63, 262.99, 400.86, 266.47, 400.4, 270.19, 401.33, 272.51, 402.49, 275.53, 403.19, 278.09, 403.42, 281.57, 403.19, 284.13, 401.79, 284.82, 400.4, 283.66, 399.47, 281.11, 399.24, 279.48, 399.24, 280.18, 399.24, 285.29, 398.77, 288.31, 398.08, 292.03, 398.08, 295.98, 397.61, 299.69, 396.45, 302.71, 395.98, 306.66, 395.75, 309.68]], "area": 695.3099500000001, "iscrowd": 0, "image_id": 376177, "bbox": [380.42, 246.49, 23.0, 64.12], "category_id": 1, "id": 1678084}, {"segmentation": [[262.32, 111.95, 263.23, 108.92, 262.52, 106.09, 260.5, 106.59, 259.29, 106.9, 258.38, 108.92, 258.79, 110.73, 259.49, 111.44, 257.07, 113.46, 255.56, 121.24, 257.88, 128.21, 257.98, 129.32, 258.79, 133.97, 260.71, 140.13, 267.98, 136.49, 269.6, 128.11, 267.88, 122.25, 265.86, 119.02, 262.63, 112.45]], "area": 279.70950000000016, "iscrowd": 0, "image_id": 169111, "bbox": [255.56, 106.09, 14.04, 34.04], "category_id": 1, "id": 1678630}, {"segmentation": [[338.92, 116.98, 339.39, 115.55, 341.94, 113.79, 342.42, 113.64, 342.58, 112.2, 342.26, 111.41, 342.42, 108.06, 344.65, 107.27, 347.04, 107.9, 347.51, 110.61, 347.2, 113.79, 349.9, 115.23, 351.34, 117.46, 351.02, 120.96, 349.9, 123.99, 350.06, 129.24, 348.95, 129.08, 346.08, 124.3, 339.55, 117.93, 338.92, 117.93]], "area": 135.21934999999982, "iscrowd": 0, "image_id": 169111, "bbox": [338.92, 107.27, 12.42, 21.97], "category_id": 1, "id": 1680461}, {"segmentation": [[434.03, 264.38, 434.18, 262.39, 434.18, 261.01, 434.18, 259.47, 434.64, 259.01, 437.09, 259.01, 438.16, 259.32, 440.16, 261.01, 440.16, 263.61, 441.23, 263.61, 442.0, 263.77, 443.99, 266.68, 444.45, 267.9, 445.37, 271.58, 445.67, 272.81, 444.91, 274.65, 443.99, 274.95, 443.53, 274.19, 442.61, 272.2, 441.54, 274.8, 441.38, 276.33, 442.0, 277.71, 442.3, 280.47, 440.92, 284.46, 439.54, 290.13, 440.0, 293.19, 438.32, 293.5, 437.4, 293.04, 436.32, 290.89, 436.32, 293.81, 434.03, 294.11, 433.41, 293.04, 433.87, 290.89, 433.57, 288.75, 433.41, 285.99, 433.26, 284.3, 432.8, 281.09, 432.8, 278.94, 432.8, 276.33, 432.8, 274.65, 433.57, 272.66, 431.88, 273.42, 430.19, 272.5, 430.19, 270.66, 430.5, 268.67, 430.5, 266.83, 431.57, 264.84, 433.41, 264.22]], "area": 313.1626500000004, "iscrowd": 0, "image_id": 376177, "bbox": [430.19, 259.01, 15.48, 35.1], "category_id": 1, "id": 1680708}, {"segmentation": [[44.21, 106.25, 44.64, 103.9, 46.13, 102.41, 46.55, 99.43, 47.83, 97.94, 48.69, 97.94, 51.45, 98.15, 52.09, 102.62, 56.14, 106.25, 56.36, 109.87, 55.5, 115.83, 52.73, 117.32, 50.18, 113.28, 47.62, 109.01, 43.79, 106.03]], "area": 132.33240000000004, "iscrowd": 0, "image_id": 169111, "bbox": [43.79, 97.94, 12.57, 19.38], "category_id": 1, "id": 1689348}, {"segmentation": [[579.34, 235.13, 579.02, 232.57, 582.54, 231.93, 585.09, 233.69, 583.5, 236.25, 588.29, 238.8, 586.69, 241.04, 583.82, 242.16, 583.34, 245.35, 583.5, 257.02, 580.78, 257.02, 580.62, 253.02, 578.54, 256.7, 576.15, 257.18, 573.91, 254.94, 579.02, 250.63, 578.54, 245.35, 578.86, 243.91, 578.86, 242.48, 576.63, 241.84, 575.35, 239.6, 577.9, 236.09]], "area": 162.6257500000005, "iscrowd": 0, "image_id": 376177, "bbox": [573.91, 231.93, 14.38, 25.25], "category_id": 1, "id": 1691006}, {"segmentation": [[54.75, 103.85, 56.22, 100.91, 58.13, 100.62, 57.69, 98.41, 57.99, 97.24, 59.75, 96.06, 61.36, 96.21, 61.95, 97.53, 62.1, 98.71, 62.1, 100.47, 61.95, 100.76, 62.24, 101.79, 62.98, 102.23, 63.42, 102.96, 62.54, 105.76, 64.01, 114.42, 65.18, 120.44, 62.24, 119.27, 61.36, 115.3, 61.07, 114.86, 60.04, 116.62, 57.55, 117.06, 55.93, 114.71, 55.93, 111.34, 55.93, 109.57, 55.2, 107.08, 54.61, 105.31]], "area": 146.35770000000008, "iscrowd": 0, "image_id": 169111, "bbox": [54.61, 96.06, 10.57, 24.38], "category_id": 1, "id": 1693547}, {"segmentation": [[558.55, 235.93, 558.65, 233.21, 556.8, 232.04, 555.83, 234.18, 554.37, 235.83, 553.69, 238.94, 553.89, 242.54, 555.34, 246.33, 555.73, 249.06, 555.73, 252.17, 556.22, 252.94, 557.77, 252.46, 558.75, 254.21, 561.08, 254.4, 562.44, 253.63, 561.18, 251.68, 560.01, 249.93, 559.82, 245.26, 559.23, 240.79, 559.23, 238.65]], "area": 99.75889999999977, "iscrowd": 0, "image_id": 376177, "bbox": [553.69, 232.04, 8.75, 22.36], "category_id": 1, "id": 1697011}, {"segmentation": [[412.05, 255.06, 412.05, 255.06, 410.74, 257.96, 415.48, 262.17, 415.48, 273.22, 413.63, 274.8, 414.16, 292.43, 409.95, 293.49, 409.69, 287.43, 409.69, 282.7, 402.58, 275.06, 400.74, 272.96, 399.68, 259.01, 405.74, 257.43, 405.47, 252.17, 409.16, 250.59, 412.05, 253.22], [406.67, 286.21, 407.54, 292.19, 403.18, 293.31, 402.31, 288.2, 404.93, 286.96, 406.3, 286.08]], "area": 412.0254000000007, "iscrowd": 0, "image_id": 376177, "bbox": [399.68, 250.59, 15.8, 42.9], "category_id": 1, "id": 1697690}, {"segmentation": [[523.32, 294.12, 525.26, 288.28, 527.21, 274.03, 525.91, 264.3, 530.77, 259.12, 530.12, 254.58, 526.23, 254.58, 524.61, 255.23, 521.37, 255.88, 520.08, 251.99, 514.57, 251.99, 514.24, 257.18, 511.0, 261.39, 510.03, 270.46, 512.3, 275.65, 513.92, 269.17, 513.92, 293.79]], "area": 563.1946500000012, "iscrowd": 0, "image_id": 376177, "bbox": [510.03, 251.99, 20.74, 42.13], "category_id": 1, "id": 1699414}, {"segmentation": [[341.08, 253.0, 343.86, 243.01, 348.3, 239.12, 356.62, 242.46, 355.51, 250.78, 361.62, 254.67, 367.73, 280.76, 358.85, 266.33, 359.4, 281.87, 356.62, 294.64, 356.62, 310.74, 347.19, 311.29, 345.52, 302.97, 345.52, 296.86, 337.19, 280.21, 337.19, 263.0, 339.97, 254.11]], "area": 1259.4241500000003, "iscrowd": 0, "image_id": 376177, "bbox": [337.19, 239.12, 30.54, 72.17], "category_id": 1, "id": 1702082}, {"segmentation": [[324.36, 311.2, 315.42, 310.6, 316.91, 306.43, 318.1, 304.04, 318.1, 299.87, 314.82, 290.03, 315.71, 284.36, 316.31, 278.99, 315.12, 276.31, 313.03, 273.33, 313.63, 261.1, 314.52, 251.27, 316.31, 249.18, 317.5, 248.58, 319.59, 247.39, 320.48, 244.41, 319.59, 239.04, 320.78, 235.46, 323.47, 235.16, 325.55, 236.06, 326.75, 239.93, 325.55, 244.71, 328.24, 247.69, 332.41, 249.48, 334.5, 254.54, 335.09, 260.51, 335.39, 270.35, 333.01, 274.82, 333.9, 285.55, 332.11, 289.73, 331.52, 295.1, 332.11, 307.02, 333.01, 310.9, 328.24, 311.79, 328.24, 306.72, 329.13, 298.38, 326.15, 292.11, 324.36, 283.77, 321.98, 287.64, 321.08, 292.41, 322.27, 299.87, 323.76, 307.32]], "area": 1085.2572500000003, "iscrowd": 0, "image_id": 376177, "bbox": [313.03, 235.16, 22.36, 76.63], "category_id": 1, "id": 1702778}, {"segmentation": [[448.92, 292.46, 448.92, 277.44, 449.9, 272.66, 449.06, 272.38, 444.57, 277.44, 442.88, 278.7, 442.04, 276.45, 443.16, 274.21, 444.14, 274.77, 445.55, 274.21, 446.53, 272.8, 447.51, 270.98, 448.5, 266.62, 449.2, 264.24, 451.87, 263.82, 452.43, 262.69, 452.43, 260.59, 452.85, 257.64, 453.83, 256.51, 456.36, 256.51, 456.36, 259.04, 456.78, 262.69, 456.92, 264.24, 459.17, 265.5, 460.57, 266.48, 461.41, 267.47, 461.41, 270.27, 461.98, 273.64, 462.12, 275.61, 463.1, 280.38, 464.22, 283.61, 462.54, 284.46, 461.27, 282.91, 460.85, 280.95, 461.13, 277.86, 459.45, 274.21, 459.45, 278.14, 459.31, 283.75, 458.47, 287.26, 458.33, 293.02, 455.8, 293.02, 454.96, 290.91, 454.96, 286.14, 453.27, 289.51, 453.83, 292.46, 452.99, 292.88]], "area": 371.34134999999986, "iscrowd": 0, "image_id": 376177, "bbox": [442.04, 256.51, 22.18, 36.51], "category_id": 1, "id": 1703180}, {"segmentation": [[386.84, 270.85, 391.59, 299.65, 390.4, 302.32, 387.73, 302.02, 387.13, 287.18, 384.46, 286.59, 385.35, 296.68, 385.65, 300.24, 382.98, 301.43, 382.09, 299.65, 382.68, 294.9, 381.2, 286.29, 378.23, 283.32, 379.71, 266.4, 379.71, 261.65, 375.26, 270.85, 377.34, 274.42, 376.75, 277.68, 373.78, 277.09, 372.0, 275.01, 374.67, 262.84, 376.15, 257.2, 384.17, 249.48, 385.35, 244.73, 389.81, 242.95, 390.4, 245.62, 386.24, 249.78, 385.35, 256.9, 382.68, 266.4, 381.49, 278.27, 383.28, 277.68, 386.24, 270.85, 388.02, 269.96]], "area": 413.0199499999993, "iscrowd": 0, "image_id": 376177, "bbox": [372.0, 242.95, 19.59, 59.37], "category_id": 1, "id": 1704290}, {"segmentation": [[453.92, 410.82, 452.24, 381.33, 450.56, 360.47, 458.96, 362.15, 466.87, 372.94, 458.0, 370.3, 457.28, 367.9, 458.0, 380.13, 456.08, 389.24, 459.91, 410.1, 460.63, 416.81, 452.48, 416.57]], "area": 349.43784999999934, "iscrowd": 0, "image_id": 315976, "bbox": [450.56, 360.47, 16.31, 56.34], "category_id": 1, "id": 1711134}, {"segmentation": [[506.78, 136.83, 507.39, 132.34, 510.65, 127.24, 514.12, 125.41, 517.18, 126.22, 517.58, 126.22, 518.81, 127.04, 520.03, 128.87, 522.88, 132.34, 527.57, 134.38, 527.78, 140.29, 528.59, 143.56, 528.59, 145.39, 526.96, 147.23, 526.35, 149.27, 524.92, 150.69, 524.72, 151.51, 521.66, 153.75, 515.54, 154.77, 510.85, 151.71, 508.81, 148.25, 507.39, 140.09, 506.57, 137.44]], "area": 466.7092000000004, "iscrowd": 0, "image_id": 427133, "bbox": [506.57, 125.41, 22.02, 29.36], "category_id": 1, "id": 1719623}, {"segmentation": [[4.81, 128.27, 3.97, 127.69, 3.89, 125.51, 4.81, 123.66, 4.81, 121.91, 4.31, 120.23, 2.8, 119.81, 1.12, 120.9, 1.29, 123.66, 1.37, 124.92, 0.0, 126.6, 0.03, 140.17, 0.79, 145.11, 2.97, 143.35, 6.15, 140.0, 5.56, 134.64]], "area": 109.21079999999998, "iscrowd": 0, "image_id": 205676, "bbox": [0.0, 119.81, 6.15, 25.3], "category_id": 1, "id": 1727790}, {"segmentation": [[45.54, 638.64, 39.1, 621.91, 47.47, 611.61, 50.37, 608.07, 49.72, 599.38, 51.97, 588.12, 62.27, 585.87, 70.96, 588.76, 74.18, 594.88, 74.18, 602.28, 70.96, 610.32, 76.11, 615.79, 76.11, 619.66, 80.29, 630.92, 87.05, 636.39, 91.56, 640.0, 91.56, 640.0]], "area": 1570.2409999999998, "iscrowd": 0, "image_id": 296816, "bbox": [39.1, 585.87, 52.46, 54.13], "category_id": 1, "id": 1731702}, {"segmentation": [[131.86, 152.14, 126.87, 137.2, 122.61, 125.81, 117.62, 114.42, 120.47, 102.33, 121.89, 91.65, 116.91, 83.11, 107.66, 77.42, 92.72, 71.01, 80.62, 79.55, 78.48, 87.38, 83.46, 96.63, 87.02, 108.02, 79.19, 115.14, 67.81, 121.54, 63.54, 137.91, 61.4, 158.55, 62.12, 183.45, 67.1, 192.7, 62.12, 202.67, 62.12, 214.77, 69.94, 236.83, 77.77, 263.38, 80.62, 249.86, 106.95, 244.88, 106.95, 237.05, 91.29, 242.03, 87.02, 229.93, 82.75, 220.68, 87.73, 207.87, 85.6, 201.47, 77.77, 194.35, 79.19, 186.52, 87.02, 169.44, 86.31, 164.46, 104.81, 165.89, 108.37, 165.89, 108.37, 160.19, 116.91, 155.92, 115.49, 147.38, 121.89, 145.25, 125.45, 148.1, 126.16, 155.92]], "area": 6095.450100000002, "iscrowd": 0, "image_id": 169111, "bbox": [61.4, 71.01, 70.46, 192.37], "category_id": 1, "id": 1733294}, {"segmentation": [[365.93, 345.49, 377.82, 329.2, 384.86, 328.32, 380.9, 322.16, 380.02, 317.32, 382.66, 307.63, 384.86, 305.43, 394.98, 305.87, 404.23, 315.56, 400.71, 321.28, 400.71, 325.24, 403.79, 329.64, 413.47, 333.16, 417.0, 341.97, 421.84, 349.01, 367.25, 347.69]], "area": 1291.7478499999995, "iscrowd": 0, "image_id": 224118, "bbox": [365.93, 305.43, 55.91, 43.58], "category_id": 1, "id": 1742450}, {"segmentation": [[259.22, 110.75, 256.99, 112.71, 256.22, 114.94, 255.53, 118.56, 256.36, 123.86, 256.5, 126.51, 256.43, 127.14, 253.99, 126.79, 252.32, 126.03, 250.23, 125.4, 250.57, 122.54, 251.55, 119.12, 252.67, 115.84, 254.13, 113.89, 255.46, 112.43, 255.67, 112.22, 255.8, 111.24, 256.36, 110.68, 257.13, 110.13, 257.83, 109.78, 258.66, 110.34]], "area": 65.9192500000002, "iscrowd": 0, "image_id": 169111, "bbox": [250.23, 109.78, 8.99, 17.36], "category_id": 1, "id": 1749837}, {"segmentation": [[535.46, 334.34, 555.44, 333.12, 559.38, 337.67, 555.14, 342.81, 557.86, 347.36, 557.26, 352.81, 553.63, 354.92, 553.63, 357.65, 563.31, 361.28, 559.68, 367.94, 561.8, 385.2, 569.67, 388.84, 568.46, 401.55, 509.72, 399.43, 510.63, 388.53, 518.5, 378.24, 538.79, 367.34, 538.18, 359.47, 531.83, 356.14, 527.89, 346.45, 531.83, 346.75, 536.06, 353.41, 538.79, 353.41, 539.7, 350.08, 536.67, 345.24, 533.64, 341.0, 537.88, 340.69, 543.03, 346.75, 543.63, 344.93, 542.12, 341.3, 537.58, 334.64]], "area": 2250.546949999999, "iscrowd": 0, "image_id": 224118, "bbox": [509.72, 333.12, 59.95, 68.43], "category_id": 2, "id": 1765272}, {"segmentation": [[176.76, 278.73, 192.7, 276.84, 213.5, 280.35, 219.99, 284.68, 217.55, 299.81, 208.1, 303.59, 171.09, 307.64, 176.49, 283.6, 176.49, 278.73]], "area": 1147.157599999999, "iscrowd": 0, "image_id": 484754, "bbox": [171.09, 276.84, 48.9, 30.8], "category_id": 3, "id": 1772954}, {"segmentation": [[598.46, 283.21, 639.53, 283.21, 640.0, 394.8, 631.01, 393.25, 627.13, 401.0, 602.33, 398.67, 600.01, 391.7, 590.71, 388.6]], "area": 5150.231149999996, "iscrowd": 0, "image_id": 287396, "bbox": [590.71, 283.21, 49.29, 117.79], "category_id": 3, "id": 1773495}, {"segmentation": [[154.76, 32.0, 155.05, 34.53, 150.39, 35.98, 147.49, 36.95, 144.67, 38.11, 142.74, 38.69, 141.57, 39.18, 140.8, 40.15, 140.02, 41.12, 137.02, 40.92, 136.14, 38.31, 137.89, 36.75, 140.51, 36.27, 142.25, 35.2, 145.26, 32.59, 147.58, 32.0, 151.65, 31.62]], "area": 77.19230000000002, "iscrowd": 0, "image_id": 226801, "bbox": [136.14, 31.62, 18.91, 9.5], "category_id": 3, "id": 1774549}, {"segmentation": [[240.79, 46.55, 241.43, 43.26, 244.61, 41.88, 247.9, 39.44, 249.81, 37.74, 245.99, 37.64, 241.54, 39.76, 240.05, 40.61, 237.19, 41.03, 236.02, 42.52, 235.91, 45.17, 237.51, 46.23]], "area": 50.35795000000002, "iscrowd": 0, "image_id": 226801, "bbox": [235.91, 37.64, 13.9, 8.91], "category_id": 3, "id": 1777936}, {"segmentation": [[235.88, 45.2, 233.14, 45.95, 230.02, 44.2, 230.39, 41.71, 232.76, 40.58, 236.75, 39.46, 240.12, 37.09, 245.86, 36.97, 243.11, 38.96, 239.62, 40.21, 237.13, 41.08, 236.13, 42.83]], "area": 47.60395000000003, "iscrowd": 0, "image_id": 226801, "bbox": [230.02, 36.97, 15.84, 8.98], "category_id": 3, "id": 1779050}, {"segmentation": [[275.75, 30.34, 267.05, 29.03, 260.52, 32.51, 261.82, 35.12, 271.4, 38.61, 274.01, 35.56, 276.62, 31.64]], "area": 95.46515000000005, "iscrowd": 0, "image_id": 226801, "bbox": [260.52, 29.03, 16.1, 9.58], "category_id": 3, "id": 1781942}, {"segmentation": [[392.99, 219.81, 418.29, 220.13, 423.8, 228.56, 434.5, 234.4, 434.5, 240.24, 430.61, 242.51, 421.53, 245.11, 414.07, 248.35, 403.37, 248.35, 399.8, 246.73, 394.94, 246.08], [375.8, 221.75, 369.96, 224.67, 363.47, 231.16, 361.85, 244.13, 371.58, 246.73]], "area": 1116.7922999999994, "iscrowd": 0, "image_id": 163112, "bbox": [361.85, 219.81, 72.65, 28.54], "category_id": 3, "id": 1783068}, {"segmentation": [[166.02, 274.72, 153.28, 274.53, 153.28, 271.21, 153.65, 268.81, 164.54, 268.44, 166.39, 270.84]], "area": 75.58714999999998, "iscrowd": 0, "image_id": 113333, "bbox": [153.28, 268.44, 13.11, 6.28], "category_id": 3, "id": 1783532}, {"segmentation": [[639.85, 105.45, 597.96, 105.99, 600.86, 76.8, 623.16, 75.53, 632.05, 56.67, 636.04, 54.13, 640.0, 54.31, 640.0, 54.31]], "area": 1453.6816000000008, "iscrowd": 0, "image_id": 369763, "bbox": [597.96, 54.13, 42.04, 51.86], "category_id": 3, "id": 1786072}, {"segmentation": [[155.28, 35.46, 154.28, 39.24, 150.73, 39.91, 149.95, 43.02, 140.73, 41.13, 141.29, 39.57, 146.84, 37.35, 149.51, 37.24, 153.39, 34.35, 155.5, 34.69]], "area": 58.48350000000005, "iscrowd": 0, "image_id": 226801, "bbox": [140.73, 34.35, 14.77, 8.67], "category_id": 3, "id": 1786079}, {"segmentation": [[469.82, 18.18, 465.73, 98.54, 540.65, 98.54, 534.52, 77.43, 550.86, 48.15, 520.9, 22.27, 471.86, 17.5], [443.94, 18.86, 420.1, 18.18, 396.27, 22.95, 389.46, 40.65, 320.67, 42.02, 315.9, 80.15, 313.18, 91.73, 347.23, 95.14, 345.87, 80.15, 356.77, 73.34, 370.39, 71.3, 387.41, 49.51, 416.02, 47.46, 427.59, 69.26, 418.74, 94.46, 424.87, 97.86, 439.17, 97.18, 438.49, 85.6, 450.75, 86.28, 447.34, 24.31]], "area": 11010.74135, "iscrowd": 0, "image_id": 369763, "bbox": [313.18, 17.5, 237.68, 81.04], "category_id": 3, "id": 1788021}, {"segmentation": [[503.5, 262.81, 496.88, 242.51, 496.88, 223.1, 495.56, 215.15, 481.44, 210.74, 484.97, 205.88, 487.62, 201.47, 496.44, 195.73, 496.0, 182.49, 497.77, 165.72, 500.41, 157.34, 512.33, 156.9, 522.04, 156.9, 525.57, 161.75, 526.45, 174.11, 526.45, 193.97, 529.98, 196.62, 536.6, 207.65, 529.1, 216.48, 526.01, 222.65, 533.95, 227.07, 540.57, 231.04, 541.01, 233.69, 541.01, 235.45, 540.13, 243.84, 532.63, 251.34, 525.57, 254.43, 521.16, 257.52, 521.16, 257.52, 520.27, 265.9, 518.95, 266.79, 509.68, 267.23], [548.28, 150.95, 551.5, 146.93, 555.78, 141.84, 563.82, 142.11, 565.96, 142.91, 569.45, 146.93, 563.82, 152.83, 554.98, 153.1]], "area": 3865.756800000003, "iscrowd": 0, "image_id": 503790, "bbox": [481.44, 141.84, 88.01, 125.39], "category_id": 4, "id": 1789950}, {"segmentation": [[123.66, 380.59, 149.1, 317.91, 154.55, 265.22, 150.91, 222.53, 133.65, 182.56, 120.94, 186.19, 140.01, 215.26, 140.01, 222.53, 110.94, 231.61, 101.86, 217.99, 95.5, 184.38, 117.3, 178.93, 115.49, 165.3, 123.66, 149.86, 188.16, 152.58, 255.38, 177.11, 279.91, 202.54, 298.07, 270.67, 293.53, 309.74, 262.65, 375.14, 242.66, 388.77, 179.07, 409.66, 136.38, 409.66, 120.03, 396.94]], "area": 35207.7677, "iscrowd": 0, "image_id": 484754, "bbox": [95.5, 149.86, 202.57, 259.8], "category_id": 6, "id": 1794108}, {"segmentation": [[312.13, 134.06, 371.25, 127.94, 412.02, 138.13, 423.91, 149.69, 417.12, 154.78, 420.51, 162.6, 425.61, 173.81, 429.69, 192.16, 364.45, 192.5, 309.07, 191.82, 308.39, 187.4, 311.45, 185.7, 314.17, 185.7, 320.62, 180.6, 318.93, 167.35, 310.09, 146.63, 308.39, 141.53, 312.81, 134.74]], "area": 6480.326349999999, "iscrowd": 0, "image_id": 27969, "bbox": [308.39, 127.94, 121.3, 64.56], "category_id": 8, "id": 1799982}, {"segmentation": [[1.19, 40.3, 28.44, 43.85, 23.7, 175.41, 1.19, 171.85]], "area": 3281.51375, "iscrowd": 0, "image_id": 287396, "bbox": [1.19, 40.3, 27.25, 135.11], "category_id": 10, "id": 1804555}, {"segmentation": [[536.65, 44.33, 538.01, 99.9, 557.66, 95.16, 554.27, 45.0]], "area": 989.9723999999997, "iscrowd": 0, "image_id": 113333, "bbox": [536.65, 44.33, 21.01, 55.57], "category_id": 10, "id": 1805886}, {"segmentation": [[336.41, 153.67, 334.36, 130.59, 336.7, 127.66, 345.17, 122.4, 347.22, 110.72, 388.12, 116.27, 389.58, 118.61, 387.54, 152.79, 377.02, 162.43, 375.56, 158.93, 376.14, 147.24, 347.51, 142.27, 346.63, 147.53]], "area": 1769.5223500000002, "iscrowd": 0, "image_id": 284043, "bbox": [334.36, 110.72, 55.22, 51.71], "category_id": 15, "id": 1810549}, {"segmentation": [[548.42, 291.24, 577.98, 291.24, 567.43, 322.91, 582.21, 321.33, 588.01, 275.93, 578.51, 261.68, 550.01, 263.27, 550.01, 279.63, 550.01, 290.19]], "area": 1365.9789000000017, "iscrowd": 0, "image_id": 193936, "bbox": [548.42, 261.68, 39.59, 61.23], "category_id": 15, "id": 1811079}, {"segmentation": [[71.44, 268.72, 62.51, 280.63, 72.43, 283.61, 73.42, 271.7], [125.02, 272.69, 111.13, 283.61, 110.14, 298.49, 127.0, 298.49, 126.01, 337.19, 128.99, 293.53, 127.99, 269.72], [175.62, 269.72, 168.68, 283.61, 166.69, 301.47, 189.51, 301.47, 182.57, 286.58, 182.57, 270.71], [287.74, 283.61, 281.79, 297.5, 299.65, 297.5, 297.66, 282.61], [316.51, 283.61, 311.55, 295.51, 324.45, 297.5, 325.44, 287.57], [338.34, 284.6, 343.3, 297.5, 350.25, 297.5, 347.27, 283.61], [411.77, 291.54, 411.77, 297.5, 429.63, 299.48, 425.66, 288.57, 413.75, 287.57], [495.11, 287.57, 495.11, 295.51, 507.02, 294.52, 508.01, 283.61, 495.11, 282.61], [523.89, 282.61, 521.9, 295.51, 538.77, 294.52, 532.82, 281.62, 527.85, 281.62]], "area": 1876.5892999999996, "iscrowd": 0, "image_id": 193936, "bbox": [62.51, 268.72, 476.26, 68.47], "category_id": 15, "id": 1811270}, {"segmentation": [[147.46, 202.33, 150.17, 199.62, 154.82, 197.3, 159.27, 195.75, 172.05, 197.3, 180.56, 199.04, 198.96, 199.81, 206.7, 206.59, 209.02, 213.17, 221.03, 232.34, 218.8, 244.04, 214.84, 250.04, 213.56, 253.23, 212.42, 257.45, 212.03, 259.11, 210.88, 260.0, 207.69, 260.0, 206.41, 259.11, 203.47, 255.02, 201.05, 251.7, 200.54, 249.02, 195.43, 244.04, 193.0, 245.19, 192.75, 255.15, 192.11, 258.98, 192.11, 259.24, 191.21, 259.62, 184.32, 259.11, 185.21, 254.13, 185.98, 249.4, 186.23, 246.59, 185.34, 244.04, 179.85, 240.33, 168.73, 241.48, 166.95, 240.72, 169.24, 249.66, 169.24, 252.08, 171.67, 256.56, 167.84, 257.45, 166.69, 258.98, 163.75, 258.98, 162.22, 258.09, 160.3, 256.04, 158.0, 254.38, 156.98, 251.57, 156.34, 240.85, 154.56, 244.8, 158.0, 259.75, 157.11, 260.13, 149.57, 259.11, 148.17, 256.04, 150.21, 244.42, 149.32, 240.46, 147.4, 237.91, 146.13, 239.44, 145.74, 250.68, 143.06, 250.94, 141.78, 250.55, 142.29, 246.08, 143.57, 238.93, 143.83, 235.35, 142.23, 223.98, 142.23, 217.01, 143.58, 210.23, 145.32, 205.2, 146.49, 201.33]], "area": 3719.5881000000013, "iscrowd": 0, "image_id": 183181, "bbox": [141.78, 195.75, 79.25, 64.38], "category_id": 20, "id": 1817742}, {"segmentation": [[269.95, 214.92, 274.29, 208.02, 280.17, 203.81, 289.49, 201.89, 299.71, 202.53, 312.22, 205.09, 318.48, 205.47, 325.0, 210.07, 328.96, 214.03, 329.59, 215.94, 337.64, 231.27, 339.43, 232.55, 341.98, 235.23, 342.24, 237.4, 341.35, 241.36, 342.5, 245.06, 339.43, 250.56, 339.17, 252.47, 337.0, 259.5, 332.53, 259.5, 329.98, 256.56, 329.21, 254.9, 328.45, 253.37, 322.44, 248.13, 319.38, 247.87, 319.38, 251.2, 322.83, 258.48, 319.76, 258.86, 317.59, 257.71, 315.42, 247.36, 314.14, 244.17, 312.86, 241.49, 311.71, 240.98, 310.95, 242.64, 309.03, 240.72, 308.26, 242.51, 305.84, 251.71, 305.07, 255.67, 304.94, 258.22, 304.82, 258.73, 303.28, 259.5, 301.88, 259.24, 300.86, 258.22, 300.47, 256.18, 302.01, 252.47, 302.39, 250.05, 302.52, 248.13, 302.52, 245.06, 302.26, 242.0, 302.13, 240.85, 298.05, 242.25, 287.32, 242.13, 286.17, 241.49, 282.34, 239.96, 278.38, 243.79, 276.72, 245.7, 276.84, 253.62, 277.48, 260.65, 276.33, 261.03, 272.63, 259.24, 271.61, 259.88, 269.56, 261.29, 268.67, 261.92, 267.39, 261.67, 267.14, 258.6, 267.78, 253.24, 268.93, 249.28, 269.95, 246.34, 270.08, 245.06, 270.2, 243.92, 268.67, 236.0, 268.67, 232.42, 268.93, 229.23, 269.82, 220.29, 269.56, 215.05]], "area": 2946.3238, "iscrowd": 0, "image_id": 183181, "bbox": [267.14, 201.89, 75.36, 60.03], "category_id": 20, "id": 1818288}, {"segmentation": [[359.93, 275.49, 362.02, 261.4, 366.72, 251.48, 370.89, 245.22, 374.55, 253.57, 374.03, 261.4, 377.16, 270.27, 382.9, 278.1, 384.99, 273.93, 381.33, 266.62, 380.29, 258.79, 381.33, 252.52, 401.69, 249.91, 403.78, 258.79, 403.78, 274.97, 412.65, 276.53, 412.13, 272.88, 409.52, 262.96, 412.13, 254.09, 418.92, 257.74, 426.22, 260.35, 441.88, 272.88, 450.23, 274.97, 451.8, 253.05, 447.62, 246.78, 437.18, 227.99, 434.57, 225.9, 435.1, 220.68, 426.22, 211.81, 408.48, 203.46, 390.21, 202.94, 370.37, 201.37, 363.06, 212.85, 359.41, 225.9, 358.89, 242.09, 360.98, 247.83, 357.84, 259.31, 353.15, 274.97, 356.28, 277.58]], "area": 4574.311600000003, "iscrowd": 0, "image_id": 183181, "bbox": [353.15, 201.37, 98.65, 76.73], "category_id": 20, "id": 1818497}, {"segmentation": [[38.01, 247.61, 39.93, 245.3, 41.28, 242.03, 43.78, 237.61, 47.24, 232.8, 50.13, 226.45, 54.36, 224.14, 61.86, 222.22, 69.36, 230.49, 68.79, 237.61, 68.21, 243.38, 67.05, 250.3, 65.13, 254.34, 60.9, 255.88, 62.63, 252.04, 62.44, 249.15, 60.9, 254.54, 59.74, 256.85, 57.82, 253.58, 57.44, 248.77, 55.7, 248.77, 56.09, 256.08, 52.63, 254.34, 51.66, 252.42, 50.32, 254.73, 47.05, 256.27, 44.93, 255.31, 42.24, 251.46, 40.12, 250.5, 38.2, 248.38]], "area": 717.83815, "iscrowd": 0, "image_id": 183181, "bbox": [38.01, 222.22, 31.35, 34.63], "category_id": 20, "id": 1818601}, {"segmentation": [[142.73, 231.99, 136.71, 222.8, 133.85, 211.39, 136.07, 200.3, 143.68, 195.23, 156.04, 193.01, 162.06, 196.18, 148.75, 204.42, 147.16, 210.12, 146.85, 213.29, 145.58, 222.17]], "area": 441.93290000000013, "iscrowd": 0, "image_id": 183181, "bbox": [133.85, 193.01, 28.21, 38.98], "category_id": 20, "id": 1818732}, {"segmentation": [[98.11, 235.65, 105.37, 235.65, 105.52, 219.43, 110.78, 218.81, 110.31, 212.17, 107.84, 206.61, 106.91, 204.91, 105.22, 203.67, 100.43, 203.21, 98.88, 205.52, 98.42, 207.07, 98.88, 209.85, 97.64, 212.48, 95.33, 212.48, 94.55, 213.71, 94.86, 215.1, 95.95, 216.03, 95.95, 235.81]], "area": 343.91395, "iscrowd": 0, "image_id": 193936, "bbox": [94.55, 203.21, 16.23, 32.6], "category_id": 32, "id": 1840945}, {"segmentation": [[518.42, 207.74, 518.89, 200.26, 524.63, 201.7, 520.65, 204.4, 523.19, 209.02, 523.35, 214.43, 520.8, 217.77, 518.42, 216.66, 518.42, 208.38]], "area": 67.74110000000087, "iscrowd": 0, "image_id": 193936, "bbox": [518.42, 200.26, 6.21, 17.51], "category_id": 32, "id": 1841075}, {"segmentation": [[267.55, 172.58, 268.33, 168.34, 268.64, 167.66, 266.97, 166.8, 266.35, 165.74, 265.67, 163.52, 266.23, 162.34, 267.09, 162.03, 269.14, 161.84, 270.99, 162.53, 273.53, 164.13, 274.33, 164.51, 274.64, 166.67, 274.64, 167.6, 273.16, 167.91, 273.28, 173.23, 268.92, 173.03]], "area": 68.29374999999985, "iscrowd": 0, "image_id": 193936, "bbox": [265.67, 161.84, 8.97, 11.39], "category_id": 32, "id": 1841198}, {"segmentation": [[441.09, 162.14, 437.52, 169.47, 438.08, 176.05, 438.08, 183.0, 441.47, 186.2, 442.41, 199.92, 443.91, 200.49, 446.17, 187.89, 447.3, 169.85, 444.29, 162.7]], "area": 233.16040000000066, "iscrowd": 0, "image_id": 193936, "bbox": [437.52, 162.14, 9.78, 38.35], "category_id": 32, "id": 1841434}, {"segmentation": [[197.02, 169.54, 199.39, 168.82, 202.07, 169.13, 203.62, 170.26, 204.86, 171.5, 203.31, 172.32, 200.63, 172.02, 197.54, 171.09, 195.78, 169.95]], "area": 18.884400000000095, "iscrowd": 0, "image_id": 183181, "bbox": [195.78, 168.82, 9.08, 3.5], "category_id": 42, "id": 1862028}, {"segmentation": [[102.89, 302.3, 106.59, 305.76, 110.54, 306.0, 119.43, 305.76, 127.33, 303.29, 130.29, 299.83, 128.56, 269.46, 125.35, 266.25, 117.95, 264.52, 109.06, 266.25, 101.65, 269.96, 99.92, 274.15]], "area": 1074.1183, "iscrowd": 0, "image_id": 357992, "bbox": [99.92, 264.52, 30.37, 41.48], "category_id": 47, "id": 1881283}, {"segmentation": [[366.73, 143.64, 361.65, 174.59, 343.84, 172.47, 346.81, 141.1]], "area": 597.2116500000005, "iscrowd": 0, "image_id": 357992, "bbox": [343.84, 141.1, 22.89, 33.49], "category_id": 47, "id": 1885678}, {"segmentation": [[267.41, 388.48, 263.11, 392.07, 254.52, 396.72, 245.57, 398.87, 235.19, 399.23, 232.32, 399.23, 230.17, 388.84, 230.17, 380.25, 230.17, 372.73, 230.17, 370.58, 233.04, 372.37, 235.9, 374.16, 240.56, 373.45, 243.78, 372.02, 247.36, 369.15, 250.94, 366.64, 256.31, 366.29, 260.25, 366.29, 265.98, 388.84], [218.0, 393.14, 212.27, 388.48, 205.47, 383.11, 200.46, 377.03, 195.8, 369.15, 192.94, 364.14, 192.94, 355.19, 192.94, 347.67, 195.09, 339.79, 198.67, 330.48, 203.68, 327.98, 205.47, 331.56, 207.98, 337.64, 212.27, 339.79, 219.79, 339.08, 216.57, 351.25, 214.42, 362.71, 214.42, 376.31, 217.28, 390.99]], "area": 1941.00335, "iscrowd": 0, "image_id": 169111, "bbox": [192.94, 327.98, 74.47, 71.25], "category_id": 53, "id": 1906373}, {"segmentation": [[334.85, 162.35, 335.37, 142.52, 336.42, 131.55, 334.33, 122.16, 327.02, 117.46, 295.7, 115.37, 271.69, 116.42, 263.86, 125.29, 262.82, 158.17, 300.4, 160.26, 323.37, 160.78]], "area": 3084.9745999999996, "iscrowd": 0, "image_id": 357992, "bbox": [262.82, 115.37, 73.6, 46.98], "category_id": 62, "id": 1941549}, {"segmentation": [[230.52, 232.29, 307.89, 238.83, 312.25, 225.75, 235.97, 217.91, 230.52, 231.42]], "area": 1092.4449500000003, "iscrowd": 0, "image_id": 357992, "bbox": [230.52, 217.91, 81.73, 20.92], "category_id": 76, "id": 1975172}, {"segmentation": [[305.46, 197.62, 310.18, 189.36, 310.78, 185.23, 320.22, 184.64, 321.99, 179.33, 311.96, 145.69, 308.41, 135.06, 305.46, 133.29, 301.92, 136.84, 300.74, 113.82, 296.61, 110.87, 297.79, 106.74, 297.79, 102.61, 294.25, 101.42, 290.12, 102.61, 290.12, 102.61, 287.17, 103.79, 281.27, 104.38, 278.91, 100.83, 274.18, 103.79, 273.59, 106.74, 283.04, 115.59, 285.4, 120.9, 286.58, 137.43, 289.53, 145.69, 290.71, 148.05, 288.35, 153.95, 299.56, 180.51, 306.05, 189.95]], "area": 1797.6240000000005, "iscrowd": 0, "image_id": 27969, "bbox": [273.59, 100.83, 48.4, 96.79], "category_id": 1, "id": 2003544}, {"segmentation": [[0.0, 606.97, 7.24, 604.48, 16.5, 606.29, 16.5, 614.64, 15.59, 622.77, 14.92, 628.42, 11.08, 631.58, 12.88, 635.65, 18.98, 637.0, 18.76, 639.71, 0.0, 639.48]], "area": 527.2069000000005, "iscrowd": 0, "image_id": 296816, "bbox": [0.0, 604.48, 18.98, 35.23], "category_id": 1, "id": 2006765}, {"segmentation": [[386.45, 249.95, 387.32, 248.55, 389.07, 251.61, 388.98, 254.06, 388.63, 255.89, 385.49, 257.2, 386.28, 250.04]], "area": 20.201250000000034, "iscrowd": 0, "image_id": 376177, "bbox": [385.49, 248.55, 3.58, 8.65], "category_id": 1, "id": 2009542}, {"segmentation": [[141.74, 216.9, 140.23, 215.52, 141.33, 213.73, 140.64, 211.66, 138.99, 211.66, 137.89, 213.04, 139.26, 215.66, 139.68, 216.07, 136.92, 215.52, 136.65, 216.9, 137.34, 217.86, 138.71, 219.1, 139.26, 220.06, 139.4, 222.13, 140.23, 223.5, 140.78, 223.5, 141.46, 219.65, 142.15, 217.31, 141.6, 216.76]], "area": 31.681450000000076, "iscrowd": 0, "image_id": 299083, "bbox": [136.65, 211.66, 5.5, 11.84], "category_id": 1, "id": 2010580}, {"segmentation": [[151.47, 215.42, 151.96, 211.47, 154.85, 211.4, 156.12, 212.25, 156.05, 214.58, 156.76, 215.85, 158.1, 218.9, 158.37, 221.98, 157.92, 224.16, 158.28, 226.88, 158.55, 228.78, 157.47, 231.59, 157.29, 238.65, 157.11, 240.37, 155.66, 240.83, 153.93, 240.83, 153.57, 240.1, 154.3, 238.83, 153.75, 233.22, 153.66, 230.05, 152.21, 227.24, 152.3, 222.8, 153.66, 220.81, 153.93, 219.36, 151.58, 216.82]], "area": 132.8106999999999, "iscrowd": 0, "image_id": 299083, "bbox": [151.47, 211.4, 7.08, 29.43], "category_id": 1, "id": 2010792}, {"segmentation": [[159.74, 216.93, 159.03, 216.15, 158.47, 215.94, 157.62, 216.86, 157.97, 218.06, 158.18, 219.12, 157.9, 223.44, 157.97, 223.87, 159.03, 223.87, 160.38, 223.87, 160.94, 223.16, 160.87, 220.89, 160.87, 219.27, 160.73, 218.27, 160.31, 217.14]], "area": 20.42324999999998, "iscrowd": 0, "image_id": 299083, "bbox": [157.62, 215.94, 3.32, 7.93], "category_id": 1, "id": 2021874}, {"segmentation": [[175.22, 225.88, 175.71, 224.66, 175.95, 222.17, 175.9, 220.76, 175.9, 219.19, 176.29, 217.88, 176.29, 216.51, 175.46, 215.34, 174.44, 215.34, 173.66, 216.17, 173.07, 218.75, 173.07, 221.97, 173.46, 225.24, 173.51, 227.25, 175.85, 226.56]], "area": 29.659750000000027, "iscrowd": 0, "image_id": 299083, "bbox": [173.07, 215.34, 3.22, 11.91], "category_id": 1, "id": 2022614}, {"segmentation": [[64.2, 119.8, 62.88, 107.93, 62.35, 106.61, 61.69, 105.55, 60.77, 103.7, 60.24, 102.78, 60.37, 101.86, 61.43, 101.07, 62.75, 100.01, 63.8, 99.48, 64.2, 99.22, 64.07, 98.16, 64.07, 97.11, 64.99, 95.13, 65.78, 95.0, 66.97, 95.26, 67.76, 96.18, 68.16, 97.24, 69.74, 98.56, 70.93, 99.09, 71.72, 99.75, 72.12, 100.41, 71.98, 106.74, 72.77, 112.68, 73.96, 115.85, 73.96, 117.56, 71.72, 119.01, 70.27, 115.32, 69.74, 113.87, 68.29, 115.19, 68.16, 117.82, 68.16, 120.2, 67.89, 121.39, 65.65, 121.39]], "area": 209.07565, "iscrowd": 0, "image_id": 169111, "bbox": [60.24, 95.0, 13.72, 26.39], "category_id": 1, "id": 2026067}, {"segmentation": [[332.05, 203.11, 336.3, 198.85, 337.01, 180.43, 342.2, 175.23, 342.2, 171.69, 344.57, 165.31, 354.02, 164.37, 356.14, 175.71, 358.27, 177.12, 360.16, 201.93, 370.08, 203.81, 368.42, 214.44, 353.31, 212.32, 337.24, 212.32, 332.05, 211.37]], "area": 1107.0257499999998, "iscrowd": 0, "image_id": 427133, "bbox": [332.05, 164.37, 38.03, 50.07], "category_id": 1, "id": 2026119}, {"segmentation": [[166.58, 220.79, 164.21, 219.86, 164.1, 218.2, 164.26, 216.44, 165.97, 215.67, 166.47, 216.49]], "area": 9.94790000000005, "iscrowd": 0, "image_id": 299083, "bbox": [164.1, 215.67, 2.48, 5.12], "category_id": 1, "id": 2027474}, {"segmentation": [[390.45, 206.42, 392.0, 202.85, 394.61, 200.94, 398.42, 199.87, 403.06, 199.04, 403.06, 198.45, 403.06, 196.9, 403.78, 194.88, 405.32, 193.93, 404.85, 191.78, 404.49, 190.36, 402.7, 188.69, 401.28, 186.55, 400.44, 183.46, 400.33, 181.43, 400.21, 179.29, 399.97, 176.44, 397.35, 174.18, 396.88, 172.27, 399.25, 169.77, 403.18, 167.63, 408.06, 165.97, 412.94, 164.9, 419.84, 163.71, 423.05, 164.9, 425.31, 167.39, 428.88, 171.56, 430.07, 173.58, 430.78, 180.96, 430.54, 183.22, 430.31, 185.6, 428.4, 189.05, 426.26, 191.19, 424.36, 191.07, 423.53, 193.57, 424.83, 194.28, 426.62, 196.07, 426.62, 197.02, 426.62, 198.57, 430.31, 199.99, 434.95, 200.94, 437.56, 203.68, 440.66, 207.37, 437.8, 210.46, 435.3, 215.58, 434.23, 222.72, 433.99, 228.55, 433.88, 231.64, 432.21, 239.37, 431.73, 245.56, 432.45, 252.82, 433.28, 253.77, 433.28, 255.43, 432.45, 263.29, 432.57, 264.71, 437.45, 264.24, 439.35, 264.95, 441.13, 268.88, 441.73, 272.33, 441.97, 278.04, 441.97, 279.11, 443.51, 285.42, 444.46, 287.08, 443.99, 290.06, 442.68, 290.18, 441.37, 290.41, 440.42, 292.91, 440.18, 293.74, 439.82, 296.24, 440.06, 298.74, 441.73, 300.05, 441.37, 301.48, 441.49, 302.31, 439.94, 304.45, 433.76, 323.25, 432.69, 325.75, 432.57, 326.94, 431.97, 338.0, 433.16, 345.5, 434.35, 349.31, 434.59, 351.21, 431.02, 353.83, 424.83, 352.76, 422.45, 351.09, 421.5, 338.72, 421.5, 332.29, 421.5, 330.63, 423.41, 317.42, 422.93, 310.4, 421.84, 299.19, 425.72, 294.67, 427.01, 291.12, 425.39, 284.34, 422.17, 285.31, 418.94, 286.6, 410.87, 287.89, 410.22, 288.86, 410.54, 306.93, 410.54, 318.88, 410.54, 324.37, 413.13, 332.44, 411.84, 339.21, 411.84, 344.38, 411.84, 348.58, 411.51, 353.74, 404.41, 358.26, 399.25, 355.68, 396.66, 351.8, 399.57, 345.03, 399.57, 332.76, 399.57, 322.75, 396.34, 303.38, 395.37, 295.31, 397.31, 292.41, 395.7, 286.28, 395.7, 279.17, 395.7, 270.46, 395.7, 263.36, 398.92, 251.74, 401.18, 245.28, 398.92, 235.92, 395.7, 222.68, 393.44, 216.23, 393.44, 209.45]], "area": 6175.312700000001, "iscrowd": 0, "image_id": 193936, "bbox": [390.45, 163.71, 54.01, 194.55], "category_id": 1, "id": 2030209}, {"segmentation": [[42.5, 300.64, 42.5, 300.64, 56.66, 300.64, 61.39, 281.75, 33.05, 278.6]], "area": 431.16424999999947, "iscrowd": 0, "image_id": 484754, "bbox": [33.05, 278.6, 28.34, 22.04], "category_id": 3, "id": 2046896}, {"segmentation": [[121.94, 280.53, 124.02, 277.42, 126.99, 276.39, 132.95, 275.48, 137.35, 276.65, 139.03, 279.37, 139.16, 281.18, 138.26, 283.25, 136.44, 285.97, 132.56, 286.36, 125.31, 286.75, 124.66, 285.58, 123.37, 281.83]], "area": 148.47475000000009, "iscrowd": 0, "image_id": 484754, "bbox": [121.94, 275.48, 17.22, 11.27], "category_id": 3, "id": 2047101}, {"segmentation": [[168.24, 271.46, 175.79, 271.57, 175.68, 269.93, 184.44, 269.16, 184.44, 272.56, 187.83, 275.62, 186.85, 277.59, 169.34, 275.73, 167.15, 274.86, 167.26, 271.9]], "area": 111.43229999999997, "iscrowd": 0, "image_id": 113333, "bbox": [167.15, 269.16, 20.68, 8.43], "category_id": 8, "id": 2052170}, {"segmentation": [[246.84, 41.21, 249.23, 39.36, 256.86, 39.13, 257.4, 41.67, 266.42, 41.52, 266.88, 45.45, 265.65, 47.53, 264.88, 47.84, 263.03, 47.84, 262.72, 47.53, 261.41, 48.15, 260.25, 47.99, 258.33, 47.84, 258.33, 46.53, 250.0, 47.3, 249.23, 48.76, 247.92, 48.76, 246.84, 48.3, 246.15, 47.61, 245.3, 48.53, 244.22, 48.84, 243.6, 48.61, 243.29, 48.07, 242.91, 47.14, 240.9, 46.99, 240.9, 42.44]], "area": 174.93464999999986, "iscrowd": 0, "image_id": 226801, "bbox": [240.9, 39.13, 25.98, 9.71], "category_id": 8, "id": 2052546}, {"segmentation": [[319.03, 41.29, 389.59, 39.78, 400.1, 17.26, 435.38, 12.01, 442.88, 15.76, 446.64, 41.29, 447.39, 64.56, 447.39, 78.07, 444.38, 87.08, 434.63, 95.33, 421.86, 96.83, 431.62, 72.81, 421.86, 51.04, 409.1, 43.54, 394.84, 48.79, 376.83, 72.06, 349.8, 74.31, 343.05, 81.82, 345.3, 90.83, 344.55, 95.33, 326.53, 95.33, 314.52, 90.08, 313.02, 67.56, 317.52, 55.55], [468.41, 21.02, 469.16, 99.84, 484.92, 99.84, 507.44, 99.84, 532.96, 99.84, 544.97, 97.58, 551.73, 96.83, 553.98, 84.07, 535.96, 78.82, 541.22, 70.56, 547.22, 61.55, 545.72, 49.54, 547.97, 39.78, 523.95, 25.52, 484.92, 15.01, 475.91, 15.76]], "area": 11492.258699999998, "iscrowd": 0, "image_id": 369763, "bbox": [313.02, 12.01, 240.96, 87.83], "category_id": 8, "id": 2053127}, {"segmentation": [[187.46, 101.13, 201.21, 102.11, 228.72, 102.11, 227.98, 130.36, 223.81, 135.76, 221.1, 144.11, 220.12, 145.09, 190.4, 142.88, 190.16, 138.95, 193.1, 137.48, 195.81, 136.01, 198.75, 129.62, 199.98, 128.64, 204.16, 123.73, 204.16, 119.55, 204.16, 113.66, 199.74, 110.22, 196.79, 105.06, 195.81, 104.32], [238.79, 104.08, 249.84, 105.06, 248.61, 129.37, 243.95, 127.65, 239.03, 127.65, 238.3, 125.69], [267.28, 107.52, 276.37, 106.78, 275.38, 135.02, 269.73, 134.04, 269.0, 133.55]], "area": 1650.0396000000005, "iscrowd": 0, "image_id": 450263, "bbox": [187.46, 101.13, 88.91, 43.96], "category_id": 9, "id": 2055602}, {"segmentation": [[82.27, 80.57, 57.89, 80.57, 51.52, 79.6, 51.2, 78.19, 50.55, 62.02, 50.55, 60.94, 49.59, 58.86, 52.04, 56.57, 55.47, 56.24, 58.09, 53.95, 59.56, 50.85, 62.34, 49.7, 68.88, 50.19, 75.74, 56.08, 78.85, 59.02, 81.3, 59.84, 82.77, 68.83, 84.24, 80.93], [90.46, 72.92, 94.22, 76.68, 92.58, 80.11, 90.29, 79.13, 90.29, 77.0]], "area": 862.3518499999994, "iscrowd": 0, "image_id": 450263, "bbox": [49.59, 49.7, 44.63, 31.23], "category_id": 9, "id": 2055770}, {"segmentation": [[91.23, 5.69, 90.26, 12.49, 90.38, 16.38, 90.14, 24.52, 93.29, 25.0, 94.14, 20.99, 141.5, 21.97, 141.99, 25.49, 144.54, 26.46, 145.51, 25.61, 145.14, 13.71, 143.81, 9.34, 145.96, 7.58, 143.65, 5.78, 143.65, 0.64, 91.54, 0.9]], "area": 1144.9669499999998, "iscrowd": 0, "image_id": 554286, "bbox": [90.14, 0.64, 55.82, 25.82], "category_id": 15, "id": 2061729}, {"segmentation": [[390.92, 273.62, 400.69, 274.7, 419.68, 301.3, 421.85, 294.24, 413.17, 273.08, 400.69, 256.8, 395.26, 260.05], [380.61, 269.28, 367.58, 299.12, 364.33, 295.87, 365.96, 289.9, 380.07, 260.59]], "area": 629.7028000000013, "iscrowd": 0, "image_id": 427133, "bbox": [364.33, 256.8, 57.52, 44.5], "category_id": 20, "id": 2068038}, {"segmentation": [[145.5, 452.94, 134.58, 439.03, 132.35, 345.17, 133.47, 335.12, 155.81, 344.06, 162.51, 366.4, 179.27, 379.81, 199.38, 368.64, 238.49, 385.4, 238.49, 422.27, 237.37, 437.91, 229.55, 445.73]], "area": 8576.278400000003, "iscrowd": 0, "image_id": 163112, "bbox": [132.35, 335.12, 106.14, 117.82], "category_id": 33, "id": 2081308}, {"segmentation": [[188.0, 433.29, 193.23, 438.22, 202.17, 439.45, 212.64, 434.53, 206.79, 420.98, 204.32, 412.97, 208.02, 387.41, 214.48, 364.93, 213.87, 356.61, 213.25, 325.2, 214.79, 308.88, 229.88, 301.49, 223.41, 287.01, 226.49, 282.09, 228.65, 281.78, 224.65, 268.85, 224.65, 227.89, 234.5, 226.04, 231.42, 202.33, 225.26, 179.23, 208.94, 171.22, 205.55, 165.06, 214.79, 149.67, 214.48, 141.35, 209.56, 119.49, 194.47, 114.25, 180.92, 118.56, 173.22, 132.11, 173.83, 155.83, 173.83, 161.98, 149.51, 169.99, 140.27, 193.4, 132.57, 240.82, 131.64, 256.22, 129.49, 295.02, 137.8, 307.03, 148.58, 307.03, 151.66, 317.19, 151.97, 341.21, 147.35, 350.45, 153.51, 367.08, 152.58, 379.09, 155.66, 403.42, 167.98, 404.04, 170.45, 393.26, 167.37, 361.85, 176.91, 342.75, 176.91, 324.89, 178.76, 313.5, 189.54, 313.19, 187.69, 339.68, 192.62, 352.61, 192.31, 369.24, 191.08, 380.02, 192.0, 390.18, 191.39, 405.89, 189.85, 419.44]], "area": 19294.648699999998, "iscrowd": 0, "image_id": 205676, "bbox": [129.49, 114.25, 105.01, 325.2], "category_id": 1, "id": 2154251}, {"segmentation": [[6.47, 140.41, 6.47, 134.83, 7.79, 132.63, 7.79, 130.28, 8.82, 127.64, 11.61, 125.73, 17.19, 126.17, 19.39, 130.28, 19.69, 135.86, 19.1, 138.35, 18.07, 141.88, 19.1, 147.01, 19.1, 152.3, 19.25, 154.65, 17.78, 155.24, 17.48, 160.23, 16.46, 163.9, 15.43, 170.8, 14.99, 177.7, 13.37, 179.46, 12.05, 175.35, 8.38, 168.15, 6.18, 158.61, 6.33, 148.63, 6.33, 140.26]], "area": 525.7695, "iscrowd": 0, "image_id": 205676, "bbox": [6.18, 125.73, 13.51, 53.73], "category_id": 1, "id": 2164815}, {"segmentation": [[501.52, 292.92, 502.06, 286.47, 498.3, 282.45, 499.91, 271.17, 503.94, 260.43, 506.89, 260.43, 508.24, 264.19, 509.04, 271.97, 512.8, 277.08, 512.8, 279.49, 508.51, 278.69, 507.7, 292.92, 502.6, 295.34]], "area": 273.7527499999994, "iscrowd": 0, "image_id": 376177, "bbox": [498.3, 260.43, 14.5, 34.91], "category_id": 1, "id": 2165237}, {"segmentation": [[194.99, 30.32, 192.08, 30.72, 189.03, 32.44, 185.85, 33.63, 184.8, 34.69, 184.8, 36.41, 185.99, 36.8, 186.78, 36.01, 190.09, 35.48, 192.34, 33.76, 195.38, 33.1, 198.96, 30.72, 197.63, 30.45, 195.12, 30.32]], "area": 37.45834999999997, "iscrowd": 0, "image_id": 226801, "bbox": [184.8, 30.32, 14.16, 6.48], "category_id": 3, "id": 2169398}, {"segmentation": [[566.92, 96.15, 566.24, 105.51, 564.07, 112.13, 562.24, 113.73, 560.99, 103.69, 561.1, 99.69, 562.93, 96.38, 563.72, 95.24, 566.69, 95.58]], "area": 75.55670000000003, "iscrowd": 0, "image_id": 193936, "bbox": [560.99, 95.24, 5.93, 18.49], "category_id": 32, "id": 2177515}, {"segmentation": [[358.62, 213.46, 369.54, 205.02, 380.22, 203.03, 390.65, 204.03, 397.85, 208.74, 404.56, 217.44, 408.28, 219.42, 409.52, 218.43, 409.52, 207.5, 411.76, 204.52, 412.5, 204.28, 416.47, 207.5, 417.22, 212.22, 417.96, 223.64, 414.98, 229.11, 410.27, 231.84, 405.8, 231.84, 401.58, 230.1, 397.11, 246.49, 395.12, 264.61, 395.12, 274.3, 389.66, 275.04, 389.41, 274.05, 389.41, 260.39, 387.17, 259.15, 386.93, 268.34, 383.45, 268.09, 381.46, 267.1, 379.48, 259.15, 375.01, 253.94, 368.05, 262.13, 364.33, 264.61, 362.59, 270.82, 360.61, 274.79, 359.86, 285.72, 356.14, 288.95, 353.16, 287.21, 352.91, 274.79, 351.42, 272.31, 350.43, 269.83, 345.21, 270.57, 344.47, 274.79, 341.24, 276.53, 337.51, 276.28, 335.03, 274.55, 332.8, 278.52, 331.8, 282.49, 329.57, 283.98, 326.09, 284.23, 323.36, 282.24, 326.09, 276.28, 330.06, 266.1, 327.58, 264.36, 324.35, 259.65, 322.86, 252.45, 323.36, 248.22, 324.6, 244.0, 323.36, 241.52, 322.62, 230.84, 324.11, 226.87, 326.84, 235.31, 332.8, 228.86, 336.02, 227.12, 343.22, 222.15, 348.94, 218.93, 351.92, 218.43]], "area": 4554.893399999998, "iscrowd": 0, "image_id": 459823, "bbox": [322.62, 203.03, 95.34, 85.92], "category_id": 18, "id": 2463}, {"segmentation": [[503.79, 150.01, 504.74, 137.74, 508.51, 122.65, 517.95, 98.12, 552.85, 79.25, 556.63, 78.31, 563.23, 74.53, 568.89, 75.47, 568.89, 76.42, 572.66, 84.91, 583.04, 97.17, 579.27, 103.78, 579.27, 111.33, 575.49, 124.53, 573.61, 133.02, 571.72, 142.46, 568.89, 149.06, 567.95, 151.89, 564.17, 152.84, 564.17, 146.23, 565.12, 138.68, 567.0, 129.25, 567.0, 120.76, 567.95, 107.55, 567.95, 98.12, 560.4, 118.87, 554.74, 125.48, 551.91, 129.25, 551.91, 133.02, 551.91, 133.02, 554.74, 141.52, 554.74, 143.4, 560.4, 153.78, 560.4, 155.67, 558.51, 159.44, 556.63, 162.27, 556.63, 160.38, 551.91, 158.5, 551.91, 153.78, 551.91, 144.35, 550.97, 136.8, 545.31, 125.48, 539.64, 127.36, 535.87, 129.25, 533.04, 132.08, 529.27, 137.74, 528.32, 141.52, 525.49, 150.01, 520.78, 156.61, 519.83, 158.5, 519.83, 154.72, 522.66, 140.57, 523.61, 133.97, 523.61, 133.97, 515.12, 146.23, 510.4, 151.89, 509.45, 153.78, 508.51, 154.72, 506.62, 155.67, 505.68, 152.84]], "area": 3444.863149999999, "iscrowd": 0, "image_id": 459823, "bbox": [503.79, 74.53, 79.25, 87.74], "category_id": 18, "id": 14890}, {"segmentation": [[84.27, 457.3, 371.91, 494.38, 371.91, 16.85, 8.99, 20.22, 11.24, 216.85, 21.35, 206.74, 23.6, 162.92, 33.71, 148.31, 47.19, 155.06, 68.54, 170.79, 74.16, 186.52, 95.51, 187.64, 120.22, 186.52, 168.54, 147.19, 165.17, 171.91, 155.06, 201.12, 157.3, 212.36, 164.04, 224.72, 170.79, 241.57, 174.16, 260.67, 175.28, 274.16, 171.91, 287.64, 168.54, 300.0, 158.43, 312.36, 148.31, 320.22, 130.34, 324.72, 113.48, 326.97, 108.99, 343.82, 108.99, 376.4, 104.49, 396.63]], "area": 128579.59185000004, "iscrowd": 0, "image_id": 419008, "bbox": [8.99, 16.85, 362.92, 477.53], "category_id": 72, "id": 30982}, {"segmentation": [[358.43, 197.79, 364.71, 198.64, 369.44, 200.82, 376.71, 201.79, 387.57, 209.22, 393.0, 215.79, 394.71, 218.07, 397.57, 220.36, 402.14, 222.93, 409.86, 224.65, 413.57, 225.22, 413.29, 227.5, 418.72, 227.22, 420.61, 224.57, 426.62, 224.91, 427.86, 230.36, 431.57, 230.93, 427.96, 236.2, 422.72, 243.79, 419.29, 252.65, 414.14, 257.79, 389.0, 259.22, 376.71, 258.65, 346.71, 256.65, 322.42, 253.79, 304.99, 251.79, 296.13, 248.08, 290.71, 244.93, 287.56, 241.51, 288.71, 235.22, 282.13, 232.08, 281.56, 228.08, 282.7, 218.36, 285.56, 212.93, 290.42, 207.22, 293.85, 202.64, 294.42, 194.64, 289.28, 190.64, 284.65, 190.68, 273.28, 195.5, 268.55, 195.29, 264.7, 196.64, 258.99, 198.93, 257.03, 197.18, 257.27, 194.36, 263.85, 190.93, 268.99, 188.07, 272.84, 181.87, 277.28, 172.64, 277.28, 167.5, 280.1, 160.94, 285.44, 155.75, 291.11, 153.3, 299.85, 152.64, 307.56, 154.64, 313.56, 160.93, 318.42, 168.93, 320.71, 176.93, 322.14, 191.22, 320.99, 197.22, 318.99, 204.07, 318.14, 205.22, 325.1, 201.19, 332.42, 200.64, 341.57, 200.07, 350.42, 198.36, 355.28, 198.07]], "area": 8680.322749999994, "iscrowd": 0, "image_id": 572574, "bbox": [257.03, 152.64, 174.54, 106.58], "category_id": 16, "id": 36486}, {"segmentation": [[361.13, 244.37, 325.09, 237.32, 298.46, 217.73, 282.01, 213.03, 309.42, 162.9, 350.94, 144.1, 409.69, 143.31, 447.29, 136.26, 463.75, 91.61, 484.11, 40.7, 506.83, 28.16, 530.33, 20.33, 545.21, 20.33, 561.66, 43.05, 589.87, 59.5, 593.78, 72.03, 560.88, 72.03, 538.16, 82.21, 524.06, 109.63, 510.75, 131.56, 505.26, 180.13, 462.18, 221.65, 451.21, 214.6, 421.44, 217.73, 396.38, 230.27, 382.28, 235.75, 358.78, 246.72]], "area": 25364.71849999999, "iscrowd": 0, "image_id": 83483, "bbox": [282.01, 20.33, 311.77, 226.39], "category_id": 16, "id": 36626}, {"segmentation": [[392.9, 238.51, 416.01, 244.67, 416.78, 259.31, 399.06, 284.73, 404.45, 299.37, 446.82, 320.17, 493.05, 313.24, 502.29, 287.82, 464.54, 257.0, 465.31, 220.02, 439.12, 214.63, 407.53, 223.1]], "area": 6992.067500000004, "iscrowd": 0, "image_id": 83483, "bbox": [392.9, 214.63, 109.39, 105.54], "category_id": 16, "id": 36849}, {"segmentation": [[360.54, 179.74, 366.64, 178.47, 366.64, 178.47, 368.25, 176.63, 368.59, 176.05, 370.09, 173.98, 377.8, 174.21, 383.33, 172.83, 398.29, 172.83, 408.99, 173.41, 423.04, 177.9, 434.43, 182.15, 439.96, 182.27, 450.66, 183.07, 463.55, 188.83, 473.04, 192.86, 479.14, 193.2, 480.75, 189.98, 482.02, 189.75, 486.74, 189.06, 491.8, 187.56, 489.73, 185.26, 489.73, 185.15, 492.96, 180.89, 478.34, 176.17, 477.07, 175.48, 463.95, 168.57, 449.33, 160.86, 449.56, 158.33, 462.45, 164.54, 462.45, 164.54, 476.73, 170.76, 477.88, 171.1, 485.7, 173.29, 486.62, 173.41, 491.8, 173.87, 489.62, 170.41, 488.93, 169.84, 480.52, 165.0, 472.93, 157.18, 469.7, 150.85, 468.78, 147.62, 465.79, 142.1, 465.45, 137.84, 465.79, 137.61, 468.09, 138.65, 473.16, 145.09, 488.7, 158.21, 499.75, 165.81, 500.21, 166.15, 490.19, 153.72, 489.85, 152.34, 490.08, 152.23, 490.65, 152.0, 496.75, 156.37, 502.51, 160.75, 505.5, 162.82, 506.65, 163.62, 508.49, 165.58, 508.49, 164.08, 508.61, 162.82, 508.84, 162.24, 508.84, 162.24, 507.23, 162.24, 506.77, 157.87, 499.4, 151.88, 499.63, 149.24, 504.0, 153.03, 505.27, 154.53, 507.69, 156.72, 507.69, 156.72, 508.84, 156.03, 507.8, 154.41, 506.19, 151.31, 501.24, 141.98, 501.24, 141.98, 496.52, 133.47, 496.52, 133.47, 493.99, 129.44, 491.8, 124.4, 491.92, 123.94, 492.73, 122.67, 492.84, 122.56, 493.65, 122.9, 495.03, 124.28, 495.37, 125.09, 497.1, 129.81, 497.1, 129.81, 497.67, 130.85, 498.94, 134.07, 500.44, 135.68, 504.24, 139.94, 504.7, 141.09, 505.62, 144.77, 506.88, 146.15, 508.49, 149.49, 508.84, 145.9, 508.26, 144.4, 505.85, 139.57, 505.85, 139.11, 505.62, 137.49, 506.42, 136.8, 508.84, 140.37, 509.76, 142.21, 510.34, 143.71, 511.03, 144.98, 511.49, 146.24, 512.52, 149.58, 512.52, 149.58, 512.06, 141.64, 511.03, 138.65, 510.8, 136.92, 509.87, 134.62, 509.53, 133.47, 508.15, 130.36, 495.95, 106.24, 493.76, 100.37, 491.23, 93.55, 491.34, 92.63, 490.88, 88.72, 490.54, 87.57, 494.34, 91.6, 494.34, 91.83, 496.87, 97.81, 498.02, 100.69, 499.06, 103.11, 500.67, 106.67, 503.54, 111.39, 506.31, 114.96, 508.26, 117.84, 508.38, 118.07, 504.12, 107.48, 502.28, 105.06, 504.81, 104.37, 509.53, 111.05, 510.57, 113.93, 510.57, 113.93, 509.41, 110.24, 509.18, 108.75, 508.84, 108.06, 508.61, 107.13, 509.87, 103.68, 509.87, 103.57, 508.72, 97.93, 508.61, 94.13, 512.64, 100.11, 517.82, 117.38, 520.81, 126.36, 520.81, 126.36, 524.06, 132.48, 524.69, 139.36, 525.86, 150.06, 525.97, 150.06, 525.97, 149.32, 527.55, 131.31, 527.87, 125.81, 528.19, 124.11, 528.51, 120.93, 529.14, 117.12, 530.1, 113.41, 532.74, 108.75, 535.29, 107.69, 536.34, 110.45, 535.92, 115.64, 535.07, 123.58, 536.03, 119.13, 537.3, 113.2, 537.62, 110.13, 539.63, 105.68, 540.69, 103.56, 542.28, 100.17, 544.92, 102.19, 543.12, 106.64, 543.02, 109.92, 542.49, 114.9, 541.96, 117.23, 541.53, 118.82, 543.65, 115.53, 545.24, 115.0, 546.41, 113.63, 546.72, 112.88, 548.1, 109.39, 552.76, 99.54, 552.76, 99.54, 553.5, 96.47, 556.15, 96.36, 556.26, 97.63, 556.26, 97.74, 556.26, 99.22, 555.83, 103.67, 555.73, 103.99, 558.69, 101.02, 558.59, 105.26, 556.57, 109.39, 553.29, 116.27, 552.87, 116.8, 558.37, 113.52, 558.27, 114.16, 556.89, 116.59, 555.94, 117.97, 554.67, 121.04, 554.46, 122.2, 554.24, 122.73, 552.87, 124.64, 551.81, 125.7, 550.96, 127.39, 549.16, 131.1, 548.52, 131.74, 547.36, 134.28, 547.36, 134.39, 547.25, 134.91, 547.15, 136.08, 546.94, 137.46, 545.03, 146.88, 548.31, 144.87, 548.42, 144.45, 548.84, 142.01, 549.37, 140.95, 549.9, 140.42, 550.11, 140.1, 550.43, 139.36, 550.85, 138.94, 552.34, 137.88, 552.76, 137.14, 559.86, 130.25, 562.29, 126.12, 564.62, 123.69, 564.94, 123.48, 564.94, 123.48, 573.41, 111.83, 575.64, 110.55, 578.07, 116.91, 574.58, 123.16, 571.72, 126.34, 565.58, 133.43, 564.41, 137.14, 563.67, 138.83, 562.61, 140.0, 562.19, 141.27, 562.19, 143.92, 562.19, 145.61, 561.87, 148.9, 561.55, 149.11, 561.76, 149.32, 561.87, 149.32, 556.26, 162.13, 556.26, 162.24, 556.26, 162.24, 564.41, 154.61, 568.65, 151.65, 576.27, 146.67, 579.03, 146.14, 584.11, 141.8, 587.18, 138.83, 589.73, 138.83, 589.73, 138.83, 592.06, 137.88, 592.27, 137.14, 593.01, 136.4, 594.17, 137.14, 594.39, 139.15, 592.16, 142.54, 563.67, 160.76, 562.61, 161.82, 558.16, 166.05, 555.52, 167.85, 548.63, 171.88, 548.63, 171.98, 548.0, 180.56, 546.83, 187.13, 546.83, 187.24, 546.94, 194.33, 547.04, 195.39, 547.68, 201.0, 547.68, 217.95, 547.68, 217.95, 547.68, 217.95, 547.68, 217.95, 547.68, 217.95, 547.68, 217.95, 547.68, 217.95, 547.68, 217.95, 548.42, 226.74, 548.42, 226.74, 549.08, 234.31, 548.01, 239.33, 545.4, 242.92, 542.44, 240.32, 531.68, 234.58, 531.32, 234.49, 529.53, 233.41, 529.53, 233.41, 533.56, 245.05, 534.23, 249.31, 535.8, 252.67, 534.9, 257.15, 534.9, 257.15, 535.58, 260.28, 532.22, 264.53, 532.22, 267.45, 530.43, 277.3, 529.53, 280.43, 527.52, 285.13, 520.14, 285.66, 517.93, 259.1, 509.07, 260.21, 508.34, 267.22, 508.71, 269.43, 508.71, 272.01, 507.6, 279.02, 507.6, 279.02, 507.6, 279.39, 506.86, 303.36, 503.54, 312.95, 497.27, 326.6, 488.42, 334.01, 461.13, 349.87, 432.73, 376.79, 423.51, 389.33, 417.24, 392.28, 404.17, 383.83, 391.46, 383.83, 363.5, 382.14, 360.95, 381.29, 357.57, 380.44, 344.86, 372.82, 344.86, 372.82, 330.45, 369.43, 328.76, 359.26, 336.38, 352.48, 337.23, 351.63, 341.47, 342.31, 348.25, 327.06, 348.25, 327.06, 349.09, 320.28, 345.7, 302.49, 336.38, 296.56, 331.3, 296.56, 317.74, 299.95, 309.27, 302.49, 307.57, 311.81, 306.73, 320.28, 305.88, 324.52, 288.93, 329.6, 281.31, 312.66, 283.0, 295.71, 285.54, 265.21, 301.64, 232.16, 319.44, 221.15, 319.44, 221.15, 319.44, 221.15, 322.83, 217.76, 336.38, 208.44, 336.38, 208.44, 339.77, 204.2, 355.64, 213.4, 355.64, 213.4, 366.56, 218.55, 369.85, 221.02, 369.23, 209.69, 365.94, 202.68, 362.64, 196.09, 359.34, 189.39, 358.73, 186.3, 359.55, 179.5]], "area": 42743.88619999998, "iscrowd": 0, "image_id": 574074, "bbox": [281.31, 87.57, 313.08, 304.71], "category_id": 16, "id": 37031}, {"segmentation": [[225.72, 263.71, 231.94, 265.37, 233.18, 268.27, 235.67, 273.24, 239.4, 275.73, 242.71, 279.46, 248.51, 283.6, 248.93, 285.26, 247.68, 288.99, 246.03, 293.13, 243.12, 296.45, 241.47, 300.59, 241.05, 306.81, 240.64, 313.44, 238.98, 315.51, 238.98, 308.46, 238.15, 303.49, 237.32, 300.18, 234.01, 302.25, 229.87, 303.49, 228.62, 306.81, 225.31, 311.78, 220.34, 315.09, 218.68, 315.09, 221.16, 308.88, 221.58, 306.39, 221.58, 304.32, 216.19, 299.76, 211.22, 295.62, 208.73, 292.72, 205.42, 288.16, 205.0, 282.36, 206.25, 279.87, 208.32, 279.46, 211.63, 276.97, 212.46, 273.66, 212.88, 271.17, 216.19, 265.37, 217.85, 263.3, 219.51, 262.47]], "area": 1289.3870999999997, "iscrowd": 0, "image_id": 168662, "bbox": [205.0, 262.47, 43.93, 53.04], "category_id": 16, "id": 38233}, {"segmentation": [[280.84, 220.82, 293.78, 217.37, 303.7, 218.24, 309.73, 221.69, 314.48, 232.9, 318.36, 243.68, 328.28, 252.74, 334.75, 259.64, 343.81, 273.01, 356.31, 289.83, 362.35, 306.22, 352.86, 307.95, 346.83, 314.41, 318.36, 316.14, 313.19, 317.43, 306.28, 318.73, 298.95, 315.28, 297.66, 317.43, 289.03, 322.18, 285.15, 319.59, 286.44, 311.83, 275.23, 311.83, 258.41, 307.08, 254.53, 297.16, 251.08, 290.69, 251.51, 286.81, 251.94, 282.07, 255.82, 279.05, 257.12, 275.6, 265.74, 266.97, 274.8, 260.07, 273.94, 255.76, 275.23, 250.58, 276.52, 243.68, 275.66, 241.96, 278.25, 238.08, 278.25, 232.47, 277.82, 226.43]], "area": 6807.12255, "iscrowd": 0, "image_id": 83483, "bbox": [251.08, 217.37, 111.27, 104.81], "category_id": 16, "id": 40735}, {"segmentation": [[268.6, 347.4, 262.67, 326.22, 285.54, 299.1, 287.24, 251.65, 305.88, 233.01, 337.23, 210.13, 342.31, 205.05, 356.72, 217.76, 366.04, 222.84, 371.12, 216.06, 368.58, 201.66, 360.95, 192.34, 360.95, 184.71, 361.8, 170.31, 355.87, 163.53, 349.94, 149.13, 353.33, 129.64, 361.8, 117.78, 376.21, 103.37, 392.31, 95.75, 391.46, 83.88, 360.11, 100.83, 352.48, 108.46, 338.92, 130.49, 337.23, 111.85, 339.77, 93.2, 343.16, 76.26, 343.16, 65.24, 336.38, 61.85, 327.06, 77.95, 321.98, 97.44, 321.98, 104.22, 314.35, 92.36, 302.49, 83.88, 295.71, 78.8, 285.54, 76.26, 282.15, 74.56, 284.7, 89.82, 284.7, 101.68, 288.09, 109.3, 278.77, 103.37, 270.29, 86.43, 260.97, 75.41, 255.04, 76.26, 260.12, 89.82, 266.9, 100.83, 262.67, 103.37, 244.03, 96.59, 229.62, 96.59, 245.72, 110.15, 258.43, 112.69, 269.45, 116.08, 273.68, 121.17, 275.38, 128.79, 265.21, 128.79, 254.19, 128.79, 249.11, 131.33, 233.86, 133.03, 226.23, 131.33, 214.37, 130.49, 201.66, 131.33, 181.32, 133.03, 165.23, 135.57, 139.81, 138.96, 126.25, 148.28, 104.22, 169.46, 82.19, 193.19, 67.78, 200.81, 62.7, 210.98, 55.08, 215.22, 66.09, 223.69, 69.48, 234.71, 78.8, 244.03, 91.51, 249.96, 98.29, 264.36, 105.91, 268.6, 113.54, 274.53, 119.47, 274.53, 126.25, 283.0, 133.03, 291.48, 139.81, 304.18, 143.2, 311.81, 144.89, 311.81, 152.52, 314.35, 155.91, 324.52, 161.84, 352.48, 172.85, 360.95, 172.0, 338.92, 169.46, 321.98, 164.38, 308.42, 163.53, 303.34, 170.31, 310.12, 172.85, 321.98, 178.78, 327.06, 180.48, 332.15, 188.1, 331.3, 185.56, 340.62, 190.65, 332.99, 183.02, 308.42, 179.63, 299.95, 174.55, 297.41, 198.27, 301.64, 215.22, 297.41, 222.0, 295.71, 224.54, 306.73, 221.15, 324.52, 222.84, 330.45, 224.54, 336.38, 223.69, 343.16, 231.32, 341.47, 231.32, 325.37, 232.16, 311.81, 234.71, 307.57, 240.64, 315.2, 238.09, 331.3, 238.09, 345.7, 236.4, 355.87, 235.55, 363.5, 233.86, 369.43, 246.57, 362.65, 249.96, 349.09, 249.11, 340.62]], "area": 46185.661, "iscrowd": 0, "image_id": 574074, "bbox": [55.08, 61.85, 337.23, 307.58], "category_id": 16, "id": 40833}, {"segmentation": [[536.04, 238.94, 546.19, 234.71, 558.03, 179.75, 558.03, 183.13, 570.71, 172.99, 563.94, 192.43, 573.24, 191.59, 564.79, 213.57, 558.03, 241.47, 610.45, 183.98, 605.37, 198.35, 562.25, 242.32, 603.68, 227.1, 612.98, 234.71, 568.17, 252.46, 634.97, 244.85, 635.81, 251.62, 566.48, 257.54, 604.53, 282.9, 623.97, 274.45, 617.21, 287.98, 634.12, 281.21, 634.12, 284.59, 640.0, 284.59, 640.0, 287.98, 636.66, 289.67, 628.2, 295.58, 640.0, 309.96, 640.0, 386.9, 495.46, 389.43, 518.29, 352.23, 536.04, 321.79, 542.81, 308.27, 536.89, 302.35, 523.36, 313.34, 513.21, 317.57, 512.37, 298.12, 519.13, 284.59, 515.75, 279.52, 508.99, 272.76, 513.21, 259.23, 529.28, 244.01, 530.97, 233.86]], "area": 17404.9776, "iscrowd": 0, "image_id": 574074, "bbox": [495.46, 172.99, 144.54, 216.44], "category_id": 16, "id": 41193}, {"segmentation": [[8.64, 417.84, 8.64, 392.9, 6.72, 381.39, 10.55, 368.91, 18.23, 356.44, 22.07, 349.72, 26.86, 339.17, 26.86, 327.66, 29.74, 307.51, 36.46, 295.99, 47.97, 284.48, 66.2, 271.05, 76.76, 263.37, 84.43, 259.53, 101.7, 252.82, 117.05, 251.86, 137.2, 249.94, 153.51, 248.98, 168.86, 247.06, 178.46, 247.06, 194.77, 245.14, 205.32, 239.39, 212.04, 224.99, 213.96, 217.32, 214.92, 204.84, 212.04, 195.25, 212.04, 189.49, 218.76, 182.78, 218.76, 175.1, 216.84, 168.39, 214.92, 159.75, 213.0, 145.36, 212.04, 138.64, 207.24, 124.25, 206.28, 118.49, 204.36, 108.9, 204.36, 98.34, 205.32, 92.59, 212.04, 92.59, 215.88, 93.55, 220.68, 95.47, 223.55, 97.39, 225.47, 100.26, 235.07, 107.94, 240.82, 112.74, 244.66, 115.61, 253.3, 124.25, 255.22, 127.13, 258.09, 133.84, 260.97, 137.68, 267.69, 141.52, 272.49, 141.52, 278.24, 145.36, 279.2, 146.32, 298.39, 146.32, 303.19, 146.32, 316.62, 142.48, 326.22, 142.48, 334.85, 142.48, 342.53, 142.48, 348.28, 143.44, 355.96, 144.4, 365.55, 146.32, 374.19, 149.2, 383.78, 145.36, 391.46, 140.56, 395.3, 133.84, 403.93, 124.25, 417.36, 110.82, 430.8, 97.39, 449.99, 92.59, 460.54, 95.47, 464.38, 105.06, 460.54, 132.89, 458.62, 143.44, 456.7, 153.99, 452.86, 162.63, 450.95, 169.34, 446.15, 179.9, 446.15, 179.9, 444.23, 195.25, 443.27, 200.05, 438.47, 205.8, 438.47, 208.68, 438.47, 213.48, 440.39, 222.11, 443.27, 227.87, 444.23, 234.59, 447.11, 248.02, 447.11, 251.86, 446.15, 258.57, 445.19, 265.29, 444.23, 282.56, 444.23, 288.32, 444.23, 294.07, 444.23, 300.79, 443.27, 305.59, 439.43, 313.26, 437.51, 320.94, 442.31, 332.45, 445.19, 340.13, 452.86, 351.64, 455.74, 358.36, 459.58, 374.67, 452.86, 377.55, 445.19, 374.67, 440.39, 367.95, 440.39, 371.79, 440.39, 373.71, 436.55, 379.47, 436.55, 384.26, 437.51, 396.74, 435.59, 399.61, 433.68, 406.33, 431.76, 413.05, 428.88, 416.89, 419.28, 418.8]], "area": 98703.84380000002, "iscrowd": 0, "image_id": 453507, "bbox": [6.72, 92.59, 457.66, 326.21], "category_id": 17, "id": 47841}, {"segmentation": [[0.0, 329.44, 34.36, 276.47, 57.27, 212.04, 105.95, 192.0, 133.15, 159.06, 171.81, 164.79, 178.97, 224.93, 176.11, 262.15, 230.51, 267.88, 274.9, 276.47, 313.56, 335.17, 313.56, 358.08, 343.62, 380.99, 356.51, 405.33, 345.06, 451.15, 342.19, 488.37, 290.65, 488.37, 267.74, 498.39, 251.99, 508.42, 274.9, 521.3, 322.15, 555.66, 8.59, 561.39]], "area": 100302.12569999998, "iscrowd": 0, "image_id": 157405, "bbox": [0.0, 159.06, 356.51, 402.33], "category_id": 17, "id": 48182}, {"segmentation": [[20.13, 207.04, 24.61, 155.59, 48.1, 147.76, 78.3, 188.03, 123.04, 181.32, 170.02, 145.52, 153.24, 211.52, 181.21, 257.38, 165.55, 312.19, 137.58, 324.49, 111.86, 324.49, 98.43, 413.98, 2.24, 412.86, 10.07, 212.64]], "area": 32928.0607, "iscrowd": 0, "image_id": 419008, "bbox": [2.24, 145.52, 178.97, 268.46], "category_id": 17, "id": 50094}, {"segmentation": [[139.01, 202.32, 140.39, 221.59, 151.4, 243.61, 211.96, 331.7, 211.96, 337.2, 272.52, 353.72, 290.41, 311.05, 291.78, 273.89, 304.17, 268.39, 317.94, 243.61, 317.94, 217.46, 327.57, 188.56, 331.7, 147.27, 322.06, 94.97, 323.44, 72.95, 341.33, 33.03, 338.58, 17.89, 337.2, 16.52, 317.94, 20.65, 293.16, 35.78, 264.26, 35.78, 222.97, 26.15, 152.77, 1.38, 154.15, 34.41, 152.77, 48.17, 129.38, 78.45, 129.38, 101.85, 139.01, 139.01, 126.62, 139.01, 83.96, 145.89, 55.05, 166.54, 26.15, 214.71, 24.77, 220.22, 24.77, 247.74, 38.54, 276.65, 63.31, 291.78, 93.59, 294.54, 123.87, 289.03, 133.51, 271.14, 111.48, 254.62, 74.32, 221.59, 86.71, 188.56, 129.38, 183.05]], "area": 62811.57205, "iscrowd": 0, "image_id": 112719, "bbox": [24.77, 1.38, 316.56, 352.34], "category_id": 17, "id": 51772}, {"segmentation": [[47.28, 280.75, 55.5, 267.38, 68.87, 254.02, 96.62, 242.72, 113.06, 240.66, 123.34, 244.77, 144.93, 241.69, 161.37, 238.61, 187.07, 238.61, 201.46, 237.58, 207.62, 233.47, 227.15, 213.94, 259.01, 196.46, 275.46, 190.3, 281.63, 184.13, 277.52, 167.68, 289.85, 180.02, 299.1, 180.02, 301.16, 165.63, 310.41, 182.07, 325.82, 194.41, 343.3, 232.44, 357.69, 271.5, 349.46, 292.05, 334.05, 291.02, 319.66, 282.8, 303.21, 271.5, 289.85, 263.27, 285.74, 268.41, 279.57, 293.08, 279.57, 313.64, 276.49, 340.36, 268.27, 354.75, 255.93, 377.36, 248.74, 415.39, 244.63, 441.09, 254.9, 462.67, 255.93, 469.87, 259.01, 471.92, 237.43, 473.98, 231.26, 464.73, 228.18, 453.42, 226.12, 443.14, 230.24, 421.56, 232.29, 375.31, 230.24, 369.14, 225.1, 373.25, 220.99, 398.95, 214.82, 441.09, 216.87, 451.37, 216.87, 462.67, 222.01, 469.87, 220.99, 475.01, 195.29, 472.95, 197.34, 461.65, 197.34, 444.17, 199.4, 435.95, 203.51, 424.64, 202.48, 405.11, 202.48, 390.72, 201.46, 379.42, 195.29, 365.03, 153.15, 361.95, 126.42, 355.78, 107.92, 371.2, 104.84, 381.47, 109.98, 397.92, 116.15, 408.2, 117.17, 431.84, 113.06, 448.28, 112.03, 451.37, 84.28, 452.4, 79.14, 448.28, 76.06, 414.37, 71.95, 392.78, 61.67, 377.36, 55.5, 345.5, 61.67, 330.08]], "area": 43472.922449999984, "iscrowd": 0, "image_id": 386581, "bbox": [47.28, 165.63, 310.41, 309.38], "category_id": 19, "id": 57618}, {"segmentation": [[218.74, 525.1, 217.77, 513.02, 212.94, 510.61, 209.56, 502.4, 209.56, 495.15, 213.91, 487.42, 219.7, 478.25, 226.47, 476.31, 233.23, 477.28, 235.64, 477.28, 235.16, 481.14, 244.82, 491.29, 246.52, 507.25, 247.01, 514.01, 243.63, 514.98, 245.07, 528.99, 242.18, 528.99, 240.24, 516.43, 238.8, 510.63, 233.97, 512.08, 228.65, 512.08, 229.14, 518.84, 232.52, 522.71, 233.0, 527.54, 229.62, 528.5, 222.86, 528.5, 222.86, 528.02, 220.92, 527.06, 218.51, 526.57, 218.51, 523.19]], "area": 1313.2664999999997, "iscrowd": 0, "image_id": 3947, "bbox": [209.56, 476.31, 37.45, 52.68], "category_id": 20, "id": 64042}, {"segmentation": [[248.74, 517.04, 244.96, 515.9, 248.74, 508.72, 245.34, 492.47, 245.34, 491.34, 251.01, 490.58, 257.81, 490.2, 260.83, 490.58, 263.86, 493.98, 265.75, 495.87, 269.9, 496.63, 269.53, 502.68, 264.61, 507.97, 262.35, 513.64, 262.35, 521.2, 261.21, 529.13, 254.41, 526.49, 254.03, 520.06, 252.52, 518.93, 249.12, 524.98, 247.61, 524.6]], "area": 607.0426500000001, "iscrowd": 0, "image_id": 3947, "bbox": [244.96, 490.2, 24.94, 38.93], "category_id": 20, "id": 65012}, {"segmentation": [[488.37, 501.65, 487.23, 494.09, 489.12, 490.69, 495.55, 490.31, 499.33, 491.82, 504.24, 494.85, 505.0, 499.76, 505.0, 502.03, 504.62, 505.05, 503.86, 510.34, 502.35, 512.61, 498.95, 511.86, 497.44, 508.08, 496.68, 507.32, 495.92, 507.32, 494.79, 508.08, 494.79, 509.59, 494.79, 510.72, 493.28, 512.61, 491.77, 509.59, 490.25, 506.94, 489.5, 502.03, 489.5, 501.27]], "area": 294.82939999999996, "iscrowd": 0, "image_id": 3947, "bbox": [487.23, 490.31, 17.77, 22.3], "category_id": 20, "id": 65203}, {"segmentation": [[294.98, 526.29, 294.73, 520.8, 294.98, 515.07, 290.24, 512.83, 289.25, 507.59, 292.99, 498.11, 296.48, 491.63, 300.47, 491.13, 304.46, 492.13, 306.45, 494.62, 305.21, 496.12, 309.94, 495.62, 315.68, 496.37, 319.17, 502.35, 320.42, 505.09, 320.42, 509.83, 321.17, 516.07, 319.92, 522.3, 319.92, 528.29, 317.43, 528.29, 316.93, 525.04, 316.68, 519.56, 316.68, 515.57, 313.68, 510.83, 311.94, 513.82, 313.68, 519.56, 311.69, 527.04, 309.2, 527.04, 309.2, 519.31, 306.7, 516.07, 304.46, 516.07, 304.71, 527.04, 304.96, 528.04, 302.21, 528.29, 301.47, 523.05, 300.47, 515.57, 298.47, 515.32, 298.22, 528.04, 295.23, 527.79, 294.98, 524.05]], "area": 759.5012499999999, "iscrowd": 0, "image_id": 3947, "bbox": [289.25, 491.13, 31.92, 37.16], "category_id": 20, "id": 65890}, {"segmentation": [[121.12, 395.01, 116.99, 384.0, 105.98, 384.0, 105.98, 370.24, 114.24, 316.56, 101.85, 304.17, 104.6, 224.34, 86.71, 205.08, 77.08, 112.86, 97.72, 60.56, 133.51, 56.43, 183.05, 57.81, 262.88, 75.7, 300.04, 63.31, 419.78, 85.33, 498.24, 121.12, 542.28, 126.62, 562.92, 123.87, 543.66, 104.6, 546.41, 64.69, 567.05, 46.8, 565.68, 83.96, 583.57, 107.35, 608.34, 121.12, 630.37, 79.83, 640.0, 71.57, 630.37, 126.62, 633.12, 176.17, 624.86, 196.82, 606.97, 200.95, 587.7, 203.7, 560.17, 217.46, 524.39, 232.6, 487.23, 253.25, 458.32, 253.25, 426.67, 242.24, 422.54, 264.26, 434.92, 291.78, 467.96, 287.66, 463.83, 300.04, 448.69, 311.05, 425.29, 306.92, 407.4, 304.17, 396.39, 293.16, 382.62, 282.15, 356.47, 282.15, 352.34, 305.55, 337.2, 312.43, 337.2, 312.43, 316.56, 326.19, 319.31, 312.43, 231.23, 279.4, 199.57, 250.49, 177.55, 246.37, 172.04, 253.25, 162.41, 323.44, 172.04, 368.86, 178.92, 379.87, 154.15, 381.25, 147.27, 361.98, 134.88, 323.44, 133.51, 328.95, 134.88, 363.35, 145.89, 392.26, 115.61, 403.27]], "area": 105678.17279999999, "iscrowd": 0, "image_id": 554805, "bbox": [77.08, 46.8, 562.92, 356.47], "category_id": 21, "id": 71887}, {"segmentation": [[483.94, 352.35, 481.07, 339.47, 472.48, 319.42, 469.62, 296.51, 466.76, 285.06, 433.83, 290.79, 423.8, 256.42, 426.67, 252.13, 430.96, 247.83, 458.17, 253.56, 476.78, 256.42, 486.8, 257.86, 516.87, 252.13, 534.05, 239.24, 546.94, 233.52, 552.66, 226.36, 559.82, 220.63, 574.14, 209.18, 599.91, 203.45, 627.11, 199.15, 594.18, 223.49, 591.32, 253.56, 588.46, 295.08, 588.46, 332.31, 587.02, 352.35, 594.18, 369.53, 599.91, 415.35, 587.02, 455.44, 582.73, 478.35, 582.73, 504.12, 587.02, 529.89, 585.59, 558.53, 572.71, 562.82, 568.41, 559.96, 564.12, 555.66, 568.41, 537.05, 571.28, 529.89, 569.84, 517.01, 574.14, 495.53, 574.14, 476.92, 568.41, 468.33, 565.55, 448.28, 568.41, 435.4, 575.57, 418.21, 565.55, 408.19, 561.25, 405.33, 544.07, 413.92, 535.48, 418.21, 529.75, 436.83, 525.46, 466.89, 522.6, 486.94, 525.46, 512.71, 529.75, 525.6, 529.75, 565.69, 508.28, 569.98, 502.55, 562.82, 505.41, 548.51, 506.85, 529.89, 506.85, 524.17, 511.14, 501.26, 511.14, 475.49, 505.41, 454.01, 506.85, 436.83, 495.39, 408.19, 501.12, 366.67, 495.39, 358.08, 486.8, 356.65, 482.51, 353.78, 482.51, 346.63]], "area": 27067.059150000016, "iscrowd": 0, "image_id": 554805, "bbox": [423.8, 199.15, 203.31, 370.83], "category_id": 21, "id": 72593}, {"segmentation": [[146.44, 332.42, 151.35, 326.34, 155.56, 322.6, 160.94, 322.13, 167.49, 320.26, 169.12, 319.32, 177.31, 320.96, 190.64, 324.24, 200.46, 324.7, 206.54, 325.17, 210.52, 323.53, 211.69, 320.73, 214.73, 314.88, 214.96, 314.18, 218.94, 314.65, 225.25, 315.35, 230.4, 318.15, 231.8, 319.09, 242.32, 316.75, 246.3, 315.82, 240.69, 319.79, 235.31, 324.0, 235.54, 326.34, 240.22, 328.21, 244.2, 329.85, 247.24, 330.08, 242.09, 333.12, 237.65, 333.12, 237.18, 333.12, 238.35, 340.14, 237.41, 347.15, 235.54, 354.4, 230.87, 362.59, 231.1, 373.11, 227.59, 374.52, 225.25, 376.62, 223.85, 376.62, 222.91, 384.34, 220.34, 389.72, 220.81, 398.14, 222.91, 402.35, 223.85, 404.22, 220.34, 403.98, 216.83, 401.64, 215.9, 398.14, 215.2, 396.03, 215.9, 386.21, 215.66, 373.11, 212.39, 373.58, 213.33, 378.26, 213.56, 383.87, 211.69, 389.72, 212.62, 397.67, 214.96, 401.64, 214.96, 406.56, 206.08, 403.98, 207.24, 401.88, 206.54, 397.9, 207.95, 387.14, 205.84, 381.3, 205.84, 375.69, 203.74, 367.5, 196.95, 368.2, 190.87, 368.67, 186.43, 371.24, 185.03, 372.41, 183.39, 373.58, 182.46, 373.35, 182.46, 370.77, 173.1, 364.46, 167.96, 359.31, 163.51, 362.36, 164.45, 368.2, 164.68, 373.35, 163.04, 377.79, 162.58, 385.04, 164.92, 395.56, 171.93, 402.35, 162.34, 402.11, 162.11, 399.07, 160.94, 399.54, 158.6, 388.08, 155.56, 375.45, 153.69, 382.23, 151.82, 392.76, 156.73, 399.77, 149.25, 400.24, 148.78, 396.03, 146.91, 394.39, 148.78, 381.06, 148.54, 372.18, 150.88, 369.14, 152.75, 364.46, 148.08, 351.13, 147.61, 367.27, 148.78, 370.77, 146.44, 378.96, 144.34, 382.23, 143.63, 372.41, 143.63, 367.73, 144.57, 355.57, 144.57, 347.62]], "area": 5189.244950000004, "iscrowd": 0, "image_id": 442223, "bbox": [143.63, 314.18, 103.61, 92.38], "category_id": 21, "id": 73552}, {"segmentation": [[171.13, 365.21, 174.48, 387.57, 177.83, 396.51, 171.69, 394.27, 168.89, 390.36, 168.33, 386.45, 164.98, 390.36, 163.86, 380.3, 164.42, 374.15, 164.42, 369.68, 165.54, 360.74, 166.1, 360.18, 169.45, 363.54], [151.01, 326.65, 157.71, 317.15, 164.42, 314.35, 178.95, 311.56, 194.04, 311.56, 209.13, 314.35, 214.72, 314.91, 222.55, 309.32, 227.02, 307.09, 233.16, 309.32, 234.84, 316.59, 235.4, 317.15, 244.34, 314.91, 240.43, 311.0, 234.28, 307.09, 230.37, 303.73, 232.05, 302.62, 239.87, 307.09, 252.73, 316.03, 261.67, 311.56, 271.73, 300.38, 275.08, 299.26, 265.02, 314.35, 264.46, 318.82, 263.34, 325.53, 262.23, 328.88, 263.31, 342.55, 262.49, 345.02, 259.81, 346.67, 256.52, 346.46, 253.63, 346.88, 250.54, 350.58, 248.89, 355.73, 246.22, 357.79, 241.27, 359.44, 237.98, 360.47, 237.36, 360.47, 236.53, 359.03, 237.36, 355.12, 240.24, 349.76, 242.71, 347.08, 243.13, 345.23, 241.48, 343.79, 241.07, 343.99, 238.8, 344.2, 237.77, 336.58, 237.15, 333.9, 238.18, 332.87, 241.07, 333.28, 247.04, 331.01, 247.86, 329.78, 243.54, 328.75, 239.83, 327.92, 236.53, 326.69, 235.92, 324.63, 237.36, 323.19, 240.45, 321.13, 243.54, 319.07, 246.42, 316.39, 246.63, 316.18, 243.33, 316.18, 235.5, 318.24, 231.38, 318.86, 229.74, 318.66, 225.0, 316.18, 220.26, 315.36, 216.55, 314.54, 213.67, 316.39, 210.99, 321.75, 208.31, 323.6, 206.46, 324.01, 202.75, 324.42, 195.54, 324.42, 186.48, 323.6, 177.21, 320.51, 170.62, 319.07, 167.53, 319.48, 163.41, 321.13, 157.43, 321.75, 154.96, 322.98, 152.49, 325.25]], "area": 1905.0344500000003, "iscrowd": 0, "image_id": 442223, "bbox": [151.01, 299.26, 124.07, 97.25], "category_id": 21, "id": 73782}, {"segmentation": [[382.9, 332.23, 399.1, 320.56, 411.42, 330.29, 415.31, 332.88, 422.44, 332.88, 435.41, 316.03, 454.85, 319.27, 465.88, 327.7, 469.76, 328.99, 474.3, 330.29, 557.28, 309.54, 592.93, 330.94, 605.9, 347.14, 604.6, 397.71, 604.6, 453.46, 605.9, 473.55, 603.31, 532.55, 582.56, 528.66, 583.21, 511.15, 587.1, 492.35, 587.1, 486.52, 574.14, 448.27, 570.89, 447.62, 576.73, 462.53, 572.19, 509.21, 571.54, 536.44, 554.69, 529.31, 559.87, 487.82, 552.09, 466.42, 533.94, 430.77, 511.25, 438.55, 476.25, 438.55, 469.76, 467.72, 465.23, 498.19, 458.74, 496.89, 454.85, 476.15, 454.21, 454.76, 456.8, 438.55, 441.89, 441.14, 442.54, 461.89, 436.7, 493.0, 429.57, 488.46, 431.52, 461.24, 419.85, 424.94, 410.12, 405.49, 395.21, 376.96, 390.03, 334.18, 384.19, 331.59]], "area": 28949.146399999983, "iscrowd": 0, "image_id": 409850, "bbox": [382.9, 309.54, 223.0, 226.9], "category_id": 21, "id": 75590}, {"segmentation": [[167.19, 512.68, 200.09, 568.87, 224.75, 572.98, 278.2, 611.35, 322.06, 601.76, 291.91, 527.76, 260.39, 511.31, 216.53, 537.35, 189.12, 508.57, 180.9, 500.35, 172.68, 500.35], [383.73, 470.2, 397.43, 468.83, 470.06, 501.72, 498.84, 564.76, 493.36, 588.06, 481.03, 581.2, 438.54, 605.87, 379.61, 605.87, 376.87, 470.2]], "area": 20864.7733, "iscrowd": 0, "image_id": 409850, "bbox": [167.19, 468.83, 331.65, 142.52], "category_id": 21, "id": 76612}, {"segmentation": [[1.17, 464.68, 16.23, 479.74, 26.94, 493.79, 32.63, 503.83, 39.66, 517.89, 47.36, 535.96, 55.72, 549.01, 63.42, 563.41, 70.12, 570.77, 103.92, 636.7, 105.59, 640.0, 0.5, 638.37, 0.5, 558.39, 1.17, 491.45, 0.0, 464.34]], "area": 9934.500649999998, "iscrowd": 0, "image_id": 409850, "bbox": [0.0, 464.34, 105.59, 175.66], "category_id": 21, "id": 77216}, {"segmentation": [[526.43, 483.63, 535.83, 466.57, 533.39, 447.07, 528.17, 436.28, 488.48, 438.37, 477.0, 439.07, 470.38, 469.7, 470.38, 481.89, 496.84, 481.54, 522.6, 483.98], [455.76, 480.15, 454.02, 452.64, 457.15, 439.07, 450.89, 441.5, 442.18, 441.5, 441.49, 463.78, 440.09, 479.8], [428.95, 481.54, 429.65, 457.17, 421.29, 422.36, 411.2, 408.43, 399.36, 415.74, 385.78, 419.22, 380.21, 436.28, 379.86, 448.12, 403.19, 451.95, 413.98, 459.95, 420.6, 472.84, 425.82, 485.37]], "area": 5105.24165, "iscrowd": 0, "image_id": 409850, "bbox": [379.86, 408.43, 155.97, 76.94], "category_id": 21, "id": 77673}, {"segmentation": [[449.82, 260.44, 466.31, 245.78, 507.54, 223.8, 519.45, 199.98, 639.46, 220.13, 639.46, 421.68, 463.56, 418.01, 441.57, 396.94, 440.66, 396.94, 436.99, 304.41, 450.74, 260.44]], "area": 39229.078400000006, "iscrowd": 0, "image_id": 453507, "bbox": [436.99, 199.98, 202.47, 221.7], "category_id": 63, "id": 113807}, {"segmentation": [[266.47, 502.6, 273.55, 502.6, 276.63, 506.29, 276.32, 512.15, 274.78, 518.31, 273.86, 523.54, 273.86, 527.24, 272.01, 532.47, 274.17, 535.55, 276.63, 538.01, 276.63, 538.32, 279.1, 539.55, 287.41, 526.31, 290.49, 523.54, 295.11, 536.78, 296.96, 552.18, 297.57, 559.88, 296.34, 567.27, 291.11, 574.05, 286.8, 576.51, 285.87, 569.74, 283.41, 559.26, 283.1, 549.41, 279.1, 549.41, 277.56, 560.5, 274.78, 562.04, 266.16, 567.89, 263.7, 572.51, 263.39, 573.74, 258.15, 578.67, 249.22, 578.36, 247.38, 566.35, 246.76, 559.57, 245.84, 551.87, 249.22, 539.55, 250.15, 528.16, 249.84, 522.92, 250.76, 520.15, 253.53, 517.38, 258.77, 511.53, 265.55, 505.99]], "area": 2360.986949999999, "iscrowd": 0, "image_id": 573549, "bbox": [245.84, 502.6, 51.73, 76.07], "category_id": 2, "id": 127029}, {"segmentation": [[358.7, 278.88, 351.45, 256.07, 408.47, 266.44, 466.52, 302.72, 511.1, 315.16, 601.3, 332.79, 602.33, 362.85, 617.88, 370.11, 610.63, 399.91, 595.08, 414.43, 581.6, 424.79, 569.16, 420.65, 532.87, 440.35, 469.63, 432.05, 466.52, 431.02, 457.19, 457.97, 439.57, 459.01, 419.87, 462.12, 391.88, 450.71, 383.59, 435.16, 382.55, 417.54, 381.51, 412.35, 368.03, 405.1, 372.18, 368.81, 386.7, 359.48, 392.92, 348.08, 398.1, 329.42, 397.06, 315.94, 391.88, 306.61, 389.81, 291.06, 379.44, 285.87, 365.96, 292.1, 365.96, 306.61, 365.96, 319.05, 362.85, 322.16, 360.78, 311.79, 357.67, 293.13, 356.63, 280.69], [296.5, 266.18, 289.24, 276.54, 288.21, 287.95, 286.13, 297.28, 280.95, 319.05, 277.84, 331.49, 270.58, 344.97, 265.4, 357.41, 260.22, 368.81, 258.14, 370.89, 357.67, 411.32, 358.7, 375.03, 346.26, 359.48, 334.86, 342.89, 327.6, 326.31, 312.05, 298.32]], "area": 37789.55095, "iscrowd": 0, "image_id": 386581, "bbox": [258.14, 256.07, 359.74, 206.05], "category_id": 3, "id": 132089}, {"segmentation": [[573.95, 138.23, 584.4, 139.63, 593.12, 151.83, 622.75, 162.98, 627.28, 166.12, 629.02, 171.35, 628.33, 177.62, 625.19, 185.29, 623.45, 182.5, 619.61, 177.97, 613.69, 169.95, 606.71, 166.82, 598.7, 162.63, 591.03, 157.4, 586.15, 153.22, 578.48, 146.25, 573.6, 142.41, 572.9, 139.28]], "area": 592.2805999999994, "iscrowd": 0, "image_id": 168662, "bbox": [572.9, 138.23, 56.12, 47.06], "category_id": 3, "id": 133558}, {"segmentation": [[266.04, 302.15, 264.17, 286.78, 256.29, 273.65, 230.42, 273.65, 227.04, 283.4, 222.17, 283.03, 222.92, 286.4, 225.17, 286.03, 223.29, 302.9, 229.29, 305.53, 230.04, 302.9, 265.29, 302.53]], "area": 1096.095000000001, "iscrowd": 0, "image_id": 24522, "bbox": [222.17, 273.65, 43.87, 31.88], "category_id": 3, "id": 137525}, {"segmentation": [[223.38, 299.09, 217.91, 299.67, 217.91, 301.68, 211.58, 302.54, 211.3, 301.68, 211.58, 297.08, 211.87, 287.87, 213.31, 282.11, 216.76, 276.35, 218.78, 273.48, 226.55, 273.19, 229.43, 272.33, 229.43, 278.94, 225.97, 282.97, 222.23, 283.26, 222.23, 286.71, 225.68, 287.58, 224.25, 297.94]], "area": 346.1514, "iscrowd": 0, "image_id": 24522, "bbox": [211.3, 272.33, 18.13, 30.21], "category_id": 3, "id": 138665}, {"segmentation": [[182.7, 290.52, 184.11, 291.07, 185.21, 290.76, 185.21, 289.27, 194.62, 289.03, 195.4, 290.6, 197.36, 290.91, 198.61, 290.21, 198.07, 287.23, 197.83, 284.64, 197.75, 282.76, 197.28, 281.43, 196.34, 280.25, 195.87, 278.05, 195.32, 276.33, 193.44, 275.94, 191.01, 275.55, 188.58, 275.78, 186.07, 275.86, 185.36, 277.43, 184.11, 278.13, 183.4, 280.49, 183.17, 281.74, 182.3, 285.19]], "area": 193.15564999999984, "iscrowd": 0, "image_id": 24522, "bbox": [182.3, 275.55, 16.31, 15.52], "category_id": 3, "id": 138981}, {"segmentation": [[457.89, 230.08, 436.09, 241.58, 409.43, 251.28, 403.98, 257.33, 415.49, 272.48, 427.6, 279.14, 434.87, 274.29, 449.41, 270.66, 468.19, 259.76, 481.52, 256.12, 483.94, 247.64, 490.0, 235.53, 494.84, 230.68, 513.01, 241.58, 530.58, 244.01, 544.51, 240.98, 542.09, 231.89, 534.82, 227.05, 517.86, 226.44, 499.08, 225.23, 488.78, 224.02]], "area": 3166.4445500000006, "iscrowd": 0, "image_id": 386581, "bbox": [403.98, 224.02, 140.53, 55.12], "category_id": 3, "id": 139251}, {"segmentation": [[440.27, 232.1, 422.01, 228.88, 409.13, 228.88, 405.91, 229.95, 401.61, 232.1, 395.17, 239.62, 375.84, 244.99, 374.77, 249.28, 374.77, 253.58, 388.72, 258.95, 401.61, 260.02, 413.42, 258.95, 425.23, 241.76, 440.27, 232.1]], "area": 1148.3219, "iscrowd": 0, "image_id": 386581, "bbox": [374.77, 228.88, 65.5, 31.14], "category_id": 3, "id": 140637}, {"segmentation": [[48.32, 258.95, 35.44, 261.09, 32.21, 268.61, 27.92, 277.2, 21.48, 279.35, 13.96, 282.57, 12.89, 290.09, 16.11, 308.34, 21.48, 323.37, 32.21, 329.82, 38.66, 327.67, 52.62, 324.45, 60.13, 325.52, 57.99, 308.34, 54.77, 292.23, 55.84, 277.2, 60.13, 271.83]], "area": 2393.1599500000007, "iscrowd": 0, "image_id": 386581, "bbox": [12.89, 258.95, 47.24, 70.87], "category_id": 3, "id": 141246}, {"segmentation": [[160.12, 285.27, 159.35, 287.59, 156.25, 284.11, 155.86, 280.24, 157.02, 276.38, 160.89, 276.38, 161.67, 278.7, 162.83, 281.79, 164.37, 284.11, 162.83, 284.11, 160.89, 284.89]], "area": 55.96674999999989, "iscrowd": 0, "image_id": 24522, "bbox": [155.86, 276.38, 8.51, 11.21], "category_id": 3, "id": 141829}, {"segmentation": [[175.96, 284.53, 175.8, 280.26, 176.49, 279.27, 177.25, 278.43, 181.44, 277.75, 182.13, 278.74, 183.35, 279.27, 182.74, 284.0, 177.17, 284.38, 177.25, 284.84, 176.41, 284.91]], "area": 42.03294999999992, "iscrowd": 0, "image_id": 24522, "bbox": [175.8, 277.75, 7.55, 7.16], "category_id": 3, "id": 142673}, {"segmentation": [[570.48, 141.67, 555.65, 165.94, 535.88, 176.72, 534.08, 185.71, 536.78, 192.9, 552.51, 197.84, 599.24, 201.44, 600.59, 204.58, 608.23, 204.13, 612.72, 200.99, 621.26, 198.29, 625.31, 184.36, 613.17, 169.53, 573.18, 142.12]], "area": 3381.112949999998, "iscrowd": 0, "image_id": 168662, "bbox": [534.08, 141.67, 91.23, 62.91], "category_id": 3, "id": 144369}, {"segmentation": [[0.1, 306.9, 11.33, 305.84, 8.17, 297.42, 12.73, 295.67, 10.98, 281.63, 12.03, 277.77, 13.43, 276.01, 23.26, 274.26, 26.07, 272.5, 16.59, 261.28, 10.28, 256.36, 0.8, 246.89, 1.15, 302.33]], "area": 716.1891999999998, "iscrowd": 0, "image_id": 386581, "bbox": [0.1, 246.89, 25.97, 60.01], "category_id": 3, "id": 146979}, {"segmentation": [[272.27, 311.02, 275.41, 172.79, 334.05, 120.43, 426.21, 113.1, 527.78, 125.66, 537.21, 166.5, 547.68, 196.87, 540.35, 208.39, 538.26, 350.81, 505.79, 351.86, 485.9, 370.71, 477.52, 360.23, 471.24, 349.76, 342.43, 346.62, 345.57, 360.23, 335.1, 369.66, 314.16, 348.71, 302.64, 346.62, 284.84, 348.71, 287.98, 326.72, 272.27, 312.06]], "area": 59666.034799999994, "iscrowd": 0, "image_id": 24522, "bbox": [272.27, 113.1, 275.41, 257.61], "category_id": 6, "id": 165709}, {"segmentation": [[77.84, 223.78, 75.68, 290.81, 138.38, 300.54, 141.62, 305.95, 172.97, 297.3, 341.62, 303.78, 375.14, 308.11, 421.62, 303.78, 415.14, 217.3, 396.76, 224.86, 80.0, 221.62]], "area": 26636.909849999993, "iscrowd": 0, "image_id": 233977, "bbox": [75.68, 217.3, 345.94, 90.81], "category_id": 6, "id": 169455}, {"segmentation": [[275.39, 291.7, 261.96, 265.8, 257.16, 243.73, 267.71, 147.77, 290.74, 138.18, 319.53, 138.18, 326.25, 132.42, 371.35, 125.7, 420.28, 123.78, 483.61, 118.98, 541.19, 105.55, 610.27, 92.12, 640.0, 98.83, 640.0, 252.36, 526.79, 299.38, 524.87, 274.43, 469.22, 282.11, 447.15, 285.95, 403.97, 307.06, 368.47, 312.81, 358.87, 301.3, 355.03, 284.03, 328.17, 281.15, 294.58, 282.11, 290.74, 296.5, 275.39, 289.78]], "area": 63054.504900000014, "iscrowd": 0, "image_id": 91359, "bbox": [257.16, 92.12, 382.84, 220.69], "category_id": 7, "id": 170093}, {"segmentation": [[145.04, 282.28, 140.36, 272.14, 121.64, 269.8, 116.97, 237.83, 109.17, 219.9, 109.95, 142.7, 138.02, 119.31, 162.19, 113.85, 204.3, 114.63, 291.64, 142.7, 289.3, 241.73, 203.52, 267.46, 182.47, 279.94], [311.13, 149.72, 313.47, 237.83, 343.1, 215.22, 341.54, 156.73]], "area": 27443.6043, "iscrowd": 0, "image_id": 387855, "bbox": [109.17, 113.85, 233.93, 168.43], "category_id": 7, "id": 170261}, {"segmentation": [[0.61, 180.44, 0.61, 197.85, 19.07, 201.28, 45.98, 201.28, 84.76, 202.87, 123.8, 203.39, 161.52, 206.03, 189.74, 207.61, 225.62, 212.1, 257.8, 216.06, 296.58, 227.66, 330.08, 236.1, 351.97, 242.17, 399.98, 251.93, 459.07, 264.06, 487.29, 269.08, 493.1, 264.06, 496.53, 261.16, 499.16, 265.12, 502.33, 262.22, 505.76, 260.64, 507.87, 254.3, 512.88, 247.18, 531.61, 250.35, 539.52, 262.22, 540.84, 264.33, 547.96, 267.49, 551.39, 260.11, 551.92, 256.15, 555.09, 255.1, 555.61, 264.06, 559.04, 266.44, 562.47, 263.8, 560.1, 260.9, 561.68, 259.32, 564.06, 260.9, 566.43, 260.37, 568.8, 245.34, 581.2, 244.02, 579.35, 226.61, 579.53, 208.76, 581.15, 208.14, 581.15, 205.89, 579.65, 205.64, 579.65, 194.16, 579.65, 192.04, 579.78, 168.71, 579.65, 142.5, 580.28, 127.15, 578.78, 122.54, 574.54, 118.3, 564.93, 113.18, 544.59, 108.06, 542.09, 107.44, 542.59, 101.2, 541.1, 99.33, 538.85, 100.58, 537.1, 97.71, 532.74, 94.09, 513.27, 92.59, 491.31, 93.09, 481.58, 92.22, 472.34, 94.96, 463.86, 109.19, 464.36, 113.18, 455.0, 116.3, 438.15, 120.54, 427.8, 122.79, 404.34, 127.4, 375.02, 133.89, 332.58, 144.47, 297.45, 153.39, 243.91, 165.66, 214.68, 167.53, 147.98, 173.96, 127.67, 175.32, 71.47, 177.35, 0.71, 180.73]], "area": 48014.77565000001, "iscrowd": 0, "image_id": 267628, "bbox": [0.61, 92.22, 580.59, 176.86], "category_id": 7, "id": 170456}, {"segmentation": [[412.5, 166.29, 440.57, 157.71, 474.1, 156.93, 483.46, 168.63, 479.56, 205.28, 477.22, 215.41, 434.33, 208.39, 416.4, 203.72, 414.84, 201.38, 412.5, 199.04]], "area": 3442.8579499999996, "iscrowd": 0, "image_id": 387855, "bbox": [412.5, 156.93, 70.96, 58.48], "category_id": 7, "id": 171088}, {"segmentation": [[74.74, 319.77, 56.76, 316.93, 47.3, 301.8, 36.9, 295.17, 41.63, 293.28, 35.95, 257.33, 46.36, 249.76, 48.25, 244.09, 54.87, 241.25, 46.36, 229.89, 53.93, 213.81, 52.98, 193.0, 61.49, 194.89, 67.17, 224.22, 97.44, 222.33, 93.66, 212.87, 96.5, 204.35, 87.98, 172.18, 102.18, 140.96, 131.5, 123.93, 133.4, 103.12, 140.96, 102.18, 141.91, 76.63, 140.02, 70.96, 175.97, 76.63, 168.4, 86.09, 165.56, 100.28, 189.21, 93.66, 228.0, 99.34, 239.36, 118.26, 266.79, 117.31, 318.82, 128.67, 333.96, 133.4, 339.64, 171.24, 333.02, 213.81, 284.77, 220.43, 278.14, 227.06, 280.04, 258.28, 279.09, 297.07, 242.19, 301.8, 207.19, 317.88, 172.18, 329.23, 123.93, 322.61, 106.91, 315.04]], "area": 49020.70419999999, "iscrowd": 0, "image_id": 174420, "bbox": [35.95, 70.96, 303.69, 258.27], "category_id": 7, "id": 171146}, {"segmentation": [[273.52, 201.01, 477.26, 137.75, 514.48, 146.12, 547.97, 162.87, 563.78, 169.38, 571.23, 287.54, 425.16, 296.84, 383.3, 273.58, 385.16, 224.27, 383.3, 215.9, 381.44, 214.04, 379.58, 202.88, 372.13, 200.08, 364.69, 200.08, 362.83, 211.25, 362.83, 218.69, 358.18, 228.92, 351.67, 234.51, 347.02, 238.23, 351.67, 242.88, 355.39, 245.67, 353.53, 252.18, 353.53, 255.9, 304.22, 231.72, 279.1, 227.06]], "area": 30493.235050000007, "iscrowd": 0, "image_id": 441216, "bbox": [273.52, 137.75, 297.71, 159.09], "category_id": 7, "id": 171832}, {"segmentation": [[295.44, 339.37, 385.97, 356.52, 407.89, 365.1, 425.05, 359.38, 437.44, 355.57, 443.15, 364.15, 486.99, 358.43, 495.57, 329.84, 487.95, 273.61, 426.0, 264.08, 444.11, 238.35, 416.47, 224.05, 416.47, 224.05, 430.77, 243.11, 427.91, 254.55, 418.38, 260.27, 392.64, 261.22, 377.4, 260.27, 343.09, 270.75, 327.84, 275.51, 322.12, 283.14, 314.5, 285.05, 294.48, 292.67, 294.48, 341.27]], "area": 17101.444900000006, "iscrowd": 0, "image_id": 46526, "bbox": [294.48, 224.05, 201.09, 141.05], "category_id": 7, "id": 172575}, {"segmentation": [[183.37, 188.76, 194.16, 213.57, 193.08, 230.83, 193.08, 234.07, 443.33, 454.11, 450.88, 457.35, 454.11, 447.64, 471.37, 450.88, 495.1, 451.96, 517.75, 444.4, 531.78, 442.25, 567.37, 439.01, 578.16, 432.54, 583.55, 415.28, 590.02, 412.04, 596.49, 431.46, 611.6, 431.46, 621.3, 430.38, 621.3, 406.65, 611.6, 382.92, 608.36, 367.82, 611.6, 347.33, 613.75, 343.01, 614.83, 343.01, 618.07, 345.17, 627.78, 333.3, 627.78, 313.89, 616.99, 303.1, 606.2, 108.94, 542.56, 53.93, 516.67, 49.62, 484.31, 50.7, 460.58, 59.33, 432.54, 77.66, 416.36, 81.98, 374.29, 98.16]], "area": 118792.60970000002, "iscrowd": 0, "image_id": 438232, "bbox": [183.37, 49.62, 444.41, 407.73], "category_id": 7, "id": 172665}, {"segmentation": [[78.74, 221.39, 183.37, 209.53, 262.11, 189.03, 348.4, 185.8, 351.64, 189.03, 362.43, 212.76, 368.9, 218.16, 378.61, 309.84, 369.98, 319.55, 364.58, 329.26, 326.83, 333.57, 256.72, 322.79, 208.18, 308.76, 163.96, 306.61, 121.89, 299.06, 106.79, 287.19, 89.53, 278.56, 84.13, 263.46, 77.66, 234.34]], "area": 32658.116149999994, "iscrowd": 0, "image_id": 408863, "bbox": [77.66, 185.8, 300.95, 147.77], "category_id": 7, "id": 172668}, {"segmentation": [[273.36, 419.73, 318.57, 429.42, 376.68, 428.34, 390.67, 418.65, 390.67, 327.17, 384.22, 219.55, 368.07, 113.0, 357.31, 54.89, 348.7, 49.51, 328.25, 50.58, 319.64, 71.03, 323.95, 106.55, 284.13, 203.41, 279.82, 236.77, 284.13, 251.84, 266.91, 299.19, 266.91, 327.17, 270.13, 399.28, 270.13, 424.04]], "area": 34797.445550000004, "iscrowd": 0, "image_id": 65981, "bbox": [266.91, 49.51, 123.76, 379.91], "category_id": 7, "id": 173479}, {"segmentation": [[270.59, 158.33, 270.59, 210.14, 415.49, 277.31, 470.18, 284.03, 522.0, 308.98, 527.75, 182.31, 483.61, 166.96, 347.36, 150.65, 294.58, 140.09], [538.31, 181.36, 640.0, 193.83, 639.06, 331.04, 536.39, 293.62]], "area": 39626.28965, "iscrowd": 0, "image_id": 472881, "bbox": [270.59, 140.09, 369.41, 190.95], "category_id": 7, "id": 173937}, {"segmentation": [[0.63, 180.26, 30.78, 182.14, 36.43, 158.9, 35.8, 150.11, 70.97, 151.99, 75.37, 179.0, 76.0, 187.16, 105.52, 186.54, 110.54, 182.77, 108.03, 157.64, 344.18, 144.46, 361.77, 141.94, 361.14, 164.55, 376.84, 167.07, 375.58, 143.83, 395.68, 137.55, 403.85, 172.09, 417.66, 169.58, 414.52, 150.74, 550.19, 138.8, 552.07, 84.79, 514.39, 80.39, 512.5, 59.04, 447.18, 52.76, 417.66, 58.41, 417.04, 72.86, 414.52, 76.0, 407.62, 79.76, 400.08, 77.88, 376.21, 74.11, 364.91, 76.0, 302.1, 77.25, 283.89, 73.48, 276.35, 52.13, 268.81, 37.06, 157.02, 33.92, 156.39, 40.82, 163.3, 49.62, 165.81, 61.55, 91.7, 66.58, 50.87, 43.96, 30.78, 60.92, 23.87, 67.2, 7.54, 175.86]], "area": 49993.4018, "iscrowd": 0, "image_id": 105876, "bbox": [0.63, 33.92, 551.44, 153.24], "category_id": 7, "id": 174406}, {"segmentation": [[48.82, 114.03, 52.42, 111.01, 57.71, 110.44, 61.68, 112.33, 61.49, 122.16, 61.87, 130.86, 60.74, 134.26, 54.69, 133.7, 47.88, 131.62, 47.5, 125.75, 48.26, 119.7, 48.26, 115.17, 48.45, 114.6], [66.41, 113.46, 81.92, 114.22, 88.53, 115.54, 98.18, 115.92, 123.33, 118.19, 132.4, 120.08, 140.91, 120.27, 145.64, 123.3, 148.1, 126.32, 149.04, 138.05, 147.91, 149.39, 143.94, 150.15, 146.21, 153.55, 141.67, 155.06, 134.86, 156.58, 127.68, 155.06, 122.0, 154.31, 122.0, 151.09, 111.98, 149.2, 90.8, 145.04, 65.84, 136.72, 64.52, 113.27, 65.65, 113.46]], "area": 2859.0208, "iscrowd": 0, "image_id": 472881, "bbox": [47.5, 110.44, 101.54, 46.14], "category_id": 7, "id": 174438}, {"segmentation": [[286.97, 285.91, 286.97, 350.08, 279.47, 354.25, 278.63, 359.66, 263.63, 359.66, 229.05, 359.66, 212.8, 352.16, 211.13, 342.16, 209.46, 332.16, 203.63, 323.41, 199.46, 322.99, 199.05, 319.24, 199.05, 315.49, 194.46, 311.74, 190.71, 315.08, 190.71, 318.83, 193.63, 322.16, 191.96, 324.66, 186.13, 326.33, 181.55, 329.25, 181.13, 332.58, 181.13, 333.83, 175.71, 332.16, 175.71, 306.33, 201.96, 297.99, 201.13, 295.49, 205.3, 294.24, 204.05, 287.99, 223.21, 275.49, 224.05, 283.83, 236.13, 280.08, 238.22, 277.99, 241.97, 280.08, 257.38, 279.24, 260.3, 277.16, 264.88, 277.58, 264.88, 280.08, 279.47, 279.66, 284.47, 280.08, 286.55, 285.49]], "area": 6848.691000000004, "iscrowd": 0, "image_id": 46526, "bbox": [175.71, 275.49, 111.26, 84.17], "category_id": 7, "id": 174542}, {"segmentation": [[353.21, 285.44, 342.13, 267.84, 335.62, 241.78, 338.22, 235.26, 471.17, 272.4, 497.24, 284.79]], "area": 4159.2756000000045, "iscrowd": 0, "image_id": 353866, "bbox": [335.62, 235.26, 161.62, 50.18], "category_id": 9, "id": 177400}, {"segmentation": [[472.89, 305.72, 468.58, 295.22, 469.61, 284.88, 476.33, 275.06, 475.82, 269.03, 479.78, 262.83, 479.26, 260.24, 480.64, 255.42, 481.16, 245.95, 485.12, 241.12, 487.87, 239.4, 494.08, 238.19, 498.73, 239.57, 502.35, 243.71, 503.55, 249.22, 510.27, 253.18, 514.06, 261.79, 519.4, 264.55, 523.36, 273.85, 521.29, 285.91, 521.29, 285.91, 520.09, 293.32, 518.88, 296.08, 518.37, 302.11, 520.95, 316.23, 502.0, 314.34, 496.66, 309.51, 488.56, 307.96, 481.16, 305.9, 476.16, 305.72, 473.4, 305.55]], "area": 2904.961899999999, "iscrowd": 0, "image_id": 386581, "bbox": [468.58, 238.19, 54.78, 78.04], "category_id": 1, "id": 185083}, {"segmentation": [[283.48, 284.79, 280.22, 263.93, 282.83, 256.76, 295.21, 260.67, 298.47, 258.72, 280.88, 237.21, 273.06, 224.18, 271.1, 224.18, 271.75, 212.45, 269.8, 209.84, 267.84, 207.89, 280.22, 199.42, 278.92, 191.6, 280.88, 188.34, 280.22, 183.12, 284.79, 174.65, 284.13, 166.83, 286.74, 161.62, 283.48, 158.36, 282.18, 153.8, 275.01, 167.48, 271.1, 164.88, 279.57, 154.45, 276.31, 153.15, 265.89, 160.97, 260.02, 144.67, 254.81, 136.2, 250.9, 123.82, 256.76, 120.56, 259.37, 108.83, 279.57, 91.89, 282.83, 86.02, 263.28, 88.63, 256.76, 84.07, 248.94, 63.21, 237.87, 63.21, 226.13, 64.52, 220.92, 69.08, 221.57, 84.72, 220.27, 92.54, 202.67, 95.15, 198.76, 97.75, 205.93, 106.22, 223.53, 115.35, 227.44, 119.91, 220.92, 125.78, 219.62, 132.94, 205.93, 145.33, 198.11, 161.62, 194.2, 183.12, 198.76, 194.2, 205.28, 222.22, 204.63, 235.26, 205.28, 245.69, 203.33, 260.67, 205.93, 276.31, 204.63, 286.74, 279.57, 285.44]], "area": 14358.069, "iscrowd": 0, "image_id": 353866, "bbox": [194.2, 63.21, 104.27, 223.53], "category_id": 1, "id": 187150}, {"segmentation": [[285.79, 445.8, 293.83, 454.42, 307.63, 468.79, 319.12, 485.46, 312.23, 503.85, 304.18, 507.3, 308.2, 537.76, 312.23, 565.88, 316.82, 571.63, 308.78, 579.1, 301.88, 571.63, 289.81, 517.6, 275.44, 514.77, 269.69, 508.45, 261.07, 503.85, 264.52, 499.25, 273.14, 493.5, 266.24, 468.21, 270.84, 463.62, 269.69, 455.57, 273.14, 449.25, 274.29, 447.52, 282.34, 442.92]], "area": 3464.271000000001, "iscrowd": 0, "image_id": 573549, "bbox": [261.07, 442.92, 58.05, 136.18], "category_id": 1, "id": 193001}, {"segmentation": [[197.44, 311.97, 199.41, 315.41, 199.9, 317.87, 199.9, 321.32, 199.9, 321.32, 200.89, 324.27, 203.84, 322.3, 208.27, 332.14, 209.75, 337.56, 209.25, 341.49, 207.78, 350.35, 206.3, 355.27, 205.32, 367.08, 206.79, 406.94, 183.17, 392.18, 188.59, 342.48, 183.66, 334.61, 181.7, 330.18, 183.66, 324.76, 188.59, 322.3, 191.54, 317.87, 192.52, 312.95, 197.44, 309.51]], "area": 1739.6786000000002, "iscrowd": 0, "image_id": 46526, "bbox": [181.7, 309.51, 28.05, 97.43], "category_id": 1, "id": 197943}, {"segmentation": [[219.34, 350.38, 224.33, 344.15, 224.33, 336.66, 228.49, 334.16, 230.15, 330.01, 235.56, 331.67, 233.9, 337.49, 242.21, 342.48, 248.04, 351.63, 240.97, 359.53, 226.41, 359.53, 226.83, 350.8, 220.59, 356.62, 218.09, 352.05, 221.42, 347.06]], "area": 491.37879999999916, "iscrowd": 0, "image_id": 236837, "bbox": [218.09, 330.01, 29.95, 29.52], "category_id": 1, "id": 199872}, {"segmentation": [[411.0, 561.44, 423.17, 558.27, 420.0, 492.16, 421.05, 474.7, 422.11, 468.89, 422.11, 464.66, 418.41, 459.9, 416.29, 459.9, 405.72, 461.48, 401.48, 465.71, 400.43, 471.0, 400.43, 474.18, 404.66, 481.58, 412.06, 491.1, 420.0, 508.55, 416.82, 512.25, 406.24, 509.61, 405.19, 508.55, 403.6, 508.55, 403.6, 510.67, 413.12, 517.54, 415.24, 524.95, 416.82, 549.28, 408.89, 551.92, 408.89, 558.27, 410.48, 562.5], [342.25, 606.4, 364.46, 606.4, 369.22, 588.41, 369.22, 583.65, 372.4, 572.55, 369.22, 565.14, 364.99, 578.37, 361.29, 586.83, 360.76, 591.06, 350.71, 594.76, 340.13, 602.17, 341.72, 605.87, 343.31, 605.87]], "area": 1471.5884, "iscrowd": 0, "image_id": 573549, "bbox": [340.13, 459.9, 83.04, 146.5], "category_id": 1, "id": 200683}, {"segmentation": [[358.32, 414.4, 361.3, 403.5, 360.31, 393.09, 361.3, 379.21, 351.39, 364.35, 351.88, 360.88, 356.34, 340.06, 360.31, 329.66, 363.78, 315.78, 371.21, 309.83, 374.18, 305.37, 384.59, 299.92, 388.06, 302.4, 391.03, 304.88, 391.03, 310.33, 387.56, 317.27, 379.63, 320.24, 377.16, 320.24, 379.14, 332.63, 383.1, 337.58, 388.06, 345.02, 381.12, 349.97, 381.12, 369.8, 384.09, 399.04, 382.11, 413.9, 371.71, 422.33, 367.25, 417.37]], "area": 2703.478, "iscrowd": 0, "image_id": 442223, "bbox": [351.39, 299.92, 39.64, 122.41], "category_id": 1, "id": 200730}, {"segmentation": [[360.97, 187.91, 356.95, 171.82, 356.32, 167.38, 362.03, 159.97, 361.18, 152.98, 361.4, 150.87, 363.72, 150.65, 366.9, 150.23, 369.65, 150.65, 370.71, 153.19, 380.45, 147.48, 387.65, 144.09, 388.7, 143.67, 392.73, 146.84, 394.42, 148.11, 396.75, 152.14, 391.88, 154.68, 389.34, 159.55, 387.43, 163.14, 383.41, 170.55, 372.4, 178.81]], "area": 886.6994000000004, "iscrowd": 0, "image_id": 174420, "bbox": [356.32, 143.67, 40.43, 44.24], "category_id": 1, "id": 201837}, {"segmentation": [[198.37, 359.64, 197.29, 353.15, 196.56, 350.99, 195.3, 346.3, 197.65, 341.8, 203.59, 341.98, 205.39, 346.84, 205.76, 351.35, 210.8, 357.65, 210.26, 360.0]], "area": 178.10844999999966, "iscrowd": 0, "image_id": 236837, "bbox": [195.3, 341.8, 15.5, 18.2], "category_id": 1, "id": 204684}, {"segmentation": [[166.98, 384.4, 164.23, 377.8, 167.53, 363.23, 168.08, 348.94, 166.15, 339.86, 165.33, 332.44, 168.63, 332.44, 170.82, 328.04, 167.53, 322.27, 166.15, 317.05, 161.48, 315.4, 163.4, 310.45, 160.38, 306.05, 154.33, 304.67, 151.86, 310.17, 153.51, 314.57, 150.21, 315.4, 144.43, 318.15, 142.23, 330.24, 141.13, 334.92, 143.33, 339.31, 146.08, 336.56, 146.36, 328.59, 147.73, 336.29, 148.83, 361.03, 151.31, 373.95, 151.03, 383.03, 151.03, 386.6, 157.35, 386.6, 157.35, 380.83, 158.73, 380.55, 160.38, 384.4, 163.95, 385.5]], "area": 1440.7614500000002, "iscrowd": 0, "image_id": 46526, "bbox": [141.13, 304.67, 29.69, 81.93], "category_id": 1, "id": 206452}, {"segmentation": [[545.22, 351.99, 545.22, 349.66, 542.88, 346.86, 544.05, 340.32, 544.28, 333.32, 540.55, 325.39, 538.68, 316.75, 531.21, 313.72, 531.21, 312.09, 533.31, 308.12, 533.31, 305.08, 532.61, 299.02, 527.95, 296.22, 521.64, 298.08, 518.14, 302.28, 520.01, 307.42, 521.41, 309.98, 516.98, 313.02, 512.08, 317.22, 509.28, 338.69, 511.84, 340.79, 514.41, 357.36, 517.44, 355.73, 519.78, 355.49, 519.78, 356.89, 522.34, 355.03, 525.15, 355.73, 528.41, 355.73, 530.51, 355.73, 533.78, 353.86, 539.38, 354.09, 538.21, 351.99, 540.08, 351.76, 543.11, 351.53, 545.22, 351.99], [547.14, 373.67, 547.81, 381.7, 546.64, 384.71, 542.79, 381.87, 537.77, 379.36, 536.94, 377.69, 535.1, 372.67], [528.4, 375.01, 528.24, 371.83, 521.04, 372.0, 520.54, 374.34, 523.89, 374.01, 527.9, 373.84], [552.55, 409.62, 554.59, 405.42, 556.75, 405.54, 560.23, 409.5, 558.19, 410.1, 553.75, 410.58]], "area": 1592.8904999999986, "iscrowd": 0, "image_id": 442223, "bbox": [509.28, 296.22, 50.95, 114.36], "category_id": 1, "id": 208460}, {"segmentation": [[114.96, 355.09, 115.47, 351.13, 115.16, 349.41, 113.95, 347.69, 111.92, 347.28, 109.39, 347.89, 107.76, 348.8, 107.05, 349.41, 106.55, 352.15, 106.24, 353.06, 106.04, 354.78, 106.55, 355.79, 107.05, 356.61, 107.26, 357.01, 108.27, 357.72, 109.89, 358.13, 109.99, 358.63, 108.78, 360.0, 118.3, 360.0, 117.29, 358.23, 116.28, 357.32, 115.36, 355.59]], "area": 102.95980000000007, "iscrowd": 0, "image_id": 236837, "bbox": [106.04, 347.28, 12.26, 12.72], "category_id": 1, "id": 208553}, {"segmentation": [[171.63, 275.73, 186.94, 280.1, 186.94, 279.17, 187.57, 274.48, 186.63, 273.85, 181.94, 270.41, 181.31, 270.1, 180.06, 269.48, 179.13, 252.91, 179.13, 240.09, 184.13, 226.97, 179.44, 212.9, 177.88, 200.71, 175.69, 195.4, 174.44, 191.33, 171.31, 191.65, 170.37, 196.96, 169.12, 201.34, 165.69, 206.34, 162.87, 221.97, 165.69, 230.09, 166.94, 239.16, 169.12, 250.72, 169.44, 271.98, 170.69, 275.42]], "area": 1098.3727999999996, "iscrowd": 0, "image_id": 438232, "bbox": [162.87, 191.33, 24.7, 88.77], "category_id": 1, "id": 209752}, {"segmentation": [[366.87, 212.8, 366.25, 210.04, 365.95, 208.5, 364.64, 208.12, 364.95, 205.89, 366.02, 206.2, 365.03, 202.67, 365.87, 201.14, 371.85, 199.52, 374.46, 199.6, 375.92, 202.21, 375.54, 204.28, 375.92, 209.88, 375.77, 210.88, 376.0, 212.57, 379.3, 214.72, 382.44, 217.55, 383.29, 222.0, 382.75, 225.38, 382.98, 227.76, 383.21, 227.68, 383.75, 239.8, 383.67, 242.8, 382.67, 245.1, 382.67, 248.47, 383.36, 252.31, 382.21, 255.15, 381.75, 256.99, 382.06, 262.9, 382.83, 266.27, 382.21, 268.12, 381.98, 268.58, 381.52, 276.17, 381.83, 279.39, 383.67, 286.45, 384.05, 286.76, 385.67, 294.74, 386.2, 299.11, 372.08, 299.57, 370.47, 298.96, 370.78, 297.88, 376.38, 294.89, 377.0, 292.44, 376.69, 289.52, 376.0, 286.91, 375.15, 286.15, 372.24, 276.48, 370.09, 270.26, 368.56, 266.81, 366.79, 269.88, 360.58, 279.78, 357.58, 285.69, 354.67, 292.44, 356.28, 295.81, 356.28, 298.5, 350.22, 298.65, 344.23, 297.42, 344.62, 293.67, 345.69, 292.82, 346.31, 289.06, 349.6, 284.23, 352.75, 280.62, 353.82, 267.58, 354.59, 264.2, 356.43, 260.14, 356.66, 257.07, 359.5, 248.7, 361.19, 235.51, 360.04, 235.58, 356.43, 235.89, 354.52, 235.89, 352.9, 237.27, 353.13, 240.27, 350.68, 240.88, 348.61, 239.96, 348.84, 236.97, 350.37, 235.66, 359.43, 230.21, 361.42, 227.76, 362.03, 222.47, 363.65, 217.48, 364.57, 216.02]], "area": 2054.076150000001, "iscrowd": 0, "image_id": 441216, "bbox": [344.23, 199.52, 41.97, 100.05], "category_id": 1, "id": 212549}, {"segmentation": [[136.25, 318.63, 129.04, 288.13, 130.15, 280.37, 130.15, 266.51, 126.82, 252.09, 121.27, 252.09, 118.5, 241.56, 117.95, 229.36, 117.95, 218.27, 121.27, 210.51, 127.93, 206.07, 131.81, 202.19, 130.7, 194.98, 131.26, 191.1, 134.03, 188.33, 144.01, 188.33, 147.34, 193.32, 145.12, 198.31, 144.56, 206.07, 149.0, 215.5, 157.32, 231.02, 161.75, 246.55, 162.86, 257.08, 158.98, 261.52, 154.54, 277.6, 153.44, 297.01, 153.44, 311.42, 154.54, 314.19, 162.31, 315.3, 163.97, 318.08, 157.32, 321.4, 142.9, 323.07, 140.68, 323.07]], "area": 3660.7360499999977, "iscrowd": 0, "image_id": 438232, "bbox": [117.95, 188.33, 46.02, 134.74], "category_id": 1, "id": 214765}, {"segmentation": [[375.4, 462.68, 380.11, 461.99, 385.91, 462.37, 389.66, 464.01, 390.76, 465.1, 392.08, 467.94, 392.08, 471.22, 392.08, 472.86, 391.76, 474.93, 391.98, 478.09, 391.98, 479.95, 394.05, 480.28, 394.38, 482.24, 395.8, 482.79, 395.47, 480.93, 398.63, 480.28, 398.74, 479.51, 397.87, 478.2, 395.25, 477.0, 395.03, 477.0, 394.81, 476.57, 394.92, 475.37, 396.45, 474.49, 397.54, 475.48, 399.94, 476.35, 400.71, 476.79, 401.25, 477.99, 401.25, 476.79, 400.71, 475.37, 400.82, 473.07, 401.91, 469.91, 403.33, 466.96, 404.53, 465.43, 405.07, 464.56, 405.07, 462.49, 404.31, 460.41, 403.65, 460.2, 402.45, 457.9, 401.16, 456.55, 401.1, 454.65, 401.29, 452.08, 401.6, 450.6, 401.92, 448.25, 401.68, 447.08, 402.23, 444.26, 402.07, 442.93, 401.45, 442.15, 400.98, 439.61, 400.46, 438.27, 399.48, 437.6, 399.17, 437.44, 398.86, 436.77, 397.98, 436.46, 396.12, 435.84, 392.92, 435.69, 389.15, 436.0, 387.66, 437.18, 386.16, 438.17, 384.97, 439.61, 383.99, 440.39, 383.16, 442.14, 382.24, 444.15, 381.51, 445.96, 381.0, 446.89, 379.91, 447.56, 378.99, 448.01, 378.85, 450.33, 379.32, 451.45, 378.66, 453.44, 377.93, 454.97, 378.26, 456.89, 378.79, 457.55, 378.59, 458.74, 378.52, 459.67, 377.6, 460.4], [366.6, 481.02, 370.1, 479.44, 372.92, 477.67, 373.26, 475.94, 371.98, 472.38, 372.18, 471.1, 369.12, 474.61, 366.75, 479.0, 365.71, 480.82, 365.02, 482.35]], "area": 762.3745500000002, "iscrowd": 0, "image_id": 573549, "bbox": [365.02, 435.69, 40.05, 47.1], "category_id": 1, "id": 216444}, {"segmentation": [[130.12, 363.47, 126.28, 357.69, 128.2, 340.92, 123.25, 340.92, 127.38, 331.58, 126.55, 320.58, 130.4, 316.46, 132.6, 309.31, 136.72, 308.21, 139.75, 311.78, 139.2, 318.38, 139.75, 332.13, 141.95, 340.92, 141.4, 345.32, 140.85, 364.29, 135.9, 360.17, 135.9, 351.65, 132.32, 346.7, 131.5, 363.19]], "area": 630.8672500000001, "iscrowd": 0, "image_id": 46526, "bbox": [123.25, 308.21, 18.7, 56.08], "category_id": 1, "id": 219812}, {"segmentation": [[246.71, 456.49, 249.44, 458.99, 250.51, 460.89, 250.99, 462.32, 251.35, 467.67, 251.7, 473.02, 252.18, 476.11, 252.3, 478.72, 252.06, 480.27, 253.13, 480.74, 254.32, 480.51, 255.27, 476.82, 254.67, 469.21, 254.67, 464.1, 254.67, 462.32, 254.79, 461.37, 255.39, 460.77, 255.98, 461.72, 256.1, 466.0, 256.7, 469.81, 257.17, 473.97, 257.17, 477.65, 257.17, 479.91, 257.88, 480.86, 258.84, 480.98, 259.91, 479.67, 259.91, 470.64, 259.31, 466.6, 259.79, 464.1, 260.02, 461.84, 261.09, 461.72, 261.21, 460.53, 262.04, 460.06, 262.4, 458.75, 260.5, 455.78, 260.02, 454.47, 260.26, 453.76, 260.98, 453.28, 261.69, 453.64, 262.4, 455.07, 263.23, 456.25, 264.07, 457.8, 264.54, 458.75, 265.02, 457.92, 264.42, 456.14, 264.18, 454.0, 264.18, 454.0, 263.0, 451.98, 261.93, 447.7, 261.93, 444.13, 260.86, 442.35, 259.31, 441.51, 258.84, 440.68, 259.19, 439.14, 260.38, 439.14, 261.57, 438.19, 260.86, 436.05, 258.95, 434.14, 257.53, 433.91, 256.22, 434.86, 254.91, 436.4, 254.79, 437.47, 254.91, 438.54, 255.98, 438.9, 256.22, 439.73, 255.63, 440.8, 253.72, 440.68, 250.51, 442.58, 248.37, 446.27, 246.95, 449.36, 246.95, 449.36, 246.23, 453.64, 245.76, 455.54, 246.71, 456.61]], "area": 435.9359, "iscrowd": 0, "image_id": 573549, "bbox": [245.76, 433.91, 19.26, 47.07], "category_id": 1, "id": 223660}, {"segmentation": [[134.48, 187.63, 129.76, 185.74, 124.37, 187.22, 123.15, 192.89, 122.75, 195.72, 122.61, 198.01, 121.13, 200.3, 118.57, 201.38, 115.33, 205.7, 112.5, 213.79, 111.96, 235.22, 113.44, 249.65, 121.67, 269.88, 121.8, 273.52, 120.86, 291.31, 120.86, 302.1, 120.86, 306.68, 131.78, 307.76, 134.34, 306.55, 130.97, 294.41, 129.62, 278.37, 130.84, 268.12, 128.01, 254.77, 124.64, 253.7, 118.57, 241.43, 120.32, 226.32, 121.4, 209.61, 129.89, 204.08, 132.72, 200.17, 129.89, 193.56, 131.24, 191.13]], "area": 1124.7430000000002, "iscrowd": 0, "image_id": 438232, "bbox": [111.96, 185.74, 22.52, 122.02], "category_id": 1, "id": 232699}, {"segmentation": [[147.38, 194.77, 150.67, 194.07, 153.27, 196.32, 153.44, 198.23, 153.27, 200.3, 152.57, 201.51, 155.34, 203.94, 156.38, 204.8, 156.9, 209.13, 156.73, 215.53, 156.73, 220.38, 156.9, 224.36, 159.84, 230.76, 161.05, 236.12, 154.65, 225.57, 152.75, 218.65, 148.59, 211.21, 145.83, 207.4, 145.13, 204.11, 145.31, 200.65, 146.17, 197.88, 146.69, 196.32, 146.86, 194.07]], "area": 229.57879999999992, "iscrowd": 0, "image_id": 438232, "bbox": [145.13, 194.07, 15.92, 42.05], "category_id": 1, "id": 235769}, {"segmentation": [[400.0, 281.62, 463.78, 282.7, 468.11, 264.32, 446.49, 222.16, 463.78, 214.59, 412.97, 208.11, 408.65, 178.92, 402.16, 168.11, 412.97, 146.49, 406.49, 133.51, 416.22, 101.08, 428.11, 89.19, 451.89, 64.32, 501.62, 75.14, 532.97, 105.41, 565.41, 98.92, 572.97, 120.54, 558.92, 158.38, 535.14, 174.59, 532.97, 185.41, 584.86, 212.43, 632.43, 258.92, 638.92, 270.81, 633.51, 341.08, 638.92, 387.57, 614.05, 386.49, 622.7, 395.14, 640.0, 418.92, 640.0, 471.89, 570.81, 474.05, 531.89, 425.41, 487.57, 380.0, 468.11, 354.05, 468.11, 344.32, 455.14, 309.73, 427.03, 311.89, 402.16, 284.86]], "area": 57844.7161, "iscrowd": 0, "image_id": 168662, "bbox": [400.0, 64.32, 240.0, 409.73], "category_id": 1, "id": 237683}, {"segmentation": [[296.97, 139.59, 296.97, 130.19, 295.13, 127.53, 294.31, 124.47, 294.11, 122.83, 294.72, 120.38, 296.56, 117.93, 297.58, 115.07, 297.99, 113.02, 299.42, 111.59, 302.28, 111.39, 303.92, 113.02, 303.51, 115.89, 304.94, 119.16, 304.73, 127.33, 303.51, 132.23, 300.24, 138.77, 299.83, 143.68, 298.6, 144.5, 298.19, 143.27, 296.76, 143.27, 296.15, 142.45]], "area": 219.33989999999972, "iscrowd": 0, "image_id": 168662, "bbox": [294.11, 111.39, 10.83, 33.11], "category_id": 1, "id": 238587}, {"segmentation": [[287.83, 144.13, 285.35, 144.13, 284.73, 143.51, 284.73, 141.96, 284.73, 140.1, 284.73, 137.92, 285.04, 133.89, 284.73, 133.26, 282.55, 132.33, 282.55, 128.92, 283.17, 126.75, 284.1, 125.19, 284.41, 124.57, 284.73, 122.71, 285.04, 122.09, 285.04, 121.47, 285.97, 119.6, 285.97, 118.36, 286.59, 117.43, 288.76, 115.88, 289.69, 116.81, 290.0, 118.36, 290.0, 120.23, 290.0, 122.09, 290.62, 122.09, 290.93, 126.12, 291.56, 134.51, 291.24, 136.68, 288.76, 139.47, 288.45, 143.2, 288.45, 143.51]], "area": 162.2960499999995, "iscrowd": 0, "image_id": 168662, "bbox": [282.55, 115.88, 9.01, 28.25], "category_id": 1, "id": 238766}, {"segmentation": [[182.31, 209.5, 181.21, 203.2, 181.49, 202.93, 181.76, 202.65, 182.86, 201.83, 183.68, 201.56, 184.77, 201.28, 185.87, 201.28, 188.06, 201.83, 188.89, 203.2, 188.89, 206.21, 188.89, 207.31, 188.34, 210.32, 188.06, 210.87, 187.52, 211.7, 188.06, 212.52, 190.53, 216.35, 191.35, 217.18, 193.82, 225.95, 194.91, 229.78, 194.64, 232.52, 190.26, 235.81, 190.8, 242.66, 189.98, 245.13, 189.71, 254.45, 189.16, 254.72, 188.89, 255.82, 193.0, 257.46, 195.19, 258.83, 194.64, 261.57, 193.82, 261.84, 188.89, 261.57, 183.68, 261.84, 183.68, 254.45, 181.49, 237.18, 180.66, 231.97, 184.77, 225.95, 183.13, 219.92, 181.49, 217.45, 179.84, 216.08, 179.57, 213.61, 179.57, 213.34, 182.86, 209.5]], "area": 525.5039999999996, "iscrowd": 0, "image_id": 438232, "bbox": [179.57, 201.28, 15.62, 60.56], "category_id": 1, "id": 239690}, {"segmentation": [[265.72, 142.55, 261.85, 133.51, 262.37, 128.61, 268.56, 124.61, 272.82, 122.28, 273.85, 124.74, 272.17, 129.12, 273.34, 131.32, 275.92, 134.54, 277.59, 138.55, 282.11, 142.42, 282.63, 145.0, 283.27, 149.0, 283.79, 154.03, 281.46, 157.55, 276.93, 154.78, 269.91, 147.32, 264.94, 142.5]], "area": 376.34659999999957, "iscrowd": 0, "image_id": 168662, "bbox": [261.85, 122.28, 21.94, 35.27], "category_id": 1, "id": 240234}, {"segmentation": [[329.96, 411.79, 314.61, 396.43, 324.84, 380.23, 325.7, 369.14, 352.14, 334.17, 356.4, 341.0, 352.99, 366.58, 358.11, 381.93, 357.25, 397.29, 351.28, 398.99, 334.23, 412.64], [387.1, 363.17, 408.43, 356.35, 436.57, 358.91, 437.42, 364.88, 438.28, 387.05, 432.31, 408.37, 423.78, 417.76, 410.99, 410.08, 382.84, 408.37, 382.84, 384.49, 383.69, 360.61]], "area": 4646.32735, "iscrowd": 0, "image_id": 442223, "bbox": [314.61, 334.17, 123.67, 83.59], "category_id": 4, "id": 245368}, {"segmentation": [[187.06, 448.18, 178.39, 467.6, 176.74, 472.96, 174.26, 480.4, 173.84, 487.83, 178.8, 512.2, 177.56, 515.92, 177.15, 518.4, 177.15, 533.26, 182.1, 548.67, 182.1, 555.69, 183.76, 562.71, 185.0, 568.08, 185.41, 573.03, 185.41, 579.23, 186.23, 578.82, 196.56, 578.4, 220.1, 577.99, 222.17, 575.1, 220.51, 573.86, 210.6, 569.73, 207.3, 565.6, 206.06, 562.71, 207.3, 551.14, 206.06, 542.88, 207.71, 522.65, 211.43, 511.08, 210.6, 504.47, 205.23, 474.32, 202.75, 464.41, 206.47, 452.43, 206.89, 449.54, 206.06, 445.82, 204.82, 443.35, 197.8, 440.46]], "area": 3801.6072499999996, "iscrowd": 0, "image_id": 573549, "bbox": [173.84, 440.46, 48.33, 138.77], "category_id": 1, "id": 253467}, {"segmentation": [[13.33, 272.37, 21.77, 249.94, 22.65, 244.69, 19.73, 226.92, 22.06, 212.65, 22.06, 205.08, 18.28, 203.62, 15.65, 194.59, 12.45, 184.39, 13.33, 177.98, 18.57, 173.91, 26.43, 171.87, 31.97, 175.95, 36.63, 181.48, 40.13, 192.84, 42.75, 196.92, 51.19, 199.83, 57.02, 209.45, 57.89, 230.42, 62.55, 241.78, 58.77, 262.17, 59.06, 271.78, 49.15, 283.15, 47.7, 289.85, 22.94, 290.0, 29.35, 270.62, 26.73, 269.46, 19.15, 290.0, 10.99, 288.39, 11.29, 284.02, 13.03, 274.99]], "area": 4051.2757500000007, "iscrowd": 0, "image_id": 353866, "bbox": [10.99, 171.87, 51.56, 118.13], "category_id": 1, "id": 255589}, {"segmentation": [[266.6, 458.94, 268.15, 454.05, 269.95, 448.64, 264.8, 457.4, 263.77, 454.56, 267.12, 444.27, 269.95, 437.83, 274.58, 437.05, 273.81, 433.71, 273.3, 432.16, 275.87, 429.33, 278.7, 431.65, 281.8, 438.09, 284.37, 439.11, 282.57, 445.55, 275.87, 446.32, 269.44, 461.52]], "area": 268.8216000000002, "iscrowd": 0, "image_id": 573549, "bbox": [263.77, 429.33, 20.6, 32.19], "category_id": 1, "id": 260621}, {"segmentation": [[38.97, 346.91, 41.47, 354.73, 41.08, 359.59, 27.28, 359.69, 27.38, 354.93, 27.47, 352.11, 27.67, 349.19, 29.42, 347.15, 28.15, 345.2, 29.42, 343.36, 29.22, 339.95, 31.95, 338.01, 34.28, 337.04, 37.49, 338.69, 37.88, 342.58, 38.75, 345.2, 38.75, 346.95]], "area": 244.28489999999977, "iscrowd": 0, "image_id": 236837, "bbox": [27.28, 337.04, 14.19, 22.65], "category_id": 1, "id": 265148}, {"segmentation": [[311.12, 373.07, 313.63, 383.76, 311.43, 385.64, 307.97, 384.39, 306.09, 392.24, 300.43, 397.59, 293.51, 397.9, 287.86, 393.82, 263.65, 388.47, 260.51, 389.41, 253.28, 402.3, 251.39, 400.42, 256.42, 387.84, 240.07, 386.59, 232.53, 379.98, 227.82, 390.04, 221.21, 394.44, 221.21, 393.19, 223.73, 377.47, 230.33, 371.5, 231.9, 361.44, 232.84, 357.04, 237.56, 347.92, 237.87, 340.38, 236.62, 331.26, 246.99, 333.15, 249.51, 336.92, 253.91, 336.61, 260.19, 340.06, 259.25, 343.21, 251.08, 342.26, 256.42, 347.92, 253.59, 347.61, 246.99, 345.41, 243.53, 348.55, 237.56, 357.67, 238.5, 367.73, 243.22, 374.33, 244.79, 374.33, 255.79, 373.7, 258.31, 369.61, 257.99, 363.64, 254.85, 357.98, 255.48, 353.27, 259.56, 350.75, 268.05, 352.32, 285.97, 348.55, 297.91, 347.29, 301.37, 347.29, 300.11, 353.27, 303.26, 354.21, 302.94, 344.46, 305.14, 344.78, 307.03, 356.41, 314.57, 363.01, 316.46, 365.84, 312.06, 370.87]], "area": 3221.9638499999983, "iscrowd": 0, "image_id": 442223, "bbox": [221.21, 331.26, 95.25, 71.04], "category_id": 4, "id": 267622}, {"segmentation": [[62.06, 590.13, 45.59, 590.13, 30.72, 574.72, 33.9, 550.82, 50.37, 537.53, 68.97, 538.06, 81.72, 552.94, 79.06, 574.72]], "area": 2070.830800000001, "iscrowd": 0, "image_id": 418152, "bbox": [30.72, 537.53, 51.0, 52.6], "category_id": 13, "id": 269373}, {"segmentation": [[58.7, 97.5, 45.82, 187.7, 131.72, 269.31, 253.42, 257.86, 339.33, 171.95, 335.03, 51.68, 262.01, 0.14, 143.18, 7.3]], "area": 61091.12225, "iscrowd": 0, "image_id": 522406, "bbox": [45.82, 0.14, 293.51, 269.17], "category_id": 13, "id": 270563}, {"segmentation": [[488.65, 265.41, 454.05, 211.35, 449.73, 149.73, 476.76, 119.46, 520.0, 136.76, 551.35, 182.16, 554.59, 235.14, 531.89, 274.05]], "area": 11617.636250000003, "iscrowd": 0, "image_id": 420658, "bbox": [449.73, 119.46, 104.86, 154.59], "category_id": 13, "id": 271255}, {"segmentation": [[568.86, 509.27, 573.21, 500.98, 580.71, 496.63, 592.56, 497.42, 597.7, 500.98, 600.07, 510.06, 601.64, 515.2, 604.41, 520.33, 601.25, 521.91, 596.51, 512.83, 592.56, 511.25, 591.38, 515.2, 591.77, 519.94, 589.4, 521.52, 587.43, 521.52, 589.01, 513.22, 586.64, 510.46, 583.87, 510.85, 581.9, 516.78, 581.9, 519.54, 579.13, 520.33, 576.76, 520.33, 573.21, 513.22, 571.23, 519.54, 568.47, 519.54, 568.07, 514.41, 564.52, 511.25]], "area": 555.2929499999998, "iscrowd": 0, "image_id": 3947, "bbox": [564.52, 496.63, 39.89, 25.28], "category_id": 20, "id": 275908}, {"segmentation": [[165.06, 482.84, 165.06, 482.84, 167.4, 481.37, 180.42, 480.2, 182.61, 493.8, 180.71, 492.92, 180.71, 492.92, 178.66, 493.8, 178.37, 496.29, 176.17, 496.14, 175.01, 492.92, 173.98, 491.46, 171.64, 491.17, 169.89, 493.07, 171.2, 494.83, 169.6, 492.92, 169.6, 492.92, 167.55, 495.56, 167.26, 495.56, 166.09, 495.85, 165.35, 493.95, 163.89, 489.56, 165.06, 485.32]], "area": 214.91750000000027, "iscrowd": 0, "image_id": 3947, "bbox": [163.89, 480.2, 18.72, 16.09], "category_id": 20, "id": 277174}, {"segmentation": [[528.66, 487.74, 529.23, 489.44, 528.55, 491.93, 527.53, 493.29, 527.64, 496.47, 526.51, 496.36, 524.12, 495.79, 522.65, 495.79, 521.63, 495.68, 520.83, 495.45, 520.27, 495.11, 519.81, 494.09, 520.83, 491.71, 521.18, 488.42, 521.86, 487.17, 522.88, 486.26, 524.12, 486.26, 525.83, 486.26, 527.53, 486.15, 528.43, 487.28]], "area": 71.93195000000006, "iscrowd": 0, "image_id": 3947, "bbox": [519.81, 486.15, 9.42, 10.32], "category_id": 20, "id": 277312}, {"segmentation": [[115.06, 1.44, 83.42, 17.26, 1.44, 194.16, 0.0, 632.81, 640.0, 632.81, 640.0, 1.44]], "area": 394685.1281999999, "iscrowd": 0, "image_id": 112719, "bbox": [0.0, 1.44, 640.0, 631.37], "category_id": 28, "id": 280086}, {"segmentation": [[282.46, 160.15, 283.33, 154.24, 282.71, 153.13, 281.23, 153.13, 273.47, 159.78, 272.73, 167.05, 282.46, 160.28]], "area": 72.28509999999963, "iscrowd": 0, "image_id": 353866, "bbox": [272.73, 153.13, 10.6, 13.92], "category_id": 77, "id": 330360}, {"segmentation": [[271.41, 508.38, 288.71, 510.63, 293.47, 520.16, 295.98, 518.4, 298.49, 519.41, 297.49, 523.17, 300.24, 527.93, 297.99, 531.69, 296.98, 538.71, 293.98, 542.48, 276.93, 543.98, 254.86, 542.98, 249.59, 542.98, 249.34, 531.44, 251.1, 522.92, 255.11, 516.9, 258.87, 510.88, 265.89, 507.12, 271.16, 508.12]], "area": 1489.0559500000018, "iscrowd": 0, "image_id": 522406, "bbox": [249.34, 507.12, 50.9, 36.86], "category_id": 3, "id": 351972}, {"segmentation": [[349.59, 437.9, 334.84, 449.45, 314.52, 453.84, 312.53, 461.41, 312.13, 466.19, 315.32, 472.17, 318.51, 473.36, 321.7, 476.15, 325.28, 475.75, 330.46, 473.36, 332.06, 471.77, 340.42, 471.77, 342.02, 474.56, 346.0, 475.75, 355.56, 475.75, 357.56, 473.76, 359.95, 470.97, 372.3, 468.58, 374.29, 471.37, 377.88, 471.77, 381.46, 470.57, 383.46, 468.98, 385.45, 468.98, 397.4, 467.78, 398.6, 469.78, 400.99, 471.37, 406.96, 471.37, 410.55, 468.58, 412.54, 466.19, 414.54, 465.79, 420.91, 462.6, 417.72, 446.27, 416.53, 444.67, 408.16, 444.27, 398.6, 436.7, 392.62, 434.71, 384.65, 434.31, 365.13, 434.31]], "area": 3198.2413000000015, "iscrowd": 0, "image_id": 420658, "bbox": [312.13, 434.31, 108.78, 41.84], "category_id": 3, "id": 352128}, {"segmentation": [[478.76, 447.93, 461.7, 453.76, 459.9, 459.15, 447.34, 458.7, 433.42, 464.08, 427.59, 476.65, 428.94, 485.63, 429.38, 489.67, 441.05, 487.87, 448.24, 483.38, 457.66, 479.79, 473.37, 476.2, 480.0, 475.31]], "area": 1245.464200000001, "iscrowd": 0, "image_id": 425412, "bbox": [427.59, 447.93, 52.41, 41.74], "category_id": 3, "id": 353465}, {"segmentation": [[476.41, 233.59, 476.68, 230.1, 478.43, 226.34, 482.32, 225.0, 485.94, 225.0, 487.69, 229.56, 503.93, 228.35, 504.6, 226.34, 506.21, 223.79, 510.11, 221.91, 515.74, 223.79, 518.7, 225.94, 536.41, 225.67, 540.98, 225.27, 542.19, 221.64, 545.54, 220.43, 551.58, 222.85, 554.0, 226.34, 556.68, 226.61, 557.22, 234.13, 554.54, 241.37, 541.38, 246.47, 540.84, 248.76, 538.56, 249.56, 532.92, 252.11, 525.94, 258.15, 507.96, 259.23, 490.11, 257.75, 484.33, 253.99, 480.44, 251.04, 478.29, 249.83, 476.55, 249.03, 475.07, 240.3, 475.07, 235.87]], "area": 2262.8091, "iscrowd": 0, "image_id": 172979, "bbox": [475.07, 220.43, 82.15, 38.8], "category_id": 3, "id": 355121}, {"segmentation": [[478.1, 478.11, 455.33, 482.25, 437.95, 487.63, 417.25, 495.91, 387.45, 515.77, 360.12, 542.27, 354.74, 544.34, 326.6, 548.48, 316.66, 551.37, 316.66, 553.44, 288.1, 559.24, 281.47, 566.69, 279.41, 574.56, 277.75, 581.59, 276.92, 585.32, 276.51, 589.46, 274.44, 592.77, 272.78, 595.25, 272.37, 598.56, 271.54, 606.84, 271.95, 614.29, 273.2, 620.92, 274.44, 627.13, 276.92, 640.0, 479.25, 638.52]], "area": 23791.47285, "iscrowd": 0, "image_id": 425412, "bbox": [271.54, 478.11, 207.71, 161.89], "category_id": 3, "id": 355252}, {"segmentation": [[0.96, 35.34, 10.51, 32.47, 37.25, 33.43, 57.3, 41.07, 72.58, 45.84, 87.87, 66.85, 92.64, 75.45, 95.51, 82.13, 95.51, 89.78, 97.42, 98.37, 100.28, 100.28, 100.28, 106.97, 94.55, 114.61, 47.75, 120.34, 36.29, 116.52, 44.89, 108.88, 38.2, 99.33, 36.29, 84.04, 30.56, 69.72, 10.51, 67.81, 2.87, 66.85, 0.96, 38.2]], "area": 5319.69865, "iscrowd": 0, "image_id": 237495, "bbox": [0.96, 32.47, 99.32, 87.87], "category_id": 3, "id": 357755}, {"segmentation": [[157.59, 522.5, 159.01, 520.36, 163.05, 519.77, 163.76, 521.31, 166.13, 521.07, 167.08, 520.0, 166.13, 517.51, 165.42, 513.24, 165.3, 510.4, 163.64, 509.21, 160.2, 505.42, 156.52, 504.47, 146.32, 504.47, 143.48, 505.42, 141.34, 508.38, 141.34, 510.28, 141.58, 511.11, 146.32, 513.01, 149.53, 519.53, 152.02, 521.78, 155.93, 521.67, 157.47, 522.61]], "area": 316.74774999999926, "iscrowd": 0, "image_id": 522406, "bbox": [141.34, 504.47, 25.74, 18.14], "category_id": 3, "id": 358569}, {"segmentation": [[45.99, 36.01, 47.08, 32.17, 84.66, 32.99, 90.42, 34.91, 118.94, 42.04, 148.56, 65.63, 189.15, 76.05, 199.03, 83.73, 200.67, 90.86, 200.12, 98.82, 201.22, 107.87, 200.67, 112.8, 196.56, 118.84, 190.52, 121.03, 181.75, 120.21, 170.78, 123.77, 152.95, 123.77, 142.53, 122.68, 138.14, 128.44, 129.64, 132.0, 125.52, 131.45, 119.76, 130.36, 115.65, 128.99, 110.44, 126.24, 106.32, 121.85, 105.23, 118.84, 103.58, 113.63, 97.82, 113.35, 97.27, 111.71, 99.74, 106.5, 100.56, 101.01, 97.55, 97.44, 96.72, 92.23, 95.35, 84.83, 95.08, 80.44, 90.69, 70.57, 75.61, 50.27, 72.59, 46.7, 60.25, 42.32]], "area": 7495.0875, "iscrowd": 0, "image_id": 237495, "bbox": [45.99, 32.17, 155.23, 99.83], "category_id": 3, "id": 358663}, {"segmentation": [[61.98, 514.16, 65.89, 504.59, 94.21, 502.63, 100.47, 506.15, 104.57, 511.42, 107.5, 517.48, 106.91, 522.95, 106.91, 527.44, 102.03, 532.13, 98.71, 531.35, 98.12, 529.4, 90.89, 531.16, 87.57, 532.52, 83.47, 533.89, 79.95, 532.33, 69.21, 532.33, 63.15, 532.33, 61.98, 532.13, 63.35, 522.75, 63.15, 519.24]], "area": 1180.165050000001, "iscrowd": 0, "image_id": 522406, "bbox": [61.98, 502.63, 45.52, 31.26], "category_id": 3, "id": 359050}, {"segmentation": [[276.67, 507.58, 276.12, 508.95, 279.39, 499.41, 296.83, 499.41, 300.38, 501.86, 303.65, 505.13, 305.55, 508.13, 307.19, 512.22, 307.73, 514.94, 307.46, 519.57, 306.64, 522.57, 303.92, 525.02, 303.1, 529.93, 301.47, 530.47, 300.38, 526.93, 300.97, 525.35, 296.59, 524.43, 299.12, 519.81, 294.28, 517.74, 293.36, 519.81, 288.28, 509.89, 285.05, 509.2, 277.9, 508.51]], "area": 465.8167499999992, "iscrowd": 0, "image_id": 522406, "bbox": [276.12, 499.41, 31.61, 31.06], "category_id": 3, "id": 359815}, {"segmentation": [[302.05, 429.28, 314.53, 429.59, 317.73, 432.63, 320.77, 434.31, 323.21, 437.81, 325.64, 441.77, 327.93, 445.88, 329.45, 448.92, 330.67, 455.01, 330.06, 460.64, 329.9, 463.53, 329.14, 463.99, 315.44, 455.01, 304.94, 451.36, 302.35, 448.31, 301.29, 446.03, 298.55, 442.37, 297.18, 441.31, 296.26, 439.18, 299.76, 434.76, 300.68, 431.11], [281.8, 429.13, 296.41, 429.43, 290.63, 435.37, 288.65, 435.37, 286.82, 434.0, 285.76, 432.48, 283.93, 430.8], [276.17, 429.43, 272.21, 433.24, 271.15, 437.05, 270.84, 437.5, 282.87, 437.05], [275.1, 443.44, 279.37, 443.29, 279.37, 445.72, 281.65, 445.72, 281.95, 443.74, 282.11, 443.14, 289.56, 442.53, 291.54, 444.51, 293.67, 444.81, 294.44, 446.94, 293.83, 449.22, 289.72, 449.07, 281.5, 449.53, 278.6, 449.53, 277.84, 449.22, 276.47, 445.88]], "area": 872.8955000000007, "iscrowd": 0, "image_id": 425412, "bbox": [270.84, 429.13, 59.83, 34.86], "category_id": 3, "id": 360657}, {"segmentation": [[134.19, 52.6, 137.64, 39.98, 179.71, 43.8, 218.73, 64.07, 255.07, 74.4, 228.3, 100.8, 203.43, 118.39, 200.37, 100.42, 199.61, 82.44, 175.12, 71.73, 146.82, 63.31, 134.96, 54.13]], "area": 3468.5272500000005, "iscrowd": 0, "image_id": 237495, "bbox": [134.19, 39.98, 120.88, 78.41], "category_id": 3, "id": 364382}, {"segmentation": [[242.76, 163.54, 253.5, 147.43, 294.32, 143.13, 342.66, 140.98, 407.11, 159.24, 526.34, 185.02, 539.23, 317.14, 416.77, 335.41, 365.21, 335.41, 337.29, 320.37, 264.24, 298.88, 245.98, 276.33]], "area": 47080.78135, "iscrowd": 0, "image_id": 118710, "bbox": [242.76, 140.98, 296.47, 194.43], "category_id": 6, "id": 365867}, {"segmentation": [[361.82, 49.3, 589.64, 56.95, 614.53, 65.57, 618.36, 211.06, 614.53, 228.29, 602.08, 244.57, 589.64, 255.1, 582.94, 296.26, 565.71, 320.19, 539.86, 315.4, 530.29, 299.13, 533.16, 283.81, 517.85, 282.85, 406.81, 341.24, 395.33, 354.65, 376.18, 415.91, 307.26, 419.74, 294.82, 409.21, 238.34, 406.33, 208.67, 393.89, 89.02, 370.92, 61.26, 369.0, 35.42, 346.03, 34.46, 338.37, 2.87, 315.4, 0.96, 254.14, 27.76, 215.85, 32.55, 190.01, 132.09, 159.38, 160.81, 156.5, 260.36, 79.93, 293.86, 75.14, 345.55, 72.27, 356.08, 50.25, 358.95, 50.25], [0.96, 66.53, 38.29, 78.01, 33.5, 100.99, 40.2, 106.73, 44.03, 118.22, 19.14, 120.13, 17.23, 135.44, 1.91, 143.1, 0.96, 70.35], [0.96, 33.02, 1.91, 21.54, 125.39, 43.55, 148.37, 66.53, 184.74, 73.23, 202.93, 87.58, 201.97, 108.64, 185.7, 120.13, 180.91, 127.79, 145.5, 126.83, 145.5, 120.13, 139.75, 122.04, 131.14, 129.7, 111.04, 127.79, 103.38, 113.43, 96.68, 113.43, 97.64, 99.07, 90.93, 93.33, 95.72, 78.01, 63.18, 40.68, 4.79, 32.07], [194.31, 120.13, 199.1, 116.3, 266.1, 77.06, 219.2, 64.61, 167.51, 40.68, 41.16, 26.32, 130.18, 43.55, 146.45, 66.53, 196.23, 79.93, 201.97, 101.94, 185.7, 120.13, 200.06, 123.96]], "area": 171927.93104999996, "iscrowd": 0, "image_id": 237495, "bbox": [0.96, 21.54, 617.4, 398.2], "category_id": 8, "id": 394030}, {"segmentation": [[358.24, 105.99, 461.85, 119.46, 470.27, 127.89, 495.54, 171.69, 502.28, 165.79, 515.76, 173.37, 518.28, 184.32, 514.07, 191.91, 528.39, 195.27, 526.71, 210.44, 527.55, 218.86, 527.55, 224.76, 492.17, 225.6, 474.48, 228.13, 470.27, 234.86, 469.43, 280.35, 397.83, 313.2, 386.88, 319.1, 383.51, 319.1, 388.11, 350.81, 384.86, 364.86, 376.22, 386.49, 362.16, 410.27, 351.35, 421.08, 337.3, 426.49, 318.92, 423.24, 295.14, 413.51, 284.32, 401.62, 281.08, 395.14, 228.11, 380.0, 212.97, 361.62, 210.81, 354.05, 201.08, 355.14, 195.68, 357.3, 191.35, 354.05, 179.46, 352.97, 169.73, 365.95, 154.59, 374.59, 145.95, 376.76, 123.24, 376.76, 111.35, 364.86, 101.62, 359.46, 96.22, 345.41, 88.65, 334.59, 82.16, 333.51, 70.27, 323.78, 70.27, 318.38, 32.43, 322.7, 19.46, 316.22, 12.97, 289.19, 9.73, 270.81, 17.3, 269.73, 16.22, 258.92, 15.14, 230.81, 10.81, 222.16, 7.57, 216.76, 8.65, 198.38, 140.54, 188.65, 141.62, 199.46, 139.46, 211.35, 183.78, 212.43, 214.05, 214.59, 224.86, 211.35, 227.03, 207.03, 218.38, 207.03, 211.89, 201.62, 218.38, 188.65, 225.95, 178.92, 229.19, 172.43, 236.76, 168.11, 240.0, 159.46, 237.84, 150.81, 235.68, 140.0, 230.27, 135.68, 218.38, 134.59, 224.86, 117.3, 229.19, 110.81, 268.11, 104.32, 268.11, 114.05, 264.86, 124.86, 263.78, 131.35, 268.11, 148.65, 270.27, 157.3, 272.43, 163.78, 272.43, 177.84, 272.43, 186.49, 267.03, 207.03, 296.22, 201.62, 297.3, 163.78, 300.54, 147.57, 307.03, 157.3, 307.03, 172.43, 307.03, 190.81, 304.86, 198.38, 305.95, 202.7, 335.14, 197.3, 336.22, 190.81, 335.14, 171.35, 336.22, 155.14, 337.3, 133.51, 340.54, 124.86, 354.59, 121.62]], "area": 91454.94815000001, "iscrowd": 0, "image_id": 561795, "bbox": [7.57, 104.32, 520.82, 322.17], "category_id": 8, "id": 395626}, {"segmentation": [[336.77, 87.31, 334.85, 63.32, 350.2, 49.89, 434.64, 40.3, 512.35, 43.18, 640.0, 74.84, 640.0, 227.39, 633.24, 292.64, 616.93, 293.59, 612.14, 310.86, 588.15, 310.86, 569.92, 296.47, 537.3, 295.51, 502.76, 291.68, 495.08, 309.91, 474.93, 332.93, 435.59, 340.61, 426.96, 314.7, 423.12, 302.23, 419.28, 302.23, 408.73, 305.11, 392.42, 310.86, 378.99, 303.19, 361.72, 297.43, 336.77, 294.55, 325.26, 317.58, 317.58, 322.38, 288.8, 323.34, 264.81, 320.46, 260.97, 289.76, 258.09, 262.89, 253.3, 245.62, 260.97, 215.88, 261.93, 198.61, 262.89, 180.38, 258.81, 181.68, 254.63, 177.08, 255.89, 173.74, 260.48, 171.65, 263.82, 173.74, 265.91, 175.0, 268.41, 171.24, 270.92, 164.97, 274.68, 161.21, 279.27, 156.62, 282.61, 143.67, 299.35, 103.62, 335.81, 93.07]], "area": 92718.3226, "iscrowd": 0, "image_id": 398507, "bbox": [253.3, 40.3, 386.7, 300.31], "category_id": 8, "id": 397412}, {"segmentation": [[394.63, 403.22, 382.33, 382.73, 380.28, 348.89, 324.92, 342.74, 317.74, 180.77, 369.0, 174.61, 476.64, 179.75, 533.02, 171.55, 557.63, 208.45, 576.08, 221.77, 591.46, 227.93, 599.66, 268.93, 597.61, 285.33, 593.51, 294.56, 592.49, 362.22, 589.41, 381.69, 582.23, 388.87, 573.0, 387.85, 569.93, 380.67, 567.88, 401.18, 562.76, 409.38, 558.65, 414.5, 527.9, 417.58, 515.6, 413.48, 514.58, 400.15, 505.35, 395.03, 488.95, 395.03, 471.52, 392.97, 452.04, 394.0, 452.04, 412.46, 435.63, 412.46, 411.04, 413.48]], "area": 56345.93724999999, "iscrowd": 0, "image_id": 435187, "bbox": [317.74, 171.55, 281.92, 246.03], "category_id": 8, "id": 397550}, {"segmentation": [[360.24, 162.11, 401.22, 132.56, 436.48, 147.81, 445.06, 137.33, 581.34, 128.75, 602.31, 167.82, 615.65, 146.86, 638.52, 150.67, 637.57, 269.8, 609.93, 260.27, 601.36, 271.7, 573.72, 277.42, 567.05, 311.73, 549.89, 324.12, 532.74, 359.38, 543.22, 366.05, 542.27, 397.5, 526.07, 419.42, 506.05, 419.42, 436.48, 417.51, 409.8, 414.66, 382.16, 393.69, 334.51, 373.68, 306.87, 357.47, 292.58, 350.8, 295.44, 322.21, 292.58, 292.67, 294.48, 231.68, 315.45, 217.38, 340.23, 182.12]], "area": 74454.3025, "iscrowd": 0, "image_id": 199215, "bbox": [292.58, 128.75, 345.94, 290.67], "category_id": 8, "id": 398307}, {"segmentation": [[35.5, 196.21, 49.89, 181.82, 63.32, 167.43, 57.57, 150.16, 53.73, 156.87, 42.22, 157.83, 44.14, 142.48, 53.73, 140.56, 59.49, 144.4, 65.24, 147.28, 75.8, 142.48, 85.39, 130.97, 95.95, 124.25, 100.74, 99.3, 106.5, 92.59, 110.34, 87.79, 121.85, 82.03, 167.91, 81.07, 189.01, 81.07, 209.16, 83.95, 248.5, 86.83, 309.91, 96.43, 293.59, 108.9, 281.12, 147.28, 272.49, 154.95, 266.73, 153.99, 270.57, 141.52, 272.49, 134.8, 273.45, 122.33, 275.36, 110.82, 267.69, 110.82, 265.77, 120.41, 261.93, 128.09, 258.09, 143.44, 258.09, 152.07, 263.85, 168.39, 265.77, 172.22, 260.01, 174.14, 254.26, 186.61, 254.26, 191.41, 258.09, 212.52, 252.34, 231.71, 250.42, 240.34, 257.14, 270.09, 247.54, 279.68, 241.78, 290.24, 238.91, 294.07, 226.43, 305.59, 216.84, 311.34, 204.36, 315.18, 189.01, 316.14, 177.5, 308.47, 173.66, 295.99, 170.78, 289.28, 162.15, 292.16, 155.43, 295.03, 148.72, 295.03, 139.12, 290.24, 129.53, 284.48, 118.97, 283.52, 110.34, 285.44, 105.54, 295.03, 99.78, 306.55, 93.07, 310.39, 86.35, 311.34, 68.12, 311.34, 54.69, 313.26, 52.77, 313.26, 47.01, 305.59, 41.26, 295.03, 41.26, 277.76, 44.14, 269.13, 36.46, 263.37, 26.86, 262.41, 19.19, 261.45, 15.35, 257.61, 15.35, 251.86, 20.15, 248.02, 25.91, 244.18, 26.86, 236.51, 27.82, 230.75, 29.74, 221.16, 32.62, 209.64]], "area": 45608.17450000001, "iscrowd": 0, "image_id": 398507, "bbox": [15.35, 81.07, 294.56, 235.07], "category_id": 8, "id": 398442}, {"segmentation": [[398.98, 535.69, 410.1, 526.73, 413.63, 518.33, 406.03, 502.59, 396.54, 506.93, 393.56, 510.19, 373.21, 508.02, 370.5, 516.43, 376.74, 522.67, 393.28, 526.19]], "area": 760.4146000000011, "iscrowd": 0, "image_id": 418152, "bbox": [370.5, 502.59, 43.13, 33.1], "category_id": 10, "id": 405726}, {"segmentation": [[154.07, 179.46, 152.54, 139.23, 153.56, 132.61, 163.23, 131.08, 186.66, 131.08, 192.77, 138.72, 193.28, 179.97, 191.24, 184.04, 159.16, 186.08]], "area": 2091.82325, "iscrowd": 0, "image_id": 118710, "bbox": [152.54, 131.08, 40.74, 55.0], "category_id": 10, "id": 406680}, {"segmentation": [[395.84, 47.99, 393.36, 2.54, 394.29, 0.07, 426.45, 0.07, 428.92, 45.21, 425.52, 49.54, 421.19, 51.39, 400.78, 53.25]], "area": 1700.7740000000006, "iscrowd": 0, "image_id": 118710, "bbox": [393.36, 0.07, 35.56, 53.18], "category_id": 10, "id": 407254}, {"segmentation": [[376.72, 353.25, 392.03, 349.17, 393.56, 325.7, 391.52, 317.02, 391.52, 301.21, 382.85, 284.88, 375.19, 283.86, 369.07, 288.96, 367.03, 294.57, 367.03, 311.41, 363.46, 330.29, 366.01, 345.6, 367.03, 350.19, 374.68, 354.27]], "area": 1658.1301500000009, "iscrowd": 0, "image_id": 386581, "bbox": [363.46, 283.86, 30.1, 70.41], "category_id": 14, "id": 418099}, {"segmentation": [[144.64, 208.64, 143.36, 185.6, 147.2, 177.92, 140.8, 172.8, 140.8, 162.56, 156.16, 153.6, 175.36, 138.24, 192.0, 136.96, 204.8, 138.24, 217.6, 138.24, 225.28, 135.68, 239.36, 153.6, 235.52, 165.12, 232.96, 171.52, 225.28, 171.52, 216.32, 197.12, 209.92, 200.96, 226.56, 207.36, 226.56, 211.2, 190.72, 213.76, 147.2, 209.92]], "area": 5796.659199999998, "iscrowd": 0, "image_id": 561795, "bbox": [140.8, 135.68, 98.56, 78.08], "category_id": 1, "id": 454893}, {"segmentation": [[190.75, 628.54, 190.54, 625.37, 191.17, 620.51, 191.17, 620.51, 190.96, 616.5, 189.9, 615.02, 188.0, 611.42, 187.37, 608.89, 188.21, 603.81, 189.48, 600.85, 190.54, 598.32, 192.86, 598.11, 192.86, 595.99, 193.92, 593.67, 196.88, 592.82, 198.57, 596.42, 198.78, 599.16, 200.47, 600.64, 201.53, 604.66, 201.74, 608.04, 201.1, 610.15, 198.15, 609.31, 198.36, 614.17, 197.09, 625.58, 194.97, 627.06, 195.61, 622.2, 195.61, 617.34, 194.97, 614.38, 193.71, 621.99, 193.71, 628.75, 192.65, 628.97, 191.38, 628.75]], "area": 286.3504499999999, "iscrowd": 0, "image_id": 418152, "bbox": [187.37, 592.82, 14.37, 36.15], "category_id": 1, "id": 459808}, {"segmentation": [[301.39, 317.21, 301.39, 317.21, 296.01, 312.9, 297.09, 303.22, 297.09, 299.99, 303.55, 297.84, 304.62, 297.84, 306.78, 297.84, 310.0, 298.91, 313.23, 302.14, 315.39, 312.9, 317.54, 315.06, 326.15, 320.44, 327.23, 326.9, 326.15, 343.04, 326.15, 343.04, 325.07, 377.49, 326.15, 389.33, 326.15, 403.32, 320.77, 418.39, 314.31, 418.39, 294.93, 417.32, 291.71, 404.4, 291.71, 401.17, 291.71, 386.1, 292.78, 378.57, 292.78, 368.88, 292.78, 360.27, 291.71, 357.04, 288.48, 345.2, 279.87, 360.27]], "area": 3640.2354000000005, "iscrowd": 0, "image_id": 435187, "bbox": [279.87, 297.84, 47.36, 120.55], "category_id": 1, "id": 467670}, {"segmentation": [[328.93, 196.72, 339.85, 133.69, 339.01, 123.61, 354.98, 122.77, 357.5, 101.75, 356.66, 84.11, 335.65, 63.93, 319.68, 52.17, 307.07, 46.28, 296.15, 47.97, 279.34, 56.37, 261.69, 70.66, 260.01, 88.31, 263.37, 102.59, 265.05, 117.72, 266.73, 126.97, 270.09, 143.78, 275.14, 163.11, 275.14, 184.96, 270.09, 202.61, 278.5, 207.65, 298.67, 204.29, 300.35, 182.44, 299.51, 158.9, 303.71, 145.46, 312.12, 163.95, 309.6, 184.96, 305.39, 200.93]], "area": 10511.191800000006, "iscrowd": 0, "image_id": 561795, "bbox": [260.01, 46.28, 97.49, 161.37], "category_id": 1, "id": 505513}, {"segmentation": [[227.2, 275.14, 245.38, 266.62, 255.03, 256.96, 249.92, 242.2, 235.72, 217.2, 226.63, 199.6, 225.5, 189.94, 227.2, 184.26, 233.45, 179.15, 239.13, 179.15, 269.23, 188.24, 283.43, 194.48, 291.95, 195.62, 297.63, 189.37, 298.2, 182.56, 297.06, 179.15, 285.14, 180.28, 273.78, 189.37, 273.21, 181.99, 271.5, 167.79, 274.34, 156.43, 275.48, 150.75, 284.57, 146.77, 291.38, 153.59, 293.09, 157.0, 305.58, 146.2, 322.62, 142.8, 318.65, 126.89, 318.08, 120.64, 320.35, 120.64, 320.92, 109.28, 326.6, 105.31, 339.66, 105.88, 344.78, 112.69, 345.91, 117.24, 344.78, 121.21, 345.34, 124.62, 347.05, 125.19, 343.07, 132.0, 340.23, 135.98, 340.23, 141.09, 343.64, 144.5, 357.84, 152.45, 356.7, 159.27, 349.32, 158.7, 344.78, 170.63, 335.69, 178.01, 333.98, 183.12, 333.98, 189.94, 333.98, 194.48, 330.58, 198.46, 328.87, 203.0, 328.3, 209.25, 328.87, 216.07, 328.3, 222.32, 306.72, 231.97, 291.38, 235.95, 294.79, 275.14, 286.27, 299.56, 283.43, 313.2, 285.7, 322.85, 285.7, 333.08, 270.94, 352.96, 253.33, 355.8, 252.19, 345.57, 264.69, 323.42, 272.07, 304.68, 273.78, 276.84, 273.21, 254.12, 271.5, 237.65, 269.8, 228.0, 273.78, 221.75, 274.34, 215.5, 264.12, 212.09, 261.28, 210.96, 254.46, 214.36, 262.98, 234.81, 267.53, 254.12, 270.94, 264.35, 269.8, 279.12, 248.78, 279.12, 231.18, 279.12]], "area": 11096.926750000004, "iscrowd": 0, "image_id": 199215, "bbox": [225.5, 105.31, 132.34, 250.49], "category_id": 1, "id": 514878}, {"segmentation": [[174.62, 160.23, 171.74, 161.19, 167.91, 163.11, 166.95, 168.86, 166.95, 171.74, 161.19, 175.58, 154.47, 181.34, 150.64, 191.89, 157.35, 201.49, 162.15, 213.96, 159.27, 236.99, 154.47, 257.14, 147.76, 263.85, 154.47, 267.69, 160.23, 265.77, 164.07, 242.74, 169.82, 219.72, 173.66, 240.82, 175.58, 253.3, 171.74, 260.97, 181.34, 264.81, 181.34, 259.05, 177.5, 250.42, 182.3, 238.91, 182.3, 222.59, 180.38, 213.0, 180.38, 206.28, 184.22, 196.69, 184.22, 186.14, 180.38, 180.38, 174.62, 173.66, 176.54, 171.74, 180.38, 165.99, 174.62, 160.23, 172.7, 163.11]], "area": 1965.6101, "iscrowd": 0, "image_id": 199215, "bbox": [147.76, 160.23, 36.46, 107.46], "category_id": 1, "id": 523484}, {"segmentation": [[136.23, 160.14, 133.73, 164.2, 131.55, 164.2, 131.24, 164.51, 131.24, 165.45, 131.24, 166.38, 131.24, 166.38, 133.42, 167.94, 133.42, 167.94, 135.29, 167.63, 134.67, 171.69, 134.36, 171.69, 134.36, 170.13, 134.36, 172.62, 134.36, 172.62, 134.98, 176.68, 134.98, 179.49, 134.98, 181.68, 134.98, 184.17, 134.98, 184.8, 134.98, 190.42, 137.48, 189.48, 138.42, 188.54, 137.79, 188.23, 136.54, 186.67, 136.85, 185.73, 137.17, 184.8, 137.48, 183.24, 137.48, 183.24, 136.33, 182.72, 139.25, 181.02, 139.25, 181.02, 139.0, 178.59, 139.98, 176.64, 139.49, 175.18, 140.22, 174.94, 140.22, 174.94, 140.71, 171.53, 143.87, 171.05, 143.87, 171.05, 143.87, 169.35, 142.17, 165.94, 141.44, 164.24, 141.44, 161.32, 141.68, 160.59, 141.68, 158.16, 141.68, 156.94, 140.95, 154.75, 139.98, 153.54, 136.57, 151.1, 136.57, 159.62]], "area": 200.87135000000023, "iscrowd": 0, "image_id": 199215, "bbox": [131.24, 151.1, 12.63, 39.32], "category_id": 1, "id": 531068}, {"segmentation": [[113.89, 168.98, 113.41, 169.24, 112.44, 169.73, 111.96, 170.28, 111.92, 170.32, 111.33, 170.21, 111.29, 169.32, 111.03, 168.2, 110.84, 167.42, 110.62, 166.34, 110.51, 165.56, 109.62, 164.71, 109.36, 163.33, 109.06, 162.25, 109.17, 161.96, 109.54, 161.44, 109.73, 161.06, 110.55, 160.39, 111.07, 160.32, 111.81, 159.61, 111.81, 159.06, 111.62, 158.13, 112.67, 156.45, 113.56, 156.31, 114.9, 156.27, 115.49, 156.6, 115.68, 157.27, 115.75, 157.98, 115.71, 158.87, 115.49, 159.54, 116.35, 160.39, 116.87, 160.92, 117.94, 161.58, 118.06, 161.81, 117.76, 162.29, 117.13, 162.59, 116.79, 162.66, 116.35, 163.15, 116.2, 164.3, 116.2, 165.0, 116.27, 166.08, 116.27, 166.49, 116.01, 167.42, 114.75, 167.64, 114.38, 167.72, 113.82, 168.43, 113.78, 168.98]], "area": 69.81364999999995, "iscrowd": 0, "image_id": 199215, "bbox": [109.06, 156.27, 9.0, 14.05], "category_id": 1, "id": 551511}, {"segmentation": [[97.77, 170.46, 97.77, 177.14, 97.77, 181.65, 94.7, 188.15, 96.69, 192.31, 96.51, 193.75, 91.45, 193.39, 88.92, 189.24, 88.92, 179.49, 87.48, 175.88, 84.23, 175.7, 82.96, 170.1, 81.7, 161.25, 81.7, 157.64, 84.77, 154.93, 84.77, 152.58, 84.41, 148.79, 86.03, 146.99, 90.01, 146.99, 91.99, 151.68, 91.99, 153.67, 94.34, 153.67, 99.21, 161.61, 101.56, 167.03, 100.3, 168.83]], "area": 522.8159499999998, "iscrowd": 0, "image_id": 199215, "bbox": [81.7, 146.99, 19.86, 46.76], "category_id": 1, "id": 552800}, {"segmentation": [[103.83, 190.18, 110.98, 188.23, 111.37, 181.94, 110.58, 179.38, 109.4, 177.42, 106.06, 176.24, 104.68, 174.27, 104.29, 172.5, 104.29, 171.71, 104.88, 169.75, 105.47, 168.76, 107.24, 167.78, 108.03, 167.39, 109.8, 166.21, 105.08, 159.13, 103.9, 156.57, 102.32, 155.2, 101.54, 155.2, 100.36, 155.98, 99.37, 157.95, 99.57, 159.72, 99.57, 161.88, 100.16, 164.64, 101.54, 166.8, 100.36, 169.94, 100.36, 172.89, 100.36, 183.91, 103.31, 189.41]], "area": 244.77500000000006, "iscrowd": 0, "image_id": 199215, "bbox": [99.37, 155.2, 12.0, 34.98], "category_id": 1, "id": 553250}, {"segmentation": [[121.68, 186.05, 118.05, 172.85, 118.92, 168.49, 117.03, 169.8, 113.98, 169.36, 114.56, 167.33, 116.3, 167.91, 116.16, 163.27, 118.92, 161.96, 118.19, 159.2, 118.77, 157.75, 121.82, 157.32, 123.13, 158.19, 123.56, 161.23, 127.04, 165.01, 131.11, 171.83, 127.48, 173.72, 124.87, 182.13, 125.45, 189.54, 123.56, 190.12, 121.53, 188.08]], "area": 239.61990000000026, "iscrowd": 0, "image_id": 199215, "bbox": [113.98, 157.32, 17.13, 32.8], "category_id": 1, "id": 553299}, {"segmentation": [[152.83, 171.84, 152.1, 154.53, 158.93, 155.5, 160.14, 157.94, 165.51, 163.06, 161.36, 171.35, 154.54, 177.69]], "area": 191.83169999999984, "iscrowd": 0, "image_id": 199215, "bbox": [152.1, 154.53, 13.41, 23.16], "category_id": 1, "id": 553334}, {"segmentation": [[492.92, 183.48, 456.65, 182.38, 455.38, 177.33, 455.86, 173.86, 463.9, 170.7, 466.11, 167.23, 466.58, 158.4, 468.47, 155.09, 473.68, 152.57, 481.25, 152.57, 488.51, 157.14, 488.19, 162.82, 485.67, 167.87, 482.2, 171.18, 494.34, 176.07, 499.39, 183.64]], "area": 794.7025999999998, "iscrowd": 0, "image_id": 199215, "bbox": [455.38, 152.57, 44.01, 31.07], "category_id": 1, "id": 553367}, {"segmentation": [[180.35, 353.8, 180.35, 353.51, 179.16, 350.83, 179.16, 349.94, 180.65, 349.04, 183.92, 348.45, 186.0, 348.75, 187.19, 349.94, 188.08, 352.61, 188.38, 355.89, 189.87, 357.37, 192.25, 358.27, 192.84, 359.16, 191.65, 360.0, 188.68, 360.0, 183.32, 360.0, 176.78, 360.0, 177.08, 356.78, 178.56, 354.4, 180.05, 353.51]], "area": 117.41615000000007, "iscrowd": 0, "image_id": 236837, "bbox": [176.78, 348.45, 16.06, 11.55], "category_id": 1, "id": 556606}, {"segmentation": [[109.9, 219.04, 163.59, 187.16, 240.77, 125.08, 255.87, 109.98, 260.07, 96.56, 270.97, 104.95, 281.88, 113.34, 294.46, 131.79, 315.44, 151.09, 316.28, 164.51, 311.24, 168.71, 300.34, 163.67, 287.75, 160.32, 255.03, 151.93, 238.26, 164.51, 212.25, 198.07, 159.4, 253.44, 145.13, 269.38, 137.58, 292.87, 138.42, 313.84, 125.84, 346.56, 117.45, 367.53], [4.19, 276.93, 34.4, 265.18, 64.6, 242.53, 65.44, 368.37, 43.62, 367.53, 26.01, 360.82, 15.94, 370.89, 0.84, 368.37]], "area": 18482.65365, "iscrowd": 0, "image_id": 18874, "bbox": [0.84, 96.56, 315.44, 274.33], "category_id": 25, "id": 595845}, {"segmentation": [[265.45, 311.8, 264.61, 282.3, 267.13, 256.18, 265.45, 233.43, 275.56, 218.26, 290.73, 210.67, 317.7, 194.66, 331.18, 166.85, 335.39, 155.06, 332.87, 148.31, 345.51, 150.84, 354.78, 158.43, 364.04, 170.22, 357.3, 171.07, 343.82, 170.22, 338.76, 199.72, 329.49, 219.94, 322.75, 254.49, 315.17, 268.82, 313.48, 288.2, 323.6, 305.9, 313.48, 310.96, 308.43, 305.06, 307.58, 291.57, 309.27, 248.6, 289.89, 250.28, 283.99, 264.61, 289.04, 290.73, 300.0, 306.74, 291.57, 308.43, 281.46, 300.84, 273.88, 273.03, 267.13, 291.57, 270.51, 310.96]], "area": 5241.426550000004, "iscrowd": 0, "image_id": 18874, "bbox": [264.61, 148.31, 99.43, 163.49], "category_id": 25, "id": 596223}, {"segmentation": [[466.85, 316.01, 472.75, 321.07, 475.28, 305.06, 472.75, 279.78, 471.91, 270.51, 477.81, 261.24, 475.28, 241.01, 459.27, 220.79, 443.26, 214.04, 427.25, 204.78, 418.82, 182.02, 401.97, 155.06, 396.91, 147.47, 406.18, 141.57, 393.54, 142.42, 386.8, 142.42, 385.96, 139.04, 371.63, 156.74, 375.84, 161.8, 391.01, 155.9, 401.12, 179.49, 404.49, 202.25, 408.71, 219.1, 409.55, 237.64, 417.13, 259.55, 419.66, 275.56, 417.13, 305.06, 417.13, 310.96, 428.93, 309.27, 428.93, 288.2, 427.25, 261.24, 427.25, 251.12, 446.63, 256.18, 455.9, 261.24, 461.8, 278.93, 463.48, 282.3, 460.11, 297.47, 457.58, 306.74, 461.8, 305.9, 467.7, 293.26, 467.7, 310.11, 466.85, 316.01]], "area": 5171.63195, "iscrowd": 0, "image_id": 18874, "bbox": [371.63, 139.04, 106.18, 182.03], "category_id": 25, "id": 597346}, {"segmentation": [[210.34, 202.76, 223.15, 209.94, 228.79, 214.04, 231.87, 229.43, 233.41, 240.71, 229.31, 267.37, 231.87, 279.16, 228.28, 293.52, 221.62, 291.47, 222.64, 289.42, 219.05, 290.44, 212.9, 288.91, 219.05, 276.09, 215.98, 259.17, 205.21, 243.78, 202.13, 235.58, 191.88, 233.02, 184.7, 231.48, 183.16, 236.09, 185.21, 244.81, 185.72, 257.12, 188.29, 277.11, 188.8, 284.29, 187.26, 289.93, 183.67, 290.44, 179.06, 286.86, 184.18, 285.83, 183.67, 277.63, 182.65, 272.5, 181.62, 262.76, 179.57, 270.45, 180.08, 280.7, 180.08, 283.78, 173.42, 283.27, 174.96, 275.06, 179.06, 268.4, 177.01, 257.12, 177.52, 249.42, 177.52, 248.91, 176.49, 239.68, 178.54, 236.61, 182.13, 232.5, 191.36, 224.3, 201.11, 214.04, 211.36, 206.35, 206.75, 208.4, 209.82, 204.3, 211.36, 204.3, 216.49, 207.38], [163.67, 185.33, 163.16, 176.1, 159.57, 164.31, 153.42, 161.23, 151.37, 155.08, 135.47, 155.59, 130.86, 156.1, 135.47, 151.49, 140.09, 147.39, 141.11, 145.34, 142.65, 142.26, 149.83, 137.64, 152.39, 140.72, 154.96, 144.31, 163.16, 156.1, 166.24, 162.26, 171.37, 167.9, 174.96, 177.13, 163.67, 184.31]], "area": 2984.07105, "iscrowd": 0, "image_id": 18874, "bbox": [130.86, 137.64, 102.55, 155.88], "category_id": 25, "id": 598795}, {"segmentation": [[482.19, 190.23, 482.44, 184.93, 483.7, 178.36, 484.97, 172.31, 487.74, 171.8, 487.49, 189.98], [491.28, 178.36, 496.07, 181.14, 499.35, 183.67, 499.35, 187.7, 491.28, 188.71, 491.28, 184.17]], "area": 137.26695000000046, "iscrowd": 0, "image_id": 91359, "bbox": [482.19, 171.8, 17.16, 18.43], "category_id": 1, "id": 1208348}, {"segmentation": [[317.25, 194.2, 324.09, 194.2, 318.2, 189.26, 317.82, 190.02], [311.36, 193.44, 302.82, 194.2, 302.82, 192.11, 305.67, 189.64, 307.76, 188.88, 308.89, 187.74, 308.71, 185.84, 307.76, 184.51, 308.33, 179.2, 309.08, 178.25, 314.4, 178.06, 313.45, 179.77]], "area": 104.38420000000002, "iscrowd": 0, "image_id": 91359, "bbox": [302.82, 178.06, 21.27, 16.14], "category_id": 1, "id": 1224463}, {"segmentation": [[450.81, 166.34, 454.32, 168.92, 456.19, 167.98, 459.46, 168.22, 461.57, 168.68, 464.14, 171.25, 466.01, 171.72, 466.94, 176.16, 469.28, 177.33, 475.83, 179.44, 482.37, 180.84, 487.05, 180.84, 490.56, 180.14, 491.49, 178.5, 494.06, 176.4, 498.04, 175.0, 501.08, 175.23, 501.31, 178.5, 502.25, 182.01, 502.25, 186.68, 497.57, 188.79, 494.53, 190.89, 492.89, 193.46, 491.49, 196.27, 487.52, 196.27, 475.59, 195.57, 476.3, 218.71, 475.59, 231.1, 448.47, 231.57, 444.06, 209.69, 445.7, 202.91, 446.4, 200.57, 445.0, 194.49, 443.83, 188.88, 444.3, 186.54, 445.0, 182.8, 446.87, 179.53, 448.51, 178.6, 448.51, 175.09, 448.51, 171.58, 449.91, 167.37]], "area": 2171.2060499999993, "iscrowd": 0, "image_id": 24522, "bbox": [443.83, 166.34, 58.42, 65.23], "category_id": 1, "id": 1227230}, {"segmentation": [[606.53, 323.79, 604.24, 319.97, 607.3, 315.13, 609.84, 312.58, 609.59, 307.74, 614.17, 307.23, 615.45, 309.01, 617.74, 314.87, 619.01, 321.75, 618.25, 323.03, 610.1, 325.32]], "area": 170.18330000000006, "iscrowd": 0, "image_id": 442223, "bbox": [604.24, 307.23, 14.77, 18.09], "category_id": 1, "id": 1236891}, {"segmentation": [[225.25, 160.95, 227.45, 161.22, 228.55, 162.6, 228.83, 161.77, 229.93, 163.7, 230.47, 166.45, 230.75, 167.82, 234.6, 170.02, 238.72, 177.72, 238.45, 179.09, 234.87, 178.82, 229.38, 182.94, 227.45, 185.14, 225.8, 191.47, 226.35, 199.16, 230.47, 206.86, 228.0, 207.41, 227.45, 207.96, 226.63, 204.11, 225.53, 203.29, 225.8, 198.61, 222.5, 183.49, 220.58, 179.09, 221.4, 176.89, 220.3, 176.89, 218.93, 179.92, 219.2, 183.22, 221.95, 185.69, 218.93, 186.52, 217.83, 184.04, 215.9, 177.44, 215.9, 175.8, 220.3, 169.75, 222.23, 167.27, 223.05, 165.07, 224.15, 163.15]], "area": 358.5271499999996, "iscrowd": 0, "image_id": 199215, "bbox": [215.9, 160.95, 22.82, 47.01], "category_id": 1, "id": 1250619}, {"segmentation": [[350.63, 210.97, 349.77, 204.29, 345.93, 196.61, 346.07, 191.34, 345.22, 187.79, 344.08, 187.07, 343.23, 183.8, 342.23, 180.67, 336.97, 179.82, 335.26, 207.27, 335.97, 216.09, 339.96, 208.7, 339.96, 204.71, 342.23, 203.01, 348.07, 207.13, 349.35, 209.83]], "area": 279.4470999999996, "iscrowd": 0, "image_id": 24522, "bbox": [335.26, 179.82, 15.37, 36.27], "category_id": 1, "id": 1269971}, {"segmentation": [[234.44, 163.34, 236.61, 161.84, 236.61, 157.83, 238.78, 154.83, 242.45, 157.5, 242.45, 160.67, 241.95, 162.17, 246.29, 165.84, 246.29, 170.52, 245.45, 171.52, 242.95, 174.02, 244.79, 177.53, 245.45, 180.86, 239.11, 178.69, 237.61, 175.86, 235.77, 171.85, 233.27, 170.01, 231.6, 168.85, 230.27, 166.84]], "area": 208.29429999999954, "iscrowd": 0, "image_id": 199215, "bbox": [230.27, 154.83, 16.02, 26.03], "category_id": 1, "id": 1286730}, {"segmentation": [[232.91, 432.66, 232.5, 425.24, 234.66, 423.22, 235.74, 422.68, 237.76, 422.54, 239.25, 422.54, 240.59, 423.22, 241.0, 423.35, 242.89, 422.0, 243.02, 421.06, 242.08, 420.25, 240.86, 419.31, 241.0, 417.55, 242.08, 417.29, 244.37, 417.29, 245.31, 417.15, 245.45, 418.36, 244.5, 418.77, 245.18, 419.17, 246.66, 419.31, 248.41, 419.44, 250.3, 419.31, 251.52, 419.17, 251.92, 417.96, 252.06, 416.75, 254.48, 415.4, 255.7, 415.67, 255.83, 417.15, 254.89, 418.36, 254.62, 419.58, 254.48, 420.39, 255.02, 421.6, 255.83, 422.0, 256.77, 422.0, 258.93, 422.14, 260.41, 422.95, 261.9, 424.84, 262.98, 427.8, 263.52, 430.5, 263.11, 432.12, 262.17, 433.73, 260.41, 434.54, 258.39, 435.08, 255.16, 435.22, 253.81, 435.35, 253.27, 434.95, 252.32, 433.6, 251.79, 432.39, 251.65, 430.77, 251.65, 429.29, 251.92, 427.53, 252.86, 425.91, 253.27, 424.16, 251.79, 424.97, 248.68, 427.26, 246.93, 429.29, 246.8, 430.23, 245.45, 431.17, 245.31, 431.98, 245.18, 432.79, 243.43, 433.2, 241.54, 434.54, 239.38, 435.08, 236.95, 434.95, 233.72, 434.0]], "area": 367.19450000000006, "iscrowd": 0, "image_id": 420658, "bbox": [232.5, 415.4, 31.02, 19.95], "category_id": 2, "id": 1333686}, {"segmentation": [[271.46, 433.35, 272.43, 431.17, 272.43, 427.78, 271.7, 425.85, 270.74, 424.64, 270.98, 423.19, 271.7, 422.95, 271.95, 421.98, 269.53, 421.01, 269.04, 421.01, 269.04, 419.08, 269.04, 418.11, 268.32, 417.38, 265.17, 417.14, 264.93, 417.14, 263.96, 417.14, 265.66, 420.04, 265.9, 420.04, 264.69, 421.98, 263.96, 422.7, 262.27, 424.16, 258.16, 425.61, 263.24, 434.8, 266.62, 435.04, 266.87, 432.86, 268.56, 432.62, 270.01, 434.8, 270.74, 435.53]], "area": 152.6948000000001, "iscrowd": 0, "image_id": 420658, "bbox": [258.16, 417.14, 14.27, 18.39], "category_id": 2, "id": 1335801}, {"segmentation": [[69.74, 248.44, 61.08, 249.49, 54.52, 250.8, 52.16, 253.69, 53.48, 255.79, 58.72, 256.05, 60.56, 256.57, 64.49, 256.84, 69.21, 256.84, 71.31, 256.05, 72.1, 254.21, 72.1, 251.59, 71.57, 250.54, 70.26, 248.97], [75.25, 250.28, 77.87, 252.9, 83.11, 252.64, 83.9, 253.95, 83.9, 255.0, 83.38, 256.84, 82.59, 257.36, 80.75, 255.26, 79.18, 254.21, 77.61, 255.26, 77.61, 255.53, 77.08, 255.53]], "area": 150.38334999999972, "iscrowd": 0, "image_id": 538690, "bbox": [52.16, 248.44, 31.74, 8.92], "category_id": 3, "id": 1339326}, {"segmentation": [[1.12, 538.87, 3.6, 538.04, 18.92, 536.38, 25.54, 535.14, 26.78, 540.94, 31.34, 540.11, 32.99, 539.28, 35.48, 533.48, 41.69, 533.48, 46.24, 533.07, 52.03, 531.41, 56.17, 537.62, 59.49, 536.8, 60.73, 534.31, 64.04, 528.1, 62.8, 516.93, 54.93, 506.16, 50.38, 505.34, 14.78, 508.23, 7.33, 515.68, 4.43, 519.0, 2.36, 521.89, 0.0, 523.14, 0.0, 527.69, 0.0, 534.73, 0.29, 537.62]], "area": 1670.9316000000003, "iscrowd": 0, "image_id": 522406, "bbox": [0.0, 505.34, 64.04, 35.6], "category_id": 3, "id": 1341674}, {"segmentation": [[597.75, 148.59, 609.31, 141.59, 621.21, 141.94, 634.87, 143.69, 640.0, 152.09, 633.82, 158.74, 621.56, 161.89, 611.41, 157.69, 593.9, 152.09, 597.05, 148.94]], "area": 607.8887500000008, "iscrowd": 0, "image_id": 168662, "bbox": [593.9, 141.59, 46.1, 20.3], "category_id": 3, "id": 1342973}, {"segmentation": [[604.2, 145.0, 604.05, 141.48, 600.09, 137.82, 598.63, 136.79, 584.86, 135.18, 572.99, 135.18, 571.52, 137.82, 571.08, 139.13, 572.25, 141.04, 571.37, 141.92, 573.43, 142.07, 573.13, 139.72, 573.72, 138.4, 584.56, 139.13, 593.35, 152.28, 595.69, 149.94]], "area": 251.56095000000036, "iscrowd": 0, "image_id": 168662, "bbox": [571.08, 135.18, 33.12, 17.1], "category_id": 3, "id": 1344796}, {"segmentation": [[171.05, 519.92, 166.94, 520.53, 166.48, 520.53, 165.42, 516.27, 164.66, 511.4, 164.51, 509.57, 162.83, 508.05, 162.07, 506.52, 161.16, 503.94, 171.05, 503.63, 174.4, 503.63, 173.33, 511.7, 173.03, 517.33, 173.64, 520.68, 171.96, 521.75]], "area": 155.22649999999996, "iscrowd": 0, "image_id": 522406, "bbox": [161.16, 503.63, 13.24, 18.12], "category_id": 3, "id": 1346141}, {"segmentation": [[347.81, 131.87, 342.85, 131.87, 335.9, 131.5, 333.42, 130.14, 332.55, 124.92, 333.17, 123.56, 336.52, 120.58, 344.96, 120.71, 346.32, 124.3, 348.68, 126.54]], "area": 150.27389999999994, "iscrowd": 0, "image_id": 168662, "bbox": [332.55, 120.58, 16.13, 11.29], "category_id": 3, "id": 1346611}, {"segmentation": [[370.79, 121.42, 381.57, 121.55, 383.33, 122.09, 383.6, 124.52, 386.02, 125.06, 385.62, 129.91, 385.62, 131.13, 374.43, 130.99, 368.77, 130.05, 368.9, 124.93, 370.11, 121.42]], "area": 148.82190000000017, "iscrowd": 0, "image_id": 168662, "bbox": [368.77, 121.42, 17.25, 9.71], "category_id": 3, "id": 1348056}, {"segmentation": [[443.5, 436.09, 457.86, 423.62, 497.72, 420.41, 498.85, 423.81, 501.5, 456.11, 499.42, 459.13, 496.59, 464.23, 488.84, 464.42, 486.39, 459.51, 477.51, 459.51, 475.05, 461.78, 472.97, 467.26, 465.8, 467.26, 460.88, 465.37, 459.56, 464.23, 456.35, 461.78, 442.75, 461.59], [427.45, 447.61, 425.75, 447.8, 425.75, 452.9, 425.94, 458.19, 427.83, 460.83]], "area": 2239.3774999999987, "iscrowd": 0, "image_id": 420658, "bbox": [425.75, 420.41, 75.75, 46.85], "category_id": 3, "id": 1349669}, {"segmentation": [[216.4, 511.62, 219.79, 511.84, 219.68, 514.46, 221.31, 514.02, 221.97, 512.16, 224.04, 511.95, 225.24, 513.69, 226.12, 513.26, 226.88, 506.6, 226.99, 505.07, 221.53, 500.16, 211.93, 500.27, 211.71, 505.94, 214.44, 508.67, 215.86, 510.2]], "area": 152.76004999999986, "iscrowd": 0, "image_id": 522406, "bbox": [211.71, 500.16, 15.28, 14.3], "category_id": 3, "id": 1350323}, {"segmentation": [[552.59, 455.33, 550.81, 459.1, 547.26, 459.33, 543.7, 457.77, 541.92, 448.22, 541.7, 441.34, 553.7, 436.45, 560.14, 427.12, 582.35, 422.01, 600.11, 422.46, 609.0, 430.45, 609.66, 438.01, 608.33, 451.55, 606.55, 456.66, 599.0, 456.66, 596.56, 452.0, 581.46, 452.22, 581.01, 458.44, 573.24, 458.88, 568.58, 458.22, 567.02, 454.88]], "area": 1894.9686000000008, "iscrowd": 0, "image_id": 420658, "bbox": [541.7, 422.01, 67.96, 37.32], "category_id": 3, "id": 1351898}, {"segmentation": [[0.65, 247.46, 7.19, 248.07, 8.01, 249.71, 10.05, 250.93, 11.69, 251.34, 12.09, 253.18, 11.89, 254.0, 11.07, 254.82, 6.17, 255.43, 0.24, 256.25, 0.24, 248.07]], "area": 77.10315000000001, "iscrowd": 0, "image_id": 538690, "bbox": [0.24, 247.46, 11.85, 8.79], "category_id": 3, "id": 1356075}, {"segmentation": [[631.73, 450.0, 623.65, 450.0, 623.3, 453.86, 613.83, 450.0, 611.02, 444.04, 612.07, 435.62, 621.55, 432.81, 628.57, 426.49, 631.02, 428.25]], "area": 376.9208499999997, "iscrowd": 0, "image_id": 420658, "bbox": [611.02, 426.49, 20.71, 27.37], "category_id": 3, "id": 1356600}, {"segmentation": [[341.86, 171.97, 318.53, 174.99, 317.99, 164.29, 354.75, 162.09, 354.75, 164.29, 351.18, 168.68, 350.09, 171.15, 348.72, 173.07], [359.14, 162.92, 365.45, 162.37, 362.98, 171.97, 358.04, 172.24], [245.09, 169.1, 292.62, 165.93, 295.09, 167.69, 295.44, 174.73, 254.95, 179.31, 226.77, 180.36, 168.32, 186.7, 168.67, 174.02, 173.25, 173.67, 181.0, 172.62, 193.32, 171.56, 202.83, 171.21, 206.0, 170.5, 208.46, 167.33, 213.75, 166.63, 219.03, 166.98, 224.31, 166.98, 229.59, 166.98], [133.15, 174.55, 76.42, 178.33, 19.69, 179.59, 14.65, 182.11, 14.65, 194.72, 22.21, 195.98, 56.88, 195.98, 94.7, 194.09, 121.17, 192.2, 141.98, 190.94, 143.87, 190.94, 144.5, 189.04]], "area": 3970.3659499999985, "iscrowd": 0, "image_id": 236837, "bbox": [14.65, 162.09, 350.8, 33.89], "category_id": 7, "id": 1366809}, {"segmentation": [[0.0, 154.21, 4.38, 154.44, 31.73, 162.55, 37.52, 166.26, 40.53, 165.33, 50.96, 164.87, 51.42, 165.33, 62.78, 165.57, 62.78, 167.88, 34.97, 195.92, 27.32, 236.48, 1.83, 237.4, 0.0, 236.94, 0.44, 183.41, 0.67, 155.14]], "area": 3019.232049999999, "iscrowd": 0, "image_id": 398507, "bbox": [0.0, 154.21, 62.78, 83.19], "category_id": 8, "id": 1368526}, {"segmentation": [[282.25, 485.08, 284.05, 485.08, 286.74, 484.9, 288.18, 485.62, 288.72, 489.22, 288.36, 492.45, 287.1, 494.43, 284.77, 495.15, 282.79, 493.89, 281.53, 490.66]], "area": 59.69710000000029, "iscrowd": 0, "image_id": 522406, "bbox": [281.53, 484.9, 7.19, 10.25], "category_id": 10, "id": 1381382}, {"segmentation": [[212.52, 491.62, 207.14, 491.8, 207.68, 481.39, 215.03, 482.11, 214.32, 491.98]], "area": 72.81795000000008, "iscrowd": 0, "image_id": 522406, "bbox": [207.14, 481.39, 7.89, 10.59], "category_id": 10, "id": 1382213}, {"segmentation": [[496.51, 150.04, 488.46, 148.9, 480.99, 148.32, 479.84, 131.08, 507.43, 131.36, 508.58, 149.47, 505.7, 148.61]], "area": 493.70009999999974, "iscrowd": 0, "image_id": 387855, "bbox": [479.84, 131.08, 28.74, 18.96], "category_id": 10, "id": 1382319}, {"segmentation": [[553.74, 201.16, 568.91, 199.72, 571.32, 203.81, 567.22, 208.87, 555.66, 209.83, 552.53, 205.26]], "area": 142.8833000000006, "iscrowd": 0, "image_id": 233977, "bbox": [552.53, 199.72, 18.79, 10.11], "category_id": 10, "id": 1384929}, {"segmentation": [[239.62, 222.66, 238.32, 217.76, 240.65, 215.17, 244.78, 214.14, 249.04, 214.79, 251.75, 215.82, 252.0, 221.11, 251.88, 223.43]], "area": 104.87480000000015, "iscrowd": 0, "image_id": 233977, "bbox": [238.32, 214.14, 13.68, 9.29], "category_id": 10, "id": 1385367}, {"segmentation": [[300.22, 535.17, 306.84, 533.61, 310.94, 537.32, 312.5, 544.72, 313.67, 549.99, 315.03, 554.47, 312.3, 558.37, 306.65, 559.34, 300.41, 557.78, 298.66, 556.03, 300.02, 549.01, 301.97, 545.5, 299.83, 544.72, 298.07, 543.16, 296.32, 537.7, 297.68, 533.61]], "area": 333.2642999999999, "iscrowd": 0, "image_id": 522406, "bbox": [296.32, 533.61, 18.71, 25.73], "category_id": 11, "id": 1387893}, {"segmentation": [[336.95, 346.4, 342.22, 350.12, 347.17, 347.95, 354.3, 346.09, 359.56, 344.23, 361.73, 326.88, 359.25, 314.8, 358.63, 294.98, 353.06, 286.3, 348.72, 289.71, 341.6, 292.5, 333.54, 292.81, 330.76, 292.5, 331.37, 299.0, 332.92, 307.06, 334.47, 311.4, 335.09, 316.66, 331.99, 325.02, 332.61, 335.87, 334.47, 340.51]], "area": 1497.6154999999992, "iscrowd": 0, "image_id": 386581, "bbox": [330.76, 286.3, 30.97, 63.82], "category_id": 14, "id": 1389901}, {"segmentation": [[1.98, 400.24, 22.6, 399.97, 23.15, 401.34, 18.75, 406.84, 11.33, 423.34, 11.6, 425.26, 7.48, 424.16, 10.23, 413.71, 9.13, 412.62, 0.0, 421.96]], "area": 320.9725999999992, "iscrowd": 0, "image_id": 46526, "bbox": [0.0, 399.97, 23.15, 25.29], "category_id": 15, "id": 1397491}, {"segmentation": [[73.07, 342.88, 74.58, 357.05, 95.83, 359.32, 101.4, 348.7, 86.73, 346.17, 85.21, 337.06]], "area": 368.3520500000001, "iscrowd": 0, "image_id": 46526, "bbox": [73.07, 337.06, 28.33, 22.26], "category_id": 15, "id": 1398269}, {"segmentation": [[68.67, 483.35, 72.63, 483.35, 74.18, 483.35, 75.55, 484.04, 79.51, 487.65, 79.85, 490.57, 79.85, 493.15, 79.33, 494.7, 75.55, 498.48, 75.38, 505.53, 74.0, 506.04, 72.8, 501.57, 71.08, 501.57, 71.25, 505.53, 70.57, 506.39, 68.16, 506.73, 67.64, 502.09, 66.27, 501.92, 66.1, 501.92, 64.72, 500.54, 65.41, 499.51, 66.78, 498.65, 65.06, 497.1, 64.21, 495.04, 63.86, 492.29, 63.86, 489.54, 64.55, 486.79]], "area": 261.40839999999974, "iscrowd": 0, "image_id": 3947, "bbox": [63.86, 483.35, 15.99, 23.38], "category_id": 20, "id": 1406761}, {"segmentation": [[407.82, 488.61, 407.82, 484.05, 419.98, 483.04, 423.02, 488.61, 423.02, 490.64, 422.01, 491.65, 412.89, 491.65, 408.83, 491.65, 407.82, 490.64]], "area": 115.24469999999943, "iscrowd": 0, "image_id": 3947, "bbox": [407.82, 483.04, 15.2, 8.61], "category_id": 20, "id": 1406998}, {"segmentation": [[444.98, 217.51, 444.98, 217.51, 460.19, 217.03, 459.95, 238.51, 433.4, 239.23, 433.64, 234.41, 434.12, 229.58, 444.26, 217.75], [433.64, 242.85, 459.71, 241.65, 460.19, 253.96, 433.4, 254.92, 433.4, 242.61], [433.88, 258.06, 460.19, 256.61, 461.16, 269.41, 433.4, 270.13]], "area": 1159.37005, "iscrowd": 0, "image_id": 435187, "bbox": [433.4, 217.03, 27.76, 53.1], "category_id": 21, "id": 1407775}, {"segmentation": [[425.81, 245.5, 423.93, 255.25, 415.3, 255.25, 411.92, 246.62, 407.8, 247.75, 402.54, 243.81, 399.73, 241.93, 399.73, 237.99, 405.17, 236.49, 410.8, 237.24, 421.12, 234.42, 425.25, 234.61]], "area": 354.46359999999976, "iscrowd": 0, "image_id": 435187, "bbox": [399.73, 234.42, 26.08, 20.83], "category_id": 21, "id": 1407828}, {"segmentation": [[190.86, 187.54, 190.97, 184.3, 191.27, 183.29, 193.7, 182.58, 193.9, 186.93, 192.38, 186.83, 191.17, 187.74], [188.94, 203.96, 187.93, 205.27, 188.43, 208.31, 189.75, 210.14, 192.18, 210.04, 192.79, 208.11, 194.11, 204.97, 195.32, 200.82, 194.41, 199.4, 193.6, 192.71, 193.7, 190.89, 192.49, 191.49, 192.99, 193.32, 192.79, 197.17, 192.89, 199.09, 191.98, 201.32, 190.86, 202.74, 189.75, 203.45]], "area": 65.8744499999999, "iscrowd": 0, "image_id": 199215, "bbox": [187.93, 182.58, 7.39, 27.56], "category_id": 31, "id": 1432788}, {"segmentation": [[130.63, 173.34, 126.29, 173.1, 122.11, 171.92, 120.84, 170.18, 121.4, 167.5, 124.48, 166.63, 124.24, 164.1, 123.76, 161.74, 124.63, 161.89, 125.9, 164.34, 126.45, 166.55, 127.4, 166.63, 130.63, 168.13, 131.42, 171.29, 131.19, 172.55]], "area": 63.37084999999994, "iscrowd": 0, "image_id": 199215, "bbox": [120.84, 161.74, 10.58, 11.6], "category_id": 31, "id": 1433344}, {"segmentation": [[94.25, 157.18, 98.77, 161.54, 100.34, 165.9, 96.96, 167.95, 94.25, 168.28, 90.05, 164.5, 88.65, 161.37, 88.65, 159.07, 90.22, 156.11, 90.79, 154.71, 93.01, 154.71]], "area": 96.56954999999991, "iscrowd": 0, "image_id": 199215, "bbox": [88.65, 154.71, 11.69, 13.57], "category_id": 31, "id": 1435694}, {"segmentation": [[39.83, 172.19, 41.39, 181.09, 39.55, 184.76, 31.78, 182.08, 32.63, 172.89, 35.31, 171.62]], "area": 96.68074999999999, "iscrowd": 0, "image_id": 199215, "bbox": [31.78, 171.62, 9.61, 13.14], "category_id": 31, "id": 1437513}, {"segmentation": [[42.64, 151.7, 39.92, 154.32, 41.23, 159.77, 42.34, 156.14, 43.14, 152.51], [36.89, 157.96, 34.27, 161.59, 32.05, 164.92, 35.28, 168.65, 38.5, 169.15, 39.21, 166.43]], "area": 56.65475000000002, "iscrowd": 0, "image_id": 199215, "bbox": [32.05, 151.7, 11.09, 17.45], "category_id": 31, "id": 1439394}, {"segmentation": [[94.47, 270.32, 94.37, 267.99, 94.57, 265.66, 95.08, 264.24, 96.3, 262.92, 97.92, 262.21, 99.84, 262.11, 101.97, 262.31, 104.2, 263.02, 105.41, 263.73, 106.53, 264.74, 107.85, 267.99, 106.63, 271.84, 105.72, 273.36, 104.3, 274.57, 101.56, 275.48, 98.73, 275.38, 97.11, 274.88, 95.89, 273.56, 95.38, 271.84]], "area": 143.1236999999999, "iscrowd": 0, "image_id": 46526, "bbox": [94.37, 262.11, 13.48, 13.37], "category_id": 85, "id": 1665783}, {"segmentation": [[168.43, 196.34, 167.19, 195.81, 165.5, 195.45, 163.9, 195.81, 163.54, 196.25, 163.28, 197.23, 163.28, 198.65, 163.01, 200.16, 161.05, 201.41, 160.25, 203.37, 159.01, 205.77, 158.92, 207.9, 160.87, 208.26, 161.67, 204.88, 163.28, 203.28, 165.59, 201.77, 166.21, 199.45, 168.26, 198.12, 168.52, 197.14]], "area": 42.92740000000004, "iscrowd": 0, "image_id": 438232, "bbox": [158.92, 195.45, 9.6, 12.81], "category_id": 1, "id": 1678620}, {"segmentation": [[169.71, 200.11, 167.27, 200.11, 164.0, 203.17, 161.56, 207.86, 158.29, 212.76, 156.46, 216.22, 155.85, 221.32, 156.87, 226.42, 159.93, 233.15, 162.17, 234.57, 162.37, 246.51, 161.76, 253.86, 161.76, 258.55, 162.37, 264.98, 168.69, 264.57, 167.88, 244.79, 165.23, 236.03, 167.27, 232.76, 168.08, 229.5, 162.78, 221.84, 165.64, 206.35]], "area": 386.5284, "iscrowd": 0, "image_id": 438232, "bbox": [155.85, 200.11, 13.86, 64.87], "category_id": 1, "id": 1688261}, {"segmentation": [[99.25, 350.7, 102.1, 358.39, 101.88, 360.0, 92.32, 360.0, 91.77, 358.83, 90.46, 356.2, 91.33, 353.67, 93.09, 351.14, 94.52, 349.93, 97.38, 348.94, 98.37, 350.04]], "area": 92.19645, "iscrowd": 0, "image_id": 236837, "bbox": [90.46, 348.94, 11.64, 11.06], "category_id": 1, "id": 1699867}, {"segmentation": [[329.78, 140.17, 332.16, 138.58, 329.78, 130.63, 330.18, 127.44, 332.56, 125.46, 332.96, 131.02, 332.96, 136.59, 332.96, 138.18]], "area": 27.362899999999797, "iscrowd": 0, "image_id": 168662, "bbox": [329.78, 125.46, 3.18, 14.71], "category_id": 1, "id": 1703011}, {"segmentation": [[311.94, 145.11, 312.67, 137.2, 313.84, 133.54, 313.55, 128.85, 314.87, 130.46, 316.04, 128.11, 316.77, 124.6, 316.48, 121.81, 314.87, 121.52, 313.11, 123.72, 313.4, 120.49, 312.81, 119.62, 310.18, 120.35, 309.44, 121.52, 309.44, 121.96, 307.25, 123.13, 307.25, 126.06, 306.66, 132.36, 307.25, 134.27, 307.69, 138.37, 307.25, 140.86, 307.69, 145.26, 307.98, 146.43, 308.71, 146.14, 309.88, 139.54, 310.62, 144.82, 310.62, 146.14, 312.96, 146.58, 312.67, 145.4]], "area": 161.20419999999976, "iscrowd": 0, "image_id": 168662, "bbox": [306.66, 119.62, 10.11, 26.96], "category_id": 1, "id": 1704531}, {"segmentation": [[151.1, 359.69, 151.03, 355.76, 152.09, 354.86, 151.03, 353.27, 150.95, 351.53, 151.71, 348.21, 152.24, 347.15, 153.22, 346.09, 156.4, 345.94, 158.13, 346.32, 158.59, 346.62, 158.89, 347.75, 158.66, 349.57, 158.81, 352.89, 159.12, 354.03, 160.4, 354.93, 161.84, 356.29, 163.2, 358.33, 163.58, 359.92, 163.58, 360.0]], "area": 119.96795000000006, "iscrowd": 0, "image_id": 236837, "bbox": [150.95, 345.94, 12.63, 14.06], "category_id": 1, "id": 1705148}, {"segmentation": [[330.95, 139.49, 331.34, 135.56, 332.13, 129.74, 330.24, 131.55, 329.53, 130.99, 329.21, 129.5, 330.55, 125.64, 331.02, 123.91, 331.58, 122.1, 332.2, 120.13, 332.91, 119.58, 334.25, 119.11, 336.22, 119.43, 336.69, 122.18, 335.59, 125.56, 335.67, 126.67, 336.85, 127.61, 337.4, 128.87, 337.4, 131.39, 337.16, 132.17, 337.95, 135.48, 338.89, 138.31, 338.89, 140.04, 338.5, 140.36, 336.61, 140.28, 335.75, 139.89, 334.25, 133.98, 333.39, 139.57, 333.07, 140.52, 332.68, 140.67, 331.81, 140.44]], "area": 121.56800000000017, "iscrowd": 0, "image_id": 168662, "bbox": [329.21, 119.11, 9.68, 21.56], "category_id": 1, "id": 1705344}, {"segmentation": [[396.68, 625.9, 398.58, 622.1, 398.58, 607.87, 403.32, 554.73, 406.17, 529.12, 405.22, 518.68, 402.37, 510.14, 419.45, 502.55, 400.48, 474.08, 394.78, 475.03, 393.83, 466.49, 390.04, 462.7, 382.45, 461.75, 375.81, 464.59, 372.01, 468.39, 371.06, 479.77, 367.27, 482.62, 358.73, 489.26, 355.88, 498.75, 350.19, 519.63, 353.98, 532.91, 359.67, 542.4, 361.57, 547.14, 365.37, 564.22, 367.27, 573.71, 367.27, 587.0, 367.27, 605.97, 368.21, 616.41, 372.01, 624.95, 378.65, 627.8]], "area": 6583.913550000001, "iscrowd": 0, "image_id": 573549, "bbox": [350.19, 461.75, 69.26, 166.05], "category_id": 1, "id": 1706229}, {"segmentation": [[75.73, 347.35, 75.6, 343.75, 75.73, 342.13, 76.1, 341.26, 76.47, 340.27, 77.22, 339.52, 77.46, 339.52, 80.2, 339.15, 81.69, 340.52, 82.06, 343.0, 82.56, 345.36, 82.81, 347.72, 85.91, 349.21, 87.53, 350.58, 86.53, 353.56, 85.91, 357.53, 85.91, 358.16, 84.3, 359.77, 70.76, 360.0, 72.37, 357.53, 75.6, 350.45]], "area": 199.97150000000008, "iscrowd": 0, "image_id": 236837, "bbox": [70.76, 339.15, 16.77, 20.85], "category_id": 1, "id": 1716316}, {"segmentation": [[566.05, 317.71, 566.05, 316.77, 566.09, 315.74, 566.09, 314.09, 566.99, 312.88, 567.93, 312.57, 568.33, 313.42, 568.69, 314.04, 569.94, 315.38, 570.03, 316.82, 569.94, 317.62]], "area": 15.541150000000078, "iscrowd": 0, "image_id": 442223, "bbox": [566.05, 312.57, 3.98, 5.14], "category_id": 1, "id": 1735177}, {"segmentation": [[593.16, 356.23, 586.91, 359.74, 582.23, 332.41, 581.06, 317.97, 585.35, 308.6, 588.86, 307.82, 591.99, 308.99, 591.6, 313.67, 591.6, 318.75, 592.38, 323.82, 599.79, 333.19, 598.62, 334.76, 591.6, 333.59]], "area": 481.5861500000003, "iscrowd": 0, "image_id": 442223, "bbox": [581.06, 307.82, 18.73, 51.92], "category_id": 1, "id": 1745881}, {"segmentation": [[571.06, 359.71, 565.1, 362.02, 557.5, 360.04, 554.86, 360.04, 561.47, 349.13, 565.44, 346.49, 566.76, 339.21, 568.74, 334.58, 572.71, 331.94, 579.98, 331.61, 582.63, 335.91, 584.61, 347.15, 581.63, 349.79, 583.62, 357.72, 572.05, 358.39]], "area": 537.7464999999993, "iscrowd": 0, "image_id": 442223, "bbox": [554.86, 331.61, 29.75, 30.41], "category_id": 1, "id": 1750766}, {"segmentation": [[207.72, 605.99, 209.22, 601.22, 210.52, 598.23, 210.81, 594.77, 213.51, 594.59, 213.7, 598.32, 215.76, 600.29, 217.53, 601.97, 216.6, 611.12, 215.01, 613.55, 214.64, 620.28, 215.38, 625.89, 214.26, 627.38, 212.39, 624.21, 211.46, 617.76, 210.52, 612.34, 208.56, 610.1]], "area": 165.7891999999997, "iscrowd": 0, "image_id": 418152, "bbox": [207.72, 594.59, 9.81, 32.79], "category_id": 1, "id": 1752231}, {"segmentation": [[286.69, 424.14, 291.59, 424.61, 293.93, 428.58, 294.16, 432.31, 294.16, 434.18, 291.59, 437.45, 283.65, 436.28, 282.95, 433.95, 280.62, 436.05, 275.25, 435.58, 274.31, 431.61, 274.31, 427.88, 275.71, 425.54, 278.98, 425.07, 280.15, 423.91, 284.82, 422.27, 284.82, 420.64, 285.52, 419.7, 286.22, 420.64, 286.22, 422.74]], "area": 230.2371000000001, "iscrowd": 0, "image_id": 420658, "bbox": [274.31, 419.7, 19.85, 17.75], "category_id": 2, "id": 1764624}, {"segmentation": [[196.29, 453.27, 255.9, 453.27, 304.58, 447.31, 352.27, 480.09, 377.11, 496.98, 386.05, 521.82, 368.17, 542.69, 321.47, 551.63, 287.69, 562.56, 280.74, 590.37, 255.9, 595.34, 206.22, 605.28, 198.28, 541.69]], "area": 20244.927050000006, "iscrowd": 0, "image_id": 425412, "bbox": [196.29, 447.31, 189.76, 157.97], "category_id": 3, "id": 1771582}, {"segmentation": [[640.0, 353.9, 637.0, 351.56, 628.27, 343.89, 625.5, 336.65, 622.52, 334.52, 583.55, 330.48, 519.65, 316.21, 518.37, 301.3, 521.36, 287.67, 522.21, 278.3, 521.78, 272.97, 519.01, 267.22, 512.62, 256.57, 507.51, 251.25, 504.1, 249.12, 501.97, 244.43, 501.97, 244.22, 519.86, 243.79, 548.19, 243.79, 585.04, 245.28, 596.32, 247.2, 602.5, 249.12, 621.67, 257.64, 640.0, 269.14], [480.76, 259.9, 467.99, 260.39, 458.19, 261.89, 455.87, 262.39, 455.71, 263.71, 457.53, 266.2, 452.05, 269.19, 443.59, 272.84, 440.77, 275.66, 440.77, 278.15, 438.94, 281.3, 440.11, 284.13, 440.44, 287.44, 440.6, 291.09, 446.91, 298.06, 455.21, 303.71, 458.36, 306.53, 463.84, 306.2, 464.67, 302.21, 470.47, 306.36, 466.66, 299.39, 468.48, 299.23, 467.99, 294.58, 469.48, 285.45, 475.95, 275.0, 476.45, 268.19, 480.27, 262.88, 481.43, 262.05]], "area": 11027.672650000002, "iscrowd": 0, "image_id": 386581, "bbox": [438.94, 243.79, 201.06, 110.11], "category_id": 3, "id": 1771937}, {"segmentation": [[128.05, 524.74, 107.51, 525.88, 108.08, 518.17, 110.64, 512.18, 117.49, 506.19, 139.18, 504.48, 141.17, 509.61, 147.45, 519.03, 147.45, 522.45, 145.74, 524.74, 142.88, 525.59, 141.17, 521.88, 137.18, 522.17, 136.04, 526.16, 133.47, 526.73, 130.9, 526.73, 129.76, 525.02]], "area": 662.9186999999998, "iscrowd": 0, "image_id": 522406, "bbox": [107.51, 504.48, 39.94, 22.25], "category_id": 3, "id": 1780015}, {"segmentation": [[297.98, 499.82, 309.37, 501.07, 314.99, 507.93, 314.68, 515.73, 309.22, 519.17]], "area": 175.3095499999995, "iscrowd": 0, "image_id": 522406, "bbox": [297.98, 499.82, 17.01, 19.35], "category_id": 3, "id": 1785054}, {"segmentation": [[293.18, 499.84, 295.42, 497.73, 298.16, 495.86, 306.25, 495.73, 309.24, 498.1, 311.36, 498.72, 313.35, 500.22, 314.47, 501.58, 314.97, 503.45, 314.97, 504.95, 313.47, 506.32, 311.48, 506.32, 310.24, 506.32, 308.62, 506.81, 307.5, 506.81, 305.88, 506.44, 303.51, 503.2, 302.27, 502.08, 299.53, 499.84]], "area": 131.07839999999962, "iscrowd": 0, "image_id": 522406, "bbox": [293.18, 495.73, 21.79, 11.08], "category_id": 3, "id": 1785132}, {"segmentation": [[124.44, 453.93, 130.37, 471.7, 276.15, 472.89, 295.11, 463.41, 291.56, 445.63, 234.67, 446.81, 227.56, 427.85, 182.52, 429.04, 167.11, 445.63]], "area": 5134.756199999996, "iscrowd": 0, "image_id": 420658, "bbox": [124.44, 427.85, 170.67, 45.04], "category_id": 8, "id": 1798887}, {"segmentation": [[348.0, 133.19, 418.17, 132.47, 462.57, 122.44, 500.0, 113.14, 500.0, 141.06, 463.28, 145.36, 388.81, 148.22, 344.42, 150.37, 337.26, 145.36, 333.68, 141.06, 334.4, 131.75, 334.4, 131.75]], "area": 3100.366350000001, "iscrowd": 0, "image_id": 353866, "bbox": [333.68, 113.14, 166.32, 37.23], "category_id": 9, "id": 1802467}, {"segmentation": [[76.65, 119.17, 131.5, 119.17, 173.83, 116.23, 191.5, 113.29, 195.18, 112.92, 187.08, 119.54, 181.19, 122.86, 176.77, 126.9, 176.41, 129.85, 174.2, 130.95, 72.97, 137.95, 70.03, 133.16, 70.03, 126.54, 70.4, 116.97]], "area": 1804.8668499999987, "iscrowd": 0, "image_id": 353866, "bbox": [70.03, 112.92, 125.15, 25.03], "category_id": 9, "id": 1803004}, {"segmentation": [[68.88, 284.71, 61.8, 271.95, 59.91, 266.28, 60.38, 262.5, 64.16, 259.2, 64.63, 256.36, 63.21, 253.53, 62.74, 249.27, 65.1, 230.38, 69.36, 225.65, 108.57, 238.88, 152.03, 254.47, 185.1, 265.81, 204.47, 278.56, 204.94, 289.9, 68.41, 290.0]], "area": 5806.188999999998, "iscrowd": 0, "image_id": 353866, "bbox": [59.91, 225.65, 145.03, 64.35], "category_id": 9, "id": 1803379}, {"segmentation": [[565.89, 85.02, 563.43, 128.57, 595.17, 128.82, 595.17, 84.28]], "area": 1343.5115999999994, "iscrowd": 0, "image_id": 387855, "bbox": [563.43, 84.28, 31.74, 44.54], "category_id": 10, "id": 1806307}, {"segmentation": [[19.57, 226.53, 3.25, 228.87, 0.41, 214.65, 74.35, 214.08, 85.16, 218.63, 89.71, 222.05, 61.27, 227.17, 60.7, 295.99, 49.33, 293.15, 40.79, 230.58]], "area": 2126.90385, "iscrowd": 0, "image_id": 199215, "bbox": [0.41, 214.08, 89.3, 81.91], "category_id": 15, "id": 1813252}, {"segmentation": [[15.86, 492.2, 18.01, 481.24, 19.73, 480.6, 21.87, 479.31, 23.38, 478.67, 25.96, 478.88, 27.24, 479.74, 28.32, 481.89, 28.32, 488.12, 28.32, 491.99, 28.32, 496.28, 28.32, 499.29, 27.24, 501.01, 25.74, 500.36, 25.53, 492.84, 25.1, 493.27, 23.81, 493.49, 24.24, 501.44, 22.52, 500.15, 21.87, 494.56, 20.37, 499.93, 17.79, 501.44, 15.86, 501.44, 15.64, 495.85, 12.21, 496.07, 12.85, 494.35]], "area": 237.20859999999988, "iscrowd": 0, "image_id": 3947, "bbox": [12.21, 478.67, 16.11, 22.77], "category_id": 20, "id": 1818139}, {"segmentation": [[531.61, 497.91, 532.85, 498.99, 533.31, 499.76, 533.46, 498.99, 535.31, 498.68, 536.7, 498.84, 537.77, 499.45, 538.54, 499.76, 539.01, 500.07, 539.31, 501.45, 538.85, 502.69, 537.47, 504.07, 537.47, 506.54, 537.77, 508.54, 536.7, 509.62, 533.77, 509.93, 530.23, 510.44, 530.07, 513.52, 528.38, 513.68, 528.22, 511.67, 527.45, 510.44, 525.45, 509.52, 522.37, 508.29, 521.14, 507.36, 523.45, 501.35, 526.38, 500.28, 531.31, 500.43]], "area": 163.48305, "iscrowd": 0, "image_id": 3947, "bbox": [521.14, 497.91, 18.17, 15.77], "category_id": 20, "id": 1818175}, {"segmentation": [[558.25, 505.63, 558.25, 502.65, 559.38, 502.35, 559.32, 498.35, 556.64, 497.4, 555.33, 497.16, 551.33, 497.7, 548.17, 498.89, 548.23, 502.05, 548.65, 502.95, 549.6, 504.32, 550.91, 505.03, 552.05, 505.45, 553.0, 506.59, 554.61, 506.41, 554.49, 503.84, 555.33, 506.23]], "area": 81.47330000000011, "iscrowd": 0, "image_id": 3947, "bbox": [548.17, 497.16, 11.21, 9.43], "category_id": 20, "id": 1818413}, {"segmentation": [[401.72, 293.37, 414.27, 292.51, 421.63, 292.94, 428.33, 291.43, 431.36, 290.13, 433.74, 287.96, 434.39, 283.85, 434.17, 281.91, 426.82, 281.04, 424.22, 276.71, 427.25, 275.85, 431.15, 275.2, 434.17, 276.5, 435.91, 274.33, 440.02, 273.25, 448.45, 273.04, 454.51, 273.25, 455.16, 274.98, 457.11, 275.85, 458.84, 279.74, 455.38, 282.77, 451.05, 284.07, 451.05, 291.43, 455.16, 300.08, 457.97, 304.84, 458.84, 312.41, 456.24, 315.22, 449.75, 316.96, 398.04, 315.87, 398.04, 310.46, 398.91, 299.65, 398.91, 295.75]], "area": 1812.3290999999992, "iscrowd": 0, "image_id": 435187, "bbox": [398.04, 273.04, 60.8, 43.92], "category_id": 21, "id": 1819593}, {"segmentation": [[20.08, 288.6, 22.88, 376.82, 60.69, 375.42, 71.89, 402.02, 78.9, 473.44, 90.1, 526.65, 87.3, 565.86, 81.7, 598.07, 94.3, 612.07, 111.1, 607.87, 113.9, 574.26, 119.5, 539.25, 123.7, 515.45, 120.9, 500.05, 153.11, 500.05, 137.71, 536.45, 130.71, 539.25, 144.71, 565.86, 139.11, 596.67, 169.91, 603.67, 162.91, 570.06, 171.32, 533.65, 172.72, 528.05, 169.91, 497.25, 195.12, 505.65, 211.92, 521.05, 216.12, 528.05, 218.93, 530.85, 245.53, 515.45, 262.33, 509.85, 273.54, 504.25, 291.74, 512.65, 307.14, 547.66, 315.55, 575.66, 326.75, 620.47, 326.75, 640.0, 354.75, 634.47, 357.56, 619.07, 357.56, 602.27, 364.56, 619.07, 368.76, 640.0, 388.36, 640.0, 395.36, 613.47, 391.16, 592.47, 388.36, 557.46, 381.36, 424.43, 400.96, 358.62, 381.36, 339.01, 371.56, 319.41, 354.75, 308.2, 326.75, 294.2, 279.14, 276.0, 246.93, 285.8, 195.12, 305.4, 167.11, 306.8, 153.11, 297.0, 132.11, 283.0, 106.9, 281.6, 99.9, 302.6, 90.1, 297.0, 85.9, 284.4, 63.49, 276.0, 42.49, 276.0, 36.89, 291.4, 29.88, 290.0, 29.88, 290.0, 25.68, 291.4]], "area": 87078.28880000001, "iscrowd": 0, "image_id": 409850, "bbox": [20.08, 276.0, 380.88, 364.0], "category_id": 21, "id": 1819706}, {"segmentation": [[477.09, 342.44, 425.56, 307.53, 364.05, 280.94, 345.77, 294.23, 345.77, 294.23, 388.99, 324.16, 330.81, 307.53, 347.43, 344.1, 379.01, 354.08, 350.75, 375.69, 269.3, 382.34, 166.23, 382.34, 69.82, 413.92, 44.88, 402.29, 3.32, 422.23, 3.32, 422.23, 0.0, 603.43, 68.16, 620.05, 252.68, 583.48, 269.3, 593.45, 374.03, 563.53, 377.35, 528.62, 410.6, 463.79, 433.87, 422.23, 488.73, 413.92, 497.04, 365.71]], "area": 94167.95980000001, "iscrowd": 0, "image_id": 554805, "bbox": [0.0, 280.94, 497.04, 339.11], "category_id": 21, "id": 1820582}, {"segmentation": [[171.22, 259.74, 174.55, 194.91, 164.57, 178.29, 179.53, 136.73, 132.99, 2.08, 361.0, 2.08, 361.0, 307.95, 294.23, 309.61, 270.96, 286.34, 172.88, 254.75]], "area": 56017.97320000001, "iscrowd": 0, "image_id": 157405, "bbox": [132.99, 2.08, 228.01, 307.53], "category_id": 73, "id": 1970819}, {"segmentation": [[519.13, 182.37, 516.84, 176.9, 514.16, 176.7, 513.46, 180.88, 514.26, 184.35, 519.62, 183.56], [506.4, 178.79, 501.43, 180.58, 499.35, 184.26, 500.34, 187.14, 507.9, 185.75, 510.08, 184.75, 510.08, 177.0, 509.49, 169.84, 506.5, 171.73, 504.91, 176.4, 506.3, 178.79]], "area": 131.8486999999996, "iscrowd": 0, "image_id": 91359, "bbox": [499.35, 169.84, 20.27, 17.3], "category_id": 1, "id": 2001445}, {"segmentation": [[553.67, 243.36, 554.32, 235.77, 554.97, 232.95, 556.49, 229.91, 554.75, 228.61, 553.67, 227.31, 553.67, 223.63, 555.19, 221.68, 557.57, 221.46, 559.09, 222.33, 559.74, 223.84, 559.95, 225.58, 561.26, 229.48, 562.99, 233.82, 562.99, 237.94, 563.42, 239.89, 563.86, 241.41, 564.29, 243.79]], "area": 165.04765000000015, "iscrowd": 0, "image_id": 386581, "bbox": [553.67, 221.46, 10.62, 22.33], "category_id": 1, "id": 2006298}, {"segmentation": [[214.35, 155.22, 214.35, 156.9, 210.78, 159.2, 208.27, 162.56, 210.36, 165.7, 212.88, 167.8, 212.04, 170.94, 213.51, 177.23, 214.35, 180.8, 215.18, 184.36, 216.65, 190.44, 220.63, 192.33, 221.26, 190.23, 219.59, 187.08, 217.28, 182.89, 215.39, 179.33, 216.23, 175.13, 217.49, 171.57, 219.8, 168.22, 221.89, 165.91, 223.36, 161.3, 222.31, 159.62, 220.22, 158.99, 219.38, 156.27, 214.56, 155.22]], "area": 216.06224999999992, "iscrowd": 0, "image_id": 199215, "bbox": [208.27, 155.22, 15.09, 37.11], "category_id": 1, "id": 2010176}, {"segmentation": [[573.05, 226.67, 570.48, 221.86, 568.24, 222.26, 566.8, 224.26, 566.88, 229.23, 567.6, 230.27, 565.44, 239.89, 565.44, 241.65, 565.6, 244.13, 573.69, 244.29]], "area": 144.33104999999955, "iscrowd": 0, "image_id": 386581, "bbox": [565.44, 221.86, 8.25, 22.43], "category_id": 1, "id": 2020218}, {"segmentation": [[28.97, 255.01, 29.45, 250.74, 33.95, 250.74, 38.68, 247.67, 52.18, 248.38, 56.45, 250.98, 51.71, 252.64, 51.71, 255.96]], "area": 160.38755000000006, "iscrowd": 0, "image_id": 538690, "bbox": [28.97, 247.67, 27.48, 8.29], "category_id": 3, "id": 2038128}, {"segmentation": [[0.0, 141.01, 13.97, 140.53, 23.61, 134.75, 23.61, 123.67, 38.54, 118.37, 42.4, 102.95, 38.54, 96.21, 32.28, 75.49, 6.27, 69.71, 0.0, 67.3]], "area": 2287.73055, "iscrowd": 0, "image_id": 237495, "bbox": [0.0, 67.3, 42.4, 73.71], "category_id": 3, "id": 2040211}, {"segmentation": [[17.72, 199.27, 362.8, 175.03, 361.87, 199.27, 21.45, 244.97], [387.05, 175.03, 499.9, 162.9, 500.83, 178.76, 380.52, 200.21]], "area": 14380.135099999998, "iscrowd": 0, "image_id": 236837, "bbox": [17.72, 162.9, 483.11, 82.07], "category_id": 7, "id": 2050822}, {"segmentation": [[134.22, 250.71, 135.03, 240.59, 139.08, 240.18, 141.1, 235.73, 147.98, 232.9, 273.1, 214.27, 364.61, 202.93, 363.8, 225.61], [378.38, 202.12, 462.6, 189.17, 506.73, 180.66, 520.9, 187.55, 519.69, 212.25, 502.68, 221.96, 480.41, 222.77, 472.72, 229.66, 381.61, 220.34]], "area": 9083.329400000002, "iscrowd": 0, "image_id": 236837, "bbox": [134.22, 180.66, 386.68, 70.05], "category_id": 7, "id": 2050995}, {"segmentation": [[582.16, 215.69, 588.61, 210.05, 596.13, 207.1, 609.28, 203.34, 640.0, 195.02, 637.48, 243.62, 629.15, 238.25, 625.39, 241.74, 622.44, 243.62, 625.13, 245.5, 581.09, 240.93, 581.89, 216.5]], "area": 2231.0186000000003, "iscrowd": 0, "image_id": 236837, "bbox": [581.09, 195.02, 58.91, 50.48], "category_id": 7, "id": 2051011}, {"segmentation": [[259.14, 141.81, 292.91, 141.16, 302.75, 133.29, 307.99, 119.52, 301.11, 117.22, 293.57, 122.47, 253.89, 124.44, 252.25, 130.99]], "area": 904.2367500000003, "iscrowd": 0, "image_id": 353866, "bbox": [252.25, 117.22, 55.74, 24.59], "category_id": 9, "id": 2055065}, {"segmentation": [[464.04, 490.18, 441.61, 507.54, 438.71, 525.63, 445.95, 537.21, 456.08, 541.55, 463.31, 539.38, 474.17, 530.7, 477.06, 519.12, 479.23, 502.48, 479.23, 502.48]], "area": 1428.1434500000003, "iscrowd": 0, "image_id": 418152, "bbox": [438.71, 490.18, 40.52, 51.37], "category_id": 10, "id": 2056904}, {"segmentation": [[290.11, 485.27, 296.96, 484.74, 297.66, 491.94, 290.46, 492.12]], "area": 49.53700000000008, "iscrowd": 0, "image_id": 522406, "bbox": [290.11, 484.74, 7.55, 7.38], "category_id": 10, "id": 2058051}, {"segmentation": [[313.07, 527.99, 313.07, 519.77, 313.21, 514.7, 312.66, 511.0, 317.87, 510.86, 318.96, 512.91, 317.73, 517.16, 317.87, 520.59, 318.0, 523.33, 318.69, 527.99, 313.21, 527.58]], "area": 86.19670000000019, "iscrowd": 0, "image_id": 522406, "bbox": [312.66, 510.86, 6.3, 17.13], "category_id": 14, "id": 2060878}, {"segmentation": [[420.8, 545.49, 437.9, 544.9, 442.07, 556.23, 445.25, 560.4, 448.23, 560.6, 454.0, 560.4, 454.0, 561.6, 454.0, 564.18, 454.0, 564.58, 451.02, 565.38, 449.63, 567.36, 446.84, 567.56, 444.85, 566.37, 438.49, 566.17, 435.51, 566.37, 433.12, 565.77, 425.37, 562.19, 421.99, 553.45, 421.99, 547.68]], "area": 432.4430499999999, "iscrowd": 0, "image_id": 375914, "bbox": [420.8, 544.9, 33.2, 22.66], "category_id": 15, "id": 2063584}, {"segmentation": [[186.37, 495.4, 187.88, 490.28, 189.08, 488.17, 192.39, 485.46, 199.02, 484.86, 202.93, 485.16, 203.24, 490.58, 199.92, 496.91, 194.8, 497.81, 193.3, 495.4, 193.3, 493.29, 189.98, 495.4, 186.07, 496.91]], "area": 156.11340000000004, "iscrowd": 0, "image_id": 3947, "bbox": [186.07, 484.86, 17.17, 12.95], "category_id": 20, "id": 2068675}, {"segmentation": [[216.8, 204.6, 223.23, 193.11, 229.2, 177.48, 235.18, 169.67, 237.02, 176.1, 233.8, 195.86, 241.61, 212.41, 240.23, 227.57, 237.47, 243.2, 238.39, 262.04, 238.39, 269.39, 229.66, 274.91, 230.12, 267.09, 234.26, 249.17, 231.96, 229.41, 228.74, 212.87]], "area": 921.7489500000005, "iscrowd": 0, "image_id": 18874, "bbox": [216.8, 169.67, 24.81, 105.24], "category_id": 25, "id": 2071049}, {"segmentation": [[624.92, 420.85, 624.92, 407.62, 624.18, 392.91, 623.45, 380.42, 623.45, 365.71, 624.18, 360.57, 615.36, 362.04, 607.27, 363.51, 603.6, 359.83, 604.33, 345.86, 610.95, 335.57, 613.16, 326.02, 614.63, 315.72, 618.3, 304.7, 628.59, 298.81, 632.27, 303.23, 630.8, 331.16, 630.8, 366.45, 634.47, 400.27, 633.74, 418.64, 633.74, 424.53, 627.86, 424.53]], "area": 1792.3214499999979, "iscrowd": 0, "image_id": 442223, "bbox": [603.6, 298.81, 30.87, 125.72], "category_id": 1, "id": 2154203}, {"segmentation": [[145.37, 360.0, 145.37, 353.56, 147.22, 351.15, 148.88, 347.82, 148.88, 343.56, 148.14, 340.04, 147.4, 338.0, 144.44, 336.34, 142.4, 335.04, 142.96, 331.15, 142.03, 327.45, 138.7, 327.08, 136.11, 328.75, 136.11, 332.82, 135.37, 334.49, 129.26, 336.71, 128.89, 339.67, 125.37, 342.45, 126.48, 346.89, 128.15, 347.63, 127.78, 350.6, 128.33, 350.6, 125.37, 358.93, 125.37, 359.48, 125.37, 360.0]], "area": 539.5348999999999, "iscrowd": 0, "image_id": 236837, "bbox": [125.37, 327.08, 23.51, 32.92], "category_id": 1, "id": 2161942}, {"segmentation": [[216.23, 206.76, 214.22, 238.33, 213.55, 255.79, 212.2, 263.85, 186.68, 268.56, 180.63, 266.54, 184.66, 241.69, 189.36, 221.53, 188.02, 198.02, 188.02, 189.29, 191.38, 183.92, 192.05, 167.12, 194.07, 163.76, 200.11, 167.12, 204.82, 174.51, 214.89, 181.9, 217.58, 183.92, 216.23, 186.6]], "area": 2625.252299999999, "iscrowd": 0, "image_id": 199215, "bbox": [180.63, 163.76, 36.95, 104.8], "category_id": 1, "id": 2162127}, {"segmentation": [[1.21, 335.73, 8.32, 359.0, 0.68, 359.36, 0.14, 345.86]], "area": 100.12879999999998, "iscrowd": 0, "image_id": 236837, "bbox": [0.14, 335.73, 8.18, 23.63], "category_id": 1, "id": 2164455}, {"segmentation": [[487.58, 17.71, 487.58, 7.29, 489.37, 5.66, 494.25, 4.69, 512.49, 4.69, 514.93, 6.32, 516.07, 39.69, 511.18, 41.16, 501.41, 40.5, 490.18, 41.64, 487.25, 36.43]], "area": 1001.1951500000004, "iscrowd": 0, "image_id": 118710, "bbox": [487.25, 4.69, 28.82, 36.95], "category_id": 10, "id": 2173200}, {"segmentation": [[83.4, 524.08, 86.5, 524.08, 89.45, 525.94, 88.83, 528.42, 91.63, 529.67, 92.71, 542.56, 97.37, 550.17, 102.81, 555.91, 100.17, 559.64, 103.27, 562.44, 103.27, 565.7, 105.76, 570.98, 107.93, 578.28, 107.0, 582.01, 103.43, 583.56, 100.48, 580.45, 98.15, 580.45, 100.17, 577.19, 91.47, 574.09, 87.12, 577.19, 85.57, 576.88, 87.59, 571.6, 88.68, 568.18, 87.43, 562.44, 84.48, 562.44, 82.46, 565.39, 82.0, 569.27, 79.82, 570.05, 78.27, 568.03, 79.36, 539.61, 79.67, 535.57, 82.62, 535.72, 84.79, 535.26, 82.62, 529.36, 81.84, 527.49, 83.24, 527.03]], "area": 877.6042500000007, "iscrowd": 0, "image_id": 573549, "bbox": [78.27, 524.08, 29.66, 59.48], "category_id": 11, "id": 2197943}, {"segmentation": [[390.58, 302.04, 404.22, 298.25, 411.05, 295.98, 427.73, 299.77, 436.83, 300.53, 435.31, 291.43, 420.9, 280.81, 411.81, 277.02, 386.79, 272.48, 380.72, 271.72, 390.58, 270.96, 408.77, 275.51, 424.69, 277.02, 425.45, 273.99, 421.66, 266.41, 414.08, 265.65, 401.19, 263.38, 391.34, 263.38, 383.75, 258.83, 379.96, 243.67, 371.62, 226.99, 367.08, 216.37, 358.74, 210.31, 339.78, 205.0, 315.52, 197.42, 300.36, 201.97, 289.74, 204.24, 267.0, 198.93, 258.66, 197.42, 244.25, 188.32, 229.09, 178.46, 220.75, 169.37, 213.17, 163.3, 201.8, 163.3, 203.31, 185.29, 201.8, 198.18, 197.25, 217.13, 198.01, 219.4, 256.38, 228.5, 274.58, 230.78, 295.81, 236.84, 313.25, 242.15, 330.68, 247.46, 345.85, 259.59, 351.15, 269.44, 354.19, 279.3, 357.22, 288.4, 356.46, 296.74, 376.17, 296.74, 387.55, 299.77]], "area": 10076.22775, "iscrowd": 0, "image_id": 497109, "bbox": [197.25, 163.3, 239.58, 138.74], "category_id": 18, "id": 9678}, {"segmentation": [[228.67, 610.16, 211.42, 633.17, 363.87, 630.29, 362.43, 598.65, 346.61, 590.02, 368.18, 565.57, 421.39, 536.81, 385.44, 495.1, 335.1, 431.82, 274.7, 473.53, 220.04, 506.61, 184.09, 538.25, 191.28, 575.64]], "area": 28471.811, "iscrowd": 0, "image_id": 81956, "bbox": [184.09, 431.82, 237.3, 201.35], "category_id": 64, "id": 21908}, {"segmentation": [[462.41, 397.76, 451.03, 411.21, 447.93, 424.66, 444.83, 431.9, 438.62, 442.24, 433.45, 451.55, 423.1, 454.66, 410.69, 458.79, 403.45, 456.72, 393.1, 454.66, 393.1, 451.55, 392.07, 448.45, 383.79, 439.14, 379.66, 441.21, 373.45, 439.14, 375.52, 430.86, 386.9, 421.55, 395.17, 417.41, 401.38, 401.9, 400.34, 390.52, 397.24, 365.69, 397.24, 347.07, 390.0, 321.21, 386.9, 305.69, 382.76, 289.14, 374.48, 277.76, 371.38, 270.52, 366.21, 260.17, 369.31, 232.24, 369.31, 219.83, 369.31, 213.62, 369.31, 195.0, 365.17, 185.69, 366.21, 174.31, 366.21, 158.79, 366.21, 148.45, 372.41, 125.69, 371.38, 115.34, 369.31, 96.72, 370.34, 75.0, 370.34, 64.66, 388.97, 82.24, 392.07, 95.69, 397.24, 105.0, 406.55, 110.17, 423.1, 112.24, 451.03, 116.38, 467.59, 109.14, 480.0, 98.79, 501.72, 83.28, 506.9, 87.41, 508.97, 106.03, 504.83, 128.79, 497.59, 144.31, 489.31, 170.17, 480.0, 195.0, 487.24, 220.86, 522.41, 238.45, 541.03, 246.72, 561.72, 275.69, 570.0, 289.14, 581.38, 312.93, 589.66, 332.59, 594.83, 351.21, 603.1, 387.41, 602.07, 406.03, 600.0, 426.72, 590.69, 430.86, 577.24, 430.86, 561.72, 431.9, 549.31, 432.93, 528.62, 437.07, 486.21, 445.34, 472.76, 442.24, 472.76, 430.86, 490.34, 423.62, 503.79, 422.59, 517.24, 422.59, 519.31, 415.34, 504.83, 410.17, 499.66, 411.21, 496.55, 413.28, 490.34, 415.34, 483.1, 414.31, 477.93, 414.31, 470.69, 413.28, 466.55, 410.17, 464.48, 403.97, 464.48, 400.86, 464.48, 397.76]], "area": 55835.91185, "iscrowd": 0, "image_id": 26768, "bbox": [365.17, 64.66, 237.93, 394.13], "category_id": 17, "id": 50536}, {"segmentation": [[265.29, 470.71, 276.65, 453.16, 264.26, 433.55, 274.58, 422.19, 299.35, 432.52, 329.29, 413.94, 324.13, 392.26, 297.29, 391.23, 292.13, 386.06, 305.55, 361.29, 311.74, 339.61, 317.94, 324.13, 327.23, 290.06, 327.23, 265.29, 321.03, 249.81, 299.35, 249.81, 273.55, 275.61, 244.65, 267.35, 227.1, 266.32, 202.32, 231.23, 189.94, 221.94, 181.68, 234.32, 176.52, 272.52, 169.29, 289.03, 177.55, 303.48, 124.9, 292.13, 41.29, 306.58, 8.26, 327.23, 7.23, 328.26, 1.03, 331.35, 1.03, 469.68]], "area": 57553.237250000006, "iscrowd": 0, "image_id": 26768, "bbox": [1.03, 221.94, 328.26, 248.77], "category_id": 17, "id": 50696}, {"segmentation": [[164.82, 223.53, 147.31, 206.02, 142.15, 194.69, 151.43, 187.48, 171.0, 189.54, 184.39, 197.78, 203.96, 192.63, 224.56, 193.66, 252.38, 197.78, 271.95, 203.96, 292.55, 203.96, 312.12, 181.3, 336.85, 171.0, 364.66, 162.76, 411.01, 157.61, 428.52, 162.76, 463.55, 172.03, 484.15, 185.42, 506.81, 196.75, 515.05, 200.87, 530.51, 197.78, 544.93, 195.72, 559.35, 195.72, 564.5, 201.9, 561.41, 213.23, 540.81, 217.35, 531.54, 220.44, 527.42, 228.68, 531.54, 232.8, 532.57, 242.08, 528.45, 263.71, 522.26, 277.1, 512.99, 291.52, 501.66, 302.85, 481.06, 323.45, 456.34, 315.21, 447.07, 326.54, 430.58, 330.66, 418.22, 330.66, 396.59, 330.66, 384.23, 331.69, 363.63, 332.72, 346.12, 333.75, 331.69, 333.75, 319.33, 335.82, 303.88, 342.0, 280.19, 343.03, 248.26, 339.94, 229.71, 343.03, 207.05, 337.88, 197.78, 339.94, 183.36, 339.94, 176.15, 342.0, 172.03, 339.94, 169.97, 329.63, 168.94, 326.54, 162.76, 324.48, 153.49, 324.48, 146.28, 322.42, 144.22, 314.18, 152.46, 308.0, 161.73, 298.73, 165.85, 293.58, 160.7, 284.31, 157.61, 280.19, 154.52, 263.71, 159.67, 253.41, 162.76, 240.02, 163.79, 230.74]], "area": 55623.59005000002, "iscrowd": 0, "image_id": 452696, "bbox": [142.15, 157.61, 422.35, 185.42], "category_id": 17, "id": 51194}, {"segmentation": [[119.85, 110.52, 115.55, 86.84, 113.39, 79.66, 139.23, 94.02, 162.91, 94.02, 165.06, 94.02, 186.59, 88.99, 198.8, 102.63, 228.94, 106.22, 254.77, 104.78, 272.72, 116.98, 290.66, 147.12, 294.96, 166.5, 294.96, 188.75, 278.46, 193.77, 269.84, 219.61, 243.29, 218.89, 236.83, 209.56, 191.62, 203.1, 139.95, 196.64, 110.52, 190.9, 96.89, 172.24, 102.63, 159.32, 108.37, 153.58, 113.39, 119.85, 116.98, 104.78, 116.98, 100.47]], "area": 18619.18875, "iscrowd": 0, "image_id": 359710, "bbox": [96.89, 79.66, 198.07, 139.95], "category_id": 17, "id": 52114}, {"segmentation": [[266.63, 112.55, 309.99, 95.95, 342.28, 113.48, 378.26, 121.78, 398.55, 149.46, 396.71, 211.27, 373.65, 239.87, 377.34, 278.62, 361.65, 289.69, 357.96, 400.4, 330.28, 401.32, 328.44, 363.5, 339.51, 273.08, 319.21, 294.3, 323.83, 361.65, 303.53, 368.11, 300.76, 350.58, 291.54, 291.54, 283.23, 261.09, 267.55, 264.78, 236.18, 292.46, 212.19, 304.45, 206.66, 327.52, 149.46, 330.28, 113.48, 307.22, 129.16, 262.01, 144.85, 234.34, 139.31, 194.66, 100.56, 181.75, 100.56, 168.83, 70.12, 159.61, 149.46, 122.7, 166.99, 105.17, 223.26, 102.41, 240.79, 113.48]], "area": 54927.66139999998, "iscrowd": 0, "image_id": 82933, "bbox": [70.12, 95.95, 328.43, 305.37], "category_id": 21, "id": 70597}, {"segmentation": [[446.87, 144.31, 453.38, 143.14, 458.86, 142.16, 463.56, 142.16, 474.32, 142.16, 483.32, 142.16, 494.09, 142.26, 494.97, 141.97, 498.39, 144.9, 498.3, 154.39, 499.08, 162.42, 499.96, 166.23, 499.37, 166.63, 499.18, 171.42, 499.27, 175.24, 501.33, 176.12, 499.86, 177.2, 498.1, 177.0, 497.41, 176.41, 497.02, 175.24, 496.44, 174.55, 496.04, 170.83, 494.38, 167.41, 491.93, 164.57, 490.47, 162.81, 489.78, 162.12, 488.51, 162.52, 489.19, 165.26, 488.02, 170.25, 484.69, 174.46, 481.17, 174.94, 478.72, 174.55, 479.02, 173.67, 480.68, 172.6, 482.74, 172.2, 483.81, 169.86, 483.91, 166.92, 483.13, 163.79, 481.66, 161.34, 476.67, 161.05, 474.22, 162.03, 469.43, 161.83, 466.2, 161.34, 462.87, 161.15, 460.91, 162.32, 460.91, 166.82, 460.52, 168.68, 460.03, 170.15, 461.21, 172.3, 460.52, 173.38, 458.56, 174.46, 457.59, 173.57, 458.27, 169.66, 457.78, 167.8, 456.12, 165.35, 455.63, 164.28, 454.06, 165.26, 451.52, 165.16, 450.83, 164.38, 448.97, 163.98, 447.7, 165.45, 444.37, 168.0, 443.59, 169.95, 443.1, 171.23, 442.32, 172.5, 442.03, 173.97, 438.8, 174.06, 439.38, 172.69, 440.66, 172.2, 442.03, 167.51, 442.52, 164.28, 443.89, 164.08, 445.16, 163.1, 443.59, 161.64, 443.0, 160.95, 441.93, 159.48, 440.95, 158.31, 438.5, 159.09, 437.23, 159.97, 433.12, 160.66, 429.6, 160.95, 429.11, 160.66, 428.82, 159.48, 427.74, 159.68, 425.88, 158.7, 424.8, 156.16, 424.31, 154.69, 426.37, 153.71, 429.5, 151.95, 429.99, 150.77, 430.97, 149.79, 430.19, 148.62, 432.14, 148.03, 434.3, 147.94, 435.08, 146.96, 435.67, 146.27, 439.48, 146.47, 441.63, 145.88, 447.21, 144.31]], "area": 1503.7372999999995, "iscrowd": 0, "image_id": 82933, "bbox": [424.31, 141.97, 77.02, 35.23], "category_id": 21, "id": 73644}, {"segmentation": [[522.93, 149.85, 536.7, 147.45, 548.98, 145.65, 566.06, 145.35, 574.14, 144.75, 579.83, 144.75, 586.42, 147.15, 588.82, 150.74, 588.22, 155.24, 586.42, 159.73, 584.03, 164.22, 582.23, 169.61, 581.03, 173.21, 578.64, 178.0, 577.44, 180.7, 576.84, 179.2, 576.84, 172.61, 574.14, 171.11, 569.65, 173.21, 568.45, 178.0, 566.95, 178.3, 565.76, 174.71, 565.76, 172.31, 562.46, 169.91, 559.17, 168.12, 551.38, 166.92, 547.79, 167.52, 549.88, 173.21, 549.88, 178.0, 548.38, 178.3, 546.89, 177.4, 544.49, 173.81, 542.69, 171.71, 540.3, 170.81, 537.3, 172.31, 534.01, 177.7, 531.91, 178.9, 532.51, 170.81, 532.51, 170.21, 530.11, 166.02, 527.72, 164.22, 524.12, 163.92, 520.83, 164.22, 516.34, 164.22, 513.04, 163.32, 512.14, 162.13, 513.04, 156.43, 513.64, 154.64, 514.54, 151.94, 514.54, 150.74, 515.74, 149.25]], "area": 1716.6103999999993, "iscrowd": 0, "image_id": 82933, "bbox": [512.14, 144.75, 76.68, 35.95], "category_id": 21, "id": 73797}, {"segmentation": [[124.88, 319.72, 124.88, 319.72, 147.84, 327.62, 495.19, 328.34, 497.35, 21.89, 434.91, 23.32, 426.3, 75.71, 322.95, 84.33, 307.16, 96.53, 291.38, 125.95, 278.46, 182.65, 274.15, 199.15, 271.28, 216.38, 246.16, 214.94, 236.11, 204.9, 232.53, 198.44, 232.53, 198.44, 232.53, 198.44, 207.41, 198.44, 207.41, 198.44, 159.32, 204.18, 104.78, 187.67, 101.91, 176.19, 104.06, 163.99, 108.37, 153.94, 126.31, 148.2, 109.09, 140.3, 111.96, 125.23, 114.83, 115.19, 113.39, 98.68, 119.85, 82.17, 136.36, 91.5, 149.28, 95.81, 179.42, 94.37, 188.03, 88.63, 198.8, 100.12, 201.67, 109.45, 208.84, 105.14, 217.45, 100.12, 227.5, 59.93, 3.59, 65.67, 4.31, 221.4, 148.56, 256.57]], "area": 97104.28579999998, "iscrowd": 0, "image_id": 359710, "bbox": [3.59, 21.89, 493.76, 306.45], "category_id": 62, "id": 100744}, {"segmentation": [[81.41, 196.33, 75.01, 197.14, 71.4, 196.73, 69.4, 187.12, 62.99, 156.29, 48.98, 114.64, 45.37, 109.44, 39.77, 108.64, 34.16, 109.84, 27.75, 123.05, 30.96, 142.67, 40.97, 180.32, 44.97, 193.13, 44.97, 201.14, 48.58, 210.35, 48.58, 218.36, 48.58, 219.96, 53.78, 218.36, 60.19, 215.56, 68.2, 212.75, 77.41, 212.35, 81.81, 213.15, 83.42, 213.15]], "area": 2877.021450000001, "iscrowd": 0, "image_id": 497109, "bbox": [27.75, 108.64, 55.67, 111.32], "category_id": 62, "id": 103435}, {"segmentation": [[0.72, 65.17, 226.3, 62.3, 243.48, 4.3, 500.0, 2.15, 500.0, 328.7, 496.99, 333.0, 296.48, 331.57, 165.43, 333.0, 126.75, 320.83, 123.17, 317.25, 137.5, 278.57, 129.62, 257.81, 5.01, 223.43, 0.72, 223.43, 1.43, 69.46]], "area": 137909.0737, "iscrowd": 0, "image_id": 359710, "bbox": [0.72, 2.15, 499.28, 330.85], "category_id": 63, "id": 112513}, {"segmentation": [[21.61, 297.95, 25.31, 297.62, 26.37, 295.54, 32.42, 294.98, 37.47, 294.93, 38.76, 295.88, 39.15, 297.28, 42.62, 297.11, 42.79, 298.91, 42.4, 299.58, 37.64, 299.86, 33.88, 300.14, 33.1, 299.3, 26.54, 299.52, 26.48, 302.27, 24.8, 302.44, 23.23, 302.27, 23.18, 300.36, 21.72, 299.97, 21.05, 299.75, 21.16, 298.12]], "area": 86.51359999999981, "iscrowd": 0, "image_id": 353231, "bbox": [21.05, 294.93, 21.74, 7.51], "category_id": 3, "id": 137093}, {"segmentation": [[512.2, 202.61, 516.45, 202.61, 516.78, 203.83, 517.59, 204.57, 517.35, 205.96, 515.47, 206.61, 511.88, 206.69, 511.55, 205.22, 509.1, 204.81, 508.94, 203.67]], "area": 26.089699999999993, "iscrowd": 0, "image_id": 353231, "bbox": [508.94, 202.61, 8.65, 4.08], "category_id": 3, "id": 140222}, {"segmentation": [[182.55, 240.69, 214.77, 236.4, 294.23, 249.28, 313.56, 248.21, 330.74, 236.4, 340.4, 231.03, 362.95, 208.48, 352.21, 203.11, 346.85, 192.37, 356.51, 173.04, 366.17, 165.52, 380.13, 154.78, 414.5, 146.19, 430.6, 158.01, 438.12, 189.15, 437.05, 219.21, 429.53, 270.76, 441.34, 273.98, 460.67, 281.5, 455.3, 283.64, 470.34, 304.05, 477.85, 342.7, 473.56, 362.03, 454.23, 378.14, 426.31, 362.03, 408.05, 362.03, 404.83, 360.96, 405.91, 333.04, 394.09, 321.23, 391.95, 296.53, 393.02, 282.57, 386.58, 287.94, 373.69, 334.11, 369.4, 364.18, 362.95, 368.48, 357.58, 347.0, 331.81, 351.29, 286.71, 344.85, 275.97, 365.25, 255.57, 372.77, 227.65, 373.84, 208.32, 364.18, 194.36, 344.85, 185.77, 338.41, 182.55, 341.63, 179.33, 342.7, 182.55, 300.82, 160.0, 304.05, 169.66, 291.16, 177.18, 290.09, 180.4, 283.64, 175.03, 273.98, 176.11, 267.54, 184.7, 258.95, 186.85, 243.91]], "area": 38847.402749999994, "iscrowd": 0, "image_id": 239395, "bbox": [160.0, 146.19, 317.85, 231.95], "category_id": 4, "id": 150946}, {"segmentation": [[396.94, 325.03, 427.0, 320.72, 425.71, 161.08, 379.69, 166.83, 205.66, 185.53, 197.03, 199.91, 198.47, 217.17, 191.28, 238.74, 197.03, 274.7, 192.72, 322.16, 232.99, 329.35, 250.25, 279.01, 268.94, 261.75, 299.15, 232.99, 333.66, 234.43, 335.1, 205.66, 350.92, 201.35, 363.87, 211.42, 362.64, 229.38, 353.27, 246.18, 392.63, 323.6]], "area": 23658.141000000007, "iscrowd": 0, "image_id": 504726, "bbox": [191.28, 161.08, 235.72, 168.27], "category_id": 6, "id": 167335}, {"segmentation": [[547.91, 166.87, 531.73, 164.45, 532.54, 153.93, 539.01, 150.69, 538.2, 141.8, 545.48, 150.69, 547.1, 142.6, 547.91, 137.75, 581.89, 136.94, 589.17, 123.19, 585.93, 109.44, 593.21, 109.44, 594.02, 118.33, 594.02, 134.51, 597.26, 136.13, 602.11, 131.28, 608.58, 135.32, 604.54, 138.56, 610.2, 149.08, 629.62, 147.46, 639.33, 151.5, 640.0, 162.02, 608.58, 168.49, 575.42, 170.92, 548.72, 169.3, 534.97, 165.26]], "area": 3009.5734000000016, "iscrowd": 0, "image_id": 316258, "bbox": [531.73, 109.44, 108.27, 61.48], "category_id": 9, "id": 175512}, {"segmentation": [[1.92, 238.93, 329.13, 80.6, 378.06, 84.44, 429.88, 88.28, 540.23, 96.91, 495.13, 163.12, 420.28, 283.07, 268.67, 422.2, 0.96, 419.32]], "area": 117343.58649999999, "iscrowd": 0, "image_id": 476552, "bbox": [0.96, 80.6, 539.27, 341.6], "category_id": 9, "id": 175596}, {"segmentation": [[358.27, 162.08, 367.16, 165.18, 372.24, 165.18, 437.26, 165.47, 438.67, 164.62, 445.44, 160.81, 449.67, 156.58, 451.64, 152.49, 434.01, 154.47, 411.87, 156.72, 395.37, 156.86, 383.1, 157.14, 375.9, 155.88, 364.34, 154.04, 361.38, 155.17]], "area": 819.9095500000005, "iscrowd": 0, "image_id": 316258, "bbox": [358.27, 152.49, 93.37, 12.98], "category_id": 9, "id": 175859}, {"segmentation": [[351.34, 226.88, 326.43, 230.09, 311.55, 230.09, 299.1, 229.29, 289.45, 228.89, 283.02, 228.49, 277.79, 228.09, 268.15, 227.68, 262.12, 228.09, 261.32, 232.1, 260.91, 238.94, 261.32, 240.54, 312.36, 242.96, 349.33, 239.34, 363.8, 237.73, 369.03, 237.73, 373.85, 237.33, 385.51, 236.93, 398.77, 237.73, 406.0, 240.14, 413.24, 242.15, 442.58, 239.74, 442.98, 234.92, 443.78, 210.4, 441.37, 210.4, 412.44, 213.21, 409.62, 210.8, 401.58, 211.2, 389.53, 212.81, 393.14, 202.76, 393.55, 198.75, 385.91, 198.34, 383.9, 198.75, 382.69, 194.73, 372.65, 193.52, 356.57, 195.13, 356.57, 199.15, 354.56, 199.55, 354.16, 197.14, 353.35, 192.31, 350.54, 195.13, 350.54, 198.34, 350.54, 199.95, 339.29, 203.17, 342.5, 205.18, 348.13, 205.18, 349.33, 206.78]], "area": 4383.378750000002, "iscrowd": 0, "image_id": 139605, "bbox": [260.91, 192.31, 182.87, 50.65], "category_id": 9, "id": 176561}, {"segmentation": [[228.1, 172.97, 264.16, 172.64, 282.36, 171.63, 288.09, 170.28, 293.15, 163.54, 290.12, 160.84, 287.08, 162.19, 285.06, 164.55, 282.36, 163.87, 282.36, 163.87, 275.29, 163.87, 255.74, 167.58, 241.25, 168.93, 238.89, 168.93, 239.56, 164.88, 229.79, 164.21, 231.47, 169.27]], "area": 405.02244999999886, "iscrowd": 0, "image_id": 316258, "bbox": [228.1, 160.84, 65.05, 12.13], "category_id": 9, "id": 177194}, {"segmentation": [[100.98, 167.08, 97.38, 162.68, 92.58, 160.68, 80.57, 159.48, 76.97, 158.28, 74.57, 155.88, 51.37, 157.08, 49.77, 159.08, 42.96, 160.28, 38.16, 165.48, 35.36, 177.08, 29.76, 177.48, 29.36, 179.88, 34.96, 190.29, 34.16, 194.29, 40.56, 200.29, 69.77, 200.29, 69.37, 201.89, 80.98, 202.29, 102.18, 200.69, 104.18, 197.49, 104.98, 191.09, 102.98, 185.08, 102.18, 179.08, 100.18, 176.68, 101.78, 168.68]], "area": 2813.704199999999, "iscrowd": 0, "image_id": 202652, "bbox": [29.36, 155.88, 75.62, 46.41], "category_id": 9, "id": 177477}, {"segmentation": [[201.38, 242.9, 118.38, 234.31, 90.48, 237.89, 84.04, 242.9, 73.31, 285.11, 76.17, 295.85, 67.58, 335.92, 63.29, 359.53, 45.4, 361.67, 43.25, 396.02, 52.55, 436.81, 56.13, 461.85, 126.97, 464.0, 172.05, 464.0, 185.64, 453.98, 207.11, 443.25, 213.55, 402.46, 213.55, 365.97, 204.25, 344.82, 209.97, 327.65, 206.39, 297.59, 204.25, 245.36]], "area": 32589.520950000002, "iscrowd": 0, "image_id": 419281, "bbox": [43.25, 234.31, 170.3, 229.69], "category_id": 9, "id": 177586}, {"segmentation": [[137.63, 191.86, 182.14, 184.05, 236.81, 178.59, 281.32, 171.56, 329.74, 165.31, 382.06, 155.94, 433.6, 145.79, 417.98, 191.08, 401.58, 212.17, 360.97, 220.76, 307.87, 230.13, 256.33, 235.59, 189.17, 236.37, 162.62, 241.06, 138.41, 236.37, 132.95, 225.44, 125.92, 196.55, 129.82, 192.64, 139.19, 191.08]], "area": 16746.318600000002, "iscrowd": 0, "image_id": 291712, "bbox": [125.92, 145.79, 307.68, 95.27], "category_id": 9, "id": 177643}, {"segmentation": [[40.69, 163.65, 159.88, 158.86, 152.34, 171.88, 54.39, 173.25, 20.14, 166.39, 24.93, 159.54]], "area": 1418.6435499999984, "iscrowd": 0, "image_id": 316258, "bbox": [20.14, 158.86, 139.74, 14.39], "category_id": 9, "id": 178788}, {"segmentation": [[269.06, 227.41, 280.9, 229.56, 299.19, 230.64, 327.17, 233.87, 341.17, 233.87, 376.68, 231.71, 380.99, 231.71, 397.13, 233.87, 407.89, 229.56, 401.43, 226.33, 399.28, 224.18, 391.75, 219.87, 379.91, 216.65, 363.77, 216.65, 356.23, 216.65, 348.7, 214.49, 339.01, 211.26, 323.95, 211.26, 316.41, 211.26, 304.57, 213.42, 305.65, 219.87, 301.35, 216.65, 293.81, 216.65, 287.35, 214.49, 283.05, 217.72, 280.9, 223.1, 276.59, 223.1, 269.06, 223.1]], "area": 2108.9676499999996, "iscrowd": 0, "image_id": 353231, "bbox": [269.06, 211.26, 138.83, 22.61], "category_id": 9, "id": 179370}, {"segmentation": [[132.78, 111.86, 104.12, 103.26, 111.77, 98.48, 180.54, 68.87, 165.26, 39.26, 238.81, 2.96, 486.23, 2.96, 496.73, 25.88, 399.3, 73.65, 337.21, 72.69, 347.71, 62.18, 372.55, 69.83, 387.83, 62.18, 387.83, 35.44, 354.4, 17.29, 341.98, 33.53, 329.56, 50.72, 322.88, 66.01, 303.77, 78.42, 273.2, 57.41, 267.47, 11.56, 257.92, 4.87, 239.77, 12.51, 231.17, 24.93, 231.17, 40.21, 233.08, 50.72, 233.08, 59.32, 223.53, 68.87, 187.23, 91.8, 160.48, 103.26, 136.6, 108.99, 124.18, 108.04], [550.23, 101.35, 626.65, 62.18, 634.29, 53.59, 636.2, 0.09, 498.64, 0.09, 502.47, 22.06, 497.69, 36.39, 451.84, 61.23, 452.79, 68.87, 488.14, 73.65, 515.84, 78.42, 534.94, 86.07, 548.32, 95.62]], "area": 28185.626150000004, "iscrowd": 0, "image_id": 476552, "bbox": [104.12, 0.09, 532.08, 111.77], "category_id": 9, "id": 179535}, {"segmentation": [[227.26, 188.36, 225.54, 180.19, 225.75, 175.89, 231.77, 172.67, 232.41, 169.23, 232.41, 166.01, 233.06, 163.64, 239.94, 158.92, 251.54, 156.55, 257.99, 158.06, 259.71, 157.84, 263.14, 157.41, 268.52, 157.41, 275.82, 159.13, 290.87, 156.77, 313.43, 156.77, 331.7, 156.34, 337.93, 156.12, 344.8, 161.28, 344.59, 169.23, 346.09, 175.89, 349.75, 179.12, 347.6, 185.78, 339.22, 195.23, 327.18, 196.31, 306.98, 196.09, 288.29, 196.52, 272.38, 194.37, 258.42, 193.94, 247.67, 191.15, 235.85, 189.86]], "area": 4277.7825, "iscrowd": 0, "image_id": 202652, "bbox": [225.54, 156.12, 124.21, 40.4], "category_id": 9, "id": 180831}, {"segmentation": [[255.77, 164.8, 259.64, 152.87, 264.15, 152.54, 267.06, 166.74, 255.44, 167.38]], "area": 118.48409999999987, "iscrowd": 0, "image_id": 316258, "bbox": [255.44, 152.54, 11.62, 14.84], "category_id": 1, "id": 184772}, {"segmentation": [[419.06, 252.03, 437.02, 304.91, 438.02, 357.8, 445.0, 348.82, 448.99, 405.69, 454.98, 426.64, 455.98, 436.62, 511.85, 440.61, 508.86, 401.7, 504.87, 366.78, 507.86, 343.83, 513.85, 325.87, 508.86, 300.92, 493.89, 255.03, 501.87, 234.07, 490.9, 137.29, 466.95, 126.32, 448.99, 118.33, 431.03, 125.32, 419.06, 132.3, 411.08, 145.27, 414.07, 158.24, 413.07, 181.19, 418.06, 192.17, 429.04, 195.16, 432.03, 197.16, 433.03, 198.15, 416.07, 223.1, 405.09, 229.09, 401.1, 233.08, 389.13, 213.12, 382.14, 211.13, 370.17, 201.15, 365.18, 203.14, 364.18, 206.14, 363.18, 210.13, 368.17, 218.11, 376.15, 238.07, 387.13, 247.04, 404.09, 261.01]], "area": 23815.529800000004, "iscrowd": 0, "image_id": 497109, "bbox": [363.18, 118.33, 150.67, 322.28], "category_id": 1, "id": 197267}, {"segmentation": [[104.99, 220.04, 100.67, 241.62, 106.43, 254.56, 110.74, 260.31, 110.74, 261.75, 116.49, 276.13, 106.43, 320.72, 106.43, 320.72, 99.24, 363.87, 110.74, 386.88, 109.3, 407.01, 122.25, 512.0, 122.25, 520.63, 103.55, 552.27, 140.94, 579.6, 161.08, 588.22, 168.27, 591.1, 169.71, 585.35, 163.96, 572.4, 161.08, 562.34, 166.83, 530.7, 204.22, 454.47, 178.34, 362.43, 178.34, 358.11, 179.78, 345.17, 195.6, 336.54, 189.84, 293.39, 198.47, 254.56, 195.6, 241.62, 191.28, 235.87, 221.48, 153.89, 227.24, 146.7, 214.29, 84.85, 209.98, 53.21, 188.4, 38.83, 168.27, 35.96, 171.15, 41.71, 166.83, 53.21, 198.47, 81.98, 208.54, 104.99, 205.66, 119.37, 205.66, 143.82, 194.16, 171.15, 191.28, 174.02, 181.21, 186.97, 168.27, 185.53, 158.2, 194.16, 145.26, 202.79, 115.06, 208.54, 115.06, 212.85]], "area": 32493.910050000013, "iscrowd": 0, "image_id": 504726, "bbox": [99.24, 35.96, 128.0, 555.14], "category_id": 1, "id": 200991}, {"segmentation": [[131.46, 119.05, 143.93, 105.61, 183.27, 97.94, 211.1, 73.95, 232.21, 57.64, 234.13, 38.45, 240.85, 13.5, 263.88, 10.62, 275.39, 26.93, 273.47, 49.96, 285.95, 62.43, 302.26, 83.54, 305.14, 108.49, 309.93, 130.56, 304.18, 153.59, 299.38, 178.54, 283.07, 188.14, 275.39, 184.3, 274.43, 166.07, 263.88, 157.43, 249.48, 148.79, 240.85, 147.83, 232.21, 144.96, 234.13, 128.64, 225.49, 108.49, 223.58, 102.74, 201.51, 106.57, 188.07, 110.41, 171.76, 113.29, 157.37, 120.97, 154.49, 126.72, 142.01, 126.72, 129.54, 123.85]], "area": 11554.087149999998, "iscrowd": 0, "image_id": 476552, "bbox": [129.54, 10.62, 180.39, 177.52], "category_id": 1, "id": 208449}, {"segmentation": [[319.22, 161.06, 319.35, 159.99, 319.35, 158.25, 318.88, 157.59, 318.68, 156.31, 318.62, 154.91, 318.41, 153.51, 319.02, 152.37, 319.82, 150.63, 320.49, 149.43, 321.16, 148.42, 322.23, 148.02, 323.23, 147.42, 324.77, 146.89, 325.44, 147.69, 325.3, 148.49, 325.23, 149.49, 324.83, 149.9, 323.76, 150.83, 322.76, 152.24, 323.16, 155.11, 324.17, 156.18, 324.77, 157.18, 325.17, 157.85, 324.43, 158.12, 322.76, 158.12, 322.29, 158.92, 321.69, 160.86, 321.22, 162.2, 320.02, 161.93, 319.62, 161.73, 319.28, 160.8]], "area": 58.855900000000005, "iscrowd": 0, "image_id": 316258, "bbox": [318.41, 146.89, 7.03, 15.31], "category_id": 1, "id": 214166}, {"segmentation": [[400.32, 246.58, 400.84, 252.77, 400.84, 262.56, 400.84, 268.74, 401.36, 279.57, 401.36, 286.78, 401.36, 291.42, 395.17, 295.54, 388.99, 299.15, 381.77, 302.76, 372.49, 300.18, 361.16, 295.54, 351.36, 295.03, 345.7, 295.03, 342.6, 289.36, 339.51, 283.69, 335.39, 280.6, 329.2, 275.44, 316.83, 273.38, 306.53, 271.32, 301.37, 271.32, 297.25, 270.29, 281.27, 278.02, 277.15, 281.11, 273.54, 275.96, 273.03, 272.87, 272.51, 267.71, 274.57, 259.98, 274.57, 258.44, 270.97, 253.8, 268.91, 251.22, 272.51, 245.04, 272.0, 243.49, 267.36, 241.43, 263.75, 236.79, 259.63, 239.88, 257.05, 246.58, 254.99, 251.22, 253.96, 252.77, 252.41, 245.55, 255.51, 233.18, 256.54, 224.42, 257.57, 213.6, 260.14, 205.35, 285.4, 185.77, 294.16, 182.68, 301.89, 177.01, 302.92, 166.19, 308.59, 162.06, 318.9, 155.36, 323.02, 153.82, 329.2, 151.76, 333.33, 149.69, 334.36, 141.45, 334.36, 136.81, 332.81, 130.11, 333.84, 123.93, 337.96, 117.74, 341.06, 114.13, 345.18, 113.1, 348.79, 112.07, 359.09, 110.53, 365.28, 112.07, 372.49, 117.74, 379.19, 124.44, 380.74, 129.59, 381.77, 134.23, 380.23, 140.42, 374.04, 156.39, 377.65, 157.42, 385.38, 159.49, 392.08, 166.19, 397.23, 172.89, 404.45, 180.62, 407.54, 186.28, 408.57, 193.5, 409.6, 200.72, 413.72, 212.05, 414.24, 217.21, 415.79, 221.85, 415.79, 227.0, 416.82, 235.24, 417.33, 237.82, 423.0, 239.37, 426.09, 238.34, 427.64, 238.34, 427.96, 260.14, 421.23, 263.99, 413.54, 256.3, 410.65, 253.41, 402.0, 245.72, 400.07, 241.87]], "area": 19140.436049999997, "iscrowd": 0, "image_id": 476552, "bbox": [252.41, 110.53, 175.55, 192.23], "category_id": 1, "id": 216070}, {"segmentation": [[395.07, 214.5, 393.4, 197.22, 390.05, 186.07, 390.05, 174.93, 388.94, 166.01, 388.94, 154.3, 394.51, 137.02, 400.09, 129.78, 404.55, 122.53, 398.97, 114.17, 392.28, 107.48, 388.38, 100.24, 384.48, 84.07, 400.71, 69.7, 413.54, 69.7, 425.85, 66.63, 436.1, 67.65, 448.41, 71.75, 453.03, 83.04, 455.08, 97.4, 456.62, 109.2, 458.67, 115.86, 456.62, 118.43, 449.44, 116.89, 435.59, 121.51, 429.44, 125.61, 422.26, 130.23, 415.08, 136.89, 413.54, 137.92, 413.54, 148.18, 414.56, 159.46, 415.59, 176.39, 416.1, 183.05, 416.1, 187.16, 423.28, 193.31, 435.59, 196.39, 432.0, 201.52, 426.87, 207.67, 423.79, 209.21, 414.56, 213.83, 400.71, 216.39]], "area": 5714.569700000001, "iscrowd": 0, "image_id": 497109, "bbox": [384.48, 66.63, 74.19, 149.76], "category_id": 1, "id": 219495}, {"segmentation": [[313.22, 150.15, 314.75, 156.43, 313.98, 157.81, 312.76, 155.82, 310.31, 152.14, 309.54, 156.89, 309.08, 157.81, 307.85, 157.5, 307.7, 150.45, 308.16, 148.0, 309.85, 143.86, 310.0, 142.94, 311.07, 142.48, 312.14, 141.26, 313.06, 140.49, 314.14, 140.49, 314.14, 143.86, 315.36, 143.86, 316.59, 148.0, 318.43, 150.15, 318.12, 151.06, 316.13, 149.99, 314.29, 146.62, 312.45, 148.0]], "area": 86.84849999999987, "iscrowd": 0, "image_id": 316258, "bbox": [307.7, 140.49, 10.73, 17.32], "category_id": 1, "id": 224650}, {"segmentation": [[232.12, 164.1, 232.68, 167.76, 253.27, 166.92, 257.65, 164.52, 255.95, 163.67, 239.59, 163.81, 234.09, 163.53, 231.27, 162.26]], "area": 85.7111999999998, "iscrowd": 0, "image_id": 316258, "bbox": [231.27, 162.26, 26.38, 5.5], "category_id": 9, "id": 249244}, {"segmentation": [[2.44, 194.9, 13.06, 202.54, 26.43, 198.93, 27.28, 178.34, 21.76, 177.07, 17.73, 164.12, 10.94, 159.87, 0.32, 156.9, 0.32, 195.96]], "area": 918.4604999999998, "iscrowd": 0, "image_id": 202652, "bbox": [0.32, 156.9, 26.96, 45.64], "category_id": 9, "id": 249272}, {"segmentation": [[411.75, 400.25, 399.21, 368.9, 375.17, 344.86, 306.2, 336.5, 229.91, 337.55, 214.23, 339.64, 211.1, 317.69, 242.45, 305.15, 293.66, 289.48, 299.93, 285.3, 325.01, 266.49, 365.77, 256.04, 437.87, 247.68, 504.76, 248.72, 529.84, 257.08, 595.68, 263.35, 620.76, 277.98, 636.43, 291.57, 640.0, 411.75, 635.39, 425.33, 577.91, 431.6, 493.26, 413.84, 450.41, 422.2, 411.75, 391.89, 410.7, 391.89]], "area": 49831.52519999999, "iscrowd": 0, "image_id": 419281, "bbox": [211.1, 247.68, 428.9, 183.92], "category_id": 9, "id": 249324}, {"segmentation": [[260.09, 339.16, 318.35, 336.04, 367.25, 346.44, 379.73, 347.48, 399.5, 368.29, 408.86, 392.22, 416.14, 397.42, 445.27, 415.1, 449.43, 424.47, 437.99, 424.47, 419.26, 461.71, 238.24, 456.51, 244.48, 418.02, 244.48, 378.48, 235.12, 353.51, 234.08, 337.91], [212.23, 329.59, 213.27, 339.99, 224.72, 342.07, 220.56, 379.52, 213.27, 382.64, 214.31, 370.16, 203.91, 344.15, 210.15, 332.71]], "area": 21288.098399999988, "iscrowd": 0, "image_id": 419281, "bbox": [203.91, 329.59, 245.52, 132.12], "category_id": 9, "id": 249776}, {"segmentation": [[361.53, 193.84, 340.73, 194.56, 335.71, 217.51, 360.81, 244.76, 382.33, 256.23, 470.54, 249.78, 466.23, 236.15, 462.65, 223.24, 460.5, 215.35, 453.32, 203.16, 444.72, 198.14, 421.77, 196.71, 392.37, 193.12, 382.33, 193.12]], "area": 6642.3303, "iscrowd": 0, "image_id": 419281, "bbox": [335.71, 193.12, 134.83, 63.11], "category_id": 9, "id": 250137}, {"segmentation": [[266.5, 163.69, 282.54, 163.69, 285.74, 164.76, 286.81, 163.26, 290.23, 160.69, 293.23, 163.69, 292.37, 166.47, 335.34, 167.75, 350.3, 166.25, 356.93, 163.69, 359.07, 161.34, 363.77, 154.49, 359.07, 151.93, 351.37, 153.0, 344.32, 154.92, 341.75, 155.14, 332.99, 156.85, 333.63, 153.64, 325.08, 154.49, 325.72, 162.19, 321.02, 165.18, 319.09, 159.41, 319.09, 155.14, 315.24, 154.28, 315.67, 158.34, 312.68, 158.34, 306.69, 157.06, 304.98, 154.07, 265.01, 157.06, 264.79, 159.84], [257.52, 163.9, 240.21, 163.9, 234.22, 160.27, 235.72, 155.14, 260.73, 155.56, 257.74, 160.91]], "area": 1150.70445, "iscrowd": 0, "image_id": 316258, "bbox": [234.22, 151.93, 129.55, 15.82], "category_id": 9, "id": 250205}, {"segmentation": [[158.07, 165.68, 164.22, 164.96, 172.73, 164.23, 183.23, 163.87, 194.99, 164.05, 201.15, 162.96, 203.5, 159.53, 203.5, 154.82, 193.0, 155.36, 181.78, 155.36, 168.93, 156.45, 156.26, 156.81, 150.64, 156.09, 144.13, 156.09, 123.85, 156.63, 120.05, 157.9, 120.05, 159.53, 135.8, 159.16, 151.37, 159.34, 157.34, 158.8, 160.24, 159.34, 157.52, 165.14]], "area": 480.6241999999999, "iscrowd": 0, "image_id": 316258, "bbox": [120.05, 154.82, 83.45, 10.86], "category_id": 9, "id": 250425}, {"segmentation": [[108.34, 202.38, 103.92, 196.57, 103.92, 190.06, 101.82, 179.78, 102.74, 173.03, 102.59, 168.28, 103.05, 166.29, 114.71, 160.76, 115.32, 159.23, 117.16, 153.55, 128.51, 149.72, 134.65, 149.41, 148.76, 149.11, 168.85, 150.03, 177.6, 154.78, 180.05, 166.75, 183.43, 169.97, 186.19, 174.26, 186.8, 178.1, 188.79, 179.48, 190.17, 183.77, 188.03, 187.34, 183.73, 194.24, 180.05, 201.76]], "area": 3965.151549999999, "iscrowd": 0, "image_id": 202652, "bbox": [101.82, 149.11, 88.35, 53.27], "category_id": 9, "id": 250572}, {"segmentation": [[346.5, 195.37, 407.25, 192.38, 419.25, 175.88, 402.75, 160.13, 381.0, 150.38, 373.5, 148.13, 342.75, 150.38, 337.5, 155.63, 347.25, 162.38, 349.5, 177.38, 346.5, 194.63]], "area": 2700.8212500000004, "iscrowd": 0, "image_id": 202652, "bbox": [337.5, 148.13, 81.75, 47.24], "category_id": 9, "id": 250701}, {"segmentation": [[474.85, 196.8, 421.21, 189.22, 420.62, 176.39, 407.8, 161.81, 407.21, 153.07, 420.62, 148.4, 434.62, 146.65, 467.85, 147.82, 479.51, 150.74, 481.26, 157.15, 491.17, 162.4, 497.59, 166.48, 498.17, 172.31, 498.75, 179.89, 493.51, 187.47, 488.84, 190.97, 480.68, 196.8]], "area": 3468.4530499999996, "iscrowd": 0, "image_id": 202652, "bbox": [407.21, 146.65, 91.54, 50.15], "category_id": 9, "id": 250824}, {"segmentation": [[360.31, 190.71, 359.19, 186.95, 362.24, 184.42, 362.24, 182.38, 363.35, 180.45, 365.08, 181.88, 365.08, 184.72, 365.38, 186.14, 366.09, 188.17, 366.6, 189.8, 366.4, 190.2]], "area": 43.34379999999991, "iscrowd": 0, "image_id": 419281, "bbox": [359.19, 180.45, 7.41, 10.26], "category_id": 1, "id": 254458}, {"segmentation": [[192.06, 152.14, 194.8, 147.84, 194.21, 144.91, 195.97, 142.56, 199.49, 141.97, 200.66, 147.25, 200.27, 148.23, 202.42, 151.16, 203.4, 152.53]], "area": 66.8936999999999, "iscrowd": 0, "image_id": 364299, "bbox": [192.06, 141.97, 11.34, 10.56], "category_id": 1, "id": 254781}, {"segmentation": [[4.8, 147.48, 195.75, 247.27, 241.81, 254.95, 368.47, 253.03, 504.72, 254.95, 580.53, 261.66, 601.64, 264.54, 639.06, 253.03, 637.14, 81.27, 288.82, 56.32, 213.98, 65.92, 144.89, 94.7]], "area": 99481.33230000001, "iscrowd": 0, "image_id": 272111, "bbox": [4.8, 56.32, 634.26, 208.22], "category_id": 28, "id": 279950}, {"segmentation": [[264.63, 198.47, 221.48, 182.65, 168.27, 159.64, 130.88, 132.31, 102.11, 113.62, 83.42, 96.36, 71.91, 84.85, 71.91, 71.91, 84.85, 67.6, 99.24, 66.16, 123.69, 67.6, 140.94, 67.6, 257.44, 74.79, 289.08, 92.04, 309.21, 94.92, 327.91, 104.99, 362.43, 123.69, 396.94, 151.01, 434.34, 184.09, 471.73, 207.1, 480.0, 217.17, 480.0, 235.87, 477.48, 251.69, 454.47, 251.69, 407.01, 248.81, 336.54, 224.36, 296.27, 217.17, 267.51, 208.54, 247.37, 197.03]], "area": 36595.97139999999, "iscrowd": 0, "image_id": 81956, "bbox": [71.91, 66.16, 408.09, 185.53], "category_id": 28, "id": 280412}, {"segmentation": [[90.2, 281.15, 116.11, 346.4, 113.23, 349.28, 341.6, 376.14, 389.58, 381.9, 395.33, 381.9, 398.21, 422.2, 407.81, 420.28, 407.81, 379.98, 429.88, 379.98, 427.96, 257.16, 289.78, 253.32, 234.13, 261.0, 89.24, 281.15], [450.99, 258.12, 498.97, 260.04, 497.05, 374.22, 449.07, 379.98, 448.11, 379.02, 448.11, 379.02, 445.23, 379.02, 449.07, 258.12, 453.87, 259.08], [531.59, 264.84, 637.14, 282.11, 640.0, 370.39, 524.87, 376.14, 524.87, 261.96, 535.43, 266.76]], "area": 52143.89519999999, "iscrowd": 0, "image_id": 272111, "bbox": [89.24, 253.32, 550.76, 168.88], "category_id": 28, "id": 280598}, {"segmentation": [[141.74, 117.2, 164.3, 118.27, 200.81, 108.61, 266.31, 97.87, 314.63, 92.5, 325.37, 91.43, 372.62, 103.24, 397.32, 105.39, 429.53, 110.76, 453.15, 117.2, 456.38, 112.91, 486.44, 104.31, 469.26, 91.43, 437.05, 75.32, 382.28, 57.07, 372.62, 53.84, 343.62, 65.66, 332.89, 65.66, 282.42, 75.32, 241.61, 78.54]], "area": 8695.65305, "iscrowd": 0, "image_id": 239395, "bbox": [141.74, 53.84, 344.7, 64.43], "category_id": 28, "id": 281458}, {"segmentation": [[0.96, 266.76, 69.09, 281.15, 91.16, 288.82, 95.96, 300.34, 110.35, 329.13, 95.0, 334.88, 80.6, 354.07, 78.68, 362.71, 70.05, 371.35, 32.62, 377.1, 4.8, 384.78, 1.92, 386.7, 0.96, 268.67]], "area": 9045.602050000003, "iscrowd": 0, "image_id": 272111, "bbox": [0.96, 266.76, 109.39, 119.94], "category_id": 28, "id": 283145}, {"segmentation": [[168.84, 172.55, 155.05, 162.53, 137.09, 150.83, 137.09, 144.15, 164.24, 144.15, 189.3, 152.5, 212.27, 171.3, 218.12, 185.5, 210.6, 186.33, 195.57, 182.99, 176.35, 175.47]], "area": 1656.3057000000008, "iscrowd": 0, "image_id": 437373, "bbox": [137.09, 144.15, 81.03, 42.18], "category_id": 28, "id": 283450}, {"segmentation": [[0.0, 173.52, 34.54, 204.22, 95.0, 234.93, 93.08, 242.61, 69.09, 243.57, 36.46, 246.44, 0.96, 250.28]], "area": 3505.8103499999993, "iscrowd": 0, "image_id": 272111, "bbox": [0.0, 173.52, 95.0, 76.76], "category_id": 28, "id": 283735}, {"segmentation": [[504.65, 72.64, 504.65, 68.94, 319.39, 57.14, 290.6, 55.66, 217.52, 57.14, 165.86, 37.95, 73.59, 0.0, 638.98, 1.04, 640.0, 74.12, 527.53, 69.68, 528.27, 71.9, 506.12, 71.16], [504.65, 71.6, 500.96, 421.47, 523.84, 422.21, 529.01, 67.92, 508.34, 68.66]], "area": 39361.84995000002, "iscrowd": 0, "image_id": 272111, "bbox": [73.59, 0.0, 566.41, 422.21], "category_id": 28, "id": 284120}, {"segmentation": [[239.54, 177.71, 226.3, 181.31, 220.26, 184.22, 219.79, 186.19, 217.82, 186.31, 218.63, 183.17, 215.26, 175.27, 206.43, 167.26, 205.62, 169.0, 203.76, 169.0, 204.11, 166.1, 204.46, 163.89, 210.67, 151.45, 218.27, 139.63, 225.87, 131.35, 227.39, 127.98, 229.92, 121.22, 232.62, 116.49, 236.0, 113.79, 241.51, 111.01, 249.41, 107.98, 251.25, 104.69, 254.28, 104.96, 254.8, 105.75, 264.02, 99.56, 267.83, 96.66, 277.7, 96.53, 289.94, 90.74, 302.71, 89.69, 325.61, 90.08, 328.77, 90.08, 329.69, 91.93, 326.92, 92.32, 330.48, 101.67, 330.87, 102.46, 337.06, 111.8, 339.82, 112.19, 339.82, 114.43, 336.4, 113.25, 322.19, 128.78, 312.58, 141.67, 312.71, 133.52, 309.29, 131.8, 306.13, 131.8, 305.87, 129.83, 309.55, 124.96, 307.71, 117.72, 301.79, 111.27, 297.84, 109.96, 295.08, 110.22, 292.31, 103.9, 288.63, 104.03, 283.23, 101.93, 278.62, 102.06, 263.33, 111.61, 256.83, 116.97, 252.62, 120.6, 248.98, 118.69, 238.07, 126.15, 240.56, 135.15, 242.47, 140.7, 245.73, 145.29, 249.94, 147.39, 254.91, 149.31, 253.19, 153.71, 253.38, 157.34, 252.62, 159.45, 246.87, 165.76, 243.24, 172.46]], "area": 3705.4507000000003, "iscrowd": 0, "image_id": 546773, "bbox": [203.76, 89.69, 136.06, 96.62], "category_id": 28, "id": 284842}, {"segmentation": [[294.46, 223.21, 296.27, 223.21, 294.27, 203.03, 297.73, 202.3, 307.0, 202.3, 326.45, 195.58, 322.27, 191.76, 315.0, 188.31, 302.09, 187.4, 287.18, 187.4, 270.09, 191.94, 265.91, 193.4, 261.0, 197.58, 266.64, 204.3, 275.18, 203.94, 292.64, 203.58]], "area": 829.0960000000001, "iscrowd": 0, "image_id": 437373, "bbox": [261.0, 187.4, 65.45, 35.81], "category_id": 28, "id": 285697}, {"segmentation": [[176.22, 132.43, 155.68, 143.24, 153.51, 147.57, 141.62, 181.08, 139.46, 197.3, 139.46, 208.11, 142.7, 214.59, 160.0, 230.81, 166.49, 238.38, 175.14, 244.86, 170.81, 261.08, 175.14, 275.14, 176.22, 282.7, 190.27, 289.19, 228.11, 318.38, 236.76, 334.59, 240.0, 341.08, 231.35, 381.08, 231.35, 388.65, 242.16, 388.65, 245.41, 382.16, 254.05, 347.57, 263.78, 343.24, 322.16, 307.57, 332.97, 302.16, 379.46, 291.35, 401.08, 282.7, 418.38, 280.54, 422.7, 275.14, 427.03, 254.59, 422.7, 231.89, 419.46, 222.16, 409.73, 210.27, 403.24, 202.7, 409.73, 196.22, 410.81, 183.24, 404.32, 170.27, 397.84, 164.86, 396.76, 159.46, 402.16, 154.05, 405.41, 148.65, 408.65, 138.92, 400.0, 125.95, 392.43, 121.62, 371.89, 110.81, 367.57, 102.16, 356.76, 92.43, 341.62, 82.7, 341.62, 80.54, 339.46, 72.97, 336.22, 77.3, 334.05, 78.38, 292.97, 58.92, 294.05, 51.35, 292.97, 50.27, 290.81, 55.68, 288.65, 58.92, 272.43, 51.35, 259.46, 49.19, 238.92, 47.03, 230.27, 47.03, 223.78, 47.03, 211.89, 51.35, 197.84, 52.43, 183.78, 56.76, 177.3, 62.16, 170.81, 67.57, 164.32, 79.46, 163.24, 97.84, 166.49, 109.73]], "area": 60328.525050000004, "iscrowd": 0, "image_id": 390094, "bbox": [139.46, 47.03, 287.57, 341.62], "category_id": 28, "id": 285990}, {"segmentation": [[184.0, 214.02, 188.59, 200.22, 196.73, 194.57, 216.89, 190.68, 225.37, 187.49, 242.35, 194.21, 262.51, 200.58, 272.41, 210.13, 269.58, 216.85, 255.08, 219.32, 241.29, 217.91, 233.16, 217.91, 219.01, 218.61, 215.83, 218.61, 211.23, 217.2, 204.51, 217.2, 197.79, 217.91, 193.19, 215.08]], "area": 1930.4176499999992, "iscrowd": 0, "image_id": 437373, "bbox": [184.0, 187.49, 88.41, 31.83], "category_id": 28, "id": 286005}, {"segmentation": [[164.66, 369.53, 136.03, 370.59, 110.06, 337.73, 136.56, 304.34, 151.94, 295.85, 185.86, 288.43, 195.4, 285.25, 239.93, 294.26, 256.36, 303.81, 276.5, 334.02, 246.29, 356.81, 247.35, 359.99, 234.63, 362.64, 228.27, 354.69, 212.89, 352.57, 222.97, 342.5, 225.62, 334.02, 224.03, 327.66, 224.56, 312.29, 224.03, 302.21, 215.01, 297.44, 203.35, 294.79, 188.51, 297.44, 180.03, 300.09, 175.79, 310.7, 173.14, 321.83, 173.14, 327.66, 173.14, 331.37, 174.2, 343.03, 177.91, 345.15, 182.15, 347.27, 180.56, 353.1, 170.49, 359.46, 168.37, 365.29]], "area": 6667.3337999999985, "iscrowd": 0, "image_id": 546773, "bbox": [110.06, 285.25, 166.44, 85.34], "category_id": 28, "id": 286613}, {"segmentation": [[0.0, 386.7, 155.45, 354.07, 296.5, 371.35, 359.83, 388.62, 398.21, 402.05, 396.29, 421.24, 395.33, 427.0, 51.82, 427.0, 42.22, 418.36, 2.88, 416.44], [409.73, 407.81, 427.0, 412.61, 429.88, 427.0, 408.77, 427.0], [447.15, 416.44, 475.94, 426.04, 448.11, 427.0, 445.23, 427.0]], "area": 22019.553799999998, "iscrowd": 0, "image_id": 272111, "bbox": [0.0, 354.07, 475.94, 72.93], "category_id": 28, "id": 286883}, {"segmentation": [[378.3, 155.49, 237.93, 168.43, 188.15, 171.42, 98.56, 181.37, 80.64, 210.24, 68.69, 217.21, 26.88, 241.1, 24.89, 273.96, 48.78, 295.86, 57.74, 318.75, 66.7, 431.25, 360.38, 442.2, 440.02, 420.3, 452.96, 382.47, 442.01, 304.82, 439.03, 301.83], [527.63, 166.44, 584.37, 181.37, 590.35, 242.1, 577.4, 290.88, 574.42, 306.81, 512.7, 350.61, 506.72, 302.83, 496.77, 262.01, 513.69, 249.07, 550.53, 242.1, 572.43, 223.18, 557.49, 210.24, 551.52, 182.37, 529.62, 173.41, 528.62, 167.43]], "area": 107445.0303, "iscrowd": 0, "image_id": 497109, "bbox": [24.89, 155.49, 565.46, 286.71], "category_id": 63, "id": 291140}, {"segmentation": [[123.78, 375.18, 114.19, 367.51, 120.9, 333.92, 105.55, 309.93, 103.63, 308.02, 115.15, 300.34, 141.05, 294.58, 150.65, 298.42, 142.97, 332.96, 162.16, 369.43, 175.6, 417.4, 161.2, 418.36, 146.81, 418.36, 139.13, 398.21, 126.66, 380.94]], "area": 4205.59785, "iscrowd": 0, "image_id": 381529, "bbox": [103.63, 294.58, 71.97, 123.78], "category_id": 32, "id": 294120}, {"segmentation": [[536.85, 260.88, 528.26, 286.67, 543.54, 359.27, 545.45, 420.41, 495.78, 421.36, 500.55, 323.92, 512.02, 280.94, 510.11, 254.19, 537.81, 259.92]], "area": 5971.75395, "iscrowd": 0, "image_id": 381529, "bbox": [495.78, 254.19, 49.67, 167.17], "category_id": 32, "id": 294389}, {"segmentation": [[209.63, 439.44, 216.66, 437.38, 221.61, 443.57, 227.81, 446.88, 226.57, 451.83, 231.52, 457.62, 234.41, 459.27, 239.78, 455.96, 266.22, 451.42, 274.48, 447.7, 290.58, 462.98, 264.56, 497.27, 264.56, 499.33, 266.63, 503.46, 268.69, 512.55, 269.93, 515.85, 274.89, 527.83, 282.74, 550.96, 281.5, 557.15, 267.87, 575.74, 240.2, 551.78, 226.15, 533.2, 230.7, 516.68, 231.11, 511.72, 229.46, 474.55, 228.63, 465.88, 220.37, 455.14]], "area": 5250.887149999999, "iscrowd": 0, "image_id": 198782, "bbox": [209.63, 437.38, 80.95, 138.36], "category_id": 32, "id": 294835}, {"segmentation": [[257.68, 398.58, 238.27, 415.48, 231.39, 430.51, 227.0, 446.16, 236.39, 459.3, 248.29, 484.34, 258.3, 556.34, 257.68, 585.76, 247.04, 637.03, 172.54, 636.4, 160.65, 561.28, 167.53, 520.59, 185.69, 472.38, 191.32, 469.88, 200.08, 437.39, 199.46, 403.59, 192.57, 401.08, 211.35, 387.94, 235.77, 384.81, 252.04, 395.45]], "area": 17313.2534, "iscrowd": 0, "image_id": 369647, "bbox": [160.65, 384.81, 97.65, 252.22], "category_id": 32, "id": 296552}, {"segmentation": [[72.12, 0.75, 92.57, 55.64, 82.88, 69.64, 69.97, 77.17, 34.44, 115.92, 46.29, 124.53, 59.2, 132.07, 50.59, 142.83, 62.43, 170.82, 59.2, 190.19, 54.9, 206.34, 53.82, 217.1, 34.44, 252.63, 32.29, 266.62, 37.67, 275.23, 43.06, 274.15, 36.6, 281.69, 30.14, 284.92, 1.08, 336.59, 3.23, 470.06, 636.16, 472.21, 636.16, 0.0, 105.49, 0.0]], "area": 281904.19315, "iscrowd": 0, "image_id": 452696, "bbox": [1.08, 0.0, 635.08, 472.21], "category_id": 65, "id": 319120}, {"segmentation": [[426.49, 242.79, 442.34, 243.3, 454.1, 245.86, 460.75, 252.51, 463.82, 266.31, 475.07, 304.67, 483.25, 303.13, 486.83, 303.64, 487.85, 311.31, 484.27, 316.94, 480.69, 318.47, 488.36, 334.33, 489.39, 366.54, 489.9, 407.97, 472.51, 416.15, 408.08, 422.28, 402.96, 317.45, 402.96, 285.97, 418.31, 281.37, 422.91, 274.72, 425.46, 271.65, 425.46, 264.49, 425.98, 258.35, 425.46, 247.1, 425.46, 242.5], [385.58, 291.51, 344.15, 301.23, 303.76, 316.06, 304.27, 331.4, 308.87, 338.56, 312.96, 349.3, 317.56, 357.48, 317.05, 366.69, 317.05, 376.91, 318.07, 385.61, 321.14, 389.19, 329.32, 385.61, 330.86, 385.61, 333.93, 391.74, 333.42, 400.44, 332.9, 411.69, 333.42, 420.38, 338.02, 425.5, 346.71, 424.98, 353.87, 421.92, 359.5, 421.41, 373.3, 422.94, 389.16, 423.45]], "area": 20856.724850000002, "iscrowd": 0, "image_id": 390094, "bbox": [303.76, 242.5, 186.14, 183.0], "category_id": 3, "id": 351379}, {"segmentation": [[622.38, 9.71, 529.62, 11.87, 525.3, 254.56, 526.38, 317.12, 555.51, 320.36, 570.61, 338.7, 578.16, 345.17, 553.35, 413.12, 550.11, 430.38, 595.42, 447.64, 637.48, 451.96, 640.0, 217.89, 640.0, 51.78, 639.64, 2.16]], "area": 44343.683800000006, "iscrowd": 0, "image_id": 239395, "bbox": [525.3, 2.16, 114.7, 449.8], "category_id": 8, "id": 395031}, {"segmentation": [[103.09, 58.84, 136.02, 24.48, 213.33, 4.43, 257.72, 11.59, 279.19, 11.59, 316.42, 20.18, 342.19, 27.34, 360.81, 81.75, 362.24, 117.54, 356.51, 129.0, 357.94, 163.36, 357.94, 189.13, 345.06, 207.74, 327.87, 223.49, 323.58, 232.08, 322.15, 266.45, 333.6, 283.63, 422.37, 320.85, 422.37, 628.68, 0.0, 622.96, 1.43, 355.22, 128.86, 286.49, 95.93, 237.81, 81.61, 200.59, 84.47, 161.93, 61.57, 107.52, 77.32, 83.18, 90.2, 71.73, 104.52, 61.7]], "area": 206369.99195, "iscrowd": 0, "image_id": 369647, "bbox": [0.0, 4.43, 422.37, 624.25], "category_id": 1, "id": 431545}, {"segmentation": [[332.22, 1.44, 363.87, 417.08, 369.62, 432.9, 411.33, 428.58, 421.39, 421.39, 424.27, 414.2, 408.45, 394.07, 414.2, 352.36, 426.0, 349.48, 422.83, 1.44]], "area": 31718.27554999999, "iscrowd": 0, "image_id": 9679, "bbox": [332.22, 1.44, 93.78, 431.46], "category_id": 1, "id": 445610}, {"segmentation": [[24.75, 230.99, 25.46, 220.89, 26.6, 210.37, 26.88, 207.24, 23.9, 200.27, 23.33, 194.16, 23.04, 190.32, 23.61, 186.34, 26.32, 182.5, 27.17, 179.94, 28.88, 174.82, 31.58, 168.7, 33.85, 164.72, 37.27, 162.3, 42.67, 162.16, 45.8, 164.72, 48.5, 167.99, 47.5, 171.41, 48.5, 173.82, 48.64, 176.52, 49.21, 179.23, 49.92, 181.64, 51.91, 183.07, 53.33, 185.63, 55.04, 192.88, 56.32, 199.14, 55.75, 207.38, 54.9, 209.09, 50.77, 209.8, 53.76, 218.62, 55.33, 222.46, 57.46, 232.55, 56.04, 233.41, 56.32, 241.94, 55.33, 249.48, 56.61, 256.87, 58.6, 262.27, 60.3, 267.11, 62.01, 275.93, 61.72, 279.48, 64.28, 280.05, 65.99, 281.76, 65.28, 283.46, 62.01, 285.45, 55.61, 287.02, 53.76, 287.3, 51.49, 287.44, 50.35, 286.02, 50.35, 284.6, 49.49, 280.9, 48.36, 276.92, 47.79, 272.09, 47.5, 262.13, 45.66, 256.73, 44.09, 248.34, 41.67, 240.37, 41.53, 250.47, 41.1, 259.0, 42.1, 263.84, 43.38, 268.53, 43.38, 271.52, 43.95, 274.36, 43.95, 277.21, 44.09, 279.2, 43.95, 283.46, 45.09, 287.16, 41.39, 288.3, 38.26, 287.44, 36.13, 285.17, 34.28, 283.75, 33.0, 281.19, 31.86, 278.63, 30.3, 275.07, 31.29, 264.12, 31.15, 256.02, 29.87, 248.48, 27.6, 239.24, 25.46, 233.98]], "area": 3198.6767499999996, "iscrowd": 0, "image_id": 62060, "bbox": [23.04, 162.16, 42.95, 126.14], "category_id": 1, "id": 447832}, {"segmentation": [[149.71, 598.68, 126.57, 573.11, 125.36, 552.41, 150.93, 546.32, 159.45, 541.45, 178.94, 521.96, 165.54, 503.7, 153.36, 500.04, 152.15, 429.41, 153.36, 416.01, 146.06, 403.84, 163.11, 364.87, 177.72, 351.47, 170.41, 339.29, 172.85, 308.85, 195.99, 291.8, 214.25, 297.89, 217.91, 308.85, 227.65, 317.37, 225.21, 329.55, 221.56, 349.04, 242.26, 363.65, 245.92, 367.3, 275.14, 370.96, 278.8, 381.92, 249.57, 395.31, 217.91, 504.91, 224.0, 573.11, 245.92, 596.25, 225.21, 609.64, 192.33, 602.34, 183.81, 596.25, 191.12, 576.76, 194.77, 552.41, 174.07, 563.37, 171.63, 585.29, 166.76, 596.25, 152.15, 603.55]], "area": 22565.63935, "iscrowd": 0, "image_id": 546773, "bbox": [125.36, 291.8, 153.44, 317.84], "category_id": 1, "id": 449953}, {"segmentation": [[244.69, 416.44, 244.69, 348.32, 274.43, 321.45, 282.11, 291.7, 269.63, 273.47, 259.08, 251.4, 224.53, 234.13, 187.11, 214.94, 177.52, 209.18, 200.55, 169.84, 202.47, 155.45, 186.15, 129.54, 184.23, 100.75, 174.64, 61.41, 139.13, 41.26, 114.19, 43.18, 77.72, 48.94, 53.73, 68.13, 43.18, 100.75, 43.18, 151.61, 38.38, 191.91, 28.79, 213.98, 8.64, 237.97, 2.88, 247.56, 3.84, 418.36]], "area": 73825.1206, "iscrowd": 0, "image_id": 381529, "bbox": [2.88, 41.26, 279.23, 377.1], "category_id": 1, "id": 461373}, {"segmentation": [[33.08, 627.06, 38.83, 478.92, 48.9, 434.34, 77.66, 402.7, 123.69, 384.0, 120.81, 366.74, 115.06, 352.36, 119.37, 345.17, 112.18, 333.66, 113.62, 312.09, 100.67, 304.9, 93.48, 296.27, 93.48, 287.64, 104.99, 266.07, 116.49, 251.69, 113.62, 199.91, 107.87, 194.16, 112.18, 181.21, 126.56, 138.07, 112.18, 97.8, 119.37, 66.16, 140.94, 35.96, 191.28, 27.33, 243.06, 18.7, 287.64, 20.13, 313.53, 43.15, 349.48, 57.53, 379.69, 87.73, 399.82, 104.99, 425.71, 133.75, 415.64, 163.96, 415.64, 195.6, 427.15, 208.54, 424.27, 625.62]], "area": 196263.09590000001, "iscrowd": 0, "image_id": 198782, "bbox": [33.08, 18.7, 394.07, 608.36], "category_id": 1, "id": 461734}, {"segmentation": [[203.4, 151.61, 210.91, 154.62, 213.16, 162.12, 213.16, 165.87, 210.16, 170.38, 208.66, 173.38, 212.41, 180.89, 213.91, 190.64, 216.91, 204.9, 221.42, 207.91, 231.17, 205.65, 236.43, 204.15, 246.93, 201.9, 248.44, 202.65, 247.69, 204.9, 240.18, 206.4, 230.42, 208.66, 222.92, 209.41, 219.16, 211.66, 219.16, 238.68, 214.66, 271.7, 216.91, 295.72, 228.17, 306.98, 234.93, 313.73, 216.16, 312.23, 207.16, 307.73, 198.15, 306.23, 195.15, 294.22, 195.15, 284.46, 194.4, 239.43, 195.9, 213.16, 193.64, 210.16, 186.89, 209.41, 186.89, 198.9, 189.14, 187.64, 189.89, 179.38, 187.64, 169.63, 195.15, 164.37, 201.9, 153.87]], "area": 3703.9704, "iscrowd": 0, "image_id": 62060, "bbox": [186.89, 151.61, 61.55, 162.12], "category_id": 1, "id": 471034}, {"segmentation": [[336.05, 302.65, 330.3, 348.6, 340.83, 377.33, 340.83, 384.03, 352.32, 394.56, 366.68, 414.67, 640.0, 422.32, 634.76, 227.97, 608.91, 223.19, 569.65, 215.53, 577.31, 194.46, 579.23, 175.32, 577.31, 118.83, 571.57, 86.28, 565.82, 72.87, 546.67, 61.39, 528.48, 56.6, 488.27, 55.64, 471.04, 66.17, 453.81, 82.45, 444.23, 97.77, 441.36, 118.83, 439.45, 141.81, 440.4, 153.3, 444.23, 164.78, 453.81, 184.89, 457.64, 190.63, 459.55, 197.34, 453.81, 202.12, 441.36, 207.87, 416.47, 209.78, 381.04, 215.53, 364.77, 221.27, 350.41, 235.63, 343.71, 256.69, 331.26, 287.33, 331.26, 289.25]], "area": 79328.67304999998, "iscrowd": 0, "image_id": 381529, "bbox": [330.3, 55.64, 309.7, 366.68], "category_id": 1, "id": 472122}, {"segmentation": [[302.63, 183.54, 311.31, 192.22, 317.55, 203.07, 318.63, 209.86, 327.58, 225.32, 331.11, 230.2, 337.35, 241.87, 340.33, 244.04, 340.33, 237.8, 351.46, 235.9, 352.0, 232.91, 339.79, 210.4, 344.67, 202.8, 345.22, 198.73, 345.22, 190.87, 342.78, 187.88, 340.61, 181.64, 341.42, 171.34, 333.82, 167.81, 324.33, 165.64, 323.79, 157.5, 325.96, 149.91, 320.53, 142.31, 313.21, 142.58, 311.04, 143.4, 311.58, 147.74, 309.95, 150.18, 309.14, 158.86, 307.51, 167.0, 308.05, 170.25, 304.26, 174.32, 298.02, 178.66, 298.02, 181.37]], "area": 2342.1881000000008, "iscrowd": 0, "image_id": 546773, "bbox": [298.02, 142.31, 53.98, 101.73], "category_id": 1, "id": 500385}, {"segmentation": [[175.67, 147.33, 184.58, 157.51, 184.58, 177.87, 184.58, 195.68, 182.04, 210.95, 175.67, 226.22, 173.13, 240.21, 170.58, 260.57, 169.31, 280.93, 160.41, 289.83, 151.5, 296.2, 138.78, 303.83, 131.14, 306.37, 128.6, 298.74, 133.69, 277.11, 133.69, 258.02, 132.41, 240.21, 124.78, 230.03, 120.96, 214.76, 119.69, 195.68, 120.96, 180.41, 124.78, 165.14, 132.41, 153.69, 138.78, 144.78, 138.78, 132.06, 141.32, 121.88, 154.04, 114.25, 159.13, 111.7, 162.95, 121.88]], "area": 8325.79265, "iscrowd": 0, "image_id": 546773, "bbox": [119.69, 111.7, 64.89, 194.67], "category_id": 1, "id": 507811}, {"segmentation": [[362.43, 274.7, 378.25, 283.33, 394.07, 302.02, 371.06, 327.91, 384.0, 343.73, 363.87, 372.49, 381.12, 412.76, 384.0, 435.78, 284.76, 438.65, 283.33, 337.98, 277.57, 297.71], [302.02, 451.6, 310.65, 478.92, 294.83, 516.31, 299.15, 539.33, 346.61, 539.33, 362.43, 458.79], [309.21, 559.46, 307.78, 602.61, 346.61, 605.48, 346.61, 553.71]], "area": 20784.127700000005, "iscrowd": 0, "image_id": 547962, "bbox": [277.57, 274.7, 116.5, 330.78], "category_id": 1, "id": 514674}, {"segmentation": [[442.7, 167.54, 439.59, 148.39, 450.46, 143.74, 459.77, 148.91, 460.8, 156.15, 465.46, 165.47, 464.94, 171.68, 467.53, 195.99, 480.98, 219.79, 475.29, 224.97, 464.94, 207.89, 459.77, 199.61, 463.91, 217.21, 464.94, 249.8, 459.77, 254.46, 469.08, 272.05, 466.5, 286.02, 468.56, 295.07, 457.18, 299.21, 432.35, 301.8, 440.11, 288.86, 434.94, 253.16, 431.83, 231.43, 423.55, 224.71, 424.07, 186.42, 430.29, 172.64, 441.57, 165.12]], "area": 5157.4531, "iscrowd": 0, "image_id": 62060, "bbox": [423.55, 143.74, 57.43, 158.06], "category_id": 1, "id": 520713}, {"segmentation": [[571.49, 148.21, 567.72, 140.67, 576.02, 130.87, 582.8, 133.89, 582.8, 139.17, 585.82, 146.71, 590.34, 153.49, 595.62, 163.29, 596.37, 176.86, 595.62, 188.17, 595.62, 194.21, 592.6, 199.48, 588.84, 218.33, 593.36, 237.93, 593.36, 243.21, 592.6, 247.74, 585.07, 243.97, 583.56, 210.79, 578.28, 226.62, 579.03, 238.69, 581.3, 243.21, 571.49, 249.24, 570.74, 246.23, 569.23, 222.86, 560.94, 190.44, 560.94, 188.17, 560.94, 173.85, 563.2, 167.06, 563.95, 156.51, 566.22, 150.48, 567.72, 146.71]], "area": 2781.0686499999965, "iscrowd": 0, "image_id": 62060, "bbox": [560.94, 130.87, 35.43, 118.37], "category_id": 1, "id": 527285}, {"segmentation": [[167.26, 152.7, 167.26, 152.7, 176.81, 148.46, 189.53, 169.13, 199.6, 174.97, 199.6, 174.97, 213.38, 175.5, 214.97, 204.12, 211.26, 250.77, 189.53, 277.8, 179.99, 298.47, 179.99, 298.47, 195.36, 323.39, 200.66, 335.05, 198.54, 365.26, 205.96, 398.13, 200.13, 406.08, 174.16, 406.08, 178.4, 394.42, 176.28, 365.26, 175.22, 317.03, 175.22, 317.03, 175.22, 317.03, 170.98, 284.69, 167.26, 250.77, 168.32, 241.22, 158.78, 227.44, 149.77, 213.66, 158.25, 172.85, 165.14, 157.47]], "area": 8302.80265, "iscrowd": 0, "image_id": 547962, "bbox": [149.77, 148.46, 65.2, 257.62], "category_id": 1, "id": 562595}, {"segmentation": [[479.82, 54.4, 479.82, 42.11, 480.82, 30.33, 479.32, 19.79, 488.09, 14.78, 490.6, 7.76, 493.11, 0.0, 499.63, 1.49, 501.63, 8.01, 504.64, 16.28, 509.91, 18.79, 511.66, 24.31, 512.92, 33.33, 515.92, 40.61, 515.67, 46.12, 510.91, 57.91, 507.9, 66.18, 499.88, 65.43]], "area": 1658.33415, "iscrowd": 0, "image_id": 547962, "bbox": [479.32, 0.0, 36.6, 66.18], "category_id": 1, "id": 567877}, {"segmentation": [[242.1, 23.34, 243.67, 10.97, 248.32, 4.9, 252.36, 5.91, 259.04, 8.14, 258.63, 19.05, 262.27, 24.11, 242.25, 24.72]], "area": 286.82125000000025, "iscrowd": 0, "image_id": 547962, "bbox": [242.1, 4.9, 20.17, 19.82], "category_id": 1, "id": 571119}, {"segmentation": [[79.1, 435.78, 80.54, 360.99, 83.42, 314.97, 69.03, 274.7, 40.27, 261.75, 30.2, 238.74, 41.71, 174.02, 58.97, 151.01, 76.22, 139.51, 87.73, 116.49, 92.04, 83.42, 99.24, 73.35, 123.69, 74.79, 136.63, 84.85, 122.25, 132.31, 145.26, 197.03, 142.38, 244.49, 132.31, 270.38, 132.31, 345.17, 117.93, 430.02], [76.22, 448.72, 74.79, 458.79, 125.12, 470.29, 135.19, 463.1, 125.12, 453.03]], "area": 24085.37015, "iscrowd": 0, "image_id": 547962, "bbox": [30.2, 73.35, 115.06, 396.94], "category_id": 1, "id": 571225}, {"segmentation": [[418.52, 432.9, 418.52, 391.19, 402.7, 335.1, 418.52, 283.33, 396.94, 266.07, 409.89, 254.56, 448.72, 313.53, 559.46, 325.03, 578.16, 313.53, 582.47, 326.47, 549.39, 346.61, 547.96, 408.45, 545.08, 424.27], [451.6, 454.47, 463.1, 533.57, 522.07, 537.89, 520.63, 488.99, 530.7, 445.84], [468.85, 550.83, 470.29, 591.1, 455.91, 615.55, 509.12, 615.55, 533.57, 591.1, 532.13, 573.84, 520.63, 573.84, 517.75, 556.58]], "area": 25929.969100000006, "iscrowd": 0, "image_id": 547962, "bbox": [396.94, 254.56, 185.53, 360.99], "category_id": 1, "id": 571252}, {"segmentation": [[312.98, 136.38, 315.22, 119.32, 324.2, 102.27, 337.21, 97.78, 343.5, 100.47, 351.58, 108.1, 356.51, 122.91, 369.08, 136.38, 367.29, 136.83, 335.42, 128.3, 321.5, 132.79, 314.32, 140.42]], "area": 1204.9910999999995, "iscrowd": 0, "image_id": 547962, "bbox": [312.98, 97.78, 56.1, 42.64], "category_id": 1, "id": 571261}, {"segmentation": [[312.89, 51.89, 339.38, 53.96, 335.24, 72.18, 339.79, 84.18, 364.63, 101.98, 374.98, 136.75, 358.42, 137.17, 355.52, 117.71, 349.31, 106.53, 334.82, 99.08, 325.72, 104.88, 321.16, 115.23, 312.89, 125.16, 305.02, 121.44, 294.26, 112.33, 278.53, 104.88, 281.43, 94.12, 292.6, 90.39, 304.61, 89.56, 306.26, 84.6, 313.3, 78.39, 308.33, 65.14, 305.02, 55.21]], "area": 3157.075450000001, "iscrowd": 0, "image_id": 547962, "bbox": [278.53, 51.89, 96.45, 85.28], "category_id": 1, "id": 571266}, {"segmentation": [[349.23, 125.1, 328.69, 119.69, 316.8, 108.88, 304.9, 107.8, 299.5, 125.1, 304.9, 140.23, 298.42, 161.86, 304.9, 182.4, 322.2, 223.49, 331.93, 248.36, 327.61, 264.57, 348.15, 290.52, 384.91, 297.01, 405.46, 292.69, 462.76, 303.5, 472.49, 320.8, 485.47, 304.58, 499.52, 289.44, 516.82, 287.28, 538.45, 311.07, 562.23, 302.42, 558.99, 275.39, 537.37, 223.49, 518.98, 193.21, 502.77, 169.43, 473.57, 154.29, 436.81, 147.8, 402.21, 152.13, 369.78, 142.4, 377.35, 128.34, 375.18, 118.61, 365.45, 120.77]], "area": 33678.56895, "iscrowd": 0, "image_id": 502006, "bbox": [298.42, 107.8, 263.81, 213.0], "category_id": 23, "id": 587186}, {"segmentation": [[150.08, 155.81, 156.43, 157.22, 160.66, 156.52, 165.95, 153.7, 169.13, 151.58, 170.89, 149.11, 174.42, 149.46, 176.89, 150.52, 177.6, 156.52, 175.83, 164.63, 173.72, 167.81, 173.36, 174.51, 174.42, 179.45, 174.42, 181.22, 183.95, 184.04, 202.65, 186.16, 209.71, 186.16, 216.41, 188.63, 224.88, 193.92, 232.29, 201.68, 235.81, 215.79, 237.93, 222.5, 237.93, 228.85, 234.4, 231.32, 228.76, 230.97, 218.17, 230.97, 207.24, 230.97, 198.06, 235.91, 189.59, 242.61, 183.6, 245.08, 179.01, 242.61, 177.25, 235.91, 177.25, 227.44, 169.84, 224.26, 160.31, 221.79, 151.84, 222.5, 149.02, 223.56, 146.9, 226.03, 145.49, 232.38, 146.55, 237.32, 146.9, 243.67, 140.2, 242.96, 140.2, 234.85, 139.84, 223.56, 139.84, 212.27, 138.43, 205.21, 140.55, 193.57, 137.73, 184.39, 134.91, 177.34, 133.49, 163.22, 131.38, 155.81, 131.38, 150.87, 132.08, 147.7, 134.55, 146.29, 137.38, 146.29, 139.84, 148.05, 144.08, 150.52]], "area": 5660.788350000002, "iscrowd": 0, "image_id": 502006, "bbox": [131.38, 146.29, 106.55, 98.79], "category_id": 23, "id": 587508}, {"segmentation": [[2.88, 233.63, 46.05, 239.39, 93.07, 224.03, 109.38, 198.13, 149.68, 177.02, 176.54, 166.47, 172.7, 150.16, 173.66, 130.97, 197.65, 99.3, 243.7, 95.47, 259.05, 116.57, 318.54, 106.98, 330.05, 99.3, 351.16, 99.3, 341.57, 80.11, 333.89, 67.64, 336.77, 45.57, 375.15, 24.47, 399.14, 28.3, 417.36, 1.44, 540.18, 0.0, 544.01, 16.79, 556.49, 7.2, 571.84, 0.0, 599.66, 27.34, 597.74, 52.29, 581.43, 52.29, 575.68, 55.17, 556.49, 132.89, 556.49, 133.84, 549.77, 194.29, 497.0, 287.36, 475.89, 298.87, 422.16, 290.24, 394.34, 289.28, 362.68, 336.29, 353.08, 362.2, 237.95, 380.43, 177.5, 371.79, 135.28, 367.95, 101.7, 351.64, 58.53, 349.72, 26.86, 348.76, 0.0, 336.29, 0.96, 236.51]], "area": 131297.32590000005, "iscrowd": 0, "image_id": 183949, "bbox": [0.0, 0.0, 599.66, 380.43], "category_id": 23, "id": 588074}, {"segmentation": [[477.43, 227.28, 480.49, 230.34, 484.06, 230.63, 488.57, 230.05, 491.84, 229.1, 495.48, 228.09, 497.52, 226.63, 499.27, 225.1, 500.36, 221.97, 499.27, 220.08, 496.57, 218.41, 494.17, 217.1, 491.99, 217.17, 488.71, 217.1, 485.22, 217.1, 483.04, 217.17, 481.87, 217.39, 481.36, 218.04, 481.44, 218.77, 482.31, 220.08, 482.67, 220.81, 482.89, 221.39, 482.89, 221.9, 482.53, 222.7, 482.45, 222.85, 481.87, 223.21, 481.29, 223.21, 480.64, 223.06, 480.42, 224.23, 479.76, 224.52, 478.89, 224.52, 478.6, 225.32, 477.21, 225.47, 476.41, 225.54, 476.49, 227.21, 476.63, 227.58]], "area": 225.02245, "iscrowd": 0, "image_id": 62060, "bbox": [476.41, 217.1, 23.95, 13.53], "category_id": 34, "id": 603491}, {"segmentation": [[215.73, 198.47, 378.61, 193.08, 369.98, 231.91, 361.35, 249.17, 380.76, 309.57, 398.02, 399.1, 381.84, 419.6, 367.82, 441.17, 278.29, 455.19, 261.03, 432.54, 280.45, 395.87, 297.71, 373.21, 313.89, 330.07, 326.83, 281.53, 324.67, 255.64, 323.6, 247.01, 282.61, 267.51, 268.58, 277.21, 221.12, 263.19, 213.57, 196.31], [375.37, 442.25, 276.13, 458.43, 263.19, 473.53, 640.0, 472.45, 639.64, 412.04, 614.83, 341.93, 554.43, 196.31, 481.08, 189.84, 494.02, 229.75, 532.85, 238.38, 555.51, 261.03, 583.55, 309.57, 602.97, 358.11, 604.04, 390.47, 606.2, 431.46, 494.02, 445.48, 463.82, 447.64, 455.19, 436.85, 441.17, 445.48, 422.83, 456.27, 406.65, 459.51, 385.08, 448.72]], "area": 44282.7932, "iscrowd": 0, "image_id": 26768, "bbox": [213.57, 189.84, 426.43, 283.69], "category_id": 73, "id": 1098007}, {"segmentation": [[101.64, 39.47, 98.4, 55.69, 100.56, 268.69, 102.72, 274.1, 71.36, 324.92, 44.33, 416.83, 55.14, 425.48, 264.91, 428.72, 371.95, 422.23, 406.56, 411.42, 512.52, 410.34, 464.94, 311.94, 449.81, 315.19, 411.96, 330.33, 308.16, 338.98, 232.47, 329.24, 171.92, 341.14, 155.7, 330.33, 147.05, 313.03, 155.7, 293.56, 150.3, 258.96, 151.38, 237.34, 154.62, 222.2, 139.48, 198.41, 141.65, 184.36, 161.11, 182.19, 174.08, 196.25, 224.9, 188.68, 280.05, 204.9, 318.97, 171.38, 383.85, 156.24, 442.24, 163.81, 437.91, 47.03, 420.61, 41.63, 248.69, 30.82, 108.13, 28.65]], "area": 97795.50315000002, "iscrowd": 0, "image_id": 452696, "bbox": [44.33, 28.65, 468.19, 400.07], "category_id": 73, "id": 1102541}, {"segmentation": [[111.51, 166.43, 111.99, 170.29, 145.78, 174.88, 161.71, 173.19, 163.4, 169.57, 144.58, 168.61]], "area": 252.30949999999942, "iscrowd": 0, "image_id": 26768, "bbox": [111.51, 166.43, 51.89, 8.45], "category_id": 84, "id": 1139153}, {"segmentation": [[547.85, 130.28, 530.69, 137.77, 492.61, 139.01, 491.05, 142.76, 492.3, 146.82, 494.8, 158.99, 496.67, 166.16, 495.73, 173.34, 496.36, 179.58, 497.92, 179.58, 513.21, 173.34, 514.46, 169.6, 519.77, 160.55]], "area": 1181.6863999999996, "iscrowd": 0, "image_id": 497109, "bbox": [491.05, 130.28, 56.8, 49.3], "category_id": 84, "id": 1140694}, {"segmentation": [[115.77, 146.19, 159.58, 147.87, 160.42, 155.45, 158.73, 155.45, 114.09, 156.29, 114.09, 156.29]], "area": 397.8853999999995, "iscrowd": 0, "image_id": 26768, "bbox": [114.09, 146.19, 46.33, 10.1], "category_id": 84, "id": 1140863}, {"segmentation": [[73.19, 143.59, 69.38, 143.49, 68.11, 116.71, 72.45, 116.6, 73.29, 143.59]], "area": 110.91090000000025, "iscrowd": 0, "image_id": 497109, "bbox": [68.11, 116.6, 5.18, 26.99], "category_id": 84, "id": 1141056}, {"segmentation": [[80.53, 115.75, 74.25, 115.4, 73.56, 144.69, 79.83, 143.64]], "area": 179.15899999999985, "iscrowd": 0, "image_id": 497109, "bbox": [73.56, 115.4, 6.97, 29.29], "category_id": 84, "id": 1142702}, {"segmentation": [[32.86, 183.67, 42.59, 184.4, 43.8, 218.44, 44.53, 221.12, 33.35, 224.28]], "area": 394.9156000000001, "iscrowd": 0, "image_id": 497109, "bbox": [32.86, 183.67, 11.67, 40.61], "category_id": 84, "id": 1143045}, {"segmentation": [[165.1, 145.83, 120.26, 141.18, 119.71, 146.38, 162.64, 151.3]], "area": 241.32789999999974, "iscrowd": 0, "image_id": 26768, "bbox": [119.71, 141.18, 45.39, 10.12], "category_id": 84, "id": 1145246}, {"segmentation": [[100.62, 62.78, 126.82, 63.51, 127.06, 90.44, 101.34, 90.44]], "area": 708.4029999999998, "iscrowd": 0, "image_id": 497109, "bbox": [100.62, 62.78, 26.44, 27.66], "category_id": 84, "id": 1146123}, {"segmentation": [[61.39, 143.57, 59.12, 143.57, 55.83, 133.28, 56.24, 117.01, 60.36, 117.01]], "area": 113.73279999999997, "iscrowd": 0, "image_id": 497109, "bbox": [55.83, 117.01, 5.56, 26.56], "category_id": 84, "id": 1148398}, {"segmentation": [[87.16, 207.17, 86.59, 217.67, 93.12, 229.22, 95.37, 238.02, 89.38, 245.89, 69.7, 266.5, 66.52, 271.37, 58.46, 271.75, 52.66, 270.44, 45.91, 267.81, 38.42, 263.13, 25.11, 243.27, 25.11, 238.77, 26.8, 231.47, 30.74, 213.48, 34.11, 208.05, 34.3, 197.18, 42.54, 179.76, 43.85, 173.2, 47.6, 166.64, 53.22, 161.96, 58.28, 158.21, 66.15, 155.03, 73.64, 154.84, 74.95, 161.02, 72.7, 168.7, 76.64, 191.0, 84.69, 206.73]], "area": 5191.849050000001, "iscrowd": 0, "image_id": 547962, "bbox": [25.11, 154.84, 70.26, 116.91], "category_id": 27, "id": 1165807}, {"segmentation": [[284.13, 255.9, 283.65, 264.25, 282.07, 268.61, 277.23, 271.03, 272.88, 272.24, 268.03, 272.0, 264.4, 270.06, 262.95, 268.13, 262.95, 263.53, 263.19, 256.51, 265.13, 251.91, 266.58, 249.25, 267.55, 247.31, 271.91, 244.89, 278.93, 243.19, 280.26, 240.53, 281.71, 241.26, 283.28, 243.32, 283.77, 248.28, 283.28, 250.7, 283.65, 255.78]], "area": 515.1827499999996, "iscrowd": 0, "image_id": 437373, "bbox": [262.95, 240.53, 21.18, 31.71], "category_id": 31, "id": 1175932}, {"segmentation": [[211.9, 354.5, 238.76, 371.99, 257.49, 376.98, 281.85, 380.11, 294.35, 367.61, 305.59, 339.51, 311.21, 311.4, 303.09, 298.28, 296.84, 299.53, 298.09, 289.54, 306.84, 244.57, 304.34, 238.32, 298.72, 249.56, 290.6, 290.79, 273.73, 290.16, 268.11, 290.79, 261.24, 287.04, 249.37, 290.79, 241.88, 297.66, 230.01, 309.53, 226.26, 323.27, 221.89, 335.13]], "area": 6837.335499999999, "iscrowd": 0, "image_id": 504726, "bbox": [211.9, 238.32, 99.31, 141.79], "category_id": 31, "id": 1177690}, {"segmentation": [[339.84, 381.9, 325.36, 389.98, 317.28, 390.31, 304.49, 386.95, 304.83, 383.92, 305.16, 377.86, 310.55, 370.11, 315.26, 367.76, 325.02, 368.77, 332.43, 371.12, 340.17, 372.47, 339.16, 375.5]], "area": 608.1125999999999, "iscrowd": 0, "image_id": 360494, "bbox": [304.49, 367.76, 35.68, 22.55], "category_id": 31, "id": 1179539}, {"segmentation": [[222.48, 268.6, 225.7, 271.39, 228.49, 270.96, 229.13, 267.74, 228.49, 263.88, 228.7, 260.01, 227.63, 255.93, 227.63, 252.93, 231.92, 254.0, 235.57, 261.52, 237.94, 270.96, 237.08, 279.55, 236.22, 287.07, 225.48, 292.86, 217.11, 289.43, 212.6, 282.77, 211.74, 276.33, 213.46, 270.53, 216.25, 263.45, 217.75, 257.44, 219.47, 252.71, 222.05, 249.71, 223.55, 253.57]], "area": 704.9926500000003, "iscrowd": 0, "image_id": 437373, "bbox": [211.74, 249.71, 26.2, 43.15], "category_id": 31, "id": 1180629}, {"segmentation": [[293.63, 263.08, 295.49, 270.08, 295.03, 274.75, 291.99, 276.62, 287.79, 280.12, 284.99, 277.78, 284.99, 272.65, 285.23, 263.08, 285.93, 252.58, 287.56, 237.18, 288.73, 228.55, 294.33, 225.52, 294.79, 227.15, 292.46, 233.45, 294.09, 253.52]], "area": 384.41979999999876, "iscrowd": 0, "image_id": 437373, "bbox": [284.99, 225.52, 10.5, 54.6], "category_id": 31, "id": 1181485}, {"segmentation": [[199.33, 90.36, 208.19, 148.4, 175.73, 177.91, 167.86, 146.43, 143.27, 146.43, 131.46, 186.76, 124.58, 200.53, 103.92, 218.24, 99.0, 218.24, 80.31, 220.21, 81.3, 212.34, 50.8, 196.6, 34.08, 194.63, 35.06, 172.99, 96.05, 31.35, 171.79, 43.15, 212.12, 59.87, 229.83, 74.63]], "area": 21219.820949999998, "iscrowd": 0, "image_id": 504726, "bbox": [34.08, 31.35, 195.75, 188.86], "category_id": 33, "id": 1186773}, {"segmentation": [[354.78, 36.07, 361.66, 36.07, 374.81, 62.99, 381.07, 67.38, 392.96, 95.55, 392.96, 106.81, 389.83, 129.35, 391.09, 140.62, 375.43, 140.62, 362.29, 94.29, 346.64, 87.41, 341.63, 82.4, 344.76, 60.49, 346.64, 54.85, 364.79, 56.11, 350.39, 39.83]], "area": 2701.1587499999987, "iscrowd": 0, "image_id": 547962, "bbox": [341.63, 36.07, 51.33, 104.55], "category_id": 1, "id": 1213214}, {"segmentation": [[570.53, 170.89, 565.07, 160.3, 563.79, 158.69, 552.87, 158.69, 546.13, 156.77, 543.56, 152.59, 543.56, 83.88, 552.55, 88.05, 558.97, 98.01, 565.07, 108.6, 574.71, 119.52, 576.95, 119.52, 579.2, 121.77, 580.49, 124.02, 583.06, 126.58, 580.49, 131.4, 580.49, 136.22, 577.28, 137.5, 576.95, 141.03, 579.52, 145.21, 576.95, 154.52, 571.5, 157.41]], "area": 2025.6682000000044, "iscrowd": 0, "image_id": 547962, "bbox": [543.56, 83.88, 39.5, 87.01], "category_id": 1, "id": 1230111}, {"segmentation": [[541.06, 405.69, 535.5, 404.72, 529.45, 402.55, 525.1, 399.64, 526.79, 392.14, 525.58, 391.42, 524.13, 391.42, 523.89, 391.42, 521.71, 387.55, 521.23, 386.1, 522.68, 381.02, 527.03, 374.49, 530.42, 369.89, 532.35, 369.16, 536.95, 368.44, 542.03, 368.44, 542.76, 368.44, 543.48, 368.44, 544.21, 368.44, 544.45, 367.95, 542.27, 364.81, 542.03, 361.66, 542.27, 356.34, 545.42, 352.23, 547.59, 351.51, 549.53, 351.26, 553.16, 352.23, 553.4, 352.47, 555.33, 353.44, 556.79, 354.89, 558.48, 356.83, 558.72, 357.55, 558.72, 357.55, 559.45, 359.0, 559.45, 360.21, 558.72, 366.26, 557.51, 369.16, 564.28, 369.65, 566.7, 370.86, 569.61, 372.07, 572.03, 374.0, 573.48, 375.94, 576.38, 380.05, 581.7, 385.85, 581.7, 386.1, 584.85, 393.35, 584.85, 393.6, 580.01, 396.26, 574.44, 395.05, 575.9, 391.18, 575.9, 391.18, 573.48, 388.52, 572.75, 385.85, 567.67, 385.85, 567.43, 387.55, 568.15, 392.87, 568.88, 396.26, 569.12, 399.16, 568.4, 402.3, 563.56, 404.48, 561.38, 402.79, 559.69, 404.96, 558.48, 407.87, 557.51, 410.53, 557.27, 412.95, 556.3, 416.09, 556.3, 417.06, 555.09, 418.51, 551.46, 418.75, 548.08, 417.3, 548.08, 410.04, 546.14, 410.04, 543.24, 410.77, 542.27, 408.11, 540.82, 405.21, 536.95, 404.96]], "area": 2122.9374000000003, "iscrowd": 0, "image_id": 360494, "bbox": [521.23, 351.26, 63.62, 67.49], "category_id": 1, "id": 1236474}, {"segmentation": [[436.13, 365.04, 430.95, 359.24, 423.93, 358.63, 421.49, 361.99, 409.89, 360.77, 410.2, 358.02, 417.52, 350.7, 420.27, 330.25, 430.95, 333.61, 437.05, 329.95, 436.44, 324.15, 437.96, 319.27, 441.62, 317.74, 444.07, 325.98, 444.07, 332.69, 452.91, 335.75, 454.13, 350.39, 447.42, 356.19, 441.62, 365.04]], "area": 1105.6473000000012, "iscrowd": 0, "image_id": 360494, "bbox": [409.89, 317.74, 44.24, 47.3], "category_id": 1, "id": 1255884}, {"segmentation": [[214.16, 225.81, 211.46, 220.42, 211.76, 216.53, 229.43, 214.73, 235.42, 222.82, 243.8, 237.79, 242.9, 245.28, 244.7, 257.86, 242.61, 262.35, 240.21, 281.51, 239.01, 291.99, 243.8, 324.04, 243.5, 328.83, 239.61, 332.42, 236.02, 330.32, 230.33, 325.53, 226.43, 317.45, 226.14, 316.25, 225.24, 319.24, 225.24, 321.04, 227.03, 331.82, 227.33, 340.81, 225.54, 344.1, 219.85, 350.39, 215.95, 352.48, 214.76, 352.78, 206.07, 352.78, 207.87, 346.5, 211.16, 343.8, 213.26, 340.51, 215.65, 337.81, 214.46, 324.34, 212.96, 321.04, 212.66, 318.05, 212.66, 314.45, 212.06, 311.16, 210.26, 306.37, 209.37, 304.57, 206.94, 296.49, 203.76, 287.65, 199.87, 255.47, 201.99, 239.55, 205.18, 229.65, 209.77, 223.28]], "area": 4258.8323, "iscrowd": 0, "image_id": 437373, "bbox": [199.87, 214.73, 44.83, 138.05], "category_id": 1, "id": 1272308}, {"segmentation": [[212.85, 347.24, 216.26, 345.67, 219.41, 337.54, 223.34, 335.18, 229.37, 337.28, 234.88, 337.8, 237.24, 337.54, 240.13, 335.7, 245.37, 333.08, 250.88, 333.87, 251.41, 340.43, 250.88, 344.1, 249.57, 349.34, 220.98, 355.64, 217.83, 355.64, 217.57, 355.38, 216.52, 354.06, 211.27, 350.39]], "area": 591.7531499999994, "iscrowd": 0, "image_id": 360494, "bbox": [211.27, 333.08, 40.14, 22.56], "category_id": 1, "id": 1277746}, {"segmentation": [[300.9, 218.2, 296.03, 209.1, 299.27, 203.91, 309.01, 202.61, 311.94, 205.53, 317.78, 210.4, 322.33, 213.0, 324.27, 222.09, 324.27, 236.38, 327.52, 247.42, 328.82, 257.48, 324.27, 278.91, 324.6, 290.28, 327.2, 303.27, 330.44, 324.7, 326.22, 326.97, 322.65, 324.37, 317.78, 326.97, 310.96, 329.24, 308.36, 326.32, 309.66, 320.48, 310.64, 314.96, 307.07, 302.29, 305.77, 280.54, 303.82, 269.17, 303.49, 263.65, 299.6, 250.99, 300.25, 240.27, 300.9, 229.56, 300.9, 223.39, 299.92, 218.84]], "area": 2694.4923500000004, "iscrowd": 0, "image_id": 437373, "bbox": [296.03, 202.61, 34.41, 126.63], "category_id": 1, "id": 1284030}, {"segmentation": [[401.48, 225.95, 400.41, 224.45, 401.7, 215.43, 401.7, 211.14, 402.13, 209.2, 402.77, 205.98, 402.56, 203.19, 401.05, 199.54, 400.41, 196.75, 398.69, 194.82, 396.97, 195.46, 395.47, 198.04, 393.97, 201.04, 393.32, 205.12, 393.75, 208.56, 394.83, 212.21, 395.26, 215.86, 394.61, 227.24, 396.54, 227.02, 399.34, 227.02]], "area": 216.20385000000002, "iscrowd": 0, "image_id": 437373, "bbox": [393.32, 194.82, 9.45, 32.42], "category_id": 1, "id": 1293690}, {"segmentation": [[515.67, 262.72, 516.17, 255.82, 512.22, 240.03, 505.81, 233.13, 508.77, 220.8, 510.25, 210.93, 515.18, 205.01, 517.65, 197.12, 517.15, 193.17, 519.62, 187.75, 525.54, 188.24, 529.98, 191.69, 529.98, 197.12, 538.86, 204.02, 538.86, 213.89, 532.94, 223.75, 537.87, 238.55, 533.92, 248.42, 533.43, 261.74, 530.96, 267.66, 524.55, 267.91, 516.66, 263.22]], "area": 1711.185850000002, "iscrowd": 0, "image_id": 437373, "bbox": [505.81, 187.75, 33.05, 80.16], "category_id": 1, "id": 1294248}, {"segmentation": [[378.92, 228.6, 381.07, 228.82, 381.71, 227.74, 384.29, 228.17, 385.15, 223.45, 385.36, 218.51, 386.87, 212.5, 386.87, 206.92, 384.5, 201.76, 382.57, 198.76, 382.57, 197.68, 381.28, 196.4, 379.14, 196.4, 377.85, 198.76, 377.85, 200.26, 376.77, 202.19, 377.42, 207.99, 376.99, 215.5, 377.2, 217.22, 379.14, 219.8, 378.28, 224.52, 379.35, 227.96]], "area": 238.96009999999995, "iscrowd": 0, "image_id": 437373, "bbox": [376.77, 196.4, 10.1, 32.42], "category_id": 1, "id": 1302969}, {"segmentation": [[533.31, 256.66, 539.33, 258.43, 540.04, 252.05, 540.39, 238.94, 541.1, 233.62, 543.23, 230.43, 546.07, 230.07, 546.07, 226.88, 546.07, 220.15, 546.07, 213.77, 546.07, 211.29, 545.0, 208.1, 542.88, 201.36, 541.46, 200.3, 540.04, 195.69, 538.62, 191.44, 534.37, 191.44, 530.47, 193.57, 529.05, 195.69, 533.31, 200.3, 537.2, 205.26, 535.79, 211.64, 533.31, 219.8, 534.72, 227.24, 537.56, 232.91, 537.91, 240.71, 534.37, 247.44, 534.72, 251.34]], "area": 513.0409500000021, "iscrowd": 0, "image_id": 437373, "bbox": [529.05, 191.44, 17.02, 66.99], "category_id": 1, "id": 1307881}, {"segmentation": [[587.19, 254.54, 585.13, 287.52, 580.49, 293.71, 566.06, 293.71, 572.76, 284.43, 577.91, 280.31, 577.91, 258.66, 575.34, 240.11, 573.79, 228.25, 574.31, 214.85, 576.88, 207.64, 577.91, 203.0, 577.4, 196.82, 575.85, 189.6, 584.1, 184.45, 589.25, 188.57, 594.92, 196.82, 601.11, 204.55, 604.71, 213.31, 607.81, 225.16, 604.2, 241.65, 601.11, 250.93, 603.17, 266.39, 611.41, 281.34, 616.57, 289.58, 599.56, 300.41, 599.04, 288.04, 599.04, 278.76, 592.86, 264.85]], "area": 2683.9538000000025, "iscrowd": 0, "image_id": 437373, "bbox": [566.06, 184.45, 50.51, 115.96], "category_id": 1, "id": 1310380}, {"segmentation": [[483.1, 158.77, 500.0, 157.69, 500.0, 145.92, 489.7, 145.92, 479.13, 147.36, 472.41, 148.68, 479.85, 151.2, 481.29, 157.21]], "area": 250.0024999999999, "iscrowd": 0, "image_id": 202652, "bbox": [472.41, 145.92, 27.59, 12.85], "category_id": 9, "id": 1375271}, {"segmentation": [[480.62, 215.56, 480.71, 219.2, 462.73, 217.64, 461.87, 220.01, 450.93, 220.22, 450.5, 194.68, 450.86, 180.98, 464.9, 176.33, 482.96, 176.66, 480.98, 213.35]], "area": 1292.9574999999995, "iscrowd": 0, "image_id": 419281, "bbox": [450.5, 176.33, 32.46, 43.89], "category_id": 9, "id": 1375293}, {"segmentation": [[393.9, 142.96, 410.31, 142.03, 413.83, 148.82, 415.7, 170.39, 413.83, 175.78, 412.42, 185.16, 408.67, 186.1, 408.67, 176.72, 406.56, 172.27, 405.15, 169.22, 401.87, 169.45, 401.4, 176.02, 399.06, 175.78, 397.89, 177.89, 398.83, 151.64]], "area": 560.8958499999999, "iscrowd": 0, "image_id": 82933, "bbox": [393.9, 142.03, 21.8, 44.07], "category_id": 21, "id": 1407368}, {"segmentation": [[429.19, 161.47, 430.82, 170.74, 428.64, 170.74, 426.82, 169.1, 425.91, 164.92, 424.1, 168.92, 422.64, 170.01, 420.46, 166.74, 420.64, 163.65, 423.0, 160.92, 421.19, 158.19, 419.19, 162.56, 417.0, 167.1, 415.73, 166.19, 413.55, 154.19, 417.0, 148.01, 421.37, 143.28, 432.82, 139.65, 440.82, 139.65, 446.82, 138.92, 449.92, 139.28, 452.28, 142.55, 451.37, 143.28, 440.1, 146.56, 438.1, 146.56, 435.19, 146.19, 433.73, 147.65, 430.82, 148.37, 429.91, 149.28, 429.0, 152.37, 424.64, 154.19, 424.82, 157.28, 426.64, 159.1, 427.91, 160.19], [443.01, 161.47, 441.19, 159.47, 437.73, 159.83, 437.91, 163.47, 433.55, 171.47, 435.37, 172.92, 439.01, 169.28, 441.19, 163.28]], "area": 496.4401999999996, "iscrowd": 0, "image_id": 82933, "bbox": [413.55, 138.92, 38.73, 34.0], "category_id": 21, "id": 1407699}, {"segmentation": [[639.07, 151.72, 635.6, 149.71, 616.42, 150.44, 613.68, 150.62, 611.49, 151.72, 609.11, 152.09, 605.09, 150.99, 599.98, 153.0, 601.8, 161.4, 604.18, 161.4, 605.82, 160.85, 608.02, 164.32, 608.56, 166.15, 606.37, 169.8, 607.47, 171.99, 609.11, 171.99, 612.58, 165.78, 614.04, 164.14, 615.5, 164.51, 616.78, 170.17, 618.79, 172.54, 619.52, 171.63, 619.52, 168.34, 618.61, 162.86, 625.91, 162.86, 629.2, 162.86, 635.05, 163.41, 635.6, 163.41, 635.78, 167.25, 634.13, 171.26, 635.6, 171.63, 637.24, 170.72, 637.97, 166.88, 639.43, 164.32, 640.0, 160.12, 640.0, 158.11, 639.98, 153.91]], "area": 558.9824000000003, "iscrowd": 0, "image_id": 82933, "bbox": [599.98, 149.71, 40.02, 22.83], "category_id": 21, "id": 1408655}, {"segmentation": [[588.28, 147.29, 598.39, 147.12, 601.09, 147.63, 602.94, 148.97, 603.44, 151.33, 600.07, 153.35, 600.58, 160.26, 599.4, 162.79, 601.76, 164.3, 603.78, 169.02, 605.47, 171.88, 603.28, 172.56, 599.06, 166.83, 597.89, 167.84, 597.38, 169.19, 594.35, 167.5, 590.47, 163.29, 589.63, 157.9, 589.13, 151.16], [589.8, 172.89, 589.97, 176.6, 593.67, 177.11, 593.84, 175.93]], "area": 253.03525000000076, "iscrowd": 0, "image_id": 82933, "bbox": [588.28, 147.12, 17.19, 29.99], "category_id": 21, "id": 1408723}, {"segmentation": [[542.1, 190.51, 543.73, 192.88, 559.18, 194.51, 570.46, 193.78, 575.55, 194.15, 575.18, 190.88, 567.37, 183.24, 563.0, 183.42, 553.0, 183.79, 545.73, 186.33, 544.64, 186.51]], "area": 285.51739999999955, "iscrowd": 0, "image_id": 437373, "bbox": [542.1, 183.24, 33.45, 11.27], "category_id": 28, "id": 1424099}, {"segmentation": [[218.61, 288.84, 232.99, 189.6, 303.46, 146.46, 335.1, 129.2, 430.02, 140.7, 434.34, 169.47, 408.45, 196.79, 389.75, 209.74, 384.0, 231.31, 388.31, 247.13, 378.25, 260.07, 339.42, 288.84, 312.09, 296.03, 306.34, 297.47]], "area": 24283.2045, "iscrowd": 0, "image_id": 547962, "bbox": [218.61, 129.2, 215.73, 168.27], "category_id": 28, "id": 1424192}, {"segmentation": [[459.62, 418.36, 462.5, 398.21, 500.89, 391.5, 497.05, 421.24, 473.06, 422.2], [526.79, 391.5, 620.83, 374.22, 640.0, 377.1, 638.1, 422.2, 527.75, 422.2]], "area": 5525.866949999998, "iscrowd": 0, "image_id": 272111, "bbox": [459.62, 374.22, 180.38, 47.98], "category_id": 28, "id": 1424362}, {"segmentation": [[58.23, 303.57, 59.65, 301.24, 84.88, 288.3, 107.12, 279.9, 123.42, 276.28, 143.21, 276.28, 163.0, 277.31, 180.33, 280.54, 194.68, 284.68, 215.51, 295.81, 223.01, 301.63, 212.53, 302.27, 204.25, 304.6, 179.03, 304.47, 154.07, 305.25, 142.69, 308.09, 140.62, 309.39, 135.58, 308.22, 120.83, 307.96, 103.11, 309.0, 83.32, 311.2, 77.76, 312.75, 74.01, 308.35, 67.41, 306.02, 62.89, 304.6, 57.97, 304.47]], "area": 3686.739950000002, "iscrowd": 0, "image_id": 360494, "bbox": [57.97, 276.28, 165.04, 36.47], "category_id": 28, "id": 1425408}, {"segmentation": [[451.6, 311.85, 388.31, 215.49, 444.4, 150.77, 470.29, 149.33, 569.53, 155.09, 634.25, 251.45, 576.72, 314.73]], "area": 29755.1758, "iscrowd": 0, "image_id": 547962, "bbox": [388.31, 149.33, 245.94, 165.4], "category_id": 28, "id": 1425974}, {"segmentation": [[253.72, 197.72, 260.59, 197.25, 264.18, 195.06, 265.59, 194.28, 264.46, 192.57, 256.96, 188.19, 253.53, 186.79, 245.72, 186.16, 233.38, 185.85, 227.29, 185.85, 216.98, 189.13, 213.55, 189.91, 210.27, 191.47, 206.99, 192.88, 206.05, 193.82, 211.36, 193.5, 215.11, 192.72, 217.61, 191.94, 220.73, 191.16, 222.92, 190.54, 225.1, 189.75, 226.35, 189.44, 228.23, 190.69, 232.29, 192.1, 236.04, 193.03, 240.41, 194.28, 244.47, 194.91, 246.66, 196.16, 250.56, 197.41]], "area": 355.0232000000001, "iscrowd": 0, "image_id": 437373, "bbox": [206.05, 185.85, 59.54, 11.87], "category_id": 28, "id": 1426099}, {"segmentation": [[58.44, 300.74, 48.84, 302.91, 39.54, 301.98, 23.75, 301.36, 17.55, 300.12, 16.93, 297.64, 23.13, 292.68, 36.76, 285.87, 53.17, 280.91, 61.54, 279.98, 67.11, 277.82, 71.76, 280.91, 84.77, 282.77, 90.65, 285.56, 64.32, 298.26]], "area": 1009.85805, "iscrowd": 0, "image_id": 360494, "bbox": [16.93, 277.82, 73.72, 25.09], "category_id": 28, "id": 1426731}, {"segmentation": [[173.6, 278.62, 150.56, 275.33, 147.63, 271.3, 167.8, 262.91, 189.33, 257.77, 199.21, 259.6, 205.06, 262.89, 217.14, 266.55, 220.43, 269.11, 221.89, 272.4, 219.33, 274.96, 198.11, 275.33, 192.26, 278.99, 190.43, 282.65, 187.87, 281.55, 185.31, 275.69, 173.24, 277.52]], "area": 979.7618999999987, "iscrowd": 0, "image_id": 360494, "bbox": [147.63, 257.77, 74.26, 24.88], "category_id": 28, "id": 1427642}, {"segmentation": [[245.5, 185.39, 192.64, 170.52, 188.09, 158.55, 167.85, 135.83, 185.61, 125.51, 217.83, 116.83, 240.13, 112.7, 295.06, 126.75, 307.04, 143.27]], "area": 6269.359200000001, "iscrowd": 0, "image_id": 547962, "bbox": [167.85, 112.7, 139.19, 72.69], "category_id": 28, "id": 1427893}, {"segmentation": [[411.33, 140.94, 399.82, 120.81, 395.51, 112.18, 389.75, 104.99, 404.13, 93.48, 434.34, 77.66, 458.79, 73.35, 497.62, 87.73, 523.51, 92.04, 526.38, 116.49, 543.64, 152.45, 522.07, 152.45, 496.18, 151.01, 468.85, 151.01, 455.91, 151.01, 435.78, 158.2, 434.34, 153.89, 428.58, 142.38]], "area": 8632.6694, "iscrowd": 0, "image_id": 547962, "bbox": [389.75, 73.35, 153.89, 84.85], "category_id": 28, "id": 1427986}, {"segmentation": [[208.83, 70.62, 227.57, 63.69, 254.73, 62.19, 277.59, 62.0, 293.14, 68.75, 307.38, 78.3, 307.38, 79.05, 295.57, 83.73, 278.53, 88.23, 264.47, 95.73, 256.79, 95.16, 242.93, 87.67, 199.65, 85.8, 181.66, 86.54, 179.6, 85.42, 200.21, 75.49]], "area": 2461.8756, "iscrowd": 0, "image_id": 547962, "bbox": [179.6, 62.0, 127.78, 33.73], "category_id": 28, "id": 1428253}, {"segmentation": [[427.61, 62.8, 447.95, 60.26, 460.9, 56.56, 469.92, 56.56, 478.47, 57.02, 480.79, 56.1, 484.02, 57.95, 500.21, 60.72, 517.08, 70.2, 522.4, 74.59, 523.09, 92.63, 500.9, 88.7, 480.09, 82.92, 458.13, 74.59, 434.54, 80.37, 435.24, 77.83]], "area": 2009.0674000000006, "iscrowd": 0, "image_id": 547962, "bbox": [427.61, 56.1, 95.48, 36.53], "category_id": 28, "id": 1428361}, {"segmentation": [[219.71, 269.18, 221.91, 273.02, 220.81, 276.3, 244.38, 276.3, 251.78, 276.03, 282.74, 275.48, 295.08, 271.37, 295.08, 268.63, 288.5, 265.62, 262.74, 255.2, 248.49, 259.59, 223.83, 266.71]], "area": 1034.810050000001, "iscrowd": 0, "image_id": 360494, "bbox": [219.71, 255.2, 75.37, 21.1], "category_id": 28, "id": 1428442}, {"segmentation": [[316.01, 260.49, 332.17, 254.59, 336.39, 254.73, 359.29, 263.02, 373.48, 268.08, 371.94, 269.35, 364.35, 270.19, 344.96, 269.63, 340.6, 273.28, 336.53, 276.93, 328.94, 273.56, 323.74, 269.77, 292.97, 269.91, 295.08, 268.08, 304.49, 265.13]], "area": 766.0885000000007, "iscrowd": 0, "image_id": 360494, "bbox": [292.97, 254.59, 80.51, 22.34], "category_id": 28, "id": 1428748}, {"segmentation": [[226.43, 40.56, 242.95, 20.73, 292.1, 15.78, 299.53, 15.36, 332.16, 27.76, 347.85, 33.12, 364.37, 55.43, 354.87, 57.49, 296.23, 52.95, 294.16, 71.12, 289.2, 70.3, 292.92, 52.54, 272.68, 52.12, 252.86, 47.17]], "area": 3795.89435, "iscrowd": 0, "image_id": 547962, "bbox": [226.43, 15.36, 137.94, 55.76], "category_id": 28, "id": 1428761}, {"segmentation": [[178.02, 127.34, 164.17, 112.03, 149.95, 101.46, 180.57, 86.51, 241.09, 86.88, 256.4, 94.9, 262.6, 96.36, 293.96, 110.94, 299.06, 116.04, 307.08, 122.97, 316.92, 139.01, 306.72, 144.12, 295.41, 126.98, 265.52, 119.32, 241.46, 112.76, 208.28, 118.96, 179.12, 126.98]], "area": 4009.7078500000002, "iscrowd": 0, "image_id": 547962, "bbox": [149.95, 86.51, 166.97, 57.61], "category_id": 28, "id": 1428848}, {"segmentation": [[280.05, 313.46, 287.17, 321.29, 321.33, 317.02, 334.85, 312.75, 346.94, 341.21, 351.93, 341.21, 341.25, 311.32, 364.74, 302.78, 366.87, 302.78, 388.22, 293.53, 388.93, 292.82, 362.6, 277.16, 344.1, 275.03, 334.13, 279.3, 328.44, 279.3, 321.33, 282.86, 294.28, 297.09, 280.76, 311.32]], "area": 2880.848, "iscrowd": 0, "image_id": 360494, "bbox": [280.05, 275.03, 108.88, 66.18], "category_id": 28, "id": 1428898}, {"segmentation": [[383.17, 270.51, 426.71, 252.61, 470.01, 263.25, 471.22, 265.91, 437.6, 270.27, 430.82, 277.52, 430.82, 277.52, 432.76, 300.74, 429.13, 304.13, 428.89, 304.37, 427.92, 274.14, 415.1, 272.93, 402.28, 271.23]], "area": 1054.9949, "iscrowd": 0, "image_id": 360494, "bbox": [383.17, 252.61, 88.05, 51.76], "category_id": 28, "id": 1429285}, {"segmentation": [[461.15, 262.39, 487.23, 253.69, 512.07, 261.46, 500.58, 268.29, 488.47, 274.81, 488.47, 299.33, 486.61, 298.71, 486.61, 296.85, 485.68, 275.12, 476.98, 271.39, 471.71, 268.29, 455.25, 269.53, 471.09, 264.56]], "area": 640.7639000000014, "iscrowd": 0, "image_id": 360494, "bbox": [455.25, 253.69, 56.82, 45.64], "category_id": 28, "id": 1429375}, {"segmentation": [[565.56, 129.34, 571.81, 147.24, 572.66, 158.6, 574.93, 173.37, 574.93, 176.5, 576.92, 178.77, 578.91, 172.52, 576.64, 166.27, 574.36, 143.55, 572.09, 131.9, 569.53, 127.92]], "area": 180.51975000000232, "iscrowd": 0, "image_id": 547962, "bbox": [565.56, 127.92, 13.35, 50.85], "category_id": 31, "id": 1436324}, {"segmentation": [[258.71, 429.71, 261.59, 362.32, 269.66, 364.62, 276.57, 365.2, 282.9, 365.2, 284.63, 364.04, 279.45, 423.95, 280.6, 430.87, 280.6, 432.59], [259.29, 449.88, 289.24, 447.57, 296.15, 465.43, 293.85, 471.77, 290.39, 476.37, 286.36, 479.83, 278.3, 480.98, 272.54, 480.41, 265.05, 476.37, 259.86, 472.92, 259.29, 472.34]], "area": 2457.3750000000005, "iscrowd": 0, "image_id": 547962, "bbox": [258.71, 362.32, 37.44, 118.66], "category_id": 31, "id": 1436342}, {"segmentation": [[169.61, 244.75, 166.65, 257.78, 166.35, 270.81, 193.89, 274.07, 204.85, 261.04, 205.15, 211.88, 200.7, 214.84, 198.93, 238.53, 170.8, 241.2]], "area": 1296.0783499999998, "iscrowd": 0, "image_id": 547962, "bbox": [166.35, 211.88, 38.8, 62.19], "category_id": 31, "id": 1437567}, {"segmentation": [[218.01, 253.62, 251.66, 248.41, 252.47, 254.02, 237.64, 284.87, 215.21, 281.67, 205.59, 269.25, 219.21, 252.02], [266.09, 254.02, 270.09, 256.43, 273.3, 258.83, 274.1, 261.63, 272.9, 266.04, 270.9, 267.64, 267.69, 270.45, 267.69, 271.65, 268.89, 274.86, 268.89, 275.66, 267.69, 276.86, 267.29, 277.66, 267.29, 278.46, 265.69, 281.27, 262.88, 284.87, 261.68, 284.87, 260.48, 286.07, 258.48, 286.47, 258.48, 286.47]], "area": 1318.8814499999999, "iscrowd": 0, "image_id": 476552, "bbox": [205.59, 248.41, 68.51, 38.06], "category_id": 51, "id": 1537557}, {"segmentation": [[435.74, 166.04, 451.82, 169.8, 468.97, 169.26, 483.44, 166.58, 492.02, 161.22, 492.56, 144.6, 479.69, 138.71, 455.03, 134.42, 435.74, 136.56, 428.23, 144.6, 435.74, 163.9]], "area": 1824.4957499999996, "iscrowd": 0, "image_id": 476552, "bbox": [428.23, 134.42, 64.33, 35.38], "category_id": 51, "id": 1539370}, {"segmentation": [[284.84, 305.19, 275.78, 295.23, 279.4, 285.26, 279.4, 281.64, 284.39, 278.02, 300.24, 270.77, 318.8, 271.68, 326.05, 274.39, 335.11, 279.38, 341.45, 283.0, 340.54, 294.32, 321.97, 292.51, 307.94, 296.13, 303.86, 299.76, 290.73, 304.74]], "area": 1440.0495000000014, "iscrowd": 0, "image_id": 476552, "bbox": [275.78, 270.77, 65.67, 34.42], "category_id": 51, "id": 1540084}, {"segmentation": [[465.37, 92.14, 463.91, 89.95, 463.55, 87.04, 463.37, 84.5, 463.73, 81.77, 464.46, 81.59, 466.64, 81.77, 469.18, 84.32, 469.73, 86.5, 470.64, 87.95, 470.46, 91.77, 467.18, 93.23, 465.18, 91.41]], "area": 62.098099999999825, "iscrowd": 0, "image_id": 476552, "bbox": [463.37, 81.59, 7.27, 11.64], "category_id": 52, "id": 1541742}, {"segmentation": [[89.27, 253.27, 81.67, 252.01, 79.77, 255.17, 74.08, 253.27, 73.44, 250.11, 69.64, 250.11, 67.11, 246.94, 61.41, 246.94, 58.25, 243.14, 60.15, 239.98, 53.82, 235.55, 60.78, 233.01, 56.98, 221.62, 63.31, 219.09, 65.21, 221.62, 69.64, 220.99, 72.81, 226.68, 77.24, 227.95, 79.77, 233.01, 82.31, 236.81, 89.27, 239.34, 89.9, 243.78, 88.0, 251.37]], "area": 700.356, "iscrowd": 0, "image_id": 476552, "bbox": [53.82, 219.09, 36.08, 36.08], "category_id": 52, "id": 1543289}, {"segmentation": [[512.19, 80.31, 512.54, 75.82, 513.11, 72.48, 510.35, 72.94, 504.71, 75.24, 503.68, 78.01, 504.02, 79.73, 505.75, 79.5, 508.39, 78.12, 509.43, 80.88, 511.62, 80.65]], "area": 50.15440000000006, "iscrowd": 0, "image_id": 476552, "bbox": [503.68, 72.48, 9.43, 8.4], "category_id": 52, "id": 1544084}, {"segmentation": [[424.31, 162.31, 430.33, 157.9, 431.14, 152.28, 431.54, 149.06, 425.11, 151.47, 420.7, 154.69, 419.09, 156.29, 417.48, 159.1, 417.08, 165.13, 421.1, 163.92, 424.31, 162.31]], "area": 124.3520499999999, "iscrowd": 0, "image_id": 476552, "bbox": [417.08, 149.06, 14.46, 16.07], "category_id": 52, "id": 1544627}, {"segmentation": [[428.67, 102.73, 438.31, 107.95, 456.78, 107.95, 468.03, 116.78, 481.68, 118.79, 490.92, 115.98, 499.35, 122.81, 510.99, 124.01, 521.84, 128.03, 537.09, 106.74, 537.09, 91.49, 532.68, 85.46, 523.84, 83.05, 512.6, 78.64, 513.4, 70.6, 508.99, 71.41, 498.55, 72.21, 488.1, 71.81, 480.48, 64.18, 462.41, 68.6, 460.4, 69.0, 440.72, 69.0, 438.71, 77.83, 429.88, 90.28, 429.88, 97.11]], "area": 4542.259600000001, "iscrowd": 0, "image_id": 476552, "bbox": [428.67, 64.18, 108.42, 63.85], "category_id": 52, "id": 1545149}, {"segmentation": [[205.41, 345.36, 200.9, 350.48, 196.81, 355.4, 196.19, 357.24, 194.76, 353.14, 184.72, 368.71, 182.06, 374.65, 186.77, 374.85, 194.55, 373.42, 199.06, 374.04, 200.7, 376.7, 197.42, 388.17, 195.99, 388.58, 198.03, 381.0, 198.24, 376.7, 195.99, 375.47, 194.35, 377.11, 190.25, 378.34, 180.01, 381.0, 177.76, 382.64, 181.03, 391.24, 182.26, 394.93, 179.6, 394.11, 176.32, 384.89, 174.48, 386.32, 169.56, 386.73, 167.93, 394.72, 165.47, 393.9, 167.72, 385.91, 146.21, 391.85, 145.19, 370.76, 150.11, 366.46, 158.5, 356.22, 167.52, 343.52, 172.23, 338.6, 177.55, 340.44, 181.03, 340.65, 181.65, 342.08, 192.09, 340.85, 199.67, 339.42, 202.13, 338.6, 203.57, 342.08], [165.47, 397.59, 167.31, 398.0, 166.08, 400.25, 163.62, 400.46, 164.85, 397.59], [138.64, 393.9, 131.88, 396.77, 130.85, 399.64, 134.74, 410.08, 130.85, 409.67, 129.62, 400.66, 128.6, 400.05, 124.3, 407.01, 118.56, 405.78, 116.72, 403.94, 109.75, 404.35, 104.63, 404.14, 103.41, 403.12, 93.98, 403.33, 94.6, 405.99, 96.85, 408.24, 93.98, 409.27, 92.34, 408.24, 91.73, 403.33, 87.84, 404.55, 85.59, 404.35, 85.99, 402.1, 82.92, 399.43, 83.54, 395.34, 86.61, 388.99, 90.5, 386.73, 97.26, 384.28, 106.89, 388.58, 113.85, 388.99, 117.74, 387.76, 120.0, 388.99, 122.45, 389.19, 122.04, 387.76, 125.53, 387.55, 122.45, 381.0, 119.79, 380.79, 130.44, 378.13, 137.61, 376.29, 138.84, 375.26], [142.53, 374.04, 144.17, 371.78, 144.37, 392.67, 141.91, 392.47]], "area": 2905.815049999999, "iscrowd": 0, "image_id": 360494, "bbox": [82.92, 338.6, 122.49, 71.48], "category_id": 62, "id": 1580448}, {"segmentation": [[125.07, 181.3, 208.84, 186.42, 213.59, 182.39, 221.64, 185.32, 212.5, 221.17, 205.18, 221.17, 204.08, 203.61, 159.82, 199.59]], "area": 1493.12375, "iscrowd": 0, "image_id": 26768, "bbox": [125.07, 181.3, 96.57, 39.87], "category_id": 62, "id": 1580506}, {"segmentation": [[182.8, 393.23, 188.19, 388.74, 206.62, 384.7, 225.04, 376.61, 234.93, 372.56, 242.12, 363.57, 255.15, 353.24, 265.49, 355.49, 275.37, 355.49, 282.56, 355.94, 288.85, 354.14, 288.85, 359.98, 284.36, 369.87, 278.97, 377.95, 269.08, 385.59, 268.18, 388.74, 270.88, 394.13, 269.08, 395.03, 267.28, 391.44, 260.99, 391.89, 258.75, 408.96, 257.4, 408.06, 258.75, 390.09, 242.57, 389.64, 229.54, 397.28, 232.68, 408.51, 231.78, 412.56, 229.54, 402.22, 221.9, 395.48, 216.06, 405.82, 215.61, 403.12, 217.85, 395.48, 213.36, 397.73, 211.56, 413.9, 176.96, 407.61, 184.15, 392.33]], "area": 2782.1037499999998, "iscrowd": 0, "image_id": 360494, "bbox": [176.96, 353.24, 111.89, 60.66], "category_id": 62, "id": 1592025}, {"segmentation": [[280.17, 390.13, 268.95, 394.81, 264.28, 402.75, 269.89, 415.37, 272.69, 413.5, 269.89, 399.48, 278.77, 399.48, 283.91, 398.55], [285.78, 388.26, 298.87, 379.85, 317.1, 341.52, 320.37, 339.65, 332.52, 343.39, 348.41, 342.46, 355.42, 342.46, 345.61, 375.18, 347.48, 379.85, 356.36, 378.92, 354.49, 387.33, 353.09, 400.42, 349.82, 390.6, 353.09, 380.78, 343.27, 379.38, 342.8, 386.39, 349.35, 408.83, 345.61, 405.09, 340.0, 387.33, 339.06, 406.96, 339.06, 409.76, 338.13, 391.07, 319.43, 397.61, 319.43, 399.95, 322.24, 418.64, 320.84, 419.11, 314.29, 403.22, 308.68, 401.35, 292.79, 402.29, 291.39, 409.76, 286.72, 408.83, 288.58, 402.29, 285.78, 398.55, 285.78, 392.47, 286.25, 390.13]], "area": 2993.873650000002, "iscrowd": 0, "image_id": 360494, "bbox": [264.28, 339.65, 92.08, 79.46], "category_id": 62, "id": 1593151}, {"segmentation": [[0.0, 330.07, 19.42, 323.6, 40.99, 306.34, 74.43, 299.87, 84.13, 296.63, 113.26, 296.63, 148.85, 302.02, 174.74, 305.26, 174.74, 285.84, 173.66, 272.9, 177.98, 243.78, 168.27, 240.54, 139.15, 236.22, 117.57, 236.22, 78.74, 245.93, 63.64, 243.78, 48.54, 241.62, 45.3, 239.46, 38.83, 234.07, 23.73, 229.75, 18.34, 229.75, 5.39, 230.83, 0.0, 235.15, 1.08, 328.99], [576.0, 250.25, 611.6, 271.82, 640.0, 265.35, 640.0, 385.08, 629.93, 390.47, 578.16, 257.8]], "area": 15998.25885000001, "iscrowd": 0, "image_id": 26768, "bbox": [0.0, 229.75, 640.0, 160.72], "category_id": 65, "id": 1611112}, {"segmentation": [[269.79, 464.61, 398.38, 454.52, 425.27, 459.56, 447.12, 453.68, 531.17, 434.35, 640.0, 420.9, 640.0, 478.05, 281.56, 480.0]], "area": 12040.445400000002, "iscrowd": 0, "image_id": 26768, "bbox": [269.79, 420.9, 370.21, 59.1], "category_id": 76, "id": 1634283}, {"segmentation": [[376.82, 309.39, 384.45, 305.85, 387.72, 314.57, 392.08, 315.93, 394.53, 305.3, 403.8, 304.76, 409.52, 305.85, 411.97, 314.29, 411.97, 318.93, 402.44, 322.47, 395.35, 321.38, 386.09, 323.01]], "area": 422.7507000000006, "iscrowd": 0, "image_id": 546773, "bbox": [376.82, 304.76, 35.15, 18.25], "category_id": 77, "id": 1638413}, {"segmentation": [[118.07, 157.18, 159.76, 159.02, 163.85, 159.02, 162.83, 164.54, 111.53, 162.09, 111.33, 155.55]], "area": 279.35819999999944, "iscrowd": 0, "image_id": 26768, "bbox": [111.33, 155.55, 52.52, 8.99], "category_id": 84, "id": 1649175}, {"segmentation": [[26.25, 143.25, 25.44, 115.13, 19.73, 115.13, 20.96, 144.88, 25.98, 144.88]], "area": 164.0651, "iscrowd": 0, "image_id": 497109, "bbox": [19.73, 115.13, 6.52, 29.75], "category_id": 84, "id": 1652290}, {"segmentation": [[30.49, 114.43, 26.89, 114.43, 25.56, 120.11, 26.13, 140.76, 26.7, 145.31, 32.19, 145.31, 31.06, 130.72, 28.21, 126.93, 29.54, 121.25]], "area": 139.59219999999996, "iscrowd": 0, "image_id": 497109, "bbox": [25.56, 114.43, 6.63, 30.88], "category_id": 84, "id": 1655272}, {"segmentation": [[594.25, 155.08, 598.15, 154.71, 598.62, 152.47, 597.13, 149.03, 596.01, 147.63, 595.36, 145.87, 593.5, 145.59, 592.11, 147.54, 592.2, 148.94, 591.45, 151.45, 591.27, 153.22, 592.2, 152.66, 592.94, 151.92, 593.13, 151.73, 593.87, 151.64]], "area": 42.934349999999846, "iscrowd": 0, "image_id": 316258, "bbox": [591.27, 145.59, 7.35, 9.49], "category_id": 1, "id": 1679322}, {"segmentation": [[257.27, 218.97, 265.05, 233.47, 256.21, 242.66, 253.03, 249.38, 254.44, 260.7, 248.43, 274.14, 249.85, 284.75, 249.14, 301.37, 248.08, 313.39, 244.19, 315.87, 239.24, 299.95, 239.94, 288.28, 244.19, 272.02, 245.96, 256.45, 247.02, 244.43, 245.6, 237.36, 235.35, 223.92, 237.47, 218.26, 250.55, 218.26]], "area": 1043.3892499999997, "iscrowd": 0, "image_id": 437373, "bbox": [235.35, 218.26, 29.7, 97.61], "category_id": 1, "id": 1679747}, {"segmentation": [[85.11, 340.64, 91.45, 335.11, 96.17, 328.5, 95.49, 323.11, 94.28, 321.9, 96.57, 319.87, 102.24, 318.26, 106.55, 320.41, 108.03, 325.13, 106.82, 329.45, 111.0, 333.22, 111.13, 340.23, 99.13, 335.24, 93.47, 338.08, 95.22, 345.49, 79.72, 349.81], [64.89, 351.15, 58.69, 351.56, 58.42, 348.05, 70.42, 345.36]], "area": 399.08164999999997, "iscrowd": 0, "image_id": 360494, "bbox": [58.42, 318.26, 52.71, 33.3], "category_id": 1, "id": 1681284}, {"segmentation": [[188.52, 340.94, 187.87, 339.51, 188.26, 336.27, 188.26, 333.29, 188.78, 330.96, 190.08, 329.14, 191.11, 328.75, 193.19, 327.98, 195.13, 327.85, 196.56, 327.85, 196.95, 327.85, 197.08, 326.16, 197.46, 323.7, 198.11, 321.75, 198.63, 320.33, 200.96, 319.68, 202.26, 319.81, 204.46, 320.59, 205.63, 322.92, 206.67, 324.99, 205.24, 326.68, 204.21, 328.75, 205.76, 331.35, 207.06, 331.35, 207.71, 331.74, 207.71, 334.2, 208.48, 336.01, 209.39, 337.18, 209.52, 337.96, 207.19, 338.87, 204.59, 339.12, 203.43, 339.25, 201.09, 339.25, 199.67, 339.25, 197.59, 339.9, 195.52, 340.29, 193.06, 340.42, 192.15, 340.94, 189.82, 340.94, 188.52, 341.2]], "area": 282.9135499999999, "iscrowd": 0, "image_id": 360494, "bbox": [187.87, 319.68, 21.65, 21.52], "category_id": 1, "id": 1683764}, {"segmentation": [[278.03, 222.3, 278.03, 222.3, 275.11, 226.89, 252.97, 248.61, 255.47, 255.71, 274.27, 239.84, 270.93, 248.61, 265.08, 260.72, 265.92, 272.0, 269.68, 290.38, 274.27, 295.81, 272.18, 320.45, 280.53, 316.69, 280.53, 304.16, 285.13, 304.16, 285.96, 299.15, 282.62, 292.46, 281.37, 286.62, 280.95, 286.62, 288.89, 271.58, 294.32, 271.58, 291.81, 266.99, 294.32, 264.48, 306.01, 268.24, 297.24, 240.26, 300.17, 232.74, 293.06, 226.47, 293.48, 212.69, 287.22, 208.51, 282.62, 219.79]], "area": 2285.505349999999, "iscrowd": 0, "image_id": 437373, "bbox": [252.97, 208.51, 53.04, 111.94], "category_id": 1, "id": 1683913}, {"segmentation": [[451.89, 311.62, 452.48, 307.24, 454.52, 305.48, 456.13, 305.04, 457.59, 302.7, 457.15, 300.66, 457.15, 298.46, 458.47, 296.71, 461.1, 295.69, 463.15, 296.42, 464.17, 300.51, 463.29, 303.44, 463.15, 304.17, 469.73, 306.8, 470.75, 308.55, 471.34, 310.45, 471.34, 312.06, 471.48, 313.82, 467.24, 313.67, 463.29, 313.82, 460.37, 313.82, 455.4, 314.25, 451.45, 312.5]], "area": 212.05609999999996, "iscrowd": 0, "image_id": 360494, "bbox": [451.45, 295.69, 20.03, 18.56], "category_id": 1, "id": 1685696}, {"segmentation": [[415.45, 196.65, 412.85, 195.61, 412.46, 195.61, 410.5, 197.17, 409.2, 199.91, 408.68, 202.52, 410.11, 206.95, 408.55, 218.16, 414.93, 219.33, 417.28, 197.43]], "area": 152.00404999999964, "iscrowd": 0, "image_id": 437373, "bbox": [408.55, 195.61, 8.73, 23.72], "category_id": 1, "id": 1690754}, {"segmentation": [[369.95, 198.31, 368.64, 201.71, 367.86, 204.32, 367.47, 208.37, 367.73, 210.99, 370.08, 211.12, 371.39, 215.69, 372.3, 219.22, 372.3, 223.4, 372.04, 224.44, 375.44, 224.31, 375.3, 220.78, 375.3, 218.17, 375.96, 215.56, 376.22, 213.86, 376.87, 211.77, 377.79, 209.29, 377.79, 207.46, 377.39, 206.15, 376.74, 202.36, 376.74, 200.93, 376.87, 199.36, 376.48, 197.01, 375.17, 193.09, 374.91, 192.96, 373.74, 193.48, 373.21, 194.26, 372.56, 195.57, 371.78, 196.49]], "area": 189.45195000000024, "iscrowd": 0, "image_id": 437373, "bbox": [367.47, 192.96, 10.32, 31.48], "category_id": 1, "id": 1698662}, {"segmentation": [[481.05, 316.36, 473.89, 317.55, 472.3, 314.37, 480.25, 308.01, 483.83, 304.03, 483.83, 297.67, 489.4, 293.3, 495.76, 296.48, 496.95, 301.65, 500.53, 308.41, 496.55, 314.77, 491.39, 320.73]], "area": 406.4890000000001, "iscrowd": 0, "image_id": 360494, "bbox": [472.3, 293.3, 28.23, 27.43], "category_id": 1, "id": 1701969}, {"segmentation": [[343.59, 225.74, 344.42, 217.54, 345.59, 216.87, 344.93, 212.02, 346.77, 210.69, 347.1, 205.0, 346.43, 202.32, 344.09, 200.81, 343.25, 195.63, 339.91, 197.3, 339.24, 200.81, 334.39, 205.67, 335.72, 212.19, 336.06, 217.04, 335.89, 225.24, 339.74, 228.59, 340.07, 222.4, 340.24, 226.75, 341.08, 228.25, 344.76, 227.92]], "area": 268.6740999999997, "iscrowd": 0, "image_id": 437373, "bbox": [334.39, 195.63, 12.71, 32.96], "category_id": 1, "id": 1703184}, {"segmentation": [[226.82, 337.3, 228.89, 335.61, 230.2, 332.24, 230.01, 329.05, 233.01, 327.92, 235.45, 329.42, 237.52, 326.42, 239.02, 324.92, 244.65, 324.73, 246.9, 324.54, 246.52, 327.17, 249.34, 327.92, 247.84, 329.61, 245.77, 333.17, 242.58, 335.24, 237.14, 337.68, 231.51, 338.8, 228.7, 339.37, 227.38, 337.68]], "area": 183.71285, "iscrowd": 0, "image_id": 360494, "bbox": [226.82, 324.54, 22.52, 14.83], "category_id": 1, "id": 1704014}, {"segmentation": [[307.73, 255.94, 294.97, 263.45, 298.72, 309.98, 280.71, 311.48, 291.22, 303.23, 282.96, 276.21, 278.46, 234.93, 274.71, 221.42, 275.46, 169.63, 290.47, 158.37, 293.47, 156.12, 291.97, 144.86, 296.47, 138.1, 306.98, 136.6, 310.73, 144.11, 307.73, 159.12, 307.73, 163.62, 319.74, 184.64, 326.49, 210.91, 325.74, 217.66, 337.0, 231.92, 333.25, 251.44, 331.0, 260.44, 331.75, 276.96, 329.5, 279.96, 318.99, 261.2, 323.49, 243.18, 309.23, 237.18, 312.98, 253.69]], "area": 5659.079050000005, "iscrowd": 0, "image_id": 62060, "bbox": [274.71, 136.6, 62.29, 174.88], "category_id": 1, "id": 1709379}, {"segmentation": [[59.1, 178.39, 61.86, 170.84, 64.02, 170.24, 64.26, 167.24, 65.1, 166.64, 66.89, 166.76, 67.73, 170.24, 70.61, 171.92, 74.93, 176.83, 74.81, 182.83, 71.09, 178.51, 67.67, 178.78, 66.05, 181.62, 64.52, 181.52, 63.71, 177.66, 59.85, 180.91]], "area": 129.63510000000008, "iscrowd": 0, "image_id": 419281, "bbox": [59.1, 166.64, 15.83, 16.19], "category_id": 1, "id": 1711727}, {"segmentation": [[16.43, 298.55, 16.11, 284.72, 18.04, 272.81, 18.04, 267.66, 13.53, 264.76, 10.63, 260.9, 10.31, 258.65, 12.24, 254.14, 35.09, 239.66, 46.36, 234.19, 46.36, 233.55, 42.23, 230.42, 41.16, 222.57, 42.23, 218.96, 43.71, 215.56, 44.56, 214.5, 45.62, 214.07, 46.47, 212.8, 50.93, 212.37, 52.42, 212.37, 57.94, 214.07, 61.97, 219.17, 62.18, 221.5, 62.61, 224.69, 63.25, 228.72, 63.88, 230.63, 69.19, 232.33, 73.86, 234.67, 78.53, 238.06, 79.81, 241.04, 81.5, 248.04, 82.35, 261.42, 88.93, 283.92, 88.51, 286.9, 84.69, 291.35, 75.56, 298.15, 69.83, 300.27, 64.94, 302.61, 64.31, 314.71, 62.82, 320.87, 59.42, 323.84, 50.51, 323.84, 48.81, 323.63, 48.81, 320.65, 49.44, 318.32, 50.51, 315.35, 51.57, 311.1, 51.99, 307.07, 52.63, 301.76, 51.99, 299.0, 46.05, 298.15, 41.38, 296.03, 39.04, 293.05, 35.64, 289.23, 31.82, 285.83, 30.97, 289.44, 30.12, 290.72, 30.12, 293.69, 30.12, 297.51, 29.7, 300.7, 30.55, 302.82, 31.61, 306.85, 32.67, 310.89, 33.95, 315.35, 34.58, 319.38, 31.82, 320.23, 6.77, 321.08, 5.5, 319.8, 5.5, 314.5, 8.47, 313.44, 10.8, 313.44, 13.78, 311.95, 15.9, 307.92, 17.39, 304.52]], "area": 5195.238700000001, "iscrowd": 0, "image_id": 546773, "bbox": [5.5, 212.37, 83.43, 111.47], "category_id": 1, "id": 1733409}, {"segmentation": [[53.59, 333.55, 57.72, 332.39, 59.72, 331.12, 60.89, 330.06, 62.47, 329.64, 62.9, 326.47, 60.99, 325.52, 58.46, 323.93, 58.56, 322.98, 59.83, 321.82, 63.32, 321.39, 64.69, 321.08, 66.7, 319.6, 69.24, 319.81, 70.93, 321.29, 71.88, 323.61, 72.09, 325.52, 71.67, 327.74, 70.29, 329.85, 71.56, 330.91, 73.36, 332.39, 72.09, 335.03, 70.61, 337.25, 67.65, 338.73, 65.96, 340.42, 58.98, 340.84, 53.49, 341.48, 51.37, 341.37, 53.28, 334.5]], "area": 275.45834999999994, "iscrowd": 0, "image_id": 360494, "bbox": [51.37, 319.6, 21.99, 21.88], "category_id": 1, "id": 1737710}, {"segmentation": [[274.29, 319.41, 274.47, 310.83, 278.85, 303.72, 280.13, 297.34, 282.31, 295.69, 286.15, 297.15, 286.69, 300.98, 285.78, 304.63, 285.78, 308.28, 278.85, 314.12, 284.14, 317.58]], "area": 165.08269999999942, "iscrowd": 0, "image_id": 360494, "bbox": [274.29, 295.69, 12.4, 23.72], "category_id": 1, "id": 1749765}, {"segmentation": [[26.67, 306.64, 18.44, 306.23, 12.48, 305.61, 11.45, 305.82, 11.45, 318.98, 11.66, 320.01, 16.8, 318.98, 18.44, 318.36, 20.29, 333.78, 19.27, 339.13, 16.8, 343.65, 24.82, 339.74, 32.43, 338.72, 35.72, 339.54, 36.54, 342.42, 36.95, 344.89, 34.07, 347.56, 33.66, 349.0, 34.48, 366.68, 38.39, 368.53, 39.83, 367.09, 41.27, 362.36, 42.71, 365.65, 44.76, 367.5, 48.05, 366.06, 47.23, 360.72, 45.79, 353.73, 47.02, 350.64, 48.87, 349.41, 49.9, 346.94, 49.9, 343.45, 52.58, 338.72, 53.4, 332.96, 54.01, 329.05, 51.75, 321.03, 51.14, 318.16, 50.93, 316.3, 49.7, 313.63, 36.74, 306.64, 28.31, 306.02, 26.46, 307.05]], "area": 1505.2651000000003, "iscrowd": 0, "image_id": 360494, "bbox": [11.45, 305.61, 42.56, 62.92], "category_id": 1, "id": 1751740}, {"segmentation": [[54.9, 154.1, 58.99, 151.83, 65.8, 148.65, 61.26, 145.93, 61.26, 137.76, 66.25, 132.77, 75.33, 132.31, 79.41, 137.76, 82.13, 142.3, 78.96, 149.56, 83.95, 153.19, 90.3, 174.06, 88.49, 182.23, 85.76, 191.31, 88.94, 203.56, 82.59, 207.19, 87.58, 224.89, 86.22, 231.24, 89.85, 244.24, 82.13, 243.34, 81.68, 238.8, 82.13, 232.44, 81.68, 227.0, 77.59, 216.11, 76.23, 208.85, 74.87, 208.85, 72.15, 219.74, 71.24, 231.99, 66.25, 231.54, 63.53, 207.03, 58.99, 197.95, 59.9, 188.88, 59.9, 182.07, 59.9, 172.54, 61.71, 162.1, 61.26, 156.66]], "area": 2264.4603000000006, "iscrowd": 0, "image_id": 546773, "bbox": [54.9, 132.31, 35.4, 111.93], "category_id": 1, "id": 1759705}, {"segmentation": [[0.0, 264.33, 9.63, 263.93, 16.42, 267.45, 22.66, 267.59, 24.7, 268.95, 25.38, 271.53, 22.8, 273.97, 20.9, 275.46, 0.26, 275.6]], "area": 234.81780000000023, "iscrowd": 0, "image_id": 353231, "bbox": [0.0, 263.93, 25.38, 11.67], "category_id": 3, "id": 1773812}, {"segmentation": [[128.45, 46.48, 151.15, 45.13, 182.3, 45.13, 200.59, 47.84, 200.59, 49.87, 195.85, 53.93, 182.64, 61.05, 172.14, 68.16, 168.76, 78.66, 164.69, 102.03, 163.68, 105.08, 107.12, 101.35, 107.12, 83.4, 108.13, 73.58, 112.54, 66.8, 115.25, 63.08, 119.31, 56.64, 122.36, 47.5, 122.7, 46.15]], "area": 3697.401599999999, "iscrowd": 0, "image_id": 390094, "bbox": [107.12, 45.13, 93.47, 59.95], "category_id": 3, "id": 1774663}, {"segmentation": [[443.6, 57.85, 512.7, 58.91, 525.16, 88.12, 525.16, 109.85, 432.55, 109.49, 409.4, 108.42, 408.69, 101.66, 414.03, 87.41, 418.31, 83.13, 427.92, 77.08, 428.99, 72.09, 429.35, 61.05]], "area": 5212.855249999999, "iscrowd": 0, "image_id": 390094, "bbox": [408.69, 57.85, 116.47, 52.0], "category_id": 3, "id": 1787776}, {"segmentation": [[640.0, 246.64, 625.75, 249.23, 620.94, 251.08, 621.68, 259.59, 625.01, 266.25, 631.3, 269.21, 639.07, 269.95, 640.0, 269.95]], "area": 357.86400000000003, "iscrowd": 0, "image_id": 353231, "bbox": [620.94, 246.64, 19.06, 23.31], "category_id": 9, "id": 1803177}, {"segmentation": [[640.0, 237.61, 626.06, 242.47, 611.86, 253.31, 610.74, 263.77, 612.61, 275.35, 620.46, 283.95, 636.9, 288.43, 640.0, 288.43]], "area": 1142.6659, "iscrowd": 0, "image_id": 419281, "bbox": [610.74, 237.61, 29.26, 50.82], "category_id": 9, "id": 1803305}, {"segmentation": [[292.54, 228.73, 263.01, 223.28, 258.69, 221.23, 258.69, 214.64, 258.24, 176.48, 258.69, 174.44, 264.6, 173.98, 269.37, 173.98, 287.09, 177.62, 292.54, 180.12, 289.81, 198.97, 288.9, 210.56, 308.21, 225.55, 308.21, 229.41, 301.17, 230.77], [248.24, 174.89, 255.28, 174.89, 257.78, 218.28, 247.79, 215.1, 247.79, 176.94], [225.07, 172.16, 231.2, 172.62, 231.2, 207.15, 225.3, 206.92, 222.8, 202.38, 222.8, 193.29, 222.12, 183.98, 222.12, 177.84], [215.07, 183.07, 215.76, 203.51, 210.99, 206.47, 200.31, 205.56, 202.35, 201.24, 206.44, 194.65, 209.62, 186.48, 212.8, 182.39]], "area": 2653.4891999999986, "iscrowd": 0, "image_id": 419281, "bbox": [200.31, 172.16, 107.9, 58.61], "category_id": 9, "id": 1803384}, {"segmentation": [[247.69, 598.44, 231.06, 603.43, 202.81, 618.39, 174.55, 608.42, 94.75, 611.74, 53.19, 590.13, 18.29, 513.66, 36.57, 387.32, 53.19, 360.73, 51.53, 322.49, 81.45, 290.91, 129.66, 269.3, 247.69, 272.62, 254.34, 292.57]], "area": 70044.3965, "iscrowd": 0, "image_id": 9679, "bbox": [18.29, 269.3, 236.05, 349.09], "category_id": 27, "id": 1828542}, {"segmentation": [[595.68, 258.18, 615.21, 251.9, 629.81, 247.66, 640.0, 250.54, 640.0, 256.66, 640.0, 265.99, 640.0, 266.67, 639.83, 267.52, 633.12, 270.83, 629.28, 271.5, 624.38, 269.64, 598.19, 270.04, 597.53, 269.78, 599.77, 264.88, 600.97, 262.76, 598.98, 261.18]], "area": 760.7001000000001, "iscrowd": 0, "image_id": 360494, "bbox": [595.68, 247.66, 44.32, 23.84], "category_id": 28, "id": 1829250}, {"segmentation": [[503.17, 265.25, 526.13, 256.9, 551.71, 249.07, 598.68, 258.46, 576.24, 264.72, 553.27, 275.69, 556.41, 299.17, 552.75, 299.69, 550.14, 273.6, 521.96, 272.03, 510.48, 272.55, 503.69, 267.86]], "area": 1420.3516000000004, "iscrowd": 0, "image_id": 360494, "bbox": [503.17, 249.07, 95.51, 50.62], "category_id": 28, "id": 1830031}, {"segmentation": [[386.9, 262.94, 393.8, 260.56, 400.6, 258.95, 408.15, 257.87, 411.92, 256.79, 413.76, 259.49, 414.3, 263.15, 413.43, 264.66, 394.13, 266.5, 379.67, 266.17, 381.18, 264.12]], "area": 189.1059000000003, "iscrowd": 0, "image_id": 360494, "bbox": [379.67, 256.79, 34.63, 9.71], "category_id": 28, "id": 1830087}, {"segmentation": [[7.62, 284.13, 11.82, 282.26, 13.46, 283.67, 24.43, 284.83, 31.44, 287.29, 31.67, 287.87, 27.7, 289.74, 17.66, 296.63, 17.43, 298.61, 20.81, 301.07, 21.75, 301.18, 18.94, 303.75, 17.89, 305.27, 9.95, 305.5, 8.78, 290.44, 5.98, 286.0, 5.63, 284.6]], "area": 302.96964999999994, "iscrowd": 0, "image_id": 360494, "bbox": [5.63, 282.26, 26.04, 23.24], "category_id": 28, "id": 1830605}, {"segmentation": [[409.84, 406.13, 388.48, 420.99, 378.26, 392.2, 363.4, 368.99, 306.76, 313.27, 317.9, 303.98, 372.69, 351.34, 377.33, 347.63, 375.48, 330.91, 382.91, 331.84, 384.76, 353.2, 399.62, 364.35]], "area": 3217.4250500000007, "iscrowd": 0, "image_id": 547962, "bbox": [306.76, 303.98, 103.08, 117.01], "category_id": 31, "id": 1833891}, {"segmentation": [[302.27, 164.5, 305.89, 140.3, 307.56, 135.29, 308.67, 137.51, 310.06, 150.87, 310.06, 164.78]], "area": 148.91185000000058, "iscrowd": 0, "image_id": 26768, "bbox": [302.27, 135.29, 7.79, 29.49], "category_id": 44, "id": 1865074}, {"segmentation": [[230.76, 189.81, 229.84, 170.46, 233.52, 158.94, 233.52, 150.64, 233.52, 146.04, 239.05, 143.73, 245.96, 145.12, 246.88, 171.38, 244.58, 191.65]], "area": 668.2205000000001, "iscrowd": 0, "image_id": 26768, "bbox": [229.84, 143.73, 17.04, 47.92], "category_id": 44, "id": 1865762}, {"segmentation": [[75.49, 381.18, 75.49, 385.85, 95.59, 384.06, 95.95, 380.47, 104.21, 380.47, 112.1, 375.08, 117.13, 376.16, 118.92, 381.54, 125.74, 372.21, 129.69, 362.16, 136.15, 352.11, 138.31, 345.65, 141.18, 332.72, 140.1, 318.37, 133.28, 317.29, 130.41, 316.21, 118.92, 337.03, 116.41, 337.03, 87.33, 368.62, 74.05, 372.21, 74.41, 384.06]], "area": 1963.875250000002, "iscrowd": 0, "image_id": 360494, "bbox": [74.05, 316.21, 67.13, 69.64], "category_id": 62, "id": 1938991}, {"segmentation": [[402.88, 380.14, 402.88, 372.87, 402.56, 366.55, 399.71, 363.7, 403.51, 359.28, 407.3, 355.8, 411.72, 355.17, 413.3, 357.7, 414.57, 354.85, 411.72, 352.32, 408.56, 352.32, 410.14, 324.51, 410.14, 319.77, 405.72, 319.46, 382.96, 321.04, 381.38, 318.51, 378.86, 322.93, 381.07, 327.99, 376.96, 354.54, 374.75, 356.43, 366.21, 360.86, 361.16, 368.13, 364.0, 379.82, 371.9, 378.87, 387.71, 379.19, 388.34, 370.65, 389.92, 366.23, 397.5, 365.6, 398.77, 370.02, 399.71, 379.5]], "area": 1849.5947999999999, "iscrowd": 0, "image_id": 360494, "bbox": [361.16, 318.51, 53.41, 61.63], "category_id": 62, "id": 1946581}, {"segmentation": [[425.73, 332.57, 427.15, 319.34, 435.65, 321.47, 435.65, 327.85, 437.31, 331.86, 432.11, 333.28, 429.28, 334.23], [444.16, 332.1, 446.05, 324.78, 446.52, 319.82, 455.26, 318.16, 457.15, 324.54, 454.55, 337.06, 452.66, 334.23], [407.78, 380.08, 405.42, 365.44, 410.62, 360.71, 416.05, 360.0, 422.66, 359.29, 424.32, 359.06, 435.89, 361.42, 435.89, 364.02, 440.38, 363.31, 442.98, 360.47, 444.39, 362.13, 444.39, 364.02, 446.05, 370.87, 445.57, 372.76, 440.85, 364.96, 432.58, 366.62, 424.79, 367.32, 423.84, 369.92, 422.43, 369.45, 421.95, 367.32, 420.3, 367.56, 418.17, 374.41, 416.76, 373.7, 417.94, 365.44, 413.92, 364.96, 409.67, 364.73, 408.49, 367.32, 410.62, 377.72], [456.44, 372.05, 454.55, 362.13, 455.97, 362.84, 458.57, 371.81]], "area": 571.5603499999995, "iscrowd": 0, "image_id": 360494, "bbox": [405.42, 318.16, 53.15, 61.92], "category_id": 62, "id": 1946831}, {"segmentation": [[485.24, 321.11, 502.53, 320.64, 503.71, 335.09, 505.13, 345.27, 497.32, 342.66, 499.45, 332.24, 484.53, 321.35]], "area": 197.4412000000001, "iscrowd": 0, "image_id": 360494, "bbox": [484.53, 320.64, 20.6, 24.63], "category_id": 62, "id": 1946856}, {"segmentation": [[588.9, 436.62, 589.36, 417.32, 587.98, 406.75, 587.52, 394.34, 585.68, 393.43, 579.71, 394.34, 572.35, 399.4, 575.11, 408.59, 580.62, 410.43, 586.14, 415.02, 586.14, 422.37, 586.6, 433.86], [558.11, 413.18, 570.97, 412.72, 570.06, 407.21, 570.06, 402.16, 564.54, 405.37, 558.57, 406.29], [545.24, 412.72, 529.62, 409.51, 528.7, 409.51, 527.32, 424.67, 521.35, 429.73, 518.13, 426.05, 517.67, 406.29, 527.32, 391.13, 528.7, 395.26, 532.38, 398.48, 537.89, 402.16, 541.57, 405.37, 542.48, 409.05], [532.38, 369.99, 542.48, 371.37, 545.24, 371.37, 545.7, 366.77, 545.7, 365.85, 542.48, 360.8, 544.32, 355.75, 549.84, 353.45, 556.73, 354.37, 559.03, 360.8, 557.65, 365.39, 557.65, 369.53, 567.76, 371.83, 571.89, 377.34, 580.16, 383.78, 578.33, 343.34, 569.6, 345.64, 548.92, 345.64, 535.13, 341.96, 531.92, 341.96, 531.46, 371.37]], "area": 1942.8192500000023, "iscrowd": 0, "image_id": 360494, "bbox": [517.67, 341.96, 71.69, 94.66], "category_id": 62, "id": 1947108}, {"segmentation": [[470.69, 153.2, 466.96, 148.38, 467.84, 141.81, 468.28, 135.02, 470.25, 131.73, 476.6, 129.76, 477.92, 128.44, 481.64, 128.66, 486.02, 133.26, 487.99, 137.21, 488.21, 140.71, 487.77, 145.75, 487.34, 148.38, 483.83, 149.91, 482.3, 152.54, 479.23, 154.51, 477.92, 154.73, 477.04, 156.48, 475.51, 156.7, 472.44, 154.95, 471.13, 154.29]], "area": 441.7782000000002, "iscrowd": 0, "image_id": 437373, "bbox": [466.96, 128.44, 21.25, 28.26], "category_id": 64, "id": 1952832}, {"segmentation": [[408.5, 152.61, 408.5, 151.9, 406.54, 148.88, 405.47, 147.27, 405.29, 146.92, 405.47, 142.11, 406.01, 138.2, 407.25, 136.24, 409.39, 134.29, 410.63, 132.68, 415.44, 132.33, 417.93, 132.86, 421.49, 133.93, 424.33, 136.24, 425.58, 140.51, 425.93, 143.0, 424.51, 146.21, 423.26, 147.99, 420.06, 149.41, 419.17, 150.3, 418.82, 151.37, 418.64, 152.08, 415.79, 153.15, 413.83, 153.15]], "area": 332.72779999999966, "iscrowd": 0, "image_id": 437373, "bbox": [405.29, 132.33, 20.64, 20.82], "category_id": 64, "id": 1953633}, {"segmentation": [[437.91, 169.47, 431.15, 168.94, 427.23, 162.53, 425.27, 155.77, 437.2, 155.59, 443.07, 153.1, 458.19, 157.91, 460.5, 162.36, 458.55, 166.8, 455.7, 170.9, 440.75, 170.01, 439.86, 158.44, 438.8, 159.33, 438.98, 169.3]], "area": 437.72535000000016, "iscrowd": 0, "image_id": 437373, "bbox": [425.27, 153.1, 35.23, 17.8], "category_id": 64, "id": 1954299}, {"segmentation": [[465.77, 181.73, 467.65, 176.09, 472.04, 172.95, 476.43, 173.58, 480.82, 176.51, 482.07, 182.78, 481.03, 190.3, 478.52, 194.69, 476.64, 194.07, 473.29, 192.19, 471.62, 193.65, 467.86, 193.86, 465.56, 187.8, 464.72, 184.66, 465.56, 181.32, 465.77, 182.57]], "area": 287.57054999999986, "iscrowd": 0, "image_id": 437373, "bbox": [464.72, 172.95, 17.35, 21.74], "category_id": 64, "id": 1955049}, {"segmentation": [[514.36, 158.72, 517.15, 158.19, 519.68, 158.99, 526.73, 156.06, 533.51, 155.26, 543.22, 155.53, 546.01, 159.92, 545.48, 162.71, 539.1, 166.7, 534.57, 170.69, 530.19, 177.21, 527.53, 181.86, 525.8, 183.19, 523.67, 188.51, 518.35, 187.18, 516.22, 183.19, 517.29, 179.33, 517.82, 174.28, 517.55, 173.62, 513.43, 169.36, 512.36, 164.84, 513.96, 159.12]], "area": 609.1005500000007, "iscrowd": 0, "image_id": 437373, "bbox": [512.36, 155.26, 33.65, 33.25], "category_id": 64, "id": 1955942}, {"segmentation": [[583.16, 170.32, 586.21, 169.97, 590.9, 167.15, 594.43, 167.27, 601.35, 166.09, 604.17, 167.74, 606.63, 171.73, 607.46, 177.01, 602.99, 179.71, 598.18, 179.59, 595.25, 179.59, 593.13, 180.77, 590.43, 180.06, 587.85, 177.71, 585.15, 179.12, 582.8, 176.77, 581.98, 172.78]], "area": 272.8465000000003, "iscrowd": 0, "image_id": 437373, "bbox": [581.98, 166.09, 25.48, 14.68], "category_id": 64, "id": 1955990}, {"segmentation": [[637.05, 174.05, 637.73, 183.61, 627.32, 183.61, 626.12, 181.05, 623.22, 179.17, 619.47, 177.81, 614.86, 177.81, 611.96, 178.83, 609.05, 176.78, 609.05, 173.88, 611.44, 173.03, 614.17, 173.03, 612.47, 171.83, 609.22, 167.4, 609.91, 165.35, 612.98, 165.86, 616.39, 166.03, 618.1, 166.03, 620.49, 162.79, 621.17, 161.94, 622.88, 163.3, 624.24, 163.81, 628.34, 163.47, 632.44, 163.3, 637.05, 163.47, 637.9, 164.5, 638.07, 166.2, 635.51, 167.23, 632.1, 167.74, 632.61, 168.93, 635.34, 168.93, 637.9, 170.81, 638.58, 171.32, 638.58, 172.86, 638.58, 173.88]], "area": 439.42574999999994, "iscrowd": 0, "image_id": 437373, "bbox": [609.05, 161.94, 29.53, 21.67], "category_id": 64, "id": 1956076}, {"segmentation": [[504.06, 160.72, 499.15, 160.72, 493.61, 162.87, 489.62, 168.1, 490.23, 175.48, 493.61, 180.7, 497.61, 182.85, 500.38, 176.4, 504.06, 173.32, 508.68, 176.71, 508.68, 168.71, 507.75, 164.41, 504.99, 161.34]], "area": 283.49309999999974, "iscrowd": 0, "image_id": 437373, "bbox": [489.62, 160.72, 19.06, 22.13], "category_id": 64, "id": 1956101}, {"segmentation": [[548.87, 159.91, 549.75, 153.74, 555.04, 146.24, 558.13, 144.92, 563.64, 144.92, 571.14, 145.36, 579.95, 150.43, 583.26, 153.52, 579.51, 159.47, 574.44, 162.55, 569.37, 165.86, 564.74, 176.66, 554.6, 179.09, 550.41, 174.68, 549.53, 170.05]], "area": 759.6520500000009, "iscrowd": 0, "image_id": 437373, "bbox": [548.87, 144.92, 34.39, 34.17], "category_id": 64, "id": 1956163}, {"segmentation": [[25.66, 154.98, 26.1, 181.26, 44.93, 179.29, 35.95, 152.79, 31.13, 150.82, 26.75, 150.82, 23.91, 150.6, 26.1, 155.2]], "area": 423.81514999999996, "iscrowd": 0, "image_id": 497109, "bbox": [23.91, 150.6, 21.02, 30.66], "category_id": 84, "id": 1984582}, {"segmentation": [[68.78, 148.23, 69.28, 165.33, 69.03, 172.7, 70.01, 176.76, 72.47, 177.5, 73.7, 176.89, 74.32, 159.79, 74.81, 144.91, 70.75, 145.4]], "area": 161.52874999999986, "iscrowd": 0, "image_id": 497109, "bbox": [68.78, 144.91, 6.03, 32.59], "category_id": 84, "id": 1985966}, {"segmentation": [[231.83, 143.28, 231.83, 140.17, 235.87, 138.93, 236.49, 141.26, 235.41, 142.97]], "area": 15.230799999999979, "iscrowd": 0, "image_id": 364299, "bbox": [231.83, 138.93, 4.66, 4.35], "category_id": 1, "id": 2005806}, {"segmentation": [[241.53, 416.39, 256.71, 403.23, 256.71, 392.1, 256.71, 379.96, 258.73, 362.76, 262.78, 339.49, 262.78, 330.38, 258.73, 319.25, 258.73, 310.14, 260.76, 304.07, 260.76, 302.05, 262.78, 292.94, 234.45, 280.8, 234.45, 280.8, 217.25, 284.85, 228.38, 263.6, 236.47, 224.14, 232.43, 201.88, 240.52, 183.67, 229.39, 182.65, 222.31, 185.69, 222.31, 185.69, 219.27, 190.75, 219.27, 194.8, 219.27, 212.0, 212.19, 240.33, 209.15, 261.58, 203.08, 273.72, 191.95, 294.97, 188.92, 301.04, 188.92, 310.14, 199.04, 321.27, 200.05, 327.35, 202.07, 341.51, 202.07, 358.71, 201.06, 372.88, 201.06, 378.95, 205.11, 384.01, 205.11, 388.06, 209.15, 405.26, 217.25, 409.3, 216.24, 417.4, 216.24, 417.4, 233.44, 417.4, 241.53, 417.4, 246.59, 414.36]], "area": 9479.370799999995, "iscrowd": 0, "image_id": 547962, "bbox": [188.92, 182.65, 73.86, 234.75], "category_id": 1, "id": 2007750}, {"segmentation": [[179.69, 194.34, 172.43, 201.6, 175.34, 207.89, 174.85, 215.15, 169.53, 220.48, 160.33, 214.19, 155.49, 209.34, 167.11, 196.28, 164.2, 188.05, 159.85, 191.92, 148.23, 215.64, 163.72, 230.64, 164.2, 243.71, 163.72, 257.26, 162.27, 266.46, 159.85, 295.5, 177.27, 311.96, 174.37, 330.83, 171.95, 345.35, 183.57, 340.51, 188.89, 286.79, 196.63, 261.62, 197.6, 249.03, 203.89, 230.16, 196.63, 220.96, 190.34, 213.22, 185.02, 209.34, 189.37, 203.54, 189.86, 197.73]], "area": 3812.0357499999986, "iscrowd": 0, "image_id": 437373, "bbox": [148.23, 188.05, 55.66, 157.3], "category_id": 1, "id": 2018860}, {"segmentation": [[424.49, 321.55, 421.84, 323.57, 420.75, 320.3, 416.7, 319.21, 413.74, 317.34, 412.02, 313.6, 411.87, 306.27, 413.43, 303.78, 416.54, 302.07, 415.76, 298.17, 418.41, 295.68, 421.84, 296.92, 423.09, 298.95, 423.71, 301.29, 426.05, 305.5, 424.18, 310.48, 422.93, 314.53, 426.21, 318.12]], "area": 255.59644999999983, "iscrowd": 0, "image_id": 360494, "bbox": [411.87, 295.68, 14.34, 27.89], "category_id": 1, "id": 2024516}, {"segmentation": [[494.28, 210.9, 498.09, 207.94, 533.62, 210.05, 537.85, 218.09, 541.24, 233.32, 538.7, 237.97, 482.86, 241.35, 480.75, 221.9, 493.86, 213.01]], "area": 1635.8867, "iscrowd": 0, "image_id": 419281, "bbox": [480.75, 207.94, 60.49, 33.41], "category_id": 9, "id": 2054403}, {"segmentation": [[435.02, 212.66, 433.73, 217.08, 430.42, 219.1, 425.82, 218.0, 422.14, 216.34, 422.69, 210.82, 421.03, 207.14, 420.85, 204.75, 425.27, 200.52, 427.84, 197.94, 431.16, 200.33, 433.18, 204.75, 435.21, 207.69, 435.57, 208.8]], "area": 214.4636000000001, "iscrowd": 0, "image_id": 353231, "bbox": [420.85, 197.94, 14.72, 21.16], "category_id": 9, "id": 2056146}, {"segmentation": [[447.5, 210.64, 445.55, 217.57, 436.88, 218.44, 434.27, 216.06, 435.14, 208.47, 433.62, 203.7, 438.61, 203.27, 446.2, 207.17]], "area": 158.62280000000015, "iscrowd": 0, "image_id": 353231, "bbox": [433.62, 203.27, 13.88, 15.17], "category_id": 9, "id": 2056753}, {"segmentation": [[418.92, 195.31, 417.9, 199.19, 408.95, 198.85, 408.44, 193.28, 409.12, 189.9, 414.02, 189.9, 415.37, 193.62, 419.93, 194.8]], "area": 74.15789999999991, "iscrowd": 0, "image_id": 353231, "bbox": [408.44, 189.9, 11.49, 9.29], "category_id": 9, "id": 2056764}, {"segmentation": [[407.46, 199.25, 396.48, 198.74, 394.63, 197.39, 393.95, 191.48, 398.68, 189.96, 401.55, 190.3, 401.38, 195.37, 403.92, 190.64, 406.28, 190.3, 406.11, 195.87, 408.14, 196.04]], "area": 98.29689999999998, "iscrowd": 0, "image_id": 353231, "bbox": [393.95, 189.96, 14.19, 9.29], "category_id": 9, "id": 2056784}, {"segmentation": [[312.25, 180.63, 312.45, 183.72, 311.53, 185.17, 310.08, 187.02, 310.7, 187.64, 313.59, 187.54, 314.31, 186.09, 312.87, 184.34, 313.38, 180.53]], "area": 11.971200000000053, "iscrowd": 0, "image_id": 353231, "bbox": [310.08, 180.53, 4.23, 7.11], "category_id": 9, "id": 2056801}, {"segmentation": [[285.06, 198.16, 285.78, 200.32, 294.86, 199.6, 293.62, 193.62, 289.5, 196.3, 283.83, 196.61]], "area": 40.94169999999993, "iscrowd": 0, "image_id": 353231, "bbox": [283.83, 193.62, 11.03, 6.7], "category_id": 9, "id": 2056811}, {"segmentation": [[393.01, 197.45, 384.97, 197.45, 383.44, 194.39, 386.69, 190.95, 393.58, 192.1, 393.58, 195.92]], "area": 53.581299999999864, "iscrowd": 0, "image_id": 353231, "bbox": [383.44, 190.95, 10.14, 6.5], "category_id": 9, "id": 2056820}, {"segmentation": [[235.38, 193.15, 239.85, 196.58, 238.21, 197.92, 234.48, 197.18, 232.99, 194.49, 234.18, 193.3]], "area": 18.494049999999916, "iscrowd": 0, "image_id": 353231, "bbox": [232.99, 193.15, 6.86, 4.77], "category_id": 9, "id": 2056836}, {"segmentation": [[600.0, 146.54, 609.64, 146.83, 613.69, 145.87, 617.35, 145.77, 617.74, 145.48, 619.47, 149.53, 619.28, 150.98, 614.75, 152.23, 610.03, 153.1, 602.8, 152.13, 600.97, 150.01, 598.55, 147.41]], "area": 110.08739999999989, "iscrowd": 0, "image_id": 82933, "bbox": [598.55, 145.48, 20.92, 7.62], "category_id": 21, "id": 2068856}, {"segmentation": [[369.14, 266.15, 372.49, 266.66, 379.21, 265.54, 380.63, 265.23, 381.35, 264.32, 389.49, 262.18, 382.26, 260.45, 368.22, 265.44]], "area": 54.464600000000274, "iscrowd": 0, "image_id": 360494, "bbox": [368.22, 260.45, 21.27, 6.21], "category_id": 28, "id": 2075049}, {"segmentation": [[210.56, 250.5, 199.56, 270.13, 190.46, 283.05, 186.15, 290.71, 169.4, 307.94, 159.83, 325.65, 165.57, 335.7, 170.84, 341.44, 187.11, 338.57, 195.73, 329.0, 213.44, 331.87, 224.92, 336.66, 232.1, 331.39, 241.68, 306.02, 233.06, 292.14, 219.66, 282.57, 222.05, 269.65, 215.35, 248.11]], "area": 3872.60655, "iscrowd": 0, "image_id": 547962, "bbox": [159.83, 248.11, 81.85, 93.33], "category_id": 31, "id": 2077149}, {"segmentation": [[89.61, 249.21, 91.54, 254.04, 94.43, 255.48, 93.95, 255.48, 92.99, 255.48, 97.33, 258.38, 96.36, 256.93, 102.64, 261.76, 104.09, 259.83, 110.85, 264.17, 113.26, 260.31, 115.19, 266.11, 126.3, 264.17, 130.16, 266.11, 131.61, 258.38, 141.26, 251.62, 140.78, 246.8, 141.74, 239.07, 139.33, 235.69, 130.64, 248.73, 124.36, 249.21, 115.67, 250.17, 115.19, 248.73, 115.19, 246.8, 117.61, 242.93, 115.19, 239.07, 111.81, 240.52, 109.4, 240.04, 108.92, 241.48, 105.05, 234.24, 100.71, 235.69, 95.4, 236.66, 91.05, 241.97, 89.61, 237.62]], "area": 954.4148000000004, "iscrowd": 0, "image_id": 476552, "bbox": [89.61, 234.24, 52.13, 31.87], "category_id": 52, "id": 2110752}, {"segmentation": [[105.22, 304.42, 96.19, 304.42, 80.77, 301.42, 75.13, 293.14, 74.37, 287.87, 76.63, 287.12, 77.38, 282.23, 80.77, 282.23, 83.78, 278.47, 81.14, 273.2, 96.57, 273.96, 117.63, 276.21, 127.79, 281.48, 133.81, 285.24, 126.28, 292.39, 114.62, 287.87, 103.34, 295.02, 101.83, 300.66], [121.39, 296.15, 111.99, 301.04, 110.86, 298.41, 118.38, 292.76]], "area": 1133.9000000000005, "iscrowd": 0, "image_id": 476552, "bbox": [74.37, 273.2, 59.44, 31.22], "category_id": 52, "id": 2110807}, {"segmentation": [[423.55, 133.66, 424.52, 141.15, 423.71, 146.2, 420.94, 147.18, 418.5, 146.37, 415.89, 143.43, 416.54, 138.71, 421.43, 135.13, 423.38, 132.85]], "area": 80.57704999999984, "iscrowd": 0, "image_id": 476552, "bbox": [415.89, 132.85, 8.63, 14.33], "category_id": 52, "id": 2110844}, {"segmentation": [[158.74, 253.57, 164.6, 258.55, 169.88, 254.74, 175.44, 251.81, 180.43, 250.63, 182.48, 250.34, 184.24, 257.08, 189.22, 255.91, 185.7, 262.36, 179.84, 266.75, 171.05, 271.44, 161.08, 276.43, 157.27, 274.37, 153.76, 270.56, 148.48, 269.68, 143.79, 266.46, 139.39, 265.29, 136.17, 256.79, 139.39, 250.93, 140.57, 249.17, 144.38, 245.95, 148.48, 245.95, 153.46, 247.7, 158.74, 250.63, 160.2, 252.39]], "area": 896.9481000000009, "iscrowd": 0, "image_id": 476552, "bbox": [136.17, 245.95, 53.05, 30.48], "category_id": 52, "id": 2110915}, {"segmentation": [[463.99, 204.4, 465.24, 206.89, 465.8, 208.83, 463.44, 209.8, 461.36, 211.33, 461.08, 213.82, 461.64, 216.18, 458.59, 221.73, 457.2, 221.17, 456.23, 218.54, 457.76, 210.22, 459.42, 208.0, 460.94, 206.06, 461.36, 203.01]], "area": 75.05089999999988, "iscrowd": 0, "image_id": 476552, "bbox": [456.23, 203.01, 9.57, 18.72], "category_id": 52, "id": 2111013}, {"segmentation": [[487.76, 115.7, 490.2, 115.29, 497.13, 119.37, 503.25, 121.41, 508.55, 123.85, 515.07, 125.48, 515.07, 128.74, 512.63, 139.35, 505.29, 147.09, 497.13, 151.98, 494.69, 149.95, 496.32, 145.46, 488.57, 139.75, 480.42, 136.08, 472.26, 135.68, 462.48, 133.64, 440.87, 134.86, 436.79, 138.53, 429.45, 145.46, 421.71, 147.91, 417.22, 147.09, 416.0, 139.35, 414.77, 121.81, 414.77, 112.84, 418.85, 112.44, 420.07, 105.1, 424.56, 105.91, 432.71, 106.73, 440.46, 106.32, 447.8, 108.77, 448.21, 110.81, 458.81, 109.17, 462.48, 112.03, 468.59, 114.07, 471.04, 116.92, 477.56, 118.96, 482.05, 116.92]], "area": 2620.0683000000017, "iscrowd": 0, "image_id": 476552, "bbox": [414.77, 105.1, 100.3, 46.88], "category_id": 52, "id": 2111089}, {"segmentation": [[296.2, 151.46, 296.2, 127.31, 295.69, 112.72, 287.65, 107.69, 280.1, 103.67, 255.95, 110.71, 254.44, 123.79, 253.43, 161.02, 260.98, 157.5, 264.0, 157.5]], "area": 1997.6640999999997, "iscrowd": 0, "image_id": 497109, "bbox": [253.43, 103.67, 42.77, 57.35], "category_id": 62, "id": 2122434}, {"segmentation": [[104.21, 121.49, 110.48, 105.08, 120.14, 100.26, 134.62, 101.7, 140.89, 110.39, 144.75, 125.84, 148.61, 137.9, 149.58, 149.48, 149.58, 149.48, 151.02, 153.83, 104.21, 161.55, 102.76, 161.55, 94.08, 157.21, 97.94, 142.73, 100.83, 130.18, 105.18, 120.53]], "area": 2446.0948000000008, "iscrowd": 0, "image_id": 497109, "bbox": [94.08, 100.26, 56.94, 61.29], "category_id": 62, "id": 2122807}, {"segmentation": [[112.04, 339.21, 108.46, 329.21, 106.32, 327.78, 105.61, 320.64, 102.93, 319.03, 102.75, 317.25, 109.36, 319.03, 117.93, 317.78, 123.46, 316.89, 121.32, 327.25, 117.21, 331.71], [92.04, 345.64, 79.0, 349.39, 75.61, 355.64, 93.64, 351.0, 100.07, 347.78], [66.5, 350.82, 62.21, 351.35, 57.75, 349.75, 47.75, 351.17, 47.21, 359.39, 49.89, 359.57, 52.57, 365.1]], "area": 496.30790000000013, "iscrowd": 0, "image_id": 360494, "bbox": [47.21, 316.89, 76.25, 48.21], "category_id": 62, "id": 2125878}, {"segmentation": [[12.79, 368.74, 13.47, 375.91, 18.93, 374.88, 23.36, 373.18, 30.52, 371.13, 32.57, 371.13, 39.39, 370.79, 40.41, 370.79, 45.87, 370.45, 53.37, 369.77, 60.19, 369.77, 65.99, 366.7, 90.88, 330.9, 86.79, 329.19, 53.03, 367.04, 45.87, 368.4, 43.48, 368.4, 13.47, 368.74]], "area": 504.8999499999993, "iscrowd": 0, "image_id": 360494, "bbox": [12.79, 329.19, 78.09, 46.72], "category_id": 62, "id": 2125991}, {"segmentation": [[120.87, 140.94, 167.02, 144.26, 166.11, 137.92, 122.99, 134.61, 119.97, 140.04]], "area": 288.57079999999974, "iscrowd": 0, "image_id": 26768, "bbox": [119.97, 134.61, 47.05, 9.65], "category_id": 84, "id": 2142105}, {"segmentation": [[356.45, 322.68, 372.92, 349.92, 385.59, 367.02, 391.93, 375.57, 391.93, 383.17, 394.14, 390.77, 394.78, 397.11, 395.41, 400.91, 399.21, 400.28, 405.54, 397.11, 408.4, 390.77, 407.13, 381.27, 400.79, 371.46, 385.59, 327.75, 395.09, 324.27, 382.42, 298.93, 370.71, 269.47, 353.29, 251.42, 352.65, 245.41, 359.31, 240.65, 361.84, 233.69, 364.06, 224.82, 367.22, 216.9, 362.79, 205.5, 351.07, 197.27, 337.14, 201.38, 330.17, 209.93, 329.53, 231.47, 323.2, 234.95, 309.58, 237.49, 296.6, 238.75, 291.21, 240.65, 254.79, 280.24, 257.01, 287.84, 265.56, 288.48, 269.36, 293.86, 280.76, 290.69, 288.68, 289.74, 297.86, 297.66, 303.25, 295.76, 309.26, 305.26, 312.12, 311.6, 308.95, 327.43, 295.46, 375.21, 280.85, 384.66, 292.02, 425.91, 288.58, 474.89, 285.15, 517.85, 318.66, 517.0, 332.41, 522.15, 334.99, 513.56, 327.25, 506.68, 346.16, 464.58, 366.78, 431.07, 369.36, 417.32, 359.91, 379.51, 350.45, 338.26]], "area": 22109.822350000006, "iscrowd": 0, "image_id": 504726, "bbox": [254.79, 197.27, 153.61, 324.88], "category_id": 1, "id": 2157423}, {"segmentation": [[484.49, 332.03, 488.4, 337.03, 489.7, 348.12, 489.7, 356.16, 491.66, 356.16, 492.09, 361.81, 492.09, 363.12, 482.53, 364.2, 473.62, 362.46, 470.36, 358.99, 468.62, 357.46, 469.92, 363.99, 467.97, 365.72, 464.71, 365.72, 466.66, 357.68, 462.75, 357.25, 462.32, 352.68, 457.1, 352.47, 454.93, 351.6, 456.66, 347.9, 466.01, 347.9, 472.97, 344.86, 475.79, 338.12, 476.01, 336.16, 475.79, 332.47, 472.1, 331.16, 470.58, 330.73, 465.14, 330.51, 464.92, 327.9, 467.53, 324.64, 469.27, 321.6, 470.79, 320.08, 475.58, 318.77, 478.18, 319.43, 479.71, 325.08, 481.88, 328.56, 483.62, 329.86]], "area": 833.3733500000002, "iscrowd": 0, "image_id": 360494, "bbox": [454.93, 318.77, 37.16, 46.95], "category_id": 1, "id": 2159553}, {"segmentation": [[63.17, 206.13, 56.52, 182.86, 61.51, 164.57, 49.87, 146.29, 53.19, 131.32, 39.9, 118.03, 36.57, 134.65, 21.61, 156.26, 21.61, 177.87, 31.58, 177.87, 26.6, 211.12, 34.91, 236.05, 43.22, 212.78]], "area": 2677.7098000000005, "iscrowd": 0, "image_id": 546773, "bbox": [21.61, 118.03, 41.56, 118.02], "category_id": 1, "id": 2164823}, {"segmentation": [[242.7, 141.3, 246.03, 174.55, 226.08, 222.75, 229.4, 294.23, 244.36, 367.38, 284.26, 379.01, 285.92, 395.64, 251.01, 403.95, 221.09, 526.96, 274.29, 535.27, 256.0, 512.0, 252.68, 452.16, 277.61, 425.56, 344.1, 566.86, 400.62, 540.26, 365.71, 520.31, 307.53, 344.1, 335.79, 251.01, 398.96, 329.14, 405.61, 299.22, 329.14, 226.08, 304.21, 179.53, 310.86, 129.66, 287.58, 104.73, 246.03, 118.03, 241.04, 147.95]], "area": 35590.46165, "iscrowd": 0, "image_id": 546773, "bbox": [221.09, 104.73, 184.52, 462.13], "category_id": 1, "id": 2165853}, {"segmentation": [[117.4, 144.79, 122.94, 143.53, 125.78, 142.74, 132.89, 142.26, 135.1, 144.32, 137.32, 146.53, 143.8, 149.85, 142.22, 155.38, 138.58, 155.7, 127.2, 156.8, 113.45, 154.75, 114.09, 150.32, 114.88, 147.16, 116.14, 144.79]], "area": 327.72725000000014, "iscrowd": 0, "image_id": 419281, "bbox": [113.45, 142.26, 30.35, 14.54], "category_id": 9, "id": 2172142}, {"segmentation": [[436.1, 171.6, 440.36, 174.88, 444.78, 175.2, 450.02, 175.04, 452.97, 175.04, 452.97, 173.73, 449.86, 171.11, 448.55, 169.8, 444.62, 168.16, 440.85, 167.51, 436.6, 167.18, 434.96, 167.67, 434.3, 170.46]], "area": 99.80224999999993, "iscrowd": 0, "image_id": 476552, "bbox": [434.3, 167.18, 18.67, 8.02], "category_id": 52, "id": 2186371}, {"segmentation": [[195.81, 142.09, 200.12, 167.57, 155.83, 167.96, 101.34, 173.84, 63.71, 143.66, 195.81, 140.92]], "area": 3252.5890500000014, "iscrowd": 0, "image_id": 497109, "bbox": [63.71, 140.92, 136.41, 32.92], "category_id": 67, "id": 2194739}, {"segmentation": [[111.82, 166.0, 160.75, 168.65, 160.44, 163.82, 111.04, 162.11]], "area": 213.1713, "iscrowd": 0, "image_id": 26768, "bbox": [111.04, 162.11, 49.71, 6.54], "category_id": 84, "id": 2196982}, {"segmentation": [[401.15, 77.91, 403.9, 69.65, 405.56, 66.89, 410.24, 64.14, 416.58, 60.83, 417.13, 59.45, 420.98, 57.25, 420.16, 55.32, 419.61, 55.04, 419.61, 52.84, 417.95, 48.98, 418.78, 48.98, 419.06, 46.23, 419.06, 43.2, 420.16, 38.79, 423.19, 37.14, 428.7, 34.93, 433.38, 36.04, 436.96, 39.62, 438.34, 44.02, 439.17, 45.68, 440.54, 47.88, 439.72, 51.74, 438.34, 52.01, 438.62, 53.39, 440.27, 53.67, 446.06, 60.0, 449.36, 61.38, 441.37, 63.59, 432.56, 64.41, 425.67, 66.89, 417.4, 71.02, 406.66, 80.94, 413.82, 80.39, 426.49, 82.87, 398.67, 103.26, 398.39, 101.88, 395.64, 99.95, 395.09, 98.57, 395.64, 93.34, 393.98, 91.14, 394.26, 89.48, 395.91, 87.0, 399.22, 82.6, 401.15, 78.46]], "area": 1224.2488500000004, "iscrowd": 0, "image_id": 547962, "bbox": [393.98, 34.93, 55.38, 68.33], "category_id": 1, "id": 2207985}, {"segmentation": [[58.61, 327.56, 60.53, 304.52, 57.17, 288.2, 63.41, 269.0, 60.05, 264.68, 70.13, 257.0, 71.57, 249.8, 77.81, 242.61, 86.45, 242.61, 97.96, 252.68, 105.16, 266.12, 109.48, 279.56, 105.16, 302.6, 103.24, 320.36, 101.32, 336.2, 105.64, 340.52, 97.0, 341.0, 94.13, 339.56, 91.25, 327.56, 90.77, 321.8, 89.81, 309.8, 86.45, 308.84, 80.21, 321.8, 82.61, 339.08, 82.13, 344.84, 74.93, 344.84, 72.05, 336.2, 73.49, 328.04, 72.05, 319.4, 72.05, 303.56, 67.25, 308.84, 65.33, 317.0, 66.29, 326.6, 59.09, 327.08]], "area": 3489.6888499999995, "iscrowd": 0, "image_id": 99807, "bbox": [57.17, 242.61, 52.31, 102.23], "category_id": 18, "id": 11866}, {"segmentation": [[495.72, 238.94, 503.32, 238.4, 513.27, 240.03, 526.85, 239.85, 539.34, 243.29, 547.3, 250.17, 555.63, 260.48, 557.8, 265.01, 563.41, 266.45, 566.48, 270.98, 566.48, 278.58, 566.48, 282.02, 564.13, 288.35, 560.87, 290.35, 558.88, 290.53, 551.28, 290.53, 547.3, 290.71, 541.33, 288.54, 536.26, 288.35, 531.74, 296.68, 526.67, 302.11, 520.88, 304.1, 518.34, 304.1, 513.64, 302.47, 512.37, 301.57, 517.44, 296.5, 523.59, 291.61, 524.68, 287.09, 519.97, 282.02, 515.45, 278.4, 508.21, 281.11, 506.94, 283.65, 504.04, 293.42, 499.52, 294.51, 499.16, 299.21, 493.91, 302.29, 485.76, 302.65, 483.59, 300.84, 483.77, 299.39, 486.49, 297.58, 488.84, 295.77, 490.47, 293.6, 491.56, 285.82, 490.65, 281.3, 487.21, 284.37, 489.57, 292.88, 486.31, 296.32, 482.87, 297.22, 482.87, 294.15, 479.61, 291.07, 476.9, 287.63, 478.16, 280.39, 477.8, 273.69, 471.83, 269.89, 470.38, 265.37, 468.93, 260.3, 467.85, 254.15, 466.58, 240.94, 466.58, 237.13, 464.23, 233.33, 465.86, 230.08, 469.48, 225.73, 473.28, 224.47, 476.71, 224.47, 481.96, 225.01, 488.48, 227.18, 493.73, 231.16]], "area": 4835.5198, "iscrowd": 0, "image_id": 99807, "bbox": [464.23, 224.47, 102.25, 79.63], "category_id": 18, "id": 16802}, {"segmentation": [[614.5, 310.56, 616.64, 314.31, 619.32, 318.6, 620.39, 321.81, 620.39, 326.63, 621.46, 328.24, 631.65, 329.85, 640.0, 329.31, 640.0, 321.81, 639.15, 313.77, 639.15, 306.81, 633.79, 306.81, 634.86, 304.66, 638.08, 298.77, 637.54, 290.19, 624.14, 283.76, 608.07, 291.27, 604.32, 293.41, 597.89, 299.3, 595.74, 301.98, 602.71, 305.73, 609.67, 308.95, 613.96, 310.02]], "area": 1177.8213999999996, "iscrowd": 0, "image_id": 250703, "bbox": [595.74, 283.76, 44.26, 46.09], "category_id": 64, "id": 20731}, {"segmentation": [[217.48, 515.92, 215.83, 540.7, 215.83, 556.81, 219.13, 565.89, 215.42, 570.44, 217.9, 572.92, 211.29, 577.87, 207.98, 577.05, 206.74, 570.44, 211.29, 565.89, 209.63, 544.83, 207.98, 532.44, 205.5, 525.01, 205.92, 516.33, 201.79, 517.57, 203.44, 526.25, 205.5, 543.18, 209.22, 557.63, 208.81, 565.07, 207.98, 568.37, 203.03, 575.81, 198.07, 574.98, 201.37, 566.31, 205.5, 558.87, 194.77, 523.77, 189.4, 516.33, 183.2, 504.77, 182.79, 496.51, 180.72, 484.82, 172.46, 469.54, 164.62, 470.78, 158.42, 476.15, 156.77, 488.13, 146.86, 486.48, 143.97, 477.8, 149.75, 460.46, 147.27, 455.91, 147.68, 449.31, 153.88, 442.7, 150.16, 437.33, 153.88, 435.68, 159.25, 438.98, 160.07, 441.04, 162.96, 440.63, 165.86, 433.2, 168.75, 431.96, 170.81, 441.46, 195.59, 455.91, 222.85, 467.06, 233.18, 465.0, 244.33, 459.63, 255.48, 459.63, 269.52, 468.3, 275.72, 476.98, 273.65, 494.74, 268.7, 514.68, 269.11, 527.9, 264.57, 540.29, 261.26, 560.53, 259.61, 565.89, 252.18, 567.96, 251.35, 563.83, 255.89, 555.16, 255.48, 548.96, 255.07, 538.64, 255.48, 528.31, 251.76, 522.11, 243.5, 510.96, 219.96, 515.92, 218.31, 515.92]], "area": 7601.762750000001, "iscrowd": 0, "image_id": 71027, "bbox": [143.97, 431.96, 131.75, 145.91], "category_id": 19, "id": 54148}, {"segmentation": [[104.99, 412.76, 115.06, 355.24, 112.18, 337.98, 165.39, 312.09, 204.22, 294.83, 238.74, 309.21, 302.02, 309.21, 343.73, 291.96, 401.26, 279.01, 437.21, 273.26, 509.12, 266.07, 520.63, 254.56, 532.13, 263.19, 546.52, 266.07, 556.58, 289.08, 559.46, 319.28, 563.78, 373.93, 562.34, 386.88, 556.58, 404.13, 527.82, 392.63, 500.49, 348.04, 487.55, 352.36, 457.35, 360.99, 435.78, 412.76, 419.96, 435.78, 445.84, 471.73, 451.6, 504.81, 437.21, 532.13, 412.76, 581.03, 392.63, 552.27, 398.38, 527.82, 428.58, 510.56, 430.02, 493.3, 385.44, 460.22, 363.87, 523.51, 371.06, 566.65, 389.75, 585.35, 350.92, 585.35, 339.42, 543.64, 350.92, 471.73, 352.36, 435.78, 310.65, 445.84, 256.0, 440.09, 221.48, 428.58, 208.54, 445.84, 201.35, 506.25, 201.35, 510.56, 218.61, 535.01, 250.25, 575.28, 257.44, 592.54, 228.67, 591.1, 176.9, 513.44, 166.83, 497.62, 169.71, 442.97, 139.51, 481.8, 115.06, 532.13, 112.18, 585.35, 87.73, 575.28, 79.1, 524.94, 122.25, 478.92, 125.12, 461.66, 96.36, 450.16, 106.43, 415.64]], "area": 76399.45480000002, "iscrowd": 0, "image_id": 210408, "bbox": [79.1, 254.56, 484.68, 337.98], "category_id": 19, "id": 54406}, {"segmentation": [[474.11, 382.29, 474.85, 378.61, 474.48, 371.25, 474.48, 365.74, 474.48, 349.18, 476.32, 337.78, 470.43, 296.58, 467.86, 285.91, 458.66, 271.93, 434.38, 265.31, 417.83, 268.25, 413.41, 266.41, 411.57, 261.63, 406.42, 261.26, 399.06, 266.41, 390.97, 263.47, 380.67, 260.52, 377.36, 264.57, 352.71, 260.16, 349.4, 253.53, 346.09, 259.42, 340.2, 259.42, 338.0, 261.63, 333.95, 256.48, 329.9, 253.9, 333.21, 266.04, 334.32, 267.51, 332.11, 275.61, 338.73, 298.78, 342.41, 306.51, 346.83, 305.04, 347.56, 299.52, 347.93, 294.0, 351.61, 294.0, 353.45, 296.58, 351.98, 301.73, 354.55, 312.03, 360.44, 323.8, 366.32, 347.34, 368.16, 368.31, 368.16, 373.09, 361.17, 382.29, 360.07, 387.07, 365.59, 385.97, 370.0, 390.02, 378.83, 389.65, 379.57, 383.03, 379.93, 378.98, 384.72, 370.52, 382.51, 352.12, 386.56, 325.64, 395.75, 325.27, 410.47, 324.17, 430.33, 317.91, 434.01, 317.91, 441.74, 336.31, 444.31, 349.55, 441.37, 366.84, 438.79, 369.41, 430.7, 381.92, 441.37, 380.08, 443.21, 373.09, 449.09, 370.15, 452.77, 339.98, 452.77, 338.15, 447.62, 324.17, 449.83, 316.07, 460.13, 334.83, 465.65, 353.6, 468.96, 368.31, 465.65, 377.14, 461.97, 382.29]], "area": 9778.6693, "iscrowd": 0, "image_id": 109146, "bbox": [329.9, 253.53, 146.42, 136.49], "category_id": 19, "id": 54622}, {"segmentation": [[270.58, 287.95, 275.77, 280.69, 278.88, 276.54, 278.88, 274.47, 277.84, 264.1, 277.84, 255.81, 283.02, 255.81, 291.32, 265.14, 291.32, 265.14, 299.61, 264.1, 306.87, 251.66, 305.83, 266.18, 311.02, 271.36, 319.31, 274.47, 329.68, 276.54, 332.79, 281.73, 341.08, 292.1, 342.12, 295.21, 335.9, 310.76, 334.86, 313.87, 334.86, 322.16, 334.86, 338.75, 327.6, 353.26, 326.57, 367.78, 326.57, 374.0, 325.53, 388.51, 322.42, 398.88, 321.38, 400.95, 317.24, 401.99, 314.13, 411.32, 305.83, 412.35, 300.65, 412.35, 299.61, 404.06, 299.61, 400.95, 290.28, 395.77, 293.39, 384.36, 293.39, 381.25, 298.57, 354.3, 286.13, 341.86, 284.06, 339.78, 273.69, 323.2, 273.69, 318.01, 273.69, 310.76, 273.69, 305.57, 273.69, 296.24, 273.69, 293.13]], "area": 6598.167399999999, "iscrowd": 0, "image_id": 401816, "bbox": [270.58, 251.66, 71.54, 160.69], "category_id": 19, "id": 54690}, {"segmentation": [[220.93, 318.46, 217.24, 322.16, 215.39, 324.93, 210.76, 327.7, 204.29, 324.0, 202.44, 317.53, 202.44, 312.91, 203.37, 305.52, 204.29, 287.03, 204.29, 280.56, 208.92, 274.09, 206.14, 254.67, 208.92, 262.99, 220.01, 262.99, 227.4, 259.3, 243.12, 254.67, 257.91, 252.83, 269.0, 245.43, 277.32, 246.35, 284.72, 253.75, 290.26, 253.75, 292.11, 252.83, 305.98, 260.22, 324.47, 274.09, 327.24, 283.33, 327.24, 301.82, 327.24, 315.68, 327.24, 332.32, 323.54, 345.27, 324.47, 347.11, 330.94, 356.36, 336.48, 365.6, 337.41, 365.6, 347.58, 373.0, 351.27, 375.77, 359.59, 377.62, 359.59, 380.39, 355.9, 386.86, 351.27, 393.33, 342.03, 397.96, 329.09, 397.96, 329.09, 397.96, 326.32, 408.13, 327.24, 415.52, 327.24, 416.44, 331.86, 426.61, 323.54, 425.69, 318.92, 420.14, 318.92, 410.9, 315.22, 400.73, 305.98, 385.02, 300.43, 363.75, 299.51, 343.42, 298.58, 326.78, 290.26, 332.32, 287.49, 357.28, 296.73, 368.38, 301.36, 383.17, 299.51, 397.03, 299.51, 419.22, 293.96, 423.84, 290.26, 424.76, 285.64, 424.76, 281.94, 417.37, 284.72, 406.28, 281.02, 384.09, 276.4, 369.3, 272.7, 352.66, 267.15, 341.57, 264.38, 360.98, 261.61, 378.54, 261.61, 383.17, 261.61, 409.97, 252.36, 412.75, 255.14, 403.5, 250.51, 388.71, 257.91, 360.06, 261.61, 346.19, 250.51, 336.95, 243.12, 356.36, 245.89, 396.11, 245.89, 398.88, 249.59, 423.84, 244.04, 423.84, 239.42, 421.99, 235.72, 387.79, 234.8, 364.68, 231.1, 345.27, 225.56, 328.63]], "area": 15047.707049999999, "iscrowd": 0, "image_id": 109146, "bbox": [202.44, 245.43, 157.15, 181.18], "category_id": 19, "id": 56734}, {"segmentation": [[192.39, 208.72, 175.9, 229.8, 160.32, 222.47, 156.66, 214.22, 169.48, 185.82, 167.65, 175.74, 175.9, 164.75, 179.56, 151.92, 184.14, 151.92, 185.06, 157.42, 203.38, 151.92, 228.12, 159.25, 262.01, 194.07, 270.26, 199.56, 307.82, 192.23, 349.05, 199.56, 360.95, 198.65, 370.12, 198.65, 368.28, 209.64, 374.7, 223.38, 381.11, 218.8, 384.77, 224.3, 380.19, 233.46, 377.45, 240.79, 383.86, 239.87, 383.86, 231.63, 393.94, 245.37, 390.27, 260.03, 375.61, 257.28, 377.45, 281.1, 386.61, 302.17, 393.02, 348.89, 369.2, 347.06, 375.61, 335.15, 369.2, 312.25, 360.95, 296.67, 349.05, 271.94, 337.14, 272.85, 349.96, 301.25, 351.79, 325.99, 352.71, 348.89, 336.22, 349.81, 336.22, 323.24, 327.06, 300.34, 317.9, 286.6, 317.9, 277.43, 303.24, 284.76, 279.42, 288.43, 256.52, 288.43, 251.02, 311.33, 248.27, 336.07, 237.28, 336.07, 236.36, 315.91, 238.19, 294.84, 234.53, 292.09, 223.54, 293.92, 221.7, 310.42, 218.95, 323.24, 219.87, 340.65, 207.05, 340.65, 205.21, 315.0, 197.88, 286.6, 197.88, 265.52, 192.39, 251.78, 193.3, 237.12, 198.8, 224.3, 198.8, 216.05]], "area": 24405.270799999988, "iscrowd": 0, "image_id": 250703, "bbox": [156.66, 151.92, 237.28, 197.89], "category_id": 19, "id": 56740}, {"segmentation": [[123.56, 258.95, 128.29, 263.68, 134.91, 257.06, 146.26, 258.01, 153.83, 264.63, 163.29, 262.74, 170.85, 263.68, 180.31, 270.3, 185.99, 276.92, 186.93, 296.79, 182.2, 320.43, 182.2, 329.89, 189.77, 345.97, 173.69, 357.32, 172.74, 363.94, 172.74, 387.58, 159.5, 388.53, 153.83, 386.64, 141.53, 385.69, 144.37, 377.18, 142.48, 366.78, 141.53, 346.91, 140.59, 334.62, 129.24, 319.49, 130.18, 307.19, 129.24, 292.06, 125.45, 284.49, 122.62, 281.65, 127.35, 272.2, 125.45, 263.68, 121.67, 258.95]], "area": 5858.751449999999, "iscrowd": 0, "image_id": 401816, "bbox": [121.67, 257.06, 68.1, 131.47], "category_id": 19, "id": 57348}, {"segmentation": [[397.6, 335.38, 389.36, 301.39, 397.6, 266.37, 394.51, 245.77, 407.9, 254.01, 430.56, 254.01, 452.19, 258.13, 466.61, 275.64, 467.64, 311.69, 457.34, 355.98, 457.34, 393.06, 453.22, 400.27, 442.92, 398.21, 446.01, 354.95, 443.95, 335.38, 437.77, 364.22, 438.8, 404.39, 426.44, 405.42, 427.47, 368.34, 418.2, 332.29, 409.96, 332.29, 415.11, 368.34, 418.2, 397.18, 401.72, 396.15, 408.93, 370.4]], "area": 8158.851449999993, "iscrowd": 0, "image_id": 401816, "bbox": [389.36, 245.77, 78.28, 159.65], "category_id": 19, "id": 57576}, {"segmentation": [[231.61, 24.05, 230.24, 13.09, 235.03, 0.75, 329.59, 0.07, 334.39, 14.46, 335.07, 24.73, 300.81, 21.31, 269.98, 29.53, 232.98, 24.05]], "area": 2501.8702, "iscrowd": 0, "image_id": 80756, "bbox": [230.24, 0.07, 104.83, 29.46], "category_id": 62, "id": 104807}, {"segmentation": [[304.37, 128.57, 304.67, 120.12, 302.06, 111.98, 295.46, 107.98, 291.62, 107.52, 285.78, 110.13, 281.79, 114.13, 280.25, 124.11, 281.17, 127.95, 281.63, 132.56, 283.48, 140.39, 281.02, 143.0, 269.35, 151.14, 266.43, 157.13, 263.51, 166.81, 260.59, 185.55, 258.75, 193.07, 258.6, 196.76, 258.9, 200.14, 257.83, 200.14, 255.83, 205.52, 257.06, 206.74, 254.76, 213.81, 256.29, 217.04, 254.76, 225.94, 255.06, 228.71, 259.52, 236.54, 265.51, 237.92, 263.51, 234.24, 266.28, 230.55, 267.35, 230.86, 266.43, 249.14, 265.81, 259.27, 268.12, 269.87, 271.65, 284.62, 271.65, 288.76, 269.35, 298.13, 270.88, 303.66, 269.65, 312.26, 260.9, 318.56, 255.52, 318.56, 253.22, 319.94, 253.07, 323.78, 258.6, 325.93, 265.05, 325.93, 269.81, 324.86, 280.25, 324.4, 280.71, 328.85, 290.54, 329.47, 294.69, 328.7, 300.83, 321.33, 300.07, 317.64, 304.83, 306.58, 306.82, 289.22, 307.13, 284.92, 306.21, 266.95, 308.51, 254.82, 312.51, 230.86, 315.43, 227.79, 315.89, 223.64, 318.65, 206.44, 323.87, 203.67, 330.17, 195.07, 328.94, 174.95, 326.02, 165.73, 323.87, 162.05, 322.18, 155.44, 310.2, 145.31, 310.51, 143.16, 302.37, 136.09, 302.98, 132.1]], "area": 9927.667650000001, "iscrowd": 0, "image_id": 99807, "bbox": [253.07, 107.52, 77.1, 221.95], "category_id": 1, "id": 183413}, {"segmentation": [[71.23, 391.23, 78.45, 381.94, 87.74, 382.97, 85.68, 294.19, 99.1, 309.68, 107.35, 298.32, 100.13, 298.32, 92.9, 283.87, 82.58, 270.45, 80.52, 264.26, 82.58, 249.81, 70.19, 246.71, 59.87, 256.0, 59.87, 267.35, 51.61, 277.68, 49.55, 297.29, 46.45, 304.52, 40.26, 306.58, 55.74, 316.9, 62.97, 372.65, 64.0, 386.06, 69.16, 393.29, 76.39, 392.26]], "area": 4267.604050000001, "iscrowd": 0, "image_id": 401816, "bbox": [40.26, 246.71, 67.09, 146.58], "category_id": 1, "id": 190411}, {"segmentation": [[330.84, 421.62, 327.29, 429.7, 325.99, 436.49, 322.44, 437.78, 317.27, 435.2, 313.71, 432.94, 310.48, 429.06, 312.42, 428.73, 316.3, 429.7, 319.21, 427.12, 323.41, 420.01, 325.67, 415.8, 328.9, 412.25, 333.43, 411.28, 334.08, 409.66, 334.08, 405.46, 337.31, 399.32, 339.57, 395.76, 343.45, 392.85, 347.65, 389.62, 346.36, 387.68, 344.74, 386.39, 342.16, 385.09, 341.83, 383.15, 342.8, 380.57, 343.45, 380.24, 346.04, 380.24, 348.62, 378.63, 351.86, 378.63, 355.09, 379.6, 358.32, 380.57, 360.58, 383.15, 358.0, 386.39, 356.06, 389.62, 364.79, 399.32, 364.79, 401.26, 364.79, 407.4, 363.82, 410.31, 360.58, 412.89, 359.94, 415.16, 355.73, 423.88, 347.01, 435.52, 345.07, 440.37, 340.54, 443.6, 336.99, 444.57, 333.11, 441.02, 332.46, 436.17, 335.69, 436.81, 338.92, 433.91, 343.77, 421.94, 341.83, 420.01, 335.69, 421.62]], "area": 1434.06105, "iscrowd": 0, "image_id": 71027, "bbox": [310.48, 378.63, 54.31, 65.94], "category_id": 1, "id": 200193}, {"segmentation": [[352.44, 226.04, 347.39, 237.81, 346.55, 244.53, 348.23, 250.41, 338.99, 257.14, 332.27, 268.06, 333.95, 276.47, 338.99, 295.8, 344.03, 315.97, 346.55, 349.59, 351.6, 374.8, 352.44, 391.61, 355.8, 392.45, 369.25, 392.45, 365.04, 380.68, 370.93, 347.91, 375.97, 312.61, 391.94, 300.0, 390.26, 293.28, 384.37, 283.19, 379.33, 264.7, 374.29, 258.82, 369.25, 252.09, 366.72, 248.73, 367.56, 239.49, 362.52, 230.24, 354.12, 226.88]], "area": 4937.227500000002, "iscrowd": 0, "image_id": 401816, "bbox": [332.27, 226.04, 59.67, 166.41], "category_id": 1, "id": 203815}, {"segmentation": [[239.82, 244.81, 256.9, 255.48, 248.36, 267.58, 255.48, 275.41, 271.13, 328.78, 261.88, 330.92, 253.34, 312.42, 245.51, 376.46, 246.94, 394.25, 236.26, 399.24, 233.42, 398.52, 222.74, 337.32, 222.74, 337.32, 207.8, 325.94, 205.66, 315.26, 218.47, 266.16, 234.84, 242.67]], "area": 5081.724049999999, "iscrowd": 0, "image_id": 401816, "bbox": [205.66, 242.67, 65.47, 156.57], "category_id": 1, "id": 207592}, {"segmentation": [[209.67, 270.63, 231.02, 269.15, 239.85, 282.4, 246.47, 307.43, 244.26, 342.02, 245.0, 343.49, 197.16, 339.08, 213.35, 303.01, 189.8, 301.54, 207.46, 292.71], [279.59, 236.77, 294.31, 227.94, 300.2, 235.3, 280.33, 249.28, 322.28, 258.85, 313.45, 291.23, 289.9, 303.01, 298.73, 335.4, 295.79, 366.31, 293.58, 383.97, 270.76, 397.22, 270.02, 336.13, 270.76, 297.12, 266.34, 264.74, 275.18, 239.71]], "area": 7443.993800000002, "iscrowd": 0, "image_id": 278203, "bbox": [189.8, 227.94, 132.48, 169.28], "category_id": 2, "id": 241281}, {"segmentation": [[454.86, 415.4, 455.21, 414.21, 454.62, 413.26, 455.57, 413.62, 456.04, 414.09, 457.82, 412.67, 459.01, 412.91, 460.79, 413.98, 462.21, 415.4, 462.09, 417.65, 464.11, 418.36, 464.46, 418.96, 462.8, 419.31, 461.02, 419.91, 460.67, 422.75, 463.87, 423.94, 464.23, 426.31, 464.11, 430.23, 463.75, 435.33, 462.57, 437.1, 461.14, 436.99, 460.08, 435.21, 459.13, 432.6, 457.59, 434.26, 455.81, 433.78, 454.98, 415.87]], "area": 165.17769999999987, "iscrowd": 0, "image_id": 71027, "bbox": [454.62, 412.67, 9.84, 24.43], "category_id": 1, "id": 255694}, {"segmentation": [[75.15, 512.81, 70.66, 522.34, 67.6, 528.45, 69.04, 536.18, 71.74, 537.44, 72.46, 537.44, 74.61, 537.44, 81.44, 536.54, 88.46, 534.56, 89.17, 537.08, 90.43, 539.77, 91.51, 541.03, 93.13, 546.25, 94.03, 551.28, 94.39, 551.46, 99.06, 550.74, 101.04, 549.48, 103.2, 546.25, 96.91, 541.03, 95.47, 537.08, 94.93, 528.99, 96.73, 534.2, 101.58, 541.57, 104.82, 544.81, 106.43, 549.48, 112.91, 548.76, 118.84, 547.14, 119.38, 542.83, 109.85, 540.67, 105.17, 530.25, 99.96, 524.49, 96.19, 516.76, 96.37, 510.11, 76.23, 512.45]], "area": 1002.9830999999997, "iscrowd": 0, "image_id": 71027, "bbox": [67.6, 510.11, 51.78, 41.35], "category_id": 1, "id": 255815}, {"segmentation": [[175.97, 299.67, 179.64, 297.3, 179.64, 291.27, 180.58, 289.14, 183.78, 288.31, 187.92, 288.9, 188.99, 291.15, 188.4, 294.93, 187.45, 300.14, 186.27, 301.09, 183.9, 300.61, 183.78, 301.09, 185.67, 303.93, 177.86, 304.87]], "area": 139.00035000000014, "iscrowd": 0, "image_id": 210408, "bbox": [175.97, 288.31, 13.02, 16.56], "category_id": 1, "id": 256271}, {"segmentation": [[161.94, 313.94, 163.85, 303.32, 162.48, 300.32, 166.57, 297.87, 173.93, 297.59, 176.92, 300.59, 178.29, 305.49], [167.39, 286.69, 168.2, 283.97, 170.11, 283.15, 172.56, 282.61, 175.02, 282.61, 177.47, 283.97, 179.1, 285.33, 179.92, 288.6], [179.65, 293.23, 178.56, 295.96, 178.29, 297.05, 177.47, 297.87, 174.2, 298.14, 169.02, 298.14, 168.2, 295.69, 168.2, 292.42]], "area": 268.20985, "iscrowd": 0, "image_id": 210408, "bbox": [161.94, 282.61, 17.98, 31.33], "category_id": 1, "id": 261108}, {"segmentation": [[567.22, 274.62, 574.24, 277.43, 575.18, 284.91, 580.32, 295.67, 585.47, 325.62, 586.41, 340.13, 603.25, 355.57, 601.38, 367.26, 590.15, 369.13, 588.75, 365.86, 592.49, 360.24, 585.0, 348.55, 579.86, 343.4, 573.3, 343.87, 572.37, 367.26, 563.95, 367.26, 564.88, 361.18, 566.75, 341.06, 571.9, 336.85, 571.43, 320.94, 568.63, 314.86, 564.41, 311.58, 569.09, 309.24, 568.63, 301.76, 570.03, 297.55, 568.16, 292.87, 561.61, 283.98, 561.14, 278.36]], "area": 1398.9012000000007, "iscrowd": 0, "image_id": 210408, "bbox": [561.14, 274.62, 42.11, 94.51], "category_id": 1, "id": 261290}, {"segmentation": [[218.98, 300.15, 219.37, 292.32, 220.52, 290.52, 221.68, 284.88, 223.86, 282.95, 228.09, 282.44, 231.17, 287.7, 231.56, 292.06, 230.15, 293.99, 229.38, 297.84, 233.36, 301.04]], "area": 181.6047, "iscrowd": 0, "image_id": 210408, "bbox": [218.98, 282.44, 14.38, 18.6], "category_id": 1, "id": 261514}, {"segmentation": [[23.11, 255.08, 19.9, 258.6, 16.06, 260.85, 10.29, 262.13, 1.96, 259.57, 0.04, 244.19, 5.16, 242.59, 12.85, 244.83, 19.26, 244.51, 21.5, 248.03, 13.17, 248.67, 19.26, 250.28]], "area": 323.45635, "iscrowd": 0, "image_id": 210408, "bbox": [0.04, 242.59, 23.07, 19.54], "category_id": 1, "id": 264866}, {"segmentation": [[268.91, 468.58, 262.83, 462.87, 263.21, 457.93, 267.01, 451.47, 268.15, 443.49, 268.53, 438.17, 268.15, 433.99, 275.76, 436.27, 278.42, 436.65, 280.32, 430.57, 293.24, 444.63, 303.5, 448.81, 317.56, 457.93, 326.3, 459.83, 335.8, 456.79, 343.4, 453.37, 354.81, 453.75, 364.69, 458.69, 370.77, 465.92, 370.39, 504.68, 370.77, 513.8, 367.35, 514.94, 363.55, 517.22, 362.41, 533.18, 358.61, 540.79, 355.57, 540.79, 352.53, 540.41, 352.15, 537.36, 354.81, 529.76, 354.05, 514.94, 349.87, 504.3, 346.44, 497.46, 345.3, 492.14, 336.18, 496.32, 325.92, 500.12, 322.12, 498.98, 320.22, 513.04, 320.22, 526.34, 324.02, 541.17, 321.36, 546.11, 319.84, 547.25, 315.28, 546.11, 315.66, 543.07, 317.56, 535.46, 317.56, 529.0, 314.14, 520.26, 314.14, 511.9, 312.62, 506.2, 309.58, 502.02, 306.92, 500.5, 306.54, 508.1, 308.44, 524.82, 310.34, 540.03, 307.68, 547.63, 305.02, 549.15, 298.18, 546.87, 302.36, 539.65, 304.64, 530.52, 301.6, 524.06, 300.46, 511.9, 294.76, 500.88, 291.34, 495.56, 291.34, 493.66, 291.34, 482.64, 289.82, 472.38, 288.68, 468.58, 286.78, 461.73, 284.88, 460.97]], "area": 5438.391050000003, "iscrowd": 0, "image_id": 71027, "bbox": [262.83, 430.57, 107.94, 118.58], "category_id": 19, "id": 274489}, {"segmentation": [[31.59, 46.21, 71.68, 40.49, 88.86, 37.62, 116.06, 36.19, 136.11, 33.33, 177.63, 34.76, 223.45, 34.76, 250.65, 40.49, 272.13, 33.33, 277.85, 26.17, 283.58, 16.15, 272.13, 3.26, 0.0, 0.4, 0.09, 41.92, 10.11, 43.35]], "area": 10005.37695, "iscrowd": 0, "image_id": 158722, "bbox": [0.0, 0.4, 283.58, 45.81], "category_id": 28, "id": 280556}, {"segmentation": [[453.4, 50.09, 411.26, 48.62, 398.69, 55.27, 369.86, 58.97, 306.27, 67.84, 272.27, 53.79, 265.61, 38.27, 284.83, 11.65, 309.97, 0.0, 480.0, 5.0, 478.54, 53.79, 457.83, 55.27]], "area": 11140.090400000003, "iscrowd": 0, "image_id": 158722, "bbox": [265.61, 0.0, 214.39, 67.84], "category_id": 28, "id": 284233}, {"segmentation": [[96.43, 231.59, 90.75, 232.74, 86.23, 232.04, 83.55, 229.99, 81.0, 227.95, 80.55, 226.17, 81.83, 224.19, 84.31, 222.6, 89.67, 221.07, 93.62, 220.17, 98.41, 221.26, 99.75, 224.32, 99.43, 227.44, 98.54, 230.63]], "area": 179.53750000000022, "iscrowd": 0, "image_id": 277642, "bbox": [80.55, 220.17, 19.2, 12.57], "category_id": 37, "id": 303697}, {"segmentation": [[33.88, 319.18, 33.12, 317.77, 33.18, 313.31, 34.24, 311.85, 41.69, 311.73, 44.74, 308.03, 56.77, 307.97, 58.53, 307.97, 61.0, 311.44, 64.11, 311.79, 63.7, 315.66, 61.88, 316.54, 62.29, 318.95, 60.18, 319.65, 57.48, 319.07, 57.59, 317.3, 47.79, 317.25, 47.79, 319.71, 41.1, 319.53]], "area": 270.38744999999955, "iscrowd": 0, "image_id": 267127, "bbox": [33.12, 307.97, 30.99, 11.74], "category_id": 3, "id": 347777}, {"segmentation": [[283.4, 90.61, 341.15, 85.35, 375.28, 96.73, 375.28, 117.73, 369.16, 134.36, 369.16, 145.74, 370.91, 157.11, 376.16, 157.11, 371.78, 166.74, 376.16, 178.11, 373.53, 192.12, 368.28, 196.49, 363.03, 192.12, 363.91, 185.99, 355.16, 188.62, 352.53, 201.74, 345.53, 202.62, 339.4, 203.49, 330.65, 200.87, 311.4, 198.24, 293.9, 137.86, 278.15, 120.36, 284.27, 106.36]], "area": 8597.244800000004, "iscrowd": 0, "image_id": 278203, "bbox": [278.15, 85.35, 98.01, 118.14], "category_id": 8, "id": 396020}, {"segmentation": [[564.51, 160.09, 566.68, 176.34, 572.1, 181.76, 579.68, 181.76, 590.52, 179.59, 599.19, 174.18, 618.69, 159.01, 628.44, 138.42, 633.86, 130.84, 640.0, 115.67, 640.0, 142.75, 640.0, 174.18, 599.19, 205.6, 591.6, 224.02, 589.44, 244.6, 597.02, 270.61, 591.6, 337.79, 591.6, 363.79, 591.6, 364.88, 594.85, 375.71, 593.77, 397.38, 600.27, 413.63, 593.77, 435.3, 582.93, 447.22, 573.18, 441.81, 561.26, 441.81, 552.6, 436.39, 542.84, 433.14, 534.18, 420.14, 532.01, 380.05, 529.84, 335.62, 530.93, 284.7, 534.18, 272.78, 534.18, 251.11, 514.67, 277.11, 513.59, 278.19, 510.34, 256.52, 510.34, 243.52, 512.51, 234.85, 514.67, 228.35, 523.34, 207.77, 525.51, 198.01, 541.76, 207.77, 541.76, 207.77, 541.76, 194.76, 541.76, 189.35, 536.34, 175.26, 528.76, 162.26, 539.59, 151.42, 547.18, 143.84, 558.01, 143.84]], "area": 19631.008050000008, "iscrowd": 0, "image_id": 21989, "bbox": [510.34, 115.67, 129.66, 331.55], "category_id": 1, "id": 422655}, {"segmentation": [[101.87, 291.97, 97.39, 333.43, 106.36, 330.07, 110.84, 321.1, 117.56, 318.86, 126.53, 317.74, 131.01, 317.74, 161.26, 307.66, 163.51, 284.12, 170.23, 267.31, 170.23, 257.23, 169.11, 237.06, 165.75, 219.13, 163.51, 211.28, 170.23, 202.32, 172.47, 191.11, 175.83, 173.18, 174.71, 148.53, 163.51, 147.41, 154.54, 139.57, 151.18, 133.96, 138.85, 119.39, 131.01, 107.07, 129.89, 90.26, 127.65, 72.33, 122.04, 56.64, 87.31, 53.28, 72.74, 75.69, 78.34, 96.98, 78.34, 110.43, 72.74, 132.84, 61.53, 145.17, 58.17, 164.22, 61.53, 185.51, 71.62, 198.96, 71.62, 224.73, 74.98, 249.38, 81.7, 265.07, 94.03, 281.88, 97.84, 300.92]], "area": 21274.280649999997, "iscrowd": 0, "image_id": 158722, "bbox": [58.17, 53.28, 117.66, 280.15], "category_id": 1, "id": 432986}, {"segmentation": [[287.86, 354.46, 287.86, 345.29, 287.86, 334.16, 287.86, 321.06, 288.52, 308.62, 292.45, 298.79, 296.38, 283.08, 296.38, 275.22, 299.0, 257.54, 299.0, 245.75, 302.93, 241.17, 304.24, 227.42, 299.65, 220.21, 293.76, 214.32, 291.14, 197.29, 285.25, 185.51, 280.01, 179.61, 264.94, 178.3, 262.98, 185.51, 260.36, 194.67, 250.54, 203.19, 246.61, 211.7, 236.79, 224.8, 236.13, 243.13, 243.33, 252.3, 245.95, 252.3, 244.64, 260.81, 243.33, 274.57, 244.64, 293.56, 247.92, 295.52, 249.23, 298.79, 250.54, 303.38, 252.5, 315.82, 253.16, 332.85, 253.16, 347.91, 252.5, 357.73, 258.4, 356.42, 265.6, 350.53, 268.22, 343.32, 268.22, 330.88, 271.49, 319.1, 272.15, 326.95, 272.15, 336.12, 272.15, 348.56, 275.42, 354.46, 281.32, 356.42, 285.9, 356.42]], "area": 7838.3526500000025, "iscrowd": 0, "image_id": 574108, "bbox": [236.13, 178.3, 68.11, 179.43], "category_id": 1, "id": 433518}, {"segmentation": [[37.43, 97.88, 187.13, 61.42, 257.18, 45.1, 275.42, 53.74, 242.79, 75.81, 241.83, 90.21, 241.83, 98.84, 217.84, 102.68, 204.4, 120.91, 186.17, 133.39, 172.74, 145.87, 162.18, 177.53, 160.26, 205.36, 160.26, 224.56, 160.26, 230.31, 161.22, 235.11, 162.18, 236.07, 142.03, 217.84, 75.81, 213.04, 23.99, 232.23, 0.0, 262.94, 0.96, 108.44]], "area": 27751.482349999995, "iscrowd": 0, "image_id": 119729, "bbox": [0.0, 45.1, 275.42, 217.84], "category_id": 1, "id": 441284}, {"segmentation": [[251.61, 374.97, 275.01, 367.17, 287.69, 353.52, 290.62, 315.49, 288.67, 285.25, 293.54, 270.63, 295.49, 251.12, 278.91, 249.17, 283.79, 221.86, 290.62, 205.28, 295.49, 184.81, 295.49, 180.9, 257.46, 174.08, 253.56, 172.13, 245.76, 172.13, 234.05, 166.28, 233.08, 154.57, 239.91, 151.65, 251.61, 153.6, 266.24, 158.47, 286.72, 154.57, 287.69, 144.82, 294.52, 130.19, 304.27, 112.64, 313.05, 100.94, 309.15, 90.21, 306.22, 74.6, 306.22, 54.13, 311.1, 49.25, 330.6, 47.3, 346.2, 59.0, 345.23, 65.83, 341.33, 83.38, 345.23, 93.13, 364.73, 116.54, 371.56, 123.37, 377.41, 141.9, 381.31, 171.15, 381.31, 182.85, 373.51, 202.36, 362.78, 221.86, 357.91, 233.57, 358.88, 241.37, 350.11, 244.29, 341.33, 251.12, 339.38, 264.77, 339.38, 282.33, 344.25, 309.63, 358.88, 377.9, 358.88, 387.65, 334.5, 386.68, 315.0, 386.68, 314.02, 394.48, 311.1, 397.4, 291.59, 398.38, 265.26, 396.43, 249.66, 390.58, 250.63, 379.85]], "area": 23942.166999999998, "iscrowd": 0, "image_id": 129982, "bbox": [233.08, 47.3, 148.23, 351.08], "category_id": 1, "id": 462632}, {"segmentation": [[69.55, 272.92, 75.51, 267.15, 77.75, 264.91, 80.92, 261.93, 81.29, 260.81, 82.41, 259.69, 84.64, 259.88, 86.88, 262.86, 86.51, 264.54, 82.97, 268.08, 84.46, 270.87, 85.39, 271.62, 87.25, 270.69, 89.11, 271.62, 89.67, 274.23, 88.37, 274.23, 86.13, 274.41, 83.52, 274.41, 80.73, 270.69, 76.63, 274.6, 80.36, 280.19, 81.85, 287.08, 82.22, 288.57, 80.54, 288.95, 78.68, 287.64, 78.31, 290.62, 74.21, 290.44, 75.51, 285.03, 74.95, 282.24, 71.41, 279.26, 70.67, 278.51]], "area": 246.6203000000001, "iscrowd": 0, "image_id": 496360, "bbox": [69.55, 259.69, 20.12, 30.93], "category_id": 1, "id": 465871}, {"segmentation": [[547.41, 75.46, 545.92, 74.27, 545.32, 72.03, 543.83, 73.07, 539.35, 73.37, 538.3, 70.83, 538.45, 68.44, 537.7, 67.1, 537.25, 63.66, 537.1, 61.87, 535.61, 60.52, 536.06, 58.13, 536.66, 55.89, 536.36, 54.69, 535.46, 53.2, 535.16, 51.41, 533.97, 48.27, 532.62, 46.78, 532.47, 41.7, 535.61, 37.36, 537.85, 35.72, 540.09, 33.18, 548.16, 26.76, 551.3, 25.86, 556.98, 27.35, 561.76, 29.59, 564.74, 30.64, 570.72, 37.51, 573.41, 45.88, 572.96, 51.41, 572.96, 53.65, 570.72, 56.19, 568.47, 59.57, 565.93, 63.8, 563.9, 64.98, 564.91, 68.2, 567.11, 72.09, 573.38, 72.94, 578.29, 76.83, 583.53, 87.16, 584.72, 92.23, 585.23, 98.5, 586.24, 107.3, 586.75, 111.02, 585.73, 115.42, 583.02, 118.81, 580.99, 132.35, 580.15, 140.64, 579.81, 148.09, 580.66, 156.72, 584.21, 161.12, 584.21, 162.99, 581.33, 164.17, 580.66, 170.26, 578.45, 178.05, 575.92, 182.45, 572.36, 189.22, 570.84, 196.67, 569.31, 204.45, 568.98, 210.55, 567.45, 216.3, 566.61, 227.64, 567.45, 235.77, 569.82, 245.58, 570.84, 249.99, 571.68, 262.68, 572.19, 274.36, 572.7, 277.07, 572.02, 278.08, 574.22, 283.5, 573.38, 286.21, 572.7, 288.92, 575.07, 291.45, 575.75, 295.01, 576.76, 296.19, 577.27, 304.83, 579.3, 305.84, 577.95, 309.73, 578.12, 311.6, 579.3, 313.63, 575.92, 315.15, 550.7, 314.31, 549.68, 313.8, 549.68, 305.33, 546.3, 296.7, 546.46, 294.5, 549.85, 293.32, 552.73, 292.3, 552.73, 288.92, 552.05, 286.04, 552.56, 283.5, 554.25, 280.28, 553.91, 269.45, 552.39, 255.74, 550.53, 247.11, 546.3, 235.77, 543.59, 226.8, 540.54, 220.37, 541.05, 232.55, 542.74, 240.51, 545.11, 247.79, 546.3, 251.17, 546.3, 256.76, 545.79, 259.63, 542.91, 261.66, 541.39, 262.68, 542.06, 267.93, 541.39, 267.59, 540.37, 263.53, 538.51, 260.14, 535.29, 257.26, 532.08, 254.05, 528.18, 253.37, 528.52, 243.22, 527.68, 236.28, 527.85, 230.69, 524.97, 225.44, 520.91, 220.87, 516.51, 216.13, 517.01, 211.06, 521.58, 186.85, 524.97, 180.08, 529.88, 166.03, 529.37, 155.88, 524.8, 151.31, 523.78, 146.23, 520.06, 145.04, 518.54, 137.6, 520.57, 132.35, 522.94, 127.95, 527.17, 128.12, 530.72, 128.96, 534.62, 129.81, 536.65, 128.46, 537.83, 119.99, 537.83, 111.53, 538.51, 105.1, 541.56, 99.0, 544.77, 93.08, 546.97, 88.34, 548.83, 84.11, 550.7, 81.4, 549.85, 77.85, 547.31, 75.99]], "area": 11384.36185, "iscrowd": 0, "image_id": 129982, "bbox": [516.51, 25.86, 70.24, 289.29], "category_id": 1, "id": 475029}, {"segmentation": [[172.57, 248.29, 201.88, 227.51, 189.09, 214.72, 162.98, 204.07, 141.67, 197.14, 121.42, 196.08, 127.28, 189.15, 141.67, 183.82, 149.13, 188.62, 183.76, 196.08, 199.21, 191.28, 231.72, 187.02, 251.96, 177.43, 263.69, 166.77, 261.02, 159.31, 262.09, 155.05, 270.61, 149.72, 278.6, 149.72, 284.47, 152.92, 285.0, 161.44, 269.01, 165.7, 283.4, 167.3, 289.79, 172.1, 305.25, 172.63, 312.7, 171.03, 344.14, 171.57, 347.87, 175.83, 307.91, 182.75, 281.27, 183.29, 274.34, 196.61, 288.73, 214.72, 303.65, 224.31, 309.51, 223.78, 314.3, 234.44, 304.71, 241.36, 298.32, 237.64, 292.99, 230.71, 269.01, 206.2, 264.75, 203.0, 233.85, 210.46, 209.87, 241.36, 170.97, 258.95, 167.78, 265.87, 161.38, 261.61, 161.38, 247.76, 172.57, 246.16]], "area": 6004.766799999999, "iscrowd": 0, "image_id": 550576, "bbox": [121.42, 149.72, 226.45, 116.15], "category_id": 1, "id": 488406}, {"segmentation": [[169.21, 191.28, 164.74, 185.62, 163.84, 179.95, 162.35, 170.4, 159.07, 160.85, 157.87, 142.95, 155.19, 144.15, 153.1, 146.23, 148.63, 138.78, 152.21, 131.02, 154.0, 121.17, 154.89, 116.4, 157.58, 109.92, 161.75, 103.06, 164.14, 100.97, 171.0, 98.29, 169.17, 95.04, 169.59, 91.51, 170.01, 87.07, 171.14, 85.37, 173.12, 83.4, 177.92, 83.4, 180.74, 84.24, 182.43, 86.92, 183.28, 89.18, 183.14, 95.39, 180.74, 97.37, 179.61, 98.92, 179.05, 101.18, 182.86, 103.01, 186.81, 106.96, 193.72, 126.02, 195.56, 129.76, 196.97, 140.06, 199.79, 143.16, 199.23, 145.56, 197.25, 148.81, 193.44, 149.94, 192.45, 145.14, 192.45, 140.2, 191.89, 136.25, 186.95, 128.2, 184.97, 126.79, 183.7, 130.46, 181.59, 150.08, 179.19, 170.9, 176.22, 181.06, 178.2, 180.35, 179.33, 182.19, 176.51, 187.55, 170.86, 187.27, 171.0, 184.16, 172.41, 182.05, 172.27, 170.33, 172.41, 169.2, 171.42, 167.09, 169.31, 167.65, 167.61, 180.63, 169.03, 185.86, 171.14, 191.36, 168.88, 191.64]], "area": 2484.697650000001, "iscrowd": 0, "image_id": 158722, "bbox": [148.63, 83.4, 51.16, 108.24], "category_id": 1, "id": 488788}, {"segmentation": [[142.38, 244.85, 170.43, 236.22, 198.47, 220.04, 212.49, 200.63, 222.2, 179.06, 222.2, 157.48, 206.02, 61.48, 206.02, 40.99, 207.1, 16.18, 200.63, 4.31, 282.61, 2.16, 298.79, 57.17, 295.55, 110.02, 293.39, 158.56, 292.31, 185.53, 296.63, 196.31, 305.26, 185.53, 318.2, 159.64, 336.54, 149.93, 346.25, 144.54, 349.48, 128.36, 357.03, 110.02, 362.43, 94.92, 357.03, 56.09, 350.56, 25.89, 344.09, 5.39, 470.29, 2.16, 440.09, 114.34, 440.09, 132.67, 444.4, 158.56, 456.27, 183.37, 346.25, 238.38, 304.18, 244.85, 277.21, 249.17, 243.78, 257.8, 180.13, 282.61, 155.33, 288.0, 136.99, 284.76, 121.89, 276.13, 120.81, 253.48, 125.12, 248.09]], "area": 49617.30680000001, "iscrowd": 0, "image_id": 267127, "bbox": [120.81, 2.16, 349.48, 285.84], "category_id": 1, "id": 491137}, {"segmentation": [[564.22, 67.84, 552.7, 68.8, 546.94, 84.15, 540.23, 102.38, 540.23, 122.53, 544.07, 123.49, 548.86, 157.08, 560.38, 154.2, 554.62, 118.7, 573.81, 149.4, 577.65, 144.6, 559.42, 109.1, 584.83, 108.51, 574.77, 75.52, 562.3, 69.76, 562.3, 69.76]], "area": 2187.7571499999967, "iscrowd": 0, "image_id": 277961, "bbox": [540.23, 67.84, 44.6, 89.24], "category_id": 1, "id": 494090}, {"segmentation": [[437.84, 170.27, 401.08, 77.3, 391.35, 32.97, 381.62, 1.62, 606.49, 2.7, 627.03, 90.27, 631.35, 129.19, 640.0, 161.62, 636.76, 248.11, 592.43, 185.41, 592.43, 163.78, 570.81, 123.78, 543.78, 122.7, 525.41, 83.78, 488.65, 41.62, 494.05, 91.35, 507.03, 138.92, 502.7, 169.19, 498.38, 198.38, 476.76, 304.32, 485.41, 332.43, 494.05, 332.43, 509.19, 330.27, 504.86, 356.22, 497.3, 364.86, 485.41, 376.76, 468.11, 399.46, 452.97, 404.86, 431.35, 389.73, 429.19, 359.46, 438.92, 322.7, 445.41, 258.92, 445.41, 190.81, 435.68, 169.19]], "area": 44396.755199999985, "iscrowd": 0, "image_id": 2179, "bbox": [381.62, 1.62, 258.38, 403.24], "category_id": 1, "id": 497793}, {"segmentation": [[301.77, 162.46, 307.21, 166.91, 355.2, 158.0, 357.67, 153.55, 348.77, 148.11, 357.67, 141.18, 358.66, 129.8, 371.52, 125.35, 378.94, 132.28, 383.89, 137.72, 390.82, 144.65, 427.92, 155.04, 446.72, 157.51, 464.53, 158.0, 465.03, 158.0, 491.74, 157.51, 494.21, 156.02, 518.46, 155.04, 544.18, 147.12, 544.18, 160.48, 492.24, 168.39, 467.5, 176.8, 467.0, 197.09, 470.47, 212.42, 484.81, 206.98, 509.55, 207.48, 528.84, 205.0, 531.32, 220.34, 474.43, 224.3, 437.32, 202.53, 403.68, 186.7, 375.98, 170.87, 353.22, 189.67, 331.45, 192.63, 326.5, 189.17, 370.53, 166.91, 323.04, 173.34, 296.82, 169.38]], "area": 7698.801650000002, "iscrowd": 0, "image_id": 550576, "bbox": [296.82, 125.35, 247.36, 98.95], "category_id": 1, "id": 498806}, {"segmentation": [[382.13, 177.57, 379.87, 180.14, 377.94, 179.5, 376.66, 177.89, 375.05, 176.28, 374.72, 175.31, 375.05, 172.74, 376.33, 170.81, 377.94, 168.56, 378.26, 167.59, 388.88, 151.82, 391.46, 143.46, 394.35, 129.94, 398.22, 118.35, 403.04, 114.49, 411.09, 111.92, 413.99, 108.06, 417.2, 106.77, 415.92, 99.69, 415.92, 92.93, 421.06, 83.92, 423.32, 81.99, 428.79, 81.99, 435.87, 86.17, 437.8, 89.39, 439.41, 97.12, 436.83, 103.23, 432.65, 111.92, 437.16, 113.21, 442.95, 118.35, 442.95, 124.15, 442.3, 131.55, 442.95, 145.39, 441.34, 150.21, 437.16, 147.0, 435.22, 155.36, 436.19, 168.56, 433.94, 181.43, 429.75, 192.37, 426.21, 206.85, 423.32, 226.8, 418.49, 243.22, 413.66, 228.09, 411.73, 219.4, 409.48, 216.51, 408.51, 200.74, 410.45, 188.51, 409.8, 188.19, 404.01, 209.43, 402.72, 215.22, 399.18, 209.43, 395.96, 207.17, 392.75, 206.85, 389.21, 203.31, 388.88, 193.34, 389.85, 183.04, 387.28, 174.35, 394.68, 161.8, 398.54, 150.21, 392.75, 159.55, 385.02, 169.84, 384.38, 176.6, 382.77, 177.89]], "area": 5342.191799999999, "iscrowd": 0, "image_id": 158722, "bbox": [374.72, 81.99, 68.23, 161.23], "category_id": 1, "id": 506323}, {"segmentation": [[324.24, 134.19, 347.72, 103.2, 350.54, 90.53, 350.07, 81.14, 340.68, 68.46, 345.37, 60.48, 347.25, 51.56, 345.84, 40.29, 338.8, 39.82, 331.76, 39.35, 327.53, 45.45, 325.65, 49.68, 324.24, 52.5, 323.3, 56.72, 323.3, 61.89, 324.71, 65.17, 326.12, 68.93, 326.59, 69.87, 319.55, 70.34, 313.44, 72.22, 309.22, 78.79, 305.93, 86.3, 303.59, 91.0, 299.36, 93.81, 292.79, 97.1, 289.5, 98.04, 286.68, 98.51, 278.23, 98.04, 274.48, 96.16, 269.78, 94.28, 265.09, 92.88, 258.98, 92.41, 257.57, 91.47, 255.23, 91.47, 251.94, 91.47, 245.84, 93.81, 243.49, 97.57, 242.55, 110.25, 242.55, 121.05, 240.2, 131.84, 236.91, 136.07, 235.98, 137.95, 233.63, 138.89, 229.87, 138.89, 227.99, 138.42, 225.18, 137.95, 219.07, 137.01, 217.2, 140.3, 220.01, 144.05, 224.71, 148.28, 227.99, 150.16, 231.75, 152.5, 231.28, 153.44, 231.28, 157.2, 235.51, 163.3, 241.14, 165.18, 248.65, 166.59, 252.88, 165.65, 253.82, 162.83, 258.98, 158.14, 260.39, 154.38, 261.8, 150.16, 267.9, 143.11, 269.78, 138.89, 271.66, 134.66, 272.6, 131.38, 278.7, 130.44, 281.99, 129.97, 293.73, 130.44, 299.36, 131.38, 307.81, 131.38, 322.37, 135.6]], "area": 6322.928450000004, "iscrowd": 0, "image_id": 2179, "bbox": [217.2, 39.35, 133.34, 127.24], "category_id": 1, "id": 511525}, {"segmentation": [[442.45, 46.52, 439.14, 55.74, 442.92, 89.58, 422.34, 86.74, 432.27, 80.35, 426.12, 50.54, 432.27, 29.72, 426.12, 13.86, 417.84, 4.64, 407.67, 0.0, 453.33, 0.0, 460.67, 17.41, 454.99, 33.74, 456.17, 58.82, 456.41, 72.54, 455.94, 86.03, 445.05, 83.66, 446.47, 64.02]], "area": 2358.752900000001, "iscrowd": 0, "image_id": 129982, "bbox": [407.67, 0.0, 53.0, 89.58], "category_id": 1, "id": 516748}, {"segmentation": [[119.49, 200.61, 132.57, 151.76, 134.32, 148.27, 143.04, 158.74, 151.76, 150.02, 154.38, 145.66, 153.51, 133.45, 146.53, 126.47, 143.04, 123.85, 150.02, 112.51, 160.48, 113.39, 180.54, 117.75, 181.42, 137.81, 248.58, 179.67, 277.36, 211.07, 285.21, 221.54, 279.1, 233.75, 265.15, 222.41, 251.19, 202.35, 236.37, 189.27, 203.22, 172.7, 209.33, 206.71, 214.56, 249.45, 210.2, 286.08, 226.77, 325.33, 223.28, 333.18, 211.94, 333.18, 193.63, 305.27, 170.95, 319.22, 176.18, 329.69, 157.87, 328.82, 136.93, 307.89, 177.93, 285.21, 150.89, 232.0, 149.15, 189.27, 129.09, 211.07, 118.62, 199.73]], "area": 13640.974050000003, "iscrowd": 0, "image_id": 88360, "bbox": [118.62, 112.51, 166.59, 220.67], "category_id": 1, "id": 522009}, {"segmentation": [[427.75, 249.31, 438.84, 227.13, 445.5, 204.95, 449.19, 187.95, 446.97, 185.73, 447.71, 166.51, 450.67, 150.98, 451.41, 138.41, 456.59, 126.58, 459.54, 117.71, 465.11, 116.26, 466.03, 112.08, 462.11, 110.93, 461.19, 109.77, 461.19, 106.54, 461.42, 103.54, 460.5, 103.31, 460.96, 100.78, 461.65, 99.62, 462.34, 95.7, 462.34, 91.55, 463.73, 89.01, 466.96, 87.16, 470.65, 84.86, 476.88, 85.78, 480.0, 88.78, 480.0, 114.39, 479.34, 157.07, 480.0, 202.45, 476.34, 198.99, 474.26, 201.53, 462.96, 217.68, 455.81, 232.44, 455.34, 239.83, 458.81, 243.06, 475.88, 244.21, 474.73, 255.98, 474.26, 260.59, 459.73, 259.21, 456.96, 264.52, 433.43, 264.52, 429.04, 261.75, 426.04, 258.52, 427.43, 252.29]], "area": 4842.848649999999, "iscrowd": 0, "image_id": 158722, "bbox": [426.04, 84.86, 53.96, 179.66], "category_id": 1, "id": 529387}, {"segmentation": [[532.33, 46.19, 536.8, 58.82, 538.43, 73.88, 546.58, 73.88, 550.24, 79.18, 546.58, 89.76, 538.84, 104.42, 536.4, 128.04, 521.33, 128.04, 519.7, 136.18, 514.82, 128.04, 514.41, 116.23, 520.52, 96.69, 528.25, 78.77, 521.74, 75.1, 520.52, 66.96, 518.07, 61.67, 520.11, 49.45], [531.92, 150.96, 530.29, 163.59, 529.88, 170.92, 524.59, 180.28, 521.33, 194.54, 516.85, 205.94, 513.59, 191.28, 514.41, 181.91, 520.11, 151.37], [568.16, 208.79, 566.53, 221.0, 567.75, 227.52, 571.01, 228.33, 570.19, 225.48, 570.6, 218.97]], "area": 2248.3709500000014, "iscrowd": 0, "image_id": 129982, "bbox": [513.59, 46.19, 57.42, 182.14], "category_id": 1, "id": 533683}, {"segmentation": [[640.0, 34.69, 633.27, 35.62, 625.87, 39.32, 623.1, 50.87, 624.48, 58.73, 625.87, 67.06, 630.96, 67.98, 637.43, 72.14, 632.34, 81.85, 625.87, 107.28, 624.02, 107.28, 617.08, 93.41, 612.0, 98.96, 605.99, 102.19, 605.99, 111.44, 617.08, 115.6, 621.71, 123.0, 624.02, 125.77, 622.17, 140.57, 620.78, 153.52, 620.78, 162.76, 625.87, 163.69, 619.4, 189.12, 618.47, 213.62, 617.55, 219.63, 617.08, 239.05, 610.61, 248.3, 598.59, 251.53, 591.19, 256.62, 592.12, 261.71, 604.6, 261.71, 617.08, 263.09, 628.64, 265.4, 634.65, 264.02, 630.03, 243.21, 630.03, 234.43, 640.0, 201.14, 640.0, 124.85, 640.0, 117.91], [640.0, 247.59, 631.97, 251.31, 634.16, 262.68, 637.87, 265.08, 640.0, 263.77]], "area": 4240.8906499999985, "iscrowd": 0, "image_id": 129982, "bbox": [591.19, 34.69, 48.81, 230.71], "category_id": 1, "id": 535868}, {"segmentation": [[300.27, 238.49, 299.19, 218.04, 295.96, 214.82, 289.51, 211.59, 288.43, 193.29, 299.19, 183.61, 317.49, 190.06, 327.17, 196.52, 347.62, 204.05, 385.29, 239.57, 382.06, 250.33, 368.07, 258.94, 351.93, 269.7, 343.32, 272.93, 329.33, 262.17, 318.57, 248.18, 309.96, 239.57], [335.78, 310.6, 325.02, 335.35, 329.33, 368.72, 336.86, 392.39, 351.93, 394.55, 351.93, 380.56, 358.39, 321.36, 363.77, 306.3, 367.0, 295.53, 386.37, 325.67, 388.52, 343.96, 388.52, 355.8, 389.6, 361.18, 401.43, 357.96, 408.97, 322.44, 398.21, 286.92, 396.05, 275.09, 380.99, 280.47, 355.16, 299.84, 337.94, 305.22]], "area": 8899.401600000001, "iscrowd": 0, "image_id": 277642, "bbox": [288.43, 183.61, 120.54, 210.94], "category_id": 1, "id": 537898}, {"segmentation": [[364.4, 160.58, 371.74, 135.05, 378.74, 119.66, 368.6, 86.79, 364.05, 93.08, 359.15, 111.27, 360.55, 117.91, 360.9, 135.75, 357.76, 154.63, 355.31, 159.53]], "area": 838.8577000000009, "iscrowd": 0, "image_id": 158722, "bbox": [355.31, 86.79, 23.43, 73.79], "category_id": 1, "id": 539152}, {"segmentation": [[428.83, 306.48, 428.83, 300.56, 425.13, 287.98, 420.7, 279.1, 416.26, 273.18, 412.56, 269.48, 405.16, 266.52, 402.94, 265.78, 396.28, 264.3, 395.54, 259.12, 397.76, 250.98, 394.8, 239.14, 394.06, 236.92, 390.36, 232.48, 386.66, 232.48, 381.48, 232.48, 373.34, 233.96, 367.42, 238.4, 366.68, 239.14, 365.2, 245.8, 365.94, 249.5, 365.2, 251.72, 362.98, 256.16, 362.98, 261.34, 363.72, 262.08, 365.94, 265.78, 368.16, 270.22, 372.6, 270.96, 376.3, 270.68, 378.74, 271.17, 381.18, 276.05, 380.21, 278.98, 373.37, 282.4, 368.98, 285.32, 365.56, 289.23, 365.07, 317.55, 369.47, 320.48, 365.07, 329.26, 360.68, 335.61, 356.77, 340.98, 354.33, 345.86, 346.03, 348.3, 343.59, 350.74, 343.59, 355.14, 345.06, 356.6, 344.57, 358.07, 343.59, 361.97, 347.5, 361.48, 352.87, 359.53, 356.77, 353.67, 357.26, 349.77, 361.17, 348.79, 365.56, 346.35, 361.17, 355.14, 360.19, 359.53, 358.73, 364.41, 355.31, 378.08, 354.33, 384.92, 350.43, 399.84, 352.38, 404.24, 350.91, 413.03, 352.87, 429.14, 353.36, 436.46, 351.4, 440.85, 348.96, 446.22, 345.54, 449.64, 343.1, 455.01, 339.2, 458.43, 336.27, 459.4, 337.24, 465.75, 343.59, 466.24, 351.89, 464.29, 353.36, 460.38, 363.12, 457.45, 368.98, 455.01, 369.95, 451.59, 368.98, 442.32, 364.58, 437.92, 364.1, 428.16, 364.58, 423.28, 367.02, 410.1, 366.05, 407.17, 366.05, 402.77, 370.93, 406.68, 373.86, 402.77, 379.23, 398.38, 382.16, 393.5, 385.09, 397.89, 385.09, 408.14, 393.39, 410.58, 398.27, 413.03, 400.71, 413.51, 403.64, 424.25, 405.1, 435.48, 408.52, 441.83, 409.5, 446.71, 408.03, 458.92, 404.62, 465.75, 405.1, 473.56, 410.47, 476.0, 417.31, 476.0, 421.7, 475.03, 424.14, 472.1, 424.14, 463.31, 423.17, 459.4, 421.7, 454.52, 419.26, 449.15, 418.29, 444.27, 417.31, 435.97, 417.31, 425.23, 417.8, 416.44, 414.38, 408.63, 413.89, 406.68, 413.4, 404.24, 412.92, 389.77, 412.43, 383.42, 414.38, 373.66, 413.89, 367.8, 417.8, 362.92, 419.26, 353.64, 417.8, 341.43, 417.8, 336.55, 418.29, 326.65, 417.8, 318.35, 417.8, 317.37, 423.17, 321.77, 428.05, 326.65, 432.44, 332.02, 442.7, 343.73, 444.16, 346.66, 445.14, 350.57, 442.21, 359.85, 438.79, 372.54, 438.79, 381.33, 443.67, 388.16, 450.02, 392.07, 455.39, 394.02, 462.22, 374.98, 463.69, 359.85, 456.85, 349.59, 453.44, 346.66, 450.51, 344.71, 447.58, 342.27, 441.23, 330.07]], "area": 12185.957900000003, "iscrowd": 0, "image_id": 288403, "bbox": [336.27, 232.48, 127.42, 243.52], "category_id": 1, "id": 541610}, {"segmentation": [[232.89, 168.34, 232.89, 160.35, 229.85, 162.63, 226.05, 163.01, 207.4, 148.94, 227.19, 149.32, 231.75, 142.47, 234.42, 139.8, 237.46, 138.66, 242.79, 138.66, 246.97, 138.66, 247.35, 136.76, 246.59, 133.72, 246.59, 132.19, 246.59, 128.77, 246.59, 126.87, 246.59, 124.2, 246.97, 122.3, 253.06, 112.79, 262.57, 104.42, 272.85, 107.08, 278.17, 108.6, 278.93, 112.41, 278.93, 126.11, 275.51, 132.96, 270.56, 139.8, 277.79, 144.75, 277.79, 148.18, 288.83, 166.06, 291.49, 168.72, 291.49, 172.53, 291.49, 175.19, 293.77, 174.05, 297.96, 169.86, 298.34, 174.43, 297.96, 182.42, 294.15, 189.27, 292.63, 192.69, 292.25, 200.3, 292.25, 202.59, 288.45, 207.53, 283.88, 207.53, 278.55, 204.49, 278.17, 208.67, 281.22, 209.82, 281.98, 215.14, 281.98, 223.13, 281.6, 226.18, 278.93, 230.36, 278.17, 231.5, 277.41, 238.35, 273.99, 246.34, 273.23, 254.72, 279.7, 261.94, 283.5, 265.75, 283.5, 273.74, 286.16, 290.1, 291.11, 294.67, 291.87, 303.04, 291.87, 315.59, 288.07, 326.63, 281.22, 330.43, 264.48, 332.34, 271.7, 323.97, 273.99, 312.93, 271.7, 305.32, 255.34, 266.13, 253.44, 247.49, 252.3, 238.73, 250.4, 238.35, 248.49, 242.54, 248.49, 246.72, 245.07, 251.29, 242.03, 266.89, 241.27, 269.17, 243.55, 275.26, 248.11, 288.58, 248.11, 300.76, 251.16, 309.51, 253.06, 311.79, 253.06, 315.21, 249.26, 319.4, 243.93, 321.68, 230.61, 320.92, 229.47, 319.4, 226.81, 311.41, 223.38, 292.38, 222.62, 285.54, 218.82, 272.22, 218.82, 268.03, 217.67, 258.9, 218.05, 255.1, 218.44, 250.91, 227.57, 214.0, 227.95, 205.63, 228.71, 197.26, 229.85, 189.27, 230.23, 187.37, 231.37, 169.1]], "area": 10842.0394, "iscrowd": 0, "image_id": 88360, "bbox": [207.4, 104.42, 90.94, 227.92], "category_id": 1, "id": 542957}, {"segmentation": [[360.6, 211.27, 390.06, 244.34, 394.87, 235.32, 398.48, 228.71, 411.71, 237.12, 412.91, 218.48, 415.31, 205.86, 418.32, 200.45, 406.9, 163.17, 399.68, 154.75, 392.47, 153.55, 379.84, 158.36, 378.04, 162.57, 375.63, 172.19, 376.84, 181.81, 375.03, 187.22, 360.6, 209.47], [414.71, 278.61, 399.68, 292.44, 409.3, 324.9, 397.88, 363.98, 388.26, 360.98, 384.65, 332.72, 384.65, 329.71, 361.2, 353.76, 362.41, 358.57, 366.01, 362.78, 370.82, 371.8, 375.63, 374.8, 382.85, 377.81, 396.68, 381.42, 397.28, 373.0, 403.89, 368.79, 429.74, 368.79, 436.36, 366.39, 430.34, 362.78, 421.33, 357.97, 418.32, 351.36, 428.54, 324.3, 431.55, 310.47, 420.72, 288.23, 420.12, 284.02]], "area": 6056.48595, "iscrowd": 0, "image_id": 277642, "bbox": [360.6, 153.55, 75.76, 227.87], "category_id": 1, "id": 543086}, {"segmentation": [[138.54, 353.75, 143.92, 328.19, 145.27, 310.71, 145.27, 285.15, 131.82, 250.18, 135.85, 234.04, 166.79, 221.93, 195.03, 228.66, 211.17, 256.91, 212.52, 283.81, 205.79, 308.02, 200.41, 312.05, 203.1, 338.95, 209.83, 356.44, 230.0, 376.62, 239.42, 395.45, 230.0, 400.83, 213.86, 387.38, 209.83, 383.34, 203.1, 377.96, 209.83, 419.66, 216.55, 455.97, 227.31, 499.02, 231.35, 524.57, 238.07, 538.02, 246.15, 550.13, 256.91, 555.51, 278.43, 551.47, 285.15, 571.65, 264.98, 577.03, 250.18, 583.75, 231.35, 583.75, 217.9, 568.96, 211.17, 550.13, 207.14, 511.12, 207.14, 500.36, 186.96, 505.74, 169.48, 476.15, 166.79, 478.84, 147.96, 505.74, 138.54, 512.47, 100.88, 532.64, 90.12, 540.71, 87.43, 550.13, 82.05, 562.23, 75.32, 572.99, 75.32, 591.82, 69.94, 603.93, 55.15, 589.13, 59.18, 550.13, 57.84, 539.37, 73.98, 527.26, 83.39, 525.92, 118.36, 494.98, 110.29, 480.18, 112.98, 461.35, 129.13, 442.52, 137.2, 418.31, 137.2, 387.38, 142.58, 348.37]], "area": 26903.228, "iscrowd": 0, "image_id": 288403, "bbox": [55.15, 221.93, 230.0, 382.0], "category_id": 1, "id": 544782}, {"segmentation": [[306.22, 111.58, 307.03, 104.5, 308.12, 102.32, 310.58, 100.41, 310.85, 95.78, 310.85, 91.42, 314.12, 87.33, 319.3, 86.79, 320.66, 89.51, 320.66, 91.96, 320.66, 95.23, 320.11, 97.96, 320.93, 100.68, 318.48, 103.95, 316.3, 107.22, 311.39, 110.49, 307.58, 110.77], [306.76, 118.12, 312.76, 114.85, 317.66, 114.04, 317.66, 123.3, 309.49, 123.85, 306.49, 123.3, 307.03, 118.4]], "area": 307.83780000000047, "iscrowd": 0, "image_id": 158722, "bbox": [306.22, 86.79, 14.71, 37.06], "category_id": 1, "id": 554989}, {"segmentation": [[81.42, 206.77, 80.92, 215.12, 80.75, 216.63, 81.25, 216.63, 85.26, 216.46, 85.76, 215.29, 85.6, 206.94, 86.21, 204.91, 86.41, 203.79, 85.6, 199.74, 85.29, 198.83, 85.39, 198.01, 84.89, 197.61, 84.58, 195.28, 83.87, 194.36, 82.45, 194.26, 81.85, 195.28, 81.34, 196.59, 81.54, 198.52, 81.64, 199.54, 81.14, 199.94, 81.03, 201.36, 80.32, 202.17, 79.41, 203.69, 79.51, 205.82, 79.51, 206.43, 79.72, 206.94, 81.44, 206.33]], "area": 103.64594999999997, "iscrowd": 0, "image_id": 550576, "bbox": [79.41, 194.26, 7.0, 22.37], "category_id": 1, "id": 555234}, {"segmentation": [[327.92, 271.36, 339.35, 253.77, 346.39, 252.89, 352.55, 245.85, 360.46, 239.69, 356.95, 253.77, 356.07, 286.31, 358.71, 298.63, 360.46, 317.98, 362.22, 347.89, 364.86, 360.21, 370.14, 380.0, 373.66, 390.23, 361.34, 412.22, 367.5, 419.26, 382.46, 415.74, 385.98, 410.46, 388.61, 407.82, 385.1, 421.02, 384.22, 429.81, 398.29, 430.69, 405.33, 425.42, 409.73, 365.6, 407.09, 346.25, 410.61, 320.74, 412.37, 308.42, 412.37, 295.22, 412.37, 279.39, 415.0, 271.47, 415.88, 263.56, 416.76, 253.88, 428.2, 256.52, 436.12, 254.76, 438.76, 241.56, 436.12, 231.01, 431.72, 216.93, 427.32, 215.17, 422.92, 207.26, 414.12, 201.1, 404.73, 193.66, 399.83, 189.59, 400.84, 180.5, 403.36, 175.45, 402.35, 165.34, 397.05, 153.72, 390.23, 150.44, 382.4, 150.44, 376.84, 153.22, 373.3, 157.76, 371.53, 165.09, 371.28, 173.93, 370.27, 179.24, 376.08, 188.58, 376.33, 190.35, 368.0, 194.65, 359.66, 201.47, 337.43, 225.21, 328.59, 238.6, 321.77, 248.2, 316.72, 255.05, 311.16, 265.92, 317.98, 271.47, 326.82, 271.22]], "area": 14868.088899999999, "iscrowd": 0, "image_id": 21989, "bbox": [311.16, 150.44, 127.6, 280.25], "category_id": 1, "id": 556312}, {"segmentation": [[459.6, 120.57, 459.6, 131.77, 462.87, 134.57, 460.3, 136.44, 458.9, 139.7, 458.9, 145.3, 458.44, 161.17, 477.33, 161.4, 472.9, 152.07, 468.24, 152.07, 466.84, 146.94, 475.7, 146.94, 474.3, 139.94, 471.04, 137.84, 476.17, 137.37, 479.9, 132.47, 479.9, 128.27, 478.5, 126.87, 479.67, 122.9, 475.47, 118.24]], "area": 681.4386999999999, "iscrowd": 0, "image_id": 277961, "bbox": [458.44, 118.24, 21.46, 43.16], "category_id": 1, "id": 557104}, {"segmentation": [[249.64, 98.92, 246.63, 106.95, 246.88, 109.96, 243.87, 114.97, 243.62, 115.47, 243.87, 116.48, 251.64, 115.97, 253.65, 112.21, 259.67, 109.96, 262.42, 103.94, 262.93, 98.42, 260.67, 98.42, 262.68, 94.66, 260.67, 87.14, 257.41, 84.88, 254.9, 85.89, 252.39, 89.65, 251.89, 95.91, 251.89, 96.17]], "area": 333.81295000000057, "iscrowd": 0, "image_id": 158722, "bbox": [243.62, 84.88, 19.31, 31.6], "category_id": 1, "id": 557449}, {"segmentation": [[105.23, 211.65, 107.38, 174.06, 70.87, 169.77, 65.5, 193.39, 70.87, 209.5, 52.62, 241.71, 42.95, 277.15, 66.58, 302.92, 63.36, 349.1, 63.36, 394.2, 67.65, 437.15, 94.5, 442.52, 91.28, 399.57, 91.28, 365.2, 94.5, 337.28, 107.38, 366.28, 105.23, 404.94, 100.94, 417.82, 124.56, 442.52, 131.01, 432.86, 128.86, 393.12, 127.79, 371.65, 125.64, 335.14, 119.19, 304.0, 126.71, 304.0, 133.15, 285.74, 126.71, 266.41, 112.75, 229.9]], "area": 14875.837949999997, "iscrowd": 0, "image_id": 21989, "bbox": [42.95, 169.77, 90.2, 272.75], "category_id": 1, "id": 563466}, {"segmentation": [[164.99, 207.3, 167.02, 206.59, 169.36, 206.79, 171.8, 207.3, 172.61, 208.11, 172.21, 209.64, 173.02, 209.64, 173.63, 209.03, 174.95, 208.62, 176.98, 209.74, 178.3, 210.25, 178.41, 212.18, 178.71, 213.5, 178.71, 214.82, 179.73, 216.14, 179.02, 218.48, 178.81, 218.68, 177.49, 217.16, 176.48, 215.84, 175.36, 215.03, 174.14, 214.82, 173.43, 214.92, 172.92, 216.14, 172.92, 217.16, 171.7, 217.77, 170.78, 217.16, 170.48, 216.45, 169.36, 216.96, 169.06, 219.19, 166.72, 219.29, 167.63, 217.46, 168.24, 216.55, 167.94, 215.53, 166.72, 215.84, 166.01, 214.92, 165.6, 213.4, 164.89, 213.5, 164.48, 211.98, 163.97, 211.27, 164.48, 209.84, 164.79, 208.32, 165.09, 206.69]], "area": 119.0963, "iscrowd": 0, "image_id": 550576, "bbox": [163.97, 206.59, 15.76, 12.7], "category_id": 1, "id": 567487}, {"segmentation": [[293.83, 422.58, 298.86, 398.26, 290.47, 353.81, 277.89, 300.98, 280.41, 254.02, 256.93, 266.6, 251.06, 259.89, 246.87, 269.12, 238.48, 264.93, 242.67, 240.61, 245.19, 235.58, 249.38, 238.09, 247.7, 250.67, 265.31, 239.77, 272.86, 217.97, 272.86, 217.97, 272.86, 204.55, 290.47, 196.16, 293.83, 178.55, 293.83, 167.65, 310.6, 160.11, 324.85, 171.85, 324.85, 192.81, 333.24, 206.23, 341.62, 223.84, 314.79, 259.06, 303.89, 269.12, 321.5, 281.7, 339.11, 261.57, 335.75, 288.41, 341.62, 355.49, 341.62, 408.32, 338.27, 424.25, 318.98, 430.12, 324.01, 407.48, 317.31, 397.42, 314.79, 400.77, 303.89, 422.58, 296.34, 421.74]], "area": 13203.453950000001, "iscrowd": 0, "image_id": 21989, "bbox": [238.48, 160.11, 103.14, 270.01], "category_id": 1, "id": 569723}, {"segmentation": [[442.25, 422.9, 442.25, 393.78, 432.54, 358.18, 441.17, 299.94, 443.33, 261.11, 443.33, 226.59, 441.17, 207.17, 436.85, 216.88, 424.99, 212.57, 407.73, 195.31, 446.56, 178.05, 456.27, 175.89, 459.51, 161.87, 462.74, 150.0, 464.9, 135.98, 483.24, 137.06, 492.94, 154.32, 500.49, 164.03, 517.75, 171.58, 523.15, 178.05, 529.62, 185.6, 532.85, 203.94, 531.78, 214.72, 506.97, 247.08, 506.97, 247.08, 506.97, 267.58, 505.89, 285.91, 506.97, 332.3, 504.81, 349.56, 503.73, 372.21, 494.02, 394.86, 494.02, 408.88, 480.0, 422.9, 471.37, 418.59, 472.45, 377.6, 481.08, 350.63, 482.16, 332.3, 465.98, 345.24, 465.98, 373.29, 467.06, 380.84, 465.98, 411.04, 453.03, 426.14]], "area": 18352.1341, "iscrowd": 0, "image_id": 21989, "bbox": [407.73, 135.98, 125.12, 290.16], "category_id": 1, "id": 569901}, {"segmentation": [[318.12, 204.81, 317.65, 191.2, 320.47, 169.6, 325.64, 163.03, 331.74, 163.03, 335.97, 158.33, 349.58, 155.51, 375.4, 157.39, 409.21, 101.99, 402.17, 96.83, 343.95, 66.78, 340.66, 66.78, 343.01, 74.76, 349.11, 84.15, 348.17, 99.17, 329.86, 125.47, 323.76, 133.92, 291.36, 130.16, 278.22, 132.51, 273.52, 134.39, 312.96, 167.72, 312.49, 198.17, 302.16, 199.58, 304.51, 203.33], [241.59, 122.58, 234.55, 122.11, 235.02, 131.5, 225.63, 133.84, 227.51, 129.15, 232.2, 128.68, 231.26, 102.39, 236.9, 96.75, 231.26, 91.12, 239.25, 87.83, 238.78, 83.61, 240.19, 78.44, 247.23, 73.75, 259.9, 73.75, 277.75, 77.03, 296.06, 67.64, 306.86, 50.74, 312.49, 50.74, 323.76, 57.78, 325.17, 69.52, 315.78, 73.28, 302.63, 93.47, 286.2, 101.45, 258.03, 90.18, 249.11, 89.71, 244.88, 96.75, 243.0, 102.39]], "area": 8308.413249999998, "iscrowd": 0, "image_id": 2179, "bbox": [225.63, 50.74, 183.58, 154.07], "category_id": 15, "id": 575767}, {"segmentation": [[350.56, 189.66, 344.09, 201.53, 333.3, 213.39, 326.83, 217.71, 320.36, 222.02, 325.75, 229.57, 331.15, 229.57, 360.27, 193.98, 378.61, 200.45, 432.54, 229.57, 423.91, 251.15, 416.36, 284.58, 422.83, 286.74, 423.91, 286.74, 427.15, 286.74, 445.48, 228.49, 446.56, 195.06, 409.89, 175.64, 371.06, 158.38, 348.4, 158.38, 330.07, 172.4, 346.25, 179.96, 351.64, 183.19]], "area": 5181.605099999998, "iscrowd": 0, "image_id": 2179, "bbox": [320.36, 158.38, 126.2, 128.36], "category_id": 15, "id": 578456}, {"segmentation": [[322.36, 224.27, 319.8, 224.27, 316.87, 225.0, 317.97, 220.61, 316.5, 217.68, 317.6, 211.46, 316.14, 204.15, 316.5, 200.85, 316.5, 198.66, 313.58, 202.68, 314.31, 211.46, 315.41, 218.41, 313.94, 222.44, 312.85, 226.46, 312.85, 227.56, 310.29, 227.56, 308.82, 225.73, 309.19, 222.44, 309.19, 216.58, 308.82, 209.63, 307.73, 203.78, 304.8, 199.76, 304.8, 206.71, 306.26, 211.83, 307.73, 219.14, 305.53, 223.53, 304.43, 224.63, 302.97, 224.27, 302.6, 216.95, 301.14, 213.66, 298.95, 203.05, 297.85, 198.66, 295.29, 194.27, 293.82, 188.41, 294.56, 182.56, 294.56, 178.9, 294.56, 175.98, 316.15, 165.08, 318.02, 158.04, 318.96, 155.69, 325.07, 155.22, 332.58, 158.04, 334.46, 159.44, 334.46, 165.08, 334.93, 172.12, 328.82, 182.45, 333.99, 187.61, 333.52, 188.55, 328.35, 190.9, 325.54, 192.78, 324.13, 198.88, 322.72, 204.05, 321.31, 210.62, 322.72, 217.66, 323.19, 223.77]], "area": 1690.6649500000008, "iscrowd": 0, "image_id": 83142, "bbox": [293.82, 155.22, 41.11, 72.34], "category_id": 24, "id": 588148}, {"segmentation": [[123.14, 180.31, 151.54, 158.3, 205.51, 166.11, 233.2, 172.5, 267.28, 205.87, 272.96, 227.88, 277.22, 254.87, 272.96, 271.91, 269.41, 308.83, 282.19, 318.06, 315.57, 328.0, 301.36, 336.52, 281.48, 333.68, 279.35, 353.56, 286.45, 357.82, 280.77, 369.89, 277.93, 378.41, 278.64, 398.3, 277.22, 412.5, 267.28, 418.89, 257.34, 416.05, 248.82, 378.41, 237.46, 355.69, 241.01, 330.84, 224.68, 323.03, 219.0, 303.15, 234.62, 298.18, 241.72, 306.7, 240.3, 288.95, 231.07, 283.27, 221.13, 288.95, 216.16, 304.57, 215.45, 332.97, 209.06, 343.62, 201.96, 393.33, 191.31, 398.3, 189.18, 382.68, 196.28, 334.39, 204.09, 281.85, 178.53, 273.33, 162.19, 304.57, 170.72, 347.17, 182.08, 379.13, 177.11, 384.1, 156.51, 386.94, 153.67, 378.41, 147.99, 363.5, 138.05, 292.5, 136.63, 254.16, 116.75, 208.0, 125.27, 178.89]], "area": 25718.174, "iscrowd": 0, "image_id": 257791, "bbox": [116.75, 158.3, 198.82, 260.59], "category_id": 24, "id": 588754}, {"segmentation": [[186.15, 132.42, 159.29, 131.46, 125.7, 163.12, 118.98, 162.16, 118.98, 142.01, 128.58, 129.54, 162.16, 118.02, 192.87, 122.82, 205.34, 112.27, 228.37, 99.79, 266.76, 100.75, 314.73, 111.31, 349.28, 104.59, 391.5, 109.39, 415.49, 142.01, 416.44, 171.76, 430.84, 208.22, 445.23, 227.41, 479.78, 229.33, 461.54, 237.97, 443.31, 237.01, 446.19, 253.32, 437.56, 277.31, 442.35, 316.65, 432.76, 323.37, 412.61, 318.57, 415.49, 305.14, 395.33, 271.55, 396.29, 245.64, 401.09, 242.77, 384.78, 216.86, 374.22, 221.66, 366.55, 274.43, 373.27, 308.02, 383.82, 323.37, 370.39, 326.25, 357.91, 310.89, 352.16, 245.64, 350.24, 209.18, 336.8, 214.94, 329.13, 267.71, 321.45, 297.46, 324.33, 319.53, 306.1, 319.53, 312.81, 307.06, 305.14, 293.62, 314.73, 273.47, 319.53, 216.86, 293.62, 227.41, 251.4, 213.02, 244.69, 205.34, 220.7, 226.45, 209.18, 283.07, 226.45, 322.41, 228.37, 326.25, 212.06, 329.13, 207.26, 310.89, 200.55, 283.07, 195.75, 254.28, 187.11, 272.51, 187.11, 314.73, 187.11, 321.45, 188.07, 327.21, 164.08, 324.33, 176.56, 311.85, 168.88, 297.46, 174.64, 252.36, 187.11, 227.41, 197.67, 213.98, 196.71, 189.99, 184.23, 173.68, 178.48, 149.69, 186.15, 133.38]], "area": 37795.09760000002, "iscrowd": 0, "image_id": 277961, "bbox": [118.98, 99.79, 360.8, 229.34], "category_id": 24, "id": 588829}, {"segmentation": [[88.42, 222.27, 88.99, 209.73, 88.99, 198.89, 92.98, 195.19, 102.67, 192.34, 118.06, 188.92, 120.06, 183.5, 128.9, 175.24, 136.31, 173.24, 140.01, 173.24, 139.73, 176.95, 140.58, 182.08, 141.75, 188.84, 144.18, 194.2, 142.97, 198.01, 139.5, 198.18, 132.24, 191.26, 129.64, 196.1, 128.26, 201.81, 129.3, 205.62, 126.35, 207.7, 127.05, 213.58, 128.6, 219.29, 125.66, 220.85, 123.93, 214.79, 119.95, 213.06, 121.33, 221.89, 121.33, 227.08, 119.6, 227.94, 117.7, 222.23, 114.59, 214.1, 110.26, 215.14, 109.57, 222.75, 108.01, 234.35, 106.97, 241.79, 105.07, 238.67, 102.53, 223.52, 101.1, 218.21, 98.85, 215.96, 95.79, 220.66, 94.77, 228.02, 91.7, 228.22, 90.07, 223.52, 88.63, 221.68]], "area": 1574.1445999999999, "iscrowd": 0, "image_id": 83142, "bbox": [88.42, 173.24, 55.76, 68.55], "category_id": 24, "id": 589719}, {"segmentation": [[640.0, 213.01, 627.11, 213.64, 624.61, 215.51, 623.35, 226.78, 626.48, 241.18, 621.48, 256.82, 615.84, 269.97, 613.97, 275.6, 610.21, 279.35, 603.95, 277.48, 597.07, 277.48, 596.44, 267.46, 590.81, 250.56, 587.68, 224.28, 587.05, 211.13, 585.8, 200.49, 597.07, 187.35, 611.46, 162.94, 625.23, 148.54, 640.0, 142.91]], "area": 4533.094750000003, "iscrowd": 0, "image_id": 140295, "bbox": [585.8, 142.91, 54.2, 136.44], "category_id": 24, "id": 589897}, {"segmentation": [[281.67, 383.28, 291.31, 383.28, 288.3, 373.04, 287.69, 370.63, 285.89, 356.77, 285.89, 350.14, 283.48, 333.27, 289.5, 323.63, 288.9, 317.0, 297.94, 306.15, 299.75, 303.14, 307.58, 314.59, 313.0, 323.63, 324.45, 317.6, 320.84, 297.11, 322.04, 285.66, 316.62, 273.61, 323.85, 266.98, 328.67, 259.75, 325.05, 256.74, 317.22, 267.59, 315.41, 266.98, 309.39, 257.94, 299.75, 257.94, 298.54, 263.37, 295.53, 261.56, 280.46, 256.14, 270.22, 249.51, 258.77, 240.47, 239.49, 233.24, 219.6, 247.1, 214.78, 267.59, 217.79, 286.87, 217.79, 292.89, 212.97, 298.32, 214.78, 304.34, 218.4, 310.37, 220.2, 320.61, 222.01, 335.07, 222.01, 345.92, 226.83, 352.55, 223.82, 360.38, 233.46, 357.97, 230.45, 336.28, 232.26, 309.16, 232.26, 300.73, 235.87, 313.98, 238.28, 327.84, 240.69, 338.09, 241.9, 344.11, 238.88, 349.54, 240.09, 356.16, 247.92, 357.97, 250.94, 338.69, 246.12, 318.2, 246.12, 309.16, 263.59, 314.59, 269.01, 318.8, 272.63, 336.88, 269.01, 347.73, 262.39, 355.56, 260.58, 362.19, 259.97, 370.02, 266.6, 371.83, 268.41, 365.81, 277.45, 345.92, 278.05, 361.59, 279.26, 372.43, 282.27, 376.65, 281.07, 382.08]], "area": 8646.683299999997, "iscrowd": 0, "image_id": 443278, "bbox": [212.97, 233.24, 115.7, 150.04], "category_id": 24, "id": 590213}, {"segmentation": [[241.24, 71.6, 260.95, 70.5, 286.52, 74.15, 345.67, 112.13, 392.41, 154.49, 430.76, 186.62, 421.63, 197.94, 424.18, 205.25, 457.41, 223.14, 500.0, 233.73, 497.58, 270.24, 500.0, 337.07, 500.0, 375.0, 366.49, 375.0, 324.49, 375.0, 317.92, 375.0, 319.75, 340.72, 303.31, 313.7, 279.21, 269.88, 263.88, 283.03, 213.48, 308.95, 195.96, 313.7, 191.94, 328.31, 187.19, 335.61, 178.06, 335.97, 167.11, 335.97, 156.88, 333.42, 140.82, 325.75, 130.23, 305.67, 128.77, 298.0, 129.86, 276.82, 152.87, 227.16, 176.6, 183.7, 183.91, 164.35, 182.08, 156.68, 179.16, 141.34, 185.37, 124.54, 185.37, 117.61, 172.95, 95.33, 172.22, 89.12, 177.7, 88.03, 184.27, 95.33, 195.59, 100.08, 203.99, 92.78, 214.21, 85.47, 226.63, 77.8]], "area": 72513.48089999998, "iscrowd": 0, "image_id": 133377, "bbox": [128.77, 70.5, 371.23, 304.5], "category_id": 24, "id": 590559}, {"segmentation": [[253.09, 187.19, 272.19, 191.97, 281.74, 209.16, 284.61, 233.03, 280.79, 247.36, 261.69, 251.18, 247.36, 246.4, 243.54, 220.62, 243.54, 189.1], [219.66, 172.87, 150.9, 187.19, 116.52, 176.69, 79.27, 191.01, 71.63, 229.21, 79.27, 251.18, 80.22, 277.92, 82.13, 338.09, 82.13, 348.6, 96.46, 360.06, 99.33, 359.1, 93.6, 335.22, 94.55, 309.44, 94.55, 295.11, 98.37, 264.55, 99.33, 258.82, 111.74, 270.28, 103.15, 305.62, 105.06, 323.76, 106.01, 334.27, 113.65, 347.64, 116.52, 356.24, 134.66, 359.1, 125.11, 332.36, 120.34, 316.12, 121.29, 300.84, 124.16, 279.83, 147.08, 277.92, 171.91, 277.92, 172.87, 313.26, 171.91, 343.82, 170.0, 360.06, 180.51, 373.43, 196.74, 375.34, 199.61, 354.33, 192.92, 327.58, 191.01, 304.66, 193.88, 289.38, 202.47, 271.24, 226.35, 252.13, 225.39, 215.84]], "area": 20458.97945, "iscrowd": 0, "image_id": 140295, "bbox": [71.63, 172.87, 212.98, 202.47], "category_id": 24, "id": 592108}, {"segmentation": [[262.7, 208.11, 277.84, 176.76, 270.27, 159.46, 286.49, 142.16, 297.3, 138.92, 330.81, 155.14, 375.14, 141.08, 392.43, 168.11, 401.08, 198.38, 387.03, 202.7, 367.57, 183.24, 355.68, 205.95, 353.51, 253.51, 366.49, 266.49, 353.51, 266.49, 342.7, 250.27, 343.78, 208.11, 336.22, 208.11, 323.24, 249.19, 321.08, 258.92, 316.76, 254.59, 313.51, 241.62, 317.84, 205.95, 298.38, 196.22, 292.97, 212.43, 296.22, 232.97, 294.05, 263.24, 290.81, 245.95, 283.24, 215.68, 280.0, 188.65, 267.03, 205.95]], "area": 8210.076700000007, "iscrowd": 0, "image_id": 443278, "bbox": [262.7, 138.92, 138.38, 127.57], "category_id": 24, "id": 592311}, {"segmentation": [[343.67, 388.84, 320.32, 394.61, 316.92, 381.76, 291.47, 347.66, 292.78, 326.41, 285.44, 308.58, 262.36, 280.25, 256.06, 284.18, 250.03, 289.17, 239.54, 321.69, 236.92, 347.92, 235.61, 359.99, 236.65, 369.43, 245.83, 391.46, 252.39, 404.31, 231.15, 404.05, 232.98, 394.87, 224.85, 385.43, 220.66, 330.61, 218.29, 309.36, 216.2, 294.94, 207.54, 327.72, 206.23, 341.89, 202.82, 363.4, 201.77, 369.43, 205.97, 388.58, 212.0, 399.85, 194.16, 399.33, 196.0, 389.1, 190.23, 377.56, 193.64, 346.87, 192.07, 309.36, 192.33, 293.89, 173.18, 296.51, 151.15, 296.25, 124.66, 287.59, 104.99, 274.74, 84.79, 298.61, 67.22, 328.77, 65.64, 346.35, 74.3, 368.12, 83.48, 383.07, 83.48, 387.26, 87.67, 394.61, 87.67, 405.1, 77.97, 405.36, 80.33, 413.49, 56.72, 412.18, 56.46, 401.95, 53.31, 398.81, 49.12, 398.28, 45.97, 393.3, 39.41, 341.36, 35.22, 327.72, 47.02, 310.94, 50.43, 295.99, 34.17, 263.99, 34.17, 287.07, 15.28, 288.12, 18.95, 259.01, 22.36, 221.5, 29.45, 207.6, 39.41, 187.4, 72.46, 174.02, 109.97, 173.5, 167.15, 183.73, 186.82, 185.04, 216.72, 184.52, 243.47, 194.74, 251.87, 194.48, 269.97, 199.99, 289.64, 213.89, 304.85, 236.97, 316.65, 256.91, 320.06, 263.99, 332.65, 285.23, 336.85, 288.64, 354.68, 283.92, 357.31, 284.97, 344.46, 301.5, 340.52, 306.48, 342.62, 316.45, 344.19, 329.56, 345.5, 357.63, 348.13, 369.43, 351.27, 383.07, 349.7, 387.0]], "area": 42478.687750000005, "iscrowd": 0, "image_id": 529348, "bbox": [15.28, 173.5, 342.03, 239.99], "category_id": 24, "id": 592337}, {"segmentation": [[325.75, 241.29, 399.1, 189.51, 491.87, 188.43, 584.63, 178.73, 629.93, 198.14, 640.0, 240.21, 638.56, 303.85, 621.3, 359.94, 608.36, 411.72, 590.02, 403.09, 596.49, 364.25, 595.42, 340.52, 582.47, 322.19, 572.76, 364.25, 565.21, 389.06, 537.17, 392.3, 550.11, 356.7, 560.9, 328.66, 563.06, 306.01, 551.19, 281.2, 543.64, 268.25, 481.08, 282.28, 457.35, 282.28, 458.43, 329.74, 459.51, 352.39, 460.58, 371.81, 449.8, 381.51, 447.64, 348.07, 440.09, 325.42, 436.85, 313.56, 428.22, 372.88, 426.07, 384.75, 405.57, 390.14, 414.2, 353.47, 414.2, 331.9, 414.2, 304.93, 410.97, 295.22, 380.76, 282.28, 339.78, 318.95, 337.62, 316.79, 358.11, 291.99, 341.93, 285.51, 334.38, 274.73], [291.24, 372.88, 299.87, 389.06, 309.57, 386.91, 316.04, 394.46, 317.12, 380.43, 297.71, 354.55, 293.39, 351.31, 289.08, 368.57]], "area": 38962.387250000014, "iscrowd": 0, "image_id": 529348, "bbox": [289.08, 178.73, 350.92, 232.99], "category_id": 24, "id": 592776}, {"segmentation": [[351.32, 246.71, 362.79, 257.23, 380.01, 261.05, 412.53, 269.66, 441.22, 265.83, 448.87, 263.92, 453.65, 261.05, 468.0, 265.83, 468.0, 290.7, 461.3, 323.22, 461.3, 345.22, 466.09, 365.3, 472.78, 366.26, 491.91, 376.78, 503.39, 375.82, 504.34, 348.09, 501.47, 316.52, 500.52, 276.35, 496.69, 257.23, 518.69, 255.31, 533.99, 288.79, 556.95, 299.31, 565.55, 337.57, 576.08, 355.74, 596.16, 367.22, 609.55, 367.22, 629.64, 355.74, 632.5, 322.26, 625.81, 299.31, 622.94, 287.83, 628.68, 264.88, 630.59, 249.57, 604.77, 217.06, 573.21, 182.62, 538.77, 164.45, 515.82, 155.84, 487.13, 154.89, 434.52, 153.93, 376.18, 140.54, 358.01, 134.8, 298.71, 146.28, 275.76, 158.71, 265.24, 183.58, 262.37, 208.45, 264.28, 208.45, 266.19, 209.4, 274.8, 203.67, 276.71, 212.27, 281.5, 232.36, 284.37, 246.71, 284.37, 259.14, 273.84, 284.01, 273.84, 295.48, 292.97, 317.48, 294.89, 318.44, 305.41, 321.31, 312.1, 332.78, 298.71, 337.57, 279.58, 336.61, 279.58, 336.61, 278.63, 374.87, 280.54, 381.56, 283.41, 394.95, 285.32, 398.78, 294.89, 398.78, 297.76, 367.22, 295.84, 359.56, 300.62, 346.17, 317.84, 352.87, 322.62, 361.48, 327.4, 365.3, 333.14, 352.87, 336.01, 326.09, 337.93, 303.13, 338.88, 283.05, 333.14, 265.83, 334.1, 249.57]], "area": 52425.133899999986, "iscrowd": 0, "image_id": 257791, "bbox": [262.37, 134.8, 370.13, 263.98], "category_id": 24, "id": 593448}, {"segmentation": [[297.88, 137.96, 301.45, 126.46, 313.75, 116.94, 324.06, 114.16, 339.53, 118.53, 366.11, 126.06, 369.68, 119.72, 381.97, 111.39, 401.01, 107.02, 413.71, 110.59, 416.88, 115.75, 414.9, 125.27, 418.47, 144.71, 424.81, 158.19, 423.23, 163.75, 417.67, 169.7, 412.91, 170.49, 410.93, 163.75, 395.46, 151.45, 393.08, 169.3, 380.39, 139.55, 373.25, 137.17, 337.55, 147.48, 336.36, 152.64, 328.03, 153.83, 298.68, 138.76], [374.44, 193.89, 375.23, 209.76, 377.21, 226.42, 383.96, 233.56, 391.1, 233.96, 383.16, 224.83, 383.56, 199.84, 376.02, 193.1], [362.54, 197.86, 361.35, 210.95, 358.97, 219.28, 357.38, 221.66, 355.0, 208.57, 360.95, 197.86]], "area": 4319.930100000002, "iscrowd": 0, "image_id": 443278, "bbox": [297.88, 107.02, 126.93, 126.94], "category_id": 24, "id": 593456}, {"segmentation": [[109.74, 124.17, 126.12, 127.34, 133.51, 138.96, 143.55, 150.05, 143.02, 157.98, 141.97, 159.56, 136.16, 153.22, 135.1, 144.77, 131.93, 152.69, 129.29, 159.56, 114.5, 142.13, 107.1, 126.81]], "area": 598.6475, "iscrowd": 0, "image_id": 88360, "bbox": [107.1, 124.17, 36.45, 35.39], "category_id": 34, "id": 605190}, {"segmentation": [[269.78, 165.12, 274.67, 162.91, 281.3, 161.9, 288.11, 161.23, 299.03, 162.03, 300.09, 165.79, 298.22, 168.4, 292.68, 169.6, 287.08, 171.21, 275.34, 169.54, 280.72, 170.21, 270.78, 168.81]], "area": 223.38470000000012, "iscrowd": 0, "image_id": 550576, "bbox": [269.78, 161.23, 30.31, 9.98], "category_id": 34, "id": 605249}, {"segmentation": [[319.89, 294.54, 338.36, 315.42, 350.0, 329.08, 363.66, 349.56, 358.84, 349.56, 329.93, 322.65, 315.07, 304.98, 312.26, 296.95, 316.67, 289.72], [309.45, 306.19, 335.95, 337.51, 343.58, 347.55, 337.96, 347.95, 304.23, 312.21, 303.82, 310.2]], "area": 995.2102499999992, "iscrowd": 0, "image_id": 99807, "bbox": [303.82, 289.72, 59.84, 59.84], "category_id": 35, "id": 607248}, {"segmentation": [[265.02, 384.06, 274.72, 358.12, 282.13, 358.41, 273.29, 385.49, 266.73, 384.92], [285.83, 336.75, 286.69, 329.62, 289.54, 326.48, 291.82, 328.76, 289.25, 341.02, 284.41, 349.86], [252.77, 372.66, 256.76, 354.99, 264.45, 351.85, 258.18, 373.8, 255.05, 373.52]], "area": 420.44485000000003, "iscrowd": 0, "image_id": 574108, "bbox": [252.77, 326.48, 39.05, 59.01], "category_id": 35, "id": 608918}, {"segmentation": [[251.29, 308.6, 247.87, 307.96, 242.53, 307.96, 239.97, 308.18, 236.98, 310.53, 232.28, 316.5, 229.29, 320.35, 227.16, 324.41, 227.16, 327.61, 228.87, 329.96, 230.36, 331.66, 230.36, 336.36, 230.79, 339.35, 232.71, 341.27, 235.7, 341.7, 240.61, 341.7, 245.52, 338.92, 249.36, 335.72, 256.41, 333.16, 257.69, 330.17, 257.69, 327.39, 257.69, 324.19, 255.98, 320.78, 253.63, 316.93, 250.64, 313.52, 252.57, 310.95, 252.57, 308.6]], "area": 740.7422500000002, "iscrowd": 0, "image_id": 277642, "bbox": [227.16, 307.96, 30.53, 33.74], "category_id": 40, "id": 635975}, {"segmentation": [[436.71, 377.78, 443.05, 349.28, 451.75, 344.92, 455.71, 345.72, 464.82, 364.32, 454.92, 395.19, 444.23, 388.07]], "area": 899.4455999999998, "iscrowd": 0, "image_id": 288403, "bbox": [436.71, 344.92, 28.11, 50.27], "category_id": 40, "id": 636033}, {"segmentation": [[318.83, 261.42, 326.54, 255.26, 332.4, 252.17, 338.57, 248.16, 346.59, 246.0, 345.04, 252.48, 347.51, 259.57, 348.44, 263.89, 349.67, 268.52, 350.29, 271.91, 349.98, 275.61, 341.96, 277.46]], "area": 546.7184500000005, "iscrowd": 0, "image_id": 277642, "bbox": [318.83, 246.0, 31.46, 31.46], "category_id": 40, "id": 636290}, {"segmentation": [[542.69, 302.61, 545.41, 306.96, 544.5, 307.68, 536.35, 312.21, 520.4, 311.31, 513.7, 304.6, 516.6, 298.08, 523.66, 291.74, 527.29, 290.47, 538.52, 298.08]], "area": 442.75959999999947, "iscrowd": 0, "image_id": 288403, "bbox": [513.7, 290.47, 31.71, 21.74], "category_id": 40, "id": 637303}, {"segmentation": [[283.04, 305.84, 288.17, 308.51, 292.27, 318.98, 290.22, 331.71, 282.01, 331.3, 276.26, 333.56, 271.95, 328.42, 274.42, 311.8]], "area": 411.7903500000001, "iscrowd": 0, "image_id": 288403, "bbox": [271.95, 305.84, 20.32, 27.72], "category_id": 40, "id": 637493}, {"segmentation": [[626.86, 195.45, 611.97, 235.34, 572.08, 268.85, 491.76, 277.89, 477.4, 285.87, 457.72, 310.34, 462.51, 325.23, 500.27, 340.13, 513.57, 315.66, 563.04, 309.81, 593.35, 328.42, 598.14, 366.19, 583.78, 388.0, 562.5, 400.76, 521.55, 398.63, 507.72, 374.7, 352.4, 377.89, 343.89, 402.89, 332.72, 420.44, 277.41, 420.97, 265.7, 410.34, 260.92, 378.42, 260.92, 347.04, 274.21, 320.44, 288.04, 317.79, 328.47, 314.59, 344.42, 332.68, 354.53, 352.36, 396.55, 342.25, 397.08, 325.23, 369.42, 302.36, 355.59, 293.32, 264.11, 303.96, 247.09, 311.93, 242.83, 319.91, 249.75, 329.49, 263.04, 336.4, 256.66, 345.98, 189.11, 350.76, 176.34, 351.83, 171.03, 366.72, 144.43, 366.19, 141.24, 348.1, 144.96, 327.89, 151.88, 320.98, 170.49, 320.44, 176.88, 335.87, 199.22, 335.34, 219.43, 320.98, 214.11, 314.59, 199.75, 303.96, 167.83, 301.3, 159.32, 296.51, 158.79, 290.13, 172.62, 276.83, 248.15, 252.89, 318.36, 243.85, 341.77, 242.79, 383.79, 215.13, 429.53, 188.53, 466.23, 175.77, 518.89, 162.47, 556.65, 162.47, 584.84, 163.53, 614.1, 173.11, 626.86, 188.0]], "area": 63121.220250000006, "iscrowd": 0, "image_id": 267127, "bbox": [141.24, 162.47, 485.62, 258.5], "category_id": 41, "id": 639528}, {"segmentation": [[229.39, 155.7, 212.39, 135.11, 209.66, 129.77, 202.47, 124.44, 196.14, 124.44, 193.53, 124.44, 190.43, 126.79, 190.06, 128.78, 190.68, 134.11, 191.05, 136.84, 187.83, 137.84, 185.72, 139.95, 187.08, 143.92, 192.17, 146.89, 195.15, 146.15, 197.5, 145.65, 198.37, 145.28, 206.44, 156.32, 204.33, 158.56, 203.83, 162.03, 204.95, 164.14, 205.82, 166.5, 210.41, 166.99, 212.76, 165.38, 215.25, 164.14, 221.32, 164.14, 223.68, 165.13, 225.92, 166.74, 228.27, 167.24, 230.01, 166.74, 231.75, 162.65, 233.86, 160.91, 234.23, 159.3, 232.86, 156.57]], "area": 1004.795749999999, "iscrowd": 0, "image_id": 2179, "bbox": [185.72, 124.44, 48.51, 42.8], "category_id": 41, "id": 642696}, {"segmentation": [[514.17, 342.76, 521.42, 346.38, 525.65, 348.2, 530.48, 347.59, 540.74, 345.78, 633.13, 350.01, 637.97, 350.01, 639.78, 350.01, 640.0, 397.71, 630.12, 391.67, 620.45, 389.86, 527.46, 382.62, 476.73, 382.01, 474.92, 380.8, 476.73, 373.56, 483.38, 370.54, 497.26, 366.31, 504.51, 359.67, 508.13, 357.25, 511.76, 346.38]], "area": 5616.1783000000005, "iscrowd": 0, "image_id": 2179, "bbox": [474.92, 342.76, 165.08, 54.95], "category_id": 41, "id": 645916}, {"segmentation": [[113.39, 114.93, 97.26, 55.16, 84.45, 3.92, 83.98, 1.07, 193.57, 1.07, 186.93, 100.7, 187.41, 113.51, 189.3, 123.95, 176.02, 127.27, 169.38, 122.53, 133.79, 113.99, 121.46, 114.93, 114.34, 114.93]], "area": 10741.248, "iscrowd": 0, "image_id": 80756, "bbox": [83.98, 1.07, 109.59, 126.2], "category_id": 47, "id": 677336}, {"segmentation": [[245.77, 96.22, 255.14, 99.1, 301.98, 123.6, 321.44, 136.58, 332.97, 137.3, 350.99, 135.86, 345.95, 141.62, 325.05, 144.5, 317.12, 144.5, 309.91, 136.58, 294.05, 123.6, 275.32, 112.79, 252.97, 104.14, 245.05, 98.38]], "area": 579.1682999999997, "iscrowd": 0, "image_id": 80756, "bbox": [245.05, 96.22, 105.94, 48.28], "category_id": 48, "id": 685661}, {"segmentation": [[630.92, 103.91, 612.1, 95.72, 591.09, 87.54, 572.81, 80.72, 555.9, 74.44, 536.53, 69.8, 527.53, 67.08, 486.06, 28.88, 487.97, 25.88, 534.89, 66.26, 543.35, 69.53, 492.88, 26.7, 497.24, 23.7, 564.36, 72.8, 569.54, 76.62, 570.09, 75.81, 501.61, 21.79, 504.34, 19.33, 561.36, 62.98, 589.18, 79.35, 612.92, 87.54, 628.47, 89.72, 639.65, 92.99, 639.93, 108.82]], "area": 2027.6302500000002, "iscrowd": 0, "image_id": 69906, "bbox": [486.06, 19.33, 153.87, 89.49], "category_id": 48, "id": 690175}, {"segmentation": [[1.11, 209.51, 20.29, 209.72, 45.29, 210.55, 69.46, 209.09, 73.01, 210.35, 61.34, 215.76, 33.41, 217.85, 18.41, 215.35, 16.33, 214.1, 0.49, 214.93]], "area": 414.03859999999946, "iscrowd": 0, "image_id": 80756, "bbox": [0.49, 209.09, 72.52, 8.76], "category_id": 49, "id": 698497}, {"segmentation": [[208.65, 320.54, 221.62, 291.35, 245.41, 266.49, 275.68, 250.27, 308.11, 249.19, 328.65, 250.27, 361.08, 264.32, 387.03, 288.11, 395.68, 308.65, 403.24, 325.95, 404.32, 362.7, 389.19, 408.11, 363.24, 430.81, 318.92, 451.35, 285.41, 447.03, 254.05, 429.73, 221.62, 403.78, 210.81, 372.43, 206.49, 342.16]], "area": 31086.885799999996, "iscrowd": 0, "image_id": 118607, "bbox": [206.49, 249.19, 197.83, 202.16], "category_id": 51, "id": 713829}, {"segmentation": [[309.57, 480.0, 341.93, 462.74, 368.9, 442.25, 388.31, 409.89, 396.94, 373.21, 391.55, 339.78, 368.9, 304.18, 340.85, 262.11, 305.26, 242.7, 277.21, 240.54, 244.85, 244.85, 189.84, 273.98, 166.11, 314.97, 153.17, 355.96, 151.01, 392.63, 171.51, 455.19, 203.87, 475.69]], "area": 46188.005800000006, "iscrowd": 0, "image_id": 444515, "bbox": [151.01, 240.54, 245.93, 239.46], "category_id": 51, "id": 714233}, {"segmentation": [[40.99, 221.12, 37.75, 156.4, 52.85, 116.49, 84.13, 80.9, 133.75, 58.25, 190.92, 59.33, 240.54, 87.37, 269.66, 133.75, 275.06, 186.61, 263.19, 227.6, 232.99, 272.9, 194.16, 290.16, 153.17, 300.94, 113.26, 290.16, 67.96, 266.43, 39.91, 220.04]], "area": 44975.6114, "iscrowd": 0, "image_id": 118607, "bbox": [37.75, 58.25, 237.31, 242.69], "category_id": 51, "id": 715145}, {"segmentation": [[334.18, 56.88, 350.58, 50.5, 378.83, 44.09, 391.07, 43.26, 412.37, 46.81, 429.41, 51.78, 455.69, 67.4, 479.12, 97.22, 491.19, 125.63, 495.45, 161.13, 490.48, 182.43, 483.38, 203.02, 472.02, 224.32, 456.4, 236.39, 433.67, 247.05, 418.76, 255.57, 401.72, 263.38, 379.0, 263.38, 361.25, 261.25, 347.05, 254.86, 329.3, 247.05, 313.68, 238.52, 300.89, 221.48, 290.24, 204.44, 280.3, 187.4, 276.04, 164.68, 276.75, 132.02, 278.88, 117.11, 290.95, 93.67, 295.92, 82.31, 304.44, 73.08, 312.97, 64.56, 319.36, 61.01, 340.66, 53.91]], "area": 37772.818899999984, "iscrowd": 0, "image_id": 118607, "bbox": [276.04, 43.26, 219.41, 220.12], "category_id": 51, "id": 718319}, {"segmentation": [[414.2, 389.21, 404.49, 344.99, 403.42, 329.89, 403.42, 313.71, 405.57, 289.98, 417.44, 266.25, 430.38, 250.07, 472.45, 225.26, 501.57, 216.63, 527.46, 212.31, 557.66, 219.87, 588.94, 236.04, 604.04, 260.85, 616.99, 277.03, 626.7, 312.63, 616.99, 354.7, 609.44, 405.39, 581.39, 437.75, 553.35, 448.54, 515.6, 450.7, 481.08, 448.54, 442.25, 430.2, 426.07, 412.94]], "area": 42392.8527, "iscrowd": 0, "image_id": 118607, "bbox": [403.42, 212.31, 223.28, 238.39], "category_id": 51, "id": 1039052}, {"segmentation": [[369.95, 639.6, 377.43, 616.47, 377.43, 604.91, 377.43, 598.78, 370.63, 584.5, 370.63, 579.73, 375.39, 572.25, 382.87, 577.01, 388.32, 583.14, 401.24, 579.05, 408.73, 560.68, 412.81, 547.76, 408.73, 541.64, 399.88, 541.64, 392.4, 553.2, 387.64, 557.28, 386.27, 545.72, 386.27, 540.96, 380.83, 533.47, 379.47, 532.79, 370.63, 525.31, 364.5, 521.23, 360.42, 538.92, 351.58, 532.79, 346.82, 527.35, 342.05, 528.71, 342.05, 535.51, 340.69, 545.72, 344.78, 552.52, 325.05, 540.96, 320.96, 545.04, 324.37, 557.28, 327.77, 560.68, 321.65, 562.73, 321.65, 567.49, 316.88, 574.29, 314.16, 575.65, 316.2, 581.09, 324.37, 589.94, 333.21, 594.02, 314.16, 602.18, 324.37, 610.35, 330.49, 617.83, 357.7, 611.03, 350.9, 626.68, 350.9, 637.56, 361.1, 639.6, 369.27, 637.56]], "area": 5914.920000000002, "iscrowd": 0, "image_id": 158722, "bbox": [314.16, 521.23, 98.65, 118.37], "category_id": 52, "id": 1042346}, {"segmentation": [[318.49, 30.57, 301.55, 55.42, 262.02, 79.13, 233.79, 142.38, 232.66, 246.29, 251.86, 289.2, 281.22, 334.38, 300.42, 321.96, 310.59, 277.91, 326.4, 228.22, 330.92, 103.98, 315.11, 61.06, 342.21, 33.96, 326.4, 11.37]], "area": 21122.536200000002, "iscrowd": 0, "image_id": 403096, "bbox": [232.66, 11.37, 109.55, 323.01], "category_id": 52, "id": 1043817}, {"segmentation": [[384.0, 3.39, 406.59, 24.85, 431.44, 49.69, 451.76, 60.99, 481.13, 97.13, 531.95, 171.67, 552.28, 230.4, 555.67, 271.06, 557.93, 292.52, 553.41, 298.16, 539.86, 301.55, 520.66, 295.91, 503.72, 276.71, 487.91, 264.28, 466.45, 257.51, 463.06, 259.76, 463.06, 277.84, 470.96, 290.26, 494.68, 306.07, 508.24, 321.88, 517.27, 338.82, 519.53, 348.99, 495.81, 356.89, 476.61, 356.89, 444.99, 355.76, 434.82, 355.76, 444.99, 388.52, 464.19, 412.24, 464.19, 435.95, 442.73, 437.08, 416.75, 437.08, 414.49, 440.47, 399.81, 454.02, 391.91, 457.41, 384.0, 454.02, 385.13, 480.0, 362.54, 480.0, 334.31, 474.35, 324.14, 474.35, 306.07, 456.28, 297.04, 456.28, 289.13, 470.96, 276.71, 478.87, 267.67, 480.0, 252.99, 470.96, 232.66, 452.89, 229.27, 416.75, 228.14, 384.0, 227.01, 351.25, 232.66, 316.24, 237.18, 295.91, 243.95, 278.96, 231.53, 236.05, 229.27, 194.26, 229.27, 149.08, 238.31, 111.81, 255.25, 86.96, 271.06, 68.89, 277.84, 62.12, 298.16, 54.21, 318.49, 37.27, 320.75, 18.07, 329.79, 0.0, 347.86, 0.0, 378.35, 0.0]], "area": 111844.20470000002, "iscrowd": 0, "image_id": 403096, "bbox": [227.01, 0.0, 330.92, 480.0], "category_id": 52, "id": 1044096}, {"segmentation": [[216.18, 83.0, 230.29, 75.94, 245.29, 70.65, 252.35, 71.53, 262.06, 77.71, 277.94, 81.24, 296.47, 91.82, 300.0, 108.59, 300.0, 121.82, 289.41, 133.29, 277.06, 138.59, 266.47, 138.59, 250.59, 138.59, 239.12, 138.59, 232.94, 136.82, 225.88, 126.24, 219.71, 115.65, 215.29, 141.24, 195.88, 165.94, 187.06, 170.35, 167.65, 173.0, 148.24, 172.12, 131.47, 161.53, 122.65, 140.35, 123.53, 124.47, 120.88, 113.0, 105.88, 98.88, 94.41, 83.88, 90.88, 64.47, 113.82, 46.82, 131.47, 40.65, 153.53, 38.0, 167.65, 40.65, 178.24, 49.47, 182.65, 58.29, 182.65, 70.65, 174.71, 104.18, 191.47, 104.18, 194.12, 98.88, 185.29, 87.41, 193.24, 76.82, 202.06, 51.24, 213.53, 68.0]], "area": 16300.884100000005, "iscrowd": 0, "image_id": 265472, "bbox": [90.88, 38.0, 209.12, 135.0], "category_id": 52, "id": 1044355}, {"segmentation": [[202.55, 526.94, 196.23, 543.54, 193.86, 556.98, 188.33, 574.36, 180.03, 583.05, 170.15, 569.62, 151.18, 576.73, 151.58, 565.27, 154.74, 555.39, 127.87, 551.05, 140.51, 539.98, 126.68, 529.31, 132.22, 521.02, 133.8, 517.86, 142.89, 512.72, 135.77, 504.42, 146.84, 497.7, 163.43, 500.07, 153.55, 485.45, 159.48, 481.9, 180.03, 492.57, 180.03, 473.99, 180.03, 469.65, 190.7, 472.02, 201.37, 492.96, 202.55, 508.37, 218.75, 483.48, 225.08, 489.01, 224.68, 497.7, 221.52, 510.35, 215.59, 519.04, 205.71, 528.13, 200.97, 535.64]], "area": 5743.8724999999995, "iscrowd": 0, "image_id": 158722, "bbox": [126.68, 469.65, 98.4, 113.4], "category_id": 52, "id": 1044591}, {"segmentation": [[214.21, 567.39, 222.43, 564.64, 237.06, 561.9, 251.69, 565.56, 249.86, 572.87, 236.15, 582.01, 219.69, 577.44]], "area": 496.8202500000014, "iscrowd": 0, "image_id": 158722, "bbox": [214.21, 561.9, 37.48, 20.11], "category_id": 52, "id": 1045134}, {"segmentation": [[170.29, 207.21, 187.94, 187.79, 214.41, 188.68, 244.41, 198.38, 260.29, 211.62, 269.12, 235.44, 259.41, 262.79, 236.47, 277.79, 211.76, 276.91, 188.82, 273.38, 172.06, 261.91, 167.65, 244.26, 168.53, 221.32]], "area": 7300.852150000002, "iscrowd": 0, "image_id": 265472, "bbox": [167.65, 187.79, 101.47, 90.0], "category_id": 52, "id": 1045208}, {"segmentation": [[2.65, 168.93, 20.34, 149.47, 66.33, 166.27, 72.52, 192.81, 34.49, 242.33, 0.88, 233.49, 0.88, 170.7, 2.65, 168.04]], "area": 4782.515399999999, "iscrowd": 0, "image_id": 265472, "bbox": [0.88, 149.47, 71.64, 92.86], "category_id": 52, "id": 1045541}, {"segmentation": [[407.02, 529.71, 412.91, 529.71, 414.23, 529.71, 410.29, 525.12, 407.67, 520.54, 406.36, 512.67, 410.29, 508.74, 418.16, 507.43, 420.78, 500.87, 419.47, 492.35, 416.85, 490.38, 408.98, 490.38, 398.49, 490.38, 394.56, 490.38, 397.84, 483.83, 407.02, 476.62, 407.67, 469.41, 405.05, 463.51, 404.39, 463.51, 398.49, 466.79, 392.6, 472.69, 389.32, 471.37, 388.66, 462.2, 386.04, 455.64, 382.76, 449.74, 380.8, 446.47, 378.83, 443.85, 377.52, 444.5, 374.24, 451.71, 374.24, 451.71, 373.59, 456.95, 370.96, 456.95, 365.72, 451.06, 363.1, 447.12, 363.1, 446.47, 361.79, 451.06, 361.13, 458.27, 361.13, 458.92, 355.23, 458.92, 353.27, 457.61, 351.96, 457.61, 351.3, 458.92, 351.3, 465.48, 351.3, 472.03, 345.4, 473.34, 342.78, 474.65, 342.12, 478.59, 345.4, 481.86, 347.37, 485.14, 348.02, 489.07, 344.75, 489.73, 342.78, 494.97, 346.71, 496.94, 351.3, 499.56, 355.23, 501.53, 353.92, 509.39, 359.82, 512.67, 362.44, 514.64, 374.24, 512.67, 374.24, 512.67, 375.55, 511.36, 378.17, 510.7, 380.14, 510.05, 380.14, 518.57, 380.14, 523.16, 382.11, 524.47, 385.38, 523.81, 392.6, 519.22, 393.91, 515.29, 398.49, 523.16, 400.46, 525.12, 402.43, 527.75, 402.43, 527.75, 402.43, 527.75, 402.43, 527.75, 402.43, 527.75, 402.43, 527.75, 402.43, 527.75, 402.43, 527.75]], "area": 3598.4607000000005, "iscrowd": 0, "image_id": 158722, "bbox": [342.12, 443.85, 78.66, 85.86], "category_id": 52, "id": 1045577}, {"segmentation": [[252.71, 481.69, 252.71, 482.13, 250.98, 478.67, 247.09, 475.21, 243.2, 471.75, 241.9, 469.58, 241.9, 465.26, 242.34, 461.8, 245.36, 460.07, 251.85, 457.91, 257.9, 455.75, 263.96, 453.15, 266.98, 450.12, 270.44, 445.37, 270.88, 440.61, 269.15, 437.15, 264.39, 436.72, 258.34, 439.31, 252.71, 441.47, 250.55, 443.2, 250.55, 440.18, 251.42, 436.72, 252.28, 431.96, 252.28, 428.5, 249.69, 424.18, 247.96, 424.18, 244.5, 426.77, 243.2, 428.93, 243.2, 427.2, 242.77, 423.74, 235.42, 412.93, 234.55, 413.37, 233.25, 414.23, 231.52, 416.83, 231.09, 419.42, 230.66, 423.31, 230.66, 425.91, 229.79, 427.2, 227.63, 427.64, 222.87, 424.61, 220.28, 422.45, 219.42, 422.01, 217.69, 423.31, 216.82, 427.2, 216.82, 430.66, 216.82, 431.53, 209.9, 430.23, 207.74, 428.5, 205.14, 427.64, 201.25, 428.07, 200.82, 430.23, 203.85, 434.12, 204.71, 436.72, 203.85, 438.45, 199.95, 438.45, 196.5, 438.45, 191.74, 438.88, 192.17, 443.64, 195.2, 446.23, 196.06, 448.83, 191.74, 450.56, 196.06, 456.61, 190.87, 464.39, 192.6, 466.99, 196.5, 470.45, 197.79, 471.31, 199.95, 471.31, 203.85, 471.31, 203.41, 472.18, 201.25, 474.77, 200.39, 479.96, 201.68, 484.29, 204.71, 486.45, 210.33, 483.85, 215.96, 480.4, 217.69, 479.53, 217.25, 482.99, 218.55, 486.88, 221.58, 488.18, 223.74, 489.48, 229.36, 488.61, 231.09, 480.4, 231.96, 477.8, 235.85, 486.02, 238.44, 490.34, 246.23, 492.5, 249.69, 492.94, 253.58, 490.34, 257.04, 486.88, 253.15, 479.96]], "area": 3540.4175500000006, "iscrowd": 0, "image_id": 158722, "bbox": [190.87, 412.93, 80.01, 80.01], "category_id": 52, "id": 1045661}, {"segmentation": [[312.2, 476.03, 312.63, 482.95, 319.11, 489.43, 320.41, 495.06, 320.41, 496.35, 325.6, 500.68, 330.36, 506.73, 331.66, 511.49, 329.49, 515.81, 327.33, 517.54, 323.44, 517.54, 316.95, 516.68, 310.47, 509.76, 306.57, 500.25, 303.98, 513.22, 300.52, 513.65, 297.06, 513.65, 292.74, 511.49, 290.14, 506.3, 291.01, 500.68, 284.95, 503.27, 281.06, 504.14, 276.73, 504.14, 271.55, 498.95, 272.41, 495.49, 273.28, 494.19, 262.03, 492.89, 260.73, 491.16, 259.0, 486.84, 261.6, 484.25, 262.9, 482.95, 263.76, 482.52, 258.14, 478.19, 257.27, 476.03, 258.57, 472.57, 259.44, 471.7, 262.03, 470.84, 263.33, 469.54, 262.9, 465.65, 264.19, 465.22, 265.49, 462.19, 264.19, 458.73, 262.46, 454.84, 264.19, 452.24, 267.65, 450.08, 275.87, 451.38, 280.63, 453.11, 276.3, 442.73, 276.73, 438.41, 277.17, 437.11, 279.76, 435.81, 285.82, 439.27, 294.47, 445.76, 298.79, 454.84, 297.06, 444.03, 298.36, 436.68, 299.65, 429.76, 301.38, 428.89, 310.03, 437.54, 314.79, 445.76, 316.09, 459.16, 314.79, 462.62, 325.6, 452.24, 328.63, 449.22, 332.95, 450.08, 334.68, 459.16, 329.93, 472.14, 318.68, 477.76]], "area": 3985.105849999999, "iscrowd": 0, "image_id": 158722, "bbox": [257.27, 428.89, 77.41, 88.65], "category_id": 52, "id": 1045770}, {"segmentation": [[183.08, 446.4, 193.05, 442.07, 196.95, 430.8, 196.51, 422.13, 190.01, 417.79, 188.28, 416.93, 186.11, 422.99, 181.78, 436.43, 180.48, 424.29, 168.77, 407.82, 166.17, 407.39, 162.27, 408.69, 161.84, 417.79, 166.17, 426.46, 160.97, 419.96, 154.9, 418.23, 151.43, 416.06, 148.83, 418.23, 151.43, 421.26, 151.43, 427.33, 152.3, 428.63, 142.33, 425.16, 137.13, 426.46, 135.83, 426.46, 134.53, 428.2, 134.96, 429.93, 135.83, 430.36, 136.7, 431.66, 137.13, 432.1, 138.43, 433.83, 138.86, 435.13, 128.89, 436.43, 128.03, 438.6, 133.66, 444.67, 135.4, 449.44, 136.26, 450.74, 127.59, 451.17, 127.59, 455.5, 134.53, 461.57, 138.86, 459.41, 134.09, 462.87, 134.09, 465.47, 141.9, 471.54, 152.3, 471.11, 154.9, 468.51, 151.87, 473.28, 155.77, 477.61, 166.6, 475.88, 173.97, 468.94, 173.11, 460.27, 172.67, 457.67, 174.84, 455.5, 180.04, 454.64, 183.08, 452.47, 184.38, 448.57, 183.94, 447.27, 183.94, 447.27]], "area": 2753.488299999999, "iscrowd": 0, "image_id": 158722, "bbox": [127.59, 407.39, 69.36, 70.22], "category_id": 52, "id": 1045978}, {"segmentation": [[14.48, 193.29, 13.98, 205.09, 13.98, 205.58, 21.85, 224.26, 29.72, 229.67, 33.65, 227.71, 29.22, 209.52, 28.73, 202.63, 33.65, 208.53, 40.04, 222.3, 45.94, 226.23, 50.85, 225.25, 48.89, 216.89, 52.82, 222.79, 56.75, 220.33, 57.25, 211.48, 57.25, 211.48, 48.4, 187.89, 37.09, 180.51, 33.65, 173.63, 25.78, 175.6, 25.78, 176.09, 16.93, 173.14, 13.49, 179.53]], "area": 1634.9657500000003, "iscrowd": 0, "image_id": 294451, "bbox": [13.49, 173.14, 43.76, 56.53], "category_id": 52, "id": 1045995}, {"segmentation": [[248.74, 64.52, 291.04, 55.46, 310.17, 45.38, 335.35, 68.55, 335.35, 88.69, 384.7, 147.1, 460.23, 203.49, 508.56, 244.78, 530.72, 278.02, 511.59, 300.17, 463.25, 284.06, 441.09, 266.94, 469.29, 322.33, 451.16, 344.48, 387.72, 312.26, 362.54, 294.13, 383.69, 365.63, 365.56, 376.71, 358.51, 374.69, 300.1, 321.32, 290.03, 341.46, 280.97, 347.5, 232.63, 326.35, 191.34, 277.01, 156.09, 206.51, 169.19, 146.09, 221.55, 98.76, 243.71, 69.55]], "area": 66868.45765000001, "iscrowd": 0, "image_id": 119729, "bbox": [156.09, 45.38, 374.63, 331.33], "category_id": 52, "id": 1046074}, {"segmentation": [[227.39, 381.09, 216.85, 405.18, 210.82, 420.24, 188.24, 417.23, 180.71, 403.68, 177.69, 396.15, 188.24, 382.59, 206.31, 375.07, 225.88, 366.03, 231.91, 369.04]], "area": 1659.8726000000004, "iscrowd": 0, "image_id": 158722, "bbox": [177.69, 366.03, 54.22, 54.21], "category_id": 52, "id": 1046085}, {"segmentation": [[242.01, 385.28, 242.01, 376.81, 245.09, 374.5, 252.02, 371.41, 255.11, 369.1, 268.2, 377.58, 272.06, 387.59, 282.84, 406.86, 275.14, 420.72, 261.27, 423.81, 250.48, 424.58, 243.55, 423.81, 239.7, 414.56, 245.09, 409.94, 240.47, 402.23, 237.38, 394.53]], "area": 1721.84775, "iscrowd": 0, "image_id": 158722, "bbox": [237.38, 369.1, 45.46, 55.48], "category_id": 52, "id": 1046167}, {"segmentation": [[611.01, 90.35, 635.86, 125.36, 640.0, 152.47, 640.0, 181.84, 635.86, 210.07, 623.44, 229.27, 604.24, 242.82, 561.32, 254.12, 524.05, 254.12, 501.46, 243.95, 468.71, 217.98, 455.15, 198.78, 451.76, 173.93, 451.76, 140.05, 465.32, 109.55, 495.81, 89.22, 538.73, 79.06, 560.19, 77.93, 596.33, 83.58]], "area": 27385.419650000003, "iscrowd": 0, "image_id": 444515, "bbox": [451.76, 77.93, 188.24, 176.19], "category_id": 53, "id": 1047219}, {"segmentation": [[268.67, 371.07, 290.02, 360.95, 309.13, 362.08, 304.64, 347.46, 322.62, 342.97, 349.6, 342.97, 366.46, 341.84, 379.95, 344.09, 388.95, 344.09, 413.68, 400.3, 437.28, 425.03, 441.78, 432.9, 464.26, 452.01, 460.89, 464.37, 408.06, 480.0, 311.38, 477.86, 256.3, 478.98, 225.95, 478.98, 187.73, 474.49, 175.36, 474.49, 157.38, 458.75, 147.26, 436.27, 166.37, 414.91, 149.51, 391.3, 150.63, 375.57, 157.38, 369.94, 180.98, 384.56, 179.86, 372.19, 177.61, 359.83, 187.73, 355.33, 203.47, 359.83, 209.09, 372.19, 212.46, 364.32, 212.46, 355.33, 224.82, 341.84, 225.95, 340.72, 251.8, 373.32]], "area": 33098.19355000001, "iscrowd": 0, "image_id": 294451, "bbox": [147.26, 340.72, 317.0, 139.28], "category_id": 53, "id": 1049493}, {"segmentation": [[426.66, 156.36, 422.5, 158.44, 427.91, 165.93, 429.99, 171.76, 431.24, 175.5, 433.74, 183.0, 435.82, 187.99, 441.65, 195.07, 443.73, 197.57, 442.07, 200.9, 449.14, 210.05, 458.3, 205.06, 462.05, 207.56, 462.88, 211.72, 462.88, 214.63, 457.47, 213.38, 454.97, 215.47, 454.55, 223.79, 455.8, 227.95, 463.29, 227.12, 472.04, 225.46, 474.95, 224.21, 478.28, 225.04, 479.95, 228.79, 482.44, 233.37, 484.11, 236.7, 488.69, 239.61, 492.02, 232.95, 497.01, 231.7, 502.42, 231.7, 506.17, 230.04, 512.41, 226.29, 515.33, 226.29, 515.33, 221.71, 512.0, 216.3, 510.33, 212.14, 514.91, 208.39, 518.24, 208.39, 521.57, 215.47, 525.73, 225.46, 526.98, 229.62, 533.64, 228.79, 540.72, 226.29, 543.22, 221.71, 544.88, 218.8, 544.47, 213.8, 537.39, 210.47, 539.05, 205.06, 539.05, 202.56, 534.48, 201.73, 529.48, 201.31, 523.24, 203.81, 522.82, 204.23, 519.07, 201.73, 521.16, 196.32, 521.16, 194.24, 521.16, 190.07, 517.83, 185.5, 516.99, 184.66, 516.99, 180.5, 513.66, 178.42, 504.92, 176.75, 504.92, 176.75, 501.59, 178.83, 499.93, 175.92, 497.84, 170.93, 497.01, 166.76, 501.59, 160.1, 501.59, 157.61, 499.93, 154.28, 495.76, 152.19, 490.35, 153.03, 487.44, 154.69, 485.77, 155.52, 479.95, 154.28, 478.28, 153.44, 473.28, 144.28, 473.28, 143.87, 469.95, 143.45, 464.13, 143.45, 460.38, 145.53, 458.3, 151.36, 458.3, 152.61, 458.3, 156.77, 459.96, 166.35, 454.55, 168.84, 447.48, 166.76, 442.9, 164.27, 440.4, 155.52, 440.4, 152.19, 432.49, 152.19, 429.58, 152.61, 425.41, 155.11]], "area": 5814.455749999999, "iscrowd": 0, "image_id": 294451, "bbox": [422.5, 143.45, 122.38, 96.16], "category_id": 53, "id": 1049779}, {"segmentation": [[349.44, 72.34, 353.19, 66.93, 350.69, 59.44, 341.95, 61.11, 337.78, 56.11, 329.04, 56.11, 327.38, 64.02, 321.97, 63.19, 321.55, 54.86, 316.14, 54.03, 309.9, 56.53, 307.81, 51.53, 299.49, 52.36, 301.99, 62.77, 298.66, 66.52, 297.82, 72.76, 294.49, 79.84, 292.83, 86.5, 297.41, 92.74, 294.08, 99.82, 295.74, 108.56, 296.16, 121.05, 303.65, 141.86, 307.4, 148.1, 313.23, 157.68, 324.05, 150.6, 329.46, 138.95, 339.87, 131.04, 355.27, 129.37, 355.27, 137.28, 365.67, 139.78, 369.42, 135.2, 379.41, 133.95, 391.9, 133.54, 400.64, 133.12, 394.81, 124.38, 393.56, 115.64, 386.9, 111.89, 383.57, 103.56, 372.75, 101.07, 371.09, 109.39, 365.67, 99.82, 363.59, 91.49, 359.43, 87.33, 356.1, 80.67, 352.35, 71.51]], "area": 6183.99205, "iscrowd": 0, "image_id": 294451, "bbox": [292.83, 51.53, 107.81, 106.15], "category_id": 53, "id": 1050534}, {"segmentation": [[58.41, 220.02, 67.08, 239.09, 72.28, 249.49, 77.48, 255.27, 78.06, 265.09, 80.37, 280.69, 76.33, 287.63, 75.17, 289.36, 63.62, 290.52, 53.21, 291.67, 42.81, 291.67, 17.39, 302.65, 4.67, 298.03, 0.63, 290.52, 0.63, 266.25, 0.0, 192.28, 4.67, 191.7, 10.45, 194.01, 13.34, 202.1, 23.16, 222.91, 30.1, 227.53, 31.25, 222.91, 27.79, 208.46, 34.14, 206.15, 39.92, 222.33, 49.75, 225.22]], "area": 5819.843999999998, "iscrowd": 0, "image_id": 294451, "bbox": [0.0, 191.7, 80.37, 110.95], "category_id": 53, "id": 1050568}, {"segmentation": [[308.33, 221.36, 282.35, 193.13, 274.45, 159.25, 290.26, 117.46, 317.36, 90.35, 362.54, 74.54, 389.65, 81.32, 414.49, 84.71, 438.21, 101.65, 451.76, 124.24, 458.54, 131.01, 446.12, 164.89, 452.89, 199.91, 407.72, 238.31, 365.93, 241.69, 335.44, 237.18, 315.11, 225.88, 309.46, 221.36]], "area": 23317.793749999997, "iscrowd": 0, "image_id": 444515, "bbox": [274.45, 74.54, 184.09, 167.15], "category_id": 55, "id": 1051169}, {"segmentation": [[245.1, 469.26, 283.89, 427.36, 326.57, 382.36, 335.1, 330.37, 336.66, 286.92, 311.83, 252.77, 281.56, 230.27, 259.84, 221.74, 210.95, 220.96, 165.17, 234.93, 131.03, 258.98, 109.31, 291.57, 93.79, 300.11, 85.25, 345.11, 113.19, 379.25, 124.83, 399.43, 161.29, 401.75, 171.38, 397.1, 192.33, 421.93, 204.75, 439.77, 202.42, 461.5, 227.25, 474.69]], "area": 42472.098249999995, "iscrowd": 0, "image_id": 163296, "bbox": [85.25, 220.96, 251.41, 253.73], "category_id": 56, "id": 1055519}, {"segmentation": [[354.64, 399.47, 288.0, 427.7, 177.32, 425.44, 93.74, 367.84, 73.41, 323.8, 82.45, 242.48, 91.48, 173.58, 92.61, 148.74, 90.35, 109.21, 114.07, 84.36, 131.01, 62.9, 171.67, 48.22, 185.22, 61.77, 280.09, 60.64, 306.07, 75.33, 316.24, 100.17, 378.35, 193.91, 376.09, 237.96, 376.09, 250.38, 359.15, 275.23, 354.64, 343.0, 355.76, 391.56]], "area": 92847.57685000001, "iscrowd": 0, "image_id": 425848, "bbox": [73.41, 48.22, 304.94, 379.48], "category_id": 56, "id": 1056050}, {"segmentation": [[231.53, 105.04, 263.15, 54.21, 308.33, 46.31, 315.11, 27.11, 364.8, 32.75, 381.74, 1.13, 437.08, 5.65, 438.21, 42.92, 486.78, 49.69, 509.36, 84.71, 498.07, 97.13, 553.41, 107.29, 554.54, 129.88, 388.52, 126.49, 372.71, 131.01, 398.68, 156.99, 347.86, 164.89, 336.56, 147.95, 275.58, 158.12, 248.47, 137.79, 224.75, 106.16]], "area": 29487.222799999992, "iscrowd": 0, "image_id": 69906, "bbox": [224.75, 1.13, 329.79, 163.76], "category_id": 56, "id": 1056225}, {"segmentation": [[481.13, 370.45, 461.93, 353.51, 459.67, 332.05, 466.45, 308.33, 480.0, 294.78, 496.94, 294.78, 507.11, 290.26, 516.14, 282.35, 529.69, 276.71, 552.28, 273.32, 565.84, 277.84, 573.74, 290.26, 569.22, 304.94, 563.58, 304.94, 564.71, 316.24, 564.71, 329.79, 563.58, 337.69, 564.71, 346.73, 559.06, 356.89, 543.25, 369.32, 527.44, 382.87, 520.66, 393.04, 510.49, 387.39, 494.68, 378.35, 480.0, 376.09, 467.58, 363.67, 464.19, 361.41]], "area": 9125.430500000006, "iscrowd": 0, "image_id": 118607, "bbox": [459.67, 273.32, 114.07, 119.72], "category_id": 56, "id": 1056971}, {"segmentation": [[131.04, 587.52, 137.22, 591.57, 150.38, 574.01, 160.41, 553.33, 179.21, 542.68, 198.64, 535.78, 208.67, 523.87, 216.82, 511.34, 222.46, 505.07, 223.72, 494.41, 221.84, 491.28, 221.84, 483.13, 223.09, 479.37, 223.09, 478.74, 223.72, 473.73, 223.72, 473.1, 224.97, 471.85, 225.6, 469.97, 228.1, 459.94, 226.85, 444.89, 224.34, 431.11, 218.7, 424.21, 205.54, 417.32, 196.14, 414.18, 187.99, 411.67, 172.95, 402.27, 166.68, 397.26, 157.28, 393.5, 148.5, 390.99, 143.49, 389.74, 136.59, 390.36, 131.58, 391.62, 129.7, 404.15, 135.34, 415.44, 139.72, 429.85, 138.47, 451.16, 137.22, 471.22, 130.32, 493.78, 128.44, 503.81, 121.55, 534.53, 117.79, 554.58, 104.62, 574.01, 109.01, 583.42]], "area": 13920.580249999995, "iscrowd": 0, "image_id": 256660, "bbox": [104.62, 389.74, 123.48, 201.83], "category_id": 56, "id": 1057750}, {"segmentation": [[373.0, 90.0, 384.0, 45.0, 425.0, 28.0, 436.0, 28.0, 473.0, 34.0, 503.0, 52.0, 508.0, 90.0, 505.0, 127.0, 492.0, 160.0, 466.0, 170.0, 427.0, 140.0, 391.0, 129.0, 385.0, 120.0, 376.0, 94.0]], "area": 14015.0, "iscrowd": 0, "image_id": 242368, "bbox": [373.0, 28.0, 135.0, 142.0], "category_id": 56, "id": 1058311}, {"segmentation": [[28.87, 280.74, 47.63, 296.62, 66.4, 300.95, 75.06, 296.62, 98.15, 293.73, 118.36, 292.29, 134.24, 318.27, 164.55, 365.9, 186.2, 413.53, 176.09, 413.53, 151.56, 406.32, 122.69, 420.75, 131.35, 455.39, 128.46, 479.93, 119.8, 508.8, 115.47, 544.88, 114.03, 566.53, 99.59, 566.53, 69.28, 550.66, 53.41, 526.12, 41.86, 508.8, 15.88, 456.83, 12.99, 448.17, 8.66, 440.96, 2.89, 432.3]], "area": 29758.894400000005, "iscrowd": 0, "image_id": 256660, "bbox": [2.89, 280.74, 183.31, 285.79], "category_id": 56, "id": 1059036}, {"segmentation": [[100.76, 2.99, 201.52, 9.98, 220.48, 35.92, 197.53, 85.8, 205.52, 107.75, 211.5, 115.73, 204.52, 148.65, 182.57, 155.63, 145.66, 155.63, 105.75, 170.6, 95.77, 176.58, 79.81, 164.61, 44.89, 160.62, 37.91, 160.62, 23.94, 147.65, 13.97, 111.74, 13.97, 101.76, 7.98, 56.87, 4.99, 30.93, 10.97, 15.96, 43.9, 21.95, 69.84, 10.97, 80.81, 5.99]], "area": 29316.6091, "iscrowd": 0, "image_id": 242368, "bbox": [4.99, 2.99, 215.49, 173.59], "category_id": 56, "id": 1059353}, {"segmentation": [[166.64, 255.32, 147.11, 234.76, 139.92, 217.3, 116.28, 214.21, 99.84, 213.18, 72.1, 171.05, 99.84, 151.53, 144.03, 122.76, 164.58, 116.59, 177.94, 111.45, 182.05, 81.65, 220.07, 87.82, 243.71, 101.18, 248.85, 99.12, 264.26, 83.71, 282.76, 73.43, 327.97, 54.93, 354.69, 66.24, 373.19, 62.13, 386.55, 46.71, 404.02, 47.74, 448.2, 73.43, 451.29, 77.54, 480.06, 65.21, 503.69, 65.21, 492.39, 93.98, 491.36, 96.04, 535.55, 78.57, 564.32, 96.04, 566.38, 113.51, 600.29, 141.25, 610.57, 181.33, 609.54, 221.41, 578.71, 230.65, 578.71, 236.82, 590.01, 261.48, 586.93, 281.01, 586.93, 297.45, 612.0, 327.25, 572.54, 343.69, 549.94, 348.83, 542.74, 325.19, 539.66, 311.84, 531.44, 296.42, 493.42, 288.2, 468.76, 282.03, 431.76, 281.01, 424.57, 291.28, 412.24, 306.7, 373.19, 326.22, 363.94, 332.39, 331.06, 332.39, 305.37, 338.55, 278.65, 342.66, 269.4, 320.06, 270.43, 307.73, 270.43, 298.48, 275.56, 285.12, 277.62, 274.84, 242.68, 271.76, 225.21, 275.87, 224.18, 292.31, 200.55, 277.92, 171.78, 268.68]], "area": 105209.71845000001, "iscrowd": 0, "image_id": 256660, "bbox": [72.1, 46.71, 539.9, 302.12], "category_id": 56, "id": 1059602}, {"segmentation": [[194.56, 338.35, 161.33, 322.61, 147.35, 312.12, 133.36, 303.38, 139.48, 290.27, 129.86, 275.41, 103.64, 267.54, 71.29, 251.8, 79.16, 222.08, 94.02, 205.47, 106.26, 209.84, 162.21, 248.31, 197.18, 276.28, 213.79, 291.14, 224.28, 315.62, 206.79, 332.23, 199.8, 339.22]], "area": 8466.992600000001, "iscrowd": 0, "image_id": 256660, "bbox": [71.29, 205.47, 152.99, 133.75], "category_id": 57, "id": 1062089}, {"segmentation": [[285.89, 327.55, 238.48, 373.52, 212.62, 399.38, 205.44, 395.07, 181.01, 382.14, 175.27, 360.59, 178.14, 344.79, 206.87, 337.61, 229.86, 313.18, 216.93, 290.2, 241.35, 264.34, 258.59, 258.59, 271.52, 271.52, 268.65, 301.69, 287.32, 324.68]], "area": 7430.902149999998, "iscrowd": 0, "image_id": 256660, "bbox": [175.27, 258.59, 112.05, 140.79], "category_id": 57, "id": 1063173}, {"segmentation": [[433.23, 188.71, 427.91, 187.19, 425.25, 184.91, 424.49, 164.77, 430.57, 157.55, 427.53, 155.65, 428.29, 140.82, 430.57, 114.98, 432.47, 112.32, 436.65, 112.32, 434.75, 121.44, 433.99, 148.04, 433.61, 156.03, 437.79, 156.79], [444.25, 161.73, 438.55, 187.57, 440.07, 188.71, 445.39, 184.91, 448.05, 179.97, 449.95, 172.37, 448.43, 165.91, 447.29, 162.11]], "area": 718.3767000000004, "iscrowd": 0, "image_id": 158722, "bbox": [424.49, 112.32, 25.46, 76.39], "category_id": 31, "id": 1172607}, {"segmentation": [[26.6, 247.09, 24.7, 244.16, 23.84, 243.81, 20.57, 243.12, 17.81, 243.47, 11.78, 249.84, 11.61, 255.36, 12.3, 260.35, 10.74, 266.21, 8.5, 276.55, 7.3, 278.45, 6.61, 282.93, 7.99, 286.89, 11.95, 288.78, 16.78, 290.85, 19.01, 293.26, 21.43, 297.4, 18.15, 303.26, 16.78, 320.31, 18.67, 327.21, 17.46, 330.13, 16.09, 331.69, 14.54, 335.65, 15.4, 337.72, 21.6, 339.27, 29.53, 336.68, 29.18, 328.93, 27.46, 316.87, 29.53, 313.25, 32.28, 328.24, 34.0, 335.48, 36.24, 339.44, 38.83, 340.64, 44.69, 340.99, 49.17, 339.44, 45.38, 336.17, 42.96, 333.75, 42.1, 331.17, 40.9, 321.86, 41.76, 312.39, 42.62, 302.74, 43.48, 297.92, 44.51, 294.47, 45.2, 291.02, 44.69, 286.54, 42.62, 272.42, 41.41, 266.56, 40.9, 266.04, 36.93, 262.94, 33.5, 258.47, 31.73, 257.67, 28.63, 253.7, 27.94, 248.71]], "area": 2395.0416999999993, "iscrowd": 0, "image_id": 288403, "bbox": [6.61, 243.12, 42.56, 97.87], "category_id": 1, "id": 1207471}, {"segmentation": [[265.52, 365.83, 275.39, 359.91, 273.02, 334.24, 269.86, 319.63, 266.31, 312.91, 263.54, 319.23, 259.2, 311.73, 261.96, 303.83, 264.33, 295.53, 263.94, 291.19, 263.15, 288.82, 263.15, 285.27, 266.31, 272.63, 269.47, 265.12, 271.84, 257.22, 271.84, 251.69, 271.05, 248.54, 273.02, 244.98, 277.76, 243.8, 282.11, 244.19, 286.85, 247.75, 286.45, 252.88, 286.45, 258.41, 287.64, 262.75, 292.37, 268.68, 292.77, 275.0, 294.35, 283.69, 294.74, 290.0, 293.16, 292.37, 291.58, 295.93, 291.19, 300.27, 291.19, 308.96, 291.19, 317.65, 291.19, 327.52, 291.98, 335.82, 297.11, 354.78, 299.88, 369.39, 293.95, 370.18, 288.42, 365.83, 291.58, 361.88, 289.21, 352.01, 282.11, 334.63, 282.11, 358.33, 284.48, 367.41, 274.21, 368.6, 267.49, 366.62]], "area": 2749.892300000003, "iscrowd": 0, "image_id": 288403, "bbox": [259.2, 243.8, 40.68, 126.38], "category_id": 1, "id": 1209392}, {"segmentation": [[503.39, 396.08, 504.47, 391.41, 504.65, 386.2, 498.9, 383.5, 498.18, 388.71, 496.74, 393.93, 497.1, 396.08, 501.42, 396.98], [486.85, 396.8, 494.22, 392.85, 492.97, 379.01, 485.96, 375.05, 487.39, 387.99, 482.9, 391.95, 483.98, 395.72], [505.55, 379.19, 505.73, 377.93, 508.97, 377.03, 508.97, 371.99, 497.82, 351.86, 497.82, 349.88, 494.58, 346.11, 483.8, 346.47, 484.88, 366.24]], "area": 702.9895500000008, "iscrowd": 0, "image_id": 210408, "bbox": [482.9, 346.11, 26.07, 50.87], "category_id": 1, "id": 1210867}, {"segmentation": [[562.39, 67.75, 563.04, 65.16, 563.69, 61.94, 564.12, 58.92, 564.76, 55.7, 568.2, 53.97, 570.57, 52.47, 574.87, 53.97, 577.46, 52.9, 582.19, 53.54, 583.27, 59.57, 583.27, 64.95, 584.99, 66.46, 585.2, 69.68, 585.2, 73.99, 585.2, 76.14, 584.77, 80.01, 584.13, 82.16, 584.13, 82.16, 584.13, 82.81, 584.13, 83.46, 590.58, 86.04, 592.31, 88.62, 593.6, 91.42, 594.03, 93.57, 593.38, 100.03, 595.53, 107.77, 595.1, 113.37, 594.89, 117.89, 594.24, 120.25, 593.81, 121.54, 592.95, 121.97, 589.08, 120.47, 585.63, 120.04, 586.93, 133.16, 587.14, 139.19, 586.06, 142.6, 585.2, 141.96, 586.71, 146.26, 586.93, 147.98, 586.06, 149.7, 582.41, 149.06, 579.61, 150.78, 575.74, 151.85, 575.52, 151.85, 574.66, 151.85, 574.01, 150.99, 574.44, 149.49, 575.74, 147.55, 577.67, 145.83, 577.89, 143.89, 576.38, 139.37, 575.95, 138.94, 573.15, 121.3, 572.51, 118.28, 571.65, 114.2, 568.2, 110.11, 567.99, 109.46, 584.34, 108.6, 585.63, 107.74, 582.84, 99.78, 581.55, 97.2, 580.69, 95.47, 579.61, 92.03, 579.18, 89.45, 578.53, 88.16, 577.89, 86.22, 577.03, 84.28, 575.31, 76.75, 573.8, 74.82, 569.28, 73.09, 566.91, 71.16, 564.76, 69.87, 563.9, 69.87]], "area": 1395.9513499999996, "iscrowd": 0, "image_id": 277961, "bbox": [562.39, 52.47, 33.14, 99.38], "category_id": 1, "id": 1215678}, {"segmentation": [[106.28, 532.39, 110.54, 530.76, 116.02, 541.73, 119.47, 543.15, 119.47, 546.6, 128.0, 542.13, 128.2, 542.94, 132.06, 538.07, 130.23, 536.45, 125.16, 539.29, 118.05, 525.48, 113.58, 522.23, 109.12, 521.42, 106.04, 515.81, 103.56, 510.42, 102.19, 509.0, 96.26, 509.62, 96.26, 516.87, 100.42, 524.91, 105.63, 530.74, 106.39, 532.69]], "area": 422.4487000000001, "iscrowd": 0, "image_id": 71027, "bbox": [96.26, 509.0, 35.8, 37.6], "category_id": 1, "id": 1216188}, {"segmentation": [[325.71, 229.15, 325.9, 214.26, 326.77, 214.55, 327.64, 216.68, 328.42, 217.45, 328.61, 215.81, 328.32, 214.07, 326.87, 211.36, 326.87, 210.01, 324.74, 207.3, 322.42, 209.43, 321.94, 210.69, 321.07, 212.23, 320.1, 214.46, 320.1, 215.71, 320.39, 217.36, 321.65, 217.55, 321.65, 229.15, 323.0, 228.86, 323.0, 219.97, 324.16, 219.97, 324.55, 228.86, 326.19, 229.44]], "area": 90.7334499999998, "iscrowd": 0, "image_id": 574108, "bbox": [320.1, 207.3, 8.51, 22.14], "category_id": 1, "id": 1216552}, {"segmentation": [[316.28, 216.73, 317.91, 212.74, 320.45, 209.48, 320.63, 206.76, 323.53, 206.4, 324.62, 208.94, 327.15, 210.93, 326.43, 214.91, 329.69, 216.36, 323.53, 217.27, 319.18, 216.73, 319.91, 214.55, 319.18, 214.55, 318.46, 216.0, 317.01, 216.54]], "area": 75.52314999999994, "iscrowd": 0, "image_id": 550576, "bbox": [316.28, 206.4, 13.41, 10.87], "category_id": 1, "id": 1224697}, {"segmentation": [[608.57, 312.41, 610.41, 307.71, 611.21, 304.05, 611.21, 299.7, 611.32, 293.18, 610.75, 292.27, 609.6, 289.86, 609.83, 286.32, 610.98, 284.37, 611.66, 281.51, 612.92, 280.02, 614.07, 279.68, 614.52, 280.6, 615.21, 285.74, 615.78, 288.83, 615.67, 291.81, 616.24, 306.46, 616.58, 310.8, 617.04, 312.98, 616.24, 314.01, 610.18, 314.58, 609.83, 314.35, 609.26, 312.75]], "area": 179.06919999999909, "iscrowd": 0, "image_id": 267127, "bbox": [608.57, 279.68, 8.47, 34.9], "category_id": 1, "id": 1237272}, {"segmentation": [[139.38, 540.61, 127.53, 529.95, 123.68, 529.06, 121.91, 530.24, 118.06, 526.69, 115.39, 522.84, 112.13, 521.65, 114.5, 509.22, 118.35, 506.26, 130.79, 507.74, 134.05, 516.32, 138.19, 527.87, 137.9, 531.43, 140.86, 534.09, 142.63, 542.38]], "area": 527.0349000000006, "iscrowd": 0, "image_id": 71027, "bbox": [112.13, 506.26, 30.5, 36.12], "category_id": 1, "id": 1258558}, {"segmentation": [[430.82, 438.79, 435.43, 438.44, 439.7, 432.75, 439.7, 430.62, 431.17, 428.84, 430.46, 426.0, 432.59, 418.18, 425.84, 414.98, 423.35, 419.25, 423.0, 428.84, 421.93, 430.98, 419.44, 435.24, 416.96, 438.08, 416.6, 440.57, 421.93, 441.28, 425.49, 441.28, 429.04, 438.44]], "area": 296.84864999999945, "iscrowd": 0, "image_id": 71027, "bbox": [416.6, 414.98, 23.1, 26.3], "category_id": 1, "id": 1262720}, {"segmentation": [[302.07, 209.95, 301.67, 208.19, 299.37, 208.33, 297.61, 209.41, 296.26, 211.71, 295.45, 213.33, 297.75, 217.65, 298.29, 219.27, 299.51, 223.06, 299.91, 224.14, 301.26, 225.22, 302.07, 222.65, 302.21, 226.44, 303.15, 227.11, 305.86, 227.92, 305.86, 226.3, 304.64, 225.76, 305.45, 222.38, 305.05, 218.73, 304.1, 215.49, 303.69, 213.73, 303.15, 211.98, 303.02, 210.76]], "area": 113.11455000000004, "iscrowd": 0, "image_id": 574108, "bbox": [295.45, 208.19, 10.41, 19.73], "category_id": 1, "id": 1284740}, {"segmentation": [[184.22, 325.48, 162.94, 328.29, 161.37, 332.67, 161.37, 332.67, 172.64, 347.69, 177.96, 362.71, 183.59, 389.0, 177.65, 401.2, 177.65, 401.2, 177.96, 409.65, 179.84, 414.97, 178.27, 421.54, 172.64, 417.16, 164.5, 384.93, 164.5, 384.62, 160.44, 366.78, 160.44, 366.78, 156.68, 355.83, 156.68, 355.83, 149.8, 350.82, 147.29, 348.32, 155.74, 343.0, 148.55, 340.81, 153.86, 335.49, 158.25, 333.61, 155.74, 327.35, 140.72, 332.05, 133.53, 331.11, 134.46, 326.42, 143.54, 326.1, 147.29, 322.35, 152.93, 320.16, 156.06, 323.91, 161.06, 322.97, 172.01, 322.35, 180.15, 321.72, 180.15, 321.72]], "area": 1601.98255, "iscrowd": 0, "image_id": 109146, "bbox": [133.53, 320.16, 50.69, 101.38], "category_id": 2, "id": 1333519}, {"segmentation": [[368.41, 140.63, 376.23, 139.26, 380.52, 139.26, 383.0, 138.87, 383.0, 179.9, 380.52, 180.68, 377.79, 178.53, 376.62, 180.48, 375.83, 182.44, 374.66, 182.83, 373.3, 181.46, 371.93, 178.92, 373.69, 174.43, 373.3, 172.28, 370.95, 170.52, 373.3, 169.74, 373.3, 167.0, 371.15, 164.07, 369.58, 161.53, 367.04, 161.14, 367.04, 159.97, 374.66, 158.6, 376.03, 155.67, 375.83, 152.74, 374.86, 150.59, 373.3, 149.22, 371.54, 149.22, 370.95, 150.59, 370.95, 157.82, 367.04, 158.02, 367.04, 141.6, 367.63, 140.43]], "area": 501.8384499999997, "iscrowd": 0, "image_id": 278203, "bbox": [367.04, 138.87, 15.96, 43.96], "category_id": 3, "id": 1340209}, {"segmentation": [[248.54, 180.76, 260.95, 180.48, 260.67, 217.71, 246.44, 217.71, 248.82, 181.6]], "area": 487.81720000000047, "iscrowd": 0, "image_id": 210408, "bbox": [246.44, 180.48, 14.51, 37.23], "category_id": 10, "id": 1384272}, {"segmentation": [[119.37, 477.84, 110.74, 483.6, 97.8, 487.91, 90.61, 489.35, 90.61, 479.28, 93.48, 466.34, 99.24, 459.15, 103.55, 456.27, 99.24, 450.52, 96.36, 444.76, 94.92, 437.57, 102.11, 434.7, 106.43, 434.7, 117.93, 430.38, 126.56, 441.89, 140.94, 449.08, 145.26, 449.08, 148.13, 466.34, 148.13, 477.84, 145.26, 490.79, 153.89, 492.22, 168.27, 492.22, 176.9, 485.03, 181.21, 499.42, 184.09, 510.92, 184.09, 512.36, 166.83, 510.92, 155.33, 520.99, 162.52, 542.56, 156.76, 564.13, 155.33, 581.39, 138.07, 582.83, 140.94, 571.33, 145.26, 555.51, 145.26, 544.0, 135.19, 532.49, 126.56, 510.92, 126.56, 495.1, 126.56, 485.03, 120.81, 479.28]], "area": 4984.726350000001, "iscrowd": 0, "image_id": 71027, "bbox": [90.61, 430.38, 93.48, 152.45], "category_id": 19, "id": 1403776}, {"segmentation": [[317.83, 367.15, 320.35, 340.25, 296.8, 302.41, 271.58, 283.07, 198.43, 315.86, 194.23, 325.11, 184.98, 339.41, 170.68, 337.72, 161.43, 367.15, 317.83, 370.52]], "area": 9200.083699999996, "iscrowd": 0, "image_id": 133377, "bbox": [161.43, 283.07, 158.92, 87.45], "category_id": 24, "id": 1411918}, {"segmentation": [[424.33, 190.45, 413.35, 180.31, 389.69, 171.02, 377.02, 164.26, 360.12, 156.65, 360.12, 233.54, 382.09, 254.66, 400.67, 282.55, 396.45, 286.77, 431.09, 283.39, 437.85, 247.9, 433.63, 228.47, 424.33, 202.28], [485.17, 190.45, 514.74, 183.69, 536.71, 180.31, 555.3, 183.69, 574.73, 199.74, 580.64, 213.26, 584.02, 222.56, 573.88, 251.28, 567.97, 269.87, 566.28, 271.56, 565.44, 275.79, 569.66, 289.31, 573.88, 299.44, 568.82, 310.43, 540.93, 289.31, 538.4, 280.01, 528.26, 270.72, 524.88, 263.96, 524.03, 263.96, 520.65, 266.49, 511.36, 260.58, 478.41, 274.1], [344.06, 158.34, 332.23, 173.55, 324.63, 181.15, 317.03, 197.21, 315.34, 200.59, 311.11, 214.11, 302.66, 230.16, 303.51, 242.83, 307.73, 246.21, 311.11, 250.44, 328.01, 247.9, 337.3, 232.7, 344.06, 225.09]], "area": 17741.267449999992, "iscrowd": 0, "image_id": 140295, "bbox": [302.66, 156.65, 281.36, 153.78], "category_id": 24, "id": 1411969}, {"segmentation": [[252.26, 241.45, 253.19, 227.43, 255.06, 220.88, 259.27, 209.2, 263.94, 205.46, 269.55, 204.06, 277.03, 204.06, 284.51, 207.8, 287.78, 213.4, 288.72, 218.55, 289.18, 226.49, 290.58, 231.63, 290.58, 237.24, 289.65, 241.92, 284.98, 245.19, 280.3, 247.52, 273.29, 249.86, 269.08, 250.8, 263.01, 250.33, 258.8, 247.99, 252.26, 241.92]], "area": 1441.3586500000001, "iscrowd": 0, "image_id": 574108, "bbox": [252.26, 204.06, 38.32, 46.74], "category_id": 27, "id": 1416091}, {"segmentation": [[72.77, 261.24, 74.8, 259.2, 77.16, 259.2, 78.63, 260.1, 79.52, 260.99, 78.95, 262.86, 78.46, 263.35, 79.36, 265.22, 80.09, 266.52, 80.01, 268.63, 79.11, 269.61, 77.73, 270.91, 78.22, 268.39, 78.06, 266.19, 77.32, 265.06, 76.27, 265.87, 75.29, 267.17, 74.24, 269.2, 73.1, 270.83, 71.63, 272.29, 70.33, 271.4, 67.98, 271.32, 67.9, 268.23, 66.35, 267.82, 68.3, 267.17, 68.22, 265.62, 69.11, 265.14, 69.03, 262.29, 71.31, 262.29, 72.04, 261.4, 73.02, 260.99]], "area": 97.91374999999991, "iscrowd": 0, "image_id": 496360, "bbox": [66.35, 259.2, 13.74, 13.09], "category_id": 27, "id": 1417370}, {"segmentation": [[323.62, 208.8, 325.27, 208.8, 327.03, 209.8, 326.97, 211.79, 326.85, 214.14, 326.79, 216.08, 326.26, 217.66, 325.21, 218.37, 323.8, 218.37, 322.27, 218.37, 321.74, 217.96, 321.33, 216.84, 320.45, 215.49, 320.92, 213.49, 321.57, 211.91, 322.15, 210.56, 323.39, 209.45, 323.5, 209.15]], "area": 48.98560000000012, "iscrowd": 0, "image_id": 574108, "bbox": [320.45, 208.8, 6.58, 9.57], "category_id": 27, "id": 1419529}, {"segmentation": [[578.16, 2.16, 640.0, 23.73, 640.0, 36.67, 631.01, 40.99, 320.36, 50.7, 322.52, 132.67, 317.12, 245.93, 295.55, 225.44, 293.39, 56.09, 177.98, 53.93, 3.24, 44.22, 3.24, 6.47, 29.12, 5.39, 297.71, 0.0]], "area": 33746.13554999999, "iscrowd": 0, "image_id": 529348, "bbox": [3.24, 0.0, 636.76, 245.93], "category_id": 28, "id": 1426159}, {"segmentation": [[451.8, 251.7, 432.03, 253.26, 414.34, 249.62, 394.05, 242.33, 388.85, 231.93, 396.66, 237.13, 416.43, 244.94, 446.6, 249.62, 451.28, 250.14], [378.97, 238.69, 388.85, 246.5, 396.66, 251.18, 412.78, 252.22, 429.43, 252.74, 446.6, 255.86, 447.64, 257.42, 445.04, 258.98, 414.87, 256.38, 399.78, 255.34, 387.29, 251.7, 381.05, 241.81], [544.41, 268.87, 557.94, 268.35, 554.3, 266.27, 537.13, 266.27], [547.01, 260.54, 551.7, 261.06, 551.17, 262.1, 544.93, 262.62], [573.03, 264.71, 630.26, 269.91, 622.45, 275.11, 622.45, 279.27, 574.59, 273.55, 573.03, 270.43, 618.29, 274.59, 616.73, 272.51, 572.51, 266.79]], "area": 991.7649000000014, "iscrowd": 0, "image_id": 129982, "bbox": [378.97, 231.93, 251.29, 47.34], "category_id": 35, "id": 1449013}, {"segmentation": [[216.2, 416.01, 233.3, 428.54, 247.45, 437.82, 252.02, 441.36, 254.97, 445.64, 250.99, 450.94, 239.64, 450.35, 207.94, 421.75, 203.96, 417.18, 208.24, 417.77, 211.77, 418.36, 213.69, 417.04], [186.71, 397.28, 203.08, 414.83, 203.37, 418.36, 184.5, 404.36, 178.46, 398.32, 176.25, 395.07, 176.25, 390.8, 179.05, 390.06, 183.18, 391.83], [176.39, 420.13, 189.96, 434.58, 206.32, 450.35, 209.71, 453.01, 210.3, 453.16, 208.09, 457.14, 193.2, 460.08, 189.81, 459.35, 184.06, 451.68, 171.82, 432.22, 167.55, 428.24, 160.91, 418.51, 153.69, 411.44, 146.17, 403.33, 140.72, 397.73, 139.69, 392.27, 140.57, 389.47, 143.96, 388.44, 148.83, 389.76, 150.74, 394.78, 150.6, 402.59, 167.55, 420.58, 170.64, 420.43]], "area": 1747.9661500000025, "iscrowd": 0, "image_id": 21989, "bbox": [139.69, 388.44, 115.28, 71.64], "category_id": 35, "id": 1453228}, {"segmentation": [[452.62, 228.7, 431.91, 223.05, 420.25, 214.39, 423.63, 215.9, 431.54, 219.66, 440.95, 222.3, 450.36, 223.8], [449.23, 217.78, 431.91, 207.62, 455.25, 216.65, 462.4, 215.9], [573.81, 236.23, 614.46, 241.12, 612.21, 238.86, 576.83, 235.47], [572.31, 231.71, 613.71, 235.1, 608.44, 232.46, 579.84, 229.07, 568.92, 225.31]], "area": 314.61695000000014, "iscrowd": 0, "image_id": 129982, "bbox": [420.25, 207.62, 194.21, 33.5], "category_id": 35, "id": 1454072}, {"segmentation": [[59.1, 422.98, 90.15, 446.97, 103.33, 462.03, 116.03, 470.5, 131.08, 465.79, 133.44, 461.09, 105.68, 444.62, 94.39, 436.62, 89.68, 439.45, 79.33, 431.45, 66.16, 420.16, 66.16, 415.45, 58.63, 409.81, 53.93, 412.63, 53.46, 419.69, 59.1, 423.45], [100.5, 431.45, 129.2, 445.09, 160.25, 465.32, 172.96, 469.09, 184.72, 464.38, 188.01, 459.21, 138.14, 438.97, 133.44, 434.74, 124.5, 437.56, 97.21, 420.16, 92.98, 422.51, 93.92, 427.21, 100.03, 430.98]], "area": 2023.817399999999, "iscrowd": 0, "image_id": 21989, "bbox": [53.46, 409.81, 134.55, 60.69], "category_id": 35, "id": 1454477}, {"segmentation": [[369.12, 427.35, 332.16, 452.87, 311.92, 452.56, 309.28, 446.4, 335.68, 434.96, 352.4, 423.52, 363.84, 418.24, 374.4, 416.48, 376.16, 418.24], [400.8, 435.84, 365.6, 478.08, 346.24, 475.44, 342.72, 471.92, 351.52, 464.0, 384.96, 431.44, 395.52, 433.2, 400.8, 425.28, 404.32, 417.36, 404.32, 409.44, 406.96, 403.28, 411.36, 398.0, 423.68, 398.88, 421.04, 405.92, 416.64, 411.2, 412.24, 418.24, 406.96, 426.16, 399.04, 434.08], [406.96, 398.0, 415.76, 389.2, 414.0, 384.8, 409.6, 387.44]], "area": 2260.2844000000027, "iscrowd": 0, "image_id": 21989, "bbox": [309.28, 384.8, 114.4, 93.28], "category_id": 35, "id": 1454756}, {"segmentation": [[567.48, 420.81, 538.53, 447.95, 516.36, 467.85, 499.62, 471.47, 488.77, 467.4, 486.05, 466.05, 510.48, 448.86, 535.81, 430.76, 541.69, 433.02, 552.1, 430.31, 560.69, 419.0, 566.57, 414.93], [600.5, 417.19, 576.07, 461.52, 564.77, 480.0, 537.62, 480.0, 556.62, 460.62, 560.69, 444.78, 562.96, 445.24, 573.81, 447.05, 583.76, 436.19, 584.67, 423.98, 587.38, 419.0, 594.17, 411.31, 599.15, 407.24]], "area": 2237.4422500000005, "iscrowd": 0, "image_id": 21989, "bbox": [486.05, 407.24, 114.45, 72.76], "category_id": 35, "id": 1454831}, {"segmentation": [[295.65, 418.29, 263.22, 438.38, 254.61, 439.81, 251.45, 440.96, 251.45, 440.96, 252.89, 445.27, 265.8, 449.86, 316.31, 414.27, 310.85, 417.72, 306.84, 420.59, 306.84, 416.86, 305.4, 413.13, 302.53, 412.26, 299.95, 413.13], [321.19, 419.44, 309.99, 436.37, 296.22, 450.43, 289.05, 454.74, 285.6, 460.48, 310.28, 462.2, 314.3, 457.89, 314.3, 454.16, 313.44, 449.86, 316.02, 445.84, 320.04, 444.69, 323.48, 444.69, 323.48, 443.54, 340.7, 414.27, 336.11, 419.15, 330.66, 419.73, 328.65, 418.0, 325.2, 418.29, 321.76, 420.01], [340.73, 380.73, 343.01, 378.95, 345.8, 379.21, 348.33, 381.74, 348.58, 384.02, 347.57, 388.07, 343.26, 394.4], [342.5, 396.94, 349.34, 385.79, 353.4, 385.28, 355.68, 385.03, 356.44, 385.03, 358.46, 385.28, 361.25, 388.07, 360.24, 394.66, 344.28, 413.4]], "area": 1780.9943999999994, "iscrowd": 0, "image_id": 21989, "bbox": [251.45, 378.95, 109.8, 83.25], "category_id": 35, "id": 1455078}, {"segmentation": [[439.76, 424.33, 421.87, 448.03, 414.72, 454.52, 409.8, 458.32, 410.47, 461.67, 417.62, 463.46, 426.57, 463.24, 430.82, 462.34, 433.28, 461.67, 433.95, 461.22, 469.5, 405.32, 469.72, 399.73, 470.17, 395.26, 470.17, 389.45, 469.5, 388.11, 466.59, 390.12, 465.25, 394.82, 463.02, 399.51, 460.78, 401.08, 458.54, 408.01, 456.31, 413.15, 454.52, 417.18, 450.27, 420.98, 444.01, 421.65, 441.77, 422.32, 441.77, 422.32, 440.88, 423.21], [498.86, 390.1, 497.34, 394.91, 494.55, 398.71, 494.3, 398.96, 493.29, 400.48, 491.26, 403.77, 488.98, 412.13, 486.45, 418.21, 479.1, 421.76, 473.53, 419.48, 471.76, 421.25, 469.98, 425.56, 469.98, 426.57, 484.93, 429.61, 485.94, 428.85, 503.17, 391.62, 501.65, 389.59, 500.89, 389.59]], "area": 1378.3839500000017, "iscrowd": 0, "image_id": 21989, "bbox": [409.8, 388.11, 93.37, 75.35], "category_id": 35, "id": 1455287}, {"segmentation": [[473.18, 208.08, 481.51, 198.26, 484.49, 195.48, 487.48, 198.68, 493.25, 199.11, 495.6, 197.4, 494.31, 192.92, 494.53, 190.57, 500.51, 191.0, 502.85, 196.76, 505.42, 204.23, 505.42, 208.08, 503.92, 221.1, 500.29, 226.86, 497.52, 227.72, 492.61, 221.31, 487.7, 218.75, 478.94, 213.84, 474.67, 212.13]], "area": 682.3438000000006, "iscrowd": 0, "image_id": 277642, "bbox": [473.18, 190.57, 32.24, 37.15], "category_id": 40, "id": 1470395}, {"segmentation": [[402.94, 169.09, 414.31, 170.56, 421.27, 173.86, 424.94, 175.32, 427.87, 176.79, 431.17, 182.29, 428.6, 185.95, 422.37, 195.12, 415.41, 200.62, 413.94, 205.01, 406.97, 211.25, 398.91, 213.45, 391.94, 205.38, 391.94, 199.15, 391.94, 189.99, 392.68, 184.12, 393.04, 180.45, 395.61, 174.96, 399.28, 172.02]], "area": 1157.1193, "iscrowd": 0, "image_id": 277642, "bbox": [391.94, 169.09, 39.23, 44.36], "category_id": 40, "id": 1471165}, {"segmentation": [[571.7, 319.81, 558.11, 277.92, 549.06, 276.79, 542.26, 267.74, 547.92, 263.21, 555.85, 259.81, 560.38, 236.04, 572.83, 236.04, 584.15, 245.09, 588.68, 264.34, 597.74, 309.62, 584.15, 314.15]], "area": 2492.703649999998, "iscrowd": 0, "image_id": 2179, "bbox": [542.26, 236.04, 55.48, 83.77], "category_id": 41, "id": 1474492}, {"segmentation": [[530.22, 271.71, 487.8, 214.04, 454.66, 170.29, 430.79, 129.19, 436.1, 112.62, 451.34, 105.99, 471.89, 111.3, 484.49, 123.89, 489.79, 119.25, 496.42, 122.57, 499.73, 131.85, 496.42, 139.14, 495.09, 141.13, 521.61, 180.23, 512.99, 184.21, 514.31, 190.18, 514.98, 196.81, 516.97, 198.13, 521.61, 198.79, 526.25, 199.46, 533.54, 199.46, 536.85, 197.47, 554.75, 222.66, 562.7, 218.02, 568.01, 221.99, 571.32, 228.62, 568.01, 235.91, 566.02, 238.57, 571.98, 257.79, 569.99, 271.05, 561.38, 280.33, 548.12, 284.97]], "area": 9541.115049999995, "iscrowd": 0, "image_id": 298316, "bbox": [430.79, 105.99, 141.19, 178.98], "category_id": 41, "id": 1477513}, {"segmentation": [[237.26, 1.08, 236.06, 22.86, 242.63, 41.37, 243.82, 41.67, 210.39, 44.05, 216.66, 29.73, 212.78, 1.08, 236.66, 0.78]], "area": 992.4741500000001, "iscrowd": 0, "image_id": 69906, "bbox": [210.39, 0.78, 33.43, 43.27], "category_id": 46, "id": 1496303}, {"segmentation": [[3.38, 33.78, 65.03, 2.53, 446.79, 1.69, 500.0, 38.85, 500.0, 369.93, 0.0, 369.09]], "area": 181070.81365, "iscrowd": 0, "image_id": 265472, "bbox": [0.0, 1.69, 500.0, 368.24], "category_id": 51, "id": 1535248}, {"segmentation": [[275.97, 545.71, 285.08, 548.99, 301.85, 531.13, 304.04, 515.09, 301.12, 513.63, 297.47, 514.36, 280.34, 525.66, 285.81, 511.44, 283.62, 504.15, 277.42, 508.16, 275.6, 508.16, 273.41, 504.15, 273.78, 503.06, 272.68, 500.14, 271.59, 492.85, 269.04, 493.94, 266.85, 498.32, 263.57, 500.14, 259.92, 504.88, 257.37, 508.53, 256.28, 498.68, 254.46, 496.13, 254.46, 492.85, 250.08, 491.39, 245.34, 498.68, 241.33, 511.08, 243.88, 520.56, 237.69, 512.54, 234.77, 510.71, 230.03, 508.16, 228.21, 510.71, 229.3, 514.72, 227.11, 526.39, 232.22, 536.6, 228.94, 537.69, 225.29, 535.5, 223.1, 534.05, 217.63, 532.22, 213.62, 538.79, 213.62, 542.07, 215.45, 546.08, 216.18, 548.26, 220.19, 556.65, 230.76, 562.12, 228.21, 564.67, 214.35, 566.86, 213.62, 567.22, 214.35, 571.23, 227.84, 582.17, 239.87, 581.81, 243.52, 578.52, 232.95, 596.02, 232.58, 604.04, 236.23, 606.96, 243.52, 604.41, 250.81, 597.48, 261.38, 585.45, 270.5, 579.25, 273.41, 573.06, 272.32, 569.41, 275.97, 563.58, 281.07, 555.92, 281.43, 553.0]], "area": 5383.29105, "iscrowd": 0, "image_id": 158722, "bbox": [213.62, 491.39, 90.42, 115.57], "category_id": 52, "id": 1541973}, {"segmentation": [[117.22, 510.15, 125.36, 508.11, 145.73, 502.0, 151.16, 489.11, 152.51, 478.25, 150.48, 477.57, 144.37, 478.92, 128.08, 491.14, 135.54, 470.78, 130.79, 463.99, 129.44, 458.56, 123.33, 466.71, 118.57, 455.85, 111.79, 455.17, 111.11, 468.06, 106.36, 474.85, 100.93, 464.67, 94.82, 460.6, 88.71, 463.31, 88.03, 474.17, 91.42, 483.68, 87.35, 483.0, 80.56, 479.6, 70.38, 479.6, 60.2, 477.57, 56.81, 480.96, 58.84, 485.71, 66.31, 496.57, 57.48, 499.97, 52.05, 501.32, 45.27, 502.68, 46.62, 510.83, 55.45, 512.86, 61.56, 515.58, 53.41, 520.33, 45.27, 525.08, 40.51, 529.15, 41.19, 533.91, 54.77, 534.58, 57.48, 534.58, 53.41, 542.05, 48.66, 548.84, 51.38, 553.59, 55.45, 553.59, 68.34, 550.2, 68.34, 562.41, 68.34, 567.17, 79.21, 563.09, 88.03, 552.23, 90.07, 565.81, 99.57, 569.2, 104.32, 559.7, 106.36, 545.45, 105.68, 533.91, 114.5, 523.72, 119.25, 516.26, 119.93, 510.83]], "area": 6327.192549999999, "iscrowd": 0, "image_id": 158722, "bbox": [40.51, 455.17, 112.0, 114.03], "category_id": 52, "id": 1542520}, {"segmentation": [[355.2, 398.33, 357.92, 426.9, 370.84, 441.87, 408.94, 451.39, 400.78, 417.38, 404.86, 405.13, 395.33, 393.57, 379.01, 390.17, 362.68, 399.69]], "area": 2249.583199999999, "iscrowd": 0, "image_id": 158722, "bbox": [355.2, 390.17, 53.74, 61.22], "category_id": 52, "id": 1543675}, {"segmentation": [[125.84, 148.01, 195.6, 163.84, 199.91, 159.52, 204.22, 150.89, 204.22, 143.7, 198.47, 132.19, 186.97, 128.6, 169.71, 124.28, 143.82, 117.09, 128.0, 113.5, 122.97, 112.78, 118.65, 127.88, 125.84, 145.86, 125.84, 155.93]], "area": 2714.6956499999997, "iscrowd": 0, "image_id": 80756, "bbox": [118.65, 112.78, 85.57, 51.06], "category_id": 54, "id": 1553708}, {"segmentation": [[611.36, 362.24, 560.34, 334.69, 550.13, 324.49, 541.97, 317.85, 533.8, 305.61, 524.11, 292.34, 515.95, 283.16, 501.15, 274.99, 495.54, 268.36, 478.7, 251.52, 472.58, 237.75, 471.55, 228.56, 475.64, 226.52, 483.29, 229.58, 485.84, 236.73, 489.41, 238.77, 491.96, 238.77, 497.58, 229.58, 502.68, 232.13, 504.21, 233.67, 507.27, 229.07, 513.39, 227.03, 516.97, 228.05, 523.09, 232.64, 532.27, 231.11, 535.33, 228.05, 541.97, 231.11, 548.6, 233.67, 550.64, 236.22, 552.68, 236.73, 557.27, 233.67, 560.34, 232.64, 567.99, 234.69, 574.62, 237.75, 580.23, 241.83, 589.42, 245.91, 596.05, 254.07, 600.64, 263.26, 604.73, 266.32, 612.89, 272.44, 616.97, 273.97, 622.07, 269.89, 633.81, 263.77, 638.4, 263.26, 639.93, 266.32, 639.93, 277.55, 640.0, 292.34, 640.0, 315.81, 640.0, 328.57, 640.0, 341.32, 640.0, 353.06, 640.0, 364.8, 640.0, 383.9]], "area": 13117.254949999999, "iscrowd": 0, "image_id": 294451, "bbox": [471.55, 226.52, 168.45, 157.38], "category_id": 55, "id": 1556050}, {"segmentation": [[116.21, 108.18, 114.23, 103.41, 115.02, 98.64, 120.59, 97.05, 128.14, 97.05, 133.71, 104.21, 133.71, 107.79, 131.72, 113.35, 126.15, 114.15, 121.78, 112.16, 118.2, 107.39]], "area": 247.02690000000007, "iscrowd": 0, "image_id": 294451, "bbox": [114.23, 97.05, 19.48, 17.1], "category_id": 55, "id": 1556624}, {"segmentation": [[101.78, 140.89, 101.07, 132.35, 103.21, 128.79, 109.61, 126.65, 118.15, 126.65, 123.85, 132.35, 122.42, 135.19, 122.42, 141.6, 120.29, 143.73, 113.88, 143.73, 108.19, 143.73, 107.48, 143.73, 103.92, 139.46]], "area": 320.83294999999987, "iscrowd": 0, "image_id": 294451, "bbox": [101.07, 126.65, 22.78, 17.08], "category_id": 55, "id": 1556792}, {"segmentation": [[87.46, 111.46, 81.91, 112.38, 79.75, 114.54, 78.21, 117.63, 77.9, 120.71, 78.52, 125.03, 80.37, 127.19, 85.92, 130.27, 92.08, 130.27, 96.09, 130.27, 98.25, 129.65, 100.1, 125.95, 101.03, 124.1, 98.25, 115.16, 96.09, 114.23]], "area": 346.0890000000002, "iscrowd": 0, "image_id": 294451, "bbox": [77.9, 111.46, 23.13, 18.81], "category_id": 55, "id": 1557663}, {"segmentation": [[450.97, 390.39, 465.03, 394.43, 465.88, 395.5, 465.03, 399.33, 459.49, 404.44, 450.12, 405.72, 445.86, 402.53, 440.75, 390.17, 445.22, 389.32]], "area": 269.9349999999999, "iscrowd": 0, "image_id": 118607, "bbox": [440.75, 389.32, 25.13, 16.4], "category_id": 56, "id": 1559498}, {"segmentation": [[105.17, 96.56, 120.0, 92.11, 125.94, 88.41, 118.52, 60.22, 135.58, 60.22, 157.83, 62.45, 173.4, 43.17, 195.65, 68.38, 197.13, 97.31, 186.01, 125.49, 209.0, 152.19, 209.74, 180.37, 193.43, 200.39, 181.56, 215.23, 171.18, 246.38, 132.61, 276.78, 103.69, 285.68, 62.16, 272.33, 0.0, 227.83, 0.0, 202.62, 16.91, 166.28, 36.94, 158.86, 53.26, 152.19, 62.16, 149.22, 63.64, 143.29, 51.77, 101.76, 55.48, 86.18, 64.38, 79.51, 86.63, 80.25]], "area": 31764.919449999994, "iscrowd": 0, "image_id": 50924, "bbox": [0.0, 43.17, 209.74, 242.51], "category_id": 56, "id": 1560288}, {"segmentation": [[380.84, 166.41, 397.96, 155.64, 403.83, 148.3, 408.24, 130.2, 417.53, 119.92, 433.68, 125.31, 460.59, 155.15, 477.72, 175.7, 498.76, 193.81, 516.86, 204.57, 525.67, 220.72, 559.43, 206.04, 583.41, 226.1, 604.45, 250.08, 631.85, 294.12, 640.0, 305.86, 617.17, 359.68, 601.02, 390.02, 576.07, 410.57, 585.37, 426.72, 572.64, 455.1, 550.62, 468.8, 507.08, 480.0, 374.96, 480.0, 367.63, 469.29, 291.92, 480.0, 247.42, 480.0, 234.81, 466.04, 240.01, 450.46, 247.42, 432.66, 254.84, 418.57, 251.13, 393.36, 247.42, 362.21, 249.65, 342.18, 263.0, 305.84, 274.12, 284.34, 283.76, 272.47, 300.08, 224.26, 330.49, 202.75, 342.35, 188.66]], "area": 98987.18984999998, "iscrowd": 0, "image_id": 50924, "bbox": [234.81, 119.92, 405.19, 360.08], "category_id": 56, "id": 1560480}, {"segmentation": [[192.43, 221.08, 214.05, 226.49, 230.27, 215.68, 244.32, 209.19, 262.7, 232.97, 275.68, 251.35, 283.24, 263.24, 275.68, 283.78, 252.97, 316.22, 236.76, 331.35, 221.62, 335.68, 201.08, 334.59, 180.54, 334.59, 179.46, 334.59, 160.0, 328.11, 153.51, 319.46, 148.11, 309.73, 147.03, 296.76, 147.03, 280.54, 171.89, 279.46, 182.7, 265.41, 185.95, 247.03, 184.86, 232.97, 183.78, 227.57]], "area": 11142.53295, "iscrowd": 0, "image_id": 50924, "bbox": [147.03, 209.19, 136.21, 126.49], "category_id": 56, "id": 1560741}, {"segmentation": [[457.35, 154.52, 447.64, 128.63, 449.8, 99.51, 461.66, 96.27, 477.84, 99.51, 494.02, 94.11, 525.3, 97.35, 531.78, 101.66, 547.96, 122.16, 549.03, 137.26, 549.03, 159.91, 541.48, 182.56, 529.62, 189.03, 501.57, 195.51, 492.94, 191.19]], "area": 7938.406749999999, "iscrowd": 0, "image_id": 50924, "bbox": [447.64, 94.11, 101.39, 101.4], "category_id": 56, "id": 1561142}, {"segmentation": [[42.99, 196.69, 51.44, 186.7, 66.8, 181.33, 79.1, 188.24, 65.27, 198.23, 54.51, 213.59, 49.9, 225.89, 33.77, 238.95, 17.63, 241.25, 11.49, 258.92, 2.27, 258.92, 0.73, 235.11, 22.24, 219.74, 29.16, 203.61]], "area": 1984.4231499999996, "iscrowd": 0, "image_id": 256660, "bbox": [0.73, 181.33, 78.37, 77.59], "category_id": 57, "id": 1566456}, {"segmentation": [[222.44, 101.67, 214.02, 124.35, 190.04, 104.26, 189.39, 91.3, 195.87, 101.02, 201.05, 86.11, 201.7, 75.09, 207.56, 74.58, 202.51, 23.57, 235.34, 22.56, 262.61, 34.18, 259.58, 54.88, 262.61, 59.93, 265.64, 65.99, 269.68, 68.01, 278.27, 69.02, 281.8, 74.58, 279.28, 89.73, 273.21, 97.31, 259.07, 88.72, 252.51, 91.25, 245.44, 96.8, 245.44, 102.36, 240.89, 110.44, 232.81, 105.89, 223.72, 103.87]], "area": 5319.91095, "iscrowd": 0, "image_id": 2179, "bbox": [189.39, 22.56, 92.41, 101.79], "category_id": 62, "id": 1582943}, {"segmentation": [[499.42, 197.39, 530.7, 196.31, 550.11, 186.61, 572.76, 157.48, 593.26, 170.43, 616.99, 221.12, 623.46, 236.22, 584.63, 266.43, 573.84, 241.62, 563.06, 248.09, 557.66, 277.21, 538.25, 280.45, 522.07, 294.47, 516.67, 317.12, 509.12, 320.36, 513.44, 290.16, 486.47, 293.39, 481.08, 279.37, 491.87, 220.04, 491.87, 199.55]], "area": 11323.1318, "iscrowd": 0, "image_id": 2179, "bbox": [481.08, 157.48, 142.38, 162.88], "category_id": 62, "id": 1586843}, {"segmentation": [[0.0, 435.78, 8.63, 427.15, 21.57, 396.94, 47.46, 375.37, 67.6, 365.3, 99.24, 365.3, 96.36, 332.22, 156.76, 304.9, 185.53, 274.7, 234.43, 245.93, 222.92, 224.36, 237.3, 214.29, 261.75, 212.85, 271.82, 201.35, 283.33, 194.16, 381.12, 198.47, 422.83, 204.22, 464.54, 592.54, 2.88, 593.98]], "area": 143751.1325, "iscrowd": 0, "image_id": 158722, "bbox": [0.0, 194.16, 464.54, 399.82], "category_id": 67, "id": 1617785}, {"segmentation": [[1.65, 80.65, 16.29, 79.88, 35.17, 76.41, 47.5, 71.79, 49.81, 69.86, 60.59, 47.52, 63.29, 32.49, 62.14, 17.85, 59.44, 5.91, 57.13, 0.13, 0.5, 0.0]], "area": 4443.10275, "iscrowd": 0, "image_id": 119729, "bbox": [0.5, 0.0, 62.79, 80.65], "category_id": 77, "id": 1637297}, {"segmentation": [[340.16, 44.93, 299.61, 58.45, 261.44, 45.99, 260.91, 67.72, 339.1, 71.96, 341.22, 49.7]], "area": 1420.1952499999998, "iscrowd": 0, "image_id": 80756, "bbox": [260.91, 44.93, 80.31, 27.03], "category_id": 84, "id": 1647903}, {"segmentation": [[214.21, 62.73, 214.21, 38.83, 256.26, 46.03, 224.58, 60.43, 218.24, 63.02], [200.96, 58.13, 190.01, 54.38, 191.74, 38.54, 202.4, 39.4, 201.25, 52.65], [263.75, 30.19, 228.03, 39.4, 213.34, 37.68, 213.06, 20.39, 213.92, 18.95, 268.93, 29.04], [201.54, 34.51, 192.61, 34.22, 191.74, 22.12, 203.84, 17.23]], "area": 1522.5609499999998, "iscrowd": 0, "image_id": 80756, "bbox": [190.01, 17.23, 78.92, 45.79], "category_id": 84, "id": 1647949}, {"segmentation": [[203.83, 60.83, 205.04, 59.47, 206.24, 60.91, 206.39, 62.49, 206.32, 63.54, 201.35, 63.16, 201.8, 62.04, 203.08, 61.43, 203.38, 60.83, 204.06, 60.53], [200.75, 67.61, 200.9, 69.94, 201.72, 69.64, 202.55, 67.23, 203.91, 66.78, 204.13, 68.29, 204.21, 70.17, 205.11, 69.42, 205.26, 66.63, 200.9, 66.4]], "area": 20.991349999999997, "iscrowd": 0, "image_id": 21989, "bbox": [200.75, 59.47, 5.64, 10.7], "category_id": 1, "id": 1678703}, {"segmentation": [[338.45, 104.95, 343.64, 99.22, 343.37, 94.03, 348.56, 96.49, 349.1, 100.58, 347.19, 102.22, 351.02, 106.59, 349.65, 108.78, 348.56, 116.15, 348.28, 120.25, 347.19, 124.34, 345.55, 119.43, 341.46, 114.78, 338.45, 114.78, 338.45, 108.23, 337.36, 106.05]], "area": 205.10124999999996, "iscrowd": 0, "image_id": 158722, "bbox": [337.36, 94.03, 13.66, 30.31], "category_id": 1, "id": 1679363}, {"segmentation": [[267.23, 216.53, 262.73, 215.67, 262.52, 210.31, 260.8, 209.24, 262.09, 207.09, 263.8, 206.66, 264.87, 203.23, 267.66, 205.38, 266.38, 207.09, 267.02, 212.24, 267.45, 215.67]], "area": 51.73624999999991, "iscrowd": 0, "image_id": 550576, "bbox": [260.8, 203.23, 6.86, 13.3], "category_id": 1, "id": 1695141}, {"segmentation": [[158.91, 218.39, 159.51, 216.15, 159.51, 213.39, 158.48, 211.85, 156.84, 211.16, 157.36, 209.44, 158.13, 208.83, 158.39, 207.97, 158.39, 206.85, 158.39, 205.39, 157.02, 204.27, 156.24, 202.72, 157.45, 200.4, 158.57, 200.06, 159.25, 200.14, 159.86, 200.74, 161.49, 201.35, 162.61, 203.33, 163.04, 206.94, 163.64, 209.26, 163.64, 210.47, 163.3, 212.02, 163.3, 213.22, 164.85, 214.51, 166.65, 217.1, 167.0, 220.11, 165.11, 220.28, 163.64, 218.56, 162.44, 215.8, 161.49, 214.34, 161.15, 218.47, 160.72, 219.68, 159.86, 220.45, 159.17, 220.45, 159.0, 220.28, 158.57, 219.25]], "area": 102.12905000000019, "iscrowd": 0, "image_id": 550576, "bbox": [156.24, 200.06, 10.76, 20.39], "category_id": 1, "id": 1703814}, {"segmentation": [[324.32, 95.43, 321.25, 89.28, 323.55, 80.82, 336.63, 78.51, 335.09, 96.97, 337.4, 100.81, 337.4, 110.81, 333.55, 140.52, 323.55, 152.06, 325.09, 140.52, 313.56, 141.29, 317.4, 113.61, 305.1, 118.99, 298.18, 113.61, 299.72, 111.3, 319.71, 108.23, 323.55, 97.46]], "area": 1207.9461499999995, "iscrowd": 0, "image_id": 158722, "bbox": [298.18, 78.51, 39.22, 73.55], "category_id": 1, "id": 1708746}, {"segmentation": [[576.74, 285.56, 581.03, 289.68, 582.64, 293.26, 588.01, 299.88, 589.62, 308.11, 588.55, 318.31, 589.27, 325.83, 595.35, 337.46, 596.96, 346.95, 593.74, 351.07, 586.94, 336.03, 584.61, 319.21, 579.78, 294.87, 575.67, 286.1, 575.67, 284.85]], "area": 345.75729999999913, "iscrowd": 0, "image_id": 210408, "bbox": [575.67, 284.85, 21.29, 66.22], "category_id": 1, "id": 1712953}, {"segmentation": [[272.5, 257.26, 272.5, 279.17, 269.37, 309.22, 271.25, 333.01, 277.51, 367.44, 279.38, 371.2, 275.63, 394.99, 263.11, 399.37, 261.23, 359.93, 250.59, 359.93, 241.82, 314.23, 237.44, 307.97, 237.44, 304.84, 248.71, 300.46, 248.71, 296.08, 244.33, 296.08, 223.62, 296.75, 229.31, 279.67, 211.28, 275.88, 197.05, 267.34, 191.36, 252.16, 188.51, 235.08, 184.71, 223.69, 200.84, 183.84, 207.49, 150.63, 235.95, 122.16, 239.75, 107.93, 239.75, 88.0, 244.49, 79.46, 265.37, 78.52, 272.96, 81.36, 280.55, 91.8, 281.5, 101.29, 280.55, 114.57, 277.7, 122.16, 286.24, 128.8, 307.12, 176.25, 310.91, 228.44, 319.45, 234.13, 324.2, 243.62, 322.3, 248.36, 319.45, 248.36, 314.71, 256.9, 309.01, 255.0, 306.17, 247.41, 291.93, 229.38, 275.8, 246.46], [233.11, 306.24, 231.64, 303.52, 227.09, 303.52, 225.85, 305.59, 220.9, 302.28, 216.36, 318.8, 211.81, 320.45, 210.16, 323.76, 204.79, 340.28, 217.18, 336.15, 232.88, 315.91], [258.07, 366.3, 258.07, 393.56, 257.66, 398.93, 256.83, 395.62, 253.11, 374.97, 251.87, 364.23]], "area": 20413.403550000003, "iscrowd": 0, "image_id": 278203, "bbox": [184.71, 78.52, 139.49, 320.85], "category_id": 1, "id": 1716352}, {"segmentation": [[278.92, 105.4, 291.31, 113.24, 306.18, 140.92, 305.77, 152.89, 292.96, 166.52, 288.83, 179.33, 292.14, 190.89, 292.14, 199.15, 287.39, 201.37, 284.4, 199.46, 284.12, 192.65, 282.76, 192.37, 281.94, 194.83, 279.76, 193.19, 279.76, 197.55, 276.49, 195.37, 278.13, 167.31, 278.4, 153.95, 281.67, 143.6, 279.22, 130.79, 274.59, 138.69, 272.41, 144.69, 272.95, 149.05, 270.77, 150.14, 268.32, 152.32, 264.78, 150.14, 264.23, 143.87, 269.68, 132.97, 272.68, 125.89, 269.95, 119.89, 269.41, 115.81, 267.77, 111.17, 264.23, 104.36, 264.23, 99.73, 268.59, 97.55, 272.13, 95.64, 275.4, 98.09, 277.58, 101.64]], "area": 2108.6642999999995, "iscrowd": 0, "image_id": 158722, "bbox": [264.23, 95.64, 41.95, 105.73], "category_id": 1, "id": 1719305}, {"segmentation": [[255.64, 408.81, 250.25, 386.16, 253.48, 334.38, 250.25, 313.89, 239.46, 310.65, 215.73, 344.09, 202.79, 339.78, 215.73, 317.12, 226.52, 298.79, 226.52, 291.24, 206.02, 269.66, 195.24, 250.25, 184.45, 239.46, 179.06, 229.75, 169.35, 228.67, 177.98, 221.12, 179.06, 204.94, 198.47, 207.1, 217.89, 223.28, 237.3, 227.6, 282.61, 236.22, 304.18, 247.01, 340.85, 273.98, 393.71, 242.7, 433.62, 249.17, 433.62, 256.72, 412.04, 263.19, 349.48, 309.57, 288.0, 297.71, 270.74, 417.44, 256.72, 417.44]], "area": 15895.433350000003, "iscrowd": 0, "image_id": 277642, "bbox": [169.35, 204.94, 264.27, 212.5], "category_id": 1, "id": 1720671}, {"segmentation": [[610.27, 157.37, 602.6, 142.97, 605.48, 130.5, 605.48, 114.19, 611.23, 95.0, 618.91, 76.76, 622.75, 71.01, 634.26, 64.29, 640.0, 73.89, 640.0, 110.35, 640.0, 139.13, 640.0, 158.33]], "area": 2730.96145, "iscrowd": 0, "image_id": 277961, "bbox": [602.6, 64.29, 37.4, 94.04], "category_id": 1, "id": 1729472}, {"segmentation": [[301.86, 212.69, 302.12, 217.12, 299.52, 216.86, 299.39, 211.78, 298.09, 204.88, 297.96, 201.63, 300.17, 199.81, 298.35, 198.9, 296.79, 197.07, 297.7, 194.99, 299.65, 194.08, 301.86, 195.51, 303.68, 198.64, 306.03, 201.5, 308.37, 214.12, 308.89, 217.51, 306.29, 217.51, 305.64, 215.55, 304.33, 212.56]], "area": 157.80255000000017, "iscrowd": 0, "image_id": 550576, "bbox": [296.79, 194.08, 12.1, 23.43], "category_id": 1, "id": 1735904}, {"segmentation": [[196.67, 88.24, 199.87, 91.44, 200.24, 93.64, 200.24, 96.59, 200.98, 98.24, 202.63, 99.9, 204.29, 99.9, 205.02, 101.37, 204.84, 104.68, 204.1, 105.96, 202.45, 106.88, 200.79, 108.54, 200.42, 108.54, 200.24, 109.64, 200.06, 111.3, 199.69, 113.87, 198.4, 115.16, 194.54, 114.79, 193.07, 112.58, 193.8, 111.85, 193.62, 105.04, 193.44, 102.1, 192.15, 99.9, 189.57, 99.9, 189.02, 97.5, 191.41, 96.95, 193.07, 96.95, 193.8, 95.85, 193.8, 92.91, 193.8, 91.07, 193.8, 89.6, 193.8, 89.04, 193.8, 87.21], [193.25, 149.55, 193.44, 152.31, 193.62, 153.05, 193.62, 153.6, 195.28, 154.15, 197.3, 154.15, 198.4, 153.78, 200.79, 151.94, 204.47, 151.21, 205.02, 146.98, 204.47, 141.28, 203.92, 137.41, 203.0, 134.29, 202.08, 129.51, 203.18, 125.28, 201.16, 122.89, 198.22, 123.99, 195.09, 123.99, 194.17, 124.91, 195.09, 129.14, 196.38, 132.26, 196.38, 135.76, 196.56, 137.23, 197.48, 140.36, 198.4, 142.56, 198.4, 145.32, 198.4, 147.53, 196.56, 148.26, 195.64, 148.26]], "area": 440.0678, "iscrowd": 0, "image_id": 158722, "bbox": [189.02, 87.21, 16.0, 66.94], "category_id": 1, "id": 1739253}, {"segmentation": [[338.13, 292.23, 336.92, 290.51, 336.45, 287.51, 337.08, 285.85, 338.97, 284.75, 341.82, 284.2, 345.21, 286.41, 345.92, 288.46, 346.31, 291.3, 346.79, 292.48]], "area": 65.18435000000011, "iscrowd": 0, "image_id": 210408, "bbox": [336.45, 284.2, 10.34, 8.28], "category_id": 1, "id": 1757387}, {"segmentation": [[80.94, 39.42, 175.33, 34.03, 199.61, 42.66, 195.29, 47.51, 195.29, 59.92, 107.37, 55.07, 102.51, 55.07, 84.17, 39.96]], "area": 2119.5022499999995, "iscrowd": 0, "image_id": 158722, "bbox": [80.94, 34.03, 118.67, 25.89], "category_id": 28, "id": 1830522}, {"segmentation": [[272.69, 82.75, 282.87, 79.42, 288.9, 77.34, 293.05, 77.55, 300.33, 77.13, 300.53, 75.68, 300.74, 74.85, 302.4, 74.02, 305.31, 73.81, 309.47, 74.23, 312.17, 74.64, 316.53, 77.34, 322.56, 81.91, 323.81, 83.78, 323.39, 87.11, 323.6, 89.39, 323.18, 91.06, 320.07, 90.43, 319.03, 88.77, 319.03, 87.94, 318.82, 87.11, 316.95, 86.49, 313.83, 86.49, 311.96, 88.56, 310.92, 91.47, 293.26, 91.26, 277.88, 89.6, 273.73, 88.56, 271.03, 86.69]], "area": 632.2767, "iscrowd": 0, "image_id": 158722, "bbox": [271.03, 73.81, 52.78, 17.66], "category_id": 28, "id": 1830683}, {"segmentation": [[349.71, 91.94, 345.37, 88.32, 337.41, 79.64, 330.9, 73.85, 328.73, 78.91, 335.96, 92.66, 342.48, 95.56]], "area": 186.63570000000018, "iscrowd": 0, "image_id": 158722, "bbox": [328.73, 73.85, 20.98, 21.71], "category_id": 28, "id": 1831026}, {"segmentation": [[269.0, 151.41, 267.31, 161.13, 271.11, 165.35, 272.38, 165.35, 264.35, 179.3, 255.06, 171.69, 258.02, 165.35, 258.44, 159.44, 263.51, 158.59, 265.62, 153.52]], "area": 230.06920000000025, "iscrowd": 0, "image_id": 158722, "bbox": [255.06, 151.41, 17.32, 27.89], "category_id": 31, "id": 1836491}, {"segmentation": [[65.32, 283.76, 76.25, 292.54, 83.1, 297.9, 87.39, 299.4, 85.89, 297.69, 71.96, 287.4, 66.61, 283.12], [81.82, 291.26, 89.96, 297.9, 91.67, 296.4, 84.39, 290.19, 80.32, 287.83, 80.75, 290.19], [75.39, 285.69, 69.18, 280.33, 68.11, 281.19, 74.96, 286.33]], "area": 76.93150000000023, "iscrowd": 0, "image_id": 496360, "bbox": [65.32, 280.33, 26.35, 19.07], "category_id": 35, "id": 1845241}, {"segmentation": [[611.82, 218.19, 599.45, 217.06, 579.21, 203.57, 580.33, 213.69, 596.08, 221.56, 612.95, 222.69], [598.33, 229.43, 588.21, 220.44, 584.83, 220.44, 589.33, 229.43]], "area": 266.26215000000013, "iscrowd": 0, "image_id": 129982, "bbox": [579.21, 203.57, 33.74, 25.86], "category_id": 35, "id": 1846414}, {"segmentation": [[640.0, 216.99, 634.33, 217.64, 633.36, 220.55, 640.0, 220.87], [640.0, 228.3, 632.39, 228.62, 632.07, 231.53, 640.0, 230.88]], "area": 42.067249999999866, "iscrowd": 0, "image_id": 129982, "bbox": [632.07, 216.99, 7.93, 14.54], "category_id": 35, "id": 1849188}, {"segmentation": [[313.08, 234.56, 320.36, 227.16, 321.82, 227.88, 314.29, 234.81], [315.87, 235.29, 323.03, 228.61, 323.76, 229.83, 317.69, 235.66]], "area": 26.390750000000068, "iscrowd": 0, "image_id": 574108, "bbox": [313.08, 227.16, 10.68, 8.5], "category_id": 35, "id": 1849987}, {"segmentation": [[19.45, 304.41, 30.22, 292.33, 41.97, 289.72, 37.08, 302.13, 18.47, 308.66]], "area": 197.08125000000007, "iscrowd": 0, "image_id": 288403, "bbox": [18.47, 289.72, 23.5, 18.94], "category_id": 40, "id": 1859615}, {"segmentation": [[362.39, 0.69, 361.56, 6.51, 356.57, 9.0, 354.91, 21.47, 354.08, 27.29, 361.56, 29.78, 351.58, 41.42, 351.58, 43.08, 361.56, 48.07, 379.84, 44.74, 384.0, 41.42, 384.0, 19.81, 384.0, 6.51, 380.68, 8.17, 381.51, 1.52]], "area": 1211.8025, "iscrowd": 0, "image_id": 80756, "bbox": [351.58, 0.69, 32.42, 47.38], "category_id": 44, "id": 1867573}, {"segmentation": [[298.75, 51.88, 310.0, 110.63, 335.0, 155.63, 360.0, 168.13, 380.0, 168.13, 397.5, 140.63, 410.0, 100.63, 412.5, 56.88, 418.75, 5.63, 418.75, 0.63, 295.0, 3.13]], "area": 16124.21875, "iscrowd": 0, "image_id": 50924, "bbox": [295.0, 0.63, 123.75, 167.5], "category_id": 50, "id": 1895181}, {"segmentation": [[511.17, 465.04, 612.16, 403.95, 638.34, 325.4, 640.0, 179.53, 617.14, 124.68, 582.23, 77.3, 558.55, 68.57, 509.92, 42.39, 407.69, 8.73, 342.86, 1.25, 245.61, 1.25, 169.56, 12.47, 73.56, 58.6, 3.74, 158.34, 1.25, 288.0, 37.4, 376.52, 87.27, 417.66, 142.13, 447.58, 193.25, 467.53, 245.61, 473.77, 480.0, 473.77]], "area": 256557.32460000002, "iscrowd": 0, "image_id": 425848, "bbox": [1.25, 1.25, 638.75, 472.52], "category_id": 51, "id": 1901496}, {"segmentation": [[86.69, 196.75, 102.27, 181.17, 99.35, 171.43, 112.01, 173.38, 114.94, 175.32, 134.42, 178.25, 150.97, 183.12, 165.58, 201.62, 167.53, 210.39, 169.48, 224.03, 169.48, 234.74, 164.61, 244.48, 161.69, 229.87, 161.69, 236.69, 162.66, 249.35, 142.21, 262.99, 130.52, 266.88, 107.14, 269.81, 78.9, 258.12, 75.97, 233.77, 78.9, 211.36, 77.92, 205.52, 75.0, 191.88, 85.71, 195.78]], "area": 7079.889149999999, "iscrowd": 0, "image_id": 265472, "bbox": [75.0, 171.43, 94.48, 98.38], "category_id": 52, "id": 1904489}, {"segmentation": [[623.07, 409.42, 627.26, 425.12, 627.86, 434.69, 629.35, 456.66, 628.45, 459.35, 625.91, 463.54, 624.27, 466.08, 622.03, 465.93, 617.39, 458.01, 616.94, 465.78, 613.06, 474.75, 609.92, 472.66, 606.93, 469.67, 605.88, 465.78, 604.83, 445.9, 601.69, 441.11, 601.4, 456.96, 600.5, 465.48, 597.06, 470.12, 594.67, 471.01, 592.13, 468.77, 589.73, 466.23, 589.73, 457.86, 589.73, 447.99, 589.14, 440.37, 588.84, 433.04, 587.04, 453.07, 582.56, 462.49, 579.12, 462.34, 575.83, 452.77, 576.43, 431.7, 578.67, 418.84, 580.47, 411.96, 583.61, 407.18, 584.95, 405.38, 584.8, 400.75, 586.89, 396.86, 590.03, 394.02, 593.47, 393.28, 597.06, 394.02, 600.8, 395.97, 601.84, 397.76, 604.39, 397.01, 607.52, 397.61, 609.92, 399.85, 610.66, 405.09, 612.61, 402.39, 616.49, 402.25, 620.68, 405.24, 623.37, 409.27]], "area": 3094.2319, "iscrowd": 0, "image_id": 294451, "bbox": [575.83, 393.28, 53.52, 81.47], "category_id": 52, "id": 1904583}, {"segmentation": [[16.65, 142.43, 31.32, 150.81, 41.79, 138.94, 55.76, 131.25, 59.95, 122.87, 73.22, 87.96, 71.82, 81.67, 64.14, 75.38, 46.68, 93.54, 35.51, 109.6, 18.05, 134.05, 17.35, 142.43]], "area": 1831.71725, "iscrowd": 0, "image_id": 265472, "bbox": [16.65, 75.38, 56.57, 75.43], "category_id": 52, "id": 1905233}, {"segmentation": [[138.08, 77.41, 138.33, 73.3, 140.64, 68.17, 145.01, 65.6, 150.4, 65.6, 153.22, 67.14, 156.05, 71.5, 156.82, 75.1, 154.25, 82.8, 148.09, 84.34, 146.03, 84.34, 145.26, 80.23, 141.67, 77.66, 139.1, 76.89]], "area": 247.6068000000001, "iscrowd": 0, "image_id": 294451, "bbox": [138.08, 65.6, 18.74, 18.74], "category_id": 55, "id": 1912193}, {"segmentation": [[159.77, 65.62, 161.15, 53.71, 152.9, 51.87, 142.82, 52.33, 141.44, 54.62, 133.65, 55.08, 127.23, 58.75, 125.4, 60.58, 117.15, 57.37, 114.4, 55.54, 111.65, 50.04, 104.77, 47.75, 102.02, 49.58, 91.94, 47.75, 83.23, 46.83, 80.94, 47.75, 73.15, 47.29, 67.19, 48.21, 66.28, 53.71, 62.15, 60.12, 65.82, 72.96, 71.32, 90.37, 73.15, 109.16, 68.11, 122.0, 70.4, 148.58, 80.03, 152.7, 99.27, 154.54, 110.27, 156.83, 126.32, 158.66, 135.94, 156.37, 137.32, 145.37, 144.19, 140.79, 150.61, 139.87, 153.82, 132.08, 161.61, 129.79, 160.69, 121.54, 162.98, 118.33, 173.98, 118.79, 169.86, 102.75, 168.48, 95.87, 169.86, 89.91, 179.02, 81.21, 175.36, 68.83, 168.94, 68.37, 166.65, 67.46]], "area": 9712.96565, "iscrowd": 0, "image_id": 294451, "bbox": [62.15, 46.83, 116.87, 111.83], "category_id": 55, "id": 1912574}, {"segmentation": [[301.68, 80.81, 283.65, 97.51, 250.24, 116.88, 240.89, 126.24, 248.24, 158.98, 254.25, 179.69, 262.27, 200.4, 252.91, 219.11, 252.24, 221.11, 270.95, 249.84, 282.98, 265.21, 285.65, 265.21, 301.02, 225.79, 327.74, 203.74, 337.09, 191.71, 351.79, 181.02, 366.49, 172.34, 347.78, 158.98, 329.75, 139.6, 318.39, 117.55, 315.72, 98.85, 305.03, 79.47]], "area": 11300.66855, "iscrowd": 0, "image_id": 50924, "bbox": [240.89, 79.47, 125.6, 185.74], "category_id": 56, "id": 1915248}, {"segmentation": [[603.98, 379.28, 579.69, 402.47, 524.48, 419.03, 88.33, 407.99, 29.81, 404.68, 38.65, 324.07, 305.85, 320.76, 442.77, 320.76, 516.75, 304.2, 554.29, 276.59, 585.21, 263.34]], "area": 54617.14455000001, "iscrowd": 0, "image_id": 242368, "bbox": [29.81, 263.34, 574.17, 155.69], "category_id": 67, "id": 1963455}, {"segmentation": [[336.77, 157.65, 362.19, 156.93, 382.96, 162.66, 414.11, 178.06, 448.84, 192.73, 443.47, 227.46, 442.39, 250.12, 434.52, 250.84, 423.42, 284.5, 419.12, 283.06, 427.71, 244.04, 407.66, 232.58, 403.72, 226.14, 370.79, 210.02, 356.11, 209.31, 348.59, 202.51, 343.93, 212.53, 326.75, 227.21, 323.88, 223.99, 342.86, 207.52, 349.66, 187.83, 350.74, 183.78, 335.7, 175.55, 330.69, 167.67, 332.12, 159.44]], "area": 6054.437150000001, "iscrowd": 0, "image_id": 2179, "bbox": [323.88, 156.93, 124.96, 127.57], "category_id": 67, "id": 1964457}, {"segmentation": [[336.48, 216.31, 339.49, 216.8, 340.7, 216.43, 341.66, 215.65, 342.14, 213.96, 342.14, 211.85, 340.52, 211.67, 339.79, 212.64, 338.41, 213.96, 337.44, 213.96, 336.24, 214.45, 336.06, 215.89, 336.36, 216.49]], "area": 19.668350000000004, "iscrowd": 0, "image_id": 550576, "bbox": [336.06, 211.67, 6.08, 5.13], "category_id": 1, "id": 2000033}, {"segmentation": [[415.85, 436.3, 418.52, 434.97, 419.97, 432.43, 418.76, 425.41, 415.98, 423.11, 415.73, 418.03, 415.01, 415.12, 413.19, 413.79, 415.25, 435.82], [413.55, 434.61, 411.38, 414.16, 410.29, 414.16, 409.32, 415.85, 408.84, 417.91, 408.11, 420.81, 409.2, 424.68, 409.56, 427.35, 409.56, 429.52, 409.68, 431.34, 410.65, 432.79, 411.13, 433.4, 412.1, 434.61, 412.59, 434.97]], "area": 134.01230000000024, "iscrowd": 0, "image_id": 71027, "bbox": [408.11, 413.79, 11.86, 22.51], "category_id": 1, "id": 2005598}, {"segmentation": [[595.13, 319.26, 594.3, 324.45, 592.02, 328.19, 589.11, 325.91, 588.07, 318.84, 589.11, 308.45]], "area": 82.53684999999933, "iscrowd": 0, "image_id": 210408, "bbox": [588.07, 308.45, 7.06, 19.74], "category_id": 1, "id": 2009802}, {"segmentation": [[457.34, 127.45, 449.04, 143.01, 450.07, 197.48, 439.7, 215.64, 439.7, 225.5, 436.59, 233.28, 428.8, 236.39, 430.88, 227.05, 437.62, 200.59, 449.04, 117.59, 453.71, 98.39, 459.41, 102.02, 460.97, 109.29, 454.74, 119.14, 455.78, 124.85], [451.63, 98.91, 444.37, 133.67, 442.81, 116.03, 439.7, 108.25, 442.81, 99.95, 449.55, 95.28]], "area": 1243.6593499999988, "iscrowd": 0, "image_id": 158722, "bbox": [428.8, 95.28, 32.17, 141.11], "category_id": 1, "id": 2014603}, {"segmentation": [[463.69, 513.38, 470.4, 513.38, 470.78, 480.94, 469.66, 471.24, 473.02, 457.07, 472.64, 447.75, 473.02, 444.39, 467.05, 445.51, 464.44, 444.02, 465.93, 438.05, 465.93, 432.46, 472.64, 429.84, 477.12, 432.46, 481.0, 432.46, 478.98, 441.03, 481.0, 443.27, 479.73, 486.9, 478.24, 493.62, 477.86, 501.82, 477.49, 521.21, 471.52, 521.96, 461.45, 518.6, 461.45, 511.89]], "area": 893.3023500000027, "iscrowd": 0, "image_id": 71027, "bbox": [461.45, 429.84, 19.55, 92.12], "category_id": 1, "id": 2018567}, {"segmentation": [[196.14, 69.36, 195.33, 68.89, 195.26, 68.75, 196.07, 67.6, 195.87, 66.92, 195.46, 66.38, 195.53, 64.55, 195.87, 62.71, 196.82, 60.48, 197.29, 59.87, 198.24, 59.66, 199.13, 60.27, 200.28, 61.63, 200.55, 62.38, 200.75, 63.66, 199.94, 64.82, 199.06, 65.9, 199.4, 67.73, 199.06, 69.09, 198.18, 68.89, 198.04, 67.4, 197.77, 66.38, 197.43, 66.99, 197.29, 68.41, 197.23, 68.82]], "area": 33.7489, "iscrowd": 0, "image_id": 21989, "bbox": [195.26, 59.66, 5.49, 9.7], "category_id": 1, "id": 2023014}, {"segmentation": [[206.22, 63.88, 207.64, 62.36, 208.4, 62.08, 208.4, 60.75, 208.77, 60.19, 210.29, 60.28, 210.29, 61.51, 210.76, 62.74, 211.42, 63.59, 211.33, 64.63, 206.79, 64.35], [207.73, 66.71, 207.54, 70.59, 208.68, 70.59, 208.87, 67.0], [209.63, 66.52, 210.0, 70.4, 210.67, 70.4, 211.14, 66.43]], "area": 21.925149999999974, "iscrowd": 0, "image_id": 21989, "bbox": [206.22, 60.19, 5.2, 10.4], "category_id": 1, "id": 2029168}, {"segmentation": [[387.96, 92.81, 389.25, 90.46, 389.03, 87.79, 385.4, 86.29, 374.92, 86.4, 372.88, 88.64, 369.36, 88.96, 367.22, 92.71]], "area": 116.08954999999969, "iscrowd": 0, "image_id": 88360, "bbox": [367.22, 86.29, 22.03, 6.52], "category_id": 3, "id": 2038244}, {"segmentation": [[364.84, 71.13, 364.59, 87.58, 372.94, 87.33, 373.43, 70.4, 364.84, 71.38]], "area": 140.10925000000043, "iscrowd": 0, "image_id": 278203, "bbox": [364.59, 70.4, 8.84, 17.18], "category_id": 10, "id": 2058144}, {"segmentation": [[230.97, 464.03, 235.74, 452.89, 235.74, 445.14, 237.33, 442.55, 234.15, 432.81, 236.93, 432.41, 240.31, 437.19, 241.7, 435.99, 244.29, 431.42, 248.26, 438.18, 249.46, 440.17, 257.41, 443.35, 266.16, 446.93, 266.16, 449.11, 266.16, 451.1, 264.57, 455.68, 262.78, 462.44, 262.98, 463.83, 256.42, 458.46, 249.26, 457.27, 241.51, 459.25, 234.55, 461.64], [270.73, 468.4, 283.06, 461.04, 285.84, 461.64, 288.23, 469.39, 292.2, 482.71, 292.0, 491.46, 290.61, 494.05, 283.65, 495.24, 281.86, 497.43, 280.87, 504.58, 281.27, 512.93, 277.49, 513.93, 268.54, 512.93, 274.51, 490.67, 274.91, 477.54, 271.92, 472.38]], "area": 1320.708899999998, "iscrowd": 0, "image_id": 71027, "bbox": [230.97, 431.42, 61.23, 82.51], "category_id": 19, "id": 2067266}, {"segmentation": [[200.17, 57.24, 202.56, 72.04, 228.34, 77.29, 250.3, 75.86, 270.35, 75.86, 280.85, 75.86, 298.51, 75.86, 307.58, 72.52, 298.51, 64.41, 277.51, 58.68, 251.25, 49.61, 225.47, 42.45, 208.29, 37.67, 201.13, 37.19, 198.26, 49.61, 197.79, 56.29, 199.7, 60.11]], "area": 2602.1956999999998, "iscrowd": 0, "image_id": 158722, "bbox": [197.79, 37.19, 109.79, 40.1], "category_id": 28, "id": 2075214}, {"segmentation": [[343.33, 414.22, 352.5, 400.23, 350.32, 391.49, 345.95, 392.37, 337.64, 402.86, 335.46, 377.07, 331.96, 375.76, 326.28, 388.87, 326.72, 402.42, 317.98, 385.38, 310.11, 384.5, 309.68, 389.75, 302.25, 390.18, 300.94, 397.61, 305.74, 403.73, 295.69, 405.04, 300.06, 410.72, 294.38, 412.47, 293.94, 414.65, 308.36, 419.9, 299.62, 429.51, 307.05, 432.57, 310.99, 433.88, 317.98, 428.64, 316.23, 436.51, 316.23, 437.38, 318.85, 441.31, 322.79, 441.31, 329.78, 431.26, 331.96, 441.31, 337.64, 443.5, 343.76, 441.31, 338.08, 427.33, 340.27, 424.27, 343.33, 419.02, 343.33, 415.09]], "area": 2097.9829999999993, "iscrowd": 0, "image_id": 158722, "bbox": [293.94, 375.76, 58.56, 67.74], "category_id": 52, "id": 2110564}, {"segmentation": [[0.0, 167.05, 0.0, 126.22, 0.0, 99.43, 17.39, 99.43, 20.2, 112.19, 23.52, 125.71, 35.76, 130.05, 41.89, 137.45, 44.44, 155.31, 48.52, 159.9, 49.54, 163.73, 49.8, 168.58, 51.58, 176.75, 41.12, 178.53, 24.03, 214.51, 30.41, 221.65, 50.05, 253.55, 47.5, 255.08, 44.7, 255.08, 34.49, 238.75, 34.49, 233.65, 31.94, 232.88, 27.85, 229.82, 21.22, 220.89, 16.63, 228.29, 11.52, 230.58, 17.39, 218.85, 0.0, 192.05, 0.0, 176.23, 0.0, 132.86], [54.9, 159.9, 64.34, 160.67, 66.38, 170.62, 58.73, 172.92, 57.71, 172.92]], "area": 4303.3521, "iscrowd": 0, "image_id": 158722, "bbox": [0.0, 99.43, 66.38, 155.65], "category_id": 67, "id": 2131871}, {"segmentation": [[637.7, 92.04, 605.75, 97.78, 561.9, 88.76, 531.99, 15.42, 523.8, 0.0, 556.99, 0.0, 639.34, 0.67]], "area": 8791.855750000004, "iscrowd": 0, "image_id": 119729, "bbox": [523.8, 0.0, 115.54, 97.78], "category_id": 84, "id": 2142271}, {"segmentation": [[253.83, 311.74, 234.63, 307.21, 230.63, 294.94, 233.56, 290.14, 237.56, 288.54, 236.5, 281.87, 239.16, 279.2, 242.9, 277.34, 246.1, 280.01, 245.3, 285.61, 249.83, 293.87]], "area": 457.82800000000043, "iscrowd": 0, "image_id": 210408, "bbox": [230.63, 277.34, 23.2, 34.4], "category_id": 1, "id": 2155558}, {"segmentation": [[557.04, 422.85, 557.04, 385.64, 549.14, 349.56, 551.4, 304.45, 540.12, 266.11, 526.59, 248.07, 523.21, 217.63, 497.27, 197.33, 455.55, 219.88, 457.81, 240.18, 452.17, 272.88, 465.7, 267.24, 446.53, 292.05, 434.13, 315.73, 403.68, 331.52, 386.77, 323.62, 368.73, 334.9, 369.85, 361.96, 403.68, 354.07, 443.15, 350.68, 470.21, 325.88, 479.23, 339.41, 456.68, 348.43, 456.68, 348.43, 447.66, 364.22, 458.93, 381.13, 463.45, 380.0, 481.49, 401.43, 484.87, 426.23]], "area": 21132.51415, "iscrowd": 0, "image_id": 129982, "bbox": [368.73, 197.33, 188.31, 228.9], "category_id": 1, "id": 2157260}, {"segmentation": [[430.39, 359.81, 432.87, 343.69, 436.59, 321.36, 441.55, 299.03, 444.03, 290.35, 431.63, 274.23, 429.15, 259.34, 435.35, 258.1, 429.15, 250.66, 417.98, 243.22, 410.54, 222.14, 410.54, 213.45, 413.02, 202.29, 409.3, 176.24, 413.02, 157.64, 417.98, 146.48, 420.47, 134.07, 427.91, 112.99, 437.83, 109.27, 442.79, 114.23, 447.75, 137.79, 458.91, 161.36, 475.04, 171.28, 492.4, 183.69, 508.53, 202.29, 506.05, 214.69, 501.09, 219.65, 483.72, 214.69, 481.24, 201.05, 483.72, 193.61, 470.08, 189.89, 462.64, 191.13, 463.88, 210.97, 468.84, 227.1, 482.48, 241.98, 496.12, 259.34, 501.09, 274.23, 502.33, 300.27, 502.33, 321.36, 504.81, 328.8, 514.73, 336.24, 514.73, 338.72, 506.05, 338.72, 496.12, 339.96, 478.76, 338.72, 471.32, 323.84, 471.32, 306.48, 476.28, 295.31, 476.28, 275.47, 470.08, 275.47, 466.36, 287.87, 461.4, 317.64, 455.19, 343.69, 458.91, 356.09, 470.08, 361.05, 467.6, 368.49, 457.67, 370.97, 446.51, 368.49, 441.55, 367.25]], "area": 13408.585850000007, "iscrowd": 0, "image_id": 277642, "bbox": [409.3, 109.27, 105.43, 261.7], "category_id": 1, "id": 2162983}, {"segmentation": [[519.66, 377.31, 532.2, 379.87, 539.17, 380.56, 542.42, 375.69, 542.65, 365.93, 545.21, 359.66, 548.23, 354.09, 549.39, 348.28, 549.39, 347.35, 560.07, 348.28, 564.48, 345.96, 567.5, 353.62, 569.36, 358.5, 569.59, 365.47, 568.2, 371.51, 569.59, 377.31, 569.36, 380.8, 572.84, 383.35, 577.95, 383.58, 583.3, 380.1, 581.9, 370.81, 579.35, 365.47, 578.65, 361.29, 578.42, 352.23, 576.33, 344.56, 574.47, 339.69, 573.08, 333.65, 570.75, 326.45, 570.75, 321.8, 570.75, 318.78, 572.38, 314.6, 571.45, 310.66, 569.36, 306.48, 569.36, 303.22, 570.06, 297.65, 568.2, 287.9, 563.32, 269.78, 560.07, 265.37, 555.89, 262.12, 554.5, 259.79, 554.5, 256.08, 557.28, 251.2, 557.98, 247.02, 555.89, 243.3, 551.01, 241.21, 544.51, 240.05, 536.38, 246.32, 532.9, 248.88, 530.81, 251.2, 534.75, 252.59, 534.06, 255.84, 535.45, 257.93, 535.68, 262.12, 537.77, 263.51, 541.95, 266.53, 541.95, 271.17, 540.33, 274.66, 538.24, 279.07, 538.24, 292.54, 537.77, 296.72, 536.15, 297.42, 532.66, 296.02, 531.5, 293.47, 529.88, 291.84, 524.54, 293.24, 522.91, 296.02, 521.05, 297.42, 517.57, 299.74, 516.17, 305.78, 518.73, 308.8, 523.61, 310.66, 528.02, 311.35, 531.27, 313.44, 534.29, 314.84, 538.24, 314.84, 537.77, 322.73, 537.77, 324.82, 534.99, 336.9, 534.75, 341.31, 535.68, 346.65, 536.38, 351.76, 535.68, 355.25, 533.36, 363.38, 532.2, 367.09, 530.57, 369.65, 528.72, 371.74, 523.84, 373.83, 520.12, 373.83, 518.73, 375.22]], "area": 4294.878600000002, "iscrowd": 0, "image_id": 288403, "bbox": [516.17, 240.05, 67.13, 143.53], "category_id": 1, "id": 2164398}, {"segmentation": [[146.72, 404.57, 163.37, 418.95, 164.13, 394.73, 166.4, 394.73, 167.91, 344.77, 167.91, 314.5, 167.91, 288.76, 167.91, 282.71, 172.45, 281.95, 171.7, 303.14, 169.43, 418.19, 169.43, 424.25, 177.75, 425.76, 177.75, 411.38, 177.75, 400.03, 176.24, 390.94, 180.02, 373.54, 178.51, 366.72, 179.27, 359.16, 186.08, 350.07, 188.35, 336.45, 189.86, 326.61, 191.38, 331.15, 191.38, 369.75, 186.08, 385.65, 185.32, 399.27, 205.0, 415.92, 213.33, 419.71, 217.87, 414.41, 211.81, 397.0, 216.35, 369.75, 219.38, 351.59, 223.17, 340.99, 221.65, 334.93, 218.62, 316.77, 224.68, 327.37, 226.19, 337.96, 226.19, 322.82, 226.19, 302.39, 229.98, 286.49, 230.73, 268.33, 229.22, 264.54, 232.25, 249.4, 224.68, 221.4, 220.14, 213.83, 212.57, 206.26, 204.24, 203.23, 201.97, 196.42, 206.51, 188.85, 208.78, 172.96, 203.49, 162.36, 187.59, 157.06, 176.99, 163.12, 171.7, 170.69, 171.7, 190.37, 165.64, 201.72, 164.13, 203.99, 155.04, 206.26, 142.18, 222.91, 136.12, 252.43, 142.18, 267.57, 155.8, 281.95, 159.59, 280.44, 161.1, 290.28, 155.04, 309.2, 152.77, 318.28, 148.99, 318.28, 145.2, 331.91, 152.02, 336.45, 148.23, 346.29, 144.45, 353.86, 153.53, 351.59, 153.53, 359.16, 148.99, 382.62, 145.96, 396.24, 146.72, 406.84]], "area": 15952.010099999998, "iscrowd": 0, "image_id": 21989, "bbox": [136.12, 157.06, 96.13, 268.7], "category_id": 1, "id": 2167042}, {"segmentation": [[120.84, 550.58, 167.38, 504.51, 191.13, 489.31, 180.68, 466.99, 136.99, 494.54, 90.45, 528.73, 90.45, 548.2, 106.59, 549.63, 116.57, 552.47], [201.1, 450.84, 263.31, 401.93, 288.48, 378.18, 303.21, 380.08, 308.91, 386.25, 301.78, 401.45, 250.49, 436.12, 208.68, 473.62]], "area": 5952.483049999999, "iscrowd": 0, "image_id": 278203, "bbox": [90.45, 378.18, 218.46, 174.29], "category_id": 35, "id": 2178140}, {"segmentation": [[84.21, 364.35, 97.51, 372.33, 104.96, 376.05, 131.56, 380.84, 186.35, 381.37, 245.41, 384.03, 248.07, 393.08, 137.94, 387.76, 95.38, 382.44, 84.74, 369.67], [313.5, 389.35, 377.87, 397.33, 376.81, 405.31, 310.84, 397.33], [386.92, 399.99, 415.65, 404.78, 438.52, 406.91, 447.04, 405.84, 447.57, 412.76, 386.92, 405.84]], "area": 2150.2195499999984, "iscrowd": 0, "image_id": 129982, "bbox": [84.21, 364.35, 363.36, 48.41], "category_id": 35, "id": 2202457}, {"segmentation": [[344.85, 75.71, 352.91, 85.39, 421.56, 91.61, 421.1, 89.31, 355.45, 82.86], [446.44, 94.84, 482.38, 103.36, 481.46, 100.13, 447.36, 91.84]], "area": 300.33244999999977, "iscrowd": 0, "image_id": 129982, "bbox": [344.85, 75.71, 137.53, 27.65], "category_id": 35, "id": 2202972}, {"segmentation": [[0.0, 64.76, 14.92, 73.05, 28.19, 110.36, 88.7, 79.68, 101.97, 73.05, 83.73, 0.93, 210.57, 0.93, 213.06, 24.14, 266.11, 30.77, 295.96, 24.97, 315.03, 20.82, 360.62, 30.77, 354.82, 18.34, 354.82, 7.56, 358.96, 2.58, 382.18, 3.41, 380.52, 25.8, 380.52, 36.57, 400.0, 46.52, 400.0, 313.46, 0.83, 315.12]], "area": 112496.12610000001, "iscrowd": 0, "image_id": 80756, "bbox": [0.0, 0.93, 400.0, 314.19], "category_id": 67, "id": 2204288}, {"segmentation": [[283.49, 108.15, 282.66, 106.48, 282.66, 104.31, 283.49, 100.12, 286.67, 97.95, 288.51, 96.78, 291.02, 95.61, 292.02, 96.95, 292.19, 99.45, 291.02, 100.96, 290.52, 104.14, 290.52, 106.98, 291.52, 107.98, 292.36, 108.32, 290.52, 109.66, 288.68, 109.82, 288.34, 111.66]], "area": 99.06954999999961, "iscrowd": 0, "image_id": 158722, "bbox": [282.66, 95.61, 9.7, 16.05], "category_id": 1, "id": 2205116}, {"segmentation": [[37.51, 144.88, 13.01, 154.26, 11.97, 171.99, 40.12, 208.48, 49.5, 205.35, 58.88, 202.22, 67.22, 194.4, 74.52, 190.75, 80.26, 188.15, 83.9, 185.54, 79.73, 180.33, 71.91, 181.89, 63.05, 179.28, 57.32, 168.86, 47.94, 158.95, 41.16, 148.01, 38.55, 144.88]], "area": 2313.1846499999997, "iscrowd": 0, "image_id": 80756, "bbox": [11.97, 144.88, 71.93, 63.6], "category_id": 54, "id": 2218403}, {"segmentation": [[0.0, 1.32, 640.0, 4.87, 640.0, 473.04, 3.55, 474.23]], "area": 300308.29699999996, "iscrowd": 0, "image_id": 69906, "bbox": [0.0, 1.32, 640.0, 472.91], "category_id": 67, "id": 2225906}, {"segmentation": [[553.44, 317.37, 637.16, 323.17, 640.0, 317.37, 546.81, 313.22], [578.31, 309.08, 639.65, 314.88, 639.65, 309.08, 577.48, 304.1], [434.9, 312.39, 385.17, 309.08, 364.44, 291.67, 390.97, 304.1, 412.52, 304.1, 444.02, 305.76], [376.88, 292.5, 450.65, 294.16, 445.68, 303.27, 374.39, 296.64], [343.72, 275.92, 356.98, 293.33, 362.79, 293.33, 371.08, 291.67, 349.52, 276.75]], "area": 1866.9701499999933, "iscrowd": 0, "image_id": 129982, "bbox": [343.72, 275.92, 296.28, 47.25], "category_id": 35, "id": 2230308}, {"segmentation": [[118.51, 362.57, 131.15, 377.31, 146.59, 382.22, 183.09, 385.03, 180.28, 380.12, 138.87, 370.29, 126.24, 365.38, 119.92, 361.87], [352.25, 390.64, 378.22, 394.85, 378.22, 385.73, 357.16, 385.73, 354.35, 386.43], [386.64, 394.85, 418.93, 398.36, 453.32, 398.36, 470.87, 400.47, 471.57, 394.85, 383.13, 387.84]], "area": 1207.500450000001, "iscrowd": 0, "image_id": 129982, "bbox": [118.51, 361.87, 353.06, 38.6], "category_id": 35, "id": 2230333}, {"segmentation": [[483.13, 91.38, 495.96, 100.54, 510.63, 106.66, 516.74, 104.82, 491.07, 92.91, 484.66, 88.94, 481.6, 89.85]], "area": 141.44865000000036, "iscrowd": 0, "image_id": 129982, "bbox": [481.6, 88.94, 35.14, 17.72], "category_id": 35, "id": 2230340}, {"segmentation": [[631.73, 242.65, 639.6, 243.21, 637.91, 240.4, 630.88, 240.96], [632.29, 236.74, 639.32, 238.15, 640.0, 234.49, 632.29, 233.37, 632.29, 235.9]], "area": 43.09815000000016, "iscrowd": 0, "image_id": 129982, "bbox": [630.88, 233.37, 9.12, 9.84], "category_id": 35, "id": 2230353}, {"segmentation": [[434.44, 572.96, 446.79, 577.08, 449.87, 593.54, 479.71, 589.42, 480.0, 561.64, 461.19, 553.41, 439.58, 560.62, 431.35, 571.93]], "area": 1305.1910999999996, "iscrowd": 0, "image_id": 25252, "bbox": [431.35, 553.41, 48.65, 40.13], "category_id": 64, "id": 24606}, {"segmentation": [[284.43, 556.99, 284.02, 553.28, 282.78, 551.21, 279.89, 549.15, 277.83, 547.91, 276.17, 547.49, 272.87, 541.3, 275.35, 540.06, 279.48, 536.76, 281.96, 535.52, 285.67, 535.1, 291.46, 535.93, 294.35, 534.28, 298.06, 533.45, 301.78, 533.87, 307.56, 536.34, 310.87, 537.58, 312.93, 538.41, 315.0, 540.47, 314.17, 542.95, 315.41, 545.43, 314.17, 546.67, 312.52, 547.08, 312.93, 549.15, 313.76, 551.21, 313.76, 554.1, 312.11, 554.52, 310.45, 553.69, 307.56, 552.86, 306.74, 554.1, 305.09, 556.58, 304.26, 557.82]], "area": 742.0902000000007, "iscrowd": 0, "image_id": 25252, "bbox": [272.87, 533.45, 42.54, 24.37], "category_id": 64, "id": 26873}, {"segmentation": [[152.72, 547.73, 160.9, 545.82, 159.26, 551.27, 160.08, 557.27, 175.07, 557.54, 174.52, 554.81, 176.7, 552.36, 180.51, 548.82, 183.24, 555.09, 184.06, 550.18, 183.51, 545.82, 176.43, 542.01, 172.89, 542.01, 164.44, 539.28, 158.99, 542.28, 158.99, 543.64, 154.36, 543.1, 151.63, 547.46, 152.45, 549.36]], "area": 348.32385000000005, "iscrowd": 0, "image_id": 25252, "bbox": [151.63, 539.28, 32.43, 18.26], "category_id": 64, "id": 27627}, {"segmentation": [[470.57, 58.77, 470.57, 114.82, 483.21, 113.18, 487.61, 109.33, 491.46, 109.88, 493.66, 107.68, 499.7, 108.78, 503.0, 108.23, 508.49, 109.88, 514.54, 109.88, 548.06, 109.33, 548.61, 52.73, 470.57, 57.67]], "area": 4277.756999999999, "iscrowd": 0, "image_id": 443772, "bbox": [470.57, 52.73, 78.04, 62.09], "category_id": 72, "id": 30739}, {"segmentation": [[183.56, 52.36, 224.03, 51.57, 223.83, 64.8, 220.67, 65.59, 210.6, 66.57, 205.08, 68.15, 200.73, 72.5, 193.63, 76.64, 188.1, 81.33, 184.74, 85.38, 183.36, 53.35]], "area": 789.2557499999996, "iscrowd": 0, "image_id": 443688, "bbox": [183.36, 51.57, 40.67, 33.81], "category_id": 72, "id": 34644}, {"segmentation": [[248.43, 188.41, 241.09, 146.25, 148.82, 151.14, 81.6, 138.3, 76.71, 204.3, 87.1, 184.75, 155.54, 195.75, 224.59, 196.97, 247.81, 190.86]], "area": 7706.737500000001, "iscrowd": 0, "image_id": 171181, "bbox": [76.71, 138.3, 171.72, 66.0], "category_id": 62, "id": 101210}, {"segmentation": [[287.44, 279.79, 283.38, 188.74, 227.7, 195.7, 161.01, 196.28, 92.58, 186.42, 86.79, 189.32, 79.25, 222.95, 117.52, 219.48, 133.18, 223.53, 145.94, 208.46, 159.27, 254.27, 180.73, 265.87, 181.31, 280.37, 206.83, 277.47, 197.55, 256.01, 197.55, 225.27, 234.66, 228.17, 237.56, 236.87, 254.96, 239.77, 256.12, 259.49, 252.64, 282.69, 272.94, 276.89, 286.86, 279.79]], "area": 9993.797500000004, "iscrowd": 0, "image_id": 171181, "bbox": [79.25, 186.42, 208.19, 96.27], "category_id": 62, "id": 106815}, {"segmentation": [[379.25, 280.18, 382.92, 218.65, 379.25, 217.73, 377.41, 186.51, 387.51, 186.51, 391.19, 140.6, 427.0, 151.62, 473.83, 162.64, 506.89, 158.05, 560.15, 145.19, 555.56, 189.27, 426.08, 187.43, 415.98, 273.75, 385.68, 282.93]], "area": 9532.991100000001, "iscrowd": 0, "image_id": 171181, "bbox": [377.41, 140.6, 182.74, 142.33], "category_id": 62, "id": 108288}, {"segmentation": [[433.4, 190.27, 535.81, 189.36, 628.16, 188.44, 632.73, 240.56, 617.18, 238.73, 613.53, 227.76, 579.7, 230.5, 573.3, 263.42, 561.41, 255.19, 550.44, 217.7, 541.29, 223.19, 536.72, 231.42, 525.75, 231.42, 523.01, 241.48, 517.52, 277.14, 514.78, 282.62, 499.23, 277.14, 502.89, 272.56, 517.52, 238.73, 517.52, 226.85, 515.69, 224.1, 511.12, 218.62, 495.58, 220.45, 485.52, 219.53, 473.63, 224.1, 463.57, 223.19, 457.17, 225.93, 456.26, 235.08, 454.43, 247.88, 458.09, 255.19, 462.66, 263.42, 465.4, 268.91, 465.4, 275.31, 465.4, 278.96, 465.4, 281.71, 454.43, 282.62, 440.72, 277.14, 424.26, 273.48, 415.11, 272.56, 424.26, 191.19, 428.83, 187.53]], "area": 11063.636299999995, "iscrowd": 0, "image_id": 171181, "bbox": [415.11, 187.53, 217.62, 95.09], "category_id": 62, "id": 109576}, {"segmentation": [[0.92, 353.33, 54.06, 386.32, 96.21, 400.06, 143.86, 400.06, 211.67, 374.4, 256.57, 347.83, 273.06, 347.83, 278.56, 348.75, 280.39, 371.65, 284.06, 400.98, 290.47, 400.06, 292.3, 422.05, 211.67, 421.14, 0.0, 422.05]], "area": 12067.2783, "iscrowd": 0, "image_id": 171181, "bbox": [0.0, 347.83, 292.3, 74.22], "category_id": 62, "id": 110311}, {"segmentation": [[223.1, 95.22, 275.22, 89.74, 292.59, 85.16, 298.99, 134.54, 224.01, 133.63, 226.76, 123.57, 228.59, 119.0, 232.24, 108.94, 232.24, 102.54, 232.24, 98.88]], "area": 2907.0341499999995, "iscrowd": 0, "image_id": 171181, "bbox": [223.1, 85.16, 75.89, 49.38], "category_id": 62, "id": 110618}, {"segmentation": [[438.0, 400.98, 448.08, 422.05, 472.82, 422.05, 640.0, 420.22, 638.67, 388.15, 611.18, 389.98, 550.7, 371.65, 515.88, 354.25, 492.97, 350.58, 486.56, 353.33, 478.31, 402.81, 473.73, 396.4]], "area": 8568.043100000006, "iscrowd": 0, "image_id": 171181, "bbox": [438.0, 350.58, 202.0, 71.47], "category_id": 62, "id": 110929}, {"segmentation": [[365.93, 202.16, 393.04, 219.11, 405.46, 225.88, 426.92, 240.56, 443.86, 256.38, 460.8, 272.19, 477.74, 289.13, 484.52, 298.16, 494.68, 308.33, 501.46, 317.36, 508.24, 329.79, 517.27, 369.32, 516.14, 381.74, 478.87, 380.61, 456.28, 387.39, 425.79, 391.91, 413.36, 371.58, 400.94, 350.12, 385.13, 335.44, 380.61, 318.49, 376.09, 293.65, 365.93, 273.32, 360.28, 264.28, 348.99, 256.38, 341.08, 251.86, 306.07, 264.28, 290.26, 312.85, 241.69, 355.76, 241.69, 385.13, 240.56, 398.68, 229.27, 413.36, 208.94, 444.99, 196.52, 465.32, 173.93, 480.0, 160.38, 476.61, 160.38, 467.58, 131.01, 390.78, 133.27, 371.58, 133.27, 352.38, 140.05, 336.56, 146.82, 311.72, 153.6, 288.0, 155.86, 285.74, 178.45, 293.65, 180.71, 293.65, 184.09, 284.61, 187.48, 272.19, 180.71, 247.34, 176.19, 243.95, 173.93, 237.18, 170.54, 230.4, 181.84, 234.92, 187.48, 224.75, 201.04, 211.2, 212.33, 206.68, 216.85, 203.29, 217.98, 203.29, 233.79, 205.55, 263.15, 212.33, 311.72, 217.98, 325.27, 212.33, 350.12, 208.94]], "area": 46973.3046, "iscrowd": 0, "image_id": 443772, "bbox": [131.01, 202.16, 386.26, 277.84], "category_id": 67, "id": 120999}, {"segmentation": [[5.02, 374.76, 269.26, 317.49, 424.99, 286.34, 438.05, 297.39, 448.1, 288.35, 473.22, 285.34, 479.24, 295.38, 508.38, 289.36, 508.38, 285.34, 603.83, 288.35, 629.95, 291.36, 640.0, 296.39, 640.0, 419.97, 640.0, 427.0, 0.0, 427.0]], "area": 70658.20204999999, "iscrowd": 0, "image_id": 443688, "bbox": [0.0, 285.34, 640.0, 141.66], "category_id": 67, "id": 121283}, {"segmentation": [[77.36, 157.74, 73.34, 198.93, 74.35, 281.32, 15.07, 276.29, 39.18, 156.73, 69.32, 128.6, 151.71, 129.61, 189.89, 127.6, 334.57, 136.64, 427.0, 126.59, 542.54, 130.61, 548.57, 149.7, 472.21, 160.75, 401.88, 147.69, 387.82, 185.87, 371.74, 187.88, 378.77, 219.03, 384.8, 224.05, 380.78, 283.33, 288.35, 284.33, 286.34, 179.84, 247.16, 186.88, 243.14, 142.67, 180.85, 153.72, 80.38, 140.66]], "area": 30270.96434999999, "iscrowd": 0, "image_id": 171181, "bbox": [15.07, 126.59, 533.5, 157.74], "category_id": 67, "id": 123397}, {"segmentation": [[301.39, 118.04, 298.62, 90.3, 240.37, 86.61, 217.26, 86.61, 188.6, 87.53, 193.22, 80.13, 222.81, 77.36, 269.03, 70.89, 295.85, 67.19, 338.37, 62.57, 440.99, 75.51, 452.09, 97.7, 400.32, 104.17, 400.32, 122.66, 367.03, 133.76, 365.18, 85.68, 349.47, 86.61, 343.92, 138.38, 307.86, 137.45, 297.69, 137.45]], "area": 8710.67855, "iscrowd": 0, "image_id": 171181, "bbox": [188.6, 62.57, 263.49, 75.81], "category_id": 67, "id": 123950}, {"segmentation": [[145.32, 84.3, 149.84, 86.71, 150.44, 88.82, 150.14, 91.23, 149.54, 93.03, 149.23, 95.74, 152.55, 97.55, 154.66, 98.16, 156.47, 99.06, 158.57, 101.17, 160.68, 103.28, 161.59, 104.78, 162.49, 107.8, 163.09, 111.11, 159.78, 112.32, 158.27, 106.59, 156.77, 106.59, 155.86, 108.7, 155.26, 111.41, 151.34, 111.71, 145.92, 110.51, 142.0, 109.6, 139.29, 105.99, 134.17, 104.18, 128.45, 101.77, 126.03, 101.77, 127.54, 105.99, 126.64, 108.1, 124.53, 109.3, 121.21, 106.89, 120.91, 102.98, 121.21, 100.87, 123.32, 99.06, 126.64, 98.16, 129.95, 97.85, 135.68, 97.25, 138.39, 94.84, 138.69, 92.13, 138.99, 89.72, 139.89, 88.21, 141.4, 87.01, 143.21, 85.8]], "area": 523.1164500000003, "iscrowd": 0, "image_id": 525162, "bbox": [120.91, 84.3, 42.18, 28.02], "category_id": 1, "id": 198066}, {"segmentation": [[385.47, 204.16, 390.04, 167.6, 412.89, 147.03, 425.08, 131.79, 429.65, 94.46, 422.8, 81.51, 400.71, 53.33, 403.75, 44.95, 409.85, 46.47, 417.47, 63.23, 434.99, 75.42, 444.13, 87.61, 438.03, 72.37, 445.65, 60.18, 454.79, 60.94, 459.36, 67.04, 457.84, 76.18, 454.79, 83.8, 457.08, 85.32, 474.6, 86.84, 485.27, 88.37, 492.12, 88.37, 505.83, 74.66, 514.21, 75.42, 519.55, 79.99, 511.93, 89.13, 505.83, 84.56, 496.69, 100.56, 474.6, 104.37, 467.74, 120.36, 463.93, 152.36, 457.08, 194.26, 447.94, 238.44, 453.27, 252.92, 441.08, 253.68, 434.22, 248.35, 436.51, 233.87, 439.56, 185.88, 433.46, 172.17, 412.89, 167.6, 404.51, 184.36, 406.04, 204.16, 399.94, 224.73, 388.52, 217.11, 386.23, 212.54]], "area": 8004.16745, "iscrowd": 0, "image_id": 432993, "bbox": [385.47, 44.95, 134.08, 208.73], "category_id": 1, "id": 201967}, {"segmentation": [[259.1, 144.45, 256.06, 130.25, 254.29, 118.59, 250.23, 106.93, 251.5, 98.81, 254.29, 93.49, 261.13, 86.64, 265.19, 85.12, 269.25, 82.58, 271.02, 80.55, 275.08, 79.79, 283.45, 79.03, 291.05, 79.54, 303.22, 84.36, 308.3, 83.85, 309.06, 87.65, 309.31, 90.44, 311.85, 96.28, 312.35, 105.15, 308.55, 111.24, 305.25, 116.81, 302.97, 122.9, 300.44, 127.72, 297.65, 131.27, 300.69, 137.35, 308.8, 137.1, 321.73, 144.2, 329.09, 150.79, 334.41, 169.05, 334.41, 173.36, 332.38, 178.43, 324.02, 192.12, 318.69, 208.35, 314.63, 217.48, 315.4, 223.06, 318.69, 242.33, 319.45, 250.95, 318.18, 258.05, 318.18, 269.97, 318.69, 274.53, 317.68, 307.75, 236.54, 324.48, 238.06, 321.44, 232.23, 312.57, 227.92, 291.52, 228.17, 273.77, 227.41, 267.43, 218.79, 281.12, 212.45, 299.64, 208.9, 302.68, 212.45, 311.81, 209.66, 323.22, 206.36, 325.75, 203.83, 317.64, 199.26, 321.19, 199.26, 327.78, 202.81, 330.57, 202.31, 333.36, 196.22, 332.09, 192.42, 330.82, 188.11, 329.56, 184.3, 323.22, 180.75, 317.13, 180.25, 311.05, 182.02, 304.71, 188.61, 296.59, 190.39, 292.79, 189.12, 289.49, 192.92, 280.11, 196.73, 268.45, 200.78, 230.41, 206.87, 218.24, 214.98, 191.87, 217.01, 187.56, 217.52, 179.19, 226.65, 173.61, 229.18, 168.54, 233.75, 159.41, 243.64, 153.58]], "area": 22641.909299999996, "iscrowd": 0, "image_id": 443688, "bbox": [180.25, 79.03, 154.16, 254.33], "category_id": 1, "id": 209782}, {"segmentation": [[437.56, 113.23, 439.47, 69.09, 459.62, 58.53, 499.93, 71.97, 492.25, 105.55, 487.45, 124.74, 502.8, 126.66, 516.24, 152.57, 525.83, 199.59, 526.79, 207.26, 513.36, 245.64, 512.4, 274.43, 504.72, 289.78, 496.09, 297.46, 475.94, 290.74, 471.14, 277.31, 450.03, 284.03, 450.03, 284.03, 448.11, 295.54, 443.31, 308.02, 435.64, 304.18, 423.16, 294.58, 418.36, 285.95, 382.86, 293.62, 372.31, 241.81, 372.31, 215.9, 391.5, 166.96, 393.42, 144.89, 401.09, 124.74, 421.24, 115.15]], "area": 25966.777249999996, "iscrowd": 0, "image_id": 443688, "bbox": [372.31, 58.53, 154.48, 249.49], "category_id": 1, "id": 215472}, {"segmentation": [[25.3, 52.55, 21.57, 52.55, 19.71, 49.29, 15.06, 46.96, 12.73, 42.08, 10.63, 39.75, 7.37, 39.05, 5.51, 35.79, 6.91, 31.13, 7.61, 29.04, 4.81, 27.18, 3.88, 19.96, 2.95, 14.37, 7.61, 7.62, 12.49, 3.2, 15.99, 0.61, 29.56, 0.19, 35.21, 3.01, 40.73, 8.52, 47.37, 15.59, 45.96, 21.1, 45.53, 28.17, 46.52, 36.93, 50.2, 43.58, 56.98, 48.24, 68.43, 55.02, 77.05, 64.63, 80.72, 70.29, 83.41, 79.76, 84.26, 83.72, 86.66, 104.63, 88.07, 111.98, 89.63, 129.22, 88.36, 135.02, 79.03, 140.67, 82.42, 139.83, 83.97, 142.93, 85.81, 149.01, 86.52, 159.47, 85.25, 168.94, 85.67, 189.01, 85.53, 196.92, 87.51, 219.11, 88.64, 225.19, 87.37, 242.72, 92.6, 248.37, 93.3, 251.76, 91.32, 272.82, 91.18, 274.94, 91.47, 284.98, 89.2, 292.47, 93.16, 300.24, 83.27, 306.32, 75.92, 307.73, 63.48, 307.73, 60.51, 303.63, 59.81, 300.66, 66.02, 296.42, 69.28, 294.73, 68.85, 292.75, 64.89, 293.88, 62.21, 293.6, 60.37, 295.72, 56.41, 300.24, 49.49, 303.63, 42.7, 306.04, 34.37, 305.75, 31.96, 303.49, 30.55, 298.97, 33.09, 295.86, 39.45, 292.33, 45.81, 285.54, 41.43, 273.1, 30.69, 258.55, 26.17, 248.37, 16.56, 227.45, 15.57, 221.38, 16.98, 197.49, 18.25, 192.12, 18.68, 184.91, 16.84, 177.7, 20.94, 164.7, 29.14, 151.27, 27.02, 146.19, 27.58, 139.26, 25.89, 138.98, 23.62, 137.71, 19.67, 137.85, 14.01, 139.83, 10.62, 140.39, 7.51, 140.11, 4.83, 139.4, 1.15, 139.97, 0.73, 140.11, 2.28, 132.19, 4.83, 128.24, 1.01, 127.95, 1.01, 128.24, 0.3, 128.38, 0.3, 124.42, 7.79, 121.88, 15.85, 120.89, 13.59, 116.08, 15.29, 109.86, 13.87, 106.75, 13.45, 103.22, 14.86, 97.42, 16.56, 92.2, 17.26, 83.29, 16.27, 72.27, 17.41, 64.07, 20.37, 57.85, 23.62, 53.61]], "area": 18366.19640000001, "iscrowd": 0, "image_id": 443688, "bbox": [0.3, 0.19, 93.0, 307.54], "category_id": 1, "id": 215730}, {"segmentation": [[383.48, 180.5, 385.46, 116.87, 389.4, 105.03, 384.47, 102.57, 381.02, 96.15, 381.51, 93.2, 387.92, 92.7, 398.28, 91.72, 403.21, 91.72, 409.13, 90.24, 410.12, 90.24, 411.11, 92.7, 414.06, 96.65, 418.01, 96.65, 425.41, 92.7, 421.96, 87.28, 403.21, 76.42, 398.77, 77.41, 384.96, 75.44, 384.47, 70.01, 398.77, 52.75, 410.12, 49.79, 408.15, 37.46, 411.11, 26.11, 418.01, 22.17, 426.89, 21.18, 429.85, 23.65, 433.8, 28.58, 432.32, 43.87, 432.81, 55.71, 442.67, 63.6, 439.71, 74.45, 437.25, 110.95, 437.74, 111.94, 405.19, 121.8, 399.27, 129.2, 391.87, 165.71, 385.95, 182.97, 386.94, 200.23, 383.48, 206.65, 381.51, 205.66]], "area": 4303.629599999999, "iscrowd": 0, "image_id": 443688, "bbox": [381.02, 21.18, 61.65, 185.47], "category_id": 1, "id": 229618}, {"segmentation": [[147.54, 105.72, 142.71, 115.37, 140.57, 123.95, 138.96, 129.31, 137.89, 142.17, 137.89, 143.24, 123.41, 150.21, 95.54, 165.22, 88.57, 174.34, 88.04, 182.38, 90.18, 195.78, 92.32, 206.5, 92.32, 220.44, 92.32, 239.73, 90.18, 257.96, 90.18, 265.46, 89.64, 274.04, 89.11, 281.01, 89.11, 297.52, 91.25, 300.74, 96.61, 304.49, 97.68, 307.7, 99.29, 331.18, 110.55, 361.74, 140.03, 352.09, 198.46, 334.4, 187.2, 326.36, 183.45, 314.03, 188.28, 302.24, 192.03, 295.27, 196.32, 284.01, 205.97, 219.47, 219.37, 187.52, 219.37, 179.48, 215.62, 171.44, 209.72, 159.11, 206.5, 151.61, 204.36, 148.39, 201.68, 145.71, 193.1, 142.49, 191.49, 139.81, 197.39, 135.74, 195.78, 119.12, 194.17, 111.61, 189.35, 102.5, 173.27, 93.39, 163.62, 93.39, 150.22, 98.21]], "area": 24302.674549999996, "iscrowd": 0, "image_id": 443688, "bbox": [88.04, 93.39, 131.33, 268.35], "category_id": 1, "id": 251215}, {"segmentation": [[317.71, 230.49, 322.12, 224.31, 319.47, 213.71, 330.95, 181.04, 331.83, 163.38, 324.77, 151.02, 307.99, 140.42, 299.16, 134.24, 305.34, 119.23, 312.41, 104.22, 312.41, 91.86, 307.11, 84.8, 279.74, 76.85, 276.21, 68.9, 285.92, 61.84, 297.4, 53.01, 300.05, 48.59, 299.16, 44.18, 294.75, 41.53, 296.51, 32.7, 298.28, 18.57, 311.53, 19.46, 319.47, 26.52, 319.47, 38.0, 318.59, 45.06, 316.82, 49.48, 330.95, 55.66, 338.9, 65.37, 342.43, 81.26, 344.19, 89.21, 348.61, 98.04, 350.38, 100.69, 346.84, 105.99, 343.31, 104.22, 339.78, 98.04, 336.25, 90.98, 330.95, 83.91, 330.95, 102.46, 333.6, 116.58, 340.66, 142.19, 342.43, 162.5, 345.96, 169.56, 341.55, 169.56, 340.66, 178.39, 333.6, 197.82, 338.01, 207.53, 332.72, 212.83]], "area": 5053.787800000003, "iscrowd": 0, "image_id": 443688, "bbox": [276.21, 18.57, 74.17, 211.92], "category_id": 1, "id": 251927}, {"segmentation": [[84.83, 81.28, 88.58, 58.8, 90.08, 42.32, 105.06, 40.82, 117.05, 53.56, 119.3, 73.04, 126.79, 79.78, 141.78, 109.76, 141.78, 126.99, 135.04, 142.73, 103.56, 161.46, 93.07, 165.21, 84.08, 141.98, 91.57, 127.74, 81.83, 76.04]], "area": 4875.0825, "iscrowd": 0, "image_id": 443688, "bbox": [81.83, 40.82, 59.95, 124.39], "category_id": 1, "id": 252178}, {"segmentation": [[347.72, 46.46, 347.23, 64.26, 346.75, 72.55, 348.94, 80.84, 346.26, 81.57, 344.31, 79.38, 341.87, 71.33, 339.68, 62.55, 337.48, 58.41, 337.24, 56.46, 332.85, 46.95, 331.63, 40.37, 328.71, 40.13, 327.49, 38.42, 330.66, 26.72, 334.56, 24.52, 336.99, 15.75, 339.43, 12.58, 346.26, 15.26, 346.26, 18.43, 344.8, 22.57, 347.72, 24.28, 355.03, 29.4, 362.35, 27.69, 362.84, 26.23, 365.03, 27.45, 361.86, 30.62, 357.47, 33.3, 349.91, 33.06, 347.23, 38.66, 347.48, 43.78, 348.45, 46.71]], "area": 851.3206499999999, "iscrowd": 0, "image_id": 443688, "bbox": [327.49, 12.58, 37.54, 68.99], "category_id": 1, "id": 253903}, {"segmentation": [[411.14, 291.41, 417.93, 298.95, 418.69, 302.91, 417.74, 310.27, 410.2, 314.99, 401.14, 316.12, 396.43, 313.29, 393.79, 307.44]], "area": 381.04039999999975, "iscrowd": 0, "image_id": 280888, "bbox": [393.79, 291.41, 24.9, 24.71], "category_id": 37, "id": 303694}, {"segmentation": [[490.73, 287.52, 482.13, 282.76, 478.5, 278.23, 477.59, 270.99, 479.41, 262.83, 484.84, 258.3, 493.22, 256.26, 499.79, 259.66, 502.06, 260.34, 506.59, 266.23, 507.04, 273.02, 506.14, 278.23, 503.64, 282.31, 501.61, 283.67, 498.21, 285.71, 495.72, 286.61, 493.22, 287.07]], "area": 700.7920500000001, "iscrowd": 0, "image_id": 233042, "bbox": [477.59, 256.26, 29.45, 31.26], "category_id": 37, "id": 304231}, {"segmentation": [[282.7, 64.83, 282.7, 58.38, 282.7, 52.26, 283.02, 47.74, 284.96, 43.55, 287.22, 38.71, 289.47, 34.84, 293.02, 31.61, 298.18, 28.07, 302.38, 25.16, 306.25, 23.55, 310.76, 22.58, 315.92, 22.58, 322.7, 22.58, 327.21, 23.55, 331.73, 25.49, 334.95, 27.42, 339.14, 29.68, 343.02, 32.58, 347.21, 37.74, 350.43, 45.16, 351.4, 53.22, 352.37, 58.38, 351.08, 64.83, 348.82, 69.35, 347.53, 72.9, 343.02, 80.64, 340.11, 84.51, 330.76, 90.64, 319.47, 92.89, 315.28, 92.57, 309.79, 92.25, 302.05, 90.64, 295.6, 86.12, 292.38, 82.9, 288.18, 77.74, 285.93, 74.19, 283.35, 67.09]], "area": 3888.527249999999, "iscrowd": 0, "image_id": 118406, "bbox": [282.7, 22.58, 69.67, 70.31], "category_id": 37, "id": 305974}, {"segmentation": [[171.8, 78.34, 168.02, 65.12, 178.41, 50.0, 187.85, 46.22, 200.13, 48.11, 206.75, 53.78, 216.19, 62.28, 215.25, 88.73, 195.41, 95.34, 183.13, 95.34, 179.35, 90.62, 171.8, 84.01]], "area": 1833.1042499999999, "iscrowd": 0, "image_id": 97661, "bbox": [168.02, 46.22, 48.17, 49.12], "category_id": 37, "id": 306563}, {"segmentation": [[68.72, 250.31, 71.95, 210.57, 93.42, 193.39, 118.12, 183.73, 165.37, 175.14, 184.7, 170.84, 209.4, 163.33, 264.16, 163.33, 339.33, 166.55, 374.77, 157.96, 360.81, 232.05, 408.05, 240.64, 381.21, 279.3, 347.92, 297.55, 333.96, 331.92, 330.74, 358.76, 365.1, 384.53, 383.36, 393.12, 418.79, 377.02, 438.12, 370.57, 438.12, 406.01, 420.94, 419.97, 383.36, 419.97, 342.55, 419.97, 299.6, 427.49, 242.68, 448.96, 182.55, 452.18, 143.89, 446.82, 125.64, 437.15, 76.24, 411.38, 75.17, 373.8, 69.8, 353.39, 47.25, 327.62, 51.54, 304.0, 54.77, 293.26]], "area": 80718.97675000003, "iscrowd": 0, "image_id": 360902, "bbox": [47.25, 157.96, 390.87, 294.22], "category_id": 54, "id": 308007}, {"segmentation": [[3.24, 1.35, 523.15, 2.43, 510.2, 134.02, 537.17, 160.99, 530.7, 245.12, 386.16, 395.06, 299.87, 447.91, 250.25, 453.3, 210.34, 455.46, 81.98, 425.26, 17.26, 400.45, 8.63, 398.29, 2.16, 390.74]], "area": 209397.44675, "iscrowd": 0, "image_id": 398236, "bbox": [2.16, 1.35, 535.01, 454.11], "category_id": 54, "id": 308651}, {"segmentation": [[322.15, 17.33, 428.46, 58.14, 500.4, 89.28, 515.44, 91.43, 525.1, 91.43, 532.62, 96.8, 534.77, 104.31, 577.72, 106.46, 575.57, 116.13, 547.65, 150.49, 539.06, 156.93, 554.09, 165.52, 569.13, 164.45, 583.09, 169.82, 572.35, 190.22, 579.87, 200.96, 572.35, 208.48, 542.28, 204.18, 477.85, 210.62, 417.72, 240.69, 412.35, 243.91, 362.95, 232.1, 373.69, 156.93, 343.62, 163.37, 268.46, 163.37, 223.36, 164.45, 221.21, 155.86, 231.95, 149.42, 239.46, 135.46, 243.76, 133.31, 242.68, 125.79, 251.28, 112.91, 259.87, 113.98, 268.46, 106.46, 274.9, 96.8, 237.32, 86.06, 224.43, 80.69, 228.72, 89.28, 224.43, 90.35, 216.91, 87.13, 216.91, 78.54, 215.84, 73.17, 224.43, 58.14, 238.39, 38.81, 245.91, 30.22, 279.19, 43.11, 301.74, 30.22, 314.63, 21.63]], "area": 46478.54344999998, "iscrowd": 0, "image_id": 360902, "bbox": [215.84, 17.33, 367.25, 226.58], "category_id": 54, "id": 311121}, {"segmentation": [[39.83, 277.21, 6.49, 263.25, 6.49, 261.7, 5.71, 252.4, 42.93, 248.52, 89.46, 262.48, 91.78, 270.23, 56.89, 279.54]], "area": 1721.3025499999992, "iscrowd": 0, "image_id": 155591, "bbox": [5.71, 248.52, 86.07, 31.02], "category_id": 77, "id": 321488}, {"segmentation": [[328.22, 318.44, 330.46, 325.14, 332.69, 326.04, 330.9, 329.61, 333.58, 334.97, 338.95, 334.97, 338.95, 336.76, 338.05, 339.89, 345.2, 347.48, 349.22, 355.53, 350.48, 362.28, 350.8, 373.17, 346.63, 383.74, 339.91, 388.55, 331.26, 391.11, 323.25, 393.68, 320.04, 394.64, 314.6, 395.6, 307.87, 394.32, 305.31, 392.07, 304.03, 394.0, 296.02, 386.31, 290.89, 375.09, 289.29, 362.28, 294.41, 347.22, 304.03, 340.81, 303.06, 338.89, 304.03, 336.01, 306.27, 334.41, 306.91, 335.69, 307.55, 338.25, 310.75, 334.73, 312.03, 332.49, 311.39, 331.2, 310.43, 331.52, 309.47, 330.56, 310.43, 328.32, 313.64, 327.04, 314.28, 323.51, 315.24, 323.51, 315.56, 328.0, 315.56, 330.56, 316.84, 329.28, 318.76, 329.92, 316.2, 332.81, 317.16, 333.45, 319.08, 333.13, 319.4, 329.92, 323.25, 330.24, 323.89, 331.2, 323.25, 333.13, 326.77, 333.13, 330.62, 333.13, 329.01, 330.24, 328.69, 328.32, 328.69, 326.4, 327.09, 327.04, 325.17, 326.08, 324.87, 324.36, 325.93, 324.36, 327.62, 324.99, 328.46, 323.93, 328.46, 319.92]], "area": 3103.00075, "iscrowd": 0, "image_id": 25252, "bbox": [289.29, 318.44, 61.51, 77.16], "category_id": 85, "id": 334055}, {"segmentation": [[60.64, 120.0, 60.64, 82.11, 60.64, 58.63, 62.24, 37.28, 49.96, 27.68, 29.15, 20.21, 8.34, 22.88, 0.0, 23.94, 0.0, 139.21, 0.0, 153.09, 11.54, 177.63, 34.49, 207.52, 44.63, 218.19, 48.9, 228.86, 53.7, 228.86, 58.5, 214.46, 60.64, 118.93]], "area": 10495.8627, "iscrowd": 0, "image_id": 476412, "bbox": [0.0, 20.21, 62.24, 208.65], "category_id": 62, "id": 373587}, {"segmentation": [[105.23, 165.23, 110.16, 36.02, 123.89, 44.82, 146.77, 41.65, 146.77, 51.16, 154.52, 42.35, 158.04, 46.23, 160.86, 39.54, 177.05, 37.07, 182.68, 42.71, 186.56, 67.35, 177.75, 67.0, 172.12, 69.46, 165.08, 76.51, 158.04, 80.03, 152.05, 83.55, 151.0, 88.48, 154.52, 95.17, 156.63, 102.91, 159.09, 109.95, 157.69, 116.29, 164.73, 126.85, 167.54, 127.56, 137.97, 141.64, 128.82, 145.86, 116.14, 134.6, 129.52, 133.54, 112.97, 67.35, 110.86, 132.84, 112.97, 137.06, 114.38, 140.94, 123.53, 155.02, 120.01, 155.72, 110.51, 140.23, 109.8, 163.12]], "area": 5163.507099999999, "iscrowd": 0, "image_id": 476412, "bbox": [105.23, 36.02, 81.33, 129.21], "category_id": 62, "id": 377926}, {"segmentation": [[372.73, 148.17, 394.4, 151.42, 621.94, 259.77, 640.0, 309.62, 640.0, 471.06, 6.5, 474.31, 1.08, 277.11, 21.67, 180.68, 374.9, 149.26]], "area": 183650.97045, "iscrowd": 0, "image_id": 398727, "bbox": [1.08, 148.17, 638.92, 326.14], "category_id": 67, "id": 391574}, {"segmentation": [[305.26, 409.89, 305.26, 471.37, 414.2, 474.61, 414.2, 461.66, 446.56, 474.61, 552.27, 474.61, 640.0, 165.03, 640.0, 1.08, 0.0, 0.0, 2.16, 275.06]], "area": 248660.8482, "iscrowd": 0, "image_id": 423618, "bbox": [0.0, 0.0, 640.0, 474.61], "category_id": 67, "id": 391874}, {"segmentation": [[270.21, 185.46, 300.01, 186.35, 302.69, 189.63, 301.5, 209.6, 298.82, 214.07, 287.79, 225.99, 281.53, 233.44, 274.68, 237.32, 273.48, 241.79, 267.82, 247.45, 263.35, 244.17, 259.77, 236.72, 259.18, 218.84, 264.25, 212.88, 269.01, 208.7, 269.61, 198.57], [259.48, 185.75, 263.95, 185.75, 263.95, 192.61, 262.46, 201.25, 260.07, 195.29, 259.18, 189.33], [232.05, 185.46, 230.56, 201.25, 230.56, 209.6, 232.65, 212.28, 232.65, 216.75, 232.95, 230.16, 232.35, 239.7, 232.05, 245.36, 222.52, 246.56, 215.96, 246.56, 214.17, 238.51, 207.91, 237.32, 209.4, 230.16, 212.68, 219.73, 214.47, 185.16, 215.96, 182.47, 228.18, 182.47]], "area": 2936.22, "iscrowd": 0, "image_id": 280888, "bbox": [207.91, 182.47, 94.78, 64.98], "category_id": 8, "id": 400239}, {"segmentation": [[112.7, 217.96, 135.2, 209.93, 154.48, 193.05, 182.6, 205.91, 188.23, 202.69, 174.57, 163.33, 155.28, 158.51, 165.73, 136.81, 153.68, 120.74, 132.79, 126.37, 132.79, 152.88, 135.2, 160.92, 120.74, 172.97, 107.88, 194.66, 103.86, 199.48, 107.08, 205.11, 107.08, 224.39]], "area": 3966.6726000000003, "iscrowd": 0, "image_id": 144836, "bbox": [103.86, 120.74, 84.37, 103.65], "category_id": 1, "id": 421062}, {"segmentation": [[117.13, 234.33, 103.65, 260.45, 103.65, 284.04, 117.13, 328.71, 133.99, 356.52, 173.6, 359.89, 208.99, 364.1, 225.84, 354.83, 242.7, 345.56, 257.02, 335.45, 262.92, 337.98, 258.71, 355.67, 251.12, 364.94, 241.85, 367.47, 212.36, 370.0, 5.06, 368.31, 21.07, 252.87, 42.13, 235.17, 72.47, 225.9, 104.49, 206.52, 124.72, 206.52, 124.72, 217.47]], "area": 16101.960550000002, "iscrowd": 0, "image_id": 319704, "bbox": [5.06, 206.52, 257.86, 163.48], "category_id": 1, "id": 427717}, {"segmentation": [[115.42, 242.7, 119.73, 226.52, 110.02, 211.42, 159.64, 160.72, 200.63, 156.4, 216.81, 124.04, 249.17, 116.49, 256.72, 100.31, 280.45, 105.71, 290.16, 125.12, 308.49, 155.33, 302.02, 185.53, 298.79, 193.08, 305.26, 194.16, 308.49, 241.62, 117.57, 242.7]], "area": 18781.09895, "iscrowd": 0, "image_id": 274671, "bbox": [110.02, 100.31, 198.47, 142.39], "category_id": 1, "id": 434259}, {"segmentation": [[210.56, 351.35, 215.16, 341.4, 186.07, 295.48, 186.07, 287.84, 193.73, 284.01, 212.86, 287.84, 203.68, 275.59, 189.13, 260.29, 158.53, 265.65, 118.74, 259.52, 100.38, 250.34, 100.38, 239.63, 124.86, 239.63, 163.89, 241.16, 204.44, 228.92, 205.97, 215.91, 214.39, 212.85, 228.16, 219.74, 268.71, 236.57, 302.39, 256.46, 327.64, 275.59, 325.34, 286.31, 287.84, 274.07, 310.04, 302.38, 310.04, 307.73, 284.78, 309.26, 285.55, 297.78, 275.6, 288.6, 250.35, 314.61, 215.92, 306.97, 245.76, 342.93, 226.63, 363.59, 207.5, 359.76]], "area": 11934.713849999998, "iscrowd": 0, "image_id": 64974, "bbox": [100.38, 212.85, 227.26, 150.74], "category_id": 1, "id": 438471}, {"segmentation": [[340.97, 163.96, 330.21, 165.62, 326.7, 163.55, 317.18, 166.24, 308.29, 170.17, 310.57, 172.03, 312.84, 174.1, 307.88, 175.34, 296.5, 175.34, 293.81, 175.13, 286.37, 172.86, 284.92, 173.89, 281.61, 172.86, 279.54, 169.76, 269.41, 166.45, 264.03, 162.1, 257.41, 161.07, 244.8, 153.21, 241.28, 153.62, 239.42, 152.38, 236.52, 152.8, 228.04, 166.86, 225.15, 180.92, 225.56, 185.89, 227.63, 187.75, 226.6, 191.47, 225.35, 192.09, 224.73, 189.82, 224.32, 189.82, 224.11, 191.27, 223.7, 196.02, 221.63, 197.06, 218.53, 195.82, 218.53, 193.54, 219.77, 187.75, 220.8, 185.06, 220.18, 174.72, 220.8, 169.76, 220.8, 164.38, 224.11, 158.79, 226.18, 150.52, 226.18, 143.9, 229.28, 139.97, 231.97, 135.63, 234.87, 131.91, 230.94, 125.08, 229.9, 118.05, 231.15, 114.33, 236.52, 111.43, 242.31, 112.26, 245.42, 114.95, 247.9, 119.91, 247.9, 122.6, 252.45, 119.91, 257.83, 118.67, 266.1, 117.84, 271.48, 119.5, 278.71, 122.19, 281.61, 123.43, 289.68, 129.01, 297.12, 136.66, 301.47, 139.15, 308.08, 141.63, 316.56, 141.83, 322.98, 141.83, 327.32, 143.7, 329.18, 145.56, 334.56, 145.97, 341.18, 146.38, 344.69, 148.04, 346.97, 151.76, 349.24, 156.52, 340.76, 155.28, 338.07, 153.62, 335.8, 151.76, 331.25, 151.35, 326.7, 151.35, 320.08, 152.59, 318.22, 153.83, 317.8, 155.28, 321.53, 156.31, 326.7, 156.31, 327.73, 154.24, 331.25, 153.83, 334.56, 156.31, 339.52, 157.97, 343.45, 159.0, 343.45, 162.31]], "area": 4298.988299999999, "iscrowd": 0, "image_id": 193474, "bbox": [218.53, 111.43, 130.71, 85.63], "category_id": 1, "id": 439622}, {"segmentation": [[527.3, 3.63, 502.35, 39.13, 501.39, 50.65, 542.65, 101.5, 543.61, 157.15, 605.01, 183.05, 606.93, 180.17, 603.09, 168.66, 598.3, 167.7, 588.7, 152.35, 587.74, 145.63, 577.19, 120.69, 577.19, 114.93, 586.78, 99.58, 610.77, 82.31, 638.59, 83.27, 639.55, 2.67, 526.34, 3.63]], "area": 14121.556400000003, "iscrowd": 0, "image_id": 216510, "bbox": [501.39, 2.67, 138.16, 180.38], "category_id": 1, "id": 439700}, {"segmentation": [[0.0, 177.11, 0.0, 0.86, 177.1, 2.75, 191.0, 80.45, 219.43, 182.16, 240.27, 248.49, 253.54, 235.22, 266.17, 222.59, 276.91, 220.69, 293.97, 224.48, 319.87, 245.96, 336.93, 267.44, 336.93, 304.08, 331.87, 316.71, 305.97, 337.56, 297.13, 348.93, 259.86, 393.15, 233.96, 408.94, 212.48, 419.05, 180.89, 410.21, 138.57, 366.62, 112.04, 290.18, 100.03, 259.86, 76.03, 323.03, 20.44, 425.37, 7.17, 428.0, 0.0, 426.0, 0.0, 299.66]], "area": 92389.52519999999, "iscrowd": 0, "image_id": 495438, "bbox": [0.0, 0.86, 336.93, 427.14], "category_id": 1, "id": 447366}, {"segmentation": [[161.55, 322.83, 168.53, 322.83, 173.6, 317.11, 171.7, 306.33, 180.58, 293.0, 188.83, 314.58, 189.47, 330.44, 191.37, 332.34, 199.62, 326.63, 195.81, 313.94, 192.64, 284.75, 195.81, 277.77, 196.45, 260.64, 196.45, 245.41, 203.43, 250.49, 209.14, 249.85, 212.31, 245.41, 207.87, 207.97, 200.89, 181.32, 188.83, 174.98, 190.1, 169.26, 188.2, 155.3, 183.76, 152.13, 172.97, 155.94, 172.97, 162.28, 175.51, 176.88, 163.45, 181.32, 157.74, 185.13, 149.49, 206.7, 148.86, 224.47, 146.32, 230.82, 157.74, 211.14, 157.74, 208.61, 165.35, 220.66, 167.26, 240.97, 177.41, 261.27, 181.85, 278.41, 168.53, 293.64, 160.28, 298.08, 165.35, 322.19]], "area": 5231.0262999999995, "iscrowd": 0, "image_id": 111416, "bbox": [146.32, 152.13, 65.99, 180.21], "category_id": 1, "id": 453312}, {"segmentation": [[91.68, 563.31, 113.01, 541.35, 119.91, 526.92, 137.48, 506.84, 151.91, 498.75, 153.79, 475.53, 146.89, 454.83, 149.4, 434.75, 152.54, 426.59, 135.59, 412.16, 131.2, 400.97, 128.69, 376.5, 131.83, 365.83, 137.48, 363.32, 125.56, 351.4, 119.91, 337.6, 125.56, 325.68, 116.77, 298.14, 103.6, 314.45, 87.91, 322.61, 81.64, 308.17, 78.5, 291.23, 88.54, 271.16, 91.05, 268.09, 93.56, 258.05, 97.32, 242.99, 96.07, 227.3, 92.93, 216.01, 89.79, 209.11, 87.91, 206.63, 95.44, 206.0, 105.48, 222.94, 100.46, 241.77, 99.2, 246.79, 108.62, 241.77, 112.38, 234.86, 119.28, 233.61, 106.11, 222.94, 84.15, 182.79, 97.95, 164.66, 122.42, 159.64, 141.24, 177.83, 145.63, 202.93, 153.79, 215.48, 174.5, 214.22, 191.44, 211.09, 186.42, 238.07, 191.44, 259.4, 220.92, 276.34, 218.41, 300.81, 221.55, 338.42, 217.79, 370.42, 242.26, 385.41, 266.73, 404.86, 268.61, 427.45, 260.45, 460.7, 256.06, 493.33, 251.67, 514.66, 262.96, 531.6, 286.8, 540.39, 298.73, 543.52, 293.08, 554.79, 276.14, 557.29, 256.69, 561.06, 225.94, 555.41, 219.67, 547.26, 230.96, 517.14, 229.08, 486.43, 225.32, 468.86, 225.94, 457.6, 228.45, 443.8, 231.59, 431.88, 230.34, 434.42, 222.81, 430.03, 212.77, 441.32, 210.26, 462.02, 195.83, 494.65, 192.06, 514.1, 161.95, 530.41, 150.65, 551.12, 116.14, 579.35, 101.71, 591.9], [227.2, 227.03, 219.67, 240.84, 230.96, 257.15, 245.39, 257.78, 258.57, 248.99, 275.51, 260.29, 317.55, 241.47, 340.13, 235.19, 359.59, 222.02, 337.63, 220.13, 328.21, 216.37, 311.27, 232.68]], "area": 41440.93554999998, "iscrowd": 0, "image_id": 118406, "bbox": [78.5, 159.64, 281.09, 432.26], "category_id": 1, "id": 455677}, {"segmentation": [[124.16, 234.65, 117.47, 261.39, 108.88, 259.48, 110.79, 240.38, 110.79, 223.19, 110.79, 214.6, 111.74, 203.14, 111.74, 192.63, 115.56, 172.57, 116.52, 163.02, 117.47, 150.61, 118.43, 150.61, 127.02, 154.43, 128.93, 161.11, 128.93, 163.98, 147.08, 180.21, 149.94, 198.36, 147.08, 204.09, 143.26, 224.15, 143.26, 229.88, 147.08, 258.53, 148.03, 259.48, 128.93, 253.75]], "area": 3072.760300000001, "iscrowd": 0, "image_id": 280888, "bbox": [108.88, 150.61, 41.06, 110.78], "category_id": 1, "id": 457157}, {"segmentation": [[441.65, 194.35, 450.13, 191.07, 453.69, 189.15, 456.97, 187.24, 458.89, 184.77, 458.89, 177.66, 458.89, 174.1, 461.35, 167.81, 465.45, 165.07, 466.55, 164.25, 461.35, 158.23, 466.0, 149.75, 460.26, 146.46, 457.24, 144.82, 453.14, 144.55, 450.13, 145.64, 448.49, 146.74, 444.93, 149.47, 447.39, 159.32, 449.86, 163.98, 447.12, 167.26, 445.48, 174.65, 443.56, 180.4, 441.37, 186.42, 438.64, 187.78, 436.45, 190.25, 435.63, 193.26, 435.63, 193.53]], "area": 748.1211999999996, "iscrowd": 0, "image_id": 280888, "bbox": [435.63, 144.55, 30.92, 49.8], "category_id": 1, "id": 458773}, {"segmentation": [[253.69, 495.14, 260.9, 454.77, 268.11, 433.15, 266.67, 414.41, 258.02, 401.44, 256.58, 369.73, 249.37, 349.55, 237.84, 325.05, 234.95, 307.75, 227.75, 284.68, 224.86, 277.48, 204.68, 268.83, 184.5, 255.86, 183.06, 245.77, 190.27, 206.85, 193.15, 185.23, 210.45, 152.07, 223.42, 130.45, 237.84, 121.8, 240.72, 110.27, 233.51, 91.53, 240.72, 72.79, 253.69, 61.26, 272.43, 59.82, 283.96, 68.47, 288.29, 77.12, 295.5, 84.32, 307.03, 92.97, 307.03, 105.95, 314.23, 116.04, 320.0, 134.77, 320.0, 146.31, 324.32, 150.63, 337.3, 150.63, 358.92, 165.05, 366.13, 156.4, 380.54, 152.07, 390.63, 165.05, 392.07, 170.81, 387.75, 175.14, 377.66, 179.46, 370.45, 183.78, 348.83, 178.02, 334.41, 178.02, 322.88, 178.02, 320.0, 193.87, 322.88, 201.08, 322.88, 221.26, 317.12, 228.47, 295.5, 229.91, 258.02, 229.91, 237.84, 227.03, 227.75, 227.03, 226.31, 235.68, 230.63, 252.97, 239.28, 255.86, 253.69, 251.53, 266.67, 251.53, 275.32, 255.86, 291.17, 254.41, 309.91, 245.77, 324.32, 245.77, 324.32, 248.65, 321.44, 267.39, 325.77, 274.59, 335.86, 280.36, 366.13, 297.66, 396.4, 309.19, 403.6, 317.84, 410.81, 342.34, 423.78, 375.5, 443.96, 407.21, 456.94, 427.39, 471.35, 440.36, 492.97, 443.24, 511.71, 447.57, 520.36, 453.33, 514.59, 464.86, 495.86, 476.4, 472.79, 485.05, 464.14, 490.81, 442.52, 467.75, 416.58, 430.27, 389.19, 387.03, 379.1, 376.94, 370.45, 355.32, 356.04, 345.23, 331.53, 343.78, 322.88, 343.78, 330.09, 363.96, 314.23, 374.05, 312.79, 378.38, 304.14, 420.18, 295.5, 446.13, 278.2, 460.54, 265.23, 476.4, 260.9, 498.02], [214.77, 495.14, 203.24, 545.59, 185.95, 557.12, 187.39, 570.09, 210.45, 591.71, 223.42, 607.57, 233.51, 611.89, 246.49, 616.22, 256.58, 604.68, 247.93, 588.83, 242.16, 568.65, 230.63, 558.56, 221.98, 555.68, 226.31, 539.82, 230.63, 508.11, 229.19, 490.81, 227.75, 482.16]], "area": 49080.11684999998, "iscrowd": 0, "image_id": 118406, "bbox": [183.06, 59.82, 337.3, 556.4], "category_id": 1, "id": 469849}, {"segmentation": [[251.4, 147.48, 269.63, 148.44, 275.39, 156.11, 272.51, 170.51, 270.59, 184.9, 270.59, 194.5, 288.82, 206.97, 297.46, 224.24, 222.62, 246.31, 209.18, 254.95, 204.38, 264.54, 216.86, 284.69, 228.37, 302.92, 242.77, 309.64, 257.16, 315.4, 265.8, 320.2, 300.34, 311.56, 307.06, 340.35, 302.26, 351.86, 290.74, 358.58, 294.58, 381.61, 295.54, 395.04, 300.34, 419.99, 273.47, 419.99, 269.63, 399.84, 261.96, 397.92, 250.44, 372.97, 249.48, 404.64, 247.56, 419.99, 222.62, 419.03, 222.62, 405.6, 214.94, 403.68, 213.02, 380.65, 211.1, 357.62, 211.1, 336.51, 231.25, 331.71, 223.58, 317.32, 195.75, 298.13, 182.31, 278.94, 185.19, 255.91, 194.79, 234.8, 207.26, 212.73, 237.01, 194.5, 241.81, 189.7, 240.85, 177.22, 240.85, 161.87]], "area": 14781.421149999996, "iscrowd": 0, "image_id": 409496, "bbox": [182.31, 147.48, 124.75, 272.51], "category_id": 1, "id": 469961}, {"segmentation": [[301.3, 234.13, 319.53, 213.02, 331.04, 200.55, 332.96, 195.75, 328.17, 172.72, 328.17, 171.76, 314.73, 155.45, 314.73, 155.45, 308.02, 176.56, 287.87, 216.86, 273.47, 230.29, 260.04, 241.81, 248.52, 226.45, 272.51, 208.22, 278.27, 196.71, 283.07, 169.84, 286.91, 153.53, 288.82, 149.69, 289.78, 135.3, 268.67, 115.15, 263.88, 110.35, 263.88, 95.96, 275.39, 85.4, 319.53, 79.64, 333.92, 95.96, 379.02, 65.25, 383.82, 48.94, 401.09, 45.1, 398.21, 67.17, 379.02, 81.56, 350.24, 96.91, 340.64, 113.23, 378.06, 178.48, 380.94, 189.99, 375.18, 207.26, 360.79, 225.49, 368.47, 231.25, 389.58, 228.37, 392.46, 236.05, 387.66, 272.51, 378.06, 255.24, 375.18, 247.56, 340.64, 257.16, 332.0, 277.31, 330.09, 284.03, 310.89, 271.55, 310.89, 257.16, 306.1, 255.24, 294.58, 252.36, 303.22, 237.01]], "area": 14637.915200000001, "iscrowd": 0, "image_id": 111644, "bbox": [248.52, 45.1, 152.57, 238.93], "category_id": 1, "id": 470789}, {"segmentation": [[308.74, 216.42, 314.46, 223.09, 317.32, 239.29, 317.32, 243.1, 317.32, 256.45, 319.23, 261.21, 321.13, 272.64, 321.13, 275.5, 321.13, 288.84, 316.37, 290.75, 291.59, 296.47, 289.69, 302.19, 289.69, 307.9, 298.26, 310.76, 300.17, 310.76, 303.03, 309.81, 319.23, 307.9, 320.18, 307.9, 323.04, 313.62, 330.66, 316.48, 338.28, 317.43, 340.19, 315.53, 343.05, 306.95, 347.81, 291.7, 349.72, 286.94, 351.63, 279.32, 353.53, 265.02, 353.53, 255.49, 353.53, 242.15, 353.53, 227.86, 357.34, 222.14, 358.3, 221.19, 370.68, 228.81, 364.01, 212.61, 357.34, 202.13, 355.44, 197.36, 345.91, 184.98, 345.91, 181.16, 338.28, 170.68, 333.52, 167.82, 324.94, 173.54, 320.18, 177.35, 319.23, 184.02, 315.41, 193.55, 301.12, 208.8, 288.73, 223.09, 283.02, 227.86, 273.49, 236.43, 271.58, 241.2, 274.44, 245.96, 283.02, 242.15]], "area": 5998.541399999997, "iscrowd": 0, "image_id": 280888, "bbox": [271.58, 167.82, 99.1, 149.61], "category_id": 1, "id": 471574}, {"segmentation": [[24.45, 310.65, 23.01, 276.13, 21.57, 248.81, 12.94, 234.43, 0.0, 208.54, 2.88, 184.09, 5.75, 149.57, 8.63, 133.75, 18.7, 125.12, 28.76, 119.37, 33.08, 110.74, 25.89, 94.92, 31.64, 81.98, 43.15, 74.79, 47.46, 73.35, 63.28, 73.35, 73.35, 107.87, 93.48, 125.12, 94.92, 156.76, 94.92, 218.61, 87.73, 243.06, 73.35, 253.12, 48.9, 271.82, 46.02, 294.83, 31.64, 310.65]], "area": 14705.281599999998, "iscrowd": 0, "image_id": 144836, "bbox": [0.0, 73.35, 94.92, 237.3], "category_id": 1, "id": 471996}, {"segmentation": [[299.07, 205.33, 305.43, 256.62, 300.89, 261.16, 298.62, 259.35, 297.26, 256.17, 296.8, 269.33, 294.53, 308.37, 294.53, 313.37, 299.98, 314.27, 299.98, 316.09, 299.98, 320.63, 293.17, 322.9, 279.87, 329.15, 280.72, 316.44, 282.41, 299.5, 285.8, 281.71, 286.65, 273.24, 284.95, 273.24, 281.56, 282.56, 273.94, 291.03, 264.62, 302.04, 262.08, 311.36, 259.54, 321.53, 256.15, 320.68, 251.92, 318.99, 249.37, 308.82, 251.07, 295.27, 252.76, 291.03, 262.93, 278.33, 264.62, 275.78, 265.47, 271.55, 267.16, 255.45, 267.16, 250.37, 260.39, 236.82, 257.0, 230.89, 254.46, 228.35, 251.92, 220.72, 251.92, 213.95, 254.46, 208.02, 258.69, 199.55, 269.7, 194.46, 272.25, 189.38, 272.25, 180.91, 272.25, 174.98, 279.87, 168.21, 285.8, 169.05, 288.34, 169.05, 297.66, 186.84, 287.49, 194.46, 290.03, 196.16, 294.27, 197.85, 300.2, 202.09]], "area": 5151.202999999997, "iscrowd": 0, "image_id": 111416, "bbox": [249.37, 168.21, 56.06, 160.94], "category_id": 1, "id": 475623}, {"segmentation": [[12.97, 215.5, 46.43, 204.58, 107.07, 197.84, 131.78, 186.61, 162.11, 175.38, 177.83, 165.27, 183.45, 143.93, 187.94, 132.7, 211.53, 134.95, 222.76, 143.93, 216.02, 161.9, 218.26, 181.0, 232.86, 186.61, 258.7, 189.98, 251.96, 177.63, 240.73, 160.78, 232.86, 147.3, 235.11, 139.44, 248.59, 138.32, 260.94, 155.17, 273.3, 185.49, 283.4, 198.97, 277.79, 215.81, 244.1, 216.94, 231.74, 229.29, 219.39, 239.4, 207.03, 274.22, 204.79, 310.16, 201.42, 337.11, 186.82, 378.67, 182.32, 413.48, 174.46, 458.41, 160.98, 483.12, 160.98, 501.09, 146.38, 516.81, 135.15, 525.79, 126.17, 515.69, 145.26, 483.12, 156.49, 417.98, 156.49, 374.17, 146.38, 378.67, 138.52, 408.99, 136.28, 434.82, 132.91, 460.65, 126.17, 485.36, 131.78, 502.21, 121.68, 522.43, 108.2, 526.92, 102.58, 507.83, 105.95, 464.02, 107.07, 425.84, 110.44, 397.76, 112.69, 329.99, 113.81, 300.79, 127.29, 271.59, 135.15, 240.14, 139.65, 227.78, 110.44, 234.52, 61.03, 233.4, 27.33, 232.28, 9.36, 232.28, 7.12, 222.17]], "area": 33079.83385000001, "iscrowd": 0, "image_id": 97661, "bbox": [7.12, 132.7, 276.28, 394.22], "category_id": 1, "id": 477033}, {"segmentation": [[244.97, 237.9, 255.33, 234.44, 266.18, 230.5, 275.06, 229.02, 278.02, 230.5, 282.45, 229.51, 282.45, 219.15, 285.91, 217.18, 290.84, 217.18, 298.24, 215.21, 300.7, 221.13, 301.2, 228.52, 299.72, 232.96, 295.77, 236.91, 294.79, 238.88, 301.2, 240.36, 306.62, 241.35, 313.53, 242.33, 332.27, 235.43, 341.15, 234.94, 347.07, 234.94, 353.48, 234.94, 353.48, 238.39, 349.04, 240.36, 337.7, 242.83, 331.78, 244.8, 325.36, 248.25, 316.98, 249.73, 304.16, 251.21, 293.31, 254.17, 285.91, 256.64, 271.11, 265.02, 258.78, 270.45, 243.98, 277.85, 234.12, 286.23, 226.72, 288.7, 212.91, 291.66, 202.55, 294.62, 190.72, 299.05, 188.25, 301.52, 180.85, 302.01, 176.91, 302.01, 181.35, 295.11, 183.32, 291.16, 195.16, 289.68, 204.53, 287.71, 208.47, 283.27, 206.5, 280.81, 200.09, 284.75, 188.25, 288.2, 175.92, 295.6, 172.96, 298.56, 170.0, 299.05, 168.52, 294.62, 170.0, 289.68, 172.96, 288.2, 175.43, 288.2, 182.83, 284.26, 198.11, 278.34, 209.46, 275.38, 214.39, 263.54, 225.74, 257.13, 232.64, 254.17, 238.07, 248.75, 240.53, 242.33]], "area": 4100.6585000000005, "iscrowd": 0, "image_id": 514468, "bbox": [168.52, 215.21, 184.96, 86.8], "category_id": 1, "id": 477656}, {"segmentation": [[4.31, 533.57, 0.0, 363.87, 20.13, 336.54, 53.21, 277.57, 74.79, 251.69, 102.11, 235.87, 152.45, 198.47, 208.54, 215.73, 251.69, 264.63, 253.12, 300.58, 238.74, 320.72, 224.36, 330.79, 215.73, 366.74, 194.16, 441.53, 123.69, 454.47, 56.09, 477.48, 41.71, 404.13, 35.96, 463.1, 41.71, 526.38]], "area": 48797.103149999995, "iscrowd": 0, "image_id": 144836, "bbox": [0.0, 198.47, 253.12, 335.1], "category_id": 1, "id": 478228}, {"segmentation": [[368.62, 431.53, 384.74, 422.89, 392.23, 422.31, 400.3, 424.04, 407.79, 430.95, 411.82, 445.35, 408.94, 458.03, 402.03, 462.06, 396.84, 463.21, 383.59, 470.7, 374.38, 463.79, 367.46, 469.55, 372.07, 485.1, 383.59, 497.2, 392.23, 519.66, 404.33, 538.67, 416.43, 534.64, 421.04, 537.52, 420.46, 544.43, 417.58, 551.35, 404.91, 551.92, 393.96, 551.92, 388.2, 551.92, 382.44, 546.74, 375.53, 541.55, 372.65, 531.76, 372.65, 523.12, 369.77, 515.06, 361.13, 524.27, 356.52, 524.85, 354.79, 520.82, 353.64, 513.9, 350.18, 509.3, 349.03, 518.51, 340.97, 544.43, 342.69, 561.72, 349.61, 566.9, 350.76, 573.24, 347.3, 576.12, 338.66, 576.12, 334.63, 573.81, 330.02, 561.72, 316.19, 556.53, 309.28, 538.67, 311.01, 523.7, 300.64, 497.77, 300.07, 478.19, 311.01, 452.27, 334.63, 433.83]], "area": 9967.136400000001, "iscrowd": 0, "image_id": 509826, "bbox": [300.07, 422.31, 120.97, 153.81], "category_id": 1, "id": 479417}, {"segmentation": [[1.43, 295.77, 12.91, 279.99, 17.22, 265.64, 21.52, 255.59, 22.96, 242.68, 25.83, 232.63, 25.83, 225.46, 34.44, 209.67, 38.74, 205.37, 43.05, 201.06, 60.27, 195.32, 74.62, 195.32, 84.66, 203.93, 88.97, 224.02, 91.84, 238.37, 91.84, 246.98, 93.27, 265.64, 90.4, 281.42, 83.23, 292.9, 81.79, 294.34, 81.79, 301.51, 81.79, 307.25, 90.4, 331.65, 91.84, 333.08, 94.71, 334.52, 93.27, 409.14, 90.4, 419.18, 84.66, 427.79, 120.54, 465.1, 133.45, 478.01, 124.84, 502.41, 104.75, 509.58, 86.1, 492.36, 77.49, 488.06, 76.05, 499.54, 87.53, 533.98, 100.45, 614.34, 111.93, 631.56, 4.3, 630.12]], "area": 38057.53814999999, "iscrowd": 0, "image_id": 118406, "bbox": [1.43, 195.32, 132.02, 436.24], "category_id": 1, "id": 486792}, {"segmentation": [[640.0, 86.87, 616.39, 82.11, 602.11, 91.63, 581.88, 107.1, 583.07, 123.76, 608.06, 176.12, 599.73, 185.64, 605.68, 208.25, 612.82, 218.96, 612.82, 239.19, 616.39, 240.38, 630.67, 241.57, 640.0, 249.9]], "area": 6418.990900000001, "iscrowd": 0, "image_id": 216510, "bbox": [581.88, 82.11, 58.12, 167.79], "category_id": 1, "id": 493058}, {"segmentation": [[356.33, 340.56, 367.48, 337.62, 365.13, 337.04, 362.2, 334.69, 372.75, 338.21, 366.89, 332.93, 361.61, 332.93, 371.0, 300.08, 375.1, 291.29, 378.62, 281.9, 382.73, 277.8, 386.25, 270.76, 389.18, 258.44, 389.18, 244.95, 389.18, 235.56, 389.18, 226.18, 389.18, 225.59, 385.07, 217.38, 383.31, 211.52, 378.62, 205.06, 376.86, 200.96, 373.34, 199.79, 375.69, 184.54, 373.34, 178.67, 363.96, 176.91, 363.37, 176.91, 357.5, 178.08, 353.99, 183.95, 353.4, 188.05, 353.4, 192.16, 353.99, 195.09, 344.01, 203.89, 338.15, 210.93, 334.63, 222.66, 332.28, 230.87, 328.18, 246.12, 327.0, 251.99, 334.04, 257.85, 336.98, 255.51, 336.39, 234.98, 341.67, 230.87, 353.4, 232.63, 352.23, 242.02, 352.23, 246.12, 348.71, 253.75, 348.71, 260.2, 348.12, 266.06, 348.12, 267.82, 350.47, 277.21, 352.23, 282.49, 347.53, 306.54, 344.01, 312.4, 342.25, 316.51, 342.25, 316.51, 339.91, 331.76, 344.6, 330.0, 346.36, 325.89, 347.53, 321.2, 352.23, 308.3, 353.99, 304.19, 357.5, 301.84, 359.26, 298.91, 349.71, 333.69, 349.71, 338.1, 355.83, 339.81]], "area": 5121.6138, "iscrowd": 0, "image_id": 111416, "bbox": [327.0, 176.91, 62.18, 163.65], "category_id": 1, "id": 500544}, {"segmentation": [[587.65, 502.03, 582.19, 503.1, 579.82, 501.55, 581.24, 500.72, 582.19, 499.78, 580.53, 497.28, 578.87, 486.02, 578.52, 484.71, 577.21, 483.17, 577.21, 474.63, 573.06, 472.73, 569.98, 476.05, 567.84, 473.56, 567.84, 468.94, 566.54, 462.3, 565.47, 460.87, 563.81, 461.11, 561.67, 459.92, 560.25, 458.62, 558.59, 456.36, 561.2, 452.81, 562.74, 451.5, 564.64, 451.98, 564.76, 452.69, 566.3, 456.01, 567.48, 456.36, 576.38, 455.53, 581.24, 458.74, 585.39, 464.79, 586.34, 470.95, 585.04, 474.16, 586.7, 489.34]], "area": 569.6828999999996, "iscrowd": 0, "image_id": 509826, "bbox": [558.59, 451.5, 29.06, 51.6], "category_id": 1, "id": 510885}, {"segmentation": [[73.02, 309.78, 63.88, 307.71, 59.72, 293.57, 53.9, 281.93, 54.73, 275.28, 46.0, 259.48, 31.87, 237.04, 31.87, 236.62, 30.2, 213.34, 28.54, 210.43, 26.05, 213.76, 19.81, 211.68, 12.74, 208.35, 13.58, 202.53, 21.47, 200.87, 28.96, 181.75, 37.69, 171.35, 41.84, 167.2, 43.51, 152.65, 50.16, 148.07, 56.81, 146.83, 63.46, 149.74, 65.54, 153.89, 65.54, 160.13, 65.54, 164.29, 61.38, 170.94, 68.03, 174.68, 71.36, 184.66, 70.94, 195.05, 70.94, 206.69, 77.6, 215.83, 77.6, 218.74, 73.02, 222.07, 71.36, 222.49, 80.51, 249.92, 83.0, 263.64, 80.09, 275.28, 73.02, 279.44, 78.43, 288.58, 79.67, 297.31, 76.76, 300.64, 69.28, 297.73, 74.69, 306.04]], "area": 5470.45875, "iscrowd": 0, "image_id": 280888, "bbox": [12.74, 146.83, 70.26, 162.95], "category_id": 1, "id": 511022}, {"segmentation": [[361.01, 313.26, 381.07, 306.57, 394.44, 280.79, 426.91, 247.36, 435.51, 237.81, 446.01, 211.07, 398.26, 214.89, 390.62, 209.16, 392.53, 203.43, 390.62, 203.43, 440.28, 197.7, 457.47, 185.28, 458.43, 171.91, 463.2, 163.31, 476.57, 163.31, 479.44, 187.19, 480.39, 192.92, 494.72, 203.43, 502.36, 236.85, 499.49, 274.1, 491.85, 268.37, 491.85, 236.85, 484.21, 221.57, 478.48, 265.51, 459.38, 289.38, 454.61, 282.7, 443.15, 302.75, 420.22, 321.85, 423.09, 321.85, 421.18, 330.45, 404.94, 330.45, 432.64, 288.43, 441.24, 272.19, 413.54, 284.61, 396.35, 310.39, 383.93, 318.03, 361.97, 319.94]], "area": 8264.023250000002, "iscrowd": 0, "image_id": 280888, "bbox": [361.01, 163.31, 141.35, 167.14], "category_id": 1, "id": 535011}, {"segmentation": [[640.0, 305.11, 601.58, 304.15, 559.36, 301.27, 543.05, 305.11, 534.42, 314.7, 528.66, 325.26, 522.91, 325.26, 526.74, 316.62, 529.62, 305.11, 529.62, 292.64, 527.7, 287.84, 522.91, 287.84, 517.15, 295.51, 516.19, 303.19, 514.27, 309.91, 513.31, 323.34, 498.92, 321.42, 487.41, 322.38, 476.85, 323.34, 467.26, 321.42, 452.86, 321.42, 442.31, 318.54, 436.55, 314.7, 439.43, 298.39, 446.15, 287.84, 458.62, 277.28, 469.18, 273.45, 475.89, 266.73, 480.69, 260.97, 484.53, 254.26, 479.73, 247.54, 473.97, 230.27, 473.97, 220.68, 479.73, 202.45, 484.53, 191.89, 496.04, 174.62, 520.03, 160.23, 537.3, 160.23, 544.97, 160.23, 568.0, 162.15, 594.86, 173.66, 602.54, 184.22, 604.46, 200.53, 608.3, 212.04, 612.14, 215.88, 611.18, 227.39, 610.22, 235.07, 614.05, 237.95, 623.65, 234.11, 632.28, 242.74, 637.08, 249.46, 638.04, 256.18]], "area": 21755.079700000002, "iscrowd": 0, "image_id": 216510, "bbox": [436.55, 160.23, 203.45, 165.03], "category_id": 1, "id": 547318}, {"segmentation": [[261.72, 246.6, 265.51, 238.39, 261.09, 231.44, 261.72, 224.49, 269.3, 218.81, 264.25, 215.65, 254.14, 209.96, 241.51, 208.07, 242.77, 194.18, 244.67, 170.18, 255.41, 165.12, 265.51, 163.86, 265.51, 156.91, 271.83, 149.96, 286.35, 144.28, 304.67, 142.39, 308.46, 143.65, 301.51, 163.23, 300.88, 179.02, 295.83, 201.12, 293.93, 215.65, 300.25, 228.91, 288.25, 229.54, 273.72, 235.23, 268.04, 242.18]], "area": 4001.4040999999993, "iscrowd": 0, "image_id": 216510, "bbox": [241.51, 142.39, 66.95, 104.21], "category_id": 1, "id": 547942}, {"segmentation": [[58.4, 307.0, 51.69, 289.77, 44.99, 268.71, 39.25, 251.48, 33.51, 235.2, 30.63, 216.06, 31.59, 207.44, 33.51, 149.05, 40.21, 122.24, 12.44, 79.16, 31.59, 50.44, 31.59, 41.83, 74.67, 7.37, 109.13, 1.62, 243.16, 1.62, 275.7, 23.64, 293.89, 52.36, 294.85, 92.57, 299.64, 115.54, 291.98, 127.99, 273.79, 142.35, 265.17, 147.13, 265.17, 158.62, 251.77, 171.06, 215.39, 195.95, 202.95, 206.49, 212.52, 228.5, 227.84, 242.86, 215.39, 275.41, 86.16, 274.45, 82.33, 308.92, 72.76, 304.13, 57.44, 304.13]], "area": 61918.78799999999, "iscrowd": 0, "image_id": 216510, "bbox": [12.44, 1.62, 287.2, 307.3], "category_id": 1, "id": 548045}, {"segmentation": [[376.06, 137.51, 378.64, 105.6, 384.26, 102.15, 379.94, 91.37, 385.98, 82.74, 396.33, 86.19, 398.48, 99.99, 410.13, 109.91, 411.43, 120.7, 404.52, 137.51, 400.64, 151.31, 384.26, 148.73, 379.94, 138.81]], "area": 1614.7825, "iscrowd": 0, "image_id": 319933, "bbox": [376.06, 82.74, 35.37, 68.57], "category_id": 1, "id": 551895}, {"segmentation": [[220.15, 274.56, 227.77, 241.21, 231.58, 226.91, 241.11, 215.47, 255.41, 212.62, 259.22, 212.62, 266.85, 216.43, 263.03, 224.05, 262.08, 225.96, 261.13, 231.68, 262.08, 240.25, 260.17, 245.02, 255.41, 250.74, 255.41, 255.5, 252.55, 261.22, 276.38, 233.58, 284.95, 231.68, 295.44, 231.68, 298.3, 231.68, 295.44, 220.24, 295.44, 212.62, 296.39, 203.09, 300.2, 193.56, 302.11, 185.93, 304.01, 178.31, 305.92, 166.87, 308.78, 156.39, 312.59, 146.86, 317.36, 138.28, 330.7, 130.66, 344.04, 124.94, 360.24, 116.36, 371.68, 115.41, 387.88, 118.27, 395.5, 122.08, 405.03, 125.89, 408.85, 128.75, 414.56, 141.14, 417.42, 153.53, 420.28, 171.64, 421.23, 194.51, 408.85, 211.66, 400.27, 226.91, 391.69, 231.68, 393.6, 245.02, 410.75, 271.7, 420.28, 286.95, 421.23, 298.39, 425.05, 316.49, 422.19, 322.21, 390.74, 322.21, 381.21, 326.98, 368.82, 331.74, 361.19, 327.93, 350.71, 310.78, 337.37, 275.51, 324.03, 274.56, 259.22, 277.42, 245.88, 276.47]], "area": 23521.53095, "iscrowd": 0, "image_id": 216510, "bbox": [220.15, 115.41, 204.9, 216.33], "category_id": 1, "id": 552547}, {"segmentation": [[2.63, 355.48, 34.74, 344.54, 62.76, 345.23, 81.89, 350.69, 81.89, 342.49, 88.72, 338.39, 102.39, 340.44, 116.05, 339.08, 130.4, 339.76, 133.82, 331.56, 128.35, 324.73, 97.61, 317.21, 103.07, 314.48, 105.8, 305.6, 96.92, 303.55, 91.46, 307.65, 78.47, 309.01, 65.49, 306.96, 53.87, 304.23, 52.51, 295.35, 48.41, 285.1, 44.31, 270.06, 38.84, 252.98, 33.38, 240.0, 29.28, 229.75, 25.86, 215.4, 25.86, 205.15, 28.59, 190.8, 31.33, 183.29, 34.74, 168.25, 32.69, 158.0, 32.69, 150.49, 38.16, 139.56, 38.84, 131.36, 38.16, 123.16, 36.79, 109.09, 29.96, 93.38, 21.76, 87.23, 9.46, 79.71, 0.58, 76.98]], "area": 12176.429850000002, "iscrowd": 0, "image_id": 216510, "bbox": [0.58, 76.98, 133.24, 278.5], "category_id": 1, "id": 552814}, {"segmentation": [[424.09, 184.02, 418.38, 154.48, 417.42, 147.81, 419.33, 142.09, 440.3, 147.81, 451.73, 159.25, 459.36, 167.82, 464.12, 180.21, 468.89, 190.7, 469.84, 198.32, 475.56, 206.9, 473.65, 221.19, 475.56, 235.49, 478.42, 244.07, 483.18, 250.74, 484.13, 252.64, 485.09, 258.36, 472.7, 269.8, 456.5, 277.42, 447.92, 290.76, 437.44, 309.82, 440.3, 320.31, 435.53, 322.21, 426.0, 320.31, 425.05, 306.01, 424.09, 298.39, 418.38, 287.9, 413.61, 279.33, 410.75, 271.7, 401.22, 257.41, 398.36, 252.64, 392.64, 240.25]], "area": 8733.47315, "iscrowd": 0, "image_id": 216510, "bbox": [392.64, 142.09, 92.45, 180.12], "category_id": 1, "id": 552846}, {"segmentation": [[414.63, 110.82, 417.83, 101.23, 424.62, 95.23, 422.62, 90.44, 421.03, 83.24, 423.02, 79.65, 427.42, 77.25, 432.62, 76.85, 436.21, 77.25, 438.21, 84.04, 437.01, 90.84, 441.81, 94.04, 448.21, 98.83, 445.41, 105.63, 443.81, 114.82, 443.01, 121.62, 437.01, 122.02, 436.61, 115.62, 414.63, 114.82]], "area": 883.86445, "iscrowd": 0, "image_id": 319933, "bbox": [414.63, 76.85, 33.58, 45.17], "category_id": 1, "id": 553026}, {"segmentation": [[0.3, 32.18, 0.02, 5.85, 0.0, 0.36, 45.83, 0.64, 49.67, 8.04, 50.77, 16.27, 50.22, 24.5, 49.67, 28.34, 32.94, 39.59, 31.84, 31.63, 29.1, 28.62, 24.16, 28.62, 20.59, 29.17, 15.93, 30.54, 15.11, 33.55, 10.72, 33.55, 7.15, 31.63, 6.33, 29.71, 2.49, 31.63, 0.84, 33.55]], "area": 1556.13865, "iscrowd": 0, "image_id": 216510, "bbox": [0.0, 0.36, 50.77, 39.23], "category_id": 1, "id": 553129}, {"segmentation": [[102.45, 322.4, 101.19, 322.4, 100.56, 316.12, 103.7, 310.47, 110.61, 308.58, 116.89, 310.47, 118.78, 315.49, 118.78, 321.77, 117.52, 328.05, 116.89, 329.94, 118.15, 333.08, 120.04, 338.73, 110.61, 341.87, 103.7, 343.76, 91.14, 346.9, 97.42, 333.71, 101.19, 326.8, 101.82, 323.03]], "area": 638.57675, "iscrowd": 0, "image_id": 564095, "bbox": [91.14, 308.58, 28.9, 38.32], "category_id": 1, "id": 558642}, {"segmentation": [[289.4, 178.16, 314.38, 178.16, 311.78, 185.45, 308.14, 189.09, 301.37, 194.3, 299.81, 195.34], [351.85, 184.41, 348.73, 189.61, 347.69, 194.82, 355.49, 192.22], [363.3, 177.64, 469.98, 172.44, 477.79, 195.86, 365.38, 197.42], [375.79, 215.63, 501.72, 211.99, 501.72, 216.67, 374.23, 221.88, 371.63, 215.11]], "area": 3375.6058, "iscrowd": 0, "image_id": 233042, "bbox": [289.4, 172.44, 212.32, 49.44], "category_id": 15, "id": 575531}, {"segmentation": [[409.57, 371.38, 306.64, 364.88, 297.97, 357.29, 301.22, 342.12, 309.89, 338.87, 391.15, 332.37, 421.49, 343.21, 422.57, 348.62, 417.16, 362.71]], "area": 3748.996149999999, "iscrowd": 0, "image_id": 149014, "bbox": [297.97, 332.37, 124.6, 39.01], "category_id": 36, "id": 616451}, {"segmentation": [[249.08, 382.1, 249.08, 382.1, 255.85, 372.74, 255.85, 372.74, 255.85, 367.58, 257.46, 365.97, 259.72, 369.84, 283.91, 356.94, 309.71, 340.49, 306.17, 333.72, 311.0, 328.56, 313.59, 333.07, 331.97, 328.23, 341.0, 332.11, 345.52, 339.85, 344.87, 346.94, 306.49, 369.52, 277.78, 388.55, 261.66, 395.0, 261.66, 395.0, 249.08, 401.45, 248.11, 393.71, 248.43, 381.45]], "area": 2588.0911499999984, "iscrowd": 0, "image_id": 64974, "bbox": [248.11, 328.23, 97.41, 73.22], "category_id": 41, "id": 637787}, {"segmentation": [[342.36, 560.23, 387.52, 554.92, 390.17, 565.01, 402.39, 561.82, 401.33, 556.51, 418.33, 551.2, 423.64, 542.7, 423.11, 539.51, 417.27, 535.26, 405.58, 538.45, 410.89, 546.42, 400.27, 554.92, 378.49, 544.29, 374.24, 534.73, 342.36, 542.7, 345.02, 553.85]], "area": 1146.4521000000004, "iscrowd": 0, "image_id": 509826, "bbox": [342.36, 534.73, 81.28, 30.28], "category_id": 41, "id": 638251}, {"segmentation": [[386.7, 344.71, 380.56, 342.73, 374.07, 338.39, 347.71, 316.01, 345.36, 314.75, 340.67, 313.66, 336.34, 311.5, 333.45, 308.61, 331.28, 304.82, 330.74, 302.83, 324.6, 298.32, 318.1, 288.65, 314.85, 285.04, 310.88, 281.61, 309.62, 280.34, 308.35, 280.53, 307.09, 281.25, 308.17, 282.69, 311.42, 287.57, 324.24, 305.62, 323.52, 307.78, 320.81, 309.59, 318.1, 307.24, 317.56, 305.62, 316.12, 303.81, 314.31, 303.45, 312.51, 303.27, 311.24, 304.53, 309.98, 306.16, 309.98, 307.96, 309.98, 309.95, 311.42, 311.58, 313.05, 312.84, 315.58, 312.66, 323.88, 320.42, 323.7, 321.87, 324.6, 324.03, 326.59, 326.02, 329.11, 326.74, 331.64, 325.66, 333.27, 323.31, 332.73, 320.42, 331.82, 318.8, 328.57, 317.89, 326.23, 315.73, 326.05, 312.48, 328.57, 310.13, 330.92, 310.85, 363.96, 334.68, 376.23, 346.0, 375.69, 348.53, 372.8, 349.43, 369.37, 348.89, 367.39, 346.54, 365.4, 345.46, 363.41, 347.08, 362.69, 349.43, 363.05, 351.41, 363.96, 353.22, 366.66, 353.94, 368.47, 352.68, 375.33, 358.27, 375.69, 361.34, 377.86, 363.69, 380.74, 364.23, 383.09, 362.43, 384.36, 359.36, 381.11, 355.57, 378.22, 354.84, 376.41, 355.02, 376.05, 353.04, 377.13, 351.77, 380.02, 349.25, 391.03, 358.45, 395.19, 360.98, 399.16, 361.88, 400.96, 361.34, 396.81, 358.27, 394.65, 354.84, 390.49, 353.04]], "area": 945.262600000002, "iscrowd": 0, "image_id": 365663, "bbox": [307.09, 280.34, 93.87, 83.89], "category_id": 41, "id": 639889}, {"segmentation": [[375.54, 214.41, 384.27, 222.27, 391.26, 227.51, 395.19, 228.82, 436.22, 251.52, 440.59, 253.71, 446.05, 255.89, 450.85, 256.32, 450.19, 257.63, 442.77, 256.98, 439.06, 255.45, 432.95, 252.83, 432.3, 254.14, 434.91, 256.54, 436.44, 259.16, 433.82, 262.87, 430.33, 263.09, 427.71, 260.69, 426.4, 257.42, 425.31, 255.89, 426.18, 253.71, 426.18, 250.87, 426.4, 249.78, 394.31, 231.22, 393.44, 231.66, 392.79, 235.59, 391.91, 237.12, 389.08, 238.86, 386.02, 236.9, 384.93, 236.02, 383.18, 234.5, 382.31, 231.66, 382.75, 229.04, 386.46, 228.82, 386.68, 227.08, 378.16, 220.31, 375.98, 217.91, 374.89, 215.94, 374.89, 214.63]], "area": 394.979500000001, "iscrowd": 0, "image_id": 432993, "bbox": [374.89, 214.41, 75.96, 48.68], "category_id": 41, "id": 642214}, {"segmentation": [[324.11, 500.67, 293.75, 450.38, 290.9, 397.24, 290.9, 396.29, 292.8, 392.5, 324.11, 408.63, 351.63, 426.66, 361.12, 444.69, 348.79, 461.77, 346.89, 473.15, 354.48, 473.15, 370.61, 469.36, 376.3, 464.61, 382.94, 457.97, 389.59, 457.02, 398.13, 451.33, 398.13, 446.58, 384.84, 432.35, 370.61, 423.81, 356.38, 407.68, 351.63, 402.94, 330.76, 378.27, 322.22, 373.52, 344.99, 361.19, 344.99, 349.8, 344.99, 348.85, 347.84, 347.9, 366.81, 354.54, 398.13, 380.16, 401.92, 394.4, 425.64, 452.28, 434.18, 490.23, 432.28, 513.95, 413.31, 532.93, 382.0, 533.88, 351.63, 526.29, 326.96, 503.52]], "area": 15261.239899999999, "iscrowd": 0, "image_id": 18358, "bbox": [290.9, 347.9, 143.28, 185.98], "category_id": 42, "id": 648452}, {"segmentation": [[67.76, 363.51, 64.12, 336.3, 59.74, 301.07, 132.14, 274.84, 184.86, 256.37, 180.0, 273.13, 195.55, 293.79, 218.87, 312.01, 227.38, 329.01, 179.03, 339.7], [203.08, 264.87, 214.99, 252.48, 220.09, 252.97, 222.52, 243.98, 308.28, 217.26, 374.84, 201.22, 401.08, 198.31, 422.46, 200.49, 439.71, 210.45, 449.19, 220.66, 449.67, 229.4, 447.0, 241.79, 438.5, 255.16, 418.57, 271.19, 388.94, 284.31, 341.07, 299.86, 292.97, 312.49, 245.11, 324.15, 244.87, 316.38, 256.53, 318.32, 256.29, 314.44, 247.05, 309.33, 236.61, 307.39, 213.77, 283.82]], "area": 28714.1518, "iscrowd": 0, "image_id": 409496, "bbox": [59.74, 198.31, 389.93, 165.2], "category_id": 42, "id": 648804}, {"segmentation": [[298.68, 230.71, 330.27, 211.56, 372.39, 201.99, 378.13, 217.31, 373.35, 224.97, 348.46, 227.84, 311.12, 241.24, 294.85, 241.24], [244.11, 284.32, 283.36, 262.3, 316.87, 249.86, 335.06, 245.07]], "area": 1836.7387499999984, "iscrowd": 0, "image_id": 514468, "bbox": [244.11, 201.99, 134.02, 82.33], "category_id": 42, "id": 648835}, {"segmentation": [[412.61, 321.96, 455.82, 297.54, 479.77, 287.68, 504.19, 277.81, 515.46, 281.57, 508.88, 302.7, 477.89, 361.4, 449.71, 396.63, 427.64, 410.24, 368.94, 454.86, 328.55, 479.28, 310.24, 488.2, 281.02, 501.66, 257.44, 501.66, 240.41, 497.07, 234.52, 474.8, 234.52, 466.29, 234.52, 455.15, 255.48, 408.65, 280.37, 414.54, 305.91, 404.72, 328.84, 385.07, 338.66, 367.39, 367.48, 349.7, 373.38, 345.77, 381.24, 381.14, 398.27, 385.73, 413.33, 369.35, 420.54, 359.53, 420.54, 341.19]], "area": 22153.919449999994, "iscrowd": 0, "image_id": 376449, "bbox": [234.52, 277.81, 280.94, 223.85], "category_id": 42, "id": 651660}, {"segmentation": [[204.03, 247.5, 207.38, 235.78, 204.45, 227.83, 200.68, 215.27, 199.84, 205.64, 196.07, 195.17, 180.17, 190.57, 163.84, 191.82, 157.14, 195.59, 159.23, 206.48, 166.35, 219.03, 181.84, 233.69, 200.26, 246.67], [211.56, 252.11, 214.49, 241.64, 212.82, 232.01, 209.89, 217.36, 206.54, 208.57, 206.12, 196.85, 218.68, 205.64, 238.36, 218.2, 260.13, 236.2, 267.24, 241.22, 255.94, 246.25, 243.38, 252.53, 222.87, 250.85]], "area": 3353.4048500000013, "iscrowd": 0, "image_id": 111416, "bbox": [157.14, 190.57, 110.1, 61.96], "category_id": 42, "id": 651781}, {"segmentation": [[300.08, 207.63, 314.2, 211.51, 330.25, 217.88, 336.9, 223.14, 332.74, 229.5, 332.19, 246.11, 316.69, 254.42, 305.62, 257.46, 301.74, 257.46, 305.34, 247.22, 302.57, 231.99, 300.91, 222.3, 297.59, 208.74, 297.86, 207.63], [341.05, 225.63, 349.35, 231.16, 348.8, 233.1, 336.07, 243.62, 338.0, 235.32, 339.39, 229.5, 339.39, 228.67], [290.11, 209.57, 292.88, 216.77, 293.71, 228.67, 299.25, 244.17, 297.03, 253.86, 295.65, 258.02, 293.71, 258.29, 281.53, 254.69, 274.33, 247.22, 270.46, 240.58, 268.8, 233.93, 269.9, 227.29, 271.29, 221.2, 276.0, 215.66, 280.42, 211.79]], "area": 2357.013450000001, "iscrowd": 0, "image_id": 111416, "bbox": [268.8, 207.63, 80.55, 50.66], "category_id": 42, "id": 652256}, {"segmentation": [[376.85, 218.54, 377.96, 226.84, 379.07, 239.58, 381.83, 250.93, 378.24, 263.66, 375.19, 263.94, 364.67, 232.93, 361.63, 217.71, 363.29, 206.08, 366.61, 205.25], [385.43, 234.87, 386.54, 253.14, 384.6, 267.54, 379.9, 271.13, 386.54, 279.16, 396.78, 288.57, 407.3, 289.96, 416.71, 287.19, 398.72, 258.68, 389.58, 239.3]], "area": 1461.915349999999, "iscrowd": 0, "image_id": 111416, "bbox": [361.63, 205.25, 55.08, 84.71], "category_id": 42, "id": 652353}, {"segmentation": [[287.96, 250.68, 293.05, 253.69, 295.82, 254.84, 292.35, 258.77, 289.81, 260.16, 292.82, 262.71, 294.9, 267.33, 291.66, 273.81, 285.65, 278.43, 280.1, 281.21, 273.62, 285.37, 266.22, 287.68, 259.74, 287.68, 255.58, 285.6, 251.88, 282.83, 251.88, 279.13, 253.73, 273.81, 257.66, 267.33, 261.36, 262.01, 264.6, 256.69, 269.23, 252.99, 273.62, 247.9, 281.25, 243.74, 283.56, 243.05, 283.56, 244.43, 279.4, 249.75, 275.01, 253.69, 270.15, 257.16, 267.61, 258.54, 266.22, 262.24, 268.3, 266.87, 271.54, 268.03, 278.01, 269.18, 283.33, 269.64, 281.25, 265.71, 278.48, 262.71, 277.09, 260.39, 278.25, 258.08, 281.25, 255.07, 285.18, 252.99]], "area": 952.3281499999997, "iscrowd": 0, "image_id": 132953, "bbox": [251.88, 243.05, 43.94, 44.63], "category_id": 42, "id": 652649}, {"segmentation": [[292.34, 253.63, 268.45, 252.19, 243.98, 250.17, 229.59, 243.84, 215.49, 234.34, 208.29, 223.98, 209.16, 219.38, 212.9, 217.36, 219.52, 216.21, 236.21, 217.07, 292.05, 210.74, 314.79, 208.44, 330.33, 209.88, 337.24, 233.77, 339.54, 241.83, 331.48, 250.75, 321.41, 250.75]], "area": 4504.198, "iscrowd": 0, "image_id": 193474, "bbox": [208.29, 208.44, 131.25, 45.19], "category_id": 42, "id": 652864}, {"segmentation": [[311.47, 280.94, 291.27, 275.27, 260.43, 266.76, 232.08, 260.73, 217.19, 258.96, 211.16, 258.61, 204.78, 264.63, 205.85, 272.43, 229.24, 290.15, 269.65, 303.98, 318.92, 305.4, 365.71, 308.23, 394.42, 311.07, 408.24, 307.88, 421.0, 304.33, 435.18, 302.21, 442.27, 304.69, 457.51, 307.52, 472.4, 306.1, 486.97, 303.42, 502.09, 305.37, 501.11, 303.91, 499.16, 302.69, 472.35, 301.72, 439.92, 300.5, 417.25, 298.79, 377.03, 292.7, 341.92, 286.12, 318.28, 282.46]], "area": 5243.23375, "iscrowd": 0, "image_id": 111644, "bbox": [204.78, 258.61, 297.31, 52.46], "category_id": 42, "id": 653593}, {"segmentation": [[105.13, 288.0, 168.92, 268.77, 189.02, 260.03, 242.33, 204.11, 246.7, 193.62, 242.33, 193.62, 192.52, 192.75, 159.31, 212.85, 167.18, 236.44, 181.16, 252.17, 176.79, 265.28, 166.3, 260.91, 151.45, 218.09, 147.95, 218.09, 105.13, 250.42, 90.28, 265.28, 93.77, 285.38]], "area": 6440.442400000002, "iscrowd": 0, "image_id": 564095, "bbox": [90.28, 192.75, 156.42, 95.25], "category_id": 42, "id": 654434}, {"segmentation": [[163.63, 193.51, 167.15, 191.75, 179.85, 188.93, 195.37, 188.93, 208.77, 190.34, 212.65, 192.46, 214.06, 198.1, 211.24, 253.47, 210.18, 255.58, 178.79, 258.4, 171.03, 256.99, 164.69, 255.58, 155.52, 249.59, 155.87, 233.01, 155.87, 211.85, 162.22, 206.21, 161.51, 196.69]], "area": 3645.157850000001, "iscrowd": 0, "image_id": 155591, "bbox": [155.52, 188.93, 58.54, 69.47], "category_id": 47, "id": 671004}, {"segmentation": [[437.13, 276.13, 434.93, 271.44, 437.28, 267.48, 445.04, 266.16, 452.81, 267.04, 456.91, 268.51, 459.4, 270.41, 458.23, 272.9, 457.5, 276.27, 456.76, 289.02, 456.47, 290.49, 438.89, 292.24, 438.45, 283.31]], "area": 487.77564999999987, "iscrowd": 0, "image_id": 443772, "bbox": [434.93, 266.16, 24.47, 26.08], "category_id": 47, "id": 674810}, {"segmentation": [[77.82, 237.14, 77.2, 229.38, 70.99, 226.27, 68.19, 221.93, 67.88, 218.51, 69.43, 216.03, 74.71, 214.16, 76.58, 214.16, 76.58, 211.37, 94.27, 210.75, 93.96, 211.37, 91.48, 212.61, 91.79, 218.2, 93.65, 223.48, 93.65, 232.79, 93.34, 236.83, 86.2, 237.45]], "area": 516.6906000000001, "iscrowd": 0, "image_id": 274671, "bbox": [67.88, 210.75, 26.39, 26.7], "category_id": 47, "id": 675869}, {"segmentation": [[93.04, 187.54, 93.23, 191.68, 85.71, 191.68, 84.39, 196.19, 85.89, 202.4, 95.11, 205.97, 95.11, 212.93, 111.09, 212.37, 113.16, 213.49, 117.86, 206.35, 117.11, 186.42, 107.33, 186.23]], "area": 705.5285000000002, "iscrowd": 0, "image_id": 274671, "bbox": [84.39, 186.23, 33.47, 27.26], "category_id": 47, "id": 679574}, {"segmentation": [[404.18, 245.54, 401.18, 230.68, 404.18, 228.24, 410.58, 227.3, 416.22, 227.86, 418.29, 229.74, 417.91, 232.75, 417.16, 244.97]], "area": 261.4828000000001, "iscrowd": 0, "image_id": 443772, "bbox": [401.18, 227.3, 17.11, 18.24], "category_id": 47, "id": 681550}, {"segmentation": [[359.04, 208.61, 361.11, 221.5, 366.21, 221.35, 369.23, 220.87, 370.35, 220.39, 371.46, 207.17, 369.87, 206.22, 368.12, 205.74, 364.93, 206.22, 362.86, 206.22, 360.79, 206.86, 358.72, 207.97]], "area": 163.2892499999997, "iscrowd": 0, "image_id": 443772, "bbox": [358.72, 205.74, 12.74, 15.76], "category_id": 47, "id": 682973}, {"segmentation": [[383.31, 174.54, 380.37, 174.72, 378.98, 171.43, 378.98, 170.74, 378.12, 169.35, 378.12, 167.97, 377.6, 166.07, 377.43, 164.68, 376.73, 163.3, 379.5, 162.43, 383.65, 162.09, 385.9, 162.26, 385.9, 167.45, 386.08, 170.91, 385.56, 174.54, 382.44, 174.72]], "area": 92.85559999999958, "iscrowd": 0, "image_id": 443772, "bbox": [376.73, 162.09, 9.35, 12.63], "category_id": 47, "id": 683159}, {"segmentation": [[94.05, 240.54, 94.05, 214.59, 115.68, 213.51, 115.68, 225.41, 112.43, 237.3, 110.27, 243.78]], "area": 569.4038500000003, "iscrowd": 0, "image_id": 274671, "bbox": [94.05, 213.51, 21.63, 30.27], "category_id": 47, "id": 684185}, {"segmentation": [[153.97, 234.12, 149.25, 231.29, 145.67, 226.58, 144.35, 215.27, 144.73, 204.33, 147.94, 198.86, 152.08, 193.2, 154.72, 191.51, 156.61, 190.75, 160.38, 190.94, 161.51, 186.79, 161.89, 184.53, 163.02, 183.78, 185.65, 182.08, 205.82, 184.15, 206.58, 186.98, 206.2, 188.11, 199.41, 190.56, 187.91, 189.43, 176.03, 189.43, 171.13, 190.38, 166.23, 192.26, 162.64, 193.96, 161.89, 196.6, 162.08, 200.94, 162.08, 205.46, 161.51, 206.97, 160.0, 207.16, 159.25, 205.65, 159.44, 199.24, 159.81, 196.79, 155.85, 198.67, 154.16, 202.82, 153.4, 209.42, 153.59, 217.15, 154.35, 224.88, 155.67, 228.65, 155.67, 233.74]], "area": 720.6457499999999, "iscrowd": 0, "image_id": 155591, "bbox": [144.35, 182.08, 62.23, 52.04], "category_id": 47, "id": 684227}, {"segmentation": [[61.23, 110.4, 67.13, 94.03, 63.2, 65.87, 59.92, 61.94, 59.27, 49.5, 60.58, 45.57, 63.2, 40.99, 86.77, 44.26, 97.9, 42.3, 104.45, 67.84, 101.18, 78.31, 104.45, 79.62, 94.63, 86.17, 88.08, 91.41, 74.33, 107.13, 71.71, 108.44, 64.51, 116.29, 64.51, 116.29]], "area": 2138.7127000000005, "iscrowd": 0, "image_id": 450129, "bbox": [59.27, 40.99, 45.18, 75.3], "category_id": 48, "id": 689036}, {"segmentation": [[437.46, 288.62, 439.54, 294.1, 439.98, 298.68, 442.05, 301.94, 447.23, 311.41, 455.37, 330.36, 453.15, 328.43, 445.75, 316.44, 439.09, 303.42, 437.76, 299.13, 436.87, 297.06, 434.95, 293.36, 436.58, 290.1]], "area": 125.3940000000008, "iscrowd": 0, "image_id": 443688, "bbox": [434.95, 288.62, 20.42, 41.74], "category_id": 49, "id": 693525}, {"segmentation": [[109.98, 388.99, 129.77, 388.99, 156.51, 395.95, 176.3, 392.74, 193.95, 391.13, 121.21, 375.09, 107.31, 377.23]], "area": 841.3585000000011, "iscrowd": 0, "image_id": 216510, "bbox": [107.31, 375.09, 86.64, 20.86], "category_id": 49, "id": 694721}, {"segmentation": [[470.29, 460.22, 418.52, 392.63, 320.72, 279.01, 271.82, 225.8, 261.75, 222.92, 169.71, 136.63, 128.0, 107.87, 84.85, 81.98, 70.47, 115.06, 70.47, 135.19, 116.49, 168.27, 174.02, 208.54, 175.46, 231.55, 189.84, 260.31, 286.2, 352.36, 373.93, 421.39, 432.9, 457.35, 473.17, 464.54, 461.66, 450.16]], "area": 31590.57425, "iscrowd": 0, "image_id": 241431, "bbox": [70.47, 81.98, 402.7, 382.56], "category_id": 49, "id": 695510}, {"segmentation": [[279.37, 3.24, 272.9, 17.26, 296.63, 85.21, 322.52, 142.38, 346.25, 171.51, 380.76, 217.89, 385.08, 238.38, 386.16, 267.51, 375.37, 279.37, 404.49, 316.04, 446.56, 307.42, 456.27, 278.29, 429.3, 261.03, 418.52, 225.44, 395.87, 177.98, 381.84, 160.72, 399.1, 144.54, 386.16, 119.73, 357.03, 77.66, 330.07, 38.83, 305.26, 17.26, 280.45, 3.24]], "area": 16160.8051, "iscrowd": 0, "image_id": 423618, "bbox": [272.9, 3.24, 183.37, 312.8], "category_id": 49, "id": 696697}, {"segmentation": [[208.96, 342.48, 201.47, 329.64, 199.86, 321.62, 202.54, 316.81, 205.75, 322.69, 208.96, 333.92, 211.63, 341.41]], "area": 117.0285499999999, "iscrowd": 0, "image_id": 443688, "bbox": [199.86, 316.81, 11.77, 25.67], "category_id": 49, "id": 696913}, {"segmentation": [[301.15, 227.31, 307.52, 209.56, 310.7, 196.83, 312.98, 186.36, 314.34, 179.08, 314.34, 174.08, 318.44, 173.17, 324.35, 181.81, 328.9, 196.83, 329.36, 204.11, 328.9, 210.02, 326.63, 217.3, 326.63, 222.76, 322.99, 229.13, 319.8, 237.77, 318.44, 240.96, 317.53, 243.69, 317.53, 243.69]], "area": 1113.5681000000009, "iscrowd": 0, "image_id": 495438, "bbox": [301.15, 173.17, 28.21, 70.52], "category_id": 49, "id": 697032}, {"segmentation": [[149.98, 235.09, 209.2, 235.09, 250.28, 225.53, 277.02, 208.34, 287.53, 187.32, 296.13, 164.4, 301.86, 142.43, 291.35, 114.72, 245.5, 79.38, 177.68, 66.01, 127.05, 73.65, 91.7, 78.42, 56.36, 102.3, 42.99, 127.14, 42.99, 145.29, 45.85, 160.58, 79.29, 218.85]], "area": 34798.93715, "iscrowd": 0, "image_id": 190391, "bbox": [42.99, 66.01, 258.87, 169.08], "category_id": 51, "id": 709888}, {"segmentation": [[443.4, 351.65, 451.85, 352.35, 464.53, 352.35, 472.62, 353.05, 481.07, 354.11, 491.28, 356.57, 495.51, 357.98, 496.91, 356.22, 507.48, 327.43, 511.7, 316.16, 516.28, 306.31, 519.45, 297.86, 524.37, 288.7, 527.89, 282.72, 530.36, 278.96, 530.71, 288.82, 528.25, 300.53, 526.13, 306.86, 522.26, 314.61, 518.39, 323.41, 510.64, 339.44, 505.72, 349.65, 501.84, 358.1, 502.55, 361.97, 508.88, 363.38, 514.87, 368.31, 519.45, 371.83, 521.56, 377.81, 519.45, 390.67, 517.33, 400.53, 512.76, 408.27, 506.77, 417.42, 498.68, 422.71, 490.93, 425.17, 483.89, 424.47, 479.31, 418.83, 475.79, 412.85, 471.57, 410.74, 466.99, 409.68, 461.36, 412.14, 458.89, 415.66, 456.08, 416.02, 453.26, 412.5, 448.33, 411.09, 444.11, 411.09, 440.59, 412.5, 436.36, 413.9, 433.2, 414.26, 430.73, 413.2, 430.73, 407.57, 429.32, 403.34, 427.56, 399.82, 419.11, 393.13, 414.89, 390.32, 413.83, 380.81, 413.48, 371.31, 414.54, 364.62, 420.17, 358.28, 429.32, 355.11, 436.01, 353.71, 441.64, 351.24]], "area": 6476.737549999995, "iscrowd": 0, "image_id": 216510, "bbox": [413.48, 278.96, 117.23, 146.21], "category_id": 51, "id": 711148}, {"segmentation": [[1.08, 108.94, 50.7, 142.38, 73.35, 153.17, 104.63, 154.25, 122.97, 154.25, 156.4, 132.67, 184.45, 118.65, 215.73, 110.02, 251.33, 96.0, 267.51, 53.93, 267.51, 18.34, 263.19, 3.24, 99.24, 4.31, 57.17, 4.31, 15.1, 0.0, 2.16, 33.44, 7.55, 102.47]], "area": 32524.96875, "iscrowd": 0, "image_id": 360902, "bbox": [1.08, 0.0, 266.43, 154.25], "category_id": 51, "id": 712211}, {"segmentation": [[538.5, 0.24, 539.3, 30.45, 548.84, 63.85, 556.0, 74.18, 575.48, 99.23, 621.99, 138.99, 634.71, 144.55, 638.69, 144.95, 640.0, 84.92, 638.69, 6.2, 639.09, 1.03]], "area": 10592.925900000006, "iscrowd": 0, "image_id": 450129, "bbox": [538.5, 0.24, 101.5, 144.71], "category_id": 51, "id": 713759}, {"segmentation": [[185.22, 14.68, 182.68, 27.63, 186.8, 42.03, 188.85, 58.48, 192.97, 72.88, 201.88, 103.74, 221.77, 160.65, 236.85, 214.82, 269.08, 274.47, 286.9, 290.92, 337.64, 306.01, 372.61, 286.12, 388.38, 244.3, 382.21, 218.93, 328.73, 149.68, 285.53, 94.82, 271.13, 71.51, 251.25, 47.51, 238.22, 34.49, 222.45, 21.46, 201.88, 11.17, 193.65, 9.12, 189.54, 11.17]], "area": 28873.48545, "iscrowd": 0, "image_id": 423618, "bbox": [182.68, 9.12, 205.7, 296.89], "category_id": 57, "id": 1061905}, {"segmentation": [[361.41, 415.62, 340.33, 465.32, 298.16, 468.33, 248.47, 448.75, 218.35, 418.64, 215.34, 391.53, 228.89, 361.41, 248.47, 316.24, 317.74, 376.47], [296.66, 254.49, 414.12, 109.93, 438.21, 54.21, 445.74, 45.18, 483.39, 40.66, 499.95, 49.69, 510.49, 60.24, 518.02, 87.34, 518.02, 100.89, 484.89, 141.55, 465.32, 188.24, 432.19, 233.41, 411.11, 269.55, 388.52, 305.69, 379.48, 346.35]], "area": 39617.03505, "iscrowd": 0, "image_id": 241431, "bbox": [215.34, 40.66, 302.68, 427.67], "category_id": 57, "id": 1064923}, {"segmentation": [[125.36, 237.18, 232.66, 251.86, 389.65, 275.58, 379.48, 301.55, 260.89, 301.55, 160.38, 281.22, 119.72, 266.54, 109.55, 240.56]], "area": 10282.257700000006, "iscrowd": 0, "image_id": 450129, "bbox": [109.55, 237.18, 280.1, 64.37], "category_id": 57, "id": 1065950}, {"segmentation": [[243.95, 329.79, 201.79, 328.28, 156.61, 347.86, 100.89, 349.36, 51.2, 399.06, 52.71, 447.25, 93.36, 460.8, 109.93, 459.29, 109.93, 483.39, 150.59, 516.52, 219.86, 501.46, 243.95, 462.31, 272.56, 463.81, 227.39, 424.66, 215.34, 388.52]], "area": 25305.447599999996, "iscrowd": 0, "image_id": 241431, "bbox": [51.2, 328.28, 221.36, 188.24], "category_id": 57, "id": 1065968}, {"segmentation": [[73.41, 285.74, 85.84, 273.32, 230.4, 304.94, 269.93, 313.98, 303.81, 313.98, 382.87, 329.79, 355.76, 343.34, 300.42, 335.44, 255.25, 342.21, 75.67, 304.94, 73.41, 286.87]], "area": 8397.173799999995, "iscrowd": 0, "image_id": 450129, "bbox": [73.41, 273.32, 309.46, 70.02], "category_id": 57, "id": 1066077}, {"segmentation": [[452.03, 430.84, 449.29, 395.19, 463.92, 363.19, 491.35, 354.05, 534.31, 360.45, 556.25, 387.88, 571.8, 439.99, 548.94, 481.13, 530.66, 488.44, 497.74, 492.1, 467.58, 461.93, 454.78, 431.76]], "area": 12576.258649999998, "iscrowd": 0, "image_id": 241431, "bbox": [449.29, 354.05, 122.51, 138.05], "category_id": 57, "id": 1066554}, {"segmentation": [[383.95, 348.09, 415.29, 341.68, 457.32, 350.23, 470.85, 360.91, 463.73, 368.04, 449.48, 393.68, 454.47, 439.98, 421.7, 391.54, 391.07, 360.2, 381.81, 348.09], [361.15, 410.78, 357.59, 427.16, 368.99, 448.53, 408.17, 461.35, 435.95, 455.65, 418.14, 445.68, 375.4, 420.75, 361.15, 410.78]], "area": 5049.087050000002, "iscrowd": 0, "image_id": 241431, "bbox": [357.59, 341.68, 113.26, 119.67], "category_id": 57, "id": 1066583}, {"segmentation": [[265.04, 572.39, 309.84, 583.36, 342.75, 574.22, 366.52, 562.33, 373.83, 539.48, 385.72, 513.88, 379.32, 492.85, 369.26, 479.14, 351.89, 465.43, 344.58, 465.43, 304.35, 468.17, 270.52, 453.54, 255.9, 472.74, 236.7, 511.14, 242.18, 534.91, 254.07, 557.76, 276.01, 572.39]], "area": 13911.77085, "iscrowd": 0, "image_id": 241431, "bbox": [236.7, 453.54, 149.02, 129.82], "category_id": 57, "id": 1066604}, {"segmentation": [[139.64, 178.98, 151.05, 128.92, 182.67, 82.37, 211.65, 56.9, 250.29, 43.73, 277.52, 46.37, 302.99, 77.1, 302.99, 90.28, 303.86, 100.81, 311.77, 91.15, 369.73, 88.52, 392.56, 108.72, 385.54, 152.63, 405.74, 145.6, 427.69, 152.63, 430.33, 185.12, 419.79, 222.01, 397.83, 245.72, 330.21, 293.15, 300.35, 302.81, 277.52, 311.59, 242.39, 303.68, 218.68, 293.15, 148.42, 250.11]], "area": 54289.86395, "iscrowd": 0, "image_id": 319704, "bbox": [139.64, 43.73, 290.69, 267.86], "category_id": 58, "id": 1067045}, {"segmentation": [[317.49, 143.67, 364.71, 136.64, 393.84, 166.78, 418.96, 152.72, 474.22, 171.8, 488.29, 112.53, 568.66, 135.64, 605.84, 274.28, 605.84, 416.95, 300.41, 417.96, 295.38, 381.79, 294.38, 284.33, 306.44, 164.77, 307.44, 152.72]], "area": 81881.30934999998, "iscrowd": 0, "image_id": 190391, "bbox": [294.38, 112.53, 311.46, 305.43], "category_id": 58, "id": 1068566}, {"segmentation": [[133.45, 222.38, 186.01, 203.42, 209.77, 195.33, 223.16, 208.22, 226.19, 215.8, 226.95, 228.19, 212.29, 238.3, 201.43, 243.1, 188.28, 246.38, 174.13, 244.87, 153.16, 244.87, 135.47, 251.69]], "area": 3293.058500000001, "iscrowd": 0, "image_id": 398727, "bbox": [133.45, 195.33, 93.5, 56.36], "category_id": 58, "id": 1069050}, {"segmentation": [[411.11, 222.49, 382.87, 206.68, 360.28, 185.22, 378.35, 159.25, 439.34, 197.65, 417.88, 229.27]], "area": 2600.4981500000004, "iscrowd": 0, "image_id": 398727, "bbox": [360.28, 159.25, 79.06, 70.02], "category_id": 58, "id": 1069446}, {"segmentation": [[473.95, 270.0, 458.12, 270.74, 443.75, 278.84, 431.23, 292.47, 422.02, 313.83, 419.44, 333.72, 419.08, 340.72, 436.39, 351.76, 447.44, 361.34, 465.85, 361.34, 474.32, 352.87, 486.84, 329.67, 500.84, 307.57, 503.79, 305.36, 502.31, 286.57, 492.74, 275.16, 485.0, 272.21, 470.64, 271.47]], "area": 5442.134899999999, "iscrowd": 0, "image_id": 398727, "bbox": [419.08, 270.0, 84.71, 91.34], "category_id": 58, "id": 1069933}, {"segmentation": [[414.8, 318.19, 414.49, 311.38, 431.22, 301.46, 450.73, 298.06, 470.25, 301.77, 458.17, 311.38, 458.17, 312.92, 480.16, 308.28, 485.43, 309.83, 485.74, 317.88, 469.94, 322.84, 433.08, 326.86, 418.52, 324.39]], "area": 1387.79325, "iscrowd": 0, "image_id": 443772, "bbox": [414.49, 298.06, 71.25, 28.8], "category_id": 59, "id": 1077268}, {"segmentation": [[424.67, 255.44, 413.48, 259.75, 411.73, 260.43, 411.39, 255.12, 411.39, 253.61, 415.12, 253.34, 421.62, 254.15, 425.09, 254.86], [398.13, 255.57, 397.95, 265.98, 386.48, 266.51, 384.08, 263.31, 385.86, 259.22, 387.64, 257.08, 389.86, 255.66, 392.26, 254.86, 394.04, 254.86, 396.71, 254.77, 398.04, 255.3], [412.94, 262.18, 428.58, 259.75, 436.26, 259.48, 435.99, 260.43, 432.08, 261.64, 413.48, 262.45]], "area": 219.73844999999952, "iscrowd": 0, "image_id": 443772, "bbox": [384.08, 253.34, 52.18, 13.17], "category_id": 59, "id": 1077648}, {"segmentation": [[349.64, 217.53, 348.09, 215.45, 349.0, 212.99, 352.11, 211.04, 356.27, 210.13, 358.74, 209.22, 359.52, 214.68, 354.06, 215.32, 351.07, 214.94, 350.81, 214.03, 349.0, 214.68], [371.6, 212.34, 382.12, 211.56, 377.06, 209.61, 373.16, 208.96, 370.95, 209.87]], "area": 66.93444999999997, "iscrowd": 0, "image_id": 443772, "bbox": [348.09, 208.96, 34.03, 8.57], "category_id": 59, "id": 1077763}, {"segmentation": [[374.96, 231.03, 371.79, 229.27, 371.09, 228.21, 374.61, 225.39, 381.66, 225.74, 391.88, 226.8, 396.46, 228.56, 388.71, 230.68]], "area": 99.68169999999996, "iscrowd": 0, "image_id": 443772, "bbox": [371.09, 225.39, 25.37, 5.64], "category_id": 59, "id": 1077933}, {"segmentation": [[202.16, 303.81, 215.72, 306.07, 220.24, 309.46, 227.01, 312.85, 222.49, 321.88, 216.85, 326.4, 192.0, 330.92, 177.32, 333.18, 175.06, 333.18, 164.89, 321.88, 164.89, 312.85, 178.45, 298.16]], "area": 1476.6955999999998, "iscrowd": 0, "image_id": 443772, "bbox": [164.89, 298.16, 62.12, 35.02], "category_id": 59, "id": 1077957}, {"segmentation": [[138.18, 536.17, 115.49, 538.7, 110.44, 541.53, 105.09, 544.37, 102.88, 547.52, 101.93, 550.36, 104.14, 553.19, 107.61, 556.98, 111.71, 561.7, 114.54, 564.86, 117.06, 568.95, 121.16, 572.74, 124.94, 574.94, 127.46, 574.94, 131.88, 574.31, 135.66, 575.26, 140.39, 574.94, 142.28, 573.37, 148.9, 570.84, 152.05, 570.53, 158.67, 569.9, 164.03, 568.01, 165.92, 562.65, 164.66, 558.87, 161.19, 551.3, 155.52, 544.37, 151.73, 539.64, 148.58, 537.12, 142.91, 539.33, 139.44, 536.49]], "area": 1777.8905500000005, "iscrowd": 0, "image_id": 144836, "bbox": [101.93, 536.17, 63.99, 39.09], "category_id": 60, "id": 1079212}, {"segmentation": [[271.02, 256.21, 277.37, 256.03, 286.26, 259.11, 285.9, 268.18, 278.64, 268.54, 265.58, 267.46, 260.87, 266.73, 259.05, 260.93, 259.78, 258.93, 264.68, 257.12, 271.57, 256.57]], "area": 282.59560000000016, "iscrowd": 0, "image_id": 319933, "bbox": [259.05, 256.03, 27.21, 12.51], "category_id": 60, "id": 1079381}, {"segmentation": [[35.6, 319.28, 50.7, 331.15, 75.51, 340.85, 108.94, 348.4, 141.3, 348.4, 184.45, 340.85, 201.71, 335.46, 210.34, 330.07, 210.34, 316.04, 204.94, 313.89, 212.49, 302.02, 213.57, 281.53, 206.02, 273.98, 193.08, 266.43, 169.35, 257.8, 128.36, 258.88, 113.26, 256.72, 84.13, 258.88, 53.93, 272.9, 48.54, 294.47, 37.75, 298.79, 35.6, 319.28]], "area": 13330.850899999998, "iscrowd": 0, "image_id": 274671, "bbox": [35.6, 256.72, 177.97, 91.68], "category_id": 60, "id": 1079587}, {"segmentation": [[109.05, 507.69, 105.01, 508.59, 101.42, 510.38, 96.48, 513.52, 83.46, 516.22, 74.49, 513.08, 70.9, 509.49, 68.65, 504.55, 68.65, 500.51, 74.49, 491.08, 77.18, 489.29, 97.38, 483.9, 99.17, 483.0, 102.31, 482.56, 109.5, 485.25, 116.23, 488.84, 122.96, 491.98, 123.41, 499.61, 116.68, 505.45, 110.39, 508.14]], "area": 1252.4483500000003, "iscrowd": 0, "image_id": 144836, "bbox": [68.65, 482.56, 54.76, 33.66], "category_id": 60, "id": 1079770}, {"segmentation": [[101.62, 258.92, 115.68, 242.7, 141.62, 249.19, 168.65, 247.03, 201.08, 247.03, 218.38, 255.68, 220.54, 267.57, 217.3, 282.7, 198.92, 271.89, 175.14, 263.24, 152.43, 261.08, 129.73, 261.08, 115.68, 256.76]], "area": 1956.6915999999997, "iscrowd": 0, "image_id": 274671, "bbox": [101.62, 242.7, 118.92, 40.0], "category_id": 60, "id": 1080320}, {"segmentation": [[566.29, 159.64, 590.02, 210.34, 596.49, 239.46, 595.42, 286.92, 587.87, 332.22, 570.61, 367.82, 532.85, 403.42, 470.29, 427.15, 379.69, 443.33, 358.11, 437.93, 319.28, 389.39, 275.06, 360.27, 209.26, 341.93, 159.64, 328.99, 143.46, 286.92, 141.3, 248.09, 151.01, 223.28, 170.43, 192.0, 196.31, 156.4, 227.6, 138.07, 253.48, 124.04, 281.53, 105.71, 307.42, 97.08, 340.85, 88.45, 340.85, 93.84, 345.17, 102.47, 369.98, 98.16, 386.16, 91.69, 406.65, 88.45, 429.3, 90.61, 459.51, 97.08, 472.45, 100.31, 503.73, 115.42, 520.99, 122.97, 545.8, 139.15, 561.98, 158.56]], "area": 118256.15064999998, "iscrowd": 0, "image_id": 49853, "bbox": [141.3, 88.45, 455.19, 354.88], "category_id": 60, "id": 1080469}, {"segmentation": [[269.65, 250.73, 289.35, 246.58, 297.64, 249.69, 301.27, 255.92, 296.61, 260.58, 283.13, 261.1, 273.28, 259.55, 267.57, 255.92, 270.17, 250.73]], "area": 353.9461000000001, "iscrowd": 0, "image_id": 319933, "bbox": [267.57, 246.58, 33.7, 14.52], "category_id": 60, "id": 1080770}, {"segmentation": [[118.48, 506.11, 85.93, 515.5, 84.05, 525.52, 95.32, 538.66, 109.09, 541.17, 119.74, 534.91, 139.77, 529.27, 147.91, 523.01, 140.39, 513.62, 131.63, 509.86, 131.0, 506.73]], "area": 1455.5151499999974, "iscrowd": 0, "image_id": 144836, "bbox": [84.05, 506.11, 63.86, 35.06], "category_id": 60, "id": 1080793}, {"segmentation": [[241.08, 273.51, 258.38, 264.86, 277.84, 260.54, 303.78, 265.95, 339.46, 275.68, 363.24, 297.3, 364.32, 320.0, 338.38, 331.89, 310.27, 339.46, 268.11, 339.46, 232.43, 327.57, 215.14, 317.84, 209.73, 294.05, 217.3, 277.84, 235.68, 271.35]], "area": 9247.865299999998, "iscrowd": 0, "image_id": 274671, "bbox": [209.73, 260.54, 154.59, 78.92], "category_id": 60, "id": 1081049}, {"segmentation": [[2.15, 296.48, 33.29, 300.77, 81.61, 286.82, 141.74, 261.04, 142.82, 244.94, 166.44, 195.54, 200.81, 151.51, 216.91, 139.7, 200.81, 108.56, 171.81, 79.57, 138.52, 68.83, 92.35, 63.46, 38.66, 65.61, 3.22, 70.98, 0.0, 295.41]], "area": 37661.0848, "iscrowd": 0, "image_id": 49853, "bbox": [0.0, 63.46, 216.91, 237.31], "category_id": 60, "id": 1081110}, {"segmentation": [[268.58, 110.02, 295.55, 102.47, 322.52, 92.76, 334.38, 91.69, 343.01, 90.61, 349.48, 101.39, 380.76, 94.92, 409.89, 88.45, 436.85, 91.69, 487.55, 107.87, 504.81, 115.42, 522.07, 106.79, 522.07, 79.82, 511.28, 55.01, 486.47, 33.44, 458.43, 16.18, 424.99, 6.47, 399.1, 4.31, 365.66, 0.0, 354.88, 2.16, 325.75, 10.79, 299.87, 26.97, 282.61, 39.91, 266.43, 59.33, 259.96, 74.43, 262.11, 92.76, 267.51, 106.79]], "area": 20294.7815, "iscrowd": 0, "image_id": 49853, "bbox": [259.96, 0.0, 262.11, 115.42], "category_id": 60, "id": 1081457}, {"segmentation": [[71.54, 60.65, 96.38, 20.36, 121.22, 6.56, 188.56, 0.49, 247.63, 0.0, 274.12, 26.43, 277.44, 46.3, 260.88, 71.7, 264.74, 89.91, 264.74, 111.44, 214.51, 135.18, 200.16, 109.23, 169.24, 78.87, 119.56, 65.62]], "area": 16078.402650000002, "iscrowd": 0, "image_id": 49853, "bbox": [71.54, 0.0, 205.9, 135.18], "category_id": 60, "id": 1081480}, {"segmentation": [[123.06, 278.06, 126.37, 275.03, 119.48, 270.62, 114.24, 269.79, 103.5, 269.52, 104.32, 273.65, 123.06, 278.33]], "area": 118.38309999999963, "iscrowd": 0, "image_id": 319933, "bbox": [103.5, 269.52, 22.87, 8.81], "category_id": 60, "id": 1082244}, {"segmentation": [[342.7, 423.24, 370.81, 455.68, 369.73, 463.24, 368.65, 472.97, 1.08, 469.73, 1.08, 350.81, 90.81, 334.59, 156.76, 332.43, 240.0, 348.65, 311.35, 380.0, 347.03, 424.32]], "area": 42301.97385000002, "iscrowd": 0, "image_id": 49853, "bbox": [1.08, 332.43, 369.73, 140.54], "category_id": 60, "id": 1082430}, {"segmentation": [[359.94, 283.15, 379.2, 270.31, 419.14, 268.89, 450.52, 267.46, 487.61, 270.31, 508.3, 283.15, 511.86, 299.56, 519.0, 310.97, 511.15, 318.81, 503.3, 328.8, 477.63, 335.93, 441.25, 338.07, 388.47, 335.93, 369.21, 328.8, 362.08, 316.67, 362.08, 290.28, 362.79, 283.15]], "area": 9470.066050000003, "iscrowd": 0, "image_id": 274671, "bbox": [359.94, 267.46, 159.06, 70.61], "category_id": 60, "id": 1082535}, {"segmentation": [[517.3, 305.87, 589.01, 308.28, 597.44, 299.84, 611.3, 287.19, 611.91, 285.38, 605.28, 282.97, 604.07, 269.11, 593.23, 260.07, 582.98, 256.46, 525.74, 261.88, 525.74, 261.88, 515.49, 286.59]], "area": 3983.2420500000003, "iscrowd": 0, "image_id": 274671, "bbox": [515.49, 256.46, 96.42, 51.82], "category_id": 60, "id": 1082928}, {"segmentation": [[114.38, 269.55, 114.93, 268.45, 115.59, 267.79, 115.92, 267.46, 117.57, 265.7, 118.13, 264.92, 119.01, 264.15, 120.99, 263.49, 122.53, 263.27, 125.83, 263.27, 128.7, 263.27, 130.9, 263.38, 133.65, 263.49, 137.06, 263.6, 140.04, 263.6, 141.25, 263.38, 143.23, 264.37, 143.89, 264.92, 144.55, 265.7, 144.77, 266.14, 144.77, 266.58, 143.23, 267.46, 141.91, 267.9, 141.14, 268.23, 139.82, 269.44, 139.16, 270.87, 138.72, 272.19, 138.83, 273.51, 138.94, 274.28, 138.94, 274.83, 138.5, 274.95, 134.75, 275.5, 130.79, 275.39, 128.37, 275.72, 127.49, 275.61, 126.49, 275.06]], "area": 265.30125000000004, "iscrowd": 0, "image_id": 319933, "bbox": [114.38, 263.27, 30.39, 12.45], "category_id": 60, "id": 1083038}, {"segmentation": [[169.22, 271.07, 157.84, 276.13, 145.7, 276.13, 138.87, 274.36, 139.37, 271.83, 141.9, 268.29, 144.68, 264.49, 154.8, 264.49, 162.65, 265.25, 167.96, 268.79]], "area": 271.4897499999997, "iscrowd": 0, "image_id": 319933, "bbox": [138.87, 264.49, 30.35, 11.64], "category_id": 60, "id": 1083198}, {"segmentation": [[178.77, 261.75, 173.78, 265.12, 170.92, 268.23, 170.54, 272.22, 168.8, 272.1, 163.31, 266.99, 155.95, 265.49, 148.72, 265.49, 148.59, 262.25, 149.72, 259.63, 152.71, 257.13, 158.94, 255.89, 166.68, 254.64, 174.16, 255.26, 176.4, 257.38]], "area": 309.0206500000006, "iscrowd": 0, "image_id": 319933, "bbox": [148.59, 254.64, 30.18, 17.58], "category_id": 60, "id": 1083342}, {"segmentation": [[170.55, 271.52, 173.09, 265.88, 179.82, 261.34, 190.36, 258.97, 198.18, 260.43, 201.45, 265.15, 201.09, 266.97, 193.81, 270.79, 193.09, 276.24, 192.0, 277.7, 181.45, 275.15, 171.82, 271.88]], "area": 358.5439999999999, "iscrowd": 0, "image_id": 319933, "bbox": [170.55, 258.97, 30.9, 18.73], "category_id": 60, "id": 1083367}, {"segmentation": [[219.13, 281.4, 194.78, 278.48, 191.86, 274.26, 198.35, 268.41, 206.15, 263.54, 220.76, 263.87, 224.33, 267.76, 225.3, 272.96, 224.98, 277.18, 223.35, 280.75]], "area": 452.90329999999955, "iscrowd": 0, "image_id": 319933, "bbox": [191.86, 263.54, 33.44, 17.86], "category_id": 60, "id": 1083458}, {"segmentation": [[197.08, 243.77, 198.82, 237.95, 213.35, 234.47, 224.39, 239.7, 224.39, 244.35, 219.16, 247.25]], "area": 237.7487000000001, "iscrowd": 0, "image_id": 319933, "bbox": [197.08, 234.47, 27.31, 12.78], "category_id": 60, "id": 1083688}, {"segmentation": [[377.19, 213.92, 374.7, 210.18, 374.38, 206.13, 376.25, 204.26, 379.06, 202.7, 385.28, 202.39, 389.02, 203.33, 392.14, 206.75, 391.2, 209.24, 387.46, 211.42, 380.61, 212.98]], "area": 146.5880499999999, "iscrowd": 0, "image_id": 319933, "bbox": [374.38, 202.39, 17.76, 11.53], "category_id": 60, "id": 1083694}, {"segmentation": [[398.49, 209.78, 397.97, 205.68, 403.62, 203.11, 413.36, 203.63, 419.01, 209.27, 417.47, 213.37, 412.34, 216.45, 403.62, 215.94]], "area": 211.0348499999997, "iscrowd": 0, "image_id": 319933, "bbox": [397.97, 203.11, 21.04, 13.34], "category_id": 60, "id": 1083704}, {"segmentation": [[399.56, 195.24, 398.89, 200.08, 406.9, 202.08, 413.25, 201.08, 415.92, 200.08, 418.09, 198.91, 419.42, 196.58, 419.42, 192.91, 418.75, 191.57, 418.75, 191.57, 415.25, 190.74, 412.74, 190.74, 410.24, 190.74, 407.9, 190.74, 402.73, 191.07, 400.56, 193.41, 399.06, 196.08, 399.23, 196.74]], "area": 191.73215000000025, "iscrowd": 0, "image_id": 319933, "bbox": [398.89, 190.74, 20.53, 11.34], "category_id": 60, "id": 1083723}, {"segmentation": [[336.34, 204.67, 413.12, 202.21, 458.4, 206.64, 494.83, 247.0, 508.12, 283.42, 512.55, 311.48, 491.87, 335.6, 411.15, 390.23, 344.21, 428.0, 318.12, 422.72, 301.39, 340.03, 320.09, 326.25, 342.73, 295.73, 329.45, 257.83, 318.12, 239.62, 328.46, 204.86]], "area": 32179.2773, "iscrowd": 0, "image_id": 495438, "bbox": [301.39, 202.21, 211.16, 225.79], "category_id": 61, "id": 1084291}, {"segmentation": [[97.64, 340.8, 120.62, 337.93, 128.28, 336.01, 129.24, 327.4, 107.22, 319.74, 100.52, 314.0, 105.3, 310.17, 85.2, 298.68, 95.73, 286.23, 101.47, 281.45, 113.92, 280.49, 132.11, 282.4, 165.61, 283.36, 192.42, 284.32, 218.27, 284.32, 244.11, 281.45, 295.81, 279.53, 327.4, 278.58, 336.01, 289.11, 341.76, 300.59, 344.63, 320.7, 347.5, 336.01, 347.5, 340.8, 295.81, 339.84, 267.09, 342.71, 237.41, 340.8, 205.82, 345.59, 170.4, 341.76, 149.34, 338.89, 116.79, 348.46, 96.69, 342.71]], "area": 14340.876649999998, "iscrowd": 0, "image_id": 216510, "bbox": [85.2, 278.58, 262.3, 69.88], "category_id": 61, "id": 1085767}, {"segmentation": [[96.0, 230.83, 96.0, 190.92, 99.24, 167.19, 104.63, 141.3, 112.18, 125.12, 118.65, 115.42, 131.6, 97.08, 140.22, 86.29, 156.4, 69.03, 166.11, 62.56, 187.69, 53.93, 201.71, 46.38, 230.83, 39.91, 235.15, 38.83, 248.09, 31.28, 295.55, 24.81, 304.18, 21.57, 328.99, 19.42, 394.79, 36.67, 421.75, 45.3, 447.64, 55.01, 462.74, 71.19, 511.28, 124.04, 518.83, 146.7, 524.22, 184.45, 525.3, 211.42, 531.78, 269.66, 532.85, 295.55, 517.75, 328.99, 490.79, 382.92, 472.45, 410.97, 447.64, 433.62, 430.38, 444.4, 393.71, 467.06, 350.56, 471.37, 302.02, 464.9, 273.98, 458.43, 222.2, 448.72, 210.34, 442.25, 167.19, 398.02, 151.01, 385.08, 138.07, 362.43, 127.28, 343.01, 108.94, 321.44, 98.16, 282.61, 98.16, 249.17, 100.31, 229.75, 100.31, 224.36]], "area": 156897.60090000002, "iscrowd": 0, "image_id": 274653, "bbox": [96.0, 19.42, 436.85, 451.95], "category_id": 61, "id": 1087773}, {"segmentation": [[402.94, 319.09, 409.37, 329.81, 411.52, 333.03, 416.34, 335.71, 420.1, 339.46, 426.53, 344.29, 431.89, 350.18, 437.25, 358.22, 442.61, 361.98, 447.97, 363.58, 455.47, 364.12, 463.52, 362.51, 474.77, 358.76, 485.49, 355.54, 497.82, 353.4, 506.4, 351.25, 514.44, 349.11, 521.94, 348.04, 532.13, 344.82, 538.03, 343.21, 545.53, 340.0, 547.14, 338.39, 544.99, 329.28, 539.63, 323.38, 535.35, 317.48, 531.06, 312.66, 524.62, 308.91, 517.66, 305.69, 512.83, 301.94, 504.79, 296.58, 495.68, 291.75, 481.21, 285.86, 463.52, 287.47, 445.29, 297.11, 434.57, 298.19, 426.53, 301.4, 419.56, 303.55, 413.66, 305.69, 401.33, 311.05, 400.8, 315.88, 402.41, 318.02]], "area": 7284.9711, "iscrowd": 0, "image_id": 443688, "bbox": [400.8, 285.86, 146.34, 78.26], "category_id": 61, "id": 1088856}, {"segmentation": [[217.29, 427.0, 189.08, 354.08, 306.04, 325.18, 334.93, 354.08, 356.26, 387.79, 220.04, 424.94]], "area": 10096.51215, "iscrowd": 0, "image_id": 443688, "bbox": [189.08, 325.18, 167.18, 101.82], "category_id": 61, "id": 1089218}, {"segmentation": [[497.19, 223.31, 384.27, 222.47, 304.21, 218.26, 298.31, 203.09, 333.71, 162.64, 338.76, 21.91, 500.0, 20.22, 498.88, 228.37]], "area": 34239.09285000001, "iscrowd": 0, "image_id": 155591, "bbox": [298.31, 20.22, 201.69, 208.15], "category_id": 73, "id": 1100007}, {"segmentation": [[203.09, 268.56, 203.09, 268.56, 237.64, 266.88, 289.04, 267.72, 326.12, 271.09, 382.58, 278.68, 478.65, 296.37, 499.72, 299.74, 499.72, 367.16, 450.0, 366.32, 405.34, 364.63, 355.62, 360.42, 315.17, 357.05, 150.0, 329.24, 203.09, 267.72]], "area": 25521.9204, "iscrowd": 0, "image_id": 155591, "bbox": [150.0, 266.88, 349.72, 100.28], "category_id": 76, "id": 1114922}, {"segmentation": [[152.89, 294.79, 140.16, 303.85, 130.89, 298.24, 131.32, 295.22, 126.36, 289.61, 130.46, 272.14, 139.95, 257.9, 151.38, 252.94, 156.55, 257.26, 153.53, 274.3]], "area": 1003.6347500000011, "iscrowd": 0, "image_id": 146253, "bbox": [126.36, 252.94, 30.19, 50.91], "category_id": 27, "id": 1166187}, {"segmentation": [[431.8, 396.74, 423.21, 392.45, 419.99, 380.64, 416.77, 368.83, 408.17, 361.31, 392.07, 355.94, 369.52, 311.91, 368.44, 303.32, 371.66, 297.95, 353.41, 282.92, 348.04, 266.81, 341.6, 258.22, 333.01, 255.0, 325.49, 272.18, 325.49, 275.4, 314.75, 278.62, 310.46, 285.07, 307.23, 296.88, 304.01, 308.69, 293.28, 310.84, 287.91, 318.36, 284.68, 321.58, 258.91, 329.09, 251.4, 335.54, 246.03, 346.28, 241.73, 374.19, 242.81, 390.3, 249.25, 398.89, 238.51, 409.63, 223.48, 428.96, 221.33, 448.29, 220.26, 469.77, 219.18, 480.0, 265.36, 479.43, 267.5, 469.77, 267.5, 460.1, 272.87, 449.36, 277.17, 447.21, 279.32, 457.95, 279.32, 472.99, 279.32, 479.43, 348.04, 475.13, 350.19, 466.54, 356.63, 454.73, 371.66, 436.48, 387.77, 420.37, 410.32, 407.48, 431.8, 398.89]], "area": 26538.841249999994, "iscrowd": 0, "image_id": 443772, "bbox": [219.18, 255.0, 212.62, 225.0], "category_id": 27, "id": 1168068}, {"segmentation": [[297.65, 243.59, 296.27, 277.01, 292.95, 273.42, 282.46, 272.04, 282.18, 257.12, 285.22, 247.73, 287.98, 241.65, 293.78, 241.65, 298.76, 243.59, 298.76, 245.24]], "area": 426.71454999999935, "iscrowd": 0, "image_id": 146253, "bbox": [282.18, 241.65, 16.58, 35.36], "category_id": 27, "id": 1168375}, {"segmentation": [[386.37, 237.76, 385.27, 235.29, 383.89, 233.09, 382.79, 231.16, 377.29, 231.16, 375.09, 232.26, 373.72, 234.19, 375.37, 235.29, 373.72, 237.21, 372.07, 240.79, 371.52, 244.91, 370.97, 246.84, 371.24, 249.59, 372.62, 252.61, 374.82, 257.01, 380.04, 258.66, 384.17, 257.29, 388.29, 253.16, 388.57, 247.94, 388.02, 244.36]], "area": 369.00530000000015, "iscrowd": 0, "image_id": 146253, "bbox": [370.97, 231.16, 17.6, 27.5], "category_id": 27, "id": 1168588}, {"segmentation": [[420.85, 224.72, 414.77, 220.97, 414.07, 219.8, 414.54, 216.76, 415.7, 214.66, 413.6, 207.64, 411.73, 206.47, 411.26, 205.07, 411.49, 204.14, 414.54, 203.43, 417.81, 202.26, 422.25, 207.64, 424.36, 211.85, 425.06, 216.53, 425.29, 219.8, 424.59, 221.91]], "area": 188.91080000000002, "iscrowd": 0, "image_id": 146253, "bbox": [411.26, 202.26, 14.03, 22.46], "category_id": 27, "id": 1169447}, {"segmentation": [[607.28, 472.45, 613.75, 462.74, 593.26, 463.82, 550.11, 457.35, 540.4, 402.34, 526.38, 387.24, 505.89, 376.45, 504.81, 360.27, 505.89, 339.78, 529.62, 327.91, 561.98, 324.67, 585.71, 330.07, 633.17, 352.72, 640.0, 377.53, 640.0, 473.53]], "area": 14424.5129, "iscrowd": 0, "image_id": 443772, "bbox": [504.81, 324.67, 135.19, 148.86], "category_id": 27, "id": 1169515}, {"segmentation": [[344.05, 204.95, 349.31, 217.28, 354.46, 216.68, 357.57, 214.89, 353.26, 205.19, 344.17, 201.12, 344.05, 203.88]], "area": 122.75189999999978, "iscrowd": 0, "image_id": 146253, "bbox": [344.05, 201.12, 13.52, 16.16], "category_id": 27, "id": 1169599}, {"segmentation": [[460.49, 217.32, 455.51, 218.02, 452.38, 225.9, 452.49, 242.23, 452.61, 243.74, 464.31, 243.16, 462.92, 233.66, 462.34, 225.43, 460.02, 217.79]], "area": 248.12859999999986, "iscrowd": 0, "image_id": 146253, "bbox": [452.38, 217.32, 11.93, 26.42], "category_id": 27, "id": 1171331}, {"segmentation": [[230.42, 253.19, 227.25, 247.75, 220.44, 246.38, 212.72, 255.01, 207.73, 266.36, 206.36, 277.71, 214.08, 283.61, 225.88, 282.25, 228.15, 262.73, 229.06, 253.19]], "area": 617.5294500000002, "iscrowd": 0, "image_id": 146253, "bbox": [206.36, 246.38, 24.06, 37.23], "category_id": 27, "id": 1171977}, {"segmentation": [[183.27, 634.54, 193.29, 575.84, 217.63, 601.61, 237.67, 611.63, 251.99, 613.06, 256.29, 598.75, 249.13, 584.43, 233.38, 561.52, 292.08, 551.5, 296.38, 544.34, 319.28, 544.34, 293.51, 488.5, 276.33, 462.73, 296.38, 444.12, 303.53, 406.89, 319.28, 358.21, 330.74, 342.46, 370.83, 345.32, 372.26, 361.07, 362.24, 429.8, 372.26, 464.16, 370.83, 509.98, 373.69, 540.04, 356.51, 635.97, 316.42, 638.84, 320.72, 623.09, 322.15, 587.29, 322.15, 575.84, 292.08, 590.16, 257.72, 590.16, 260.58, 618.79, 250.56, 620.22, 221.92, 610.2, 211.9, 618.79, 206.17, 635.97, 183.27, 637.4], [326.44, 240.81, 333.6, 259.42, 366.53, 266.58, 372.26, 275.17, 373.69, 295.21, 342.19, 280.89, 327.87, 275.17], [253.42, 389.71, 226.22, 375.39, 219.06, 349.62, 227.65, 336.73, 237.67, 323.85, 246.26, 352.48, 257.72, 373.96]], "area": 24186.420500000004, "iscrowd": 0, "image_id": 118406, "bbox": [183.27, 240.81, 190.42, 398.03], "category_id": 1, "id": 1202880}, {"segmentation": [[331.04, 299.83, 343.37, 310.27, 372.78, 315.96, 379.42, 311.21, 372.78, 297.94, 359.5, 259.04, 355.7, 241.02, 375.62, 246.71, 396.49, 246.71, 398.39, 257.15, 401.23, 281.81, 403.13, 317.85, 403.13, 342.52, 396.49, 341.57, 389.85, 333.98, 389.85, 346.31, 401.23, 367.18, 409.77, 372.87, 418.31, 375.72, 423.05, 352.0, 427.79, 303.63, 425.9, 279.91, 438.23, 243.87, 448.66, 230.59, 457.2, 206.87, 462.89, 187.9, 475.22, 186.01, 479.02, 214.46, 490.4, 225.85, 498.94, 238.18, 502.73, 239.13, 503.68, 249.56, 501.78, 259.04, 508.42, 268.53, 517.91, 268.53, 521.7, 259.04, 516.96, 248.61, 513.16, 226.79, 512.21, 212.57, 504.63, 195.49, 494.19, 163.24, 482.81, 145.22, 477.12, 131.94, 492.3, 125.3, 502.73, 126.25, 506.52, 112.02, 508.42, 99.69, 487.55, 87.36, 472.38, 90.2, 465.74, 102.53, 454.35, 106.33, 424.95, 94.95, 410.72, 89.25, 390.8, 78.82, 381.32, 79.77, 381.32, 96.84, 392.7, 110.12, 393.65, 116.76, 385.11, 119.61, 393.65, 125.3, 384.16, 130.04, 388.9, 139.53, 395.54, 132.89, 386.06, 148.06, 398.39, 137.63, 398.39, 149.01, 390.8, 174.62, 382.26, 189.8, 360.45, 196.44, 331.99, 212.57, 318.71, 217.31, 330.09, 252.4, 341.48, 281.81, 349.06, 291.3, 331.99, 294.14, 325.35, 299.83]], "area": 23884.0821, "iscrowd": 0, "image_id": 365663, "bbox": [318.71, 78.82, 202.99, 296.9], "category_id": 1, "id": 1203058}, {"segmentation": [[3.93, 38.49, 18.75, 46.96, 22.63, 63.89, 11.69, 80.83, 0.05, 77.3, 0.4, 39.19, 2.52, 38.84]], "area": 706.0862999999999, "iscrowd": 0, "image_id": 216510, "bbox": [0.05, 38.49, 22.58, 42.34], "category_id": 1, "id": 1203303}, {"segmentation": [[161.73, 251.15, 165.98, 244.06, 172.72, 243.0, 179.1, 249.73, 178.39, 255.76, 175.2, 260.37, 173.07, 264.27, 172.36, 273.48, 174.13, 283.41, 174.84, 287.31, 179.81, 291.56, 182.29, 287.66, 186.9, 293.69, 188.67, 298.3, 185.83, 301.49, 180.16, 303.97, 171.65, 303.97, 169.53, 308.22, 167.4, 311.77, 167.04, 323.47, 161.37, 338.71, 156.76, 349.34, 154.28, 354.66, 154.64, 363.17, 156.41, 369.55, 157.83, 374.87, 148.61, 375.93, 141.17, 377.35, 136.91, 377.35, 137.62, 371.32, 137.98, 364.59, 140.46, 351.12, 141.17, 347.22, 142.23, 337.65, 142.94, 325.59, 142.94, 322.05, 141.17, 310.35, 140.46, 305.74, 152.16, 292.27, 154.99, 272.06, 155.7, 260.01, 157.47, 252.21]], "area": 2885.187100000001, "iscrowd": 0, "image_id": 146253, "bbox": [136.91, 243.0, 51.76, 134.35], "category_id": 1, "id": 1208091}, {"segmentation": [[234.76, 251.34, 236.89, 246.02, 239.37, 241.06, 242.56, 238.93, 246.81, 239.28, 250.71, 242.47, 251.77, 245.66, 251.77, 247.79, 249.29, 255.23, 248.23, 256.3, 247.17, 263.74, 246.46, 271.9, 242.56, 282.18, 245.39, 288.2, 240.79, 292.46, 237.59, 292.46, 236.89, 305.57, 239.37, 311.95, 232.63, 328.26, 233.34, 338.89, 238.66, 343.5, 236.18, 345.98, 225.9, 347.76, 219.52, 349.53, 219.16, 335.7, 223.06, 310.18, 221.64, 297.77, 215.97, 285.72, 223.42, 268.35]], "area": 1925.21075, "iscrowd": 0, "image_id": 146253, "bbox": [215.97, 238.93, 35.8, 110.6], "category_id": 1, "id": 1219285}, {"segmentation": [[454.88, 264.41, 478.41, 266.93, 494.38, 269.45, 497.74, 257.68, 502.78, 265.25, 509.51, 258.52, 522.95, 259.36, 533.88, 254.32, 534.72, 224.9, 540.6, 213.14, 533.04, 212.3, 525.48, 222.38, 506.99, 214.82, 497.74, 208.94, 488.5, 197.17, 483.45, 182.04, 498.58, 151.79, 527.16, 139.18, 549.01, 150.1, 560.77, 175.32, 587.67, 182.88, 619.61, 213.98, 635.57, 265.25, 639.78, 300.54, 598.59, 287.1, 575.9, 294.66, 571.7, 328.28, 535.56, 333.32, 512.87, 351.81, 502.78, 329.96, 506.15, 318.19, 496.9, 310.63, 491.02, 302.23, 498.58, 299.7, 540.6, 286.26, 533.04, 283.74, 509.51, 287.1, 495.22, 293.82, 482.61, 292.98, 469.17, 284.58, 459.08, 284.58, 461.6, 275.33, 454.04, 263.56]], "area": 18675.229650000005, "iscrowd": 0, "image_id": 443772, "bbox": [454.04, 139.18, 185.74, 212.63], "category_id": 1, "id": 1219597}, {"segmentation": [[426.86, 392.96, 438.32, 383.41, 439.28, 367.18, 424.95, 359.54, 420.18, 371.0, 414.45, 378.64]], "area": 499.65599999999927, "iscrowd": 0, "image_id": 365663, "bbox": [414.45, 359.54, 24.83, 33.42], "category_id": 1, "id": 1220096}, {"segmentation": [[153.53, 354.07, 142.97, 305.14, 136.26, 297.46, 132.42, 194.79, 77.72, 230.29, 50.86, 226.45, 91.16, 188.07, 149.69, 132.42, 167.92, 129.54, 152.57, 92.12, 166.0, 71.97, 203.42, 70.05, 221.66, 112.27, 213.98, 133.38, 307.06, 186.15, 295.54, 197.67, 238.93, 192.87, 218.78, 213.02, 232.21, 266.76, 236.05, 319.53, 233.17, 369.43, 213.98, 374.22, 203.42, 379.98, 191.91, 415.49, 177.52, 411.65]], "area": 31270.331950000007, "iscrowd": 0, "image_id": 476412, "bbox": [50.86, 70.05, 256.2, 345.44], "category_id": 1, "id": 1231336}, {"segmentation": [[412.83, 79.9, 415.14, 77.15, 416.46, 72.63, 416.02, 70.1, 413.82, 69.22, 409.63, 66.14, 408.64, 71.42, 409.41, 77.04, 411.28, 77.48, 411.94, 78.58]], "area": 67.58024999999988, "iscrowd": 0, "image_id": 132953, "bbox": [408.64, 66.14, 7.82, 13.76], "category_id": 1, "id": 1234351}, {"segmentation": [[178.34, 142.89, 194.56, 124.64, 217.27, 117.75, 220.51, 115.32, 218.48, 111.26, 218.08, 101.53, 219.3, 93.42, 225.38, 87.75, 233.49, 85.31, 244.84, 92.61, 247.68, 105.59, 246.46, 112.89, 238.76, 125.86, 253.76, 139.65, 252.95, 162.35, 267.95, 208.58, 275.25, 213.04, 281.33, 217.5, 278.09, 225.61, 272.82, 227.23, 263.09, 224.39, 257.41, 206.95, 242.0, 176.14, 246.06, 207.77, 255.38, 230.47, 258.63, 242.48, 267.55, 251.4, 282.14, 263.57, 294.31, 279.79, 303.63, 287.49, 310.93, 300.43, 311.74, 311.34, 305.26, 312.15, 299.98, 312.15, 285.39, 288.63, 266.33, 272.01, 246.87, 258.63, 241.6, 248.08, 236.33, 241.6, 221.73, 227.4, 199.28, 248.59, 197.72, 254.84, 202.92, 276.69, 188.35, 278.25, 183.15, 252.23, 180.54, 235.58, 183.67, 222.05, 189.39, 208.52, 191.99, 184.58, 194.07, 162.21, 195.12, 151.8, 195.12, 151.8, 178.46, 160.13]], "area": 10906.795900000001, "iscrowd": 0, "image_id": 233042, "bbox": [178.34, 85.31, 133.4, 226.84], "category_id": 1, "id": 1238200}, {"segmentation": [[446.81, 252.14, 452.91, 212.78, 445.15, 209.45, 442.93, 198.36, 455.68, 191.15, 459.57, 188.93, 457.35, 172.3, 424.08, 138.47, 422.97, 130.16, 427.41, 112.97, 415.21, 99.66, 393.03, 99.11, 394.69, 107.42, 390.81, 121.28, 387.48, 124.61, 395.25, 140.14, 406.34, 146.24, 400.24, 160.1, 395.25, 187.27, 375.28, 189.49, 354.21, 177.29, 354.21, 188.38, 356.99, 199.47, 371.96, 198.91, 377.5, 202.79, 387.7, 210.41, 402.83, 210.41, 399.47, 226.38, 420.48, 228.9, 421.32, 234.78, 433.93, 247.39]], "area": 6801.191550000001, "iscrowd": 0, "image_id": 443772, "bbox": [354.21, 99.11, 105.36, 153.03], "category_id": 1, "id": 1240458}, {"segmentation": [[583.41, 261.96, 599.72, 231.25, 604.52, 206.3, 614.11, 179.44, 616.03, 164.08, 619.87, 147.77, 630.42, 119.94, 637.14, 107.47, 640.0, 95.96, 635.22, 213.98, 604.52, 265.8, 585.33, 278.27, 579.57, 266.76]], "area": 3562.7004500000035, "iscrowd": 0, "image_id": 443688, "bbox": [579.57, 95.96, 60.43, 182.31], "category_id": 1, "id": 1247447}, {"segmentation": [[300.59, 247.34, 296.53, 261.75, 295.42, 271.72, 290.99, 275.79, 292.1, 284.65, 294.68, 294.63, 292.83, 300.17, 291.73, 314.95, 294.31, 321.6, 292.47, 324.55, 305.4, 326.03, 314.26, 321.97, 310.94, 319.38, 310.94, 294.26, 307.61, 277.63, 307.61, 272.46, 314.63, 272.83, 320.76, 277.02, 324.65, 278.24, 325.87, 274.34, 325.63, 271.66, 317.59, 270.93, 315.64, 269.46, 316.61, 267.51, 310.27, 266.05, 309.06, 266.05, 309.3, 255.33, 308.57, 248.5, 312.22, 244.12, 312.22, 238.75, 308.81, 235.34, 305.89, 234.61, 301.99, 236.32, 300.53, 240.7, 300.04, 243.63]], "area": 1436.9314, "iscrowd": 0, "image_id": 146253, "bbox": [290.99, 234.61, 34.88, 91.42], "category_id": 1, "id": 1249564}, {"segmentation": [[353.74, 247.25, 354.18, 242.04, 345.06, 232.5, 348.97, 249.42, 342.46, 246.82, 341.59, 240.74, 340.29, 233.36, 341.16, 223.82, 340.72, 217.3, 332.91, 220.78, 324.23, 216.44, 335.95, 215.57, 339.85, 210.79, 334.65, 205.59, 335.08, 198.21, 341.59, 199.94, 351.14, 206.02, 355.05, 212.53, 352.44, 219.04, 351.14, 233.36, 358.08, 241.61, 356.78, 245.08]], "area": 609.9210499999995, "iscrowd": 0, "image_id": 146253, "bbox": [324.23, 198.21, 33.85, 51.21], "category_id": 1, "id": 1250352}, {"segmentation": [[349.28, 422.2, 360.79, 360.79, 360.79, 319.53, 364.63, 298.42, 363.67, 286.91, 364.63, 247.56, 364.63, 229.33, 364.63, 184.23, 344.48, 187.11, 344.48, 173.68, 345.44, 151.61, 356.95, 137.22, 341.6, 96.91, 367.51, 66.21, 371.35, 62.37, 411.65, 79.64, 411.65, 94.04, 409.73, 108.43, 422.2, 124.74, 496.09, 158.33, 537.35, 188.07, 532.55, 210.14, 527.75, 210.14, 503.76, 195.75, 447.15, 162.16, 447.15, 221.66, 440.43, 267.71, 431.8, 294.58, 417.4, 327.21, 479.78, 346.4, 495.13, 338.72, 508.56, 338.72, 512.4, 404.93, 496.09, 411.65, 475.94, 378.06, 400.13, 355.03, 388.62, 332.96, 382.86, 332.96, 379.02, 419.32], [329.13, 204.38, 280.19, 231.25, 259.08, 235.09, 253.32, 223.58, 260.04, 210.14, 284.99, 204.38, 326.25, 179.44]], "area": 31274.54174999999, "iscrowd": 0, "image_id": 476412, "bbox": [253.32, 62.37, 284.03, 359.83], "category_id": 1, "id": 1251616}, {"segmentation": [[591.37, 141.77, 592.14, 119.44, 581.37, 113.28, 592.14, 102.5, 606.0, 83.25, 615.24, 84.79, 615.24, 102.5, 620.63, 113.28, 617.55, 147.16, 619.86, 166.4, 617.55, 175.64, 608.31, 178.72, 603.69, 174.87, 590.6, 142.54]], "area": 2201.4338499999976, "iscrowd": 0, "image_id": 443772, "bbox": [581.37, 83.25, 39.26, 95.47], "category_id": 1, "id": 1256595}, {"segmentation": [[609.93, 283.43, 604.89, 292.36, 607.01, 294.47, 619.84, 294.15, 625.68, 293.17, 629.42, 287.65, 625.84, 277.42, 621.3, 276.28, 615.94, 266.05, 612.85, 258.09, 611.88, 254.03, 605.38, 246.89, 596.12, 240.72, 595.48, 232.69, 599.05, 227.98, 600.67, 224.9, 603.43, 223.76, 602.3, 219.38, 604.57, 200.54, 604.57, 192.74, 604.57, 189.82, 602.13, 179.26, 598.56, 164.32, 603.92, 161.86, 610.42, 156.83, 611.88, 152.44, 611.72, 145.78, 609.12, 141.72, 599.05, 126.62, 591.42, 117.53, 578.1, 110.87, 576.8, 106.64, 577.61, 102.91, 578.91, 93.65, 577.94, 86.67, 574.53, 80.82, 567.54, 78.22, 558.93, 78.71, 552.44, 84.72, 551.46, 92.68, 552.44, 103.07, 554.87, 108.92, 556.99, 112.49, 559.75, 114.28, 547.57, 122.4, 547.24, 145.78, 548.38, 150.98, 548.38, 157.15, 539.77, 176.64, 538.63, 180.72, 537.82, 184.78, 536.85, 187.38, 539.45, 192.9, 545.78, 193.72, 547.57, 187.54, 547.57, 180.72, 550.16, 174.23, 556.17, 167.41, 559.1, 177.8, 549.51, 194.53, 538.96, 210.77, 533.27, 225.71, 532.3, 228.14, 536.36, 235.78, 548.22, 238.38, 558.12, 237.4, 557.96, 240.0, 561.7, 242.76, 582.0, 242.44, 584.11, 247.31, 592.39, 257.54, 593.85, 259.81, 594.83, 264.2, 600.35, 271.02, 609.6, 280.93]], "area": 9229.746799999995, "iscrowd": 0, "image_id": 233042, "bbox": [532.3, 78.22, 97.12, 216.25], "category_id": 1, "id": 1259607}, {"segmentation": [[399.77, 68.15, 420.33, 76.13, 433.34, 91.65, 449.7, 135.28, 445.92, 135.7, 422.77, 129.61, 412.33, 123.36, 408.13, 114.3, 409.42, 109.27, 411.94, 96.26, 411.94, 84.94, 409.0, 81.16, 404.39, 76.13, 398.52, 73.19, 389.29, 66.06, 379.22, 62.28, 371.67, 61.86, 366.21, 65.22, 361.6, 66.9, 358.24, 54.31, 352.37, 45.92, 352.37, 41.73, 351.53, 27.46, 350.27, 23.69, 363.7, 6.91, 377.54, 4.81, 384.67, 6.07, 392.22, 9.42, 401.45, 19.49, 402.71, 35.43, 402.71, 40.47, 405.65, 43.82, 403.13, 52.63, 399.36, 58.09, 395.58, 58.09, 394.32, 62.7, 394.74, 67.32, 399.77, 68.99, 403.13, 71.09], [343.32, 83.94, 346.49, 79.61, 351.98, 77.59, 354.86, 77.3, 349.96, 84.23, 346.21, 90.57, 345.05, 93.46, 342.17, 88.26, 342.17, 83.07, 343.9, 80.19, 345.05, 80.19], [349.67, 119.71, 344.76, 118.56, 338.99, 119.71, 338.7, 117.98, 343.32, 116.83, 344.19, 112.21, 345.63, 108.75, 347.07, 109.33, 347.94, 111.92, 350.82, 115.1, 353.42, 118.56, 350.25, 119.71, 348.8, 119.43]], "area": 4315.675749999999, "iscrowd": 0, "image_id": 476412, "bbox": [338.7, 4.81, 111.0, 130.89], "category_id": 1, "id": 1259894}, {"segmentation": [[421.31, 71.16, 444.41, 114.05, 473.44, 96.89, 491.92, 127.25, 512.38, 123.95, 522.28, 116.69, 511.72, 104.15, 492.58, 92.27, 478.72, 62.58, 487.96, 54.0, 504.46, 35.52, 507.76, 12.42, 481.36, 0.54, 450.35, 1.86, 441.77, 28.26, 445.07, 36.18, 423.29, 50.04, 409.43, 71.16]], "area": 7105.678899999999, "iscrowd": 0, "image_id": 476412, "bbox": [409.43, 0.54, 112.85, 126.71], "category_id": 1, "id": 1260203}, {"segmentation": [[262.05, 193.79, 260.31, 201.49, 259.32, 215.76, 256.96, 221.97, 254.48, 225.32, 252.12, 227.05, 247.78, 224.7, 239.59, 215.64, 226.93, 203.47, 226.31, 200.37, 227.92, 198.13, 230.03, 194.41, 236.36, 184.11, 241.82, 182.49, 245.67, 181.75, 249.14, 179.76, 259.2, 169.09, 264.04, 165.12, 269.87, 163.75, 277.2, 169.46, 282.41, 176.79, 283.03, 179.02, 282.04, 181.25, 278.31, 184.48, 278.06, 190.07, 274.59, 190.44, 271.98, 194.91, 267.51, 193.91, 264.41, 190.56]], "area": 1688.0215, "iscrowd": 0, "image_id": 365663, "bbox": [226.31, 163.75, 56.72, 63.3], "category_id": 1, "id": 1264359}, {"segmentation": [[537.35, 221.66, 555.58, 224.53, 554.62, 232.21, 577.65, 231.25, 584.37, 202.47, 589.16, 164.08, 587.24, 136.26, 582.45, 128.58, 560.38, 129.54, 562.3, 118.02, 558.46, 103.63, 557.5, 94.04, 561.34, 91.16, 554.62, 83.48, 534.47, 79.64, 522.96, 94.04, 523.91, 110.35, 524.87, 123.78, 522.96, 138.42, 510.93, 158.05, 507.76, 163.74, 521.06, 173.87, 533.08, 182.74, 538.78, 188.43, 536.88, 204.89, 534.35, 213.76]], "area": 7453.595099999998, "iscrowd": 0, "image_id": 476412, "bbox": [507.76, 79.64, 81.4, 152.57], "category_id": 1, "id": 1265530}, {"segmentation": [[374.63, 304.54, 375.88, 292.39, 377.98, 279.0, 371.7, 264.76, 371.7, 255.55, 380.91, 250.11, 384.68, 250.11, 385.93, 245.93, 388.44, 238.81, 383.42, 234.2, 384.26, 229.6, 389.28, 227.09, 396.4, 230.44, 395.56, 238.81, 401.42, 248.86, 408.54, 258.48, 411.47, 264.35, 411.47, 265.18, 404.35, 265.18, 398.49, 260.16, 395.98, 256.81, 392.21, 249.69, 392.21, 261.42, 392.21, 272.3, 388.44, 284.02, 388.86, 294.91, 389.28, 300.35, 383.42, 303.28]], "area": 1230.9746499999992, "iscrowd": 0, "image_id": 146253, "bbox": [371.7, 227.09, 39.77, 77.45], "category_id": 1, "id": 1265702}, {"segmentation": [[306.34, 19.33, 308.42, 14.4, 314.3, 12.69, 320.17, 12.5, 323.01, 14.4, 324.53, 21.41, 324.53, 24.82, 325.29, 28.99, 323.39, 31.08, 322.63, 34.87, 325.86, 37.33, 329.27, 41.12, 331.73, 46.24, 333.82, 49.84, 340.45, 63.77, 341.02, 70.03, 341.02, 71.54, 338.36, 67.18, 336.66, 63.02, 334.38, 59.79, 331.73, 54.87, 330.03, 53.16, 326.05, 51.64, 321.69, 51.26, 318.65, 49.18, 318.65, 48.61, 318.28, 45.01, 318.65, 38.95, 318.84, 31.93, 318.84, 28.71, 317.9, 26.25, 314.3, 21.79, 310.69, 19.9, 307.09, 19.33], [299.69, 45.77, 298.18, 49.56, 295.9, 54.11, 288.32, 58.28, 286.24, 60.74, 282.07, 64.53, 281.69, 59.98, 284.15, 52.97, 285.86, 47.47, 288.13, 44.06, 290.79, 40.27, 294.77, 37.24, 296.47, 36.29, 296.28, 39.51, 296.28, 42.17, 297.42, 44.63, 298.37, 45.96]], "area": 688.1244000000002, "iscrowd": 0, "image_id": 443688, "bbox": [281.69, 12.5, 59.33, 59.04], "category_id": 1, "id": 1268493}, {"segmentation": [[290.27, 295.79, 296.58, 306.83, 295.0, 308.41, 295.79, 317.08, 294.21, 327.34, 296.58, 336.01, 296.58, 336.8, 293.42, 342.32, 282.38, 342.32, 273.7, 332.07, 269.76, 328.13, 267.39, 324.18, 261.08, 317.87, 257.14, 314.72, 246.88, 311.56, 234.26, 309.98, 220.85, 309.98, 212.18, 307.62, 205.08, 306.04, 195.61, 305.25, 185.36, 303.67, 177.47, 303.67, 172.74, 303.67, 168.01, 300.52, 161.7, 296.58, 158.54, 291.05, 155.39, 284.74, 149.87, 272.12, 143.56, 265.02, 133.3, 286.32, 138.82, 298.15, 141.98, 305.25, 143.56, 322.6, 143.56, 340.75, 141.98, 340.75, 134.09, 343.11, 123.05, 342.32, 115.95, 341.53, 111.22, 341.53, 109.64, 331.28, 110.43, 314.72, 107.27, 301.31, 105.69, 294.21, 101.75, 284.74, 100.96, 276.07, 104.12, 263.45, 106.48, 246.88, 107.27, 237.42, 108.85, 229.53, 113.58, 215.33, 119.89, 202.71, 123.84, 192.46, 124.62, 189.3, 118.31, 188.51, 119.1, 172.74, 118.31, 168.8, 118.31, 166.43, 108.85, 167.22, 99.38, 171.16, 99.38, 177.47, 92.29, 182.2, 78.09, 175.11, 83.61, 162.49, 84.4, 161.7, 117.53, 153.81, 118.31, 153.81, 113.58, 143.56, 107.27, 141.98, 102.54, 140.4, 99.38, 142.77, 90.71, 141.98, 86.76, 140.4, 84.4, 137.24, 82.82, 125.41, 90.71, 116.74, 115.16, 120.68, 115.16, 120.68, 113.58, 91.5, 120.68, 79.67, 122.26, 69.41, 123.05, 62.31, 118.31, 54.42, 116.74, 52.06, 113.58, 43.38, 112.0, 37.86, 112.79, 28.4, 115.16, 21.3, 118.31, 16.56, 123.05, 11.04, 131.72, 7.89, 142.77, 8.68, 159.33, 19.72, 159.33, 31.55, 156.18, 49.69, 153.02, 59.16, 159.33, 70.99, 167.22, 86.76, 172.74, 100.17, 181.42, 120.68, 182.99, 133.3, 175.11, 148.29, 175.11, 155.39, 175.11, 168.8, 179.05, 182.99, 181.42, 196.4, 182.2, 220.07, 183.78, 245.31, 184.57, 260.29, 187.73, 282.38, 193.25, 282.38, 213.76, 279.22, 224.01, 283.17, 237.42, 285.53, 257.93, 292.63, 268.97, 293.42, 279.22, 291.84]], "area": 23010.611499999995, "iscrowd": 0, "image_id": 233042, "bbox": [78.09, 7.89, 218.49, 335.22], "category_id": 1, "id": 1272812}, {"segmentation": [[452.51, 172.41, 452.51, 164.04, 454.23, 160.6, 456.45, 159.12, 457.68, 154.69, 458.42, 149.52, 459.89, 142.13, 462.6, 139.67, 468.26, 138.93, 471.22, 140.16, 473.19, 145.58, 474.42, 153.95, 479.59, 159.12, 483.28, 171.18, 477.86, 171.18, 474.66, 166.5, 469.0, 166.5, 468.02, 172.17, 460.63, 173.15]], "area": 633.6751999999996, "iscrowd": 0, "image_id": 233042, "bbox": [452.51, 138.93, 30.77, 34.22], "category_id": 1, "id": 1274710}, {"segmentation": [[54.81, 75.54, 52.46, 75.54, 50.53, 74.26, 49.04, 71.91, 47.97, 67.64, 50.32, 64.86, 55.66, 66.35, 57.59, 67.64, 62.93, 69.35, 67.21, 72.34, 72.34, 80.46, 68.71, 89.01, 64.64, 95.64, 62.72, 96.92, 58.23, 89.23, 51.6, 87.73, 45.62, 89.87, 43.69, 85.16, 47.54, 78.54]], "area": 506.86365, "iscrowd": 0, "image_id": 132953, "bbox": [43.69, 64.86, 28.65, 32.06], "category_id": 1, "id": 1276671}, {"segmentation": [[360.55, 190.33, 360.55, 188.86, 360.14, 187.4, 360.45, 186.04, 361.39, 184.67, 362.23, 183.84, 363.17, 183.21, 362.54, 182.37, 362.75, 180.59, 362.54, 179.13, 364.22, 178.71, 366.73, 178.81, 367.67, 179.96, 367.67, 181.22, 367.25, 181.64, 368.09, 182.37, 369.03, 184.67, 368.51, 190.96]], "area": 80.65669999999989, "iscrowd": 0, "image_id": 144836, "bbox": [360.14, 178.71, 8.89, 12.25], "category_id": 1, "id": 1276923}, {"segmentation": [[539.05, 144.37, 545.27, 117.66, 559.17, 109.98, 557.34, 99.37, 569.42, 84.0, 583.32, 88.39, 586.61, 98.27, 577.47, 110.34, 590.63, 119.85, 591.37, 148.39, 586.98, 153.15, 597.22, 170.34, 591.0, 184.97, 557.34, 176.19, 548.2, 174.0, 546.37, 153.51, 539.78, 145.83]], "area": 3702.508300000002, "iscrowd": 0, "image_id": 443772, "bbox": [539.05, 84.0, 58.17, 100.97], "category_id": 1, "id": 1278312}, {"segmentation": [[468.35, 151.87, 467.14, 153.91, 467.42, 155.48, 474.93, 158.45, 479.38, 164.01, 480.96, 167.72, 470.85, 169.11, 467.24, 171.33, 465.75, 180.7, 470.57, 186.08, 471.78, 192.29, 466.96, 192.01, 461.77, 190.62, 461.02, 187.65, 459.54, 182.83, 457.69, 178.75, 456.3, 175.23, 456.02, 171.43, 457.13, 169.2, 457.13, 165.59, 458.24, 162.16, 458.06, 158.63, 458.06, 156.97, 456.85, 157.06, 455.65, 158.45, 453.98, 159.28, 452.5, 158.36, 451.66, 155.57, 450.64, 152.98, 449.71, 150.75, 449.71, 149.27, 449.16, 145.1, 449.25, 141.48, 456.48, 137.68, 460.1, 137.13, 465.47, 139.63, 468.53, 144.82, 469.46, 148.71]], "area": 795.5433500000001, "iscrowd": 0, "image_id": 443772, "bbox": [449.16, 137.13, 31.8, 55.16], "category_id": 1, "id": 1280040}, {"segmentation": [[268.13, 133.03, 269.73, 130.29, 271.11, 129.14, 271.34, 127.77, 270.76, 126.51, 271.11, 125.94, 271.34, 123.99, 270.88, 120.9, 270.99, 119.19, 271.11, 118.27, 268.93, 116.78, 268.93, 116.78, 264.01, 115.53, 257.72, 115.98, 255.66, 117.01, 254.4, 124.22, 254.4, 124.22, 254.86, 126.74, 255.66, 127.65, 256.0, 127.65, 257.95, 127.77, 257.03, 129.71, 253.94, 131.77, 250.97, 134.86, 248.91, 138.98, 250.28, 144.36, 252.8, 147.11, 252.68, 148.02, 251.77, 149.39, 251.31, 149.74, 251.31, 149.97, 251.54, 153.97, 251.54, 153.97, 254.74, 151.91, 254.74, 151.91, 258.29, 148.59, 259.32, 143.79, 259.78, 140.24, 260.81, 137.72, 262.3, 136.58, 264.36, 135.78, 264.7, 135.78, 264.81, 135.78, 266.19, 135.21, 266.99, 134.63], [265.16, 140.47, 271.79, 143.9, 273.17, 145.62, 274.65, 146.65, 275.57, 152.03, 274.65, 154.09, 273.4, 156.72, 272.48, 157.63, 272.02, 159.24, 271.68, 165.99, 270.31, 167.36, 270.31, 167.47, 263.78, 166.67, 263.33, 166.67, 256.12, 166.44, 253.03, 166.44, 252.34, 166.67, 252.46, 166.1, 253.94, 163.93, 256.69, 160.84, 260.47, 154.43, 260.47, 154.43, 260.58, 153.86, 264.13, 149.05, 264.13, 148.48, 265.16, 145.73, 265.27, 143.56, 265.39, 140.7]], "area": 765.7725999999996, "iscrowd": 0, "image_id": 443772, "bbox": [248.91, 115.53, 26.66, 51.94], "category_id": 1, "id": 1281133}, {"segmentation": [[246.39, 105.59, 243.06, 100.6, 240.15, 95.61, 236.83, 89.38, 222.28, 90.21, 216.88, 92.29, 214.8, 100.19, 211.47, 105.59, 194.84, 103.09, 184.87, 103.93, 178.63, 110.99, 172.81, 126.79, 167.83, 134.69, 164.5, 138.01, 177.8, 154.22, 185.7, 162.12, 186.12, 166.28, 187.78, 169.19, 195.26, 165.03, 195.26, 160.04, 200.66, 154.22, 208.98, 145.49, 215.21, 137.18, 221.45, 131.36, 224.77, 126.79, 225.19, 125.13, 222.28, 123.46, 227.68, 122.22, 233.5, 119.72, 236.41, 115.56, 237.66, 114.32, 242.23, 110.99, 243.89, 108.5]], "area": 3028.926699999999, "iscrowd": 0, "image_id": 365663, "bbox": [164.5, 89.38, 81.89, 79.81], "category_id": 1, "id": 1282328}, {"segmentation": [[351.59, 189.36, 351.71, 186.52, 353.01, 184.98, 353.37, 182.61, 354.08, 180.01, 356.44, 181.9, 356.92, 184.15, 356.68, 185.33, 357.39, 185.81, 358.34, 187.82, 358.22, 189.59, 357.86, 190.3]], "area": 42.53765000000018, "iscrowd": 0, "image_id": 144836, "bbox": [351.59, 180.01, 6.75, 10.29], "category_id": 1, "id": 1283028}, {"segmentation": [[409.07, 256.57, 410.44, 254.75, 405.89, 242.92, 406.34, 233.82, 406.8, 227.0, 401.34, 225.63, 399.98, 222.45, 401.34, 220.17, 406.34, 216.99, 405.89, 210.16, 403.16, 204.25, 402.7, 200.15, 405.89, 198.33, 410.44, 203.34, 413.62, 206.07, 415.44, 216.53, 420.45, 226.54, 416.81, 237.92, 419.08, 256.11, 414.53, 258.84]], "area": 638.3536499999999, "iscrowd": 0, "image_id": 146253, "bbox": [399.98, 198.33, 20.47, 60.51], "category_id": 1, "id": 1283981}, {"segmentation": [[81.88, 55.92, 77.91, 53.4, 75.38, 49.24, 78.63, 45.81, 73.03, 45.81, 46.86, 18.56, 51.37, 13.86, 68.34, 0.86, 81.7, 1.23, 90.36, 1.59, 113.65, 0.5, 116.36, 8.27, 106.97, 19.1, 105.17, 28.85, 102.1, 34.8, 94.15, 43.11, 88.92, 50.15, 86.03, 53.58], [53.54, 31.19, 43.43, 21.08, 17.61, 47.98, 3.17, 60.44, 0.82, 64.41, 0.0, 79.03, 30.25, 50.15], [33.14, 27.04, 26.46, 28.66, 7.32, 49.61, 5.7, 52.31, 24.11, 38.77, 31.87, 29.93]], "area": 3111.2779499999997, "iscrowd": 0, "image_id": 365663, "bbox": [0.0, 0.5, 116.36, 78.53], "category_id": 1, "id": 1284359}, {"segmentation": [[456.67, 278.37, 462.16, 276.23, 460.94, 274.6, 460.53, 269.21, 461.04, 251.9, 463.49, 244.37, 464.4, 243.86, 462.87, 232.76, 469.39, 242.53, 473.05, 241.31, 462.16, 222.58, 459.21, 220.65, 458.4, 216.98, 455.95, 214.54, 452.49, 215.56, 451.47, 220.75, 444.25, 224.72, 441.9, 227.67, 438.95, 239.48, 442.21, 241.21, 443.63, 238.46, 444.55, 232.25, 446.89, 229.2, 448.62, 228.38, 447.71, 237.14, 448.11, 246.61, 450.05, 258.82, 448.62, 271.95, 452.29, 275.82, 454.83, 273.38]], "area": 909.54375, "iscrowd": 0, "image_id": 146253, "bbox": [438.95, 214.54, 34.1, 63.83], "category_id": 1, "id": 1285821}, {"segmentation": [[303.22, 190.95, 286.91, 170.8, 293.62, 142.97, 300.34, 131.46, 286.91, 95.96, 288.82, 73.89, 298.42, 63.33, 320.49, 62.37, 339.68, 71.01, 348.32, 80.6, 345.44, 120.9, 355.99, 121.86, 355.99, 141.05, 340.64, 155.45, 342.56, 187.11, 358.87, 203.42, 360.79, 217.82, 350.24, 221.66, 330.09, 208.22, 328.17, 181.36, 294.58, 197.67, 306.1, 189.03], [300.34, 220.7, 277.31, 275.39, 279.23, 284.99, 246.6, 380.94, 216.86, 376.14, 209.18, 379.98, 225.49, 405.89, 240.85, 421.24, 251.4, 421.24, 278.27, 368.47, 304.18, 309.93, 322.41, 296.5, 338.72, 345.44, 358.87, 365.59, 365.59, 268.67, 369.43, 207.26, 364.63, 184.23, 346.4, 187.11, 361.75, 205.34, 363.67, 218.78, 352.16, 224.53, 330.09, 210.14, 332.0, 201.51], [379.98, 353.11, 403.97, 352.16, 408.77, 385.74, 405.89, 417.4, 393.42, 421.24, 379.98, 391.5]], "area": 21883.127799999995, "iscrowd": 0, "image_id": 476412, "bbox": [209.18, 62.37, 199.59, 358.87], "category_id": 1, "id": 1287138}, {"segmentation": [[344.19, 259.41, 338.97, 238.89, 344.94, 213.52, 346.05, 209.79, 354.26, 220.24, 356.87, 233.67, 367.69, 257.55, 382.25, 255.68, 374.04, 234.42, 373.29, 220.24, 375.16, 213.9, 370.68, 198.6, 362.1, 180.69, 364.71, 168.38, 356.5, 150.84, 356.5, 141.51, 344.94, 133.3, 333.37, 148.6, 333.37, 149.72, 328.89, 157.56, 322.55, 161.29, 306.51, 182.93, 304.64, 193.0, 303.89, 194.87, 301.65, 211.66, 311.36, 223.97, 319.56, 225.09, 327.4, 228.82, 327.4, 242.63, 327.4, 251.58, 327.4, 260.53, 346.43, 265.01]], "area": 5371.266000000002, "iscrowd": 0, "image_id": 233042, "bbox": [301.65, 133.3, 80.6, 131.71], "category_id": 1, "id": 1289793}, {"segmentation": [[491.76, 161.82, 481.09, 161.11, 478.95, 160.4, 478.24, 153.99, 475.4, 150.43, 473.26, 148.3, 473.97, 141.89, 475.4, 129.8, 472.55, 125.53, 478.24, 113.43, 496.74, 107.74, 508.84, 109.16, 514.54, 115.56, 518.09, 124.81, 520.94, 134.07, 521.65, 138.34]], "area": 1912.2068499999998, "iscrowd": 0, "image_id": 443772, "bbox": [472.55, 107.74, 49.1, 54.08], "category_id": 1, "id": 1290609}, {"segmentation": [[405.18, 172.96, 409.83, 165.7, 414.48, 162.79, 411.87, 156.39, 411.87, 152.61, 415.06, 142.73, 419.42, 140.7, 428.44, 144.77, 429.89, 150.29, 428.15, 156.68, 425.24, 160.75, 421.75, 163.08, 420.01, 165.99, 418.55, 168.31, 415.35, 172.38, 407.8, 172.67]], "area": 399.85409999999996, "iscrowd": 0, "image_id": 233042, "bbox": [405.18, 140.7, 24.71, 32.26], "category_id": 1, "id": 1291342}, {"segmentation": [[53.24, 176.19, 52.33, 173.7, 48.26, 171.44, 49.39, 164.64, 51.2, 159.66, 50.52, 155.81, 52.11, 150.6, 50.75, 146.75, 44.41, 145.16, 38.74, 144.48, 31.95, 146.07, 29.0, 151.05, 29.23, 161.02, 31.27, 164.87, 31.95, 168.95, 24.93, 170.08, 19.04, 174.16, 21.07, 176.87, 22.66, 182.31, 25.38, 198.17, 26.28, 200.88, 29.0, 203.38, 30.59, 201.56, 33.08, 202.92, 36.02, 207.68, 37.61, 211.08, 35.57, 216.51, 39.2, 222.18, 43.05, 227.16, 41.23, 242.56, 50.52, 275.63, 51.43, 278.35, 71.59, 277.9, 88.8, 277.9, 82.01, 270.2, 79.74, 263.4, 79.06, 249.13, 76.34, 237.35, 76.8, 230.33, 76.12, 225.12, 74.08, 221.5, 70.91, 218.78, 64.79, 197.26, 53.69, 182.08]], "area": 4197.7836, "iscrowd": 0, "image_id": 233042, "bbox": [19.04, 144.48, 69.76, 133.87], "category_id": 1, "id": 1293840}, {"segmentation": [[441.15, 362.07, 454.49, 365.88, 461.16, 353.49, 468.78, 353.49, 476.4, 361.11, 470.69, 374.45, 461.16, 374.45, 461.16, 380.17, 447.82, 389.7, 437.34, 394.46, 434.48, 391.6, 433.53, 387.79, 440.2, 378.27, 442.1, 372.55]], "area": 816.9497999999993, "iscrowd": 0, "image_id": 365663, "bbox": [433.53, 353.49, 42.87, 40.97], "category_id": 1, "id": 1294058}, {"segmentation": [[217.82, 180.4, 213.98, 156.41, 210.14, 140.09, 210.14, 123.78, 212.06, 109.39, 213.02, 104.59, 202.47, 92.12, 185.19, 93.08, 178.48, 88.28, 190.95, 80.6, 212.06, 69.09, 225.49, 61.41, 228.37, 59.49, 226.45, 49.9, 235.09, 36.46, 252.36, 36.46, 255.24, 56.61, 258.12, 71.97, 263.88, 77.72, 256.2, 98.83, 256.2, 132.42, 254.28, 146.81]], "area": 5715.3323, "iscrowd": 0, "image_id": 443688, "bbox": [178.48, 36.46, 85.4, 143.94], "category_id": 1, "id": 1295521}, {"segmentation": [[75.66, 145.17, 70.24, 145.17, 61.56, 149.51, 62.64, 163.61, 57.22, 174.46, 51.8, 176.63, 65.9, 204.29, 74.03, 224.9, 79.45, 231.95, 76.74, 240.08, 81.62, 263.4, 85.42, 275.33, 101.69, 278.59, 101.15, 272.62, 104.4, 266.66, 108.2, 246.05, 108.2, 227.07, 108.2, 218.39, 102.23, 209.17, 98.44, 192.36, 90.84, 178.8, 82.17, 173.92, 80.54, 167.95, 82.17, 157.65, 81.08, 151.68, 78.91, 145.72]], "area": 3770.3692, "iscrowd": 0, "image_id": 233042, "bbox": [51.8, 145.17, 56.4, 133.42], "category_id": 1, "id": 1298138}, {"segmentation": [[424.69, 61.03, 424.69, 60.14, 423.86, 57.72, 424.04, 55.48, 425.51, 52.59, 425.87, 50.46, 427.34, 50.88, 428.05, 52.47, 428.29, 56.13, 427.93, 58.37, 427.93, 58.96, 427.88, 59.55, 426.75, 60.85, 426.28, 61.32]], "area": 34.114250000000006, "iscrowd": 0, "image_id": 132953, "bbox": [423.86, 50.46, 4.43, 10.86], "category_id": 1, "id": 1301050}, {"segmentation": [[226.89, 178.12, 227.6, 190.93, 224.76, 193.07, 223.33, 201.61, 194.16, 218.68, 181.35, 210.14, 179.21, 205.16, 179.92, 190.93, 197.72, 156.77, 212.66, 146.81, 221.2, 129.73, 229.74, 125.46, 240.41, 129.02, 246.11, 135.42, 240.41, 150.37, 238.28, 152.5, 274.57, 180.97, 283.11, 180.26, 288.81, 184.53, 287.38, 193.78, 276.71, 190.22, 256.07, 190.93]], "area": 4273.860200000001, "iscrowd": 0, "image_id": 443772, "bbox": [179.21, 125.46, 109.6, 93.22], "category_id": 1, "id": 1303829}, {"segmentation": [[145.34, 303.95, 144.72, 323.16, 139.46, 337.71, 133.26, 355.06, 131.09, 361.26, 133.26, 391.61, 133.57, 395.33, 131.09, 397.81, 142.56, 447.55, 145.34, 467.68, 144.1, 479.76, 140.39, 479.76, 76.66, 479.76, 73.56, 467.06, 69.23, 454.98, 55.6, 438.26, 41.97, 427.72, 35.15, 425.87, 36.08, 415.64, 26.48, 410.69, 17.5, 409.14, 3.87, 408.21, 0.0, 406.66, 0.46, 220.98, 9.13, 204.25, 19.97, 192.48, 31.13, 181.64, 38.87, 172.34, 52.5, 158.94, 59.0, 156.77, 61.17, 152.43, 58.07, 148.09, 54.67, 141.28, 54.36, 133.53, 57.76, 126.41, 63.34, 111.03, 73.25, 103.6, 80.38, 100.19, 94.01, 98.02, 106.09, 100.19, 120.65, 106.7, 127.77, 113.82, 133.66, 118.78, 133.66, 123.73, 133.66, 129.0, 137.99, 131.17, 134.28, 135.19, 134.28, 136.83, 135.51, 140.24, 132.73, 140.24, 132.11, 143.96, 125.29, 142.1, 124.98, 147.36, 127.77, 150.15, 125.91, 153.25, 123.74, 155.11, 122.5, 163.16, 120.96, 168.12, 120.65, 171.53, 114.14, 176.17, 111.04, 177.72, 123.12, 196.28, 130.25, 210.84, 132.73, 224.78, 134.28, 231.6, 136.44, 235.31, 138.61, 238.1, 139.85, 239.96, 142.64, 256.47, 149.76, 260.49, 166.49, 264.83, 174.85, 263.28, 178.26, 267.0, 184.77, 271.03, 185.7, 275.67, 186.93, 281.87, 185.08, 282.49, 182.91, 275.36, 176.71, 274.74, 173.31, 275.36, 171.45, 276.91, 173.62, 282.18, 175.78, 284.66, 177.33, 288.68, 176.71, 292.71, 173.92, 291.47, 171.76, 288.06, 169.28, 285.59, 168.66, 284.97, 166.8, 290.23, 163.39, 291.47, 158.44, 293.02]], "area": 43208.92335000002, "iscrowd": 0, "image_id": 443772, "bbox": [0.0, 98.02, 186.93, 381.74], "category_id": 1, "id": 1310497}, {"segmentation": [[423.52, 136.36, 423.67, 129.46, 427.05, 125.2, 432.19, 124.76, 436.89, 129.31, 435.12, 130.49, 435.27, 136.51, 430.28, 140.48, 428.66, 140.48, 435.12, 143.56, 441.73, 144.88, 449.37, 145.76, 447.17, 151.78, 436.3, 150.17, 428.66, 142.68, 425.28, 139.59, 423.82, 135.63]], "area": 263.6284999999997, "iscrowd": 0, "image_id": 443772, "bbox": [423.52, 124.76, 25.85, 27.02], "category_id": 1, "id": 1320545}, {"segmentation": [[334.08, 175.61, 331.91, 174.06, 328.51, 172.51, 326.34, 170.65, 325.72, 168.18, 325.72, 165.39, 328.82, 164.77, 331.6, 163.53, 335.94, 160.12, 341.52, 153.62, 344.61, 149.9, 346.47, 141.85, 348.33, 137.51, 346.47, 132.24, 350.81, 127.91, 355.15, 121.71, 358.86, 122.64, 365.37, 123.88, 366.92, 125.12, 374.66, 142.47, 382.41, 148.35, 385.81, 154.55, 387.36, 158.88, 386.12, 160.74, 383.03, 157.34, 380.24, 154.86, 378.07, 152.69, 376.21, 154.55, 377.76, 158.26, 372.8, 156.1, 367.54, 157.34, 364.75, 161.98, 365.37, 164.77, 369.09, 167.25, 374.66, 169.11, 378.07, 170.04, 377.76, 174.99, 381.79, 179.02, 384.88, 184.9, 382.1, 189.86, 374.97, 188.31, 360.72, 179.64, 355.77, 177.47, 353.6, 179.33, 353.29, 183.66, 352.98, 189.24, 353.6, 195.13, 352.36, 198.53, 350.81, 193.89, 349.57, 189.86, 349.26, 184.9, 347.4, 183.05, 343.69, 181.5, 343.38, 178.4, 344.31, 175.3, 348.95, 175.3, 348.95, 174.68, 347.71, 172.2, 347.09, 169.73, 342.76, 168.49, 338.11, 168.8, 334.39, 173.75]], "area": 1997.3186000000007, "iscrowd": 0, "image_id": 443772, "bbox": [325.72, 121.71, 61.64, 76.82], "category_id": 1, "id": 1322491}, {"segmentation": [[319.28, 174.02, 460.22, 175.46, 499.06, 237.3, 329.35, 247.37, 356.67, 232.99, 349.48, 220.04, 332.22, 220.04, 325.03, 201.35, 319.28, 179.78], [360.99, 267.51, 506.25, 261.75, 509.12, 287.64, 371.06, 293.39, 360.99, 271.82, 349.48, 264.63], [402.7, 317.84, 499.06, 320.72, 494.74, 352.36, 481.8, 365.3, 441.53, 363.87, 424.27, 362.43, 404.13, 319.28]], "area": 17310.548000000003, "iscrowd": 0, "image_id": 118406, "bbox": [319.28, 174.02, 189.84, 191.28], "category_id": 3, "id": 1338958}, {"segmentation": [[404.58, 511.0, 405.43, 502.08, 408.62, 501.02, 482.93, 501.02, 483.77, 494.65, 504.37, 493.37, 530.27, 491.46, 529.21, 496.13, 527.72, 502.08, 528.79, 505.69, 529.21, 507.6, 533.46, 510.78, 480.17, 511.84]], "area": 1647.3959, "iscrowd": 0, "image_id": 509826, "bbox": [404.58, 491.46, 128.88, 20.38], "category_id": 15, "id": 1394793}, {"segmentation": [[247.64, 495.16, 191.34, 489.22, 188.54, 503.21, 182.94, 502.86, 182.24, 490.62, 178.75, 489.92, 182.59, 482.92, 260.93, 492.36, 258.83, 496.56, 251.14, 495.86, 250.44, 508.45, 244.49, 508.8, 244.14, 502.16]], "area": 569.5410500000005, "iscrowd": 0, "image_id": 509826, "bbox": [178.75, 482.92, 82.18, 25.88], "category_id": 15, "id": 1395263}, {"segmentation": [[486.49, 384.86, 512.43, 381.62, 536.22, 396.76, 550.27, 472.43, 350.27, 473.51, 380.54, 428.11, 429.19, 398.92]], "area": 13069.0441, "iscrowd": 0, "image_id": 443772, "bbox": [350.27, 381.62, 200.0, 91.89], "category_id": 27, "id": 1419160}, {"segmentation": [[607.73, 105.57, 599.26, 122.18, 595.97, 133.78, 593.03, 140.7, 591.81, 143.12, 588.18, 154.02, 588.7, 158.87, 593.89, 165.45, 597.35, 170.64, 599.6, 179.12, 603.58, 185.0, 606.7, 182.75, 609.12, 179.81, 611.89, 173.75, 613.1, 168.56, 613.44, 160.25, 611.89, 154.37, 607.91, 146.41, 607.39, 143.81, 607.04, 140.87, 606.18, 121.84, 605.31, 117.34, 612.75, 104.53, 614.31, 103.67, 614.31, 103.15, 613.1, 102.46, 611.37, 102.98, 611.37, 102.98, 608.6, 105.05, 608.6, 105.05, 608.6, 105.05]], "area": 1007.283399999999, "iscrowd": 0, "image_id": 443772, "bbox": [588.18, 102.46, 26.13, 82.54], "category_id": 27, "id": 1422020}, {"segmentation": [[553.39, 112.56, 557.85, 124.89, 560.73, 132.23, 564.93, 139.05, 570.44, 151.38, 572.8, 155.05, 575.42, 157.15, 585.39, 158.2, 589.32, 158.99, 593.26, 162.4, 595.36, 167.91, 596.67, 174.99, 596.67, 178.13, 596.4, 181.28, 589.85, 183.64, 583.03, 184.17, 579.09, 182.86, 570.7, 178.66, 569.91, 176.56, 569.13, 172.1, 568.86, 167.64, 568.08, 160.56, 566.24, 156.1, 552.34, 125.41, 550.24, 116.76, 549.98, 112.56]], "area": 895.7055999999984, "iscrowd": 0, "image_id": 443772, "bbox": [549.98, 112.56, 46.69, 71.61], "category_id": 31, "id": 1435269}, {"segmentation": [[402.59, 296.83, 402.76, 293.66, 404.7, 295.42, 405.05, 296.83, 401.88, 298.24, 400.12, 298.94, 400.12, 298.94], [396.6, 288.38, 398.54, 285.92, 399.07, 287.5, 397.13, 288.91, 396.6, 289.09]], "area": 10.945799999999984, "iscrowd": 0, "image_id": 146253, "bbox": [396.6, 285.92, 8.45, 13.02], "category_id": 35, "id": 1451152}, {"segmentation": [[312.4, 322.19, 322.91, 315.65, 324.6, 315.65, 326.14, 317.27, 326.36, 318.96, 326.07, 319.69, 312.18, 323.29], [292.76, 325.87, 285.12, 327.95, 284.56, 330.59, 289.08, 330.77, 298.23, 327.95, 302.19, 326.44, 303.7, 325.49, 301.25, 325.21, 298.42, 324.55, 291.91, 325.4]], "area": 103.38410000000016, "iscrowd": 0, "image_id": 146253, "bbox": [284.56, 315.65, 41.8, 15.12], "category_id": 35, "id": 1454911}, {"segmentation": [[264.21, 333.35, 265.94, 336.39, 264.55, 337.17, 257.44, 338.56, 257.44, 337.6, 257.62, 336.3, 259.09, 335.0, 261.34, 333.87], [219.19, 350.29, 214.5, 352.45, 202.97, 357.22, 205.31, 355.14, 209.39, 351.67, 211.64, 349.94, 211.99, 348.55, 211.99, 345.26, 212.85, 342.92, 213.98, 342.83, 216.5, 344.3, 219.53, 345.78, 220.05, 349.77]], "area": 104.85720000000016, "iscrowd": 0, "image_id": 146253, "bbox": [202.97, 333.35, 62.97, 23.87], "category_id": 35, "id": 1454996}, {"segmentation": [[304.58, 241.46, 311.53, 240.87, 348.24, 227.57, 363.32, 225.99, 354.19, 233.33, 349.03, 233.92, 337.32, 235.71, 321.05, 239.88, 315.1, 243.05], [236.2, 286.99, 255.08, 272.83, 264.3, 270.81, 286.33, 257.32, 286.78, 256.42, 290.38, 254.62, 296.22, 252.82, 316.23, 249.45, 283.41, 262.94]], "area": 450.7778500000009, "iscrowd": 0, "image_id": 514468, "bbox": [236.2, 225.99, 127.12, 61.0], "category_id": 42, "id": 1478259}, {"segmentation": [[267.46, 219.17, 272.45, 219.55, 272.07, 225.7, 281.67, 229.16, 283.59, 230.31, 290.89, 223.78, 293.96, 181.15, 291.27, 176.92, 287.82, 173.47, 288.2, 160.02, 291.27, 160.41, 290.89, 152.34, 275.14, 150.42, 273.61, 151.19, 273.61, 156.95, 274.76, 158.87, 273.61, 172.31, 270.53, 174.62, 268.23, 181.53, 266.69, 209.57, 267.46, 210.72, 267.46, 219.55]], "area": 1616.2191999999989, "iscrowd": 0, "image_id": 155591, "bbox": [266.69, 150.42, 27.27, 79.89], "category_id": 44, "id": 1484771}, {"segmentation": [[75.94, 144.39, 76.48, 181.35, 72.73, 190.46, 80.23, 259.56, 86.66, 262.77, 83.98, 270.81, 121.48, 265.99, 120.94, 257.42, 131.12, 188.85, 120.94, 175.46, 126.3, 142.25, 121.48, 140.64, 79.16, 138.5]], "area": 6191.173100000001, "iscrowd": 0, "image_id": 155591, "bbox": [72.73, 138.5, 58.39, 132.31], "category_id": 44, "id": 1487716}, {"segmentation": [[456.53, 212.94, 456.53, 212.94, 456.53, 199.09, 457.73, 197.88, 457.13, 195.27, 459.54, 194.87, 460.54, 195.07, 460.54, 196.88, 463.36, 199.49, 463.76, 213.75, 456.93, 213.75, 456.93, 213.75]], "area": 118.39510000000045, "iscrowd": 0, "image_id": 233042, "bbox": [456.53, 194.87, 7.23, 18.88], "category_id": 44, "id": 1490940}, {"segmentation": [[111.48, 0.2, 107.34, 4.33, 105.37, 11.42, 106.36, 19.89, 111.48, 28.55, 129.99, 38.0, 152.24, 40.76, 169.76, 40.17, 191.62, 34.26, 206.98, 24.42, 215.44, 16.34, 219.38, 6.11, 218.4, 1.77, 217.22, 0.0]], "area": 3781.03015, "iscrowd": 0, "image_id": 450129, "bbox": [105.37, 0.0, 114.01, 40.76], "category_id": 46, "id": 1497351}, {"segmentation": [[243.21, 334.29, 234.47, 336.47, 224.41, 334.73, 219.16, 333.41, 216.1, 329.48, 215.66, 327.73, 217.85, 324.23, 220.47, 321.61, 229.22, 318.98, 230.53, 287.49, 226.16, 284.87, 218.29, 272.63, 215.66, 263.88, 216.97, 240.7, 220.47, 238.08, 238.4, 236.33, 254.58, 242.01, 253.71, 266.07, 245.84, 281.37, 241.03, 286.18, 239.71, 320.29, 245.84, 325.98, 251.52, 329.04]], "area": 2374.4064500000004, "iscrowd": 0, "image_id": 171181, "bbox": [215.66, 236.33, 38.92, 100.14], "category_id": 46, "id": 1498840}, {"segmentation": [[198.42, 321.91, 212.42, 314.37, 214.57, 280.99, 204.34, 270.76, 196.81, 261.61, 195.19, 240.61, 198.42, 227.15, 234.5, 228.23, 236.65, 237.92, 223.73, 238.46, 214.04, 256.76, 223.19, 280.99, 219.42, 282.61, 219.96, 314.37, 225.88, 321.37, 211.88, 327.3, 209.19, 329.45]], "area": 1635.35445, "iscrowd": 0, "image_id": 171181, "bbox": [195.19, 227.15, 41.46, 102.3], "category_id": 46, "id": 1499535}, {"segmentation": [[455.19, 224.73, 458.35, 222.3, 464.18, 221.09, 470.75, 221.09, 478.04, 221.57, 485.1, 223.27, 487.77, 224.49, 488.5, 225.95, 489.96, 236.4, 489.96, 249.05, 484.12, 259.26, 477.31, 267.53, 475.37, 270.45, 476.59, 304.25, 487.77, 307.65, 487.77, 308.62, 484.37, 309.11, 480.72, 311.06, 479.02, 312.03, 477.31, 312.27, 462.97, 312.52, 456.4, 312.52, 453.24, 309.11, 457.86, 304.98, 463.21, 303.76, 466.86, 302.3, 468.07, 297.68, 467.83, 269.72, 463.7, 263.15, 459.56, 257.8, 457.38, 252.94, 454.7, 246.37]], "area": 1895.6696999999997, "iscrowd": 0, "image_id": 171181, "bbox": [453.24, 221.09, 36.72, 91.43], "category_id": 46, "id": 1500017}, {"segmentation": [[480.83, 222.77, 487.12, 216.89, 502.64, 218.15, 513.13, 220.25, 516.49, 223.61, 515.65, 227.8, 518.58, 247.94, 514.39, 255.91, 507.68, 264.72, 501.8, 271.43, 499.71, 275.21, 496.35, 290.73, 501.38, 310.44, 507.26, 312.96, 509.77, 314.64, 508.93, 319.25, 481.25, 317.58, 478.73, 314.22, 477.89, 312.54, 485.02, 309.19, 490.48, 305.83, 493.41, 277.3, 485.86, 263.46, 486.7, 260.52, 490.06, 247.52, 490.9, 235.77, 492.15, 228.22, 487.96, 221.51]], "area": 1847.4689499999986, "iscrowd": 0, "image_id": 171181, "bbox": [477.89, 216.89, 40.69, 102.36], "category_id": 46, "id": 1500158}, {"segmentation": [[577.56, 229.76, 588.31, 227.61, 611.95, 228.68, 611.95, 247.49, 607.65, 272.2, 604.96, 271.66, 597.98, 255.54, 590.46, 270.59, 586.16, 275.96, 579.18, 268.44, 576.49, 254.47, 574.34, 246.41, 575.41, 235.67]], "area": 1373.8388500000015, "iscrowd": 0, "image_id": 171181, "bbox": [574.34, 227.61, 37.61, 48.35], "category_id": 46, "id": 1500236}, {"segmentation": [[118.4, 217.52, 102.12, 217.52, 96.27, 217.52, 91.71, 221.75, 89.76, 234.11, 89.76, 246.8, 94.64, 256.89, 100.5, 266.98, 105.38, 271.54, 107.01, 285.53, 106.71, 296.31, 105.81, 305.0, 97.12, 305.89, 97.12, 305.89, 91.43, 311.88, 88.14, 315.78, 94.43, 318.77, 106.11, 319.37, 109.7, 317.57, 114.49, 312.48, 114.49, 306.49, 114.49, 306.49, 111.5, 303.5, 112.1, 283.14, 112.1, 277.75, 114.79, 269.66, 122.58, 261.87, 127.07, 253.19, 127.97, 243.61, 128.57, 243.01, 129.17, 229.53, 128.87, 220.55, 127.07, 218.75, 127.07, 218.75]], "area": 2228.8003500000004, "iscrowd": 0, "image_id": 171181, "bbox": [88.14, 217.52, 41.03, 101.85], "category_id": 46, "id": 1500562}, {"segmentation": [[70.67, 223.14, 88.56, 220.38, 93.38, 219.7, 89.94, 230.02, 90.62, 245.15, 96.81, 262.35, 94.75, 267.85, 91.31, 299.5, 100.94, 304.32, 92.0, 312.57, 72.05, 310.51, 70.67, 306.38, 83.74, 300.19, 85.12, 267.85, 75.49, 260.29, 72.05, 243.78]], "area": 1402.5857500000006, "iscrowd": 0, "image_id": 171181, "bbox": [70.67, 219.7, 30.27, 92.87], "category_id": 46, "id": 1500781}, {"segmentation": [[212.69, 99.74, 209.65, 112.99, 214.34, 121.83, 219.31, 125.7, 219.59, 134.53, 222.35, 134.26, 225.11, 125.42, 233.4, 119.07, 233.4, 106.09, 231.74, 98.08]], "area": 567.8506000000001, "iscrowd": 0, "image_id": 171181, "bbox": [209.65, 98.08, 23.75, 36.45], "category_id": 46, "id": 1500972}, {"segmentation": [[168.6, 123.24, 162.82, 114.15, 161.44, 93.76, 161.72, 89.07, 183.21, 90.73, 184.86, 90.73, 183.21, 113.32, 175.77, 118.56, 174.12, 138.95, 173.01, 143.36, 171.36, 140.6]], "area": 720.6921500000007, "iscrowd": 0, "image_id": 171181, "bbox": [161.44, 89.07, 23.42, 54.29], "category_id": 46, "id": 1501042}, {"segmentation": [[507.98, 153.43, 518.1, 153.15, 518.1, 154.38, 517.63, 171.88, 516.68, 172.35, 510.06, 172.44, 508.45, 154.38]], "area": 165.56590000000014, "iscrowd": 0, "image_id": 233042, "bbox": [507.98, 153.15, 10.12, 19.29], "category_id": 47, "id": 1502811}, {"segmentation": [[92.19, 84.11, 92.19, 92.22, 83.18, 96.72, 80.48, 101.22, 81.83, 106.63, 83.63, 107.98, 86.33, 108.88, 89.94, 109.33, 90.39, 116.09, 115.16, 116.54, 115.61, 87.71, 113.36, 85.01]], "area": 895.0372000000001, "iscrowd": 0, "image_id": 274671, "bbox": [80.48, 84.11, 35.13, 32.43], "category_id": 47, "id": 1503810}, {"segmentation": [[293.21, 178.23, 295.04, 186.82, 300.42, 186.82, 300.88, 178.12, 300.88, 178.12, 298.7, 177.66, 294.01, 177.78]], "area": 59.33755000000001, "iscrowd": 0, "image_id": 443772, "bbox": [293.21, 177.66, 7.67, 9.16], "category_id": 47, "id": 1508549}, {"segmentation": [[245.93, 0.07, 248.09, 10.86, 265.35, 17.33, 276.13, 20.57, 310.65, 17.33, 320.36, 0.07, 248.09, 0.07]], "area": 1192.7859999999996, "iscrowd": 0, "image_id": 450129, "bbox": [245.93, 0.07, 74.43, 20.5], "category_id": 47, "id": 1510382}, {"segmentation": [[504.53, 3.66, 508.46, 20.69, 494.71, 39.02, 484.23, 40.99, 478.34, 42.95, 460.0, 36.4, 446.25, 33.13, 421.37, 25.92, 405.65, 24.61, 395.83, 22.65, 392.56, 18.07, 392.56, 10.86, 395.83, 0.39, 503.88, 1.04]], "area": 3567.9670499999993, "iscrowd": 0, "image_id": 450129, "bbox": [392.56, 0.39, 115.9, 42.56], "category_id": 47, "id": 1512505}, {"segmentation": [[478.13, 350.87, 478.41, 345.06, 476.57, 344.35, 474.02, 343.79, 471.19, 341.94, 470.76, 338.54, 470.76, 333.45, 470.9, 330.61, 472.74, 329.9, 473.59, 329.9, 476.43, 329.34, 479.12, 329.48, 482.52, 330.47, 483.79, 332.6, 483.51, 339.11, 484.22, 343.79, 483.65, 344.35, 484.08, 349.45, 484.22, 355.54, 482.66, 355.83, 479.54, 356.39, 478.55, 354.84]], "area": 246.45335000000014, "iscrowd": 0, "image_id": 171181, "bbox": [470.76, 329.34, 13.46, 27.05], "category_id": 48, "id": 1519486}, {"segmentation": [[426.2, 346.91, 419.9, 338.28, 417.8, 335.95, 415.0, 331.75, 416.63, 328.71, 421.3, 328.48, 424.1, 330.58, 429.46, 337.58, 434.6, 342.71, 437.16, 347.38, 436.0, 349.25, 432.73, 350.18]], "area": 206.85545000000062, "iscrowd": 0, "image_id": 171181, "bbox": [415.0, 328.48, 22.16, 21.7], "category_id": 49, "id": 1523260}, {"segmentation": [[243.5, 357.06, 241.03, 352.88, 243.12, 345.47, 239.32, 340.91, 239.51, 337.68, 244.45, 335.21, 245.4, 338.82, 249.2, 342.81, 250.15, 345.66, 247.68, 354.59]], "area": 134.49055000000013, "iscrowd": 0, "image_id": 171181, "bbox": [239.32, 335.21, 10.83, 21.85], "category_id": 49, "id": 1524524}, {"segmentation": [[0.06, 140.05, 53.7, 66.64, 60.76, 65.7, 63.12, 67.11, 58.88, 109.93, 47.12, 129.23, 25.0, 155.11, 7.12, 182.4, 0.0, 194.16]], "area": 3106.9509, "iscrowd": 0, "image_id": 450129, "bbox": [0.0, 65.7, 63.12, 128.46], "category_id": 49, "id": 1525192}, {"segmentation": [[196.7, 390.54, 200.03, 379.71, 209.2, 351.79, 220.03, 335.13, 223.37, 335.96, 203.37, 389.29]], "area": 376.44720000000063, "iscrowd": 0, "image_id": 216510, "bbox": [196.7, 335.13, 26.67, 55.41], "category_id": 50, "id": 1527331}, {"segmentation": [[260.3, 343.7, 266.93, 341.49, 268.58, 334.59, 266.93, 329.62, 261.68, 326.58, 251.46, 327.41, 244.28, 332.65, 245.66, 338.73, 250.08, 343.7, 255.05, 343.7, 255.33, 348.4, 259.19, 348.4, 258.64, 344.81]], "area": 349.32834999999966, "iscrowd": 0, "image_id": 171181, "bbox": [244.28, 326.58, 24.3, 21.82], "category_id": 50, "id": 1528252}, {"segmentation": [[520.88, 321.37, 532.11, 325.06, 543.18, 330.26, 548.71, 330.09, 546.87, 333.61, 539.99, 332.94, 531.44, 331.43, 523.9, 327.91, 519.54, 324.39, 517.19, 322.38, 518.03, 320.87, 520.71, 321.37]], "area": 143.23040000000023, "iscrowd": 0, "image_id": 171181, "bbox": [517.19, 320.87, 31.52, 12.74], "category_id": 50, "id": 1528741}, {"segmentation": [[55.78, 295.0, 49.93, 300.85, 48.39, 301.73, 46.95, 301.62, 43.97, 298.42, 53.91, 288.71, 54.57, 288.05, 55.23, 287.72, 55.78, 291.25, 55.56, 294.01]], "area": 77.31920000000018, "iscrowd": 0, "image_id": 171181, "bbox": [43.97, 287.72, 11.81, 14.01], "category_id": 50, "id": 1529727}, {"segmentation": [[161.09, 180.14, 177.71, 174.39, 198.16, 173.32, 209.67, 176.3, 215.42, 179.71, 215.84, 183.33, 212.86, 191.86, 212.65, 197.18, 204.13, 197.82, 185.59, 205.28, 169.61, 209.11, 167.7, 208.47, 171.1, 202.51, 168.12, 197.4, 157.04, 192.71, 165.14, 188.66, 166.2, 184.19]], "area": 1362.8884500000008, "iscrowd": 0, "image_id": 398727, "bbox": [157.04, 173.32, 58.8, 35.79], "category_id": 51, "id": 1532347}, {"segmentation": [[263.29, 195.45, 255.15, 175.59, 251.08, 165.92, 256.68, 160.83, 273.48, 156.76, 289.77, 157.77, 305.04, 160.83, 308.09, 171.01, 304.02, 178.65, 301.48, 188.83, 297.4, 196.46]], "area": 1770.310149999999, "iscrowd": 0, "image_id": 398727, "bbox": [251.08, 156.76, 57.01, 39.7], "category_id": 51, "id": 1533145}, {"segmentation": [[141.31, 426.0, 138.28, 421.35, 138.66, 415.1, 141.69, 406.95, 146.05, 400.69, 155.9, 395.39, 163.86, 391.03, 192.1, 388.94, 209.53, 385.91, 219.01, 383.26, 226.4, 384.78, 236.06, 388.76, 239.1, 393.11, 248.0, 398.04, 252.55, 404.29, 254.45, 407.71, 256.15, 410.55, 256.34, 411.31, 256.72, 415.48, 256.53, 422.68, 253.31, 426.0]], "area": 4003.6888000000004, "iscrowd": 0, "image_id": 216510, "bbox": [138.28, 383.26, 118.44, 42.74], "category_id": 51, "id": 1535396}, {"segmentation": [[389.39, 393.53, 449.8, 364.4, 476.76, 378.43, 502.65, 396.76, 515.6, 402.16, 510.2, 432.36, 509.12, 449.62, 492.94, 461.48, 471.37, 467.96, 447.64, 467.96, 428.22, 467.96, 403.42, 460.4, 379.69, 447.46, 377.53, 432.36, 387.24, 420.49, 388.31, 406.47]], "area": 10420.909149999996, "iscrowd": 0, "image_id": 398727, "bbox": [377.53, 364.4, 138.07, 103.56], "category_id": 54, "id": 1553955}, {"segmentation": [[453.66, 364.45, 441.13, 356.67, 431.19, 348.89, 418.23, 339.39, 418.66, 329.45, 426.01, 301.37, 431.62, 290.57, 441.56, 279.34, 453.66, 271.99, 473.53, 269.83, 481.31, 271.99, 492.11, 275.88, 497.73, 281.93, 502.48, 290.57, 502.91, 299.64, 503.77, 306.55, 501.18, 313.04, 491.68, 321.24, 489.52, 331.18, 484.33, 342.85, 481.74, 351.49, 473.96, 359.26]], "area": 5708.764250000002, "iscrowd": 0, "image_id": 398727, "bbox": [418.23, 269.83, 85.54, 94.62], "category_id": 54, "id": 1555366}, {"segmentation": [[493.01, 320.72, 485.86, 336.03, 484.84, 364.6, 489.44, 386.03, 506.78, 394.71, 511.38, 402.87, 513.93, 415.12, 519.54, 428.38, 532.29, 435.02, 545.56, 436.55, 571.58, 427.36, 578.22, 409.51, 582.81, 384.5, 576.17, 356.44, 566.99, 339.09, 549.64, 321.24, 537.4, 312.05, 530.76, 315.11, 524.64, 314.09, 522.6, 308.99, 515.46, 313.07, 511.89, 311.54, 502.19, 306.44]], "area": 9049.7071, "iscrowd": 0, "image_id": 398727, "bbox": [484.84, 306.44, 97.97, 130.11], "category_id": 54, "id": 1555411}, {"segmentation": [[376.21, 407.84, 360.3, 407.45, 352.35, 410.63, 350.36, 410.63, 340.43, 400.69, 324.52, 398.3, 302.26, 362.12, 298.68, 347.81, 298.68, 337.87, 309.42, 327.14, 318.56, 323.56, 322.54, 319.19, 330.09, 306.86, 337.64, 302.49, 356.33, 300.9, 379.78, 315.61, 421.13, 342.25, 451.34, 364.91, 443.79, 370.08, 403.24, 385.98, 391.31, 399.1, 383.76, 405.86]], "area": 9932.54285, "iscrowd": 0, "image_id": 398727, "bbox": [298.68, 300.9, 152.66, 109.73], "category_id": 54, "id": 1555472}, {"segmentation": [[184.04, 523.08, 191.51, 500.68, 203.05, 490.49, 222.73, 492.53, 219.34, 510.86, 207.12, 530.54, 197.62, 528.51]], "area": 1018.77235, "iscrowd": 0, "image_id": 144836, "bbox": [184.04, 490.49, 38.69, 40.05], "category_id": 60, "id": 1573137}, {"segmentation": [[383.36, 360.71, 383.36, 360.71, 383.36, 363.73, 383.36, 366.32, 383.36, 370.21, 383.36, 373.67, 381.2, 378.85, 379.48, 380.58, 378.18, 382.31, 377.32, 384.47, 376.45, 385.77, 374.29, 387.93, 372.99, 389.22, 370.83, 390.52, 369.11, 391.81, 367.81, 391.81, 364.79, 393.11, 359.17, 393.11, 359.17, 393.11, 353.99, 393.54, 353.99, 393.97, 352.26, 394.41, 350.96, 394.41, 349.66, 394.84, 347.94, 394.84, 344.91, 394.84, 342.32, 394.84, 338.43, 395.27, 335.84, 395.27, 333.68, 395.7, 331.95, 395.7, 329.79, 395.7, 327.63, 397.43, 325.9, 398.3, 323.31, 399.16, 321.58, 399.59, 320.72, 399.59, 316.4, 400.46, 315.1, 400.46, 312.51, 400.46, 307.76, 400.02, 304.73, 400.02, 301.71, 399.59, 295.66, 398.73, 294.36, 398.3, 285.72, 397.86, 282.27, 397.86, 279.24, 397.43, 278.38, 397.43, 273.63, 395.7, 273.19, 395.7, 270.6, 395.27, 269.74, 394.84, 267.15, 394.41, 263.26, 393.11, 262.39, 392.25, 257.64, 390.09, 254.18, 390.09, 249.86, 388.79, 246.84, 387.49, 245.11, 386.2, 243.38, 384.9, 240.36, 382.74, 236.9, 381.45, 234.74, 379.29, 232.15, 377.56, 230.85, 376.26, 230.42, 375.83, 228.69, 373.67, 227.83, 370.21, 227.83, 369.35, 227.4, 368.05, 227.4, 365.03, 227.4, 364.16, 227.4, 361.57, 238.2, 359.84, 247.7, 358.98, 254.62, 358.55, 262.83, 357.25, 272.76, 356.39, 277.08, 355.09, 285.72, 353.36, 290.91, 353.36, 299.12, 357.68, 303.87, 360.28, 310.78, 362.0, 311.65, 363.3, 312.94, 366.32, 313.81, 370.21, 313.81, 374.1, 314.24, 380.58, 315.97, 386.2, 316.83, 389.22, 319.42, 390.95, 319.42, 390.95, 325.04, 390.52, 328.06, 389.65, 331.09, 386.63, 331.52, 381.88, 331.09, 380.58, 330.22, 376.69, 329.79, 373.24, 329.79, 372.8, 326.77, 368.05, 328.93, 362.87, 330.22, 361.57, 336.27, 360.71, 343.62, 360.28, 355.28, 360.71, 363.49, 361.57, 365.65, 363.3, 367.81, 363.3, 372.99, 363.3, 375.15, 363.3, 377.32, 361.57, 382.93, 359.84]], "area": 4769.3786500000015, "iscrowd": 0, "image_id": 274671, "bbox": [227.4, 353.36, 155.96, 47.1], "category_id": 60, "id": 1573286}, {"segmentation": [[43.02, 353.61, 35.82, 375.68, 57.44, 395.5, 100.22, 409.01, 159.22, 404.5, 185.8, 393.69, 204.26, 381.98, 209.67, 374.33, 209.22, 369.37, 193.0, 372.08, 175.89, 361.27, 163.73, 354.06, 139.41, 359.01, 99.77, 360.82, 69.6, 356.31, 56.09, 354.51]], "area": 6742.694650000002, "iscrowd": 0, "image_id": 274671, "bbox": [35.82, 353.61, 173.85, 55.4], "category_id": 60, "id": 1573366}, {"segmentation": [[386.16, 344.09, 400.18, 373.21, 436.85, 389.39, 472.45, 394.79, 529.62, 379.69, 531.78, 361.35, 524.22, 340.85]], "area": 5972.057799999999, "iscrowd": 0, "image_id": 274671, "bbox": [386.16, 340.85, 145.62, 53.94], "category_id": 60, "id": 1573846}, {"segmentation": [[567.15, 370.43, 557.46, 367.88, 547.25, 364.82, 537.56, 357.67, 532.46, 351.04, 530.92, 340.84, 592.15, 322.98, 623.79, 316.34, 630.93, 313.79, 638.58, 317.37, 640.0, 361.76]], "area": 4245.163250000001, "iscrowd": 0, "image_id": 274671, "bbox": [530.92, 313.79, 109.08, 56.64], "category_id": 60, "id": 1574002}, {"segmentation": [[297.77, 240.71, 304.94, 238.23, 311.27, 237.4, 311.55, 248.98, 297.22, 247.6, 296.67, 241.26, 297.77, 240.43]], "area": 137.04064999999972, "iscrowd": 0, "image_id": 319933, "bbox": [296.67, 237.4, 14.88, 11.58], "category_id": 60, "id": 1574390}, {"segmentation": [[589.64, 363.08, 554.27, 335.29, 548.59, 330.24, 550.48, 326.45, 585.22, 320.14, 628.17, 315.08, 639.53, 317.61, 640.0, 371.93, 635.75, 370.03, 628.17, 361.82, 627.53, 357.4, 592.17, 357.4]], "area": 3121.4657999999995, "iscrowd": 0, "image_id": 216510, "bbox": [548.59, 315.08, 91.41, 56.85], "category_id": 61, "id": 1577918}, {"segmentation": [[542.15, 66.26, 533.33, 62.13, 528.37, 65.71, 530.02, 74.8, 519.83, 77.01, 493.65, 71.77, 480.7, 69.02, 471.05, 87.2, 474.36, 89.96, 474.63, 95.19, 475.74, 136.8, 480.97, 134.87, 481.52, 119.17, 507.7, 123.02, 524.51, 115.31, 519.83, 134.32, 525.89, 134.05, 542.7, 68.46]], "area": 3141.0325000000003, "iscrowd": 0, "image_id": 171181, "bbox": [471.05, 62.13, 71.65, 74.67], "category_id": 62, "id": 1589065}, {"segmentation": [[130.42, 9.19, 129.51, 3.75, 112.27, 11.46, 111.81, 22.81, 119.98, 24.17, 131.78, 54.13, 137.68, 83.18, 134.51, 116.31, 134.96, 133.11, 148.58, 131.74, 150.39, 92.26, 165.37, 90.44, 175.81, 88.62, 180.8, 84.54, 186.7, 84.09, 191.24, 77.73, 207.13, 77.73, 206.68, 50.04, 211.21, 46.41, 209.85, 32.34, 192.61, 26.44, 143.13, 29.16, 138.59, 26.89, 134.05, 13.28]], "area": 5490.145100000001, "iscrowd": 0, "image_id": 171181, "bbox": [111.81, 3.75, 99.4, 129.36], "category_id": 62, "id": 1590555}, {"segmentation": [[343.97, 130.69, 347.81, 89.18, 357.03, 83.42, 369.33, 90.33, 406.23, 95.71, 403.54, 131.07, 401.62, 137.99]], "area": 2589.1807999999996, "iscrowd": 0, "image_id": 171181, "bbox": [343.97, 83.42, 62.26, 54.57], "category_id": 62, "id": 1597785}, {"segmentation": [[420.82, 42.95, 446.11, 48.57, 463.9, 49.19, 489.5, 45.44, 491.37, 69.48, 480.14, 66.98, 472.33, 85.4, 447.98, 88.21, 443.3, 82.28, 420.82, 79.47, 411.15, 73.85, 415.2, 55.43, 415.83, 46.69]], "area": 2570.115950000001, "iscrowd": 0, "image_id": 171181, "bbox": [411.15, 42.95, 80.22, 45.26], "category_id": 62, "id": 1598631}, {"segmentation": [[395.37, 322.61, 509.29, 321.65, 496.84, 355.16, 469.08, 350.37, 442.27, 352.29, 432.7, 355.16, 417.38, 364.73, 414.51, 388.67, 215.39, 381.96, 352.29, 377.18, 358.99, 377.18, 362.82, 342.71, 366.65, 339.84, 366.65, 332.18, 384.84, 328.36], [516.94, 324.53, 502.58, 356.12, 514.07, 364.73, 518.86, 375.26, 518.86, 389.62, 513.11, 403.98, 510.24, 413.56, 503.54, 420.26, 583.96, 421.21, 583.0, 396.32, 546.62, 356.12, 544.71, 342.71, 529.39, 322.61, 527.47, 321.65], [0.96, 351.33, 44.99, 346.54, 62.22, 349.42, 69.88, 349.42, 77.54, 353.24, 86.16, 352.29, 88.07, 357.07, 86.16, 377.18, 48.82, 377.18, 22.02, 374.31, 0.96, 377.18]], "area": 13894.902900000001, "iscrowd": 0, "image_id": 216510, "bbox": [0.96, 321.65, 583.0, 99.56], "category_id": 67, "id": 1621083}, {"segmentation": [[435.22, 116.26, 415.98, 114.89, 414.6, 115.16, 409.38, 132.21, 429.73, 132.48, 435.22, 121.76]], "area": 363.07635000000016, "iscrowd": 0, "image_id": 319933, "bbox": [409.38, 114.89, 25.84, 17.59], "category_id": 72, "id": 1626004}, {"segmentation": [[321.54, 183.25, 339.12, 163.2, 342.7, 160.72, 410.5, 164.82, 475.59, 166.54, 497.86, 166.32, 498.93, 166.54, 500.0, 166.96, 500.0, 196.29, 465.53, 195.01, 458.89, 193.3, 362.97, 186.66]], "area": 4410.88375, "iscrowd": 0, "image_id": 155591, "bbox": [321.54, 160.72, 178.46, 35.57], "category_id": 76, "id": 1634745}, {"segmentation": [[388.61, 348.95, 419.58, 342.92, 440.41, 361.56, 440.41, 363.48, 414.92, 368.68, 412.73, 361.56, 399.3, 357.72, 395.46, 354.98, 389.71, 355.26]], "area": 707.8305500000004, "iscrowd": 0, "image_id": 443772, "bbox": [388.61, 342.92, 51.8, 25.76], "category_id": 84, "id": 1652342}, {"segmentation": [[371.14, 81.24, 369.77, 79.31, 365.08, 74.35, 371.7, 68.01, 375.0, 64.7, 379.41, 60.29, 384.1, 56.44, 387.13, 56.16, 389.61, 57.81, 392.36, 49.0, 390.43, 41.0, 390.16, 36.6, 389.61, 28.33, 390.16, 25.85, 395.39, 22.82, 401.18, 21.72, 404.76, 23.37, 407.79, 26.95, 409.45, 33.29, 406.69, 40.73, 406.14, 48.17, 406.69, 49.55, 399.8, 51.2, 394.29, 58.64, 391.54, 61.4, 386.58, 66.91, 383.27, 70.76, 384.65, 77.1, 377.48, 79.58, 374.73, 80.13, 372.25, 79.58]], "area": 836.2316499999994, "iscrowd": 0, "image_id": 443688, "bbox": [365.08, 21.72, 44.37, 59.52], "category_id": 1, "id": 1676549}, {"segmentation": [[71.71, 89.28, 68.37, 70.21, 65.51, 59.72, 55.5, 57.81, 45.97, 60.67, 44.06, 54.48, 48.35, 34.46, 55.5, 24.92, 61.22, 22.54, 60.74, 9.19, 67.42, 8.24, 76.48, 10.14, 77.91, 16.34, 77.91, 23.01, 87.92, 24.92, 91.73, 35.89, 90.78, 48.76, 88.87, 57.81, 88.87, 71.64, 92.68, 89.28, 80.77, 91.18, 73.14, 90.23]], "area": 2398.0861999999997, "iscrowd": 0, "image_id": 233042, "bbox": [44.06, 8.24, 48.62, 82.94], "category_id": 1, "id": 1678572}, {"segmentation": [[554.77, 97.69, 556.14, 92.73, 560.28, 92.18, 564.96, 93.28, 571.58, 95.21, 581.77, 104.03, 585.08, 104.86, 595.27, 118.91, 601.89, 131.31, 608.23, 114.5, 614.56, 94.66, 619.8, 89.15, 629.72, 86.12, 640.0, 81.99, 639.91, 151.7, 633.3, 151.7, 622.83, 147.29, 621.45, 145.36, 619.52, 153.63, 609.33, 160.24, 601.89, 163.55, 590.04, 146.47, 582.87, 135.44, 575.71, 124.15, 576.59, 117.28, 572.42, 112.27, 564.9, 109.34, 561.56, 106.84]], "area": 3353.9974499999994, "iscrowd": 0, "image_id": 476412, "bbox": [554.77, 81.99, 85.23, 81.56], "category_id": 1, "id": 1679210}, {"segmentation": [[476.07, 127.85, 450.25, 127.85, 436.73, 116.18, 439.81, 103.88, 449.02, 102.04, 447.18, 94.05, 445.95, 78.07, 450.87, 74.39, 458.24, 74.39, 466.23, 79.92, 466.85, 89.14, 475.45, 105.11, 477.91, 116.79], [476.07, 134.0, 449.02, 134.0, 449.64, 161.66, 457.63, 160.43, 458.86, 146.91, 465.0, 141.37, 470.53, 140.76, 473.61, 149.36, 476.68, 156.74, 484.67, 156.74]], "area": 2001.152450000001, "iscrowd": 0, "image_id": 233042, "bbox": [436.73, 74.39, 47.94, 87.27], "category_id": 1, "id": 1680321}, {"segmentation": [[308.41, 167.22, 307.62, 154.6, 313.14, 135.67, 314.72, 123.84, 323.39, 119.1, 333.65, 107.27, 343.9, 107.27, 345.48, 128.57, 341.53, 141.98, 329.7, 155.39, 321.82, 167.22]], "area": 1427.4900999999995, "iscrowd": 0, "image_id": 233042, "bbox": [307.62, 107.27, 37.86, 59.95], "category_id": 1, "id": 1698185}, {"segmentation": [[206.77, 99.08, 194.45, 99.71, 192.87, 105.08, 194.45, 115.51, 197.61, 122.46, 193.19, 126.25, 186.24, 135.41, 178.97, 142.04, 182.76, 134.15, 182.13, 121.83, 178.66, 111.08, 182.45, 88.65, 177.08, 86.76, 172.02, 82.02, 170.44, 77.28, 175.18, 75.38, 178.34, 78.54, 178.66, 72.86, 181.81, 64.01, 184.97, 59.27, 189.08, 56.11, 187.19, 51.06, 184.03, 46.63, 182.76, 39.05, 186.24, 34.31, 193.19, 32.1, 198.87, 35.58, 199.51, 42.84, 201.09, 52.64, 206.46, 61.17, 208.98, 68.43, 208.98, 95.29]], "area": 2038.3198999999993, "iscrowd": 0, "image_id": 233042, "bbox": [170.44, 32.1, 38.54, 109.94], "category_id": 1, "id": 1701043}, {"segmentation": [[457.35, 424.0, 444.96, 418.28, 440.2, 409.71, 433.53, 399.23, 442.1, 386.84, 453.54, 382.08, 457.35, 382.08, 465.92, 377.31, 474.5, 376.36, 482.12, 383.98, 481.17, 399.23, 484.03, 411.61, 473.55, 424.0]], "area": 1739.8926500000005, "iscrowd": 0, "image_id": 365663, "bbox": [433.53, 376.36, 50.5, 47.64], "category_id": 1, "id": 1728578}, {"segmentation": [[371.75, 141.68, 355.53, 139.21, 351.68, 140.59, 350.58, 123.82, 346.18, 119.69, 347.83, 115.29, 352.78, 112.54, 351.13, 104.3, 352.78, 97.42, 354.7, 94.67, 358.55, 93.85, 362.4, 93.85, 365.15, 97.7, 366.53, 112.54, 370.65, 113.64, 371.47, 123.82, 372.3, 140.59]], "area": 840.0446000000006, "iscrowd": 0, "image_id": 319933, "bbox": [346.18, 93.85, 26.12, 47.83], "category_id": 1, "id": 1733951}, {"segmentation": [[561.99, 466.67, 560.73, 462.53, 558.39, 459.48, 555.88, 460.02, 554.08, 463.25, 555.7, 467.03, 555.7, 470.8, 553.72, 474.04, 554.26, 477.81, 551.02, 479.79, 548.15, 484.29, 548.51, 486.98, 549.4, 486.98, 553.72, 495.43, 556.78, 499.21, 561.63, 498.49, 561.27, 495.79, 559.47, 490.4, 559.47, 483.93, 558.57, 481.77, 564.69, 488.6, 561.81, 497.05, 563.97, 504.06, 566.48, 505.14, 567.02, 499.75, 567.74, 488.6, 569.0, 479.25, 569.54, 476.56, 566.84, 470.98, 564.33, 468.83]], "area": 501.1723499999996, "iscrowd": 0, "image_id": 509826, "bbox": [548.15, 459.48, 21.39, 45.66], "category_id": 1, "id": 1733958}, {"segmentation": [[363.19, 274.13, 367.44, 272.97, 371.3, 272.97, 376.31, 275.29, 379.79, 277.6, 382.1, 279.92, 384.03, 279.92, 385.96, 277.22, 386.73, 272.2, 388.66, 268.73, 391.36, 266.41, 395.99, 264.87, 399.47, 272.2, 400.24, 277.6, 401.78, 282.62, 398.31, 286.86, 396.38, 287.64, 394.45, 288.41, 393.68, 289.57, 393.68, 291.11, 393.68, 291.88, 393.29, 293.81, 388.66, 295.74, 384.03, 298.83, 382.1, 300.37, 379.4, 304.23, 377.86, 305.77, 375.16, 305.0, 372.07, 299.98, 370.53, 297.28, 370.14, 294.58, 370.14, 293.42, 370.53, 293.04, 368.6, 289.57, 367.82, 285.71, 367.05, 282.62, 367.05, 280.31, 366.67, 275.67]], "area": 791.3726499999993, "iscrowd": 0, "image_id": 365663, "bbox": [363.19, 264.87, 38.59, 40.9], "category_id": 1, "id": 1739235}, {"segmentation": [[291.09, 263.23, 301.58, 263.83, 312.38, 261.73, 319.58, 259.63, 324.98, 258.73, 331.57, 255.73, 339.37, 279.42, 343.57, 286.32, 342.37, 292.92, 332.17, 294.72, 327.38, 298.62, 321.68, 301.62, 310.88, 304.62, 305.18, 307.01, 300.08, 310.91, 288.99, 307.31, 247.6, 346.6, 238.9, 334.31, 271.59, 299.82, 267.69, 292.02, 274.89, 283.32, 276.99, 275.52, 280.29, 272.23]], "area": 3478.1839000000027, "iscrowd": 0, "image_id": 365663, "bbox": [238.9, 255.73, 104.67, 90.87], "category_id": 1, "id": 1743156}, {"segmentation": [[275.62, 214.67, 258.18, 243.0, 253.82, 278.95, 247.29, 289.85, 245.11, 338.88, 246.2, 358.49, 257.09, 370.47, 269.08, 369.39, 278.88, 379.19, 285.42, 398.8, 283.24, 422.77, 275.62, 424.95, 266.9, 421.68, 259.27, 419.5, 258.18, 431.49, 248.38, 423.86, 242.93, 410.79, 232.03, 400.98, 213.51, 392.27, 198.26, 387.91, 185.18, 385.73, 194.99, 359.58, 212.42, 367.21, 218.96, 347.59, 204.8, 335.61, 198.26, 334.52, 205.88, 285.49, 208.06, 257.16, 222.23, 221.21, 254.91, 211.4, 259.27, 209.22], [258.18, 189.61, 235.3, 142.76, 251.65, 139.49, 253.82, 142.76, 249.47, 123.15, 232.03, 120.97, 218.96, 128.6, 216.78, 146.03, 214.6, 154.75, 209.15, 172.18, 209.15, 180.9, 209.15, 181.98], [184.09, 172.18, 176.47, 156.93, 174.29, 141.67, 156.86, 130.78, 141.6, 140.58, 160.12, 149.3, 160.12, 171.09, 157.95, 183.07]], "area": 13298.492900000001, "iscrowd": 0, "image_id": 97661, "bbox": [141.6, 120.97, 143.82, 310.52], "category_id": 1, "id": 1744283}, {"segmentation": [[213.3, 84.98, 213.3, 75.55, 202.7, 57.88, 198.58, 49.64, 189.74, 44.33, 184.44, 40.8, 179.73, 37.27, 176.2, 34.32, 176.2, 27.84, 177.96, 21.95, 177.96, 17.24, 178.55, 11.94, 178.55, 7.23, 175.61, 4.87, 172.07, 2.52, 167.36, 0.75, 135.56, 0.16, 137.32, 22.54, 121.42, 38.45, 120.83, 42.57, 126.72, 44.33, 152.64, 43.16, 166.77, 41.98, 175.61, 41.98, 179.14, 40.21, 183.27, 57.29, 183.27, 64.36, 189.74, 67.89, 202.7, 73.78, 209.77, 82.62]], "area": 2534.1168500000003, "iscrowd": 0, "image_id": 476412, "bbox": [120.83, 0.16, 92.47, 84.82], "category_id": 1, "id": 1756109}, {"segmentation": [[218.62, 69.86, 217.92, 62.81, 221.21, 58.59, 220.74, 44.03, 218.15, 33.94, 215.34, 32.06, 211.82, 30.65, 214.16, 26.66, 214.63, 20.09, 213.93, 15.63, 210.88, 12.58, 205.24, 11.4, 199.37, 12.58, 198.44, 13.28, 197.73, 16.33, 197.26, 19.15, 198.91, 21.5, 199.84, 25.25, 201.96, 28.48, 195.15, 34.35, 192.33, 39.28, 191.86, 44.68, 196.56, 46.33, 203.37, 53.37, 207.12, 60.88, 210.17, 68.39, 212.99, 71.06]], "area": 1011.48515, "iscrowd": 0, "image_id": 476412, "bbox": [191.86, 11.4, 29.35, 59.66], "category_id": 1, "id": 1756971}, {"segmentation": [[322.03, 285.06, 322.58, 277.85, 325.36, 273.96, 337.57, 270.08, 346.45, 277.29, 352.0, 289.5, 353.11, 298.94, 348.67, 308.37, 365.32, 318.36, 373.09, 330.57, 380.86, 358.88, 379.19, 402.73, 381.97, 417.71, 391.4, 462.26, 405.28, 508.33, 413.05, 515.54, 416.38, 519.98, 409.16, 526.09, 400.28, 524.42, 393.07, 519.98, 385.3, 490.01, 372.53, 455.6, 360.88, 456.71, 342.56, 427.29, 337.01, 423.96, 317.59, 450.05, 310.37, 463.92, 305.38, 489.45, 299.83, 513.32, 297.05, 519.98, 290.95, 523.87, 283.18, 524.42, 275.4, 523.31, 277.62, 518.87, 285.4, 498.34, 290.39, 454.49, 306.49, 410.64, 303.71, 391.22, 309.26, 368.46, 298.16, 387.33, 295.94, 402.32, 296.5, 415.08, 293.72, 423.41, 288.73, 423.96, 284.84, 416.75, 283.73, 407.31, 288.17, 381.23, 299.27, 337.38, 308.15, 320.17, 323.14, 311.29, 323.69, 307.41, 322.03, 301.86]], "area": 14633.6125, "iscrowd": 0, "image_id": 97661, "bbox": [275.4, 270.08, 140.98, 256.01], "category_id": 1, "id": 1761552}, {"segmentation": [[129.46, 122.42, 171.43, 116.51, 169.66, 125.97, 177.93, 133.66, 176.16, 138.98, 154.88, 144.3]], "area": 772.4755000000001, "iscrowd": 0, "image_id": 525162, "bbox": [129.46, 116.51, 48.47, 27.79], "category_id": 9, "id": 1802458}, {"segmentation": [[276.34, 427.0, 266.55, 417.14, 264.97, 411.14, 264.65, 393.12, 269.71, 379.85, 282.03, 369.42, 294.36, 365.63, 305.74, 365.63, 320.59, 375.11, 328.17, 383.01, 331.33, 395.34, 329.44, 407.35, 327.54, 418.72, 324.7, 423.46, 319.64, 426.62, 317.11, 427.0, 278.87, 427.0]], "area": 3426.9817, "iscrowd": 0, "image_id": 476412, "bbox": [264.65, 365.63, 66.68, 61.37], "category_id": 37, "id": 1854292}, {"segmentation": [[499.29, 170.3, 499.9, 158.91, 499.29, 155.25, 501.73, 154.23, 503.15, 155.86, 504.37, 158.91, 505.19, 170.3]], "area": 75.46445000000004, "iscrowd": 0, "image_id": 233042, "bbox": [499.29, 154.23, 5.9, 16.07], "category_id": 44, "id": 1866257}, {"segmentation": [[420.16, 1.25, 390.23, 4.99, 393.97, 19.95, 480.0, 42.39, 504.94, 31.17, 507.43, 2.49, 507.43, 2.49]], "area": 3430.816299999999, "iscrowd": 0, "image_id": 450129, "bbox": [390.23, 1.25, 117.2, 41.14], "category_id": 46, "id": 1873399}, {"segmentation": [[614.69, 240.36, 624.15, 239.27, 633.44, 240.18, 640.0, 243.09, 639.62, 253.28, 640.0, 263.66, 638.71, 272.39, 632.34, 281.31, 623.97, 286.36, 624.52, 304.93, 624.34, 323.67, 634.89, 327.49, 639.08, 329.72, 640.0, 333.36, 636.71, 334.46, 628.7, 334.82, 622.33, 333.73, 617.6, 333.73, 609.96, 333.36, 608.87, 331.18, 610.87, 326.45, 614.51, 323.35, 617.42, 322.08, 618.7, 287.14, 610.69, 281.86, 604.86, 274.21, 603.77, 265.11, 603.59, 251.83, 605.41, 239.82, 616.15, 238.36, 628.52, 238.72]], "area": 1992.6941000000002, "iscrowd": 0, "image_id": 171181, "bbox": [603.59, 238.36, 36.41, 96.46], "category_id": 46, "id": 1873946}, {"segmentation": [[147.51, 93.16, 148.62, 107.58, 157.49, 118.67, 155.27, 139.75, 147.51, 146.4, 167.47, 143.07, 163.04, 137.53, 160.82, 120.89, 163.04, 89.84, 163.04, 89.84]], "area": 511.1719499999993, "iscrowd": 0, "image_id": 171181, "bbox": [147.51, 89.84, 19.96, 56.56], "category_id": 46, "id": 1874642}, {"segmentation": [[421.8, 95.36, 420.04, 104.44, 424.14, 107.08, 430.88, 112.65, 436.45, 118.51, 436.74, 112.35, 442.31, 109.42, 444.95, 104.44, 444.95, 96.53, 435.57, 95.94, 420.92, 95.06]], "area": 357.4875499999999, "iscrowd": 0, "image_id": 171181, "bbox": [420.04, 95.06, 24.91, 23.45], "category_id": 46, "id": 1874882}, {"segmentation": [[69.41, 113.55, 69.41, 88.99, 71.54, 87.57, 72.25, 84.03, 88.08, 84.03, 89.97, 88.28, 91.15, 90.64, 90.44, 91.82, 85.95, 94.66, 83.82, 96.07, 82.41, 98.44, 80.28, 104.81, 83.82, 107.65, 86.66, 108.83, 89.02, 110.01, 89.49, 116.15, 71.07, 115.92]], "area": 525.5843, "iscrowd": 0, "image_id": 274671, "bbox": [69.41, 84.03, 21.74, 32.12], "category_id": 47, "id": 1880781}, {"segmentation": [[523.75, 109.41, 523.68, 106.13, 524.06, 105.5, 525.32, 104.87, 527.22, 104.87, 530.38, 105.94, 529.81, 112.45, 524.06, 112.7]], "area": 46.44275000000001, "iscrowd": 0, "image_id": 319933, "bbox": [523.68, 104.87, 6.7, 7.83], "category_id": 47, "id": 1883211}, {"segmentation": [[516.39, 106.8, 516.6, 99.04, 517.86, 96.95, 523.73, 99.25, 523.1, 103.65, 523.1, 105.33, 523.31, 106.8, 523.31, 108.06, 521.84, 108.06, 518.07, 108.06, 515.76, 108.27]], "area": 69.05445000000002, "iscrowd": 0, "image_id": 319933, "bbox": [515.76, 96.95, 7.97, 11.32], "category_id": 47, "id": 1883715}, {"segmentation": [[507.63, 105.37, 507.84, 98.81, 515.26, 98.67, 515.33, 105.51, 510.76, 105.65]], "area": 51.51090000000024, "iscrowd": 0, "image_id": 319933, "bbox": [507.63, 98.67, 7.7, 6.98], "category_id": 47, "id": 1885385}, {"segmentation": [[327.43, 604.86, 325.4, 615.29, 318.15, 621.38, 309.46, 625.15, 297.87, 626.31, 282.51, 621.67, 273.81, 611.81, 271.2, 605.73, 271.2, 596.16, 273.23, 589.21, 281.06, 582.83, 288.88, 580.8, 304.53, 580.8, 319.31, 587.76, 325.11, 595.0, 329.17, 602.25]], "area": 2051.883999999999, "iscrowd": 0, "image_id": 144836, "bbox": [271.2, 580.8, 57.97, 45.51], "category_id": 47, "id": 1886795}, {"segmentation": [[93.05, 186.3, 92.9, 192.05, 86.84, 191.58, 84.5, 194.38, 84.66, 198.11, 84.97, 203.08, 94.61, 205.73, 93.67, 210.39, 74.56, 211.63, 73.78, 210.86, 73.62, 208.68, 73.16, 185.83, 93.05, 185.21]], "area": 405.3567999999997, "iscrowd": 0, "image_id": 274671, "bbox": [73.16, 185.21, 21.45, 26.42], "category_id": 47, "id": 1886927}, {"segmentation": [[500.94, 115.25, 500.75, 105.63, 506.9, 105.63, 508.25, 118.91, 501.52, 119.29]], "area": 89.35419999999995, "iscrowd": 0, "image_id": 319933, "bbox": [500.75, 105.63, 7.5, 13.66], "category_id": 47, "id": 1887133}, {"segmentation": [[131.64, 185.45, 117.28, 184.9, 118.94, 203.85, 131.27, 188.58]], "area": 152.07600000000016, "iscrowd": 0, "image_id": 274671, "bbox": [117.28, 184.9, 14.36, 18.95], "category_id": 47, "id": 1887614}, {"segmentation": [[522.09, 118.92, 515.34, 118.92, 514.86, 121.32, 522.09, 120.36]], "area": 13.305599999999977, "iscrowd": 0, "image_id": 319933, "bbox": [514.86, 118.92, 7.23, 2.4], "category_id": 47, "id": 1887796}, {"segmentation": [[523.28, 118.26, 523.28, 112.7, 530.34, 113.0, 530.34, 119.61, 523.28, 119.31]], "area": 46.666600000000386, "iscrowd": 0, "image_id": 319933, "bbox": [523.28, 112.7, 7.06, 6.91], "category_id": 47, "id": 1887993}, {"segmentation": [[494.42, 108.05, 498.55, 108.37, 498.86, 114.73, 494.1, 114.73]], "area": 28.982199999999967, "iscrowd": 0, "image_id": 319933, "bbox": [494.1, 108.05, 4.76, 6.68], "category_id": 47, "id": 1888173}, {"segmentation": [[494.74, 114.8, 498.75, 115.18, 499.05, 125.2, 497.74, 125.43, 494.35, 124.27, 493.97, 124.27, 493.74, 115.18]], "area": 50.00659999999987, "iscrowd": 0, "image_id": 319933, "bbox": [493.74, 114.8, 5.31, 10.63], "category_id": 47, "id": 1888208}, {"segmentation": [[485.54, 111.25, 486.03, 107.82, 492.89, 107.82, 493.22, 111.74]], "area": 26.73685000000006, "iscrowd": 0, "image_id": 319933, "bbox": [485.54, 107.82, 7.68, 3.92], "category_id": 47, "id": 1888217}, {"segmentation": [[54.11, 350.81, 55.36, 340.88, 52.69, 340.52, 53.05, 326.68, 54.82, 326.68, 55.0, 338.21, 55.71, 337.5, 56.6, 326.86, 57.66, 326.86, 57.66, 337.86, 59.08, 337.68, 59.08, 326.68, 60.15, 326.86, 60.86, 338.21, 61.21, 338.21, 61.75, 327.56, 63.88, 327.74, 64.05, 340.34, 59.44, 341.41, 59.08, 350.99]], "area": 159.06309999999996, "iscrowd": 0, "image_id": 171181, "bbox": [52.69, 326.68, 11.36, 24.31], "category_id": 48, "id": 1888362}, {"segmentation": [[75.46, 326.18, 76.53, 339.34, 75.06, 341.87, 71.34, 343.46, 72.67, 352.91, 68.01, 353.7, 67.08, 341.74, 63.89, 340.67, 63.89, 327.91, 65.22, 324.85, 65.36, 328.3, 66.55, 338.41, 67.88, 337.08, 66.68, 323.92, 68.81, 323.65, 69.08, 327.51, 69.21, 338.28, 70.41, 338.15, 69.48, 323.65, 71.61, 323.25, 72.27, 337.75, 73.47, 337.75, 72.94, 322.45, 74.13, 322.72, 74.66, 325.38]], "area": 212.7513999999998, "iscrowd": 0, "image_id": 171181, "bbox": [63.89, 322.45, 12.64, 31.25], "category_id": 48, "id": 1889704}, {"segmentation": [[494.06, 328.73, 496.3, 340.51, 494.62, 344.15, 496.02, 350.6, 490.97, 350.04, 489.01, 343.03, 483.68, 340.23, 482.84, 326.77, 485.09, 327.05, 487.05, 340.51, 487.05, 326.21, 487.89, 330.41, 490.13, 341.63, 490.13, 327.05, 493.78, 341.91, 492.38, 327.61]], "area": 166.8579999999998, "iscrowd": 0, "image_id": 171181, "bbox": [482.84, 326.21, 13.46, 24.39], "category_id": 48, "id": 1889948}, {"segmentation": [[232.37, 299.14, 231.88, 292.38, 225.13, 294.79, 223.68, 298.17]], "area": 38.79479999999994, "iscrowd": 0, "image_id": 171181, "bbox": [223.68, 292.38, 8.69, 6.76], "category_id": 48, "id": 1890414}, {"segmentation": [[184.33, 328.33, 206.59, 329.92, 207.5, 331.28, 205.91, 332.19, 182.96, 331.05]], "area": 59.29385000000006, "iscrowd": 0, "image_id": 171181, "bbox": [182.96, 328.33, 24.54, 3.86], "category_id": 49, "id": 1891520}, {"segmentation": [[224.55, 201.02, 236.37, 198.69, 257.69, 196.37, 268.16, 195.59, 269.52, 196.75, 284.63, 191.52, 304.98, 188.03, 311.57, 187.64, 310.22, 192.88, 287.73, 199.08, 270.48, 201.21, 269.71, 203.34, 263.31, 203.54, 260.21, 203.54, 257.11, 203.54, 231.33, 209.74, 226.3, 211.29]], "area": 658.0378500000002, "iscrowd": 0, "image_id": 495438, "bbox": [224.55, 187.64, 87.02, 23.65], "category_id": 49, "id": 1892177}, {"segmentation": [[442.61, 286.07, 451.05, 288.98, 452.5, 291.89, 449.88, 295.67, 443.48, 298.87, 434.32, 296.83, 430.83, 292.03, 432.87, 290.29, 433.01, 287.96, 432.58, 286.07, 436.21, 285.49, 437.96, 286.94]], "area": 198.72320000000002, "iscrowd": 0, "image_id": 171181, "bbox": [430.83, 285.49, 21.67, 13.38], "category_id": 50, "id": 1895067}, {"segmentation": [[519.75, 212.41, 509.01, 216.71, 482.51, 225.66, 466.76, 233.53, 455.3, 240.7, 456.38, 245.35, 461.75, 257.52, 458.88, 265.76, 457.45, 272.56, 478.22, 271.49, 487.88, 276.14, 505.07, 260.75, 526.91, 246.78, 542.66, 243.56, 549.47, 241.77, 551.97, 237.12, 551.61, 233.89, 549.82, 231.39, 545.53, 229.95, 542.66, 229.95, 542.66, 224.58, 543.02, 222.79, 542.3, 220.29, 530.13, 215.63, 523.69, 213.13]], "area": 3440.8146500000007, "iscrowd": 0, "image_id": 398727, "bbox": [455.3, 212.41, 96.67, 63.73], "category_id": 54, "id": 1910715}, {"segmentation": [[533.77, 310.49, 553.96, 284.49, 590.82, 257.71, 626.91, 244.91, 635.45, 256.16, 640.0, 257.71, 638.95, 294.58, 638.95, 300.79, 611.0, 334.55, 610.62, 333.78, 586.17, 347.36, 570.64, 342.7, 562.88, 331.06, 543.09, 317.09, 537.66, 313.6, 534.94, 309.33]], "area": 6553.329600000001, "iscrowd": 0, "image_id": 398727, "bbox": [533.77, 244.91, 106.23, 102.45], "category_id": 54, "id": 1910877}, {"segmentation": [[238.03, 517.16, 234.7, 518.49, 224.71, 523.81, 221.38, 532.47, 224.71, 537.8, 234.03, 532.47, 238.69, 526.48, 238.03, 539.79, 243.35, 542.46, 254.01, 541.13, 268.65, 543.12, 276.64, 535.8, 262.0, 520.48, 248.68, 517.16]], "area": 946.4993000000006, "iscrowd": 0, "image_id": 144836, "bbox": [221.38, 517.16, 55.26, 25.96], "category_id": 60, "id": 1925134}, {"segmentation": [[143.04, 593.07, 132.06, 585.43, 139.7, 572.54, 145.9, 570.63, 153.54, 568.24, 158.79, 567.29, 167.39, 565.86, 172.64, 569.2, 180.28, 575.88, 186.48, 584.95, 183.14, 590.2, 173.59, 592.59, 152.59, 597.37, 144.95, 596.89]], "area": 1149.9746000000011, "iscrowd": 0, "image_id": 144836, "bbox": [132.06, 565.86, 54.42, 31.51], "category_id": 60, "id": 1925597}, {"segmentation": [[190.86, 499.78, 169.37, 501.06, 157.35, 504.9, 156.84, 514.88, 159.4, 523.58, 164.77, 526.65, 170.14, 523.32, 181.14, 523.58]], "area": 639.8561000000012, "iscrowd": 0, "image_id": 144836, "bbox": [156.84, 499.78, 34.02, 26.87], "category_id": 60, "id": 1925847}, {"segmentation": [[206.45, 492.38, 207.11, 484.81, 207.11, 479.87, 208.76, 476.25, 214.35, 475.27, 223.24, 478.23, 228.84, 483.49, 228.18, 488.1, 223.24, 494.36]], "area": 329.08960000000013, "iscrowd": 0, "image_id": 144836, "bbox": [206.45, 475.27, 22.39, 19.09], "category_id": 60, "id": 1926043}, {"segmentation": [[121.67, 491.67, 120.24, 485.47, 120.72, 479.26, 125.49, 476.4, 128.83, 474.49, 135.52, 468.76, 142.68, 468.28, 149.36, 468.28, 154.13, 470.19, 155.09, 473.53, 151.75, 480.69, 136.95, 489.29, 128.36, 492.63]], "area": 551.9924000000005, "iscrowd": 0, "image_id": 144836, "bbox": [120.24, 468.28, 34.85, 24.35], "category_id": 60, "id": 1926098}, {"segmentation": [[158.06, 526.78, 146.93, 517.61, 143.98, 503.85, 144.64, 492.39, 148.89, 483.55, 158.72, 479.29, 173.78, 474.05, 186.88, 479.62, 170.83, 491.74, 157.08, 509.09, 156.75, 521.21, 159.04, 526.45]], "area": 920.8866, "iscrowd": 0, "image_id": 144836, "bbox": [143.98, 474.05, 42.9, 52.73], "category_id": 60, "id": 1926287}, {"segmentation": [[241.23, 96.43, 234.34, 41.26, 255.02, 31.78, 280.88, 35.23, 308.46, 38.68, 327.43, 39.54, 334.32, 42.13, 339.49, 53.33, 340.35, 69.71, 322.25, 61.95, 297.26, 67.12, 291.22, 76.6, 286.91, 86.08, 264.5, 81.77, 273.99, 106.77, 234.34, 101.6]], "area": 4534.2304, "iscrowd": 0, "image_id": 476412, "bbox": [234.34, 31.78, 106.01, 74.99], "category_id": 62, "id": 1931822}, {"segmentation": [[456.31, 182.03, 491.22, 115.95, 561.04, 78.55, 615.9, 81.04, 638.34, 96.0, 635.84, 241.87, 625.87, 249.35, 604.68, 259.32, 548.57, 226.91, 482.49, 201.97, 453.82, 184.52]], "area": 22800.6067, "iscrowd": 0, "image_id": 398727, "bbox": [453.82, 78.55, 184.52, 180.77], "category_id": 62, "id": 1933671}, {"segmentation": [[571.51, 327.76, 581.82, 286.52, 639.89, 297.37, 638.26, 364.66], [639.89, 297.37, 634.46, 265.89, 639.89, 252.87, 639.35, 262.64]], "area": 3638.0149, "iscrowd": 0, "image_id": 443772, "bbox": [571.51, 252.87, 68.38, 111.79], "category_id": 62, "id": 1939851}, {"segmentation": [[623.95, 147.51, 640.0, 152.24, 640.0, 258.49, 609.23, 259.02, 612.91, 205.37, 612.38, 198.53, 618.17, 176.96]], "area": 2784.19165, "iscrowd": 0, "image_id": 476412, "bbox": [609.23, 147.51, 30.77, 111.51], "category_id": 62, "id": 1944001}, {"segmentation": [[518.14, 159.61, 511.38, 158.64, 507.03, 164.43, 509.93, 165.4, 517.17, 171.67, 515.24, 175.54, 517.66, 176.02, 518.62, 181.81, 522.48, 184.23, 522.0, 177.95, 525.86, 176.02, 529.24, 184.71, 535.03, 187.61, 537.45, 193.4, 537.45, 200.64, 533.59, 210.3, 522.48, 208.36, 516.69, 206.43, 516.69, 214.64, 522.48, 216.09, 522.48, 211.74, 535.52, 212.23, 547.1, 227.19, 545.66, 227.67, 556.76, 230.09, 553.86, 226.71, 576.07, 202.57, 578.0, 233.95, 580.41, 234.92, 580.41, 228.16, 588.14, 234.92, 600.69, 240.71, 610.34, 230.57, 610.34, 225.26, 603.1, 217.54, 612.76, 206.43, 618.07, 174.09, 586.21, 172.16, 584.76, 142.71, 570.76, 140.78, 543.72, 148.02, 525.86, 138.85, 520.55, 141.74, 518.14, 153.33, 518.14, 154.78]], "area": 6381.49065, "iscrowd": 0, "image_id": 476412, "bbox": [507.03, 138.85, 111.04, 101.86], "category_id": 62, "id": 1944984}, {"segmentation": [[4.44, 285.04, 640.0, 282.82, 638.84, 388.18, 606.67, 388.18, 488.0, 348.25, 476.91, 401.49, 442.53, 398.16, 440.31, 405.93, 445.85, 424.78, 295.02, 425.89, 288.36, 394.84, 281.71, 394.84, 275.05, 347.15, 256.2, 353.8, 186.33, 383.75, 135.31, 400.38, 78.75, 397.05, 1.11, 354.91]], "area": 67648.85065, "iscrowd": 0, "image_id": 171181, "bbox": [1.11, 282.82, 638.89, 143.07], "category_id": 67, "id": 1964506}, {"segmentation": [[523.64, 472.52, 559.79, 445.09, 609.66, 397.71, 622.13, 374.03, 640.0, 351.58, 637.09, 473.77], [109.71, 472.52, 51.12, 426.39, 22.44, 400.21, 8.73, 372.78, 3.74, 386.49, 0.0, 390.23, 1.25, 472.52], [144.62, 61.09, 107.22, 61.09, 104.73, 54.86, 99.74, 44.88, 57.35, 44.88, 52.36, 66.08, 3.74, 57.35, 2.49, 11.22, 22.44, 38.65, 102.23, 16.21, 125.92, 33.66, 183.27, 34.91, 214.44, 17.45, 221.92, 1.25, 249.35, 4.99, 263.06, 23.69, 221.92, 28.68, 174.55, 46.13, 154.6, 54.86], [304.21, 18.7, 385.25, 22.44, 396.47, 22.44, 393.97, 18.7, 392.73, 2.49, 376.52, 0.0, 321.66, 2.49, 314.18, 14.96], [483.74, 38.65, 503.69, 33.66, 508.68, 11.22, 504.94, 3.74, 538.6, 4.99, 547.32, 51.12, 551.06, 64.83, 556.05, 77.3, 561.04, 87.27, 563.53, 91.01, 521.14, 66.08, 513.66, 63.58, 506.18, 58.6, 497.45, 54.86, 486.23, 48.62, 484.99, 47.38], [638.34, 178.29, 604.68, 127.17, 603.43, 120.94, 640.0, 148.36]], "area": 22098.89550000001, "iscrowd": 0, "image_id": 450129, "bbox": [0.0, 0.0, 640.0, 473.77], "category_id": 67, "id": 1966000}, {"segmentation": [[158.55, 63.17, 157.5, 40.47, 186.5, 40.47, 185.87, 51.82, 183.76, 52.24, 183.55, 61.69, 158.55, 62.75]], "area": 587.0982999999999, "iscrowd": 0, "image_id": 443688, "bbox": [157.5, 40.47, 29.0, 22.7], "category_id": 73, "id": 1970306}, {"segmentation": [[291.34, 39.48, 284.67, 20.57, 273.55, 2.78, 240.19, 3.89, 232.4, 31.69, 230.18, 67.27, 235.74, 75.06, 244.64, 33.92]], "area": 1904.75035, "iscrowd": 0, "image_id": 476412, "bbox": [230.18, 2.78, 61.16, 72.28], "category_id": 1, "id": 2014434}, {"segmentation": [[227.5, 128.13, 235.0, 115.63, 242.5, 113.13, 251.25, 118.13, 250.0, 134.38, 246.25, 136.88, 237.5, 134.38]], "area": 382.03125, "iscrowd": 0, "image_id": 443772, "bbox": [227.5, 113.13, 23.75, 23.75], "category_id": 1, "id": 2017373}, {"segmentation": [[338.04, 0.56, 330.26, 15.01, 304.68, 23.91, 294.67, 33.92, 323.59, 41.7, 326.92, 56.15, 329.15, 67.27, 341.38, 73.95, 353.61, 69.5, 351.39, 39.48, 355.83, 17.24, 365.84, 7.23, 381.41, 3.89, 385.86, 0.56]], "area": 2484.0767499999997, "iscrowd": 0, "image_id": 476412, "bbox": [294.67, 0.56, 91.19, 73.39], "category_id": 1, "id": 2018783}, {"segmentation": [[107.58, 1.11, 118.67, 27.73, 107.58, 12.2, 105.36, 28.84, 89.84, 13.31, 100.93, 52.13, 99.82, 80.96, 61.0, 79.85, 54.35, 33.27, 49.91, 22.18, 62.11, 2.22]], "area": 3541.13015, "iscrowd": 0, "image_id": 476412, "bbox": [49.91, 1.11, 68.76, 79.85], "category_id": 1, "id": 2024902}, {"segmentation": [[490.51, 423.4, 490.51, 418.16, 493.72, 412.63, 498.95, 410.59, 501.86, 409.43, 505.07, 404.19, 502.74, 399.53, 499.54, 397.21, 495.46, 394.88, 493.13, 394.59, 491.1, 394.3, 487.6, 396.33, 485.57, 398.95, 484.11, 401.28, 482.95, 403.32, 482.95, 407.39, 484.11, 410.01, 483.53, 413.5, 481.78, 415.54, 474.22, 424.0, 489.06, 423.4]], "area": 434.08345, "iscrowd": 0, "image_id": 365663, "bbox": [474.22, 394.3, 30.85, 29.7], "category_id": 1, "id": 2027796}, {"segmentation": [[224.9, 52.99, 225.79, 51.21, 226.98, 50.32, 229.65, 47.95, 231.43, 47.35, 233.21, 47.06, 235.88, 46.76, 236.77, 46.76, 238.54, 47.06, 239.43, 47.65, 240.03, 49.13, 240.62, 50.32, 240.62, 51.21, 239.73, 54.47, 238.25, 56.55, 236.77, 58.03, 236.77, 58.92, 236.77, 59.22, 236.77, 61.89, 236.77, 61.89, 238.54, 62.78, 238.54, 62.78, 243.29, 63.67, 244.77, 63.37, 246.85, 64.56, 248.04, 68.12, 250.11, 71.97, 250.11, 74.05, 250.11, 76.42, 250.11, 79.09, 249.22, 81.46, 249.22, 83.24, 248.33, 86.5, 248.33, 90.06, 248.33, 91.25, 248.33, 92.14, 248.33, 94.81, 248.33, 98.96, 245.96, 94.81, 241.21, 90.36, 235.58, 87.99, 232.02, 87.69, 228.76, 88.58, 227.57, 89.77, 225.2, 91.25, 223.42, 92.44, 219.56, 93.92, 219.56, 92.14, 219.86, 88.58, 219.86, 85.91, 219.86, 83.54, 219.86, 81.46, 219.86, 79.68, 219.86, 77.9, 218.08, 76.12, 217.78, 72.27, 218.38, 69.3, 221.04, 68.12, 221.64, 66.93, 222.53, 64.56, 223.71, 63.67, 226.68, 63.07, 228.16, 62.48, 230.24, 61.59, 229.05, 59.22, 226.38, 59.22, 225.2, 58.33, 225.2, 55.06, 225.2, 54.47, 225.49, 52.99]], "area": 994.5384999999999, "iscrowd": 0, "image_id": 233042, "bbox": [217.78, 46.76, 32.33, 52.2], "category_id": 1, "id": 2031917}, {"segmentation": [[376.41, 305.92, 378.94, 304.65, 384.3, 294.56, 388.09, 292.67, 395.97, 292.35, 403.54, 300.55, 403.54, 310.02, 402.28, 318.22, 399.13, 320.11, 398.81, 322.0, 394.08, 324.21, 394.08, 327.37, 389.35, 328.63, 392.82, 334.62, 387.77, 342.82, 384.93, 344.71, 376.1, 339.98, 368.53, 331.15, 361.59, 325.16, 357.17, 322.32, 353.39, 316.96, 354.65, 315.69, 373.58, 316.32, 373.26, 310.02, 373.26, 308.12]], "area": 1311.8114000000003, "iscrowd": 0, "image_id": 365663, "bbox": [353.39, 292.35, 50.15, 52.36], "category_id": 1, "id": 2032629}, {"segmentation": [[211.43, 186.3, 226.75, 201.82, 229.24, 198.94, 230.39, 199.14, 230.58, 197.99, 231.16, 196.26, 233.65, 194.16, 235.95, 191.09, 236.71, 186.88, 234.99, 183.05, 233.26, 179.22, 230.2, 178.07, 225.8, 176.54, 220.43, 175.96, 215.84, 177.69, 213.54, 180.56, 212.96, 182.47, 211.43, 185.73]], "area": 410.31275, "iscrowd": 0, "image_id": 365663, "bbox": [211.43, 175.96, 25.28, 25.86], "category_id": 1, "id": 2033967}, {"segmentation": [[437.79, 113.04, 438.04, 119.98, 439.28, 122.22, 442.51, 125.44, 443.0, 126.68, 443.75, 129.66, 445.98, 145.3, 444.74, 149.76, 444.74, 151.5, 445.48, 154.23, 452.18, 155.22, 454.42, 154.23, 454.42, 152.99, 452.18, 150.76, 450.94, 149.76, 447.47, 147.03, 448.21, 130.66, 454.42, 123.95, 457.64, 115.77, 457.4, 100.63, 446.48, 100.13, 444.99, 100.63, 445.48, 103.11, 442.75, 109.81, 438.78, 111.79]], "area": 531.3994499999994, "iscrowd": 0, "image_id": 171181, "bbox": [437.79, 100.13, 19.85, 55.09], "category_id": 46, "id": 2098033}, {"segmentation": [[498.44, 376.84, 486.62, 367.46, 496.0, 358.9, 524.54, 283.86, 530.25, 279.78, 529.44, 295.68, 502.11, 357.67]], "area": 719.7221000000043, "iscrowd": 0, "image_id": 216510, "bbox": [486.62, 279.78, 43.63, 97.06], "category_id": 48, "id": 2101706}, {"segmentation": [[125.45, 396.01, 117.92, 408.05, 112.28, 408.42, 112.28, 404.66, 118.3, 374.57, 126.2, 374.95, 133.35, 352.38, 138.99, 353.51, 142.0, 356.14, 135.98, 371.94, 127.7, 371.94, 125.07, 377.58]], "area": 474.62790000000007, "iscrowd": 0, "image_id": 443688, "bbox": [112.28, 352.38, 29.72, 56.04], "category_id": 49, "id": 2103972}, {"segmentation": [[137.68, 372.74, 138.04, 368.05, 142.73, 353.98, 147.06, 347.13, 155.0, 347.85, 155.72, 348.21, 145.62, 372.74, 151.75, 375.99, 148.14, 386.82, 137.68, 404.5, 130.1, 404.86, 128.3, 405.22, 126.13, 401.61, 124.33, 398.72, 124.69, 397.28, 125.41, 394.75, 125.77, 382.13, 125.41, 372.74, 128.3, 371.3, 136.23, 374.19, 136.96, 373.83]], "area": 894.441, "iscrowd": 0, "image_id": 443688, "bbox": [124.33, 347.13, 31.39, 58.09], "category_id": 49, "id": 2104978}, {"segmentation": [[588.68, 94.06, 585.57, 86.78, 585.45, 82.48, 590.35, 92.51, 589.51, 94.3]], "area": 19.26590000000014, "iscrowd": 0, "image_id": 443688, "bbox": [585.45, 82.48, 4.9, 11.82], "category_id": 49, "id": 2104991}, {"segmentation": [[555.54, 369.66, 545.43, 354.26, 544.11, 344.81, 529.15, 330.29, 524.53, 321.94, 528.71, 320.84, 532.45, 319.96, 532.45, 315.56, 549.61, 305.22, 603.93, 304.78, 640.0, 306.32, 640.0, 358.66, 639.55, 358.0, 632.3, 350.09, 623.06, 341.95, 611.18, 338.87, 608.11, 343.71, 605.91, 350.75, 601.95, 356.9, 593.81, 359.54, 591.83, 372.08, 585.89, 402.65], [633.4, 369.44, 640.0, 371.64, 640.0, 420.02, 632.52, 415.84, 634.94, 380.66, 633.62, 372.74]], "area": 6359.235800000002, "iscrowd": 0, "image_id": 216510, "bbox": [524.53, 304.78, 115.47, 115.24], "category_id": 51, "id": 2107764}, {"segmentation": [[178.13, 243.94, 215.5, 285.6, 246.75, 308.89, 245.52, 318.69, 221.63, 320.53, 209.37, 319.3, 190.99, 308.27, 186.09, 304.6, 178.74, 288.67, 174.45, 275.8, 173.84, 266.0, 173.23, 254.97]], "area": 2522.0118999999995, "iscrowd": 0, "image_id": 241431, "bbox": [173.23, 243.94, 73.52, 76.59], "category_id": 57, "id": 2115863}, {"segmentation": [[454.47, 199.73, 454.47, 203.35, 444.92, 215.21, 444.26, 215.21, 442.28, 209.94, 441.29, 206.32, 441.95, 203.02, 447.88, 198.08, 451.84, 197.42, 453.48, 197.42, 455.13, 200.39, 455.13, 203.68]], "area": 141.33935000000045, "iscrowd": 0, "image_id": 443772, "bbox": [441.29, 197.42, 13.84, 17.79], "category_id": 59, "id": 2117479}, {"segmentation": [[225.2, 274.16, 235.39, 271.13, 245.15, 273.08, 261.19, 263.11, 279.19, 260.07, 308.89, 268.74, 321.68, 270.04, 330.14, 270.04, 342.49, 273.08, 346.83, 272.43, 337.72, 254.65, 334.9, 244.89, 316.48, 241.21, 278.75, 242.08, 259.03, 244.68, 236.69, 252.27, 225.85, 257.9, 223.47, 264.41, 222.82, 269.39, 224.99, 272.64]], "area": 2598.7773499999994, "iscrowd": 0, "image_id": 274671, "bbox": [222.82, 241.21, 124.01, 32.95], "category_id": 60, "id": 2118136}, {"segmentation": [[338.6, 99.61, 328.96, 104.61, 328.03, 105.68, 328.03, 106.83, 328.6, 112.47, 342.53, 114.83, 345.89, 115.11, 356.25, 106.25, 357.11, 105.47, 355.54, 102.54, 352.47, 101.25, 343.96, 101.11, 339.6, 99.11]], "area": 314.51645000000013, "iscrowd": 0, "image_id": 443688, "bbox": [328.03, 99.11, 29.08, 16.0], "category_id": 61, "id": 2119282}, {"segmentation": [[0.0, 174.08, 0.0, 87.76, 0.0, 0.13, 0.0, 0.0, 640.0, 0.0, 640.0, 480.0, 0.0, 480.0, 0.0, 115.22]], "area": 307200.0, "iscrowd": 0, "image_id": 360902, "bbox": [0.0, 0.0, 640.0, 480.0], "category_id": 67, "id": 2132626}, {"segmentation": [[242.49, 111.49, 251.83, 120.54, 249.79, 132.79, 234.03, 137.46, 234.03, 144.75, 235.78, 164.01, 222.36, 178.31, 211.27, 182.98, 194.06, 167.22, 195.52, 158.76, 215.36, 137.17, 224.7, 123.45, 234.91, 117.62, 241.62, 112.08]], "area": 1858.7675499999998, "iscrowd": 0, "image_id": 365663, "bbox": [194.06, 111.49, 57.77, 71.49], "category_id": 1, "id": 2148897}, {"segmentation": [[549.45, 487.3, 543.74, 486.54, 539.56, 481.78, 538.6, 472.84, 540.13, 467.71, 543.74, 466.37, 546.78, 462.0, 551.35, 460.48, 552.87, 463.52, 553.44, 466.95, 552.3, 469.61, 552.87, 474.36, 553.44, 477.41, 552.11, 479.5, 549.45, 482.35, 548.31, 484.26]], "area": 276.70875000000063, "iscrowd": 0, "image_id": 509826, "bbox": [538.6, 460.48, 14.84, 26.82], "category_id": 1, "id": 2154187}, {"segmentation": [[148.03, 216.78, 130.09, 227.24, 126.6, 215.78, 125.11, 197.34, 129.09, 187.88, 128.6, 183.39, 131.59, 175.92, 134.08, 170.43, 136.07, 163.96, 139.06, 158.47, 148.53, 154.99, 159.49, 159.97, 159.99, 163.96, 160.99, 167.44, 162.98, 172.43, 160.49, 177.91, 156.0, 183.89, 155.51, 183.89, 155.51, 193.36, 158.5, 198.84, 158.5, 208.31, 158.99, 217.28, 162.48, 224.25, 167.47, 231.73, 176.44, 245.18, 176.93, 245.68, 182.42, 254.65, 180.42, 261.13, 176.93, 264.62, 167.96, 267.11, 166.47, 250.17, 163.48, 247.68, 155.01, 234.22, 150.52, 220.77, 150.02, 215.78], [162.48, 268.01, 136.07, 280.47, 133.08, 297.91, 131.09, 303.89, 131.09, 309.87, 133.08, 324.32, 133.08, 340.76, 131.59, 345.25, 134.08, 348.74, 141.05, 346.74, 145.54, 351.73, 174.94, 348.24, 172.45, 344.25, 161.98, 342.76, 156.0, 337.27, 154.51, 310.86, 159.99, 290.43, 159.99, 269.5]], "area": 4367.688999999999, "iscrowd": 0, "image_id": 564095, "bbox": [125.11, 154.99, 57.31, 196.74], "category_id": 1, "id": 2155494}, {"segmentation": [[223.89, 199.56, 238.84, 202.39, 265.12, 211.69, 277.65, 214.52, 308.37, 228.26, 314.84, 231.5, 338.68, 242.41, 350.0, 247.26, 354.04, 255.75, 360.92, 267.47, 363.75, 282.83, 362.53, 289.7, 353.24, 309.11, 340.3, 326.89, 333.03, 334.57, 326.96, 343.87, 326.96, 348.32, 342.32, 349.13, 345.56, 350.74, 345.56, 358.02, 342.73, 362.06, 336.66, 364.89, 328.17, 374.59, 326.56, 375.8, 337.47, 385.1, 366.17, 417.03, 384.77, 434.82, 396.89, 442.5, 398.91, 447.35, 396.08, 452.61, 388.81, 456.24, 378.7, 458.26, 372.64, 467.56, 368.6, 472.82, 356.87, 474.43, 349.6, 474.43, 348.79, 473.63, 347.98, 472.41, 345.96, 468.37, 360.92, 446.54, 359.7, 441.29, 352.43, 431.99, 342.73, 422.69, 325.75, 412.59, 309.98, 401.27, 288.16, 387.53, 279.67, 383.08, 271.18, 374.19, 267.95, 369.34, 235.2, 371.76, 223.89, 369.74, 217.01, 359.63, 221.46, 341.45, 228.33, 327.3, 232.37, 321.64, 232.78, 321.23, 237.63, 321.23, 241.27, 320.83, 233.59, 315.17, 251.37, 292.13, 252.18, 290.92, 244.1, 284.45, 226.72, 278.39, 221.46, 277.17, 219.44, 284.05, 208.53, 297.39, 197.21, 310.72, 187.1, 324.87, 163.66, 324.87, 142.64, 318.81, 135.77, 314.77, 128.49, 316.38, 112.32, 313.15, 105.45, 308.3, 107.47, 304.66, 111.92, 301.83, 124.85, 296.58, 138.19, 299.0, 151.93, 302.24, 168.51, 298.6, 172.55, 297.79, 188.72, 274.75, 191.95, 269.09, 191.55, 252.52, 195.19, 244.03, 188.31, 243.62, 186.7, 247.26, 179.42, 248.88, 174.17, 245.64, 164.47, 233.52, 163.25, 223.41, 157.19, 208.05, 154.76, 197.95, 157.59, 195.52, 166.08, 182.59, 169.72, 179.35, 179.83, 176.52, 190.34, 178.14, 205.29, 192.29, 214.18, 195.12]], "area": 29438.68245, "iscrowd": 0, "image_id": 18358, "bbox": [105.45, 176.52, 293.46, 297.91], "category_id": 1, "id": 2157234}, {"segmentation": [[241.67, 236.27, 247.7, 249.0, 251.05, 258.38, 247.03, 269.78, 243.68, 277.82, 237.65, 272.46, 237.65, 251.68, 236.98, 244.98, 229.6, 231.58, 234.3, 216.16, 231.62, 204.77, 231.62, 178.63, 232.29, 164.56, 235.64, 157.19, 235.64, 143.78, 240.33, 134.4, 249.04, 143.11, 260.43, 152.5, 269.82, 159.87, 273.84, 174.61, 273.84, 190.7, 269.14, 212.81, 263.78, 221.52, 266.46, 251.68, 271.83, 263.75, 273.17, 275.81, 262.44, 277.15, 259.09, 266.43, 256.41, 261.07, 249.71, 235.6, 249.71, 220.18]], "area": 4240.031549999998, "iscrowd": 0, "image_id": 280888, "bbox": [229.6, 134.4, 44.24, 143.42], "category_id": 1, "id": 2157380}, {"segmentation": [[205.44, 181.45, 295.01, 191.99, 290.8, 184.61, 299.23, 184.61, 305.55, 189.87, 313.98, 194.09, 322.41, 197.25, 327.68, 197.25, 332.94, 194.09, 331.89, 181.45, 329.79, 180.39, 320.31, 175.12, 317.14, 171.96, 308.71, 165.64, 299.23, 159.32, 298.18, 159.32, 287.63, 148.78, 286.58, 147.73, 282.37, 131.92, 289.75, 117.17, 289.75, 107.68, 293.96, 99.25, 293.96, 97.15, 293.96, 86.61, 290.8, 77.12, 285.53, 77.12, 278.15, 75.02, 269.72, 73.96, 265.5, 73.96, 257.07, 75.02, 249.7, 79.22, 245.49, 85.55, 241.27, 96.09, 240.22, 110.85, 244.42, 119.28, 240.22, 121.38, 228.62, 122.43, 226.51, 123.48, 213.87, 138.25, 208.6, 152.99, 207.54, 155.11, 204.38, 169.86, 204.38, 175.12], [208.6, 202.52, 249.7, 208.85, 249.7, 216.22, 222.29, 221.5, 214.93, 223.6, 203.33, 224.65, 200.16, 219.38, 200.16, 212.0]], "area": 8981.2944, "iscrowd": 0, "image_id": 319933, "bbox": [200.16, 73.96, 132.78, 150.69], "category_id": 1, "id": 2157720}, {"segmentation": [[286.06, 252.72, 280.45, 286.39, 281.85, 308.83, 287.46, 324.27, 295.87, 332.67, 316.92, 313.04, 318.32, 307.43, 336.55, 287.79, 337.96, 286.39, 354.78, 272.37, 364.6, 268.15, 385.65, 270.97, 408.09, 341.08, 408.09, 342.5, 422.11, 350.91, 409.49, 381.76, 396.87, 387.37, 389.85, 381.76, 377.22, 355.12, 361.8, 328.46, 358.99, 322.85, 318.32, 397.19, 309.91, 408.42, 297.28, 414.03, 281.85, 426.65, 269.23, 457.5, 262.22, 468.72, 251.0, 472.94, 238.38, 468.72, 239.77, 446.28, 243.99, 432.26, 245.39, 418.24, 241.17, 407.02, 238.38, 405.6, 227.15, 391.58, 220.14, 377.56, 218.73, 359.33, 215.93, 341.08, 213.12, 328.46, 206.11, 311.63, 206.11, 277.98, 228.55, 184.0, 245.39, 169.97, 272.03, 144.72, 287.46, 139.11, 301.48, 137.71, 329.54, 123.69, 344.97, 116.67, 363.2, 112.47, 374.43, 111.06, 388.45, 115.27, 387.05, 132.1, 360.39, 147.54, 342.16, 148.94, 332.35, 148.94, 321.13, 154.55, 307.09, 167.17, 307.09, 175.58, 314.12, 176.99, 336.55, 164.36, 344.97, 158.76, 373.03, 148.94, 380.04, 148.94, 394.06, 151.74, 399.67, 157.35, 399.67, 161.56, 401.07, 171.38, 384.23, 174.18, 351.98, 174.18, 339.36, 202.23, 318.32, 228.88, 312.7, 230.29, 301.48, 233.09, 288.86, 238.7]], "area": 36244.36079999999, "iscrowd": 0, "image_id": 376449, "bbox": [206.11, 111.06, 216.0, 361.88], "category_id": 1, "id": 2158561}, {"segmentation": [[299.22, 317.92, 288.0, 292.99, 286.75, 275.53, 289.25, 261.82, 290.49, 254.34, 300.47, 244.36, 299.22, 234.39, 291.74, 231.9, 276.78, 239.38, 253.09, 245.61, 233.14, 258.08, 224.42, 264.31, 211.95, 269.3, 205.71, 261.82, 198.23, 264.31, 193.25, 259.32, 200.73, 254.34, 223.17, 241.87, 241.87, 223.17, 273.04, 206.96, 288.0, 198.23, 292.99, 194.49, 300.47, 188.26, 307.95, 178.29, 316.68, 168.31, 332.88, 158.34, 351.58, 162.08, 357.82, 165.82, 360.31, 175.79, 360.31, 183.27, 357.82, 189.51, 371.53, 199.48, 386.49, 213.19, 406.44, 236.88, 425.14, 254.34, 441.35, 265.56, 438.86, 280.52, 433.87, 283.01, 427.64, 278.03, 415.17, 269.3, 396.47, 251.84, 386.49, 249.35, 380.26, 250.6, 381.51, 268.05, 386.49, 281.77, 393.97, 306.7, 400.21, 320.42, 401.45, 332.88, 374.03, 332.88, 337.87, 332.88, 305.45, 336.62]], "area": 18608.6028, "iscrowd": 0, "image_id": 149014, "bbox": [193.25, 158.34, 248.1, 178.28], "category_id": 1, "id": 2160586}, {"segmentation": [[279.06, 269.57, 271.73, 266.55, 269.79, 261.16, 267.63, 256.85, 279.06, 249.08, 290.06, 236.79, 288.34, 229.02, 283.16, 219.53, 282.3, 205.29, 284.89, 200.55, 287.26, 190.19, 277.77, 201.2, 271.94, 206.59, 268.06, 209.39, 265.69, 211.12, 265.26, 214.14, 262.88, 216.73, 259.65, 216.73, 260.94, 211.33, 262.45, 206.16, 265.47, 205.08, 269.57, 199.04, 277.34, 190.41, 280.14, 187.39, 285.75, 178.76, 292.44, 175.31, 299.55, 173.59, 301.93, 172.94, 303.22, 169.27, 308.61, 163.02, 315.73, 163.23, 320.26, 169.7, 318.97, 174.23, 318.32, 177.68, 314.22, 180.06, 312.28, 181.35, 310.12, 180.27, 310.56, 183.72, 314.44, 186.1, 316.16, 188.68, 318.1, 189.76, 318.97, 190.19, 320.05, 186.96, 318.97, 183.72, 322.42, 182.0, 324.79, 183.51, 326.52, 186.74, 324.14, 190.41, 323.93, 196.02, 320.48, 199.47, 316.38, 199.25, 310.77, 197.1, 306.67, 199.25, 302.79, 205.08, 301.5, 208.75, 301.93, 210.26, 304.3, 215.43, 311.42, 226.43, 310.77, 230.32, 304.73, 234.85, 302.36, 237.0, 302.14, 240.67, 298.48, 247.14, 293.08, 249.73, 289.42, 252.32, 281.0, 258.14, 280.14, 263.53, 282.08, 267.63, 282.3, 270.22]], "area": 2464.8765999999996, "iscrowd": 0, "image_id": 132953, "bbox": [259.65, 163.02, 66.87, 107.2], "category_id": 1, "id": 2162866}, {"segmentation": [[292.16, 108.63, 300.85, 102.84, 302.78, 88.35, 305.2, 78.21, 310.99, 72.9, 323.06, 81.11, 330.31, 93.18, 324.51, 106.22, 314.85, 114.43, 310.51, 121.19, 310.99, 133.74, 315.34, 158.37, 313.41, 168.03, 284.43, 137.6]], "area": 1947.0600499999994, "iscrowd": 0, "image_id": 319933, "bbox": [284.43, 72.9, 45.88, 95.13], "category_id": 1, "id": 2164478}, {"segmentation": [[345.4, 117.45, 349.26, 120.34, 351.67, 141.05, 358.89, 139.6, 358.89, 142.97, 347.81, 147.31, 344.44, 155.01]], "area": 199.72345000000035, "iscrowd": 0, "image_id": 319933, "bbox": [344.44, 117.45, 14.45, 37.56], "category_id": 1, "id": 2165635}, {"segmentation": [[367.06, 246.91, 355.25, 245.63, 354.93, 249.46, 365.14, 249.14], [353.33, 246.27, 346.95, 244.99, 345.99, 247.55, 352.05, 249.14], [341.2, 244.35, 335.77, 242.44, 334.5, 244.67, 337.05, 246.91, 340.56, 247.23]], "area": 72.7284999999998, "iscrowd": 0, "image_id": 146253, "bbox": [334.5, 242.44, 32.56, 7.02], "category_id": 35, "id": 2179666}, {"segmentation": [[275.22, 287.23, 272.36, 277.59, 274.62, 276.39, 281.7, 277.59, 280.64, 286.48, 281.55, 291.6, 277.63, 295.67, 272.36, 294.77, 274.31, 287.99]], "area": 133.47919999999985, "iscrowd": 0, "image_id": 171181, "bbox": [272.36, 276.39, 9.34, 19.28], "category_id": 49, "id": 2184886}, {"segmentation": [[500.02, 375.13, 501.94, 356.35, 528.43, 298.55, 529.4, 279.77, 512.06, 313.48, 502.91, 341.9, 493.27, 362.61, 497.13, 365.02, 496.65, 370.31, 500.02, 374.65]], "area": 602.3815999999999, "iscrowd": 0, "image_id": 216510, "bbox": [493.27, 279.77, 36.13, 95.36], "category_id": 50, "id": 2185051}, {"segmentation": [[328.65, 203.99, 327.73, 203.31, 330.14, 202.32, 333.97, 201.95, 337.55, 202.2, 338.29, 201.64, 341.01, 201.64, 343.11, 201.83, 342.92, 202.69, 342.49, 203.62]], "area": 25.890450000000243, "iscrowd": 0, "image_id": 443772, "bbox": [327.73, 201.64, 15.38, 2.35], "category_id": 59, "id": 2189005}, {"segmentation": [[277.38, 195.78, 278.8, 191.57, 279.77, 190.21, 280.51, 190.89, 281.99, 190.84, 284.03, 190.66, 287.1, 190.49, 287.67, 190.15, 287.61, 192.54, 287.67, 193.39, 289.94, 193.62, 292.39, 194.76, 294.09, 195.44, 291.54, 196.63, 287.1, 196.18, 283.58, 196.29, 277.38, 196.29]], "area": 66.53694999999996, "iscrowd": 0, "image_id": 443772, "bbox": [277.38, 190.15, 16.71, 6.48], "category_id": 59, "id": 2189015}, {"segmentation": [[132.78, 194.72, 135.42, 195.5, 139.48, 193.94, 142.13, 192.85, 142.28, 191.91, 140.41, 188.95, 138.7, 187.08, 138.23, 186.77, 134.49, 187.08]], "area": 56.00434999999986, "iscrowd": 0, "image_id": 443772, "bbox": [132.78, 186.77, 9.5, 8.73], "category_id": 59, "id": 2189026}, {"segmentation": [[427.0, 84.08, 438.46, 103.95, 462.91, 98.6, 465.97, 108.53, 472.85, 107.77, 472.85, 82.55, 466.73, 68.79, 428.53, 77.96], [449.16, 181.89, 465.21, 187.24, 467.5, 187.24, 463.68, 217.8, 449.92, 234.61, 446.1, 230.79, 445.34, 246.84, 450.69, 243.02, 459.09, 249.13, 466.73, 249.13, 477.43, 231.56, 488.89, 216.28, 495.01, 218.57, 499.59, 207.87, 495.77, 200.23, 501.12, 188.0, 472.08, 175.01, 454.51, 171.19], [478.96, 119.99, 531.69, 128.4, 524.81, 135.28, 489.66, 132.22, 481.25, 128.4]], "area": 3826.9358500000003, "iscrowd": 0, "image_id": 476412, "bbox": [427.0, 68.79, 104.69, 180.34], "category_id": 62, "id": 2192539}, {"segmentation": [[450.89, 275.15, 447.59, 276.91, 450.23, 279.33, 455.08, 275.59, 453.54, 272.5], [461.68, 279.33, 468.28, 275.81, 467.84, 272.28, 465.86, 271.18, 464.98, 271.62, 464.98, 273.16, 462.56, 276.03, 460.8, 277.13, 460.8, 278.01]], "area": 49.80694999999977, "iscrowd": 0, "image_id": 146253, "bbox": [447.59, 271.18, 20.69, 8.15], "category_id": 35, "id": 2200804}, {"segmentation": [[551.29, 473.47, 534.65, 384.36, 491.88, 372.48, 476.44, 387.92, 374.26, 403.37, 357.62, 395.05, 323.17, 408.12, 318.42, 416.44, 286.34, 433.07, 283.96, 465.15]], "area": 18710.369349999997, "iscrowd": 0, "image_id": 443772, "bbox": [283.96, 372.48, 267.33, 100.99], "category_id": 31, "id": 2211979}, {"segmentation": [[369.74, 621.28, 355.37, 628.12, 352.63, 638.39, 407.39, 640.0, 408.07, 637.7, 397.8, 628.12, 387.54, 624.7]], "area": 708.5041999999992, "iscrowd": 0, "image_id": 144836, "bbox": [352.63, 621.28, 55.44, 18.72], "category_id": 47, "id": 2216358}, {"segmentation": [[396.07, 312.69, 388.17, 305.28, 382.24, 302.32, 375.33, 294.42, 375.83, 277.64, 389.65, 245.06, 409.89, 223.83, 426.67, 223.34, 440.0, 227.78, 445.93, 239.13, 457.28, 246.04, 459.25, 257.89, 459.75, 267.76, 451.36, 276.65, 434.08, 294.91, 422.72, 309.72, 417.29, 312.69]], "area": 5261.7325500000015, "iscrowd": 0, "image_id": 398727, "bbox": [375.33, 223.34, 84.42, 89.35], "category_id": 54, "id": 2217717}, {"segmentation": [[510.97, 312.95, 539.55, 309.38, 596.72, 253.4, 565.76, 236.72, 547.89, 236.72, 507.39, 260.55, 485.96, 278.41, 506.2, 290.32, 509.78, 315.33]], "area": 4531.7318, "iscrowd": 0, "image_id": 398727, "bbox": [485.96, 236.72, 110.76, 78.61], "category_id": 54, "id": 2218303}, {"segmentation": [[223.72, 490.25, 221.77, 501.43, 211.56, 517.48, 205.96, 526.72, 204.75, 529.64, 206.94, 530.86, 213.26, 529.64, 215.45, 528.18, 216.18, 527.21, 218.12, 524.78, 220.31, 521.86, 221.28, 520.89, 223.96, 517.0, 226.63, 516.75, 226.63, 518.94, 232.23, 517.73, 236.85, 517.24, 240.74, 516.75, 243.9, 516.27, 247.55, 517.0, 248.52, 514.56, 249.01, 509.94, 246.82, 507.03, 243.66, 503.86, 242.93, 499.73, 242.93, 497.54, 242.93, 491.71, 242.44, 487.57, 239.77, 484.9, 235.63, 484.65, 233.2, 485.87, 232.47, 487.33, 227.12, 488.3, 223.47, 489.27]], "area": 913.4322499999997, "iscrowd": 0, "image_id": 144836, "bbox": [204.75, 484.65, 44.26, 46.21], "category_id": 58, "id": 2221401}, {"segmentation": [[173.08, 498.33, 190.16, 499.17, 198.49, 495.0, 206.41, 490.83, 208.07, 485.84, 206.41, 478.34, 202.24, 477.92, 185.99, 481.67, 176.41, 487.92, 167.67, 495.42, 164.75, 500.42, 172.25, 499.17]], "area": 550.1173999999995, "iscrowd": 0, "image_id": 144836, "bbox": [164.75, 477.92, 43.32, 22.5], "category_id": 58, "id": 2221518}, {"segmentation": [[497.68, 260.77, 506.93, 250.36, 513.49, 251.13, 507.7, 256.53, 506.93, 261.54, 503.46, 265.78, 498.45, 265.01, 496.91, 261.15]], "area": 109.00234999999964, "iscrowd": 0, "image_id": 443772, "bbox": [496.91, 250.36, 16.58, 15.42], "category_id": 59, "id": 2221780}, {"segmentation": [[250.36, 195.42, 261.94, 195.79, 264.16, 194.39, 259.29, 192.69, 256.41, 192.91, 254.86, 192.69, 254.42, 191.8, 249.77, 191.66, 249.99, 195.49]], "area": 40.334449999999904, "iscrowd": 0, "image_id": 443772, "bbox": [249.77, 191.66, 14.39, 4.13], "category_id": 59, "id": 2221880}, {"segmentation": [[290.3, 121.93, 208.5, 142.9, 185.43, 177.51, 194.87, 191.15, 185.43, 212.12, 192.77, 237.29, 224.23, 255.12, 244.16, 259.32, 267.23, 262.46, 292.4, 264.56, 347.98, 263.51, 382.59, 259.32, 410.91, 249.88, 444.47, 218.41, 446.57, 177.51, 431.88, 149.2, 397.28, 125.07, 368.96, 116.68, 315.47, 116.68]], "area": 31876.4587, "iscrowd": 0, "image_id": 450129, "bbox": [185.43, 116.68, 261.14, 147.88], "category_id": 61, "id": 2222212}, {"segmentation": [[364.34, 233.49, 361.29, 250.28, 345.65, 252.56, 343.36, 232.35, 336.49, 232.73, 334.59, 224.72, 342.22, 220.9, 344.51, 221.28, 341.07, 212.51, 348.7, 219.38, 358.62, 215.56, 360.53, 211.75, 362.05, 220.9, 367.01, 228.91, 367.01, 229.68, 364.34, 232.73]], "area": 757.02045, "iscrowd": 0, "image_id": 100726, "bbox": [334.59, 211.75, 32.42, 40.81], "category_id": 64, "id": 19121}, {"segmentation": [[58.99, 263.95, 87.57, 261.91, 85.53, 220.56, 50.82, 218.52, 50.82, 204.23, 64.6, 198.1, 80.94, 191.47, 77.36, 184.83, 53.88, 194.02, 62.56, 185.85, 47.25, 184.83, 46.23, 186.87, 51.33, 261.91, 53.37, 263.44, 65.11, 262.93]], "area": 2015.0496999999996, "iscrowd": 0, "image_id": 100726, "bbox": [46.23, 184.83, 41.34, 79.12], "category_id": 64, "id": 25090}, {"segmentation": [[391.93, 149.29, 461.34, 145.06, 460.5, 205.16, 389.39, 206.01]], "area": 4099.593999999999, "iscrowd": 0, "image_id": 100726, "bbox": [389.39, 145.06, 71.95, 60.95], "category_id": 72, "id": 32506}, {"segmentation": [[470.18, 284.03, 484.57, 294.58, 496.09, 303.22, 503.76, 303.22, 512.4, 299.38, 513.36, 299.38, 529.67, 298.42, 532.55, 305.14, 526.79, 313.77, 522.0, 329.13, 521.04, 354.07, 513.36, 362.71, 507.6, 391.5, 502.8, 406.85, 503.76, 419.32, 463.46, 419.32, 422.2, 420.28, 415.49, 417.4, 398.21, 415.49, 361.75, 419.32, 336.8, 417.4, 330.09, 410.69, 290.74, 404.93, 286.91, 392.46, 286.91, 372.31, 280.19, 346.4, 278.27, 342.56, 269.63, 320.49, 267.71, 288.82, 267.71, 282.11, 269.63, 259.08, 266.76, 244.69, 266.76, 225.49, 292.66, 237.97, 326.25, 261.0, 344.48, 277.31, 377.1, 308.02, 377.1, 314.73, 385.74, 307.06, 386.7, 302.26, 410.69, 322.41, 419.32, 308.98, 434.68, 314.73, 444.27, 310.89, 445.23, 302.26, 451.95, 289.78, 461.54, 283.07, 476.9, 281.15, 478.82, 282.11]], "area": 31211.603849999996, "iscrowd": 0, "image_id": 324285, "bbox": [266.76, 225.49, 265.79, 194.79], "category_id": 17, "id": 50052}, {"segmentation": [[76.07, 163.45, 169.61, 142.89, 210.73, 134.66, 278.58, 153.17, 384.46, 172.7, 428.66, 185.03, 456.41, 189.14, 499.59, 164.47, 525.29, 157.28, 511.92, 188.12, 502.67, 201.48, 506.78, 226.15, 518.09, 243.63, 557.15, 264.18, 563.32, 271.38, 534.54, 275.49, 494.45, 281.66, 472.86, 285.77, 435.85, 285.77, 430.71, 278.58, 393.71, 280.63, 368.01, 285.77, 339.23, 292.97, 325.86, 292.97, 305.3, 305.3, 292.97, 321.75, 274.46, 327.92, 263.16, 323.81, 227.18, 332.03, 213.82, 332.03, 193.26, 336.14, 178.86, 337.17, 161.39, 333.06, 165.5, 311.47, 186.06, 302.22, 211.76, 297.08, 230.26, 288.86, 198.4, 284.74, 160.36, 292.97, 91.49, 302.22, 8.22, 312.5, 0.0, 282.69, 3.08, 229.23, 5.14, 191.2, 26.73, 177.84, 43.17, 174.75, 61.68, 170.64]], "area": 71867.0772, "iscrowd": 0, "image_id": 31345, "bbox": [0.0, 134.66, 563.32, 202.51], "category_id": 17, "id": 50825}, {"segmentation": [[383.43, 3.08, 433.8, 114.1, 433.8, 120.27, 434.83, 128.49, 473.89, 162.42, 478.0, 173.72, 478.0, 174.75, 467.72, 181.95, 459.5, 188.12, 450.25, 188.12, 375.2, 174.75, 325.86, 164.47, 289.88, 154.19, 268.3, 145.97, 250.82, 141.86, 203.54, 135.69, 190.17, 137.75, 149.05, 149.05, 126.44, 151.11, 98.68, 156.25, 75.04, 163.45, 42.15, 174.75, 3.08, 185.03, 1.03, 188.12, 1.03, 1.03, 384.46, 1.03]], "area": 67419.13395000002, "iscrowd": 0, "image_id": 31345, "bbox": [1.03, 1.03, 476.97, 187.09], "category_id": 63, "id": 115599}, {"segmentation": [[204.68, 0.63, 204.13, 6.42, 203.3, 9.45, 203.3, 16.89, 203.3, 24.6, 201.93, 26.81, 200.0, 25.98, 200.0, 32.87, 198.07, 40.86, 197.24, 43.34, 198.07, 43.34, 200.82, 51.06, 203.58, 58.5, 204.13, 66.49, 217.36, 72.83, 255.66, 89.36, 270.26, 94.6, 274.12, 96.25, 283.77, 114.16, 287.62, 125.18, 291.76, 145.02, 296.17, 162.94, 298.65, 172.86, 304.43, 192.7, 309.67, 206.75, 316.01, 218.05, 316.28, 220.53, 316.01, 221.9, 323.45, 225.76, 327.58, 227.42, 330.89, 231.0, 335.02, 234.03, 338.33, 236.23, 341.08, 237.34, 359.55, 239.26, 369.47, 241.74, 390.13, 261.31, 411.08, 277.02, 429.26, 299.89, 433.67, 306.23, 430.64, 307.6, 428.71, 310.63, 424.58, 312.01, 411.63, 303.47, 405.56, 299.89, 403.36, 298.23, 407.49, 310.91, 408.59, 316.7, 404.46, 319.73, 398.67, 316.7, 392.89, 308.98, 389.58, 302.37, 385.17, 297.96, 380.76, 289.69, 375.53, 287.76, 376.35, 296.31, 376.35, 304.85, 373.32, 309.81, 366.16, 306.23, 353.76, 286.66, 345.22, 276.47, 329.79, 273.71, 316.28, 269.03, 296.72, 269.58, 263.93, 267.65, 266.13, 293.27, 268.06, 300.16, 268.34, 300.44, 269.71, 308.15, 273.02, 310.63, 275.22, 317.52, 275.78, 327.44, 274.95, 344.25, 283.49, 355.0, 285.7, 360.79, 289.83, 386.14, 292.31, 399.64, 299.47, 415.07, 301.68, 427.0, 213.5, 426.64, 131.38, 427.0, 33.84, 426.92, 0.0, 426.37, 1.6, 372.36, 0.22, 318.63, 0.49, 274.81, 0.77, 234.03, 9.86, 178.92, 23.92, 125.73, 29.43, 107.82, 34.94, 98.45, 48.44, 91.84, 66.63, 84.13, 91.7, 73.93, 110.72, 66.49, 112.09, 61.81, 114.3, 60.7, 113.2, 54.09, 113.47, 45.55, 111.27, 39.76, 106.03, 33.42, 97.21, 17.16, 95.56, 10.28, 95.56, 11.93, 94.73, 0.0, 205.23, 0.63]], "area": 110237.2046, "iscrowd": 0, "image_id": 324285, "bbox": [0.0, 0.0, 433.67, 427.0], "category_id": 1, "id": 191520}, {"segmentation": [[123.3, 367.35, 119.05, 333.33, 112.24, 316.33, 108.84, 304.42, 116.5, 267.01, 124.15, 239.8, 132.65, 203.23, 149.66, 176.87, 153.06, 170.07, 149.66, 155.61, 149.66, 144.56, 153.06, 127.55, 161.56, 121.6, 171.77, 121.6, 185.37, 125.0, 195.58, 134.35, 195.58, 145.41, 195.58, 158.16, 201.53, 172.62, 195.58, 181.97, 197.28, 185.37, 200.68, 196.43, 210.88, 224.49, 228.74, 244.9, 221.94, 264.46, 215.14, 275.51, 214.29, 277.21, 227.89, 305.27, 228.74, 326.53, 227.89, 349.49, 221.09, 353.74, 222.79, 335.88, 217.69, 338.44, 214.29, 345.24, 205.78, 373.3, 207.48, 374.15]], "area": 20663.66065, "iscrowd": 0, "image_id": 100726, "bbox": [108.84, 121.6, 119.9, 252.55], "category_id": 1, "id": 195112}, {"segmentation": [[44.46, 360.82, 45.3, 333.97, 56.21, 312.16, 43.62, 297.9, 36.07, 287.83, 40.27, 287.83, 48.66, 292.03, 54.53, 288.67, 58.72, 278.6, 62.08, 267.7, 57.89, 251.76, 52.01, 229.11, 45.3, 188.84, 27.68, 168.71, 37.75, 152.77, 36.91, 120.89, 10.07, 103.27, 0.0, 122.56, 3.36, 158.64, 1.68, 259.31, 4.19, 297.06, 2.52, 370.89, 48.66, 369.21]], "area": 11324.017549999999, "iscrowd": 0, "image_id": 100726, "bbox": [0.0, 103.27, 62.08, 267.62], "category_id": 1, "id": 207599}, {"segmentation": [[240.78, 155.54, 241.48, 150.83, 243.57, 149.09, 247.4, 148.92, 250.88, 149.62, 254.02, 152.05, 254.19, 154.84, 253.84, 156.23, 251.06, 155.71, 249.66, 156.93, 249.66, 157.8, 247.92, 157.63, 246.36, 157.28, 245.49, 156.93, 243.4, 156.75, 242.35, 156.41, 241.31, 156.23, 241.13, 154.67]], "area": 90.16005000000003, "iscrowd": 0, "image_id": 460676, "bbox": [240.78, 148.92, 13.41, 8.88], "category_id": 37, "id": 301405}, {"segmentation": [[574.53, 316.86, 594.58, 320.87, 607.22, 333.21, 615.55, 350.17, 614.62, 369.59, 606.6, 387.17, 593.34, 393.34, 573.92, 393.96, 546.47, 385.63, 539.38, 372.68, 534.44, 361.58, 535.37, 346.16, 546.78, 328.27, 565.28, 319.95]], "area": 4899.154149999999, "iscrowd": 0, "image_id": 502113, "bbox": [534.44, 316.86, 81.11, 77.1], "category_id": 37, "id": 302436}, {"segmentation": [[373.0, 325.45, 385.02, 324.93, 396.0, 333.29, 400.18, 350.02, 389.21, 363.09, 374.57, 366.23, 360.98, 359.96, 357.84, 350.02, 357.32, 341.66, 358.36, 334.86, 362.02, 330.68]], "area": 1356.5853999999997, "iscrowd": 0, "image_id": 557323, "bbox": [357.32, 324.93, 42.86, 41.3], "category_id": 37, "id": 303034}, {"segmentation": [[110.21, 300.67, 111.44, 299.04, 113.0, 298.46, 113.99, 298.36, 115.01, 298.46, 115.83, 298.63, 116.27, 298.9, 116.85, 299.55, 117.57, 300.26, 117.91, 301.45, 117.71, 302.82, 117.13, 303.81, 116.14, 304.76, 114.64, 305.13, 113.69, 305.27, 112.53, 305.24, 110.86, 304.55, 110.14, 303.29, 109.91, 302.27, 109.94, 301.76]], "area": 43.58105, "iscrowd": 0, "image_id": 313372, "bbox": [109.91, 298.36, 8.0, 6.91], "category_id": 37, "id": 303891}, {"segmentation": [[294.74, 309.71, 294.65, 307.83, 294.65, 305.87, 294.65, 304.36, 295.19, 302.66, 295.63, 301.24, 296.88, 299.36, 298.04, 298.47, 300.09, 297.85, 301.25, 297.49, 303.12, 297.49, 304.55, 297.49, 306.6, 297.49, 308.12, 298.12, 309.9, 299.72, 311.06, 301.33, 311.95, 303.2, 312.13, 305.6, 312.13, 308.72, 312.04, 310.51, 311.42, 312.2, 310.26, 314.43, 309.45, 315.68, 308.29, 316.39, 306.6, 317.11, 305.0, 317.37, 303.21, 317.37, 301.52, 317.19, 300.0, 316.75, 298.67, 316.12, 297.42, 315.32, 296.26, 314.07, 295.28, 312.65, 294.92, 311.4, 294.83, 309.79]], "area": 294.59974999999986, "iscrowd": 0, "image_id": 49194, "bbox": [294.65, 297.49, 17.48, 19.88], "category_id": 37, "id": 306771}, {"segmentation": [[100.04, 283.1, 118.6, 276.91, 141.81, 273.04, 209.09, 251.39, 209.86, 237.47, 319.68, 257.58, 315.81, 310.17, 306.53, 307.85, 304.99, 274.59, 277.92, 293.93, 243.12, 305.53, 242.34, 365.08, 229.2, 360.44, 229.2, 307.85, 116.28, 301.66, 118.6, 344.19, 104.68, 348.06, 104.68, 283.1]], "area": 10771.512599999998, "iscrowd": 0, "image_id": 1205, "bbox": [100.04, 237.47, 219.64, 127.61], "category_id": 65, "id": 314253}, {"segmentation": [[185.53, 254.56, 197.39, 279.37, 207.1, 275.06, 236.22, 286.92, 254.56, 291.24, 235.15, 297.71, 230.83, 310.65, 242.7, 311.73, 252.4, 297.71, 266.43, 293.39, 294.47, 286.92, 307.42, 281.53, 318.2, 292.31, 336.54, 280.45, 366.74, 282.61, 379.69, 286.92, 429.3, 288.0, 464.9, 277.21, 485.39, 277.21, 478.92, 295.55, 471.37, 307.42, 497.26, 305.26, 506.97, 303.1, 495.1, 284.76, 516.67, 290.16, 557.66, 255.64, 559.82, 161.8, 528.54, 173.66, 504.81, 182.29, 500.49, 193.08, 496.18, 197.39, 475.69, 196.31, 470.29, 158.56, 271.82, 132.67, 272.9, 143.46, 263.19, 142.38, 261.03, 132.67, 185.53, 147.78, 175.82, 147.78, 170.43, 158.56, 159.64, 158.56, 182.29, 236.22, 188.76, 240.54, 185.53, 254.56], [408.81, 291.24, 409.89, 309.57, 377.53, 310.65, 326.83, 295.55, 310.65, 294.47, 316.04, 318.2, 363.51, 332.22, 399.1, 341.93, 424.99, 346.25, 426.07, 376.45, 426.07, 399.1, 442.25, 403.42, 449.8, 390.47, 443.33, 371.06, 453.03, 365.66, 451.96, 352.72, 480.0, 337.62, 492.94, 349.48, 499.42, 341.93, 495.1, 319.28, 501.57, 305.26, 465.98, 321.44, 437.93, 327.91, 426.07, 322.52, 445.48, 313.89, 439.01, 304.18, 427.15, 294.47, 413.12, 289.08]], "area": 57541.98720000001, "iscrowd": 0, "image_id": 441072, "bbox": [159.64, 132.67, 400.18, 270.75], "category_id": 65, "id": 315830}, {"segmentation": [[2.16, 211.42, 157.48, 244.85, 182.29, 258.88, 208.18, 297.71, 213.57, 321.44, 299.87, 289.08, 319.28, 409.89, 326.83, 453.03, 302.02, 460.58, 284.76, 474.61, 3.24, 473.53, 2.16, 216.81]], "area": 66295.66124999999, "iscrowd": 0, "image_id": 441072, "bbox": [2.16, 211.42, 324.67, 263.19], "category_id": 65, "id": 317201}, {"segmentation": [[396.24, 141.85, 402.68, 125.74, 412.35, 119.3, 429.53, 116.08, 440.27, 115.0, 446.71, 120.37, 451.01, 124.67, 464.97, 120.37, 504.7, 123.59, 537.99, 125.74, 571.28, 126.82, 585.23, 123.59, 612.08, 130.04, 640.0, 131.11, 637.85, 148.29, 640.0, 169.77, 640.0, 188.02, 635.7, 200.91, 637.85, 210.57, 640.0, 230.98, 638.93, 237.42, 626.04, 233.12, 623.89, 235.27, 618.52, 246.01, 605.64, 237.42, 605.64, 229.9, 598.12, 234.2, 589.53, 238.49, 597.05, 251.38, 599.19, 253.53, 597.05, 261.04, 584.16, 256.75, 586.31, 248.16, 579.87, 241.71, 568.05, 237.42, 560.54, 229.9, 560.54, 217.02, 562.68, 184.8, 563.76, 162.25, 551.95, 163.33, 533.69, 174.06, 513.29, 180.51, 500.4, 183.73, 496.11, 195.54, 474.63, 195.54, 471.41, 163.33, 459.6, 154.73, 432.75, 149.37, 411.28, 148.29, 398.39, 144.0]], "area": 15958.33765000001, "iscrowd": 0, "image_id": 441072, "bbox": [396.24, 115.0, 243.76, 146.04], "category_id": 65, "id": 317596}, {"segmentation": [[201.71, 343.01, 203.87, 307.42, 268.58, 282.61, 268.58, 247.01, 281.53, 237.3, 310.65, 237.3, 339.78, 245.93, 366.74, 239.46, 390.47, 239.46, 416.36, 251.33, 419.6, 310.65, 418.52, 323.6, 412.04, 324.67, 396.94, 346.25, 396.94, 364.58, 359.19, 361.35, 279.37, 355.96, 258.88, 357.03, 251.33, 351.64, 241.62, 355.96, 230.83, 349.48, 220.04, 351.64, 203.87, 353.8]], "area": 20931.404449999998, "iscrowd": 0, "image_id": 373381, "bbox": [201.71, 237.3, 217.89, 127.28], "category_id": 65, "id": 318681}, {"segmentation": [[639.99, 214.11, 621.33, 213.38, 615.85, 216.31, 617.31, 226.18, 622.8, 228.74, 625.72, 233.87, 626.45, 242.65, 623.53, 280.69, 621.33, 288.74, 624.63, 289.84, 633.04, 252.89, 639.62, 250.69, 640.0, 232.04, 638.53, 214.84]], "area": 834.8420499999982, "iscrowd": 0, "image_id": 398534, "bbox": [615.85, 213.38, 24.15, 76.46], "category_id": 62, "id": 382299}, {"segmentation": [[95.69, 272.95, 102.34, 290.69, 102.34, 301.78, 110.11, 308.43, 106.78, 309.54, 110.66, 335.05, 156.68, 337.27, 169.99, 320.08, 161.12, 308.99, 165.56, 299.01, 162.78, 296.23, 162.23, 278.49, 158.9, 276.83, 111.22, 265.74, 106.78, 265.18, 100.13, 265.74, 95.14, 270.17]], "area": 3894.33835, "iscrowd": 0, "image_id": 373381, "bbox": [95.14, 265.18, 74.85, 72.09], "category_id": 62, "id": 383162}, {"segmentation": [[160.41, 265.5, 158.49, 258.54, 164.25, 254.45, 172.9, 253.25, 182.75, 252.29, 189.24, 252.29, 194.29, 253.01, 199.33, 254.45, 202.46, 257.33, 213.27, 267.67, 211.11, 300.82, 206.3, 303.71, 203.42, 312.21, 183.47, 312.45, 185.4, 293.47, 185.64, 285.54, 184.68, 272.8, 180.83, 265.6]], "area": 1768.0080500000006, "iscrowd": 0, "image_id": 373381, "bbox": [158.49, 252.29, 54.78, 60.16], "category_id": 62, "id": 384839}, {"segmentation": [[37.15, 98.99, 49.54, 99.4, 54.5, 106.84, 56.97, 123.77, 44.17, 124.18, 42.11, 119.64, 39.21, 115.1, 34.26, 110.55, 33.02, 110.14, 34.67, 107.25, 36.74, 105.6, 37.15, 103.12], [18.15, 100.64, 17.74, 106.84, 16.5, 108.9, 14.02, 108.9, 12.78, 105.19, 13.61, 102.29, 17.32, 98.16]], "area": 444.6194999999999, "iscrowd": 0, "image_id": 45136, "bbox": [12.78, 98.16, 44.19, 26.02], "category_id": 62, "id": 386591}, {"segmentation": [[340.23, 273.05, 340.23, 244.88, 347.81, 244.88, 377.07, 237.29, 421.49, 244.88, 421.49, 314.22, 411.74, 286.05, 398.74, 273.05]], "area": 2917.2885500000007, "iscrowd": 0, "image_id": 373381, "bbox": [340.23, 237.29, 81.26, 76.93], "category_id": 62, "id": 386635}, {"segmentation": [[440.32, 255.16, 449.6, 254.97, 459.25, 263.68, 463.23, 280.53, 461.53, 290.19, 461.53, 296.63, 463.61, 296.63, 471.18, 294.92, 472.13, 298.9, 468.34, 300.6, 460.77, 301.17, 460.2, 309.12, 457.55, 311.21, 458.12, 333.93, 459.07, 339.04, 459.07, 339.42, 456.98, 337.71, 456.41, 331.65, 455.66, 321.81, 452.25, 316.89, 449.03, 315.18, 448.27, 335.44, 447.89, 339.04, 447.14, 341.31, 443.35, 343.39, 442.03, 334.3, 445.05, 322.57, 445.05, 303.82, 441.65, 296.44, 439.94, 280.34, 437.67, 270.88, 437.1, 258.0, 439.19, 255.54]], "area": 1398.8871999999988, "iscrowd": 0, "image_id": 373381, "bbox": [437.1, 254.97, 35.03, 88.42], "category_id": 62, "id": 387326}, {"segmentation": [[0.0, 82.59, 144.89, 75.87, 152.57, 96.98, 188.07, 91.22, 211.1, 72.99, 414.53, 66.27, 469.22, 55.72, 474.98, 60.52, 505.68, 52.84, 503.76, 46.12, 550.78, 34.61, 569.97, 44.2, 570.93, 71.07, 640.0, 72.03, 639.06, 421.31, 0.0, 421.31]], "area": 224967.50614999997, "iscrowd": 0, "image_id": 250345, "bbox": [0.0, 34.61, 640.0, 386.7], "category_id": 67, "id": 419747}, {"segmentation": [[258.88, 571.97, 296.27, 564.77, 307.78, 559.02, 304.9, 548.95, 283.33, 543.2, 291.96, 489.99, 306.34, 464.1, 312.09, 433.9, 322.16, 466.98, 326.47, 482.8, 323.6, 559.02, 320.72, 571.97, 362.43, 580.59, 373.93, 570.53, 362.43, 561.9, 346.61, 556.14, 352.36, 466.98, 371.06, 454.03, 353.8, 382.12, 360.99, 372.05, 345.17, 328.91, 348.04, 251.25, 340.85, 231.11, 323.6, 213.85, 335.1, 189.4, 335.1, 154.89, 310.65, 136.19, 274.7, 144.82, 264.63, 162.08, 268.94, 175.02, 270.38, 189.4, 277.57, 205.22, 290.52, 216.73, 247.37, 231.11, 197.03, 222.48, 191.28, 222.48, 201.35, 242.62, 197.03, 248.37, 215.73, 251.25, 225.8, 290.08, 247.37, 308.77, 256.0, 396.5, 260.31, 468.41, 264.63, 469.85, 258.88, 520.19, 260.31, 556.14, 251.69, 563.34]], "area": 37963.5776, "iscrowd": 0, "image_id": 546342, "bbox": [191.28, 136.19, 182.65, 444.4], "category_id": 1, "id": 429847}, {"segmentation": [[276.52, 453.47, 280.3, 415.6, 264.21, 396.67, 231.07, 378.68, 232.02, 340.81, 266.1, 297.26, 290.72, 289.69, 314.39, 281.17, 339.0, 269.8, 356.99, 274.54, 392.02, 262.23, 393.91, 270.75, 363.62, 289.69, 367.4, 305.78, 349.41, 322.82, 338.05, 328.5, 320.07, 321.87, 303.97, 346.49, 299.24, 369.21, 339.0, 377.73, 328.59, 400.45, 308.71, 399.51, 297.34, 461.04, 301.13, 467.67, 277.46, 457.26]], "area": 12258.25735, "iscrowd": 0, "image_id": 144383, "bbox": [231.07, 262.23, 162.84, 205.44], "category_id": 1, "id": 432776}, {"segmentation": [[165.59, 299.3, 168.41, 296.02, 168.88, 292.26, 168.41, 292.26, 167.47, 288.5, 167.47, 287.09, 167.0, 282.87, 167.47, 281.46, 168.41, 277.23, 168.41, 272.54, 168.88, 268.31, 168.88, 267.84, 169.82, 262.21, 170.29, 255.63, 170.29, 254.22, 171.23, 250.47, 171.23, 250.0, 171.23, 246.71, 171.7, 242.48, 171.23, 236.85, 167.94, 237.32, 165.59, 237.79, 163.25, 240.61, 162.78, 240.61, 160.43, 241.54, 159.49, 241.54, 155.73, 242.48, 154.79, 242.48, 151.98, 242.95, 150.1, 243.42, 144.93, 243.89, 138.83, 245.77, 136.48, 247.18, 132.72, 247.65, 128.03, 245.77, 125.21, 243.89, 124.27, 243.42, 121.92, 241.07, 121.45, 241.07, 113.0, 234.5, 112.53, 234.5, 111.59, 232.62, 109.24, 230.27, 109.24, 229.8, 107.83, 227.93, 107.83, 227.46, 106.89, 225.58, 104.55, 223.23, 104.08, 223.23, 101.73, 219.94, 101.26, 219.47, 98.91, 216.66, 98.44, 216.66, 95.15, 214.78, 94.69, 214.31, 93.75, 211.49, 91.4, 209.61, 91.4, 209.14, 90.46, 206.33, 90.46, 204.45, 88.58, 201.16, 87.17, 200.22, 84.82, 199.75, 83.88, 199.75, 82.01, 198.34, 80.6, 196.93, 79.19, 194.59, 84.82, 192.71, 89.99, 194.59, 91.4, 194.59, 91.87, 193.18, 91.87, 193.18, 93.75, 187.07, 93.75, 186.13, 97.5, 189.42, 99.85, 191.77, 100.79, 191.77, 102.2, 193.18, 102.2, 193.65, 102.2, 197.4, 101.73, 198.34, 102.2, 199.28, 102.2, 199.75, 102.2, 203.04, 102.2, 203.04, 104.55, 205.86, 107.36, 209.14, 110.18, 211.49, 110.65, 211.49, 113.94, 213.84, 116.29, 215.72, 118.63, 217.13, 121.92, 219.0, 125.68, 221.35, 132.25, 225.11, 137.42, 226.52, 139.3, 226.52, 143.52, 224.17, 146.81, 222.76, 149.63, 221.82, 151.98, 220.88, 154.32, 219.0, 157.14, 217.6, 157.61, 217.13, 160.43, 215.25, 162.78, 212.9, 163.71, 210.08, 167.47, 207.73, 173.11, 203.51, 177.8, 203.51, 182.97, 202.57, 183.44, 203.04, 190.48, 203.98, 192.83, 199.75, 190.01, 195.99, 191.42, 189.89, 191.89, 188.01, 190.48, 185.66, 190.95, 181.44, 190.95, 180.97, 193.3, 174.39, 193.3, 173.45, 195.18, 169.7, 197.99, 165.47, 197.99, 164.06, 199.87, 159.84, 202.22, 157.02, 206.45, 153.26, 212.55, 151.38, 228.99, 150.44, 238.38, 154.2, 238.85, 155.61, 242.14, 161.71, 244.48, 165.94, 245.42, 169.7, 245.42, 170.17, 246.83, 175.33, 247.77, 179.09, 248.24, 184.72, 247.77, 189.89, 246.83, 195.99, 246.36, 199.28, 244.48, 202.1, 240.73, 205.86, 239.32, 208.2, 239.32, 209.14, 242.61, 212.43, 249.65, 215.25, 253.41, 216.19, 256.69, 219.94, 259.04, 223.23, 264.21, 228.4, 265.15, 232.62, 268.9, 237.32, 269.84, 239.67, 272.66, 244.36, 273.6, 248.12, 277.82, 253.28, 279.23, 254.69, 281.11, 257.51, 284.87, 260.8, 286.28, 262.21, 289.56, 265.49, 290.97, 265.96, 292.38, 266.9, 297.08, 268.78, 300.36, 271.13, 301.3, 271.6, 306.94, 273.48, 309.29, 273.95, 312.57, 275.82, 315.39, 276.76, 316.33, 277.23, 319.62, 277.7, 319.62, 277.7, 321.97, 277.7, 322.44, 277.7, 324.78, 278.64, 329.95, 280.52, 331.83, 280.05, 332.3, 275.82, 337.93, 274.42, 337.93, 274.42, 344.04, 272.54, 347.79, 274.42, 347.79, 274.42, 351.08, 271.6, 354.84, 269.72, 358.12, 268.78, 358.59, 268.78, 362.82, 267.84, 362.35, 272.54, 356.72, 275.82, 355.31, 277.7, 355.31, 277.7, 360.47, 277.23, 360.47, 277.7, 364.23, 278.17, 366.11, 278.17, 366.58, 278.17, 368.92, 278.64, 370.33, 279.11, 369.39, 281.46, 368.45, 282.4, 367.99, 282.4, 366.58, 282.87, 366.11, 282.87, 363.76, 283.34, 361.41, 283.34, 359.53, 283.81, 357.65, 283.81, 360.94, 284.28, 362.35, 284.75, 364.23, 287.09, 363.76, 289.44, 355.78, 289.44, 355.78, 288.97, 353.43, 288.5, 352.02, 288.97, 352.02, 288.97, 356.25, 290.38, 356.25, 290.85, 355.31, 294.14, 355.31, 294.61, 353.9, 295.55, 351.08, 296.02, 347.32, 296.02, 343.57, 295.55, 340.28, 296.02, 336.05, 296.02, 309.29, 292.26, 308.82, 292.26, 297.08, 289.91, 288.16, 286.15, 278.29, 281.93, 272.66, 279.11, 271.72, 279.11, 268.43, 274.42, 266.55, 272.54, 260.45, 269.72, 257.16, 265.49, 256.69, 264.08, 254.35, 260.8, 254.35, 259.86, 251.06, 252.81, 248.24, 247.65, 248.24, 247.65, 243.54, 254.69, 240.73, 260.8, 236.5, 268.78, 232.27, 273.95, 231.8, 282.87, 228.99, 289.91, 225.7, 293.2, 228.05, 304.0, 226.64, 311.51, 226.64, 311.51, 226.64, 318.09, 227.58, 325.13, 227.58, 326.07, 227.58, 331.24, 228.99, 338.75, 228.99, 346.73, 227.58, 354.25, 228.05, 361.76, 227.58, 368.8, 226.17, 377.72, 226.17, 384.3, 226.64, 391.34, 226.17, 397.45, 225.23, 404.96, 224.76, 413.88, 224.76, 418.11, 219.6, 420.46, 220.53, 430.32, 217.72, 436.89, 217.72, 437.83, 215.84, 444.41, 214.43, 449.57, 213.49, 450.98, 212.08, 456.15, 205.98, 478.22, 191.42, 478.22, 193.3, 464.13, 193.3, 464.13, 192.36, 459.43, 192.36, 458.02, 193.3, 450.51, 193.3, 445.81, 193.77, 444.88, 194.71, 440.18, 194.71, 438.3, 193.3, 435.01, 193.3, 434.54, 192.83, 429.38, 192.83, 428.91, 195.18, 423.27, 195.65, 421.87, 197.06, 418.58, 197.06, 417.64, 195.65, 414.82, 194.24, 414.82, 191.89, 413.41, 189.54, 399.8, 189.07, 396.51, 190.01, 385.24, 190.01, 385.24, 190.01, 384.77, 190.48, 381.48, 190.48, 381.48, 189.54, 379.6, 189.07, 379.6, 187.19, 380.07, 187.19, 380.54, 183.44, 384.3, 182.5, 384.77, 182.5, 388.99, 182.03, 389.46, 181.56, 393.69, 181.09, 394.16, 180.15, 398.39, 180.15, 398.86, 179.68, 401.67, 178.74, 404.02, 178.27, 408.72, 170.76, 412.47, 170.76, 412.47, 170.76, 412.47, 170.76, 420.93, 169.35, 427.97, 168.88, 429.38, 167.94, 434.08, 167.47, 435.48, 165.12, 439.24, 165.12, 439.71, 162.78, 443.47, 162.78, 443.94, 160.9, 450.04, 160.9, 450.51, 159.02, 457.08, 158.08, 461.78, 156.67, 466.95, 160.43, 476.81, 161.84, 478.69, 139.3, 478.22, 143.05, 460.37, 143.05, 460.37, 143.05, 460.37, 142.58, 458.02, 142.58, 456.15, 142.11, 448.16, 141.64, 446.75, 141.64, 442.06, 141.17, 440.65, 141.17, 435.48, 141.17, 434.08, 141.64, 430.32, 141.64, 429.85, 142.58, 424.68, 143.05, 419.99, 143.05, 419.52, 144.46, 414.82, 144.46, 413.41, 144.93, 411.53, 144.93, 410.6, 143.52, 408.72, 142.58, 408.72, 140.7, 407.78, 139.77, 407.31, 137.42, 406.37, 136.95, 405.9, 137.42, 403.55, 137.42, 402.61, 137.89, 398.39, 137.89, 397.45, 137.42, 392.75, 137.42, 391.81, 136.95, 385.24, 137.42, 384.3, 138.36, 379.13, 138.83, 378.66, 140.7, 372.09, 141.17, 367.39, 141.17, 365.98, 141.64, 361.29, 142.58, 360.35, 143.52, 357.06, 143.99, 355.65, 145.4, 353.78, 145.4, 353.78, 151.98, 338.28, 151.98, 338.28, 152.91, 330.3, 153.38, 329.83, 157.14, 322.78, 157.14, 321.37, 159.49, 315.74, 159.49, 315.27, 160.9, 307.76, 160.9, 307.29, 163.71, 303.53, 164.18, 302.59]], "area": 25752.015099999997, "iscrowd": 0, "image_id": 107367, "bbox": [79.19, 150.44, 291.14, 328.25], "category_id": 1, "id": 438756}, {"segmentation": [[218.13, 239.61, 190.61, 253.7, 174.5, 251.69, 159.74, 223.5, 165.78, 202.69, 171.82, 186.59, 186.59, 175.85, 200.01, 158.4, 203.36, 146.32, 225.51, 129.54, 230.21, 118.13, 240.28, 112.76, 239.61, 93.29, 237.59, 84.57, 238.94, 75.17, 242.29, 70.47, 240.95, 64.43, 238.94, 58.39, 241.62, 42.95, 237.59, 42.95, 254.37, 18.79, 278.54, 17.45, 289.27, 23.49, 297.33, 30.2, 307.4, 38.93, 310.75, 55.71, 312.77, 66.45, 312.09, 77.18, 310.75, 89.27, 305.38, 96.65, 305.38, 103.36, 312.77, 108.73, 315.45, 121.48, 331.56, 128.19, 354.38, 140.27, 371.83, 149.67, 374.51, 159.74, 380.55, 172.49, 384.58, 191.28, 392.64, 208.06, 404.05, 228.87, 408.07, 242.29, 409.41, 253.03, 415.45, 265.11, 415.45, 293.3, 378.54, 293.3, 372.5, 280.55, 367.13, 273.84, 363.77, 257.06, 359.08, 277.86, 365.12, 287.26, 364.45, 293.97, 221.49, 292.63, 220.82, 251.02, 221.49, 240.95]], "area": 40102.797300000006, "iscrowd": 0, "image_id": 486568, "bbox": [159.74, 17.45, 255.71, 276.52], "category_id": 1, "id": 440452}, {"segmentation": [[64.72, 99.24, 80.54, 76.22, 79.1, 47.46, 94.92, 33.08, 112.18, 37.39, 123.69, 60.4, 119.37, 76.22, 120.81, 92.04, 133.75, 122.25, 129.44, 192.72, 110.74, 267.51, 80.54, 307.78, 54.65, 314.97, 51.78, 283.33, 58.97, 208.54, 63.28, 182.65, 56.09, 142.38, 63.28, 109.3]], "area": 15771.7542, "iscrowd": 0, "image_id": 521400, "bbox": [51.78, 33.08, 81.97, 281.89], "category_id": 1, "id": 447762}, {"segmentation": [[182.79, 212.84, 178.87, 213.33, 173.48, 218.23, 172.5, 219.21, 169.56, 227.05, 163.19, 235.38, 156.81, 240.78, 146.52, 246.17, 99.46, 246.17, 90.64, 242.74, 87.21, 246.66, 85.25, 243.72, 83.29, 248.62, 82.8, 253.52, 78.39, 258.91, 47.01, 263.32, 1.92, 261.36, 0.45, 299.6, 7.31, 301.07, 13.19, 293.72, 62.7, 286.85, 87.7, 285.87, 132.8, 290.77, 163.19, 289.3, 169.56, 285.87, 180.34, 264.31, 174.95, 257.44, 175.93, 245.19, 177.89, 238.33, 184.75, 221.17, 185.24, 216.76, 184.75, 213.33], [18.09, 249.6, 21.53, 248.13, 25.94, 244.21, 20.06, 237.35, 13.19, 232.93, 7.8, 230.97, 0.0, 228.52, 0.0, 244.7, 0.0, 255.97, 13.19, 255.48]], "area": 7310.878800000002, "iscrowd": 0, "image_id": 465007, "bbox": [0.0, 212.84, 185.24, 88.23], "category_id": 1, "id": 453078}, {"segmentation": [[128.36, 187.69, 154.25, 176.9, 183.37, 173.66, 221.12, 159.64, 252.4, 153.17, 283.69, 149.93, 283.69, 131.6, 305.26, 121.89, 327.91, 128.36, 338.7, 153.17, 319.28, 180.13, 309.57, 186.61, 296.63, 188.76, 290.16, 189.84, 284.76, 229.75, 276.13, 259.96, 265.35, 285.84, 289.08, 296.63, 295.55, 326.83, 282.61, 351.64, 270.74, 341.93, 275.06, 322.52, 267.51, 308.49, 258.88, 312.81, 253.48, 371.06, 240.54, 416.36, 238.38, 444.4, 229.75, 470.29, 231.91, 478.92, 220.04, 480.0, 215.73, 464.9, 216.81, 449.8, 214.65, 416.36, 199.55, 440.09, 197.39, 467.06, 188.76, 475.69, 172.58, 475.69, 175.82, 436.85, 181.21, 413.12, 183.37, 400.18, 176.9, 371.06, 174.74, 324.67, 175.82, 290.16, 179.06, 267.51, 194.16, 243.78, 203.87, 210.34, 216.81, 202.79, 216.81, 190.92, 196.31, 187.69, 173.66, 207.1, 144.54, 211.42, 131.6, 206.02, 125.12, 195.24]], "area": 29851.582199999997, "iscrowd": 0, "image_id": 398534, "bbox": [125.12, 121.89, 213.58, 358.11], "category_id": 1, "id": 454358}, {"segmentation": [[210.23, 114.82, 217.5, 109.16, 219.93, 104.3, 222.35, 93.79, 224.78, 83.28, 227.2, 78.43, 235.29, 76.0, 241.76, 76.0, 249.84, 80.86, 255.5, 84.9, 257.93, 91.37, 260.36, 104.3, 254.7, 118.05, 249.84, 125.33, 248.23, 126.14, 241.76, 127.75, 239.33, 130.99, 240.95, 137.45, 244.18, 146.35, 247.42, 150.39, 245.8, 170.61, 254.7, 190.82, 261.16, 195.67, 268.44, 202.95, 295.93, 221.55, 301.59, 227.2, 310.49, 234.48, 320.19, 242.57, 323.42, 248.23, 323.42, 268.44, 312.1, 304.83, 297.55, 292.7, 303.21, 261.97, 299.17, 257.93, 287.85, 255.5, 280.57, 255.5, 279.76, 266.82, 278.14, 269.25, 265.21, 261.97, 265.21, 252.27, 235.29, 241.76, 220.74, 241.76, 215.89, 238.52, 206.99, 228.82, 202.14, 220.74, 198.1, 218.31, 189.2, 217.5, 192.44, 223.97, 190.82, 230.44, 190.01, 224.78, 181.93, 214.27, 179.5, 160.9]], "area": 12511.795000000004, "iscrowd": 0, "image_id": 364256, "bbox": [179.5, 76.0, 143.92, 228.83], "category_id": 1, "id": 463785}, {"segmentation": [[267.05, 483.12, 283.3, 504.02, 378.51, 512.15, 347.16, 442.48, 335.55, 418.1, 322.78, 397.2, 304.2, 389.07, 330.91, 370.49, 323.94, 357.72, 315.81, 347.27, 310.01, 285.74, 310.01, 235.81, 342.52, 188.21, 371.54, 153.37, 395.93, 112.74, 417.99, 63.97, 430.76, 48.88, 457.46, 41.91, 459.79, 29.14, 448.17, 23.33, 437.72, 29.14, 423.79, 25.66, 417.99, 26.82, 401.73, 34.94, 391.28, 50.04, 376.19, 83.71, 347.16, 128.99, 335.55, 142.92, 321.62, 160.34, 277.5, 187.05, 261.24, 194.01, 263.56, 185.88, 274.01, 180.08, 275.17, 159.18, 277.5, 141.76, 270.53, 133.64, 258.92, 106.93, 244.99, 94.16, 222.93, 106.93, 198.54, 126.67, 190.42, 142.92, 192.74, 177.76, 219.44, 191.69, 220.6, 195.17, 178.81, 214.91, 146.3, 239.29, 138.17, 252.07, 118.43, 259.03, 105.66, 261.35, 92.89, 270.64, 77.79, 281.09, 56.89, 297.35, 48.77, 321.73, 63.86, 340.31, 66.18, 340.31, 65.02, 318.25, 74.31, 315.92, 80.11, 325.21, 87.08, 333.34, 89.4, 333.34, 90.56, 317.09, 90.56, 305.47, 112.62, 305.47, 139.33, 293.86, 162.55, 272.96, 176.48, 268.32, 190.42, 312.44, 199.7, 342.63, 198.54, 355.4, 199.7, 363.53, 193.9, 379.78, 197.38, 387.91, 196.22, 415.78, 189.26, 444.8, 189.26, 464.54, 188.09, 488.92, 185.77, 509.82, 253.11, 512.15, 262.4, 486.6]], "area": 62507.75554999998, "iscrowd": 0, "image_id": 560819, "bbox": [48.77, 23.33, 411.02, 488.82], "category_id": 1, "id": 471823}, {"segmentation": [[71.64, 253.02, 76.47, 251.41, 76.47, 244.97, 71.64, 228.87, 71.64, 215.19, 71.64, 203.11, 64.39, 152.4, 67.61, 132.28, 66.0, 127.45, 56.35, 132.28, 49.91, 125.03, 51.52, 125.84, 53.93, 122.62, 45.08, 104.91, 50.71, 63.86, 61.98, 53.39, 71.64, 46.95, 71.64, 38.91, 64.39, 25.22, 67.61, 17.17, 81.3, 13.15, 92.57, 17.98, 99.01, 38.1, 97.4, 45.34, 115.91, 57.42, 133.62, 75.13, 140.86, 101.69, 127.98, 106.52, 116.72, 106.52, 117.52, 129.06, 123.96, 145.16, 126.37, 172.52, 126.37, 195.06, 123.15, 199.09, 124.76, 219.21, 124.76, 241.75, 125.57, 247.38, 138.45, 247.38, 142.47, 253.82, 127.98, 258.65, 116.72, 267.51, 113.5, 259.46, 115.11, 253.02, 109.47, 222.43, 106.25, 204.72, 106.25, 198.28, 99.01, 190.23, 93.37, 203.11, 88.54, 206.33, 89.35, 232.09, 86.13, 235.31, 86.13, 254.63, 87.74, 265.09, 72.44, 267.51, 70.03, 256.24]], "area": 13017.755699999998, "iscrowd": 0, "image_id": 364256, "bbox": [45.08, 13.15, 97.39, 254.36], "category_id": 1, "id": 472681}, {"segmentation": [[251.33, 472.45, 273.98, 470.29, 280.45, 453.03, 283.69, 445.48, 282.61, 440.09, 299.87, 419.6, 323.6, 406.65, 343.01, 394.79, 360.27, 385.08, 361.35, 379.69, 372.13, 371.06, 382.92, 358.11, 386.16, 355.96, 398.02, 369.98, 412.04, 380.76, 423.91, 380.76, 447.64, 394.79, 455.19, 396.94, 485.39, 414.2, 488.63, 426.07, 495.1, 436.85, 505.89, 441.17, 517.75, 434.7, 525.3, 428.22, 560.9, 417.44, 570.61, 407.73, 576.0, 398.02, 563.06, 393.71, 550.11, 392.63, 531.78, 392.63, 527.46, 392.63, 523.15, 387.24, 513.44, 387.24, 500.49, 381.84, 477.84, 372.13, 472.45, 365.66, 447.64, 343.01, 432.54, 326.83, 422.83, 322.52, 409.89, 312.81, 395.87, 292.31, 368.9, 280.45, 332.22, 277.21, 311.73, 277.21, 289.08, 277.21, 280.45, 270.74, 268.58, 247.01, 265.35, 214.65, 265.35, 206.02, 277.21, 215.73, 291.24, 222.2, 300.94, 220.04, 309.57, 201.71, 349.48, 173.66, 373.21, 148.85, 391.55, 139.15, 406.65, 118.65, 418.52, 100.31, 416.36, 96.0, 415.28, 87.37, 414.2, 85.21, 412.04, 77.66, 403.42, 75.51, 395.87, 73.35, 382.92, 87.37, 375.37, 97.08, 366.74, 105.71, 363.51, 120.81, 355.96, 128.36, 360.27, 117.57, 366.74, 102.47, 368.9, 91.69, 367.82, 86.29, 367.82, 76.58, 367.82, 73.35, 363.51, 66.88, 358.11, 66.88, 351.64, 65.8, 345.17, 72.27, 327.91, 89.53, 320.36, 115.42, 322.52, 124.04, 318.2, 139.15, 303.1, 156.4, 298.79, 160.72, 283.69, 157.48, 270.74, 146.7, 258.88, 126.2, 241.62, 106.79, 222.2, 106.79, 222.2, 103.55, 227.6, 100.31, 230.83, 81.98, 232.99, 66.88, 232.99, 58.25, 240.54, 51.78, 245.93, 38.83, 243.78, 24.81, 231.91, 12.94, 212.49, 7.55, 181.21, 8.63, 175.82, 10.79, 160.72, 11.87, 145.62, 26.97, 139.15, 47.46, 143.46, 75.51, 153.17, 87.37, 171.51, 93.84, 175.82, 97.08, 175.82, 113.26, 171.51, 125.12, 161.8, 154.25, 157.48, 180.13, 154.25, 216.81, 172.58, 270.74, 187.69, 303.1, 199.55, 345.17, 210.34, 349.48, 223.28, 357.03, 257.8, 366.74, 266.43, 365.66, 290.16, 373.21, 297.71, 374.29, 285.84, 387.24, 271.82, 407.73, 257.8, 420.67, 244.85, 423.91, 232.99, 429.3, 229.75, 434.7, 234.07, 445.48, 241.62, 456.27, 244.85, 467.06, 250.25, 473.53]], "area": 67172.37955000009, "iscrowd": 0, "image_id": 502113, "bbox": [139.15, 7.55, 436.85, 465.98], "category_id": 1, "id": 480031}, {"segmentation": [[41.07, 91.57, 26.65, 87.07, 23.5, 63.18, 23.04, 44.7, 28.45, 42.0, 35.21, 39.29, 40.62, 36.59, 41.07, 32.08, 36.11, 24.42, 37.92, 17.21, 39.27, 10.9, 50.54, 8.65, 57.3, 13.61, 58.65, 21.27, 59.1, 28.03, 59.1, 33.89, 59.55, 36.14, 69.01, 37.04, 69.92, 47.86, 49.63, 64.53, 46.03, 91.12, 44.23, 105.54, 52.79, 122.22, 51.44, 125.37, 54.14, 133.04, 67.66, 128.53, 64.96, 142.5, 64.51, 145.2, 61.8, 151.06, 70.37, 195.23, 68.56, 200.19, 60.9, 204.24, 59.1, 202.89, 61.8, 192.53, 55.04, 166.39, 51.44, 152.87, 43.78, 138.44, 40.17, 113.21]], "area": 3308.2052, "iscrowd": 0, "image_id": 364256, "bbox": [23.04, 8.65, 47.33, 195.59], "category_id": 1, "id": 482239}, {"segmentation": [[88.79, 482.67, 96.74, 477.7, 100.72, 470.74, 100.72, 465.78, 97.74, 458.82, 88.79, 452.86, 84.82, 447.89, 84.82, 439.94, 96.74, 426.03, 111.65, 416.1, 120.59, 410.13, 128.54, 390.26, 131.52, 396.22, 131.52, 416.1, 131.52, 420.07, 136.49, 426.03, 139.47, 431.99, 144.44, 441.93, 144.44, 449.88, 154.37, 465.78, 177.23, 452.86, 182.19, 445.9, 202.07, 445.9, 218.96, 445.9, 238.83, 432.99, 232.87, 420.07, 226.91, 412.12, 215.98, 415.1, 206.04, 409.14, 199.09, 400.2, 182.19, 385.29, 179.21, 373.37, 179.21, 360.45, 182.19, 344.56, 180.21, 336.61, 170.27, 330.64, 166.3, 329.65, 150.4, 329.65, 131.52, 320.71, 107.67, 314.75, 87.8, 313.75, 78.86, 324.68, 97.74, 336.61, 108.67, 337.6, 104.69, 354.49, 97.74, 364.43, 93.76, 370.39, 101.71, 379.33, 106.68, 385.29, 90.78, 397.22, 78.86, 422.06, 70.91, 431.99, 65.94, 435.97, 49.05, 441.93, 63.95, 462.8, 63.95, 462.8, 81.84, 474.72, 90.78, 477.7, 90.78, 477.7]], "area": 13202.066550000003, "iscrowd": 0, "image_id": 408288, "bbox": [49.05, 313.75, 189.78, 168.92], "category_id": 1, "id": 492424}, {"segmentation": [[180.18, 215.5, 197.48, 195.32, 220.54, 180.9, 220.54, 153.51, 237.84, 118.92, 258.02, 113.15, 279.64, 117.48, 305.59, 150.63, 308.47, 159.28, 307.03, 170.81, 302.7, 185.23, 330.09, 235.68, 369.01, 276.04, 407.93, 316.4, 451.17, 340.9, 442.52, 352.43, 415.14, 346.67, 393.51, 323.6, 392.07, 323.6, 347.39, 283.24, 321.44, 257.3, 305.59, 255.86, 282.52, 303.42, 278.2, 329.37, 279.64, 332.25, 315.68, 392.79, 328.65, 437.48, 308.47, 489.37, 301.26, 509.55, 305.59, 536.94, 307.03, 539.82, 320.0, 581.62, 311.35, 590.27, 288.29, 570.09, 266.67, 554.23, 245.05, 542.7, 243.6, 532.61, 250.81, 508.11, 272.43, 490.81, 281.08, 438.92, 233.51, 404.32, 217.66, 460.54, 211.89, 482.16, 187.39, 506.67, 187.39, 508.11, 187.39, 516.76, 190.27, 529.73, 191.71, 541.26, 197.48, 552.79, 198.92, 572.97, 193.15, 574.41, 170.09, 574.41, 161.44, 557.12, 154.23, 532.61, 151.35, 526.85, 152.79, 508.11, 161.44, 495.14, 157.12, 483.6, 160.0, 480.72, 164.32, 389.91, 167.21, 330.81, 183.06, 284.68, 193.15, 248.65, 175.86, 264.5, 155.68, 274.59, 144.14, 261.62, 144.14, 258.74, 144.14, 245.77, 154.23, 225.59, 161.44, 228.47, 164.32, 235.68, 164.32, 245.77, 167.21, 244.32, 174.41, 228.47, 180.18, 214.05]], "area": 53812.03325, "iscrowd": 0, "image_id": 45136, "bbox": [144.14, 113.15, 307.03, 477.12], "category_id": 1, "id": 503539}, {"segmentation": [[225.89, 87.09, 232.01, 89.13, 234.73, 97.97, 244.26, 106.14, 244.94, 115.66, 244.94, 115.66, 245.62, 116.34, 241.54, 120.42, 245.62, 142.87, 246.3, 161.92, 243.58, 174.17, 238.13, 171.45, 239.49, 163.96, 238.13, 143.55, 234.05, 140.83, 224.53, 141.51, 220.45, 144.91, 219.09, 154.44, 219.77, 162.6, 215.0, 170.09, 211.6, 170.09, 211.6, 156.48, 211.6, 142.87, 217.04, 123.14, 215.0, 116.34, 217.04, 102.06, 221.81, 97.29, 224.53, 92.53, 225.89, 89.81]], "area": 1717.8744500000003, "iscrowd": 0, "image_id": 313372, "bbox": [211.6, 87.09, 34.7, 87.08], "category_id": 1, "id": 511817}, {"segmentation": [[388.17, 40.32, 387.36, 40.32, 385.74, 45.99, 388.17, 52.47, 388.98, 56.52, 388.98, 64.63, 389.79, 71.11, 387.36, 76.78, 379.26, 82.46, 371.16, 84.89, 363.86, 84.08, 359.0, 80.84, 354.95, 80.03, 351.71, 80.03, 348.47, 80.84, 345.22, 84.08, 345.22, 90.56, 348.47, 91.37, 354.95, 91.37, 359.81, 88.94, 371.16, 88.94, 381.69, 92.18, 387.36, 92.18, 392.23, 88.94, 393.04, 88.94, 393.85, 92.18, 393.04, 96.23, 388.98, 97.04, 384.12, 99.47, 368.72, 118.92, 359.81, 149.72, 359.81, 149.72, 363.86, 157.01, 356.57, 156.2, 347.65, 156.2, 348.47, 159.44, 354.95, 159.44, 367.1, 164.31, 367.91, 156.2, 375.21, 132.7, 373.59, 125.41, 376.02, 123.79, 385.74, 121.35, 393.85, 135.13, 396.28, 184.56, 393.04, 187.81, 391.42, 190.24, 395.47, 189.43, 401.14, 188.62, 403.57, 182.13, 403.57, 169.17, 403.57, 161.06, 404.38, 148.91, 405.19, 139.99, 413.3, 139.99, 421.4, 102.72, 415.73, 90.56, 415.73, 75.16, 414.11, 59.77, 406.0, 52.47, 405.19, 41.94, 403.57, 35.45, 400.33, 32.21, 393.85, 32.21, 388.98, 36.26]], "area": 4182.541299999997, "iscrowd": 0, "image_id": 364256, "bbox": [345.22, 32.21, 76.18, 158.03], "category_id": 1, "id": 519474}, {"segmentation": [[173.3, 75.64, 172.77, 105.86, 165.88, 110.1, 168.0, 87.83, 168.0, 68.22, 165.88, 42.25, 166.41, 35.36, 173.83, 32.18, 169.06, 26.88, 175.42, 23.16, 180.72, 32.18, 177.01, 36.42, 183.37, 35.36, 185.49, 49.67, 186.55, 75.64, 184.43, 85.18, 185.49, 103.21, 183.9, 114.34, 178.6, 110.63, 178.07, 101.09, 178.6, 86.24]], "area": 1280.9490500000009, "iscrowd": 0, "image_id": 313372, "bbox": [165.88, 23.16, 20.67, 91.18], "category_id": 1, "id": 520160}, {"segmentation": [[488.41, 332.3, 483.19, 355.52, 492.48, 359.01, 505.83, 384.55, 508.74, 401.39, 497.7, 407.2, 479.12, 404.3, 474.48, 384.55, 466.35, 370.04, 458.8, 359.01, 457.06, 336.94, 454.16, 271.91, 456.48, 262.62, 456.48, 250.42, 451.25, 203.39, 453.57, 185.97, 457.64, 167.39, 463.45, 152.88, 451.83, 152.88, 459.96, 145.91, 466.35, 122.68, 483.19, 116.3, 509.32, 120.36, 519.77, 126.75, 521.51, 143.01, 541.25, 134.3, 548.8, 149.39, 538.93, 164.49, 526.16, 173.2, 523.25, 188.88, 547.06, 198.17, 567.38, 202.23, 585.38, 203.39, 587.7, 210.94, 584.8, 216.75, 578.99, 224.88, 569.7, 223.72, 558.67, 215.01, 533.12, 215.01, 516.87, 210.36, 518.03, 227.2, 520.93, 230.68, 515.7, 239.97, 521.51, 250.42, 525.57, 264.94, 527.32, 277.72, 534.87, 306.75, 534.87, 317.78, 525.57, 321.26, 525.57, 345.65, 541.83, 364.81, 544.74, 382.23, 552.28, 397.91, 559.25, 419.39, 544.74, 431.01, 523.25, 435.65, 513.96, 427.52, 523.25, 418.23, 528.48, 409.52, 529.06, 392.68, 509.9, 365.97, 501.19, 345.65, 500.61, 323.01]], "area": 21226.001799999995, "iscrowd": 0, "image_id": 49194, "bbox": [451.25, 116.3, 136.45, 319.35], "category_id": 1, "id": 520315}, {"segmentation": [[513.43, 15.77, 511.82, 23.85, 503.73, 38.41, 500.5, 43.26, 483.52, 28.7, 468.96, 24.66, 463.3, 31.13, 463.3, 40.83, 469.77, 61.85, 470.58, 69.13, 477.05, 80.45, 481.9, 93.39, 485.94, 100.67, 495.65, 140.28, 495.65, 147.56, 492.41, 171.01, 491.6, 183.95, 494.03, 192.84, 506.16, 204.97, 519.9, 209.01, 538.5, 213.86, 561.14, 208.2, 564.37, 179.9, 565.99, 135.43, 569.23, 102.28, 577.31, 69.13, 573.27, 45.68, 547.39, 13.34, 545.78, 6.87, 517.48, 4.45, 514.24, 11.72]], "area": 15795.066299999999, "iscrowd": 0, "image_id": 364256, "bbox": [463.3, 4.45, 114.01, 209.41], "category_id": 1, "id": 533195}, {"segmentation": [[310.85, 35.03, 310.2, 43.4, 307.31, 44.69, 299.26, 51.44, 297.33, 55.63, 296.36, 69.14, 297.01, 77.83, 296.04, 82.34, 296.69, 88.13, 293.79, 93.6, 293.47, 125.78, 297.01, 125.46, 301.84, 118.7, 304.73, 117.74, 305.05, 101.0, 307.95, 96.5, 312.13, 94.89, 325.97, 92.31, 326.94, 100.36, 328.22, 115.16, 329.51, 124.49, 330.48, 125.78, 339.49, 124.49, 339.81, 106.47, 337.56, 96.82, 339.81, 91.03, 339.17, 84.27, 340.13, 70.75, 341.1, 62.39, 336.27, 52.09, 330.48, 47.26, 328.87, 45.65, 329.19, 38.89, 326.29, 32.14, 319.86, 30.53, 312.13, 33.42, 310.85, 36.0]], "area": 2931.9794000000006, "iscrowd": 0, "image_id": 45136, "bbox": [293.47, 30.53, 47.63, 95.25], "category_id": 1, "id": 556645}, {"segmentation": [[348.65, 120.94, 344.52, 101.52, 339.56, 96.15, 338.74, 73.44, 338.74, 54.44, 344.11, 47.83, 344.93, 37.51, 348.65, 26.77, 353.61, 16.86, 370.54, 23.88, 372.6, 37.51, 370.95, 45.35, 376.73, 48.66, 379.21, 47.01, 382.1, 56.92, 383.34, 66.0, 378.8, 73.85, 375.91, 75.09, 379.63, 84.18, 385.82, 90.37, 387.89, 101.11, 384.58, 115.15, 378.39, 123.41, 374.67, 118.46, 374.26, 106.07, 370.95, 104.83, 370.13, 120.52, 365.17, 120.11, 359.39, 104.83, 362.28, 101.11, 358.56, 102.76, 358.56, 125.07]], "area": 3604.3889499999996, "iscrowd": 0, "image_id": 45136, "bbox": [338.74, 16.86, 49.15, 108.21], "category_id": 1, "id": 556855}, {"segmentation": [[425.82, 164.89, 422.79, 153.27, 407.63, 151.25, 410.66, 141.14, 421.28, 136.59, 428.35, 127.5, 440.99, 123.96, 450.59, 129.52, 455.64, 135.58, 465.24, 141.14, 468.78, 147.21, 456.15, 151.25, 467.77, 165.9, 474.34, 173.99, 478.89, 188.14, 482.43, 199.77, 483.94, 206.34, 463.73, 208.36, 430.37, 209.37, 409.65, 209.87, 396.01, 201.28, 407.63, 184.1, 419.76, 166.41]], "area": 4670.4991, "iscrowd": 0, "image_id": 560819, "bbox": [396.01, 123.96, 87.93, 85.91], "category_id": 1, "id": 563713}, {"segmentation": [[75.5, 132.73, 78.99, 103.64, 99.94, 79.2, 112.74, 62.91, 137.17, 68.73, 137.17, 86.18, 154.63, 107.13, 167.43, 121.1, 168.59, 142.04, 147.65, 152.51, 134.85, 138.55, 123.21, 135.06, 109.25, 135.06, 108.08, 157.17, 91.79, 146.7]], "area": 5200.4126, "iscrowd": 0, "image_id": 560819, "bbox": [75.5, 62.91, 93.09, 94.26], "category_id": 1, "id": 564100}, {"segmentation": [[532.51, 134.02, 499.87, 120.42, 490.8, 102.28, 485.36, 83.24, 484.45, 69.64, 498.05, 71.46, 517.09, 66.92, 537.04, 66.02, 546.11, 44.26, 549.73, 31.56, 565.15, 30.66, 576.03, 43.35, 576.03, 64.2, 582.38, 71.46, 582.38, 82.34, 574.21, 110.44, 534.32, 134.02]], "area": 6089.078100000001, "iscrowd": 0, "image_id": 560819, "bbox": [484.45, 30.66, 97.93, 103.36], "category_id": 1, "id": 565395}, {"segmentation": [[169.17, 327.24, 172.58, 305.47, 173.94, 287.1, 182.78, 272.81, 192.3, 264.65, 211.35, 260.57, 231.08, 263.29, 246.05, 272.81, 250.13, 285.06, 243.33, 296.62, 237.89, 312.95, 233.8, 327.24, 233.8, 342.2, 232.44, 353.09, 224.28, 361.25, 267.14, 384.38, 279.38, 406.83, 290.27, 436.09, 291.63, 462.62, 284.83, 480.99, 275.98, 504.8, 271.9, 517.04, 263.74, 543.58, 257.61, 557.86, 251.49, 573.51, 243.33, 582.35, 239.25, 625.21, 239.25, 632.02, 203.19, 636.78, 95.7, 624.53, 116.11, 547.66, 131.76, 461.94, 122.91, 452.41, 67.81, 483.03, 114.07, 344.93, 109.99, 336.08, 113.39, 323.16, 124.95, 323.16, 134.48, 327.92, 143.32, 339.48, 150.13, 352.41, 141.28, 373.5, 126.31, 395.27, 160.33, 386.42, 147.4, 376.9, 176.66, 356.49]], "area": 50504.0047, "iscrowd": 0, "image_id": 111031, "bbox": [67.81, 260.57, 223.82, 376.21], "category_id": 1, "id": 565641}, {"segmentation": [[411.03, 100.79, 412.17, 89.71, 414.44, 85.45, 418.13, 83.46, 422.11, 84.88, 426.37, 84.32, 431.49, 84.6, 432.91, 86.3, 434.04, 90.0, 435.75, 98.23, 436.88, 102.5, 438.3, 103.92, 442.56, 105.34, 444.84, 108.46, 447.11, 125.5, 406.2, 123.52, 403.08, 110.73, 405.92, 107.04]], "area": 1275.1805000000002, "iscrowd": 0, "image_id": 45136, "bbox": [403.08, 83.46, 44.03, 42.04], "category_id": 1, "id": 566572}, {"segmentation": [[575.44, 110.77, 562.17, 115.74, 541.71, 133.44, 538.94, 151.68, 543.37, 159.98, 564.93, 151.68, 572.67, 148.37, 576.54, 134.54, 580.97, 135.09, 584.28, 141.73, 608.06, 142.28, 613.04, 137.86, 613.04, 127.91, 610.83, 118.51, 599.77, 110.77, 604.74, 88.1, 602.53, 79.25, 595.9, 75.38, 585.39, 75.93, 579.31, 81.46, 574.33, 85.33, 570.46, 93.07, 569.91, 98.05, 569.91, 99.71, 569.91, 100.81]], "area": 3196.3538499999972, "iscrowd": 0, "image_id": 560819, "bbox": [538.94, 75.38, 74.1, 84.6], "category_id": 1, "id": 566844}, {"segmentation": [[136.1, 247.34, 137.63, 237.34, 131.48, 216.56, 134.56, 205.79, 152.25, 192.71, 162.26, 185.78, 156.87, 167.31, 157.64, 158.08, 158.41, 152.69, 170.72, 152.69, 183.8, 155.77, 183.8, 159.62, 185.34, 167.31, 186.11, 176.55, 183.03, 182.7, 189.19, 188.86, 203.04, 198.86, 203.04, 205.02, 170.72, 220.41, 151.49, 235.8, 142.25, 242.72, 141.48, 243.49]], "area": 3084.6329, "iscrowd": 0, "image_id": 560819, "bbox": [131.48, 152.69, 71.56, 94.65], "category_id": 1, "id": 567038}, {"segmentation": [[439.86, 90.46, 439.86, 74.19, 441.73, 51.02, 450.5, 42.26, 457.38, 37.88, 455.51, 28.49, 462.39, 21.6, 469.9, 25.36, 471.16, 30.36, 471.16, 35.37, 472.41, 42.26, 479.29, 45.39, 483.68, 51.65, 486.81, 66.05, 486.81, 74.19, 486.81, 83.58, 479.29, 84.2, 469.28, 89.21, 465.52, 91.09, 464.9, 98.6, 459.26, 100.48, 453.0, 99.23, 451.12, 100.48, 445.49, 98.6]], "area": 2492.6612999999993, "iscrowd": 0, "image_id": 45136, "bbox": [439.86, 21.6, 46.95, 78.88], "category_id": 1, "id": 568084}, {"segmentation": [[218.13, 95.93, 217.66, 84.23, 217.66, 79.55, 215.32, 75.34, 213.92, 67.86, 217.19, 53.82, 220.47, 46.8, 225.15, 44.46, 231.23, 42.12, 233.1, 42.12, 233.57, 37.44, 237.31, 34.64, 239.18, 28.55, 241.05, 24.34, 253.22, 21.53, 256.5, 25.75, 256.5, 30.42, 259.77, 36.51, 258.37, 44.46, 261.17, 48.2, 261.64, 54.29, 262.11, 60.84, 259.77, 68.32, 256.96, 71.6, 257.43, 77.21, 259.77, 82.36, 263.05, 87.51, 264.45, 91.25, 264.92, 95.93, 266.79, 96.87, 273.34, 94.06, 275.21, 97.8, 278.49, 110.9, 249.48, 106.69, 245.27, 101.54, 232.16, 100.61, 219.53, 98.27]], "area": 3214.5620500000014, "iscrowd": 0, "image_id": 45136, "bbox": [213.92, 21.53, 64.57, 89.37], "category_id": 1, "id": 569373}, {"segmentation": [[146.95, 53.46, 142.34, 55.82, 133.48, 64.56, 126.64, 75.78, 124.98, 80.85, 121.44, 85.81, 118.96, 94.79, 117.9, 107.3, 114.71, 105.65, 114.24, 96.79, 117.66, 86.4, 116.13, 85.93, 112.94, 85.46, 111.29, 83.1, 113.53, 70.7, 115.06, 65.27, 116.25, 59.48, 117.66, 58.06, 118.96, 56.76, 119.91, 53.69, 120.85, 49.44, 126.75, 38.58, 131.6, 31.38, 134.67, 30.08, 138.21, 29.84, 144.11, 32.8, 147.42, 37.16, 148.6, 40.12, 147.65, 43.54, 147.54, 45.55, 149.66, 47.44, 149.42, 48.97, 147.77, 50.03, 146.47, 51.33], [140.45, 69.28, 141.4, 70.82, 141.28, 71.52, 142.69, 73.77, 142.69, 74.59, 139.86, 76.48, 135.61, 79.08, 133.6, 79.55, 134.67, 76.48], [146.47, 79.79, 148.13, 84.51, 140.1, 91.13, 134.07, 94.55, 128.88, 97.97, 126.4, 92.66, 131.6, 83.1, 135.14, 80.14, 146.0, 72.94]], "area": 1424.8388000000002, "iscrowd": 0, "image_id": 45136, "bbox": [111.29, 29.84, 38.37, 77.46], "category_id": 1, "id": 569897}, {"segmentation": [[4.38, 120.95, 10.24, 111.65, 16.91, 107.8, 20.35, 103.76, 19.54, 96.07, 19.75, 87.18, 23.59, 84.75, 28.64, 84.95, 34.1, 86.98, 38.14, 93.85, 38.95, 99.72, 36.32, 105.78, 32.89, 110.23, 41.38, 116.29, 42.8, 126.0, 3.57, 123.78, 3.57, 123.78]], "area": 920.1889, "iscrowd": 0, "image_id": 45136, "bbox": [3.57, 84.75, 39.23, 41.25], "category_id": 1, "id": 570287}, {"segmentation": [[372.31, 435.44, 368.61, 486.02, 379.71, 482.73, 418.77, 447.37, 432.75, 416.12, 427.4, 411.6, 408.49, 416.12]], "area": 2427.5455999999986, "iscrowd": 0, "image_id": 144383, "bbox": [368.61, 411.6, 64.14, 74.42], "category_id": 42, "id": 646560}, {"segmentation": [[58.2, 345.31, 63.42, 346.75, 72.07, 343.32, 79.63, 333.42, 90.61, 296.52, 93.13, 282.84, 94.39, 250.08, 94.39, 246.11, 94.39, 215.15, 93.49, 209.39, 88.63, 199.85, 79.45, 197.51, 78.91, 194.63, 79.99, 191.93, 90.79, 194.45, 92.59, 187.25, 90.79, 173.39, 85.39, 144.04, 84.67, 138.82, 76.57, 105.88, 74.59, 101.74, 61.08, 66.1, 43.08, 34.41, 38.58, 29.73, 27.78, 16.95, 18.96, 39.45, 13.02, 65.38, 11.58, 69.88, 8.88, 92.2, 6.54, 106.42, 5.64, 135.4, 5.64, 141.7, 5.82, 168.53, 6.72, 178.61, 7.98, 208.85, 9.24, 214.43, 13.92, 238.55, 15.72, 249.53, 24.36, 281.76, 25.98, 287.34, 36.06, 312.9, 40.56, 323.52, 51.0, 339.0, 54.96, 344.04]], "area": 20599.19215, "iscrowd": 0, "image_id": 107367, "bbox": [5.64, 16.95, 88.75, 329.8], "category_id": 42, "id": 647581}, {"segmentation": [[113.28, 349.28, 144.39, 331.73, 183.48, 314.18, 199.44, 299.02, 210.61, 288.65, 236.93, 277.49, 256.08, 274.29, 274.43, 274.29, 291.18, 272.7, 303.94, 271.9, 325.48, 272.7, 346.22, 274.29, 358.99, 275.89, 367.76, 275.89, 386.91, 278.28, 398.88, 279.88, 414.83, 285.46, 437.17, 307.0, 508.17, 330.93, 548.85, 349.28]], "area": 21195.28914999999, "iscrowd": 0, "image_id": 124416, "bbox": [113.28, 271.9, 435.57, 77.38], "category_id": 42, "id": 647803}, {"segmentation": [[319.07, 156.64, 245.81, 142.18, 242.92, 144.11, 253.52, 159.54, 272.8, 167.25, 297.86, 173.03, 309.43, 174.0, 346.06, 178.82, 376.91, 185.56, 392.33, 190.38, 375.95, 176.89, 381.73, 166.28, 353.77, 165.32, 327.75, 159.54, 329.68, 166.28, 333.53, 170.14, 313.29, 170.14]], "area": 2236.7779, "iscrowd": 0, "image_id": 240418, "bbox": [242.92, 142.18, 149.41, 48.2], "category_id": 42, "id": 649202}, {"segmentation": [[441.47, 175.86, 421.26, 176.67, 410.75, 183.14, 409.94, 198.5, 422.88, 221.14, 469.77, 279.36, 554.67, 359.0, 640.0, 359.0, 640.0, 323.02, 614.5, 281.78, 578.12, 243.78, 510.2, 201.74, 471.39, 180.71]], "area": 21416.73885, "iscrowd": 0, "image_id": 364256, "bbox": [409.94, 175.86, 230.06, 183.14], "category_id": 42, "id": 651727}, {"segmentation": [[359.0, 149.11, 342.87, 163.63, 337.22, 207.2, 347.71, 215.27, 384.01, 213.65, 388.04, 199.13, 379.98, 161.21]], "area": 2555.2350000000006, "iscrowd": 0, "image_id": 364256, "bbox": [337.22, 149.11, 50.82, 66.16], "category_id": 42, "id": 652706}, {"segmentation": [[222.66, 237.74, 274.29, 268.4, 338.83, 347.46, 293.65, 353.91, 204.11, 319.31, 159.73, 273.33, 147.63, 247.51, 132.31, 213.63, 149.25, 199.92, 179.9, 209.6, 185.55, 232.99]], "area": 13114.923000000006, "iscrowd": 0, "image_id": 364256, "bbox": [132.31, 199.92, 206.52, 153.99], "category_id": 42, "id": 653190}, {"segmentation": [[87.46, 194.96, 81.32, 206.37, 83.95, 245.83, 97.11, 266.88, 108.51, 289.69, 116.4, 309.86, 124.3, 318.63, 130.44, 335.29, 157.63, 336.17, 171.66, 339.68, 180.43, 361.61, 177.8, 374.76, 186.57, 390.55, 200.6, 403.71, 204.11, 412.48, 223.41, 417.74, 230.42, 428.26, 233.05, 435.28, 224.28, 445.81, 223.41, 448.44, 253.23, 451.95, 261.12, 450.19, 321.64, 439.67, 331.29, 434.4, 326.02, 415.11, 299.71, 381.78, 241.82, 299.33, 200.6, 251.1, 145.35, 206.37, 99.74, 194.09]], "area": 27149.017750000006, "iscrowd": 0, "image_id": 408288, "bbox": [81.32, 194.09, 249.97, 257.86], "category_id": 42, "id": 654187}, {"segmentation": [[238.86, 456.74, 265.05, 451.5, 283.39, 441.89, 415.23, 427.92, 402.13, 455.86, 384.67, 478.57, 367.21, 482.93, 348.87, 487.3, 327.04, 487.3, 313.95, 479.44, 292.99, 466.34, 283.39, 462.85, 241.48, 470.71], [215.28, 462.85, 199.57, 470.71, 203.93, 480.31, 213.54, 481.19], [310.45, 406.1, 327.04, 382.52, 354.98, 369.42, 377.68, 364.19, 391.65, 368.55, 412.61, 393.87]], "area": 8491.111700000001, "iscrowd": 0, "image_id": 521400, "bbox": [199.57, 364.19, 215.66, 123.11], "category_id": 43, "id": 655484}, {"segmentation": [[584.47, 217.95, 600.19, 206.17, 610.67, 206.17, 611.98, 215.99, 613.28, 229.74, 604.12, 242.84, 592.98, 260.52, 582.51, 269.03, 570.06, 270.34, 568.76, 260.52, 572.03, 238.91, 579.23, 224.5]], "area": 1738.4159499999998, "iscrowd": 0, "image_id": 49194, "bbox": [568.76, 206.17, 44.52, 64.17], "category_id": 43, "id": 655898}, {"segmentation": [[134.56, 372.2, 153.07, 364.2, 161.57, 363.95, 169.08, 361.2, 175.83, 357.94, 179.84, 355.69, 182.09, 351.94, 182.09, 348.69, 182.09, 347.19, 180.84, 344.18, 170.08, 348.94, 153.07, 356.19, 135.31, 366.7, 136.56, 370.7]], "area": 427.4564499999998, "iscrowd": 0, "image_id": 313372, "bbox": [134.56, 344.18, 47.53, 28.02], "category_id": 43, "id": 656016}, {"segmentation": [[228.72, 364.8, 234.96, 373.47, 239.68, 383.52, 246.83, 386.57, 252.77, 387.48, 256.88, 384.28, 259.16, 379.41, 258.25, 373.02, 256.57, 368.6, 253.22, 366.47, 246.83, 365.25, 243.33, 365.25, 240.13, 366.01, 235.41, 365.41, 232.22, 363.58, 227.8, 359.32, 223.69, 359.77]], "area": 473.7416999999998, "iscrowd": 0, "image_id": 114868, "bbox": [223.69, 359.32, 35.47, 28.16], "category_id": 43, "id": 656144}, {"segmentation": [[153.79, 222.3, 153.32, 194.22, 141.16, 170.36, 127.59, 139.48, 117.3, 111.4, 125.72, 79.59, 137.88, 59.93, 153.79, 51.51, 171.1, 51.51, 184.67, 65.75, 187.48, 95.23, 182.33, 126.57, 174.38, 148.1, 165.96, 176.64, 165.49, 201.44, 168.3, 242.34, 163.15, 240.94, 156.13, 236.26, 154.73, 233.45, 162.68, 235.79, 164.09, 232.99]], "area": 7147.97295, "iscrowd": 0, "image_id": 45136, "bbox": [117.3, 51.51, 70.18, 190.83], "category_id": 43, "id": 656621}, {"segmentation": [[62.54, 327.69, 64.86, 317.22, 71.85, 313.73, 81.15, 323.04, 86.97, 339.33, 103.26, 348.64, 116.07, 342.82, 135.85, 362.6, 141.67, 394.02, 143.99, 432.42, 132.36, 439.4, 118.39, 435.91, 111.41, 419.62, 97.45, 370.75, 79.99, 346.31, 68.35, 333.51]], "area": 3812.4297500000007, "iscrowd": 0, "image_id": 560819, "bbox": [62.54, 313.73, 81.45, 125.67], "category_id": 43, "id": 657036}, {"segmentation": [[115.52, 158.86, 126.16, 152.78, 136.42, 141.0, 153.52, 131.88, 171.39, 127.7, 186.97, 128.46, 197.61, 133.78, 199.13, 145.56, 185.83, 154.68, 173.29, 159.24, 158.08, 161.14, 139.84, 161.14, 120.84, 161.14, 115.9, 161.14]], "area": 1838.6604, "iscrowd": 0, "image_id": 521400, "bbox": [115.52, 127.7, 83.61, 33.44], "category_id": 43, "id": 657621}, {"segmentation": [[141.46, 204.33, 140.22, 216.72, 137.74, 221.67, 140.22, 230.04, 149.2, 234.99, 156.63, 241.5, 164.38, 251.1, 166.38, 260.08, 165.62, 268.76, 160.04, 279.91, 155.08, 285.79, 147.96, 290.13, 141.46, 294.16, 133.71, 298.19, 120.39, 300.66, 109.55, 302.52, 98.4, 299.42, 90.34, 291.99, 87.25, 282.7, 88.8, 273.71, 94.37, 263.49, 100.88, 256.06, 109.24, 247.69, 115.13, 239.33, 123.49, 230.66, 129.06, 222.6, 129.06, 220.13, 129.06, 216.41, 130.61, 202.47]], "area": 4313.49985, "iscrowd": 0, "image_id": 398534, "bbox": [87.25, 202.47, 79.13, 100.05], "category_id": 43, "id": 658756}, {"segmentation": [[153.1, 228.95, 152.33, 253.57, 155.02, 272.8, 160.4, 285.49, 165.79, 297.03, 173.87, 301.65, 178.1, 299.34, 182.71, 291.26, 183.1, 281.26, 181.17, 270.49, 171.94, 248.95, 166.17, 237.03, 158.1, 222.41]], "area": 1442.677349999999, "iscrowd": 0, "image_id": 460676, "bbox": [152.33, 222.41, 30.77, 79.24], "category_id": 43, "id": 659114}, {"segmentation": [[46.6, 314.22, 47.62, 315.92, 43.55, 324.05, 40.84, 327.77, 19.5, 349.11, 14.08, 346.07, 37.46, 323.71, 46.6, 312.87]], "area": 231.5322500000004, "iscrowd": 0, "image_id": 460676, "bbox": [14.08, 312.87, 33.54, 36.24], "category_id": 43, "id": 659182}, {"segmentation": [[15.1, 4.31, 99.24, 0.0, 110.02, 7.55, 129.44, 105.71, 90.61, 127.28, 73.35, 116.49]], "area": 8823.765150000001, "iscrowd": 0, "image_id": 448897, "bbox": [15.1, 0.0, 114.34, 127.28], "category_id": 47, "id": 677758}, {"segmentation": [[34.52, 276.13, 57.17, 328.99, 129.44, 386.16, 149.93, 415.28, 171.51, 435.78, 222.2, 447.64, 279.37, 459.51, 343.01, 461.66, 415.28, 446.56, 441.17, 432.54, 483.24, 418.52, 523.15, 392.63, 555.51, 353.8, 577.08, 302.02, 586.79, 259.96, 587.87, 204.94, 573.84, 180.13, 530.7, 143.46, 520.99, 116.49, 500.49, 105.71, 456.27, 85.21, 426.07, 72.27, 404.49, 63.64, 381.84, 62.56, 330.07, 70.11, 272.9, 71.19, 237.3, 70.11, 199.55, 78.74, 176.9, 90.61, 134.83, 107.87, 125.12, 112.18, 96.0, 133.75, 79.82, 161.8, 61.48, 196.31, 47.46, 225.44, 34.52, 243.78, 29.12, 264.27, 29.12, 264.27]], "area": 170302.81795, "iscrowd": 0, "image_id": 448897, "bbox": [29.12, 62.56, 558.75, 399.1], "category_id": 59, "id": 1072868}, {"segmentation": [[154.49, 392.46, 154.49, 392.46, 149.69, 388.62, 140.09, 386.7, 126.66, 381.9, 114.19, 373.27, 109.39, 370.39, 104.59, 366.55, 98.83, 354.07, 94.04, 341.6, 92.12, 334.88, 91.16, 322.41, 90.2, 315.69, 87.32, 302.26, 86.36, 300.34, 83.48, 289.78, 80.6, 276.35, 79.64, 268.67, 79.64, 256.2, 79.64, 248.52, 80.6, 234.13, 94.04, 222.62, 112.27, 213.02, 113.23, 212.06, 139.13, 207.26, 152.57, 203.42, 187.11, 204.38, 190.95, 204.38, 214.94, 201.51, 262.92, 205.34, 277.31, 211.1, 286.91, 214.94, 309.93, 221.66, 331.04, 225.49, 332.96, 224.53]], "area": 28854.10235, "iscrowd": 0, "image_id": 250345, "bbox": [79.64, 201.51, 253.32, 190.95], "category_id": 59, "id": 1075136}, {"segmentation": [[139.43, 50.78, 162.67, 79.18, 210.0, 111.03, 240.13, 137.71, 276.28, 174.72, 294.35, 195.37, 222.91, 24.1, 196.23, 30.12, 177.3, 36.15, 153.2, 52.5, 153.2, 52.5]], "area": 7780.334300000003, "iscrowd": 0, "image_id": 167647, "bbox": [139.43, 24.1, 154.92, 171.27], "category_id": 59, "id": 1075978}, {"segmentation": [[452.18, 39.53, 487.82, 57.75, 519.5, 88.64, 524.25, 99.72, 501.28, 121.9, 449.8, 135.36, 383.27, 145.66, 339.72, 153.58, 306.45, 167.04, 300.12, 167.83, 320.71, 144.07, 344.47, 123.48, 379.31, 94.97, 410.2, 75.17, 433.17, 53.79, 441.09, 45.87, 449.01, 41.12, 449.01, 41.12]], "area": 11754.148799999999, "iscrowd": 0, "image_id": 167647, "bbox": [300.12, 39.53, 224.13, 128.3], "category_id": 59, "id": 1076474}, {"segmentation": [[351.2, 216.86, 484.57, 394.38, 546.94, 355.03, 560.38, 340.64, 570.93, 322.41, 577.65, 299.38, 583.41, 272.51, 585.33, 250.44, 584.37, 227.41, 581.49, 222.62, 559.42, 206.3, 542.15, 193.83, 528.71, 170.8, 516.24, 154.49, 493.21, 134.34, 466.34, 134.34, 443.31, 132.42, 430.84, 130.5, 413.57, 126.66]], "area": 38417.61965, "iscrowd": 0, "image_id": 250345, "bbox": [351.2, 126.66, 234.13, 267.72], "category_id": 59, "id": 1076744}, {"segmentation": [[237.55, 28.4, 284.02, 22.38, 322.75, 24.96, 358.9, 34.43, 413.98, 34.43, 426.03, 48.2, 429.48, 55.08, 372.67, 99.84, 335.66, 127.38, 303.82, 166.97, 295.21, 178.16, 271.97, 133.4, 253.9, 91.23]], "area": 15662.38505, "iscrowd": 0, "image_id": 167647, "bbox": [237.55, 22.38, 191.93, 155.78], "category_id": 59, "id": 1077339}, {"segmentation": [[81.38, 227.06, 99.47, 187.88, 99.47, 180.85, 106.5, 177.83, 114.54, 175.82, 124.58, 173.81, 134.63, 162.76, 152.72, 154.72, 168.79, 147.69, 184.87, 140.66, 201.95, 135.64, 200.94, 132.62, 240.12, 116.55, 248.16, 117.55, 253.19, 120.56, 254.19, 113.53, 273.28, 110.52, 274.28, 115.54, 296.39, 108.51, 306.44, 113.53, 345.62, 117.55, 346.62, 115.54, 362.7, 115.54, 381.79, 116.55, 381.79, 114.54, 405.9, 122.57, 412.93, 127.6, 351.65, 217.02, 432.02, 321.51, 346.62, 225.05, 190.89, 363.7, 190.89, 361.69, 329.54, 225.05, 298.4, 217.02, 275.29, 209.98, 258.21, 204.96, 238.12, 202.95, 209.98, 201.95, 176.83, 204.96, 148.7, 201.95, 132.62, 209.98, 111.52, 211.99, 100.47, 219.03, 78.37, 237.11, 83.39, 224.05]], "area": 24965.094000000005, "iscrowd": 0, "image_id": 250345, "bbox": [78.37, 108.51, 353.65, 255.19], "category_id": 59, "id": 1077740}, {"segmentation": [[21.81, 487.55, 29.84, 435.36, 44.75, 426.18, 63.68, 413.57, 93.5, 408.41, 141.67, 396.36, 150.27, 394.07, 166.9, 406.69, 201.31, 406.11, 244.9, 406.69, 288.48, 412.42, 305.68, 429.62, 307.98, 510.48, 283.89, 521.38, 251.78, 527.12, 221.96, 530.56, 192.71, 521.38, 174.93, 505.9, 165.18, 505.9, 147.98, 509.91, 131.92, 525.97, 79.16, 521.95, 41.31, 512.2, 25.83, 500.74]], "area": 30935.676299999992, "iscrowd": 0, "image_id": 242379, "bbox": [21.81, 394.07, 286.17, 136.49], "category_id": 61, "id": 1083905}, {"segmentation": [[2.25, 311.24, 156.18, 307.87, 167.42, 312.36, 162.92, 303.37, 167.42, 282.02, 221.35, 159.55, 374.16, 178.65, 375.0, 248.31, 368.54, 306.74, 335.96, 401.12, 324.72, 416.85, 314.61, 424.72, 305.62, 433.71, 52.81, 465.17, 38.2, 455.06, 20.22, 422.47, 22.47, 403.37, 0.0, 326.97, 0.0, 313.48]], "area": 71847.65464999998, "iscrowd": 0, "image_id": 465007, "bbox": [0.0, 159.55, 375.0, 305.62], "category_id": 73, "id": 1100281}, {"segmentation": [[10.11, 226.97, 58.43, 219.1, 91.01, 167.42, 124.72, 175.28, 83.15, 240.45, 75.28, 261.8, 8.99, 265.17, 7.87, 247.19, 22.47, 248.31, 14.61, 228.09]], "area": 4799.960550000002, "iscrowd": 0, "image_id": 465007, "bbox": [7.87, 167.42, 116.85, 97.75], "category_id": 73, "id": 1103348}, {"segmentation": [[139.82, 280.94, 134.73, 267.19, 141.86, 251.92, 161.21, 246.31, 247.78, 239.69, 278.85, 235.62, 287.5, 237.66, 290.05, 272.29, 273.24, 289.09, 241.67, 286.54, 208.06, 290.62, 141.35, 282.47], [329.26, 238.17, 346.07, 240.71, 350.65, 254.97, 347.59, 277.38, 341.99, 284.51, 320.09, 289.6, 326.72, 268.72]], "area": 7676.350500000001, "iscrowd": 0, "image_id": 31345, "bbox": [134.73, 235.62, 215.92, 55.0], "category_id": 75, "id": 1108354}, {"segmentation": [[123.68, 323.89, 121.95, 296.22, 147.03, 250.38, 159.14, 265.95, 184.22, 266.81, 185.08, 249.51, 172.11, 223.57, 186.81, 201.08, 217.95, 197.62, 233.51, 203.68, 236.11, 224.43, 224.0, 239.14, 219.68, 263.35, 210.16, 291.03, 192.86, 313.51, 163.46, 317.84, 128.86, 323.89]], "area": 7534.094049999998, "iscrowd": 0, "image_id": 339202, "bbox": [121.95, 197.62, 114.16, 126.27], "category_id": 75, "id": 1110346}, {"segmentation": [[191.49, 282.34, 176.41, 287.12, 168.86, 287.42, 158.7, 277.57, 156.4, 273.57, 163.94, 273.11, 169.33, 271.26, 171.94, 270.49, 183.34, 268.33, 189.03, 267.87, 192.42, 267.87, 194.57, 278.8, 192.88, 280.96]], "area": 503.51074999999986, "iscrowd": 0, "image_id": 324285, "bbox": [156.4, 267.87, 38.17, 19.55], "category_id": 75, "id": 1110429}, {"segmentation": [[240.49, 177.61, 238.77, 201.65, 243.35, 202.45, 244.04, 182.76, 243.47, 176.35, 240.37, 176.7]], "area": 103.8075999999996, "iscrowd": 0, "image_id": 100726, "bbox": [238.77, 176.35, 5.27, 26.1], "category_id": 84, "id": 1147420}, {"segmentation": [[237.72, 209.28, 236.57, 234.86, 239.53, 235.27, 240.1, 229.18, 241.58, 208.54]], "area": 90.30035000000021, "iscrowd": 0, "image_id": 100726, "bbox": [236.57, 208.54, 5.01, 26.73], "category_id": 84, "id": 1147532}, {"segmentation": [[218.37, 285.51, 227.48, 307.23, 229.03, 307.52, 230.68, 310.62, 234.94, 310.33, 240.56, 310.81, 241.24, 309.46, 241.15, 295.79, 241.92, 281.44, 240.95, 280.09, 237.07, 280.47, 232.03, 279.21, 229.42, 279.99, 229.9, 281.73, 225.25, 281.35, 224.76, 282.99, 220.98, 282.99, 217.3, 281.44, 216.72, 282.99, 219.24, 286.77]], "area": 544.6715999999999, "iscrowd": 0, "image_id": 100726, "bbox": [216.72, 279.21, 25.2, 31.6], "category_id": 84, "id": 1147988}, {"segmentation": [[233.62, 207.15, 237.93, 207.02, 236.45, 235.75, 231.59, 235.61]], "area": 131.11684999999983, "iscrowd": 0, "image_id": 100726, "bbox": [231.59, 207.02, 6.34, 28.73], "category_id": 84, "id": 1148644}, {"segmentation": [[310.83, 305.28, 268.65, 344.13, 248.67, 344.13, 194.27, 311.94, 164.3, 311.94, 168.74, 295.29, 208.7, 277.53, 215.36, 289.74, 255.33, 317.49, 278.64, 273.09, 278.64, 248.67, 271.98, 227.57, 295.29, 175.4, 313.05, 156.53, 324.15, 134.32, 337.47, 129.88, 346.36, 135.43, 351.91, 145.42, 348.58, 167.63, 373.0, 154.31, 385.21, 158.75, 385.21, 172.07, 345.24, 186.5, 346.36, 260.88, 381.88, 313.05, 391.87, 327.48, 364.12, 330.81, 319.71, 305.28], [375.22, 366.34, 391.87, 408.52, 440.71, 398.53, 440.71, 391.87, 426.28, 388.54, 408.52, 385.21, 392.98, 356.35, 379.66, 363.01]], "area": 18330.778799999996, "iscrowd": 0, "image_id": 557323, "bbox": [164.3, 129.88, 276.41, 278.64], "category_id": 1, "id": 1210230}, {"segmentation": [[1.26, 122.2, 7.88, 119.44, 14.5, 119.99, 22.77, 132.13, 33.26, 150.88, 39.88, 176.81, 43.74, 186.74, 37.12, 199.98, 48.15, 205.5, 52.56, 210.47, 52.56, 216.54, 42.08, 212.12, 32.15, 203.85, 0.15, 204.4, 0.15, 127.16]], "area": 2926.1310500000004, "iscrowd": 0, "image_id": 560819, "bbox": [0.15, 119.44, 52.41, 97.1], "category_id": 1, "id": 1219827}, {"segmentation": [[218.68, 98.75, 217.07, 85.24, 216.42, 81.05, 205.8, 73.97, 205.48, 67.54, 207.73, 64.96, 207.73, 59.17, 212.24, 56.27, 219.32, 61.42, 230.26, 61.1, 244.42, 68.18, 245.71, 93.28, 251.5, 116.13, 248.6, 119.35, 238.95, 97.14, 232.19, 87.17, 223.82, 85.88, 221.89, 97.47]], "area": 1151.1394000000003, "iscrowd": 0, "image_id": 313372, "bbox": [205.48, 56.27, 46.02, 63.08], "category_id": 1, "id": 1222337}, {"segmentation": [[67.61, 217.97, 69.39, 205.53, 75.9, 200.79, 80.05, 199.9, 83.31, 199.31, 84.79, 196.94, 84.5, 180.93, 89.53, 170.27, 91.9, 169.08, 95.16, 167.9, 100.2, 166.42, 106.13, 168.19, 110.57, 172.64, 114.42, 182.71, 116.79, 187.75, 121.83, 190.71, 122.72, 193.97, 122.72, 199.31, 122.72, 208.2, 122.13, 220.34, 126.57, 222.42, 131.02, 228.64, 132.8, 244.05, 132.5, 247.9, 112.05, 248.49, 102.57, 246.42, 100.5, 246.42, 99.61, 230.42, 94.87, 227.75, 85.09, 222.71, 74.13, 219.46, 71.76, 218.57]], "area": 2979.3833500000005, "iscrowd": 0, "image_id": 560819, "bbox": [67.61, 166.42, 65.19, 82.07], "category_id": 1, "id": 1251155}, {"segmentation": [[545.45, 195.9, 511.32, 196.95, 511.84, 187.5, 516.05, 180.67, 518.67, 178.05, 520.25, 172.8, 520.25, 167.02, 520.77, 163.34, 526.02, 163.34, 531.8, 162.82, 535.48, 164.92, 536.53, 167.54, 536.53, 173.85, 539.68, 177.52, 543.35, 183.82]], "area": 803.1489500000007, "iscrowd": 0, "image_id": 557323, "bbox": [511.32, 162.82, 34.13, 34.13], "category_id": 1, "id": 1252553}, {"segmentation": [[162.16, 13.88, 166.31, 8.85, 170.45, 6.78, 176.67, 6.18, 180.82, 6.48, 183.48, 9.74, 189.7, 11.22, 186.15, 17.73, 183.19, 31.35, 178.15, 31.35, 176.67, 34.31, 183.19, 35.8, 192.07, 60.67, 190.89, 69.26, 185.85, 69.85, 179.63, 64.22, 175.78, 53.86, 174.3, 33.72, 142.91, 31.95, 139.66, 25.43, 146.76, 21.58, 161.27, 24.54, 165.12, 24.54]], "area": 1161.9959499999993, "iscrowd": 0, "image_id": 45136, "bbox": [139.66, 6.18, 52.41, 63.67], "category_id": 1, "id": 1254471}, {"segmentation": [[403.77, 112.13, 407.82, 111.46, 409.16, 110.11, 411.86, 107.42, 412.53, 104.72, 414.56, 100.0, 415.23, 94.61, 417.25, 89.89, 419.27, 83.83, 422.64, 83.83, 424.67, 83.83, 427.36, 85.18, 430.73, 96.63, 428.71, 100.68, 430.73, 102.02, 435.45, 103.37, 441.51, 103.37, 445.56, 103.37, 450.28, 120.89, 452.97, 128.31, 441.51, 147.18, 438.14, 147.85, 434.77, 131.68, 434.77, 131.68, 430.06, 131.0, 426.69, 131.0, 425.34, 131.0, 419.27, 134.37, 424.67, 144.48, 421.97, 149.87, 415.9, 148.53, 411.86, 130.33, 412.53, 128.31]], "area": 1682.167850000001, "iscrowd": 0, "image_id": 557323, "bbox": [403.77, 83.83, 49.2, 66.04], "category_id": 1, "id": 1264520}, {"segmentation": [[111.63, 54.74, 112.52, 49.09, 109.84, 47.31, 106.27, 39.28, 106.27, 38.98, 109.25, 35.71, 114.0, 36.9, 117.57, 41.66, 117.57, 44.63, 124.71, 48.2, 130.06, 59.2, 129.76, 68.12, 133.33, 72.28, 125.9, 66.93, 113.11, 55.04], [123.82, 107.67, 123.82, 107.67, 125.01, 113.32, 125.6, 113.32, 129.76, 111.53, 128.28, 107.96, 123.22, 107.37], [137.49, 103.5, 137.49, 103.5, 135.71, 110.34, 139.58, 109.45, 142.55, 102.02]], "area": 394.1384999999999, "iscrowd": 0, "image_id": 364256, "bbox": [106.27, 35.71, 36.28, 77.61], "category_id": 1, "id": 1266809}, {"segmentation": [[370.49, 96.4, 380.47, 79.59, 389.4, 71.19, 388.87, 56.49, 399.38, 50.71, 403.58, 67.51, 414.6, 74.87, 410.93, 88.52, 402.0, 84.84, 388.35, 82.22, 382.05, 86.94, 383.1, 102.17, 373.12, 97.97]], "area": 788.2245499999999, "iscrowd": 0, "image_id": 557323, "bbox": [370.49, 50.71, 44.11, 51.46], "category_id": 1, "id": 1268898}, {"segmentation": [[226.2, 42.74, 216.7, 55.13, 210.09, 55.13, 212.98, 60.5, 210.5, 64.21, 201.01, 62.15, 196.05, 53.89, 196.46, 46.45, 197.7, 39.84, 202.24, 29.11, 205.96, 24.15, 208.03, 20.43, 208.85, 15.48, 211.33, 13.41, 215.87, 12.59, 219.18, 13.82, 220.0, 18.78, 220.0, 22.5, 219.59, 24.15, 221.66, 27.04, 224.13, 29.93, 224.96, 34.06, 225.37, 37.37, 225.37, 39.84, 224.96, 43.15]], "area": 970.5589, "iscrowd": 0, "image_id": 45136, "bbox": [196.05, 12.59, 30.15, 51.62], "category_id": 1, "id": 1273856}, {"segmentation": [[44.92, 60.62, 57.61, 51.48, 59.64, 36.76, 67.76, 23.56, 81.47, 27.11, 82.99, 41.83, 77.92, 51.99, 93.65, 58.59, 106.85, 54.53, 109.9, 62.65, 104.82, 65.19, 105.84, 75.34, 97.21, 80.92, 93.15, 87.02, 80.46, 100.72, 75.89, 95.14, 55.07, 79.4, 56.09, 70.26, 48.47, 74.83, 47.46, 64.68, 46.44, 61.63]], "area": 2425.5380999999998, "iscrowd": 0, "image_id": 560819, "bbox": [44.92, 23.56, 64.98, 77.16], "category_id": 1, "id": 1288649}, {"segmentation": [[372.51, 87.56, 359.14, 61.04, 360.85, 61.61, 354.57, 53.62, 344.3, 57.61, 344.87, 69.6, 337.45, 79.87, 336.31, 93.56, 340.88, 101.55, 345.44, 102.12, 350.01, 91.85, 359.14, 86.72, 366.56, 89.0]], "area": 907.1271999999997, "iscrowd": 0, "image_id": 557323, "bbox": [336.31, 53.62, 36.2, 48.5], "category_id": 1, "id": 1288970}, {"segmentation": [[313.58, 116.51, 307.34, 111.31, 308.03, 101.27, 310.8, 96.42, 317.73, 92.26, 319.81, 89.49, 318.77, 80.48, 321.2, 75.28, 327.78, 73.55, 332.63, 77.36, 334.71, 83.94, 334.71, 89.83, 337.13, 95.72, 339.56, 99.88, 339.56, 104.73, 339.21, 106.81, 335.4, 106.46, 334.02, 100.57, 334.36, 94.68, 327.09, 92.61, 322.24, 93.3, 321.54, 98.84, 320.85, 104.39, 318.43, 109.58]], "area": 563.5917500000005, "iscrowd": 0, "image_id": 557323, "bbox": [307.34, 73.55, 32.22, 42.96], "category_id": 1, "id": 1293752}, {"segmentation": [[149.66, 185.56, 143.39, 188.98, 138.82, 195.83, 138.82, 198.68, 150.24, 200.97, 158.22, 200.97, 169.07, 200.97, 177.06, 200.97, 177.06, 198.11, 175.34, 194.12, 173.63, 191.26, 171.35, 188.41, 168.5, 186.7, 167.35, 185.56, 167.35, 181.56, 165.64, 179.28, 161.65, 178.14, 155.37, 178.14, 152.52, 180.99, 152.52, 183.28]], "area": 590.82865, "iscrowd": 0, "image_id": 557323, "bbox": [138.82, 178.14, 38.24, 22.83], "category_id": 1, "id": 1307412}, {"segmentation": [[260.53, 175.49, 243.31, 174.85, 242.99, 167.83, 237.25, 168.15, 233.75, 163.05, 232.47, 150.3, 231.83, 129.26, 239.17, 110.77, 246.5, 105.67, 246.82, 98.02, 251.28, 91.0, 257.34, 88.14, 264.35, 91.0, 265.31, 97.06, 269.45, 110.13, 272.32, 116.51, 270.73, 125.43, 265.31, 134.68, 262.44, 135.0, 264.03, 142.01, 264.67, 146.16, 261.48, 162.1, 259.57, 166.24]], "area": 2374.7967500000004, "iscrowd": 0, "image_id": 557323, "bbox": [231.83, 88.14, 40.49, 87.35], "category_id": 1, "id": 1311169}, {"segmentation": [[125.19, 200.64, 124.87, 195.54, 125.83, 183.43, 125.83, 174.82, 123.92, 171.95, 106.7, 157.6, 105.75, 156.97, 106.38, 154.1, 112.12, 148.04, 119.14, 143.26, 122.64, 140.07, 126.79, 136.24, 127.11, 132.1, 127.11, 125.41, 131.89, 120.3, 140.49, 121.26, 141.77, 128.59, 144.96, 134.01, 155.16, 141.03, 155.16, 141.66, 155.8, 145.81, 158.35, 153.46, 160.58, 158.88, 161.54, 162.7, 161.54, 166.53, 161.54, 172.27, 161.54, 176.41, 160.26, 177.05, 154.52, 178.64, 150.38, 184.38, 143.05, 188.53, 138.26, 197.77, 137.31, 202.24]], "area": 2438.06805, "iscrowd": 0, "image_id": 557323, "bbox": [105.75, 120.3, 55.79, 81.94], "category_id": 1, "id": 1322205}, {"segmentation": [[606.12, 194.27, 566.16, 192.05, 559.5, 160.97, 566.16, 135.43, 576.15, 128.77, 573.93, 113.23, 586.14, 107.68, 592.8, 112.12, 593.91, 124.33, 606.12, 146.53, 609.45, 176.51, 608.34, 187.61]], "area": 3078.8514000000023, "iscrowd": 0, "image_id": 557323, "bbox": [559.5, 107.68, 49.95, 86.59], "category_id": 1, "id": 1327510}, {"segmentation": [[244.85, 375.37, 254.56, 374.29, 265.35, 380.76, 264.27, 453.03, 239.46, 463.82, 222.2, 454.11, 218.97, 387.24, 234.07, 376.45, 254.56, 377.53]], "area": 3556.1378500000005, "iscrowd": 0, "image_id": 373381, "bbox": [218.97, 374.29, 46.38, 89.53], "category_id": 33, "id": 1446058}, {"segmentation": [[353.41, 403.31, 345.16, 405.91, 342.56, 421.1, 334.74, 435.86, 334.31, 454.96, 343.42, 464.52, 346.46, 474.07, 418.96, 474.93, 423.74, 453.23, 400.29, 449.76, 397.25, 446.72, 394.65, 439.34, 388.57, 436.3, 388.57, 423.27, 375.55, 417.63, 359.05, 410.69]], "area": 3911.645249999999, "iscrowd": 0, "image_id": 373381, "bbox": [334.31, 403.31, 89.43, 71.62], "category_id": 33, "id": 1446610}, {"segmentation": [[540.71, 446.92, 542.69, 445.22, 546.79, 444.79, 550.19, 444.79, 553.58, 447.76, 555.0, 450.74, 555.0, 454.84, 553.02, 459.23, 551.04, 460.5, 542.41, 460.78, 538.87, 455.26, 538.58, 449.75, 540.85, 446.63]], "area": 217.7272999999995, "iscrowd": 0, "image_id": 398534, "bbox": [538.58, 444.79, 16.42, 15.99], "category_id": 37, "id": 1459080}, {"segmentation": [[4.22, 233.98, 43.92, 213.71, 72.64, 197.66, 72.64, 205.26, 72.64, 238.21, 34.63, 247.5, 5.07, 250.03, 0.84, 249.19, 0.84, 233.98, 1.69, 233.98], [97.99, 192.59, 91.23, 201.04, 87.85, 228.07, 105.59, 219.62, 99.68, 191.75], [126.71, 174.85, 146.98, 165.56, 156.27, 163.87, 162.18, 166.41, 166.41, 171.48, 163.87, 177.39, 154.58, 186.68, 149.51, 191.75, 141.91, 198.51, 136.84, 202.73, 129.24, 203.57]], "area": 3375.85985, "iscrowd": 0, "image_id": 364256, "bbox": [0.84, 163.87, 165.57, 86.16], "category_id": 42, "id": 1478686}, {"segmentation": [[559.31, 150.5, 562.62, 171.09, 574.02, 177.35, 618.51, 190.95, 639.46, 194.99, 638.36, 178.08, 633.21, 177.71, 624.76, 176.61, 617.03, 172.57, 614.09, 175.87, 613.73, 179.92, 603.43, 177.71, 600.49, 171.83, 602.33, 164.48, 561.88, 151.24]], "area": 1390.3290000000006, "iscrowd": 0, "image_id": 364256, "bbox": [559.31, 150.5, 80.15, 44.49], "category_id": 42, "id": 1480868}, {"segmentation": [[187.66, 229.21, 180.27, 224.86, 168.1, 223.99, 147.25, 219.65, 125.52, 212.26, 108.14, 205.75, 101.19, 201.84, 96.41, 197.49, 107.71, 180.55, 125.96, 167.08, 143.34, 164.47, 158.55, 172.72, 162.89, 181.85, 167.24, 186.63, 175.93, 195.75, 182.44, 204.01, 186.79, 207.92, 197.22, 213.13, 204.17, 222.69, 210.68, 226.17, 210.25, 230.08, 207.21, 232.68, 197.65, 234.86], [231.98, 240.94, 244.58, 236.16, 244.58, 240.07, 240.66, 247.89, 235.89, 257.89, 234.15, 253.98, 230.24, 245.29]], "area": 3885.3599500000005, "iscrowd": 0, "image_id": 546342, "bbox": [96.41, 164.47, 148.17, 93.42], "category_id": 43, "id": 1482304}, {"segmentation": [[230.75, 112.0, 229.59, 112.1, 228.62, 113.65, 227.74, 115.59, 226.68, 118.21, 226.09, 120.44, 226.09, 123.64, 227.16, 125.48, 227.74, 125.58, 228.81, 124.22, 229.29, 121.99, 230.26, 118.89, 230.94, 116.17, 230.94, 113.07, 230.65, 112.2]], "area": 39.46494999999988, "iscrowd": 0, "image_id": 313372, "bbox": [226.09, 112.0, 4.85, 13.58], "category_id": 43, "id": 1482361}, {"segmentation": [[289.89, 213.93, 291.78, 210.15, 294.42, 206.37, 300.28, 204.29, 308.22, 204.29, 313.32, 205.62, 316.91, 207.7, 316.72, 217.71], [288.94, 228.3, 288.75, 228.67, 288.75, 230.0, 289.13, 231.32, 289.13, 231.51, 289.13, 232.26, 289.51, 236.8, 289.51, 237.18, 289.51, 245.49, 289.51, 246.63, 289.51, 252.67, 289.51, 253.81, 289.32, 267.42, 291.33, 269.35, 291.52, 266.89, 291.33, 246.1, 294.92, 245.16, 294.73, 278.8, 299.07, 278.8, 299.07, 247.81, 299.26, 244.78, 314.57, 243.27, 316.84, 273.51, 319.86, 273.7, 318.16, 239.49, 317.6, 235.33, 317.22, 224.72], [281.68, 235.41, 275.44, 236.55, 271.85, 237.68, 271.09, 238.06, 267.5, 238.81, 268.29, 240.48, 269.79, 243.32, 272.3, 244.65, 279.47, 246.65, 280.97, 246.99, 280.97, 246.99, 281.47, 246.99, 284.31, 246.49]], "area": 1194.8669500000012, "iscrowd": 0, "image_id": 100726, "bbox": [267.5, 204.29, 52.36, 74.51], "category_id": 62, "id": 1578887}, {"segmentation": [[69.59, 123.64, 68.35, 107.53, 70.01, 95.97, 72.07, 91.01, 72.48, 87.71, 71.25, 86.06, 73.31, 74.08, 77.44, 70.36, 93.55, 70.78, 103.46, 70.54, 107.18, 70.78, 110.9, 74.08, 111.72, 79.45, 111.72, 83.58, 113.79, 88.12, 113.79, 96.8, 114.61, 105.88, 115.03, 114.97, 114.61, 123.64, 112.13, 123.23, 111.72, 121.16, 72.9, 121.58, 72.07, 123.23, 69.59, 123.23]], "area": 2174.4137499999997, "iscrowd": 0, "image_id": 45136, "bbox": [68.35, 70.36, 46.68, 53.28], "category_id": 62, "id": 1584518}, {"segmentation": [[18.04, 73.24, 23.32, 68.72, 44.68, 70.23, 51.97, 70.23, 56.24, 78.52, 60.26, 93.85, 56.24, 96.62, 54.48, 95.11, 50.21, 90.08, 48.2, 80.28, 40.91, 78.52, 37.64, 78.52, 33.62, 74.0, 27.34, 73.75, 20.55, 74.0, 17.79, 75.51], [54.73, 99.38, 52.47, 103.9, 54.48, 106.67, 58.5, 100.89, 56.99, 98.63]], "area": 403.5285499999999, "iscrowd": 0, "image_id": 45136, "bbox": [17.79, 68.72, 42.47, 37.95], "category_id": 62, "id": 1586229}, {"segmentation": [[89.29, 296.58, 82.45, 296.85, 80.08, 285.27, 72.46, 277.65, 66.93, 279.75, 66.41, 299.74, 65.88, 308.68, 51.68, 307.63, 54.84, 295.27, 56.41, 287.9, 55.1, 282.64, 56.94, 279.49, 60.36, 275.28, 60.88, 266.6, 57.73, 251.87, 50.1, 217.95, 82.19, 218.21, 88.5, 222.42, 91.13, 226.63, 85.87, 250.56, 84.55, 261.87, 75.35, 263.97, 70.35, 265.81, 69.83, 268.44, 70.62, 271.07, 71.93, 272.12, 78.24, 273.97, 87.71, 274.75]], "area": 2213.7675499999996, "iscrowd": 0, "image_id": 100726, "bbox": [50.1, 217.95, 41.03, 90.73], "category_id": 62, "id": 1596127}, {"segmentation": [[18.07, 12.05, 93.81, 1.72, 638.62, 1.72, 640.0, 375.25, 489.72, 378.7, 519.85, 361.48, 554.27, 325.33, 568.91, 302.1, 581.82, 268.53, 586.98, 227.22, 579.23, 187.63, 567.18, 150.62, 565.46, 142.01, 535.34, 100.7, 519.85, 108.44, 525.87, 94.67, 450.99, 43.03, 443.25, 45.62, 437.22, 49.92, 424.31, 41.31, 421.73, 35.29, 355.46, 30.98, 334.8, 28.4, 287.47, 24.96, 272.83, 21.52, 247.01, 24.96, 236.69, 28.4, 219.47, 24.96, 199.68, 29.26, 168.69, 39.59, 136.85, 49.06, 126.52, 49.92, 103.28, 63.69, 77.46, 76.6, 55.08, 95.53, 43.89, 117.05, 27.54, 140.29, 14.63, 159.22, 13.77, 183.32, 0.86, 209.14, 2.58, 100.7, 30.12, 72.3, 43.89, 56.8, 45.62, 45.62, 34.43, 25.82, 27.54, 20.66], [1.72, 252.18, 22.38, 312.42, 37.87, 334.8, 80.9, 360.62, 103.28, 377.84, 1.72, 376.98]], "area": 61027.68559999997, "iscrowd": 0, "image_id": 167647, "bbox": [0.86, 1.72, 639.14, 376.98], "category_id": 67, "id": 1620657}, {"segmentation": [[351.79, 173.7, 358.81, 172.76, 364.47, 172.49, 369.32, 172.76, 372.02, 174.78, 372.83, 184.76, 372.02, 192.44, 369.05, 194.33, 366.76, 194.47, 367.43, 197.57, 364.06, 198.51, 361.5, 197.03, 358.4, 194.87, 353.41, 194.87, 349.77, 194.06, 349.1, 174.65]], "area": 512.1779999999998, "iscrowd": 0, "image_id": 373381, "bbox": [349.1, 172.49, 23.73, 26.02], "category_id": 72, "id": 1625450}, {"segmentation": [[36.98, 278.16, 43.12, 222.97, 57.65, 220.48, 55.15, 275.21]], "area": 886.8456000000002, "iscrowd": 0, "image_id": 486568, "bbox": [36.98, 220.48, 20.67, 57.68], "category_id": 84, "id": 1648622}, {"segmentation": [[49.0, 154.03, 54.98, 107.65, 61.34, 109.14, 56.11, 153.66]], "area": 309.2445500000001, "iscrowd": 0, "image_id": 486568, "bbox": [49.0, 107.65, 12.34, 46.38], "category_id": 84, "id": 1649883}, {"segmentation": [[239.89, 235.07, 241.64, 207.45, 243.4, 207.45, 247.87, 208.09, 249.15, 208.57, 247.87, 210.16, 247.87, 214.47, 247.87, 219.9, 248.19, 224.05, 247.23, 228.21, 245.64, 232.68, 244.36, 234.91]], "area": 182.39915000000042, "iscrowd": 0, "image_id": 100726, "bbox": [239.89, 207.45, 9.26, 27.62], "category_id": 84, "id": 1652327}, {"segmentation": [[233.14, 200.83, 234.0, 173.76, 242.85, 174.28, 243.03, 176.19, 242.68, 176.54, 240.77, 176.54, 239.56, 180.53, 239.04, 201.35, 233.83, 201.87]], "area": 170.86190000000016, "iscrowd": 0, "image_id": 100726, "bbox": [233.14, 173.76, 9.89, 28.11], "category_id": 84, "id": 1653317}, {"segmentation": [[475.64, 172.45, 492.56, 172.29, 492.24, 196.4, 474.68, 195.92]], "area": 410.2420000000003, "iscrowd": 0, "image_id": 100726, "bbox": [474.68, 172.29, 17.88, 24.11], "category_id": 84, "id": 1656057}, {"segmentation": [[244.17, 174.92, 243.58, 201.51, 247.84, 202.1, 251.66, 202.1, 258.57, 176.83, 251.22, 174.92, 249.16, 174.18]], "area": 306.6088499999999, "iscrowd": 0, "image_id": 100726, "bbox": [243.58, 174.18, 14.99, 27.92], "category_id": 84, "id": 1659443}, {"segmentation": [[206.56, 200.65, 205.06, 174.53, 207.63, 174.74, 218.12, 176.24, 218.97, 201.72, 207.84, 202.36]], "area": 337.68154999999996, "iscrowd": 0, "image_id": 100726, "bbox": [205.06, 174.53, 13.91, 27.83], "category_id": 84, "id": 1659636}, {"segmentation": [[183.15, 96.37, 153.26, 90.19, 146.56, 79.88, 142.95, 75.76, 106.88, 75.76, 58.95, 80.91, 0.71, 81.94, 0.2, 14.43, 0.2, 0.0, 244.48, 0.0, 293.44, 0.51, 299.11, 3.61, 335.19, 11.85, 375.9, 15.97, 396.0, 18.04, 435.68, 23.19, 456.3, 27.83, 485.16, 32.47, 503.71, 34.01, 516.6, 33.5, 523.81, 35.04, 524.33, 41.23, 478.97, 58.23, 437.74, 61.84, 405.79, 68.54, 381.05, 70.6, 320.76, 72.66, 267.16, 73.18, 210.47, 72.66, 205.31, 75.24, 202.22, 80.4]], "area": 33352.36615000001, "iscrowd": 0, "image_id": 250345, "bbox": [0.2, 0.0, 524.13, 96.37], "category_id": 1, "id": 1682317}, {"segmentation": [[272.86, 121.13, 273.84, 114.45, 281.76, 108.76, 283.74, 106.04, 280.52, 99.12, 280.77, 94.17, 287.2, 87.99, 296.1, 91.7, 296.1, 98.13, 296.84, 103.57, 296.35, 106.29, 303.52, 108.51, 308.71, 114.2, 307.97, 115.19, 295.85, 114.94, 297.09, 121.62, 297.09, 125.82, 297.34, 131.11, 300.06, 138.53, 292.39, 140.01, 291.15, 146.2, 291.4, 151.14, 289.92, 149.66, 285.96, 140.76, 286.46, 134.82, 284.48, 127.65, 279.28, 121.47]], "area": 895.1636499999996, "iscrowd": 0, "image_id": 557323, "bbox": [272.86, 87.99, 35.85, 63.15], "category_id": 1, "id": 1712090}, {"segmentation": [[106.32, 564.15, 103.67, 548.77, 96.25, 529.16, 96.25, 516.97, 95.72, 511.14, 89.88, 506.9, 86.17, 492.59, 79.28, 477.74, 82.46, 465.02, 80.87, 441.7, 85.11, 433.22, 85.64, 428.45, 77.16, 421.56, 78.22, 415.19, 83.52, 406.18, 93.07, 406.18, 97.84, 413.07, 106.85, 404.06, 112.15, 385.51, 120.63, 372.79, 133.88, 363.25, 136.53, 370.14, 129.11, 374.38, 119.04, 391.87, 111.62, 408.3, 110.03, 419.97, 109.5, 430.57, 113.21, 446.47, 111.09, 451.77, 113.21, 462.9, 120.63, 468.73, 128.58, 471.91, 134.41, 474.56, 137.59, 480.92, 132.82, 478.8, 119.04, 474.56, 120.63, 503.72, 124.87, 520.15, 132.82, 536.05, 137.59, 547.18, 147.13, 551.95, 151.9, 556.19, 150.31, 562.03, 125.93, 561.5, 126.46, 550.89, 122.75, 540.82, 115.86, 528.1, 111.62, 513.26, 107.38, 504.78, 104.2, 508.49, 108.44, 525.45, 112.15, 544.53, 116.39, 549.3, 123.81, 554.07, 122.22, 559.38, 106.85, 563.09]], "area": 5160.607550000001, "iscrowd": 0, "image_id": 313372, "bbox": [77.16, 363.25, 74.74, 200.9], "category_id": 1, "id": 1716431}, {"segmentation": [[396.94, 109.3, 391.19, 83.42, 385.44, 64.72, 385.44, 47.46, 392.63, 14.38, 422.83, 18.7, 432.9, 40.27, 417.08, 67.6, 412.76, 83.42]], "area": 2665.1058499999986, "iscrowd": 0, "image_id": 45136, "bbox": [385.44, 14.38, 47.46, 94.92], "category_id": 1, "id": 1718526}, {"segmentation": [[30.58, 143.11, 42.61, 140.96, 57.23, 143.11, 61.1, 135.8, 62.39, 133.22, 64.54, 127.63, 73.99, 124.19, 78.29, 113.02, 67.97, 90.66, 63.68, 83.79, 58.09, 80.78, 49.49, 71.75, 40.03, 70.89, 31.87, 72.61, 26.28, 81.64, 21.55, 90.66, 10.37, 95.82, 6.5, 100.12, 6.5, 103.56, 1.35, 105.71, 0.06, 106.14, 0.49, 120.75, 0.49, 124.19, 3.93, 119.89, 11.23, 117.32, 18.54, 122.04, 22.84, 131.07, 27.14, 138.38, 30.58, 143.11]], "area": 3558.74705, "iscrowd": 0, "image_id": 560819, "bbox": [0.06, 70.89, 78.23, 72.22], "category_id": 1, "id": 1720321}, {"segmentation": [[94.67, 386.02, 79.04, 386.94, 76.29, 379.59, 75.37, 373.16, 69.85, 369.48, 65.26, 338.23, 71.69, 328.12, 74.45, 303.3, 57.9, 309.74, 56.98, 318.93, 50.55, 318.93, 45.96, 313.41, 46.87, 309.74, 53.31, 306.06, 66.18, 293.19, 74.45, 280.33, 84.56, 276.65, 86.4, 254.59, 90.99, 245.4, 108.45, 244.48, 115.81, 259.19, 111.21, 278.49, 117.64, 298.71, 128.67, 318.93, 130.51, 329.04, 121.32, 331.8, 116.73, 326.28, 112.13, 311.58, 109.37, 316.17, 107.53, 320.77, 123.16, 362.13, 125.92, 377.75, 119.48, 383.27, 112.13, 381.43, 112.13, 368.56, 102.94, 357.53, 101.1, 352.02, 96.51, 350.18, 98.34, 364.88, 90.07, 370.4, 92.83, 378.67]], "area": 5886.377850000002, "iscrowd": 0, "image_id": 460676, "bbox": [45.96, 244.48, 84.55, 142.46], "category_id": 1, "id": 1733791}, {"segmentation": [[2.83, 0.09, 500.0, 0.09, 500.0, 384.0, 0.94, 382.2]], "area": 190783.87665000002, "iscrowd": 0, "image_id": 339202, "bbox": [0.94, 0.09, 499.06, 383.91], "category_id": 1, "id": 1739108}, {"segmentation": [[624.04, 46.98, 611.63, 55.84, 609.86, 71.8, 608.97, 88.64, 606.31, 105.48, 600.11, 135.62, 600.99, 148.03, 600.99, 169.31, 600.99, 177.28, 610.74, 178.17, 615.18, 170.19, 615.18, 163.1, 615.18, 151.58, 615.18, 147.15, 617.83, 158.67, 619.61, 171.97, 624.04, 174.62, 632.9, 168.42, 630.24, 156.9, 626.7, 141.83, 638.22, 139.17, 640.0, 31.91, 637.34, 30.14, 634.68, 30.14, 629.36, 30.14, 628.47, 41.66, 627.59, 43.43]], "area": 4046.3656499999993, "iscrowd": 0, "image_id": 364256, "bbox": [600.11, 30.14, 39.89, 148.03], "category_id": 1, "id": 1741325}, {"segmentation": [[229.1, 133.41, 229.1, 154.54, 232.97, 168.97, 231.74, 175.49, 239.84, 192.57, 246.0, 202.78, 243.71, 207.53, 248.64, 228.13, 251.11, 259.12, 250.4, 263.17, 251.99, 273.38, 249.52, 277.43, 246.18, 280.77, 240.54, 293.45, 236.67, 298.73, 226.81, 317.22, 225.76, 325.14, 224.87, 331.3, 221.88, 336.94, 222.59, 361.24, 217.3, 363.17, 209.73, 359.47, 204.63, 352.96, 203.22, 345.74, 203.39, 336.41, 198.64, 332.01, 197.41, 323.03, 199.87, 319.86, 211.14, 311.06, 216.25, 300.14, 219.77, 286.52, 222.38, 281.01, 228.18, 272.89, 227.89, 269.41, 220.93, 270.28, 216.0, 255.78, 208.17, 236.06, 205.85, 256.65, 208.75, 266.8, 198.89, 272.6, 197.15, 282.17, 193.96, 288.55, 195.99, 307.69, 194.54, 311.75, 193.09, 324.51, 193.38, 341.04, 204.11, 364.25, 205.85, 368.31, 202.66, 374.11, 190.19, 374.98, 182.94, 373.53, 177.43, 365.12, 178.59, 349.45, 176.85, 323.64, 175.4, 314.36, 171.92, 296.96, 174.53, 284.2, 175.98, 271.73, 173.08, 269.41, 172.21, 257.52, 173.08, 217.5, 174.53, 199.23, 179.46, 178.35, 179.17, 171.68, 180.33, 160.37, 170.76, 142.1, 162.93, 156.02, 160.32, 161.24, 158.0, 180.96, 156.84, 195.17, 155.97, 205.03, 160.61, 214.6, 159.16, 220.4, 152.49, 226.78, 149.88, 226.2, 149.01, 223.01, 144.37, 217.5, 144.37, 212.57, 144.08, 201.26, 142.92, 175.45, 144.37, 155.73, 150.46, 139.78, 155.1, 113.39, 169.6, 99.18, 184.1, 89.89, 184.68, 84.38, 177.14, 70.17, 175.11, 55.96, 189.9, 43.2, 200.63, 45.81, 209.62, 56.83, 212.81, 65.24, 212.23, 74.23, 212.81, 86.7, 226.44, 89.31, 230.5, 92.21, 236.59, 103.24, 238.62, 113.39, 250.51, 132.82, 251.96, 138.04, 256.6, 152.54, 258.92, 159.21, 255.15, 160.08, 254.57, 164.14, 250.22, 163.56, 247.03, 165.88, 237.46, 158.34, 240.36, 155.15, 237.17, 147.9, 234.27, 140.07]], "area": 19679.55065000001, "iscrowd": 0, "image_id": 460676, "bbox": [142.92, 43.2, 116.0, 331.78], "category_id": 1, "id": 1744823}, {"segmentation": [[40.13, 30.91, 44.92, 24.33, 50.01, 21.93, 53.3, 20.43, 56.3, 19.24, 59.29, 11.45, 59.29, 4.57, 60.79, 2.17, 65.58, 0.0, 72.46, 0.0, 77.25, 0.67, 81.15, 3.07, 81.15, 10.85, 80.85, 15.94, 83.54, 19.54, 87.14, 21.63, 93.12, 23.73, 99.11, 27.92, 98.81, 33.31, 89.83, 35.7, 81.75, 35.7, 69.17, 36.0, 47.31, 35.11, 41.03, 33.61]], "area": 1228.1592000000003, "iscrowd": 0, "image_id": 45136, "bbox": [40.13, 0.0, 58.98, 36.0], "category_id": 1, "id": 1751556}, {"segmentation": [[331.35, 217.29, 356.24, 218.07, 378.81, 221.18, 398.25, 219.63, 406.81, 218.07, 401.37, 197.06, 406.03, 182.28, 411.48, 173.73, 400.59, 163.61, 388.92, 152.72, 391.25, 137.94, 380.36, 138.72, 334.46, 197.84, 327.46, 214.96]], "area": 4079.3341000000014, "iscrowd": 0, "image_id": 560819, "bbox": [327.46, 137.94, 84.02, 83.24], "category_id": 1, "id": 1753700}, {"segmentation": [[168.0, 19.64, 198.96, 18.9, 199.41, 4.23, 199.7, 0.38, 134.81, 0.53, 117.33, 0.38, 112.0, 4.97, 100.15, 9.0, 100.96, 23.81]], "area": 1937.6956, "iscrowd": 0, "image_id": 49194, "bbox": [100.15, 0.38, 99.55, 23.43], "category_id": 6, "id": 1794524}, {"segmentation": [[307.48, 246.4, 311.03, 226.84, 318.15, 218.83, 414.2, 217.94, 407.09, 250.85, 377.74, 251.74, 369.73, 264.19, 358.17, 265.97, 352.83, 247.29, 307.48, 248.18]], "area": 3375.40215, "iscrowd": 0, "image_id": 560819, "bbox": [307.48, 217.94, 106.72, 48.03], "category_id": 15, "id": 1813211}, {"segmentation": [[328.18, 318.05, 328.06, 316.23, 328.06, 314.14, 328.38, 312.58, 331.05, 311.15, 331.57, 311.09, 333.97, 310.83, 334.82, 311.48, 336.51, 312.84, 337.29, 314.4, 337.29, 316.88, 336.57, 319.28, 334.49, 320.45, 332.74, 320.58, 331.18, 320.26, 329.62, 319.41]], "area": 73.36695000000012, "iscrowd": 0, "image_id": 114868, "bbox": [328.06, 310.83, 9.23, 9.75], "category_id": 37, "id": 1854579}, {"segmentation": [[261.37, 393.18, 269.03, 393.58, 268.23, 387.94, 266.62, 387.53, 261.78, 390.35, 261.78, 392.37]], "area": 32.92210000000008, "iscrowd": 0, "image_id": 114868, "bbox": [261.37, 387.53, 7.66, 6.05], "category_id": 37, "id": 1854770}, {"segmentation": [[186.21, 127.89, 238.41, 153.66, 239.07, 159.94, 232.13, 165.89, 179.93, 136.15, 179.6, 133.84]], "area": 741.4617999999998, "iscrowd": 0, "image_id": 546342, "bbox": [179.6, 127.89, 59.47, 38.0], "category_id": 37, "id": 1854950}, {"segmentation": [[250.0, 297.86, 302.96, 252.57, 342.11, 219.57, 357.47, 224.94, 428.85, 316.29, 480.28, 398.42, 438.83, 413.77, 292.99, 423.75, 146.37, 402.26, 153.28, 385.37]], "area": 37770.49475, "iscrowd": 0, "image_id": 250345, "bbox": [146.37, 219.57, 333.91, 204.18], "category_id": 59, "id": 1923222}, {"segmentation": [[547.2, 480.0, 559.32, 462.27, 570.67, 462.27, 604.73, 428.96, 617.6, 426.69, 640.0, 433.5, 639.55, 478.92, 548.72, 479.67]], "area": 3194.2052000000012, "iscrowd": 0, "image_id": 441072, "bbox": [547.2, 426.69, 92.8, 53.31], "category_id": 62, "id": 1936171}, {"segmentation": [[255.53, 87.42, 293.63, 151.3, 304.84, 205.09, 314.93, 237.6, 356.39, 233.11, 377.69, 249.92, 410.19, 264.49, 413.55, 275.7, 423.64, 286.91, 439.33, 291.39, 458.38, 291.39, 485.28, 291.39, 497.61, 298.12, 524.5, 331.74, 522.26, 348.55, 517.78, 372.08, 513.3, 392.26, 499.85, 412.43, 471.83, 414.67, 428.12, 405.71, 359.76, 387.77, 316.05, 378.81, 305.96, 378.81, 293.63, 387.77, 293.63, 402.34, 292.51, 419.15, 634.34, 420.28, 633.22, 260.01, 573.82, 219.66, 549.16, 203.97, 534.59, 200.61, 517.78, 174.83, 520.02, 160.27, 511.06, 134.49, 480.8, 127.76, 448.29, 128.88, 440.45, 133.37, 439.33, 112.07, 439.33, 100.87, 430.36, 71.73, 377.69, 62.76, 313.81, 75.09, 274.58, 84.06]], "area": 67708.4091, "iscrowd": 0, "image_id": 324285, "bbox": [255.53, 62.76, 378.81, 357.52], "category_id": 63, "id": 1949303}, {"segmentation": [[90.11, 224.53, 87.21, 234.17, 89.45, 242.35, 100.94, 251.19, 100.54, 257.4, 97.64, 258.98, 92.75, 258.71, 89.85, 255.02, 87.08, 252.91, 85.89, 219.92, 74.54, 219.12, 73.62, 214.64, 77.44, 215.3, 77.58, 211.34, 81.4, 211.6, 85.63, 217.67, 92.89, 211.6, 98.03, 211.6, 96.05, 217.54, 95.92, 218.33, 104.63, 218.46, 98.16, 220.31, 94.86, 220.58, 92.75, 222.16]], "area": 374.9782500000002, "iscrowd": 0, "image_id": 100726, "bbox": [73.62, 211.34, 31.01, 47.64], "category_id": 64, "id": 1955335}, {"segmentation": [[1.24, 308.94, 119.19, 307.7, 129.12, 299.01, 139.05, 294.04, 141.54, 292.8, 144.02, 292.8, 148.99, 317.63, 151.47, 333.77, 155.19, 336.26, 184.99, 338.74, 227.21, 330.05, 237.14, 326.32, 263.21, 330.05, 305.42, 330.05, 310.39, 307.7, 316.6, 295.28, 327.77, 287.83, 414.68, 285.35, 422.13, 284.11, 474.28, 286.59, 525.18, 280.39, 538.84, 300.25, 610.85, 464.14, 610.85, 469.1, 556.22, 460.41, 3.72, 467.86], [1.24, 166.16, 1.24, 2.28, 404.75, 4.76, 471.79, 173.61, 465.58, 182.3, 394.82, 169.89, 240.86, 133.88, 228.45, 133.88, 172.58, 141.33, 2.48, 173.61]], "area": 156870.27845, "iscrowd": 0, "image_id": 31345, "bbox": [1.24, 2.28, 609.61, 466.82], "category_id": 65, "id": 1956588}, {"segmentation": [[257.48, 224.68, 252.61, 220.48, 251.94, 219.64, 251.94, 218.46, 257.65, 217.12], [259.67, 217.62, 259.17, 225.69, 281.69, 228.21, 281.85, 234.6, 282.19, 238.29, 282.19, 253.59, 284.38, 253.76, 283.7, 255.1, 282.36, 255.6, 282.19, 265.86, 281.85, 271.24, 281.69, 277.79, 277.82, 277.79, 273.62, 278.29, 269.25, 279.3, 264.21, 280.31, 263.2, 280.82, 263.2, 287.71, 267.57, 289.39, 273.28, 290.39, 279.84, 291.24, 284.38, 290.73, 285.38, 290.9, 295.3, 290.73, 301.85, 289.89, 306.39, 288.21, 309.75, 285.86, 310.76, 282.83, 306.9, 279.81, 302.86, 278.63, 294.96, 277.79, 290.76, 277.29, 288.91, 277.29, 288.41, 277.29, 288.41, 243.5, 288.41, 227.87, 293.45, 228.04, 307.74, 226.36, 316.48, 224.34, 322.36, 223.0, 325.38, 221.65, 325.55, 220.48, 325.05, 219.64, 311.77, 216.44, 295.47, 214.6, 285.38, 214.43, 278.83, 214.93, 272.27, 215.6, 266.22, 216.44, 262.53, 216.95]], "area": 1566.0858500000002, "iscrowd": 0, "image_id": 100726, "bbox": [251.94, 214.43, 73.61, 76.81], "category_id": 67, "id": 1959244}, {"segmentation": [[528.62, 431.38, 638.34, 417.66, 638.34, 36.16, 613.4, 36.16, 577.25, 34.91, 521.14, 26.18, 453.82, 2.49, 421.4, 2.49, 427.64, 13.71, 279.27, 22.44, 221.92, 24.94, 206.96, 26.18, 119.69, 37.4, 127.17, 78.55, 455.06, 28.68, 463.79, 67.32, 468.78, 91.01, 534.86, 128.42, 562.29, 165.82, 583.48, 220.68, 585.97, 264.31, 583.48, 311.69, 590.96, 331.64, 571.01, 351.58, 539.84, 406.44], [23.69, 408.94, 41.14, 438.86, 77.3, 472.52, 1.25, 477.51, 3.74, 407.69], [0.0, 23.69, 6.23, 29.92, 18.7, 29.92, 21.19, 31.17, 18.7, 44.88, 28.68, 44.88, 57.35, 89.77, 3.74, 81.04]], "area": 52534.37175000001, "iscrowd": 0, "image_id": 448897, "bbox": [0.0, 2.49, 638.34, 475.02], "category_id": 67, "id": 1964084}, {"segmentation": [[244.96, 317.54, 248.57, 308.06, 253.31, 306.02, 262.8, 307.38, 266.18, 310.54, 260.09, 320.25, 244.51, 319.12]], "area": 218.75395000000015, "iscrowd": 0, "image_id": 111031, "bbox": [244.51, 306.02, 21.67, 14.23], "category_id": 75, "id": 1972944}, {"segmentation": [[111.6, 375.8, 108.67, 391.81, 111.07, 405.14, 115.87, 405.14, 118.53, 396.34, 120.67, 381.41]], "area": 240.67689999999976, "iscrowd": 0, "image_id": 111031, "bbox": [108.67, 375.8, 12.0, 29.34], "category_id": 75, "id": 1974373}, {"segmentation": [[249.39, 243.77, 258.77, 241.24, 262.64, 240.65, 265.17, 240.94, 266.65, 246.45, 262.19, 248.53, 258.92, 248.09, 256.68, 247.79, 254.3, 248.83, 253.26, 247.34, 250.88, 247.04, 249.54, 249.43, 246.86, 250.47, 246.12, 252.25, 242.1, 252.4, 240.02, 249.72, 240.46, 244.22, 249.99, 243.47]], "area": 170.1500499999999, "iscrowd": 0, "image_id": 100726, "bbox": [240.02, 240.65, 26.63, 11.75], "category_id": 75, "id": 1974598}, {"segmentation": [[39.5, 286.51, 47.35, 289.34, 53.24, 290.87, 54.33, 292.61, 51.93, 298.06, 48.66, 297.62, 44.52, 293.92, 38.85, 288.25]], "area": 83.9572500000003, "iscrowd": 0, "image_id": 100726, "bbox": [38.85, 286.51, 15.48, 11.55], "category_id": 75, "id": 1974830}, {"segmentation": [[481.14, 210.7, 488.28, 210.46, 486.81, 231.39, 480.9, 231.39]], "area": 135.68265000000002, "iscrowd": 0, "image_id": 100726, "bbox": [480.9, 210.46, 7.38, 20.93], "category_id": 84, "id": 1984347}, {"segmentation": [[101.66, 110.98, 106.53, 110.98, 93.91, 154.29, 91.91, 150.27, 102.52, 112.13]], "area": 141.84640000000002, "iscrowd": 0, "image_id": 486568, "bbox": [91.91, 110.98, 14.62, 43.31], "category_id": 84, "id": 1988320}, {"segmentation": [[49.8, 95.38, 51.31, 54.44, 52.31, 44.64, 57.08, 44.89, 53.82, 96.13]], "area": 238.61454999999992, "iscrowd": 0, "image_id": 486568, "bbox": [49.8, 44.64, 7.28, 51.49], "category_id": 84, "id": 1988886}, {"segmentation": [[41.66, 39.25, 42.62, 0.56, 48.62, 0.56, 47.18, 40.94]], "area": 228.73560000000003, "iscrowd": 0, "image_id": 486568, "bbox": [41.66, 0.56, 6.96, 40.38], "category_id": 84, "id": 1989204}, {"segmentation": [[92.62, 51.06, 93.39, 99.05, 134.42, 99.82, 123.58, 54.93, 91.07, 50.29]], "area": 1667.0605499999995, "iscrowd": 0, "image_id": 486568, "bbox": [91.07, 50.29, 43.35, 49.53], "category_id": 84, "id": 1989761}, {"segmentation": [[130.13, 110.19, 124.74, 109.42, 120.12, 151.0, 126.28, 152.54]], "area": 247.23929999999984, "iscrowd": 0, "image_id": 486568, "bbox": [120.12, 109.42, 10.01, 43.12], "category_id": 84, "id": 1989818}, {"segmentation": [[159.05, 60.49, 171.08, 88.3, 173.85, 97.77, 168.92, 97.77, 155.11, 60.49]], "area": 183.78200000000032, "iscrowd": 0, "image_id": 486568, "bbox": [155.11, 60.49, 18.74, 37.28], "category_id": 84, "id": 1989906}, {"segmentation": [[143.86, 151.85, 145.45, 111.26, 149.83, 112.46, 149.83, 155.83, 144.66, 153.84]], "area": 223.65370000000053, "iscrowd": 0, "image_id": 486568, "bbox": [143.86, 111.26, 5.97, 44.57], "category_id": 84, "id": 1990430}, {"segmentation": [[81.36, 220.27, 79.47, 275.14, 68.11, 280.81, 71.9, 227.84]], "area": 542.5063999999996, "iscrowd": 0, "image_id": 486568, "bbox": [68.11, 220.27, 13.25, 60.54], "category_id": 84, "id": 1990502}, {"segmentation": [[103.19, 165.88, 101.85, 200.58, 118.35, 205.97, 121.39, 205.3, 124.08, 162.85, 122.06, 162.85, 104.2, 157.79]], "area": 873.0759000000004, "iscrowd": 0, "image_id": 486568, "bbox": [101.85, 157.79, 22.23, 48.18], "category_id": 84, "id": 1990520}, {"segmentation": [[141.11, 158.78, 142.88, 197.63, 144.46, 201.38, 146.04, 201.38, 147.81, 198.42, 144.66, 156.61, 141.9, 155.62]], "area": 188.4064999999997, "iscrowd": 0, "image_id": 486568, "bbox": [141.11, 155.62, 6.7, 45.76], "category_id": 84, "id": 1990601}, {"segmentation": [[421.88, 46.48, 437.34, 51.54, 437.88, 65.15, 437.08, 75.55, 440.81, 84.61, 447.49, 103.42, 441.51, 106.84, 434.67, 97.44, 429.54, 86.33, 413.31, 87.19, 410.74, 105.13, 402.2, 118.81, 406.23, 91.79, 419.14, 63.76, 418.51, 53.99, 419.45, 47.06]], "area": 1198.0277499999995, "iscrowd": 0, "image_id": 45136, "bbox": [402.2, 46.48, 45.29, 72.33], "category_id": 1, "id": 2000881}, {"segmentation": [[298.51, 137.2, 297.04, 118.09, 300.34, 116.62, 304.39, 115.88, 310.27, 120.29, 311.74, 123.97, 312.47, 130.58, 317.98, 134.99, 321.29, 135.73, 322.76, 136.46, 311.74, 158.51, 297.77, 171.74, 291.52, 176.89, 291.52, 168.44, 292.62, 160.72, 292.62, 148.96, 293.36, 142.71, 298.87, 138.67, 299.61, 137.56]], "area": 989.3307, "iscrowd": 0, "image_id": 557323, "bbox": [291.52, 115.88, 31.24, 61.01], "category_id": 1, "id": 2015769}, {"segmentation": [[305.63, 110.32, 309.96, 107.38, 314.77, 105.83, 317.55, 105.67, 322.05, 108.77, 326.23, 114.97, 327.16, 114.97, 305.47, 116.36]], "area": 155.5352000000002, "iscrowd": 0, "image_id": 45136, "bbox": [305.47, 105.67, 21.69, 10.69], "category_id": 62, "id": 2123513}, {"segmentation": [[125.28, 161.58, 123.07, 201.39, 126.75, 201.39, 129.7, 157.15]], "area": 164.4865499999998, "iscrowd": 0, "image_id": 486568, "bbox": [123.07, 157.15, 6.63, 44.24], "category_id": 84, "id": 2141486}, {"segmentation": [[461.13, 216.85, 461.01, 230.13, 472.33, 230.49, 474.04, 213.81, 461.13, 217.34]], "area": 177.09365000000008, "iscrowd": 0, "image_id": 100726, "bbox": [461.01, 213.81, 13.03, 16.68], "category_id": 84, "id": 2142387}, {"segmentation": [[415.35, 153.54, 410.18, 128.78, 406.11, 128.42, 402.42, 117.7, 395.77, 114.38, 390.6, 121.77, 392.07, 126.94, 381.36, 136.54, 383.58, 159.45, 384.68, 171.64, 395.03, 184.94, 406.85, 191.96, 409.81, 159.08, 414.61, 152.43]], "area": 1646.263100000001, "iscrowd": 0, "image_id": 557323, "bbox": [381.36, 114.38, 33.99, 77.58], "category_id": 1, "id": 2148774}, {"segmentation": [[640.0, 78.19, 631.53, 69.35, 622.1, 74.74, 618.05, 81.48, 622.1, 100.36, 607.27, 111.14, 615.36, 130.01, 626.14, 130.01, 627.49, 156.98, 638.27, 158.32, 639.62, 80.14]], "area": 1640.5797499999996, "iscrowd": 0, "image_id": 560819, "bbox": [607.27, 69.35, 32.73, 88.97], "category_id": 1, "id": 2151267}, {"segmentation": [[420.87, 217.6, 444.74, 240.03, 454.15, 291.41, 455.6, 336.99, 451.98, 363.76, 446.91, 389.81, 454.15, 413.69, 451.98, 430.33, 460.66, 439.02, 460.66, 449.15, 462.83, 464.34, 463.56, 483.15, 460.66, 511.37, 471.52, 533.08, 488.16, 595.31, 489.61, 627.87, 373.83, 639.45, 368.04, 630.04, 359.36, 638.72, 244.31, 638.72, 257.34, 585.18, 271.81, 525.12, 273.26, 503.41, 286.28, 485.32, 293.52, 467.96, 285.56, 446.25, 277.6, 424.54, 276.15, 410.8, 271.09, 397.05, 263.85, 358.7, 255.89, 340.61, 253.0, 329.76, 265.3, 310.22, 255.17, 304.43, 247.93, 309.5, 245.04, 318.18, 242.14, 314.56, 246.48, 295.75, 255.89, 279.11, 264.57, 266.08, 273.98, 265.36, 276.87, 250.89, 292.79, 246.54, 331.14, 271.15, 330.42, 261.02, 318.12, 234.97, 318.84, 229.9, 305.09, 218.33, 302.92, 195.89, 302.2, 183.59, 298.58, 169.12, 302.92, 157.55, 308.71, 135.11, 327.52, 123.54, 364.43, 122.81, 396.99, 141.63, 405.67, 169.85, 398.44, 185.76, 402.05, 203.85, 389.75, 214.71, 394.09, 217.6]], "area": 88062.66175000001, "iscrowd": 0, "image_id": 111031, "bbox": [242.14, 122.81, 247.47, 516.64], "category_id": 1, "id": 2152762}, {"segmentation": [[28.43, 430.14, 33.47, 386.75, 51.64, 348.4, 72.83, 332.25, 81.92, 331.24, 84.94, 321.15, 98.06, 306.01, 99.07, 269.68, 119.26, 235.37, 138.43, 212.16, 154.58, 187.93, 166.69, 168.76, 183.85, 162.7, 211.09, 141.51, 227.24, 136.47, 261.55, 150.59, 268.62, 174.82, 271.65, 187.93, 270.64, 202.06, 270.64, 221.24, 266.6, 232.34, 251.46, 247.48, 244.4, 247.48, 259.54, 259.59, 259.54, 268.67, 258.53, 286.84, 246.42, 314.08, 234.31, 348.4, 229.26, 363.54, 227.24, 397.85, 253.48, 403.9, 268.62, 408.95, 269.63, 412.99, 28.43, 432.16], [38.52, 469.05, 51.64, 541.71, 38.52, 589.14, 30.45, 639.6, 79.9, 637.58, 92.01, 593.18, 102.1, 571.99, 108.16, 530.61, 109.16, 522.53, 119.26, 564.92, 117.24, 587.12, 123.29, 611.34, 133.39, 630.52, 140.45, 639.6, 178.8, 639.6, 162.65, 583.09, 162.65, 569.97, 164.67, 556.85, 164.67, 549.78, 170.73, 512.44, 169.72, 472.07, 168.71, 448.86]], "area": 63036.87565, "iscrowd": 0, "image_id": 521400, "bbox": [28.43, 136.47, 243.22, 503.13], "category_id": 1, "id": 2153001}, {"segmentation": [[317.81, 171.75, 313.92, 168.0, 314.2, 161.33, 317.39, 156.88, 319.06, 150.91, 322.95, 140.21, 325.32, 127.0, 332.68, 112.69, 337.96, 106.16, 345.46, 105.05, 349.36, 99.21, 344.91, 92.96, 335.46, 87.4, 315.59, 98.1, 296.55, 106.72, 289.32, 109.22, 284.04, 110.61, 278.49, 114.5, 270.84, 116.17, 270.15, 115.47, 266.67, 118.53, 263.62, 116.58, 262.51, 114.08, 263.89, 110.61, 269.73, 107.55, 277.37, 107.55, 287.52, 101.99, 300.02, 93.65, 311.42, 90.18, 318.37, 84.62, 329.9, 75.87, 338.93, 71.7, 333.79, 68.64, 334.76, 63.78, 333.1, 61.69, 331.71, 56.83, 333.38, 50.44, 338.52, 43.21, 341.71, 42.52, 343.1, 40.85, 342.69, 39.74, 346.85, 39.74, 349.63, 39.32, 353.52, 42.79, 357.97, 48.07, 359.78, 49.05, 372.01, 48.07, 378.95, 48.77, 386.18, 51.83, 386.46, 53.63, 385.21, 60.86, 381.32, 64.75, 381.35, 66.38, 385.81, 75.65, 388.85, 91.7, 386.17, 97.05, 386.53, 105.08, 387.95, 116.31, 386.7, 120.24, 384.39, 127.37, 379.57, 133.79, 381.18, 142.53, 383.49, 151.09, 385.63, 158.23, 387.95, 162.68, 388.85, 168.93, 394.55, 175.17, 401.33, 173.03, 403.47, 174.28, 400.08, 176.42, 395.98, 180.88, 394.2, 185.33, 392.06, 186.23, 388.85, 184.09, 387.6, 181.05, 385.28, 175.17, 384.03, 173.38, 379.93, 167.14, 376.36, 160.01, 371.9, 155.19, 368.34, 149.84, 366.55, 140.03, 361.2, 135.04, 354.96, 135.4, 346.04, 131.47, 339.26, 123.98, 337.66, 135.93, 333.56, 140.75, 329.99, 148.77, 326.96, 155.02, 325.18, 158.58, 325.53, 160.9, 322.86, 165.36, 323.75, 169.82, 319.29, 172.49]], "area": 6151.521050000002, "iscrowd": 0, "image_id": 240418, "bbox": [262.51, 39.32, 140.96, 146.91], "category_id": 1, "id": 2161281}, {"segmentation": [[354.46, 480.0, 352.82, 475.86, 351.17, 473.04, 344.36, 472.1, 339.42, 474.45, 338.01, 480.0]], "area": 100.28484999999972, "iscrowd": 0, "image_id": 398534, "bbox": [338.01, 472.1, 16.45, 7.9], "category_id": 37, "id": 2180185}, {"segmentation": [[640.0, 178.1, 627.55, 174.37, 614.5, 170.64, 563.21, 151.99, 560.41, 165.05, 640.0, 196.75, 640.0, 177.17]], "area": 1234.8126500000012, "iscrowd": 0, "image_id": 364256, "bbox": [560.41, 151.99, 79.59, 44.76], "category_id": 41, "id": 2181212}, {"segmentation": [[214.88, 127.45, 259.65, 127.45, 280.54, 123.47, 300.44, 110.54, 316.35, 120.49, 283.52, 156.3, 274.57, 174.21, 257.66, 188.14, 238.76, 179.18, 214.88, 175.2, 205.93, 161.28, 206.92, 139.39]], "area": 4590.53465, "iscrowd": 0, "image_id": 339202, "bbox": [205.93, 110.54, 110.42, 77.6], "category_id": 75, "id": 2195485}, {"segmentation": [[224.36, 128.2, 233.92, 113.98, 245.93, 111.98, 248.81, 123.09, 247.26, 128.2, 242.59, 132.87, 232.37, 133.32, 224.59, 131.54], [225.7, 143.99, 243.92, 136.87, 246.15, 145.1, 241.26, 149.99, 232.14, 151.54, 217.92, 147.76]], "area": 588.2997999999998, "iscrowd": 0, "image_id": 486568, "bbox": [217.92, 111.98, 30.89, 39.56], "category_id": 75, "id": 2195533}, {"segmentation": [[212.23, 403.9, 219.11, 406.32, 221.94, 401.07, 219.91, 398.24, 222.74, 382.88, 221.94, 365.5, 221.94, 352.97, 215.87, 354.58, 215.47, 371.96, 215.06, 384.09, 215.06, 395.81, 212.64, 402.69, 212.64, 403.49], [176.26, 385.71, 173.43, 393.39, 177.88, 398.64, 179.9, 399.45, 181.92, 396.62, 185.15, 387.73, 197.68, 382.07, 203.75, 380.45, 207.79, 357.82, 207.79, 353.77, 199.7, 351.35, 199.3, 366.31, 200.92, 374.39, 192.43, 374.79, 183.53, 381.26, 179.09, 382.88, 175.05, 385.3], [202.53, 345.69, 226.79, 345.69, 235.68, 331.54, 236.89, 324.27, 235.68, 321.44, 236.49, 312.54, 229.62, 311.33, 225.98, 316.18, 224.36, 323.46, 214.66, 325.88, 202.94, 340.44, 202.13, 344.88]], "area": 1450.7859999999998, "iscrowd": 0, "image_id": 114868, "bbox": [173.43, 311.33, 63.46, 94.99], "category_id": 1, "id": 2203798}, {"segmentation": [[366.95, 280.64, 294.28, 273.46, 247.96, 276.25, 209.63, 298.61, 198.05, 283.44, 197.25, 278.65, 197.25, 274.65, 177.29, 282.64, 149.74, 275.45, 160.92, 254.29, 203.24, 228.74, 227.6, 212.36, 235.58, 205.58, 247.96, 175.23, 248.76, 168.84, 258.81, 143.09, 264.08, 135.98, 273.56, 132.55, 280.41, 130.97, 303.86, 123.86, 301.49, 121.75, 295.43, 120.7, 291.21, 121.49, 284.63, 109.9, 284.89, 103.31, 285.68, 101.47, 284.36, 95.41, 287.26, 72.49, 292.27, 62.22, 299.91, 56.95, 310.44, 54.58, 330.73, 53.79, 341.79, 74.07, 347.85, 82.77, 360.49, 90.67, 361.28, 99.63, 361.02, 104.1, 347.59, 98.31, 354.17, 114.9, 353.12, 119.38, 356.81, 136.51, 375.22, 142.39, 391.21, 169.5, 400.77, 199.05, 410.5, 224.42, 420.93, 245.45, 433.44, 268.92, 445.43, 278.65, 445.43, 288.73, 449.6, 306.81, 441.26, 307.85, 426.31, 303.68, 416.23, 295.16, 407.44, 280.57, 395.59, 272.14, 388.48, 247.11, 377.94, 224.46, 369.77, 208.65, 367.67, 195.22, 356.87, 218.93, 357.92, 224.72, 363.45, 236.05, 364.5, 255.28, 372.67, 273.19]], "area": 31424.717800000006, "iscrowd": 0, "image_id": 124416, "bbox": [149.74, 53.79, 299.86, 254.06], "category_id": 1, "id": 2207978}, {"segmentation": [[624.18, 207.87, 628.03, 226.77, 630.13, 234.83, 639.59, 234.48, 639.94, 213.82, 640.0, 197.36, 639.24, 174.6, 639.24, 161.3, 629.78, 162.7, 624.53, 167.25, 630.83, 173.2, 635.74, 176.35, 639.59, 188.61, 638.89, 192.81, 633.63, 194.56, 629.43, 200.16, 620.68, 198.76, 609.83, 197.36, 605.62, 199.46, 607.37, 201.56, 612.98, 207.87, 619.98, 211.02]], "area": 859.5168500000024, "iscrowd": 0, "image_id": 195211, "bbox": [605.62, 161.3, 34.38, 73.53], "category_id": 64, "id": 23096}, {"segmentation": [[406.47, 177.1, 398.52, 178.99, 397.0, 172.17, 392.45, 171.98, 380.33, 174.44, 376.92, 160.42, 371.8, 143.18, 370.85, 140.72, 403.44, 134.66, 404.01, 141.48, 404.58, 144.13, 407.61, 145.27, 408.18, 145.27, 410.45, 147.35, 413.29, 147.73, 415.95, 149.62, 419.17, 152.09, 420.49, 166.3, 404.77, 170.28]], "area": 1386.6723499999996, "iscrowd": 0, "image_id": 245295, "bbox": [370.85, 134.66, 49.64, 44.33], "category_id": 72, "id": 28937}, {"segmentation": [[449.43, 202.75, 446.61, 211.23, 446.61, 234.39, 447.17, 250.78, 448.3, 253.89, 459.6, 257.56, 473.73, 262.08, 477.12, 262.64, 479.94, 261.51, 478.81, 259.82, 480.23, 258.12, 482.49, 258.97, 483.62, 261.23, 484.75, 207.84, 453.95, 201.91, 449.72, 202.75]], "area": 2018.307149999999, "iscrowd": 0, "image_id": 195211, "bbox": [446.61, 201.91, 38.14, 60.73], "category_id": 72, "id": 29634}, {"segmentation": [[231.47, 192.6, 291.1, 178.57, 292.85, 207.51, 280.57, 230.31, 245.5, 237.32, 230.6, 195.23]], "area": 2537.644750000001, "iscrowd": 0, "image_id": 245295, "bbox": [230.6, 178.57, 62.25, 58.75], "category_id": 72, "id": 34961}, {"segmentation": [[54.71, 403.61, 53.68, 355.1, 54.71, 333.42, 65.03, 337.55, 176.52, 349.94, 181.68, 342.71, 195.1, 341.68, 195.1, 399.48]], "area": 8243.421250000001, "iscrowd": 0, "image_id": 195211, "bbox": [53.68, 333.42, 141.42, 70.19], "category_id": 62, "id": 102815}, {"segmentation": [[524.48, 266.38, 497.59, 296.38, 481.03, 292.24, 417.93, 311.9, 352.76, 269.48, 354.83, 253.97, 322.76, 226.03, 322.76, 214.66, 323.79, 200.17, 331.03, 193.97, 332.07, 175.34, 395.17, 163.97, 410.69, 152.59, 417.93, 149.48, 437.59, 159.83, 438.62, 157.76, 491.38, 156.72, 526.55, 160.86, 554.48, 169.14, 560.69, 185.69, 608.28, 196.03, 616.55, 203.28, 618.62, 204.31, 618.62, 217.76, 563.79, 236.38, 557.59, 261.21, 549.31, 269.48, 529.66, 261.21, 522.41, 263.28]], "area": 30318.311599999997, "iscrowd": 0, "image_id": 100187, "bbox": [322.76, 149.48, 295.86, 162.42], "category_id": 63, "id": 111873}, {"segmentation": [[358.41, 433.21, 356.92, 406.42, 358.71, 389.74, 361.09, 384.98, 364.37, 383.49, 366.45, 353.42, 369.13, 341.51, 373.0, 333.18, 372.11, 322.76, 369.72, 317.7, 370.92, 309.36, 373.59, 305.19, 377.17, 304.3, 381.63, 303.7, 399.2, 309.06, 413.19, 315.61, 481.67, 296.26, 492.09, 294.47, 500.13, 297.75, 522.75, 267.08, 532.58, 262.62, 535.85, 262.32, 583.19, 279.89, 640.0, 300.73, 639.67, 361.73, 640.0, 364.67, 615.64, 375.95, 615.64, 377.91, 619.56, 381.84, 599.95, 480.0, 403.79, 480.0, 360.63, 437.74]], "area": 47703.0866, "iscrowd": 0, "image_id": 100187, "bbox": [356.92, 262.32, 283.08, 217.68], "category_id": 63, "id": 116776}, {"segmentation": [[4.53, 401.32, 4.53, 401.32, 255.85, 402.45, 268.3, 472.64, 254.72, 473.77, 243.4, 472.64, 2.26, 474.91]], "area": 18585.213500000005, "iscrowd": 0, "image_id": 195211, "bbox": [2.26, 401.32, 266.04, 73.59], "category_id": 67, "id": 119343}, {"segmentation": [[279.05, 243.08, 277.25, 241.64, 274.19, 240.2, 270.59, 240.2, 266.27, 243.26, 264.83, 248.84, 263.75, 255.14, 263.93, 262.88, 266.27, 267.91, 271.13, 272.41, 280.49, 270.07, 283.19, 267.55, 286.61, 261.44, 286.61, 257.48, 287.15, 255.5, 298.3, 246.5, 295.96, 261.26, 298.3, 270.61, 301.36, 270.79, 301.54, 263.95, 304.24, 261.26, 306.94, 259.46, 311.08, 262.7, 312.52, 266.11, 313.42, 256.58, 310.36, 250.82, 306.22, 245.42, 304.6, 245.06, 303.52, 241.1, 301.0, 239.84, 300.64, 237.68, 302.98, 234.26, 301.36, 231.92, 300.82, 230.3, 300.82, 228.14, 300.64, 224.18, 303.16, 219.5, 298.3, 221.3, 297.04, 223.64, 294.88, 222.74, 294.88, 227.96, 297.58, 230.3, 297.22, 233.36, 297.76, 235.52, 297.76, 237.68, 296.68, 239.12, 294.52, 240.74, 286.25, 245.42, 285.53, 238.22, 288.59, 231.02, 281.21, 232.64, 281.21, 238.58, 281.93, 241.46]], "area": 1154.583900000002, "iscrowd": 0, "image_id": 471273, "bbox": [263.75, 219.5, 49.67, 52.91], "category_id": 2, "id": 126367}, {"segmentation": [[131.01, 47.96, 199.73, 45.82, 212.62, 153.2, 260.94, 194.0, 313.56, 290.65, 411.28, 228.37, 438.12, 291.72, 370.47, 330.38, 285.64, 359.37, 313.56, 474.63, 84.83, 470.34, 32.21, 367.25, 55.84, 210.47, 131.01, 151.41, 128.86, 56.91]], "area": 90464.92965, "iscrowd": 0, "image_id": 506515, "bbox": [32.21, 45.82, 405.91, 428.81], "category_id": 1, "id": 184355}, {"segmentation": [[61.52, 64.14, 35.11, 90.55, 26.55, 114.82, 15.12, 115.53, 12.27, 115.53, 7.99, 80.56, 12.98, 64.85, 35.83, 35.58, 37.97, 22.74, 51.53, 9.17, 50.82, 2.04, 110.78, 0.0, 111.49, 0.0, 115.06, 20.59, 110.06, 33.44, 141.47, 81.98, 146.47, 94.83, 117.91, 101.97, 90.79, 72.7, 80.8, 64.85, 68.66, 62.0]], "area": 8070.68235, "iscrowd": 0, "image_id": 364205, "bbox": [7.99, 0.0, 138.48, 115.53], "category_id": 1, "id": 189413}, {"segmentation": [[197.39, 444.67, 182.29, 442.52, 179.06, 431.73, 179.06, 423.1, 186.61, 408.0, 202.79, 370.25, 192.0, 323.87, 196.31, 305.53, 197.39, 301.21, 196.31, 289.35, 183.37, 235.42, 181.21, 213.84, 187.69, 204.13, 187.69, 186.88, 181.21, 170.7, 173.66, 159.91, 172.58, 152.36, 185.53, 145.89, 197.39, 143.73, 208.18, 153.44, 214.65, 165.3, 225.44, 181.48, 240.54, 192.27, 249.17, 196.58, 251.33, 195.51, 258.88, 186.88, 267.51, 176.09, 276.13, 169.62, 278.29, 163.15, 280.45, 149.12, 283.69, 142.65, 291.24, 139.42, 299.87, 150.2, 299.87, 162.07, 296.63, 171.78, 289.08, 192.27, 278.29, 213.84, 259.96, 234.34, 240.54, 249.44, 232.99, 262.38, 245.93, 314.16, 262.11, 362.7, 268.58, 383.19, 272.9, 411.24, 299.87, 418.79, 275.06, 418.79, 262.11, 411.24, 249.17, 397.21, 240.54, 377.8, 232.99, 367.01, 217.89, 415.55]], "area": 17289.42315, "iscrowd": 0, "image_id": 471273, "bbox": [172.58, 139.42, 127.29, 305.25], "category_id": 1, "id": 192050}, {"segmentation": [[495.98, 90.45, 512.02, 86.17, 527.53, 96.87, 532.88, 108.1, 532.35, 120.4, 532.35, 130.56, 534.48, 135.38, 536.62, 138.05, 540.9, 135.91, 546.25, 141.26, 560.16, 145.0, 569.78, 130.03, 586.36, 119.33, 604.55, 115.59, 617.92, 115.05, 623.27, 118.26, 631.29, 125.21, 632.36, 126.28, 637.17, 123.08, 620.59, 109.7, 592.25, 84.57, 553.2, 73.33, 532.88, 73.33, 520.58, 75.47, 511.49, 72.8, 505.6, 70.66, 493.84, 75.47, 477.26, 60.5, 460.14, 58.89, 445.7, 66.38, 441.42, 76.01, 440.35, 81.89, 444.1, 89.38, 448.91, 99.01, 451.05, 103.82, 453.19, 104.36, 455.33, 113.98, 463.35, 115.59, 469.23, 120.4, 475.65, 122.54, 478.33, 102.75, 484.74, 95.26, 498.12, 90.45]], "area": 6879.358200000001, "iscrowd": 0, "image_id": 245295, "bbox": [440.35, 58.89, 196.82, 86.11], "category_id": 1, "id": 201161}, {"segmentation": [[391.65, 128.3, 392.82, 112.57, 403.89, 99.75, 411.46, 97.42, 426.02, 98.0, 436.51, 104.99, 439.42, 107.91, 440.59, 113.73, 445.83, 117.81, 448.16, 121.89, 448.16, 128.3, 451.07, 134.12, 464.47, 136.45, 470.88, 140.53, 472.63, 146.94, 462.72, 183.64, 450.49, 211.6, 407.38, 208.69, 385.83, 201.7, 372.43, 205.77, 356.12, 199.37, 358.45, 192.38, 378.84, 191.79, 391.07, 188.3, 403.89, 188.88, 419.03, 185.97, 419.61, 166.74, 419.03, 146.35, 405.63, 144.02, 400.97, 137.03, 394.56, 130.04]], "area": 6229.3344, "iscrowd": 0, "image_id": 245295, "bbox": [356.12, 97.42, 116.51, 114.18], "category_id": 1, "id": 232272}, {"segmentation": [[216.86, 89.08, 216.86, 62.21, 237.01, 62.21, 240.85, 88.12, 248.52, 99.63, 270.59, 95.8, 296.5, 138.02, 292.66, 137.06, 292.66, 149.53, 284.03, 155.29, 306.1, 205.18, 295.54, 203.26, 286.91, 179.28, 238.93, 193.67, 233.17, 172.56, 213.02, 172.56, 228.37, 152.41, 227.41, 101.55, 218.78, 86.2]], "area": 6310.057249999997, "iscrowd": 0, "image_id": 245295, "bbox": [213.02, 62.21, 93.08, 142.97], "category_id": 1, "id": 232666}, {"segmentation": [[431.98, 479.79, 433.41, 458.4, 434.83, 445.56, 429.84, 422.02, 434.12, 409.18, 439.83, 402.76, 444.82, 390.64, 454.8, 392.06, 459.08, 396.34, 456.23, 407.04, 454.8, 418.45, 461.94, 429.87, 473.35, 420.59, 475.49, 414.89, 482.62, 419.88, 478.34, 427.01, 465.5, 441.99, 458.37, 441.28, 454.09, 436.29, 462.65, 479.08]], "area": 2372.1722499999996, "iscrowd": 0, "image_id": 471273, "bbox": [429.84, 390.64, 52.78, 89.15], "category_id": 1, "id": 256321}, {"segmentation": [[616.57, 286.26, 607.95, 252.75, 601.25, 232.65, 593.59, 203.93, 566.78, 171.37, 566.78, 155.1, 555.29, 143.61, 529.44, 129.25, 529.44, 106.27, 517.95, 90.0, 479.66, 101.48, 474.87, 130.21, 485.4, 147.44, 496.89, 157.97, 501.68, 158.93, 500.72, 181.91, 494.02, 196.27, 486.36, 204.88, 467.21, 216.37, 432.74, 232.65, 425.09, 234.56, 425.09, 243.18, 443.28, 243.18, 467.21, 243.18, 471.04, 221.16, 476.78, 219.24, 493.06, 222.12, 499.76, 237.43, 509.34, 248.92, 536.14, 250.84, 536.14, 267.11, 557.21, 269.03, 613.69, 289.13, 623.27, 291.05]], "area": 15015.898149999999, "iscrowd": 0, "image_id": 245295, "bbox": [425.09, 90.0, 198.18, 201.05], "category_id": 1, "id": 257486}, {"segmentation": [[243.38, 287.3, 244.77, 285.22, 250.03, 281.76, 250.03, 276.49, 246.29, 276.49, 250.17, 274.83, 250.58, 269.57, 253.49, 267.22, 255.71, 265.83, 258.62, 265.28, 260.42, 268.46, 261.25, 271.09, 260.42, 274.42, 264.43, 277.74, 268.86, 285.08, 272.19, 297.4, 271.08, 298.09, 267.89, 288.54, 261.94, 289.37, 242.97, 287.3], [244.22, 293.11, 244.08, 302.11, 265.68, 301.97, 264.43, 294.63, 244.49, 292.97], [272.19, 304.6, 272.46, 311.11, 284.92, 309.59, 283.54, 303.63], [273.15, 299.06, 275.51, 297.26, 279.39, 297.68, 284.09, 298.93, 280.77, 300.45, 278.42, 300.45, 276.76, 300.59, 275.09, 300.59, 272.88, 299.62]], "area": 625.9960500000008, "iscrowd": 0, "image_id": 471273, "bbox": [242.97, 265.28, 41.95, 45.83], "category_id": 1, "id": 260807}, {"segmentation": [[640.0, 269.76, 632.81, 254.37, 617.42, 236.1, 610.69, 212.06, 613.57, 207.25, 606.84, 206.29, 602.03, 206.29, 597.22, 212.06, 593.38, 201.48, 567.41, 168.78, 566.45, 155.32, 557.79, 144.74, 573.18, 125.5, 601.07, 116.85, 622.23, 116.85, 629.92, 121.66, 635.69, 137.04, 640.0, 147.62]], "area": 6800.789150000001, "iscrowd": 0, "image_id": 245295, "bbox": [557.79, 116.85, 82.21, 152.91], "category_id": 1, "id": 261367}, {"segmentation": [[138.63, 225.29, 141.25, 227.13, 142.04, 230.93, 140.46, 233.54, 136.01, 233.41, 134.7, 231.45, 134.05, 229.49, 134.31, 228.44, 136.4, 227.78, 137.19, 226.08, 137.58, 225.43]], "area": 46.351999999999954, "iscrowd": 0, "image_id": 58949, "bbox": [134.05, 225.29, 7.99, 8.25], "category_id": 37, "id": 300521}, {"segmentation": [[175.75, 184.24, 179.12, 185.78, 181.22, 187.89, 182.48, 189.57, 184.72, 191.25, 185.7, 193.07, 187.39, 196.57, 188.23, 198.68, 188.09, 203.16, 187.39, 205.82, 185.84, 208.21, 183.74, 210.31, 182.34, 212.27, 181.36, 212.69, 175.61, 212.13, 166.93, 211.99, 158.94, 211.57, 156.14, 211.29, 155.15, 209.19, 154.03, 206.24, 153.75, 203.58, 153.61, 200.22, 154.03, 196.71, 155.15, 194.05, 156.28, 191.11, 158.94, 187.89, 162.3, 185.08, 166.23, 183.54, 169.87, 182.98, 174.07, 183.12]], "area": 825.2351499999999, "iscrowd": 0, "image_id": 219192, "bbox": [153.61, 182.98, 34.62, 29.71], "category_id": 37, "id": 301425}, {"segmentation": [[327.11, 381.11, 327.91, 380.71, 329.01, 380.71, 330.62, 381.61, 331.22, 383.92, 331.22, 386.53, 330.52, 388.24, 328.71, 389.34, 326.7, 389.14, 325.7, 388.54, 325.0, 387.94, 324.5, 386.63, 324.29, 385.43, 324.7, 383.72, 325.0, 382.92, 325.5, 382.21, 326.91, 381.21]], "area": 47.335650000000065, "iscrowd": 0, "image_id": 347688, "bbox": [324.29, 380.71, 6.93, 8.63], "category_id": 37, "id": 301651}, {"segmentation": [[401.49, 214.6, 398.08, 206.95, 401.49, 198.87, 410.21, 194.19, 416.16, 195.89, 420.84, 200.57, 421.27, 206.74, 414.46, 210.99]], "area": 319.6238, "iscrowd": 0, "image_id": 402674, "bbox": [398.08, 194.19, 23.19, 20.41], "category_id": 37, "id": 301753}, {"segmentation": [[324.74, 68.4, 328.07, 66.41, 330.95, 66.63, 334.06, 66.85, 336.94, 67.96, 339.38, 71.29, 339.6, 74.61, 338.72, 77.94, 335.83, 79.94, 328.96, 80.82, 324.08, 79.27, 321.64, 74.61, 322.75, 69.73, 325.41, 67.51]], "area": 205.05630000000016, "iscrowd": 0, "image_id": 347688, "bbox": [321.64, 66.41, 17.96, 14.41], "category_id": 37, "id": 302156}, {"segmentation": [[258.48, 341.54, 267.5, 348.28, 265.21, 356.23, 257.67, 359.73, 250.26, 356.76, 249.45, 347.6]], "area": 223.1391, "iscrowd": 0, "image_id": 219192, "bbox": [249.45, 341.54, 18.05, 18.19], "category_id": 37, "id": 304084}, {"segmentation": [[195.72, 355.39, 197.47, 348.87, 205.25, 348.12, 208.01, 348.12, 211.27, 348.62, 214.78, 353.13, 214.78, 358.15, 214.78, 360.41, 207.76, 366.68, 201.99, 365.93, 197.97, 364.42, 196.47, 359.91, 195.72, 355.64]], "area": 289.6607500000002, "iscrowd": 0, "image_id": 219192, "bbox": [195.72, 348.12, 19.06, 18.56], "category_id": 37, "id": 306569}, {"segmentation": [[218.98, 355.7, 218.34, 352.72, 219.19, 350.59, 220.26, 348.67, 221.75, 347.61, 225.36, 346.97, 228.13, 346.76, 231.96, 347.61, 233.45, 350.59, 233.45, 353.15, 232.39, 357.19, 228.13, 361.45, 225.58, 361.66, 223.66, 361.02, 221.53, 359.74, 220.26, 358.47]], "area": 174.2074499999998, "iscrowd": 0, "image_id": 219192, "bbox": [218.34, 346.76, 15.11, 14.9], "category_id": 37, "id": 307278}, {"segmentation": [[534.63, 363.18, 516.44, 357.67, 514.53, 355.28, 514.53, 353.37, 515.61, 349.78, 519.32, 344.03, 521.59, 344.15, 564.43, 356.24, 565.63, 357.43, 563.83, 362.1, 560.84, 368.08, 558.57, 369.76, 535.23, 363.42]], "area": 709.4744500000006, "iscrowd": 0, "image_id": 364205, "bbox": [514.53, 344.03, 51.1, 25.73], "category_id": 77, "id": 321664}, {"segmentation": [[343.01, 341.93, 349.48, 113.26, 240.54, 83.06, 207.1, 327.91, 332.22, 353.8]], "area": 30308.811800000003, "iscrowd": 0, "image_id": 101473, "bbox": [207.1, 83.06, 142.38, 270.74], "category_id": 77, "id": 323783}, {"segmentation": [[494.05, 15.68, 465.95, 171.35, 457.3, 174.59, 460.54, 185.41, 454.05, 245.95, 430.27, 332.43, 416.22, 358.38, 410.81, 390.81, 475.68, 425.41, 530.81, 430.81, 542.7, 410.27, 542.7, 410.27, 597.84, 200.54, 597.84, 154.05, 618.38, 3.78, 516.76, 1.62, 505.95, 10.27, 498.38, 13.51]], "area": 54348.16070000001, "iscrowd": 0, "image_id": 101473, "bbox": [410.81, 1.62, 207.57, 429.19], "category_id": 77, "id": 325005}, {"segmentation": [[137.08, 264.08, 143.97, 259.07, 149.29, 277.22, 152.1, 299.12, 152.1, 300.68, 135.52, 299.43, 134.58, 297.87, 133.95, 293.17, 142.4, 287.86, 144.59, 282.54, 143.34, 280.66, 133.64, 282.85, 134.89, 279.09, 137.4, 272.84, 136.14, 268.77]], "area": 455.7535499999999, "iscrowd": 0, "image_id": 485740, "bbox": [133.64, 259.07, 18.46, 41.61], "category_id": 77, "id": 325308}, {"segmentation": [[359.74, 193.26, 354.32, 160.73, 362.45, 124.82, 379.39, 105.84, 405.14, 90.25, 437.67, 86.86, 466.81, 94.32, 495.95, 119.39, 508.15, 154.63, 500.7, 195.3, 487.14, 216.98, 467.49, 231.89, 445.8, 240.02, 407.85, 240.02, 378.04, 218.34, 361.09, 193.26]], "area": 18331.024900000004, "iscrowd": 0, "image_id": 264209, "bbox": [354.32, 86.86, 153.83, 153.16], "category_id": 85, "id": 337485}, {"segmentation": [[568.56, 169.19, 638.84, 162.09, 638.84, 57.73, 611.87, 54.18, 556.49, 66.96, 529.51, 84.0, 508.21, 99.62, 499.7, 113.82, 501.83, 118.79, 531.64, 130.86, 545.13, 140.8, 555.78, 155.7, 565.72, 167.06, 572.11, 168.48]], "area": 11334.291000000007, "iscrowd": 0, "image_id": 57100, "bbox": [499.7, 54.18, 139.14, 115.01], "category_id": 62, "id": 374343}, {"segmentation": [[10.79, 138.82, 25.89, 160.39, 37.75, 178.73, 39.91, 244.52, 45.3, 281.2, 36.67, 238.05, 1.08, 254.23, 5.39, 134.5]], "area": 3281.0667000000008, "iscrowd": 0, "image_id": 100187, "bbox": [1.08, 134.5, 44.22, 146.7], "category_id": 62, "id": 378666}, {"segmentation": [[91.47, 222.85, 73.17, 272.35, 69.94, 326.15, 85.01, 376.73, 107.61, 409.01, 135.58, 429.45, 164.64, 453.13, 146.34, 472.5, 62.41, 474.65, 0.0, 471.42, 4.3, 423.0, 19.37, 361.66, 30.13, 316.47, 37.66, 268.04, 39.81, 258.36, 52.73, 240.07, 69.94, 227.15, 86.09, 217.47], [569.24, 169.05, 639.18, 164.74, 638.11, 247.6, 640.0, 328.3, 640.0, 356.28, 624.12, 348.75, 621.96, 367.04, 638.11, 369.19, 638.11, 387.49, 597.21, 401.48, 548.79, 419.77, 555.25, 413.31, 586.45, 375.65, 610.13, 316.47, 610.13, 259.44, 595.06, 209.94, 573.54, 195.95, 570.31, 180.88], [481.0, 461.73, 504.67, 446.67, 531.57, 431.61, 547.72, 448.82, 505.75, 457.43, 477.77, 462.81], [560.63, 475.72, 600.44, 459.58, 639.18, 449.9, 639.18, 473.57, 600.44, 474.65, 562.78, 475.72], [519.74, 471.42, 546.64, 464.96, 552.02, 472.5, 528.35, 473.57, 517.59, 473.57]], "area": 30136.800599999995, "iscrowd": 0, "image_id": 57100, "bbox": [0.0, 164.74, 640.0, 310.98], "category_id": 67, "id": 391061}, {"segmentation": [[336.81, 193.95, 337.75, 200.82, 338.06, 203.0, 343.36, 204.87, 346.48, 206.12, 348.04, 209.55, 349.6, 215.17, 343.36, 215.17, 343.05, 217.35, 342.74, 222.03, 341.8, 226.09, 344.3, 229.21, 344.61, 231.08, 344.92, 234.83, 344.92, 238.57, 344.92, 244.5, 341.18, 244.5, 337.75, 236.7, 336.81, 233.27, 335.56, 230.77, 335.25, 236.39, 333.69, 237.95, 332.75, 240.13, 334.94, 244.5, 329.32, 244.5, 327.76, 240.13, 326.82, 238.26, 329.63, 235.45, 330.26, 231.71, 325.89, 227.34, 327.14, 217.98, 324.02, 216.11, 322.14, 214.55, 323.08, 206.43, 330.88, 201.75, 329.94, 197.7, 329.63, 193.33, 331.5, 192.7]], "area": 779.1408000000009, "iscrowd": 0, "image_id": 217951, "bbox": [322.14, 192.7, 27.46, 51.8], "category_id": 1, "id": 422399}, {"segmentation": [[103.37, 494.38, 274.16, 493.26, 261.8, 462.92, 231.46, 425.84, 214.61, 419.1, 195.51, 416.85, 205.62, 402.25, 202.25, 379.78, 200.0, 357.3, 185.39, 349.44, 161.8, 346.07, 149.44, 361.8, 143.82, 375.28, 146.07, 396.63, 151.69, 400.0, 135.96, 419.1, 111.24, 430.34, 96.63, 458.43, 95.51, 482.02]], "area": 15011.165899999996, "iscrowd": 0, "image_id": 264423, "bbox": [95.51, 346.07, 178.65, 148.31], "category_id": 1, "id": 433861}, {"segmentation": [[204.4, 209.0, 209.18, 211.09, 210.07, 217.07, 212.46, 224.54, 210.07, 243.06, 212.17, 250.83, 208.88, 254.11, 206.49, 255.01, 204.7, 254.11, 202.31, 251.72, 202.31, 250.53, 202.9, 248.14, 204.4, 246.94, 202.01, 227.82, 197.53, 224.54, 193.64, 221.85, 192.15, 219.16, 197.53, 216.77, 199.62, 217.07, 200.81, 216.47, 200.81, 214.97, 198.72, 210.49, 201.41, 208.4]], "area": 449.2839999999999, "iscrowd": 0, "image_id": 88859, "bbox": [192.15, 208.4, 20.31, 46.61], "category_id": 1, "id": 436325}, {"segmentation": [[225.54, 472.34, 229.92, 402.31, 220.29, 410.19, 215.91, 385.67, 221.16, 375.17, 222.04, 372.54, 225.54, 371.67, 230.79, 350.65, 235.17, 349.78, 239.55, 349.78, 245.67, 362.91, 243.05, 375.17, 250.93, 376.92, 258.81, 379.54, 257.93, 396.18, 258.81, 413.69, 256.18, 435.57, 257.06, 457.46, 264.93, 477.6, 245.67, 447.83, 246.55, 426.82, 238.67, 436.45, 240.42, 456.59, 233.42, 480.22]], "area": 3199.5675000000006, "iscrowd": 0, "image_id": 20487, "bbox": [215.91, 349.78, 49.02, 130.44], "category_id": 1, "id": 445965}, {"segmentation": [[199.12, 416.72, 205.97, 403.02, 204.55, 395.03, 207.69, 391.32, 219.68, 387.32, 230.52, 386.46, 240.23, 390.75, 246.22, 394.17, 249.65, 399.6, 249.08, 408.45, 248.79, 419.01, 242.23, 427.0, 245.37, 430.14, 251.36, 430.71, 260.78, 433.0, 263.07, 435.56, 279.96, 461.74, 280.69, 469.8, 281.79, 480.43, 282.89, 489.59, 267.14, 498.38, 264.21, 492.52, 268.1, 474.8, 257.54, 456.53, 243.55, 438.83, 232.7, 426.56, 212.72, 418.0, 200.44, 416.28]], "area": 2677.0211999999974, "iscrowd": 0, "image_id": 264423, "bbox": [199.12, 386.46, 83.77, 111.92], "category_id": 1, "id": 457507}, {"segmentation": [[85.2, 317.64, 48.21, 326.61, 22.42, 312.03, 23.54, 270.55, 7.85, 264.95, 34.75, 188.71, 66.14, 167.41, 100.9, 156.2, 103.14, 130.42, 100.9, 124.81, 88.57, 115.84, 88.57, 90.06, 104.26, 54.19, 133.41, 39.61, 156.95, 47.46, 172.65, 69.88, 176.01, 103.51, 172.65, 118.09, 153.59, 164.05, 156.95, 175.26, 167.04, 168.54, 198.43, 183.11, 223.09, 227.95, 183.86, 230.19, 165.92, 234.68, 144.62, 310.91, 142.38, 332.21, 126.68, 316.52, 131.17, 327.73, 119.96, 325.49, 98.65, 312.03]], "area": 31613.468599999997, "iscrowd": 0, "image_id": 209041, "bbox": [7.85, 39.61, 215.24, 292.6], "category_id": 1, "id": 458411}, {"segmentation": [[225.94, 474.0, 221.09, 474.32, 220.76, 466.89, 219.47, 462.03, 218.5, 453.95, 219.47, 449.75, 216.88, 443.92, 213.33, 429.37, 209.77, 442.95, 206.86, 449.1, 205.56, 455.24, 204.27, 458.8, 203.62, 462.03, 205.84, 467.32, 206.48, 475.64, 196.45, 474.15, 198.16, 466.68, 198.37, 461.98, 197.3, 456.01, 198.37, 449.82, 199.44, 444.27, 198.8, 439.58, 200.08, 429.13, 200.93, 421.87, 200.93, 414.62, 200.93, 408.43, 199.22, 411.42, 199.65, 413.12, 197.09, 415.47, 192.82, 412.48, 195.81, 408.64, 195.17, 405.44, 196.23, 402.24, 196.02, 398.62, 194.74, 392.0, 194.31, 386.24, 196.45, 382.4, 202.85, 378.35, 203.28, 376.43, 201.14, 374.08, 199.65, 373.44, 199.86, 368.32, 201.78, 363.41, 203.7, 362.34, 209.04, 365.12, 211.17, 370.24, 210.32, 373.44, 211.38, 377.07, 216.93, 377.71, 221.84, 381.12, 222.26, 386.24, 222.05, 391.79, 222.26, 397.98, 221.41, 403.1, 220.77, 410.35, 220.34, 418.67, 220.13, 424.65, 222.9, 427.85, 224.61, 427.63, 223.33, 422.94, 223.97, 419.74, 222.48, 416.75, 225.25, 412.06, 226.96, 422.09, 226.75, 430.83, 226.32, 438.3, 225.47, 447.69, 226.53, 453.24, 227.39, 463.26, 226.11, 469.45]], "area": 2217.7788500000015, "iscrowd": 0, "image_id": 20487, "bbox": [192.82, 362.34, 34.57, 113.3], "category_id": 1, "id": 464840}, {"segmentation": [[353.8, 113.64, 353.8, 113.64, 339.34, 123.29, 339.34, 123.29, 337.42, 138.71, 340.31, 156.06, 346.09, 161.85, 340.31, 188.84, 340.31, 188.84, 336.45, 222.58, 336.45, 222.58, 334.52, 245.72, 341.27, 280.42, 341.27, 280.42, 344.16, 284.28, 344.16, 284.28, 350.91, 284.28, 356.7, 286.21, 362.48, 298.74, 358.62, 317.06, 361.52, 328.63, 362.48, 340.2, 358.62, 358.51, 365.37, 361.4, 375.01, 361.4, 375.01, 361.4, 388.51, 354.66, 384.65, 369.12, 394.29, 372.97, 429.96, 367.19, 429.0, 358.51, 411.65, 356.58, 407.79, 344.05, 413.58, 294.89, 403.93, 275.6, 397.19, 268.86, 388.51, 262.11, 379.83, 250.54, 378.87, 247.65, 383.69, 208.12, 382.73, 188.84, 404.9, 187.88, 414.54, 172.45, 423.22, 164.74, 433.82, 159.92, 431.89, 153.17, 426.11, 147.39, 422.25, 143.53, 415.5, 138.71, 411.65, 136.78, 403.93, 139.67, 402.97, 148.35, 404.9, 153.17, 401.04, 163.78, 395.26, 169.56, 377.91, 169.56, 372.12, 165.7, 382.73, 156.06, 383.69, 144.49, 380.8, 127.14, 371.16, 119.43]], "area": 13046.199600000002, "iscrowd": 0, "image_id": 58949, "bbox": [334.52, 113.64, 99.3, 259.33], "category_id": 1, "id": 468086}, {"segmentation": [[224.65, 276.36, 225.29, 273.6, 223.17, 273.39, 221.89, 274.03, 220.62, 276.36, 220.62, 280.82, 221.47, 284.43, 226.14, 286.13, 229.96, 285.28, 231.45, 284.22, 235.27, 284.01, 235.91, 282.94, 236.76, 281.88, 237.18, 279.12, 237.39, 276.36, 238.24, 274.45, 238.24, 273.6, 237.18, 270.21, 235.48, 269.78, 234.21, 269.78, 231.66, 264.69, 230.81, 263.62, 229.75, 262.99, 228.9, 261.71, 227.63, 258.32, 225.93, 258.74, 224.87, 259.8, 225.71, 263.84, 228.05, 267.45, 228.26, 269.14, 228.26, 271.06, 226.99, 272.75]], "area": 269.1547999999999, "iscrowd": 0, "image_id": 337420, "bbox": [220.62, 258.32, 17.62, 27.81], "category_id": 1, "id": 478480}, {"segmentation": [[41.57, 483.15, 50.56, 428.09, 62.92, 386.52, 69.66, 373.03, 73.03, 348.31, 47.19, 333.71, 74.16, 233.71, 47.19, 213.48, 62.92, 155.06, 73.03, 134.83, 82.02, 126.97, 83.15, 57.3, 100.0, 42.7, 112.36, 47.19, 143.82, 57.3, 147.19, 73.03, 148.31, 105.62, 143.82, 129.21, 141.57, 134.83, 152.81, 141.57, 153.93, 158.43, 152.81, 182.02, 151.69, 210.11, 123.6, 213.48, 122.47, 228.09, 152.81, 235.96, 162.92, 339.33, 160.67, 347.19, 160.67, 394.38, 158.43, 459.55, 167.42, 473.03, 197.75, 486.52, 186.52, 492.13, 132.58, 492.13, 138.2, 473.03, 124.72, 349.44, 100.0, 355.06, 94.38, 384.27, 85.39, 401.12, 69.66, 464.04, 83.15, 494.38, 46.07, 494.38]], "area": 34086.60625000001, "iscrowd": 0, "image_id": 219192, "bbox": [41.57, 42.7, 156.18, 451.68], "category_id": 1, "id": 486454}, {"segmentation": [[286.93, 166.98, 288.75, 154.07, 291.29, 143.52, 292.57, 132.79, 293.84, 130.61, 293.48, 124.43, 294.39, 120.79, 301.66, 120.07, 304.39, 127.34, 312.57, 137.88, 318.57, 142.25, 324.75, 153.16, 328.39, 155.89, 328.39, 159.16, 323.48, 159.34, 321.84, 154.43, 313.48, 147.89, 308.93, 152.07, 298.02, 153.7, 295.84, 151.16, 293.48, 156.07, 293.48, 167.34, 287.11, 168.25]], "area": 753.61595, "iscrowd": 0, "image_id": 58949, "bbox": [286.93, 120.07, 41.46, 48.18], "category_id": 1, "id": 488250}, {"segmentation": [[145.71, 370.14, 145.53, 358.46, 147.5, 349.29, 157.57, 338.14, 166.56, 338.32, 169.98, 346.05, 171.05, 359.18, 164.94, 365.47, 166.2, 385.42, 162.79, 393.69, 166.92, 397.65, 163.68, 400.16, 158.83, 392.97, 158.29, 385.42, 156.13, 380.75, 153.62, 385.24, 153.08, 396.03, 148.58, 395.13, 148.04, 386.68, 145.89, 376.61]], "area": 1058.6069, "iscrowd": 0, "image_id": 337420, "bbox": [145.53, 338.14, 25.52, 62.02], "category_id": 1, "id": 488548}, {"segmentation": [[78.57, 458.31, 85.71, 432.59, 91.43, 411.17, 100.0, 382.59, 108.57, 368.31, 121.43, 318.31, 138.57, 296.88, 151.43, 291.17, 150.0, 271.17, 175.71, 271.17, 207.14, 244.02, 220.0, 174.02, 237.14, 159.74, 228.57, 186.88, 227.14, 211.17, 220.0, 235.45, 241.43, 239.74, 257.14, 231.17, 270.0, 244.02, 270.0, 258.31, 244.29, 274.02, 248.57, 295.45, 235.71, 318.31, 240.0, 342.59, 224.29, 338.31, 224.29, 321.17, 202.86, 326.88, 192.86, 372.59, 194.29, 416.88, 197.14, 445.45, 211.43, 449.74, 210.0, 464.02, 184.29, 481.17, 181.43, 472.59, 180.0, 445.45, 177.14, 419.74, 171.43, 394.02, 167.14, 365.45, 155.71, 355.45, 137.14, 365.45, 128.57, 389.74, 111.43, 415.45, 107.14, 434.02, 104.29, 455.45]], "area": 17180.759200000004, "iscrowd": 0, "image_id": 347688, "bbox": [78.57, 159.74, 191.43, 321.43], "category_id": 1, "id": 490282}, {"segmentation": [[210.13, 329.41, 196.63, 300.49, 191.81, 238.8, 243.86, 179.04, 255.43, 173.26, 268.92, 171.33, 307.48, 195.43, 320.97, 204.1, 336.4, 222.42, 340.25, 256.15, 345.07, 296.63, 323.86, 320.73, 346.03, 319.77, 371.09, 325.55, 460.74, 373.75, 471.34, 382.42, 453.02, 339.05, 465.56, 329.41, 491.58, 357.36, 501.22, 375.67, 508.93, 392.06, 509.89, 394.95, 99.28, 416.16, 108.92, 401.7, 154.22, 367.96]], "area": 43279.429299999996, "iscrowd": 0, "image_id": 411559, "bbox": [99.28, 171.33, 410.61, 244.83], "category_id": 1, "id": 491804}, {"segmentation": [[151.06, 450.28, 148.99, 454.02, 148.99, 459.0, 147.74, 461.07, 143.6, 464.8, 141.94, 468.95, 145.67, 470.61, 147.74, 473.93, 148.99, 477.67, 146.08, 484.3, 151.89, 488.04, 159.36, 489.28, 167.24, 485.96, 169.73, 483.89, 170.56, 471.86, 167.24, 463.14, 165.17, 458.58, 160.61, 457.34, 160.19, 454.43, 156.46, 450.28, 152.72, 448.62]], "area": 743.72365, "iscrowd": 0, "image_id": 337420, "bbox": [141.94, 448.62, 28.62, 40.66], "category_id": 1, "id": 504328}, {"segmentation": [[398.73, 394.22, 421.9, 336.0, 421.31, 316.4, 413.59, 321.74, 395.17, 325.31, 382.1, 317.59, 382.69, 311.65, 399.33, 310.46, 421.9, 295.01, 429.62, 284.91, 428.43, 279.57, 436.75, 271.25, 444.48, 271.25, 455.17, 274.81, 457.55, 281.35, 451.01, 295.6, 452.79, 340.16, 447.45, 365.71, 481.9, 391.25, 487.25, 398.97, 484.87, 417.39, 474.77, 412.64, 467.05, 401.35, 437.35, 380.56, 432.6, 369.27, 407.65, 404.32, 411.21, 413.83, 385.07, 410.26, 396.95, 398.38]], "area": 5497.809850000001, "iscrowd": 0, "image_id": 254711, "bbox": [382.1, 271.25, 105.15, 146.14], "category_id": 1, "id": 513670}, {"segmentation": [[154.67, 251.33, 153.67, 241.75, 154.34, 227.64, 151.82, 215.87, 147.28, 204.44, 141.4, 202.43, 142.07, 215.2, 142.91, 229.15, 141.23, 225.45, 136.86, 226.12, 134.67, 227.97, 135.85, 224.95, 136.69, 222.59, 137.03, 215.2, 133.5, 198.22, 130.98, 193.35, 134.84, 180.91, 133.83, 178.22, 131.82, 176.04, 130.64, 171.67, 129.63, 167.13, 130.14, 162.09, 133.16, 159.23, 136.35, 158.05, 141.56, 159.73, 142.91, 162.59, 144.59, 167.13, 146.61, 171.16, 149.3, 173.18, 155.85, 174.19, 159.89, 175.87, 166.44, 179.74, 177.03, 182.42, 186.1, 184.95, 191.15, 186.96, 188.96, 188.64, 180.22, 190.16, 170.14, 188.48, 165.77, 186.46, 161.06, 184.95, 166.78, 190.32, 173.84, 197.05, 179.55, 206.96, 177.53, 225.45, 173.67, 226.96, 174.84, 233.69, 179.89, 237.55, 183.25, 241.92, 186.95, 248.31, 190.31, 253.86, 192.16, 256.21, 195.35, 262.09, 186.27, 266.29, 177.87, 269.99, 177.53, 265.79, 180.22, 262.09, 180.56, 257.72, 178.71, 252.34, 176.02, 248.98, 172.32, 244.95, 168.62, 242.09, 165.1, 239.07, 162.57, 236.21, 164.09, 246.96, 164.26, 252.34, 163.58, 257.05, 156.02, 261.59, 150.3, 266.46, 146.61, 264.78, 149.97, 258.73, 151.99, 253.35]], "area": 3052.9238500000006, "iscrowd": 0, "image_id": 58949, "bbox": [129.63, 158.05, 65.72, 111.94], "category_id": 1, "id": 522712}, {"segmentation": [[505.52, 289.46, 507.43, 282.63, 509.34, 276.89, 510.44, 270.32, 512.63, 268.41, 516.45, 264.85, 516.18, 261.84, 515.91, 257.74, 518.37, 255.83, 520.56, 255.83, 522.2, 256.1, 522.74, 258.56, 524.66, 259.11, 527.39, 261.57, 528.76, 263.76, 529.85, 265.67, 532.32, 268.13, 535.05, 270.6, 534.78, 272.51, 530.4, 274.97, 528.76, 295.48, 528.21, 306.97, 528.76, 318.18, 529.31, 320.91, 529.58, 324.2, 529.31, 326.11, 526.85, 327.75, 526.03, 325.29, 525.21, 319.55, 519.19, 299.86, 518.1, 306.15, 518.1, 313.53, 520.01, 319.82, 518.64, 325.84, 513.99, 326.38, 509.89, 326.11, 510.16, 325.02, 512.9, 321.73, 511.53, 309.98, 511.53, 301.22, 512.35, 293.29, 512.63, 288.92, 511.53, 286.18, 509.62, 289.19, 509.62, 291.38, 509.62, 292.75, 507.98, 293.84, 506.61, 294.93, 504.42, 290.83, 505.52, 291.11]], "area": 1136.0159999999994, "iscrowd": 0, "image_id": 254711, "bbox": [504.42, 255.83, 30.63, 71.92], "category_id": 1, "id": 541120}, {"segmentation": [[180.48, 286.86, 182.82, 284.08, 183.11, 281.0, 182.09, 279.24, 180.04, 275.28, 177.55, 272.94, 177.99, 269.28, 176.23, 266.34, 173.74, 265.61, 171.1, 267.08, 171.1, 268.69, 170.95, 270.16, 170.51, 271.77, 171.39, 273.67, 170.22, 274.26, 168.9, 277.92, 168.61, 282.32, 168.75, 286.13, 169.19, 289.21, 170.36, 291.84, 170.51, 297.27, 170.22, 302.54, 169.78, 305.77, 168.46, 307.38, 166.26, 308.55, 167.14, 310.9, 169.78, 311.48, 173.3, 310.02, 175.35, 304.89, 174.76, 297.12, 174.47, 292.58, 177.55, 297.41, 176.96, 303.13, 177.4, 306.94, 178.72, 309.43, 181.21, 310.9, 183.55, 309.43, 182.53, 300.05, 181.8, 291.84, 181.36, 288.62]], "area": 475.2928, "iscrowd": 0, "image_id": 254711, "bbox": [166.26, 265.61, 17.29, 45.87], "category_id": 1, "id": 542487}, {"segmentation": [[32.91, 285.57, 25.91, 291.12, 25.18, 295.22, 34.11, 288.7, 34.6, 291.6, 30.01, 301.26, 31.7, 313.33, 30.01, 315.26, 30.01, 316.71, 37.74, 318.15, 36.29, 311.64, 35.56, 303.19, 39.18, 300.29, 38.7, 306.57, 45.7, 309.22, 51.74, 309.46, 55.84, 315.02, 57.77, 313.09, 56.32, 304.88, 53.67, 304.15, 45.94, 303.91, 45.46, 297.39, 45.46, 293.29, 45.22, 288.46, 47.39, 291.84, 48.36, 295.7, 49.32, 298.6, 53.43, 298.6, 51.74, 291.36, 50.77, 288.46, 43.77, 281.22, 40.39, 278.08, 38.94, 276.63, 39.18, 269.88, 36.05, 269.15, 33.15, 272.53, 33.63, 278.32, 33.15, 283.64]], "area": 626.29435, "iscrowd": 0, "image_id": 254711, "bbox": [25.18, 269.15, 32.59, 49.0], "category_id": 1, "id": 559833}, {"segmentation": [[402.7, 293.37, 412.92, 292.58, 414.49, 287.87, 413.71, 282.36, 404.27, 278.43, 401.12, 281.57, 406.63, 285.51, 405.84, 291.01]], "area": 115.6426499999999, "iscrowd": 0, "image_id": 386012, "bbox": [401.12, 278.43, 13.37, 14.94], "category_id": 1, "id": 560721}, {"segmentation": [[493.5, 416.33, 460.16, 416.33, 460.16, 412.52, 458.25, 401.09, 463.97, 391.56, 468.73, 384.89, 476.35, 347.74, 479.21, 314.39, 475.4, 291.53, 470.64, 284.86, 460.16, 301.05, 457.3, 307.72, 446.82, 308.68, 430.62, 332.49, 423.0, 358.22, 423.95, 361.07, 430.62, 372.51, 423.95, 392.51, 415.38, 409.66, 407.76, 413.47, 391.56, 411.57, 389.66, 404.9, 389.66, 394.42, 389.66, 391.56, 391.56, 377.27, 393.47, 375.36, 395.37, 371.55, 395.37, 365.84, 398.23, 357.26, 402.99, 344.88, 407.76, 316.3, 415.38, 302.96, 424.91, 264.85, 429.67, 246.75, 433.48, 236.27, 435.39, 231.51, 441.1, 223.89, 422.05, 232.46, 410.61, 242.94, 402.99, 247.7, 400.14, 250.56, 396.32, 251.51, 393.47, 251.51, 388.7, 254.37, 384.89, 254.37, 384.89, 254.37, 382.03, 254.37, 378.22, 246.75, 375.36, 234.36, 379.18, 230.55, 384.89, 223.89, 392.51, 217.22, 399.18, 211.5, 416.33, 207.69, 420.14, 201.02, 422.05, 195.3, 422.05, 190.54, 419.19, 173.39, 419.19, 161.96, 423.0, 152.43, 425.86, 149.57, 433.48, 144.81, 433.48, 139.09, 428.72, 132.43, 422.05, 120.99, 421.09, 111.47, 421.09, 106.7, 421.09, 101.94, 422.05, 96.22, 430.62, 87.65, 438.24, 84.79, 447.77, 86.7, 459.2, 91.46, 465.87, 96.22, 468.73, 113.37, 467.78, 123.85, 470.64, 130.52, 480.16, 125.76, 487.78, 124.8, 494.45, 122.9, 507.79, 133.38, 523.99, 150.53, 524.94, 161.01, 533.51, 175.3, 536.37, 184.82, 531.61, 200.07, 507.79, 222.93, 506.84, 228.65, 513.51, 233.41, 515.41, 245.8, 515.41, 255.32, 512.55, 260.09, 515.41, 273.43, 514.46, 289.62, 510.65, 299.15, 510.65, 310.58, 508.74, 320.11, 507.79, 326.78, 507.79, 351.55, 504.93, 368.7, 501.12, 378.22, 501.12, 382.99, 501.12, 393.47, 498.26, 401.09, 496.36, 411.57]], "area": 26845.57069999999, "iscrowd": 0, "image_id": 402674, "bbox": [375.36, 84.79, 161.01, 331.54], "category_id": 1, "id": 564614}, {"segmentation": [[282.04, 301.62, 282.04, 293.73, 281.46, 293.03, 280.88, 292.1, 282.15, 288.73, 283.08, 288.15, 283.2, 286.06, 284.71, 286.3, 286.22, 287.69, 286.33, 289.55, 286.57, 290.13, 287.73, 290.94, 287.96, 293.26, 287.96, 294.19, 287.49, 294.19, 286.33, 293.96, 286.45, 295.12, 285.98, 299.88, 286.33, 302.67, 286.33, 302.9, 282.04, 303.13]], "area": 75.67619999999977, "iscrowd": 0, "image_id": 386012, "bbox": [280.88, 286.06, 7.08, 17.07], "category_id": 1, "id": 565788}, {"segmentation": [[386.29, 279.2, 387.0, 279.52, 387.84, 278.87, 388.1, 277.97, 388.87, 277.91, 389.39, 278.42, 389.33, 280.17, 388.36, 281.01, 387.2, 281.52, 388.62, 284.1, 388.03, 285.72, 387.52, 284.3, 386.29, 283.59, 385.26, 283.65, 384.42, 283.52, 384.03, 283.14, 383.58, 282.23, 384.1, 279.58, 383.51, 278.49, 383.71, 277.39, 384.68, 276.87, 385.65, 278.03]], "area": 27.15614999999996, "iscrowd": 0, "image_id": 386012, "bbox": [383.51, 276.87, 5.88, 8.85], "category_id": 1, "id": 567623}, {"segmentation": [[281.06, 273.61, 281.17, 272.68, 280.89, 272.08, 281.72, 271.75, 281.88, 272.3, 282.48, 273.17, 283.14, 273.23, 283.09, 273.83, 282.65, 273.94, 281.93, 273.94, 281.33, 273.89]], "area": 2.7381999999999618, "iscrowd": 0, "image_id": 386012, "bbox": [280.89, 271.75, 2.25, 2.19], "category_id": 1, "id": 570637}, {"segmentation": [[382.95, 280.11, 383.59, 282.03, 385.41, 293.25, 384.02, 293.68, 383.81, 289.83, 382.95, 289.94, 382.85, 294.11, 382.42, 294.0, 380.07, 283.21, 380.07, 280.75, 380.18, 279.79, 381.67, 275.84, 382.53, 278.3]], "area": 48.6439499999999, "iscrowd": 0, "image_id": 386012, "bbox": [380.07, 275.84, 5.34, 18.27], "category_id": 1, "id": 571060}, {"segmentation": [[507.32, 279.39, 506.57, 275.75, 507.42, 272.86, 506.78, 271.36, 504.96, 270.93, 504.96, 269.76, 504.53, 267.83, 503.14, 267.51, 501.86, 271.04, 502.07, 275.64, 502.28, 281.43, 501.96, 284.64, 504.11, 281.75, 505.18, 279.71, 506.14, 279.07]], "area": 57.311000000000014, "iscrowd": 0, "image_id": 386012, "bbox": [501.86, 267.51, 5.56, 17.13], "category_id": 1, "id": 571079}, {"segmentation": [[267.05, 309.96, 267.6, 325.89, 267.6, 329.46, 267.87, 334.68, 276.66, 333.86, 285.73, 331.66, 292.87, 322.32, 290.67, 309.14, 292.87, 301.72, 278.59, 295.95, 269.25, 299.52, 268.15, 299.52, 267.87, 291.28, 252.77, 287.16, 230.25, 285.52, 207.45, 284.69, 180.26, 282.77, 165.15, 283.59, 164.6, 305.57, 169.82, 321.22, 169.82, 333.58, 176.41, 334.68, 177.24, 327.81, 177.24, 321.77, 214.32, 321.22, 238.21, 322.05, 255.79, 319.3, 256.34, 318.75, 266.78, 318.48]], "area": 4542.836700000002, "iscrowd": 0, "image_id": 471273, "bbox": [164.6, 282.77, 128.27, 51.91], "category_id": 15, "id": 571443}, {"segmentation": [[402.7, 37.97, 468.67, 15.09, 487.74, 44.07, 511.0, 45.6, 583.08, 80.3, 636.85, 97.46, 564.77, 76.11, 509.48, 52.08, 483.93, 50.56, 462.19, 53.23, 418.71, 68.86, 410.32, 68.48, 411.09, 49.41]], "area": 3116.5976000000023, "iscrowd": 0, "image_id": 471273, "bbox": [402.7, 15.09, 234.15, 82.37], "category_id": 38, "id": 621629}, {"segmentation": [[109.42, 52.77, 112.69, 58.22, 112.33, 73.85, 114.87, 75.67, 113.78, 58.22, 118.87, 52.4, 115.6, 48.04, 112.69, 49.5]], "area": 82.79275000000008, "iscrowd": 0, "image_id": 20487, "bbox": [109.42, 48.04, 9.45, 27.63], "category_id": 38, "id": 622426}, {"segmentation": [[138.77, 83.84, 139.84, 82.53, 142.57, 82.06, 143.64, 75.52, 142.93, 74.92, 147.09, 69.69, 139.84, 66.12, 134.84, 70.88, 136.98, 74.92, 133.65, 75.04, 128.9, 72.31, 127.23, 71.59, 126.52, 76.47, 119.5, 84.08, 120.81, 85.27, 127.47, 78.49, 128.42, 74.45, 132.94, 75.87, 138.29, 83.49]], "area": 165.72994999999997, "iscrowd": 0, "image_id": 20487, "bbox": [119.5, 66.12, 27.59, 19.15], "category_id": 38, "id": 622906}, {"segmentation": [[83.1, 48.53, 86.19, 36.87, 98.69, 41.23, 94.35, 44.35, 92.33, 45.36, 92.22, 46.15, 90.59, 46.88, 89.29, 46.6, 87.04, 48.46, 85.35, 50.09, 83.61, 49.36]], "area": 99.56290000000008, "iscrowd": 0, "image_id": 264423, "bbox": [83.1, 36.87, 15.59, 13.22], "category_id": 38, "id": 623441}, {"segmentation": [[417.94, 46.14, 414.85, 46.32, 409.94, 47.41, 405.58, 49.23, 403.03, 51.41, 399.03, 53.78, 404.12, 46.51, 404.67, 43.05, 410.12, 35.6, 417.39, 39.23, 426.12, 45.05, 429.03, 47.78, 427.39, 49.41, 423.39, 49.41]], "area": 190.89339999999973, "iscrowd": 0, "image_id": 411559, "bbox": [399.03, 35.6, 30.0, 18.18], "category_id": 38, "id": 623748}, {"segmentation": [[180.57, 192.88, 191.08, 198.13, 198.68, 200.47, 206.27, 200.47, 210.94, 203.39, 215.61, 206.31, 217.36, 208.64, 216.78, 213.9, 211.52, 210.4, 203.35, 208.64, 196.34, 206.89, 186.41, 212.15, 189.92, 205.14, 189.33, 204.56, 179.99, 212.15, 182.91, 203.39, 180.57, 200.47, 175.32, 197.55, 171.82, 192.29, 176.49, 191.13]], "area": 382.17900000000037, "iscrowd": 0, "image_id": 574487, "bbox": [171.82, 191.13, 45.54, 22.77], "category_id": 38, "id": 623820}, {"segmentation": [[248.12, 190.1, 249.4, 187.37, 254.13, 187.55, 257.05, 187.19, 257.05, 185.73, 258.14, 183.0, 269.44, 177.53, 272.54, 179.72, 275.45, 183.91, 278.55, 185.55, 277.46, 191.56, 275.82, 192.84, 273.27, 189.92, 265.25, 191.2, 260.15, 193.56, 255.77, 192.84, 253.41, 193.75, 250.13, 192.65]], "area": 270.11159999999984, "iscrowd": 0, "image_id": 574487, "bbox": [248.12, 177.53, 30.43, 16.22], "category_id": 38, "id": 624599}, {"segmentation": [[335.92, 146.47, 341.73, 144.1, 348.19, 143.89, 349.7, 145.18, 342.59, 146.04, 350.77, 149.05, 355.29, 151.64, 352.71, 152.28, 344.75, 150.13, 344.1, 151.85, 350.13, 153.79, 355.51, 154.0, 356.8, 155.08, 355.51, 156.16, 353.35, 156.16, 348.84, 156.16, 345.39, 156.37, 343.67, 154.22, 338.94, 153.14, 335.49, 150.56, 328.39, 149.91, 327.96, 147.98, 329.04, 145.61, 330.33, 143.03]], "area": 177.4224999999999, "iscrowd": 0, "image_id": 574487, "bbox": [327.96, 143.03, 28.84, 13.34], "category_id": 38, "id": 624671}, {"segmentation": [[449.63, 75.87, 453.8, 80.62, 461.02, 77.01, 469.0, 77.2, 471.85, 79.86, 489.14, 82.14, 496.55, 84.61, 499.21, 89.74, 495.98, 92.02, 495.03, 91.26, 495.98, 96.96, 499.02, 99.24, 495.22, 98.48, 489.71, 94.11, 480.59, 95.06, 478.5, 96.01, 474.89, 94.68, 467.48, 95.82, 462.92, 96.2, 460.26, 94.68, 455.32, 91.45, 452.86, 90.31, 451.91, 90.31, 450.01, 96.2, 448.68, 98.1, 445.26, 99.24, 443.55, 98.29, 442.03, 95.82, 440.51, 91.26, 439.94, 88.41, 438.8, 83.47, 437.66, 81.0, 437.09, 79.1, 438.42, 77.96, 444.69, 77.2, 446.78, 76.63, 450.01, 76.63]], "area": 908.4926000000002, "iscrowd": 0, "image_id": 574487, "bbox": [437.09, 75.87, 62.12, 23.37], "category_id": 38, "id": 626070}, {"segmentation": [[397.86, 190.05, 423.67, 221.79, 424.71, 218.83, 415.96, 206.36, 419.37, 205.18, 420.26, 202.21, 419.07, 197.17, 415.66, 195.68, 410.17, 195.09, 407.65, 194.5, 406.61, 189.16, 399.93, 184.71, 397.41, 183.22, 396.82, 188.41]], "area": 271.0357499999991, "iscrowd": 0, "image_id": 574487, "bbox": [396.82, 183.22, 27.89, 38.57], "category_id": 38, "id": 626369}, {"segmentation": [[596.08, 221.62, 586.69, 212.82, 592.36, 202.45, 603.12, 205.78, 607.04, 209.88, 605.47, 217.32, 597.25, 222.6]], "area": 254.72624999999923, "iscrowd": 0, "image_id": 574487, "bbox": [586.69, 202.45, 20.35, 20.15], "category_id": 38, "id": 626455}, {"segmentation": [[325.64, 298.31, 343.89, 302.27, 360.15, 305.85, 380.39, 314.18, 382.37, 316.16, 376.42, 317.75, 354.6, 310.61, 336.75, 307.83, 318.89, 304.65, 320.88, 301.48, 322.86, 299.1, 325.24, 298.31], [395.86, 318.54, 397.05, 319.33, 396.65, 321.32, 394.67, 321.71, 390.7, 321.71, 392.29, 319.33]], "area": 393.51049999999907, "iscrowd": 0, "image_id": 254711, "bbox": [318.89, 298.31, 78.16, 23.4], "category_id": 39, "id": 628627}, {"segmentation": [[426.0, 365.12, 422.38, 360.86, 417.9, 358.3, 413.64, 355.53, 410.01, 351.26, 411.93, 349.34, 416.19, 349.34, 418.33, 353.61, 420.67, 356.81, 423.87, 360.86, 428.35, 366.83, 427.5, 365.98, 427.5, 365.98, 426.0, 364.48]], "area": 65.10330000000035, "iscrowd": 0, "image_id": 88859, "bbox": [410.01, 349.34, 18.34, 17.49], "category_id": 39, "id": 628950}, {"segmentation": [[324.33, 139.13, 285.95, 31.67, 302.26, 23.99, 328.17, 138.18]], "area": 1255.2675500000016, "iscrowd": 0, "image_id": 431660, "bbox": [285.95, 23.99, 42.22, 115.14], "category_id": 39, "id": 629087}, {"segmentation": [[335.13, 282.31, 328.6, 284.18, 322.77, 286.75, 324.71, 289.6, 326.1, 289.74, 328.88, 288.07, 332.15, 286.48, 336.04, 284.74, 336.52, 283.56]], "area": 44.53040000000008, "iscrowd": 0, "image_id": 514049, "bbox": [322.77, 282.31, 13.75, 7.43], "category_id": 39, "id": 629474}, {"segmentation": [[401.97, 144.19, 380.54, 125.53, 352.9, 106.86, 323.86, 86.13, 317.64, 79.22, 327.32, 67.47, 330.78, 76.45, 361.88, 98.57, 384.69, 122.07, 396.44, 134.51, 406.81, 142.11, 401.97, 149.03]], "area": 984.0880999999988, "iscrowd": 0, "image_id": 58949, "bbox": [317.64, 67.47, 89.17, 81.56], "category_id": 39, "id": 631761}, {"segmentation": [[413.2, 288.53, 411.83, 299.47, 410.01, 301.75, 410.01, 307.68, 391.77, 314.98, 374.43, 305.86, 371.24, 294.46, 371.7, 290.35, 373.98, 283.05, 377.17, 278.49, 381.28, 276.21, 385.84, 274.39, 386.29, 274.84, 402.26, 275.3, 403.17, 278.95, 403.62, 281.69, 409.55, 284.42, 412.74, 288.98]], "area": 1268.9386500000005, "iscrowd": 0, "image_id": 431660, "bbox": [371.24, 274.39, 41.96, 40.59], "category_id": 40, "id": 633205}, {"segmentation": [[533.12, 333.24, 542.11, 333.24, 541.49, 339.44, 541.8, 345.32, 545.21, 349.35, 539.32, 358.02, 533.12, 361.43, 529.72, 358.33, 530.65, 348.42, 532.5, 342.22, 530.65, 337.27]], "area": 292.21235000000036, "iscrowd": 0, "image_id": 254711, "bbox": [529.72, 333.24, 15.49, 28.19], "category_id": 40, "id": 634102}, {"segmentation": [[234.12, 176.19, 242.86, 133.52, 254.4, 111.84, 264.9, 89.11, 266.64, 71.27, 260.35, 59.73, 255.1, 57.98, 248.81, 58.68, 241.12, 67.78, 233.07, 90.16, 230.62, 103.8, 233.42, 121.63, 233.42, 137.72, 229.22, 171.29]], "area": 2034.2573500000003, "iscrowd": 0, "image_id": 347688, "bbox": [229.22, 57.98, 37.42, 118.21], "category_id": 43, "id": 656597}, {"segmentation": [[305.13, 250.79, 320.34, 241.28, 347.91, 236.53, 373.57, 239.38, 383.08, 239.38, 384.03, 246.99, 376.42, 255.54, 366.92, 279.31, 359.31, 283.11, 346.96, 288.81, 326.99, 296.42, 317.49, 295.47, 309.88, 284.06, 305.13, 276.46, 303.23, 266.95]], "area": 3397.7524000000008, "iscrowd": 0, "image_id": 402674, "bbox": [303.23, 236.53, 80.8, 59.89], "category_id": 43, "id": 658399}, {"segmentation": [[120.04, 226.21, 127.17, 224.73, 147.95, 227.4, 191.0, 227.99, 219.51, 228.59, 229.6, 225.32, 232.57, 220.57, 231.38, 217.6, 225.45, 215.82, 215.35, 215.82, 189.22, 212.26, 158.94, 212.55, 135.48, 211.96, 121.53, 214.63, 117.67, 217.6, 112.62, 218.19, 108.16, 218.19, 114.4, 225.91, 118.85, 227.7]], "area": 1620.3821, "iscrowd": 0, "image_id": 219192, "bbox": [108.16, 211.96, 124.41, 16.63], "category_id": 43, "id": 659291}, {"segmentation": [[1.44, 132.31, 25.89, 132.31, 60.4, 120.81, 81.98, 89.17, 115.06, 1.44, 63.28, 0.0, 48.9, 46.02, 14.38, 90.61, 0.0, 94.92]], "area": 7470.184400000002, "iscrowd": 0, "image_id": 270303, "bbox": [0.0, 0.0, 115.06, 132.31], "category_id": 48, "id": 686588}, {"segmentation": [[57.26, 207.42, 80.17, 216.33, 91.62, 220.15, 100.53, 225.24, 101.8, 232.87, 104.34, 246.87, 299.03, 307.95, 313.03, 292.68, 337.21, 293.95, 361.39, 276.14, 371.57, 272.32, 80.17, 164.16, 69.99, 160.34, 44.54, 159.07, 63.62, 179.43, 66.17, 198.52, 63.62, 199.79, 50.9, 199.79, 50.9, 199.79, 50.9, 201.06, 52.17, 206.15]], "area": 17888.838400000004, "iscrowd": 0, "image_id": 57100, "bbox": [44.54, 159.07, 327.03, 148.88], "category_id": 49, "id": 698016}, {"segmentation": [[150.55, 261.69, 99.32, 235.68, 72.52, 212.82, 35.47, 169.47, 22.86, 123.75, 37.05, 80.4, 66.21, 33.11, 109.56, 14.98, 141.88, 1.58, 382.29, 0.79, 431.95, 43.35, 464.27, 89.07, 455.6, 155.28, 426.44, 199.42, 379.93, 224.65, 303.47, 245.93, 234.11, 268.0, 173.41, 260.91, 155.28, 261.69]], "area": 93680.01535000002, "iscrowd": 0, "image_id": 115241, "bbox": [22.86, 0.79, 441.41, 267.21], "category_id": 59, "id": 1070931}, {"segmentation": [[243.81, 92.88, 367.17, 68.21, 431.02, 78.37, 481.81, 81.27, 541.32, 107.39, 597.91, 139.32, 635.65, 168.34, 638.55, 486.17, 616.78, 531.16, 580.5, 545.67, 518.1, 563.08, 490.52, 565.99, 448.44, 568.89, 394.74, 571.79, 332.34, 563.08, 269.93, 557.28, 226.39, 548.57, 188.66, 522.45, 139.32, 474.56, 104.49, 426.67, 78.37, 364.26, 65.31, 300.41, 66.76, 249.61, 95.78, 206.08, 142.22, 161.09, 204.63, 133.51, 245.26, 97.23]], "area": 237586.62729999993, "iscrowd": 0, "image_id": 270303, "bbox": [65.31, 68.21, 573.24, 503.58], "category_id": 59, "id": 1074358}, {"segmentation": [[550.18, 356.7, 473.43, 363.18, 444.25, 365.34, 346.97, 342.64, 308.06, 325.35, 285.36, 295.09, 332.92, 276.71, 362.1, 266.98, 292.92, 246.44, 256.17, 228.07, 272.39, 202.13, 285.36, 202.13, 297.25, 170.78, 328.59, 155.65, 456.14, 110.25, 505.86, 110.25, 565.31, 153.49, 583.69, 226.99, 579.36, 283.2, 566.39, 319.95]], "area": 60958.762399999985, "iscrowd": 0, "image_id": 57100, "bbox": [256.17, 110.25, 327.52, 255.09], "category_id": 61, "id": 1084101}, {"segmentation": [[451.96, 244.85, 526.38, 218.97, 519.91, 128.36, 463.82, 154.25, 447.64, 221.12, 406.65, 239.46]], "area": 6705.044849999999, "iscrowd": 0, "image_id": 506515, "bbox": [406.65, 128.36, 119.73, 116.49], "category_id": 73, "id": 1100794}, {"segmentation": [[496.28, 297.49, 468.29, 216.87, 503.38, 239.43, 518.83, 288.3, 574.8, 275.35, 622.41, 307.09, 619.07, 314.19, 544.31, 331.32, 528.86, 322.13]], "area": 5785.453449999999, "iscrowd": 0, "image_id": 245295, "bbox": [468.29, 216.87, 154.12, 114.45], "category_id": 73, "id": 1103373}, {"segmentation": [[350.41, 212.41, 372.65, 224.66, 359.94, 254.62, 348.14, 244.64, 334.98, 280.95, 290.5, 294.11, 285.5, 285.94, 309.11, 278.68, 310.92, 273.23, 305.93, 267.78, 335.89, 259.16]], "area": 1696.9244999999994, "iscrowd": 0, "image_id": 245295, "bbox": [285.5, 212.41, 87.15, 81.7], "category_id": 73, "id": 1104033}, {"segmentation": [[382.26, 247.84, 361.5, 200.95, 384.18, 207.86, 394.56, 232.08, 426.46, 221.7, 428.38, 223.62, 426.07, 224.78, 424.92, 226.7, 425.69, 227.47, 428.76, 227.08, 430.3, 229.39, 427.61, 232.08, 425.3, 236.31, 424.15, 240.15, 424.92, 244.76, 427.99, 245.91, 431.45, 245.91, 434.14, 246.3, 441.06, 244.76, 447.59, 242.84, 458.36, 242.07, 461.81, 242.45, 465.66, 244.38, 466.81, 247.84, 424.53, 260.52, 404.16, 265.51]], "area": 2377.5069, "iscrowd": 0, "image_id": 245295, "bbox": [361.5, 200.95, 105.31, 64.56], "category_id": 73, "id": 1104121}, {"segmentation": [[231.51, 193.82, 287.04, 180.73, 291.99, 198.77, 288.45, 200.89, 287.04, 207.26, 283.85, 204.78, 282.08, 204.78, 270.77, 229.18, 266.88, 235.55, 250.96, 239.79, 239.65, 229.18, 232.22, 194.17]], "area": 2180.3222, "iscrowd": 0, "image_id": 245295, "bbox": [231.51, 180.73, 60.48, 59.06], "category_id": 73, "id": 1104325}, {"segmentation": [[265.8, 375.85, 356.95, 346.1, 368.47, 272.22, 345.44, 253.03, 322.41, 311.56, 250.44, 332.67]], "area": 6173.703900000001, "iscrowd": 0, "image_id": 245295, "bbox": [250.44, 253.03, 118.03, 122.82], "category_id": 73, "id": 1104350}, {"segmentation": [[269.55, 255.71, 285.11, 248.64, 288.65, 203.02, 289.71, 201.25, 302.79, 209.03, 299.26, 259.25, 296.78, 261.37, 292.89, 262.43, 279.81, 264.91, 275.56, 263.85, 268.84, 257.13]], "area": 1010.9517000000011, "iscrowd": 0, "image_id": 245295, "bbox": [268.84, 201.25, 33.95, 63.66], "category_id": 73, "id": 1104402}, {"segmentation": [[24.83, 342.59, 19.45, 340.14, 16.52, 332.32, 17.5, 326.94, 18.97, 321.56, 23.37, 319.11, 28.26, 318.14, 36.08, 318.14, 48.8, 320.58, 51.24, 323.52, 54.18, 328.41, 53.69, 333.3, 53.2, 337.21, 52.71, 340.14, 51.24, 341.61, 47.82, 342.1, 43.91, 342.1, 40.48, 342.59, 31.68, 343.08, 27.77, 343.08]], "area": 800.9644, "iscrowd": 0, "image_id": 209041, "bbox": [16.52, 318.14, 37.66, 24.94], "category_id": 74, "id": 1107128}, {"segmentation": [[281.06, 254.27, 286.54, 257.83, 296.13, 253.44, 306.27, 251.25, 313.67, 250.15, 316.41, 247.69, 315.04, 242.76, 282.43, 248.51, 278.87, 250.98, 281.06, 255.09]], "area": 269.63160000000033, "iscrowd": 0, "image_id": 100187, "bbox": [278.87, 242.76, 37.54, 15.07], "category_id": 75, "id": 1108341}, {"segmentation": [[160.75, 342.44, 243.18, 364.72, 324.86, 381.05, 343.42, 381.05, 359.02, 361.01, 370.9, 343.93, 374.61, 339.47, 375.35, 347.64, 380.55, 347.64, 380.55, 332.79, 374.61, 327.59, 243.62, 302.48, 231.33, 299.47, 207.96, 294.53, 189.63, 290.48, 158.02, 340.36, 160.48, 342.47]], "area": 11712.876400000005, "iscrowd": 0, "image_id": 364205, "bbox": [158.02, 290.48, 222.53, 90.57], "category_id": 76, "id": 1114818}, {"segmentation": [[187.7, 43.55, 186.09, 97.64, 186.09, 98.45, 199.01, 103.3, 197.39, 45.16]], "area": 639.5944999999996, "iscrowd": 0, "image_id": 209041, "bbox": [186.09, 43.55, 12.92, 59.75], "category_id": 84, "id": 1140005}, {"segmentation": [[208.51, 166.29, 222.55, 165.87, 222.97, 229.92, 217.18, 223.31, 214.7, 215.87, 210.98, 207.19, 206.85, 199.75, 206.03, 193.97]], "area": 783.7304500000007, "iscrowd": 0, "image_id": 209041, "bbox": [206.03, 165.87, 16.94, 64.05], "category_id": 84, "id": 1141901}, {"segmentation": [[73.58, 33.77, 80.98, 34.05, 80.41, 99.28, 73.58, 98.71]], "area": 463.2009000000001, "iscrowd": 0, "image_id": 209041, "bbox": [73.58, 33.77, 7.4, 65.51], "category_id": 84, "id": 1143803}, {"segmentation": [[590.02, 248.14, 586.55, 294.74, 588.8, 296.37, 592.48, 247.33, 589.82, 247.94]], "area": 114.40885000000092, "iscrowd": 0, "image_id": 195211, "bbox": [586.55, 247.33, 5.93, 49.04], "category_id": 84, "id": 1144634}, {"segmentation": [[75.3, 168.54, 59.35, 173.66, 62.19, 123.53, 77.86, 120.69, 75.3, 169.11]], "area": 764.5155, "iscrowd": 0, "image_id": 209041, "bbox": [59.35, 120.69, 18.51, 52.97], "category_id": 84, "id": 1145872}, {"segmentation": [[328.09, 115.73, 339.33, 115.73, 341.57, 30.34, 331.46, 32.58, 331.46, 115.73]], "area": 756.3329000000009, "iscrowd": 0, "image_id": 209041, "bbox": [328.09, 30.34, 13.48, 85.39], "category_id": 84, "id": 1146872}, {"segmentation": [[40.45, 30.15, 51.69, 32.4, 50.56, 99.81, 41.57, 94.19, 41.57, 31.27]], "area": 629.5928499999999, "iscrowd": 0, "image_id": 209041, "bbox": [40.45, 30.15, 11.24, 69.66], "category_id": 84, "id": 1147282}, {"segmentation": [[255.68, 40.46, 256.18, 108.79, 263.43, 109.29, 265.19, 40.46]], "area": 574.8578999999997, "iscrowd": 0, "image_id": 209041, "bbox": [255.68, 40.46, 9.51, 68.83], "category_id": 84, "id": 1148937}, {"segmentation": [[61.76, 62.93, 62.06, 96.3, 62.14, 98.1, 49.49, 97.81, 49.68, 78.01, 49.29, 52.23, 49.68, 37.46, 50.07, 31.08, 53.74, 31.08, 62.52, 31.08, 63.01, 33.5, 63.2, 45.08, 62.33, 60.73]], "area": 856.3465500000002, "iscrowd": 0, "image_id": 209041, "bbox": [49.29, 31.08, 13.91, 67.02], "category_id": 84, "id": 1150076}, {"segmentation": [[56.12, 135.52, 56.41, 154.99, 56.12, 175.77, 51.0, 177.53, 40.17, 181.63, 39.73, 176.21, 40.17, 130.11, 40.75, 121.03, 44.85, 118.84, 54.8, 118.25, 56.56, 123.96]], "area": 966.3239999999998, "iscrowd": 0, "image_id": 209041, "bbox": [39.73, 118.25, 16.83, 63.38], "category_id": 84, "id": 1150230}, {"segmentation": [[244.85, 106.51, 245.13, 77.55, 245.4, 53.44, 246.77, 41.89, 254.14, 44.35, 253.6, 68.94, 254.42, 108.42]], "area": 559.7632499999995, "iscrowd": 0, "image_id": 209041, "bbox": [244.85, 41.89, 9.57, 66.53], "category_id": 84, "id": 1150500}, {"segmentation": [[44.64, 180.73, 40.8, 171.65, 50.23, 160.48, 60.7, 160.48, 58.95, 171.65, 55.81, 179.33, 53.02, 181.08], [38.71, 286.56, 36.96, 262.13, 36.96, 254.1, 32.07, 243.28, 30.33, 238.39, 29.28, 228.96, 32.77, 209.07, 34.17, 195.8, 52.32, 196.15, 50.23, 203.13, 49.53, 215.35, 51.97, 222.68, 62.09, 227.57, 62.09, 234.55, 62.09, 248.51, 62.09, 255.84, 58.26, 269.11, 56.86, 278.53, 56.86, 288.31, 54.42, 292.85, 42.9, 291.1]], "area": 2469.0973000000004, "iscrowd": 0, "image_id": 219192, "bbox": [29.28, 160.48, 32.81, 132.37], "category_id": 1, "id": 1207211}, {"segmentation": [[621.46, 266.25, 618.51, 265.27, 618.26, 261.84, 617.77, 260.85, 617.77, 256.93, 618.51, 254.72, 620.23, 256.19, 620.23, 262.57]], "area": 24.02240000000033, "iscrowd": 0, "image_id": 386012, "bbox": [617.77, 254.72, 3.69, 11.53], "category_id": 1, "id": 1212330}, {"segmentation": [[260.41, 90.95, 252.75, 99.57, 252.75, 114.89, 249.88, 123.5, 245.09, 135.95, 238.39, 148.4, 234.56, 155.1, 231.69, 163.72, 232.65, 179.03, 237.43, 193.39, 239.35, 201.05, 242.22, 212.54, 242.22, 224.99, 236.48, 238.39, 228.82, 255.63, 223.07, 269.03, 217.33, 279.56, 213.5, 290.09, 203.93, 315.94, 200.1, 327.43, 195.31, 341.79, 188.61, 358.07, 182.86, 373.39, 179.03, 382.0, 173.29, 389.66, 179.99, 400.19, 190.52, 403.07, 199.14, 400.19, 202.97, 382.96, 211.59, 365.73, 221.16, 350.41, 224.99, 328.39, 233.61, 309.24, 247.01, 291.05, 257.54, 280.52, 269.99, 275.73, 276.69, 280.52, 287.22, 313.07, 293.92, 325.52, 301.58, 337.96, 303.5, 352.32, 310.2, 367.64, 317.86, 382.0, 329.35, 394.45, 340.83, 403.07, 347.54, 404.98, 347.54, 393.49, 340.83, 378.17, 333.17, 357.11, 327.43, 338.92, 321.69, 324.56, 317.86, 312.11, 315.94, 296.79, 314.03, 275.73, 314.03, 254.67, 316.9, 235.52, 321.69, 212.54, 322.64, 198.18, 322.64, 179.03, 322.64, 174.25, 337.0, 180.95, 344.66, 185.74, 361.9, 188.61, 364.77, 179.99, 359.98, 166.59, 353.28, 158.93, 344.66, 152.23, 334.13, 143.61, 325.52, 134.04, 321.69, 138.82, 308.28, 135.95, 293.92, 125.42, 287.22, 124.46, 285.3, 113.93, 284.35, 102.44, 279.56, 98.61, 268.07, 93.83, 264.24, 92.87, 260.41, 97.65, 259.46, 99.57]], "area": 21787.40765, "iscrowd": 0, "image_id": 431660, "bbox": [173.29, 90.95, 191.48, 314.03], "category_id": 1, "id": 1215527}, {"segmentation": [[352.63, 349.65, 362.62, 356.52, 368.87, 361.51, 374.49, 365.26, 378.24, 366.51, 381.36, 364.01, 381.98, 356.52, 376.36, 346.52, 378.24, 339.03, 378.86, 337.15, 371.99, 334.03, 367.62, 335.91, 366.99, 336.53, 366.99, 322.79, 364.49, 314.04, 374.49, 305.3, 380.73, 305.3, 389.48, 309.05, 394.48, 314.04, 398.22, 317.79, 400.72, 322.79, 410.09, 335.28, 414.46, 344.03, 419.46, 350.27, 422.58, 354.02, 426.96, 361.51, 426.96, 370.26, 427.0, 379.0, 427.0, 389.62, 426.96, 401.49, 426.96, 411.48, 423.21, 413.98, 419.46, 413.98, 418.84, 417.1, 418.21, 425.22, 419.46, 430.85, 421.96, 440.84, 421.96, 449.58, 421.96, 457.7, 421.96, 463.95, 411.34, 465.2, 403.22, 468.95, 396.97, 468.32, 399.47, 462.08, 401.97, 458.33, 403.84, 453.33, 400.72, 449.58, 393.85, 449.58, 390.1, 451.46, 389.48, 450.83, 390.73, 444.59, 392.6, 442.09, 393.23, 435.84, 392.6, 429.6, 391.35, 425.22, 389.48, 411.48, 391.35, 405.86, 394.48, 396.49, 399.47, 388.37, 399.47, 384.0, 393.85, 378.38, 390.1, 374.01, 384.48, 376.51, 377.61, 376.51, 366.99, 372.13, 359.5, 366.51, 355.75, 364.01, 349.5, 358.39, 347.0, 354.02, 345.76, 350.27, 347.63, 347.77, 356.37, 350.9, 362.62, 354.64, 363.87, 355.89]], "area": 5607.756099999999, "iscrowd": 0, "image_id": 503293, "bbox": [345.76, 305.3, 81.24, 163.65], "category_id": 1, "id": 1215943}, {"segmentation": [[172.18, 38.95, 171.06, 34.5, 169.15, 31.79, 169.2, 28.13, 171.7, 25.9, 174.93, 26.53, 175.36, 25.1, 173.61, 24.31, 174.41, 21.44, 174.88, 19.53, 176.63, 18.09, 181.79, 18.24, 182.69, 21.6, 182.01, 24.26, 182.21, 26.85, 184.6, 27.49, 185.39, 28.29, 185.23, 33.86, 182.84, 36.41, 181.73, 37.36, 178.86, 37.84, 177.11, 37.84, 176.0, 38.16, 174.41, 40.23, 171.54, 39.27]], "area": 231.44059999999988, "iscrowd": 0, "image_id": 514049, "bbox": [169.15, 18.09, 16.24, 22.14], "category_id": 1, "id": 1232372}, {"segmentation": [[545.0, 341.1, 554.0, 365.1, 545.0, 369.1, 549.0, 381.1, 509.0, 386.1, 491.0, 382.1, 489.0, 374.1, 499.0, 363.1, 499.0, 354.1, 503.0, 352.1, 481.0, 313.1, 473.0, 293.1, 444.0, 303.1, 421.0, 306.1, 410.0, 307.1, 402.0, 294.1, 401.0, 292.1, 387.0, 281.1, 399.0, 280.1, 413.0, 290.1, 442.0, 285.1, 474.0, 258.1, 475.0, 244.1, 457.0, 254.1, 455.0, 243.1, 446.0, 229.1, 453.0, 221.1, 454.0, 220.1, 446.0, 218.1, 445.0, 212.1, 455.0, 200.1, 473.0, 197.1, 489.0, 195.1, 506.0, 213.1, 499.0, 222.1, 532.0, 237.1, 567.0, 268.1, 580.0, 302.1, 580.0, 323.1, 570.0, 337.1, 557.0, 342.1]], "area": 15624.000000000002, "iscrowd": 0, "image_id": 431660, "bbox": [387.0, 195.1, 193.0, 191.0], "category_id": 1, "id": 1235847}, {"segmentation": [[104.21, 98.33, 101.3, 91.34, 97.81, 78.53, 100.14, 75.03, 102.47, 72.12, 107.13, 70.95, 106.05, 67.82, 106.05, 63.22, 109.24, 56.86, 113.48, 55.09, 113.24, 54.74, 113.72, 52.3, 116.16, 40.39, 111.29, 39.17, 109.83, 36.25, 108.86, 34.55, 105.7, 33.57, 105.45, 32.12, 104.97, 29.44, 104.24, 25.3, 103.75, 23.36, 101.08, 22.14, 93.29, 23.36, 90.13, 27.98, 90.86, 29.93, 93.29, 34.3, 91.59, 35.52, 91.59, 37.71, 92.08, 39.17, 93.78, 39.66, 90.37, 40.87, 88.91, 41.12, 85.51, 44.52, 84.78, 47.68, 84.05, 49.63, 83.32, 52.55, 80.4, 59.36, 77.48, 62.03, 78.94, 63.98, 77.97, 65.2, 75.29, 63.74, 71.89, 65.2, 64.83, 72.74, 64.83, 72.74, 64.83, 75.17, 65.56, 83.44, 65.56, 90.01, 66.29, 98.28, 79.67, 100.46, 77.72, 87.82, 76.51, 79.06, 85.51, 83.44, 94.26, 84.41, 95.48, 85.14, 96.21, 98.28, 100.1, 102.9, 105.21, 100.46]], "area": 1931.4592499999994, "iscrowd": 0, "image_id": 431660, "bbox": [64.83, 22.14, 51.33, 80.76], "category_id": 1, "id": 1241197}, {"segmentation": [[373.44, 118.23, 364.12, 117.65, 364.7, 95.51, 369.94, 90.85, 365.86, 83.86, 366.45, 76.87, 366.45, 66.38, 369.36, 58.81, 367.61, 45.41, 375.77, 40.17, 382.76, 41.92, 384.5, 52.99, 385.67, 57.65, 393.24, 56.48, 410.72, 78.62, 413.63, 85.03, 412.47, 95.51, 407.81, 101.34, 400.82, 104.25, 394.99, 118.23, 389.75, 117.65, 383.34, 115.9, 382.17, 107.74, 374.6, 110.07]], "area": 2517.549000000001, "iscrowd": 0, "image_id": 431660, "bbox": [364.12, 40.17, 49.51, 78.06], "category_id": 1, "id": 1241475}, {"segmentation": [[76.76, 420.28, 241.81, 422.2, 245.64, 386.7, 253.32, 382.86, 257.16, 372.31, 260.04, 360.79, 262.92, 353.11, 270.59, 351.2, 275.39, 351.2, 277.31, 350.24, 264.84, 330.09, 244.69, 316.65, 216.86, 303.22, 206.3, 300.34, 212.06, 277.31, 220.7, 251.4, 216.86, 248.52, 214.94, 224.53, 210.14, 211.1, 195.75, 201.51, 186.15, 196.71, 164.08, 196.71, 158.33, 198.63, 150.65, 204.38, 144.89, 209.18, 140.09, 213.02, 139.13, 220.7, 139.13, 230.29, 139.13, 235.09, 139.13, 250.44, 139.13, 253.32, 139.13, 256.2, 139.13, 263.88, 136.26, 275.39, 132.42, 275.39, 125.7, 277.31, 119.94, 296.5, 117.07, 301.3, 104.59, 310.89, 96.91, 318.57, 91.16, 327.21, 90.2, 333.92, 89.24, 345.44, 88.28, 355.99, 87.32, 371.35, 86.36, 378.06, 82.52, 390.54, 82.52, 403.01, 79.64, 417.4]], "area": 27378.490949999996, "iscrowd": 0, "image_id": 485740, "bbox": [76.76, 196.71, 200.55, 225.49], "category_id": 1, "id": 1243906}, {"segmentation": [[465.96, 302.68, 468.3, 299.49, 468.3, 297.15, 468.3, 294.81, 467.88, 289.28, 468.52, 287.58, 469.15, 285.03, 467.67, 283.12, 466.18, 281.42, 467.45, 279.93, 467.67, 278.01, 468.73, 274.61, 469.37, 271.85, 470.64, 271.42, 472.13, 270.79, 471.28, 269.3, 470.64, 268.23, 470.64, 266.53, 470.64, 264.62, 472.77, 262.71, 474.04, 262.71, 475.32, 263.34, 476.81, 264.41, 476.17, 266.75, 475.53, 268.87, 475.32, 270.57, 477.23, 271.42, 481.27, 273.76, 481.48, 276.1, 480.85, 284.18, 481.48, 285.88, 482.33, 287.79, 480.42, 288.64, 475.96, 289.49, 472.98, 290.98, 472.55, 295.02, 472.55, 297.15, 472.13, 299.91, 472.98, 302.25, 472.55, 303.31]], "area": 337.63945000000035, "iscrowd": 0, "image_id": 254711, "bbox": [465.96, 262.71, 16.37, 40.6], "category_id": 1, "id": 1245554}, {"segmentation": [[179.89, 169.03, 177.97, 179.48, 173.57, 180.58, 176.04, 166.56, 174.67, 161.06, 176.87, 157.48, 180.17, 153.91, 183.19, 154.73, 187.59, 158.58, 187.04, 164.36, 186.49, 170.13, 189.24, 179.75, 187.87, 179.48, 181.82, 171.5]], "area": 238.99425000000022, "iscrowd": 0, "image_id": 88859, "bbox": [173.57, 153.91, 15.67, 26.67], "category_id": 1, "id": 1247644}, {"segmentation": [[503.1, 178.04, 502.55, 173.83, 498.5, 167.87, 499.82, 165.04, 499.41, 162.71, 501.64, 160.79, 501.33, 155.43, 496.38, 150.98, 495.37, 147.75, 492.23, 147.95, 491.22, 150.68, 485.76, 156.24, 485.46, 164.33, 479.9, 174.94, 478.08, 176.56, 479.19, 177.77, 483.24, 177.57, 492.84, 165.14, 499.31, 178.38, 499.07, 179.63, 500.88, 180.02, 503.09, 179.12, 503.74, 178.08, 503.35, 178.08]], "area": 356.22765000000015, "iscrowd": 0, "image_id": 88859, "bbox": [478.08, 147.75, 25.66, 32.27], "category_id": 1, "id": 1250011}, {"segmentation": [[118.02, 104.59, 101.71, 101.71, 98.83, 81.56, 108.43, 60.45, 117.07, 43.18, 111.31, 34.54, 115.15, 22.07, 133.38, 23.99, 133.38, 29.75, 154.49, 47.02, 163.12, 63.33, 141.05, 80.6, 140.09, 104.59, 119.94, 104.59]], "area": 3211.2536500000006, "iscrowd": 0, "image_id": 431660, "bbox": [98.83, 22.07, 64.29, 82.52], "category_id": 1, "id": 1257498}, {"segmentation": [[198.22, 267.56, 189.83, 254.66, 189.83, 250.79, 187.9, 248.22, 186.61, 243.06, 189.19, 234.68, 193.06, 242.41, 193.06, 252.08, 202.08, 257.24, 204.66, 257.89, 208.53, 257.89, 204.02, 248.86, 205.31, 243.06, 214.33, 247.57, 217.56, 250.79, 217.56, 255.31, 220.14, 264.33, 226.58, 263.69, 227.23, 268.85, 221.43, 270.78, 218.85, 278.52, 221.43, 304.31, 224.65, 315.92, 231.74, 322.36, 214.33, 320.43, 214.33, 306.89, 211.76, 289.48, 208.53, 292.7, 208.53, 300.44, 211.11, 309.47, 213.69, 317.2, 211.76, 322.36, 204.66, 322.36, 201.44, 319.14, 200.79, 301.09, 198.22, 286.9, 202.08, 274.65, 204.02, 271.43, 200.79, 264.33]], "area": 1552.6843999999996, "iscrowd": 0, "image_id": 574487, "bbox": [186.61, 234.68, 45.13, 87.68], "category_id": 1, "id": 1258172}, {"segmentation": [[268.01, 128.69, 273.33, 142.37, 269.15, 148.45, 263.83, 149.59, 261.93, 154.15, 260.41, 158.33, 255.85, 159.85, 249.77, 159.85, 240.27, 160.23, 233.81, 160.23, 233.43, 157.19, 236.09, 153.77, 238.75, 148.83, 240.27, 146.17, 240.65, 138.19, 241.79, 130.21, 243.31, 127.55, 248.63, 125.65, 251.29, 124.89, 252.05, 117.28, 253.57, 111.96, 254.71, 108.92, 259.27, 108.54, 263.83, 111.58, 264.21, 114.24, 265.35, 118.04, 266.11, 121.85]], "area": 1174.5457999999999, "iscrowd": 0, "image_id": 503293, "bbox": [233.43, 108.54, 39.9, 51.69], "category_id": 1, "id": 1258194}, {"segmentation": [[239.83, 426.25, 247.16, 385.65, 251.97, 380.84, 262.55, 353.91, 280.82, 355.83, 283.7, 331.79, 301.98, 311.59, 327.94, 301.98, 351.99, 299.09, 365.45, 304.86, 373.14, 312.56, 381.8, 322.17, 395.26, 334.68, 376.03, 359.68, 361.6, 409.69, 358.22, 426.66, 296.18, 425.67, 294.44, 413.9, 283.47, 411.98, 270.19, 396.33, 273.59, 427.0]], "area": 12851.198650000002, "iscrowd": 0, "image_id": 485740, "bbox": [239.83, 299.09, 155.43, 127.91], "category_id": 1, "id": 1259019}, {"segmentation": [[86.7, 437.88, 103.98, 448.83, 111.47, 446.52, 121.26, 430.97, 135.66, 417.72, 142.0, 407.93, 146.61, 401.59, 148.91, 398.71, 160.43, 418.87, 182.32, 428.09, 201.91, 440.76, 207.09, 440.76, 202.49, 448.25, 199.03, 451.13, 204.21, 454.01, 214.01, 449.98, 227.26, 440.76, 228.41, 430.39, 207.67, 422.91, 175.41, 401.02, 170.23, 380.28, 177.72, 371.06, 180.02, 356.66, 176.56, 347.44, 174.26, 337.65, 180.02, 327.28, 204.21, 343.99, 213.43, 341.68, 220.92, 339.38, 226.1, 340.53, 228.98, 340.53, 232.44, 342.26, 238.2, 342.26, 239.93, 337.65, 234.17, 331.89, 222.65, 331.89, 211.7, 331.31, 201.91, 326.13, 189.24, 314.61, 176.56, 297.9, 169.65, 295.02, 167.92, 278.32, 163.89, 273.13, 155.83, 272.56, 152.95, 270.83, 146.03, 273.71, 143.15, 278.89, 142.58, 286.96, 144.88, 291.57, 143.73, 295.6, 135.66, 296.18, 124.14, 302.51, 117.81, 308.85, 125.3, 322.67, 130.48, 330.74, 137.39, 350.9, 136.24, 357.24, 137.97, 360.69, 139.7, 369.91, 127.6, 388.92, 115.5, 418.3, 102.83, 428.09, 92.46, 433.28]], "area": 8863.613600000002, "iscrowd": 0, "image_id": 503293, "bbox": [86.7, 270.83, 153.23, 183.18], "category_id": 1, "id": 1261810}, {"segmentation": [[393.33, 197.1, 391.31, 192.05, 389.29, 187.33, 388.96, 183.29, 390.3, 179.59, 390.98, 177.24, 394.68, 175.55, 397.71, 175.22, 396.02, 171.85, 397.37, 169.16, 399.05, 167.81, 402.42, 168.15, 404.78, 169.83, 405.11, 172.86, 406.8, 175.55, 410.84, 177.24, 412.86, 182.28, 414.2, 191.37, 414.88, 193.39]], "area": 503.6308999999996, "iscrowd": 0, "image_id": 514049, "bbox": [388.96, 167.81, 25.92, 29.29], "category_id": 1, "id": 1262772}, {"segmentation": [[286.44, 33.34, 287.0, 38.72, 283.48, 40.48, 279.86, 44.93, 279.21, 47.06, 277.26, 46.69, 273.74, 41.41, 272.72, 39.55, 273.56, 35.47, 276.99, 30.56, 280.6, 28.8, 281.07, 27.32, 281.34, 24.53, 281.99, 21.38, 283.57, 19.34, 286.81, 18.42, 290.8, 20.46, 290.89, 22.68, 290.89, 24.35, 289.87, 27.13, 289.5, 28.71, 288.2, 30.1, 286.16, 32.88]], "area": 261.38615000000004, "iscrowd": 0, "image_id": 514049, "bbox": [272.72, 18.42, 18.17, 28.64], "category_id": 1, "id": 1265180}, {"segmentation": [[305.09, 54.37, 307.42, 51.4, 309.55, 49.27, 312.1, 49.48, 312.74, 45.87, 313.38, 42.47, 317.41, 40.77, 321.88, 41.19, 322.09, 45.23, 321.03, 49.06, 325.92, 50.33, 329.11, 59.47, 330.17, 66.28, 321.03, 65.21, 313.8, 63.94, 311.46, 61.6, 309.12, 60.96, 309.55, 58.2, 304.45, 55.44]], "area": 377.16765, "iscrowd": 0, "image_id": 514049, "bbox": [304.45, 40.77, 25.72, 25.51], "category_id": 1, "id": 1266700}, {"segmentation": [[279.14, 270.1, 281.07, 280.43, 280.64, 311.64, 280.43, 313.36, 287.53, 314.43, 287.74, 310.56, 288.61, 301.74, 292.69, 309.7, 292.26, 313.36, 299.15, 309.27, 297.21, 297.86, 294.42, 288.39, 294.63, 282.37, 295.71, 275.48, 291.62, 266.44, 290.33, 259.34, 291.4, 252.67, 290.54, 250.09, 287.31, 248.79, 283.87, 249.87, 280.86, 253.74, 273.97, 249.23, 269.88, 242.98, 272.25, 252.88, 280.86, 260.85, 278.49, 264.29, 275.05, 262.78, 275.05, 266.23, 276.12, 269.89]], "area": 934.0674, "iscrowd": 0, "image_id": 574487, "bbox": [269.88, 242.98, 29.27, 71.45], "category_id": 1, "id": 1267240}, {"segmentation": [[601.17, 84.8, 604.76, 73.15, 608.64, 66.57, 613.12, 62.39, 616.71, 60.9, 621.19, 60.9, 620.0, 53.43, 619.4, 48.65, 614.32, 48.05, 614.32, 46.56, 620.3, 44.76, 620.59, 39.38, 622.69, 36.1, 625.67, 35.5, 631.05, 36.1, 636.43, 41.48, 637.92, 44.76, 637.92, 48.35, 638.82, 52.83, 638.82, 57.31, 638.82, 59.7, 640.0, 59.1, 638.82, 117.67, 628.36, 125.73, 623.88, 128.72, 611.93, 130.22, 584.74, 126.93, 581.15, 126.33, 577.57, 119.16, 582.35, 114.08, 586.83, 109.3, 588.92, 104.82, 605.95, 93.47, 605.95, 89.88, 601.47, 85.4]], "area": 3286.87375, "iscrowd": 0, "image_id": 431660, "bbox": [577.57, 35.5, 62.43, 94.72], "category_id": 1, "id": 1267478}, {"segmentation": [[15.38, 226.66, 18.18, 214.77, 18.53, 214.42, 24.12, 209.18, 31.12, 206.03, 31.47, 201.83, 32.87, 193.44, 40.56, 190.29, 46.85, 197.29, 47.55, 204.28, 54.2, 204.28, 58.4, 210.58, 61.89, 218.62, 54.55, 225.62, 39.86, 228.06, 22.37, 227.01, 17.48, 224.92], [35.66, 277.02, 36.71, 259.19, 36.01, 249.4, 32.87, 241.0, 32.17, 230.51, 66.09, 230.51, 69.24, 241.7, 71.68, 252.54, 72.03, 280.17, 35.31, 278.42]], "area": 2760.5673500000007, "iscrowd": 0, "image_id": 503293, "bbox": [15.38, 190.29, 56.65, 89.88], "category_id": 1, "id": 1268866}, {"segmentation": [[458.84, 307.59, 515.43, 320.22, 561.42, 365.2, 574.56, 402.08, 573.54, 423.31, 360.3, 423.31, 384.05, 349.53, 417.4, 312.14, 447.72, 305.57]], "area": 19136.951399999998, "iscrowd": 0, "image_id": 485740, "bbox": [360.3, 305.57, 214.26, 117.74], "category_id": 1, "id": 1270722}, {"segmentation": [[546.62, 188.03, 544.96, 186.21, 544.8, 185.74, 544.49, 184.39, 544.17, 181.79, 545.1, 179.44, 544.16, 178.3, 543.21, 179.44, 540.94, 176.79, 542.83, 173.39, 543.59, 171.12, 541.32, 170.17, 539.05, 168.47, 538.67, 166.96, 537.54, 165.26, 537.16, 160.53, 537.16, 159.4, 538.3, 157.13, 538.49, 156.94, 539.24, 156.37, 540.57, 155.99, 543.02, 157.32, 544.16, 159.96, 549.07, 162.23, 554.75, 166.2, 556.26, 168.47, 556.45, 170.17, 556.45, 172.63, 554.37, 179.06, 552.48, 181.71, 552.86, 184.35, 552.86, 186.06, 552.1, 187.19, 551.34, 187.19, 551.34, 190.03, 551.34, 191.16, 548.88, 191.73, 546.43, 192.86, 544.35, 192.49, 542.65, 191.73, 543.4, 189.27, 545.67, 187.95]], "area": 386.33375000000086, "iscrowd": 0, "image_id": 88859, "bbox": [537.16, 155.99, 19.29, 36.87], "category_id": 1, "id": 1274804}, {"segmentation": [[585.1, 127.94, 590.6, 130.57, 592.77, 132.29, 594.03, 135.04, 594.38, 139.51, 595.18, 143.63, 596.9, 148.44, 598.27, 152.79, 597.7, 155.88, 595.06, 156.91, 594.15, 156.0, 593.12, 153.36, 592.43, 148.1, 591.06, 144.32, 588.31, 140.54, 585.1, 143.4, 584.41, 150.16, 583.15, 152.79, 580.18, 153.71, 576.05, 153.13, 578.0, 148.44, 579.72, 141.91, 580.4, 138.47, 578.23, 135.5, 580.29, 130.92, 582.7, 128.85]], "area": 314.4441500000001, "iscrowd": 0, "image_id": 88859, "bbox": [576.05, 127.94, 22.22, 28.97], "category_id": 1, "id": 1276545}, {"segmentation": [[461.33, 407.32, 456.64, 400.14, 461.33, 388.28, 467.88, 384.22, 470.69, 387.97, 477.87, 395.15, 482.86, 399.52, 485.05, 410.45, 489.73, 421.06, 491.29, 424.8, 455.08, 426.0, 454.15, 422.31, 454.77, 416.69, 459.45, 410.45]], "area": 977.1573000000013, "iscrowd": 0, "image_id": 88859, "bbox": [454.15, 384.22, 37.14, 41.78], "category_id": 1, "id": 1277984}, {"segmentation": [[300.12, 285.56, 299.81, 272.1, 298.24, 264.91, 297.62, 252.39, 302.0, 248.64, 307.0, 250.2, 308.57, 256.77, 307.63, 269.29, 309.19, 296.2, 305.44, 300.89, 304.5, 300.89, 303.25, 301.21, 302.0, 295.26, 302.31, 294.63, 300.75, 288.06]], "area": 427.4341499999997, "iscrowd": 0, "image_id": 574487, "bbox": [297.62, 248.64, 11.57, 52.57], "category_id": 1, "id": 1278267}, {"segmentation": [[421.26, 305.09, 431.79, 294.56, 431.79, 291.69, 437.53, 284.03, 457.64, 261.05, 478.7, 225.63, 498.8, 206.48, 542.85, 218.93, 551.46, 229.46, 560.08, 251.48, 555.29, 261.05, 554.33, 280.2, 558.16, 294.56, 550.5, 295.52, 572.52, 351.05, 572.52, 362.54, 559.12, 363.49, 534.23, 328.07, 532.31, 328.07, 533.27, 311.79, 525.61, 298.39, 517.0, 289.77, 515.08, 288.82, 503.59, 313.71, 495.93, 304.13, 492.1, 303.18, 481.57, 307.96, 419.34, 307.96]], "area": 10399.8171, "iscrowd": 0, "image_id": 485740, "bbox": [419.34, 206.48, 153.18, 157.01], "category_id": 1, "id": 1281171}, {"segmentation": [[376.05, 259.49, 387.74, 248.63, 401.94, 246.54, 413.22, 253.22, 419.9, 264.92, 422.41, 279.95, 422.41, 294.57, 418.23, 308.35, 396.93, 332.16, 379.39, 315.87, 364.35, 302.92, 380.22, 292.48, 376.88, 279.53]], "area": 3153.794950000001, "iscrowd": 0, "image_id": 485740, "bbox": [364.35, 246.54, 58.06, 85.62], "category_id": 1, "id": 1281237}, {"segmentation": [[421.49, 362.47, 417.99, 359.2, 413.56, 359.2, 411.0, 359.67, 410.06, 361.53, 408.43, 370.63, 408.2, 378.57, 406.1, 384.4, 404.93, 397.46, 404.7, 406.33, 409.36, 411.23, 411.7, 412.39, 410.06, 417.76, 412.63, 421.26, 420.79, 422.89, 425.23, 420.56, 426.39, 407.5, 426.86, 399.8, 422.66, 389.06, 422.43, 385.56, 428.26, 376.93, 430.13, 374.6, 430.83, 369.23, 432.23, 370.17, 431.53, 366.67, 426.63, 366.67, 424.76, 367.83, 424.53, 368.77, 423.59, 365.73]], "area": 1127.1458500000003, "iscrowd": 0, "image_id": 88859, "bbox": [404.7, 359.2, 27.53, 63.69], "category_id": 1, "id": 1281346}, {"segmentation": [[345.08, 297.22, 294.69, 314.01, 281.08, 334.44, 280.62, 352.14, 257.93, 327.63, 251.57, 288.6, 267.92, 264.99, 271.09, 248.65, 286.98, 226.41, 293.79, 220.06, 291.52, 214.16, 285.16, 218.7, 267.92, 200.54, 285.62, 181.93, 293.79, 154.24, 297.87, 151.07, 323.74, 168.31, 349.16, 169.22, 350.52, 189.65, 349.62, 192.82, 339.18, 189.19, 343.26, 205.08, 338.27, 214.61, 333.73, 219.6, 318.75, 234.58, 333.28, 256.82]], "area": 10402.503949999998, "iscrowd": 0, "image_id": 485740, "bbox": [251.57, 151.07, 98.95, 201.07], "category_id": 1, "id": 1282693}, {"segmentation": [[186.96, 201.99, 184.42, 198.76, 184.65, 190.68, 185.58, 185.84, 190.88, 183.53, 196.42, 183.99, 200.11, 187.45, 200.11, 195.53, 198.5, 201.99, 209.34, 213.52, 212.11, 223.67, 192.04, 225.06, 183.27, 225.75, 166.43, 224.14, 174.73, 209.37, 180.27, 202.68, 184.65, 202.45], [206.11, 233.83, 205.19, 244.21, 197.34, 253.9, 192.5, 275.59, 187.65, 285.05, 187.88, 256.44, 186.5, 232.9], [180.96, 237.06, 180.27, 287.82, 168.73, 286.43, 168.04, 280.66, 165.97, 276.97, 166.89, 253.67, 160.66, 245.36, 163.43, 236.6]], "area": 2315.9442500000005, "iscrowd": 0, "image_id": 503293, "bbox": [160.66, 183.53, 51.45, 104.29], "category_id": 1, "id": 1283581}, {"segmentation": [[321.46, 303.78, 321.46, 292.81, 320.76, 284.64, 320.76, 270.41, 321.69, 265.51, 318.42, 262.01, 320.76, 257.34, 323.09, 255.24, 327.52, 251.04, 331.02, 253.61, 331.26, 255.94, 330.56, 257.34, 333.36, 258.98, 333.36, 263.64, 332.19, 265.98, 334.06, 271.34, 335.69, 276.48, 333.12, 278.34, 338.49, 291.88, 338.72, 297.95, 339.42, 303.31, 335.69, 304.25, 335.22, 299.11, 333.12, 292.58, 330.09, 287.68, 327.06, 285.81, 326.36, 286.98, 327.76, 296.78, 327.06, 302.15, 327.52, 303.08, 326.36, 306.35, 323.56, 307.28, 322.39, 304.01]], "area": 625.4430000000009, "iscrowd": 0, "image_id": 574487, "bbox": [318.42, 251.04, 21.0, 56.24], "category_id": 1, "id": 1285390}, {"segmentation": [[270.01, 226.04, 276.7, 241.46, 264.87, 247.63, 254.07, 269.75, 253.56, 276.43, 244.82, 292.89, 246.36, 315.51, 223.73, 306.25, 223.73, 293.4, 218.08, 282.09, 222.7, 253.29, 228.88, 245.06, 229.39, 235.29, 232.99, 228.61, 240.19, 220.38, 256.64, 214.73, 265.9, 217.81]], "area": 3098.687549999999, "iscrowd": 0, "image_id": 485740, "bbox": [218.08, 214.73, 58.62, 100.78], "category_id": 1, "id": 1285966}, {"segmentation": [[473.16, 117.81, 498.17, 131.27, 527.98, 136.08, 522.21, 112.04, 519.32, 105.31, 527.02, 101.46, 530.86, 102.42, 536.64, 91.84, 543.37, 80.3, 549.14, 76.46, 544.33, 63.95, 534.71, 51.45, 531.83, 43.76, 527.98, 27.41, 517.4, 24.52, 509.71, 34.14, 507.78, 39.91, 514.52, 41.83, 516.44, 49.53, 516.44, 53.38, 520.29, 55.3, 513.55, 57.22, 507.78, 63.95, 499.13, 73.57, 495.28, 82.23, 503.94, 92.81, 480.86, 101.46, 473.16, 104.35, 473.16, 114.92]], "area": 3784.1495000000036, "iscrowd": 0, "image_id": 431660, "bbox": [473.16, 24.52, 75.98, 111.56], "category_id": 1, "id": 1286751}, {"segmentation": [[57.6, 54.12, 58.1, 51.29, 55.11, 45.3, 52.78, 42.47, 48.62, 43.14, 48.45, 40.31, 48.62, 36.48, 46.29, 33.99, 43.63, 33.65, 40.97, 34.82, 39.97, 39.14, 39.3, 42.3, 37.97, 44.47, 36.14, 46.8, 35.81, 50.46, 36.31, 55.11, 38.3, 56.11, 40.13, 59.27, 40.97, 63.93, 41.8, 64.43, 43.79, 61.27, 45.29, 59.61, 48.95, 59.94, 51.61, 59.77, 51.78, 56.94, 51.95, 54.78]], "area": 384.8391000000001, "iscrowd": 0, "image_id": 514049, "bbox": [35.81, 33.65, 22.29, 30.78], "category_id": 1, "id": 1288485}, {"segmentation": [[627.64, 192.65, 629.12, 208.44, 628.13, 215.84, 622.7, 218.3, 618.27, 216.33, 619.25, 211.89, 614.81, 199.06, 615.8, 188.71, 606.43, 172.43, 606.92, 166.51, 604.95, 159.6, 605.93, 149.24, 609.88, 140.37, 622.7, 136.42, 638.49, 135.43, 639.48, 166.51, 639.48, 193.64, 635.53, 186.73, 632.08, 190.68], [636.25, 329.54, 628.3, 309.23, 629.19, 286.28, 640.0, 280.1, 638.02, 336.61]], "area": 2368.1764000000035, "iscrowd": 0, "image_id": 431660, "bbox": [604.95, 135.43, 35.05, 201.18], "category_id": 1, "id": 1288751}, {"segmentation": [[439.96, 298.0, 442.43, 292.07, 436.0, 289.11, 433.53, 283.67, 436.5, 274.27, 436.5, 267.85, 436.5, 260.92, 439.96, 257.46, 439.96, 254.5, 434.52, 253.51, 431.55, 253.51, 430.56, 251.04, 429.08, 255.98, 427.6, 259.93, 424.14, 257.46, 424.14, 252.02, 422.16, 262.41, 426.11, 267.85, 423.64, 291.58, 424.14, 297.51, 430.56, 296.52, 431.06, 291.08, 436.99, 298.0, 441.44, 298.0]], "area": 521.4534499999994, "iscrowd": 0, "image_id": 574487, "bbox": [422.16, 251.04, 20.27, 46.96], "category_id": 1, "id": 1291214}, {"segmentation": [[143.6, 120.62, 137.85, 112.0, 136.89, 104.35, 136.89, 101.47, 137.85, 94.77, 137.85, 90.94, 142.64, 86.16, 145.51, 87.11, 152.21, 96.69, 156.04, 102.43, 156.04, 112.96, 151.25, 118.71]], "area": 478.8804500000001, "iscrowd": 0, "image_id": 88859, "bbox": [136.89, 86.16, 19.15, 34.46], "category_id": 1, "id": 1292950}, {"segmentation": [[483.32, 38.44, 486.52, 51.94, 485.45, 62.6, 493.98, 68.29, 496.11, 80.01, 489.36, 93.87, 469.82, 113.77, 455.96, 127.63, 449.56, 125.86, 447.07, 109.51, 434.99, 107.38, 430.37, 126.57, 420.07, 122.3, 421.49, 99.56, 425.4, 94.94, 442.1, 89.61, 449.92, 88.54, 452.4, 81.79, 444.23, 73.26, 447.07, 69.0, 459.87, 61.54, 469.11, 58.34, 466.62, 49.81, 463.78, 48.03, 466.62, 42.35, 469.82, 37.73, 480.12, 37.02]], "area": 3292.1452, "iscrowd": 0, "image_id": 431660, "bbox": [420.07, 37.02, 76.04, 90.61], "category_id": 1, "id": 1294162}, {"segmentation": [[19.09, 363.7, 10.05, 356.67, 8.04, 320.5, 4.02, 289.36, 14.07, 288.35, 20.09, 277.3, 20.09, 258.21, 27.13, 236.11, 45.21, 220.03, 62.29, 218.02, 84.4, 225.05, 97.46, 227.06, 88.41, 245.15, 85.4, 259.21, 85.4, 278.3, 78.37, 280.31, 66.31, 285.34, 58.27, 299.4, 50.24, 320.5, 45.21, 329.54, 44.21, 344.61, 39.18, 351.65, 30.14, 357.68, 14.07, 369.73, 14.07, 369.73]], "area": 7144.741599999999, "iscrowd": 0, "image_id": 485740, "bbox": [4.02, 218.02, 93.44, 151.71], "category_id": 1, "id": 1298207}, {"segmentation": [[239.51, 275.97, 236.44, 281.59, 233.89, 287.71, 231.34, 296.89, 231.85, 308.12, 231.85, 310.67, 233.89, 312.71, 233.89, 315.77, 239.51, 322.92, 249.2, 322.92, 256.34, 320.37, 253.79, 312.71, 263.49, 309.65, 266.55, 306.59, 270.63, 302.51, 270.63, 302.51, 268.59, 294.85, 264.51, 291.28, 258.89, 288.22, 257.36, 288.73, 256.34, 285.16, 255.32, 279.04, 257.36, 276.48, 260.94, 273.93, 260.42, 267.3, 255.83, 263.73, 249.2, 263.22, 240.02, 272.91]], "area": 1469.6774999999996, "iscrowd": 0, "image_id": 514049, "bbox": [231.34, 263.22, 39.29, 59.7], "category_id": 1, "id": 1298733}, {"segmentation": [[502.08, 280.1, 500.85, 273.89, 501.26, 270.43, 502.48, 267.27, 501.16, 260.25, 498.72, 258.72, 498.11, 256.08, 495.15, 256.08, 495.15, 258.42, 495.56, 260.05, 496.37, 260.66, 496.99, 264.22, 498.0, 267.07, 498.72, 268.29, 498.72, 273.08, 498.21, 275.32, 498.61, 280.61, 500.45, 281.32]], "area": 89.35600000000026, "iscrowd": 0, "image_id": 574487, "bbox": [495.15, 256.08, 7.33, 25.24], "category_id": 1, "id": 1299076}, {"segmentation": [[219.35, 321.02, 210.33, 319.7, 210.14, 317.26, 209.2, 314.06, 208.44, 295.82, 210.33, 288.11, 210.33, 281.9, 206.19, 280.4, 206.0, 277.77, 208.44, 273.44, 211.08, 267.8, 211.83, 263.85, 209.01, 255.57, 207.13, 249.74, 208.82, 244.48, 213.9, 239.21, 216.72, 237.15, 215.4, 234.7, 216.72, 231.5, 220.29, 229.06, 226.31, 230.38, 226.69, 232.63, 227.63, 235.26, 228.19, 241.47, 226.69, 245.98, 228.0, 250.87, 226.12, 255.01, 227.63, 262.91, 231.2, 272.88, 232.33, 284.16, 231.58, 287.17, 228.75, 293.94, 229.13, 298.45, 231.01, 303.53, 231.39, 309.36, 234.96, 313.5, 232.7, 315.94, 231.58, 318.95, 224.62, 319.14, 225.75, 312.74, 226.12, 306.91, 223.87, 293.37, 220.86, 290.18, 217.1, 299.2, 218.22, 309.17, 219.54, 319.14]], "area": 1570.5250499999993, "iscrowd": 0, "image_id": 514049, "bbox": [206.0, 229.06, 28.96, 91.96], "category_id": 1, "id": 1303879}, {"segmentation": [[334.28, 281.76, 340.64, 288.51, 350.18, 304.02, 356.14, 314.36, 354.55, 318.73, 357.73, 322.31, 361.31, 319.52, 362.9, 310.78, 357.73, 296.07, 352.17, 288.51, 347.4, 270.23, 344.22, 256.71, 341.04, 250.35, 331.89, 244.78, 325.13, 240.01, 320.36, 238.42, 315.99, 239.22, 314.4, 245.58, 314.8, 250.75, 314.8, 256.71, 321.16, 274.2, 323.54, 278.97, 313.6, 314.75, 312.81, 319.13, 313.21, 320.32, 321.56, 315.15, 331.1, 285.73, 324.34, 289.31, 323.54, 286.13]], "area": 1771.684949999999, "iscrowd": 0, "image_id": 514049, "bbox": [312.81, 238.42, 50.09, 83.89], "category_id": 1, "id": 1304034}, {"segmentation": [[269.96, 281.01, 250.58, 283.29, 253.24, 296.97, 239.17, 296.21, 239.17, 285.57, 239.55, 271.12, 240.32, 268.08, 257.04, 263.9, 252.48, 252.88, 252.48, 244.52, 252.86, 238.06, 261.6, 229.32, 267.3, 225.52, 269.58, 222.1, 270.34, 213.74, 270.72, 203.48, 276.42, 201.2, 284.02, 206.14, 287.06, 217.92, 291.62, 223.24, 298.46, 228.18, 303.78, 231.98, 295.04, 231.22, 283.64, 229.32, 269.2, 232.36, 265.4, 234.64, 266.54, 238.82, 271.48, 237.3, 292.76, 238.82, 293.9, 257.06, 295.04, 281.01, 287.82, 276.45, 280.22, 282.53, 283.26, 291.65, 280.22, 292.03]], "area": 2841.168899999999, "iscrowd": 0, "image_id": 503293, "bbox": [239.17, 201.2, 64.61, 95.77], "category_id": 1, "id": 1304105}, {"segmentation": [[253.01, 264.51, 247.63, 247.96, 242.66, 245.06, 238.94, 243.82, 236.87, 241.33, 238.52, 233.47, 241.42, 230.57, 238.94, 224.78, 238.11, 224.78, 235.63, 223.95, 231.9, 222.71, 225.28, 227.67, 224.03, 230.99, 227.76, 236.78, 228.17, 239.26, 225.69, 242.58, 219.48, 247.96, 217.0, 255.41, 215.76, 269.07, 215.76, 283.97, 215.76, 288.52, 228.59, 293.49, 233.56, 298.46, 240.18, 298.04, 238.11, 270.31, 241.42, 265.76, 254.67, 264.93]], "area": 1585.7132500000005, "iscrowd": 0, "image_id": 503293, "bbox": [215.76, 222.71, 38.91, 75.75], "category_id": 1, "id": 1305116}, {"segmentation": [[279.13, 170.75, 279.13, 168.83, 281.59, 167.19, 284.61, 167.46, 288.17, 171.3, 287.9, 173.77, 287.07, 177.6, 285.98, 178.42, 290.64, 177.88, 295.57, 189.39, 290.91, 195.69, 298.58, 198.43, 298.04, 200.9, 277.48, 203.09, 276.39, 198.98, 274.74, 196.24, 273.1, 183.36, 274.74, 179.79, 278.03, 178.97, 279.13, 178.15, 278.58, 177.05, 279.13, 171.85]], "area": 549.7678999999999, "iscrowd": 0, "image_id": 514049, "bbox": [273.1, 167.19, 25.48, 35.9], "category_id": 1, "id": 1308810}, {"segmentation": [[267.53, 185.57, 265.7, 180.32, 264.12, 172.19, 266.75, 167.73, 267.8, 166.68, 267.01, 158.03, 271.47, 157.5, 275.4, 160.39, 276.71, 165.63, 278.55, 168.26, 279.6, 172.19, 277.76, 178.49, 274.62, 183.73, 273.3, 185.57, 268.58, 185.83]], "area": 297.7667500000001, "iscrowd": 0, "image_id": 514049, "bbox": [264.12, 157.5, 15.48, 28.33], "category_id": 1, "id": 1310001}, {"segmentation": [[467.98, 288.58, 465.22, 283.61, 459.7, 277.26, 461.63, 265.66, 461.63, 261.51, 458.59, 258.2, 459.7, 252.12, 463.84, 252.4, 463.84, 256.27, 463.84, 251.3, 469.09, 255.71, 469.92, 260.13, 472.13, 263.72, 469.92, 272.56, 471.85, 280.02, 474.89, 286.1, 468.54, 288.03]], "area": 335.4125500000001, "iscrowd": 0, "image_id": 574487, "bbox": [458.59, 251.3, 16.3, 37.28], "category_id": 1, "id": 1316471}, {"segmentation": [[381.63, 289.53, 380.1, 272.76, 378.84, 267.67, 378.23, 266.86, 376.2, 265.54, 375.38, 263.81, 374.36, 262.38, 373.14, 261.16, 371.51, 259.12, 371.51, 258.51, 371.82, 258.1, 373.24, 258.41, 373.96, 259.22, 374.77, 260.45, 376.09, 261.06, 377.32, 261.57, 378.95, 261.67, 379.86, 261.16, 380.47, 258.72, 381.29, 257.19, 382.92, 257.19, 384.85, 257.29, 385.36, 258.1, 385.46, 260.34, 387.29, 264.01, 387.6, 266.66, 387.6, 267.67, 388.92, 272.05, 388.82, 273.88, 388.62, 276.43, 390.75, 284.37, 390.86, 286.71, 390.96, 289.05, 390.86, 291.5, 390.75, 291.9, 390.75, 294.85, 388.82, 295.06, 388.21, 294.96, 387.8, 293.02, 387.5, 291.29, 387.39, 289.76, 386.99, 285.49, 386.38, 283.35, 385.36, 282.23, 384.54, 285.9, 384.85, 288.14, 385.66, 290.88, 385.56, 292.31, 385.56, 293.43, 383.42, 294.75, 382.51, 294.65, 381.8, 292.11, 381.8, 291.7]], "area": 314.0826000000002, "iscrowd": 0, "image_id": 574487, "bbox": [371.51, 257.19, 19.45, 37.87], "category_id": 1, "id": 1317492}, {"segmentation": [[512.36, 278.97, 514.32, 277.51, 514.07, 269.69, 512.85, 267.98, 513.34, 259.91, 515.05, 258.69, 515.05, 255.76, 518.23, 256.25, 518.47, 259.42, 520.67, 260.4, 520.91, 268.46, 520.42, 276.53, 516.52, 276.28, 516.52, 278.48, 520.42, 278.48, 520.42, 280.19, 518.23, 280.19, 515.78, 279.46]], "area": 146.58344999999855, "iscrowd": 0, "image_id": 574487, "bbox": [512.36, 255.76, 8.55, 24.43], "category_id": 1, "id": 1318888}, {"segmentation": [[416.55, 257.02, 418.1, 255.7, 420.31, 256.03, 421.53, 257.91, 421.2, 259.57, 422.3, 260.45, 422.19, 262.67, 425.95, 268.2, 425.73, 273.51, 424.74, 281.47, 424.07, 281.8, 423.3, 282.03, 424.63, 287.67, 423.63, 290.88, 419.98, 290.77, 420.09, 289.66, 420.31, 289.11, 421.97, 288.77, 420.75, 283.13, 420.64, 280.03, 420.98, 273.73, 420.98, 271.96, 418.65, 266.54, 417.99, 264.1, 417.99, 262.11, 419.32, 261.23, 418.1, 260.45, 417.88, 259.01, 416.77, 258.13]], "area": 149.74714999999998, "iscrowd": 0, "image_id": 574487, "bbox": [416.55, 255.7, 9.4, 35.18], "category_id": 1, "id": 1320721}, {"segmentation": [[362.71, 302.26, 350.24, 296.5, 353.11, 276.35, 373.27, 260.04, 369.43, 236.05, 384.78, 232.21, 389.58, 244.69, 379.02, 255.24, 379.98, 295.54]], "area": 1255.7139499999992, "iscrowd": 0, "image_id": 485740, "bbox": [350.24, 232.21, 39.34, 70.05], "category_id": 1, "id": 1321977}, {"segmentation": [[119.92, 189.03, 115.8, 187.38, 113.65, 184.74, 111.51, 182.93, 113.32, 175.85, 115.63, 172.55, 119.59, 171.89, 119.09, 168.76, 117.44, 165.96, 121.07, 162.99, 124.37, 162.99, 126.84, 165.46, 127.33, 170.74, 131.78, 171.56, 135.9, 175.35, 138.21, 180.95, 138.38, 185.9, 136.56, 188.04, 137.55, 193.81, 121.23, 194.96, 119.59, 197.44, 117.28, 191.67]], "area": 571.4799500000001, "iscrowd": 0, "image_id": 514049, "bbox": [111.51, 162.99, 26.87, 34.45], "category_id": 1, "id": 1325536}, {"segmentation": [[315.95, 315.59, 325.61, 315.59, 335.64, 318.94, 344.19, 327.85, 341.59, 336.03, 339.73, 340.48, 341.22, 344.94, 362.39, 356.09, 346.79, 349.77, 348.28, 355.35, 353.11, 362.78, 361.28, 367.98, 369.82, 374.29, 376.51, 389.53, 378.0, 401.79, 372.8, 410.7, 364.25, 414.42, 357.56, 416.65, 357.56, 421.1, 367.59, 443.4, 362.39, 446.0, 364.99, 454.54, 364.62, 457.14, 360.16, 460.11, 351.62, 463.09, 336.76, 468.29, 326.73, 468.29, 325.24, 467.17, 325.24, 461.23, 325.98, 456.77, 328.59, 456.4, 322.27, 449.34, 312.98, 438.94, 301.46, 427.79, 291.43, 422.22, 290.69, 414.79, 293.29, 407.73, 294.03, 396.21, 293.29, 389.9, 296.63, 382.47, 299.98, 371.32, 304.06, 368.35, 301.09, 366.12, 311.12, 353.49, 312.24, 346.06, 314.1, 341.97, 313.72, 339.74, 310.01, 341.97, 305.92, 343.09, 304.44, 341.97, 307.41, 336.03, 307.41, 324.51, 312.98, 325.62, 314.47, 322.28, 311.87, 319.31]], "area": 8084.003, "iscrowd": 0, "image_id": 503293, "bbox": [290.69, 315.59, 87.31, 152.7], "category_id": 1, "id": 1325981}, {"segmentation": [[88.73, 274.85, 94.92, 267.69, 99.8, 259.23, 104.03, 242.64, 108.58, 232.87, 109.56, 229.94, 114.12, 226.36, 120.95, 224.74, 129.74, 229.29, 134.29, 236.78, 133.97, 243.61, 132.99, 253.37, 132.67, 261.51, 136.57, 267.04, 136.24, 273.55, 130.06, 275.5, 125.83, 276.16, 122.58, 281.36, 120.3, 293.73, 118.35, 297.63, 108.91, 294.38, 103.7, 289.82, 96.87, 284.94, 92.96, 279.41]], "area": 2045.7551000000003, "iscrowd": 0, "image_id": 485740, "bbox": [88.73, 224.74, 47.84, 72.89], "category_id": 1, "id": 1327147}, {"segmentation": [[152.33, 185.42, 150.05, 179.34, 148.53, 169.46, 148.53, 163.2, 148.91, 160.73, 150.43, 157.88, 150.24, 156.36, 147.96, 155.6, 147.01, 153.32, 145.3, 152.75, 145.11, 152.37, 144.35, 149.52, 143.21, 145.72, 143.78, 141.92, 146.82, 139.07, 149.67, 138.12, 155.75, 138.12, 157.65, 139.07, 158.98, 140.02, 162.59, 142.3, 165.81, 145.34, 166.95, 149.52, 167.71, 149.71, 172.27, 149.9, 175.31, 150.85, 177.02, 151.61, 178.35, 152.56, 181.77, 154.46, 185.76, 159.97, 186.71, 161.3, 187.66, 161.68, 187.66, 161.68, 188.61, 159.59, 189.94, 159.97, 192.41, 162.06, 192.6, 162.06, 194.69, 167.0, 194.88, 169.28, 194.69, 170.6, 191.27, 171.36, 188.99, 174.21, 180.25, 166.62, 179.49, 166.43, 179.3, 167.38, 179.3, 171.55, 179.3, 177.63, 179.3, 180.86, 178.54, 183.14, 177.78, 189.22, 177.78, 194.54, 179.11, 200.05, 175.31, 201.76, 169.8, 201.76, 167.9, 201.0, 166.57, 197.58, 166.19, 196.82, 165.24, 193.97, 163.54, 190.55, 162.4, 189.6, 160.31, 187.89, 160.31, 187.89, 158.22, 187.89, 156.89, 187.32, 152.71, 185.8]], "area": 1697.06965, "iscrowd": 0, "image_id": 485740, "bbox": [143.21, 138.12, 51.67, 63.64], "category_id": 1, "id": 1327230}, {"segmentation": [[496.73, 281.43, 494.04, 281.97, 491.35, 280.35, 490.82, 275.52, 491.89, 268.0, 495.12, 261.55, 498.88, 266.92, 498.88, 279.82]], "area": 125.21265000000004, "iscrowd": 0, "image_id": 574487, "bbox": [490.82, 261.55, 8.06, 20.42], "category_id": 1, "id": 1328574}, {"segmentation": [[484.2, 280.56, 484.32, 281.12, 485.68, 280.38, 487.03, 280.62, 487.77, 280.13, 487.77, 277.29, 487.96, 274.95, 487.53, 273.78, 487.96, 272.35, 487.78, 270.63, 487.81, 269.95, 488.41, 268.83, 488.6, 268.72, 489.54, 269.8, 490.25, 271.68, 490.88, 272.61, 491.14, 273.29, 491.67, 269.02, 491.22, 268.16, 490.47, 266.89, 490.51, 265.69, 490.51, 264.23, 490.58, 263.25, 491.59, 262.58, 491.97, 262.51, 492.57, 261.72, 491.78, 261.08, 491.93, 260.0, 492.42, 259.14, 492.98, 258.88, 493.95, 258.84, 494.4, 259.14, 495.15, 258.69, 495.11, 257.79, 495.19, 256.78, 495.15, 256.03, 498.14, 256.07, 498.44, 256.89, 498.48, 257.08, 499.0, 256.74, 498.74, 256.14, 497.92, 255.51, 497.1, 255.24, 495.97, 255.39, 495.0, 255.96, 494.51, 256.59, 493.76, 257.04, 492.79, 258.05, 492.08, 258.58, 491.37, 258.65, 491.41, 257.45, 490.85, 256.52, 490.25, 255.92, 489.57, 255.21, 488.67, 255.17, 487.81, 255.32, 487.06, 255.69, 486.77, 256.44, 486.91, 257.42, 487.25, 257.75, 487.93, 257.75, 488.34, 257.98, 488.45, 258.58, 488.41, 258.88, 488.08, 259.85, 487.55, 260.0, 487.18, 259.7, 485.87, 261.31, 485.64, 262.24, 486.2, 262.58, 486.52, 263.96, 486.34, 266.86, 485.4, 274.06]], "area": 104.69150000000019, "iscrowd": 0, "image_id": 574487, "bbox": [484.2, 255.17, 14.8, 25.95], "category_id": 1, "id": 1328976}, {"segmentation": [[137.29, 207.33, 142.88, 221.67, 131.34, 225.52, 113.51, 225.87, 104.76, 229.37, 115.95, 233.91, 122.25, 245.1, 116.3, 245.45, 99.17, 240.56, 88.33, 232.16, 86.93, 224.82, 92.52, 216.78, 108.26, 211.18, 115.6, 207.33, 115.95, 202.44, 117.0, 197.19, 131.34, 198.94, 133.44, 205.59], [143.23, 237.76, 142.53, 272.38, 140.78, 285.32, 113.16, 283.22, 110.71, 244.05, 121.2, 246.15, 120.85, 242.31, 118.05, 236.01, 126.1, 234.96]], "area": 2724.06945, "iscrowd": 0, "image_id": 503293, "bbox": [86.93, 197.19, 56.3, 88.13], "category_id": 1, "id": 1329402}, {"segmentation": [[148.32, 65.15, 150.67, 62.61, 157.33, 63.0, 157.72, 63.2, 158.89, 66.33, 162.42, 73.57, 165.55, 77.29, 166.53, 83.56, 165.55, 87.28, 165.35, 89.43, 164.37, 91.2, 160.46, 95.11, 157.91, 97.27, 157.52, 98.25, 157.72, 99.62, 153.21, 96.88, 152.43, 92.57, 154.19, 84.34, 152.82, 72.2, 150.28, 66.52, 149.69, 65.94]], "area": 360.7208500000001, "iscrowd": 0, "image_id": 503293, "bbox": [148.32, 62.61, 18.21, 37.01], "category_id": 1, "id": 1332263}, {"segmentation": [[436.85, 50.69, 448.41, 50.57, 456.95, 50.44, 458.95, 54.59, 455.56, 57.1, 441.75, 59.61, 439.87, 59.74, 438.74, 56.85]], "area": 153.25924999999987, "iscrowd": 0, "image_id": 58949, "bbox": [436.85, 50.44, 22.1, 9.3], "category_id": 3, "id": 1338677}, {"segmentation": [[399.59, 288.32, 428.55, 289.77, 427.35, 279.39, 435.8, 274.08, 410.21, 270.94, 402.73, 275.04, 397.66, 288.08]], "area": 480.8786499999997, "iscrowd": 0, "image_id": 254711, "bbox": [397.66, 270.94, 38.14, 18.83], "category_id": 15, "id": 1397623}, {"segmentation": [[191.04, 351.22, 187.21, 350.58, 180.66, 352.5, 178.74, 357.61, 179.38, 363.85, 185.45, 367.68, 191.36, 366.72, 194.24, 362.09, 194.4, 356.66, 192.96, 353.46]], "area": 212.18035000000035, "iscrowd": 0, "image_id": 219192, "bbox": [178.74, 350.58, 15.66, 17.1], "category_id": 37, "id": 1462122}, {"segmentation": [[123.57, 359.18, 124.62, 363.61, 125.78, 368.67, 125.15, 371.62, 124.73, 373.83, 124.52, 374.78, 121.04, 374.99, 116.82, 373.52, 115.35, 369.72, 115.56, 366.35, 116.93, 362.76, 119.25, 360.23]], "area": 125.06834999999988, "iscrowd": 0, "image_id": 219192, "bbox": [115.35, 359.18, 10.43, 15.81], "category_id": 37, "id": 1462224}, {"segmentation": [[209.44, 225.57, 206.62, 225.57, 204.83, 225.27, 203.2, 224.23, 203.05, 223.78, 202.45, 222.89, 200.37, 223.64, 198.44, 223.19, 196.21, 221.7, 195.61, 219.77, 195.32, 218.14, 195.76, 216.65, 196.21, 216.05, 197.4, 215.91, 199.03, 215.91, 200.67, 216.35, 201.86, 217.24, 202.3, 217.99, 202.45, 218.43, 204.24, 217.24, 204.98, 216.8, 206.02, 216.35, 209.14, 216.05, 211.22, 216.05, 213.01, 216.05, 214.79, 216.05, 215.98, 216.05, 216.58, 217.39, 216.58, 218.14, 216.13, 218.43, 214.49, 218.43, 211.67, 218.43, 210.78, 218.58, 211.37, 219.03, 214.94, 219.18, 217.02, 219.92, 218.06, 220.66, 219.25, 221.41, 219.25, 222.6, 218.81, 223.19, 217.77, 223.49, 215.98, 222.6, 215.39, 222.3, 214.2, 222.3, 211.97, 222.3, 212.26, 223.04, 214.49, 223.34, 215.39, 223.34, 216.43, 223.64, 216.43, 224.53, 215.98, 226.01, 214.64, 226.16, 213.31, 226.16, 212.71, 226.16, 212.56, 226.16]], "area": 171.74959999999993, "iscrowd": 0, "image_id": 574487, "bbox": [195.32, 215.91, 23.93, 10.25], "category_id": 38, "id": 1463341}, {"segmentation": [[262.47, 321.58, 266.51, 277.2, 285.87, 247.34, 317.35, 226.36, 365.76, 220.71, 380.29, 228.78, 350.43, 257.02, 331.87, 279.62, 334.29, 315.93, 339.94, 336.11, 362.54, 351.44, 394.82, 363.55, 404.5, 377.27, 377.06, 398.25, 346.4, 405.51, 300.4, 400.67, 275.38, 366.77, 265.7, 349.02, 252.79, 330.46, 248.75, 328.04, 261.66, 324.81]], "area": 14754.859199999999, "iscrowd": 0, "image_id": 337420, "bbox": [248.75, 220.71, 155.75, 184.8], "category_id": 38, "id": 1464453}, {"segmentation": [[166.87, 236.88, 196.24, 286.86, 202.82, 282.03, 202.82, 266.69, 193.61, 258.36, 187.78, 255.1, 187.78, 251.64, 196.9, 254.15, 211.36, 245.04, 199.1, 223.67]], "area": 1268.7694000000001, "iscrowd": 0, "image_id": 574487, "bbox": [166.87, 223.67, 44.49, 63.19], "category_id": 38, "id": 1465176}, {"segmentation": [[358.7, 248.46, 358.17, 239.68, 350.72, 233.02, 354.45, 232.76, 355.51, 229.3, 360.03, 234.62, 370.15, 235.15, 373.07, 239.41, 373.07, 247.13, 366.69, 253.25, 361.37, 252.72, 358.44, 248.99]], "area": 270.66914999999955, "iscrowd": 0, "image_id": 574487, "bbox": [350.72, 229.3, 22.35, 23.95], "category_id": 38, "id": 1465245}, {"segmentation": [[429.76, 175.7, 437.71, 169.58, 448.71, 171.42, 466.44, 172.03, 487.84, 181.81, 514.13, 189.76, 543.48, 198.32, 570.38, 204.43, 516.58, 196.48, 488.45, 190.98, 465.22, 189.15, 446.27, 187.92, 430.98, 186.09, 429.15, 176.31]], "area": 1230.4820999999997, "iscrowd": 0, "image_id": 574487, "bbox": [429.15, 169.58, 141.23, 34.85], "category_id": 38, "id": 1465449}, {"segmentation": [[424.15, 391.7, 359.25, 421.89, 338.11, 473.21, 360.75, 544.15, 406.04, 572.83, 461.89, 572.83, 498.11, 532.08, 478.49, 520.0, 428.68, 491.32, 413.58, 480.75, 413.58, 455.09, 433.21, 421.89, 442.26, 393.21]], "area": 15292.368650000002, "iscrowd": 0, "image_id": 337420, "bbox": [338.11, 391.7, 160.0, 181.13], "category_id": 38, "id": 1465652}, {"segmentation": [[304.48, 200.0, 298.59, 197.17, 296.23, 189.15, 298.35, 180.42, 302.6, 176.88, 308.97, 178.53, 311.56, 180.42, 310.85, 184.67, 307.79, 184.19, 305.66, 186.08, 304.48, 198.59]], "area": 192.95105000000024, "iscrowd": 0, "image_id": 386012, "bbox": [296.23, 176.88, 15.33, 23.12], "category_id": 38, "id": 1465986}, {"segmentation": [[356.91, 213.87, 354.96, 210.8, 354.12, 202.14, 353.84, 193.48, 356.35, 192.92, 358.59, 194.32, 361.38, 196.83, 361.94, 203.82, 361.94, 208.84, 361.38, 214.15]], "area": 141.45970000000014, "iscrowd": 0, "image_id": 386012, "bbox": [353.84, 192.92, 8.1, 21.23], "category_id": 38, "id": 1466209}, {"segmentation": [[268.05, 51.58, 252.99, 63.62, 251.48, 71.15, 245.46, 93.74, 251.48, 114.82, 289.13, 161.51, 361.41, 178.07, 394.54, 164.52, 356.89, 209.69, 334.31, 218.73, 296.66, 229.27, 265.04, 226.26, 237.93, 220.24, 244.22, 211.43, 258.68, 198.23, 253.65, 192.57, 230.38, 203.89, 223.47, 200.11, 214.04, 187.54, 203.35, 165.53, 195.8, 149.81, 195.17, 135.98, 207.12, 88.82, 227.87, 63.67, 249.25, 51.72, 264.34, 47.95, 268.74, 48.58]], "area": 13836.4333, "iscrowd": 0, "image_id": 337420, "bbox": [195.17, 47.95, 199.37, 181.32], "category_id": 38, "id": 1466342}, {"segmentation": [[438.74, 158.44, 436.83, 157.44, 435.04, 153.3, 435.16, 148.82, 436.95, 146.7, 444.44, 146.92, 448.36, 149.72, 450.03, 153.07, 450.37, 157.1, 449.7, 159.0, 447.35, 159.23, 444.44, 155.31, 442.2, 150.16, 440.97, 149.05, 438.29, 148.37, 438.85, 150.61, 440.3, 155.65, 440.53, 158.44, 439.74, 159.11]], "area": 115.06705000000004, "iscrowd": 0, "image_id": 386012, "bbox": [435.04, 146.7, 15.33, 12.53], "category_id": 38, "id": 1466418}, {"segmentation": [[21.6, 357.39, 22.94, 355.89, 24.8, 355.81, 26.54, 356.74, 26.83, 358.0, 26.1, 359.17, 25.21, 360.22, 25.37, 364.27, 25.05, 366.58, 26.63, 372.3, 26.5, 374.52, 25.69, 375.09, 24.48, 373.92, 24.07, 368.97, 23.67, 366.54, 23.51, 361.03, 23.02, 359.98, 21.76, 358.48, 21.24, 357.47]], "area": 43.45870000000006, "iscrowd": 0, "image_id": 264423, "bbox": [21.24, 355.81, 5.59, 19.28], "category_id": 38, "id": 1466555}, {"segmentation": [[213.39, 265.7, 194.51, 291.54, 170.67, 295.51, 129.93, 285.57, 106.09, 272.66, 62.37, 237.89, 64.36, 196.16, 60.39, 155.42, 73.3, 127.61, 101.12, 109.72, 135.89, 91.84, 134.9, 95.81, 123.97, 144.5, 141.85, 205.1, 166.69, 229.94, 209.41, 243.85, 221.33, 258.75]], "area": 15386.948999999999, "iscrowd": 0, "image_id": 337420, "bbox": [60.39, 91.84, 160.94, 203.67], "category_id": 38, "id": 1466716}, {"segmentation": [[447.58, 159.61, 449.42, 159.29, 450.22, 158.33, 450.87, 157.44, 452.07, 156.48, 455.28, 155.84, 457.6, 155.84, 459.93, 156.16, 462.82, 158.97, 463.3, 160.17, 464.42, 161.53, 464.66, 163.3, 464.66, 165.06, 464.5, 166.67, 464.34, 167.55, 462.66, 168.51, 461.94, 168.19, 462.02, 165.63, 461.77, 163.54, 459.85, 160.25, 459.77, 160.01, 457.36, 158.81, 454.56, 158.41, 452.79, 158.89, 451.11, 160.17, 449.34, 162.74, 448.94, 163.3, 447.66, 164.42, 447.02, 164.58, 445.49, 163.78, 445.33, 162.74, 446.29, 161.21, 446.78, 160.49, 447.66, 159.93]], "area": 77.32940000000013, "iscrowd": 0, "image_id": 386012, "bbox": [445.33, 155.84, 19.33, 12.67], "category_id": 38, "id": 1467038}, {"segmentation": [[522.12, 104.59, 514.71, 104.59, 507.29, 90.59, 496.59, 73.29, 489.18, 78.24, 485.88, 78.24, 480.94, 73.29, 490.0, 66.71, 505.65, 66.71, 517.18, 76.59, 524.59, 93.88, 522.94, 100.47]], "area": 678.2634499999998, "iscrowd": 0, "image_id": 386012, "bbox": [480.94, 66.71, 43.65, 37.88], "category_id": 38, "id": 1467076}, {"segmentation": [[553.76, 168.29, 552.09, 164.32, 554.59, 161.61, 558.77, 161.19, 562.32, 163.07, 566.28, 168.29, 567.75, 174.76, 565.87, 180.39, 564.2, 181.23, 563.15, 178.72, 561.69, 170.58, 558.56, 166.2, 555.85, 167.45]], "area": 121.62999999999964, "iscrowd": 0, "image_id": 386012, "bbox": [552.09, 161.19, 15.66, 20.04], "category_id": 38, "id": 1467217}, {"segmentation": [[445.18, 240.31, 444.85, 233.37, 444.85, 231.36, 445.18, 230.35, 446.86, 229.68, 448.2, 230.02, 449.43, 231.25, 448.76, 238.41, 448.43, 240.08, 448.54, 240.87, 446.97, 241.32, 445.18, 239.97]], "area": 42.978199999999795, "iscrowd": 0, "image_id": 386012, "bbox": [444.85, 229.68, 4.58, 11.64], "category_id": 38, "id": 1467313}, {"segmentation": [[289.88, 104.59, 294.95, 99.52, 300.79, 95.63, 313.65, 96.41, 321.44, 107.7, 322.99, 117.83, 321.05, 119.39, 318.71, 119.39, 317.93, 118.22, 312.87, 113.55, 308.58, 108.09, 305.46, 105.37, 297.67, 105.76, 296.5, 108.09, 294.17, 109.26, 291.44, 109.65, 291.44, 109.65]], "area": 371.6548500000002, "iscrowd": 0, "image_id": 386012, "bbox": [289.88, 95.63, 33.11, 23.76], "category_id": 38, "id": 1468284}, {"segmentation": [[380.41, 216.91, 392.05, 216.53, 395.3, 219.39, 396.06, 230.08, 391.48, 232.56, 393.96, 238.09, 397.01, 247.82, 393.39, 248.39, 393.01, 247.25, 389.76, 247.06, 385.38, 235.8, 383.09, 232.56, 382.13, 223.21, 380.41, 220.34, 375.07, 215.77, 375.26, 214.43, 379.08, 215.38, 377.17, 208.9]], "area": 340.5439000000006, "iscrowd": 0, "image_id": 574487, "bbox": [375.07, 208.9, 21.94, 39.49], "category_id": 38, "id": 1468297}, {"segmentation": [[110.05, 209.44, 111.25, 201.83, 109.85, 196.42, 107.05, 194.22, 102.24, 195.82, 100.04, 199.02, 97.63, 196.82, 101.64, 193.01, 107.65, 191.81, 112.65, 192.81, 114.86, 198.82, 115.66, 206.43, 111.85, 209.44]], "area": 103.09635000000003, "iscrowd": 0, "image_id": 386012, "bbox": [97.63, 191.81, 18.03, 17.63], "category_id": 38, "id": 1468755}, {"segmentation": [[268.02, 230.27, 269.73, 225.25, 269.47, 220.89, 268.41, 218.65, 267.22, 217.19, 266.69, 219.31, 263.66, 218.25, 265.24, 216.53, 267.62, 215.74, 273.56, 217.72, 275.68, 223.67, 272.38, 229.88, 269.34, 231.73, 268.28, 230.67]], "area": 81.25729999999973, "iscrowd": 0, "image_id": 386012, "bbox": [263.66, 215.74, 12.02, 15.99], "category_id": 38, "id": 1468937}, {"segmentation": [[238.03, 137.81, 241.27, 144.74, 240.49, 151.79, 237.8, 156.94, 234.22, 160.52, 233.55, 159.73, 237.13, 155.59, 237.58, 151.23, 236.68, 145.53, 233.78, 140.49, 230.53, 138.03, 224.38, 136.46, 219.57, 137.69, 213.42, 143.06, 211.74, 141.83, 215.65, 137.14, 223.04, 133.0, 227.73, 132.33, 233.1, 133.78, 235.9, 135.35]], "area": 174.14950000000007, "iscrowd": 0, "image_id": 386012, "bbox": [211.74, 132.33, 29.53, 28.19], "category_id": 38, "id": 1469451}, {"segmentation": [[121.03, 150.42, 114.29, 147.16, 115.16, 143.46, 120.38, 139.1, 125.82, 139.76, 132.57, 141.5, 137.57, 148.25, 139.1, 156.51, 137.36, 161.3, 134.09, 167.83, 131.26, 171.97, 124.3, 170.01, 127.13, 161.52, 127.34, 153.9, 126.91, 148.46, 126.47, 146.29, 126.04, 145.85, 120.82, 150.86]], "area": 392.41200000000003, "iscrowd": 0, "image_id": 386012, "bbox": [114.29, 139.1, 24.81, 32.87], "category_id": 38, "id": 1469602}, {"segmentation": [[36.37, 73.3, 40.17, 68.37, 42.7, 65.58, 44.59, 64.57, 47.75, 70.64, 49.9, 78.48, 52.05, 85.94, 55.09, 93.02, 59.13, 94.79, 63.56, 87.96, 65.45, 81.39, 64.06, 71.53, 60.65, 65.46, 57.74, 62.93, 52.18, 60.53, 45.22, 58.0, 42.06, 57.62, 39.53, 57.24, 34.1, 58.0, 30.68, 61.66, 30.56, 65.96, 32.2, 70.52, 34.98, 72.92, 36.5, 74.06]], "area": 606.4549000000001, "iscrowd": 0, "image_id": 386012, "bbox": [30.56, 57.24, 34.89, 37.55], "category_id": 38, "id": 1469623}, {"segmentation": [[297.32, 412.5, 293.72, 412.01, 292.33, 412.01, 289.69, 414.44, 289.21, 417.84, 289.21, 418.88, 289.21, 420.48, 289.69, 423.88, 290.59, 424.57, 295.45, 427.0, 299.4, 429.22, 300.65, 428.6, 299.06, 425.89, 297.05, 423.67, 298.78, 413.19]], "area": 121.46575000000026, "iscrowd": 0, "image_id": 503293, "bbox": [289.21, 412.01, 11.44, 17.21], "category_id": 40, "id": 1470272}, {"segmentation": [[542.75, 181.99, 542.51, 180.34, 541.6, 179.85, 540.53, 179.35, 539.37, 179.93, 538.71, 181.41, 539.04, 182.73, 539.78, 183.06, 541.68, 183.06, 542.67, 183.06]], "area": 11.908149999999965, "iscrowd": 0, "image_id": 88859, "bbox": [538.71, 179.35, 4.04, 3.71], "category_id": 40, "id": 1470495}, {"segmentation": [[257.57, 291.24, 257.65, 292.18, 258.76, 290.61, 260.49, 289.5, 261.12, 290.37, 260.57, 291.79, 261.91, 292.66, 263.41, 293.13, 263.41, 294.47, 262.94, 296.68, 262.94, 298.18, 264.28, 299.04, 266.33, 299.2, 267.19, 297.62, 267.27, 295.02, 266.96, 292.97, 266.64, 291.39, 264.99, 289.97, 264.04, 288.79, 262.78, 287.61, 261.28, 287.45, 259.31, 288.08, 257.81, 289.82]], "area": 53.1754999999999, "iscrowd": 0, "image_id": 514049, "bbox": [257.57, 287.45, 9.7, 11.75], "category_id": 40, "id": 1471061}, {"segmentation": [[48.93, 291.65, 51.92, 291.89, 53.59, 294.87, 54.3, 297.62, 53.83, 299.17, 52.04, 299.05, 49.77, 299.64, 47.74, 298.81, 46.79, 294.99, 47.26, 293.08]], "area": 45.530600000000106, "iscrowd": 0, "image_id": 254711, "bbox": [46.79, 291.65, 7.51, 7.99], "category_id": 40, "id": 1471112}, {"segmentation": [[193.17, 184.57, 186.25, 190.72, 191.12, 194.05, 196.5, 194.3, 205.98, 191.49, 217.77, 185.33, 213.41, 180.21, 208.8, 179.7, 207.52, 177.39, 205.73, 180.72, 202.39, 182.0, 201.62, 180.21, 198.8, 182.0]], "area": 269.7518500000004, "iscrowd": 0, "image_id": 58949, "bbox": [186.25, 177.39, 31.52, 16.91], "category_id": 40, "id": 1471254}, {"segmentation": [[234.44, 336.1, 233.32, 336.74, 233.32, 337.85, 234.6, 340.09, 236.35, 340.72, 258.82, 355.07, 261.22, 355.07, 262.49, 354.27, 262.81, 353.95, 263.45, 353.31, 263.61, 353.15, 262.97, 350.76, 259.14, 346.62, 234.92, 336.42]], "area": 175.00160000000002, "iscrowd": 0, "image_id": 503293, "bbox": [233.32, 336.1, 30.29, 18.97], "category_id": 39, "id": 1476055}, {"segmentation": [[328.07, 246.8, 331.52, 248.3, 337.12, 248.52, 345.1, 248.95, 353.72, 249.17, 359.11, 249.17, 359.54, 248.52, 359.32, 247.23, 358.24, 246.36, 357.17, 246.15, 356.3, 245.29, 354.36, 243.13, 345.31, 243.13, 345.31, 245.72, 343.59, 247.23, 341.0, 247.23, 339.92, 246.15, 339.92, 245.93, 339.06, 244.21, 338.84, 244.21, 335.61, 243.78, 328.5, 244.21, 327.21, 244.86]], "area": 132.42245000000008, "iscrowd": 0, "image_id": 217951, "bbox": [327.21, 243.13, 32.33, 6.04], "category_id": 42, "id": 1479847}, {"segmentation": [[255.91, 368.56, 247.63, 356.13, 248.87, 353.24, 255.08, 347.02, 274.54, 344.95, 294.42, 343.71, 320.51, 347.44, 338.32, 351.58, 342.46, 354.89, 323.41, 356.96, 310.57, 361.1, 312.23, 375.6, 311.4, 380.98, 304.36, 382.64, 299.39, 382.64, 298.98, 372.28, 298.56, 365.66, 291.94, 359.45, 280.76, 365.24, 275.37, 366.9, 270.82, 360.69, 267.5, 357.79, 260.46, 361.93, 258.81, 366.9, 256.32, 368.56, 255.91, 368.14]], "area": 1570.5219000000006, "iscrowd": 0, "image_id": 209041, "bbox": [247.63, 343.71, 94.83, 38.93], "category_id": 51, "id": 1537684}, {"segmentation": [[478.16, 201.53, 472.56, 208.38, 474.12, 214.6, 484.69, 219.58, 504.29, 229.53, 505.54, 229.85, 522.65, 235.13, 509.89, 220.2, 497.76, 206.2, 487.18, 199.98, 480.34, 199.05]], "area": 701.9836999999998, "iscrowd": 0, "image_id": 57100, "bbox": [472.56, 199.05, 50.09, 36.08], "category_id": 57, "id": 1564189}, {"segmentation": [[455.81, 137.5, 465.6, 134.14, 472.47, 132.68, 489.43, 131.51, 501.56, 133.56, 505.21, 134.87, 507.55, 140.13, 506.97, 142.03, 503.31, 148.17, 475.54, 153.29, 461.51, 154.9, 457.12, 155.04, 451.57, 148.9, 453.47, 142.33]], "area": 974.4795499999996, "iscrowd": 0, "image_id": 57100, "bbox": [451.57, 131.51, 55.98, 23.53], "category_id": 57, "id": 1564614}, {"segmentation": [[385.56, 238.69, 367.72, 250.43, 364.43, 262.17, 366.31, 265.45, 487.92, 263.58, 487.45, 249.02, 481.81, 244.8, 481.81, 238.69, 482.28, 235.88]], "area": 3105.7398999999978, "iscrowd": 0, "image_id": 514049, "bbox": [364.43, 235.88, 123.49, 29.57], "category_id": 58, "id": 1567967}, {"segmentation": [[254.0, 288.45, 250.04, 293.87, 250.33, 297.54, 257.51, 296.95, 260.3, 290.8, 260.0, 288.31, 254.14, 288.6]], "area": 69.28490000000001, "iscrowd": 0, "image_id": 195211, "bbox": [250.04, 288.31, 10.26, 9.23], "category_id": 75, "id": 1631347}, {"segmentation": [[236.25, 296.71, 230.39, 289.53, 231.12, 287.19, 239.33, 287.48, 242.85, 294.95]], "area": 75.56124999999977, "iscrowd": 0, "image_id": 195211, "bbox": [230.39, 287.19, 12.46, 9.52], "category_id": 75, "id": 1633045}, {"segmentation": [[374.23, 204.27, 383.98, 208.25, 386.34, 214.6, 390.03, 221.1, 423.85, 220.07, 422.67, 212.83, 417.5, 209.88, 407.16, 208.4, 401.25, 207.66, 396.82, 206.33, 394.9, 204.56, 391.21, 206.92, 386.34, 205.3, 384.42, 204.12, 386.78, 199.54, 385.16, 198.65, 382.94, 200.57, 378.96, 201.17, 376.74, 202.64]], "area": 518.8331500000002, "iscrowd": 0, "image_id": 245295, "bbox": [374.23, 198.65, 49.62, 22.45], "category_id": 76, "id": 1634220}, {"segmentation": [[631.23, 339.18, 607.71, 319.24, 603.1, 333.05, 594.92, 377.03, 624.58, 399.53]], "area": 1821.8207000000014, "iscrowd": 0, "image_id": 195211, "bbox": [594.92, 319.24, 36.31, 80.29], "category_id": 84, "id": 1650574}, {"segmentation": [[604.3, 250.81, 601.63, 268.09, 599.66, 301.68, 599.24, 303.5, 590.95, 298.87, 588.42, 296.2, 594.18, 253.9, 595.44, 249.4, 597.41, 247.3, 601.77, 245.89, 605.42, 245.05, 608.37, 247.16, 611.18, 249.68, 611.6, 251.23]], "area": 572.0787000000004, "iscrowd": 0, "image_id": 195211, "bbox": [588.42, 245.05, 23.18, 58.45], "category_id": 84, "id": 1652072}, {"segmentation": [[220.16, 42.14, 226.89, 41.41, 234.94, 42.14, 234.65, 63.95, 233.33, 87.95, 234.06, 107.71, 227.48, 107.86, 218.84, 106.83, 219.13, 102.74, 220.16, 58.97, 220.16, 51.51, 215.91, 50.04, 215.48, 46.09, 215.48, 42.72]], "area": 987.6937500000008, "iscrowd": 0, "image_id": 209041, "bbox": [215.48, 41.41, 19.46, 66.45], "category_id": 84, "id": 1652141}, {"segmentation": [[249.4, 237.07, 228.91, 239.63, 223.06, 224.27, 238.79, 222.8]], "area": 284.8830999999997, "iscrowd": 0, "image_id": 100187, "bbox": [223.06, 222.8, 26.34, 16.83], "category_id": 84, "id": 1652248}, {"segmentation": [[237.5, 223.38, 248.91, 236.86, 283.26, 234.4, 283.13, 232.32, 270.82, 233.75, 264.73, 224.16, 260.84, 220.79]], "area": 377.3344500000007, "iscrowd": 0, "image_id": 100187, "bbox": [237.5, 220.79, 45.76, 16.07], "category_id": 84, "id": 1652296}, {"segmentation": [[31.78, 36.74, 40.17, 36.74, 39.53, 97.08, 29.2, 96.11, 32.1, 37.7]], "area": 550.2860500000002, "iscrowd": 0, "image_id": 209041, "bbox": [29.2, 36.74, 10.97, 60.34], "category_id": 84, "id": 1655168}, {"segmentation": [[588.94, 237.3, 638.56, 258.88, 623.46, 399.1, 579.24, 353.8, 587.87, 238.38], [510.2, 28.04, 468.13, 49.62, 468.13, 49.62, 467.06, 74.43, 510.2, 58.25, 510.2, 29.12], [510.2, 107.87, 468.13, 115.42, 470.29, 132.67, 503.73, 130.52, 508.04, 108.94], [435.78, 149.93, 432.54, 182.29, 454.11, 185.53, 474.61, 184.45, 474.61, 162.88, 455.19, 149.93, 436.85, 152.09]], "area": 9630.667499999998, "iscrowd": 0, "image_id": 195211, "bbox": [432.54, 28.04, 206.02, 371.06], "category_id": 84, "id": 1657760}, {"segmentation": [[570.23, 265.51, 569.67, 263.46, 568.54, 262.12, 567.76, 260.86, 568.05, 259.45, 568.82, 258.25, 569.88, 257.68, 570.44, 257.26, 570.58, 255.78, 571.36, 255.15, 572.49, 255.43, 572.91, 257.68, 572.7, 258.6, 572.28, 260.5, 572.21, 263.6, 571.85, 265.58]], "area": 32.23385000000007, "iscrowd": 0, "image_id": 386012, "bbox": [567.76, 255.15, 5.15, 10.43], "category_id": 1, "id": 1676331}, {"segmentation": [[191.41, 118.87, 190.23, 115.59, 187.08, 116.25, 185.91, 114.81, 187.87, 114.42, 189.44, 111.14, 189.05, 106.3, 194.02, 105.77, 194.55, 108.13, 196.51, 109.44, 196.38, 112.58, 195.6, 117.03, 195.6, 118.08]], "area": 82.83370000000001, "iscrowd": 0, "image_id": 58949, "bbox": [185.91, 105.77, 10.6, 13.1], "category_id": 1, "id": 1689604}, {"segmentation": [[294.65, 34.78, 290.23, 28.88, 287.28, 26.92, 279.43, 29.87, 278.94, 36.74, 278.94, 46.07, 278.94, 48.04, 269.11, 53.93, 268.13, 58.35, 265.19, 53.44, 261.26, 64.24, 258.31, 75.04, 252.42, 76.03, 248.49, 89.78, 245.54, 104.51, 250.94, 104.02, 252.91, 94.69, 258.31, 89.28, 265.19, 88.79, 270.59, 87.81, 273.04, 86.83, 276.48, 87.81, 281.88, 90.27, 283.35, 92.72, 289.74, 94.69, 289.74, 96.65, 289.74, 108.44, 291.21, 115.31, 299.56, 115.31, 297.6, 102.54, 303.49, 96.65, 310.36, 95.67, 300.54, 61.29]], "area": 2503.979700000001, "iscrowd": 0, "image_id": 431660, "bbox": [245.54, 26.92, 64.82, 88.39], "category_id": 1, "id": 1703019}, {"segmentation": [[264.54, 333.64, 276.71, 337.04, 281.36, 343.66, 280.65, 338.65, 289.06, 344.02, 291.74, 347.6, 291.03, 355.47, 289.24, 357.44, 267.4, 350.1, 259.35, 343.66, 252.01, 339.9, 251.12, 338.11, 252.01, 332.57, 255.23, 330.24, 261.86, 331.67, 263.82, 332.74]], "area": 547.0244000000004, "iscrowd": 0, "image_id": 337420, "bbox": [251.12, 330.24, 40.62, 27.2], "category_id": 1, "id": 1714371}, {"segmentation": [[399.84, 78.47, 399.84, 62.11, 408.02, 53.92, 408.02, 31.42, 408.02, 20.51, 396.43, 20.51, 394.38, 24.61, 399.15, 35.51, 400.52, 38.92, 392.33, 49.15, 392.33, 63.47, 390.97, 73.7, 391.65, 81.88, 402.56, 81.88]], "area": 659.1842999999992, "iscrowd": 0, "image_id": 347688, "bbox": [390.97, 20.51, 17.05, 61.37], "category_id": 1, "id": 1714548}, {"segmentation": [[100.75, 270.09, 118.98, 302.71, 91.16, 331.5, 82.52, 404.42, 72.93, 427.0, 39.34, 422.66, 24.95, 425.53, 15.35, 373.72, 46.06, 339.17, 65.25, 281.6, 99.79, 270.09]], "area": 8286.102349999997, "iscrowd": 0, "image_id": 485740, "bbox": [15.35, 270.09, 103.63, 156.91], "category_id": 1, "id": 1718143}, {"segmentation": [[94.43, 361.81, 98.27, 360.06, 101.42, 360.76, 109.11, 372.65, 112.61, 373.7, 117.51, 370.2, 118.56, 367.41, 121.01, 367.41, 122.4, 370.55, 124.5, 376.85, 125.9, 378.25, 129.4, 376.15, 129.75, 373.35, 130.45, 371.25, 133.94, 367.76, 136.39, 364.61, 139.54, 359.71, 133.94, 343.63, 129.4, 332.43, 127.3, 336.98, 127.3, 343.63, 124.15, 342.93, 123.1, 342.93, 118.21, 342.23, 114.71, 345.72, 113.31, 346.77, 111.56, 349.22, 109.46, 353.42, 108.07, 356.56, 107.37, 357.61, 106.32, 359.71, 103.52, 356.56, 100.72, 354.47, 98.97, 352.72, 97.57, 353.42, 95.13, 356.56]], "area": 915.1998999999995, "iscrowd": 0, "image_id": 337420, "bbox": [94.43, 332.43, 45.11, 45.82], "category_id": 1, "id": 1720345}, {"segmentation": [[76.85, 13.28, 71.98, 28.4, 111.0, 28.4, 102.71, 16.21, 95.39, 13.77], [73.44, 34.26, 72.95, 47.91, 102.22, 51.82, 105.14, 33.77]], "area": 947.3912499999999, "iscrowd": 0, "image_id": 347688, "bbox": [71.98, 13.28, 39.02, 38.54], "category_id": 1, "id": 1720985}, {"segmentation": [[225.48, 63.73, 239.27, 48.28, 247.62, 48.28, 244.7, 42.85, 241.77, 33.24, 245.53, 27.4, 248.45, 22.38, 260.15, 26.98, 262.65, 36.17, 260.98, 44.94, 268.08, 54.13, 264.33, 57.89, 255.55, 75.85, 248.87, 89.63, 244.7, 103.83, 243.02, 72.09, 234.25, 66.24]], "area": 1308.2192499999996, "iscrowd": 0, "image_id": 431660, "bbox": [225.48, 22.38, 42.6, 81.45], "category_id": 1, "id": 1724706}, {"segmentation": [[196.78, 107.54, 199.88, 105.17, 202.98, 105.9, 206.62, 109.36, 207.35, 111.0, 207.35, 112.64, 206.26, 114.46, 199.33, 116.29, 197.14, 116.65]], "area": 89.67815000000002, "iscrowd": 0, "image_id": 58949, "bbox": [196.78, 105.17, 10.57, 11.48], "category_id": 1, "id": 1725011}, {"segmentation": [[16.22, 78.7, 0.46, 75.1, 0.46, 202.09, 13.97, 195.33, 30.18, 199.84, 33.78, 202.09, 38.73, 211.09, 44.14, 213.8, 59.9, 208.84, 62.6, 205.69, 38.73, 199.39, 59.0, 200.29, 63.95, 194.43, 67.1, 185.88, 61.7, 175.07, 39.63, 158.86, 65.3, 163.36, 79.26, 163.36, 92.32, 170.12, 93.67, 160.21, 97.27, 151.2, 96.37, 141.3, 91.42, 135.44, 54.49, 121.48, 35.58, 109.32, 35.13, 107.07, 32.88, 96.72, 30.63, 89.51, 23.42, 82.76]], "area": 7538.272849999999, "iscrowd": 0, "image_id": 57100, "bbox": [0.46, 75.1, 96.81, 138.7], "category_id": 1, "id": 1725680}, {"segmentation": [[1.28, 14.34, 3.59, 14.34, 8.58, 16.26, 10.89, 19.33, 14.73, 27.79, 19.73, 33.17, 22.42, 38.93, 25.88, 43.93, 27.03, 51.62, 25.11, 56.61, 12.43, 67.37, 7.43, 72.37, 5.12, 82.36, 0.51, 95.81, 0.13, 15.87]], "area": 1143.81465, "iscrowd": 0, "image_id": 431660, "bbox": [0.13, 14.34, 26.9, 81.47], "category_id": 1, "id": 1727116}, {"segmentation": [[141.3, 152.41, 143.84, 142.95, 147.99, 138.56, 152.84, 136.26, 163.45, 135.56, 167.83, 136.72, 169.45, 138.79, 171.06, 143.87, 172.45, 151.94, 170.37, 155.87, 169.45, 156.33, 167.6, 155.87, 167.83, 152.41, 168.29, 151.48, 167.37, 148.25, 166.22, 145.48, 165.53, 143.41, 165.29, 143.41, 163.91, 145.95, 164.14, 148.02, 164.37, 148.71, 164.37, 150.1, 162.3, 151.25, 162.53, 152.64, 163.45, 155.41, 163.68, 155.64, 162.06, 156.33, 160.22, 156.33, 157.22, 151.71, 154.68, 152.87, 155.37, 154.94, 153.99, 157.25, 152.37, 158.64, 151.22, 159.33, 151.22, 160.71, 150.53, 161.87, 149.14, 162.56, 146.61, 160.94, 146.61, 159.79, 146.61, 158.17, 146.61, 155.64, 146.84, 154.25, 146.84, 150.79, 147.3, 148.02, 147.53, 146.64, 147.3, 146.64, 145.68, 147.79, 145.22, 150.1, 144.07, 152.18, 144.07, 153.33, 144.3, 154.94, 144.99, 156.1, 144.53, 157.71, 141.76, 159.1, 139.68, 158.87, 139.22, 157.48, 139.22, 155.18]], "area": 510.1448500000001, "iscrowd": 0, "image_id": 337420, "bbox": [139.22, 135.56, 33.23, 27.0], "category_id": 1, "id": 1732289}, {"segmentation": [[173.85, 127.49, 174.5, 122.44, 173.2, 118.85, 170.75, 114.29, 167.82, 115.76, 166.19, 117.39, 167.33, 123.25, 168.47, 128.8, 169.94, 129.12, 169.94, 131.89, 174.83, 130.75]], "area": 97.77344999999988, "iscrowd": 0, "image_id": 58949, "bbox": [166.19, 114.29, 8.64, 17.6], "category_id": 1, "id": 1739146}, {"segmentation": [[525.57, 275.88, 525.87, 271.82, 526.16, 269.74, 527.25, 268.56, 528.24, 272.32, 528.44, 274.0, 528.44, 275.28, 526.36, 275.78]], "area": 14.585800000000027, "iscrowd": 0, "image_id": 386012, "bbox": [525.57, 268.56, 2.87, 7.32], "category_id": 1, "id": 1740435}, {"segmentation": [[436.62, 280.76, 437.21, 277.24, 438.38, 275.83, 440.61, 276.89, 440.84, 278.18, 441.31, 279.59, 441.31, 280.29]], "area": 16.314500000000102, "iscrowd": 0, "image_id": 386012, "bbox": [436.62, 275.83, 4.69, 4.93], "category_id": 1, "id": 1742186}, {"segmentation": [[339.96, 270.35, 331.22, 275.53, 336.41, 277.01, 336.41, 275.24, 345.0, 270.2, 359.07, 261.61, 357.44, 260.57, 339.07, 270.79], [346.95, 280.24, 345.1, 283.57, 344.9, 291.78, 346.56, 293.15, 346.66, 305.17, 349.69, 304.19, 349.59, 299.6, 352.14, 300.48, 352.33, 300.38, 350.77, 292.56, 351.35, 291.19, 356.44, 295.0, 362.59, 303.8, 364.35, 301.85, 362.69, 298.33, 353.5, 288.65, 353.89, 287.87, 352.33, 286.7, 351.55, 285.52, 350.77, 285.52, 349.79, 284.25, 348.62, 284.35, 347.74, 288.26, 347.25, 285.42, 345.78, 284.35, 346.95, 282.0, 348.81, 280.83, 347.44, 279.85]], "area": 224.8583999999998, "iscrowd": 0, "image_id": 471273, "bbox": [331.22, 260.57, 33.13, 44.6], "category_id": 2, "id": 1764558}, {"segmentation": [[441.73, 116.74, 444.04, 119.05, 446.86, 129.57, 450.46, 133.94, 459.44, 132.14, 462.26, 127.26, 467.91, 126.24, 468.43, 122.13, 463.29, 123.67, 459.7, 118.28, 449.17, 118.02, 446.61, 115.46, 445.58, 110.83, 442.75, 113.66, 441.47, 116.23, 441.21, 117.51]], "area": 278.59289999999976, "iscrowd": 0, "image_id": 195211, "bbox": [441.21, 110.83, 27.22, 23.11], "category_id": 16, "id": 1815780}, {"segmentation": [[153.87, 356.55, 156.65, 358.69, 157.4, 361.69, 157.72, 364.69, 156.65, 367.16, 154.19, 368.87, 152.8, 368.01, 152.48, 359.44, 153.01, 356.77]], "area": 48.31010000000009, "iscrowd": 0, "image_id": 219192, "bbox": [152.48, 356.55, 5.24, 12.32], "category_id": 37, "id": 1854258}, {"segmentation": [[235.69, 202.87, 225.25, 207.86, 217.43, 208.84, 206.13, 206.02, 194.4, 197.54, 190.92, 182.01, 187.66, 169.4, 185.92, 160.28, 184.94, 159.19, 181.47, 151.58, 183.32, 147.45, 185.38, 145.06, 186.25, 143.65, 188.31, 136.92, 196.57, 131.92, 204.07, 130.29, 208.85, 130.07, 212.43, 132.13, 214.72, 132.03, 216.02, 131.92, 214.93, 133.55, 210.7, 136.7, 211.35, 147.67, 217.0, 159.19, 219.39, 167.23, 219.28, 173.97, 221.02, 184.72, 225.69, 193.63, 229.38, 198.63, 231.77, 200.69, 234.6, 201.24, 236.45, 202.0]], "area": 2249.5816, "iscrowd": 0, "image_id": 217951, "bbox": [181.47, 130.07, 54.98, 78.77], "category_id": 38, "id": 1855362}, {"segmentation": [[145.75, 475.63, 135.09, 501.4, 121.76, 506.73, 128.87, 533.39, 142.19, 545.83, 148.41, 552.94, 167.07, 560.04, 173.29, 576.04, 183.07, 576.04, 189.29, 565.37, 213.28, 568.93, 240.82, 551.16, 252.37, 584.03, 195.51, 617.8, 156.41, 626.68, 100.43, 598.25, 78.22, 553.82, 78.22, 526.28, 86.22, 498.74, 98.66, 480.97, 117.32, 458.75, 127.98, 448.09, 146.64, 456.98, 142.19, 465.86]], "area": 12653.672949999998, "iscrowd": 0, "image_id": 337420, "bbox": [78.22, 448.09, 174.15, 178.59], "category_id": 38, "id": 1855749}, {"segmentation": [[197.06, 214.37, 197.58, 215.29, 198.04, 216.79, 198.04, 218.61, 197.77, 219.66, 196.6, 220.44, 194.12, 218.81, 193.27, 217.9, 193.92, 215.35, 193.92, 213.85, 195.49, 213.72, 196.99, 214.44]], "area": 23.22965000000003, "iscrowd": 0, "image_id": 88859, "bbox": [193.27, 213.72, 4.77, 6.72], "category_id": 40, "id": 1858863}, {"segmentation": [[374.29, 281.75, 398.9, 272.73, 399.72, 191.51, 375.11, 186.58, 352.96, 189.86, 347.21, 216.12, 325.88, 223.5, 324.24, 234.17, 325.06, 273.55, 369.36, 275.19]], "area": 5696.328450000001, "iscrowd": 0, "image_id": 195211, "bbox": [324.24, 186.58, 75.48, 95.17], "category_id": 62, "id": 1935213}, {"segmentation": [[130.57, 268.94, 122.06, 268.94, 119.93, 234.88, 109.29, 231.34, 93.68, 161.09, 93.68, 150.45, 100.06, 139.8, 104.32, 136.97, 113.54, 132.71, 136.96, 127.03, 139.09, 126.32, 147.6, 122.78, 158.24, 126.32, 168.18, 127.03, 180.95, 127.03, 202.95, 136.97, 215.72, 146.19, 222.1, 161.09, 221.39, 166.77, 219.27, 181.67, 219.27, 205.08, 219.27, 220.69, 215.72, 224.95, 217.14, 233.46, 217.14, 241.98, 215.72, 252.62, 215.01, 256.88, 211.46, 254.75, 210.75, 239.85, 210.75, 229.21, 210.75, 224.24, 191.02, 227.43, 191.95, 238.55, 187.32, 238.86, 185.77, 228.67, 132.65, 234.85, 132.96, 245.96, 129.87, 245.96, 129.25, 245.96, 129.25, 252.76]], "area": 12418.164149999997, "iscrowd": 0, "image_id": 100187, "bbox": [93.68, 122.78, 128.42, 146.16], "category_id": 62, "id": 1941815}, {"segmentation": [[355.15, 433.77, 359.26, 387.89, 364.56, 384.36, 371.03, 336.72, 368.67, 315.54, 380.44, 305.54, 401.61, 310.83, 413.97, 312.6, 487.5, 296.13, 496.32, 297.89, 530.44, 263.19, 539.26, 260.25, 640.0, 300.84, 640.0, 365.54, 621.02, 375.54, 602.2, 467.89, 596.32, 480.0, 405.73, 480.0]], "area": 47876.5498, "iscrowd": 0, "image_id": 100187, "bbox": [355.15, 260.25, 284.85, 219.75], "category_id": 62, "id": 1945079}, {"segmentation": [[176.38, 275.29, 173.35, 229.09, 169.9, 200.6, 181.13, 198.87, 192.78, 194.55, 201.42, 194.99, 209.19, 197.15, 216.09, 196.28, 219.12, 216.57, 229.48, 223.48, 244.16, 224.78, 244.16, 232.55, 248.91, 238.16, 247.61, 245.93, 235.09, 245.07, 233.8, 244.63, 223.87, 262.34, 217.82, 260.61, 215.23, 262.34, 209.19, 261.9, 204.01, 260.61, 199.69, 262.34, 200.98, 284.35, 195.8, 283.49, 195.8, 277.01, 178.97, 268.81, 179.4, 275.72]], "area": 4066.5735499999996, "iscrowd": 0, "image_id": 195211, "bbox": [169.9, 194.55, 79.01, 89.8], "category_id": 62, "id": 1945188}, {"segmentation": [[261.56, 272.11, 264.45, 126.82, 430.9, 144.14, 417.44, 300.0, 261.56, 274.03]], "area": 24601.860549999998, "iscrowd": 0, "image_id": 364205, "bbox": [261.56, 126.82, 169.34, 173.18], "category_id": 72, "id": 1969237}, {"segmentation": [[371.69, 288.67, 408.19, 316.32, 392.71, 400.4, 347.35, 420.31, 292.04, 419.2, 269.92, 379.38, 346.25, 353.93]], "area": 9008.343799999997, "iscrowd": 0, "image_id": 245295, "bbox": [269.92, 288.67, 138.27, 131.64], "category_id": 73, "id": 1970651}, {"segmentation": [[283.21, 204.38, 288.16, 211.56, 287.17, 216.01, 274.3, 246.21, 269.6, 246.46, 263.16, 247.94, 260.44, 248.44, 253.02, 242.5, 265.89, 240.02, 281.73, 205.12]], "area": 469.23305000000033, "iscrowd": 0, "image_id": 245295, "bbox": [253.02, 204.38, 35.14, 44.06], "category_id": 73, "id": 1971026}, {"segmentation": [[528.33, 324.0, 526.99, 331.41, 590.95, 401.43, 629.33, 426.34, 638.08, 425.0, 638.08, 357.66, 595.66, 379.21, 532.37, 324.0]], "area": 3415.56415, "iscrowd": 0, "image_id": 245295, "bbox": [526.99, 324.0, 111.09, 102.34], "category_id": 73, "id": 1971249}, {"segmentation": [[87.28, 318.55, 138.56, 354.44, 301.79, 339.06, 358.19, 236.5, 171.89, 227.96, 151.38, 296.33, 139.41, 328.8, 124.03, 326.24, 112.92, 318.55, 103.52, 315.98, 86.43, 318.55]], "area": 20951.163700000005, "iscrowd": 0, "image_id": 209041, "bbox": [86.43, 227.96, 271.76, 126.48], "category_id": 73, "id": 1971393}, {"segmentation": [[420.01, 356.5, 408.62, 363.11, 407.94, 365.62, 407.48, 369.26, 407.03, 376.55, 407.94, 381.79, 414.77, 386.8, 420.92, 386.58, 428.21, 382.93, 434.59, 376.55, 439.15, 371.77, 444.39, 366.3, 445.3, 361.29, 439.61, 357.87, 436.64, 356.73, 427.08, 355.14, 421.38, 356.05, 420.01, 356.5]], "area": 838.7997999999999, "iscrowd": 0, "image_id": 364205, "bbox": [407.03, 355.14, 38.27, 31.66], "category_id": 74, "id": 1971795}, {"segmentation": [[440.79, 226.26, 438.47, 220.74, 439.19, 215.41, 442.57, 209.89, 448.79, 209.53, 454.13, 212.56, 456.98, 219.5, 456.98, 225.9, 455.2, 231.06, 452.17, 236.22, 447.9, 236.58, 445.59, 232.84, 443.46, 227.68, 441.68, 226.79]], "area": 358.4580500000004, "iscrowd": 0, "image_id": 485740, "bbox": [438.47, 209.53, 18.51, 27.05], "category_id": 1, "id": 2002107}, {"segmentation": [[18.86, 296.77, 19.38, 296.6, 22.28, 292.15, 22.63, 289.41, 23.14, 291.12, 23.82, 295.23, 23.82, 296.43, 26.39, 297.45, 26.9, 295.23, 26.39, 288.73, 26.05, 285.31, 26.22, 282.4, 25.71, 277.78, 29.64, 275.56, 31.18, 274.36, 29.3, 271.62, 27.42, 270.42, 25.53, 269.4, 23.65, 269.4, 20.57, 270.25, 18.01, 272.99, 18.69, 278.81, 19.2, 284.45, 19.72, 286.5, 19.55, 289.75, 18.69, 292.32, 17.66, 294.89, 17.66, 296.26]], "area": 209.13930000000002, "iscrowd": 0, "image_id": 574487, "bbox": [17.66, 269.4, 13.52, 28.05], "category_id": 1, "id": 2002431}, {"segmentation": [[34.67, 27.56, 34.67, 20.22, 40.96, 17.07, 43.06, 16.55, 48.83, 22.32, 48.83, 25.99, 49.36, 27.56, 55.13, 28.61, 58.28, 32.28, 65.1, 39.63, 68.77, 49.07, 71.39, 56.94, 72.44, 63.24, 66.15, 67.43, 63.0, 70.58, 66.67, 81.08, 66.67, 97.86, 56.18, 95.76, 53.55, 95.24, 51.98, 95.24, 51.46, 87.9, 49.88, 77.93, 47.78, 73.21, 47.78, 71.11, 45.16, 70.58, 35.72, 70.58, 35.72, 72.68, 35.72, 76.35, 30.47, 76.88, 26.8, 75.83, 27.85, 81.6, 31.52, 91.04, 35.72, 96.81, 19.98, 96.81, 16.31, 84.22, 12.11, 74.78, 12.11, 72.16, 12.11, 71.11, 16.83, 67.96, 24.7, 63.76, 28.9, 62.19, 29.42, 55.37, 29.42, 48.55, 29.42, 43.3, 29.42, 34.91, 32.04, 31.76, 34.14, 30.19]], "area": 2577.7855, "iscrowd": 0, "image_id": 431660, "bbox": [12.11, 16.55, 60.33, 81.31], "category_id": 1, "id": 2004543}, {"segmentation": [[174.58, 10.74, 169.97, 19.3, 169.32, 28.52, 174.91, 33.79, 179.19, 38.07, 180.51, 51.89, 182.48, 56.17, 211.12, 54.2, 209.15, 37.08, 207.5, 32.47, 207.17, 25.56, 207.17, 21.28, 202.89, 12.06]], "area": 1438.5181499999999, "iscrowd": 0, "image_id": 347688, "bbox": [169.32, 10.74, 41.8, 45.43], "category_id": 1, "id": 2010043}, {"segmentation": [[387.22, 296.74, 389.15, 297.03, 389.06, 290.76, 388.77, 287.87, 388.67, 286.42, 387.61, 285.55, 387.51, 284.1, 386.26, 282.66, 384.81, 283.62, 384.81, 285.94, 385.78, 287.09, 385.78, 290.08, 385.87, 295.0, 386.64, 296.74]], "area": 41.69429999999998, "iscrowd": 0, "image_id": 386012, "bbox": [384.81, 282.66, 4.34, 14.37], "category_id": 1, "id": 2011740}, {"segmentation": [[347.62, 80.7, 343.16, 63.73, 339.58, 30.68, 342.26, 28.9, 342.26, 19.07, 359.23, 12.82, 377.1, 20.86, 370.84, 34.26, 370.84, 66.41, 371.74, 75.34, 355.66, 79.81]], "area": 1841.112449999999, "iscrowd": 0, "image_id": 347688, "bbox": [339.58, 12.82, 37.52, 67.88], "category_id": 1, "id": 2014408}, {"segmentation": [[315.66, 119.91, 320.87, 108.0, 317.89, 99.08, 313.8, 94.99, 310.82, 91.64, 310.08, 84.57, 305.99, 78.62, 302.64, 77.13, 297.8, 81.6, 298.18, 85.69, 299.29, 93.5, 299.29, 98.33, 292.6, 106.52, 291.85, 117.3, 291.48, 120.28, 300.78, 117.3, 310.45, 116.56]], "area": 735.8673499999993, "iscrowd": 0, "image_id": 503293, "bbox": [291.48, 77.13, 29.39, 43.15], "category_id": 1, "id": 2017857}, {"segmentation": [[579.04, 262.74, 579.19, 263.48, 581.13, 263.41, 580.76, 261.84, 578.97, 261.99]], "area": 2.916250000000045, "iscrowd": 0, "image_id": 386012, "bbox": [578.97, 261.84, 2.16, 1.64], "category_id": 1, "id": 2018521}, {"segmentation": [[44.72, 190.91, 45.1, 189.19, 41.85, 187.66, 39.93, 183.64, 39.55, 177.32, 40.89, 172.73, 44.33, 170.82, 48.93, 170.24, 47.01, 167.94, 46.25, 164.88, 47.59, 161.06, 49.88, 159.52, 52.37, 160.67, 54.86, 164.5, 55.82, 168.14, 54.09, 171.77, 58.11, 171.2, 61.75, 173.3, 65.19, 177.51, 68.25, 183.06, 69.98, 187.46, 70.17, 188.61, 69.21, 189.95, 68.06, 190.33, 63.47, 188.04, 60.03, 189.19, 55.05, 190.53, 51.99, 191.87, 50.46, 194.74, 48.54, 192.44, 46.63, 190.72]], "area": 570.1892, "iscrowd": 0, "image_id": 514049, "bbox": [39.55, 159.52, 30.62, 35.22], "category_id": 1, "id": 2022905}, {"segmentation": [[535.21, 223.35, 534.57, 218.57, 544.77, 213.79, 555.28, 210.92, 566.75, 200.09, 602.11, 196.27, 614.22, 202.96, 616.77, 214.43, 609.44, 216.66, 609.12, 221.76, 600.2, 225.9, 594.79, 222.39, 593.51, 221.76, 557.83, 225.58, 554.01, 230.36, 547.0, 230.99, 543.81, 226.53, 536.17, 227.17, 534.89, 223.35]], "area": 1681.9283500000006, "iscrowd": 0, "image_id": 364205, "bbox": [534.57, 196.27, 82.2, 34.72], "category_id": 3, "id": 2037224}, {"segmentation": [[421.54, 63.12, 425.56, 62.45, 427.57, 62.62, 430.59, 61.61, 429.08, 51.88, 425.23, 52.39, 420.03, 53.06, 417.18, 54.06, 416.0, 54.57], [419.19, 63.96, 414.66, 64.46, 411.98, 64.63, 409.46, 61.61, 408.29, 57.92, 415.16, 55.57]], "area": 176.51549999999972, "iscrowd": 0, "image_id": 58949, "bbox": [408.29, 51.88, 22.3, 12.75], "category_id": 3, "id": 2041268}, {"segmentation": [[583.73, 245.34, 583.27, 251.07, 578.92, 251.29, 579.84, 261.14, 584.42, 260.91, 585.1, 278.3, 551.68, 278.76, 550.08, 276.7, 536.35, 276.24, 535.43, 246.49, 537.95, 244.66, 582.59, 244.43]], "area": 1566.9864, "iscrowd": 0, "image_id": 574487, "bbox": [535.43, 244.43, 49.67, 34.33], "category_id": 6, "id": 2050411}, {"segmentation": [[201.28, 179.75, 209.48, 178.91, 217.67, 179.12, 228.39, 178.06, 245.2, 178.06, 254.87, 184.79, 258.65, 188.78, 260.75, 196.14, 260.96, 200.34, 258.86, 202.86, 230.49, 200.34, 208.01, 197.61, 197.29, 199.29, 193.51, 199.92, 190.78, 196.98, 189.72, 191.93, 188.25, 181.43, 200.23, 180.8]], "area": 1410.3291500000005, "iscrowd": 0, "image_id": 485740, "bbox": [188.25, 178.06, 72.71, 24.8], "category_id": 8, "id": 2051285}, {"segmentation": [[461.06, 126.92, 461.34, 159.45, 455.45, 161.41, 450.97, 159.45, 450.41, 156.08, 442.27, 154.96, 442.27, 153.28, 450.41, 150.47, 450.69, 144.02, 441.71, 142.9, 440.87, 139.54, 450.97, 138.13, 449.84, 132.53, 440.87, 131.12, 441.15, 128.04, 452.93, 125.51, 456.57, 125.51]], "area": 487.1589999999997, "iscrowd": 0, "image_id": 485740, "bbox": [440.87, 125.51, 20.47, 35.9], "category_id": 10, "id": 2056989}, {"segmentation": [[162.17, 48.92, 168.7, 46.07, 172.77, 48.11, 178.48, 46.48, 185.0, 45.26, 192.75, 47.29, 196.01, 50.96, 196.01, 56.26, 192.75, 62.38, 193.97, 116.61, 166.66, 117.42, 163.39, 116.2]], "area": 2172.8666000000007, "iscrowd": 0, "image_id": 485740, "bbox": [162.17, 45.26, 33.84, 72.16], "category_id": 10, "id": 2058365}, {"segmentation": [[358.5, 279.7, 370.24, 279.81, 370.36, 287.6, 358.04, 287.95, 358.27, 280.28]], "area": 97.27555000000022, "iscrowd": 0, "image_id": 254711, "bbox": [358.04, 279.7, 12.32, 8.25], "category_id": 15, "id": 2061945}, {"segmentation": [[357.58, 275.24, 395.67, 275.58, 395.67, 278.28, 357.75, 278.28]], "area": 109.05989999999915, "iscrowd": 0, "image_id": 254711, "bbox": [357.58, 275.24, 38.09, 3.04], "category_id": 15, "id": 2062292}, {"segmentation": [[177.19, 191.81, 177.83, 199.95, 180.76, 199.5, 183.78, 197.48, 183.5, 192.82, 183.96, 189.89, 184.05, 187.7, 182.31, 185.5, 180.57, 184.59, 179.38, 185.13, 177.01, 187.24, 175.82, 186.23, 174.99, 183.67, 174.08, 181.11, 173.62, 178.92, 172.89, 178.0, 172.07, 176.63, 171.7, 175.62, 166.31, 159.71, 165.12, 158.52, 164.38, 157.33, 157.71, 152.21, 156.88, 152.57, 159.45, 154.31, 161.55, 157.33, 163.2, 160.62, 165.66, 164.56, 166.95, 167.39, 167.86, 169.86, 168.41, 171.05, 171.43, 180.74, 173.9, 184.68, 174.63, 186.42, 173.62, 187.6, 172.71, 188.34, 172.16, 188.7, 172.62, 189.34, 173.26, 192.18, 176.46, 192.18]], "area": 182.04229999999995, "iscrowd": 0, "image_id": 485740, "bbox": [156.88, 152.21, 27.17, 47.74], "category_id": 31, "id": 2076556}, {"segmentation": [[365.66, 87.56, 296.57, 66.22, 281.64, 62.94, 273.92, 60.48, 274.58, 58.35, 281.8, 60.97, 331.2, 73.94, 366.65, 85.92]], "area": 203.02869999999976, "iscrowd": 0, "image_id": 574487, "bbox": [273.92, 58.35, 92.73, 29.21], "category_id": 38, "id": 2089605}, {"segmentation": [[1.74, 331.07, 497.27, 326.71, 500.0, 3.05, 4.36, 0.44]], "area": 162125.8142, "iscrowd": 0, "image_id": 115241, "bbox": [1.74, 0.44, 498.26, 330.63], "category_id": 67, "id": 2133462}, {"segmentation": [[36.57, 126.68, 35.32, 186.05, 40.66, 183.85, 39.72, 123.85, 36.89, 123.85]], "area": 256.97744999999986, "iscrowd": 0, "image_id": 209041, "bbox": [35.32, 123.85, 5.34, 62.2], "category_id": 84, "id": 2144057}, {"segmentation": [[269.06, 146.28, 265.14, 142.6, 268.28, 141.45, 270.81, 143.62]], "area": 13.295250000000054, "iscrowd": 0, "image_id": 245295, "bbox": [265.14, 141.45, 5.67, 4.83], "category_id": 85, "id": 2145158}, {"segmentation": [[304.55, 232.24, 304.55, 227.29, 306.58, 225.49, 314.46, 220.76, 312.88, 217.38, 311.98, 214.68, 311.08, 211.07, 310.63, 209.27, 311.53, 205.22, 315.36, 202.06, 322.12, 203.19, 325.04, 207.02, 326.4, 212.65, 326.4, 217.15, 327.52, 220.08, 335.41, 223.69, 339.23, 227.52, 338.11, 233.82]], "area": 609.9406500000001, "iscrowd": 0, "image_id": 503293, "bbox": [304.55, 202.06, 34.68, 31.76], "category_id": 1, "id": 2158459}, {"segmentation": [[551.46, 334.26, 581.83, 329.97, 581.83, 327.11, 585.4, 325.68, 583.98, 322.11, 580.76, 321.04, 582.9, 319.25, 584.33, 318.54, 584.69, 313.54, 590.41, 308.53, 602.2, 307.46, 611.49, 313.54, 613.27, 320.32, 613.27, 321.4, 610.77, 325.33, 608.27, 326.04, 612.56, 327.47, 626.14, 334.97, 637.93, 339.62, 640.0, 339.62, 639.71, 400.71, 639.0, 413.58, 633.64, 416.79, 608.63, 410.36, 582.19, 379.28, 581.47, 370.7, 589.69, 363.91, 601.84, 362.84, 589.69, 347.48, 585.4, 351.77, 580.76, 351.41, 577.54, 344.26, 546.46, 345.69, 543.6, 353.91, 540.03, 358.2, 531.81, 362.48, 528.95, 357.12, 528.24, 351.41, 531.81, 344.26, 531.81, 339.62, 532.17, 333.9, 533.6, 332.11, 544.32, 333.19]], "area": 5427.537549999996, "iscrowd": 0, "image_id": 254711, "bbox": [528.24, 307.46, 111.76, 109.33], "category_id": 1, "id": 2159404}, {"segmentation": [[120.26, 201.03, 118.21, 215.88, 117.53, 240.97, 114.28, 270.67, 113.6, 276.3, 108.65, 292.51, 107.28, 310.43, 106.09, 334.67, 106.43, 341.33, 108.82, 343.21, 113.09, 345.6, 119.4, 346.62, 134.59, 372.39, 137.84, 378.37, 148.76, 393.73, 155.42, 407.21, 159.85, 412.67, 163.95, 418.99, 163.78, 427.0, 211.57, 427.0, 228.55, 427.0, 220.61, 372.6, 218.81, 358.53, 212.91, 317.96, 212.69, 310.95, 208.75, 302.63, 207.87, 300.44, 210.5, 296.06, 210.94, 289.49, 209.62, 275.9, 219.7, 283.79, 223.64, 287.95, 227.15, 289.92, 236.13, 296.93, 240.51, 298.47, 241.6, 296.28, 240.07, 292.99, 236.57, 289.49, 234.59, 286.64, 235.47, 280.94, 240.73, 284.45, 242.48, 285.32, 244.67, 289.27, 246.64, 292.77, 247.96, 296.06, 249.49, 295.4, 251.46, 291.02, 253.21, 288.39, 254.31, 284.67, 252.47, 275.87, 283.19, 283.04, 290.19, 282.36, 301.63, 275.53, 306.07, 275.53, 309.14, 274.68, 310.16, 272.46, 308.11, 269.38, 305.04, 265.46, 296.17, 264.6, 295.83, 261.87, 287.8, 264.26, 277.56, 264.6, 251.96, 241.05, 244.45, 235.76, 236.26, 225.18, 233.36, 220.23, 220.9, 202.14, 218.68, 195.65, 205.88, 176.19, 198.88, 169.88, 194.95, 168.0, 202.29, 168.0, 207.58, 165.44, 212.19, 159.81, 216.63, 154.69, 217.82, 152.47, 223.11, 150.42, 223.97, 148.54, 221.41, 135.06, 223.97, 130.62, 224.82, 122.6, 224.65, 115.6, 221.41, 109.11, 215.95, 101.77, 212.53, 100.75, 204.51, 97.85, 194.95, 94.44, 186.42, 97.0, 177.2, 99.73, 172.93, 105.02, 170.03, 105.36, 162.98, 102.17, 151.73, 105.55, 143.86, 110.61, 149.2, 119.04, 155.95, 123.26, 161.86, 126.91, 159.04, 131.69, 156.51, 134.78, 155.39, 141.81, 154.83, 144.62, 153.47, 149.49, 137.5, 163.8, 129.82, 174.8, 124.09, 185.95, 120.79, 196.31, 119.88, 199.51, 119.97, 201.07]], "area": 32294.3746, "iscrowd": 0, "image_id": 245295, "bbox": [106.09, 94.44, 204.07, 332.56], "category_id": 1, "id": 2160756}, {"segmentation": [[211.12, 93.09, 199.48, 114.7, 177.87, 118.03, 179.53, 98.08, 192.83, 91.43, 199.48, 69.82, 207.79, 78.13]], "area": 848.4028499999998, "iscrowd": 0, "image_id": 503293, "bbox": [177.87, 69.82, 33.25, 48.21], "category_id": 1, "id": 2166051}, {"segmentation": [[249.51, 165.61, 244.28, 167.26, 242.04, 170.17, 241.88, 174.49, 241.8, 180.82, 243.33, 181.54, 243.57, 184.35, 249.17, 184.67, 257.02, 184.51, 259.67, 184.11, 260.07, 182.02, 261.59, 180.66, 264.56, 180.02, 263.59, 171.29, 262.15, 168.0, 260.39, 166.72, 257.51, 165.68, 257.26, 162.88, 257.43, 158.87, 255.82, 157.11, 254.22, 156.63, 251.9, 157.03, 249.81, 158.23, 249.57, 159.91, 249.09, 161.43, 249.09, 162.4, 249.01, 164.72, 249.73, 165.76]], "area": 440.01764999999966, "iscrowd": 0, "image_id": 514049, "bbox": [241.8, 156.63, 22.76, 28.04], "category_id": 1, "id": 2167723}, {"segmentation": [[475.45, 290.53, 480.87, 286.52, 485.82, 289.59, 485.82, 290.53, 475.45, 291.47], [498.08, 291.0, 499.26, 289.35, 507.75, 287.94, 505.62, 292.18], [463.19, 295.48, 464.14, 286.29, 468.14, 284.87, 467.44, 295.48]], "area": 91.65785000000024, "iscrowd": 0, "image_id": 254711, "bbox": [463.19, 284.87, 44.56, 10.61], "category_id": 15, "id": 2174003}, {"segmentation": [[306.66, 145.1, 299.57, 146.43, 298.02, 148.43, 297.36, 151.08, 303.78, 153.3, 312.64, 151.08, 313.3, 147.76, 309.76, 145.55]], "area": 93.58555000000014, "iscrowd": 0, "image_id": 58949, "bbox": [297.36, 145.1, 15.94, 8.2], "category_id": 40, "id": 2180871}, {"segmentation": [[465.59, 278.08, 465.05, 272.15, 465.32, 271.07, 468.29, 273.77, 468.02, 277.0]], "area": 14.916150000000044, "iscrowd": 0, "image_id": 386012, "bbox": [465.05, 271.07, 3.24, 7.01], "category_id": 1, "id": 2207387}, {"segmentation": [[311.73, 247.9, 314.23, 239.49, 316.44, 230.65, 318.21, 230.94, 320.13, 235.66, 321.16, 240.67, 321.46, 241.56, 326.47, 240.82, 326.32, 235.81, 328.24, 235.22, 328.68, 239.05, 327.35, 242.59, 322.19, 247.16, 318.51, 249.66, 317.18, 254.23, 315.12, 257.77, 314.23, 257.48, 312.17, 249.81], [323.23, 255.86, 328.83, 251.43, 335.02, 250.84, 339.0, 256.3, 337.08, 262.05, 331.19, 263.08, 327.35, 262.78, 322.93, 256.15]], "area": 329.42234999999914, "iscrowd": 0, "image_id": 471273, "bbox": [311.73, 230.65, 27.27, 32.43], "category_id": 2, "id": 2208256}, {"segmentation": [[29.63, 471.7, 16.59, 138.67, 33.19, 138.67, 42.67, 1.19, 558.22, 45.04, 590.22, 474.07]], "area": 245886.6579, "iscrowd": 0, "image_id": 506515, "bbox": [16.59, 1.19, 573.63, 472.88], "category_id": 72, "id": 2227429}, {"segmentation": [[121.16, 318.12, 101.66, 341.1, 71.71, 341.1, 66.14, 332.74, 56.39, 328.56, 31.31, 336.22, 11.81, 339.01, 0.0, 339.01, 0.0, 247.77, 38.97, 224.79, 62.65, 224.09, 70.32, 217.12, 77.28, 209.46, 94.0, 210.16, 105.84, 224.79, 143.45, 222.0, 155.98, 224.09, 160.16, 240.8, 170.61, 263.09, 174.79, 282.59, 165.73, 301.4, 142.05, 317.42, 126.03, 320.9]], "area": 17585.031000000003, "iscrowd": 0, "image_id": 195211, "bbox": [0.0, 209.46, 174.79, 131.64], "category_id": 63, "id": 2231445}, {"segmentation": [[461.3, 314.18, 507.43, 354.08, 523.64, 370.29, 513.66, 467.53, 512.42, 472.52, 470.03, 473.77, 471.27, 446.34, 270.55, 472.52, 256.83, 408.94, 196.99, 402.7, 192.0, 355.32, 187.01, 345.35, 157.09, 345.35, 89.77, 341.61, 59.84, 332.88, 47.38, 351.58, 58.6, 398.96, 29.92, 400.21, 4.99, 401.45, 3.74, 339.12, 18.7, 327.9, 59.84, 331.64, 73.56, 332.88, 102.23, 340.36, 144.62, 334.13, 228.16, 335.38, 304.21, 324.16, 356.57, 316.68, 408.94, 311.69, 447.58, 305.45], [64.83, 350.34, 68.57, 377.77, 139.64, 377.77, 180.78, 385.25, 179.53, 360.31]], "area": 47844.137249999985, "iscrowd": 0, "image_id": 195211, "bbox": [3.74, 305.45, 519.9, 168.32], "category_id": 63, "id": 2231471}, {"segmentation": [[273.97, 322.28, 276.67, 319.59, 281.16, 319.59, 286.1, 322.28, 284.75, 330.37, 292.84, 338.46, 291.94, 404.96, 287.0, 407.2, 272.62, 409.0, 267.23, 404.96, 264.09, 400.91, 264.98, 344.75, 266.33, 338.46, 273.52, 329.92]], "area": 2173.552649999999, "iscrowd": 0, "image_id": 507154, "bbox": [264.09, 319.59, 28.75, 89.41], "category_id": 44, "id": 85000}, {"segmentation": [[239.28, 136.33, 239.19, 146.08, 236.76, 149.48, 235.75, 150.4, 236.04, 170.7, 236.25, 173.43, 246.0, 173.26, 246.71, 173.05, 246.67, 148.98, 243.1, 146.46, 242.8, 146.62, 242.09, 136.24, 239.61, 136.24]], "area": 311.46615, "iscrowd": 0, "image_id": 458137, "bbox": [235.75, 136.24, 10.96, 37.19], "category_id": 44, "id": 85031}, {"segmentation": [[403.96, 269.51, 404.19, 222.39, 404.42, 215.93, 410.65, 205.3, 416.2, 199.53, 416.2, 196.99, 414.58, 194.91, 415.97, 189.37, 424.51, 188.67, 425.9, 193.99, 425.2, 198.6, 431.67, 207.84, 434.21, 213.16, 436.06, 227.25, 435.83, 256.12, 432.37, 271.59, 423.82, 272.29, 414.58, 271.13]], "area": 2183.2104, "iscrowd": 0, "image_id": 285568, "bbox": [403.96, 188.67, 32.1, 83.62], "category_id": 44, "id": 85455}, {"segmentation": [[16.66, 387.99, 25.47, 378.19, 25.47, 347.82, 25.47, 304.71, 20.58, 209.67, 19.6, 173.42, 1.96, 141.09, 0.98, 180.28, 9.8, 180.28, 10.78, 188.12, 12.74, 241.02]], "area": 2422.2026, "iscrowd": 0, "image_id": 260150, "bbox": [0.98, 141.09, 24.49, 246.9], "category_id": 44, "id": 85839}, {"segmentation": [[410.19, 138.07, 418.17, 141.0, 418.88, 143.39, 418.43, 146.94, 416.84, 148.26, 414.54, 149.15, 400.0, 142.95, 398.67, 142.06, 397.79, 139.85, 397.7, 137.01, 391.32, 136.66, 391.14, 135.24, 392.12, 133.55, 393.09, 133.55, 397.52, 135.33, 397.43, 136.12, 398.23, 136.21, 399.56, 135.41, 400.45, 134.97, 402.66, 135.06, 405.59, 135.95, 407.53, 137.45, 407.27, 139.05, 407.27, 140.11, 408.78, 141.18, 409.75, 139.31, 410.1, 138.16]], "area": 186.1100999999996, "iscrowd": 0, "image_id": 458137, "bbox": [391.14, 133.55, 27.74, 15.6], "category_id": 44, "id": 87064}, {"segmentation": [[259.28, 164.88, 260.44, 165.4, 261.48, 165.79, 262.26, 166.18, 261.87, 167.86, 260.83, 168.5, 260.19, 169.15, 258.51, 169.54, 257.99, 173.93, 257.99, 177.68, 257.99, 178.85, 259.67, 179.88, 260.96, 179.88, 262.38, 180.01, 264.07, 179.88, 265.88, 179.75, 267.56, 179.49, 268.2, 179.49, 268.07, 174.58, 267.94, 169.8, 268.2, 167.73, 268.98, 165.79, 268.98, 164.11, 269.37, 159.32, 269.37, 156.99, 268.07, 155.06, 267.17, 153.76, 267.17, 152.47, 267.17, 152.47, 267.17, 151.05, 265.36, 150.66, 263.55, 150.79, 262.77, 151.31, 262.38, 152.47, 262.38, 153.24, 262.38, 154.28, 262.26, 154.8, 261.35, 155.7, 260.44, 156.22, 259.93, 156.99, 259.41, 157.9, 259.28, 159.19, 259.15, 161.26, 259.15, 162.56, 259.15, 164.11, 259.15, 165.14]], "area": 249.89165000000017, "iscrowd": 0, "image_id": 507154, "bbox": [257.99, 150.66, 11.38, 29.35], "category_id": 44, "id": 89432}, {"segmentation": [[463.16, 270.01, 460.02, 236.76, 461.36, 226.43, 463.61, 219.69, 469.0, 215.65, 472.6, 214.3, 472.6, 210.25, 471.25, 194.98, 475.74, 194.98, 479.34, 208.91, 479.34, 216.54, 480.69, 235.42, 478.44, 271.81, 476.64, 277.65, 463.16, 272.71, 463.16, 267.77]], "area": 1176.8244999999984, "iscrowd": 0, "image_id": 285568, "bbox": [460.02, 194.98, 20.67, 82.67], "category_id": 44, "id": 90115}, {"segmentation": [[458.32, 192.45, 457.61, 198.32, 458.08, 202.78, 457.61, 209.23, 453.62, 212.16, 452.8, 217.32, 452.68, 239.37, 460.19, 239.73, 460.78, 233.98, 462.77, 223.07, 463.95, 219.55, 466.17, 217.09, 468.05, 214.62, 467.82, 212.16, 464.65, 209.7, 463.95, 205.83, 463.59, 200.08, 463.59, 195.86, 462.42, 194.21, 461.6, 191.63, 457.96, 192.1]], "area": 407.92279999999914, "iscrowd": 0, "image_id": 285568, "bbox": [452.68, 191.63, 15.37, 48.1], "category_id": 44, "id": 90462}, {"segmentation": [[243.35, 145.66, 242.91, 147.41, 245.32, 152.43, 245.21, 162.71, 235.81, 163.36, 236.47, 152.22, 237.34, 149.05, 239.64, 147.74, 238.87, 144.9, 241.28, 144.02, 243.35, 145.22]], "area": 141.68195, "iscrowd": 0, "image_id": 507154, "bbox": [235.81, 144.02, 9.51, 19.34], "category_id": 44, "id": 90918}, {"segmentation": [[96.93, 210.99, 97.07, 206.62, 101.38, 206.54, 101.38, 210.69, 104.64, 210.99, 104.42, 215.51, 101.87, 215.46, 101.96, 219.81, 106.17, 221.77, 107.42, 223.02, 108.75, 240.84, 109.42, 254.16, 109.68, 257.68, 107.13, 259.63, 109.04, 264.27, 107.95, 265.63, 108.5, 283.09, 92.4, 283.63, 91.58, 279.54, 91.04, 256.08, 90.85, 230.35, 91.08, 224.11, 97.32, 219.72, 97.33, 216.07, 94.57, 216.03, 94.86, 211.62, 96.63, 211.41]], "area": 1159.8558999999996, "iscrowd": 0, "image_id": 285568, "bbox": [90.85, 206.54, 18.83, 77.09], "category_id": 44, "id": 91406}, {"segmentation": [[132.58, 259.36, 147.19, 263.86, 164.04, 267.23, 169.66, 269.48, 178.65, 273.97, 194.38, 285.21, 213.48, 295.32, 215.73, 298.69, 228.09, 305.43, 230.34, 308.8, 232.58, 317.79, 237.08, 329.03, 243.82, 339.14, 256.18, 334.64, 260.67, 321.16, 260.67, 313.3, 268.54, 315.54, 267.42, 340.26, 261.8, 354.87, 258.43, 371.72, 260.67, 384.08, 296.63, 402.06, 301.12, 396.44, 293.26, 388.58, 291.01, 380.71, 286.52, 364.98, 308.99, 309.93, 312.36, 293.07, 296.63, 284.08, 284.27, 275.09, 275.28, 270.6, 274.16, 269.48, 269.66, 269.48, 268.54, 259.36, 259.55, 252.62, 250.56, 251.5, 240.45, 239.14, 251.69, 233.52, 252.81, 230.15, 247.19, 225.66, 242.7, 217.79, 256.18, 221.16, 260.67, 224.53, 280.9, 230.15, 296.63, 225.66, 308.99, 233.52, 316.85, 236.89, 320.22, 236.89, 324.72, 234.64, 329.21, 230.15, 329.21, 218.91, 338.2, 209.93, 351.69, 209.93, 343.82, 216.67, 337.08, 222.28, 329.21, 240.26, 329.21, 243.63, 338.2, 249.25, 350.56, 252.62, 332.58, 253.75, 315.73, 255.99, 310.11, 266.1, 334.83, 267.23, 360.67, 271.72, 366.29, 282.96, 366.29, 289.7, 362.92, 302.06, 357.3, 308.8, 331.46, 308.8, 342.7, 315.54, 350.56, 322.28, 355.06, 339.14, 360.67, 393.07, 350.56, 411.05, 332.58, 426.78, 324.72, 426.78, 305.62, 423.41, 298.88, 408.8, 292.13, 409.93, 273.03, 409.93, 266.29, 413.3, 252.81, 413.3, 206.74, 411.05, 179.78, 425.66, 159.55, 434.64, 133.71, 438.01, 124.72, 438.01, 113.48, 409.93, 105.62, 377.34, 101.12, 363.86, 95.51, 355.99, 96.63, 338.01, 100.0, 329.03, 105.62, 308.8, 114.61, 302.06, 114.61, 295.32, 114.61, 273.97, 119.1, 262.73]], "area": 33934.33090000001, "iscrowd": 0, "image_id": 445041, "bbox": [95.51, 209.93, 270.78, 228.08], "category_id": 4, "id": 147880}, {"segmentation": [[199.78, 119.6, 200.86, 141.2, 200.86, 152.0, 188.98, 159.56, 177.11, 167.12, 172.79, 211.39, 163.07, 249.19, 163.07, 264.31, 166.31, 277.27, 219.22, 296.71, 251.62, 293.47, 281.86, 309.67, 262.42, 358.26, 253.78, 385.26, 257.02, 397.14, 300.22, 400.38, 294.82, 386.34, 289.42, 375.54, 303.46, 331.26, 308.86, 305.35, 317.49, 286.99, 259.18, 265.39, 242.98, 250.27, 246.22, 221.11, 247.3, 210.31, 274.3, 216.79, 294.82, 215.71, 274.3, 161.72, 263.5, 145.52, 253.78, 132.56, 247.3, 119.6, 241.9, 103.4, 231.1, 94.76, 217.06, 96.92, 208.42, 99.08, 199.78, 107.72, 199.78, 120.68]], "area": 20343.2257, "iscrowd": 0, "image_id": 445041, "bbox": [163.07, 94.76, 154.42, 305.62], "category_id": 1, "id": 188959}, {"segmentation": [[435.74, 164.92, 438.67, 141.43, 439.65, 133.6, 440.63, 126.75, 450.42, 121.85, 447.48, 115.98, 452.38, 111.08, 459.23, 110.11, 466.08, 114.02, 464.12, 122.83, 475.87, 134.58, 481.74, 141.43, 480.76, 150.24, 475.87, 153.17, 475.87, 165.9, 479.78, 171.77, 481.74, 218.76, 459.14, 214.2, 459.14, 205.69, 460.21, 193.99, 460.21, 182.29]], "area": 3018.4210999999987, "iscrowd": 0, "image_id": 445041, "bbox": [435.74, 110.11, 46.0, 108.65], "category_id": 1, "id": 214406}, {"segmentation": [[311.85, 90.07, 316.78, 97.28, 341.44, 106.0, 374.07, 106.0, 402.52, 109.42, 422.63, 107.14, 439.32, 108.66, 468.15, 110.18, 480.29, 110.18, 481.81, 102.21, 458.67, 90.07, 407.07, 72.62, 404.42, 71.1, 382.41, 76.04, 317.54, 87.04, 311.09, 89.31]], "area": 4101.481199999999, "iscrowd": 0, "image_id": 445041, "bbox": [311.09, 71.1, 170.72, 39.08], "category_id": 28, "id": 281009}, {"segmentation": [[334.53, 262.95, 325.15, 264.88, 318.73, 264.11, 328.23, 253.31, 329.13, 249.2, 330.55, 247.4, 340.44, 247.15, 332.73, 255.11, 331.96, 257.55]], "area": 156.31424999999962, "iscrowd": 0, "image_id": 378204, "bbox": [318.73, 247.15, 21.71, 17.73], "category_id": 77, "id": 323072}, {"segmentation": [[339.53, 231.0, 346.28, 224.24, 342.91, 197.21, 345.44, 162.58, 370.78, 156.67, 389.36, 163.43, 391.89, 202.28, 390.2, 235.22, 391.89, 243.67, 379.22, 238.6, 377.53, 231.0, 358.95, 231.0, 350.51, 234.38, 350.51, 238.6, 344.59, 231.84], [349.66, 235.22, 344.59, 247.04, 345.44, 252.96, 364.86, 257.18, 389.36, 270.69, 391.89, 266.47, 375.0, 257.18, 364.02, 251.27, 358.95, 247.89, 350.51, 241.13, 348.82, 241.13], [348.82, 274.92, 369.93, 279.98, 380.91, 290.12, 371.62, 285.9, 360.64, 282.52, 353.89, 281.67, 351.35, 280.83, 352.2, 275.76]], "area": 3935.000999999998, "iscrowd": 0, "image_id": 22341, "bbox": [339.53, 156.67, 52.36, 133.45], "category_id": 77, "id": 324154}, {"segmentation": [[359.19, 417.44, 273.98, 30.2, 278.29, 14.02, 284.76, 5.39, 288.0, 0.0, 454.11, 1.08, 457.35, 9.71, 459.51, 16.18, 531.78, 357.03, 531.78, 363.51, 531.78, 369.98, 531.78, 373.21, 518.83, 386.16, 513.44, 390.47, 376.45, 426.07, 371.06, 421.75]], "area": 75488.11464999999, "iscrowd": 0, "image_id": 220699, "bbox": [273.98, 0.0, 257.8, 426.07], "category_id": 77, "id": 325715}, {"segmentation": [[361.97, 321.09, 333.68, 309.42, 327.32, 298.46, 329.79, 285.73, 331.56, 282.54, 373.65, 240.1, 422.8, 211.81, 480.1, 221.36, 492.12, 227.73, 494.24, 238.69, 496.01, 244.35, 496.01, 246.47, 497.78, 255.31, 482.93, 263.8, 464.89, 283.96, 375.41, 294.92, 366.57, 296.34, 365.87, 309.42, 365.87, 318.26], [502.19, 231.46, 504.96, 230.48, 507.53, 233.04, 509.9, 235.42, 509.9, 238.58, 507.92, 242.13, 505.16, 246.08]], "area": 9881.899650000001, "iscrowd": 0, "image_id": 30210, "bbox": [327.32, 211.81, 182.58, 109.28], "category_id": 77, "id": 326968}, {"segmentation": [[304.65, 158.59, 302.95, 162.0, 305.6, 167.11, 309.57, 169.0, 309.57, 171.08, 318.84, 170.89, 321.49, 168.06, 321.87, 167.3, 312.03, 158.78, 309.57, 161.62, 308.25, 161.81]], "area": 140.01629999999986, "iscrowd": 0, "image_id": 171603, "bbox": [302.95, 158.59, 18.92, 12.49], "category_id": 77, "id": 327162}, {"segmentation": [[239.25, 151.49, 231.2, 147.63, 236.03, 135.08, 241.82, 135.08, 242.15, 127.99, 248.58, 129.6, 248.58, 134.75]], "area": 202.85135000000028, "iscrowd": 0, "image_id": 445041, "bbox": [231.2, 127.99, 17.38, 23.5], "category_id": 77, "id": 329727}, {"segmentation": [[485.39, 72.54, 640.0, 59.6, 640.0, 475.96, 480.0, 472.72]], "area": 64209.8416, "iscrowd": 0, "image_id": 285568, "bbox": [480.0, 59.6, 160.0, 416.36], "category_id": 82, "id": 333003}, {"segmentation": [[155.59, 111.28, 206.58, 82.51, 249.72, 75.98, 296.79, 75.98, 309.87, 96.9, 312.48, 109.97, 283.72, 140.04, 227.5, 167.5, 156.89, 174.04, 129.44, 164.88, 120.29, 143.96, 138.59, 123.04]], "area": 12591.728400000002, "iscrowd": 0, "image_id": 530571, "bbox": [120.29, 75.98, 192.19, 98.06], "category_id": 85, "id": 333905}, {"segmentation": [[151.08, 117.44, 145.38, 124.09, 141.57, 131.7, 143.47, 148.82, 143.47, 159.28, 149.18, 164.04, 158.69, 171.64, 161.54, 178.3, 173.91, 171.64, 176.76, 156.43, 175.81, 143.11, 174.86, 133.6, 170.1, 122.19, 162.49, 117.44]], "area": 1606.3522, "iscrowd": 0, "image_id": 254824, "bbox": [141.57, 117.44, 35.19, 60.86], "category_id": 85, "id": 334762}, {"segmentation": [[447.6, 409.17, 451.69, 407.53, 454.14, 404.26, 455.36, 399.56, 452.91, 395.48, 449.64, 394.86, 444.33, 394.66, 440.24, 398.13, 438.61, 401.81, 438.61, 405.29, 440.85, 408.56, 443.51, 409.78, 445.15, 409.78, 446.17, 409.78]], "area": 194.88054999999957, "iscrowd": 0, "image_id": 507154, "bbox": [438.61, 394.66, 16.75, 15.12], "category_id": 85, "id": 334909}, {"segmentation": [[293.22, 94.49, 308.88, 84.52, 323.11, 87.37, 328.09, 102.31, 323.11, 112.28, 310.3, 122.95, 296.78, 125.09, 286.1, 117.97, 282.55, 105.87, 293.22, 89.5]], "area": 1273.7362499999995, "iscrowd": 0, "image_id": 514271, "bbox": [282.55, 84.52, 45.54, 40.57], "category_id": 85, "id": 335930}, {"segmentation": [[394.32, 211.09, 398.65, 217.66, 409.03, 218.18, 416.12, 213.16, 416.47, 205.9, 415.95, 200.88, 410.07, 196.9, 404.01, 196.55, 397.61, 197.24, 394.32, 201.22]], "area": 409.7049500000001, "iscrowd": 0, "image_id": 356358, "bbox": [394.32, 196.55, 22.15, 21.63], "category_id": 85, "id": 336439}, {"segmentation": [[634.93, 170.62, 631.27, 172.15, 630.66, 179.16, 630.66, 190.75, 630.96, 202.95, 633.71, 207.22, 640.0, 207.52, 639.81, 173.37, 637.98, 171.54]], "area": 319.4061999999994, "iscrowd": 0, "image_id": 507154, "bbox": [630.66, 170.62, 9.34, 36.9], "category_id": 44, "id": 370831}, {"segmentation": [[31.77, 208.92, 31.46, 191.22, 31.77, 185.02, 32.7, 182.84, 35.49, 181.91, 44.19, 181.6, 44.5, 182.84, 44.5, 184.39, 45.74, 186.57, 46.05, 208.3, 44.19, 209.54, 40.77, 210.47, 36.11, 210.16]], "area": 391.1463999999999, "iscrowd": 0, "image_id": 285568, "bbox": [31.46, 181.6, 14.59, 28.87], "category_id": 44, "id": 371957}, {"segmentation": [[215.4, 9.43, 476.78, 6.21, 501.79, 39.28, 501.79, 51.38, 425.15, 55.42, 416.28, 36.86, 403.37, 17.5, 342.06, 19.92, 327.54, 55.42, 158.93, 55.42, 162.16, 11.05, 222.66, 10.24]], "area": 12598.362800000004, "iscrowd": 0, "image_id": 368142, "bbox": [158.93, 6.21, 342.86, 49.21], "category_id": 62, "id": 374760}, {"segmentation": [[593.15, 208.58, 593.15, 208.58, 598.46, 208.34, 599.67, 199.17, 602.8, 188.55, 603.04, 181.31, 620.42, 187.82, 631.77, 190.96, 631.52, 203.51, 636.83, 208.82, 639.97, 209.3, 640.0, 230.78, 638.76, 231.75, 626.46, 230.3, 603.09, 224.52, 591.43, 220.76]], "area": 1599.273450000001, "iscrowd": 0, "image_id": 507154, "bbox": [591.43, 181.31, 48.57, 50.44], "category_id": 67, "id": 391164}, {"segmentation": [[194.16, 151.01, 254.56, 144.54, 372.13, 256.72, 358.11, 283.69, 355.96, 294.47, 440.09, 322.52, 454.11, 328.99, 410.97, 349.48, 382.92, 359.19, 355.96, 373.21, 333.3, 373.21, 297.71, 360.27, 193.08, 371.06, 189.84, 307.42, 215.73, 278.29, 198.47, 215.73, 199.55, 182.29]], "area": 34054.3653, "iscrowd": 0, "image_id": 507154, "bbox": [189.84, 144.54, 264.27, 228.67], "category_id": 67, "id": 420798}, {"segmentation": [[158.72, 0.98, 128.35, 46.05, 111.69, 71.52, 58.79, 125.41, 11.76, 163.62, 19.6, 194.98, 22.53, 246.9, 36.25, 260.62, 60.75, 271.4, 76.42, 268.46, 83.28, 268.46, 106.8, 271.4, 196.93, 238.09, 200.85, 229.27, 199.87, 250.82, 305.69, 248.86, 381.13, 246.9, 442.86, 255.72, 493.81, 269.44, 558.47, 292.95, 567.29, 301.77, 583.95, 278.26, 600.6, 255.72, 589.82, 202.81, 574.15, 135.21, 577.09, 82.3, 568.27, 42.13, 546.71, 2.94]], "area": 131930.78705, "iscrowd": 0, "image_id": 260150, "bbox": [11.76, 0.98, 588.84, 300.79], "category_id": 1, "id": 434565}, {"segmentation": [[114.09, 370.89, 130.03, 292.03, 159.4, 271.05, 199.66, 266.02, 218.12, 260.99, 213.93, 240.01, 200.5, 236.66, 197.99, 224.91, 182.05, 224.07, 171.14, 204.78, 183.72, 198.07, 168.62, 198.07, 165.27, 177.93, 167.79, 160.32, 176.17, 146.89, 184.56, 139.34, 181.21, 130.11, 187.08, 112.5, 206.38, 107.46, 231.54, 97.4, 241.61, 99.91, 255.87, 109.98, 281.88, 106.62, 297.82, 106.62, 310.4, 116.69, 303.69, 127.6, 302.01, 128.44, 314.6, 130.95, 324.66, 132.63, 327.18, 145.22, 322.99, 151.93, 335.57, 160.32, 340.6, 169.54, 340.6, 179.61, 343.96, 191.36, 343.12, 198.91, 343.96, 205.62, 340.6, 213.17, 319.63, 223.24, 310.4, 229.11, 301.17, 237.5, 292.79, 245.89, 286.91, 250.08, 285.23, 255.95, 284.4, 262.66, 301.17, 268.54, 310.4, 276.09, 326.34, 286.99, 334.73, 289.51, 337.25, 287.83, 333.89, 281.12, 328.02, 270.22, 328.86, 262.66, 333.05, 255.11, 342.28, 250.92, 350.67, 250.92, 348.15, 238.34, 359.9, 231.62, 369.13, 232.46, 393.46, 239.18, 421.14, 266.02, 439.6, 332.3, 439.6, 365.85, 114.93, 369.21]], "area": 54212.78535, "iscrowd": 0, "image_id": 22341, "bbox": [114.09, 97.4, 325.51, 273.49], "category_id": 1, "id": 436842}, {"segmentation": [[140.72, 381.96, 131.15, 287.19, 145.51, 244.11, 139.77, 188.59, 149.34, 145.51, 167.53, 105.3, 183.8, 91.9, 203.91, 76.58, 208.69, 46.91, 236.45, 3.83, 292.93, 5.74, 314.95, 44.99, 315.91, 83.29, 304.42, 98.6, 314.95, 124.45, 329.31, 172.31, 347.5, 199.12, 375.26, 215.39, 384.84, 235.5, 374.31, 253.69, 346.54, 273.79, 316.87, 295.81, 310.17, 337.93, 320.7, 358.99, 315.91, 367.6, 281.45, 368.56, 229.75, 360.9, 179.97, 364.73, 166.57, 378.13]], "area": 60956.1115, "iscrowd": 0, "image_id": 399873, "bbox": [131.15, 3.83, 253.69, 378.13], "category_id": 1, "id": 438485}, {"segmentation": [[231.64, 102.19, 233.44, 93.67, 236.13, 89.63, 240.17, 87.39, 244.65, 86.94, 252.28, 89.18, 254.97, 93.22, 256.77, 99.95, 257.22, 105.78, 256.77, 113.41, 260.81, 117.45, 268.88, 121.04, 274.72, 136.74, 278.75, 146.61, 281.9, 153.79, 271.13, 158.73, 259.91, 159.62, 255.87, 157.83, 250.49, 156.48, 246.45, 146.16, 243.31, 131.81, 235.23, 131.36, 238.82, 143.02, 238.82, 149.3, 236.13, 158.28, 234.78, 153.79, 227.16, 151.1, 220.87, 151.1, 217.28, 153.79, 212.35, 158.28, 206.52, 151.1, 207.86, 144.37, 212.8, 129.11, 215.49, 121.04, 220.42, 116.55, 230.3, 112.51, 232.99, 111.17]], "area": 2960.467849999999, "iscrowd": 0, "image_id": 458137, "bbox": [206.52, 86.94, 75.38, 72.68], "category_id": 1, "id": 453726}, {"segmentation": [[84.46, 198.2, 94.59, 152.03, 110.36, 138.51, 129.5, 130.63, 132.88, 127.25, 134.01, 113.74, 146.4, 88.96, 150.9, 75.45, 158.78, 58.56, 167.79, 38.29, 183.56, 30.41, 200.45, 23.65, 218.47, 23.65, 235.36, 31.53, 246.62, 54.05, 252.25, 82.21, 250.0, 94.59, 245.5, 108.11, 245.5, 121.62, 243.24, 125.0, 227.48, 134.01, 212.84, 144.14, 230.86, 152.03, 239.86, 173.42, 247.75, 207.21, 255.63, 229.73, 260.14, 236.49, 269.14, 237.61, 291.67, 236.49, 301.8, 238.74, 301.8, 248.87, 300.68, 278.15, 292.79, 283.78, 282.66, 283.78, 265.77, 281.53, 239.86, 283.78, 227.48, 289.41, 215.09, 306.31, 216.22, 323.2, 215.09, 345.72, 215.09, 359.23, 199.32, 354.73, 186.94, 345.72, 145.27, 337.84, 104.73, 355.86, 86.71, 370.5, 81.08, 373.87, 85.59, 343.47, 90.09, 287.16, 83.33, 263.51]], "area": 44381.280450000006, "iscrowd": 0, "image_id": 299946, "bbox": [81.08, 23.65, 220.72, 350.22], "category_id": 1, "id": 455224}, {"segmentation": [[101.25, 240.0, 195.75, 131.25, 239.25, 99.75, 294.0, 58.5, 318.75, 63.75, 321.75, 39.0, 346.5, 27.75, 361.5, 44.25, 354.75, 78.75, 372.75, 98.25, 345.0, 125.25, 353.25, 136.5, 354.0, 147.75, 342.0, 154.5, 337.5, 158.25, 330.0, 157.5, 327.0, 155.25, 324.75, 150.75, 323.25, 148.5, 309.75, 150.0, 309.0, 152.25, 306.75, 155.25, 315.75, 161.25, 318.0, 170.25, 300.75, 176.25, 295.5, 174.0, 290.25, 168.75, 287.25, 166.5, 274.5, 167.25, 234.0, 194.25, 223.5, 198.0, 208.5, 188.25, 153.75, 257.25, 120.0, 267.0, 99.75, 246.75]], "area": 21815.71875, "iscrowd": 0, "image_id": 171603, "bbox": [99.75, 27.75, 273.0, 239.25], "category_id": 1, "id": 474051}, {"segmentation": [[317.85, 149.59, 323.38, 132.66, 328.93, 124.05, 330.77, 113.58, 334.16, 105.27, 345.54, 99.73, 353.85, 108.66, 357.85, 121.89, 367.09, 128.36, 374.17, 156.05, 354.16, 153.28, 354.16, 138.82, 347.7, 136.05, 346.47, 152.36, 332.93, 151.74, 329.23, 151.44, 326.46, 148.05, 320.0, 147.74, 317.54, 152.67]], "area": 1733.79955, "iscrowd": 0, "image_id": 458137, "bbox": [317.54, 99.73, 56.63, 56.32], "category_id": 1, "id": 476788}, {"segmentation": [[403.52, 132.22, 407.86, 132.22, 409.55, 131.02, 414.13, 129.09, 419.19, 126.2, 424.25, 123.79, 428.1, 120.9, 432.2, 118.49, 434.61, 112.46, 436.54, 107.88, 437.26, 103.79, 435.81, 104.27, 435.81, 99.69, 432.68, 93.67, 432.44, 92.22, 428.83, 90.05, 425.64, 90.57, 421.54, 92.98, 418.41, 95.63, 416.72, 99.25, 416.72, 104.31, 416.96, 107.2, 416.96, 110.57, 416.96, 113.71, 414.79, 116.36, 411.9, 120.21, 409.49, 123.1, 407.08, 126.72, 404.43, 128.17], [401.78, 146.96, 410.46, 150.82, 414.07, 151.06, 416.96, 150.1, 419.85, 149.61, 420.1, 148.41, 420.82, 142.14, 440.34, 128.17, 444.44, 124.07, 445.16, 123.35, 454.07, 136.6, 446.6, 133.95, 444.44, 133.47, 439.13, 133.95, 437.69, 136.12, 437.21, 138.29, 437.69, 139.73, 437.93, 141.18, 436.24, 146.24, 433.11, 154.92, 432.39, 161.66, 416.24, 159.01, 417.2, 154.67, 409.25, 153.95, 406.6, 152.75, 402.99, 152.75, 397.2, 155.64]], "area": 1224.4602000000004, "iscrowd": 0, "image_id": 458137, "bbox": [397.2, 90.05, 56.87, 71.61], "category_id": 1, "id": 478712}, {"segmentation": [[467.46, 164.79, 475.54, 166.96, 481.13, 167.58, 484.55, 161.68, 488.59, 157.02, 491.07, 154.84, 490.14, 151.74, 489.21, 148.01, 490.14, 143.35, 489.21, 136.51, 489.21, 129.68, 489.52, 124.71, 489.52, 123.15, 487.97, 116.63, 484.86, 110.11, 481.75, 106.38, 477.4, 102.65, 470.26, 99.54, 462.18, 95.5, 460.63, 92.09, 458.76, 83.39, 455.34, 76.24, 447.58, 73.13, 440.43, 74.07, 434.84, 79.04, 432.97, 81.83, 435.15, 98.3, 435.77, 100.47, 435.77, 103.27, 437.32, 105.76, 432.04, 117.56, 428.0, 121.91, 423.65, 124.71, 418.37, 126.57, 410.61, 130.61, 398.18, 134.03, 397.87, 137.13, 401.29, 137.45, 404.7, 137.13, 406.57, 138.69, 406.88, 140.55, 405.32, 143.04, 406.57, 145.21, 409.36, 146.46, 412.16, 147.08, 414.64, 147.39, 418.99, 144.9, 420.86, 141.17, 426.76, 137.45, 439.19, 127.5, 443.85, 125.02, 446.02, 123.15, 450.06, 126.26, 453.17, 131.85, 454.72, 137.13, 456.28, 137.45, 464.66, 136.82, 466.53, 141.8, 467.15, 146.14, 468.39, 154.22, 468.7, 158.26, 466.53, 163.85], [442.61, 134.96, 442.61, 141.8, 442.3, 144.9, 439.5, 144.9, 437.64, 142.11, 438.57, 136.51]], "area": 3502.0067, "iscrowd": 0, "image_id": 458137, "bbox": [397.87, 73.13, 93.2, 94.45], "category_id": 1, "id": 479190}, {"segmentation": [[4.5, 191.25, 18.75, 190.5, 28.5, 186.75, 42.0, 180.0, 50.25, 171.75, 48.75, 162.75, 39.0, 147.0, 34.5, 129.75, 42.75, 105.75, 58.5, 89.25, 88.5, 80.25, 108.0, 78.0, 118.5, 78.0, 123.75, 78.0, 132.75, 72.0, 138.0, 81.75, 139.5, 87.0, 147.75, 98.25, 156.75, 111.0, 161.25, 121.5, 163.5, 137.25, 150.75, 168.0, 143.25, 183.75, 139.5, 194.25, 132.75, 206.25, 120.75, 216.0, 113.25, 216.0, 103.5, 216.75, 96.0, 223.5, 99.75, 234.0, 105.75, 252.0, 117.75, 264.75, 129.0, 285.75, 130.5, 328.5, 128.25, 331.5, 0.75, 331.5]], "area": 28646.4375, "iscrowd": 0, "image_id": 171603, "bbox": [0.75, 72.0, 162.75, 259.5], "category_id": 1, "id": 483691}, {"segmentation": [[177.65, 250.3, 145.02, 396.54, 152.27, 420.71, 163.15, 435.21, 170.4, 438.83, 300.92, 446.08, 309.38, 438.83, 354.1, 442.46, 364.97, 414.66, 368.6, 407.41, 369.81, 403.79, 369.81, 398.95, 373.43, 386.87, 385.52, 372.37, 391.56, 365.11, 397.6, 353.03, 393.98, 343.36, 380.68, 330.07, 354.1, 330.07, 350.47, 330.07, 340.8, 328.86, 343.22, 293.81, 343.22, 266.02, 343.22, 251.51, 319.05, 241.85, 313.01, 244.26, 296.09, 218.88, 304.55, 154.83, 280.38, 146.37, 263.46, 141.54, 238.08, 143.95, 225.99, 157.25, 210.28, 171.75, 196.99, 185.04, 184.9, 200.76, 175.24, 211.63, 164.36, 220.09, 155.9, 239.43, 167.98, 244.26]], "area": 50792.651399999995, "iscrowd": 0, "image_id": 378204, "bbox": [145.02, 141.54, 252.58, 304.54], "category_id": 1, "id": 486565}, {"segmentation": [[146.67, 328.51, 179.6, 303.07, 193.81, 280.62, 165.38, 196.06, 148.17, 137.69, 136.94, 112.25, 154.15, 66.6, 196.06, 27.69, 252.93, 9.73, 330.01, 30.68, 362.93, 59.12, 363.68, 90.55, 337.49, 181.84, 327.01, 212.52, 316.54, 272.39, 335.99, 318.78, 374.16, 324.77]], "area": 53282.68225, "iscrowd": 0, "image_id": 310493, "bbox": [136.94, 9.73, 237.22, 318.78], "category_id": 1, "id": 490409}, {"segmentation": [[531.72, 148.71, 557.21, 113.51, 568.14, 103.79, 592.41, 100.15, 597.27, 91.65, 598.48, 79.51, 599.7, 56.45, 603.34, 44.31, 614.27, 35.81, 623.98, 29.74, 634.9, 32.17, 636.12, 46.74, 636.12, 425.49, 620.34, 418.21, 621.55, 351.44, 616.69, 340.52, 594.84, 341.73, 576.63, 332.02, 569.35, 270.11, 557.21, 253.11, 528.07, 209.41, 515.93, 188.77]], "area": 24337.29589999999, "iscrowd": 0, "image_id": 378204, "bbox": [515.93, 29.74, 120.19, 395.75], "category_id": 1, "id": 493037}, {"segmentation": [[77.18, 175.98, 77.18, 165.5, 77.18, 156.92, 81.94, 151.21, 90.52, 149.3, 96.23, 149.3, 105.76, 154.06, 114.34, 163.59, 114.34, 172.17, 110.53, 177.88, 110.53, 186.46, 106.71, 188.37, 101.0, 193.13, 112.43, 211.23, 121.01, 217.9, 125.77, 249.34, 129.58, 263.64, 111.48, 268.4, 96.23, 257.92, 83.85, 242.68, 78.13, 233.15, 76.22, 223.62, 76.22, 213.14, 76.22, 206.47, 76.22, 197.89, 73.37, 186.46, 73.37, 185.51, 76.22, 182.65]], "area": 4122.424150000001, "iscrowd": 0, "image_id": 458137, "bbox": [73.37, 149.3, 56.21, 119.1], "category_id": 1, "id": 507668}, {"segmentation": [[274.45, 177.94, 277.16, 177.22, 279.51, 177.04, 281.86, 177.04, 284.92, 177.58, 285.47, 178.13, 286.73, 181.01, 287.63, 183.9, 287.63, 186.25, 287.63, 189.14, 287.45, 192.39, 286.19, 195.09, 284.2, 197.62, 282.58, 199.43, 281.68, 200.87, 282.04, 212.61, 283.3, 212.79, 285.47, 213.33, 287.09, 214.05, 287.27, 214.95, 285.65, 215.31, 282.94, 215.49, 280.95, 215.49, 276.98, 215.67, 276.08, 215.67, 274.63, 214.77, 274.09, 213.87, 275.54, 212.61, 277.88, 212.06, 279.51, 211.88, 279.87, 200.15, 277.52, 198.7, 276.08, 197.08, 274.09, 194.73, 273.55, 193.11, 273.37, 190.58, 273.19, 187.33, 273.01, 184.99, 273.01, 181.01, 273.55, 179.03]], "area": 342.46010000000024, "iscrowd": 0, "image_id": 458137, "bbox": [273.01, 177.04, 14.62, 38.63], "category_id": 46, "id": 661284}, {"segmentation": [[195.84, 145.16, 195.48, 139.7, 195.48, 134.96, 203.13, 135.69, 205.31, 136.42, 204.58, 143.7, 203.86, 145.16, 200.94, 146.25, 200.94, 157.54, 205.31, 156.45, 204.22, 157.91, 195.84, 159.0, 195.48, 157.91, 195.84, 156.09, 199.49, 154.99, 198.39, 147.35, 196.21, 145.16]], "area": 135.87650000000014, "iscrowd": 0, "image_id": 507154, "bbox": [195.48, 134.96, 9.83, 24.04], "category_id": 46, "id": 666674}, {"segmentation": [[337.22, 31.46, 348.51, 26.62, 363.84, 26.62, 386.43, 27.43, 407.4, 33.88, 411.44, 45.18, 403.37, 111.33, 402.56, 170.22, 387.24, 174.26, 374.33, 182.32, 367.07, 202.49, 344.48, 197.65, 333.99, 192.0, 329.96, 180.71, 325.92, 169.42, 337.22, 106.49, 333.18, 33.08]], "area": 11548.106999999996, "iscrowd": 0, "image_id": 368142, "bbox": [325.92, 26.62, 85.52, 175.87], "category_id": 47, "id": 669183}, {"segmentation": [[372.71, 184.74, 397.72, 168.61, 416.28, 167.0, 454.2, 170.22, 483.24, 181.52, 500.99, 200.88, 497.76, 219.43, 511.47, 224.27, 523.58, 237.99, 527.61, 268.64, 515.51, 280.75, 488.08, 279.94, 462.26, 276.71, 455.81, 281.55, 441.29, 288.01, 413.86, 287.2, 384.01, 269.45, 379.17, 249.28, 369.49, 227.5, 367.87, 191.2]], "area": 14714.2737, "iscrowd": 0, "image_id": 368142, "bbox": [367.87, 167.0, 159.74, 121.01], "category_id": 47, "id": 671531}, {"segmentation": [[23.54, 330.48, 20.61, 293.9, 26.46, 290.97, 41.1, 288.78, 52.8, 292.44, 53.9, 296.83, 62.31, 296.83, 68.17, 301.21, 68.9, 314.02, 63.78, 321.7, 56.09, 323.53, 56.83, 329.02, 42.19, 332.31, 26.1, 331.58]], "area": 1659.0865, "iscrowd": 0, "image_id": 285568, "bbox": [20.61, 288.78, 48.29, 43.53], "category_id": 47, "id": 675110}, {"segmentation": [[486.11, 210.01, 488.27, 204.04, 488.27, 195.09, 486.94, 193.11, 485.28, 190.12, 486.44, 188.8, 490.42, 188.96, 496.06, 189.46, 498.21, 191.28, 498.21, 193.6, 497.38, 195.43, 496.22, 204.21, 494.23, 214.16, 492.25, 214.98, 488.76, 214.65, 488.93, 212.83, 487.6, 211.83]], "area": 225.50765000000044, "iscrowd": 0, "image_id": 458137, "bbox": [485.28, 188.8, 12.93, 26.18], "category_id": 47, "id": 676023}, {"segmentation": [[28.06, 416.44, 22.87, 414.22, 32.51, 404.58, 40.66, 408.29, 67.35, 403.1, 96.26, 409.77, 102.93, 432.01, 103.67, 445.35, 99.23, 449.8, 95.52, 489.09, 74.76, 500.0, 38.44, 495.02, 28.06, 438.68, 27.32, 420.15, 22.13, 429.04, 26.58, 448.32, 19.91, 449.06, 16.2, 418.67, 17.68, 412.74, 28.06, 418.67]], "area": 6339.030199999997, "iscrowd": 0, "image_id": 299946, "bbox": [16.2, 403.1, 87.47, 96.9], "category_id": 47, "id": 679057}, {"segmentation": [[242.56, 397.24, 244.17, 331.18, 249.81, 325.55, 253.03, 323.13, 257.06, 323.13, 257.86, 335.21, 265.11, 340.85, 269.14, 340.85, 283.64, 327.96, 293.31, 335.21, 281.23, 404.49, 270.75, 410.13, 261.09, 413.36]], "area": 3296.1386500000017, "iscrowd": 0, "image_id": 299946, "bbox": [242.56, 323.13, 50.75, 90.23], "category_id": 47, "id": 682128}, {"segmentation": [[202.24, 202.35, 205.03, 194.93, 244.42, 175.01, 289.84, 146.73, 295.86, 150.44, 228.2, 191.69, 234.22, 198.64, 293.55, 159.25, 292.62, 163.42, 237.47, 202.35, 240.71, 208.38, 240.71, 208.38, 294.94, 170.37, 298.64, 175.47, 237.47, 214.86, 227.73, 215.79, 212.9, 208.84, 208.73, 209.77]], "area": 1796.6144500000016, "iscrowd": 0, "image_id": 260150, "bbox": [202.24, 146.73, 96.4, 69.06], "category_id": 48, "id": 688157}, {"segmentation": [[284.72, 237.7, 292.67, 226.69, 288.08, 227.61, 286.71, 230.36, 286.71, 231.89, 282.73, 236.02, 284.72, 238.0]], "area": 30.1313000000002, "iscrowd": 0, "image_id": 458137, "bbox": [282.73, 226.69, 9.94, 11.31], "category_id": 49, "id": 696132}, {"segmentation": [[394.67, 301.96, 408.75, 279.78, 433.4, 257.95, 458.05, 247.73, 470.73, 249.49, 480.94, 257.59, 484.11, 276.61, 474.25, 317.46, 468.61, 327.67, 455.23, 338.58, 435.51, 344.22, 417.2, 345.98, 411.57, 345.98, 393.96, 358.66, 368.96, 360.0, 390.09, 342.46, 397.48, 332.25, 393.96, 324.5, 391.14, 313.23]], "area": 6903.428350000005, "iscrowd": 0, "image_id": 99115, "bbox": [368.96, 247.73, 115.15, 112.27], "category_id": 50, "id": 701690}, {"segmentation": [[225.72, 218.56, 226.99, 217.16, 228.25, 216.1, 232.57, 213.97, 234.3, 211.5, 235.17, 210.37, 235.04, 209.38, 234.44, 208.71, 234.57, 207.91, 236.63, 207.58, 239.23, 207.38, 240.62, 207.98, 241.16, 208.64, 239.76, 208.84, 237.7, 209.11, 235.97, 210.37, 235.83, 211.44, 234.37, 212.9, 233.37, 214.7, 231.18, 216.36, 229.91, 218.09, 228.85, 219.09, 227.05, 219.22, 225.92, 219.02]], "area": 31.037000000000116, "iscrowd": 0, "image_id": 458137, "bbox": [225.72, 207.38, 15.44, 11.84], "category_id": 50, "id": 702417}, {"segmentation": [[303.5, 238.41, 299.88, 252.57, 303.66, 252.88, 307.12, 236.99, 303.66, 236.68]], "area": 56.64550000000022, "iscrowd": 0, "image_id": 507154, "bbox": [299.88, 236.68, 7.24, 16.2], "category_id": 50, "id": 703845}, {"segmentation": [[492.3, 189.93, 492.21, 187.26, 492.82, 186.25, 492.74, 184.36, 493.53, 182.56, 493.88, 185.98, 493.88, 187.83, 493.83, 188.84, 493.39, 189.98]], "area": 8.257599999999945, "iscrowd": 0, "image_id": 458137, "bbox": [492.21, 182.56, 1.67, 7.42], "category_id": 50, "id": 704271}, {"segmentation": [[552.66, 221.17, 558.03, 221.17, 570.83, 238.09, 574.13, 248.42, 568.76, 262.45, 609.64, 334.7, 607.16, 341.31, 598.08, 341.72, 586.1, 335.12, 583.63, 323.56, 576.61, 298.78, 560.92, 266.58, 553.49, 262.04, 548.98, 258.48, 541.39, 251.01, 539.82, 247.07, 538.85, 232.92, 545.14, 223.89, 546.61, 220.93]], "area": 2256.7998999999995, "iscrowd": 0, "image_id": 368142, "bbox": [538.85, 220.93, 70.79, 120.79], "category_id": 50, "id": 705439}, {"segmentation": [[409.35, 194.97, 423.1, 206.29, 431.19, 223.28, 461.12, 246.74, 520.18, 267.78, 568.72, 269.39, 605.93, 258.88, 640.0, 238.65, 637.48, 143.19, 601.89, 122.16, 557.39, 109.21, 499.96, 103.55, 444.94, 105.17, 412.58, 122.16, 393.98, 135.91, 390.74, 156.13, 392.36, 174.74, 410.97, 197.39]], "area": 32724.113650000003, "iscrowd": 0, "image_id": 99115, "bbox": [390.74, 103.55, 249.26, 165.84], "category_id": 51, "id": 711735}, {"segmentation": [[92.34, 373.31, 100.23, 391.33, 110.36, 412.73, 131.76, 425.11, 158.78, 425.11, 185.81, 419.48, 203.83, 405.97, 220.72, 384.57, 217.34, 365.43, 192.57, 348.54, 164.41, 342.91, 136.26, 341.78, 112.61, 347.41, 100.23, 356.42, 91.22, 375.56]], "area": 8201.249200000002, "iscrowd": 0, "image_id": 299946, "bbox": [91.22, 341.78, 129.5, 83.33], "category_id": 51, "id": 714511}, {"segmentation": [[181.21, 0.81, 160.18, 11.33, 150.47, 23.46, 153.71, 35.6, 159.37, 39.64, 166.65, 48.54, 173.93, 48.54, 179.6, 62.29, 188.49, 72.0, 205.48, 72.0, 250.79, 78.47, 275.06, 82.52, 287.19, 82.52, 308.22, 75.24, 339.78, 41.26, 349.48, 33.98, 350.29, 23.46, 344.63, 11.33, 321.98, 2.43]], "area": 12587.334949999999, "iscrowd": 0, "image_id": 99115, "bbox": [150.47, 0.81, 199.82, 81.71], "category_id": 51, "id": 1038448}, {"segmentation": [[59.83, 338.76, 79.21, 370.79, 178.65, 369.1, 202.25, 360.67, 213.2, 330.34, 209.83, 272.19, 192.98, 255.34, 157.58, 253.65, 113.76, 265.45, 88.48, 279.78, 64.04, 315.17, 56.46, 335.39]], "area": 14723.452900000004, "iscrowd": 0, "image_id": 92826, "bbox": [56.46, 253.65, 156.74, 117.14], "category_id": 51, "id": 1040130}, {"segmentation": [[130.96, 280.49, 141.43, 272.26, 150.41, 271.51, 206.53, 188.45, 299.33, 233.35, 297.08, 237.09, 246.2, 324.64, 157.89, 326.89, 155.65, 317.91, 152.66, 309.68, 149.66, 297.7, 144.42, 287.23, 136.19, 282.74]], "area": 13697.074849999999, "iscrowd": 0, "image_id": 171603, "bbox": [130.96, 188.45, 168.37, 138.44], "category_id": 73, "id": 1099252}, {"segmentation": [[29.93, 246.2, 64.36, 246.2, 97.28, 231.98, 268.64, 14.97, 155.65, 230.48, 410.08, 202.04, 392.12, 227.49, 120.48, 284.36, 94.29, 328.51, 61.36, 326.27, 69.59, 312.8, 59.87, 284.36, 37.42, 271.64, 12.72, 277.62, 2.24, 279.12, 2.24, 218.51]], "area": 23300.906100000007, "iscrowd": 0, "image_id": 310493, "bbox": [2.24, 14.97, 407.84, 313.54], "category_id": 87, "id": 1157784}, {"segmentation": [[347.27, 269.56, 343.7, 270.53, 342.08, 263.39, 346.95, 262.09, 351.82, 260.79, 352.47, 259.82, 347.92, 257.87, 343.05, 256.9, 338.83, 256.9, 335.91, 256.57, 331.37, 255.6, 325.2, 253.98, 321.3, 251.38, 319.35, 247.16, 320.65, 243.59, 329.09, 243.91, 332.66, 245.21, 344.68, 248.13, 350.85, 248.46, 357.01, 250.4, 362.21, 253.0, 367.08, 251.05, 369.68, 248.46, 374.87, 245.53, 380.07, 242.61, 383.64, 240.34, 387.53, 236.77, 390.78, 235.47, 386.88, 238.39, 383.64, 243.26, 379.42, 245.86, 379.42, 245.86, 392.73, 245.86, 396.95, 245.21, 396.3, 246.18, 387.53, 250.73, 378.77, 253.98, 371.95, 257.22, 367.08, 260.14, 358.96, 264.04, 355.07, 265.66]], "area": 794.7867499999992, "iscrowd": 0, "image_id": 399873, "bbox": [319.35, 235.47, 77.6, 35.06], "category_id": 87, "id": 1157966}, {"segmentation": [[241.62, 250.25, 226.52, 250.25, 214.65, 254.56, 203.87, 261.03, 192.0, 268.58, 184.45, 273.98, 175.82, 281.53, 173.66, 282.61, 161.8, 291.24, 152.09, 294.47, 141.3, 304.18, 135.91, 307.42, 134.83, 307.42, 132.67, 303.1, 148.85, 283.69, 172.58, 271.82, 196.31, 257.8, 214.65, 241.62, 236.22, 224.36, 248.09, 214.65, 259.96, 200.63, 270.74, 188.76, 285.84, 179.06, 306.34, 172.58, 319.28, 170.43, 314.97, 186.61, 313.89, 194.16, 328.99, 201.71, 333.3, 216.81, 336.54, 226.52, 334.38, 237.3, 305.26, 244.85, 294.47, 248.09, 277.21, 250.25, 248.09, 250.25, 241.62, 250.25]], "area": 6623.957850000002, "iscrowd": 0, "image_id": 429754, "bbox": [132.67, 170.43, 203.87, 136.99], "category_id": 87, "id": 1158355}, {"segmentation": [[298.03, 98.34, 311.67, 101.49, 323.21, 102.54, 328.72, 102.8, 336.06, 103.32, 346.55, 106.47, 351.01, 108.57, 352.85, 109.62, 354.16, 113.29, 353.63, 118.8, 337.9, 126.4, 328.45, 123.26, 331.08, 136.9, 329.24, 137.68, 297.24, 98.6]], "area": 993.9428499999999, "iscrowd": 0, "image_id": 429754, "bbox": [297.24, 98.34, 56.92, 39.34], "category_id": 87, "id": 1159048}, {"segmentation": [[0.72, 389.27, 3.51, 394.24, 3.82, 403.24, 5.99, 397.03, 6.61, 396.1, 9.41, 400.14, 17.79, 401.38, 18.72, 415.04, 23.38, 412.56, 23.07, 402.93, 27.42, 405.73, 27.42, 403.24, 25.55, 400.45, 30.83, 397.03, 31.76, 388.65, 32.38, 384.62, 23.07, 370.96, 20.58, 357.92, 18.1, 356.05, 4.44, 356.05, 1.03, 362.26]], "area": 1188.3517, "iscrowd": 0, "image_id": 356358, "bbox": [0.72, 356.05, 31.66, 58.99], "category_id": 27, "id": 1163614}, {"segmentation": [[118.15, 115.95, 117.2, 127.39, 117.2, 135.96, 115.29, 145.49, 112.43, 151.21, 114.34, 160.73, 115.29, 173.12, 118.15, 174.07, 125.77, 163.59, 133.39, 156.92, 142.92, 167.4, 152.45, 184.55, 163.88, 176.93, 152.45, 155.02, 152.45, 135.01, 150.54, 127.39, 146.73, 120.72, 143.87, 115.95, 142.92, 108.33, 137.2, 107.38, 126.72, 109.28, 121.96, 115.0, 118.15, 117.86]], "area": 2145.30275, "iscrowd": 0, "image_id": 458137, "bbox": [112.43, 107.38, 51.45, 77.17], "category_id": 1, "id": 1211523}, {"segmentation": [[636.4, 474.61, 604.04, 480.0, 571.69, 446.56, 515.6, 440.09, 442.25, 420.67, 377.53, 412.04, 368.9, 401.26, 389.39, 388.31, 422.83, 389.39, 511.28, 401.26, 543.64, 399.1, 533.93, 337.62, 463.82, 361.35, 414.2, 374.29, 404.49, 381.84, 371.06, 385.08, 354.88, 386.16, 348.4, 380.76, 360.27, 366.74, 373.21, 363.51, 384.0, 362.43, 405.57, 359.19, 442.25, 339.78, 481.08, 316.04, 516.67, 281.53, 515.6, 257.8, 513.44, 195.24, 532.85, 177.98, 572.76, 175.82, 595.42, 188.76, 595.42, 250.25, 640.0, 286.92, 639.64, 475.69]], "area": 38481.40365, "iscrowd": 0, "image_id": 507154, "bbox": [348.4, 175.82, 291.6, 304.18], "category_id": 1, "id": 1212288}, {"segmentation": [[179.13, 177.22, 165.79, 170.55, 156.26, 145.78, 149.59, 120.05, 144.83, 111.48, 135.3, 107.67, 139.11, 98.14, 145.78, 91.47, 160.07, 104.81, 175.32, 115.29, 179.13, 136.25, 172.46, 159.12, 180.08, 176.27]], "area": 1599.6191500000004, "iscrowd": 0, "image_id": 458137, "bbox": [135.3, 91.47, 44.78, 85.75], "category_id": 1, "id": 1213853}, {"segmentation": [[285.04, 358.04, 289.89, 350.91, 293.59, 347.77, 294.16, 344.92, 295.59, 343.21, 300.15, 341.22, 303.0, 341.5, 305.85, 345.21, 303.57, 350.34, 305.56, 358.32, 310.41, 368.3, 315.54, 372.57, 318.11, 377.13, 312.98, 377.99, 304.14, 362.88, 302.71, 372.86, 302.14, 393.95, 298.44, 408.77, 297.01, 411.05, 293.02, 411.62, 290.74, 409.91, 292.74, 403.07, 289.03, 381.69, 288.46, 370.58, 288.46, 362.6, 282.76, 366.87, 279.06, 372.86, 277.63, 375.42, 272.79, 374.0, 273.36, 370.29, 278.49, 365.16]], "area": 1040.2499999999995, "iscrowd": 0, "image_id": 356358, "bbox": [272.79, 341.22, 45.32, 70.4], "category_id": 1, "id": 1222853}, {"segmentation": [[253.45, 414.25, 250.0, 403.02, 253.88, 397.83, 250.86, 391.35, 249.69, 381.22, 245.49, 378.86, 248.38, 372.04, 251.52, 369.41, 249.69, 365.48, 251.0, 362.33, 252.05, 358.92, 257.29, 358.92, 260.18, 363.64, 257.56, 367.31, 260.7, 370.72, 259.92, 377.54, 264.11, 379.9, 263.59, 382.53, 259.43, 381.05, 260.38, 391.7, 260.51, 397.77, 255.79, 402.36, 255.66, 405.46, 258.08, 411.25, 253.5, 413.01]], "area": 471.77184999999974, "iscrowd": 0, "image_id": 356358, "bbox": [245.49, 358.92, 18.62, 55.33], "category_id": 1, "id": 1232937}, {"segmentation": [[10.99, 324.62, 7.83, 299.3, 9.58, 286.29, 8.53, 281.36, 8.88, 271.16, 15.21, 259.2, 18.03, 253.93, 24.71, 246.89, 28.93, 244.78, 34.91, 241.27, 39.83, 239.86, 40.18, 239.16, 41.24, 237.75, 40.89, 232.83, 46.51, 227.9, 42.29, 224.74, 40.54, 215.59, 41.59, 203.63, 44.05, 193.78, 48.63, 180.07, 52.49, 168.11, 57.77, 156.85, 63.75, 150.88, 77.11, 151.23, 81.69, 152.63, 95.05, 149.47, 101.03, 151.23, 109.82, 156.85, 114.4, 159.67, 120.02, 165.65, 123.19, 169.52, 128.11, 178.66, 130.57, 190.27, 132.68, 205.39, 133.39, 214.18, 133.39, 225.09, 134.09, 231.77, 128.11, 268.35, 129.52, 284.18, 129.52, 292.26, 132.33, 301.76, 136.91, 322.86, 136.91, 327.79, 140.77, 345.37, 147.1, 358.74, 147.46, 365.42, 149.57, 369.99, 152.03, 374.57, 153.44, 379.49, 154.14, 383.36, 152.73, 386.88, 152.03, 388.99, 154.84, 390.74, 157.3, 394.97, 157.66, 399.54, 157.66, 399.89, 154.14, 407.28, 149.57, 407.28, 137.61, 405.17, 129.17, 403.41, 133.74, 411.14, 133.74, 424.86, 131.98, 433.65, 130.93, 438.93, 129.17, 444.21, 122.84, 447.72, 122.48, 440.34, 121.78, 431.19, 119.32, 428.38, 0.44, 423.45, 1.14, 389.69, 0.79, 370.7, 4.66, 355.93, 6.77, 346.78, 10.29, 337.64, 10.29, 326.73]], "area": 31740.789200000003, "iscrowd": 0, "image_id": 507154, "bbox": [0.44, 149.47, 157.22, 298.25], "category_id": 1, "id": 1237516}, {"segmentation": [[66.52, 93.34, 71.23, 100.17, 72.6, 105.38, 75.21, 106.13, 84.02, 115.31, 89.23, 119.16, 88.12, 124.0, 86.38, 122.89, 82.78, 119.78, 76.7, 120.65, 75.83, 120.65, 77.57, 125.0, 76.82, 128.84, 72.85, 126.98, 73.1, 119.29, 66.89, 114.57, 61.68, 112.46, 59.57, 111.84, 59.94, 109.6, 55.84, 105.88, 53.36, 102.41, 53.61, 97.19, 56.34, 94.96, 59.69, 93.47, 63.29, 93.1]], "area": 495.5948999999999, "iscrowd": 0, "image_id": 458137, "bbox": [53.36, 93.1, 35.87, 35.74], "category_id": 1, "id": 1243165}, {"segmentation": [[26.97, 472.45, 12.94, 474.61, 19.42, 441.17, 17.26, 434.7, 17.26, 408.81, 35.6, 392.63, 22.65, 364.58, 9.71, 350.56, 15.1, 341.93, 12.94, 319.28, 30.2, 316.04, 40.99, 319.28, 56.09, 326.83, 58.25, 354.88, 55.01, 367.82, 44.22, 367.82, 47.46, 391.55, 56.09, 440.09, 58.25, 455.19, 65.8, 465.98, 47.46, 471.37, 42.07, 435.78, 25.89, 430.38, 24.81, 467.06]], "area": 4520.206600000001, "iscrowd": 0, "image_id": 356358, "bbox": [9.71, 316.04, 56.09, 158.57], "category_id": 1, "id": 1259940}, {"segmentation": [[99.44, 120.04, 92.59, 126.07, 96.15, 129.91, 93.96, 132.38, 89.84, 132.66, 85.73, 137.87, 82.71, 135.95, 79.42, 138.14, 77.23, 135.67, 79.42, 132.11, 79.42, 130.19, 77.5, 127.72, 78.6, 124.15, 76.95, 121.69, 82.99, 120.04, 87.65, 124.43, 88.75, 119.49, 92.31, 113.73, 90.12, 106.05, 88.2, 100.84, 92.04, 95.36, 98.07, 93.71, 106.02, 97.0, 110.14, 102.76, 113.15, 109.07, 109.59, 110.99]], "area": 678.6418499999999, "iscrowd": 0, "image_id": 458137, "bbox": [76.95, 93.71, 36.2, 44.43], "category_id": 1, "id": 1271120}, {"segmentation": [[396.81, 206.95, 368.71, 271.02, 359.72, 282.26, 358.59, 298.0, 370.96, 304.75, 415.93, 318.24, 446.28, 322.73, 451.9, 332.85, 495.74, 301.37, 499.11, 292.38, 492.37, 250.79, 491.24, 230.55, 478.88, 212.57, 475.5, 186.71, 469.88, 170.98, 451.9, 148.49, 427.17, 148.49, 412.55, 158.61, 404.68, 181.09, 404.68, 205.82], [511.48, 348.59, 505.85, 365.45, 510.35, 372.19, 504.73, 382.31, 476.63, 358.7, 509.23, 345.21]], "area": 17033.623550000008, "iscrowd": 0, "image_id": 507154, "bbox": [358.59, 148.49, 152.89, 233.82], "category_id": 1, "id": 1273056}, {"segmentation": [[640.0, 129.25, 632.97, 129.25, 626.4, 140.51, 616.54, 165.87, 619.36, 180.89, 604.33, 181.36, 599.64, 162.11, 592.6, 134.41, 602.46, 111.87, 615.6, 84.64, 612.78, 59.29, 621.24, 50.84, 632.97, 53.19, 640.0, 70.56, 639.08, 127.84]], "area": 3547.5528999999983, "iscrowd": 0, "image_id": 507154, "bbox": [592.6, 50.84, 47.4, 130.52], "category_id": 1, "id": 1278275}, {"segmentation": [[481.08, 191.89, 487.57, 162.7, 495.14, 145.41, 504.86, 118.38, 517.84, 107.57, 538.38, 107.57, 550.27, 116.22, 542.7, 127.03, 542.7, 135.68, 540.54, 154.05, 534.05, 162.7, 528.65, 174.59, 515.68, 197.3, 502.7, 202.7, 486.49, 192.97]], "area": 3822.6095499999997, "iscrowd": 0, "image_id": 507154, "bbox": [481.08, 107.57, 69.19, 95.13], "category_id": 1, "id": 1281517}, {"segmentation": [[126.52, 167.9, 139.28, 142.9, 160.71, 133.2, 176.52, 136.26, 194.89, 152.08, 196.93, 194.43, 202.55, 221.47, 211.73, 248.52, 217.3, 269.12, 215.52, 276.59, 210.18, 284.42, 190.97, 296.87, 179.94, 310.39, 172.11, 306.48, 166.06, 327.83, 166.42, 334.59, 161.08, 332.81, 160.73, 327.83, 160.73, 336.01, 154.68, 337.79, 152.19, 337.08, 151.12, 334.59, 145.78, 336.72, 143.57, 336.08, 144.32, 321.03, 141.85, 320.29, 138.98, 323.92, 136.05, 321.97, 132.85, 302.6, 130.31, 283.43, 128.9, 272.16, 125.79, 265.93, 125.44, 259.7, 129.42, 241.88, 130.81, 226.65, 129.08, 212.46, 129.42, 199.66, 129.25, 192.04, 126.65, 174.39]], "area": 12959.078999999992, "iscrowd": 0, "image_id": 507154, "bbox": [125.44, 133.2, 91.86, 204.59], "category_id": 1, "id": 1282520}, {"segmentation": [[450.58, 61.01, 450.93, 59.36, 452.0, 56.76, 452.39, 54.4, 449.53, 49.54, 445.82, 47.26, 439.82, 43.26, 433.54, 44.4, 430.39, 45.26, 426.97, 49.54, 424.68, 56.4, 423.54, 62.68, 423.82, 66.68, 422.39, 72.11, 415.82, 74.97, 413.25, 81.25, 410.11, 96.11, 413.54, 97.82, 413.54, 104.97, 414.97, 111.54, 414.4, 116.68, 412.11, 130.39, 412.11, 137.25, 415.25, 142.68, 423.25, 146.67, 432.11, 145.82, 436.39, 137.53, 440.68, 135.82, 446.11, 138.96, 450.68, 140.39, 454.68, 139.25, 456.1, 129.82, 453.82, 117.25, 454.68, 110.39, 463.82, 106.39, 470.67, 102.11, 474.39, 101.54, 478.1, 99.25, 481.53, 93.25, 482.1, 90.97, 478.1, 86.4, 473.53, 87.25, 469.82, 90.4, 464.39, 94.11, 462.39, 95.82, 458.39, 100.11, 455.25, 100.68, 453.25, 95.25, 452.11, 85.54, 451.82, 80.4, 447.46, 77.92, 445.34, 76.93, 443.98, 74.69, 443.73, 72.7, 445.09, 70.96, 447.08, 69.22, 447.71, 67.23, 448.29, 66.15, 449.2, 63.82, 449.63, 61.84]], "area": 3738.681949999998, "iscrowd": 0, "image_id": 507154, "bbox": [410.11, 43.26, 71.99, 103.41], "category_id": 1, "id": 1286889}, {"segmentation": [[111.57, 105.24, 112.13, 100.71, 112.13, 98.83, 113.83, 96.56, 116.09, 94.87, 119.11, 94.87, 120.81, 94.87, 123.07, 95.81, 126.28, 99.01, 127.98, 103.54, 129.11, 107.5, 128.73, 108.82, 126.47, 109.95, 121.56, 115.24, 118.36, 118.25, 117.04, 133.15, 117.04, 138.81, 114.96, 146.73, 112.51, 151.83, 114.4, 163.14, 105.72, 153.9, 96.1, 148.81, 96.1, 139.57, 99.69, 135.61, 94.93, 132.06, 96.98, 128.98, 100.66, 118.83, 109.62, 111.19, 113.0, 109.28, 111.83, 105.61]], "area": 1039.89795, "iscrowd": 0, "image_id": 458137, "bbox": [94.93, 94.87, 34.18, 68.27], "category_id": 1, "id": 1287095}, {"segmentation": [[99.91, 370.12, 98.59, 355.26, 100.85, 352.26, 101.98, 351.32, 102.17, 347.93, 101.79, 345.67, 101.79, 345.49, 99.72, 344.17, 100.29, 340.41, 96.34, 338.9, 96.34, 338.9, 95.02, 338.9, 94.27, 342.66, 93.52, 344.73, 91.45, 345.3, 90.88, 345.3, 89.0, 351.13, 89.57, 351.69, 91.64, 354.7, 89.94, 362.6, 90.13, 365.61, 91.26, 371.63, 91.07, 372.94, 91.07, 372.94, 92.39, 374.26]], "area": 294.95324999999997, "iscrowd": 0, "image_id": 356358, "bbox": [89.0, 338.9, 13.17, 35.36], "category_id": 1, "id": 1290790}, {"segmentation": [[129.31, 105.76, 125.66, 98.28, 125.32, 96.62, 125.49, 96.12, 122.67, 90.81, 123.5, 87.82, 127.15, 85.66, 129.81, 85.66, 131.64, 87.15, 132.8, 89.14, 134.13, 92.13, 134.13, 96.29, 137.28, 98.11, 135.95, 105.42]], "area": 183.47750000000002, "iscrowd": 0, "image_id": 458137, "bbox": [122.67, 85.66, 14.61, 20.1], "category_id": 1, "id": 1294706}, {"segmentation": [[545.72, 164.04, 536.33, 164.04, 539.15, 157.0, 543.38, 129.3, 549.48, 116.15, 543.38, 110.99, 547.6, 99.72, 549.95, 90.33, 541.97, 82.82, 540.56, 72.02, 544.78, 62.16, 560.75, 54.18, 570.14, 63.57, 566.38, 76.71, 573.89, 93.62, 574.36, 117.56, 571.08, 125.07, 560.75, 138.22, 556.99, 151.83, 550.42, 160.76]], "area": 2461.24025, "iscrowd": 0, "image_id": 507154, "bbox": [536.33, 54.18, 38.03, 109.86], "category_id": 1, "id": 1295314}, {"segmentation": [[612.83, 347.06, 612.11, 349.47, 609.69, 353.58, 609.93, 355.26, 606.56, 357.44, 602.69, 363.71, 605.59, 368.3, 608.0, 368.06, 606.8, 372.4, 609.21, 375.06, 609.69, 392.43, 610.9, 392.43, 609.93, 396.29, 612.35, 396.05, 613.07, 392.43, 615.0, 393.4, 614.52, 397.26, 617.42, 398.71, 618.62, 394.12, 622.73, 393.64, 620.55, 374.33, 619.83, 370.95, 622.97, 370.23, 617.9, 356.23, 618.86, 348.75, 614.04, 346.09, 613.07, 347.78]], "area": 589.4047499999991, "iscrowd": 0, "image_id": 356358, "bbox": [602.69, 346.09, 20.28, 52.62], "category_id": 1, "id": 1299200}, {"segmentation": [[631.13, 405.73, 631.65, 402.96, 631.13, 400.02, 630.26, 397.77, 629.92, 395.35, 629.74, 392.23, 629.74, 391.19, 629.22, 388.77, 628.53, 387.39, 626.63, 384.62, 626.28, 382.71, 627.49, 382.2, 627.84, 381.5, 627.49, 379.25, 627.67, 376.66, 628.7, 374.93, 631.99, 373.54, 633.38, 374.41, 633.38, 375.79, 634.41, 400.02, 633.55, 405.56]], "area": 148.5958999999994, "iscrowd": 0, "image_id": 356358, "bbox": [626.28, 373.54, 8.13, 32.19], "category_id": 1, "id": 1305655}, {"segmentation": [[515.54, 100.15, 519.25, 85.62, 520.67, 82.48, 524.66, 81.34, 528.37, 81.34, 523.52, 76.49, 523.52, 71.36, 524.09, 68.51, 526.66, 63.1, 528.65, 59.96, 541.48, 56.83, 544.05, 57.68, 544.05, 63.95, 541.77, 69.08, 542.05, 72.5, 542.05, 75.35, 542.62, 79.06, 541.48, 82.48, 544.9, 85.9, 547.75, 88.47, 549.75, 89.61, 550.6, 94.74, 549.75, 99.3, 547.47, 103.57, 545.47, 106.14, 543.19, 110.7, 542.91, 111.84, 535.49, 108.7, 526.94, 107.85, 521.81, 106.99, 518.68, 108.99, 511.55, 114.97, 510.7, 110.7, 510.7, 108.42, 510.7, 106.71, 510.41, 106.14, 508.7, 101.01, 512.41, 100.15, 514.12, 99.58, 514.4, 99.01]], "area": 1301.3683999999994, "iscrowd": 0, "image_id": 507154, "bbox": [508.7, 56.83, 41.9, 58.14], "category_id": 1, "id": 1316022}, {"segmentation": [[134.17, 343.91, 133.99, 342.39, 134.08, 341.5, 135.68, 341.32, 136.75, 341.5, 137.29, 342.66, 137.29, 342.93, 137.55, 344.71, 137.29, 345.69, 137.64, 346.05, 137.73, 347.3, 137.73, 348.19, 136.22, 347.74, 136.4, 348.46, 136.31, 349.7, 134.97, 349.97, 133.72, 349.61, 133.1, 348.9, 132.74, 348.01, 132.12, 347.56, 131.05, 347.03, 131.31, 346.4, 132.38, 346.4, 133.1, 345.96, 133.72, 345.6, 134.08, 344.53, 134.08, 343.73]], "area": 32.630300000000005, "iscrowd": 0, "image_id": 356358, "bbox": [131.05, 341.32, 6.68, 8.65], "category_id": 1, "id": 1318379}, {"segmentation": [[473.62, 57.6, 482.27, 56.67, 485.98, 59.45, 488.45, 67.8, 489.07, 76.45, 488.15, 80.47, 496.49, 87.58, 501.74, 100.25, 501.44, 108.6, 499.27, 113.85, 493.4, 117.25, 486.6, 114.78, 490.0, 121.88, 490.93, 131.78, 490.62, 139.19, 491.24, 153.1, 481.04, 153.1, 485.05, 141.05, 480.73, 139.19, 466.51, 137.96, 462.8, 135.48, 461.26, 126.21, 463.73, 112.3, 464.04, 107.36, 469.91, 102.1, 476.09, 102.41, 481.04, 95.0, 483.51, 89.74, 477.33, 85.72, 472.38, 88.2, 462.49, 95.0, 461.57, 95.0, 458.78, 85.11, 460.64, 82.63, 466.51, 81.4, 467.44, 74.6, 469.29, 71.51, 468.67, 63.47, 474.55, 57.91]], "area": 2213.0185999999994, "iscrowd": 0, "image_id": 507154, "bbox": [458.78, 56.67, 42.96, 96.43], "category_id": 1, "id": 1319752}, {"segmentation": [[391.37, 88.85, 394.26, 82.19, 391.82, 77.31, 390.04, 74.2, 388.71, 67.98, 388.93, 61.76, 391.6, 56.65, 397.59, 55.32, 402.04, 59.76, 402.48, 67.98, 403.59, 73.31, 408.7, 80.19, 410.92, 94.41, 413.81, 99.52, 413.81, 109.95, 408.25, 107.29, 406.7, 103.51, 402.7, 101.51, 391.15, 101.51, 389.82, 97.29]], "area": 778.0540000000005, "iscrowd": 0, "image_id": 507154, "bbox": [388.71, 55.32, 25.1, 54.63], "category_id": 1, "id": 1323795}, {"segmentation": [[99.64, 328.28, 117.3, 327.8, 115.84, 352.23, 102.06, 350.78, 99.88, 347.88, 98.91, 345.22, 98.19, 344.25, 98.43, 342.07, 98.43, 341.83, 99.15, 328.04]], "area": 408.5665, "iscrowd": 0, "image_id": 356358, "bbox": [98.19, 327.8, 19.11, 24.43], "category_id": 6, "id": 1364909}, {"segmentation": [[49.37, 315.89, 59.0, 316.52, 71.72, 318.07, 71.72, 321.48, 74.83, 321.79, 74.52, 348.8, 68.62, 348.8, 68.62, 353.77, 65.83, 354.7, 64.27, 359.36, 63.34, 359.36, 62.72, 362.46, 55.27, 361.53, 55.58, 357.5, 54.96, 338.87, 54.34, 334.83, 53.41, 330.49, 49.99, 330.18, 49.68, 325.83, 45.65, 327.38, 44.4, 329.87, 40.37, 327.38, 35.71, 317.45, 22.98, 319.62, 24.22, 315.27]], "area": 1013.0111500000006, "iscrowd": 0, "image_id": 356358, "bbox": [22.98, 315.27, 51.85, 47.19], "category_id": 6, "id": 1366085}, {"segmentation": [[99.1, 1.69, 94.59, 141.33, 103.6, 167.23, 101.35, 189.75, 93.47, 210.02, 79.95, 214.53, 61.94, 211.15, 0.0, 217.91, 1.13, 3.94]], "area": 20499.2074, "iscrowd": 0, "image_id": 445041, "bbox": [0.0, 1.69, 103.6, 216.22], "category_id": 8, "id": 1369787}, {"segmentation": [[357.8, 425.06, 368.71, 435.97, 381.92, 435.97, 391.1, 437.12, 416.37, 437.69, 430.15, 435.39, 436.47, 429.65, 449.1, 418.17, 458.29, 393.47, 461.16, 381.42, 466.33, 368.21, 462.88, 350.41, 452.55, 341.22, 448.53, 337.77, 447.38, 336.05, 434.17, 336.05, 419.81, 340.64, 396.85, 337.77, 385.36, 334.9, 384.79, 334.9, 389.38, 345.24, 389.95, 346.39, 391.1, 347.54, 394.55, 352.7, 395.12, 353.85, 394.55, 361.32, 393.4, 364.76, 389.38, 372.23, 388.23, 374.52, 385.36, 381.42, 380.19, 388.31, 377.9, 391.18, 375.6, 394.05, 375.6, 394.62, 367.56, 403.24, 373.3, 407.26, 358.95, 419.32]], "area": 7560.305750000004, "iscrowd": 0, "image_id": 378204, "bbox": [357.8, 334.9, 108.53, 102.79], "category_id": 27, "id": 1418378}, {"segmentation": [[603.8, 375.91, 604.29, 372.56, 605.04, 370.45, 605.41, 369.33, 607.02, 368.21, 607.89, 368.09, 608.14, 368.59, 608.14, 371.07, 608.02, 372.43, 608.14, 374.67, 608.14, 376.4, 608.27, 377.52, 607.15, 377.52, 605.29, 376.65]], "area": 30.678500000000202, "iscrowd": 0, "image_id": 356358, "bbox": [603.8, 368.09, 4.47, 9.43], "category_id": 31, "id": 1430438}, {"segmentation": [[297.7, 370.59, 297.99, 381.43, 290.29, 383.14, 287.16, 379.43, 286.02, 374.58, 287.73, 371.16]], "area": 122.52789999999986, "iscrowd": 0, "image_id": 356358, "bbox": [286.02, 370.59, 11.97, 12.55], "category_id": 31, "id": 1432344}, {"segmentation": [[452.06, 240.63, 452.06, 229.29, 448.85, 223.51, 447.57, 209.81, 441.15, 209.6, 439.65, 210.24, 440.72, 219.66, 440.29, 226.08, 438.37, 232.71, 446.5, 241.27, 449.71, 242.98]], "area": 300.66080000000005, "iscrowd": 0, "image_id": 285568, "bbox": [438.37, 209.6, 13.69, 33.38], "category_id": 44, "id": 1483787}, {"segmentation": [[333.14, 132.2, 336.55, 123.74, 342.34, 124.48, 340.27, 132.05], [336.26, 155.06, 333.29, 164.12, 328.84, 162.33, 324.23, 162.93, 322.6, 157.14, 326.01, 148.38, 332.69, 147.04, 327.65, 149.42, 327.05, 152.54, 327.8, 153.28]], "area": 174.59219999999982, "iscrowd": 0, "image_id": 171603, "bbox": [322.6, 123.74, 19.74, 40.38], "category_id": 44, "id": 1485183}, {"segmentation": [[278.76, 238.5, 277.99, 234.36, 277.99, 229.91, 277.99, 225.3, 283.67, 224.08, 290.88, 223.46, 294.1, 224.23, 297.17, 225.46, 298.09, 230.37, 298.09, 233.59, 297.48, 237.58, 287.2, 237.58]], "area": 266.78019999999987, "iscrowd": 0, "image_id": 507154, "bbox": [277.99, 223.46, 20.1, 15.04], "category_id": 46, "id": 1498221}, {"segmentation": [[321.2, 143.21, 329.66, 144.38, 329.53, 154.67, 325.49, 153.89, 322.11, 153.23, 318.33, 151.93, 318.33, 144.64, 319.24, 142.95]], "area": 110.71870000000003, "iscrowd": 0, "image_id": 458137, "bbox": [318.33, 142.95, 11.33, 11.72], "category_id": 46, "id": 1499152}, {"segmentation": [[254.88, 146.91, 258.9, 146.78, 262.26, 148.73, 262.91, 154.55, 258.77, 159.73, 259.28, 166.72, 263.3, 168.27, 261.49, 169.05, 255.53, 169.18, 257.99, 167.62, 257.6, 158.95, 254.24, 157.27, 253.2, 153.64, 252.43, 148.85]], "area": 118.33784999999975, "iscrowd": 0, "image_id": 458137, "bbox": [252.43, 146.78, 10.87, 22.4], "category_id": 46, "id": 1500402}, {"segmentation": [[397.87, 142.22, 396.08, 141.17, 391.74, 141.32, 389.65, 142.07, 389.2, 145.81, 389.5, 150.44, 390.7, 152.09, 390.85, 153.43, 393.09, 155.08, 393.09, 157.32, 395.03, 157.32, 395.18, 154.78, 397.28, 153.43, 398.92, 150.59, 399.37, 145.81, 398.92, 143.42]], "area": 120.0252500000003, "iscrowd": 0, "image_id": 458137, "bbox": [389.2, 141.17, 10.17, 16.15], "category_id": 46, "id": 1500488}, {"segmentation": [[205.24, 151.87, 205.24, 157.19, 206.9, 161.85, 209.4, 164.85, 209.9, 167.68, 209.9, 172.01, 209.57, 176.67, 207.07, 179.0, 212.89, 179.5, 217.06, 179.67, 216.89, 176.84, 212.73, 175.34, 213.23, 167.52, 216.22, 163.02, 217.56, 158.36, 217.56, 152.7, 216.89, 151.37, 211.4, 149.7, 206.57, 150.53]], "area": 224.20254999999975, "iscrowd": 0, "image_id": 458137, "bbox": [205.24, 149.7, 12.32, 29.97], "category_id": 46, "id": 1500548}, {"segmentation": [[23.46, 1.48, 53.39, 78.34, 58.25, 81.57, 70.38, 71.06, 77.66, 76.72, 93.03, 79.96, 100.31, 69.44, 105.98, 71.06, 111.64, 76.72, 114.07, 77.53, 122.16, 75.91, 129.44, 69.44, 132.67, 67.01, 135.91, 70.25, 148.04, 67.01, 152.9, 51.64, 151.28, 1.48]], "area": 8279.625549999999, "iscrowd": 0, "image_id": 99115, "bbox": [23.46, 1.48, 129.44, 80.09], "category_id": 47, "id": 1502159}, {"segmentation": [[310.87, 275.98, 307.86, 309.41, 305.09, 313.19, 292.52, 313.94, 282.21, 308.66, 287.49, 280.5, 293.27, 279.24, 297.55, 273.71, 296.54, 271.95, 301.82, 269.44, 311.12, 273.71, 311.12, 275.72]], "area": 927.5877000000008, "iscrowd": 0, "image_id": 299946, "bbox": [282.21, 269.44, 28.91, 44.5], "category_id": 47, "id": 1505929}, {"segmentation": [[311.52, 200.52, 313.87, 219.07, 312.59, 220.78, 307.9, 220.99, 298.52, 220.99, 297.67, 215.02, 297.67, 209.48, 297.67, 202.65, 298.95, 199.67, 301.5, 198.18, 309.82, 198.39]], "area": 329.0785999999998, "iscrowd": 0, "image_id": 458137, "bbox": [297.67, 198.18, 16.2, 22.81], "category_id": 47, "id": 1513259}, {"segmentation": [[14.92, 383.27, 23.88, 383.27, 32.32, 382.22, 37.06, 350.06, 42.33, 351.11, 36.01, 383.27, 49.19, 383.27, 46.02, 404.36, 43.92, 432.83, 43.92, 446.01, 23.88, 444.96, 19.14, 446.01, 15.97, 409.63, 15.97, 395.4]], "area": 1953.1411499999997, "iscrowd": 0, "image_id": 378204, "bbox": [14.92, 350.06, 34.27, 95.95], "category_id": 47, "id": 1514958}, {"segmentation": [[474.4, 175.29, 474.6, 186.28, 483.04, 190.01, 486.37, 188.83, 487.94, 188.63, 488.92, 175.69, 485.19, 174.51, 478.72, 174.31, 474.8, 174.7]], "area": 194.07900000000006, "iscrowd": 0, "image_id": 458137, "bbox": [474.4, 174.31, 14.52, 15.7], "category_id": 47, "id": 1515066}, {"segmentation": [[457.55, 170.96, 458.76, 188.84, 466.0, 189.32, 468.18, 186.42, 469.63, 170.72, 467.45, 169.51, 465.28, 169.51, 462.86, 169.51, 460.69, 169.51, 458.52, 169.75]], "area": 205.02155000000002, "iscrowd": 0, "image_id": 458137, "bbox": [457.55, 169.51, 12.08, 19.81], "category_id": 47, "id": 1515163}, {"segmentation": [[487.91, 160.53, 496.58, 159.89, 496.58, 172.31, 496.58, 177.62, 495.03, 178.91, 489.72, 176.58, 488.3, 176.19, 486.88, 175.03, 487.52, 169.33, 487.13, 160.92]], "area": 159.78694999999993, "iscrowd": 0, "image_id": 458137, "bbox": [486.88, 159.89, 9.7, 19.02], "category_id": 47, "id": 1515233}, {"segmentation": [[247.06, 155.66, 253.97, 155.3, 254.57, 166.14, 251.35, 168.16, 246.47, 168.28]], "area": 92.77549999999988, "iscrowd": 0, "image_id": 458137, "bbox": [246.47, 155.3, 8.1, 12.98], "category_id": 47, "id": 1515357}, {"segmentation": [[279.79, 234.05, 283.58, 230.39, 286.12, 227.58, 288.08, 224.2, 291.18, 223.92, 290.48, 226.17, 287.8, 227.72, 286.54, 230.25, 283.16, 235.18, 281.19, 237.99, 277.53, 237.0, 279.36, 235.03]], "area": 44.320300000000316, "iscrowd": 0, "image_id": 458137, "bbox": [277.53, 223.92, 13.65, 14.07], "category_id": 49, "id": 1520835}, {"segmentation": [[38.37, 390.16, 40.0, 393.95, 42.88, 406.74, 32.43, 403.14, 23.23, 409.27, 17.64, 398.45, 19.09, 393.95, 23.05, 391.06, 27.2, 388.72, 23.23, 382.41, 22.15, 376.46, 20.71, 371.05, 16.2, 368.89, 17.1, 364.56, 25.4, 359.7, 31.52, 366.19, 36.93, 386.92]], "area": 681.0295499999999, "iscrowd": 0, "image_id": 299946, "bbox": [16.2, 359.7, 26.68, 49.57], "category_id": 49, "id": 1521366}, {"segmentation": [[475.06, 170.22, 470.93, 173.66, 470.13, 173.88, 470.25, 170.11, 467.16, 168.96, 463.38, 169.19, 461.32, 169.19, 460.4, 167.93, 460.63, 166.79, 461.55, 166.21, 463.72, 165.53, 466.58, 165.18, 469.56, 165.64, 472.08, 166.1, 474.48, 166.79, 475.17, 167.24, 475.74, 167.7, 475.74, 169.08]], "area": 64.81760000000013, "iscrowd": 0, "image_id": 458137, "bbox": [460.4, 165.18, 15.34, 8.7], "category_id": 51, "id": 1535725}, {"segmentation": [[180.39, 445.18, 0.0, 459.73, 0.0, 473.25, 0.44, 480.0, 181.91, 480.0]], "area": 4993.820749999998, "iscrowd": 0, "image_id": 507154, "bbox": [0.0, 445.18, 181.91, 34.82], "category_id": 62, "id": 1579457}, {"segmentation": [[2.51, 434.54, 110.56, 437.82, 111.21, 448.3, 121.69, 445.68, 121.03, 429.3, 90.26, 427.34, 58.82, 425.38, 20.19, 423.41, 1.85, 422.76, 0.54, 435.2, 3.82, 433.89], [143.95, 346.14, 166.22, 348.1, 163.6, 388.05, 157.7, 387.39, 157.05, 370.37, 157.7, 352.69, 144.61, 352.03, 142.64, 347.45, 142.64, 345.48, 149.19, 345.48]], "area": 1752.8996000000004, "iscrowd": 0, "image_id": 507154, "bbox": [0.54, 345.48, 165.68, 102.82], "category_id": 62, "id": 1584990}, {"segmentation": [[514.52, 403.04, 505.94, 399.23, 507.85, 384.93, 506.89, 367.78, 506.89, 351.59, 504.04, 345.87, 489.74, 336.34, 462.11, 333.48, 464.02, 324.91, 468.78, 315.38, 465.92, 300.13, 464.97, 275.36, 470.69, 252.49, 502.13, 261.07, 513.56, 263.93, 524.04, 263.93, 526.9, 263.93, 528.81, 252.49, 530.71, 237.25, 532.62, 226.77, 530.71, 221.05, 534.53, 213.43, 532.62, 201.04, 531.67, 192.47, 532.62, 180.08, 542.15, 178.18, 548.82, 182.94, 552.63, 183.89, 563.11, 181.99, 572.64, 171.51, 576.45, 168.65, 584.07, 159.12, 588.84, 149.59, 596.46, 159.12, 600.27, 167.69, 607.89, 164.84, 595.51, 202.95, 582.17, 249.64, 574.54, 274.41, 573.59, 299.18, 575.5, 310.62, 573.59, 322.05, 568.83, 336.34, 565.97, 347.78, 572.64, 361.11, 574.54, 366.83, 565.02, 368.74, 560.25, 353.49, 558.35, 347.78, 523.09, 341.11, 518.33, 363.97, 517.38, 379.22, 518.33, 391.6, 514.52, 395.42]], "area": 15045.5394, "iscrowd": 0, "image_id": 458137, "bbox": [462.11, 149.59, 145.78, 253.45], "category_id": 62, "id": 1588791}, {"segmentation": [[137.2, 371.6, 141.97, 361.11, 132.44, 321.1, 136.25, 294.42, 126.72, 266.79, 116.24, 209.62, 99.09, 188.66, 107.67, 177.22, 111.48, 170.55, 118.15, 173.41, 122.91, 159.12, 131.49, 156.26, 148.64, 170.55, 161.02, 177.22, 168.65, 181.99, 176.27, 176.27, 199.14, 183.89, 197.23, 216.29, 196.28, 231.53, 200.09, 268.69, 200.09, 274.41, 242.01, 256.31, 262.98, 249.64, 278.22, 256.31, 283.94, 271.55, 284.89, 298.23, 282.98, 326.81, 282.98, 334.44, 286.8, 358.26, 273.46, 356.35, 270.6, 344.92, 225.82, 344.92, 217.24, 370.64, 213.43, 388.75, 219.15, 398.27, 211.52, 407.8, 206.76, 401.13, 203.9, 374.45, 202.95, 353.49, 181.03, 351.59, 160.07, 357.3, 151.5, 366.83, 139.11, 378.27]], "area": 21962.64385, "iscrowd": 0, "image_id": 458137, "bbox": [99.09, 156.26, 187.71, 251.54], "category_id": 62, "id": 1590253}, {"segmentation": [[55.57, 156.73, 62.32, 161.67, 67.26, 171.57, 70.41, 181.46, 71.76, 194.95, 73.11, 198.55, 74.91, 212.49, 82.1, 234.52, 91.1, 238.57, 98.74, 236.77, 105.94, 233.62, 117.63, 231.38, 122.13, 231.38, 123.48, 231.38, 124.82, 241.27, 100.09, 244.87, 89.75, 250.26, 98.29, 256.11, 99.64, 259.71, 127.97, 263.75, 130.22, 264.2, 134.27, 291.19, 137.42, 297.93, 134.27, 301.08, 121.68, 304.68, 110.43, 310.97, 101.44, 319.97, 100.09, 324.91, 99.19, 337.05, 99.19, 346.95, 88.4, 346.95, 87.5, 333.46, 91.1, 320.42, 87.5, 310.97, 81.2, 315.47, 75.81, 312.77, 79.4, 301.08, 78.51, 294.78, 79.85, 292.53, 74.91, 284.89, 71.31, 266.9, 72.66, 259.71, 67.26, 245.77, 49.72, 195.79, 49.28, 181.85, 42.53, 167.46, 44.33, 157.12, 42.08, 148.13, 43.43, 144.98, 42.08, 140.48, 47.03, 141.83, 51.52, 144.98, 55.12, 148.13, 56.92, 156.67]], "area": 5933.5251000000035, "iscrowd": 0, "image_id": 458137, "bbox": [42.08, 140.48, 95.34, 206.47], "category_id": 62, "id": 1590661}, {"segmentation": [[51.63, 183.02, 42.05, 161.2, 36.73, 143.63, 27.14, 141.5, 19.69, 140.97, 12.77, 140.97, 11.71, 150.02, 26.08, 187.28, 29.27, 234.65, 28.74, 247.96, 34.6, 247.96, 35.13, 244.77, 34.06, 201.65, 47.37, 203.78, 47.37, 247.43, 56.95, 247.43, 52.69, 203.25, 49.5, 186.75]], "area": 2184.89645, "iscrowd": 0, "image_id": 458137, "bbox": [11.71, 140.97, 45.24, 106.99], "category_id": 62, "id": 1596438}, {"segmentation": [[391.66, 98.24, 385.44, 95.75, 381.71, 97.83, 373.41, 97.83, 373.41, 97.83, 373.41, 106.12, 377.56, 114.42, 377.56, 114.42, 382.54, 106.12, 387.1, 105.71]], "area": 178.41890000000004, "iscrowd": 0, "image_id": 458137, "bbox": [373.41, 95.75, 18.25, 18.67], "category_id": 62, "id": 1597588}, {"segmentation": [[332.45, 117.46, 329.46, 116.8, 324.98, 115.8, 323.32, 113.97, 319.83, 113.47, 317.17, 118.29, 319.0, 124.6, 320.16, 130.92, 319.99, 136.4, 319.99, 136.4, 323.32, 135.4, 327.47, 126.26, 330.62, 123.77]], "area": 190.66254999999998, "iscrowd": 0, "image_id": 458137, "bbox": [317.17, 113.47, 15.28, 22.93], "category_id": 62, "id": 1599532}, {"segmentation": [[292.85, 181.62, 331.05, 180.51, 333.27, 165.41, 338.82, 158.08, 369.03, 164.52, 370.36, 170.96, 365.47, 189.18, 368.8, 195.17, 364.36, 198.5, 364.81, 201.17, 367.69, 202.06, 364.81, 219.38, 362.81, 232.93, 363.92, 249.58, 360.59, 248.7, 358.81, 232.48, 342.38, 232.48, 306.84, 197.17, 293.74, 183.85]], "area": 3311.78285, "iscrowd": 0, "image_id": 507154, "bbox": [292.85, 158.08, 77.51, 91.5], "category_id": 62, "id": 1600323}, {"segmentation": [[270.29, 158.45, 296.31, 158.45, 306.01, 139.57, 327.95, 148.24, 321.82, 167.12, 323.35, 181.41, 295.8, 181.41, 296.31, 173.24, 278.96, 172.22, 277.94, 170.18, 297.84, 168.14, 298.35, 162.53, 270.8, 162.53, 270.8, 160.49]], "area": 1161.7368500000002, "iscrowd": 0, "image_id": 507154, "bbox": [270.29, 139.57, 57.66, 41.84], "category_id": 62, "id": 1600536}, {"segmentation": [[315.93, 151.82, 311.42, 151.1, 309.07, 148.39, 305.28, 147.67, 305.1, 147.67, 300.4, 145.5, 297.15, 116.26, 300.58, 113.91, 301.49, 113.55, 305.46, 114.45, 305.46, 114.45, 310.15, 109.22, 314.48, 112.1, 314.66, 112.29, 317.37, 121.31, 320.26, 135.57, 322.25, 137.02, 322.25, 137.02]], "area": 716.022000000001, "iscrowd": 0, "image_id": 458137, "bbox": [297.15, 109.22, 25.1, 42.6], "category_id": 62, "id": 1600617}, {"segmentation": [[517.1, 229.18, 515.76, 200.23, 508.35, 197.54, 499.26, 194.17, 491.18, 191.81, 485.46, 188.78, 479.4, 184.41, 473.68, 188.11, 477.72, 217.73, 489.84, 229.85, 493.2, 236.59, 502.29, 242.64, 513.07, 246.01, 515.42, 236.25]], "area": 1699.5073499999994, "iscrowd": 0, "image_id": 507154, "bbox": [473.68, 184.41, 43.42, 61.6], "category_id": 62, "id": 1601809}, {"segmentation": [[384.84, 143.23, 386.89, 146.46, 384.98, 152.32, 385.72, 155.69, 391.58, 156.28, 395.98, 155.99, 397.74, 153.06, 399.5, 150.86, 398.91, 149.1, 398.03, 148.22, 395.54, 148.36, 394.22, 148.07, 391.0, 146.16, 388.8, 143.38, 389.38, 141.62, 393.78, 140.88, 397.15, 140.59, 397.59, 139.57, 397.59, 137.37, 396.57, 136.49, 392.9, 136.49, 389.82, 137.22, 386.6, 138.69, 385.28, 139.71, 384.54, 141.32]], "area": 178.34570000000005, "iscrowd": 0, "image_id": 458137, "bbox": [384.54, 136.49, 14.96, 19.79], "category_id": 62, "id": 1602128}, {"segmentation": [[83.44, 153.04, 80.12, 141.25, 96.71, 136.83, 102.24, 139.41, 105.18, 157.1, 115.5, 156.73, 116.24, 163.36, 102.6, 157.83], [117.35, 165.21, 113.66, 151.94, 136.88, 145.3, 139.46, 146.78, 126.93, 177.74]], "area": 846.2792500000005, "iscrowd": 0, "image_id": 507154, "bbox": [80.12, 136.83, 59.34, 40.91], "category_id": 62, "id": 1602139}, {"segmentation": [[384.28, 142.74, 385.91, 145.79, 389.77, 146.61, 395.47, 148.44, 401.37, 149.05, 403.41, 152.51, 403.81, 163.7, 403.41, 178.34, 401.78, 189.74, 398.73, 203.57, 396.49, 209.68, 394.66, 207.85, 396.29, 202.15, 392.01, 197.88, 386.32, 195.43, 383.47, 210.69, 381.03, 219.24, 375.33, 229.61, 373.5, 229.61, 377.16, 222.09, 381.84, 206.22, 382.25, 196.86, 384.08, 183.84, 383.06, 172.04]], "area": 1097.446000000001, "iscrowd": 0, "image_id": 507154, "bbox": [373.5, 142.74, 30.31, 86.87], "category_id": 62, "id": 1602167}, {"segmentation": [[504.51, 381.72, 541.15, 383.36, 541.7, 386.64, 543.88, 396.48, 534.31, 399.49, 520.64, 398.94, 510.8, 390.19, 504.51, 383.36], [614.38, 262.22, 628.65, 259.88, 639.52, 260.94, 640.0, 263.71, 640.0, 286.93, 632.91, 280.12, 625.24, 271.38, 620.55, 265.2]], "area": 828.5128, "iscrowd": 0, "image_id": 507154, "bbox": [504.51, 259.88, 135.49, 139.61], "category_id": 62, "id": 1602578}, {"segmentation": [[492.9, 242.74, 516.19, 245.51, 516.74, 264.92, 523.95, 272.68, 524.51, 276.01, 497.34, 297.64, 492.9, 289.87], [530.61, 340.33, 523.4, 346.99, 521.73, 380.25, 513.97, 379.15, 518.41, 340.33, 531.71, 336.45]], "area": 1485.4891500000015, "iscrowd": 0, "image_id": 507154, "bbox": [492.9, 242.74, 38.81, 137.51], "category_id": 62, "id": 1603241}, {"segmentation": [[245.08, 189.45, 271.32, 170.41, 283.66, 164.23, 298.59, 161.15, 302.19, 169.89, 316.59, 168.35, 318.65, 151.37, 323.28, 162.18, 332.54, 164.75, 341.29, 158.57, 358.27, 116.38, 362.39, 104.55, 364.44, 98.89, 354.15, 80.88, 383.48, 78.31, 410.24, 93.23, 407.66, 110.21, 414.87, 142.11, 438.02, 208.48, 418.98, 253.25, 411.78, 272.8, 395.83, 295.44, 362.9, 301.61, 341.8, 317.05, 309.9, 333.0, 287.78, 333.0, 280.06, 331.45, 258.45, 296.46, 294.98, 245.53, 299.1, 235.24, 257.94, 210.54, 236.33, 197.68]], "area": 27625.822200000002, "iscrowd": 0, "image_id": 171603, "bbox": [236.33, 78.31, 201.69, 254.69], "category_id": 65, "id": 1612554}, {"segmentation": [[0.0, 0.81, 639.91, 1.62, 640.0, 360.0, 1.62, 360.0, 0.81, 2.43]], "area": 229171.1328, "iscrowd": 0, "image_id": 99115, "bbox": [0.0, 0.81, 640.0, 359.19], "category_id": 67, "id": 1614409}, {"segmentation": [[559.0, 132.57, 555.21, 132.39, 553.94, 134.56, 550.33, 136.18, 542.75, 136.18, 542.03, 142.86, 539.14, 148.46, 538.42, 153.51, 538.24, 157.3, 535.17, 159.83, 539.86, 160.01, 544.56, 160.91, 549.61, 165.24, 554.31, 174.09, 554.12, 176.44, 556.47, 179.87, 558.46, 178.06, 558.64, 175.71, 560.62, 172.83, 566.04, 171.02, 569.83, 169.22, 572.54, 165.79, 573.26, 160.91, 574.16, 153.87, 575.07, 149.18, 573.8, 147.19, 571.27, 145.75, 567.66, 140.15, 561.71, 141.05, 559.72, 141.23, 557.55, 140.87, 554.85, 139.07, 553.04, 137.26, 558.1, 134.56]], "area": 1015.3706000000002, "iscrowd": 0, "image_id": 458137, "bbox": [535.17, 132.39, 39.9, 47.48], "category_id": 67, "id": 1619454}, {"segmentation": [[188.76, 373.96, 303.1, 363.18, 343.01, 381.51, 362.43, 386.91, 415.68, 374.0, 442.48, 367.06, 481.18, 361.1, 505.01, 378.97, 511.95, 390.88, 497.07, 396.83, 472.25, 395.84, 449.42, 389.88, 421.63, 389.88, 403.77, 390.88, 382.92, 392.86, 371.01, 395.84, 365.06, 411.72, 413.69, 418.67, 570.52, 448.45, 589.37, 466.31, 609.23, 476.24, 217.16, 479.21]], "area": 30760.021249999994, "iscrowd": 0, "image_id": 507154, "bbox": [188.76, 361.1, 420.47, 118.11], "category_id": 67, "id": 1622488}, {"segmentation": [[371.51, 136.22, 373.31, 124.96, 376.92, 121.8, 388.64, 120.0, 393.14, 116.84, 403.06, 118.65, 406.21, 120.45, 404.41, 128.56, 394.95, 136.22, 387.73, 141.18, 384.58, 143.43, 377.37, 144.79, 377.37, 137.12]], "area": 591.1977500000002, "iscrowd": 0, "image_id": 458137, "bbox": [371.51, 116.84, 34.7, 27.95], "category_id": 67, "id": 1623254}, {"segmentation": [[199.14, 233.44, 192.47, 222.0, 186.75, 181.99, 181.03, 180.08, 176.27, 176.27, 170.55, 181.03, 168.65, 181.99, 166.74, 179.13, 190.56, 170.55, 224.86, 153.4, 247.73, 154.36, 283.94, 153.4, 308.71, 154.36, 338.25, 159.12, 397.32, 158.17, 435.43, 166.74, 457.35, 170.55, 495.46, 184.84, 504.04, 192.47, 517.38, 205.81, 515.47, 214.38, 512.61, 218.19, 509.75, 224.86, 505.94, 235.34, 503.08, 242.97, 498.32, 246.78, 488.79, 249.64, 480.22, 249.64, 471.64, 251.54, 469.73, 245.82, 476.4, 239.16, 481.17, 227.72, 482.12, 220.1, 483.07, 207.71, 483.07, 191.51, 479.26, 184.84, 464.97, 192.47, 457.35, 198.18, 454.49, 194.37, 454.49, 193.42, 434.48, 174.36, 432.58, 173.41, 426.86, 166.74, 415.42, 167.69, 404.94, 172.46, 396.37, 177.22, 394.46, 181.99, 390.65, 189.61, 389.7, 189.61, 382.08, 194.37, 379.22, 196.28, 373.5, 198.18, 366.83, 197.23, 364.93, 194.37, 364.93, 193.42, 341.11, 198.18, 339.2, 201.04, 333.48, 232.49, 333.48, 236.3, 330.62, 242.01, 322.05, 262.02, 319.19, 262.98, 317.29, 267.74, 318.24, 273.46, 322.05, 280.13, 316.33, 283.94, 282.03, 271.55, 278.22, 267.74, 272.5, 258.21, 265.83, 252.49, 263.93, 250.59, 236.3, 259.16, 231.53, 265.83, 229.63, 267.74, 228.67, 267.74, 202.0, 263.93, 199.14, 237.25]], "area": 20572.83165, "iscrowd": 0, "image_id": 458137, "bbox": [166.74, 153.4, 350.64, 130.54], "category_id": 67, "id": 1623351}, {"segmentation": [[125.7, 73.89, 132.42, 31.67, 247.56, 43.18, 238.93, 213.02, 175.6, 211.1, 161.2, 171.76, 147.77, 71.97, 126.66, 73.89]], "area": 15875.192349999998, "iscrowd": 0, "image_id": 30210, "bbox": [125.7, 31.67, 121.86, 181.35], "category_id": 77, "id": 1638295}, {"segmentation": [[210.26, 258.67, 160.08, 271.68, 132.2, 276.64, 130.65, 278.81, 133.44, 281.29, 161.63, 285.0, 174.95, 292.75, 181.14, 293.37, 269.73, 270.45, 254.86, 269.52, 241.85, 268.59, 227.92, 267.35, 219.55, 263.01, 213.98, 259.6]], "area": 2132.01205, "iscrowd": 0, "image_id": 285568, "bbox": [130.65, 258.67, 139.08, 34.7], "category_id": 81, "id": 1644702}, {"segmentation": [[5.78, 64.38, 113.31, 67.48, 109.17, 142.96, 94.7, 149.16, 86.43, 164.67, 82.29, 188.45, 81.26, 203.96, 83.33, 237.05, 83.33, 254.62, 91.6, 272.2, 96.77, 279.44, 94.7, 292.88, 89.53, 311.49, 87.46, 325.96, 87.46, 343.54, 82.29, 366.29, 81.26, 378.69, 57.48, 370.42, 35.77, 368.35, 28.53, 366.29, 21.29, 364.22, 19.22, 366.29, 21.29, 373.52, 7.85, 373.52, 0.61, 373.52, 0.54, 62.28]], "area": 28290.812049999997, "iscrowd": 0, "image_id": 299946, "bbox": [0.54, 62.28, 112.77, 316.41], "category_id": 82, "id": 1647126}, {"segmentation": [[322.7, 411.27, 317.74, 410.96, 318.98, 408.17, 318.36, 400.43, 318.36, 395.16, 316.5, 391.44, 317.12, 381.22, 316.5, 377.5, 317.12, 374.72, 318.05, 372.86, 318.36, 365.11, 322.7, 363.25, 325.79, 365.11, 326.72, 368.52, 325.79, 373.17, 330.75, 379.67, 331.68, 388.04, 329.51, 389.89, 328.27, 405.38, 327.96, 410.96, 323.32, 410.96]], "area": 513.2161499999992, "iscrowd": 0, "image_id": 356358, "bbox": [316.5, 363.25, 15.18, 48.02], "category_id": 1, "id": 1721391}, {"segmentation": [[147.99, 204.54, 145.93, 186.36, 151.71, 152.89, 148.82, 144.63, 149.65, 133.47, 155.84, 123.55, 159.15, 116.12, 165.76, 108.68, 173.2, 107.44, 177.33, 115.29, 176.5, 123.14, 174.02, 132.64, 175.26, 151.24, 176.09, 153.72, 173.95, 184.81, 170.54, 197.03, 172.52, 205.27, 169.68, 208.68, 164.0, 207.26, 163.15, 200.73, 158.03, 204.14, 149.22, 205.27]], "area": 2300.665499999999, "iscrowd": 0, "image_id": 445041, "bbox": [145.93, 107.44, 31.4, 101.24], "category_id": 1, "id": 1724814}, {"segmentation": [[392.07, 163.37, 371.53, 152.69, 336.62, 139.14, 348.94, 109.15, 357.98, 102.57, 377.28, 102.16, 390.84, 111.2, 393.72, 122.29, 398.23, 162.96]], "area": 2456.794800000001, "iscrowd": 0, "image_id": 378204, "bbox": [336.62, 102.16, 61.61, 61.21], "category_id": 1, "id": 1736360}, {"segmentation": [[75.77, 358.94, 76.27, 356.56, 76.9, 355.68, 79.15, 355.18, 81.29, 354.18, 83.42, 353.93, 84.17, 355.81, 84.92, 357.06, 85.3, 357.81, 85.68, 359.07, 87.56, 357.94, 88.81, 357.94, 89.94, 359.19, 89.94, 360.45, 88.31, 361.2, 87.94, 360.32, 87.56, 360.2]], "area": 49.650499999999845, "iscrowd": 0, "image_id": 356358, "bbox": [75.77, 353.93, 14.17, 7.27], "category_id": 1, "id": 1753667}, {"segmentation": [[426.41, 165.26, 441.89, 167.99, 459.18, 179.37, 473.74, 183.92, 475.56, 186.19, 471.92, 200.3, 468.73, 214.4, 479.65, 223.96, 472.83, 227.6, 455.08, 222.59, 446.89, 225.78, 441.43, 231.24, 428.23, 231.69, 417.31, 218.04, 420.5, 199.39, 426.41, 182.55, 424.14, 178.91, 417.77, 171.63, 425.5, 164.81]], "area": 2819.2096, "iscrowd": 0, "image_id": 445041, "bbox": [417.31, 164.81, 62.34, 66.88], "category_id": 4, "id": 1790863}, {"segmentation": [[70.63, 354.18, 65.69, 355.98, 64.35, 360.92, 60.75, 362.04, 55.37, 361.59, 55.59, 358.22, 52.67, 333.52, 50.43, 327.24, 47.73, 326.34, 43.91, 328.58, 42.12, 330.83, 40.32, 329.26, 36.5, 318.93, 22.58, 319.6, 22.58, 315.33, 64.8, 315.56, 70.41, 317.8, 71.98, 318.25, 69.74, 353.06]], "area": 996.0017000000003, "iscrowd": 0, "image_id": 356358, "bbox": [22.58, 315.33, 49.4, 46.71], "category_id": 8, "id": 1800430}, {"segmentation": [[15.32, 156.54, 15.32, 161.28, 10.86, 168.53, 10.58, 169.65, 13.09, 172.72, 11.41, 177.46, 12.81, 180.81, 14.2, 209.54, 20.34, 211.77, 28.43, 210.1, 32.34, 208.98, 32.89, 179.69, 30.1, 171.6, 27.87, 167.97, 26.48, 160.16, 25.08, 156.81, 22.57, 155.7]], "area": 958.1859000000001, "iscrowd": 0, "image_id": 285568, "bbox": [10.58, 155.7, 22.31, 56.07], "category_id": 44, "id": 1866028}, {"segmentation": [[25.25, 4.52, 31.79, 32.57, 48.62, 69.04, 56.1, 76.52, 65.45, 77.45, 82.29, 78.39, 97.25, 77.45, 112.21, 74.65, 134.65, 77.45, 145.87, 65.3, 152.42, 50.34, 154.29, 26.03, 154.29, 0.78]], "area": 8471.661049999999, "iscrowd": 0, "image_id": 99115, "bbox": [25.25, 0.78, 129.04, 77.61], "category_id": 44, "id": 1867386}, {"segmentation": [[465.22, 157.94, 461.64, 158.56, 458.05, 158.41, 457.74, 149.53, 459.14, 139.4, 460.7, 137.53, 461.17, 135.34, 463.97, 135.19, 464.29, 136.9, 465.85, 139.86, 465.38, 157.63]], "area": 157.8525500000002, "iscrowd": 0, "image_id": 507154, "bbox": [457.74, 135.19, 8.11, 23.37], "category_id": 44, "id": 1869405}, {"segmentation": [[342.69, 243.76, 342.69, 252.26, 341.75, 253.2, 336.55, 254.86, 331.12, 253.91, 329.94, 253.2, 329.46, 248.48, 329.94, 241.39, 329.94, 238.32, 335.84, 240.45], [330.17, 228.4, 329.46, 224.39, 329.46, 222.02, 331.35, 220.13, 333.24, 216.83, 333.48, 210.92, 333.24, 208.56, 334.66, 207.85, 336.55, 209.27, 336.31, 213.76, 336.79, 216.59, 339.62, 218.95, 340.09, 230.76, 340.09, 231.71, 334.66, 230.29]], "area": 319.82859999999994, "iscrowd": 0, "image_id": 285568, "bbox": [329.46, 207.85, 13.23, 47.01], "category_id": 44, "id": 1870560}, {"segmentation": [[219.32, 149.32, 219.4, 150.43, 218.03, 151.87, 217.16, 152.95, 217.09, 153.96, 217.09, 154.47, 225.31, 154.61, 225.23, 153.53, 224.59, 152.16, 223.87, 151.37, 223.0, 150.5, 223.14, 149.42, 223.14, 147.91, 223.14, 147.4, 221.99, 147.04, 219.76, 147.04, 218.96, 147.62, 219.18, 149.13], [223.83, 163.91, 224.0, 168.62, 223.52, 168.86, 222.23, 168.86, 220.89, 168.99, 220.95, 165.51, 222.72, 164.84, 223.76, 163.98], [217.29, 168.68, 217.23, 165.2, 218.02, 165.81, 218.75, 165.81, 219.12, 165.87, 219.18, 169.23, 218.08, 169.17, 217.17, 168.93]], "area": 59.19930000000017, "iscrowd": 0, "image_id": 507154, "bbox": [217.09, 147.04, 8.22, 22.19], "category_id": 44, "id": 1872554}, {"segmentation": [[495.4, 160.35, 495.91, 171.43, 495.4, 178.07, 493.01, 178.75, 491.48, 180.8, 491.31, 184.04, 491.31, 185.23, 489.43, 185.06, 489.6, 181.65, 490.63, 177.05, 486.2, 175.69, 485.34, 175.01, 483.13, 172.28, 486.03, 159.16, 494.71, 159.67]], "area": 210.31585000000027, "iscrowd": 0, "image_id": 458137, "bbox": [483.13, 159.16, 12.78, 26.07], "category_id": 46, "id": 1873949}, {"segmentation": [[406.03, 324.94, 403.87, 345.09, 401.71, 350.85, 397.03, 359.49, 391.27, 363.45, 387.67, 387.92, 394.15, 390.44, 382.63, 396.56, 379.03, 396.56, 373.64, 396.56, 372.56, 392.24, 372.92, 389.36, 375.08, 387.56, 383.71, 386.84, 384.43, 363.09, 376.87, 352.29, 375.08, 337.9, 376.15, 330.7, 376.87, 322.06, 378.31, 320.98, 384.07, 320.26, 391.63, 320.26, 398.47, 320.98, 403.87, 322.06, 408.55, 326.74]], "area": 1354.8762499999998, "iscrowd": 0, "image_id": 507154, "bbox": [372.56, 320.26, 35.99, 76.3], "category_id": 46, "id": 1874340}, {"segmentation": [[196.56, 184.2, 197.31, 180.46, 196.86, 178.82, 194.17, 176.12, 194.32, 164.3, 197.61, 162.66, 202.4, 162.81, 205.09, 165.05, 205.99, 169.24, 205.69, 175.23, 204.34, 178.82, 202.7, 181.36, 201.65, 182.11, 201.65, 183.6, 203.59, 184.8, 206.44, 187.19, 205.54, 188.99, 201.35, 189.44, 199.25, 188.84, 198.06, 186.3, 196.86, 184.95]], "area": 237.2077500000001, "iscrowd": 0, "image_id": 458137, "bbox": [194.17, 162.66, 12.27, 26.78], "category_id": 46, "id": 1875337}, {"segmentation": [[336.82, 140.17, 335.92, 150.83, 339.09, 154.91, 339.77, 160.81, 337.28, 162.39, 340.9, 162.85, 344.76, 163.75, 342.04, 160.13, 342.49, 154.46, 344.99, 149.92, 345.21, 138.59]], "area": 150.7499500000003, "iscrowd": 0, "image_id": 458137, "bbox": [335.92, 138.59, 9.29, 25.16], "category_id": 46, "id": 1875681}, {"segmentation": [[544.69, 354.84, 585.0, 283.59, 582.19, 278.91, 532.5, 350.16, 527.81, 354.84], [523.13, 354.84, 571.88, 275.16, 569.06, 272.34, 504.38, 355.78], [500.63, 353.91, 559.69, 273.28, 555.0, 268.59, 495.94, 346.41, 486.56, 350.16, 511.88, 315.47, 544.69, 268.59, 549.38, 261.09, 542.81, 257.34, 478.13, 333.28, 457.5, 353.91, 458.44, 354.84]], "area": 4182.398400000009, "iscrowd": 0, "image_id": 99115, "bbox": [457.5, 257.34, 127.5, 98.44], "category_id": 48, "id": 1889696}, {"segmentation": [[229.32, 217.84, 235.81, 216.57, 240.01, 214.01, 249.23, 211.82, 250.96, 212.82, 250.41, 214.19, 239.09, 215.2, 237.72, 216.47, 236.45, 218.12, 234.8, 218.57, 230.51, 219.12, 228.87, 218.3]], "area": 34.83260000000006, "iscrowd": 0, "image_id": 458137, "bbox": [228.87, 211.82, 22.09, 7.3], "category_id": 50, "id": 1896832}, {"segmentation": [[327.97, 357.98, 323.78, 368.31, 323.78, 374.18, 319.31, 376.13, 315.4, 375.57, 312.33, 366.36, 317.92, 360.5, 319.59, 349.33, 312.89, 330.07, 311.77, 318.62, 313.73, 308.85, 314.84, 299.92, 319.87, 297.12, 320.43, 278.7, 320.15, 272.28, 318.75, 268.93, 317.92, 273.95, 315.12, 270.88, 314.84, 260.83, 316.24, 257.76, 321.54, 257.76, 321.82, 265.3, 324.06, 272.0, 326.57, 276.47, 334.11, 275.91, 343.04, 287.91, 347.23, 292.1, 353.65, 293.77, 355.04, 274.23, 352.25, 253.85, 347.79, 246.87, 348.34, 243.52, 348.62, 239.9, 342.76, 225.1, 338.29, 212.82, 339.97, 200.81, 348.34, 195.51, 357.56, 192.44, 363.14, 190.48, 372.35, 197.74, 382.12, 195.51, 391.62, 184.9, 401.67, 177.64, 406.69, 176.25, 413.95, 168.15, 421.49, 164.8, 427.91, 164.8, 437.12, 172.89, 439.63, 176.8, 447.45, 179.87, 452.47, 187.69, 459.17, 192.44, 465.87, 190.2, 468.67, 184.62, 472.57, 184.62, 476.2, 187.69, 480.67, 188.25, 486.81, 193.27, 488.21, 205.56, 479.55, 226.5, 476.48, 232.08, 477.04, 238.5, 474.81, 243.25, 470.62, 251.34, 465.87, 271.44, 465.6, 284.0, 465.04, 289.03, 464.48, 308.01, 464.76, 314.71, 460.57, 321.13, 459.45, 322.25, 461.13, 332.02, 461.97, 342.63, 463.64, 367.75, 461.97, 377.8, 458.06, 386.46, 454.15, 395.11, 452.75, 400.42, 453.31, 408.79, 457.5, 413.82, 461.13, 417.17, 464.48, 419.4, 462.52, 424.0, 447.17, 424.0, 444.1, 412.98, 441.31, 403.21, 441.59, 401.53, 411.16, 386.74, 399.71, 383.67, 389.94, 382.83, 384.64, 384.5, 370.68, 396.23, 365.37, 403.49, 360.35, 409.91, 358.39, 411.3, 358.12, 417.73, 357.0, 423.59, 345.83, 424.0, 347.79, 420.24, 348.62, 411.03, 345.27, 400.42, 340.81, 389.53, 340.25, 383.39, 341.09, 369.43, 342.48, 363.29, 331.59, 361.05]], "area": 29134.39410000001, "iscrowd": 0, "image_id": 458137, "bbox": [311.77, 164.8, 176.44, 259.2], "category_id": 62, "id": 1930911}, {"segmentation": [[2.23, 232.54, 0.0, 193.46, 19.59, 185.32, 34.24, 183.7, 38.59, 189.66, 40.21, 212.46, 45.64, 234.71, 45.64, 236.88]], "area": 1898.6877500000003, "iscrowd": 0, "image_id": 507154, "bbox": [0.0, 183.7, 45.64, 53.18], "category_id": 62, "id": 1933279}, {"segmentation": [[184.37, 136.14, 193.68, 103.56, 263.85, 105.71, 274.59, 156.91, 266.0, 149.75, 253.47, 150.46, 245.95, 149.03, 241.3, 142.23, 235.21, 136.5, 231.99, 134.35, 227.33, 132.92, 220.89, 134.71, 216.23, 135.07, 213.01, 138.29, 213.37, 142.95, 211.94, 148.67, 202.99, 149.39, 205.14, 141.15, 202.63, 135.78, 198.69, 135.78, 196.54, 138.29, 195.11, 149.03, 188.67, 143.66, 186.52, 139.72]], "area": 3076.4747500000003, "iscrowd": 0, "image_id": 507154, "bbox": [184.37, 103.56, 90.22, 53.35], "category_id": 62, "id": 1934539}, {"segmentation": [[606.01, 178.62, 609.81, 158.7, 618.34, 134.98, 622.77, 130.87, 625.62, 128.97, 631.0, 125.81, 633.84, 127.71, 631.0, 135.3, 625.62, 146.05, 622.46, 163.13, 621.19, 171.03, 619.61, 177.04, 616.76, 181.47, 616.45, 192.86, 617.71, 199.81, 619.29, 205.82, 618.98, 210.25, 616.76, 207.41, 613.28, 202.34, 609.17, 201.71, 607.28, 196.65, 611.39, 192.22, 613.6, 185.58, 613.28, 182.74, 608.54, 184.32, 608.54, 184.63, 607.59, 192.22, 606.96, 199.81, 608.54, 207.09, 610.44, 215.63, 610.75, 217.53, 610.44, 220.37, 606.01, 218.79, 605.06, 209.94, 605.06, 206.46, 597.79, 207.09, 596.84, 203.61, 600.95, 201.4, 603.16, 196.97, 603.8, 191.28, 603.8, 185.9]], "area": 1024.5903000000046, "iscrowd": 0, "image_id": 458137, "bbox": [596.84, 125.81, 37.0, 94.56], "category_id": 62, "id": 1941628}, {"segmentation": [[509.33, 126.62, 518.33, 131.22, 518.12, 131.43, 519.58, 135.61, 520.0, 140.43, 521.26, 149.63, 522.09, 153.81, 522.3, 156.95, 527.74, 162.18, 535.9, 160.09, 537.15, 157.16, 536.95, 154.44, 537.57, 151.93, 541.13, 144.19, 542.8, 135.61, 540.92, 130.8, 537.36, 127.45, 535.06, 128.08, 533.6, 130.38, 530.67, 126.62, 529.62, 121.81, 526.69, 120.34, 524.81, 114.48, 520.21, 112.39, 515.82, 115.11, 513.72, 117.62, 510.59, 119.51, 507.24, 122.85, 505.98, 124.94]], "area": 880.2291499999993, "iscrowd": 0, "image_id": 458137, "bbox": [505.98, 112.39, 36.82, 49.79], "category_id": 62, "id": 1944752}, {"segmentation": [[186.24, 117.54, 190.35, 116.04, 198.2, 116.42, 206.04, 118.66, 203.8, 123.51, 207.53, 131.73, 209.77, 140.32, 210.9, 142.94, 207.53, 148.91, 206.41, 153.39, 204.92, 156.75, 195.21, 156.75, 193.71, 171.32, 190.35, 170.95, 189.61, 152.27, 187.36, 136.96, 185.87, 127.99, 184.0, 121.65, 184.0, 117.16]], "area": 864.6743499999998, "iscrowd": 0, "image_id": 458137, "bbox": [184.0, 116.04, 26.9, 55.28], "category_id": 62, "id": 1944891}, {"segmentation": [[48.62, 230.65, 117.19, 57.35, 167.06, 66.08, 179.53, 115.95, 162.08, 139.64, 198.23, 152.1, 254.34, 137.14, 319.17, 148.36, 351.58, 167.06, 426.39, 158.34, 628.36, 177.04, 590.96, 215.69, 461.3, 228.16, 438.86, 238.13, 349.09, 249.35, 337.87, 249.35, 341.61, 219.43, 324.16, 203.22, 315.43, 173.3, 311.69, 170.81, 251.84, 208.21, 245.61, 216.94, 223.17, 230.65, 194.49, 240.62, 47.38, 230.65]], "area": 44301.241500000004, "iscrowd": 0, "image_id": 429754, "bbox": [47.38, 57.35, 580.98, 192.0], "category_id": 67, "id": 1959055}, {"segmentation": [[639.47, 59.99, 405.74, 52.51, 409.48, 41.3, 405.74, 31.95, 375.83, 26.34, 353.39, 26.34, 338.43, 41.3, 332.82, 59.99, 136.49, 58.12, 1.87, 254.45, 1.87, 349.81, 640.0, 349.81]], "area": 175120.57595000003, "iscrowd": 0, "image_id": 368142, "bbox": [1.87, 26.34, 638.13, 323.47], "category_id": 67, "id": 1960559}, {"segmentation": [[640.0, 333.56, 639.2, 334.94, 640.0, 377.91, 545.87, 347.88, 544.03, 343.72]], "area": 2278.5575500000004, "iscrowd": 0, "image_id": 399873, "bbox": [544.03, 333.56, 95.97, 44.35], "category_id": 67, "id": 1961132}, {"segmentation": [[637.34, 420.47, 639.55, 379.53, 537.76, 348.55, 525.58, 345.23, 404.98, 360.72, 368.46, 366.25, 360.72, 371.78, 329.74, 389.49, 313.14, 387.27, 306.5, 399.44, 292.11, 409.4, 204.7, 401.66, 177.04, 399.44, 167.08, 392.81, 101.8, 398.34, 98.48, 393.91, 95.16, 388.38, 1.11, 395.02, 1.11, 419.36]], "area": 25647.42135000001, "iscrowd": 0, "image_id": 399873, "bbox": [1.11, 345.23, 638.44, 75.24], "category_id": 67, "id": 1963179}, {"segmentation": [[579.06, 280.45, 640.0, 275.91, 635.83, 430.32, 5.68, 430.32, 4.54, 395.13, 31.79, 374.69, 27.25, 286.13, 87.43, 282.72, 78.34, 300.89, 96.51, 314.51, 106.73, 333.81, 172.58, 349.71, 188.48, 350.84, 213.46, 366.74, 237.3, 374.69, 271.36, 379.23, 346.3, 379.23, 391.72, 379.23, 443.95, 362.2, 468.93, 354.25, 547.27, 329.27, 575.66, 305.43, 572.25, 292.94]], "area": 54415.91485, "iscrowd": 0, "image_id": 260150, "bbox": [4.54, 275.91, 635.46, 154.41], "category_id": 67, "id": 1965150}, {"segmentation": [[222.32, 354.2, 263.98, 350.35, 266.55, 364.45, 224.89, 367.66]], "area": 583.1469000000003, "iscrowd": 0, "image_id": 507154, "bbox": [222.32, 350.35, 44.23, 17.31], "category_id": 77, "id": 1976255}, {"segmentation": [[369.45, 248.79, 374.64, 119.69, 365.98, 119.69, 260.28, 117.09, 243.81, 274.78, 333.06, 283.44]], "area": 18773.3101, "iscrowd": 0, "image_id": 30210, "bbox": [243.81, 117.09, 130.83, 166.35], "category_id": 77, "id": 1976384}, {"segmentation": [[365.84, 310.8, 433.67, 416.44, 603.8, 383.08, 495.94, 279.66, 372.51, 295.23]], "area": 19433.498799999994, "iscrowd": 0, "image_id": 30210, "bbox": [365.84, 279.66, 237.96, 136.78], "category_id": 77, "id": 1977423}, {"segmentation": [[57.52, 335.31, 38.72, 267.83, 33.19, 233.54, 43.14, 160.53, 44.25, 81.99, 97.35, 67.61, 148.23, 80.88, 179.21, 243.5, 182.53, 255.67, 212.39, 328.68, 175.89, 314.29, 158.19, 322.04, 142.7, 337.53, 111.73, 346.38, 87.39, 346.38, 75.22, 343.06]], "area": 34327.772800000006, "iscrowd": 0, "image_id": 30210, "bbox": [33.19, 67.61, 179.2, 278.77], "category_id": 77, "id": 1977949}, {"segmentation": [[0.0, 214.07, 66.08, 209.08, 73.56, 281.39, 165.82, 307.57, 177.04, 472.15, 0.0, 469.65, 0.0, 219.05]], "area": 36009.9482, "iscrowd": 0, "image_id": 285568, "bbox": [0.0, 209.08, 177.04, 263.07], "category_id": 79, "id": 1979868}, {"segmentation": [[393.5, 117.49, 392.3, 120.15, 392.94, 122.4, 394.47, 123.44, 395.51, 124.33, 401.62, 123.6, 401.78, 119.66, 401.7, 117.9, 401.14, 117.17, 396.64, 117.41]], "area": 56.90694999999985, "iscrowd": 0, "image_id": 458137, "bbox": [392.3, 117.17, 9.48, 7.16], "category_id": 86, "id": 1992749}, {"segmentation": [[232.09, 371.42, 225.8, 320.44, 227.9, 307.87, 251.64, 323.23, 285.86, 321.13, 301.23, 293.2, 305.42, 327.42, 299.13, 369.32]], "area": 3999.54475, "iscrowd": 0, "image_id": 92826, "bbox": [225.8, 293.2, 79.62, 78.22], "category_id": 86, "id": 1993347}, {"segmentation": [[297.1, 178.0, 303.11, 170.73, 311.01, 179.27, 328.09, 180.85, 326.83, 183.69, 312.28, 187.49, 299.0, 185.91, 298.36, 184.96]], "area": 250.85544999999973, "iscrowd": 0, "image_id": 458137, "bbox": [297.1, 170.73, 30.99, 16.76], "category_id": 86, "id": 1993739}, {"segmentation": [[222.51, 113.21, 208.66, 103.87, 208.96, 100.26, 209.86, 97.85, 206.85, 94.23, 203.24, 92.73, 200.23, 93.03, 197.21, 95.13, 196.31, 100.56, 196.01, 103.27, 192.09, 108.09, 190.89, 109.29, 189.38, 114.11, 189.08, 116.82, 192.09, 117.42, 200.83, 117.73, 200.83, 117.12, 207.15, 117.12, 214.68, 116.22, 218.0, 114.71]], "area": 455.78490000000005, "iscrowd": 0, "image_id": 458137, "bbox": [189.08, 92.73, 33.43, 25.0], "category_id": 1, "id": 2001151}, {"segmentation": [[137.9, 350.97, 138.21, 347.54, 137.74, 343.95, 137.43, 342.71, 140.23, 340.84, 141.64, 339.59, 142.73, 340.21, 144.13, 343.18, 145.06, 346.45, 144.44, 349.88, 140.23, 352.06]], "area": 66.92425000000006, "iscrowd": 0, "image_id": 356358, "bbox": [137.43, 339.59, 7.63, 12.47], "category_id": 1, "id": 2023207}, {"segmentation": [[540.4, 205.8, 509.6, 211.4, 487.2, 232.4, 533.4, 288.4, 561.4, 261.8], [574.0, 208.6, 553.0, 208.6, 562.8, 224.0, 568.4, 217.0]], "area": 3593.659999999998, "iscrowd": 0, "image_id": 378204, "bbox": [487.2, 205.8, 86.8, 82.6], "category_id": 3, "id": 2041421}, {"segmentation": [[74.83, 359.32, 74.9, 361.32, 75.04, 362.25, 80.26, 362.32, 80.9, 364.75, 82.55, 364.25, 85.19, 364.1, 85.33, 364.96, 85.41, 366.53, 85.69, 367.25, 87.05, 367.32, 87.26, 368.46, 88.05, 369.25, 89.91, 368.1, 89.69, 358.96, 88.76, 358.03, 86.26, 357.39, 83.69, 357.67, 79.83, 357.46, 76.9, 357.39, 75.47, 357.89, 74.76, 359.32]], "area": 104.58530000000013, "iscrowd": 0, "image_id": 356358, "bbox": [74.76, 357.39, 15.15, 11.86], "category_id": 33, "id": 2081991}, {"segmentation": [[300.79, 196.76, 303.77, 198.0, 305.83, 198.61, 308.5, 200.05, 311.39, 200.88, 314.99, 201.7, 316.63, 200.88, 318.59, 199.95, 319.21, 196.66, 319.51, 194.81, 316.22, 192.34, 309.33, 191.31, 301.51, 193.67, 301.1, 195.01, 301.41, 196.66]], "area": 132.7596999999999, "iscrowd": 0, "image_id": 458137, "bbox": [300.79, 191.31, 18.72, 10.39], "category_id": 51, "id": 2108037}, {"segmentation": [[346.0, 102.23, 346.19, 101.84, 350.61, 103.57, 351.57, 106.84, 353.68, 105.68, 353.87, 104.53, 355.22, 103.57, 356.75, 104.72, 357.14, 105.88, 358.29, 108.37, 359.44, 110.68, 360.02, 110.87, 360.98, 109.91, 361.94, 109.14, 362.71, 108.76, 364.63, 109.91, 365.39, 111.06, 366.93, 111.83, 368.08, 111.83, 368.27, 111.83, 368.85, 111.44, 370.19, 110.48, 371.54, 108.56, 374.03, 107.8, 374.8, 108.76, 375.38, 110.48, 375.38, 112.4, 373.46, 115.28, 374.03, 119.7, 374.03, 123.73, 372.88, 126.04, 370.19, 128.92, 370.0, 130.45, 370.39, 131.8, 370.96, 135.06, 369.04, 138.33, 369.62, 140.63, 373.84, 137.37, 375.19, 137.37, 376.15, 139.29, 375.95, 145.43, 375.57, 151.0, 374.61, 152.92, 373.65, 152.92, 368.66, 139.48, 365.39, 126.61, 363.28, 125.46, 361.55, 125.46, 355.99, 125.46, 355.22, 124.69, 354.45, 119.51, 353.3, 110.48, 347.73, 105.68]], "area": 478.56534999999917, "iscrowd": 0, "image_id": 458137, "bbox": [346.0, 101.84, 30.15, 51.08], "category_id": 62, "id": 2122506}, {"segmentation": [[117.77, 155.7, 100.93, 153.47, 98.39, 158.56, 96.48, 169.68, 100.3, 189.06, 99.98, 200.82, 122.86, 201.45, 123.49, 195.73, 125.4, 184.61, 125.72, 174.44, 122.54, 163.0, 120.32, 157.28, 121.27, 155.7]], "area": 1169.2821999999999, "iscrowd": 0, "image_id": 399873, "bbox": [96.48, 153.47, 29.24, 47.98], "category_id": 86, "id": 2146256}, {"segmentation": [[0.0, 338.7, 0.92, 339.01, 2.05, 339.73, 2.05, 341.17, 1.33, 343.02, 1.33, 344.05, 1.33, 344.77, 2.77, 346.62, 3.8, 347.34, 4.52, 350.21, 4.52, 351.24, 5.24, 351.96, 6.68, 353.09, 7.4, 354.12, 7.4, 354.84, 5.34, 354.22, 4.21, 353.5, 2.77, 354.84, 2.77, 357.0, 3.08, 360.6, 1.74, 363.17, 0.3, 364.61, 0.0, 364.61, 0.0, 339.42]], "area": 76.66280000000013, "iscrowd": 0, "image_id": 356358, "bbox": [0.0, 338.7, 7.4, 25.91], "category_id": 1, "id": 2149768}, {"segmentation": [[266.2, 354.91, 265.88, 349.82, 266.12, 347.76, 267.15, 345.61, 266.91, 343.23, 268.03, 342.59, 268.82, 344.42, 268.74, 346.01, 268.74, 347.44, 269.06, 349.11, 269.06, 352.85, 268.98, 354.91, 269.38, 356.34, 266.44, 356.66]], "area": 34.92230000000013, "iscrowd": 0, "image_id": 356358, "bbox": [265.88, 342.59, 3.5, 14.07], "category_id": 1, "id": 2149971}, {"segmentation": [[451.07, 346.32, 449.31, 345.98, 448.9, 347.07, 449.38, 348.29, 448.56, 349.03, 448.9, 352.49, 449.31, 355.61, 449.44, 356.97, 449.85, 356.63, 449.85, 354.73, 450.26, 354.87, 451.07, 355.61, 451.41, 350.19, 451.34, 347.88, 450.73, 347.95, 451.07, 346.86]], "area": 21.366050000000225, "iscrowd": 0, "image_id": 356358, "bbox": [448.56, 345.98, 2.85, 10.99], "category_id": 1, "id": 2150366}, {"segmentation": [[508.36, 188.55, 500.69, 181.98, 484.26, 175.4, 484.26, 172.12, 483.16, 171.02, 485.35, 161.16, 490.83, 156.78, 485.35, 145.82, 488.64, 134.87, 494.12, 128.29, 502.88, 128.29, 513.84, 130.48, 517.13, 141.44, 519.32, 146.92, 520.41, 162.26, 514.94, 176.5]], "area": 1611.101500000001, "iscrowd": 0, "image_id": 458137, "bbox": [483.16, 128.29, 37.25, 60.26], "category_id": 1, "id": 2160086}, {"segmentation": [[30.92, 235.53, 10.33, 246.96, 3.55, 259.1, 4.97, 292.67, 8.9, 291.95, 8.54, 276.96, 12.47, 261.6, 28.9, 246.24, 44.61, 236.25]], "area": 546.1541000000001, "iscrowd": 0, "image_id": 507154, "bbox": [3.55, 235.53, 41.06, 57.14], "category_id": 62, "id": 2190448}, {"segmentation": [[179.39, 113.07, 178.73, 115.24, 178.31, 117.75, 177.89, 119.5, 181.23, 121.42, 184.32, 120.25, 186.0, 116.49, 189.09, 115.74, 189.59, 110.48, 185.33, 111.81, 183.15, 113.4]], "area": 71.11560000000001, "iscrowd": 0, "image_id": 458137, "bbox": [177.89, 110.48, 11.7, 10.94], "category_id": 67, "id": 2194150}, {"segmentation": [[488.0, 228.47, 421.45, 214.05, 417.02, 211.84, 422.56, 58.78, 430.33, 27.73, 482.45, 26.62, 503.53, 32.16, 507.96, 35.49, 514.62, 7.76, 525.71, 9.98, 505.75, 197.42, 499.09, 221.82, 472.47, 133.09, 464.71, 136.42, 486.89, 224.04]], "area": 17141.180500000002, "iscrowd": 0, "image_id": 30210, "bbox": [417.02, 7.76, 108.69, 220.71], "category_id": 77, "id": 2195998}, {"segmentation": {"counts": [116354, 10, 416, 12, 414, 14, 412, 16, 411, 16, 411, 16, 411, 16, 411, 15, 412, 15, 412, 14, 413, 14, 414, 11, 417, 8, 421, 3, 12366, 8, 418, 10, 416, 14, 412, 16, 411, 17, 410, 18, 409, 18, 409, 19, 408, 19, 408, 23, 405, 26, 402, 35, 391, 37, 389, 39, 388, 39, 388, 12, 3, 24, 388, 12, 4, 23, 388, 12, 8, 19, 388, 12, 9, 18, 388, 12, 10, 17, 387, 13, 12, 14, 388, 13, 14, 11, 389, 12, 21, 2, 392, 11, 416, 10, 417, 9, 418, 5, 423, 3, 425, 2, 32, 1, 426, 2, 388, 6, 24, 5, 1, 4, 386, 8, 13, 1, 5, 14, 385, 10, 2, 1, 9, 20, 384, 16, 2, 25, 384, 43, 384, 43, 384, 43, 384, 42, 385, 41, 386, 39, 388, 37, 391, 35, 393, 31, 397, 24, 404, 23, 403, 24, 402, 25, 402, 25, 402, 25, 402, 25, 402, 25, 402, 25, 402, 25, 402, 25, 402, 13, 8, 4, 403, 9, 11, 3, 405, 6, 13, 2, 408, 3, 5125, 1, 425, 3, 423, 6, 420, 10, 10, 4, 403, 24, 403, 24, 403, 24, 403, 24, 403, 24, 403, 24, 404, 22, 406, 3, 9, 8, 423, 1, 31149, 6, 420, 8, 418, 10, 416, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 13, 414, 14, 413, 14, 414, 13, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 416, 10, 418, 8, 421, 3, 20985, 6, 420, 8, 418, 10, 416, 12, 415, 12, 415, 13, 413, 15, 362, 2, 47, 17, 360, 6, 32, 30, 358, 69, 357, 70, 357, 70, 356, 71, 355, 72, 354, 73, 354, 73, 353, 74, 345, 82, 344, 82, 344, 83, 343, 84, 343, 83, 344, 61, 3, 4, 4, 10, 345, 62, 13, 5, 347, 63, 14, 7, 343, 65, 11, 9, 342, 66, 9, 11, 341, 68, 6, 13, 341, 71, 2, 19, 336, 71, 1, 20, 336, 92, 336, 92, 336, 91, 336, 91, 336, 91, 336, 91, 336, 29, 7, 54, 338, 18, 26, 44, 340, 15, 34, 37, 343, 7, 48, 29, 26619], "size": [427, 640]}, "area": 5094, "iscrowd": 1, "image_id": 437373, "bbox": [272, 189, 305, 95], "category_id": 1, "id": 900100437373}, {"segmentation": {"counts": [93968, 3, 421, 5, 416, 1, 3, 6, 414, 1, 4, 7, 417, 8, 417, 8, 411, 1, 5, 8, 410, 2, 4, 9, 409, 2, 5, 9, 408, 3, 5, 9, 408, 3, 4, 3, 3, 3, 409, 3, 4, 2, 5, 1, 410, 3, 4, 2, 416, 2, 4, 3, 416, 2, 4, 2, 417, 2, 4, 2, 418, 1, 3, 3, 422, 2, 423, 1, 170387], "size": [425, 640]}, "area": 222, "iscrowd": 1, "image_id": 226801, "bbox": [221, 32, 18, 16], "category_id": 3, "id": 900300226801}, {"segmentation": {"counts": [553, 1, 1, 28, 2, 9, 3, 4, 426, 3, 3, 50, 413, 15, 1, 52, 410, 17, 1, 53, 409, 72, 400, 6, 1, 73, 398, 82, 398, 82, 361, 17, 3, 6, 10, 83, 359, 31, 7, 83, 359, 32, 5, 84, 358, 35, 2, 84, 35, 9, 315, 36, 1, 52, 1, 31, 32, 13, 313, 90, 4, 27, 31, 16, 312, 90, 2, 29, 17, 31, 60, 9, 242, 120, 16, 33, 57, 13, 242, 120, 15, 38, 50, 16, 241, 120, 14, 40, 47, 19, 241, 119, 14, 56, 18, 32, 242, 118, 13, 58, 15, 34, 244, 116, 13, 59, 14, 34, 250, 49, 1, 61, 12, 60, 12, 35, 251, 49, 1, 60, 13, 59, 10, 37, 251, 110, 13, 59, 10, 37, 252, 62, 1, 46, 14, 58, 9, 38, 253, 108, 15, 57, 9, 38, 254, 107, 17, 55, 8, 39, 256, 5, 3, 98, 22, 49, 8, 39, 264, 64, 2, 32, 22, 49, 8, 39, 265, 63, 4, 30, 23, 48, 9, 37, 267, 62, 4, 30, 24, 47, 9, 37, 253, 7, 9, 60, 5, 29, 26, 45, 10, 36, 251, 10, 8, 60, 5, 29, 34, 36, 12, 35, 250, 12, 8, 15, 1, 43, 6, 27, 36, 35, 14, 33, 250, 13, 8, 14, 3, 41, 7, 26, 38, 33, 20, 26, 249, 15, 8, 14, 6, 38, 9, 23, 47, 25, 16, 29, 250, 15, 9, 11, 10, 36, 15, 15, 49, 24, 15, 31, 249, 17, 9, 9, 11, 36, 2, 25, 53, 23, 15, 31, 249, 27, 1, 5, 15, 59, 55, 23, 14, 32, 248, 29, 22, 58, 55, 3, 8, 10, 13, 34, 248, 26, 29, 57, 65, 8, 11, 36, 248, 26, 30, 57, 66, 5, 6, 42, 249, 24, 29, 73, 53, 2, 6, 44, 248, 25, 28, 75, 60, 44, 248, 25, 26, 78, 58, 44, 249, 25, 26, 79, 57, 44, 250, 25, 25, 79, 56, 45, 249, 27, 24, 79, 56, 46, 248, 35, 16, 79, 56, 47, 247, 34, 17, 79, 57, 47, 245, 35, 17, 79, 57, 47, 245, 35, 12, 84, 58, 46, 245, 35, 12, 101, 42, 45, 245, 34, 13, 102, 43, 43, 244, 33, 15, 103, 47, 38, 244, 28, 20, 104, 47, 37, 244, 29, 19, 104, 49, 35, 244, 30, 18, 104, 52, 32, 245, 29, 3, 119, 53, 30, 245, 30, 1, 121, 54, 30, 244, 30, 1, 121, 55, 30, 243, 127, 1, 24, 57, 28, 243, 152, 59, 26, 243, 151, 64, 22, 243, 151, 67, 4, 2, 13, 243, 152, 71, 14, 244, 151, 67, 17, 245, 151, 65, 19, 246, 151, 63, 19, 248, 150, 61, 21, 250, 148, 55, 27, 254, 144, 53, 29, 256, 142, 42, 6, 5, 28, 259, 140, 40, 9, 3, 29, 257, 142, 39, 11, 2, 28, 257, 114, 5, 24, 39, 41, 257, 114, 6, 23, 37, 44, 255, 116, 6, 21, 38, 45, 253, 76, 2, 39, 7, 20, 37, 47, 251, 77, 4, 38, 7, 18, 38, 47, 249, 79, 5, 37, 8, 17, 28, 6, 3, 48, 249, 79, 7, 35, 9, 15, 27, 9, 2, 49, 247, 80, 9, 33, 11, 11, 28, 61, 247, 80, 17, 25, 50, 61, 246, 37, 1, 43, 18, 24, 49, 62, 246, 37, 1, 43, 17, 26, 48, 62, 246, 81, 17, 27, 46, 47, 3, 13, 7, 9, 231, 80, 15, 29, 46, 47, 3, 12, 6, 12, 230, 80, 15, 29, 46, 47, 4, 11, 6, 13, 230, 79, 12, 32, 47, 46, 5, 9, 6, 15, 230, 78, 10, 34, 47, 45, 8, 9, 2, 17, 232, 6, 1, 69, 10, 34, 48, 44, 6, 30, 240, 68, 7, 37, 49, 42, 7, 30, 242, 66, 5, 39, 51, 40, 6, 31, 245, 63, 5, 39, 55, 36, 6, 31, 248, 60, 4, 40, 55, 36, 5, 32, 249, 58, 5, 40, 55, 36, 5, 32, 250, 57, 4, 41, 56, 35, 4, 32, 253, 55, 4, 41, 56, 35, 4, 32, 257, 50, 5, 41, 57, 34, 3, 32, 259, 49, 5, 40, 59, 33, 3, 30, 262, 47, 7, 39, 61, 31, 3, 30, 264, 45, 7, 39, 64, 28, 2, 31, 273, 37, 7, 38, 67, 57, 275, 36, 8, 37, 68, 56, 276, 35, 10, 4, 2, 29, 69, 37, 1, 18, 277, 33, 18, 27, 69, 35, 4, 18, 278, 32, 18, 26, 70, 33, 7, 16, 280, 31, 18, 25, 71, 32, 9, 14, 281, 31, 17, 25, 72, 32, 8, 14, 283, 29, 18, 24, 73, 31, 8, 14, 286, 26, 19, 23, 74, 30, 9, 13, 287, 25, 19, 23, 76, 28, 9, 13, 288, 24, 19, 23, 79, 25, 9, 13, 290, 22, 20, 22, 79, 25, 9, 13, 291, 21, 20, 22, 78, 26, 9, 13, 293, 18, 14, 29, 78, 26, 9, 13, 296, 15, 12, 31, 77, 27, 10, 12, 299, 11, 13, 32, 76, 27, 10, 11, 305, 4, 14, 33, 76, 26, 12, 10, 323, 33, 77, 25, 13, 8, 323, 34, 77, 25, 15, 4, 325, 34, 78, 24, 344, 34, 79, 23, 345, 32, 81, 22, 345, 32, 82, 21, 346, 30, 84, 20, 347, 30, 84, 19, 349, 28, 85, 18, 352, 25, 86, 17, 343, 34, 87, 16, 339, 38, 88, 14, 338, 40, 89, 13, 290, 7, 17, 7, 13, 44, 90, 11, 289, 13, 7, 14, 10, 45, 93, 7, 263, 7, 20, 15, 4, 18, 6, 47, 358, 13, 19, 38, 5, 46, 357, 16, 17, 40, 3, 45, 63, 6, 25, 10, 255, 17, 16, 41, 2, 40, 61, 14, 21, 14, 253, 19, 14, 84, 59, 17, 16, 19, 252, 21, 12, 84, 59, 18, 13, 22, 250, 24, 9, 84, 58, 20, 13, 22, 250, 30, 3, 84, 58, 20, 11, 24, 248, 118, 58, 21, 11, 24, 248, 118, 45, 34, 10, 25, 247, 118, 44, 36, 10, 25, 247, 117, 45, 36, 9, 27, 245, 118, 44, 37, 9, 27, 245, 101, 2, 14, 45, 37, 9, 27, 245, 99, 10, 6, 46, 38, 9, 28, 245, 98, 62, 38, 10, 27, 245, 99, 61, 38, 10, 27, 246, 104, 56, 37, 11, 26, 247, 104, 55, 37, 12, 25, 249, 103, 55, 36, 14, 23, 250, 103, 55, 35, 18, 18, 252, 103, 56, 33, 19, 17, 253, 102, 60, 28, 21, 15, 254, 102, 60, 33, 18, 13, 255, 101, 61, 33, 17, 13, 256, 100, 61, 34, 15, 14, 258, 98, 62, 34, 9, 19, 260, 95, 64, 33, 7, 21, 258, 97, 64, 33, 7, 21, 256, 98, 66, 32, 6, 23, 255, 96, 69, 31, 6, 23, 249, 95, 78, 29, 5, 24, 247, 60, 6, 26, 87, 25, 5, 24, 247, 60, 10, 19, 92, 22, 6, 24, 246, 24, 5, 32, 11, 16, 96, 20, 7, 23, 246, 23, 8, 29, 14, 11, 102, 5, 3, 8, 8, 23, 245, 23, 13, 25, 137, 4, 11, 22, 245, 21, 16, 23, 154, 21, 245, 20, 18, 22, 156, 19, 246, 16, 20, 24, 161, 13, 246, 15, 20, 25, 162, 11, 248, 14, 19, 26, 163, 10, 249, 13, 19, 25, 165, 8, 252, 11, 21, 23, 167, 4, 256, 9, 20, 24, 426, 10, 19, 25, 426, 11, 18, 24, 37, 22, 367, 20, 9, 25, 35, 27, 364, 20, 8, 26, 34, 29, 363, 20, 7, 27, 33, 31, 363, 53, 32, 33, 362, 53, 31, 34, 363, 51, 31, 35, 364, 50, 31, 35, 366, 47, 32, 35, 367, 33, 1, 12, 32, 35, 368, 31, 2, 11, 33, 34, 370, 28, 5, 10, 33, 34, 365, 30, 9, 8, 34, 33, 364, 32, 11, 4, 36, 33, 364, 32, 51, 33, 363, 33, 51, 33, 363, 33, 52, 31, 19, 10, 334, 34, 52, 31, 17, 13, 332, 35, 53, 30, 11, 20, 329, 37, 2, 9, 43, 28, 10, 23, 328, 49, 43, 27, 10, 23, 327, 37, 1, 13, 44, 25, 9, 24, 327, 52, 44, 24, 9, 24, 326, 37, 1, 16, 41, 26, 8, 25, 326, 24, 2, 4, 1, 4, 2, 17, 40, 27, 8, 25, 326, 24, 13, 17, 39, 28, 8, 24, 327, 23, 14, 17, 38, 29, 9, 23, 328, 22, 15, 16, 37, 30, 9, 22, 329, 22, 15, 16, 36, 31, 10, 21, 329, 22, 2, 10, 4, 14, 37, 31, 11, 20, 26, 6, 297, 21, 1, 13, 4, 13, 37, 31, 13, 18, 24, 9, 296, 36, 5, 10, 38, 31, 17, 14, 22, 12, 296, 36, 7, 6, 39, 32, 16, 14, 22, 13, 295, 36, 5, 9, 38, 32, 17, 13, 20, 15, 296, 35, 4, 11, 37, 32, 17, 12, 20, 16, 297, 34, 4, 12, 36, 32, 18, 11, 20, 16, 298, 34, 2, 14, 36, 31, 19, 9, 20, 17, 9, 6, 285, 48, 36, 31, 13, 15, 20, 17, 7, 9, 285, 48, 36, 30, 8, 21, 6, 29, 8, 10, 285, 48, 36, 29, 6, 24, 3, 31, 7, 12, 285, 48, 36, 28, 6, 25, 2, 35, 3, 12, 287, 46, 38, 26, 5, 26, 1, 51, 288, 45, 41, 23, 5, 26, 1, 51, 289, 44, 41, 23, 4, 79, 289, 44, 42, 22, 4, 80, 279, 7, 2, 44, 42, 22, 4, 81, 276, 10, 1, 43, 43, 22, 4, 82, 275, 54, 38, 27, 5, 26, 1, 54, 274, 54, 38, 28, 5, 26, 1, 54, 274, 53, 20, 8, 10, 29, 6, 25, 2, 55, 271, 55, 2, 26, 8, 30, 7, 24, 3, 55, 270, 84, 7, 29, 10, 22, 5, 4, 7, 43, 269, 85, 5, 30, 14, 18, 17, 43, 269, 36, 1, 47, 4, 31, 15, 18, 16, 43, 269, 36, 3, 45, 4, 31, 16, 18, 15, 43, 270, 35, 3, 45, 4, 31, 17, 17, 15, 43, 269, 36, 3, 45, 4, 31, 18, 16, 16, 42, 267, 38, 1, 47, 4, 31, 19, 15, 16, 42, 267, 37, 2, 47, 3, 32, 20, 14, 17, 40, 267, 38, 1, 48, 3, 32, 21, 13, 18, 39, 267, 87, 3, 32, 21, 12, 25, 32, 268, 87, 4, 31, 20, 13, 26, 30, 269, 87, 4, 31, 16, 16, 30, 27, 269, 87, 4, 31, 14, 17, 31, 3, 1, 23, 269, 87, 5, 30, 14, 17, 35, 23, 269, 87, 5, 30, 12, 19, 36, 22, 269, 87, 6, 28, 13, 19, 36, 21, 270, 87, 8, 26, 11, 21, 36, 21, 270, 86, 16, 18, 12, 21, 37, 19, 272, 25, 1, 59, 17, 16, 12, 22, 2, 2, 31, 20, 273, 85, 8, 58, 1, 4, 29, 22, 273, 85, 7, 63, 28, 23, 273, 30, 1, 25, 1, 29, 6, 59, 1, 4, 28, 23, 274, 30, 2, 53, 5, 59, 1, 5, 28, 23, 274, 30, 4, 50, 6, 59, 1, 6, 27, 23, 274, 30, 3, 51, 6, 58, 1, 8, 26, 23, 273, 31, 1, 53, 5, 75, 19, 23, 274, 30, 1, 54, 4, 76, 18, 23, 274, 85, 4, 76, 16, 25, 274, 85, 4, 77, 14, 26, 273, 86, 5, 76, 13, 27, 273, 86, 4, 79, 11, 27, 273, 86, 4, 84, 6, 26, 274, 86, 3, 33, 8, 40, 9, 27, 273, 86, 4, 33, 7, 40, 12, 25, 273, 86, 3, 34, 7, 38, 17, 22, 273, 56, 5, 25, 3, 35, 5, 29, 28, 21, 274, 32, 2, 21, 5, 24, 4, 35, 5, 29, 28, 21, 274, 33, 1, 22, 4, 24, 3, 36, 4, 30, 28, 21, 274, 56, 4, 63, 1, 33, 28, 21, 274, 56, 4, 97, 28, 20, 276, 31, 1, 5, 2, 16, 4, 98, 27, 20, 276, 31, 1, 1, 7, 15, 4, 99, 31, 14, 278, 31, 10, 13, 4, 100, 36, 7, 280, 28, 13, 12, 5, 101, 36, 5, 280, 27, 16, 9, 5, 91, 1, 14, 35, 2, 280, 27, 16, 9, 3, 93, 2, 14, 10, 1, 303, 28, 18, 7, 2, 95, 4, 14, 8, 1, 303, 28, 15, 10, 2, 95, 5, 12, 312, 27, 16, 108, 6, 10, 313, 21, 22, 79, 1, 28, 8, 8, 313, 20, 22, 80, 3, 26, 9, 7, 313, 19, 21, 82, 4, 25, 10, 6, 313, 18, 21, 83, 5, 24, 12, 4, 313, 18, 21, 83, 5, 24, 329, 18, 13, 91, 6, 23, 11, 8, 7, 1, 303, 18, 11, 92, 6, 23, 7, 13, 1, 6, 304, 17, 10, 92, 7, 23, 5, 22, 306, 16, 6, 95, 7, 23, 5, 21, 307, 117, 8, 22, 4, 23, 305, 118, 7, 23, 3, 27, 302, 118, 7, 24, 1, 30, 299, 119, 6, 58, 6, 2, 289, 119, 5, 62, 2, 4, 288, 118, 4, 73, 286, 117, 4, 73, 286, 20, 2, 51, 1, 42, 4, 75, 286, 20, 2, 49, 4, 40, 4, 77, 285, 20, 2, 48, 5, 39, 3, 79, 286, 19, 1, 48, 5, 39, 3, 79, 290, 64, 6, 38, 3, 79, 289, 65, 7, 119, 287, 67, 9, 116, 288, 46, 1, 20, 11, 114, 287, 46, 3, 19, 12, 113, 287, 44, 5, 18, 14, 113, 285, 44, 7, 17, 15, 112, 284, 44, 8, 17, 17, 111, 282, 45, 12, 13, 19, 109, 281, 46, 12, 12, 21, 108, 280, 47, 13, 11, 23, 106, 280, 42, 19, 9, 26, 4, 1, 98, 280, 41, 21, 8, 33, 27, 1, 69, 280, 40, 23, 5, 35, 27, 2, 67, 280, 41, 23, 2, 37, 28, 4, 64, 281, 30, 7, 3, 63, 28, 5, 61, 283, 31, 72, 28, 6, 58, 286, 30, 70, 33, 5, 57, 285, 30, 9, 1, 58, 39, 3, 57, 284, 29, 8, 2, 57, 42, 2, 60, 280, 29, 8, 4, 2, 4, 49, 43, 2, 61, 279, 28, 7, 11, 16, 1, 31, 45, 1, 62, 279, 45, 16, 1, 31, 45, 1, 63, 279, 10, 3, 32, 15, 1, 30, 111, 280, 4, 10, 29, 15, 1, 30, 111, 296, 30, 12, 1, 29, 117, 295, 29, 39, 24, 2, 92, 293, 33, 7, 1, 28, 24, 3, 92, 292, 39, 1, 2, 28, 23, 3, 93, 10, 6, 275, 46, 24, 23, 4, 92, 8, 9, 275, 46, 24, 22, 5, 91, 8, 10, 274, 47, 24, 21, 7, 89, 7, 12, 274, 47, 25, 18, 9, 89, 6, 12, 275, 47, 28, 14, 11, 87, 5, 13, 277, 45, 30, 11, 13, 86, 5, 13, 285, 37, 32, 7, 17, 84, 5, 13, 284, 38, 59, 82, 5, 12, 280, 42, 61, 81, 4, 11, 279, 44, 63, 80, 4, 10, 278, 45, 67, 76, 5, 11, 276, 45, 68, 76, 6, 10, 274, 45, 70, 75, 7, 10, 273, 45, 70, 75, 6, 12, 271, 45, 71, 75, 6, 12, 271, 44, 13, 8, 51, 75, 4, 14, 271, 43, 12, 11, 50, 75, 2, 16, 271, 42, 12, 15, 47, 74, 1, 18, 271, 42, 10, 19, 45, 74, 1, 18, 270, 44, 6, 23, 45, 72, 1, 19, 270, 45, 2, 27, 44, 92, 270, 75, 1, 6, 37, 90, 271, 83, 37, 52, 1, 36, 272, 83, 37, 87, 273, 84, 37, 85, 275, 83, 38, 83, 277, 82, 38, 81, 281, 91, 27, 80, 287, 88, 24, 79, 290, 88, 23, 67, 2, 14, 287, 88, 22, 66, 5, 14, 286, 88, 20, 67, 9, 11, 287, 37, 1, 48, 13, 74, 8, 12, 286, 38, 3, 46, 11, 75, 7, 15, 284, 38, 2, 48, 10, 76, 4, 18, 284, 30, 2, 4, 2, 50, 10, 76, 1, 21, 283, 31, 3, 55, 9, 99, 277, 94, 10, 99, 275, 96, 9, 99, 276, 96, 9, 99, 275, 97, 9, 100, 274, 97, 9, 100, 273, 97, 4, 106, 273, 97, 2, 108, 273, 28, 1, 68, 2, 107, 275, 26, 2, 68, 1, 108, 275, 26, 3, 67, 1, 32, 2, 73, 277, 24, 5, 99, 2, 72, 279, 23, 7, 4, 2, 91, 2, 71, 282, 21, 12, 91, 4, 69, 286, 17, 13, 59, 1, 31, 4, 68, 287, 17, 12, 60, 1, 31, 5, 66, 288, 17, 11, 61, 2, 30, 6, 63, 288, 19, 9, 63, 3, 29, 7, 63, 276, 8, 3, 19, 9, 63, 5, 27, 8, 62, 274, 32, 8, 64, 9, 23, 9, 61, 273, 33, 8, 64, 11, 20, 12, 59, 271, 36, 5, 66, 11, 20, 15, 56, 265, 113, 12, 18, 21, 51, 263, 115, 12, 19, 30, 40, 264, 115, 12, 20, 32, 37, 263, 116, 13, 19, 34, 22, 2, 10, 264, 116, 7, 25, 37, 19, 5, 5, 265, 117, 5, 27, 37, 19, 12, 6, 257, 117, 3, 29, 37, 19, 10, 9, 256, 117, 3, 29, 37, 20, 9, 10, 256, 116, 2, 30, 38, 39, 255, 116, 2, 30, 39, 38, 256, 115, 1, 31, 40, 37, 257, 86, 2, 26, 1, 31, 40, 37, 259, 84, 3, 25, 1, 31, 40, 37, 262, 80, 5, 24, 1, 31, 40, 37, 263, 79, 7, 22, 2, 30, 39, 38, 263, 13, 1, 63, 9, 22, 2, 30, 38, 39, 264, 10, 3, 62, 11, 21, 3, 29, 37, 40, 265, 8, 3, 63, 12, 20, 4, 28, 36, 41, 267, 4, 5, 63, 14, 18, 6, 26, 35, 41, 277, 63, 13, 19, 7, 24, 36, 41, 276, 64, 12, 19, 6, 26, 36, 40, 277, 65, 11, 20, 3, 28, 36, 39, 265, 84, 3, 22, 1, 30, 36, 25, 2, 10, 265, 87, 1, 54, 18, 4, 13, 25, 277, 143, 16, 9, 10, 25, 275, 144, 17, 16, 3, 25, 275, 144, 16, 45, 273, 146, 16, 45, 271, 45, 1, 101, 16, 46, 271, 44, 4, 7, 1, 91, 13, 49, 270, 45, 13, 90, 11, 52, 269, 45, 13, 90, 11, 52, 268, 45, 14, 90, 10, 53, 268, 45, 13, 90, 11, 53, 268, 46, 10, 92, 10, 53, 269, 46, 8, 93, 11, 53, 270, 46, 7, 92, 12, 53, 3, 13, 254, 47, 5, 91, 15, 52, 2, 16, 253, 46, 5, 64, 2, 22, 18, 51, 2, 18, 253, 45, 4, 64, 7, 17, 20, 50, 1, 19, 253, 45, 4, 65, 5, 17, 22, 70, 252, 46, 1, 68, 4, 16, 24, 69, 253, 115, 3, 15, 27, 67, 253, 116, 2, 14, 28, 67, 254, 115, 2, 14, 28, 66, 256, 15, 3, 97, 1, 15, 27, 66, 258, 11, 7, 111, 28, 64, 279, 109, 28, 63, 280, 109, 2, 8, 19, 60, 273, 130, 17, 57, 272, 137, 14, 57, 270, 33, 2, 105, 9, 61, 270, 32, 4, 105, 6, 62, 270, 21, 1, 10, 6, 105, 5, 62, 270, 22, 2, 6, 10, 4, 1, 164, 270, 23, 24, 162, 271, 23, 25, 164, 268, 24, 25, 165, 267, 24, 23, 167, 266, 25, 22, 126, 2, 39, 267, 25, 21, 126, 2, 40, 267, 25, 16, 130, 1, 41, 269, 25, 12, 63, 2, 66, 2, 41, 275, 20, 11, 64, 3, 107, 276, 20, 9, 66, 1, 107, 277, 21, 8, 174, 278, 21, 6, 103, 2, 69, 280, 21, 5, 102, 10, 62, 282, 20, 4, 102, 10, 64, 282, 19, 4, 68, 1, 32, 10, 65, 281, 19, 4, 68, 2, 31, 11, 64, 282, 18, 5, 67, 4, 5, 2, 22, 11, 65, 282, 17, 6, 66, 11, 22, 12, 64, 284, 15, 8, 64, 11, 22, 13, 63, 284, 15, 8, 64, 12, 21, 15, 61, 278, 21, 7, 65, 12, 20, 19, 58, 276, 22, 8, 65, 13, 19, 20, 57, 276, 22, 7, 66, 14, 17, 13, 7, 3, 55, 275, 23, 7, 66, 16, 13, 13, 10, 7, 49, 276, 23, 7, 66, 42, 14, 3, 49, 275, 24, 8, 65, 41, 16, 3, 47, 276, 23, 9, 65, 41, 17, 4, 45, 275, 24, 10, 64, 40, 21, 6, 40, 275, 23, 12, 63, 40, 22, 6, 39, 275, 23, 14, 61, 40, 23, 4, 40, 275, 23, 15, 60, 41, 24, 2, 40, 275, 23, 15, 60, 41, 65, 275, 23, 14, 62, 42, 64, 275, 23, 14, 41, 1, 20, 43, 64, 272, 25, 13, 39, 4, 20, 45, 64, 269, 26, 13, 39, 1, 28, 44, 61, 267, 27, 12, 70, 44, 60, 265, 29, 12, 71, 44, 60, 264, 29, 12, 73, 43, 59, 261, 33, 12, 73, 44, 57, 259, 35, 12, 74, 45, 55, 259, 35, 13, 74, 46, 53, 258, 36, 14, 73, 46, 52, 259, 36, 16, 6, 2, 63, 46, 52, 258, 37, 24, 63, 47, 50, 259, 37, 25, 62, 47, 32, 1, 16, 260, 37, 25, 62, 48, 31, 3, 12, 263, 36, 25, 62, 48, 31, 278, 36, 25, 61, 50, 30, 279, 35, 25, 61, 51, 29, 280, 34, 25, 60, 53, 28, 282, 32, 26, 58, 54, 28, 281, 34, 25, 57, 56, 27, 276, 40, 25, 32, 1, 23, 56, 27, 274, 43, 24, 32, 1, 13, 1, 8, 58, 26, 274, 44, 22, 34, 1, 12, 3, 4, 62, 24, 273, 45, 20, 36, 1, 11, 74, 20, 273, 45, 19, 37, 2, 10, 74, 20, 272, 46, 17, 39, 3, 8, 76, 19, 272, 46, 12, 44, 5, 4, 79, 31, 259, 46, 10, 46, 89, 32, 258, 102, 90, 31, 257, 103, 91, 29, 258, 103, 92, 28, 258, 102, 94, 26, 260, 100, 95, 25, 262, 98, 95, 25, 262, 98, 95, 24, 262, 99, 96, 23, 261, 100, 96, 22, 260, 102, 97, 20, 260, 102, 100, 6, 1, 9, 262, 102, 377, 102, 378, 103, 376, 105, 375, 105, 375, 105, 376, 46, 2, 56, 376, 44, 6, 54, 377, 41, 9, 53, 378, 40, 7, 55, 380, 37, 7, 56, 383, 34, 2, 60, 383, 16, 1, 80, 383, 97, 382, 98, 381, 99, 380, 100, 379, 100, 380, 100, 93, 6, 280, 100, 92, 9, 277, 101, 93, 10, 275, 102, 92, 12, 274, 102, 92, 12, 273, 103, 91, 13, 273, 103, 91, 13, 272, 32, 1, 71, 90, 14, 272, 30, 3, 71, 88, 16, 272, 28, 5, 71, 87, 18, 272, 27, 3, 73, 87, 18, 272, 28, 2, 73, 86, 19, 273, 102, 86, 19, 274, 101, 85, 20, 276, 4, 3, 92, 85, 20, 284, 91, 85, 20, 286, 89, 86, 19, 287, 88, 86, 19, 287, 88, 87, 18, 288, 86, 89, 17, 289, 85, 91, 15, 291, 84, 93, 11, 294, 83, 93, 10, 296, 82, 93, 8, 299, 81, 94, 4, 303, 79, 401, 79, 401, 79, 401, 79, 402, 78, 402, 78, 403, 77, 403, 76, 405, 75, 405, 76, 405, 76, 405, 79, 403, 78, 406, 77, 404, 77, 102, 7, 295, 77, 99, 12, 294, 76, 4, 6, 88, 14, 294, 74, 2, 9, 86, 17, 292, 86, 69, 13, 1, 21, 289, 88, 66, 39, 287, 88, 64, 55, 239, 6, 28, 88, 62, 61, 233, 9, 28, 87, 55, 70, 230, 11, 27, 87, 53, 73, 218, 7, 4, 12, 27, 86, 53, 74, 215, 25, 28, 84, 53, 76, 214, 25, 30, 82, 53, 76, 213, 26, 31, 80, 53, 77, 213, 26, 31, 80, 53, 77, 212, 27, 30, 80, 54, 77, 212, 27, 30, 80, 55, 76, 212, 26, 30, 81, 55, 45, 3, 27, 214, 25, 30, 81, 56, 31, 1, 11, 8, 23, 214, 24, 30, 81, 58, 30, 2, 10, 22, 8, 216, 21, 32, 81, 60, 28, 3, 8, 25, 4, 219, 19, 33, 81, 64, 24, 5, 4, 252, 15, 36, 80, 65, 23, 260, 16, 36, 80, 65, 23, 260, 15, 1, 13, 24, 58, 1, 20, 66, 22, 259, 31, 24, 14, 2, 61, 68, 21, 259, 41, 16, 8, 6, 41, 1, 19, 70, 19, 257, 44, 30, 60, 75, 14, 257, 45, 30, 59, 76, 13, 257, 46, 31, 57, 77, 12, 258, 45, 32, 56, 78, 10, 258, 46, 33, 55, 79, 8, 259, 46, 34, 54, 80, 6, 260, 46, 36, 53, 345, 46, 39, 50, 345, 45, 44, 46, 346, 44, 45, 45, 345, 44, 47, 23, 1, 20, 345, 42, 51, 42, 345, 36, 62, 36, 346, 34, 64, 36, 346, 34, 64, 36, 346, 34, 64, 35, 347, 34, 64, 35, 347, 34, 64, 34, 348, 34, 64, 34, 348, 34, 64, 33, 348, 35, 63, 34, 348, 34, 64, 34, 348, 34, 64, 34, 349, 32, 66, 33, 349, 32, 66, 33, 350, 31, 67, 32, 351, 30, 68, 31, 353, 28, 69, 30, 360, 21, 70, 29, 361, 20, 71, 28, 361, 20, 71, 28, 362, 19, 72, 27, 363, 17, 74, 26, 365, 15, 76, 25, 369, 9, 79, 24, 370, 5, 83, 23, 463, 18, 463, 17, 464, 16, 465, 15, 344], "size": [480, 640]}, "area": 90714, "iscrowd": 1, "image_id": 514049, "bbox": [1, 0, 638, 267], "category_id": 1, "id": 900100514049}, {"segmentation": {"counts": [41577, 8, 417, 10, 414, 14, 412, 15, 410, 16, 409, 18, 21, 8, 379, 18, 20, 10, 378, 19, 17, 14, 376, 19, 17, 15, 375, 19, 16, 16, 375, 20, 14, 18, 373, 21, 14, 18, 372, 22, 14, 18, 371, 23, 14, 18, 371, 23, 14, 19, 369, 24, 14, 18, 370, 24, 14, 18, 370, 24, 14, 18, 370, 23, 15, 18, 369, 23, 17, 16, 369, 23, 19, 14, 370, 22, 21, 12, 371, 21, 23, 10, 372, 20, 26, 6, 374, 20, 406, 20, 406, 20, 406, 18, 16, 3, 389, 18, 15, 5, 389, 16, 15, 6, 8, 8, 374, 14, 16, 7, 6, 13, 371, 12, 17, 7, 4, 17, 370, 10, 18, 7, 4, 19, 370, 6, 20, 7, 3, 21, 395, 8, 1, 23, 394, 7, 2, 24, 393, 8, 1, 25, 392, 34, 392, 35, 391, 36, 390, 38, 388, 39, 383, 2, 1, 40, 381, 1, 4, 41, 379, 1, 5, 41, 378, 1, 7, 41, 385, 41, 385, 13, 1, 27, 385, 13, 3, 25, 386, 12, 9, 20, 385, 13, 8, 19, 386, 13, 8, 19, 386, 12, 10, 18, 386, 12, 10, 18, 386, 12, 10, 18, 386, 12, 10, 18, 386, 11, 11, 18, 386, 10, 12, 18, 386, 9, 13, 19, 385, 8, 14, 18, 386, 6, 16, 18, 408, 18, 408, 18, 408, 19, 407, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 19, 407, 19, 407, 19, 407, 19, 407, 19, 408, 18, 408, 19, 408, 18, 408, 18, 408, 18, 408, 19, 407, 19, 407, 18, 408, 18, 408, 18, 408, 18, 409, 16, 411, 14, 413, 12, 415, 10, 418, 6, 1215, 8, 417, 10, 414, 13, 413, 13, 412, 14, 411, 15, 411, 15, 411, 16, 410, 16, 410, 16, 410, 17, 409, 19, 407, 18, 408, 18, 408, 18, 408, 18, 409, 17, 409, 17, 409, 17, 409, 17, 409, 18, 408, 17, 409, 17, 410, 16, 410, 16, 410, 15, 411, 14, 412, 15, 411, 15, 412, 13, 413, 13, 412, 14, 396, 8, 8, 14, 395, 9, 7, 14, 394, 12, 6, 13, 395, 12, 6, 12, 395, 16, 4, 10, 395, 19, 4, 6, 397, 20, 406, 20, 406, 21, 405, 21, 405, 21, 405, 22, 404, 22, 404, 23, 404, 22, 405, 21, 405, 21, 406, 21, 406, 19, 408, 19, 407, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 18, 408, 18, 408, 18, 407, 19, 406, 20, 406, 21, 405, 22, 404, 22, 404, 23, 403, 23, 403, 23, 403, 23, 403, 24, 403, 22, 405, 21, 405, 21, 405, 21, 405, 20, 406, 19, 407, 19, 407, 18, 408, 18, 408, 18, 408, 18, 407, 19, 407, 19, 407, 19, 407, 19, 407, 19, 407, 19, 408, 18, 408, 17, 408, 18, 408, 19, 407, 19, 407, 19, 407, 18, 408, 18, 408, 18, 408, 18, 408, 18, 409, 16, 411, 15, 412, 14, 413, 12, 415, 10, 418, 6, 14475, 8, 417, 10, 414, 14, 412, 15, 410, 16, 405, 23, 402, 25, 399, 29, 397, 30, 395, 31, 394, 33, 393, 33, 393, 33, 393, 33, 393, 34, 392, 33, 393, 33, 393, 33, 393, 33, 394, 31, 396, 14, 1, 14, 398, 12, 3, 12, 400, 10, 5, 10, 403, 6, 9, 6, 2112, 8, 417, 10, 414, 14, 412, 15, 410, 16, 409, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 19, 407, 18, 408, 18, 408, 18, 408, 18, 409, 16, 411, 14, 399, 8, 6, 12, 399, 10, 6, 10, 398, 14, 6, 6, 401, 14, 414, 12, 415, 12, 414, 12, 414, 12, 414, 12, 413, 14, 412, 13, 413, 13, 413, 13, 412, 14, 412, 13, 413, 12, 414, 11, 415, 10, 418, 6, 4686, 8, 417, 10, 414, 14, 412, 15, 411, 15, 411, 16, 410, 16, 410, 16, 410, 16, 410, 17, 409, 16, 410, 16, 410, 16, 409, 17, 409, 16, 411, 14, 413, 12, 415, 10, 418, 6, 815, 8, 417, 10, 414, 14, 412, 15, 410, 16, 409, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 19, 407, 18, 408, 18, 408, 18, 408, 18, 409, 18, 408, 18, 408, 18, 407, 19, 407, 21, 405, 22, 405, 22, 404, 23, 403, 23, 403, 24, 403, 23, 404, 22, 405, 22, 405, 22, 405, 21, 406, 21, 405, 21, 406, 20, 406, 20, 407, 20, 407, 19, 407, 19, 407, 19, 407, 19, 408, 19, 407, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 18, 408, 18, 408, 18, 408, 18, 406, 19, 407, 18, 407, 18, 407, 18, 408, 18, 408, 18, 408, 18, 408, 19, 407, 18, 407, 19, 406, 20, 406, 20, 405, 20, 406, 19, 407, 19, 407, 19, 407, 19, 407, 19, 407, 18, 408, 19, 407, 20, 406, 20, 406, 21, 405, 21, 405, 22, 404, 22, 404, 22, 405, 21, 406, 21, 406, 19, 407, 19, 408, 18, 408, 18, 409, 16, 411, 14, 413, 12, 415, 10, 418, 6, 420, 8, 417, 10, 414, 14, 412, 15, 410, 16, 409, 18, 408, 18, 408, 18, 407, 19, 407, 20, 406, 19, 407, 19, 407, 19, 407, 19, 407, 18, 408, 18, 408, 18, 409, 16, 411, 14, 413, 12, 415, 10, 418, 6, 41543], "size": [426, 640]}, "area": 8490, "iscrowd": 1, "image_id": 319933, "bbox": [97, 185, 445, 134], "category_id": 60, "id": 906000319933}, {"segmentation": {"counts": [5332, 11, 282, 17, 278, 21, 276, 23, 255, 17, 1, 25, 251, 47, 250, 48, 130, 6, 15, 5, 1, 16, 76, 49, 74, 6, 13, 3, 2, 5, 1, 15, 10, 8, 7, 30, 74, 50, 46, 10, 17, 8, 4, 35, 8, 10, 3, 34, 70, 53, 45, 12, 15, 10, 2, 37, 6, 49, 68, 54, 39, 19, 13, 51, 5, 49, 67, 55, 38, 21, 12, 51, 5, 49, 66, 56, 31, 28, 12, 51, 5, 49, 65, 57, 30, 30, 11, 51, 5, 49, 65, 56, 29, 34, 9, 51, 5, 49, 65, 56, 26, 38, 8, 51, 5, 49, 65, 55, 26, 40, 7, 51, 5, 50, 63, 55, 26, 42, 6, 50, 6, 51, 61, 55, 26, 43, 6, 49, 7, 51, 60, 55, 27, 43, 6, 47, 9, 51, 59, 54, 29, 43, 6, 47, 9, 51, 58, 51, 33, 43, 6, 47, 9, 51, 58, 43, 41, 43, 6, 47, 9, 51, 58, 34, 50, 43, 6, 47, 9, 51, 58, 25, 59, 22, 14, 6, 7, 47, 9, 51, 58, 16, 104, 5, 8, 47, 9, 50, 59, 7, 113, 3, 10, 47, 9, 50, 59, 5, 128, 46, 10, 50, 60, 4, 128, 45, 11, 50, 61, 3, 128, 44, 12, 49, 64, 1, 93, 19, 16, 43, 13, 48, 148, 31, 16, 41, 15, 45, 150, 32, 16, 20, 1, 14, 20, 20, 175, 36, 14, 6, 47, 18, 177, 37, 67, 16, 178, 38, 67, 12, 181, 38, 69, 2, 190, 37, 262, 36, 212, 20, 30, 36, 190, 43, 29, 16, 3, 18, 174, 59, 26, 39, 173, 60, 25, 40, 173, 60, 24, 41, 173, 60, 23, 42, 173, 60, 23, 41, 174, 60, 22, 42, 174, 60, 22, 42, 174, 60, 21, 43, 174, 59, 22, 43, 175, 57, 23, 43, 176, 54, 25, 43, 177, 47, 31, 43, 179, 31, 45, 43, 184, 12, 59, 43, 255, 43, 255, 43, 256, 42, 257, 20, 1, 19, 260, 17, 4, 16, 266, 11, 6, 14, 270, 6, 9, 12, 288, 9, 220, 4, 67, 5, 139, 14, 61, 12, 162, 18, 30, 16, 47, 7, 6, 12, 161, 20, 28, 22, 41, 9, 5, 12, 156, 26, 26, 24, 39, 11, 2, 14, 154, 29, 25, 31, 30, 34, 149, 29, 25, 35, 25, 36, 145, 32, 25, 37, 22, 38, 141, 35, 25, 38, 20, 40, 66, 6, 67, 36, 25, 39, 19, 40, 54, 10, 1, 8, 65, 37, 25, 40, 16, 42, 50, 2, 1, 21, 63, 38, 26, 39, 15, 43, 47, 28, 61, 38, 28, 38, 14, 44, 40, 35, 61, 37, 30, 37, 13, 45, 39, 36, 61, 33, 33, 38, 12, 46, 38, 37, 61, 19, 1, 10, 36, 38, 11, 46, 35, 41, 61, 16, 1, 9, 12, 2, 26, 38, 11, 45, 35, 42, 60, 16, 1, 6, 12, 6, 26, 37, 10, 45, 36, 43, 60, 15, 1, 4, 12, 9, 26, 36, 10, 43, 38, 44, 60, 13, 1, 2, 12, 13, 26, 34, 11, 42, 39, 45, 60, 13, 12, 17, 25, 22, 22, 43, 38, 45, 61, 9, 12, 22, 25, 15, 27, 43, 38, 47, 60, 2, 1, 2, 13, 26, 25, 10, 30, 44, 38, 47, 60, 2, 13, 30, 63, 45, 38, 47, 61, 1, 9, 34, 62, 45, 39, 47, 68, 38, 60, 45, 40, 46, 65, 43, 59, 44, 41, 46, 62, 47, 57, 44, 42, 46, 61, 49, 56, 43, 43, 46, 61, 50, 54, 43, 44, 46, 61, 50, 54, 41, 47, 45, 61, 50, 54, 37, 52, 44, 61, 50, 54, 37, 52, 44, 61, 50, 54, 35, 54, 44, 61, 50, 54, 30, 59, 44, 60, 51, 54, 28, 62, 43, 59, 52, 54, 25, 65, 43, 59, 51, 55, 24, 67, 42, 59, 38, 4, 8, 56, 22, 70, 41, 59, 37, 7, 4, 58, 19, 73, 41, 59, 35, 71, 18, 74, 41, 59, 30, 76, 16, 76, 41, 59, 28, 78, 15, 78, 41, 59, 18, 87, 14, 79, 41, 60, 8, 96, 13, 80, 41, 9, 3, 153, 10, 82, 42, 2, 13, 150, 8, 84, 61, 147, 4, 86, 65, 233, 69, 229, 73, 225, 77, 14, 1, 60, 10, 136, 81, 10, 2, 30, 5, 2, 9, 12, 20, 128, 84, 6, 2, 23, 27, 7, 22, 1, 2, 29, 6, 89, 89, 1, 2, 10, 41, 5, 29, 1, 14, 10, 8, 88, 92, 9, 43, 4, 45, 8, 10, 87, 92, 8, 45, 3, 46, 6, 12, 21, 6, 59, 92, 7, 47, 2, 47, 5, 43, 55, 92, 7, 47, 2, 47, 5, 44, 54, 92, 7, 47, 2, 47, 4, 46, 53, 46, 2, 45, 6, 47, 2, 47, 3, 48, 52, 44, 5, 44, 6, 47, 3, 46, 3, 49, 51, 42, 7, 44, 6, 47, 23, 26, 3, 49, 51, 41, 8, 44, 6, 47, 42, 7, 2, 50, 51, 41, 7, 45, 7, 27, 3, 9, 4, 4, 44, 3, 2, 51, 51, 41, 7, 45, 8, 12, 31, 1, 1, 6, 40, 1, 3, 51, 51, 40, 8, 45, 4, 5, 44, 19, 31, 51, 51, 39, 9, 45, 3, 6, 44, 32, 18, 51, 51, 40, 8, 45, 2, 7, 44, 43, 7, 51, 51, 40, 8, 45, 1, 9, 43, 44, 6, 51, 51, 40, 8, 45, 1, 49, 3, 45, 5, 51, 52, 39, 8, 45, 1, 49, 4, 45, 4, 51, 53, 39, 8, 43, 2, 49, 5, 44, 4, 51, 54, 39, 7, 43, 2, 49, 7, 42, 4, 51, 54, 39, 8, 42, 2, 49, 14, 11, 1, 23, 4, 51, 54, 39, 9, 41, 2, 49, 27, 22, 4, 51, 54, 40, 10, 4, 1, 34, 3, 48, 28, 21, 4, 51, 54, 40, 16, 33, 4, 46, 30, 20, 4, 51, 54, 40, 18, 30, 7, 43, 35, 15, 5, 51, 54, 40, 19, 29, 10, 38, 38, 13, 6, 51, 54, 39, 22, 27, 9, 38, 41, 9, 8, 51, 54, 40, 24, 24, 8, 39, 59, 50, 54, 40, 27, 21, 8, 39, 60, 49, 54, 40, 29, 19, 8, 39, 61, 48, 54, 40, 32, 16, 8, 39, 63, 46, 55, 39, 35, 12, 3, 45, 71, 38, 56, 38, 37, 9, 3, 46, 76, 33, 57, 37, 40, 4, 4, 47, 83, 26, 58, 36, 47, 48, 85, 24, 60, 34, 47, 48, 89, 20, 71, 23, 47, 48, 92, 17, 72, 22, 47, 47, 94, 15, 75, 20, 47, 47, 96, 12, 79, 17, 47, 46, 100, 7, 82, 16, 47, 45, 191, 15, 48, 42, 194, 14, 49, 38, 198, 13, 51, 20, 2, 4, 1, 4, 204, 11, 288, 9, 291, 5, 95311], "size": [298, 500]}, "area": 20528, "iscrowd": 1, "image_id": 486568, "bbox": [17, 2, 163, 277], "category_id": 84, "id": 908400486568}, {"segmentation": {"counts": [38414, 4, 363, 13, 361, 14, 361, 14, 361, 14, 361, 14, 361, 14, 361, 13, 362, 13, 363, 11, 365, 9, 366, 9, 366, 9, 366, 8, 367, 7, 369, 5, 37513, 1, 372, 3, 38, 17, 317, 27, 13, 19, 315, 29, 12, 19, 314, 31, 11, 21, 312, 31, 10, 23, 311, 31, 9, 24, 311, 31, 9, 24, 311, 31, 8, 26, 310, 31, 3, 31, 310, 31, 2, 32, 310, 31, 2, 32, 310, 31, 2, 32, 311, 29, 3, 32, 312, 27, 4, 32, 313, 25, 5, 25, 6, 1, 314, 23, 7, 4, 88062, 9, 356, 20, 354, 23, 350, 25, 350, 26, 348, 28, 346, 29, 346, 29, 346, 29, 346, 29, 346, 29, 346, 29, 346, 29, 346, 29, 346, 28, 347, 27, 349, 25, 351, 23, 353, 20, 356, 17, 360, 6, 369, 16, 358, 18, 357, 18, 357, 18, 357, 18, 357, 18, 357, 17, 359, 4, 1358], "size": [375, 500]}, "area": 1748, "iscrowd": 1, "image_id": 100726, "bbox": [102, 132, 394, 104], "category_id": 84, "id": 908400100726}, {"segmentation": {"counts": [237, 6, 351, 11, 348, 14, 345, 16, 344, 17, 343, 18, 342, 18, 342, 18, 342, 18, 342, 18, 343, 17, 344, 16, 344, 16, 344, 15, 345, 15, 345, 15, 345, 15, 345, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 15, 345, 15, 345, 15, 345, 15, 345, 15, 345, 16, 344, 16, 345, 16, 345, 15, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 346, 14, 344, 16, 343, 18, 340, 20, 340, 20, 339, 21, 339, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 338, 22, 339, 21, 340, 20, 342, 18, 343, 17, 342, 18, 342, 18, 342, 18, 342, 18, 342, 17, 343, 17, 343, 17, 343, 17, 343, 17, 343, 17, 343, 17, 343, 16, 344, 16, 344, 16, 345, 15, 344, 16, 344, 16, 344, 15, 345, 15, 346, 14, 346, 14, 346, 14, 346, 14, 346, 13, 347, 13, 347, 13, 346, 14, 345, 15, 345, 15, 345, 15, 345, 15, 344, 16, 343, 17, 342, 18, 341, 19, 341, 19, 341, 20, 340, 21, 339, 22, 338, 22, 338, 22, 338, 22, 339, 21, 339, 21, 339, 21, 339, 26, 334, 27, 333, 28, 332, 29, 330, 30, 329, 31, 329, 31, 329, 31, 329, 31, 329, 31, 329, 30, 330, 29, 331, 26, 334, 22, 339, 20, 341, 19, 343, 17, 345, 15, 347, 13, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 13, 347, 13, 347, 13, 347, 13, 348, 12, 348, 12, 348, 12, 348, 12, 347, 13, 346, 14, 345, 15, 345, 15, 345, 15, 344, 16, 343, 17, 342, 17, 343, 16, 344, 15, 345, 15, 344, 15, 345, 14, 346, 13, 2, 7, 338, 13, 1, 9, 337, 12, 1, 11, 336, 25, 335, 25, 335, 25, 335, 25, 335, 25, 335, 25, 335, 25, 334, 25, 335, 24, 336, 24, 336, 24, 336, 25, 335, 25, 335, 25, 334, 26, 333, 27, 333, 27, 333, 27, 333, 27, 333, 27, 333, 28, 332, 28, 333, 27, 334, 26, 333, 27, 333, 27, 333, 27, 333, 27, 333, 28, 332, 28, 332, 28, 332, 28, 333, 27, 334, 26, 334, 26, 335, 25, 336, 25, 335, 26, 334, 27, 333, 27, 332, 28, 331, 29, 312, 15, 4, 29, 311, 17, 3, 29, 310, 50, 309, 51, 309, 51, 309, 51, 309, 51, 309, 51, 309, 50, 310, 50, 311, 48, 313, 47, 315, 45, 323, 37, 328, 32, 332, 28, 332, 28, 332, 28, 332, 27, 334, 25, 336, 16, 1, 4, 341, 5, 4, 3, 353, 11, 338, 23, 336, 25, 334, 27, 332, 28, 332, 28, 332, 28, 332, 28, 332, 28, 332, 28, 332, 27, 334, 25, 336, 21, 341, 4, 3, 7, 9705, 7, 352, 9, 350, 11, 348, 13, 347, 13, 347, 13, 347, 13, 347, 13, 347, 13, 347, 13, 348, 11, 350, 8, 354, 4, 1439, 5, 354, 8, 351, 10, 349, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 349, 10, 351, 8, 354, 3, 71640, 6, 353, 8, 351, 10, 349, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 348, 12, 342, 18, 341, 19, 340, 20, 339, 21, 339, 21, 338, 22, 337, 23, 336, 16, 5, 3, 335, 15, 345, 13, 347, 12, 348, 12, 348, 17, 343, 27, 333, 28, 333, 28, 333, 28, 334, 27, 333, 27, 333, 27, 333, 27, 333, 27, 333, 27, 333, 27, 333, 26, 334, 25, 335, 22, 338, 22, 338, 22, 338, 14, 2, 6, 338, 13, 4, 5, 338, 12, 6, 4, 338, 11, 349, 8, 352, 8, 352, 8, 352, 8, 351, 9, 3, 1, 6, 5, 335, 15, 4, 6, 334, 16, 4, 6, 334, 17, 2, 7, 334, 17, 1, 8, 334, 26, 334, 26, 334, 26, 334, 30, 331, 30, 331, 30, 331, 30, 329, 31, 329, 31, 329, 31, 329, 31, 329, 31, 329, 31, 329, 30, 331, 28, 332, 26, 334, 23, 337, 23, 336, 24, 336, 24, 336, 25, 335, 26, 334, 27, 333, 28, 332, 28, 333, 27, 333, 27, 333, 27, 333, 27, 333, 27, 333, 27, 333, 26, 334, 25, 335, 23, 337, 23, 337, 23, 337, 23, 337, 23, 337, 23, 337, 23, 337, 22, 338, 23, 337, 24, 336, 25, 335, 26, 335, 25, 336, 24, 336, 25, 335, 25, 335, 25, 335, 25, 108], "size": [360, 640]}, "area": 8468, "iscrowd": 1, "image_id": 376177, "bbox": [0, 210, 639, 50], "category_id": 1, "id": 900100376177}, {"segmentation": {"counts": [8192, 10, 410, 15, 388, 10, 10, 17, 385, 13, 8, 19, 383, 41, 382, 42, 381, 43, 381, 43, 381, 43, 381, 43, 381, 42, 382, 42, 382, 42, 383, 41, 351, 6, 27, 40, 350, 8, 28, 38, 349, 10, 27, 38, 348, 12, 26, 41, 345, 12, 26, 43, 343, 12, 27, 43, 342, 12, 28, 47, 337, 13, 29, 46, 336, 13, 35, 41, 335, 15, 35, 40, 334, 17, 34, 39, 334, 18, 33, 39, 334, 19, 33, 38, 335, 19, 33, 37, 336, 18, 34, 36, 337, 17, 35, 35, 337, 17, 36, 33, 339, 16, 38, 9, 3, 18, 341, 15, 23, 6, 23, 15, 343, 14, 22, 8, 23, 12, 346, 12, 22, 10, 13, 10, 1, 8, 350, 9, 22, 12, 11, 21, 351, 6, 23, 12, 10, 23, 349, 8, 22, 14, 7, 28, 344, 10, 21, 50, 342, 12, 20, 51, 341, 12, 20, 53, 339, 12, 20, 54, 338, 12, 21, 54, 337, 12, 21, 55, 336, 12, 21, 55, 336, 12, 22, 55, 331, 15, 23, 55, 330, 15, 25, 54, 329, 14, 27, 54, 328, 16, 27, 55, 325, 18, 27, 55, 323, 20, 26, 56, 321, 21, 27, 56, 319, 22, 28, 55, 319, 22, 29, 3, 5, 46, 319, 22, 37, 46, 319, 22, 37, 46, 319, 22, 30, 1, 7, 45, 319, 22, 37, 46, 319, 22, 34, 2, 2, 6, 2, 19, 337, 22, 39, 3, 5, 17, 339, 21, 47, 16, 341, 20, 47, 15, 344, 4, 2, 12, 46, 15, 351, 12, 46, 14, 352, 12, 46, 14, 353, 10, 48, 13, 354, 8, 49, 12, 355, 8, 48, 11, 356, 10, 45, 12, 356, 12, 43, 12, 357, 12, 44, 10, 358, 12, 46, 6, 360, 12, 412, 12, 412, 12, 412, 12, 413, 10, 415, 8, 418, 4, 15686, 7, 414, 11, 412, 13, 409, 16, 407, 17, 406, 18, 405, 19, 405, 19, 404, 20, 403, 20, 401, 22, 401, 22, 401, 24, 399, 26, 398, 27, 397, 28, 396, 29, 395, 30, 394, 31, 393, 32, 393, 32, 393, 32, 394, 30, 396, 29, 392, 33, 388, 37, 386, 39, 384, 41, 382, 42, 382, 43, 381, 44, 380, 44, 380, 45, 379, 46, 378, 17, 2, 27, 378, 13, 6, 28, 378, 10, 8, 29, 378, 8, 10, 29, 379, 4, 10, 31, 392, 22, 2, 9, 390, 23, 1, 11, 388, 39, 385, 39, 385, 39, 385, 39, 385, 39, 385, 38, 386, 37, 388, 35, 390, 33, 393, 31, 395, 28, 396, 27, 397, 26, 398, 25, 399, 25, 400, 23, 402, 21, 405, 17, 409, 14, 414, 9, 417, 6, 5511, 2, 421, 3, 410, 15, 408, 17, 406, 18, 405, 20, 404, 21, 385, 7, 11, 21, 384, 10, 9, 22, 382, 13, 7, 23, 380, 15, 6, 23, 380, 16, 5, 24, 379, 17, 5, 24, 378, 17, 6, 23, 378, 18, 7, 23, 376, 18, 16, 14, 376, 18, 16, 14, 377, 17, 16, 14, 378, 16, 17, 12, 376, 19, 17, 12, 375, 20, 17, 12, 374, 21, 18, 10, 374, 21, 19, 10, 374, 20, 22, 7, 375, 18, 406, 19, 405, 19, 405, 19, 405, 19, 405, 19, 406, 18, 407, 17, 408, 15, 409, 14, 411, 12, 413, 10, 416, 6, 9750, 7, 406, 19, 404, 21, 402, 23, 400, 24, 400, 24, 400, 24, 400, 24, 400, 24, 400, 24, 400, 23, 401, 23, 402, 21, 404, 19, 407, 4, 1, 12, 412, 12, 413, 10, 415, 8, 418, 4, 1698, 6, 417, 8, 1, 7, 407, 20, 403, 24, 400, 25, 399, 27, 396, 31, 391, 35, 388, 41, 382, 43, 378, 47, 375, 50, 371, 53, 370, 54, 369, 55, 368, 56, 368, 56, 368, 56, 368, 55, 369, 54, 370, 53, 371, 52, 372, 51, 373, 50, 375, 47, 378, 25, 2, 17, 381, 23, 5, 13, 384, 20, 168, 12, 226, 16, 167, 17, 228, 11, 166, 21, 229, 6, 167, 24, 398, 27, 396, 30, 393, 32, 391, 35, 389, 36, 387, 38, 385, 40, 383, 41, 383, 41, 239, 9, 134, 42, 238, 11, 132, 43, 237, 13, 130, 44, 236, 15, 128, 45, 236, 15, 127, 45, 236, 15, 128, 45, 218, 6, 11, 16, 128, 45, 217, 8, 9, 16, 117, 56, 217, 10, 8, 16, 116, 56, 217, 12, 6, 16, 116, 56, 218, 12, 6, 16, 115, 58, 9, 6, 202, 12, 6, 15, 116, 59, 7, 8, 200, 13, 6, 15, 116, 62, 3, 10, 199, 13, 6, 14, 117, 76, 197, 14, 5, 15, 117, 76, 197, 33, 118, 76, 197, 34, 117, 76, 196, 36, 117, 76, 194, 38, 117, 76, 192, 40, 118, 74, 191, 40, 134, 59, 191, 41, 134, 58, 191, 42, 134, 57, 191, 43, 135, 55, 191, 44, 69, 15, 52, 53, 191, 44, 68, 17, 76, 28, 191, 45, 63, 22, 88, 15, 192, 45, 60, 25, 88, 14, 193, 44, 59, 26, 89, 12, 196, 42, 58, 28, 89, 10, 199, 40, 56, 30, 91, 6, 201, 40, 55, 31, 299, 10, 3, 26, 54, 33, 299, 8, 5, 25, 53, 34, 301, 4, 8, 24, 53, 35, 313, 23, 53, 35, 314, 21, 53, 36, 316, 20, 52, 37, 318, 18, 50, 39, 316, 20, 49, 39, 315, 22, 48, 40, 306, 6, 1, 23, 47, 41, 296, 7, 2, 31, 46, 43, 294, 41, 46, 43, 293, 42, 46, 43, 292, 43, 46, 43, 292, 43, 46, 43, 292, 42, 47, 43, 291, 43, 47, 43, 291, 43, 47, 43, 291, 43, 47, 43, 282, 6, 2, 44, 47, 43, 281, 8, 1, 44, 47, 42, 281, 54, 47, 42, 280, 25, 1, 29, 48, 41, 280, 25, 3, 27, 48, 41, 280, 25, 5, 24, 49, 41, 280, 25, 5, 23, 51, 40, 280, 25, 5, 23, 52, 38, 281, 25, 6, 22, 52, 37, 282, 25, 7, 21, 52, 36, 283, 25, 9, 18, 53, 35, 284, 25, 12, 14, 55, 33, 286, 24, 12, 14, 56, 30, 289, 23, 13, 13, 56, 29, 291, 21, 14, 12, 57, 28, 292, 20, 15, 12, 57, 27, 293, 20, 16, 10, 58, 26, 294, 21, 16, 8, 60, 24, 295, 21, 18, 4, 63, 22, 296, 21, 87, 18, 299, 20, 87, 18, 300, 19, 88, 17, 301, 30, 77, 16, 302, 30, 78, 14, 303, 30, 78, 12, 305, 30, 78, 10, 308, 9, 1, 19, 79, 6, 320, 21, 403, 22, 401, 29, 395, 30, 382, 6, 6, 31, 380, 8, 5, 32, 378, 10, 4, 32, 377, 47, 377, 47, 377, 38, 386, 36, 388, 35, 389, 34, 390, 33, 391, 32, 392, 32, 392, 31, 394, 29, 396, 28, 398, 26, 412, 12, 413, 11, 414, 10, 416, 7, 14597, 6, 417, 8, 415, 10, 413, 12, 412, 13, 411, 13, 225, 6, 180, 13, 224, 8, 179, 13, 222, 11, 178, 13, 220, 14, 177, 13, 219, 15, 177, 13, 218, 16, 177, 13, 216, 30, 165, 13, 214, 33, 164, 13, 213, 35, 163, 13, 201, 47, 163, 13, 200, 49, 162, 13, 199, 51, 161, 14, 197, 52, 161, 15, 196, 52, 161, 16, 195, 52, 161, 16, 195, 52, 161, 17, 194, 51, 163, 16, 194, 52, 162, 16, 194, 53, 161, 16, 195, 53, 160, 16, 196, 53, 159, 16, 198, 5, 1, 45, 158, 17, 212, 37, 148, 6, 4, 16, 213, 37, 147, 8, 3, 15, 214, 37, 146, 10, 2, 13, 215, 38, 145, 12, 1, 13, 215, 38, 144, 27, 215, 37, 9, 11, 124, 28, 215, 36, 6, 15, 124, 27, 216, 57, 116, 24, 1, 9, 217, 57, 115, 25, 3, 5, 219, 57, 114, 26, 228, 56, 111, 29, 229, 55, 107, 35, 229, 53, 106, 39, 227, 52, 102, 46, 223, 54, 98, 50, 219, 57, 86, 63, 217, 58, 85, 65, 200, 13, 1, 58, 85, 67, 199, 69, 88, 68, 198, 68, 89, 70, 193, 72, 88, 72, 191, 74, 56, 5, 25, 74, 189, 75, 54, 8, 23, 76, 187, 76, 51, 12, 21, 77, 187, 77, 48, 15, 19, 78, 187, 77, 45, 19, 14, 82, 187, 77, 42, 22, 3, 93, 187, 78, 39, 25, 1, 94, 187, 78, 36, 123, 187, 79, 34, 123, 189, 78, 34, 122, 191, 77, 33, 121, 195, 75, 32, 116, 204, 72, 32, 116, 205, 52, 6, 13, 32, 116, 207, 8, 1, 11, 7, 22, 7, 13, 32, 115, 233, 23, 9, 11, 33, 114, 229, 26, 9, 12, 34, 112, 230, 28, 7, 11, 36, 48, 1, 58, 234, 29, 6, 12, 36, 40, 9, 51, 237, 33, 5, 14, 35, 40, 10, 49, 237, 34, 2, 17, 35, 39, 12, 46, 238, 35, 1, 18, 36, 37, 15, 41, 237, 58, 36, 36, 30, 6, 1, 19, 236, 61, 35, 34, 46, 10, 237, 62, 36, 31, 294, 63, 36, 29, 295, 65, 36, 26, 297, 65, 36, 26, 297, 65, 37, 24, 298, 65, 37, 23, 299, 66, 37, 20, 301, 66, 37, 18, 303, 66, 37, 13, 308, 66, 37, 13, 309, 65, 37, 13, 310, 64, 38, 12, 312, 62, 38, 12, 318, 56, 38, 12, 317, 57, 39, 10, 318, 57, 40, 8, 318, 58, 42, 4, 310, 7, 2, 59, 355, 9, 1, 59, 354, 70, 353, 71, 353, 71, 353, 71, 353, 70, 354, 70, 3, 12, 338, 71, 2, 20, 331, 70, 2, 22, 330, 69, 2, 24, 328, 70, 2, 25, 327, 46, 2, 21, 2, 26, 327, 45, 3, 20, 3, 26, 327, 45, 4, 17, 5, 26, 327, 45, 5, 11, 10, 26, 327, 45, 7, 5, 13, 27, 327, 12, 9, 23, 26, 27, 328, 10, 12, 20, 26, 28, 329, 8, 15, 16, 24, 32, 331, 4, 20, 9, 27, 32, 391, 32, 391, 31, 393, 30, 393, 30, 393, 31, 356, 6, 30, 32, 355, 8, 28, 32, 355, 10, 26, 32, 355, 12, 25, 31, 356, 12, 25, 31, 356, 12, 25, 31, 356, 12, 25, 31, 356, 12, 25, 30, 357, 12, 25, 30, 357, 12, 25, 29, 359, 10, 27, 27, 361, 8, 29, 25, 364, 4, 33, 4, 2, 17, 408, 15, 409, 14, 410, 13, 412, 11, 414, 9, 417, 5, 1282, 6, 417, 8, 415, 10, 413, 12, 412, 12, 411, 13, 410, 14, 391, 10, 8, 15, 388, 14, 7, 15, 386, 17, 6, 15, 385, 19, 4, 16, 380, 24, 3, 16, 379, 44, 379, 45, 374, 50, 373, 51, 372, 51, 372, 51, 373, 51, 373, 50, 374, 49, 375, 47, 377, 46, 378, 44, 374, 47, 376, 47, 376, 48, 375, 49, 375, 49, 375, 49, 375, 48, 376, 47, 377, 45, 379, 44, 381, 42, 383, 39, 387, 31, 398, 5, 2, 8, 2, 4, 309], "size": [424, 640]}, "area": 27840, "iscrowd": 1, "image_id": 458137, "bbox": [19, 47, 620, 248], "category_id": 1, "id": 900100458137}, {"segmentation": {"counts": [9290, 16, 463, 32, 447, 34, 445, 36, 444, 37, 443, 37, 443, 37, 437, 43, 436, 44, 435, 45, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 435, 46, 435, 45, 437, 4, 3, 36, 445, 35, 446, 34, 448, 32, 449, 31, 450, 30, 452, 28, 468, 11, 470, 9, 473, 5, 87341, 17, 2, 6, 452, 29, 450, 31, 448, 33, 446, 34, 445, 35, 443, 37, 442, 38, 441, 39, 437, 43, 436, 44, 435, 45, 434, 46, 434, 46, 434, 46, 433, 47, 433, 47, 433, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 435, 45, 436, 44, 438, 42, 446, 34, 447, 33, 449, 31, 451, 29, 454, 13, 1, 12, 456, 10, 3, 10, 459, 6, 6, 8, 474, 4, 15815, 4, 467, 22, 457, 24, 455, 40, 439, 42, 437, 44, 436, 45, 435, 45, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 435, 45, 436, 44, 437, 43, 439, 41, 443, 37, 448, 32, 448, 32, 448, 32, 448, 32, 449, 31, 450, 29, 451, 29, 452, 28, 453, 27, 455, 25, 455, 25, 456, 24, 457, 9, 1, 12, 460, 5, 5, 9, 473, 5, 20150, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 14, 466, 15, 456, 32, 447, 34, 445, 36, 440, 41, 438, 42, 437, 43, 436, 44, 432, 48, 431, 49, 426, 54, 425, 55, 421, 59, 420, 60, 419, 61, 418, 62, 418, 62, 418, 62, 418, 62, 418, 62, 418, 62, 418, 62, 418, 62, 419, 61, 420, 60, 421, 59, 423, 58, 424, 55, 427, 53, 428, 52, 429, 52, 430, 49, 434, 46, 437, 43, 439, 41, 441, 39, 446, 35, 445, 35, 444, 35, 438, 43, 436, 43, 435, 45, 430, 50, 429, 50, 428, 52, 423, 56, 423, 58, 421, 60, 419, 61, 419, 61, 419, 62, 418, 61, 419, 61, 419, 61, 419, 60, 420, 60, 420, 60, 420, 59, 422, 57, 424, 56, 425, 55, 425, 55, 426, 54, 427, 52, 430, 49, 439, 42, 440, 40, 443, 36, 445, 35, 447, 33, 453, 26, 457, 4, 1, 17, 465, 2, 3, 8, 90029], "size": [480, 640]}, "area": 7305, "iscrowd": 1, "image_id": 427133, "bbox": [19, 158, 433, 62], "category_id": 1, "id": 900100427133}, {"segmentation": {"counts": [230, 10, 400, 154, 73, 16, 17, 1, 379, 154, 72, 20, 9, 13, 372, 154, 70, 45, 371, 154, 69, 47, 370, 154, 68, 49, 369, 154, 67, 51, 368, 154, 67, 51, 368, 154, 66, 54, 366, 154, 65, 56, 365, 154, 65, 56, 365, 154, 64, 57, 365, 154, 64, 57, 365, 154, 64, 57, 365, 154, 64, 57, 365, 155, 63, 57, 365, 155, 63, 7, 2, 48, 365, 155, 63, 2, 6, 49, 365, 155, 71, 49, 365, 155, 71, 49, 365, 155, 71, 49, 365, 155, 72, 47, 366, 163, 64, 47, 366, 163, 65, 46, 366, 163, 65, 46, 366, 164, 64, 45, 367, 164, 64, 45, 367, 164, 64, 44, 368, 164, 64, 43, 369, 164, 64, 43, 369, 164, 64, 42, 370, 165, 63, 41, 371, 165, 63, 39, 373, 165, 63, 3, 11, 18, 380, 165, 63, 3, 14, 10, 385, 165, 63, 3, 16, 6, 387, 165, 63, 3, 19, 3, 387, 165, 63, 3, 409, 165, 63, 3, 409, 165, 64, 2, 409, 165, 64, 2, 409, 165, 63, 3, 409, 165, 63, 3, 409, 165, 63, 3, 409, 165, 63, 3, 409, 165, 63, 3, 409, 165, 63, 3, 409, 165, 62, 4, 409, 165, 62, 4, 409, 165, 62, 4, 409, 165, 62, 4, 409, 165, 62, 4, 409, 165, 62, 4, 409, 165, 32, 8, 21, 5, 409, 165, 29, 11, 21, 5, 409, 165, 28, 13, 20, 5, 409, 165, 26, 16, 18, 6, 409, 165, 25, 19, 15, 7, 409, 165, 24, 21, 13, 8, 409, 165, 23, 24, 10, 9, 409, 165, 23, 27, 6, 10, 409, 165, 22, 30, 4, 10, 409, 165, 21, 33, 3, 9, 409, 165, 21, 33, 3, 9, 409, 165, 20, 35, 2, 9, 409, 165, 20, 35, 3, 8, 409, 165, 20, 35, 3, 8, 409, 165, 20, 36, 2, 11, 406, 164, 21, 37, 1, 15, 402, 164, 20, 57, 399, 164, 20, 39, 1, 22, 394, 164, 20, 66, 390, 164, 19, 94, 363, 164, 19, 94, 363, 163, 20, 94, 363, 163, 20, 94, 363, 163, 20, 94, 363, 163, 20, 94, 363, 163, 20, 43, 1, 50, 363, 162, 21, 43, 2, 49, 363, 162, 21, 43, 2, 49, 363, 162, 21, 43, 3, 48, 363, 162, 21, 43, 4, 46, 364, 162, 21, 43, 5, 45, 364, 161, 22, 43, 6, 44, 364, 161, 22, 43, 6, 43, 365, 161, 22, 42, 8, 41, 366, 160, 23, 42, 10, 38, 367, 160, 23, 41, 12, 37, 367, 160, 23, 39, 15, 35, 368, 160, 24, 37, 18, 31, 370, 160, 24, 35, 21, 29, 371, 159, 25, 34, 24, 25, 373, 159, 26, 32, 28, 19, 376, 159, 27, 31, 423, 159, 28, 29, 424, 159, 28, 29, 424, 159, 29, 28, 424, 158, 31, 26, 425, 158, 32, 25, 425, 158, 34, 22, 426, 158, 35, 20, 427, 158, 37, 16, 429, 158, 40, 10, 432, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 157, 483, 157, 483, 157, 483, 157, 483, 157, 483, 157, 483, 157, 483, 156, 484, 156, 484, 156, 484, 156, 484, 156, 484, 156, 484, 156, 81, 1, 402, 156, 78, 4, 402, 156, 77, 5, 12, 23, 367, 156, 75, 42, 367, 156, 74, 43, 367, 156, 73, 44, 367, 156, 71, 46, 367, 156, 69, 48, 367, 65, 1, 90, 68, 49, 367, 64, 3, 89, 66, 51, 367, 63, 6, 87, 63, 53, 368, 63, 8, 85, 58, 58, 368, 63, 11, 16, 6, 60, 55, 60, 369, 63, 20, 3, 12, 58, 54, 62, 368, 63, 35, 58, 52, 65, 367, 63, 36, 57, 51, 66, 367, 63, 37, 56, 38, 79, 367, 64, 34, 58, 36, 81, 367, 67, 30, 59, 35, 82, 367, 69, 27, 60, 34, 83, 367, 71, 24, 61, 33, 56, 1, 26, 368, 73, 21, 62, 32, 54, 6, 24, 368, 75, 18, 63, 32, 50, 11, 23, 368, 76, 16, 64, 31, 50, 13, 21, 369, 77, 14, 65, 31, 50, 15, 18, 370, 81, 5, 70, 31, 50, 16, 16, 371, 156, 31, 37, 1, 12, 403, 156, 31, 35, 3, 12, 403, 155, 32, 33, 5, 12, 403, 155, 32, 31, 7, 12, 403, 155, 32, 30, 8, 12, 403, 155, 32, 28, 10, 12, 403, 155, 33, 25, 12, 12, 403, 155, 33, 23, 14, 12, 403, 155, 34, 21, 15, 12, 403, 155, 35, 18, 18, 11, 403, 155, 36, 16, 19, 11, 403, 117, 2, 36, 38, 13, 20, 11, 403, 105, 13, 37, 40, 10, 21, 12, 402, 98, 20, 37, 45, 4, 22, 12, 402, 98, 20, 37, 46, 2, 23, 14, 400, 97, 21, 37, 47, 1, 23, 13, 401, 97, 21, 37, 71, 11, 403, 96, 22, 37, 71, 8, 406, 96, 21, 38, 71, 5, 409, 95, 22, 38, 71, 2, 412, 95, 22, 38, 485, 94, 23, 38, 485, 94, 23, 38, 485, 93, 24, 38, 485, 93, 24, 38, 485, 92, 24, 39, 485, 91, 25, 39, 485, 88, 28, 39, 485, 85, 31, 39, 485, 82, 34, 39, 485, 78, 38, 39, 485, 75, 40, 40, 485, 72, 43, 40, 485, 71, 43, 41, 485, 72, 40, 43, 485, 73, 38, 44, 485, 74, 35, 46, 485, 75, 32, 48, 485, 76, 29, 50, 485, 77, 26, 52, 485, 78, 23, 54, 485, 80, 19, 57, 484, 84, 14, 58, 484, 89, 7, 60, 484, 93, 1, 62, 484, 156, 484, 156, 484, 156, 484, 157, 483, 157, 483, 157, 483, 157, 483, 157, 483, 157, 483, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 158, 482, 157, 483, 156, 484, 154, 486, 153, 487, 151, 489, 149, 491, 147, 493, 136, 504, 130, 510, 129, 511, 128, 512, 127, 513, 127, 513, 127, 513, 126, 514, 126, 514, 126, 514, 125, 515, 118, 522, 114, 526, 111, 529, 109, 531, 109, 531, 109, 531, 109, 531, 109, 50, 1, 480, 110, 49, 1, 480, 110, 47, 3, 480, 111, 43, 6, 480, 112, 40, 8, 480, 113, 37, 10, 480, 117, 33, 10, 480, 122, 28, 10, 480, 126, 23, 12, 479, 129, 20, 12, 479, 132, 17, 12, 479, 134, 14, 14, 478, 137, 9, 16, 478, 139, 6, 17, 478, 142, 1, 20, 477, 163, 477, 163, 477, 163, 477, 164, 476, 164, 476, 164, 476, 164, 476, 165, 475, 165, 475, 165, 475, 165, 475, 165, 44, 1, 430, 165, 42, 7, 426, 166, 40, 12, 422, 166, 39, 15, 420, 166, 38, 17, 419, 166, 38, 18, 418, 166, 37, 20, 417, 116, 5, 45, 37, 21, 416, 107, 13, 46, 37, 22, 6, 1, 408, 105, 15, 46, 37, 22, 415, 104, 16, 46, 37, 23, 6, 1, 407, 103, 16, 47, 37, 24, 5, 1, 407, 102, 17, 47, 37, 25, 4, 1, 407, 82, 2, 16, 19, 47, 37, 25, 4, 1, 407, 81, 11, 7, 19, 48, 37, 26, 3, 1, 407, 80, 38, 48, 38, 26, 2, 1, 407, 79, 39, 48, 38, 26, 2, 1, 407, 78, 40, 48, 39, 26, 1, 1, 407, 78, 40, 48, 40, 27, 407, 78, 40, 48, 42, 24, 408, 79, 38, 49, 44, 17, 413, 79, 38, 50, 47, 13, 413, 81, 36, 50, 48, 11, 414, 82, 35, 50, 50, 8, 415, 83, 34, 50, 52, 6, 415, 85, 32, 50, 473, 92, 25, 50, 473, 93, 25, 49, 473, 95, 24, 49, 472, 96, 23, 49, 472, 97, 23, 48, 472, 98, 22, 48, 472, 99, 18, 51, 472, 100, 15, 53, 472, 103, 10, 56, 471, 106, 4, 59, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 471, 169, 36, 9, 426, 169, 34, 13, 424, 169, 33, 16, 422, 169, 32, 18, 421, 169, 31, 20, 420, 169, 31, 22, 418, 169, 30, 26, 415, 169, 30, 28, 413, 169, 30, 29, 412, 169, 30, 31, 410, 169, 30, 32, 409, 169, 30, 33, 408, 169, 30, 34, 407, 169, 30, 35, 406, 168, 31, 36, 405, 168, 32, 36, 404, 168, 32, 37, 403, 168, 33, 36, 403, 168, 34, 36, 402, 168, 35, 36, 401, 167, 38, 34, 401, 167, 39, 34, 400, 167, 40, 33, 400, 167, 42, 31, 400, 167, 44, 29, 400, 166, 47, 27, 400, 166, 50, 24, 400, 166, 50, 24, 400, 165, 52, 23, 400, 165, 52, 23, 400, 165, 53, 21, 401, 165, 54, 20, 401, 164, 56, 18, 402, 164, 58, 15, 403, 163, 61, 11, 405, 163, 63, 7, 407, 163, 477, 162, 478, 162, 478, 161, 479, 161, 479, 161, 479, 160, 480, 160, 480, 159, 481, 159, 481, 158, 482, 158, 482, 157, 483, 157, 483, 156, 484, 155, 485, 155, 485, 154, 486, 154, 486, 153, 487, 152, 488, 152, 488, 151, 489, 150, 490, 149, 491, 149, 491, 148, 492, 147, 493, 146, 494, 145, 495, 145, 495, 144, 496, 143, 497, 142, 498, 141, 499], "size": [640, 427]}, "area": 78933, "iscrowd": 1, "image_id": 503293, "bbox": [0, 0, 426, 276], "category_id": 1, "id": 900100503293}, {"segmentation": {"counts": [645, 14, 2, 2, 1, 12, 1, 6, 11, 12, 432, 19, 1, 12, 1, 7, 10, 12, 431, 46, 5, 12, 428, 49, 4, 13, 427, 50, 1, 16, 1, 5, 420, 75, 418, 77, 417, 78, 416, 79, 414, 80, 414, 80, 415, 79, 414, 80, 412, 82, 411, 82, 411, 83, 409, 84, 409, 44, 2, 36, 411, 45, 9, 26, 413, 47, 10, 3, 1, 17, 416, 47, 17, 3, 4, 3, 419, 48, 446, 48, 446, 48, 446, 48, 445, 49, 444, 50, 444, 49, 445, 48, 445, 49, 445, 49, 446, 48, 446, 48, 446, 47, 448, 46, 449, 17, 1, 3, 4, 20, 451, 4, 24, 15, 479, 15, 479, 15, 478, 15, 479, 16, 478, 16, 478, 16, 478, 28, 465, 30, 463, 32, 462, 34, 460, 38, 455, 41, 453, 42, 453, 42, 452, 43, 451, 43, 452, 43, 452, 43, 450, 45, 445, 49, 444, 50, 443, 51, 442, 52, 442, 52, 442, 52, 441, 53, 441, 53, 442, 52, 442, 51, 443, 52, 443, 50, 420, 10, 15, 49, 419, 15, 12, 48, 418, 18, 10, 47, 406, 7, 5, 20, 8, 48, 405, 9, 3, 22, 6, 49, 404, 11, 1, 24, 4, 51, 402, 93, 400, 94, 397, 97, 396, 98, 395, 99, 394, 100, 394, 100, 362, 8, 23, 101, 361, 10, 21, 102, 358, 16, 15, 105, 356, 20, 11, 107, 356, 21, 9, 108, 353, 29, 3, 109, 352, 142, 351, 144, 346, 149, 343, 152, 342, 152, 337, 157, 336, 158, 335, 159, 334, 24, 1, 135, 334, 24, 1, 134, 335, 159, 334, 159, 336, 157, 335, 156, 336, 157, 337, 157, 334, 159, 333, 161, 332, 118, 2, 42, 329, 119, 4, 42, 328, 119, 6, 41, 325, 121, 8, 40, 324, 121, 10, 43, 314, 126, 12, 43, 312, 126, 14, 43, 310, 126, 15, 47, 305, 126, 17, 47, 304, 126, 18, 47, 303, 125, 20, 47, 301, 125, 22, 46, 302, 124, 23, 45, 302, 123, 24, 45, 302, 122, 26, 44, 303, 120, 28, 43, 304, 118, 30, 41, 307, 115, 32, 40, 311, 110, 34, 38, 319, 102, 36, 6, 2, 3, 2, 3, 3, 1, 6, 3, 1, 4, 324, 99, 383, 6, 6, 96, 383, 10, 4, 88, 390, 13, 4, 86, 390, 15, 3, 85, 388, 18, 3, 84, 388, 20, 1, 84, 388, 106, 384, 110, 382, 109, 385, 107, 385, 110, 382, 113, 380, 114, 379, 115, 2, 2, 374, 23, 1, 43, 2, 3, 1, 50, 370, 23, 3, 28, 20, 54, 366, 20, 6, 16, 2, 10, 19, 57, 364, 20, 1, 19, 1, 12, 19, 32, 1, 27, 362, 51, 21, 62, 360, 52, 20, 13, 2, 47, 360, 53, 18, 64, 359, 53, 17, 66, 358, 53, 17, 66, 358, 53, 17, 66, 358, 53, 16, 66, 359, 53, 16, 66, 361, 50, 16, 67, 368, 43, 15, 67, 373, 38, 15, 67, 376, 4, 3, 3, 3, 4, 4, 3, 3, 6, 18, 65, 428, 44, 2, 20, 427, 44, 4, 18, 427, 45, 5, 17, 426, 49, 3, 15, 412, 88, 404, 92, 401, 94, 399, 96, 390, 105, 388, 106, 384, 110, 383, 131, 1, 16, 345, 150, 343, 152, 342, 153, 341, 153, 340, 154, 340, 154, 337, 157, 336, 60, 1, 97, 332, 64, 3, 94, 327, 69, 6, 3, 1, 88, 326, 70, 2, 95, 326, 165, 328, 166, 328, 166, 4, 7, 317, 166, 2, 10, 315, 180, 315, 182, 312, 183, 311, 190, 305, 190, 305, 128, 1, 63, 303, 124, 3, 65, 302, 122, 1, 70, 302, 193, 302, 192, 304, 190, 308, 186, 307, 55, 1, 131, 307, 187, 307, 187, 306, 188, 306, 188, 307, 187, 307, 186, 308, 186, 309, 185, 310, 184, 312, 182, 314, 180, 313, 181, 309, 184, 309, 184, 309, 186, 307, 187, 307, 118, 1, 68, 307, 119, 1, 67, 306, 121, 2, 65, 306, 121, 3, 64, 307, 120, 4, 63, 307, 67, 2, 51, 4, 62, 308, 67, 2, 51, 4, 42, 1, 19, 309, 12, 3, 50, 2, 52, 5, 38, 5, 17, 311, 10, 5, 49, 1, 53, 6, 36, 8, 12, 316, 5, 9, 101, 9, 3, 3, 26, 12, 10, 332, 5, 1, 93, 17, 22, 15, 8, 338, 93, 20, 19, 18, 3, 340, 92, 24, 3, 4, 3, 1, 3, 364, 91, 403, 91, 402, 91, 403, 89, 406, 88, 406, 88, 406, 87, 408, 84, 411, 80, 416, 3, 2, 4, 1, 66, 429, 62, 438, 54, 445, 46, 448, 20, 1, 15, 3, 5, 449, 21, 2, 13, 7, 1, 451, 20, 2, 13, 459, 19, 2, 14, 459, 18, 2, 15, 460, 34, 461, 8, 1, 23, 464, 3, 4, 23, 466, 24, 469, 24, 469, 23, 470, 23, 467, 25, 467, 26, 455, 6, 6, 27, 454, 39, 454, 40, 453, 40, 453, 41, 453, 41, 428, 8, 17, 41, 427, 10, 15, 43, 76, 5, 5, 1, 338, 15, 12, 42, 74, 32, 318, 22, 6, 43, 69, 37, 317, 71, 64, 43, 316, 71, 44, 6, 9, 49, 314, 76, 40, 7, 1, 56, 315, 80, 34, 65, 315, 83, 29, 67, 315, 85, 26, 68, 316, 85, 23, 70, 317, 84, 21, 71, 318, 84, 18, 74, 318, 84, 16, 76, 319, 83, 16, 75, 320, 83, 16, 75, 320, 31, 1, 50, 17, 74, 322, 26, 4, 51, 17, 72, 325, 24, 4, 51, 18, 72, 326, 7, 1, 10, 8, 44, 1, 4, 22, 72, 328, 1, 22, 41, 31, 72, 350, 39, 33, 73, 348, 39, 34, 73, 349, 37, 36, 72, 349, 37, 37, 71, 349, 37, 39, 69, 348, 37, 51, 58, 347, 38, 52, 56, 347, 39, 56, 50, 349, 39, 59, 45, 351, 39, 62, 40, 352, 42, 62, 20, 1, 5, 4, 3, 348, 51, 65, 3, 1, 5, 368, 52, 441, 54, 439, 55, 439, 56, 438, 56, 432, 4, 1, 60, 421, 73, 420, 79, 414, 81, 412, 83, 411, 84, 410, 84, 409, 85, 410, 84, 410, 84, 410, 84, 411, 82, 413, 79, 417, 75, 421, 9, 2, 61, 23, 3, 408, 59, 24, 7, 404, 59, 24, 12, 400, 55, 26, 13, 400, 54, 27, 13, 400, 53, 29, 12, 401, 50, 31, 12, 402, 48, 23, 21, 403, 39, 3, 2, 24, 23, 405, 35, 29, 25, 407, 5, 2, 24, 28, 28, 413, 25, 20, 36, 412, 25, 19, 37, 413, 25, 19, 37, 413, 25, 18, 38, 412, 26, 18, 37, 414, 24, 19, 37, 414, 24, 19, 36, 398, 42, 19, 34, 398, 44, 18, 34, 397, 46, 17, 34, 396, 47, 18, 33, 396, 48, 17, 33, 396, 48, 17, 34, 394, 48, 28, 25, 394, 47, 30, 24, 379, 60, 19, 1, 11, 24, 378, 60, 22, 1, 9, 24, 377, 61, 32, 24, 376, 62, 26, 31, 375, 61, 28, 30, 375, 61, 28, 31, 373, 61, 29, 32, 373, 58, 31, 32, 373, 45, 45, 32, 372, 44, 45, 34, 51, 8, 313, 43, 42, 38, 49, 9, 314, 42, 40, 42, 47, 9, 316, 39, 39, 46, 24, 3, 18, 10, 318, 36, 36, 50, 17, 8, 18, 12, 318, 35, 36, 52, 8, 15, 18, 13, 317, 34, 36, 75, 19, 13, 318, 33, 36, 75, 18, 14, 318, 32, 36, 75, 19, 15, 317, 33, 35, 75, 19, 16, 317, 33, 33, 75, 22, 15, 317, 33, 31, 76, 22, 16, 317, 33, 30, 75, 24, 15, 317, 35, 29, 73, 24, 16, 317, 36, 1, 1, 35, 64, 23, 17, 316, 41, 32, 64, 24, 18, 316, 42, 28, 66, 24, 19, 315, 44, 25, 66, 24, 20, 315, 45, 23, 67, 23, 21, 315, 45, 22, 67, 24, 21, 314, 47, 3, 1, 17, 67, 24, 21, 315, 52, 15, 66, 24, 22, 303, 66, 12, 67, 21, 24, 303, 69, 8, 1, 2, 65, 21, 25, 302, 72, 6, 2, 1, 64, 22, 26, 300, 75, 3, 3, 1, 4, 1, 41, 1, 17, 22, 26, 300, 77, 1, 3, 2, 1, 4, 40, 2, 15, 22, 27, 300, 81, 7, 39, 4, 12, 24, 26, 300, 82, 8, 38, 6, 7, 27, 26, 301, 79, 10, 38, 39, 26, 302, 78, 12, 37, 39, 27, 301, 76, 14, 37, 39, 27, 302, 73, 17, 36, 40, 26, 303, 71, 18, 36, 40, 26, 305, 11, 1, 55, 20, 36, 40, 26, 305, 12, 3, 28, 1, 22, 22, 36, 40, 25, 305, 12, 4, 49, 23, 34, 41, 25, 305, 13, 4, 48, 9, 14, 2, 33, 41, 25, 305, 13, 4, 47, 9, 49, 41, 26, 306, 12, 5, 45, 9, 49, 42, 25, 307, 12, 5, 44, 9, 49, 43, 25, 307, 14, 3, 43, 10, 48, 43, 25, 309, 58, 10, 48, 45, 23, 310, 42, 4, 11, 11, 47, 48, 21, 309, 42, 27, 46, 50, 22, 307, 42, 27, 39, 2, 4, 52, 22, 307, 40, 28, 34, 1, 2, 7, 1, 54, 21, 306, 40, 29, 33, 66, 21, 305, 39, 30, 33, 67, 20, 306, 38, 30, 32, 69, 20, 306, 36, 31, 17, 1, 13, 71, 19, 308, 34, 31, 17, 2, 12, 72, 18, 310, 31, 33, 15, 3, 13, 71, 18, 312, 28, 34, 13, 4, 14, 72, 17, 317, 26, 31, 10, 8, 14, 71, 17, 318, 29, 27, 9, 9, 14, 72, 15, 320, 32, 23, 9, 9, 15, 72, 14, 320, 36, 20, 7, 11, 15, 71, 13, 321, 38, 18, 4, 15, 14, 72, 9, 323, 40, 37, 6, 3, 4, 72, 9, 324, 39, 38, 5, 5, 1, 74, 8, 323, 40, 39, 4, 79, 9, 324, 40, 39, 3, 68, 20, 323, 43, 97, 31, 323, 43, 87, 42, 323, 43, 85, 43, 322, 45, 83, 44, 320, 47, 81, 46, 315, 53, 65, 3, 11, 47, 310, 60, 73, 2, 2, 47, 307, 63, 72, 51, 307, 64, 72, 51, 306, 65, 72, 50, 306, 66, 73, 49, 306, 66, 57, 2, 14, 49, 306, 52, 1, 13, 57, 4, 12, 49, 305, 66, 57, 7, 10, 48, 306, 66, 57, 9, 6, 50, 307, 65, 56, 12, 2, 52, 307, 65, 56, 67, 306, 65, 56, 67, 307, 64, 56, 67, 308, 63, 56, 67, 309, 61, 56, 68, 310, 60, 56, 68, 312, 58, 57, 67, 4, 8, 301, 57, 23, 5, 29, 67, 3, 10, 300, 59, 15, 11, 29, 67, 2, 12, 300, 61, 10, 13, 29, 67, 1, 14, 300, 61, 4, 19, 29, 81, 302, 61, 1, 20, 34, 9, 1, 66, 304, 80, 39, 3, 2, 66, 304, 80, 44, 66, 303, 81, 44, 66, 303, 81, 44, 65, 305, 80, 44, 65, 305, 80, 44, 64, 306, 80, 44, 63, 308, 79, 44, 60, 312, 19, 1, 58, 38, 5, 1, 60, 314, 3, 2, 73, 34, 67, 321, 75, 30, 67, 315, 86, 24, 68, 314, 90, 20, 68, 315, 47, 1, 48, 14, 69, 312, 102, 9, 70, 312, 106, 4, 71, 312, 181, 312, 179, 315, 178, 316, 177, 316, 177, 317, 177, 310, 184, 309, 185, 308, 186, 307, 69, 2, 116, 306, 65, 8, 114, 307, 60, 13, 115, 306, 53, 20, 115, 305, 52, 22, 115, 306, 50, 23, 115, 306, 49, 23, 116, 306, 48, 25, 115, 307, 46, 22, 119, 308, 45, 21, 120, 310, 48, 15, 121, 314, 10, 4, 31, 13, 122, 318, 3, 7, 36, 8, 122, 328, 37, 7, 122, 327, 43, 1, 122, 328, 44, 1, 120, 330, 164, 330, 164, 330, 163, 332, 10, 1, 151, 333, 8, 3, 149, 336, 3, 7, 148, 348, 6, 3, 118, 1, 3, 1, 14, 361, 110, 9, 14, 363, 109, 8, 15, 365, 107, 7, 16, 364, 130, 364, 130, 364, 130, 363, 131, 362, 132, 361, 133, 347, 7, 3, 137, 345, 10, 1, 138, 337, 157, 336, 71, 1, 86, 335, 159, 334, 160, 334, 159, 335, 159, 334, 160, 334, 160, 333, 33, 2, 126, 333, 32, 3, 126, 333, 30, 2, 129, 332, 31, 1, 130, 331, 163, 331, 163, 331, 162, 331, 163, 331, 84, 4, 73, 334, 82, 7, 58, 3, 3, 1, 4, 336, 82, 11, 54, 347, 81, 13, 53, 348, 79, 14, 53, 349, 75, 1, 6, 10, 53, 351, 69, 4, 8, 8, 54, 355, 4, 4, 3, 3, 47, 4, 13, 7, 53, 370, 46, 3, 19, 3, 53, 367, 117, 376, 118, 375, 119, 373, 121, 372, 122, 372, 122, 370, 124, 369, 125, 368, 52, 1, 73, 367, 53, 1, 72, 366, 55, 1, 72, 365, 129, 364, 130, 363, 19, 2, 36, 1, 70, 364, 19, 3, 107, 364, 19, 3, 37, 2, 68, 354, 30, 2, 35, 4, 68, 1, 7, 345, 31, 2, 34, 5, 67, 2, 9, 343, 32, 2, 35, 4, 64, 4, 11, 341, 33, 2, 36, 3, 64, 3, 13, 339, 34, 1, 37, 3, 64, 1, 15, 339, 34, 2, 36, 3, 80, 339, 34, 2, 36, 3, 84, 334, 73, 2, 100, 319, 73, 2, 105, 314, 72, 3, 110, 308, 74, 1, 112, 308, 187, 307, 188, 306, 189, 306, 188, 307, 9, 2, 176, 309, 4, 7, 130, 1, 43, 324, 170, 324, 170, 324, 149, 2, 18, 326, 11, 2, 132, 7, 16, 327, 9, 3, 132, 6, 16, 330, 4, 6, 132, 5, 16, 341, 115, 4, 15, 2, 17, 341, 111, 12, 30, 341, 107, 21, 24, 342, 103, 30, 19, 341, 100, 38, 14, 342, 96, 47, 6, 345, 17, 1, 75, 55, 1, 323, 6, 16, 91, 380, 8, 15, 91, 379, 10, 13, 91, 379, 12, 11, 82, 7, 2, 380, 12, 11, 67, 1, 9, 13, 1, 380, 16, 7, 62, 9, 3, 396, 19, 4, 63, 408, 20, 4, 61, 410, 20, 3, 67, 404, 21, 1, 69, 18, 1, 384, 21, 1, 70, 402, 21, 1, 71, 400, 93, 402, 92, 402, 92, 401, 92, 402, 92, 402, 91, 402, 92, 402, 91, 404, 91, 403, 91, 403, 92, 402, 93, 401, 93, 400, 95, 400, 97, 397, 107, 386, 41, 1, 16, 1, 51, 385, 57, 2, 52, 383, 56, 5, 51, 382, 59, 1, 54, 381, 115, 380, 116, 378, 118, 376, 120, 375, 120, 375, 121, 375, 22, 2, 97, 374, 13, 1, 3, 10, 95, 374, 3, 23, 102, 37, 6, 351, 109, 25, 10, 354, 3, 3, 104, 13, 18, 366, 98, 2, 29, 369, 125, 368, 126, 367, 127, 365, 129, 363, 131, 362, 131, 362, 132, 361, 132, 328, 14, 1, 6, 11, 132, 329, 166, 327, 168, 325, 170, 324, 171, 323, 171, 322, 172, 323, 171, 323, 171, 323, 171, 324, 169, 326, 40, 1, 127, 327, 38, 2, 126, 328, 38, 2, 119, 1, 3, 332, 37, 1, 104, 4, 3, 4, 3, 338, 37, 2, 101, 356, 35, 2, 47, 3, 3, 4, 3, 2, 4, 1, 33, 361, 30, 3, 15, 1, 11, 1, 6, 1, 4, 36, 3, 1, 6, 4, 3, 2, 3, 365, 29, 4, 11, 6, 3, 443, 5, 3, 3, 3, 3, 1, 8, 6, 9, 473, 3, 11, 4, 413], "size": [494, 640]}, "area": 78949, "iscrowd": 1, "image_id": 557323, "bbox": [1, 1, 638, 220], "category_id": 1, "id": 900100557323}, {"segmentation": {"counts": [1094, 17, 595, 17, 595, 17, 595, 17, 595, 17, 595, 17, 594, 18, 594, 17, 594, 17, 594, 16, 596, 14, 598, 14, 598, 14, 598, 13, 599, 12, 600, 12, 601, 7, 606, 1, 8566, 8, 603, 10, 601, 12, 599, 14, 598, 14, 598, 14, 598, 14, 598, 14, 598, 14, 598, 14, 599, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 17131, 3, 608, 5, 606, 7, 604, 9, 603, 10, 602, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 12, 600, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 4281, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 20805, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 12, 599, 13, 598, 14, 598, 14, 598, 14, 598, 13, 599, 13, 599, 14, 598, 14, 598, 14, 598, 14, 598, 14, 598, 14, 599, 13, 600, 4, 59364, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 12, 600, 12, 600, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 600, 11, 602, 9, 605, 5, 14680, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 599, 13, 600, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 43447, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 21413, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 47119, 4, 607, 5, 606, 8, 603, 12, 600, 12, 600, 12, 600, 12, 599, 13, 599, 13, 599, 13, 599, 13, 599, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 23865, 6, 605, 8, 603, 10, 601, 12, 600, 12, 600, 12, 600, 12, 600, 12, 600, 13, 599, 14, 599, 13, 600, 12, 600, 12, 600, 12, 600, 12, 600, 12, 601, 10, 603, 8, 606, 4, 6853], "size": [612, 612]}, "area": 2103, "iscrowd": 1, "image_id": 3947, "bbox": [1, 477, 599, 21], "category_id": 20, "id": 902000003947}, {"segmentation": {"counts": [42624, 10, 415, 16, 411, 18, 408, 22, 405, 24, 403, 26, 401, 28, 399, 30, 398, 30, 397, 32, 396, 32, 395, 34, 394, 34, 394, 34, 394, 34, 394, 34, 394, 34, 394, 34, 394, 34, 394, 34, 394, 35, 393, 35, 393, 35, 393, 36, 392, 36, 392, 37, 391, 37, 391, 38, 390, 38, 391, 38, 390, 39, 389, 39, 390, 39, 389, 39, 389, 40, 389, 39, 390, 38, 390, 38, 390, 38, 391, 38, 390, 38, 390, 39, 389, 39, 390, 38, 390, 38, 390, 38, 391, 37, 392, 36, 392, 36, 393, 35, 382, 10, 1, 35, 379, 49, 378, 50, 376, 52, 375, 52, 375, 53, 374, 54, 373, 54, 374, 53, 374, 54, 374, 53, 374, 53, 375, 51, 377, 50, 378, 48, 380, 34, 4, 7, 383, 34, 394, 34, 394, 11, 1, 22, 394, 11, 2, 21, 394, 11, 4, 19, 394, 10, 7, 17, 394, 10, 8, 16, 395, 8, 11, 13, 396, 8, 13, 11, 396, 7, 16, 9, 397, 6, 17, 7, 399, 5, 19, 4, 400, 4, 22, 2, 401, 3, 426, 1, 15847, 7, 420, 9, 418, 11, 416, 13, 414, 15, 413, 15, 412, 16, 412, 17, 410, 18, 409, 19, 408, 21, 407, 21, 407, 27, 400, 29, 398, 32, 396, 33, 395, 34, 393, 36, 392, 36, 392, 36, 392, 37, 391, 38, 390, 39, 389, 40, 388, 41, 386, 43, 385, 44, 384, 45, 383, 47, 381, 48, 380, 49, 379, 50, 378, 50, 378, 50, 378, 50, 379, 21, 7, 21, 380, 20, 9, 19, 380, 20, 13, 15, 380, 19, 16, 13, 380, 21, 15, 11, 381, 22, 16, 8, 382, 24, 16, 4, 384, 25, 403, 28, 400, 29, 399, 31, 398, 31, 398, 31, 394, 37, 390, 40, 387, 43, 384, 47, 381, 49, 365, 10, 4, 50, 361, 16, 1, 51, 359, 74, 352, 79, 348, 81, 346, 83, 344, 85, 342, 86, 342, 87, 340, 89, 339, 90, 337, 91, 337, 55, 7, 29, 337, 54, 11, 26, 337, 54, 14, 23, 337, 54, 19, 18, 337, 54, 24, 13, 337, 54, 25, 12, 337, 54, 26, 10, 338, 54, 27, 8, 339, 54, 29, 4, 341, 54, 374, 54, 375, 53, 375, 32, 1, 20, 375, 32, 3, 17, 377, 30, 5, 15, 379, 28, 8, 11, 382, 26, 12, 6, 384, 26, 403, 24, 406, 20, 409, 18, 412, 14, 418, 6, 4705, 8, 11, 19, 389, 10, 9, 22, 386, 12, 2, 29, 384, 45, 383, 46, 382, 46, 382, 46, 382, 46, 382, 46, 382, 46, 383, 45, 384, 44, 385, 43, 386, 42, 387, 41, 388, 41, 389, 41, 390, 45, 383, 46, 382, 47, 382, 19, 2, 26, 382, 18, 3, 25, 384, 16, 4, 24, 386, 14, 5, 23, 387, 13, 6, 22, 388, 12, 8, 20, 388, 12, 9, 19, 389, 10, 12, 17, 390, 8, 15, 15, 392, 4, 18, 13, 352, 4, 60, 11, 352, 6, 61, 7, 354, 6, 422, 7, 421, 6, 422, 6, 424, 3, 25280, 13, 414, 15, 411, 18, 409, 20, 407, 21, 406, 22, 406, 22, 406, 22, 406, 22, 406, 22, 406, 22, 406, 22, 407, 21, 408, 20, 410, 4, 2, 12, 416, 12, 416, 12, 417, 10, 419, 8, 422, 4, 2967, 7, 420, 9, 418, 13, 414, 22, 406, 25, 403, 26, 402, 29, 399, 33, 395, 35, 393, 37, 392, 39, 390, 39, 391, 38, 393, 36, 394, 35, 396, 32, 402, 26, 405, 23, 406, 22, 408, 20, 413, 15, 414, 13, 417, 10, 422, 4, 70963, 6, 421, 8, 419, 10, 417, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 12, 417, 10, 419, 8, 422, 4, 1541], "size": [428, 640]}, "area": 9177, "iscrowd": 1, "image_id": 574487, "bbox": [99, 163, 537, 130], "category_id": 38, "id": 903800574487}, {"segmentation": {"counts": [557, 32, 67, 30, 153, 46, 3, 11, 1, 7, 1, 3, 1, 9, 1, 2, 132, 34, 65, 32, 151, 47, 3, 37, 130, 36, 63, 34, 150, 87, 1, 1, 104, 5, 2, 1, 13, 40, 37, 3, 21, 36, 148, 92, 100, 13, 2, 1, 5, 43, 35, 6, 1, 3, 13, 39, 147, 95, 95, 20, 2, 45, 32, 16, 1, 1, 3, 44, 146, 95, 94, 68, 31, 67, 145, 96, 92, 70, 29, 68, 145, 96, 91, 71, 28, 70, 143, 97, 90, 73, 2, 12, 11, 72, 143, 98, 89, 90, 8, 73, 142, 98, 87, 94, 5, 74, 142, 98, 86, 175, 141, 98, 85, 176, 141, 98, 84, 177, 141, 98, 83, 179, 140, 98, 82, 180, 141, 97, 81, 181, 141, 97, 80, 182, 141, 97, 80, 182, 141, 97, 79, 183, 142, 96, 79, 183, 142, 96, 78, 184, 142, 95, 79, 184, 143, 94, 78, 185, 143, 94, 78, 185, 144, 93, 78, 185, 145, 92, 78, 185, 145, 92, 78, 184, 146, 92, 77, 70, 17, 98, 146, 92, 77, 50, 37, 99, 145, 92, 77, 27, 1, 2, 57, 113, 131, 92, 77, 27, 60, 116, 128, 92, 77, 27, 60, 118, 126, 92, 77, 27, 60, 120, 124, 92, 77, 27, 60, 57, 32, 32, 123, 92, 77, 27, 60, 27, 62, 34, 121, 92, 77, 27, 60, 27, 61, 36, 4, 4, 112, 92, 77, 27, 61, 26, 61, 50, 106, 91, 79, 26, 16, 89, 43, 53, 103, 91, 79, 110, 61, 58, 101, 91, 79, 20, 64, 26, 60, 60, 100, 91, 79, 20, 65, 24, 61, 62, 99, 90, 80, 19, 65, 24, 61, 63, 98, 90, 80, 20, 65, 22, 61, 65, 2, 9, 86, 90, 80, 20, 65, 22, 61, 80, 83, 89, 81, 19, 66, 21, 61, 82, 81, 89, 81, 19, 67, 20, 60, 85, 80, 88, 82, 18, 67, 20, 60, 87, 79, 87, 82, 19, 67, 19, 59, 89, 78, 86, 84, 17, 66, 21, 59, 90, 78, 85, 84, 17, 66, 21, 59, 91, 1, 11, 65, 85, 84, 17, 66, 21, 58, 108, 61, 85, 85, 16, 66, 21, 58, 110, 59, 85, 85, 16, 66, 21, 58, 112, 57, 85, 86, 15, 66, 25, 53, 114, 55, 86, 87, 14, 66, 194, 53, 86, 87, 14, 67, 16, 1, 177, 52, 85, 89, 13, 67, 13, 6, 188, 39, 85, 92, 10, 67, 9, 12, 43, 11, 135, 36, 85, 77, 10, 6, 9, 67, 1, 21, 24, 29, 138, 33, 85, 75, 14, 5, 8, 31, 27, 9, 1, 21, 6, 46, 140, 32, 85, 73, 17, 4, 10, 15, 51, 20, 4, 49, 142, 30, 85, 72, 19, 4, 75, 20, 4, 49, 143, 29, 85, 72, 20, 4, 74, 19, 5, 48, 145, 4, 5, 20, 84, 71, 22, 5, 72, 19, 4, 49, 159, 15, 84, 71, 22, 5, 72, 19, 4, 49, 162, 12, 84, 71, 23, 3, 73, 19, 4, 48, 165, 10, 83, 72, 23, 2, 74, 19, 4, 48, 167, 9, 82, 72, 23, 1, 75, 18, 5, 48, 168, 8, 82, 72, 23, 1, 75, 18, 4, 48, 170, 7, 81, 73, 98, 19, 4, 48, 171, 2, 85, 73, 98, 19, 4, 48, 258, 73, 33, 84, 4, 49, 257, 73, 33, 84, 4, 52, 10, 2, 242, 73, 33, 84, 4, 34, 13, 18, 242, 72, 33, 85, 2, 16, 32, 19, 241, 72, 33, 85, 50, 20, 240, 73, 32, 85, 50, 22, 238, 74, 32, 84, 49, 25, 236, 75, 91, 25, 48, 27, 234, 76, 89, 26, 48, 32, 7, 3, 219, 76, 89, 26, 47, 44, 218, 76, 88, 28, 46, 45, 217, 74, 89, 29, 45, 48, 215, 73, 89, 31, 44, 49, 214, 72, 88, 34, 42, 52, 213, 72, 86, 35, 41, 56, 210, 72, 85, 37, 40, 70, 196, 72, 83, 40, 38, 72, 195, 72, 82, 42, 36, 75, 193, 72, 80, 45, 34, 77, 192, 72, 77, 49, 31, 81, 191, 71, 76, 52, 28, 84, 189, 70, 76, 54, 26, 89, 11, 1, 173, 70, 74, 58, 22, 104, 173, 69, 71, 63, 17, 108, 172, 69, 67, 72, 8, 113, 171, 69, 65, 197, 169, 69, 64, 200, 167, 69, 64, 202, 165, 69, 63, 207, 9, 2, 150, 70, 62, 219, 149, 70, 61, 221, 148, 69, 62, 223, 146, 69, 62, 224, 145, 69, 62, 226, 143, 69, 62, 229, 140, 69, 62, 234, 5, 4, 126, 69, 62, 244, 125, 69, 62, 246, 122, 70, 61, 248, 121, 70, 61, 250, 119, 71, 60, 252, 117, 71, 59, 256, 114, 70, 60, 270, 100, 70, 59, 272, 99, 70, 59, 273, 98, 70, 59, 275, 97, 69, 58, 277, 96, 69, 58, 280, 94, 68, 58, 283, 91, 68, 58, 296, 78, 68, 58, 297, 78, 68, 57, 299, 76, 68, 57, 300, 75, 67, 58, 302, 73, 67, 57, 305, 71, 67, 57, 306, 70, 67, 57, 306, 70, 67, 56, 308, 69, 67, 56, 308, 69, 67, 56, 308, 69, 67, 56, 308, 69, 67, 56, 309, 68, 67, 56, 309, 68, 69, 54, 309, 68, 67, 56, 310, 66, 68, 56, 310, 66, 68, 56, 311, 65, 68, 56, 312, 63, 69, 56, 312, 63, 69, 56, 313, 61, 71, 55, 314, 60, 71, 55, 315, 58, 71, 56, 316, 56, 72, 56, 317, 55, 72, 56, 319, 52, 73, 56, 320, 50, 74, 56, 322, 47, 79, 52, 324, 43, 80, 53, 329, 8, 1, 28, 79, 55, 339, 26, 79, 56, 341, 22, 81, 56, 343, 17, 84, 56, 348, 8, 88, 56, 444, 56, 444, 56, 444, 56, 445, 55, 86, 15, 344, 55, 83, 21, 340, 56, 80, 26, 338, 55, 80, 29, 336, 55, 78, 33, 335, 54, 77, 35, 334, 53, 77, 37, 332, 54, 76, 39, 331, 53, 76, 41, 330, 53, 75, 43, 329, 52, 75, 45, 328, 51, 75, 46, 329, 50, 75, 47, 328, 49, 75, 48, 328, 48, 76, 49, 327, 47, 76, 50, 326, 46, 78, 51, 326, 44, 78, 52, 325, 44, 79, 52, 325, 42, 81, 53, 324, 39, 84, 53, 325, 28, 4, 2, 88, 53, 324, 30, 6, 12, 74, 54, 324, 31, 3, 17, 71, 55, 323, 32, 1, 20, 69, 56, 322, 55, 67, 57, 322, 63, 58, 58, 320, 43, 79, 59, 319, 43, 79, 59, 319, 43, 79, 60, 319, 43, 77, 61, 318, 44, 77, 62, 317, 44, 77, 62, 317, 44, 77, 63, 316, 44, 77, 63, 316, 44, 76, 64, 316, 45, 75, 65, 316, 66, 53, 77, 303, 99, 21, 81, 299, 99, 21, 84, 297, 99, 20, 86, 294, 100, 20, 88, 292, 101, 19, 90, 290, 101, 19, 91, 289, 102, 18, 92, 288, 102, 18, 93, 288, 101, 18, 63, 17, 14, 286, 103, 17, 51, 30, 14, 285, 103, 17, 46, 37, 13, 284, 103, 17, 46, 39, 11, 285, 102, 17, 46, 41, 10, 284, 102, 17, 46, 43, 8, 283, 103, 17, 46, 45, 7, 282, 103, 17, 46, 48, 4, 282, 103, 17, 46, 50, 3, 281, 42, 8, 53, 17, 46, 53, 1, 280, 42, 8, 53, 17, 46, 334, 42, 8, 53, 17, 46, 334, 42, 9, 52, 17, 45, 335, 42, 9, 14, 55, 45, 336, 41, 78, 45, 335, 41, 79, 45, 335, 41, 79, 106, 274, 41, 79, 107, 273, 41, 79, 108, 273, 40, 80, 108, 272, 40, 80, 108, 271, 41, 80, 109, 271, 40, 80, 109, 271, 40, 81, 109, 270, 40, 81, 110, 269, 40, 81, 111, 268, 40, 82, 110, 268, 41, 33, 30, 18, 111, 266, 106, 18, 110, 266, 107, 18, 110, 265, 108, 17, 110, 266, 108, 17, 110, 265, 108, 17, 110, 265, 109, 16, 110, 265, 109, 17, 110, 265, 109, 16, 110, 265, 109, 16, 110, 264, 111, 16, 109, 263, 90, 16, 6, 16, 109, 263, 48, 58, 6, 16, 109, 263, 41, 65, 7, 16, 108, 263, 42, 65, 6, 16, 108, 263, 42, 65, 6, 17, 107, 263, 42, 65, 6, 17, 107, 264, 42, 64, 6, 18, 106, 264, 42, 64, 6, 18, 106, 264, 42, 65, 5, 19, 105, 264, 43, 6, 38, 20, 5, 20, 104, 265, 111, 20, 104, 264, 39, 44, 29, 21, 103, 264, 39, 68, 5, 21, 102, 265, 39, 68, 5, 22, 101, 266, 38, 68, 5, 23, 100, 265, 39, 69, 3, 24, 100, 265, 39, 69, 3, 25, 100, 264, 39, 69, 3, 26, 99, 264, 39, 69, 2, 27, 99, 265, 38, 46, 25, 28, 98, 264, 39, 7, 63, 30, 97, 264, 109, 31, 96, 265, 107, 33, 95, 266, 105, 35, 95, 265, 105, 36, 94, 264, 105, 37, 94, 264, 104, 39, 94, 263, 105, 39, 93, 262, 107, 38, 93, 261, 109, 38, 93, 260, 110, 38, 92, 260, 110, 39, 91, 260, 111, 39, 91, 259, 111, 40, 90, 259, 112, 38, 91, 259, 112, 38, 91, 259, 113, 36, 92, 259, 113, 36, 92, 259, 113, 35, 93, 260, 113, 34, 93, 260, 113, 34, 93, 261, 112, 34, 93, 262, 111, 34, 93, 261, 112, 33, 94, 261, 112, 33, 94, 262, 111, 33, 94, 260, 113, 33, 94, 259, 114, 33, 94, 259, 114, 33, 94, 259, 114, 33, 94, 259, 114, 33, 94, 259, 114, 33, 93, 261, 112, 34, 93, 262, 111, 33, 94, 262, 111, 33, 94, 261, 111, 33, 94, 261, 45, 2, 65, 33, 94, 261, 36, 1, 6, 4, 64, 33, 95, 261, 36, 12, 63, 33, 94, 263, 35, 12, 63, 32, 95, 263, 35, 12, 63, 32, 94, 263, 36, 13, 62, 32, 94, 263, 36, 13, 62, 32, 93, 265, 35, 14, 61, 32, 92, 267, 34, 15, 60, 31, 93, 266, 35, 15, 60, 31, 92, 266, 36, 16, 59, 31, 92, 266, 36, 16, 59, 31, 92, 266, 36, 3, 72, 31, 92, 266, 36, 1, 74, 31, 92, 266, 111, 31, 92, 266, 111, 32, 91, 266, 112, 31, 91, 266, 113, 30, 91, 266, 113, 30, 91, 266, 114, 30, 90, 266, 114, 30, 90, 266, 114, 30, 89, 267, 114, 31, 89, 266, 114, 31, 89, 266, 114, 32, 88, 266, 114, 33, 87, 266, 114, 33, 87, 266, 114, 29, 91, 266, 113, 27, 94, 266, 113, 24, 97, 266, 112, 24, 98, 266, 32, 102, 100, 266, 32, 101, 101, 266, 32, 100, 102, 266, 31, 100, 102, 267, 31, 99, 103, 267, 31, 98, 103, 268, 31, 97, 104, 268, 30, 97, 105, 268, 30, 97, 105, 268, 30, 96, 106, 268, 35, 91, 105, 269, 34, 91, 106, 269, 34, 91, 106, 269, 33, 91, 107, 269, 33, 91, 107, 269, 32, 92, 107, 269, 31, 93, 107, 269, 31, 93, 107, 269, 30, 93, 108, 269, 29, 94, 107, 270, 28, 95, 107, 270, 27, 96, 106, 271, 25, 98, 105, 272, 24, 99, 85, 1, 18, 273, 23, 100, 85, 2, 15, 275, 21, 103, 84, 5, 10, 278, 17, 106, 84, 298, 8, 110, 84, 416, 84, 417, 83, 417, 83, 417, 83, 418, 81, 419, 81, 420, 80, 421, 78, 422, 78, 423, 76, 425, 75, 426, 73, 428, 71, 430, 70, 432, 67, 297], "size": [500, 375]}, "area": 76139, "iscrowd": 1, "image_id": 209041, "bbox": [1, 1, 373, 432], "category_id": 84, "id": 908400209041}, {"segmentation": {"counts": [5184, 4, 345, 7, 342, 9, 341, 9, 341, 15, 336, 15, 335, 15, 336, 14, 337, 13, 338, 12, 339, 9, 3832, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 341, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 19959, 4, 345, 7, 342, 9, 341, 11, 340, 11, 339, 12, 339, 11, 340, 10, 341, 9, 343, 7, 345, 3, 9787, 4, 345, 7, 342, 10, 340, 11, 340, 10, 340, 10, 341, 9, 342, 8, 344, 6, 344, 6, 345, 3, 14333, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 4203, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 11561, 4, 345, 6, 343, 7, 343, 7, 343, 7, 343, 7, 343, 7, 343, 7, 344, 6, 324, 4, 16, 6, 323, 6, 16, 3, 324, 7, 343, 7, 344, 6, 344, 6, 345, 3, 3497, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 359, 4, 345, 6, 343, 8, 341, 9, 330, 4, 7, 9, 329, 6, 7, 8, 328, 7, 7, 8, 328, 7, 8, 5, 331, 6, 344, 6, 345, 3, 12, 4, 345, 6, 343, 7, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 7683, 4, 345, 6, 343, 7, 343, 7, 343, 7, 342, 8, 341, 7, 343, 7, 344, 6, 344, 6, 345, 3, 8044, 5, 344, 7, 342, 8, 342, 8, 343, 7, 343, 9, 342, 9, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 1746, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 23793, 4, 345, 6, 343, 8, 342, 8, 343, 9, 341, 10, 341, 9, 342, 8, 343, 7, 342, 8, 342, 8, 342, 7, 343, 8, 14, 5, 323, 8, 13, 8, 321, 8, 12, 10, 321, 7, 12, 10, 321, 7, 11, 11, 321, 7, 11, 11, 322, 6, 11, 11, 322, 6, 12, 10, 323, 3, 14, 9, 342, 7, 345, 4, 676, 4, 345, 6, 343, 7, 343, 7, 343, 7, 342, 8, 342, 8, 342, 8, 342, 7, 343, 7, 343, 7, 344, 6, 344, 6, 342, 6, 343, 6, 343, 7, 343, 7, 344, 6, 4, 5, 335, 6, 3, 8, 334, 3, 4, 10, 340, 10, 339, 11, 339, 11, 333, 4, 2, 11, 332, 6, 2, 10, 331, 7, 2, 9, 332, 7, 3, 7, 334, 6, 5, 4, 335, 6, 345, 3, 344, 4, 345, 6, 343, 7, 343, 7, 344, 6, 344, 6, 345, 3, 1398, 4, 345, 6, 6, 6, 331, 7, 5, 8, 330, 7, 4, 10, 328, 8, 3, 12, 327, 8, 1, 14, 327, 23, 327, 23, 326, 24, 326, 7, 2, 15, 327, 6, 2, 15, 327, 6, 3, 13, 329, 3, 8, 9, 344, 4, 17834, 5, 344, 8, 341, 10, 340, 10, 339, 11, 339, 11, 339, 5, 1, 5, 339, 5, 2, 4, 338, 7, 1, 4, 338, 12, 338, 11, 339, 11, 339, 11, 339, 12, 338, 13, 337, 13, 337, 13, 337, 13, 338, 12, 338, 12, 339, 11, 340, 10, 340, 9, 342, 7, 345, 4, 344, 5, 344, 8, 341, 10, 340, 10, 339, 11, 339, 11, 339, 11, 340, 10, 340, 9, 342, 7, 345, 4, 3490, 2, 346, 3, 344, 6, 341, 18, 2, 1, 328, 23, 326, 24, 325, 25, 324, 26, 323, 27, 279, 9, 34, 28, 278, 24, 19, 28, 278, 34, 1, 3, 5, 28, 279, 73, 276, 75, 275, 75, 275, 75, 276, 75, 275, 75, 276, 74, 278, 72, 285, 65, 294, 3, 1, 51, 80], "size": [350, 640]}, "area": 3123, "iscrowd": 1, "image_id": 386012, "bbox": [14, 195, 625, 102], "category_id": 1, "id": 900100386012}, {"segmentation": {"counts": [1983, 6, 14, 6, 401, 8, 12, 8, 399, 10, 2, 6, 2, 10, 397, 32, 396, 32, 396, 32, 396, 32, 396, 32, 396, 32, 396, 32, 397, 30, 399, 28, 402, 4, 3, 10, 3, 4, 412, 8, 422, 4, 3846, 12, 416, 12, 406, 2, 4, 2, 2, 12, 405, 4, 3, 16, 404, 24, 404, 24, 404, 24, 404, 23, 405, 22, 406, 23, 405, 24, 405, 24, 405, 23, 407, 21, 410, 18, 408, 20, 407, 21, 406, 22, 405, 23, 405, 24, 404, 25, 403, 26, 402, 26, 402, 26, 402, 26, 403, 25, 402, 26, 402, 26, 402, 25, 403, 24, 404, 23, 405, 23, 405, 23, 406, 23, 404, 24, 404, 24, 404, 24, 404, 24, 404, 24, 404, 24, 404, 23, 406, 21, 408, 18, 411, 15, 412, 16, 411, 17, 410, 18, 410, 18, 410, 21, 407, 22, 406, 23, 404, 25, 402, 26, 401, 14, 1, 12, 400, 14, 2, 12, 400, 12, 4, 12, 400, 12, 4, 12, 400, 12, 4, 12, 400, 12, 5, 10, 401, 12, 6, 8, 402, 12, 6, 6, 405, 12, 4, 8, 404, 12, 3, 10, 403, 12, 2, 12, 402, 12, 2, 12, 402, 26, 402, 26, 402, 26, 403, 25, 404, 24, 406, 21, 410, 18, 409, 20, 407, 21, 406, 22, 406, 22, 406, 22, 406, 22, 405, 23, 404, 23, 404, 23, 404, 22, 406, 22, 406, 22, 406, 22, 406, 22, 406, 23, 405, 24, 405, 24, 405, 24, 406, 4, 1, 17, 411, 17, 406, 22, 405, 23, 404, 24, 403, 25, 403, 24, 404, 23, 405, 22, 406, 23, 405, 23, 405, 23, 406, 22, 407, 21, 409, 19, 408, 20, 408, 19, 409, 21, 407, 22, 406, 12, 1, 10, 405, 24, 404, 24, 403, 25, 402, 26, 401, 27, 400, 28, 400, 28, 400, 27, 401, 26, 402, 26, 402, 27, 401, 27, 402, 26, 401, 27, 401, 27, 401, 27, 401, 27, 401, 27, 401, 28, 399, 29, 398, 30, 398, 30, 398, 30, 398, 30, 398, 30, 398, 29, 399, 28, 401, 25, 404, 23, 407, 22, 408, 20, 408, 20, 407, 21, 405, 23, 404, 24, 403, 25, 402, 26, 402, 26, 402, 26, 402, 26, 402, 26, 402, 26, 402, 26, 401, 27, 400, 28, 400, 28, 400, 28, 400, 28, 400, 28, 400, 28, 400, 28, 401, 26, 403, 24, 406, 20, 15812, 5, 422, 8, 419, 10, 417, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 12, 417, 10, 412, 15, 412, 14, 413, 12, 415, 14, 414, 14, 414, 15, 413, 16, 412, 17, 411, 18, 410, 19, 410, 19, 410, 18, 411, 17, 412, 16, 414, 14, 414, 14, 17, 21, 377, 13, 14, 25, 374, 27, 1, 27, 372, 57, 370, 58, 369, 59, 369, 59, 369, 59, 369, 59, 369, 59, 369, 58, 370, 57, 372, 56, 373, 55, 375, 25, 3, 25, 404, 24, 405, 23, 410, 18, 411, 16, 417, 10, 420, 6, 8521, 2, 425, 5, 423, 7, 7, 6, 408, 20, 408, 20, 408, 20, 410, 18, 422, 6, 3408, 5, 422, 8, 4, 6, 409, 10, 2, 8, 407, 22, 406, 23, 405, 23, 405, 23, 405, 23, 405, 23, 405, 23, 406, 22, 407, 8, 2, 10, 410, 4, 5, 8, 31211, 6, 421, 8, 419, 10, 417, 12, 7, 7, 402, 12, 6, 9, 401, 12, 5, 11, 400, 12, 4, 13, 399, 12, 4, 13, 399, 12, 4, 13, 399, 12, 4, 13, 399, 29, 399, 29, 394, 34, 393, 35, 392, 35, 392, 35, 393, 35, 393, 47, 381, 48, 380, 49, 379, 50, 378, 50, 379, 49, 380, 48, 382, 8, 2, 36, 385, 4, 4, 3, 2, 30, 401, 27, 403, 24, 419, 4, 2, 2, 7670, 19, 406, 24, 403, 26, 401, 28, 400, 29, 399, 29, 399, 30, 398, 30, 398, 30, 398, 30, 399, 29, 400, 28, 402, 5, 1, 20, 411, 16, 412, 15, 413, 14, 414, 13, 416, 11, 418, 9, 421, 5, 5116, 5, 423, 6, 7, 8, 407, 8, 1, 16, 403, 26, 402, 26, 402, 26, 402, 26, 403, 25, 404, 8, 1, 15, 406, 4, 4, 13, 416, 11, 419, 7, 10253, 6, 421, 8, 419, 10, 417, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 10, 418, 4, 425, 2, 29534, 6, 3, 6, 412, 8, 1, 8, 410, 19, 408, 21, 407, 21, 407, 21, 407, 21, 407, 21, 407, 21, 407, 21, 408, 19, 410, 8, 1, 8, 413, 4, 5, 4, 3411, 6, 421, 8, 2, 6, 411, 18, 409, 20, 408, 21, 407, 21, 407, 21, 407, 21, 407, 21, 407, 21, 408, 20, 409, 18, 412, 4, 3, 8, 422, 4, 9568], "size": [428, 640]}, "area": 8333, "iscrowd": 1, "image_id": 574487, "bbox": [4, 245, 613, 67], "category_id": 1, "id": 900100574487}, {"segmentation": {"counts": [53938, 2, 477, 4, 476, 6, 473, 8, 471, 11, 469, 12, 467, 15, 464, 16, 464, 16, 465, 15, 466, 14, 467, 13, 468, 12, 469, 10, 471, 8, 474, 4, 15, 5, 474, 8, 471, 11, 468, 14, 465, 15, 465, 20, 459, 22, 457, 24, 7, 6, 442, 26, 6, 8, 440, 26, 6, 10, 437, 27, 6, 12, 435, 27, 6, 13, 434, 27, 6, 14, 433, 27, 6, 15, 432, 27, 7, 15, 431, 26, 9, 14, 11, 1, 419, 25, 11, 13, 10, 6, 415, 12, 1, 10, 13, 14, 8, 8, 414, 12, 24, 15, 6, 9, 414, 12, 25, 14, 6, 10, 413, 12, 25, 14, 6, 10, 414, 10, 27, 13, 6, 11, 414, 8, 29, 12, 6, 12, 415, 4, 31, 12, 6, 12, 450, 12, 6, 12, 450, 12, 6, 12, 450, 12, 6, 12, 450, 12, 6, 13, 449, 12, 6, 13, 449, 12, 6, 14, 448, 12, 6, 14, 448, 12, 6, 14, 448, 12, 6, 14, 448, 12, 6, 15, 447, 12, 6, 15, 447, 12, 6, 15, 447, 12, 6, 15, 447, 13, 5, 16, 446, 13, 5, 16, 446, 13, 6, 15, 446, 14, 5, 15, 446, 15, 4, 15, 446, 16, 4, 14, 446, 17, 3, 14, 447, 18, 1, 13, 448, 19, 1, 12, 448, 32, 449, 31, 450, 30, 452, 17, 1, 11, 452, 16, 2, 11, 451, 16, 3, 11, 451, 15, 3, 12, 451, 14, 4, 10, 453, 12, 6, 8, 455, 10, 9, 4, 459, 6, 27262, 3, 475, 6, 472, 9, 468, 13, 464, 16, 462, 19, 459, 22, 458, 23, 456, 25, 455, 3, 1, 21, 455, 1, 7, 18, 464, 17, 464, 3, 4, 10, 470, 10, 469, 11, 468, 11, 468, 11, 468, 11, 468, 10, 467, 11, 463, 16, 462, 16, 463, 15, 465, 14, 465, 14, 466, 11, 470, 4, 477, 4, 478, 2, 47058, 5, 474, 7, 472, 9, 470, 11, 469, 11, 469, 11, 469, 11, 469, 11, 469, 11, 470, 10, 470, 12, 465, 2, 1, 12, 465, 16, 1, 3, 460, 21, 459, 21, 460, 20, 461, 20, 461, 19, 462, 19, 462, 18, 457, 1, 5, 17, 457, 3, 2, 21, 453, 29, 450, 31, 448, 33, 446, 35, 444, 36, 438, 42, 437, 43, 436, 44, 435, 43, 438, 36, 444, 31, 450, 24, 456, 18, 463, 15, 465, 13, 468, 9, 471, 7, 474, 4, 2827, 3, 476, 4, 475, 5, 474, 6, 474, 6, 474, 7, 473, 8, 472, 9, 471, 10, 470, 11, 470, 10, 471, 8, 474, 4, 10176, 6, 474, 11, 468, 13, 467, 14, 44, 8, 413, 15, 43, 10, 411, 17, 41, 12, 410, 17, 40, 14, 408, 18, 40, 14, 408, 19, 39, 14, 407, 24, 35, 14, 407, 24, 34, 15, 406, 26, 32, 15, 343, 8, 55, 28, 31, 15, 342, 10, 54, 29, 30, 15, 341, 12, 52, 30, 29, 16, 340, 13, 52, 30, 29, 16, 340, 13, 49, 33, 29, 16, 340, 13, 50, 13, 1, 18, 28, 18, 339, 14, 52, 29, 27, 19, 339, 14, 52, 30, 25, 19, 340, 14, 53, 29, 24, 19, 341, 14, 53, 29, 24, 19, 342, 12, 54, 29, 24, 19, 343, 10, 56, 28, 22, 21, 345, 6, 58, 28, 22, 20, 410, 28, 21, 21, 410, 28, 18, 24, 410, 29, 16, 25, 406, 34, 14, 27, 405, 35, 12, 29, 405, 35, 10, 30, 405, 36, 8, 31, 405, 37, 6, 32, 405, 38, 5, 32, 405, 39, 3, 33, 406, 39, 2, 33, 407, 39, 1, 33, 408, 72, 410, 70, 411, 69, 411, 70, 411, 69, 411, 69, 412, 69, 412, 68, 413, 67, 414, 66, 415, 65, 416, 64, 417, 63, 418, 61, 420, 59, 422, 56, 425, 53, 429, 49, 431, 48, 433, 46, 435, 43, 437, 42, 439, 40, 440, 39, 442, 37, 444, 35, 445, 35, 446, 35, 445, 36, 445, 36, 444, 37, 443, 38, 443, 38, 442, 39, 442, 38, 442, 38, 442, 38, 443, 37, 443, 37, 444, 36, 444, 36, 444, 36, 445, 35, 445, 35, 446, 34, 445, 35, 444, 35, 444, 35, 443, 37, 442, 37, 442, 37, 441, 39, 441, 38, 443, 36, 446, 8, 39241, 1, 479, 3, 477, 5, 21, 2, 452, 7, 8, 13, 452, 28, 452, 28, 453, 27, 454, 26, 456, 24, 458, 21, 464, 15, 474, 4, 5630], "size": [480, 640]}, "area": 8736, "iscrowd": 1, "image_id": 443772, "bbox": [112, 94, 516, 173], "category_id": 1, "id": 900100443772}, {"segmentation": {"counts": [64642, 6, 343, 8, 341, 10, 339, 12, 338, 12, 337, 13, 337, 13, 337, 13, 337, 13, 337, 13, 338, 11, 341, 8, 344, 4, 6648, 6, 343, 8, 341, 10, 339, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 339, 10, 341, 8, 344, 4, 3466, 9, 340, 11, 338, 13, 279, 6, 51, 15, 277, 8, 50, 15, 276, 10, 49, 15, 275, 12, 48, 15, 16, 6, 253, 12, 48, 15, 15, 8, 252, 12, 48, 15, 14, 10, 251, 12, 48, 15, 13, 12, 249, 13, 49, 13, 14, 12, 249, 13, 50, 11, 15, 12, 249, 13, 52, 8, 16, 12, 249, 13, 76, 12, 249, 14, 75, 12, 249, 14, 5, 7, 63, 12, 249, 15, 2, 10, 63, 10, 250, 28, 63, 8, 251, 29, 64, 4, 254, 28, 323, 27, 323, 27, 323, 27, 324, 26, 324, 26, 325, 24, 327, 22, 330, 18, 333, 14, 338, 9, 1461, 5, 344, 7, 343, 8, 340, 11, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 317, 6, 15, 12, 316, 11, 12, 10, 316, 14, 11, 8, 316, 16, 12, 4, 318, 17, 333, 18, 332, 18, 332, 18, 332, 18, 332, 18, 333, 17, 16, 6, 312, 16, 15, 8, 312, 14, 14, 11, 313, 11, 14, 13, 317, 4, 16, 13, 337, 13, 337, 13, 337, 13, 338, 12, 338, 12, 338, 11, 338, 11, 338, 10, 339, 10, 339, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 314, 6, 18, 12, 313, 8, 18, 10, 313, 10, 18, 8, 313, 12, 19, 4, 314, 13, 337, 13, 337, 13, 337, 17, 333, 18, 332, 19, 16, 6, 309, 20, 14, 8, 308, 20, 13, 10, 307, 20, 12, 12, 306, 20, 12, 12, 306, 20, 12, 12, 306, 20, 12, 12, 306, 20, 12, 12, 306, 20, 12, 12, 306, 19, 13, 12, 307, 17, 15, 11, 308, 14, 18, 10, 310, 10, 22, 7, 313, 6, 3865, 6, 343, 8, 341, 10, 4, 6, 329, 12, 2, 8, 328, 12, 1, 10, 327, 24, 326, 24, 326, 24, 326, 24, 326, 24, 327, 10, 1, 12, 328, 8, 2, 12, 330, 4, 5, 10, 341, 8, 344, 4, 2079, 6, 343, 8, 341, 10, 339, 12, 338, 12, 338, 16, 334, 17, 333, 18, 332, 19, 331, 19, 331, 19, 331, 19, 331, 19, 331, 19, 331, 19, 331, 18, 333, 17, 334, 15, 337, 12, 341, 7, 708, 8, 341, 10, 332, 6, 1, 11, 331, 20, 329, 21, 328, 22, 328, 22, 328, 22, 328, 22, 328, 22, 328, 21, 329, 20, 331, 10, 2, 5, 334, 8, 344, 4, 351, 6, 343, 8, 341, 10, 339, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 339, 10, 341, 8, 344, 4, 33218, 6, 343, 8, 341, 10, 339, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 338, 12, 339, 10, 341, 8, 344, 4, 39834, 18, 331, 20, 329, 22, 327, 24, 326, 24, 326, 24, 326, 24, 326, 24, 326, 24, 175], "size": [350, 640]}, "area": 3433, "iscrowd": 1, "image_id": 386012, "bbox": [184, 151, 455, 103], "category_id": 38, "id": 903800386012}, {"segmentation": {"counts": [7892, 10, 414, 16, 410, 18, 407, 22, 404, 24, 402, 26, 400, 28, 399, 28, 398, 30, 396, 32, 389, 38, 386, 42, 384, 43, 382, 45, 381, 46, 380, 47, 379, 48, 379, 48, 378, 49, 377, 50, 377, 49, 377, 49, 378, 48, 379, 47, 380, 46, 381, 45, 382, 45, 382, 44, 383, 43, 384, 43, 384, 43, 384, 43, 384, 43, 385, 42, 385, 42, 385, 42, 386, 40, 388, 39, 389, 38, 389, 36, 392, 34, 395, 32, 396, 33, 396, 32, 398, 29, 403, 24, 403, 24, 402, 25, 402, 26, 401, 26, 401, 26, 401, 27, 400, 27, 400, 27, 400, 28, 399, 28, 400, 26, 401, 26, 402, 25, 403, 24, 405, 22, 407, 19, 409, 18, 410, 16, 412, 14, 415, 10, 419, 6, 3417, 8, 416, 14, 399, 8, 4, 17, 395, 32, 394, 33, 393, 34, 1, 2, 389, 39, 387, 40, 386, 42, 385, 42, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 41, 386, 40, 387, 40, 388, 38, 390, 36, 391, 36, 392, 34, 394, 33, 395, 32, 397, 30, 400, 26, 406, 21, 407, 21, 406, 21, 407, 20, 408, 18, 410, 16, 413, 12, 418, 6, 35435, 1, 425, 5, 417, 13, 411, 18, 408, 23, 402, 37, 389, 48, 378, 49, 377, 50, 377, 50, 376, 51, 375, 52, 375, 51, 375, 52, 375, 52, 375, 51, 376, 50, 377, 49, 378, 48, 379, 40, 387, 38, 389, 36, 391, 34, 393, 33, 394, 32, 396, 30, 397, 29, 398, 27, 401, 25, 403, 23, 405, 22, 405, 21, 407, 20, 409, 18, 410, 16, 413, 14, 416, 8, 31189, 3, 423, 6, 420, 8, 418, 11, 415, 13, 413, 16, 410, 18, 408, 21, 405, 23, 403, 26, 400, 28, 398, 31, 395, 33, 393, 36, 390, 40, 386, 44, 382, 45, 381, 46, 379, 48, 378, 49, 376, 51, 374, 53, 372, 55, 371, 56, 371, 55, 371, 56, 371, 55, 372, 55, 371, 55, 372, 55, 372, 54, 373, 53, 374, 52, 375, 51, 376, 50, 377, 50, 377, 50, 377, 50, 377, 50, 377, 50, 377, 50, 377, 50, 377, 50, 378, 48, 379, 48, 380, 46, 381, 46, 382, 44, 383, 44, 379, 4, 1, 42, 379, 33, 4, 11, 378, 34, 10, 4, 379, 34, 393, 34, 393, 33, 394, 33, 394, 13, 1, 19, 394, 13, 2, 18, 394, 13, 4, 15, 395, 12, 3, 17, 396, 10, 2, 19, 397, 4, 6, 20, 406, 20, 406, 21, 398, 6, 1, 22, 397, 30, 17, 1, 378, 34, 13, 2, 378, 36, 10, 2, 379, 39, 6, 2, 380, 42, 2, 3, 380, 47, 380, 47, 368, 4, 8, 47, 367, 6, 8, 45, 364, 11, 9, 43, 363, 12, 3, 4, 2, 43, 362, 21, 1, 43, 362, 65, 362, 65, 362, 64, 363, 64, 364, 6, 2, 55, 365, 4, 3, 12, 1, 42, 373, 10, 2, 43, 373, 4, 7, 43, 384, 44, 383, 44, 382, 46, 380, 48, 378, 49, 377, 51, 376, 51, 376, 52, 366, 6, 3, 53, 363, 65, 361, 68, 358, 71, 355, 73, 354, 75, 352, 77, 350, 79, 348, 85, 342, 91, 336, 101, 326, 101, 327, 100, 327, 99, 329, 98, 330, 10, 3, 83, 334, 4, 6, 83, 344, 23, 2, 57, 345, 23, 3, 56, 345, 22, 6, 53, 346, 21, 9, 51, 347, 17, 13, 49, 348, 14, 17, 47, 350, 12, 20, 44, 352, 10, 22, 42, 356, 4, 27, 39, 391, 34, 353, 6, 38, 29, 353, 8, 42, 22, 341, 6, 7, 10, 44, 16, 342, 10, 4, 10, 49, 8, 345, 12, 3, 10, 400, 14, 3, 10, 399, 16, 2, 10, 399, 28, 398, 29, 398, 29, 398, 30, 397, 30, 397, 31, 396, 31, 396, 32, 396, 33, 395, 10, 2, 23, 393, 8, 4, 30, 387, 4, 7, 29, 400, 4, 1, 22, 407, 20, 408, 19, 410, 4, 1, 12, 415, 12, 416, 10, 418, 8, 421, 4, 5118, 6, 419, 10, 416, 12, 414, 12, 413, 13, 413, 13, 414, 12, 414, 12, 415, 11, 416, 10, 417, 9, 418, 8, 413, 13, 412, 14, 412, 14, 413, 14, 412, 14, 413, 13, 414, 12, 415, 11, 416, 10, 417, 9, 418, 9, 419, 9, 419, 8, 420, 7, 422, 4, 2352, 2, 320, 1, 104, 3, 316, 4, 104, 3, 313, 7, 104, 3, 310, 10, 104, 3, 308, 12, 104, 3, 305, 16, 103, 3, 303, 18, 103, 3, 301, 21, 102, 3, 299, 24, 101, 3, 295, 29, 100, 3, 293, 32, 99, 3, 294, 32, 98, 3, 295, 32, 97, 3, 296, 32, 96, 3, 297, 32, 95, 3, 298, 32, 94, 3, 300, 31, 93, 3, 301, 31, 92, 3, 303, 30, 91, 3, 305, 29, 90, 3, 307, 28, 89, 3, 308, 28, 88, 3, 310, 27, 87, 3, 312, 5, 12, 9, 86, 3, 329, 10, 85, 3, 330, 10, 84, 3, 331, 10, 83, 3, 333, 9, 82, 3, 334, 9, 81, 3, 335, 9, 80, 3, 337, 8, 79, 3, 338, 8, 78, 3, 340, 7, 77, 3, 341, 7, 76, 3, 342, 7, 75, 3, 344, 6, 74, 3, 345, 6, 73, 3, 207, 8, 132, 5, 72, 3, 206, 20, 122, 5, 71, 3, 205, 22, 123, 4, 70, 3, 204, 24, 123, 4, 69, 3, 204, 25, 67, 1, 55, 4, 68, 3, 204, 27, 65, 4, 54, 2, 68, 3, 204, 30, 62, 6, 53, 2, 67, 3, 204, 31, 61, 9, 52, 1, 66, 3, 204, 32, 31, 16, 12, 12, 51, 1, 65, 3, 204, 32, 3, 3, 18, 27, 8, 15, 114, 3, 205, 31, 2, 6, 14, 33, 4, 17, 112, 3, 206, 30, 1, 10, 9, 38, 1, 20, 109, 3, 208, 28, 1, 12, 5, 63, 107, 3, 214, 106, 104, 3, 217, 105, 42, 1, 59, 3, 217, 108, 39, 3, 57, 3, 217, 111, 36, 6, 54, 3, 217, 15, 1, 97, 34, 9, 51, 3, 218, 13, 2, 100, 31, 12, 48, 3, 219, 11, 2, 103, 29, 15, 45, 3, 221, 7, 3, 107, 25, 18, 43, 3, 231, 109, 23, 21, 40, 3, 230, 113, 20, 24, 37, 3, 230, 115, 18, 27, 34, 3, 229, 119, 15, 30, 31, 3, 229, 121, 13, 32, 29, 3, 228, 170, 26, 3, 228, 173, 13, 13, 227, 200, 227, 200, 226, 201, 218, 6, 2, 201, 217, 8, 1, 201, 216, 211, 215, 212, 209, 218, 208, 219, 207, 220, 206, 221, 206, 221, 196, 6, 4, 221, 195, 8, 2, 222, 194, 233, 193, 234, 193, 234, 193, 234, 192, 235, 192, 235, 192, 235, 192, 235, 192, 235, 192, 235, 192, 235, 193, 234, 194, 233, 196, 4, 3, 224, 204, 223, 206, 221, 206, 221, 206, 221, 206, 221, 206, 221, 207, 220, 208, 10, 1, 208, 210, 4, 5, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 219, 208, 220, 207, 220, 207, 220, 207, 220, 207, 220, 207, 220, 207, 221, 206, 221, 206], "size": [427, 640]}, "area": 39865, "iscrowd": 1, "image_id": 485740, "bbox": [18, 177, 621, 249], "category_id": 1, "id": 900100485740}, {"segmentation": {"counts": [11265, 6, 418, 9, 414, 13, 411, 16, 410, 17, 408, 18, 406, 20, 406, 20, 405, 21, 405, 21, 404, 22, 404, 21, 405, 20, 407, 17, 384, 6, 19, 13, 386, 12, 16, 10, 388, 19, 10, 8, 381, 6, 1, 21, 11, 4, 381, 37, 389, 38, 387, 43, 383, 46, 379, 48, 378, 51, 375, 54, 373, 54, 372, 12, 2, 41, 372, 10, 5, 40, 372, 8, 8, 38, 374, 4, 12, 36, 391, 35, 392, 8, 5, 21, 394, 4, 9, 19, 411, 15, 412, 13, 414, 11, 417, 7, 246036], "size": [426, 640]}, "area": 1033, "iscrowd": 1, "image_id": 199215, "bbox": [26, 139, 36, 59], "category_id": 1, "id": 900100199215}, {"segmentation": {"counts": [151147, 6, 633, 8, 626, 15, 624, 17, 622, 18, 621, 19, 621, 19, 621, 19, 621, 18, 622, 17, 623, 15, 625, 9, 632, 6, 635, 2, 9590, 6, 633, 8, 631, 10, 629, 11, 629, 10, 630, 10, 630, 9, 631, 9, 631, 8, 632, 9, 632, 9, 632, 8, 634, 3, 8335, 2, 67, 1, 570, 3, 63, 8, 17, 1, 540, 6, 2, 4, 59, 14, 13, 3, 537, 15, 55, 21, 9, 4, 534, 17, 52, 37, 534, 17, 51, 38, 534, 17, 50, 39, 534, 17, 49, 40, 534, 17, 48, 41, 534, 17, 47, 42, 534, 15, 48, 42, 535, 14, 48, 42, 536, 14, 46, 36, 1, 4, 539, 13, 47, 35, 545, 13, 47, 32, 549, 12, 48, 21, 560, 11, 49, 9, 5, 3, 565, 6, 54, 3, 12146, 4, 635, 6, 633, 8, 630, 11, 628, 12, 628, 12, 626, 14, 625, 15, 624, 16, 620, 20, 612, 27, 605, 25, 1, 8, 598, 33, 3, 3, 595, 43, 604, 37, 603, 38, 602, 39, 602, 38, 603, 37, 605, 35, 606, 10, 4, 20, 607, 8, 7, 5, 1, 12, 610, 2, 16, 12, 629, 10, 631, 8, 634, 3, 22358, 7, 626, 15, 624, 17, 622, 19, 620, 20, 620, 20, 620, 20, 620, 20, 620, 20, 620, 20, 620, 19, 622, 17, 622, 18, 621, 19, 620, 21, 619, 21, 619, 21, 619, 21, 619, 20, 620, 19, 621, 18, 623, 17, 623, 17, 623, 17, 623, 17, 623, 17, 623, 16, 624, 15, 626, 11, 630, 8, 634, 3, 17902, 6, 633, 11, 628, 13, 626, 15, 625, 16, 624, 15, 625, 14, 626, 15, 625, 16, 624, 16, 625, 15, 626, 13, 629, 10, 634, 3, 15267], "size": [640, 480]}, "area": 2694, "iscrowd": 1, "image_id": 158722, "bbox": [236, 82, 220, 121], "category_id": 1, "id": 900100158722}, {"segmentation": {"counts": [379, 4, 7, 14, 3, 17, 2, 162, 6, 2, 8, 25, 98, 29, 1, 192, 2, 29, 96, 255, 92, 260, 88, 263, 86, 265, 84, 267, 83, 268, 82, 269, 80, 271, 78, 273, 76, 275, 75, 276, 74, 141, 2, 134, 73, 141, 4, 133, 73, 140, 7, 131, 73, 140, 8, 129, 74, 141, 8, 129, 73, 143, 8, 128, 72, 144, 8, 21, 2, 105, 70, 145, 9, 19, 4, 105, 69, 145, 9, 19, 8, 101, 69, 145, 10, 17, 13, 98, 68, 145, 11, 15, 20, 92, 68, 145, 12, 14, 25, 87, 68, 145, 14, 11, 31, 82, 68, 145, 17, 6, 34, 81, 68, 145, 58, 80, 68, 145, 59, 80, 67, 144, 59, 81, 67, 118, 2, 24, 58, 82, 67, 105, 4, 6, 6, 22, 60, 81, 67, 101, 20, 22, 60, 81, 68, 97, 24, 20, 63, 79, 68, 98, 24, 18, 66, 47, 1, 29, 68, 98, 25, 16, 68, 8, 2, 36, 2, 28, 68, 98, 27, 12, 72, 3, 6, 35, 3, 27, 68, 98, 30, 6, 86, 32, 5, 26, 68, 98, 123, 31, 6, 24, 70, 97, 125, 28, 7, 24, 70, 97, 126, 27, 8, 22, 72, 96, 127, 11, 9, 5, 9, 22, 72, 96, 150, 1, 11, 20, 72, 53, 1, 43, 163, 18, 73, 49, 7, 41, 164, 16, 74, 44, 15, 38, 166, 12, 75, 40, 20, 38, 169, 6, 78, 36, 24, 37, 254, 33, 26, 38, 253, 33, 27, 37, 254, 31, 30, 36, 254, 30, 32, 34, 255, 29, 34, 33, 255, 27, 36, 32, 256, 26, 38, 30, 257, 25, 40, 28, 258, 25, 41, 26, 259, 24, 42, 24, 262, 23, 43, 22, 38, 8, 217, 23, 44, 18, 39, 14, 214, 8, 7, 6, 46, 16, 29, 8, 1, 18, 213, 7, 61, 12, 29, 30, 213, 5, 65, 6, 30, 33, 214, 3, 100, 35, 215, 1, 99, 37, 313, 38, 312, 40, 311, 40, 209, 5, 96, 41, 206, 8, 96, 41, 206, 8, 96, 41, 206, 9, 95, 41, 206, 9, 95, 41, 206, 9, 95, 41, 206, 9, 95, 41, 206, 10, 94, 41, 207, 11, 92, 41, 207, 22, 81, 41, 206, 23, 82, 40, 205, 24, 82, 43, 202, 24, 83, 45, 199, 24, 83, 50, 2, 6, 186, 24, 84, 18, 1, 37, 187, 25, 84, 16, 10, 28, 188, 25, 85, 14, 15, 23, 189, 25, 87, 10, 18, 22, 189, 25, 89, 7, 20, 21, 189, 26, 90, 4, 21, 20, 190, 29, 29, 15, 69, 19, 190, 31, 22, 24, 65, 19, 190, 34, 12, 36, 61, 18, 190, 87, 3, 2, 51, 17, 191, 93, 50, 17, 22, 1, 169, 93, 49, 17, 22, 3, 167, 94, 48, 17, 21, 6, 165, 95, 47, 16, 21, 9, 163, 97, 45, 16, 21, 10, 162, 99, 43, 16, 20, 13, 160, 100, 42, 16, 19, 17, 157, 101, 12, 5, 24, 15, 13, 29, 152, 102, 9, 7, 23, 16, 13, 33, 148, 103, 7, 8, 22, 17, 13, 38, 143, 103, 6, 9, 22, 17, 12, 41, 141, 104, 4, 10, 22, 17, 12, 42, 140, 104, 3, 12, 22, 15, 12, 45, 138, 104, 3, 12, 22, 15, 12, 46, 137, 104, 2, 13, 22, 15, 11, 49, 135, 104, 2, 13, 23, 14, 11, 51, 133, 104, 2, 13, 23, 13, 12, 53, 131, 104, 2, 13, 23, 13, 12, 53, 131, 104, 2, 14, 22, 13, 12, 53, 131, 25, 1, 78, 2, 14, 23, 12, 11, 54, 131, 24, 17, 62, 3, 14, 23, 11, 12, 51, 134, 22, 22, 46, 9, 4, 3, 14, 24, 10, 12, 48, 138, 20, 26, 42, 28, 3, 26, 8, 12, 46, 143, 14, 32, 37, 61, 6, 12, 44, 148, 8, 37, 32, 66, 3, 13, 42, 196, 29, 84, 40, 200, 23, 94, 2, 14, 16, 204, 20, 111, 14, 207, 19, 111, 11, 212, 11, 117, 9, 343, 5, 346, 2, 7892, 1, 347, 5, 344, 7, 342, 10, 340, 12, 338, 13, 337, 15, 336, 16, 40, 4, 291, 16, 37, 9, 288, 18, 33, 14, 286, 19, 26, 22, 284, 19, 21, 29, 282, 20, 14, 37, 280, 73, 278, 75, 276, 76, 275, 76, 275, 76, 275, 76, 275, 76, 275, 76, 275, 76, 275, 76, 275, 76, 275, 76, 275, 75, 276, 75, 276, 74, 277, 73, 278, 72, 88, 13, 178, 71, 88, 17, 175, 70, 89, 21, 171, 69, 91, 23, 168, 68, 92, 29, 162, 67, 92, 36, 156, 64, 95, 56, 136, 39, 2, 22, 95, 61, 132, 38, 9, 14, 97, 61, 132, 36, 12, 12, 98, 61, 132, 35, 15, 9, 99, 59, 134, 35, 16, 5, 102, 57, 136, 34, 124, 54, 139, 34, 125, 51, 141, 34, 125, 44, 148, 33, 127, 34, 157, 33, 127, 25, 166, 33, 72, 1, 55, 13, 177, 33, 69, 11, 49, 1, 188, 34, 66, 17, 234, 34, 66, 19, 232, 35, 65, 22, 229, 36, 64, 22, 229, 38, 62, 22, 229, 46, 54, 22, 229, 53, 47, 22, 229, 55, 45, 22, 229, 56, 44, 22, 229, 58, 42, 22, 229, 59, 41, 22, 229, 61, 39, 22, 230, 62, 36, 22, 232, 64, 31, 24, 233, 118, 233, 117, 234, 117, 234, 117, 233, 118, 233, 117, 234, 117, 234, 116, 235, 115, 235, 71, 4, 40, 236, 69, 8, 18, 17, 2, 237, 68, 284, 67, 284, 64, 287, 62, 289, 60, 291, 57, 294, 50, 301, 49, 302, 48, 303, 47, 304, 46, 304, 47, 304, 47, 304, 47, 304, 46, 305, 46, 305, 46, 305, 46, 11, 4, 290, 46, 10, 6, 289, 47, 8, 7, 63, 1, 225, 49, 4, 10, 60, 3, 225, 63, 59, 5, 224, 63, 57, 8, 223, 63, 55, 11, 50, 4, 168, 63, 54, 13, 50, 11, 160, 63, 52, 16, 51, 17, 152, 64, 30, 3, 16, 19, 52, 23, 144, 65, 31, 6, 7, 24, 53, 24, 142, 67, 30, 35, 55, 24, 140, 68, 15, 49, 57, 24, 138, 70, 8, 54, 59, 25, 135, 132, 61, 25, 133, 132, 63, 26, 130, 132, 65, 25, 129, 132, 28, 4, 35, 23, 3, 1, 124, 133, 26, 9, 34, 21, 2, 4, 122, 133, 24, 14, 33, 18, 2, 8, 119, 133, 23, 18, 32, 16, 1, 13, 115, 133, 22, 22, 31, 13, 1, 18, 111, 133, 20, 27, 31, 10, 1, 20, 109, 133, 8, 9, 1, 33, 30, 6, 1, 22, 108, 133, 6, 48, 30, 2, 2, 23, 107, 133, 5, 52, 31, 24, 106, 133, 4, 56, 31, 22, 105, 133, 3, 60, 28, 23, 105, 132, 2, 64, 25, 24, 104, 132, 1, 68, 23, 24, 103, 132, 1, 71, 20, 25, 102, 207, 17, 26, 101, 208, 17, 26, 100, 208, 17, 27, 99, 209, 16, 28, 97, 211, 15, 29, 96, 211, 16, 28, 96, 212, 14, 30, 96, 211, 14, 31, 95, 212, 13, 32, 94, 213, 11, 34, 93, 132, 1, 81, 10, 35, 92, 132, 1, 81, 8, 37, 92, 132, 2, 81, 4, 41, 91, 132, 2, 82, 1, 44, 89, 133, 3, 127, 88, 133, 4, 127, 87, 133, 5, 127, 87, 132, 7, 14, 8, 103, 87, 132, 10, 6, 15, 101, 87, 132, 32, 100, 85, 134, 33, 99, 85, 134, 33, 99, 85, 134, 34, 98, 85, 134, 34, 98, 85, 134, 35, 96, 86, 134, 36, 95, 86, 134, 37, 93, 87, 134, 39, 91, 87, 134, 42, 6, 4, 77, 88, 134, 53, 17, 2, 56, 89, 134, 55, 13, 6, 53, 90, 134, 58, 7, 12, 51, 89, 134, 77, 53, 87, 134, 77, 54, 86, 134, 79, 52, 86, 133, 81, 52, 85, 133, 82, 51, 85, 133, 83, 50, 85, 133, 85, 48, 85, 133, 86, 47, 85, 132, 88, 46, 85, 132, 89, 45, 85, 131, 92, 43, 85, 130, 94, 41, 86, 130, 95, 40, 86, 129, 96, 38, 88, 129, 96, 37, 89, 124, 101, 37, 89, 124, 101, 38, 88, 123, 102, 38, 88, 123, 102, 38, 88, 122, 104, 37, 88, 121, 105, 37, 88, 121, 105, 37, 88, 120, 107, 36, 88, 120, 107, 36, 88, 119, 109, 35, 88, 118, 110, 35, 88, 117, 112, 33, 89, 115, 114, 33, 89, 114, 237, 113, 238, 112, 239, 111, 240, 110, 241, 109, 242, 108, 243, 108, 243, 108, 243, 108, 243, 108, 243, 108, 243, 108, 243, 108, 243, 108, 243, 108, 243, 109, 242, 123, 8, 3, 217, 135, 217, 134, 217, 135, 216, 136, 215, 136, 215, 137, 215, 137, 212, 140, 211, 140, 211, 141, 210, 142, 209, 152, 199, 155, 196, 157, 194, 159, 192, 161, 190, 163, 188, 165, 186, 166, 185, 167, 184, 167, 184, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 168, 183, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 167, 184, 166, 185, 166, 185, 165, 186, 165, 186, 164, 187, 163, 188, 162, 189, 160, 191, 160, 191, 160, 191, 160, 191, 160, 191, 160, 191, 160, 191, 160, 191, 160, 191, 159, 192, 159, 192, 158, 193, 158, 193, 157, 194, 156, 195, 155, 196, 153, 198, 150, 201, 147, 204, 143, 208, 143, 208, 142, 209, 142, 212, 138, 213, 138, 213, 139, 212, 139, 212, 140, 211, 140, 211, 141, 210, 141, 210, 142, 209, 142, 209, 144, 7, 4, 196, 156, 195, 156, 195, 156, 194, 158, 193, 158, 192, 159, 193, 158, 193, 114, 1, 43, 193, 110, 6, 42, 193, 106, 11, 41, 193, 102, 16, 40, 193, 102, 16, 40, 193, 102, 17, 39, 193, 102, 18, 38, 193, 91, 1, 10, 19, 37, 193, 91, 3, 6, 22, 36, 193, 91, 32, 34, 194, 76, 14, 1, 33, 33, 194, 75, 49, 32, 195, 74, 51, 31, 195, 74, 52, 6, 219, 73, 53, 6, 219, 73, 53, 6, 219, 73, 53, 6, 219, 73, 53, 6, 219, 73, 53, 6, 219, 73, 53, 6, 218, 74, 54, 5, 218, 74, 57, 2, 218, 74, 277, 75, 276, 76, 275, 76, 275, 77, 274, 78, 273, 79, 272, 79, 272, 86, 265, 85, 266, 85, 266, 85, 266, 85, 266, 85, 266, 85, 266, 85, 267, 84, 267, 84, 267, 84, 267, 84, 267, 83, 8, 9, 251, 83, 6, 13, 249, 82, 5, 17, 247, 82, 4, 27, 238, 84, 1, 30, 236, 117, 235, 117, 236, 116, 236, 116, 235, 117, 235, 116, 235, 117, 235, 52, 1, 64, 234, 50, 2, 66, 234, 20, 1, 24, 6, 67, 234, 18, 8, 12, 12, 67, 235, 16, 33, 68, 236, 12, 35, 68, 239, 6, 38, 68, 283, 68, 283, 68, 283, 68, 283, 68, 284, 67, 284, 67, 285, 28, 1, 37, 285, 27, 5, 33, 287, 25, 14, 25, 288, 22, 18, 22, 290, 18, 21, 22, 292, 12, 26, 20, 296, 6, 30, 18, 334, 16, 337, 12, 342, 6, 44459], "size": [351, 640]}, "area": 70620, "iscrowd": 1, "image_id": 233042, "bbox": [1, 0, 512, 283], "category_id": 1, "id": 900100233042}, {"segmentation": {"counts": [2260, 6, 1, 2, 470, 13, 463, 18, 461, 20, 459, 22, 458, 22, 458, 22, 458, 16, 3, 3, 458, 14, 7, 1, 458, 13, 467, 11, 477, 1, 66719, 4, 1, 4, 470, 11, 469, 11, 469, 11, 469, 11, 469, 11, 470, 4, 1, 4, 13435, 4, 473, 8, 471, 10, 469, 11, 469, 11, 469, 11, 469, 11, 469, 10, 470, 9, 472, 6, 475, 4, 56645, 4, 475, 6, 474, 6, 474, 6, 474, 6, 474, 6, 475, 4, 152285], "size": [480, 640]}, "area": 431, "iscrowd": 1, "image_id": 356358, "bbox": [4, 333, 318, 22], "category_id": 1, "id": 900100356358}, {"segmentation": {"counts": [171547, 6, 632, 10, 629, 12, 627, 14, 622, 19, 619, 21, 618, 22, 617, 23, 616, 24, 616, 24, 616, 24, 616, 24, 615, 24, 614, 26, 613, 26, 613, 25, 614, 24, 616, 24, 616, 25, 615, 25, 615, 25, 615, 25, 615, 25, 615, 25, 616, 24, 616, 24, 617, 23, 619, 21, 620, 20, 620, 20, 621, 19, 623, 17, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 16, 623, 17, 623, 16, 624, 16, 624, 16, 624, 16, 624, 16, 624, 15, 625, 15, 626, 14, 626, 14, 627, 12, 630, 8, 634, 4, 83291, 6, 633, 8, 626, 15, 624, 17, 622, 18, 621, 19, 621, 19, 621, 19, 621, 19, 621, 19, 612, 1, 1, 6, 1, 19, 606, 34, 605, 35, 604, 36, 604, 36, 603, 37, 603, 37, 602, 38, 602, 39, 600, 40, 600, 40, 599, 41, 599, 41, 598, 42, 599, 41, 598, 41, 599, 40, 600, 41, 599, 41, 599, 41, 599, 17, 3, 21, 599, 16, 7, 18, 600, 12, 10, 18, 601, 8, 13, 18, 603, 3, 16, 17, 623, 16, 624, 17, 624, 17, 623, 17, 623, 17, 623, 17, 623, 17, 623, 17, 623, 17, 623, 16, 625, 14, 627, 10, 632, 3, 1164], "size": [640, 504]}, "area": 2372, "iscrowd": 1, "image_id": 45136, "bbox": [268, 8, 234, 118], "category_id": 1, "id": 900100045136}, {"segmentation": {"counts": [144026, 6, 422, 8, 420, 10, 418, 12, 417, 12, 417, 12, 417, 12, 416, 13, 415, 14, 415, 14, 415, 14, 415, 14, 415, 14, 415, 14, 415, 14, 415, 14, 415, 14, 416, 13, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 418, 10, 420, 8, 424, 2, 17165, 6, 422, 8, 420, 10, 419, 11, 418, 11, 419, 10, 419, 10, 419, 10, 419, 11, 418, 11, 418, 11, 417, 12, 417, 12, 416, 13, 415, 14, 414, 15, 414, 15, 414, 15, 415, 13, 418, 11, 418, 11, 418, 11, 419, 10, 419, 9, 420, 9, 420, 9, 420, 9, 420, 8, 423, 5, 4709, 6, 422, 6, 422, 7, 421, 9, 420, 9, 420, 9, 420, 9, 420, 9, 419, 11, 418, 11, 418, 11, 418, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 12, 417, 14, 415, 15, 415, 14, 416, 13, 419, 9, 420, 9, 420, 9, 420, 10, 419, 10, 419, 10, 419, 10, 419, 10, 419, 11, 418, 11, 418, 12, 417, 12, 417, 12, 418, 10, 420, 8, 424, 2, 64026], "size": [429, 640]}, "area": 1280, "iscrowd": 1, "image_id": 465463, "bbox": [335, 306, 155, 23], "category_id": 61, "id": 906100465463}, {"segmentation": {"counts": [36518, 3, 420, 5, 418, 8, 415, 10, 412, 18, 405, 21, 28, 6, 368, 33, 14, 10, 365, 36, 12, 12, 364, 37, 10, 14, 362, 39, 8, 15, 361, 40, 8, 15, 361, 40, 8, 15, 360, 41, 8, 15, 359, 42, 7, 16, 359, 42, 6, 17, 359, 14, 4, 25, 5, 16, 359, 15, 6, 24, 3, 16, 359, 15, 13, 18, 2, 16, 360, 14, 15, 35, 359, 15, 16, 33, 360, 14, 18, 32, 360, 14, 20, 29, 361, 14, 21, 27, 362, 13, 21, 27, 363, 12, 21, 29, 361, 13, 16, 34, 361, 13, 14, 36, 361, 13, 7, 43, 361, 13, 6, 46, 359, 12, 6, 48, 358, 12, 5, 52, 355, 12, 5, 53, 354, 12, 5, 54, 353, 12, 5, 27, 2, 26, 352, 12, 4, 29, 1, 26, 352, 12, 2, 58, 352, 72, 352, 72, 352, 72, 353, 71, 354, 70, 354, 69, 354, 69, 354, 69, 354, 72, 2, 2, 347, 80, 344, 81, 1, 6, 336, 89, 334, 95, 328, 97, 326, 99, 325, 100, 323, 102, 322, 103, 320, 105, 319, 106, 318, 106, 318, 32, 2, 72, 318, 30, 3, 74, 317, 27, 5, 75, 317, 25, 5, 77, 318, 106, 319, 105, 319, 105, 319, 105, 319, 105, 319, 105, 319, 105, 320, 105, 320, 105, 321, 31, 2, 74, 320, 27, 4, 74, 323, 22, 7, 76, 321, 4, 2, 7, 17, 74, 347, 78, 345, 80, 343, 82, 341, 83, 341, 83, 341, 69, 1, 13, 341, 68, 3, 12, 341, 67, 6, 10, 340, 67, 8, 9, 339, 66, 11, 7, 340, 64, 14, 5, 341, 60, 19, 2, 343, 57, 367, 54, 370, 52, 372, 51, 374, 48, 377, 43, 382, 39, 385, 18, 2, 16, 388, 18, 4, 4, 2, 6, 391, 17, 407, 17, 407, 16, 409, 15, 410, 13, 413, 10, 417, 5, 34502, 7, 416, 9, 414, 11, 411, 14, 408, 17, 406, 19, 404, 20, 403, 22, 398, 29, 394, 34, 389, 36, 387, 42, 381, 44, 379, 46, 378, 47, 376, 48, 376, 48, 376, 47, 377, 46, 377, 46, 377, 46, 378, 45, 379, 45, 378, 45, 378, 46, 377, 47, 377, 47, 377, 47, 377, 47, 377, 32, 2, 13, 377, 31, 2, 14, 377, 47, 377, 47, 377, 47, 378, 46, 379, 45, 381, 43, 383, 41, 381, 42, 381, 43, 380, 44, 373, 45, 378, 45, 378, 44, 379, 42, 382, 42, 381, 43, 380, 43, 381, 30, 1, 11, 382, 30, 3, 7, 384, 29, 395, 11, 1, 16, 396, 10, 5, 11, 398, 10, 8, 3, 403, 10, 414, 9, 415, 9, 415, 9, 416, 7, 418, 6, 419, 4, 422, 2, 11904, 2, 421, 7, 417, 12, 412, 16, 408, 19, 405, 22, 402, 25, 399, 28, 397, 28, 1, 1, 395, 27, 398, 26, 399, 24, 402, 22, 404, 20, 407, 17, 411, 12, 414, 4, 20868, 5, 414, 11, 403, 19, 395, 27, 388, 37, 387, 37, 380, 45, 376, 48, 375, 50, 372, 52, 371, 54, 369, 55, 368, 56, 367, 56, 367, 57, 366, 57, 367, 56, 368, 55, 368, 55, 369, 28, 1, 25, 370, 27, 3, 23, 371, 27, 4, 21, 372, 26, 6, 18, 374, 25, 9, 15, 375, 25, 13, 9, 377, 25, 399, 25, 400, 24, 400, 24, 401, 22, 403, 21, 404, 19, 407, 16, 409, 13, 413, 9, 24259, 7, 416, 9, 414, 11, 412, 13, 410, 15, 409, 15, 408, 16, 407, 17, 406, 18, 406, 18, 406, 18, 406, 18, 406, 18, 406, 18, 406, 18, 406, 18, 406, 18, 406, 18, 407, 17, 407, 17, 408, 16, 408, 16, 408, 16, 408, 16, 408, 16, 408, 16, 408, 16, 408, 16, 409, 10, 415, 8, 418, 4, 2127, 1, 422, 2, 421, 3, 420, 4, 419, 5, 418, 6, 418, 6, 418, 6, 418, 6, 417, 7, 417, 7, 417, 7, 417, 7, 417, 7, 417, 7, 417, 7, 417, 7, 417, 7, 417, 7, 418, 6, 418, 6, 419, 5, 420, 4, 421, 3, 422, 2, 28408], "size": [424, 640]}, "area": 11495, "iscrowd": 1, "image_id": 365663, "bbox": [86, 30, 486, 393], "category_id": 1, "id": 900100365663}, {"segmentation": {"counts": [42546, 21, 352, 31, 350, 32, 347, 36, 26, 2, 317, 38, 23, 7, 313, 42, 18, 11, 310, 48, 4, 20, 302, 6, 2, 72, 301, 8, 1, 75, 297, 85, 296, 86, 296, 87, 295, 87, 295, 88, 294, 87, 295, 86, 296, 85, 298, 84, 299, 82, 301, 80, 303, 79, 304, 77, 305, 77, 304, 77, 305, 76, 306, 76, 306, 75, 307, 74, 308, 74, 308, 73, 310, 71, 312, 69, 315, 49, 4, 13, 317, 46, 12, 6, 319, 43, 340, 20, 7, 13, 344, 4, 2, 4, 2, 4, 12, 7, 6463, 11, 13, 9, 347, 15, 9, 12, 343, 20, 6, 13, 341, 23, 4, 14, 339, 26, 2, 16, 336, 55, 325, 57, 323, 59, 311, 71, 309, 73, 307, 75, 305, 77, 303, 78, 302, 80, 301, 80, 301, 80, 301, 76, 306, 69, 313, 68, 314, 66, 316, 65, 317, 63, 304, 7, 7, 63, 297, 17, 3, 63, 297, 83, 298, 74, 307, 61, 320, 62, 319, 62, 319, 61, 321, 61, 321, 61, 321, 61, 321, 61, 321, 61, 321, 60, 322, 61, 321, 61, 321, 61, 321, 61, 321, 61, 322, 60, 322, 60, 323, 59, 324, 58, 327, 55, 332, 10, 7, 34, 334, 4, 10, 34, 348, 34, 349, 35, 347, 41, 342, 46, 337, 50, 333, 54, 329, 59, 325, 59, 326, 57, 326, 56, 329, 53, 330, 2, 6, 44, 341, 41, 345, 37, 348, 34, 356, 22, 363, 3, 5392, 6, 362, 20, 361, 18, 364, 17, 364, 16, 365, 16, 366, 12, 369, 10, 372, 7, 374, 7, 374, 7, 375, 6, 375, 7, 375, 7, 374, 8, 374, 7, 374, 8, 373, 8, 374, 8, 365, 17, 356, 26, 350, 33, 342, 40, 341, 41, 341, 42, 340, 42, 340, 42, 340, 42, 340, 43, 338, 44, 338, 44, 338, 45, 337, 45, 337, 45, 337, 47, 335, 52, 330, 56, 3, 28, 292, 91, 291, 93, 289, 32, 7, 55, 288, 31, 9, 56, 287, 29, 10, 57, 289, 26, 11, 58, 290, 22, 13, 58, 290, 21, 13, 60, 291, 17, 15, 60, 300, 6, 16, 62, 300, 3, 18, 62, 321, 63, 7, 1, 311, 72, 311, 72, 37, 13, 2, 19, 240, 72, 28, 46, 236, 72, 26, 53, 232, 72, 24, 58, 13, 8, 207, 72, 23, 82, 202, 75, 22, 84, 198, 78, 22, 85, 195, 80, 21, 87, 193, 81, 21, 87, 192, 82, 21, 88, 189, 84, 21, 88, 188, 85, 21, 88, 187, 86, 21, 88, 186, 87, 21, 88, 185, 87, 22, 88, 184, 87, 23, 88, 183, 88, 24, 87, 182, 88, 25, 87, 157, 1, 23, 89, 26, 86, 155, 8, 17, 90, 27, 84, 154, 15, 11, 91, 29, 82, 153, 21, 5, 92, 31, 7, 3, 11, 15, 43, 153, 119, 69, 40, 153, 120, 78, 29, 155, 120, 85, 20, 156, 121, 260, 122, 37, 9, 213, 123, 35, 13, 211, 123, 34, 22, 203, 124, 32, 26, 199, 125, 31, 31, 195, 125, 31, 37, 189, 125, 30, 53, 174, 125, 30, 70, 157, 125, 30, 77, 150, 125, 30, 79, 148, 125, 30, 80, 147, 125, 30, 81, 146, 125, 30, 82, 146, 124, 30, 82, 147, 122, 31, 83, 147, 120, 33, 82, 147, 120, 33, 82, 148, 118, 35, 81, 149, 108, 45, 80, 150, 16, 7, 77, 54, 78, 151, 12, 15, 68, 60, 76, 151, 9, 19, 63, 67, 73, 153, 4, 23, 58, 73, 71, 181, 56, 83, 61, 183, 54, 87, 58, 184, 52, 90, 55, 185, 52, 100, 44, 187, 50, 114, 6, 2, 21, 189, 50, 131, 10, 191, 49, 333, 49, 334, 47, 335, 47, 336, 45, 338, 44, 339, 14, 2, 7, 8, 11, 341, 14, 3, 3, 12, 8, 340, 16, 19, 4, 342, 17, 364, 17, 364, 16, 366, 15, 366, 15, 366, 16, 366, 15, 366, 15, 366, 16, 366, 16, 365, 17, 364, 18, 335, 12, 17, 18, 334, 20, 9, 20, 333, 49, 332, 50, 331, 51, 331, 52, 329, 53, 328, 55, 327, 56, 326, 57, 325, 58, 24, 2, 299, 58, 20, 6, 298, 61, 16, 7, 299, 70, 5, 9, 299, 83, 299, 83, 300, 83, 299, 83, 300, 83, 300, 82, 300, 82, 301, 82, 301, 81, 303, 78, 306, 75, 315, 12, 3, 52, 317, 6, 8, 50, 334, 47, 335, 47, 335, 47, 335, 18, 3, 25, 337, 16, 5, 24, 337, 15, 9, 21, 338, 13, 17, 14, 337, 14, 19, 11, 338, 13, 21, 8, 341, 12, 22, 5, 348, 7, 376, 5, 378, 4, 6489, 4, 27, 1, 350, 6, 24, 3, 349, 7, 23, 4, 347, 9, 21, 8, 318, 1, 24, 11, 19, 10, 316, 9, 16, 13, 16, 12, 315, 14, 11, 16, 13, 13, 313, 18, 8, 44, 311, 19, 7, 45, 42, 6, 262, 21, 5, 46, 35, 18, 5, 6, 244, 74, 28, 36, 244, 74, 17, 47, 244, 76, 12, 50, 243, 78, 9, 52, 243, 79, 6, 54, 242, 81, 4, 55, 242, 82, 2, 58, 240, 144, 238, 155, 227, 159, 223, 162, 219, 163, 219, 163, 12, 14, 193, 164, 9, 27, 21, 8, 153, 163, 6, 37, 13, 12, 151, 232, 151, 232, 151, 232, 150, 232, 151, 232, 151, 26, 1, 4, 1, 199, 152, 22, 8, 200, 154, 18, 10, 200, 159, 10, 13, 200, 183, 199, 183, 199, 184, 198, 184, 198, 184, 198, 184, 197, 186, 196, 180, 201, 181, 202, 180, 202, 180, 204, 178, 171, 2, 32, 177, 172, 17, 17, 176, 178, 8, 21, 175, 207, 175, 208, 174, 208, 175, 207, 176, 206, 177, 205, 178, 204, 178, 204, 167, 215, 150, 9, 5, 218, 148, 13, 1, 219, 148, 234, 147, 234, 147, 234, 148, 233, 148, 232, 150, 230, 151, 229, 153, 227, 154, 194, 5, 27, 155, 195, 7, 23, 156, 195, 187, 194, 187, 193, 189, 184, 1, 6, 191, 171, 211, 171, 211, 171, 211, 171, 211, 170, 212, 173, 209, 175, 208, 195, 187, 200, 183, 201, 182, 202, 182, 203, 181, 203, 182, 208, 195, 191, 192, 194, 190, 195, 189, 195, 193, 190, 191, 192, 190, 193, 189, 193, 189, 194, 188, 194, 188, 194, 188, 194, 188, 122, 7, 65, 188, 122, 9, 63, 189, 121, 31, 41, 189, 121, 33, 39, 189, 121, 35, 37, 189, 120, 39, 34, 189, 120, 34, 38, 190, 119, 31, 43, 189, 119, 29, 46, 189, 117, 25, 52, 189, 193, 190, 193, 190, 192, 191, 191, 193, 26, 2, 161, 221, 161, 222, 160, 222, 160, 223, 159, 223, 159, 224, 157, 225, 157, 226, 155, 228, 153, 233, 147, 240, 140, 247, 117, 270, 99, 288, 92, 295, 85, 302, 31, 1, 6, 1, 20, 1, 13, 315, 7, 32602], "size": [382, 640]}, "area": 45809, "iscrowd": 1, "image_id": 193936, "bbox": [111, 64, 443, 299], "category_id": 1, "id": 900100193936}, {"segmentation": {"counts": [57323, 1, 426, 2, 425, 3, 424, 3, 424, 3, 424, 3, 424, 3, 401, 26, 399, 28, 399, 28, 398, 29, 397, 30, 396, 30, 396, 31, 396, 30, 396, 31, 395, 32, 394, 32, 395, 31, 395, 31, 395, 32, 394, 32, 394, 32, 377, 1, 17, 31, 377, 4, 14, 29, 379, 7, 11, 29, 380, 9, 8, 28, 381, 12, 5, 28, 373, 23, 3, 25, 374, 52, 372, 54, 371, 55, 370, 56, 368, 59, 366, 60, 366, 61, 365, 61, 366, 61, 365, 62, 365, 62, 364, 63, 364, 62, 365, 62, 365, 62, 366, 61, 366, 61, 366, 61, 367, 59, 369, 58, 370, 57, 371, 56, 373, 54, 379, 47, 381, 46, 382, 45, 383, 44, 384, 43, 385, 42, 385, 42, 385, 42, 385, 42, 385, 42, 385, 42, 385, 42, 386, 41, 386, 41, 386, 41, 387, 40, 388, 39, 389, 38, 390, 37, 392, 34, 400, 27, 402, 24, 409, 17, 412, 14, 415, 9, 133683, 10, 415, 16, 410, 20, 406, 22, 405, 24, 403, 30, 397, 33, 395, 34, 393, 35, 390, 38, 387, 41, 384, 44, 381, 46, 380, 47, 378, 49, 376, 51, 374, 53, 373, 54, 371, 56, 369, 57, 370, 57, 368, 58, 368, 58, 368, 58, 368, 47, 3, 6, 371, 41, 385, 42, 385, 41, 385, 42, 385, 42, 384, 43, 384, 43, 384, 43, 384, 43, 383, 44, 377, 50, 373, 54, 371, 56, 370, 57, 369, 58, 369, 58, 368, 59, 368, 60, 366, 61, 366, 61, 365, 62, 365, 62, 347, 7, 11, 62, 345, 11, 9, 62, 344, 13, 8, 62, 343, 15, 7, 62, 343, 84, 342, 85, 342, 85, 341, 85, 342, 85, 342, 85, 342, 84, 343, 83, 344, 82, 345, 81, 346, 80, 348, 78, 349, 77, 350, 75, 353, 72, 356, 69, 359, 68, 360, 66, 363, 63, 375, 52, 376, 50, 378, 48, 380, 47, 380, 46, 382, 44, 384, 43, 385, 41, 387, 39, 390, 23, 3, 11, 392, 17, 8, 9, 394, 13, 12, 7, 397, 8, 16, 6, 398, 6, 423, 2, 14021], "size": [427, 640]}, "area": 8192, "iscrowd": 1, "image_id": 431660, "bbox": [134, 21, 473, 119], "category_id": 1, "id": 900100431660}, {"segmentation": {"counts": [114541, 6, 472, 10, 468, 14, 465, 16, 463, 18, 462, 18, 461, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 459, 21, 459, 21, 458, 22, 458, 22, 457, 23, 457, 23, 457, 23, 457, 22, 457, 23, 457, 22, 458, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 460, 19, 462, 17, 463, 16, 466, 12, 459, 6, 4, 10, 458, 14, 1, 3, 460, 17, 462, 19, 460, 21, 459, 21, 458, 22, 458, 20, 460, 19, 461, 18, 462, 18, 462, 19, 461, 19, 461, 20, 6, 2, 452, 28, 452, 28, 453, 27, 454, 26, 454, 26, 456, 24, 457, 22, 461, 18, 467, 10, 25918, 6, 472, 10, 468, 14, 465, 16, 463, 18, 462, 18, 461, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 459, 26, 454, 27, 453, 28, 452, 29, 451, 29, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 29, 451, 28, 452, 25, 455, 20, 460, 20, 460, 20, 461, 18, 463, 16, 464, 16, 463, 15, 465, 14, 466, 15, 465, 16, 464, 16, 464, 16, 464, 16, 464, 16, 464, 14, 467, 12, 469, 10, 472, 3, 2, 3, 8147, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 3, 7680, 3, 476, 4, 475, 8, 2, 3, 466, 14, 466, 15, 465, 15, 465, 16, 464, 16, 464, 17, 462, 20, 459, 24, 455, 25, 454, 26, 454, 26, 453, 26, 454, 25, 454, 25, 454, 26, 454, 25, 455, 24, 456, 23, 457, 21, 459, 14, 466, 13, 467, 12, 468, 12, 468, 11, 469, 10, 470, 10, 470, 11, 469, 11, 469, 12, 468, 12, 468, 13, 467, 14, 466, 18, 462, 20, 460, 22, 458, 24, 456, 26, 454, 27, 453, 35, 445, 36, 444, 37, 443, 38, 442, 38, 443, 37, 443, 37, 443, 38, 443, 38, 443, 38, 442, 39, 441, 39, 442, 38, 442, 38, 443, 37, 444, 36, 444, 36, 445, 34, 447, 22, 1, 9, 449, 21, 3, 4, 452, 22, 459, 21, 459, 21, 459, 21, 459, 21, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 459, 21, 458, 22, 458, 22, 458, 22, 458, 22, 458, 22, 458, 22, 458, 22, 458, 22, 457, 23, 456, 24, 456, 24, 456, 24, 456, 24, 456, 24, 456, 24, 456, 24, 457, 23, 458, 22, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 27, 453, 28, 451, 30, 449, 32, 445, 36, 443, 37, 441, 39, 438, 42, 437, 43, 436, 44, 435, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 47, 433, 49, 432, 51, 430, 52, 428, 53, 428, 53, 427, 54, 426, 31, 1, 22, 426, 31, 2, 21, 426, 31, 3, 20, 427, 30, 4, 19, 428, 29, 5, 18, 428, 29, 7, 16, 430, 27, 9, 13, 425, 33, 12, 9, 425, 33, 15, 4, 427, 35, 444, 36, 444, 36, 444, 36, 444, 36, 444, 36, 444, 36, 444, 36, 445, 35, 446, 34, 448, 32, 451, 29, 452, 27, 455, 24, 458, 21, 462, 16, 466, 11, 4493], "size": [480, 640]}, "area": 7528, "iscrowd": 1, "image_id": 360494, "bbox": [238, 278, 392, 59], "category_id": 1, "id": 900100360494}, {"segmentation": [[25.68, 270.62, 44.9, 248.3, 67.84, 235.28, 124.25, 228.46, 195.54, 228.46, 194.92, 217.3, 196.16, 196.85, 202.98, 181.97, 198.64, 163.37, 196.78, 138.57, 204.22, 149.73, 207.32, 165.23, 219.1, 177.63, 246.38, 172.67, 251.34, 160.89, 258.16, 139.81, 273.04, 124.31, 282.95, 143.53, 281.09, 174.53, 275.52, 193.13, 268.7, 204.91, 277.37, 216.06, 276.75, 219.78, 256.3, 221.02, 240.8, 230.94, 233.98, 242.1, 223.44, 252.64, 213.52, 266.28, 199.88, 288.6, 188.72, 296.04, 114.95, 291.7, 111.85, 287.98, 104.41, 292.32, 63.5, 294.18, 43.04, 290.46, 26.92, 270.0]], "area": 16620.736849999998, "iscrowd": 0, "image_id": 288127, "bbox": [25.68, 124.31, 257.27, 171.73], "category_id": 18, "id": 1610}, {"segmentation": [[222.23, 149.6, 239.22, 169.02, 247.11, 179.64, 251.36, 188.14, 247.72, 192.99, 228.3, 199.67, 222.53, 206.64, 219.8, 211.8, 221.02, 221.51, 219.8, 222.02, 227.08, 230.51, 237.1, 234.46, 246.81, 234.16, 216.46, 263.89, 209.18, 276.64, 207.66, 276.33, 209.48, 268.14, 209.48, 264.5, 206.45, 261.77, 206.75, 257.22, 222.23, 245.08, 232.55, 238.71, 237.1, 235.67, 227.99, 231.73, 226.17, 230.51, 211.91, 236.58, 194.31, 245.08, 183.09, 248.72, 167.31, 254.18, 160.02, 253.88, 158.2, 251.15, 161.24, 247.2, 146.07, 249.33, 142.43, 249.63, 141.21, 255.09, 137.02, 265.15, 134.29, 266.97, 131.56, 271.52, 131.26, 282.14, 125.49, 288.21, 121.55, 291.55, 116.09, 295.49, 110.02, 297.01, 104.25, 296.4, 97.27, 293.97, 93.33, 286.99, 94.24, 285.17, 89.99, 285.17, 89.69, 280.62, 89.08, 275.16, 93.33, 271.52, 94.24, 264.24, 93.09, 255.74, 89.45, 266.06, 85.5, 273.64, 82.16, 272.73, 81.25, 272.13, 75.49, 275.46, 70.63, 274.25, 66.08, 272.43, 64.26, 268.18, 63.35, 261.81, 59.71, 249.67, 59.41, 245.12, 61.53, 236.32, 75.18, 219.33, 86.71, 209.62, 96.12, 200.21, 101.58, 195.96, 105.53, 192.93, 106.13, 188.98, 104.92, 184.43, 106.44, 175.73, 98.85, 167.85, 101.58, 158.14, 111.29, 136.9, 119.49, 123.54, 125.86, 118.08, 136.48, 115.35, 151.95, 115.65, 159.24, 117.48, 162.88, 115.35, 167.73, 117.48, 175.62, 119.3, 183.21, 118.08, 186.55, 122.33, 192.92, 123.54, 201.11, 125.36, 203.54, 130.22, 209.3, 134.16, 214.46, 142.05, 219.92, 148.43]], "area": 19880.348099999996, "iscrowd": 0, "image_id": 75973, "bbox": [59.41, 115.35, 191.95, 181.66], "category_id": 18, "id": 1713}, {"segmentation": [[458.01, 172.43, 470.82, 168.77, 479.05, 162.36, 489.57, 165.56, 494.15, 167.85, 494.15, 181.12, 486.83, 191.64, 493.69, 199.42, 485.0, 224.12, 489.11, 225.49, 494.6, 226.87, 492.32, 239.67, 487.28, 247.45, 476.76, 252.03, 466.7, 255.23, 463.5, 248.82, 451.6, 248.82, 447.48, 254.77, 433.3, 254.31, 427.36, 244.25, 435.13, 232.36, 433.3, 225.49, 426.44, 213.6, 424.61, 192.56, 420.49, 184.32, 413.63, 183.41, 408.14, 195.3, 404.48, 192.56, 407.68, 183.41, 405.86, 176.54, 413.17, 175.63, 422.32, 169.68, 436.51, 167.85, 446.11, 175.17]], "area": 5475.914699999999, "iscrowd": 0, "image_id": 358222, "bbox": [404.48, 162.36, 90.12, 92.87], "category_id": 18, "id": 2758}, {"segmentation": [[1.1, 486.85, 24.18, 449.49, 107.7, 413.22, 117.59, 369.26, 114.29, 350.58, 138.47, 337.39, 153.86, 337.39, 184.63, 339.59, 192.32, 353.87, 207.71, 346.18, 206.61, 374.76, 185.73, 391.24, 174.74, 443.99, 173.64, 538.51, 4.4, 538.51, 3.3, 487.95]], "area": 24805.4603, "iscrowd": 0, "image_id": 34356, "bbox": [1.1, 337.39, 206.61, 201.12], "category_id": 18, "id": 3126}, {"segmentation": [[265.7, 454.49, 268.61, 453.52, 279.9, 434.95, 263.91, 406.8, 253.03, 379.29, 272.22, 333.87, 265.19, 314.68, 265.83, 298.04, 270.94, 289.09, 272.86, 270.53, 294.62, 270.53, 306.77, 248.78, 300.37, 234.07, 296.54, 228.31, 295.9, 220.63, 284.38, 210.4, 254.31, 205.92, 244.07, 214.23, 219.12, 209.12, 205.05, 206.56, 208.25, 212.95, 222.32, 217.43, 230.64, 229.59, 221.04, 247.5, 212.09, 255.18, 215.29, 258.38, 206.97, 269.89, 199.29, 273.73, 192.25, 283.33, 178.82, 303.8, 168.58, 311.48, 146.83, 334.51, 102.69, 372.26, 91.81, 373.54, 85.41, 377.37, 84.13, 386.97, 102.69, 392.09, 114.84, 394.65, 126.36, 400.41, 157.07, 398.49, 175.62, 399.13, 210.81, 372.9, 215.93, 381.85, 215.29, 395.93, 233.84, 413.84, 250.47, 439.43, 265.83, 454.14]], "area": 21354.52165, "iscrowd": 0, "image_id": 47387, "bbox": [84.13, 205.92, 222.64, 248.57], "category_id": 18, "id": 6814}, {"segmentation": [[166.91, 500.73, 184.22, 451.27, 192.87, 426.55, 199.05, 375.85, 217.6, 335.05, 222.55, 328.87, 186.69, 311.56, 168.15, 265.82, 166.91, 247.27, 192.87, 212.65, 220.07, 199.05, 239.85, 200.29, 296.73, 148.36, 331.35, 111.27, 358.55, 98.91, 412.95, 101.38, 447.56, 103.85, 469.82, 134.76, 435.2, 147.13, 398.11, 178.04, 372.15, 202.76, 363.49, 217.6, 370.91, 254.69, 362.25, 278.18, 352.36, 291.78, 352.36, 321.45, 342.47, 348.65, 332.58, 377.09, 332.58, 405.53, 312.8, 453.75, 299.2, 492.07, 307.85, 522.98, 297.96, 539.05, 267.05, 545.24, 250.98, 536.58, 243.56, 519.27, 247.27, 490.84, 259.64, 463.64, 263.35, 441.38, 273.24, 419.13, 278.18, 386.98, 290.55, 373.38, 274.47, 379.56, 258.4, 379.56, 252.22, 374.62, 238.62, 419.13, 232.44, 457.45, 231.2, 495.78, 226.25, 513.09, 210.18, 520.51, 192.87, 520.51, 181.75, 518.04, 170.62, 508.15]], "area": 59010.913049999996, "iscrowd": 0, "image_id": 461989, "bbox": [166.91, 98.91, 302.91, 446.33], "category_id": 18, "id": 6858}, {"segmentation": [[525.9, 353.56, 528.84, 353.23, 529.82, 349.64, 531.45, 347.02, 531.45, 344.74, 534.39, 346.7, 538.32, 346.04, 540.93, 348.33, 545.83, 348.0, 550.08, 350.95, 563.81, 352.25, 571.0, 350.62, 577.54, 351.93, 580.48, 359.45, 580.48, 364.68, 580.16, 367.29, 583.75, 367.29, 586.37, 368.92, 584.41, 373.17, 579.5, 376.12, 578.85, 377.42, 575.91, 380.04, 575.58, 376.77, 576.23, 373.17, 572.64, 377.1, 569.37, 377.75, 573.62, 371.87, 570.68, 368.6, 569.04, 364.35, 561.2, 366.64, 554.33, 367.29, 551.06, 370.56, 548.78, 376.44, 544.2, 381.67, 539.3, 382.33, 538.64, 381.02, 542.57, 377.1, 544.53, 369.58, 544.53, 366.96, 537.34, 362.39, 533.09, 357.81, 531.13, 355.85, 527.86, 356.83, 526.22, 353.89]], "area": 990.1160999999994, "iscrowd": 0, "image_id": 87146, "bbox": [525.9, 344.74, 60.47, 37.59], "category_id": 18, "id": 8690}, {"segmentation": [[124.51, 171.9, 118.76, 171.08, 117.12, 175.18, 117.12, 173.54, 118.76, 167.79, 119.58, 163.69, 120.4, 161.22, 121.23, 157.12, 123.69, 150.55, 129.44, 146.44, 130.26, 145.62, 130.26, 142.34, 130.26, 131.66, 130.26, 125.92, 131.08, 110.32, 131.08, 105.39, 131.08, 99.64, 132.72, 94.71, 140.11, 91.43, 145.04, 93.89, 149.96, 99.64, 147.5, 114.42, 157.35, 119.35, 165.56, 123.45, 173.78, 125.09, 190.2, 113.6, 199.23, 114.42, 213.19, 107.03, 234.54, 91.43, 257.53, 84.04, 279.7, 77.47, 313.36, 65.16, 333.89, 58.59, 351.13, 52.02, 377.4, 65.98, 387.26, 70.9, 408.61, 71.72, 434.06, 70.9, 460.33, 75.01, 471.01, 80.76, 483.33, 85.68, 506.32, 103.75, 506.32, 103.75, 530.95, 116.88, 530.95, 116.88, 533.41, 114.42, 549.83, 110.32, 572.0, 114.42, 590.07, 116.88, 594.99, 125.92, 597.46, 132.48, 585.96, 132.48, 566.25, 132.48, 558.04, 130.84, 546.55, 130.84, 535.05, 128.38, 531.77, 130.02, 535.05, 134.13, 537.52, 143.16, 542.44, 152.19, 549.83, 162.86, 550.65, 166.15, 572.0, 181.75, 585.14, 191.6, 594.99, 200.63, 592.53, 216.24, 585.96, 226.09, 580.21, 223.63, 575.29, 218.7, 570.36, 213.77, 567.08, 209.67, 552.3, 191.6, 541.62, 184.21, 536.7, 184.21, 510.42, 183.39, 497.28, 183.39, 489.89, 183.39, 466.9, 180.11, 464.44, 178.47, 450.48, 170.25, 444.73, 170.25, 439.81, 167.79, 439.81, 167.79, 435.7, 166.97, 434.06, 166.15, 421.74, 166.97, 413.53, 170.25, 402.04, 170.25, 376.58, 171.08, 364.27, 172.72, 363.45, 176.0, 361.8, 174.36, 327.32, 149.73, 311.72, 153.01, 309.25, 157.12, 302.69, 160.4, 298.58, 164.51, 294.48, 166.97, 287.91, 172.72, 283.8, 176.0, 281.34, 181.75, 278.05, 187.5, 270.66, 194.07, 266.56, 200.63, 266.56, 208.85, 266.56, 212.95, 276.41, 231.02, 285.44, 236.76, 286.26, 237.58, 296.12, 239.23, 310.08, 249.9, 313.36, 254.83, 321.57, 259.75, 331.42, 251.54, 333.07, 254.01, 332.25, 262.22, 337.17, 286.03, 330.6, 289.31, 349.49, 327.9, 311.72, 354.18, 306.79, 339.4, 306.79, 327.08, 306.79, 319.69, 305.97, 295.06, 282.16, 295.88, 278.05, 296.7, 273.13, 286.03, 259.17, 273.71, 254.24, 267.14, 251.78, 262.22, 254.24, 253.18, 252.6, 254.01, 241.93, 223.63, 237.82, 217.88, 237.82, 208.85, 240.28, 187.5, 243.57, 185.03, 243.57, 179.29, 227.97, 184.21, 193.48, 178.47, 195.12, 180.93, 191.84, 189.14, 207.44, 208.85, 205.8, 220.34, 201.69, 231.84, 195.12, 249.08, 168.03, 248.26, 148.32, 230.19, 148.32, 230.19, 137.65, 228.55, 126.97, 228.55, 122.87, 225.27, 115.48, 226.91, 106.45, 228.55, 100.7, 231.84, 92.49, 235.94, 91.67, 235.94, 88.38, 235.94, 85.1, 234.3, 85.1, 231.02, 85.92, 221.16, 91.67, 215.41, 103.98, 200.63, 106.45, 198.99, 112.19, 195.71, 117.12, 187.5, 117.12, 177.64, 117.12, 175.18, 117.94, 175.18]], "area": 52389.07534999997, "iscrowd": 0, "image_id": 316907, "bbox": [85.1, 52.02, 512.36, 302.16], "category_id": 18, "id": 9310}, {"segmentation": [[224.97, 282.9, 223.31, 262.1, 221.19, 244.84, 226.15, 235.15, 222.84, 227.34, 225.92, 221.2, 238.45, 217.41, 237.03, 221.2, 226.86, 223.8, 227.1, 227.11, 228.99, 232.07, 238.45, 234.44, 244.36, 235.38, 242.7, 228.76, 241.28, 220.72, 241.99, 218.12, 248.38, 223.56, 249.56, 224.74, 252.87, 225.22, 255.23, 220.72, 259.25, 218.6, 259.02, 224.74, 256.18, 229.0, 256.18, 235.62, 253.1, 238.69, 257.36, 240.82, 257.12, 258.08, 255.23, 273.92, 254.76, 281.49, 258.78, 285.5, 253.1, 285.98, 251.92, 281.49, 251.92, 269.9, 251.69, 261.39, 247.67, 256.42, 243.41, 259.73, 242.7, 266.59, 243.65, 277.94, 244.83, 285.74, 241.28, 288.1, 238.45, 270.85, 237.74, 269.66, 237.74, 277.23, 238.21, 281.96, 239.86, 284.8, 236.08, 283.38, 234.43, 273.92, 233.72, 265.41, 235.85, 257.84, 230.41, 250.51, 226.62, 257.84, 226.62, 277.23, 230.41, 284.32, 225.92, 283.61, 225.44, 282.9]], "area": 1445.00735, "iscrowd": 0, "image_id": 400134, "bbox": [221.19, 217.41, 38.06, 70.69], "category_id": 18, "id": 10037}, {"segmentation": [[218.34, 172.37, 244.53, 149.37, 255.39, 135.32, 280.94, 125.1, 302.66, 124.46, 333.32, 129.57, 368.45, 146.82, 365.89, 158.31, 385.06, 167.26, 430.41, 176.84, 422.11, 209.41, 396.55, 226.02, 382.5, 224.11, 394.0, 234.33, 397.19, 228.58, 401.03, 241.35, 399.11, 259.24, 382.5, 261.79, 357.59, 259.24, 344.81, 257.32, 331.4, 255.41, 323.74, 254.13, 321.18, 265.63, 315.43, 282.87, 296.27, 293.09, 282.22, 285.43, 258.58, 277.76, 241.34, 240.71, 224.09, 186.42, 218.98, 172.37]], "area": 22624.08945, "iscrowd": 0, "image_id": 456653, "bbox": [218.34, 124.46, 212.07, 168.63], "category_id": 18, "id": 10214}, {"segmentation": [[193.57, 185.0, 198.31, 182.71, 207.02, 182.71, 209.61, 180.41, 222.6, 180.87, 236.5, 183.93, 246.59, 188.97, 251.63, 194.93, 252.7, 200.74, 255.45, 204.71, 265.99, 207.46, 272.1, 209.44, 278.67, 215.4, 278.37, 218.0, 276.23, 220.14, 276.23, 223.35, 272.26, 225.49, 270.42, 227.78, 267.06, 228.7, 250.1, 226.71, 245.67, 225.95, 245.52, 227.93, 256.82, 233.13, 258.5, 235.11, 260.18, 235.72, 261.56, 234.04, 263.7, 234.2, 264.0, 236.95, 263.5, 239.78, 261.5, 241.51, 261.83, 245.17, 257.38, 247.96, 251.06, 247.83, 244.61, 245.9, 234.5, 241.97, 228.52, 241.64, 228.05, 245.77, 225.06, 249.09, 222.53, 250.29, 219.0, 251.81, 215.61, 251.74, 210.15, 255.66, 206.96, 255.4, 201.97, 254.33, 194.59, 254.2]], "area": 4430.269099999998, "iscrowd": 0, "image_id": 282899, "bbox": [193.57, 180.41, 85.1, 75.25], "category_id": 18, "id": 10508}, {"segmentation": [[566.48, 423.16, 557.73, 427.04, 543.16, 425.1, 523.72, 420.24, 507.21, 409.55, 499.43, 403.72, 487.77, 392.06, 480.97, 386.23, 470.28, 388.18, 459.6, 386.23, 441.13, 373.6, 402.27, 359.03, 370.2, 360.0, 338.14, 360.0, 308.99, 360.0, 284.7, 361.94, 268.18, 362.91, 246.8, 366.8, 229.31, 369.72, 214.74, 368.74, 199.19, 367.77, 183.64, 371.66, 170.04, 373.6, 159.35, 378.46, 155.47, 394.98, 148.66, 404.7, 128.26, 408.58, 92.31, 416.36, 59.27, 416.36, 16.52, 422.19, 1.94, 424.13, 0.0, 291.98, 0.97, 169.55, 9.72, 161.78, 29.15, 155.95, 47.61, 156.92, 65.1, 156.92, 79.68, 156.92, 97.17, 154.98, 114.66, 154.01, 130.2, 154.98, 141.86, 154.98, 161.3, 153.04, 169.07, 148.18, 181.7, 136.52, 192.39, 128.74, 200.16, 126.8, 217.65, 126.8, 228.34, 126.8, 237.09, 128.74, 243.89, 129.72, 268.18, 128.74, 276.92, 122.91, 296.36, 115.14, 323.56, 101.54, 332.31, 95.71, 336.19, 88.91, 340.08, 71.42, 349.8, 67.53, 363.4, 63.64, 381.86, 67.53, 389.64, 64.62, 397.41, 65.59, 412.96, 81.13, 431.42, 98.62, 440.16, 109.31, 455.71, 124.86, 467.37, 137.49, 476.11, 150.12, 480.97, 169.55, 494.57, 190.93, 527.61, 209.39, 540.24, 223.0, 543.16, 230.77, 525.67, 248.26, 497.49, 256.03, 501.38, 266.72, 494.57, 272.55, 482.91, 278.38, 464.45, 277.41, 452.79, 270.61, 439.19, 264.78, 432.39, 262.83, 423.64, 260.89, 414.9, 265.75, 409.07, 274.49, 403.24, 284.21, 399.35, 289.07, 390.61, 292.96, 378.95, 292.96, 376.03, 293.93, 387.69, 302.67, 427.53, 312.39, 434.33, 322.11, 485.83, 344.45, 509.15, 357.09, 526.64, 379.43, 547.04, 385.26, 558.7, 386.23, 567.45, 393.04, 569.39, 409.55, 569.39, 413.44]], "area": 126598.00460000003, "iscrowd": 0, "image_id": 79196, "bbox": [0.0, 63.64, 569.39, 363.4], "category_id": 18, "id": 10799}, {"segmentation": [[291.98, 240.27, 294.59, 236.57, 297.19, 235.05, 298.93, 232.23, 307.41, 226.14, 316.11, 223.31, 323.5, 221.79, 326.55, 219.18, 326.98, 213.75, 325.68, 208.09, 326.33, 205.48, 326.55, 200.48, 328.5, 198.31, 331.76, 202.01, 336.98, 202.01, 343.72, 198.74, 343.5, 201.57, 343.07, 200.7, 341.98, 202.66, 341.55, 204.83, 340.68, 207.88, 340.68, 209.83, 343.5, 217.01, 344.16, 224.83, 345.46, 232.88, 346.98, 238.53, 329.81, 239.62, 305.46, 240.27, 292.41, 240.27]], "area": 1098.5287500000004, "iscrowd": 0, "image_id": 20769, "bbox": [291.98, 198.31, 55.0, 41.96], "category_id": 18, "id": 11071}, {"segmentation": [[431.52, 341.17, 418.91, 346.99, 416.97, 337.29, 419.88, 325.66, 413.09, 319.84, 412.12, 315.96, 400.48, 318.87, 398.55, 310.14, 416.0, 303.35, 420.85, 306.26, 442.18, 300.44, 480.97, 332.44, 508.12, 372.2, 502.3, 383.84, 472.24, 391.6, 456.73, 379.96, 467.39, 375.11, 459.64, 366.38, 457.7, 378.02, 444.12, 397.41, 455.76, 361.54, 443.15, 353.78, 441.21, 391.6, 433.45, 393.54, 422.79, 387.72, 437.33, 383.84, 434.42, 353.78, 430.55, 346.02, 423.76, 354.75]], "area": 4895.803700000001, "iscrowd": 0, "image_id": 522309, "bbox": [398.55, 300.44, 109.57, 96.97], "category_id": 18, "id": 11644}, {"segmentation": [[249.43, 132.08, 264.86, 124.37, 274.29, 133.8, 267.43, 149.23, 246.86, 160.37, 234.86, 170.65, 219.43, 177.51, 201.43, 173.23, 192.0, 199.8, 180.0, 207.51, 171.43, 216.94, 162.0, 222.08, 153.43, 230.65, 148.29, 238.37, 156.86, 238.37, 160.29, 246.08, 155.14, 254.65, 145.71, 268.37, 128.57, 279.51, 113.14, 288.08, 102.86, 297.51, 87.43, 297.51, 73.71, 294.08, 58.29, 290.65, 47.14, 285.51, 37.71, 282.94, 30.0, 266.65, 27.43, 263.23, 22.29, 277.8, 19.71, 285.51, 8.57, 288.94, 0.0, 285.51, 0.0, 270.94, 6.0, 263.23, 12.86, 249.51, 14.57, 237.51, 10.29, 225.51, 10.29, 210.08, 17.14, 198.94, 28.29, 186.08, 44.57, 179.23, 51.43, 176.65, 74.57, 165.51, 87.43, 141.51, 108.0, 119.23, 130.29, 96.94, 141.43, 79.8, 158.57, 69.51, 183.43, 62.65, 198.86, 59.23, 209.14, 50.65, 201.43, 36.94, 201.43, 12.08, 204.86, 0.94, 213.43, 10.37, 237.43, 32.65, 237.43, 38.65, 259.71, 46.37, 266.57, 57.51, 272.57, 64.37, 293.14, 62.65, 312.86, 71.23, 314.57, 79.8, 304.29, 78.94, 291.43, 88.37, 268.29, 100.37, 259.71, 102.94, 250.29, 106.37, 243.43, 116.65, 242.57, 125.23, 247.71, 133.8, 250.29, 132.08]], "area": 36887.396949999995, "iscrowd": 0, "image_id": 232806, "bbox": [0.0, 0.94, 314.57, 296.57], "category_id": 18, "id": 12940}, {"segmentation": [[153.86, 391.76, 166.79, 351.68, 160.32, 292.2, 156.44, 224.97, 164.2, 183.6, 182.3, 155.15, 190.06, 137.05, 200.4, 102.14, 228.85, 96.97, 249.54, 99.56, 271.52, 102.14, 284.44, 107.31, 287.03, 128.0, 283.15, 155.15, 285.74, 181.01, 252.12, 193.94, 256.0, 205.58, 274.1, 227.56, 272.81, 265.05, 275.39, 309.01, 283.15, 333.58, 292.2, 367.19, 263.76, 362.02, 263.76, 321.94, 256.0, 279.27, 248.24, 271.52, 248.24, 310.3, 249.54, 347.8, 235.31, 356.85, 245.66, 377.54, 245.66, 391.76, 218.51, 387.88, 214.63, 347.8, 219.8, 306.42, 214.63, 271.52, 188.77, 270.22, 187.47, 302.55, 183.6, 359.43, 186.18, 399.52]], "area": 26057.701050000003, "iscrowd": 0, "image_id": 406874, "bbox": [153.86, 96.97, 138.34, 302.55], "category_id": 18, "id": 13618}, {"segmentation": [[325.77, 295.68, 334.4, 307.45, 348.53, 327.86, 359.52, 341.99, 371.3, 354.55, 386.21, 381.24, 388.56, 398.51, 388.56, 419.7, 384.64, 437.75, 377.58, 466.01, 367.37, 498.98, 347.75, 525.67, 336.76, 546.86, 319.49, 561.64, 287.31, 567.92, 266.11, 567.92, 262.19, 565.56, 217.45, 517.68, 211.95, 508.26, 205.67, 505.91, 195.47, 518.47, 189.19, 527.89, 189.98, 535.74, 183.7, 543.59, 173.49, 549.87, 165.64, 551.44, 152.3, 553.79, 139.74, 549.08, 135.82, 542.8, 139.74, 527.1, 147.59, 517.68, 156.22, 506.69, 174.28, 497.27, 204.89, 428.99, 209.6, 415.64, 202.53, 408.58, 198.61, 392.09, 192.33, 377.18, 184.48, 367.76, 189.19, 360.7, 182.91, 349.71, 178.99, 341.07, 172.71, 332.44, 162.5, 320.66, 167.21, 314.39, 168.0, 308.11, 166.43, 300.26, 161.93, 281.0, 162.86, 265.24, 163.79, 250.41, 162.86, 239.28, 170.28, 226.31, 182.33, 223.52, 199.94, 220.74, 224.04, 224.45, 241.66, 227.23, 262.98, 234.65, 275.96, 245.77, 290.79, 260.6, 289.86, 267.09, 288.93, 271.73, 299.13, 274.51, 311.18, 282.85, 319.53, 291.2]], "area": 56238.044849999984, "iscrowd": 0, "image_id": 410561, "bbox": [135.82, 220.74, 252.74, 347.18], "category_id": 18, "id": 14292}, {"segmentation": [[524.35, 248.17, 550.42, 261.69, 582.29, 269.42, 591.95, 269.42, 589.05, 256.86, 564.91, 239.48, 543.66, 231.76, 530.15, 219.2, 525.32, 196.99, 538.84, 170.92, 551.39, 140.99, 556.22, 111.05, 524.35, 82.08, 466.41, 49.25, 435.51, 29.94, 381.43, 59.87, 343.77, 92.7, 334.12, 107.19, 275.21, 146.78, 245.28, 172.85, 186.37, 201.82, 160.3, 227.89, 132.29, 257.83, 129.4, 270.38, 135.19, 342.81, 161.26, 371.78, 187.34, 391.09, 219.2, 408.47, 244.31, 411.37, 296.46, 408.47, 339.91, 380.47, 364.05, 351.5, 381.43, 339.91]], "area": 95566.5418, "iscrowd": 0, "image_id": 26732, "bbox": [129.4, 29.94, 462.55, 381.43], "category_id": 18, "id": 14325}, {"segmentation": [[178.42, 336.16, 138.34, 340.04, 116.36, 340.04, 82.75, 329.7, 65.94, 303.84, 65.94, 294.79, 153.86, 246.95, 157.74, 223.68, 218.51, 201.7, 249.54, 197.82, 277.98, 200.4, 332.28, 192.65, 352.97, 175.84, 377.54, 199.11, 395.64, 190.06, 424.08, 200.4, 425.37, 510.71, 248.24, 509.41, 236.61, 473.21, 248.24, 425.37, 267.64, 405.98, 276.69, 396.93, 262.46, 384.0, 223.68, 377.54, 208.16, 367.19, 197.82, 343.92, 175.84, 333.58, 165.49, 336.16]], "area": 74949.65294999999, "iscrowd": 0, "image_id": 143847, "bbox": [65.94, 175.84, 359.43, 334.87], "category_id": 18, "id": 14409}, {"segmentation": [[413.33, 254.56, 417.65, 250.24, 428.0, 244.2, 444.4, 240.75, 465.97, 238.16, 475.46, 235.57, 484.95, 231.26, 492.72, 225.22, 488.4, 209.69, 481.5, 196.74, 481.5, 179.48, 486.68, 167.4, 499.62, 162.23, 505.66, 163.09, 516.02, 174.31, 518.6, 181.21, 521.19, 188.98, 527.23, 192.43, 542.77, 195.88, 553.12, 188.98, 559.16, 183.8, 564.34, 179.48, 576.42, 173.44, 591.09, 171.72, 596.27, 170.85, 598.85, 184.66, 594.54, 188.98, 591.09, 193.29, 590.23, 195.88, 592.81, 203.65, 599.72, 218.31, 604.03, 224.35, 611.8, 232.12, 613.52, 245.06, 613.52, 260.6, 606.62, 264.05, 591.09, 283.9, 586.77, 289.94, 585.05, 295.98, 583.32, 303.74, 581.6, 308.06, 576.42, 311.51, 569.52, 311.51, 555.71, 314.96, 547.08, 314.1, 538.45, 313.23, 516.02, 311.51, 505.66, 310.65, 486.68, 310.65, 469.42, 306.33, 456.48, 308.92, 432.31, 302.88, 420.23, 293.39, 409.88, 282.17, 410.74, 262.32, 410.74, 253.69]], "area": 19765.7552, "iscrowd": 0, "image_id": 288127, "bbox": [409.88, 162.23, 203.64, 152.73], "category_id": 18, "id": 14704}, {"segmentation": [[487.95, 283.81, 462.67, 284.91, 453.88, 305.79, 448.39, 314.59, 446.19, 322.28, 448.39, 358.55, 456.08, 388.22, 464.87, 404.7, 454.98, 446.46, 449.49, 516.8, 453.88, 531.09, 467.07, 537.68, 638.51, 539.88, 640.0, 500.32, 627.52, 464.05, 607.74, 423.39, 592.36, 398.11, 574.77, 388.22, 558.29, 351.95, 550.59, 313.49, 554.99, 294.8, 518.72, 282.72]], "area": 36016.13985, "iscrowd": 0, "image_id": 34356, "bbox": [446.19, 282.72, 193.81, 257.16], "category_id": 18, "id": 15014}, {"segmentation": [[277.77, 271.48, 296.42, 230.02, 288.13, 208.25, 275.69, 220.69, 273.62, 195.82, 303.68, 153.32, 319.22, 158.51, 344.1, 152.29, 357.57, 144.0, 407.32, 151.25, 413.54, 173.02, 419.76, 185.45, 412.5, 198.93, 395.92, 188.56, 412.5, 206.18, 395.92, 228.98, 387.63, 246.6, 387.63, 250.75, 368.97, 237.28, 333.73, 182.34, 298.49, 192.71, 308.86, 237.28, 333.73, 280.81, 339.95, 289.1, 318.19, 299.46, 298.49, 295.32, 285.02, 280.81], [386.59, 394.81, 382.45, 344.03, 368.97, 327.45, 361.72, 307.75, 337.88, 334.7, 314.04, 326.41, 313.0, 302.57, 344.1, 288.06, 423.9, 357.5, 427.01, 377.19, 413.54, 376.16, 409.39, 387.56, 409.39, 398.96, 383.48, 397.92]], "area": 14296.71745, "iscrowd": 0, "image_id": 396039, "bbox": [273.62, 144.0, 153.39, 254.96], "category_id": 18, "id": 16084}, {"segmentation": [[312.09, 355.24, 339.42, 355.24, 350.92, 337.98, 371.06, 316.4, 375.37, 299.15, 384.0, 277.57, 378.25, 263.19, 392.63, 247.37, 398.38, 222.92, 418.52, 217.17, 401.26, 195.6, 405.57, 181.21, 417.08, 172.58, 427.0, 138.07, 425.71, 86.29, 424.27, 50.34, 401.26, 53.21, 385.44, 74.79, 353.8, 90.61, 329.35, 123.69, 312.09, 142.38, 307.78, 181.21, 299.15, 176.9, 279.01, 168.27, 268.94, 140.94, 261.75, 116.49, 248.81, 93.48, 248.81, 56.09, 201.35, 41.71, 185.53, 97.8, 184.09, 128.0, 202.79, 162.52, 175.46, 171.15, 174.02, 178.34, 151.01, 128.0, 148.13, 93.48, 139.51, 57.53, 117.93, 17.26, 94.92, 12.94, 74.79, 38.83, 71.91, 57.53, 97.8, 102.11, 119.37, 119.37, 123.69, 139.51, 117.93, 145.26, 100.67, 135.19, 87.73, 117.93, 69.03, 113.62, 53.21, 92.04, 30.2, 77.66, 14.38, 73.35, 4.31, 83.42, 0.0, 225.8, 7.19, 253.12, 25.89, 284.76, 61.84, 323.6, 113.62, 355.24, 135.19, 368.18, 143.82, 379.69, 171.15, 379.69, 205.66, 353.8, 253.12, 340.85, 317.84, 365.3]], "area": 99626.25449999997, "iscrowd": 0, "image_id": 248016, "bbox": [0.0, 12.94, 427.0, 366.75], "category_id": 64, "id": 19716}, {"segmentation": [[552.22, 273.4, 569.12, 276.61, 570.41, 277.04, 574.9, 262.7, 575.33, 254.36, 583.03, 251.15, 582.39, 241.52, 584.96, 240.02, 583.68, 238.73, 580.04, 238.09, 578.97, 234.03, 584.75, 228.89, 580.47, 227.61, 578.75, 231.25, 572.76, 229.11, 572.12, 233.39, 569.55, 233.39, 569.12, 229.11, 569.77, 224.61, 568.48, 222.9, 562.92, 222.26, 557.78, 222.26, 555.22, 226.97, 554.15, 227.82, 552.65, 222.26, 547.73, 220.97, 545.8, 226.54, 542.16, 225.68, 538.95, 224.83, 538.53, 226.54, 538.53, 229.11, 540.45, 230.82, 538.74, 234.24, 537.24, 233.6, 536.6, 231.46, 535.32, 229.32, 534.03, 227.82, 532.96, 234.46, 535.74, 237.45, 538.1, 242.59, 540.67, 247.08, 541.95, 251.36, 543.66, 254.57, 541.95, 257.35, 546.01, 257.35, 546.01, 261.2, 547.51, 263.13]], "area": 1782.5305999999982, "iscrowd": 0, "image_id": 537924, "bbox": [532.96, 220.97, 52.0, 56.07], "category_id": 64, "id": 19780}, {"segmentation": [[147.8, 305.16, 147.53, 314.69, 151.61, 314.69, 145.89, 328.05, 148.61, 334.86, 148.89, 338.4, 157.61, 337.58, 160.6, 332.41, 163.06, 328.59, 158.42, 318.24, 160.33, 311.7, 164.42, 300.25, 173.14, 293.71, 174.5, 285.27, 171.23, 283.9, 164.96, 293.99, 161.69, 289.9, 158.15, 287.99, 152.16, 284.99, 151.61, 284.45, 152.97, 274.64, 148.89, 277.36, 146.44, 286.9, 143.98, 288.81, 136.08, 281.18, 132.27, 283.09, 132.27, 284.45, 130.36, 286.63, 122.46, 281.72, 119.73, 282.27, 118.1, 293.71, 119.73, 295.62, 123.0, 298.62, 122.18, 300.8, 131.72, 298.07, 128.72, 304.88, 136.9, 307.34, 141.26, 304.34, 147.25, 305.97]], "area": 1353.4741499999996, "iscrowd": 0, "image_id": 121316, "bbox": [118.1, 274.64, 56.4, 63.76], "category_id": 64, "id": 19917}, {"segmentation": [[461.47, 375.74, 443.48, 351.4, 444.54, 337.64, 445.6, 332.35, 445.6, 320.7, 445.6, 315.41, 445.6, 312.24, 445.6, 305.89, 445.6, 300.59, 445.6, 297.42, 444.54, 295.3, 443.48, 288.95, 444.54, 278.37, 444.54, 273.07, 444.54, 263.55, 445.6, 259.31, 447.71, 254.02, 453.01, 248.73, 454.07, 247.67, 457.24, 244.5, 473.12, 230.74, 456.18, 215.92, 449.83, 209.57, 436.07, 193.69, 425.49, 196.87, 411.73, 195.81, 414.9, 180.99, 422.31, 170.41, 426.55, 165.11, 425.49, 161.94, 431.84, 140.77, 439.25, 134.42, 441.36, 119.6, 445.6, 122.78, 494.29, 124.89, 495.34, 152.41, 500.0, 189.46, 499.58, 379.98, 497.46, 383.15]], "area": 14265.579149999996, "iscrowd": 0, "image_id": 302680, "bbox": [411.73, 119.6, 88.27, 263.55], "category_id": 64, "id": 20864}, {"segmentation": [[136.54, 156.36, 130.74, 137.04, 131.71, 124.97, 131.71, 114.34, 126.4, 119.17, 117.22, 109.51, 114.8, 90.68, 119.15, 73.77, 120.6, 53.97, 121.08, 44.31, 118.67, 31.27, 110.46, 16.3, 110.46, 0.0, 166.48, 1.81, 168.41, 37.55, 168.41, 42.38, 159.24, 43.35, 156.34, 81.98, 156.34, 93.09, 167.93, 92.61, 167.93, 99.37, 164.55, 103.23, 166.96, 112.41, 163.58, 119.17, 159.24, 125.45, 164.55, 131.25, 163.1, 140.42, 162.62, 152.5, 160.68, 156.36, 137.02, 154.91]], "area": 6505.1747000000005, "iscrowd": 0, "image_id": 169686, "bbox": [110.46, 0.0, 57.95, 156.36], "category_id": 64, "id": 20924}, {"segmentation": [[334.08, 324.66, 347.53, 328.03, 356.5, 324.66, 362.11, 323.54, 365.47, 306.73, 369.96, 300.0, 373.32, 288.79, 366.59, 280.94, 354.26, 275.34, 334.08, 278.7, 320.63, 282.06, 323.99, 292.15, 325.11, 297.76, 326.23, 311.21, 326.23, 324.66]], "area": 2021.6299000000006, "iscrowd": 0, "image_id": 95281, "bbox": [320.63, 275.34, 52.69, 52.69], "category_id": 64, "id": 20994}, {"segmentation": [[278.2, 351.62, 266.61, 343.89, 266.61, 323.61, 255.99, 323.61, 251.16, 299.46, 252.12, 291.73, 260.82, 285.93, 263.71, 284.0, 275.31, 264.68, 285.93, 273.37, 286.9, 288.83, 298.49, 287.86, 299.46, 296.56, 290.76, 304.29, 286.9, 314.91, 282.07, 312.98, 271.44, 318.78, 271.44, 307.18, 271.44, 339.06, 275.31, 341.96, 275.31, 341.96]], "area": 1777.28835, "iscrowd": 0, "image_id": 37433, "bbox": [251.16, 264.68, 48.3, 86.94], "category_id": 64, "id": 21044}, {"segmentation": [[86.8, 264.57, 119.72, 231.64, 118.72, 195.73, 99.77, 195.73, 104.75, 190.74, 117.72, 191.74, 117.72, 160.81, 101.76, 161.81, 88.79, 153.83, 69.84, 169.79, 53.87, 182.76, 40.9, 193.73, 44.89, 204.71, 49.88, 223.66, 48.89, 244.61, 51.88, 261.57, 86.8, 265.56]], "area": 6335.465499999999, "iscrowd": 0, "image_id": 35322, "bbox": [40.9, 153.83, 78.82, 111.73], "category_id": 64, "id": 22273}, {"segmentation": [[5.74, 629.96, 154.98, 628.52, 137.76, 476.41, 114.8, 420.45, 87.53, 381.7, 104.75, 340.09, 180.81, 324.3, 215.25, 295.61, 238.21, 256.86, 245.38, 182.24, 252.56, 123.41, 203.77, 77.49, 172.2, 60.27, 150.67, 17.22, 100.45, 2.87, 1.43, 1.43, 5.74, 287.0, 28.7, 312.83, 31.57, 341.52, 11.48, 341.52, 0.0, 347.26, 18.65, 380.27, 12.91, 416.14, 5.74, 571.12, 147.8, 573.99]], "area": 100115.72034999997, "iscrowd": 0, "image_id": 273427, "bbox": [0.0, 1.43, 252.56, 628.53], "category_id": 64, "id": 23900}, {"segmentation": [[473.4, 438.58, 463.81, 433.79, 454.22, 433.79, 446.43, 434.98, 443.44, 427.2, 438.05, 433.79, 433.25, 438.58, 425.46, 434.98, 415.88, 433.79, 414.68, 428.39, 418.27, 420.6, 423.07, 409.22, 430.26, 397.24, 437.45, 390.65, 448.83, 376.27, 454.82, 369.08, 447.63, 352.3, 454.82, 357.09, 461.41, 340.92, 474.0, 373.87, 476.39, 388.85, 478.79, 405.03, 476.39, 424.2, 474.0, 439.78]], "area": 3338.367450000001, "iscrowd": 0, "image_id": 401182, "bbox": [414.68, 340.92, 64.11, 98.86], "category_id": 64, "id": 24144}, {"segmentation": [[485.52, 246.82, 507.46, 246.31, 513.59, 222.84, 507.97, 211.11, 508.48, 206.0, 516.14, 215.7, 517.16, 232.03, 528.89, 217.23, 526.85, 198.35, 516.65, 187.64, 491.14, 182.53, 468.69, 193.25, 457.97, 193.76, 470.73, 214.68, 474.3, 220.8, 479.4, 204.47, 481.44, 207.03, 481.44, 216.72, 479.4, 231.01, 478.89, 231.52]], "area": 2704.8594000000007, "iscrowd": 0, "image_id": 537924, "bbox": [457.97, 182.53, 70.92, 64.29], "category_id": 64, "id": 25348}, {"segmentation": [[110.33, 153.98, 111.12, 128.58, 110.33, 122.23, 127.79, 121.44, 118.26, 108.74, 114.3, 92.07, 117.47, 86.52, 117.47, 80.17, 108.74, 75.4, 80.96, 83.34, 66.67, 93.66, 50.0, 111.91, 53.97, 127.79, 66.67, 140.49, 76.99, 134.93, 92.87, 126.2, 101.6, 128.58, 104.77, 150.81, 104.77, 153.98, 107.95, 153.98]], "area": 3151.3799500000005, "iscrowd": 0, "image_id": 169686, "bbox": [50.0, 75.4, 77.79, 78.58], "category_id": 64, "id": 25734}, {"segmentation": [[258.39, 149.04, 258.94, 147.94, 258.94, 146.57, 259.76, 142.46, 260.31, 140.26, 260.31, 139.16, 260.31, 136.42, 258.39, 134.5, 257.57, 133.4, 257.29, 128.47, 258.94, 125.18, 259.76, 123.26, 259.21, 120.51, 260.31, 115.85, 261.41, 115.58, 264.42, 117.5, 265.8, 120.51, 266.34, 121.06, 271.28, 118.04, 274.57, 116.95, 275.12, 117.77, 274.85, 119.96, 273.48, 122.71, 273.48, 123.8, 274.57, 124.9, 278.69, 123.53, 280.06, 121.88, 282.8, 124.35, 284.72, 126.82, 285.55, 130.11, 286.09, 131.48, 292.68, 133.13, 293.77, 136.15, 294.32, 138.89, 293.23, 142.73, 291.03, 146.57, 287.74, 148.49, 289.39, 152.06, 291.03, 155.62, 288.56, 156.72, 287.47, 156.99, 284.45, 157.82, 283.63, 157.82, 279.51, 158.09, 275.67, 159.19, 274.03, 160.56, 271.28, 161.93, 269.09, 164.13, 265.8, 166.59, 264.7, 167.42, 262.23, 170.71, 261.13, 173.18, 258.39, 175.92, 257.02, 173.18, 256.47, 171.53, 254.28, 167.69, 256.74, 163.85, 257.84, 162.21, 258.66, 158.37, 258.66, 158.09, 258.12, 155.07, 257.29, 149.86]], "area": 1325.4673000000005, "iscrowd": 0, "image_id": 459794, "bbox": [254.28, 115.58, 40.04, 60.34], "category_id": 64, "id": 25749}, {"segmentation": [[317.19, 220.59, 326.44, 252.72, 332.77, 254.67, 343.97, 255.65, 355.17, 254.67, 361.99, 254.67, 362.96, 254.19, 361.99, 250.78, 363.93, 240.55, 367.83, 222.05, 373.19, 207.93, 358.09, 204.04, 349.82, 202.58, 343.62, 203.73, 329.01, 203.73, 324.14, 201.78, 322.68, 200.81, 324.14, 203.24, 325.12, 203.73, 322.2, 204.7, 317.33, 204.22, 315.87, 205.68, 312.46, 204.7, 311.97, 207.14, 313.43, 209.09, 308.56, 211.52, 306.62, 215.9, 308.08, 215.9, 311.97, 215.42, 312.46, 214.93, 313.43, 220.77, 316.35, 224.18, 316.84, 223.69, 317.33, 218.82]], "area": 2446.6398999999997, "iscrowd": 0, "image_id": 95281, "bbox": [306.62, 200.81, 66.57, 54.84], "category_id": 64, "id": 25762}, {"segmentation": [[144.55, 179.02, 134.98, 194.33, 101.47, 259.43, 171.36, 269.96, 198.16, 237.41, 223.05, 227.84, 273.79, 203.91, 339.84, 170.4, 378.13, 150.3, 384.84, 176.14, 399.2, 158.91, 412.6, 176.14, 414.51, 168.49, 436.53, 170.4, 415.47, 145.51, 453.76, 156.04, 449.93, 139.77, 475.78, 138.81, 462.38, 101.47, 475.78, 88.07, 481.52, 75.63, 454.72, 66.05, 482.48, 55.52, 499.71, 23.93, 527.47, 17.23, 527.47, 4.79, 379.09, 2.87, 374.31, 10.53, 356.12, 14.36, 355.16, 30.63, 335.06, 22.02, 302.51, 13.4, 290.06, 18.19, 272.83, 12.44, 262.3, 19.15, 251.77, 17.23, 250.81, 9.57, 232.62, 13.4, 184.76, 0.0, 153.17, 9.57, 154.13, 20.1, 129.24, 28.72, 119.66, 44.99, 89.99, 60.31, 144.55, 92.86, 108.18, 96.69, 134.02, 122.53, 114.88, 134.98, 137.85, 144.55, 123.49, 165.61, 153.17, 157.0, 149.34, 173.27]], "area": 67035.16189999999, "iscrowd": 0, "image_id": 35322, "bbox": [89.99, 0.0, 437.48, 269.96], "category_id": 64, "id": 26183}, {"segmentation": [[592.97, 168.8, 595.74, 185.99, 609.05, 185.99, 609.61, 185.43, 610.72, 166.03, 616.26, 163.25, 620.14, 154.38, 614.04, 153.83, 614.04, 149.39, 604.62, 148.84, 590.75, 153.27, 586.87, 155.49, 584.65, 158.26, 589.64, 162.14]], "area": 757.5962999999999, "iscrowd": 0, "image_id": 537924, "bbox": [584.65, 148.84, 35.49, 37.15], "category_id": 64, "id": 27055}, {"segmentation": [[343.42, 210.47, 342.54, 214.89, 351.82, 215.77, 353.14, 206.05, 349.61, 203.84, 352.26, 195.44, 359.33, 188.37, 350.49, 188.37, 344.3, 191.02, 342.09, 189.26, 340.77, 198.1, 339.44, 201.19, 342.98, 204.28]], "area": 279.9928999999998, "iscrowd": 0, "image_id": 302680, "bbox": [339.44, 188.37, 19.89, 27.4], "category_id": 64, "id": 27189}, {"segmentation": [[567.15, 176.73, 569.88, 188.73, 582.7, 187.64, 583.52, 174.82, 581.07, 174.0, 576.43, 159.81, 574.25, 159.81, 572.61, 164.72, 571.24, 172.91]], "area": 297.4587500000001, "iscrowd": 0, "image_id": 537924, "bbox": [567.15, 159.81, 16.37, 28.92], "category_id": 64, "id": 27728}, {"segmentation": [[317.0, 301.13, 314.16, 295.43, 309.17, 291.16, 314.87, 276.22, 319.85, 269.1, 323.41, 279.07, 334.79, 276.93, 337.64, 276.93, 337.64, 281.91, 335.51, 294.72, 324.83, 302.55, 321.98, 303.26, 316.29, 296.14]], "area": 567.2184999999994, "iscrowd": 0, "image_id": 537924, "bbox": [309.17, 269.1, 28.47, 34.16], "category_id": 64, "id": 28098}, {"segmentation": [[188.23, 169.2, 188.23, 169.2, 339.76, 116.12, 358.32, 158.38, 322.75, 161.99, 319.15, 171.27, 307.81, 175.39, 303.17, 198.58, 291.31, 214.56, 271.73, 238.78, 225.86, 257.86, 225.86, 257.86]], "area": 11279.882350000002, "iscrowd": 0, "image_id": 541994, "bbox": [188.23, 116.12, 170.09, 141.74], "category_id": 72, "id": 28454}, {"segmentation": [[132.31, 175.55, 155.85, 174.88, 155.51, 164.79, 214.36, 163.78, 214.02, 118.05, 215.37, 57.52, 211.0, 54.49, 64.38, 59.54, 60.68, 60.54, 62.7, 94.17, 68.08, 163.11, 68.42, 166.81, 126.59, 164.12, 129.28, 164.12, 129.62, 174.2]], "area": 16478.095650000003, "iscrowd": 0, "image_id": 304587, "bbox": [60.68, 54.49, 154.69, 121.06], "category_id": 72, "id": 29723}, {"segmentation": [[231.22, 73.38, 255.44, 62.51, 273.15, 65.0, 275.63, 85.81, 274.39, 96.68, 272.84, 104.75, 261.65, 99.47, 254.82, 96.68, 230.91, 94.82]], "area": 1383.29335, "iscrowd": 0, "image_id": 542041, "bbox": [230.91, 62.51, 44.72, 42.24], "category_id": 72, "id": 30089}, {"segmentation": [[155.1, 183.44, 216.37, 167.16, 216.37, 184.4, 250.84, 205.46, 306.37, 204.5, 331.26, 181.52, 333.17, 155.67, 317.86, 143.23, 299.67, 140.35, 296.79, 139.4, 389.66, 103.02, 397.32, 5.36, 218.29, 3.45, 118.72, 1.53, 152.23, 189.18]], "area": 43063.73065, "iscrowd": 0, "image_id": 256611, "bbox": [118.72, 1.53, 278.6, 203.93], "category_id": 72, "id": 30460}, {"segmentation": [[324.44, 157.79, 416.29, 161.17, 412.92, 237.85, 322.75, 227.74]], "area": 6689.463000000003, "iscrowd": 0, "image_id": 118550, "bbox": [322.75, 157.79, 93.54, 80.06], "category_id": 72, "id": 30918}, {"segmentation": [[553.68, 219.68, 558.01, 167.67, 640.0, 167.67, 638.19, 233.77, 575.35, 228.35, 555.85, 222.93]], "area": 5177.449400000004, "iscrowd": 0, "image_id": 53361, "bbox": [553.68, 167.67, 86.32, 66.1], "category_id": 72, "id": 31236}, {"segmentation": [[105.58, 480.0, 92.52, 263.4, 104.49, 250.34, 152.38, 254.69, 157.82, 306.94, 169.8, 341.77, 188.3, 361.36, 200.27, 370.07, 204.63, 354.83, 195.92, 339.59, 189.39, 324.35, 188.3, 312.38, 185.03, 302.59, 191.56, 302.59, 215.51, 313.47, 224.22, 320.0, 279.73, 334.15, 298.23, 328.71, 349.39, 306.94, 385.31, 320.0, 407.07, 316.73, 419.05, 311.29, 452.79, 312.38, 640.0, 348.3, 636.73, 478.91, 108.84, 478.91]], "area": 87110.36655000002, "iscrowd": 0, "image_id": 563869, "bbox": [92.52, 250.34, 547.48, 229.66], "category_id": 72, "id": 31294}, {"segmentation": [[1.08, 162.88, 88.45, 158.56, 94.92, 277.21, 94.92, 292.31, 51.78, 295.55, 61.48, 314.97, 1.08, 323.6]], "area": 13552.109850000003, "iscrowd": 0, "image_id": 359098, "bbox": [1.08, 158.56, 93.84, 165.04], "category_id": 72, "id": 31424}, {"segmentation": [[428.0, 152.03, 483.78, 102.98, 595.35, 124.14, 540.53, 191.46]], "area": 8194.94275, "iscrowd": 0, "image_id": 178436, "bbox": [428.0, 102.98, 167.35, 88.48], "category_id": 72, "id": 31915}, {"segmentation": [[2.15, 89.97, 73.18, 85.67, 79.64, 91.05, 91.48, 88.9, 92.56, 272.93, 79.64, 277.24, 77.49, 272.93, 68.88, 283.7, 2.15, 289.08]], "area": 17583.275400000002, "iscrowd": 0, "image_id": 50885, "bbox": [2.15, 85.67, 90.41, 203.41], "category_id": 72, "id": 32064}, {"segmentation": [[397.13, 320.29, 521.97, 384.86, 573.63, 369.79, 581.17, 338.58, 586.55, 315.98, 590.85, 254.64, 573.63, 234.19, 565.02, 221.27, 529.51, 208.36, 507.98, 211.59, 503.68, 204.05, 438.03, 182.53, 412.2, 194.37, 398.21, 318.13]], "area": 28467.340499999995, "iscrowd": 0, "image_id": 256465, "bbox": [397.13, 182.53, 193.72, 202.33], "category_id": 72, "id": 32785}, {"segmentation": [[142.43, 335.15, 97.39, 309.78, 87.55, 304.09, 83.41, 208.82, 87.04, 197.95, 143.99, 203.65, 148.13, 339.29]], "area": 7230.208350000001, "iscrowd": 0, "image_id": 418505, "bbox": [83.41, 197.95, 64.72, 141.34], "category_id": 72, "id": 32801}, {"segmentation": [[322.17, 230.24, 420.41, 250.46, 417.52, 295.25, 403.07, 266.35, 384.29, 260.57, 382.84, 363.15, 329.39, 337.14]], "area": 7397.594799999999, "iscrowd": 0, "image_id": 363326, "bbox": [322.17, 230.24, 98.24, 132.91], "category_id": 72, "id": 32877}, {"segmentation": [[10.89, 317.19, 14.52, 270.74, 18.87, 258.4, 82.75, 236.62, 85.65, 224.29, 111.05, 224.29, 170.57, 250.42, 209.04, 269.29, 209.77, 319.37, 151.7, 318.64, 87.1, 319.37, 31.94, 318.64, 5.81, 318.64]], "area": 14706.66505, "iscrowd": 0, "image_id": 83968, "bbox": [5.81, 224.29, 203.96, 95.08], "category_id": 72, "id": 32904}, {"segmentation": [[446.68, 448.79, 311.84, 478.29, 37.93, 478.29, 31.6, 18.96, 543.6, 77.96, 543.6, 162.24, 499.36, 111.67, 471.97, 158.02, 423.51, 182.26, 395.06, 247.57, 404.54, 277.07, 348.71, 225.45, 320.26, 180.15, 310.78, 183.31, 307.62, 201.22, 301.3, 228.61, 309.73, 246.52, 344.49, 282.34, 373.99, 322.37, 402.44, 343.44, 420.35, 356.08, 428.77, 377.15, 438.26, 400.33, 443.52, 418.24, 451.95, 425.61, 447.74, 449.84]], "area": 169369.67375000007, "iscrowd": 0, "image_id": 396039, "bbox": [31.6, 18.96, 512.0, 459.33], "category_id": 72, "id": 32992}, {"segmentation": [[138.61, 224.74, 217.73, 243.93, 228.03, 347.86, 221.01, 346.46, 165.3, 321.65, 138.15, 319.77, 133.93, 225.67]], "area": 8263.159049999997, "iscrowd": 0, "image_id": 416047, "bbox": [133.93, 224.74, 94.1, 123.12], "category_id": 72, "id": 33485}, {"segmentation": [[259.72, 214.11, 260.16, 213.68, 263.78, 213.35, 270.59, 213.68, 276.08, 213.79, 290.58, 213.46, 296.4, 214.11, 298.05, 214.11, 299.14, 224.0, 299.36, 226.42, 299.36, 232.68, 299.25, 251.46, 297.94, 252.66, 271.69, 252.33, 270.59, 251.24, 270.7, 246.29, 270.37, 243.33, 270.04, 241.9, 269.49, 240.47, 268.83, 238.28, 269.05, 234.98, 269.27, 232.13, 269.49, 230.59, 266.86, 230.48, 266.53, 232.24, 266.75, 233.99, 266.64, 237.4, 266.64, 239.26, 266.64, 240.8, 266.53, 241.46, 266.42, 243.22, 266.53, 244.32, 266.75, 245.09, 266.75, 245.31, 266.97, 249.59, 266.42, 252.11, 265.32, 252.33, 264.0, 252.44, 262.46, 252.77, 259.94, 252.88, 259.28, 251.67, 259.28, 250.36, 259.39, 221.58, 259.39, 216.2, 259.72, 214.44, 259.5, 214.55]], "area": 1473.3035500000008, "iscrowd": 0, "image_id": 84202, "bbox": [259.28, 213.35, 40.08, 39.53], "category_id": 72, "id": 34354}, {"segmentation": [[4.95, 121.73, 31.67, 104.91, 94.02, 166.27, 143.51, 135.59, 128.66, 74.23, 271.18, 9.9, 267.22, 2.97, 0.0, 1.98]], "area": 23007.99305, "iscrowd": 0, "image_id": 16082, "bbox": [0.0, 1.98, 271.18, 164.29], "category_id": 72, "id": 34379}, {"segmentation": [[1.76, 2.49, 186.65, 2.49, 190.17, 9.54, 216.58, 9.54, 223.62, 144.24, 199.85, 173.29, 147.91, 205.87, 1.76, 184.74]], "area": 40889.6491, "iscrowd": 0, "image_id": 308936, "bbox": [1.76, 2.49, 221.86, 203.38], "category_id": 72, "id": 34464}, {"segmentation": [[289.5, 196.0, 282.3, 64.4, 124.99, 72.62, 140.42, 216.57, 287.44, 207.31, 290.53, 190.86]], "area": 22091.7113, "iscrowd": 0, "image_id": 529350, "bbox": [124.99, 64.4, 165.54, 152.17], "category_id": 72, "id": 34500}, {"segmentation": [[482.98, 231.93, 548.72, 231.06, 547.84, 299.43, 481.22, 287.16]], "area": 4097.448000000001, "iscrowd": 0, "image_id": 37433, "bbox": [481.22, 231.06, 67.5, 68.37], "category_id": 72, "id": 34626}, {"segmentation": [[82.76, 378.34, 83.13, 378.34, 83.13, 378.34, 82.38, 377.58, 83.88, 332.54, 147.59, 338.57, 148.16, 379.46]], "area": 2808.1065999999983, "iscrowd": 0, "image_id": 371714, "bbox": [82.38, 332.54, 65.78, 46.92], "category_id": 72, "id": 34635}, {"segmentation": [[321.98, 435.46, 362.89, 364.21, 328.58, 328.58, 287.67, 394.56], [374.76, 476.37, 382.68, 294.27, 384.0, 265.24, 402.47, 265.24, 418.31, 321.98, 423.59, 329.9, 467.13, 344.41, 475.05, 490.89, 457.9, 512.0, 391.92, 514.64, 382.68, 479.01]], "area": 22082.948849999993, "iscrowd": 0, "image_id": 363326, "bbox": [287.67, 265.24, 187.38, 249.4], "category_id": 72, "id": 35695}, {"segmentation": [[351.87, 316.06, 400.16, 310.14, 405.09, 361.4, 354.83, 363.37, 350.88, 317.04]], "area": 2468.9502500000003, "iscrowd": 0, "image_id": 50885, "bbox": [350.88, 310.14, 54.21, 53.23], "category_id": 72, "id": 35951}, {"segmentation": [[56.39, 148.11, 56.57, 142.93, 55.53, 141.38, 53.12, 139.48, 51.39, 138.62, 48.11, 138.45, 45.53, 138.45, 42.77, 137.93, 43.63, 136.03, 47.42, 134.31, 52.25, 132.24, 54.67, 131.89, 57.08, 132.58, 60.02, 135.0, 62.95, 135.69, 63.12, 134.13, 64.67, 132.41, 67.26, 133.62, 66.92, 135.86, 70.02, 137.07, 72.95, 139.14, 75.02, 143.1, 77.61, 149.31, 76.58, 149.66, 73.99, 147.42, 67.26, 143.62, 63.29, 143.1, 61.05, 145.0, 60.36, 146.38, 58.64, 148.97, 57.26, 149.31, 56.57, 150.0, 56.57, 149.49]], "area": 265.1943999999999, "iscrowd": 0, "image_id": 95281, "bbox": [42.77, 131.89, 34.84, 18.11], "category_id": 16, "id": 36498}, {"segmentation": [[300.99, 201.89, 316.18, 192.3, 319.78, 173.51, 324.17, 160.32, 352.55, 155.53, 366.14, 152.33, 384.13, 161.12, 399.72, 159.12, 400.12, 149.93, 394.12, 147.53, 399.72, 144.33, 432.49, 144.73, 405.71, 137.94, 399.72, 133.94, 388.92, 137.54, 384.93, 147.93, 382.53, 146.33, 382.93, 139.54, 372.54, 130.34, 384.13, 122.75, 385.73, 119.95, 381.73, 118.35, 376.53, 119.95, 369.34, 121.15, 367.74, 110.36, 370.94, 97.17, 375.33, 84.38, 371.34, 77.98, 358.15, 68.79, 342.16, 67.19, 312.98, 68.39, 306.19, 68.79, 311.38, 72.39, 315.38, 72.79, 304.19, 74.39, 314.58, 79.18, 308.18, 81.18, 304.59, 82.78, 312.98, 84.78, 311.78, 87.58, 308.18, 87.58, 306.59, 92.77, 312.98, 90.77, 312.98, 93.97, 317.78, 97.97, 323.77, 99.57, 328.17, 99.97, 328.17, 109.96, 326.57, 114.36, 319.0, 121.78, 321.56, 127.94, 324.64, 128.45, 317.97, 129.99, 312.33, 130.5, 310.79, 136.14, 308.74, 139.73, 310.28, 144.86, 311.82, 145.89, 313.36, 148.97, 317.97, 153.58, 312.33, 154.61, 310.28, 159.23, 305.66, 168.46, 301.39, 174.02, 291.36, 171.23, 298.05, 177.92, 289.65, 178.96, 286.6, 182.34, 284.57, 185.73, 292.36, 185.73, 295.74, 182.0, 301.49, 178.62, 306.23, 171.51, 310.29, 167.45, 314.35, 161.02, 320.78, 154.59, 328.91, 152.22, 332.97, 151.2, 340.75, 153.57, 337.71, 154.59, 327.55, 155.6, 323.15, 156.62, 320.45, 158.65, 319.77, 167.79, 317.4, 176.25, 314.02, 187.76, 305.55, 186.74, 302.51, 186.74, 309.95, 190.13, 313.68, 190.13, 308.26, 191.82, 299.8, 198.93, 297.77, 202.31, 304.2, 198.93]], "area": 5957.016800000003, "iscrowd": 0, "image_id": 73727, "bbox": [284.57, 67.19, 147.92, 135.12], "category_id": 16, "id": 36519}, {"segmentation": [[107.34, 156.57, 110.2, 154.25, 111.56, 154.52, 111.83, 155.34, 110.47, 156.43, 110.33, 157.25, 111.01, 158.2, 110.61, 159.43, 109.79, 159.83, 108.02, 159.83, 106.25, 159.7, 105.16, 160.11, 104.89, 158.88, 103.66, 157.25, 101.07, 155.61, 100.26, 153.84, 101.35, 152.75, 102.98, 152.75, 103.93, 153.43, 104.89, 154.52, 106.11, 155.34, 106.66, 156.57, 107.47, 156.97]], "area": 42.08865000000007, "iscrowd": 0, "image_id": 409956, "bbox": [100.26, 152.75, 11.57, 7.36], "category_id": 16, "id": 36520}, {"segmentation": [[407.6, 133.81, 395.61, 119.71, 386.09, 109.48, 377.97, 104.9, 362.46, 104.19, 355.05, 107.72, 340.59, 106.31, 338.83, 97.84, 342.0, 87.62, 353.64, 86.91, 362.81, 85.85, 368.81, 80.56, 380.09, 72.45, 401.6, 72.45, 407.95, 78.09, 414.65, 84.44, 422.76, 86.56, 443.57, 89.38, 461.2, 93.96, 492.94, 107.36, 523.62, 121.82, 550.42, 139.46, 582.51, 151.45, 602.26, 154.27, 592.39, 160.97, 577.93, 156.74, 562.41, 153.56, 546.54, 154.27, 526.44, 154.97, 506.34, 157.44, 497.17, 161.32, 493.65, 169.43, 491.88, 171.55, 495.06, 178.95, 493.29, 184.95, 488.71, 190.94, 484.12, 187.06, 481.65, 179.31, 481.3, 174.72, 481.3, 169.08, 486.94, 168.02, 494.0, 158.85, 485.18, 159.56, 475.31, 159.2, 472.84, 158.15, 471.43, 161.67, 468.61, 169.43, 458.03, 171.9, 453.09, 171.19, 449.92, 172.96, 452.74, 179.66, 452.03, 185.65, 443.22, 188.47, 441.45, 187.42, 438.63, 179.66, 433.69, 168.73, 445.68, 168.73, 456.62, 166.26, 460.5, 163.44, 458.38, 159.91, 450.62, 159.2, 444.63, 155.32, 430.87, 150.74, 421.35, 142.28, 406.54, 132.05]], "area": 10400.857350000002, "iscrowd": 0, "image_id": 516914, "bbox": [338.83, 72.45, 263.43, 118.49], "category_id": 16, "id": 36713}, {"segmentation": [[92.78, 138.14, 94.96, 138.07, 95.9, 137.85, 96.77, 137.67, 97.17, 137.41, 96.92, 137.22, 96.14, 137.01, 95.93, 135.67, 95.43, 134.94, 94.61, 134.61, 93.88, 134.73, 93.77, 135.46, 93.3, 135.88, 91.58, 135.86, 90.38, 135.88, 90.12, 136.44, 91.23, 136.91, 92.07, 137.64]], "area": 13.386349999999949, "iscrowd": 0, "image_id": 409956, "bbox": [90.12, 134.61, 7.05, 3.53], "category_id": 16, "id": 38036}, {"segmentation": [[66.21, 73.1, 64.83, 169.66, 88.28, 200.0, 117.24, 223.45, 143.45, 245.52, 157.24, 267.59, 153.1, 282.76, 124.14, 286.9, 114.48, 292.41, 102.07, 302.07, 97.93, 307.59, 82.76, 317.24, 86.9, 321.38, 111.72, 320.0, 115.86, 318.62, 131.03, 321.38, 154.48, 324.14, 172.41, 321.38, 188.97, 318.62, 193.1, 317.24, 194.48, 339.31, 191.72, 351.72, 191.72, 369.66, 194.48, 394.48, 197.24, 412.41, 201.38, 435.86, 209.66, 467.59, 220.69, 485.52, 238.62, 518.62, 263.45, 537.93, 293.79, 558.62, 306.21, 571.03, 308.97, 566.9, 304.83, 542.07, 300.69, 528.28, 300.69, 500.69, 303.45, 482.76, 302.07, 456.55, 299.31, 438.62, 291.03, 401.38, 288.28, 391.72, 285.52, 364.14, 285.52, 346.21, 288.28, 321.38, 297.93, 324.14, 321.38, 328.28, 340.69, 337.93, 366.9, 344.83, 394.48, 346.21, 412.41, 344.83, 412.41, 340.69, 394.48, 337.93, 351.72, 326.9, 346.21, 322.76, 346.21, 320.0, 351.72, 315.86, 360.0, 311.72, 388.97, 315.86, 413.79, 321.38, 413.79, 313.1, 390.34, 308.97, 343.45, 297.93, 324.14, 299.31, 311.72, 297.93, 293.79, 291.03, 270.34, 281.38, 255.17, 270.34, 238.62, 251.03, 227.59, 240.0, 193.1, 215.17, 182.07, 205.52, 172.41, 187.59, 157.24, 169.66, 117.24, 129.66, 110.34, 108.97]], "area": 44891.949499999995, "iscrowd": 0, "image_id": 477927, "bbox": [64.83, 73.1, 348.96, 497.93], "category_id": 16, "id": 38071}, {"segmentation": [[132.17, 158.19, 133.84, 158.24, 135.25, 156.92, 135.35, 154.7, 137.68, 156.22, 138.08, 153.74, 134.34, 153.69, 133.84, 154.75, 132.88, 154.7, 132.72, 156.01, 131.56, 154.6, 129.74, 154.4, 129.54, 155.86]], "area": 21.41070000000005, "iscrowd": 0, "image_id": 409956, "bbox": [129.54, 153.69, 8.54, 4.55], "category_id": 16, "id": 38342}, {"segmentation": [[66.76, 207.22, 65.84, 206.94, 64.19, 206.76, 62.63, 206.76, 62.36, 205.75, 59.51, 205.66, 58.87, 204.37, 60.61, 203.36, 64.65, 201.9, 65.75, 201.07, 67.4, 200.33, 69.15, 201.16, 69.61, 198.68, 69.51, 195.29, 69.97, 194.19, 70.98, 193.36, 73.0, 193.45, 74.29, 194.92, 75.66, 196.57, 74.74, 196.94, 72.17, 196.57, 72.17, 200.06, 74.19, 201.62, 75.02, 203.64, 74.74, 205.75, 73.18, 206.67, 70.98, 206.94, 69.61, 206.94, 69.97, 208.59, 71.62, 208.69, 70.8, 209.05, 68.69, 209.05, 66.39, 209.24, 66.03, 208.78, 66.3, 207.4]], "area": 111.49554999999988, "iscrowd": 0, "image_id": 130647, "bbox": [58.87, 193.36, 16.79, 15.88], "category_id": 16, "id": 38385}, {"segmentation": [[320.75, 174.69, 329.15, 179.39, 337.21, 198.2, 350.64, 232.11, 366.09, 261.33, 397.32, 287.53, 401.69, 289.88, 403.37, 292.56, 404.04, 301.3, 405.04, 313.72, 403.7, 320.1, 402.69, 325.81, 390.27, 336.22, 384.56, 337.9, 376.16, 336.56, 369.78, 335.55, 368.1, 336.56, 368.78, 337.56, 372.13, 337.56, 374.15, 339.24, 362.39, 340.59, 358.03, 344.95, 356.69, 348.65, 357.69, 347.3, 359.04, 345.29, 363.74, 346.97, 385.9, 346.97, 387.25, 346.63, 387.25, 350.66, 387.92, 352.01, 390.6, 349.32, 395.64, 346.63, 398.66, 344.95, 404.37, 344.28, 409.75, 345.62, 411.76, 345.96, 415.46, 344.95, 417.81, 344.95, 419.49, 345.62, 419.82, 343.61, 418.14, 340.92, 412.77, 339.58, 400.34, 339.24, 396.31, 339.24, 408.74, 330.18, 421.5, 315.06, 423.18, 302.64, 423.52, 301.63, 428.89, 307.0, 427.55, 311.03, 430.9, 315.4, 437.62, 322.45, 437.96, 329.84, 438.29, 335.55, 439.3, 339.92, 438.63, 341.26, 433.93, 348.31, 430.9, 353.01, 427.88, 354.69, 415.46, 353.01, 408.74, 353.35, 405.72, 356.04, 405.72, 358.05, 406.39, 357.38, 408.74, 356.04, 413.1, 358.39, 422.84, 359.73, 412.1, 361.07, 406.05, 362.75, 403.03, 365.77, 403.03, 367.79, 406.05, 366.45, 408.4, 365.77, 412.1, 366.11, 416.8, 366.11, 431.58, 363.42, 434.26, 362.08, 435.27, 362.42, 435.27, 367.79, 439.64, 370.14, 440.98, 365.77, 440.64, 361.07, 440.31, 358.05, 445.34, 358.05, 448.7, 357.04, 454.08, 357.04, 454.41, 355.03, 448.7, 353.68, 443.67, 353.68, 441.31, 352.01, 440.98, 348.98, 447.7, 336.89, 454.08, 325.14, 452.4, 314.39, 453.07, 310.7, 457.1, 308.35, 463.48, 306.67, 472.88, 304.32, 482.29, 303.31, 486.99, 303.98, 491.69, 304.99, 496.73, 304.32, 508.82, 298.61, 512.51, 298.61, 515.53, 294.91, 521.91, 291.56, 529.64, 292.56, 545.42, 291.89, 555.5, 292.9, 560.2, 293.24, 566.58, 296.59, 586.06, 299.28, 600.83, 302.3, 607.55, 303.65, 609.9, 299.62, 610.57, 298.61, 609.57, 294.91, 603.86, 290.21, 609.23, 288.87, 605.54, 285.51, 600.83, 282.82, 581.69, 280.81, 587.06, 279.13, 587.74, 275.44, 586.39, 272.75, 583.71, 270.4, 581.69, 272.41, 579.34, 272.41, 579.34, 270.06, 580.68, 267.04, 578.0, 265.7, 573.3, 266.03, 564.56, 267.38, 559.19, 264.35, 552.81, 257.64, 539.71, 252.94, 527.62, 250.58, 520.57, 246.89, 506.13, 237.82, 472.21, 222.71, 453.74, 211.96, 429.9, 199.87, 421.84, 193.49, 403.03, 179.39, 393.29, 172.0, 388.59, 170.66, 381.2, 166.96, 372.81, 165.28, 364.41, 159.57, 358.03, 153.53, 349.97, 144.8, 334.86, 135.4, 328.14, 133.72, 324.45, 133.38, 316.05, 136.07, 312.02, 137.75, 306.31, 141.44, 302.28, 146.48, 299.93, 149.84, 299.26, 153.53, 299.93, 161.93, 300.94, 165.28, 299.59, 167.63, 297.92, 178.05, 298.25, 183.42, 298.59, 186.44, 304.3, 181.4, 315.04, 176.03]], "area": 23147.576199999996, "iscrowd": 0, "image_id": 63017, "bbox": [297.92, 133.38, 312.65, 236.76], "category_id": 16, "id": 38489}, {"segmentation": [[135.13, 263.29, 176.71, 241.75, 213.84, 209.08, 254.67, 176.42, 282.15, 161.57, 320.01, 154.88, 345.26, 178.64, 377.93, 186.07, 383.12, 172.7, 367.53, 153.4, 374.21, 130.38, 347.48, 132.61, 318.53, 125.18, 296.25, 119.24, 270.27, 118.5, 253.93, 128.9, 240.57, 133.35, 234.63, 140.78, 222.0, 154.14, 190.82, 171.22, 173.0, 197.21, 128.45, 264.03, 135.88, 263.29]], "area": 10504.120549999996, "iscrowd": 0, "image_id": 572717, "bbox": [128.45, 118.5, 254.67, 145.53], "category_id": 16, "id": 38794}, {"segmentation": [[335.16, 317.57, 340.5, 315.39, 344.21, 314.08, 347.05, 312.22, 349.55, 310.15, 349.77, 307.97, 349.99, 306.66, 351.52, 305.57, 352.5, 305.9, 353.48, 306.66, 353.48, 308.41, 354.03, 311.35, 354.03, 313.2, 353.26, 314.95, 352.28, 316.91, 350.86, 318.55, 349.88, 318.98, 349.77, 319.97, 349.66, 320.4, 347.37, 320.51, 347.15, 320.18, 346.83, 318.66, 343.34, 318.0, 340.61, 318.0, 337.99, 318.0]], "area": 104.36785000000002, "iscrowd": 0, "image_id": 67082, "bbox": [335.16, 305.57, 18.87, 14.94], "category_id": 16, "id": 38902}, {"segmentation": [[0.74, 305.7, 7.19, 311.46, 10.33, 312.16, 12.07, 314.25, 13.12, 315.82, 13.47, 318.78, 11.03, 320.0, 11.03, 320.0, 5.45, 324.36, 5.45, 324.36, 13.82, 321.23, 16.08, 318.78, 15.91, 314.95, 16.61, 313.73, 18.0, 314.25, 18.18, 315.3, 18.35, 317.04, 17.83, 319.48, 16.78, 322.62, 16.26, 322.97, 17.83, 323.32, 19.4, 320.0, 20.27, 316.34, 20.27, 314.42, 27.42, 315.12, 27.42, 315.12, 32.13, 313.55, 34.74, 315.12, 36.84, 315.12, 36.84, 315.12, 38.4, 314.6, 41.19, 316.17, 42.76, 317.21, 43.99, 317.74, 42.76, 315.47, 40.32, 312.85, 40.15, 310.94, 38.4, 310.06, 36.66, 309.37, 36.66, 309.37, 34.57, 309.72, 33.17, 308.32, 29.34, 305.18, 26.2, 303.79, 21.14, 302.91, 12.6, 299.43, 9.28, 298.55, 6.49, 295.07, 3.35, 294.37, 0.74, 293.67, 0.0, 293.85, 0.0, 293.85, 0.91, 305.36]], "area": 489.0186999999998, "iscrowd": 0, "image_id": 423842, "bbox": [0.0, 293.67, 43.99, 30.69], "category_id": 16, "id": 38971}, {"segmentation": [[498.58, 153.03, 498.58, 153.03, 501.68, 117.94, 501.68, 105.55, 528.52, 105.55, 544.0, 126.19, 539.87, 138.58, 539.87, 138.58, 572.9, 155.1, 576.0, 179.87, 560.52, 204.65, 537.81, 232.52, 526.45, 243.87, 526.45, 243.87, 532.65, 267.61, 534.71, 285.16, 520.26, 286.19, 516.13, 276.9, 519.23, 261.42, 514.06, 254.19, 483.1, 256.26, 477.94, 265.55, 470.71, 275.87, 442.84, 273.81, 446.97, 263.48, 457.29, 255.23, 443.87, 250.06, 405.68, 248.0, 421.16, 229.42, 448.0, 201.55, 452.13, 189.16, 458.32, 172.65, 477.94, 157.16, 477.94, 157.16]], "area": 14549.13379999999, "iscrowd": 0, "image_id": 542173, "bbox": [405.68, 105.55, 170.32, 180.64], "category_id": 16, "id": 39061}, {"segmentation": [[3.13, 294.15, 0.36, 292.93, 0.13, 291.27, 0.36, 289.39, 0.91, 287.72, 1.46, 285.73, 2.79, 282.96, 2.79, 282.18, 2.68, 275.97, 1.13, 275.75, 0.36, 275.42, 0.36, 272.76, 1.13, 271.98, 2.91, 271.65, 4.35, 271.54, 5.57, 273.2, 6.56, 275.86, 6.78, 278.19, 7.12, 280.41, 8.67, 281.96, 11.0, 282.62, 13.66, 282.74, 15.98, 283.73, 19.31, 285.51, 19.31, 282.62, 18.65, 280.52, 18.65, 279.19, 20.31, 278.86, 24.08, 278.3, 28.07, 278.19, 30.95, 278.86, 44.14, 284.73, 52.34, 288.83, 52.12, 289.72, 51.01, 289.94, 50.24, 289.94, 50.35, 290.05, 51.34, 291.38, 52.12, 291.71, 52.56, 292.27, 52.56, 292.71, 51.9, 293.82, 51.9, 294.82, 51.57, 295.93, 50.24, 296.37, 49.9, 296.37, 49.24, 296.7, 46.25, 296.48, 45.69, 296.37, 43.7, 296.37, 41.48, 296.37, 38.26, 296.37, 38.04, 296.92, 37.38, 300.91, 36.27, 304.24, 34.94, 305.9, 33.83, 306.57, 32.94, 306.68, 31.95, 306.46, 30.51, 306.68, 29.06, 307.9, 26.96, 307.67, 25.19, 307.67, 20.2, 308.34, 19.09, 305.57, 17.76, 303.8, 17.76, 303.8, 15.21, 301.25, 12.22, 299.92, 10.11, 299.03, 8.67, 297.48, 7.34, 296.04, 6.34, 295.26, 3.68, 293.6, 2.24, 293.04]], "area": 1002.7005500000001, "iscrowd": 0, "image_id": 423842, "bbox": [0.13, 271.54, 52.43, 36.8], "category_id": 16, "id": 39480}, {"segmentation": [[278.24, 397.62, 285.58, 376.49, 299.36, 362.72, 303.95, 351.7, 312.22, 335.17, 322.32, 328.74, 318.64, 309.46, 318.64, 295.69, 323.23, 288.34, 338.85, 276.4, 361.8, 279.16, 361.8, 290.18, 366.39, 301.2, 374.66, 317.72, 383.84, 335.17, 391.19, 360.88, 391.19, 381.09, 390.27, 407.72, 370.98, 415.98, 315.89, 416.9, 298.44, 422.41, 278.24, 415.98, 277.32, 396.7]], "area": 10858.6642, "iscrowd": 0, "image_id": 503212, "bbox": [277.32, 276.4, 113.87, 146.01], "category_id": 16, "id": 39963}, {"segmentation": [[483.66, 205.37, 495.56, 205.37, 504.49, 206.11, 520.12, 213.55, 540.21, 226.95, 546.9, 229.92, 545.42, 213.55, 555.09, 198.67, 552.11, 191.23, 545.42, 188.25, 541.69, 191.23, 541.69, 174.12, 548.39, 154.03, 564.76, 148.82, 581.88, 134.68, 587.83, 119.05, 587.83, 112.36, 581.13, 109.38, 564.02, 114.59, 540.95, 128.73, 527.56, 136.91, 507.47, 162.95, 500.77, 174.12, 486.63, 165.19, 475.47, 157.75, 459.85, 159.98, 461.33, 169.65, 471.75, 175.6, 482.17, 182.3, 487.38, 183.79, 468.77, 200.16, 471.75, 202.39, 476.22, 203.88, 488.12, 204.62]], "area": 5625.2002500000035, "iscrowd": 0, "image_id": 572717, "bbox": [459.85, 109.38, 127.98, 120.54], "category_id": 16, "id": 40144}, {"segmentation": [[166.33, 159.32, 164.51, 157.49, 163.63, 156.47, 162.97, 155.89, 162.24, 155.3, 161.37, 155.52, 160.78, 155.52, 160.42, 155.45, 160.05, 155.74, 159.62, 156.18, 159.47, 156.32, 158.96, 156.69, 158.81, 156.61, 157.94, 156.54, 157.65, 155.96, 157.57, 155.16, 157.5, 154.79, 157.94, 154.21, 158.67, 153.84, 159.98, 153.4, 160.57, 153.48, 162.1, 153.62, 162.75, 153.55, 163.05, 153.26, 163.63, 152.67, 164.73, 152.67, 164.65, 153.33, 165.31, 155.08, 166.84, 156.03, 167.72, 158.07, 168.01, 158.95, 167.64, 159.39, 166.77, 159.61, 166.11, 159.39]], "area": 28.78550000000002, "iscrowd": 0, "image_id": 409956, "bbox": [157.5, 152.67, 10.51, 6.94], "category_id": 16, "id": 40268}, {"segmentation": [[461.08, 249.97, 469.53, 234.89, 475.56, 216.19, 490.04, 205.33, 511.15, 200.5, 547.42, 208.21, 586.42, 230.5, 610.7, 245.62, 636.17, 275.87, 634.98, 283.83, 631.4, 285.82, 630.6, 291.39, 630.6, 296.56, 630.2, 298.55, 629.41, 303.33, 629.01, 308.5, 632.19, 318.85, 629.81, 325.22, 634.98, 343.92, 640.0, 353.48, 640.0, 426.71, 496.88, 426.71, 493.69, 417.55, 487.32, 408.4, 484.14, 400.84, 479.36, 392.88, 478.17, 386.11, 477.37, 381.33, 462.25, 372.18, 452.7, 369.39, 441.16, 356.26, 436.38, 341.54, 424.44, 345.12, 419.67, 345.12, 408.52, 338.75, 407.73, 336.76, 410.51, 336.76, 414.49, 333.97, 428.02, 337.56, 433.99, 333.58, 426.03, 325.62, 421.66, 321.64, 425.24, 317.66, 411.31, 312.08, 403.35, 308.1, 394.19, 297.36, 394.19, 291.39, 402.95, 297.76, 414.09, 302.53, 426.83, 307.71, 433.6, 307.71, 444.34, 312.08, 451.9, 322.43, 453.89, 342.73, 456.28, 345.91, 477.77, 355.86, 480.96, 337.56, 485.33, 318.05, 490.91, 302.13, 479.76, 299.35, 470.61, 292.58, 467.03, 287.81, 466.23, 284.22, 464.24, 278.25, 457.87, 270.69, 455.49, 264.32]], "area": 34763.6686, "iscrowd": 0, "image_id": 456262, "bbox": [394.19, 200.5, 245.81, 226.21], "category_id": 16, "id": 40658}, {"segmentation": [[209.89, 341.51, 215.08, 340.03, 218.04, 340.03, 222.49, 341.51, 226.93, 342.25, 227.67, 342.25, 219.52, 331.14, 212.11, 326.7, 206.19, 324.47, 201.0, 323.73, 194.33, 321.51, 189.15, 319.29, 186.18, 313.36, 184.7, 308.17, 186.18, 300.76, 186.92, 294.1, 185.44, 289.65, 171.36, 288.91, 149.88, 294.84, 140.99, 299.28, 139.51, 301.51, 139.51, 305.95, 149.14, 303.73, 158.77, 302.99, 160.25, 302.25, 161.73, 305.95, 159.51, 311.88, 158.77, 319.29, 158.77, 323.73, 152.84, 325.96, 148.4, 325.21, 143.95, 325.21, 139.51, 325.21, 137.28, 333.36, 138.02, 341.51, 143.95, 342.25, 151.36, 345.96, 158.03, 343.0, 166.18, 341.51, 176.55, 340.03, 185.44, 340.77, 188.4, 345.96, 201.74, 345.22, 206.93, 344.48, 208.41, 343.0, 209.89, 340.03, 211.37, 338.55]], "area": 2613.0917999999997, "iscrowd": 0, "image_id": 572717, "bbox": [137.28, 288.91, 90.39, 57.05], "category_id": 16, "id": 41074}, {"segmentation": [[68.13, 279.74, 38.19, 268.39, 24.77, 229.16, 22.71, 206.45, 34.06, 183.74, 64.0, 178.58, 78.45, 158.97, 97.03, 145.55, 116.65, 149.68, 129.03, 163.1, 125.94, 170.32, 138.32, 186.84, 137.29, 196.13, 121.81, 185.81, 111.48, 183.74, 110.45, 192.0, 124.9, 200.26, 141.42, 231.23, 137.29, 258.06, 124.9, 272.52, 117.68, 284.9, 111.48, 303.48, 110.45, 316.9, 113.55, 324.13, 112.52, 332.39, 92.9, 332.39, 78.45, 337.55, 74.32, 324.13, 55.74, 326.19, 75.35, 313.81, 57.81, 309.68, 85.68, 292.13, 77.42, 279.74, 61.94, 286.97]], "area": 13784.21125, "iscrowd": 0, "image_id": 63017, "bbox": [22.71, 145.55, 118.71, 192.0], "category_id": 16, "id": 41373}, {"segmentation": [[171.34, 141.19, 175.23, 139.64, 172.9, 137.3, 176.01, 135.74, 177.57, 134.96, 177.57, 142.75, 176.01, 142.75, 171.34, 141.97]], "area": 28.208749999999945, "iscrowd": 0, "image_id": 409956, "bbox": [171.34, 134.96, 6.23, 7.79], "category_id": 16, "id": 41416}, {"segmentation": [[286.08, 298.6, 292.3, 285.38, 296.19, 267.49, 301.63, 219.29, 310.19, 189.74, 339.73, 171.86, 363.06, 157.86, 373.17, 156.3, 372.39, 171.86, 370.06, 167.97, 360.73, 178.85, 328.07, 251.17, 328.07, 272.94, 309.41, 294.71, 303.96, 318.81, 297.74, 318.03]], "area": 4966.273499999999, "iscrowd": 0, "image_id": 503212, "bbox": [286.08, 156.3, 87.09, 162.51], "category_id": 16, "id": 41458}, {"segmentation": [[241.51, 158.25, 242.13, 159.9, 243.17, 160.31, 245.02, 160.31, 245.02, 160.31, 246.47, 158.46, 248.74, 157.22, 249.57, 157.22, 251.01, 157.22, 250.18, 159.69, 249.57, 159.69, 249.15, 160.52, 248.33, 160.73, 248.33, 161.35, 248.33, 161.55, 248.74, 161.96, 247.91, 163.2, 247.5, 163.2, 246.88, 162.79, 245.44, 163.0, 244.61, 164.03, 244.2, 164.44, 242.96, 164.85, 242.34, 164.03, 242.34, 162.38, 240.9, 160.73, 240.28, 160.11, 239.86, 159.08, 239.66, 158.25, 240.28, 157.63, 242.13, 157.84, 242.34, 158.46]], "area": 39.5605499999999, "iscrowd": 0, "image_id": 409956, "bbox": [239.66, 157.22, 11.35, 7.63], "category_id": 16, "id": 41791}, {"segmentation": [[402.58, 168.26, 409.81, 162.06, 426.32, 147.61, 452.13, 137.29, 473.81, 136.26, 496.52, 126.97, 523.35, 113.55, 540.9, 111.48, 527.48, 141.42, 566.71, 145.55, 524.39, 158.97, 498.58, 183.74, 486.19, 204.39, 500.65, 226.06, 494.45, 227.1, 486.19, 215.74, 466.58, 214.71, 427.35, 199.23, 401.55, 174.45, 396.39, 168.26]], "area": 7880.9851499999995, "iscrowd": 0, "image_id": 63017, "bbox": [396.39, 111.48, 170.32, 115.62], "category_id": 16, "id": 41929}, {"segmentation": [[355.06, 279.21, 367.05, 223.88, 368.9, 175.0, 374.43, 142.72, 373.51, 127.04, 382.73, 147.33, 400.25, 184.22, 413.17, 202.66, 413.17, 218.34, 396.57, 251.54, 399.33, 281.05, 399.33, 299.5, 419.62, 328.09, 450.06, 356.68, 474.03, 374.2, 473.11, 380.66, 465.73, 399.1, 459.28, 399.1, 448.21, 399.1, 440.83, 397.26, 427.0, 396.34, 424.23, 388.04, 410.4, 354.83, 403.94, 343.77, 401.18, 341.92, 380.89, 318.87, 372.59, 308.72, 357.83, 278.29]], "area": 9290.0911, "iscrowd": 0, "image_id": 503212, "bbox": [355.06, 127.04, 118.97, 272.06], "category_id": 16, "id": 42335}, {"segmentation": [[328.52, 165.36, 328.89, 161.68, 334.42, 161.68, 336.63, 163.52, 336.63, 166.1, 335.53, 165.73, 334.42, 163.89, 331.47, 163.52]], "area": 19.53455000000002, "iscrowd": 0, "image_id": 409956, "bbox": [328.52, 161.68, 8.11, 4.42], "category_id": 16, "id": 42344}, {"segmentation": [[285.04, 162.87, 284.37, 160.61, 282.57, 159.26, 280.31, 159.26, 279.64, 159.26, 279.86, 158.14, 281.89, 157.91, 284.14, 158.36, 286.17, 160.39, 287.07, 159.94, 289.55, 158.36, 290.68, 159.94, 288.2, 160.16, 287.97, 162.42]], "area": 19.731399999999965, "iscrowd": 0, "image_id": 409956, "bbox": [279.64, 157.91, 11.04, 4.96], "category_id": 16, "id": 42789}, {"segmentation": [[356.8, 160.25, 358.18, 159.3, 358.93, 160.25, 359.35, 160.89, 360.62, 160.46, 362.75, 159.61, 364.13, 160.04, 364.87, 161.52, 363.91, 161.74, 362.22, 161.31, 361.68, 161.84, 360.84, 163.01, 358.5, 163.01, 358.08, 160.78, 356.8, 160.78, 355.11, 160.89, 355.96, 160.57]], "area": 15.285849999999972, "iscrowd": 0, "image_id": 409956, "bbox": [355.11, 159.3, 9.76, 3.71], "category_id": 16, "id": 43119}, {"segmentation": [[0.0, 324.38, 5.1, 317.9, 10.76, 316.29, 18.85, 316.29, 35.03, 315.48, 42.31, 316.29, 58.48, 327.61, 75.47, 327.61, 94.88, 318.71, 106.2, 310.63, 117.53, 311.43, 131.28, 324.38, 133.7, 327.61, 119.14, 336.51, 108.63, 347.02, 100.54, 358.35, 100.54, 359.16, 111.87, 364.01, 112.67, 369.67, 117.53, 374.52, 102.97, 384.23, 94.07, 382.61, 99.73, 388.27, 86.79, 395.55, 58.48, 380.99, 38.26, 359.96, 30.98, 352.68, 15.61, 350.26, 4.29, 350.26, 0.0, 353.49, 1.06, 325.99]], "area": 6152.59015, "iscrowd": 0, "image_id": 503212, "bbox": [0.0, 310.63, 133.7, 84.92], "category_id": 16, "id": 43231}, {"segmentation": [[502.18, 178.45, 504.55, 172.13, 510.07, 176.08, 507.7, 174.5, 505.34, 173.71, 502.97, 178.45]], "area": 8.113299999999994, "iscrowd": 0, "image_id": 409956, "bbox": [502.18, 172.13, 7.89, 6.32], "category_id": 16, "id": 43740}, {"segmentation": [[13.63, 164.9, 14.18, 162.89, 14.53, 161.51, 15.25, 160.99, 16.02, 160.75, 16.5, 160.68, 16.91, 160.99, 17.23, 161.78, 17.71, 162.03, 17.99, 162.65, 18.68, 163.03, 18.71, 161.75, 18.75, 160.43, 18.61, 159.95, 17.26, 160.16, 16.71, 159.78, 16.71, 159.09, 16.29, 158.84, 16.08, 159.36, 16.29, 159.71, 15.39, 160.16, 14.35, 159.92, 13.42, 160.71, 12.66, 161.65, 13.28, 161.89, 13.49, 165.11]], "area": 11.057350000000023, "iscrowd": 0, "image_id": 409956, "bbox": [12.66, 158.84, 6.09, 6.27], "category_id": 16, "id": 43783}, {"segmentation": [[68.33, 159.5, 69.18, 158.96, 70.2, 158.52, 70.51, 158.07, 71.05, 157.8, 72.2, 157.76, 73.14, 157.63, 73.72, 157.23, 75.34, 157.17, 76.38, 156.65, 77.09, 156.4, 78.32, 155.68, 78.9, 156.4, 79.1, 157.04, 79.1, 157.69, 77.67, 158.01, 76.96, 158.34, 76.96, 158.4, 77.22, 158.72, 77.54, 158.79, 77.74, 159.24, 76.96, 159.37, 75.93, 159.5, 75.47, 159.57, 75.47, 159.89, 74.11, 159.5, 73.98, 159.37, 73.53, 159.5, 72.63, 159.37, 72.37, 159.5, 72.04, 159.57, 71.79, 159.63, 71.33, 159.7, 71.2, 159.76, 70.94, 159.95, 70.62, 160.08, 70.3, 160.08, 69.97, 160.08, 69.52, 160.15, 69.26, 160.21, 68.87, 160.15, 68.68, 160.08, 68.49, 159.5, 68.81, 159.44]], "area": 21.34014999999999, "iscrowd": 0, "image_id": 409956, "bbox": [68.33, 155.68, 10.77, 4.53], "category_id": 16, "id": 43996}, {"segmentation": [[222.15, 150.53, 222.82, 148.21, 224.31, 147.13, 223.89, 146.14, 222.73, 145.64, 224.22, 144.65, 226.05, 145.15, 226.05, 146.14, 227.04, 146.14, 228.53, 146.72, 229.61, 146.14, 228.7, 147.47, 228.78, 148.05, 229.69, 150.12, 228.37, 150.28, 226.88, 149.37, 226.63, 147.88, 225.47, 147.88, 225.38, 148.71, 224.39, 149.21, 224.31, 151.44, 223.48, 151.61, 222.65, 151.36, 222.24, 150.28]], "area": 24.294750000000022, "iscrowd": 0, "image_id": 409956, "bbox": [222.15, 144.65, 7.54, 6.96], "category_id": 16, "id": 44075}, {"segmentation": [[131.03, 291.02, 137.45, 286.44, 135.61, 268.11, 132.86, 247.04, 130.12, 236.04, 129.2, 225.05, 133.78, 216.8, 141.11, 202.14, 144.78, 195.72, 148.44, 192.06, 152.11, 184.73, 155.77, 179.23, 162.19, 171.9, 160.35, 181.06, 157.61, 184.73, 152.11, 203.05, 151.19, 221.38, 151.19, 243.37, 151.19, 269.03, 155.77, 286.44, 158.52, 299.27, 162.19, 305.68, 163.1, 315.76, 162.19, 329.5, 153.02, 330.42, 139.28, 328.59, 137.45, 315.76, 142.03, 303.85, 134.7, 291.94, 130.12, 291.02]], "area": 2655.6372, "iscrowd": 0, "image_id": 503212, "bbox": [129.2, 171.9, 33.9, 158.52], "category_id": 16, "id": 44443}, {"segmentation": [[384.02, 162.33, 390.68, 160.9, 395.9, 162.33, 393.05, 164.71, 389.73, 164.23]], "area": 24.414999999999903, "iscrowd": 0, "image_id": 409956, "bbox": [384.02, 160.9, 11.88, 3.81], "category_id": 16, "id": 44660}, {"segmentation": [[473.83, 312.22, 467.4, 314.05, 469.24, 306.71, 481.18, 292.01, 491.28, 277.32, 508.73, 270.89, 523.42, 282.83, 528.01, 302.11, 520.66, 310.38, 513.32, 322.32, 505.05, 331.5, 504.14, 342.52, 493.12, 357.21, 481.18, 366.39, 478.42, 356.29, 474.75, 343.44, 477.51, 326.91, 480.26, 314.97, 479.34, 312.22]], "area": 3041.254400000001, "iscrowd": 0, "image_id": 503212, "bbox": [467.4, 270.89, 60.61, 95.5], "category_id": 16, "id": 44693}, {"segmentation": [[548.74, 99.42, 556.57, 97.07, 548.74, 89.24, 548.74, 104.11]], "area": 39.854700000000236, "iscrowd": 0, "image_id": 409956, "bbox": [548.74, 89.24, 7.83, 14.87], "category_id": 16, "id": 44972}, {"segmentation": [[242.43, 418.74, 149.68, 421.49, 157.94, 389.35, 162.54, 355.37, 171.72, 347.11, 182.74, 328.74, 196.51, 316.81, 208.45, 309.46, 232.32, 309.46, 247.02, 297.52, 273.65, 295.69, 283.75, 295.69, 300.28, 320.48, 310.38, 337.01, 294.77, 368.23, 280.99, 393.94, 273.65, 411.39, 268.14, 403.12, 269.06, 365.48, 263.55, 349.86, 264.46, 337.93, 258.95, 340.68, 264.46, 374.66, 265.38, 409.55, 260.79, 420.57, 241.51, 420.57]], "area": 14051.389349999998, "iscrowd": 0, "image_id": 503212, "bbox": [149.68, 295.69, 160.7, 125.8], "category_id": 16, "id": 45061}, {"segmentation": [[446.32, 169.41, 444.54, 168.39, 443.52, 166.87, 442.76, 166.87, 444.54, 169.41, 445.3, 170.17, 445.3, 171.7, 448.1, 171.7, 449.88, 171.7, 449.62, 170.43, 450.64, 169.16, 451.15, 169.16, 451.66, 167.38, 451.66, 166.36, 449.62, 167.12, 448.61, 168.39, 448.35, 169.16, 446.83, 169.16]], "area": 20.150899999999904, "iscrowd": 0, "image_id": 409956, "bbox": [442.76, 166.36, 8.9, 5.34], "category_id": 16, "id": 45108}, {"segmentation": [[268.72, 269.64, 241.11, 273.32, 223.62, 281.6, 222.7, 276.08, 238.35, 265.03, 257.67, 251.23, 266.87, 242.95, 277.0, 237.43, 289.88, 237.43, 295.92, 240.12, 298.33, 242.52, 297.13, 256.94, 294.72, 273.36, 293.52, 279.77, 287.51, 272.96, 283.11, 270.16, 277.5, 267.36]], "area": 1586.9371000000006, "iscrowd": 0, "image_id": 503212, "bbox": [222.7, 237.43, 75.63, 44.17], "category_id": 16, "id": 45173}, {"segmentation": [[418.36, 271.94, 419.28, 270.12, 422.94, 259.14, 428.42, 238.11, 434.82, 226.23, 439.39, 211.6, 430.25, 188.74, 426.59, 182.34, 425.68, 170.45, 425.68, 164.97, 421.11, 173.2, 419.28, 183.25, 417.45, 189.65, 415.62, 195.14, 412.88, 205.2, 412.88, 210.68, 411.96, 217.08, 405.56, 228.06, 404.65, 235.37, 404.65, 239.03, 404.65, 243.6, 404.65, 245.43, 404.65, 250.91, 404.65, 252.74, 406.48, 254.57, 407.39, 261.89, 410.13, 265.54, 411.05, 271.94, 411.96, 278.35, 412.88, 284.75, 414.71, 290.23, 415.62, 293.89, 420.19, 268.29]], "area": 1985.3956500000008, "iscrowd": 0, "image_id": 503212, "bbox": [404.65, 164.97, 34.74, 128.92], "category_id": 16, "id": 45467}, {"segmentation": [[472.0, 370.07, 488.52, 359.05, 499.54, 348.03, 508.73, 337.93, 516.07, 337.01, 516.99, 332.42, 505.97, 337.01, 505.05, 330.58, 515.15, 320.48, 525.26, 306.71, 541.78, 309.46, 550.97, 315.89, 551.89, 336.09, 570.25, 333.34, 598.72, 329.66, 615.25, 320.48, 640.0, 322.32, 629.94, 346.19, 621.68, 378.33, 582.19, 390.27, 561.99, 399.45, 558.31, 402.21, 552.8, 413.23, 550.05, 419.65, 491.28, 421.49, 465.57, 422.41, 463.73, 410.47, 465.57, 392.11, 472.0, 382.0, 473.83, 370.98]], "area": 11974.951999999996, "iscrowd": 0, "image_id": 503212, "bbox": [463.73, 306.71, 176.27, 115.7], "category_id": 16, "id": 46122}, {"segmentation": [[556.39, 232.26, 585.29, 266.32, 579.1, 305.55, 636.9, 337.55, 515.1, 355.1, 232.26, 361.29, 202.32, 340.65, 201.29, 295.23, 187.87, 269.42, 458.32, 173.42, 480.0, 173.42, 482.06, 231.23, 471.74, 267.35, 497.55, 276.65, 510.97, 187.87, 557.42, 229.16]], "area": 53026.406, "iscrowd": 0, "image_id": 86229, "bbox": [187.87, 173.42, 449.03, 187.87], "category_id": 17, "id": 46451}, {"segmentation": [[463.4, 302.98, 496.24, 292.95, 496.24, 288.39, 501.71, 272.88, 517.22, 243.69, 519.96, 234.57, 526.34, 255.55, 529.99, 270.14, 530.9, 287.48, 540.94, 290.21, 546.41, 284.74, 549.15, 272.88, 545.5, 248.25, 543.67, 225.45, 544.59, 193.52, 546.41, 167.98, 548.24, 136.05, 548.24, 109.59, 541.85, 84.97, 534.55, 64.9, 520.87, 51.21, 498.06, 35.71, 485.29, 35.71, 465.22, 32.97, 443.33, 32.97, 408.67, 43.0, 363.97, 51.21, 334.78, 59.42, 299.2, 62.16, 276.4, 58.51, 259.98, 52.13, 247.21, 52.13, 235.35, 48.48, 234.44, 53.04, 219.84, 49.39, 206.16, 54.86, 191.56, 60.34, 184.27, 63.98, 176.97, 74.02, 171.49, 92.26, 176.97, 104.12, 178.79, 122.37, 191.56, 146.08, 211.63, 157.03, 228.05, 161.59, 228.96, 163.42, 213.46, 173.45, 231.7, 191.69, 249.03, 222.71, 249.03, 222.71, 257.24, 219.97, 261.8, 239.13, 283.7, 243.69, 290.99, 235.48, 300.12, 208.11, 310.15, 183.48, 333.87, 183.48, 363.06, 178.92, 394.99, 174.36, 424.18, 169.8, 428.74, 167.98, 445.16, 186.22, 448.81, 208.11, 446.98, 218.15, 443.33, 234.57, 436.95, 251.9, 436.95, 258.28, 417.79, 261.93, 413.23, 261.93, 414.14, 275.62, 427.82, 271.06, 431.47, 271.06, 435.12, 282.0, 441.51, 286.56, 452.45, 285.65, 457.01, 283.83, 459.75, 298.42, 461.58, 305.72]], "area": 60430.46014999997, "iscrowd": 0, "image_id": 517764, "bbox": [171.49, 32.97, 377.66, 272.75], "category_id": 17, "id": 47462}, {"segmentation": [[93.59, 239.83, 93.59, 228.82, 121.12, 239.83, 162.41, 237.08, 178.92, 224.69, 185.81, 237.08, 169.29, 264.6, 184.43, 296.26, 198.19, 325.16, 210.58, 374.71, 206.45, 414.62, 202.32, 444.9, 183.05, 464.17, 178.92, 465.55, 152.77, 464.17, 119.74, 465.55, 93.59, 466.92, 88.09, 450.41, 93.59, 429.76, 94.97, 425.63, 90.84, 385.72, 86.71, 381.59, 79.83, 355.44, 79.83, 349.94, 79.83, 310.02, 88.09, 285.25, 88.09, 272.86, 88.09, 253.59]], "area": 24865.632599999997, "iscrowd": 0, "image_id": 538843, "bbox": [79.83, 224.69, 130.75, 242.23], "category_id": 17, "id": 47521}, {"segmentation": [[0.0, 239.46, 12.9, 221.18, 22.58, 207.2, 65.59, 178.17, 100.0, 163.11, 166.67, 143.76, 179.57, 131.93, 216.13, 109.35, 258.06, 86.77, 283.87, 72.79, 292.47, 58.81, 308.6, 71.71, 324.73, 83.54, 340.86, 86.77, 354.84, 86.77, 365.59, 86.77, 413.0, 66.34, 395.7, 86.77, 378.49, 108.27, 382.8, 134.08, 383.87, 151.28, 383.87, 163.11, 387.1, 174.94, 376.34, 194.3, 347.31, 209.35, 329.03, 213.65, 320.43, 216.88, 315.05, 254.51, 304.3, 280.32, 283.87, 302.9, 248.39, 350.21, 219.35, 366.34, 218.28, 400.75, 225.81, 423.33, 233.33, 430.85, 227.96, 445.91, 216.13, 449.13, 223.66, 458.81, 231.18, 469.56, 225.81, 479.24, 220.43, 467.41, 220.43, 482.47, 207.53, 479.24, 208.6, 468.49, 205.38, 485.69, 200.0, 484.62, 183.87, 473.86, 172.04, 441.61, 169.89, 359.89, 163.44, 372.79, 166.67, 444.83, 148.39, 453.43, 152.69, 465.26, 152.69, 471.71, 144.09, 477.09, 132.26, 460.96, 141.94, 478.17, 119.35, 474.94, 97.85, 470.64, 66.67, 460.96, 46.24, 460.96, 33.33, 460.96, 1.08, 453.43, 2.15, 238.38]], "area": 97472.73119999998, "iscrowd": 0, "image_id": 408607, "bbox": [0.0, 58.81, 413.0, 426.88], "category_id": 17, "id": 47887}, {"segmentation": [[289.33, 217.81, 273.17, 224.27, 266.7, 229.93, 265.89, 232.35, 262.66, 239.63, 258.62, 243.67, 250.54, 253.37, 244.07, 263.07, 240.84, 272.76, 240.03, 283.27, 235.18, 292.16, 231.95, 293.78, 229.53, 295.39, 227.1, 298.63, 223.06, 302.67, 219.02, 303.48, 216.59, 305.9, 213.36, 306.71, 206.09, 305.9, 200.43, 309.13, 196.39, 316.41, 192.35, 313.17, 198.01, 297.01, 203.66, 287.31, 206.9, 277.61, 211.75, 244.48, 211.75, 228.31, 211.75, 210.53, 212.55, 202.45, 206.09, 206.49, 199.62, 209.73, 190.73, 212.96, 174.57, 214.57, 160.83, 213.77, 149.52, 206.49, 135.78, 198.41, 122.84, 194.37, 104.26, 188.71, 96.98, 186.29, 93.75, 183.86, 87.28, 179.01, 80.01, 177.4, 74.35, 182.25, 70.31, 189.52, 55.77, 201.64, 49.3, 207.3, 42.03, 212.15, 28.29, 212.96, 25.05, 214.57, 20.2, 214.57, 16.97, 211.34, 15.36, 203.26, 17.78, 193.56, 21.01, 190.33, 32.33, 187.1, 45.26, 183.05, 50.11, 180.63, 54.96, 179.82, 53.34, 174.16, 44.45, 176.59, 38.79, 180.63, 28.29, 185.48, 16.16, 189.52, 8.89, 193.56, 4.04, 195.18, 1.62, 192.75, 0.0, 187.9, 0.0, 179.01, 3.23, 173.36, 7.27, 170.93, 21.82, 170.12, 29.09, 166.89, 19.4, 165.27, 16.97, 165.27, 14.55, 162.85, 12.12, 158.0, 13.74, 153.15, 24.25, 150.73, 34.75, 148.3, 45.26, 144.26, 50.92, 141.03, 49.3, 140.22, 51.72, 137.8, 56.57, 137.8, 59.0, 135.37, 69.5, 132.95, 73.55, 128.1, 85.67, 128.91, 87.28, 127.29, 92.13, 120.82, 102.64, 110.32, 105.87, 108.7, 116.38, 101.43, 122.84, 97.39, 134.16, 93.35, 184.27, 80.41, 212.55, 82.84, 262.66, 83.65, 299.03, 96.58, 346.71, 120.82, 385.51, 145.07, 404.9, 151.54, 417.83, 159.62, 417.03, 175.78, 415.41, 185.48, 428.34, 187.9, 434.0, 203.26, 431.57, 214.57, 444.5, 208.11, 458.24, 214.57, 468.75, 221.04, 450.16, 233.16, 447.74, 233.97, 430.77, 238.01, 429.96, 245.29, 425.92, 258.22, 417.83, 267.11, 408.94, 269.53, 397.63, 271.96, 372.58, 276.0, 362.07, 275.19, 349.95, 272.76, 344.29, 269.53, 339.44, 265.49, 336.21, 259.02, 331.36, 254.98, 321.66, 248.52, 307.11, 249.33, 298.22, 259.83, 296.61, 264.68, 291.76, 271.15, 284.48, 282.46, 279.63, 290.54, 269.94, 301.86, 255.39, 318.02, 240.84, 335.8, 224.68, 351.16, 209.32, 354.39, 193.97, 351.97, 185.08, 343.88, 186.69, 334.19, 193.97, 326.1, 204.47, 319.64, 221.44, 311.56, 233.57, 300.24, 245.69, 280.85, 253.77, 267.91, 264.28, 242.86, 280.44, 227.51, 297.41, 216.19, 299.03, 209.73, 297.41, 209.73, 294.99, 210.53, 294.18, 211.34, 290.95, 209.73, 290.95, 209.73]], "area": 56379.90875000001, "iscrowd": 0, "image_id": 335940, "bbox": [0.0, 80.41, 468.75, 273.98], "category_id": 17, "id": 48206}, {"segmentation": [[167.99, 1.42, 155.18, 37.73, 151.62, 54.81, 158.74, 85.42, 175.11, 119.59, 189.35, 143.08, 192.91, 163.01, 196.46, 174.4, 206.43, 182.23, 219.24, 184.36, 227.78, 177.96, 239.17, 181.52, 261.24, 173.69, 258.39, 155.89, 258.39, 140.23, 259.11, 108.91, 269.78, 115.32, 290.43, 129.55, 298.97, 130.98, 285.44, 140.23, 286.15, 152.33, 298.97, 153.75, 328.15, 146.64, 342.39, 123.15, 347.37, 122.43, 387.23, 122.43, 353.78, 104.64, 345.95, 90.4, 345.95, 89.69, 370.86, 104.64, 395.78, 109.62, 410.72, 110.33, 422.83, 98.94, 428.52, 88.98, 427.81, 72.61, 417.13, 68.34, 400.76, 80.44, 392.93, 86.13, 380.83, 81.15, 363.03, 67.62, 349.51, 56.95, 345.95, 53.39, 367.3, 39.15, 369.44, 29.18, 336.69, 27.76, 328.15, 32.74, 318.19, 31.32, 303.24, 7.12, 297.54, 0.0, 169.42, 2.14, 171.55, 3.56]], "area": 29921.616, "iscrowd": 0, "image_id": 246356, "bbox": [151.62, 0.0, 276.9, 184.36], "category_id": 17, "id": 48240}, {"segmentation": [[237.73, 325.71, 238.13, 325.32, 241.69, 322.54, 243.67, 320.96, 249.22, 321.75, 261.5, 323.73, 272.19, 329.28, 282.09, 334.43, 285.66, 336.8, 294.37, 336.41, 291.21, 341.56, 289.62, 345.12, 292.39, 353.84, 291.21, 358.59, 287.64, 360.96, 282.89, 362.55, 282.89, 366.51, 279.32, 364.93, 269.42, 362.95, 261.1, 357.4, 265.06, 365.72, 262.29, 365.32, 257.93, 364.93, 255.56, 365.32, 251.6, 359.38, 249.61, 355.42, 237.73, 354.23, 234.17, 338.78, 231.79, 329.67, 238.13, 323.73]], "area": 1891.5657499999995, "iscrowd": 0, "image_id": 141800, "bbox": [231.79, 320.96, 62.58, 45.55], "category_id": 17, "id": 48381}, {"segmentation": [[184.95, 301.81, 216.26, 316.14, 262.96, 336.83, 316.55, 324.63, 366.43, 312.42, 409.41, 314.01, 420.03, 297.56, 424.8, 273.15, 423.21, 230.17, 429.58, 188.78, 421.09, 186.13, 403.58, 195.68, 395.09, 204.17, 349.45, 198.33, 259.77, 164.37, 199.81, 175.52, 160.54, 204.7, 152.58, 256.7, 157.36, 285.36, 168.5, 343.2, 202.46, 371.32, 200.87, 344.79]], "area": 37178.37565, "iscrowd": 0, "image_id": 563869, "bbox": [152.58, 164.37, 277.0, 206.95], "category_id": 17, "id": 48671}, {"segmentation": [[400.67, 323.85, 415.22, 321.35, 442.67, 316.36, 455.14, 308.88, 463.87, 298.07, 466.37, 287.26, 460.13, 278.11, 445.16, 266.05, 421.88, 256.07, 388.2, 258.15, 371.56, 266.05, 359.92, 266.05, 345.37, 266.47, 332.89, 259.4, 335.39, 272.29, 332.89, 283.93, 328.74, 292.66, 326.24, 313.04, 321.25, 333.0, 315.02, 351.71, 311.69, 365.01, 305.04, 389.92, 302.96, 394.91, 315.85, 394.91, 317.09, 397.4, 324.16, 393.24, 327.49, 394.08, 334.56, 397.4, 347.03, 394.08, 353.27, 385.34, 359.09, 372.87, 370.73, 359.98, 377.8, 346.67, 384.87, 331.29, 386.53, 327.13, 393.6, 331.29, 400.67, 325.05]], "area": 11701.813500000002, "iscrowd": 0, "image_id": 440698, "bbox": [302.96, 256.07, 163.41, 141.33], "category_id": 17, "id": 48924}, {"segmentation": [[183.71, 211.52, 174.44, 186.24, 182.02, 158.43, 175.28, 144.94, 175.28, 138.2, 187.92, 131.46, 198.03, 128.93, 208.15, 117.13, 208.99, 101.97, 218.26, 94.38, 231.74, 95.22, 252.81, 100.28, 270.51, 96.91, 289.89, 96.91, 302.53, 98.6, 311.8, 98.6, 329.49, 91.01, 344.66, 94.38, 369.94, 97.75, 389.33, 103.65, 403.65, 117.13, 414.61, 134.83, 413.76, 146.63, 405.34, 156.74, 396.91, 171.07, 383.43, 194.66, 368.26, 213.2, 348.88, 236.8, 313.48, 262.92, 268.82, 270.51, 229.21, 264.61, 201.4, 254.49, 187.08, 242.7, 176.97, 230.06, 174.44, 224.16, 189.61, 221.63]], "area": 32446.774800000003, "iscrowd": 0, "image_id": 299854, "bbox": [174.44, 91.01, 240.17, 179.5], "category_id": 17, "id": 49077}, {"segmentation": [[312.71, 326.66, 327.91, 314.93, 344.42, 304.07, 369.18, 296.25, 390.03, 297.99, 413.05, 304.07, 427.38, 309.28, 451.27, 314.93, 459.09, 303.63, 462.57, 318.4, 466.04, 325.79, 472.56, 332.3, 479.51, 342.29, 496.01, 346.2, 493.84, 351.42, 479.94, 360.54, 463.0, 369.22, 454.31, 370.53, 443.45, 365.32, 437.81, 365.32, 437.81, 365.32, 433.03, 365.75, 432.16, 370.09, 437.37, 374.44, 436.07, 383.99, 429.55, 385.3, 424.34, 379.22, 419.56, 374.0, 422.17, 381.39, 414.79, 387.03, 404.36, 382.26, 400.89, 371.83, 396.98, 366.18, 382.64, 365.75, 381.34, 358.37, 382.64, 350.55, 376.56, 347.94, 376.99, 342.29, 371.35, 340.56, 359.62, 337.52, 347.02, 332.3, 320.96, 331.87, 312.71, 332.3, 311.4, 327.52]], "area": 8260.781200000001, "iscrowd": 0, "image_id": 233439, "bbox": [311.4, 296.25, 184.61, 90.78], "category_id": 17, "id": 49498}, {"segmentation": [[163.96, 277.57, 171.15, 266.07, 152.45, 212.85, 146.7, 185.53, 186.97, 181.21, 224.36, 158.2, 253.12, 128.0, 287.64, 158.2, 345.17, 192.72, 327.91, 241.62, 319.28, 258.88, 273.26, 316.4, 286.2, 333.66, 332.22, 293.39, 349.48, 303.46, 287.64, 360.99, 300.58, 381.12, 371.06, 336.54, 323.6, 395.51, 349.48, 411.33, 381.12, 385.44, 369.62, 418.52, 373.93, 431.46, 378.25, 543.64, 379.69, 572.4, 358.11, 569.53, 320.72, 552.27, 317.84, 491.87, 286.2, 488.99, 290.52, 533.57, 231.55, 530.7, 218.61, 440.09, 188.4, 360.99, 201.35, 327.91, 184.09, 299.15, 165.39, 279.01]], "area": 55431.70459999998, "iscrowd": 0, "image_id": 135038, "bbox": [146.7, 128.0, 234.42, 444.4], "category_id": 17, "id": 49693}, {"segmentation": [[164.9, 251.25, 163.07, 233.84, 184.14, 238.42, 227.2, 223.76, 284.0, 234.76, 309.65, 263.16, 309.65, 284.23, 310.57, 300.72, 302.32, 303.47, 294.99, 299.8, 256.52, 321.79, 228.12, 337.36, 254.68, 354.77, 247.35, 368.51, 243.69, 369.43, 172.23, 337.36, 161.24, 272.32, 163.99, 256.75]], "area": 14315.427849999996, "iscrowd": 0, "image_id": 484617, "bbox": [161.24, 223.76, 149.33, 145.67], "category_id": 17, "id": 49860}, {"segmentation": [[39.71, 224.46, 47.5, 226.86, 51.69, 228.05, 58.88, 227.45, 67.87, 225.06, 73.86, 225.06, 79.85, 225.66, 85.84, 231.05, 89.44, 238.84, 90.63, 243.03, 91.83, 246.03, 92.43, 246.63, 98.42, 249.02, 102.62, 252.02, 106.21, 253.81, 115.2, 256.81, 119.99, 261.6, 124.78, 266.99, 128.98, 272.98, 131.97, 277.18, 132.57, 283.77, 127.78, 288.56, 122.39, 293.95, 119.99, 298.15, 114.6, 303.54, 111.6, 307.73, 109.21, 315.52, 109.21, 319.71, 108.61, 324.51, 106.81, 325.7, 100.22, 326.3, 93.03, 328.1, 81.05, 331.7, 75.66, 332.29, 72.06, 332.29, 60.68, 330.5, 55.29, 327.5, 55.29, 320.31, 57.68, 310.13, 60.08, 302.34, 60.08, 297.55, 58.88, 289.76, 55.89, 278.98, 51.69, 274.18, 53.49, 264.0, 51.09, 257.41, 46.3, 253.22, 44.5, 247.22, 45.7, 241.83, 45.7, 240.04, 40.31, 232.85]], "area": 6110.812749999999, "iscrowd": 0, "image_id": 264244, "bbox": [39.71, 224.46, 92.86, 107.83], "category_id": 17, "id": 50216}, {"segmentation": [[80.27, 385.01, 84.32, 382.54, 105.31, 382.25, 112.49, 383.94, 121.64, 384.65, 139.11, 379.16, 155.3, 370.28, 167.27, 362.82, 186.0, 354.37, 199.66, 347.33, 201.6, 341.05, 200.74, 338.14, 197.15, 334.81, 194.16, 330.54, 191.49, 313.27, 196.01, 299.35, 196.37, 288.14, 198.36, 276.4, 205.04, 268.08, 210.65, 256.88, 222.58, 242.6, 225.11, 233.92, 223.14, 224.1, 225.96, 216.78, 228.07, 211.14, 223.14, 208.05, 216.95, 202.41, 215.68, 198.33, 215.68, 195.65, 219.2, 194.24, 226.24, 194.67, 235.82, 195.65, 239.38, 189.77, 243.37, 187.53, 247.04, 184.98, 247.35, 174.61, 247.67, 168.39, 248.95, 163.44, 251.82, 164.24, 256.13, 169.03, 260.12, 174.93, 265.22, 183.54, 268.25, 186.58, 272.88, 191.52, 274.31, 198.59, 277.55, 199.08, 280.78, 200.7, 282.39, 207.29, 282.02, 211.39, 281.28, 215.74, 275.81, 216.99, 277.67, 221.46, 280.16, 223.95, 282.89, 226.56, 283.4, 234.51, 276.83, 240.29, 269.47, 246.07, 265.79, 252.9, 261.85, 259.47, 261.85, 259.47, 259.22, 273.66, 260.8, 284.96, 260.53, 293.11, 264.21, 297.31, 265.0, 304.93, 267.37, 310.19, 269.47, 315.18, 272.36, 320.44, 273.94, 323.86, 265.65, 339.12, 260.33, 353.87, 252.75, 359.39, 244.56, 361.44, 229.37, 363.7, 214.29, 367.41, 197.36, 370.66, 185.3, 374.14, 167.9, 382.03, 134.89, 396.52, 127.01, 399.15, 117.54, 399.93, 110.71, 399.41, 100.46, 395.99, 93.63, 393.89, 83.91, 391.79, 80.49, 387.58], [279.76, 269.85, 277.53, 272.56, 277.82, 277.98, 277.63, 282.25, 280.05, 286.99, 280.92, 269.85]], "area": 13056.165549999992, "iscrowd": 0, "image_id": 288268, "bbox": [80.27, 163.44, 203.13, 236.49], "category_id": 17, "id": 50252}, {"segmentation": [[318.21, 182.85, 345.74, 197.17, 350.14, 224.69, 395.29, 263.23, 398.59, 248.92, 391.98, 240.11, 397.49, 225.79, 399.69, 218.09, 417.31, 187.26, 454.74, 166.34, 481.17, 152.02, 484.47, 133.3, 498.79, 113.48, 518.61, 127.8, 531.82, 156.43, 551.64, 197.17, 578.06, 247.82, 593.48, 279.75, 593.48, 300.67, 640.0, 313.88, 639.72, 506.57, 429.42, 506.57, 412.9, 488.95, 412.9, 466.93, 421.71, 458.12, 442.63, 461.42, 455.85, 448.21, 451.44, 410.77, 418.41, 377.74, 385.38, 341.41, 361.15, 310.58, 339.13, 272.04, 313.81, 254.42, 307.2, 246.71, 303.9, 203.77]], "area": 75747.43585, "iscrowd": 0, "image_id": 396039, "bbox": [303.9, 113.48, 336.1, 393.09], "category_id": 17, "id": 50504}, {"segmentation": [[157.94, 219.1, 157.94, 207.74, 153.81, 203.61, 130.06, 208.77, 118.71, 231.48, 126.97, 249.03, 129.03, 255.23, 126.97, 271.74, 135.23, 277.94, 137.29, 274.84, 144.52, 282.06, 148.65, 291.35, 157.94, 282.06, 161.03, 262.45, 157.94, 235.61]], "area": 2488.3276499999997, "iscrowd": 0, "image_id": 139915, "bbox": [118.71, 203.61, 42.32, 87.74], "category_id": 17, "id": 50939}, {"segmentation": [[373.34, 21.53, 392.4, 25.22, 404.09, 20.91, 414.55, 12.3, 426.85, 36.29, 449.6, 62.12, 476.67, 84.26, 491.43, 105.17, 495.12, 153.15, 487.74, 183.9, 472.98, 198.66, 484.05, 212.81, 483.43, 218.34, 461.91, 218.34, 431.77, 214.65, 402.25, 213.42, 378.26, 214.04, 351.81, 217.73, 331.51, 217.73, 316.14, 212.19, 306.91, 205.43, 307.53, 191.28, 309.37, 177.75, 303.22, 165.45, 301.99, 149.46, 303.84, 138.39, 309.37, 124.24, 313.06, 115.63, 319.83, 111.32, 329.67, 110.09, 342.58, 108.25, 355.5, 101.48, 347.51, 84.88, 343.2, 67.66, 348.12, 52.89, 353.66, 38.75, 353.04, 30.75, 349.35, 22.14, 341.97, 12.92, 355.5, 18.45, 365.34, 25.83]], "area": 28672.647149999993, "iscrowd": 0, "image_id": 458832, "bbox": [301.99, 12.3, 193.13, 206.04], "category_id": 17, "id": 51259}, {"segmentation": [[232.6, 191.31, 304.17, 253.25, 348.22, 306.92, 349.59, 377.12, 322.06, 432.17, 276.65, 450.06, 202.32, 437.68, 169.29, 411.53, 155.53, 381.25, 151.4, 370.24, 118.37, 341.33, 133.51, 333.08, 177.55, 355.1, 210.58, 352.34, 211.96, 328.95, 202.32, 305.55, 192.69, 284.9, 177.55, 262.88, 162.41, 273.89, 147.27, 268.39, 132.13, 253.25, 133.51, 229.85, 143.14, 209.2, 143.14, 195.44, 143.14, 180.3, 151.4, 174.8, 162.41, 189.94, 185.81, 194.06, 206.45, 194.06]], "area": 38525.332850000006, "iscrowd": 0, "image_id": 329368, "bbox": [118.37, 174.8, 231.22, 275.26], "category_id": 17, "id": 51394}, {"segmentation": [[247.74, 536.77, 250.49, 489.98, 221.59, 450.06, 236.73, 386.75, 271.14, 341.33, 324.82, 341.33, 353.72, 367.48, 364.73, 397.76, 374.37, 400.52, 377.12, 412.9, 367.48, 421.16, 367.48, 474.84, 327.57, 489.98, 334.45, 514.75, 328.95, 521.63, 315.18, 545.03, 298.67, 535.4, 293.16, 507.87, 278.02, 518.88, 269.76, 539.53]], "area": 21364.653949999996, "iscrowd": 0, "image_id": 223932, "bbox": [221.59, 341.33, 155.53, 203.7], "category_id": 17, "id": 51417}, {"segmentation": [[154.48, 513.79, 132.41, 477.93, 132.41, 469.66, 136.55, 417.24, 146.21, 391.03, 171.03, 359.31, 188.97, 341.38, 212.41, 300.0, 219.31, 282.07, 220.69, 266.9, 220.69, 246.21, 217.93, 233.79, 217.93, 225.52, 245.52, 226.9, 249.66, 248.97, 256.55, 264.14, 271.72, 265.52, 292.41, 276.55, 315.86, 262.76, 357.24, 255.86, 348.97, 294.48, 318.62, 327.59, 324.14, 355.17, 325.52, 373.1, 318.62, 393.79, 303.45, 402.07, 303.45, 424.14, 307.59, 455.86, 311.72, 512.41, 311.72, 527.59, 193.1, 524.83, 184.83, 523.45, 148.97, 500.0]], "area": 41193.768800000005, "iscrowd": 0, "image_id": 396660, "bbox": [132.41, 225.52, 224.83, 302.07], "category_id": 17, "id": 51520}, {"segmentation": [[640.0, 419.43, 571.66, 418.52, 561.59, 421.27, 558.84, 414.85, 557.92, 406.61, 557.92, 403.86, 550.59, 374.54, 532.27, 343.4, 520.36, 317.74, 513.03, 302.17, 511.2, 290.26, 515.78, 274.69, 516.7, 264.61, 518.53, 251.78, 518.53, 247.2, 519.45, 244.45, 510.28, 233.46, 502.04, 229.8, 493.79, 234.38, 477.3, 234.38, 476.39, 232.54, 480.05, 227.96, 486.46, 222.47, 494.71, 216.97, 496.54, 211.47, 496.54, 200.48, 497.46, 187.65, 496.54, 175.74, 503.87, 167.5, 509.37, 158.34, 509.37, 151.92, 501.12, 155.59, 488.3, 157.42, 484.63, 151.01, 483.72, 140.02, 483.72, 134.52, 487.38, 124.44, 493.79, 122.61, 502.04, 128.11, 522.19, 135.43, 529.52, 136.35, 536.85, 140.02, 546.93, 142.76, 551.51, 142.76, 557.92, 132.69, 564.34, 120.78, 579.91, 119.86, 588.15, 123.52, 597.32, 133.6, 606.48, 143.68, 611.97, 151.92, 615.64, 157.42, 620.22, 168.42, 619.3, 183.07, 618.39, 194.98, 615.64, 205.06, 613.81, 214.22, 618.39, 225.22, 623.88, 238.04, 637.63, 243.54, 636.71, 368.13, 637.63, 417.6]], "area": 32154.09780000003, "iscrowd": 0, "image_id": 107100, "bbox": [476.39, 119.86, 163.61, 301.41], "category_id": 17, "id": 51904}, {"segmentation": [[127.45, 5.68, 178.16, 13.9, 183.64, 18.01, 191.86, 22.12, 212.42, 27.6, 222.01, 33.09, 227.49, 42.68, 241.2, 52.27, 249.42, 55.01, 254.9, 55.01, 269.98, 50.9, 279.57, 50.9, 271.35, 70.09, 269.98, 81.05, 269.98, 85.16, 269.98, 92.02, 265.87, 98.87, 267.24, 105.72, 263.13, 108.46, 252.16, 107.09, 249.42, 107.09, 238.46, 98.87, 234.35, 96.13, 224.75, 92.02, 216.53, 90.65, 204.2, 87.9, 197.34, 89.28, 198.72, 97.5, 205.57, 104.35, 204.2, 108.46, 197.34, 111.2, 193.23, 124.91, 180.9, 127.65, 167.19, 126.28, 158.97, 119.42, 146.64, 108.46, 141.16, 102.98, 127.45, 92.02, 119.23, 102.98, 117.86, 112.57, 111.01, 122.17, 93.19, 123.54, 90.45, 111.2, 86.34, 78.31, 89.08, 42.68, 95.93, 28.98, 100.04, 22.12, 105.52, 18.01]], "area": 15182.23215, "iscrowd": 0, "image_id": 223932, "bbox": [86.34, 5.68, 193.23, 121.97], "category_id": 17, "id": 52333}, {"segmentation": [[63.58, 43.1, 63.58, 18.32, 63.58, 10.78, 79.74, 30.17, 119.61, 35.56, 151.94, 31.25, 161.64, 40.95, 168.1, 60.34, 195.04, 79.74, 254.31, 120.69, 292.03, 176.72, 292.03, 186.42, 285.56, 199.35, 279.09, 232.76, 316.81, 265.09, 344.83, 387.93, 336.21, 410.56, 284.48, 415.95, 256.47, 397.63, 262.93, 332.97, 257.54, 322.2, 187.5, 309.27, 157.33, 286.64, 140.09, 281.25, 116.38, 272.63, 115.3, 251.08, 102.37, 207.97, 59.27, 151.94, 38.79, 104.53, 46.34, 81.9, 63.58, 53.88, 63.58, 52.8]], "area": 57216.00860000001, "iscrowd": 0, "image_id": 518081, "bbox": [38.79, 10.78, 306.04, 405.17], "category_id": 17, "id": 52473}, {"segmentation": [[452.86, 421.68, 466.3, 396.74, 472.05, 370.83, 470.14, 343.01, 463.42, 321.9, 467.26, 300.79, 470.14, 285.44, 487.41, 279.68, 507.55, 283.52, 514.27, 283.52, 519.07, 270.09, 512.35, 264.33, 491.24, 261.45, 467.26, 261.45, 467.26, 259.53, 467.26, 249.94, 464.38, 234.59, 463.42, 226.91, 472.05, 217.32, 485.49, 202.93, 486.45, 195.25, 480.69, 186.61, 455.74, 185.66, 436.55, 189.49, 414.49, 185.66, 398.18, 195.25, 374.19, 192.37, 358.84, 190.45, 328.14, 201.97, 313.74, 223.07, 312.78, 250.9, 315.66, 281.6, 315.66, 294.07, 309.91, 322.86, 314.7, 359.32, 318.54, 371.79, 331.01, 383.3, 331.97, 401.53, 334.85, 416.89, 336.77, 419.76, 360.76, 421.68, 387.62, 421.68, 426.0, 419.76, 452.86, 421.68]], "area": 35491.16794999999, "iscrowd": 0, "image_id": 107100, "bbox": [309.91, 185.66, 209.16, 236.02], "category_id": 17, "id": 52799}, {"segmentation": [[320.96, 282.67, 320.96, 274.46, 305.46, 261.69, 299.99, 236.16, 303.64, 208.81, 327.35, 170.51, 354.7, 153.19, 380.23, 163.22, 403.03, 188.75, 413.97, 237.99, 413.97, 264.43, 394.82, 276.28], [381.14, 146.8, 366.55, 146.8, 401.2, 114.89, 415.79, 86.62, 422.18, 77.51, 434.94, 73.86, 451.35, 69.3, 463.21, 65.65, 514.27, 48.33, 523.39, 48.33, 526.12, 61.09, 547.1, 48.33, 556.22, 62.92, 557.13, 74.77, 557.13, 80.24, 565.33, 88.45, 573.54, 118.54, 583.57, 136.77, 589.95, 152.28, 631.9, 195.13, 640.0, 228.87, 640.0, 235.25, 638.28, 266.25, 630.98, 259.87, 636.46, 274.46, 640.0, 290.87, 640.0, 418.53, 497.86, 416.71, 462.3, 304.55, 462.3, 277.2, 455.91, 268.08, 443.27, 272.34, 429.06, 263.11, 430.48, 233.27, 426.93, 214.8, 429.06, 197.03, 483.06, 192.06, 507.92, 186.38, 484.48, 225.45, 494.42, 239.66, 520.0, 194.9, 529.95, 152.27, 525.68, 126.7, 520.71, 118.88, 511.48, 132.38, 517.16, 145.88, 505.79, 165.77, 497.27, 171.46, 446.82, 177.85, 427.64, 179.27, 423.38, 176.43, 416.98, 174.3]], "area": 71634.06730000001, "iscrowd": 0, "image_id": 34861, "bbox": [299.99, 48.33, 340.01, 370.2], "category_id": 19, "id": 53943}, {"segmentation": [[186.41, 421.49, 180.9, 416.9, 174.47, 414.14, 174.47, 401.29, 174.47, 369.15, 171.72, 349.86, 168.96, 341.6, 184.57, 314.05, 184.57, 305.79, 174.47, 312.22, 160.7, 312.22, 156.11, 308.54, 149.68, 296.6, 148.76, 281.91, 155.19, 274.57, 163.45, 265.38, 166.21, 252.53, 165.29, 236.92, 164.37, 221.31, 168.96, 206.61, 179.06, 199.27, 187.33, 193.76, 202.02, 187.33, 212.12, 186.41, 232.32, 182.74, 265.38, 185.49, 273.65, 186.41, 292.01, 189.17, 313.13, 189.17, 329.66, 184.57, 379.25, 155.19, 431.59, 133.15, 480.26, 118.46, 504.14, 111.11, 512.4, 102.85, 504.14, 120.29, 519.75, 150.6, 539.03, 183.66, 542.7, 191.0, 540.87, 201.1, 534.44, 206.61, 528.93, 207.53, 520.66, 204.78, 516.07, 195.59, 501.38, 189.17, 485.77, 179.98, 476.59, 179.98, 467.4, 179.98, 458.22, 191.0, 449.04, 203.86, 444.45, 212.12, 443.53, 213.96, 437.1, 223.14, 432.51, 230.49, 427.92, 248.85, 427.0, 256.2, 426.08, 263.55, 415.98, 276.4, 411.39, 278.24, 402.21, 284.67, 400.37, 293.85, 396.7, 308.54, 393.94, 315.89, 391.19, 329.66, 391.19, 348.03, 388.43, 374.66, 390.27, 389.35, 401.29, 397.62, 403.12, 402.21, 404.96, 406.8, 404.96, 408.63, 401.29, 410.47, 392.11, 410.47, 391.19, 415.06, 382.92, 415.98, 376.49, 404.96, 370.07, 400.37, 365.48, 386.6, 370.98, 360.88, 371.9, 323.23, 374.66, 286.5, 360.88, 285.58, 325.07, 292.01, 297.52, 297.52, 280.08, 299.36, 259.87, 298.44, 252.53, 295.69, 240.59, 293.85, 233.24, 303.95, 224.98, 315.89, 218.55, 325.99, 209.37, 336.09, 207.53, 338.85, 211.2, 354.46, 212.12, 362.72, 217.63, 380.17, 220.39, 395.78, 225.9, 415.98, 225.9, 420.57, 219.47, 416.9, 212.12, 412.31, 208.45, 409.55, 207.53, 393.02, 202.02, 376.49, 197.43, 364.56, 192.84, 350.78, 190.08, 359.05, 189.17, 364.56, 182.74, 378.33, 183.66, 389.35, 185.49, 403.12, 189.17, 418.74, 199.27, 419.65, 196.51, 422.41, 192.84, 421.49, 190.08, 420.57]], "area": 45251.18125000001, "iscrowd": 0, "image_id": 555782, "bbox": [148.76, 102.85, 393.94, 319.56], "category_id": 19, "id": 54030}, {"segmentation": [[314.84, 68.99, 317.94, 82.41, 336.52, 94.8, 367.48, 129.89, 397.42, 170.15, 416.0, 178.41, 416.0, 207.31, 423.23, 215.57, 428.39, 234.15, 418.06, 253.76, 417.03, 275.44, 434.58, 275.44, 433.55, 286.8, 425.29, 294.02, 397.42, 305.38, 375.74, 302.28, 344.77, 275.44, 330.32, 253.76, 316.9, 255.83, 306.58, 240.34, 298.32, 256.86, 308.65, 273.38, 307.61, 294.02, 292.13, 281.63, 283.87, 270.28, 280.77, 275.44, 271.48, 275.44, 266.32, 268.22, 263.23, 251.7, 267.35, 230.02, 277.68, 199.05, 284.9, 194.92, 302.45, 207.31, 314.84, 186.67, 317.94, 173.25, 320.0, 155.7, 314.84, 144.34, 302.45, 160.86, 288.0, 181.51, 280.77, 168.09, 275.61, 153.63, 284.9, 137.12, 282.84, 113.38, 288.0, 94.8, 292.13, 88.6, 281.81, 71.05, 282.84, 68.99, 296.26, 77.25, 303.48, 82.41, 310.71, 76.22, 313.81, 67.96], [461.42, 225.89, 493.42, 245.51, 514.06, 275.44, 480.0, 278.54, 442.84, 275.44, 445.94, 266.15, 461.42, 266.15, 462.45, 231.05]], "area": 24394.40515, "iscrowd": 0, "image_id": 517261, "bbox": [263.23, 67.96, 250.83, 237.42], "category_id": 19, "id": 54149}, {"segmentation": [[254.8, 161.99, 215.84, 163.41, 176.17, 158.45, 151.37, 171.2, 112.41, 221.5, 110.99, 225.75, 110.28, 221.5, 109.58, 221.5, 109.58, 225.75, 106.74, 230.71, 102.49, 230.0, 101.07, 228.58, 98.24, 228.58, 96.82, 228.58, 99.66, 234.96, 103.91, 237.79, 100.37, 251.25, 104.62, 261.88, 101.78, 276.05, 108.16, 283.13, 112.41, 280.3, 113.83, 285.96, 122.33, 281.01, 125.16, 261.17, 130.12, 233.54, 132.95, 227.87, 145.71, 217.96, 149.96, 213.0, 159.87, 216.54, 163.42, 217.25, 164.83, 234.25, 164.83, 244.17, 165.54, 260.46, 162.71, 273.92, 157.75, 281.71, 150.66, 286.67, 164.83, 290.22, 171.92, 264.71, 171.21, 251.96, 173.33, 227.16, 173.33, 219.37, 184.67, 240.63, 186.09, 246.29, 191.05, 256.92, 196.0, 267.55, 198.84, 279.59, 199.55, 285.26, 209.46, 283.13, 198.84, 251.96, 193.88, 232.12, 191.75, 221.5, 203.8, 217.25, 211.59, 217.25, 218.67, 217.25, 230.01, 215.83, 239.22, 209.45, 251.97, 215.12, 259.76, 222.91, 264.72, 239.21, 269.68, 255.5, 271.81, 259.75, 266.85, 281.01, 261.18, 292.34, 257.64, 297.3, 274.64, 283.84, 275.35, 269.67, 275.35, 252.67, 278.18, 248.42, 283.14, 261.17, 284.56, 273.92, 286.68, 283.84, 283.85, 293.76, 290.23, 298.01, 292.35, 281.01, 286.68, 251.25, 286.68, 249.83, 277.47, 229.29, 276.06, 210.87, 278.18, 200.24, 279.6, 191.74, 281.02, 184.66, 287.39, 187.49, 287.39, 178.99, 275.35, 168.36, 265.43, 165.53, 258.35, 161.99, 255.51, 161.99]], "area": 11738.172000000008, "iscrowd": 0, "image_id": 244979, "bbox": [96.82, 158.45, 195.53, 139.56], "category_id": 19, "id": 54456}, {"segmentation": [[269.35, 411.4, 262.99, 414.58, 260.87, 402.38, 259.81, 389.66, 262.46, 383.83, 271.47, 385.42, 276.25, 384.89, 295.86, 385.42, 302.22, 385.42, 316.53, 391.25, 316.53, 398.67, 316.53, 406.1, 315.47, 410.87, 311.23, 410.87, 305.4, 407.69, 296.92, 408.22, 288.44, 410.34, 288.44, 417.76, 290.56, 423.06, 291.09, 426.24, 295.33, 438.43, 295.33, 444.26, 290.56, 444.79, 286.32, 439.49, 287.38, 434.19, 285.79, 428.36, 283.14, 427.3, 282.61, 442.14, 275.19, 446.38, 277.31, 435.78, 278.9, 428.36, 278.9, 422.0, 277.84, 417.23, 269.88, 412.46]], "area": 1783.1532999999995, "iscrowd": 0, "image_id": 567318, "bbox": [259.81, 383.83, 56.72, 62.55], "category_id": 19, "id": 54766}, {"segmentation": [[14.33, 326.97, 1.69, 327.81, 0.84, 70.79, 22.75, 69.1, 64.89, 72.47, 132.3, 81.74, 165.17, 66.57, 205.62, 63.2, 217.42, 52.25, 214.89, 44.66, 210.67, 38.76, 223.31, 28.65, 231.74, 47.19, 259.55, 48.88, 273.03, 35.39, 271.35, 60.67, 287.36, 98.6, 282.3, 111.24, 283.15, 123.88, 300.0, 171.07, 301.69, 189.61, 289.89, 203.09, 267.13, 205.62, 252.81, 181.18, 239.33, 166.01, 214.04, 160.96, 212.36, 159.27, 214.89, 174.44, 213.2, 195.51, 202.25, 219.1, 203.09, 231.74, 197.19, 251.12, 187.08, 269.66, 187.92, 300.0, 186.24, 316.01, 185.39, 316.85, 190.45, 351.4, 197.19, 370.79, 170.22, 367.42, 169.38, 352.25, 171.91, 325.28, 165.17, 291.57, 162.64, 247.75, 146.63, 240.17, 128.09, 241.01, 128.09, 241.01, 123.03, 257.02, 121.35, 281.46, 119.66, 299.16, 113.76, 311.8, 111.24, 331.18, 119.66, 370.79, 96.07, 369.1, 89.33, 364.04, 95.22, 345.51, 91.85, 328.65, 92.7, 321.07, 102.81, 306.74, 96.07, 293.26, 96.91, 230.06, 59.83, 225.84, 48.03, 250.28, 38.76, 257.02, 28.65, 282.3, 30.34, 306.74, 38.76, 337.08, 42.98, 361.52, 27.81, 360.67, 18.54, 352.25, 17.7, 334.55, 14.33, 326.97]], "area": 54705.446799999976, "iscrowd": 0, "image_id": 439809, "bbox": [0.84, 28.65, 300.85, 342.14], "category_id": 19, "id": 54815}, {"segmentation": [[139.25, 125.51, 149.33, 118.18, 166.74, 101.69, 175.9, 90.7, 192.39, 86.12, 217.12, 91.61, 241.86, 93.45, 257.43, 83.37, 284.0, 82.45, 301.41, 92.53, 308.74, 109.94, 317.9, 123.68, 316.06, 147.5, 310.57, 174.98, 306.9, 196.97, 306.9, 208.88, 306.9, 228.12, 301.41, 248.27, 300.49, 264.76, 299.57, 273.92, 294.08, 279.42, 273.01, 280.34, 286.75, 256.52, 296.83, 225.37, 293.16, 211.63, 294.99, 190.55, 289.5, 163.99, 268.43, 183.23, 262.01, 197.88, 264.76, 207.05, 262.01, 224.45, 257.43, 244.61, 259.26, 265.68, 254.68, 273.92, 247.35, 254.68, 249.19, 227.2, 250.1, 191.47, 233.61, 187.81, 220.79, 222.62, 226.28, 231.78, 231.78, 240.94, 238.19, 248.27, 244.61, 258.35, 240.94, 267.51, 236.36, 269.34, 226.28, 267.51, 214.37, 241.86, 208.88, 228.12, 207.96, 223.54, 213.46, 195.14, 201.55, 197.88, 197.88, 218.95, 206.13, 247.35, 210.71, 261.1, 207.05, 281.25, 196.05, 281.25, 185.06, 281.25, 196.05, 253.77, 190.55, 234.53, 185.97, 216.21, 168.57, 178.65, 163.07, 190.55, 158.49, 192.39, 152.99, 217.12, 154.83, 237.28, 149.33, 247.35, 136.5, 238.19, 136.5, 216.21, 129.17, 193.3, 123.68, 168.57, 115.43, 138.34, 128.26, 142.0, 143.83, 122.76]], "area": 23374.833799999993, "iscrowd": 0, "image_id": 61506, "bbox": [115.43, 82.45, 202.47, 198.8], "category_id": 19, "id": 55293}, {"segmentation": [[612.48, 5.9, 613.3, 13.34, 611.65, 34.01, 611.65, 45.58, 614.96, 58.8, 615.78, 62.94, 605.04, 62.94, 565.36, 58.8, 550.48, 56.32, 546.35, 56.32, 539.74, 52.19, 537.26, 43.1, 529.82, 37.31, 516.6, 48.06, 502.54, 62.11, 500.89, 72.03, 504.2, 85.25, 505.02, 96.82, 499.24, 115.01, 493.45, 133.19, 486.84, 138.98, 476.09, 134.85, 467.83, 128.23, 466.18, 119.14, 460.39, 100.13, 456.26, 89.39, 449.64, 80.29, 447.16, 68.72, 447.16, 60.46, 447.99, 50.54, 447.99, 43.1, 455.43, 43.1, 462.87, 32.35, 469.48, 24.09, 478.57, 13.34, 482.71, 8.38]], "area": 10668.99455, "iscrowd": 0, "image_id": 167671, "bbox": [447.16, 5.9, 168.62, 133.08], "category_id": 19, "id": 55467}, {"segmentation": [[287.39, 177.8, 283.41, 173.82, 279.82, 172.08, 275.94, 170.43, 276.43, 164.7, 279.73, 158.68, 283.9, 151.7, 288.17, 147.04, 290.21, 145.78, 292.34, 145.19, 295.93, 148.11, 304.86, 147.23, 306.99, 145.78, 318.35, 146.55, 322.52, 149.85, 327.86, 157.52, 328.25, 160.53, 327.86, 172.85, 327.76, 187.12, 326.21, 191.39, 324.56, 192.55, 324.17, 201.29, 322.62, 206.53, 317.86, 205.65, 316.41, 201.96, 316.89, 190.42, 315.05, 183.53, 312.33, 179.06, 311.46, 176.35, 310.29, 174.99, 307.09, 175.37, 301.66, 175.57, 301.08, 175.57, 300.2, 182.94, 299.43, 193.91, 299.62, 200.61, 300.01, 202.93, 296.22, 195.66, 296.22, 184.88, 295.64, 179.94, 294.57, 177.22, 293.99, 177.51, 290.79, 177.41, 287.88, 178.29, 287.29, 177.9]], "area": 1752.7859999999985, "iscrowd": 0, "image_id": 191173, "bbox": [275.94, 145.19, 52.31, 61.34], "category_id": 19, "id": 55847}, {"segmentation": [[560.68, 224.22, 567.58, 233.88, 576.97, 241.06, 580.29, 244.65, 580.84, 250.45, 576.15, 254.32, 572.83, 261.22, 573.38, 267.3, 570.62, 270.34, 567.03, 270.34, 564.27, 273.65, 563.17, 276.69, 555.16, 280.83, 554.33, 271.99, 556.26, 267.3, 561.51, 266.19, 565.37, 265.09, 572.28, 252.66, 572.83, 247.69, 547.15, 233.33, 541.62, 233.88, 540.24, 234.16, 533.89, 256.8, 533.06, 261.78, 542.73, 267.85, 544.39, 273.1, 535.55, 272.82, 528.64, 264.81, 526.71, 260.95, 528.92, 242.17, 532.23, 226.7, 524.78, 225.6, 512.07, 226.42, 500.47, 226.7, 485.01, 222.01, 477.0, 218.97, 467.61, 217.86, 463.19, 218.42, 459.87, 225.32, 454.07, 231.12, 445.79, 238.3, 436.68, 246.31, 442.2, 254.04, 446.07, 260.39, 446.89, 264.54, 446.89, 270.89, 446.07, 277.52, 445.79, 283.04, 437.23, 273.65, 436.4, 268.13, 437.23, 264.81, 436.12, 256.8, 434.19, 254.59, 432.26, 252.66, 427.84, 258.74, 426.73, 263.43, 430.32, 275.86, 438.06, 279.73, 442.47, 282.49, 444.68, 290.5, 430.32, 289.39, 420.1, 280.0, 419.55, 272.55, 421.76, 262.6, 420.38, 251.28, 422.87, 243.55, 432.81, 232.78, 436.12, 222.01, 431.98, 209.85, 430.32, 205.16, 424.25, 216.21, 420.1, 241.61, 416.51, 262.05, 412.37, 275.86, 413.48, 292.43, 401.6, 288.84, 398.01, 281.66, 388.62, 288.84, 381.72, 285.53, 392.49, 267.02, 401.32, 248.24, 401.6, 227.81, 408.23, 212.34, 415.41, 197.43, 427.15, 179.47, 443.45, 168.84, 460.47, 166.71, 474.29, 168.84, 493.79, 170.25, 520.37, 168.48, 539.16, 164.23, 549.79, 159.62, 564.68, 153.24, 576.37, 151.11, 585.59, 147.57, 594.81, 145.44, 605.08, 144.38, 613.95, 143.67, 615.55, 137.7, 618.43, 134.04, 621.56, 131.82, 622.74, 131.69, 620.91, 135.74, 620.13, 137.57, 620.13, 139.79, 621.3, 138.88, 623.78, 138.09, 625.35, 139.53, 624.18, 142.14, 622.87, 145.02, 621.95, 146.72, 623.91, 149.07, 624.83, 151.42, 625.87, 154.42, 626.0, 156.12, 625.87, 159.91, 628.65, 190.78, 621.24, 196.29, 613.26, 194.96, 609.65, 191.73, 606.61, 181.67, 601.86, 175.78, 598.25, 171.22, 585.72, 183.57, 580.02, 192.87, 577.55, 200.09, 571.66, 211.87]], "area": 14749.610499999995, "iscrowd": 0, "image_id": 223454, "bbox": [381.72, 131.69, 246.93, 160.74], "category_id": 19, "id": 56104}, {"segmentation": [[47.75, 127.64, 35.81, 162.54, 42.24, 168.05, 42.24, 168.05, 45.91, 164.37, 51.42, 168.96, 59.69, 159.78, 66.12, 161.62, 68.87, 171.72, 68.87, 171.72, 73.46, 178.15, 67.95, 189.17, 67.95, 189.17, 79.89, 182.74, 79.89, 182.74, 95.5, 167.13, 113.87, 152.43, 126.72, 148.76, 158.86, 156.11, 207.53, 178.15, 207.53, 179.06, 224.98, 201.1, 209.37, 216.71, 175.39, 232.32, 175.39, 232.32, 167.13, 236.92, 167.13, 236.92, 187.33, 274.57, 199.27, 292.93, 198.35, 292.93, 217.63, 298.44, 217.63, 298.44, 214.88, 229.57, 223.14, 230.49, 225.9, 303.95, 225.9, 303.95, 233.24, 303.95, 248.85, 295.69, 248.85, 295.69, 247.94, 273.65, 260.79, 266.3, 259.87, 236.92, 259.87, 236.0, 269.97, 248.85, 293.85, 329.66, 293.85, 329.66, 298.44, 338.85, 303.03, 375.58, 286.5, 402.21, 273.65, 416.9, 294.77, 425.16, 294.77, 425.16, 309.46, 397.62, 309.46, 397.62, 309.46, 385.68, 323.23, 372.82, 323.23, 372.82, 317.72, 357.21, 312.22, 345.27, 312.22, 333.34, 312.22, 320.48, 312.22, 320.48, 311.3, 304.87, 322.32, 325.07, 322.32, 343.44, 321.4, 356.29, 323.23, 367.31, 323.23, 367.31, 330.58, 367.31, 329.66, 349.86, 337.93, 333.34, 337.93, 333.34, 326.91, 309.46, 326.91, 308.54, 322.32, 276.4, 322.32, 276.4, 315.89, 236.92, 344.35, 239.67, 373.74, 245.18, 373.74, 245.18, 423.33, 243.34, 423.33, 243.34, 436.18, 238.75, 433.43, 268.14, 468.32, 262.63, 471.08, 292.93, 449.04, 347.11, 430.67, 363.64, 430.67, 363.64, 458.22, 359.97, 459.14, 359.05, 499.54, 291.09, 505.97, 259.87, 518.83, 258.04, 535.36, 316.81, 530.77, 363.64, 528.01, 370.98, 528.01, 370.98, 551.89, 372.82, 551.89, 372.82, 550.05, 312.22, 561.99, 292.01, 561.99, 292.01, 556.48, 259.87, 565.66, 254.36, 565.66, 218.55, 572.09, 203.86, 566.58, 282.83, 566.58, 282.83, 566.58, 282.83, 563.82, 375.58, 563.82, 375.58, 569.33, 380.17, 569.33, 380.17, 599.64, 265.38, 599.64, 265.38, 606.06, 166.21, 606.06, 166.21, 596.88, 119.38, 596.88, 119.38, 580.35, 101.01, 580.35, 101.01, 509.65, 72.54, 509.65, 72.54, 478.42, 80.81, 422.41, 80.81, 409.55, 73.46, 418.74, 47.75, 418.74, 47.75, 410.47, 43.16, 410.47, 43.16, 395.78, 48.67, 347.11, 35.81, 337.93, 25.71, 337.93, 25.71, 330.58, 26.63, 330.58, 26.63, 325.07, 56.93, 251.61, 76.22, 202.94, 68.87, 202.94, 68.87, 147.84, 71.63, 147.84, 71.63, 101.01, 77.14, 93.66, 76.22, 93.66, 74.38, 90.91, 65.2, 90.91, 65.2, 79.89, 58.77, 79.89, 58.77, 78.97, 69.79, 70.71, 71.63, 59.69, 54.18, 55.1, 60.61, 55.1, 60.61, 62.44, 84.48, 45.0, 108.36, 48.67, 129.48]], "area": 102419.36454999993, "iscrowd": 0, "image_id": 192335, "bbox": [35.81, 25.71, 570.25, 399.45], "category_id": 19, "id": 56836}, {"segmentation": [[594.85, 138.11, 589.32, 138.11, 584.7, 138.11, 576.4, 146.41, 566.26, 154.71, 543.2, 161.16, 529.37, 170.38, 520.15, 173.15, 500.78, 173.15, 487.87, 172.23, 471.27, 168.54, 457.43, 164.85, 441.76, 168.54, 436.22, 174.07, 425.16, 183.3, 422.39, 187.91, 420.54, 191.6, 414.09, 188.83, 414.09, 181.45, 414.09, 174.07, 414.09, 165.77, 414.09, 155.63, 405.79, 167.62, 405.79, 174.07, 405.79, 179.61, 394.72, 202.66, 385.5, 234.02, 372.59, 244.16, 367.05, 230.33, 373.51, 214.65, 374.43, 211.89, 396.57, 172.23, 397.49, 163.93, 404.87, 154.71, 434.38, 140.87, 460.2, 140.87, 470.35, 141.8, 487.87, 142.72, 508.16, 141.8, 533.06, 139.95, 539.51, 139.95, 546.89, 133.5, 561.65, 126.12, 574.56, 119.66, 585.63, 107.67, 588.39, 105.83, 595.77, 119.66, 602.23, 139.95, 593.0, 150.1, 583.78, 151.94]], "area": 6799.184250000003, "iscrowd": 0, "image_id": 223454, "bbox": [367.05, 105.83, 235.18, 138.33], "category_id": 19, "id": 56916}, {"segmentation": [[344.03, 332.29, 386.27, 341.56, 409.96, 330.23, 406.87, 368.34, 401.72, 408.52, 402.75, 426.03, 416.14, 421.91, 413.05, 401.3, 418.2, 368.34, 426.44, 330.23, 430.56, 371.43, 427.47, 402.33, 427.47, 415.73, 438.8, 426.03, 447.04, 418.82, 437.77, 393.06, 438.8, 360.1, 444.98, 331.26, 459.4, 302.42, 469.7, 285.94, 470.73, 269.46, 481.03, 242.68, 508.84, 273.58, 525.32, 259.16, 512.96, 234.44, 513.99, 223.11, 507.81, 210.75, 498.54, 187.06, 476.91, 199.42, 444.98, 220.02, 415.11, 232.38, 404.81, 240.62, 380.09, 248.86, 313.13, 248.86, 288.41, 269.46, 278.11, 286.97, 285.32, 327.14, 291.5, 350.83, 287.38, 381.73, 285.32, 407.48, 285.32, 442.51, 302.83, 441.48, 302.83, 405.42, 314.16, 376.58, 347.12, 385.85, 325.49, 365.25]], "area": 25165.8561, "iscrowd": 0, "image_id": 242821, "bbox": [278.11, 187.06, 247.21, 255.45], "category_id": 19, "id": 56925}, {"segmentation": [[144.69, 93.14, 146.69, 122.07, 101.78, 196.91, 108.77, 217.87, 131.72, 225.85, 146.69, 219.86, 180.61, 180.95, 204.56, 198.91, 237.49, 265.76, 254.45, 300.69, 267.43, 379.52, 269.42, 394.49, 248.47, 423.43, 257.45, 439.39, 293.37, 411.45, 288.38, 349.59, 296.36, 307.67, 305.34, 385.51, 300.36, 424.42, 327.3, 396.48, 324.3, 301.69, 374.2, 306.68, 440.06, 264.77, 453.03, 315.66, 475.98, 378.52, 472.99, 414.45, 456.02, 429.41, 453.03, 451.37, 482.96, 442.39, 491.94, 424.42, 501.92, 355.57, 499.93, 339.61, 490.95, 309.67, 513.9, 343.6, 520.88, 408.46, 517.89, 427.42, 504.92, 444.38, 517.89, 450.37, 537.85, 436.4, 547.82, 417.44, 544.83, 400.48, 537.85, 328.63, 526.87, 277.74, 535.85, 232.84, 544.83, 307.67, 564.79, 328.63, 580.75, 289.71, 586.74, 192.92, 532.86, 152.01, 468.0, 152.01, 438.06, 149.02, 399.14, 177.95, 345.26, 186.93, 327.3, 202.9, 320.31, 249.8, 308.34, 262.77, 279.4, 258.78, 278.4, 246.81, 293.37, 238.82, 281.4, 226.85, 267.43, 198.91, 266.43, 184.94, 300.36, 178.95, 302.35, 165.98, 294.37, 150.01, 183.61, 110.1, 167.64, 116.09, 146.69, 96.13]], "area": 68942.01199999999, "iscrowd": 0, "image_id": 559566, "bbox": [101.78, 93.14, 484.96, 358.23], "category_id": 19, "id": 57398}, {"segmentation": [[87.74, 225.89, 89.81, 203.18, 93.94, 191.83, 93.94, 180.47, 93.94, 170.15, 101.16, 160.86, 103.23, 158.8, 106.32, 156.73, 110.45, 149.51, 112.52, 145.38, 118.71, 148.47, 119.74, 156.73, 124.9, 160.86, 133.16, 164.99, 138.32, 166.02, 146.58, 170.15, 154.84, 176.34, 158.97, 182.54, 163.1, 186.67, 165.16, 189.76, 179.61, 191.83, 183.74, 196.99, 188.9, 206.28, 195.1, 201.12, 198.19, 206.28, 197.16, 222.8, 202.32, 234.15, 204.39, 240.34, 205.42, 247.57, 205.42, 253.76, 205.42, 263.05, 205.42, 272.34, 205.42, 277.51, 203.35, 282.67, 201.29, 285.76, 205.42, 300.22, 206.45, 306.41, 206.45, 306.41, 212.65, 343.57, 212.65, 351.83, 212.65, 355.96, 212.65, 361.12, 210.58, 365.25, 205.42, 370.41, 200.26, 373.51, 196.13, 373.51, 193.03, 367.31, 197.16, 360.09, 200.26, 353.89, 201.29, 346.67, 201.29, 340.47, 196.13, 323.96, 194.06, 311.57, 192.0, 300.22, 189.94, 290.92, 185.81, 287.83, 166.19, 287.83, 151.74, 283.7, 160.0, 297.12, 155.87, 302.28, 151.74, 309.51, 148.65, 319.83, 146.58, 326.02, 140.39, 339.44, 136.26, 344.6, 133.16, 353.89, 131.1, 364.22, 129.03, 369.38, 125.94, 376.6, 121.81, 380.73, 117.68, 384.86, 108.39, 384.86, 110.45, 380.73, 112.52, 377.63, 117.68, 358.02, 128.0, 346.67, 133.16, 310.54, 138.32, 294.02, 141.42, 281.63, 141.42, 272.34, 139.35, 254.8, 135.23, 240.34, 134.19, 228.99, 134.19, 217.63, 133.16, 208.34, 124.9, 205.25, 118.71, 211.44, 112.52, 218.67, 102.19, 225.89, 99.1, 228.99, 90.84, 230.02], [245.68, 206.28, 246.71, 206.28, 251.87, 202.15, 264.26, 201.12, 275.61, 206.28, 282.84, 211.44, 299.35, 221.76, 303.48, 245.51, 305.55, 262.02, 307.61, 270.28, 308.65, 283.7, 313.81, 291.96, 320.0, 297.12, 322.06, 301.25, 314.84, 309.51, 306.58, 309.51, 293.16, 311.57, 290.06, 311.57, 286.97, 313.63, 286.97, 320.86, 285.94, 329.12, 285.94, 335.31, 284.9, 342.54, 272.52, 346.67, 268.39, 351.83, 263.23, 346.67, 268.39, 331.18, 272.52, 314.67, 277.68, 304.34, 272.52, 290.92, 263.23, 282.67, 258.06, 274.41, 249.81, 270.28, 236.39, 274.41, 226.06, 273.38, 232.26, 250.67, 232.26, 241.38, 235.35, 235.18, 249.81, 234.15, 258.06, 226.92, 253.94, 221.76, 247.74, 215.57]], "area": 18069.309850000005, "iscrowd": 0, "image_id": 338086, "bbox": [87.74, 145.38, 234.32, 239.48], "category_id": 19, "id": 57794}, {"segmentation": [[387.73, 158.36, 387.73, 167.69, 387.73, 182.2, 386.7, 193.61, 383.59, 197.75, 377.37, 197.75, 372.18, 198.79, 365.96, 199.83, 360.78, 194.64, 351.45, 178.06, 340.04, 152.14, 340.04, 135.55, 336.93, 127.26, 332.79, 121.04, 337.97, 98.23, 341.08, 94.08, 348.34, 87.86, 358.7, 77.49, 372.18, 69.2, 379.44, 68.16, 384.62, 67.13, 414.69, 78.53, 434.38, 88.9, 443.71, 94.08, 460.3, 108.6, 471.71, 121.04, 482.07, 118.96, 500.73, 120.0, 503.84, 122.07, 511.1, 134.51, 519.4, 147.99, 523.54, 158.36, 524.58, 179.09, 528.73, 187.39, 542.2, 214.34, 547.39, 219.52, 558.79, 230.93, 580.56, 223.67, 578.49, 201.9, 569.16, 171.84, 557.75, 161.47, 553.61, 151.1, 548.42, 120.0, 580.56, 116.89, 606.48, 121.04, 626.18, 132.44, 635.51, 132.44, 638.62, 171.84, 637.58, 212.27, 640.0, 230.93, 640.0, 233.0, 616.85, 246.48, 606.48, 246.48, 589.89, 243.37, 565.01, 250.63, 522.51, 254.77, 512.14, 255.81, 497.62, 262.03, 480.0, 259.96, 477.93, 266.18, 477.93, 285.87, 477.93, 301.43, 477.93, 321.12, 465.49, 333.56, 465.49, 344.97, 466.52, 347.04, 467.56, 363.63, 464.45, 367.78, 460.3, 367.78, 456.16, 360.52, 457.19, 350.15, 457.19, 342.89, 457.19, 328.38, 459.27, 316.98, 456.16, 307.65, 456.16, 292.1, 456.16, 275.51, 456.16, 260.99, 435.42, 267.21, 422.98, 280.69, 407.43, 307.65, 408.47, 318.01, 415.72, 336.67, 424.02, 348.08, 428.16, 344.97, 434.38, 349.11, 435.42, 365.7, 428.16, 370.89, 412.61, 358.44, 405.36, 336.67, 403.28, 308.68, 402.25, 297.28, 410.54, 274.47, 414.69, 259.96, 415.72, 244.41, 415.72, 230.93, 410.54, 220.56, 412.61, 207.08, 413.65, 172.87, 408.47, 160.43, 398.1, 157.32]], "area": 37892.00975, "iscrowd": 0, "image_id": 3366, "bbox": [332.79, 67.13, 307.21, 303.76], "category_id": 19, "id": 57935}, {"segmentation": [[558.67, 344.3, 557.03, 353.57, 558.63, 356.23, 564.48, 356.23, 569.26, 353.57, 571.92, 349.85, 569.8, 343.46, 562.88, 336.55, 567.67, 336.02, 567.14, 331.23, 564.48, 326.45, 565.01, 313.68, 564.48, 306.77, 565.54, 298.79, 565.54, 294.54, 565.01, 288.16, 565.01, 285.5, 571.39, 297.73, 569.26, 300.92, 567.67, 305.18, 577.77, 330.7, 580.96, 338.68, 578.3, 345.06, 577.24, 350.38, 581.49, 355.7, 590.0, 354.1, 593.19, 351.97, 589.47, 340.81, 589.47, 337.08, 591.6, 332.83, 587.34, 329.11, 582.03, 320.6, 582.56, 314.75, 594.26, 322.72, 583.62, 309.43, 585.75, 304.64, 589.47, 300.92, 591.6, 300.39, 593.73, 306.77, 593.73, 315.28, 592.66, 318.47, 595.85, 322.19, 593.73, 325.38, 591.6, 329.64, 591.6, 332.3, 593.73, 334.42, 597.98, 336.02, 602.77, 334.96, 604.36, 332.3, 601.7, 329.11, 599.58, 325.92, 599.04, 324.32, 600.11, 322.19, 599.58, 320.07, 597.98, 315.81, 597.98, 311.03, 599.58, 305.71, 600.64, 304.64, 605.96, 309.43, 608.08, 311.56, 605.96, 318.47, 605.42, 321.13, 603.83, 326.98, 605.42, 328.57, 605.42, 332.3, 604.89, 334.96, 606.49, 337.08, 608.62, 337.61, 613.4, 338.15, 617.12, 336.02, 617.66, 332.83, 614.47, 328.57, 612.34, 326.45, 612.34, 324.85, 613.93, 323.79, 613.93, 321.66, 613.4, 318.47, 612.87, 316.34, 613.4, 313.15, 613.93, 312.62, 630.95, 320.07, 627.23, 315.81, 638.93, 317.41, 633.61, 313.15, 639.46, 307.83, 639.46, 303.05, 624.04, 300.39, 628.29, 296.67, 627.23, 294.01, 639.99, 286.56, 618.19, 291.35, 628.29, 283.37, 617.12, 287.63, 630.42, 278.59, 617.66, 281.25, 622.97, 271.67, 625.63, 261.57, 630.42, 237.64, 627.23, 226.47, 624.57, 213.71, 619.25, 209.45, 621.38, 206.8, 626.7, 205.2, 620.31, 199.35, 623.51, 199.88, 627.76, 199.88, 622.44, 193.5, 621.91, 188.18, 624.57, 182.87, 621.38, 182.33, 618.19, 185.52, 615.53, 188.18, 614.47, 188.18, 611.81, 187.12, 607.02, 186.06, 602.77, 188.18, 602.23, 190.84, 602.23, 192.44, 596.38, 189.25, 588.41, 187.12, 588.94, 191.91, 594.79, 196.16, 598.51, 198.29, 597.98, 204.67, 596.92, 207.33, 599.04, 209.99, 594.26, 212.65, 582.56, 209.45, 570.86, 209.45, 563.41, 213.71, 557.03, 221.15, 552.78, 230.73, 546.93, 242.43, 546.93, 258.38, 548.52, 270.61, 552.78, 278.59, 553.84, 288.69, 555.44, 295.6, 553.31, 307.83, 555.97, 322.72, 557.56, 333.89, 557.56, 346.65]], "area": 9482.975750000007, "iscrowd": 0, "image_id": 242821, "bbox": [546.93, 182.33, 93.06, 173.9], "category_id": 19, "id": 58259}, {"segmentation": [[544.7, 345.27, 542.0, 338.51, 541.55, 326.81, 545.6, 334.91, 546.95, 333.56, 545.15, 320.05, 546.5, 317.8, 549.65, 309.7, 553.25, 303.39, 551.0, 294.84, 552.8, 290.33, 552.35, 279.08, 549.65, 271.87, 547.85, 266.47, 546.5, 258.81, 546.5, 250.26, 547.85, 238.1, 551.9, 231.35, 548.3, 230.45, 546.5, 231.35, 543.8, 231.8, 541.55, 231.8, 539.29, 231.8, 535.24, 229.09, 534.34, 232.7, 537.94, 236.3, 540.2, 239.45, 537.49, 241.7, 535.69, 245.75, 537.04, 248.91, 531.64, 254.31, 530.29, 261.06, 528.49, 269.62, 530.29, 275.92, 532.09, 284.03, 531.64, 293.49, 532.99, 300.24, 532.54, 308.34, 533.44, 318.7, 535.24, 324.55, 536.14, 332.21, 532.99, 334.46, 532.54, 339.41, 533.44, 345.72, 539.29, 348.87, 544.7, 350.22, 545.6, 342.57]], "area": 1774.8344500000003, "iscrowd": 0, "image_id": 242821, "bbox": [528.49, 229.09, 24.76, 121.13], "category_id": 19, "id": 58418}, {"segmentation": [[145.96, 309.89, 145.4, 282.57, 143.73, 259.72, 143.17, 244.11, 143.73, 229.61, 154.88, 222.36, 161.01, 221.25, 174.95, 223.48, 183.31, 222.92, 188.89, 227.38, 195.02, 244.66, 198.92, 266.96, 191.12, 279.23, 190.56, 300.41, 191.12, 316.02, 187.21, 321.04, 182.75, 317.69, 182.75, 309.33, 182.75, 294.28, 182.75, 287.59, 178.85, 290.93, 176.06, 302.08, 173.28, 317.14, 163.24, 317.14, 159.9, 307.66, 157.67, 297.62, 157.67, 288.7, 158.23, 280.9, 155.44, 279.79, 150.98, 275.33, 150.98, 283.69, 154.32, 297.07, 155.44, 309.33, 154.32, 316.58, 147.08, 315.46]], "area": 4129.17255, "iscrowd": 0, "image_id": 204589, "bbox": [143.17, 221.25, 55.75, 99.79], "category_id": 19, "id": 58633}, {"segmentation": [[341.22, 271.82, 344.24, 259.74, 345.54, 254.99, 345.54, 250.68, 349.42, 245.07, 352.01, 236.87, 352.87, 232.13, 352.87, 229.11, 358.05, 217.03, 359.77, 211.85, 359.34, 207.54, 362.36, 198.48, 364.09, 197.18, 367.54, 195.89, 369.26, 193.73, 370.56, 185.1, 372.71, 184.67, 373.15, 184.67, 374.44, 187.69, 377.03, 192.01, 378.32, 194.16, 379.62, 195.03, 380.48, 190.28, 384.36, 191.14, 384.79, 191.57, 385.66, 192.01, 390.83, 192.01, 402.91, 190.28, 404.64, 189.42, 413.7, 189.85, 420.17, 188.99, 427.07, 188.99, 434.41, 188.99, 439.15, 189.85, 454.68, 193.73, 460.72, 197.18, 464.61, 198.91, 477.12, 202.79, 487.47, 205.81, 495.24, 206.24, 499.55, 208.83, 499.98, 208.83, 512.92, 210.99, 513.35, 211.42, 510.77, 214.44, 511.63, 215.3, 520.26, 215.73, 547.87, 214.87, 559.95, 214.44, 572.03, 212.71, 581.95, 210.99, 590.15, 209.26, 613.44, 217.46, 628.97, 225.66, 631.56, 230.83, 637.17, 237.73, 640.0, 248.52, 640.0, 276.99, 640.0, 337.39, 635.88, 332.21, 625.95, 323.15, 622.07, 317.98, 616.46, 314.53, 613.87, 315.82, 613.44, 317.55, 613.44, 324.45, 613.87, 331.35, 613.87, 337.82, 609.13, 353.78, 606.11, 355.94, 601.36, 359.39, 597.91, 369.75, 591.01, 376.65, 587.56, 385.28, 584.11, 390.89, 580.22, 399.51, 569.44, 412.46, 559.95, 411.59, 552.61, 408.57, 544.85, 408.14, 537.94, 408.57, 534.92, 409.0, 533.63, 404.69, 531.47, 400.38, 526.73, 395.2, 523.28, 390.45, 519.83, 381.83, 513.79, 374.92, 506.45, 361.98, 493.94, 354.22, 487.47, 343.86, 476.68, 330.06, 470.21, 318.84, 465.04, 305.9, 444.33, 326.17, 435.7, 340.41, 428.37, 360.26, 432.25, 371.47, 433.97, 380.1, 427.94, 386.57, 426.64, 384.41, 418.01, 391.32, 401.62, 396.49, 396.44, 395.63, 400.76, 386.14, 398.17, 380.53, 401.19, 374.92, 406.36, 371.47, 418.01, 346.02, 419.74, 331.78, 431.82, 308.49, 435.27, 295.11, 435.7, 292.09, 429.23, 281.31, 421.9, 273.54, 420.17, 267.5, 420.17, 265.78, 420.17, 262.33, 420.17, 261.03, 397.74, 241.19, 394.29, 241.62, 390.4, 247.23, 377.03, 262.76, 368.4, 274.84, 368.4, 276.13, 362.36, 283.03, 354.6, 282.6, 349.85, 279.15, 345.97, 275.27, 342.08, 273.11], [500.41, 298.93, 498.69, 305.4, 500.41, 320.93, 504.29, 336.03, 512.49, 347.25, 534.06, 363.21, 545.28, 377.88, 546.57, 382.62, 550.02, 391.68, 551.75, 391.68, 556.5, 386.5, 561.67, 378.31, 570.3, 370.97, 578.5, 360.62, 584.11, 346.81, 584.97, 339.48, 583.67, 332.15, 586.69, 310.58, 584.11, 295.48, 581.95, 286.85, 572.03, 286.85, 559.08, 292.02, 542.26, 297.63, 532.34, 301.08, 502.57, 298.93]], "area": 44369.25854999999, "iscrowd": 0, "image_id": 217636, "bbox": [341.22, 184.67, 298.78, 227.79], "category_id": 19, "id": 59718}, {"segmentation": [[503.69, 310.04, 503.69, 289.44, 503.69, 282.23, 503.69, 268.84, 498.54, 253.39, 495.45, 241.03, 494.42, 224.55, 501.63, 206.01, 501.63, 199.83, 499.57, 182.32, 499.57, 170.99, 501.63, 154.51, 502.66, 154.51, 508.84, 164.81, 518.11, 164.81, 523.26, 162.75, 527.38, 159.66, 534.59, 155.54, 535.62, 179.23, 535.62, 195.71, 535.62, 202.92, 536.65, 212.19, 541.8, 222.49, 547.98, 225.58, 552.1, 230.73, 556.22, 236.91, 557.25, 248.24, 555.19, 257.51, 550.04, 264.72, 550.04, 275.02, 550.04, 284.29, 549.01, 289.44, 549.01, 294.59, 547.98, 298.71, 547.98, 302.83, 536.65, 305.92, 530.47, 294.59, 529.44, 279.14, 529.44, 271.93, 529.44, 265.75, 527.38, 254.42, 527.38, 252.36, 511.93, 254.42, 511.93, 263.69, 511.93, 269.87, 513.99, 279.14, 513.99, 285.32, 513.99, 294.59, 515.02, 314.16, 515.02, 316.22, 502.66, 315.19]], "area": 5711.885599999999, "iscrowd": 0, "image_id": 338086, "bbox": [494.42, 154.51, 62.83, 161.71], "category_id": 19, "id": 60510}, {"segmentation": [[526.8, 207.35, 525.93, 205.96, 524.89, 204.4, 524.55, 201.8, 526.28, 192.1, 526.11, 187.94, 526.45, 186.03, 526.8, 184.47, 526.45, 184.47, 525.76, 185.34, 522.99, 185.16, 522.81, 185.16, 520.39, 183.26, 519.69, 180.31, 519.35, 174.59, 519.69, 171.3, 520.91, 167.14, 522.47, 164.71, 524.55, 162.8, 527.32, 161.07, 530.27, 159.51, 541.36, 158.99, 545.69, 159.86, 546.21, 159.86, 551.41, 162.28, 552.45, 162.28, 554.88, 162.28, 556.79, 162.11, 560.6, 160.9, 565.63, 159.68, 568.23, 159.16, 572.39, 158.3, 580.88, 158.64, 585.21, 159.68, 591.8, 161.76, 593.71, 159.68, 593.54, 163.84, 594.58, 165.06, 595.62, 167.31, 595.62, 168.7, 595.96, 170.26, 595.96, 171.99, 597.35, 174.59, 598.22, 175.63, 599.08, 178.4, 599.08, 180.14, 593.88, 183.08, 583.83, 173.38, 583.83, 173.38, 579.32, 173.38, 577.24, 175.8, 576.55, 177.36, 575.51, 179.44, 573.6, 181.7, 571.87, 183.26, 570.83, 184.99, 570.13, 186.72, 568.4, 190.02, 567.53, 192.1, 566.32, 195.74, 565.97, 199.03, 565.8, 201.8, 565.63, 203.88, 565.63, 204.92, 568.4, 206.83, 568.4, 207.18, 565.28, 208.04, 562.16, 208.74, 561.47, 206.48, 561.99, 201.98, 562.33, 199.72, 562.33, 196.26, 562.33, 194.18, 562.68, 189.5, 562.68, 186.72, 561.99, 187.24, 560.95, 189.32, 560.25, 191.23, 559.21, 194.7, 558.69, 197.64, 558.52, 197.99, 554.36, 202.5, 554.36, 203.36, 555.4, 205.96, 556.61, 207.18, 556.27, 207.7, 553.67, 207.7, 550.37, 208.04, 550.2, 206.14, 550.89, 204.92, 551.59, 202.84, 553.15, 199.03, 553.84, 197.12, 555.05, 193.83, 555.75, 189.32, 555.75, 187.07, 555.75, 185.86, 553.32, 186.55, 548.47, 186.55, 545.0, 186.03, 543.44, 185.51, 540.32, 183.26, 538.07, 183.26, 537.03, 183.08, 534.25, 189.67, 534.08, 190.02, 534.25, 195.39, 534.95, 197.12, 536.33, 201.28, 537.2, 203.36, 539.45, 206.83, 539.45, 207.0, 536.51, 206.66, 534.25, 206.66, 532.87, 206.14, 532.87, 202.32, 531.83, 199.2, 531.13, 196.08, 529.92, 196.43, 529.92, 196.6, 529.92, 197.47, 529.92, 200.42, 529.92, 202.5, 530.09, 203.71, 531.65, 206.83, 529.57, 207.18, 526.97, 207.52]], "area": 2133.8506500000003, "iscrowd": 0, "image_id": 191173, "bbox": [519.35, 158.3, 79.73, 50.44], "category_id": 19, "id": 60638}, {"segmentation": [[375.59, 171.47, 379.98, 177.71, 390.61, 176.32, 395.92, 169.85, 395.92, 179.09, 403.54, 181.4, 415.32, 193.64, 421.1, 202.88, 429.41, 210.5, 434.72, 210.97, 435.42, 227.83, 434.49, 244.0, 440.96, 246.07, 446.27, 242.84, 445.81, 236.14, 441.88, 231.99, 442.58, 213.05, 450.43, 212.81, 459.67, 209.81, 462.67, 222.28, 457.82, 235.68, 457.59, 253.93, 451.37, 282.78, 458.26, 293.56, 452.23, 296.14, 445.76, 296.14, 444.9, 293.13, 446.63, 271.14, 447.92, 249.16, 439.73, 256.06, 443.18, 267.27, 443.18, 283.21, 443.61, 299.59, 436.71, 299.59, 433.26, 297.87, 439.3, 290.11, 436.71, 275.02, 430.25, 250.46, 427.66, 247.01, 425.94, 263.82, 427.23, 280.63, 428.09, 289.25, 430.68, 295.28, 431.97, 302.18, 434.13, 308.21, 420.76, 308.21, 425.07, 299.59, 423.35, 288.38, 419.04, 278.04, 419.04, 271.58, 419.04, 259.51, 411.71, 251.75, 405.25, 252.61, 400.08, 259.94, 401.8, 279.76, 396.63, 295.28, 397.49, 306.06, 394.9, 308.21, 397.49, 313.38, 398.35, 317.69, 383.27, 316.83, 388.01, 311.23, 390.59, 301.75, 391.46, 289.68, 391.02, 274.16, 391.89, 253.47, 386.28, 230.2, 388.01, 224.16, 381.97, 222.44, 376.8, 218.56, 377.66, 211.23, 375.94, 200.46, 376.8, 188.82]], "area": 5766.838550000004, "iscrowd": 0, "image_id": 338086, "bbox": [375.59, 169.85, 87.08, 147.84], "category_id": 19, "id": 60764}, {"segmentation": [[600.32, 313.74, 603.12, 302.88, 602.07, 288.53, 600.32, 280.48, 599.27, 272.78, 596.11, 265.07, 593.31, 257.72, 590.51, 248.97, 588.06, 238.12, 583.86, 227.61, 581.41, 218.51, 581.76, 211.16, 589.46, 201.36, 594.01, 198.21, 602.42, 194.36, 599.62, 180.0, 600.32, 174.05, 610.47, 181.4, 618.52, 178.25, 638.13, 181.75, 632.87, 190.15, 636.03, 195.41, 636.38, 195.41, 636.38, 195.76, 636.03, 197.16, 636.03, 197.86, 635.68, 199.26, 637.43, 250.37, 636.38, 258.42, 635.68, 264.72, 636.38, 267.87, 636.03, 269.28, 633.22, 282.93, 633.22, 290.63, 633.57, 298.68, 633.92, 302.18, 633.57, 304.28, 627.27, 306.74, 626.57, 303.93, 627.62, 296.58, 627.27, 286.78, 626.92, 280.83, 626.92, 279.08, 626.92, 273.83, 626.22, 269.28, 623.07, 269.98, 621.67, 272.43, 620.62, 275.93, 618.17, 282.23, 616.77, 290.63, 615.72, 297.28, 613.62, 308.14, 613.62, 316.54, 614.32, 320.39, 612.22, 323.89, 607.32, 325.99, 604.17, 324.94, 602.07, 321.44, 600.67, 317.59]], "area": 5188.617399999997, "iscrowd": 0, "image_id": 338086, "bbox": [581.41, 174.05, 56.72, 151.94], "category_id": 19, "id": 60820}, {"segmentation": [[314.96, 216.73, 314.07, 223.84, 312.0, 226.51, 306.36, 226.51, 303.99, 220.58, 304.88, 210.8, 305.18, 201.31, 303.1, 198.05, 303.1, 193.31, 303.4, 190.35, 299.84, 185.31, 302.21, 180.27, 306.96, 183.82, 309.03, 185.6, 312.29, 182.64, 315.55, 183.82, 318.52, 182.05, 319.7, 177.6, 321.03, 184.0, 320.13, 185.42, 319.48, 186.33, 319.61, 186.84, 341.68, 208.26, 343.1, 207.62, 347.61, 209.81, 353.81, 215.36, 357.29, 220.39, 358.45, 224.39, 358.06, 228.65, 356.52, 232.78, 356.0, 234.97, 358.32, 233.68, 362.06, 236.0, 363.74, 239.87, 364.65, 242.2, 363.74, 246.58, 364.39, 246.33, 367.1, 248.39, 367.1, 251.1, 368.0, 260.65, 365.81, 270.45, 363.23, 274.84, 362.32, 278.97, 362.06, 282.71, 361.29, 285.94, 359.61, 292.13, 359.74, 297.55, 359.74, 298.71, 350.84, 298.84, 351.35, 293.81, 353.42, 291.62, 353.94, 286.97, 356.65, 280.91, 357.16, 274.84, 357.03, 269.55, 357.42, 264.39, 356.13, 254.71, 355.87, 248.65, 352.13, 249.16, 350.32, 250.84, 349.29, 253.42, 347.87, 254.33, 344.39, 281.55, 344.13, 286.33, 347.61, 288.65, 349.16, 291.74, 346.58, 294.45, 344.13, 296.0, 342.32, 299.49, 343.35, 304.39, 334.19, 305.81, 338.84, 294.45, 339.74, 290.58, 336.77, 290.07, 326.45, 277.68, 322.58, 274.33, 328.0, 255.1, 328.13, 250.97, 324.52, 247.36, 319.23, 228.26, 318.06, 220.52, 316.65, 217.68, 315.48, 217.16], [381.07, 292.32, 387.88, 292.02, 386.11, 269.5, 390.26, 268.01, 388.18, 246.67, 387.59, 241.63, 384.62, 244.89, 379.58, 241.33, 383.14, 234.52, 385.81, 230.37, 387.29, 225.03, 377.81, 219.1, 378.1, 211.99, 375.43, 203.69, 376.32, 198.65, 376.32, 195.98, 372.17, 197.16, 370.39, 199.83, 371.58, 204.58, 369.8, 211.69, 372.17, 218.21, 378.69, 270.09, 380.18, 279.28, 380.77, 288.76, 379.88, 293.21]], "area": 4561.399699999998, "iscrowd": 0, "image_id": 338086, "bbox": [299.84, 177.6, 90.42, 128.21], "category_id": 19, "id": 60856}, {"segmentation": [[239.73, 338.78, 239.73, 295.11, 245.3, 263.52, 223.0, 253.3, 196.99, 205.91, 192.34, 124.14, 158.89, 116.71, 200.7, 114.85, 215.57, 94.41, 252.74, 90.69, 306.63, 108.34, 386.54, 116.71, 454.37, 118.56, 502.69, 143.65, 509.19, 176.17, 505.48, 191.04, 502.69, 243.07, 486.89, 289.53, 478.53, 369.44, 445.08, 362.01, 450.65, 317.41, 433.93, 276.53, 409.77, 265.38, 364.24, 254.22, 328.93, 261.66, 303.84, 261.66, 287.12, 251.44, 276.9, 243.07, 258.31, 257.94, 256.45, 281.17, 281.54, 283.03, 290.83, 285.82, 275.04, 318.34, 275.04, 343.43, 252.74, 343.43, 269.46, 287.68, 260.17, 288.6, 251.81, 332.28, 243.45, 335.99]], "area": 51759.98949999999, "iscrowd": 0, "image_id": 12953, "bbox": [158.89, 90.69, 350.3, 278.75], "category_id": 20, "id": 60981}, {"segmentation": [[277.49, 243.69, 258.87, 259.52, 256.08, 282.8, 289.6, 288.39, 311.02, 302.36, 309.15, 309.8, 294.25, 327.5, 290.53, 354.5, 303.57, 352.64, 311.95, 333.08, 328.71, 313.53, 337.09, 312.6, 335.23, 332.15, 338.02, 352.64, 342.68, 365.68, 351.06, 364.74, 351.06, 347.05, 350.12, 337.74, 351.99, 310.74, 369.68, 315.39, 378.06, 307.01, 392.03, 333.08, 369.68, 363.81, 386.44, 366.61, 404.13, 345.19, 408.79, 361.02, 406.0, 375.92, 422.76, 370.33, 423.69, 325.63, 419.96, 320.98, 422.76, 276.28, 412.51, 266.04, 378.06, 253.93, 303.57, 263.25]], "area": 11232.1445, "iscrowd": 0, "image_id": 12953, "bbox": [256.08, 243.69, 167.61, 132.23], "category_id": 20, "id": 61173}, {"segmentation": [[283.91, 331.17, 281.64, 329.41, 275.34, 328.9, 271.56, 329.16, 265.25, 331.42, 261.47, 328.15, 257.19, 326.64, 248.87, 330.42, 243.57, 331.93, 236.01, 332.94, 230.97, 331.68, 226.94, 330.16, 224.92, 331.42, 222.65, 329.91, 220.13, 325.63, 217.61, 324.11, 214.84, 319.83, 211.05, 319.07, 208.28, 322.35, 200.97, 321.34, 196.18, 323.61, 191.14, 327.64, 186.85, 330.67, 184.08, 334.95, 183.07, 340.5, 180.8, 344.53, 180.05, 354.37, 180.55, 365.21, 182.06, 373.27, 182.06, 375.29, 177.02, 374.78, 175.51, 375.29, 167.19, 369.74, 164.92, 370.5, 166.69, 372.77, 171.98, 376.55, 164.67, 381.84, 156.35, 382.6, 156.35, 384.36, 157.36, 385.62, 155.59, 388.15, 152.06, 389.15, 150.8, 356.89, 148.03, 353.61, 145.51, 348.06, 142.99, 341.26, 141.22, 337.48, 137.95, 331.42, 134.92, 326.13, 133.16, 321.34, 133.16, 311.26, 133.66, 304.45, 130.89, 298.4, 126.1, 289.83, 124.59, 287.31, 124.33, 285.04, 123.58, 275.71, 120.55, 273.19, 118.54, 269.16, 117.53, 262.86, 116.77, 256.05, 121.06, 247.73, 124.33, 239.16, 124.33, 228.32, 124.33, 218.74, 124.33, 214.45, 124.59, 209.66, 130.38, 198.32, 149.29, 185.21, 169.46, 175.13, 180.55, 170.59, 188.37, 169.33, 195.68, 169.33, 206.52, 169.33, 219.62, 171.85, 235.51, 173.11, 243.32, 175.13, 251.39, 177.65, 258.45, 180.42, 267.77, 182.19, 276.6, 183.45, 295.0, 189.24, 298.53, 189.5, 318.44, 189.75, 337.86, 184.96, 343.15, 181.68, 344.41, 177.4, 345.67, 175.63, 346.93, 172.86, 346.93, 170.59, 346.68, 168.57, 340.38, 167.82, 337.6, 165.8, 334.83, 163.03, 340.38, 156.98, 351.72, 153.45, 357.52, 153.95, 359.54, 155.72, 361.55, 155.72, 367.1, 150.93, 372.9, 146.64, 377.69, 144.37, 391.05, 142.86, 403.15, 144.37, 409.45, 147.65, 415.25, 151.94, 419.53, 152.69, 423.57, 149.41, 426.34, 149.16, 429.87, 149.92, 437.43, 151.68, 437.43, 154.2, 437.43, 158.24, 433.9, 164.04, 433.4, 165.3, 431.63, 168.07, 429.87, 169.58, 428.61, 171.85, 429.62, 175.63, 428.86, 178.4, 428.86, 178.91, 433.65, 180.67, 436.68, 183.45, 439.95, 186.47, 437.94, 188.99, 439.95, 195.55, 442.98, 196.81, 442.98, 197.82, 440.71, 200.34, 440.71, 202.61, 446.26, 213.7, 448.78, 227.06, 448.78, 233.11, 452.05, 235.63, 452.56, 238.4, 452.81, 242.94, 453.31, 245.97, 453.06, 249.24, 454.07, 253.02, 454.07, 255.55, 453.06, 258.32, 454.07, 261.09, 452.05, 265.38, 450.04, 266.13, 450.04, 269.66, 447.01, 272.94, 443.99, 276.97, 443.73, 281.01, 439.95, 291.09, 437.43, 299.41, 432.89, 307.48, 429.87, 314.03, 427.1, 320.33, 414.49, 332.18, 411.21, 331.42, 409.7, 330.16, 408.69, 336.72, 403.65, 342.26, 398.86, 342.26, 389.53, 343.02, 388.53, 343.02, 388.53, 343.02, 382.48, 339.74, 380.71, 340.75, 376.17, 341.0, 371.38, 337.98, 370.63, 342.01, 368.36, 363.19, 368.11, 376.8, 368.11, 382.6, 369.37, 396.21, 368.86, 402.77, 362.31, 403.27, 355.0, 392.68, 356.76, 377.31, 356.01, 356.89, 353.74, 349.32, 349.96, 348.31, 346.93, 351.59, 343.65, 349.83, 341.13, 355.63, 335.84, 353.36, 332.31, 356.89, 328.02, 358.4, 327.02, 356.89, 320.97, 358.4, 316.43, 356.13, 315.92, 351.84, 315.67, 349.58, 310.13, 351.84, 307.6, 349.58, 302.06, 353.1, 300.04, 356.63, 299.29, 356.89, 299.54, 350.84, 296.26, 352.1, 291.98, 355.63, 287.94, 354.62, 287.69, 350.58, 288.7, 349.32, 285.17, 351.59, 283.15, 350.58, 283.15, 347.05, 284.16, 340.5, 285.42, 335.46, 285.42, 333.44, 285.17, 333.19]], "area": 54704.05615000002, "iscrowd": 0, "image_id": 374023, "bbox": [116.77, 142.86, 337.3, 260.41], "category_id": 20, "id": 61520}, {"segmentation": [[286.58, 274.13, 277.14, 265.6, 273.55, 258.86, 268.16, 242.23, 268.61, 237.74, 276.7, 227.86, 289.73, 216.62, 296.91, 210.33, 304.1, 205.84, 332.41, 181.58, 350.38, 185.17, 365.21, 186.52, 386.78, 193.26, 397.11, 192.81, 405.2, 179.78, 409.69, 173.49, 416.88, 167.2, 429.91, 160.01, 436.65, 156.86, 450.58, 153.72, 468.1, 154.62, 474.84, 157.31, 488.77, 164.05, 495.51, 168.1, 502.25, 177.08, 510.34, 186.52, 513.04, 190.56, 512.59, 205.84, 512.14, 212.13, 510.79, 227.41, 510.34, 245.83, 510.34, 260.66, 511.24, 274.58, 511.24, 292.11, 507.19, 306.49, 502.7, 310.08, 488.77, 329.85, 488.32, 329.85, 465.86, 342.88, 458.67, 362.65, 451.48, 375.68, 438.0, 381.07, 428.11, 389.16, 426.32, 393.65, 424.07, 400.84, 421.38, 419.26, 416.43, 432.74, 413.29, 438.58, 411.04, 437.24, 406.55, 421.51, 410.14, 411.18, 411.49, 400.39, 399.81, 394.55, 394.42, 395.9, 387.23, 406.23, 383.63, 420.16, 379.14, 438.58, 375.54, 457.01, 361.17, 448.92, 361.17, 432.74, 364.31, 404.44, 366.11, 397.7, 367.91, 392.3, 368.36, 387.36, 346.34, 350.97, 337.35, 333.44, 333.31, 325.36, 329.71, 318.62, 325.22, 309.63, 322.97, 305.59, 322.08, 301.99, 324.32, 288.06, 316.68, 277.28, 313.99, 271.44, 302.76, 277.28, 297.36, 277.73, 288.83, 274.13, 286.13, 272.79]], "area": 40528.15400000002, "iscrowd": 0, "image_id": 578519, "bbox": [268.16, 153.72, 244.88, 303.29], "category_id": 20, "id": 62574}, {"segmentation": [[134.72, 387.35, 117.02, 337.64, 141.53, 292.01, 159.92, 240.93, 191.93, 196.66, 247.78, 175.55, 309.75, 159.21, 345.16, 157.16, 314.52, 195.3, 272.29, 238.21, 262.08, 266.13, 260.72, 242.97, 251.86, 223.22, 223.26, 209.6, 179.67, 225.95, 178.99, 247.74, 173.54, 302.22, 186.48, 351.94, 166.73, 366.92, 161.97, 389.4, 137.45, 383.95]], "area": 12509.570300000001, "iscrowd": 0, "image_id": 578519, "bbox": [117.02, 157.16, 228.14, 232.24], "category_id": 20, "id": 63180}, {"segmentation": [[226.43, 391.18, 225.51, 381.06, 219.06, 362.65, 219.06, 354.37, 218.14, 341.48, 223.66, 325.83, 232.87, 310.18, 238.39, 297.3, 243.91, 284.41, 247.6, 276.13, 255.88, 274.29, 263.24, 275.21, 276.13, 277.97, 296.38, 280.73, 324.91, 281.65, 345.16, 276.13, 358.97, 271.53, 367.25, 271.53, 373.69, 292.7, 377.38, 300.06, 385.66, 316.63, 387.5, 330.43, 384.74, 350.68, 382.9, 364.49, 384.74, 382.9, 393.94, 389.34, 409.59, 395.78, 428.0, 396.71, 439.05, 399.47, 446.41, 393.94, 445.49, 381.98, 436.28, 365.41, 429.84, 347.92, 426.16, 323.99, 422.48, 306.5, 418.8, 289.02, 421.56, 277.97, 436.28, 266.92, 447.33, 254.96, 462.98, 240.23, 470.34, 191.45, 472.18, 184.09, 478.62, 173.04, 480.46, 169.36, 487.83, 162.92, 499.79, 159.23, 504.4, 154.63, 501.63, 143.59, 494.27, 134.38, 488.75, 117.82, 498.87, 113.21, 514.52, 110.45, 524.65, 102.17, 521.88, 95.72, 509.0, 90.2, 495.19, 88.36, 483.23, 94.8, 472.18, 96.65, 457.45, 95.72, 442.73, 91.12, 434.44, 92.04, 430.76, 94.8, 422.48, 96.65, 412.35, 97.57, 407.75, 110.45, 411.43, 127.94, 408.67, 131.62, 403.15, 133.46, 392.1, 135.3, 384.74, 136.22, 374.62, 142.67, 361.73, 146.35, 343.32, 150.03, 319.39, 153.71, 301.9, 155.55, 277.97, 155.55, 257.72, 155.55, 243.91, 155.55, 227.35, 157.39, 214.46, 160.15, 205.26, 165.68, 196.97, 172.12, 191.45, 174.88, 183.17, 185.01, 173.96, 197.89, 170.28, 210.78, 167.52, 232.87, 162.92, 246.68, 161.08, 261.4, 160.15, 274.29, 162.92, 281.65, 169.36, 288.09, 173.96, 290.86, 175.8, 294.54, 177.64, 302.82, 177.64, 314.79, 176.72, 323.07, 175.8, 335.04, 175.8, 347.92, 175.8, 360.81, 174.88, 384.74, 176.72, 391.18, 194.21, 402.23, 210.78, 402.23, 226.43, 399.47, 229.19, 395.78]], "area": 54046.837999999996, "iscrowd": 0, "image_id": 249264, "bbox": [160.15, 88.36, 364.5, 313.87], "category_id": 20, "id": 63921}, {"segmentation": [[109.1, 315.96, 113.15, 290.83, 115.58, 279.49, 117.61, 270.57, 121.26, 259.22, 128.15, 240.57, 131.39, 223.15, 143.14, 210.99, 151.25, 207.74, 156.52, 205.72, 150.84, 204.5, 147.6, 200.85, 146.79, 195.18, 150.84, 187.88, 154.49, 179.78, 157.74, 174.51, 163.41, 170.86, 167.46, 163.56, 174.35, 159.92, 175.97, 162.35, 176.79, 170.45, 182.05, 174.91, 186.92, 173.29, 196.24, 170.05, 198.67, 174.91, 196.24, 178.15, 192.19, 182.21, 190.57, 184.64, 190.57, 192.34, 190.16, 204.91, 191.38, 213.42, 195.02, 222.33, 199.89, 234.09, 203.13, 249.49, 208.0, 296.85, 211.52, 328.5, 205.35, 328.06, 198.75, 326.73, 197.86, 319.25, 195.22, 292.38, 190.38, 266.39, 187.29, 269.91, 182.45, 269.47, 179.36, 269.47, 178.48, 269.03, 179.36, 273.0, 174.96, 281.36, 172.32, 285.77, 173.64, 292.82, 172.76, 299.42, 173.64, 308.67, 174.08, 315.28, 171.0, 319.25, 167.91, 320.57, 160.42, 319.69, 156.46, 314.4, 156.02, 308.23, 153.82, 297.22, 153.38, 292.82, 154.26, 287.97, 154.26, 281.81, 153.82, 276.08, 153.82, 269.47, 153.38, 265.07, 151.17, 259.78, 150.29, 264.63, 144.57, 273.0, 139.28, 281.36, 133.55, 288.41, 130.47, 290.17, 128.71, 290.61, 126.51, 306.03, 123.86, 315.28, 123.42, 316.16, 114.17, 317.04, 109.33, 315.28]], "area": 8497.533950000001, "iscrowd": 0, "image_id": 12953, "bbox": [109.1, 159.92, 102.42, 168.58], "category_id": 20, "id": 64067}, {"segmentation": [[246.93, 423.94, 238.29, 417.03, 229.66, 389.82, 234.41, 389.82, 230.09, 377.72, 227.06, 370.81, 214.97, 363.47, 214.97, 362.17, 220.59, 357.42, 229.66, 357.85, 237.86, 357.85, 241.32, 349.22, 248.66, 349.22, 254.28, 348.78, 259.46, 359.15, 260.32, 363.04, 269.39, 360.01, 278.03, 363.47, 278.03, 367.36, 269.83, 373.84, 263.78, 370.81, 263.35, 372.54, 262.48, 373.4, 262.92, 377.29, 270.69, 377.72, 278.03, 386.36, 287.1, 397.16, 291.86, 414.87, 297.47, 421.35, 287.97, 420.05, 285.81, 418.76, 279.76, 410.12, 276.74, 412.71, 274.15, 416.17, 270.26, 417.46, 263.78, 416.17, 259.89, 420.49, 249.53, 420.92, 247.37, 423.08]], "area": 3170.538699999999, "iscrowd": 0, "image_id": 298658, "bbox": [214.97, 348.78, 82.5, 75.16], "category_id": 21, "id": 70520}, {"segmentation": [[39.23, 321.03, 36.13, 320.0, 30.97, 307.61, 44.39, 295.23, 57.81, 281.81, 67.1, 272.52, 77.42, 263.23, 78.45, 262.19, 82.58, 262.19, 91.87, 271.48, 117.68, 264.26, 131.1, 261.16, 155.87, 258.06, 165.16, 246.71, 172.39, 242.58, 199.23, 249.81, 218.84, 247.74, 226.06, 241.55, 232.26, 233.29, 246.71, 228.13, 250.84, 228.13, 259.1, 229.16, 262.19, 249.81, 264.26, 258.06, 268.39, 280.77, 262.19, 289.03, 243.61, 283.87, 235.35, 304.52, 233.29, 315.87, 233.29, 325.16, 147.61, 318.97, 140.39, 320.0, 97.03, 325.16]], "area": 13994.166400000002, "iscrowd": 0, "image_id": 546562, "bbox": [30.97, 228.13, 237.42, 97.03], "category_id": 21, "id": 70690}, {"segmentation": [[225.14, 165.27, 239.56, 167.0, 253.4, 161.81, 266.08, 161.81, 275.89, 157.2, 282.23, 156.62, 281.65, 150.85, 285.69, 147.39, 292.61, 146.24, 294.92, 146.24, 297.8, 148.55, 300.11, 150.85, 300.68, 151.43, 305.3, 148.55, 312.22, 144.51, 316.83, 142.2, 323.75, 138.17, 330.09, 134.71, 335.28, 132.98, 339.9, 135.86, 347.97, 142.78, 352.01, 149.7, 352.58, 154.31, 357.77, 162.96, 360.08, 165.85, 360.08, 165.85, 367.0, 165.85, 379.11, 165.85, 384.88, 164.12, 391.22, 167.0, 395.26, 169.88, 398.14, 171.61, 398.14, 178.53, 396.99, 183.72, 385.45, 192.37, 373.92, 196.41, 369.88, 196.41, 364.69, 195.25, 362.96, 195.25, 365.27, 197.56, 360.66, 199.87, 358.93, 203.9, 359.5, 207.94, 358.35, 212.55, 358.35, 220.05, 360.08, 227.55, 368.73, 236.2, 369.31, 239.66, 372.65, 242.43, 374.38, 253.38, 372.65, 260.3, 369.77, 263.76, 362.85, 264.92, 357.08, 269.53, 347.85, 269.53, 341.51, 268.38, 335.74, 266.65, 334.01, 267.22, 335.17, 271.84, 338.63, 276.45, 342.09, 283.37, 346.12, 287.98, 349.01, 297.79, 359.96, 318.55, 364.58, 322.58, 368.04, 326.62, 372.07, 327.77, 378.99, 328.35, 384.18, 328.93, 396.87, 327.2, 402.06, 331.23, 408.4, 332.96, 417.63, 344.5, 410.71, 345.07, 400.91, 344.5, 392.26, 344.5, 384.18, 344.5, 381.3, 343.92, 372.07, 341.04, 365.73, 341.61, 358.81, 339.88, 353.62, 337.0, 351.89, 336.42, 349.01, 343.92, 336.9, 343.34, 327.67, 343.92, 320.17, 339.88, 308.64, 339.88, 297.11, 338.73, 289.61, 338.73, 283.27, 337.0, 274.04, 337.0, 268.85, 341.61, 264.24, 342.19, 255.59, 339.31, 244.05, 335.85, 234.25, 332.39, 227.33, 330.08, 218.68, 327.77, 222.72, 331.81, 224.45, 337.0, 218.1, 332.96, 207.72, 329.5, 201.38, 330.66, 188.12, 330.08, 178.89, 330.66, 171.39, 330.66, 156.4, 326.62, 146.6, 324.89, 139.1, 321.43, 135.64, 319.12, 136.22, 305.86, 136.22, 300.67, 136.79, 293.17, 138.52, 283.95, 147.17, 260.88, 150.63, 252.81, 156.98, 247.62, 159.28, 243.0, 162.17, 241.27, 163.32, 234.93, 165.63, 226.86, 168.51, 220.51, 171.97, 213.02, 175.43, 208.4, 190.42, 180.72, 193.88, 176.69, 215.22, 169.19, 219.26, 165.73, 225.6, 164.0]], "area": 37436.45799999999, "iscrowd": 0, "image_id": 525813, "bbox": [135.64, 132.98, 281.99, 212.09], "category_id": 21, "id": 70877}, {"segmentation": [[363.52, 231.82, 371.66, 243.66, 368.7, 262.16, 368.7, 266.6, 373.14, 267.34, 373.14, 268.82, 367.96, 285.1, 368.7, 301.39, 366.48, 305.09, 358.34, 306.57, 358.34, 311.75, 362.78, 316.93, 365.0, 317.67, 381.28, 322.85, 401.27, 323.59, 419.03, 328.03, 437.53, 330.25, 456.77, 328.77, 470.1, 324.33, 480.46, 323.59, 480.46, 318.41, 477.5, 304.35, 478.98, 286.59, 479.72, 281.4, 480.46, 278.44, 479.72, 268.82, 478.98, 263.64, 479.72, 252.54, 459.73, 250.32, 423.47, 233.3, 407.93, 228.12, 398.31, 222.2, 393.13, 214.05, 384.24, 208.87, 376.1, 216.27, 379.06, 219.24, 362.78, 228.86]], "area": 10297.492499999998, "iscrowd": 0, "image_id": 525813, "bbox": [358.34, 208.87, 122.12, 121.38], "category_id": 21, "id": 71193}, {"segmentation": [[324.7, 264.38, 324.18, 259.69, 320.01, 258.38, 315.58, 258.12, 309.32, 257.34, 289.78, 254.47, 284.04, 252.65, 279.35, 256.56, 273.36, 260.99, 273.1, 275.06, 275.18, 284.18, 276.49, 287.31, 279.09, 296.43, 279.09, 303.47, 280.66, 309.2, 280.66, 314.42, 289.78, 315.72, 290.56, 313.89, 286.91, 305.29, 286.91, 299.3, 288.74, 294.35, 291.6, 288.09, 292.65, 288.09, 293.17, 296.95, 294.47, 303.21, 293.17, 311.55, 293.17, 313.37, 298.64, 313.11, 298.9, 309.98, 298.38, 300.86, 298.38, 297.21, 298.12, 290.96, 300.98, 294.61, 304.11, 294.35, 304.37, 300.6, 305.68, 305.03, 305.94, 311.81, 308.8, 314.42, 312.45, 313.89, 310.63, 307.64, 310.11, 300.34, 310.11, 295.13, 311.15, 289.4, 312.97, 286.53, 311.93, 282.88, 313.76, 282.88, 316.1, 282.1, 318.97, 282.1, 321.83, 270.37]], "area": 2031.02485, "iscrowd": 0, "image_id": 67082, "bbox": [273.1, 252.65, 51.6, 63.07], "category_id": 21, "id": 71405}, {"segmentation": [[60.9, 243.61, 54.71, 221.94, 54.71, 203.35, 53.68, 180.65, 53.68, 163.1, 56.77, 138.32, 51.61, 128.0, 43.35, 106.32, 45.42, 94.97, 56.77, 99.1, 66.06, 106.32, 81.55, 107.35, 104.26, 116.65, 108.39, 114.58, 110.45, 111.48, 118.71, 108.39, 124.9, 108.39, 125.94, 120.77, 124.9, 129.03, 119.74, 132.13, 121.81, 132.13, 141.42, 130.06, 149.68, 126.97, 160.0, 120.77, 183.74, 112.52, 210.58, 115.61, 235.35, 136.26, 233.29, 157.94, 232.26, 177.55, 234.32, 193.03, 238.45, 202.32, 238.45, 219.87, 240.52, 247.74, 246.71, 279.74, 246.71, 317.94, 240.52, 332.39, 237.42, 334.45, 233.29, 334.45, 217.81, 331.35, 211.61, 325.16, 211.61, 305.55, 216.77, 283.87, 217.81, 273.55, 217.81, 260.13, 210.58, 237.42, 202.32, 232.26, 198.19, 237.42, 198.19, 256.0, 196.13, 275.61, 179.61, 334.45, 171.35, 335.48, 158.97, 335.48, 150.71, 320.0, 161.03, 308.65, 168.26, 294.19, 168.26, 284.9, 169.29, 272.52, 170.32, 259.1, 163.1, 253.94, 140.39, 252.9, 137.29, 254.97, 124.9, 286.97, 122.84, 328.26, 120.77, 339.61, 113.55, 349.94, 101.16, 352.0, 89.81, 350.97, 72.26, 344.77, 67.1, 337.55]], "area": 35102.3923, "iscrowd": 0, "image_id": 544209, "bbox": [43.35, 94.97, 203.36, 257.03], "category_id": 21, "id": 71424}, {"segmentation": [[220.36, 272.3, 214.89, 264.1, 221.73, 242.21, 234.04, 227.16, 243.61, 226.48, 260.71, 228.53, 266.87, 235.37, 270.29, 230.58, 273.7, 236.74, 264.13, 247.68, 255.92, 265.46, 255.92, 265.46, 251.14, 285.3, 251.14, 302.4, 243.61, 280.51, 238.82, 279.14, 228.57, 279.14, 217.62, 268.2]], "area": 2156.241649999999, "iscrowd": 0, "image_id": 295295, "bbox": [214.89, 226.48, 58.81, 75.92], "category_id": 21, "id": 71427}, {"segmentation": [[72.6, 361.04, 92.57, 317.48, 104.37, 307.5, 136.13, 301.15, 168.8, 294.79, 179.69, 305.69, 181.51, 320.21, 177.88, 341.99, 177.88, 350.15, 177.88, 365.58, 172.43, 387.36, 163.35, 391.9, 166.98, 376.47, 166.98, 358.32, 166.98, 345.62, 153.37, 351.06, 151.56, 352.88, 155.19, 362.86, 144.3, 393.72, 131.59, 392.81, 146.11, 355.6, 144.3, 355.6, 125.24, 357.41, 121.61, 370.12, 124.33, 387.36, 118.89, 397.35, 117.07, 398.25, 119.79, 384.64, 115.26, 378.29, 112.53, 371.03, 103.46, 379.19, 103.46, 386.46, 105.27, 396.44, 100.74, 397.35, 97.11, 397.35, 93.48, 399.16, 99.83, 374.66, 101.64, 367.4, 96.2, 370.12, 91.66, 375.56, 83.49, 391.9, 79.86, 401.88, 66.25, 399.16, 68.06, 390.99, 68.06, 381.92, 67.16, 371.93]], "area": 7339.489050000002, "iscrowd": 0, "image_id": 67082, "bbox": [66.25, 294.79, 115.26, 107.09], "category_id": 21, "id": 71576}, {"segmentation": [[329.16, 261.55, 324.62, 263.61, 321.73, 273.11, 319.67, 283.01, 312.65, 283.01, 316.37, 289.62, 319.67, 303.65, 317.6, 305.72, 327.92, 306.95, 326.69, 302.83, 329.65, 298.51, 331.28, 306.13, 329.65, 314.57, 334.82, 314.3, 337.82, 311.85, 335.37, 305.59, 340.54, 295.78, 342.17, 289.25, 345.99, 290.34, 350.07, 296.33, 348.71, 310.22, 350.62, 306.68, 353.61, 306.4, 355.79, 294.69, 352.79, 288.16, 356.88, 283.53, 358.79, 283.8, 361.51, 298.51, 360.15, 313.49, 365.87, 314.3, 365.87, 296.87, 367.5, 282.98, 367.23, 265.55, 360.96, 253.03, 348.98, 253.3, 335.91, 256.3, 328.29, 260.77]], "area": 2116.1114000000002, "iscrowd": 0, "image_id": 67082, "bbox": [312.65, 253.03, 54.85, 61.54], "category_id": 21, "id": 71850}, {"segmentation": [[156.62, 346.13, 154.7, 347.02, 153.13, 345.81, 149.83, 341.61, 146.43, 332.2, 144.08, 325.93, 140.68, 319.39, 136.23, 315.21, 131.53, 313.9, 130.48, 308.93, 129.43, 288.01, 120.02, 287.49, 114.27, 284.61, 111.92, 283.31, 121.33, 281.48, 128.39, 279.38, 129.96, 276.51, 131.53, 270.76, 134.92, 274.15, 141.72, 272.32, 147.21, 273.11, 151.66, 279.12, 160.03, 279.38, 167.08, 278.86, 166.04, 283.57, 168.65, 285.4, 182.25, 290.63, 193.49, 292.2, 201.6, 292.2, 212.84, 291.67, 223.3, 290.37, 233.24, 290.63, 242.39, 292.98, 252.06, 296.9, 258.6, 302.39, 260.17, 326.19, 259.38, 336.12, 260.43, 347.1, 259.12, 362.27, 257.81, 374.04, 257.55, 376.39, 257.03, 381.88, 252.32, 375.87, 250.75, 365.41, 249.45, 363.31, 247.09, 377.43, 242.39, 377.43, 241.08, 371.94, 239.77, 362.01, 235.33, 356.78, 231.14, 349.46, 229.58, 343.7, 226.44, 340.83, 223.56, 342.66, 218.86, 346.58, 211.01, 347.63, 201.08, 347.37, 191.92, 346.06, 186.43, 345.27, 183.82, 348.93, 182.77, 364.1, 182.25, 374.04, 180.94, 381.09, 174.14, 381.36, 171.79, 370.9, 171.01, 366.71, 170.22, 336.65, 166.56, 337.17, 161.65, 344.32, 158.03, 345.87, 157.51, 345.87]], "area": 8193.2337, "iscrowd": 0, "image_id": 78798, "bbox": [111.92, 270.76, 148.51, 111.12], "category_id": 21, "id": 72245}, {"segmentation": [[416.99, 265.66, 415.45, 261.64, 415.45, 257.31, 416.68, 252.98, 417.61, 247.72, 417.61, 243.69, 417.92, 238.44, 418.23, 231.63, 421.33, 221.11, 421.94, 215.54, 431.84, 208.43, 457.83, 209.35, 470.83, 212.45, 479.49, 215.85, 481.03, 219.25, 486.29, 219.25, 486.6, 221.73, 484.13, 222.35, 481.34, 224.2, 481.03, 227.92, 479.49, 231.32, 478.56, 234.41, 478.56, 237.2, 476.39, 237.82, 474.23, 237.82, 470.83, 240.91, 469.9, 247.41, 465.88, 256.07, 461.23, 257.62, 461.23, 259.47, 461.23, 262.26, 461.23, 263.19, 455.67, 263.19, 455.05, 259.16, 455.05, 255.76, 452.57, 249.57, 450.41, 244.31, 449.17, 241.84, 443.29, 242.15, 441.74, 245.55, 439.58, 243.69, 438.03, 245.55, 435.56, 249.26, 435.56, 252.98, 435.56, 256.69, 435.87, 258.85, 437.41, 261.02, 438.34, 262.57, 438.34, 264.42, 438.34, 265.35, 434.32, 265.97, 433.08, 265.35, 432.46, 262.26, 431.84, 258.24, 429.37, 254.21, 428.44, 249.88, 429.06, 245.86, 429.99, 242.77, 430.3, 240.29, 429.99, 237.51, 426.28, 238.44, 423.49, 240.91, 422.87, 246.79, 421.63, 249.88, 421.02, 255.45, 421.63, 258.85, 420.71, 262.26, 416.99, 263.8]], "area": 2400.764149999999, "iscrowd": 0, "image_id": 579000, "bbox": [415.45, 208.43, 71.15, 57.54], "category_id": 21, "id": 72409}, {"segmentation": [[0.91, 172.01, 26.45, 203.02, 34.66, 220.34, 70.23, 235.85, 91.2, 271.42, 107.62, 295.13, 148.66, 335.26, 178.76, 360.79, 193.35, 371.74, 201.56, 375.39, 219.8, 401.83, 217.06, 414.6, 213.41, 418.25, 0.91, 418.25]], "area": 27995.94215, "iscrowd": 0, "image_id": 151648, "bbox": [0.91, 172.01, 218.89, 246.24], "category_id": 21, "id": 72801}, {"segmentation": [[258.76, 216.16, 276.95, 218.07, 315.24, 213.29, 318.11, 219.99, 315.24, 223.82, 314.28, 235.31, 313.33, 245.84, 310.45, 249.67, 313.33, 258.28, 314.28, 264.98, 310.45, 272.64, 298.01, 278.38, 288.44, 286.04, 282.69, 282.21, 278.86, 276.47, 282.69, 265.94, 284.61, 255.41, 278.86, 254.45, 270.25, 249.67, 269.29, 251.58, 264.5, 265.94, 263.55, 271.68, 266.42, 283.17, 266.42, 284.13, 253.02, 287.96, 247.27, 288.92, 243.44, 283.17, 249.19, 273.6, 248.23, 264.03, 249.19, 258.28, 238.66, 264.98, 239.61, 261.15, 241.53, 250.62, 245.36, 240.09, 249.19, 229.56, 252.06, 221.9]], "area": 3940.2311499999996, "iscrowd": 0, "image_id": 579000, "bbox": [238.66, 213.29, 79.45, 75.63], "category_id": 21, "id": 72808}, {"segmentation": [[264.79, 246.85, 283.74, 253.74, 307.86, 260.63, 320.49, 255.46, 330.25, 265.22, 350.92, 273.26, 351.5, 284.74, 366.43, 288.19, 371.02, 318.05, 357.81, 335.27, 323.36, 338.14, 279.72, 324.94, 247.57, 326.09, 230.92, 318.05, 247.57, 282.45, 267.09, 282.45, 258.48, 231.34], [223.45, 235.94, 195.89, 218.14, 207.37, 200.91, 212.54, 176.22, 201.63, 184.26, 192.44, 184.83, 180.96, 195.17, 182.68, 204.93, 165.46, 210.1, 130.43, 254.31, 131.58, 261.2, 152.25, 258.33, 175.79, 238.81, 205.08, 248.0]], "area": 11267.136149999997, "iscrowd": 0, "image_id": 546562, "bbox": [130.43, 176.22, 240.59, 161.92], "category_id": 21, "id": 72975}, {"segmentation": [[9.18, 228.15, 21.12, 224.48, 44.99, 220.8, 76.2, 215.3, 102.83, 209.79, 120.27, 202.44, 134.04, 183.16, 158.83, 167.55, 185.46, 148.27, 193.72, 147.36, 204.74, 134.5, 210.25, 127.16, 201.98, 119.81, 194.64, 104.2, 192.8, 85.84, 218.51, 73.91, 235.95, 79.42, 246.05, 84.92, 246.97, 79.42, 247.89, 67.48, 257.07, 61.05, 270.84, 50.04, 285.53, 24.33, 302.06, 6.89, 309.4, 24.33, 312.16, 41.77, 320.42, 34.43, 339.7, 39.02, 363.57, 47.28, 386.52, 66.56, 418.66, 87.68, 431.51, 110.63, 442.53, 117.98, 470.99, 130.83, 491.19, 136.34, 511.38, 150.11, 515.06, 161.13, 510.47, 185.92, 510.47, 200.61, 504.96, 208.87, 504.04, 218.05, 489.35, 226.31, 474.66, 229.98, 464.56, 232.74, 450.79, 237.33, 440.69, 247.43, 432.43, 254.77, 427.84, 257.53, 415.9, 257.53, 403.05, 257.53, 381.01, 254.77, 364.49, 254.77, 367.24, 255.69, 335.11, 252.02, 316.75, 253.86, 311.24, 265.79, 307.56, 277.73, 302.97, 296.09, 295.63, 315.37, 319.5, 345.67, 289.2, 363.11, 291.96, 393.41, 302.06, 420.03, 1.84, 420.03, 1.84, 232.74, 15.61, 228.15]], "area": 114864.86609999998, "iscrowd": 0, "image_id": 204755, "bbox": [1.84, 6.89, 513.22, 413.14], "category_id": 21, "id": 73020}, {"segmentation": [[430.45, 302.45, 455.23, 282.84, 481.03, 276.65, 508.9, 273.55, 530.58, 268.39, 550.19, 267.35, 558.45, 252.9, 570.84, 240.52, 579.1, 248.77, 586.32, 254.97, 596.65, 253.94, 605.94, 260.13, 611.1, 273.55, 611.1, 278.71, 597.68, 273.55, 589.42, 267.35, 585.29, 276.65, 591.48, 284.9, 592.52, 290.06, 580.13, 290.06, 579.1, 304.52, 574.97, 311.74, 571.87, 316.9, 586.32, 323.1, 602.84, 323.1, 613.16, 323.1, 610.06, 329.29, 593.55, 332.39, 583.23, 332.39, 569.81, 331.35, 559.48, 331.35, 549.16, 329.29, 540.9, 329.29, 524.39, 329.29, 519.23, 333.42, 513.03, 334.45, 500.65, 330.32, 470.71, 330.32, 451.1, 330.32, 435.61, 332.39, 427.35, 320.0, 432.52, 305.55, 440.77, 296.26]], "area": 9600.2682, "iscrowd": 0, "image_id": 546562, "bbox": [427.35, 240.52, 185.81, 93.93], "category_id": 21, "id": 73028}, {"segmentation": [[321.44, 159.91, 331.15, 152.36, 361.35, 159.91, 362.43, 159.91, 375.37, 145.89, 382.92, 131.87, 415.28, 113.53, 440.09, 113.53, 469.21, 131.87, 490.79, 142.65, 494.02, 144.81, 512.36, 138.34, 516.67, 153.44, 517.75, 165.3, 553.35, 183.64, 582.47, 239.73, 588.94, 277.48, 588.94, 299.06, 565.21, 361.62, 553.35, 390.74, 547.96, 417.71, 550.11, 452.22, 554.43, 468.4, 558.74, 472.72, 341.93, 474.88, 348.4, 450.07, 353.8, 417.71, 322.52, 330.34, 326.83, 250.52, 343.01, 207.37, 345.17, 199.82, 339.78, 185.8, 313.89, 173.93]], "area": 76992.4459, "iscrowd": 0, "image_id": 449985, "bbox": [313.89, 113.53, 275.05, 361.35], "category_id": 21, "id": 73109}, {"segmentation": [[252.4, 293.6, 256.53, 272.91, 268.95, 259.46, 279.29, 251.19, 290.67, 248.09, 295.84, 252.22, 306.18, 259.46, 315.49, 268.77, 317.56, 273.95, 321.7, 277.05, 327.91, 283.26, 326.87, 286.36, 321.7, 287.39, 305.15, 284.29, 292.74, 286.36, 281.36, 290.5, 274.12, 293.6, 273.08, 295.67, 265.84, 295.67, 257.57, 306.01, 258.6, 307.05, 265.84, 310.15, 259.64, 318.43, 257.57, 319.46]], "area": 2229.789250000001, "iscrowd": 0, "image_id": 295295, "bbox": [252.4, 248.09, 75.51, 71.37], "category_id": 21, "id": 73315}, {"segmentation": [[411.6, 132.57, 404.9, 141.19, 392.45, 150.76, 387.67, 158.42, 375.23, 165.12, 364.7, 170.86, 355.12, 171.82, 346.51, 175.65, 337.89, 177.56, 327.36, 177.56, 316.84, 177.56, 308.22, 177.56, 290.99, 179.48, 269.93, 180.43, 260.36, 180.43, 252.7, 178.52, 239.3, 167.03, 237.39, 162.25, 234.52, 152.67, 234.52, 141.19, 234.52, 130.66, 241.22, 113.43, 249.83, 100.03, 266.1, 86.63, 273.76, 80.88, 278.55, 76.1, 280.46, 69.4, 287.16, 65.57, 297.69, 59.83, 312.05, 57.91, 324.49, 53.13, 330.24, 49.3, 335.98, 44.51, 340.77, 36.85, 348.42, 34.94, 360.87, 33.98, 367.57, 33.02, 373.31, 33.02, 384.8, 34.94, 390.54, 38.77, 402.98, 50.25, 406.81, 50.25, 418.3, 55.04, 422.13, 61.74, 427.87, 65.57, 432.66, 66.53, 441.27, 61.74, 452.76, 59.83, 460.42, 52.17, 468.07, 45.47, 474.77, 44.51, 488.18, 48.34, 490.09, 60.78, 492.0, 61.74, 484.35, 69.4, 476.69, 69.4, 468.07, 74.18, 462.33, 78.97, 447.97, 82.8, 447.02, 83.76, 432.66, 84.71, 425.96, 89.5, 418.3, 95.24, 413.51, 100.99, 410.64, 114.39]], "area": 21731.99424999999, "iscrowd": 0, "image_id": 151648, "bbox": [234.52, 33.02, 257.48, 147.41], "category_id": 21, "id": 73452}, {"segmentation": [[141.68, 270.82, 106.75, 246.42, 76.81, 230.34, 59.62, 224.24, 44.09, 226.46, 34.66, 228.68, 4.17, 229.23, 0.0, 321.28, 25.79, 325.16, 39.66, 324.05, 50.19, 324.05, 58.51, 326.82, 66.27, 324.05, 75.7, 321.83, 94.55, 323.5, 96.77, 323.5, 103.98, 325.16, 113.4, 323.5, 133.92, 321.83, 134.47, 314.63, 140.57, 270.82]], "area": 11752.908000000001, "iscrowd": 0, "image_id": 525813, "bbox": [0.0, 224.24, 141.68, 102.58], "category_id": 21, "id": 73667}, {"segmentation": [[209.26, 472.45, 214.65, 440.09, 220.04, 413.12, 229.75, 387.24, 232.99, 380.76, 217.89, 366.74, 225.44, 350.56, 244.85, 348.4, 256.72, 348.4, 266.43, 348.4, 273.98, 331.15, 286.92, 320.36, 308.49, 317.12, 324.67, 319.28, 320.36, 331.15, 335.46, 367.82, 344.09, 398.02, 352.72, 419.6, 347.33, 448.72, 343.01, 459.51, 343.01, 474.61, 313.89, 473.53, 239.46, 474.61, 202.79, 474.61]], "area": 16964.946450000003, "iscrowd": 0, "image_id": 449985, "bbox": [202.79, 317.12, 149.93, 157.49], "category_id": 21, "id": 73806}, {"segmentation": [[252.61, 118.29, 272.67, 125.18, 275.8, 132.7, 287.71, 133.33, 302.75, 146.49, 319.67, 146.49, 330.32, 159.65, 340.35, 155.89, 350.37, 154.01, 356.64, 158.4, 354.13, 165.29, 346.61, 171.56, 330.95, 170.93, 327.81, 189.73, 323.43, 201.01, 324.05, 214.17, 311.52, 214.17, 308.39, 229.21, 304.63, 261.17, 302.12, 272.45, 307.13, 292.51, 309.64, 298.15, 300.24, 300.65, 287.08, 298.15, 290.84, 279.97, 290.84, 261.8, 287.71, 244.88, 280.81, 243.0, 267.03, 236.1, 269.53, 260.54, 263.27, 270.57, 261.39, 288.12, 260.76, 301.91, 247.6, 300.65, 246.97, 282.48, 249.48, 267.44, 248.85, 244.88, 245.09, 232.97, 246.34, 208.53, 243.84, 172.18, 238.82, 146.49, 234.44, 136.46, 223.78, 120.17], [206.24, 237.36, 207.49, 253.65, 204.98, 275.58, 208.74, 279.97, 215.64, 285.61, 217.52, 269.32, 216.89, 259.92]], "area": 11313.653049999999, "iscrowd": 0, "image_id": 544209, "bbox": [204.98, 118.29, 151.66, 183.62], "category_id": 21, "id": 74006}, {"segmentation": [[0.91, 156.62, 35.49, 153.89, 54.6, 156.62, 118.31, 186.65, 130.14, 162.08, 141.97, 136.6, 169.27, 142.06, 187.47, 162.08, 182.01, 178.46, 200.21, 175.73, 226.61, 184.83, 261.19, 193.02, 291.22, 233.06, 213.87, 320.43, 175.64, 344.09, 172.91, 360.47, 88.28, 274.02, 66.43, 233.06, 30.03, 216.68]], "area": 31424.27485, "iscrowd": 0, "image_id": 151648, "bbox": [0.91, 136.6, 290.31, 223.87], "category_id": 21, "id": 74130}, {"segmentation": [[448.74, 295.03, 450.81, 247.55, 442.55, 212.45, 436.35, 187.68, 441.52, 163.93, 472.48, 126.77, 472.48, 126.77, 470.42, 112.32, 484.87, 109.22, 495.19, 114.39, 506.55, 100.97, 534.42, 106.13, 536.48, 115.42, 551.97, 111.29, 561.26, 112.32, 551.97, 125.74, 540.61, 136.06, 537.52, 137.1, 540.61, 157.74, 543.71, 200.06, 541.65, 234.13, 535.45, 262.0, 533.39, 311.55, 536.48, 320.84, 524.1, 320.84, 524.1, 288.84, 518.94, 278.52, 517.9, 273.35, 510.68, 288.84, 503.45, 285.74, 506.55, 280.58, 510.68, 247.55, 491.06, 239.29, 492.1, 284.71, 490.03, 315.68, 472.48, 319.81, 476.61, 304.32, 479.71, 291.93, 468.35, 242.39, 464.23, 246.52, 462.16, 268.19, 465.26, 298.13]], "area": 16078.980050000002, "iscrowd": 0, "image_id": 544209, "bbox": [436.35, 100.97, 124.91, 219.87], "category_id": 21, "id": 74195}, {"segmentation": [[545.1, 5.5, 567.08, 117.26, 580.83, 202.46, 587.24, 224.45, 605.56, 228.12, 617.47, 224.45, 626.63, 187.81, 629.38, 183.23, 630.3, 152.99, 634.88, 139.25, 634.88, 35.73, 633.96, 0.92, 547.85, 0.0]], "area": 14914.23899999999, "iscrowd": 0, "image_id": 204755, "bbox": [545.1, 0.0, 89.78, 228.12], "category_id": 21, "id": 74483}, {"segmentation": [[385.35, 254.89, 406.81, 255.72, 423.74, 256.13, 441.49, 268.93, 448.09, 274.29, 452.22, 270.58, 459.65, 293.28, 457.17, 298.65, 438.18, 293.69, 428.28, 295.34, 419.2, 293.28, 416.72, 299.88, 415.48, 310.62, 408.05, 308.14, 408.88, 287.91, 400.21, 287.91, 391.54, 287.91, 389.89, 299.47, 393.19, 311.85, 384.11, 311.03, 379.98, 299.06, 379.98, 313.09, 377.92, 313.09, 377.51, 296.99, 375.44, 294.93, 371.31, 270.99, 379.57, 259.02, 385.76, 256.54]], "area": 3055.0887500000013, "iscrowd": 0, "image_id": 67082, "bbox": [371.31, 254.89, 88.34, 58.2], "category_id": 21, "id": 74943}, {"segmentation": [[503.55, 235.83, 524.19, 237.08, 531.08, 247.09, 591.76, 239.58, 603.03, 284.0, 603.03, 284.63, 598.02, 292.76, 595.52, 297.77, 593.02, 304.65, 585.51, 295.89, 575.5, 276.49, 546.09, 279.62, 544.21, 303.4, 540.46, 305.27, 534.83, 304.65, 534.2, 302.77, 534.83, 284.63, 521.07, 273.37, 512.93, 260.85, 511.68, 258.35, 499.17, 235.83]], "area": 3779.1007, "iscrowd": 0, "image_id": 67082, "bbox": [499.17, 235.83, 103.86, 69.44], "category_id": 21, "id": 75116}, {"segmentation": [[10.79, 377.53, 45.3, 379.69, 72.27, 374.29, 75.51, 396.94, 73.35, 400.18, 86.29, 422.83, 88.45, 427.15, 86.29, 436.85, 88.45, 448.72, 87.37, 453.03, 112.18, 464.9, 156.4, 467.06, 206.02, 470.29, 166.11, 472.45, 3.24, 469.21, 0.0, 389.39, 0.0, 382.92, 1.08, 385.08, 1.08, 385.08]], "area": 8121.030399999998, "iscrowd": 0, "image_id": 449985, "bbox": [0.0, 374.29, 206.02, 98.16], "category_id": 21, "id": 75217}, {"segmentation": [[317.44, 287.41, 328.2, 294.95, 342.19, 302.48, 348.64, 326.15, 342.19, 357.36, 322.82, 370.27, 316.36, 400.4, 306.68, 419.77, 298.07, 426.22, 292.69, 427.3, 296.99, 404.7, 303.45, 397.17, 296.99, 392.87, 293.77, 405.78, 285.16, 403.63, 286.23, 416.54, 285.16, 436.99, 285.16, 444.52, 279.78, 444.52, 267.94, 440.21, 271.17, 429.45, 274.4, 418.69, 272.24, 401.48, 269.02, 374.57, 267.94, 363.81, 261.48, 369.19, 261.48, 355.2, 259.33, 347.67, 259.33, 329.38, 261.48, 315.39, 263.64, 313.24, 262.56, 308.93, 265.79, 301.4, 269.02, 298.17, 273.32, 298.17, 283.0, 291.72, 289.46, 286.34, 301.3, 286.34, 313.13, 286.34, 318.51, 286.34]], "area": 8776.35955, "iscrowd": 0, "image_id": 295295, "bbox": [259.33, 286.34, 89.31, 158.18], "category_id": 21, "id": 75450}, {"segmentation": [[328.05, 304.85, 322.53, 299.33, 317.01, 296.01, 313.14, 297.12, 304.31, 299.33, 292.72, 302.64, 282.23, 304.85, 269.54, 305.95, 258.5, 305.95, 246.9, 309.81, 244.14, 312.02, 243.59, 317.54, 256.29, 317.54, 266.78, 314.78, 269.54, 316.99, 280.02, 319.2, 291.62, 321.4, 303.21, 321.96, 310.38, 321.96, 314.8, 315.33, 319.77, 312.57, 325.29, 312.57, 329.15, 312.57, 329.7, 308.71, 327.49, 305.95]], "area": 1247.9985999999997, "iscrowd": 0, "image_id": 298658, "bbox": [243.59, 296.01, 86.11, 25.95], "category_id": 21, "id": 75645}, {"segmentation": [[153.08, 242.23, 158.92, 241.25, 160.87, 240.28, 162.33, 237.36, 158.92, 234.43, 155.02, 231.51, 150.64, 230.05, 147.72, 232.97, 143.33, 234.92, 137.48, 235.89, 125.3, 237.84, 116.53, 241.25, 111.17, 243.2, 109.22, 248.08, 109.22, 252.95, 115.56, 254.9, 126.28, 253.43, 137.97, 251.49, 145.28, 248.56, 149.66, 251.0, 153.08, 251.0, 153.08, 248.56, 151.13, 246.61, 151.61, 241.74, 152.59, 241.25]], "area": 718.2936500000003, "iscrowd": 0, "image_id": 298658, "bbox": [109.22, 230.05, 53.11, 24.85], "category_id": 21, "id": 75656}, {"segmentation": [[403.93, 287.85, 409.56, 283.08, 416.49, 281.35, 426.01, 284.82, 430.77, 292.61, 433.8, 301.7, 434.67, 307.76, 434.67, 309.92, 436.4, 311.22, 438.56, 312.09, 438.99, 313.82, 438.13, 315.12, 434.23, 315.55, 432.93, 316.41, 431.64, 318.58, 431.64, 320.31, 432.07, 322.47, 426.44, 335.89, 423.85, 344.12, 424.71, 357.97, 425.14, 364.03, 423.41, 364.03, 422.55, 364.03, 421.25, 364.03, 419.52, 364.03, 417.79, 354.07, 419.95, 346.28, 419.52, 340.65, 423.85, 330.26, 422.98, 327.67, 422.11, 327.23, 421.68, 330.26, 420.38, 334.16, 419.95, 335.89, 419.52, 338.49, 419.52, 341.09, 418.65, 343.25, 418.65, 345.85, 419.08, 348.01, 418.22, 352.34, 416.92, 351.91, 415.19, 351.91, 413.89, 349.31, 413.89, 346.71, 413.89, 344.55, 413.46, 341.95, 413.46, 336.76, 413.46, 335.03, 413.46, 332.43, 413.46, 329.83, 412.59, 329.83, 411.73, 332.86, 412.16, 336.76, 412.59, 340.65, 412.59, 344.12, 412.16, 347.15, 412.59, 351.47, 412.59, 355.8, 412.59, 360.13, 411.73, 364.89, 410.43, 367.49, 408.26, 367.06, 406.96, 367.06, 405.67, 366.19, 404.8, 361.0, 406.53, 350.18, 406.1, 341.09, 404.37, 333.73, 403.5, 322.47, 401.34, 309.06, 400.04, 299.97, 400.47, 293.91, 402.2, 290.88], [405.04, 337.04, 402.5, 342.53, 402.92, 346.33, 403.07, 348.73, 403.21, 351.68, 403.49, 353.37, 404.33, 353.66, 405.32, 353.66, 405.6, 353.52, 406.45, 353.09, 406.73, 350.14, 405.88, 341.83, 405.46, 338.03, 405.04, 337.32]], "area": 2001.2520500000003, "iscrowd": 0, "image_id": 295295, "bbox": [400.04, 281.35, 38.95, 86.14], "category_id": 21, "id": 75681}, {"segmentation": [[58.54, 146.69, 85.94, 138.21, 78.11, 121.9, 78.11, 109.5, 81.38, 106.24, 100.3, 120.59, 108.13, 125.16, 141.41, 99.06, 166.85, 104.93, 191.65, 122.55, 212.53, 98.41, 216.44, 100.37, 213.18, 149.3, 196.22, 157.13, 175.99, 147.35, 170.12, 140.17, 158.37, 139.52, 140.1, 137.56, 123.79, 174.1, 118.57, 185.84, 81.38, 168.23, 48.75, 155.83, 49.4, 149.96]], "area": 6812.98825, "iscrowd": 0, "image_id": 151648, "bbox": [48.75, 98.41, 167.69, 87.43], "category_id": 21, "id": 75719}, {"segmentation": [[215.05, 245.93, 179.07, 247.99, 173.93, 243.88, 177.02, 235.65, 182.16, 233.6, 199.63, 231.54, 203.74, 231.54, 214.02, 227.43, 218.13, 226.4, 222.24, 228.46, 220.19, 234.63, 216.08, 239.77, 216.08, 244.9, 216.08, 245.93]], "area": 664.6564500000005, "iscrowd": 0, "image_id": 298658, "bbox": [173.93, 226.4, 48.31, 21.59], "category_id": 21, "id": 75994}, {"segmentation": [[524.63, 53.13, 516.07, 48.85, 503.94, 50.99, 493.94, 59.56, 485.38, 68.12, 479.67, 70.98, 466.82, 74.55, 453.26, 80.97, 440.42, 85.25, 438.28, 83.11, 433.64, 85.71, 418.04, 93.07, 412.41, 103.47, 409.81, 115.6, 412.84, 129.47, 411.54, 134.24, 401.58, 147.67, 390.31, 154.6, 370.38, 169.33, 353.05, 180.59, 341.35, 191.43, 337.45, 193.59, 333.55, 195.33, 331.39, 203.99, 331.82, 213.52, 334.42, 223.06, 314.49, 232.15, 301.93, 238.22, 301.49, 242.55, 306.69, 248.19, 321.86, 250.78, 333.55, 246.89, 340.49, 256.85, 350.02, 265.08, 363.88, 273.75, 375.58, 274.61, 392.48, 268.12, 403.74, 265.95, 422.37, 267.68, 453.14, 271.15, 464.4, 277.21, 473.5, 284.15, 486.93, 309.28, 509.46, 343.07, 519.43, 372.53, 524.63, 396.8, 530.69, 402.0, 535.89, 410.23, 537.19, 423.23, 538.06, 424.53, 639.88, 423.23, 639.88, 376.0, 640.0, 323.14, 640.0, 234.75, 640.0, 152.43, 639.01, 90.91, 622.11, 88.31, 614.31, 90.04, 603.05, 95.24, 584.85, 108.24, 577.48, 110.84, 570.55, 108.24, 558.42, 96.11, 554.09, 87.88, 552.36, 80.51, 550.19, 77.04, 549.32, 74.88, 547.16, 77.04, 543.69, 68.38, 543.69, 61.88, 539.79, 59.28, 530.26, 54.51, 525.06, 53.65]], "area": 72253.6731, "iscrowd": 0, "image_id": 151648, "bbox": [301.49, 48.85, 338.51, 375.68], "category_id": 21, "id": 76045}, {"segmentation": [[364.32, 283.34, 369.86, 285.18, 375.4, 283.8, 376.88, 283.98, 375.4, 287.4, 382.51, 289.06, 389.43, 289.06, 392.94, 287.58, 393.86, 282.78, 391.28, 278.35, 390.54, 265.15, 394.36, 241.06, 398.84, 224.67, 401.58, 213.94, 402.16, 205.94, 402.69, 199.54, 406.64, 190.92, 407.99, 172.81, 408.38, 160.32, 405.28, 149.43, 401.38, 143.18, 398.65, 133.43, 396.11, 126.4, 393.38, 121.91, 397.95, 121.51, 408.55, 111.96, 410.51, 107.27, 407.57, 103.35, 405.82, 102.91, 399.28, 103.13, 394.27, 104.98, 391.11, 107.05, 387.62, 111.09, 381.84, 108.91, 379.33, 104.87, 374.32, 100.95, 372.35, 100.08, 361.02, 100.08, 356.76, 101.6, 354.37, 104.0, 353.22, 107.96, 347.68, 111.49, 345.12, 111.61, 339.03, 105.72, 334.83, 102.56, 327.52, 102.56, 323.5, 105.97, 322.4, 109.87, 323.38, 113.09, 329.81, 119.69, 333.06, 122.41, 335.11, 123.14, 330.92, 128.78, 328.33, 133.55, 328.0, 137.85, 326.24, 148.62, 326.64, 155.04, 330.7, 157.56, 331.55, 159.43, 335.2, 157.56, 340.97, 154.33, 345.56, 153.65, 352.1, 154.67, 355.16, 156.71, 356.35, 160.62, 355.25, 163.68, 353.04, 164.78, 349.55, 169.11, 344.46, 172.26, 338.68, 172.94, 335.79, 171.32, 330.19, 171.92, 328.57, 174.81, 328.89, 185.54, 327.61, 190.47, 325.15, 196.84, 328.81, 205.52, 330.25, 206.97, 332.23, 218.32, 334.18, 221.72, 333.84, 224.44, 332.91, 225.63, 333.58, 231.91, 334.09, 234.29, 334.67, 243.47, 335.49, 255.54, 334.02, 263.02, 331.43, 267.55, 330.88, 271.88, 329.68, 278.35, 337.34, 279.36, 342.14, 279.27, 340.06, 284.5, 339.97, 290.59, 345.6, 292.07, 352.53, 291.6, 355.2, 287.08, 356.59, 280.25, 352.71, 272.86, 352.9, 264.19, 354.4, 258.91, 356.89, 255.77, 358.0, 249.03, 356.68, 240.37, 354.3, 236.13, 351.38, 229.37, 351.61, 224.68, 354.12, 222.49, 355.6, 223.59, 357.32, 227.03, 360.84, 227.26, 362.17, 233.98, 362.35, 246.18, 364.34, 255.55, 365.14, 269.28, 363.49, 272.54, 364.0, 280.78]], "area": 11844.885849999997, "iscrowd": 0, "image_id": 544209, "bbox": [322.4, 100.08, 88.11, 191.99], "category_id": 21, "id": 76132}, {"segmentation": [[475.25, 248.01, 481.88, 247.35, 488.83, 248.01, 492.64, 248.34, 492.64, 248.34, 495.95, 248.18, 498.44, 248.34, 499.76, 247.18, 501.25, 248.67, 501.42, 250.0, 502.41, 251.32, 501.09, 252.98, 499.6, 256.46, 497.28, 258.61, 495.29, 259.11, 493.63, 257.45, 493.63, 257.45, 493.3, 258.61, 492.64, 259.6, 495.62, 261.76, 497.44, 263.58, 495.95, 264.24, 492.97, 263.41, 492.31, 262.92, 490.99, 264.74, 492.97, 265.9, 490.99, 266.39, 488.0, 265.4, 486.68, 265.07, 484.53, 266.23, 483.04, 266.39, 476.08, 266.56, 470.12, 266.56, 468.46, 263.91, 466.64, 265.07, 465.48, 261.76, 463.99, 256.79, 467.97, 253.48, 471.28, 249.34, 476.08, 247.68]], "area": 557.3142999999999, "iscrowd": 0, "image_id": 298658, "bbox": [463.99, 247.18, 38.42, 19.38], "category_id": 21, "id": 76973}, {"segmentation": [[386.86, 241.27, 386.34, 239.43, 387.91, 237.08, 392.88, 235.25, 405.44, 233.68, 414.08, 233.68, 421.4, 234.2, 421.93, 231.85, 425.59, 234.2, 428.99, 235.25, 431.35, 239.17, 428.47, 240.48, 425.33, 240.48, 425.33, 242.05, 425.33, 243.1, 421.14, 243.88, 417.22, 244.93, 410.67, 242.84, 405.7, 242.84, 404.13, 242.84, 400.21, 242.84, 393.4, 242.84, 386.6, 242.31]], "area": 368.6418999999999, "iscrowd": 0, "image_id": 298658, "bbox": [386.34, 231.85, 45.01, 13.08], "category_id": 21, "id": 77035}, {"segmentation": [[556.9, 123.06, 594.72, 136.5, 600.61, 139.02, 610.69, 139.02, 639.27, 144.07, 638.43, 309.64, 626.66, 307.95, 625.82, 260.89, 605.65, 245.76, 605.65, 269.29, 600.61, 285.26, 598.09, 311.32, 584.64, 313.84, 588.84, 284.42, 582.96, 264.25, 582.96, 244.92, 556.06, 242.4, 545.14, 233.15, 541.78, 230.63, 544.3, 190.29, 539.25, 135.66]], "area": 12656.859249999996, "iscrowd": 0, "image_id": 544209, "bbox": [539.25, 123.06, 100.02, 190.78], "category_id": 21, "id": 77050}, {"segmentation": [[285.49, 214.65, 277.86, 215.7, 269.44, 214.12, 260.23, 214.12, 256.29, 214.12, 243.13, 212.8, 234.45, 212.54, 230.5, 216.49, 225.77, 220.17, 223.4, 229.38, 223.4, 236.48, 222.87, 243.32, 222.08, 247.53, 220.51, 253.32, 221.82, 260.42, 223.4, 263.58, 224.72, 266.21, 225.77, 271.74, 225.77, 277.0, 226.29, 280.42, 231.56, 280.68, 230.24, 272.79, 229.98, 268.05, 229.98, 266.21, 232.34, 269.1, 236.03, 266.21, 230.5, 261.21, 230.77, 257.0, 232.08, 249.64, 236.03, 250.16, 237.08, 254.37, 234.71, 258.05, 237.08, 262.79, 238.92, 269.1, 237.87, 276.47, 243.39, 278.31, 243.39, 278.31, 244.97, 267.26, 243.39, 263.84, 241.03, 258.05, 241.03, 252.27, 243.39, 248.58, 247.34, 240.69, 246.55, 233.59, 247.08, 225.96, 249.18, 222.27, 252.87, 218.85, 259.71, 216.22, 265.49, 217.28, 270.49, 218.33, 277.6, 218.85, 283.12, 217.01], [264.97, 272.26, 268.39, 272.79, 270.23, 269.1, 269.97, 260.69, 268.13, 255.42, 266.28, 259.9, 266.81, 263.05, 266.55, 264.9, 265.23, 267.79, 265.23, 270.16]], "area": 1408.5519500000005, "iscrowd": 0, "image_id": 579000, "bbox": [220.51, 212.54, 64.98, 68.14], "category_id": 21, "id": 77292}, {"segmentation": [[467.74, 315.05, 463.29, 311.15, 457.72, 306.7, 457.72, 307.81, 458.28, 316.16, 459.39, 320.61, 459.39, 325.62, 459.39, 331.19, 459.39, 335.65, 464.4, 346.78, 458.84, 347.34, 453.83, 328.96, 453.27, 328.96, 450.48, 316.72, 448.91, 310.46, 444.96, 297.29, 444.17, 292.55, 436.27, 278.86, 434.95, 271.75, 436.27, 255.42, 444.17, 244.09, 454.71, 235.67, 466.03, 231.98, 481.83, 238.04, 496.31, 250.15, 498.68, 264.37, 497.01, 281.63, 493.67, 285.53, 491.45, 287.75, 490.33, 292.76, 490.33, 293.88, 486.44, 303.9, 485.32, 307.8, 481.98, 317.82, 479.76, 318.93, 476.97, 325.61, 479.88, 333.97, 478.04, 335.81, 474.38, 331.22, 473.46, 324.8]], "area": 4306.9909, "iscrowd": 0, "image_id": 295295, "bbox": [434.95, 231.98, 63.73, 115.36], "category_id": 21, "id": 77379}, {"segmentation": [[436.12, 237.78, 440.41, 233.48, 447.93, 235.63, 457.59, 242.07, 465.11, 242.07, 471.55, 246.37, 468.33, 249.59, 439.34, 249.59, 437.19, 241.0]], "area": 342.5007500000004, "iscrowd": 0, "image_id": 298658, "bbox": [436.12, 233.48, 35.43, 16.11], "category_id": 21, "id": 77466}, {"segmentation": [[342.1, 237.43, 342.1, 241.54, 342.1, 246.68, 342.62, 250.28, 342.62, 251.82, 341.59, 259.02, 339.02, 262.1, 336.96, 268.78, 337.48, 274.44, 337.48, 279.58, 337.48, 282.15, 335.93, 282.66, 333.88, 282.66, 331.82, 280.09, 331.82, 273.92, 331.82, 265.7, 331.82, 259.53, 330.79, 261.59, 328.22, 256.96, 327.2, 251.31, 323.53, 270.9, 323.13, 275.31, 324.33, 278.91, 324.73, 281.32, 324.73, 282.92, 325.13, 285.72, 318.72, 286.12, 318.72, 270.9, 318.72, 265.7, 318.72, 256.89, 316.72, 247.68, 315.52, 236.06, 316.72, 226.85, 321.13, 216.04, 329.14, 213.23, 354.37, 215.24, 358.77, 214.03, 358.77, 218.04, 343.55, 229.25], [375.05, 220.24, 380.04, 218.88, 381.41, 221.6, 379.59, 224.78]], "area": 1574.7784999999988, "iscrowd": 0, "image_id": 579000, "bbox": [315.52, 213.23, 65.89, 72.89], "category_id": 21, "id": 77493}, {"segmentation": [[330.85, 244.23, 341.87, 236.71, 348.89, 234.21, 357.15, 232.71, 366.67, 235.46, 373.43, 239.47, 378.94, 243.98, 381.95, 248.24, 384.2, 254.0, 385.45, 258.0, 386.95, 264.01, 388.21, 269.52, 388.21, 275.28, 386.95, 282.05, 386.95, 282.3, 382.95, 289.06, 378.19, 294.32, 374.93, 296.32, 370.17, 298.83, 367.92, 304.59, 367.92, 304.59, 367.92, 312.35, 367.92, 317.86, 367.92, 320.12, 364.66, 323.37, 362.41, 325.38, 356.9, 324.37, 355.4, 325.12, 355.9, 332.89, 355.65, 341.4, 355.4, 346.41, 352.39, 346.91, 345.63, 344.16, 345.88, 335.39, 346.63, 325.63, 347.63, 319.87, 347.63, 314.61, 351.89, 293.57, 352.14, 287.06, 348.89, 262.51, 345.63, 255.0, 342.12, 250.24, 335.86, 247.99, 333.11, 246.98, 331.1, 244.98]], "area": 3026.2013999999986, "iscrowd": 0, "image_id": 295295, "bbox": [330.85, 232.71, 57.36, 114.2], "category_id": 21, "id": 77709}, {"segmentation": [[220.19, 282.31, 226.55, 277.11, 238.11, 278.84, 243.31, 282.31, 246.2, 289.82, 249.09, 300.23, 253.14, 304.27, 251.98, 310.63, 243.89, 312.36, 241.58, 320.45, 242.16, 337.21, 242.73, 345.88, 238.11, 355.13, 232.33, 356.86, 233.49, 342.42, 228.86, 346.46, 227.13, 351.08, 223.08, 360.33, 219.04, 359.75, 218.46, 327.97, 213.26, 315.83, 213.84, 297.34]], "area": 2087.13955, "iscrowd": 0, "image_id": 295295, "bbox": [213.26, 277.11, 39.88, 83.22], "category_id": 21, "id": 77976}, {"segmentation": [[146.59, 232.09, 146.88, 222.28, 151.64, 217.83, 159.95, 210.4, 169.16, 206.54, 175.4, 208.92, 183.72, 212.78, 193.82, 215.75, 198.57, 219.91, 206.29, 228.82, 208.67, 235.95, 208.97, 239.22, 208.67, 245.16, 208.08, 249.61, 206.89, 253.77, 206.0, 254.66, 205.7, 262.09, 199.76, 257.63, 194.71, 245.46, 188.17, 236.54, 178.67, 230.01, 171.84, 227.04, 165.0, 223.47, 161.74, 225.85]], "area": 1312.4937, "iscrowd": 0, "image_id": 295295, "bbox": [146.59, 206.54, 62.38, 55.55], "category_id": 21, "id": 78144}, {"segmentation": [[163.6, 256.7, 175.36, 255.39, 191.04, 256.04, 195.61, 256.7, 196.92, 250.82, 190.38, 242.98, 181.24, 235.79, 173.4, 229.26, 168.83, 224.69, 165.56, 226.65, 152.49, 230.57, 144.0, 235.14, 139.43, 238.41, 135.51, 248.86, 132.9, 258.0, 132.9, 267.15, 134.86, 274.99, 139.43, 277.6, 142.04, 274.34, 145.31, 267.15, 151.19, 262.58]], "area": 1639.5062499999997, "iscrowd": 0, "image_id": 295295, "bbox": [132.9, 224.69, 64.02, 52.91], "category_id": 21, "id": 78251}, {"segmentation": [[542.5, 189.35, 539.86, 188.61, 535.89, 188.76, 534.57, 189.93, 534.57, 192.43, 534.57, 193.02, 533.69, 194.63, 532.07, 196.54, 531.34, 197.57, 531.05, 198.45, 530.46, 200.36, 530.16, 202.42, 530.16, 203.59, 530.16, 205.65, 530.16, 206.82, 529.58, 213.28, 529.43, 215.49, 529.43, 219.01, 529.43, 221.8, 529.14, 223.86, 529.43, 225.03, 530.46, 226.06, 533.25, 227.09, 535.89, 227.38, 538.83, 227.97, 541.47, 227.97, 542.35, 222.83, 542.21, 219.74, 542.35, 217.1, 542.79, 215.49, 542.94, 214.02, 543.97, 212.11, 544.85, 210.79, 544.85, 208.44, 545.73, 206.09, 545.88, 204.03, 545.44, 201.39, 544.56, 199.63, 543.68, 196.84, 543.53, 195.22, 543.53, 191.7, 543.68, 190.08]], "area": 496.6645500000003, "iscrowd": 0, "image_id": 472861, "bbox": [529.14, 188.61, 16.74, 39.36], "category_id": 44, "id": 78511}, {"segmentation": [[53.68, 474.67, 138.32, 474.67, 144.52, 387.96, 123.87, 353.89, 124.9, 302.28, 123.87, 291.96, 123.87, 273.38, 121.81, 268.22, 126.97, 260.99, 125.94, 255.83, 99.1, 252.73, 99.1, 262.02, 101.16, 263.05, 105.29, 270.28, 99.1, 275.44, 99.1, 291.96, 88.77, 315.7, 85.68, 344.6, 79.48, 356.99, 66.06, 363.18, 54.71, 402.41]], "area": 12929.719399999994, "iscrowd": 0, "image_id": 501625, "bbox": [53.68, 252.73, 90.84, 221.94], "category_id": 44, "id": 78853}, {"segmentation": [[451.66, 376.48, 453.69, 375.14, 454.36, 374.13, 455.71, 374.01, 458.74, 374.24, 459.97, 374.01, 459.64, 372.33, 459.08, 371.77, 442.57, 354.48, 441.22, 353.47, 440.89, 347.29, 417.53, 326.27, 415.06, 324.92, 411.58, 324.7, 408.77, 326.04, 406.19, 327.84, 403.72, 330.53, 402.6, 334.35, 402.37, 336.6, 405.18, 339.97, 412.59, 346.25, 422.13, 355.62, 425.28, 357.53, 427.41, 357.65, 428.98, 358.1, 432.13, 359.67, 437.18, 363.15, 442.79, 369.77]], "area": 979.129249999999, "iscrowd": 0, "image_id": 167671, "bbox": [402.37, 324.7, 57.6, 51.78], "category_id": 44, "id": 78895}, {"segmentation": [[157.59, 149.72, 156.16, 151.15, 154.93, 151.97, 156.36, 154.64, 156.36, 156.28, 153.5, 158.32, 152.06, 162.01, 151.86, 164.88, 151.04, 166.72, 147.96, 171.03, 145.3, 171.85, 149.19, 181.68, 147.76, 186.6, 146.74, 197.86, 145.92, 206.06, 156.98, 199.71, 164.35, 196.63, 168.86, 195.81, 173.16, 195.81, 176.65, 195.81, 176.85, 195.41, 177.67, 192.74, 176.44, 188.44, 173.98, 183.73, 171.73, 182.09, 170.5, 179.22, 170.5, 177.79, 170.5, 174.3, 170.7, 172.46, 170.7, 171.23, 169.27, 169.59, 166.4, 166.93, 165.79, 166.11, 165.17, 164.47, 165.58, 162.63, 165.58, 160.17, 164.56, 158.73, 163.74, 157.5, 162.51, 155.25, 162.51, 154.43, 163.12, 153.41, 163.53, 152.59, 163.33, 150.95, 161.9, 150.54, 161.08, 149.72, 159.85, 148.7, 158.82, 148.7, 158.21, 148.9], [149.81, 215.69, 150.22, 216.92, 178.69, 214.46, 178.08, 202.58, 164.56, 207.29, 160.67, 209.54, 156.36, 211.79, 154.11, 213.43, 152.27, 214.05]], "area": 1208.5611499999998, "iscrowd": 0, "image_id": 96177, "bbox": [145.3, 148.7, 33.39, 68.22], "category_id": 44, "id": 79067}, {"segmentation": [[35.5, 434.47, 34.49, 443.1, 46.15, 446.65, 51.73, 440.05, 61.37, 434.47, 59.85, 416.21, 60.86, 387.29, 54.27, 375.12, 49.7, 367.51, 43.11, 365.48, 40.07, 369.03, 39.56, 373.09, 35.5, 382.22, 32.96, 386.28]], "area": 1795.5296000000003, "iscrowd": 0, "image_id": 453552, "bbox": [32.96, 365.48, 28.41, 81.17], "category_id": 44, "id": 79781}, {"segmentation": [[200.74, 228.47, 205.8, 237.74, 207.48, 275.64, 207.48, 278.17, 189.79, 281.54, 188.95, 257.95, 184.74, 235.21, 191.48, 226.79, 190.64, 211.62, 197.38, 209.1, 199.9, 219.2, 200.74, 230.16]], "area": 1085.548650000001, "iscrowd": 0, "image_id": 561406, "bbox": [184.74, 209.1, 22.74, 72.44], "category_id": 44, "id": 80166}, {"segmentation": [[296.62, 256.66, 296.43, 261.53, 297.79, 262.5, 297.59, 263.67, 296.81, 264.45, 296.04, 265.43, 295.45, 266.4, 294.87, 266.98, 294.28, 295.03, 296.04, 296.2, 298.18, 296.98, 300.71, 297.17, 301.49, 297.17, 302.85, 296.98, 303.83, 296.59, 305.19, 296.39, 306.36, 295.22, 306.94, 294.83, 307.53, 289.97, 306.55, 289.97, 305.97, 289.97, 305.38, 289.77, 305.38, 289.58, 304.61, 289.58, 304.41, 289.19, 304.41, 288.99, 304.22, 288.41, 304.22, 288.02, 304.22, 287.24, 304.41, 287.24, 302.66, 287.24, 302.27, 287.04, 301.29, 286.85, 300.9, 286.65, 300.71, 286.07, 300.71, 285.1, 300.9, 285.1, 301.1, 284.71, 301.29, 284.51, 301.1, 283.73, 300.52, 283.54, 300.32, 282.95, 300.13, 282.56, 300.13, 281.98, 300.32, 281.79, 301.1, 281.59, 301.49, 281.59, 302.07, 281.59, 302.85, 281.59, 302.85, 281.59, 302.85, 280.62, 302.85, 280.23, 303.05, 280.23, 304.02, 280.03, 304.61, 280.03, 304.61, 278.67, 304.61, 277.7, 304.99, 276.14, 305.77, 274.77, 306.55, 273.8, 306.94, 273.61, 307.33, 266.98, 306.36, 266.01, 305.58, 265.04, 304.61, 264.65, 304.22, 263.28, 303.83, 262.7, 304.02, 262.31, 304.8, 262.11, 305.19, 261.53, 304.8, 257.25, 304.8, 256.86, 304.22, 256.47, 302.66, 256.08, 300.71, 256.08, 298.37, 256.08, 297.01, 256.08, 296.62, 257.05]], "area": 400.1065000000002, "iscrowd": 0, "image_id": 510979, "bbox": [294.28, 256.08, 13.25, 41.09], "category_id": 44, "id": 80210}, {"segmentation": [[150.56, 75.99, 171.89, 73.86, 192.15, 72.26, 195.89, 96.26, 175.62, 93.59, 152.16, 85.06, 150.56, 76.53], [232.14, 78.66, 238.01, 79.73, 236.41, 99.99, 228.95, 99.99]], "area": 895.3680000000003, "iscrowd": 0, "image_id": 453734, "bbox": [150.56, 72.26, 87.45, 27.73], "category_id": 44, "id": 80802}, {"segmentation": [[339.86, 238.26, 348.53, 230.9, 355.03, 225.27, 356.32, 224.4, 344.63, 210.54, 335.53, 195.81, 327.3, 200.14, 332.93, 213.57, 334.67, 227.43, 337.7, 236.1], [185.21, 227.86, 183.05, 224.4, 184.78, 212.7, 185.65, 195.37, 185.65, 188.44, 192.58, 189.31, 196.91, 191.48, 200.37, 197.97, 206.44, 200.14, 207.74, 202.74, 206.01, 220.93, 204.27, 228.73, 202.11, 232.63, 193.88, 230.9, 185.21, 230.46], [195.61, 231.33, 178.28, 231.33, 174.82, 227.0, 175.68, 215.3, 179.15, 200.14, 179.58, 184.55, 185.65, 190.61, 184.35, 202.74, 185.21, 209.24, 181.31, 225.7]], "area": 1696.2351499999995, "iscrowd": 0, "image_id": 453734, "bbox": [174.82, 184.55, 181.5, 53.71], "category_id": 44, "id": 81644}, {"segmentation": [[390.14, 396.37, 400.32, 394.57, 406.91, 446.09, 405.72, 447.89, 390.14, 444.89]], "area": 690.8150000000011, "iscrowd": 0, "image_id": 528047, "bbox": [390.14, 394.57, 16.77, 53.32], "category_id": 44, "id": 81820}, {"segmentation": [[321.72, 65.69, 323.79, 94.66, 330.0, 101.9, 325.86, 109.14, 325.86, 109.14, 327.93, 115.34, 326.9, 125.69, 326.9, 137.07, 318.62, 145.34, 287.59, 145.34, 286.55, 144.31, 276.21, 127.76, 279.31, 124.66, 274.14, 118.45, 278.28, 112.24, 275.17, 102.93, 283.45, 91.55, 276.21, 49.14, 279.31, 46.03, 279.31, 31.55, 282.41, 22.24, 296.9, 10.86, 295.72, 2.67, 295.86, 1.55, 311.38, 1.55, 311.38, 12.93, 326.9, 28.45, 327.93, 39.83, 327.93, 42.93, 330.0, 51.21, 319.66, 60.52]], "area": 6093.936600000001, "iscrowd": 0, "image_id": 36417, "bbox": [274.14, 1.55, 55.86, 143.79], "category_id": 44, "id": 81904}, {"segmentation": [[257.07, 334.12, 275.54, 336.29, 314.29, 337.02, 350.5, 337.74, 378.75, 342.81, 387.08, 330.13, 392.15, 319.63, 396.5, 303.34, 399.03, 281.24, 400.84, 255.89, 403.38, 240.32, 404.46, 233.8, 409.17, 191.07, 414.24, 175.86, 413.52, 167.17, 410.26, 162.46, 410.98, 151.6, 415.69, 137.11, 416.78, 116.47, 416.05, 107.41, 408.45, 98.72, 386.72, 91.84, 358.47, 89.31, 306.32, 89.31, 277.35, 88.94, 266.48, 94.38, 265.76, 109.22, 265.76, 152.68, 265.76, 174.77, 260.33, 240.68, 260.33, 248.65, 258.88, 309.85, 258.52, 318.91, 256.71, 335.57]], "area": 35262.651350000015, "iscrowd": 0, "image_id": 142, "bbox": [256.71, 88.94, 160.07, 253.87], "category_id": 44, "id": 82331}, {"segmentation": [[136.17, 241.53, 137.48, 242.85, 139.06, 244.69, 140.64, 246.27, 143.01, 248.11, 144.58, 249.95, 146.95, 252.84, 148.27, 256.79, 148.53, 259.42, 148.53, 262.84, 148.53, 266.52, 149.85, 272.05, 150.37, 276.78, 150.37, 279.94, 150.63, 285.46, 152.48, 290.72, 155.11, 295.98, 155.63, 299.14, 156.42, 302.82, 155.63, 304.92, 154.05, 307.56, 152.21, 308.08, 149.06, 308.87, 146.16, 311.24, 143.27, 312.55, 140.9, 313.08, 134.06, 312.55, 133.27, 312.29, 131.96, 310.19, 130.64, 307.82, 129.33, 303.61, 129.33, 301.77, 129.07, 298.35, 129.33, 293.35, 129.33, 290.98, 128.54, 288.88, 128.28, 285.72, 126.96, 281.78, 125.91, 280.73, 126.7, 279.94, 126.7, 277.83, 125.65, 274.94, 125.12, 273.89, 124.59, 270.47, 123.54, 266.52, 121.96, 260.73, 121.7, 259.42, 123.28, 249.42, 123.28, 248.9, 124.07, 247.85, 124.86, 246.53, 126.43, 244.43, 126.96, 243.37, 125.65, 240.22, 125.91, 239.17, 126.7, 238.38, 127.75, 237.32, 129.07, 236.27, 131.96, 235.75, 135.11, 235.48, 136.43, 236.27, 136.43, 237.85, 135.9, 239.69, 136.17, 242.06, 137.22, 243.37]], "area": 1691.6314999999997, "iscrowd": 0, "image_id": 318509, "bbox": [121.7, 235.48, 34.72, 77.6], "category_id": 44, "id": 82758}, {"segmentation": [[33.55, 284.52, 37.42, 249.03, 52.9, 246.45, 54.19, 236.13, 61.94, 234.19, 65.81, 236.77, 67.1, 245.81, 73.55, 245.16, 74.19, 247.1, 67.74, 267.1, 61.29, 285.81, 35.48, 292.26, 34.19, 290.97]], "area": 1497.10155, "iscrowd": 0, "image_id": 185474, "bbox": [33.55, 234.19, 40.64, 58.07], "category_id": 44, "id": 82928}, {"segmentation": [[407.2, 179.44, 411.9, 179.76, 412.52, 188.2, 415.03, 198.84, 413.46, 223.25, 395.31, 224.19, 398.13, 194.78, 406.58, 180.69]], "area": 659.1870999999992, "iscrowd": 0, "image_id": 408829, "bbox": [395.31, 179.44, 19.72, 44.75], "category_id": 44, "id": 82942}, {"segmentation": [[358.23, 242.9, 359.69, 239.62, 363.33, 239.99, 365.52, 242.17, 364.79, 253.47, 368.07, 272.04, 367.71, 276.42, 365.52, 278.6, 361.51, 279.33, 358.6, 279.33, 356.05, 277.14, 355.32, 270.59, 356.41, 256.74, 356.78, 250.55, 357.51, 246.91, 357.51, 243.26]], "area": 375.5335499999998, "iscrowd": 0, "image_id": 510979, "bbox": [355.32, 239.62, 12.75, 39.71], "category_id": 44, "id": 83798}, {"segmentation": [[0.0, 165.93, 33.06, 322.04, 49.59, 379.89, 27.55, 405.88, 14.69, 416.9, 1.84, 414.14]], "area": 5955.16165, "iscrowd": 0, "image_id": 297764, "bbox": [0.0, 165.93, 49.59, 250.97], "category_id": 44, "id": 83805}, {"segmentation": [[405.14, 110.74, 405.69, 115.55, 403.83, 118.06, 403.94, 128.0, 403.94, 129.32, 403.94, 129.42, 404.48, 130.19, 408.42, 130.3, 410.27, 129.53, 410.6, 119.81, 409.51, 116.42, 409.29, 111.51, 408.53, 110.41, 405.79, 110.41, 405.79, 110.41]], "area": 110.70520000000023, "iscrowd": 0, "image_id": 280765, "bbox": [403.83, 110.41, 6.77, 19.89], "category_id": 44, "id": 83931}, {"segmentation": [[424.86, 337.63, 422.78, 351.95, 419.55, 360.96, 415.62, 366.5, 413.77, 371.35, 414.47, 382.44, 419.78, 390.75, 431.79, 393.52, 436.87, 390.52, 438.49, 386.13, 440.34, 380.82, 441.95, 372.51, 441.49, 369.5, 438.26, 359.57, 434.79, 351.49, 433.41, 345.48, 434.1, 340.4, 434.56, 337.63, 434.33, 336.01, 427.86, 334.39]], "area": 1057.7359500000002, "iscrowd": 0, "image_id": 95880, "bbox": [413.77, 334.39, 28.18, 59.13], "category_id": 44, "id": 84280}, {"segmentation": [[593.92, 170.76, 596.08, 154.8, 601.68, 145.31, 606.0, 144.87, 614.2, 126.75, 620.24, 109.06, 627.14, 96.12, 639.66, 68.5, 640.0, 93.09, 640.0, 153.94, 639.23, 181.12, 639.23, 194.93, 628.87, 197.09, 604.27, 190.18, 595.64, 180.69, 594.78, 172.06]], "area": 3412.129550000001, "iscrowd": 0, "image_id": 23906, "bbox": [593.92, 68.5, 46.08, 128.59], "category_id": 44, "id": 85094}, {"segmentation": [[290.04, 145.78, 292.7, 143.88, 293.08, 143.69, 294.98, 143.5, 294.79, 146.35, 294.79, 147.49, 294.98, 150.34, 297.45, 156.23, 299.16, 164.4, 299.73, 171.43, 298.4, 176.37, 298.21, 176.37, 294.98, 179.02, 294.6, 179.21, 290.42, 178.64, 288.52, 173.71, 290.8, 160.98, 292.13, 154.33, 291.75, 148.06, 291.75, 148.06]], "area": 244.97555000000037, "iscrowd": 0, "image_id": 408829, "bbox": [288.52, 143.5, 11.21, 35.71], "category_id": 44, "id": 85176}, {"segmentation": [[243.11, 242.17, 248.67, 242.17, 248.37, 246.18, 252.07, 251.44, 253.0, 277.09, 241.26, 278.02, 240.95, 274.62, 240.02, 250.82, 242.18, 247.11, 242.18, 242.17]], "area": 385.9258499999996, "iscrowd": 0, "image_id": 206427, "bbox": [240.02, 242.17, 12.98, 35.85], "category_id": 44, "id": 85645}, {"segmentation": [[141.3, 385.98, 163.96, 402.16, 208.18, 395.69, 239.46, 368.72, 229.75, 170.25, 201.71, 119.55, 192.0, 1.98, 131.6, 5.21, 136.99, 119.55, 114.34, 165.93, 117.57, 228.49, 122.97, 284.58, 135.91, 369.8, 140.22, 380.58, 140.22, 380.58]], "area": 36428.895000000004, "iscrowd": 0, "image_id": 67657, "bbox": [114.34, 1.98, 125.12, 400.18], "category_id": 44, "id": 85749}, {"segmentation": [[82.95, 216.79, 88.88, 211.91, 95.85, 209.12, 105.62, 207.72, 112.59, 211.56, 114.33, 212.95, 113.29, 216.09, 116.08, 219.23, 119.91, 233.18, 132.46, 258.63, 145.71, 279.19, 153.04, 291.39, 158.62, 310.38, 163.15, 327.45, 166.29, 351.16, 167.68, 359.53, 166.98, 369.64, 163.85, 380.1, 155.48, 388.12, 142.92, 394.75, 123.75, 395.44, 111.89, 388.12, 109.8, 383.94, 94.46, 336.17, 86.09, 308.64, 86.09, 301.67, 86.79, 296.09, 86.79, 287.72, 87.83, 267.33, 89.23, 261.06, 85.74, 236.83, 84.35, 228.3, 83.3, 225.51, 84.7, 222.72, 82.6, 220.28, 83.3, 217.49]], "area": 10166.812100000003, "iscrowd": 0, "image_id": 426513, "bbox": [82.6, 207.72, 85.08, 187.72], "category_id": 44, "id": 86537}, {"segmentation": [[522.3, 277.63, 530.54, 312.66, 528.48, 367.26, 522.3, 406.4, 503.75, 417.73, 474.91, 414.64, 451.22, 390.95, 454.31, 348.71, 456.37, 313.69, 469.76, 274.54, 482.12, 247.76, 485.21, 225.09, 487.27, 211.7, 517.15, 216.85, 519.21, 228.18, 519.21, 243.64, 522.3, 278.66]], "area": 12008.347999999998, "iscrowd": 0, "image_id": 426513, "bbox": [451.22, 211.7, 79.32, 206.03], "category_id": 44, "id": 86629}, {"segmentation": [[535.37, 76.94, 553.56, 79.64, 558.27, 91.09, 565.68, 98.5, 556.93, 104.56, 549.52, 104.56, 532.0, 157.78, 532.0, 163.17, 533.35, 168.56, 538.06, 177.32, 543.45, 192.81, 542.11, 215.72, 534.02, 229.19, 531.33, 237.95, 528.63, 247.38, 525.26, 252.77, 519.2, 253.44, 496.3, 241.32, 478.11, 230.54, 456.55, 220.43, 439.71, 213.02, 438.36, 208.98, 444.42, 188.77, 463.29, 165.19, 477.43, 158.46, 484.17, 154.41, 486.19, 149.02, 490.91, 146.33, 505.05, 120.73, 514.49, 104.56, 514.49, 102.54, 517.18, 93.11, 517.18, 84.35, 517.85, 78.96, 527.96, 78.29, 539.41, 77.62]], "area": 10347.206799999998, "iscrowd": 0, "image_id": 445346, "bbox": [438.36, 76.94, 127.32, 176.5], "category_id": 44, "id": 86743}, {"segmentation": [[97.03, 310.22, 97.55, 365.76, 107.98, 370.19, 118.93, 367.85, 117.11, 309.96, 117.89, 307.61, 117.11, 302.13, 109.81, 298.48, 109.55, 294.83, 107.46, 294.83, 106.94, 293.79, 105.64, 295.61, 99.9, 300.05, 97.03, 304.48, 96.77, 312.04]], "area": 1442.7484000000002, "iscrowd": 0, "image_id": 121316, "bbox": [96.77, 293.79, 22.16, 76.4], "category_id": 44, "id": 87060}, {"segmentation": [[135.06, 59.79, 137.36, 65.53, 137.36, 74.15, 132.19, 86.78, 124.73, 93.1, 124.73, 98.84, 124.73, 113.2, 125.3, 141.33, 128.17, 155.12, 132.77, 160.86, 123.58, 176.36, 133.91, 184.4, 136.79, 189.0, 143.1, 184.98, 144.25, 167.18, 161.48, 163.16, 174.11, 164.88, 179.85, 131.57, 168.94, 94.82, 164.35, 81.61, 151.72, 63.81, 151.72, 58.64, 151.14, 56.34, 137.36, 56.92]], "area": 4777.90625, "iscrowd": 0, "image_id": 386890, "bbox": [123.58, 56.34, 56.27, 132.66], "category_id": 44, "id": 87168}, {"segmentation": [[356.96, 244.32, 357.45, 250.69, 354.02, 255.25, 352.72, 260.14, 352.23, 285.75, 352.88, 287.71, 364.14, 291.62, 363.32, 265.36, 367.4, 257.37, 363.48, 251.66, 362.51, 243.02]], "area": 480.8664999999992, "iscrowd": 0, "image_id": 260871, "bbox": [352.23, 243.02, 15.17, 48.6], "category_id": 44, "id": 87540}, {"segmentation": [[39.17, 366.39, 38.66, 362.84, 37.64, 356.75, 34.6, 355.73, 30.54, 356.75, 25.98, 358.27, 24.96, 371.46, 20.9, 375.01, 20.9, 387.69, 20.9, 403.93, 22.43, 414.07, 24.96, 424.72, 24.96, 426.25, 28.51, 427.26, 32.57, 425.23, 35.61, 424.22, 35.61, 414.58, 34.09, 402.91, 35.11, 387.19, 38.66, 377.55, 39.67, 370.95, 40.18, 366.39]], "area": 958.58015, "iscrowd": 0, "image_id": 453552, "bbox": [20.9, 355.73, 19.28, 71.53], "category_id": 44, "id": 87734}, {"segmentation": [[386.19, 65.31, 383.53, 44.35, 385.6, 32.24, 390.61, 24.86, 391.8, 18.96, 397.4, 19.26, 397.11, 25.46, 402.42, 39.63, 402.72, 52.02, 392.98, 54.39, 392.39, 60.88, 392.17, 67.95, 387.64, 68.77]], "area": 583.6471500000008, "iscrowd": 0, "image_id": 386890, "bbox": [383.53, 18.96, 19.19, 49.81], "category_id": 44, "id": 87788}, {"segmentation": [[332.89, 100.98, 333.9, 108.66, 338.35, 117.77, 342.19, 120.8, 345.23, 117.57, 350.49, 116.76, 352.71, 115.95, 354.94, 112.91, 355.75, 111.5, 359.39, 113.32, 362.22, 111.9, 364.04, 111.29, 365.26, 104.21, 365.26, 95.51, 363.64, 90.66, 355.14, 93.09, 346.44, 95.11, 341.38, 97.54, 336.53, 100.17, 333.9, 100.37], [314.94, 58.23, 317.77, 55.9, 321.33, 55.78, 327.72, 56.88, 333.61, 57.37, 339.26, 56.27, 344.54, 55.41, 348.6, 54.06, 349.09, 53.08, 347.0, 51.11, 344.3, 41.41, 336.93, 34.28, 330.3, 28.02, 326.49, 21.76, 325.51, 19.3, 326.98, 18.68, 326.98, 17.7, 326.37, 16.84, 325.38, 14.39, 323.3, 11.44, 323.05, 10.95, 318.26, 12.54, 311.01, 15.86, 310.77, 19.67, 311.01, 22.86, 312.24, 24.7, 313.1, 25.07, 314.45, 25.32, 314.82, 33.18, 313.84, 39.56, 313.22, 44.35, 314.33, 50.74, 314.45, 54.67]], "area": 1651.8317500000007, "iscrowd": 0, "image_id": 260969, "bbox": [310.77, 10.95, 54.49, 109.85], "category_id": 44, "id": 88110}, {"segmentation": [[323.44, 394.16, 313.02, 397.33, 299.88, 390.99, 300.33, 328.9, 306.68, 322.1, 309.39, 311.22, 319.82, 314.39, 317.55, 328.44, 303.96, 334.34, 322.99, 357.9, 313.93, 361.98, 324.8, 394.16]], "area": 1287.3519500000004, "iscrowd": 0, "image_id": 130624, "bbox": [299.88, 311.22, 24.92, 86.11], "category_id": 44, "id": 88233}, {"segmentation": [[334.7, 461.71, 347.72, 426.44, 357.49, 416.14, 359.66, 411.25, 356.94, 407.73, 364.54, 384.94, 363.45, 380.6, 367.25, 371.65, 363.18, 368.39, 355.86, 365.41, 351.79, 365.95, 348.81, 373.82, 344.47, 376.53, 337.14, 400.13, 330.63, 401.49, 324.66, 413.15, 316.8, 431.06, 312.46, 446.25, 315.17, 455.2, 321.41, 459.0, 327.38, 462.52]], "area": 2393.6904, "iscrowd": 0, "image_id": 428340, "bbox": [312.46, 365.41, 54.79, 97.11], "category_id": 44, "id": 88340}, {"segmentation": [[365.21, 261.65, 363.94, 266.36, 364.33, 293.17, 366.36, 295.71, 366.36, 295.71, 375.38, 295.71, 375.76, 265.34, 373.86, 261.27, 373.73, 257.33, 367.12, 257.84, 366.23, 257.71]], "area": 414.52020000000016, "iscrowd": 0, "image_id": 260871, "bbox": [363.94, 257.33, 11.82, 38.38], "category_id": 44, "id": 88725}, {"segmentation": [[30.29, 365.28, 42.55, 368.68, 41.87, 405.46, 43.23, 417.72, 50.72, 427.93, 53.45, 436.1, 51.41, 459.26, 65.71, 457.9, 69.11, 463.35, 70.47, 472.88, 70.47, 479.01, 75.24, 479.01, 77.28, 464.03, 82.73, 412.95, 74.56, 393.2, 72.52, 382.98, 69.11, 371.41, 67.75, 365.96, 65.71, 355.74, 66.39, 331.91, 67.07, 321.69, 66.39, 310.11, 41.19, 312.16, 37.1, 329.18, 35.06, 346.21]], "area": 4720.48935, "iscrowd": 0, "image_id": 501625, "bbox": [30.29, 310.11, 52.44, 168.9], "category_id": 44, "id": 89195}, {"segmentation": [[441.83, 69.42, 449.0, 68.86, 457.29, 68.31, 458.39, 91.5, 460.6, 113.58, 467.22, 121.86, 465.57, 147.81, 463.36, 183.14, 447.9, 184.24, 435.2, 189.76, 435.2, 191.97, 423.61, 184.8, 423.61, 169.89, 424.71, 150.57, 425.27, 130.69, 425.27, 121.31, 432.99, 111.92, 435.2, 107.51, 438.52, 84.32, 441.28, 69.42]], "area": 3861.6645500000022, "iscrowd": 0, "image_id": 426513, "bbox": [423.61, 68.31, 43.61, 123.66], "category_id": 44, "id": 89471}, {"segmentation": [[317.98, 37.54, 320.03, 81.65, 312.85, 98.06, 315.93, 163.71, 329.27, 165.76, 348.76, 160.63, 342.6, 90.88, 340.55, 54.98, 335.42, 32.41]], "area": 3500.0954500000003, "iscrowd": 0, "image_id": 426513, "bbox": [312.85, 32.41, 35.91, 133.35], "category_id": 44, "id": 89489}, {"segmentation": [[224.41, 238.48, 224.41, 236.16, 222.47, 235.64, 219.76, 236.29, 219.11, 237.58, 219.63, 239.13, 219.63, 241.46, 217.82, 249.22, 218.47, 254.0, 219.24, 262.02, 222.6, 263.83, 227.52, 261.63, 226.61, 248.57, 226.35, 242.36, 224.8, 240.94, 224.41, 238.61, 224.8, 237.84]], "area": 203.02780000000013, "iscrowd": 0, "image_id": 206427, "bbox": [217.82, 235.64, 9.7, 28.19], "category_id": 44, "id": 90516}, {"segmentation": [[259.54, 400.42, 283.71, 319.45, 289.75, 317.03, 292.77, 308.57, 306.67, 314.61, 302.44, 326.7, 307.27, 331.53, 277.66, 411.9, 258.93, 405.25]], "area": 2282.5511999999994, "iscrowd": 0, "image_id": 428340, "bbox": [258.93, 308.57, 48.34, 103.33], "category_id": 44, "id": 90608}, {"segmentation": [[351.92, 313.54, 413.23, 415.31, 441.04, 402.67, 362.03, 300.27, 354.44, 310.38]], "area": 2843.708, "iscrowd": 0, "image_id": 374391, "bbox": [351.92, 300.27, 89.12, 115.04], "category_id": 44, "id": 90668}, {"segmentation": [[398.4, 244.04, 398.4, 246.77, 394.29, 259.1, 393.15, 267.54, 391.78, 281.0, 392.01, 286.48, 392.01, 293.55, 397.72, 293.78, 400.23, 283.51, 404.33, 283.74, 405.02, 270.51, 405.7, 260.24, 405.25, 253.62, 403.42, 248.37, 403.19, 243.12, 400.0, 242.67, 398.63, 243.12]], "area": 490.5372000000004, "iscrowd": 0, "image_id": 290153, "bbox": [391.78, 242.67, 13.92, 51.11], "category_id": 44, "id": 90690}, {"segmentation": [[63.02, 230.09, 62.66, 236.14, 59.46, 240.93, 55.55, 248.94, 54.84, 263.52, 56.08, 269.21, 60.88, 270.63, 78.84, 272.05, 81.33, 268.49, 82.58, 262.63, 81.33, 256.05, 82.58, 246.8, 80.98, 242.36, 78.49, 237.02, 78.49, 229.56, 75.29, 228.13, 71.55, 227.6, 67.11, 227.78, 64.44, 227.78, 63.2, 229.91]], "area": 990.3918, "iscrowd": 0, "image_id": 501625, "bbox": [54.84, 227.6, 27.74, 44.45], "category_id": 44, "id": 90921}, {"segmentation": [[104.9, 237.74, 116.47, 237.94, 118.43, 238.33, 117.64, 206.97, 113.53, 203.45, 111.57, 187.18, 106.28, 186.59, 104.51, 206.58, 103.73, 207.17, 104.32, 237.55]], "area": 587.5163, "iscrowd": 0, "image_id": 222572, "bbox": [103.73, 186.59, 14.7, 51.74], "category_id": 44, "id": 90936}, {"segmentation": [[79.23, 268.82, 83.74, 269.02, 89.22, 268.82, 93.14, 267.84, 91.77, 248.44, 88.83, 245.3, 87.26, 240.21, 86.09, 228.45, 84.91, 226.88, 82.95, 227.27, 81.58, 226.29, 81.78, 226.1, 80.8, 223.74, 79.82, 223.16, 78.05, 222.96, 76.49, 222.96, 75.7, 223.55, 74.92, 224.72, 74.33, 224.92, 75.51, 226.1, 76.49, 227.47, 79.43, 230.8, 79.43, 235.5, 79.82, 246.67, 78.45, 248.05, 78.45, 248.83, 78.45, 249.22, 79.43, 268.62]], "area": 475.73064999999957, "iscrowd": 0, "image_id": 222572, "bbox": [74.33, 222.96, 18.81, 46.06], "category_id": 44, "id": 91191}, {"segmentation": [[96.21, 190.56, 98.73, 186.35, 98.17, 180.88, 99.43, 178.22, 101.25, 178.5, 101.25, 187.47, 103.92, 188.87, 103.64, 196.03, 100.69, 194.48, 97.89, 193.08, 95.92, 191.26]], "area": 70.33895000000001, "iscrowd": 0, "image_id": 290153, "bbox": [95.92, 178.22, 8.0, 17.81], "category_id": 44, "id": 91587}, {"segmentation": [[332.71, 470.36, 334.45, 462.33, 347.71, 425.35, 357.48, 415.58, 361.67, 403.72, 370.39, 405.11, 365.85, 407.91, 340.39, 474.89]], "area": 665.7253500000008, "iscrowd": 0, "image_id": 428340, "bbox": [332.71, 403.72, 37.68, 71.17], "category_id": 44, "id": 93059}, {"segmentation": [[406.06, 350.21, 415.38, 329.24, 415.38, 309.42, 427.04, 312.92, 429.37, 293.11, 436.36, 287.28, 451.51, 290.78, 444.52, 314.09, 444.52, 326.91, 436.36, 343.22, 436.36, 363.03, 427.04, 371.19, 418.88, 366.53, 397.9, 350.21]], "area": 2032.6311499999995, "iscrowd": 0, "image_id": 428340, "bbox": [397.9, 287.28, 53.61, 83.91], "category_id": 44, "id": 93477}, {"segmentation": [[395.76, 188.12, 374.18, 194.28, 349.51, 187.09, 350.53, 144.94, 349.51, 93.54, 349.51, 79.15, 359.78, 37.01, 362.87, 27.75, 360.81, 9.25, 379.32, 8.22, 384.46, 9.25, 383.43, 33.92, 396.79, 62.71, 396.79, 101.77, 398.85, 150.08, 400.9, 180.92]], "area": 7644.072350000005, "iscrowd": 0, "image_id": 426513, "bbox": [349.51, 8.22, 51.39, 186.06], "category_id": 44, "id": 93674}, {"segmentation": [[368.13, 328.04, 378.47, 310.05, 400.06, 323.99, 393.31, 340.18, 383.87, 341.98, 372.17, 339.73], [379.82, 307.8, 395.11, 276.32, 396.46, 271.83, 404.55, 273.62, 412.2, 278.57, 407.7, 288.01, 405.45, 305.1, 400.96, 320.84]], "area": 1492.8239499999993, "iscrowd": 0, "image_id": 428340, "bbox": [368.13, 271.83, 44.07, 70.15], "category_id": 44, "id": 94612}, {"segmentation": [[220.74, 210.56, 250.51, 233.17, 253.27, 239.78, 252.16, 244.19, 254.92, 252.46, 253.82, 259.08, 244.45, 260.73, 241.14, 253.56, 235.63, 257.42, 220.19, 250.81, 215.23, 246.95, 219.09, 227.1, 219.64, 222.14, 215.23, 217.18, 218.54, 210.56]], "area": 1218.2728000000006, "iscrowd": 0, "image_id": 428340, "bbox": [215.23, 210.56, 39.69, 50.17], "category_id": 44, "id": 94621}, {"segmentation": [[427.44, 280.54, 421.51, 278.64, 419.85, 282.2, 419.38, 285.04, 413.93, 297.13, 408.24, 304.96, 406.34, 306.85, 399.47, 325.82, 394.25, 339.8, 394.25, 343.84, 403.5, 350.23, 406.58, 348.58, 414.88, 330.56, 417.72, 318.0, 419.38, 314.44, 425.78, 310.12, 430.05, 298.26, 432.66, 289.49, 437.63, 288.31, 436.21, 285.23, 426.73, 279.77]], "area": 1116.6434999999997, "iscrowd": 0, "image_id": 428340, "bbox": [394.25, 278.64, 43.38, 71.59], "category_id": 44, "id": 94707}, {"segmentation": [[360.46, 280.93, 361.61, 263.84, 368.31, 258.29, 369.23, 252.52, 375.47, 251.13, 377.78, 254.6, 377.78, 255.29, 377.78, 259.22, 381.24, 261.99, 381.24, 265.68, 381.01, 266.15, 378.93, 274.0, 380.55, 280.0, 381.94, 282.08, 369.7, 284.39, 360.69, 280.24]], "area": 503.96964999999955, "iscrowd": 0, "image_id": 130624, "bbox": [360.46, 251.13, 21.48, 33.26], "category_id": 44, "id": 94870}, {"segmentation": [[336.28, 310.21, 343.54, 290.23, 347.18, 280.24, 357.16, 273.89, 358.07, 258.45, 360.8, 252.09, 379.87, 259.36, 371.69, 279.33, 373.51, 288.41, 368.06, 297.5, 363.52, 313.84, 358.98, 323.83, 342.64, 319.29]], "area": 1575.8176999999996, "iscrowd": 0, "image_id": 428340, "bbox": [336.28, 252.09, 43.59, 71.74], "category_id": 44, "id": 95236}, {"segmentation": [[235.82, 172.72, 237.8, 156.93, 245.69, 156.93, 258.52, 162.85, 271.35, 173.7, 279.24, 187.52, 273.32, 192.45, 264.44, 193.44, 257.53, 193.44, 248.65, 192.45, 248.65, 182.58]], "area": 967.4332500000003, "iscrowd": 0, "image_id": 428340, "bbox": [235.82, 156.93, 43.42, 36.51], "category_id": 44, "id": 95463}, {"segmentation": [[276.13, 416.68, 298.96, 350.74, 306.57, 348.2, 316.72, 321.32, 327.37, 328.93, 319.25, 352.77, 315.7, 364.43, 293.89, 423.79, 283.24, 423.79]], "area": 1857.5442000000005, "iscrowd": 0, "image_id": 428340, "bbox": [276.13, 321.32, 51.24, 102.47], "category_id": 44, "id": 95649}, {"segmentation": [[1.5, 377.67, 1.5, 457.35, 9.29, 457.35, 14.68, 454.95, 18.87, 451.36, 20.07, 447.17, 20.07, 442.37, 19.47, 436.98, 17.08, 432.19, 17.08, 430.39, 15.28, 422.0, 14.08, 417.81, 14.08, 412.42, 15.88, 406.43, 16.48, 399.84, 16.48, 396.24, 13.48, 392.05, 11.68, 386.66, 10.49, 381.86, 9.89, 379.47, 5.09, 375.27, 2.7, 374.68, 0.9, 375.87, 0.9, 377.67]], "area": 1139.1866499999999, "iscrowd": 0, "image_id": 453552, "bbox": [0.9, 374.68, 19.17, 82.67], "category_id": 44, "id": 96430}, {"segmentation": [[119.4, 207.78, 121.09, 227.08, 132.6, 227.08, 131.92, 212.18, 129.21, 205.41, 128.87, 200.0, 121.43, 198.64]], "area": 301.58784999999995, "iscrowd": 0, "image_id": 1431, "bbox": [119.4, 198.64, 13.2, 28.44], "category_id": 44, "id": 96632}, {"segmentation": [[6.79, 360.48, 16.93, 359.78, 16.93, 366.42, 20.72, 375.36, 21.1, 404.03, 21.85, 409.27, 25.6, 430.44, 19.97, 434.94, 18.85, 435.88, 17.16, 432.32, 17.35, 431.01, 14.35, 418.64, 14.35, 411.33, 16.23, 404.96, 16.98, 397.66, 16.79, 396.34, 13.79, 393.35, 10.23, 379.86, 5.36, 375.55, 2.17, 375.36, 3.49, 372.17, 7.23, 369.18, 7.23, 367.3, 6.86, 366.93, 7.11, 365.89, 7.28, 360.76]], "area": 649.4552000000001, "iscrowd": 0, "image_id": 453552, "bbox": [2.17, 359.78, 23.43, 76.1], "category_id": 44, "id": 96762}, {"segmentation": [[109.36, 199.6, 116.98, 199.23, 116.86, 202.1, 116.86, 202.23, 117.23, 203.48, 118.73, 205.98, 119.48, 208.61, 120.98, 227.49, 109.36, 228.86, 108.11, 227.99, 107.48, 214.23, 108.86, 210.86, 108.86, 205.48, 108.61, 202.98, 109.48, 202.1]], "area": 321.7015500000003, "iscrowd": 0, "image_id": 1431, "bbox": [107.48, 199.23, 13.5, 29.63], "category_id": 44, "id": 97091}, {"segmentation": [[78.27, 229.96, 88.28, 229.96, 88.57, 211.66, 86.85, 209.08, 86.85, 204.79, 79.7, 203.93, 79.7, 210.51, 78.27, 211.37]], "area": 241.27990000000005, "iscrowd": 0, "image_id": 1431, "bbox": [78.27, 203.93, 10.3, 26.03], "category_id": 44, "id": 97167}, {"segmentation": [[64.95, 216.38, 65.08, 212.26, 65.08, 209.01, 65.08, 206.38, 66.45, 203.01, 68.83, 200.75, 69.33, 200.88, 71.95, 201.75, 71.83, 203.88, 73.58, 206.26, 74.7, 211.38, 73.45, 212.88, 75.45, 216.26, 74.45, 217.88, 74.33, 218.38, 76.95, 222.26, 76.33, 229.01, 71.58, 230.26, 65.7, 230.14, 64.7, 229.76, 65.58, 227.01]], "area": 269.87064999999996, "iscrowd": 0, "image_id": 1431, "bbox": [64.7, 200.75, 12.25, 29.51], "category_id": 44, "id": 97259}, {"segmentation": [[45.45, 203.22, 45.82, 206.05, 47.71, 207.93, 48.65, 216.43, 49.41, 232.84, 36.76, 232.28, 38.09, 214.73, 35.26, 209.44, 39.6, 206.61, 38.84, 201.14, 47.33, 200.76]], "area": 333.51724999999993, "iscrowd": 0, "image_id": 1431, "bbox": [35.26, 200.76, 14.15, 32.08], "category_id": 44, "id": 97502}, {"segmentation": [[410.84, 470.71, 412.9, 443.87, 426.32, 429.42, 468.65, 409.81, 513.03, 396.39, 526.45, 394.32, 539.87, 369.55, 555.35, 356.13, 578.06, 328.26, 593.55, 315.87, 620.39, 312.77, 634.84, 312.77, 640.0, 320.0, 640.0, 473.81, 432.52, 472.77, 409.81, 474.84]], "area": 22621.236050000003, "iscrowd": 0, "image_id": 359098, "bbox": [409.81, 312.77, 230.19, 162.07], "category_id": 63, "id": 97936}, {"segmentation": [[120.31, 274.28, 105.99, 328.7, 73.76, 329.42, 34.37, 329.42, 0.72, 328.7, 2.15, 276.43, 2.15, 211.97, 1.43, 184.76, 22.2, 179.75, 32.23, 181.18, 71.61, 179.03, 97.39, 194.07, 90.95, 160.41, 96.68, 148.24, 153.25, 141.79, 197.65, 143.23, 204.1, 143.23, 208.39, 111.0, 223.43, 81.64, 242.05, 72.33, 281.44, 73.76, 300.77, 75.19, 317.25, 85.94, 322.26, 124.61, 328.7, 132.48, 355.92, 134.63, 375.25, 133.92, 393.87, 126.75, 415.35, 127.47, 474.08, 128.9, 500.0, 128.9, 496.99, 322.97, 499.14, 329.42, 427.53, 329.42, 416.07, 308.65, 418.94, 297.19, 412.49, 280.01, 396.74, 238.47, 380.26, 208.39, 354.48, 193.35, 320.83, 183.33, 335.15, 175.45, 333.72, 152.54, 324.41, 145.37, 317.96, 124.61, 312.95, 106.7, 307.94, 99.54, 297.19, 87.37, 284.3, 77.34, 271.41, 77.34, 255.66, 78.77, 235.61, 83.07, 221.28, 93.1, 213.41, 109.57, 206.96, 128.19, 208.39, 142.51, 199.08, 153.97, 189.77, 179.03, 189.77, 194.07, 181.18, 206.25, 170.44, 206.96, 157.55, 216.99, 150.39, 223.43, 136.78, 245.63]], "area": 49018.24745000001, "iscrowd": 0, "image_id": 203876, "bbox": [0.72, 72.33, 499.28, 257.09], "category_id": 63, "id": 98200}, {"segmentation": [[2.06, 142.45, 71.23, 128.0, 64.0, 177.55, 57.81, 197.16, 42.32, 212.65, 52.65, 259.1, 62.97, 285.94, 76.39, 299.35, 86.71, 286.97, 90.84, 321.03, 92.9, 353.03, 114.58, 375.74, 154.84, 375.74, 179.61, 381.94, 207.48, 412.9, 226.06, 444.9, 246.71, 460.39, 210.58, 474.84, 0.0, 472.77, 3.1, 145.55], [156.9, 116.65, 309.68, 112.52, 301.42, 136.26, 309.68, 154.84, 270.45, 179.61, 252.9, 206.45, 257.03, 229.16, 264.26, 268.39, 257.03, 291.1, 262.19, 325.16, 273.55, 344.77, 309.68, 356.13, 341.68, 374.71, 346.84, 399.48, 346.84, 428.39, 360.26, 454.19, 347.87, 458.32, 342.71, 440.77, 298.32, 408.77, 229.16, 323.1, 217.81, 307.61, 206.45, 290.06, 169.29, 263.23, 196.13, 258.06, 213.68, 246.71, 208.52, 224.0, 186.84, 218.84, 183.74, 172.39, 161.03, 117.68], [265.29, 413.94, 303.48, 443.87, 276.65, 446.97, 262.19, 416.0], [365.42, 108.39, 464.52, 101.16, 443.87, 118.71, 411.87, 131.1, 394.32, 171.35, 373.68, 160.0, 372.65, 112.52], [591.48, 207.48, 532.65, 213.68, 522.32, 249.81, 558.45, 291.1, 587.35, 336.52, 572.9, 365.42, 559.48, 403.61, 556.39, 417.03, 578.06, 408.77, 595.61, 356.13, 609.03, 313.81, 621.42, 277.68, 636.9, 256.0, 629.68, 248.77, 640.0, 227.1, 621.42, 209.55, 597.68, 201.29, 586.32, 206.45], [449.03, 365.42, 465.55, 416.0, 468.65, 437.68, 424.26, 446.97, 429.42, 420.13, 451.1, 374.71], [389.16, 352.0, 409.81, 365.42, 398.45, 402.58, 403.61, 433.55, 389.16, 449.03, 377.81, 418.06, 384.0, 355.1]], "area": 77304.06559999999, "iscrowd": 0, "image_id": 392725, "bbox": [0.0, 101.16, 640.0, 373.68], "category_id": 63, "id": 98499}, {"segmentation": [[45.22, 337.26, 127.45, 301.63, 164.45, 333.15, 204.2, 341.37, 206.94, 359.19, 183.64, 400.3, 150.75, 441.42, 83.6, 429.08]], "area": 14246.00145, "iscrowd": 0, "image_id": 528047, "bbox": [45.22, 301.63, 161.72, 139.79], "category_id": 63, "id": 98517}, {"segmentation": [[274.67, 287.64, 278.73, 296.79, 283.82, 300.86, 287.89, 342.57, 310.27, 348.67, 311.29, 328.33, 348.93, 315.1, 375.38, 312.05, 418.1, 312.05, 438.45, 313.07, 442.52, 317.14, 446.59, 292.72, 448.62, 270.34, 425.22, 266.27, 418.1, 267.29, 401.83, 264.24, 389.62, 270.34, 380.46, 277.46, 369.27, 274.41, 328.58, 271.36, 316.37, 277.46, 278.73, 279.5], [0.0, 318.15, 3.05, 435.14, 105.8, 412.76, 112.92, 341.55, 135.3, 332.4, 135.3, 310.02, 111.9, 291.7, 97.66, 292.72, 80.37, 292.72, 69.17, 292.72, 55.95, 294.76, 38.66, 292.72, 20.35, 310.02, 4.07, 317.14], [275.68, 269.32, 269.58, 275.43, 254.32, 281.53, 247.2, 282.55, 242.11, 282.55, 231.94, 286.62, 224.82, 286.62, 217.7, 291.7, 213.63, 289.67, 204.47, 280.51, 189.21, 285.6, 181.08, 274.41, 173.95, 261.19, 160.73, 260.17, 165.82, 300.86, 165.82, 304.93, 158.7, 304.93, 152.59, 276.45, 146.49, 261.19, 158.7, 244.91, 178.02, 251.01, 194.3, 252.03, 218.71, 252.03, 247.2, 248.98, 253.3, 257.12, 269.58, 259.15, 278.73, 266.27]], "area": 26014.26975, "iscrowd": 0, "image_id": 302680, "bbox": [0.0, 244.91, 448.62, 190.23], "category_id": 63, "id": 98526}, {"segmentation": [[8.12, 465.54, 38.54, 466.58, 44.04, 491.35, 52.03, 532.06, 127.66, 638.35, 16.0, 640.0, 26.15, 591.83, 20.4, 560.17, 8.26, 539.53, 0.0, 535.4, 0.14, 464.24]], "area": 10606.156350000001, "iscrowd": 0, "image_id": 478260, "bbox": [0.0, 464.24, 127.66, 175.76], "category_id": 63, "id": 98757}, {"segmentation": [[306.96, 466.57, 307.36, 450.82, 318.77, 443.74, 427.0, 447.68, 427.0, 533.47, 427.0, 587.0, 404.96, 580.7, 375.05, 577.16, 361.27, 571.25, 360.09, 579.12, 358.91, 586.21, 353.01, 587.78, 340.02, 575.19, 325.07, 557.87, 320.74, 517.34, 317.2, 498.05, 310.11, 476.8]], "area": 14489.6272, "iscrowd": 0, "image_id": 371714, "bbox": [306.96, 443.74, 120.04, 144.04], "category_id": 63, "id": 98974}, {"segmentation": [[537.68, 430.15, 421.29, 436.33, 321.37, 426.03, 311.07, 423.97, 306.95, 434.27, 311.07, 442.51, 300.77, 446.63, 271.93, 447.66, 230.73, 368.34, 206.01, 361.13, 103.0, 361.13, 43.26, 357.01, 2.06, 340.53, 2.06, 472.38, 284.29, 475.47, 619.06, 472.38, 615.97, 439.42, 599.48, 431.18, 569.61, 455.9, 554.16, 440.45, 537.68, 434.27]], "area": 42275.99475000002, "iscrowd": 0, "image_id": 50885, "bbox": [2.06, 340.53, 617.0, 134.94], "category_id": 63, "id": 99070}, {"segmentation": [[3.68, 208.04, 0.94, 161.51, 15.54, 153.3, 42.0, 156.04, 46.56, 158.78, 49.3, 157.86, 54.77, 156.04, 59.33, 156.04, 65.72, 156.95, 67.54, 159.69, 79.4, 159.69, 80.31, 153.3, 83.96, 148.74, 89.44, 147.83, 99.47, 149.65, 104.94, 158.78, 109.51, 169.72, 110.42, 173.37, 111.33, 175.2, 115.89, 178.85, 118.63, 183.41, 120.45, 187.06, 105.86, 181.58, 86.7, 180.67, 85.79, 180.67, 75.75, 181.58, 70.28, 184.32, 65.72, 187.97, 62.07, 195.27, 61.15, 199.83, 60.24, 202.57, 57.51, 206.22, 51.12, 208.04, 44.73, 208.04, 39.26, 208.04, 37.44, 208.04, 31.96, 208.95, 21.01, 209.86, 18.28, 210.78, 10.07, 211.69, 6.42, 211.69, 6.42, 211.69]], "area": 4539.741299999999, "iscrowd": 0, "image_id": 480818, "bbox": [0.94, 147.83, 119.51, 63.86], "category_id": 63, "id": 99607}, {"segmentation": [[4.13, 290.5, 60.56, 291.88, 38.54, 375.83, 39.91, 425.38, 53.68, 470.8, 70.19, 487.32, 61.94, 499.7, 44.04, 514.84, 35.78, 525.86, 38.54, 528.61, 26.15, 552.01, 38.54, 569.9, 39.91, 585.04, 52.3, 598.8, 59.18, 612.56, 60.56, 626.33, 63.31, 631.83, 1.38, 631.83, 2.75, 298.76], [353.72, 302.89, 366.11, 283.62, 388.13, 278.11, 406.02, 264.35, 419.78, 258.84, 423.91, 257.47, 422.54, 618.07, 422.54, 627.7, 341.33, 631.83, 337.2, 622.2, 337.2, 620.82, 345.46, 609.81, 350.97, 601.55, 349.59, 589.17, 346.84, 586.41, 344.09, 578.16, 344.09, 569.9, 345.46, 557.51, 353.72, 560.26, 361.98, 560.26, 371.61, 561.64, 379.87, 558.89, 385.38, 553.38, 390.88, 546.5, 390.88, 539.62, 385.38, 528.61, 378.49, 518.97, 368.86, 507.96, 366.11, 503.83, 361.98, 495.58, 357.85, 490.07, 355.1, 480.44, 349.59, 469.43, 357.85, 443.27, 359.23, 437.77, 359.23, 425.38, 359.23, 417.12, 359.23, 404.74, 359.23, 393.73, 359.23, 381.34, 368.86, 381.34, 368.86, 381.34, 377.12, 377.21, 379.87, 375.83, 393.63, 374.46, 395.01, 374.46, 399.14, 362.07, 399.14, 349.68, 399.14, 335.92, 396.39, 335.92, 385.38, 333.17, 377.12, 333.17, 375.74, 331.79, 371.61, 327.66, 370.24, 323.53, 366.11, 319.4, 363.35, 315.27, 356.47, 307.02, 350.97, 302.89]], "area": 36048.686550000006, "iscrowd": 0, "image_id": 417832, "bbox": [1.38, 257.47, 422.53, 374.36], "category_id": 63, "id": 99638}, {"segmentation": [[204.39, 450.06, 141.42, 416.0, 135.23, 399.48, 139.35, 378.84, 140.39, 368.52, 137.29, 343.74, 135.23, 335.48, 145.55, 333.42, 141.42, 325.16, 134.19, 323.1, 126.97, 311.74, 128.0, 303.48, 117.68, 291.1, 118.71, 271.48, 129.03, 265.29, 134.19, 266.32, 131.1, 272.52, 131.1, 278.71, 135.23, 279.74, 140.39, 274.58, 148.65, 284.9, 145.55, 295.23, 154.84, 299.35, 162.06, 280.77, 163.1, 254.97, 162.06, 243.61, 263.23, 229.16, 279.04, 231.85, 300.39, 233.58, 356.13, 231.23, 359.23, 247.74, 392.26, 257.03, 395.35, 269.42, 387.1, 278.71, 386.06, 327.23, 389.16, 336.52, 297.29, 384.0, 298.32, 396.39, 301.42, 396.39, 301.42, 408.77, 297.29, 419.1, 268.39, 439.74, 229.16, 445.94, 218.84, 452.13, 203.35, 450.06]], "area": 42715.04150000001, "iscrowd": 0, "image_id": 139915, "bbox": [117.68, 229.16, 277.67, 222.97], "category_id": 63, "id": 99975}, {"segmentation": [[394.69, 389.74, 379.89, 336.45, 393.21, 337.19, 400.61, 369.02, 417.64, 375.68], [363.61, 272.8, 354.73, 221.0, 360.65, 216.56, 365.83, 221.74, 388.03, 218.04, 385.81, 265.4]], "area": 2107.638399999999, "iscrowd": 0, "image_id": 537924, "bbox": [354.73, 216.56, 62.91, 173.18], "category_id": 62, "id": 100176}, {"segmentation": [[595.05, 411.28, 587.7, 399.34, 586.78, 388.33, 583.11, 383.73, 577.6, 375.47, 570.25, 368.12, 564.74, 355.27, 568.42, 344.25, 575.76, 334.15, 586.78, 298.33, 588.62, 286.4, 588.62, 279.05, 587.7, 266.19, 581.27, 258.85, 572.09, 244.16, 567.5, 234.97, 561.07, 222.12, 558.31, 219.36, 553.72, 211.1, 602.39, 256.09, 611.57, 277.21, 618.0, 279.05, 626.27, 285.48, 615.25, 308.43, 608.82, 323.13, 599.64, 347.0, 600.55, 358.94, 603.31, 369.04, 602.39, 389.24, 598.72, 410.36, 597.8, 410.36], [585.86, 138.55, 640.0, 226.71, 608.82, 141.31, 598.72, 139.47, 594.13, 133.96, 588.62, 133.96]], "area": 5616.721150000003, "iscrowd": 0, "image_id": 308936, "bbox": [553.72, 133.96, 86.28, 277.32], "category_id": 62, "id": 100541}, {"segmentation": [[93.6, 433.13, 72.69, 398.28, 67.71, 404.25, 83.64, 354.47, 108.53, 349.49, 107.54, 365.42, 106.54, 402.26, 117.49, 436.12, 113.51, 436.12, 94.59, 434.12]], "area": 2431.81095, "iscrowd": 0, "image_id": 332065, "bbox": [67.71, 349.49, 49.78, 86.63], "category_id": 62, "id": 100557}, {"segmentation": [[2.06, 303.48, 75.35, 282.84, 77.42, 268.39, 98.06, 267.35, 121.81, 280.77, 144.52, 309.68, 133.16, 371.61, 132.13, 398.45, 120.77, 467.61, 115.61, 472.77, 4.13, 472.77, 1.03, 469.68]], "area": 24580.188, "iscrowd": 0, "image_id": 537924, "bbox": [1.03, 267.35, 143.49, 205.42], "category_id": 62, "id": 100600}, {"segmentation": [[160.73, 334.36, 163.34, 328.84, 166.82, 317.23, 167.69, 308.81, 167.11, 300.4, 166.82, 291.69, 161.31, 263.53, 161.31, 259.18, 162.47, 258.02, 165.08, 258.02, 170.89, 258.31, 176.69, 263.24, 178.72, 267.31, 181.33, 272.53, 184.24, 278.05, 185.69, 280.08, 188.88, 282.4, 199.62, 282.98, 207.46, 282.69, 212.97, 282.4, 211.52, 287.63, 212.39, 291.4, 213.84, 292.27, 216.46, 293.43, 220.23, 299.82, 220.23, 302.14, 218.78, 314.33, 219.07, 331.45, 218.78, 337.55, 215.59, 339.29, 215.59, 334.36, 216.17, 327.1, 214.42, 319.84, 214.71, 310.56, 195.27, 310.27, 183.37, 310.56, 183.66, 319.26, 181.92, 339.29, 180.46, 343.06, 174.66, 343.06, 178.14, 334.65, 180.46, 313.46, 178.14, 310.56, 174.66, 310.56, 170.01, 311.14, 169.72, 313.46, 170.31, 318.1, 163.92, 335.81, 160.44, 335.52, 158.69, 334.07, 161.02, 333.2]], "area": 2137.3701499999997, "iscrowd": 0, "image_id": 302680, "bbox": [158.69, 258.02, 61.54, 85.04], "category_id": 62, "id": 100643}, {"segmentation": [[358.9, 178.99, 390.19, 127.46, 430.68, 118.25, 462.89, 127.46, 485.9, 152.3, 496.02, 191.87, 484.06, 218.56, 458.29, 207.52, 431.6, 198.32, 408.59, 192.79, 385.59, 192.79, 380.07, 190.95, 379.15, 185.43, 367.18, 182.67, 367.18, 176.23]], "area": 8514.0763, "iscrowd": 0, "image_id": 64492, "bbox": [358.9, 118.25, 137.12, 100.31], "category_id": 62, "id": 100733}, {"segmentation": [[18.44, 186.02, 14.03, 152.47, 9.17, 111.85, 41.84, 110.52, 55.09, 110.52, 55.53, 133.04, 57.74, 151.58, 63.92, 183.37, 60.83, 185.14, 55.09, 153.79, 52.88, 154.67, 54.2, 176.75, 52.44, 176.75, 48.02, 151.58, 19.77, 154.67, 22.86, 176.31, 19.77, 180.72, 22.86, 187.34]], "area": 2212.1591500000004, "iscrowd": 0, "image_id": 543882, "bbox": [9.17, 110.52, 54.75, 76.82], "category_id": 62, "id": 100951}, {"segmentation": [[28.97, 4.83, 38.02, 67.63, 61.41, 208.44, 68.02, 235.39, 81.23, 327.4, 93.94, 335.03, 103.6, 329.94, 95.98, 270.97, 189.52, 341.64, 194.09, 415.86, 199.68, 416.37, 208.33, 408.74, 217.48, 404.17, 218.49, 343.67, 319.85, 269.93, 314.25, 321.32, 327.19, 330.41, 336.28, 320.62, 344.67, 231.82, 350.62, 182.87, 362.14, 176.08, 376.58, 183.98, 379.85, 184.8, 389.66, 176.08, 388.84, 158.65, 338.17, 131.68, 297.85, 110.7, 290.49, 107.16, 219.93, 71.2, 219.39, 52.67, 218.17, 0.76, 53.03, 0.31, 29.25, 0.31, 30.15, 10.18]], "area": 81816.27749999998, "iscrowd": 0, "image_id": 231374, "bbox": [28.97, 0.31, 360.69, 416.06], "category_id": 62, "id": 101184}, {"segmentation": [[78.97, 290.18, 63.36, 277.32, 60.61, 269.97, 57.85, 257.12, 52.34, 241.51, 49.59, 230.49, 49.59, 217.63, 49.59, 209.37, 51.42, 197.43, 56.93, 185.49, 61.52, 175.39, 66.12, 167.13, 66.12, 171.72, 64.28, 184.57, 63.36, 192.84, 61.52, 199.27, 67.03, 206.61, 72.54, 215.8, 74.38, 224.06, 77.14, 236.0, 82.65, 247.02, 85.4, 257.12, 92.75, 267.22, 93.66, 269.06, 96.42, 271.81]], "area": 2391.5252, "iscrowd": 0, "image_id": 64492, "bbox": [49.59, 167.13, 46.83, 123.05], "category_id": 62, "id": 101540}, {"segmentation": [[131.42, 61.28, 307.48, 46.41, 309.96, 111.7, 309.96, 132.37, 343.02, 157.16, 379.39, 175.35, 426.5, 186.09, 434.77, 189.4, 450.47, 197.66, 453.78, 203.45, 432.29, 229.07, 424.02, 252.22, 411.62, 272.05, 390.96, 295.2, 374.43, 308.42, 355.42, 347.27, 364.51, 375.37, 363.68, 378.68, 171.1, 381.16, 163.66, 367.11, 143.82, 364.63, 138.03, 330.74, 126.46, 310.08, 99.19, 307.6, 104.15, 290.24, 97.53, 273.71, 92.57, 256.35, 98.36, 225.77, 100.01, 208.41, 106.63, 182.79, 110.76, 158.82, 119.02, 143.11, 125.64, 133.19, 127.29, 124.93, 125.64, 105.92, 125.64, 80.29]], "area": 82421.16605000001, "iscrowd": 0, "image_id": 167671, "bbox": [92.57, 46.41, 361.21, 334.75], "category_id": 62, "id": 102296}, {"segmentation": [[299.97, 266.12, 315.27, 265.74, 317.51, 257.53, 321.62, 249.32, 334.31, 248.57, 339.17, 254.55, 338.79, 270.97, 320.87, 268.36, 321.62, 275.82, 317.89, 278.06, 316.02, 268.73, 301.09, 271.34, 299.97, 276.2, 296.24, 275.82, 297.36, 268.36]], "area": 559.8762000000007, "iscrowd": 0, "image_id": 302680, "bbox": [296.24, 248.57, 42.93, 29.49], "category_id": 62, "id": 102639}, {"segmentation": [[394.94, 254.02, 403.11, 209.52, 449.42, 204.98, 405.83, 158.67, 358.61, 161.39, 360.43, 115.08, 358.61, 107.82, 324.11, 103.28, 313.21, 92.38, 325.02, 85.12, 308.67, 83.3, 312.3, 121.44, 299.59, 173.2, 346.81, 214.97, 394.03, 214.97, 384.04, 254.02, 389.49, 253.11]], "area": 9257.167200000004, "iscrowd": 0, "image_id": 111705, "bbox": [299.59, 83.3, 149.83, 170.72], "category_id": 62, "id": 102987}, {"segmentation": [[374.52, 315.59, 377.98, 314.29, 374.09, 301.32, 373.23, 291.37, 374.52, 281.86, 383.6, 279.27, 387.93, 268.89, 383.6, 264.56, 379.71, 264.13, 379.28, 212.67, 368.04, 205.32, 363.71, 205.32, 358.52, 280.13, 322.63, 277.97, 316.58, 277.54, 310.96, 271.91, 308.36, 267.16, 307.93, 239.48, 311.82, 208.78, 306.2, 213.54, 301.01, 220.46, 299.28, 230.4, 304.47, 233.0, 300.58, 265.43, 294.52, 264.13, 288.04, 271.91, 294.96, 278.4, 296.69, 281.86, 293.66, 290.08, 295.39, 301.32, 305.34, 314.29, 315.28, 312.99, 326.09, 311.26, 348.15, 312.13]], "area": 4709.9181499999995, "iscrowd": 0, "image_id": 459794, "bbox": [288.04, 205.32, 99.89, 110.27], "category_id": 62, "id": 103658}, {"segmentation": [[367.31, 336.13, 366.26, 300.62, 366.78, 296.15, 361.0, 259.58, 366.78, 266.68, 370.2, 295.36, 374.15, 293.25, 391.25, 293.25, 409.14, 293.51, 412.82, 298.78, 417.56, 304.83, 418.35, 327.72, 418.09, 340.87, 417.03, 340.61, 415.46, 336.66, 388.09, 337.71, 373.1, 338.5, 373.36, 347.18, 371.26, 347.18, 370.73, 329.56, 371.26, 301.14, 369.94, 295.36]], "area": 2260.283950000001, "iscrowd": 0, "image_id": 37433, "bbox": [361.0, 259.58, 57.35, 87.6], "category_id": 62, "id": 104419}, {"segmentation": [[447.59, 297.51, 452.6, 217.92, 450.1, 205.39, 497.72, 209.78, 495.84, 248.0, 507.13, 247.38, 505.25, 276.2, 495.22, 278.71, 493.34, 308.17, 482.06, 305.03, 484.56, 271.82, 479.55, 269.94, 478.3, 288.74, 470.78, 289.36, 469.52, 268.06, 460.12, 268.06, 456.36, 298.14]], "area": 3978.031950000001, "iscrowd": 0, "image_id": 53361, "bbox": [447.59, 205.39, 59.54, 102.78], "category_id": 62, "id": 105113}, {"segmentation": [[121.87, 342.09, 137.42, 338.5, 134.23, 378.38, 147.0, 423.45, 130.64, 436.61, 120.67, 436.61, 109.11, 407.5, 107.51, 380.77, 113.5, 374.79, 115.49, 342.89, 125.86, 344.08]], "area": 2459.992, "iscrowd": 0, "image_id": 332065, "bbox": [107.51, 338.5, 39.49, 98.11], "category_id": 62, "id": 105230}, {"segmentation": [[69.89, 111.87, 72.57, 145.57, 73.37, 163.22, 72.57, 173.65, 74.71, 174.45, 76.31, 183.01, 78.72, 182.48, 75.78, 152.25, 81.93, 150.65, 83.0, 140.22, 80.33, 138.61, 81.66, 133.27, 98.78, 131.13, 97.98, 111.6]], "area": 863.6659000000003, "iscrowd": 0, "image_id": 543882, "bbox": [69.89, 111.6, 28.89, 71.41], "category_id": 62, "id": 105877}, {"segmentation": [[11.01, 326.19, 81.2, 327.57, 128.0, 313.81, 159.66, 316.56, 167.91, 331.7, 167.91, 371.61, 155.53, 492.73, 189.94, 488.6, 225.72, 523.01, 221.59, 557.42, 194.06, 578.06, 180.3, 598.71, 137.63, 611.1, 140.39, 623.48, 216.09, 595.96, 214.71, 623.48, 199.57, 626.24, 195.44, 613.85, 169.29, 631.74, 115.61, 633.12, 115.61, 619.35, 100.47, 619.35, 92.22, 613.85, 49.55, 628.99, 33.03, 627.61, 38.54, 608.34, 46.8, 612.47, 55.05, 613.85, 50.92, 601.46, 70.19, 605.59, 85.33, 605.59, 52.3, 591.83, 33.03, 568.43, 33.03, 556.04, 8.26, 540.9, 5.51, 532.65, 0.0, 477.59, 20.65, 484.47, 11.01, 503.74, 19.27, 520.26, 30.28, 529.89, 42.67, 518.88, 19.27, 512.0, 33.03, 439.05, 2.75, 390.88, 1.38, 333.08, 8.26, 326.19]], "area": 48871.52715, "iscrowd": 0, "image_id": 363326, "bbox": [0.0, 313.81, 225.72, 319.31], "category_id": 62, "id": 106938}, {"segmentation": [[622.97, 62.45, 537.52, 54.06, 531.76, 58.25, 517.6, 118.54, 522.32, 123.26, 515.5, 148.94, 482.48, 181.97, 484.05, 194.55, 498.21, 208.71, 487.72, 250.64, 509.74, 251.17, 516.55, 255.89, 533.33, 254.84, 547.48, 226.0, 536.47, 190.88, 535.43, 130.6, 533.85, 92.85, 542.76, 73.98, 580.51, 68.21, 626.12, 71.36, 621.4, 63.49], [601.14, 220.98, 620.5, 175.15, 613.4, 171.28, 596.62, 179.02, 588.88, 188.06, 590.81, 199.03, 599.85, 218.39], [487.55, 264.15, 480.92, 294.68, 485.89, 299.65, 494.19, 268.13], [505.14, 290.69, 489.21, 297.0, 490.87, 301.97, 507.46, 298.66, 506.46, 321.55, 516.08, 322.54, 512.77, 296.67, 542.96, 288.37, 537.98, 283.06, 512.1, 290.36, 511.77, 277.42, 505.8, 276.43], [553.91, 373.31, 611.97, 339.46, 615.95, 332.17, 606.99, 326.19, 603.67, 324.87, 602.01, 319.23, 576.47, 293.35, 571.16, 298.66, 607.99, 334.49, 548.93, 370.65]], "area": 9434.054750000001, "iscrowd": 0, "image_id": 167671, "bbox": [480.92, 54.06, 145.2, 319.25], "category_id": 62, "id": 107021}, {"segmentation": [[9.16, 108.42, 7.88, 98.79, 45.11, 98.15, 45.11, 109.06, 13.65, 110.99]], "area": 420.5382499999998, "iscrowd": 0, "image_id": 543882, "bbox": [7.88, 98.15, 37.23, 12.84], "category_id": 62, "id": 107238}, {"segmentation": [[528.01, 341.66, 524.34, 315.95, 553.72, 287.48, 553.72, 272.79, 568.42, 265.44, 526.17, 247.08, 507.81, 248.0, 502.3, 245.24, 494.03, 245.24, 496.79, 196.57, 487.61, 194.74, 480.26, 194.74, 480.26, 189.23, 468.32, 180.96, 463.73, 180.96, 460.06, 171.78, 448.12, 172.7, 441.69, 178.21, 439.86, 181.88, 428.84, 184.64, 428.84, 191.98, 421.49, 199.33, 415.98, 204.84, 415.06, 220.45, 417.82, 245.24, 417.82, 248.0, 409.55, 250.75, 413.23, 272.79, 437.1, 281.05, 447.2, 291.16, 461.89, 305.85, 461.89, 322.38, 461.89, 334.31, 473.83, 341.66, 490.36, 346.25, 490.36, 353.6, 516.07, 349.93, 535.36, 349.93]], "area": 14670.210500000003, "iscrowd": 0, "image_id": 448843, "bbox": [409.55, 171.78, 158.87, 181.82], "category_id": 62, "id": 108359}, {"segmentation": [[191.92, 403.19, 185.49, 369.21, 135.91, 355.44, 124.89, 346.25, 130.4, 327.89, 130.4, 313.19, 130.4, 294.83, 130.4, 282.89, 120.29, 270.95, 118.46, 262.69, 118.46, 251.67, 118.46, 242.49, 115.7, 223.2, 119.38, 211.27, 124.89, 203.92, 132.23, 197.49, 136.82, 195.65, 145.09, 182.8, 150.6, 188.31, 175.39, 196.57, 187.33, 204.84, 199.27, 224.12, 207.53, 244.32, 215.8, 255.34, 224.06, 253.51, 238.75, 253.51, 273.65, 253.51, 291.09, 253.51, 305.79, 257.18, 289.26, 269.12, 292.93, 291.16, 282.83, 304.93, 274.57, 312.28, 278.24, 322.38, 257.12, 335.23, 247.94, 349.01, 231.41, 362.78, 213.96, 367.37, 198.35, 367.37, 203.86, 405.02]], "area": 21391.179199999995, "iscrowd": 0, "image_id": 448843, "bbox": [115.7, 182.8, 190.09, 222.22], "category_id": 62, "id": 108545}, {"segmentation": [[63.01, 359.05, 42.78, 364.36, 42.52, 365.37, 38.73, 367.14, 30.64, 421.78, 39.24, 425.57, 41.76, 425.57, 42.02, 422.28, 55.17, 416.46, 54.92, 425.06, 55.68, 428.1, 69.34, 429.36, 67.06, 424.81, 64.53, 415.7, 64.02, 403.82, 67.31, 367.65, 66.81, 359.55]], "area": 1900.9466999999997, "iscrowd": 0, "image_id": 332065, "bbox": [30.64, 359.05, 38.7, 70.31], "category_id": 62, "id": 108872}, {"segmentation": [[0.0, 168.31, 22.96, 161.88, 51.42, 160.96, 67.03, 165.55, 57.85, 180.24, 52.34, 209.63, 49.59, 246.36, 65.2, 286.76, 67.95, 294.11, 14.69, 305.13, 38.57, 358.39, 24.79, 362.98, 0.0, 305.13]], "area": 8682.34655, "iscrowd": 0, "image_id": 64492, "bbox": [0.0, 160.96, 67.95, 202.02], "category_id": 62, "id": 108944}, {"segmentation": [[174.49, 263.75, 191.39, 260.31, 203.71, 258.88, 197.7, 269.48, 188.53, 278.08, 196.27, 283.81, 206.87, 283.23, 205.43, 308.16, 194.83, 317.62, 188.24, 317.04, 177.07, 305.29, 163.03, 328.5, 154.15, 329.08, 135.52, 298.99, 137.24, 294.69, 143.54, 295.84]], "area": 2790.236750000001, "iscrowd": 0, "image_id": 37433, "bbox": [135.52, 258.88, 71.35, 70.2], "category_id": 62, "id": 109028}, {"segmentation": [[218.77, 256.21, 218.77, 373.2, 224.62, 409.46, 229.3, 453.92, 226.96, 480.83, 235.15, 486.68, 242.17, 486.68, 244.51, 518.26, 244.51, 527.62, 250.36, 529.96, 270.25, 528.79, 276.09, 483.17, 273.75, 476.15, 284.28, 480.83, 292.47, 487.85, 297.15, 497.2, 300.66, 515.92, 300.66, 528.79, 307.68, 525.28, 314.7, 524.11, 314.7, 514.75, 314.7, 506.56, 317.04, 498.37, 317.04, 490.18, 313.53, 478.49, 308.85, 464.45, 299.49, 450.41, 299.49, 422.33, 298.32, 401.27, 295.98, 369.69, 293.64, 350.97, 291.3, 332.25, 285.45, 322.89, 286.62, 310.02, 293.64, 301.83, 297.15, 298.32, 300.66, 294.81, 303.0, 287.79, 304.17, 284.28, 299.49, 276.09, 281.94, 258.55, 270.25, 250.36, 260.89, 244.51, 248.02, 244.51, 236.32, 244.51, 229.3, 244.51, 221.11, 245.68, 216.43, 255.04], [357.99, 356.82, 372.03, 435.2, 373.2, 451.58, 376.71, 471.47, 377.88, 478.49, 386.06, 476.15, 380.22, 434.03, 379.05, 411.8, 381.38, 390.74, 377.88, 365.01, 376.71, 348.63, 373.2, 338.1, 367.35, 339.27, 362.67, 350.97, 356.82, 356.82]], "area": 21518.804100000005, "iscrowd": 0, "image_id": 34356, "bbox": [216.43, 244.51, 169.63, 285.45], "category_id": 63, "id": 111615}, {"segmentation": [[279.74, 267.35, 307.61, 248.77, 307.61, 242.58, 338.58, 221.94, 528.52, 235.35, 536.77, 239.48, 542.97, 243.61, 530.58, 248.77, 519.23, 259.1, 517.16, 277.68, 496.52, 294.19, 475.87, 295.23, 460.39, 288.0, 443.87, 284.9, 432.52, 279.74, 422.19, 278.71, 410.84, 291.1, 401.55, 296.26, 365.42, 290.06, 346.84, 291.1, 317.94, 296.26, 299.35, 296.26, 279.74, 269.42]], "area": 14034.3795, "iscrowd": 0, "image_id": 63123, "bbox": [279.74, 221.94, 263.23, 74.32], "category_id": 63, "id": 112112}, {"segmentation": [[60.22, 392.59, 245.16, 319.47, 241.94, 260.33, 232.26, 239.9, 186.02, 224.85, 168.82, 185.07, 51.61, 190.44, 67.74, 281.84, 36.56, 307.65, 33.33, 377.54]], "area": 30079.106550000008, "iscrowd": 0, "image_id": 95281, "bbox": [33.33, 185.07, 211.83, 207.52], "category_id": 63, "id": 112325}, {"segmentation": [[393.03, 349.48, 406.87, 283.04, 420.03, 280.96, 479.54, 283.73, 473.32, 293.42, 462.24, 309.34, 446.32, 348.79, 394.42, 348.79], [595.82, 249.13, 529.37, 307.96, 518.3, 324.57, 507.22, 344.64, 540.45, 344.64, 557.75, 296.19, 582.66, 282.35, 606.19, 276.12, 602.74, 260.2, 598.58, 250.51], [567.44, 187.54, 557.06, 194.46, 545.98, 206.91, 521.76, 242.9, 509.3, 253.97, 518.99, 211.07, 512.77, 185.46, 510.0, 174.38, 530.76, 173.69, 546.67, 181.99, 565.36, 184.07], [345.97, 201.38, 352.9, 182.69, 348.05, 178.54, 322.44, 176.46, 309.98, 184.07, 309.98, 197.91, 324.52, 191.69, 336.98, 197.91, 344.59, 200.68], [294.06, 188.91, 289.22, 188.91, 282.3, 198.61, 285.76, 269.2, 291.3, 255.36, 298.22, 228.36, 299.61, 217.3, 302.37, 211.75, 294.76, 204.83, 293.37, 193.76], [338.36, 269.2, 352.9, 263.67, 374.35, 262.28, 357.74, 274.73, 330.06, 294.81, 339.05, 266.43], [346.66, 323.18, 362.58, 305.19, 379.88, 292.04, 367.43, 337.02, 348.05, 325.26]], "area": 11099.46015, "iscrowd": 0, "image_id": 169686, "bbox": [282.3, 173.69, 323.89, 175.79], "category_id": 63, "id": 112493}, {"segmentation": [[3.66, 311.48, 122.76, 304.15, 121.85, 346.3, 126.43, 351.79, 129.17, 382.94, 137.42, 392.1, 164.9, 392.1, 166.74, 415.92, 0.92, 415.01, 0.0, 314.23]], "area": 14397.463050000002, "iscrowd": 0, "image_id": 37433, "bbox": [0.0, 304.15, 166.74, 111.77], "category_id": 63, "id": 112674}, {"segmentation": [[22.51, 55.51, 640.0, 34.38, 640.0, 428.0, 1.39, 428.0, 1.39, 54.59]], "area": 244409.33595, "iscrowd": 0, "image_id": 288127, "bbox": [1.39, 34.38, 638.61, 393.62], "category_id": 63, "id": 112685}, {"segmentation": [[304.21, 147.99, 283.16, 164.64, 275.81, 173.94, 251.82, 185.2, 257.21, 196.46, 257.21, 206.74, 254.76, 215.55, 258.19, 227.79, 260.14, 231.71, 261.61, 243.95, 263.08, 253.74, 265.04, 256.68, 302.74, 266.96, 303.72, 215.07, 310.08, 175.9, 297.84, 174.92, 299.8, 166.11], [370.79, 146.52, 363.94, 207.72, 358.55, 218.98, 364.92, 216.53, 380.1, 208.21, 412.9, 199.4, 434.93, 190.59, 431.5, 184.22, 431.01, 179.81, 431.01, 166.11, 428.08, 154.36, 429.54, 149.46, 429.54, 147.5], [359.04, 241.99, 347.78, 252.76, 349.74, 271.37, 349.74, 272.84, 418.28, 285.08, 426.61, 247.87, 431.5, 228.77, 434.44, 215.07, 399.68, 218.98, 366.39, 232.69, 359.04, 231.22], [332.6, 224.86, 323.79, 269.9, 334.07, 267.94, 336.03, 246.89, 338.97, 236.12, 338.97, 234.65]], "area": 12389.261299999998, "iscrowd": 0, "image_id": 207463, "bbox": [251.82, 146.52, 183.11, 138.56], "category_id": 63, "id": 113353}, {"segmentation": [[498.89, 187.66, 480.31, 182.09, 424.57, 199.74, 404.13, 207.17, 370.68, 206.25, 349.32, 206.25, 342.81, 201.6, 344.67, 195.1, 358.61, 176.52, 359.54, 157.94, 366.97, 141.21, 369.75, 153.29, 460.8, 130.99, 480.31, 130.06, 485.88, 110.55, 489.6, 115.2, 490.53, 134.71, 510.97, 155.15, 507.25, 168.15]], "area": 8679.020349999997, "iscrowd": 0, "image_id": 540547, "bbox": [342.81, 110.55, 168.16, 96.62], "category_id": 63, "id": 113953}, {"segmentation": [[463.48, 313.81, 468.65, 266.32, 489.29, 247.74, 500.65, 242.58, 578.06, 236.39, 640.0, 251.87, 640.0, 413.94, 549.16, 410.84, 519.23, 404.65, 516.13, 396.39, 512.0, 390.19, 491.35, 390.19, 484.13, 393.29, 490.32, 406.71, 468.65, 411.87, 465.55, 384.0, 460.39, 326.19]], "area": 28637.705549999995, "iscrowd": 0, "image_id": 77841, "bbox": [460.39, 236.39, 179.61, 177.55], "category_id": 63, "id": 114329}, {"segmentation": [[397.32, 277.15, 397.32, 269.51, 393.85, 269.51, 393.16, 232.0, 393.16, 229.23, 408.44, 225.06, 409.13, 220.89, 429.97, 208.39, 433.45, 199.36, 446.64, 212.55, 470.95, 216.03, 493.18, 217.42, 525.83, 211.86, 517.49, 232.7, 523.05, 236.87, 536.25, 238.26, 530.69, 304.25, 502.21, 319.53, 465.4, 317.44, 400.1, 275.77, 399.41, 272.29]], "area": 12207.62305, "iscrowd": 0, "image_id": 83968, "bbox": [393.16, 199.36, 143.09, 120.17], "category_id": 63, "id": 114432}, {"segmentation": [[125.51, 56.8, 163.99, 51.3, 229.03, 55.88, 313.32, 51.3, 360.04, 51.3, 400.35, 51.3, 443.41, 46.72, 459.9, 46.72, 469.97, 59.55, 473.64, 80.62, 493.79, 59.55, 528.61, 45.81, 533.19, 65.05, 549.68, 142.0, 555.17, 171.32, 592.74, 178.65, 622.97, 206.13, 611.97, 258.35, 583.57, 426.0, 79.7, 423.25, 49.47, 220.79, 79.7, 123.68, 109.94, 108.1, 108.1, 77.87, 120.01, 60.46]], "area": 189598.6989, "iscrowd": 0, "image_id": 484617, "bbox": [49.47, 45.81, 573.5, 380.19], "category_id": 63, "id": 114699}, {"segmentation": [[261.4, 318.47, 216.3, 323.07, 218.14, 337.8, 202.49, 340.56, 203.42, 323.99, 194.21, 312.03, 195.13, 326.75, 190.53, 321.23, 182.25, 268.77, 179.48, 236.55, 348.84, 224.58, 392.1, 226.43, 381.98, 243.91, 408.67, 251.28, 406.83, 262.32, 377.38, 265.08, 375.54, 281.65, 351.6, 281.65, 323.99, 281.65, 319.39, 289.94, 314.79, 292.7, 311.11, 292.7, 276.13, 294.54, 262.32, 298.22]], "area": 14733.412399999997, "iscrowd": 0, "image_id": 418505, "bbox": [179.48, 224.58, 229.19, 115.98], "category_id": 63, "id": 114800}, {"segmentation": [[547.69, 253.36, 614.44, 249.71, 621.76, 235.08, 640.0, 235.08, 640.0, 338.4, 619.01, 329.25, 612.61, 314.62, 603.47, 327.42, 571.47, 313.71, 563.24, 299.99, 554.09, 286.28, 551.35, 279.88, 555.92, 267.08, 548.61, 255.19]], "area": 6283.647899999996, "iscrowd": 0, "image_id": 84202, "bbox": [547.69, 235.08, 92.31, 103.32], "category_id": 63, "id": 114870}, {"segmentation": [[66.88, 417.82, 68.71, 339.03, 127.34, 311.54, 174.98, 349.11, 237.28, 350.02, 245.52, 350.94, 285.83, 344.53, 268.43, 421.48], [480.05, 329.87, 510.28, 329.87, 514.86, 364.68, 519.45, 383.92, 528.61, 402.24, 523.11, 407.74, 505.7, 398.58, 504.79, 404.07, 488.3, 398.58, 467.23, 392.16, 476.39, 376.59, 479.14, 366.51, 476.39, 348.19]], "area": 19939.078950000003, "iscrowd": 0, "image_id": 107100, "bbox": [66.88, 311.54, 461.73, 109.94], "category_id": 63, "id": 114933}, {"segmentation": [[471.78, 395.82, 467.67, 342.37, 482.06, 320.78, 491.31, 305.37, 482.06, 251.92, 472.81, 233.42, 463.55, 229.31, 459.44, 215.95, 426.55, 207.72, 390.58, 212.86, 337.13, 206.69, 303.21, 204.64, 246.68, 198.47, 180.9, 193.33, 168.57, 196.42, 160.34, 219.03, 219.96, 244.72, 225.1, 297.14, 229.21, 321.81, 230.24, 333.12, 231.26, 341.34, 222.01, 345.45, 212.76, 342.37, 202.48, 335.17, 181.93, 326.95, 168.57, 326.95, 167.54, 340.31, 168.57, 345.45, 183.98, 349.56, 211.73, 352.65, 224.07, 352.65, 251.82, 355.73, 354.6, 361.9, 373.1, 362.93, 425.52, 366.01, 463.55, 367.04, 465.61, 380.4, 469.72, 389.65]], "area": 42394.53280000001, "iscrowd": 0, "image_id": 416047, "bbox": [160.34, 193.33, 330.97, 202.49], "category_id": 63, "id": 115040}, {"segmentation": [[416.99, 341.44, 479.32, 334.67, 532.22, 333.46, 549.61, 333.71, 557.1, 338.05, 564.11, 346.99, 568.21, 356.65, 567.49, 369.22, 561.21, 375.98, 553.72, 376.95, 550.58, 426.0, 315.53, 426.0, 315.05, 405.15, 316.74, 399.83, 323.02, 395.48, 337.03, 395.0, 353.46, 408.29, 365.54, 395.24, 369.64, 387.27, 374.96, 381.47, 371.57, 373.26, 369.16, 365.05, 369.88, 356.11, 376.16, 348.38, 400.8, 343.06]], "area": 17930.563400000003, "iscrowd": 0, "image_id": 37433, "bbox": [315.05, 333.46, 253.16, 92.54], "category_id": 63, "id": 115422}, {"segmentation": [[201.75, 243.04, 209.53, 233.6, 212.87, 228.59, 212.87, 221.37, 213.98, 216.92, 217.87, 211.92, 222.32, 208.03, 227.32, 254.16, 226.21, 269.73, 220.65, 272.5, 216.76, 274.73, 216.76, 267.5, 210.64, 268.61, 204.53, 270.84, 201.75, 270.84, 202.31, 260.83], [175.07, 233.04, 143.39, 247.49, 152.28, 288.62, 158.39, 289.18, 159.51, 303.08, 171.73, 305.3, 181.18, 302.52, 186.74, 297.52, 180.07, 252.49, 177.29, 239.71, 181.18, 234.71], [113.93, 193.57, 121.71, 183.01, 127.27, 173.56, 131.16, 169.12, 139.5, 168.01, 160.62, 169.67, 166.73, 169.67, 162.84, 181.35, 162.28, 185.79, 158.39, 191.91, 151.72, 196.91, 148.39, 200.24, 145.05, 201.91, 138.38, 199.69, 132.27, 203.02, 136.16, 208.58, 142.27, 213.58, 146.17, 216.92, 147.83, 217.48, 131.16, 226.93, 123.38, 231.37, 119.48, 236.37, 120.6, 241.93, 125.04, 276.4, 108.92, 273.06, 107.81, 239.71], [158.39, 206.91, 170.07, 191.35, 172.85, 181.9, 175.63, 180.23, 176.74, 183.57, 174.51, 194.13, 171.18, 200.24, 168.96, 204.69], [81.69, 209.14, 75.57, 239.71, 77.24, 256.39, 81.69, 258.61, 83.91, 255.83, 83.91, 245.27, 87.8, 235.82, 84.47, 224.7]], "area": 6345.891500000001, "iscrowd": 0, "image_id": 207463, "bbox": [75.57, 168.01, 151.75, 137.29], "category_id": 63, "id": 115436}, {"segmentation": [[391.23, 322.13, 388.13, 281.88, 394.32, 272.58, 398.45, 262.26, 390.19, 252.97, 380.9, 200.33, 387.1, 194.13, 462.45, 193.1, 470.71, 204.46, 476.9, 218.91, 478.97, 238.52, 481.03, 248.84, 482.06, 248.84, 496.52, 247.81, 498.58, 259.17, 517.16, 261.23, 520.26, 267.42, 519.23, 272.58, 522.32, 299.42, 523.35, 333.49, 514.06, 327.29, 481.03, 321.1, 440.77, 315.94, 435.61, 311.81, 411.87, 327.29]], "area": 14163.844850000001, "iscrowd": 0, "image_id": 139915, "bbox": [380.9, 193.1, 142.45, 140.39], "category_id": 63, "id": 115608}, {"segmentation": [[0.0, 343.35, 184.03, 346.09, 207.38, 436.74, 184.03, 484.81, 123.61, 465.58, 146.95, 545.24, 192.27, 545.24, 197.77, 515.02, 229.36, 531.5, 278.8, 629.01, 10.99, 630.39]], "area": 56242.822799999994, "iscrowd": 0, "image_id": 410561, "bbox": [0.0, 343.35, 278.8, 287.04], "category_id": 63, "id": 116015}, {"segmentation": [[235.03, 262.35, 234.94, 260.65, 233.14, 259.04, 232.85, 226.82, 231.62, 228.05, 230.01, 226.82, 229.63, 225.87, 230.01, 224.26, 239.68, 212.13, 241.86, 211.08, 243.94, 211.08, 247.16, 210.99, 248.49, 211.46, 249.82, 212.03, 246.69, 217.05, 243.75, 216.77, 241.86, 216.77, 239.68, 217.72, 237.59, 218.57, 236.65, 219.04, 236.65, 220.94, 237.78, 222.46, 239.49, 222.46, 242.33, 221.32, 246.12, 219.99, 248.59, 219.9, 250.86, 221.32, 252.38, 223.97, 252.66, 226.72, 253.23, 229.18, 254.08, 231.27, 265.74, 229.28, 277.11, 228.33, 279.67, 227.86, 282.04, 230.04, 292.18, 229.94, 294.36, 230.99, 295.59, 231.84, 296.92, 230.32, 309.33, 228.14, 313.12, 228.43, 314.54, 229.66, 321.65, 229.09, 331.51, 224.83, 337.38, 222.84, 339.18, 221.41, 339.18, 219.42, 341.55, 210.04, 343.16, 210.04, 356.34, 218.19, 357.85, 220.09, 358.04, 221.79, 356.81, 223.31, 356.71, 223.31, 357.66, 224.54, 358.04, 244.25, 358.23, 254.87, 356.34, 254.87, 355.77, 259.32, 315.59, 262.64, 312.84, 255.43, 311.51, 255.43, 261.85, 255.72, 261.47, 256.19, 259.48, 264.25, 235.13, 263.4]], "area": 4312.8689, "iscrowd": 0, "image_id": 83968, "bbox": [229.63, 210.04, 128.6, 54.21], "category_id": 63, "id": 116416}, {"segmentation": [[1.17, 351.59, 0.0, 290.52, 65.76, 274.08, 131.52, 237.68, 183.19, 174.27, 201.98, 126.12, 248.95, 115.55, 416.88, 123.77, 385.17, 193.06, 354.64, 235.33, 285.36, 269.39, 206.68, 310.49, 117.43, 291.7, 83.38, 335.15, 8.22, 348.07], [483.82, 126.12, 634.13, 128.47, 638.83, 193.06, 514.35, 160.18]], "area": 49761.87375, "iscrowd": 0, "image_id": 59406, "bbox": [0.0, 115.55, 638.83, 236.04], "category_id": 63, "id": 116495}, {"segmentation": [[197.34, 382.45, 197.34, 341.34, 212.76, 352.65, 217.9, 355.73, 225.1, 363.95, 233.32, 373.2, 236.4, 378.34, 227.15, 383.48, 210.71, 386.57, 198.37, 387.59]], "area": 1077.2607000000003, "iscrowd": 0, "image_id": 256465, "bbox": [197.34, 341.34, 39.06, 46.25], "category_id": 63, "id": 117435}, {"segmentation": [[6.87, 500.74, 157.94, 430.7, 156.57, 449.92, 184.03, 434.82, 225.24, 474.64, 215.62, 484.26, 232.1, 529.58, 289.79, 517.22, 409.27, 617.48, 425.75, 631.21, 281.55, 629.84, 2.75, 628.46]], "area": 51349.71160000002, "iscrowd": 0, "image_id": 306627, "bbox": [2.75, 430.7, 423.0, 200.51], "category_id": 67, "id": 118009}, {"segmentation": [[4.51, 265.31, 24.04, 259.31, 159.25, 278.84, 181.78, 349.45, 1.5, 325.41], [330.52, 307.38, 372.58, 313.39, 365.07, 344.94, 357.56, 343.44]], "area": 12161.804250000003, "iscrowd": 0, "image_id": 410561, "bbox": [1.5, 259.31, 371.08, 90.14], "category_id": 67, "id": 118227}, {"segmentation": [[311.87, 455.65, 310.87, 337.78, 393.08, 392.25, 480.23, 405.13, 578.28, 404.14, 616.9, 392.25, 618.88, 453.66, 312.86, 456.63, 312.86, 342.74], [312.86, 224.89, 312.86, 186.26, 332.66, 192.2, 354.45, 180.32, 355.44, 157.54, 354.45, 140.7, 371.29, 130.79, 386.14, 125.85, 378.22, 96.14, 409.91, 95.15, 427.75, 113.96, 483.21, 126.84, 526.79, 118.91, 546.59, 109.01, 558.48, 87.22, 605.02, 84.26, 618.88, 84.26, 620.0, 105.05, 616.9, 99.1, 607.0, 99.1, 600.07, 93.17, 590.17, 94.16, 610.96, 130.79, 619.88, 144.66, 617.89, 173.38, 531.73, 161.51, 435.67, 166.45, 381.2, 182.3, 327.72, 209.04, 314.84, 219.93]], "area": 35663.5277, "iscrowd": 0, "image_id": 332065, "bbox": [310.87, 84.26, 309.13, 372.37], "category_id": 67, "id": 118265}, {"segmentation": [[111.88, 339.84, 111.88, 342.08, 106.28, 340.96, 106.84, 334.24, 95.64, 333.12, 114.12, 323.04, 121.4, 328.08, 122.52, 329.2, 126.44, 330.32, 141.56, 329.2, 148.84, 328.64, 171.8, 330.88, 173.48, 330.88, 173.48, 333.68, 172.92, 335.92, 166.76, 339.84, 158.92, 402.0, 152.2, 401.44, 155.0, 360.56, 157.24, 344.32, 159.48, 338.72, 142.12, 336.48, 111.32, 335.36, 111.32, 335.36]], "area": 1132.4096000000002, "iscrowd": 0, "image_id": 332065, "bbox": [95.64, 323.04, 77.84, 78.96], "category_id": 67, "id": 118631}, {"segmentation": [[142.0, 422.21, 318.23, 346.68, 319.24, 158.36, 217.52, 175.48, 2.01, 209.72, 0.0, 423.22]], "area": 68908.88445, "iscrowd": 0, "image_id": 178436, "bbox": [0.0, 158.36, 319.24, 264.86], "category_id": 67, "id": 119246}, {"segmentation": [[61.74, 418.64, 176.19, 421.65, 168.66, 433.69, 164.14, 442.73, 176.19, 439.72, 182.21, 429.18, 204.8, 429.18, 213.84, 590.31, 200.28, 627.95, 143.06, 629.46, 111.44, 629.46, 134.02, 554.16, 117.46, 548.14, 103.91, 543.62, 102.4, 536.09, 128.0, 527.06, 165.65, 508.99, 173.18, 486.4, 173.18, 474.35, 167.15, 460.8, 159.62, 451.76, 150.59, 441.22, 140.05, 430.68, 128.0, 429.18, 117.46, 429.18, 99.39, 427.67, 84.33, 430.68, 79.81, 432.19, 69.27, 435.2, 63.25, 435.2, 61.74, 423.15], [1.51, 581.27, 15.06, 554.16, 25.6, 548.14, 46.68, 536.09, 30.12, 530.07, 21.08, 501.46, 25.6, 481.88, 30.12, 475.86, 28.61, 462.31, 40.66, 448.75, 39.15, 439.72, 33.13, 435.2, 21.08, 436.71, 19.58, 442.73, 15.06, 453.27, 0.0, 454.78]], "area": 18023.78405000001, "iscrowd": 0, "image_id": 453552, "bbox": [0.0, 418.64, 213.84, 210.82], "category_id": 67, "id": 119387}, {"segmentation": [[341.59, 214.49, 53.06, 216.48, 10.43, 277.95, 198.81, 278.94, 196.83, 458.4, 212.69, 455.43, 207.74, 273.98, 372.33, 276.96, 371.19, 237.82, 348.95, 214.4, 347.78, 214.4]], "area": 22891.455899999997, "iscrowd": 0, "image_id": 304587, "bbox": [10.43, 214.4, 361.9, 244.0], "category_id": 67, "id": 119496}, {"segmentation": [[100.0, 159.19, 4.0, 147.19, 3.0, 421.19, 367.0, 419.19, 635.0, 384.19, 638.0, 250.19, 617.0, 236.19, 597.0, 258.19, 574.0, 261.19, 573.0, 285.19, 546.0, 298.19, 489.0, 289.19, 463.0, 274.19, 445.0, 280.19, 452.0, 315.19, 364.0, 329.19, 249.0, 321.19, 126.0, 270.19, 105.0, 251.19, 109.0, 217.19, 124.0, 194.19, 143.0, 184.19, 117.0, 172.19, 99.0, 155.19]], "area": 88021.5, "iscrowd": 0, "image_id": 223838, "bbox": [3.0, 147.19, 635.0, 274.0], "category_id": 67, "id": 119782}, {"segmentation": [[456.28, 134.02, 316.24, 55.72, 289.13, 37.65, 292.14, 33.13, 353.88, 31.62, 364.42, 45.18, 364.42, 52.71, 370.45, 54.21, 379.48, 70.78, 393.04, 81.32, 415.62, 78.31, 433.69, 73.79, 475.86, 78.31, 475.86, 134.02, 475.86, 240.94, 424.66, 234.92, 435.2, 201.79, 453.27, 144.56]], "area": 10071.745550000003, "iscrowd": 0, "image_id": 111705, "bbox": [289.13, 31.62, 186.73, 209.32], "category_id": 67, "id": 120013}, {"segmentation": [[640.0, 186.86, 637.39, 271.08, 614.49, 279.84, 614.49, 271.08, 615.16, 261.65, 621.22, 254.23, 594.95, 247.5, 499.95, 208.42, 495.91, 203.71, 495.91, 196.97, 523.53, 194.27, 519.49, 183.49, 501.97, 172.04, 496.58, 168.67, 505.34, 157.22, 491.19, 157.22, 473.68, 161.93, 473.0, 169.35, 475.03, 173.39, 475.03, 175.41, 458.18, 190.23, 444.71, 190.9, 446.73, 179.45, 452.79, 171.37, 453.47, 165.98, 437.97, 160.59, 419.78, 151.15, 433.93, 144.42, 452.79, 139.03, 462.22, 137.68, 474.35, 136.33, 488.5, 140.38, 499.95, 140.38, 514.1, 148.46, 517.47, 142.4, 585.52, 139.7, 588.21, 146.44, 590.23, 152.5, 598.32, 151.83, 634.7, 170.02, 640.0, 181.47, 637.39, 193.6]], "area": 14315.203449999995, "iscrowd": 0, "image_id": 543882, "bbox": [419.78, 136.33, 220.22, 143.51], "category_id": 67, "id": 120098}, {"segmentation": [[137.04, 410.85, 102.4, 139.8, 137.04, 139.8, 150.59, 153.35, 177.69, 163.89, 188.24, 159.37, 186.73, 144.31, 210.82, 148.83, 201.79, 184.97, 210.82, 213.58, 215.34, 224.13, 237.93, 221.11, 237.93, 171.42, 237.93, 142.81, 266.54, 139.8, 278.59, 142.81, 376.47, 243.7, 397.55, 267.8, 421.65, 281.35, 459.29, 291.89, 474.35, 308.45, 469.84, 350.62, 475.86, 633.73, 174.68, 630.71, 161.13, 549.4, 281.6, 523.8, 344.85, 474.1, 341.84, 465.07, 373.46, 450.01, 328.28, 465.07, 249.98, 471.09, 149.08, 457.54, 128.0, 454.53, 114.45, 431.94, 134.02, 410.85]], "area": 133090.99185, "iscrowd": 0, "image_id": 111705, "bbox": [102.4, 139.8, 373.46, 493.93], "category_id": 67, "id": 120557}, {"segmentation": [[52.48, 430.97, 64.0, 295.29, 47.36, 291.45, 1.28, 436.09, 0.0, 356.73, 16.64, 290.17, 2.56, 283.77, 2.56, 244.09, 67.84, 237.69, 211.2, 247.93, 225.28, 264.57, 220.16, 287.61, 181.76, 296.57, 184.32, 347.77, 171.52, 337.53, 157.44, 287.61, 148.48, 290.17, 149.76, 338.81, 125.44, 338.81, 120.32, 295.29, 84.48, 296.57, 69.12, 432.25, 52.48, 436.09]], "area": 18553.241599999998, "iscrowd": 0, "image_id": 34356, "bbox": [0.0, 237.69, 225.28, 198.4], "category_id": 67, "id": 120773}, {"segmentation": [[258.64, 467.58, 409.98, 378.35, 509.36, 318.49, 569.22, 275.58, 638.12, 278.96, 633.6, 376.09, 631.34, 469.84, 498.07, 470.96, 373.84, 472.09, 266.54, 472.09]], "area": 42549.10534999999, "iscrowd": 0, "image_id": 537924, "bbox": [258.64, 275.58, 379.48, 196.51], "category_id": 67, "id": 122133}, {"segmentation": [[16.08, 421.98, 36.17, 332.56, 95.45, 271.27, 115.54, 276.29, 185.87, 263.23, 256.2, 239.12, 290.36, 243.14, 305.43, 233.09, 329.54, 246.15, 350.64, 226.06, 348.63, 207.97, 324.52, 189.89, 306.44, 184.87, 297.39, 173.81, 455.13, 204.96, 510.39, 231.08, 560.63, 284.33, 580.72, 335.57, 575.7, 403.89, 562.64, 419.97, 20.09, 420.97]], "area": 96000.9319, "iscrowd": 0, "image_id": 64492, "bbox": [16.08, 173.81, 564.64, 248.17], "category_id": 67, "id": 122177}, {"segmentation": [[1.01, 419.68, 0.0, 270.28, 64.61, 232.93, 69.65, 206.69, 61.58, 172.36, 60.57, 169.34, 50.47, 163.28, 35.33, 154.19, 29.27, 149.15, 14.13, 143.09, 5.05, 141.07, 3.03, 138.04, 1.01, 137.03, 1.01, 134.01, 3.03, 130.98, 6.06, 126.94, 9.09, 126.94, 101.96, 134.01, 111.04, 152.18, 120.13, 166.31, 130.22, 169.34, 141.32, 178.42, 129.21, 191.54, 122.14, 202.65, 121.13, 209.71, 119.12, 219.81, 107.0, 231.92, 110.03, 248.07, 124.16, 262.21, 150.41, 293.5, 197.85, 312.68, 286.69, 335.9, 378.55, 330.85, 464.35, 294.51, 482.52, 262.21, 483.53, 229.9, 464.35, 208.71, 408.83, 174.38, 404.79, 174.38, 399.74, 171.36, 482.52, 179.43, 500.69, 184.48, 525.93, 187.51, 543.09, 211.73, 545.11, 224.86, 550.15, 234.95, 559.24, 247.06, 564.29, 252.11, 532.99, 260.19, 509.78, 264.23, 494.63, 282.4, 494.63, 302.58, 523.91, 334.89, 573.37, 353.06, 596.59, 350.03, 623.84, 345.99, 640.0, 337.92, 640.0, 354.07, 634.95, 415.64, 508.77, 416.65, 322.02, 414.63, 8.08, 415.64]], "area": 83160.85560000001, "iscrowd": 0, "image_id": 101766, "bbox": [0.0, 126.94, 640.0, 292.74], "category_id": 67, "id": 122915}, {"segmentation": [[271.69, 264.93, 381.05, 262.67, 476.87, 272.82, 494.91, 276.2, 476.87, 337.08, 499.42, 348.35, 448.69, 384.43, 454.33, 360.75, 436.29, 357.37, 409.23, 404.72, 367.52, 356.25, 384.43, 303.26, 328.06, 272.82, 299.88, 305.51, 313.41, 346.1, 272.82, 373.16, 248.02, 347.23, 233.36, 337.08, 253.66, 322.42, 259.29, 301.0, 243.51, 279.58, 272.82, 264.93]], "area": 18889.91115, "iscrowd": 0, "image_id": 510979, "bbox": [233.36, 262.67, 266.06, 142.05], "category_id": 67, "id": 123419}, {"segmentation": [[537.0, 22.19, 394.0, 21.19, 398.0, 112.19, 536.0, 111.19, 540.0, 18.19]], "area": 12776.5, "iscrowd": 0, "image_id": 256611, "bbox": [394.0, 18.19, 146.0, 94.0], "category_id": 72, "id": 124330}, {"segmentation": [[97.94, 163.09, 177.35, 161.32, 181.76, 214.26, 93.53, 216.03, 94.41, 166.62]], "area": 4523.086249999999, "iscrowd": 0, "image_id": 118550, "bbox": [93.53, 161.32, 88.23, 54.71], "category_id": 72, "id": 124473}, {"segmentation": [[58.43, 54.65, 60.21, 64.43, 60.51, 65.32, 53.39, 68.58, 46.57, 71.54, 46.87, 76.58, 49.54, 83.11, 51.02, 88.74, 54.87, 93.18, 70.88, 83.11, 69.99, 73.62, 68.51, 68.58, 73.55, 76.88, 78.59, 89.63, 80.66, 88.74, 79.48, 84.59, 85.41, 82.81, 92.22, 90.22, 96.67, 90.22, 99.93, 89.33, 105.27, 86.37, 103.49, 64.43, 99.34, 63.24, 89.85, 62.95, 87.19, 65.32, 85.41, 62.65, 85.7, 60.28, 88.37, 57.31, 88.07, 55.54, 86.0, 53.46, 80.07, 54.94, 80.96, 57.61, 81.55, 58.5, 81.55, 61.47, 71.18, 59.98, 66.14, 58.5, 64.06, 54.05]], "area": 1411.5081999999995, "iscrowd": 0, "image_id": 382979, "bbox": [46.57, 53.46, 58.7, 39.72], "category_id": 2, "id": 124697}, {"segmentation": [[462.69, 210.13, 453.89, 207.08, 454.9, 195.23, 446.1, 203.7, 442.38, 210.8, 436.63, 210.46, 436.96, 208.77, 414.97, 202.68, 407.52, 186.44, 408.2, 170.53, 415.3, 160.37, 429.86, 156.65, 438.32, 155.97, 439.67, 140.74, 440.35, 136.68, 429.52, 128.9, 429.18, 123.48, 434.6, 121.11, 432.9, 116.71, 425.12, 115.02, 426.47, 111.98, 435.61, 114.01, 438.66, 127.21, 444.41, 128.22, 446.1, 139.05, 448.47, 139.05, 451.18, 137.36, 458.63, 139.05, 458.63, 141.08, 467.76, 142.44, 469.46, 126.19, 465.73, 123.82, 470.81, 118.75, 479.27, 116.71, 483.33, 120.1, 475.21, 126.19, 473.18, 126.87, 470.13, 145.14, 472.84, 147.18, 493.82, 148.53, 491.79, 160.37, 498.56, 180.0, 499.24, 192.87, 494.84, 203.02, 489.42, 210.13, 480.96, 211.82, 471.15, 203.7, 466.07, 191.17, 467.09, 187.11, 463.7, 188.47, 463.03, 189.48, 461.67, 194.22, 460.66, 207.76]], "area": 5212.694550000003, "iscrowd": 0, "image_id": 577869, "bbox": [407.52, 111.98, 91.72, 99.84], "category_id": 2, "id": 124817}, {"segmentation": [[324.79, 346.57, 327.93, 347.71, 332.77, 361.11, 339.91, 366.53, 353.88, 364.25, 359.59, 353.98, 363.87, 336.87, 366.43, 336.3, 365.58, 328.03, 361.58, 320.32, 362.44, 316.54, 366.43, 315.97, 364.72, 306.27, 359.87, 306.27, 354.45, 306.27, 346.75, 306.27, 343.33, 305.7, 340.76, 296.29, 348.75, 290.59, 343.33, 288.02, 335.91, 291.73, 332.2, 301.14, 329.64, 312.26, 323.93, 323.1, 324.22, 333.37, 323.36, 345.64], [307.1, 350.77, 314.23, 353.91, 319.65, 352.2, 317.94, 350.2, 315.09, 349.63, 309.38, 349.63], [316.8, 326.53, 309.96, 311.98, 308.81, 313.98, 307.67, 333.09, 305.96, 344.21, 302.82, 344.5, 299.12, 353.05, 293.41, 357.62, 288.85, 355.34, 288.56, 344.21, 291.41, 333.09, 294.27, 323.1, 297.4, 313.69, 299.97, 309.41, 302.82, 305.99, 305.68, 303.14, 309.96, 282.89, 298.26, 281.46, 312.24, 281.17, 321.65, 281.17, 326.21, 284.31, 324.79, 286.88, 317.09, 286.59, 314.8, 295.15, 323.08, 294.87, 321.94, 297.15, 321.94, 300.0, 313.66, 299.43, 312.81, 304.85, 312.81, 307.42, 316.8, 322.53]], "area": 3263.0550000000003, "iscrowd": 0, "image_id": 217636, "bbox": [288.56, 281.17, 77.87, 85.36], "category_id": 2, "id": 125102}, {"segmentation": [[208.74, 554.13, 214.26, 526.54, 229.43, 508.61, 228.05, 492.06, 212.88, 492.06, 244.6, 489.3, 244.6, 497.57, 237.71, 498.95, 239.09, 518.26, 245.98, 532.06, 247.36, 544.47, 237.71, 552.75, 226.67, 555.51, 211.5, 555.51]], "area": 1496.4309500000002, "iscrowd": 0, "image_id": 116740, "bbox": [208.74, 489.3, 38.62, 66.21], "category_id": 2, "id": 125810}, {"segmentation": [[152.54, 44.32, 150.56, 44.44, 148.7, 44.57, 147.83, 46.05, 149.32, 46.43, 151.3, 46.43, 151.92, 47.67, 151.55, 49.9, 151.05, 53.75, 149.56, 54.49, 145.47, 56.23, 144.11, 59.2, 143.86, 60.69, 143.98, 62.55, 146.09, 62.43, 150.19, 61.06, 152.67, 60.69, 154.15, 61.19, 156.14, 63.79, 157.13, 65.53, 157.26, 66.15, 158.37, 65.78, 158.62, 65.53, 159.12, 64.41, 159.86, 63.42, 160.23, 61.93, 161.22, 61.44, 162.34, 62.8, 163.33, 64.29, 165.44, 65.16, 167.55, 64.91, 169.04, 64.04, 169.16, 63.17, 169.41, 59.95, 171.4, 58.83, 172.02, 57.84, 171.89, 55.36, 169.78, 53.5, 168.3, 52.5, 165.44, 52.63, 163.09, 53.12, 161.97, 53.12, 161.72, 51.14, 160.36, 51.02, 160.11, 49.16, 157.13, 48.41, 156.64, 50.89, 154.53, 51.26, 154.28, 49.78, 154.28, 48.16, 154.77, 47.05, 156.64, 46.18, 157.5, 45.43, 157.01, 44.69, 155.02, 44.32]], "area": 308.78324999999984, "iscrowd": 0, "image_id": 382979, "bbox": [143.86, 44.32, 28.16, 21.83], "category_id": 2, "id": 125944}, {"segmentation": [[431.75, 267.44, 434.93, 249.64, 438.11, 242.65, 447.64, 257.91, 474.34, 243.92, 479.42, 236.3, 462.9, 236.3, 448.28, 226.76, 454.0, 216.59, 466.71, 222.95, 473.7, 222.31, 481.96, 216.59, 489.59, 210.24, 495.95, 203.24, 497.86, 214.68, 490.86, 229.94, 492.77, 243.92, 496.58, 252.82, 487.05, 266.81, 483.87, 274.43, 484.51, 264.26, 483.87, 254.73, 466.07, 262.99, 459.72, 267.44, 447.64, 276.34, 439.38, 278.88, 424.12, 273.8]], "area": 2116.0331500000007, "iscrowd": 0, "image_id": 462123, "bbox": [424.12, 203.24, 73.74, 75.64], "category_id": 2, "id": 126140}, {"segmentation": [[16.75, 501.23, 7.65, 525.36, 0.97, 552.74, 0.0, 602.83, 0.64, 621.95, 2.97, 626.96, 6.98, 628.63, 21.34, 626.96, 33.03, 601.58, 43.05, 562.51, 44.05, 551.49, 47.72, 538.46, 47.72, 525.77, 50.4, 524.44, 52.73, 535.12, 56.41, 536.13, 62.08, 531.45, 66.76, 521.77, 69.43, 521.43, 72.71, 527.5, 75.8, 530.25, 82.84, 530.42, 87.82, 523.38, 91.08, 515.48, 95.03, 495.74, 96.23, 478.57, 95.2, 464.67, 97.95, 464.32, 97.95, 452.65, 96.57, 450.42, 97.77, 435.82, 96.4, 433.42, 93.83, 434.28, 92.45, 431.53, 89.02, 433.42, 85.59, 440.8, 85.59, 445.44, 84.55, 449.56, 85.76, 452.99, 85.76, 458.31, 86.62, 472.73, 86.27, 484.06, 86.62, 490.93, 88.16, 494.02, 89.36, 499.17, 88.16, 504.84, 86.79, 509.47, 84.38, 511.88, 79.75, 513.59, 74.43, 514.45, 67.73, 514.11, 66.53, 511.53, 68.42, 508.27, 70.48, 503.46, 70.48, 494.54, 69.45, 484.92, 70.13, 476.0, 68.25, 469.13, 66.01, 464.67, 65.16, 471.19, 64.47, 482.69, 64.3, 489.73, 60.52, 489.73, 57.43, 487.67, 54.68, 484.58, 51.25, 478.74, 47.13, 469.47, 44.21, 453.16, 43.7, 447.84, 44.55, 435.82, 49.19, 430.85, 54.51, 428.27, 64.47, 424.49, 72.71, 423.12, 76.49, 422.95, 84.21, 424.49, 87.13, 423.98, 89.71, 426.21, 91.42, 425.18, 90.05, 422.78, 77.34, 420.2, 78.72, 417.8, 80.43, 417.63, 80.61, 415.22, 76.49, 414.88, 76.31, 413.16, 75.11, 413.16, 73.4, 414.19, 67.22, 414.02, 63.61, 416.25, 58.63, 419.52, 57.43, 417.8, 55.2, 419.0, 46.79, 421.06, 46.44, 424.15, 32.19, 423.81, 27.39, 423.12, 23.95, 417.28, 20.18, 414.02, 13.14, 412.82, 7.3, 416.25, 7.13, 418.14, 12.8, 418.66, 19.49, 420.89, 25.16, 426.55, 27.9, 428.61, 32.37, 433.42, 36.66, 440.29, 35.28, 443.55, 34.43, 448.87, 34.77, 459.52, 34.6, 465.52, 26.01, 480.97, 23.61, 489.04, 26.36, 490.42, 20.01, 498.83]], "area": 8386.221749999997, "iscrowd": 0, "image_id": 201260, "bbox": [0.0, 412.82, 97.95, 215.81], "category_id": 2, "id": 126287}, {"segmentation": [[186.64, 336.92, 188.7, 336.92, 189.53, 340.23, 192.7, 340.64, 192.7, 343.53, 191.46, 346.84, 190.91, 350.83, 190.63, 354.68, 190.63, 355.65, 189.67, 356.61, 187.88, 356.47, 188.57, 357.3, 190.77, 357.3, 191.32, 362.81, 193.94, 363.08, 194.35, 358.54, 194.35, 354.68, 195.72, 355.23, 197.38, 354.68, 196.69, 354.27, 194.21, 353.86, 194.21, 351.52, 194.07, 349.59, 195.04, 347.94, 193.94, 345.05, 194.49, 343.26, 194.21, 340.5, 196.83, 339.82, 197.38, 336.92, 199.3, 336.65, 199.03, 335.55, 197.51, 335.55, 197.24, 334.03, 196.69, 333.9, 195.59, 333.07, 189.12, 333.35, 188.84, 334.72, 188.84, 335.96, 186.91, 336.37]], "area": 132.34050000000013, "iscrowd": 0, "image_id": 201260, "bbox": [186.64, 333.07, 12.66, 30.01], "category_id": 2, "id": 126526}, {"segmentation": [[73.5, 87.64, 32.85, 111.29, 16.59, 114.99, 2.54, 117.21, 0.32, 117.21, 6.24, 132.73, 16.59, 135.69, 31.37, 136.42, 40.24, 134.21, 49.85, 130.51, 58.72, 121.64, 74.24, 109.82, 74.98, 88.38]], "area": 1695.1866499999994, "iscrowd": 0, "image_id": 111705, "bbox": [0.32, 87.64, 74.66, 48.78], "category_id": 2, "id": 126704}, {"segmentation": [[592.29, 1.15, 605.15, 7.58, 602.39, 25.02, 586.78, 15.84, 567.5, 25.94, 555.56, 51.65, 549.13, 48.9, 544.54, 52.57, 544.54, 57.16, 549.13, 129.71, 560.15, 142.56, 587.7, 148.07, 603.31, 135.22, 605.15, 131.54, 610.66, 107.67, 618.0, 105.83, 622.59, 104.91, 626.27, 104.91, 640.0, 112.26, 640.0, 2.98]], "area": 10363.757000000001, "iscrowd": 0, "image_id": 440698, "bbox": [544.54, 1.15, 95.46, 146.92], "category_id": 2, "id": 127507}, {"segmentation": [[446.01, 232.73, 443.07, 236.16, 440.62, 241.06, 434.74, 238.12, 416.12, 235.67, 412.69, 236.65, 410.24, 257.71, 437.19, 259.67, 433.27, 269.96, 418.08, 268.0, 401.92, 277.31, 398.49, 290.54, 397.51, 302.78, 408.77, 316.01, 422.98, 319.93, 429.84, 318.46, 439.15, 307.19, 443.56, 287.6, 434.74, 274.37, 436.7, 268.0, 443.07, 273.88, 446.98, 285.15, 448.94, 295.43, 455.8, 303.76, 457.76, 308.66, 469.52, 310.13, 470.5, 306.21, 476.38, 303.27, 478.34, 308.66, 485.69, 317.97, 497.44, 322.87, 511.65, 321.89, 521.94, 309.15, 519.49, 296.41, 519.49, 288.09, 522.92, 278.78, 515.08, 272.9, 517.04, 266.04, 508.22, 264.08, 492.54, 266.04, 480.79, 271.92, 484.22, 266.04, 494.01, 254.28, 484.71, 253.79, 477.36, 264.08, 478.34, 275.84, 480.3, 284.17, 480.3, 289.56, 475.89, 294.94, 470.99, 297.39, 463.15, 297.88, 464.62, 292.49, 468.05, 289.56, 458.74, 288.09, 452.86, 278.29, 445.03, 260.16, 444.05, 254.28, 446.01, 244.98, 452.86, 241.55, 452.86, 238.12, 446.98, 239.1, 446.98, 237.63]], "area": 5535.172500000001, "iscrowd": 0, "image_id": 35322, "bbox": [397.51, 232.73, 125.41, 90.14], "category_id": 2, "id": 127693}, {"segmentation": [[577.85, 114.41, 594.79, 122.66, 605.65, 124.4, 614.77, 125.7, 617.37, 125.7, 611.73, 129.18, 601.3, 130.48, 597.39, 131.35, 599.13, 142.64, 610.42, 140.47, 611.29, 140.47, 614.33, 140.04, 619.11, 131.78, 619.55, 125.7, 618.24, 122.23, 616.94, 120.93, 617.81, 116.58, 627.8, 118.75, 631.27, 120.49, 625.63, 122.66, 623.02, 124.4, 620.85, 134.83, 617.81, 140.91, 621.72, 144.82, 630.4, 144.82, 633.01, 144.82, 628.67, 150.03, 629.1, 150.46, 635.18, 163.06, 636.92, 173.48, 635.18, 182.17, 633.88, 184.34, 630.4, 194.33, 625.63, 202.59, 621.72, 207.37, 615.64, 209.54, 612.6, 206.93, 611.29, 200.85, 606.51, 192.6, 604.34, 194.77, 599.56, 196.94, 596.52, 190.86, 596.96, 188.69, 600.43, 183.04, 601.74, 179.57, 596.09, 164.36, 590.88, 168.27, 583.06, 196.51, 577.85, 206.93, 573.94, 202.15, 576.98, 194.33, 579.58, 187.38, 581.75, 176.96, 586.53, 164.36, 588.27, 154.37, 591.31, 143.51, 592.61, 135.69, 593.92, 128.31, 587.4, 124.4]], "area": 2874.7028999999984, "iscrowd": 0, "image_id": 577869, "bbox": [573.94, 114.41, 62.98, 95.13], "category_id": 2, "id": 127742}, {"segmentation": [[383.29, 311.08, 401.67, 304.52, 410.89, 290.21, 412.4, 274.58, 412.02, 264.42, 406.94, 252.56, 396.96, 243.52, 386.23, 240.32, 377.95, 239.57, 376.44, 239.57, 380.02, 237.5, 377.95, 231.85, 377.57, 224.18, 376.44, 223.05, 380.39, 219.66, 380.77, 216.65, 379.83, 214.77, 381.71, 212.13, 385.48, 212.13, 388.3, 212.51, 388.3, 211.19, 382.65, 208.93, 379.26, 210.44, 378.7, 213.64, 375.88, 211.19, 372.3, 210.62, 369.29, 210.62, 367.97, 211.94, 366.65, 215.14, 370.6, 217.59, 372.49, 218.53, 373.05, 223.61, 369.29, 232.27, 362.7, 238.3, 354.04, 248.84, 346.32, 259.76, 344.77, 267.45, 331.75, 264.97, 322.75, 261.56, 320.89, 257.53, 322.75, 249.46, 331.12, 229.31, 330.5, 227.14, 325.54, 228.07, 323.06, 226.21, 324.92, 221.55, 315.31, 219.69, 320.58, 227.76, 315.0, 237.68, 314.07, 238.92, 303.53, 237.06, 291.43, 239.54, 283.68, 246.05, 278.1, 254.42, 275.62, 268.07, 276.55, 278.92, 281.2, 290.71, 291.53, 301.12, 302.16, 303.99, 316.49, 300.92, 324.46, 291.92, 328.15, 286.8, 334.69, 287.62, 341.44, 284.76, 342.67, 277.6, 341.65, 273.3, 347.58, 267.57, 353.11, 261.43, 354.54, 256.73, 359.04, 249.16, 367.02, 239.34, 369.06, 238.32, 369.27, 241.18, 364.56, 246.5, 359.86, 253.05, 356.58, 262.25, 354.74, 273.1, 355.97, 285.17, 361.08, 296.21, 369.88, 305.62, 375.41, 308.49], [341.91, 294.83, 341.91, 293.14, 339.25, 291.93, 337.8, 291.93, 336.11, 291.45, 336.11, 293.62, 339.98, 294.59, 341.91, 294.59]], "area": 6991.751799999998, "iscrowd": 0, "image_id": 255604, "bbox": [275.62, 208.93, 136.78, 102.15], "category_id": 2, "id": 127778}, {"segmentation": [[299.09, 166.19, 299.09, 166.19, 309.32, 167.51, 311.69, 168.56, 314.31, 168.82, 315.1, 168.56, 322.19, 166.46, 325.86, 166.98, 324.29, 169.08, 316.41, 171.18, 312.47, 170.66, 312.47, 175.38, 312.47, 175.38, 314.57, 184.57, 314.84, 185.35, 319.04, 193.75, 319.04, 194.28, 319.56, 213.18, 317.99, 234.96, 317.72, 235.22, 315.62, 241.0, 313.52, 237.59, 312.74, 234.7, 305.65, 231.81, 304.86, 227.87, 303.55, 221.58, 301.98, 227.61, 301.45, 229.45, 292.53, 225.25, 291.48, 220.0, 291.48, 219.21, 291.48, 218.69, 289.38, 211.34, 289.38, 210.55, 289.9, 206.88, 290.16, 206.88, 294.1, 205.3, 294.1, 205.3, 294.63, 205.04, 296.73, 202.94, 296.99, 195.85, 297.51, 190.6, 299.09, 185.88, 299.35, 185.88, 300.66, 183.52, 302.76, 185.88, 299.88, 177.48, 301.98, 174.86, 304.6, 177.48, 304.6, 178.0, 306.96, 184.83, 306.44, 177.22, 306.96, 173.81, 305.91, 170.39, 299.35, 169.61, 299.35, 169.61]], "area": 1353.4660500000007, "iscrowd": 0, "image_id": 181837, "bbox": [289.38, 166.19, 36.48, 74.81], "category_id": 2, "id": 127970}, {"segmentation": [[409.41, 157.81, 414.21, 159.61, 417.21, 163.82, 420.21, 167.42, 424.42, 167.42, 428.02, 167.42, 432.22, 166.82, 436.43, 161.41, 444.83, 158.41, 446.63, 158.41, 447.23, 159.61, 440.63, 162.02, 432.22, 167.42, 425.02, 169.82, 426.82, 174.62, 426.82, 178.83, 426.22, 184.23, 428.62, 186.63, 432.82, 189.63, 435.83, 202.24, 437.03, 210.65, 435.83, 219.66, 434.62, 226.86, 431.62, 234.07, 425.62, 234.67, 423.22, 228.66, 421.42, 220.86, 420.82, 212.45, 419.01, 213.65, 417.21, 217.25, 414.81, 225.66, 413.01, 228.06, 409.41, 230.46, 407.01, 226.86, 404.6, 217.85, 406.41, 208.85, 408.21, 199.24, 408.81, 190.84, 414.81, 184.83, 419.01, 182.43, 418.41, 177.03, 419.61, 172.82, 420.82, 169.82, 416.61, 165.62, 413.61, 160.21, 409.41, 159.61, 405.2, 159.01, 401.0, 159.01]], "area": 1353.4566499999994, "iscrowd": 0, "image_id": 181837, "bbox": [401.0, 157.81, 46.23, 76.86], "category_id": 2, "id": 129415}, {"segmentation": [[530.89, 478.65, 505.45, 457.83, 488.1, 391.9, 495.04, 300.53, 507.76, 268.14, 543.61, 216.1, 597.98, 179.08, 637.3, 166.36, 639.61, 166.36, 637.3, 474.02, 551.71, 477.49]], "area": 38078.2745, "iscrowd": 0, "image_id": 525813, "bbox": [488.1, 166.36, 151.51, 312.29], "category_id": 2, "id": 129423}, {"segmentation": [[246.94, 197.32, 248.1, 203.81, 249.49, 204.04, 252.04, 204.96, 253.89, 197.55, 255.75, 202.42, 257.37, 206.12, 261.07, 205.43, 265.01, 197.09, 265.94, 182.72, 261.77, 175.54, 262.23, 163.72, 268.95, 163.96, 268.72, 160.02, 263.86, 160.94, 258.06, 160.94, 256.21, 160.02, 249.72, 159.09, 250.65, 160.94, 255.75, 162.8, 254.59, 166.74, 255.28, 171.14, 254.82, 176.47, 251.81, 177.39, 250.19, 182.95, 249.26, 187.36, 249.72, 192.45, 248.1, 196.39, 246.94, 197.09]], "area": 560.1457, "iscrowd": 0, "image_id": 181837, "bbox": [246.94, 159.09, 22.01, 47.03], "category_id": 2, "id": 130641}, {"segmentation": [[517.79, 310.86, 516.22, 333.57, 519.09, 343.24, 521.18, 345.85, 523.53, 343.5, 524.84, 337.23, 524.57, 330.18, 524.57, 324.44, 519.61, 310.6], [531.1, 289.19, 532.93, 288.93, 538.15, 288.66, 538.41, 289.97, 530.84, 292.06, 529.27, 289.71]], "area": 229.04800000000074, "iscrowd": 0, "image_id": 241076, "bbox": [516.22, 288.66, 22.19, 57.19], "category_id": 2, "id": 131010}, {"segmentation": [[442.55, 336.86, 449.36, 332.85, 456.97, 330.45, 463.38, 326.85, 473.39, 323.24, 481.0, 321.64, 495.82, 320.84, 497.43, 319.23, 522.66, 317.63, 533.08, 313.63, 537.08, 312.02, 552.3, 314.03, 567.53, 316.43, 581.55, 320.44, 588.36, 322.84, 591.16, 330.45, 593.56, 335.66, 600.37, 341.27, 602.78, 349.28, 604.38, 356.89, 606.78, 363.7, 605.18, 374.51, 587.15, 381.32, 576.34, 381.72, 558.31, 384.93, 549.9, 388.93, 546.3, 390.14, 538.69, 390.54, 529.47, 384.93, 529.87, 374.11, 529.47, 368.5, 519.06, 368.1, 511.05, 368.1, 501.03, 369.31, 482.21, 364.9, 476.6, 363.7, 473.39, 364.5, 463.38, 366.1, 457.77, 366.1, 448.56, 366.1, 445.35, 362.5, 442.15, 355.29, 440.15, 348.88, 438.94, 342.87, 440.55, 338.46, 447.76, 334.86]], "area": 8564.44915, "iscrowd": 0, "image_id": 111831, "bbox": [438.94, 312.02, 167.84, 78.52], "category_id": 3, "id": 131991}, {"segmentation": [[129.73, 254.41, 109.57, 253.06, 104.52, 263.48, 101.16, 261.46, 100.49, 263.82, 102.51, 264.49, 100.83, 282.3, 104.52, 282.64, 105.2, 279.95, 130.07, 281.63]], "area": 722.5757999999995, "iscrowd": 0, "image_id": 377226, "bbox": [100.49, 253.06, 29.58, 29.58], "category_id": 3, "id": 132190}, {"segmentation": [[50.4, 295.05, 80.1, 296.66, 82.51, 299.06, 88.12, 315.12, 84.11, 345.61, 46.39, 345.61, 39.97, 323.94, 29.54, 315.92, 27.13, 315.12, 27.13, 312.71, 51.21, 295.85], [102.57, 297.46, 114.61, 298.26, 120.23, 314.31, 123.44, 338.39, 123.44, 344.81, 124.24, 349.63, 112.2, 352.03, 106.58, 353.64, 101.77, 352.03, 98.56, 349.63, 99.36, 313.51, 102.57, 298.26]], "area": 3442.6066499999997, "iscrowd": 0, "image_id": 47387, "bbox": [27.13, 295.05, 97.11, 58.59], "category_id": 3, "id": 132540}, {"segmentation": [[442.73, 212.04, 441.07, 210.62, 432.05, 210.62, 430.87, 214.17, 430.63, 220.58, 442.25, 221.29, 442.73, 221.76, 443.44, 219.15, 443.67, 216.07, 442.73, 211.8]], "area": 125.67485000000008, "iscrowd": 0, "image_id": 425540, "bbox": [430.63, 210.62, 13.04, 11.14], "category_id": 3, "id": 132584}, {"segmentation": [[548.45, 251.26, 569.83, 253.02, 572.23, 254.13, 573.02, 254.61, 576.61, 260.81, 579.32, 266.91, 580.87, 267.59, 582.23, 269.33, 582.32, 270.4, 582.32, 271.08, 581.45, 271.95, 581.26, 272.34, 581.39, 274.55, 582.94, 276.8, 581.53, 279.33, 581.11, 281.59, 581.39, 283.14, 581.95, 285.81, 582.52, 287.92, 582.09, 294.83, 581.11, 297.92, 580.4, 299.19, 579.84, 299.33, 574.35, 298.91, 574.21, 297.22, 573.5, 294.83, 572.38, 295.25, 572.38, 299.47, 572.09, 303.13, 571.39, 304.82, 570.4, 305.25, 567.02, 305.25, 565.33, 304.68, 564.63, 302.43, 564.35, 299.75, 564.35, 297.5, 564.35, 296.8, 560.69, 296.8, 553.79, 296.8, 543.79, 296.23, 548.01, 263.84, 548.58, 252.72]], "area": 1557.9511000000007, "iscrowd": 0, "image_id": 357428, "bbox": [543.79, 251.26, 39.15, 53.99], "category_id": 3, "id": 133894}, {"segmentation": [[334.62, 61.98, 329.74, 70.34, 324.17, 82.19, 333.22, 98.91, 335.31, 114.93, 324.86, 126.07, 314.41, 135.13, 304.66, 146.97, 304.66, 140.7, 300.48, 140.7, 298.39, 100.3, 291.96, 102.2, 292.85, 80.74, 298.21, 47.66, 303.58, 35.15, 319.67, 35.15, 334.87, 27.99, 371.53, 36.04, 387.62, 40.51, 387.62, 51.24, 379.58, 67.33, 372.42, 57.5, 363.48, 54.82, 342.92, 57.5]], "area": 4788.255050000002, "iscrowd": 0, "image_id": 56699, "bbox": [291.96, 27.99, 95.66, 118.98], "category_id": 3, "id": 133916}, {"segmentation": [[502.62, 266.55, 494.16, 266.18, 490.11, 269.49, 489.01, 267.65, 486.07, 265.07, 476.5, 265.81, 476.87, 268.38, 474.3, 268.38, 470.62, 265.81, 469.15, 260.29, 477.98, 256.98, 486.8, 249.63, 504.46, 247.05, 504.46, 249.99]], "area": 489.10564999999957, "iscrowd": 0, "image_id": 111831, "bbox": [469.15, 247.05, 35.31, 22.44], "category_id": 3, "id": 134143}, {"segmentation": [[606.62, 300.42, 609.35, 319.58, 598.41, 340.56, 568.3, 337.82, 554.62, 324.14, 521.78, 318.67, 517.22, 286.74, 536.38, 269.41, 640.0, 234.74, 637.63, 280.35, 625.77, 285.83]], "area": 7574.002399999998, "iscrowd": 0, "image_id": 35322, "bbox": [517.22, 234.74, 122.78, 105.82], "category_id": 3, "id": 134183}, {"segmentation": [[638.9, 286.44, 622.68, 289.53, 611.86, 295.71, 606.88, 300.69, 609.09, 317.86, 606.32, 324.51, 604.11, 330.04, 603.0, 337.8, 603.0, 343.89, 611.31, 347.21, 630.69, 352.2, 640.0, 354.41]], "area": 1963.190699999999, "iscrowd": 0, "image_id": 35322, "bbox": [603.0, 286.44, 37.0, 67.97], "category_id": 3, "id": 134392}, {"segmentation": [[397.59, 307.28, 393.93, 304.74, 392.23, 295.71, 393.93, 288.66, 403.24, 285.27, 421.3, 284.71, 427.79, 286.4, 435.97, 294.3, 441.61, 303.33, 441.33, 314.06, 441.05, 317.44, 437.95, 319.13, 434.0, 320.83, 426.38, 317.72, 419.04, 316.88, 416.78, 310.1, 415.94, 302.77, 414.53, 296.0, 412.27, 292.05, 410.57, 289.51, 404.37, 288.1, 402.39, 290.63, 399.57, 297.12, 397.88, 301.08]], "area": 921.5766500000013, "iscrowd": 0, "image_id": 449573, "bbox": [392.23, 284.71, 49.38, 36.12], "category_id": 3, "id": 134471}, {"segmentation": [[472.16, 258.2, 490.74, 260.16, 495.82, 270.33, 499.15, 273.46, 503.45, 273.65, 502.47, 274.04, 503.06, 278.93, 505.8, 278.54, 505.02, 274.63, 506.38, 273.46, 503.84, 261.92, 503.65, 259.37, 501.69, 258.79, 495.24, 254.68, 494.26, 253.12, 479.59, 252.33, 475.48, 253.51, 471.77, 258.59]], "area": 321.9995999999995, "iscrowd": 0, "image_id": 241076, "bbox": [471.77, 252.33, 34.61, 26.6], "category_id": 3, "id": 134645}, {"segmentation": [[337.75, 206.45, 321.24, 205.63, 315.46, 214.71, 313.81, 222.14, 314.63, 225.45, 317.11, 223.79, 328.67, 225.45, 330.32, 227.92, 333.63, 227.92, 334.45, 225.45, 342.71, 222.14, 341.88, 209.75, 336.1, 208.1]], "area": 478.3291999999997, "iscrowd": 0, "image_id": 425540, "bbox": [313.81, 205.63, 28.9, 22.29], "category_id": 3, "id": 134702}, {"segmentation": [[539.74, 294.13, 533.65, 299.88, 530.27, 309.36, 526.21, 316.47, 526.88, 327.64, 527.22, 334.74, 531.28, 335.76, 533.31, 335.42, 538.05, 342.19, 541.77, 339.82, 549.9, 332.71, 574.6, 334.41, 579.34, 338.13, 582.73, 338.13, 588.48, 339.82, 592.88, 338.81, 592.88, 319.18, 591.87, 316.13, 580.36, 293.79]], "area": 2519.8703499999997, "iscrowd": 0, "image_id": 173163, "bbox": [526.21, 293.79, 66.67, 48.4], "category_id": 3, "id": 134734}, {"segmentation": [[615.66, 113.92, 614.59, 119.18, 616.88, 119.99, 619.98, 119.18, 622.68, 119.86, 623.36, 119.59, 624.17, 118.24, 624.3, 115.94, 622.95, 114.05, 621.6, 112.7, 617.55, 112.43]], "area": 57.425999999999966, "iscrowd": 0, "image_id": 501358, "bbox": [614.59, 112.43, 9.71, 7.56], "category_id": 3, "id": 135558}, {"segmentation": [[0.15, 262.46, 15.33, 260.69, 17.86, 262.71, 21.65, 262.71, 24.94, 267.27, 28.48, 270.81, 35.06, 273.85, 40.88, 273.85, 51.5, 272.33, 56.56, 269.04, 60.86, 264.74, 63.39, 259.93, 64.65, 265.75, 67.94, 266.0, 70.47, 266.0, 71.48, 263.98, 71.74, 261.2, 74.77, 263.73, 82.36, 265.24, 92.99, 263.98, 98.05, 262.71, 102.09, 259.68, 104.12, 257.15, 105.38, 255.89, 106.39, 258.16, 111.45, 258.16, 112.97, 255.13, 112.72, 252.09, 112.72, 251.84, 116.76, 250.57, 122.84, 240.45, 122.33, 227.3, 118.28, 223.51, 117.02, 221.48, 116.01, 217.94, 114.23, 201.75, 101.84, 185.31, 94.0, 178.48, 93.24, 174.68, 91.97, 173.42, 90.71, 172.66, 64.15, 171.14, 63.9, 169.88, 62.63, 169.63, 52.51, 169.63, 47.2, 162.54, 14.57, 162.29, 13.3, 163.81, 11.28, 166.59, 9.51, 170.13, 7.99, 171.14, 0.0, 171.14]], "area": 10925.48485, "iscrowd": 0, "image_id": 255604, "bbox": [0.0, 162.29, 122.84, 111.56], "category_id": 3, "id": 136019}, {"segmentation": [[219.01, 296.61, 222.94, 294.0, 243.65, 293.67, 246.27, 294.43, 246.92, 308.93, 237.76, 308.06, 236.57, 309.69, 234.6, 310.02, 233.29, 309.69, 232.31, 308.28, 216.29, 308.28, 216.72, 303.48, 218.36, 297.37]], "area": 421.50734999999924, "iscrowd": 0, "image_id": 91442, "bbox": [216.29, 293.67, 30.63, 16.35], "category_id": 3, "id": 136539}, {"segmentation": [[46.66, 285.43, 60.65, 282.1, 59.98, 260.12, 54.66, 247.47, 53.99, 238.14, 46.0, 220.82, 46.0, 204.84, 51.99, 199.51, 57.32, 199.51, 77.97, 192.85, 101.28, 190.18, 119.27, 190.18, 136.59, 190.18, 150.57, 194.84, 158.57, 223.49, 162.56, 226.15, 149.91, 230.15, 131.26, 234.81, 119.27, 247.47, 120.6, 263.45, 99.28, 262.79, 83.96, 265.45, 79.3, 270.78, 57.99, 289.43, 51.99, 290.1]], "area": 6711.7636999999995, "iscrowd": 0, "image_id": 540547, "bbox": [46.0, 190.18, 116.56, 99.92], "category_id": 3, "id": 137777}, {"segmentation": [[488.42, 203.6, 498.54, 201.22, 521.76, 242.3, 519.38, 289.93, 500.33, 291.12, 482.47, 291.72, 476.51, 260.76, 491.4, 257.78, 490.8, 206.58]], "area": 2588.2420500000003, "iscrowd": 0, "image_id": 157923, "bbox": [476.51, 201.22, 45.25, 90.5], "category_id": 3, "id": 138520}, {"segmentation": [[1.41, 240.48, 13.34, 232.32, 52.91, 227.3, 97.5, 226.67, 122.62, 226.67, 132.67, 229.18, 140.2, 233.58, 140.83, 240.48, 138.95, 251.16, 140.83, 264.98, 142.09, 273.14, 143.34, 273.77, 139.58, 286.33, 138.32, 293.87, 137.06, 301.4, 135.18, 306.43, 127.01, 308.31, 123.25, 310.2, 118.85, 310.2, 114.45, 308.31, 108.17, 303.92, 105.66, 300.15, 0.15, 311.45, 0.78, 241.11, 5.8, 235.46, 11.46, 233.58]], "area": 10779.321099999997, "iscrowd": 0, "image_id": 338086, "bbox": [0.15, 226.67, 143.19, 84.78], "category_id": 3, "id": 138743}, {"segmentation": [[306.4, 275.8, 309.61, 275.0, 313.62, 286.23, 325.66, 287.84, 329.68, 279.01, 330.48, 246.11, 322.45, 220.42, 317.64, 222.03, 312.82, 229.25, 303.99, 222.83, 303.99, 209.19, 296.77, 208.38, 294.36, 213.2], [350.54, 249.32, 356.16, 249.32, 358.57, 262.96, 348.94, 265.37], [338.5, 256.54, 337.7, 264.56, 336.9, 268.58, 341.71, 267.78], [245.41, 270.99, 257.44, 290.25, 259.85, 287.84, 252.63, 268.58]], "area": 1978.568750000001, "iscrowd": 0, "image_id": 338086, "bbox": [245.41, 208.38, 113.16, 81.87], "category_id": 3, "id": 138856}, {"segmentation": [[221.52, 570.55, 256.95, 570.55, 261.18, 574.78, 268.59, 576.89, 273.35, 569.49, 271.23, 546.22, 260.12, 526.65, 219.4, 526.12, 211.47, 543.05, 206.18, 549.92, 204.06, 559.97, 206.71, 573.19, 210.94, 577.42, 217.28, 576.36]], "area": 2772.6993999999995, "iscrowd": 0, "image_id": 146751, "bbox": [204.06, 526.12, 69.29, 51.3], "category_id": 3, "id": 139205}, {"segmentation": [[494.33, 201.94, 498.36, 196.3, 526.01, 195.49, 559.03, 196.57, 572.72, 213.48, 573.53, 216.97, 576.48, 215.9, 576.21, 219.92, 575.14, 221.53, 578.63, 234.69, 578.9, 247.31, 578.63, 247.57, 578.63, 264.76, 577.29, 266.37, 573.53, 259.92, 573.26, 258.04, 567.89, 260.19, 568.96, 266.9, 565.21, 272.54, 562.79, 269.32, 561.98, 262.61, 561.98, 261.0, 538.63, 262.88, 521.98, 263.41, 523.06, 241.67, 503.19, 208.11, 497.29, 201.4, 495.41, 201.67]], "area": 4094.745250000004, "iscrowd": 0, "image_id": 157923, "bbox": [494.33, 195.49, 84.57, 77.05], "category_id": 3, "id": 139654}, {"segmentation": [[398.21, 288.0, 428.34, 288.0, 442.33, 307.37, 496.14, 314.91, 502.6, 349.35, 493.99, 357.96, 484.3, 357.96, 471.39, 350.42, 443.41, 351.5, 420.81, 354.73, 410.04, 353.65, 406.82, 340.74, 421.88, 335.35, 421.88, 296.61], [390.67, 284.77, 336.86, 280.47, 329.33, 281.54, 334.71, 301.99, 372.38, 286.92, 384.22, 295.53], [311.03, 285.85, 291.66, 285.85, 294.89, 293.38, 312.11, 297.69], [285.2, 301.99, 274.44, 314.91, 276.59, 331.05, 314.26, 322.44, 312.11, 313.83]], "area": 5461.195199999999, "iscrowd": 0, "image_id": 47387, "bbox": [274.44, 280.47, 228.16, 77.49], "category_id": 3, "id": 140730}, {"segmentation": [[2.87, 535.5, 19.42, 556.41, 30.75, 555.54, 32.49, 559.89, 22.04, 565.99, 32.49, 580.8, 27.26, 618.26, 0.0, 625.23]], "area": 2004.2322000000008, "iscrowd": 0, "image_id": 146751, "bbox": [0.0, 535.5, 32.49, 89.73], "category_id": 3, "id": 140870}, {"segmentation": [[110.1, 251.79, 103.46, 265.05, 97.34, 278.32, 98.87, 303.83, 102.95, 308.42, 109.08, 306.38, 111.63, 295.67, 148.88, 298.73, 149.9, 305.36, 159.08, 307.4, 161.63, 301.28, 159.08, 269.65, 153.98, 254.85, 146.32, 245.66, 112.14, 245.66, 110.61, 254.34]], "area": 3044.524800000001, "iscrowd": 0, "image_id": 548253, "bbox": [97.34, 245.66, 64.29, 62.76], "category_id": 3, "id": 141545}, {"segmentation": [[334.66, 187.13, 349.1, 171.67, 337.76, 159.29, 415.09, 148.98, 450.15, 132.48, 640.0, 137.64, 639.89, 484.11, 614.11, 483.08, 567.71, 505.76, 525.43, 456.27, 515.12, 441.83, 506.87, 422.24, 509.96, 395.43, 498.62, 358.31, 484.18, 352.12, 405.81, 271.69, 380.03, 287.16, 374.88, 327.37, 336.73, 285.09, 319.2, 259.31, 339.82, 188.16]], "area": 74944.15400000001, "iscrowd": 0, "image_id": 178407, "bbox": [319.2, 132.48, 320.8, 373.28], "category_id": 3, "id": 141597}, {"segmentation": [[319.45, 122.23, 319.61, 120.89, 322.93, 120.65, 326.89, 116.85, 335.99, 116.14, 339.55, 116.22, 342.56, 119.39, 343.03, 121.76, 333.38, 122.31, 319.45, 122.31]], "area": 105.79145000000007, "iscrowd": 0, "image_id": 501358, "bbox": [319.45, 116.14, 23.58, 6.17], "category_id": 3, "id": 141806}, {"segmentation": [[272.56, 510.87, 272.56, 499.09, 271.93, 494.35, 272.56, 490.99, 274.67, 486.89, 277.19, 485.31, 280.45, 478.05, 282.03, 472.9, 283.08, 471.43, 285.08, 470.9, 286.03, 470.8, 307.06, 469.54, 305.59, 467.64, 304.53, 466.28, 291.28, 466.28, 283.92, 466.28, 273.93, 467.43, 272.67, 467.85, 267.62, 475.74, 265.83, 480.79, 265.73, 483.31, 264.89, 484.57, 262.68, 484.68, 260.79, 486.47, 260.26, 489.73, 260.05, 493.09, 261.0, 498.56, 264.26, 502.35, 266.88, 503.19, 268.46, 504.03, 269.93, 505.82]], "area": 552.3980500000007, "iscrowd": 0, "image_id": 116740, "bbox": [260.05, 466.28, 47.01, 44.59], "category_id": 3, "id": 142006}, {"segmentation": [[548.05, 302.17, 548.58, 331.81, 553.16, 331.27, 555.86, 328.57, 559.09, 327.76, 558.82, 301.9, 547.78, 301.9], [563.67, 308.1, 564.74, 329.11, 567.44, 329.11, 568.52, 332.34, 573.37, 331.81, 573.37, 314.29, 569.33, 312.95, 564.21, 308.91], [538.35, 303.25, 531.62, 304.06, 529.19, 308.64, 528.92, 327.22, 537.81, 327.22, 538.89, 303.25], [526.5, 310.79, 524.34, 312.95, 524.34, 327.22, 525.42, 327.22, 526.5, 310.79]], "area": 708.5548500000002, "iscrowd": 0, "image_id": 47387, "bbox": [524.34, 301.9, 49.03, 30.44], "category_id": 3, "id": 142011}, {"segmentation": [[124.43, 156.55, 179.53, 158.15, 213.77, 182.76, 262.98, 189.72, 257.1, 194.0, 254.96, 202.02, 249.61, 202.55, 244.79, 197.2, 237.84, 204.69, 240.51, 209.51, 236.77, 214.32, 239.98, 221.81, 248.0, 221.81, 242.65, 233.58, 231.42, 234.12, 217.51, 240.0, 213.77, 240.0, 209.49, 249.63, 199.32, 254.98, 180.06, 256.05, 173.11, 248.56, 167.76, 241.6, 143.69, 239.46, 136.74, 243.74, 127.11, 242.14, 120.15, 248.02, 122.83, 240.0, 122.29, 226.63, 116.94, 222.35, 114.27, 200.41, 91.27, 173.67, 66.12, 170.46, 62.38, 168.32, 50.08, 168.32, 45.26, 161.36, 45.26, 160.29, 68.8, 158.15, 92.87, 156.55, 111.59, 155.48]], "area": 11142.45585, "iscrowd": 0, "image_id": 255604, "bbox": [45.26, 155.48, 217.72, 100.57], "category_id": 3, "id": 142686}, {"segmentation": [[296.33, 455.06, 268.66, 457.95, 255.86, 471.99, 255.86, 471.99, 255.44, 487.69, 260.4, 488.51, 262.88, 485.21, 262.88, 485.21, 272.79, 467.04, 301.29, 465.38, 296.33, 455.47]], "area": 565.4224000000003, "iscrowd": 0, "image_id": 116740, "bbox": [255.44, 455.06, 45.85, 33.45], "category_id": 3, "id": 142772}, {"segmentation": [[278.9, 321.33, 273.04, 305.11, 257.72, 301.05, 250.95, 300.6, 259.52, 287.53, 289.27, 288.88, 295.58, 290.23, 302.79, 306.46, 300.54, 314.57, 293.78, 323.59, 291.52, 330.35, 288.37, 322.24]], "area": 1112.569700000001, "iscrowd": 0, "image_id": 217636, "bbox": [250.95, 287.53, 51.84, 42.82], "category_id": 3, "id": 143028}, {"segmentation": [[438.56, 302.42, 437.34, 299.99, 436.61, 298.77, 438.56, 297.31, 441.48, 297.07, 442.21, 299.74, 448.78, 288.55, 453.64, 287.82, 478.69, 287.34, 481.61, 286.85, 486.48, 294.88, 491.34, 305.82, 492.8, 315.07, 492.31, 328.2, 491.83, 331.36, 485.75, 330.88, 484.53, 327.71, 480.88, 327.47, 480.88, 324.07, 455.83, 324.07, 452.91, 325.28, 448.05, 325.53, 447.07, 331.61, 442.69, 332.58, 441.48, 326.5, 438.8, 326.98, 437.34, 305.82]], "area": 1930.357900000001, "iscrowd": 0, "image_id": 173163, "bbox": [436.61, 286.85, 56.19, 45.73], "category_id": 3, "id": 143852}, {"segmentation": [[405.19, 119.15, 407.78, 118.49, 409.61, 117.7, 414.03, 117.74, 417.1, 118.87, 418.24, 119.77, 421.07, 120.53, 421.24, 121.81, 413.89, 121.67, 413.65, 120.12, 411.75, 120.26, 411.58, 121.71, 401.36, 121.29, 402.81, 120.05]], "area": 50.81815000000007, "iscrowd": 0, "image_id": 501358, "bbox": [401.36, 117.7, 19.88, 4.11], "category_id": 3, "id": 143945}, {"segmentation": [[445.61, 254.72, 435.66, 253.42, 421.82, 244.34, 419.22, 225.3, 424.41, 219.68, 431.77, 204.97, 490.16, 183.78, 558.51, 127.55, 573.65, 121.92, 640.0, 115.87, 640.0, 252.12, 507.03, 252.99, 498.38, 259.48, 477.19, 272.45, 454.26, 263.37, 452.53, 257.31]], "area": 21898.8202, "iscrowd": 0, "image_id": 255604, "bbox": [419.22, 115.87, 220.78, 156.58], "category_id": 3, "id": 143987}, {"segmentation": [[194.16, 164.22, 231.37, 162.61, 249.17, 166.65, 263.73, 180.4, 290.43, 184.45, 266.16, 194.16, 262.92, 190.92, 211.15, 183.64, 188.49, 163.42]], "area": 1508.7202999999981, "iscrowd": 0, "image_id": 255604, "bbox": [188.49, 162.61, 101.94, 31.55], "category_id": 3, "id": 144067}, {"segmentation": [[472.65, 258.24, 466.9, 258.88, 461.36, 264.63, 457.1, 271.23, 457.31, 280.82, 457.95, 285.29, 461.36, 286.36, 463.49, 284.44, 463.92, 282.31, 466.69, 282.31, 467.97, 285.29, 470.74, 282.74, 482.67, 282.52, 483.94, 282.95, 486.5, 286.36, 489.48, 287.64, 490.97, 286.36, 491.19, 283.16, 494.38, 282.31, 495.02, 284.23, 497.58, 284.87, 497.58, 282.52, 498.64, 276.98, 497.79, 274.64, 497.58, 271.87, 491.19, 260.37]], "area": 910.7569499999996, "iscrowd": 0, "image_id": 241076, "bbox": [457.1, 258.24, 41.54, 29.4], "category_id": 3, "id": 144658}, {"segmentation": [[508.63, 323.06, 508.23, 305.79, 516.26, 290.94, 517.06, 287.72, 530.31, 284.91, 547.18, 287.72, 550.39, 288.93, 553.2, 292.94, 537.54, 295.35, 529.51, 306.6, 528.3, 311.82, 528.71, 317.44, 526.7, 321.05, 517.06, 323.06, 515.45, 327.08, 511.04, 325.47, 510.64, 325.47, 508.63, 323.46]], "area": 890.7531499999992, "iscrowd": 0, "image_id": 173163, "bbox": [508.23, 284.91, 44.97, 42.17], "category_id": 3, "id": 144672}, {"segmentation": [[13.15, 258.92, 29.26, 257.37, 45.98, 255.51, 53.11, 259.53, 60.54, 273.78, 63.95, 284.32, 64.57, 290.2, 64.57, 295.78, 63.33, 304.45, 56.21, 305.07, 55.9, 300.73, 53.42, 299.8, 52.49, 303.52, 48.46, 303.83, 45.98, 298.87, 20.58, 299.18, 21.82, 289.27, 19.96, 284.01, 16.56, 279.67, 16.56, 274.4, 16.56, 270.38, 16.56, 267.9, 18.1, 264.49, 18.1, 261.7, 15.32, 260.77]], "area": 1840.8324000000002, "iscrowd": 0, "image_id": 548253, "bbox": [13.15, 255.51, 51.42, 49.56], "category_id": 3, "id": 144781}, {"segmentation": [[0.78, 327.38, 20.11, 327.38, 21.18, 287.65, 19.03, 279.06, 5.07, 240.4, 0.0, 239.33]], "area": 1427.1537499999997, "iscrowd": 0, "image_id": 548253, "bbox": [0.0, 239.33, 21.18, 88.05], "category_id": 3, "id": 144959}, {"segmentation": [[123.17, 299.15, 133.47, 298.81, 138.29, 303.13, 134.8, 304.3, 132.47, 306.29, 132.8, 308.28, 138.45, 308.95, 139.78, 311.44, 129.15, 311.61, 125.83, 308.45, 123.5, 307.95, 121.67, 304.46, 121.17, 301.97, 121.51, 299.64]], "area": 155.10475000000028, "iscrowd": 0, "image_id": 217636, "bbox": [121.17, 298.81, 18.61, 12.8], "category_id": 3, "id": 145362}, {"segmentation": [[319.9, 282.04, 305.77, 281.63, 280.83, 281.21, 277.5, 287.86, 285.4, 289.11, 294.55, 290.36, 300.78, 299.09, 304.52, 305.74, 308.68, 305.32, 312.42, 306.99, 314.08, 312.81, 317.83, 317.79, 321.57, 297.42, 324.06, 282.87, 318.24, 282.87]], "area": 757.1398500000005, "iscrowd": 0, "image_id": 217636, "bbox": [277.5, 281.21, 46.56, 36.58], "category_id": 3, "id": 145418}, {"segmentation": [[64.91, 283.22, 69.0, 284.04, 71.45, 286.9, 72.88, 285.67, 74.31, 283.42, 75.54, 284.45, 77.17, 285.26, 79.01, 285.26, 79.01, 284.85, 79.22, 283.83, 79.63, 281.58, 79.22, 273.61, 76.77, 266.26, 71.66, 260.33, 58.78, 258.08, 57.15, 262.37, 56.33, 265.44, 62.87, 280.15, 64.5, 283.42]], "area": 449.61630000000025, "iscrowd": 0, "image_id": 548253, "bbox": [56.33, 258.08, 23.3, 28.82], "category_id": 3, "id": 145645}, {"segmentation": [[298.53, 199.2, 288.31, 198.59, 284.6, 199.51, 282.12, 201.68, 280.88, 201.37, 279.02, 198.59, 279.02, 196.73, 274.99, 195.18, 273.44, 195.18, 271.59, 197.97, 269.73, 197.97, 268.18, 196.73, 267.56, 194.56, 267.56, 191.15, 267.56, 190.53, 266.01, 190.22, 265.39, 187.74, 266.01, 184.03, 266.63, 179.07, 270.66, 175.66, 270.97, 175.97, 278.09, 168.85, 289.55, 169.16, 307.21, 172.26, 315.57, 185.27, 318.36, 188.67, 314.95, 194.56, 314.33, 197.66, 312.78, 200.75, 310.92, 202.92, 310.31, 202.61, 307.52, 201.37, 306.9, 199.82, 305.35, 199.82, 295.13, 198.28, 295.13, 198.28]], "area": 1300.8384, "iscrowd": 0, "image_id": 20769, "bbox": [265.39, 168.85, 52.97, 34.07], "category_id": 3, "id": 146593}, {"segmentation": [[189.32, 119.1, 195.73, 119.02, 199.13, 120.84, 199.77, 122.27, 199.21, 123.22, 190.11, 123.54], [180.85, 123.69, 188.37, 123.54, 187.26, 119.18, 185.68, 119.66, 183.86, 121.16, 182.51, 122.03, 181.49, 122.35]], "area": 58.13175000000003, "iscrowd": 0, "image_id": 501358, "bbox": [180.85, 119.02, 18.92, 4.67], "category_id": 3, "id": 146736}, {"segmentation": [[605.84, 110.81, 608.45, 113.02, 610.19, 115.0, 610.35, 118.32, 608.29, 118.56, 607.11, 116.43, 605.05, 115.79, 601.65, 115.63, 600.3, 110.57, 605.84, 110.65]], "area": 45.99555000000054, "iscrowd": 0, "image_id": 501358, "bbox": [600.3, 110.57, 10.05, 7.99], "category_id": 3, "id": 146847}, {"segmentation": [[137.04, 492.49, 104.75, 493.26, 91.67, 497.1, 82.45, 510.94, 80.91, 524.79, 79.37, 534.01, 83.98, 546.32, 92.44, 559.39, 105.52, 568.62, 111.67, 571.69, 131.66, 577.85, 137.81, 577.85, 157.04, 572.46, 162.42, 570.16, 170.88, 563.23, 173.96, 554.78, 174.72, 550.16, 174.72, 547.85, 174.72, 532.48, 171.65, 520.94, 171.65, 517.86, 176.26, 506.33, 175.49, 515.56, 177.8, 534.78, 180.88, 546.32, 187.8, 555.54, 196.26, 561.7, 203.95, 564.77, 207.79, 567.08, 207.02, 573.23, 189.33, 594.76, 183.95, 591.69, 176.26, 589.38, 176.26, 591.69, 176.26, 593.23, 180.11, 598.61, 186.15, 606.39, 193.07, 605.62, 216.14, 574.1, 242.28, 575.63, 267.66, 574.1, 283.04, 580.25, 297.65, 598.7, 326.1, 614.85, 369.17, 604.86, 376.09, 592.55, 381.47, 563.33, 378.39, 554.1, 379.93, 549.49, 385.32, 542.57, 383.01, 534.88, 376.09, 522.57, 364.55, 520.27, 362.25, 514.12, 370.7, 507.19, 379.16, 501.81, 375.32, 489.51, 367.63, 469.51, 379.16, 450.29, 358.85, 440.75, 344.04, 434.83, 353.91, 451.61, 343.06, 456.54, 318.38, 466.41, 299.63, 476.28, 292.72, 482.2, 277.92, 482.2, 263.12, 478.25, 259.17, 469.37, 253.25, 471.34, 233.51, 470.36, 230.55, 459.5, 220.68, 451.61, 204.89, 439.76, 193.04, 433.84, 180.21, 431.87, 174.29, 430.88, 172.32, 425.95, 172.32, 423.97, 179.23, 415.09, 183.17, 408.18, 183.17, 407.19, 189.1, 399.3, 192.06, 391.4, 192.06, 388.44, 192.06, 385.48, 183.17, 383.51, 182.19, 389.43, 182.19, 391.4, 179.23, 395.35, 179.23, 383.51, 187.12, 376.6, 187.12, 368.7, 180.21, 359.82, 164.42, 356.86, 167.38, 377.59, 171.33, 381.53, 171.33, 386.47, 168.37, 398.31, 160.47, 407.19, 152.58, 412.13, 145.67, 407.19, 134.81, 407.19, 124.95, 408.18, 114.09, 417.06, 114.09, 427.92, 114.09, 435.82, 115.08, 443.71, 115.08, 447.66, 115.08, 449.63, 112.11, 457.53, 105.21, 460.49, 100.27, 470.36, 97.31, 478.25, 92.38, 484.18, 97.31, 490.1, 115.08, 487.14, 140.74, 480.23, 135.8, 492.07]], "area": 39057.875899999985, "iscrowd": 0, "image_id": 50404, "bbox": [79.37, 356.86, 305.95, 257.99], "category_id": 4, "id": 148135}, {"segmentation": [[284.11, 251.71, 286.96, 245.6, 290.42, 244.79, 291.64, 241.33, 294.29, 238.48, 296.52, 234.41, 296.73, 233.19, 294.9, 233.19, 292.45, 233.4, 290.22, 231.97, 292.25, 226.68, 288.59, 227.09, 289.2, 222.21, 289.2, 219.76, 287.37, 219.15, 286.96, 217.12, 284.32, 214.68, 279.43, 214.07, 276.99, 215.49, 275.57, 217.53, 274.55, 220.17, 272.92, 223.02, 272.31, 226.07, 274.14, 231.36, 275.36, 237.87, 275.36, 240.52, 276.99, 244.99, 279.64, 249.88, 280.65, 251.5, 283.1, 252.11], [295.71, 207.35, 296.52, 206.54, 297.99, 207.19, 298.89, 206.46, 298.8, 204.67, 297.99, 203.53, 297.01, 203.61, 296.44, 204.26, 296.03, 204.91, 295.87, 205.97, 294.57, 206.54], [272.7, 206.24, 271.26, 205.76, 271.16, 204.22, 271.83, 203.45, 272.99, 203.36, 274.24, 203.45, 275.01, 203.84], [293.09, 216.93, 293.23, 215.91, 293.23, 214.6, 292.94, 213.14, 291.77, 212.41, 290.61, 212.99, 290.75, 215.91, 291.05, 217.08, 293.09, 218.1, 293.53, 218.39]], "area": 567.4094999999999, "iscrowd": 0, "image_id": 413895, "bbox": [271.16, 203.36, 27.73, 48.75], "category_id": 4, "id": 148591}, {"segmentation": [[276.85, 269.81, 305.04, 295.98, 317.12, 360.41, 320.14, 347.33, 329.2, 358.4, 332.22, 350.35, 329.2, 340.28, 339.27, 336.25, 337.26, 330.21, 331.22, 330.21, 323.16, 309.07, 337.26, 309.07, 337.26, 296.99, 343.3, 294.98, 349.34, 286.92, 348.33, 268.8, 342.29, 264.77, 338.27, 266.79, 332.22, 264.77, 332.22, 255.71, 327.19, 270.81, 308.06, 267.79], [236.58, 288.93, 228.53, 370.48, 242.62, 381.56, 257.73, 388.6, 286.92, 387.6, 306.05, 378.53, 294.98, 375.51, 295.98, 358.4, 296.99, 352.36, 291.96, 337.26, 288.93, 322.16, 275.85, 311.08, 258.73, 298.0, 254.71, 296.99], [193.29, 288.93, 200.34, 312.09, 200.34, 314.1, 182.22, 303.03, 182.22, 289.94], [184.23, 270.81, 140.94, 236.58, 129.87, 215.44, 114.77, 191.28, 119.8, 185.24, 115.78, 172.15, 111.75, 182.22, 117.79, 212.42, 117.79, 227.52, 111.75, 229.54, 106.71, 240.61, 114.77, 255.71, 114.77, 265.78, 101.68, 254.71, 64.43, 266.79, 67.45, 279.87, 63.42, 279.87, 64.43, 289.94, 64.43, 296.99, 68.46, 313.1, 51.34, 320.14, 55.37, 328.2, 51.34, 337.26, 62.42, 356.39, 45.3, 371.49, 52.35, 382.56, 66.44, 383.57, 82.55, 379.54, 94.63, 370.48, 113.76, 349.34, 116.78, 334.24, 117.79, 327.19, 122.82, 321.15, 132.89, 355.38, 145.98, 381.56, 154.03, 380.55, 154.03, 371.49, 191.28, 377.53, 186.25, 405.72, 199.33, 395.65, 203.36, 375.51, 204.37, 369.47]], "area": 24665.794749999997, "iscrowd": 0, "image_id": 462123, "bbox": [45.3, 172.15, 304.04, 233.57], "category_id": 4, "id": 148658}, {"segmentation": [[4.31, 299.15, 92.04, 330.79, 151.01, 368.18, 241.62, 340.85, 358.11, 335.1, 404.13, 329.35, 425.71, 366.74, 394.07, 412.76, 419.96, 471.73, 389.75, 478.92, 365.3, 471.73, 384.0, 536.45, 337.98, 598.29, 264.63, 624.18, 192.72, 611.24, 149.57, 575.28, 103.55, 582.47, 81.98, 631.37, 90.61, 591.1, 27.33, 583.91, 4.31, 559.46, 2.88, 414.2, 1.44, 302.02]], "area": 101008.13745, "iscrowd": 0, "image_id": 203655, "bbox": [1.44, 299.15, 424.27, 332.22], "category_id": 4, "id": 149015}, {"segmentation": [[555.07, 241.45, 551.99, 224.46, 546.58, 222.15, 525.74, 232.18, 523.42, 229.09, 528.83, 217.51, 538.86, 210.57, 540.41, 204.39, 535.0, 200.53, 543.49, 190.49, 543.49, 182.0, 566.65, 209.79, 582.87, 229.09, 594.45, 229.87, 592.9, 243.76, 585.95, 252.25, 593.67, 252.25, 610.66, 249.17, 623.78, 260.75, 625.33, 278.5, 625.33, 280.05, 625.33, 280.05, 627.64, 289.31, 620.7, 297.03, 612.2, 306.29, 608.34, 308.61, 596.76, 310.93, 585.95, 313.24, 573.6, 304.75, 567.43, 301.66, 556.62, 302.43, 525.74, 309.38, 501.81, 307.07, 471.7, 304.75, 453.94, 295.49, 450.85, 316.33, 440.82, 317.1, 429.24, 317.1, 412.25, 313.24, 399.9, 305.52, 392.95, 304.75, 384.46, 286.99, 384.46, 281.59, 396.81, 264.61, 405.3, 256.11, 411.48, 255.34, 419.2, 250.71, 425.38, 244.53, 436.96, 240.67, 442.36, 240.67, 459.35, 245.31, 459.35, 249.17, 467.84, 262.29, 477.1, 263.06, 490.23, 259.97, 497.17, 258.43, 512.61, 246.85, 520.33, 247.62, 521.88, 260.75, 524.97, 275.41, 529.6, 285.45, 536.55, 301.66, 558.16, 301.66, 562.02, 298.57, 568.2, 290.08, 569.74, 285.45, 569.74, 277.73, 562.02, 270.78, 555.07, 256.89]], "area": 13247.351750000003, "iscrowd": 0, "image_id": 511988, "bbox": [384.46, 182.0, 243.18, 135.1], "category_id": 4, "id": 149182}, {"segmentation": [[0.0, 193.99, 6.34, 186.15, 0.0, 186.64, 1.73, 164.64, 13.05, 164.64, 12.73, 155.26, 14.67, 149.44, 14.99, 146.85, 18.88, 148.14, 32.79, 148.14, 44.75, 141.03, 44.43, 124.21, 38.61, 110.3, 36.99, 103.18, 40.55, 98.98, 47.02, 101.89, 52.52, 119.36, 52.52, 123.88, 51.55, 125.5, 66.43, 126.79, 88.1, 129.06, 92.95, 131.0, 95.86, 135.85, 96.83, 137.79, 122.39, 147.17, 136.3, 151.38, 150.21, 151.38, 151.18, 152.67, 157.0, 147.17, 161.53, 143.94, 165.09, 137.79, 168.0, 134.88, 167.67, 131.97, 155.71, 140.06, 150.85, 140.06, 150.53, 135.85, 164.12, 129.38, 170.91, 123.88, 182.88, 121.62, 192.58, 122.59, 193.88, 123.88, 199.7, 123.24, 207.46, 124.21, 210.05, 126.79, 217.81, 126.47, 222.34, 119.68, 223.31, 114.5, 221.69, 108.36, 220.08, 104.48, 216.84, 98.65, 212.96, 95.09, 216.84, 87.33, 220.72, 84.74, 225.9, 87.98, 231.4, 90.89, 235.6, 94.77, 231.72, 98.01, 228.81, 101.89, 228.49, 107.06, 230.43, 110.94, 232.37, 116.12, 233.34, 119.68, 233.34, 123.88, 237.54, 125.18, 242.72, 134.56, 249.84, 142.97, 254.04, 142.0, 256.95, 138.76, 258.25, 136.18, 262.13, 133.91, 266.66, 135.21, 267.3, 138.44, 265.04, 144.91, 262.13, 146.53, 259.54, 147.82, 256.31, 144.59, 250.81, 149.11, 257.6, 160.11, 262.45, 167.88, 274.42, 168.74, 279.6, 171.65, 289.3, 177.8, 295.77, 183.94, 294.8, 185.24, 291.89, 188.15, 297.71, 201.09, 300.62, 210.47, 300.95, 224.05, 298.68, 232.14, 293.83, 237.32, 288.98, 240.23, 276.36, 237.32, 268.92, 237.64, 266.66, 240.23, 262.45, 240.55, 252.1, 231.82, 241.43, 215.64, 238.84, 218.23, 235.93, 220.17, 234.31, 217.26, 233.02, 214.03, 231.08, 215.64, 232.37, 210.14, 224.93, 201.73, 222.34, 203.67, 224.28, 207.56, 219.11, 218.23, 210.05, 221.47, 205.84, 225.67, 194.2, 227.93, 167.93, 228.8, 170.71, 239.26, 166.23, 239.9, 165.59, 237.34, 166.65, 236.06, 163.45, 228.8, 107.97, 226.24, 105.4, 227.31, 96.87, 236.91, 91.75, 239.9, 85.56, 241.82, 77.87, 243.1, 74.67, 245.02, 60.43, 243.53, 44.85, 242.25, 40.16, 240.11, 32.69, 232.86, 24.58, 221.33, 20.74, 209.59, 20.74, 195.51, 16.25, 198.07, 6.44, 200.84, 2.17, 200.84, 0.46, 201.06]], "area": 26789.628700000005, "iscrowd": 0, "image_id": 191173, "bbox": [0.0, 84.74, 300.95, 160.28], "category_id": 4, "id": 149466}, {"segmentation": [[550.61, 478.08, 546.38, 448.97, 532.3, 426.43, 516.8, 408.59, 499.9, 399.67, 486.75, 378.07, 498.96, 386.99, 502.72, 388.87, 507.41, 386.05, 513.05, 389.34, 519.15, 386.52, 521.03, 382.3, 514.92, 376.19, 510.23, 373.38, 522.91, 365.86, 523.85, 362.58, 521.97, 359.76, 517.27, 358.82, 507.88, 361.64, 503.19, 364.45, 501.78, 364.92, 491.92, 361.64, 480.18, 357.88, 471.26, 355.53, 462.34, 353.66, 450.6, 351.78, 444.5, 351.31, 440.74, 351.31, 431.82, 352.25, 427.13, 353.66, 424.31, 354.6, 413.98, 353.19, 408.81, 352.25, 410.69, 345.67, 410.69, 341.92, 413.51, 339.1, 418.21, 331.12, 421.49, 318.91, 423.84, 307.64, 422.43, 300.13, 416.33, 294.97, 411.16, 293.09, 402.71, 292.62, 397.08, 291.68, 397.55, 283.7, 405.06, 272.43, 408.35, 262.57, 426.66, 238.16, 426.19, 233.46, 414.92, 246.14, 407.88, 258.82, 401.3, 266.33, 393.32, 278.53, 386.75, 285.11, 383.46, 292.62, 375.01, 284.64, 356.23, 293.09, 349.66, 293.09, 343.55, 293.56, 340.27, 293.56, 337.45, 293.56, 338.86, 282.29, 342.61, 272.9, 343.08, 257.88, 347.78, 237.69, 343.55, 229.71, 339.33, 232.05, 336.51, 247.08, 335.1, 253.65, 337.92, 260.22, 338.86, 269.61, 338.39, 277.6, 338.39, 279.94, 337.45, 288.86, 336.51, 294.5, 334.16, 295.91, 332.28, 278.53, 331.82, 270.55, 334.16, 259.28, 334.63, 252.71, 324.3, 261.63, 323.83, 268.21, 322.89, 272.9, 325.71, 274.78, 329.94, 271.02, 329.94, 275.72, 329.94, 280.88, 329.94, 282.29, 331.35, 285.11, 332.28, 300.13, 326.65, 302.01, 326.18, 307.64, 326.65, 309.52, 320.55, 307.64, 318.2, 306.24, 315.38, 305.77, 314.91, 308.11, 314.91, 309.52, 313.97, 313.28, 309.28, 313.75, 306.93, 313.75, 300.36, 315.63, 298.01, 321.26, 291.44, 322.67, 285.33, 324.55, 279.7, 327.83, 269.84, 327.36, 295.55, 341.93, 296.63, 349.48, 283.69, 366.74, 282.61, 375.37, 279.37, 385.08, 276.13, 390.47, 266.43, 390.47, 262.11, 389.39, 258.88, 389.39, 276.13, 423.91, 280.45, 433.62, 281.53, 436.85, 273.98, 441.17, 265.35, 451.96, 247.01, 457.35, 224.36, 458.43, 208.18, 458.43, 196.31, 456.27, 188.76, 451.96, 180.13, 435.78, 197.39, 419.6, 190.92, 399.1, 157.48, 399.1, 138.07, 399.1, 124.04, 396.94, 111.1, 393.71, 96.0, 391.55, 80.9, 387.24, 77.66, 385.08, 89.53, 376.45, 90.61, 374.29, 91.69, 369.98, 105.71, 369.98, 115.42, 365.66, 119.73, 362.43, 120.81, 360.27, 114.34, 352.72, 108.94, 351.64, 105.71, 351.64, 97.08, 349.48, 91.69, 349.48, 88.45, 349.48, 85.21, 349.48, 76.58, 346.25, 69.03, 346.25, 48.54, 345.17, 37.75, 346.25, 28.04, 350.56, 14.02, 351.64, 6.47, 351.64, 2.16, 353.8, 1.08, 353.8, 0.0, 453.03]], "area": 54084.46574999998, "iscrowd": 0, "image_id": 47387, "bbox": [0.0, 229.71, 550.61, 248.37], "category_id": 4, "id": 149692}, {"segmentation": [[585.57, 220.76, 598.95, 232.22, 609.45, 227.44, 620.92, 222.67, 622.83, 230.31, 636.2, 231.26, 637.16, 217.89, 636.2, 210.25, 630.47, 204.52, 630.47, 197.83, 623.78, 193.05, 619.01, 191.14, 616.14, 209.29, 609.45, 219.8, 592.26, 216.94, 581.75, 216.94, 588.44, 229.35]], "area": 944.3947999999997, "iscrowd": 0, "image_id": 373765, "bbox": [581.75, 191.14, 55.41, 41.08], "category_id": 4, "id": 149708}, {"segmentation": [[623.58, 318.3, 625.79, 316.36, 626.62, 314.43, 628.27, 312.22, 628.55, 310.01, 628.27, 307.8, 626.62, 305.59, 626.62, 303.11, 626.62, 302.28, 626.62, 301.73, 626.62, 300.62, 626.62, 300.62, 624.96, 300.34, 622.47, 300.07, 618.61, 298.69, 618.61, 298.69, 618.33, 298.69, 616.67, 300.62, 617.23, 303.93, 617.23, 306.42, 615.02, 306.42, 614.46, 306.7, 613.63, 307.52, 613.08, 310.56, 613.08, 312.5, 613.08, 314.15, 613.08, 316.64, 613.08, 318.02, 614.46, 318.57, 616.12, 316.91, 616.4, 315.53, 617.78, 314.98, 618.33, 315.81, 618.88, 318.3, 620.82, 318.3, 622.47, 318.3]], "area": 221.34629999999964, "iscrowd": 0, "image_id": 173163, "bbox": [613.08, 298.69, 15.47, 19.88], "category_id": 4, "id": 149883}, {"segmentation": [[243.22, 193.83, 235.97, 205.1, 238.39, 209.13, 237.58, 220.4, 246.44, 221.21, 240.0, 234.9, 235.17, 232.48, 219.87, 235.7, 219.06, 237.32, 220.67, 238.93, 212.62, 248.59, 211.81, 263.89, 219.06, 275.17, 230.34, 283.22, 241.61, 280.81, 251.28, 274.36, 256.91, 266.31, 252.89, 242.95, 258.52, 242.15, 260.94, 251.81, 271.41, 262.28, 276.24, 267.11, 277.85, 252.62, 285.1, 245.37, 296.38, 238.93, 290.74, 230.87, 284.17, 223.41, 281.76, 220.19, 286.59, 213.75, 297.06, 212.14, 299.48, 208.92, 290.62, 202.47, 280.15, 202.47, 275.32, 207.31, 265.65, 206.5, 262.43, 208.92, 260.01, 211.33, 254.38, 204.89, 254.38, 202.47, 260.82, 200.06, 257.6, 194.42, 250.35, 195.23, 243.1, 195.23], [301.09, 221.8, 312.36, 218.58, 320.42, 223.41, 324.44, 228.25, 314.78, 234.69, 312.36, 237.91], [351.02, 212.94, 346.19, 220.19, 350.21, 225.83, 359.88, 223.41, 360.68, 218.58, 351.02, 210.53], [295.45, 245.16, 286.59, 249.19, 282.56, 258.85, 281.76, 268.51, 288.2, 270.93, 297.87, 268.51, 310.75, 245.16, 293.03, 245.16], [317.19, 250.8, 322.83, 257.24, 316.39, 270.13, 310.75, 268.51], [371.15, 245.16, 376.79, 261.27, 373.57, 270.93, 365.52, 279.79, 360.68, 283.82, 358.27, 271.74, 360.68, 255.63, 368.74, 247.57], [352.63, 258.04, 343.77, 270.93, 342.97, 278.18, 342.97, 283.01, 355.85, 283.82, 355.85, 266.9, 357.46, 250.8, 354.24, 250.8]], "area": 5695.90685, "iscrowd": 0, "image_id": 255604, "bbox": [211.81, 193.83, 164.98, 89.99], "category_id": 4, "id": 149909}, {"segmentation": [[55.14, 462.16, 117.84, 431.89, 134.05, 415.68, 154.59, 368.11, 160.0, 358.38, 172.97, 373.51, 187.03, 352.97, 183.78, 332.43, 194.59, 330.27, 208.65, 337.84, 225.95, 337.84, 231.35, 337.84, 235.68, 350.81, 230.27, 354.05, 223.78, 354.05, 224.86, 370.27, 241.08, 382.16, 255.14, 382.16, 260.54, 367.03, 264.86, 356.22, 286.49, 361.62, 318.92, 358.38, 337.3, 347.57, 336.22, 335.68, 328.65, 325.95, 338.38, 324.86, 351.35, 317.3, 369.73, 317.3, 430.27, 281.62, 443.24, 265.41, 444.32, 247.03, 475.68, 244.86, 486.49, 237.3, 504.86, 209.19, 502.7, 185.41, 494.05, 170.27, 473.51, 159.46, 459.46, 150.81, 456.22, 149.73, 461.62, 122.7, 460.54, 106.49, 457.3, 104.32, 471.35, 72.97, 469.19, 60.0, 456.22, 51.35, 433.51, 51.35, 416.22, 50.27, 407.57, 57.84, 395.68, 65.41, 392.43, 64.32, 375.14, 63.24, 372.97, 65.41, 376.22, 77.3, 375.14, 85.95, 372.97, 89.19, 369.73, 89.19, 372.97, 108.65, 380.54, 109.73, 368.65, 119.46, 360.0, 129.19, 360.0, 133.51, 355.68, 145.41, 339.46, 145.41, 334.05, 149.73, 325.41, 158.38, 320.0, 159.46, 304.86, 145.41, 292.97, 136.76, 287.57, 132.43, 277.84, 124.86, 267.03, 122.7, 264.86, 122.7, 262.7, 110.81, 272.43, 97.84, 290.81, 82.7, 309.19, 91.35, 310.27, 97.84, 334.05, 97.84, 351.35, 105.41, 367.57, 108.65, 365.41, 89.19, 354.59, 87.03, 352.43, 85.95, 341.62, 79.46, 323.24, 72.97, 327.57, 65.41, 337.3, 65.41, 342.7, 62.16, 354.59, 68.65, 363.24, 68.65, 366.49, 66.49, 369.73, 61.08, 379.46, 57.84, 383.78, 55.68, 370.81, 39.46, 366.49, 37.3, 355.68, 37.3, 347.03, 37.3, 341.62, 41.62, 336.22, 50.27, 336.22, 52.43, 324.32, 56.76, 322.16, 64.32, 312.43, 61.08, 310.27, 53.51, 308.11, 53.51, 282.16, 58.92, 282.16, 40.54, 287.57, 0.54, 143.78, 2.7, 101.62, 108.65, 78.92, 102.16, 71.35, 111.89, 71.35, 129.19, 81.08, 156.22, 94.05, 154.05, 94.05, 162.7, 91.89, 168.11, 82.16, 168.11, 78.92, 168.11, 86.49, 178.92, 88.65, 191.89, 99.46, 195.14, 104.86, 195.14, 92.97, 222.16, 92.97, 223.24, 48.65, 230.81, 4.32, 261.08, 0.0, 269.73, 1.08, 416.76, 2.16, 449.19, 16.22, 452.43, 32.43, 462.16, 55.14, 462.16, 62.7, 460.0]], "area": 133399.67124999993, "iscrowd": 0, "image_id": 351876, "bbox": [0.0, 0.54, 504.86, 461.62], "category_id": 4, "id": 149998}, {"segmentation": [[52.58, 332.55, 60.67, 312.32, 68.76, 293.72, 85.75, 274.3, 100.31, 265.4, 128.63, 264.59, 145.62, 274.3, 165.03, 287.24, 174.74, 310.71, 168.27, 334.98, 165.03, 351.96, 71.19, 354.39, 60.67, 348.73, 59.06, 341.45], [236.22, 295.33, 258.07, 299.38, 273.44, 292.1, 285.57, 288.86, 299.33, 283.2, 316.31, 281.58, 342.2, 290.48, 355.96, 321.22, 354.34, 343.87, 348.67, 354.39, 169.89, 353.58, 173.93, 344.68, 186.88, 342.26, 194.16, 330.12, 195.78, 322.03, 201.44, 318.8, 211.15, 308.28, 221.66, 300.19], [195.78, 227.38, 202.25, 220.91, 219.24, 219.29, 222.47, 232.23, 222.47, 239.51, 222.47, 250.03, 228.13, 250.03, 238.65, 253.27, 237.03, 263.78, 231.37, 267.02, 207.1, 287.24, 202.25, 296.95, 191.73, 300.19, 188.49, 290.48, 194.97, 279.96, 194.97, 271.87, 194.97, 264.59, 194.97, 255.69, 195.78, 248.41, 195.78, 241.94, 194.16, 233.04, 191.73, 218.48, 200.63, 214.44]], "area": 20405.459199999998, "iscrowd": 0, "image_id": 64744, "bbox": [52.58, 214.44, 303.38, 139.95], "category_id": 4, "id": 149999}, {"segmentation": [[464.86, 243.51, 465.99, 247.66, 468.25, 248.03, 470.88, 248.41, 473.14, 247.66, 479.16, 250.29, 484.06, 255.94, 484.43, 263.47, 484.81, 272.13, 480.29, 284.55, 478.41, 292.83, 474.65, 299.23, 471.64, 299.98, 467.87, 297.72, 466.36, 295.09, 465.61, 290.57, 465.61, 288.31, 463.73, 287.56, 462.6, 285.3, 460.72, 283.8, 459.21, 282.67, 456.58, 279.65, 455.82, 277.4, 456.2, 272.5, 458.84, 267.23, 459.21, 263.84, 459.21, 258.95, 461.47, 252.93, 462.6, 250.67, 463.35, 247.66, 464.11, 246.9, 464.86, 244.64]], "area": 1063.0974500000007, "iscrowd": 0, "image_id": 425540, "bbox": [455.82, 243.51, 28.99, 56.47], "category_id": 4, "id": 150274}, {"segmentation": [[65.8, 403.37, 77.07, 405.34, 83.44, 421.51, 102.56, 420.53, 101.09, 403.86, 93.25, 401.9, 100.6, 400.43, 105.99, 415.14, 109.42, 419.06, 110.89, 427.88, 104.03, 431.8, 97.66, 432.79, 97.66, 430.33, 71.68, 436.22, 68.25, 441.12, 58.94, 442.1, 55.01, 438.18, 55.5, 428.37, 60.9, 422.98, 50.6, 422.0, 54.52, 409.75, 55.5, 406.81, 65.8, 402.88]], "area": 1269.4603500000012, "iscrowd": 0, "image_id": 309536, "bbox": [50.6, 400.43, 60.29, 41.67], "category_id": 4, "id": 150416}, {"segmentation": [[28.25, 282.02, 34.31, 293.12, 36.32, 302.2, 41.37, 320.36, 48.43, 330.45, 56.5, 347.6, 61.55, 352.65, 62.56, 366.77, 62.56, 378.88, 69.62, 389.98, 70.63, 401.08, 65.59, 412.18, 62.56, 422.27, 55.5, 436.4, 51.46, 443.46, 5.05, 435.39, 3.03, 262.85, 13.12, 262.85, 22.2, 267.89, 25.23, 276.97, 29.26, 283.03]], "area": 8299.511849999997, "iscrowd": 0, "image_id": 462123, "bbox": [3.03, 262.85, 67.6, 180.61], "category_id": 4, "id": 150864}, {"segmentation": [[380.51, 255.34, 373.58, 259.97, 362.8, 259.97, 352.01, 258.43, 344.31, 256.89, 339.69, 254.57, 335.84, 249.18, 334.3, 243.79, 338.15, 236.09, 342.77, 226.84, 343.54, 222.22, 345.08, 218.37, 350.47, 214.52, 363.57, 207.59, 373.58, 206.82, 393.61, 209.9, 412.86, 209.9, 422.11, 210.67, 415.18, 218.37, 405.93, 220.68, 401.31, 223.76, 398.23, 233.78, 397.46, 245.33, 396.69, 253.8, 388.99, 258.43, 382.82, 258.43, 378.2, 259.2, 376.66, 259.2]], "area": 3025.6538000000005, "iscrowd": 0, "image_id": 511988, "bbox": [334.3, 206.82, 87.81, 53.15], "category_id": 4, "id": 150902}, {"segmentation": [[595.57, 300.66, 597.29, 295.93, 599.65, 293.57, 600.72, 290.99, 603.51, 286.49, 607.81, 286.7, 609.31, 292.07, 609.31, 295.07, 609.31, 296.58, 609.53, 300.23, 612.1, 303.23, 612.32, 306.45, 612.75, 310.96, 612.75, 312.89, 612.1, 317.4, 610.6, 317.83, 609.1, 316.33, 608.24, 315.04, 607.38, 316.33, 604.37, 316.97, 600.29, 316.54, 596.64, 313.75, 595.57, 309.03, 597.07, 306.88, 598.79, 305.59, 599.01, 304.95, 597.29, 304.31, 596.21, 301.09]], "area": 382.09114999999935, "iscrowd": 0, "image_id": 173163, "bbox": [595.57, 286.49, 17.18, 31.34], "category_id": 4, "id": 151210}, {"segmentation": [[323.19, 140.08, 372.12, 127.62, 395.15, 148.72, 401.87, 171.75, 408.58, 180.38, 431.61, 173.67, 435.45, 182.3, 434.49, 193.82, 455.59, 185.18, 456.55, 207.25, 441.2, 224.51, 459.43, 224.51, 464.23, 224.51, 485.34, 268.65, 476.7, 301.28, 467.11, 311.82, 459.43, 327.18, 451.75, 345.41, 442.16, 371.32, 430.65, 380.91, 425.86, 395.3, 413.38, 407.77, 399.95, 403.93, 396.11, 428.88, 383.64, 434.64, 363.48, 411.61, 358.69, 398.17, 334.71, 380.91, 327.03, 368.44, 321.27, 356.92, 305.92, 345.41, 310.72, 331.97, 295.37, 264.81, 294.41, 260.02, 256.03, 240.83, 252.2, 229.31, 270.43, 217.81, 273.3, 212.05, 286.73, 198.61, 286.73, 189.02, 308.8, 171.75, 314.56, 143.92]], "area": 40010.08235000001, "iscrowd": 0, "image_id": 56699, "bbox": [252.2, 127.62, 233.14, 307.02], "category_id": 4, "id": 151968}, {"segmentation": [[225.8, 385.44, 276.13, 348.04, 314.97, 358.11, 333.66, 373.93, 342.29, 385.44, 368.18, 396.94, 376.81, 392.63, 386.88, 345.17, 373.93, 319.28, 384.0, 281.89, 412.76, 274.7, 464.54, 319.28, 474.61, 325.03, 477.48, 333.66, 509.12, 391.19, 507.69, 414.2, 503.37, 418.52, 520.63, 441.53, 536.45, 455.91, 568.09, 496.18, 573.84, 536.45, 566.65, 568.09, 537.89, 601.17, 499.06, 616.99, 451.6, 614.11, 424.27, 586.79, 409.89, 545.08, 407.01, 523.51, 391.19, 562.34, 366.74, 568.09, 332.22, 589.66, 264.63, 588.22, 256.0, 490.43, 234.43, 408.45], [153.89, 425.71, 188.4, 454.47, 197.03, 493.3, 202.79, 535.01, 224.36, 588.22, 185.53, 572.4, 149.57, 608.36, 102.11, 611.24, 51.78, 586.79, 21.57, 536.45, 21.57, 500.49, 24.45, 487.55, 28.76, 476.04, 44.58, 468.85, 69.03, 445.84, 76.22, 430.02, 61.84, 435.78, 24.45, 450.16, 23.01, 437.21, 23.01, 419.96, 44.58, 404.13, 30.2, 396.94, 48.9, 368.18, 60.4, 352.36, 80.54, 349.48, 86.29, 376.81, 100.67, 382.56, 129.44, 388.31, 100.67, 434.34, 110.74, 480.36, 129.44, 483.24, 152.45, 483.24, 145.26, 461.66, 143.82, 450.16, 140.94, 442.97]], "area": 102503.68050000003, "iscrowd": 0, "image_id": 178407, "bbox": [21.57, 274.7, 552.27, 342.29], "category_id": 4, "id": 152029}, {"segmentation": [[8.64, 214.94, 103.63, 195.75, 143.93, 221.66, 182.31, 254.28, 185.19, 228.37, 173.68, 217.82, 140.09, 207.26, 141.05, 180.4, 154.49, 174.64, 139.13, 157.37, 129.54, 138.18, 160.24, 143.93, 210.14, 143.93, 228.37, 144.89, 263.88, 138.18, 321.45, 126.66, 343.52, 101.71, 340.64, 91.16, 316.65, 89.24, 295.54, 89.24, 253.32, 105.55, 237.01, 112.27, 228.37, 113.23, 222.62, 103.63, 253.32, 89.24, 270.59, 75.8, 283.07, 72.93, 316.65, 72.93, 337.76, 74.84, 424.12, 37.42, 446.19, 26.87, 461.54, 6.72, 462.5, 2.88, 497.05, 2.88, 528.71, 13.43, 538.31, 21.11, 530.63, 32.62, 485.53, 13.43, 470.18, 27.83, 458.67, 39.34, 447.15, 61.41, 462.5, 77.72, 468.26, 120.9, 489.37, 144.89, 501.84, 159.29, 502.8, 166.0, 508.56, 193.83, 517.2, 222.62, 533.51, 287.87, 525.83, 305.14, 506.64, 321.45, 479.78, 316.65, 470.18, 307.06, 450.03, 298.42, 393.42, 345.44, 335.84, 361.75, 276.35, 384.78, 227.41, 400.13, 207.26, 410.69, 203.42, 422.2, 1.92, 419.32, 0.96, 215.9]], "area": 128372.49579999999, "iscrowd": 0, "image_id": 285022, "bbox": [0.96, 2.88, 537.35, 419.32], "category_id": 4, "id": 152230}, {"segmentation": [[0.48, 264.61, 8.05, 266.6, 8.42, 266.97, 17.23, 268.09, 14.87, 272.06, 17.85, 274.17, 19.46, 273.3, 20.83, 273.17, 22.94, 270.07, 22.69, 264.12, 21.45, 262.75, 19.46, 262.13, 19.46, 261.14, 23.93, 261.26, 27.03, 263.37, 30.75, 264.12, 31.13, 264.49, 26.04, 265.85, 25.92, 267.09, 25.92, 268.09, 28.52, 268.58, 28.02, 269.57, 30.88, 269.95, 30.88, 271.44, 35.22, 272.3, 36.96, 274.79, 35.84, 275.53, 37.08, 278.14, 38.07, 280.62, 36.83, 283.59, 33.24, 286.82, 27.28, 287.44, 25.92, 286.7, 23.93, 282.85, 24.3, 278.26, 20.7, 276.03, 19.46, 278.76, 19.09, 280.37, 17.73, 280.87, 15.62, 280.87, 12.64, 280.87, 12.14, 282.11, 8.42, 282.23, 8.42, 281.24, 7.06, 281.98, 3.33, 285.08, 0.36, 285.08]], "area": 541.2957499999998, "iscrowd": 0, "image_id": 241076, "bbox": [0.36, 261.14, 37.71, 26.3], "category_id": 4, "id": 153104}, {"segmentation": [[60.99, 417.49, 55.27, 407.96, 60.99, 404.15, 73.37, 396.52, 74.33, 380.32, 57.17, 378.42, 48.6, 385.09, 45.74, 385.09, 57.17, 369.84, 54.32, 364.12, 42.88, 361.27, 36.21, 357.45, 22.87, 355.55, 14.29, 352.69, 5.72, 360.31, 2.86, 366.98, 1.91, 369.84, 1.91, 414.63, 62.89, 418.44, 61.94, 415.58, 61.94, 415.58]], "area": 3499.4188499999996, "iscrowd": 0, "image_id": 443604, "bbox": [1.91, 352.69, 72.42, 65.75], "category_id": 4, "id": 153108}, {"segmentation": [[327.29, 205.94, 326.97, 207.02, 326.38, 207.99, 326.16, 208.69, 325.73, 208.69, 325.14, 207.77, 325.3, 206.59, 325.14, 206.48, 324.49, 206.54, 323.63, 206.38, 322.08, 204.23, 322.18, 201.86, 323.8, 199.87, 326.11, 197.45, 327.77, 198.15, 328.69, 199.5, 329.06, 201.32, 328.85, 202.56, 328.74, 203.85, 330.3, 204.23, 329.87, 206.0, 328.8, 206.43, 327.94, 206.48, 327.4, 206.48]], "area": 53.84695000000005, "iscrowd": 0, "image_id": 413895, "bbox": [322.08, 197.45, 8.22, 11.24], "category_id": 4, "id": 153278}, {"segmentation": [[351.92, 275.97, 354.06, 281.32, 355.13, 282.39, 366.89, 308.06, 358.34, 313.41, 369.03, 352.99, 374.38, 366.89, 372.24, 411.82, 389.36, 450.33, 416.1, 461.02, 437.49, 441.77, 436.42, 419.31, 470.65, 405.4, 487.77, 404.33, 495.25, 380.8, 485.63, 343.36, 482.42, 318.76, 473.86, 294.16, 478.14, 296.3, 466.37, 274.9, 463.16, 266.35, 462.09, 257.79, 455.68, 244.95, 474.93, 244.95, 487.77, 238.53, 492.04, 227.84, 469.58, 227.84, 455.68, 227.84, 447.12, 229.98, 447.12, 224.63, 443.91, 218.21, 423.59, 212.86, 393.64, 210.72, 377.59, 216.07, 373.31, 236.4, 371.17, 247.09, 362.62, 244.95, 347.64, 238.53, 331.6, 234.26, 325.18, 239.6, 338.01, 257.79, 354.06, 257.79, 374.38, 254.58], [490.98, 242.81, 498.46, 315.55, 505.95, 321.97, 507.02, 332.67, 529.48, 333.73, 530.55, 316.62, 530.55, 299.51, 532.69, 295.23, 533.76, 281.32, 526.27, 266.35, 519.86, 266.35, 504.88, 266.35, 502.74, 266.35, 500.6, 252.44, 494.18, 239.6]], "area": 27224.90625, "iscrowd": 0, "image_id": 522150, "bbox": [325.18, 210.72, 208.58, 250.3], "category_id": 4, "id": 153450}, {"segmentation": [[23.22, 223.23, 73.17, 220.15, 73.94, 243.21, 127.74, 253.2, 157.71, 298.55, 187.69, 280.87, 178.46, 274.72, 163.09, 277.8, 141.57, 240.91, 123.9, 228.61, 143.11, 228.61, 158.48, 225.53, 166.17, 212.47, 173.85, 211.7, 171.55, 195.56, 175.39, 180.19, 192.3, 200.94, 200.75, 214.78, 216.89, 219.39, 220.73, 226.3, 218.43, 239.37, 225.34, 247.82, 246.86, 248.59, 260.7, 251.66, 256.85, 262.42, 259.93, 272.42, 259.93, 283.18, 252.24, 300.08, 245.33, 312.38, 223.04, 313.15, 203.82, 303.16, 192.3, 300.85, 192.3, 293.93, 186.92, 303.16, 165.4, 303.93, 137.73, 306.23, 122.36, 311.61, 99.3, 300.85, 95.46, 303.93, 80.86, 319.3, 64.72, 323.91, 37.05, 312.38, 33.98, 306.23, 4.77, 301.62, 4.0, 291.63, 13.23, 279.33, 10.92, 273.18, 18.61, 267.04, 18.61, 260.12, 18.61, 251.66, 10.92, 251.66, 7.85, 264.73, 8.62, 251.66]], "area": 18280.508200000004, "iscrowd": 0, "image_id": 511988, "bbox": [4.0, 180.19, 256.7, 143.72], "category_id": 4, "id": 153657}, {"segmentation": [[214.19, 38.19, 218.35, 31.94, 217.16, 28.97, 218.35, 26.29, 224.6, 22.12, 228.47, 26.88, 223.11, 31.64, 219.24, 35.81, 218.05, 39.08, 219.24, 40.57, 221.92, 44.44, 220.43, 50.39, 220.43, 56.05, 220.43, 58.43, 220.43, 62.59, 215.67, 62.59, 212.1, 62.3, 208.83, 62.3, 206.75, 64.38, 204.66, 65.57, 201.98, 65.57, 199.9, 65.27, 198.12, 68.55, 199.31, 77.77, 194.25, 84.91, 189.19, 92.65, 187.4, 94.73, 187.4, 98.01, 179.67, 100.68, 180.26, 103.66, 176.39, 106.34, 164.49, 113.18, 163.3, 105.45, 163.3, 99.79, 163.3, 96.82, 162.11, 94.73, 160.92, 92.95, 159.43, 90.57, 159.43, 86.4, 160.32, 81.64, 161.22, 79.26, 161.22, 78.66, 160.03, 76.28, 157.35, 75.69, 157.64, 72.71, 159.13, 70.93, 159.43, 68.25, 159.73, 65.87, 160.92, 64.68, 159.73, 61.11, 163.3, 59.92, 169.25, 59.92, 173.42, 59.32, 176.69, 60.21, 179.07, 61.7, 184.72, 64.08, 189.19, 64.38, 190.38, 63.78, 189.78, 59.62, 188.3, 57.83, 184.13, 60.81, 182.64, 55.75, 182.64, 53.37, 180.86, 50.99, 178.18, 50.69, 175.8, 47.42, 176.69, 45.63, 178.77, 43.25, 182.34, 42.66, 185.62, 42.66, 187.11, 43.55, 188.3, 43.55, 191.27, 41.76, 196.33, 39.68, 199.9, 38.19, 203.47, 38.19, 206.45, 37.6]], "area": 2472.1881999999996, "iscrowd": 0, "image_id": 45949, "bbox": [157.35, 22.12, 71.12, 91.06], "category_id": 4, "id": 154146}, {"segmentation": [[371.2, 196.92, 337.54, 196.92, 337.27, 214.09, 331.72, 219.1, 332.94, 231.94, 334.56, 236.4, 328.89, 244.92, 330.78, 252.49, 337.49, 253.82, 334.48, 244.95, 339.0, 235.15, 345.79, 217.99, 357.86, 209.69, 379.17, 208.75, 422.16, 210.82, 418.02, 217.8, 444.42, 216.29, 447.06, 201.96, 448.0, 191.4, 437.44, 186.87, 416.88, 204.79, 425.75, 211.2, 378.23, 204.79]], "area": 1608.8919000000017, "iscrowd": 0, "image_id": 511988, "bbox": [328.89, 186.87, 119.11, 66.95], "category_id": 4, "id": 154293}, {"segmentation": [[268.18, 33.26, 268.73, 42.91, 280.31, 43.47, 284.17, 47.32, 275.35, 51.18, 276.73, 54.22, 289.68, 50.91, 296.3, 58.9, 308.98, 48.7, 308.43, 38.5, 301.81, 31.06, 284.45, 15.62, 276.73, 20.03, 278.93, 24.44, 287.75, 21.96, 298.78, 37.95, 292.99, 42.09, 276.73, 38.78, 273.69, 32.99, 269.01, 32.99]], "area": 667.7879000000004, "iscrowd": 0, "image_id": 45949, "bbox": [268.18, 15.62, 40.8, 43.28], "category_id": 4, "id": 154307}, {"segmentation": [[511.71, 411.34, 485.42, 400.22, 458.11, 384.04, 444.97, 374.93, 429.8, 360.78, 404.51, 349.65, 388.33, 331.45, 375.19, 308.19, 363.05, 284.93, 364.06, 268.75, 367.1, 257.63, 348.89, 245.49, 348.89, 272.79, 344.85, 306.17, 358.0, 334.48, 348.89, 333.47, 351.93, 343.58, 364.06, 354.71, 377.21, 374.93, 379.23, 392.13, 365.07, 411.34, 417.66, 442.69, 437.89, 435.61, 428.79, 417.41, 430.81, 396.17, 450.02, 396.17, 469.24, 406.28, 499.58, 412.35]], "area": 8424.33755, "iscrowd": 0, "image_id": 462123, "bbox": [344.85, 245.49, 166.86, 197.2], "category_id": 4, "id": 154330}, {"segmentation": [[276.07, 137.83, 286.26, 135.36, 292.43, 132.58, 298.91, 131.04, 306.93, 127.34, 311.56, 127.95, 309.4, 133.51, 307.86, 137.21, 310.02, 144.31, 310.02, 152.64, 310.32, 160.05, 317.42, 173.93, 318.66, 184.73, 316.19, 187.2, 312.48, 188.12, 307.24, 182.88, 300.76, 182.88, 292.43, 183.19, 280.39, 170.54, 275.77, 159.43, 274.22, 151.1, 277.92, 145.85, 277.31, 139.37], [258.79, 143.07, 263.42, 157.89, 264.97, 174.86, 264.97, 182.57, 258.49, 176.71, 254.17, 169.61, 249.85, 167.45, 241.51, 160.35, 239.35, 156.96, 239.35, 152.02, 246.14, 150.17, 247.99, 146.47, 257.87, 143.07]], "area": 2244.22785, "iscrowd": 0, "image_id": 522150, "bbox": [239.35, 127.34, 79.31, 60.78], "category_id": 4, "id": 154345}, {"segmentation": [[588.71, 254.96, 606.46, 250.52, 609.95, 243.86, 603.29, 240.37, 602.34, 229.91, 616.61, 225.79, 609.95, 202.33, 615.02, 208.35, 617.88, 221.03, 622.32, 219.45, 628.02, 239.1, 640.0, 243.86, 639.12, 267.0, 626.44, 257.49, 618.83, 256.22, 618.51, 263.2, 623.9, 270.17, 623.9, 277.15, 617.56, 284.12, 613.44, 287.29, 611.22, 288.24, 608.68, 286.66, 602.66, 268.27, 593.47, 256.54, 587.13, 254.96]], "area": 1604.6480499999993, "iscrowd": 0, "image_id": 462123, "bbox": [587.13, 202.33, 52.87, 85.91], "category_id": 4, "id": 154353}, {"segmentation": [[306.5, 197.84, 308.41, 198.23, 309.36, 197.65, 308.54, 199.24, 308.47, 200.39, 308.03, 200.77, 307.07, 200.84, 307.26, 203.0, 307.96, 203.0, 308.09, 204.46, 308.98, 204.59, 309.36, 204.21, 309.68, 206.12, 310.89, 206.56, 311.34, 206.18, 311.02, 203.57, 311.53, 203.89, 312.04, 203.83, 311.15, 202.3, 312.04, 202.49, 312.23, 201.98, 311.59, 201.03, 311.4, 199.88, 311.15, 197.84, 312.35, 198.61, 314.26, 198.35, 313.63, 197.46, 312.16, 197.34, 310.89, 196.19, 309.87, 195.43, 309.68, 196.0, 309.11, 197.08, 308.54, 197.34, 306.56, 197.59]], "area": 34.78809999999983, "iscrowd": 0, "image_id": 413895, "bbox": [306.5, 195.43, 7.76, 11.13], "category_id": 4, "id": 154628}, {"segmentation": [[39.52, 133.59, 49.37, 135.57, 54.5, 133.2, 55.29, 127.68, 58.05, 122.56, 63.17, 125.71, 66.72, 127.68, 65.93, 124.53, 65.93, 115.85, 65.14, 107.57, 60.02, 109.15, 55.29, 108.76, 53.32, 106.39, 52.13, 104.42, 56.47, 99.69, 51.74, 97.72, 47.01, 100.08, 45.82, 103.63, 45.04, 102.84, 41.09, 99.69, 36.76, 103.24, 34.79, 108.36, 40.7, 114.67, 37.15, 117.04, 37.55, 119.8, 37.15, 123.74, 36.76, 130.05, 38.33, 134.38, 41.88, 135.17], [68.69, 130.05, 73.42, 133.99, 80.52, 130.05, 81.31, 117.43, 80.91, 114.67, 85.64, 111.52, 86.04, 108.76, 82.09, 106.39, 79.73, 106.39, 76.18, 108.76, 77.76, 115.85, 77.76, 118.22, 73.03, 115.85, 69.87, 113.88, 69.87, 107.97, 70.66, 105.6, 66.72, 102.45, 63.57, 105.6, 65.93, 111.12, 65.54, 123.34, 66.72, 130.84]], "area": 1136.8201000000004, "iscrowd": 0, "image_id": 522150, "bbox": [34.79, 97.72, 51.25, 37.85], "category_id": 4, "id": 154766}, {"segmentation": [[332.34, 231.62, 325.3, 230.02, 323.06, 223.94, 321.78, 218.82, 323.38, 208.57, 331.38, 201.85, 328.18, 191.6, 335.23, 188.72, 356.68, 190.0, 359.56, 195.44, 338.43, 196.72, 336.51, 212.73, 333.62, 216.26, 332.34, 218.5]], "area": 539.64815, "iscrowd": 0, "image_id": 511988, "bbox": [321.78, 188.72, 37.78, 42.9], "category_id": 4, "id": 154936}, {"segmentation": [[224.66, 241.2, 238.66, 245.86, 243.33, 244.93, 242.39, 239.33, 241.46, 231.4, 238.19, 226.73, 233.53, 224.87, 229.33, 222.53, 225.6, 222.53, 221.4, 222.53], [204.13, 212.27, 192.93, 202.47, 187.34, 189.41, 181.27, 181.47, 177.07, 179.61, 175.67, 176.34, 176.14, 167.01, 179.87, 169.81, 182.67, 177.74, 186.87, 185.21, 192.47, 193.6, 197.13, 200.6, 203.2, 207.6, 209.26, 210.4, 212.53, 215.07, 214.4, 216.93]], "area": 572.40785, "iscrowd": 0, "image_id": 511988, "bbox": [175.67, 167.01, 67.66, 78.85], "category_id": 4, "id": 155425}, {"segmentation": [[204.1, 198.11, 212.6, 201.23, 216.0, 203.78, 221.1, 208.59, 222.8, 213.41, 221.1, 220.49, 216.28, 220.21, 213.73, 214.26, 204.1, 202.65, 200.42, 201.8, 196.46, 193.02, 193.06, 190.47, 187.68, 184.23, 186.83, 179.99, 190.51, 165.26, 192.77, 165.54, 195.32, 173.47, 200.99, 179.7, 209.2, 189.33, 212.89, 194.43, 202.12, 195.85]], "area": 583.1118500000002, "iscrowd": 0, "image_id": 511988, "bbox": [186.83, 165.26, 35.97, 55.23], "category_id": 4, "id": 155633}, {"segmentation": [[432.39, 202.69, 468.93, 206.99, 470.0, 205.91, 501.7, 206.99, 507.08, 173.14, 508.69, 203.23, 516.21, 209.14, 545.23, 212.36, 521.58, 212.36, 618.84, 219.88, 574.78, 219.35, 570.48, 225.79, 566.72, 220.96, 555.43, 219.88, 563.49, 226.33, 553.82, 226.33, 540.93, 220.42, 538.78, 218.27, 537.17, 235.47, 531.26, 237.62, 516.75, 232.24, 508.69, 238.15, 503.32, 220.96, 493.64, 215.59, 487.2, 213.97, 489.88, 219.88, 476.45, 216.66, 473.76, 211.82, 431.32, 204.3]], "area": 1798.4415999999997, "iscrowd": 0, "image_id": 174337, "bbox": [431.32, 173.14, 187.52, 65.01], "category_id": 5, "id": 156762}, {"segmentation": [[31.46, 142.23, 36.03, 136.41, 51.83, 131.83, 70.12, 118.11, 93.82, 113.12, 124.59, 115.62, 316.67, 173.82, 442.22, 212.07, 481.72, 208.33, 575.55, 124.76, 592.18, 124.35, 610.89, 134.74, 579.29, 211.24, 605.07, 207.5, 607.98, 210.41, 601.74, 217.89, 598.0, 227.87, 585.53, 222.05, 576.38, 222.88, 561.42, 255.31, 598.79, 277.3, 600.87, 284.37, 594.22, 293.52, 579.25, 294.35, 416.69, 293.52, 368.88, 287.7, 345.59, 279.8, 351.42, 286.87, 352.66, 298.09, 349.75, 305.57, 320.23, 308.48, 314.41, 299.34, 312.33, 289.36, 319.4, 282.71, 311.92, 280.63, 283.65, 277.72, 278.24, 282.29, 253.71, 282.29, 246.23, 278.55, 239.58, 280.21, 248.72, 285.2, 249.97, 292.69, 248.72, 299.75, 239.58, 308.48, 215.05, 307.65, 208.81, 298.92, 211.31, 284.79, 223.86, 273.96, 213.47, 256.08, 198.5, 251.5, 187.28, 259.4, 162.75, 260.24, 159.01, 263.98, 134.06, 264.39, 110.78, 258.16, 95.4, 246.1, 90.41, 235.29, 97.48, 210.34, 62.55, 198.7, 64.21, 187.48, 37.67, 172.14, 28.52, 162.16, 24.78, 150.52, 28.94, 142.2]], "area": 64161.74484999993, "iscrowd": 0, "image_id": 458640, "bbox": [24.78, 113.12, 586.11, 195.36], "category_id": 5, "id": 156801}, {"segmentation": [[365.47, 103.6, 363.15, 103.17, 352.79, 111.63, 336.3, 111.84, 336.73, 109.73, 332.5, 111.84, 328.48, 112.05, 307.56, 112.9, 305.44, 113.95, 305.02, 115.43, 313.27, 118.18, 318.97, 118.81, 324.26, 119.45, 329.96, 120.08, 335.88, 120.93, 336.3, 121.14, 336.52, 119.45, 345.6, 118.6, 352.16, 118.18, 358.07, 114.38, 361.03, 113.11, 363.15, 112.69, 364.84, 113.11, 363.99, 112.05, 363.36, 110.99]], "area": 406.8493500000002, "iscrowd": 0, "image_id": 146751, "bbox": [305.02, 103.17, 60.45, 17.97], "category_id": 5, "id": 157198}, {"segmentation": [[553.43, 123.65, 540.98, 122.7, 493.11, 177.27, 409.81, 187.81, 132.13, 147.59, 121.6, 150.46, 108.2, 161.95, 92.88, 178.23, 92.88, 188.76, 146.5, 206.0, 177.14, 214.62, 171.39, 234.72, 177.14, 261.53, 225.97, 269.19, 255.65, 264.41, 286.29, 250.04, 336.08, 249.09, 409.81, 260.58, 454.81, 263.45, 478.75, 262.49, 542.9, 255.79, 562.05, 242.38, 611.84, 223.23, 624.29, 214.62, 623.33, 211.74, 577.37, 218.45, 554.39, 221.32, 543.86, 221.32, 548.64, 184.93, 561.09, 174.4, 588.86, 165.78, 593.65, 164.83, 568.75, 158.12, 547.69, 158.12, 549.6, 152.38]], "area": 38901.09929999999, "iscrowd": 0, "image_id": 245139, "bbox": [92.88, 122.7, 531.41, 146.49], "category_id": 5, "id": 157473}, {"segmentation": [[639.64, 270.74, 570.61, 259.96, 560.9, 256.72, 566.29, 250.25, 580.31, 240.54, 631.01, 224.36, 530.7, 177.98, 474.61, 154.25, 451.96, 103.55, 455.19, 98.16, 437.93, 62.56, 460.58, 65.8, 491.87, 107.87, 510.2, 125.12, 528.54, 142.38, 616.99, 161.8, 639.64, 169.35]], "area": 11749.538099999996, "iscrowd": 0, "image_id": 99405, "bbox": [437.93, 62.56, 201.71, 208.18], "category_id": 5, "id": 157476}, {"segmentation": [[223.01, 135.96, 237.3, 135.01, 274.47, 197.91, 306.87, 205.53, 488.9, 208.39, 543.22, 222.69, 573.72, 246.51, 547.03, 261.76, 512.72, 266.53, 468.89, 259.86, 442.2, 243.66, 418.38, 250.33, 407.89, 261.76, 389.79, 267.48, 372.63, 266.53, 364.05, 257.95, 345.95, 252.23, 341.18, 250.33, 194.42, 235.08, 178.21, 200.77, 181.07, 198.86, 207.76, 230.31, 265.89, 236.03, 228.72, 215.06, 229.68, 206.49, 222.05, 134.06]], "area": 17561.80115000001, "iscrowd": 0, "image_id": 223121, "bbox": [178.21, 134.06, 395.51, 133.42], "category_id": 5, "id": 157598}, {"segmentation": [[50.4, 263.06, 265.74, 193.19, 320.72, 154.25, 395.17, 149.67, 501.69, 197.77, 522.31, 126.76, 526.89, 131.34, 524.6, 212.67, 547.51, 225.26, 548.65, 234.43, 636.85, 241.3, 508.56, 250.46, 413.49, 257.34, 289.79, 282.54, 57.27, 279.1]], "area": 37937.47640000001, "iscrowd": 0, "image_id": 913, "bbox": [50.4, 126.76, 586.45, 155.78], "category_id": 5, "id": 157742}, {"segmentation": [[48.9, 65.08, 69.03, 116.85, 83.42, 207.46, 89.17, 147.06, 116.49, 116.85, 145.26, 80.9, 184.09, 80.9, 198.47, 116.85, 221.48, 124.04, 238.74, 160.0, 238.74, 187.33, 231.55, 246.29, 327.91, 239.1, 422.83, 229.03, 425.0, 338.34, 220.04, 371.42, 182.65, 361.35, 155.33, 390.11, 425.0, 413.12, 422.83, 482.16, 94.92, 496.54, 74.79, 512.36, 79.1, 555.51, 86.29, 577.08, 69.03, 604.4, 54.65, 564.13, 51.78, 533.93, 54.65, 510.92, 18.7, 506.61, 17.26, 489.35, 0.0, 483.6, 1.44, 390.11, 18.7, 390.11, 25.89, 362.79, 4.31, 359.91, 1.44, 247.73, 48.9, 250.61]], "area": 120386.24325000003, "iscrowd": 0, "image_id": 452088, "bbox": [0.0, 65.08, 425.0, 539.32], "category_id": 5, "id": 157972}, {"segmentation": [[101.98, 187.45, 137.43, 174.79, 150.73, 166.56, 177.95, 169.09, 215.31, 179.22, 293.81, 197.58, 373.59, 220.37, 465.39, 239.36, 522.37, 221.64, 580.62, 189.35, 609.74, 199.48, 603.41, 217.21, 586.32, 237.47, 579.99, 253.93, 588.22, 257.09, 610.38, 257.73, 618.61, 265.32, 617.34, 270.39, 598.35, 272.92, 583.79, 276.09, 579.35, 281.78, 481.22, 287.48, 394.48, 284.95, 358.39, 277.99, 362.82, 290.65, 347.0, 294.45, 322.3, 277.99, 320.41, 272.92, 314.71, 284.95, 316.61, 292.55, 300.15, 286.85, 294.45, 269.12, 286.85, 265.96, 260.89, 264.69, 223.54, 246.96, 127.3, 214.67, 104.51, 199.48]], "area": 31607.38815, "iscrowd": 0, "image_id": 13000, "bbox": [101.98, 166.56, 516.63, 127.89], "category_id": 5, "id": 158056}, {"segmentation": [[104.49, 31.69, 167.87, 119.33, 219.78, 139.55, 256.85, 140.22, 262.92, 139.55, 285.17, 141.57, 455.06, 152.36, 499.55, 159.78, 524.49, 172.58, 544.72, 191.46, 545.39, 199.55, 519.78, 211.01, 489.44, 215.73, 419.33, 213.71, 416.63, 218.43, 374.16, 218.43, 343.15, 219.78, 298.65, 211.01, 194.83, 194.83, 138.2, 173.26, 98.43, 161.12, 91.69, 148.31, 24.27, 132.81, 20.22, 128.76, 22.92, 126.74, 98.43, 142.25, 82.92, 30.34]], "area": 31844.7291, "iscrowd": 0, "image_id": 191785, "bbox": [20.22, 30.34, 525.17, 189.44], "category_id": 5, "id": 158261}, {"segmentation": [[311.83, 206.24, 273.79, 198.04, 255.88, 166.71, 249.17, 141.35, 257.38, 140.6, 294.67, 186.1, 334.95, 183.87, 327.49, 154.03, 334.2, 154.03, 355.83, 182.37, 513.96, 182.37, 562.45, 180.14, 567.67, 180.88, 577.37, 183.87, 608.69, 190.58, 613.91, 197.29, 498.3, 204.01, 488.6, 207.73, 463.99, 209.23, 438.63, 206.99, 399.1, 206.99, 359.56, 205.5, 315.56, 205.5]], "area": 8412.855349999998, "iscrowd": 0, "image_id": 223121, "bbox": [249.17, 140.6, 364.74, 68.63], "category_id": 5, "id": 158632}, {"segmentation": [[8.63, 381.12, 125.12, 391.19, 109.3, 343.73, 112.18, 314.97, 120.81, 304.9, 161.08, 293.39, 166.83, 286.2, 184.09, 277.57, 155.33, 227.24, 112.18, 102.11, 133.75, 92.04, 188.4, 191.28, 211.42, 261.75, 214.29, 266.07, 235.87, 273.26, 271.82, 289.08, 303.46, 293.39, 316.4, 299.15, 327.91, 317.84, 329.35, 352.36, 316.4, 382.56, 421.39, 368.18, 419.96, 395.51, 349.48, 402.7, 348.04, 412.76, 353.8, 415.64, 349.48, 430.02, 362.43, 434.34, 371.06, 483.24, 349.48, 483.24, 343.73, 481.8, 333.66, 464.54, 335.1, 409.89, 300.58, 414.2, 283.33, 428.58, 327.91, 540.76, 330.79, 568.09, 310.65, 576.72, 303.46, 578.16, 240.18, 447.28, 232.99, 451.6, 232.99, 507.69, 241.62, 519.19, 247.37, 553.71, 244.49, 566.65, 237.3, 582.47, 211.42, 582.47, 208.54, 562.34, 208.54, 562.34, 201.35, 556.58, 204.22, 549.39, 204.22, 549.39, 208.54, 513.44, 201.35, 454.47, 194.16, 454.47, 185.53, 440.09, 184.09, 440.09, 140.94, 421.39, 106.43, 418.52, 97.8, 438.65, 102.11, 460.22, 93.48, 484.67, 92.04, 484.67, 63.28, 481.8, 71.91, 444.4, 81.98, 434.34, 81.98, 421.39, 4.31, 411.33]], "area": 57708.18230000001, "iscrowd": 0, "image_id": 439838, "bbox": [4.31, 92.04, 417.08, 490.43], "category_id": 5, "id": 158845}, {"segmentation": [[229.94, 161.14, 238.24, 133.03, 257.41, 133.67, 272.11, 157.95, 283.61, 162.42, 327.06, 165.62, 327.06, 160.51, 332.18, 157.95, 347.51, 164.98, 356.46, 170.73, 401.19, 170.09, 422.27, 175.2, 429.3, 182.87, 440.17, 191.82, 429.3, 200.76, 421.64, 203.32, 421.64, 209.71, 419.08, 210.35, 416.52, 203.32, 410.77, 205.24, 410.13, 223.13, 406.94, 219.93, 406.94, 210.99, 402.47, 211.63, 397.35, 211.63, 394.8, 214.18, 380.1, 209.07, 379.46, 212.26, 379.46, 214.82, 384.57, 215.46, 384.57, 225.68, 380.1, 227.6, 375.63, 228.24, 372.43, 225.68, 371.15, 219.93, 366.04, 217.38, 362.85, 212.9, 363.49, 207.79, 364.13, 203.96, 351.35, 203.32, 346.87, 205.87, 341.76, 206.51, 336.65, 200.76, 334.09, 198.21, 299.59, 190.54, 266.36, 180.95, 264.44, 180.31, 258.69, 185.43, 256.13, 189.26, 253.58, 189.26, 253.58, 182.23, 258.69, 180.31, 260.61, 178.4, 238.88, 173.92, 235.69, 173.92, 229.94, 170.09, 226.1, 168.81, 221.63, 167.53, 231.21, 166.9]], "area": 7298.485450000001, "iscrowd": 0, "image_id": 279237, "bbox": [221.63, 133.03, 218.54, 95.21], "category_id": 5, "id": 159146}, {"segmentation": [[298.22, 140.72, 338.89, 169.77, 415.38, 171.7, 473.48, 187.2, 473.48, 173.64, 488.0, 165.89, 561.59, 148.47, 575.14, 123.29, 565.46, 119.42, 511.24, 157.18, 454.11, 164.93, 391.17, 169.77, 402.79, 162.02, 383.43, 156.21, 373.75, 129.1, 350.51, 133.94, 358.25, 161.05]], "area": 3758.7867999999985, "iscrowd": 0, "image_id": 67726, "bbox": [298.22, 119.42, 276.92, 67.78], "category_id": 5, "id": 159915}, {"segmentation": [[55.04, 205.01, 70.91, 201.84, 103.73, 227.24, 135.48, 256.87, 152.41, 262.17, 155.59, 250.52, 146.06, 245.23, 176.76, 229.36, 202.16, 230.41, 277.31, 196.54, 283.66, 193.37, 184.17, 189.14, 137.6, 185.96, 184.17, 164.79, 208.51, 156.32, 339.76, 165.85, 371.51, 166.91, 408.55, 152.09, 431.84, 154.21, 446.66, 159.5, 610.71, 134.1, 608.6, 144.68, 576.84, 153.15, 546.15, 160.56, 554.62, 223.0, 614.95, 224.06, 582.13, 247.35, 393.73, 258.99, 433.96, 269.58, 449.83, 256.87, 461.47, 276.98, 445.6, 286.51, 423.37, 273.81, 419.14, 267.46, 376.8, 256.87, 342.93, 256.87, 280.48, 270.63, 264.61, 273.81, 236.03, 278.04, 167.23, 291.8, 131.24, 303.45, 93.14, 304.5, 64.56, 292.86, 45.51, 289.69, 52.92, 270.63, 47.63, 249.47, 44.45, 207.13, 48.69, 199.72]], "area": 48598.435900000004, "iscrowd": 0, "image_id": 303376, "bbox": [44.45, 134.1, 570.5, 170.4], "category_id": 5, "id": 160507}, {"segmentation": [[86.16, 185.53, 93.74, 181.73, 90.79, 180.47, 91.22, 177.94, 94.59, 179.63, 87.42, 169.51, 88.26, 167.4, 94.17, 168.24, 103.86, 179.2, 105.13, 181.31, 105.55, 179.63, 106.39, 177.94, 111.03, 184.26, 121.57, 194.8, 151.5, 199.44, 149.81, 184.26, 149.81, 181.31, 165.83, 204.08, 212.21, 212.51, 213.47, 216.73, 220.22, 219.68, 222.33, 223.05, 222.33, 225.58, 214.74, 226.42, 213.05, 225.16, 214.32, 230.64, 210.1, 227.69, 209.68, 224.31, 173.0, 217.57, 168.36, 218.41, 135.9, 226.84, 134.22, 224.74, 151.08, 215.88, 148.13, 211.67, 130.0, 211.24, 127.89, 211.67, 114.82, 207.03, 114.4, 203.23, 106.39, 200.28, 98.8, 196.49, 97.54, 186.79, 96.7, 184.26, 92.48, 187.64, 89.11, 188.9, 85.73, 185.95]], "area": 2172.3687999999997, "iscrowd": 0, "image_id": 379743, "bbox": [85.73, 167.4, 136.6, 63.24], "category_id": 5, "id": 160761}, {"segmentation": [[347.62, 360.11, 221.7, 346.12, 121.61, 306.3, 76.41, 248.18, 83.95, 238.49, 62.42, 238.49, 88.25, 229.88, 100.09, 209.43, 125.92, 206.21, 127.0, 195.44, 171.12, 178.22, 212.02, 176.07, 226.01, 163.16, 294.89, 152.39, 299.19, 135.17, 308.88, 158.85, 374.53, 172.84, 424.04, 143.78, 411.12, 83.52, 419.73, 81.36, 436.95, 128.72, 445.56, 117.96, 462.78, 126.57, 467.09, 131.95, 511.21, 109.35, 513.36, 117.96, 471.39, 138.4, 475.7, 149.17, 492.91, 156.7, 509.06, 155.62, 514.44, 115.8, 517.67, 116.88, 521.97, 153.47, 579.01, 145.94, 596.23, 133.02, 598.39, 109.35, 600.54, 109.35, 562.87, 67.37, 572.56, 60.91, 615.61, 100.74, 616.68, 88.9, 632.83, 84.59, 639.28, 95.35, 640.0, 208.36, 528.43, 226.65, 637.13, 220.2, 639.28, 276.16, 523.05, 284.77, 513.36, 292.3, 505.83, 322.44, 525.2, 327.82, 524.13, 341.81, 509.06, 352.57, 458.48, 361.18, 428.34, 363.34, 403.59, 375.17, 377.76, 363.34]], "area": 97385.6179, "iscrowd": 0, "image_id": 64908, "bbox": [62.42, 60.91, 577.58, 314.26], "category_id": 5, "id": 160774}, {"segmentation": [[120.31, 301.84, 104.19, 270.69, 104.19, 241.69, 122.45, 222.35, 140.71, 227.72, 165.42, 248.13, 183.68, 238.46, 194.42, 215.91, 213.76, 230.94, 233.09, 223.42, 213.76, 207.31, 191.2, 194.42, 186.9, 189.05, 171.87, 180.46, 167.57, 163.27, 179.38, 151.46, 201.94, 137.49, 213.76, 122.45, 196.57, 95.6, 305.06, 50.49, 340.51, 69.82, 344.8, 117.08, 316.88, 156.83, 310.43, 156.83, 314.73, 166.49, 546.75, 136.42, 639.12, 131.05, 639.12, 464.04, 455.44, 458.67, 373.81, 433.96, 365.21, 410.33, 379.18, 345.88, 386.7, 314.73, 369.51, 308.28, 314.73, 310.43, 213.76, 323.32, 140.71, 329.77, 187.98, 319.02, 114.93, 300.76]], "area": 130109.40829999995, "iscrowd": 0, "image_id": 275327, "bbox": [104.19, 50.49, 534.93, 413.55], "category_id": 5, "id": 160782}, {"segmentation": [[109.27, 40.53, 130.42, 40.53, 191.75, 138.52, 224.18, 156.15, 243.91, 159.67, 280.57, 163.2, 286.92, 161.79, 293.97, 158.97, 303.13, 158.26, 310.18, 162.49, 361.64, 168.13, 425.09, 169.54, 422.27, 156.85, 424.38, 154.74, 435.66, 167.43, 494.17, 173.77, 496.29, 173.77, 541.41, 181.53, 554.09, 188.58, 570.31, 194.92, 575.24, 194.92, 584.41, 205.49, 594.28, 211.84, 606.26, 218.18, 614.72, 225.23, 610.49, 232.99, 601.33, 242.15, 567.49, 252.73, 567.49, 259.07, 540.7, 264.01, 540.7, 270.35, 540.0, 274.58, 539.29, 276.69, 525.9, 278.1, 523.08, 273.88, 523.08, 268.24, 528.01, 264.01, 528.01, 252.73, 477.96, 253.43, 477.96, 256.96, 439.89, 260.48, 428.61, 259.78, 420.15, 253.43, 413.1, 252.73, 410.99, 247.09, 384.2, 246.38, 378.56, 258.37, 373.63, 261.89, 365.87, 261.89, 353.18, 261.89, 344.72, 262.6, 343.31, 262.6, 334.15, 262.6, 313.0, 258.37, 306.66, 257.66, 302.43, 259.78, 289.74, 266.12, 281.98, 266.83, 279.87, 259.78, 279.87, 254.84, 280.57, 249.2, 284.1, 246.38, 288.33, 243.56, 288.33, 243.56, 288.33, 243.56, 288.33, 238.63, 250.26, 234.4, 224.88, 228.76, 210.78, 225.23, 193.16, 220.3, 184.7, 217.48, 176.24, 215.36, 166.37, 211.84, 168.48, 208.31, 168.48, 207.61, 168.48, 207.61, 114.2, 199.15, 57.1, 191.4, 33.84, 192.81, 25.38, 187.87, 18.33, 177.3, 14.8, 162.49, 9.16, 151.92, 3.52, 135.0, 28.9, 135.0, 30.31, 139.23, 11.28, 139.93, 37.36, 178.0, 44.41, 182.94, 104.33, 196.33, 157.91, 199.85, 124.78, 187.87, 122.66, 182.94, 118.43, 173.77, 26.08, 155.44, 150.86, 175.89, 125.48, 168.13, 119.14, 167.43, 130.42, 164.61]], "area": 43535.97265000002, "iscrowd": 0, "image_id": 154727, "bbox": [3.52, 40.53, 611.2, 237.57], "category_id": 5, "id": 161124}, {"segmentation": [[68.26, 131.28, 61.89, 116.72, 75.54, 111.26, 98.29, 114.9, 89.19, 76.68, 92.83, 65.76, 157.45, 82.14, 179.29, 70.31, 193.85, 73.04, 226.62, 54.83, 233.9, 55.74, 207.51, 81.23, 202.96, 91.24, 198.4, 102.16, 180.2, 118.54, 171.1, 170.42, 162.0, 178.61, 157.45, 180.43, 129.24, 159.5, 124.69, 167.69, 122.87, 178.61, 116.49, 184.07, 107.39, 186.8, 97.38, 175.88, 106.48, 153.13, 107.39, 148.58, 102.84, 138.56, 98.29, 147.67, 98.29, 138.56, 97.38, 133.1, 89.19, 136.74, 73.72, 129.46]], "area": 9841.304349999997, "iscrowd": 0, "image_id": 480115, "bbox": [61.89, 54.83, 172.01, 131.97], "category_id": 5, "id": 161135}, {"segmentation": [[198.99, 162.25, 189.89, 81.52, 211.5, 81.52, 254.71, 149.75, 277.45, 128.14, 296.78, 140.65, 284.27, 161.12, 330.89, 164.53, 335.44, 152.02, 346.81, 152.02, 357.04, 164.53, 393.43, 173.63, 403.66, 156.57, 417.31, 157.71, 433.23, 172.49, 429.82, 186.13, 466.2, 246.4, 466.2, 262.32, 448.01, 279.37, 425.27, 288.47, 420.72, 304.39, 412.76, 313.49, 401.39, 320.31, 377.51, 316.9, 371.82, 312.35, 371.82, 299.84, 334.3, 280.51, 295.64, 280.51, 319.52, 303.25, 319.52, 335.09, 297.91, 335.09, 280.86, 323.72, 262.67, 312.35, 262.67, 299.84, 270.62, 290.74, 277.45, 286.2, 212.63, 280.51, 250.16, 308.94, 244.47, 319.17, 224.0, 321.45, 210.36, 323.72, 194.44, 311.21, 183.07, 290.74, 108.02, 269.14, 110.3, 253.22, 239.92, 247.54, 228.55, 228.21, 212.63, 205.46, 118.26, 194.09]], "area": 43341.66079999999, "iscrowd": 0, "image_id": 104125, "bbox": [108.02, 81.52, 358.18, 253.57], "category_id": 5, "id": 161739}, {"segmentation": [[305.22, 322.28, 315.72, 315.65, 296.93, 289.13, 315.16, 274.76, 315.72, 276.97, 307.98, 283.05, 343.34, 293.0, 369.31, 284.15, 382.57, 275.87, 405.78, 267.03, 396.94, 276.42, 388.65, 284.15, 375.39, 297.42, 370.42, 300.73, 357.71, 315.1, 354.95, 353.77, 361.02, 347.14, 365.44, 347.14, 345.0, 360.96, 343.9, 359.85, 345.0, 359.3, 328.42, 332.22, 316.27, 337.2, 314.61, 359.3, 309.09, 362.61, 299.69, 349.35, 302.46, 347.14, 300.8, 345.49, 306.32, 340.51, 297.48, 342.72, 293.62, 338.86, 299.69, 330.01, 291.96, 333.33, 287.54, 333.88, 280.36, 322.28, 285.88, 317.31]], "area": 4176.3551, "iscrowd": 0, "image_id": 480115, "bbox": [280.36, 267.03, 125.42, 95.58], "category_id": 5, "id": 162085}, {"segmentation": [[261.22, 282.03, 390.39, 212.37, 423.76, 208.01, 426.0, 425.7, 354.1, 411.19, 258.32, 363.3]], "area": 26586.1736, "iscrowd": 0, "image_id": 201260, "bbox": [258.32, 208.01, 167.68, 217.69], "category_id": 6, "id": 163144}, {"segmentation": [[80.72, 242.15, 159.28, 115.16, 188.34, 100.09, 288.43, 87.17, 348.7, 88.25, 357.31, 88.25, 363.77, 79.64, 369.15, 72.11, 398.21, 74.26, 412.2, 104.39, 473.54, 135.61, 488.61, 138.83, 523.05, 151.75, 539.19, 175.43, 551.03, 184.04, 539.19, 325.02, 512.29, 335.78, 515.52, 305.65, 504.75, 309.96, 501.52, 326.1, 501.52, 349.78, 487.53, 354.08, 392.83, 393.9, 391.75, 342.24, 379.91, 333.63, 368.07, 344.39, 354.08, 358.39, 355.16, 367.0, 363.77, 376.68, 368.07, 393.9, 368.07, 414.35, 360.54, 428.34, 353.0, 445.56, 344.39, 448.79, 332.56, 445.56, 330.4, 421.88, 330.4, 421.88, 330.4, 421.88, 137.76, 383.14, 81.79, 363.77, 77.49, 361.61, 68.88, 328.25, 80.72, 238.92]], "area": 123676.55715, "iscrowd": 0, "image_id": 357428, "bbox": [68.88, 72.11, 482.15, 376.68], "category_id": 6, "id": 163173}, {"segmentation": [[249.1, 314.84, 243.24, 275.52, 311.01, 258.78, 362.05, 249.58, 363.72, 257.11, 361.21, 258.78, 368.74, 260.46, 367.07, 281.38, 323.56, 286.4, 300.97, 293.93, 290.93, 300.62, 283.4, 306.48, 264.99, 310.66, 261.65, 317.35, 258.3, 319.03]], "area": 4262.048350000002, "iscrowd": 0, "image_id": 91442, "bbox": [243.24, 249.58, 125.5, 69.45], "category_id": 6, "id": 163593}, {"segmentation": [[178.65, 145.29, 287.35, 146.37, 443.41, 200.18, 452.02, 299.19, 345.47, 329.33, 233.54, 323.95, 166.82, 308.88]], "area": 43427.206099999996, "iscrowd": 0, "image_id": 241076, "bbox": [166.82, 145.29, 285.2, 184.04], "category_id": 6, "id": 163846}, {"segmentation": [[1.08, 473.62, 640.0, 473.62, 639.38, 2.15, 0.0, 0.0, 1.08, 473.62]], "area": 302026.22299999994, "iscrowd": 0, "image_id": 425381, "bbox": [0.0, 0.0, 640.0, 473.62], "category_id": 6, "id": 164425}, {"segmentation": [[230.8, 332.3, 221.05, 332.3, 221.4, 318.02, 235.33, 318.37, 236.02, 324.64]], "area": 186.43760000000026, "iscrowd": 0, "image_id": 201260, "bbox": [221.05, 318.02, 14.97, 14.28], "category_id": 6, "id": 164464}, {"segmentation": [[423.7, 341.9, 298.1, 358.76, 250.05, 347.8, 243.31, 354.54, 161.55, 322.51, 156.49, 330.1, 144.69, 328.41, 143.84, 320.83, 128.67, 309.87, 131.2, 197.76, 132.89, 177.53, 250.9, 155.61, 286.3, 124.42, 412.74, 132.01, 417.8, 177.53, 419.49, 228.1, 424.54, 278.68, 427.07, 340.21]], "area": 57794.05375, "iscrowd": 0, "image_id": 377226, "bbox": [128.67, 124.42, 298.4, 234.34], "category_id": 6, "id": 165086}, {"segmentation": [[503.76, 295.38, 503.76, 257.0, 513.36, 242.61, 556.54, 236.85, 577.65, 235.89, 606.44, 232.05, 640.0, 238.77, 636.18, 323.21, 633.3, 365.43, 611.23, 356.79, 606.44, 345.28, 598.76, 337.6, 583.41, 333.76, 566.13, 320.33, 551.74, 320.33, 534.47, 314.57, 534.47, 306.9, 524.87, 302.1, 520.08, 301.14, 521.04, 297.3, 517.2, 290.58, 514.32, 289.62, 514.32, 300.18, 510.48, 300.18, 504.72, 300.18, 503.76, 300.18, 502.8, 296.34, 503.76, 288.66]], "area": 12078.934349999996, "iscrowd": 0, "image_id": 111831, "bbox": [502.8, 232.05, 137.2, 133.38], "category_id": 6, "id": 165281}, {"segmentation": [[573.05, 209.4, 607.64, 208.47, 618.86, 211.27, 622.6, 207.53, 633.82, 202.86, 635.69, 205.66, 634.75, 145.83, 631.04, 130.84, 614.19, 130.09, 610.45, 133.46, 609.33, 131.96, 614.57, 125.22, 610.45, 123.35, 607.08, 124.47, 605.58, 125.59, 604.83, 128.59, 603.71, 130.09, 603.34, 130.09, 600.71, 128.22, 598.84, 127.09, 598.09, 124.85, 596.6, 124.47, 591.73, 128.22, 589.86, 131.59, 589.11, 131.96, 582.37, 130.09, 580.12, 134.96, 579.37, 137.95, 569.64, 139.07, 567.76, 145.06, 556.91, 146.56, 553.91, 197.11, 560.28, 197.86, 572.63, 210.59]], "area": 5856.035100000003, "iscrowd": 0, "image_id": 157923, "bbox": [553.91, 123.35, 81.78, 87.92], "category_id": 6, "id": 165557}, {"segmentation": [[492.94, 136.45, 519.94, 136.45, 525.08, 194.96, 493.58, 200.1]], "area": 1794.0173000000038, "iscrowd": 0, "image_id": 157923, "bbox": [492.94, 136.45, 32.14, 63.65], "category_id": 6, "id": 165908}, {"segmentation": [[201.56, 282.85, 202.51, 246.55, 203.47, 241.77, 245.5, 239.86, 245.5, 287.62, 198.69, 284.76], [256.01, 239.86, 255.05, 289.54, 365.86, 290.49, 363.95, 271.39, 354.4, 277.12, 352.49, 251.32, 348.67, 244.64, 348.67, 234.13, 253.14, 237.95], [391.66, 236.04, 448.02, 236.04, 449.93, 259.92, 452.79, 264.7, 449.93, 274.25, 453.75, 280.94, 449.93, 288.58, 398.34, 291.45, 377.33, 289.54, 378.34, 261.68, 386.94, 259.77, 382.16, 254.04, 380.25, 254.04, 380.25, 251.17, 386.94, 248.31, 389.8, 241.62, 394.58, 236.85]], "area": 11090.56895, "iscrowd": 0, "image_id": 111831, "bbox": [198.69, 234.13, 255.06, 57.32], "category_id": 6, "id": 165957}, {"segmentation": [[141.66, 300.0, 100.93, 290.26, 102.71, 208.81, 106.25, 176.05, 116.87, 166.31, 395.77, 129.12, 468.37, 129.12, 494.93, 137.09, 516.18, 150.37, 518.84, 193.75, 515.3, 325.68, 434.73, 325.68, 426.76, 338.07, 413.48, 338.07, 409.94, 332.76, 405.51, 327.45, 405.51, 325.68, 371.87, 325.68, 316.97, 319.48, 312.54, 338.96, 309.0, 344.27, 299.26, 343.39, 291.29, 338.07, 285.1, 327.45, 279.78, 316.82, 189.47, 302.66, 188.59, 314.17, 186.82, 317.71, 170.88, 317.71, 157.6, 317.71, 151.4, 315.05, 147.86, 310.63, 139.89, 300.0]], "area": 72631.51725, "iscrowd": 0, "image_id": 290628, "bbox": [100.93, 129.12, 417.91, 215.15], "category_id": 6, "id": 166076}, {"segmentation": [[637.48, 161.8, 638.56, 200.63, 632.09, 195.24, 633.17, 180.13, 622.38, 160.72, 632.09, 159.64, 639.64, 158.56], [593.26, 165.03, 549.03, 167.19, 551.19, 183.37, 546.88, 186.61, 563.06, 200.63, 578.16, 175.82, 585.71, 174.74, 593.26, 166.11], [581.62, 234.47, 585.18, 250.84, 583.05, 255.11, 577.35, 256.53, 573.79, 260.09, 567.39, 260.8, 560.98, 255.82, 558.63, 252.27, 554.59, 251.6, 559.64, 235.44, 561.32, 230.39, 561.99, 219.96, 559.97, 205.48, 560.65, 200.1, 565.02, 199.76, 576.13, 181.58, 579.16, 186.97, 575.46, 199.42, 573.44, 202.45, 579.16, 209.18, 582.53, 238.47]], "area": 2493.8359999999975, "iscrowd": 0, "image_id": 338086, "bbox": [546.88, 158.56, 92.76, 102.24], "category_id": 6, "id": 166571}, {"segmentation": [[206.73, 2.12, 209.56, 70.09, 222.3, 75.75, 237.88, 67.26, 247.79, 82.83, 250.62, 91.33, 288.85, 96.99, 307.26, 104.07, 317.17, 121.06, 324.25, 139.47, 320.0, 201.77, 361.06, 201.77, 380.88, 221.59, 385.13, 344.78, 361.06, 483.54, 320.0, 476.46, 259.12, 453.81, 256.28, 439.65, 256.28, 401.42, 256.28, 344.78, 253.45, 281.06, 264.78, 210.27, 284.6, 207.43, 307.26, 200.35, 308.67, 142.3, 250.62, 140.88, 244.96, 163.54, 227.96, 162.12, 227.96, 150.8, 209.56, 155.04, 220.88, 610.97, 216.64, 632.21, 0.0, 633.63, 0.0, 6.37, 7.08, 0.71, 209.56, 2.12]], "area": 174555.38410000002, "iscrowd": 0, "image_id": 449573, "bbox": [0.0, 0.71, 385.13, 632.92], "category_id": 6, "id": 166813}, {"segmentation": [[1.08, 36.72, 76.41, 35.64, 160.36, 42.1, 199.1, 47.48, 213.09, 53.94, 226.01, 72.23, 237.85, 103.44, 245.38, 166.94, 242.15, 222.91, 235.7, 235.82, 199.1, 241.2, 152.83, 245.51, 83.95, 247.66, 83.95, 232.59, 83.95, 232.59, 78.57, 228.29, 78.57, 228.29, 75.34, 246.58, 75.34, 250.89, 2.15, 250.89, 1.08, 39.95]], "area": 48302.0307, "iscrowd": 0, "image_id": 20769, "bbox": [1.08, 35.64, 244.3, 215.25], "category_id": 6, "id": 167077}, {"segmentation": [[4.81, 87.52, 39.43, 2.89, 594.39, 0.96, 640.0, 31.74, 634.79, 149.08, 627.09, 156.77, 619.4, 211.6, 605.93, 291.42, 586.7, 300.08, 581.89, 300.08, 591.51, 251.99, 588.62, 239.49, 579.0, 223.14, 560.73, 201.98, 553.03, 183.7, 507.83, 164.47, 509.75, 176.01, 509.75, 193.32, 486.67, 176.97, 486.67, 168.31, 462.62, 170.24, 452.04, 187.55, 465.51, 228.91, 462.62, 238.53, 452.04, 247.18, 438.58, 231.79, 426.08, 199.09, 406.84, 176.97, 395.3, 160.62, 358.75, 133.69, 346.25, 138.5, 337.59, 150.04, 327.01, 165.43, 327.01, 167.35, 320.28, 187.55, 273.15, 197.17, 225.06, 160.62, 220.25, 151.96, 206.79, 123.11, 185.63, 104.84, 147.16, 126.0, 153.89, 145.23, 149.08, 151.0, 112.53, 167.35, 82.71, 180.82, 71.17, 212.56, 67.33, 241.41, 51.94, 287.58, 51.94, 309.7, 66.36, 365.48, 59.63, 388.57, 1.92, 389.53]], "area": 121322.41429999995, "iscrowd": 0, "image_id": 333356, "bbox": [1.92, 0.96, 638.08, 388.57], "category_id": 6, "id": 167830}, {"segmentation": [[194.33, 69.17, 316.87, 46.19, 328.36, 46.19, 538.0, 113.2, 549.49, 126.6, 553.32, 302.75, 517.9, 313.28, 504.5, 330.51, 504.5, 322.85, 381.01, 355.4, 379.09, 355.4, 368.56, 361.14, 366.65, 361.14, 345.59, 365.93, 338.89, 381.25, 318.78, 382.2, 306.34, 364.01, 301.55, 346.78, 301.55, 346.78, 245.07, 355.4, 202.95, 349.66, 205.82, 369.76, 203.91, 369.76, 178.06, 360.19, 163.7, 329.55, 157.96, 318.06, 154.13, 308.49, 155.08, 306.58]], "area": 104051.14039999997, "iscrowd": 0, "image_id": 149878, "bbox": [154.13, 46.19, 399.19, 336.01], "category_id": 6, "id": 167901}, {"segmentation": [[84.96, 6.62, 81.65, 191.99, 281.36, 201.92, 303.43, 153.37, 306.74, 120.27, 307.84, 6.62]], "area": 41973.00675, "iscrowd": 0, "image_id": 56699, "bbox": [81.65, 6.62, 226.19, 195.3], "category_id": 6, "id": 168234}, {"segmentation": [[194.16, 153.44, 304.18, 129.71, 380.76, 140.49, 380.76, 309.84, 351.64, 315.24, 334.38, 320.63, 330.07, 309.84, 275.06, 306.61, 265.35, 315.24, 256.72, 316.31, 252.4, 316.31, 248.09, 309.84, 210.34, 303.37, 206.02, 312.0, 202.79, 309.84, 184.45, 293.66]], "area": 32712.069999999992, "iscrowd": 0, "image_id": 548253, "bbox": [184.45, 129.71, 196.31, 190.92], "category_id": 6, "id": 168466}, {"segmentation": [[0.21, 325.37, 41.92, 333.22, 45.64, 336.93, 53.49, 340.65, 51.84, 372.87, 32.84, 371.63, 30.77, 410.45, 29.95, 436.47, 17.56, 435.23, 0.0, 436.06, 1.45, 328.26], [74.55, 345.19, 78.27, 347.26, 80.75, 361.3, 83.22, 372.04, 73.31, 372.87, 74.96, 346.02]], "area": 4245.8419, "iscrowd": 0, "image_id": 334097, "bbox": [0.0, 325.37, 83.22, 111.1], "category_id": 6, "id": 169381}, {"segmentation": [[118.15, 294.13, 344.92, 332.24, 404.94, 336.05, 461.16, 324.62, 469.73, 293.17, 474.5, 246.49, 467.83, 159.78, 400.18, 132.15, 364.93, 135.96, 337.29, 145.49, 107.67, 226.48, 106.71, 264.59, 121.96, 292.22]], "area": 53924.66805, "iscrowd": 0, "image_id": 550466, "bbox": [106.71, 132.15, 367.79, 203.9], "category_id": 7, "id": 169731}, {"segmentation": [[143.37, 385.91, 273.08, 375.19, 332.57, 354.7, 404.74, 306.92, 439.85, 278.63, 439.85, 255.23, 295.51, 198.66, 217.49, 183.05, 196.03, 192.81, 167.75, 234.74, 136.54, 303.99, 126.79, 342.03, 139.47, 374.21, 140.44, 381.04]], "area": 41973.93375, "iscrowd": 0, "image_id": 566501, "bbox": [126.79, 183.05, 313.06, 202.86], "category_id": 7, "id": 169871}, {"segmentation": [[349.32, 184.29, 386.91, 155.87, 397.91, 148.53, 406.17, 152.2, 408.0, 154.03, 407.08, 161.37, 398.83, 190.71, 379.58, 231.05, 368.58, 235.63, 352.99, 232.88, 348.4, 224.63, 344.74, 214.54, 352.07, 182.45]], "area": 3188.872599999999, "iscrowd": 0, "image_id": 245441, "bbox": [344.74, 148.53, 63.26, 87.1], "category_id": 7, "id": 170022}, {"segmentation": [[0.0, 63.1, 317.93, 125.39, 380.22, 138.34, 480.54, 161.8, 482.16, 200.63, 0.0, 351.1, 1.62, 63.91]], "area": 79252.01400000001, "iscrowd": 0, "image_id": 376888, "bbox": [0.0, 63.1, 482.16, 288.0], "category_id": 7, "id": 170399}, {"segmentation": [[151.01, 267.51, 145.62, 245.93, 292.31, 213.57, 481.08, 169.35, 634.25, 136.99, 637.48, 410.97, 445.48, 346.25, 311.73, 313.89, 196.31, 290.16]], "area": 71524.71830000001, "iscrowd": 0, "image_id": 369201, "bbox": [145.62, 136.99, 491.86, 273.98], "category_id": 7, "id": 170827}, {"segmentation": [[84.74, 459.22, 133.47, 448.48, 140.08, 446.83, 195.84, 434.44, 202.86, 433.61, 206.16, 430.31, 224.33, 422.87, 230.12, 421.63, 238.79, 415.85, 249.53, 415.85, 262.75, 411.31, 272.66, 405.53, 287.53, 400.57, 305.7, 398.5, 322.22, 399.74, 323.05, 404.29, 325.52, 409.66, 350.3, 412.55, 361.04, 415.02, 371.37, 422.46, 377.56, 436.91, 381.28, 453.85, 385.82, 486.89, 386.65, 503.38, 385.0, 517.42, 389.13, 519.9, 389.95, 553.36, 376.32, 558.31, 365.17, 561.2, 313.55, 563.68, 282.98, 560.38, 275.55, 559.14, 199.55, 531.47, 152.47, 510.4, 102.91, 497.19, 83.91, 488.1, 85.56, 462.08]], "area": 33411.77939999999, "iscrowd": 0, "image_id": 570023, "bbox": [83.91, 398.5, 306.04, 165.18], "category_id": 7, "id": 170944}, {"segmentation": [[363.97, 232.33, 271.55, 207.71, 244.87, 211.52, 211.52, 232.49, 202.0, 260.12, 202.0, 314.43, 205.81, 347.78, 294.42, 343.01, 455.44, 323.0, 443.06, 259.16, 365.88, 230.58]], "area": 26867.243099999996, "iscrowd": 0, "image_id": 17100, "bbox": [202.0, 207.71, 253.44, 140.07], "category_id": 7, "id": 171032}, {"segmentation": [[157.89, 260.17, 170.8, 260.17, 211.51, 249.25, 306.84, 227.4, 354.51, 224.42, 352.52, 263.15, 352.52, 287.98, 327.7, 283.01, 304.86, 282.02, 291.95, 285.0, 285.99, 288.97, 262.16, 285.99, 225.42, 283.01, 184.7, 281.03, 163.85, 282.02, 151.93, 281.03, 153.92, 266.13, 157.89, 263.15, 169.81, 262.16], [370.4, 223.43, 409.13, 218.47, 411.11, 261.17, 411.11, 290.96, 405.15, 294.93, 375.36, 291.95, 371.39, 270.1, 369.4, 243.29, 371.39, 224.42, 371.39, 224.42], [422.03, 218.47, 421.04, 233.36, 419.06, 249.25, 419.06, 275.07, 420.05, 290.96, 420.05, 290.96, 437.92, 290.96, 445.87, 287.98, 458.78, 305.85, 481.62, 306.84, 514.39, 309.82, 553.11, 311.81, 563.04, 295.92, 568.01, 259.18, 568.01, 242.3, 565.03, 223.43, 552.12, 209.53, 535.24, 202.58, 513.39, 195.63, 491.55, 198.6, 476.65, 208.53, 454.8, 206.55, 439.91, 208.53, 427.0, 211.51, 422.03, 218.47]], "area": 25800.2929, "iscrowd": 0, "image_id": 22224, "bbox": [151.93, 195.63, 416.08, 116.18], "category_id": 7, "id": 171176}, {"segmentation": [[163.12, 220.7, 167.92, 222.62, 182.31, 228.37, 335.84, 275.39, 337.76, 275.39, 369.43, 280.19, 384.78, 280.19, 384.78, 265.8, 392.46, 249.48, 411.65, 253.32, 416.44, 270.59, 424.12, 292.66, 435.64, 305.14, 454.83, 308.98, 491.29, 324.33, 498.01, 344.48, 511.44, 365.59, 505.68, 384.78, 495.13, 391.5, 473.06, 387.66, 432.76, 374.22, 425.08, 360.79, 427.0, 329.13, 427.0, 308.98, 415.49, 288.82, 390.54, 255.24, 386.7, 282.11, 381.9, 288.82, 367.51, 321.45, 351.2, 325.29, 322.41, 315.69, 320.49, 297.46, 309.93, 269.63, 290.74, 265.8, 282.11, 290.74, 261.96, 290.74, 214.94, 259.08, 138.18, 234.13, 141.05, 225.49, 157.37, 218.78]], "area": 12450.612549999998, "iscrowd": 0, "image_id": 213510, "bbox": [138.18, 218.78, 373.26, 172.72], "category_id": 7, "id": 172267}, {"segmentation": [[401.91, 311.83, 430.74, 315.16, 475.66, 317.38, 511.7, 310.72, 522.23, 295.2, 523.9, 212.02, 494.51, 209.25, 500.05, 200.38, 497.28, 199.27, 484.53, 209.8, 473.99, 202.6, 469.56, 198.71, 387.49, 203.7, 372.52, 215.35, 351.45, 217.57, 338.14, 207.59, 248.31, 218.68, 236.67, 220.89, 233.34, 283.55, 252.75, 288.54], [230.57, 224.78, 124.11, 233.65, 90.84, 245.85, 94.17, 267.47, 220.59, 287.43, 226.69, 281.33]], "area": 33909.14725000001, "iscrowd": 0, "image_id": 257414, "bbox": [90.84, 198.71, 433.06, 118.67], "category_id": 7, "id": 172560}, {"segmentation": [[28.76, 211.51, 79.1, 456.01, 106.43, 464.64, 165.39, 461.76, 188.4, 451.69, 168.27, 287.74, 51.78, 188.5, 30.2, 188.5, 27.33, 194.25]], "area": 27693.755300000004, "iscrowd": 0, "image_id": 452087, "bbox": [27.33, 188.5, 161.07, 276.14], "category_id": 7, "id": 173072}, {"segmentation": [[409.73, 301.3, 253.32, 410.69, 1.92, 419.32, 2.88, 119.94, 18.23, 115.15, 70.05, 104.59, 108.43, 97.87, 156.41, 101.71, 189.99, 108.43, 297.46, 172.72, 325.29, 200.55, 383.82, 229.33, 407.81, 232.21, 407.81, 241.81]], "area": 101115.7854, "iscrowd": 0, "image_id": 173163, "bbox": [1.92, 97.87, 407.81, 321.45], "category_id": 7, "id": 174307}, {"segmentation": [[366.55, 229.33, 325.29, 282.11, 307.06, 284.03, 263.88, 327.21, 237.97, 347.36, 88.28, 344.48, 82.52, 325.29, 97.87, 297.46, 80.6, 295.54, 75.8, 267.71, 90.2, 189.03, 84.44, 180.4, 96.91, 155.45, 113.23, 131.46, 148.73, 106.51, 161.2, 105.55, 154.49, 99.79, 154.49, 71.97, 186.15, 63.33, 210.14, 70.05, 225.49, 85.4, 266.76, 87.32, 332.0, 116.11, 355.99, 127.62, 367.51, 141.05, 368.47, 151.61, 379.98, 169.84, 381.9, 184.23, 378.06, 213.98]], "area": 62912.19285, "iscrowd": 0, "image_id": 191918, "bbox": [75.8, 63.33, 306.1, 284.03], "category_id": 7, "id": 174869}, {"segmentation": [[247.01, 299.06, 121.89, 299.06, 62.56, 291.51, 42.07, 283.96, 50.7, 266.7, 73.35, 259.15, 84.13, 251.6, 80.9, 220.31, 87.37, 213.84, 229.75, 218.16, 241.62, 246.2, 262.11, 276.4, 278.29, 293.66, 286.92, 300.13]], "area": 15025.457750000001, "iscrowd": 0, "image_id": 146049, "bbox": [42.07, 213.84, 244.85, 86.29], "category_id": 9, "id": 175448}, {"segmentation": [[125.7, 224.53, 313.77, 220.7, 386.7, 214.94, 427.0, 224.53, 370.39, 291.7, 232.21, 299.38, 166.96, 294.58, 126.66, 284.03, 113.23, 224.53]], "area": 20493.498999999996, "iscrowd": 0, "image_id": 240762, "bbox": [113.23, 214.94, 313.77, 84.44], "category_id": 9, "id": 176123}, {"segmentation": [[292.78, 326.15, 292.78, 293.86, 301.39, 285.25, 317.54, 279.87, 319.69, 275.56, 316.46, 226.04, 312.16, 212.05, 305.7, 209.9, 321.84, 205.59, 321.84, 205.59, 325.07, 187.29, 318.62, 151.77, 332.61, 184.07, 336.91, 146.39, 336.91, 122.71, 341.22, 101.18, 353.06, 72.12, 360.6, 68.89, 393.96, 31.22, 393.96, 120.56, 406.88, 135.63, 416.57, 141.01, 410.11, 172.22, 409.03, 216.36, 414.42, 265.87, 423.03, 276.64, 475.77, 215.28, 434.87, 265.87, 430.56, 298.16, 432.71, 330.46, 426.26, 350.91, 388.58, 354.14, 347.68, 340.14, 301.39, 327.23]], "area": 25733.9015, "iscrowd": 0, "image_id": 307462, "bbox": [292.78, 31.22, 182.99, 322.92], "category_id": 9, "id": 176169}, {"segmentation": [[369.65, 205.36, 369.65, 205.36, 435.55, 224.46, 637.09, 296.1, 592.2, 382.06, 592.2, 380.15, 379.2, 391.61, 285.59, 282.73, 255.03, 204.4]], "area": 46316.825500000006, "iscrowd": 0, "image_id": 209813, "bbox": [255.03, 204.4, 382.06, 187.21], "category_id": 9, "id": 176753}, {"segmentation": [[198.28, 210.51, 211.01, 210.91, 221.15, 210.91, 223.34, 211.11, 224.74, 209.32, 227.52, 208.92, 229.31, 204.54, 231.7, 203.35, 232.09, 202.15, 233.88, 200.76, 233.29, 199.77, 231.7, 199.37, 228.51, 199.17, 227.52, 197.98, 215.78, 197.38, 215.78, 194.99, 225.33, 195.59, 219.76, 177.09, 219.96, 171.52, 218.57, 166.15, 216.58, 158.79, 215.98, 154.22, 215.19, 141.49, 214.39, 183.06, 213.99, 194.2, 213.0, 196.39, 211.61, 194.99, 206.83, 194.99, 203.45, 196.78, 202.86, 198.57, 201.86, 199.37, 197.29, 198.77, 196.29, 198.97, 196.49, 193.8, 210.81, 193.4, 206.83, 174.11, 203.05, 154.62, 199.67, 131.35, 197.68, 114.04, 190.52, 137.51, 187.34, 149.05, 185.55, 158.0, 179.19, 183.46, 175.01, 195.59, 174.81, 196.98, 179.98, 199.97, 183.56, 203.55, 185.75, 206.93, 186.94, 209.32, 186.94, 210.11, 191.92, 209.71, 196.29, 210.31]], "area": 2282.2664, "iscrowd": 0, "image_id": 409956, "bbox": [174.81, 114.04, 59.07, 97.07], "category_id": 9, "id": 178690}, {"segmentation": [[107.47, 259.08, 104.59, 240.85, 99.79, 225.49, 90.2, 204.38, 93.08, 199.59, 98.83, 196.71, 109.39, 182.31, 127.62, 179.44, 147.77, 167.92, 162.16, 148.73, 177.52, 130.5, 190.95, 133.38, 217.82, 142.97, 231.25, 149.69, 262.92, 160.24, 325.29, 173.68, 331.04, 177.52, 359.83, 189.99, 370.39, 209.18, 382.86, 228.37, 384.78, 248.52, 379.98, 261.0, 102.67, 259.08, 102.67, 259.08]], "area": 26684.67915, "iscrowd": 0, "image_id": 418810, "bbox": [90.2, 130.5, 294.58, 130.5], "category_id": 9, "id": 178902}, {"segmentation": [[291.13, 212.9, 302.05, 213.37, 299.72, 210.81, 297.87, 209.65, 296.01, 203.38, 295.08, 207.33, 290.2, 208.26, 291.36, 212.2]], "area": 50.18165000000013, "iscrowd": 0, "image_id": 2114, "bbox": [290.2, 203.38, 11.85, 9.99], "category_id": 9, "id": 179250}, {"segmentation": [[363.16, 191.4, 396.61, 190.72, 403.64, 190.03, 407.92, 178.03, 403.98, 176.66, 403.47, 173.91, 405.69, 173.4, 403.47, 170.82, 402.61, 168.08, 398.32, 167.39, 393.86, 159.16, 393.18, 152.99, 392.49, 150.59, 386.32, 153.16, 388.2, 158.99, 388.03, 166.19, 384.94, 165.34, 381.51, 150.59, 375.34, 147.67, 378.6, 154.36, 377.4, 161.56, 378.6, 166.19, 383.06, 167.74, 384.26, 175.45, 374.48, 181.97, 367.28, 184.72, 364.19, 186.09, 361.11, 186.43, 361.96, 191.4, 363.51, 191.4]], "area": 908.1927000000005, "iscrowd": 0, "image_id": 329083, "bbox": [361.11, 147.67, 46.81, 43.73], "category_id": 9, "id": 179747}, {"segmentation": [[255.82, 210.13, 263.51, 213.02, 260.62, 211.1, 260.62, 205.33, 257.74, 202.44]], "area": 30.902350000000066, "iscrowd": 0, "image_id": 2114, "bbox": [255.82, 202.44, 7.69, 10.58], "category_id": 9, "id": 180647}, {"segmentation": [[89.29, 197.5, 249.18, 197.16, 248.16, 194.46, 251.2, 175.53, 242.75, 175.87, 234.3, 173.84, 240.39, 168.77, 223.82, 170.12, 223.49, 148.49, 219.77, 149.5, 220.44, 170.46, 211.99, 169.44, 183.6, 170.12, 183.26, 173.5, 157.23, 175.53, 155.88, 175.53, 154.19, 170.8, 159.94, 169.78, 160.27, 167.75, 132.89, 168.09, 149.8, 137.67, 147.77, 137.67, 131.2, 167.08, 129.51, 167.08, 130.87, 161.67, 129.51, 159.98, 129.51, 118.74, 127.82, 119.08, 126.81, 160.65, 125.12, 160.99, 123.77, 133.61, 123.09, 133.61, 120.39, 161.33, 119.03, 161.33, 118.7, 138.68, 115.65, 138.34, 115.32, 159.98, 101.8, 162.34, 103.49, 129.56, 99.09, 162.01, 93.34, 162.01, 93.34, 147.47, 90.98, 148.49, 89.63, 162.34, 85.91, 158.29, 84.56, 169.11, 81.85, 170.46, 77.12, 172.82, 76.1, 178.57, 86.58, 177.56, 85.23, 190.06, 77.79, 189.39, 77.12, 184.65, 75.09, 184.99, 74.75, 192.09, 84.22, 192.09, 84.56, 197.84, 90.64, 198.18]], "area": 5329.945999999997, "iscrowd": 0, "image_id": 329083, "bbox": [74.75, 118.74, 176.45, 79.44], "category_id": 9, "id": 181899}, {"segmentation": [[364.15, 5.69, 332.86, 120.91, 304.41, 224.75, 165.01, 216.22, 162.16, 241.82, 130.87, 247.51, 182.08, 335.7, 207.68, 301.56, 227.6, 277.38, 247.51, 301.56, 258.89, 334.28, 253.2, 349.93, 277.38, 352.77, 294.45, 298.72, 328.59, 338.55, 344.24, 365.58, 359.89, 392.6, 442.39, 398.29, 452.35, 394.02, 453.77, 331.44, 624.47, 315.79, 467.99, 295.87, 425.32, 280.23, 412.52, 231.86]], "area": 49882.47149999999, "iscrowd": 0, "image_id": 114540, "bbox": [130.87, 5.69, 493.6, 392.6], "category_id": 9, "id": 182314}, {"segmentation": [[478.73, 176.37, 481.98, 192.15, 572.74, 191.82, 572.54, 188.15, 574.42, 187.81, 574.25, 186.61, 566.04, 186.44, 564.5, 184.04, 552.17, 182.68, 545.36, 181.2, 545.59, 176.9, 540.82, 174.51, 531.27, 175.47, 536.53, 151.84, 525.07, 152.55, 534.85, 122.48, 530.08, 120.33, 519.22, 154.89, 517.41, 153.44, 518.5, 134.99, 521.75, 129.93, 520.31, 124.5, 517.41, 117.63, 508.37, 128.12, 510.54, 137.52, 510.54, 137.52, 514.16, 140.78, 512.71, 161.04, 512.07, 159.59, 513.19, 142.86, 507.61, 160.52, 503.15, 158.48, 510.03, 137.65, 507.98, 137.46, 491.06, 159.41, 487.34, 162.57, 487.15, 164.43, 484.74, 165.92, 483.43, 166.85, 484.18, 168.15, 484.36, 169.45]], "area": 2817.834999999998, "iscrowd": 0, "image_id": 329083, "bbox": [478.73, 117.63, 95.69, 74.52], "category_id": 9, "id": 182653}, {"segmentation": [[94.6, 197.56, 98.14, 196.15, 98.85, 193.66, 99.56, 191.89, 101.33, 194.37, 100.27, 198.27, 108.78, 194.02, 108.78, 194.02, 109.13, 189.76, 110.55, 189.41, 111.61, 190.47, 111.97, 191.89, 113.03, 194.02, 121.89, 195.08, 116.93, 202.53, 97.79, 203.59, 96.37, 201.46]], "area": 203.52634999999995, "iscrowd": 0, "image_id": 336675, "bbox": [94.6, 189.41, 27.29, 14.18], "category_id": 9, "id": 182676}, {"segmentation": [[198.28, 440.24, 213.21, 391.05, 223.05, 367.98, 231.53, 347.62, 243.4, 320.82, 253.58, 309.97, 267.49, 308.27, 275.97, 312.34, 282.76, 319.47, 283.43, 326.59, 283.77, 335.41, 283.77, 341.18, 285.47, 345.93, 280.72, 348.3, 280.72, 355.09, 274.27, 359.16, 261.72, 366.96, 261.72, 371.71, 257.65, 383.92, 255.62, 396.14, 257.65, 401.57, 256.63, 407.33, 256.29, 415.81, 255.95, 418.53, 245.78, 420.9, 243.06, 419.55, 232.89, 421.92, 228.47, 425.99, 223.39, 433.12, 222.03, 436.51, 221.01, 439.9, 219.65, 443.29, 220.67, 447.7, 197.94, 443.97]], "area": 5495.844950000001, "iscrowd": 0, "image_id": 332065, "bbox": [197.94, 308.27, 87.53, 139.43], "category_id": 1, "id": 183091}, {"segmentation": [[2.88, 512.88, 10.35, 513.12, 13.08, 512.52, 13.43, 509.08, 14.74, 500.9, 15.09, 494.26, 14.86, 493.07, 14.86, 492.72, 15.54, 481.95, 17.2, 480.53, 15.42, 476.02, 13.53, 474.83, 12.34, 468.43, 8.9, 468.31, 8.43, 470.56, 9.02, 472.93, 9.73, 475.19, 7.6, 478.51, 6.41, 482.9, 5.34, 488.71, 5.94, 491.44, 5.82, 492.5, 5.58, 496.42, 5.46, 504.13, 4.99, 506.62, 6.05, 510.53, 2.38, 512.43]], "area": 364.7677500000002, "iscrowd": 0, "image_id": 570023, "bbox": [2.38, 468.31, 14.82, 44.81], "category_id": 1, "id": 183534}, {"segmentation": [[317.12, 158.39, 320.73, 164.58, 313.0, 180.55, 308.87, 181.58, 266.61, 164.06, 264.04, 159.42, 266.1, 157.36, 270.74, 153.24, 266.1, 148.6, 249.61, 144.99, 238.78, 142.42, 233.63, 138.29, 227.96, 132.62, 222.29, 124.38, 220.23, 116.13, 228.48, 109.43, 231.05, 102.22, 232.6, 97.58, 233.11, 90.88, 233.63, 85.73, 237.75, 83.66, 242.91, 82.63, 254.24, 86.76, 254.76, 94.49, 255.27, 97.58, 251.15, 105.31, 246.0, 106.86, 248.58, 112.01, 256.31, 132.11, 263.52, 139.32, 269.71, 140.87, 275.89, 139.84, 276.92, 141.9, 276.92, 144.99, 279.5, 147.57, 286.2, 151.69, 295.99, 160.45, 302.69, 162.52, 305.78, 163.55, 313.0, 162.0]], "area": 2581.8882000000003, "iscrowd": 0, "image_id": 223454, "bbox": [220.23, 82.63, 100.5, 98.95], "category_id": 1, "id": 183809}, {"segmentation": [[140.94, 371.42, 145.26, 342.65, 139.51, 336.9, 139.51, 331.15, 148.13, 319.64, 155.33, 326.83, 155.33, 331.15, 161.08, 332.58, 165.39, 345.53, 159.64, 358.47, 158.2, 358.47, 156.76, 369.98, 156.76, 380.04, 148.13, 380.04, 143.82, 380.04]], "area": 974.0681500000009, "iscrowd": 0, "image_id": 201260, "bbox": [139.51, 319.64, 25.88, 60.4], "category_id": 1, "id": 184000}, {"segmentation": [[366.43, 293.04, 381.52, 266.79, 381.52, 245.79, 384.14, 237.92, 407.11, 228.07, 416.3, 242.51, 422.2, 264.16, 418.92, 277.29, 424.17, 292.38, 429.42, 295.01]], "area": 2504.8660500000015, "iscrowd": 0, "image_id": 384895, "bbox": [366.43, 228.07, 62.99, 66.94], "category_id": 1, "id": 184415}, {"segmentation": [[605.94, 216.44, 606.22, 221.96, 610.08, 226.09, 604.01, 226.36, 600.43, 218.92, 600.98, 204.59, 597.95, 201.56, 596.57, 198.26, 597.95, 191.37, 595.47, 187.51, 600.16, 179.79, 602.64, 179.24, 604.01, 174.01, 611.45, 174.01, 611.45, 177.31, 611.45, 181.72, 616.69, 188.34, 623.03, 191.92, 615.59, 196.05, 613.93, 193.02, 611.18, 191.92, 609.25, 191.09, 612.0, 196.05, 610.08, 198.26, 608.7, 201.29, 605.67, 199.91, 608.15, 204.32, 606.22, 212.86, 606.77, 221.13]], "area": 560.0900500000013, "iscrowd": 0, "image_id": 373765, "bbox": [595.47, 174.01, 27.56, 52.35], "category_id": 1, "id": 184865}, {"segmentation": [[153.93, 35.88, 232.37, 33.64, 255.9, 41.49, 287.77, 76.86, 282.14, 122.66, 266.88, 128.28, 234.74, 118.64, 225.9, 105.78, 221.88, 89.71, 158.41, 95.34, 153.59, 39.9]], "area": 8518.418149999998, "iscrowd": 0, "image_id": 207385, "bbox": [153.59, 33.64, 134.18, 94.64], "category_id": 1, "id": 184942}, {"segmentation": [[61.86, 400.81, 69.65, 371.11, 81.34, 369.16, 86.21, 380.36, 98.38, 392.53, 102.27, 425.16, 95.46, 424.67, 94.0, 414.44, 65.76, 401.78]], "area": 1144.267899999999, "iscrowd": 0, "image_id": 309536, "bbox": [61.86, 369.16, 40.41, 56.0], "category_id": 1, "id": 184956}, {"segmentation": [[217.73, 216.05, 230.47, 217.57, 227.74, 223.93, 235.93, 246.38, 227.44, 292.78, 229.35, 297.28, 210.87, 297.78, 212.37, 276.8, 210.37, 254.32, 194.39, 236.84, 212.37, 220.85]], "area": 1877.1782499999995, "iscrowd": 0, "image_id": 303376, "bbox": [194.39, 216.05, 41.54, 81.73], "category_id": 1, "id": 185772}, {"segmentation": [[107.44, 241.7, 126.57, 220.36, 120.69, 209.31, 134.67, 203.43, 142.77, 171.04, 157.49, 160.0, 184.72, 158.53, 202.38, 184.29, 211.95, 219.62, 210.48, 238.76, 226.67, 249.06, 238.45, 268.93, 231.82, 271.88, 234.03, 298.37, 237.71, 315.3, 229.61, 328.55, 245.07, 360.2, 238.45, 383.01, 217.84, 389.64, 217.84, 389.64, 222.99, 421.29, 219.31, 461.77, 212.69, 475.75, 194.29, 501.51, 181.04, 487.53, 200.17, 450.73, 203.12, 431.59, 184.72, 395.53, 145.71, 404.36, 137.61, 438.95, 124.37, 477.96, 146.45, 508.14, 131.73, 514.76, 115.53, 511.08, 112.59, 490.47, 111.12, 431.59, 108.91, 385.96, 117.01, 345.48, 117.01, 322.66, 126.57, 312.36, 127.31, 285.86, 114.8, 286.6, 112.59, 266.72, 111.12, 255.68, 97.13, 255.68, 94.19, 247.59, 103.76, 246.85, 117.01, 241.7]], "area": 29778.137549999992, "iscrowd": 0, "image_id": 141800, "bbox": [94.19, 158.53, 150.88, 356.23], "category_id": 1, "id": 185803}, {"segmentation": [[221.98, 427.94, 206.04, 413.6, 177.89, 402.44, 147.6, 406.16, 126.88, 415.19, 99.79, 422.1, 72.16, 432.72, 40.29, 444.94, 16.91, 447.6, 11.6, 430.6, 9.47, 418.91, 0.97, 418.91, 0.0, 330.72, 2.04, 273.87, 1.51, 126.71, 23.29, 109.71, 42.94, 91.12, 66.32, 82.62, 62.6, 71.99, 20.1, 49.68, 0.44, 27.9, 0.0, 0.0, 236.86, 0.0, 389.86, 0.27, 428.0, 26.83, 428.0, 200.56, 428.0, 328.06, 428.0, 381.72, 418.02, 393.41, 406.33, 407.22, 395.18, 415.72, 381.36, 421.57, 373.39, 424.75, 367.02, 412.53, 373.92, 399.78, 394.11, 383.85, 398.89, 370.56, 381.36, 386.5, 367.02, 397.66, 347.89, 409.35, 336.2, 413.6, 332.49, 414.13, 326.11, 398.72, 329.83, 383.31, 359.58, 362.59, 378.71, 341.87, 382.96, 327.53, 368.61, 340.81, 342.58, 357.81, 319.74, 372.69, 305.92, 381.19, 295.3, 375.88, 291.58, 357.28, 303.8, 341.87, 359.05, 292.47, 350.55, 285.56, 345.24, 287.15, 319.74, 307.34, 304.33, 320.62, 289.98, 323.28, 278.83, 319.03, 275.11, 305.22, 297.95, 281.84, 319.74, 262.18, 329.83, 249.43, 328.24, 239.87, 329.3, 199.49, 323.99, 184.62, 290.52, 170.81, 273.51, 143.71, 252.8, 136.81, 242.7, 142.12, 235.26, 161.24, 183.2, 187.28, 152.92, 190.99, 158.76, 205.34, 166.2, 208.53, 165.14, 227.65, 166.73, 241.47, 172.57, 260.59, 167.26, 281.31, 181.61, 298.31, 155.04, 299.37, 115.73, 305.22, 89.7, 304.15, 32.32, 281.84, 38.16, 291.4, 62.6, 298.84, 83.85, 311.06, 105.1, 321.16, 189.04, 317.44, 226.23, 426.35]], "area": 138595.86929999996, "iscrowd": 0, "image_id": 135038, "bbox": [0.0, 0.0, 428.0, 447.6], "category_id": 1, "id": 185816}, {"segmentation": [[31.81, 472.66, 31.92, 470.7, 32.47, 470.49, 33.01, 470.7, 32.79, 472.77, 33.77, 474.07, 34.75, 484.83, 31.38, 484.94, 30.62, 474.07, 31.81, 472.55]], "area": 40.3831, "iscrowd": 0, "image_id": 570023, "bbox": [30.62, 470.49, 4.13, 14.45], "category_id": 1, "id": 185887}, {"segmentation": [[212.49, 391.55, 209.26, 361.35, 203.87, 318.2, 199.55, 282.61, 203.87, 268.58, 209.26, 252.4, 218.97, 239.46, 215.73, 209.26, 206.02, 190.92, 206.02, 175.82, 198.47, 153.17, 180.13, 145.62, 169.35, 146.7, 160.72, 159.64, 157.48, 180.13, 155.33, 195.24, 155.33, 199.55, 147.78, 202.79, 139.15, 208.18, 136.99, 223.28, 134.83, 235.15, 139.15, 253.48, 152.09, 263.19, 148.85, 271.82, 152.09, 283.69, 157.48, 303.1, 160.72, 327.91, 163.96, 353.8, 165.03, 369.98, 163.96, 379.69, 160.72, 382.92, 155.33, 387.24, 156.4, 393.71, 165.03, 396.94, 167.19, 396.94, 177.98, 401.26, 186.61, 401.26, 195.24, 395.87, 203.87, 392.63, 207.1, 391.55, 215.73, 391.55]], "area": 13370.782750000002, "iscrowd": 0, "image_id": 522309, "bbox": [134.83, 145.62, 84.14, 255.64], "category_id": 1, "id": 186150}, {"segmentation": [[53.35, 352.17, 56.45, 330.5, 57.48, 322.25, 54.39, 306.77, 54.39, 303.68, 65.73, 300.59, 77.08, 300.59, 90.49, 305.74, 96.68, 307.81, 109.06, 316.06, 116.28, 317.09, 120.41, 318.12, 127.63, 318.12, 129.69, 309.87, 119.38, 272.73, 120.41, 264.48, 119.38, 257.26, 117.31, 244.88, 119.38, 227.34, 122.47, 215.99, 123.5, 211.87, 122.47, 198.46, 115.25, 186.08, 111.12, 164.41, 115.25, 157.19, 130.72, 145.85, 140.01, 138.62, 148.26, 132.43, 162.7, 123.15, 180.24, 109.74, 201.9, 101.49, 224.6, 94.27, 230.79, 94.27, 225.63, 82.92, 235.95, 83.95, 241.11, 82.92, 247.29, 77.76, 251.42, 74.66, 256.58, 67.44, 263.8, 62.29, 285.46, 61.25, 298.87, 64.35, 303.0, 68.48, 312.29, 98.39, 308.16, 113.87, 296.81, 124.18, 289.59, 141.72, 289.59, 151.0, 288.56, 163.38, 288.56, 171.64, 296.81, 202.58, 296.81, 227.34, 300.94, 244.88, 296.81, 247.97, 276.18, 272.73, 269.99, 268.61, 269.99, 265.51, 272.05, 258.29, 278.24, 239.72, 280.31, 227.34, 279.27, 219.09, 265.86, 173.7, 263.8, 167.51, 261.74, 148.94, 251.42, 157.19, 249.36, 165.45, 239.04, 184.01, 229.76, 192.27, 218.41, 211.87, 218.41, 212.9, 222.54, 231.47, 229.76, 250.04, 230.79, 257.26, 234.92, 268.61, 241.11, 283.05, 245.23, 293.36, 247.29, 301.62, 251.42, 316.06, 251.42, 318.12, 254.52, 334.63, 249.36, 392.4, 226.66, 426.44, 226.66, 449.14, 249.36, 458.42, 252.45, 460.48, 243.17, 479.05, 205.0, 476.99, 177.15, 479.05, 176.11, 474.93, 179.21, 450.17, 185.4, 418.19, 190.56, 397.56, 194.68, 375.89, 197.78, 361.45, 199.84, 340.82, 198.81, 332.56, 185.4, 336.69, 200.87, 299.55, 201.9, 288.21, 199.84, 277.89, 199.84, 269.64, 189.53, 259.32, 179.21, 256.23, 183.34, 260.35, 181.27, 266.54, 179.21, 275.83, 173.02, 285.11, 162.7, 280.98, 157.55, 267.57, 157.55, 262.42, 149.29, 269.64, 144.13, 285.11, 137.95, 300.59, 134.85, 312.96, 128.66, 334.63, 127.63, 347.01, 124.53, 354.23, 123.5, 358.35, 122.47, 360.42, 107.0, 362.48, 85.33, 354.23, 85.33, 366.61, 81.21, 370.73, 63.67, 363.51, 49.23, 349.07]], "area": 41519.781099999986, "iscrowd": 0, "image_id": 45949, "bbox": [49.23, 61.25, 263.06, 417.8], "category_id": 1, "id": 186327}, {"segmentation": [[151.62, 393.61, 149.46, 382.17, 172.03, 368.57, 176.66, 360.84, 174.81, 352.18, 173.26, 348.17, 175.73, 344.77, 176.04, 337.96, 180.99, 334.87, 190.26, 334.26, 192.74, 339.2, 192.12, 346.0, 198.3, 346.0, 193.97, 351.57, 192.43, 357.13, 189.95, 364.86, 188.72, 366.4, 201.39, 375.37, 216.85, 387.73, 221.48, 404.42, 209.43, 418.95, 200.77, 428.23, 205.41, 446.77, 204.17, 457.59, 204.48, 477.99, 181.92, 478.92, 180.99, 470.27, 176.35, 471.81, 176.04, 477.99, 158.73, 477.99, 155.95, 435.95, 152.24, 412.77, 150.7, 394.22]], "area": 6320.1495, "iscrowd": 0, "image_id": 307462, "bbox": [149.46, 334.26, 72.02, 144.66], "category_id": 1, "id": 186368}, {"segmentation": [[261.17, 546.15, 269.78, 630.82, 302.78, 627.95, 318.57, 543.28, 351.57, 633.69, 404.66, 629.38, 388.88, 523.19, 416.14, 536.11, 420.45, 167.32, 411.84, 144.36, 393.18, 128.57, 364.48, 122.83, 350.13, 43.91, 334.35, 22.39, 324.3, 13.78, 292.74, 6.6, 284.13, 8.04, 266.91, 18.08, 249.69, 36.74, 242.51, 74.04, 249.69, 109.92, 261.17, 135.75, 231.03, 157.27, 220.99, 187.41, 215.25, 233.33, 218.12, 272.07, 190.85, 335.21, 189.42, 346.69, 180.81, 375.39, 172.2, 406.96, 165.02, 431.35, 163.59, 444.27, 190.85, 429.92, 198.03, 419.87, 209.51, 365.35, 212.38, 462.92, 253.99, 495.93]], "area": 104929.56419999998, "iscrowd": 0, "image_id": 453552, "bbox": [163.59, 6.6, 256.86, 627.09], "category_id": 1, "id": 186613}, {"segmentation": [[272.9, 176.42, 268.23, 179.54, 266.67, 191.22, 265.89, 202.91, 263.55, 205.25, 238.62, 192.0, 225.38, 184.99, 196.56, 144.48, 187.99, 116.43, 184.87, 124.22, 188.76, 144.48, 188.76, 159.28, 191.88, 166.29, 197.33, 177.2, 213.69, 194.34, 216.81, 198.23, 219.15, 203.69, 223.04, 205.25, 224.6, 209.14, 226.94, 213.04, 233.95, 244.98, 233.95, 257.44, 233.95, 261.34, 238.62, 294.06, 233.17, 328.34, 232.39, 329.12, 240.18, 357.94, 247.19, 373.52, 258.1, 391.44, 269.79, 415.59, 262.78, 429.53, 262.0, 456.02, 262.0, 481.68, 256.54, 508.95, 253.43, 513.62, 269.01, 528.43, 288.48, 525.31, 306.4, 514.4, 299.39, 505.05, 304.07, 454.41, 296.28, 422.47, 299.39, 387.41, 311.08, 379.62, 317.31, 364.82, 313.41, 352.36, 311.86, 346.12, 311.08, 285.49, 319.65, 280.12, 327.44, 234.16, 324.32, 219.36, 310.3, 179.71, 297.83, 172.7, 291.6, 168.03, 283.81, 163.35, 275.24, 166.47]], "area": 23119.83709999999, "iscrowd": 0, "image_id": 376701, "bbox": [184.87, 116.43, 142.57, 412.0], "category_id": 1, "id": 187269}, {"segmentation": [[324.68, 282.36, 312.82, 342.55, 304.61, 348.03, 320.12, 347.11, 340.18, 293.3, 344.74, 286.01, 348.39, 286.01, 357.51, 282.36, 346.57, 242.23, 337.45, 226.73, 327.41, 221.26, 324.68, 227.64, 324.68, 241.32, 306.44, 255.0, 297.32, 278.71, 297.32, 279.62, 318.29, 262.3, 326.5, 278.71]], "area": 2792.63065, "iscrowd": 0, "image_id": 217636, "bbox": [297.32, 221.26, 60.19, 126.77], "category_id": 1, "id": 188375}, {"segmentation": [[130.09, 314.79, 138.2, 317.24, 141.97, 317.05, 144.61, 316.87, 144.43, 313.66, 145.37, 311.39, 146.5, 310.07, 146.5, 304.23, 146.88, 303.47, 148.95, 303.66, 148.76, 306.87, 148.76, 310.07, 148.95, 312.34, 149.71, 313.66, 150.46, 314.79, 151.22, 316.87, 151.22, 318.56, 156.69, 318.0, 156.5, 310.45, 158.76, 309.32, 162.16, 309.13, 157.82, 305.55, 156.31, 302.53, 155.93, 301.02, 154.8, 299.51, 152.73, 298.57, 153.86, 296.49, 154.05, 293.28, 153.86, 290.08, 151.78, 286.87, 149.71, 284.98, 147.44, 284.04, 143.48, 284.23, 140.09, 285.17, 138.39, 289.32, 138.2, 291.96, 137.45, 295.17, 137.45, 296.49, 137.45, 297.81, 138.01, 298.94, 135.37, 299.51, 134.62, 301.4, 133.3, 304.41, 131.97, 307.81, 131.03, 310.45, 130.84, 313.66]], "area": 613.4057000000003, "iscrowd": 0, "image_id": 332065, "bbox": [130.09, 284.04, 32.07, 34.52], "category_id": 1, "id": 188516}, {"segmentation": [[599.64, 154.27, 583.11, 211.2, 573.92, 232.32, 543.62, 243.34, 517.91, 240.59, 513.32, 218.55, 534.44, 211.2, 524.34, 204.78, 514.24, 195.59, 514.24, 177.23, 543.62, 178.15, 556.48, 122.13, 556.48, 80.81, 559.23, 51.42, 561.07, 33.98, 545.46, 24.79, 543.62, 2.75, 640.0, 2.75, 634.53, 52.34, 607.9, 96.42, 603.31, 122.13]], "area": 15071.338499999993, "iscrowd": 0, "image_id": 285022, "bbox": [513.32, 2.75, 126.68, 240.59], "category_id": 1, "id": 188587}, {"segmentation": [[401.51, 335.22, 398.74, 315.06, 396.37, 303.6, 397.95, 294.11, 401.11, 293.72, 402.3, 288.18, 407.04, 285.02, 408.62, 285.81, 410.2, 288.58, 409.41, 291.74, 414.16, 295.69, 415.34, 304.78, 414.95, 311.9, 414.55, 315.45, 412.97, 324.94, 413.76, 336.01, 414.16, 339.17, 409.02, 337.19, 408.23, 319.41, 406.65, 319.01, 407.04, 335.22, 405.07, 338.77, 401.9, 339.96, 401.9, 336.8, 401.9, 335.22]], "area": 703.4537500000004, "iscrowd": 0, "image_id": 449573, "bbox": [396.37, 285.02, 18.97, 54.94], "category_id": 1, "id": 188909}, {"segmentation": [[584.07, 152.7, 584.3, 151.54, 590.35, 153.86, 591.75, 157.82, 591.28, 161.31, 590.82, 163.87, 589.19, 167.83, 588.96, 172.49, 588.26, 172.72, 582.67, 175.28, 585.46, 170.39, 585.46, 166.9, 584.53, 158.99, 583.83, 156.89, 584.77, 154.1]], "area": 116.84605000000016, "iscrowd": 0, "image_id": 501358, "bbox": [582.67, 151.54, 9.08, 23.74], "category_id": 1, "id": 189003}, {"segmentation": [[44.04, 275.08, 45.63, 269.61, 45.63, 267.73, 44.04, 265.86, 41.6, 265.72, 39.0, 267.16, 37.85, 272.2, 37.85, 274.65, 35.69, 275.8, 36.41, 285.45, 38.0, 288.18, 41.16, 288.9, 44.76, 292.21, 49.23, 292.65, 53.55, 292.65, 60.17, 293.51, 66.65, 299.56, 72.41, 305.32, 78.03, 304.17, 81.05, 300.42, 81.92, 296.97, 79.9, 295.96, 76.59, 297.25, 70.83, 292.5, 65.79, 290.49, 59.88, 287.17, 50.67, 285.59, 53.4, 284.44, 52.97, 283.43, 50.23, 283.0, 47.79, 284.73, 46.35, 282.13, 44.76, 278.82, 43.61, 276.09]], "area": 479.3797999999995, "iscrowd": 0, "image_id": 369201, "bbox": [35.69, 265.72, 46.23, 39.6], "category_id": 1, "id": 190011}, {"segmentation": [[538.79, 75.24, 567.2, 95.4, 576.36, 121.06, 593.77, 156.8, 621.26, 187.03, 640.0, 214.52, 640.0, 238.35, 635.92, 267.67, 627.67, 277.75, 606.6, 270.42, 584.61, 256.67, 580.94, 231.93, 556.2, 211.77, 547.04, 206.28, 516.8, 192.53, 505.8, 189.78, 511.3, 157.71, 511.3, 139.39, 500.3, 135.72, 503.05, 129.31, 512.22, 126.56, 524.13, 124.72, 532.38, 122.89, 534.21, 117.39, 527.79, 112.81, 516.8, 117.39, 507.64, 117.39, 517.71, 107.32, 533.29, 103.65, 530.54, 101.82, 511.3, 107.32, 504.89, 105.48, 507.64, 96.32, 514.05, 92.65, 517.71, 90.82, 511.3, 88.07, 512.22, 81.66, 519.55, 77.08, 529.63, 77.08, 536.04, 77.08, 539.71, 77.08], [543.37, 390.45, 593.77, 404.2, 576.36, 369.38, 566.28, 368.46, 559.86, 368.46, 547.04, 377.63, 545.2, 384.96, 545.2, 387.71], [542.45, 410.61, 538.79, 420.69, 599.27, 420.69, 595.6, 416.11, 582.77, 416.11, 558.03, 412.45, 546.12, 408.78, 541.54, 410.61], [305.13, 417.94, 343.62, 420.69, 346.36, 416.11, 353.7, 416.11, 365.61, 414.28, 376.6, 394.12, 385.77, 381.29, 388.52, 374.88, 359.19, 362.05, 351.86, 362.97, 327.12, 395.95, 303.3, 415.19, 305.13, 417.94], [300.55, 338.22, 309.71, 352.89, 312.46, 351.05, 316.13, 354.72, 319.79, 360.22, 327.12, 361.13, 332.62, 360.22, 341.78, 362.97, 351.86, 358.38, 358.28, 365.71, 364.69, 362.97, 372.94, 354.72, 373.85, 338.22, 368.36, 321.73, 367.44, 317.15, 362.86, 305.24, 353.7, 292.41, 338.12, 281.41, 318.88, 270.42, 305.13, 256.67, 295.05, 245.68, 299.63, 237.43, 306.05, 232.85, 313.38, 239.26, 325.29, 235.6, 335.37, 224.6, 349.11, 215.44, 357.36, 211.77, 360.11, 215.44, 359.19, 226.44, 359.19, 238.35, 360.11, 257.59, 369.27, 299.74, 371.11, 317.15, 370.19, 323.56, 376.6, 328.15, 382.1, 318.98, 383.93, 271.33, 384.85, 251.18, 406.84, 219.1, 425.17, 203.53, 470.98, 189.78, 478.31, 187.03, 483.81, 156.8, 503.05, 82.57, 514.97, 60.58, 516.8, 48.67, 507.64, 36.76, 506.72, 19.35, 502.14, 8.35, 501.22, 3.77, 376.6, 2.86, 376.6, 31.26, 369.27, 34.01, 357.36, 34.01, 350.03, 34.93, 349.11, 45.01, 352.78, 62.42, 365.61, 71.58, 380.27, 77.99, 373.85, 87.16, 360.11, 90.82, 341.78, 96.32, 320.71, 119.23, 301.47, 145.8, 266.65, 190.7, 244.65, 218.19, 233.66, 231.02, 232.74, 243.85, 237.32, 260.34, 250.15, 270.42, 267.56, 280.5, 283.14, 287.83, 297.8, 297.91, 300.55, 303.41, 300.55, 325.4, 303.3, 335.48, 302.38, 340.97]], "area": 65637.52470000001, "iscrowd": 0, "image_id": 308936, "bbox": [232.74, 2.86, 407.26, 417.83], "category_id": 1, "id": 190049}, {"segmentation": [[242.07, 238.52, 259.55, 223.11, 262.63, 220.02, 260.57, 214.88, 260.57, 208.72, 267.77, 205.63, 271.88, 206.66, 273.94, 213.86, 273.94, 223.11, 274.96, 231.33, 278.05, 242.64, 278.05, 251.89, 273.94, 254.97, 269.82, 280.67, 269.82, 285.81, 266.74, 300.2, 265.71, 304.31, 255.43, 305.33, 252.35, 295.06, 256.46, 280.67, 255.43, 267.3, 254.41, 247.78, 241.04, 239.55, 241.04, 235.44]], "area": 1787.2067999999997, "iscrowd": 0, "image_id": 242821, "bbox": [241.04, 205.63, 37.01, 99.7], "category_id": 1, "id": 190215}, {"segmentation": [[276.65, 474.84, 279.74, 432.52, 286.97, 405.68, 327.23, 380.9, 375.74, 350.97, 396.39, 339.61, 371.61, 266.32, 346.84, 234.32, 340.65, 211.61, 330.32, 139.35, 352.0, 77.42, 409.81, 39.23, 470.71, 50.58, 540.9, 118.71, 537.81, 231.23, 520.26, 253.94, 521.29, 300.39, 595.61, 335.48, 640.0, 360.26, 640.0, 474.84, 537.81, 476.9]], "area": 95704.7239, "iscrowd": 0, "image_id": 146049, "bbox": [276.65, 39.23, 363.35, 437.67], "category_id": 1, "id": 190366}, {"segmentation": [[110.14, 189.01, 112.18, 188.81, 114.02, 187.59, 116.05, 185.14, 118.3, 181.47, 115.44, 175.35, 110.14, 174.13, 108.71, 174.95, 104.64, 179.43, 104.43, 181.27, 101.99, 187.59, 95.26, 195.74, 94.85, 214.3, 97.3, 214.7, 102.19, 214.09, 109.94, 212.87, 114.83, 211.64, 114.83, 210.83, 113.2, 205.73, 113.0, 203.9, 117.28, 202.67, 117.89, 198.6, 116.67, 197.58, 113.81, 197.17, 111.16, 197.78, 111.16, 196.56]], "area": 605.6346499999999, "iscrowd": 0, "image_id": 64908, "bbox": [94.85, 174.13, 23.45, 40.57], "category_id": 1, "id": 190490}, {"segmentation": [[383.03, 257.36, 380.35, 299.59, 385.04, 308.3, 383.37, 310.64, 379.71, 313.88, 391.44, 317.57, 393.11, 315.9, 390.77, 307.18, 390.43, 301.15, 390.1, 295.12, 393.11, 288.75, 397.47, 285.4, 396.46, 279.03, 392.78, 269.31, 390.43, 264.62, 387.41, 259.93, 384.4, 257.59, 384.4, 257.59]], "area": 606.442, "iscrowd": 0, "image_id": 548253, "bbox": [379.71, 257.36, 17.76, 60.21], "category_id": 1, "id": 190754}, {"segmentation": [[209.51, 2.3, 243.95, 48.22, 278.39, 53.96, 278.39, 71.17, 331.48, 82.65, 351.57, 82.65, 375.96, 62.57, 374.53, 46.78, 330.04, 31.0, 358.74, 29.56, 363.05, 18.08, 327.17, 2.3, 307.09, 2.3, 269.78, 2.3, 215.25, 2.3]], "area": 8671.105950000001, "iscrowd": 0, "image_id": 223932, "bbox": [209.51, 2.3, 166.45, 80.35], "category_id": 1, "id": 191664}, {"segmentation": [[209.16, 418.8, 255.22, 360.28, 262.89, 329.57, 254.26, 282.56, 275.36, 220.2, 291.68, 209.64, 314.7, 214.44, 322.38, 250.9, 322.38, 285.44, 308.95, 336.29, 307.03, 366.03, 296.47, 380.43, 304.15, 420.72, 213.96, 419.76], [374.19, 418.8, 375.15, 390.98, 358.84, 373.71, 352.12, 341.09, 360.76, 321.9, 346.36, 294.07, 342.53, 267.21, 340.61, 237.47, 354.04, 209.64, 376.11, 215.4, 388.58, 222.11, 405.85, 262.41, 403.93, 309.43, 414.49, 304.63, 427.92, 316.14, 408.73, 332.45, 409.69, 350.68, 432.72, 379.47, 450.95, 392.9, 474.93, 419.76, 377.07, 417.84]], "area": 25007.3123, "iscrowd": 0, "image_id": 232806, "bbox": [209.16, 209.64, 265.77, 211.08], "category_id": 1, "id": 191675}, {"segmentation": [[404.52, 149.96, 397.6, 149.96, 387.23, 160.33, 376.86, 177.61, 373.4, 182.22, 366.48, 200.66, 375.7, 221.41, 376.86, 229.48, 383.77, 243.3, 395.3, 264.05, 401.06, 280.18, 404.52, 294.01, 403.36, 322.83, 404.52, 405.8, 407.97, 412.72, 570.47, 415.02, 554.34, 347.03, 549.73, 322.83, 542.81, 310.15, 542.81, 302.08, 567.01, 265.2, 584.3, 200.66, 592.37, 162.63, 606.2, 126.91, 605.04, 61.22, 373.4, 56.61, 359.57, 71.59, 367.64, 94.64, 390.69, 114.23, 406.82, 122.3, 432.17, 139.58, 425.26, 147.65, 409.13, 149.96, 407.97, 149.96, 404.52, 149.96]], "area": 65768.63135, "iscrowd": 0, "image_id": 411517, "bbox": [359.57, 56.61, 246.63, 358.41], "category_id": 1, "id": 192189}, {"segmentation": [[106.75, 1.09, 197.3, 0.0, 214.45, 30.64, 218.27, 72.57, 220.17, 107.84, 263.06, 165.98, 274.5, 191.72, 258.3, 201.25, 291.66, 186.95, 303.09, 186.0, 328.83, 197.43, 346.94, 214.59, 351.7, 223.17, 345.98, 231.75, 329.78, 246.04, 321.2, 244.14, 314.53, 232.7, 291.66, 241.28, 265.92, 240.32, 249.72, 237.47, 165.84, 274.64, 97.22, 275.59, 83.88, 237.47, 74.34, 214.59, 68.62, 169.79, 66.72, 136.43, 71.48, 115.47, 81.02, 104.03, 109.61, 92.59, 120.09, 89.73, 123.91, 79.25, 101.03, 6.81]], "area": 43174.41240000001, "iscrowd": 0, "image_id": 64492, "bbox": [66.72, 0.0, 284.98, 275.59], "category_id": 1, "id": 193222}, {"segmentation": [[323.6, 284.92, 315.94, 307.9, 304.45, 308.86, 306.37, 279.18, 312.11, 259.07, 298.71, 282.05, 297.75, 272.48, 302.54, 246.63, 308.28, 219.82, 312.11, 208.33, 315.94, 189.18, 327.43, 184.4, 337.96, 196.84, 343.71, 212.16, 353.28, 223.65, 361.9, 237.05, 358.07, 245.67, 350.41, 243.75, 348.49, 268.65, 351.37, 286.84, 351.37, 305.98, 337.96, 307.9, 332.22, 307.9, 330.3, 287.79]], "area": 4897.499999999997, "iscrowd": 0, "image_id": 204589, "bbox": [297.75, 184.4, 64.15, 124.46], "category_id": 1, "id": 193307}, {"segmentation": [[387.44, 273.36, 439.1, 300.27, 489.69, 318.57, 519.82, 303.5, 504.75, 264.75, 503.68, 231.39, 507.98, 203.41, 500.45, 192.65, 518.74, 176.5, 551.03, 166.82, 584.39, 148.52, 614.53, 144.22, 620.99, 149.6, 640.0, 153.9, 637.13, 474.62, 388.52, 473.54, 356.23, 454.17, 368.07, 425.11, 407.89, 413.27, 463.86, 473.54, 467.09, 441.26, 475.7, 383.14, 378.83, 321.79, 356.23, 305.65, 348.7, 289.51, 355.16, 272.29, 357.31, 262.6]], "area": 57847.39555, "iscrowd": 0, "image_id": 578519, "bbox": [348.7, 144.22, 291.3, 330.4], "category_id": 1, "id": 193952}, {"segmentation": [[302.29, 2.03, 315.72, 52.89, 342.59, 50.01, 353.15, 58.65, 357.95, 68.25, 367.54, 67.29, 373.3, 74.0, 378.1, 74.96, 382.9, 74.96, 398.25, 75.92, 406.89, 88.4, 416.48, 92.24, 434.72, 92.24, 469.26, 72.09, 490.38, 63.45, 506.69, 62.49, 515.33, 84.56, 509.57, 123.91, 469.26, 133.5, 342.59, 157.49, 314.76, 165.17, 313.8, 170.93, 305.17, 175.73, 303.25, 182.44, 302.29, 193.96, 299.41, 197.8, 299.41, 202.6, 285.01, 221.79, 280.22, 230.43, 280.22, 235.22, 282.13, 236.18, 288.85, 236.18, 294.61, 234.26, 303.25, 225.63, 308.04, 217.95, 313.8, 217.95, 322.44, 219.87, 327.24, 216.03, 331.08, 209.31, 331.08, 208.35, 337.79, 211.23, 349.31, 211.23, 368.5, 209.31, 373.3, 208.35, 384.82, 203.56, 390.57, 199.72, 394.41, 193.96, 402.09, 189.16, 427.04, 189.16, 434.72, 190.12, 466.39, 206.43, 478.86, 204.52, 499.97, 205.48, 502.85, 205.48, 513.41, 205.48, 532.6, 202.6, 549.87, 197.8, 565.23, 188.2, 577.7, 182.44, 578.66, 182.44, 580.58, 193.0, 580.58, 211.23, 587.3, 253.46, 587.3, 263.05, 587.3, 273.61, 587.3, 277.45, 601.7, 280.33, 640.0, 277.45, 639.12, 2.03, 304.21, 2.99]], "area": 55828.8068, "iscrowd": 0, "image_id": 541994, "bbox": [280.22, 2.03, 359.78, 278.3], "category_id": 1, "id": 194034}, {"segmentation": [[49.76, 8.92, 41.64, 15.8, 45.39, 28.29, 40.39, 33.29, 32.26, 34.54, 27.26, 49.54, 34.76, 68.29, 37.89, 80.78, 33.51, 93.91, 37.26, 98.91, 46.01, 115.78, 47.26, 122.03, 46.68, 124.66, 42.25, 129.68, 40.18, 141.21, 34.56, 155.69, 32.49, 160.13, 28.06, 162.2, 30.42, 164.56, 26.88, 166.04, 28.06, 175.5, 40.47, 179.05, 51.71, 179.93, 55.25, 176.98, 51.41, 174.32, 46.09, 169.88, 49.34, 158.35, 56.14, 146.53, 62.64, 158.95, 57.91, 162.79, 60.87, 164.86, 62.64, 169.0, 62.94, 172.54, 62.94, 175.5, 66.78, 176.98, 72.69, 174.91, 77.42, 171.95, 75.65, 168.4, 76.83, 163.08, 76.54, 156.88, 74.47, 149.78, 67.37, 138.85, 66.78, 129.39, 65.01, 125.25, 64.42, 120.52, 62.94, 104.85, 65.6, 95.69, 65.89, 86.23, 61.16, 63.77, 69.74, 68.5, 72.4, 68.2, 76.24, 69.68, 88.06, 68.5, 91.02, 70.27, 89.25, 74.11, 94.86, 74.41, 96.34, 71.45, 95.75, 67.61, 90.13, 62.58, 78.6, 59.92, 68.26, 49.28, 68.26, 44.55, 62.05, 38.64, 61.76, 33.62, 62.05, 29.77, 62.05, 27.41, 67.96, 23.86, 67.37, 17.66, 60.28, 8.2]], "area": 5079.078150000001, "iscrowd": 0, "image_id": 45949, "bbox": [26.88, 8.2, 69.46, 171.73], "category_id": 1, "id": 194120}, {"segmentation": [[452.04, 259.28, 452.94, 251.46, 453.54, 248.15, 457.0, 244.08, 460.46, 242.28, 463.32, 240.93, 465.43, 240.77, 466.33, 244.54, 463.62, 245.89, 458.36, 248.75, 454.9, 253.71], [448.13, 232.95, 448.43, 234.61, 449.03, 236.41, 451.14, 237.46, 452.19, 238.22, 452.64, 238.22, 455.2, 237.16, 460.91, 234.31, 464.07, 232.5, 465.13, 232.95, 465.58, 235.21, 465.88, 235.81, 468.44, 233.55, 471.14, 231.75, 474.76, 231.45, 479.27, 231.45, 483.93, 231.45, 487.09, 231.9, 488.14, 233.25, 490.85, 234.31, 489.65, 232.8, 488.14, 231.0, 487.09, 228.74, 485.74, 227.39, 482.88, 225.88, 480.62, 224.98, 480.02, 224.38, 480.47, 221.67, 481.07, 218.36, 480.62, 214.9, 479.12, 213.85, 476.56, 213.09, 471.3, 212.79, 470.39, 212.94, 469.19, 216.25, 468.89, 218.66, 467.83, 221.52, 466.63, 223.92, 465.43, 224.38, 463.02, 225.13, 457.76, 227.99, 456.25, 229.49, 454.75, 229.94, 452.04, 232.5, 450.99, 232.95]], "area": 488.7545499999999, "iscrowd": 0, "image_id": 425540, "bbox": [448.13, 212.79, 42.72, 46.49], "category_id": 1, "id": 194241}, {"segmentation": [[229.33, 401.09, 217.82, 387.66, 233.17, 328.17, 239.89, 292.66, 239.89, 281.15, 261.96, 298.42, 285.95, 270.59, 310.89, 280.19, 308.02, 258.12, 267.71, 177.52, 246.6, 111.31, 223.58, 95.96, 272.51, 83.48, 308.02, 75.8, 333.92, 56.61, 291.7, 31.67, 229.33, 25.91, 181.36, 38.38, 135.3, 73.89, 167.92, 92.12, 180.4, 96.91, 181.36, 105.55, 162.16, 120.9, 142.01, 240.85, 154.49, 264.84, 174.64, 258.12, 192.87, 291.7, 188.07, 330.09, 196.71, 379.02, 189.03, 398.21, 202.47, 405.89, 226.45, 403.01]], "area": 35737.035299999996, "iscrowd": 0, "image_id": 577869, "bbox": [135.3, 25.91, 198.62, 379.98], "category_id": 1, "id": 194536}, {"segmentation": [[591.08, 157.37, 548.86, 147.77, 555.58, 98.83, 532.55, 64.29, 529.67, 85.4, 479.78, 97.87, 480.73, 66.21, 465.38, 32.62, 485.53, 0.0, 598.76, 0.0, 635.22, 83.48, 639.06, 106.51], [205.34, 164.08, 211.1, 88.28, 226.45, 52.78, 203.42, 2.88, 127.62, 3.84, 84.44, 96.91, 118.98, 162.16, 155.45, 183.27, 236.05, 157.37, 236.05, 117.07, 212.06, 101.71]], "area": 36796.42904999999, "iscrowd": 0, "image_id": 101766, "bbox": [84.44, 0.0, 554.62, 183.27], "category_id": 1, "id": 195059}, {"segmentation": [[185.95, 114.59, 220.54, 116.04, 243.6, 127.57, 256.58, 134.77, 265.23, 154.95, 273.87, 186.67, 276.76, 214.05, 288.29, 274.59, 307.03, 287.57, 281.08, 297.66, 263.78, 300.54, 242.16, 303.42, 206.13, 300.54, 201.8, 299.1, 188.83, 299.1, 161.44, 301.98, 135.5, 278.92, 106.67, 294.77, 95.14, 304.86, 82.16, 312.07, 77.84, 332.25, 74.95, 345.23, 79.28, 352.43, 63.42, 392.79, 60.54, 402.88, 60.54, 423.06, 61.98, 437.48, 69.19, 441.8, 74.95, 447.57, 85.05, 466.31, 79.28, 480.72, 72.07, 483.6, 53.33, 477.84, 43.24, 441.8, 38.92, 412.97, 38.92, 369.73, 43.24, 336.58, 47.57, 312.07, 59.1, 299.1, 85.05, 276.04, 86.49, 274.59, 99.46, 257.3, 99.46, 228.47, 100.9, 205.41, 118.2, 179.46, 121.08, 159.28, 134.05, 143.42, 142.7, 131.89, 148.47, 126.13, 161.44, 118.92, 174.41, 111.71], [292.61, 506.67, 302.7, 519.64, 318.56, 536.94, 327.21, 551.35, 331.53, 564.32, 331.53, 593.15, 327.21, 617.66, 318.56, 640.0, 250.81, 640.0, 183.06, 640.0, 134.05, 640.0, 112.43, 640.0, 70.63, 639.28, 47.57, 598.92, 31.71, 577.3, 28.83, 541.26, 38.92, 525.41, 59.1, 502.34, 63.42, 510.99, 77.84, 522.52, 89.37, 538.38, 95.14, 545.59, 115.32, 549.91, 138.38, 552.79, 158.56, 554.23, 165.77, 554.23, 188.83, 554.23, 201.8, 568.65, 210.45, 571.53, 227.75, 572.97, 243.6, 572.97, 265.23, 562.88, 269.55, 554.23, 278.2, 536.94, 279.64, 521.08, 279.64, 513.87, 283.96, 510.99]], "area": 62351.10144999999, "iscrowd": 0, "image_id": 417832, "bbox": [28.83, 111.71, 302.7, 528.29], "category_id": 1, "id": 195607}, {"segmentation": [[342.83, 40.42, 337.75, 53.12, 335.21, 67.51, 330.14, 86.98, 326.75, 120.84, 325.06, 142.0, 308.97, 136.92, 298.81, 136.92, 290.35, 139.46, 291.2, 153.01, 303.89, 157.24, 317.44, 175.86, 322.52, 190.25, 335.21, 202.95, 356.38, 204.64, 375.0, 216.49, 380.93, 219.88, 377.54, 232.58, 366.53, 242.73, 356.38, 251.2, 346.22, 258.82, 354.68, 272.36, 370.77, 281.67, 380.93, 291.83, 376.69, 268.98, 381.77, 252.05, 397.01, 242.73, 405.47, 230.88, 414.79, 218.19, 419.86, 208.87, 414.79, 202.95, 401.24, 194.48, 387.7, 186.87, 381.77, 181.79, 370.77, 181.79, 366.53, 181.79, 353.84, 182.63, 342.83, 170.78, 341.99, 163.16, 345.37, 152.16, 351.3, 141.15, 358.92, 136.08, 375.0, 131.0, 394.47, 129.3, 400.4, 136.92, 405.47, 144.54, 411.4, 150.47, 415.63, 152.16, 424.1, 152.16, 428.33, 147.93, 430.87, 141.15, 423.25, 139.46, 413.09, 131.84, 406.32, 124.22, 413.94, 116.61, 410.55, 97.14, 402.09, 80.21, 397.86, 68.35, 389.39, 57.35, 383.47, 42.96, 375.85, 30.26, 364.84, 21.8, 354.68, 29.42, 345.37, 37.88]], "area": 13339.613350000003, "iscrowd": 0, "image_id": 450940, "bbox": [290.35, 21.8, 140.52, 270.03], "category_id": 1, "id": 196079}, {"segmentation": [[40.43, 231.01, 46.2, 184.81, 31.19, 173.26, 43.89, 127.06, 63.53, 98.18, 75.08, 68.15, 85.47, 60.06, 101.64, 51.98, 252.96, 51.98, 261.04, 55.44, 286.45, 57.75, 289.92, 70.46, 272.59, 76.23, 241.41, 85.47, 221.77, 98.18, 212.53, 112.04, 236.79, 122.44, 247.18, 133.99, 243.72, 180.19, 263.35, 207.91, 264.51, 211.38, 248.34, 236.79, 241.41, 250.65, 235.63, 262.2, 298.0, 324.57, 321.11, 323.42, 298.0, 346.52, 287.61, 359.22, 315.33, 371.93, 299.16, 388.1, 270.28, 388.1, 263.35, 413.51, 102.8, 415.82, 114.35, 356.91, 38.12, 330.35, 34.65, 325.73, 38.12, 237.94]], "area": 74096.26759999999, "iscrowd": 0, "image_id": 411517, "bbox": [31.19, 51.98, 289.92, 363.84], "category_id": 1, "id": 196434}, {"segmentation": [[394.45, 39.83, 397.32, 58.02, 390.62, 82.91, 395.41, 104.93, 380.09, 148.97, 383.92, 177.69, 463.38, 185.35, 506.46, 181.52, 576.35, 193.01, 584.01, 145.14, 591.67, 135.57, 606.99, 125.04, 636.67, 85.78, 625.18, 2.49, 425.09, 0.57, 424.13, 0.57, 395.41, 37.91]], "area": 40304.15695, "iscrowd": 0, "image_id": 223838, "bbox": [380.09, 0.57, 256.58, 192.44], "category_id": 1, "id": 196532}, {"segmentation": [[214.89, 447.43, 220.08, 442.24, 224.23, 426.67, 240.84, 421.48, 257.45, 413.17, 257.45, 388.26, 264.72, 369.57, 278.22, 365.42, 287.56, 363.34, 308.32, 369.57, 311.43, 403.83, 308.32, 429.78, 286.52, 451.58, 303.13, 454.7, 256.41, 449.5, 224.23, 446.39]], "area": 5070.771199999998, "iscrowd": 0, "image_id": 332065, "bbox": [214.89, 363.34, 96.54, 91.36], "category_id": 1, "id": 196846}, {"segmentation": [[308.49, 261.03, 270.74, 304.18, 255.64, 299.87, 158.56, 409.89, 166.11, 445.48, 160.72, 473.53, 407.73, 473.53, 409.89, 442.25, 451.96, 409.89, 528.54, 394.79, 552.27, 345.17, 533.93, 324.67, 496.18, 255.64, 467.06, 232.99, 476.76, 120.81, 443.33, 84.13, 416.36, 66.88, 358.11, 86.29, 294.47, 135.91, 303.1, 145.62, 290.16, 168.27, 280.45, 179.06, 292.31, 209.26, 292.31, 226.52, 305.26, 236.22, 309.57, 252.4, 309.57, 257.8], [188.76, 346.25, 147.78, 338.7, 0.0, 455.19, 3.24, 472.45, 75.51, 472.45, 154.25, 470.29, 165.03, 443.33, 157.48, 418.52, 151.01, 432.54, 139.15, 421.75, 132.67, 401.26, 149.93, 389.39, 189.84, 346.25]], "area": 103006.16985000002, "iscrowd": 0, "image_id": 359098, "bbox": [0.0, 66.88, 552.27, 406.65], "category_id": 1, "id": 197359}, {"segmentation": [[294.94, 369.1, 289.04, 272.19, 279.78, 262.08, 289.89, 217.42, 295.79, 208.15, 294.94, 192.98, 297.47, 166.85, 297.47, 151.69, 289.89, 136.52, 284.83, 130.62, 301.69, 126.4, 309.27, 122.19, 307.58, 112.08, 305.06, 107.02, 301.69, 101.12, 307.58, 79.21, 317.7, 70.79, 336.24, 71.63, 348.88, 91.01, 349.72, 98.6, 348.88, 107.02, 343.82, 111.24, 340.45, 114.61, 338.76, 116.29, 350.56, 126.4, 355.62, 133.15, 366.57, 140.73, 376.69, 161.8, 380.9, 177.81, 380.9, 193.82, 369.1, 207.3, 361.52, 207.3, 354.78, 206.46, 375.0, 260.39, 364.04, 262.92, 375.0, 347.19, 381.74, 353.93, 381.74, 364.89, 380.9, 369.1, 373.31, 369.94, 366.57, 369.94, 358.15, 370.79, 349.72, 370.79, 348.03, 370.79, 347.19, 350.56, 337.92, 320.22, 332.87, 290.73, 332.02, 273.03, 325.28, 292.42, 328.65, 347.19, 330.34, 364.04, 330.34, 366.57]], "area": 20241.935650000003, "iscrowd": 0, "image_id": 439809, "bbox": [279.78, 70.79, 101.96, 300.0], "category_id": 1, "id": 197417}, {"segmentation": [[296.92, 195.79, 305.25, 216.37, 312.6, 220.78, 321.42, 223.72, 330.73, 226.66, 334.16, 229.6, 324.36, 241.37, 323.87, 253.62, 327.79, 263.42, 336.61, 267.83, 345.92, 267.34, 351.31, 259.99, 344.45, 254.11, 343.47, 247.25, 354.74, 247.74, 358.66, 240.88, 359.64, 235.48, 353.76, 231.56, 351.31, 229.11, 349.35, 220.78, 349.35, 213.92, 353.27, 213.92, 362.1, 217.35, 367.49, 217.35, 368.47, 217.35, 368.96, 214.9, 374.35, 207.55, 380.72, 212.45, 386.11, 215.88, 393.46, 214.9, 393.95, 214.41, 395.42, 210.49, 390.03, 204.61, 383.17, 199.22, 372.39, 190.4, 366.02, 184.03, 358.17, 178.15, 353.76, 172.27, 354.74, 168.84, 352.29, 163.94, 352.78, 152.67, 355.72, 146.79, 355.72, 141.4, 344.45, 133.56, 334.65, 133.07, 330.24, 133.07, 326.81, 135.52, 323.38, 146.3, 323.38, 153.16, 323.38, 155.12, 323.38, 157.57, 317.01, 158.06, 314.07, 160.02, 308.68, 165.41, 305.74, 170.31, 300.84, 177.66, 293.98, 193.83, 293.98, 195.3, 296.43, 197.75]], "area": 5966.889249999999, "iscrowd": 0, "image_id": 255604, "bbox": [293.98, 133.07, 101.44, 134.76], "category_id": 1, "id": 197622}, {"segmentation": [[393.77, 2.69, 412.96, 2.69, 412.0, 19.97, 390.89, 20.92, 388.98, 9.41, 387.06, 18.05, 377.46, 19.01, 380.34, 2.69, 402.41, 1.73], [412.96, 22.84, 408.17, 44.91, 390.89, 42.99, 388.02, 25.72, 412.96, 21.88], [364.99, 45.87, 360.19, 25.72, 367.87, 22.84, 368.82, 45.87], [376.5, 43.95, 378.42, 23.8, 387.06, 23.8, 379.38, 44.91], [361.15, 17.09, 361.15, 3.65, 367.87, 2.69, 366.91, 19.01, 358.27, 19.01]], "area": 1340.779450000001, "iscrowd": 0, "image_id": 191918, "bbox": [358.27, 1.73, 54.69, 44.14], "category_id": 1, "id": 198270}, {"segmentation": [[201.36, 335.94, 226.74, 328.13, 231.95, 327.8, 235.2, 323.57, 230.65, 318.04, 236.83, 302.09, 229.67, 291.03, 228.04, 277.04, 221.54, 270.53, 212.42, 260.76, 200.06, 253.93, 197.13, 247.75, 183.13, 250.68, 179.55, 253.28, 174.02, 260.11, 169.79, 265.65, 165.89, 271.5, 165.89, 275.73, 200.06, 280.29, 200.38, 284.85, 189.97, 287.12, 189.64, 292.98, 195.83, 337.57]], "area": 3307.3487000000005, "iscrowd": 0, "image_id": 448843, "bbox": [165.89, 247.75, 70.94, 89.82], "category_id": 1, "id": 198661}, {"segmentation": [[597.54, 171.46, 591.36, 174.99, 588.71, 180.28, 586.06, 184.7, 584.29, 190.88, 583.41, 196.18, 584.29, 200.59, 589.59, 200.59, 592.24, 200.59, 592.24, 206.77, 588.71, 215.6, 593.12, 220.02, 598.42, 216.49, 600.18, 206.77, 601.95, 198.83, 598.42, 190.0, 598.42, 182.93, 598.42, 177.64]], "area": 505.0592499999991, "iscrowd": 0, "image_id": 373765, "bbox": [583.41, 171.46, 18.54, 48.56], "category_id": 1, "id": 198759}, {"segmentation": [[518.97, 263.18, 516.49, 270.81, 508.24, 278.85, 506.59, 290.6, 509.89, 293.08, 509.89, 304.21, 509.89, 316.59, 510.92, 329.99, 510.72, 331.23, 516.7, 330.4, 517.73, 311.02, 524.74, 307.72, 526.8, 326.69, 532.99, 325.45, 530.1, 315.56, 531.75, 305.45, 529.28, 287.1, 531.75, 280.5, 535.88, 291.22, 538.14, 289.16, 533.81, 276.58, 529.07, 274.93, 526.39, 271.63, 527.63, 262.97, 522.06, 260.7]], "area": 1170.7836500000003, "iscrowd": 0, "image_id": 241076, "bbox": [506.59, 260.7, 31.55, 70.53], "category_id": 1, "id": 199249}, {"segmentation": [[204.07, 109.51, 215.83, 128.0, 229.28, 154.89, 231.8, 186.83, 232.64, 218.77, 227.6, 252.38, 232.64, 273.4, 219.19, 275.08, 214.99, 252.38, 204.07, 237.26, 193.98, 214.56, 190.62, 192.71, 196.5, 170.86, 197.34, 153.21, 200.7, 131.36, 204.07, 113.71]], "area": 4299.667299999999, "iscrowd": 0, "image_id": 338086, "bbox": [190.62, 109.51, 42.02, 165.57], "category_id": 1, "id": 199345}, {"segmentation": [[253.78, 303.81, 251.81, 282.36, 252.94, 264.3, 248.7, 259.22, 250.68, 251.03, 245.88, 247.64, 247.57, 244.54, 251.81, 244.26, 254.35, 234.1, 256.04, 227.32, 253.22, 225.07, 251.52, 224.22, 250.4, 222.53, 250.96, 217.16, 250.96, 214.91, 254.35, 212.65, 259.99, 212.37, 263.94, 216.03, 265.64, 224.22, 270.72, 229.58, 270.72, 242.28, 269.87, 252.44, 273.54, 262.04, 271.85, 264.58, 268.46, 265.42, 267.61, 265.71, 269.59, 304.37, 263.38, 306.35]], "area": 1567.0141000000003, "iscrowd": 0, "image_id": 303376, "bbox": [245.88, 212.37, 27.66, 93.98], "category_id": 1, "id": 199375}, {"segmentation": [[473.52, 292.53, 479.34, 286.72, 477.01, 264.06, 488.05, 255.34, 497.35, 249.53, 499.1, 244.3, 498.51, 206.52, 492.12, 193.15, 485.73, 182.11, 477.01, 182.11, 472.36, 187.34, 474.11, 195.48, 475.27, 203.03, 473.52, 208.85, 467.13, 222.79, 449.11, 235.0, 442.14, 235.58, 445.05, 240.81, 458.41, 241.39, 466.55, 239.65, 471.2, 240.23, 461.9, 246.62, 453.76, 254.18, 451.44, 258.25, 457.25, 268.71, 468.29, 285.56]], "area": 2890.253649999999, "iscrowd": 0, "image_id": 35322, "bbox": [442.14, 182.11, 56.96, 110.42], "category_id": 1, "id": 199733}, {"segmentation": [[30.49, 403.04, 45.73, 311.57, 94.33, 235.34, 102.9, 173.41, 107.67, 152.45, 101.95, 128.63, 142.92, 93.38, 216.29, 80.99, 246.78, 103.86, 249.64, 130.53, 296.32, 148.64, 282.03, 157.21, 268.69, 149.59, 258.21, 175.32, 262.02, 204.85, 254.4, 230.58, 248.68, 256.31, 270.6, 307.76, 288.7, 340.15, 361.11, 295.37, 375.41, 269.64, 398.27, 271.55, 427.81, 256.31, 435.43, 254.4, 441.15, 266.79, 436.39, 293.47, 429.72, 307.76, 428.76, 307.76, 406.85, 321.1, 420.19, 332.53, 378.27, 375.41, 337.29, 415.42, 251.54, 418.28, 79.08, 419.24, 30.49, 418.28]], "area": 76192.16425, "iscrowd": 0, "image_id": 34861, "bbox": [30.49, 80.99, 410.66, 338.25], "category_id": 1, "id": 199895}, {"segmentation": [[408.74, 226.28, 411.06, 219.33, 412.41, 215.66, 412.99, 212.38, 413.95, 210.45, 414.92, 207.55, 416.66, 206.01, 418.2, 209.48, 418.78, 212.57, 422.06, 216.24, 419.94, 220.1, 418.97, 226.09, 418.2, 225.51, 415.69, 224.35, 410.09, 224.35]], "area": 132.18484999999976, "iscrowd": 0, "image_id": 425540, "bbox": [408.74, 206.01, 13.32, 20.27], "category_id": 1, "id": 200369}, {"segmentation": [[74.26, 156.45, 74.26, 176.9, 76.41, 187.66, 81.79, 226.4, 73.18, 261.92, 71.03, 300.66, 80.72, 311.43, 93.63, 355.55, 90.4, 420.13, 94.71, 440.57, 94.71, 449.18, 94.71, 456.72, 96.86, 467.48, 105.47, 470.71, 118.39, 471.78, 129.15, 465.33, 138.83, 468.56, 157.13, 470.71, 175.43, 470.71, 180.81, 470.71, 191.57, 471.78, 196.95, 471.78, 196.95, 466.4, 191.57, 461.02, 186.19, 456.72, 177.58, 449.18, 174.35, 444.88, 174.35, 440.57, 171.12, 429.81, 171.12, 424.43, 171.12, 412.59, 173.27, 400.75, 173.27, 391.07, 176.5, 371.7, 177.58, 349.09, 177.58, 344.79, 174.35, 326.49, 167.89, 310.35, 167.89, 298.51, 167.89, 290.98, 160.36, 267.3, 158.21, 249.0, 147.44, 236.09, 158.21, 236.09, 162.51, 230.71, 166.82, 223.17, 168.97, 212.41, 164.66, 189.81, 164.66, 185.51, 180.81, 172.59, 180.81, 171.52, 171.12, 167.21, 171.12, 165.06, 171.12, 163.98, 167.89, 157.52, 154.98, 154.3, 151.75, 154.3, 148.52, 154.3, 144.22, 153.22, 140.99, 152.14, 137.76, 146.76, 132.38, 142.46, 138.83, 136.0, 144.22, 132.77, 145.29, 132.77, 148.52, 120.93, 144.22, 109.09, 144.22, 106.94, 139.91, 87.57, 131.3, 84.34, 123.77, 84.34, 115.16, 84.34, 103.32, 84.34, 97.94, 89.72, 93.63, 100.48, 92.56, 110.17, 92.56, 115.55, 86.1, 125.24, 83.95, 132.77, 83.95, 138.15, 81.79, 145.69, 80.72, 147.84, 76.41, 152.14]], "area": 31181.4648, "iscrowd": 0, "image_id": 347340, "bbox": [71.03, 84.34, 125.92, 387.44], "category_id": 1, "id": 200570}, {"segmentation": [[495.96, 327.28, 497.96, 312.89, 498.36, 304.1, 496.36, 299.7, 491.96, 298.1, 487.97, 298.5, 491.57, 293.7, 491.96, 287.31, 494.36, 287.31, 496.36, 287.31, 495.96, 284.11, 499.96, 283.71, 502.36, 285.31, 501.96, 288.11, 505.16, 290.11, 507.56, 292.5, 508.75, 294.9, 509.95, 296.9, 505.56, 301.7, 503.96, 305.7, 507.56, 318.09, 505.96, 326.08, 502.36, 329.68, 501.96, 322.49, 501.96, 312.49, 499.16, 323.69, 495.96, 330.48]], "area": 424.3120500000005, "iscrowd": 0, "image_id": 173163, "bbox": [487.97, 283.71, 21.98, 46.77], "category_id": 1, "id": 201087}, {"segmentation": [[81.82, 281.98, 85.51, 280.84, 85.23, 279.71, 82.96, 279.42, 82.11, 277.72, 81.82, 275.73, 79.84, 273.46, 79.27, 271.48, 79.55, 270.34, 80.97, 268.92, 79.84, 267.51, 78.42, 266.37, 78.42, 264.95, 78.42, 262.97, 75.58, 262.4, 74.16, 263.25, 73.59, 263.82, 75.3, 265.52, 72.74, 267.51, 72.18, 268.64, 72.18, 271.19, 72.74, 273.18, 70.76, 274.32, 71.32, 274.88, 73.03, 276.3, 77.0, 276.3, 78.42, 275.45, 78.42, 276.59, 80.41, 278.86, 80.97, 281.98, 82.11, 282.55]], "area": 110.31790000000007, "iscrowd": 0, "image_id": 369201, "bbox": [70.76, 262.4, 14.75, 20.15], "category_id": 1, "id": 201655}, {"segmentation": [[84.94, 338.8, 102.54, 305.66, 105.65, 299.44, 107.72, 290.12, 111.87, 282.87, 122.22, 283.91, 125.33, 292.19, 122.22, 301.52, 131.55, 314.98, 141.9, 320.16, 142.94, 325.34, 134.65, 329.48, 123.26, 330.52, 114.97, 327.41, 112.9, 324.3, 109.79, 327.41, 100.47, 327.41, 102.54, 334.66, 119.12, 340.88, 112.9, 345.02, 117.04, 363.66, 114.97, 378.16, 108.76, 385.42, 106.69, 371.95, 106.69, 350.2, 95.29, 345.02, 89.08, 343.98, 83.9, 343.98]], "area": 1956.08625, "iscrowd": 0, "image_id": 332065, "bbox": [83.9, 282.87, 59.04, 102.55], "category_id": 1, "id": 202060}, {"segmentation": [[533.24, 154.09, 534.18, 145.65, 535.12, 143.58, 531.93, 137.39, 530.43, 135.14, 529.12, 128.57, 527.61, 134.95, 527.61, 135.33, 524.05, 137.77, 522.17, 140.21, 521.23, 146.59, 521.23, 149.96, 521.23, 151.84, 523.11, 155.4, 523.11, 157.28, 519.17, 160.28, 521.99, 161.78, 526.86, 158.59, 525.93, 163.47, 525.93, 168.35, 531.55, 173.42, 531.55, 176.79, 532.12, 182.42, 531.37, 188.62, 534.74, 200.71, 537.75, 204.27, 543.0, 211.78, 547.88, 218.53, 549.19, 234.1, 545.81, 238.69, 544.31, 247.13, 550.32, 253.14, 554.63, 251.07, 557.82, 238.13, 558.76, 212.23, 556.7, 206.98, 543.0, 189.15, 542.81, 183.71, 546.94, 180.15, 548.25, 176.58, 548.82, 167.58, 545.44, 156.5, 541.31, 155.0, 537.37, 154.44, 534.74, 154.44]], "area": 1628.4622000000024, "iscrowd": 0, "image_id": 338086, "bbox": [519.17, 128.57, 39.59, 124.57], "category_id": 1, "id": 203280}, {"segmentation": [[246.64, 330.72, 246.64, 279.15, 260.09, 274.66, 275.78, 243.27, 255.61, 235.43, 257.85, 201.79, 236.55, 192.83, 223.09, 211.88, 215.25, 195.07, 209.64, 172.65, 221.97, 147.98, 232.06, 134.53, 255.61, 128.92, 265.7, 126.68, 262.33, 73.99, 279.15, 69.51, 312.78, 77.35, 309.42, 109.87, 295.96, 137.89, 309.42, 147.98, 315.02, 155.83, 315.02, 179.37, 315.02, 201.79, 300.45, 214.13, 299.33, 236.55, 309.42, 250.0, 313.9, 274.66, 306.05, 300.45, 300.45, 347.53, 295.96, 394.62, 283.63, 423.77, 300.45, 442.83, 304.93, 456.28, 282.51, 461.88, 257.85, 428.25, 270.18, 410.31, 269.06, 304.93, 256.73, 311.66, 250.0, 330.72, 237.67, 335.2, 223.09, 356.5, 198.43, 359.87, 195.07, 381.17, 196.19, 399.1, 184.98, 396.86, 176.01, 394.62, 182.74, 387.89, 169.28, 387.89, 173.77, 374.44, 182.74, 372.2, 183.86, 350.9, 193.95, 352.02, 209.64, 326.23, 219.73, 271.3], [220.85, 271.3, 239.91, 275.78, 239.91, 307.17, 236.55, 308.3], [230.94, 213.0, 241.03, 199.55, 255.61, 206.28, 251.12, 229.82, 230.94, 217.49]], "area": 22537.93150000001, "iscrowd": 0, "image_id": 445214, "bbox": [169.28, 69.51, 145.74, 392.37], "category_id": 1, "id": 203510}, {"segmentation": [[174.04, 3.09, 170.2, 20.36, 165.4, 63.54, 153.89, 139.35, 203.78, 149.9, 199.95, 123.99, 221.06, 100.96, 220.1, 74.1, 225.85, 75.06, 222.98, 100.96, 261.36, 88.49, 269.99, 40.51, 277.67, 15.56, 280.55, 1.17, 173.08, 0.21], [229.69, 114.4, 220.1, 148.94, 232.57, 152.78, 262.32, 143.18, 264.24, 97.13, 229.69, 114.4, 237.97, 114.03], [163.12, 166.8, 163.12, 188.87, 145.85, 189.83, 139.13, 199.43, 155.45, 211.9, 182.31, 219.58, 203.42, 212.86, 201.51, 185.99, 200.55, 175.44]], "area": 15878.067200000001, "iscrowd": 0, "image_id": 285022, "bbox": [139.13, 0.21, 141.42, 219.37], "category_id": 1, "id": 203602}, {"segmentation": [[313.45, 261.21, 275.84, 254.94, 269.57, 244.49, 294.65, 240.31, 292.56, 205.83, 297.78, 203.74, 297.78, 178.67, 340.62, 152.55, 339.57, 137.92, 313.45, 154.64, 292.56, 159.86, 292.56, 146.28, 305.09, 147.32, 326.82, 122.8, 327.97, 115.09, 334.9, 103.16, 336.83, 94.3, 341.84, 90.06, 338.72, 80.05, 328.95, 84.93, 322.44, 70.28, 330.58, 45.85, 350.93, 37.71, 367.21, 45.04, 376.17, 62.14, 381.05, 88.19, 394.08, 115.05, 403.03, 158.2, 381.86, 185.07, 333.83, 189.95, 324.06, 221.7, 316.74, 253.45]], "area": 11856.02895, "iscrowd": 0, "image_id": 559566, "bbox": [269.57, 37.71, 133.46, 223.5], "category_id": 1, "id": 203680}, {"segmentation": [[543.43, 285.0, 541.94, 283.93, 541.94, 278.61, 540.87, 270.94, 542.15, 266.46, 544.07, 264.12, 544.71, 262.63, 544.92, 260.07, 547.47, 261.78, 547.26, 264.12, 548.75, 266.04, 549.39, 271.58, 548.11, 273.49, 549.39, 282.65, 547.05, 285.21, 547.05, 284.15, 546.41, 279.03, 545.13, 275.41, 544.07, 279.67, 544.28, 283.72, 544.07, 284.57]], "area": 133.31884999999977, "iscrowd": 0, "image_id": 241076, "bbox": [540.87, 260.07, 8.52, 25.14], "category_id": 1, "id": 203853}, {"segmentation": [[149.49, 339.53, 130.07, 320.95, 114.02, 311.66, 93.75, 311.66, 80.24, 316.72, 54.05, 304.9, 47.3, 303.21, 55.74, 292.23, 40.54, 291.39, 38.01, 282.09, 76.86, 278.72, 102.2, 270.27, 112.33, 270.27, 128.38, 279.56, 181.59, 278.72, 205.24, 240.71, 203.55, 234.8, 185.81, 255.91, 168.92, 260.98, 172.3, 237.33, 176.52, 218.75, 180.74, 193.41, 199.32, 185.81, 206.08, 186.66, 211.99, 180.74, 205.24, 159.63, 198.48, 152.03, 206.08, 120.78, 220.44, 99.66, 243.24, 93.75, 274.49, 106.42, 281.25, 135.14, 275.34, 153.72, 269.43, 165.54, 282.09, 169.76, 303.21, 183.28, 307.43, 210.3, 296.45, 211.99, 285.47, 240.71, 276.18, 250.84, 261.82, 269.43, 230.57, 282.94, 226.35, 298.14, 173.99, 315.03, 162.16, 331.08, 146.11, 345.44]], "area": 22850.643299999992, "iscrowd": 0, "image_id": 542041, "bbox": [38.01, 93.75, 269.42, 251.69], "category_id": 1, "id": 203857}, {"segmentation": [[239.21, 183.27, 242.04, 180.44, 244.16, 178.32, 246.63, 178.32, 250.17, 178.67, 254.42, 179.38, 254.77, 179.38, 257.6, 178.67, 259.72, 177.97, 262.9, 176.2, 264.32, 175.84, 272.45, 173.72, 275.99, 177.26, 277.4, 179.03, 279.88, 177.61, 275.28, 167.0, 275.99, 159.22, 276.34, 152.15, 276.34, 149.67, 274.57, 136.59, 271.04, 124.92, 270.68, 119.97, 269.27, 107.94, 268.92, 107.59, 265.38, 95.92, 262.9, 95.92, 253.71, 94.5, 249.46, 94.5, 248.4, 94.5, 240.98, 96.27, 238.5, 99.81, 239.21, 106.88, 242.04, 111.13, 243.1, 112.19, 245.22, 119.97, 245.22, 122.09, 244.87, 128.1, 239.21, 128.81, 237.79, 131.28, 233.55, 143.31, 232.49, 148.97, 232.84, 158.16, 233.55, 159.22, 234.26, 164.17, 234.26, 165.59, 234.96, 169.48, 237.79, 173.72, 237.79, 174.43, 236.03, 183.98, 236.03, 184.69], [284.83, 174.78, 284.83, 151.44, 284.12, 146.84, 286.24, 140.83, 292.96, 132.34, 299.33, 128.1, 303.93, 124.21, 307.11, 119.61, 307.82, 116.78, 309.94, 111.83, 309.94, 101.93, 307.82, 96.63, 299.33, 105.47, 294.73, 110.77, 291.9, 115.02, 291.2, 115.72, 282.71, 120.32, 281.29, 118.91, 280.94, 113.95, 281.65, 109.71, 283.77, 105.82, 286.24, 102.64, 289.07, 96.98, 289.43, 95.21, 289.07, 91.67, 286.24, 91.32, 283.77, 93.44, 282.71, 95.92, 281.29, 99.81, 279.53, 102.64, 276.34, 105.82, 275.28, 107.59, 275.28, 110.42, 275.28, 112.54, 275.99, 116.08, 277.05, 121.03, 280.59, 131.28]], "area": 3789.2007000000003, "iscrowd": 0, "image_id": 373765, "bbox": [232.49, 91.32, 77.45, 93.37], "category_id": 1, "id": 204080}, {"segmentation": [[300.04, 184.39, 297.47, 193.64, 296.44, 199.3, 296.44, 203.92, 295.93, 206.49, 291.82, 206.49, 288.22, 206.49, 287.19, 204.44, 288.22, 199.81, 292.33, 189.01, 294.39, 184.9, 293.36, 181.3, 289.76, 173.59, 288.73, 165.36, 285.65, 153.02, 284.62, 147.88, 285.65, 144.8, 288.73, 141.2, 291.82, 138.12, 293.87, 137.09, 294.39, 133.49, 294.39, 125.26, 302.1, 119.61, 308.78, 120.64, 308.78, 127.32, 308.78, 135.03, 311.87, 138.12, 315.47, 143.26, 322.15, 149.94, 328.32, 161.25, 333.46, 166.91, 332.43, 170.5, 329.35, 172.05, 326.78, 171.02, 324.72, 165.88, 322.66, 161.25, 319.07, 157.65, 315.47, 154.05, 314.95, 155.6, 314.44, 161.25, 314.44, 167.93, 314.44, 170.5, 315.47, 174.62, 317.01, 179.24, 317.52, 183.87, 312.9, 178.22, 311.35, 174.62, 308.78, 173.59, 306.73, 171.53, 303.64, 173.59]], "area": 1685.3146000000002, "iscrowd": 0, "image_id": 181837, "bbox": [284.62, 119.61, 48.84, 86.88], "category_id": 1, "id": 204302}, {"segmentation": [[287.95, 158.75, 299.43, 149.57, 306.32, 151.48, 312.44, 156.84, 307.85, 165.26, 297.9, 178.27, 293.69, 196.64, 301.73, 210.8, 305.94, 219.98, 300.58, 223.04, 317.04, 260.16, 301.35, 265.9, 304.03, 254.42, 292.55, 234.52, 284.89, 219.98, 290.25, 214.62, 293.31, 213.48, 298.29, 211.18, 294.46, 200.85, 273.79, 205.06, 262.31, 205.82, 256.96, 202.38, 267.67, 199.7, 277.62, 198.94, 284.89, 194.34, 287.95, 190.52, 269.97, 195.49, 267.29, 197.02, 263.84, 198.17, 262.31, 193.2, 259.64, 193.2, 271.12, 190.9, 287.19, 187.07, 289.48, 181.33, 287.57, 177.51, 282.98, 166.79, 282.21, 161.05, 286.42, 156.08, 298.29, 150.34]], "area": 1733.0612500000002, "iscrowd": 0, "image_id": 255604, "bbox": [256.96, 149.57, 60.08, 116.33], "category_id": 1, "id": 205876}, {"segmentation": [[135.38, 401.13, 139.13, 371.13, 149.44, 328.95, 120.38, 325.21, 113.81, 306.45, 125.06, 276.45, 135.38, 253.95, 147.56, 238.96, 128.82, 217.4, 126.94, 198.65, 129.76, 179.9, 144.75, 167.72, 171.0, 163.02, 188.81, 166.78, 193.5, 183.65, 204.74, 196.77, 204.74, 214.58, 196.31, 228.65, 214.12, 240.84, 230.99, 255.83, 245.99, 284.89, 243.18, 304.58, 229.12, 324.27, 241.31, 355.2, 239.43, 383.32, 249.74, 411.44, 260.99, 463.94, 265.68, 490.19, 250.68, 469.57, 243.18, 439.56, 233.81, 422.69, 216.93, 413.32, 196.31, 410.5, 206.62, 396.45, 206.62, 382.38, 190.69, 368.32, 163.5, 369.26, 156.94, 388.94, 162.57, 406.76, 133.5, 405.82]], "area": 22124.835049999998, "iscrowd": 0, "image_id": 260969, "bbox": [113.81, 163.02, 151.87, 327.17], "category_id": 1, "id": 207086}, {"segmentation": [[5.51, 107.49, 12.1, 110.78, 14.73, 118.02, 14.07, 125.93, 42.38, 142.39, 48.31, 150.95, 42.38, 150.29, 11.44, 148.97, 10.78, 152.92, 44.36, 159.51, 45.68, 160.82, 2.22, 160.82, 1.56, 148.97, 0.24, 107.49]], "area": 1252.10335, "iscrowd": 0, "image_id": 64492, "bbox": [0.24, 107.49, 48.07, 53.33], "category_id": 1, "id": 207924}, {"segmentation": [[223.93, 186.0, 228.26, 164.33, 231.15, 149.89, 252.82, 136.88, 264.38, 134.0, 271.6, 132.55, 261.49, 122.44, 260.05, 120.99, 267.27, 105.1, 288.94, 99.32, 293.27, 99.32, 297.61, 96.43, 309.16, 92.1, 323.61, 86.32, 329.39, 81.99, 338.06, 74.76, 338.06, 100.77, 338.06, 113.77, 333.72, 119.55, 333.72, 132.55, 358.28, 134.0, 368.4, 139.77, 379.95, 148.44, 381.4, 165.78, 384.29, 186.0, 387.18, 209.12, 387.18, 229.35, 387.18, 243.79, 381.4, 252.46, 359.73, 249.57, 353.95, 258.24, 353.79, 293.31, 339.5, 329.03, 338.06, 336.25, 336.61, 344.92, 316.39, 344.92, 293.27, 339.14, 260.05, 337.7, 238.37, 343.48, 232.6, 349.26, 216.86, 325.77, 224.64, 284.24, 244.15, 227.9, 247.04, 212.01, 229.71, 227.9, 229.71, 229.35, 200.81, 238.01, 174.81, 229.35, 167.58, 209.12, 166.14, 201.9, 166.14, 197.56, 177.7, 193.23, 187.81, 199.01, 200.81, 199.01, 208.04, 194.67, 213.81, 184.56]], "area": 33983.8357, "iscrowd": 0, "image_id": 203655, "bbox": [166.14, 74.76, 221.04, 274.5], "category_id": 1, "id": 208028}, {"segmentation": [[13.46, 1.44, 26.93, 29.33, 29.81, 57.22, 42.32, 113.96, 62.51, 132.24, 89.44, 131.27, 102.9, 129.35, 102.9, 143.78, 86.55, 153.39, 57.7, 161.09, 34.62, 163.01, 27.89, 129.35, 2.89, 79.34, 1.92, 1.44]], "area": 5130.70725, "iscrowd": 0, "image_id": 440698, "bbox": [1.92, 1.44, 100.98, 161.57], "category_id": 1, "id": 208603}, {"segmentation": [[330.47, 173.02, 330.47, 177.41, 330.47, 180.86, 330.47, 185.88, 330.47, 193.09, 327.96, 195.29, 323.25, 194.66, 318.55, 198.42, 316.35, 202.81, 311.34, 208.46, 309.14, 207.52, 305.06, 201.56, 301.93, 198.11, 299.42, 196.54, 293.46, 196.54, 288.44, 198.42, 273.08, 216.3, 268.38, 219.74, 289.39, 219.43, 294.72, 209.08, 298.79, 214.1, 305.06, 216.3, 317.61, 213.16, 339.87, 212.22, 346.46, 213.16, 349.28, 199.05, 344.58, 195.91, 343.64, 193.09, 347.71, 186.5, 347.4, 176.47, 344.58, 170.2, 339.56, 167.06, 334.86, 167.69, 330.78, 171.14, 329.52, 172.71]], "area": 1531.318349999999, "iscrowd": 0, "image_id": 240762, "bbox": [268.38, 167.06, 80.9, 52.68], "category_id": 1, "id": 208637}, {"segmentation": [[142.33, 220.12, 133.23, 220.12, 132.99, 215.69, 133.46, 208.22, 131.83, 199.12, 130.66, 186.06, 131.13, 147.09, 129.26, 134.49, 128.33, 121.42, 128.79, 112.09, 119.46, 113.72, 118.53, 105.09, 127.86, 80.59, 140.23, 72.66, 145.36, 79.19, 153.81, 86.92, 171.71, 93.42, 175.94, 100.91, 177.9, 107.42, 163.25, 119.13, 160.32, 138.66, 159.02, 152.98, 153.49, 163.72, 151.86, 148.75, 148.61, 162.74, 146.0, 175.11, 145.68, 181.94, 142.1, 189.75, 144.7, 197.56, 145.35, 209.6, 141.77, 216.11, 143.07, 222.62]], "area": 3815.3326, "iscrowd": 0, "image_id": 577869, "bbox": [118.53, 72.66, 59.37, 149.96], "category_id": 1, "id": 208741}, {"segmentation": [[344.17, 302.91, 350.19, 296.53, 351.61, 285.18, 364.02, 285.54, 363.66, 294.4, 362.95, 296.17, 363.31, 299.72, 369.69, 302.55, 373.94, 311.42, 370.4, 311.42, 364.37, 309.29, 357.64, 308.22, 353.38, 308.22]], "area": 401.2671500000002, "iscrowd": 0, "image_id": 336675, "bbox": [344.17, 285.18, 29.77, 26.24], "category_id": 1, "id": 209359}, {"segmentation": [[5.74, 234.77, 0.0, 232.85, 0.0, 232.85, 0.0, 427.22, 10.53, 426.26, 9.57, 415.73, 8.62, 351.58, 9.57, 341.05, 24.89, 325.73, 26.81, 274.98, 26.81, 244.34, 9.57, 232.85]], "area": 3387.2209, "iscrowd": 0, "image_id": 336675, "bbox": [0.0, 232.85, 26.81, 194.37], "category_id": 1, "id": 209424}, {"segmentation": [[501.25, 284.02, 500.32, 283.86, 499.45, 283.64, 498.41, 283.64, 497.81, 283.91, 497.54, 283.64, 498.68, 282.65, 499.07, 282.11, 498.57, 280.58, 498.41, 279.05, 498.52, 277.41, 499.78, 276.48, 501.31, 276.26, 503.28, 276.64, 504.1, 278.17, 504.04, 279.92, 504.15, 281.78, 503.82, 282.65, 502.95, 282.76, 502.68, 284.02, 502.07, 284.79]], "area": 38.993199999999995, "iscrowd": 0, "image_id": 173163, "bbox": [497.54, 276.26, 6.61, 8.53], "category_id": 1, "id": 209872}, {"segmentation": [[378.56, 118.84, 384.08, 114.63, 386.98, 102.52, 391.45, 101.73, 393.82, 102.0, 396.72, 103.05, 399.88, 108.84, 395.4, 118.31, 393.56, 120.16]], "area": 231.43619999999999, "iscrowd": 0, "image_id": 548198, "bbox": [378.56, 101.73, 21.32, 18.43], "category_id": 1, "id": 210506}, {"segmentation": [[107.49, 274.53, 107.33, 269.55, 109.15, 268.56, 108.82, 266.4, 109.65, 263.58, 111.64, 264.24, 112.31, 265.07, 112.81, 267.56, 115.3, 270.05, 116.79, 272.04, 114.8, 275.36, 114.8, 276.86, 107.99, 277.69, 107.66, 275.36]], "area": 84.23390000000006, "iscrowd": 0, "image_id": 146049, "bbox": [107.33, 263.58, 9.46, 14.11], "category_id": 1, "id": 210588}, {"segmentation": [[139.25, 513.6, 130.71, 503.16, 129.76, 496.52, 129.76, 494.62, 133.56, 485.13, 135.45, 477.54, 139.25, 469.0, 143.99, 461.41, 152.53, 454.77, 164.87, 446.23, 180.05, 435.79, 182.9, 433.9, 189.54, 433.9, 199.03, 430.1, 204.72, 426.3, 211.36, 423.46, 228.44, 416.82, 236.03, 414.92, 242.68, 413.02, 248.37, 409.22, 257.86, 403.53, 269.24, 403.53, 283.48, 402.58, 285.37, 393.09, 287.27, 387.4, 289.17, 375.07, 289.17, 367.48, 292.02, 363.68, 294.86, 357.04, 296.76, 349.45, 296.76, 344.7, 295.81, 334.26, 293.91, 328.57, 288.22, 320.03, 280.63, 317.19, 272.09, 311.49, 277.78, 307.7, 283.48, 304.85, 287.27, 301.05, 292.02, 298.21, 301.5, 294.41, 309.1, 290.62, 315.74, 286.82, 319.53, 283.98, 324.28, 283.98, 329.97, 283.98, 331.87, 283.03, 334.71, 283.03, 337.56, 279.23, 337.56, 274.49, 336.61, 272.59, 330.92, 267.84, 329.02, 266.9, 325.23, 265.95, 316.69, 265.95, 309.1, 267.84, 303.4, 272.59, 293.91, 277.33, 286.32, 281.13, 278.73, 284.92, 278.73, 282.08, 282.53, 273.54, 285.37, 267.84, 288.22, 263.1, 288.22, 261.2, 289.17, 257.41, 294.86, 257.41, 302.45, 260.25, 305.3, 261.2, 315.74, 265.0, 320.48, 264.05, 326.17, 263.1, 331.87, 261.2, 331.87, 253.61, 325.23, 249.82, 317.63, 247.92, 308.15, 246.02, 304.35, 246.02, 299.61, 245.07, 291.07, 243.17, 280.63, 246.02, 275.89, 255.51, 271.14, 262.15, 269.24, 266.9, 263.55, 269.74, 260.7, 257.41, 260.7, 253.61, 261.65, 245.07, 270.19, 240.33, 273.99, 242.23, 283.48, 242.23, 287.27, 237.48, 291.07, 236.53, 296.76, 235.58, 296.76, 232.74, 296.76, 228.94, 296.76, 221.35, 299.61, 211.86, 303.4, 203.32, 304.35, 191.94, 304.35, 186.24, 289.17, 172.01, 275.89, 168.11, 267.35, 170.0, 260.7, 172.85, 255.96, 177.59, 248.37, 187.08, 245.52, 190.88, 244.57, 195.62, 244.57, 199.42, 239.83, 204.16, 236.98, 205.11, 234.14, 205.11, 220.85, 207.01, 211.36, 209.86, 209.46, 210.81, 205.67, 215.55, 202.82, 217.45, 201.87, 221.24, 197.13, 226.94, 190.49, 234.53, 186.69, 240.22, 179.1, 246.86, 175.31, 250.66, 170.56, 256.35, 167.72, 260.15, 159.18, 269.63, 155.38, 272.48, 149.69, 274.38, 132.61, 277.23, 129.76, 280.07, 125.97, 288.61, 120.27, 298.1, 114.58, 307.59, 111.73, 324.67, 111.73, 327.51, 111.73, 337.95, 111.73, 340.8, 107.94, 357.53, 111.73, 368.91, 120.27, 378.4, 127.86, 385.04, 133.56, 389.79, 139.25, 394.53, 140.2, 395.48, 137.35, 399.28, 117.43, 394.53, 114.58, 411.86, 107.94, 420.39, 106.04, 425.14, 106.99, 429.88, 106.04, 433.68, 100.35, 439.37, 95.6, 442.22, 91.81, 445.07, 90.86, 449.81, 94.65, 455.5, 97.5, 461.2, 97.5, 466.89, 97.5, 476.38, 97.5, 480.17, 99.4, 492.51, 100.35, 496.3, 101.29, 500.1, 101.29, 504.84, 101.29, 507.69, 103.19, 511.49, 106.99, 519.08, 109.83, 524.77, 113.63, 530.46, 123.12, 534.26, 141.15, 526.88, 143.04, 520.24, 136.4, 514.55]], "area": 40009.08360000001, "iscrowd": 0, "image_id": 264244, "bbox": [90.86, 168.11, 246.7, 366.15], "category_id": 1, "id": 210952}, {"segmentation": [[122.69, 352.05, 179.73, 300.39, 206.64, 261.65, 219.55, 246.58, 226.01, 239.05, 217.4, 216.45, 216.32, 214.3, 222.78, 202.46, 228.16, 189.54, 237.85, 165.87, 232.47, 146.49, 213.09, 138.96, 188.34, 136.81, 175.43, 144.34, 165.74, 160.48, 162.51, 175.55, 162.51, 189.54, 158.21, 198.15, 149.6, 208.91, 143.14, 219.68, 129.15, 242.28, 122.69, 301.47, 119.46, 340.22, 125.92, 347.75]], "area": 13192.454599999997, "iscrowd": 0, "image_id": 47387, "bbox": [119.46, 136.81, 118.39, 215.24], "category_id": 1, "id": 211154}, {"segmentation": [[536.09, 305.26, 510.2, 293.39, 492.94, 285.84, 486.47, 273.98, 486.47, 256.72, 477.84, 239.46, 470.29, 212.49, 458.87, 192.67, 454.05, 184.84, 471.53, 187.25, 475.14, 180.62, 481.17, 175.8, 485.39, 168.57, 490.81, 167.36, 487.19, 155.31, 488.4, 146.87, 491.41, 137.23, 489.0, 128.19, 489.6, 119.15, 483.58, 115.54, 476.95, 112.53, 472.73, 108.91, 463.69, 105.9, 447.42, 105.9, 438.99, 111.92, 430.55, 119.15, 429.35, 125.18, 422.12, 133.62, 426.33, 152.9, 420.31, 163.14, 399.82, 178.81, 390.18, 202.91, 387.17, 208.34, 385.36, 224.61, 385.96, 237.86, 385.96, 251.12, 384.15, 261.36, 414.88, 247.5, 415.49, 233.04, 411.87, 217.98, 410.67, 203.52, 416.09, 199.9, 425.13, 203.52, 435.97, 211.35, 434.77, 220.39, 442.6, 226.41, 457.07, 229.43, 458.27, 237.86, 450.44, 245.7, 443.81, 250.52, 443.21, 258.95, 443.81, 270.4, 440.8, 283.06, 427.54, 304.75, 419.71, 322.83, 417.29, 332.47, 408.26, 342.11, 395.6, 340.3, 398.01, 349.94, 404.64, 369.83, 416.69, 373.44, 532.99, 307.76]], "area": 16662.768050000002, "iscrowd": 0, "image_id": 537924, "bbox": [384.15, 105.9, 151.94, 267.54], "category_id": 1, "id": 211160}, {"segmentation": [[64.92, 263.88, 65.02, 261.36, 65.55, 260.52, 67.86, 260.52, 69.02, 261.57, 68.93, 264.28, 70.11, 266.98, 71.3, 269.25, 71.63, 271.24, 71.79, 272.92, 71.74, 276.16, 67.07, 276.02, 65.28, 275.94, 65.28, 270.1, 65.67, 269.04, 65.18, 267.49, 65.38, 265.94]], "area": 81.18040000000003, "iscrowd": 0, "image_id": 146049, "bbox": [64.92, 260.52, 6.87, 15.64], "category_id": 1, "id": 211464}, {"segmentation": [[226.76, 209.74, 213.32, 209.74, 201.55, 214.79, 193.15, 215.63, 183.9, 221.51, 177.18, 228.23, 179.7, 255.97, 175.5, 279.5, 178.02, 297.15, 178.02, 320.68, 191.46, 367.75, 194.83, 387.92, 194.83, 396.32, 208.27, 418.18, 217.52, 434.14, 221.72, 449.27, 218.36, 470.28, 218.36, 477.85, 268.79, 476.17, 282.23, 452.63, 283.07, 437.51, 287.28, 420.7, 288.12, 408.09, 288.12, 387.08, 288.12, 369.43, 288.96, 355.14, 288.12, 350.94, 320.05, 332.45, 327.62, 312.28, 326.78, 290.43, 318.37, 277.82, 310.81, 267.74, 305.76, 262.69, 297.36, 260.17, 288.96, 263.53, 285.59, 268.58, 286.43, 275.3, 291.48, 282.86, 292.32, 296.31, 284.75, 297.15, 272.99, 297.15, 270.47, 288.75, 271.31, 283.7, 265.42, 276.14, 259.54, 272.78, 257.02, 258.49, 257.02, 241.68, 251.14, 225.71, 236.01, 218.15, 226.76, 212.27]], "area": 25015.156900000013, "iscrowd": 0, "image_id": 578519, "bbox": [175.5, 209.74, 152.12, 268.11], "category_id": 1, "id": 212070}, {"segmentation": [[291.96, 618.43, 230.11, 611.24, 228.67, 589.66, 205.66, 491.87, 171.15, 425.71, 168.27, 418.52, 140.94, 451.6, 142.38, 476.04, 113.62, 468.85, 96.36, 454.47, 123.69, 389.75, 89.17, 375.37, 87.73, 353.8, 60.4, 319.28, 90.61, 270.38, 125.12, 224.36, 138.07, 225.8, 153.89, 220.04, 162.52, 209.98, 159.64, 172.58, 168.27, 168.27, 171.15, 156.76, 176.9, 148.13, 181.21, 145.26, 186.97, 143.82, 199.91, 146.7, 201.35, 146.7, 224.36, 152.45, 225.8, 152.45, 235.87, 158.2, 237.3, 161.08, 243.06, 166.83, 247.37, 181.21, 237.3, 189.84, 234.43, 207.1, 247.37, 208.54, 241.62, 198.47, 258.88, 168.27, 270.38, 158.2, 277.57, 155.33, 284.76, 153.89, 297.71, 156.76, 310.65, 159.64, 326.47, 165.39, 326.47, 168.27, 330.79, 175.46, 333.66, 179.78, 333.66, 186.97, 332.22, 192.72, 327.91, 197.03, 322.16, 207.1, 320.72, 218.61, 320.72, 230.11, 320.72, 238.74, 319.28, 247.37, 314.97, 256.0, 313.53, 263.19, 317.84, 274.7, 322.16, 276.13, 326.47, 280.45, 337.98, 287.64, 343.73, 294.83, 349.48, 299.15, 353.8, 303.46, 365.3, 312.09, 375.37, 320.72, 381.12, 332.22, 381.12, 335.1, 372.49, 340.85, 372.49, 342.29, 371.06, 345.17, 371.06, 346.61, 354.82, 346.68, 313.79, 301.28, 319.9, 315.25, 357.44, 355.41, 378.4, 357.16, 378.4, 360.65, 374.9, 365.89, 360.06, 370.26, 356.57, 375.49, 351.33, 378.99, 345.22, 379.86, 335.61, 378.11, 327.76, 370.26, 309.42, 354.54, 302.43, 344.93, 299.81, 338.82, 295.45, 338.82, 290.21, 340.57, 284.97, 346.68, 279.73, 351.05, 276.24, 356.29, 266.64, 358.03, 257.03, 360.65, 251.79, 361.52, 239.57, 368.51, 237.82, 372.87, 236.95, 381.61, 236.95, 388.59, 238.7, 401.69, 240.44, 406.05, 240.44, 419.15, 242.19, 424.39, 245.68, 438.36, 266.07, 589.66, 289.08, 608.36, 296.27, 616.99]], "area": 65861.77614999996, "iscrowd": 0, "image_id": 178407, "bbox": [60.4, 143.82, 320.72, 474.61], "category_id": 1, "id": 212119}, {"segmentation": [[372.72, 318.15, 359.81, 320.65, 360.22, 309.4, 361.89, 283.98, 360.64, 278.98, 356.06, 289.4, 358.97, 302.32, 350.64, 323.15, 343.14, 319.82, 347.3, 305.65, 343.14, 286.48, 343.14, 279.4, 348.14, 264.81, 348.55, 244.4, 341.47, 250.23, 338.14, 240.65, 348.55, 222.31, 357.72, 217.73, 354.81, 203.98, 362.31, 198.98, 369.81, 201.06, 373.14, 213.56, 370.64, 216.9, 381.47, 226.06, 390.22, 268.56, 384.39, 268.15, 376.06, 245.23, 375.22, 267.31, 378.97, 278.57, 371.47, 294.4]], "area": 3462.0368000000017, "iscrowd": 0, "image_id": 579000, "bbox": [338.14, 198.98, 52.08, 124.17], "category_id": 1, "id": 212255}, {"segmentation": [[391.32, 264.68, 393.97, 254.33, 396.86, 250.96, 397.58, 247.34, 399.5, 246.62, 402.88, 247.1, 404.32, 250.23, 405.28, 253.36, 408.17, 256.73, 407.93, 274.07, 407.93, 276.96, 406.01, 279.37, 405.04, 284.91, 405.52, 290.21, 406.49, 294.06, 406.01, 298.88, 402.88, 300.08, 401.43, 299.12, 401.91, 296.23, 400.23, 291.17, 398.06, 286.11, 396.86, 280.82, 394.21, 273.59, 391.8, 268.78]], "area": 554.6755999999997, "iscrowd": 0, "image_id": 548253, "bbox": [391.32, 246.62, 16.85, 53.46], "category_id": 1, "id": 212802}, {"segmentation": [[383.06, 292.91, 387.14, 289.36, 388.78, 294.27, 390.14, 297.81, 394.23, 304.08, 394.5, 316.07, 393.95, 321.79, 392.32, 323.97, 391.5, 325.88, 391.5, 333.24, 393.41, 338.69, 390.69, 339.5, 388.78, 339.5, 388.23, 333.51, 387.42, 328.33, 386.87, 325.06, 383.87, 324.79, 383.6, 334.33, 384.15, 338.41, 382.78, 338.96, 382.24, 338.41, 381.15, 318.25, 380.6, 306.8, 381.69, 302.17, 382.24, 299.72, 382.78, 297.54, 383.33, 296.72, 383.6, 293.72]], "area": 458.43285000000014, "iscrowd": 0, "image_id": 449573, "bbox": [380.6, 289.36, 13.9, 50.14], "category_id": 1, "id": 212993}, {"segmentation": [[291.29, 208.54, 265.91, 219.57, 271.43, 208.54, 285.77, 191.99, 296.81, 179.85, 308.94, 146.75, 322.18, 134.61, 324.39, 111.44, 327.7, 65.1, 349.77, 51.86, 387.28, 90.48, 387.28, 100.41, 422.59, 120.27, 438.04, 153.37, 451.28, 172.13, 438.04, 185.37, 423.69, 185.37, 409.35, 174.33, 385.08, 158.89, 359.7, 157.78, 319.98, 173.23, 308.94, 196.4, 325.49, 220.67, 301.22, 220.67]], "area": 11111.83555, "iscrowd": 0, "image_id": 56699, "bbox": [265.91, 51.86, 185.37, 168.81], "category_id": 1, "id": 213116}, {"segmentation": [[181.21, 190.92, 141.3, 257.8, 140.22, 321.44, 141.3, 349.48, 135.91, 404.49, 128.36, 473.53, 250.25, 473.53, 350.56, 420.67, 367.82, 402.34, 336.54, 379.69, 334.38, 367.82, 389.39, 337.62, 395.87, 334.38, 415.28, 333.3, 441.17, 289.08, 449.8, 269.66, 454.11, 247.01, 456.27, 232.99, 449.8, 225.44, 439.01, 197.39, 414.2, 200.63, 415.28, 237.3, 414.2, 251.33, 378.61, 266.43, 355.96, 281.53, 314.97, 310.65, 312.81, 266.43, 314.97, 230.83, 313.89, 217.89, 306.34, 209.26, 304.18, 189.84, 304.18, 175.82, 334.38, 189.84, 361.35, 169.35, 360.27, 138.07, 357.03, 111.1, 332.22, 49.62, 289.08, 11.87, 252.4, 0.0, 220.04, 37.75, 201.71, 106.79, 196.31, 115.42, 179.06, 190.92, 179.06, 192.0]], "area": 85374.7973, "iscrowd": 0, "image_id": 537924, "bbox": [128.36, 0.0, 327.91, 473.53], "category_id": 1, "id": 213510}, {"segmentation": [[582.45, 255.22, 583.63, 246.97, 580.88, 220.65, 581.27, 212.8, 584.41, 203.37, 589.52, 196.7, 595.41, 189.63, 596.2, 182.56, 591.49, 193.16, 584.81, 191.98, 578.13, 180.98, 581.27, 176.27, 586.77, 179.81, 589.13, 180.98, 596.2, 166.06, 600.91, 158.99, 598.55, 156.63, 596.98, 149.96, 600.13, 142.49, 602.87, 138.17, 606.8, 137.0, 612.3, 140.53, 613.87, 147.6, 613.87, 153.49, 619.76, 157.03, 625.26, 161.35, 631.15, 172.74, 631.54, 181.38, 633.9, 186.09, 628.8, 190.02, 637.44, 202.59, 635.47, 239.51, 625.66, 249.72, 628.8, 228.12, 625.26, 217.12, 626.83, 200.23, 628.01, 191.98, 627.22, 187.66, 621.73, 180.98, 607.98, 179.81, 604.45, 173.52, 601.69, 172.34, 604.45, 187.66, 598.55, 212.41, 593.84, 232.83]], "area": 2553.5053500000026, "iscrowd": 0, "image_id": 338086, "bbox": [578.13, 137.0, 59.31, 118.22], "category_id": 1, "id": 214328}, {"segmentation": [[86.74, 315.35, 72.16, 289.52, 62.99, 285.35, 58.83, 279.1, 38.41, 282.02, 38.41, 269.52, 38.41, 264.52, 40.49, 242.43, 45.49, 236.6, 50.91, 233.68, 54.66, 223.27, 59.66, 220.35, 67.99, 223.27, 70.49, 227.85, 70.49, 232.43, 67.16, 237.43, 67.16, 242.85, 85.08, 256.18, 97.16, 254.93, 97.58, 257.43, 85.49, 267.44, 67.99, 259.52, 67.99, 269.94, 67.58, 275.35, 89.24, 279.1, 88.83, 286.19, 88.41, 297.85, 88.41, 301.6, 88.41, 307.02, 88.41, 309.1, 90.49, 313.69, 96.33, 317.85, 94.24, 322.02, 87.16, 320.35]], "area": 2401.725699999998, "iscrowd": 0, "image_id": 579000, "bbox": [38.41, 220.35, 59.17, 101.67], "category_id": 1, "id": 215023}, {"segmentation": [[414.79, 153.01, 412.96, 151.19, 412.23, 147.16, 412.23, 144.6, 412.23, 141.67, 412.23, 138.02, 414.42, 132.16, 418.81, 131.8, 421.74, 133.26, 423.2, 138.38, 424.3, 143.87, 426.13, 148.26, 430.52, 150.82, 433.81, 151.55, 439.3, 155.94, 440.39, 166.55, 442.22, 173.5, 441.86, 180.09, 440.76, 182.65, 436.74, 183.74, 434.54, 183.38, 434.18, 183.01, 433.81, 190.33, 434.54, 201.67, 434.54, 215.21, 436.37, 224.35, 438.57, 231.67, 441.49, 238.62, 442.59, 241.91, 436.37, 242.64, 431.98, 241.54, 430.15, 237.89, 427.59, 233.86, 427.59, 226.18, 426.86, 218.13, 423.57, 207.52, 421.74, 203.13, 419.91, 199.84, 416.98, 196.91, 414.06, 193.62, 411.86, 190.69, 410.4, 188.5, 409.3, 186.3, 408.2, 184.11, 407.84, 181.91, 408.57, 180.09, 408.57, 177.89, 407.84, 171.67, 407.84, 169.11, 407.84, 164.36, 409.3, 158.87, 412.96, 155.58, 414.79, 154.11]], "area": 2005.1224500000012, "iscrowd": 0, "image_id": 338086, "bbox": [407.84, 131.8, 34.75, 110.84], "category_id": 1, "id": 215164}, {"segmentation": [[162.36, 420.22, 150.9, 335.22, 154.72, 281.74, 166.18, 238.76, 190.06, 176.69, 214.89, 125.11, 243.54, 100.28, 288.43, 94.55, 321.85, 117.47, 339.04, 157.58, 331.4, 216.8, 319.94, 265.51, 348.6, 279.83, 356.24, 286.52, 356.24, 319.94, 353.37, 352.42, 373.43, 360.06, 383.93, 385.84, 379.16, 402.08, 359.1, 420.22]], "area": 54871.129450000015, "iscrowd": 0, "image_id": 443604, "bbox": [150.9, 94.55, 233.03, 325.67], "category_id": 1, "id": 215864}, {"segmentation": [[503.25, 479.26, 505.8, 481.0, 462.94, 480.79, 455.29, 480.79, 450.7, 471.1, 456.31, 466.51, 456.82, 464.47, 448.66, 462.43, 450.19, 383.36, 445.09, 335.91, 439.99, 301.95, 439.99, 284.61, 440.5, 273.39, 436.42, 269.31, 435.91, 265.22, 439.48, 264.57, 447.13, 249.27, 446.11, 243.37, 450.7, 234.19, 445.09, 208.17, 444.58, 205.11, 441.52, 195.13, 449.17, 173.19, 470.6, 159.42, 476.72, 158.62, 472.64, 146.89, 468.56, 133.62, 467.02, 124.95, 470.09, 113.73, 476.72, 107.61, 488.45, 104.54, 505.29, 105.57, 524.67, 120.36, 522.12, 129.03, 524.67, 143.83, 518.55, 147.4, 517.02, 153.52, 513.45, 158.62, 513.96, 161.17, 518.55, 163.21, 526.71, 167.29, 529.77, 171.37, 530.79, 176.99, 532.83, 185.66, 538.96, 202.49, 538.96, 212.19, 540.49, 204.02, 547.12, 205.55, 551.2, 209.13, 552.73, 219.84, 550.69, 225.45, 545.08, 231.06, 545.08, 243.82, 535.38, 248.92, 527.73, 249.43, 521.61, 242.8, 522.12, 260.14, 523.65, 270.34, 526.2, 282.59, 522.12, 325.87, 516.51, 394.01, 512.43, 447.49, 510.39, 477.08]], "area": 27427.946999999996, "iscrowd": 0, "image_id": 222572, "bbox": [435.91, 104.54, 116.82, 376.46], "category_id": 1, "id": 215968}, {"segmentation": [[397.32, 214.81, 402.72, 205.25, 395.66, 180.73, 396.07, 167.42, 399.4, 160.36, 398.98, 148.3, 404.39, 137.49, 413.95, 132.09, 416.44, 120.45, 422.26, 118.78, 426.0, 122.53, 426.84, 127.93, 425.17, 134.58, 436.81, 144.56, 438.89, 157.45, 434.32, 165.34, 438.48, 181.56, 436.81, 196.52, 435.98, 204.42, 440.55, 213.98, 435.15, 214.81, 431.82, 190.7, 428.91, 186.13, 427.67, 169.92, 421.85, 165.34, 423.09, 185.3, 418.94, 180.73, 415.2, 186.96, 408.54, 205.25, 407.3, 210.24, 402.31, 219.8]], "area": 2398.1624, "iscrowd": 0, "image_id": 181837, "bbox": [395.66, 118.78, 44.89, 101.02], "category_id": 1, "id": 216088}, {"segmentation": [[453.81, 94.94, 455.66, 87.55, 463.04, 88.94, 475.51, 73.24, 481.05, 65.39, 482.9, 56.15, 485.67, 49.23, 486.13, 45.07, 481.98, 40.45, 483.82, 33.53, 483.82, 29.83, 485.67, 26.14, 487.52, 23.37, 493.52, 23.37, 499.52, 26.14, 501.83, 33.07, 499.98, 37.22, 501.83, 41.38, 503.68, 43.69, 511.53, 51.07, 511.53, 58.46, 508.3, 63.54, 509.22, 72.31, 508.3, 80.63, 507.83, 88.01, 512.91, 92.17, 513.38, 96.79, 511.99, 99.56, 499.52, 99.09, 490.29, 96.79, 482.9, 102.33, 478.74, 104.64, 474.13, 101.87, 473.2, 97.71, 477.36, 93.55, 479.67, 79.24, 472.28, 91.71, 460.27, 94.94, 457.97, 98.17, 456.12, 96.32, 454.27, 100.02], [479.21, 131.42, 508.3, 131.42, 508.76, 102.79, 489.36, 100.94, 478.28, 103.25, 479.67, 127.72], [488.9, 171.13, 501.37, 171.13, 496.75, 152.2, 499.06, 142.96, 503.22, 156.81, 504.14, 167.89, 502.29, 172.51, 511.07, 172.97, 511.53, 149.42, 508.3, 136.96, 495.83, 134.65, 481.98, 135.57], [479.21, 187.75, 493.06, 188.67, 506.45, 190.06, 513.38, 184.98, 508.76, 175.74, 491.67, 174.82, 486.13, 179.9, 481.05, 184.52]], "area": 4284.626999999999, "iscrowd": 0, "image_id": 56699, "bbox": [453.81, 23.37, 59.57, 166.69], "category_id": 1, "id": 216697}, {"segmentation": [[72.25, 277.41, 76.82, 254.2, 82.8, 235.56, 94.41, 214.1, 97.93, 208.83, 89.13, 208.48, 86.67, 210.59, 84.56, 214.1, 81.75, 215.51, 85.97, 217.27, 84.21, 222.9, 85.62, 225.71, 85.62, 228.88, 78.93, 231.34, 74.36, 238.02, 65.57, 269.68, 64.86, 282.69, 69.08, 286.21, 70.49, 284.45, 70.14, 277.77, 70.84, 276.01]], "area": 521.4940499999999, "iscrowd": 0, "image_id": 357428, "bbox": [64.86, 208.48, 33.07, 77.73], "category_id": 1, "id": 216750}, {"segmentation": [[441.31, 536.67, 437.64, 495.1, 457.2, 473.1, 457.2, 473.1, 459.65, 409.53, 449.87, 347.18, 448.65, 288.5, 448.65, 281.17, 458.43, 253.05, 466.98, 206.6, 451.09, 160.14, 451.09, 160.14, 414.42, 145.47, 409.53, 133.25, 437.64, 110.02, 437.64, 110.02, 426.64, 74.57, 409.53, 29.34, 363.07, 35.45, 342.29, 62.35, 330.07, 94.13, 330.07, 94.13, 353.29, 127.14, 327.62, 132.03, 288.5, 118.58, 265.28, 124.69, 265.28, 124.69, 265.28, 138.14, 266.5, 163.81, 239.6, 212.71, 239.6, 212.71, 234.71, 244.49, 234.71, 244.49, 287.28, 259.16, 308.06, 231.05, 301.95, 277.5, 303.17, 295.84, 281.17, 314.18, 281.17, 314.18, 282.39, 350.85, 290.95, 413.2, 290.95, 413.2, 310.51, 502.44, 310.51, 502.44, 320.29, 531.78]], "area": 76261.23095, "iscrowd": 0, "image_id": 34356, "bbox": [234.71, 29.34, 232.27, 507.33], "category_id": 1, "id": 216784}, {"segmentation": [[72.64, 75.81, 78.39, 50.69, 85.41, 38.34, 97.33, 32.59, 106.28, 30.46, 115.22, 31.74, 122.24, 37.92, 128.2, 48.99, 131.18, 64.53, 130.54, 91.35, 135.01, 95.82, 133.31, 100.72, 138.21, 109.66, 137.78, 114.98, 137.57, 116.89, 140.76, 121.15, 140.98, 128.39, 139.27, 131.58, 138.85, 131.8, 140.98, 161.17, 143.74, 167.56, 143.74, 185.23, 140.34, 191.62, 131.82, 193.53, 125.43, 193.32, 122.45, 197.58, 113.09, 198.43, 114.79, 210.35, 116.49, 221.85, 116.71, 227.81, 120.54, 240.15, 122.67, 257.82, 121.82, 296.99, 116.71, 329.78, 115.0, 341.7, 115.22, 364.48, 113.73, 399.39, 106.28, 437.07, 106.28, 448.35, 111.17, 459.63, 123.73, 470.7, 137.57, 476.24, 139.49, 481.99, 131.18, 487.52, 112.66, 485.18, 102.44, 476.24, 92.86, 473.26, 79.24, 467.72, 84.14, 454.52, 89.46, 447.93, 87.75, 405.35, 87.75, 405.14, 90.74, 371.08, 89.25, 365.75, 89.25, 345.96, 90.1, 341.06, 90.74, 340.21, 85.63, 311.68, 83.28, 298.06, 68.17, 298.7, 64.98, 302.1, 65.4, 318.28, 66.89, 329.35, 64.98, 335.52, 62.21, 346.59, 62.21, 346.81, 63.27, 359.58, 61.36, 371.08, 61.36, 386.83, 63.06, 391.94, 66.04, 402.79, 66.04, 406.84, 66.89, 424.51, 66.68, 435.79, 59.87, 442.6, 48.58, 438.35, 45.82, 424.3, 50.71, 403.22, 49.65, 395.34, 50.29, 392.79, 50.29, 392.79, 45.39, 373.84, 39.86, 357.24, 39.86, 341.06, 40.28, 315.51, 34.96, 296.78, 24.1, 293.16, 19.63, 291.67, 20.06, 290.18, 25.38, 274.64, 64.98, 279.11, 66.68, 275.28, 66.47, 260.16, 69.66, 240.37, 74.98, 213.54, 72.64, 210.56, 46.46, 200.98, 48.8, 183.74, 40.71, 186.29, 27.51, 188.42, 21.97, 185.87, 19.63, 183.74, 21.76, 169.05, 27.94, 136.91, 32.41, 110.3, 39.86, 102.63, 47.95, 98.8, 69.02, 97.52, 72.64, 97.95]], "area": 28416.289150000008, "iscrowd": 0, "image_id": 445214, "bbox": [19.63, 30.46, 124.11, 457.06], "category_id": 1, "id": 217388}, {"segmentation": [[0.0, 44.13, 0.0, 193.39, 9.66, 197.69, 12.89, 200.91, 22.55, 196.61, 33.29, 194.47, 32.21, 186.95, 38.66, 185.88, 35.44, 181.58, 25.77, 140.77, 25.77, 99.97, 25.77, 74.2, 20.4, 59.16, 0.0, 41.98]], "area": 4009.3141, "iscrowd": 0, "image_id": 382979, "bbox": [0.0, 41.98, 38.66, 158.93], "category_id": 1, "id": 218397}, {"segmentation": [[70.7, 341.64, 71.15, 351.57, 69.79, 360.14, 69.79, 368.72, 69.79, 370.53, 64.83, 370.53, 63.93, 376.85, 63.02, 387.23, 62.12, 393.1, 60.31, 397.61, 58.51, 404.38, 55.8, 413.41, 56.25, 417.02, 60.77, 421.53, 64.83, 426.5, 64.83, 429.21, 60.31, 431.92, 54.9, 432.37, 50.38, 431.92, 44.97, 431.92, 40.9, 430.56, 41.36, 421.53, 44.06, 389.03, 44.51, 382.71, 39.1, 370.98, 38.65, 363.3, 38.65, 358.34, 39.1, 353.82, 39.1, 349.31, 38.65, 345.7, 38.65, 339.83, 42.26, 329.9, 43.61, 324.48, 45.42, 318.62, 47.67, 314.1, 49.48, 311.39, 52.19, 308.23, 53.54, 306.43, 56.7, 303.27, 58.06, 302.37, 63.02, 302.82, 65.73, 304.17, 68.89, 305.07, 69.34, 308.69, 67.99, 312.75, 66.63, 315.0, 67.08, 318.16, 69.34, 319.52, 72.05, 319.07, 73.4, 320.87, 77.02, 319.97, 79.72, 319.97, 77.47, 323.58, 77.02, 325.84, 77.02, 329.0, 77.92, 332.16, 76.56, 335.32, 73.4, 339.38]], "area": 3118.3209, "iscrowd": 0, "image_id": 91442, "bbox": [38.65, 302.37, 41.07, 130.0], "category_id": 1, "id": 218407}, {"segmentation": [[230.11, 8.63, 256.0, 50.34, 266.07, 61.84, 240.18, 96.36, 238.74, 214.29, 232.99, 225.8, 198.47, 136.63, 185.53, 136.63, 172.58, 166.83, 152.45, 168.27, 109.3, 57.53, 8.63, 123.69, 4.31, 8.63, 7.19, 4.31, 155.33, 5.75, 230.11, 5.75], [0.0, 230.11, 1.44, 634.25, 2.88, 637.12, 71.91, 635.69, 64.72, 560.9, 221.48, 533.57, 290.52, 509.12, 346.61, 481.8, 329.35, 461.66, 264.63, 476.04, 195.6, 454.47, 149.57, 450.16, 100.67, 437.21, 61.84, 457.35, 40.27, 461.66, 41.71, 415.64, 41.71, 395.51, 23.01, 340.85, 5.75, 244.49]], "area": 66323.31955, "iscrowd": 0, "image_id": 111705, "bbox": [0.0, 4.31, 346.61, 632.81], "category_id": 1, "id": 219052}, {"segmentation": [[316.07, 156.75, 312.49, 158.71, 310.21, 158.71, 306.63, 157.4, 305.66, 156.43, 302.08, 150.57, 294.92, 141.13, 291.34, 131.7, 289.71, 125.84, 286.13, 119.98, 284.18, 117.7, 280.92, 116.73, 278.64, 116.4, 274.41, 116.73, 271.16, 118.35, 266.28, 119.98, 262.37, 120.96, 256.52, 123.23, 260.75, 114.77, 261.4, 112.17, 260.09, 108.26, 259.12, 105.66, 257.17, 102.41, 255.21, 99.8, 254.56, 98.83, 247.4, 106.96, 250.66, 113.15, 252.28, 117.38, 252.94, 122.58, 254.56, 128.44, 258.14, 133.65, 261.72, 136.9, 264.98, 138.85, 268.56, 138.85, 270.83, 139.83, 272.79, 139.83, 276.37, 140.16, 278.97, 141.13, 291.34, 154.8, 302.4, 160.01, 306.96, 162.61, 311.84, 161.31, 316.39, 158.71, 317.7, 156.75], [239.92, 82.23, 239.59, 78.98, 239.27, 78.0, 239.27, 76.37, 239.27, 73.77, 239.27, 73.12, 240.57, 69.21, 240.89, 69.21, 243.17, 67.26, 243.17, 66.93, 244.15, 66.61, 249.03, 66.28, 249.68, 66.28, 251.31, 66.28, 256.19, 69.54, 256.84, 71.16, 258.79, 74.09, 258.79, 75.07, 258.14, 77.02, 257.82, 79.63, 255.86, 82.88, 254.24, 85.48, 253.91, 86.13, 251.31, 85.16, 248.7, 83.86, 242.85, 82.88, 242.52, 82.88]], "area": 1483.3717499999998, "iscrowd": 0, "image_id": 223454, "bbox": [239.27, 66.28, 78.43, 96.33], "category_id": 1, "id": 219185}, {"segmentation": [[338.41, 169.92, 341.86, 148.65, 348.76, 144.05, 357.38, 110.72, 351.63, 63.01, 328.64, 35.42, 298.18, 26.8, 271.74, 33.12, 249.32, 52.09, 235.53, 79.68, 237.25, 110.72, 236.68, 118.76, 239.55, 133.13, 239.55, 154.97, 245.3, 169.34, 255.07, 183.14, 208.52, 198.08, 193.57, 222.79, 184.95, 261.3, 167.71, 338.32, 163.11, 361.31, 165.98, 368.21, 156.21, 386.03, 155.06, 414.19, 84.37, 464.77, 164.26, 427.41, 164.26, 445.23, 175.75, 435.46, 184.38, 394.65, 196.45, 394.07, 186.68, 423.96, 186.1, 427.41, 179.78, 445.23, 220.59, 469.37, 220.59, 446.38, 233.81, 431.43, 256.22, 423.96, 286.68, 429.71, 297.6, 437.18, 271.16, 443.5, 238.98, 464.77, 213.69, 487.76, 230.36, 499.25, 222.31, 521.09, 237.25, 523.39, 244.73, 527.42, 278.64, 516.5, 295.88, 498.1, 313.12, 537.19, 316.57, 546.38, 386.69, 601.56, 425.2, 630.87, 424.05, 640.0, 456.81, 637.77, 448.77, 565.93, 428.65, 514.77, 406.23, 469.94, 405.08, 458.45, 419.45, 449.82, 432.1, 415.91, 434.4, 380.28, 438.99, 355.56, 440.14, 303.84, 433.82, 256.71, 427.5, 243.49, 391.29, 204.4, 352.78, 177.96]], "area": 104657.4261, "iscrowd": 0, "image_id": 306627, "bbox": [84.37, 26.8, 372.44, 613.2], "category_id": 1, "id": 220321}, {"segmentation": [[478.92, 166.39, 512.29, 187.91, 526.28, 197.6, 579.01, 215.89, 626.37, 260.02, 637.13, 298.76, 552.11, 332.13, 540.27, 333.2, 491.84, 249.26, 466.01, 230.96, 471.39, 162.08]], "area": 14984.643549999999, "iscrowd": 0, "image_id": 359098, "bbox": [466.01, 162.08, 171.12, 171.12], "category_id": 1, "id": 221082}, {"segmentation": [[306.92, 117.71, 316.41, 90.07, 327.55, 77.68, 343.23, 71.91, 340.34, 64.07, 346.95, 45.5, 363.86, 38.48, 375.41, 45.91, 380.37, 59.94, 377.07, 72.73, 375.83, 79.75, 391.1, 85.53, 395.64, 105.33, 386.97, 128.85, 375.83, 143.3, 374.18, 122.26, 373.77, 108.23, 345.71, 105.75, 338.69, 102.45, 340.76, 124.73, 351.89, 138.76, 349.01, 142.47, 330.44, 141.24, 308.57, 137.53, 306.92, 120.19]], "area": 5028.6990000000005, "iscrowd": 0, "image_id": 223838, "bbox": [306.92, 38.48, 88.72, 104.82], "category_id": 1, "id": 221356}, {"segmentation": [[470.46, 349.56, 508.35, 353.43, 505.26, 348.01, 493.66, 344.92, 489.79, 333.32, 566.35, 335.64, 570.22, 352.65, 602.7, 337.96, 602.7, 331.77, 587.23, 331.77, 579.5, 331.0, 574.86, 320.95, 585.69, 318.63, 571.77, 300.06, 571.77, 276.86, 557.07, 252.12, 557.85, 248.25, 562.49, 240.51, 560.17, 184.83, 558.62, 168.59, 555.53, 161.63, 558.62, 155.44, 571.77, 122.96, 569.45, 112.91, 564.81, 109.82, 560.17, 107.5, 554.75, 106.72, 551.66, 106.72, 547.79, 107.5, 546.25, 109.04, 543.15, 112.14, 540.83, 113.68, 539.28, 116.78, 536.96, 122.19, 536.96, 126.83, 536.96, 131.47, 536.96, 135.34, 536.19, 139.2, 534.64, 139.98, 533.87, 143.07, 520.72, 151.58, 509.12, 197.98, 501.39, 214.99, 488.24, 247.48, 487.47, 254.44, 502.16, 262.17, 502.16, 271.45, 470.46, 349.56]], "area": 14371.638349999997, "iscrowd": 0, "image_id": 80336, "bbox": [470.46, 106.72, 132.24, 246.71], "category_id": 1, "id": 221534}, {"segmentation": [[248.96, 311.38, 257.71, 309.3, 259.8, 305.13, 260.21, 296.38, 258.13, 292.21, 252.71, 289.3, 256.04, 285.55, 256.04, 282.63, 254.38, 279.29, 251.46, 277.21, 248.13, 276.38, 246.46, 284.29, 247.29, 289.3, 247.71, 291.38, 245.21, 293.46, 248.96, 301.8, 249.79, 306.8, 250.21, 309.72, 254.38, 309.3, 257.29, 308.88]], "area": 315.00210000000015, "iscrowd": 0, "image_id": 332065, "bbox": [245.21, 276.38, 15.0, 35.0], "category_id": 1, "id": 222346}, {"segmentation": [[1.08, 287.19, 24.81, 266.7, 46.38, 225.71, 40.99, 219.24, 35.6, 207.37, 33.44, 200.9, 30.2, 182.56, 38.83, 163.15, 58.25, 158.83, 80.9, 164.22, 94.92, 187.96, 107.87, 206.29, 148.85, 245.12, 139.15, 304.45, 97.08, 266.7, 79.82, 266.7, 64.72, 282.88, 29.12, 299.06, 0.0, 303.37]], "area": 11223.933299999997, "iscrowd": 0, "image_id": 537924, "bbox": [0.0, 158.83, 148.85, 145.62], "category_id": 1, "id": 223122}, {"segmentation": [[54.65, 309.57, 76.22, 311.01, 99.24, 306.7, 110.74, 302.38, 117.93, 292.31, 126.56, 277.93, 142.38, 266.43, 178.34, 263.55, 191.28, 289.44, 192.72, 305.26, 215.73, 305.26, 221.48, 334.02, 225.8, 341.21, 189.84, 364.22, 156.76, 362.79, 116.49, 345.53]], "area": 9161.17175, "iscrowd": 0, "image_id": 203655, "bbox": [54.65, 263.55, 171.15, 100.67], "category_id": 1, "id": 223234}, {"segmentation": [[148.21, 275.41, 149.23, 291.35, 140.24, 292.57, 139.62, 290.53, 138.81, 261.71, 141.05, 260.9, 142.89, 256.2, 147.19, 256.81, 146.37, 261.31, 147.39, 267.44]], "area": 296.2624999999999, "iscrowd": 0, "image_id": 241076, "bbox": [138.81, 256.2, 10.42, 36.37], "category_id": 1, "id": 223625}, {"segmentation": [[392.45, 412.08, 406.81, 412.08, 422.13, 403.46, 428.83, 394.85, 439.36, 384.32, 460.42, 371.88, 477.65, 366.13, 486.26, 356.56, 490.09, 346.99, 513.06, 330.72, 518.81, 326.89, 517.85, 322.1, 509.23, 317.31, 500.62, 310.61, 497.75, 304.87, 497.75, 295.3, 499.66, 286.68, 502.53, 280.94, 502.53, 268.5, 501.58, 262.75, 506.36, 248.4, 514.98, 245.52, 523.59, 240.74, 524.55, 238.82, 524.55, 224.47, 536.04, 200.53, 541.78, 194.79, 564.75, 192.88, 583.9, 192.88, 604.95, 198.62, 618.36, 208.19, 636.54, 220.64, 640.0, 242.65, 640.0, 270.41, 639.41, 298.17, 632.71, 311.57, 619.31, 324.01, 639.41, 332.63, 640.0, 344.12, 640.0, 361.35, 640.0, 381.45, 640.0, 403.46, 639.41, 418.78, 526.46, 420.69, 511.15, 419.74, 381.93, 420.69, 381.93, 420.69]], "area": 32872.1107, "iscrowd": 0, "image_id": 443604, "bbox": [381.93, 192.88, 258.07, 227.81], "category_id": 1, "id": 224641}, {"segmentation": [[536.85, 300.28, 520.96, 307.09, 515.51, 326.15, 515.96, 334.78, 520.96, 338.41, 542.75, 338.41, 556.36, 336.59, 558.18, 305.27, 552.73, 302.09, 554.55, 293.92, 530.94, 291.2], [568.17, 303.91, 572.71, 308.9, 574.98, 327.51, 574.07, 332.96, 566.81, 334.78]], "area": 1736.4638000000011, "iscrowd": 0, "image_id": 336675, "bbox": [515.51, 291.2, 59.47, 47.21], "category_id": 1, "id": 224906}, {"segmentation": [[281.73, 318.7, 281.48, 310.89, 282.99, 301.83, 288.53, 299.81, 297.85, 299.06, 305.91, 303.09, 308.93, 311.65, 307.92, 316.43, 307.92, 317.95, 308.18, 322.98, 307.92, 325.5, 307.42, 327.27, 304.65, 332.05, 299.61, 334.32, 295.33, 342.38, 297.34, 356.99, 311.2, 358.5, 309.43, 367.31, 307.17, 369.33, 291.8, 364.54, 290.29, 357.99, 285.51, 357.24, 275.94, 360.26, 279.21, 355.22, 282.48, 348.93, 285.51, 345.9, 281.23, 322.48, 282.23, 315.93]], "area": 1363.2932499999995, "iscrowd": 0, "image_id": 332065, "bbox": [275.94, 299.06, 35.26, 70.27], "category_id": 1, "id": 225040}, {"segmentation": [[49.32, 245.65, 51.94, 263.11, 58.05, 256.12, 75.8, 251.18, 69.11, 241.86, 75.8, 236.92, 77.55, 233.13, 61.25, 223.82, 58.63, 221.49, 55.43, 220.04, 50.48, 221.49, 49.9, 224.99, 51.65, 234.3, 51.36, 241.86], [53.98, 271.55, 56.59, 282.89, 59.8, 293.37, 62.12, 298.61, 58.34, 304.14, 60.38, 305.88, 66.78, 303.27, 67.94, 301.81, 66.78, 297.15, 65.62, 278.24, 77.26, 297.15, 76.67, 302.68, 86.57, 304.14, 93.55, 301.23, 88.02, 297.15, 83.08, 294.83, 81.33, 291.33, 82.49, 290.46, 76.67, 277.07]], "area": 1275.7831500000002, "iscrowd": 0, "image_id": 913, "bbox": [49.32, 220.04, 44.23, 85.84], "category_id": 1, "id": 225419}, {"segmentation": [[56.82, 275.76, 55.57, 273.03, 55.23, 270.53, 56.03, 268.94, 56.03, 264.96, 57.28, 263.37, 59.32, 264.28, 60.46, 266.21, 60.91, 268.03, 62.16, 268.94, 61.94, 273.14, 60.34, 276.1, 56.48, 275.76]], "area": 63.364350000000094, "iscrowd": 0, "image_id": 146049, "bbox": [55.23, 263.37, 6.93, 12.73], "category_id": 1, "id": 225722}, {"segmentation": [[222.22, 359.49, 222.31, 356.08, 223.48, 353.66, 225.99, 352.23, 226.89, 351.15, 227.24, 348.91, 227.87, 347.12, 230.38, 345.86, 233.52, 347.57, 238.72, 349.09, 241.95, 349.18, 245.08, 348.64, 248.13, 347.84, 248.85, 349.45, 249.3, 353.4, 249.3, 354.2, 242.57, 354.11, 235.67, 356.35, 232.27, 356.17, 227.96, 356.08, 226.17, 357.34, 223.84, 359.94, 222.49, 360.39], [251.72, 349.0, 255.75, 349.63, 259.61, 350.08, 260.95, 348.11, 261.58, 347.21, 266.51, 347.93, 269.02, 347.84, 272.61, 348.55, 265.52, 350.53, 263.64, 354.11, 257.82, 354.74, 253.69, 354.47, 251.0, 352.77, 251.09, 350.71, 251.09, 349.0]], "area": 271.7863000000003, "iscrowd": 0, "image_id": 2114, "bbox": [222.22, 345.86, 50.39, 14.53], "category_id": 1, "id": 226292}, {"segmentation": [[175.45, 268.29, 175.63, 264.73, 177.32, 262.85, 177.5, 257.86, 179.55, 257.15, 181.87, 258.75, 183.3, 264.99, 184.28, 265.17, 183.39, 272.66, 181.69, 272.66, 178.75, 271.5, 179.46, 276.14, 175.54, 272.84, 175.99, 270.61], [178.13, 281.49, 179.28, 281.67, 180.35, 285.95, 182.14, 286.48, 182.23, 290.14, 181.51, 292.72, 182.32, 298.61, 180.09, 298.87, 176.43, 298.61, 178.48, 298.25, 179.46, 296.64, 179.11, 293.97, 178.66, 288.98, 177.68, 288.44, 177.5, 281.76]], "area": 158.59039999999993, "iscrowd": 0, "image_id": 548253, "bbox": [175.45, 257.15, 8.83, 41.72], "category_id": 1, "id": 226634}, {"segmentation": [[213.27, 181.6, 215.24, 179.38, 218.33, 178.7, 220.73, 178.21, 223.01, 177.84, 223.75, 176.48, 223.81, 175.13, 224.25, 174.76, 224.62, 174.51, 225.05, 174.39, 224.49, 173.09, 224.49, 171.43, 225.48, 169.58, 226.53, 168.47, 229.18, 167.29, 231.71, 167.36, 232.26, 168.34, 233.31, 169.82, 234.48, 171.49, 234.11, 172.41, 233.8, 173.58, 233.8, 174.45, 234.67, 175.43, 235.1, 175.68, 235.59, 176.54, 235.59, 177.04, 235.59, 177.78, 237.13, 178.27, 237.81, 179.44, 238.37, 180.55, 238.24, 184.31, 238.06, 185.79, 238.37, 186.78, 238.18, 187.95, 237.63, 188.81, 237.07, 189.55, 236.7, 190.17, 231.71, 186.96, 214.13, 182.59]], "area": 279.2992000000001, "iscrowd": 0, "image_id": 418810, "bbox": [213.27, 167.29, 25.1, 22.88], "category_id": 1, "id": 226828}, {"segmentation": [[259.96, 116.26, 264.17, 117.79, 264.55, 120.47, 264.55, 126.59, 271.43, 130.8, 276.41, 143.42, 272.96, 166.37, 267.99, 164.08, 269.52, 149.54, 264.55, 157.19, 263.4, 170.58, 264.55, 183.59, 256.51, 157.96, 253.07, 183.97, 250.01, 195.45, 243.51, 196.21, 242.74, 182.44, 245.8, 176.7, 247.33, 163.7, 246.57, 150.69, 245.42, 141.13, 245.42, 132.33, 249.63, 128.89, 254.6, 125.83, 256.51, 118.56, 257.28, 117.41]], "area": 1374.0136500000003, "iscrowd": 0, "image_id": 181837, "bbox": [242.74, 116.26, 33.67, 79.95], "category_id": 1, "id": 227500}, {"segmentation": [[593.21, 332.61, 596.29, 312.19, 609.0, 305.26, 609.77, 304.1, 603.22, 299.86, 605.92, 294.47, 625.18, 299.09, 624.41, 322.98, 622.1, 339.16, 620.17, 374.98, 606.69, 374.6, 615.16, 360.34, 613.62, 350.71, 610.93, 346.86, 604.76, 340.31, 598.98, 336.46, 590.89, 332.99]], "area": 1438.6165499999988, "iscrowd": 0, "image_id": 336675, "bbox": [590.89, 294.47, 34.29, 80.51], "category_id": 1, "id": 228026}, {"segmentation": [[0.0, 65.3, 8.67, 65.3, 14.46, 67.23, 22.17, 73.01, 28.92, 78.8, 32.77, 87.47, 31.81, 94.22, 25.06, 105.79, 22.17, 116.39, 17.35, 131.81, 31.81, 142.41, 32.77, 164.58, 36.63, 169.4, 42.41, 168.44, 47.23, 168.44, 51.09, 166.51, 55.91, 166.51, 61.69, 160.73, 66.51, 168.44, 63.62, 178.08, 62.65, 190.61, 56.87, 200.25, 48.19, 211.81, 41.45, 219.52, 46.27, 233.98, 52.05, 270.61, 52.05, 334.23, 2.89, 344.83, 0.0, 117.35]], "area": 11466.726149999999, "iscrowd": 0, "image_id": 192335, "bbox": [0.0, 65.3, 66.51, 279.53], "category_id": 1, "id": 228028}, {"segmentation": [[164.35, 357.63, 179.89, 358.52, 195.73, 355.53, 196.92, 342.09, 198.12, 331.93, 203.2, 323.56, 201.4, 310.12, 198.71, 306.83, 188.85, 302.65, 188.85, 295.78, 187.66, 289.5, 184.97, 285.62, 181.68, 285.32, 170.63, 288.9, 170.03, 292.19, 169.73, 296.37, 170.03, 303.54, 168.54, 310.72, 164.95, 316.09, 162.56, 317.89, 159.87, 321.77, 159.27, 325.95, 161.66, 329.54, 167.94, 328.34, 171.82, 327.45, 172.42, 329.54, 172.72, 331.93, 170.33, 334.32, 168.54, 340.0, 168.54, 341.49, 167.64, 342.69, 163.16, 345.97, 162.86, 347.17, 164.35, 356.73]], "area": 2086.052899999999, "iscrowd": 0, "image_id": 332065, "bbox": [159.27, 285.32, 43.93, 73.2], "category_id": 1, "id": 228038}, {"segmentation": [[268.89, 478.21, 272.13, 457.74, 269.14, 444.26, 270.64, 438.02, 278.62, 433.02, 281.62, 431.28, 281.12, 426.53, 282.87, 423.29, 286.61, 421.54, 290.6, 422.04, 291.6, 425.29, 290.6, 432.53, 296.1, 437.52, 297.34, 447.5, 293.85, 450.5, 289.36, 459.73, 284.86, 485.69, 279.62, 485.69, 278.37, 478.46, 281.87, 464.98, 279.12, 464.48, 274.63, 486.44, 261.15, 482.45, 265.14, 479.95]], "area": 1131.486500000002, "iscrowd": 0, "image_id": 452087, "bbox": [261.15, 421.54, 36.19, 64.9], "category_id": 1, "id": 228368}, {"segmentation": [[577.31, 81.65, 568.55, 86.51, 569.77, 97.46, 568.79, 99.89, 558.58, 93.81, 555.9, 90.65, 554.93, 84.57, 555.9, 80.43, 556.88, 77.75, 554.93, 72.89, 556.39, 70.21, 560.28, 67.78, 564.66, 69.73, 566.12, 73.38, 565.39, 76.3, 564.17, 78.24, 569.52, 74.84, 573.17, 72.16, 573.66, 71.19, 574.63, 76.05, 570.98, 80.43, 568.31, 82.86, 568.06, 84.32, 567.82, 85.05, 575.85, 80.92]], "area": 377.2380999999997, "iscrowd": 0, "image_id": 192335, "bbox": [554.93, 67.78, 22.38, 32.11], "category_id": 1, "id": 228420}, {"segmentation": [[365.66, 295.55, 355.96, 275.06, 357.03, 266.43, 358.11, 248.09, 387.24, 202.79, 404.49, 193.08, 408.81, 184.45, 398.02, 162.88, 404.49, 136.99, 439.01, 135.91, 451.96, 155.33, 453.03, 160.72, 455.19, 180.13, 457.35, 193.08, 485.39, 198.47, 516.67, 223.28, 532.85, 229.75, 535.01, 249.17, 530.7, 261.03, 500.49, 251.33, 487.55, 252.4, 488.63, 285.84, 497.26, 321.44, 506.97, 341.93, 497.26, 354.88, 498.34, 388.31, 491.87, 424.99, 494.02, 435.78, 435.78, 430.38, 426.07, 389.39, 401.26, 334.38, 399.1, 316.04, 396.94, 310.65, 378.61, 305.26, 364.58, 311.73, 360.27, 296.63, 363.51, 294.47]], "area": 28408.369799999997, "iscrowd": 0, "image_id": 50885, "bbox": [355.96, 135.91, 179.05, 299.87], "category_id": 1, "id": 228924}, {"segmentation": [[476.45, 129.97, 494.87, 126.43, 508.33, 127.14, 517.54, 137.06, 523.21, 155.48, 527.46, 169.65, 528.87, 183.81, 533.83, 196.57, 540.21, 202.23, 524.62, 197.98, 499.12, 176.73, 482.82, 166.81, 477.16, 163.98, 473.61, 161.85]], "area": 2527.5730500000004, "iscrowd": 0, "image_id": 359098, "bbox": [473.61, 126.43, 66.6, 75.8], "category_id": 1, "id": 229480}, {"segmentation": [[416.96, 76.21, 416.96, 42.85, 416.96, 7.59, 416.01, 1.87, 454.13, 2.82, 503.7, 0.0, 620.0, 3.78, 619.03, 85.75, 558.03, 87.65, 550.4, 74.31, 525.62, 65.73, 444.6, 71.45]], "area": 14908.319450000003, "iscrowd": 0, "image_id": 332065, "bbox": [416.01, 0.0, 203.99, 87.65], "category_id": 1, "id": 229699}, {"segmentation": [[185.53, 355.96, 184.45, 350.56, 182.29, 321.44, 171.51, 304.18, 161.8, 268.58, 157.48, 226.52, 153.17, 200.63, 161.8, 180.13, 159.64, 166.11, 145.62, 147.78, 152.09, 110.02, 170.43, 102.47, 190.92, 96.0, 204.94, 106.79, 214.65, 129.44, 222.2, 141.3, 258.88, 140.22, 293.39, 120.81, 326.83, 116.49, 361.35, 110.02, 385.08, 114.34, 381.84, 129.44, 346.25, 146.7, 319.28, 149.93, 284.76, 149.93, 270.74, 173.66, 302.02, 245.93, 279.37, 263.19, 361.35, 422.83, 357.03, 428.22, 324.67, 418.52, 295.55, 428.22, 265.35, 430.38, 237.3, 358.11, 189.84, 350.56]], "area": 39634.6905, "iscrowd": 0, "image_id": 50885, "bbox": [145.62, 96.0, 239.46, 334.38], "category_id": 1, "id": 229807}, {"segmentation": [[203.24, 140.54, 203.24, 168.65, 197.84, 174.05, 189.19, 187.03, 171.89, 187.03, 167.57, 192.43, 176.22, 207.57, 184.86, 225.95, 197.84, 250.81, 211.89, 269.19, 230.27, 278.92, 240.0, 291.89, 257.3, 302.7, 276.76, 317.84, 286.49, 331.89, 277.84, 336.22, 264.86, 334.05, 257.3, 329.73, 248.65, 318.92, 236.76, 313.51, 224.86, 303.78, 204.32, 288.65, 193.51, 275.68, 183.78, 265.95, 167.57, 264.86, 162.16, 271.35, 162.16, 282.16, 175.14, 297.3, 180.54, 309.19, 189.19, 323.24, 195.68, 341.62, 197.84, 352.43, 196.76, 367.57, 195.68, 375.14, 195.68, 380.54, 191.35, 397.84, 193.51, 389.19, 193.51, 403.24, 192.43, 414.05, 192.43, 422.7, 193.51, 433.51, 196.76, 440.0, 209.73, 445.41, 218.38, 448.65, 218.38, 454.05, 214.05, 457.3, 201.08, 459.46, 190.27, 460.54, 175.14, 460.54, 162.16, 461.62, 151.35, 461.62, 150.27, 457.3, 149.19, 454.05, 149.19, 442.16, 149.19, 437.84, 149.19, 428.11, 151.35, 422.7, 151.35, 417.3, 155.68, 397.84, 155.68, 385.95, 153.51, 377.3, 151.35, 372.97, 143.78, 362.16, 136.22, 353.51, 134.05, 364.32, 132.97, 376.22, 131.89, 385.95, 127.57, 393.51, 122.16, 405.41, 117.84, 415.14, 115.68, 422.7, 105.95, 431.35, 99.46, 435.68, 95.14, 438.92, 90.81, 444.32, 87.57, 448.65, 84.32, 452.97, 81.08, 455.14, 75.68, 457.3, 71.35, 458.38, 65.95, 459.46, 61.62, 461.62, 49.73, 471.35, 44.32, 474.59, 35.68, 476.76, 28.11, 476.76, 23.78, 476.76, 17.3, 476.76, 10.81, 475.68, 11.89, 464.86, 11.89, 462.7, 9.73, 452.97, 8.65, 447.57, 12.97, 446.49, 46.49, 418.38, 56.22, 411.89, 69.19, 402.16, 62.7, 404.32, 57.3, 403.24, 65.95, 394.59, 70.27, 391.35, 81.08, 384.86, 85.41, 369.73, 80.0, 353.51, 75.68, 337.3, 69.19, 322.16, 63.78, 304.86, 61.62, 295.14, 63.78, 283.24, 69.19, 260.54, 74.59, 250.81, 90.81, 221.62, 97.3, 207.57, 100.54, 200.0, 104.86, 189.19, 108.11, 182.7, 111.35, 177.3, 114.59, 170.81, 120.0, 166.49, 127.57, 165.41, 131.89, 164.32, 137.3, 162.16, 143.78, 160.0, 145.95, 154.59, 148.11, 145.95, 150.27, 136.22, 151.35, 128.65, 156.76, 120.0, 162.16, 115.68, 170.81, 112.43, 180.54, 112.43, 191.35, 116.76, 195.68, 121.08, 200.0, 128.65, 203.24, 130.81, 207.57, 139.46, 206.49, 148.11]], "area": 36634.284900000006, "iscrowd": 0, "image_id": 256465, "bbox": [8.65, 112.43, 277.84, 364.33], "category_id": 1, "id": 230229}, {"segmentation": [[305.76, 102.31, 307.62, 99.13, 308.61, 97.16, 312.33, 97.05, 313.32, 94.31, 313.43, 93.21, 314.64, 92.45, 315.19, 92.23, 315.84, 91.68, 317.82, 91.68, 319.46, 92.01, 321.11, 93.65, 319.46, 96.28, 319.68, 98.26, 319.02, 100.01, 318.91, 101.55, 316.5, 103.3, 314.53, 105.16, 310.36, 105.82, 308.72, 105.49, 306.52, 103.74]], "area": 126.63069999999992, "iscrowd": 0, "image_id": 548198, "bbox": [305.76, 91.68, 15.35, 14.14], "category_id": 1, "id": 230419}, {"segmentation": [[564.03, 174.41, 563.83, 172.83, 564.03, 168.09, 563.04, 160.78, 563.44, 155.24, 565.22, 153.66, 567.19, 153.07, 569.56, 153.07, 570.95, 153.27, 571.14, 155.44, 571.34, 155.84, 572.13, 158.21, 572.72, 160.58, 571.14, 163.54, 569.17, 166.51, 568.97, 171.64, 569.36, 173.62, 567.39, 174.41]], "area": 145.40865000000008, "iscrowd": 0, "image_id": 501358, "bbox": [563.04, 153.07, 9.68, 21.34], "category_id": 1, "id": 230937}, {"segmentation": [[397.83, 528.95, 391.74, 532.98, 399.22, 535.7, 405.35, 524.81, 405.35, 510.53, 412.15, 498.28, 412.83, 485.35, 408.75, 473.79, 401.26, 470.39, 393.1, 468.35, 393.78, 473.79, 394.46, 479.23, 393.78, 482.63, 393.1, 503.04, 389.02, 519.37, 386.3, 525.49, 383.58, 526.17, 395.14, 528.89]], "area": 1021.7309999999999, "iscrowd": 0, "image_id": 452087, "bbox": [383.58, 468.35, 29.25, 67.35], "category_id": 1, "id": 230965}, {"segmentation": [[554.49, 162.25, 553.94, 164.08, 552.12, 169.54, 554.13, 170.27, 555.4, 175.01, 559.23, 174.83, 559.41, 170.64, 560.5, 170.64, 557.95, 163.89, 557.22, 161.52, 556.13, 160.98, 554.49, 161.34]], "area": 69.0951000000001, "iscrowd": 0, "image_id": 501358, "bbox": [552.12, 160.98, 8.38, 14.03], "category_id": 1, "id": 231108}, {"segmentation": [[295.71, 231.32, 295.71, 231.32, 295.05, 231.32, 289.11, 214.14, 289.11, 213.47, 290.43, 212.81, 298.36, 211.49, 298.36, 210.17, 297.04, 206.21, 297.04, 202.9, 294.39, 200.92, 287.79, 194.31, 287.79, 194.31, 282.5, 192.33, 281.18, 194.97, 279.86, 195.63, 277.21, 198.28, 275.89, 199.6, 274.57, 200.26, 271.27, 202.9, 269.28, 208.85, 269.28, 208.85, 269.28, 212.81, 273.25, 214.14, 276.55, 214.14, 276.55, 215.46, 275.89, 218.76, 273.91, 224.71, 273.91, 224.71, 281.18, 226.03, 281.18, 226.69, 287.79, 229.99, 290.43, 232.64, 301.0, 232.64]], "area": 676.5537500000006, "iscrowd": 0, "image_id": 413895, "bbox": [269.28, 192.33, 31.72, 40.31], "category_id": 1, "id": 231152}, {"segmentation": [[230.23, 364.26, 220.5, 310.22, 214.02, 287.52, 219.42, 269.14, 216.18, 244.28, 212.94, 210.78, 212.94, 188.08, 224.83, 166.46, 242.12, 147.0, 251.85, 138.36, 258.33, 122.14, 273.47, 109.17, 286.44, 111.33, 303.73, 123.22, 299.41, 148.08, 287.52, 162.13, 287.52, 164.3, 299.41, 191.32, 309.14, 228.07, 318.87, 248.61, 340.48, 269.14, 342.64, 275.63, 327.51, 275.63, 300.49, 268.06, 288.6, 255.09, 295.09, 296.17, 295.09, 328.59, 298.33, 359.94, 298.33, 383.72, 263.74, 370.75, 252.93, 341.56, 251.85, 361.02]], "area": 19639.12815, "iscrowd": 0, "image_id": 222572, "bbox": [212.94, 109.17, 129.7, 274.55], "category_id": 1, "id": 231391}, {"segmentation": [[224.36, 232.75, 218.61, 201.11, 209.98, 168.03, 204.22, 143.58, 201.35, 123.45, 209.98, 91.81, 218.61, 71.67, 220.04, 47.22, 220.04, 35.72, 218.61, 15.58, 222.92, 8.39, 237.3, 19.9, 235.87, 37.15, 231.55, 45.78, 228.67, 54.41, 243.06, 61.6, 254.56, 51.54, 256.0, 34.28, 253.12, 8.39, 244.49, 5.51, 194.16, 6.95, 138.07, 6.95, 106.43, 6.95, 106.43, 37.15, 119.37, 64.48, 125.12, 86.05, 138.07, 109.06, 145.26, 114.82, 148.13, 126.32, 151.01, 143.58, 151.01, 155.09, 151.01, 166.59, 158.2, 166.59, 174.02, 165.15, 185.53, 165.15, 192.72, 170.91, 201.35, 188.16, 201.35, 195.36, 201.35, 211.18, 201.35, 222.68, 201.35, 231.31, 205.66, 237.06, 215.73, 241.38, 218.61, 245.69, 222.92, 245.69, 228.67, 232.75], [54.65, 6.95, 43.15, 17.02, 51.78, 31.4, 54.65, 34.28, 60.4, 31.4, 64.72, 14.14, 64.72, 9.83, 60.4, 6.95, 58.97, 5.51]], "area": 16259.85745, "iscrowd": 0, "image_id": 260969, "bbox": [43.15, 5.51, 212.85, 240.18], "category_id": 1, "id": 231441}, {"segmentation": [[314.41, 106.22, 317.22, 104.02, 318.08, 101.81, 319.62, 100.15, 320.49, 98.88, 320.49, 96.48, 322.69, 94.54, 324.62, 94.88, 325.36, 96.61, 325.62, 98.35, 327.62, 101.35, 328.89, 101.95, 329.23, 102.42, 327.02, 102.68, 327.36, 104.08, 327.82, 104.68, 328.29, 105.95, 326.89, 106.48, 322.49, 106.62, 319.42, 106.68, 317.35, 106.89, 316.28, 106.95]], "area": 95.0451, "iscrowd": 0, "image_id": 548198, "bbox": [314.41, 94.54, 14.82, 12.41], "category_id": 1, "id": 231912}, {"segmentation": [[258.97, 233.74, 263.72, 227.01, 270.45, 221.47, 272.03, 219.49, 279.95, 186.23, 296.18, 175.54, 308.06, 179.5, 318.35, 195.34, 319.94, 203.65, 320.33, 210.38, 320.33, 213.55, 319.15, 215.92, 324.69, 219.88, 323.5, 225.82, 327.86, 232.55, 329.44, 243.24, 330.23, 252.35, 331.81, 257.1, 325.88, 257.1, 321.52, 259.08, 317.17, 262.24, 314.4, 265.41, 306.08, 267.0, 305.29, 263.83, 305.29, 260.27, 304.89, 256.7, 301.73, 253.93, 298.56, 254.72, 295.39, 257.89, 295.79, 259.87, 296.98, 261.45, 293.02, 266.2, 290.25, 264.62, 286.68, 262.64, 285.49, 261.06, 278.76, 257.1, 268.47, 246.41, 264.51, 244.43, 258.57, 236.12]], "area": 4134.636200000003, "iscrowd": 0, "image_id": 510979, "bbox": [258.57, 175.54, 73.24, 91.46], "category_id": 1, "id": 232767}, {"segmentation": [[184.58, 307.34, 173.86, 296.11, 173.86, 282.84, 172.33, 276.21, 168.76, 269.58, 177.95, 248.66, 178.97, 229.27, 176.42, 220.09, 182.03, 212.43, 193.25, 211.41, 193.76, 208.86, 191.72, 204.27, 191.72, 194.06, 192.23, 191.0, 199.89, 184.37, 212.13, 183.86, 222.85, 194.06, 222.85, 197.12, 224.38, 201.21, 228.97, 205.8, 228.46, 210.39, 222.85, 220.09, 228.97, 227.23, 243.26, 224.68, 244.79, 225.7, 249.38, 231.82, 254.99, 242.54, 254.99, 245.6, 256.01, 258.35, 256.52, 264.99, 248.87, 268.05, 252.44, 279.27, 265.2, 293.56, 278.46, 304.27, 293.26, 320.6, 295.81, 334.89, 292.24, 347.64, 283.56, 378.77, 299.38, 386.42, 303.97, 402.24, 286.63, 399.69, 286.12, 413.46, 268.77, 413.46, 258.05, 403.26, 260.09, 397.65, 250.91, 387.44, 245.3, 380.3, 234.58, 368.56, 214.68, 335.91, 211.11, 332.34, 201.42, 322.13, 184.58, 305.29, 183.05, 303.25]], "area": 14665.940449999996, "iscrowd": 0, "image_id": 256465, "bbox": [168.76, 183.86, 135.21, 229.6], "category_id": 1, "id": 233636}, {"segmentation": [[213.15, 197.7, 223.44, 195.77, 235.01, 197.06, 240.16, 209.92, 247.23, 216.99, 251.09, 227.92, 266.52, 253.0, 258.95, 271.88, 261.75, 301.79, 254.27, 322.36, 259.88, 375.65, 268.3, 396.21, 264.56, 401.82, 232.77, 399.02, 222.49, 389.67, 234.64, 371.91, 246.8, 362.56, 247.73, 338.25, 242.12, 323.3, 220.62, 295.25, 210.34, 278.42, 213.14, 270.95, 217.82, 251.31, 215.95, 231.68, 209.4, 215.79, 207.53, 202.7, 215.01, 198.03]], "area": 6385.052149999997, "iscrowd": 0, "image_id": 157923, "bbox": [207.53, 195.77, 60.77, 206.05], "category_id": 1, "id": 233867}, {"segmentation": [[3.24, 159.64, 24.81, 162.88, 29.12, 173.66, 36.67, 181.21, 31.28, 189.84, 30.2, 199.55, 32.36, 211.42, 38.83, 228.67, 37.75, 238.38, 29.12, 255.64, 18.34, 272.9, 5.39, 282.61, 1.08, 282.61]], "area": 3369.5357000000004, "iscrowd": 0, "image_id": 537924, "bbox": [1.08, 159.64, 37.75, 122.97], "category_id": 1, "id": 235674}, {"segmentation": [[345.61, 251.97, 362.57, 236.31, 376.91, 226.53, 382.13, 218.71, 384.74, 196.54, 397.13, 190.01, 410.17, 191.97, 415.39, 204.36, 415.39, 218.06, 420.61, 225.88, 429.08, 232.4, 433.65, 250.01, 431.04, 255.88, 431.69, 263.7, 412.78, 264.36, 403.0, 253.92, 397.13, 251.97, 381.48, 249.36, 375.61, 260.44, 365.18, 259.79, 363.87, 241.53, 359.96, 240.88, 356.05, 257.18, 353.44, 258.49, 343.0, 259.14, 342.35, 256.53]], "area": 3309.8064, "iscrowd": 0, "image_id": 510979, "bbox": [342.35, 190.01, 91.3, 74.35], "category_id": 1, "id": 236977}, {"segmentation": [[539.67, 194.99, 539.53, 194.85, 536.77, 186.99, 536.64, 186.99, 538.15, 180.36, 539.53, 179.67, 541.6, 177.33, 541.05, 175.95, 541.47, 175.39, 542.85, 173.88, 543.95, 173.74, 544.23, 173.74, 545.19, 173.88, 546.02, 174.7, 546.16, 174.84, 545.88, 178.29, 548.23, 181.05, 549.33, 184.5, 549.33, 185.06, 548.64, 192.37, 547.95, 195.68, 540.09, 195.68]], "area": 200.1590500000006, "iscrowd": 0, "image_id": 157923, "bbox": [536.64, 173.74, 12.69, 21.94], "category_id": 1, "id": 237703}, {"segmentation": [[322.79, 200.1, 323.73, 197.66, 322.79, 196.53, 321.66, 196.9, 322.04, 194.08, 324.67, 193.33, 324.67, 192.2, 324.67, 191.07, 325.99, 191.07, 327.3, 191.45, 330.31, 195.21, 330.88, 196.9, 329.56, 198.22, 326.55, 198.03, 324.48, 198.22]], "area": 44.27664999999988, "iscrowd": 0, "image_id": 413895, "bbox": [321.66, 191.07, 9.22, 9.03], "category_id": 1, "id": 238347}, {"segmentation": [[46.3, 205.92, 42.63, 199.45, 37.51, 195.97, 29.1, 193.74, 22.33, 194.32, 17.11, 196.64, 11.12, 203.31, 9.47, 209.89, 9.76, 215.11, 12.86, 222.07, 12.95, 226.13, 8.31, 227.48, 7.63, 229.9, 7.83, 232.51, 9.28, 233.28, 7.63, 234.35, 6.57, 235.51, 4.64, 238.02, 0.0, 238.89, 0.0, 246.43, 0.62, 354.97, 17.96, 336.38, 36.55, 336.38, 68.76, 342.27, 70.93, 361.78, 62.57, 394.31, 59.16, 407.93, 81.46, 383.77, 83.32, 378.51, 80.53, 366.74, 81.77, 348.46, 75.58, 325.54, 68.76, 308.5, 64.74, 284.03, 67.21, 270.09, 68.76, 258.63, 73.72, 254.6, 65.67, 247.17, 53.27, 241.28, 48.94, 236.33, 48.01, 232.61, 49.56, 226.1, 49.25, 215.88]], "area": 9301.432199999996, "iscrowd": 0, "image_id": 256465, "bbox": [0.0, 193.74, 83.32, 214.19], "category_id": 1, "id": 239346}, {"segmentation": [[76.55, 513.49, 72.81, 499.16, 70.94, 496.66, 70.75, 491.17, 69.69, 486.93, 68.93, 482.23, 65.9, 482.99, 63.62, 480.72, 63.17, 476.47, 61.96, 472.08, 61.96, 468.74, 66.2, 455.86, 70.14, 452.98, 73.63, 451.62, 75.14, 449.5, 75.75, 444.95, 78.48, 443.13, 81.35, 443.13, 83.32, 445.71, 84.23, 450.26, 84.23, 451.01, 85.45, 451.62, 86.51, 453.74, 87.87, 457.68, 88.48, 460.86, 88.33, 465.41, 88.48, 479.2, 85.45, 478.9, 85.9, 473.29, 85.14, 466.77, 84.39, 476.47, 84.23, 480.41, 84.39, 481.78, 83.78, 490.41, 77.87, 494.36, 79.69, 507.99, 84.99, 514.21, 83.17, 516.78, 80.6, 517.69, 78.48, 516.18]], "area": 1064.6345999999999, "iscrowd": 0, "image_id": 452087, "bbox": [61.96, 443.13, 26.52, 74.56], "category_id": 1, "id": 239359}, {"segmentation": [[588.08, 338.68, 581.43, 328.52, 579.33, 325.02, 578.98, 321.52, 574.43, 317.31, 574.78, 311.01, 575.83, 309.61, 576.18, 306.8, 571.97, 297.0, 580.03, 278.78, 590.89, 268.98, 615.75, 265.83, 632.57, 271.78, 638.87, 276.33, 638.87, 335.17, 640.0, 361.96, 639.22, 391.2, 638.17, 460.71, 610.15, 463.16, 587.38, 470.87, 583.53, 472.97, 583.88, 456.86, 586.33, 433.04, 595.79, 429.19, 592.29, 397.67, 590.89, 381.56, 580.03, 361.59, 569.17, 354.94, 570.92, 348.98, 570.57, 343.38, 572.67, 341.28, 576.88, 341.98, 585.28, 346.88]], "area": 10831.983800000002, "iscrowd": 0, "image_id": 510979, "bbox": [569.17, 265.83, 70.83, 207.14], "category_id": 1, "id": 239643}, {"segmentation": [[179.95, 269.92, 175.7, 278.43, 174.28, 286.73, 173.06, 293.01, 173.87, 303.35, 175.9, 311.45, 177.72, 321.99, 167.79, 331.51, 151.79, 363.32, 143.28, 407.48, 141.46, 448.21, 143.28, 477.59, 159.89, 477.59, 200.82, 477.38, 247.22, 477.38, 254.31, 478.0, 253.9, 471.31, 253.9, 461.58, 253.9, 454.08, 259.17, 436.05, 268.29, 399.58, 274.16, 389.66, 276.59, 381.55, 270.72, 376.08, 257.95, 366.96, 251.87, 360.08, 237.49, 348.93, 242.35, 345.69, 246.2, 343.06, 250.25, 342.04, 248.03, 336.17, 252.48, 332.72, 257.35, 331.51, 262.41, 330.7, 269.7, 332.52, 271.73, 333.33, 274.16, 339.41, 274.16, 344.07, 280.04, 342.04, 282.87, 340.63, 285.71, 337.99, 286.72, 335.76, 285.91, 330.9, 278.82, 324.21, 272.54, 323.81, 264.84, 324.21, 256.94, 325.63, 251.47, 327.86, 246.2, 329.08, 239.92, 330.09, 231.82, 329.48, 237.9, 328.47, 245.8, 326.65, 246.81, 323.4, 247.82, 319.76, 248.43, 317.53, 249.85, 314.08, 251.06, 309.63, 250.46, 308.61, 253.5, 303.55, 252.89, 300.1, 248.43, 293.22, 248.03, 290.99, 246.2, 287.14, 245.39, 284.3, 244.18, 273.97, 240.73, 268.09, 235.26, 264.04, 222.5, 258.98, 211.96, 258.98, 199.4, 259.99, 191.5, 262.22, 188.05, 267.49]], "area": 21548.546600000005, "iscrowd": 0, "image_id": 510979, "bbox": [141.46, 258.98, 145.26, 219.02], "category_id": 1, "id": 240126}, {"segmentation": [[132.26, 336.54, 130.79, 340.96, 130.2, 344.5, 131.08, 358.06, 131.67, 359.24, 132.56, 369.85, 140.22, 367.49, 141.4, 361.59, 142.28, 354.81, 142.58, 349.8, 142.28, 346.85, 140.22, 343.02, 139.34, 338.89, 139.34, 336.54, 137.86, 333.59, 134.62, 333.29, 133.44, 334.47, 132.56, 335.95], [133.15, 372.8, 133.74, 384.59, 134.62, 386.06, 136.98, 386.06, 138.16, 384.59, 138.45, 381.64, 138.45, 379.28, 138.45, 370.44]], "area": 408.71465000000006, "iscrowd": 0, "image_id": 452087, "bbox": [130.2, 333.29, 12.38, 52.77], "category_id": 1, "id": 240273}, {"segmentation": [[45.68, 441.99, 56.05, 412.38, 92.33, 415.34, 109.36, 413.12, 110.1, 386.46, 97.51, 344.26, 83.44, 312.42, 85.66, 304.27, 101.95, 301.31, 104.91, 286.5, 105.65, 285.76, 110.84, 279.84, 107.14, 275.39, 102.69, 256.88, 107.14, 253.18, 102.69, 242.08, 81.22, 235.41, 60.49, 235.41, 44.2, 238.37, 39.76, 253.18, 36.79, 269.47, 41.24, 283.54, 48.64, 296.13, 44.94, 301.31, 36.05, 317.6, 18.28, 348.7, 19.02, 374.61, 25.69, 403.49, 44.2, 440.51]], "area": 12756.6315, "iscrowd": 0, "image_id": 510979, "bbox": [18.28, 235.41, 92.56, 206.58], "category_id": 1, "id": 240400}, {"segmentation": [[145.28, 365.23, 145.71, 371.41, 147.84, 375.03, 150.18, 378.44, 155.29, 378.44, 158.49, 376.52, 162.32, 372.26, 165.3, 362.25, 164.45, 355.43, 163.81, 351.81, 162.11, 349.89, 160.62, 348.19, 158.49, 347.34, 156.57, 347.34, 155.29, 347.34, 151.03, 349.89, 148.9, 353.09, 147.84, 355.65, 146.56, 359.91, 141.45, 354.58, 146.77, 346.49, 145.49, 344.78, 139.32, 351.17, 139.32, 341.37, 138.04, 339.24, 135.48, 335.62, 132.5, 334.56, 130.58, 335.2, 129.52, 336.69, 130.37, 338.82, 133.57, 340.52, 135.48, 342.23, 135.91, 347.98, 133.99, 348.62, 130.8, 348.62, 127.6, 349.68, 123.98, 352.88, 121.21, 358.63, 119.93, 361.82, 119.08, 366.08, 118.87, 371.2, 120.15, 377.8, 124.19, 381.63, 127.6, 382.06, 131.86, 379.5, 134.42, 377.16, 137.61, 372.9, 140.38, 372.9, 141.45, 370.77, 144.64, 370.77, 144.64, 366.51]], "area": 1212.0234499999995, "iscrowd": 0, "image_id": 404964, "bbox": [118.87, 334.56, 46.43, 47.5], "category_id": 2, "id": 241005}, {"segmentation": [[335.05, 350.75, 326.64, 353.38, 325.59, 354.69, 324.01, 358.11, 322.17, 361.53, 321.65, 366.0, 320.86, 369.41, 321.12, 372.57, 321.12, 374.67, 321.91, 376.51, 324.01, 376.51, 327.43, 374.93, 331.64, 372.3, 332.43, 370.46, 334.0, 366.52, 335.84, 363.11, 336.63, 360.74, 339.26, 354.17, 340.84, 350.23, 341.62, 349.18, 341.89, 347.86, 342.94, 345.76, 343.99, 342.87, 344.52, 340.76, 345.04, 338.4, 345.3, 335.77, 344.52, 333.93, 341.62, 334.72, 340.05, 334.98, 339.78, 334.98, 334.53, 334.98, 331.37, 334.98, 322.17, 336.82, 318.76, 337.61, 314.55, 340.76, 325.07, 343.39, 329.8, 342.34, 335.84, 343.66, 337.42, 344.97, 338.47, 347.6, 336.89, 350.23, 334.26, 351.8], [330.06, 381.11, 334.79, 384.0, 336.89, 384.79, 338.21, 383.47, 340.31, 380.58, 341.1, 379.79, 341.1, 378.48, 341.62, 374.01, 341.62, 370.6, 341.62, 368.76, 339.0, 369.54, 338.47, 371.12, 336.1, 375.33, 334.53, 377.96, 332.95, 379.53, 331.11, 381.11]], "area": 622.7849999999994, "iscrowd": 0, "image_id": 404964, "bbox": [314.55, 333.93, 30.75, 50.86], "category_id": 2, "id": 241373}, {"segmentation": [[311.44, 480.96, 316.54, 432.0, 316.54, 415.68, 316.54, 407.52, 317.56, 398.35, 317.56, 385.09, 324.7, 379.99, 328.78, 379.99, 341.01, 409.56, 344.07, 397.33, 360.39, 394.27, 370.59, 401.41, 365.49, 416.7, 363.45, 419.76, 382.83, 418.74, 383.85, 438.12, 385.89, 448.32, 390.99, 481.98, 386.91, 503.39, 382.83, 515.63, 373.65, 521.75, 361.41, 514.61, 348.15, 490.14, 341.01, 476.88, 341.01, 474.84, 330.82, 473.82, 306.34, 485.04, 303.28, 481.98]], "area": 6927.493249999999, "iscrowd": 0, "image_id": 114540, "bbox": [303.28, 379.99, 87.71, 141.76], "category_id": 2, "id": 241661}, {"segmentation": [[39.83, 323.41, 37.87, 325.56, 37.09, 328.1, 36.7, 330.44, 37.09, 332.98, 37.09, 337.48, 35.73, 342.75, 33.97, 345.88, 33.19, 349.2, 34.55, 352.33, 34.36, 356.04, 28.69, 364.24, 22.83, 370.89, 22.24, 370.1, 23.61, 360.34, 22.24, 354.47, 18.73, 350.18, 18.34, 349.0, 24.59, 348.81, 28.5, 349.79, 30.25, 349.59, 32.01, 347.44, 32.4, 345.88, 33.77, 339.82, 35.92, 332.98, 36.12, 329.47, 36.12, 328.49, 36.31, 325.76, 35.73, 324.58, 33.97, 324.39, 30.06, 323.61, 37.68, 321.65, 41.0, 322.63]], "area": 244.86060000000018, "iscrowd": 0, "image_id": 201260, "bbox": [18.34, 321.65, 22.66, 49.24], "category_id": 2, "id": 241752}, {"segmentation": [[498.29, 359.13, 497.75, 361.43, 496.94, 365.21, 496.13, 366.42, 494.38, 364.4, 493.43, 360.89, 493.02, 357.24, 492.48, 355.21, 492.48, 351.7, 492.35, 348.59, 492.89, 345.21, 493.43, 342.51, 494.24, 340.75, 495.32, 339.81, 496.13, 338.32, 496.4, 335.75, 496.4, 333.05, 495.86, 332.11, 493.57, 332.24, 489.65, 331.97, 489.78, 330.62, 491.4, 329.67, 494.38, 329.54, 495.46, 329.54, 496.94, 328.32, 498.29, 326.43, 498.16, 330.21, 499.65, 331.43, 500.19, 331.43, 501.4, 331.84, 498.83, 335.21, 498.83, 337.65, 499.65, 338.86, 501.0, 339.27, 500.73, 341.7, 500.46, 343.32, 500.32, 346.97, 499.92, 349.54, 500.05, 352.64, 500.05, 355.21, 498.83, 357.64, 498.43, 359.8]], "area": 215.27864999999997, "iscrowd": 0, "image_id": 404964, "bbox": [489.65, 326.43, 11.75, 39.99], "category_id": 2, "id": 241885}, {"segmentation": [[553.2, 139.87, 525.7, 132.01, 517.84, 105.49, 521.28, 69.15, 530.61, 38.71, 551.23, 21.03, 564.49, 13.67, 572.84, 14.65, 552.71, 43.13, 552.71, 51.48, 544.85, 49.51, 543.38, 54.91, 542.39, 73.57, 544.36, 87.32, 546.32, 108.93, 549.27, 126.12, 555.16, 137.9], [578.52, 12.74, 582.99, 1.71, 586.86, 1.41, 586.56, 6.48, 589.84, 12.14, 590.14, 13.33]], "area": 2899.88885, "iscrowd": 0, "image_id": 440698, "bbox": [517.84, 1.41, 72.3, 138.46], "category_id": 2, "id": 242030}, {"segmentation": [[228.9, 283.98, 225.16, 279.17, 221.43, 279.17, 218.23, 287.18, 211.83, 296.25, 197.42, 295.71, 192.08, 304.25, 194.22, 316.52, 205.96, 319.19, 215.56, 312.25, 217.69, 304.78, 220.36, 304.25, 224.63, 312.25, 229.97, 317.59, 238.5, 323.99, 241.17, 323.46, 237.44, 313.85, 237.44, 303.18, 231.57, 306.92, 229.97, 312.79, 224.63, 306.92, 214.49, 297.85, 220.36, 290.91, 225.7, 282.91, 227.83, 283.98], [247.57, 300.52, 253.98, 313.32, 250.77, 322.92, 244.37, 325.06, 245.44, 302.12]], "area": 882.9280499999996, "iscrowd": 0, "image_id": 217636, "bbox": [192.08, 279.17, 61.9, 45.89], "category_id": 2, "id": 242176}, {"segmentation": [[253.22, 296.76, 263.05, 297.85, 261.96, 303.59, 269.33, 303.86, 273.7, 307.41, 279.44, 316.69, 276.43, 327.07, 267.42, 333.89, 256.77, 331.44, 252.4, 324.61, 252.4, 319.69, 253.77, 311.78, 254.32, 306.86, 253.77, 303.86, 249.95, 301.13, 249.95, 297.03]], "area": 712.8158499999997, "iscrowd": 0, "image_id": 217636, "bbox": [249.95, 296.76, 29.49, 37.13], "category_id": 2, "id": 242212}, {"segmentation": [[402.7, 330.61, 405.17, 330.61, 406.72, 336.48, 406.72, 342.35, 401.77, 346.99, 401.46, 354.71, 406.72, 363.67, 411.35, 362.13, 416.3, 358.42, 420.31, 359.04, 422.17, 359.04, 424.64, 361.51, 433.91, 358.11, 434.53, 349.77, 429.27, 341.73, 424.64, 342.97, 420.31, 345.75, 417.53, 342.35, 413.51, 336.79, 415.37, 330.61, 416.3, 328.75, 417.84, 327.83, 416.3, 325.36, 412.59, 325.66, 410.42, 325.97, 406.41, 327.21, 401.15, 327.52]], "area": 700.1158499999993, "iscrowd": 0, "image_id": 404964, "bbox": [401.15, 325.36, 33.38, 38.31], "category_id": 2, "id": 242480}, {"segmentation": [[261.32, 116.34, 254.25, 116.49, 249.59, 118.32, 242.66, 119.6, 243.79, 122.7, 252.7, 122.56, 261.32, 123.13], [263.72, 116.91, 266.13, 116.91, 268.95, 123.13, 262.87, 123.41]], "area": 121.03864999999992, "iscrowd": 0, "image_id": 501358, "bbox": [242.66, 116.34, 26.29, 7.07], "category_id": 3, "id": 242555}, {"segmentation": [[204.66, 123.52, 224.38, 123.7, 225.65, 122.25, 224.93, 119.54, 222.03, 117.37, 216.24, 117.73, 211.53, 119.36, 207.91, 120.99, 203.75, 122.07]], "area": 95.38725000000001, "iscrowd": 0, "image_id": 501358, "bbox": [203.75, 117.37, 21.9, 6.33], "category_id": 3, "id": 242709}, {"segmentation": [[160.7, 226.14, 126.47, 228.04, 114.11, 256.57, 85.58, 257.52, 85.58, 274.63, 85.58, 285.09, 94.14, 287.95, 116.96, 273.68, 149.29, 274.63, 157.85, 285.09]], "area": 2746.670649999999, "iscrowd": 0, "image_id": 149878, "bbox": [85.58, 226.14, 75.12, 61.81], "category_id": 3, "id": 242916}, {"segmentation": [[156.23, 199.65, 162.76, 198.99, 164.72, 199.81, 165.05, 202.75, 165.38, 208.14, 165.38, 212.55, 165.21, 215.33, 165.21, 215.82, 163.09, 216.15, 158.02, 215.82, 156.88, 214.84, 157.7, 210.59, 157.7, 206.83, 156.55, 203.08], [143.98, 210.76, 146.43, 210.92, 147.41, 211.41, 147.41, 213.86, 147.41, 215.0, 146.43, 215.49, 145.28, 215.49]], "area": 146.20045000000005, "iscrowd": 0, "image_id": 157923, "bbox": [143.98, 198.99, 21.4, 17.16], "category_id": 3, "id": 243183}, {"segmentation": [[141.37, 123.62, 141.1, 122.21, 142.18, 121.68, 144.79, 121.41, 148.14, 119.67, 149.88, 119.06, 152.7, 118.66, 157.25, 118.66, 157.05, 120.81, 159.4, 120.81, 158.93, 122.55, 159.06, 123.49, 156.18, 122.88, 146.4, 123.69, 144.19, 123.62]], "area": 61.28825000000003, "iscrowd": 0, "image_id": 501358, "bbox": [141.1, 118.66, 18.3, 5.03], "category_id": 3, "id": 243557}, {"segmentation": [[405.57, 211.59, 404.18, 211.27, 403.32, 212.23, 402.57, 212.44, 401.93, 211.91, 402.25, 207.09, 403.32, 206.02, 404.18, 204.73, 405.89, 203.87, 409.75, 204.19, 408.79, 206.12, 409.11, 207.41, 406.75, 209.23, 405.89, 211.48]], "area": 40.4665, "iscrowd": 0, "image_id": 425540, "bbox": [401.93, 203.87, 7.82, 8.57], "category_id": 3, "id": 243740}, {"segmentation": [[108.79, 387.06, 109.76, 389.63, 113.94, 390.6, 114.91, 390.28, 129.08, 392.85, 137.77, 389.63, 158.37, 390.92, 163.85, 388.02, 163.52, 382.23, 155.15, 373.54, 145.17, 365.49, 118.77, 367.74, 104.61, 381.91]], "area": 1151.6552999999994, "iscrowd": 0, "image_id": 309536, "bbox": [104.61, 365.49, 59.24, 27.36], "category_id": 3, "id": 244725}, {"segmentation": [[451.62, 218.83, 456.36, 218.99, 459.46, 219.81, 460.77, 217.68, 461.1, 216.05, 460.61, 214.25, 459.63, 213.43, 458.65, 212.94, 457.99, 210.98, 451.78, 210.33, 451.45, 212.29, 449.66, 212.94, 450.96, 214.25, 450.47, 216.05, 449.82, 217.52]], "area": 77.66725000000008, "iscrowd": 0, "image_id": 425540, "bbox": [449.66, 210.33, 11.44, 9.48], "category_id": 3, "id": 244757}, {"segmentation": [[196.89, 380.66, 195.6, 374.85, 199.79, 370.98, 206.24, 366.79, 217.22, 367.11, 222.06, 367.11, 229.8, 373.56, 235.93, 379.69, 231.41, 382.6, 220.76, 384.53, 215.28, 385.18, 206.24, 383.89, 198.18, 382.6]], "area": 538.6561499999997, "iscrowd": 0, "image_id": 309536, "bbox": [195.6, 366.79, 40.33, 18.39], "category_id": 3, "id": 244827}, {"segmentation": [[170.38, 372.32, 172.93, 377.64, 173.85, 379.73, 178.48, 379.26, 184.49, 378.34, 186.34, 379.03, 188.43, 380.88, 190.51, 380.42, 194.21, 379.49, 195.6, 379.49, 196.06, 373.25, 200.69, 370.47, 194.44, 367.93, 180.56, 367.23, 174.08, 369.08, 174.08, 369.08, 173.16, 372.32]], "area": 281.5824499999996, "iscrowd": 0, "image_id": 309536, "bbox": [170.38, 367.23, 30.31, 13.65], "category_id": 3, "id": 244979}, {"segmentation": [[45.38, 376.02, 46.48, 372.01, 55.6, 369.09, 61.43, 364.35, 77.12, 364.35, 86.6, 365.81, 90.61, 369.45, 92.8, 373.1, 93.53, 377.48, 89.88, 380.76, 85.5, 381.85, 84.04, 380.03, 73.1, 378.94, 69.46, 380.76, 68.0, 382.22, 65.08, 382.22, 62.16, 381.12, 54.87, 381.12, 52.68, 381.12, 52.68, 382.22, 49.03, 382.22, 46.84, 379.3, 44.65, 375.65]], "area": 658.4558499999998, "iscrowd": 0, "image_id": 309536, "bbox": [44.65, 364.35, 48.88, 17.87], "category_id": 3, "id": 245157}, {"segmentation": [[12.14, 370.58, 24.98, 367.57, 29.63, 362.38, 41.1, 363.48, 52.85, 363.48, 56.68, 368.39, 49.3, 371.4, 47.93, 373.31, 47.39, 376.32, 42.47, 376.59, 33.45, 376.04, 30.72, 379.05, 22.53, 378.78, 19.52, 375.77, 9.96, 373.31]], "area": 456.95829999999955, "iscrowd": 0, "image_id": 309536, "bbox": [9.96, 362.38, 46.72, 16.67], "category_id": 3, "id": 245204}, {"segmentation": [[0.81, 366.98, 9.13, 372.53, 17.69, 374.15, 22.78, 378.78, 26.02, 386.64, 7.28, 386.87, 0.81, 386.64]], "area": 321.75430000000034, "iscrowd": 0, "image_id": 309536, "bbox": [0.81, 366.98, 25.21, 19.89], "category_id": 3, "id": 245228}, {"segmentation": [[156.06, 372.02, 162.27, 365.46, 166.58, 364.08, 186.08, 363.57, 185.56, 367.02, 174.17, 368.05, 173.48, 371.33, 169.86, 372.54, 172.62, 377.89, 172.97, 378.58, 163.13, 378.75, 159.68, 377.71, 156.23, 374.09, 155.2, 372.19, 155.89, 372.19]], "area": 245.14795000000015, "iscrowd": 0, "image_id": 309536, "bbox": [155.2, 363.57, 30.88, 15.18], "category_id": 3, "id": 245252}, {"segmentation": [[414.75, 218.32, 411.65, 218.52, 408.12, 220.18, 405.22, 221.01, 406.46, 221.84, 411.85, 220.18, 412.89, 224.53, 410.61, 225.16, 409.37, 227.02, 407.09, 224.74, 406.67, 226.61, 406.46, 228.89, 406.67, 231.17, 408.33, 232.82, 407.09, 233.24, 407.5, 234.48, 408.54, 234.9, 411.85, 237.59, 413.1, 241.12, 415.79, 239.05, 416.21, 236.35, 419.52, 233.86, 419.73, 233.03, 420.04, 231.17, 418.87, 228.82, 418.76, 227.76, 419.19, 226.26, 418.02, 224.77, 417.06, 223.81, 416.53, 222.96, 417.17, 220.94, 415.78, 219.76, 418.34, 218.38, 421.22, 219.12, 418.34, 216.78, 416.53, 217.42, 414.93, 218.49]], "area": 189.46789999999984, "iscrowd": 0, "image_id": 425540, "bbox": [405.22, 216.78, 16.0, 24.34], "category_id": 4, "id": 246518}, {"segmentation": [[2.16, 471.42, 640.0, 474.65, 637.38, 2.28, 2.16, 2.28]], "area": 299647.56450000004, "iscrowd": 0, "image_id": 384895, "bbox": [2.16, 2.28, 637.84, 472.37], "category_id": 6, "id": 247906}, {"segmentation": [[35.5, 240.69, 60.45, 240.69, 60.45, 286.75, 39.34, 284.83, 38.38, 241.65], [66.21, 240.69, 118.02, 237.81, 119.94, 288.66, 68.13, 287.71, 65.25, 239.73], [125.7, 238.77, 227.41, 235.89, 235.09, 236.85, 204.38, 240.69, 200.55, 284.83, 123.78, 285.79, 123.78, 238.77, 131.46, 238.77]], "area": 7363.56645, "iscrowd": 0, "image_id": 111831, "bbox": [35.5, 235.89, 199.59, 52.77], "category_id": 6, "id": 248012}, {"segmentation": [[1.62, 118.11, 67.15, 93.03, 162.61, 72.81, 256.45, 74.43, 312.27, 105.98, 454.65, 128.63, 471.64, 141.57, 370.52, 203.06, 361.62, 190.11, 355.96, 164.22, 343.82, 149.66, 330.88, 140.76, 311.46, 147.24, 287.19, 173.12, 271.01, 202.25, 265.35, 203.87, 239.46, 203.06, 212.76, 198.2, 198.2, 191.73, 208.72, 165.84, 203.06, 143.19, 172.31, 132.67, 156.94, 134.29, 136.72, 143.19, 133.48, 160.18, 98.7, 196.58, 97.08, 221.66, 97.08, 226.52, 88.18, 220.85, 84.13, 234.61, 76.85, 242.7, 48.54, 229.75, 36.4, 192.54, 36.4, 181.21, 28.31, 169.08, 13.75, 124.58]], "area": 36574.2388, "iscrowd": 0, "image_id": 548198, "bbox": [1.62, 72.81, 470.02, 169.89], "category_id": 9, "id": 249235}, {"segmentation": [[305.02, 157.08, 307.25, 157.89, 311.26, 157.53, 313.31, 157.62, 315.72, 157.35, 316.79, 156.19, 316.7, 155.21, 315.19, 154.68, 311.53, 154.5, 308.76, 154.59, 308.76, 154.05, 308.76, 153.16, 307.43, 152.98, 307.78, 152.0, 307.96, 151.37, 307.96, 150.75, 306.8, 150.66, 305.82, 150.66, 305.11, 150.93, 304.93, 152.09, 304.66, 152.98, 302.7, 152.8, 301.9, 152.8, 301.18, 153.43, 301.81, 154.76, 303.14, 156.19, 304.13, 157.08, 305.55, 157.53]], "area": 57.94204999999991, "iscrowd": 0, "image_id": 435665, "bbox": [301.18, 150.66, 15.61, 7.23], "category_id": 9, "id": 249560}, {"segmentation": [[427.19, 201.93, 426.7, 205.85, 426.43, 206.99, 425.34, 207.37, 424.69, 208.79, 425.39, 211.29, 428.17, 211.73, 429.91, 211.18, 430.13, 210.15, 429.69, 209.6, 428.88, 209.38, 428.71, 208.73, 428.88, 206.77, 428.49, 204.11, 428.06, 202.42]], "area": 26.914550000000037, "iscrowd": 0, "image_id": 2114, "bbox": [424.69, 201.93, 5.44, 9.8], "category_id": 9, "id": 249677}, {"segmentation": [[464.42, 287.87, 444.27, 305.14, 246.6, 302.26, 244.69, 293.62, 259.08, 288.82, 274.43, 264.84, 262.92, 242.77, 286.91, 240.85, 305.14, 221.66, 410.69, 225.49, 425.08, 248.52, 432.76, 262.92]], "area": 13348.740349999998, "iscrowd": 0, "image_id": 73727, "bbox": [244.69, 221.66, 219.73, 83.48], "category_id": 9, "id": 249958}, {"segmentation": [[622.96, 92.57, 624.4, 91.97, 625.48, 91.25, 625.72, 90.41, 624.28, 88.98, 624.04, 87.54, 624.04, 85.62, 624.28, 84.31, 624.76, 83.23, 625.72, 81.08, 626.67, 80.24, 630.03, 78.8, 633.97, 78.92, 634.45, 79.88, 634.81, 81.2, 635.53, 82.75, 636.13, 85.15, 636.13, 87.06, 634.93, 89.33, 633.74, 90.41, 633.38, 92.33, 633.5, 94.84, 633.86, 97.95, 635.17, 100.7, 636.49, 104.29, 636.73, 105.73, 636.37, 106.69, 633.97, 107.52, 631.82, 112.91, 632.9, 114.35, 632.42, 115.06, 629.19, 116.26, 627.39, 115.42, 627.15, 113.15, 628.11, 109.8, 629.19, 107.64, 629.55, 106.93, 628.59, 103.93, 627.51, 101.9, 625.84, 98.07, 623.8, 93.76]], "area": 299.6889500000002, "iscrowd": 0, "image_id": 192335, "bbox": [622.96, 78.8, 13.77, 37.46], "category_id": 1, "id": 251359}, {"segmentation": [[599.98, 403.91, 611.64, 393.77, 620.77, 384.14, 624.32, 372.99, 617.22, 359.81, 612.15, 346.62, 610.63, 336.48, 620.77, 321.78, 628.37, 312.66, 630.4, 309.62, 633.95, 301.0, 634.96, 289.84, 636.99, 274.13, 640.0, 268.04, 640.0, 415.57, 640.0, 424.7, 640.0, 447.0, 624.83, 441.43, 613.67, 434.33, 608.1, 433.32, 601.0, 427.74, 601.0, 423.18, 601.0, 410.5]], "area": 3729.3719499999993, "iscrowd": 0, "image_id": 386890, "bbox": [599.98, 268.04, 40.02, 178.96], "category_id": 1, "id": 251542}, {"segmentation": [[105.35, 157.89, 115.96, 141.42, 116.7, 138.12, 119.62, 131.9, 123.28, 126.41, 123.65, 125.68, 126.58, 123.85, 136.83, 120.19, 144.15, 118.73, 154.39, 117.26, 164.64, 114.34, 165.74, 107.75, 165.01, 98.6, 164.64, 89.45, 167.57, 82.86, 170.5, 81.03, 173.42, 80.67, 178.18, 81.4, 184.4, 83.96, 187.7, 86.15, 192.45, 98.6, 196.11, 107.02, 195.38, 113.24, 199.77, 119.83, 201.97, 124.95, 202.7, 129.34, 199.77, 143.61, 196.11, 149.84, 196.11, 156.42, 204.17, 167.4, 204.17, 170.33, 132.07, 195.95]], "area": 6543.1434500000005, "iscrowd": 0, "image_id": 542041, "bbox": [105.35, 80.67, 98.82, 115.28], "category_id": 1, "id": 251884}, {"segmentation": [[209.6, 180.05, 208.56, 178.75, 208.04, 177.83, 207.12, 176.0, 206.6, 174.43, 205.68, 171.69, 205.29, 170.65, 204.25, 169.34, 203.72, 168.56, 201.37, 168.29, 198.89, 168.69, 197.58, 169.34, 197.06, 170.91, 196.67, 172.47, 196.67, 173.91, 196.8, 176.52, 196.41, 177.31, 195.49, 178.09, 194.97, 178.61, 194.97, 178.75]], "area": 106.21920000000006, "iscrowd": 0, "image_id": 418810, "bbox": [194.97, 168.29, 14.63, 11.76], "category_id": 1, "id": 252591}, {"segmentation": [[156.58, 265.27, 157.91, 260.13, 157.08, 259.46, 155.58, 258.14, 154.92, 256.48, 154.75, 255.48, 156.41, 254.15, 158.24, 253.82, 161.06, 254.98, 162.39, 255.98, 163.72, 257.97, 165.71, 261.62, 166.54, 266.44, 166.87, 268.59, 167.37, 269.76, 167.37, 269.92, 167.87, 271.58, 160.4, 283.87, 165.71, 287.35, 166.71, 288.18, 169.36, 290.51, 171.52, 291.17, 172.02, 291.5, 171.52, 292.83, 171.52, 294.66, 170.86, 296.15, 166.04, 298.64, 165.54, 297.98, 163.22, 296.48, 165.38, 292.66, 165.38, 292.5, 163.05, 291.83, 161.56, 291.34, 160.73, 289.34, 160.73, 288.18, 160.56, 286.69, 160.07, 285.19, 159.57, 284.03, 159.4, 280.88, 159.4, 279.22, 159.57, 278.55, 159.24, 277.72, 157.91, 274.74, 157.74, 272.41, 158.07, 269.92, 158.24, 269.42, 161.73, 268.93, 162.72, 268.43, 163.39, 267.1, 163.55, 266.44, 163.55, 264.61, 163.39, 263.95, 162.72, 263.45, 158.57, 262.29, 157.58, 262.29]], "area": 257.44495000000006, "iscrowd": 0, "image_id": 548253, "bbox": [154.75, 253.82, 17.27, 44.82], "category_id": 1, "id": 253051}, {"segmentation": [[3.84, 143.93, 44.14, 143.93, 61.41, 135.3, 122.82, 122.82, 125.7, 127.62, 174.64, 114.19, 219.74, 91.16, 257.16, 89.24, 353.11, 94.04, 384.78, 108.43, 362.71, 128.58, 357.91, 135.3, 286.91, 157.37, 279.23, 161.2, 334.88, 164.08, 335.84, 164.08, 328.17, 179.44, 269.63, 185.19, 172.72, 190.95, 141.05, 206.3, 150.65, 217.82, 139.13, 264.84, 105.55, 278.27, 66.21, 276.35, 32.62, 300.34, 0.0, 315.69, 0.96, 143.93]], "area": 39610.44895, "iscrowd": 0, "image_id": 456262, "bbox": [0.0, 89.24, 384.78, 226.45], "category_id": 1, "id": 253495}, {"segmentation": [[575.63, 292.03, 575.63, 290.53, 578.64, 292.46, 578.42, 290.1, 576.49, 287.51, 575.41, 285.36, 576.27, 281.92, 575.63, 276.76, 575.2, 273.1, 574.55, 271.59, 569.82, 273.53, 569.82, 278.91, 567.45, 279.98, 564.44, 281.92, 564.22, 287.3, 563.58, 294.19, 566.16, 295.69, 573.26, 293.54]], "area": 217.25174999999888, "iscrowd": 0, "image_id": 173163, "bbox": [563.58, 271.59, 15.06, 24.1], "category_id": 1, "id": 253525}, {"segmentation": [[333.7, 355.38, 333.37, 356.58, 329.55, 361.05, 327.8, 363.34, 326.28, 366.29, 325.73, 370.77, 325.62, 374.15, 325.62, 377.42, 325.51, 380.81, 325.4, 383.43, 332.5, 385.06, 335.88, 384.95, 343.41, 384.19, 345.92, 380.59, 345.16, 378.3, 341.67, 377.53, 339.92, 376.99, 340.57, 375.02, 340.9, 373.17, 342.21, 371.09, 343.41, 370.88, 346.03, 370.66, 351.82, 370.66, 352.14, 369.78, 352.14, 367.06, 349.31, 365.2, 346.14, 363.34, 343.19, 361.6, 340.68, 359.74, 340.57, 359.2, 341.56, 355.38, 341.67, 355.38, 340.14, 351.99, 338.06, 349.27, 335.34, 349.81, 333.92, 349.92, 332.93, 352.43, 332.93, 352.43, 333.15, 353.63]], "area": 544.9830000000002, "iscrowd": 0, "image_id": 567318, "bbox": [325.4, 349.27, 26.74, 35.79], "category_id": 1, "id": 253725}, {"segmentation": [[589.44, 300.87, 590.15, 304.68, 590.47, 307.93, 590.39, 309.99, 589.44, 310.87, 588.25, 311.58, 588.41, 312.53, 588.41, 312.53, 588.57, 313.4, 591.18, 313.01, 592.69, 312.69, 594.28, 312.29, 594.75, 312.29, 594.91, 305.55, 595.31, 302.86, 595.31, 300.64, 595.07, 299.68, 595.47, 298.89, 594.36, 296.03, 593.8, 294.69, 594.12, 293.34, 595.23, 291.2, 595.86, 290.32, 596.18, 289.45, 596.34, 288.1, 595.62, 286.2, 595.15, 284.14, 595.39, 281.6, 595.86, 280.17, 596.26, 279.38, 596.34, 278.43, 596.5, 276.84, 596.42, 274.7, 595.78, 273.59, 593.4, 271.21, 592.93, 270.26, 593.32, 270.1, 593.8, 269.31, 593.09, 267.8, 592.37, 267.24, 592.06, 265.98, 591.26, 264.55, 590.07, 264.47, 588.96, 264.63, 587.85, 265.66, 586.98, 266.53, 586.58, 267.32, 586.58, 268.59, 587.14, 269.54, 584.2, 270.42, 581.74, 271.69, 580.95, 272.4, 580.71, 273.35, 581.03, 273.91, 581.9, 274.46, 581.9, 274.46, 583.73, 275.33, 584.6, 275.49, 584.76, 275.65, 584.6, 276.45, 585.0, 277.95, 584.92, 286.2, 585.63, 286.91, 585.87, 287.95, 585.87, 289.61, 586.66, 290.32, 587.06, 290.4, 586.98, 294.29, 586.11, 297.3, 585.95, 299.45, 586.42, 300.64, 587.45, 300.64, 588.41, 300.32, 588.96, 300.24]], "area": 405.2266499999991, "iscrowd": 0, "image_id": 173163, "bbox": [580.71, 264.47, 15.79, 48.93], "category_id": 1, "id": 253730}, {"segmentation": [[127.12, 362.86, 128.51, 357.55, 128.74, 354.78, 129.43, 350.17, 129.43, 349.01, 130.12, 346.94, 131.97, 343.71, 131.97, 342.09, 130.81, 337.25, 130.81, 333.79, 130.81, 330.56, 130.58, 328.02, 129.89, 327.09, 130.58, 324.79, 130.81, 324.09, 131.04, 323.4, 130.81, 322.94, 129.66, 322.02, 128.97, 322.02, 127.81, 322.02, 125.51, 323.17, 125.51, 323.86, 126.2, 325.94, 126.43, 326.4, 124.58, 326.86, 123.89, 327.32, 123.43, 329.4, 123.2, 330.56, 121.35, 334.25, 120.2, 337.48, 119.51, 339.55, 117.89, 342.55, 118.35, 343.01, 119.51, 343.01, 119.97, 343.01, 121.58, 346.48, 121.58, 347.4, 124.35, 354.55, 124.81, 357.09, 124.81, 358.24, 123.66, 363.32, 124.35, 364.47, 126.89, 364.01]], "area": 304.34610000000004, "iscrowd": 0, "image_id": 201260, "bbox": [117.89, 322.02, 14.08, 42.45], "category_id": 1, "id": 254646}, {"segmentation": [[454.85, 95.15, 450.7, 52.49, 445.96, 46.56, 446.55, 40.63, 460.18, 37.67, 456.63, 24.04, 451.89, 16.34, 465.52, 12.19, 475.59, 15.15, 468.48, 21.08, 475.0, 30.56, 477.37, 40.63, 477.96, 56.04, 473.81, 72.04, 464.33, 85.08]], "area": 1567.2913999999998, "iscrowd": 0, "image_id": 56699, "bbox": [445.96, 12.19, 32.0, 82.96], "category_id": 1, "id": 254858}, {"segmentation": [[593.33, 59.91, 584.45, 67.63, 583.68, 69.95, 585.22, 73.81, 598.35, 76.9, 599.5, 91.18, 600.66, 92.33, 603.36, 93.11, 602.98, 95.04, 600.66, 98.9, 597.19, 108.54, 595.26, 115.88, 592.94, 120.51, 600.28, 127.07, 600.66, 128.61, 602.59, 141.74, 605.68, 161.14, 611.08, 171.17, 613.01, 174.26, 613.4, 176.58, 613.78, 199.84, 613.78, 204.08, 614.17, 206.01, 614.94, 209.87, 618.03, 194.43, 625.36, 194.43, 625.75, 183.62, 623.43, 167.03, 626.91, 158.92, 633.08, 148.5, 635.01, 146.19, 638.49, 139.63, 640.0, 123.42, 632.31, 103.73, 624.59, 89.84, 621.89, 81.24, 622.28, 70.44, 621.12, 65.42, 614.56, 57.98, 608.77, 54.9, 602.98, 54.9, 600.28, 56.05]], "area": 3829.2332999999994, "iscrowd": 0, "image_id": 559566, "bbox": [583.68, 54.9, 56.32, 154.97], "category_id": 1, "id": 254860}, {"segmentation": [[407.98, 379.03, 411.7, 374.49, 417.07, 373.66, 414.18, 369.12, 415.0, 366.23, 421.2, 364.16, 423.26, 367.47, 423.68, 373.66, 429.04, 378.2, 428.22, 379.86]], "area": 163.85504999999964, "iscrowd": 0, "image_id": 567318, "bbox": [407.98, 364.16, 21.06, 15.7], "category_id": 1, "id": 255369}, {"segmentation": [[340.18, 186.2, 344.8, 183.27, 344.59, 171.93, 348.16, 166.48, 351.52, 162.7, 349.0, 160.6, 349.0, 155.56, 350.26, 150.1, 352.99, 145.7, 355.72, 144.86, 358.45, 134.58, 362.22, 136.25, 362.85, 147.59, 364.95, 164.59, 368.1, 172.77, 366.42, 186.62, 362.64, 194.18, 365.58, 198.8, 369.15, 214.54, 369.57, 226.88, 368.31, 246.14, 367.68, 249.92, 358.45, 249.71, 362.22, 244.67, 363.27, 237.53, 360.33, 222.84, 353.2, 207.94, 346.69, 194.93, 344.59, 195.35, 338.51, 190.73, 338.51, 187.38, 339.98, 185.91]], "area": 1584.7721500000007, "iscrowd": 0, "image_id": 338086, "bbox": [338.51, 134.58, 31.06, 115.34], "category_id": 1, "id": 255755}, {"segmentation": [[581.62, 99.56, 581.62, 92.47, 583.44, 90.65, 581.8, 82.11, 579.98, 81.02, 581.62, 75.56, 578.89, 71.93, 573.07, 70.65, 568.71, 73.75, 566.89, 77.02, 570.53, 89.38, 569.8, 98.47, 573.98, 101.38]], "area": 356.2590000000005, "iscrowd": 0, "image_id": 192335, "bbox": [566.89, 70.65, 16.55, 30.73], "category_id": 1, "id": 256137}, {"segmentation": [[492.86, 288.44, 491.68, 288.44, 489.7, 287.46, 488.72, 286.67, 487.14, 288.05, 485.37, 288.24, 484.38, 287.26, 484.18, 284.89, 484.78, 283.51, 487.93, 282.53, 490.3, 281.54, 491.08, 279.77, 491.08, 277.4, 491.48, 275.43, 493.25, 274.45, 495.03, 274.84, 496.01, 276.02, 495.42, 279.37, 497.0, 283.12, 496.6, 284.7, 496.01, 285.09]], "area": 97.02545000000018, "iscrowd": 0, "image_id": 173163, "bbox": [484.18, 274.45, 12.82, 13.99], "category_id": 1, "id": 256549}, {"segmentation": [[165.98, 269.04, 167.19, 262.43, 166.12, 262.02, 165.58, 257.44, 165.58, 256.77, 168.27, 255.15, 169.35, 256.36, 170.29, 273.22, 169.49, 281.04, 170.29, 291.82, 165.98, 291.28, 167.6, 289.13, 166.12, 279.28, 165.31, 274.02, 162.34, 274.16, 162.21, 272.41, 165.58, 271.46, 166.12, 268.09]], "area": 134.43749999999972, "iscrowd": 0, "image_id": 241076, "bbox": [162.21, 255.15, 8.08, 36.67], "category_id": 1, "id": 257012}, {"segmentation": [[452.65, 169.7, 452.65, 157.91, 452.65, 149.19, 451.11, 139.45, 451.63, 131.24, 453.16, 125.6, 460.34, 117.4, 462.91, 106.12, 474.7, 107.14, 497.26, 107.14, 499.31, 119.45, 500.0, 149.7, 498.29, 180.47, 497.77, 197.39, 496.24, 215.85, 496.24, 228.67, 497.26, 240.97, 500.0, 264.56, 499.83, 266.61, 490.08, 258.92, 484.44, 243.02, 476.75, 225.59, 475.73, 214.31, 467.52, 206.11, 464.96, 198.93, 460.34, 186.62, 458.81, 179.96, 451.11, 170.73]], "area": 5113.103400000002, "iscrowd": 0, "image_id": 75973, "bbox": [451.11, 106.12, 48.89, 160.49], "category_id": 1, "id": 257561}, {"segmentation": [[188.74, 333.62, 186.4, 336.55, 186.01, 335.18, 188.35, 327.97, 190.88, 325.24, 191.86, 320.56, 193.81, 319.59, 195.75, 320.95, 196.14, 323.49, 196.73, 325.44, 199.46, 331.29, 199.46, 336.55, 197.7, 336.35, 197.7, 334.79, 197.51, 334.21], [188.35, 341.62, 188.54, 347.85, 187.76, 356.24, 189.91, 356.24, 192.25, 351.17, 191.47, 342.98, 193.03, 342.59, 194.58, 342.2, 194.58, 353.9, 196.14, 355.46, 198.09, 353.9, 198.29, 348.44, 198.48, 344.35, 199.46, 339.08, 197.7, 338.5, 195.36, 340.25]], "area": 236.30589999999984, "iscrowd": 0, "image_id": 201260, "bbox": [186.01, 319.59, 13.45, 36.65], "category_id": 1, "id": 257749}, {"segmentation": [[369.14, 375.25, 367.95, 378.52, 367.36, 380.6, 359.64, 380.3, 357.27, 380.3, 356.38, 375.85, 356.08, 373.77, 352.52, 371.99, 351.04, 369.02, 358.75, 363.38, 359.64, 362.49, 359.64, 359.82, 360.24, 356.85, 361.42, 353.59, 364.1, 352.1, 369.44, 355.67, 372.41, 368.72, 373.89, 369.91, 367.66, 376.44]], "area": 365.92755000000034, "iscrowd": 0, "image_id": 567318, "bbox": [351.04, 352.1, 22.85, 28.5], "category_id": 1, "id": 258003}, {"segmentation": [[564.15, 405.63, 564.15, 417.33, 566.85, 420.93, 572.7, 428.12, 570.9, 430.82, 561.45, 418.23, 557.4, 415.08, 555.15, 419.58, 555.6, 428.12, 552.45, 428.12, 556.05, 415.53, 554.25, 409.68, 552.45, 406.98, 551.1, 403.38, 550.21, 388.54, 552.45, 382.24, 556.5, 375.94, 557.85, 372.79, 556.5, 367.84, 559.2, 364.7, 562.8, 368.29, 565.05, 379.09, 569.55, 387.64, 572.25, 398.88, 569.55, 402.48, 567.3, 401.13, 562.35, 405.18]], "area": 724.1580499999977, "iscrowd": 0, "image_id": 567318, "bbox": [550.21, 364.7, 22.49, 66.12], "category_id": 1, "id": 258655}, {"segmentation": [[513.75, 89.25, 511.06, 60.39, 523.15, 44.27, 529.19, 27.49, 538.59, 23.46, 546.65, 31.52, 548.66, 40.24, 552.69, 61.73, 556.05, 94.62, 556.05, 102.68, 518.45, 100.0, 516.43, 92.61], [521.13, 106.04, 547.99, 106.71, 553.36, 132.22, 540.6, 136.25, 523.15, 109.39], [529.86, 142.96, 546.65, 142.96, 543.29, 173.17, 535.9, 175.86, 529.19, 173.85, 523.15, 153.03, 528.52, 144.98], [540.6, 181.9, 539.26, 185.26, 552.02, 191.97, 521.13, 196.67, 521.13, 184.59]], "area": 4035.9532999999988, "iscrowd": 0, "image_id": 56699, "bbox": [511.06, 23.46, 44.99, 173.21], "category_id": 1, "id": 258792}, {"segmentation": [[275.38, 340.47, 275.2, 338.96, 274.67, 338.25, 273.51, 338.78, 272.89, 340.56, 271.82, 343.22, 272.36, 348.46, 273.25, 355.38, 274.4, 353.96, 275.02, 351.92, 275.55, 347.04]], "area": 43.73729999999992, "iscrowd": 0, "image_id": 307462, "bbox": [271.82, 338.25, 3.73, 17.13], "category_id": 1, "id": 259322}, {"segmentation": [[552.64, 424.01, 547.18, 400.53, 546.9, 387.69, 547.18, 374.86, 548.81, 372.13, 546.08, 368.85, 547.45, 363.39, 553.46, 363.11, 554.55, 366.66, 555.37, 377.86, 550.18, 387.69, 550.18, 403.81, 555.64, 415.55, 553.73, 422.38]], "area": 280.78924999999987, "iscrowd": 0, "image_id": 567318, "bbox": [546.08, 363.11, 9.56, 60.9], "category_id": 1, "id": 259478}, {"segmentation": [[310.33, 356.93, 310.33, 352.45, 310.13, 347.35, 307.68, 345.31, 309.72, 344.49, 310.74, 340.62, 313.39, 344.09, 314.0, 347.14, 318.29, 350.41, 315.84, 351.84, 314.41, 356.73, 314.21, 358.77, 311.35, 362.44, 310.74, 363.46, 310.74, 359.99, 310.74, 357.14]], "area": 88.7237, "iscrowd": 0, "image_id": 307462, "bbox": [307.68, 340.62, 10.61, 22.84], "category_id": 1, "id": 259678}, {"segmentation": [[495.18, 172.24, 490.83, 173.93, 488.17, 176.35, 487.68, 180.46, 486.47, 183.61, 485.75, 186.75, 485.02, 191.59, 484.78, 194.98, 484.78, 200.54, 484.54, 205.62, 484.54, 205.86, 484.78, 207.8, 486.23, 208.53, 489.13, 215.3, 489.86, 218.2, 489.86, 220.38, 489.62, 222.56, 489.62, 226.67, 489.13, 229.33, 488.65, 231.99, 487.68, 234.41, 486.96, 236.83, 486.47, 239.49, 486.23, 242.39, 485.99, 244.08, 487.44, 245.29, 491.07, 245.29, 493.73, 245.29, 495.18, 245.05, 494.94, 243.12, 493.97, 242.15, 493.97, 239.25, 493.97, 237.55, 494.7, 233.44, 496.63, 229.33, 498.09, 224.25, 498.33, 220.38, 498.33, 216.51, 498.57, 212.64, 500.02, 209.49, 501.71, 207.56, 501.71, 206.35, 502.2, 202.72, 502.44, 199.09, 502.92, 197.16, 503.17, 193.77, 503.17, 192.08, 502.92, 189.9, 502.2, 182.88, 501.71, 181.19, 501.47, 178.77, 501.47, 175.87, 502.68, 174.18, 505.1, 171.76, 505.83, 170.79, 503.33, 170.56, 503.0, 170.4, 503.66, 169.56, 503.66, 168.07, 503.83, 166.9, 504.0, 165.9, 503.66, 164.74, 503.33, 162.91, 503.33, 161.08, 503.0, 160.58, 502.5, 159.75, 501.33, 158.75, 501.17, 157.09, 500.34, 157.09, 500.34, 157.92, 499.0, 158.92, 498.17, 159.75, 497.67, 160.41, 497.34, 161.41, 496.84, 163.41, 496.68, 163.74, 496.68, 164.24, 496.68, 164.57, 496.84, 166.07, 497.01, 167.07, 497.01, 168.07, 497.01, 169.23, 497.67, 170.06, 497.67, 170.4, 497.67, 170.73]], "area": 987.7760499999999, "iscrowd": 0, "image_id": 338086, "bbox": [484.54, 157.09, 21.29, 88.2], "category_id": 1, "id": 260226}, {"segmentation": [[345.93, 353.36, 348.19, 352.24, 349.69, 353.92, 350.25, 356.18, 350.25, 359.37, 349.12, 360.87, 347.43, 361.06, 345.0, 360.31, 344.81, 357.87, 345.93, 354.68, 346.87, 353.74]], "area": 36.233699999999935, "iscrowd": 0, "image_id": 307462, "bbox": [344.81, 352.24, 5.44, 8.82], "category_id": 1, "id": 261104}, {"segmentation": [[319.36, 382.05, 320.16, 379.83, 320.16, 379.83, 318.92, 378.68, 316.35, 379.65, 316.08, 384.18, 315.1, 386.75, 315.46, 391.99, 315.28, 393.68, 315.81, 399.36, 316.44, 401.58, 318.39, 393.15, 319.19, 389.15, 319.19, 383.74]], "area": 63.9375, "iscrowd": 0, "image_id": 307462, "bbox": [315.1, 378.68, 5.06, 22.9], "category_id": 1, "id": 262273}, {"segmentation": [[279.88, 0.0, 291.76, 20.07, 296.38, 33.27, 310.24, 28.65, 319.47, 28.65, 330.03, 31.95, 343.89, 35.9, 342.57, 41.84, 320.13, 45.8, 310.9, 45.8, 306.28, 51.74, 301.66, 57.02, 299.68, 70.22, 293.74, 86.72, 287.14, 102.56, 280.54, 114.44, 279.88, 125.66, 276.58, 128.3, 270.64, 126.32, 266.68, 135.56, 267.34, 146.12, 267.34, 156.68, 262.72, 171.19, 262.72, 173.83, 251.5, 173.17, 240.94, 171.19, 243.58, 122.36, 242.26, 85.4, 247.54, 66.26, 265.36, 24.03, 261.4, 17.43, 261.4, 0.0]], "area": 6969.7618, "iscrowd": 0, "image_id": 223838, "bbox": [240.94, 0.0, 102.95, 173.83], "category_id": 1, "id": 264072}, {"segmentation": [[190.47, 234.27, 190.61, 232.92, 191.55, 231.57, 193.03, 232.25, 193.84, 234.0, 193.71, 235.08, 195.06, 236.16, 196.13, 238.85, 189.26, 238.45, 188.72, 236.7, 190.61, 235.48, 190.61, 234.81]], "area": 29.64269999999995, "iscrowd": 0, "image_id": 146049, "bbox": [188.72, 231.57, 7.41, 7.28], "category_id": 1, "id": 264587}, {"segmentation": [[1.03, 391.47, 16.66, 392.57, 16.38, 385.17, 17.21, 379.68, 18.58, 367.06, 21.05, 358.56, 27.63, 362.68, 23.52, 377.76, 33.11, 379.68, 39.42, 383.25, 41.89, 382.15, 41.89, 376.66, 44.91, 371.45, 47.65, 369.81, 50.39, 372.28, 45.18, 392.3, 41.34, 399.7, 41.34, 405.74, 49.02, 400.8, 55.88, 396.69, 57.52, 394.22, 57.8, 389.83, 60.54, 384.89, 67.4, 383.8, 68.5, 390.65, 64.11, 398.88, 42.44, 410.12, 45.18, 415.34, 53.41, 416.16, 54.78, 419.18, 54.23, 421.37, 38.33, 416.98, 41.34, 424.39, 2.4, 424.11, 1.03, 412.04, 21.87, 409.3, 18.58, 405.74, 13.37, 404.09, 7.61, 403.54, 0.75, 395.86, 1.03, 393.67]], "area": 2002.8442499999996, "iscrowd": 0, "image_id": 443604, "bbox": [0.75, 358.56, 67.75, 65.83], "category_id": 2, "id": 266756}, {"segmentation": [[154.23, 407.93, 132.61, 409.37, 100.9, 409.37, 83.6, 452.61, 80.72, 458.38, 63.42, 490.09, 57.66, 540.54, 69.19, 559.28, 92.25, 569.37, 99.46, 563.6, 115.32, 554.95, 167.21, 556.4, 200.36, 557.84, 207.57, 559.28, 221.98, 582.34, 249.37, 579.46, 259.46, 552.07, 262.34, 539.1, 308.47, 518.92, 331.53, 505.95, 338.74, 481.44, 335.86, 454.05, 324.32, 429.55, 311.35, 413.69, 301.26, 394.95, 298.38, 357.48, 285.41, 340.18, 270.99, 332.97, 270.99, 327.21, 265.23, 312.79, 249.37, 312.79, 249.37, 302.7, 252.25, 291.17, 256.58, 268.11, 266.67, 246.49, 279.64, 204.68, 289.73, 164.32, 295.5, 144.14, 305.59, 134.05, 314.23, 100.9, 301.26, 102.34, 269.55, 106.67, 258.02, 113.87, 250.81, 128.29, 253.69, 145.59, 250.81, 160.0, 223.42, 232.07, 223.42, 249.37, 246.49, 286.85, 242.16, 305.59, 226.31, 324.32, 236.4, 337.3, 236.4, 361.8, 250.81, 419.46, 265.23, 487.21, 263.78, 498.74, 249.37, 459.82, 232.07, 416.58, 203.24, 409.37, 193.15, 406.49, 180.18, 390.63, 177.3, 390.63, 167.21, 393.51, 160.0, 406.49]], "area": 49091.35575000002, "iscrowd": 0, "image_id": 260969, "bbox": [57.66, 100.9, 281.08, 481.44], "category_id": 3, "id": 267537}, {"segmentation": [[126.75, 312.66, 142.94, 313.05, 159.92, 314.24, 170.98, 315.82, 183.62, 315.42, 189.15, 314.24, 190.34, 306.73, 187.18, 299.62, 184.02, 297.25, 161.9, 300.41, 157.56, 298.04, 159.92, 293.3, 160.71, 287.38, 159.92, 283.82, 156.37, 281.06, 157.16, 261.71, 155.98, 259.34, 150.45, 260.13, 151.63, 279.48, 151.63, 284.22, 150.45, 286.98, 150.45, 284.61, 138.99, 284.22, 138.2, 286.19, 139.39, 289.75, 128.33, 286.98, 123.98, 290.93, 126.35, 290.93, 124.38, 302.39]], "area": 1561.6157500000004, "iscrowd": 0, "image_id": 307462, "bbox": [123.98, 259.34, 66.36, 56.48], "category_id": 9, "id": 268248}, {"segmentation": [[285.42, 327.47, 285.77, 309.98, 299.41, 296.69, 315.15, 297.04, 328.09, 307.53, 329.13, 331.31, 317.59, 349.85, 298.36, 350.55, 285.77, 334.11]], "area": 1924.8874499999997, "iscrowd": 0, "image_id": 192111, "bbox": [285.42, 296.69, 43.71, 53.86], "category_id": 13, "id": 269220}, {"segmentation": [[221.85, 116.15, 214.88, 123.12, 213.69, 133.68, 221.65, 142.24, 233.2, 142.04, 241.37, 134.67, 240.77, 122.52, 234.0, 116.15]], "area": 587.3095500000001, "iscrowd": 0, "image_id": 51076, "bbox": [213.69, 116.15, 27.68, 26.09], "category_id": 13, "id": 269249}, {"segmentation": [[165.37, 458.63, 168.59, 474.73, 204.03, 474.73, 217.99, 418.9, 224.43, 337.28, 212.62, 297.55, 198.66, 297.55, 182.55, 327.62, 171.81, 389.9]], "area": 7476.015300000001, "iscrowd": 0, "image_id": 193094, "bbox": [165.37, 297.55, 59.06, 177.18], "category_id": 13, "id": 269366}, {"segmentation": [[206.49, 169.19, 252.97, 118.38, 324.32, 122.7, 369.73, 175.68, 369.73, 241.62, 324.32, 292.43, 251.89, 293.51, 206.49, 240.54]], "area": 23409.983650000002, "iscrowd": 0, "image_id": 530876, "bbox": [206.49, 118.38, 163.24, 175.13], "category_id": 13, "id": 269820}, {"segmentation": [[321.53, 379.68, 321.94, 368.94, 331.03, 358.62, 347.14, 358.62, 360.77, 370.59, 360.35, 385.05, 347.96, 396.61, 331.44, 394.96]], "area": 1170.6158500000004, "iscrowd": 0, "image_id": 14027, "bbox": [321.53, 358.62, 39.24, 37.99], "category_id": 13, "id": 269922}, {"segmentation": [[111.49, 253.94, 58.56, 331.64, 56.31, 431.87, 114.86, 494.93, 210.59, 479.17, 278.15, 376.69, 270.27, 270.83, 199.32, 224.66, 112.61, 250.56]], "area": 45297.574199999995, "iscrowd": 0, "image_id": 450318, "bbox": [56.31, 224.66, 221.84, 270.27], "category_id": 13, "id": 270456}, {"segmentation": [[116.25, 2.42, 38.75, 68.08, 49.51, 402.84, 129.17, 471.73, 379.97, 472.81, 440.25, 327.5, 428.41, 124.06, 355.21, 2.42]], "area": 169321.7707, "iscrowd": 0, "image_id": 425381, "bbox": [38.75, 2.42, 401.5, 470.39], "category_id": 13, "id": 271076}, {"segmentation": [[314.56, 191.56, 335.24, 138.23, 357.01, 132.79, 391.84, 121.9, 426.67, 124.08, 452.79, 163.27, 459.32, 182.86, 439.73, 211.16, 411.43, 238.37, 389.66, 267.76, 384.22, 306.94, 376.6, 293.88, 376.6, 269.93, 384.22, 235.1, 383.13, 230.75, 370.07, 229.66, 367.89, 228.57, 354.83, 224.22, 341.77, 215.51, 317.82, 199.18]], "area": 12886.30035, "iscrowd": 0, "image_id": 542173, "bbox": [314.56, 121.9, 144.76, 185.04], "category_id": 16, "id": 272046}, {"segmentation": [[274.44, 331.08, 274.86, 330.24, 276.95, 329.82, 280.72, 331.49, 285.33, 331.91, 287.42, 331.49, 289.1, 330.66, 291.19, 330.66, 292.86, 331.91, 295.79, 332.75, 297.47, 335.68, 298.31, 337.36, 298.31, 338.19, 295.38, 339.45, 293.7, 342.38, 292.44, 342.8, 290.35, 339.87, 286.17, 341.54, 278.21, 341.12, 279.05, 350.33, 278.21, 346.57, 274.44, 347.4, 272.35, 347.4, 273.19, 341.54, 273.19, 338.19, 266.91, 342.38, 268.58, 343.64, 266.07, 346.98, 263.98, 346.15, 263.98, 343.22, 264.4, 339.45, 265.65, 336.52, 273.61, 331.08]], "area": 340.3109, "iscrowd": 0, "image_id": 168001, "bbox": [263.98, 329.82, 34.33, 20.51], "category_id": 19, "id": 273857}, {"segmentation": [[343.99, 292.98, 344.74, 304.89, 346.23, 312.33, 346.97, 322.75, 346.97, 327.22, 346.97, 335.4, 349.2, 341.36, 357.39, 341.36, 363.34, 339.12, 367.81, 336.89, 368.55, 336.15, 369.3, 330.94, 370.04, 327.22, 367.07, 313.82, 367.07, 304.89, 367.07, 295.96, 364.83, 288.51, 359.62, 288.51, 354.41, 291.49], [322.41, 180.59, 324.64, 171.66, 329.85, 167.19, 333.57, 164.21, 337.29, 161.24, 344.74, 158.26, 350.69, 155.28, 359.62, 153.79, 368.55, 151.56, 376.74, 149.33, 384.93, 147.84, 389.39, 147.84, 383.44, 151.56, 379.72, 154.54, 373.02, 159.0, 366.32, 164.96, 357.39, 167.19, 344.74, 173.15, 331.34, 179.1], [603.01, 116.58, 608.96, 130.72, 614.92, 139.65, 620.87, 149.33, 623.85, 155.28, 628.32, 161.98, 633.53, 169.42, 634.27, 173.15, 631.29, 176.12, 631.29, 176.87, 626.08, 181.33, 622.36, 185.05, 620.13, 185.8, 615.66, 186.54, 609.71, 183.57, 603.75, 179.1, 596.31, 172.4, 582.91, 165.7, 575.47, 161.24, 565.79, 165.7, 560.58, 171.66, 553.14, 181.33, 545.7, 192.5, 536.02, 206.64, 533.79, 220.78, 530.81, 229.71, 525.6, 239.39, 518.9, 246.09, 513.69, 252.04, 507.74, 259.48, 498.81, 275.86, 495.83, 286.28, 495.83, 294.47, 495.09, 306.38, 494.34, 318.28, 493.6, 323.49, 493.6, 333.91, 498.06, 339.12, 502.53, 345.82, 508.48, 353.27, 508.48, 354.01, 493.6, 351.03, 489.13, 343.59, 486.15, 333.17, 484.67, 318.28, 485.41, 306.38, 485.41, 293.72, 487.64, 272.14, 487.64, 263.95, 486.15, 255.76, 483.18, 252.04, 475.73, 251.3, 465.31, 252.79, 452.66, 256.51, 440.01, 254.27, 437.03, 240.88, 440.75, 225.99, 444.47, 213.34, 448.19, 205.15, 453.4, 196.96, 463.08, 183.57, 466.8, 180.59, 481.69, 182.82, 498.81, 190.26, 503.27, 194.73, 510.72, 201.43, 515.93, 202.92, 527.83, 205.15, 547.19, 189.52, 545.7, 182.08, 534.53, 169.42, 523.37, 150.82, 515.93, 138.91, 513.69, 125.51, 525.6, 121.79, 537.51, 120.3, 552.4, 115.83, 565.05, 112.86, 576.96, 111.37, 585.15, 109.14, 591.1, 108.39, 595.57, 105.41, 599.29, 97.23, 600.03, 109.14, 603.01, 115.09]], "area": 14151.901850000002, "iscrowd": 0, "image_id": 555782, "bbox": [322.41, 97.23, 311.86, 256.78], "category_id": 19, "id": 274143}, {"segmentation": [[471.41, 288.96, 480.0, 247.08, 490.74, 251.38, 496.11, 266.41, 496.11, 281.45, 485.37, 312.59, 480.0, 332.99, 491.81, 340.51, 491.81, 357.69, 478.93, 349.1, 482.15, 369.5, 476.78, 375.94, 471.41, 380.24, 469.26, 385.61, 460.67, 382.39, 453.15, 370.57, 451.01, 360.91, 451.01, 344.8, 451.01, 327.62, 453.15, 319.03, 455.3, 312.59, 461.74, 305.07, 470.34, 285.74, 472.48, 273.93, 477.85, 256.75]], "area": 3572.573000000001, "iscrowd": 0, "image_id": 242821, "bbox": [451.01, 247.08, 45.1, 138.53], "category_id": 19, "id": 274495}, {"segmentation": [[128.0, 299.09, 124.18, 269.47, 122.27, 262.79, 122.27, 258.01, 124.18, 252.28, 128.96, 246.55, 137.56, 238.91, 143.29, 234.13, 144.24, 232.22, 144.24, 238.91, 143.29, 260.88, 145.2, 282.85, 145.2, 300.04, 144.24, 301.0, 141.38, 300.04, 137.56, 294.31, 133.74, 299.09, 126.09, 300.04]], "area": 1104.7034999999996, "iscrowd": 0, "image_id": 204589, "bbox": [122.27, 232.22, 22.93, 68.78], "category_id": 19, "id": 274503}, {"segmentation": [[238.96, 340.13, 247.57, 340.13, 253.32, 340.13, 254.28, 345.88, 257.15, 348.75, 257.15, 355.45, 259.06, 359.28, 255.23, 357.37, 253.32, 353.54, 251.4, 356.41, 245.66, 355.45, 238.96, 352.58, 236.08, 352.58, 231.3, 357.37, 231.3, 352.58, 225.55, 351.62, 224.59, 355.45, 218.85, 358.33, 219.81, 353.54, 218.85, 348.75, 225.55, 342.05]], "area": 486.8144999999996, "iscrowd": 0, "image_id": 168001, "bbox": [218.85, 340.13, 40.21, 19.15], "category_id": 19, "id": 274583}, {"segmentation": [[360.79, 232.88, 385.74, 232.88, 412.61, 226.16, 431.8, 243.43, 431.8, 263.58, 433.72, 292.37, 436.6, 309.64, 420.28, 309.64, 419.32, 294.29, 416.44, 289.49, 405.89, 293.33, 397.25, 289.49, 386.7, 292.37, 366.55, 292.37, 355.03, 292.37, 358.87, 310.6, 355.99, 310.6, 355.99, 305.8, 348.32, 289.49, 349.28, 288.53, 355.03, 273.18, 352.16, 250.15, 353.11, 242.47]], "area": 5039.837800000001, "iscrowd": 0, "image_id": 204589, "bbox": [348.32, 226.16, 88.28, 84.44], "category_id": 19, "id": 274689}, {"segmentation": [[362.76, 334.1, 365.16, 335.87, 365.08, 337.79, 368.53, 340.67, 371.09, 340.99, 370.29, 339.23, 369.89, 337.71, 369.57, 336.03, 369.25, 334.5, 368.85, 333.62, 364.76, 329.7, 360.92, 328.34, 357.96, 326.18, 353.8, 327.06, 348.12, 326.82, 346.27, 327.46, 344.51, 330.1, 343.87, 332.34, 344.35, 336.11, 344.19, 338.67, 345.63, 337.71, 345.23, 339.39, 344.83, 340.27, 346.27, 340.83, 347.72, 337.95, 349.08, 335.38, 351.96, 336.43, 354.84, 336.43, 353.24, 338.03, 353.96, 340.99, 354.12, 341.15, 355.56, 341.15, 355.72, 338.35, 356.52, 337.39, 356.68, 339.63, 357.08, 342.43, 358.92, 341.23, 359.08, 340.03, 359.32, 337.47, 359.56, 335.55, 360.52, 334.26]], "area": 243.80820000000043, "iscrowd": 0, "image_id": 168001, "bbox": [343.87, 326.18, 27.22, 16.25], "category_id": 19, "id": 274732}, {"segmentation": [[473.93, 136.17, 480.14, 127.21, 490.48, 120.32, 499.44, 119.63, 507.02, 124.45, 527.01, 125.83, 544.25, 127.21, 558.03, 133.41, 573.89, 134.1, 579.4, 135.48, 576.64, 144.44, 568.37, 146.51, 562.86, 153.4, 560.79, 160.99, 552.52, 165.81, 545.62, 160.3, 535.28, 153.4, 520.81, 151.34, 508.4, 150.65, 499.44, 150.65, 487.72, 151.34, 478.76, 151.34, 473.24, 152.71, 471.86, 142.37, 472.55, 141.0]], "area": 2707.11035, "iscrowd": 0, "image_id": 559566, "bbox": [471.86, 119.63, 107.54, 46.18], "category_id": 19, "id": 274863}, {"segmentation": [[287.23, 353.76, 288.82, 346.08, 295.0, 341.58, 300.25, 338.02, 304.65, 338.77, 312.61, 339.33, 313.65, 338.21, 319.08, 338.58, 322.26, 341.11, 323.11, 347.67, 322.45, 352.54, 321.05, 356.47, 319.92, 354.97, 319.17, 352.82, 318.14, 354.97, 316.92, 357.13, 315.33, 356.0, 315.61, 354.97, 317.86, 351.79, 314.68, 347.2, 313.36, 349.45, 305.5, 348.79, 304.65, 350.2, 305.12, 354.88, 305.03, 358.25, 303.43, 357.13, 302.59, 352.35, 301.94, 350.38, 299.97, 355.82, 298.75, 354.79, 298.94, 353.01, 299.97, 348.7, 295.66, 347.57, 293.41, 350.95, 290.88, 355.07, 289.2, 356.29]], "area": 403.9573000000005, "iscrowd": 0, "image_id": 168001, "bbox": [287.23, 338.02, 35.88, 20.23], "category_id": 19, "id": 274887}, {"segmentation": [[152.01, 337.17, 150.53, 330.28, 156.93, 325.36, 165.3, 325.36, 174.65, 326.34, 176.62, 331.27, 177.61, 336.68, 176.13, 341.11, 174.65, 340.62, 174.16, 336.19, 170.71, 335.2, 166.28, 335.2, 162.84, 334.22, 153.49, 335.7]], "area": 243.6724000000002, "iscrowd": 0, "image_id": 168001, "bbox": [150.53, 325.36, 27.08, 15.75], "category_id": 19, "id": 274911}, {"segmentation": [[434.02, 320.38, 437.11, 318.22, 442.82, 318.99, 444.2, 318.84, 446.21, 319.3, 453.15, 325.48, 453.62, 327.94, 455.62, 332.11, 454.54, 333.65, 452.23, 332.26, 450.38, 329.8, 449.14, 327.48, 447.6, 326.56, 446.83, 329.49, 446.67, 333.19, 444.82, 332.57, 445.28, 329.02, 443.12, 328.56, 442.97, 333.19, 442.04, 332.26, 442.04, 328.41, 439.42, 328.1, 438.65, 331.96, 434.95, 331.49, 432.79, 325.32, 432.79, 320.85, 434.79, 319.15]], "area": 209.48649999999952, "iscrowd": 0, "image_id": 168001, "bbox": [432.79, 318.22, 22.83, 15.43], "category_id": 19, "id": 274960}, {"segmentation": [[550.14, 320.01, 555.14, 321.93, 557.06, 326.16, 557.06, 328.85, 555.91, 334.61, 552.83, 335.0, 552.45, 331.54, 552.07, 331.54, 551.3, 332.69, 548.61, 329.62, 546.68, 327.31, 547.07, 330.77, 544.38, 331.54, 542.84, 329.23, 542.84, 325.39, 545.53, 320.78]], "area": 143.92789999999948, "iscrowd": 0, "image_id": 168001, "bbox": [542.84, 320.01, 14.22, 14.99], "category_id": 19, "id": 274981}, {"segmentation": [[94.04, 315.97, 93.07, 317.89, 93.07, 320.54, 93.8, 322.46, 94.28, 323.42, 95.6, 323.06, 95.48, 321.62, 95.96, 319.7, 95.72, 318.13, 96.68, 317.89, 99.09, 318.62, 99.09, 320.78, 98.48, 322.34, 99.09, 323.42, 99.93, 322.82, 100.05, 321.5, 99.93, 320.3, 100.65, 319.58, 101.25, 321.5, 102.21, 322.82, 102.93, 323.3, 103.29, 322.34, 102.57, 321.74, 102.21, 321.14, 101.61, 320.18, 101.49, 318.74, 101.37, 318.13, 104.62, 317.77, 107.14, 317.05, 107.86, 317.05, 108.34, 319.1, 109.3, 320.3, 109.06, 322.1, 109.3, 323.54, 109.91, 323.18, 110.03, 320.66, 110.63, 319.82, 111.35, 321.02, 111.35, 323.67, 111.59, 324.51, 112.19, 324.39, 112.19, 322.7, 112.55, 319.94, 112.31, 318.98, 111.83, 317.77, 112.07, 314.65, 112.43, 314.17, 112.91, 314.89, 112.67, 315.97, 113.27, 317.77, 113.63, 318.01, 113.99, 318.13, 114.23, 316.45, 113.63, 313.93, 112.91, 312.84, 111.83, 311.52, 109.3, 310.56, 106.42, 310.68, 104.62, 310.68, 102.45, 311.4, 100.53, 311.52, 99.57, 311.04, 98.12, 311.76, 97.28, 312.97, 96.32, 313.93, 95.12, 314.53, 94.52, 315.61, 93.92, 315.97]], "area": 158.01414999999997, "iscrowd": 0, "image_id": 168001, "bbox": [93.07, 310.56, 21.16, 13.95], "category_id": 19, "id": 275040}, {"segmentation": [[442.76, 319.07, 441.19, 318.91, 441.19, 317.45, 441.24, 316.24, 440.46, 315.56, 439.94, 315.77, 439.73, 318.13, 439.68, 319.54, 437.9, 318.96, 437.79, 315.88, 437.74, 314.94, 437.11, 314.25, 435.02, 314.52, 434.91, 314.67, 434.65, 318.39, 433.24, 318.07, 433.03, 317.08, 432.35, 315.98, 432.35, 317.29, 431.83, 318.23, 430.46, 317.97, 430.78, 311.38, 430.73, 309.96, 431.41, 309.02, 432.92, 308.03, 435.07, 307.61, 437.58, 308.97, 439.31, 308.45, 440.77, 309.18, 441.98, 310.91, 443.02, 312.37, 443.86, 313.99, 443.6, 315.09, 443.29, 315.62, 442.92, 315.88, 442.4, 316.14, 442.34, 318.34]], "area": 102.29585000000009, "iscrowd": 0, "image_id": 168001, "bbox": [430.46, 307.61, 13.4, 11.93], "category_id": 19, "id": 275206}, {"segmentation": [[21.42, 239.22, 21.7, 235.11, 20.05, 225.52, 22.52, 221.13, 35.4, 221.13, 55.95, 219.49, 62.53, 218.94, 68.83, 220.86, 68.29, 223.87, 70.2, 229.35, 68.56, 230.72, 62.8, 229.63, 57.05, 234.29, 45.81, 231.27, 38.14, 234.29, 32.11, 236.48, 26.08, 236.2, 23.89, 236.75]], "area": 634.8333499999998, "iscrowd": 0, "image_id": 298658, "bbox": [20.05, 218.94, 50.15, 20.28], "category_id": 21, "id": 278076}, {"segmentation": [[479.0, 251.06, 482.56, 242.75, 486.12, 236.42, 488.1, 233.25, 489.69, 228.9, 495.62, 225.34, 499.58, 222.96, 506.31, 224.15, 511.85, 227.32, 522.14, 234.04, 522.14, 250.67, 526.1, 260.56, 520.95, 266.1, 507.5, 271.64, 498.79, 274.81, 485.33, 276.39, 475.44, 276.79, 465.15, 279.95, 465.54, 277.18, 468.31, 271.25, 470.29, 263.33, 470.29, 257.39, 473.46, 251.46, 479.4, 249.48]], "area": 2130.2857999999997, "iscrowd": 0, "image_id": 546562, "bbox": [465.15, 222.96, 60.95, 56.99], "category_id": 21, "id": 278159}, {"segmentation": [[165.03, 398.38, 158.29, 395.86, 157.45, 391.65, 161.66, 383.22, 161.66, 358.8, 159.13, 347.85, 154.92, 345.32, 155.76, 367.22, 148.18, 367.22, 151.55, 348.69, 151.55, 332.69, 146.5, 324.27, 135.55, 302.37, 141.44, 279.63, 146.5, 263.63, 170.08, 255.21, 194.5, 256.05, 209.66, 265.32, 215.56, 275.42, 220.61, 278.79, 220.61, 280.48, 212.19, 304.9, 213.87, 319.22, 210.5, 324.27, 207.14, 337.74, 203.77, 356.27, 202.08, 368.91, 195.34, 378.17, 186.08, 389.12, 181.87, 376.49, 186.92, 370.59, 191.13, 352.9, 191.13, 345.32, 178.5, 354.59, 178.5, 367.22, 178.5, 378.17, 179.34, 384.07, 173.45, 389.96, 170.92, 396.7, 168.39, 397.54]], "area": 7609.93495, "iscrowd": 0, "image_id": 295295, "bbox": [135.55, 255.21, 85.06, 143.17], "category_id": 21, "id": 278326}, {"segmentation": [[100.53, 215.86, 105.42, 214.36, 112.0, 212.67, 129.3, 213.04, 131.37, 213.42, 132.88, 225.46, 135.88, 229.97, 136.45, 235.8, 134.94, 235.8, 134.38, 233.92, 132.5, 230.91, 132.12, 230.53, 131.75, 228.46, 127.42, 230.72, 126.48, 237.49, 121.78, 238.62, 124.41, 235.42, 125.54, 231.47, 124.23, 229.4, 120.28, 229.22, 114.07, 228.09, 114.26, 238.06, 113.13, 239.18, 111.06, 238.43, 111.44, 233.17, 111.06, 228.84, 108.43, 230.34, 105.42, 230.34, 101.66, 237.49, 99.03, 235.8, 102.41, 231.66, 103.92, 228.09, 102.03, 224.52, 96.96, 223.95, 92.82, 226.77, 91.32, 225.27, 93.57, 221.69, 93.01, 217.93, 92.82, 215.3, 94.32, 215.86, 97.52, 215.11, 98.27, 215.11, 99.03, 215.68]], "area": 658.9497000000002, "iscrowd": 0, "image_id": 298658, "bbox": [91.32, 212.67, 45.13, 26.51], "category_id": 21, "id": 278348}, {"segmentation": [[429.04, 270.28, 423.19, 274.78, 406.97, 272.98, 406.97, 265.77, 406.97, 263.52, 411.48, 251.36, 411.48, 244.61, 409.23, 233.35, 408.77, 228.39, 407.87, 220.73, 407.42, 212.63, 407.87, 208.12, 409.23, 204.07, 408.32, 188.76, 406.97, 182.45, 406.97, 176.6, 409.23, 161.73, 409.23, 159.03, 406.97, 152.28, 405.17, 147.77, 405.17, 141.92, 404.01, 136.04, 404.01, 131.39, 427.07, 103.76, 432.27, 101.45, 438.63, 101.45, 456.55, 100.29, 464.64, 100.29, 479.67, 100.29, 489.5, 101.45, 498.17, 104.34, 497.01, 110.7, 496.43, 111.85, 493.54, 113.59, 484.87, 109.54, 481.98, 109.54, 473.31, 108.39, 470.42, 111.85, 469.84, 116.48, 469.84, 119.95, 469.84, 120.52, 469.84, 122.84, 467.53, 130.35, 465.22, 132.66, 460.59, 136.71, 457.13, 142.49, 456.55, 144.8, 453.08, 147.11, 451.35, 152.32, 450.77, 152.89, 440.66, 161.83, 437.48, 171.77, 436.68, 182.9, 436.68, 199.2, 440.26, 206.36, 440.66, 211.93, 443.05, 218.29, 443.44, 223.85, 443.44, 229.42, 441.06, 238.16, 441.06, 239.36, 443.44, 250.89, 444.64, 273.94, 436.68, 274.74, 428.73, 271.56]], "area": 6925.03155, "iscrowd": 0, "image_id": 544209, "bbox": [404.01, 100.29, 94.16, 174.49], "category_id": 21, "id": 278392}, {"segmentation": [[309.03, 254.64, 313.79, 251.17, 316.82, 247.71, 318.55, 245.11, 323.31, 245.55, 325.48, 247.71, 328.51, 244.68, 327.21, 236.89, 322.01, 229.96, 314.22, 225.63, 305.56, 224.76, 287.38, 224.76, 273.52, 236.89, 265.73, 249.44, 261.4, 258.1, 272.66, 254.64, 283.05, 252.47, 287.38, 249.87, 289.98, 245.11, 301.23, 252.91, 303.4, 253.77]], "area": 1339.3432500000006, "iscrowd": 0, "image_id": 295295, "bbox": [261.4, 224.76, 67.11, 33.34], "category_id": 21, "id": 278573}, {"segmentation": [[309.91, 259.86, 330.58, 242.77, 343.3, 251.51, 347.67, 261.85, 352.84, 278.94, 351.25, 299.21, 347.67, 314.71, 337.73, 303.98, 330.18, 295.24, 325.01, 289.67, 318.65, 278.54]], "area": 1709.2633999999998, "iscrowd": 0, "image_id": 295295, "bbox": [309.91, 242.77, 42.93, 71.94], "category_id": 21, "id": 278660}, {"segmentation": [[189.52, 212.86, 198.8, 212.86, 206.71, 212.86, 227.72, 212.31, 231.54, 211.77, 237.81, 209.59, 241.9, 216.41, 242.72, 222.68, 235.9, 221.86, 233.17, 223.23, 229.08, 231.68, 228.54, 239.6, 225.81, 237.69, 225.26, 230.87, 221.44, 230.05, 215.17, 225.41, 206.17, 230.05, 195.53, 232.78, 187.89, 232.23, 186.52, 224.32, 187.89, 214.77]], "area": 913.5228499999997, "iscrowd": 0, "image_id": 298658, "bbox": [186.52, 209.59, 56.2, 30.01], "category_id": 21, "id": 278869}, {"segmentation": [[267.48, 122.7, 273.79, 118.85, 268.18, 114.65, 262.23, 109.4, 260.48, 104.49, 260.48, 103.09, 262.58, 98.89, 265.03, 98.19, 267.48, 98.19, 275.54, 101.69, 280.79, 107.99, 287.44, 102.74, 289.54, 99.94, 292.69, 99.24, 298.3, 97.84, 308.45, 98.89, 311.95, 105.19, 314.05, 108.34, 319.3, 106.59, 321.75, 106.24, 323.15, 113.6, 325.26, 117.45, 326.31, 118.85, 317.2, 120.25, 315.1, 122.7, 324.91, 133.9, 327.36, 143.01, 326.31, 153.51, 319.65, 146.16, 302.5, 146.16, 287.44, 131.8, 275.54, 131.8, 273.44, 125.85, 268.88, 123.75]], "area": 2070.38685, "iscrowd": 0, "image_id": 544209, "bbox": [260.48, 97.84, 66.88, 55.67], "category_id": 21, "id": 278943}, {"segmentation": [[99.07, 1.92, 46.17, 61.56, 25.97, 101.95, 74.06, 92.33, 117.34, 90.41, 167.35, 77.91, 225.06, 62.52, 286.62, 57.71, 364.52, 23.08, 400.11, 19.24, 430.89, 11.54, 430.89, 2.89, 102.91, 0.0]], "area": 21153.02945, "iscrowd": 0, "image_id": 361661, "bbox": [25.97, 0.0, 404.92, 101.95], "category_id": 28, "id": 279689}, {"segmentation": [[262.55, 400.66, 238.19, 363.75, 233.03, 326.1, 239.67, 289.94, 255.16, 270.01, 279.53, 257.47, 295.76, 244.92, 310.53, 231.63, 319.39, 229.41, 337.1, 217.61, 362.93, 212.43, 387.29, 224.99, 404.27, 233.84, 407.21, 224.25, 397.62, 213.91, 398.36, 205.79, 426.41, 220.55, 429.36, 207.27, 434.53, 203.58, 440.43, 182.17, 453.72, 182.17, 458.15, 203.58, 508.34, 212.43, 575.51, 234.58, 632.34, 277.39, 640.0, 286.25, 638.98, 427.0, 289.86, 427.0]], "area": 77673.8045, "iscrowd": 0, "image_id": 205931, "bbox": [233.03, 182.17, 406.97, 244.83], "category_id": 28, "id": 279992}, {"segmentation": [[2.07, 32.09, 31.49, 1.72, 245.93, 0.0, 307.61, 60.55, 333.23, 85.22, 300.02, 96.61, 272.5, 127.92, 260.16, 125.07, 265.86, 93.76, 267.75, 71.94, 252.57, 52.96, 230.75, 48.22, 193.74, 54.86, 184.25, 80.48, 188.05, 114.64, 194.69, 125.07, 175.72, 134.56, 153.89, 138.36, 104.55, 126.02, 43.82, 129.82, 12.51, 107.05, 2.07, 97.56, 3.02, 32.09]], "area": 30385.57470000001, "iscrowd": 0, "image_id": 20367, "bbox": [2.07, 0.0, 331.16, 138.36], "category_id": 28, "id": 280473}, {"segmentation": [[344.85, 219.8, 397.39, 171.08, 387.83, 22.06, 325.74, 1.05, 27.7, 0.09, 2.87, 35.44, 0.0, 162.49, 64.0, 240.82, 163.35, 259.92, 181.5, 270.43, 219.71, 251.32, 219.71, 268.52, 227.35, 266.61, 227.35, 244.64, 226.4, 228.4, 225.44, 207.38, 225.44, 192.1, 225.44, 178.73, 225.44, 165.35, 227.35, 166.31, 247.41, 155.8, 259.83, 167.26, 270.34, 172.99, 272.25, 185.41, 276.07, 195.92, 276.07, 207.38, 273.2, 221.71, 271.29, 228.4, 279.89, 230.31, 293.26, 232.22, 299.95, 231.26, 315.23, 231.26, 320.97, 230.31, 333.38, 217.89]], "area": 86035.3354, "iscrowd": 0, "image_id": 314319, "bbox": [0.0, 0.09, 397.39, 270.34], "category_id": 28, "id": 280760}, {"segmentation": [[82.23, 175.04, 120.98, 165.78, 130.82, 165.2, 175.94, 171.56, 207.17, 184.29, 137.18, 188.92, 133.13, 243.87, 131.4, 191.23, 66.03, 181.4, 101.89, 171.56]], "area": 2185.449499999999, "iscrowd": 0, "image_id": 531032, "bbox": [66.03, 165.2, 141.14, 78.67], "category_id": 28, "id": 280989}, {"segmentation": [[174.73, 132.94, 139.65, 142.97, 136.96, 143.86, 135.71, 147.44, 133.03, 147.26, 129.62, 143.14, 101.35, 137.42, 56.07, 129.9, 18.3, 126.86, 9.71, 126.68, 0.59, 130.26, 4.52, 125.96, 5.06, 122.2, 2.56, 104.67, 0.0, 90.89, 0.0, 84.26, 17.05, 67.26, 37.28, 47.75, 50.88, 42.92, 84.52, 33.79, 99.56, 22.52, 141.26, 21.09, 173.29, 12.67, 186.18, 9.27, 214.99, 17.51, 230.39, 17.69, 261.53, 18.94, 276.2, 26.99, 292.67, 28.42, 312.18, 36.84, 358.71, 60.28, 364.26, 64.04, 358.71, 64.04, 332.22, 78.89, 310.74, 95.54, 300.18, 106.1, 299.29, 107.53, 300.72, 111.82, 298.75, 111.82, 295.89, 108.6, 261.35, 113.97, 240.05, 118.27, 190.3, 130.26]], "area": 31958.670999999995, "iscrowd": 0, "image_id": 203655, "bbox": [0.0, 9.27, 364.26, 138.17], "category_id": 28, "id": 281110}, {"segmentation": [[104.03, 136.86, 109.06, 130.15, 111.58, 131.83, 166.95, 117.57, 260.07, 110.86, 298.66, 98.27, 346.48, 88.21, 411.07, 84.85, 416.11, 84.85, 417.79, 77.3, 423.66, 73.95, 434.56, 73.95, 435.4, 73.11, 411.07, 57.17, 382.55, 37.87, 339.77, 20.25, 318.79, 17.74, 263.42, 16.06, 250.84, 18.58, 231.54, 24.45, 198.83, 34.52, 166.11, 53.81, 144.3, 76.46, 109.06, 120.93, 101.51, 136.03, 102.35, 137.7]], "area": 20417.153649999997, "iscrowd": 0, "image_id": 194362, "bbox": [101.51, 16.06, 333.89, 121.64], "category_id": 28, "id": 281210}, {"segmentation": [[189.04, 34.85, 202.3, 33.42, 221.88, 29.95, 232.86, 27.33, 249.1, 29.24, 267.37, 29.72, 278.24, 29.24, 284.69, 32.58, 297.82, 34.61, 321.46, 48.82, 335.32, 57.3, 331.14, 58.49, 325.29, 60.28, 311.91, 67.81, 307.85, 74.13, 307.85, 76.88, 303.43, 75.81, 279.19, 81.06, 277.16, 82.73, 285.05, 101.0, 287.08, 105.9, 285.05, 108.64, 281.34, 105.3, 277.76, 92.88, 272.63, 83.21, 265.7, 85.36, 248.87, 90.02, 240.87, 93.6, 235.49, 92.88, 192.03, 90.25, 169.22, 91.45, 166.59, 91.33, 156.68, 83.57, 144.74, 77.24, 136.5, 74.61, 140.32, 71.03, 156.32, 56.1, 169.7, 46.31, 179.01, 42.97, 184.39, 37.95]], "area": 8815.226800000002, "iscrowd": 0, "image_id": 577869, "bbox": [136.5, 27.33, 198.82, 81.31], "category_id": 28, "id": 281407}, {"segmentation": [[430.31, 105.57, 479.25, 179.46, 517.63, 215.92, 632.78, 274.45, 640.0, 284.05, 638.54, 256.22, 613.59, 200.57, 596.32, 170.82, 566.57, 145.88, 523.39, 127.64, 472.53, 101.74, 432.23, 87.34, 428.4, 89.26]], "area": 15100.027999999998, "iscrowd": 0, "image_id": 205931, "bbox": [428.4, 87.34, 211.6, 196.71], "category_id": 28, "id": 281511}, {"segmentation": [[105.54, 370.9, 38.03, 349.03, 0.0, 299.59, 0.0, 150.32, 31.38, 105.63, 107.44, 50.48, 208.22, 4.85, 389.82, 0.09, 452.57, 3.89, 547.65, 43.83, 580.93, 107.53, 564.77, 174.09, 530.54, 221.62, 515.32, 231.13, 508.67, 242.54, 508.67, 250.15, 502.01, 255.85, 441.16, 300.54, 427.85, 309.1, 348.94, 345.23, 361.3, 294.83, 353.69, 278.67, 370.81, 271.07, 332.77, 258.7, 322.32, 251.1, 326.12, 220.67, 329.92, 186.45, 329.92, 165.53, 328.97, 132.25, 313.76, 107.53, 277.63, 92.32, 248.15, 87.56, 227.24, 106.58, 199.66, 128.45, 192.06, 147.46, 183.5, 183.59, 173.99, 213.07, 170.19, 240.64, 167.34, 266.31, 152.13, 275.82, 146.42, 312.9, 146.42, 358.54, 152.13, 369.95], [316.61, 290.08, 345.13, 360.44, 351.79, 349.98, 322.32, 269.16]], "area": 127017.30959999996, "iscrowd": 0, "image_id": 443604, "bbox": [0.0, 0.09, 580.93, 370.81], "category_id": 28, "id": 281726}, {"segmentation": [[156.06, 98.93, 206.17, 83.18, 214.77, 80.32, 244.83, 77.45, 276.33, 74.59, 309.26, 86.04, 335.03, 97.5, 356.51, 100.36, 370.83, 116.11, 400.89, 131.86, 423.8, 140.45, 433.83, 146.18, 451.01, 177.68, 469.62, 207.74, 462.46, 209.18, 456.73, 236.38, 412.35, 219.2, 379.42, 220.63, 366.53, 214.9, 352.21, 186.27, 342.19, 166.22, 307.83, 157.63, 289.22, 163.36, 272.04, 177.68, 236.24, 156.2, 201.88, 141.88, 180.4, 127.57, 164.65, 116.11, 160.36, 103.23], [297.81, 243.54, 277.76, 279.33, 274.9, 277.9, 289.22, 237.81, 293.51, 239.24]], "area": 22777.60444999998, "iscrowd": 0, "image_id": 417720, "bbox": [156.06, 74.59, 313.56, 204.74], "category_id": 28, "id": 281762}, {"segmentation": [[397.54, 188.37, 435.26, 176.43, 450.35, 171.4, 462.29, 170.14, 488.06, 177.06, 491.84, 180.83, 491.84, 185.23, 489.32, 188.37, 459.15, 189.63, 434.63, 190.89, 398.8, 190.89], [497.49, 179.57, 510.69, 182.72, 516.35, 185.23, 494.98, 187.12]], "area": 1308.9317499999986, "iscrowd": 0, "image_id": 531032, "bbox": [397.54, 170.14, 118.81, 20.75], "category_id": 28, "id": 282073}, {"segmentation": [[248.61, 355.77, 250.01, 317.61, 245.83, 317.23, 244.88, 315.71, 243.17, 315.33, 242.6, 317.04, 238.61, 316.66, 238.04, 315.52, 235.95, 315.71, 234.43, 317.61, 231.39, 316.85, 230.63, 314.95, 229.68, 314.57, 228.36, 316.09, 225.51, 314.95, 226.27, 313.62, 224.75, 313.05, 223.8, 314.95, 219.43, 313.43, 219.24, 310.96, 219.24, 308.49, 223.23, 307.16, 241.65, 301.84, 243.17, 300.13, 258.94, 299.94, 261.6, 303.36, 282.3, 309.06, 282.3, 313.62, 283.82, 314.76, 281.73, 317.23, 280.4, 316.47, 279.26, 316.66, 279.26, 317.42, 274.32, 317.8, 274.32, 316.28, 272.61, 316.28, 272.42, 317.8, 268.24, 318.18, 267.48, 316.85, 265.96, 316.85, 265.02, 318.74, 261.22, 318.18, 261.22, 316.66, 259.89, 316.28, 259.7, 318.37, 254.76, 317.99, 254.0, 316.66, 252.1, 316.28, 250.2, 355.21]], "area": 875.9506499999999, "iscrowd": 0, "image_id": 2114, "bbox": [219.24, 299.94, 64.58, 55.83], "category_id": 28, "id": 282236}, {"segmentation": [[250.3, 314.51, 299.0, 273.74, 347.7, 94.79, 229.91, 4.18, 4.53, 0.0, 3.4, 259.02, 45.3, 239.76, 19.25, 188.8, 24.92, 167.28, 26.05, 137.83, 40.77, 110.65, 94.0, 103.85, 124.58, 114.04, 148.37, 134.43, 154.03, 183.13, 155.16, 209.18, 155.16, 217.11, 155.16, 225.04, 249.17, 278.27]], "area": 61838.86154999999, "iscrowd": 0, "image_id": 56594, "bbox": [3.4, 0.0, 344.3, 314.51], "category_id": 28, "id": 282600}, {"segmentation": [[10.95, 8.82, 10.4, 17.89, 8.2, 19.54, 0.5, 18.99, 1.33, 8.54, 3.53, 0.57, 73.08, 0.02, 119.78, 0.0, 124.76, 0.85, 124.21, 4.14, 118.99, 10.74, 117.07, 9.37, 115.69, 11.57, 105.79, 12.67, 87.38, 15.84, 78.85, 16.73, 76.41, 16.11, 73.24, 9.79, 73.97, 6.62, 72.24, 10.91, 71.14, 18.3, 50.26, 17.34, 17.01, 17.57, 12.6, 9.09]], "area": 1879.9859000000001, "iscrowd": 0, "image_id": 289693, "bbox": [0.5, 0.0, 124.26, 19.54], "category_id": 28, "id": 282792}, {"segmentation": [[427.0, 544.74, 427.0, 544.74, 422.7, 553.67, 337.86, 528.37, 317.02, 534.33, 294.7, 476.28, 293.21, 471.81, 302.14, 464.37, 302.14, 464.37, 250.05, 334.88, 211.35, 361.67, 203.91, 327.44, 203.91, 327.44, 189.02, 294.7, 181.58, 285.77, 180.09, 272.37, 192.0, 242.6, 192.0, 242.6, 193.49, 226.23, 171.16, 221.77, 154.79, 233.67, 130.98, 229.21, 114.6, 227.72, 107.16, 221.77, 90.79, 220.28, 84.84, 235.16, 84.84, 235.16, 87.81, 253.02, 72.93, 311.07, 66.98, 352.74, 66.98, 385.49, 66.98, 385.49, 66.98, 385.49, 77.4, 416.74, 62.51, 421.21, 62.51, 421.21, 1.49, 450.98, 1.49, 224.74, 43.16, 199.44, 93.77, 148.84, 181.58, 125.02, 181.58, 125.02, 264.93, 83.35, 331.91, 89.3, 427.0, 81.86, 427.0, 223.26, 394.42, 257.49, 352.74, 305.12, 352.74, 322.98, 334.88, 317.02, 266.42, 334.88, 317.02, 458.42, 328.93, 452.47, 351.26, 498.6, 354.23, 513.49, 346.79, 519.44, 346.79, 519.44, 427.0, 535.81, 427.0, 535.81]], "area": 85745.56610000004, "iscrowd": 0, "image_id": 538843, "bbox": [1.49, 81.86, 425.51, 471.81], "category_id": 28, "id": 283514}, {"segmentation": [[559.46, 306.43, 547.42, 247.85, 494.33, 253.87, 485.02, 261.53, 448.34, 263.18, 461.48, 242.93, 475.16, 228.69, 522.79, 210.08, 544.14, 204.6, 581.36, 205.15, 606.0, 206.79, 639.94, 234.71, 636.11, 238.55, 552.35, 249.49, 564.39, 306.97]], "area": 6564.997950000001, "iscrowd": 0, "image_id": 165773, "bbox": [448.34, 204.6, 191.6, 102.37], "category_id": 28, "id": 283817}, {"segmentation": [[1.91, 286.84, 99.57, 316.52, 163.72, 373.0, 189.57, 421.83, 1.91, 422.79]], "area": 17399.094050000003, "iscrowd": 0, "image_id": 205931, "bbox": [1.91, 286.84, 187.66, 135.95], "category_id": 28, "id": 283885}, {"segmentation": [[465.49, 309.2, 481.35, 291.07, 481.35, 283.15, 487.01, 272.95, 492.67, 278.62, 504.0, 259.36, 525.52, 221.99, 542.51, 197.07, 570.82, 169.89, 603.67, 141.57, 637.64, 115.52, 639.91, 113.26, 638.78, 199.33, 612.73, 226.52, 593.47, 252.57, 561.76, 285.41, 548.17, 293.34, 526.65, 304.67, 522.12, 302.4, 519.86, 325.05, 515.33, 338.64, 504.0, 348.84, 501.73, 351.1, 490.41, 351.1, 481.35, 348.84, 479.08, 336.38, 476.82, 325.05, 465.49, 311.46], [457.56, 359.03, 449.64, 339.78, 431.51, 359.03, 439.44, 369.22, 443.97, 373.75], [406.6, 417.92, 403.2, 420.19, 403.2, 430.38, 407.73, 436.04, 413.39, 441.71, 421.32, 441.71, 429.25, 433.78, 431.51, 426.98, 431.51, 422.45, 429.25, 420.19, 421.32, 419.06, 417.92, 419.06, 419.06, 415.66, 408.86, 413.39, 404.33, 416.79]], "area": 16194.188150000004, "iscrowd": 0, "image_id": 56594, "bbox": [403.2, 113.26, 236.71, 328.45], "category_id": 28, "id": 284008}, {"segmentation": [[79.1, 303.46, 113.62, 244.49, 201.35, 197.03, 284.76, 211.42, 306.34, 273.26, 273.26, 356.67, 261.75, 363.87, 171.15, 405.57, 90.61, 385.44, 71.91, 314.97, 80.54, 300.58]], "area": 34514.0024, "iscrowd": 0, "image_id": 495931, "bbox": [71.91, 197.03, 234.43, 208.54], "category_id": 28, "id": 284025}, {"segmentation": [[4.31, 287.64, 51.78, 238.74, 96.36, 205.66, 155.33, 176.9, 211.42, 156.76, 248.81, 143.82, 276.13, 140.94, 279.01, 129.44, 276.13, 125.12, 276.13, 116.49, 287.64, 116.49, 290.52, 125.12, 290.52, 132.31, 293.39, 139.51, 333.66, 130.88, 394.07, 133.75, 445.84, 149.57, 491.87, 163.96, 516.31, 175.46, 526.38, 185.53, 622.74, 244.49, 640.0, 261.75, 640.0, 276.13, 593.98, 306.34, 566.65, 329.35, 563.78, 333.66, 539.33, 307.78, 527.82, 283.33, 514.88, 277.57, 513.44, 258.88, 499.06, 230.11, 480.36, 214.29, 431.46, 202.79, 412.76, 208.54, 385.44, 220.04, 368.18, 244.49, 356.67, 264.63, 359.55, 294.83, 356.67, 306.34, 346.61, 326.47, 358.11, 340.85, 362.43, 348.04, 325.03, 349.48, 348.04, 473.17, 337.98, 474.61, 316.4, 348.04, 248.81, 348.04, 208.54, 348.04, 184.09, 350.92, 182.65, 360.99, 176.9, 358.11, 175.46, 352.36, 71.91, 372.49, 28.76, 384.0, 27.33, 384.0, 27.33, 389.75, 15.82, 396.94, 17.26, 385.44, 1.44, 363.87]], "area": 86792.75349999998, "iscrowd": 0, "image_id": 165388, "bbox": [1.44, 116.49, 638.56, 358.12], "category_id": 28, "id": 284138}, {"segmentation": [[1.12, 141.14, 89.37, 146.83, 144.64, 206.14, 204.18, 248.36, 183.78, 337.56, 191.84, 416.31, 116.16, 452.1, 40.98, 504.55, 23.9, 520.68, 2.07, 516.89, 0.0, 143.52]], "area": 56372.5841, "iscrowd": 0, "image_id": 545806, "bbox": [0.0, 141.14, 204.18, 379.54], "category_id": 28, "id": 284572}, {"segmentation": [[96.1, 344.62, 95.96, 319.16, 94.18, 317.93, 94.18, 317.65, 92.27, 317.52, 90.62, 319.57, 86.52, 319.16, 84.74, 317.52, 83.51, 317.65, 82.82, 319.43, 80.22, 318.47, 78.17, 317.24, 76.52, 317.65, 75.7, 317.93, 74.06, 318.89, 72.42, 318.47, 72.28, 316.28, 70.64, 317.65, 70.5, 317.79, 69.27, 318.47, 68.04, 317.93, 65.3, 317.11, 65.57, 314.5, 65.86, 313.56, 64.54, 311.39, 64.66, 310.25, 66.94, 309.43, 70.76, 308.91, 73.35, 307.62, 75.81, 307.04, 77.75, 306.58, 78.4, 305.94, 81.12, 305.42, 83.87, 303.92, 87.36, 303.92, 87.03, 303.5, 87.28, 301.26, 89.94, 300.76, 91.1, 300.09, 92.27, 300.68, 94.93, 299.59, 97.34, 301.26, 99.13, 300.87, 101.99, 298.97, 102.57, 299.85, 104.78, 300.29, 105.44, 302.27, 108.0, 302.12, 108.37, 303.29, 112.55, 303.37, 112.85, 304.69, 117.25, 304.32, 117.76, 305.42, 121.43, 304.98, 121.36, 305.94, 123.85, 306.3, 124.66, 307.18, 126.71, 307.26, 127.59, 308.14, 128.77, 308.43, 128.84, 309.82, 128.25, 311.36, 128.4, 312.61, 127.88, 314.89, 124.88, 313.27, 124.95, 312.39, 123.63, 314.15, 121.06, 314.23, 119.08, 316.65, 116.81, 316.43, 116.37, 315.4, 114.9, 317.23, 112.18, 317.53, 110.5, 315.69, 107.2, 318.19, 104.7, 318.55, 102.65, 317.09, 101.11, 317.45, 100.01, 318.85, 98.1, 318.77, 97.39, 344.92]], "area": 874.5526499999999, "iscrowd": 0, "image_id": 2114, "bbox": [64.54, 298.97, 64.3, 45.95], "category_id": 28, "id": 284704}, {"segmentation": [[76.37, 1.19, 132.45, 35.8, 152.74, 56.08, 226.72, 76.37, 256.55, 91.88, 307.86, 89.49, 361.56, 93.07, 427.19, 65.63, 471.34, 56.08, 470.14, 36.99, 479.69, 1.19]], "area": 26473.88525, "iscrowd": 0, "image_id": 275917, "bbox": [76.37, 1.19, 403.32, 91.88], "category_id": 28, "id": 285119}, {"segmentation": [[125.86, 371.53, 130.68, 363.5, 138.71, 357.4, 146.1, 353.87, 151.24, 352.26, 152.52, 350.01, 153.48, 351.62, 161.19, 351.94, 177.25, 357.08, 185.93, 363.18, 181.43, 363.5, 176.93, 365.11, 173.4, 366.39, 173.08, 368.32, 171.47, 366.39, 167.3, 367.04, 164.41, 368.0, 154.77, 369.61, 154.45, 371.85, 151.56, 369.93, 142.88, 371.21, 136.46, 372.5, 132.93, 372.82, 131.0, 376.35, 132.6, 372.5, 127.14, 371.21]], "area": 733.9623000000004, "iscrowd": 0, "image_id": 493245, "bbox": [125.86, 350.01, 60.07, 26.34], "category_id": 28, "id": 285250}, {"segmentation": [[335.35, 192.74, 352.46, 189.16, 353.65, 177.23, 346.49, 175.24, 344.5, 173.65, 338.93, 178.02, 334.95, 178.02, 331.77, 190.35], [358.82, 188.37, 394.23, 188.76, 375.13, 184.39, 365.98, 180.41, 359.22, 187.17], [300.34, 192.34, 314.27, 193.14, 312.28, 187.57, 302.33, 191.55]], "area": 453.25559999999996, "iscrowd": 0, "image_id": 531032, "bbox": [300.34, 173.65, 93.89, 19.49], "category_id": 28, "id": 286216}, {"segmentation": [[141.46, 68.85, 139.97, 52.83, 119.99, 54.15, 112.72, 54.48, 97.69, 55.8, 93.23, 54.15, 102.32, 43.74, 130.72, 30.69, 137.0, 29.7, 137.5, 28.55, 139.64, 29.7, 167.39, 35.98, 179.28, 41.1, 179.61, 42.92, 162.43, 52.83, 152.03, 52.99, 142.29, 53.49, 142.12, 68.51], [142.01, 90.01, 140.73, 76.23, 141.58, 76.23, 142.85, 90.86]], "area": 1434.92425, "iscrowd": 0, "image_id": 577869, "bbox": [93.23, 28.55, 86.38, 62.31], "category_id": 28, "id": 286941}, {"segmentation": [[398.73, 367.05, 399.82, 366.51, 402.55, 313.06, 405.64, 312.69, 406.55, 314.15, 409.64, 314.15, 412.0, 313.24, 414.91, 313.78, 417.45, 313.78, 419.09, 313.06, 421.64, 313.97, 424.73, 313.24, 426.91, 313.97, 429.27, 313.78, 430.91, 314.33, 432.36, 313.24, 432.36, 308.15, 411.09, 301.42, 409.27, 299.97, 401.82, 298.33, 397.64, 298.88, 391.46, 299.42, 389.46, 301.78, 370.91, 307.78, 370.73, 312.87, 373.28, 312.69, 376.37, 312.51, 378.0, 312.87, 379.82, 313.6, 382.73, 312.15, 383.82, 312.51, 387.09, 313.24, 388.91, 312.69, 390.0, 312.87, 394.55, 313.42, 399.64, 313.06]], "area": 747.9397000000005, "iscrowd": 0, "image_id": 2114, "bbox": [370.73, 298.33, 61.63, 68.72], "category_id": 28, "id": 287102}, {"segmentation": [[525.83, 308.98, 546.69, 302.34, 555.33, 298.51, 563.0, 297.55, 567.8, 301.38, 588.91, 309.06, 587.95, 315.78, 560.13, 315.78, 559.17, 352.24, 556.29, 315.78, 539.98, 316.74, 529.42, 316.74, 526.54, 310.98]], "area": 856.2428999999993, "iscrowd": 0, "image_id": 2114, "bbox": [525.83, 297.55, 63.08, 54.69], "category_id": 28, "id": 287323}, {"segmentation": [[301.2, 342.79, 306.02, 337.38, 305.42, 330.16, 309.03, 330.76, 308.43, 336.17, 310.23, 341.59, 313.24, 344.6, 315.65, 380.71, 307.22, 377.1, 300.6, 377.1, 298.19, 380.11, 298.19, 342.79, 301.2, 343.4]], "area": 621.7654500000002, "iscrowd": 0, "image_id": 121316, "bbox": [298.19, 330.16, 17.46, 50.55], "category_id": 44, "id": 288222}, {"segmentation": [[273.87, 378.96, 278.36, 381.66, 284.12, 381.3, 288.97, 380.4, 290.77, 379.32, 291.13, 351.46, 286.45, 346.6, 285.91, 343.73, 284.29, 342.47, 285.19, 339.41, 283.4, 338.16, 282.32, 337.98, 281.42, 338.69, 280.88, 339.23, 280.7, 342.29, 279.44, 343.55, 279.62, 347.14, 276.2, 348.22, 274.41, 349.48]], "area": 597.981649999999, "iscrowd": 0, "image_id": 121316, "bbox": [273.87, 337.98, 17.26, 43.68], "category_id": 44, "id": 288334}, {"segmentation": [[254.61, 340.53, 254.61, 337.6, 257.93, 334.08, 261.64, 338.38, 261.64, 341.9, 266.92, 346.19, 265.94, 375.3, 256.76, 377.26, 248.55, 374.91, 249.14, 343.66, 251.48, 342.29, 254.8, 340.72]], "area": 632.8611500000002, "iscrowd": 0, "image_id": 121316, "bbox": [248.55, 334.08, 18.37, 43.18], "category_id": 44, "id": 288724}, {"segmentation": [[429.93, 86.27, 433.59, 58.5, 436.14, 43.52, 441.26, 38.41, 445.28, 32.93, 454.41, 33.66, 456.61, 40.23, 456.97, 50.1, 450.76, 86.64]], "area": 1075.7748000000015, "iscrowd": 0, "image_id": 111705, "bbox": [429.93, 32.93, 27.04, 53.71], "category_id": 44, "id": 289010}, {"segmentation": [[394.51, 70.71, 394.28, 60.14, 395.43, 56.47, 400.02, 53.94, 400.02, 50.26, 399.79, 45.21, 403.24, 44.06, 407.37, 44.06, 408.98, 47.05, 408.75, 49.81, 408.23, 71.37, 406.46, 73.73, 394.97, 73.73]], "area": 347.7211000000006, "iscrowd": 0, "image_id": 111705, "bbox": [394.28, 44.06, 14.7, 29.67], "category_id": 44, "id": 289082}, {"segmentation": [[425.05, 49.77, 430.84, 46.87, 433.73, 47.29, 435.38, 48.94, 430.84, 72.07, 430.01, 74.13, 425.05, 75.37, 422.16, 74.96, 421.75, 60.09, 423.82, 51.42]], "area": 278.16934999999944, "iscrowd": 0, "image_id": 111705, "bbox": [421.75, 46.87, 13.63, 28.5], "category_id": 44, "id": 289092}, {"segmentation": [[222.36, 359.62, 222.19, 353.75, 225.54, 351.74, 226.72, 349.73, 227.05, 354.26, 227.05, 356.94, 227.05, 357.61, 223.36, 359.96], [236.27, 358.28, 234.26, 353.59, 237.11, 352.41, 240.13, 352.41, 239.96, 355.77, 237.95, 357.78]], "area": 56.52629999999979, "iscrowd": 0, "image_id": 2114, "bbox": [222.19, 349.73, 17.94, 10.23], "category_id": 62, "id": 289961}, {"segmentation": [[78.42, 425.35, 49.0, 422.22, 38.98, 420.97, 28.97, 416.59, 3.3, 400.94, 2.05, 538.66, 59.02, 531.15, 61.52, 541.79, 70.29, 542.42, 74.04, 538.04, 79.68, 526.77, 87.19, 440.38, 84.68, 428.48]], "area": 9501.9695, "iscrowd": 0, "image_id": 371714, "bbox": [2.05, 400.94, 85.14, 141.48], "category_id": 63, "id": 290863}, {"segmentation": [[363.76, 186.6, 364.02, 187.52, 364.81, 190.81, 365.08, 193.18, 364.55, 194.89, 361.78, 197.13, 364.81, 212.15, 364.29, 214.65, 370.21, 213.33, 371.79, 213.07, 377.19, 214.25, 377.59, 214.25, 378.64, 211.62, 379.43, 207.67, 379.96, 202.27, 380.35, 200.03, 379.96, 198.19, 378.64, 196.34, 374.69, 189.36, 374.43, 187.91, 374.43, 185.41, 374.43, 184.49, 372.85, 182.51, 371.79, 180.8, 370.48, 181.33, 369.29, 183.3, 368.63, 184.36, 366.39, 186.07, 364.94, 186.86]], "area": 420.23960000000005, "iscrowd": 0, "image_id": 302680, "bbox": [361.78, 180.8, 18.57, 33.85], "category_id": 64, "id": 291720}, {"segmentation": [[14.54, 127.62, 8.95, 127.62, 8.95, 125.39, 3.36, 113.08, 4.47, 109.73, 5.59, 105.25, 5.59, 103.02, 5.59, 103.02, 5.59, 97.42, 5.59, 91.83, 5.59, 86.24, 8.95, 80.64, 8.95, 78.41, 10.07, 78.41, 16.78, 87.36, 29.08, 101.9, 29.08, 109.73, 24.61, 124.27, 19.02, 127.62, 17.9, 127.62, 11.19, 127.62]], "area": 846.3462999999999, "iscrowd": 0, "image_id": 445214, "bbox": [3.36, 78.41, 25.72, 49.21], "category_id": 64, "id": 291976}, {"segmentation": [[132.81, 597.07, 127.33, 594.33, 117.74, 591.6, 113.64, 590.23, 95.84, 592.96, 82.15, 595.7, 71.19, 595.7, 56.13, 595.7, 34.23, 595.7, 28.75, 592.96, 28.75, 584.75, 31.49, 575.17, 31.49, 560.11, 30.12, 545.05, 30.12, 529.98, 26.01, 509.45, 20.54, 493.02, 21.91, 467.0, 27.38, 447.84, 27.38, 427.3, 28.75, 419.09, 31.49, 408.13, 42.44, 376.64, 42.44, 369.8, 27.38, 364.32, 24.64, 354.74, 30.12, 336.94, 26.01, 325.98, 21.91, 309.56, 24.64, 283.54, 21.91, 278.07, 27.38, 264.37, 31.49, 252.05, 39.7, 242.47, 43.81, 236.99, 49.29, 231.51, 54.77, 226.04, 54.77, 226.04, 56.13, 221.93, 68.46, 227.41, 78.04, 228.78, 84.89, 232.88, 93.1, 239.73, 94.47, 246.58, 99.95, 254.79, 109.53, 260.27, 127.33, 260.27, 136.91, 257.53, 143.76, 249.31, 142.39, 250.68, 143.76, 236.99, 149.23, 245.21, 151.97, 263.0, 157.45, 278.07, 158.82, 291.76, 157.45, 302.71, 157.45, 316.4, 160.19, 332.83, 162.93, 342.41, 167.03, 349.26, 179.36, 360.21, 191.68, 362.95, 175.25, 373.9, 154.71, 379.38, 164.3, 401.29, 160.19, 529.98, 158.82, 538.2, 154.71, 547.78, 153.34, 558.74, 154.71, 568.32, 153.34, 580.64, 156.08, 587.49, 154.71, 591.6, 143.76, 595.7, 132.81, 592.96]], "area": 46436.67545, "iscrowd": 0, "image_id": 61203, "bbox": [20.54, 221.93, 171.14, 375.14], "category_id": 64, "id": 292743}, {"segmentation": [[370.79, 268.82, 348.31, 281.18, 342.7, 318.26, 352.81, 385.67, 377.53, 404.78, 378.65, 283.43, 379.78, 98.03, 365.17, 90.17, 338.2, 101.4, 323.6, 155.34, 335.96, 199.16, 361.8, 220.51, 373.03, 255.34]], "area": 9931.281949999993, "iscrowd": 0, "image_id": 445214, "bbox": [323.6, 90.17, 56.18, 314.61], "category_id": 64, "id": 292949}, {"segmentation": [[283.81, 171.0, 280.74, 172.44, 283.09, 175.33, 282.18, 179.85, 280.56, 186.71, 278.75, 193.57, 277.31, 197.01, 276.4, 199.35, 276.77, 201.34, 282.55, 196.1, 285.98, 184.91, 285.62, 178.04, 285.62, 173.89]], "area": 115.91900000000035, "iscrowd": 0, "image_id": 480818, "bbox": [276.4, 171.0, 9.58, 30.34], "category_id": 32, "id": 293003}, {"segmentation": [[177.91, 509.69, 212.73, 516.42, 229.58, 522.04, 240.81, 526.53, 252.04, 532.15, 276.75, 589.43, 291.35, 606.27, 318.3, 522.04, 313.81, 515.3, 292.47, 511.93, 282.36, 506.32, 275.62, 502.95, 274.5, 490.59, 289.1, 462.51, 292.47, 449.04, 286.86, 436.68, 277.87, 433.31, 256.53, 432.19, 236.32, 432.19, 202.62, 442.3, 185.77, 447.91, 162.19, 462.51, 154.33, 470.38]], "area": 12890.106299999998, "iscrowd": 0, "image_id": 348279, "bbox": [154.33, 432.19, 163.97, 174.08], "category_id": 32, "id": 293199}, {"segmentation": [[497.44, 172.87, 498.82, 177.01, 493.77, 185.05, 497.44, 213.78, 505.03, 198.84, 503.42, 175.86, 506.4, 173.79, 503.65, 169.66, 503.19, 168.05]], "area": 314.24459999999993, "iscrowd": 0, "image_id": 579533, "bbox": [493.77, 168.05, 12.63, 45.73], "category_id": 32, "id": 293345}, {"segmentation": [[146.36, 187.55, 147.9, 200.41, 158.7, 281.66, 162.3, 333.59, 175.16, 342.33, 179.78, 327.42, 166.93, 226.63, 159.22, 199.38, 159.22, 191.15]], "area": 2265.5645000000004, "iscrowd": 0, "image_id": 221842, "bbox": [146.36, 187.55, 33.42, 154.78], "category_id": 32, "id": 293465}, {"segmentation": [[210.37, 153.94, 202.93, 153.94, 197.56, 161.37, 201.28, 170.04, 198.8, 172.52, 199.22, 176.65, 195.5, 179.96, 194.26, 181.2, 183.93, 213.82, 181.46, 226.63, 180.22, 236.13, 175.26, 272.47, 171.54, 293.54, 164.94, 317.49, 180.63, 335.66, 193.02, 329.88, 194.67, 308.4, 197.98, 285.28, 198.39, 274.54, 214.5, 221.26, 212.43, 197.72, 209.95, 175.83, 209.95, 174.17, 213.67, 169.22, 216.56, 165.91]], "area": 4284.9100499999995, "iscrowd": 0, "image_id": 20367, "bbox": [164.94, 153.94, 51.62, 181.72], "category_id": 32, "id": 293775}, {"segmentation": [[175.84, 72.05, 176.34, 75.38, 175.51, 78.72, 175.51, 81.72, 175.68, 84.73, 176.34, 95.4, 182.02, 112.42, 184.52, 117.76, 186.52, 120.42, 187.35, 119.76, 188.35, 113.92, 186.19, 93.57, 184.68, 86.89, 182.18, 80.39, 181.01, 77.55, 180.68, 75.72, 180.68, 73.88, 181.51, 72.55, 180.85, 71.38, 179.51, 70.88, 178.68, 70.38, 177.68, 70.55, 176.84, 70.21, 175.51, 70.71]], "area": 351.59854999999976, "iscrowd": 0, "image_id": 149863, "bbox": [175.51, 70.21, 12.84, 50.21], "category_id": 32, "id": 293797}, {"segmentation": [[244.69, 307.86, 246.6, 246.44, 246.6, 213.82, 261.0, 172.56, 271.55, 156.25, 273.47, 152.41, 272.51, 150.49, 274.43, 138.97, 284.03, 139.93, 289.78, 141.85, 287.87, 146.65, 285.95, 153.37, 274.43, 193.67, 273.47, 205.18, 261.96, 302.1, 261.96, 304.02]], "area": 3333.5093500000007, "iscrowd": 0, "image_id": 119337, "bbox": [244.69, 138.97, 45.09, 168.89], "category_id": 32, "id": 294263}, {"segmentation": [[370.74, 139.94, 372.7, 140.43, 371.72, 141.9, 374.66, 161.5, 368.29, 162.97, 368.78, 146.31, 369.76, 142.39, 367.31, 140.43]], "area": 99.40140000000066, "iscrowd": 0, "image_id": 480818, "bbox": [367.31, 139.94, 7.35, 23.03], "category_id": 32, "id": 294552}, {"segmentation": [[159.26, 232.72, 146.94, 238.32, 161.5, 258.49, 169.35, 303.32, 164.87, 412.01, 164.87, 416.5, 132.37, 418.74, 131.25, 424.34, 162.62, 433.31, 153.66, 451.24, 143.57, 456.84, 125.64, 442.27, 120.04, 423.22, 126.77, 301.08, 139.09, 249.53, 142.45, 231.6]], "area": 7762.6047499999995, "iscrowd": 0, "image_id": 204294, "bbox": [120.04, 231.6, 49.31, 225.24], "category_id": 32, "id": 295055}, {"segmentation": [[256.87, 188.66, 246.71, 258.32, 229.3, 391.84, 252.52, 416.51, 269.93, 386.03, 274.29, 253.97, 269.93, 190.11]], "area": 6394.4905, "iscrowd": 0, "image_id": 237514, "bbox": [229.3, 188.66, 44.99, 227.85], "category_id": 32, "id": 295101}, {"segmentation": [[306.89, 106.68, 302.9, 106.52, 281.99, 155.86, 276.24, 178.55, 279.43, 186.37, 285.66, 179.35, 289.01, 158.43, 302.1, 127.76, 305.3, 113.71, 306.73, 109.24, 306.41, 107.0]], "area": 592.6606500000008, "iscrowd": 0, "image_id": 149863, "bbox": [276.24, 106.52, 30.65, 79.85], "category_id": 32, "id": 295638}, {"segmentation": [[134.57, 567.54, 148.86, 513.12, 157.02, 478.42, 169.95, 453.93, 171.31, 446.45, 180.15, 436.92, 186.27, 406.99, 178.79, 400.18, 189.68, 376.37, 199.2, 367.53, 211.45, 370.25, 216.21, 376.37, 223.69, 394.74, 214.85, 419.91, 210.77, 424.0, 215.53, 441.68, 181.51, 516.52, 154.3, 572.3, 132.53, 612.44, 135.93, 574.34]], "area": 7205.403899999998, "iscrowd": 0, "image_id": 507166, "bbox": [132.53, 367.53, 91.16, 244.91], "category_id": 32, "id": 295850}, {"segmentation": [[317.91, 246.16, 309.93, 256.01, 298.68, 281.33, 294.93, 308.06, 290.24, 316.98, 278.98, 349.8, 274.29, 370.9, 257.88, 416.39, 261.16, 417.33, 276.17, 366.68, 278.05, 357.3, 282.74, 358.71, 285.55, 347.46, 291.18, 316.98, 293.99, 313.69, 292.11, 331.04, 297.27, 312.75, 309.47, 282.74, 317.91, 263.05, 320.72, 261.17, 317.91, 251.79], [242.41, 461.41, 240.53, 466.1, 240.53, 470.79, 241.94, 482.52, 243.81, 495.18, 245.69, 495.18, 258.35, 482.98, 262.57, 477.36, 267.26, 462.82, 253.19, 466.1, 244.75, 461.88]], "area": 1402.0934500000017, "iscrowd": 0, "image_id": 204294, "bbox": [240.53, 246.16, 80.19, 249.02], "category_id": 32, "id": 296505}, {"segmentation": [[560.2, 136.58, 560.2, 134.43, 558.48, 132.29, 560.63, 131.0, 564.49, 132.72, 562.77, 134.43, 562.77, 137.86, 562.77, 139.58, 561.06, 137.86]], "area": 22.332249999999846, "iscrowd": 0, "image_id": 579533, "bbox": [558.48, 131.0, 6.01, 8.58], "category_id": 32, "id": 296615}, {"segmentation": [[97.57, 186.41, 100.31, 179.95, 101.28, 175.59, 102.74, 174.46, 105.16, 176.24, 105.64, 181.57, 109.68, 195.13, 106.29, 211.61, 96.92, 187.38]], "area": 236.16870000000017, "iscrowd": 0, "image_id": 444214, "bbox": [96.92, 174.46, 12.76, 37.15], "category_id": 32, "id": 297418}, {"segmentation": [[533.38, 226.99, 528.67, 205.11, 531.7, 182.22, 530.02, 175.15, 532.04, 168.75, 535.4, 168.75, 539.78, 173.13, 537.76, 178.52, 541.12, 188.62, 546.51, 212.52, 549.2, 233.05, 543.82, 232.38]], "area": 775.8506000000004, "iscrowd": 0, "image_id": 185591, "bbox": [528.67, 168.75, 20.53, 64.3], "category_id": 32, "id": 298889}, {"segmentation": [[414.32, 193.17, 413.34, 194.5, 413.96, 195.84, 414.14, 200.02, 416.36, 203.66, 416.98, 199.66, 416.36, 197.88, 415.47, 195.92, 415.47, 194.59, 415.47, 193.79]], "area": 18.808100000000355, "iscrowd": 0, "image_id": 409374, "bbox": [413.34, 193.17, 3.64, 10.49], "category_id": 32, "id": 299115}, {"segmentation": [[113.99, 194.42, 112.95, 183.21, 112.65, 179.03, 114.74, 177.39, 121.31, 172.61, 124.75, 168.13, 128.93, 163.5, 131.32, 161.56, 131.32, 161.11, 122.8, 143.04, 121.46, 140.5, 121.31, 139.75, 112.5, 139.75, 110.56, 140.05, 108.91, 142.14, 105.03, 146.03, 103.09, 148.42, 101.9, 151.7, 99.8, 160.81, 98.31, 165.44, 96.52, 170.82, 94.28, 176.05, 92.49, 181.87, 89.35, 189.19, 86.51, 195.01, 84.42, 199.05, 81.58, 203.38, 76.21, 213.68, 70.53, 226.38, 68.29, 229.81, 70.38, 235.94, 75.46, 255.65, 81.73, 265.36, 87.26, 274.17, 91.44, 262.22, 96.82, 251.02, 103.84, 239.52, 105.63, 236.09, 106.08, 231.9, 108.02, 218.46, 109.81, 211.89]], "area": 3387.1052500000005, "iscrowd": 0, "image_id": 191858, "bbox": [68.29, 139.75, 63.03, 134.42], "category_id": 32, "id": 299594}, {"segmentation": [[259.83, 180.04, 260.34, 182.2, 258.17, 184.55, 257.08, 189.24, 255.91, 201.06, 255.82, 211.8, 257.44, 217.93, 258.08, 225.6, 259.52, 233.45, 260.33, 237.78, 260.6, 240.22, 260.69, 243.29, 261.68, 250.23, 268.54, 254.11, 271.79, 248.79, 269.35, 244.1, 269.08, 237.87, 268.81, 231.65, 268.9, 225.6, 268.45, 214.41, 268.18, 208.73, 268.27, 204.58, 266.47, 199.17, 265.29, 191.68, 264.03, 185.18, 263.76, 181.21, 264.12, 179.5, 264.66, 179.23, 264.3, 178.32, 262.41, 177.78, 260.69, 178.86]], "area": 705.1669500000005, "iscrowd": 0, "image_id": 444214, "bbox": [255.82, 177.78, 15.97, 76.33], "category_id": 32, "id": 299643}, {"segmentation": [[168.13, 222.67, 195.83, 228.4, 192.01, 249.41, 192.96, 269.47, 169.08, 275.21, 173.86, 256.1, 165.26, 227.44, 173.86, 224.58], [173.86, 328.7, 202.51, 358.31, 200.6, 411.81, 193.92, 427.0, 187.23, 427.0, 170.99, 424.23, 164.3, 409.9, 166.21, 382.2, 166.21, 351.63, 171.95, 330.61]], "area": 3979.7139999999995, "iscrowd": 0, "image_id": 252702, "bbox": [164.3, 222.67, 38.21, 204.33], "category_id": 32, "id": 299788}, {"segmentation": [[493.34, 196.26, 499.02, 184.65, 499.77, 182.89, 497.0, 174.82, 495.99, 172.17, 495.61, 170.27, 494.98, 168.26, 496.5, 167.63, 494.48, 165.99, 493.22, 164.98, 491.58, 164.85, 489.31, 167.37, 488.93, 168.26, 490.82, 169.01, 491.95, 169.77, 492.46, 171.66, 492.08, 175.07, 491.32, 176.45, 490.32, 178.47, 490.06, 188.44, 490.06, 190.08]], "area": 181.94065, "iscrowd": 0, "image_id": 444214, "bbox": [488.93, 164.85, 10.84, 31.41], "category_id": 32, "id": 299802}, {"segmentation": [[570.29, 243.86, 568.54, 173.62, 570.98, 167.53, 571.22, 164.12, 574.39, 161.68, 574.88, 161.44, 577.07, 164.36, 575.61, 169.97, 579.02, 193.85, 580.73, 244.3, 574.88, 249.41, 570.25, 244.54]], "area": 783.9431500000028, "iscrowd": 0, "image_id": 444214, "bbox": [568.54, 161.44, 12.19, 87.97], "category_id": 32, "id": 299827}, {"segmentation": [[367.09, 253.37, 375.35, 327.67, 376.04, 370.33, 331.32, 360.7, 329.25, 328.36, 340.95, 308.41, 351.96, 278.83, 354.71, 253.37]], "area": 3592.1464000000005, "iscrowd": 0, "image_id": 252702, "bbox": [329.25, 253.37, 46.79, 116.96], "category_id": 32, "id": 300114}, {"segmentation": [[559.65, 223.98, 556.05, 239.92, 599.25, 289.8, 614.16, 390.58, 613.65, 398.3, 614.16, 399.84, 616.73, 357.67, 613.13, 342.76, 621.87, 321.16, 625.47, 313.97, 623.93, 295.45, 626.5, 282.08, 626.5, 279.0, 630.62, 257.92, 622.9, 262.54, 622.9, 262.54, 622.9, 271.29, 618.79, 276.94, 604.39, 271.29, 575.08, 235.81, 560.17, 223.46]], "area": 2763.0578000000037, "iscrowd": 0, "image_id": 252702, "bbox": [556.05, 223.46, 74.57, 176.38], "category_id": 32, "id": 300147}, {"segmentation": [[438.14, 113.71, 441.02, 110.83, 444.31, 108.77, 449.25, 114.94, 449.25, 118.23, 446.37, 121.11, 441.43, 122.34, 440.2, 119.05, 439.38, 116.58, 439.38, 114.94, 439.38, 113.29]], "area": 94.63095000000015, "iscrowd": 0, "image_id": 23676, "bbox": [438.14, 108.77, 11.11, 13.57], "category_id": 37, "id": 300974}, {"segmentation": [[142.04, 404.16, 146.62, 403.29, 151.09, 404.6, 153.6, 407.11, 154.7, 413.44, 151.2, 419.11, 147.06, 421.19, 142.36, 420.42, 139.09, 419.0, 137.45, 413.55, 137.23, 408.53, 139.2, 406.02, 141.27, 404.92]], "area": 241.89484999999985, "iscrowd": 0, "image_id": 19789, "bbox": [137.23, 403.29, 17.47, 17.9], "category_id": 37, "id": 301384}, {"segmentation": [[53.09, 234.68, 54.37, 241.08, 64.39, 245.12, 69.93, 240.44, 67.16, 235.75, 64.39, 232.77, 64.39, 232.77, 55.86, 232.13]], "area": 147.59590000000009, "iscrowd": 0, "image_id": 70288, "bbox": [53.09, 232.13, 16.84, 12.99], "category_id": 37, "id": 301812}, {"segmentation": [[366.4, 367.46, 368.76, 355.87, 375.85, 346.42, 384.65, 341.91, 397.96, 340.84, 410.2, 346.42, 417.72, 356.08, 419.43, 370.04, 415.14, 380.99, 404.19, 390.86, 390.02, 393.44, 378.64, 390.43, 369.62, 382.27, 366.83, 373.26]], "area": 2168.155550000001, "iscrowd": 0, "image_id": 200910, "bbox": [366.4, 340.84, 53.03, 52.6], "category_id": 37, "id": 301813}, {"segmentation": [[344.79, 157.87, 353.87, 156.02, 361.1, 158.64, 366.95, 161.72, 368.34, 164.02, 366.03, 168.33, 360.95, 172.03, 350.64, 172.49, 346.33, 168.18, 343.09, 164.02, 342.94, 162.79]], "area": 298.5885500000001, "iscrowd": 0, "image_id": 59542, "bbox": [342.94, 156.02, 25.4, 16.47], "category_id": 37, "id": 302206}, {"segmentation": [[54.51, 385.92, 63.6, 386.33, 71.03, 389.22, 79.29, 395.0, 81.77, 411.11, 78.88, 421.02, 72.68, 427.22, 63.18, 432.18, 51.62, 432.59, 40.06, 428.05, 35.51, 418.96, 34.27, 411.94, 34.27, 401.61, 38.4, 391.7, 45.01, 387.57]], "area": 1811.8979, "iscrowd": 0, "image_id": 64071, "bbox": [34.27, 385.92, 47.5, 46.67], "category_id": 37, "id": 302292}, {"segmentation": [[295.56, 360.11, 303.83, 364.12, 312.6, 368.63, 320.62, 380.91, 321.37, 391.93, 317.36, 402.96, 314.61, 407.97, 311.1, 412.48, 305.84, 416.49, 300.57, 420.5, 295.56, 422.0, 290.8, 422.0, 281.53, 421.25, 271.0, 418.25, 263.74, 411.48, 258.47, 401.46, 257.47, 385.42, 261.73, 373.89, 268.0, 366.37, 277.02, 361.86, 287.29, 360.36, 294.81, 360.61]], "area": 3114.0534499999994, "iscrowd": 0, "image_id": 422341, "bbox": [257.47, 360.11, 63.9, 61.89], "category_id": 37, "id": 302395}, {"segmentation": [[15.48, 145.39, 14.76, 145.59, 14.23, 144.71, 13.83, 144.02, 13.55, 143.58, 13.15, 142.41, 13.19, 141.49, 13.47, 140.6, 14.32, 139.96, 15.36, 139.68, 16.53, 139.56, 17.61, 139.72, 18.46, 140.4, 18.5, 142.09, 18.26, 143.38, 17.89, 144.63, 17.29, 145.43, 15.08, 145.51]], "area": 26.06644999999999, "iscrowd": 0, "image_id": 276420, "bbox": [13.15, 139.56, 5.35, 6.03], "category_id": 37, "id": 302449}, {"segmentation": [[281.53, 160.17, 284.47, 158.56, 287.41, 158.42, 289.79, 159.05, 291.89, 161.85, 291.75, 164.58, 290.56, 166.89, 288.95, 168.08, 285.66, 168.85, 283.0, 168.36, 281.53, 166.96, 280.55, 164.93, 280.55, 163.32, 280.69, 161.71]], "area": 94.38135000000011, "iscrowd": 0, "image_id": 318310, "bbox": [280.55, 158.42, 11.34, 10.43], "category_id": 37, "id": 303101}, {"segmentation": [[49.02, 388.78, 54.19, 383.91, 57.14, 382.28, 62.9, 382.72, 67.48, 384.79, 70.58, 387.89, 72.2, 392.32, 72.5, 399.12, 67.92, 405.32, 60.24, 408.86, 53.15, 409.3, 48.13, 402.96, 47.39, 394.24]], "area": 527.8994, "iscrowd": 0, "image_id": 456433, "bbox": [47.39, 382.28, 25.11, 27.02], "category_id": 37, "id": 303683}, {"segmentation": [[409.05, 358.9, 416.13, 347.09, 422.79, 341.08, 436.1, 336.14, 451.56, 338.29, 461.01, 341.72, 470.88, 352.03, 474.75, 363.19, 473.89, 380.37, 461.86, 398.19, 449.2, 402.7, 439.32, 403.34, 426.22, 401.41, 417.85, 395.61, 412.05, 388.1, 406.9, 377.15, 407.54, 364.27]], "area": 3589.2037999999993, "iscrowd": 0, "image_id": 2446, "bbox": [406.9, 336.14, 67.85, 67.2], "category_id": 37, "id": 304484}, {"segmentation": [[341.39, 168.9, 340.88, 163.09, 341.13, 159.81, 344.67, 157.54, 353.0, 157.04, 356.03, 157.54, 357.04, 158.05, 360.82, 162.34, 361.33, 167.89, 358.05, 170.16, 353.25, 172.43, 348.96, 172.94]], "area": 257.95340000000016, "iscrowd": 0, "image_id": 249531, "bbox": [340.88, 157.04, 20.45, 15.9], "category_id": 37, "id": 304759}, {"segmentation": [[191.92, 249.05, 191.72, 253.93, 194.36, 255.74, 196.45, 256.44, 198.55, 256.71, 199.87, 256.71, 201.68, 256.85, 203.56, 256.92, 205.31, 256.23, 205.72, 254.83, 205.65, 253.58, 203.77, 251.14, 202.24, 249.19, 201.4, 247.93, 199.38, 247.17, 196.87, 247.1, 195.34, 246.89, 193.81, 247.1, 191.16, 248.21]], "area": 109.58285000000022, "iscrowd": 0, "image_id": 456433, "bbox": [191.16, 246.89, 14.56, 10.03], "category_id": 37, "id": 304954}, {"segmentation": [[175.99, 274.34, 184.03, 272.33, 188.81, 260.51, 180.26, 252.97, 169.7, 255.23, 166.94, 263.78, 168.7, 272.08]], "area": 339.7018999999999, "iscrowd": 0, "image_id": 188085, "bbox": [166.94, 252.97, 21.87, 21.37], "category_id": 37, "id": 305439}, {"segmentation": [[304.8, 300.93, 301.91, 303.03, 301.65, 307.23, 304.01, 310.11, 310.57, 310.11, 312.67, 305.13, 310.31, 301.19, 305.58, 301.46]], "area": 81.07185000000031, "iscrowd": 0, "image_id": 385701, "bbox": [301.65, 300.93, 11.02, 9.18], "category_id": 37, "id": 305671}, {"segmentation": [[77.65, 404.41, 80.44, 397.33, 86.88, 393.46, 93.54, 393.25, 97.19, 394.96, 100.19, 402.69, 99.55, 405.49, 96.97, 412.79, 95.47, 417.08, 90.53, 416.22, 84.95, 417.08, 82.16, 412.36, 80.66, 404.84]], "area": 388.1757000000004, "iscrowd": 0, "image_id": 456433, "bbox": [77.65, 393.25, 22.54, 23.83], "category_id": 37, "id": 307438}, {"segmentation": [[59.13, 418.57, 61.47, 410.17, 66.13, 406.9, 71.5, 404.57, 79.67, 406.67, 81.77, 411.8, 84.33, 416.47, 80.83, 425.34, 78.5, 427.0, 70.1, 427.0, 61.93, 426.27, 59.37, 422.54, 58.9, 418.57]], "area": 440.7277499999998, "iscrowd": 0, "image_id": 456433, "bbox": [58.9, 404.57, 25.43, 22.43], "category_id": 37, "id": 307498}, {"segmentation": [[204.03, 432.86, 235.17, 400.64, 282.42, 358.76, 298.52, 341.58, 281.34, 301.85, 235.17, 241.71, 176.11, 221.31, 172.89, 198.76, 169.66, 182.65, 182.55, 172.99, 186.85, 164.4, 170.74, 159.03, 161.07, 172.99, 152.48, 165.47, 157.85, 136.48, 147.11, 109.63, 123.49, 97.82, 117.05, 103.19, 115.97, 109.63, 121.34, 113.93, 127.79, 119.3, 137.45, 128.96, 138.52, 150.44, 136.38, 152.59, 113.83, 152.59, 100.94, 128.96, 94.5, 134.33, 102.01, 159.03, 82.68, 176.21, 76.24, 199.84, 79.46, 212.72, 82.68, 236.35, 39.73, 257.82, 39.73, 272.86, 64.43, 310.44, 49.4, 316.88, 48.32, 325.47, 60.13, 336.21, 61.21, 343.73, 64.43, 355.54, 73.02, 363.06, 83.76, 368.43, 84.83, 373.8, 88.05, 381.31, 103.09, 387.75, 111.68, 389.9, 121.34, 396.35, 131.01, 400.64, 141.74, 409.23, 157.85, 418.9, 167.52, 422.12]], "area": 44478.94855, "iscrowd": 0, "image_id": 268406, "bbox": [39.73, 97.82, 258.79, 335.04], "category_id": 54, "id": 307996}, {"segmentation": [[372.13, 272.97, 429.3, 219.04, 465.98, 213.64, 502.65, 241.69, 527.46, 225.51, 627.78, 283.76, 637.48, 311.8, 639.64, 456.34, 454.11, 450.95, 428.22, 418.59, 420.67, 390.54, 404.49, 358.18, 381.84, 293.47]], "area": 49255.976149999995, "iscrowd": 0, "image_id": 268406, "bbox": [372.13, 213.64, 267.51, 242.7], "category_id": 54, "id": 309117}, {"segmentation": [[87.01, 378.85, 98.82, 317.62, 88.08, 291.84, 83.78, 252.1, 99.9, 212.35, 154.68, 191.95, 225.57, 187.65, 312.58, 223.1, 330.84, 301.51, 323.32, 346.62, 303.99, 373.48, 265.32, 420.74, 186.9, 443.3, 140.71, 430.41, 99.9, 402.48]], "area": 50239.19395000001, "iscrowd": 0, "image_id": 387318, "bbox": [83.78, 187.65, 247.06, 255.65], "category_id": 54, "id": 310190}, {"segmentation": [[384.41, 419.37, 394.91, 416.6, 409.84, 418.82, 424.76, 418.82, 428.63, 423.79, 431.39, 430.98, 435.82, 435.95, 422.55, 449.22, 398.78, 442.58, 390.49, 438.16, 389.94, 435.4, 383.3, 426.0, 381.09, 423.79, 384.96, 419.37]], "area": 1156.717, "iscrowd": 0, "image_id": 461530, "bbox": [381.09, 416.6, 54.73, 32.62], "category_id": 54, "id": 310680}, {"segmentation": [[272.27, 96.56, 305.51, 89.44, 354.58, 98.14, 367.25, 105.27, 383.08, 113.18, 402.86, 136.93, 416.32, 153.55, 424.23, 150.38, 432.15, 142.47, 421.07, 160.67, 426.61, 163.04, 422.65, 167.79, 427.4, 172.54, 444.02, 175.71, 435.31, 183.62, 437.69, 197.87, 448.77, 203.41, 451.93, 206.58, 454.31, 211.33, 427.4, 236.65, 402.86, 216.07, 357.75, 233.49, 346.67, 258.02, 354.58, 273.85, 358.54, 278.6, 317.38, 302.35, 225.57, 284.93, 136.13, 242.19, 136.13, 225.57, 137.72, 212.12, 119.51, 199.45, 117.14, 204.99, 113.18, 192.33, 100.52, 159.88, 105.27, 161.46, 110.02, 171.75, 120.3, 182.04, 123.47, 186.79, 131.39, 183.62, 132.18, 158.3, 155.13, 133.76, 180.46, 116.35, 198.66, 108.43, 231.11, 105.27, 252.48, 101.31, 258.02, 102.89, 258.81, 112.39, 265.15, 115.56, 269.1, 106.85, 265.94, 96.56, 265.94, 95.77]], "area": 46708.77465000001, "iscrowd": 0, "image_id": 540296, "bbox": [100.52, 89.44, 353.79, 212.91], "category_id": 54, "id": 310687}, {"segmentation": [[280.16, 201.4, 286.97, 196.37, 297.33, 195.18, 306.8, 196.07, 311.83, 199.03, 312.13, 201.4, 313.31, 204.95, 310.95, 209.69, 310.95, 213.24, 307.1, 214.13, 302.66, 210.57, 294.37, 207.61, 284.9, 208.21, 281.94, 207.32, 281.05, 204.06]], "area": 406.8463499999996, "iscrowd": 0, "image_id": 48451, "bbox": [280.16, 195.18, 33.15, 18.95], "category_id": 54, "id": 311369}, {"segmentation": [[293.13, 486.25, 277.78, 492.39, 253.99, 493.92, 244.78, 493.92, 240.17, 473.97, 239.41, 463.22, 216.38, 443.27, 289.29, 441.73, 291.6, 447.87, 291.6, 454.01, 294.67, 467.83, 294.67, 473.97, 291.6, 486.25]], "area": 2842.3614500000017, "iscrowd": 0, "image_id": 461530, "bbox": [216.38, 441.73, 78.29, 52.19], "category_id": 54, "id": 311984}, {"segmentation": [[268.62, 224.82, 253.14, 220.45, 247.98, 220.05, 244.8, 216.08, 243.61, 211.72, 247.18, 204.17, 250.76, 202.19, 259.49, 202.59, 268.22, 206.16, 275.37, 208.14, 277.75, 210.13, 278.15, 214.89, 273.38, 223.62, 270.6, 225.61]], "area": 562.3949499999999, "iscrowd": 0, "image_id": 48451, "bbox": [243.61, 202.19, 34.54, 23.42], "category_id": 54, "id": 312396}, {"segmentation": [[236.88, 252.26, 248.23, 249.56, 265.7, 245.41, 268.58, 244.15, 271.82, 237.49, 272.0, 231.9, 267.68, 226.5, 260.66, 222.9, 253.63, 220.2, 248.77, 220.2, 239.76, 221.64, 235.44, 224.88, 231.12, 228.12, 229.86, 231.36, 224.81, 232.98, 224.27, 236.77, 225.71, 237.67, 226.25, 242.35, 228.23, 244.69, 229.49, 246.31, 229.68, 248.47, 230.76, 249.38, 232.92, 249.92, 236.16, 251.36]], "area": 1092.60315, "iscrowd": 0, "image_id": 48451, "bbox": [224.27, 220.2, 47.73, 32.06], "category_id": 54, "id": 313303}, {"segmentation": [[385.23, 334.17, 385.23, 353.39, 417.27, 370.87, 453.38, 374.36, 476.1, 374.36, 487.75, 368.54, 495.33, 356.89, 494.74, 338.83, 480.76, 316.11, 467.95, 309.12, 455.71, 299.8, 431.83, 284.07, 406.2, 284.07, 392.22, 270.09, 362.51, 268.92, 345.03, 274.17, 339.21, 286.98, 335.13, 293.97, 336.88, 275.33, 326.39, 269.5, 309.5, 271.83, 286.78, 280.57, 289.11, 295.72, 321.15, 304.46, 322.89, 308.54, 319.4, 317.86, 327.55, 333.58, 352.02, 341.16, 372.41, 338.83, 383.48, 333.58]], "area": 13097.005050000005, "iscrowd": 0, "image_id": 64492, "bbox": [286.78, 268.92, 208.55, 105.44], "category_id": 54, "id": 313316}, {"segmentation": [[199.03, 230.69, 204.51, 230.69, 217.64, 231.69, 222.95, 234.18, 226.44, 232.52, 229.93, 231.02, 230.43, 228.2, 236.24, 223.88, 242.39, 220.06, 241.56, 217.07, 235.24, 213.25, 230.43, 210.42, 226.61, 208.1, 216.97, 207.6, 213.82, 208.6, 209.66, 211.92, 205.51, 216.07, 202.85, 218.56, 197.87, 221.89, 197.2, 222.88, 196.25, 231.27]], "area": 774.2297000000007, "iscrowd": 0, "image_id": 48451, "bbox": [196.25, 207.6, 46.14, 26.58], "category_id": 54, "id": 313462}, {"segmentation": [[149.8, 243.56, 152.59, 236.43, 154.76, 228.37, 161.27, 222.79, 173.05, 220.62, 182.66, 222.79, 189.79, 227.44, 193.51, 233.95, 188.24, 242.63, 184.21, 246.04, 178.32, 255.65, 174.29, 256.58, 169.95, 250.07, 164.68, 243.87, 158.17, 243.87, 151.04, 243.56]], "area": 930.3921499999999, "iscrowd": 0, "image_id": 48451, "bbox": [149.8, 220.62, 43.71, 35.96], "category_id": 54, "id": 313602}, {"segmentation": [[162.34, 244.47, 186.22, 266.43, 178.58, 273.12, 142.29, 278.85, 127.96, 273.12, 126.05, 261.66, 132.74, 250.2, 142.29, 246.38, 146.11, 246.38, 157.57, 247.33]], "area": 1415.596500000001, "iscrowd": 0, "image_id": 48451, "bbox": [126.05, 244.47, 60.17, 34.38], "category_id": 54, "id": 313634}, {"segmentation": [[180.9, 257.86, 184.18, 262.24, 193.76, 266.62, 206.62, 261.97, 228.24, 255.4, 229.88, 251.3, 229.06, 245.28, 225.5, 238.98, 222.22, 234.33, 218.93, 232.14, 212.64, 230.5, 200.33, 230.78, 195.4, 231.87, 189.11, 238.44, 186.65, 244.18, 180.9, 250.48, 178.99, 256.22]], "area": 1261.6880500000004, "iscrowd": 0, "image_id": 48451, "bbox": [178.99, 230.5, 50.89, 36.12], "category_id": 54, "id": 313748}, {"segmentation": [[288.7, 233.44, 269.64, 224.86, 291.56, 205.81, 309.66, 214.38, 314.43, 232.49, 282.98, 242.97]], "area": 893.0272500000008, "iscrowd": 0, "image_id": 48451, "bbox": [269.64, 205.81, 44.79, 37.16], "category_id": 54, "id": 313761}, {"segmentation": [[200.46, 254.88, 193.43, 241.22, 182.12, 221.33, 171.98, 208.84, 167.69, 194.41, 171.98, 182.71, 172.37, 172.95, 185.63, 165.54, 194.99, 158.91, 207.48, 156.57, 218.4, 160.86, 226.59, 178.03, 233.22, 201.04, 228.15, 215.09, 228.54, 225.23, 217.62, 231.47, 214.89, 244.73, 214.11, 255.27, 200.85, 251.75]], "area": 4184.799700000001, "iscrowd": 0, "image_id": 302680, "bbox": [167.69, 156.57, 65.53, 98.7], "category_id": 64, "id": 313988}, {"segmentation": [[161.2, 146.65, 140.09, 104.43, 117.07, 77.56, 79.64, 77.56, 68.13, 77.56, 58.53, 67.01, 80.6, 46.86, 66.21, 31.51, 29.75, 14.23, 20.15, 1.76, 293.62, 1.76, 294.58, 18.07, 284.03, 25.75, 284.03, 41.1, 291.7, 56.45, 305.14, 69.89, 312.81, 91.96, 308.02, 101.55, 292.66, 101.55, 296.5, 112.11, 271.55, 114.99, 252.36, 114.99, 227.41, 121.7, 229.33, 157.21, 222.62, 193.67, 222.62, 214.78, 219.74, 229.17, 214.94, 239.73, 203.42, 233.01, 196.71, 226.29, 199.59, 206.14, 182.31, 197.51, 178.48, 194.63, 172.72, 174.48]], "area": 30421.043499999996, "iscrowd": 0, "image_id": 448843, "bbox": [20.15, 1.76, 292.66, 237.97], "category_id": 64, "id": 314068}, {"segmentation": [[360.18, 457.76, 401.79, 463.5, 439.1, 460.63, 474.98, 457.76, 502.24, 459.19, 522.33, 459.19, 522.33, 453.45, 464.93, 315.7, 419.01, 264.04, 413.27, 208.07, 321.43, 192.29, 292.74, 198.03, 241.08, 200.9, 198.03, 200.9, 195.16, 243.95, 183.68, 265.47, 154.98, 447.71, 154.98, 456.32], [130.58, 417.58, 133.45, 397.49, 119.1, 383.14, 113.36, 411.84], [114.8, 363.05, 119.1, 338.65, 146.37, 341.52, 140.63, 370.22], [114.8, 312.83, 126.28, 281.26, 137.76, 255.43, 160.72, 249.69, 149.24, 320.0], [71.75, 414.71, 73.18, 330.04, 77.49, 314.26, 77.49, 301.35, 97.58, 287.0, 91.84, 407.53, 87.53, 417.58], [17.22, 417.58, 22.96, 375.96, 35.87, 332.91, 38.74, 384.57, 38.74, 416.14]], "area": 81547.9971, "iscrowd": 0, "image_id": 451824, "bbox": [17.22, 192.29, 505.11, 271.21], "category_id": 65, "id": 314239}, {"segmentation": [[32.84, 296.55, 89.22, 284.72, 129.23, 277.45, 142.86, 281.09, 179.23, 297.45, 212.88, 311.09, 247.43, 323.82, 249.25, 362.01, 254.7, 362.92, 256.52, 389.29, 248.34, 390.2, 247.43, 406.57, 247.43, 410.2, 235.61, 412.93, 231.97, 396.56, 141.05, 429.3, 122.86, 441.12, 68.3, 460.21, 33.75, 476.58, 28.3, 479.31, 1.02, 479.31, 0.0, 432.02, 1.02, 372.01, 1.02, 304.73]], "area": 35838.5264, "iscrowd": 0, "image_id": 53361, "bbox": [0.0, 277.45, 256.52, 201.86], "category_id": 65, "id": 314506}, {"segmentation": [[596.87, 104.1, 592.75, 595.08, 16.5, 593.7, 5.5, 368.16, 64.64, 353.03, 103.15, 332.4, 178.79, 324.15, 200.79, 324.15, 203.54, 376.41, 173.29, 491.93, 188.41, 518.06, 276.43, 548.32, 308.06, 512.56, 323.19, 386.03, 332.82, 335.15, 360.32, 243.0, 374.08, 193.49, 446.97, 142.61, 453.84, 119.23, 426.34, 90.35, 349.32, 99.98, 244.8, 194.87, 226.92, 218.25, 220.04, 193.49, 210.42, 143.98, 126.53, 149.49, 52.26, 160.49, 17.88, 160.49, 9.63, 16.08, 200.79, 10.58, 323.19, 102.73, 341.07, 104.1, 416.71, 65.59, 471.72, 76.6, 474.47, 142.61]], "area": 214575.6826000001, "iscrowd": 0, "image_id": 461989, "bbox": [5.5, 10.58, 591.37, 584.5], "category_id": 65, "id": 314868}, {"segmentation": [[208.95, 235.35, 269.46, 223.59, 277.03, 218.55, 293.84, 222.75, 343.42, 236.19, 344.26, 242.08, 361.07, 237.04, 366.96, 242.92, 372.0, 247.12, 375.36, 243.76, 382.93, 246.28, 382.93, 252.16, 387.13, 263.09, 384.61, 269.81, 386.29, 276.54, 388.81, 289.98, 388.81, 296.71, 398.89, 300.91, 456.88, 316.04, 470.33, 317.72, 502.27, 326.96, 521.6, 327.8, 585.47, 350.5, 616.57, 401.76, 614.89, 405.97, 535.89, 377.39, 380.4, 409.33, 377.04, 453.87, 378.72, 478.24, 243.41, 479.08, 205.59, 449.67, 188.78, 431.18, 159.37, 406.81, 156.84, 368.99, 150.96, 334.53, 151.8, 329.48, 158.53, 323.6, 153.48, 322.76, 151.8, 263.09, 156.0, 259.73, 155.16, 255.53, 154.32, 251.32, 159.37, 246.28, 161.89, 253.0, 161.89, 258.05, 163.57, 259.73, 163.57, 263.09, 171.97, 262.25, 176.18, 253.0, 182.06, 247.96, 196.35, 246.28, 208.95, 235.35]], "area": 66957.64540000001, "iscrowd": 0, "image_id": 146513, "bbox": [150.96, 218.55, 465.61, 260.53], "category_id": 65, "id": 315131}, {"segmentation": [[0.84, 350.42, 79.21, 328.51, 86.8, 347.89, 227.53, 327.67, 224.16, 348.74, 256.18, 363.06, 267.13, 358.01, 277.25, 346.21, 278.93, 319.24, 360.67, 283.85, 363.2, 304.07, 375.0, 314.19, 392.7, 312.5, 397.75, 294.8, 433.15, 284.69, 439.89, 272.89, 468.54, 231.6, 483.71, 216.43, 483.71, 205.48, 498.03, 199.58, 500.0, 368.96, 0.84, 369.8]], "area": 27006.00875, "iscrowd": 0, "image_id": 260603, "bbox": [0.84, 199.58, 499.16, 170.22], "category_id": 65, "id": 315433}, {"segmentation": [[2.88, 510.32, 40.27, 503.13, 27.33, 468.61, 27.33, 459.98, 81.98, 426.91, 132.31, 418.28, 149.57, 416.84, 168.27, 370.82, 199.91, 373.69, 231.55, 413.96, 266.07, 422.59, 297.71, 418.28, 366.74, 445.6, 473.17, 461.42, 512.0, 459.98, 581.03, 485.87, 625.62, 510.32, 638.56, 507.45, 638.56, 615.31, 0.0, 632.57]], "area": 114648.79585, "iscrowd": 0, "image_id": 14575, "bbox": [0.0, 370.82, 638.56, 261.75], "category_id": 65, "id": 315911}, {"segmentation": [[511.28, 254.83, 506.97, 371.33, 499.42, 382.11, 449.8, 371.33, 363.51, 358.38, 251.33, 336.81, 89.53, 304.45, 92.76, 261.3, 92.76, 249.44, 114.34, 238.65, 107.87, 230.02, 115.42, 220.31, 124.04, 213.84, 136.99, 210.61, 148.85, 208.45, 155.33, 207.37, 166.11, 205.21, 175.82, 205.21, 187.69, 206.29, 192.0, 210.61, 198.47, 204.13, 210.34, 196.58, 218.97, 192.27, 218.97, 191.19, 229.75, 191.19, 240.54, 191.19, 247.01, 192.27, 265.35, 196.58, 278.29, 201.98, 288.0, 203.06, 299.87, 208.45, 280.45, 223.55, 307.42, 234.34, 338.7, 239.73, 471.37, 249.44, 500.49, 251.6]], "area": 49681.789149999975, "iscrowd": 0, "image_id": 408672, "bbox": [89.53, 191.19, 421.75, 190.92], "category_id": 65, "id": 316195}, {"segmentation": [[179.06, 465.98, 259.96, 426.07, 366.74, 373.21, 435.78, 405.57, 538.25, 439.01, 632.09, 474.61, 163.96, 471.37]], "area": 22564.242200000004, "iscrowd": 0, "image_id": 53361, "bbox": [163.96, 373.21, 468.13, 101.4], "category_id": 65, "id": 316276}, {"segmentation": [[183.58, 491.86, 192.27, 492.73, 191.4, 459.7, 290.49, 487.51, 287.89, 524.02, 295.71, 524.89, 297.45, 489.25, 381.76, 427.54, 388.72, 422.32, 392.19, 417.97, 389.59, 445.79, 395.67, 444.05, 397.41, 291.07, 392.19, 291.07, 389.59, 295.41, 340.91, 286.72, 316.57, 291.07, 300.93, 292.81, 267.89, 296.28, 235.73, 292.81, 207.05, 295.41, 187.93, 299.76, 186.19, 294.54, 184.45, 294.54, 182.71, 341.48, 182.71, 405.8, 184.45, 463.17]], "area": 37126.2396, "iscrowd": 0, "image_id": 104310, "bbox": [182.71, 286.72, 214.7, 238.17], "category_id": 65, "id": 316336}, {"segmentation": [[102.93, 19.23, 89.93, 56.07, 91.02, 72.33, 102.93, 88.58, 75.85, 224.02, 108.35, 224.02, 107.27, 198.01, 102.93, 178.51, 106.19, 151.42, 107.27, 140.59, 134.36, 120.0, 158.19, 115.67, 189.62, 114.58, 231.87, 129.75, 250.29, 168.76, 268.71, 181.76, 270.88, 191.51, 286.05, 191.51, 292.55, 173.09, 323.97, 140.59, 334.81, 126.5, 355.4, 124.33, 385.73, 130.84, 401.99, 149.26, 416.07, 189.35, 406.32, 218.6, 409.57, 232.69, 412.82, 241.35, 434.49, 240.27, 445.33, 255.44, 444.24, 241.35, 438.83, 228.35, 439.91, 212.1, 447.49, 200.18, 461.58, 196.93, 470.25, 194.76, 487.58, 189.35, 529.84, 191.51, 546.09, 194.76, 569.93, 202.35, 580.77, 225.1, 564.51, 265.19, 539.59, 322.62, 559.1, 335.62, 568.85, 362.71, 572.1, 396.3, 604.6, 416.88, 618.69, 427.72, 606.77, 395.21, 640.0, 413.63, 640.0, 186.09, 599.19, 187.18, 599.19, 109.16, 639.28, 82.08, 632.78, 72.33, 287.13, 28.98]], "area": 81268.74614999998, "iscrowd": 0, "image_id": 374391, "bbox": [75.85, 19.23, 564.15, 408.49], "category_id": 65, "id": 316663}, {"segmentation": [[150.25, 359.37, 158.92, 359.37, 182.03, 357.92, 199.37, 356.48, 228.26, 352.14, 273.05, 349.26, 361.17, 336.25, 434.85, 324.7, 434.85, 324.7, 424.74, 324.7, 424.74, 303.02, 426.19, 292.91, 427.63, 287.13, 440.63, 278.47, 453.63, 272.69, 470.97, 274.13, 475.3, 277.02, 480.0, 285.69, 462.3, 545.73, 267.27, 610.74, 245.6, 512.51, 134.36, 382.48, 153.14, 373.81, 158.92, 365.15]], "area": 65807.48525, "iscrowd": 0, "image_id": 373189, "bbox": [134.36, 272.69, 345.64, 338.05], "category_id": 65, "id": 317332}, {"segmentation": [[266.21, 267.03, 244.25, 256.05, 227.78, 250.56, 205.83, 253.31, 144.08, 267.03, 85.08, 283.5, 46.65, 194.3, 38.42, 149.02, 1.37, 69.43, 4.12, 246.45, 96.05, 605.96, 153.69, 604.59, 422.64, 601.85, 443.22, 559.31, 470.66, 529.12, 484.39, 518.14, 502.22, 535.98, 532.41, 555.19, 547.51, 555.19, 557.11, 529.12, 543.39, 508.54, 540.65, 492.07, 555.74, 486.58, 573.58, 493.44, 609.26, 503.05, 612.0, 493.44, 607.88, 35.13, 609.26, 0.82, 5.49, 0.0, 57.63, 131.18, 104.29, 131.18, 134.48, 138.04, 139.96, 146.28, 156.43, 128.44, 211.32, 140.79, 215.43, 162.74, 237.39, 158.63, 233.27, 129.81, 255.23, 110.6, 253.86, 96.88, 288.16, 91.39, 326.58, 79.04, 337.56, 80.41, 351.28, 68.06, 375.98, 58.46, 374.61, 87.27, 391.08, 109.23, 393.82, 124.32, 414.4, 120.2, 441.85, 116.09, 451.45, 122.95, 450.08, 142.16, 450.08, 144.9, 454.2, 162.74, 458.31, 169.6, 462.43, 172.35, 463.8, 180.58, 466.55, 197.05, 469.29, 202.54, 461.06, 221.75, 456.94, 239.59, 458.31, 250.56, 439.1, 261.54, 419.89, 261.54, 408.91, 262.91, 381.47, 262.91, 365.0, 256.05, 365.0, 260.17, 363.63, 278.01, 366.38, 295.85, 371.87, 308.2, 374.61, 316.43, 375.98, 327.41, 375.98, 383.67, 377.35, 406.99, 375.98, 420.72, 382.84, 453.65, 386.96, 485.21, 386.96, 512.65, 378.73, 526.37, 386.96, 564.8, 386.96, 579.89, 370.49, 581.26, 352.65, 566.17, 344.42, 546.96, 319.72, 483.84, 299.14, 394.64, 295.02, 379.55, 271.7, 437.18, 256.6, 468.74, 248.37, 497.56, 251.11, 519.51, 194.85, 555.19, 178.39, 556.56, 175.64, 548.33, 192.11, 511.28, 216.81, 463.25, 216.81, 422.09, 200.34, 393.27, 223.67, 356.22, 259.35, 309.57, 271.7, 286.24, 270.32, 267.03]], "area": 236391.4736999998, "iscrowd": 0, "image_id": 206107, "bbox": [1.37, 0.0, 610.63, 605.96], "category_id": 65, "id": 317830}, {"segmentation": [[162.76, 418.34, 236.48, 383.87, 320.73, 349.4, 404.98, 318.77, 445.19, 328.34, 444.23, 329.3, 404.02, 364.72, 369.56, 396.32, 287.22, 419.29], [586.89, 286.21, 599.33, 333.13, 584.01, 378.12, 539.97, 374.3, 453.81, 394.4, 435.62, 420.25, 637.63, 415.46, 629.97, 249.83]], "area": 23098.289850000005, "iscrowd": 0, "image_id": 164208, "bbox": [162.76, 249.83, 474.87, 170.42], "category_id": 65, "id": 318091}, {"segmentation": [[2.29, 497.22, 2.29, 355.19, 88.2, 334.57, 57.27, 363.21, 33.22, 392.99, 40.09, 417.04, 45.82, 438.8, 74.45, 441.1, 87.05, 447.97, 103.09, 453.69, 120.27, 437.66, 124.85, 425.06, 127.14, 414.75, 164.94, 415.9, 175.25, 438.8, 210.76, 415.9, 251.99, 430.79, 249.7, 413.61, 272.61, 411.31, 300.1, 415.9, 317.28, 412.46, 332.17, 398.71, 345.91, 384.97, 349.35, 359.77, 349.35, 336.86, 349.35, 312.81, 345.91, 302.5, 311.55, 299.06, 282.92, 305.94, 241.68, 312.81, 222.21, 313.95, 222.21, 305.94, 331.02, 244.08, 371.11, 218.88, 386.0, 198.27, 400.89, 163.9, 402.04, 150.16, 414.64, 123.82, 423.8, 100.91, 430.68, 84.87, 461.6, 104.34, 498.26, 142.14, 516.58, 157.03, 542.93, 167.34, 579.58, 176.5, 633.41, 187.96, 636.85, 189.1, 640.0, 501.8, 0.0, 505.24]], "area": 135725.81650000004, "iscrowd": 0, "image_id": 59406, "bbox": [0.0, 84.87, 640.0, 420.37], "category_id": 65, "id": 318246}, {"segmentation": [[20.18, 48.77, 26.07, 132.85, 37.0, 227.02, 30.27, 234.59, 12.61, 230.38, 1.68, 227.02, 0.0, 227.02, 0.84, 369.11, 500.0, 369.96, 497.76, 304.37, 450.67, 264.85, 440.58, 246.36, 447.31, 237.11, 467.49, 53.81]], "area": 143552.0788, "iscrowd": 0, "image_id": 217191, "bbox": [0.0, 48.77, 500.0, 321.19], "category_id": 65, "id": 318993}, {"segmentation": [[163.22, 189.1, 111.68, 185.88, 89.13, 183.73, 60.13, 182.65, 40.81, 185.88, 10.74, 201.98, 4.3, 208.43, 1.07, 220.24, 1.07, 271.78, 0.0, 404.94, 0.0, 458.63, 74.09, 473.66, 124.56, 473.66, 255.57, 470.44, 275.97, 443.59, 291.01, 414.6, 298.52, 400.64, 296.38, 373.8, 294.23, 357.69, 279.19, 337.28, 258.79, 317.96, 248.05, 304.0, 207.25, 293.26, 186.85, 281.45, 154.63, 269.63, 139.6, 258.9, 134.23, 239.57, 154.63, 226.68, 161.07, 222.39, 164.3, 212.72, 163.22, 196.61], [277.05, 468.29, 302.82, 435.0, 317.85, 421.04, 336.11, 419.97, 417.72, 460.77, 434.9, 473.66, 379.06, 473.66, 281.34, 470.44]], "area": 70673.25835000002, "iscrowd": 0, "image_id": 247508, "bbox": [0.0, 182.65, 434.9, 291.01], "category_id": 65, "id": 319052}, {"segmentation": [[2.25, 3.18, 351.69, 3.18, 359.55, 30.15, 375.0, 33.52, 375.0, 348.13, 374.16, 494.19, 304.49, 493.07, 301.12, 436.89, 337.08, 439.14, 360.67, 421.16, 367.42, 386.33, 331.46, 316.67, 286.52, 271.72, 296.63, 262.73, 292.13, 247.0, 274.16, 231.27, 251.69, 225.66, 251.69, 215.54, 258.43, 188.58, 247.19, 161.61, 238.2, 158.24, 225.84, 160.49, 217.98, 159.36, 194.38, 120.04, 191.01, 106.55, 169.66, 96.44, 124.72, 96.44, 95.51, 94.19, 70.79, 103.18, 46.07, 127.9, 32.58, 159.36, 24.72, 179.59, 13.48, 200.94, 24.72, 229.03, 35.96, 248.13, 47.19, 266.1, 53.93, 287.45, 50.56, 299.81, 28.09, 322.28, 10.11, 371.72, 4.49, 387.45, 1.12, 416.67, 2.25, 463.86, 14.61, 493.07, 0.0, 494.19, 0.0, 370.6, 0.0, 245.88]], "area": 77005.34570000003, "iscrowd": 0, "image_id": 398949, "bbox": [0.0, 3.18, 375.0, 491.01], "category_id": 65, "id": 319069}, {"segmentation": [[11.48, 289.79, 100.45, 281.18, 133.45, 288.36, 150.67, 318.49, 83.23, 327.1, 5.74, 340.02]], "area": 5787.315549999999, "iscrowd": 0, "image_id": 104310, "bbox": [5.74, 281.18, 144.93, 58.84], "category_id": 65, "id": 319314}, {"segmentation": [[136.02, 509.85, 144.61, 466.89, 201.88, 433.96, 270.6, 405.33, 294.94, 366.67, 286.35, 316.56, 294.94, 303.67, 300.67, 312.26, 375.12, 299.38, 393.74, 262.15, 425.0, 277.9, 423.8, 343.76, 425.0, 429.67, 379.42, 491.23, 280.63, 595.75, 243.4, 630.12, 167.52, 595.75, 131.72, 568.55, 32.93, 492.67, 2.86, 436.83, 0.0, 180.54, 65.86, 166.22, 88.77, 160.5, 94.5, 126.13, 127.43, 131.86, 160.36, 117.54, 184.7, 144.75, 191.86, 151.91, 247.7, 160.5, 263.45, 171.95, 240.54, 197.72, 223.36, 207.74, 197.58, 217.77, 150.34, 275.04, 120.27, 290.79, 105.95, 332.31, 111.68, 353.78, 123.13, 378.12, 140.31, 396.74, 113.11, 403.9, 103.09, 433.96, 93.06, 454.01, 98.79, 476.92, 97.36, 486.94, 113.11, 515.57, 140.31, 525.6]], "area": 108675.00124999997, "iscrowd": 0, "image_id": 264244, "bbox": [0.0, 117.54, 425.0, 512.58], "category_id": 65, "id": 319382}, {"segmentation": [[4.67, 390.64, 85.14, 369.02, 86.94, 356.41, 117.57, 351.61, 138.59, 364.82, 145.79, 366.02, 148.2, 421.87, 136.19, 424.87, 134.98, 396.04, 3.47, 425.47, 2.87, 389.44]], "area": 5970.871150000004, "iscrowd": 0, "image_id": 104310, "bbox": [2.87, 351.61, 145.33, 73.86], "category_id": 65, "id": 319754}, {"segmentation": [[83.45, 136.41, 83.45, 208.48, 102.76, 233.57, 116.27, 257.38, 124.63, 271.53, 138.79, 282.47, 142.65, 299.2, 191.16, 359.88, 201.88, 382.31, 210.66, 381.33, 213.59, 398.89, 225.29, 400.84, 228.22, 421.32, 235.04, 428.15, 524.7, 427.17, 524.7, 421.32, 541.28, 427.17, 552.01, 419.37, 552.01, 412.54, 557.86, 412.54, 588.09, 403.77, 610.53, 262.35, 619.3, 258.45, 500.32, 210.66, 496.42, 201.88, 496.42, 196.03, 512.02, 195.06, 520.8, 186.28, 513.0, 176.53, 500.32, 170.67, 497.39, 159.95, 492.06, 159.36, 481.22, 160.77, 478.81, 161.77, 476.8, 157.76, 472.18, 161.97, 476.4, 163.38, 476.6, 166.79, 482.22, 175.43, 482.22, 178.24, 473.99, 179.85, 469.37, 184.46, 471.58, 187.28, 476.4, 189.48, 482.63, 191.09, 486.24, 191.89, 488.85, 192.9, 488.25, 204.34, 484.23, 204.95, 484.43, 202.94, 485.03, 199.93, 482.83, 197.72, 478.61, 196.31, 474.79, 195.11, 481.22, 194.7, 483.43, 193.9, 480.62, 192.5, 480.01, 192.3, 477.4, 192.3, 475.6, 192.3, 473.79, 192.3, 469.77, 192.7, 467.36, 192.7, 466.76, 191.69, 465.15, 190.69, 463.15, 191.29, 460.94, 192.09, 457.93, 191.29, 456.12, 192.3, 453.71, 190.69, 452.91, 188.28, 450.7, 190.29, 446.68, 190.49, 441.86, 190.49, 448.09, 189.28, 447.08, 187.68, 443.87, 187.28, 441.06, 187.28, 436.04, 186.47, 431.82, 186.47, 447.28, 177.44, 451.5, 172.82, 450.09, 166.19, 439.25, 159.76, 428.21, 157.96, 422.2, 152.26, 415.73, 150.11, 406.39, 147.95, 389.13, 145.79, 386.62, 145.79, 395.24, 139.32, 398.48, 138.24, 398.12, 134.65, 394.89, 132.85, 389.85, 128.9, 381.94, 126.02, 375.83, 126.02, 371.52, 124.94, 369.72, 119.91, 367.57, 118.83, 361.67, 116.09, 359.51, 114.51, 356.2, 113.93, 355.05, 110.91, 353.03, 107.74, 346.55, 106.45, 344.39, 108.89, 341.51, 112.06, 341.37, 113.07, 336.47, 113.65, 334.6, 113.65, 331.15, 115.37, 327.98, 116.96, 325.39, 118.54, 323.23, 120.12, 321.79, 122.14, 316.17, 122.0, 309.41, 122.72, 305.52, 123.87, 300.62, 125.74, 298.61, 127.9, 273.46, 128.83, 273.27, 126.98, 269.58, 126.79, 269.21, 123.1, 270.5, 116.81, 269.21, 113.12, 269.02, 111.64, 274.38, 110.35, 282.51, 107.58, 289.35, 98.89, 289.16, 96.67, 291.01, 95.75, 292.67, 92.61, 291.93, 89.28, 290.83, 86.88, 288.24, 85.96, 284.73, 85.4, 284.54, 82.81, 283.99, 78.2, 280.85, 77.09, 279.18, 76.9, 277.15, 76.35, 275.49, 77.27, 273.83, 78.75, 273.09, 80.78, 272.16, 80.78, 271.24, 80.78, 271.42, 78.75, 270.68, 77.64, 269.39, 76.35, 267.91, 75.42, 263.66, 75.61, 262.0, 77.09, 261.08, 78.93, 260.71, 80.04, 259.78, 79.3, 258.3, 77.09, 254.79, 76.16, 253.5, 76.53, 250.73, 78.2, 250.73, 79.12, 250.73, 80.41, 250.65, 74.37, 247.81, 75.15, 247.04, 72.83, 252.97, 68.96, 255.8, 63.55, 255.8, 57.62, 253.74, 55.04, 250.39, 54.27, 250.39, 50.15, 247.3, 48.09, 242.92, 47.05, 240.85, 49.63, 239.05, 50.66, 236.47, 48.86, 235.18, 47.83, 231.32, 43.45, 227.2, 44.22, 224.62, 48.34, 221.53, 47.57, 219.46, 46.02, 214.82, 48.86, 214.57, 51.69, 210.44, 52.98, 208.64, 55.82, 208.38, 59.43, 209.15, 62.0, 211.47, 67.16, 211.47, 70.25, 208.38, 70.51, 205.55, 72.57, 204.77, 76.95, 202.71, 76.43, 199.1, 77.72, 198.07, 76.43, 194.46, 78.5, 194.46, 80.3, 188.79, 83.14, 188.54, 84.94, 188.54, 87.52, 189.05, 90.87, 198.27, 97.79, 204.63, 98.21, 191.05, 98.21, 184.68, 97.36, 178.31, 95.67, 165.58, 98.21, 165.15, 100.34, 164.73, 104.58, 158.79, 105.85, 156.66, 110.1, 157.94, 116.04, 158.36, 116.89, 145.63, 116.47, 134.16, 116.89, 130.77, 118.59, 129.07, 115.62, 126.52, 113.92, 116.33, 113.92, 103.17, 114.34, 98.93, 115.62, 98.93, 120.29, 99.35, 124.96, 99.78, 130.48, 100.45, 131.95, 83.79, 132.55, 79.17, 136.17, 83.39, 136.37]], "area": 131242.9021999999, "iscrowd": 0, "image_id": 543882, "bbox": [79.17, 43.45, 540.13, 384.7], "category_id": 67, "id": 320624}, {"segmentation": [[12.94, 89.84, 172.73, 96.82, 177.09, 200.72, 27.79, 199.85]], "area": 16491.66085, "iscrowd": 0, "image_id": 379545, "bbox": [12.94, 89.84, 164.15, 110.88], "category_id": 72, "id": 321244}, {"segmentation": [[397.82, 304.1, 415.12, 300.84, 411.86, 318.14, 395.06, 318.39]], "area": 264.02219999999994, "iscrowd": 0, "image_id": 91307, "bbox": [395.06, 300.84, 20.06, 17.55], "category_id": 77, "id": 321469}, {"segmentation": [[37.25, 340.58, 21.44, 152.09, 40.63, 120.49, 49.66, 75.34, 59.82, 27.93, 71.11, 35.84, 74.49, 122.74, 174.94, 127.26, 191.87, 135.16, 200.9, 342.83, 110.61, 341.7, 34.99, 340.58]], "area": 38237.02805, "iscrowd": 0, "image_id": 146235, "bbox": [21.44, 27.93, 179.46, 314.9], "category_id": 77, "id": 321614}, {"segmentation": [[314.73, 196.11, 333.98, 157.07, 322.43, 141.68, 314.18, 194.73], [287.52, 204.08, 274.6, 139.21, 301.81, 127.11, 293.57, 166.97]], "area": 1322.27165, "iscrowd": 0, "image_id": 571516, "bbox": [274.6, 127.11, 59.38, 76.97], "category_id": 77, "id": 322343}, {"segmentation": [[30.5, 305.55, 37.11, 300.15, 52.72, 301.35, 64.73, 360.8, 58.73, 363.2, 55.72, 365.61, 49.12, 362.0, 40.11, 352.99]], "area": 1382.5299500000003, "iscrowd": 0, "image_id": 111759, "bbox": [30.5, 300.15, 34.23, 65.46], "category_id": 77, "id": 322425}, {"segmentation": [[205.65, 283.41, 201.04, 289.39, 190.46, 290.77, 189.08, 289.05, 195.75, 286.86, 200.12, 283.41, 200.58, 281.69, 205.53, 283.53]], "area": 59.817499999999704, "iscrowd": 0, "image_id": 448843, "bbox": [189.08, 281.69, 16.57, 9.08], "category_id": 77, "id": 322995}, {"segmentation": [[375.21, 54.62, 357.54, 54.28, 355.59, 58.64, 356.16, 61.97, 377.39, 62.08]], "area": 151.73309999999987, "iscrowd": 0, "image_id": 450940, "bbox": [355.59, 54.28, 21.8, 7.8], "category_id": 77, "id": 323214}, {"segmentation": [[367.26, 213.09, 381.59, 206.2, 416.59, 229.9, 417.41, 232.38, 416.59, 235.96, 400.6, 244.5, 365.06, 219.98, 364.23, 216.67, 366.71, 213.36]], "area": 992.3078499999992, "iscrowd": 0, "image_id": 256611, "bbox": [364.23, 206.2, 53.18, 38.3], "category_id": 77, "id": 323258}, {"segmentation": [[464.39, 55.93, 472.05, 85.35, 467.85, 91.53, 448.56, 91.04, 443.13, 69.28, 440.9, 58.16, 454.5, 55.44]], "area": 845.3930000000005, "iscrowd": 0, "image_id": 319917, "bbox": [440.9, 55.44, 31.15, 36.09], "category_id": 77, "id": 323438}, {"segmentation": [[254.37, 274.84, 255.17, 277.46, 255.78, 277.26, 256.79, 275.44, 257.7, 274.43, 259.01, 273.93, 259.21, 273.22, 258.71, 272.92, 254.37, 274.13], [256.39, 280.09, 258.2, 277.26, 259.31, 276.45, 260.43, 276.35, 260.73, 277.36, 259.52, 277.66, 258.1, 278.88, 256.99, 280.19, 256.39, 280.9], [260.32, 284.43, 261.13, 283.62, 261.94, 283.42, 262.04, 284.33, 261.03, 285.14, 260.32, 285.24]], "area": 16.845600000000093, "iscrowd": 0, "image_id": 156221, "bbox": [254.37, 272.92, 7.67, 12.32], "category_id": 77, "id": 323500}, {"segmentation": [[263.01, 369.99, 252.99, 367.22, 250.74, 363.25, 253.51, 358.75, 256.79, 356.85, 265.61, 354.09, 272.52, 353.91, 271.31, 358.06, 266.47, 363.42, 265.26, 366.53]], "area": 207.18965000000017, "iscrowd": 0, "image_id": 91307, "bbox": [250.74, 353.91, 21.78, 16.08], "category_id": 77, "id": 323697}, {"segmentation": [[354.77, 191.17, 388.82, 191.89, 391.35, 191.71, 394.05, 189.55, 399.28, 175.68, 400.18, 161.08, 400.0, 160.18, 395.49, 163.06, 386.66, 168.83, 383.06, 169.37, 376.39, 168.83, 374.23, 167.03, 372.79, 163.6, 368.46, 163.78, 364.86, 161.8, 363.24, 159.64, 366.12, 151.89, 371.17, 139.46, 371.17, 138.2, 367.02, 138.38, 363.06, 136.04, 362.7, 134.59, 360.72, 135.68, 360.54, 133.51, 360.54, 132.25, 345.22, 132.07, 315.31, 131.35, 303.24, 130.45, 282.16, 129.37, 279.28, 130.27, 276.75, 131.71, 274.23, 137.84, 271.35, 155.68, 270.63, 165.59, 270.63, 169.01, 271.53, 178.2, 273.33, 182.34, 275.49, 184.68, 280.54, 186.67, 284.86, 186.67, 354.77, 191.17]], "area": 6201.6615999999985, "iscrowd": 0, "image_id": 322725, "bbox": [270.63, 129.37, 129.55, 62.52], "category_id": 77, "id": 324018}, {"segmentation": [[292.01, 425.71, 307.72, 357.6, 312.09, 336.65, 315.58, 333.16, 325.18, 332.28, 344.39, 334.03, 360.11, 334.9, 367.1, 334.9, 361.86, 366.34, 351.38, 400.39, 349.63, 419.6, 347.01, 430.95, 347.01, 433.57, 331.3, 436.19, 315.58, 436.19, 307.72, 436.19, 302.48, 437.06, 287.64, 439.68, 281.53, 439.68, 290.26, 424.83]], "area": 5734.497600000002, "iscrowd": 0, "image_id": 140115, "bbox": [281.53, 332.28, 85.57, 107.4], "category_id": 77, "id": 324153}, {"segmentation": [[307.24, 337.35, 308.26, 332.75, 315.91, 326.63, 330.2, 321.53, 333.26, 324.08, 366.93, 371.53, 366.93, 375.1, 353.16, 384.29, 352.65, 377.65, 352.65, 373.57, 356.73, 369.49, 355.71, 364.39, 352.65, 362.86, 350.1, 363.88, 344.48, 367.96, 338.87, 379.19, 330.71, 371.02]], "area": 1652.8618000000015, "iscrowd": 0, "image_id": 130624, "bbox": [307.24, 321.53, 59.69, 62.76], "category_id": 77, "id": 324452}, {"segmentation": [[186.69, 280.2, 199.7, 259.14, 212.09, 264.1, 214.25, 269.05, 213.94, 272.46, 206.2, 280.82, 205.89, 278.65, 204.03, 276.49, 201.24, 276.18, 198.46, 276.18, 197.53, 277.11, 197.22, 279.89, 195.98, 283.3, 195.36, 289.5, 197.22, 296.62, 197.53, 297.55, 192.57, 300.96, 192.88, 295.38, 191.33, 293.83, 185.45, 297.86, 185.14, 298.17, 179.25, 296.62, 178.63, 296.0, 187.0, 280.2]], "area": 565.6698000000002, "iscrowd": 0, "image_id": 130624, "bbox": [178.63, 259.14, 35.62, 41.82], "category_id": 77, "id": 324707}, {"segmentation": [[80.86, 311.92, 95.18, 317.01, 126.24, 303.91, 125.27, 299.54, 111.44, 293.23, 80.86, 304.64, 80.86, 304.64]], "area": 612.9163, "iscrowd": 0, "image_id": 318509, "bbox": [80.86, 293.23, 45.38, 23.78], "category_id": 77, "id": 325046}, {"segmentation": [[63.63, 266.28, 67.53, 265.07, 71.29, 264.8, 76.53, 276.09, 74.24, 276.09, 71.83, 276.09, 69.94, 278.1, 68.87, 280.93, 67.79, 282.27]], "area": 116.1056999999999, "iscrowd": 0, "image_id": 91307, "bbox": [63.63, 264.8, 12.9, 17.47], "category_id": 77, "id": 325552}, {"segmentation": [[381.4, 333.86, 373.83, 331.78, 366.4, 332.08, 361.35, 329.7, 349.92, 327.48, 343.09, 323.17, 332.84, 312.63, 344.28, 314.26, 360.61, 323.91, 365.66, 327.63, 374.87, 330.0, 380.36, 330.6, 381.99, 331.78, 381.99, 332.82, 381.85, 333.42]], "area": 266.5048500000001, "iscrowd": 0, "image_id": 275917, "bbox": [332.84, 312.63, 49.15, 21.23], "category_id": 77, "id": 325740}, {"segmentation": [[112.27, 68.76, 129.63, 62.19, 167.16, 57.5, 165.75, 31.7, 178.89, 29.35, 184.99, 67.82, 184.05, 71.11, 190.62, 101.13, 193.9, 136.32, 193.9, 167.28, 192.02, 183.23, 184.05, 194.49, 171.85, 200.59, 151.68, 202.47, 139.95, 197.78, 131.5, 189.8, 126.81, 179.01, 115.55, 130.22, 114.14, 108.64, 115.08, 88.93]], "area": 10290.3115, "iscrowd": 0, "image_id": 215908, "bbox": [112.27, 29.35, 81.63, 173.12], "category_id": 77, "id": 326051}, {"segmentation": [[313.73, 103.02, 302.77, 77.61, 309.78, 74.98, 320.52, 75.2, 327.09, 92.5, 336.95, 117.03, 332.13, 119.23, 320.95, 119.23, 320.74, 112.65, 318.76, 111.56, 317.89, 111.78, 317.01, 107.18, 316.35, 103.02, 314.38, 103.02]], "area": 746.1474499999993, "iscrowd": 0, "image_id": 453734, "bbox": [302.77, 74.98, 34.18, 44.25], "category_id": 77, "id": 326373}, {"segmentation": [[124.13, 69.94, 125.48, 70.34, 126.56, 90.69, 123.86, 90.42, 123.86, 69.8], [124.23, 94.92, 123.96, 102.05, 126.5, 100.2, 126.29, 95.27]], "area": 57.83490000000009, "iscrowd": 0, "image_id": 445214, "bbox": [123.86, 69.8, 2.7, 32.25], "category_id": 77, "id": 326409}, {"segmentation": [[217.49, 415.47, 262.33, 447.98, 288.12, 451.35, 301.57, 458.07, 313.9, 450.22, 362.11, 359.42, 366.59, 284.3, 302.69, 255.16, 290.36, 267.49, 215.25, 407.62]], "area": 18739.392200000002, "iscrowd": 0, "image_id": 215908, "bbox": [215.25, 255.16, 151.34, 202.91], "category_id": 77, "id": 327882}, {"segmentation": [[531.1, 297.44, 538.65, 281.03, 541.78, 280.77, 550.12, 286.24, 550.12, 288.84, 547.51, 294.84, 543.86, 294.32, 538.65, 296.14, 532.66, 297.7]], "area": 190.45474999999988, "iscrowd": 0, "image_id": 9025, "bbox": [531.1, 280.77, 19.02, 16.93], "category_id": 77, "id": 328866}, {"segmentation": [[73.3, 195.41, 74.36, 202.01, 75.85, 203.92, 77.98, 204.13, 80.75, 203.28, 83.94, 200.3, 85.0, 199.02, 85.43, 197.11, 84.58, 193.7, 81.81, 192.64, 75.85, 194.13], [73.3, 185.83, 73.3, 186.89, 79.72, 187.12, 81.53, 186.97, 82.03, 186.18, 81.96, 185.53, 80.52, 185.1, 77.77, 185.17, 73.3, 185.6], [69.73, 175.72, 70.38, 178.05, 73.87, 177.92, 80.46, 178.82, 80.72, 174.82, 69.86, 175.33]], "area": 150.1880000000001, "iscrowd": 0, "image_id": 393714, "bbox": [69.73, 174.82, 15.7, 29.31], "category_id": 77, "id": 328886}, {"segmentation": [[252.83, 178.6, 248.27, 185.26, 247.4, 186.49, 246.64, 185.43, 252.31, 177.25, 252.89, 176.44, 258.09, 175.97, 258.85, 176.03, 259.08, 176.32, 259.14, 176.73, 259.2, 177.37, 259.02, 178.42, 253.01, 178.66]], "area": 27.31290000000003, "iscrowd": 0, "image_id": 280765, "bbox": [246.64, 175.97, 12.56, 10.52], "category_id": 77, "id": 329546}, {"segmentation": [[98.42, 455.04, 111.04, 458.39, 120.11, 458.79, 129.97, 457.8, 169.39, 441.83, 185.56, 434.34, 191.47, 429.02, 192.06, 426.06, 191.47, 423.3, 190.09, 422.71, 188.71, 420.74, 186.74, 418.57, 161.11, 394.52, 129.77, 369.09, 124.05, 365.74, 117.15, 364.55, 109.27, 364.16, 102.17, 364.16, 86.79, 368.5, 72.8, 375.0, 65.11, 379.93, 59.39, 385.65, 57.42, 391.36, 57.22, 395.31, 59.19, 405.16, 68.66, 421.53, 85.41, 442.42, 95.27, 453.46]], "area": 8369.4416, "iscrowd": 0, "image_id": 109776, "bbox": [57.22, 364.16, 134.84, 94.63], "category_id": 77, "id": 330003}, {"segmentation": [[72.14, 159.13, 74.33, 145.21, 75.8, 143.38, 81.29, 143.01, 82.39, 155.1], [73.23, 167.56, 81.66, 158.77, 82.76, 173.42, 72.14, 167.93]], "area": 186.50274999999993, "iscrowd": 0, "image_id": 393714, "bbox": [72.14, 143.01, 10.62, 30.41], "category_id": 77, "id": 330208}, {"segmentation": [[264.27, 232.18, 316.04, 241.89, 311.73, 282.88, 259.96, 306.61]], "area": 2957.433600000002, "iscrowd": 0, "image_id": 290153, "bbox": [259.96, 232.18, 56.08, 74.43], "category_id": 82, "id": 330849}, {"segmentation": [[271.21, 177.04, 274.38, 76.69, 278.96, 72.81, 299.38, 79.15, 298.68, 122.11, 295.16, 173.8, 295.51, 225.16, 293.75, 229.38, 290.93, 227.62, 290.93, 227.27, 277.55, 239.24, 277.9, 245.23, 269.45, 246.29, 270.86, 179.73]], "area": 4019.8239500000027, "iscrowd": 0, "image_id": 102315, "bbox": [269.45, 72.81, 29.93, 173.48], "category_id": 82, "id": 330880}, {"segmentation": [[76.58, 474.61, 26.97, 474.61, 2.16, 307.42, 3.24, 99.24, 131.6, 87.37, 226.52, 90.61, 234.07, 279.37, 53.93, 318.2, 39.91, 327.91, 62.56, 416.36, 73.35, 416.36, 78.74, 474.61, 78.74, 474.61], [86.29, 316.04, 103.55, 331.15, 99.24, 347.33, 117.57, 389.39, 112.18, 423.91, 126.2, 473.53, 225.44, 473.53, 243.78, 463.82, 235.15, 313.89, 234.07, 282.61, 86.29, 316.04]], "area": 77912.4396, "iscrowd": 0, "image_id": 472861, "bbox": [2.16, 87.37, 241.62, 387.24], "category_id": 82, "id": 330884}, {"segmentation": [[106.43, 126.12, 126.56, 38.39, 163.96, 49.9, 373.93, 113.18, 365.3, 131.88, 480.0, 173.58, 478.92, 350.48, 404.13, 525.94, 373.93, 500.05, 360.99, 500.05, 270.38, 419.52, 208.54, 593.54, 34.52, 590.66, 23.01, 481.36]], "area": 174985.00759999998, "iscrowd": 0, "image_id": 428340, "bbox": [23.01, 38.39, 456.99, 555.15], "category_id": 82, "id": 330892}, {"segmentation": [[0.75, 1.12, 497.99, 1.12, 499.48, 326.15, 0.75, 325.41, 2.98, 1.86]], "area": 161313.9511, "iscrowd": 0, "image_id": 246356, "bbox": [0.75, 1.12, 498.73, 325.03], "category_id": 82, "id": 331373}, {"segmentation": [[128.96, 172.04, 169.08, 171.08, 170.99, 245.59, 150.93, 241.77, 134.69, 245.59, 127.05, 236.04, 126.09, 205.47, 126.09, 187.32, 123.23, 174.9]], "area": 3140.4198499999998, "iscrowd": 0, "image_id": 346754, "bbox": [123.23, 171.08, 47.76, 74.51], "category_id": 82, "id": 331814}, {"segmentation": [[50.89, 486.85, 44.01, 196.67, 180.16, 196.67, 185.66, 481.35, 55.01, 503.35]], "area": 40075.4728, "iscrowd": 0, "image_id": 431014, "bbox": [44.01, 196.67, 141.65, 306.68], "category_id": 82, "id": 332059}, {"segmentation": [[232.99, 168.63, 335.1, 180.13, 316.4, 480.72, 273.26, 529.62, 267.51, 506.61, 277.57, 346.97, 181.21, 326.83, 181.21, 244.85, 228.67, 227.6]], "area": 29248.282049999998, "iscrowd": 0, "image_id": 212181, "bbox": [181.21, 168.63, 153.89, 360.99], "category_id": 82, "id": 332105}, {"segmentation": [[194.72, 203.45, 313.56, 212.04, 438.12, 220.63, 412.35, 446.85, 393.74, 433.96, 314.99, 466.89, 317.85, 557.1, 326.44, 562.82, 335.03, 571.41, 330.74, 601.48, 286.35, 620.09, 177.54, 524.17, 181.83, 330.88, 190.43, 323.72, 178.97, 305.1, 181.83, 229.22, 186.13, 210.61]], "area": 76834.6393, "iscrowd": 0, "image_id": 354761, "bbox": [177.54, 203.45, 260.58, 416.64], "category_id": 82, "id": 332474}, {"segmentation": [[148.13, 612.67, 113.62, 474.61, 86.29, 174.02, 96.36, 165.39, 116.49, 207.1, 356.67, 188.4, 398.38, 224.36, 392.63, 238.74, 355.24, 579.6, 153.89, 621.3]], "area": 107147.51924999998, "iscrowd": 0, "image_id": 239504, "bbox": [86.29, 165.39, 312.09, 455.91], "category_id": 82, "id": 332512}, {"segmentation": [[576.69, 420.28, 609.31, 142.01, 640.0, 133.38, 640.0, 419.32]], "area": 13180.72855, "iscrowd": 0, "image_id": 551986, "bbox": [576.69, 133.38, 63.31, 286.9], "category_id": 82, "id": 332582}, {"segmentation": [[138.07, 5.75, 148.13, 115.06, 156.76, 136.63, 169.71, 155.33, 174.02, 191.28, 178.34, 168.27, 185.53, 168.27, 192.72, 204.22, 225.8, 215.73, 205.66, 225.8, 209.98, 322.16, 250.25, 290.52, 245.93, 4.31, 133.75, 5.75]], "area": 22500.106150000003, "iscrowd": 0, "image_id": 17580, "bbox": [133.75, 4.31, 116.5, 317.85], "category_id": 82, "id": 332660}, {"segmentation": [[533.61, 233.89, 590.0, 233.89, 590.0, 594.21, 529.48, 594.21]], "area": 21062.505599999997, "iscrowd": 0, "image_id": 61203, "bbox": [529.48, 233.89, 60.52, 360.32], "category_id": 82, "id": 332875}, {"segmentation": [[182.7, 123.78, 217.3, 84.86, 294.05, 76.22, 334.05, 49.19, 409.73, 60.0, 437.84, 103.24, 463.78, 200.54, 474.59, 429.73, 474.59, 472.97, 168.65, 474.05, 168.65, 308.65, 191.35, 253.51, 206.49, 210.27, 191.35, 162.7, 188.11, 119.46]], "area": 112840.92435000002, "iscrowd": 0, "image_id": 270796, "bbox": [168.65, 49.19, 305.94, 424.86], "category_id": 85, "id": 334002}, {"segmentation": [[58.09, 90.49, 59.27, 86.16, 61.44, 82.22, 63.21, 79.06, 66.56, 77.88, 72.87, 76.7, 77.8, 76.7, 82.92, 78.08, 87.06, 81.43, 89.63, 84.58, 92.38, 87.93, 93.17, 92.07, 92.98, 97.39, 92.38, 102.91, 89.23, 107.25, 85.88, 110.4, 80.95, 112.18, 75.24, 111.58, 70.51, 109.61, 64.59, 106.26, 61.64, 101.93, 59.27, 97.2]], "area": 970.6243000000002, "iscrowd": 0, "image_id": 110484, "bbox": [58.09, 76.7, 35.08, 35.48], "category_id": 85, "id": 334763}, {"segmentation": [[236.23, 90.71, 225.68, 83.85, 224.62, 73.83, 225.68, 60.63, 232.01, 52.19, 238.87, 48.5, 244.67, 44.8, 244.67, 49.02, 249.95, 49.02, 251.01, 45.86, 264.2, 54.3, 268.95, 66.44, 271.59, 75.94, 267.89, 85.44, 261.56, 91.24, 251.53, 94.41, 245.73, 94.41, 238.87, 92.3]], "area": 1734.0787499999992, "iscrowd": 0, "image_id": 453332, "bbox": [224.62, 44.8, 46.97, 49.61], "category_id": 85, "id": 335076}, {"segmentation": [[143.37, 591.74, 137.11, 566.7, 140.24, 539.16, 155.89, 512.87, 177.17, 499.72, 207.85, 492.21, 242.9, 507.86, 259.18, 529.77, 267.32, 562.32, 263.56, 593.62, 252.92, 613.03, 239.77, 624.3, 217.86, 632.43, 192.2, 633.69, 164.65, 621.79, 150.25, 607.39]], "area": 14264.733400000001, "iscrowd": 0, "image_id": 379465, "bbox": [137.11, 492.21, 130.21, 141.48], "category_id": 85, "id": 335119}, {"segmentation": [[247.79, 36.94, 247.19, 39.55, 246.99, 43.36, 247.19, 46.56, 247.79, 49.77, 248.69, 51.87, 258.01, 52.58, 262.82, 51.47, 263.22, 51.17, 263.22, 46.16, 262.82, 38.35, 262.32, 36.44, 248.39, 36.74]], "area": 242.4940500000002, "iscrowd": 0, "image_id": 401182, "bbox": [246.99, 36.44, 16.23, 16.14], "category_id": 85, "id": 335337}, {"segmentation": [[323.06, 194.46, 322.99, 191.42, 323.92, 190.03, 324.91, 189.89, 325.97, 190.89, 326.9, 193.01, 326.57, 194.99, 325.18, 196.71, 322.86, 196.98, 322.46, 196.12]], "area": 22.122150000000023, "iscrowd": 0, "image_id": 422341, "bbox": [322.46, 189.89, 4.44, 7.09], "category_id": 85, "id": 335343}, {"segmentation": [[293.91, 233.73, 298.71, 227.02, 306.86, 223.66, 315.73, 224.86, 321.0, 232.05, 322.2, 241.4, 316.93, 246.92, 307.58, 250.75, 302.3, 251.47, 295.83, 247.16, 294.63, 242.6, 293.43, 238.29]], "area": 601.8294499999997, "iscrowd": 0, "image_id": 358100, "bbox": [293.43, 223.66, 28.77, 27.81], "category_id": 85, "id": 335515}, {"segmentation": [[603.74, 351.37, 590.16, 342.76, 579.29, 333.7, 569.33, 312.42, 567.97, 299.74, 570.68, 285.7, 577.02, 273.92, 591.06, 264.87, 606.91, 261.24, 625.03, 258.07, 638.16, 263.51, 640.0, 266.68, 639.97, 352.27, 629.11, 354.08, 619.59, 355.44, 604.2, 352.27]], "area": 5717.504550000001, "iscrowd": 0, "image_id": 448533, "bbox": [567.97, 258.07, 72.03, 97.37], "category_id": 85, "id": 335529}, {"segmentation": [[225.32, 231.84, 231.08, 225.42, 238.16, 222.1, 246.57, 221.0, 255.87, 224.1, 261.4, 229.19, 266.05, 237.82, 265.38, 246.89, 264.28, 254.64, 255.2, 261.28, 249.67, 264.6, 236.83, 262.17, 229.31, 257.74, 225.54, 252.65, 223.99, 244.68, 223.99, 240.03, 224.66, 236.93]], "area": 1431.0943499999996, "iscrowd": 0, "image_id": 75308, "bbox": [223.99, 221.0, 42.06, 43.6], "category_id": 85, "id": 335990}, {"segmentation": [[258.01, 115.95, 262.86, 107.36, 273.32, 100.64, 287.89, 101.01, 296.48, 104.37, 303.58, 113.71, 303.95, 125.29, 300.96, 133.88, 292.37, 142.47, 279.3, 143.97, 270.71, 142.84, 259.5, 133.88, 257.63, 127.53]], "area": 1628.3963999999999, "iscrowd": 0, "image_id": 286619, "bbox": [257.63, 100.64, 46.32, 43.33], "category_id": 85, "id": 336011}, {"segmentation": [[464.69, 111.52, 446.9, 111.52, 434.85, 98.66, 434.58, 78.68, 448.26, 65.0, 467.7, 65.0, 480.29, 78.13, 478.64, 98.39, 464.96, 111.8, 464.96, 111.8, 464.96, 111.8]], "area": 1740.31845, "iscrowd": 0, "image_id": 459794, "bbox": [434.58, 65.0, 45.71, 46.8], "category_id": 85, "id": 336411}, {"segmentation": [[0.0, 211.7, 170.43, 251.91, 178.09, 238.51, 201.07, 79.56, 201.07, 72.86, 0.0, 35.52]], "area": 34143.47575, "iscrowd": 0, "image_id": 518110, "bbox": [0.0, 35.52, 201.07, 216.39], "category_id": 85, "id": 336526}, {"segmentation": [[468.66, 274.76, 459.35, 275.54, 460.13, 282.81, 459.64, 284.16, 463.52, 282.81, 464.68, 285.72, 469.92, 284.75]], "area": 89.01165000000023, "iscrowd": 0, "image_id": 207463, "bbox": [459.35, 274.76, 10.57, 10.96], "category_id": 85, "id": 336566}, {"segmentation": [[281.43, 238.99, 289.21, 232.32, 301.99, 231.77, 313.1, 238.44, 316.43, 247.33, 318.66, 259.55, 312.54, 273.44, 304.21, 280.67, 292.54, 285.67, 279.21, 282.89, 269.2, 267.33, 269.76, 253.44, 274.76, 242.88]], "area": 2008.1371000000013, "iscrowd": 0, "image_id": 399378, "bbox": [269.2, 231.77, 49.46, 53.9], "category_id": 85, "id": 336946}, {"segmentation": [[137.83, 165.8, 111.68, 161.19, 95.53, 146.58, 89.38, 131.97, 90.15, 117.36, 101.68, 109.67, 119.37, 104.28, 141.67, 102.74, 159.36, 115.82, 167.82, 125.04, 170.12, 141.19, 158.59, 156.57, 146.29, 162.73]], "area": 3823.4953000000005, "iscrowd": 0, "image_id": 233843, "bbox": [89.38, 102.74, 80.74, 63.06], "category_id": 85, "id": 336996}, {"segmentation": [[296.15, 195.02, 304.04, 192.06, 309.46, 190.58, 319.82, 189.6, 340.05, 203.9, 354.85, 218.21, 367.67, 243.86, 372.6, 269.01, 372.6, 286.77, 365.7, 298.12, 360.27, 302.56, 351.39, 303.54, 342.02, 303.54, 331.17, 296.64, 321.3, 289.73, 309.96, 276.91, 301.08, 256.68, 292.69, 235.47, 292.69, 217.71, 295.16, 194.53]], "area": 6415.019800000002, "iscrowd": 0, "image_id": 81174, "bbox": [292.69, 189.6, 79.91, 113.94], "category_id": 85, "id": 337406}, {"segmentation": [[582.42, 114.17, 588.94, 120.46, 592.43, 126.74, 592.89, 133.26, 591.96, 140.48, 587.77, 147.23, 582.65, 151.19, 577.06, 152.59, 571.94, 153.05, 564.72, 150.72, 557.27, 147.0, 554.48, 139.55, 552.62, 133.26, 555.18, 123.49, 558.67, 117.9, 567.05, 114.41, 577.99, 113.47]], "area": 1254.5390500000005, "iscrowd": 0, "image_id": 448533, "bbox": [552.62, 113.47, 40.27, 39.58], "category_id": 85, "id": 337835}, {"segmentation": [[167.38, 182.36, 175.26, 175.74, 188.5, 170.37, 199.42, 167.5, 216.78, 167.5, 231.63, 171.8, 244.7, 182.0, 251.68, 191.31, 251.86, 209.03, 247.74, 222.45, 237.36, 237.48, 225.19, 246.79, 210.16, 254.31, 195.12, 255.92, 179.55, 255.38, 165.59, 247.15, 156.47, 238.56, 151.46, 224.24, 151.46, 212.43, 157.36, 193.28, 164.34, 186.65]], "area": 6978.950249999998, "iscrowd": 0, "image_id": 66493, "bbox": [151.46, 167.5, 100.4, 88.42], "category_id": 85, "id": 337998}, {"segmentation": [[132.29, 90.4, 137.14, 86.08, 142.19, 85.34, 147.04, 86.19, 150.94, 91.14, 150.2, 96.72, 147.67, 101.99, 142.19, 104.83, 136.29, 105.15, 132.08, 102.94, 129.87, 100.3, 130.82, 94.72, 132.4, 89.56]], "area": 318.74264999999986, "iscrowd": 0, "image_id": 116789, "bbox": [129.87, 85.34, 21.07, 19.81], "category_id": 85, "id": 338830}, {"segmentation": [[461.47, 37.93, 460.03, 42.41, 459.24, 43.32, 458.35, 44.78, 456.86, 45.86, 455.59, 46.53, 454.32, 47.19, 452.45, 47.19, 450.87, 47.22, 448.93, 46.21, 447.7, 44.66, 446.75, 43.36, 446.49, 42.28, 446.27, 40.73, 446.18, 39.81, 446.05, 38.0, 446.43, 35.88, 446.59, 34.77, 447.86, 32.99, 448.62, 31.88, 450.08, 30.61, 451.37, 29.92, 452.99, 29.7, 454.39, 29.7, 456.03, 29.73, 457.27, 29.89, 458.85, 30.61, 460.06, 31.88, 460.72, 33.72, 460.88, 35.59, 461.64, 37.62]], "area": 214.92795000000007, "iscrowd": 0, "image_id": 375659, "bbox": [446.05, 29.7, 15.59, 17.52], "category_id": 85, "id": 338876}, {"segmentation": [[465.1, 41.9, 464.14, 27.51, 487.17, 21.75, 488.13, 34.23, 467.02, 39.99]], "area": 301.2239999999999, "iscrowd": 0, "image_id": 375659, "bbox": [464.14, 21.75, 23.99, 20.15], "category_id": 85, "id": 339038}, {"segmentation": [[276.67, 33.2, 281.63, 29.49, 288.44, 29.18, 294.33, 32.89, 298.04, 41.26, 300.52, 45.28, 299.28, 53.96, 297.73, 60.46, 293.71, 63.25, 286.89, 62.63, 281.32, 60.77, 277.29, 55.2, 274.19, 48.07, 273.26, 41.57]], "area": 696.8324499999998, "iscrowd": 0, "image_id": 176587, "bbox": [273.26, 29.18, 27.26, 34.07], "category_id": 85, "id": 339621}, {"segmentation": [[350.01, 274.87, 350.77, 277.5, 350.77, 279.2, 350.96, 280.52, 350.96, 282.03, 350.96, 282.97, 352.28, 285.23, 353.03, 286.17, 356.42, 288.06, 357.55, 288.06, 357.55, 288.06, 360.0, 287.49, 360.94, 285.98, 361.32, 283.91, 362.26, 282.78, 362.45, 273.92, 362.45, 269.02, 361.7, 256.96, 360.38, 251.69, 356.8, 242.83, 355.29, 240.57, 354.54, 239.44, 353.78, 238.87, 348.88, 236.8, 348.88, 236.8, 347.38, 237.55, 346.81, 238.31, 346.25, 240.0, 344.74, 245.09, 343.8, 250.74, 343.61, 255.27, 343.61, 258.66, 344.17, 264.12, 344.36, 265.44, 345.49, 270.15, 346.81, 272.04, 348.13, 275.24]], "area": 705.8009999999997, "iscrowd": 0, "image_id": 399378, "bbox": [343.61, 236.8, 18.84, 51.26], "category_id": 85, "id": 340339}, {"segmentation": [[87.51, 324.16, 84.04, 313.76, 90.03, 306.52, 96.96, 302.74, 105.46, 306.52, 104.83, 312.82, 103.89, 322.27, 99.48, 326.99, 94.12, 326.99]], "area": 378.53155000000015, "iscrowd": 0, "image_id": 181149, "bbox": [84.04, 302.74, 21.42, 24.25], "category_id": 85, "id": 340667}, {"segmentation": [[185.53, 358.38, 227.6, 306.61, 237.3, 297.98, 237.3, 289.35, 244.85, 279.64, 256.72, 264.54, 264.27, 258.07, 284.76, 245.12, 295.55, 234.34, 298.79, 234.34, 302.02, 239.73, 299.87, 248.36, 311.73, 252.67, 290.16, 285.03, 278.29, 300.13, 269.66, 300.13, 259.96, 300.13, 250.25, 307.69, 211.42, 351.91, 148.85, 422.02, 145.62, 424.18, 138.07, 419.87, 134.83, 417.71, 132.67, 414.47, 132.67, 412.31, 135.91, 408.0, 148.85, 398.29]], "area": 5144.5231, "iscrowd": 0, "image_id": 359098, "bbox": [132.67, 234.34, 179.06, 189.84], "category_id": 90, "id": 341508}, {"segmentation": [[173.68, 240.69, 172.72, 210.94, 187.11, 177.36, 210.14, 155.29, 234.13, 138.97, 281.15, 132.26, 308.98, 151.45, 313.77, 185.99, 306.1, 224.37, 277.31, 259.88, 239.89, 279.07, 208.22, 278.11, 187.11, 265.64, 172.72, 239.73]], "area": 15526.265650000001, "iscrowd": 0, "image_id": 310753, "bbox": [172.72, 132.26, 141.05, 146.81], "category_id": 85, "id": 341538}, {"segmentation": [[250.72, 405.26, 245.81, 409.63, 242.53, 409.9, 240.34, 410.72, 239.8, 408.81, 237.89, 407.17, 215.49, 393.51, 208.94, 386.69, 215.49, 382.59, 226.14, 389.42, 225.05, 391.88, 237.61, 399.25, 245.53, 401.71]], "area": 327.7461500000004, "iscrowd": 0, "image_id": 90582, "bbox": [208.94, 382.59, 41.78, 28.13], "category_id": 90, "id": 341550}, {"segmentation": [[267.83, 284.73, 261.99, 310.7, 264.12, 315.47, 261.46, 328.2, 258.81, 339.86, 252.45, 347.81, 265.18, 352.05, 271.01, 348.87, 276.31, 340.92, 285.32, 292.68, 270.48, 283.67], [271.54, 219.0, 269.95, 224.3, 271.01, 229.07, 280.55, 231.19, 284.26, 219.53, 279.49, 216.88, 274.72, 217.94]], "area": 1297.3897000000002, "iscrowd": 0, "image_id": 422193, "bbox": [252.45, 216.88, 32.87, 135.17], "category_id": 90, "id": 342079}, {"segmentation": [[244.06, 212.63, 265.6, 196.42, 268.98, 194.24, 275.52, 194.24, 279.63, 189.88, 283.75, 187.46, 287.13, 186.74, 289.31, 187.46, 274.07, 199.56, 269.47, 199.56, 257.0, 207.5, 260.14, 211.85, 253.61, 218.63, 249.25, 215.0, 245.38, 216.21, 244.17, 213.3]], "area": 272.23314999999997, "iscrowd": 0, "image_id": 96177, "bbox": [244.06, 186.74, 45.25, 31.89], "category_id": 90, "id": 342500}, {"segmentation": [[288.31, 287.45, 285.47, 295.39, 286.6, 301.92, 324.34, 294.26, 338.53, 288.58, 340.24, 285.18, 357.83, 276.38, 366.63, 276.38, 367.76, 271.56, 362.65, 268.44, 329.45, 278.08, 314.7, 279.22, 304.48, 281.49, 295.68, 286.03, 289.16, 288.02]], "area": 1025.9154999999998, "iscrowd": 0, "image_id": 260118, "bbox": [285.47, 268.44, 82.29, 33.48], "category_id": 90, "id": 342573}, {"segmentation": [[195.98, 216.89, 194.43, 213.47, 198.77, 207.26, 204.05, 207.57, 197.53, 217.82], [206.54, 185.83, 210.89, 180.55, 213.37, 179.31, 213.37, 185.83, 206.85, 185.83]], "area": 75.18135000000012, "iscrowd": 0, "image_id": 542041, "bbox": [194.43, 179.31, 18.94, 38.51], "category_id": 90, "id": 343330}, {"segmentation": [[108.46, 311.51, 123.49, 327.62, 150.34, 342.65, 187.92, 346.95, 212.62, 338.36, 240.54, 315.81, 248.05, 268.56, 239.46, 237.42, 222.28, 206.28, 205.1, 188.02, 185.93, 186.09, 161.13, 188.92, 134.92, 192.47, 119.33, 197.43, 105.16, 189.63, 100.2, 173.34, 106.58, 156.34, 131.38, 151.38, 136.34, 144.29, 134.21, 137.21, 103.04, 134.37, 74.7, 134.37, 69.03, 140.04, 67.62, 150.67, 64.07, 172.63, 56.28, 176.88, 39.28, 176.17, 10.23, 168.38, 5.98, 166.96, 1.73, 188.92, 1.73, 222.22, 12.36, 237.81, 18.73, 250.56, 21.57, 264.73, 27.23, 277.48, 35.73, 289.53, 73.99, 306.53, 86.04, 285.27, 101.62, 306.53, 112.25, 320.7]], "area": 32519.981050000002, "iscrowd": 0, "image_id": 277472, "bbox": [1.73, 134.37, 246.32, 212.58], "category_id": 2, "id": 344053}, {"segmentation": [[442.7, 199.56, 437.31, 190.25, 433.88, 194.17, 410.36, 195.15, 403.99, 188.78, 403.99, 180.45, 407.42, 174.08, 429.96, 170.16, 439.76, 166.73, 441.72, 150.57, 475.52, 142.24, 476.01, 150.08, 476.5, 156.94, 478.95, 162.32, 477.97, 171.63, 484.83, 181.43, 484.83, 190.25, 485.32, 200.54, 479.93, 201.52, 477.48, 197.6, 477.97, 194.17, 456.41, 196.62, 453.96, 201.52, 447.59, 202.01, 445.63, 201.03]], "area": 2876.2094499999994, "iscrowd": 0, "image_id": 13258, "bbox": [403.99, 142.24, 81.33, 59.77], "category_id": 3, "id": 344780}, {"segmentation": [[150.82, 334.33, 75.18, 329.33, 63.71, 346.4, 47.23, 346.69, 46.93, 351.69, 58.12, 354.34, 51.64, 360.52, 47.52, 367.58, 47.82, 395.54, 46.64, 398.19, 46.05, 424.09, 65.47, 424.68, 68.12, 414.38, 77.24, 413.79, 83.42, 417.32, 87.84, 416.73, 88.43, 415.55, 89.9, 414.96, 137.57, 416.73, 146.7, 419.38, 151.41, 417.02, 151.7, 414.96, 155.82, 415.55, 157.0, 428.5, 176.71, 426.15, 178.19, 371.41, 167.59, 359.34, 172.3, 358.17, 172.01, 352.28, 162.59, 349.63, 151.41, 334.33]], "area": 10483.444300000001, "iscrowd": 0, "image_id": 354277, "bbox": [46.05, 329.33, 132.14, 99.17], "category_id": 3, "id": 344922}, {"segmentation": [[269.06, 193.51, 257.57, 205.0, 239.37, 197.34, 231.71, 184.89, 240.33, 175.31, 243.2, 167.65, 248.95, 156.16, 251.82, 145.63, 246.08, 140.84, 244.16, 137.01, 244.16, 129.35, 246.08, 126.48, 275.76, 121.69, 287.25, 121.69, 294.91, 111.16, 308.31, 89.14, 322.68, 87.22, 349.49, 86.27, 376.3, 81.48, 401.19, 81.48, 431.83, 79.56, 449.06, 83.39, 461.51, 88.18, 476.83, 104.46, 491.19, 117.86, 498.85, 123.61, 499.81, 123.61, 516.09, 127.44, 529.49, 138.93, 532.37, 154.25, 534.28, 161.91, 530.45, 166.7, 517.05, 168.61, 482.58, 166.7, 471.09, 167.65, 468.21, 182.97, 458.64, 189.68, 450.02, 194.46, 437.57, 192.55, 430.87, 182.97, 428.0, 172.44, 404.06, 173.4, 359.06, 172.44, 325.55, 175.31, 306.4, 176.27, 287.25, 177.23, 279.59, 181.06, 272.89, 191.59]], "area": 22611.749099999997, "iscrowd": 0, "image_id": 203989, "bbox": [231.71, 79.56, 302.57, 125.44], "category_id": 3, "id": 345375}, {"segmentation": [[21.45, 426.23, 22.78, 422.91, 28.6, 423.74, 36.92, 423.57, 39.58, 428.4, 34.76, 433.88, 32.43, 437.54, 30.6, 436.21, 23.61, 436.38, 17.46, 437.88, 16.46, 434.05, 18.13, 427.73]], "area": 243.27769999999958, "iscrowd": 0, "image_id": 399378, "bbox": [16.46, 422.91, 23.12, 14.97], "category_id": 3, "id": 345773}, {"segmentation": [[251.77, 603.77, 249.82, 578.89, 252.26, 575.48, 255.19, 557.92, 260.55, 559.38, 301.52, 555.97, 305.91, 577.43, 307.38, 594.5, 307.38, 599.38, 306.89, 602.79, 300.55, 601.82, 298.6, 594.5, 268.36, 597.91, 265.92, 605.72, 260.55, 603.77, 248.36, 607.67]], "area": 2235.768199999999, "iscrowd": 0, "image_id": 75308, "bbox": [248.36, 555.97, 59.02, 51.7], "category_id": 3, "id": 345815}, {"segmentation": [[322.92, 241.52, 334.33, 240.38, 338.33, 240.83, 344.84, 245.17, 348.03, 247.57, 351.12, 248.48, 352.49, 256.13, 353.86, 256.47, 352.37, 262.75, 351.8, 263.32, 349.4, 264.12, 348.49, 267.43, 346.55, 268.46, 344.84, 268.35, 343.01, 268.12, 341.98, 265.49, 328.4, 266.86, 327.14, 268.92, 325.09, 271.09, 322.69, 270.63, 321.66, 268.12, 320.52, 255.1, 322.12, 251.11, 322.92, 246.54]], "area": 740.7370499999998, "iscrowd": 0, "image_id": 564803, "bbox": [320.52, 240.38, 33.34, 30.71], "category_id": 3, "id": 346101}, {"segmentation": [[243.42, 543.58, 247.55, 546.33, 262.68, 553.21, 279.18, 553.21, 292.93, 555.96, 301.19, 561.46, 313.56, 566.96, 313.56, 580.71, 301.19, 584.84, 284.68, 584.84, 214.54, 584.84, 149.91, 576.59, 148.53, 569.71, 148.53, 564.21, 148.53, 557.33, 148.53, 554.58, 148.53, 553.21, 182.91, 546.33, 191.16, 542.2, 196.67, 539.45]], "area": 5604.40405, "iscrowd": 0, "image_id": 358100, "bbox": [148.53, 539.45, 165.03, 45.39], "category_id": 3, "id": 346264}, {"segmentation": [[551.33, 168.86, 553.8, 180.62, 562.54, 181.44, 566.92, 183.08, 572.66, 183.35, 577.86, 186.09, 578.95, 187.73, 580.04, 185.54, 580.04, 179.25, 583.6, 171.87, 587.43, 168.31, 590.16, 165.03, 588.52, 159.57, 581.68, 156.83, 559.81, 160.66, 556.53, 165.85, 556.8, 166.67]], "area": 734.64445, "iscrowd": 0, "image_id": 24730, "bbox": [551.33, 156.83, 38.83, 30.9], "category_id": 3, "id": 346434}, {"segmentation": [[437.78, 302.95, 435.79, 296.69, 437.21, 285.87, 439.49, 277.61, 445.47, 262.81, 449.17, 257.69, 464.54, 251.14, 498.99, 253.13, 508.1, 275.34, 509.81, 297.26, 508.67, 306.65, 502.69, 307.79, 500.98, 303.81, 494.72, 304.66, 488.74, 309.79, 480.77, 307.79, 481.62, 302.38, 470.24, 301.25, 465.68, 299.82, 459.99, 306.65, 451.16, 306.08, 450.31, 298.11, 444.33, 299.82, 443.19, 304.66]], "area": 3384.9205000000015, "iscrowd": 0, "image_id": 164036, "bbox": [435.79, 251.14, 74.02, 58.65], "category_id": 3, "id": 346555}, {"segmentation": [[411.12, 294.88, 415.36, 294.88, 415.86, 289.89, 415.86, 282.65, 424.6, 270.42, 432.09, 264.93, 428.84, 262.68, 420.1, 261.18, 411.37, 261.18, 409.87, 259.93, 402.13, 265.18, 397.14, 274.66, 392.65, 276.66, 391.15, 282.65, 389.9, 284.4, 391.9, 289.39, 389.15, 293.38, 390.65, 298.87, 394.14, 298.87, 397.89, 293.88, 402.88, 293.13, 401.88, 299.62, 405.13, 301.12, 408.12, 295.63]], "area": 903.4933500000005, "iscrowd": 0, "image_id": 164036, "bbox": [389.15, 259.93, 42.94, 41.19], "category_id": 3, "id": 346870}, {"segmentation": [[405.55, 241.45, 402.27, 238.95, 395.33, 238.56, 394.56, 237.98, 394.18, 237.02, 396.1, 229.31, 405.55, 227.0, 414.22, 224.5, 418.07, 221.8, 425.39, 219.87, 444.09, 220.83, 451.02, 225.46, 451.41, 226.23, 457.96, 226.62, 459.12, 233.55, 459.5, 235.67, 457.57, 237.79, 454.11, 239.91, 450.25, 239.91, 444.47, 242.42, 441.0, 241.07, 437.53, 239.53, 410.75, 238.76, 408.63, 240.88, 406.51, 241.45]], "area": 1019.5219499999989, "iscrowd": 0, "image_id": 510314, "bbox": [394.18, 219.87, 65.32, 22.55], "category_id": 3, "id": 347359}, {"segmentation": [[25.77, 249.28, 57.99, 237.47, 88.05, 231.03, 117.05, 233.17, 122.42, 233.17, 121.34, 251.43, 117.05, 272.91, 118.12, 287.94, 121.34, 318.01, 115.97, 323.37, 112.75, 326.6, 112.75, 335.19, 79.46, 339.48, 64.43, 353.44, 47.25, 354.52, 38.66, 350.22, 31.14, 339.48, 33.29, 309.42, 32.21, 273.98]], "area": 9454.243999999997, "iscrowd": 0, "image_id": 387595, "bbox": [25.77, 231.03, 96.65, 123.49], "category_id": 3, "id": 348845}, {"segmentation": [[586.35, 203.77, 574.48, 183.14, 561.27, 182.87, 541.18, 182.47, 539.43, 188.67, 539.43, 193.12, 542.12, 193.8, 548.33, 195.68, 549.67, 198.51, 551.02, 202.69, 551.02, 203.91]], "area": 757.9326000000012, "iscrowd": 0, "image_id": 24730, "bbox": [539.43, 182.47, 46.92, 21.44], "category_id": 3, "id": 348899}, {"segmentation": [[5.95, 0.0, 12.88, 0.69, 13.87, 13.57, 126.85, 26.45, 120.9, 11.59, 103.07, 0.0, 160.54, 0.0, 189.28, 27.45, 284.42, 48.26, 340.91, 70.06, 390.46, 130.51, 418.21, 169.16, 431.09, 179.07, 433.07, 195.92, 473.7, 261.32, 522.26, 341.6, 525.24, 310.87, 532.17, 296.01, 610.46, 308.89, 634.25, 321.78, 637.22, 349.52, 634.25, 382.23, 615.42, 398.08, 632.27, 440.7, 146.67, 441.0, 1.98, 441.0, 0.0, 302.95]], "area": 198774.0724, "iscrowd": 0, "image_id": 456653, "bbox": [0.0, 0.0, 637.22, 441.0], "category_id": 3, "id": 349646}, {"segmentation": [[0.02, 372.6, 32.02, 360.91, 33.55, 347.2, 31.52, 326.88, 32.02, 279.13, 22.88, 245.1, 11.71, 221.23, 6.12, 216.65, 1.04, 213.1, 0.53, 372.15]], "area": 4090.401700000001, "iscrowd": 0, "image_id": 387595, "bbox": [0.02, 213.1, 33.53, 159.5], "category_id": 3, "id": 350258}, {"segmentation": [[421.45, 190.7, 420.33, 198.29, 419.83, 204.38, 421.57, 206.49, 423.44, 206.49, 424.31, 209.97, 425.8, 218.68, 428.54, 220.79, 429.56, 218.16, 432.04, 217.85, 433.27, 219.72, 435.26, 215.74, 435.26, 210.56, 440.44, 211.35, 442.83, 212.95, 442.03, 218.53, 443.63, 219.32, 449.2, 219.32, 452.79, 214.94, 453.99, 213.35, 455.98, 208.96, 455.98, 199.8, 457.97, 193.42, 464.35, 182.66, 466.34, 179.08, 466.34, 177.48, 461.56, 175.89, 452.39, 175.89, 442.83, 178.68, 438.05, 182.27, 437.25, 183.46]], "area": 1284.0733500000013, "iscrowd": 0, "image_id": 24730, "bbox": [419.83, 175.89, 46.51, 44.9], "category_id": 3, "id": 350634}, {"segmentation": [[418.65, 216.27, 511.21, 242.1, 583.32, 231.34, 625.29, 224.88, 638.21, 222.73, 634.98, 109.72, 503.68, 82.82, 481.08, 38.69, 365.92, 31.16, 312.11, 45.15, 284.13, 66.67, 274.44, 84.97, 253.99, 82.82, 248.61, 108.65, 247.53, 125.87, 266.91, 142.01, 271.21, 160.3, 283.05, 173.22, 289.51, 159.23, 367.0, 202.28, 376.68, 221.65, 387.44, 239.95, 401.43, 239.95, 412.2, 221.65]], "area": 57557.68860000001, "iscrowd": 0, "image_id": 277472, "bbox": [247.53, 31.16, 390.68, 210.94], "category_id": 3, "id": 351477}, {"segmentation": [[66.36, 35.55, 57.63, 37.29, 56.76, 56.5, 44.53, 57.37, 40.17, 94.92, 54.14, 105.4, 68.11, 106.27, 113.51, 108.89, 113.51, 77.46, 136.21, 74.84, 144.94, 69.6, 139.7, 54.75, 123.99, 44.28, 102.16, 32.93]], "area": 5561.698449999999, "iscrowd": 0, "image_id": 322725, "bbox": [40.17, 32.93, 104.77, 75.96], "category_id": 3, "id": 352067}, {"segmentation": [[137.6, 78.64, 126.3, 79.55, 121.57, 85.56, 117.38, 91.94, 118.05, 95.63, 123.08, 98.98, 139.78, 100.15, 145.43, 99.24, 147.25, 96.87, 153.08, 98.7, 160.37, 92.68, 159.46, 86.31, 155.82, 81.93, 154.18, 78.65, 149.8, 78.47, 140.69, 77.92]], "area": 750.6506500000003, "iscrowd": 0, "image_id": 203989, "bbox": [117.38, 77.92, 42.99, 22.23], "category_id": 3, "id": 352644}, {"segmentation": [[498.64, 218.5, 489.54, 220.85, 481.62, 224.07, 473.41, 226.42, 465.49, 230.53, 461.97, 237.27, 467.83, 240.8, 472.82, 241.97, 481.04, 244.32, 486.32, 243.44, 488.37, 241.38, 500.0, 241.38, 500.0, 218.75]], "area": 655.4172999999997, "iscrowd": 0, "image_id": 510314, "bbox": [461.97, 218.5, 38.03, 25.82], "category_id": 3, "id": 352943}, {"segmentation": [[144.99, 76.1, 144.99, 80.67, 144.99, 88.74, 145.69, 97.51, 149.55, 101.72, 152.36, 99.62, 162.88, 101.02, 168.5, 113.65, 173.41, 114.0, 179.03, 109.44, 231.67, 108.04, 249.91, 107.34, 253.07, 81.37, 253.07, 75.4, 241.84, 60.31, 218.33, 37.85, 206.05, 35.05, 194.47, 36.45, 162.88, 36.8, 157.97, 43.47, 151.3, 55.05, 148.5, 63.12]], "area": 6694.568, "iscrowd": 0, "image_id": 277472, "bbox": [144.99, 35.05, 108.08, 78.95], "category_id": 3, "id": 353508}, {"segmentation": [[152.46, 123.96, 142.19, 119.19, 142.19, 118.09, 139.98, 114.42, 140.72, 105.25, 143.29, 102.32, 144.02, 90.58, 155.39, 85.81, 171.9, 83.98, 178.13, 83.25, 189.14, 74.81, 202.71, 68.94, 220.68, 66.01, 255.16, 66.01, 274.97, 68.57, 287.07, 73.71, 305.05, 83.61, 325.95, 84.35, 356.4, 95.72, 358.6, 105.25]], "area": 8126.49955, "iscrowd": 0, "image_id": 412289, "bbox": [139.98, 66.01, 218.62, 57.95], "category_id": 3, "id": 354104}, {"segmentation": [[16.58, 37.06, 51.32, 37.53, 84.66, 38.0, 102.03, 61.47, 114.24, 62.88, 114.71, 66.64, 107.66, 66.64, 113.3, 91.52, 116.58, 107.41, 109.07, 114.45, 104.85, 118.21, 100.62, 121.97, 55.08, 123.38, 48.04, 116.8, 42.87, 106.47, 38.18, 99.9, 32.07, 93.33, 25.97, 89.57, 23.62, 83.47, 13.29, 44.03]], "area": 6691.101699999999, "iscrowd": 0, "image_id": 277472, "bbox": [13.29, 37.06, 103.29, 86.32], "category_id": 3, "id": 354224}, {"segmentation": [[6.92, 336.8, 22.34, 338.06, 25.02, 343.09, 27.69, 348.44, 28.48, 354.26, 28.01, 359.77, 26.28, 362.45, 22.18, 363.39, 21.24, 362.45, 13.69, 361.19, 5.03, 361.19, 3.77, 361.19, 4.09, 337.11]], "area": 554.3986499999999, "iscrowd": 0, "image_id": 354277, "bbox": [3.77, 336.8, 24.71, 26.59], "category_id": 3, "id": 354677}, {"segmentation": [[19.54, 275.74, 24.0, 249.72, 28.46, 245.26, 24.74, 243.03, 25.26, 238.42, 52.36, 236.38, 57.47, 236.89, 102.47, 203.14, 169.98, 191.38, 199.64, 191.38, 219.58, 192.91, 229.3, 194.44, 261.0, 210.81, 272.77, 216.43, 280.44, 216.95, 290.15, 217.46, 318.79, 220.01, 339.24, 226.66, 345.89, 237.91, 349.98, 238.93, 351.01, 257.86, 349.98, 262.46, 338.73, 271.15, 325.95, 296.21, 315.21, 298.77, 301.91, 296.72, 300.89, 295.7, 277.37, 286.49, 181.23, 306.95, 169.98, 328.94, 160.26, 335.59, 147.99, 335.59, 135.71, 329.45, 132.14, 324.85, 126.51, 319.22, 80.49, 320.76, 72.81, 321.27, 23.21, 303.37, 17.59, 298.77, 14.52, 284.45, 16.56, 277.8]], "area": 31526.011800000007, "iscrowd": 0, "image_id": 374977, "bbox": [14.52, 191.38, 336.49, 144.21], "category_id": 3, "id": 355112}, {"segmentation": [[52.96, 345.77, 54.15, 333.85, 59.36, 324.61, 65.62, 313.59, 93.79, 312.99, 110.92, 315.67, 117.78, 327.44, 123.89, 327.74, 123.89, 330.87, 114.2, 329.98, 74.86, 329.38, 66.96, 341.15, 64.58, 345.92, 53.1, 346.37], [54.06, 357.72, 53.26, 359.05, 58.06, 354.52, 54.32, 353.72]], "area": 1134.27205, "iscrowd": 0, "image_id": 354277, "bbox": [52.96, 312.99, 70.93, 46.06], "category_id": 3, "id": 355274}, {"segmentation": [[593.15, 118.44, 529.16, 130.86, 522.47, 119.39, 511.01, 124.17, 515.78, 146.14, 507.19, 168.11, 498.59, 166.2, 494.77, 164.29, 500.5, 183.39, 492.86, 196.76, 500.5, 204.4, 507.19, 208.22, 542.53, 225.42, 551.13, 236.88, 562.59, 234.97, 555.9, 216.82, 551.13, 200.58, 559.72, 195.81, 568.32, 175.75, 556.86, 162.38, 585.51, 151.87, 593.15, 120.35, 583.6, 120.35]], "area": 6216.135750000002, "iscrowd": 0, "image_id": 13258, "bbox": [492.86, 118.44, 100.29, 118.44], "category_id": 3, "id": 355428}, {"segmentation": [[85.21, 469.03, 86.29, 420.49, 91.69, 414.02, 115.42, 404.31, 184.45, 347.15, 257.8, 325.57, 278.29, 334.2, 276.13, 430.2, 273.98, 474.43, 84.13, 473.35], [295.55, 334.2, 324.67, 325.57, 391.55, 320.18, 456.27, 334.2, 514.52, 381.66, 522.07, 385.98, 525.3, 377.35, 529.62, 376.27, 539.33, 378.43, 550.11, 382.74, 551.19, 390.29, 547.96, 401.08, 542.56, 403.24, 624.54, 442.07, 638.56, 474.43, 292.31, 474.43, 290.16, 337.44]], "area": 59988.10870000001, "iscrowd": 0, "image_id": 530876, "bbox": [84.13, 320.18, 554.43, 154.25], "category_id": 3, "id": 355733}, {"segmentation": [[296.82, 416.0, 296.25, 416.91, 295.45, 419.66, 294.76, 421.38, 294.07, 423.44, 293.96, 431.33, 295.22, 431.56, 296.13, 429.16, 305.29, 429.16, 307.12, 430.76, 309.18, 430.64, 309.29, 421.26, 309.29, 418.86, 307.46, 416.46, 306.32, 416.11]], "area": 195.23060000000044, "iscrowd": 0, "image_id": 171155, "bbox": [293.96, 416.0, 15.33, 15.56], "category_id": 3, "id": 355996}, {"segmentation": [[358.31, 90.49, 358.54, 86.46, 357.96, 80.59, 361.07, 78.98, 362.1, 74.38, 364.98, 71.62, 384.54, 71.39, 386.95, 75.88, 388.22, 79.9, 390.52, 78.18, 391.67, 79.67, 389.95, 82.55, 389.37, 86.12, 387.99, 89.91, 385.46, 92.1, 373.72, 92.45, 365.78, 91.76, 358.65, 90.95]], "area": 580.1242999999997, "iscrowd": 0, "image_id": 397599, "bbox": [357.96, 71.39, 33.71, 21.06], "category_id": 3, "id": 356140}, {"segmentation": [[0.0, 308.24, 25.23, 304.48, 66.07, 304.01, 86.73, 306.36, 108.8, 330.31, 116.78, 327.96, 123.82, 330.31, 123.35, 334.53, 120.07, 338.29, 117.25, 340.64, 121.01, 348.62, 122.41, 357.07, 121.94, 382.42, 120.54, 393.22, 109.74, 391.81, 98.47, 400.26, 98.94, 417.17, 92.37, 428.9, 83.91, 428.9, 80.16, 426.09, 78.28, 423.27, 75.46, 414.82, 0.0, 419.04, 1.28, 309.18]], "area": 12606.7297, "iscrowd": 0, "image_id": 328487, "bbox": [0.0, 304.01, 123.82, 124.89], "category_id": 3, "id": 356730}, {"segmentation": [[382.78, 43.89, 400.42, 42.47, 414.65, 42.76, 414.65, 45.03, 415.5, 46.46, 416.07, 44.18, 417.78, 44.18, 417.78, 46.46, 420.05, 47.88, 419.77, 45.89, 422.04, 45.89, 421.47, 48.45, 426.03, 47.88, 426.03, 46.74, 425.74, 45.32, 424.6, 43.61, 424.89, 42.76, 429.16, 42.76, 430.58, 48.73, 433.42, 52.71, 433.99, 53.0, 434.28, 58.69, 433.71, 62.67, 432.0, 64.95, 427.73, 66.09, 425.46, 72.06, 422.04, 72.63, 418.06, 72.92, 415.5, 69.5, 403.83, 70.36, 400.42, 74.62, 396.15, 74.34, 395.3, 70.92, 391.31, 75.19, 386.19, 75.48, 383.63, 75.19, 381.36, 73.2, 368.55, 73.49, 366.56, 76.05, 360.3, 75.48, 360.3, 73.2, 361.16, 63.24, 360.87, 60.11, 357.17, 56.98, 361.44, 54.99, 365.99, 54.14, 370.54, 54.14, 369.69, 51.29, 371.11, 49.3, 373.11, 50.15, 377.37, 45.6]], "area": 1928.2510999999995, "iscrowd": 0, "image_id": 412289, "bbox": [357.17, 42.47, 77.11, 33.58], "category_id": 3, "id": 356936}, {"segmentation": [[245.18, 265.56, 261.89, 263.65, 273.4, 264.74, 276.69, 268.85, 279.16, 280.91, 281.35, 285.3, 283.27, 297.08, 283.0, 305.57, 281.08, 308.86, 273.13, 310.51, 266.28, 308.31, 251.75, 311.06, 242.98, 312.7, 239.42, 308.31, 236.41, 294.89, 238.87, 284.75, 239.42, 277.9, 239.42, 269.67, 241.61, 266.39]], "area": 1898.3589500000005, "iscrowd": 0, "image_id": 328487, "bbox": [236.41, 263.65, 46.86, 49.05], "category_id": 3, "id": 357286}, {"segmentation": [[355.71, 72.15, 346.85, 72.31, 342.33, 72.31, 338.32, 85.03, 338.98, 89.54, 351.03, 89.71, 350.86, 81.68, 353.71, 75.49, 354.71, 73.15]], "area": 211.69274999999993, "iscrowd": 0, "image_id": 397599, "bbox": [338.32, 72.15, 17.39, 17.56], "category_id": 3, "id": 358133}, {"segmentation": [[296.81, 170.86, 306.17, 167.7, 312.71, 163.87, 328.71, 163.87, 331.87, 166.8, 335.48, 169.51, 336.04, 176.72, 333.56, 176.5, 333.22, 177.85, 331.87, 178.52, 329.05, 179.43, 327.02, 178.75, 325.89, 177.17, 307.86, 177.28, 307.07, 178.52, 304.25, 179.76, 300.76, 179.54, 300.2, 177.96, 296.36, 177.85, 295.91, 172.32]], "area": 466.75529999999986, "iscrowd": 0, "image_id": 576322, "bbox": [295.91, 163.87, 40.13, 15.89], "category_id": 3, "id": 358920}, {"segmentation": [[565.86, 176.18, 566.36, 172.03, 573.16, 170.2, 576.82, 168.71, 581.63, 164.39, 588.77, 162.73, 597.23, 163.06, 601.88, 166.22, 595.74, 168.87, 593.75, 174.02, 593.08, 177.51, 591.76, 179.17, 588.6, 180.0, 585.12, 180.0, 584.45, 178.67, 580.3, 178.34, 577.81, 179.83, 575.99, 179.83, 573.83, 178.83, 573.0, 177.51, 567.69, 177.01]], "area": 367.34620000000007, "iscrowd": 0, "image_id": 576322, "bbox": [565.86, 162.73, 36.02, 17.27], "category_id": 3, "id": 359191}, {"segmentation": [[319.42, 78.73, 337.67, 78.19, 350.51, 78.19, 358.62, 73.32, 361.6, 61.69, 354.57, 53.45, 336.99, 51.42, 320.5, 52.1, 311.85, 53.85, 304.95, 59.13, 300.49, 61.02, 291.57, 63.72, 285.89, 67.91, 286.97, 74.67, 296.57, 78.46, 310.77, 80.08, 315.23, 81.3]], "area": 1658.01835, "iscrowd": 0, "image_id": 412289, "bbox": [285.89, 51.42, 75.71, 29.88], "category_id": 3, "id": 359293}, {"segmentation": [[636.75, 56.71, 605.09, 85.43, 584.47, 147.28, 558.7, 163.49, 564.59, 176.0, 556.49, 198.83, 549.86, 202.52, 574.16, 247.43, 578.58, 251.12, 581.52, 251.85, 582.26, 240.07, 591.83, 243.75, 604.36, 284.99, 627.18, 323.28, 638.22, 323.28, 638.22, 58.92]], "area": 13039.756500000001, "iscrowd": 0, "image_id": 13258, "bbox": [549.86, 56.71, 88.36, 266.57], "category_id": 3, "id": 359918}, {"segmentation": [[457.2, 92.18, 456.45, 88.21, 455.88, 85.75, 457.39, 81.59, 460.79, 77.44, 464.19, 74.22, 466.65, 72.15, 469.48, 68.56, 479.88, 67.42, 488.95, 67.23, 491.78, 73.85, 493.11, 78.57, 491.97, 83.11, 491.03, 87.08, 489.52, 91.04, 487.25, 92.18, 485.55, 90.67, 485.36, 88.78, 484.6, 87.26, 480.45, 88.02, 480.07, 91.42, 478.18, 92.93, 473.45, 93.12, 471.56, 90.86, 471.75, 89.91, 464.0, 90.67, 461.36, 94.07, 461.17, 94.07, 459.85, 94.07, 457.77, 93.69]], "area": 721.3967000000001, "iscrowd": 0, "image_id": 50429, "bbox": [455.88, 67.23, 37.23, 26.84], "category_id": 3, "id": 360108}, {"segmentation": [[192.68, 358.12, 194.58, 346.09, 183.19, 345.46, 183.19, 343.99, 189.52, 343.56, 191.84, 340.4, 205.13, 336.39, 208.93, 336.6, 210.43, 342.44, 209.78, 351.97, 207.64, 356.08, 205.83, 358.88], [227.04, 355.46, 220.16, 356.09, 219.41, 347.71, 222.39, 345.1, 220.59, 336.14, 229.63, 337.62, 240.48, 347.16, 237.85, 350.61, 235.39, 351.1, 230.29, 352.58]], "area": 617.0476499999996, "iscrowd": 0, "image_id": 354277, "bbox": [183.19, 336.14, 57.29, 22.74], "category_id": 3, "id": 360236}, {"segmentation": [[153.11, 490.09, 152.28, 493.39, 144.02, 499.17, 141.13, 506.2, 144.43, 523.95, 149.39, 532.63, 155.59, 529.74, 160.54, 523.54, 174.17, 526.85, 192.76, 532.63, 193.58, 524.37, 193.58, 523.13, 216.3, 523.13, 224.15, 517.76, 224.56, 514.87, 223.73, 506.61, 216.3, 503.3, 212.58, 502.07, 208.86, 494.63, 205.56, 490.09, 199.37, 490.09, 194.41, 490.09, 189.45, 489.26, 184.5, 489.26, 183.26, 489.26, 176.24, 489.26, 167.98, 489.26, 157.65, 488.02]], "area": 2692.4120500000017, "iscrowd": 0, "image_id": 453332, "bbox": [141.13, 488.02, 83.43, 44.61], "category_id": 3, "id": 360255}, {"segmentation": [[55.01, 385.83, 47.46, 376.12, 46.38, 357.78, 53.93, 336.21, 75.51, 327.58, 94.92, 321.11, 93.84, 314.64, 84.13, 314.64, 87.37, 307.09, 90.61, 304.93, 99.24, 302.77, 102.47, 310.32, 113.26, 294.14, 141.3, 267.18, 168.27, 259.63, 217.89, 252.07, 252.4, 291.99, 314.97, 295.22, 332.22, 287.67, 368.9, 287.67, 377.53, 315.72, 316.04, 326.5, 316.04, 297.38, 255.64, 302.77, 256.72, 327.58, 220.04, 339.45, 174.74, 349.15, 134.83, 385.83, 120.81, 402.01, 101.39, 405.24, 72.27, 405.24, 57.17, 396.61, 55.01, 382.59]], "area": 20194.044399999995, "iscrowd": 0, "image_id": 530876, "bbox": [46.38, 252.07, 331.15, 153.17], "category_id": 3, "id": 360587}, {"segmentation": [[1.58, 475.03, 15.63, 474.62, 21.82, 474.62, 25.13, 475.03, 26.78, 477.51, 33.8, 490.31, 41.65, 492.38, 41.65, 498.16, 37.52, 500.23, 40.41, 502.7, 42.06, 505.59, 47.43, 513.03, 46.6, 519.64, 45.36, 523.35, 42.89, 526.25, 42.89, 538.22, 39.17, 541.94, 33.8, 541.94, 30.5, 541.11, 28.84, 539.46, 28.02, 535.33, 20.58, 532.85, 18.1, 543.18, 12.32, 544.0, 6.13, 540.7, 5.71, 536.98, 4.48, 534.92, 0.0, 533.27, 0.0, 477.1]], "area": 2573.246250000002, "iscrowd": 0, "image_id": 453332, "bbox": [0.0, 474.62, 47.43, 69.38], "category_id": 3, "id": 361489}, {"segmentation": [[524.6, 177.1, 524.36, 175.42, 534.49, 170.83, 546.08, 165.28, 555.97, 164.31, 561.77, 167.93, 565.63, 173.97, 566.11, 177.59, 564.42, 179.28, 563.46, 179.28, 559.84, 180.73, 555.01, 177.35, 542.22, 178.55, 537.63, 180.97, 535.94, 179.04, 534.98, 177.59, 529.18, 178.31]], "area": 415.74264999999957, "iscrowd": 0, "image_id": 576322, "bbox": [524.36, 164.31, 41.75, 16.66], "category_id": 3, "id": 361516}, {"segmentation": [[0.19, 164.34, 0.5, 178.59, 1.12, 178.59, 1.12, 182.31, 7.32, 182.31, 9.48, 179.83, 11.34, 179.83, 11.34, 181.38, 14.75, 181.69, 16.92, 180.14, 17.85, 177.66, 19.71, 176.73, 19.09, 173.64, 17.85, 173.33, 17.23, 170.85, 16.92, 168.68, 12.58, 165.27, 0.5, 164.03]], "area": 279.7766499999999, "iscrowd": 0, "image_id": 576322, "bbox": [0.19, 164.03, 19.52, 18.28], "category_id": 3, "id": 361812}, {"segmentation": [[626.72, 179.3, 616.12, 179.3, 615.73, 176.97, 613.79, 173.87, 613.92, 172.58, 621.94, 167.53, 626.98, 164.82, 630.99, 165.08, 630.99, 168.44, 629.18, 169.09, 629.7, 170.9, 627.63, 171.67, 628.15, 174.0, 624.65, 175.29]], "area": 151.04544999999996, "iscrowd": 0, "image_id": 576322, "bbox": [613.79, 164.82, 17.2, 14.48], "category_id": 3, "id": 362761}, {"segmentation": [[75.12, 484.45, 63.03, 498.73, 60.84, 517.04, 60.84, 530.96, 63.4, 535.72, 66.69, 536.45, 70.72, 535.72, 71.82, 532.79, 72.55, 529.13, 79.15, 528.03, 83.17, 535.72, 87.94, 532.43, 87.94, 529.86, 89.77, 484.09], [93.43, 484.09, 105.15, 484.45, 121.63, 487.01, 125.66, 502.76, 137.37, 508.26, 137.37, 526.57, 137.37, 530.23, 132.61, 533.52, 130.42, 533.89, 125.66, 529.86, 124.56, 527.3, 119.8, 527.3, 119.43, 532.06, 113.57, 534.26, 110.27, 532.79, 108.08, 528.76, 95.26, 527.3]], "area": 2884.05655, "iscrowd": 0, "image_id": 453332, "bbox": [60.84, 484.09, 76.53, 52.36], "category_id": 3, "id": 362838}, {"segmentation": [[0.84, 75.84, 20.22, 64.04, 26.97, 63.2, 27.81, 88.48, 28.65, 99.44, 25.28, 103.65, 13.48, 102.81, 4.21, 104.49]], "area": 897.5079999999998, "iscrowd": 0, "image_id": 412289, "bbox": [0.84, 63.2, 27.81, 41.29], "category_id": 3, "id": 363373}, {"segmentation": [[223.91, 92.11, 221.31, 83.87, 220.01, 70.45, 223.04, 66.55, 225.21, 66.55, 233.87, 68.28, 237.34, 69.15, 238.64, 83.87, 239.94, 86.04, 231.71, 91.67]], "area": 392.9727000000001, "iscrowd": 0, "image_id": 50429, "bbox": [220.01, 66.55, 19.93, 25.56], "category_id": 3, "id": 363948}, {"segmentation": [[210.13, 496.88, 211.39, 494.12, 215.4, 494.12, 222.17, 494.12, 228.69, 494.12, 237.97, 494.12, 243.73, 495.37, 244.48, 503.15, 242.73, 514.43, 241.23, 518.19, 235.96, 518.19, 225.93, 519.95, 221.92, 519.95, 222.67, 516.69, 223.17, 510.42, 222.17, 507.41, 217.66, 505.65, 214.15, 502.9, 211.64, 500.64, 210.13, 499.38]], "area": 637.0754500000005, "iscrowd": 0, "image_id": 453332, "bbox": [210.13, 494.12, 34.35, 25.83], "category_id": 3, "id": 364196}, {"segmentation": [[456.29, 64.49, 454.97, 52.8, 470.63, 50.72, 474.96, 51.1, 478.17, 42.43, 495.51, 41.86, 499.66, 48.46, 499.47, 65.81, 494.01, 65.81, 490.42, 69.01, 486.09, 67.69, 484.39, 69.95, 479.86, 69.95, 477.04, 67.69, 465.72, 66.75, 465.35, 69.77, 459.31, 69.77]], "area": 924.4911000000002, "iscrowd": 0, "image_id": 412289, "bbox": [454.97, 41.86, 44.69, 28.09], "category_id": 3, "id": 364409}, {"segmentation": [[241.07, 517.44, 239.0, 543.79, 229.22, 543.79, 226.26, 546.16, 222.12, 546.16, 219.75, 546.46, 217.97, 546.46, 213.83, 544.09, 213.83, 542.61, 207.9, 539.94, 208.2, 531.95, 212.35, 524.54, 221.23, 518.92]], "area": 758.86655, "iscrowd": 0, "image_id": 453332, "bbox": [207.9, 517.44, 33.17, 29.02], "category_id": 3, "id": 364619}, {"segmentation": [[246.08, 583.49, 246.08, 574.66, 236.58, 557.69, 244.73, 500.0, 258.3, 414.47, 285.45, 415.15, 290.88, 410.4, 369.62, 414.47, 373.02, 425.33, 400.17, 431.44, 392.7, 536.65, 387.27, 592.99, 379.8, 604.53, 356.05, 602.49, 347.9, 590.95, 269.84, 582.81, 265.77, 593.67, 245.41, 593.67]], "area": 26077.911049999995, "iscrowd": 0, "image_id": 453332, "bbox": [236.58, 410.4, 163.59, 194.13], "category_id": 6, "id": 365563}, {"segmentation": [[138.32, 160.97, 229.87, 158.62, 371.19, 160.5, 400.3, 161.44, 410.16, 160.03, 421.9, 162.37, 430.82, 168.95, 436.45, 194.77, 438.8, 231.39, 438.8, 286.33, 438.8, 298.06, 420.49, 302.76, 405.94, 305.11, 402.18, 303.23, 404.53, 290.55, 404.53, 290.55, 400.3, 284.45, 400.3, 284.45, 394.2, 284.45, 389.5, 292.43, 390.91, 302.29, 384.34, 305.11, 348.66, 304.17, 338.33, 308.39, 319.55, 305.11, 314.85, 302.29, 315.79, 299.47, 187.61, 285.86, 181.51, 291.49, 176.82, 291.49, 167.9, 289.14, 129.4, 278.81, 128.46, 279.28, 130.8, 189.14, 137.85, 160.5]], "area": 41417.43064999999, "iscrowd": 0, "image_id": 165347, "bbox": [128.46, 158.62, 310.34, 149.77], "category_id": 6, "id": 365641}, {"segmentation": [[299.67, 212.44, 363.08, 184.83, 435.7, 185.34, 440.81, 194.03, 449.5, 255.4, 445.41, 317.79, 356.43, 320.86, 346.72, 318.81, 343.14, 321.88, 341.09, 320.86, 340.07, 315.74, 318.08, 309.09, 316.54, 310.12, 310.92, 308.07, 310.41, 303.98, 309.9, 298.35, 303.76, 296.31]], "area": 18122.81605, "iscrowd": 0, "image_id": 328487, "bbox": [299.67, 184.83, 149.83, 137.05], "category_id": 6, "id": 366096}, {"segmentation": [[126.77, 305.57, 124.73, 205.28, 187.35, 202.23, 194.48, 242.96, 198.55, 303.03, 193.46, 308.63, 186.33, 315.76, 177.17, 312.7, 172.08, 308.63, 146.62, 310.16, 143.06, 317.28, 134.4, 318.81, 126.77, 309.14]], "area": 7449.932449999999, "iscrowd": 0, "image_id": 328487, "bbox": [124.73, 202.23, 73.82, 116.58], "category_id": 6, "id": 366213}, {"segmentation": [[15.61, 209.66, 15.61, 149.91, 26.91, 117.62, 86.66, 113.85, 173.87, 123.0, 268.07, 131.61, 269.68, 155.3, 268.61, 157.99, 80.2, 222.04, 43.6, 225.81, 17.23, 220.97]], "area": 19425.94735, "iscrowd": 0, "image_id": 521150, "bbox": [15.61, 113.85, 254.07, 111.96], "category_id": 7, "id": 366763}, {"segmentation": [[454.77, 215.6, 450.56, 205.63, 451.89, 194.99, 456.99, 180.59, 459.21, 178.37, 459.65, 169.06, 463.19, 169.06, 464.3, 179.04, 467.41, 181.03, 468.96, 212.05, 464.3, 218.92, 456.55, 219.81]], "area": 623.2076500000004, "iscrowd": 0, "image_id": 472861, "bbox": [450.56, 169.06, 18.4, 50.75], "category_id": 44, "id": 370156}, {"segmentation": [[120.14, 147.51, 108.47, 147.28, 105.73, 148.43, 105.73, 149.57, 104.35, 151.17, 101.38, 155.98, 102.3, 175.87, 105.5, 175.65, 108.47, 184.8, 121.05, 183.65, 124.25, 182.51, 123.11, 164.67, 121.74, 155.06, 120.14, 152.32, 120.82, 150.03]], "area": 703.7308000000004, "iscrowd": 0, "image_id": 102315, "bbox": [101.38, 147.28, 22.87, 37.52], "category_id": 44, "id": 370335}, {"segmentation": [[397.94, 113.49, 397.53, 115.95, 395.24, 117.34, 394.99, 120.29, 394.83, 122.09, 396.22, 122.17, 396.3, 125.61, 395.24, 125.77, 395.24, 126.75, 396.3, 127.32, 396.39, 130.03, 396.91, 130.63, 396.99, 127.99, 401.58, 127.84, 402.04, 116.92, 401.58, 116.24, 400.23, 115.79, 400.08, 112.85]], "area": 81.39415000000002, "iscrowd": 0, "image_id": 280765, "bbox": [394.83, 112.85, 7.21, 17.78], "category_id": 44, "id": 370915}, {"segmentation": [[203.66, 300.54, 203.66, 302.03, 202.5, 302.87, 202.16, 305.53, 201.0, 310.19, 198.34, 328.82, 201.0, 330.48, 209.15, 331.32, 209.32, 310.69, 207.49, 306.19, 206.99, 302.87, 206.65, 302.37, 206.65, 299.87, 204.16, 300.04]], "area": 250.37000000000006, "iscrowd": 0, "image_id": 156221, "bbox": [198.34, 299.87, 10.98, 31.45], "category_id": 44, "id": 371496}, {"segmentation": [[142.31, 147.41, 142.15, 157.98, 142.79, 168.39, 145.52, 167.27, 148.56, 164.71, 146.16, 150.93, 146.8, 148.69, 144.24, 146.45, 143.11, 147.41]], "area": 98.16500000000003, "iscrowd": 0, "image_id": 102315, "bbox": [142.15, 146.45, 6.41, 21.94], "category_id": 44, "id": 371775}, {"segmentation": [[175.28, 134.01, 179.63, 134.56, 180.17, 145.78, 183.79, 149.04, 183.07, 171.48, 177.64, 172.21, 175.83, 171.48, 174.74, 145.05, 174.74, 140.35]], "area": 264.5208999999994, "iscrowd": 0, "image_id": 102315, "bbox": [174.74, 134.01, 9.05, 38.2], "category_id": 44, "id": 372258}, {"segmentation": [[185.15, 148.05, 186.27, 170.42, 193.46, 169.94, 193.14, 146.77, 190.27, 141.5, 190.27, 135.11, 187.55, 134.95, 187.39, 142.46, 185.31, 148.85]], "area": 221.4075499999998, "iscrowd": 0, "image_id": 102315, "bbox": [185.15, 134.95, 8.31, 35.47], "category_id": 44, "id": 372343}, {"segmentation": [[229.15, 134.58, 228.42, 130.96, 226.07, 129.51, 225.89, 119.73, 222.81, 119.55, 222.45, 129.51, 220.46, 130.77, 220.64, 147.79, 220.1, 161.73, 225.35, 162.45, 225.17, 148.15, 227.34, 135.84]], "area": 219.6711999999999, "iscrowd": 0, "image_id": 102315, "bbox": [220.1, 119.55, 9.05, 42.9], "category_id": 44, "id": 372464}, {"segmentation": [[228.57, 130.33, 228.15, 124.84, 229.55, 124.7, 231.52, 124.84, 232.51, 126.81, 232.51, 132.58, 233.77, 135.26, 234.06, 140.04, 232.09, 143.0, 229.83, 146.8, 226.88, 145.81, 226.88, 143.84, 227.44, 137.51, 227.44, 136.95, 228.57, 135.82, 229.69, 134.97]], "area": 101.78705000000012, "iscrowd": 0, "image_id": 102315, "bbox": [226.88, 124.7, 7.18, 22.1], "category_id": 44, "id": 372516}, {"segmentation": [[236.5, 128.92, 237.32, 129.94, 238.34, 130.04, 239.36, 129.53, 239.77, 128.72, 239.57, 126.06, 239.77, 122.17, 239.67, 119.92, 238.95, 119.0, 239.06, 117.57, 238.44, 116.24, 238.44, 114.81, 237.93, 114.2, 237.32, 114.4, 237.32, 116.34, 236.5, 117.88, 236.09, 119.72, 236.5, 121.97, 236.3, 124.83, 236.4, 127.08, 236.4, 129.12]], "area": 43.30909999999995, "iscrowd": 0, "image_id": 102315, "bbox": [236.09, 114.2, 3.68, 15.84], "category_id": 44, "id": 372543}, {"segmentation": [[247.52, 143.05, 246.51, 153.98, 245.9, 163.99, 257.13, 163.78, 255.1, 152.36, 251.46, 149.83, 252.78, 142.75, 247.72, 143.26]], "area": 163.44615, "iscrowd": 0, "image_id": 102315, "bbox": [245.9, 142.75, 11.23, 21.24], "category_id": 44, "id": 372559}, {"segmentation": [[229.38, 162.53, 229.98, 147.89, 233.26, 142.21, 235.36, 131.75, 239.84, 131.75, 241.03, 143.7, 243.13, 148.49, 244.32, 162.23, 239.84, 164.62, 237.45, 164.62, 235.36, 164.62, 233.26, 164.62, 230.87, 164.62]], "area": 350.1535000000001, "iscrowd": 0, "image_id": 102315, "bbox": [229.38, 131.75, 14.94, 32.87], "category_id": 44, "id": 372607}, {"segmentation": [[80.14, 558.75, 73.98, 431.46, 83.22, 433.51, 82.19, 435.56, 116.07, 430.43, 122.23, 435.56, 124.28, 451.99, 128.39, 447.88, 130.44, 443.78, 153.02, 457.12, 148.92, 473.55, 146.87, 477.65, 154.05, 487.92, 156.1, 497.16, 156.1, 500.24, 146.87, 540.27, 143.79, 561.83, 143.79, 585.44, 149.95, 617.26, 154.05, 640.0, 121.2, 639.85, 88.35, 592.63, 77.06, 572.1]], "area": 13042.703499999998, "iscrowd": 0, "image_id": 478260, "bbox": [73.98, 430.43, 82.12, 209.57], "category_id": 62, "id": 372610}, {"segmentation": [[244.92, 162.1, 245.94, 162.31, 247.18, 145.25, 246.97, 140.11, 244.92, 136.21, 245.12, 131.07, 244.5, 128.19, 244.09, 124.9, 242.04, 124.9, 241.83, 129.63, 241.83, 134.77, 241.01, 137.64, 241.01, 140.73, 242.66, 146.07, 243.48, 149.57]], "area": 125.18550000000012, "iscrowd": 0, "image_id": 102315, "bbox": [241.01, 124.9, 6.17, 37.41], "category_id": 44, "id": 372634}, {"segmentation": [[139.56, 153.06, 139.06, 155.59, 142.09, 157.1, 142.34, 167.96, 139.31, 167.2, 138.81, 162.41, 130.22, 163.42, 128.71, 164.93, 126.94, 168.97, 124.67, 170.99, 124.67, 157.61, 127.45, 156.09, 127.19, 150.79, 130.22, 150.54, 139.31, 151.04, 139.82, 151.04]], "area": 220.83270000000005, "iscrowd": 0, "image_id": 102315, "bbox": [124.67, 150.54, 17.67, 20.45], "category_id": 44, "id": 372645}, {"segmentation": [[18.14, 240.12, 23.04, 268.04, 13.73, 303.79, 21.57, 303.79, 24.51, 279.3, 45.08, 277.34, 50.47, 278.81, 45.08, 301.83, 51.45, 302.32, 53.41, 280.28, 60.76, 274.89, 66.63, 296.44, 70.06, 293.99, 67.12, 268.53, 62.71, 266.08, 63.2, 271.46, 52.43, 276.36, 43.61, 274.4, 43.12, 238.16, 18.63, 238.65]], "area": 1371.5788499999999, "iscrowd": 0, "image_id": 531032, "bbox": [13.73, 238.16, 56.33, 65.63], "category_id": 62, "id": 372736}, {"segmentation": [[87.73, 408.81, 104.99, 201.71, 198.47, 221.84, 148.13, 485.03, 151.01, 617.35, 18.7, 614.47, 24.45, 413.12]], "area": 43669.84174999999, "iscrowd": 0, "image_id": 451824, "bbox": [18.7, 201.71, 179.77, 415.64], "category_id": 62, "id": 372991}, {"segmentation": [[69.2, 98.75, 52.31, 99.77, 58.45, 129.97, 59.99, 141.23, 53.84, 154.03, 56.4, 155.56, 64.08, 135.09, 74.83, 137.65, 68.69, 171.94, 80.46, 142.77, 85.58, 177.57, 79.95, 138.16, 65.62, 131.0, 66.64, 121.78, 71.25, 103.35, 68.69, 99.26]], "area": 651.4289000000002, "iscrowd": 0, "image_id": 289693, "bbox": [52.31, 98.75, 33.27, 78.82], "category_id": 62, "id": 374001}, {"segmentation": [[210.23, 412.66, 245.87, 426.52, 304.61, 426.52, 324.41, 419.26, 326.39, 425.86, 332.32, 427.0, 333.64, 366.47, 334.96, 346.01, 336.28, 341.39, 319.13, 361.85, 296.03, 366.47, 282.83, 360.53, 255.77, 369.11, 222.77, 391.54, 217.49, 403.42]], "area": 6469.806099999995, "iscrowd": 0, "image_id": 346754, "bbox": [210.23, 341.39, 126.05, 85.61], "category_id": 62, "id": 374048}, {"segmentation": [[172.86, 480.0, 167.65, 356.93, 164.39, 345.84, 144.18, 325.63, 114.84, 353.01, 95.29, 354.32, 71.82, 354.32, 50.95, 348.45, 28.79, 347.8, 13.14, 347.8, 1.41, 347.8, 0.11, 480.0, 8.58, 478.18, 4.67, 430.59, 3.36, 428.64, 108.32, 409.08, 108.32, 434.5, 112.23, 451.45, 117.45, 456.67, 120.71, 451.45, 119.41, 419.51, 119.41, 403.86, 129.84, 403.86, 141.57, 417.55, 143.53, 433.2, 146.79, 445.59, 153.96, 446.24, 159.82, 465.8, 159.82, 478.18, 168.95, 478.83]], "area": 13701.776149999998, "iscrowd": 0, "image_id": 374800, "bbox": [0.11, 325.63, 172.75, 154.37], "category_id": 62, "id": 374100}, {"segmentation": [[423.58, 252.14, 429.66, 244.94, 439.07, 249.37, 440.18, 254.35, 500.0, 263.76, 499.4, 333.5, 500.0, 375.0, 456.79, 371.69, 454.57, 373.35, 452.91, 351.77, 445.16, 338.48, 439.63, 322.99, 425.24, 307.49]], "area": 7419.102799999998, "iscrowd": 0, "image_id": 384755, "bbox": [423.58, 244.94, 76.42, 130.06], "category_id": 62, "id": 374184}, {"segmentation": [[333.16, 366.47, 354.85, 357.88, 361.17, 352.01, 364.79, 349.75, 368.85, 342.52, 367.05, 332.58, 372.47, 315.86, 376.08, 298.23, 368.85, 302.75, 359.82, 308.18, 348.52, 312.24, 343.55, 316.31, 343.55, 326.7, 334.06, 323.99, 319.15, 323.99, 303.79, 327.61, 292.04, 341.16, 285.71, 346.13, 282.55, 351.1, 290.68, 355.17, 298.36, 354.72, 307.4, 357.43, 316.44, 361.5, 328.64, 350.2, 332.71, 345.23, 337.22, 341.16, 335.42, 352.91, 335.42, 363.75]], "area": 2825.8170000000005, "iscrowd": 0, "image_id": 346754, "bbox": [282.55, 298.23, 93.53, 68.24], "category_id": 62, "id": 374215}, {"segmentation": [[196.57, 245.91, 196.57, 245.29, 202.44, 241.58, 214.5, 239.41, 220.68, 236.63, 225.62, 235.71, 234.89, 234.47, 242.31, 234.47, 246.02, 234.16, 254.37, 234.16, 262.4, 234.16, 268.89, 234.16, 272.29, 234.16, 276.93, 232.31, 277.24, 233.85, 272.29, 235.71, 269.2, 235.71, 270.75, 251.78, 254.37, 255.18, 252.2, 256.41, 254.67, 261.67, 254.67, 266.61, 253.44, 269.09, 255.91, 270.63, 253.44, 270.94, 223.77, 278.05, 203.06, 273.41, 195.64, 251.78, 193.17, 250.85, 189.15, 251.16, 187.61, 250.85, 188.53, 248.38, 191.01, 247.45, 193.17, 246.83, 195.64, 245.91, 195.95, 245.6]], "area": 2454.5461000000014, "iscrowd": 0, "image_id": 130949, "bbox": [187.61, 232.31, 89.63, 45.74], "category_id": 62, "id": 374543}, {"segmentation": [[135.98, 232.69, 130.07, 170.19, 193.41, 165.12, 194.26, 214.95, 177.36, 215.79, 153.72, 218.33, 146.11, 218.33, 136.82, 225.08], [164.7, 253.8, 148.65, 267.31, 142.74, 280.83, 140.2, 289.27, 171.45, 288.43, 195.95, 286.74, 200.17, 285.9, 201.86, 330.66, 208.61, 328.13, 206.08, 263.94, 182.43, 252.96, 163.85, 252.96]], "area": 5247.610050000001, "iscrowd": 0, "image_id": 340412, "bbox": [130.07, 165.12, 78.54, 165.54], "category_id": 62, "id": 375293}, {"segmentation": [[90.75, 274.25, 75.47, 275.21, 62.09, 280.94, 84.06, 309.6, 86.93, 313.42, 86.93, 321.06, 95.53, 360.22, 96.48, 375.51, 109.85, 382.2, 165.26, 370.73, 177.68, 365.96, 176.72, 307.69, 175.77, 273.3, 155.71, 273.3, 114.63, 279.98, 85.97, 280.94, 72.6, 279.98]], "area": 9037.447349999999, "iscrowd": 0, "image_id": 551986, "bbox": [62.09, 273.3, 115.59, 108.9], "category_id": 62, "id": 375445}, {"segmentation": [[332.87, 351.13, 321.95, 335.16, 321.95, 317.51, 315.23, 297.35, 304.3, 288.1, 264.81, 264.57, 252.2, 258.69, 269.85, 257.01, 367.33, 273.82, 369.01, 278.86, 383.29, 312.47, 398.42, 377.18, 386.65, 372.97, 340.44, 360.37, 337.07, 358.69]], "area": 6957.615900000004, "iscrowd": 0, "image_id": 286116, "bbox": [252.2, 257.01, 146.22, 120.17], "category_id": 62, "id": 375570}, {"segmentation": [[0.73, 478.27, 153.62, 479.28, 110.95, 471.16, 89.11, 464.05, 75.91, 460.49, 77.94, 455.92, 98.76, 453.89, 118.57, 452.87, 135.34, 447.28, 143.46, 443.22, 139.4, 430.01, 134.32, 426.46, 83.02, 430.01, 42.89, 431.03, 23.08, 416.3, 9.36, 397.0, 0.73, 385.31]], "area": 6612.715849999997, "iscrowd": 0, "image_id": 115055, "bbox": [0.73, 385.31, 152.89, 93.97], "category_id": 62, "id": 376003}, {"segmentation": [[610.73, 267.61, 625.05, 268.03, 628.42, 267.61, 633.48, 268.03, 630.95, 302.15, 629.68, 325.75, 629.68, 352.71, 630.11, 383.04, 625.47, 383.46, 624.63, 382.2, 621.68, 333.75, 621.26, 332.06, 601.46, 333.75, 603.98, 323.64, 603.56, 313.11, 608.2, 297.52, 610.3, 279.4, 610.3, 268.03], [541.21, 318.58, 551.74, 315.63, 554.69, 320.27, 556.38, 325.32, 556.38, 331.22, 550.48, 330.38, 542.05, 329.96]], "area": 2108.7896000000014, "iscrowd": 0, "image_id": 444214, "bbox": [541.21, 267.61, 92.27, 115.85], "category_id": 62, "id": 376096}, {"segmentation": [[426.63, 273.78, 443.94, 271.23, 446.49, 248.31, 468.9, 247.3, 477.05, 293.64, 472.97, 293.13, 467.37, 281.42, 459.73, 283.46, 459.73, 295.17, 455.66, 295.68, 454.13, 283.97, 430.19, 283.46, 427.13, 295.68, 425.1, 291.1]], "area": 1313.9585999999995, "iscrowd": 0, "image_id": 294416, "bbox": [425.1, 247.3, 51.95, 48.38], "category_id": 62, "id": 376534}, {"segmentation": [[49.62, 351.31, 11.87, 408.48, 6.47, 433.29, 3.24, 390.14, 3.24, 337.29, 48.54, 329.74]], "area": 2467.6581999999994, "iscrowd": 0, "image_id": 416047, "bbox": [3.24, 329.74, 46.38, 103.55], "category_id": 62, "id": 376654}, {"segmentation": [[415.46, 248.65, 436.23, 248.63, 438.69, 272.06, 425.65, 274.33, 425.46, 282.26, 424.32, 282.45, 424.89, 296.44, 418.47, 295.87, 418.65, 283.02, 416.01, 283.21, 414.5, 284.91, 414.5, 293.23, 409.58, 293.23, 409.58, 283.78, 398.06, 283.78, 394.84, 295.3, 390.69, 294.36, 392.01, 272.06, 408.83, 272.25], [434.15, 284.34, 440.77, 284.15, 442.28, 293.79, 436.99, 294.93]], "area": 1244.2215, "iscrowd": 0, "image_id": 294416, "bbox": [390.69, 248.63, 51.59, 47.81], "category_id": 62, "id": 377522}, {"segmentation": [[147.03, 445.95, 161.08, 405.95, 176.22, 384.32, 170.81, 410.27, 162.16, 425.41, 148.11, 445.95], [243.24, 390.81, 250.81, 408.11, 240.0, 451.35, 238.92, 461.08, 235.68, 465.41, 219.46, 464.32, 214.05, 458.92, 212.97, 447.03, 212.97, 429.73, 211.89, 422.16, 223.78, 407.03, 227.03, 390.81, 243.24, 387.57]], "area": 2466.6793000000007, "iscrowd": 0, "image_id": 501625, "bbox": [147.03, 384.32, 103.78, 81.09], "category_id": 62, "id": 377596}, {"segmentation": [[407.07, 250.62, 404.19, 258.76, 398.68, 263.74, 395.26, 267.68, 391.85, 269.25, 383.98, 270.04, 385.82, 278.96, 385.82, 280.54, 389.49, 279.22, 388.18, 281.32, 387.13, 285.52, 387.13, 288.41, 387.66, 289.2, 390.8, 289.72, 392.12, 272.4, 408.12, 271.61, 411.8, 262.96, 410.75, 255.08, 409.43, 249.57, 407.07, 248.79, 407.07, 250.1]], "area": 323.7544500000002, "iscrowd": 0, "image_id": 294416, "bbox": [383.98, 248.79, 27.82, 40.93], "category_id": 62, "id": 377627}, {"segmentation": [[165.55, 176.35, 167.96, 192.25, 174.23, 195.62, 177.6, 197.07, 180.01, 199.96, 180.49, 212.01, 182.9, 217.31, 184.83, 221.16, 186.76, 225.5, 190.61, 234.65, 192.06, 238.51, 190.13, 244.29, 176.64, 255.86, 177.12, 233.69, 176.64, 213.45, 175.19, 199.96, 169.41, 197.07, 165.07, 186.95, 165.07, 174.9], [248.92, 240.44, 248.43, 237.55, 255.18, 233.69, 257.59, 249.59, 260.96, 274.65, 260.48, 279.95, 256.63, 278.5, 253.73, 246.22, 251.81, 246.22, 249.4, 248.15, 248.43, 263.08, 247.95, 271.76, 243.62, 270.79, 244.1, 253.45, 246.99, 246.7, 247.47, 238.03]], "area": 863.5417, "iscrowd": 0, "image_id": 169686, "bbox": [165.07, 174.9, 95.89, 105.05], "category_id": 62, "id": 377672}, {"segmentation": [[116.31, 330.75, 97.06, 277.69, 104.1, 267.36, 133.68, 262.2, 148.7, 263.14, 187.2, 272.06, 203.64, 282.86, 214.9, 367.84, 209.27, 370.66, 205.98, 367.84, 203.64, 327.46, 157.15, 342.02, 147.76, 343.89, 143.54, 386.62, 137.43, 384.27, 127.57, 347.18, 117.72, 348.12, 113.02, 339.67]], "area": 7962.6125, "iscrowd": 0, "image_id": 63123, "bbox": [97.06, 262.2, 117.84, 124.42], "category_id": 62, "id": 377937}, {"segmentation": [[66.67, 146.01, 98.42, 150.77, 111.12, 154.74, 123.82, 190.45, 126.2, 213.47, 134.14, 243.63, 126.2, 260.3, 98.42, 261.89, 92.87, 251.57, 102.39, 242.05, 99.22, 205.53, 89.69, 180.93, 73.02, 166.64, 67.47, 166.64, 65.88, 146.01], [3.97, 176.96, 11.11, 161.09, 16.67, 154.74, 26.99, 156.32, 38.1, 167.44, 29.37, 173.79, 16.67, 182.52, 8.73, 191.25, 7.14, 209.5, 5.56, 214.27, 0.79, 219.03]], "area": 4500.9882, "iscrowd": 0, "image_id": 169686, "bbox": [0.79, 146.01, 133.35, 115.88], "category_id": 62, "id": 378025}, {"segmentation": [[233.54, 197.84, 239.52, 198.69, 242.94, 197.55, 254.33, 198.69, 263.73, 203.25, 261.46, 208.38, 261.74, 240.28, 261.17, 247.4, 257.75, 246.83, 255.76, 238.57, 256.61, 218.92, 256.61, 210.66, 250.92, 211.23, 253.76, 240.28, 251.49, 250.82, 247.5, 249.68, 246.64, 228.31, 247.5, 212.36, 233.26, 211.79, 232.97, 198.12]], "area": 765.7624000000001, "iscrowd": 0, "image_id": 128248, "bbox": [232.97, 197.55, 30.76, 53.27], "category_id": 62, "id": 378147}, {"segmentation": [[454.05, 345.41, 500.54, 349.73, 504.86, 317.3, 518.92, 302.16, 505.95, 372.43, 505.95, 440.54, 502.7, 440.54, 501.62, 388.65, 491.89, 387.57, 492.97, 456.76, 490.81, 460.0, 486.49, 394.05, 454.05, 377.84, 446.49, 434.05, 442.16, 435.14, 444.32, 377.84, 441.08, 380.0, 431.35, 443.78, 425.95, 443.78, 430.27, 376.76, 427.03, 367.03, 446.49, 345.41]], "area": 4569.149799999998, "iscrowd": 0, "image_id": 290153, "bbox": [425.95, 302.16, 92.97, 157.84], "category_id": 62, "id": 378255}, {"segmentation": [[262.01, 473.66, 241.61, 389.9, 241.61, 379.16, 243.76, 363.06, 263.09, 343.73, 273.83, 331.92, 308.19, 322.25, 348.99, 314.73, 370.47, 319.03, 367.25, 350.17, 351.14, 355.54, 373.69, 424.26, 357.58, 448.96, 359.73, 467.22, 359.73, 473.66]], "area": 16816.054500000002, "iscrowd": 0, "image_id": 135149, "bbox": [241.61, 314.73, 132.08, 158.93], "category_id": 62, "id": 378679}, {"segmentation": [[362.43, 420.67, 359.19, 379.69, 343.01, 373.21, 339.78, 334.38, 348.4, 326.83, 337.62, 310.65, 353.8, 289.08, 366.74, 291.24, 381.84, 300.94, 416.36, 306.34, 432.54, 299.87, 436.85, 292.31, 443.33, 268.58, 443.33, 266.43, 487.55, 288.0, 487.55, 289.08, 485.39, 294.47, 476.76, 428.22, 469.21, 428.22, 472.45, 332.22, 472.45, 326.83, 433.62, 333.3, 428.22, 376.45, 422.83, 378.61, 422.83, 339.78, 404.49, 339.78, 405.57, 381.84, 399.1, 382.92, 398.02, 347.33, 368.9, 349.48, 367.82, 457.35, 367.82, 458.43, 360.27, 458.43, 359.19, 410.97]], "area": 9693.545250000003, "iscrowd": 0, "image_id": 374800, "bbox": [337.62, 266.43, 149.93, 192.0], "category_id": 62, "id": 378848}, {"segmentation": [[640.0, 378.93, 601.61, 372.56, 568.18, 369.91, 535.28, 369.38, 536.34, 317.37, 534.74, 317.9, 526.78, 308.35, 522.01, 300.39, 523.07, 295.08, 527.85, 290.3, 533.3, 287.23, 541.83, 285.81, 552.35, 285.24, 574.25, 283.53, 593.59, 282.68, 614.92, 284.39, 631.98, 285.81, 640.0, 287.23]], "area": 9436.1702, "iscrowd": 0, "image_id": 135149, "bbox": [522.01, 282.68, 117.99, 96.25], "category_id": 62, "id": 379006}, {"segmentation": [[40.45, 123.88, 44.79, 79.1, 117.02, 68.98, 153.14, 80.54, 157.47, 83.43, 174.81, 165.78, 163.25, 181.67, 160.36, 183.12, 163.25, 188.89, 223.93, 201.9, 228.26, 227.9, 222.48, 233.68, 158.92, 204.79, 150.25, 144.11, 124.24, 126.77, 86.68, 118.1, 72.23, 118.1, 56.34, 131.11]], "area": 8821.281050000005, "iscrowd": 0, "image_id": 109776, "bbox": [40.45, 68.98, 187.81, 164.7], "category_id": 62, "id": 379282}, {"segmentation": [[80.78, 247.64, 18.27, 247.64, 18.27, 275.53, 50.01, 350.54, 90.4, 351.51, 86.55, 317.85, 57.7, 284.19, 83.67, 271.68, 78.86, 259.18]], "area": 5088.5101, "iscrowd": 0, "image_id": 551986, "bbox": [18.27, 247.64, 72.13, 103.87], "category_id": 62, "id": 380041}, {"segmentation": [[358.68, 195.61, 418.97, 190.83, 420.44, 208.85, 411.62, 211.05, 371.18, 209.95, 363.09, 204.07]], "area": 977.3856999999995, "iscrowd": 0, "image_id": 384755, "bbox": [358.68, 190.83, 61.76, 20.22], "category_id": 62, "id": 380691}, {"segmentation": [[134.59, 258.9, 131.56, 251.12, 133.29, 246.8, 148.41, 238.59, 163.1, 234.71, 184.7, 233.41, 195.94, 230.39, 224.45, 234.71, 238.71, 245.51, 237.84, 251.12, 279.32, 273.16, 284.07, 287.41, 266.79, 293.46, 256.42, 304.26, 243.46, 318.52, 224.88, 327.16, 215.38, 333.64, 207.17, 314.63, 196.37, 313.77, 155.33, 310.31, 151.44, 264.08, 136.32, 261.92]], "area": 9186.498999999996, "iscrowd": 0, "image_id": 63123, "bbox": [131.56, 230.39, 152.51, 103.25], "category_id": 62, "id": 380773}, {"segmentation": [[71.51, 225.91, 69.35, 196.66, 117.02, 197.74, 117.02, 214.0, 96.43, 218.33, 76.93, 222.66]], "area": 1021.9661500000001, "iscrowd": 0, "image_id": 176587, "bbox": [69.35, 196.66, 47.67, 29.25], "category_id": 62, "id": 381248}, {"segmentation": [[3.47, 287.09, 25.0, 279.7, 61.0, 284.32, 85.93, 292.32, 100.39, 301.55, 115.46, 312.63, 115.46, 331.09, 117.31, 388.3, 120.08, 399.37, 120.08, 401.22, 116.08, 404.6, 111.46, 387.99, 106.85, 364.3, 76.08, 379.06, 54.85, 390.14, 41.62, 392.91, 40.7, 436.69, 37.0, 440.08, 32.7, 440.38, 28.7, 393.31, 7.77, 391.46, 1.31, 387.77]], "area": 11403.213300000001, "iscrowd": 0, "image_id": 63123, "bbox": [1.31, 279.7, 118.77, 160.68], "category_id": 62, "id": 381898}, {"segmentation": [[57.17, 463.82, 45.3, 396.94, 43.15, 377.53, 50.7, 384.0, 50.7, 384.0, 128.36, 403.42, 194.16, 407.73, 200.63, 409.89, 204.94, 429.3, 207.1, 467.06, 203.87, 472.45, 72.27, 472.45]], "area": 11143.079699999997, "iscrowd": 0, "image_id": 561406, "bbox": [43.15, 377.53, 163.95, 94.92], "category_id": 62, "id": 382461}, {"segmentation": [[487.53, 344.75, 491.84, 349.06, 486.46, 415.78, 497.22, 421.17, 503.68, 415.78, 509.06, 327.53, 511.21, 325.38, 509.06, 359.82, 518.74, 353.36, 523.05, 315.7, 549.96, 310.31, 586.55, 323.23, 587.62, 346.91, 598.39, 347.98, 605.92, 269.42, 599.46, 265.11, 595.16, 259.73, 591.93, 268.34, 598.39, 283.41, 596.23, 288.79, 556.41, 292.02, 535.96, 295.25, 520.9, 262.96, 502.6, 260.81, 498.3, 269.42, 483.23, 282.33, 488.61, 290.94, 485.38, 300.63, 487.53, 321.08, 483.23, 333.99]], "area": 6841.220150000002, "iscrowd": 0, "image_id": 374800, "bbox": [483.23, 259.73, 122.69, 161.44], "category_id": 62, "id": 382873}, {"segmentation": [[6.06, 301.92, 2.49, 318.36, 1.4, 320.56, 0.0, 259.17, 14.0, 254.24, 28.8, 251.77, 25.79, 255.88, 15.65, 275.61, 10.72, 294.8]], "area": 777.964, "iscrowd": 0, "image_id": 176587, "bbox": [0.0, 251.77, 28.8, 68.79], "category_id": 62, "id": 382968}, {"segmentation": [[199.55, 466.05, 197.39, 418.59, 171.51, 398.09, 168.27, 359.26, 146.7, 325.82, 144.54, 313.96, 151.01, 313.96, 172.58, 338.77, 209.26, 338.77, 228.67, 327.98, 228.67, 315.04, 257.8, 330.14, 276.13, 331.22, 291.24, 313.96, 296.63, 299.94, 327.91, 306.41, 339.78, 309.64, 343.01, 324.75, 339.78, 462.81, 327.91, 462.81, 326.83, 388.39, 304.18, 371.13, 275.06, 373.29, 277.21, 419.67, 267.51, 418.59, 261.03, 376.52, 206.02, 384.07, 211.42, 471.44]], "area": 13339.354700000002, "iscrowd": 0, "image_id": 374800, "bbox": [144.54, 299.94, 198.47, 171.5], "category_id": 62, "id": 383061}, {"segmentation": [[227.11, 200.83, 222.74, 188.05, 223.41, 178.97, 228.79, 173.59, 234.51, 172.58, 239.89, 174.26, 242.24, 178.3]], "area": 309.1793500000002, "iscrowd": 0, "image_id": 480818, "bbox": [222.74, 172.58, 19.5, 28.25], "category_id": 62, "id": 383242}, {"segmentation": [[396.28, 128.37, 397.13, 111.84, 413.95, 111.55, 415.09, 116.11, 422.5, 119.82, 421.93, 126.94, 422.22, 133.5, 413.67, 138.35, 421.08, 142.91, 405.4, 146.61, 411.39, 135.49, 405.12, 133.21, 400.55, 124.95]], "area": 566.0228500000005, "iscrowd": 0, "image_id": 23015, "bbox": [396.28, 111.55, 26.22, 35.06], "category_id": 62, "id": 384582}, {"segmentation": [[375.75, 345.94, 395.83, 346.61, 394.32, 353.64, 393.99, 356.65, 396.16, 359.16, 398.0, 362.67, 396.5, 370.03, 394.32, 369.7, 393.15, 364.51, 382.78, 363.01, 377.09, 363.85, 375.09, 370.7, 372.24, 369.7, 369.06, 359.83, 370.4, 355.48, 373.08, 353.14, 375.92, 346.95]], "area": 462.93064999999956, "iscrowd": 0, "image_id": 2114, "bbox": [369.06, 345.94, 28.94, 24.76], "category_id": 62, "id": 384585}, {"segmentation": [[587.12, 125.6, 581.92, 123.29, 580.18, 121.55, 573.82, 119.82, 567.46, 108.84, 572.09, 100.74, 576.14, 95.54, 566.31, 80.51, 564.0, 75.89, 561.11, 73.58, 614.29, 53.34, 628.74, 51.61, 630.47, 53.34, 635.67, 60.28, 639.72, 67.22, 640.0, 68.37, 640.0, 138.32, 640.0, 147.56, 633.94, 146.99, 622.96, 142.94, 617.18, 134.85, 615.44, 132.53, 613.13, 127.33, 601.57, 125.02, 598.1, 125.02, 585.96, 125.02]], "area": 5022.216799999999, "iscrowd": 0, "image_id": 36417, "bbox": [561.11, 51.61, 78.89, 95.95], "category_id": 62, "id": 385067}, {"segmentation": [[538.02, 368.33, 528.69, 363.91, 528.2, 353.6, 538.02, 352.62, 536.54, 336.42, 555.2, 332.49, 558.64, 336.42, 554.22, 355.57, 551.77, 364.9, 545.87, 368.33]], "area": 708.8760999999994, "iscrowd": 0, "image_id": 2114, "bbox": [528.2, 332.49, 30.44, 35.84], "category_id": 62, "id": 386616}, {"segmentation": [[317.32, 293.85, 318.98, 272.42, 318.82, 260.47, 318.65, 256.32, 319.81, 252.0, 334.59, 251.83, 336.75, 252.5, 338.75, 257.48, 332.1, 259.31, 328.95, 266.11, 326.46, 273.59, 335.09, 276.08, 341.07, 273.92, 340.91, 282.22, 340.41, 294.18, 336.26, 294.18, 335.76, 291.36, 334.26, 283.38, 324.63, 284.38, 321.31, 294.01]], "area": 598.7829500000003, "iscrowd": 0, "image_id": 294416, "bbox": [317.32, 251.83, 23.75, 42.35], "category_id": 62, "id": 387398}, {"segmentation": [[377.73, 488.87, 406.08, 473.23, 425.0, 473.56, 425.0, 639.62, 388.29, 639.62, 380.66, 605.58, 385.04, 568.07], [403.4, 196.6, 409.1, 187.49, 425.0, 185.59, 425.0, 225.07, 425.0, 229.67, 420.61, 219.09, 416.36, 214.19, 412.76, 213.64, 408.96, 204.93, 401.98, 197.64]], "area": 7464.851099999995, "iscrowd": 0, "image_id": 405121, "bbox": [377.73, 185.59, 47.27, 454.03], "category_id": 63, "id": 389684}, {"segmentation": [[0.41, 272.84, 1.06, 251.05, 9.56, 249.3, 58.81, 246.69, 98.04, 246.47, 103.05, 258.02, 113.29, 261.29, 118.09, 270.22, 117.22, 271.1, 113.73, 268.92, 110.68, 266.95, 107.19, 266.95, 104.14, 266.08, 100.65, 264.12, 99.35, 264.12, 97.17, 265.43, 94.99, 265.43, 93.46, 265.43, 86.71, 264.78, 84.09, 264.78, 83.22, 264.78, 82.13, 264.34, 80.82, 263.03, 79.73, 261.72, 74.5, 261.07, 72.54, 262.6, 72.1, 264.34, 69.71, 267.39, 64.04, 267.39, 55.76, 267.39, 53.36, 267.39, 48.79, 267.83, 43.77, 270.01, 42.47, 270.44, 41.16, 272.4, 39.42, 273.93, 38.33, 275.45, 37.67, 281.99, 41.16, 282.65, 41.38, 287.0, 41.59, 290.27, 41.59, 290.71, 40.29, 291.58, 37.02, 292.02, 34.18, 294.41, 30.92, 294.63, 26.12, 294.63, 22.63, 295.29, 13.26, 296.59, 1.28, 296.59, 0.84, 296.59, 0.84, 296.59], [44.21, 294.63, 42.47, 278.5, 45.52, 278.5, 48.79, 278.94, 51.84, 293.11], [53.8, 292.67, 54.45, 280.68, 57.72, 278.94, 60.34, 278.07, 66.0, 278.07, 69.49, 278.07, 72.76, 278.07, 77.12, 278.07, 84.96, 278.29, 96.08, 277.42, 96.73, 277.2, 96.95, 290.27], [100.44, 288.31, 101.52, 276.54, 105.67, 275.24, 108.5, 275.24, 109.15, 275.02, 109.37, 274.8, 111.11, 274.8, 111.77, 278.5, 112.42, 281.99, 111.11, 284.82, 111.99, 288.31]], "area": 3915.0352999999986, "iscrowd": 0, "image_id": 302680, "bbox": [0.41, 246.47, 117.68, 50.12], "category_id": 63, "id": 389691}, {"segmentation": [[373.93, 8.63, 480.0, 58.97, 474.61, 372.49, 474.61, 545.08, 473.17, 625.62, 473.17, 625.62, 477.48, 640.0, 359.55, 635.69, 24.45, 640.0, 0.0, 635.69, 1.44, 322.16, 1.44, 33.08, 4.31, 4.31, 38.83, 4.31, 83.42, 2.88, 96.36, 2.88, 113.62, 34.52, 119.37, 63.28, 146.7, 92.04, 211.42, 71.91, 205.66, 1.44, 205.66, 1.44]], "area": 290493.8878499999, "iscrowd": 0, "image_id": 478902, "bbox": [0.0, 1.44, 480.0, 638.56], "category_id": 67, "id": 390316}, {"segmentation": [[5.74, 358.03, 231.67, 411.64, 632.78, 411.64, 587.78, 83.29, 607.89, 62.22, 262.3, 20.1]], "area": 179654.8692, "iscrowd": 0, "image_id": 23906, "bbox": [5.74, 20.1, 627.04, 391.54], "category_id": 67, "id": 390383}, {"segmentation": [[48.94, 297.46, 6.72, 297.46, 0.96, 421.24, 640.0, 421.24, 637.14, 383.82, 610.27, 320.49, 572.85, 348.32, 469.22, 341.6, 403.97, 410.69, 333.92, 421.24, 236.05, 376.14, 207.26, 339.68, 135.3, 371.35, 70.05, 337.76]], "area": 37257.162899999996, "iscrowd": 0, "image_id": 105697, "bbox": [0.96, 297.46, 639.04, 123.78], "category_id": 67, "id": 390426}, {"segmentation": [[0.0, 410.17, 45.29, 379.29, 107.05, 356.65, 174.98, 340.18, 248.06, 327.83, 334.52, 336.06, 450.82, 356.65, 522.87, 384.44, 603.16, 440.02, 605.22, 451.34, 1.03, 450.31]], "area": 54452.17274999999, "iscrowd": 0, "image_id": 139571, "bbox": [0.0, 327.83, 605.22, 123.51], "category_id": 67, "id": 390452}, {"segmentation": [[637.84, 380.54, 604.32, 374.05, 541.62, 367.57, 455.14, 375.14, 421.62, 384.86, 391.35, 402.16, 367.57, 424.86, 356.76, 472.43, 640.0, 470.27]], "area": 25242.53545, "iscrowd": 0, "image_id": 135149, "bbox": [356.76, 367.57, 283.24, 104.86], "category_id": 67, "id": 390700}, {"segmentation": [[276.55, 334.1, 269.85, 327.05, 274.87, 322.51, 278.82, 322.51, 280.25, 315.81, 278.29, 308.69, 276.2, 298.96, 260.73, 251.51, 259.17, 237.44, 259.0, 231.01, 260.56, 227.36, 259.0, 205.98, 247.7, 199.73, 247.35, 194.51, 265.95, 189.48, 356.18, 170.55, 402.22, 160.59, 492.01, 187.62, 584.59, 212.6, 625.37, 222.52, 633.38, 225.1, 632.22, 228.13, 615.89, 238.21, 609.93, 256.77, 613.72, 275.97, 607.15, 303.01, 587.94, 343.18, 581.3, 361.87, 579.74, 374.8, 581.97, 381.27, 592.23, 390.19, 585.98, 395.99, 575.95, 391.53, 570.15, 379.71, 574.22, 374.93, 576.81, 360.98, 573.91, 351.84, 570.34, 346.93, 585.27, 291.27, 586.45, 275.91, 583.89, 271.19, 567.16, 284.18, 558.49, 281.62, 526.01, 298.95, 521.88, 300.72, 516.28, 310.18, 500.82, 318.19, 481.93, 322.77, 476.21, 331.36, 465.9, 336.22, 464.18, 357.41, 451.3, 419.24, 447.87, 426.0, 429.55, 425.82, 429.53, 332.2, 422.45, 327.47, 421.66, 323.53, 411.42, 315.86, 372.84, 294.4, 362.34, 288.47, 354.31, 277.09, 312.19, 251.31, 304.56, 252.43, 279.19, 232.45, 277.1, 242.18, 280.8, 269.05, 286.2, 294.54, 287.82, 309.43, 288.28, 318.63, 285.83, 325.53, 282.91, 328.91]], "area": 43631.46660000001, "iscrowd": 0, "image_id": 14812, "bbox": [247.35, 160.59, 386.03, 265.41], "category_id": 67, "id": 390797}, {"segmentation": [[328.38, 245.38, 356.39, 198.7, 381.91, 204.31, 375.68, 218.62, 389.37, 219.24, 394.97, 226.71, 408.66, 224.84, 410.53, 221.73, 427.96, 218.62, 424.84, 206.17, 438.54, 207.42, 447.87, 226.09, 452.22, 214.88, 450.98, 205.55, 444.13, 197.46, 436.67, 183.15, 433.55, 181.28, 439.78, 170.08, 478.99, 170.08, 515.7, 196.84, 477.12, 198.08, 472.14, 211.78, 471.52, 218.0, 500.14, 229.2, 536.24, 222.35, 531.25, 211.15, 615.27, 277.74, 613.4, 285.83, 332.12, 259.69, 324.03, 255.33], [366.35, 178.73, 371.95, 164.42, 390.0, 171.89, 393.73, 179.98, 372.57, 178.73]], "area": 15605.857049999997, "iscrowd": 0, "image_id": 102315, "bbox": [324.03, 164.42, 291.24, 121.41], "category_id": 67, "id": 391302}, {"segmentation": [[36.31, 349.59, 10.54, 357.79, 17.57, 380.05, 104.23, 484.28, 125.32, 508.87, 337.3, 508.87, 441.53, 470.23, 463.78, 458.51, 462.61, 442.12, 475.5, 402.3, 489.55, 392.93, 505.95, 392.93, 525.86, 390.59, 553.96, 398.78, 568.02, 415.18, 575.05, 423.38, 579.73, 416.35, 592.61, 416.35, 611.35, 415.18, 625.41, 406.98, 632.43, 212.57, 620.72, 217.25, 609.01, 220.77, 599.64, 223.11, 590.27, 220.77, 584.41, 216.08, 578.56, 220.77, 573.87, 226.62, 571.53, 230.14, 557.48, 233.65, 543.42, 233.65, 532.88, 233.65, 514.14, 237.16, 508.29, 245.36, 503.6, 250.05, 498.92, 250.05, 459.1, 248.87, 442.7, 238.33, 423.96, 247.7, 418.11, 257.07, 416.94, 261.76, 401.71, 264.1, 386.49, 268.78, 384.14, 272.3, 384.14, 274.64, 361.89, 279.32, 346.67, 282.84, 332.61, 287.52, 326.76, 278.15, 324.41, 266.44, 309.19, 267.61, 308.02, 284.01, 305.68, 288.69, 268.2, 293.38, 243.6, 302.75, 238.92, 309.77, 231.89, 313.29, 227.21, 314.46, 223.69, 315.63, 214.32, 314.46, 210.81, 313.29, 200.27, 308.6, 189.73, 310.95, 178.02, 312.12, 174.5, 301.58, 166.31, 294.55, 160.45, 295.72, 160.45, 307.43, 159.28, 314.46, 159.28, 315.63, 149.91, 315.63, 131.17, 315.63, 110.09, 316.8, 93.69, 322.66, 74.95, 334.37, 65.59, 339.05, 59.73, 342.57, 44.5, 344.91]], "area": 112442.4359, "iscrowd": 0, "image_id": 461530, "bbox": [10.54, 212.57, 621.89, 296.3], "category_id": 67, "id": 391752}, {"segmentation": [[335.98, 480.0, 332.4, 459.76, 331.88, 443.49, 332.14, 426.97, 327.95, 415.69, 312.47, 404.41, 304.6, 396.28, 299.09, 389.99, 295.79, 376.41, 296.23, 363.75, 286.24, 370.41, 267.81, 375.97, 248.04, 373.97, 246.9, 381.31, 242.92, 390.14, 238.59, 391.69, 240.84, 417.65, 235.13, 423.71, 225.44, 426.48, 217.83, 424.23, 213.68, 422.15, 212.29, 416.61, 211.43, 390.66, 172.14, 378.2, 164.7, 389.62, 167.3, 394.29, 167.65, 397.92, 169.2, 399.65, 178.2, 397.92, 187.55, 402.25, 189.62, 408.65, 192.04, 417.48, 191.7, 429.07, 184.64, 440.0, 181.37, 442.25, 180.55, 448.38, 180.35, 453.29, 188.72, 453.9, 193.42, 456.35, 192.81, 446.95, 202.01, 440.0, 211.2, 444.7, 211.79, 480.0, 235.78, 479.82, 239.33, 474.49, 247.77, 474.05, 253.33, 476.27, 254.88, 479.38], [157.61, 430.37, 150.27, 435.62, 143.19, 439.82, 139.25, 455.03, 153.16, 457.65, 164.7, 466.31, 169.94, 458.18, 176.24, 456.08, 173.61, 446.11, 169.68, 446.37, 160.76, 445.59, 157.88, 429.59], [161.09, 402.95, 155.45, 403.7, 149.62, 404.45, 149.25, 407.27, 156.39, 410.28, 162.0, 402.85], [466.75, 416.51, 460.7, 421.69, 437.37, 432.06, 414.91, 434.65, 377.32, 434.65, 360.04, 430.33, 378.61, 473.97, 400.65, 458.85, 401.97, 457.51, 405.08, 455.51, 406.63, 455.07, 409.52, 454.4, 417.96, 455.07, 425.29, 450.85, 431.28, 451.07, 433.73, 449.74, 437.06, 448.85, 439.5, 450.85, 447.72, 449.07, 454.6, 447.96, 466.6, 441.75, 468.15, 435.3, 467.04, 416.43], [623.51, 339.4, 619.94, 345.04, 618.25, 351.62, 617.31, 357.64, 623.51, 357.82, 635.92, 357.82, 640.0, 357.26, 624.08, 339.4], [335.48, 260.74, 331.81, 268.09, 330.76, 269.14, 341.52, 270.71, 349.12, 273.33, 352.01, 275.96, 352.53, 277.27, 358.83, 274.91, 360.4, 274.64, 361.98, 265.2, 364.6, 260.22, 336.01, 261.01], [282.24, 265.99, 281.95, 272.88, 285.72, 271.94, 291.25, 272.75, 292.73, 275.85, 291.12, 294.05, 293.41, 295.26, 296.64, 290.55, 303.39, 287.44, 308.91, 285.15, 294.89, 284.48, 294.76, 279.62, 302.98, 279.08, 294.76, 265.87], [296.78, 264.52, 305.54, 279.22, 308.78, 279.76, 309.99, 283.53, 315.25, 282.32, 313.9, 272.75, 306.49, 265.06, 304.06, 265.87, 300.96, 264.79, 297.45, 264.66], [322.13, 267.22, 317.54, 271.0, 317.14, 273.02, 317.0, 275.17, 317.0, 282.05, 322.26, 281.78, 318.22, 277.47, 318.08, 275.31, 320.51, 273.02, 326.17, 270.32, 322.94, 267.35]], "area": 16171.8713, "iscrowd": 0, "image_id": 130624, "bbox": [139.25, 260.22, 500.75, 219.78], "category_id": 67, "id": 391775}, {"segmentation": [[172.2, 455.03, 172.2, 452.88, 172.2, 442.12, 172.2, 431.35, 176.5, 373.24, 170.04, 366.78, 170.04, 364.63, 170.04, 363.55, 170.04, 362.48, 159.28, 358.17, 159.28, 357.09, 150.67, 350.64, 345.47, 260.23, 348.7, 261.31, 471.39, 283.91, 449.87, 317.27, 447.71, 334.49, 452.02, 374.31, 449.87, 386.15, 434.8, 407.68, 426.19, 396.91, 421.88, 382.92, 428.34, 364.63, 438.03, 352.79, 426.19, 347.41, 367.0, 394.76, 367.0, 401.22, 361.61, 451.8, 361.61, 463.64, 350.85, 469.02, 307.8, 467.95, 306.73, 456.11, 305.65, 448.57, 305.65, 439.96, 259.37, 402.3, 244.3, 396.91, 229.24, 394.76, 223.86, 394.76, 203.41, 389.38, 195.87, 471.17, 173.27, 471.17]], "area": 36075.24414999999, "iscrowd": 0, "image_id": 290153, "bbox": [150.67, 260.23, 320.72, 210.94], "category_id": 67, "id": 391799}, {"segmentation": [[608.36, 345.17, 515.6, 332.22, 484.31, 297.71, 483.24, 273.98, 471.37, 278.29, 478.92, 298.79, 470.29, 326.83, 454.11, 334.38, 456.27, 355.96, 492.94, 384.0, 495.1, 429.3, 470.29, 465.98, 446.56, 480.0, 582.47, 477.84, 591.1, 418.52], [140.22, 314.97, 96.0, 312.81, 79.82, 302.02, 51.78, 295.55, 0.0, 295.55, 0.0, 387.24, 2.16, 472.45, 1.08, 480.0, 127.28, 480.0, 157.48, 477.84, 97.08, 434.7, 89.53, 382.92, 112.18, 347.33, 138.07, 336.54]], "area": 37778.8636, "iscrowd": 0, "image_id": 441419, "bbox": [0.0, 273.98, 608.36, 206.02], "category_id": 67, "id": 391924}, {"segmentation": [[157.83, 296.19, 157.2, 288.66, 154.38, 287.09, 144.97, 288.35, 140.58, 295.56, 151.24, 294.62], [243.75, 296.19, 246.89, 288.97, 266.01, 287.72, 273.23, 286.78, 279.18, 285.52, 285.77, 271.73, 274.48, 271.73, 273.54, 265.77, 290.16, 262.63, 290.47, 265.77, 277.93, 302.77, 242.18, 299.95]], "area": 780.6281999999998, "iscrowd": 0, "image_id": 579659, "bbox": [140.58, 262.63, 149.89, 40.14], "category_id": 67, "id": 392064}, {"segmentation": [[356.23, 460.57, 526.28, 403.53, 638.21, 419.68, 638.21, 457.35, 594.08, 472.41, 354.08, 470.26, 358.39, 460.57]], "area": 13083.39680000001, "iscrowd": 0, "image_id": 77841, "bbox": [354.08, 403.53, 284.13, 68.88], "category_id": 67, "id": 393058}, {"segmentation": [[0.0, 301.07, 27.69, 299.88, 31.28, 322.19, 49.21, 333.35, 71.12, 330.96, 85.47, 317.81, 101.0, 322.99, 123.72, 324.18, 133.28, 315.82, 138.06, 310.64, 150.41, 310.64, 150.81, 290.71, 150.41, 263.62, 139.65, 255.25, 151.61, 253.26, 155.99, 285.93, 160.77, 285.93, 160.77, 254.45, 193.45, 258.04, 213.37, 264.81, 214.16, 287.53, 236.48, 292.7, 251.22, 291.11, 256.4, 275.17, 269.15, 270.79, 276.32, 288.72, 292.26, 291.11, 303.82, 285.53, 316.17, 286.73, 322.94, 276.77, 320.55, 200.66, 261.58, 190.7, 146.03, 169.98, 146.03, 162.01, 144.04, 162.01, 142.44, 163.21, 134.47, 163.21, 124.91, 158.03, 114.15, 154.44, 113.76, 153.65, 108.18, 142.89, 50.8, 148.47, 50.8, 146.47, 32.87, 146.07, 30.48, 149.66, 5.38, 153.65, 10.16, 192.3, 19.32, 218.99, 26.89, 228.95, 25.7, 234.93, 0.0, 236.92]], "area": 39688.80900000001, "iscrowd": 0, "image_id": 564803, "bbox": [0.0, 142.89, 322.94, 190.46], "category_id": 8, "id": 394128}, {"segmentation": [[612.66, 203.61, 606.09, 205.49, 604.68, 208.31, 599.98, 208.78, 595.76, 208.31, 593.41, 205.49, 591.53, 204.55, 564.3, 205.49, 562.42, 210.66, 558.2, 212.53, 551.63, 211.59, 549.75, 206.9, 548.81, 204.55, 545.05, 201.27, 541.3, 201.73, 541.3, 192.81, 542.23, 187.18, 583.55, 185.77, 589.19, 189.53, 592.47, 183.42, 609.37, 184.36, 610.78, 195.16]], "area": 1430.8931499999999, "iscrowd": 0, "image_id": 409374, "bbox": [541.3, 183.42, 71.36, 29.11], "category_id": 8, "id": 394315}, {"segmentation": [[401.26, 343.01, 467.06, 331.15, 478.92, 349.48, 504.81, 350.56, 523.15, 337.62, 539.33, 339.78, 554.43, 338.7, 561.98, 316.04, 569.53, 314.97, 570.61, 308.49, 581.39, 308.49, 583.55, 302.02, 590.02, 300.94, 595.42, 295.55, 599.73, 293.39, 599.73, 288.0, 607.28, 296.63, 607.28, 296.63, 614.83, 256.72, 614.83, 256.72, 612.67, 223.28, 612.67, 193.08, 612.67, 172.58, 602.97, 172.58, 601.89, 146.7, 605.12, 138.07, 582.47, 139.15, 558.74, 124.04, 542.56, 119.73, 525.3, 116.49, 520.99, 113.26, 513.44, 125.12, 501.57, 128.36, 412.04, 114.34, 382.92, 108.94, 352.72, 101.39, 355.96, 91.69, 351.64, 84.13, 337.62, 104.63, 271.82, 104.63, 250.25, 106.79, 251.33, 112.18, 236.22, 117.57, 235.15, 122.97, 146.7, 128.36, 133.75, 142.38, 130.52, 184.45, 128.36, 234.07, 126.2, 250.25, 120.81, 259.96, 118.65, 268.58, 116.49, 280.45, 116.49, 293.39, 119.73, 312.81, 119.73, 321.44, 112.18, 327.91, 112.18, 336.54, 116.49, 345.17, 116.49, 348.4, 270.74, 369.98, 270.74, 369.98, 281.53, 361.35, 311.73, 360.27, 314.97, 376.45, 314.97, 376.45, 335.46, 382.92, 361.35, 381.84, 374.29, 368.9, 382.92, 354.88, 399.1, 353.8, 396.94, 341.93]], "area": 112474.63790000005, "iscrowd": 0, "image_id": 387595, "bbox": [112.18, 84.13, 502.65, 298.79], "category_id": 8, "id": 394448}, {"segmentation": [[168.38, 550.38, 167.14, 526.89, 167.97, 505.46, 160.55, 502.57, 158.9, 499.28, 158.9, 491.45, 161.78, 491.04, 166.32, 496.39, 166.73, 469.2, 194.75, 466.31, 198.05, 462.19, 209.59, 462.19, 216.18, 466.31, 228.13, 467.96, 228.13, 479.5, 246.26, 505.05, 245.85, 520.71, 250.38, 526.06, 216.59, 530.6, 209.59, 548.73, 207.53, 550.38, 203.41, 549.14, 197.64, 550.38, 197.22, 555.73, 194.34, 559.85, 182.39, 561.09, 173.73, 559.03, 168.38, 555.32]], "area": 5818.615650000001, "iscrowd": 0, "image_id": 146751, "bbox": [158.9, 462.19, 91.48, 98.9], "category_id": 8, "id": 394713}, {"segmentation": [[143.24, 97.75, 170.86, 81.5, 165.17, 76.62, 170.05, 72.56, 178.17, 76.62, 178.17, 55.5, 194.42, 49.81, 227.43, 38.28, 231.56, 38.28, 230.87, 27.96, 237.75, 27.96, 238.44, 32.78, 239.81, 37.6, 264.58, 32.09, 263.2, 23.84, 265.27, 22.46, 269.4, 23.15, 270.08, 30.72, 299.67, 26.59, 298.98, 21.09, 299.67, 16.96, 301.73, 15.58, 305.86, 16.27, 307.92, 21.77, 307.23, 25.21, 343.7, 21.77, 343.7, 46.54, 350.58, 47.23, 352.64, 19.02, 376.72, 16.96, 377.41, 39.66, 378.78, 36.91, 382.91, 34.84, 389.79, 44.48, 390.48, 49.98, 406.3, 58.24, 411.12, 71.31, 433.13, 67.18, 434.51, 70.62, 436.57, 85.75, 440.01, 91.26, 446.89, 133.23, 448.27, 143.54, 458.59, 176.57, 462.03, 195.14, 466.84, 246.05, 471.66, 259.12, 479.92, 257.06, 501.93, 259.12, 507.44, 292.84, 504.0, 321.04, 499.18, 343.06, 489.55, 347.19, 484.73, 347.19, 479.23, 342.37, 476.48, 332.74, 473.04, 327.23, 468.22, 338.24, 464.09, 339.62, 464.78, 378.83, 458.59, 385.71, 455.84, 404.29, 443.45, 422.18, 431.76, 420.8, 418.69, 415.98, 412.49, 404.98, 413.87, 388.46, 392.54, 387.78, 386.35, 393.97, 382.22, 400.16, 369.15, 400.16, 362.27, 397.41, 351.95, 393.97, 345.76, 387.09, 296.91, 382.27, 294.16, 394.66, 232.24, 390.53, 230.87, 386.4, 226.05, 391.22, 217.11, 391.22, 204.04, 389.84, 196.47, 380.21, 194.41, 370.58, 148.31, 358.19, 147.62, 330.67, 145.56, 317.6, 140.74, 261.88, 137.3, 258.44, 138.68, 246.05, 142.81, 245.37, 137.3, 211.65, 136.62, 177.94, 139.37, 193.08, 148.31, 188.26, 149.0, 162.12, 161.38, 99.51]], "area": 110891.55269999996, "iscrowd": 0, "image_id": 425652, "bbox": [136.62, 15.58, 370.82, 406.6], "category_id": 8, "id": 394973}, {"segmentation": [[2.87, 327.4, 9.57, 330.27, 16.27, 352.29, 34.46, 354.2, 45.95, 352.29, 52.65, 343.67, 54.57, 331.23, 62.22, 330.27, 71.8, 349.42, 89.99, 354.2, 103.39, 347.5, 108.18, 337.93, 109.13, 330.27, 114.88, 332.18, 127.32, 347.5, 136.89, 354.2, 156.04, 356.12, 166.57, 352.29, 168.49, 345.59, 172.31, 338.89, 180.93, 339.84, 193.38, 339.84, 202.95, 332.18, 210.61, 327.4, 212.52, 327.4, 219.22, 336.97, 227.84, 338.89, 241.24, 337.93, 259.43, 336.01, 272.83, 319.74, 275.7, 316.87, 282.4, 321.65, 287.19, 324.53, 292.93, 324.53, 390.58, 307.29, 393.45, 234.54, 298.68, 238.37, 287.19, 247.94, 285.28, 255.6, 268.04, 255.6, 288.15, 266.13, 217.31, 265.17, 94.77, 263.26, 44.04, 257.51, 50.74, 204.86, 8.62, 195.29, 3.83, 198.16, 0.96, 322.61]], "area": 33410.2319, "iscrowd": 0, "image_id": 35322, "bbox": [0.96, 195.29, 392.49, 160.83], "category_id": 8, "id": 395699}, {"segmentation": [[528.71, 220.7, 529.67, 154.49, 531.59, 142.01, 545.02, 130.5, 553.66, 128.58, 566.13, 129.54, 572.85, 130.5, 585.33, 126.66, 593.96, 126.66, 610.27, 126.66, 622.75, 126.66, 640.0, 126.66, 638.1, 238.93, 571.89, 235.09, 558.46, 250.44, 549.82, 244.69, 545.02, 238.93, 543.11, 236.05, 529.67, 233.17]], "area": 11998.193400000002, "iscrowd": 0, "image_id": 546466, "bbox": [528.71, 126.66, 111.29, 123.78], "category_id": 8, "id": 395820}, {"segmentation": [[221.29, 196.7, 226.19, 192.55, 235.05, 197.46, 235.05, 209.9, 232.98, 210.85, 233.92, 215.37, 231.85, 215.94, 230.53, 215.94, 229.21, 215.94, 226.94, 215.94, 225.44, 215.94, 224.3, 214.62, 223.93, 212.35, 223.93, 210.47, 223.93, 209.9]], "area": 245.44795000000005, "iscrowd": 0, "image_id": 36914, "bbox": [221.29, 192.55, 13.76, 23.39], "category_id": 8, "id": 395825}, {"segmentation": [[487.57, 222.2, 486.8, 225.87, 490.66, 233.59, 494.72, 239.58, 494.14, 245.95, 501.09, 246.34, 502.25, 254.64, 502.63, 257.34, 506.69, 257.92, 510.36, 253.1, 533.91, 255.22, 540.48, 260.24, 542.99, 261.01, 545.88, 246.92, 543.95, 237.65, 539.32, 232.05, 536.23, 223.94, 527.35, 217.76, 508.23, 213.71, 499.54, 214.67, 494.33, 224.33]], "area": 1823.4670000000008, "iscrowd": 0, "image_id": 425540, "bbox": [486.8, 213.71, 59.08, 47.3], "category_id": 8, "id": 395877}, {"segmentation": [[135.91, 127.28, 291.24, 30.2, 445.48, 50.7, 461.66, 111.1, 461.66, 145.62, 434.7, 146.7, 442.25, 168.27, 450.88, 210.34, 458.43, 232.99, 458.43, 253.48, 458.43, 272.9, 454.11, 279.37, 458.43, 283.69, 461.66, 295.55, 460.58, 302.02, 460.58, 317.12, 460.58, 322.52, 445.48, 326.83, 424.99, 328.99, 410.97, 343.01, 396.94, 345.17, 379.69, 345.17, 376.45, 331.15, 290.16, 334.38, 276.13, 349.48, 257.8, 345.17, 248.09, 334.38, 247.01, 325.75, 229.75, 328.99, 214.65, 322.52, 212.49, 316.04, 210.34, 308.49, 183.37, 294.47, 181.21, 303.1, 175.82, 307.42, 165.03, 296.63, 147.78, 289.08, 127.28, 279.37, 121.89, 229.75, 122.97, 182.29, 105.71, 185.53, 106.79, 170.43, 133.75, 151.01]], "area": 86760.01344999998, "iscrowd": 0, "image_id": 354718, "bbox": [105.71, 30.2, 355.95, 319.28], "category_id": 8, "id": 396364}, {"segmentation": [[91.99, 278.93, 102.71, 279.44, 102.71, 272.3, 105.77, 270.77, 106.79, 276.89, 116.49, 277.4, 119.55, 279.44, 120.06, 293.73, 145.06, 288.12, 157.81, 279.95, 165.47, 270.26, 168.53, 270.77, 172.1, 274.85, 172.1, 284.54, 172.1, 287.61, 168.02, 290.67, 164.96, 289.65, 159.35, 289.65, 145.57, 302.91, 179.75, 303.42, 183.84, 310.57, 183.84, 324.85, 179.24, 332.0, 167.0, 331.49, 166.49, 335.06, 161.9, 336.59, 148.12, 334.55, 146.59, 322.81, 124.14, 326.38, 124.65, 335.57, 105.26, 335.06, 101.69, 342.71, 91.99, 348.32, 86.89, 346.79, 83.32, 337.1, 73.63, 322.3, 72.61, 318.73, 68.01, 317.71, 69.03, 308.02, 65.46, 302.4, 69.54, 296.28, 69.54, 292.71, 64.44, 292.71, 70.05, 286.08, 74.65, 283.52, 77.2, 277.91, 79.75, 274.85, 84.85, 274.34, 88.42, 275.36]], "area": 5451.136249999997, "iscrowd": 0, "image_id": 91442, "bbox": [64.44, 270.26, 119.4, 78.06], "category_id": 8, "id": 396708}, {"segmentation": [[83.01, 227.25, 84.38, 231.98, 85.14, 237.01, 85.14, 239.91, 90.94, 240.06, 95.06, 228.77, 92.01, 218.71, 90.02, 216.12, 86.21, 220.54, 83.47, 223.28]], "area": 191.9361, "iscrowd": 0, "image_id": 36914, "bbox": [83.01, 216.12, 12.05, 23.94], "category_id": 8, "id": 397063}, {"segmentation": [[127.17, 234.77, 195.13, 222.15, 232.02, 176.52, 350.45, 165.84, 367.93, 138.66, 498.01, 127.98, 523.25, 197.88, 634.89, 211.47, 633.92, 281.37, 638.78, 337.67, 562.09, 385.24, 467.92, 373.59, 451.42, 387.18, 402.88, 380.39, 370.84, 349.32, 188.33, 326.02, 162.12, 329.91, 126.2, 289.13, 110.67, 256.13]], "area": 90187.254, "iscrowd": 0, "image_id": 540547, "bbox": [110.67, 127.98, 528.11, 259.2], "category_id": 8, "id": 397838}, {"segmentation": [[408.77, 180.46, 477.86, 195.81, 484.57, 264.9, 487.45, 303.28, 471.14, 314.8, 432.76, 314.8, 413.57, 324.39, 284.03, 299.44, 281.15, 284.09, 282.11, 273.54, 282.11, 273.54, 192.87, 268.74, 192.87, 268.74, 190.95, 291.77, 183.27, 293.69, 129.54, 283.13, 121.86, 275.45, 101.71, 262.02, 99.79, 201.57, 101.71, 195.81, 350.24, 169.9, 374.22, 177.58]], "area": 43177.67455, "iscrowd": 0, "image_id": 113812, "bbox": [99.79, 169.9, 387.66, 154.49], "category_id": 8, "id": 398055}, {"segmentation": [[91.71, 377.29, 91.23, 341.82, 50.0, 341.34, 40.42, 353.8, 42.33, 371.54, 48.57, 376.81, 81.64, 376.81, 90.27, 376.33]], "area": 1695.4135000000008, "iscrowd": 0, "image_id": 448061, "bbox": [40.42, 341.34, 51.29, 35.95], "category_id": 8, "id": 398542}, {"segmentation": [[394.12, 425.37, 394.65, 418.79, 400.7, 417.99, 403.64, 419.68, 403.73, 422.26, 404.0, 423.59, 404.26, 426.44, 403.73, 428.22, 402.66, 428.22, 402.39, 427.86, 401.86, 426.79, 397.68, 426.7, 395.99, 426.7, 396.17, 428.04, 394.21, 428.22, 393.5, 427.59, 393.59, 426.08, 394.03, 425.01]], "area": 84.83140000000014, "iscrowd": 0, "image_id": 171155, "bbox": [393.5, 417.99, 10.76, 10.23], "category_id": 8, "id": 399423}, {"segmentation": [[57.73, 305.34, 120.87, 302.12, 144.4, 278.58, 194.71, 290.35, 223.6, 316.03, 222.53, 350.28, 213.97, 358.84, 203.26, 354.56, 176.52, 357.76, 167.96, 385.6, 145.48, 385.6, 133.71, 374.89, 111.24, 366.33, 99.46, 366.33, 89.83, 373.82, 67.36, 373.82, 62.01, 364.19, 41.69, 357.76, 55.6, 303.19]], "area": 12651.525149999996, "iscrowd": 0, "image_id": 48756, "bbox": [41.69, 278.58, 181.91, 107.02], "category_id": 8, "id": 400130}, {"segmentation": [[81.14, 388.33, 113.02, 381.56, 113.02, 380.6, 115.92, 377.7, 119.78, 376.73, 121.71, 370.94, 121.71, 365.14, 129.44, 365.14, 135.24, 365.14, 140.07, 358.38, 148.76, 350.65, 148.76, 347.76, 151.66, 342.93, 151.66, 335.2, 151.66, 328.44, 154.56, 322.64, 155.52, 314.91, 155.52, 314.91, 151.66, 311.05, 147.8, 311.05, 144.9, 312.01, 142.97, 312.01, 139.1, 312.01, 139.1, 304.29, 141.03, 299.46, 141.03, 295.59, 129.44, 287.86, 63.76, 289.8, 59.89, 289.8, 58.93, 295.59, 55.06, 304.29, 54.1, 308.15, 51.2, 314.91, 52.16, 320.71, 46.37, 328.44, 44.44, 330.37, 36.71, 335.2, 34.78, 342.93, 30.91, 358.38, 28.98, 366.11, 28.98, 378.67, 35.74, 380.6, 42.5, 381.56, 44.44, 382.53, 54.1, 384.46, 65.69, 388.33]], "area": 9490.979949999997, "iscrowd": 0, "image_id": 223121, "bbox": [28.98, 287.86, 126.54, 100.47], "category_id": 8, "id": 400143}, {"segmentation": [[126.91, 147.32, 147.07, 147.2, 148.17, 147.93, 148.53, 158.25, 148.41, 161.16, 147.68, 169.18, 146.47, 170.15, 141.85, 168.33, 138.69, 166.02, 132.62, 166.38, 130.56, 170.15, 124.36, 169.3, 123.39, 167.23, 124.24, 161.04, 125.46, 157.4]], "area": 485.28645000000034, "iscrowd": 0, "image_id": 51076, "bbox": [123.39, 147.2, 25.14, 22.95], "category_id": 8, "id": 400158}, {"segmentation": [[41.59, 171.41, 50.58, 165.41, 53.58, 169.41, 55.08, 199.9, 52.58, 213.9, 52.58, 219.4, 47.58, 220.06, 12.27, 218.06, 5.28, 221.56, 2.28, 220.06, 0.0, 220.06, 0.28, 187.57, 0.28, 184.07, 9.27, 185.07, 16.27, 182.57, 31.77, 182.57, 36.77, 182.57, 38.77, 172.57], [60.26, 170.07, 68.26, 171.07, 80.25, 181.07, 82.75, 219.06, 65.26, 220.06, 63.26, 210.06, 61.26, 205.56, 59.26, 170.07], [89.75, 186.07, 125.24, 190.07, 137.23, 194.56, 138.73, 212.56, 138.23, 215.56, 126.74, 218.56, 121.24, 219.06, 116.24, 219.06, 111.74, 226.05, 88.75, 226.05, 87.75, 196.56, 87.75, 187.57]], "area": 4738.057450000001, "iscrowd": 0, "image_id": 157923, "bbox": [0.0, 165.41, 138.73, 60.64], "category_id": 8, "id": 400842}, {"segmentation": [[2.88, 30.71, 76.76, 12.47, 110.35, 8.64, 115.15, 16.31, 117.07, 25.91, 118.02, 35.5, 150.65, 40.3, 155.45, 88.28, 140.09, 101.71, 163.12, 98.83, 159.29, 107.47, 150.65, 115.15, 151.61, 143.93, 147.77, 191.91, 135.3, 193.83, 148.73, 366.55, 122.82, 364.63, 118.02, 388.62, 92.12, 406.85, 77.72, 408.77, 66.21, 403.01, 47.98, 388.62, 44.14, 378.06, 0.0, 394.38]], "area": 53294.00355000001, "iscrowd": 0, "image_id": 425652, "bbox": [0.0, 8.64, 163.12, 400.13], "category_id": 8, "id": 400909}, {"segmentation": [[147.26, 374.04, 147.84, 369.98, 151.89, 368.82, 152.47, 367.66, 152.47, 357.8, 151.31, 347.95, 152.47, 340.99, 153.05, 329.39, 153.05, 324.75, 156.53, 320.11, 160.59, 316.05, 168.13, 317.79, 172.19, 317.21, 174.51, 314.89, 177.99, 311.41, 185.53, 305.04, 186.69, 304.46, 248.15, 306.78, 245.83, 315.47, 245.25, 336.35, 243.51, 339.83, 242.93, 346.79, 234.24, 358.38, 222.06, 380.42, 145.52, 376.94, 146.1, 371.72]], "area": 6109.91175, "iscrowd": 0, "image_id": 223121, "bbox": [145.52, 304.46, 102.63, 75.96], "category_id": 8, "id": 400916}, {"segmentation": [[586.01, 426.31, 639.87, 426.31, 638.1, 67.83, 636.34, 0.0, 592.19, 0.72, 586.89, 20.15, 589.54, 29.86, 570.11, 36.04, 575.41, 28.09, 585.12, 21.03, 573.64, 0.72, 551.57, 3.37, 533.91, 10.43, 528.61, 31.62, 531.26, 40.45, 540.97, 44.87, 562.17, 33.39, 555.1, 42.22, 538.33, 53.7, 542.74, 125.22, 551.57, 134.05, 567.46, 134.93, 584.24, 135.81, 590.42, 141.11, 590.42, 170.25, 590.42, 220.83, 590.42, 259.68, 588.65, 294.12, 584.24, 331.2, 584.24, 340.03, 583.36, 385.06, 584.24, 411.55]], "area": 27799.22625000001, "iscrowd": 0, "image_id": 425652, "bbox": [528.61, 0.0, 111.26, 426.31], "category_id": 8, "id": 401071}, {"segmentation": [[419.58, 166.55, 426.66, 167.65, 426.66, 167.43, 427.1, 182.69, 427.1, 183.13, 427.1, 183.57, 418.7, 183.13, 419.8, 166.99]], "area": 124.16900000000028, "iscrowd": 0, "image_id": 564803, "bbox": [418.7, 166.55, 8.4, 17.02], "category_id": 10, "id": 402345}, {"segmentation": [[60.17, 21.87, 63.76, 18.55, 68.18, 19.93, 70.66, 20.76, 71.22, 21.59, 71.77, 26.01, 71.77, 26.28, 70.39, 31.53, 70.66, 33.47, 72.04, 35.4, 73.43, 38.16, 72.6, 41.2, 71.22, 42.86, 67.9, 45.06, 63.48, 46.45, 59.62, 43.68, 57.96, 38.44, 58.24, 35.4, 59.62, 30.15, 59.34, 29.32, 58.51, 26.01]], "area": 316.6819500000001, "iscrowd": 0, "image_id": 192335, "bbox": [57.96, 18.55, 15.47, 27.9], "category_id": 10, "id": 402767}, {"segmentation": [[295.04, 22.59, 301.59, 21.75, 301.8, 44.56, 294.61, 42.45]], "area": 146.6412999999995, "iscrowd": 0, "image_id": 522150, "bbox": [294.61, 21.75, 7.19, 22.81], "category_id": 10, "id": 403864}, {"segmentation": [[532.58, 187.1, 537.75, 183.92, 556.03, 186.3, 562.0, 188.29, 562.0, 206.18, 559.21, 239.18, 558.42, 262.24, 554.44, 266.61, 525.82, 265.42, 528.21, 234.41, 532.98, 187.1]], "area": 2496.292049999998, "iscrowd": 0, "image_id": 165347, "bbox": [525.82, 183.92, 36.18, 82.69], "category_id": 10, "id": 403928}, {"segmentation": [[101.63, 34.79, 103.04, 107.67, 83.3, 122.25, 83.3, 107.2, 68.72, 88.86, 73.89, 38.55, 80.94, 35.73, 91.76, 42.31]], "area": 2204.2767500000004, "iscrowd": 0, "image_id": 309536, "bbox": [68.72, 34.79, 34.32, 87.46], "category_id": 10, "id": 404060}, {"segmentation": [[499.53, 36.57, 508.23, 44.42, 512.9, 37.84, 521.38, 42.93, 527.33, 36.57, 526.9, 27.87, 532.84, 22.35, 531.57, 20.44, 525.63, 20.23, 525.63, 17.47, 530.09, 10.46, 527.11, 9.4, 527.11, 6.01, 530.09, 0.91, 510.35, 1.97, 499.95, 18.53, 498.89, 24.05]], "area": 1015.5068500000008, "iscrowd": 0, "image_id": 522150, "bbox": [498.89, 0.91, 33.95, 43.51], "category_id": 10, "id": 404333}, {"segmentation": [[15.88, 52.86, 42.96, 52.86, 38.39, 105.27, 11.31, 103.51, 14.82, 53.56]], "area": 1424.6989999999998, "iscrowd": 0, "image_id": 374977, "bbox": [11.31, 52.86, 31.65, 52.41], "category_id": 10, "id": 404557}, {"segmentation": [[524.6, 180.16, 532.25, 179.65, 533.78, 211.29, 529.7, 218.43, 518.48, 213.84, 519.5, 179.65, 527.15, 179.65]], "area": 510.07649999999916, "iscrowd": 0, "image_id": 354718, "bbox": [518.48, 179.65, 15.3, 38.78], "category_id": 10, "id": 405016}, {"segmentation": [[41.7, 14.87, 41.89, 37.62, 52.71, 37.43, 52.89, 13.0]], "area": 259.6131, "iscrowd": 0, "image_id": 522150, "bbox": [41.7, 13.0, 11.19, 24.62], "category_id": 10, "id": 405393}, {"segmentation": [[369.26, 244.35, 368.96, 210.06, 370.16, 208.27, 385.96, 207.68, 389.24, 208.87, 391.62, 234.81, 389.83, 245.54, 377.61, 248.52]], "area": 826.3894000000004, "iscrowd": 0, "image_id": 111831, "bbox": [368.96, 207.68, 22.66, 40.84], "category_id": 10, "id": 405651}, {"segmentation": [[412.97, 195.57, 411.96, 192.54, 412.67, 189.1, 412.67, 186.68, 413.37, 183.75, 413.68, 181.33, 415.7, 181.13, 416.91, 182.14, 418.12, 182.74, 418.73, 183.45, 418.12, 185.77, 417.92, 187.19, 418.73, 188.09, 418.12, 190.22, 417.92, 191.02, 419.23, 192.13, 418.73, 193.55, 418.02, 194.76, 415.9, 194.76, 414.08, 195.27]], "area": 75.44190000000006, "iscrowd": 0, "image_id": 564803, "bbox": [411.96, 181.13, 7.27, 14.44], "category_id": 10, "id": 405656}, {"segmentation": [[203.77, 257.72, 167.89, 273.51, 152.11, 279.25, 157.85, 305.08, 169.33, 316.56, 192.29, 325.17, 213.81, 340.95, 215.25, 342.39, 200.9, 352.43, 169.33, 358.17, 160.72, 363.91, 173.63, 394.04, 200.9, 406.96, 226.73, 417.0, 233.9, 421.31, 223.86, 425.61, 190.85, 439.96, 179.37, 447.14, 177.94, 462.92, 180.81, 474.4, 205.2, 488.75, 220.99, 501.67, 235.34, 513.15, 259.73, 520.32, 289.87, 517.45, 294.17, 481.58, 297.04, 462.92, 287.0, 442.83, 274.08, 421.31, 274.08, 404.09, 275.52, 386.87, 282.69, 382.57, 276.95, 361.04, 262.6, 352.43, 261.17, 320.86, 259.73, 306.51, 264.04, 293.6, 251.12, 273.51, 249.69, 257.72, 232.47, 244.81, 219.55, 237.63, 210.94, 254.85]], "area": 23048.223800000003, "iscrowd": 0, "image_id": 440625, "bbox": [152.11, 237.63, 144.93, 282.69], "category_id": 10, "id": 405721}, {"segmentation": [[448.64, 191.4, 451.94, 188.61, 458.79, 189.12, 463.35, 192.42, 466.14, 200.79, 464.36, 211.94, 459.8, 217.27, 451.69, 217.52, 444.33, 210.42, 444.84, 194.45]], "area": 508.28340000000077, "iscrowd": 0, "image_id": 173163, "bbox": [444.33, 188.61, 21.81, 28.91], "category_id": 10, "id": 406174}, {"segmentation": [[623.04, 201.99, 613.47, 201.43, 611.22, 202.37, 611.22, 206.12, 608.4, 206.87, 607.84, 210.25, 608.97, 212.13, 611.41, 212.88, 611.22, 217.0, 608.59, 217.0, 607.47, 219.63, 607.65, 221.88, 608.03, 223.2, 610.28, 223.38, 610.84, 223.57, 611.22, 229.01, 607.65, 230.14, 606.9, 233.33, 608.22, 235.02, 611.22, 235.2, 611.22, 239.14, 613.47, 240.08, 623.23, 239.33, 623.79, 214.38, 623.6, 203.12]], "area": 528.8318999999992, "iscrowd": 0, "image_id": 165347, "bbox": [606.9, 201.43, 16.89, 38.65], "category_id": 10, "id": 406354}, {"segmentation": [[181.76, 176.39, 184.51, 145.89, 191.38, 141.77, 200.45, 148.09, 212.54, 152.76, 209.79, 159.9, 208.69, 176.93, 200.45, 178.86, 183.96, 178.86]], "area": 856.7947500000004, "iscrowd": 0, "image_id": 482024, "bbox": [181.76, 141.77, 30.78, 37.09], "category_id": 10, "id": 406397}, {"segmentation": [[110.85, 198.45, 110.62, 213.55, 126.86, 215.84, 146.77, 215.84, 147.0, 197.76]], "area": 622.7094500000006, "iscrowd": 0, "image_id": 354277, "bbox": [110.62, 197.76, 36.38, 18.08], "category_id": 10, "id": 407092}, {"segmentation": [[486.58, 129.48, 485.97, 165.3, 498.79, 165.1, 498.99, 128.06]], "area": 459.23640000000046, "iscrowd": 0, "image_id": 482024, "bbox": [485.97, 128.06, 13.02, 37.24], "category_id": 10, "id": 407203}, {"segmentation": [[187.51, 417.37, 187.98, 412.67, 187.98, 410.32, 185.16, 407.97, 183.28, 407.5, 183.28, 398.1, 182.81, 392.46, 185.16, 383.06, 185.63, 381.65, 187.51, 380.71, 190.33, 380.24, 192.68, 380.24, 194.56, 380.71, 197.85, 396.69, 195.97, 403.27, 193.62, 406.56, 192.68, 410.79, 191.27, 417.84], [202.55, 403.27, 201.61, 400.45, 200.67, 398.57, 202.55, 384.94, 203.96, 384.94, 204.43, 384.47, 206.31, 382.59, 208.66, 382.12, 213.36, 385.41, 214.77, 386.82, 214.77, 403.27, 213.83, 406.09, 207.72, 406.09]], "area": 664.2463, "iscrowd": 0, "image_id": 453332, "bbox": [182.81, 380.24, 31.96, 37.6], "category_id": 10, "id": 407228}, {"segmentation": [[559.35, 245.95, 559.35, 259.91, 562.14, 263.13, 565.79, 265.92, 568.8, 266.56, 576.31, 266.99, 578.25, 260.98, 579.1, 255.61, 578.67, 247.24, 576.96, 239.94, 569.01, 239.51, 565.15, 240.15, 563.65, 241.23]], "area": 467.0201499999999, "iscrowd": 0, "image_id": 173163, "bbox": [559.35, 239.51, 19.75, 27.48], "category_id": 10, "id": 407419}, {"segmentation": [[541.13, 131.96, 539.12, 133.97, 538.62, 161.57, 542.13, 162.57, 547.15, 162.24, 551.5, 158.39, 553.51, 152.7, 554.68, 137.81, 552.84, 136.31, 551.0, 135.64, 550.0, 132.46, 547.15, 131.12]], "area": 419.0514999999993, "iscrowd": 0, "image_id": 111831, "bbox": [538.62, 131.12, 16.06, 31.45], "category_id": 10, "id": 407484}, {"segmentation": [[45.31, 192.26, 59.12, 190.76, 60.12, 234.35, 44.98, 235.68]], "area": 630.2089000000001, "iscrowd": 0, "image_id": 548253, "bbox": [44.98, 190.76, 15.14, 44.92], "category_id": 10, "id": 407592}, {"segmentation": [[247.58, 13.58, 247.86, 28.99, 246.75, 29.54, 246.47, 35.37, 247.72, 36.9, 249.11, 37.31, 249.8, 37.73, 249.94, 38.7, 250.08, 39.12, 253.83, 38.84, 256.19, 37.87, 259.24, 37.04, 259.1, 38.42, 259.8, 38.42, 260.07, 36.76, 260.07, 15.8, 264.24, 14.28, 262.43, 12.47, 262.02, 9.0, 264.93, 11.92, 267.98, 10.81, 268.54, 8.59, 268.26, 5.12, 245.64, 11.22]], "area": 422.48264999999986, "iscrowd": 0, "image_id": 510314, "bbox": [245.64, 5.12, 22.9, 34.0], "category_id": 10, "id": 407609}, {"segmentation": [[527.43, 259.92, 535.04, 258.54, 537.11, 261.82, 536.07, 268.22, 528.12, 268.73, 525.18, 264.59]], "area": 92.5908000000006, "iscrowd": 0, "image_id": 164036, "bbox": [525.18, 258.54, 11.93, 10.19], "category_id": 10, "id": 408398}, {"segmentation": [[142.06, 234.17, 141.97, 229.92, 145.35, 229.05, 145.16, 228.57, 142.06, 227.89, 141.48, 221.9, 150.86, 220.64, 150.67, 241.43, 144.87, 241.43, 144.77, 236.21, 142.35, 235.14]], "area": 157.59425000000002, "iscrowd": 0, "image_id": 548253, "bbox": [141.48, 220.64, 9.38, 20.79], "category_id": 10, "id": 408722}, {"segmentation": [[206.39, 302.12, 206.53, 270.94, 206.81, 262.79, 210.6, 264.2, 214.25, 264.06, 215.38, 265.46, 214.82, 268.27, 214.54, 269.25, 216.22, 272.2, 216.22, 274.17, 214.68, 274.59, 219.31, 275.99, 217.91, 283.3, 214.82, 283.86, 214.25, 286.81, 218.19, 287.23, 216.92, 292.99, 211.87, 296.22, 215.8, 301.98]], "area": 363.6657500000003, "iscrowd": 0, "image_id": 493245, "bbox": [206.39, 262.79, 12.92, 39.33], "category_id": 10, "id": 409076}, {"segmentation": [[241.76, 348.89, 224.58, 348.55, 227.67, 312.11, 244.51, 312.11, 243.48, 350.27]], "area": 656.7607999999992, "iscrowd": 0, "image_id": 448061, "bbox": [224.58, 312.11, 19.93, 38.16], "category_id": 10, "id": 409726}, {"segmentation": [[124.92, 547.73, 110.12, 545.67, 111.77, 503.32, 126.57, 502.91, 124.92, 548.55]], "area": 647.0957499999996, "iscrowd": 0, "image_id": 75308, "bbox": [110.12, 502.91, 16.45, 45.64], "category_id": 10, "id": 409986}, {"segmentation": [[121.05, 181.56, 120.29, 213.23, 132.11, 205.44, 125.07, 203.18, 125.07, 202.42, 132.36, 194.13, 124.31, 192.12, 132.11, 184.07, 132.11, 182.56, 122.05, 182.31]], "area": 226.65549999999996, "iscrowd": 0, "image_id": 493245, "bbox": [120.29, 181.56, 12.07, 31.67], "category_id": 10, "id": 410873}, {"segmentation": [[16.21, 188.2, 34.28, 189.35, 33.14, 206.05, 4.31, 205.59, 4.08, 187.29, 17.58, 187.75]], "area": 519.1913000000004, "iscrowd": 0, "image_id": 354277, "bbox": [4.08, 187.29, 30.2, 18.76], "category_id": 10, "id": 410982}, {"segmentation": [[9.6, 410.75, 630.42, 413.63, 638.1, 60.52, 443.31, 37.49, 134.34, 10.62, 11.51, 11.58]], "area": 238971.83635, "iscrowd": 0, "image_id": 297764, "bbox": [9.6, 10.62, 628.5, 403.01], "category_id": 67, "id": 412993}, {"segmentation": [[129.35, 265.26, 86.86, 262.12, 80.87, 255.56, 83.44, 248.43, 98.55, 241.87, 136.2, 235.6, 148.75, 233.6, 145.04, 238.45, 147.32, 239.59, 121.08, 244.72, 156.45, 251.57, 183.26, 243.87, 165.86, 240.44, 165.86, 237.88, 168.43, 232.46, 186.68, 232.46, 201.22, 236.45, 207.21, 240.16, 206.07, 245.58, 192.67, 252.71, 175.27, 256.99, 151.03, 261.55, 127.36, 265.83]], "area": 2314.6756000000005, "iscrowd": 0, "image_id": 551986, "bbox": [80.87, 232.46, 126.34, 33.37], "category_id": 67, "id": 413009}, {"segmentation": [[0.0, 452.58, 103.09, 372.4, 100.22, 250.7, 1.43, 267.88], [376.55, 336.6, 402.33, 262.15, 405.19, 230.65, 480.0, 226.36, 480.0, 362.38]], "area": 26136.74755, "iscrowd": 0, "image_id": 142, "bbox": [0.0, 226.36, 480.0, 226.22], "category_id": 67, "id": 413425}, {"segmentation": [[524.22, 291.24, 207.1, 261.03, 208.18, 275.06, 196.31, 279.37, 189.84, 269.66, 183.37, 258.88, 16.18, 351.64, 83.06, 357.03, 98.16, 311.73, 115.42, 306.34, 144.54, 308.49, 156.4, 333.3, 163.96, 361.35, 166.11, 377.53, 334.38, 408.81, 337.62, 366.74, 415.28, 379.69, 471.37, 380.76, 499.42, 381.84, 509.12, 445.48, 640.0, 463.82, 568.45, 321.44, 509.12, 321.44, 491.87, 322.52, 475.69, 314.97, 483.24, 306.34, 492.94, 299.87, 511.28, 300.94, 550.11, 298.79, 550.11, 297.71, 524.22, 292.31]], "area": 54031.61915000001, "iscrowd": 0, "image_id": 561406, "bbox": [16.18, 258.88, 623.82, 204.94], "category_id": 67, "id": 413619}, {"segmentation": [[0.0, 1.08, 1.44, 629.53, 480.0, 629.53, 476.75, 3.97, 317.83, 2.53, 0.0, 1.08]], "area": 299602.30535, "iscrowd": 0, "image_id": 371808, "bbox": [0.0, 1.08, 480.0, 628.45], "category_id": 67, "id": 413704}, {"segmentation": [[64.29, 282.11, 127.62, 266.76, 125.7, 248.52, 153.53, 241.81, 343.52, 286.91, 349.28, 293.62, 346.4, 301.3, 315.69, 321.45, 313.77, 327.21, 286.91, 343.52, 283.07, 351.2, 288.82, 355.99, 299.38, 355.03, 312.81, 360.79, 293.62, 367.51, 282.11, 364.63, 270.59, 366.55, 243.73, 378.06, 223.58, 392.46, 215.9, 404.93, 217.82, 410.69, 231.25, 421.24, 161.2, 421.24, 161.2, 347.36, 94.04, 306.1, 62.37, 286.91]], "area": 25347.355999999996, "iscrowd": 0, "image_id": 346754, "bbox": [62.37, 241.81, 286.91, 179.43], "category_id": 67, "id": 413848}, {"segmentation": [[218.87, 185.55, 319.64, 176.88, 321.81, 149.8, 269.8, 142.21, 182.03, 160.63, 192.87, 177.97, 225.37, 184.47]], "area": 4253.9268999999995, "iscrowd": 0, "image_id": 130624, "bbox": [182.03, 142.21, 139.78, 43.34], "category_id": 67, "id": 413942}, {"segmentation": [[185.53, 454.11, 196.31, 378.61, 214.65, 364.58, 234.07, 354.88, 259.96, 347.33, 297.71, 321.44, 305.26, 320.36, 365.66, 319.28, 391.55, 319.28, 415.28, 322.52, 454.11, 349.48, 477.84, 357.03, 500.49, 366.74, 567.37, 400.18, 582.47, 431.46, 579.24, 448.72, 539.33, 445.48, 512.36, 443.33]], "area": 38731.457850000006, "iscrowd": 0, "image_id": 115055, "bbox": [185.53, 319.28, 396.94, 134.83], "category_id": 67, "id": 415526}, {"segmentation": [[241.85, 335.09, 217.49, 341.18, 208.97, 357.01, 213.84, 371.63, 219.93, 374.06, 217.49, 389.89, 190.7, 391.11, 180.96, 405.72, 180.96, 413.03, 185.83, 420.34, 185.83, 426.43, 185.83, 434.95, 207.75, 434.95, 213.84, 436.17, 215.06, 430.08, 218.71, 561.6, 205.32, 568.91, 230.89, 582.3, 290.56, 575.0, 286.91, 555.51, 279.6, 551.86, 280.82, 434.95, 291.78, 426.43, 291.78, 414.25, 286.91, 403.29, 273.51, 393.55, 274.73, 367.97, 282.04, 367.97, 283.25, 349.7, 260.12, 332.66, 254.03, 325.35, 236.98, 320.48, 234.54, 335.09]], "area": 17510.796749999994, "iscrowd": 0, "image_id": 435933, "bbox": [180.96, 320.48, 110.82, 261.82], "category_id": 11, "id": 415855}, {"segmentation": [[486.45, 426.0, 486.45, 428.97, 485.65, 429.66, 484.85, 431.03, 484.85, 431.95, 484.96, 433.32, 485.76, 433.89, 485.88, 435.95, 485.88, 438.7, 486.79, 438.7, 491.83, 438.58, 492.29, 438.24, 492.29, 436.3, 491.94, 435.15, 490.23, 434.35, 489.65, 434.12, 489.88, 432.86, 490.8, 432.41, 491.37, 432.18, 491.71, 430.92, 491.14, 429.54, 489.65, 427.94, 488.85, 427.03, 488.62, 426.46, 488.05, 426.46, 486.68, 426.34]], "area": 64.18460000000002, "iscrowd": 0, "image_id": 171155, "bbox": [484.85, 426.0, 7.44, 12.7], "category_id": 11, "id": 416027}, {"segmentation": [[253.57, 444.62, 264.44, 449.64, 272.81, 444.62, 273.65, 440.43, 276.16, 427.05, 280.34, 421.19, 276.16, 411.15, 273.65, 409.48, 271.97, 369.32, 276.99, 366.81, 276.99, 354.26, 282.01, 351.75, 294.56, 323.3, 287.03, 316.6, 280.34, 312.42, 272.81, 301.54, 266.95, 292.34, 264.44, 280.63, 253.57, 280.63, 252.73, 294.01, 244.36, 301.54, 244.36, 331.66, 244.36, 354.26, 239.34, 369.32, 249.38, 377.68, 251.06, 392.74, 251.06, 411.15, 246.87, 411.99, 246.04, 420.35, 251.89, 435.41, 251.06, 447.13]], "area": 4966.87165, "iscrowd": 0, "image_id": 409374, "bbox": [239.34, 280.63, 55.22, 169.01], "category_id": 11, "id": 416324}, {"segmentation": [[502.59, 263.55, 502.59, 263.74, 503.53, 263.36, 503.34, 262.23, 504.47, 261.48, 505.22, 262.42, 506.35, 259.98, 508.6, 261.86, 510.86, 261.86, 513.49, 265.05, 513.68, 268.63, 514.06, 273.7, 513.49, 279.35, 514.25, 287.24, 517.82, 287.81, 518.57, 287.81, 517.25, 289.88, 516.88, 290.82, 516.88, 295.71, 517.44, 299.09, 510.86, 300.22, 506.35, 300.22, 502.59, 299.66, 502.4, 298.15, 502.4, 293.45, 502.4, 285.74, 502.02, 280.1, 501.83, 273.89, 501.83, 268.81, 501.83, 265.43, 502.21, 264.3]], "area": 480.81795000000056, "iscrowd": 0, "image_id": 564803, "bbox": [501.83, 259.98, 16.74, 40.24], "category_id": 11, "id": 416705}, {"segmentation": [[154.31, 252.15, 149.98, 248.93, 148.72, 242.22, 147.74, 234.39, 144.39, 219.43, 143.27, 208.1, 143.69, 189.79, 144.67, 182.1, 147.6, 178.6, 150.82, 173.85, 152.36, 171.89, 152.08, 167.41, 149.56, 162.94, 148.02, 157.77, 148.58, 152.73, 155.15, 142.67, 161.17, 136.93, 166.9, 136.79, 174.03, 139.17, 180.6, 141.13, 188.01, 147.0, 190.53, 150.64, 191.37, 157.07, 190.25, 160.56, 187.73, 166.16, 186.33, 171.75, 188.57, 182.38, 188.01, 188.25, 183.96, 190.07, 186.61, 199.43, 184.24, 203.63, 187.73, 212.72, 191.23, 217.19, 187.87, 229.77, 188.15, 236.35, 190.67, 247.81, 185.91, 254.24, 188.29, 260.12, 188.29, 263.89, 185.08, 270.88, 186.47, 274.24, 192.91, 275.5, 196.54, 278.71, 196.54, 281.65, 188.99, 284.72, 176.97, 285.28, 160.05, 285.28, 147.18, 282.77, 144.39, 280.67, 143.55, 278.15, 143.55, 276.2, 144.95, 273.96, 147.74, 273.54, 149.84, 272.0, 153.76, 267.53, 154.31, 265.15, 154.59, 261.79, 155.01, 257.46, 152.08, 255.64, 152.64, 254.1]], "area": 5839.014949999998, "iscrowd": 0, "image_id": 257323, "bbox": [143.27, 136.79, 53.27, 148.49], "category_id": 11, "id": 416713}, {"segmentation": [[530.63, 120.01, 519.12, 130.56, 483.61, 162.23, 476.9, 169.9, 454.83, 184.3, 449.07, 207.33, 456.75, 223.64, 459.62, 239.95, 468.26, 239.95, 466.34, 260.1, 452.91, 278.33, 450.99, 296.57, 461.54, 313.84, 468.26, 317.68, 466.34, 420.35, 569.01, 419.39, 589.16, 419.39, 587.24, 349.34, 602.6, 357.98, 616.99, 337.83, 621.79, 303.28, 636.18, 291.77, 624.67, 277.37, 620.83, 278.33, 602.6, 259.14, 609.31, 230.36, 603.56, 216.92, 614.11, 204.45, 607.4, 186.22, 595.88, 175.66, 542.15, 131.52]], "area": 38908.59704999999, "iscrowd": 0, "image_id": 114521, "bbox": [449.07, 120.01, 187.11, 300.34], "category_id": 11, "id": 417199}, {"segmentation": [[290.21, 633.0, 288.86, 608.82, 276.08, 599.4, 280.79, 584.6, 284.15, 549.61, 290.88, 536.82, 261.95, 541.53, 263.97, 534.8, 302.99, 526.06, 357.5, 511.25, 373.64, 510.58, 377.68, 513.27, 377.68, 521.35, 352.79, 530.09, 352.79, 538.17, 365.57, 552.97, 368.93, 593.34, 368.26, 606.8, 358.84, 612.86, 357.5, 633.0]], "area": 9199.683350000005, "iscrowd": 0, "image_id": 552089, "bbox": [261.95, 510.58, 115.73, 122.42], "category_id": 11, "id": 417489}, {"segmentation": [[52.47, 213.67, 54.4, 180.12, 63.33, 179.88, 74.44, 181.33, 78.78, 182.3, 80.23, 183.75, 80.71, 186.88, 78.54, 218.02, 74.44, 218.02, 70.82, 218.5, 68.4, 220.91, 61.89, 220.43, 61.64, 218.98, 58.75, 217.53, 54.89, 213.67]], "area": 989.1846499999998, "iscrowd": 0, "image_id": 374977, "bbox": [52.47, 179.88, 28.24, 41.03], "category_id": 14, "id": 418337}, {"segmentation": [[563.77, 72.6, 565.93, 81.07, 553.15, 84.3, 552.38, 73.68, 558.38, 69.21, 561.46, 69.06, 564.7, 71.68]], "area": 149.0585999999998, "iscrowd": 0, "image_id": 397599, "bbox": [552.38, 69.06, 13.55, 15.24], "category_id": 14, "id": 419355}, {"segmentation": [[223.78, 369.73, 121.08, 394.59, 152.43, 401.08, 170.81, 412.97, 163.24, 438.92, 118.92, 469.19, 112.43, 473.51, 538.38, 474.59, 539.46, 455.14, 551.35, 442.16, 567.57, 428.11, 583.78, 420.54, 609.73, 428.11, 638.92, 444.32, 633.51, 400.0, 629.19, 400.0, 622.7, 390.27, 629.19, 379.46, 629.19, 370.81, 630.27, 363.24, 632.43, 351.35, 617.3, 350.27, 594.59, 339.46, 572.97, 336.22, 456.22, 310.27, 424.86, 316.76, 416.22, 322.16, 406.49, 334.05, 390.27, 324.32, 379.46, 330.81, 371.89, 342.7, 336.22, 336.22, 315.68, 332.97, 295.14, 335.14, 261.62, 353.51, 241.08, 366.49]], "area": 60282.78569999999, "iscrowd": 0, "image_id": 176587, "bbox": [112.43, 310.27, 526.49, 164.32], "category_id": 67, "id": 419705}, {"segmentation": [[500.0, 240.85, 391.78, 244.21, 368.29, 207.3, 453.86, 208.97, 494.97, 223.24, 500.0, 237.5]], "area": 3696.63195, "iscrowd": 0, "image_id": 384755, "bbox": [368.29, 207.3, 131.71, 36.91], "category_id": 67, "id": 420114}, {"segmentation": [[152.72, 245.62, 170.93, 247.19, 206.67, 234.82, 160.81, 231.68, 152.27, 238.42, 150.24, 242.47]], "area": 513.5099999999998, "iscrowd": 0, "image_id": 579659, "bbox": [150.24, 231.68, 56.43, 15.51], "category_id": 67, "id": 420549}, {"segmentation": [[191.28, 39.17, 188.35, 28.9, 178.57, 21.08, 171.23, 21.08, 167.81, 25.48, 164.38, 28.9, 157.54, 32.81, 137.0, 32.32, 122.81, 35.75, 120.37, 37.7, 102.27, 37.7, 87.11, 38.68, 81.24, 38.68, 76.35, 37.22, 73.07, 36.77, 71.58, 35.07, 69.45, 34.22, 69.67, 37.2, 68.6, 38.26, 68.81, 39.75, 69.45, 41.24, 68.39, 43.16, 65.2, 41.88, 62.64, 40.61, 61.15, 41.67, 60.94, 44.44, 73.5, 51.46, 74.78, 52.74, 77.76, 52.31, 81.16, 52.74, 83.29, 54.23, 87.12, 51.68, 90.95, 51.04, 96.06, 50.61, 102.66, 51.25, 112.67, 50.4, 129.27, 60.83, 129.27, 64.02, 126.08, 67.85, 125.65, 73.39, 124.16, 77.86, 123.1, 81.48, 120.12, 86.59, 119.91, 90.21, 118.63, 92.34, 119.05, 96.17, 118.84, 101.92, 120.33, 104.04, 120.54, 105.54, 130.98, 120.01, 132.89, 121.5, 132.89, 124.69, 133.96, 126.82, 134.38, 129.59, 134.17, 131.51, 132.04, 134.49, 132.04, 135.55, 131.4, 139.38, 128.21, 147.05, 126.51, 155.99, 125.02, 162.37, 124.59, 166.84, 123.95, 171.95, 127.78, 175.79, 128.85, 177.91, 130.76, 181.96, 135.23, 182.17, 138.0, 181.11, 144.39, 180.68, 150.35, 178.77, 153.54, 176.21, 155.67, 172.59, 152.9, 171.95, 148.22, 168.55, 141.19, 167.91, 142.47, 163.44, 147.79, 151.09, 150.35, 144.07, 151.63, 142.36, 152.05, 138.74, 153.12, 135.98, 156.73, 138.96, 156.1, 141.72, 162.06, 144.71, 163.33, 153.43, 163.76, 158.76, 165.25, 182.39, 165.68, 188.77, 168.87, 187.28, 170.57, 188.13, 174.62, 185.79, 179.94, 186.22, 183.56, 187.92, 188.24, 186.43, 195.9, 182.81, 200.8, 177.28, 199.95, 173.87, 197.18, 173.44, 195.05, 172.38, 191.01, 174.93, 187.82, 174.93, 187.18, 166.84, 186.32, 150.88, 185.05, 135.98, 178.24, 125.55, 167.38, 112.99, 163.76, 108.3, 161.42, 102.98, 164.4, 94.04, 167.59, 86.38, 170.57, 79.78, 172.06, 75.73, 173.34, 73.82, 189.73, 82.12, 195.27, 82.33, 197.82, 83.18, 203.36, 83.18, 207.61, 79.35, 210.38, 76.58, 214.21, 75.52, 216.34, 74.67, 218.9, 75.73, 221.66, 78.71, 222.73, 78.29, 222.3, 75.52, 222.73, 75.09, 224.43, 75.09, 224.86, 73.18, 224.22, 71.47, 226.13, 70.2, 225.07, 67.22, 223.15, 65.51, 219.32, 64.66, 214.0, 64.66, 208.04, 64.87, 206.97, 65.51, 205.27, 65.09, 203.78, 66.58, 199.74, 67.0, 197.82, 65.73, 191.22, 62.11, 188.67, 57.42, 185.28, 56.14, 180.86, 51.46, 186.54, 49.55, 189.73, 46.35, 188.92, 39.97, 191.43, 39.33]], "area": 9302.40015, "iscrowd": 0, "image_id": 263275, "bbox": [60.94, 21.08, 165.19, 167.69], "category_id": 1, "id": 421069}, {"segmentation": [[298.9, 352.17, 307.83, 350.96, 313.86, 348.3, 317.0, 344.68, 320.38, 338.65, 323.03, 336.48, 324.24, 334.31, 324.24, 331.89, 323.76, 329.24, 323.27, 327.55, 322.79, 326.1, 321.82, 324.41, 320.14, 322.96, 318.93, 318.62, 316.52, 314.76, 316.03, 300.03, 315.79, 289.65, 314.1, 283.86, 312.89, 277.1, 310.24, 270.83, 307.83, 265.76, 309.52, 260.93, 312.17, 255.38, 317.24, 244.28, 319.41, 237.04, 321.82, 230.76, 324.0, 231.49, 326.65, 230.04, 329.31, 229.8, 331.48, 228.35, 333.17, 226.66, 333.89, 225.45, 334.13, 224.73, 334.38, 222.56, 334.62, 213.14, 333.17, 206.39, 332.93, 181.04, 331.48, 168.74, 321.82, 153.29, 317.72, 145.81, 312.41, 137.6, 306.14, 134.7, 296.97, 131.08, 294.31, 127.95, 292.14, 127.46, 288.04, 129.64, 286.1, 127.22, 283.21, 118.53, 282.0, 112.02, 275.24, 102.36, 271.38, 101.64, 262.21, 102.12, 257.62, 105.02, 252.31, 111.05, 251.59, 118.29, 245.07, 123.84, 245.56, 126.5, 247.25, 127.22, 249.42, 127.22, 253.04, 125.77, 254.49, 125.53, 255.69, 127.22, 256.66, 131.33, 257.14, 133.26, 259.07, 133.74, 259.8, 134.22, 261.49, 136.64, 262.21, 137.84, 264.38, 139.77, 266.31, 140.74, 267.52, 140.98, 268.97, 140.98, 270.66, 140.26, 270.9, 140.01, 271.62, 139.77, 273.07, 142.91, 273.55, 144.84, 271.62, 147.25, 269.93, 148.7, 268.0, 150.63, 267.28, 152.81, 267.52, 154.98, 270.17, 176.7, 271.62, 182.49, 272.59, 184.66, 272.59, 187.32, 272.35, 194.08, 270.66, 199.87, 269.69, 202.28, 264.62, 213.87, 263.42, 219.9, 264.62, 223.76, 265.83, 225.45, 269.69, 226.18, 271.62, 224.97, 273.55, 223.04, 274.28, 221.35, 276.93, 217.97, 277.17, 218.7, 278.14, 222.07, 278.38, 224.97, 277.17, 229.07, 275.97, 235.11, 273.8, 241.62, 272.83, 243.31, 272.11, 260.69, 274.04, 264.31, 274.28, 265.52, 273.55, 269.86, 274.28, 273.0, 275.0, 277.59, 276.45, 297.38, 278.62, 309.45, 280.07, 316.93, 277.9, 320.31, 273.07, 325.37, 270.42, 328.75, 266.07, 329.72, 261.97, 329.96, 257.38, 331.65, 256.9, 333.1, 258.11, 338.17, 262.45, 339.86, 266.07, 340.1, 275.0, 339.37, 278.86, 338.41, 283.45, 337.93, 289.0, 338.65, 294.07, 338.89, 296.48, 336.96, 297.93, 335.51, 297.45, 333.58, 296.24, 325.86, 296.48, 321.51, 295.28, 319.1, 294.07, 315.96, 292.14, 307.03, 294.07, 298.58, 294.79, 291.34, 294.07, 286.03, 292.86, 280.0, 292.14, 273.48, 291.66, 270.59, 296.72, 280.24, 300.34, 285.79, 299.38, 293.27, 302.76, 301.0, 303.48, 305.83, 304.69, 312.1, 305.17, 316.93, 303.96, 325.37, 300.83, 331.65, 300.34, 341.55, 299.38, 345.65, 296.0, 348.3, 296.72, 350.48, 300.34, 351.2]], "area": 11099.812349999998, "iscrowd": 0, "image_id": 11754, "bbox": [245.07, 101.64, 89.55, 250.53], "category_id": 1, "id": 421846}, {"segmentation": [[131.18, 239.27, 147.37, 240.81, 157.39, 250.06, 178.2, 268.56, 197.46, 269.33, 211.34, 270.1, 211.34, 245.44, 225.21, 231.57, 246.79, 227.71, 267.6, 246.21, 270.68, 260.85, 286.1, 279.35, 276.08, 290.91, 257.58, 284.74, 245.25, 299.39, 233.69, 300.16, 234.46, 314.8, 225.98, 342.55, 239.85, 347.94, 249.1, 358.73, 237.54, 365.67, 219.81, 358.73, 211.34, 386.48, 202.86, 405.75, 197.46, 441.2, 188.99, 458.16, 183.59, 501.32, 197.46, 512.88, 199.01, 521.35, 165.09, 519.04, 164.32, 515.96, 168.18, 505.94, 168.95, 475.88, 168.18, 463.55, 167.41, 462.78, 144.28, 476.65, 135.04, 487.44, 132.72, 493.61, 133.49, 507.48, 131.18, 518.27, 118.08, 503.63, 108.83, 490.53, 104.21, 481.28, 109.6, 475.88, 119.62, 472.8, 138.89, 453.53, 154.3, 438.89, 150.45, 411.91, 151.99, 386.48, 154.3, 361.05, 166.64, 322.51, 175.88, 291.68, 160.47, 273.95, 147.37, 253.92, 135.81, 250.06, 129.64, 244.67]], "area": 17967.846049999996, "iscrowd": 0, "image_id": 385241, "bbox": [104.21, 227.71, 181.89, 293.64], "category_id": 1, "id": 422010}, {"segmentation": [[382.57, 232.03, 381.41, 227.39, 376.2, 223.92, 364.6, 212.32, 361.12, 210.0, 361.7, 207.68, 360.54, 203.63, 351.85, 198.41, 348.95, 193.19, 344.89, 190.29, 339.67, 185.07, 333.29, 178.7, 329.82, 175.8, 331.56, 170.58, 329.24, 167.68, 315.9, 161.88, 307.21, 157.82, 301.41, 158.98, 300.83, 155.51, 299.09, 150.29, 290.39, 147.97, 285.18, 154.35, 284.6, 158.98, 287.49, 161.88, 289.23, 165.94, 288.07, 171.74, 285.76, 175.8, 286.34, 179.86, 293.29, 186.81, 299.09, 190.87, 306.63, 192.03, 310.68, 199.57, 317.64, 201.89, 318.22, 204.78, 318.22, 212.9, 320.54, 218.7, 325.18, 225.08, 327.5, 231.45, 333.29, 234.93, 343.73, 238.41, 347.79, 238.99, 347.79, 244.21, 348.95, 245.37, 354.17, 241.31, 355.91, 237.25, 350.69, 233.77, 340.25, 226.24, 340.25, 217.54, 337.35, 203.63, 344.89, 210.0, 346.63, 213.48, 350.69, 214.64, 354.17, 215.8, 359.38, 221.02, 364.6, 222.18, 371.56, 224.5, 373.3, 228.55, 373.88, 232.03, 376.2, 236.09, 379.67, 233.77]], "area": 3108.1917000000017, "iscrowd": 0, "image_id": 104919, "bbox": [284.6, 147.97, 97.97, 97.4], "category_id": 1, "id": 422011}, {"segmentation": [[445.11, 142.79, 444.26, 137.69, 440.57, 131.18, 436.04, 130.05, 430.09, 132.31, 426.41, 135.99, 424.99, 137.98, 422.16, 141.38, 422.44, 142.23, 424.99, 142.23, 425.28, 143.36, 426.41, 144.49, 426.69, 145.06, 425.56, 147.89, 425.84, 149.59, 427.26, 150.16, 427.83, 151.29, 427.83, 151.29, 430.94, 156.68, 431.79, 156.68, 436.04, 155.26, 437.46, 156.11, 438.87, 160.07, 442.84, 164.32, 442.84, 165.74, 437.17, 177.64, 431.79, 185.57, 428.39, 188.97, 425.56, 189.82, 423.01, 193.79, 421.59, 198.6, 423.58, 201.44, 425.28, 201.44, 427.26, 201.72, 428.11, 201.44, 428.96, 197.47, 432.36, 193.5, 434.63, 192.09, 445.39, 178.77, 449.92, 173.96, 450.49, 173.39, 458.14, 175.66, 461.54, 180.47, 462.95, 181.32, 462.95, 183.02, 458.99, 186.14, 448.51, 191.52, 435.48, 200.02, 432.64, 202.29, 432.08, 204.55, 431.79, 207.38, 433.78, 213.9, 437.74, 222.4, 442.56, 233.73, 442.27, 240.25, 441.42, 242.23, 442.27, 244.78, 438.87, 248.75, 430.66, 251.01, 430.66, 253.28, 436.04, 253.28, 454.74, 251.01, 454.17, 249.6, 453.04, 242.8, 452.47, 237.13, 451.34, 228.63, 448.79, 219.0, 446.52, 213.9, 445.67, 211.35, 447.66, 209.65, 451.62, 210.5, 452.76, 210.78, 454.74, 208.8, 455.59, 209.08, 454.17, 214.47, 458.71, 220.7, 462.67, 223.53, 473.72, 228.92, 477.4, 232.88, 481.94, 234.86, 482.5, 238.26, 486.75, 243.65, 482.79, 247.05, 481.94, 248.46, 494.12, 245.91, 501.48, 243.08, 496.95, 237.98, 494.12, 235.15, 487.6, 229.2, 483.64, 224.67, 479.39, 220.7, 476.84, 218.43, 472.87, 216.45, 471.45, 215.6, 469.75, 215.03, 470.04, 213.05, 484.2, 200.59, 490.15, 190.95, 489.87, 182.46, 485.62, 173.11, 479.1, 166.31, 471.17, 153.56, 461.54, 148.18, 451.91, 144.49, 446.24, 142.51]], "area": 4096.255450000001, "iscrowd": 0, "image_id": 148646, "bbox": [421.59, 130.05, 79.89, 123.23], "category_id": 1, "id": 422176}, {"segmentation": [[16.85, 469.66, 28.09, 439.33, 46.07, 356.18, 60.67, 331.46, 21.35, 262.92, 17.98, 247.19, 37.08, 194.38, 64.04, 113.48, 88.76, 102.25, 108.99, 61.8, 137.08, 55.06, 144.94, 93.26, 135.96, 121.35, 126.97, 143.82, 139.33, 162.92, 165.17, 148.31, 184.27, 148.31, 177.53, 171.91, 167.42, 178.65, 142.7, 182.02, 139.33, 187.64, 139.33, 211.24, 165.17, 243.82, 197.75, 261.8, 156.18, 277.53, 130.34, 260.67, 121.35, 291.01, 139.33, 387.64, 123.6, 423.6, 137.08, 479.78, 129.21, 483.15, 95.51, 475.28, 42.7, 486.52]], "area": 40097.82015, "iscrowd": 0, "image_id": 188085, "bbox": [16.85, 55.06, 180.9, 431.46], "category_id": 1, "id": 422597}, {"segmentation": [[343.53, 496.22, 319.8, 481.53, 320.93, 428.42, 320.93, 411.47, 299.46, 387.74, 277.99, 353.84, 257.65, 297.33, 256.52, 220.49, 289.29, 168.51, 328.84, 145.91, 402.3, 115.4, 483.66, 171.9, 483.66, 191.11, 415.86, 187.72, 404.56, 217.1, 405.69, 251.0, 426.03, 276.99, 432.81, 284.9, 458.8, 314.28, 492.7, 325.58, 516.43, 323.32, 540.16, 302.98, 565.02, 283.77, 583.1, 293.94, 595.53, 353.84, 594.4, 426.16, 591.01, 475.88, 593.27, 497.35]], "area": 82889.17825000001, "iscrowd": 0, "image_id": 56594, "bbox": [256.52, 115.4, 339.01, 381.95], "category_id": 1, "id": 422650}, {"segmentation": [[2.58, 125.51, 30.74, 118.3, 30.74, 116.34, 36.63, 114.38, 29.43, 107.17, 27.47, 98.66, 26.16, 88.84, 26.16, 79.67, 16.99, 68.54, 21.57, 63.3, 40.56, 56.75, 65.45, 59.37, 82.47, 70.5, 81.82, 75.74, 71.99, 79.01, 77.89, 87.53, 74.61, 94.73, 74.61, 99.31, 75.92, 105.86, 74.61, 113.07, 70.69, 118.96, 75.92, 126.82, 82.47, 130.75, 96.22, 137.95, 103.43, 143.84, 112.6, 192.3, 120.2, 212.18, 128.71, 246.23, 133.29, 265.88, 133.29, 276.35, 128.06, 278.32, 119.54, 275.7, 115.61, 272.43, 115.61, 267.19, 117.58, 252.13, 111.68, 252.78, 88.11, 188.61, 83.53, 205.63, 92.04, 249.51, 94.0, 264.57, 94.0, 286.18, 94.0, 307.13, 94.0, 315.65, 94.0, 322.19, 94.0, 323.5, 86.15, 327.43, 78.29, 348.39, 63.23, 385.06, 64.54, 339.22, 57.99, 281.59, 55.37, 296.65, 49.47, 336.6, 52.09, 393.57, 47.51, 411.25, 42.27, 417.8, 40.96, 433.52, 31.79, 441.38, 25.25, 438.76, 20.01, 430.24, 23.28, 423.04, 26.55, 417.8, 18.7, 383.09, 17.39, 328.09, 17.39, 305.17, 17.39, 276.35, 34.41, 277.66, 61.92, 271.12, 67.81, 254.09, 78.94, 250.16, 75.67, 237.06, 17.39, 228.55, 4.94, 236.41, 6.91, 215.45, 10.18, 210.22, 10.84, 204.32, 6.91, 176.16, 0.0, 173.54]], "area": 23230.74815, "iscrowd": 0, "image_id": 451160, "bbox": [0.0, 56.75, 133.29, 384.63], "category_id": 1, "id": 422664}, {"segmentation": [[359.19, 122.79, 378.61, 115.24, 387.24, 112.0, 390.47, 100.13, 390.47, 81.8, 391.55, 65.62, 422.83, 65.62, 431.46, 102.29, 473.53, 131.42, 498.34, 154.07, 506.97, 174.56, 498.34, 187.51, 497.26, 187.51, 490.79, 183.19, 473.53, 178.88, 468.13, 181.03, 467.06, 181.03, 461.66, 272.72, 463.82, 383.82, 458.43, 404.31, 446.56, 418.34, 435.78, 402.16, 427.15, 376.27, 423.91, 282.43, 422.83, 275.96, 414.2, 326.65, 422.83, 356.85, 421.75, 374.11, 414.2, 391.37, 399.1, 398.92, 378.61, 397.84, 385.08, 355.78, 379.69, 335.28, 380.76, 306.16, 379.69, 281.35, 377.53, 256.54, 375.37, 236.04, 376.45, 210.16, 376.45, 193.98, 373.21, 173.48, 359.19, 172.4, 355.96, 177.8, 352.72, 182.11, 346.25, 185.35, 340.85, 184.27, 336.54, 179.96, 326.83, 171.33, 334.38, 145.44, 335.46, 144.36, 336.54, 135.73, 344.09, 120.63]], "area": 29428.913200000003, "iscrowd": 0, "image_id": 345100, "bbox": [326.83, 65.62, 180.14, 352.72], "category_id": 1, "id": 422894}, {"segmentation": [[159.64, 256.79, 147.78, 212.57, 156.4, 171.58, 163.96, 144.61, 183.37, 129.51, 193.08, 125.2, 185.53, 89.6, 197.39, 66.95, 204.94, 62.63, 217.89, 77.73, 225.44, 92.84, 225.44, 107.94, 216.81, 121.96, 228.67, 131.67, 236.22, 133.82, 242.7, 145.69, 245.93, 160.79, 261.03, 223.35, 239.46, 265.42, 231.91, 253.56, 243.78, 221.2, 238.38, 180.21, 232.99, 181.29, 232.99, 225.51, 224.36, 252.48, 240.54, 297.78, 242.7, 380.84, 222.2, 380.84, 204.94, 344.16, 209.26, 262.18, 199.55, 284.84, 192.0, 360.34, 173.66, 349.56, 167.19, 335.53, 171.51, 267.58, 168.27, 243.85, 168.27, 194.23]], "area": 19453.5413, "iscrowd": 0, "image_id": 451160, "bbox": [147.78, 62.63, 113.25, 318.21], "category_id": 1, "id": 422943}, {"segmentation": [[458.33, 159.01, 463.75, 169.84, 471.33, 188.26, 472.42, 195.85, 482.17, 207.77, 486.5, 217.52, 486.5, 231.6, 482.17, 261.94, 476.75, 307.45, 470.25, 336.7, 461.58, 384.38, 460.5, 415.8, 464.83, 446.14, 437.74, 446.14, 409.57, 448.31, 406.32, 442.89, 417.16, 438.56, 425.82, 435.3, 429.07, 422.3, 429.07, 296.61, 426.91, 291.2, 422.57, 276.03, 421.49, 245.69, 421.49, 231.6, 414.99, 216.43, 398.74, 202.35, 382.48, 182.84, 377.07, 172.01, 367.31, 152.51, 364.06, 142.75, 378.15, 141.67, 383.57, 146.0, 401.99, 163.34, 423.66, 189.35, 423.66, 189.35, 425.82, 177.43, 425.82, 164.42, 431.24, 159.01, 434.49, 155.76, 449.66, 156.84, 454.0, 156.84]], "area": 15416.016450000003, "iscrowd": 0, "image_id": 386850, "bbox": [364.06, 141.67, 122.44, 306.64], "category_id": 1, "id": 423044}, {"segmentation": [[156.78, 326.4, 156.78, 293.39, 149.45, 264.05, 121.94, 240.22, 99.94, 223.71, 94.44, 209.04, 101.77, 182.45, 110.94, 151.28, 126.53, 106.36, 186.12, 72.43, 243.88, 68.76, 270.47, 76.1, 297.98, 74.27, 338.32, 90.77, 311.73, 140.28, 268.64, 148.53, 310.81, 169.62, 324.57, 187.96, 276.89, 187.04, 261.3, 169.62, 247.55, 159.53, 240.22, 177.87, 234.71, 233.8, 228.3, 277.81, 214.54, 291.56, 196.21, 292.48, 177.87, 337.4, 176.95, 355.74, 138.44, 335.57]], "area": 34296.678400000004, "iscrowd": 0, "image_id": 354359, "bbox": [94.44, 68.76, 243.88, 286.98], "category_id": 1, "id": 423052}, {"segmentation": [[118.65, 149.93, 134.83, 113.26, 157.48, 99.24, 188.76, 23.73, 203.87, 12.94, 234.07, 7.55, 258.88, 7.55, 290.16, 14.02, 321.44, 66.88, 310.65, 160.72, 313.89, 181.21, 313.89, 195.24, 307.42, 203.87, 290.16, 208.18, 291.24, 215.73, 291.24, 237.3, 291.24, 248.09, 290.16, 255.64, 283.69, 262.11, 263.19, 275.06, 262.11, 285.84, 261.03, 302.02, 265.35, 309.57, 283.69, 312.81, 290.16, 350.56, 266.43, 391.55, 253.48, 400.18, 241.62, 405.57, 245.93, 456.27, 243.78, 470.29, 33.44, 474.61, 2.16, 465.98, 0.0, 369.98, 3.24, 313.89, 19.42, 240.54, 61.48, 183.37, 87.37, 162.88]], "area": 104310.44475000002, "iscrowd": 0, "image_id": 510371, "bbox": [0.0, 7.55, 321.44, 467.06], "category_id": 1, "id": 423224}, {"segmentation": [[299.67, 328.4, 291.82, 291.42, 318.72, 253.32, 326.56, 240.99, 352.34, 223.06, 348.97, 206.26, 352.34, 176.0, 368.02, 139.02, 364.66, 126.69, 352.34, 103.16, 352.34, 77.39, 371.39, 56.1, 388.19, 50.49, 391.56, 66.18, 392.68, 82.99, 396.04, 115.49, 396.04, 136.78, 412.85, 154.71, 412.85, 200.65, 412.85, 249.96, 401.64, 274.61, 370.26, 279.09, 319.84, 305.99, 336.65, 346.33, 309.75, 330.64]], "area": 14749.849800000004, "iscrowd": 0, "image_id": 369976, "bbox": [291.82, 50.49, 121.03, 295.84], "category_id": 1, "id": 423282}, {"segmentation": [[97.35, 4.02, 95.65, 18.41, 84.65, 27.72, 87.19, 50.58, 85.5, 67.51, 76.19, 70.05, 64.33, 85.28, 32.17, 108.14, 22.01, 147.93, 25.4, 175.01, 22.01, 218.19, 25.4, 267.28, 41.48, 296.91, 42.33, 318.92, 66.03, 331.62, 66.87, 370.56, 140.52, 369.71, 150.68, 369.71, 152.37, 335.85, 152.37, 306.22, 147.29, 279.98, 138.83, 243.58, 139.67, 186.02, 144.75, 175.01, 160.84, 171.63, 180.3, 175.86, 202.31, 182.63, 211.63, 157.24, 229.4, 99.68, 224.32, 72.59, 198.08, 69.2, 193.85, 71.74, 193.0, 91.21, 198.08, 118.3, 182.0, 139.46, 143.06, 114.91, 139.67, 109.83, 129.51, 101.37, 140.52, 98.83, 143.91, 92.9, 156.6, 74.28, 156.6, 64.12, 156.6, 53.12, 156.6, 43.81, 156.6, 31.11, 153.22, 20.95, 148.98, 9.95, 137.98, 0.63, 99.89, 1.48]], "area": 41865.200199999985, "iscrowd": 0, "image_id": 453734, "bbox": [22.01, 0.63, 207.39, 369.93], "category_id": 1, "id": 423530}, {"segmentation": [[360.2, 413.56, 358.68, 426.03, 355.03, 429.38, 346.82, 428.46, 351.38, 422.38, 350.78, 419.95, 345.61, 418.43, 343.78, 417.52, 339.22, 414.78, 342.26, 412.35, 344.39, 411.43, 349.86, 408.09, 353.21, 400.79, 356.55, 400.49, 361.11, 397.45, 363.85, 393.8, 364.46, 389.24, 365.67, 382.85, 369.63, 380.42, 372.36, 380.42, 373.88, 383.76, 374.19, 388.33, 372.97, 395.93, 372.97, 412.96, 368.72, 411.43]], "area": 679.37255, "iscrowd": 0, "image_id": 448061, "bbox": [339.22, 380.42, 34.97, 48.96], "category_id": 1, "id": 424233}, {"segmentation": [[158.2, 428.58, 209.98, 375.37, 202.79, 316.4, 199.91, 268.94, 189.84, 238.74, 140.94, 224.36, 93.48, 220.04, 54.65, 228.67, 30.2, 202.79, 93.48, 178.34, 171.15, 159.64, 181.21, 153.89, 214.29, 138.07, 227.24, 109.3, 235.87, 84.85, 254.56, 67.6, 294.83, 71.91, 309.21, 107.87, 312.09, 140.94, 316.4, 163.96, 353.8, 202.79, 373.93, 230.11, 392.63, 274.7, 391.19, 313.53, 378.25, 333.66, 349.48, 349.48, 343.73, 401.26, 346.61, 440.09, 343.73, 450.16]], "area": 62602.4006, "iscrowd": 0, "image_id": 528047, "bbox": [30.2, 67.6, 362.43, 382.56], "category_id": 1, "id": 424663}, {"segmentation": [[595.65, 260.87, 595.96, 269.51, 595.96, 275.37, 596.58, 282.46, 597.5, 286.16, 601.82, 285.85, 600.28, 275.68, 603.06, 266.42, 603.98, 275.06, 603.98, 282.46, 606.76, 282.77, 609.53, 270.74, 608.61, 260.56, 610.46, 259.02, 612.31, 257.48, 613.54, 243.3, 611.38, 237.44, 606.76, 234.35, 609.84, 228.8, 605.21, 224.18, 599.97, 228.19, 600.59, 234.66, 594.11, 238.67, 589.49, 246.69, 588.25, 253.78, 592.57, 258.1]], "area": 850.3561499999979, "iscrowd": 0, "image_id": 564803, "bbox": [588.25, 224.18, 25.29, 61.98], "category_id": 1, "id": 424897}, {"segmentation": [[236.05, 282.11, 265.8, 272.51, 286.91, 242.77, 310.89, 229.33, 313.77, 209.18, 288.82, 188.07, 284.03, 161.2, 283.07, 145.85, 303.22, 157.37, 314.73, 175.6, 319.53, 163.12, 322.41, 155.45, 335.84, 146.81, 348.32, 150.65, 352.16, 164.08, 348.32, 176.56, 348.32, 201.51, 360.79, 243.73, 364.63, 258.12, 371.35, 270.59, 397.25, 275.39, 417.4, 275.39, 443.31, 285.95, 450.99, 300.34, 424.12, 292.66, 390.54, 292.66, 349.28, 307.06, 336.8, 266.76, 304.18, 266.76, 282.11, 282.11, 248.52, 296.5, 222.62, 289.78, 213.98, 279.23]], "area": 10300.456650000006, "iscrowd": 0, "image_id": 333324, "bbox": [213.98, 145.85, 237.01, 161.21], "category_id": 1, "id": 424995}, {"segmentation": [[133.38, 355.1, 179.44, 291.77, 200.55, 200.61, 219.74, 155.51, 240.85, 98.9, 263.88, 107.53, 272.51, 146.88, 287.87, 137.28, 304.18, 157.43, 289.78, 203.49, 291.7, 237.07, 381.9, 381.97, 334.88, 366.61, 252.36, 275.45, 137.22, 381.01]], "area": 23295.941799999993, "iscrowd": 0, "image_id": 203847, "bbox": [133.38, 98.9, 248.52, 283.07], "category_id": 1, "id": 425342}, {"segmentation": [[140.86, 163.34, 123.52, 173.09, 118.1, 178.51, 114.85, 185.01, 118.1, 204.51, 120.27, 214.27, 120.27, 228.35, 122.44, 248.94, 117.02, 252.19, 108.35, 252.19, 96.43, 255.44, 87.77, 259.77, 80.18, 268.44, 75.85, 284.7, 71.51, 298.78, 70.43, 315.03, 65.01, 325.87, 63.93, 341.04, 69.35, 350.79, 75.85, 357.29, 79.1, 352.96, 82.35, 334.54, 84.51, 319.37, 91.02, 298.78, 95.35, 281.44, 97.52, 265.19, 107.27, 254.36, 118.1, 252.19, 120.27, 269.53, 119.19, 315.03, 124.6, 356.21, 133.27, 373.54, 147.36, 398.47, 167.95, 395.21, 185.28, 380.05, 199.37, 367.04, 204.79, 349.71, 206.95, 342.12, 206.95, 324.79, 211.29, 293.36, 204.79, 273.86, 198.28, 259.77, 193.95, 252.19, 183.12, 252.19, 172.28, 250.02, 167.95, 239.19, 171.2, 230.52, 173.36, 219.68, 176.61, 206.68, 176.61, 194.76, 176.61, 190.43, 174.45, 179.59, 171.2, 172.01, 166.86, 167.67, 158.19, 165.51, 149.53, 165.51]], "area": 17319.0701, "iscrowd": 0, "image_id": 501625, "bbox": [63.93, 163.34, 147.36, 235.13], "category_id": 1, "id": 425427}, {"segmentation": [[472.23, 251.11, 465.72, 259.48, 466.65, 264.74, 468.2, 270.01, 469.75, 274.34, 474.09, 277.44, 473.16, 279.92, 468.82, 281.78, 461.08, 284.57, 456.74, 287.35, 448.07, 287.35, 435.37, 287.04, 428.86, 285.19, 428.86, 282.4, 427.93, 272.49, 424.52, 268.77, 418.33, 264.74, 413.37, 266.29, 414.3, 275.27, 417.09, 279.61, 415.23, 280.85, 416.16, 283.64, 417.71, 288.28, 421.43, 289.83, 431.96, 294.48, 440.94, 298.51, 466.34, 301.29, 470.68, 300.98, 479.35, 299.13, 483.38, 305.94, 483.69, 311.52, 478.73, 310.59, 469.44, 309.66, 462.01, 309.66, 457.36, 312.75, 455.5, 317.4, 456.43, 322.36, 465.72, 331.03, 478.73, 344.35, 484.93, 347.76, 478.42, 353.64, 479.66, 358.6, 487.72, 357.36, 501.96, 353.95, 504.44, 350.86, 505.06, 344.66, 501.04, 341.25, 513.43, 336.3, 520.55, 327.93, 522.1, 314.92, 519.31, 305.63, 523.34, 302.84, 521.79, 291.38, 518.38, 285.81, 512.81, 281.16, 510.02, 277.44, 506.3, 274.65, 498.87, 274.65, 491.74, 270.32, 492.67, 266.91, 493.6, 262.26, 489.26, 255.14, 482.45, 252.66, 475.33, 250.49]], "area": 5035.221299999997, "iscrowd": 0, "image_id": 524522, "bbox": [413.37, 250.49, 109.97, 108.11], "category_id": 1, "id": 425657}, {"segmentation": [[408.76, 262.4, 411.96, 262.0, 411.96, 258.4, 410.76, 254.41, 410.76, 252.01, 411.56, 241.23, 411.56, 231.65, 411.96, 228.45, 413.95, 228.45, 414.75, 235.24, 414.75, 239.63, 414.75, 241.63, 415.95, 247.62, 416.75, 253.61, 418.74, 257.2, 418.74, 257.6, 419.14, 261.2, 427.93, 263.2, 428.73, 261.2, 428.73, 260.4, 427.13, 259.6, 425.93, 258.0, 425.53, 257.6, 424.73, 254.41, 424.73, 247.62, 423.54, 243.63, 423.54, 240.03, 423.14, 234.44, 422.74, 228.05, 421.94, 226.45, 423.14, 213.28, 423.14, 205.29, 423.14, 200.5, 423.94, 195.7, 423.14, 193.31, 419.14, 190.51, 418.74, 187.72, 419.14, 185.32, 417.95, 179.33, 409.56, 178.53, 410.76, 182.13, 411.16, 184.12, 411.16, 187.72, 409.96, 190.11, 405.17, 191.71, 403.97, 195.31, 401.17, 199.3, 401.57, 195.7, 400.77, 194.11, 399.18, 196.5, 393.98, 199.3, 393.98, 200.5, 393.19, 204.09, 393.19, 207.29, 395.58, 209.28, 399.97, 209.28, 400.77, 209.28, 400.77, 212.48, 399.58, 213.68, 398.78, 219.27, 397.98, 222.06, 397.98, 226.45, 397.98, 228.45, 397.98, 231.25, 398.78, 232.05, 401.17, 233.24, 401.57, 233.24, 401.97, 235.24, 402.77, 238.04, 402.77, 240.03, 402.77, 242.03, 402.77, 245.62, 403.17, 247.22, 404.77, 255.61, 404.77, 256.41, 404.77, 259.6, 405.96, 261.6, 407.16, 262.0, 407.56, 262.0, 407.96, 262.0]], "area": 1595.4640499999994, "iscrowd": 0, "image_id": 409374, "bbox": [393.19, 178.53, 35.54, 84.67], "category_id": 1, "id": 425831}, {"segmentation": [[291.4, 68.76, 301.98, 58.18, 317.36, 52.41, 332.75, 55.3, 332.75, 66.84, 332.75, 86.07, 328.91, 94.73, 324.1, 99.54, 327.94, 114.92, 333.71, 132.24, 343.33, 136.08, 366.41, 134.16, 374.11, 144.74, 374.11, 163.97, 360.64, 171.67, 349.1, 171.67, 347.18, 183.21, 351.02, 196.67, 351.02, 204.36, 403.92, 245.72, 405.84, 265.91, 395.26, 278.42, 376.99, 300.53, 357.76, 323.62, 367.37, 342.85, 372.18, 352.47, 357.76, 352.47, 342.37, 339.0, 329.87, 336.12, 326.98, 323.62, 347.18, 301.5, 365.45, 276.49, 366.41, 273.61, 353.91, 263.99, 346.22, 282.26, 338.52, 301.5, 326.98, 313.04, 314.48, 330.35, 288.51, 362.08, 289.48, 380.36, 270.24, 378.43, 251.01, 366.89, 253.89, 358.24, 273.13, 339.0, 298.13, 309.19, 313.52, 299.57, 318.33, 294.76, 313.52, 274.57, 308.71, 250.53, 296.21, 228.41, 299.09, 205.33, 292.36, 197.63, 292.36, 188.01, 289.48, 158.2, 284.67, 129.35, 294.28, 114.92, 301.98, 105.31, 303.9, 97.61, 294.28, 68.76]], "area": 19059.189150000006, "iscrowd": 0, "image_id": 59542, "bbox": [251.01, 52.41, 154.83, 327.95], "category_id": 1, "id": 426388}, {"segmentation": [[338.76, 173.6, 311.8, 189.61, 284.83, 188.76, 280.62, 186.24, 285.67, 161.8, 311.8, 151.69, 345.51, 150.0, 407.87, 143.26, 407.87, 141.57, 372.47, 133.99, 369.94, 114.61, 361.52, 97.75, 347.19, 87.64, 329.49, 37.92, 326.97, 8.43, 331.18, 3.37, 494.66, 3.37, 497.19, 366.57, 435.67, 367.42, 315.17, 369.1, 311.8, 359.83, 316.01, 342.13, 316.01, 331.18, 322.75, 318.54, 345.51, 311.8, 354.78, 326.12, 384.27, 345.51, 385.96, 353.93, 385.96, 353.93, 403.65, 300.84, 410.39, 273.03, 421.35, 222.47, 419.66, 171.91, 412.08, 179.49, 387.64, 187.08, 355.62, 175.28]], "area": 47460.447550000004, "iscrowd": 0, "image_id": 96177, "bbox": [280.62, 3.37, 216.57, 365.73], "category_id": 1, "id": 427614}, {"segmentation": [[31.28, 228.67, 49.62, 132.67, 74.43, 100.31, 108.94, 80.9, 134.83, 66.88, 141.3, 45.3, 155.33, 1.08, 226.52, 11.87, 234.07, 45.3, 222.2, 70.11, 221.12, 84.13, 226.52, 100.31, 222.2, 114.34, 225.44, 134.83, 229.75, 162.88, 227.6, 194.16, 239.46, 228.67, 248.09, 254.56, 256.72, 284.76, 273.98, 284.76, 303.1, 291.24, 322.52, 293.39, 352.72, 307.42, 398.02, 316.04, 433.62, 320.36, 457.35, 319.28, 472.45, 281.53, 494.02, 280.45, 502.65, 294.47, 505.89, 312.81, 497.26, 333.3, 491.87, 347.33, 508.04, 337.62, 542.56, 313.89, 555.51, 326.83, 563.06, 354.88, 555.51, 384.0, 551.19, 392.63, 522.07, 432.54, 511.28, 444.4, 481.08, 446.56, 412.04, 444.4, 309.57, 413.12, 225.44, 392.63, 146.7, 362.43, 94.92, 346.25, 77.66, 331.15, 61.48, 302.02, 48.54, 271.82, 42.07, 243.78]], "area": 96733.91489999999, "iscrowd": 0, "image_id": 319293, "bbox": [31.28, 1.08, 531.78, 445.48], "category_id": 1, "id": 428413}, {"segmentation": [[292.55, 229.44, 303.39, 229.44, 303.39, 227.27, 297.97, 206.68, 292.55, 187.18, 303.39, 163.34, 317.47, 142.75, 329.39, 129.75, 364.06, 129.75, 398.74, 137.34, 409.57, 152.51, 409.57, 181.76, 411.74, 208.85, 401.99, 239.19, 400.9, 244.6, 401.99, 260.86, 409.57, 278.19, 427.99, 308.53, 423.66, 344.29, 418.24, 376.79, 417.16, 390.88, 396.57, 390.88, 382.48, 378.96, 364.06, 358.37, 349.98, 344.29, 319.64, 335.62, 266.55, 336.7, 221.04, 348.62, 188.53, 357.29, 183.12, 357.29, 187.45, 342.12, 193.95, 313.95, 198.28, 299.86, 214.54, 277.11, 234.04, 256.52, 253.54, 248.94, 270.88, 240.27, 288.22, 232.69]], "area": 34694.480449999995, "iscrowd": 0, "image_id": 374391, "bbox": [183.12, 129.75, 244.87, 261.13], "category_id": 1, "id": 428422}, {"segmentation": [[380.27, 253.83, 362.21, 239.57, 352.7, 216.75, 319.43, 229.11, 303.26, 224.36, 286.15, 207.25, 281.4, 195.84, 266.19, 181.58, 234.82, 220.56, 225.31, 233.87, 224.36, 250.98, 215.8, 249.08, 219.61, 245.27, 208.2, 250.98, 206.3, 245.27, 220.56, 220.56, 248.13, 177.78, 248.13, 169.22, 262.39, 154.01, 247.17, 144.5, 242.42, 127.39, 249.08, 118.83, 264.29, 120.74, 275.7, 135.0, 285.2, 134.04, 290.91, 119.78, 306.12, 86.51, 305.17, 73.2, 316.57, 64.65, 319.43, 67.5, 304.22, 135.95, 303.26, 146.4, 323.23, 195.84, 353.65, 190.13, 365.06, 200.59, 382.17, 233.87, 398.33, 223.41, 400.23, 231.01, 384.07, 259.53]], "area": 8918.7944, "iscrowd": 0, "image_id": 78213, "bbox": [206.3, 64.65, 193.93, 194.88], "category_id": 1, "id": 428547}, {"segmentation": [[312.06, 257.87, 315.09, 253.16, 317.11, 246.43, 319.13, 241.38, 322.83, 238.35, 325.86, 233.3, 329.56, 229.93, 331.92, 228.92, 332.59, 226.23, 334.28, 223.2, 334.28, 220.84, 336.97, 215.79, 340.33, 214.78, 339.66, 208.07, 341.68, 198.65, 344.04, 190.9, 347.07, 184.51, 350.43, 178.79, 352.79, 174.75, 354.14, 172.75, 356.49, 170.06, 355.48, 167.7, 354.81, 164.0, 354.81, 160.63, 357.5, 157.94, 357.5, 153.22, 357.84, 149.18, 357.17, 142.47, 354.14, 137.09, 350.77, 131.03, 349.42, 127.33, 346.06, 134.06, 343.7, 138.44, 340.33, 145.5, 339.32, 148.2, 336.63, 151.9, 334.95, 154.93, 329.23, 164.69, 320.81, 178.83, 318.79, 180.51, 317.44, 186.24, 314.08, 193.64, 310.37, 196.67, 307.01, 200.04, 303.31, 201.05, 301.29, 199.7, 300.61, 199.03, 295.56, 203.74, 292.53, 205.42, 290.18, 205.09, 289.17, 204.41, 289.5, 200.04, 294.55, 194.65, 300.28, 184.89, 306.67, 179.17, 309.36, 175.8, 311.05, 173.78, 312.06, 166.38, 314.41, 156.28, 317.44, 147.19, 322.83, 134.4, 326.87, 129.68, 330.91, 122.61, 337.31, 106.86, 339.32, 101.47, 339.32, 97.77, 342.69, 92.72, 349.09, 88.68, 351.78, 87.69, 352.79, 85.67, 350.77, 80.29, 348.41, 75.24, 348.75, 68.84, 349.09, 63.12, 350.43, 58.41, 354.14, 53.02, 361.86, 48.64, 367.92, 48.64, 377.68, 50.66, 384.41, 59.42, 388.79, 63.12, 390.81, 69.52, 390.81, 74.23, 387.78, 73.22, 388.79, 78.94, 390.13, 81.3, 394.17, 84.33, 412.33, 91.71, 422.43, 105.18, 431.18, 122.32, 439.93, 145.21, 441.95, 163.64, 432.53, 184.17, 425.79, 197.3, 426.47, 205.04, 426.8, 208.41, 427.14, 210.77, 428.15, 213.8, 426.8, 215.81, 425.12, 218.84, 422.76, 219.18, 419.4, 217.5, 416.37, 217.5, 414.68, 216.82, 414.68, 215.81, 413.34, 209.76, 413.0, 206.05, 411.99, 207.06, 402.9, 216.49, 394.49, 219.52, 387.75, 220.82, 385.06, 219.81, 385.73, 229.57, 382.37, 242.0, 378.33, 255.81, 375.3, 262.88, 374.63, 269.27, 372.94, 272.64, 366.88, 276.0, 359.14, 274.99, 354.76, 274.99, 358.8, 272.3, 359.14, 266.92, 361.16, 257.83, 360.15, 244.02, 361.5, 233.93, 363.18, 227.53, 363.18, 224.16, 360.82, 225.51, 357.12, 233.25, 349.04, 239.65, 341.64, 247.39, 336.25, 258.84, 333.56, 267.92, 329.52, 265.23, 326.49, 264.9, 318.07, 262.54, 312.69, 258.5], [420.0, 148.4, 423.11, 153.06, 424.0, 156.4, 422.67, 161.28, 421.11, 169.94, 420.22, 173.5, 420.0, 169.72, 420.67, 164.39, 419.78, 160.17, 419.78, 156.4, 419.56, 152.84, 419.56, 149.95, 419.56, 147.29, 420.89, 149.29]], "area": 16198.820799999996, "iscrowd": 0, "image_id": 21049, "bbox": [289.17, 48.64, 152.78, 227.36], "category_id": 1, "id": 428703}, {"segmentation": [[196.47, 425.15, 144.3, 467.84, 140.74, 478.51, 144.3, 485.62, 139.55, 491.55, 136.0, 499.85, 136.0, 515.27, 131.25, 518.83, 124.14, 516.45, 113.47, 508.15, 105.17, 499.85, 93.31, 473.76, 105.17, 470.21, 138.37, 447.68, 158.53, 407.36, 178.69, 380.08, 169.2, 367.04, 151.41, 380.08, 147.86, 357.55, 133.63, 374.16, 73.15, 321.98, 87.38, 307.75, 76.71, 295.89, 73.15, 279.29, 68.4, 266.24, 66.03, 247.27, 86.19, 273.36, 76.71, 249.64, 71.32, 242.34, 76.34, 192.14, 89.39, 178.08, 92.41, 175.07, 77.34, 160.01, 65.3, 152.98, 58.27, 153.98, 66.3, 141.93, 58.27, 139.93, 54.25, 122.86, 62.28, 122.86, 59.27, 112.82, 69.31, 99.76, 91.4, 83.7, 82.37, 76.67, 102.45, 80.68, 124.54, 92.73, 150.64, 116.83, 151.65, 145.95, 164.7, 141.93, 245.03, 160.01, 246.03, 168.04, 268.12, 172.06, 321.34, 227.28, 341.42, 302.59, 336.4, 291.54, 330.38, 298.57, 331.38, 277.49, 309.29, 283.51, 311.3, 277.49, 315.32, 267.45, 303.27, 237.32, 301.26, 227.28, 249.05, 195.15, 242.02, 198.16, 200.85, 187.12, 188.8, 217.24, 181.77, 268.45, 180.77, 280.5, 200.85, 308.61, 230.97, 333.72, 230.97, 429.11, 243.02, 458.22, 245.03, 465.25, 266.11, 465.25, 268.12, 477.3, 292.22, 494.37, 272.14, 512.45, 238.0, 504.41, 205.87, 494.37, 194.82, 484.33, 210.89, 468.27]], "area": 47341.371750000006, "iscrowd": 0, "image_id": 532414, "bbox": [54.25, 76.67, 287.17, 442.16], "category_id": 1, "id": 428892}, {"segmentation": [[489.02, 62.08, 472.97, 63.77, 469.59, 67.99, 468.75, 76.44, 462.84, 81.5, 452.7, 237.75, 454.39, 247.04, 461.15, 252.96, 472.13, 262.25, 478.04, 264.78, 490.71, 268.16, 498.31, 268.16, 500.0, 11.4, 496.62, 11.4, 494.93, 19.85, 491.55, 35.05, 491.55, 43.5, 490.71, 56.17, 488.18, 62.08]], "area": 8460.332050000003, "iscrowd": 0, "image_id": 83787, "bbox": [452.7, 11.4, 47.3, 256.76], "category_id": 1, "id": 429336}, {"segmentation": [[283.46, 215.6, 286.05, 208.37, 290.69, 203.2, 294.83, 200.1, 297.41, 198.56, 297.41, 192.36, 291.21, 189.26, 287.6, 186.68, 287.08, 185.13, 285.53, 176.86, 287.6, 173.76, 291.21, 169.63, 296.38, 163.43, 298.44, 159.82, 298.96, 153.62, 298.96, 145.87, 298.96, 141.74, 295.34, 132.44, 291.21, 126.24, 276.75, 121.08, 272.1, 120.56, 267.97, 116.94, 264.35, 115.39, 261.25, 114.36, 255.05, 112.81, 251.95, 111.78, 249.89, 110.74, 247.31, 109.2, 243.69, 106.61, 241.62, 105.06, 233.88, 101.45, 232.84, 100.41, 226.13, 96.8, 219.93, 103.0, 220.45, 108.16, 227.68, 110.23, 228.71, 111.78, 231.29, 115.91, 234.39, 120.56, 239.04, 123.14, 239.04, 123.14, 241.62, 123.14, 243.17, 128.31, 246.27, 133.99, 247.31, 137.6, 249.37, 140.19, 248.86, 146.39, 249.37, 151.03, 249.89, 153.62, 249.89, 154.13, 249.37, 158.78, 246.27, 163.43, 244.72, 166.01, 242.14, 168.6, 238.01, 171.18, 236.46, 172.73, 235.94, 176.86, 233.88, 186.68, 234.39, 188.22, 236.46, 188.22, 236.98, 188.22, 240.59, 188.22, 246.79, 180.48, 249.37, 176.34, 252.47, 172.73, 256.09, 182.54, 257.64, 187.19, 261.25, 190.29, 264.35, 195.46, 265.38, 198.04, 267.97, 203.72, 267.97, 206.3, 264.87, 206.3, 261.77, 206.3, 261.77, 212.5, 265.38, 213.53, 272.1, 216.12, 277.26, 217.67, 284.5, 217.67, 286.05, 216.12]], "area": 4521.916099999999, "iscrowd": 0, "image_id": 431554, "bbox": [219.93, 96.8, 79.03, 120.87], "category_id": 1, "id": 429688}, {"segmentation": [[347.33, 314.79, 362.43, 323.42, 374.29, 326.65, 376.45, 328.81, 393.71, 336.36, 414.2, 343.91, 416.36, 376.27, 421.75, 394.61, 424.99, 409.71, 428.22, 423.73, 428.22, 432.36, 427.15, 439.91, 423.91, 444.22, 416.36, 445.3, 346.25, 436.67, 346.25, 432.36, 346.25, 432.36, 344.09, 428.04, 344.09, 428.04, 324.67, 417.26, 324.67, 417.26, 323.6, 417.26, 317.12, 405.39, 305.26, 395.69, 302.02, 392.45, 302.02, 392.45, 299.87, 437.75, 298.79, 446.38, 297.71, 451.78, 275.06, 456.09, 261.03, 451.78, 240.54, 450.7, 240.54, 445.3, 257.8, 429.12, 267.51, 419.42, 269.66, 412.94, 270.74, 391.37, 266.43, 379.51, 266.43, 364.4, 265.35, 353.62, 252.4, 342.83, 250.25, 321.26, 250.25, 314.79, 255.64, 305.08, 298.79, 305.08, 321.44, 297.53, 319.28, 280.27, 376.45, 321.26]], "area": 19914.470199999992, "iscrowd": 0, "image_id": 184877, "bbox": [240.54, 280.27, 187.68, 175.82], "category_id": 1, "id": 430328}, {"segmentation": [[330.79, 76.9, 340.85, 76.9, 359.55, 98.48, 360.99, 85.53, 363.87, 85.53, 365.3, 102.79, 362.43, 109.98, 378.25, 160.32, 391.19, 196.27, 412.76, 235.11, 424.27, 223.6, 435.78, 223.6, 441.53, 196.27, 460.22, 213.53, 486.11, 223.6, 496.18, 253.8, 481.8, 281.13, 464.54, 285.44, 455.91, 291.2, 461.66, 311.33, 455.91, 354.48, 448.72, 386.12, 431.46, 397.62, 425.71, 422.07, 432.9, 446.52, 434.34, 468.09, 411.33, 515.56, 395.51, 570.21, 418.52, 598.97, 437.21, 636.36, 395.51, 637.8, 362.43, 607.6, 346.61, 588.9, 330.79, 594.66, 330.79, 624.86, 342.29, 639.24, 304.9, 637.8, 266.07, 567.33, 254.56, 565.89, 268.94, 521.31, 316.4, 455.15, 326.47, 436.45, 327.91, 410.57, 342.29, 360.23, 376.81, 282.57, 382.56, 281.13, 371.06, 262.43, 373.93, 246.61, 353.8, 190.52, 337.98, 121.49, 326.47, 98.48]], "area": 52606.77354999999, "iscrowd": 0, "image_id": 66003, "bbox": [254.56, 76.9, 241.62, 562.34], "category_id": 1, "id": 430590}, {"segmentation": [[175.07, 311.56, 154.98, 363.22, 162.15, 403.4, 167.89, 462.23, 163.59, 526.8, 173.63, 561.24, 157.85, 585.64, 139.19, 601.42, 167.89, 608.6, 186.55, 602.86, 190.85, 597.12, 190.85, 562.68, 193.72, 475.14, 209.51, 397.66, 203.77, 457.93, 208.07, 515.32, 196.59, 545.46, 195.16, 571.29, 203.77, 581.33, 225.29, 578.46, 232.47, 571.29, 232.47, 532.54, 232.47, 498.1, 239.64, 466.54, 245.38, 434.97, 256.86, 396.22, 258.3, 333.08, 259.73, 268.51, 276.95, 323.04, 279.82, 367.52, 271.21, 383.31, 275.52, 401.96, 288.43, 389.05, 294.17, 371.83, 294.17, 302.95, 272.65, 225.46, 262.6, 209.67, 249.69, 199.63, 241.08, 199.63, 239.64, 195.32, 241.08, 165.19, 243.95, 155.14, 241.08, 142.23, 229.6, 135.06, 202.33, 136.49, 193.72, 152.28, 193.72, 191.02, 192.29, 201.06, 159.28, 216.85, 150.67, 269.94, 134.89, 311.56, 124.84, 357.48, 123.41, 371.83, 121.97, 389.05, 137.76, 384.74, 139.19, 383.31, 144.93, 368.96, 144.93, 363.22, 149.24, 327.34, 172.2, 291.47]], "area": 40436.3986, "iscrowd": 0, "image_id": 36881, "bbox": [121.97, 135.06, 172.2, 473.54], "category_id": 1, "id": 430761}, {"segmentation": [[199.37, 508.17, 200.81, 519.73, 200.81, 526.95, 208.04, 550.07, 213.81, 557.29, 216.7, 558.74, 218.15, 563.07, 258.6, 573.18, 268.71, 567.4, 271.6, 567.4, 267.27, 547.18, 267.27, 537.07, 275.94, 512.51, 287.49, 489.39, 293.27, 467.72, 293.27, 451.83, 294.72, 435.94, 288.94, 379.59, 287.49, 363.7, 288.94, 346.37, 297.61, 327.58, 307.72, 305.91, 316.39, 287.13, 317.83, 284.24, 323.61, 284.24, 339.5, 292.91, 348.17, 307.36, 353.95, 320.36, 359.73, 342.03, 359.73, 343.48, 372.73, 343.48, 374.18, 330.47, 374.18, 320.36, 374.18, 303.02, 372.73, 292.91, 366.95, 279.91, 362.62, 259.68, 362.62, 238.01, 365.51, 227.9, 369.84, 209.12, 381.4, 199.01, 387.18, 191.78, 408.85, 173.0, 401.63, 168.67, 397.29, 148.44, 394.4, 136.88, 384.29, 129.66, 372.73, 125.33, 352.51, 120.99, 325.06, 134.0, 322.17, 144.11, 322.17, 155.67, 309.16, 158.56, 303.39, 158.56, 271.6, 173.0, 225.37, 191.78, 195.03, 219.23, 187.81, 251.02, 182.03, 266.91, 179.14, 277.02, 173.36, 294.36, 167.58, 316.03, 158.92, 342.03, 171.92, 360.81, 177.7, 373.81, 189.26, 389.71, 189.26, 402.71, 192.14, 415.71, 195.03, 428.71, 153.14, 467.72, 148.8, 482.17, 148.8, 493.72, 137.25, 524.06, 145.91, 522.62, 157.47, 516.84, 170.47, 516.84, 186.37, 515.4]], "area": 56234.438850000006, "iscrowd": 0, "image_id": 128770, "bbox": [137.25, 120.99, 271.6, 452.19], "category_id": 1, "id": 430854}, {"segmentation": [[538.98, 135.4, 558.46, 105.58, 555.67, 154.48, 559.65, 155.67, 583.1, 154.48, 626.83, 183.9, 640.0, 156.07, 640.0, 1.02, 464.63, 0.0, 461.05, 46.34, 464.63, 85.7, 467.02, 96.83]], "area": 24513.17295, "iscrowd": 0, "image_id": 575421, "bbox": [461.05, 0.0, 178.95, 183.9], "category_id": 1, "id": 431575}, {"segmentation": [[445.41, 329.87, 473.82, 314.17, 483.54, 305.2, 488.78, 293.23, 515.69, 279.78, 527.09, 277.94, 528.38, 272.36, 526.66, 268.71, 525.59, 265.7, 523.23, 263.13, 523.87, 260.34, 525.8, 256.47, 527.09, 253.68, 527.74, 241.44, 533.32, 232.42, 540.19, 230.06, 548.35, 228.56, 555.43, 231.14, 565.09, 237.58, 567.24, 246.38, 568.74, 253.9, 571.54, 253.9, 570.03, 262.05, 565.09, 272.79, 557.79, 278.16, 562.09, 283.52, 567.24, 282.02, 571.97, 288.25, 576.26, 291.9, 586.99, 298.12, 591.5, 306.93, 592.58, 311.01, 597.52, 324.1, 598.16, 347.72, 596.44, 353.52, 593.22, 355.88, 567.03, 358.03, 552.21, 358.67, 546.84, 359.75, 529.02, 350.94, 511.42, 341.71, 499.18, 335.48, 477.49, 331.62]], "area": 9537.012049999998, "iscrowd": 0, "image_id": 164208, "bbox": [445.41, 228.56, 152.75, 131.19], "category_id": 1, "id": 431697}, {"segmentation": [[338.76, 236.66, 356.46, 226.54, 362.36, 212.22, 364.04, 181.04, 339.61, 146.49, 323.6, 139.75, 316.85, 130.48, 310.11, 111.94, 313.48, 105.2, 321.91, 119.52, 331.18, 122.05, 336.24, 113.62, 332.02, 101.83, 336.24, 98.46, 342.13, 113.62, 349.72, 126.26, 351.4, 134.69, 365.73, 151.54, 369.1, 132.16, 375.84, 122.05, 375.84, 111.94, 387.64, 100.98, 377.53, 84.13, 365.73, 89.19, 361.52, 86.66, 358.15, 63.06, 351.4, 59.69, 355.62, 50.42, 351.4, 47.89, 348.03, 43.68, 342.98, 41.15, 339.61, 38.62, 357.3, 30.2, 349.72, 20.93, 351.4, 4.92, 416.29, 0.7, 436.52, 19.24, 442.42, 25.98, 434.83, 32.72, 433.15, 45.37, 444.1, 82.44, 446.63, 105.2, 460.11, 133.85, 465.17, 178.51, 469.38, 240.03, 474.44, 293.96, 472.75, 303.23, 459.27, 309.97, 461.8, 369.8, 369.94, 369.8, 370.79, 300.7, 358.99, 296.49, 353.09, 280.48, 340.45, 261.1, 337.08, 243.4, 342.13, 235.81]], "area": 36687.92195, "iscrowd": 0, "image_id": 453734, "bbox": [310.11, 0.7, 164.33, 369.1], "category_id": 1, "id": 431936}, {"segmentation": [[246.35, 366.77, 248.83, 339.19, 253.48, 327.72, 249.76, 325.24, 249.76, 319.04, 245.11, 310.06, 247.28, 298.59, 249.45, 286.81, 257.2, 279.38, 262.77, 277.83, 257.2, 271.32, 256.89, 264.5, 258.44, 256.75, 263.39, 253.04, 274.55, 250.87, 277.34, 257.99, 279.82, 267.91, 275.79, 275.97, 284.16, 280.62, 292.52, 289.6, 295.93, 311.92, 292.83, 322.45, 289.42, 339.5, 287.88, 348.79, 285.4, 368.32, 286.33, 374.82, 271.76, 373.89, 268.97, 364.29, 266.8, 375.0, 247.9, 375.0]], "area": 4474.419500000001, "iscrowd": 0, "image_id": 453734, "bbox": [245.11, 250.87, 50.82, 124.13], "category_id": 1, "id": 432664}, {"segmentation": [[149.7, 351.23, 187.13, 356.03, 230.31, 356.03, 245.67, 351.23, 271.58, 343.55, 271.58, 355.07, 261.98, 400.17, 257.18, 417.44, 264.86, 425.89, 203.44, 425.89, 176.57, 391.34, 153.54, 354.88], [153.54, 79.46, 249.51, 59.31, 255.26, 66.98, 245.67, 76.58, 241.83, 84.26, 240.87, 95.77, 234.15, 100.57, 224.56, 110.17, 224.56, 112.09, 245.67, 124.56, 251.43, 141.83, 257.18, 164.87, 261.02, 174.46, 257.18, 185.98, 257.18, 206.13, 247.59, 194.62, 231.27, 162.95, 214.96, 140.88, 200.57, 135.12, 184.25, 138.0, 176.57, 148.55, 158.34, 185.02, 150.66, 209.01, 140.11, 208.05, 138.19, 225.32, 136.27, 233.0, 119.0, 240.68, 99.8, 225.32, 109.4, 186.94, 120.91, 145.67, 133.39, 114.01, 149.7, 104.41, 150.66, 82.34, 153.54, 80.42], [183.29, 158.15, 157.38, 209.97, 167.94, 229.16, 186.17, 244.52, 195.77, 241.64, 214.0, 244.52, 226.48, 248.36, 237.03, 221.49, 241.83, 211.89, 230.31, 187.9, 225.52, 173.5, 224.56, 169.66, 229.35, 162.95, 226.48, 148.55, 199.61, 133.2, 183.29, 153.35]], "area": 25324.244650000004, "iscrowd": 0, "image_id": 361661, "bbox": [99.8, 59.31, 171.78, 366.58], "category_id": 1, "id": 433116}, {"segmentation": [[374.22, 234.13, 374.22, 234.13, 356.95, 230.29, 354.07, 215.9, 338.72, 186.15, 331.04, 163.12, 312.81, 159.29, 312.81, 159.29, 306.1, 166.96, 292.66, 161.2, 276.35, 172.72, 233.17, 188.07, 233.17, 188.07, 219.74, 205.34, 201.51, 199.59, 205.34, 186.15, 262.92, 145.85, 324.33, 110.35, 348.32, 105.55, 331.04, 66.21, 339.68, 47.98, 357.91, 33.58, 359.83, 33.58, 394.38, 43.18, 395.33, 77.72, 391.5, 102.67, 431.8, 119.94, 508.56, 143.93, 541.19, 163.12, 561.34, 158.33, 577.65, 167.92, 581.49, 184.23, 569.97, 178.48, 553.66, 182.31, 520.08, 169.84, 474.98, 160.24, 474.98, 160.24, 474.98, 163.12, 426.04, 168.88, 436.6, 198.63, 452.91, 225.49, 480.73, 286.91, 518.16, 279.23, 518.16, 280.19, 557.5, 273.47, 557.5, 273.47, 566.13, 261.0, 604.52, 280.19, 619.87, 308.98, 611.23, 312.81, 571.89, 303.22, 521.04, 309.93, 463.46, 326.25, 443.31, 318.57, 435.64, 307.06, 433.72, 319.53, 499.93, 335.84, 521.04, 349.28, 493.21, 392.46, 475.94, 391.5, 478.82, 366.55, 478.82, 366.55, 460.58, 343.52, 434.68, 338.72, 434.68, 338.72, 415.49, 350.24, 381.9, 342.56, 370.39, 323.37, 368.47, 269.63, 376.14, 234.13]], "area": 41393.82154999999, "iscrowd": 0, "image_id": 2446, "bbox": [201.51, 33.58, 418.36, 358.88], "category_id": 1, "id": 433143}, {"segmentation": [[277.51, 273.51, 299.72, 272.6, 293.37, 260.37, 299.72, 234.07, 300.17, 216.4, 301.98, 209.14, 308.78, 206.42, 307.84, 168.97, 309.2, 157.64, 309.2, 150.39, 306.93, 144.04, 304.66, 139.06, 306.93, 135.43, 310.55, 126.82, 305.57, 120.02, 299.68, 116.39, 291.97, 116.85, 287.89, 125.46, 290.61, 128.63, 286.98, 136.34, 280.19, 146.31, 278.37, 160.36, 275.65, 168.52, 275.2, 190.28, 276.11, 203.42, 282.9, 219.29, 278.37, 236.51, 277.92, 259.63]], "area": 3772.554549999999, "iscrowd": 0, "image_id": 245780, "bbox": [275.2, 116.39, 35.35, 157.12], "category_id": 1, "id": 433313}, {"segmentation": [[12.94, 630.03, 2.88, 412.86, 34.52, 398.48, 11.51, 283.42, 12.94, 166.93, 61.84, 116.59, 136.63, 79.2, 202.79, 76.32, 250.25, 95.02, 286.2, 95.02, 297.71, 120.9, 327.91, 172.68, 372.49, 231.65, 379.69, 315.06, 392.63, 369.71, 425.0, 385.53, 419.96, 631.47]], "area": 199033.8317, "iscrowd": 0, "image_id": 348279, "bbox": [2.88, 76.32, 422.12, 555.15], "category_id": 1, "id": 433411}, {"segmentation": [[544.72, 351.46, 531.78, 311.55, 528.54, 299.69, 544.72, 283.51, 531.78, 251.15, 520.99, 241.44, 520.99, 216.63, 550.11, 216.63, 549.03, 230.65, 587.87, 267.33, 592.18, 292.13, 573.84, 308.31, 559.82, 311.55, 576.0, 357.93, 538.25, 359.01]], "area": 5404.4587, "iscrowd": 0, "image_id": 524522, "bbox": [520.99, 216.63, 71.19, 142.38], "category_id": 1, "id": 433835}, {"segmentation": [[320.88, 356.6, 307.15, 299.58, 307.15, 259.46, 308.21, 229.9, 325.1, 202.45, 345.16, 164.44, 363.11, 162.33, 366.28, 179.22, 366.28, 201.39, 383.17, 208.79, 404.29, 221.45, 426.46, 225.68, 433.85, 239.4, 374.72, 243.63, 356.78, 276.36, 364.17, 284.8, 377.89, 299.58, 370.5, 325.98, 355.72, 346.04]], "area": 11138.303850000004, "iscrowd": 0, "image_id": 525360, "bbox": [307.15, 162.33, 126.7, 194.27], "category_id": 1, "id": 434129}, {"segmentation": [[205.34, 50.66, 189.26, 63.81, 173.19, 76.96, 171.73, 85.73, 167.35, 114.95, 164.42, 131.03, 171.73, 148.56, 174.65, 166.1, 174.65, 173.4, 177.58, 180.71, 171.73, 180.71, 170.27, 179.25, 161.5, 177.79, 157.12, 182.17, 145.43, 182.17, 138.12, 195.32, 129.36, 193.86, 119.13, 207.01, 107.44, 230.39, 97.21, 246.46, 97.21, 261.07, 91.37, 272.76, 89.9, 249.38, 76.75, 268.38, 82.6, 285.91, 88.44, 291.76, 98.67, 299.06, 110.36, 303.45, 126.43, 307.83, 145.43, 313.68, 152.74, 315.14, 171.73, 339.98, 170.27, 361.89, 170.27, 373.58, 161.5, 392.58, 157.12, 395.5, 155.66, 402.81, 154.2, 413.04, 162.96, 424.73, 176.11, 442.26, 203.88, 458.33, 231.64, 505.09, 246.25, 550.39, 252.1, 581.07, 287.16, 635.14, 287.16, 639.52, 363.15, 640.0, 379.22, 640.0, 382.14, 585.46, 348.53, 534.32, 344.15, 516.78, 338.31, 506.55, 328.08, 499.25, 323.69, 490.48, 309.08, 481.71, 333.92, 461.26, 335.38, 451.03, 344.15, 434.95, 351.46, 427.65, 352.92, 408.65, 347.07, 404.27, 379.22, 399.89, 395.29, 388.2, 401.14, 376.51, 408.44, 357.51, 425.98, 347.28, 423.05, 338.52, 421.59, 326.83, 415.75, 319.52, 409.9, 309.29, 401.14, 303.45, 385.06, 297.6, 402.6, 288.84, 390.91, 272.76, 379.22, 256.69, 363.15, 246.46, 352.92, 239.16, 336.84, 239.16, 332.46, 236.23, 317.85, 242.08, 320.77, 224.54, 325.16, 207.01, 329.54, 189.47, 345.61, 152.95, 338.31, 138.33, 328.08, 135.41, 323.69, 136.87, 322.23, 103.26, 316.39, 72.58, 298.85, 57.97, 275.47, 46.28, 265.25, 46.28, 255.02, 40.43, 238.95, 40.43, 224.33, 41.89, 217.03, 44.82, 211.18, 52.12, 203.88, 55.05, 198.03, 62.35]], "area": 105083.45195, "iscrowd": 0, "image_id": 422193, "bbox": [76.75, 40.43, 349.23, 599.57], "category_id": 1, "id": 434795}, {"segmentation": [[608.89, 166.04, 604.88, 175.7, 590.12, 172.23, 588.48, 173.51, 587.75, 174.97, 589.39, 176.79, 590.67, 178.98, 593.4, 180.62, 596.13, 178.61, 601.42, 179.89, 608.71, 179.89, 610.71, 177.34, 611.62, 181.16, 611.8, 184.62, 619.28, 180.98, 621.83, 179.34, 621.46, 177.15, 620.73, 174.97, 620.92, 171.5, 621.64, 168.41, 626.93, 166.58, 627.11, 166.22, 620.37, 158.38, 619.09, 156.74, 622.92, 152.73, 622.01, 151.64, 617.27, 151.64, 616.54, 151.09, 615.27, 146.9, 611.8, 145.26, 606.15, 146.17, 603.42, 148.18, 603.24, 150.37, 602.69, 152.19, 600.69, 151.82, 601.23, 153.65, 604.51, 154.01, 604.7, 156.38, 604.51, 157.29, 606.15, 158.2, 607.07, 160.02, 608.71, 160.21, 609.98, 161.66, 608.16, 165.13]], "area": 626.4840000000002, "iscrowd": 0, "image_id": 403627, "bbox": [587.75, 145.26, 39.36, 39.36], "category_id": 1, "id": 435054}, {"segmentation": [[63.28, 631.37, 63.28, 503.37, 73.35, 422.83, 89.17, 373.93, 70.47, 376.81, 58.97, 372.49, 53.21, 335.1, 61.84, 310.65, 79.1, 231.55, 80.54, 212.85, 149.57, 191.28, 165.39, 168.27, 145.26, 103.55, 148.13, 76.22, 171.15, 41.71, 202.79, 30.2, 227.24, 46.02, 250.25, 58.97, 260.31, 84.85, 251.69, 132.31, 230.11, 151.01, 217.17, 181.21, 205.66, 191.28, 224.36, 205.66, 240.18, 218.61, 251.69, 230.11, 251.69, 251.69], [69.03, 631.37, 201.35, 628.49, 212.85, 592.54, 220.04, 503.37, 228.67, 396.94, 251.69, 241.62]], "area": 82584.19355, "iscrowd": 0, "image_id": 314944, "bbox": [53.21, 30.2, 207.1, 601.17], "category_id": 1, "id": 435175}, {"segmentation": [[416.95, 224.07, 425.13, 228.69, 434.72, 225.49, 437.92, 219.1, 440.05, 214.48, 442.54, 206.66, 446.09, 204.53, 442.18, 204.53, 441.82, 199.2, 439.69, 199.55, 440.4, 193.87, 441.82, 189.25, 442.89, 185.34, 446.09, 182.5, 450.35, 181.79, 456.75, 183.56, 460.3, 193.16, 459.24, 196.36, 463.14, 198.84, 473.09, 188.18, 480.91, 177.52, 484.82, 175.75, 490.5, 178.95, 490.15, 183.56, 485.17, 183.92, 472.03, 204.53, 468.12, 211.63, 462.79, 252.5, 457.81, 258.54, 446.44, 261.38, 438.27, 259.25, 413.4, 251.79, 410.2, 264.93, 399.9, 277.72, 389.24, 278.08, 380.0, 274.88, 380.36, 266.0, 396.34, 265.29, 403.1, 256.4, 408.78, 244.68, 441.47, 238.64, 442.18, 230.47, 427.97, 236.86, 418.02, 236.15, 415.89, 234.37]], "area": 3174.2716000000005, "iscrowd": 0, "image_id": 497709, "bbox": [380.0, 175.75, 110.5, 102.33], "category_id": 1, "id": 435346}, {"segmentation": [[375.0, 280.67, 381.74, 235.17, 379.21, 200.62, 373.31, 104.55, 387.64, 71.69, 410.39, 60.73, 408.71, 33.76, 416.29, 18.6, 434.83, 17.75, 444.94, 21.97, 452.53, 66.63, 455.9, 74.21, 473.6, 88.54, 460.11, 214.1, 453.37, 296.69, 454.21, 342.19, 436.52, 328.71, 426.4, 303.43, 426.4, 254.55, 421.35, 207.36, 411.24, 230.11, 399.44, 269.72, 388.48, 295.84, 385.11, 305.11, 362.36, 308.48, 353.93, 302.58, 362.36, 282.36]], "area": 20870.407150000006, "iscrowd": 0, "image_id": 340412, "bbox": [353.93, 17.75, 119.67, 324.44], "category_id": 1, "id": 435504}, {"segmentation": [[593.09, 288.86, 600.54, 283.54, 601.25, 276.45, 600.18, 267.59, 599.12, 261.21, 598.41, 255.54, 600.18, 243.49, 602.31, 236.4, 603.73, 228.96, 603.37, 227.54, 599.12, 227.54, 599.12, 222.93, 600.54, 216.2, 603.02, 209.82, 605.85, 207.69, 609.4, 206.98, 610.11, 205.56, 609.04, 204.15, 609.4, 198.83, 611.17, 194.57, 614.36, 191.74, 616.84, 191.74, 619.32, 193.16, 621.45, 196.35, 621.45, 199.18, 618.97, 202.73, 617.2, 204.85, 617.91, 206.27, 620.74, 208.75, 628.54, 213.72, 634.92, 219.39, 637.05, 222.22, 637.4, 223.64, 633.86, 227.54, 629.25, 229.31, 623.93, 229.67, 623.58, 231.44, 621.1, 239.59, 619.68, 244.55, 618.26, 247.74, 617.2, 254.83, 616.84, 260.15, 622.16, 259.79, 625.0, 257.31, 627.83, 256.6, 629.6, 259.44, 627.12, 268.66, 624.64, 269.72, 623.22, 264.76, 622.87, 264.05, 615.07, 264.05, 607.27, 264.05, 607.63, 270.07, 605.15, 277.52, 605.15, 282.48, 606.21, 286.38, 607.27, 290.28, 596.64, 291.7, 592.39, 290.99, 592.39, 288.86]], "area": 1746.5824500000022, "iscrowd": 0, "image_id": 333324, "bbox": [592.39, 191.74, 45.01, 99.96], "category_id": 1, "id": 436393}, {"segmentation": [[38.16, 328.39, 59.12, 328.39, 76.33, 310.43, 161.64, 328.39, 172.86, 291.72, 196.81, 276.0, 192.32, 253.55, 220.0, 236.34, 236.47, 234.85, 242.45, 283.49, 228.24, 310.43, 233.47, 319.41, 299.33, 324.64, 284.36, 312.67, 261.16, 290.97, 261.91, 240.08, 261.16, 214.64, 237.96, 199.68, 243.2, 187.7, 283.61, 182.46, 307.56, 187.7, 373.41, 160.01, 387.63, 167.5, 401.1, 145.8, 383.14, 133.82, 314.29, 159.27, 269.39, 145.05, 255.92, 137.57, 267.15, 134.57, 282.11, 134.57, 283.61, 107.63, 294.09, 101.65, 293.34, 94.16, 273.13, 71.71, 255.18, 70.97, 237.22, 83.69, 220.0, 103.89, 198.3, 106.88, 206.53, 91.92, 184.83, 91.17, 170.62, 102.39, 164.63, 110.63, 170.62, 127.09, 172.11, 143.55, 146.67, 177.23, 124.22, 213.14, 128.71, 250.56, 137.69, 270.02, 135.44, 297.7, 74.08, 289.47, 52.38, 281.24, 41.16, 283.49]], "area": 30706.550649999986, "iscrowd": 0, "image_id": 353009, "bbox": [38.16, 70.97, 362.94, 257.42], "category_id": 1, "id": 436648}, {"segmentation": [[402.81, 240.73, 404.81, 240.16, 407.66, 240.16, 413.93, 243.01, 420.48, 245.0, 429.32, 244.43, 431.88, 243.29, 430.74, 237.31, 425.9, 235.31, 422.19, 233.32, 420.2, 227.9, 422.48, 227.9, 425.04, 226.76, 427.32, 226.76, 433.59, 228.47, 436.44, 219.06, 439.58, 217.64, 437.58, 212.79, 433.31, 210.51, 432.74, 206.81, 432.74, 202.25, 433.02, 195.98, 433.31, 191.99, 438.73, 188.85, 442.72, 188.85, 447.85, 189.14, 452.41, 195.98, 452.12, 204.81, 449.56, 209.09, 449.27, 211.37, 460.1, 217.35, 463.24, 225.62, 464.38, 238.16, 460.1, 246.14, 457.54, 250.99, 457.82, 257.26, 437.87, 258.12, 433.59, 258.4, 432.74, 253.55, 422.76, 252.7, 416.21, 249.85, 410.79, 250.13, 405.66, 250.13, 402.81, 249.56, 400.24, 244.15, 403.67, 240.73]], "area": 1983.8822000000011, "iscrowd": 0, "image_id": 549519, "bbox": [400.24, 188.85, 64.14, 69.55], "category_id": 1, "id": 437002}, {"segmentation": [[162.96, 227.69, 159.6, 237.78, 139.43, 252.35, 89.0, 272.52, 69.95, 281.48, 69.95, 296.05, 47.54, 359.92, 38.57, 395.78, 114.77, 316.22, 121.5, 317.34, 175.29, 449.57, 245.88, 465.26, 259.33, 469.74, 264.93, 465.26, 294.07, 479.83, 309.76, 484.31, 294.07, 501.12, 277.26, 494.39, 264.93, 491.03, 243.64, 496.64, 242.52, 510.08, 263.81, 526.89, 295.19, 535.86, 314.24, 525.77, 323.21, 504.48, 317.6, 485.43, 346.74, 487.67, 389.32, 461.9, 379.24, 442.85, 383.72, 419.31, 378.11, 402.51, 378.11, 367.77, 335.53, 272.52, 273.9, 246.74, 241.4, 232.17, 233.56, 209.76, 247.0, 183.99, 251.49, 151.49, 247.0, 98.82, 230.2, 88.74, 215.63, 70.81, 203.3, 60.72, 177.53, 66.33, 165.2, 62.96, 162.96, 76.41, 150.63, 90.98, 139.43, 107.79, 133.82, 141.41, 139.43, 167.18, 150.63, 180.63, 154.0, 204.16, 160.72, 229.93], [312.9, 532.84, 313.93, 580.27, 304.65, 609.15, 308.78, 622.55, 314.97, 640.0, 100.48, 640.0, 98.42, 609.15, 98.42, 566.87, 101.52, 543.15, 60.27, 542.12, 49.96, 527.68, 46.86, 500.87, 50.99, 488.5, 29.33, 449.32, 31.4, 434.88, 40.68, 412.2, 64.39, 487.47, 71.61, 502.94, 92.24, 509.12, 109.77, 519.44, 110.8, 523.56, 119.05, 524.59, 120.08, 529.75, 121.11, 530.78, 123.17, 542.12, 201.54, 554.5, 254.13, 527.68, 281.97, 533.87, 298.47, 534.9, 309.81, 530.78]], "area": 98093.83795000004, "iscrowd": 0, "image_id": 433397, "bbox": [29.33, 60.72, 359.99, 579.28], "category_id": 1, "id": 437426}, {"segmentation": [[40.74, 150.66, 7.64, 139.2, 7.64, 118.83, 5.09, 85.73, 12.73, 43.71, 25.46, 34.8, 50.93, 29.71, 98.04, 29.71, 117.14, 34.8, 126.05, 52.63, 129.87, 66.63, 131.14, 83.18, 131.14, 108.65, 124.77, 123.93, 100.58, 139.2, 110.77, 146.84, 67.48, 176.13, 21.64, 232.15, 10.19, 286.9, 0.0, 284.35, 1.27, 181.22]], "area": 18365.36535, "iscrowd": 0, "image_id": 510371, "bbox": [0.0, 29.71, 131.14, 257.19], "category_id": 1, "id": 437728}, {"segmentation": [[156.88, 39.89, 142.8, 48.17, 133.28, 66.38, 118.79, 80.45, 109.27, 101.98, 108.03, 119.78, 149.42, 119.37, 204.07, 118.95, 190.41, 93.29, 171.78, 81.28, 172.19, 62.24, 177.16, 58.1, 177.16, 48.99, 176.74, 46.51, 170.54, 41.96, 162.26, 40.3, 157.29, 40.3]], "area": 4627.6109000000015, "iscrowd": 0, "image_id": 53615, "bbox": [108.03, 39.89, 96.04, 79.89], "category_id": 1, "id": 438251}, {"segmentation": [[525.15, 2.45, 519.21, 29.18, 509.56, 55.91, 490.26, 68.53, 482.09, 67.78, 479.86, 79.66, 474.67, 111.59, 480.61, 101.93, 496.2, 107.13, 497.68, 107.13, 491.0, 122.72, 482.83, 137.57, 470.21, 153.9, 465.76, 172.46, 549.65, 188.05, 560.78, 139.8, 568.95, 63.33, 571.92, 19.53, 575.63, 3.94, 525.15, 3.94], [633.54, 0.0, 638.74, 18.04, 640.0, 37.35, 621.66, 48.48, 617.21, 66.3, 612.01, 93.03, 612.75, 124.95, 610.52, 138.31, 579.34, 140.54, 591.22, 0.23, 632.8, 0.0]], "area": 17940.816299999995, "iscrowd": 0, "image_id": 48451, "bbox": [465.76, 0.0, 174.24, 188.05], "category_id": 1, "id": 438601}, {"segmentation": [[408.16, 359.35, 419.86, 354.75, 425.21, 350.6, 425.87, 336.71, 422.59, 318.45, 420.73, 310.69, 417.34, 306.32, 416.25, 296.91, 413.95, 285.21, 411.87, 274.83, 411.98, 265.32, 411.44, 261.93, 410.02, 257.22, 410.12, 253.18, 409.25, 242.68, 410.89, 235.36, 411.44, 231.2, 412.86, 218.96, 412.31, 216.0, 411.11, 213.49, 410.89, 211.52, 411.76, 209.01, 413.73, 204.63, 416.14, 201.46, 404.55, 198.51, 395.58, 194.25, 396.89, 188.56, 396.79, 186.59, 397.99, 174.68, 399.52, 169.43, 398.64, 168.01, 400.83, 164.73, 406.52, 159.48, 408.92, 159.81, 411.33, 159.91, 414.5, 161.55, 414.61, 157.62, 417.45, 156.63, 418.11, 154.67, 427.29, 153.25, 434.18, 153.35, 437.9, 157.07, 441.18, 162.76, 441.39, 170.96, 442.27, 175.88, 443.36, 180.91, 444.02, 183.86, 444.67, 187.03, 444.67, 189.33, 444.46, 198.18, 445.88, 204.31, 448.39, 209.66, 448.17, 211.08, 448.61, 223.0, 449.81, 231.31, 450.14, 233.06, 451.24, 243.12, 449.92, 243.67, 446.97, 232.3, 445.44, 225.52, 444.24, 223.11, 441.94, 218.41, 441.29, 222.02, 439.97, 227.92, 438.55, 231.31, 438.66, 235.25, 438.11, 238.42, 437.13, 238.2, 436.8, 234.7, 436.04, 234.92, 434.62, 237.0, 433.74, 242.79, 434.4, 245.42, 436.8, 249.57, 438.88, 253.84, 439.54, 255.15, 439.32, 264.77, 433.63, 269.91, 433.3, 273.19, 433.3, 275.81, 434.73, 289.04, 435.82, 298.44, 436.37, 307.41, 438.88, 315.72, 439.75, 318.78, 440.3, 321.3, 440.08, 336.71, 439.86, 342.73, 440.63, 352.46, 442.38, 357.38, 443.25, 360.11, 441.39, 361.86, 414.72, 361.75, 412.31, 361.53, 411.87, 360.55, 407.5, 360.99]], "area": 5726.40275, "iscrowd": 0, "image_id": 501575, "bbox": [395.58, 153.25, 55.66, 208.61], "category_id": 1, "id": 438723}, {"segmentation": [[422.16, 359.8, 422.16, 315.61, 434.49, 233.43, 436.54, 226.25, 416.0, 195.43, 383.13, 181.04, 354.36, 144.06, 327.65, 97.83, 317.38, 76.26, 309.16, 41.33, 336.9, 14.63, 388.26, 2.3, 427.3, 6.41, 460.17, 38.25, 476.61, 106.05, 508.45, 159.47, 534.14, 159.47, 619.4, 196.45, 636.87, 227.27, 638.92, 472.79, 407.78, 471.77, 424.22, 444.03, 391.35, 463.55, 360.53, 464.58, 351.28, 449.16, 351.28, 424.51, 347.17, 410.12, 363.61, 398.83, 408.81, 416.29, 368.75, 375.2, 324.57, 336.16, 289.64, 326.92, 278.35, 308.43, 258.82, 300.21, 262.93, 276.58, 282.46, 273.5, 293.75, 256.04, 310.19, 268.37, 352.31, 288.91, 388.26, 326.92]], "area": 100828.62945, "iscrowd": 0, "image_id": 510371, "bbox": [258.82, 2.3, 380.1, 470.49], "category_id": 1, "id": 439212}, {"segmentation": [[628.2, 393.01, 639.55, 337.31, 628.2, 49.51, 602.41, 4.13, 602.41, 0.0, 3.09, 2.06, 7.22, 29.91, 2.06, 44.36, 3.09, 59.83, 6.19, 81.49, 14.44, 105.22, 15.47, 134.1, 19.6, 165.05, 22.69, 183.61, 22.69, 208.37, 4.13, 237.25, 2.06, 240.35, 1.03, 451.81, 638.52, 451.81, 637.49, 402.3]], "area": 281741.4767, "iscrowd": 0, "image_id": 205309, "bbox": [1.03, 0.0, 638.52, 451.81], "category_id": 1, "id": 439252}, {"segmentation": [[516.82, 279.18, 512.22, 266.39, 501.48, 266.39, 499.94, 264.35, 498.92, 257.19, 496.88, 250.54, 499.43, 241.85, 501.48, 219.86, 501.48, 211.68, 501.99, 199.91, 503.52, 183.04, 503.52, 173.32, 503.52, 168.72, 496.36, 161.56, 489.72, 148.26, 484.6, 140.59, 480.51, 132.92, 478.98, 124.74, 475.4, 123.21, 474.37, 117.07, 475.91, 113.49, 478.98, 112.98, 482.05, 116.56, 486.14, 121.67, 489.2, 129.34, 495.34, 136.5, 497.9, 140.08, 498.92, 142.64, 507.1, 150.31, 513.24, 151.84, 519.89, 155.93, 517.84, 149.8, 516.82, 145.2, 518.87, 141.1, 527.05, 140.08, 531.65, 139.57, 537.27, 141.62, 538.81, 147.24, 538.3, 151.33, 538.3, 157.98, 537.27, 162.07, 543.41, 165.65, 550.57, 173.83, 552.62, 183.55, 555.68, 193.78, 555.68, 199.4, 555.68, 210.14, 555.68, 217.81, 553.64, 222.93, 549.55, 227.53, 548.53, 230.09, 546.48, 236.22, 550.57, 263.32, 549.55, 267.93, 549.04, 276.62, 551.08, 279.18, 550.57, 282.25, 542.39, 282.25, 540.34, 276.62, 534.72, 269.97, 530.63, 266.39, 528.07, 267.93, 526.02, 273.55, 526.02, 279.18]], "area": 6680.600049999997, "iscrowd": 0, "image_id": 189847, "bbox": [474.37, 112.98, 81.31, 169.27], "category_id": 1, "id": 439572}, {"segmentation": [[187.5, 368.89, 177.03, 374.78, 167.2, 397.7, 171.79, 408.18, 184.23, 410.8, 185.54, 405.56, 192.74, 404.9, 203.22, 388.53, 197.98, 376.09, 193.4, 369.54], [203.22, 393.77, 215.01, 416.69, 215.01, 418.66, 215.66, 423.9, 198.64, 423.9, 198.64, 412.76, 194.71, 401.63, 201.91, 397.05], [205.84, 370.85, 212.39, 362.34, 218.28, 359.72, 220.9, 359.07, 213.7, 370.85, 208.46, 382.64, 216.97, 404.9, 228.1, 422.59, 243.17, 422.59, 246.44, 418.66, 233.34, 405.56, 239.89, 391.15, 254.95, 352.52, 255.61, 346.62, 241.2, 318.47, 233.34, 307.33, 235.31, 295.55, 238.58, 285.07, 240.55, 281.14, 250.37, 277.21, 252.33, 269.35, 250.37, 262.15, 245.13, 255.6, 237.27, 255.6, 235.96, 251.02, 239.24, 245.12, 235.31, 233.34, 242.51, 224.82, 243.82, 211.73, 244.48, 207.14, 237.93, 197.97, 235.96, 193.39, 239.24, 188.81, 243.82, 182.91, 248.4, 167.2, 246.44, 158.03, 236.62, 148.86, 224.83, 149.51, 216.32, 156.06, 213.04, 163.27, 212.39, 172.43, 212.39, 180.29, 210.42, 189.46, 200.6, 194.7, 182.92, 201.9, 165.24, 222.2, 155.42, 228.75, 155.42, 229.41, 166.55, 257.56, 169.17, 247.74, 171.13, 239.88, 178.34, 241.19, 182.92, 241.85, 186.85, 255.6, 188.81, 271.32, 186.19, 280.48, 188.81, 285.07, 187.5, 298.16, 191.43, 330.25, 197.33, 331.56, 197.98, 339.42, 192.74, 346.62, 206.49, 376.75], [152.8, 241.19, 151.49, 257.56, 152.8, 271.32, 154.11, 280.48, 148.87, 300.78, 150.18, 307.33, 161.97, 312.57, 170.48, 313.88, 173.1, 304.06, 164.58, 284.41, 165.89, 275.9, 160.66, 266.08, 152.8, 242.5]], "area": 15127.330649999996, "iscrowd": 0, "image_id": 343057, "bbox": [148.87, 148.86, 106.74, 275.04], "category_id": 1, "id": 439973}, {"segmentation": [[507.04, 335.22, 511.58, 331.82, 513.86, 328.98, 516.13, 323.86, 518.97, 317.62, 521.24, 312.5, 524.08, 306.82, 525.78, 300.57, 529.19, 277.28, 529.19, 273.31, 530.33, 267.06, 533.74, 259.68, 536.01, 255.13, 542.26, 243.77, 543.39, 240.36, 546.23, 231.27, 548.51, 225.59, 549.64, 220.48, 549.64, 211.96, 549.64, 209.69, 549.64, 206.85, 549.64, 206.28, 550.21, 202.3, 553.62, 190.94, 555.89, 186.97, 557.03, 183.56, 559.3, 173.9, 559.87, 172.2, 554.19, 161.4, 553.05, 152.32, 551.35, 147.77, 547.94, 142.09, 550.21, 136.98, 545.67, 133.0, 538.85, 129.59, 533.74, 130.73, 529.19, 136.41, 526.92, 140.39, 526.92, 143.8, 528.06, 146.64, 527.49, 154.59, 527.49, 156.86, 525.22, 159.7, 524.65, 161.4, 523.51, 164.24, 518.97, 164.81, 516.7, 167.08, 515.56, 168.22, 513.29, 171.63, 511.02, 176.74, 507.04, 186.4, 506.47, 188.67, 506.47, 198.9, 506.47, 200.03, 506.47, 201.74, 512.15, 201.74, 516.13, 202.87, 514.99, 206.28, 510.45, 211.96, 509.88, 214.23, 508.18, 222.18, 507.04, 230.71, 505.9, 236.39, 504.77, 244.91, 504.2, 250.59, 504.2, 256.84, 504.2, 261.95, 504.77, 268.76, 505.9, 273.88, 503.63, 281.26, 502.49, 284.1, 500.22, 290.35, 501.93, 297.17, 497.38, 306.25, 497.38, 312.5, 497.38, 313.64, 496.25, 315.91, 495.11, 317.62, 493.97, 319.89, 493.41, 321.59, 491.7, 323.86, 489.43, 325.57, 487.73, 328.41, 486.59, 329.54, 486.59, 331.82, 490.0, 331.82, 493.97, 331.82, 495.11, 331.25, 497.38, 336.93, 500.79, 336.36, 505.33, 334.66, 507.61, 333.52]], "area": 6545.547500000003, "iscrowd": 0, "image_id": 280765, "bbox": [486.59, 129.59, 73.28, 207.34], "category_id": 1, "id": 439976}, {"segmentation": [[385.59, 0.0, 355.7, 24.1, 344.14, 43.38, 334.5, 67.48, 343.17, 74.23, 342.21, 79.05, 335.46, 137.85, 335.46, 198.58, 335.46, 211.11, 336.42, 227.5, 334.5, 240.03, 336.42, 252.56, 343.17, 262.2, 349.92, 267.02, 359.56, 270.87, 359.56, 263.16, 356.67, 251.59, 356.67, 243.88, 359.56, 252.56, 362.45, 254.49, 366.31, 250.63, 361.49, 231.35, 355.7, 215.93, 354.74, 198.58, 362.45, 167.73, 367.27, 132.06, 371.13, 126.28, 371.13, 163.87, 374.02, 183.15, 368.23, 211.11, 365.34, 228.46, 367.27, 237.14, 366.97, 260.13, 366.51, 273.81, 368.34, 296.61, 370.16, 313.48, 374.98, 342.69, 372.09, 377.39, 371.13, 403.42, 367.27, 420.77, 423.18, 422.7, 424.14, 404.38, 424.14, 385.1, 426.07, 367.75, 428.96, 349.44, 428.96, 327.27, 434.75, 307.99, 434.75, 305.09, 439.57, 329.19, 441.5, 354.26, 441.5, 371.61, 445.35, 380.28, 445.35, 392.82, 441.5, 413.06, 440.53, 421.73, 491.62, 421.73, 496.44, 389.92, 490.66, 345.58, 490.66, 323.41, 492.59, 294.49, 498.37, 286.78, 501.78, 270.96, 502.24, 257.28, 501.78, 243.15, 501.78, 229.92, 500.87, 218.98, 503.61, 211.23, 505.89, 204.39, 510.9, 211.68, 513.18, 224.91, 513.64, 229.92, 511.36, 239.04, 510.45, 246.34, 507.26, 250.44, 507.26, 253.63, 507.26, 261.84, 506.8, 267.77, 505.43, 274.61, 505.43, 278.26, 505.43, 280.08, 507.26, 280.54, 510.9, 277.8, 513.64, 277.8, 517.29, 281.9, 522.76, 282.82, 527.32, 281.45, 530.51, 274.61, 531.88, 270.51, 534.61, 265.03, 532.79, 256.37, 530.51, 248.62, 530.05, 238.59, 530.97, 230.38, 530.51, 223.54, 534.16, 201.2, 535.07, 186.15, 535.07, 174.75, 532.79, 164.72, 531.88, 156.05, 530.05, 135.99, 527.77, 129.15, 529.14, 113.65, 529.14, 94.5, 529.14, 89.48, 532.33, 88.11, 532.79, 83.55, 529.6, 64.4, 516.83, 32.48, 509.54, 27.01, 498.14, 17.89, 490.38, 9.23, 484.0, 6.49, 474.42, 0.0]], "area": 65400.46154999998, "iscrowd": 0, "image_id": 114079, "bbox": [334.5, 0.0, 200.57, 422.7], "category_id": 1, "id": 440072}, {"segmentation": [[233.7, 354.23, 228.72, 375.0, 214.33, 375.0, 215.43, 326.0, 201.6, 304.41, 216.54, 277.85, 224.84, 275.08, 226.5, 273.97, 224.84, 257.37, 229.82, 251.83, 242.55, 254.6, 246.43, 258.47, 244.77, 277.29, 250.86, 282.83, 244.21, 308.29, 251.96, 326.55, 246.43, 353.67, 248.09, 375.0, 247.53, 374.15, 244.77, 375.0, 235.36, 353.12]], "area": 3817.3268, "iscrowd": 0, "image_id": 453734, "bbox": [201.6, 251.83, 50.36, 123.17], "category_id": 1, "id": 440230}, {"segmentation": [[131.92, 314.12, 115.71, 327.84, 105.73, 324.93, 103.65, 322.44, 112.38, 314.12, 123.6, 304.56, 127.76, 303.32, 133.58, 304.98, 145.63, 304.56, 152.7, 302.49, 159.77, 303.73, 173.07, 294.17, 179.3, 286.28, 187.62, 275.05, 191.77, 272.97, 198.42, 258.01, 207.57, 250.94, 211.31, 246.37, 212.14, 235.15, 219.62, 233.07, 226.69, 233.07, 228.77, 236.39, 228.35, 238.89, 227.52, 242.21, 237.08, 246.37, 245.81, 257.18, 253.29, 260.09, 267.84, 260.5, 272.83, 265.08, 255.37, 277.55, 235.42, 288.77, 223.78, 296.25, 212.56, 300.82, 207.57, 307.89, 203.0, 314.96, 194.27, 310.8, 189.7, 307.89, 190.11, 303.32, 170.16, 314.12, 164.76, 314.96, 156.86, 312.88, 135.24, 313.29]], "area": 4504.084949999999, "iscrowd": 0, "image_id": 484714, "bbox": [103.65, 233.07, 169.18, 94.77], "category_id": 1, "id": 440525}, {"segmentation": [[392.37, 471.87, 395.46, 416.39, 402.65, 381.47, 394.43, 348.6, 394.43, 323.94, 397.5, 296.2, 377.99, 279.77, 374.91, 201.7, 393.4, 174.98, 423.19, 156.49, 441.69, 127.72, 468.39, 131.83, 469.42, 153.41, 494.08, 169.84, 504.35, 232.51, 512.56, 267.44, 521.81, 292.1, 504.35, 312.64, 495.1, 290.04, 482.77, 281.82, 496.13, 335.24, 503.32, 374.28, 504.35, 471.87, 463.26, 471.87, 466.33, 446.18, 446.82, 393.79, 436.54, 432.83, 427.3, 473.93, 392.37, 473.93]], "area": 34465.77415000001, "iscrowd": 0, "image_id": 375528, "bbox": [374.91, 127.72, 146.9, 346.21], "category_id": 1, "id": 440739}, {"segmentation": [[395.54, 285.32, 392.47, 286.35, 392.47, 292.5, 392.47, 299.16, 390.93, 303.26, 387.86, 305.31, 384.78, 308.39, 382.22, 314.54, 380.17, 322.23, 378.63, 329.92, 379.66, 334.02, 385.29, 331.97, 385.29, 345.29, 385.81, 359.13, 385.81, 366.82, 385.81, 382.71, 385.81, 386.29, 386.32, 389.88, 388.37, 390.39, 391.44, 387.83, 393.49, 383.22, 392.98, 372.97, 392.98, 362.72, 394.01, 357.59, 397.59, 365.79, 397.59, 379.63, 396.57, 383.73, 396.57, 391.42, 401.18, 393.98, 410.41, 392.44, 409.38, 385.78, 406.31, 377.07, 406.31, 370.92, 408.7, 356.94, 410.3, 352.55, 412.7, 342.56, 412.7, 330.18, 411.5, 318.2, 409.9, 307.02, 404.71, 302.63, 402.71, 293.84, 402.31, 287.85, 398.32, 283.86, 394.73, 285.86]], "area": 2316.7762999999995, "iscrowd": 0, "image_id": 165347, "bbox": [378.63, 283.86, 34.07, 110.12], "category_id": 1, "id": 441406}, {"segmentation": [[275.3, 418.54, 246.2, 408.47, 255.16, 377.14, 255.16, 354.76, 249.56, 323.42, 198.08, 314.47, 213.04, 297.35, 238.78, 264.9, 248.85, 247.0, 252.21, 235.8, 229.82, 219.02, 195.13, 266.02, 179.47, 287.28, 145.89, 299.59, 113.44, 310.78, 111.2, 268.26, 115.68, 234.69, 133.58, 185.44, 143.65, 168.66, 150.37, 145.16, 161.56, 128.37, 160.44, 108.23, 173.87, 92.56, 194.01, 93.68, 207.44, 109.35, 215.28, 117.18, 228.71, 126.13, 239.9, 140.68, 258.92, 139.56, 280.18, 157.47, 288.02, 179.85, 307.04, 205.59, 310.4, 239.16, 289.14, 250.35, 298.09, 258.19, 298.09, 288.4, 304.8, 326.45, 308.16, 371.22, 313.76, 400.31, 300.33, 402.55, 305.92, 432.77, 310.4, 455.15, 289.14, 458.51, 273.47, 452.91, 275.71, 419.34]], "area": 35239.87284999999, "iscrowd": 0, "image_id": 558286, "bbox": [111.2, 92.56, 202.56, 365.95], "category_id": 1, "id": 441411}, {"segmentation": [[224.36, 329.35, 225.8, 293.39, 209.98, 248.81, 217.17, 231.55, 228.67, 211.42, 244.49, 195.6, 263.19, 192.72, 284.76, 217.17, 293.39, 234.43, 294.83, 261.75, 283.33, 290.52, 284.76, 320.72, 283.33, 343.73, 271.82, 343.73, 267.51, 336.54, 268.94, 312.09, 260.31, 302.02, 248.81, 304.9, 234.43, 317.84, 228.67, 337.98]], "area": 8105.7444, "iscrowd": 0, "image_id": 532414, "bbox": [209.98, 192.72, 84.85, 151.01], "category_id": 1, "id": 441779}, {"segmentation": [[372.75, 195.52, 380.86, 191.15, 384.61, 189.28, 388.98, 186.78, 396.47, 174.3, 403.34, 170.55, 407.09, 165.56, 412.7, 161.81, 417.7, 161.81, 420.82, 178.04, 421.44, 190.53, 421.44, 205.51, 416.45, 213.63, 414.58, 230.49, 414.58, 245.47, 409.58, 256.71, 398.97, 255.46, 402.09, 247.97, 404.59, 236.73, 397.1, 225.49, 389.6, 215.5, 383.36, 231.11, 377.12, 239.85, 370.25, 239.23, 367.13, 234.23, 367.75, 227.99, 374.0, 222.37, 377.74, 220.5, 380.24, 215.5, 383.36, 213.01, 386.48, 210.51, 390.23, 199.9, 378.37, 206.76, 374.62, 206.76, 374.62, 206.76]], "area": 2572.834349999999, "iscrowd": 0, "image_id": 86620, "bbox": [367.13, 161.81, 54.31, 94.9], "category_id": 1, "id": 442157}, {"segmentation": [[256.4, 342.44, 253.54, 367.25, 253.54, 377.75, 252.59, 399.7, 254.49, 420.69, 259.27, 428.33, 259.27, 437.87, 257.36, 449.32, 244.95, 449.32, 243.04, 444.55, 243.04, 433.1, 244.0, 426.42, 242.09, 415.92, 238.27, 405.43, 237.32, 396.84, 237.32, 384.43, 236.36, 372.98, 234.45, 360.57, 229.68, 347.22, 226.82, 341.49, 220.14, 338.63, 219.19, 327.18, 222.05, 312.86, 224.91, 308.09, 224.91, 303.32, 224.91, 292.82, 229.68, 283.28, 231.59, 276.6, 231.59, 261.33, 226.82, 264.19, 220.14, 271.83, 212.51, 298.55, 212.51, 310.0, 213.46, 315.72, 209.64, 319.54, 207.74, 322.4, 201.06, 327.18, 198.19, 323.36, 199.15, 311.91, 201.06, 306.18, 202.96, 303.32, 207.74, 269.92, 220.14, 250.83, 228.73, 239.38, 234.45, 232.7, 242.09, 229.84, 246.86, 225.07, 251.63, 220.3, 256.4, 214.57, 258.31, 204.07, 261.17, 198.35, 270.72, 197.39, 276.44, 197.39, 285.83, 198.16, 288.54, 204.48, 291.25, 208.54, 291.7, 209.44, 292.15, 212.6, 286.28, 223.89, 284.03, 227.05, 282.67, 230.21, 282.67, 231.11, 280.87, 233.37, 284.48, 237.43, 288.54, 238.78, 291.25, 241.04, 295.76, 252.32, 293.06, 278.51, 294.41, 283.02, 302.99, 292.95, 308.85, 293.85, 312.92, 297.46, 315.63, 302.43, 315.17, 307.85, 312.01, 311.91, 307.05, 312.36, 301.18, 311.01, 296.22, 304.24, 293.06, 299.27, 285.38, 295.66, 280.42, 289.79, 278.16, 289.34, 278.16, 301.98, 280.42, 310.1, 288.65, 367.03, 288.65, 387.57, 288.65, 404.86, 290.81, 421.08, 296.22, 429.73, 303.78, 438.38, 308.11, 448.11, 299.46, 452.43, 286.49, 448.11, 275.68, 444.86, 273.51, 440.54, 278.92, 429.73, 277.84, 415.68, 270.27, 397.3, 270.27, 382.16, 267.03, 375.68]], "area": 13341.836249999998, "iscrowd": 0, "image_id": 385701, "bbox": [198.19, 197.39, 117.44, 255.04], "category_id": 1, "id": 442220}, {"segmentation": [[284.76, 166.59, 307.78, 156.52, 316.4, 142.14, 340.85, 136.39, 348.04, 136.39, 350.92, 124.88, 346.61, 114.82, 355.24, 104.75, 359.55, 94.68, 381.12, 75.98, 409.89, 81.74, 418.52, 104.75, 419.96, 133.51, 407.01, 142.14, 405.57, 162.28, 430.02, 202.55, 419.96, 235.63, 409.89, 244.25, 404.13, 261.51, 404.13, 284.52, 405.57, 297.47, 444.4, 326.23, 451.6, 347.81, 437.21, 353.56, 402.7, 326.23, 396.94, 382.32, 396.94, 415.4, 396.94, 418.28, 407.01, 448.48, 450.16, 484.43, 471.73, 493.06, 490.43, 507.45, 493.3, 527.58, 500.49, 556.34, 493.3, 572.16, 465.98, 572.16, 453.03, 544.84, 435.78, 527.58, 405.57, 510.32, 360.99, 477.24, 355.24, 472.93, 343.73, 449.92, 325.03, 408.21, 320.72, 403.9, 293.39, 424.03, 274.7, 449.92, 268.94, 477.24, 261.75, 508.88, 248.81, 534.77, 254.56, 546.28, 241.62, 557.78, 237.3, 560.66, 228.67, 575.04, 215.73, 572.16, 208.54, 563.54, 205.66, 550.59, 208.54, 541.96, 214.29, 534.77, 209.98, 518.95, 201.35, 507.45, 238.74, 418.28, 257.44, 375.13, 279.01, 323.36, 296.27, 298.91, 297.71, 260.07, 284.76, 248.57, 274.7, 244.25, 270.38, 231.31, 274.7, 215.49, 280.45, 191.04, 279.01, 180.97, 273.26, 178.1, 291.96, 169.47]], "area": 58510.50399999998, "iscrowd": 0, "image_id": 349052, "bbox": [201.35, 75.98, 299.14, 499.06], "category_id": 1, "id": 442381}, {"segmentation": [[207.1, 491.63, 217.17, 477.24, 231.55, 428.34, 232.99, 385.2, 235.87, 355.0, 232.99, 339.18, 224.36, 327.67, 228.67, 316.16, 243.06, 291.72, 231.55, 283.09, 220.04, 270.14, 230.11, 268.7, 235.87, 270.14, 256.0, 250.01, 271.82, 257.2, 276.13, 264.39, 280.45, 291.72, 297.71, 297.47, 304.9, 303.22, 307.78, 323.36, 307.78, 334.86, 297.71, 349.24, 291.96, 375.13, 293.39, 411.09, 303.46, 439.85, 316.4, 470.05, 317.84, 495.94, 304.9, 497.38, 302.02, 497.38, 296.27, 487.31, 296.27, 478.68, 289.08, 465.74, 281.89, 452.79, 261.75, 412.52, 258.88, 425.47, 251.69, 439.85, 240.18, 455.67, 234.43, 474.37, 234.43, 480.12, 231.55, 490.19, 231.55, 501.69, 227.24, 506.01, 217.17, 506.01, 208.54, 498.82, 201.35, 495.94, 201.35, 488.75]], "area": 13680.532649999996, "iscrowd": 0, "image_id": 399441, "bbox": [201.35, 250.01, 116.49, 256.0], "category_id": 1, "id": 442538}, {"segmentation": [[312.64, 370.65, 321.91, 347.05, 311.8, 299.02, 311.8, 282.16, 314.33, 272.05, 322.75, 266.99, 331.18, 262.78, 337.08, 254.35, 342.13, 272.89, 355.62, 293.96, 359.83, 301.54, 360.67, 313.34, 357.3, 321.77, 359.83, 340.31, 364.89, 370.65, 316.01, 370.65]], "area": 4344.297749999998, "iscrowd": 0, "image_id": 453734, "bbox": [311.8, 254.35, 53.09, 116.3], "category_id": 1, "id": 442681}, {"segmentation": [[301.53, 363.25, 316.06, 363.25, 321.11, 363.25, 323.0, 362.62, 315.43, 356.94, 318.58, 343.67, 321.11, 323.46, 324.9, 315.25, 317.95, 299.46, 327.43, 278.62, 329.32, 274.2, 336.9, 288.09, 343.85, 292.51, 351.43, 296.93, 360.27, 296.3, 358.37, 291.25, 347.64, 281.15, 338.79, 269.78, 331.85, 258.41, 331.85, 250.2, 331.85, 248.93, 335.0, 237.57, 329.32, 228.09, 317.95, 225.57, 313.53, 238.2, 315.43, 243.25, 314.16, 250.2, 306.58, 261.57, 304.69, 277.99, 297.74, 291.88, 299.64, 309.57, 302.79, 329.78, 303.43, 343.04, 300.27, 356.3, 300.27, 361.99]], "area": 3163.5357500000005, "iscrowd": 0, "image_id": 317153, "bbox": [297.74, 225.57, 62.53, 137.68], "category_id": 1, "id": 442781}, {"segmentation": [[221.54, 229.33, 218.29, 207.4, 220.73, 180.58, 228.85, 166.77, 237.79, 155.4, 252.41, 155.4, 266.23, 157.83, 272.73, 165.15, 273.54, 185.46, 273.54, 207.4, 271.1, 226.08, 288.16, 230.15, 306.04, 230.15, 310.1, 238.27, 310.91, 282.15, 309.29, 318.71, 290.6, 321.15, 275.98, 321.96, 254.04, 313.83, 245.1, 318.71, 242.66, 328.46, 246.73, 341.46, 258.1, 355.27, 240.23, 366.65, 219.91, 395.08, 210.98, 389.4, 207.73, 378.02, 203.67, 371.52, 186.6, 369.08, 176.85, 386.96, 153.29, 392.65, 143.54, 391.83, 141.92, 380.46, 143.54, 356.9, 150.85, 334.15, 161.42, 311.4, 168.73, 300.02, 186.6, 263.46, 202.85, 252.9, 215.85, 243.15]], "area": 21086.26705, "iscrowd": 0, "image_id": 314319, "bbox": [141.92, 155.4, 168.99, 239.68], "category_id": 1, "id": 443143}, {"segmentation": [[154.0, 341.62, 163.89, 348.68, 163.89, 357.16, 155.41, 365.63, 166.71, 389.65, 166.71, 398.13, 148.34, 409.43, 141.28, 430.62, 144.11, 434.86, 129.98, 450.4, 129.98, 473.01, 131.39, 489.96, 118.68, 511.15, 110.2, 525.28, 101.72, 536.58, 103.13, 550.71, 89.01, 580.38, 87.59, 587.44, 89.01, 608.64, 238.76, 627.0, 385.7, 634.07, 344.72, 546.47, 341.9, 533.76, 336.25, 512.57, 336.25, 504.09, 332.01, 484.31, 336.25, 474.42, 340.49, 415.08, 350.38, 384.0, 351.79, 399.54, 356.03, 410.84, 385.7, 424.97, 429.49, 379.76, 443.62, 334.55, 433.73, 320.42, 440.79, 262.5, 432.32, 187.62, 421.02, 162.19, 412.54, 172.08, 398.41, 160.78, 395.58, 169.25, 391.35, 167.84, 385.7, 176.32, 365.92, 186.21, 391.35, 211.64, 392.76, 262.5, 382.87, 304.88, 360.26, 235.66, 360.26, 198.92, 348.96, 184.79, 327.77, 177.73, 317.88, 162.19, 361.68, 189.03, 361.68, 179.14, 324.94, 145.24, 293.86, 111.33, 300.93, 111.33, 305.17, 92.96, 271.26, 54.82, 234.53, 16.67, 163.89, 19.5, 141.28, 61.88, 146.93, 111.33, 166.71, 119.81, 170.95, 126.87, 156.82, 142.41, 161.06, 173.49, 152.58, 193.27, 135.63, 193.27, 113.02, 218.7, 38.15, 294.99, 22.6, 341.62, 72.05, 381.17, 135.63, 341.62, 156.82, 340.2]], "area": 149710.85005, "iscrowd": 0, "image_id": 480629, "bbox": [22.6, 16.67, 421.02, 617.4], "category_id": 1, "id": 443454}, {"segmentation": [[453.87, 393.42, 425.08, 393.42, 409.73, 385.74, 403.01, 395.33, 394.38, 411.65, 376.14, 409.73, 367.51, 395.33, 363.67, 384.78, 375.18, 355.03, 367.51, 341.6, 369.43, 329.13, 372.31, 290.74, 344.48, 265.8, 304.18, 236.05, 295.54, 210.14, 299.38, 133.38, 275.39, 138.18, 260.04, 145.85, 243.73, 154.49, 234.13, 168.88, 228.37, 154.49, 221.66, 155.45, 222.62, 163.12, 216.86, 168.88, 204.38, 161.2, 203.42, 153.53, 209.18, 145.85, 221.66, 140.09, 230.29, 137.22, 265.8, 109.39, 298.42, 91.16, 318.57, 83.48, 336.8, 76.76, 347.36, 71.97, 357.91, 66.21, 366.55, 56.61, 370.39, 53.73, 379.02, 43.18, 386.7, 32.62, 398.21, 29.75, 405.89, 23.03, 413.57, 23.03, 415.49, 30.71, 410.69, 36.46, 415.49, 44.14, 418.36, 53.73, 412.61, 66.21, 412.61, 74.84, 415.49, 85.4, 415.49, 91.16, 405.89, 97.87, 412.61, 109.39, 422.2, 120.9, 431.8, 127.62, 458.67, 142.01, 492.25, 153.53, 509.52, 163.12, 521.04, 169.84, 531.59, 177.52, 537.35, 184.23, 535.43, 192.87, 526.79, 195.75, 516.24, 191.91, 506.64, 186.15, 493.21, 180.4, 472.1, 177.52, 435.64, 165.04, 401.09, 154.49, 395.33, 163.12, 399.17, 181.36, 401.09, 195.75, 395.33, 206.3, 391.5, 212.06, 389.58, 217.82, 402.05, 224.53, 421.24, 243.73, 428.92, 253.32, 438.51, 263.88, 447.15, 275.39, 450.03, 291.7, 450.03, 304.18, 445.23, 320.49, 440.43, 334.88, 441.39, 338.72, 439.47, 347.36, 441.39, 355.99, 437.56, 373.27, 444.27, 385.74, 450.99, 391.5]], "area": 38799.33474999999, "iscrowd": 0, "image_id": 361850, "bbox": [203.42, 23.03, 333.93, 388.62], "category_id": 1, "id": 443603}, {"segmentation": [[115.78, 423.73, 119.68, 381.89, 118.7, 343.95, 118.7, 322.54, 107.03, 288.49, 83.68, 244.7, 83.68, 217.46, 91.46, 197.03, 91.46, 185.35, 89.51, 166.86, 94.38, 130.86, 114.81, 96.81, 131.35, 77.35, 143.03, 62.76, 153.73, 59.84, 159.57, 60.81, 166.38, 46.22, 175.14, 32.59, 183.89, 24.81, 195.57, 23.84, 209.19, 31.62, 226.7, 41.35, 234.49, 54.0, 236.43, 70.54, 234.49, 90.0, 225.73, 92.92, 219.89, 90.0, 211.14, 98.76, 207.24, 104.59, 204.32, 104.59, 197.51, 106.54, 187.78, 113.35, 187.78, 113.35, 192.65, 152.27, 194.59, 167.84, 192.65, 178.54, 196.54, 187.3, 208.22, 210.65, 220.86, 220.38, 229.62, 222.32, 234.49, 234.97, 238.38, 251.51, 234.49, 258.32, 224.76, 265.14, 216.0, 259.3, 207.24, 240.81, 192.65, 225.24, 181.95, 212.59, 174.16, 215.51, 169.3, 222.32, 169.3, 247.62, 177.08, 322.54, 176.11, 342.97, 176.11, 356.59, 176.11, 364.38, 169.3, 394.54, 174.16, 418.86, 179.03, 427.62]], "area": 32737.441800000008, "iscrowd": 0, "image_id": 263098, "bbox": [83.68, 23.84, 154.7, 403.78], "category_id": 1, "id": 444003}, {"segmentation": [[355.98, 522.8, 464.33, 524.0, 502.43, 456.13, 526.24, 408.51, 592.91, 371.6, 564.34, 281.12, 547.67, 233.49, 467.9, 213.25, 460.76, 212.06, 467.9, 202.54, 470.28, 194.2, 444.09, 183.49, 435.75, 163.25, 413.13, 151.34, 371.46, 165.63, 360.75, 197.78, 367.89, 220.4, 385.75, 251.35, 377.41, 287.07, 375.03, 313.26, 355.98, 319.22, 353.6, 326.36, 367.89, 343.03, 384.56, 343.03, 391.7, 337.07, 410.75, 337.07, 427.42, 351.36, 430.99, 379.93, 419.09, 384.7, 407.18, 395.41, 400.04, 408.51, 414.32, 425.18, 414.32, 428.75, 360.75, 487.09]], "area": 51477.913499999995, "iscrowd": 0, "image_id": 275917, "bbox": [353.6, 151.34, 239.31, 372.66], "category_id": 1, "id": 444048}, {"segmentation": [[255.07, 356.36, 292.74, 346.67, 326.1, 343.44, 400.36, 349.9, 428.34, 362.82, 455.25, 377.88, 459.55, 383.26, 474.62, 385.42, 500.45, 324.07, 493.99, 299.32, 482.15, 273.49, 464.93, 247.66, 442.33, 243.35, 435.87, 240.13, 458.48, 172.32, 464.93, 148.65, 476.77, 107.75, 472.47, 93.76, 442.33, 67.93, 407.89, 56.09, 364.84, 56.09, 333.63, 77.61, 318.57, 114.21, 314.26, 141.11, 307.8, 179.86, 328.25, 199.23, 332.56, 217.52, 298.12, 222.91, 255.07, 233.67, 175.43, 262.73, 152.83, 278.87, 138.83, 304.7, 148.52, 327.3, 157.13, 338.06, 164.66, 345.6, 185.11, 344.52, 200.18, 340.22, 219.55, 332.68, 232.47, 327.3, 245.38, 323.0, 248.61, 320.84]], "area": 61013.20110000001, "iscrowd": 0, "image_id": 564237, "bbox": [138.83, 56.09, 361.62, 329.33], "category_id": 1, "id": 444290}, {"segmentation": [[102.63, 340.83, 102.63, 338.89, 98.76, 319.52, 98.76, 316.62, 98.76, 312.75, 89.08, 302.1, 81.33, 294.35, 77.46, 285.63, 73.59, 274.98, 73.59, 266.27, 73.59, 266.27, 70.68, 255.62, 70.68, 254.65, 70.68, 253.68, 70.68, 251.75, 91.02, 239.16, 92.95, 232.38, 93.92, 230.44, 96.83, 230.44, 114.25, 230.44, 114.25, 235.29, 129.75, 230.44, 143.3, 223.67, 124.9, 242.06, 110.38, 255.62, 109.41, 267.24, 109.41, 274.98, 116.19, 278.86, 124.9, 309.84, 129.75, 313.71, 131.68, 332.11, 139.43, 338.89, 143.3, 346.63, 131.68, 350.51, 131.68, 350.51]], "area": 4224.9457, "iscrowd": 0, "image_id": 348044, "bbox": [70.68, 223.67, 72.62, 126.84], "category_id": 1, "id": 444329}, {"segmentation": [[188.34, 176.23, 200.11, 169.51, 233.74, 146.8, 258.97, 133.35, 274.1, 118.22, 290.08, 113.17, 280.83, 108.97, 279.15, 100.56, 278.31, 92.15, 278.31, 86.27, 264.85, 82.9, 264.85, 79.54, 278.31, 76.18, 284.19, 66.09, 302.69, 62.72, 311.1, 66.09, 317.83, 73.65, 319.51, 81.22, 316.98, 89.63, 316.98, 100.56, 322.87, 102.24, 341.37, 110.65, 368.27, 122.42, 385.93, 135.03, 390.98, 135.87, 390.13, 129.15, 386.77, 117.38, 390.98, 114.85, 395.18, 112.33, 399.38, 112.33, 401.91, 114.85, 404.43, 116.54, 406.11, 117.38, 406.95, 123.26, 407.79, 126.63, 401.91, 145.12, 395.18, 153.53, 385.09, 153.53, 373.32, 161.94, 351.46, 151.85, 355.66, 174.55, 362.39, 197.25, 358.18, 203.14, 362.39, 225.0, 355.66, 241.82, 343.89, 246.86, 329.6, 264.52, 314.46, 281.33, 345.57, 299.83, 358.18, 312.44, 364.91, 320.85, 378.36, 326.74, 385.09, 338.51, 385.93, 342.71, 363.23, 354.48, 337.16, 354.48, 332.12, 354.48, 343.89, 345.24, 350.62, 332.62, 319.51, 311.6, 299.33, 301.51, 287.56, 289.74, 290.08, 274.61, 277.47, 277.13, 266.54, 304.88, 256.45, 325.06, 250.56, 331.78, 241.31, 343.55, 235.43, 353.64, 237.95, 364.57, 231.22, 367.94, 220.29, 366.26, 208.52, 357.01, 190.02, 353.64, 179.93, 344.39, 181.61, 335.15, 191.7, 335.15, 206.84, 338.51, 221.97, 333.46, 247.2, 288.9, 250.56, 277.97, 247.2, 270.4, 254.76, 256.11, 285.87, 224.16, 297.65, 215.75, 292.6, 205.66, 287.56, 170.35, 281.67, 161.1, 262.33, 166.98, 247.2, 170.35, 244.67, 163.62, 208.52, 175.39, 200.11, 185.48, 189.18, 178.76]], "area": 23851.10394999999, "iscrowd": 0, "image_id": 50429, "bbox": [179.93, 62.72, 227.86, 305.22], "category_id": 1, "id": 444755}, {"segmentation": [[9.27, 58.15, 19.38, 18.54, 30.34, 5.9, 58.15, 0.84, 68.26, 4.21, 86.8, 20.22, 96.07, 57.3, 99.44, 85.11, 91.01, 104.49, 85.11, 115.45, 96.91, 162.64, 101.97, 192.13, 101.97, 198.03, 71.63, 214.89, 45.51, 219.1, 0.0, 230.9, 3.37, 113.76, 2.53, 73.31]], "area": 18669.56205, "iscrowd": 0, "image_id": 484307, "bbox": [0.0, 0.84, 101.97, 230.06], "category_id": 1, "id": 444876}, {"segmentation": [[175.95, 209.84, 190.73, 210.64, 193.53, 210.64, 193.53, 207.44, 190.33, 205.44, 189.93, 203.05, 189.13, 189.86, 187.13, 181.07, 183.94, 176.68, 181.54, 170.69, 186.73, 168.29, 186.33, 163.5, 183.54, 160.7, 181.54, 155.9, 179.94, 145.92, 180.34, 136.73, 177.54, 134.73, 176.35, 125.94, 172.35, 118.75, 167.96, 118.75, 163.96, 123.54, 163.96, 127.14, 163.56, 130.74, 161.16, 133.13, 157.97, 135.93, 154.77, 139.13, 151.98, 145.12, 149.58, 154.31, 149.58, 157.1, 151.58, 161.1, 153.97, 165.09, 155.97, 169.49, 157.17, 173.88, 158.77, 179.48, 159.57, 185.07, 159.57, 190.26, 159.17, 197.85, 157.17, 204.25, 155.97, 207.84, 157.57, 210.64, 162.76, 213.04, 165.16, 213.44, 170.35, 212.24, 167.96, 209.84, 167.56, 205.44, 169.15, 199.05, 170.35, 191.86, 170.75, 183.47, 170.75, 181.07, 170.75, 179.48, 175.95, 184.67, 177.94, 187.07, 177.54, 194.26, 175.15, 200.65, 174.35, 206.64, 174.35, 209.44]], "area": 2260.5835, "iscrowd": 0, "image_id": 355111, "bbox": [149.58, 118.75, 43.95, 94.69], "category_id": 1, "id": 444976}, {"segmentation": [[139.72, 214.02, 142.82, 193.39, 161.38, 185.14, 179.94, 195.46, 199.53, 216.08, 236.65, 211.95, 266.56, 221.23, 305.74, 240.83, 322.24, 278.98, 334.61, 287.23, 329.46, 294.45, 307.8, 288.26, 296.46, 261.45, 276.87, 242.89, 256.24, 245.98, 264.49, 271.76, 282.02, 301.66, 293.37, 327.44, 292.33, 373.85, 292.33, 402.72, 294.4, 417.15, 311.93, 430.56, 311.93, 452.21, 330.49, 488.3, 340.8, 510.99, 298.52, 517.18, 307.8, 485.21, 283.05, 436.75, 255.21, 397.56, 256.24, 371.78, 234.59, 404.78, 211.9, 430.56, 217.06, 493.46, 160.35, 499.65, 158.28, 484.18, 193.34, 471.81, 185.09, 426.44, 202.62, 372.81, 210.87, 344.97, 201.59, 325.38, 165.5, 373.85, 163.44, 391.38, 142.82, 387.25, 146.94, 371.78, 177.88, 321.26, 169.63, 281.04, 163.44, 255.26, 167.56, 239.8, 142.82, 218.14, 141.79, 204.74]], "area": 28479.140699999993, "iscrowd": 0, "image_id": 19789, "bbox": [139.72, 185.14, 201.08, 332.04], "category_id": 1, "id": 445145}, {"segmentation": [[39.33, 301.08, 44.3, 293.62, 42.75, 292.38, 46.79, 281.81, 50.52, 277.77, 53.94, 275.91, 55.49, 274.36, 53.63, 271.56, 55.8, 264.72, 57.98, 262.86, 60.46, 262.86, 62.64, 264.41, 62.95, 270.32, 62.33, 273.11, 66.99, 276.53, 70.1, 279.02, 72.58, 291.45, 70.1, 294.24, 70.41, 302.32, 70.41, 309.47, 66.06, 314.13, 66.99, 336.49, 67.3, 344.88, 61.71, 349.54, 57.05, 347.99, 58.91, 341.46, 57.98, 337.11, 55.8, 328.41, 55.49, 319.4, 55.49, 315.98, 52.69, 326.55, 51.76, 338.67, 50.52, 348.92, 48.03, 351.1, 43.06, 351.72, 36.54, 351.1, 32.81, 351.1, 32.19, 346.12, 37.78, 343.95, 42.13, 342.08, 41.82, 330.28, 44.3, 311.94, 47.72, 302.31, 43.06, 305.11, 37.16, 303.86, 38.09, 300.75]], "area": 1869.94575, "iscrowd": 0, "image_id": 317153, "bbox": [32.19, 262.86, 40.39, 88.86], "category_id": 1, "id": 445583}, {"segmentation": [[178.96, 130.1, 180.43, 124.59, 180.8, 122.39, 181.9, 120.56, 184.1, 119.82, 183.0, 118.72, 183.36, 114.32, 183.73, 108.82, 187.77, 106.62, 194.0, 108.45, 196.2, 114.32, 194.73, 122.03, 195.1, 124.23, 203.54, 129.36, 207.94, 144.4, 208.67, 150.64, 210.51, 154.67, 209.04, 163.47, 208.67, 163.84, 211.61, 169.71, 209.77, 176.68, 208.31, 187.32, 203.17, 192.45, 201.34, 196.12, 200.6, 198.69, 203.54, 199.05, 196.94, 203.09, 190.7, 201.62, 193.63, 199.79, 194.73, 197.59, 193.63, 195.02, 193.27, 192.09, 192.17, 191.35, 192.53, 188.78, 191.8, 188.05, 190.7, 181.81, 189.23, 186.22, 184.46, 177.78, 182.26, 171.18, 187.77, 167.88, 187.77, 164.21, 181.9, 157.97, 180.06, 146.23, 180.8, 136.33, 177.13, 134.13, 176.76, 130.1, 178.96, 127.53]], "area": 1938.7104499999991, "iscrowd": 0, "image_id": 355111, "bbox": [176.76, 106.62, 34.85, 96.47], "category_id": 1, "id": 446018}, {"segmentation": [[227.75, 159.28, 181.62, 149.19, 174.41, 163.6, 193.15, 108.83, 190.27, 100.18, 180.18, 69.91, 145.59, 94.41, 164.32, 114.59, 154.23, 156.4, 155.68, 176.58, 191.71, 183.78, 184.5, 284.68, 185.95, 314.95, 213.33, 348.11, 219.1, 345.23, 230.63, 384.14, 273.87, 358.2, 312.79, 375.5, 353.15, 407.21, 403.6, 405.77, 412.25, 365.41, 386.31, 353.87, 351.71, 329.37, 348.83, 267.39, 325.77, 224.14, 307.03, 172.25, 276.76, 167.93, 281.08, 152.07, 285.41, 118.92, 281.08, 97.3, 255.14, 98.74, 249.37, 100.18, 243.6, 101.62, 239.28, 101.62, 226.31, 137.66, 229.19, 159.28, 220.54, 154.95, 220.54, 154.95]], "area": 40409.11985, "iscrowd": 0, "image_id": 365654, "bbox": [145.59, 69.91, 266.66, 337.3], "category_id": 1, "id": 446663}, {"segmentation": [[319.28, 625.62, 320.72, 550.83, 319.28, 517.75, 290.52, 576.72, 251.69, 599.73, 227.24, 586.79, 220.04, 566.65, 218.61, 529.26, 284.76, 458.79, 319.28, 369.62, 330.79, 365.3, 326.47, 271.82, 327.91, 222.92, 348.04, 151.01, 417.08, 120.81, 499.06, 159.64, 566.65, 230.11, 545.08, 297.71, 530.7, 399.82, 578.16, 422.83, 616.99, 481.8, 632.81, 552.27, 631.37, 624.18, 556.58, 556.58, 563.78, 624.18, 322.16, 624.18]], "area": 128749.39, "iscrowd": 0, "image_id": 216851, "bbox": [218.61, 120.81, 414.2, 504.81], "category_id": 1, "id": 446969}, {"segmentation": [[266.18, 219.08, 272.75, 222.52, 277.13, 226.9, 283.39, 231.28, 283.39, 235.04, 286.21, 236.92, 288.4, 242.55, 284.64, 248.18, 283.08, 250.37, 289.02, 248.81, 304.98, 245.99, 309.36, 243.8, 313.43, 229.09, 315.62, 215.01, 317.19, 203.43, 320.63, 196.24, 326.26, 196.86, 324.07, 201.24, 327.51, 205.62, 326.57, 209.69, 325.01, 216.89, 324.38, 232.22, 323.13, 247.87, 303.42, 263.51, 295.91, 264.14, 295.28, 271.65, 302.48, 287.29, 296.85, 331.41, 301.23, 343.3, 299.66, 376.78, 298.72, 393.99, 289.96, 415.27, 287.77, 427.16, 247.72, 425.91, 253.35, 401.82, 253.04, 397.12, 250.22, 388.99, 251.16, 373.03, 246.47, 363.33, 244.9, 344.56, 248.03, 336.73, 273.27, 323.68, 272.69, 316.08, 239.99, 314.33, 231.81, 311.41, 235.32, 292.14, 240.57, 267.04, 244.08, 236.67, 249.92, 221.49, 266.26, 219.74]], "area": 10943.29625, "iscrowd": 0, "image_id": 13417, "bbox": [231.81, 196.24, 95.7, 230.92], "category_id": 1, "id": 447159}, {"segmentation": [[207.1, 582.03, 197.03, 554.71, 192.72, 554.71, 189.84, 544.64, 202.79, 507.25, 221.48, 429.58, 225.8, 351.92, 204.22, 346.17, 224.36, 285.76, 232.99, 268.5, 248.81, 252.68, 247.37, 233.99, 258.88, 216.73, 266.07, 203.79, 302.02, 203.79, 296.27, 221.04, 327.91, 275.7, 326.99, 440.78, 312.43, 446.07, 311.1, 436.81, 317.72, 419.6, 305.81, 416.96, 305.81, 447.4, 299.19, 483.13, 307.13, 505.63, 303.16, 529.45, 312.43, 574.44, 281.99, 574.44, 272.73, 549.3, 271.4, 532.09, 274.05, 479.16, 267.43, 443.42, 263.46, 435.48, 251.55, 467.25, 219.79, 516.21, 218.47, 574.44]], "area": 30146.434100000013, "iscrowd": 0, "image_id": 66676, "bbox": [189.84, 203.79, 138.07, 378.24], "category_id": 1, "id": 447549}, {"segmentation": [[221.92, 381.12, 178.97, 412.62, 161.79, 412.62, 158.93, 421.21, 158.93, 431.23, 163.22, 444.12, 160.36, 448.41, 153.2, 454.14, 136.02, 444.12, 130.29, 409.75, 157.49, 382.55, 200.45, 361.07, 181.83, 345.32, 170.38, 270.87, 170.38, 226.49, 183.27, 186.4, 186.13, 162.06, 200.45, 146.31, 211.9, 140.58, 229.08, 146.31, 233.38, 152.04, 230.51, 196.42, 250.56, 220.76, 260.58, 232.21, 279.19, 237.94, 309.26, 235.08, 312.13, 252.26, 306.4, 260.85, 257.72, 260.85, 236.24, 250.83, 230.51, 235.08, 230.51, 266.58, 244.83, 318.12, 259.15, 381.12, 270.6, 406.89, 272.04, 421.21, 296.38, 435.53, 297.81, 441.25, 272.04, 441.25, 259.15, 435.53, 249.13, 435.53, 244.83, 415.48, 233.38, 391.14, 226.22, 378.26]], "area": 21144.169350000004, "iscrowd": 0, "image_id": 23676, "bbox": [130.29, 140.58, 181.84, 313.56], "category_id": 1, "id": 447631}, {"segmentation": [[227.5, 240.81, 235.74, 221.16, 239.54, 195.82, 238.27, 181.87, 233.84, 164.13, 233.2, 145.12, 234.47, 118.5, 239.54, 99.49, 240.81, 91.25, 240.81, 79.21, 247.15, 72.88, 253.48, 86.82, 253.48, 88.09, 270.59, 91.89, 271.86, 103.29, 280.73, 95.69, 280.1, 78.58, 281.37, 68.44, 288.97, 68.44, 290.24, 84.92, 290.87, 100.76, 287.07, 111.53, 280.73, 115.97, 277.56, 126.74, 273.13, 140.05, 282.0, 178.71, 269.96, 211.02, 252.85, 243.98, 271.23, 254.12, 245.24, 257.92, 228.13, 254.75]], "area": 6863.856, "iscrowd": 0, "image_id": 560350, "bbox": [227.5, 68.44, 63.37, 189.48], "category_id": 1, "id": 448055}, {"segmentation": [[5.74, 593.51, 30.13, 504.54, 14.35, 480.14, 15.78, 458.62, 31.57, 432.79, 67.44, 352.43, 99.01, 317.99, 129.15, 317.99, 133.45, 197.45, 163.59, 85.52, 206.64, 59.7, 226.73, 64.0, 243.95, 59.7, 284.13, 65.43, 332.91, 97.0, 355.87, 180.23, 353.0, 263.46, 337.22, 320.86, 361.61, 338.08, 312.83, 338.08, 289.87, 415.57, 287.0, 439.96, 330.04, 439.96, 347.26, 408.39, 367.35, 340.95, 400.36, 358.17, 411.84, 361.04, 424.75, 409.83, 430.49, 510.28, 396.05, 524.63, 386.01, 524.63, 368.79, 632.25, 7.17, 629.38, 10.04, 596.38]], "area": 160450.53565, "iscrowd": 0, "image_id": 140115, "bbox": [5.74, 59.7, 424.75, 572.55], "category_id": 1, "id": 448564}, {"segmentation": [[255.06, 369.62, 257.84, 370.73, 258.02, 375.91, 260.99, 379.98, 261.73, 392.01, 260.06, 402.37, 259.51, 411.62, 259.13, 425.31, 250.07, 425.13, 250.07, 423.65, 246.37, 423.28, 247.29, 421.8, 251.36, 420.87, 254.14, 415.32, 252.47, 407.0, 252.47, 401.44, 253.03, 394.04, 249.33, 391.45, 250.99, 382.94, 253.58, 379.61, 254.14, 377.95, 252.66, 374.25, 253.4, 369.99]], "area": 437.27299999999974, "iscrowd": 0, "image_id": 448061, "bbox": [246.37, 369.62, 15.36, 55.69], "category_id": 1, "id": 448602}, {"segmentation": [[251.03, 192.25, 251.65, 177.69, 264.04, 165.61, 273.64, 159.73, 285.72, 164.06, 291.61, 166.85, 294.08, 166.23, 301.83, 164.37, 309.26, 164.99, 316.39, 168.4, 319.79, 171.19, 322.89, 173.67, 327.85, 173.98, 339.0, 170.26, 342.41, 169.95, 348.6, 169.95, 397.85, 193.18, 395.38, 198.45, 392.9, 206.5, 370.28, 199.69, 369.36, 203.09, 369.36, 207.12, 369.36, 209.91, 369.67, 216.72, 371.21, 219.51, 366.57, 223.85, 362.23, 226.33, 359.75, 236.24, 362.54, 237.48, 377.41, 240.27, 397.54, 246.15, 404.05, 248.94, 413.96, 249.25, 419.23, 251.73, 419.23, 255.44, 418.92, 259.16, 414.58, 270.31, 411.79, 277.13, 409.62, 278.99, 406.84, 278.06, 405.6, 273.1, 404.67, 269.07, 403.43, 265.05, 400.64, 263.5, 395.69, 262.57, 394.45, 265.98, 392.28, 265.98, 386.7, 262.57, 382.37, 261.33, 372.45, 259.47, 365.95, 258.85, 360.37, 258.23, 356.96, 258.23, 349.84, 257.3, 342.41, 255.44, 338.38, 251.11, 335.59, 258.23, 337.76, 262.88, 342.1, 266.88, 352.32, 279.27, 362.54, 287.02, 368.74, 291.66, 369.97, 293.21, 369.97, 298.17, 366.26, 303.75, 361.92, 311.49, 358.82, 315.52, 356.66, 318.61, 354.49, 321.71, 351.7, 324.19, 349.22, 322.95, 349.22, 319.54, 348.91, 314.28, 349.84, 306.84, 350.77, 301.89, 351.08, 297.86, 347.05, 296.93, 342.72, 298.17, 336.21, 298.48, 332.49, 290.74, 324.13, 281.13, 314.53, 274.63, 305.85, 262.55, 305.85, 256.88, 309.57, 246.66, 310.81, 241.7, 313.91, 237.06, 317.01, 230.86, 317.32, 226.84, 309.88, 224.05, 305.54, 218.78, 302.76, 215.68, 297.18, 209.18, 295.94, 207.01, 293.77, 204.53, 285.72, 201.74, 282.93, 205.15, 282.62, 205.77, 285.41, 214.75, 287.27, 218.78, 288.51, 224.36, 286.03, 224.67, 285.72, 219.4, 283.24, 215.37, 278.9, 211.97, 277.67, 211.04, 274.57, 208.25, 269.3, 204.84, 266.51, 202.98, 263.42, 201.12, 257.22, 197.1, 252.27, 194.0]], "area": 10422.026000000009, "iscrowd": 0, "image_id": 35535, "bbox": [251.03, 159.73, 168.2, 164.46], "category_id": 1, "id": 449662}, {"segmentation": [[176.5, 532.54, 213.81, 625.82, 532.38, 631.56, 515.16, 575.59, 525.2, 542.59, 497.94, 488.06, 457.76, 351.74, 439.1, 288.6, 417.58, 268.51, 397.49, 259.9, 396.05, 257.03, 387.44, 231.2, 386.01, 212.54, 386.01, 208.24, 387.44, 189.58, 408.97, 175.23, 421.88, 163.75, 407.53, 152.28, 391.75, 152.28, 383.14, 147.97, 357.31, 104.92, 308.52, 96.31, 271.21, 96.31, 233.9, 109.23, 215.25, 120.71, 202.33, 147.97, 198.03, 182.41, 195.16, 209.67, 206.64, 246.98, 228.16, 275.68, 253.99, 278.55, 268.34, 288.6, 256.86, 311.56, 218.12, 335.95, 169.33, 317.3, 144.93, 307.25, 120.54, 307.25, 77.49, 310.12, 54.53, 318.73, 34.44, 327.34, 33.0, 337.39, 61.7, 370.39, 68.88, 380.44, 74.62, 379.0, 88.97, 397.66, 94.71, 429.23, 84.66, 465.1, 87.53, 518.19, 96.14, 551.2, 116.23, 555.5, 139.19, 554.07, 172.2, 548.33]], "area": 159635.3481499999, "iscrowd": 0, "image_id": 142357, "bbox": [33.0, 96.31, 499.38, 535.25], "category_id": 1, "id": 449684}, {"segmentation": [[190.88, 121.06, 200.4, 132.66, 200.4, 145.91, 199.57, 150.47, 199.57, 160.4, 195.84, 160.82, 191.7, 169.51, 199.16, 172.83, 209.51, 187.32, 214.89, 187.74, 226.08, 230.39, 223.18, 249.03, 208.68, 271.8, 216.55, 291.68, 219.45, 325.64, 223.18, 334.33, 222.76, 350.49, 215.31, 352.14, 214.48, 392.31, 216.14, 415.5, 220.28, 432.07, 246.78, 447.39, 249.27, 453.19, 225.25, 455.67, 196.67, 452.36, 196.26, 440.76, 196.67, 432.48, 197.09, 410.12, 192.12, 391.9, 187.98, 363.74, 182.18, 354.21, 173.07, 332.68, 167.68, 346.34, 152.36, 349.24, 136.63, 375.33, 123.37, 399.77, 118.4, 419.23, 112.19, 451.94, 79.89, 454.43, 73.27, 447.8, 100.18, 429.58, 109.29, 391.9, 113.85, 354.63, 117.58, 348.41, 116.75, 319.01, 113.43, 309.49, 122.96, 299.96, 132.07, 263.52, 132.07, 254.41, 124.2, 249.85, 125.44, 235.77, 125.86, 211.34, 139.11, 184.84, 154.85, 175.73, 164.79, 165.79, 166.86, 163.3, 166.44, 158.75, 160.64, 157.92, 160.64, 147.15, 162.3, 133.07, 170.58, 120.65, 181.35, 120.23, 193.36, 120.65]], "area": 23191.982600000007, "iscrowd": 0, "image_id": 288694, "bbox": [73.27, 120.23, 176.0, 335.44], "category_id": 1, "id": 449894}, {"segmentation": [[623.92, 255.55, 625.95, 241.53, 629.0, 239.4, 629.1, 233.92, 629.6, 229.96, 623.92, 230.77, 621.38, 244.68, 617.01, 249.25, 618.53, 253.42, 621.78, 258.7], [632.35, 216.35, 629.3, 211.98, 629.71, 208.43, 628.69, 203.65, 623.92, 203.75, 623.51, 208.53, 625.24, 213.71, 628.39, 215.13]], "area": 212.17500000000086, "iscrowd": 0, "image_id": 333324, "bbox": [617.01, 203.65, 15.34, 55.05], "category_id": 1, "id": 450137}, {"segmentation": [[457.0, 168.27, 457.0, 168.27, 378.25, 212.85, 378.25, 212.85, 359.55, 227.24, 349.48, 277.57, 343.73, 323.6, 398.38, 355.24, 418.52, 395.51, 425.71, 455.91, 428.58, 503.37, 388.31, 529.26, 379.69, 585.35, 401.26, 635.69, 451.6, 640.0]], "area": 29019.642150000007, "iscrowd": 0, "image_id": 140115, "bbox": [343.73, 168.27, 113.27, 471.73], "category_id": 1, "id": 450164}, {"segmentation": [[175.35, 204.53, 156.85, 198.37, 146.27, 193.08, 139.22, 186.03, 133.06, 159.59, 130.41, 133.16, 132.17, 117.3, 122.48, 113.77, 88.12, 100.56, 74.9, 98.79, 66.09, 90.86, 61.68, 88.22, 59.04, 77.65, 66.97, 72.36, 76.66, 74.12, 119.84, 89.1, 137.46, 91.74, 159.49, 75.0, 171.83, 70.6, 188.57, 75.0, 191.21, 82.93, 188.57, 104.08, 189.45, 115.54, 203.55, 134.04, 207.96, 141.97, 229.98, 149.02, 242.32, 144.61, 245.85, 156.07, 249.37, 171.93, 244.96, 183.39, 227.34, 190.43, 213.24, 189.55, 192.98, 197.48]], "area": 11229.50175, "iscrowd": 0, "image_id": 434193, "bbox": [59.04, 70.6, 190.33, 133.93], "category_id": 1, "id": 450256}, {"segmentation": [[397.29, 414.51, 397.29, 402.35, 404.38, 401.34, 398.3, 341.54, 409.45, 326.34, 407.42, 317.22, 421.61, 290.87, 422.62, 278.71, 415.53, 255.4, 406.41, 246.28, 409.45, 229.05, 418.57, 219.93, 413.5, 211.82, 401.34, 218.91, 395.26, 207.76, 392.22, 199.66, 392.22, 185.47, 387.15, 169.25, 399.31, 159.12, 426.68, 156.08, 445.93, 167.22, 447.96, 192.56, 443.91, 201.68, 448.97, 209.79, 467.22, 214.86, 479.38, 240.2, 485.46, 257.42, 489.51, 274.65, 484.44, 298.98, 491.54, 312.15, 486.47, 319.25, 485.46, 327.36, 489.51, 344.58, 491.54, 351.68, 493.57, 361.81, 502.69, 373.98, 520.93, 387.15, 527.01, 400.33, 535.12, 401.34, 536.13, 408.43, 522.96, 416.54, 515.86, 420.6, 459.11, 348.64, 453.03, 337.49, 432.76, 345.6, 427.69, 348.64, 428.7, 420.6, 414.51, 420.6, 403.37, 418.57, 398.3, 413.5]], "area": 16267.24635, "iscrowd": 0, "image_id": 288659, "bbox": [387.15, 156.08, 148.98, 264.52], "category_id": 1, "id": 450313}, {"segmentation": [[414.64, 282.09, 407.57, 273.13, 408.51, 233.99, 420.3, 227.86, 418.89, 216.06, 432.56, 218.42, 430.2, 229.74, 439.17, 234.46, 445.3, 256.15, 441.52, 262.76, 449.07, 270.3, 445.3, 277.85, 417.94, 281.15]], "area": 1866.3826500000002, "iscrowd": 0, "image_id": 385701, "bbox": [407.57, 216.06, 41.5, 66.03], "category_id": 1, "id": 450813}, {"segmentation": [[391.74, 327.84, 395.35, 320.62, 407.99, 321.82, 426.65, 326.64, 420.63, 455.44, 420.03, 487.94, 398.96, 483.72, 386.32, 466.87, 386.32, 456.64, 382.11, 459.05, 362.85, 454.84, 360.44, 451.22, 361.65, 437.98, 365.26, 430.16, 376.09, 425.34, 390.54, 419.93, 388.13, 394.65, 387.4, 377.66, 387.4, 369.62, 384.11, 359.02, 382.28, 356.47, 383.38, 353.91, 380.46, 343.31, 381.92, 332.35, 389.59, 328.33, 392.51, 324.68]], "area": 6590.8087, "iscrowd": 0, "image_id": 399441, "bbox": [360.44, 320.62, 66.21, 167.32], "category_id": 1, "id": 451058}, {"segmentation": [[226.35, 42.23, 229.73, 28.72, 234.23, 18.58, 238.74, 14.08, 244.37, 11.82, 254.5, 11.82, 268.02, 15.2, 271.4, 21.96, 277.03, 26.46, 277.03, 35.47, 271.4, 53.49, 262.39, 68.13, 256.76, 74.89, 246.84, 74.43, 246.17, 86.15, 248.87, 95.16, 252.25, 104.17, 253.38, 116.55, 253.38, 122.18, 265.77, 115.43, 271.4, 109.8, 277.03, 104.17, 282.66, 100.79, 284.91, 101.91, 290.54, 100.79, 293.92, 96.28, 297.3, 94.03, 302.93, 94.03, 302.93, 100.79, 288.29, 112.05, 284.91, 121.06, 279.28, 126.69, 272.52, 131.19, 262.39, 145.83, 257.88, 149.21, 256.76, 157.09, 257.88, 183.0, 254.5, 196.51, 254.5, 237.05, 250.0, 240.43, 246.62, 223.54, 238.74, 225.79, 235.36, 231.42, 234.23, 246.06, 220.72, 248.31, 219.59, 248.31, 217.34, 241.55, 212.84, 238.18, 210.59, 230.29, 216.22, 216.78, 204.95, 189.75, 203.83, 146.96, 204.95, 109.8, 209.46, 80.52, 218.24, 70.6, 225.23, 55.74, 226.35, 47.86]], "area": 11292.2192, "iscrowd": 0, "image_id": 161289, "bbox": [203.83, 11.82, 99.1, 236.49], "category_id": 1, "id": 451706}, {"segmentation": [[344.56, 279.34, 361.66, 274.13, 379.51, 268.19, 386.2, 262.24, 386.94, 250.34, 391.41, 237.7, 404.79, 222.09, 417.43, 216.88, 433.04, 223.57, 444.2, 237.7, 444.94, 247.37, 438.99, 259.26, 435.27, 271.9, 427.1, 283.8, 433.79, 288.26, 455.35, 314.29, 467.99, 374.75, 467.99, 385.9, 473.94, 388.88, 493.27, 385.16, 487.32, 390.36, 491.04, 403.75, 492.53, 411.93, 466.5, 420.85, 451.63, 426.05, 453.86, 414.16, 453.86, 405.98, 442.71, 402.26, 438.25, 402.26, 433.04, 402.26, 425.61, 403.0, 422.63, 405.98, 424.12, 411.18, 424.86, 419.36, 424.86, 427.54, 424.86, 434.29, 383.97, 449.16, 369.84, 454.37, 352.74, 441.73, 348.28, 438.75, 348.28, 412.73, 352.0, 392.65, 363.15, 389.68, 369.1, 379.27, 363.89, 359.94, 357.95, 351.76, 357.95, 340.6, 349.77, 322.76, 357.95, 319.04, 357.95, 311.61, 374.3, 304.92, 373.56, 303.43, 378.77, 296.74, 384.71, 290.04, 383.97, 285.58, 387.69, 278.89, 385.46, 273.69, 381.0, 274.43, 375.05, 275.92, 369.1, 277.4, 361.66, 278.15]], "area": 18692.543100000003, "iscrowd": 0, "image_id": 77841, "bbox": [344.56, 216.88, 148.71, 237.49], "category_id": 1, "id": 451832}, {"segmentation": [[196.31, 474.88, 162.88, 428.49, 143.46, 396.13, 132.67, 363.78, 143.46, 343.28, 155.33, 320.63, 168.27, 296.9, 170.43, 291.51, 181.21, 276.4, 195.24, 255.91, 202.79, 240.81, 202.79, 239.73, 210.34, 213.84, 222.2, 199.82, 234.07, 175.01, 241.62, 157.75, 254.56, 139.42, 262.11, 129.71, 264.27, 120.0, 275.06, 109.21, 293.39, 70.38, 300.94, 56.36, 309.57, 49.89, 327.91, 40.18, 354.88, 42.34, 371.06, 44.49, 380.76, 55.28, 400.18, 66.07, 409.89, 80.09, 421.75, 94.11, 433.62, 115.69, 449.8, 140.49, 456.27, 159.91, 472.45, 193.35, 492.94, 225.71, 505.89, 255.91, 517.75, 295.82, 532.85, 342.2, 546.88, 369.17, 550.11, 381.03, 559.82, 434.97, 550.11, 475.96, 195.24, 472.72]], "area": 124863.9407, "iscrowd": 0, "image_id": 194943, "bbox": [132.67, 40.18, 427.15, 435.78], "category_id": 1, "id": 452040}, {"segmentation": [[200.36, 381.26, 207.57, 415.86, 207.57, 425.95, 204.68, 461.98, 200.36, 498.02, 194.59, 522.52, 194.59, 554.23, 201.8, 585.95, 198.92, 626.31, 197.48, 633.51, 112.43, 629.19, 85.05, 632.07, 40.36, 633.51, 53.33, 613.33, 53.33, 604.68, 50.45, 588.83, 59.1, 571.53, 61.98, 554.23, 66.31, 534.05, 66.31, 515.32, 72.07, 498.02, 74.95, 483.6, 74.95, 459.1, 70.63, 437.48, 67.75, 427.39, 64.86, 408.65, 64.86, 375.5, 64.86, 355.32, 66.31, 335.14, 66.31, 317.84, 74.95, 280.36, 79.28, 261.62, 87.93, 251.53, 98.02, 241.44, 100.9, 237.12, 121.08, 225.59, 126.85, 221.26, 126.85, 205.41, 123.96, 193.87, 121.08, 182.34, 125.41, 160.72, 132.61, 139.1, 134.05, 134.77, 138.38, 127.57, 142.7, 124.68, 147.03, 123.24, 158.56, 121.8, 181.62, 127.57, 187.39, 130.45, 191.71, 139.1, 204.68, 153.51, 206.13, 162.16, 206.13, 167.93, 206.13, 176.58, 210.45, 205.41, 210.45, 222.7, 209.01, 234.23, 200.36, 241.44, 184.5, 254.41, 175.86, 263.06, 187.39, 258.74, 206.13, 280.36, 206.13, 299.1, 211.89, 323.6, 209.01, 368.29, 198.92, 379.82]], "area": 62102.94930000001, "iscrowd": 0, "image_id": 237514, "bbox": [40.36, 121.8, 171.53, 511.71], "category_id": 1, "id": 452158}, {"segmentation": [[327.91, 437.93, 272.9, 372.13, 240.54, 332.22, 217.89, 306.34, 198.47, 283.69, 179.06, 263.19, 198.47, 250.25, 208.18, 235.15, 203.87, 220.04, 189.84, 217.89, 182.29, 173.66, 166.11, 155.33, 152.09, 108.94, 125.12, 87.37, 87.37, 93.84, 67.96, 120.81, 56.09, 183.37, 47.46, 216.81, 63.64, 293.39, 73.35, 302.02, 84.13, 283.69, 91.69, 338.7, 101.39, 362.43, 124.04, 368.9, 197.39, 396.94, 214.65, 427.15, 241.62, 451.96, 272.9, 448.72, 261.03, 408.81, 302.02, 437.93, 311.73, 448.72, 335.46, 462.74, 345.17, 448.72]], "area": 43174.24925, "iscrowd": 0, "image_id": 392725, "bbox": [47.46, 87.37, 297.71, 375.37], "category_id": 1, "id": 452181}, {"segmentation": [[126.92, 213.81, 125.35, 208.3, 124.82, 202.01, 125.87, 196.76, 126.4, 193.35, 126.4, 188.1, 128.5, 181.55, 133.74, 179.45, 138.99, 182.86, 139.51, 187.58, 139.77, 190.46, 139.51, 194.4, 137.15, 197.55, 140.04, 199.38, 141.09, 201.22, 138.2, 201.74, 142.4, 204.63, 147.12, 211.45, 127.18, 213.28]], "area": 462.5644, "iscrowd": 0, "image_id": 549519, "bbox": [124.82, 179.45, 22.3, 34.36], "category_id": 1, "id": 452513}, {"segmentation": [[37.23, 577.14, 63.0, 548.51, 68.72, 504.12, 68.72, 425.37, 63.0, 415.35, 80.18, 286.49, 138.88, 256.42, 118.84, 187.7, 133.15, 149.04, 123.13, 117.54, 128.86, 71.73, 164.65, 10.16, 201.88, 3.0, 263.45, 11.59, 299.24, 40.23, 307.83, 96.07, 323.58, 179.11, 326.44, 239.24, 309.26, 260.72, 337.9, 262.15, 382.28, 303.67, 389.44, 370.97, 408.05, 456.87, 379.42, 476.92, 353.65, 514.14, 332.17, 528.46, 337.9, 580.0, 335.03, 627.25, 107.38, 631.55, 87.34, 614.37, 71.59, 628.68, 57.27, 628.68, 41.52, 611.5]], "area": 156222.52614999996, "iscrowd": 0, "image_id": 572326, "bbox": [37.23, 3.0, 370.82, 628.55], "category_id": 1, "id": 453029}, {"segmentation": [[393.76, 154.02, 400.46, 138.62, 407.82, 150.0, 408.49, 166.75, 399.79, 173.44, 390.41, 166.08, 389.07, 158.71, 387.73, 152.01, 394.43, 150.0]], "area": 439.5033499999999, "iscrowd": 0, "image_id": 485882, "bbox": [387.73, 138.62, 20.76, 34.82], "category_id": 1, "id": 453255}, {"segmentation": [[404.58, 197.81, 411.87, 211.49, 411.87, 223.81, 415.52, 251.62, 410.05, 249.34, 407.77, 251.62, 403.66, 265.76, 400.93, 279.44, 401.38, 283.54, 405.49, 285.82, 406.86, 288.56, 408.68, 288.56, 409.59, 290.38, 388.16, 293.11, 387.25, 287.19, 389.07, 278.07, 386.79, 271.68, 382.69, 264.84, 383.6, 260.28, 383.6, 257.55, 383.6, 254.36, 379.95, 244.78, 380.41, 238.4, 382.23, 232.93, 382.23, 226.54, 379.04, 218.33, 378.59, 209.21, 379.95, 206.02, 383.15, 202.37, 384.06, 200.55, 385.43, 195.99, 385.88, 194.62, 386.34, 185.96, 385.88, 182.77, 385.88, 180.03, 387.25, 178.66, 388.16, 176.84, 389.99, 175.02, 399.1, 175.47, 400.02, 181.86, 400.93, 188.24, 404.58, 197.36, 404.58, 197.36]], "area": 2732.6447999999996, "iscrowd": 0, "image_id": 483948, "bbox": [378.59, 175.02, 36.93, 118.09], "category_id": 1, "id": 453522}, {"segmentation": [[80.01, 575.49, 79.41, 538.33, 80.23, 502.05, 75.29, 486.38, 75.08, 481.87, 91.6, 461.4, 95.54, 460.69, 95.9, 462.84, 90.88, 469.3, 81.19, 480.79, 84.78, 489.4, 89.44, 489.04, 89.08, 475.4, 95.9, 471.81, 102.01, 473.61, 104.52, 480.07, 102.72, 485.81, 100.21, 487.97, 102.37, 489.76, 120.31, 464.99, 122.83, 467.15, 122.11, 471.46, 106.31, 496.94, 105.24, 528.89, 105.24, 543.97, 107.39, 565.15, 106.67, 572.68, 100.57, 573.4, 103.8, 576.63, 100.93, 595.66, 102.01, 599.97, 98.47, 602.83, 95.5, 573.46, 91.28, 573.61, 89.1, 601.58, 87.07, 602.52, 86.44, 600.17, 85.97, 597.67, 84.1, 575.19, 81.13, 574.86]], "area": 3090.83905, "iscrowd": 0, "image_id": 374185, "bbox": [75.08, 460.69, 47.75, 142.14], "category_id": 1, "id": 453566}, {"segmentation": [[466.9, 56.62, 458.81, 56.99, 446.32, 62.51, 442.64, 66.18, 437.49, 73.17, 434.92, 81.62, 434.92, 87.14, 436.02, 93.39, 435.65, 96.7, 434.55, 103.31, 435.65, 106.25, 436.02, 111.77, 435.65, 125.0, 433.08, 136.03, 428.67, 148.53, 429.4, 154.05, 425.36, 166.91, 423.52, 174.27, 425.73, 177.57, 428.67, 180.52, 433.45, 184.56, 433.45, 190.44, 433.08, 192.65, 405.14, 202.21, 390.07, 204.04, 372.79, 211.4, 369.48, 215.81, 370.95, 217.28, 375.36, 218.38, 379.77, 213.97, 387.86, 214.7, 388.6, 217.65, 386.76, 219.48, 388.6, 222.79, 388.6, 223.9, 394.85, 222.42, 398.89, 216.91, 427.57, 213.97, 433.08, 214.7, 432.35, 222.79, 429.04, 226.84, 426.83, 234.19, 427.2, 241.17, 424.99, 254.78, 422.42, 262.5, 421.32, 284.55, 422.05, 305.51, 422.79, 328.67, 425.73, 343.74, 426.46, 352.93, 430.51, 375.0, 432.35, 375.0, 459.92, 374.99, 459.92, 363.23, 455.87, 349.63, 453.67, 340.8, 454.77, 327.57, 455.51, 317.27, 454.04, 309.92, 458.81, 310.29, 462.49, 333.82, 464.7, 356.98, 469.48, 368.74, 476.83, 375.0, 499.99, 374.62, 499.25, 355.14, 497.05, 343.74, 495.21, 320.21, 498.15, 313.23, 500.0, 291.17, 500.0, 242.28, 499.62, 237.5, 497.42, 235.66, 498.52, 231.98, 497.78, 231.25, 499.25, 226.47, 498.52, 224.26, 497.05, 222.42, 498.15, 218.75, 498.15, 215.07, 497.05, 213.23, 497.78, 209.19, 498.15, 206.98, 497.78, 201.47, 499.25, 196.32, 499.62, 193.01, 500.0, 143.75, 495.95, 135.66, 494.11, 118.02, 495.21, 102.21, 494.47, 87.5, 491.9, 71.7, 485.65, 65.45, 478.67, 61.03, 470.21, 56.99]], "area": 21981.043999999998, "iscrowd": 0, "image_id": 207463, "bbox": [369.48, 56.62, 130.52, 318.38], "category_id": 1, "id": 453931}, {"segmentation": [[427.13, 295.24, 417.75, 296.25, 417.24, 291.69, 413.69, 290.67, 409.89, 274.44, 410.9, 269.63, 414.71, 260.24, 407.86, 261.0, 397.46, 260.24, 383.77, 259.23, 383.52, 270.39, 383.77, 277.23, 384.78, 286.87, 389.6, 291.36, 397.11, 297.09, 398.49, 299.06, 399.28, 303.41, 396.32, 304.0, 386.24, 303.41, 380.51, 296.3, 377.74, 288.59, 377.15, 283.85, 373.4, 275.75, 372.41, 269.82, 370.83, 267.85, 368.85, 263.3, 369.25, 251.45, 368.85, 246.31, 364.11, 236.44, 366.41, 231.78, 365.71, 225.72, 368.27, 215.92, 371.3, 211.95, 372.0, 207.28, 380.17, 196.32, 383.18, 192.68, 384.85, 187.66, 388.37, 180.46, 390.04, 172.27, 398.73, 155.69, 406.25, 147.66, 409.1, 143.14, 405.42, 140.13, 403.24, 136.95, 405.75, 137.79, 409.6, 138.63, 407.76, 127.92, 408.67, 124.35, 410.65, 120.38, 418.86, 122.22, 419.29, 127.47, 420.56, 128.74, 422.12, 131.15, 419.71, 137.24, 418.86, 142.48, 417.02, 144.89, 413.48, 146.45, 405.15, 165.08, 401.71, 180.66, 403.24, 182.69, 399.69, 187.26, 399.69, 192.33, 403.49, 199.68, 407.8, 206.27, 408.1, 208.51, 407.9, 214.83, 404.86, 216.2, 405.52, 221.61, 404.31, 222.6, 405.08, 224.59, 408.61, 225.36, 409.94, 224.48, 420.42, 224.04, 431.68, 226.25, 433.45, 227.13, 436.1, 226.47, 448.9, 227.13, 451.55, 227.46, 451.11, 229.56, 452.87, 232.32, 453.09, 233.31, 458.5, 234.86, 465.47, 235.64, 476.21, 249.69, 487.51, 264.57, 492.19, 268.98, 488.61, 272.84, 479.52, 279.17, 469.67, 281.61, 465.82, 280.78, 465.15, 276.43, 459.13, 268.23, 456.62, 258.86, 452.6, 256.19, 446.58, 254.51, 442.57, 250.16, 434.37, 251.0, 434.04, 258.19, 432.7, 265.22, 432.7, 272.41, 435.71, 277.77, 436.04, 280.95, 436.04, 284.79, 438.05, 289.14, 438.89, 291.65, 428.6, 294.38]], "area": 7077.2319499999985, "iscrowd": 0, "image_id": 39958, "bbox": [364.11, 120.38, 128.08, 183.62], "category_id": 1, "id": 454037}, {"segmentation": [[67.91, 151.92, 115.06, 155.19, 128.81, 190.55, 128.15, 215.44, 124.88, 233.77, 117.67, 247.53, 101.96, 261.93, 96.72, 263.9, 99.99, 280.92, 109.82, 309.74, 125.53, 335.27, 126.19, 344.44, 169.41, 337.89, 185.12, 332.66, 199.53, 343.79, 219.18, 336.58, 235.55, 334.62, 237.51, 340.51, 225.72, 346.41, 221.14, 358.85, 196.26, 371.29, 191.02, 377.18, 179.89, 384.39, 191.67, 398.14, 183.81, 448.56, 191.02, 456.42, 230.31, 459.7, 225.07, 480.0, 223.76, 480.0, 153.17, 472.27, 79.82, 462.56, 79.82, 455.01, 135.91, 448.54, 143.46, 438.83, 140.22, 429.12, 93.84, 430.2, 70.11, 433.44, 40.99, 428.04, 3.24, 382.74, 0.0, 286.74, 38.83, 232.81, 35.6, 187.51, 59.33, 156.22]], "area": 37959.96685, "iscrowd": 0, "image_id": 115055, "bbox": [0.0, 151.92, 237.51, 328.08], "category_id": 1, "id": 454829}, {"segmentation": [[260.94, 293.26, 268.46, 283.59, 266.31, 276.08, 258.79, 261.04, 245.91, 239.57, 245.91, 229.9, 230.87, 211.65, 230.87, 203.06, 228.72, 176.21, 223.36, 161.18, 222.28, 162.25, 211.54, 176.21, 204.03, 183.73, 198.66, 183.73, 191.14, 182.65, 85.91, 219.16, 84.83, 218.09, 85.91, 214.87, 188.99, 177.28, 190.07, 172.99, 184.7, 168.69, 193.29, 168.69, 200.81, 168.69, 204.03, 161.18, 221.21, 134.33, 226.58, 126.82, 226.58, 116.08, 223.36, 104.26, 226.58, 94.6, 236.24, 91.38, 244.83, 91.38, 251.28, 97.82, 251.28, 104.26, 252.35, 109.63, 252.35, 118.22, 251.28, 125.74, 264.16, 125.74, 277.05, 135.41, 289.93, 155.81, 309.26, 182.65, 313.56, 182.65, 322.15, 176.21, 322.15, 179.43, 315.7, 184.8, 322.15, 185.88, 326.44, 193.39, 325.37, 199.84, 323.22, 200.91, 382.28, 273.93, 387.65, 277.15, 386.58, 283.59, 382.28, 282.52, 379.06, 278.22, 316.78, 199.84, 303.89, 188.02, 268.46, 154.73, 268.46, 172.99, 275.97, 182.65, 285.64, 205.2, 304.97, 237.42, 325.37, 277.15, 325.37, 282.52, 325.37, 285.74, 326.44, 287.89, 325.37, 297.55, 314.63, 310.44, 310.34, 310.44, 304.97, 309.37, 302.82, 304.0, 302.82, 297.55, 310.34, 292.18, 311.41, 286.82, 307.11, 278.22, 298.52, 268.56, 287.79, 250.31, 283.49, 241.71, 271.68, 226.68, 262.01, 214.87, 267.38, 234.2, 278.12, 252.45, 278.12, 267.49, 280.27, 269.63, 284.56, 275.0, 288.86, 279.3, 284.56, 285.74, 279.19, 291.11, 277.05, 297.55, 266.31, 299.7, 263.09, 298.63]], "area": 11765.054, "iscrowd": 0, "image_id": 435402, "bbox": [84.83, 91.38, 302.82, 219.06], "category_id": 1, "id": 455190}, {"segmentation": [[338.94, 286.26, 334.9, 284.4, 331.8, 283.15, 330.25, 283.46, 327.14, 285.02, 324.35, 287.81, 321.86, 290.29, 320.62, 292.47, 319.38, 297.43, 320.62, 301.16, 321.24, 312.65, 322.17, 314.51, 321.86, 318.55, 314.41, 327.24, 310.38, 329.1, 315.34, 333.76, 368.74, 336.86, 363.46, 328.17, 359.12, 324.13, 351.98, 321.65, 346.08, 321.65, 345.15, 319.17, 347.32, 315.44, 347.32, 312.03, 348.25, 309.54, 346.7, 306.44, 346.7, 305.82, 348.87, 303.33, 347.32, 301.78, 347.32, 297.75, 347.94, 294.64, 346.39, 288.12, 342.66, 285.64]], "area": 1592.8888499999996, "iscrowd": 0, "image_id": 156221, "bbox": [310.38, 283.15, 58.36, 53.71], "category_id": 1, "id": 455245}, {"segmentation": [[540.76, 625.18, 550.83, 559.02, 553.71, 515.88, 570.97, 510.12, 566.65, 455.47, 484.67, 400.82, 490.43, 369.18, 499.06, 346.17, 535.01, 298.71, 506.25, 231.11, 428.58, 208.1, 363.87, 242.62, 362.43, 282.89, 348.04, 327.47, 356.67, 364.86, 388.31, 389.31, 407.01, 410.89, 382.56, 426.71, 340.85, 432.46, 322.16, 442.53, 317.84, 469.85, 319.28, 491.43, 310.65, 533.13, 294.83, 577.72, 291.96, 610.8, 299.15, 628.05]], "area": 77771.23185, "iscrowd": 0, "image_id": 165388, "bbox": [291.96, 208.1, 279.01, 419.95], "category_id": 1, "id": 455264}, {"segmentation": [[515.6, 223.28, 549.14, 227.34, 568.76, 255.64, 594.34, 275.06, 596.49, 286.92, 596.49, 297.71, 597.57, 311.73, 597.57, 333.3, 612.67, 347.33, 619.15, 358.11, 635.33, 371.06, 640.0, 374.29, 638.56, 422.83, 587.87, 374.29, 572.76, 361.35, 567.37, 358.11, 557.66, 363.51, 551.19, 360.27, 543.64, 350.56, 536.09, 353.8, 536.09, 363.51, 540.4, 417.44, 546.88, 433.62, 544.72, 443.33, 505.89, 443.33, 491.87, 441.17, 492.94, 429.3, 502.65, 421.75, 495.1, 405.57, 495.1, 369.98, 495.1, 341.93, 496.18, 332.22, 510.2, 325.75, 518.83, 318.2, 522.07, 312.81, 516.67, 304.18, 501.57, 293.39, 489.71, 281.53, 483.24, 262.11, 475.69, 253.48, 469.21, 252.4, 469.21, 243.78, 467.06, 231.91, 459.51, 216.81, 456.27, 201.71, 473.53, 188.76, 488.63, 185.53, 503.73, 189.84, 511.28, 195.24, 516.67, 201.71, 516.67, 212.49, 515.6, 222.2]], "area": 20544.75019999999, "iscrowd": 0, "image_id": 184877, "bbox": [456.27, 185.53, 183.73, 257.8], "category_id": 1, "id": 455552}, {"segmentation": [[265.8, 319.53, 282.11, 224.53, 288.82, 160.24, 295.54, 121.86, 276.35, 97.87, 240.85, 109.39, 229.33, 95.0, 245.64, 86.36, 298.42, 66.21, 305.14, 60.45, 320.49, 35.5, 336.8, 26.87, 358.87, 43.18, 355.99, 59.49, 390.54, 60.45, 450.99, 68.13, 468.26, 58.53, 483.61, 61.41, 455.79, 73.89, 364.63, 93.08, 363.67, 177.52, 355.03, 243.73, 359.83, 311.85, 354.07, 332.0, 327.21, 335.84, 338.72, 316.65, 332.0, 199.59, 305.14, 267.71, 307.06, 283.07, 302.26, 278.27]], "area": 21419.135699999995, "iscrowd": 0, "image_id": 5339, "bbox": [229.33, 26.87, 254.28, 308.97], "category_id": 1, "id": 455680}, {"segmentation": [[160.99, 338.88, 172.26, 307.48, 152.94, 255.97, 152.13, 243.09, 162.6, 188.35, 165.82, 182.72, 181.91, 171.45, 181.91, 159.38, 195.6, 150.52, 207.67, 156.96, 212.5, 165.01, 206.06, 177.09, 203.65, 186.74, 199.62, 186.74, 209.28, 205.26, 222.16, 198.01, 214.11, 185.13, 225.38, 189.96, 235.04, 193.18, 218.94, 220.55, 209.28, 231.02, 193.99, 218.14, 200.43, 254.36, 215.72, 310.7, 204.45, 314.73, 196.4, 346.93, 199.62, 354.17, 180.3, 352.56, 189.96, 313.92, 185.94, 312.31, 180.3, 340.49, 173.87, 346.93, 156.16, 346.12]], "area": 8486.177200000002, "iscrowd": 0, "image_id": 562845, "bbox": [152.13, 150.52, 82.91, 203.65], "category_id": 1, "id": 455768}, {"segmentation": [[367.55, 209.36, 383.41, 196.83, 379.24, 182.64, 396.77, 176.8, 410.97, 172.62, 421.82, 172.62, 424.32, 180.14, 447.7, 187.65, 462.73, 194.33, 466.07, 214.37, 470.25, 229.4, 474.42, 241.92, 478.59, 247.76, 471.92, 258.62, 474.42, 271.14, 474.42, 282.83, 449.37, 294.52, 445.2, 309.55, 461.06, 312.89, 473.59, 321.24, 484.44, 327.08, 489.45, 315.39, 504.48, 311.22, 516.17, 307.88, 541.21, 294.52, 547.06, 300.37, 553.74, 309.55, 553.74, 327.92, 550.4, 339.61, 513.66, 332.93, 503.64, 337.94, 497.8, 356.31, 495.29, 367.16, 478.59, 380.52, 473.59, 391.37, 447.7, 380.52, 446.87, 373.84, 417.64, 382.19, 391.76, 355.47, 380.07, 322.07, 377.57, 307.04, 390.93, 292.02, 400.11, 283.67, 387.59, 271.14, 369.22, 246.1, 362.54, 226.06]], "area": 20327.350799999997, "iscrowd": 0, "image_id": 9025, "bbox": [362.54, 172.62, 191.2, 218.75], "category_id": 1, "id": 455816}, {"segmentation": [[396.29, 1.92, 397.25, 24.95, 393.42, 40.3, 401.09, 84.44, 427.96, 91.16, 439.47, 90.2, 439.47, 116.11, 445.23, 161.2, 445.23, 196.71, 451.95, 226.45, 461.54, 251.4, 461.54, 252.36, 463.46, 279.23, 476.9, 283.07, 478.82, 254.28, 481.69, 239.89, 472.1, 214.94, 472.1, 197.67, 481.69, 183.27, 515.28, 190.95, 495.13, 254.28, 506.64, 264.84, 510.48, 279.23, 520.08, 284.03, 528.71, 283.07, 521.04, 251.4, 539.27, 185.19, 516.24, 147.77, 515.28, 97.87, 521.04, 79.64, 553.66, 76.76, 573.81, 68.13, 586.29, 43.18, 587.24, 20.15, 591.08, 7.68, 594.92, 0.0, 590.12, 1.92, 573.81, 0.0, 569.01, 12.47, 567.09, 27.83, 557.5, 50.86, 531.59, 45.1, 511.44, 35.5, 496.09, 39.34, 492.25, 24.95, 490.33, 24.95, 485.53, 3.84, 479.78, 0.96, 452.91, 0.96, 445.23, 16.31, 453.87, 35.5, 451.95, 41.26, 450.99, 47.02, 437.56, 47.98, 427.0, 58.53, 420.28, 68.13, 413.57, 24.95, 409.73, 9.6, 416.44, 0.0]], "area": 22389.403, "iscrowd": 0, "image_id": 237841, "bbox": [393.42, 0.0, 201.5, 284.03], "category_id": 1, "id": 456629}, {"segmentation": [[82.16, 480.0, 344.86, 480.0, 342.7, 451.35, 345.95, 404.86, 356.76, 385.41, 358.92, 344.32, 367.57, 324.86, 369.73, 276.22, 369.73, 230.81, 364.32, 120.54, 339.46, 62.16, 301.62, 47.03, 257.3, 40.54, 232.43, 45.95, 211.89, 63.24, 196.76, 82.7, 185.95, 119.46, 172.97, 152.97, 187.03, 185.41, 164.32, 208.11, 177.3, 237.3, 123.24, 252.43, 97.3, 301.08, 89.73, 354.05, 71.35, 422.16, 64.86, 462.16]], "area": 97746.62084999999, "iscrowd": 0, "image_id": 211622, "bbox": [64.86, 40.54, 304.87, 439.46], "category_id": 1, "id": 457075}, {"segmentation": [[387.13, 141.99, 368.19, 149.1, 362.87, 177.51, 439.81, 176.91, 442.17, 166.85, 426.79, 134.89, 407.26, 137.26, 410.81, 124.24, 406.66, 113.59, 394.23, 108.26, 385.36, 110.63, 383.58, 126.61, 382.99, 137.26]], "area": 3346.9965500000008, "iscrowd": 0, "image_id": 502517, "bbox": [362.87, 108.26, 79.3, 69.25], "category_id": 1, "id": 457217}, {"segmentation": [[322.6, 288.86, 323.32, 279.52, 319.73, 268.04, 319.73, 257.27, 316.86, 253.68, 314.71, 242.19, 308.96, 235.73, 309.68, 232.14, 308.24, 225.68, 306.09, 222.09, 304.65, 238.6, 303.94, 253.68, 306.81, 260.14, 301.07, 285.98, 297.48, 300.34, 300.35, 321.88, 301.07, 331.93, 295.32, 332.65, 292.45, 326.19, 294.6, 337.68, 284.55, 336.24, 283.12, 326.91, 285.27, 320.45, 286.71, 308.96, 290.3, 298.19, 288.86, 288.14, 287.42, 275.93, 286.71, 267.32, 287.42, 253.68, 290.3, 224.96, 283.12, 225.68, 278.81, 209.16, 279.53, 201.26, 287.42, 191.93, 293.89, 186.19, 306.09, 175.42, 310.4, 169.67, 302.5, 163.93, 298.91, 157.47, 295.32, 153.16, 291.01, 140.24, 290.3, 132.34, 293.89, 120.85, 298.91, 115.83, 304.65, 113.67, 313.99, 111.52, 322.6, 114.39, 327.63, 122.29, 331.22, 131.62, 334.09, 135.21, 335.53, 143.11, 332.66, 151.72, 331.22, 156.75, 331.94, 159.62, 339.12, 160.34, 351.32, 162.49, 359.22, 163.21, 369.27, 163.21, 370.71, 164.65, 372.86, 167.52, 372.14, 171.11, 366.4, 181.88, 362.81, 190.49, 362.81, 202.7, 365.68, 210.6, 367.84, 221.37, 372.14, 229.26, 377.89, 234.29, 380.76, 239.32, 386.5, 250.8, 387.22, 253.68, 379.62, 273.19, 379.62, 287.38, 377.26, 299.2, 377.26, 301.57, 376.7, 304.37, 371.1, 306.6, 365.51, 306.05, 359.92, 309.96, 357.12, 312.2, 351.53, 313.32, 333.62, 311.64, 343.13, 322.83, 349.85, 327.3, 355.44, 330.66, 364.39, 337.93, 368.31, 342.41, 368.31, 347.44, 357.68, 351.36, 352.64, 355.83, 344.25, 360.87, 334.18, 362.55, 320.76, 367.58, 316.28, 362.55, 312.93, 353.6, 312.93, 344.65, 312.93, 337.37, 314.6, 328.42, 312.37, 301.57, 315.72, 294.3, 318.52, 289.26, 319.64, 285.91, 320.76, 284.79]], "area": 15699.764050000007, "iscrowd": 0, "image_id": 275917, "bbox": [278.81, 111.52, 108.41, 256.06], "category_id": 1, "id": 457515}, {"segmentation": [[463.7, 359.66, 466.89, 348.1, 458.92, 350.1, 456.53, 338.94, 462.91, 333.36, 472.87, 332.56, 481.24, 326.18, 478.85, 315.82, 482.44, 305.45, 494.4, 303.46, 498.78, 305.05, 500.0, 352.09, 498.38, 354.08, 469.29, 356.48, 468.49, 358.07]], "area": 1448.2195999999994, "iscrowd": 0, "image_id": 453734, "bbox": [456.53, 303.46, 43.47, 56.2], "category_id": 1, "id": 457640}, {"segmentation": [[202.17, 470.35, 163.66, 481.35, 184.29, 449.72, 193.91, 411.21, 160.91, 357.57, 138.9, 338.32, 71.51, 336.94, 27.51, 372.7, 0.0, 422.21, 5.5, 486.85, 28.88, 500.6, 19.25, 590.0, 127.9, 590.0, 148.53, 543.24]], "area": 37547.30555, "iscrowd": 0, "image_id": 434047, "bbox": [0.0, 336.94, 202.17, 253.06], "category_id": 1, "id": 457944}, {"segmentation": [[97.44, 311.25, 116.54, 298.83, 133.74, 298.83, 148.06, 298.83, 152.84, 298.83, 157.62, 295.01, 161.44, 286.41, 173.86, 279.72, 181.5, 273.04, 186.28, 255.84, 186.28, 234.83, 194.87, 211.9, 198.69, 207.12, 193.92, 158.4, 209.2, 138.34, 235.95, 116.37, 247.41, 110.64, 268.43, 109.69, 286.58, 118.28, 296.13, 133.57, 303.77, 142.17, 373.51, 167.96, 407.89, 173.69, 430.82, 165.09, 440.37, 160.31, 473.81, 165.09, 494.82, 168.91, 513.93, 179.42, 533.03, 194.7, 553.09, 203.3, 579.84, 215.72, 596.08, 223.36, 619.01, 207.12, 640.0, 195.66, 640.0, 284.5, 532.08, 317.93, 442.28, 320.8, 454.7, 346.59, 433.69, 350.41, 390.7, 355.19, 305.68, 363.78, 263.65, 368.56, 257.92, 355.19, 259.83, 345.63, 271.29, 339.9, 277.98, 336.08, 235.95, 322.71, 184.36, 322.71, 167.17, 326.53, 155.71, 339.9, 143.29, 334.17, 124.18, 325.57, 101.26, 316.98, 89.79, 317.93]], "area": 77821.9951, "iscrowd": 0, "image_id": 424536, "bbox": [89.79, 109.69, 550.21, 258.87], "category_id": 1, "id": 458044}, {"segmentation": [[221.57, 146.79, 225.39, 117.18, 243.54, 109.54, 263.6, 110.49, 315.17, 103.81, 360.06, 101.9, 402.08, 113.36, 426.91, 149.65, 414.49, 178.3, 388.71, 205.05, 360.06, 227.97, 345.73, 234.65, 353.37, 265.21, 356.24, 293.87, 361.01, 320.61, 369.61, 349.26, 335.22, 357.85, 306.57, 354.03, 303.71, 349.26, 297.98, 337.8, 294.16, 336.84, 298.93, 327.29, 324.72, 312.01, 324.72, 268.08, 315.17, 230.83, 317.08, 218.42, 271.24, 210.78, 244.49, 207.91, 232.08, 203.14, 235.9, 185.94, 252.13, 185.94, 278.88, 196.45, 292.25, 197.4, 274.1, 180.21, 265.51, 155.38, 263.6, 172.57, 244.49, 167.8, 226.35, 154.43]], "area": 24038.892400000004, "iscrowd": 0, "image_id": 395040, "bbox": [221.57, 101.9, 205.34, 255.95], "category_id": 1, "id": 458814}, {"segmentation": [[392.74, 237.58, 411.41, 238.86, 413.99, 230.49, 411.41, 206.03, 417.85, 172.55, 415.27, 162.89, 421.07, 144.22, 413.99, 137.14, 410.12, 131.99, 408.19, 120.4, 401.11, 120.4, 395.96, 124.9, 395.32, 135.85, 397.25, 139.07, 392.74, 139.71, 391.45, 130.05, 384.37, 132.63, 382.44, 143.58, 391.45, 152.59, 391.45, 160.32, 388.23, 172.55, 390.81, 175.12, 393.38, 233.07, 388.88, 236.29]], "area": 2735.0668500000015, "iscrowd": 0, "image_id": 560350, "bbox": [382.44, 120.4, 38.63, 118.46], "category_id": 1, "id": 458881}, {"segmentation": [[218.12, 632.83, 206.64, 573.99, 195.16, 516.59, 206.64, 429.06, 200.9, 381.7, 212.38, 332.91, 199.46, 287.0, 183.68, 248.25, 206.64, 213.81, 205.2, 189.42, 235.34, 169.33, 241.08, 154.98, 225.29, 106.19, 225.29, 87.53, 223.86, 54.53, 256.86, 30.13, 295.61, 48.79, 307.09, 73.18, 312.83, 104.75, 299.91, 140.63, 324.3, 167.89, 401.79, 203.77, 429.06, 354.44, 410.4, 419.01, 396.05, 462.06, 394.62, 507.98, 377.4, 513.72, 367.35, 516.59, 386.01, 632.83, 308.52, 628.52, 285.56, 542.42, 284.13, 628.52, 225.29, 632.83]], "area": 98977.44965000002, "iscrowd": 0, "image_id": 237514, "bbox": [183.68, 30.13, 245.38, 602.7], "category_id": 1, "id": 458973}, {"segmentation": [[399.82, 2.88, 461.66, 11.51, 480.0, 18.7, 477.48, 622.74, 0.0, 619.87, 0.0, 291.96, 109.3, 304.9, 161.08, 306.34, 178.34, 428.58, 152.45, 454.47, 123.69, 474.61, 113.62, 491.87, 138.07, 509.12, 175.46, 503.37, 184.09, 488.99, 186.97, 461.66, 188.4, 398.38, 204.22, 345.17, 230.11, 302.02, 214.29, 287.64, 211.42, 260.31, 220.04, 235.87, 245.93, 217.17, 254.56, 217.17, 254.56, 174.02, 264.63, 151.01, 281.89, 122.25, 260.31, 73.35, 290.52, 48.9, 343.73, 7.19, 388.31, 5.75]], "area": 209939.83054999998, "iscrowd": 0, "image_id": 297135, "bbox": [0.0, 2.88, 480.0, 619.86], "category_id": 1, "id": 459106}, {"segmentation": [[172.42, 104.95, 145.25, 134.94, 134.94, 164.93, 134.0, 216.47, 133.07, 228.65, 126.51, 240.83, 124.63, 248.33, 132.13, 259.57, 153.68, 255.82, 150.87, 271.75, 157.43, 290.49, 156.49, 315.8, 161.18, 342.97, 176.17, 412.31, 264.26, 411.38, 269.88, 336.41, 277.38, 328.91, 279.25, 297.05, 284.87, 266.13, 283.93, 223.96, 292.37, 235.21, 304.55, 230.52, 309.24, 281.12, 311.11, 299.87, 298.93, 311.11, 301.74, 325.17, 307.36, 341.1, 324.23, 344.84, 339.22, 342.97, 334.54, 332.66, 340.16, 314.86, 335.47, 285.81, 339.22, 229.58, 332.66, 210.84, 318.61, 178.98, 287.68, 134.0, 264.26, 110.58, 235.21, 97.46, 232.4, 88.09, 223.02, 88.09, 226.77, 75.9, 225.84, 55.29, 222.09, 30.92, 208.03, 14.06, 177.11, 11.24, 151.81, 29.99, 151.81, 62.78, 158.37, 83.4]], "area": 52066.18275, "iscrowd": 0, "image_id": 269986, "bbox": [124.63, 11.24, 215.53, 401.07], "category_id": 1, "id": 459165}, {"segmentation": [[7.17, 75.98, 66.01, 71.68, 77.49, 93.2, 87.53, 121.9, 113.36, 162.08, 126.28, 183.61, 152.11, 218.04, 190.85, 245.31, 213.81, 266.83, 256.86, 299.84, 289.87, 334.28, 298.48, 368.72, 285.56, 373.02, 266.91, 375.89, 183.68, 377.33, 190.85, 345.76, 167.89, 321.36, 124.84, 315.62, 110.49, 338.58, 110.49, 375.89, 160.72, 375.89, 173.63, 381.63, 239.64, 391.68, 192.29, 423.25, 175.07, 426.12, 140.63, 447.64, 142.06, 470.6, 166.46, 499.3, 196.59, 517.96, 209.51, 532.3, 186.55, 539.48, 153.54, 545.22, 7.17, 594.01]], "area": 79929.96274999999, "iscrowd": 0, "image_id": 516300, "bbox": [7.17, 71.68, 291.31, 522.33], "category_id": 1, "id": 459521}, {"segmentation": [[321.06, 277.54, 327.34, 285.5, 331.53, 295.54, 335.71, 301.4, 336.13, 305.17, 333.62, 308.1, 333.62, 311.45, 339.48, 311.45, 343.25, 305.17, 341.15, 296.8, 337.81, 286.75, 335.29, 280.47, 329.43, 272.52, 328.6, 267.49, 331.11, 255.35, 330.27, 244.47, 326.92, 239.03, 323.99, 232.33, 322.73, 225.63, 321.9, 218.93, 324.41, 211.81, 326.08, 208.88, 327.76, 205.95, 331.53, 203.02, 332.36, 195.91, 329.01, 188.37, 325.66, 185.02, 321.06, 185.44, 317.29, 186.69, 314.78, 187.95, 311.85, 190.04, 308.5, 194.65, 301.38, 186.28, 285.06, 163.67, 284.22, 159.06, 280.45, 155.71, 276.26, 157.39, 276.68, 158.65, 277.94, 161.16, 285.89, 171.2, 298.45, 197.16, 291.75, 194.23, 288.41, 194.23, 288.41, 195.91, 288.82, 200.09, 290.92, 201.77, 293.85, 203.44, 298.87, 203.86, 297.62, 209.72, 296.36, 214.74, 295.94, 220.19, 295.1, 225.63, 295.52, 234.84, 298.87, 235.26, 300.13, 238.19, 301.8, 240.7, 303.06, 242.37, 305.57, 245.72, 302.64, 249.07, 302.64, 253.68, 301.8, 258.7, 298.03, 261.21, 296.36, 265.4, 295.52, 269.17, 297.62, 275.87, 300.96, 282.15, 303.48, 288.01, 308.5, 293.03, 311.43, 296.38, 313.52, 303.08, 316.04, 305.17, 316.87, 308.52, 318.13, 313.13, 321.06, 313.54, 323.99, 309.36, 323.99, 303.5, 321.9, 297.22, 320.22, 290.94, 316.87, 283.4, 314.36, 277.96, 313.52, 275.87, 313.94, 274.19, 319.8, 276.29]], "area": 3616.9518499999995, "iscrowd": 0, "image_id": 483948, "bbox": [276.26, 155.71, 66.99, 157.83], "category_id": 1, "id": 460621}, {"segmentation": [[224.36, 158.2, 232.99, 186.97, 231.55, 202.79, 220.04, 215.73, 218.61, 218.61, 222.92, 248.81, 245.93, 268.94, 268.94, 277.57, 300.58, 299.15, 329.35, 336.54, 409.89, 467.42, 425.0, 494.74, 425.0, 605.48, 408.45, 562.34, 388.31, 558.02, 372.49, 533.57, 350.92, 509.12, 326.47, 488.99, 336.54, 556.58, 322.16, 569.53, 322.16, 586.79, 314.97, 631.37, 129.44, 628.49, 176.9, 616.99, 182.65, 604.04, 163.96, 583.91, 140.94, 576.72, 125.12, 573.84, 119.37, 570.97, 106.43, 570.97, 86.29, 570.97, 71.91, 559.46, 63.28, 550.83, 41.71, 535.01, 33.08, 524.94, 31.64, 514.88, 38.83, 501.93, 38.83, 488.99, 50.34, 458.79, 57.53, 437.21, 74.79, 427.15, 83.42, 415.64, 86.29, 407.01, 79.1, 394.07, 69.03, 386.88, 73.35, 359.55, 87.73, 333.66, 93.48, 306.34, 125.12, 289.08, 139.51, 277.57, 151.01, 268.94, 135.19, 241.62, 125.12, 195.6, 116.49, 166.83, 117.93, 143.82, 135.19, 116.49, 168.27, 106.43, 201.35, 117.93, 215.73, 125.12, 227.24, 148.13, 228.67, 166.83]], "area": 112302.07989999997, "iscrowd": 0, "image_id": 64071, "bbox": [31.64, 106.43, 393.36, 524.94], "category_id": 1, "id": 460973}, {"segmentation": [[47.67, 14.09, 50.56, 35.76, 50.56, 89.21, 43.34, 119.55, 34.67, 141.22, 41.9, 151.33, 105.46, 174.45, 131.47, 304.47, 122.8, 317.47, 93.91, 326.14, 69.35, 355.03, 52.01, 383.93, 30.34, 433.05, 14.45, 476.39, 0.0, 6.86, 27.45, 2.53, 49.12, 3.97]], "area": 30320.172800000004, "iscrowd": 0, "image_id": 140115, "bbox": [0.0, 2.53, 131.47, 473.86], "category_id": 1, "id": 460999}, {"segmentation": [[249.44, 192.59, 257.11, 173.41, 262.87, 135.03, 268.62, 122.56, 281.09, 107.21, 291.65, 93.78, 302.2, 81.31, 321.39, 78.43, 346.33, 81.31, 362.64, 82.27, 389.5, 116.8, 394.3, 132.15, 408.69, 162.85, 415.41, 189.72, 425.0, 198.35, 446.11, 210.82, 461.46, 223.29, 468.17, 242.48, 470.09, 301.96, 454.74, 331.7, 440.35, 347.05, 425.96, 367.2, 423.08, 404.61, 421.16, 409.41, 417.33, 419.96, 120.88, 418.04, 120.88, 402.69, 120.88, 395.02, 110.33, 388.3, 94.02, 360.48, 127.6, 341.3, 148.7, 356.65, 152.54, 375.83, 163.09, 380.63, 315.63, 384.47, 312.75, 374.87, 321.39, 360.48, 336.74, 356.65, 346.33, 356.65, 350.17, 333.62, 345.37, 317.31, 344.41, 198.35, 344.41, 194.51]], "area": 48295.75035, "iscrowd": 0, "image_id": 333643, "bbox": [94.02, 78.43, 376.07, 341.53], "category_id": 1, "id": 461146}, {"segmentation": [[541.91, 267.59, 549.46, 267.59, 555.03, 279.12, 560.19, 287.87, 574.9, 297.41, 582.06, 314.9, 584.45, 343.53, 577.69, 366.98, 576.1, 377.72, 571.72, 386.46, 572.52, 395.21, 571.33, 397.99, 549.86, 399.18, 535.15, 397.2, 532.76, 366.98, 529.98, 335.97, 530.78, 323.65, 530.78, 315.7, 518.45, 319.67, 513.68, 313.71, 517.26, 306.16, 523.22, 300.59, 531.97, 296.22, 539.52, 292.24, 539.92, 289.46, 537.14, 286.68, 532.37, 286.68, 531.97, 285.09, 533.16, 279.92, 533.16, 273.56]], "area": 5718.593650000004, "iscrowd": 0, "image_id": 156221, "bbox": [513.68, 267.59, 70.77, 131.59], "category_id": 1, "id": 461481}, {"segmentation": [[182.65, 185.53, 214.29, 198.47, 225.8, 221.48, 228.67, 250.25, 228.67, 268.94, 243.06, 281.89, 293.39, 297.71, 309.21, 360.99, 335.1, 415.64, 325.03, 447.28, 302.02, 468.85, 271.82, 486.11, 277.57, 550.83, 274.7, 605.48, 274.7, 631.37, 153.89, 628.49, 152.45, 520.63, 161.08, 484.67, 161.08, 450.16, 156.76, 434.34, 146.7, 434.34, 128.0, 430.02, 128.0, 418.52, 119.37, 427.15, 115.06, 414.2, 104.99, 425.71, 97.8, 418.52, 92.04, 412.76, 93.48, 396.94, 99.24, 391.19, 117.93, 402.7, 115.06, 384.0, 140.94, 407.01, 135.19, 339.42, 172.58, 296.27, 158.2, 268.94, 148.13, 230.11, 162.52, 195.6]], "area": 57635.73129999999, "iscrowd": 0, "image_id": 478260, "bbox": [92.04, 185.53, 243.06, 445.84], "category_id": 1, "id": 461501}, {"segmentation": [[245.93, 468.13, 235.15, 410.97, 230.83, 376.45, 208.18, 309.57, 208.18, 266.43, 184.45, 221.12, 207.1, 171.51, 234.07, 140.22, 245.93, 127.28, 238.38, 96.0, 238.38, 71.19, 254.56, 61.48, 275.06, 50.7, 291.24, 55.01, 310.65, 61.48, 326.83, 88.45, 326.83, 124.04, 320.36, 160.72, 320.36, 162.88, 326.83, 187.69, 339.78, 227.6, 358.11, 281.53, 377.53, 276.13, 382.92, 303.1, 355.96, 322.52, 358.11, 341.93, 364.58, 363.51, 358.11, 394.79, 352.72, 431.46, 354.88, 472.45]], "area": 51012.4327, "iscrowd": 0, "image_id": 77841, "bbox": [184.45, 50.7, 198.47, 421.75], "category_id": 1, "id": 461917}, {"segmentation": [[69.69, 284.8, 70.26, 279.91, 68.0, 279.15, 68.19, 277.46, 71.01, 274.83, 71.01, 274.83, 71.01, 272.2, 71.57, 270.88, 73.08, 270.88, 74.02, 271.82, 73.64, 275.39, 73.83, 275.77, 75.52, 276.33, 76.65, 285.36, 76.84, 291.94, 77.97, 299.28, 77.4, 303.6, 74.58, 302.85, 73.26, 297.96, 71.76, 303.23, 69.69, 303.41, 69.13, 298.71, 69.13, 294.01, 70.63, 290.06, 69.69, 286.3, 69.5, 284.98]], "area": 205.66355000000033, "iscrowd": 0, "image_id": 328487, "bbox": [68.0, 270.88, 9.97, 32.72], "category_id": 1, "id": 462152}, {"segmentation": [[559.35, 288.48, 592.0, 289.48, 599.07, 289.82, 597.73, 282.08, 596.72, 274.0, 590.66, 268.61, 586.28, 267.27, 588.64, 255.49, 586.95, 250.77, 582.24, 249.09, 575.51, 249.09, 573.15, 251.78, 571.81, 260.87, 572.14, 266.93, 564.74, 269.96, 560.36, 271.31, 559.01, 277.37, 558.0, 282.75, 557.67, 288.81]], "area": 1054.971900000002, "iscrowd": 0, "image_id": 385701, "bbox": [557.67, 249.09, 41.4, 40.73], "category_id": 1, "id": 462201}, {"segmentation": [[235.11, 1.69, 209.83, 26.12, 204.78, 31.18, 181.18, 78.37, 214.04, 64.04, 234.27, 55.62, 253.65, 55.62, 280.62, 54.78, 297.47, 50.56, 316.01, 65.73, 316.85, 81.74, 333.71, 87.64, 336.24, 120.51, 343.82, 139.89, 350.56, 139.04, 348.88, 69.94, 338.76, 42.98, 318.54, 25.28, 307.58, 1.69]], "area": 8266.157449999999, "iscrowd": 0, "image_id": 83787, "bbox": [181.18, 1.69, 169.38, 138.2], "category_id": 1, "id": 462686}, {"segmentation": [[290.84, 385.95, 272.92, 439.7, 270.16, 450.73, 259.14, 452.11, 245.35, 492.08, 249.49, 511.38, 231.57, 534.81, 183.32, 558.24, 176.43, 549.97, 192.97, 523.78, 212.27, 486.57, 215.03, 445.22, 213.65, 414.89, 208.14, 380.43, 220.54, 359.76, 246.73, 329.43, 270.16, 279.81, 267.41, 245.35, 264.65, 228.81, 257.76, 212.27, 227.43, 206.76, 221.92, 187.46, 237.08, 164.03, 248.11, 153.0, 264.65, 153.0, 270.16, 144.73, 268.78, 126.81, 271.54, 102.0, 290.84, 81.32, 314.27, 79.95, 334.95, 84.08, 344.59, 89.59, 358.38, 86.84, 379.05, 97.86, 391.46, 118.54, 391.46, 143.35, 388.7, 157.14, 383.19, 175.05, 379.05, 201.24, 379.05, 226.05, 379.05, 237.08, 385.95, 252.24, 385.95, 259.14, 374.92, 263.27, 362.51, 275.68, 359.76, 286.7, 372.16, 306.0, 377.68, 315.65, 373.54, 374.92, 374.92, 394.22, 379.05, 431.43, 379.05, 447.97, 379.05, 472.78, 388.7, 490.7, 390.08, 505.86, 377.68, 521.03, 385.95, 544.46, 390.08, 574.78, 380.43, 581.68, 362.51, 578.92, 347.35, 561.0, 339.08, 534.81, 340.46, 515.51, 325.3, 493.46, 315.65, 449.35, 315.65, 425.92, 308.76, 410.76, 300.49, 388.7]], "area": 57582.93955, "iscrowd": 0, "image_id": 206107, "bbox": [176.43, 79.95, 215.03, 501.73], "category_id": 1, "id": 462955}, {"segmentation": [[517.75, 378.61, 540.4, 302.02, 524.22, 298.79, 527.46, 278.29, 518.83, 229.75, 532.85, 200.63, 553.35, 170.43, 573.84, 174.74, 579.24, 160.72, 574.92, 142.38, 597.57, 117.57, 619.15, 115.42, 629.93, 121.89, 633.17, 131.6, 628.85, 151.01, 618.07, 184.45, 628.85, 192.0, 614.83, 267.51, 620.22, 304.18, 606.2, 344.09, 586.79, 405.57, 585.71, 409.89, 615.91, 421.75, 610.52, 435.78, 560.9, 427.15, 570.61, 409.89, 566.29, 387.24, 558.74, 386.16, 567.37, 317.12, 543.64, 376.45]], "area": 21693.518400000004, "iscrowd": 0, "image_id": 451160, "bbox": [517.75, 115.42, 115.42, 320.36], "category_id": 1, "id": 463082}, {"segmentation": [[310.65, 105.99, 332.22, 95.92, 350.92, 98.8, 378.25, 103.11, 405.57, 116.05, 408.45, 134.75, 407.01, 154.89, 404.13, 167.83, 396.94, 180.77, 396.94, 180.77, 394.07, 196.59, 394.07, 196.59, 391.19, 233.99, 425.71, 285.76, 421.39, 295.83, 424.27, 320.28, 425.71, 347.61, 424.27, 367.74, 425.71, 422.39, 424.27, 441.09, 424.27, 464.1, 425.71, 475.61, 412.76, 489.99, 417.08, 494.3, 417.08, 551.83, 421.39, 571.97, 407.01, 576.28, 375.37, 576.28, 251.69, 571.97, 244.49, 573.4, 244.49, 561.9, 251.69, 528.82, 261.75, 515.88, 256.0, 479.92, 256.0, 478.48, 205.66, 438.21, 230.11, 433.9, 244.49, 420.95, 261.75, 418.08, 260.31, 400.82, 241.62, 385.0, 209.98, 369.18, 208.54, 349.04, 197.03, 340.41, 201.35, 336.1, 209.98, 331.79, 222.92, 337.54, 235.87, 347.61, 238.74, 338.98, 225.8, 326.03, 227.24, 320.28, 248.81, 323.16, 253.12, 336.1, 274.7, 351.92, 281.89, 346.17, 287.64, 321.72, 302.02, 290.08, 307.78, 269.94, 320.72, 248.37, 319.28, 239.74, 281.89, 218.17, 279.01, 219.61, 279.01, 190.84, 280.45, 179.34, 287.64, 163.52, 290.52, 150.57, 299.15, 126.12, 304.9, 107.43, 316.4, 98.8]], "area": 69455.86595, "iscrowd": 0, "image_id": 204294, "bbox": [197.03, 95.92, 228.68, 480.36], "category_id": 1, "id": 463109}, {"segmentation": [[175.08, 231.27, 197.02, 240.96, 214.37, 247.59, 222.02, 232.29, 221.0, 225.14, 219.47, 212.39, 214.88, 202.69, 211.3, 196.06, 203.65, 189.43, 199.57, 187.39, 193.96, 188.41, 189.36, 205.24, 178.65, 222.08]], "area": 1719.4500999999993, "iscrowd": 0, "image_id": 387595, "bbox": [175.08, 187.39, 46.94, 60.2], "category_id": 1, "id": 463341}, {"segmentation": [[316.22, 136.08, 307.97, 130.74, 298.99, 127.35, 297.3, 124.68, 296.81, 118.86, 298.51, 116.68, 301.42, 115.22, 302.15, 112.55, 301.9, 107.7, 300.69, 107.22, 301.18, 102.12, 299.72, 96.3, 294.87, 93.88, 291.96, 91.94, 288.32, 90.72, 281.77, 92.42, 276.92, 94.36, 273.53, 96.55, 272.31, 100.91, 270.37, 104.79, 274.25, 114.25, 275.95, 118.37, 276.92, 122.74, 279.35, 127.83, 278.86, 129.77, 267.95, 134.14, 261.4, 138.51, 258.25, 144.57, 258.0, 144.81, 264.07, 155.24, 267.22, 165.43, 267.95, 174.65, 267.95, 178.77, 262.61, 180.22, 260.91, 183.86, 259.22, 188.23, 258.0, 192.59, 258.73, 197.2, 252.91, 208.36, 251.46, 215.64, 249.51, 222.91, 247.57, 228.98, 246.6, 234.55, 245.88, 238.43, 245.63, 254.69, 246.12, 264.87, 244.91, 283.06, 246.6, 286.94, 244.42, 297.13, 252.91, 296.89, 246.85, 300.77, 245.88, 309.02, 249.51, 311.44, 256.79, 313.38, 263.34, 310.71, 274.01, 304.41, 274.74, 300.28, 283.71, 307.56, 289.78, 303.44, 292.69, 287.91, 302.15, 253.96, 307.48, 242.56, 308.7, 234.8, 312.09, 222.67, 314.27, 213.69, 316.46, 206.18, 317.43, 201.57, 319.61, 195.26, 319.61, 191.62, 318.88, 190.65, 318.64, 185.56, 320.1, 167.61, 324.7, 166.16, 326.64, 164.46, 323.25, 148.21, 320.34, 139.23]], "area": 10909.0288, "iscrowd": 0, "image_id": 340412, "bbox": [244.42, 90.72, 82.22, 222.66], "category_id": 1, "id": 463389}, {"segmentation": [[543.39, 0.84, 544.22, 9.22, 548.41, 11.73, 547.99, 23.03, 553.85, 35.59, 555.53, 46.05, 564.74, 76.19, 565.16, 88.33, 565.16, 98.8, 569.34, 111.78, 569.34, 119.73, 568.5, 136.89, 569.34, 141.5, 577.29, 141.08, 581.48, 136.47, 583.57, 128.1, 584.83, 121.4, 585.25, 135.64, 589.43, 143.17, 599.48, 138.57, 594.88, 129.78, 592.78, 122.66, 597.81, 103.82, 596.97, 91.26, 596.55, 82.47, 596.55, 77.45, 599.06, 72.43, 599.06, 54.43, 599.48, 29.31, 597.81, 21.78, 605.76, 16.75, 604.5, 9.64, 608.27, 5.87, 606.18, 0.84]], "area": 5356.587749999996, "iscrowd": 0, "image_id": 2446, "bbox": [543.39, 0.84, 64.88, 142.33], "category_id": 1, "id": 463564}, {"segmentation": [[222.2, 371.06, 258.88, 353.8, 273.98, 330.07, 291.24, 295.55, 306.34, 250.25, 292.31, 242.7, 266.43, 242.7, 248.09, 237.3, 241.62, 224.36, 257.8, 203.87, 277.21, 190.92, 306.34, 187.69, 313.89, 170.43, 319.28, 157.48, 327.91, 151.01, 358.11, 145.62, 374.29, 168.27, 369.98, 183.37, 378.61, 217.89, 371.06, 242.7, 366.74, 277.21, 362.43, 284.76, 349.48, 305.26, 353.8, 334.38, 407.73, 352.72, 415.28, 376.45, 412.04, 395.87, 386.16, 374.29, 374.29, 362.43, 332.22, 346.25, 284.76, 364.58, 243.78, 384.0, 230.83, 378.61]], "area": 19394.924700000003, "iscrowd": 0, "image_id": 70288, "bbox": [222.2, 145.62, 193.08, 250.25], "category_id": 1, "id": 463701}, {"segmentation": [[639.74, 246.09, 631.0, 237.36, 625.17, 237.94, 622.26, 230.36, 622.84, 223.37, 617.02, 214.64, 610.03, 209.39, 597.79, 207.65, 584.39, 212.31, 572.16, 216.97, 569.83, 223.96, 575.07, 229.2, 578.57, 233.86, 573.33, 239.69, 571.0, 244.35, 578.57, 253.67, 575.07, 255.41, 554.1, 256.0, 533.71, 254.25, 515.65, 249.59, 515.07, 239.69, 511.58, 234.44, 502.84, 232.7, 490.02, 237.36, 482.45, 247.84, 486.53, 252.5, 495.27, 253.08, 512.74, 262.4, 534.3, 269.98, 571.0, 278.13, 575.66, 288.04, 591.38, 283.38, 599.54, 289.2, 612.94, 310.76, 614.69, 313.09, 592.55, 316.0, 585.56, 317.16, 579.73, 320.66, 574.49, 321.82, 568.08, 330.56, 572.16, 341.05, 582.06, 351.53, 621.09, 370.76, 625.17, 376.58, 615.85, 381.83, 615.27, 389.4, 622.26, 389.98, 639.15, 384.16, 639.74, 292.7, 635.08, 288.04, 629.25, 289.78, 630.42, 283.96, 625.75, 286.29, 622.84, 283.96, 621.68, 282.21, 618.18, 281.05, 622.84, 276.39, 616.43, 272.89, 626.34, 272.89, 631.58, 272.89, 632.75, 265.32, 635.08, 267.65]], "area": 10085.48075, "iscrowd": 0, "image_id": 203847, "bbox": [482.45, 207.65, 157.29, 182.33], "category_id": 1, "id": 463832}, {"segmentation": [[352.74, 382.36, 351.49, 334.79, 356.5, 315.38, 360.25, 336.04, 377.15, 327.27, 367.14, 285.96, 384.67, 270.31, 362.76, 234.0, 347.11, 233.37, 350.86, 223.35, 337.09, 200.19, 322.07, 205.2, 318.31, 217.09, 322.69, 226.48, 304.54, 250.9, 292.02, 297.85, 298.9, 321.01, 302.03, 320.39, 306.42, 295.97, 305.16, 337.29, 311.42, 349.18, 313.93, 386.74, 332.71, 372.35, 347.73, 379.86]], "area": 9782.525799999996, "iscrowd": 0, "image_id": 532414, "bbox": [292.02, 200.19, 92.65, 186.55], "category_id": 1, "id": 464301}, {"segmentation": [[456.75, 201.51, 456.75, 194.79, 457.71, 190.95, 458.67, 187.11, 460.58, 178.48, 463.46, 167.92, 469.22, 163.12, 474.98, 166.96, 480.73, 170.8, 484.57, 170.8, 491.29, 170.8, 474.98, 189.03, 465.38, 199.59, 455.79, 212.06, 458.67, 241.81, 462.5, 249.48, 470.18, 270.59, 474.02, 288.82, 474.98, 293.62, 468.26, 318.57, 467.3, 322.41, 445.23, 346.4, 440.43, 353.11, 435.64, 362.71, 427.0, 371.35, 422.2, 378.06, 431.8, 385.74, 440.43, 387.66, 450.03, 379.02, 454.83, 379.98, 461.54, 379.98, 468.26, 377.1, 470.18, 369.43, 472.1, 357.91, 483.61, 338.72, 490.33, 334.88, 500.89, 327.21, 510.48, 320.49, 517.2, 312.81, 523.91, 307.06, 524.87, 303.22, 526.79, 296.5, 526.79, 282.11, 522.0, 274.43, 515.28, 264.84, 515.28, 254.28, 515.28, 248.52, 516.24, 230.29, 518.16, 224.53, 526.79, 213.98, 532.55, 209.18, 548.86, 199.59, 548.86, 204.38, 550.78, 218.78, 551.74, 229.33, 551.74, 240.85, 555.58, 252.36, 559.42, 256.2, 563.26, 260.04, 568.05, 263.88, 569.01, 262.92, 569.97, 257.16, 569.97, 254.28, 569.97, 245.64, 569.97, 236.05, 568.05, 221.66, 568.05, 218.78, 568.05, 198.63, 572.85, 182.31, 574.77, 172.72, 574.77, 165.04, 574.77, 163.12, 568.05, 146.81, 572.85, 138.18, 579.57, 123.78, 579.57, 121.86, 572.85, 115.15, 564.22, 110.35, 544.07, 100.75, 538.31, 109.39, 537.35, 117.07, 533.51, 138.18, 522.96, 139.13, 501.84, 141.05, 466.34, 146.81, 457.71, 151.61, 450.99, 154.49, 449.07, 158.33, 448.11, 166.96, 448.11, 173.68, 447.15, 185.19, 445.23, 193.83, 445.23, 198.63, 443.31, 202.47, 439.47, 205.34, 429.88, 203.42, 427.96, 208.22, 431.8, 215.9, 437.56, 221.66, 442.35, 223.58, 446.19, 222.62, 451.95, 213.98, 456.75, 204.38]], "area": 18314.0201, "iscrowd": 0, "image_id": 59542, "bbox": [422.2, 100.75, 157.37, 286.91], "category_id": 1, "id": 464527}, {"segmentation": [[327.52, 268.66, 332.89, 201.01, 353.29, 174.16, 375.84, 176.31, 415.57, 194.56, 437.05, 227.85, 423.09, 293.36, 425.23, 345.97, 403.76, 326.64, 385.5, 323.42, 362.95, 301.95]], "area": 12325.518600000003, "iscrowd": 0, "image_id": 510371, "bbox": [327.52, 174.16, 109.53, 171.81], "category_id": 1, "id": 464971}, {"segmentation": [[173.92, 339.75, 172.37, 332.93, 177.64, 332.62, 180.74, 330.15, 179.5, 322.4, 178.26, 313.1, 173.61, 308.14, 172.37, 306.6, 172.99, 303.5, 171.44, 300.71, 168.65, 301.64, 165.25, 303.19, 166.8, 307.22, 166.8, 314.03, 166.8, 321.78, 159.67, 325.19, 162.46, 326.43, 166.18, 323.95, 164.01, 334.79, 173.92, 341.3]], "area": 408.5864000000003, "iscrowd": 0, "image_id": 482024, "bbox": [159.67, 300.71, 21.07, 40.59], "category_id": 1, "id": 465038}, {"segmentation": [[275.02, 143.63, 286.56, 132.1, 301.95, 133.06, 320.22, 151.33, 360.61, 157.1, 397.15, 207.1, 384.65, 228.26, 350.99, 231.14, 346.19, 234.99, 376.0, 252.3, 384.65, 264.8, 350.03, 279.22, 339.45, 277.3, 336.57, 250.38, 312.53, 240.76, 310.6, 226.33, 320.22, 209.99, 317.34, 185.95, 301.95, 176.33, 289.45, 182.1, 277.91, 166.71]], "area": 8395.492599999996, "iscrowd": 0, "image_id": 429113, "bbox": [275.02, 132.1, 122.13, 147.12], "category_id": 1, "id": 465087}, {"segmentation": [[0.0, 280.84, 30.78, 304.89, 63.48, 321.24, 61.56, 325.09, 42.32, 332.78, 26.93, 345.29, 17.31, 356.83, 17.31, 361.64, 11.54, 353.94, 3.85, 344.32, 0.0, 340.48, 0.96, 282.77], [0.96, 1.92, 0.96, 97.14, 0.96, 97.14, 8.66, 92.33, 12.5, 112.53, 30.78, 126.0, 38.47, 128.88, 44.24, 122.15, 44.24, 108.68, 41.36, 99.07, 41.36, 78.87, 48.09, 66.36, 49.05, 52.9, 51.94, 40.4, 53.86, 32.7, 56.75, 26.93, 75.02, 74.06, 98.1, 103.87, 134.65, 149.08, 155.81, 178.89, 167.35, 178.89, 176.97, 185.63, 191.4, 186.59, 230.83, 166.39, 249.11, 159.66, 254.88, 169.28, 266.42, 176.01, 273.15, 176.97, 283.73, 175.05, 289.5, 170.24, 296.23, 176.01, 302.0, 170.24, 302.97, 167.35, 305.85, 163.51, 306.81, 154.85, 305.85, 144.27, 298.16, 134.65, 285.65, 126.0, 274.11, 121.19, 262.57, 112.53, 250.07, 114.45, 245.26, 119.26, 237.56, 121.19, 222.18, 121.19, 205.82, 114.45, 195.24, 114.45, 190.44, 116.38, 170.24, 79.83, 149.08, 40.4, 135.61, 11.54, 135.61, 6.73, 137.54, 3.85, 133.69, 2.89, 0.0, 0.96]], "area": 27385.560150000005, "iscrowd": 0, "image_id": 372353, "bbox": [0.0, 0.96, 306.81, 360.68], "category_id": 1, "id": 465092}, {"segmentation": [[278.79, 456.21, 290.45, 460.98, 296.28, 465.76, 299.46, 473.18, 304.23, 484.31, 307.94, 493.32, 314.3, 495.97, 324.38, 495.44, 325.97, 493.85, 321.2, 490.67, 316.95, 488.02, 311.12, 476.89, 305.29, 457.27, 298.93, 445.61, 290.45, 438.19, 295.75, 434.48, 297.34, 427.06, 297.34, 417.52, 293.1, 406.39, 292.57, 397.91, 288.33, 390.48, 281.97, 390.48, 274.02, 392.08, 275.61, 403.21, 267.66, 404.8, 262.36, 409.04, 259.71, 418.05, 256.0, 427.59, 254.94, 437.13, 256.0, 447.2, 254.41, 457.27, 254.41, 465.23, 243.8, 472.12, 234.79, 481.66, 228.96, 485.37, 228.43, 490.67, 231.08, 494.91, 250.17, 482.72, 264.48, 468.94, 272.43, 451.97]], "area": 3296.618550000001, "iscrowd": 0, "image_id": 41577, "bbox": [228.43, 390.48, 97.54, 105.49], "category_id": 1, "id": 465299}, {"segmentation": [[391.61, 434.97, 395.68, 451.23, 397.03, 463.43, 398.39, 476.98, 399.74, 486.47, 402.45, 493.24, 403.81, 502.73, 403.81, 508.15, 441.75, 497.31, 444.46, 493.24, 440.39, 487.82, 428.2, 466.14, 425.49, 452.59, 428.2, 436.33, 429.55, 418.71, 428.2, 413.29, 426.84, 403.81, 425.49, 392.97, 422.78, 382.13, 425.49, 379.42, 437.68, 390.26, 447.17, 407.87, 453.94, 425.49, 456.65, 440.39, 458.01, 444.46, 470.2, 462.07, 475.62, 472.91, 486.47, 486.47, 495.95, 504.08, 497.31, 510.86, 497.31, 516.28, 495.95, 531.18, 491.89, 552.86, 500.02, 566.41, 509.5, 573.19, 513.57, 575.9, 536.6, 565.06, 540.67, 560.99, 543.38, 559.64, 544.73, 551.51, 518.99, 529.83, 518.99, 514.92, 520.34, 504.08, 510.86, 481.04, 500.02, 449.88, 494.6, 437.68, 490.53, 414.65, 486.47, 394.32, 482.4, 383.48, 478.33, 365.87, 470.2, 353.67, 464.78, 338.76, 463.43, 329.28, 459.36, 313.02, 455.3, 295.4, 449.88, 277.79, 448.52, 264.24, 448.52, 247.98, 448.52, 239.84, 455.3, 256.11, 472.91, 283.21, 475.62, 291.34, 478.33, 299.47, 478.33, 306.24, 478.33, 310.31, 476.98, 319.79, 475.62, 327.92, 475.62, 330.63, 475.62, 337.41, 476.98, 345.54, 479.69, 346.89, 483.76, 346.89, 491.89, 344.18, 491.89, 329.28, 493.24, 300.82, 494.6, 280.5, 494.6, 272.37, 485.11, 242.56, 483.76, 231.71, 479.69, 219.52, 475.62, 207.32, 462.07, 193.77, 458.01, 191.06, 436.33, 184.29, 413.29, 174.8, 421.42, 154.48, 421.42, 146.35, 422.78, 134.15, 422.78, 119.24, 418.71, 113.82, 417.36, 112.47, 401.1, 107.05, 397.03, 107.05, 387.55, 113.82, 380.77, 124.67, 382.13, 134.15, 378.06, 150.41, 378.06, 154.48, 371.29, 162.61, 374.0, 170.74, 383.48, 180.22, 392.97, 197.84, 401.1, 220.87, 403.81, 231.71, 407.87, 260.17, 409.23, 265.59, 407.87, 268.3, 401.1, 275.08, 387.55, 279.14, 386.19, 283.21, 386.19, 288.63, 390.26, 307.6, 397.03, 318.44, 401.1, 338.76, 397.03, 352.31]], "area": 29485.944999999992, "iscrowd": 0, "image_id": 525360, "bbox": [371.29, 107.05, 173.44, 468.85], "category_id": 1, "id": 465893}, {"segmentation": [[261.3, 285.51, 254.94, 260.11, 288.52, 225.63, 298.51, 211.1, 297.59, 188.42, 279.45, 188.42, 279.45, 179.34, 285.8, 169.36, 295.78, 169.36, 296.69, 145.77, 295.78, 138.51, 283.98, 124.89, 293.96, 99.48, 320.28, 81.34, 319.37, 68.63, 330.26, 59.56, 346.59, 56.84, 358.39, 65.0, 362.02, 77.71, 345.69, 103.11, 352.95, 134.88, 370.19, 149.4, 372.91, 160.28, 359.3, 168.46, 352.04, 159.38, 339.33, 159.38, 339.33, 188.42, 346.59, 234.7, 343.87, 274.62, 350.22, 281.88, 325.73, 283.7, 320.28, 268.27, 329.36, 221.99, 321.19, 201.12, 314.84, 223.81, 280.35, 263.74, 283.98, 282.79, 268.56, 285.51]], "area": 11420.415699999996, "iscrowd": 0, "image_id": 155049, "bbox": [254.94, 56.84, 117.97, 228.67], "category_id": 1, "id": 466007}, {"segmentation": [[215.44, 89.45, 244.3, 85.6, 245.26, 116.38, 244.3, 134.65, 242.37, 143.31, 231.79, 146.19, 226.02, 184.67, 223.14, 217.37, 223.14, 226.98, 241.41, 237.56, 251.03, 255.84, 263.53, 289.5, 277.96, 314.51, 282.77, 314.51, 265.46, 332.78, 251.03, 339.51, 239.49, 317.39, 226.98, 286.62, 201.98, 276.04, 194.28, 288.54, 178.89, 288.54, 165.43, 312.58, 141.38, 331.82, 130.8, 326.05, 130.8, 313.55, 134.65, 303.93, 153.89, 288.54, 158.7, 269.3, 144.27, 257.76, 140.42, 235.64, 144.27, 210.63, 137.54, 203.9, 132.73, 183.7, 134.65, 159.66, 167.35, 134.65, 193.32, 118.3, 201.98, 98.1, 222.18, 89.45]], "area": 19214.35195, "iscrowd": 0, "image_id": 203989, "bbox": [130.8, 85.6, 151.97, 253.91], "category_id": 1, "id": 466304}, {"segmentation": [[179.57, 0.08, 193.69, 0.0, 201.24, 14.34, 212.15, 36.3, 223.19, 56.15, 228.93, 62.02, 232.42, 68.18, 236.76, 71.67, 239.97, 74.61, 244.17, 67.76, 250.04, 62.16, 257.03, 63.0, 269.47, 64.54, 278.0, 66.78, 287.93, 80.9, 288.21, 89.71, 285.55, 105.37, 284.15, 113.2, 282.55, 117.97, 279.79, 119.45, 285.73, 129.84, 288.06, 137.68, 288.48, 141.07, 296.32, 155.9, 303.1, 169.25, 313.91, 183.45, 321.33, 198.08, 326.51, 219.47, 332.66, 233.17, 345.81, 240.3, 350.56, 248.27, 349.58, 251.49, 346.93, 252.33, 345.11, 253.31, 339.66, 251.35, 337.42, 252.61, 334.2, 250.93, 330.57, 249.67, 326.65, 247.02, 322.88, 241.98, 320.5, 232.47, 317.7, 227.86, 316.86, 233.03, 319.1, 255.4, 323.72, 285.05, 323.44, 299.87, 324.14, 309.94, 322.46, 317.63, 328.05, 330.21, 334.9, 339.58, 337.84, 346.15, 334.48, 347.41, 327.21, 348.67, 321.2, 347.97, 314.63, 345.73, 308.9, 342.79, 297.71, 333.15, 297.71, 328.67, 299.53, 320.98, 294.35, 306.3, 292.4, 287.42, 292.96, 277.5, 291.14, 269.25, 287.64, 252.47, 289.04, 246.74, 289.04, 243.94, 284.29, 241.28, 284.29, 236.81, 283.73, 230.94, 271.84, 225.62, 259.26, 222.27, 248.35, 216.12, 237.17, 210.38, 225.84, 208.15, 224.02, 207.73, 221.51, 211.22, 225.0, 224.22, 225.56, 228.84, 229.06, 241.84, 229.06, 248.83, 228.08, 258.48, 225.14, 266.73, 226.4, 277.22, 227.66, 283.65, 227.66, 287.14, 227.52, 294.0, 228.22, 297.63, 228.36, 305.6, 222.21, 308.54, 212.28, 308.68, 206.83, 307.0, 202.91, 302.24, 202.07, 297.77, 203.89, 291.9, 205.99, 287.98, 207.11, 276.8, 206.97, 272.18, 202.35, 267.99, 201.37, 265.05, 202.21, 257.78, 201.09, 252.47, 199.28, 247.85, 197.88, 242.82, 197.04, 239.74, 194.24, 230.66, 190.89, 217.23, 191.03, 209.12, 183.34, 201.43, 173.27, 193.88, 170.89, 186.19, 169.21, 180.74, 167.96, 172.07, 170.61, 150.68, 178.44, 132.08, 186.41, 110.27, 192.82, 94.91, 193.03, 73.29, 191.34, 43.2, 190.28, 32.18]], "area": 26022.718650000006, "iscrowd": 0, "image_id": 554674, "bbox": [167.96, 0.0, 182.6, 348.67], "category_id": 1, "id": 466339}, {"segmentation": [[133.18, 212.12, 168.13, 155.17, 143.54, 124.1, 151.3, 74.92, 172.01, 46.44, 234.14, 46.44, 231.55, 51.62, 247.08, 72.33, 258.73, 100.81, 258.73, 125.4, 254.85, 137.05, 287.21, 155.17, 328.63, 274.25, 332.51, 287.19, 337.69, 311.78, 342.87, 358.38, 333.81, 358.38, 328.63, 342.85, 327.33, 337.67, 327.33, 326.02, 327.33, 322.14, 324.74, 322.14, 320.86, 338.96, 315.68, 340.26, 305.33, 331.2, 309.21, 319.55, 305.33, 296.25, 304.04, 285.9, 302.74, 280.72, 297.56, 275.54, 294.98, 301.43, 296.27, 301.43, 288.5, 331.2, 292.39, 348.02, 298.86, 358.38, 300.15, 377.79, 300.15, 389.44, 304.04, 402.38, 306.62, 415.33, 307.92, 437.33, 310.51, 448.98, 311.8, 455.45, 323.45, 473.49, 319.57, 503.26, 318.27, 514.91, 289.8, 522.68, 266.5, 517.5, 261.32, 496.79, 256.15, 472.2, 254.85, 472.2, 241.91, 498.09, 234.14, 514.91, 206.96, 517.5, 195.31, 512.32, 206.96, 478.67, 206.96, 463.14, 206.96, 448.9, 205.67, 421.72, 200.49, 408.78, 192.72, 389.36, 184.96, 362.18, 183.66, 319.47, 179.78, 297.46, 174.6, 288.4, 172.01, 278.05, 165.54, 263.81, 161.66, 275.46, 152.6, 290.99, 147.42, 311.7, 134.48, 355.71, 137.07, 364.77, 125.42, 375.12, 109.89, 367.36, 109.89, 357.0, 109.89, 344.06, 109.89, 318.17, 109.89, 290.99, 116.36, 266.4, 124.12, 236.63, 134.48, 213.33]], "area": 63040.177599999995, "iscrowd": 0, "image_id": 561015, "bbox": [109.89, 46.44, 232.98, 476.24], "category_id": 1, "id": 466405}, {"segmentation": [[421.24, 200.55, 413.57, 191.91, 409.73, 184.23, 405.89, 179.44, 402.05, 181.36, 391.5, 186.15, 380.94, 186.15, 362.71, 183.27, 347.36, 174.64, 315.69, 156.41, 286.91, 149.69, 268.67, 143.93, 252.36, 140.09, 244.69, 133.38, 234.13, 127.62, 242.77, 104.59, 242.77, 96.91, 246.6, 73.89, 244.69, 62.37, 235.09, 46.06, 227.41, 37.42, 216.86, 29.75, 203.42, 24.95, 198.63, 24.95, 185.19, 23.99, 177.52, 23.03, 170.8, 26.87, 158.33, 30.71, 151.61, 42.22, 141.05, 55.65, 131.46, 74.84, 136.26, 92.12, 143.93, 104.59, 146.81, 108.43, 122.82, 130.5, 110.35, 144.89, 106.51, 152.57, 101.71, 171.76, 95.96, 187.11, 91.16, 217.82, 95.0, 242.77, 95.96, 256.2, 97.87, 269.63, 102.67, 297.46, 117.07, 316.65, 118.98, 329.13, 117.07, 341.6, 130.5, 340.64, 148.73, 346.4, 157.37, 363.67, 163.12, 381.9, 168.88, 388.62, 189.99, 383.82, 211.1, 388.62, 226.45, 388.62, 241.81, 379.98, 238.93, 385.74, 215.9, 401.09, 200.55, 411.65, 189.99, 417.4, 197.67, 422.2, 213.02, 422.2, 275.39, 418.36, 265.8, 411.65, 260.04, 403.01, 252.36, 388.62, 245.64, 376.14, 239.89, 364.63, 237.01, 353.11, 236.05, 346.4, 236.05, 323.37, 237.01, 317.61, 237.97, 306.1, 238.93, 299.38, 241.81, 289.78, 253.32, 273.47, 272.51, 260.04, 281.15, 255.24, 283.07, 253.32, 291.7, 242.77, 296.5, 237.01, 308.02, 230.29, 309.93, 226.45, 307.06, 218.78, 300.34, 213.02, 298.42, 208.22, 291.7, 200.55, 303.22, 208.22, 313.77, 203.42, 325.29, 208.22, 332.0, 205.34, 346.4, 205.34, 357.91, 211.1, 365.59, 211.1, 373.27, 210.14, 387.66, 223.58, 400.13, 230.29, 402.05, 231.25, 397.25, 213.98, 391.5, 208.22, 391.5, 206.3, 402.05, 210.14, 413.57, 213.02, 424.12, 214.94, 428.92, 210.14, 425.08, 204.38, 422.2, 201.51]], "area": 56152.79345000003, "iscrowd": 0, "image_id": 205931, "bbox": [91.16, 23.03, 337.76, 399.17], "category_id": 1, "id": 466406}, {"segmentation": [[219.58, 221.46, 215.95, 236.89, 220.03, 253.67, 230.01, 254.12, 244.53, 253.67, 264.03, 249.59, 292.61, 246.41, 297.6, 233.26, 294.43, 212.84, 285.35, 187.89, 274.92, 185.17, 278.55, 179.27, 280.82, 172.02, 282.18, 153.87, 271.74, 139.81, 253.6, 137.09, 244.53, 139.36, 235.91, 148.43, 232.28, 169.29, 242.26, 184.72, 240.9, 189.25, 226.38, 196.97, 224.57, 207.85]], "area": 6546.086150000002, "iscrowd": 0, "image_id": 217191, "bbox": [215.95, 137.09, 81.65, 117.03], "category_id": 1, "id": 466553}, {"segmentation": [[433.2, 5.32, 440.22, 15.23, 439.81, 36.7, 440.22, 50.33, 446.83, 60.66, 448.48, 73.88, 450.13, 91.22, 446.83, 97.83, 442.7, 112.29, 444.35, 120.55, 439.39, 124.26, 441.05, 137.48, 426.59, 150.28, 401.81, 158.13, 402.64, 176.3, 434.02, 175.89, 408.83, 195.3, 367.53, 217.19, 358.86, 225.87, 356.79, 242.8, 355.14, 226.28, 356.79, 176.3, 341.51, 122.61, 333.25, 96.18, 318.79, 86.68, 283.69, 64.79, 285.75, 4.9, 285.34, 2.01, 432.37, 0.77]], "area": 23031.3719, "iscrowd": 0, "image_id": 140115, "bbox": [283.69, 0.77, 166.44, 242.03], "category_id": 1, "id": 466644}, {"segmentation": [[315.26, 200.31, 300.87, 206.95, 290.62, 210.82, 276.23, 214.42, 268.48, 218.3, 252.97, 213.87, 253.8, 207.23, 261.56, 199.2, 261.28, 190.75, 252.97, 187.16, 249.38, 181.07, 245.22, 176.36, 241.62, 188.82, 243.56, 194.63, 243.29, 198.51, 240.79, 202.38, 236.09, 199.06, 233.6, 192.69, 232.49, 189.37, 233.04, 181.34, 238.58, 166.39, 243.56, 155.32, 239.69, 152.28, 236.92, 149.51, 236.36, 146.74, 235.81, 143.14, 234.15, 139.27, 239.13, 132.34, 242.46, 130.13, 246.33, 130.13, 249.93, 130.13, 254.64, 135.11, 257.4, 136.77, 264.32, 136.22, 271.8, 137.33, 276.78, 138.99, 283.15, 142.59, 289.52, 146.46, 293.39, 152.28, 297.82, 162.24, 300.59, 168.89, 300.59, 172.76, 297.27, 181.07, 286.47, 200.44, 311.38, 191.86, 313.88, 189.92, 317.2, 192.69, 315.81, 200.44]], "area": 4204.273300000001, "iscrowd": 0, "image_id": 17591, "bbox": [232.49, 130.13, 84.71, 88.17], "category_id": 1, "id": 466950}, {"segmentation": [[286.48, 4.83, 279.94, 22.58, 282.74, 34.1, 279.94, 37.84, 279.94, 49.67, 283.36, 52.79, 287.1, 61.19, 298.0, 76.45, 297.06, 87.04, 305.47, 90.16, 300.8, 104.17, 300.18, 133.44, 301.42, 140.6, 305.16, 166.76, 304.23, 182.96, 308.9, 201.64, 305.47, 209.74, 304.23, 227.8, 306.72, 241.81, 321.67, 262.37, 323.22, 286.66, 312.63, 296.62, 315.75, 311.88, 318.86, 315.31, 326.34, 304.41, 331.94, 299.43, 342.84, 292.57, 351.56, 293.51, 361.53, 305.03, 365.26, 301.29, 360.28, 291.02, 352.81, 277.31, 352.81, 265.17, 350.63, 258.63, 353.12, 241.81, 352.18, 228.73, 354.99, 223.75, 355.61, 210.98, 359.35, 204.76, 355.61, 192.92, 357.79, 185.76, 367.13, 196.04, 366.51, 213.79, 363.08, 220.95, 366.51, 239.32, 366.82, 260.81, 367.75, 298.8, 370.56, 309.7, 378.34, 316.24, 425.68, 326.83, 425.37, 302.85, 427.23, 301.61, 430.66, 308.77, 434.71, 307.52, 437.51, 307.52, 440.94, 321.22, 442.8, 329.94, 501.04, 343.96, 503.22, 342.09, 506.33, 333.68, 497.3, 301.92, 496.68, 272.96, 508.82, 262.37, 513.5, 253.96, 524.08, 241.19, 517.23, 228.42, 511.94, 214.72, 503.84, 201.64, 500.42, 195.72, 488.89, 169.57, 482.35, 138.11, 485.47, 130.64, 483.6, 119.43, 477.06, 111.95, 479.86, 105.41, 479.55, 88.29, 473.01, 71.47, 462.11, 55.59, 451.84, 45.0, 444.67, 42.51, 423.5, 36.9, 397.03, 34.72, 378.97, 34.41, 365.89, 31.3, 358.1, 26.32, 352.18, 13.24, 346.27, 7.32, 340.04, 0.0, 289.9, 0.47]], "area": 54057.8066, "iscrowd": 0, "image_id": 318509, "bbox": [279.94, 0.0, 244.14, 343.96], "category_id": 1, "id": 467138}, {"segmentation": [[191.57, 347.98, 182.96, 316.77, 192.65, 274.8, 258.3, 256.5, 285.2, 276.95, 286.28, 292.02, 280.9, 312.47, 291.66, 300.63, 341.17, 286.64, 367.0, 269.42, 357.31, 271.57, 331.48, 279.1, 322.87, 241.43, 315.34, 181.17, 331.48, 135.96, 354.08, 100.45, 392.83, 75.7, 442.33, 74.62, 477.85, 83.23, 515.52, 117.67, 537.04, 148.88, 545.65, 208.07, 530.58, 269.42, 498.3, 294.17, 476.77, 301.7, 524.13, 350.13, 537.04, 385.65, 547.8, 416.86, 541.35, 480.0, 241.08, 479.28, 240.0, 450.22, 242.15, 444.84, 246.46, 435.16, 255.07, 407.17, 261.52, 396.41, 276.59, 389.96, 314.26, 408.25, 326.1, 403.95, 330.4, 389.96, 334.71, 368.43, 339.01, 355.52, 330.4, 341.52, 327.17, 335.07, 306.73, 329.69, 295.96, 336.14, 281.97, 347.98, 274.44, 356.59, 207.71, 360.9, 194.8, 349.06]], "area": 95729.4549, "iscrowd": 0, "image_id": 260118, "bbox": [182.96, 74.62, 364.84, 405.38], "category_id": 1, "id": 467297}, {"segmentation": [[113.23, 110.06, 111.31, 62.08, 167.92, 59.2, 168.88, 60.16, 170.8, 64.96, 170.8, 80.31, 170.8, 83.19, 172.72, 87.03, 172.72, 100.46, 167.92, 116.77, 165.04, 119.65, 153.53, 130.21, 147.77, 133.08, 136.26, 157.07, 135.3, 170.51, 135.3, 180.1, 134.34, 199.29, 124.74, 223.28, 122.82, 230.96, 128.58, 232.88, 160.24, 238.63, 167.92, 238.63, 174.64, 246.31, 149.69, 252.07, 115.15, 252.07, 105.55, 252.07, 103.63, 250.15, 118.98, 271.26, 124.74, 294.29, 132.42, 319.24, 139.13, 347.06, 119.94, 370.09, 101.71, 372.01, 93.08, 381.61, 82.52, 396.0, 69.09, 413.27, 55.65, 415.19, 40.3, 419.99, 17.27, 420.95, 17.27, 419.99, 22.07, 414.23, 30.71, 405.6, 13.43, 408.48, 1.92, 341.31, 3.84, 333.63, 9.6, 333.63, 15.35, 336.51, 22.07, 336.51, 39.34, 337.47, 57.57, 329.79, 52.78, 317.32, 45.1, 309.64, 41.26, 304.84, 35.5, 295.25, 33.58, 292.37, 29.75, 285.65, 28.79, 280.86, 23.99, 269.34, 23.03, 251.11, 31.67, 228.08, 32.62, 221.36, 32.62, 204.09, 34.54, 195.46, 46.06, 183.94, 54.69, 176.26, 62.37, 165.71, 70.05, 152.28, 78.68, 142.68, 87.32, 133.08, 107.47, 110.06]], "area": 30398.3108, "iscrowd": 0, "image_id": 59542, "bbox": [1.92, 59.2, 172.72, 361.75], "category_id": 1, "id": 467519}, {"segmentation": [[146.7, 156.52, 153.89, 124.88, 169.71, 100.43, 185.53, 101.87, 208.54, 111.94, 209.98, 127.76, 204.22, 146.46, 201.35, 157.96, 217.17, 165.15, 221.48, 173.78, 228.67, 208.3, 235.87, 238.5, 235.87, 251.45, 218.61, 260.07, 185.53, 273.02, 191.28, 291.72, 207.1, 329.11, 212.85, 378.01, 209.98, 418.28, 224.36, 465.74, 251.69, 471.49, 258.88, 481.56, 243.06, 481.56, 199.91, 484.43, 176.9, 480.12, 186.97, 455.67, 179.78, 402.46, 179.78, 373.69, 152.45, 329.11, 145.26, 356.43, 145.26, 375.13, 136.63, 392.39, 116.49, 421.15, 104.99, 449.92, 103.55, 472.93, 107.87, 481.56, 106.43, 494.5, 92.04, 487.31, 84.85, 475.81, 84.85, 424.03, 100.67, 425.47, 106.43, 428.34, 109.3, 412.52, 96.36, 401.02, 102.11, 376.57, 104.99, 275.9, 109.3, 247.13, 80.54, 244.25, 80.54, 222.68, 115.06, 165.15, 126.56, 188.16, 139.51, 198.23, 153.89, 202.55, 128.0, 166.59]], "area": 32783.156449999995, "iscrowd": 0, "image_id": 234422, "bbox": [80.54, 100.43, 178.34, 394.07], "category_id": 1, "id": 467569}, {"segmentation": [[402.0, 224.98, 399.41, 228.54, 399.41, 232.41, 401.03, 236.62, 402.0, 240.5, 399.41, 246.31, 398.77, 258.92, 399.74, 267.0, 397.15, 295.13, 396.18, 317.43, 398.77, 328.42, 403.29, 333.92, 410.73, 335.21, 412.67, 333.59, 409.76, 331.01, 407.5, 329.39, 405.23, 325.51, 405.23, 322.93, 406.53, 319.69, 411.7, 320.34, 412.67, 322.93, 412.99, 330.69, 416.22, 331.66, 428.51, 331.66, 429.48, 331.01, 427.86, 330.04, 422.37, 326.81, 417.84, 322.93, 421.07, 317.43, 421.4, 310.0, 419.46, 284.14, 417.84, 265.71, 417.19, 257.63, 417.19, 250.84, 420.75, 247.93, 419.78, 245.34, 416.55, 244.7, 412.99, 241.14, 411.05, 238.23, 412.67, 229.83, 413.31, 223.69, 407.5, 224.01, 401.68, 223.69, 401.35, 224.01]], "area": 2088.5517499999996, "iscrowd": 0, "image_id": 23676, "bbox": [396.18, 223.69, 33.3, 111.52], "category_id": 1, "id": 467698}, {"segmentation": [[372.08, 213.15, 367.07, 214.72, 365.51, 216.91, 366.45, 225.05, 367.38, 226.3, 363.0, 230.36, 360.5, 232.56, 360.5, 232.56, 361.13, 239.13, 361.75, 243.51, 361.75, 246.01, 371.45, 245.07, 375.83, 246.95, 373.64, 248.51, 370.2, 249.45, 365.51, 249.45, 363.94, 248.83, 363.32, 250.39, 365.51, 254.46, 365.51, 254.46, 367.7, 257.27, 367.7, 257.27, 372.7, 259.15, 377.4, 257.9, 376.15, 255.08, 375.52, 253.21, 380.53, 250.7, 379.59, 246.32, 380.53, 234.12, 381.78, 227.55, 381.78, 227.55, 378.65, 225.05, 378.65, 225.05, 376.15, 225.67, 378.65, 222.23, 377.08, 219.41, 374.58, 215.97, 374.58, 215.97, 372.39, 213.47, 372.39, 213.47]], "area": 615.467099999999, "iscrowd": 0, "image_id": 483948, "bbox": [360.5, 213.15, 21.28, 46.0], "category_id": 1, "id": 467763}, {"segmentation": [[121.35, 175.89, 115.58, 190.34, 115.58, 201.9, 121.35, 213.45, 124.24, 223.57, 119.91, 226.46, 109.8, 226.46, 93.91, 239.46, 86.68, 242.35, 80.9, 256.79, 78.01, 262.57, 78.01, 246.68, 78.01, 238.01, 83.79, 225.01, 83.79, 213.45, 88.13, 213.45, 86.68, 212.01, 79.46, 210.56, 72.23, 217.79, 70.79, 227.9, 66.46, 242.35, 66.46, 259.68, 65.01, 274.13, 66.46, 285.69, 72.23, 288.58, 83.79, 284.24, 95.35, 277.02, 105.46, 278.47, 119.91, 292.91, 119.91, 317.47, 114.13, 327.58, 109.8, 357.92, 108.35, 386.82, 108.35, 404.15, 109.8, 404.15, 122.8, 405.6, 119.91, 414.27, 106.91, 421.49, 83.79, 427.27, 69.35, 435.94, 54.9, 440.27, 52.01, 437.38, 43.34, 428.71, 40.45, 428.71, 34.67, 435.94, 27.45, 451.83, 18.78, 472.05, 18.78, 480.72, 18.78, 492.28, 28.89, 486.5, 72.23, 450.38, 115.58, 447.49, 115.58, 485.06, 102.57, 490.84, 101.13, 499.5, 109.8, 508.17, 127.13, 515.4, 145.91, 519.73, 156.03, 516.84, 158.92, 509.62, 153.14, 506.73, 141.58, 495.17, 127.13, 470.61, 127.13, 459.05, 127.13, 451.83, 141.58, 444.6, 143.02, 441.72, 182.03, 346.37, 173.36, 327.58, 186.37, 245.24, 213.81, 197.56, 218.15, 132.55, 203.7, 131.11, 203.7, 173.0, 196.48, 188.89, 196.48, 190.34, 164.7, 216.34, 157.47, 209.12, 151.69, 170.11, 138.69, 170.11, 121.35, 177.34]], "area": 23762.795050000008, "iscrowd": 0, "image_id": 442961, "bbox": [18.78, 131.11, 199.37, 388.62], "category_id": 1, "id": 468371}, {"segmentation": [[81.98, 630.93, 77.66, 623.74, 71.91, 586.35, 66.16, 554.71, 53.21, 520.19, 57.53, 395.07, 53.21, 385.0, 40.27, 389.31, 24.45, 389.31, 11.51, 383.56, 11.51, 370.62, 8.63, 360.55, 18.7, 326.03, 31.64, 282.89, 43.15, 223.92, 54.65, 216.73, 93.48, 206.66, 120.81, 196.59, 125.12, 190.84, 115.06, 179.34, 94.92, 147.7, 103.55, 104.55, 146.7, 90.17, 153.89, 88.73, 168.27, 97.36, 189.84, 130.44, 189.84, 152.01, 191.28, 156.32, 191.28, 170.71, 191.28, 187.97, 189.84, 193.72, 198.47, 198.03, 258.88, 219.61, 263.19, 222.48, 284.76, 292.95, 287.64, 310.21, 277.57, 340.41, 276.13, 346.17, 273.26, 353.36, 248.81, 326.03, 235.87, 320.28, 230.11, 317.4, 230.11, 317.4, 212.11, 319.06, 194.85, 301.81, 186.22, 304.68, 181.9, 317.63, 191.97, 327.69, 202.04, 346.39, 206.35, 359.33, 226.49, 372.28, 252.38, 392.41, 258.13, 402.48, 258.13, 413.99, 235.12, 421.18, 227.93, 422.61, 209.23, 422.61, 140.2, 413.99, 125.81, 419.74, 140.2, 437.0, 202.04, 447.06, 230.8, 462.88, 245.19, 526.16, 233.68, 556.37, 219.3, 585.13, 213.54, 615.33, 212.11, 622.52, 85.54, 622.52, 84.11, 621.09]], "area": 87684.99329999996, "iscrowd": 0, "image_id": 204294, "bbox": [8.63, 88.73, 279.01, 542.2], "category_id": 1, "id": 468615}, {"segmentation": [[224.39, 207.84, 225.49, 189.18, 216.71, 172.35, 212.32, 166.13, 211.95, 155.89, 212.68, 152.96, 221.1, 151.14, 219.27, 144.18, 221.83, 131.38, 228.05, 126.62, 237.19, 128.82, 244.14, 134.31, 247.8, 147.48, 247.8, 150.77, 245.97, 158.82, 260.61, 169.06, 269.02, 185.16, 264.63, 196.86, 257.68, 198.33, 258.41, 206.37]], "area": 2799.5234, "iscrowd": 0, "image_id": 280765, "bbox": [211.95, 126.62, 57.07, 81.22], "category_id": 1, "id": 469055}, {"segmentation": [[41.95, 370.05, 52.85, 360.82, 57.05, 358.3, 62.08, 328.94, 65.44, 317.2, 78.02, 290.35, 79.7, 281.96, 91.44, 248.4, 104.03, 224.91, 118.29, 208.13, 136.74, 198.07, 160.23, 187.16, 168.62, 180.45, 177.01, 168.71, 191.28, 157.8, 197.15, 150.25, 190.44, 144.38, 187.08, 122.56, 186.24, 113.34, 176.17, 104.11, 170.3, 95.72, 176.17, 92.36, 177.01, 87.33, 172.82, 78.1, 173.66, 61.32, 181.21, 46.22, 194.63, 39.51, 198.83, 26.09, 204.7, 19.38, 209.73, 10.99, 222.32, 2.6, 295.3, 2.6, 296.98, 21.89, 297.82, 25.25, 307.89, 24.41, 319.63, 36.15, 320.47, 42.03, 327.18, 54.61, 328.02, 80.62, 324.66, 86.49, 318.79, 91.52, 327.18, 93.2, 330.54, 94.04, 329.7, 114.18, 325.5, 127.6, 313.76, 127.6, 312.92, 135.15, 302.85, 142.7, 300.34, 148.57, 316.28, 156.96, 342.28, 170.38, 348.15, 177.93, 367.45, 209.81, 390.1, 234.98, 390.94, 243.37, 398.49, 261.83, 406.88, 271.89, 422.82, 294.54, 421.14, 318.87, 439.6, 344.04, 450.5, 350.75, 453.86, 366.69, 42.79, 370.05]], "area": 83381.95505000002, "iscrowd": 0, "image_id": 384755, "bbox": [41.95, 2.6, 411.91, 367.45], "category_id": 1, "id": 469248}, {"segmentation": [[279.33, 89.35, 268.04, 85.24, 250.58, 89.35, 238.26, 105.78, 243.39, 124.26, 246.28, 125.29, 247.74, 127.23, 249.19, 133.06, 247.25, 134.52, 231.22, 152.49, 221.02, 176.78, 217.62, 184.56, 188.96, 201.56, 184.1, 203.5, 176.33, 207.87, 174.87, 215.65, 175.35, 222.45, 176.81, 227.3, 189.44, 220.02, 190.41, 217.59, 193.33, 214.19, 198.19, 215.65, 229.28, 207.87, 247.25, 196.7, 239.48, 204.96, 245.31, 211.76, 239.96, 224.88, 247.25, 230.22, 241.42, 245.76, 227.33, 268.6, 302.14, 267.14, 307.97, 262.28, 321.58, 254.99, 324.0, 247.22, 325.95, 237.51, 331.78, 222.45, 336.15, 215.16, 334.69, 211.76, 336.64, 209.82, 348.29, 179.7, 332.26, 152.98, 331.78, 140.83, 326.92, 131.61, 324.49, 124.8, 319.63, 112.66, 314.77, 105.86, 307.0, 100.51, 301.17, 98.57, 290.49, 97.6, 280.28, 93.23]], "area": 17370.98415, "iscrowd": 0, "image_id": 213405, "bbox": [174.87, 85.24, 173.42, 183.36], "category_id": 1, "id": 469690}, {"segmentation": [[519.32, 124.28, 521.97, 126.37, 524.81, 128.83, 527.09, 133.95, 528.79, 135.65, 532.77, 136.41, 534.1, 136.79, 532.77, 140.39, 534.67, 143.04, 535.24, 144.94, 535.81, 162.37, 535.43, 164.46, 527.28, 163.13, 522.92, 161.23, 519.51, 159.72, 517.42, 158.58, 514.96, 158.96, 511.55, 161.23, 507.95, 162.56, 507.95, 159.72, 509.09, 156.31, 507.76, 153.09, 503.02, 149.67, 500.94, 146.26, 503.78, 144.18, 506.24, 143.04, 510.6, 143.8, 511.93, 149.11, 514.58, 147.02, 515.72, 143.61, 514.01, 140.2, 508.14, 135.46, 508.14, 129.59, 510.22, 126.18, 512.88, 124.66, 517.04, 124.28, 519.7, 124.66]], "area": 860.0058999999994, "iscrowd": 0, "image_id": 13258, "bbox": [500.94, 124.28, 34.87, 40.18], "category_id": 1, "id": 469995}, {"segmentation": [[7.23, 298.56, 9.73, 292.73, 10.98, 287.31, 11.82, 282.73, 13.07, 280.23, 10.57, 276.06, 10.98, 269.81, 15.57, 265.23, 20.15, 263.56, 24.74, 265.23, 22.23, 270.65, 21.82, 273.98, 25.15, 276.06, 27.65, 279.4, 33.9, 292.31, 34.74, 298.56, 35.15, 301.48, 31.82, 304.4, 28.07, 305.65, 24.32, 305.65, 20.57, 301.06, 18.48, 299.4, 13.48, 299.4, 7.23, 299.81]], "area": 687.8201499999994, "iscrowd": 0, "image_id": 317153, "bbox": [7.23, 263.56, 27.92, 42.09], "category_id": 1, "id": 470998}, {"segmentation": [[374.9, 290.49, 376.0, 287.03, 376.0, 281.38, 375.63, 277.37, 375.27, 272.99, 373.99, 268.99, 373.26, 264.43, 373.26, 261.33, 373.26, 258.78, 373.26, 257.32, 376.36, 254.93, 375.81, 253.47, 374.54, 251.29, 373.81, 248.37, 375.27, 246.19, 379.09, 245.46, 380.92, 246.55, 381.46, 247.28, 381.46, 249.47, 381.65, 250.38, 382.74, 252.2, 384.74, 253.84, 386.2, 254.39, 387.11, 254.93, 389.85, 259.49, 390.57, 262.04, 390.57, 264.41, 390.57, 267.51, 389.66, 269.69, 389.48, 274.25, 390.57, 277.71, 392.4, 284.63, 392.21, 289.19, 391.3, 289.17, 389.3, 285.16, 387.11, 282.61, 384.2, 276.59, 382.74, 276.41, 381.28, 277.51, 380.92, 281.88, 380.92, 287.71, 380.73, 290.99, 377.45, 291.36, 376.18, 291.36, 375.27, 290.63]], "area": 535.2682500000003, "iscrowd": 0, "image_id": 274881, "bbox": [373.26, 245.46, 19.14, 45.9], "category_id": 1, "id": 471006}, {"segmentation": [[96.25, 152.09, 97.07, 155.81, 97.07, 159.12, 99.56, 163.26, 104.11, 170.71, 107.0, 176.5, 105.35, 177.74, 101.21, 173.19, 100.38, 171.95, 99.14, 181.88, 99.97, 195.95, 98.31, 208.36, 97.07, 219.12, 99.14, 224.08, 98.31, 233.18, 95.42, 226.98, 93.35, 216.63, 92.11, 207.94, 91.69, 200.08, 90.04, 197.6, 86.32, 202.98, 83.83, 207.94, 83.01, 214.98, 82.18, 220.36, 82.18, 227.39, 78.04, 227.81, 76.8, 225.32, 79.28, 209.6, 77.21, 193.88, 77.63, 185.6, 75.97, 179.81, 72.25, 174.02, 72.25, 169.88, 75.14, 163.67, 80.11, 161.6, 87.14, 158.71, 92.52, 155.4]], "area": 1327.4923000000001, "iscrowd": 0, "image_id": 86620, "bbox": [72.25, 152.09, 34.75, 81.09], "category_id": 1, "id": 471537}, {"segmentation": [[194.16, 190.59, 213.57, 192.75, 231.91, 180.88, 266.43, 197.06, 291.24, 259.63, 275.06, 286.59, 296.63, 306.01, 296.63, 335.13, 284.76, 375.04, 270.74, 404.16, 265.35, 438.68, 270.74, 471.04, 120.81, 473.2, 72.27, 471.04, 60.4, 468.88, 65.8, 418.19, 92.76, 370.73, 112.18, 328.66, 138.07, 295.22, 169.35, 285.51, 165.03, 256.39, 167.19, 221.87, 177.98, 201.38]], "area": 45689.59495, "iscrowd": 0, "image_id": 185591, "bbox": [60.4, 180.88, 236.23, 292.32], "category_id": 1, "id": 471581}, {"segmentation": [[0.0, 285.37, 15.79, 262.82, 30.44, 248.16, 37.21, 233.5, 29.32, 213.21, 23.68, 198.55, 23.68, 182.77, 27.06, 176.0, 28.19, 159.09, 30.44, 135.41, 55.25, 103.84, 84.56, 98.2, 110.5, 101.59, 130.79, 111.73, 139.81, 128.65, 138.68, 145.56, 151.09, 162.47, 151.09, 183.89, 151.09, 207.57, 144.32, 228.99, 144.32, 231.25, 148.83, 233.5, 211.97, 250.42, 224.38, 252.67, 236.78, 274.1, 250.31, 321.45, 259.33, 387.97, 266.09, 401.5, 267.22, 420.67, 261.58, 443.22, 261.58, 465.77, 261.58, 479.3, 254.82, 496.22, 0.0, 497.34]], "area": 79296.79030000001, "iscrowd": 0, "image_id": 56594, "bbox": [0.0, 98.2, 267.22, 399.14], "category_id": 1, "id": 471590}, {"segmentation": [[55.05, 388.37, 49.98, 460.57, 6.92, 461.83, 5.65, 447.9, 11.98, 426.37, 4.38, 397.23, 3.12, 376.97, 0.58, 355.43, 0.0, 293.37, 0.58, 265.5, 0.58, 259.17, 1.85, 252.83, 8.18, 245.23, 19.58, 221.17, 27.18, 205.97, 37.32, 205.97, 44.92, 212.3, 46.18, 217.37, 23.38, 278.17, 19.58, 311.1, 10.72, 359.23, 18.32, 380.77, 27.18, 388.37, 47.45, 388.37]], "area": 6959.0256, "iscrowd": 0, "image_id": 204294, "bbox": [0.0, 205.97, 55.05, 255.86], "category_id": 1, "id": 471810}, {"segmentation": [[220.7, 119.94, 217.82, 88.28, 239.89, 45.1, 242.77, 23.99, 273.47, 26.87, 275.39, 62.37, 293.62, 62.37, 264.84, 96.91]], "area": 3803.0411000000004, "iscrowd": 0, "image_id": 53615, "bbox": [217.82, 23.99, 75.8, 95.95], "category_id": 1, "id": 472643}, {"segmentation": [[272.84, 171.07, 250.98, 186.28, 208.2, 172.02, 210.1, 174.88, 227.21, 211.95, 240.52, 249.98, 221.51, 258.54, 189.18, 258.54, 189.18, 248.08, 191.09, 238.57, 192.04, 228.11, 175.87, 174.88, 169.22, 155.86, 166.37, 140.65, 170.17, 134.0, 183.48, 134.0, 198.69, 112.13, 182.53, 96.92, 95.07, 64.6, 62.74, 46.54, 38.98, 37.98, 34.22, 31.32, 34.22, 28.47, 33.27, 9.46, 41.83, 9.46, 49.43, 10.41, 84.61, 31.32, 154.96, 47.49, 160.66, 34.18, 180.63, 13.26, 211.05, 17.06, 255.73, 31.32, 300.41, 40.83, 352.7, 43.68, 353.65, 28.47, 366.96, 23.72, 372.66, 22.77, 376.47, 31.32, 375.52, 48.44, 364.11, 63.65, 351.75, 65.55, 326.08, 65.55, 275.7, 66.5, 279.5, 84.56, 291.86, 87.41, 321.33, 76.01, 328.93, 75.06, 338.44, 81.71, 356.5, 109.28, 366.96, 139.7, 398.33, 151.11, 414.49, 150.16, 416.39, 162.52, 379.32, 174.88, 360.3, 178.68, 350.8, 164.42, 344.14, 141.6, 327.03, 116.89, 289.0, 162.52]], "area": 32924.85135, "iscrowd": 0, "image_id": 151322, "bbox": [33.27, 9.46, 383.12, 249.08], "category_id": 1, "id": 472861}, {"segmentation": [[237.12, 93.26, 221.69, 130.85, 186.99, 146.27, 227.48, 152.05, 234.22, 159.76, 225.55, 187.72, 239.04, 192.54, 253.5, 236.87, 241.93, 229.16, 221.69, 241.69, 202.42, 260.97, 188.92, 301.45, 173.5, 325.55, 169.64, 361.22, 186.03, 385.31, 206.27, 376.64, 240.01, 346.76, 240.97, 354.47, 250.61, 419.05, 251.57, 420.98, 431.82, 421.94, 428.93, 414.23, 448.21, 407.48, 455.92, 382.42, 462.66, 361.22, 458.81, 322.66, 424.11, 256.15, 379.77, 218.56, 366.28, 221.45, 347.0, 206.99, 355.67, 151.09, 355.67, 120.24, 332.54, 92.29, 298.8, 79.76, 274.71, 73.98, 251.57, 81.69]], "area": 63483.11315000001, "iscrowd": 0, "image_id": 397184, "bbox": [169.64, 73.98, 293.02, 347.96], "category_id": 1, "id": 473144}, {"segmentation": [[396.94, 34.52, 414.2, 50.34, 431.46, 74.79, 434.34, 135.19, 419.96, 178.34, 392.63, 243.06, 388.31, 309.21, 405.57, 309.21, 407.01, 304.9, 408.45, 277.57, 408.45, 268.94, 419.96, 251.69, 424.27, 248.81, 435.78, 277.57, 432.9, 309.21, 431.46, 360.99, 422.83, 478.92, 385.44, 496.18, 385.44, 517.75, 467.42, 520.63, 470.29, 520.63, 480.0, 500.49, 477.48, 168.27, 476.04, 41.71, 477.48, 23.01, 480.0, 7.19, 473.17, 7.19, 421.39, 1.44, 386.88, 2.88, 388.31, 14.38, 394.07, 21.57]], "area": 30985.434050000018, "iscrowd": 0, "image_id": 17580, "bbox": [385.44, 1.44, 94.56, 519.19], "category_id": 1, "id": 473659}, {"segmentation": [[503.3, 403.51, 499.5, 349.07, 502.03, 321.21, 506.46, 309.18, 512.16, 302.85, 513.43, 292.09, 508.36, 281.96, 502.03, 275.63, 510.26, 269.3, 509.0, 259.8, 500.77, 253.47, 493.17, 252.84, 490.64, 259.17, 490.64, 268.03, 493.8, 273.1, 491.27, 276.9, 476.71, 282.59, 466.58, 269.93, 455.82, 269.93, 455.82, 273.1, 458.35, 281.96, 458.98, 291.46, 462.15, 301.59, 465.95, 310.45, 472.28, 318.05, 469.11, 335.77, 467.85, 351.6, 468.48, 366.16, 467.21, 378.82, 467.85, 390.85, 461.52, 406.04, 477.98, 402.24, 477.98, 385.78, 480.51, 373.12, 486.84, 380.09, 488.1, 402.88, 504.56, 404.14]], "area": 4929.81575, "iscrowd": 0, "image_id": 187474, "bbox": [455.82, 252.84, 57.61, 153.2], "category_id": 1, "id": 474971}, {"segmentation": [[265.07, 425.63, 261.43, 401.0, 246.83, 375.45, 256.86, 315.24, 247.74, 262.33, 277.85, 236.79, 269.64, 197.56, 299.74, 188.44, 311.6, 202.12, 307.04, 216.72, 324.37, 224.93, 320.72, 237.7, 326.2, 245.91, 317.99, 295.17, 317.99, 330.75, 323.46, 374.54, 344.44, 440.22, 303.39, 438.4, 312.51, 415.59, 285.14, 360.86, 277.85, 364.51, 299.74, 432.01, 254.13, 434.75]], "area": 14629.938750000003, "iscrowd": 0, "image_id": 528493, "bbox": [246.83, 188.44, 97.61, 251.78], "category_id": 1, "id": 475038}, {"segmentation": [[237.93, 116.77, 180.05, 126.41, 163.98, 130.7, 150.04, 84.61, 135.04, 70.68, 136.11, 28.88, 141.47, 3.16, 321.52, 3.16, 335.46, 19.24, 339.74, 44.96, 325.81, 32.1, 324.74, 36.39, 322.6, 58.89, 304.38, 81.4, 296.87, 85.69, 293.66, 108.19, 293.66, 117.84]], "area": 20196.6525, "iscrowd": 0, "image_id": 426513, "bbox": [135.04, 3.16, 204.7, 127.54], "category_id": 1, "id": 475152}, {"segmentation": [[454.23, 269.89, 455.78, 267.1, 455.16, 261.22, 455.16, 257.5, 455.78, 253.47, 456.4, 250.69, 459.81, 248.52, 468.48, 250.07, 470.65, 252.55, 470.96, 256.57, 469.72, 262.15, 471.58, 265.87, 477.46, 268.34, 479.94, 269.89, 482.73, 272.68, 485.83, 278.26, 483.35, 281.66, 481.18, 282.28, 478.39, 284.45, 476.53, 286.62, 474.05, 288.48, 471.27, 288.79, 469.1, 288.79, 464.14, 286.31, 458.88, 282.28, 453.3, 274.23, 452.68, 272.06]], "area": 771.5517, "iscrowd": 0, "image_id": 385701, "bbox": [452.68, 248.52, 33.15, 40.27], "category_id": 1, "id": 475621}, {"segmentation": [[228.04, 137.25, 251.69, 119.51, 272.8, 120.35, 292.23, 118.67, 320.1, 91.64, 333.61, 61.23, 367.4, 116.98, 380.91, 145.69, 394.43, 142.31, 415.54, 144.0, 418.07, 146.54, 374.16, 147.38, 364.86, 147.38, 358.11, 144.85, 357.26, 136.4, 353.04, 134.71, 339.53, 147.38, 328.55, 152.45, 316.72, 149.92, 282.09, 158.36, 263.51, 148.23, 259.29, 158.36, 254.22, 162.58, 243.24, 168.5, 249.16, 177.79, 232.26, 175.25, 214.53, 148.23, 228.89, 134.71], [421.45, 194.68, 418.07, 199.75, 414.7, 206.5, 410.47, 257.18, 406.25, 285.05, 389.36, 336.57, 385.14, 354.31, 368.24, 337.42, 362.33, 263.09, 364.86, 241.98, 386.82, 234.38, 380.91, 199.75, 371.62, 194.68, 367.4, 193.83, 368.24, 186.23, 368.24, 179.48]], "area": 12994.904999999999, "iscrowd": 0, "image_id": 96177, "bbox": [214.53, 61.23, 206.92, 293.08], "category_id": 1, "id": 475629}, {"segmentation": [[184.5, 91.88, 187.5, 90.38, 198.0, 88.13, 212.25, 87.38, 221.25, 85.13, 228.0, 86.63, 233.25, 79.88, 228.75, 70.88, 219.0, 65.63, 212.25, 59.63, 208.5, 53.63, 207.75, 43.87, 204.75, 34.88, 202.5, 28.88, 200.25, 24.38, 205.5, 13.88, 210.0, 1.13, 210.0, 0.38, 183.75, 1.88, 183.0, 8.63, 177.75, 19.13, 172.5, 27.38, 171.75, 41.63, 172.5, 55.13, 177.75, 71.63, 181.5, 80.63, 183.0, 88.88, 183.0, 91.13]], "area": 3126.675, "iscrowd": 0, "image_id": 353009, "bbox": [171.75, 0.38, 61.5, 91.5], "category_id": 1, "id": 476011}, {"segmentation": [[126.55, 182.01, 118.09, 177.37, 108.8, 172.46, 103.07, 171.36, 72.48, 177.64, 65.11, 187.48, 64.29, 194.85, 62.1, 204.68, 61.55, 211.78, 60.46, 220.52, 58.55, 222.98, 54.18, 231.17, 52.54, 235.27, 50.63, 242.92, 52.04, 259.52, 46.4, 273.96, 48.91, 292.78, 65.85, 317.87, 68.36, 332.93, 72.12, 344.85, 74.0, 348.62, 85.92, 337.32, 100.36, 328.54, 124.83, 325.4, 128.59, 314.74, 138.0, 307.84, 139.26, 293.41, 139.26, 271.45, 146.16, 257.64, 161.84, 248.86, 176.9, 246.98, 186.94, 240.7, 177.53, 222.51, 165.61, 216.86, 154.31, 201.8, 144.28, 196.78, 129.84, 191.14, 125.45, 182.35]], "area": 14266.881099999997, "iscrowd": 0, "image_id": 91307, "bbox": [46.4, 171.36, 140.54, 177.26], "category_id": 1, "id": 476642}, {"segmentation": [[170.43, 146.7, 160.72, 154.25, 162.88, 166.11, 160.72, 175.82, 163.96, 176.9, 169.35, 186.61, 153.17, 195.24, 135.91, 202.79, 121.89, 213.57, 112.18, 225.44, 106.79, 236.22, 90.61, 241.62, 84.13, 247.01, 90.61, 257.8, 103.55, 261.03, 115.42, 262.11, 117.57, 251.33, 141.3, 255.64, 159.64, 249.17, 169.35, 244.85, 187.69, 238.38, 187.69, 236.22, 195.24, 251.33, 198.47, 270.74, 197.39, 296.63, 199.55, 317.12, 189.84, 336.54, 168.27, 353.8, 156.4, 379.69, 143.46, 386.16, 127.28, 387.24, 135.91, 396.94, 147.78, 401.26, 163.96, 404.49, 177.98, 400.18, 177.98, 387.24, 185.53, 376.45, 203.87, 366.74, 212.49, 347.33, 215.73, 339.78, 226.52, 348.4, 235.15, 367.82, 258.88, 380.76, 265.35, 385.08, 268.58, 352.72, 239.46, 334.38, 240.54, 311.73, 240.54, 290.16, 249.17, 276.13, 262.11, 263.19, 252.4, 240.54, 243.78, 223.28, 238.38, 202.79, 234.07, 182.29, 228.67, 170.43, 216.81, 163.96, 203.87, 156.4, 193.08, 148.85, 184.45, 143.46, 175.82, 141.3, 169.35, 145.62, 165.03, 147.78]], "area": 18242.951800000003, "iscrowd": 0, "image_id": 184877, "bbox": [84.13, 141.3, 184.45, 263.19], "category_id": 1, "id": 476659}, {"segmentation": [[178.7, 472.89, 173.56, 436.94, 148.91, 350.65, 149.93, 313.67, 138.63, 243.81, 120.14, 262.31, 108.84, 248.95, 99.59, 216.08, 83.16, 195.53, 67.75, 184.23, 61.59, 164.71, 85.21, 164.71, 115.01, 181.15, 130.41, 177.04, 133.49, 152.38, 136.58, 114.37, 142.74, 85.61, 172.53, 77.39, 197.19, 85.61, 207.46, 116.43, 203.35, 154.44, 245.47, 173.95, 260.88, 235.59, 279.37, 311.61, 263.96, 299.28, 238.27, 251.0, 250.6, 309.56, 217.74, 410.23, 217.74, 446.18, 223.9, 480.0, 182.81, 480.0]], "area": 37545.22205000001, "iscrowd": 0, "image_id": 576322, "bbox": [61.59, 77.39, 217.78, 402.61], "category_id": 1, "id": 476773}, {"segmentation": [[55.62, 345.51, 53.93, 330.34, 36.24, 316.01, 30.34, 306.74, 26.12, 299.16, 19.38, 281.46, 10.11, 273.88, 0.0, 276.4, 0.84, 358.15, 29.49, 357.3, 46.35, 357.3, 53.93, 351.4]], "area": 3098.296, "iscrowd": 0, "image_id": 453734, "bbox": [0.0, 273.88, 55.62, 84.27], "category_id": 1, "id": 476784}, {"segmentation": [[254.28, 4.8, 254.28, 13.43, 230.29, 10.56, 230.29, 51.82, 215.9, 83.48, 216.86, 96.91, 215.9, 112.27, 232.21, 156.41, 227.41, 168.88, 215.9, 176.56, 210.14, 192.87, 208.22, 213.02, 208.22, 213.02, 208.22, 223.58, 220.7, 227.41, 238.93, 229.33, 242.77, 239.89, 300.34, 232.21, 343.52, 222.62, 387.66, 235.09, 411.65, 249.48, 418.36, 284.99, 356.95, 304.18, 322.41, 329.13, 308.02, 357.91, 310.89, 389.58, 313.77, 422.2, 2.88, 419.32, 1.92, 2.88, 251.4, 2.88]], "area": 116324.16715, "iscrowd": 0, "image_id": 487869, "bbox": [1.92, 2.88, 416.44, 419.32], "category_id": 1, "id": 477951}, {"segmentation": [[165.41, 37.51, 179.84, 34.62, 193.3, 36.55, 201.96, 41.35, 204.84, 53.86, 204.84, 72.13, 206.77, 87.52, 207.73, 100.98, 216.39, 110.6, 226.96, 115.41, 238.5, 124.06, 248.12, 145.22, 253.89, 166.38, 262.55, 188.5, 269.28, 217.35, 273.13, 229.85, 266.39, 229.85, 262.55, 232.73, 266.39, 245.24, 274.09, 256.78, 274.09, 260.62, 265.43, 263.51, 249.08, 255.82, 240.43, 224.08, 225.04, 203.88, 221.19, 220.23, 233.7, 231.77, 237.54, 245.24, 265.43, 419.31, 223.12, 419.31, 214.46, 369.3, 190.42, 307.75, 186.57, 326.02, 190.42, 393.34, 200.04, 421.23, 159.64, 419.31, 149.07, 334.68, 141.37, 295.25, 131.75, 280.82, 129.83, 265.43, 143.3, 235.62, 136.56, 222.16, 135.6, 195.23, 123.1, 197.15, 100.98, 201.0, 58.66, 209.65, 29.81, 200.04, 26.93, 190.42, 18.27, 188.5, 10.58, 177.92, 12.5, 163.49, 20.2, 162.53, 25.97, 160.61, 35.58, 158.68, 49.05, 170.22, 55.78, 176.95, 131.75, 125.02, 142.33, 114.44, 160.61, 97.13, 160.61, 82.71, 154.84, 63.47, 170.22, 39.43], [276.01, 248.12, 284.67, 254.85, 286.59, 266.39, 282.74, 276.97, 274.09, 277.93, 274.09, 264.47]], "area": 41426.80499999999, "iscrowd": 0, "image_id": 279401, "bbox": [10.58, 34.62, 276.01, 386.61], "category_id": 1, "id": 478231}, {"segmentation": [[54.57, 505.79, 175.66, 524.77, 238.01, 535.61, 322.96, 549.16, 336.51, 537.42, 354.59, 525.67, 360.92, 498.56, 360.92, 487.72, 346.45, 499.46, 337.42, 502.18, 326.58, 496.75, 307.6, 505.79, 247.95, 485.9, 194.64, 466.03, 153.07, 426.27, 60.9, 487.72, 53.66, 504.88]], "area": 16396.9612, "iscrowd": 0, "image_id": 545806, "bbox": [53.66, 426.27, 307.26, 122.89], "category_id": 1, "id": 478300}, {"segmentation": [[219.44, 134.1, 224.2, 117.1, 224.88, 101.46, 228.28, 85.14, 235.08, 74.94, 247.32, 72.22, 257.52, 66.1, 265.0, 57.27, 261.6, 45.03, 271.8, 18.51, 284.04, 19.87, 296.27, 25.31, 302.39, 39.59, 302.39, 54.55, 297.63, 59.98, 296.27, 65.42, 317.35, 81.74, 327.55, 96.02, 330.27, 121.86, 328.91, 154.49, 328.23, 172.17, 328.91, 183.05, 322.79, 216.37, 311.91, 230.64, 309.19, 232.68, 301.71, 274.16, 297.63, 300.0, 298.99, 319.03, 294.91, 329.23, 279.28, 327.87, 269.76, 321.07, 273.16, 292.52, 271.8, 273.48, 270.44, 253.08, 260.92, 283.0, 258.88, 301.36, 255.48, 312.24, 235.08, 302.72, 235.76, 265.32, 235.76, 234.04, 230.32, 217.05, 231.0, 195.29, 235.76, 177.61, 243.92, 145.65, 240.52, 137.5, 229.64, 163.33, 224.2, 173.53, 227.6, 183.05, 227.6, 195.97, 223.52, 193.93, 222.84, 182.37, 222.84, 177.61, 222.16, 167.41, 222.16, 160.61, 222.84, 155.17, 222.84, 144.29], [232.34, 336.65, 230.44, 348.03, 231.39, 355.62, 228.54, 357.51, 223.8, 357.51, 220.96, 359.41, 226.65, 370.79, 234.23, 371.74, 247.51, 372.69, 254.15, 374.58, 255.1, 369.84, 256.04, 360.36, 257.94, 349.93, 256.99, 337.6]], "area": 23488.16340000001, "iscrowd": 0, "image_id": 422341, "bbox": [219.44, 18.51, 110.83, 356.07], "category_id": 1, "id": 478656}, {"segmentation": [[99.99, 1.94, 116.49, 43.69, 71.84, 114.55, 65.04, 146.59, 59.22, 173.77, 74.75, 227.16, 85.43, 282.5, 88.34, 358.22, 80.58, 362.1, 67.96, 365.99, 66.01, 390.26, 66.01, 422.29, 3.88, 427.15, 0.97, 0.0]], "area": 33249.07135, "iscrowd": 0, "image_id": 263098, "bbox": [0.97, 0.0, 115.52, 427.15], "category_id": 1, "id": 478663}, {"segmentation": [[616.26, 36.77, 621.18, 29.93, 624.6, 29.08, 627.8, 28.22, 630.37, 24.8, 632.72, 23.31, 635.71, 22.24, 638.91, 25.23, 639.13, 28.22, 639.77, 32.71, 640.0, 44.46, 640.0, 48.1, 639.34, 48.1, 634.43, 42.54, 630.58, 42.11, 627.59, 47.24, 633.36, 53.44, 635.28, 57.29, 635.71, 63.27, 632.93, 69.89, 629.94, 75.88, 625.24, 80.37, 620.54, 79.08, 623.53, 71.6, 626.52, 67.54, 627.37, 63.48, 624.81, 58.57, 622.46, 56.43, 621.82, 61.99, 618.19, 68.61, 613.91, 75.45, 614.77, 77.8, 617.12, 77.37, 615.62, 80.37, 612.2, 80.37, 607.5, 79.51, 609.64, 72.24, 613.06, 65.83, 617.76, 59.64, 619.25, 58.14, 616.05, 52.37, 613.48, 47.24, 613.7, 41.26]], "area": 933.7985000000026, "iscrowd": 0, "image_id": 395040, "bbox": [607.5, 22.24, 32.5, 58.13], "category_id": 1, "id": 478694}, {"segmentation": [[78.61, 409.07, 105.42, 304.93, 110.58, 270.9, 104.39, 228.62, 118.83, 181.19, 142.54, 163.66, 149.76, 128.6, 170.39, 124.47, 186.88, 143.03, 180.7, 168.81, 198.23, 180.16, 198.23, 216.25, 183.79, 208.0, 174.51, 187.37, 152.86, 184.28, 141.51, 192.53, 140.48, 213.15, 167.29, 240.99, 162.14, 261.62, 177.6, 320.39, 167.29, 338.95, 163.17, 341.02, 147.7, 303.89, 133.26, 331.74, 106.45, 398.76, 108.52, 423.51, 106.45, 433.82, 83.77, 433.82], [169.35, 367.83, 177.6, 428.66, 183.79, 426.6, 202.35, 372.98, 194.1, 337.92]], "area": 15357.73155, "iscrowd": 0, "image_id": 19789, "bbox": [78.61, 124.47, 123.74, 309.35], "category_id": 1, "id": 478698}, {"segmentation": [[164.24, 163.81, 150.6, 139.25, 150.6, 123.56, 150.6, 111.97, 154.01, 103.78, 164.24, 97.64, 181.29, 92.87, 189.48, 82.64, 185.39, 74.45, 187.43, 60.13, 191.53, 47.17, 198.35, 41.71, 211.31, 40.34, 227.68, 48.53, 230.41, 57.4, 229.04, 64.9, 226.32, 71.72, 216.77, 88.78, 236.55, 92.87, 246.1, 99.01, 252.92, 123.56, 249.51, 146.07, 261.1, 146.07, 271.34, 148.12, 268.61, 180.18, 261.1, 217.7, 263.15, 225.88, 269.29, 234.75, 250.19, 242.26, 229.04, 271.59, 226.32, 257.94, 222.9, 251.12, 205.17, 253.17, 201.08, 247.71, 175.16, 200.64, 163.56, 177.45]], "area": 16443.733249999997, "iscrowd": 0, "image_id": 216075, "bbox": [150.6, 40.34, 120.74, 231.25], "category_id": 1, "id": 479010}, {"segmentation": [[392.06, 168.68, 399.66, 131.63, 431.01, 111.68, 453.81, 102.18, 454.76, 74.63, 466.16, 56.58, 497.51, 50.88, 508.91, 56.58, 519.36, 73.68, 520.31, 100.28, 520.31, 117.38, 549.76, 144.93, 574.46, 165.83, 591.56, 185.78, 592.51, 203.82, 589.66, 208.57, 560.21, 212.37, 533.61, 218.07, 531.71, 238.97, 543.11, 269.37, 558.31, 291.22, 585.86, 329.22, 570.66, 387.17, 547.86, 430.87, 546.91, 467.92, 547.86, 474.57, 546.91, 479.32, 468.06, 477.42, 470.91, 447.02, 453.09, 373.4, 443.41, 340.04, 433.72, 309.9, 400.36, 276.54, 397.13, 250.71, 397.13, 216.27]], "area": 52189.418049999986, "iscrowd": 0, "image_id": 392725, "bbox": [392.06, 50.88, 200.45, 428.44], "category_id": 1, "id": 479672}, {"segmentation": [[526.11, 254.39, 526.11, 256.19, 526.11, 257.27, 526.11, 258.71, 525.99, 260.76, 525.87, 262.08, 525.27, 262.92, 524.31, 262.92, 523.47, 262.08, 523.35, 259.68, 522.38, 257.15, 522.38, 254.75, 522.26, 252.7, 522.14, 250.3, 522.14, 247.17, 522.02, 244.77, 521.78, 243.93, 520.1, 241.64, 520.7, 240.08, 522.02, 239.24, 523.35, 238.64, 523.83, 236.11, 524.07, 234.07, 524.91, 233.59, 526.95, 234.07, 528.16, 234.79, 528.52, 236.11, 529.36, 236.47, 529.84, 235.51, 529.84, 234.79, 530.32, 233.71, 530.92, 234.67, 532.24, 236.95, 533.08, 238.16, 533.2, 240.32, 532.84, 241.16, 530.92, 241.76, 530.92, 244.29, 530.92, 248.01, 531.28, 250.3, 531.4, 252.1, 530.92, 255.47, 531.64, 257.39, 530.68, 259.8, 531.52, 262.08, 532.48, 262.68, 532.24, 263.4, 531.88, 263.4, 529.6, 263.28, 528.52, 262.08, 528.03, 260.76, 527.31, 261.0, 527.19, 260.28, 527.07, 257.39, 527.07, 255.95]], "area": 246.5540499999989, "iscrowd": 0, "image_id": 274881, "bbox": [520.1, 233.59, 13.1, 29.81], "category_id": 1, "id": 479715}, {"segmentation": [[68.85, 145.04, 93.19, 160.02, 104.88, 174.05, 120.32, 189.96, 132.49, 203.53, 136.7, 184.35, 142.31, 161.89, 150.27, 137.09, 161.03, 112.29, 170.86, 93.57, 182.09, 76.73, 190.04, 69.71, 178.34, 59.2, 162.43, 53.58, 137.17, 51.24, 119.86, 54.52, 100.2, 69.49, 94.12, 82.59, 88.97, 106.45, 84.3, 125.17]], "area": 9052.351750000002, "iscrowd": 0, "image_id": 140115, "bbox": [68.85, 51.24, 121.19, 152.29], "category_id": 1, "id": 480120}, {"segmentation": [[75.65, 392.91, 77.88, 400.35, 85.32, 410.02, 93.5, 410.02, 93.5, 404.07, 102.42, 383.25, 112.09, 372.09, 139.6, 341.61, 153.72, 328.97, 171.57, 299.23, 180.49, 287.33, 193.13, 316.33, 200.57, 336.41, 199.82, 343.84, 195.36, 369.12, 190.16, 401.84, 190.16, 417.45, 219.15, 423.4, 229.56, 420.42, 228.82, 412.99, 219.15, 409.27, 210.98, 398.86, 213.95, 372.09, 222.87, 312.61, 210.23, 268.74, 211.72, 260.56, 228.08, 241.98, 228.08, 233.8, 233.28, 232.31, 239.97, 256.85, 245.92, 270.97, 240.72, 280.64, 234.77, 293.28, 248.15, 296.25, 257.82, 273.95, 254.84, 229.34, 255.59, 202.57, 248.15, 182.49, 254.84, 166.88, 255.59, 153.5, 247.41, 137.14, 236.26, 131.93, 218.41, 139.37, 219.15, 152.75, 219.15, 163.9, 200.57, 168.37, 187.93, 175.8, 176.77, 175.8, 163.39, 189.93, 138.85, 224.87, 138.85, 236.77, 126.21, 254.62, 118.78, 256.1, 117.29, 277.67, 143.31, 275.44, 138.85, 261.31, 156.7, 232.31, 170.08, 215.21, 176.77, 212.98, 164.88, 231.57, 158.18, 246.44, 149.26, 271.72, 140.34, 295.51, 133.65, 317.82, 114.32, 337.89, 99.45, 361.69, 88.29, 373.58, 83.83, 383.25, 76.4, 391.43]], "area": 18884.972000000005, "iscrowd": 0, "image_id": 410755, "bbox": [75.65, 131.93, 182.17, 291.47], "category_id": 1, "id": 480520}, {"segmentation": [[186.64, 389.54, 186.87, 383.62, 184.36, 381.57, 185.28, 377.01, 187.33, 361.98, 183.0, 357.42, 188.46, 352.64, 189.6, 347.17, 192.56, 346.03, 195.53, 347.85, 196.21, 351.95, 199.17, 353.32, 201.45, 362.43, 197.58, 365.16, 197.12, 379.97, 194.84, 389.08, 194.39, 391.59, 187.1, 391.36]], "area": 496.19365000000005, "iscrowd": 0, "image_id": 448061, "bbox": [183.0, 346.03, 18.45, 45.56], "category_id": 1, "id": 480569}, {"segmentation": [[269.66, 321.11, 266.43, 318.95, 266.43, 315.72, 252.4, 294.14, 241.62, 283.36, 235.15, 283.36, 231.91, 284.43, 228.67, 281.2, 226.52, 261.78, 229.75, 256.39, 244.85, 238.05, 248.09, 233.74, 261.03, 240.21, 239.46, 222.95, 234.07, 217.56, 224.36, 194.91, 227.6, 190.59, 237.3, 177.65, 251.33, 170.1, 262.11, 165.78, 271.82, 170.1, 276.13, 179.81, 281.53, 190.59, 289.08, 200.3, 303.1, 217.56, 304.18, 217.56, 316.04, 213.24, 327.91, 219.72, 341.93, 225.11, 347.33, 245.6, 355.96, 255.31, 359.19, 283.36, 359.19, 283.36, 359.19, 281.2, 373.21, 288.75, 357.03, 295.22, 351.64, 286.59, 335.46, 273.65, 326.83, 275.81, 308.49, 281.2, 305.26, 285.51, 298.79, 296.3, 307.42, 308.16, 312.81, 320.03, 297.71, 313.56, 277.21, 318.95, 267.51, 318.95]], "area": 11709.037799999998, "iscrowd": 0, "image_id": 115055, "bbox": [224.36, 165.78, 148.85, 155.33], "category_id": 1, "id": 480657}, {"segmentation": [[243.6, 305.59, 259.46, 304.14, 269.55, 315.68, 269.55, 338.74, 273.87, 347.39, 282.52, 347.39, 304.14, 350.27, 314.23, 356.04, 312.79, 369.01, 307.03, 390.63, 298.38, 435.32, 279.64, 435.32, 234.95, 435.32, 234.95, 387.75, 234.95, 348.83, 232.07, 331.53]], "area": 7646.948500000001, "iscrowd": 0, "image_id": 532414, "bbox": [232.07, 304.14, 82.16, 131.18], "category_id": 1, "id": 481120}, {"segmentation": [[72.42, 249.33, 58.7, 257.66, 50.38, 295.37, 45.48, 294.88, 44.99, 298.8, 35.68, 296.84, 32.25, 293.9, 37.64, 289.98, 38.62, 285.08, 42.05, 281.66, 44.01, 261.57, 48.42, 251.29, 49.4, 228.76, 55.27, 218.96, 58.7, 210.64, 63.6, 205.25, 70.46, 203.78, 72.42, 196.92, 77.81, 193.0, 82.7, 192.51, 86.13, 204.76, 93.97, 208.19, 100.83, 219.45, 103.27, 225.33, 106.21, 236.1, 106.21, 250.8, 106.21, 252.27, 111.11, 259.62, 107.19, 264.51, 110.62, 275.29, 119.93, 297.82, 107.19, 298.31, 100.34, 286.06, 92.01, 258.15, 72.42, 247.86]], "area": 3784.9616000000005, "iscrowd": 0, "image_id": 506417, "bbox": [32.25, 192.51, 87.68, 106.29], "category_id": 1, "id": 481262}, {"segmentation": [[179.38, 18.77, 192.47, 103.92, 187.23, 179.89, 247.48, 245.36, 259.27, 282.04, 274.99, 465.41, 375.85, 566.27, 392.88, 581.99, 335.24, 604.26, 289.4, 600.32, 254.03, 602.94, 66.73, 602.94, 7.8, 597.7, 3.86, 160.23, 19.58, 161.54, 6.48, 111.77, 11.72, 110.46, 3.86, 37.12, 16.96, 3.05, 180.68, 0.44]], "area": 147940.3737, "iscrowd": 0, "image_id": 9025, "bbox": [3.86, 0.44, 389.02, 603.82], "category_id": 1, "id": 481450}, {"segmentation": [[179.85, 14.59, 176.89, 12.62, 182.81, 5.7, 179.36, 0.0, 166.03, 0.27, 167.51, 8.67, 160.6, 20.02, 161.59, 36.81, 164.05, 54.09, 164.55, 61.99, 166.52, 67.91, 166.03, 77.29, 164.05, 87.66, 166.52, 97.53, 166.52, 102.96, 168.0, 107.9, 174.42, 101.98, 174.92, 94.57, 173.93, 87.17, 173.93, 77.29, 177.88, 72.35, 172.45, 54.09, 172.45, 44.21, 170.47, 32.86, 174.92, 21.5, 175.9, 17.06, 177.38, 15.58]], "area": 1102.7019499999983, "iscrowd": 0, "image_id": 353009, "bbox": [160.6, 0.0, 22.21, 107.9], "category_id": 1, "id": 482884}, {"segmentation": [[221.66, 248.47, 220.57, 245.58, 223.83, 244.31, 228.17, 244.13, 230.53, 245.21, 230.89, 245.76, 234.69, 246.12, 239.03, 247.75, 241.56, 250.82, 245.72, 257.34, 247.17, 261.5, 248.08, 265.3, 246.45, 267.83, 245.9, 271.09, 232.7, 271.09, 221.12, 271.45, 219.85, 272.35, 219.85, 275.07, 222.56, 274.71, 224.01, 276.33, 226.55, 277.6, 229.98, 285.02, 229.44, 287.55, 232.88, 293.34, 233.06, 296.6, 227.81, 298.41, 227.45, 296.96, 227.63, 292.44, 225.1, 288.64, 222.56, 288.28, 220.94, 285.38, 216.96, 274.71, 214.6, 268.55, 215.15, 266.2, 218.22, 263.85, 219.13, 254.08, 221.3, 250.46], [230.53, 275.97, 231.25, 274.53, 238.31, 275.07, 237.94, 290.63, 235.59, 293.7, 233.96, 292.62, 234.14, 289.0, 235.23, 285.2, 235.95, 281.76, 235.77, 279.77, 231.25, 279.95, 229.44, 278.69, 228.9, 276.88]], "area": 924.9113499999993, "iscrowd": 0, "image_id": 531032, "bbox": [214.6, 244.13, 33.48, 54.28], "category_id": 1, "id": 483410}, {"segmentation": [[392.84, 447.28, 368.03, 441.77, 348.73, 440.39, 330.81, 437.64, 292.22, 427.99, 274.3, 421.09, 270.16, 396.28, 267.41, 337.01, 261.89, 292.91, 259.14, 263.96, 246.73, 237.77, 238.46, 228.12, 217.78, 208.82, 194.35, 190.91, 187.46, 177.12, 188.84, 133.01, 192.97, 120.61, 208.14, 115.09, 227.43, 98.55, 248.11, 94.42, 260.51, 99.93, 279.81, 121.99, 288.08, 135.77, 297.73, 141.28, 308.76, 145.42, 312.89, 156.45, 310.14, 160.58, 315.65, 171.61, 321.16, 190.91, 319.78, 200.55, 294.97, 217.09, 282.57, 228.12, 281.19, 229.5, 285.32, 240.53, 285.32, 250.18, 307.38, 287.39, 322.54, 287.39, 336.32, 287.39, 344.59, 292.91, 363.89, 312.2, 391.46, 335.64, 406.62, 360.45, 420.41, 376.99, 434.19, 382.5, 472.78, 399.04, 489.32, 410.07, 507.24, 410.07, 526.54, 421.09, 536.19, 426.61, 537.57, 434.88, 523.78, 436.26, 504.49, 441.77, 500.35, 455.55, 498.97, 467.96, 494.84, 476.23, 483.81, 483.12, 463.14, 495.53, 449.35, 501.04, 412.14, 501.04, 395.59, 501.04, 361.14, 506.55, 323.92, 510.69, 311.51, 506.55, 299.11, 498.28, 285.32, 484.5, 281.19, 474.85, 281.19, 466.58, 281.19, 463.82, 279.81, 445.91, 278.43, 432.12]], "area": 51785.67639999997, "iscrowd": 0, "image_id": 9025, "bbox": [187.46, 94.42, 350.11, 416.27], "category_id": 1, "id": 483535}, {"segmentation": [[604.19, 234.16, 609.33, 224.9, 621.68, 220.78, 626.83, 214.6, 625.8, 208.43, 639.18, 217.69, 639.18, 197.11, 639.18, 24.19, 626.83, 30.36, 618.6, 39.63, 616.54, 51.98, 616.54, 60.21, 616.54, 69.48, 614.48, 82.86, 615.51, 93.15, 620.66, 104.47, 620.66, 106.53, 614.48, 114.76, 602.13, 127.12, 594.92, 131.23, 594.92, 135.35, 601.1, 147.7, 602.13, 171.38, 600.07, 187.84, 601.1, 199.17, 601.1, 208.43, 604.19, 219.75, 604.19, 225.93], [637.12, 299.01, 619.63, 306.21, 604.19, 310.33, 600.07, 309.3, 591.84, 304.15, 587.72, 309.3, 587.72, 313.42, 586.69, 338.12, 586.69, 347.38, 586.69, 353.56, 586.69, 362.82, 586.69, 377.23, 588.75, 389.58, 588.75, 397.82, 587.72, 411.2, 585.66, 427.67, 588.75, 434.87, 605.22, 451.34, 607.27, 452.37, 612.42, 452.37, 634.04, 451.34, 640.0, 448.25]], "area": 13147.453949999988, "iscrowd": 0, "image_id": 139571, "bbox": [585.66, 24.19, 54.34, 428.18], "category_id": 1, "id": 483775}, {"segmentation": [[127.19, 70.33, 132.1, 52.32, 144.1, 40.32, 166.47, 37.05, 182.84, 37.59, 203.57, 47.96, 215.03, 60.51, 219.94, 97.61, 218.3, 106.34, 213.94, 110.16, 223.76, 106.34, 234.13, 99.79, 250.49, 94.33, 267.41, 94.88, 281.05, 95.97, 295.78, 101.97, 319.24, 113.43, 336.83, 118.19, 339.71, 121.43, 344.75, 118.19, 347.99, 119.27, 349.43, 122.51, 354.11, 121.43, 357.71, 125.39, 368.51, 124.31, 383.62, 126.83, 409.48, 136.48, 424.24, 136.84, 435.04, 135.76, 449.44, 135.76, 457.36, 139.0, 463.84, 144.04, 464.56, 149.43, 464.56, 149.43, 476.08, 149.79, 478.96, 155.19, 476.08, 160.95, 467.8, 162.03, 465.64, 165.63, 458.8, 168.87, 450.88, 177.51, 437.56, 178.95, 400.85, 169.95, 387.89, 170.31, 369.17, 168.51, 348.65, 162.75, 349.73, 176.07, 348.29, 181.83, 341.81, 179.67, 334.61, 182.91, 316.98, 177.51, 301.14, 180.39, 301.86, 213.45, 305.1, 222.09, 305.1, 232.17, 303.3, 245.09, 306.56, 272.77, 309.43, 277.09, 307.28, 280.69, 309.43, 283.21, 308.0, 285.01, 310.87, 287.53, 310.15, 290.77, 314.47, 296.89, 313.03, 301.21, 318.43, 308.73, 323.11, 319.53, 328.87, 329.61, 334.63, 334.64, 340.75, 344.33, 344.71, 351.17, 346.15, 367.72, 195.33, 368.0, 201.09, 360.88, 203.61, 361.24, 211.89, 353.68, 209.37, 351.17, 207.93, 348.65, 200.73, 347.21, 189.21, 339.65, 185.61, 332.45, 183.45, 318.41, 180.21, 297.17, 175.53, 288.89, 175.89, 274.85, 169.05, 265.85, 165.09, 264.78, 160.05, 279.17, 158.61, 285.65, 152.49, 289.61, 143.49, 288.17, 138.09, 287.09, 132.34, 290.33, 126.22, 290.69, 122.98, 290.69, 116.5, 294.65, 107.86, 292.49, 92.38, 283.13, 78.34, 262.62, 68.62, 255.78, 60.7, 242.82, 64.36, 232.87, 65.08, 224.95, 70.48, 222.79, 70.48, 222.79, 70.12, 217.03, 75.16, 212.35, 78.76, 210.55, 78.76, 207.67, 83.8, 202.99, 89.2, 203.71, 90.64, 207.31, 89.92, 214.87, 92.8, 219.19, 94.6, 213.07, 102.52, 209.47, 108.99, 211.99, 112.95, 218.11, 110.43, 229.63, 113.31, 228.19, 117.63, 226.75, 117.63, 226.75, 119.43, 218.83, 122.67, 214.87, 124.47, 205.87, 129.51, 200.83, 128.07, 192.19, 132.39, 190.39, 134.19, 184.28, 138.51, 181.4, 144.27, 174.56, 159.39, 163.04, 160.11, 164.48, 171.63, 155.12, 171.63, 151.16, 170.19, 147.92, 165.51, 142.52, 154.35, 141.44, 143.91, 141.44, 137.07, 137.48, 135.27, 131.0, 133.47, 126.32, 131.67, 115.62, 129.15, 109.86, 126.63, 104.1, 126.27, 99.78, 117.99, 99.78, 109.71, 95.46, 107.19, 90.78, 106.83, 84.3, 108.63, 80.34, 111.87, 77.1, 121.59, 71.7, 126.63, 69.18]], "area": 59999.237499999996, "iscrowd": 0, "image_id": 252391, "bbox": [60.7, 37.05, 418.26, 330.95], "category_id": 1, "id": 483790}, {"segmentation": [[98.11, 310.3, 89.19, 325.17, 84.73, 348.97, 77.29, 363.84, 91.42, 381.68, 85.47, 392.09, 156.11, 403.99, 169.49, 392.83, 168.75, 365.32, 168.0, 341.53, 147.18, 308.07, 129.34, 302.87, 111.49, 301.38, 102.57, 306.58], [76.55, 422.58, 75.8, 441.16, 83.24, 473.88, 83.98, 480.0, 99.6, 479.83, 85.47, 438.19, 81.75, 428.52], [86.96, 419.6, 99.6, 459.75, 113.72, 480.0, 126.36, 480.0, 110.01, 424.06, 97.37, 419.6], [125.62, 426.29, 136.03, 462.73, 141.98, 480.0, 165.77, 479.83, 152.39, 424.81], [168.75, 427.04, 183.62, 480.0, 197.74, 478.34, 191.8, 442.65, 187.33, 424.81]], "area": 11300.87065, "iscrowd": 0, "image_id": 561406, "bbox": [75.8, 301.38, 121.94, 178.62], "category_id": 1, "id": 484086}, {"segmentation": [[228.23, 133.72, 213.99, 141.22, 205.0, 165.2, 199.01, 193.67, 199.01, 199.67, 202.75, 203.41, 189.27, 215.4, 188.52, 219.15, 188.52, 229.64, 189.27, 251.37, 194.51, 273.1, 202.75, 314.31, 194.51, 341.29, 186.27, 359.27, 193.01, 396.74, 196.76, 413.97, 200.51, 427.0, 285.93, 427.0, 297.92, 367.52, 298.67, 344.29, 296.42, 303.07, 288.18, 267.11, 285.18, 257.36, 285.18, 243.88, 282.93, 234.88, 274.69, 213.9, 266.45, 207.16, 246.96, 199.67, 252.96, 198.17, 258.95, 180.93, 260.45, 149.46, 249.96, 137.47, 236.47, 130.73]], "area": 25116.783000000003, "iscrowd": 0, "image_id": 221842, "bbox": [186.27, 130.73, 112.4, 296.27], "category_id": 1, "id": 484224}, {"segmentation": [[533.93, 99.06, 518.83, 102.29, 506.97, 119.55, 506.97, 134.65, 514.52, 161.62, 481.08, 181.03, 481.08, 195.06, 489.71, 201.53, 528.54, 222.02, 569.53, 252.22, 606.2, 275.96, 596.49, 258.7, 597.57, 254.38, 616.99, 238.2, 623.46, 228.49, 623.46, 226.34, 598.65, 160.54, 555.51, 154.07, 549.03, 149.75, 553.35, 127.1, 551.19, 105.53, 540.4, 99.06]], "area": 11898.142050000004, "iscrowd": 0, "image_id": 185591, "bbox": [481.08, 99.06, 142.38, 176.9], "category_id": 1, "id": 484291}, {"segmentation": [[334.61, 388.15, 343.24, 281.73, 359.06, 265.91, 347.55, 244.33, 359.06, 228.51, 343.24, 224.2, 331.73, 229.95, 304.4, 166.67, 301.53, 142.22, 298.65, 100.51, 334.61, 76.06, 353.3, 68.87, 377.75, 70.31, 397.89, 93.32, 407.96, 124.96, 407.96, 163.8, 412.27, 204.06, 442.47, 255.84, 464.04, 332.06, 455.42, 422.67, 456.85, 526.22, 446.79, 593.82, 442.47, 634.09, 416.58, 634.09, 338.92, 636.96, 331.73, 490.27, 327.42, 481.64, 279.96, 452.87, 264.13, 457.19, 244.0, 444.24, 239.69, 422.67, 244.0, 412.6, 255.51, 396.78, 304.4, 405.41, 333.17, 393.91, 331.73, 380.96]], "area": 67328.5577, "iscrowd": 0, "image_id": 90582, "bbox": [239.69, 68.87, 224.35, 568.09], "category_id": 1, "id": 484311}, {"segmentation": [[137.55, 173.32, 143.84, 164.39, 146.13, 163.82, 147.96, 163.13, 150.83, 162.91, 161.24, 159.13, 168.91, 155.92, 176.12, 156.15, 178.76, 155.46, 186.66, 152.26, 186.31, 151.34, 194.56, 146.54, 201.65, 141.61, 205.09, 141.5, 209.55, 137.95, 214.02, 136.92, 218.02, 136.12, 220.54, 134.74, 219.4, 132.68, 217.68, 127.42, 216.76, 127.08, 216.31, 124.44, 215.96, 122.38, 214.82, 120.32, 215.85, 119.41, 217.11, 119.63, 216.42, 116.43, 217.11, 110.71, 219.17, 107.5, 223.86, 103.61, 228.1, 102.35, 232.45, 101.89, 237.6, 103.49, 241.15, 107.16, 243.66, 111.51, 244.24, 114.94, 244.12, 119.63, 243.09, 121.35, 244.12, 121.12, 244.35, 123.41, 243.32, 124.9, 242.41, 125.47, 242.18, 127.53, 241.49, 129.25, 240.23, 129.94, 240.12, 131.77, 239.31, 133.14, 239.43, 134.29, 244.35, 135.66, 247.79, 138.29, 252.25, 140.35, 256.71, 143.9, 257.63, 145.51, 259.35, 146.65, 261.64, 149.4, 263.12, 151.23, 264.61, 156.04, 266.67, 161.53, 267.25, 164.74, 268.05, 171.26, 268.96, 178.24, 264.16, 179.39, 260.84, 180.31, 260.15, 182.37, 259.92, 184.77, 258.77, 189.69, 257.74, 194.04, 257.83, 200.76, 254.28, 208.32, 251.42, 214.27, 250.73, 219.08, 249.13, 222.29, 249.25, 224.92, 248.33, 227.67, 246.96, 230.99, 247.87, 231.56, 248.22, 232.82, 248.1, 235.22, 247.53, 236.37, 246.27, 241.97, 244.22, 247.95, 241.39, 253.45, 239.39, 249.45, 233.23, 245.79, 227.41, 242.46, 224.08, 240.96, 219.25, 238.13, 214.59, 234.47, 211.09, 232.97, 209.26, 231.48, 207.93, 227.15, 204.77, 225.82, 200.44, 222.49, 201.61, 220.16, 202.11, 218.16, 204.1, 215.83, 203.77, 213.17, 203.27, 210.5, 202.94, 209.51, 204.27, 205.84, 208.1, 200.02, 211.59, 196.36, 212.09, 194.86, 212.26, 193.03, 212.93, 191.2, 212.26, 188.53, 212.09, 186.04, 211.09, 183.37, 211.93, 177.55, 210.76, 175.72, 209.76, 174.72, 208.1, 175.88, 208.93, 172.06, 208.27, 169.89, 208.76, 166.56, 206.43, 163.24, 201.94, 162.57, 197.45, 166.23, 195.28, 166.73, 192.45, 165.4, 191.29, 164.57, 185.3, 165.9, 172.65, 166.23, 163.99, 167.9, 154.01, 169.73, 150.84, 172.06, 150.51, 173.72, 151.51, 177.72, 150.84, 179.71, 150.01, 183.71, 149.84, 187.37, 147.35, 186.7, 146.52, 187.87, 146.68, 190.7, 144.35, 190.53, 142.02, 189.2, 140.86, 186.54, 138.36, 187.54, 136.53, 184.87, 135.7, 183.71, 135.36, 181.54, 135.7, 176.38, 137.19, 173.72], [201.9, 320.07, 196.07, 324.9, 186.09, 328.22, 172.44, 327.23, 168.11, 323.73, 169.61, 320.4, 171.11, 315.74, 173.44, 314.24, 178.76, 311.58, 183.09, 309.25, 187.42, 304.76, 191.08, 300.26, 191.08, 297.93, 190.75, 294.44, 191.91, 288.61, 192.75, 285.45, 200.4, 284.28, 202.07, 319.74], [194.12, 269.78, 192.97, 272.88, 192.4, 278.6, 192.74, 280.77, 200.07, 281.0, 199.84, 268.98, 194.23, 269.9]], "area": 7978.906899999994, "iscrowd": 0, "image_id": 340412, "bbox": [135.36, 101.89, 133.6, 226.33], "category_id": 1, "id": 484500}, {"segmentation": [[486.16, 197.42, 484.82, 180.95, 482.13, 174.57, 479.11, 157.43, 475.07, 155.08, 474.74, 138.28, 482.13, 132.23, 481.8, 124.84, 484.48, 121.48, 490.2, 123.83, 490.91, 130.31, 499.92, 137.07, 497.67, 147.02, 499.73, 152.27, 496.91, 156.22, 498.6, 172.17, 499.73, 176.3, 501.23, 179.12, 495.79, 186.63, 495.6, 193.2, 493.91, 184.38, 490.72, 175.93, 492.03, 192.63, 491.1, 203.15, 491.47, 208.97, 487.34, 206.71, 485.46, 202.4, 485.46, 191.88]], "area": 1232.250050000001, "iscrowd": 0, "image_id": 13258, "bbox": [474.74, 121.48, 26.49, 87.49], "category_id": 1, "id": 484631}, {"segmentation": [[221.89, 234.53, 205.19, 248.07, 195.26, 254.84, 194.8, 257.1, 193.0, 265.22, 193.0, 292.76, 193.9, 316.68, 201.12, 318.49, 202.03, 362.27, 210.6, 369.95, 223.24, 365.88, 231.82, 370.85, 244.01, 371.3, 252.58, 361.37, 258.0, 357.31, 263.42, 351.89, 271.54, 345.12, 269.74, 342.41, 260.26, 341.96, 256.65, 332.03, 256.65, 325.26, 266.13, 305.85, 273.35, 289.15, 279.22, 284.63, 290.95, 280.12, 287.79, 262.06, 285.99, 248.97, 285.54, 235.88, 298.17, 225.95, 304.95, 219.18, 304.95, 218.28, 285.99, 218.73, 287.79, 208.8, 298.17, 198.42, 299.53, 188.94, 297.27, 170.88, 285.99, 152.37, 267.93, 136.12, 255.29, 129.35, 237.69, 128.9, 212.41, 134.77, 206.54, 169.53, 206.09, 191.19, 215.57, 211.96, 215.12, 226.85, 216.92, 233.62]], "area": 18046.152250000003, "iscrowd": 0, "image_id": 176587, "bbox": [193.0, 128.9, 111.95, 242.4], "category_id": 1, "id": 484737}, {"segmentation": [[199.68, 122.77, 199.68, 125.95, 199.68, 131.25, 198.09, 131.25, 196.24, 127.81, 193.32, 127.54, 190.14, 130.72, 189.87, 133.64, 183.77, 139.74, 182.71, 148.23, 182.71, 153.26, 187.22, 156.98, 185.36, 164.4, 185.1, 175.81, 187.75, 177.93, 186.69, 185.09, 190.93, 184.03, 197.83, 177.13, 203.4, 172.09, 206.58, 171.03, 207.11, 160.96, 210.82, 154.86, 212.68, 154.86, 217.72, 147.96, 217.98, 142.92, 218.25, 134.44, 209.5, 129.13, 208.44, 126.48, 213.21, 121.71, 212.94, 115.87, 209.76, 111.89, 206.31, 109.77, 202.34, 110.83, 198.89, 115.34, 198.36, 120.38], [188.28, 188.54, 188.81, 207.63, 191.2, 210.02, 191.2, 218.77, 190.4, 224.34, 187.75, 226.72, 184.04, 229.64, 192.52, 231.5, 197.56, 229.11, 199.42, 226.46, 198.89, 220.62, 196.5, 216.12, 200.48, 214.52, 200.48, 211.61, 208.44, 208.16, 212.94, 205.51, 210.82, 194.37, 210.82, 185.09, 212.68, 182.17, 209.76, 175.81, 204.19, 175.81, 201.81, 175.54, 193.32, 182.97], [203.13, 222.22, 203.13, 227.25, 206.05, 233.62, 210.03, 232.29, 214.0, 232.03, 214.8, 229.38, 214.8, 227.78, 215.86, 224.6, 213.47, 223.28, 213.47, 215.59, 208.97, 219.03, 205.52, 221.42]], "area": 2545.4389999999994, "iscrowd": 0, "image_id": 560350, "bbox": [182.71, 109.77, 35.54, 123.85], "category_id": 1, "id": 485083}, {"segmentation": [[247.18, 258.96, 247.4, 255.93, 248.7, 253.04, 251.23, 252.97, 252.38, 255.93, 252.67, 258.02, 252.24, 258.6, 251.95, 260.12, 253.25, 260.69, 254.33, 263.44, 254.98, 265.46, 254.26, 267.19, 253.68, 267.41, 253.39, 270.59, 253.25, 272.68, 253.18, 273.55, 252.81, 275.21, 253.46, 281.2, 253.68, 285.32, 254.11, 287.92, 253.54, 288.93, 253.54, 288.93, 252.38, 290.95, 252.96, 292.9, 253.54, 293.62, 251.8, 292.69, 250.65, 283.23, 250.29, 279.54, 249.78, 278.24, 249.78, 277.52, 249.78, 277.09, 248.26, 282.07, 248.26, 287.05, 248.12, 287.99, 245.88, 290.59, 244.37, 289.08, 244.44, 286.98, 244.94, 284.16, 244.8, 276.22, 244.0, 270.59, 242.42, 265.89, 242.92, 263.87, 244.04, 259.78]], "area": 290.889, "iscrowd": 0, "image_id": 165773, "bbox": [242.42, 252.97, 12.56, 40.65], "category_id": 1, "id": 485129}, {"segmentation": [[278.22, 545.98, 278.46, 534.45, 277.97, 520.23, 279.44, 514.84, 276.5, 504.78, 274.54, 507.72, 276.99, 516.31, 275.03, 518.02, 274.78, 515.82, 273.07, 514.35, 271.6, 514.1, 270.37, 516.8, 270.61, 517.53, 269.14, 520.23, 265.95, 527.1, 266.94, 530.29, 268.41, 529.06, 269.14, 525.87, 270.37, 525.38, 270.12, 542.55, 270.86, 541.81, 270.37, 546.72, 273.31, 545.74, 273.56, 540.34, 275.76, 540.59, 274.78, 546.47]], "area": 284.35284999999993, "iscrowd": 0, "image_id": 374185, "bbox": [265.95, 504.78, 13.49, 41.94], "category_id": 1, "id": 485275}, {"segmentation": [[165.0, 177.12, 172.25, 149.79, 181.17, 135.29, 206.27, 128.59, 210.18, 123.57, 208.51, 104.05, 212.97, 92.89, 228.03, 88.99, 243.09, 96.8, 243.09, 109.63, 243.09, 115.21, 243.65, 119.67, 243.65, 123.02, 243.09, 125.25, 243.09, 128.04, 243.09, 130.83, 243.09, 131.94, 246.44, 133.06, 248.11, 133.61, 250.9, 134.73, 254.81, 138.08, 258.15, 139.19, 260.94, 142.54, 264.29, 145.89, 266.52, 148.68, 268.75, 153.7, 270.98, 161.51, 272.66, 168.76, 276.56, 183.82, 277.68, 188.28, 278.23, 190.51, 278.23, 194.42, 273.21, 198.32, 269.87, 198.88, 266.52, 199.44, 264.85, 199.44, 263.73, 201.67, 263.73, 206.13, 263.73, 212.27, 263.73, 217.29, 261.5, 220.08, 255.92, 229.56, 252.57, 234.58, 250.9, 236.25, 249.79, 239.04, 249.79, 241.27, 248.67, 244.62, 247.0, 247.97, 247.0, 251.87, 245.88, 255.22, 245.88, 261.36, 245.88, 263.03, 245.88, 265.26, 245.88, 269.17, 215.76, 255.78, 175.04, 261.36, 171.13, 260.24, 191.77, 239.04, 183.96, 218.4, 177.27, 211.15, 178.38, 197.21, 171.13, 194.98, 166.11, 190.51, 166.67, 175.45]], "area": 12414.413650000006, "iscrowd": 0, "image_id": 169686, "bbox": [165.0, 88.99, 113.23, 180.18], "category_id": 1, "id": 485285}, {"segmentation": [[37.5, 2.01, 32.14, 19.42, 28.13, 24.78, 40.85, 28.13, 46.21, 30.13, 46.88, 31.47, 48.89, 31.47, 58.26, 36.16, 62.95, 36.83, 66.97, 36.83, 70.98, 37.5, 75.67, 36.83, 81.03, 36.83, 87.06, 35.49, 84.38, 51.56, 84.38, 52.9, 89.73, 56.25, 106.48, 48.22, 111.16, 42.19, 116.52, 36.83, 123.89, 32.14, 131.25, 27.46, 133.93, 20.76, 135.27, 14.06, 135.27, 8.71, 134.6, 1.34, 133.93, 0.0, 38.84, 0.67]], "area": 3802.8942500000003, "iscrowd": 0, "image_id": 485882, "bbox": [28.13, 0.0, 107.14, 56.25], "category_id": 1, "id": 485292}, {"segmentation": [[77.49, 302.95, 106.19, 255.59, 110.49, 242.68, 110.49, 225.46, 103.32, 205.37, 109.06, 191.02, 120.54, 199.63, 121.97, 203.93, 124.84, 209.67, 134.89, 216.85, 140.63, 208.24, 150.67, 195.32, 150.67, 191.02, 142.06, 175.23, 134.89, 165.19, 123.41, 147.97, 123.41, 143.67, 126.28, 129.32, 127.71, 122.14, 129.15, 107.79, 134.89, 123.58, 137.76, 123.58, 139.19, 122.14, 144.93, 109.23, 154.98, 93.44, 167.89, 74.79, 167.89, 73.35, 167.89, 64.74, 159.28, 46.09, 152.11, 31.74, 137.76, 23.13, 123.41, 23.13, 111.93, 23.13, 81.79, 36.04, 64.57, 63.31, 57.4, 80.53, 40.18, 107.79, 33.0, 113.53, 8.61, 145.1, 30.13, 173.8, 35.87, 212.54, 61.7, 259.9], [64.57, 314.43, 88.97, 371.83, 88.97, 376.13, 107.62, 387.61, 119.1, 391.92, 124.84, 394.79, 130.58, 401.96, 142.06, 410.57, 140.63, 416.31, 70.31, 423.49, 40.18, 416.31, 43.05, 406.27]], "area": 27461.43, "iscrowd": 0, "image_id": 495931, "bbox": [8.61, 23.13, 159.28, 400.36], "category_id": 1, "id": 485429}, {"segmentation": [[542.65, 242.77, 544.56, 254.67, 544.56, 255.95, 544.14, 257.22, 553.92, 261.05, 557.53, 265.51, 558.17, 278.48, 560.72, 270.4, 565.61, 268.06, 565.18, 262.75, 564.12, 259.77, 561.57, 256.8, 559.23, 254.88, 559.23, 250.84, 559.02, 248.08, 559.23, 243.4, 558.17, 240.0, 556.89, 238.3, 554.34, 236.39, 552.22, 235.75, 549.88, 235.96, 545.84, 238.3, 544.99, 239.15]], "area": 448.69010000000134, "iscrowd": 0, "image_id": 385701, "bbox": [542.65, 235.75, 22.96, 42.73], "category_id": 1, "id": 485432}, {"segmentation": [[302.21, 256.67, 299.86, 248.62, 297.52, 245.27, 292.65, 242.42, 289.3, 240.74, 286.95, 236.88, 281.76, 247.45, 279.07, 261.53, 281.08, 266.9, 289.47, 268.07, 296.01, 273.77, 296.68, 272.27, 299.53, 268.58]], "area": 533.5545999999996, "iscrowd": 0, "image_id": 483948, "bbox": [279.07, 236.88, 23.14, 36.89], "category_id": 1, "id": 485718}, {"segmentation": [[169.12, 36.67, 183.34, 80.07, 181.84, 116.74, 184.83, 133.95, 190.07, 175.85, 219.26, 199.05, 240.96, 208.78, 260.41, 206.53, 267.9, 207.28, 243.95, 219.26, 235.72, 223.0, 234.97, 229.73, 255.92, 222.25, 270.14, 211.77, 266.4, 225.24, 281.37, 220.0, 264.16, 240.21, 242.45, 252.18, 162.38, 254.43, 169.12, 267.15, 199.05, 327.01, 70.34, 326.27, 41.16, 255.18, 87.55, 137.69, 84.56, 113.74, 88.3, 58.37, 95.78, 28.44, 111.5, 20.2, 147.42, 22.45]], "area": 37697.59354999999, "iscrowd": 0, "image_id": 127076, "bbox": [41.16, 20.2, 240.21, 306.81], "category_id": 1, "id": 485921}, {"segmentation": [[196.28, 239.16, 201.04, 206.76, 222.96, 157.21, 238.2, 112.43, 269.64, 61.93, 282.98, 45.73, 284.89, 17.15, 295.37, 7.62, 318.24, 10.48, 326.81, 21.91, 337.29, 45.73, 383.98, 56.22, 405.9, 90.52, 438.29, 131.49, 429.72, 148.64, 425.91, 149.59, 424.0, 189.61, 404.94, 252.49, 406.85, 328.72, 410.66, 378.27, 419.24, 382.08, 432.58, 390.65, 389.7, 388.75, 364.93, 342.06, 367.78, 216.29, 360.16, 216.29, 313.47, 283.94, 286.8, 394.46, 240.11, 396.37, 295.37, 204.85, 313.47, 163.88, 287.75, 142.92, 278.22, 122.91, 236.3, 183.89, 217.24, 233.44, 204.85, 242.01]], "area": 43428.355100000015, "iscrowd": 0, "image_id": 383605, "bbox": [196.28, 7.62, 242.01, 388.75], "category_id": 1, "id": 486176}, {"segmentation": [[271.82, 185.62, 277.57, 153.98, 319.28, 153.98, 332.22, 153.98, 345.17, 172.68, 352.36, 194.25, 365.3, 241.71, 369.62, 261.85, 379.69, 286.3, 386.88, 338.07, 396.94, 375.47, 389.75, 414.3, 385.44, 441.62, 396.94, 487.65, 395.51, 509.22, 381.12, 563.87, 368.18, 619.96, 291.96, 631.47, 276.13, 568.19, 286.2, 507.78, 290.52, 467.51, 291.96, 450.25, 273.26, 443.06, 264.63, 388.41, 279.01, 361.08, 289.08, 348.14, 293.39, 330.88, 289.08, 326.57, 258.88, 303.56, 264.63, 274.79, 287.64, 276.23, 299.15, 241.71]], "area": 46413.684150000016, "iscrowd": 0, "image_id": 417720, "bbox": [258.88, 153.98, 138.06, 477.49], "category_id": 1, "id": 486278}, {"segmentation": [[103.32, 579.73, 119.1, 542.42, 91.84, 462.06, 76.05, 404.66, 84.66, 353.0, 73.18, 295.61, 74.62, 243.95, 70.31, 220.99, 48.79, 206.64, 55.96, 180.81, 91.84, 163.59, 123.41, 162.15, 150.67, 195.16, 154.98, 226.73, 189.42, 243.95, 186.55, 380.27, 206.64, 528.07, 205.2, 614.17, 182.24, 617.04, 177.94, 584.04, 156.41, 529.51, 136.32, 582.6, 103.32, 589.78]], "area": 42575.6284, "iscrowd": 0, "image_id": 417720, "bbox": [48.79, 162.15, 157.85, 454.89], "category_id": 1, "id": 486514}, {"segmentation": [[0.78, 94.09, 8.93, 85.94, 12.12, 81.69, 14.95, 75.66, 19.21, 81.33, 17.43, 88.07, 22.4, 96.93, 23.11, 108.98, 37.28, 108.98, 38.35, 104.37, 28.78, 99.41, 25.94, 84.88, 25.59, 79.21, 24.88, 69.64, 22.04, 55.81, 21.33, 46.95, 20.98, 43.05, 27.71, 50.14, 35.51, 53.33, 35.51, 57.23, 39.41, 57.59, 39.06, 50.85, 30.9, 45.89, 25.59, 40.57, 23.46, 29.23, 18.85, 22.49, 20.62, 15.76, 22.4, 9.73, 19.21, 4.77, 14.95, 4.06, 9.99, 6.9, 8.93, 12.22, 9.28, 16.47, 7.51, 20.72, 1.84, 28.17, 1.84, 39.15, 0.07, 50.85, 0.42, 66.8, 3.26, 66.8, 5.03, 62.9, 8.93, 64.32, 8.93, 71.41, 3.26, 79.21, 0.0, 85.59]], "area": 1832.7585499999998, "iscrowd": 0, "image_id": 200910, "bbox": [0.0, 4.06, 39.41, 104.92], "category_id": 1, "id": 486572}, {"segmentation": [[343.05, 595.69, 609.26, 605.3, 609.26, 282.83, 588.67, 281.46, 563.97, 277.34, 542.02, 269.11, 540.65, 254.02, 542.02, 236.18, 546.13, 227.94, 555.74, 221.08, 568.09, 201.87, 577.7, 184.03, 581.81, 171.68, 583.18, 153.85, 583.18, 137.38, 581.81, 114.05, 570.83, 71.51, 555.74, 34.47, 517.32, 9.77, 473.41, 1.53, 430.87, 2.9, 382.84, 13.88, 374.61, 30.35, 360.89, 56.42, 347.17, 93.47, 352.65, 181.29, 367.75, 255.39, 374.61, 270.48, 377.35, 278.72, 343.05, 299.3, 319.72, 299.3, 284.04, 303.42, 255.23, 325.37, 152.31, 474.94, 8.23, 518.85, 4.12, 554.53, 4.12, 561.39, 2.74, 565.51, 24.7, 564.13, 38.42, 561.39, 43.91, 560.02, 49.4, 544.92, 54.89, 536.69, 61.75, 532.57, 74.1, 531.2, 83.7, 532.57, 90.57, 535.32, 182.5, 503.76, 198.97, 499.64, 200.34, 516.11, 234.65, 518.85, 247.0, 510.62, 260.72, 496.9, 271.7, 491.41, 275.81, 491.41, 312.86, 511.99, 337.56, 547.67, 343.05, 561.39, 345.79, 581.97]], "area": 176484.02720000007, "iscrowd": 0, "image_id": 212271, "bbox": [2.74, 1.53, 606.52, 603.77], "category_id": 1, "id": 486578}, {"segmentation": [[111.66, 235.86, 114.63, 222.79, 112.25, 218.64, 106.31, 217.45, 108.1, 193.7, 105.72, 175.89, 108.69, 164.6, 116.41, 161.04, 118.19, 152.73, 123.53, 147.39, 129.47, 151.54, 129.47, 158.67, 135.41, 161.64, 138.97, 177.67, 134.22, 184.79, 135.41, 212.11, 132.44, 219.23, 128.88, 217.45, 128.28, 229.92, 131.25, 238.82, 109.28, 238.23]], "area": 2081.8148, "iscrowd": 0, "image_id": 487322, "bbox": [105.72, 147.39, 33.25, 91.43], "category_id": 1, "id": 486734}, {"segmentation": [[3.83, 306.34, 44.99, 306.34, 60.31, 306.34, 82.33, 285.28, 116.79, 272.83, 156.04, 268.04, 175.19, 269.96, 183.8, 243.16, 271.87, 145.51, 296.76, 93.82, 312.08, 80.41, 354.2, 93.82, 374.31, 125.41, 403.02, 186.67, 432.7, 237.41, 482.48, 206.78, 547.58, 206.78, 576.3, 229.75, 619.38, 223.05, 638.52, 253.69, 592.57, 277.62, 573.42, 311.12, 560.98, 341.76, 548.53, 364.73, 517.9, 368.56, 457.59, 372.39, 405.9, 377.18, 341.76, 373.35, 307.29, 368.56, 278.58, 359.95, 202.95, 357.07, 67.97, 377.18, 24.89, 380.05, 1.91, 381.96]], "area": 93053.79284999998, "iscrowd": 0, "image_id": 262862, "bbox": [1.91, 80.41, 636.61, 301.55], "category_id": 1, "id": 486828}, {"segmentation": [[432.65, 78.69, 426.19, 142.19, 429.42, 154.03, 432.65, 149.72, 438.03, 143.26, 439.1, 149.72, 441.26, 156.18, 441.26, 159.41, 441.26, 180.93, 441.26, 190.62, 461.7, 198.15, 481.08, 198.15, 498.3, 196.0, 506.91, 190.62, 506.91, 185.24, 504.75, 177.7, 498.3, 162.64, 493.99, 149.72, 490.76, 130.35, 490.76, 112.05, 488.61, 101.29, 483.23, 83.0, 458.48, 62.55, 455.25, 58.24, 438.03, 49.63, 438.03, 48.56, 425.11, 46.4, 421.88, 56.09, 422.96, 62.55, 424.04, 63.62]], "area": 8102.908700000002, "iscrowd": 0, "image_id": 319293, "bbox": [421.88, 46.4, 85.03, 151.75], "category_id": 1, "id": 486944}, {"segmentation": [[194.72, 75.28, 212.05, 80.94, 237.16, 88.37, 237.86, 107.82, 230.44, 128.33, 233.27, 143.19, 233.13, 167.15, 237.02, 184.48, 233.13, 199.33, 240.2, 207.47, 245.15, 217.02, 245.15, 231.16, 251.52, 254.15, 252.58, 270.06, 258.59, 295.88, 266.72, 321.34, 267.78, 336.91, 276.63, 360.6, 272.03, 369.8, 256.47, 369.44, 253.64, 347.16, 250.46, 335.14, 244.44, 314.63, 238.43, 295.53, 221.1, 270.42, 215.2, 254.55, 213.08, 248.18, 210.61, 245.71, 195.75, 254.55, 186.2, 265.16, 164.63, 286.38, 157.91, 286.38, 152.96, 288.5, 140.93, 313.96, 131.74, 323.51, 126.08, 334.47, 119.36, 354.28, 106.28, 355.34, 89.3, 348.27, 101.32, 336.6, 109.46, 330.23, 121.13, 310.43, 132.45, 286.02, 139.17, 278.24, 145.18, 269.4, 159.45, 245.81, 175.07, 226.98, 177.08, 220.17, 184.29, 210.15, 183.89, 188.51, 184.29, 183.71, 177.48, 174.89, 173.07, 182.51, 165.86, 192.92, 157.85, 196.53, 154.64, 193.72, 153.44, 178.9, 161.05, 167.68, 165.86, 143.24, 176.28, 137.63, 185.09, 132.42, 185.89, 127.21, 180.68, 121.61, 178.68, 114.39, 183.76, 108.61, 183.76, 97.31, 178.8, 96.48, 176.04, 87.94, 176.87, 83.53, 185.45, 76.54, 191.46, 78.94, 193.47, 76.14]], "area": 16500.43035, "iscrowd": 0, "image_id": 420051, "bbox": [89.3, 75.28, 187.33, 294.52], "category_id": 1, "id": 487665}, {"segmentation": [[5.78, 300.68, 80.95, 246.71, 155.16, 191.78, 177.32, 150.34, 200.45, 63.61, 228.4, 3.85, 398.98, 3.85, 447.17, 79.99, 462.59, 92.52, 454.88, 138.78, 424.04, 213.95, 373.92, 316.1, 355.61, 343.08, 354.65, 358.5, 364.29, 420.18, 1.93, 416.33]], "area": 124352.25300000003, "iscrowd": 0, "image_id": 571516, "bbox": [1.93, 3.85, 460.66, 416.33], "category_id": 1, "id": 487735}, {"segmentation": [[292.36, 207.3, 289.06, 185.82, 292.36, 167.65, 289.88, 161.87, 271.72, 160.22, 267.59, 156.09, 269.24, 154.44, 277.5, 154.44, 284.1, 154.44, 295.67, 153.61, 298.97, 152.79, 307.8, 153.3, 307.34, 148.23, 308.72, 140.84, 312.41, 138.54, 317.95, 138.54, 322.56, 142.23, 324.87, 147.3, 322.1, 158.38, 323.02, 163.45, 317.95, 172.22, 316.56, 178.68, 317.03, 182.37, 316.56, 187.44, 310.11, 182.37, 309.18, 186.98, 315.64, 198.05, 337.79, 228.97, 331.79, 231.27, 324.87, 225.74, 317.03, 218.82, 306.41, 210.97, 304.57, 212.82, 306.88, 217.89, 300.42, 216.97, 295.34, 211.9]], "area": 2228.4075000000003, "iscrowd": 0, "image_id": 521452, "bbox": [267.59, 138.54, 70.2, 92.73], "category_id": 1, "id": 487767}, {"segmentation": [[216.31, 639.52, 536.31, 639.52, 529.16, 628.8, 520.22, 614.49, 527.37, 607.34, 527.37, 601.98, 516.65, 587.68, 518.44, 573.38, 513.07, 566.23, 513.07, 551.92, 500.56, 528.68, 498.77, 516.17, 498.77, 510.51, 504.69, 514.73, 512.3, 507.12, 520.76, 500.36, 527.52, 496.13, 512.3, 456.39, 508.07, 442.85, 509.61, 390.67, 508.07, 368.08, 504.99, 338.82, 510.13, 324.96, 510.13, 319.82, 534.26, 306.99, 544.01, 293.13, 568.65, 283.37, 571.73, 279.27, 587.13, 269.51, 592.78, 263.35, 596.38, 251.03, 597.4, 247.95, 608.7, 239.22, 613.83, 229.98, 617.42, 222.28, 615.88, 217.15, 614.86, 208.93, 610.75, 202.77, 585.59, 179.67, 574.3, 169.92, 560.95, 162.21, 540.93, 152.97, 525.53, 148.35, 513.72, 144.25, 467.0, 127.3, 458.27, 116.01, 458.79, 87.77, 452.63, 78.02, 420.28, 70.32, 393.59, 71.86, 383.83, 75.97, 380.75, 84.18, 367.41, 71.86, 346.87, 59.02, 322.23, 51.84, 302.72, 50.81, 291.42, 50.3, 276.54, 51.84, 258.05, 54.92, 242.14, 63.64, 228.28, 81.61, 218.52, 116.01, 178.48, 138.6, 189.26, 144.25, 206.72, 147.84, 238.55, 152.46, 229.31, 173.51, 231.36, 180.7, 237.52, 183.26, 236.93, 191.83, 241.5, 199.5, 240.03, 201.12, 241.2, 205.1, 242.53, 209.97, 246.07, 212.47, 248.43, 215.57, 248.43, 216.9, 238.4, 218.22, 232.06, 220.14, 225.87, 227.07, 217.17, 231.64, 208.92, 244.17, 205.53, 254.49, 203.02, 262.01, 203.61, 276.46, 209.36, 290.61, 220.27, 312.58, 224.1, 323.93, 224.84, 335.58, 229.12, 343.39, 231.33, 346.49, 240.62, 375.68, 246.22, 388.06, 253.47, 403.05, 259.95, 409.53, 256.59, 426.74, 253.69, 442.61, 254.81, 455.34, 253.47, 455.57, 253.91, 464.51, 253.47, 477.91, 257.26, 485.29, 263.3, 489.98, 270.45, 493.56, 275.37, 495.79, 281.18, 494.9, 283.41, 496.01, 273.13, 527.75, 273.58, 528.86, 267.77, 528.64, 264.64, 531.77, 259.72, 535.79, 259.72, 544.06, 260.17, 547.41, 253.24, 547.19, 249.89, 548.3, 248.55, 552.33, 250.78, 555.46, 251.45, 556.13, 245.64, 560.82, 242.52, 568.19, 240.73, 574.67, 240.06, 578.25, 241.85, 584.95, 235.37, 586.52, 233.8, 592.55, 234.47, 598.14, 236.04, 602.38, 230.0, 604.17, 227.32, 608.42, 224.19, 612.66, 225.31, 621.15, 225.31, 625.85, 215.03, 638.81]], "area": 167766.27700000003, "iscrowd": 0, "image_id": 34354, "bbox": [178.48, 50.3, 438.94, 589.22], "category_id": 1, "id": 487805}, {"segmentation": [[106.56, 325.95, 112.04, 313.41, 113.61, 300.88, 115.18, 288.34, 130.85, 257.0, 144.95, 233.49, 160.62, 219.39, 172.38, 209.2, 196.67, 202.15, 197.45, 164.54, 210.77, 136.33, 214.69, 114.4, 229.57, 88.54, 254.65, 82.27, 279.72, 79.14, 295.39, 86.97, 314.2, 102.64, 322.03, 130.07, 328.3, 170.03, 324.38, 188.05, 368.26, 201.37, 379.23, 210.77, 386.28, 233.49, 409.0, 272.67, 414.49, 302.44, 419.97, 320.46, 423.11, 333.0]], "area": 47823.80470000001, "iscrowd": 0, "image_id": 203876, "bbox": [106.56, 79.14, 316.55, 253.86], "category_id": 1, "id": 487811}, {"segmentation": [[24.12, 167.88, 17.76, 177.43, 25.32, 186.98, 25.32, 196.92, 23.33, 208.86, 24.92, 213.23, 36.06, 216.81, 34.07, 226.36, 38.05, 226.36, 36.85, 232.73, 37.25, 235.91, 42.42, 237.5, 43.62, 231.13, 43.62, 220.0, 42.42, 211.24, 44.01, 210.05, 48.79, 199.71, 47.2, 193.74, 46.0, 186.18, 47.59, 186.58, 49.98, 181.01, 49.98, 176.64, 47.2, 170.27, 41.63, 165.9, 41.63, 160.33, 40.04, 153.56, 33.27, 153.56, 29.69, 159.13, 31.68, 163.11]], "area": 1442.2595999999999, "iscrowd": 0, "image_id": 86620, "bbox": [17.76, 153.56, 32.22, 83.94], "category_id": 1, "id": 488153}, {"segmentation": [[378.25, 453.03, 327.91, 422.83, 310.65, 339.42, 310.65, 319.28, 320.72, 296.27, 330.79, 231.55, 342.29, 212.85, 376.81, 220.04, 396.94, 248.81, 396.94, 276.13, 418.52, 289.08, 450.16, 340.85, 460.22, 378.25, 450.16, 379.69, 444.4, 415.64, 464.54, 422.83]], "area": 23888.182999999997, "iscrowd": 0, "image_id": 91307, "bbox": [310.65, 212.85, 153.89, 240.18], "category_id": 1, "id": 488280}, {"segmentation": [[295.62, 535.63, 296.32, 531.79, 299.8, 530.75, 304.34, 533.54, 307.47, 534.23, 311.31, 542.95, 306.43, 542.25, 312.35, 553.41, 309.57, 558.64, 310.96, 578.16, 308.87, 577.81, 305.03, 565.26, 305.03, 561.77, 303.29, 557.59, 299.8, 561.08, 296.32, 558.99, 297.71, 553.41, 298.06, 547.83, 296.67, 535.98, 296.67, 535.63]], "area": 410.15900000000056, "iscrowd": 0, "image_id": 358100, "bbox": [295.62, 530.75, 16.73, 47.41], "category_id": 1, "id": 488635}, {"segmentation": [[277.18, 289.85, 284.31, 277.18, 292.23, 258.17, 296.19, 243.13, 304.11, 212.24, 296.19, 207.49, 293.81, 189.28, 296.98, 175.81, 312.82, 164.72, 323.91, 164.72, 352.59, 157.27, 368.94, 149.57, 383.3, 151.0, 381.72, 143.08, 378.55, 141.49, 375.38, 134.37, 378.55, 127.24, 380.13, 114.57, 394.39, 103.48, 405.48, 116.15, 408.64, 131.2, 409.44, 139.91, 417.36, 143.08, 431.61, 149.41, 467.25, 157.33, 470.42, 166.84, 472.79, 170.0, 468.04, 173.17, 463.29, 173.17, 452.2, 187.43, 444.28, 207.23, 429.23, 211.19, 426.86, 201.68, 422.11, 212.77, 418.15, 225.44, 408.64, 241.28, 399.93, 242.86, 395.97, 247.62, 383.3, 252.37, 372.21, 261.08, 331.83, 265.83, 327.87, 297.51, 319.95, 304.64, 314.4, 310.97, 309.65, 306.22, 308.86, 291.96, 309.65, 271.37, 300.94, 271.37, 293.02, 290.38, 291.44, 296.72]], "area": 17033.680649999995, "iscrowd": 0, "image_id": 169686, "bbox": [277.18, 103.48, 195.61, 207.49], "category_id": 1, "id": 489809}, {"segmentation": [[21.7, 330.32, 37.9, 335.72, 52.95, 333.44, 65.45, 326.06, 68.01, 328.9, 64.88, 333.44, 59.2, 337.14, 57.78, 346.23, 60.9, 360.71, 62.89, 370.94, 55.79, 375.2, 54.94, 382.59, 53.8, 387.42, 43.29, 387.98, 24.83, 376.62, 30.23, 390.54, 30.23, 395.65, 14.89, 398.78, 8.07, 405.59, 5.51, 395.37, 16.88, 392.24, 10.06, 370.94, 11.19, 355.6, 9.49, 351.06, 10.06, 342.82, 20.57, 331.46]], "area": 2736.6760499999987, "iscrowd": 0, "image_id": 532414, "bbox": [5.51, 326.06, 62.5, 79.53], "category_id": 1, "id": 489924}, {"segmentation": [[260.77, 329.28, 261.68, 329.28, 261.68, 319.24, 272.64, 306.45, 272.64, 306.45, 271.73, 300.06, 270.81, 296.4, 272.64, 293.66, 275.38, 287.27, 275.38, 280.88, 276.29, 277.22, 275.38, 273.57, 275.38, 269.92, 275.38, 265.35, 275.38, 263.52, 279.03, 262.61, 281.77, 261.7, 281.77, 258.04, 281.77, 250.74, 285.43, 247.08, 292.73, 248.0, 293.65, 256.22, 293.65, 258.96, 303.69, 270.83, 305.52, 275.4, 308.26, 287.27, 308.26, 298.23, 308.26, 302.8, 295.47, 288.18, 293.65, 285.44, 291.82, 287.27, 292.73, 290.92, 295.47, 295.49, 297.3, 299.14, 298.21, 303.71, 300.95, 310.1, 304.61, 318.32, 307.35, 327.46, 301.87, 342.99, 300.95, 342.99, 293.65, 339.33, 291.82, 334.77, 289.99, 332.02, 289.99, 327.46, 289.99, 324.72, 289.99, 321.98, 289.99, 321.06, 288.17, 319.24, 287.25, 313.76, 286.34, 311.93, 285.43, 307.36, 286.34, 307.36, 281.77, 307.36, 277.21, 312.84, 269.9, 325.63, 269.9, 326.54, 268.07, 340.25, 267.16, 348.47, 262.59, 346.64, 258.02, 340.25]], "area": 2332.5986, "iscrowd": 0, "image_id": 311522, "bbox": [258.02, 247.08, 50.24, 101.39], "category_id": 1, "id": 490038}, {"segmentation": [[47.82, 75.13, 48.68, 67.67, 47.64, 62.64, 47.3, 58.64, 51.46, 54.13, 53.19, 52.22, 57.36, 56.39, 59.96, 60.03, 57.88, 66.45, 58.4, 78.08, 55.28, 73.57, 51.98, 65.06, 53.19, 75.3, 46.08, 77.21]], "area": 206.61694999999997, "iscrowd": 0, "image_id": 289095, "bbox": [46.08, 52.22, 13.88, 25.86], "category_id": 1, "id": 490544}, {"segmentation": [[163.64, 245.43, 180.31, 246.31, 181.18, 261.22, 180.31, 273.51, 182.94, 284.92, 182.94, 305.97, 182.06, 316.5, 175.04, 326.15, 161.88, 327.03, 163.64, 356.86, 166.27, 404.25, 168.02, 420.92, 177.67, 436.71, 170.65, 437.59, 153.98, 421.8, 154.86, 397.23, 151.35, 380.56, 152.23, 370.9, 143.45, 345.46, 131.17, 327.03, 138.19, 343.7, 133.8, 369.15, 127.66, 384.07, 118.01, 413.02, 118.89, 429.69, 124.15, 433.2, 118.89, 434.96, 110.11, 427.94, 103.09, 417.41, 112.74, 383.19, 118.01, 356.86, 109.23, 311.24, 114.5, 300.71, 119.76, 284.92, 123.27, 276.14, 129.42, 268.24, 142.58, 265.61, 153.11, 267.37, 154.86, 254.2, 159.25, 249.82]], "area": 7830.537999999999, "iscrowd": 0, "image_id": 202194, "bbox": [103.09, 245.43, 79.85, 192.16], "category_id": 1, "id": 490698}, {"segmentation": [[393.36, 301.81, 393.36, 306.73, 397.18, 310.82, 396.63, 315.19, 395.0, 318.19, 394.72, 325.56, 393.36, 329.38, 393.9, 333.2, 394.45, 335.93, 391.45, 335.65, 389.54, 330.47, 388.99, 324.46, 384.08, 317.91, 384.9, 310.27, 386.54, 306.73, 388.72, 304.82, 388.17, 300.45]], "area": 255.55375000000015, "iscrowd": 0, "image_id": 482024, "bbox": [384.08, 300.45, 13.1, 35.48], "category_id": 1, "id": 490853}, {"segmentation": [[341.04, 202.19, 341.26, 203.9, 341.38, 206.08, 342.18, 207.34, 342.75, 208.6, 342.29, 209.63, 341.26, 210.43, 340.81, 211.46, 340.35, 212.71, 339.66, 214.32, 339.66, 215.8, 339.66, 217.86, 340.23, 219.24, 340.69, 220.15, 340.35, 221.3, 338.63, 221.18, 338.06, 220.95, 337.72, 220.27, 337.49, 220.5, 336.69, 220.84, 336.0, 220.38, 335.89, 219.35, 336.34, 217.86, 336.8, 215.69, 336.57, 213.17, 336.46, 211.57, 336.0, 210.77, 335.31, 209.74, 334.74, 208.02, 334.86, 206.08, 334.86, 203.79, 335.43, 201.96, 336.12, 200.93, 337.03, 200.36, 337.03, 198.87, 337.6, 197.38, 338.63, 196.92, 339.66, 197.04, 340.35, 198.41, 340.35, 200.13, 340.69, 200.81, 340.81, 200.93, 340.81, 201.04]], "area": 113.59185000000032, "iscrowd": 0, "image_id": 409374, "bbox": [334.74, 196.92, 8.01, 24.38], "category_id": 1, "id": 491584}, {"segmentation": [[580.03, 110.37, 574.44, 112.54, 571.65, 116.58, 571.65, 121.23, 571.65, 127.44, 571.65, 132.1, 571.65, 136.76, 572.89, 139.55, 574.75, 140.79, 577.24, 144.52, 578.48, 148.24, 575.06, 152.28, 574.75, 154.14, 574.75, 157.56, 574.44, 159.73, 576.93, 160.35, 579.72, 159.42, 579.72, 153.52, 580.34, 146.69, 580.34, 144.52, 581.58, 142.34, 582.83, 146.38, 582.83, 151.97, 582.52, 156.63, 582.52, 159.42, 583.76, 160.04, 586.55, 160.66, 588.1, 160.66, 589.35, 158.49, 589.35, 155.07, 588.41, 148.86, 587.79, 142.03, 588.1, 133.65, 588.41, 129.93, 589.03, 124.34, 590.28, 122.79, 591.52, 122.16, 593.38, 123.72, 595.55, 120.92, 595.55, 117.2, 592.14, 114.71, 589.03, 112.54, 589.03, 109.13, 588.72, 106.64, 586.24, 103.54, 581.27, 103.85, 579.72, 106.95, 579.72, 106.95]], "area": 799.4945999999995, "iscrowd": 0, "image_id": 530876, "bbox": [571.65, 103.54, 23.9, 57.12], "category_id": 1, "id": 491886}, {"segmentation": [[522.91, 419.28, 513.31, 380.91, 519.07, 311.82, 529.62, 281.12, 523.86, 253.3, 476.85, 236.03, 471.09, 220.68, 493.16, 209.16, 507.55, 184.22, 527.7, 186.14, 514.27, 219.72, 548.81, 213.96, 548.81, 189.97, 556.49, 171.74, 600.62, 183.26, 592.95, 213.0, 639.0, 242.74, 637.08, 273.45, 606.38, 279.2, 603.5, 333.89, 606.38, 421.2, 575.68, 414.49, 571.84, 390.5, 557.45, 361.72, 542.09, 383.78, 537.3, 382.82, 542.09, 407.77, 520.03, 406.81]], "area": 20832.232, "iscrowd": 0, "image_id": 156170, "bbox": [471.09, 171.74, 167.91, 249.46], "category_id": 1, "id": 491976}, {"segmentation": [[471.11, 321.76, 474.89, 276.35, 489.08, 234.74, 507.05, 209.2, 534.48, 194.06, 569.48, 199.74, 578.94, 216.76, 583.67, 240.41, 597.85, 261.22, 612.0, 268.79, 612.0, 282.03, 607.31, 288.65, 590.29, 284.87, 579.88, 288.65, 580.83, 302.84, 589.34, 313.24, 602.58, 314.19, 612.0, 316.08, 610.15, 374.73, 573.26, 325.54, 553.4, 312.3, 546.78, 294.33, 525.97, 295.27, 501.37, 313.24, 474.89, 326.49]], "area": 12866.136800000002, "iscrowd": 0, "image_id": 9025, "bbox": [471.11, 194.06, 140.89, 180.67], "category_id": 1, "id": 492455}, {"segmentation": [[159.71, 51.66, 162.92, 39.4, 164.05, 36.38, 162.35, 29.78, 162.92, 24.5, 167.82, 20.16, 171.03, 19.4, 173.29, 21.67, 176.12, 26.76, 178.39, 34.12, 179.52, 41.47, 180.46, 48.64, 180.08, 51.66, 155.75, 52.23]], "area": 486.9686500000001, "iscrowd": 0, "image_id": 395040, "bbox": [155.75, 19.4, 24.71, 32.83], "category_id": 1, "id": 492692}, {"segmentation": [[248.0, 70.06, 253.33, 49.4, 259.33, 34.06, 266.67, 26.73, 267.33, 23.4, 274.0, 16.06, 283.33, 8.73, 288.67, 6.06, 297.33, 6.06, 300.0, 12.73, 302.0, 18.06, 311.33, 21.4, 312.0, 24.73, 306.0, 28.73, 298.67, 30.73, 296.67, 31.4, 294.0, 35.4, 292.67, 38.06, 292.67, 40.06, 290.0, 40.73, 294.67, 46.06, 296.0, 51.4, 298.0, 62.06, 298.0, 76.06, 297.33, 81.4, 299.33, 92.06, 302.67, 96.06, 308.67, 101.4, 302.67, 101.4, 288.0, 108.06, 276.0, 94.06, 261.33, 77.4, 246.0, 70.73]], "area": 3484.9267000000004, "iscrowd": 0, "image_id": 485882, "bbox": [246.0, 6.06, 66.0, 102.0], "category_id": 1, "id": 492942}, {"segmentation": [[240.54, 338.7, 255.64, 384.0, 326.83, 332.22, 384.0, 271.82, 414.2, 258.88, 455.19, 290.16, 456.27, 441.17, 400.18, 478.92, 256.72, 480.0, 197.39, 477.84, 202.79, 442.25, 180.13, 374.29, 189.84, 337.62, 213.57, 313.89], [381.84, 124.04, 408.81, 254.56, 428.22, 261.03, 436.85, 212.49, 416.36, 145.62, 401.26, 106.79, 385.08, 99.24], [210.34, 212.49, 236.22, 310.65, 206.02, 278.29, 198.47, 240.54, 209.26, 204.94]], "area": 47907.08765000001, "iscrowd": 0, "image_id": 196981, "bbox": [180.13, 99.24, 276.14, 380.76], "category_id": 1, "id": 493535}, {"segmentation": [[73.89, 415.49, 74.84, 372.31, 85.4, 350.24, 2.88, 283.07, 28.79, 249.48, 75.8, 184.23, 119.94, 144.89, 111.31, 105.55, 134.34, 71.97, 169.84, 79.64, 198.63, 99.79, 188.07, 124.74, 189.03, 143.93, 176.56, 165.04, 166.0, 171.76, 179.44, 190.95, 189.99, 270.59, 206.3, 328.17, 191.91, 349.28, 175.6, 366.55, 184.23, 419.32]], "area": 39730.06915, "iscrowd": 0, "image_id": 221842, "bbox": [2.88, 71.97, 203.42, 347.35], "category_id": 1, "id": 494485}, {"segmentation": [[312.11, 259.55, 316.9, 227.0, 337.96, 218.38, 359.02, 220.3, 374.34, 227.96, 376.26, 244.23, 369.56, 268.17, 369.56, 292.1, 388.7, 334.23, 388.7, 372.52, 374.34, 409.86, 365.73, 423.27, 294.88, 421.35, 274.77, 390.71, 249.88, 415.61, 225.95, 423.27, 187.65, 423.27, 185.74, 384.97, 186.69, 371.57, 208.71, 372.52, 219.24, 392.63, 234.56, 375.4, 256.58, 356.25, 246.05, 329.44, 253.71, 312.21, 279.56, 321.78, 305.41, 325.61]], "area": 21817.7879, "iscrowd": 0, "image_id": 314319, "bbox": [185.74, 218.38, 202.96, 204.89], "category_id": 1, "id": 494745}, {"segmentation": [[4.33, 630.97, 1.44, 347.81, 105.46, 383.93, 200.81, 422.93, 209.48, 457.61, 119.91, 529.84, 114.13, 565.96, 101.13, 581.85, 47.67, 604.97, 52.01, 625.19, 50.56, 632.42, 5.78, 632.42, 13.0, 629.53]], "area": 35117.337799999994, "iscrowd": 0, "image_id": 119093, "bbox": [1.44, 347.81, 208.04, 284.61], "category_id": 1, "id": 495465}, {"segmentation": [[120.39, 373.9, 138.84, 370.01, 135.93, 350.59, 133.99, 325.35, 131.07, 307.87, 149.52, 262.24, 158.26, 223.4, 153.4, 185.54, 147.58, 157.38, 141.75, 136.02, 145.64, 120.49, 155.35, 134.08, 162.14, 161.27, 162.14, 179.71, 155.35, 186.51, 160.2, 212.72, 172.82, 214.67, 174.77, 203.99, 179.62, 199.13, 179.62, 191.36, 174.77, 171.95, 168.94, 137.96, 168.94, 111.75, 165.06, 103.01, 165.06, 98.16, 166.03, 78.74, 160.2, 69.03, 158.26, 53.49, 163.11, 43.79, 174.77, 42.81, 175.74, 32.13, 166.03, 32.13, 154.38, 29.22, 137.87, 19.51, 116.51, 15.63, 94.18, 20.48, 80.59, 20.48, 72.82, 21.45, 66.99, 29.22, 66.99, 39.9, 77.67, 51.55, 81.56, 59.32, 92.24, 70.0, 107.77, 70.0, 77.67, 83.59, 57.28, 96.21, 48.55, 118.55, 38.84, 136.99, 29.13, 153.5, 32.04, 175.83, 47.57, 183.6, 45.63, 205.93, 33.01, 276.81, 27.19, 301.08, 33.98, 315.64, 46.6, 319.53, 51.46, 306.9, 58.26, 303.99, 58.26, 293.31, 57.28, 271.95, 63.11, 228.26, 62.14, 207.87, 70.88, 201.07, 88.35, 208.84, 94.18, 225.35, 84.47, 255.45, 87.38, 297.19, 87.38, 325.35, 77.67, 342.83, 80.59, 359.33, 91.27, 371.96, 107.77, 374.87, 118.45, 377.78]], "area": 32269.538399999994, "iscrowd": 0, "image_id": 276420, "bbox": [27.19, 15.63, 152.43, 362.15], "category_id": 1, "id": 495518}, {"segmentation": [[373.03, 344.94, 337.08, 315.73, 271.91, 282.02, 282.02, 228.09, 296.63, 174.16, 286.52, 132.58, 293.26, 103.37, 289.89, 87.64, 279.78, 34.83, 257.3, 1.12, 111.24, 2.25, 80.9, 24.72, 76.4, 43.82, 76.4, 128.09, 183.15, 128.09, 205.62, 198.88, 197.75, 346.07, 33.71, 341.57, 35.96, 282.02, 1.12, 298.88, 0.0, 494.38, 369.66, 494.38]], "area": 104361.22395, "iscrowd": 0, "image_id": 146235, "bbox": [0.0, 1.12, 373.03, 493.26], "category_id": 1, "id": 495652}, {"segmentation": [[358.34, 186.34, 359.69, 182.63, 363.39, 178.93, 374.16, 182.97, 383.59, 182.63, 391.0, 176.24, 398.74, 171.19, 403.45, 156.71, 412.54, 144.59, 412.54, 135.84, 417.25, 132.14, 416.58, 124.73, 409.51, 111.27, 403.11, 105.88, 397.73, 101.84, 385.61, 101.84, 371.14, 105.88, 356.32, 118.67, 352.62, 139.54, 345.55, 148.97, 334.11, 157.39, 328.38, 160.75, 319.29, 166.81, 298.09, 188.69, 289.0, 212.59, 288.66, 218.99, 277.55, 236.83, 285.63, 252.32, 290.01, 282.61, 277.22, 286.99, 278.9, 289.01, 295.39, 299.11, 294.38, 321.32, 297.75, 326.37, 290.68, 352.63, 274.86, 402.45, 273.18, 420.29, 278.56, 464.73, 282.27, 475.84, 344.2, 477.86, 339.83, 453.96, 340.17, 426.69, 338.82, 366.1, 359.69, 346.91, 376.52, 335.46, 387.63, 331.09, 387.63, 319.3, 370.13, 308.87, 347.57, 295.74, 350.6, 249.29, 360.03, 194.08]], "area": 24565.31105, "iscrowd": 0, "image_id": 185591, "bbox": [273.18, 101.84, 144.07, 376.02], "category_id": 1, "id": 495926}, {"segmentation": [[1.44, 201.9, 5.78, 120.99, 23.12, 105.1, 44.79, 122.44, 54.9, 154.22, 49.12, 186.0, 47.67, 220.68, 56.34, 258.24, 62.12, 305.91, 72.23, 372.37, 86.68, 444.6, 76.57, 493.72, 95.35, 498.06, 115.58, 512.51, 108.35, 539.95, 65.01, 555.85, 0.0, 560.18, 7.22, 415.71, 5.78, 378.15]], "area": 29058.45635, "iscrowd": 0, "image_id": 128770, "bbox": [0.0, 105.1, 115.58, 455.08], "category_id": 1, "id": 495981}, {"segmentation": [[422.76, 169.84, 423.21, 164.87, 420.51, 156.3, 411.93, 151.78, 404.71, 155.39, 399.74, 160.36, 399.74, 168.94, 406.06, 178.41, 405.61, 181.57, 401.1, 183.83, 394.78, 194.21, 393.87, 212.72, 396.13, 215.88, 397.94, 215.88, 396.13, 228.52, 396.13, 242.96, 394.78, 251.09, 397.03, 260.57, 399.74, 260.12, 403.8, 256.51, 402.9, 247.03, 404.26, 232.58, 405.16, 227.17, 406.96, 247.03, 406.51, 253.35, 407.42, 263.73, 411.03, 275.33, 410.58, 283.91, 412.38, 287.97, 415.99, 289.77, 417.35, 314.6, 420.05, 328.14, 411.03, 331.3, 403.8, 332.66, 406.51, 336.72, 424.12, 335.36, 427.73, 330.4, 424.57, 296.09, 429.53, 295.64, 433.6, 318.66, 433.6, 329.5, 427.28, 337.17, 426.37, 340.33, 439.47, 340.33, 444.43, 336.27, 444.43, 331.3, 442.62, 325.43, 441.27, 313.25, 439.47, 291.13, 441.72, 289.32, 439.92, 284.36, 439.47, 279.84, 441.27, 250.95, 440.37, 239.22, 438.11, 214.39, 447.14, 214.84, 449.4, 207.8, 437.66, 189.29, 435.4, 182.52, 427.73, 179.81, 420.96, 178.91]], "area": 5908.645150000001, "iscrowd": 0, "image_id": 27070, "bbox": [393.87, 151.78, 55.53, 188.55], "category_id": 1, "id": 496549}, {"segmentation": [[529.39, 230.1, 532.1, 213.59, 541.01, 206.62, 538.94, 204.81, 539.2, 199.52, 540.88, 196.68, 543.07, 193.97, 546.94, 193.58, 553.14, 194.1, 554.3, 199.13, 553.53, 204.94, 554.43, 207.78, 561.66, 211.26, 562.82, 223.13, 561.27, 231.26, 559.08, 229.85, 557.01, 222.36, 557.14, 215.65, 552.36, 210.36, 547.46, 207.13, 543.85, 206.75, 540.23, 209.46, 534.3, 225.33, 529.39, 232.43]], "area": 413.7338499999988, "iscrowd": 0, "image_id": 385701, "bbox": [529.39, 193.58, 33.43, 38.85], "category_id": 1, "id": 496638}, {"segmentation": [[230.87, 245.41, 240.14, 250.82, 249.41, 256.23, 250.18, 269.36, 254.81, 285.58, 254.81, 301.8, 256.36, 309.52, 254.81, 316.48, 249.41, 322.66, 248.64, 328.06, 248.64, 344.28, 249.41, 354.33, 247.09, 362.05, 249.41, 373.64, 252.5, 386.0, 255.59, 393.72, 259.45, 403.76, 263.31, 411.49, 261.77, 419.21, 256.36, 425.39, 250.95, 429.25, 246.32, 433.12, 240.14, 432.34, 237.82, 430.03, 230.87, 430.03, 223.92, 430.8, 217.74, 429.25, 216.96, 424.62, 223.14, 421.53, 228.55, 416.89, 226.23, 409.94, 218.51, 399.9, 206.92, 389.09, 205.38, 377.5, 203.06, 355.1, 199.97, 333.47, 199.2, 318.02, 197.65, 311.84, 186.07, 315.7, 179.89, 315.7, 164.44, 314.16, 160.58, 311.07, 156.71, 299.48, 162.89, 292.53, 168.3, 291.76, 176.8, 297.16, 181.43, 300.25, 188.38, 295.62, 189.93, 285.58, 192.25, 273.99, 201.52, 265.49, 204.61, 259.31, 207.7, 253.14, 205.38, 250.05, 202.29, 240.78, 202.29, 230.73, 210.01, 223.01, 220.83, 222.24, 227.78, 224.55, 230.1, 229.19, 230.87, 235.37]], "area": 10156.826100000002, "iscrowd": 0, "image_id": 528493, "bbox": [156.71, 222.24, 106.6, 210.88], "category_id": 1, "id": 496934}, {"segmentation": [[110.25, 429.67, 93.06, 428.24, 93.08, 418.2, 82.86, 418.41, 74.37, 400.12, 75.87, 387.82, 73.2, 381.01, 67.97, 377.65, 65.86, 370.97, 67.29, 368.1, 64.02, 362.38, 70.16, 356.65, 58.7, 348.06, 58.24, 345.79, 59.21, 337.05, 66.98, 333.17, 68.92, 329.77, 64.55, 327.34, 74.27, 319.57, 77.67, 312.29, 80.58, 314.72, 74.27, 322.0, 131.87, 372.53, 130.11, 380.27, 132.05, 389.98, 130.08, 415.1, 124.07, 421.58, 125.25, 426.4, 126.71, 430.77, 120.88, 430.77, 114.57, 429.31]], "area": 4890.723100000001, "iscrowd": 0, "image_id": 532414, "bbox": [58.24, 312.29, 73.81, 118.48], "category_id": 1, "id": 496958}, {"segmentation": [[571.89, 333.51, 558.92, 309.73, 562.16, 290.27, 588.11, 268.65, 595.68, 266.49, 584.86, 239.46, 594.59, 213.51, 638.92, 208.11, 640.0, 261.08, 638.92, 361.62, 615.14, 343.24, 589.19, 340.0, 572.97, 336.76]], "area": 8289.391850000002, "iscrowd": 0, "image_id": 176587, "bbox": [558.92, 208.11, 81.08, 153.51], "category_id": 1, "id": 498312}, {"segmentation": [[186.23, 154.59, 184.05, 154.59, 182.6, 154.59, 182.6, 150.22, 179.69, 146.59, 176.78, 149.5, 176.78, 153.86, 172.41, 156.77, 168.05, 161.86, 168.05, 164.05, 165.14, 167.68, 164.41, 172.78, 164.41, 178.6, 165.86, 180.78, 168.05, 180.05, 168.05, 178.6, 169.5, 175.69, 170.23, 176.41, 170.23, 179.32, 169.5, 181.51, 170.96, 185.14, 170.96, 187.33, 171.68, 190.96, 172.41, 192.42, 173.14, 195.33, 173.14, 200.42, 173.14, 204.06, 173.14, 204.78, 173.14, 204.78, 175.32, 206.97, 178.96, 205.51, 178.96, 204.06, 178.23, 198.24, 178.96, 187.33, 178.96, 185.87, 180.41, 198.24, 180.41, 198.97, 181.14, 201.88, 181.87, 201.88, 184.05, 195.33, 185.51, 190.96, 187.69, 182.96, 186.23, 181.51, 186.23, 180.05, 186.23, 175.69, 187.69, 174.23, 187.69, 172.05, 190.6, 170.59, 189.14, 169.14, 187.69, 167.68, 185.51, 165.5, 184.05, 162.59, 185.51, 156.04, 186.23, 155.32], [244.43, 278.26, 234.25, 267.35, 232.07, 261.53, 232.79, 245.52, 232.79, 235.34, 213.88, 205.51, 213.15, 203.33, 211.7, 201.88, 219.7, 184.42, 221.88, 181.51, 227.7, 169.14, 229.16, 164.77, 238.61, 155.32, 223.34, 145.13, 224.06, 137.86, 217.52, 132.76, 211.7, 132.76, 205.88, 134.95, 205.15, 137.86, 201.51, 137.86, 199.33, 140.04, 198.6, 142.22, 197.87, 143.68, 190.6, 150.95, 189.87, 150.95, 187.69, 153.13, 184.05, 158.23, 186.23, 167.68, 188.42, 169.14, 189.87, 170.59, 190.6, 172.78, 186.96, 176.41, 186.96, 180.78, 186.96, 182.23, 187.69, 183.69, 188.42, 189.51, 184.78, 195.33, 184.05, 198.24, 181.14, 204.78, 181.14, 210.6, 181.14, 212.06, 182.6, 220.79, 183.32, 225.15, 184.05, 227.34, 184.78, 228.79, 181.14, 236.79, 176.78, 247.71, 176.05, 253.53, 173.87, 262.26, 173.87, 262.98, 173.87, 264.44, 173.87, 265.17, 179.69, 265.17, 181.14, 265.17, 186.23, 261.53, 186.23, 260.07, 189.14, 253.53, 192.05, 248.43, 193.51, 246.25, 196.42, 241.16, 197.15, 236.79, 197.15, 232.43, 199.33, 220.06, 199.33, 216.42, 202.97, 220.06, 203.69, 224.43, 210.24, 228.79, 219.7, 244.8, 221.15, 246.98, 221.15, 250.62, 221.88, 256.44, 224.06, 261.53, 221.15, 268.8, 221.15, 273.17, 221.15, 273.9, 225.52, 277.53, 232.07, 278.26, 242.98, 283.35, 243.7, 278.99]], "area": 5385.646049999998, "iscrowd": 0, "image_id": 84653, "bbox": [164.41, 132.76, 80.02, 150.59], "category_id": 1, "id": 498690}, {"segmentation": [[100.54, 630.15, 100.54, 601.38, 113.62, 596.16, 129.31, 556.94, 125.38, 519.02, 190.76, 470.65, 232.6, 479.8, 211.67, 498.11, 212.98, 550.4, 193.37, 571.33, 207.75, 630.15, 97.93, 631.46]], "area": 12536.133600000003, "iscrowd": 0, "image_id": 119093, "bbox": [97.93, 470.65, 134.67, 160.81], "category_id": 1, "id": 499408}, {"segmentation": [[80.98, 371.59, 84.08, 364.98, 79.05, 349.89, 95.91, 331.25, 103.31, 330.96, 103.01, 325.33, 100.05, 313.5, 103.9, 312.61, 95.62, 307.58, 105.38, 302.85, 112.48, 298.12, 123.13, 300.19, 124.31, 308.17, 125.5, 324.15, 130.23, 345.75, 124.31, 358.76, 117.81, 370.89, 104.2, 404.8, 103.9, 427.0, 70.17, 426.91, 70.76, 400.58, 81.12, 368.04]], "area": 4339.9028, "iscrowd": 0, "image_id": 314319, "bbox": [70.17, 298.12, 60.06, 128.88], "category_id": 1, "id": 499578}, {"segmentation": [[17.71, 298.43, 19.74, 310.14, 21.78, 312.68, 20.25, 322.36, 20.76, 324.39, 24.83, 324.39, 30.43, 320.32, 36.03, 321.34, 46.73, 326.94, 47.74, 336.61, 56.91, 344.76, 62.51, 353.41, 66.58, 356.46, 69.63, 387.52, 69.63, 391.59, 57.92, 393.63, 60.47, 404.83, 59.45, 418.06, 52.33, 430.28, 50.29, 437.92, 48.76, 447.08, 46.22, 449.12, 43.16, 451.66, 35.53, 472.03, 31.45, 475.08, 32.47, 480.0, 0.0, 479.95, 0.0, 436.68, 10.58, 416.82, 6.51, 413.77, 0.0, 420.39, 0.25, 348.1, 2.29, 343.23, 5.85, 333.56, 0.0, 326.43, 0.0, 296.39, 6.87, 294.86, 14.0, 295.88, 18.58, 298.94]], "area": 8911.908899999999, "iscrowd": 0, "image_id": 311522, "bbox": [0.0, 294.86, 69.63, 185.14], "category_id": 1, "id": 499684}, {"segmentation": [[435.6, 386.26, 431.12, 392.84, 423.65, 394.03, 412.59, 379.39, 399.74, 348.62, 384.8, 338.46, 383.01, 334.28, 369.86, 325.31, 362.69, 300.51, 359.41, 303.8, 354.92, 304.7, 326.84, 284.38, 311.6, 262.57, 309.21, 254.2, 293.67, 234.48, 288.89, 226.41, 273.36, 202.51, 257.52, 189.66, 241.39, 177.11, 222.56, 167.25, 207.62, 154.7, 195.07, 149.92, 190.89, 140.66, 185.21, 131.4, 190.59, 129.61, 199.85, 135.88, 207.32, 130.8, 217.18, 140.66, 237.2, 153.81, 250.05, 163.37, 271.56, 171.44, 286.2, 172.03, 297.56, 171.14, 289.19, 156.8, 291.28, 140.66, 299.05, 131.4, 313.09, 129.9, 322.66, 137.97, 328.03, 153.81, 326.54, 167.25, 339.09, 170.54, 351.94, 170.54, 371.06, 163.97, 374.64, 168.75, 411.99, 170.24, 451.13, 179.2, 465.18, 184.28, 477.43, 197.43, 476.53, 203.41, 466.97, 201.91, 459.5, 195.04, 458.01, 203.71, 455.62, 203.11, 454.12, 193.85, 449.04, 191.45, 444.56, 187.57, 401.24, 185.48, 375.84, 186.38, 373.15, 192.95, 359.41, 191.75, 357.61, 197.43, 363.89, 211.77, 371.06, 226.71, 376.14, 233.29, 380.32, 241.95, 392.27, 277.51, 393.77, 292.45, 401.54, 303.8, 406.62, 315.75, 413.79, 323.52, 420.06, 330.39, 430.22, 328.0, 435.6, 333.08, 437.69, 341.74, 437.69, 346.23, 435.6, 346.82, 437.69, 354.0, 441.87, 360.27, 445.76, 372.82, 442.77, 385.07, 440.38, 386.26]], "area": 18641.89010000001, "iscrowd": 0, "image_id": 249531, "bbox": [185.21, 129.61, 292.22, 264.42], "category_id": 1, "id": 499823}, {"segmentation": [[338.09, 106.12, 335.0, 100.85, 330.82, 92.67, 327.55, 78.12, 327.0, 68.31, 326.28, 60.31, 323.0, 57.4, 323.19, 53.03, 323.55, 52.13, 321.19, 51.58, 321.0, 49.04, 324.09, 43.76, 325.37, 37.58, 330.64, 31.4, 331.73, 27.22, 330.82, 26.31, 329.0, 28.49, 326.82, 26.49, 325.37, 29.22, 323.0, 28.13, 319.0, 35.4, 318.09, 31.76, 316.82, 32.67, 315.0, 37.76, 312.1, 43.22, 311.73, 48.49, 312.28, 51.58, 310.64, 54.31, 310.28, 56.85, 308.82, 60.31, 307.19, 62.85, 307.73, 67.94, 308.28, 72.12, 308.1, 81.58, 308.28, 88.67, 309.37, 93.39, 311.19, 101.58, 311.55, 111.03, 313.91, 115.57, 313.91, 122.85, 317.0, 127.39, 317.73, 129.57, 320.64, 133.03, 321.37, 139.94, 322.09, 143.75, 321.73, 151.93, 320.09, 157.57, 317.91, 166.84, 316.64, 167.57, 317.19, 173.93, 319.73, 182.3, 319.37, 185.75, 319.91, 190.66, 319.91, 195.75, 320.82, 197.57, 326.09, 199.57, 325.18, 202.11, 326.64, 207.93, 321.91, 219.2, 321.0, 226.84, 321.91, 229.02, 321.0, 238.47, 319.19, 263.56, 319.19, 268.47, 319.19, 271.01, 319.55, 272.29, 318.82, 273.2, 318.82, 275.92, 317.73, 279.2, 320.09, 281.74, 324.28, 286.1, 325.55, 289.19, 329.0, 295.01, 332.82, 301.01, 335.37, 306.65, 335.73, 308.1, 340.09, 310.28, 345.73, 316.65, 347.36, 317.56, 347.91, 319.92, 350.27, 329.19, 356.27, 334.64, 361.0, 334.64, 363.54, 325.55, 363.0, 318.46, 361.18, 314.83, 360.09, 312.83, 363.73, 306.47, 362.45, 300.1, 361.91, 295.92, 359.36, 293.01, 356.45, 291.01, 351.55, 278.83, 348.09, 274.1, 350.27, 272.83, 349.55, 267.74, 351.91, 262.47, 352.46, 256.65, 353.18, 260.29, 356.45, 263.56, 357.55, 272.47, 361.55, 278.47, 364.64, 281.56, 367.36, 281.2, 371.36, 284.47, 377.0, 289.74, 382.27, 290.83, 386.82, 292.65, 390.63, 293.01, 391.72, 297.19, 395.0, 297.19, 400.27, 299.74, 405.9, 300.65, 414.63, 311.19, 420.08, 312.65, 422.99, 310.46, 424.08, 307.56, 422.45, 299.19, 420.81, 295.01, 415.54, 289.56, 413.54, 279.92, 409.36, 276.65, 406.45, 272.29, 400.81, 271.2, 391.0, 264.29, 386.63, 260.83, 385.54, 259.38, 389.36, 256.83, 389.54, 248.65, 388.27, 247.2, 388.27, 243.56, 389.91, 235.56, 387.91, 219.02, 386.45, 209.2, 383.18, 200.66, 383.72, 196.84, 384.09, 191.57, 384.45, 187.93, 387.0, 180.66, 380.63, 164.84, 383.18, 161.57, 385.0, 146.48, 388.82, 137.75, 393.72, 126.66, 395.18, 125.94, 398.81, 126.12, 399.54, 118.48, 397.36, 117.21, 398.81, 96.85, 401.36, 90.49, 401.72, 86.3, 398.45, 67.03, 398.27, 58.31, 396.45, 53.4, 396.63, 42.31, 396.27, 35.76, 391.54, 29.76, 386.45, 25.95, 384.27, 24.67, 379.36, 24.13, 382.09, 30.49, 381.18, 31.4, 383.36, 35.4, 388.82, 43.04, 391.91, 44.31, 388.45, 46.85, 388.82, 50.49, 389.0, 51.94, 384.82, 56.31, 378.45, 81.21, 371.36, 79.03, 366.27, 77.94, 362.27, 75.94, 356.45, 75.03, 352.46, 77.4, 350.82, 81.21, 343.55, 81.58, 341.0, 87.76, 341.37, 90.49, 337.18, 92.12, 337.73, 95.94, 340.09, 101.39, 339.0, 104.3, 338.46, 104.85]], "area": 17756.1154, "iscrowd": 0, "image_id": 237841, "bbox": [307.19, 24.13, 116.89, 310.51], "category_id": 1, "id": 500101}, {"segmentation": [[431.93, 266.37, 432.5, 277.83, 430.78, 289.3, 424.47, 296.76, 418.17, 297.33, 416.45, 300.2, 415.87, 306.51, 417.59, 309.95, 435.37, 329.45, 441.68, 335.18, 443.97, 339.2, 449.13, 342.06, 453.72, 347.8, 456.02, 351.81, 458.31, 357.55, 457.74, 360.99, 450.85, 360.41, 449.71, 355.25, 446.27, 349.52, 436.52, 344.36, 433.08, 341.49, 422.18, 334.61, 413.01, 328.87, 408.99, 324.86, 407.27, 331.74, 409.56, 336.33, 423.9, 351.81, 430.21, 358.12, 443.97, 358.12, 452.0, 364.43, 445.69, 365.0, 441.11, 368.44, 430.78, 366.72, 425.62, 363.28, 427.92, 375.9, 426.2, 375.33, 406.7, 369.59, 404.98, 365.58, 399.24, 365.58, 394.08, 365.58, 388.35, 362.14, 377.45, 360.41, 363.69, 356.4, 348.78, 350.09, 340.75, 345.5, 333.87, 342.64, 331.57, 341.49, 337.88, 327.73, 348.78, 317.98, 357.38, 305.93, 362.54, 303.07, 383.18, 289.3, 396.37, 282.42, 401.54, 279.56, 403.26, 268.66, 408.99, 261.78, 417.59, 256.62, 426.77, 259.48, 431.93, 266.94]], "area": 6749.34435, "iscrowd": 0, "image_id": 454437, "bbox": [331.57, 256.62, 126.74, 119.28], "category_id": 1, "id": 500161}, {"segmentation": [[557.72, 309.62, 557.72, 303.44, 558.24, 298.8, 558.24, 292.1, 558.24, 290.04, 556.69, 286.94, 559.79, 279.73, 563.39, 277.67, 564.94, 276.12, 564.42, 273.55, 558.75, 269.94, 554.63, 256.54, 556.69, 249.84, 559.79, 245.72, 565.97, 245.2, 571.64, 245.72, 577.82, 247.78, 580.92, 252.93, 581.43, 263.24, 579.88, 267.36, 585.55, 274.06, 588.13, 279.21, 588.13, 286.94, 588.65, 293.64, 590.19, 304.98, 590.19, 314.77, 592.25, 319.93, 588.13, 334.87, 589.68, 348.27, 587.62, 353.43, 588.13, 368.89, 588.65, 389.5, 591.22, 396.72, 593.8, 400.84, 590.03, 407.25, 582.3, 406.73, 579.2, 399.52, 571.99, 379.93, 570.96, 388.69, 571.99, 404.15, 560.65, 406.73, 558.59, 375.29, 566.32, 375.29, 567.35, 367.56, 567.35, 365.5, 568.38, 361.38, 568.9, 359.32, 573.02, 349.53, 574.57, 344.89, 570.96, 345.4, 569.93, 345.4, 569.41, 346.43, 556.53, 352.1, 555.5, 349.01, 555.5, 344.37, 566.32, 343.34, 566.83, 339.73, 562.71, 333.55, 559.62, 330.97, 556.53, 328.91, 556.53, 310.87]], "area": 4221.966699999997, "iscrowd": 0, "image_id": 187474, "bbox": [554.63, 245.2, 39.17, 162.05], "category_id": 1, "id": 500461}, {"segmentation": [[621.31, 1.9, 620.28, 8.09, 624.4, 8.6, 622.34, 16.85, 613.58, 22.52, 601.73, 30.76, 583.69, 65.29, 589.87, 70.45, 605.33, 96.21, 601.73, 136.41, 603.79, 142.6, 595.03, 161.67, 591.42, 186.4, 587.3, 210.63, 588.84, 214.23, 607.39, 214.75, 614.09, 212.69, 614.09, 210.63, 604.82, 203.93, 602.76, 187.43, 608.94, 171.46, 610.49, 161.67, 619.76, 143.11, 620.28, 140.02, 629.56, 139.5, 629.04, 150.84, 628.52, 173.0, 628.52, 182.28, 623.89, 209.59, 632.13, 210.63, 639.35, 210.11, 640.0, 196.2, 637.29, 194.65, 640.0, 172.49, 640.0, 0.0, 621.31, 0.0]], "area": 7292.952100000001, "iscrowd": 0, "image_id": 420051, "bbox": [583.69, 0.0, 56.31, 214.75], "category_id": 1, "id": 500534}, {"segmentation": [[117.95, 199.68, 117.12, 209.08, 117.12, 212.39, 113.8, 212.95, 111.04, 226.77, 108.82, 235.34, 107.44, 246.67, 107.17, 251.92, 107.17, 258.83, 111.04, 262.43, 111.04, 252.75, 111.04, 250.82, 114.08, 235.89, 117.67, 226.49, 119.33, 226.49, 119.88, 231.47, 121.54, 240.59, 119.05, 253.03, 119.05, 266.57, 117.95, 275.97, 117.67, 281.5, 121.26, 295.05, 119.33, 297.81, 115.18, 303.89, 116.56, 306.1, 125.69, 304.17, 126.24, 298.36, 126.24, 288.96, 125.96, 284.27, 126.52, 277.35, 125.41, 271.83, 128.17, 262.15, 129.56, 257.45, 129.83, 269.62, 130.94, 277.08, 130.11, 285.09, 129.83, 299.47, 130.39, 304.72, 139.23, 305.0, 135.08, 301.96, 135.08, 295.6, 137.85, 289.24, 138.13, 279.57, 138.13, 271.27, 142.82, 249.99, 139.23, 232.3, 138.4, 223.18, 143.1, 222.9, 141.44, 218.75, 143.65, 214.61, 141.44, 211.57, 133.15, 208.53, 133.15, 204.66, 136.47, 203.55, 144.76, 207.42, 144.48, 200.51, 140.34, 192.77, 133.7, 190.0, 123.75, 190.0, 120.16, 194.15]], "area": 2436.3358999999996, "iscrowd": 0, "image_id": 126978, "bbox": [107.17, 190.0, 37.59, 116.1], "category_id": 1, "id": 500688}, {"segmentation": [[461.22, 105.47, 457.87, 68.6, 441.78, 69.27, 434.07, 102.79, 420.32, 102.79, 415.96, 79.66, 412.61, 61.89, 409.26, 60.22, 412.61, 32.39, 412.28, 21.33, 415.96, 0.0, 590.28, 0.0, 589.95, 63.23, 574.19, 71.61, 573.86, 85.36, 569.16, 99.1, 556.09, 114.19, 561.79, 114.52, 570.84, 126.26, 534.63, 129.27, 516.2, 132.62, 518.21, 126.26, 507.15, 117.87, 489.38, 111.17]], "area": 18530.965, "iscrowd": 0, "image_id": 426513, "bbox": [409.26, 0.0, 181.02, 132.62], "category_id": 1, "id": 500934}, {"segmentation": [[220.23, 281.1, 230.63, 259.36, 235.36, 248.02, 228.27, 233.37, 220.23, 226.75, 238.67, 196.98, 240.56, 192.73, 244.81, 182.81, 254.73, 180.44, 261.82, 185.17, 259.93, 198.87, 268.44, 208.8, 269.86, 212.1, 272.22, 202.65, 278.83, 200.76, 281.67, 205.96, 270.33, 222.5, 258.51, 222.5, 259.93, 239.99, 253.79, 282.05, 260.88, 291.03, 254.73, 291.97, 243.39, 289.13, 245.76, 255.11, 232.99, 278.26, 238.67, 291.97, 228.74, 289.61, 222.12, 282.52]], "area": 3148.9055000000008, "iscrowd": 0, "image_id": 162882, "bbox": [220.23, 180.44, 61.44, 111.53], "category_id": 1, "id": 501311}, {"segmentation": [[95.51, 311.39, 101.09, 311.39, 102.83, 291.18, 103.98, 290.99, 103.88, 285.31, 106.19, 283.58, 104.94, 279.83, 102.63, 276.94, 101.09, 275.5, 100.04, 274.15, 99.94, 272.32, 99.36, 270.68, 97.15, 270.49, 95.7, 271.07, 94.93, 272.32, 95.32, 274.24, 95.8, 275.11, 95.13, 275.88, 92.53, 278.67, 91.66, 284.45, 91.85, 288.3, 91.95, 292.34, 93.97, 294.66, 94.45, 295.05]], "area": 358.2508499999999, "iscrowd": 0, "image_id": 328487, "bbox": [91.66, 270.49, 14.53, 40.9], "category_id": 1, "id": 501572}, {"segmentation": [[600.24, 94.7, 592.96, 76.09, 582.44, 68.81, 573.54, 62.34, 584.87, 47.78, 580.01, 34.03, 570.31, 25.94, 557.37, 33.22, 549.28, 45.36, 548.47, 51.02, 549.28, 62.34, 543.62, 64.77, 533.91, 71.24, 520.16, 81.75, 511.26, 94.7, 508.83, 109.26, 507.22, 119.77, 519.35, 118.96, 521.78, 103.59, 529.86, 97.93, 535.53, 111.68, 537.14, 130.29, 537.95, 139.18, 546.85, 137.57, 553.32, 118.15, 574.35, 118.96, 581.63, 114.11, 584.06, 101.17, 598.62, 95.5]], "area": 4862.09135, "iscrowd": 0, "image_id": 53615, "bbox": [507.22, 25.94, 93.02, 113.24], "category_id": 1, "id": 501949}, {"segmentation": [[497.26, 266.5, 502.65, 288.07, 482.16, 318.27, 485.39, 380.84, 496.18, 439.08, 486.47, 461.73, 472.45, 469.29, 574.92, 463.89, 581.39, 462.81, 584.63, 419.67, 574.92, 368.97, 574.92, 353.87, 574.92, 337.69, 569.53, 315.04, 549.03, 294.54, 553.35, 280.52, 545.8, 263.26, 536.09, 254.63]], "area": 16895.346199999996, "iscrowd": 0, "image_id": 165773, "bbox": [472.45, 254.63, 112.18, 214.66], "category_id": 1, "id": 502168}, {"segmentation": [[408.58, 176.77, 416.39, 181.36, 420.53, 183.2, 423.29, 175.85, 422.83, 168.95, 427.42, 165.73, 431.1, 172.63, 431.1, 177.23, 429.72, 178.14, 428.34, 185.5, 426.96, 192.39, 422.37, 193.77, 418.23, 192.85, 413.17, 189.18, 409.04, 188.72, 401.22, 201.13, 397.55, 208.48, 397.09, 215.83, 399.85, 222.73, 400.31, 231.46, 401.22, 240.19, 401.22, 248.47, 400.31, 256.28, 400.31, 262.25, 403.52, 266.39, 407.66, 272.37, 404.9, 273.75, 399.39, 273.75, 395.25, 271.91, 392.95, 261.8, 393.41, 251.22, 394.79, 240.65, 389.27, 229.16, 384.68, 221.35, 374.57, 226.4, 369.97, 238.35, 364.46, 243.41, 358.02, 249.85, 352.96, 258.12, 346.99, 265.93, 340.55, 273.75, 336.88, 275.12, 334.58, 270.99, 342.39, 261.34, 348.83, 248.93, 355.72, 238.81, 362.62, 231.92, 365.83, 219.97, 368.59, 206.64, 369.51, 201.59, 365.37, 196.99, 385.14, 176.31, 391.57, 175.39, 392.95, 175.39, 395.25, 169.87, 399.39, 167.11, 405.36, 168.49, 407.2, 174.47, 408.12, 177.23]], "area": 2873.5597000000007, "iscrowd": 0, "image_id": 446331, "bbox": [334.58, 165.73, 96.52, 109.39], "category_id": 1, "id": 502438}, {"segmentation": [[332.87, 224.21, 325.28, 247.81, 323.6, 305.11, 300.84, 308.48, 289.04, 310.17, 303.37, 295.84, 305.9, 264.66, 305.06, 209.89, 314.33, 176.18, 300.84, 172.81, 295.79, 170.28, 307.58, 160.17, 305.9, 130.67, 314.33, 88.54, 332.87, 76.74, 327.81, 64.1, 328.65, 43.88, 330.34, 34.61, 341.29, 30.39, 352.25, 34.61, 358.99, 44.72, 357.3, 53.15, 354.78, 64.94, 352.25, 73.37, 373.31, 92.75, 380.06, 94.44, 388.48, 130.67, 380.9, 144.16, 365.73, 145.84, 364.04, 190.51, 360.67, 218.31, 356.46, 223.37, 353.09, 246.12, 347.19, 278.15, 348.03, 289.94, 347.19, 306.8, 340.45, 307.64, 334.55, 304.27, 332.02, 286.57, 332.02, 272.25, 341.29, 234.33]], "area": 13350.087100000004, "iscrowd": 0, "image_id": 207463, "bbox": [289.04, 30.39, 99.44, 279.78], "category_id": 1, "id": 502453}, {"segmentation": [[404.3, 253.43, 430.11, 260.69, 430.92, 242.13, 447.06, 187.27, 461.58, 167.1, 476.91, 184.85, 489.01, 208.25, 494.66, 231.64, 493.04, 247.78, 488.2, 252.62, 481.75, 256.65, 516.44, 259.07, 507.57, 200.99, 498.69, 180.82, 497.88, 141.28, 500.3, 124.34, 493.04, 116.27, 501.92, 96.91, 493.85, 88.04, 493.85, 67.87, 480.14, 50.12, 472.63, 48.07, 472.63, 44.8, 476.5, 42.72, 478.88, 27.85, 476.5, 24.58, 466.98, 19.23, 457.77, 19.23, 453.31, 23.69, 450.33, 28.74, 440.82, 30.82, 451.22, 33.8, 448.25, 39.45, 450.03, 40.34, 450.03, 48.37, 457.47, 51.64, 457.17, 53.72, 450.93, 60.26, 447.36, 70.07, 445.92, 76.9, 426.95, 91.65, 427.65, 100.43, 435.56, 104.65, 437.05, 97.51, 450.72, 93.95, 447.75, 114.46, 449.53, 120.41, 433.78, 157.28, 428.68, 170.47, 421.57, 208.93, 418.02, 224.66, 412.13, 233.29, 400.56, 249.57, 400.75, 252.71]], "area": 11113.335250000015, "iscrowd": 0, "image_id": 383605, "bbox": [400.56, 19.23, 115.88, 241.46], "category_id": 1, "id": 503399}, {"segmentation": [[502.53, 103.28, 497.85, 93.08, 492.61, 84.82, 487.93, 81.24, 487.65, 74.07, 483.52, 71.32, 475.8, 70.21, 473.05, 73.52, 473.87, 79.86, 473.05, 82.61, 467.26, 85.37, 464.5, 85.09, 454.58, 88.95, 450.45, 92.53, 456.79, 102.73, 457.62, 103.28], [466.43, 114.38, 468.36, 129.26, 471.39, 133.4, 470.29, 143.04, 469.19, 152.68, 464.23, 161.78, 457.89, 170.87, 454.58, 184.65, 453.21, 191.26, 465.61, 191.26, 465.61, 187.13, 465.88, 181.34, 470.57, 173.08, 481.31, 160.4, 482.42, 151.03, 483.79, 163.71, 490.13, 175.0, 493.16, 180.24, 495.09, 190.16, 496.47, 193.19, 506.39, 195.67, 509.97, 189.88, 507.22, 179.69, 503.91, 159.57, 501.15, 143.59, 497.57, 133.4, 498.95, 125.4, 500.33, 111.9]], "area": 3445.04835, "iscrowd": 0, "image_id": 429144, "bbox": [450.45, 70.21, 59.52, 125.46], "category_id": 1, "id": 503544}, {"segmentation": [[388.66, 222.54, 395.43, 209.96, 395.19, 208.51, 393.5, 204.15, 391.56, 193.26, 392.53, 186.97, 394.22, 186.0, 400.03, 178.5, 400.76, 179.47, 406.57, 179.47, 412.86, 174.63, 414.55, 188.18, 418.67, 208.75, 418.91, 214.07, 421.33, 215.53, 421.57, 219.88, 421.33, 222.3, 423.26, 227.38, 423.51, 230.29, 424.23, 231.98, 430.77, 232.47, 433.43, 229.8, 431.73, 224.96, 430.28, 217.22, 429.56, 216.49, 432.22, 210.93, 429.31, 205.85, 428.59, 192.78, 428.1, 190.12, 424.96, 184.07, 424.23, 178.5, 426.41, 164.64, 426.41, 153.75, 429.31, 149.15, 430.04, 142.86, 435.85, 142.61, 434.88, 140.92, 429.07, 124.24, 426.65, 119.4, 413.1, 108.51, 413.58, 106.33, 417.21, 105.12, 418.42, 103.67, 417.46, 100.28, 415.28, 97.86, 414.79, 93.5, 411.41, 89.15, 408.26, 87.21, 401.0, 88.18, 399.31, 90.12, 400.03, 94.71, 397.85, 96.17, 397.37, 97.86, 398.58, 100.04, 400.76, 106.09, 401.73, 108.99, 400.76, 108.99, 394.71, 109.96, 389.38, 113.59, 384.06, 127.38, 388.17, 127.38, 387.69, 131.01, 386.48, 133.68, 386.24, 134.89, 390.35, 135.61, 390.59, 128.84, 387.93, 121.82, 390.59, 115.28, 394.71, 112.38, 399.79, 112.86, 403.66, 116.25, 405.84, 117.46, 407.53, 121.09, 408.5, 122.3, 408.5, 127.14, 404.63, 136.34, 402.21, 144.57, 400.03, 150.13, 394.71, 154.25, 388.42, 153.76, 383.09, 154.0, 382.12, 158.84, 384.06, 164.41, 386.0, 164.89, 381.4, 176.51, 379.22, 184.89, 379.22, 189.73, 384.06, 206.92, 382.37, 215.39, 380.67, 219.5, 380.91, 221.44, 381.4, 224.1, 384.06, 226.28, 387.93, 224.34]], "area": 3696.908299999999, "iscrowd": 0, "image_id": 50429, "bbox": [379.22, 87.21, 56.63, 145.26], "category_id": 1, "id": 504134}, {"segmentation": [[0.0, 435.34, 20.78, 367.36, 130.62, 335.98, 164.6, 308.52, 156.76, 266.69, 120.16, 245.76, 108.38, 215.69, 121.46, 194.78, 111.0, 122.87, 138.46, 71.87, 186.84, 52.26, 232.6, 50.96, 271.82, 66.65, 320.2, 113.7, 316.28, 190.85, 305.82, 290.21, 388.19, 372.58, 449.64, 411.81, 449.64, 631.46, 0.0, 632.77]], "area": 176642.398, "iscrowd": 0, "image_id": 507166, "bbox": [0.0, 50.96, 449.64, 581.81], "category_id": 1, "id": 504204}, {"segmentation": [[275.89, 553.81, 273.89, 543.32, 274.14, 541.32, 274.39, 533.32, 277.89, 528.32, 278.89, 526.32, 278.89, 523.08, 281.39, 522.08, 284.39, 523.58, 284.89, 526.32, 287.94, 532.47, 287.94, 536.92, 287.28, 540.71, 285.63, 544.34, 286.29, 547.3, 286.45, 549.12, 286.45, 551.75, 286.45, 555.05, 283.98, 555.71, 283.32, 555.05, 282.0, 551.26, 280.52, 550.44, 279.53, 551.42, 278.87, 553.73, 277.88, 555.38, 276.23, 554.89]], "area": 340.1329999999996, "iscrowd": 0, "image_id": 358100, "bbox": [273.89, 522.08, 14.05, 33.63], "category_id": 1, "id": 504504}, {"segmentation": [[294.09, 300.0, 294.87, 264.66, 314.12, 245.8, 313.33, 212.02, 318.83, 202.2, 310.98, 186.5, 315.3, 174.32, 323.15, 167.25, 341.61, 171.96, 344.36, 184.53, 340.04, 193.96, 352.61, 193.56, 367.93, 206.52, 378.53, 234.81, 365.97, 246.19, 354.57, 255.62, 355.36, 298.43, 355.36, 309.82, 360.47, 338.89, 327.87, 326.71, 335.33, 289.4, 334.94, 278.8, 319.23, 282.33, 318.05, 325.93, 318.05, 343.99, 279.56, 334.57, 281.52, 326.32, 294.48, 316.5]], "area": 8470.374750000003, "iscrowd": 0, "image_id": 253143, "bbox": [279.56, 167.25, 98.97, 176.74], "category_id": 1, "id": 504624}, {"segmentation": [[156.03, 316.12, 174.45, 242.44, 166.86, 203.43, 147.36, 121.08, 133.27, 83.16, 125.69, 6.23, 231.87, 1.9, 474.58, 6.23, 444.24, 71.24, 443.16, 114.58, 427.99, 155.76, 426.91, 203.43, 431.24, 252.19, 434.49, 293.36, 406.32, 305.28, 388.98, 291.2, 377.07, 242.44, 356.48, 217.52, 345.64, 198.01, 351.06, 138.42, 353.23, 77.74, 336.98, 33.32, 322.89, 20.32, 234.04, 22.48, 231.87, 76.66, 242.71, 139.5, 255.71, 215.35, 260.05, 267.36, 219.95, 317.2, 192.87, 338.87]], "area": 55772.75674999999, "iscrowd": 0, "image_id": 538682, "bbox": [125.69, 1.9, 348.89, 336.97], "category_id": 1, "id": 504904}, {"segmentation": [[137.95, 231.65, 135.23, 237.1, 139.77, 238.46, 142.94, 236.19, 144.3, 244.36, 140.22, 256.16, 139.77, 262.97, 137.5, 279.76, 135.68, 291.56, 136.13, 296.55, 130.23, 307.45, 132.96, 315.16, 142.49, 326.96, 144.76, 324.69, 143.4, 321.51, 141.13, 316.98, 144.76, 319.25, 156.1, 313.35, 157.47, 308.81, 157.92, 303.81, 154.74, 304.72, 152.02, 306.99, 152.02, 302.45, 157.01, 291.11, 163.37, 280.67, 168.36, 260.24, 168.36, 243.91, 169.27, 232.56, 178.8, 254.34, 178.8, 254.34, 183.79, 259.79, 184.7, 263.88, 184.7, 276.13, 185.6, 285.66, 185.6, 297.91, 189.24, 301.09, 187.87, 305.63, 190.6, 308.35, 185.15, 312.44, 189.24, 316.52, 192.41, 326.96, 194.23, 336.49, 206.03, 389.59, 206.94, 394.58, 201.94, 408.65, 197.86, 410.92, 195.14, 422.72, 195.14, 426.0, 230.08, 425.45, 242.34, 393.22, 243.24, 370.08, 250.05, 370.53, 247.78, 420.91, 252.77, 419.09, 271.84, 415.01, 285.0, 415.92, 280.46, 423.18, 280.01, 426.0, 313.14, 425.45, 319.94, 411.38, 321.76, 402.3, 297.25, 330.14, 285.92, 291.2, 276.32, 272.97, 267.69, 252.82, 291.68, 224.99, 273.45, 194.29, 265.77, 176.06, 236.99, 158.79, 193.81, 160.71, 201.49, 135.76, 198.61, 109.86, 190.93, 96.43, 169.82, 98.34, 165.03, 100.26, 155.43, 108.9, 150.64, 120.41, 148.72, 131.93, 134.32, 146.32, 128.57, 163.59, 127.61, 170.3, 119.93, 163.59, 119.93, 174.14, 122.81, 179.9, 121.85, 181.82, 130.49, 186.61, 142.0, 179.9, 154.47, 176.06, 160.23, 166.47, 164.07, 157.83, 162.15, 168.39, 153.51, 184.7, 142.0, 197.17, 142.0, 202.93, 164.07, 209.64, 164.07, 209.64, 166.95, 208.68, 167.91, 211.56, 170.78, 216.36, 171.74, 221.16, 169.82, 225.95, 163.11, 228.83, 140.08, 232.67]], "area": 33950.99590000001, "iscrowd": 0, "image_id": 151655, "bbox": [119.93, 96.43, 201.83, 329.57], "category_id": 1, "id": 505114}, {"segmentation": [[53.73, 337.76, 54.69, 310.89, 41.26, 310.89, 36.46, 326.25, 34.54, 339.68, 15.35, 363.67, 1.92, 397.25, 0.96, 418.36, 35.5, 420.28, 43.18, 398.21, 48.94, 368.47, 57.57, 366.55, 65.25, 356.95, 65.25, 342.56, 55.65, 338.72, 55.65, 337.76]], "area": 3583.51755, "iscrowd": 0, "image_id": 314319, "bbox": [0.96, 310.89, 64.29, 109.39], "category_id": 1, "id": 505509}, {"segmentation": [[424.49, 167.41, 425.79, 171.73, 427.08, 173.89, 430.11, 176.48, 431.83, 181.23, 429.67, 187.28, 430.54, 195.49, 432.27, 202.4, 433.99, 207.16, 435.29, 209.32, 431.4, 210.18, 426.65, 194.63, 424.06, 194.2, 419.74, 204.13, 415.42, 210.18, 414.12, 211.04, 418.87, 198.08, 418.44, 190.31, 418.01, 185.55, 417.14, 181.23, 417.14, 176.48, 420.17, 174.75, 421.46, 173.03, 421.46, 170.43]], "area": 376.4957500000009, "iscrowd": 0, "image_id": 311522, "bbox": [414.12, 167.41, 21.17, 43.63], "category_id": 1, "id": 505915}, {"segmentation": [[196.96, 377.2, 155.86, 350.64, 143.12, 339.73, 140.58, 331.36, 144.58, 327.36, 151.49, 320.09, 164.95, 323.0, 188.23, 315.72, 183.14, 266.25, 172.59, 252.07, 163.13, 234.61, 160.22, 233.51, 147.85, 255.34, 130.39, 278.62, 107.11, 302.99, 92.56, 319.72, 93.29, 328.09, 94.02, 332.46, 75.1, 350.28, 64.19, 360.1, 60.92, 356.46, 70.37, 344.46, 58.73, 351.37, 46.0, 366.28, 36.18, 363.01, 34.36, 358.65, 55.1, 330.64, 62.74, 323.0, 76.56, 314.63, 78.74, 306.63, 91.11, 293.53, 115.84, 253.88, 127.48, 233.88, 137.67, 228.06, 153.31, 199.69, 160.22, 190.23, 162.4, 177.86, 163.13, 175.31, 159.49, 170.95, 154.76, 172.77, 148.94, 159.31, 143.85, 156.04, 134.76, 152.03, 130.03, 141.12, 121.3, 130.21, 115.84, 117.48, 119.12, 106.56, 128.21, 93.47, 138.76, 82.92, 161.31, 76.37, 169.68, 78.19, 179.5, 85.1, 194.41, 99.29, 195.5, 100.38, 198.41, 102.56, 202.78, 88.38, 222.79, 71.64, 229.7, 71.28, 241.7, 74.19, 243.16, 88.38, 242.07, 103.65, 262.07, 104.75, 290.81, 114.2, 308.63, 131.66, 328.27, 146.58, 350.46, 177.13, 354.46, 184.04, 375.93, 213.51, 381.38, 229.51, 373.74, 246.61, 369.01, 258.98, 357.74, 276.8, 335.91, 277.89, 299.9, 263.71, 268.26, 241.15, 264.98, 232.42, 265.71, 270.25, 246.07, 319.36, 231.15, 333.55, 209.69, 367.01, 201.69, 375.01], [270.44, 295.35, 306.81, 328.82, 318.45, 347.37, 317.36, 361.19, 295.9, 369.92, 275.53, 375.01, 252.61, 386.65, 227.51, 390.29, 215.15, 384.47, 222.79, 375.74, 249.7, 359.37, 257.71, 343.0, 243.16, 332.46, 258.8, 309.17]], "area": 50529.98744999999, "iscrowd": 0, "image_id": 154424, "bbox": [34.36, 71.28, 347.02, 319.01], "category_id": 1, "id": 506803}, {"segmentation": [[257.65, 264.86, 269.34, 241.49, 263.26, 219.98, 286.63, 205.96, 275.41, 182.12, 277.28, 160.62, 294.11, 150.34, 310.94, 155.48, 318.42, 173.71, 315.14, 194.74, 342.72, 206.9, 359.08, 228.4, 364.22, 255.97, 346.93, 275.14, 279.62, 266.73, 257.18, 267.19]], "area": 7855.1257000000005, "iscrowd": 0, "image_id": 561406, "bbox": [257.18, 150.34, 107.04, 124.8], "category_id": 1, "id": 506843}, {"segmentation": [[20.18, 187.39, 44.68, 165.77, 67.75, 154.23, 109.55, 160.0, 148.47, 200.36, 155.68, 226.31, 161.44, 237.84, 161.44, 253.69, 161.44, 278.2, 165.77, 299.82, 170.09, 324.32, 185.95, 331.53, 207.57, 338.74, 229.19, 358.92, 246.49, 386.31, 258.02, 405.05, 263.78, 418.02, 263.78, 432.43, 263.78, 439.64, 283.96, 451.17, 276.76, 462.7, 268.11, 472.79, 260.9, 488.65, 247.93, 488.65, 214.77, 452.61, 207.57, 448.29, 197.48, 482.88, 193.15, 520.36, 187.39, 544.86, 193.15, 559.28, 207.57, 562.16, 221.98, 562.16, 227.75, 580.9, 243.6, 598.2, 250.81, 599.64, 269.55, 595.32, 286.85, 596.76, 311.35, 611.17, 321.44, 618.38, 314.23, 632.79, 7.21, 637.12, 10.09, 337.3, 10.09, 289.73, 12.97, 258.02, 18.74, 209.01]], "area": 93294.01389999999, "iscrowd": 0, "image_id": 216851, "bbox": [7.21, 154.23, 314.23, 482.89], "category_id": 1, "id": 507270}, {"segmentation": [[344.49, 48.57, 335.52, 40.98, 337.59, 30.62, 343.11, 27.17, 346.56, 25.79, 350.01, 24.41, 352.77, 17.51, 361.74, 25.79, 365.19, 29.93, 363.12, 39.6, 361.05, 42.36, 368.64, 48.57, 368.64, 58.92, 365.62, 60.28, 365.62, 65.95, 365.97, 72.34, 364.55, 76.24, 357.46, 75.89, 350.36, 72.69, 352.14, 65.6, 349.65, 56.37, 347.53, 50.7]], "area": 1074.8221000000005, "iscrowd": 0, "image_id": 353009, "bbox": [335.52, 17.51, 33.12, 58.73], "category_id": 1, "id": 508449}, {"segmentation": [[534.95, 199.75, 530.46, 198.04, 530.25, 193.98, 530.25, 189.29, 528.76, 185.02, 526.62, 181.6, 521.07, 180.53, 517.01, 181.39, 515.09, 184.38, 514.88, 190.14, 515.09, 193.56, 515.3, 195.05, 514.02, 196.33, 512.31, 196.97, 510.61, 197.61, 508.47, 196.12, 508.26, 191.85, 508.26, 186.08, 509.11, 181.17, 510.82, 178.82, 514.88, 176.69, 516.37, 174.98, 516.58, 172.42, 516.58, 169.22, 517.65, 166.01, 519.15, 164.09, 521.71, 161.1, 522.78, 160.46, 525.77, 161.32, 527.9, 163.45, 529.61, 165.59, 530.68, 167.51, 530.25, 171.78, 529.61, 173.91, 530.68, 176.26, 532.6, 178.61, 536.23, 181.81, 536.66, 185.23, 536.87, 188.22, 536.87, 190.57, 536.87, 191.64, 536.87, 196.76]], "area": 516.7048499999994, "iscrowd": 0, "image_id": 385701, "bbox": [508.26, 160.46, 28.61, 39.29], "category_id": 1, "id": 508592}, {"segmentation": [[470.27, 360.0, 471.35, 330.81, 470.27, 310.27, 472.43, 291.89, 477.84, 272.43, 484.32, 254.05, 491.89, 230.27, 494.05, 206.49, 490.81, 185.95, 474.59, 177.3, 462.7, 166.49, 461.62, 151.35, 455.14, 134.05, 446.49, 110.27, 435.68, 104.86, 412.97, 102.7, 395.68, 111.35, 394.59, 123.24, 396.76, 131.89, 396.76, 141.62, 396.76, 144.86, 401.08, 150.27, 406.49, 150.27, 410.81, 163.24, 412.97, 167.57, 407.57, 177.3, 406.49, 188.11, 403.24, 201.08, 397.84, 217.3, 393.51, 228.11, 387.03, 234.59, 378.38, 238.92, 369.73, 242.16, 367.57, 251.89, 366.49, 260.54, 367.57, 262.7, 377.3, 258.38, 380.54, 256.22, 390.27, 259.46, 396.76, 261.62, 402.16, 267.03, 404.32, 283.24, 405.41, 289.73, 408.65, 301.62, 408.65, 312.43, 410.81, 327.57, 410.81, 338.38, 410.81, 349.19, 411.89, 356.76, 434.59, 357.84, 442.16, 358.92, 451.89, 364.32]], "area": 18620.63315, "iscrowd": 0, "image_id": 451160, "bbox": [366.49, 102.7, 127.56, 261.62], "category_id": 1, "id": 508703}, {"segmentation": [[37.42, 73.73, 47.98, 55.49, 64.29, 46.86, 75.8, 46.86, 91.16, 46.86, 104.59, 47.82, 113.23, 51.66, 124.74, 59.33, 130.5, 62.21, 138.18, 69.89, 142.01, 83.32, 140.09, 102.51, 124.74, 134.18, 109.39, 161.04, 93.08, 176.4, 98.83, 184.07, 109.39, 193.67, 119.94, 208.06, 118.02, 232.05, 105.55, 279.07, 100.75, 344.32, 91.16, 367.35, 81.56, 383.66, 73.89, 392.3, 63.33, 394.22, 50.86, 392.3, 36.46, 384.62, 28.79, 379.82, 23.03, 396.13, 25.91, 422.04, 2.88, 422.04, 3.84, 129.38, 22.07, 132.26, 29.75, 132.26, 35.5, 126.5, 33.58, 111.15, 33.58, 94.84]], "area": 35183.87365, "iscrowd": 0, "image_id": 547693, "bbox": [2.88, 46.86, 139.13, 375.18], "category_id": 1, "id": 508704}, {"segmentation": [[339.26, 333.72, 343.82, 338.6, 345.45, 341.53, 343.49, 341.85, 340.24, 346.41, 339.59, 352.27, 339.26, 358.77, 345.45, 359.1, 350.0, 361.7, 351.63, 369.19, 348.38, 366.26, 344.8, 364.96, 338.61, 366.26, 338.94, 374.4, 340.24, 381.23, 336.01, 390.99, 331.78, 393.92, 328.85, 380.25, 326.9, 369.84, 325.6, 359.43, 327.55, 351.29, 332.76, 343.8, 332.1, 341.53, 331.45, 337.62, 333.73, 335.02]], "area": 701.9742499999995, "iscrowd": 0, "image_id": 308350, "bbox": [325.6, 333.72, 26.03, 60.2], "category_id": 1, "id": 508746}, {"segmentation": [[157.12, 443.96, 160.0, 423.78, 162.88, 396.4, 167.21, 363.24, 175.86, 340.18, 185.95, 315.68, 193.15, 298.38, 213.33, 292.61, 221.98, 296.94, 227.75, 302.7, 239.28, 305.59, 249.37, 321.44, 258.02, 334.41, 263.78, 348.83, 266.67, 376.22, 268.11, 397.84, 269.55, 409.37, 270.99, 420.9, 268.11, 439.64, 252.25, 458.38, 245.05, 478.56, 234.95, 500.18, 221.98, 523.24, 207.57, 539.1, 201.8, 541.98, 201.8, 517.48, 185.95, 485.77, 183.06, 480.0, 170.09, 452.61, 167.21, 445.41, 160.0, 435.32]], "area": 18076.41725, "iscrowd": 0, "image_id": 111759, "bbox": [157.12, 292.61, 113.87, 249.37], "category_id": 1, "id": 508798}, {"segmentation": [[253.32, 617.16, 269.35, 582.19, 265.95, 579.28, 255.27, 594.82, 249.92, 592.39, 247.01, 588.99, 263.52, 565.2, 260.12, 552.09, 256.72, 538.0, 262.06, 529.75, 261.58, 507.41, 279.54, 508.38, 282.46, 520.52, 286.83, 533.63, 290.71, 539.95, 304.79, 539.95, 312.56, 551.6, 299.45, 609.39, 291.2, 620.07, 294.6, 621.04, 296.54, 639.49, 281.0, 637.55, 277.6, 618.13, 273.72, 623.95, 276.15, 640.0, 256.72, 640.0, 253.81, 620.55]], "area": 5148.5547499999975, "iscrowd": 0, "image_id": 119093, "bbox": [247.01, 507.41, 65.55, 132.59], "category_id": 1, "id": 509489}, {"segmentation": [[475.3, 51.02, 483.02, 38.79, 494.61, 40.72, 499.11, 41.37, 483.67, 29.14, 470.15, 27.85, 464.36, 25.28, 437.34, 17.56, 425.11, 18.85, 414.17, 24.64, 383.93, 20.78, 378.14, 34.93, 385.86, 44.58, 396.8, 48.44, 401.95, 63.24, 416.1, 64.53, 410.96, 78.04, 385.86, 87.05, 380.07, 94.13, 363.99, 109.57, 357.55, 130.16, 353.69, 146.89, 349.19, 163.62, 357.55, 182.92, 360.77, 189.36, 356.26, 233.44, 354.33, 255.96, 350.47, 272.69, 346.61, 288.14, 343.4, 300.36, 345.33, 313.23, 354.98, 321.6, 363.99, 329.96, 366.56, 309.37, 376.21, 311.3, 373.64, 288.14, 372.35, 272.69, 373.64, 254.03, 376.21, 219.93, 381.36, 206.42, 392.94, 205.13, 407.1, 214.78, 407.1, 235.37, 400.66, 256.61, 396.8, 282.35, 397.44, 308.73, 392.94, 342.83, 391.65, 355.7, 410.31, 376.29, 427.04, 371.42, 439.91, 379.14, 448.92, 370.77, 448.92, 362.41, 445.06, 341.18, 443.77, 332.81, 443.13, 303.01, 457.93, 282.05, 466.94, 260.17, 471.44, 246.02, 472.08, 230.58, 472.08, 220.28, 472.08, 215.13, 465.65, 168.2, 457.93, 152.11, 454.71, 139.89, 454.71, 129.59, 460.5, 124.44, 469.51, 141.82, 473.37, 157.26, 474.66, 172.7, 474.66, 184.28, 469.51, 189.43, 472.73, 202.94, 477.23, 214.53, 488.81, 219.03, 490.1, 199.73, 493.32, 191.36, 487.53, 173.35, 488.17, 155.33, 488.17, 141.17, 488.17, 137.31, 481.74, 120.62, 477.88, 107.75, 483.02, 100.03, 484.95, 90.38, 482.38, 80.73, 479.16, 76.87, 480.45, 69.14, 475.95, 54.99, 475.3, 53.06]], "area": 32290.998799999994, "iscrowd": 0, "image_id": 276420, "bbox": [343.4, 17.56, 155.71, 361.58], "category_id": 1, "id": 509510}, {"segmentation": [[227.03, 217.3, 224.86, 204.32, 224.86, 178.38, 224.86, 163.24, 224.86, 149.19, 225.95, 138.38, 234.59, 118.92, 242.16, 102.7, 245.41, 101.62, 257.3, 108.11, 260.54, 123.24, 254.05, 137.3, 255.14, 154.59, 263.78, 176.22, 262.7, 195.68, 261.62, 205.41, 255.14, 222.7, 250.81, 221.62, 247.57, 210.81, 246.49, 191.35, 235.68, 211.89, 235.68, 215.14, 233.51, 221.62]], "area": 3413.629949999998, "iscrowd": 0, "image_id": 286359, "bbox": [224.86, 101.62, 38.92, 121.08], "category_id": 1, "id": 510024}, {"segmentation": [[226.51, 184.82, 235.19, 151.09, 249.65, 117.35, 296.88, 113.5, 321.94, 133.74, 323.86, 156.87, 322.9, 180.97, 317.12, 205.07, 319.05, 232.05, 320.97, 272.54, 327.72, 319.77, 349.89, 342.9, 354.71, 379.53, 322.9, 396.88, 326.76, 411.34, 323.86, 420.01, 157.11, 420.98, 142.65, 359.29, 158.08, 325.55, 158.08, 257.12, 171.57, 201.21, 200.49, 191.57]], "area": 45860.5741, "iscrowd": 0, "image_id": 547693, "bbox": [142.65, 113.5, 212.06, 307.48], "category_id": 1, "id": 510066}, {"segmentation": [[291.24, 354.55, 303.1, 338.37, 302.02, 311.4, 302.02, 296.3, 297.71, 287.67, 307.42, 267.18, 309.57, 242.37, 312.81, 222.95, 319.28, 205.69, 317.12, 191.67, 305.26, 212.16, 299.87, 224.03, 289.08, 233.74, 288.0, 232.66, 289.08, 219.72, 289.08, 211.09, 298.79, 189.51, 304.18, 176.57, 308.49, 166.86, 316.04, 162.55, 331.15, 152.84, 331.15, 143.13, 331.15, 135.58, 331.15, 131.27, 318.2, 122.64, 318.2, 122.64, 313.89, 120.48, 330.07, 120.48, 338.7, 111.85, 346.25, 102.14, 349.48, 106.46, 355.96, 99.99, 357.03, 125.87, 369.98, 130.19, 355.96, 136.66, 348.4, 148.52, 359.19, 156.07, 373.21, 174.41, 386.16, 232.66, 369.98, 240.21, 364.58, 282.28, 360.27, 310.32, 366.74, 340.52, 369.98, 356.7, 355.96, 354.55, 353.8, 337.29, 341.93, 311.4, 336.54, 304.93, 340.85, 300.61, 332.22, 274.73, 326.83, 294.14, 319.28, 297.38, 313.89, 335.13, 316.04, 340.52, 306.34, 356.7]], "area": 12469.478399999998, "iscrowd": 0, "image_id": 451160, "bbox": [288.0, 99.99, 98.16, 256.71], "category_id": 1, "id": 510113}, {"segmentation": [[197.89, 65.12, 236.67, 77.8, 251.58, 62.88, 279.92, 62.88, 292.6, 84.51, 285.14, 107.63, 285.89, 111.36, 323.92, 135.97, 335.85, 155.35, 314.97, 159.83, 300.8, 159.83, 291.11, 148.64, 262.77, 140.44, 230.7, 144.17, 186.7, 160.58, 190.43, 184.44, 190.43, 216.51, 186.7, 234.4, 185.21, 279.15, 181.48, 320.91, 181.48, 333.59, 185.21, 339.55, 212.06, 355.96, 211.31, 371.62, 196.4, 382.06, 148.67, 370.88, 149.42, 343.28, 152.4, 311.96, 145.69, 279.89, 150.91, 249.32, 137.49, 245.59, 136.32, 219.04, 124.01, 242.12, 116.32, 265.72, 113.24, 300.08, 105.03, 332.39, 106.06, 364.19, 113.24, 381.12, 108.11, 398.56, 71.18, 391.38, 73.75, 362.65, 80.41, 333.42, 81.44, 282.13, 90.16, 232.89, 86.57, 194.42, 91.7, 151.34, 92.21, 140.05, 84.52, 126.72, 84.52, 100.05, 94.26, 86.71, 123.5, 47.22, 156.32, 57.48, 179.92, 62.61]], "area": 37633.889899999995, "iscrowd": 0, "image_id": 566166, "bbox": [71.18, 47.22, 264.67, 351.34], "category_id": 1, "id": 510155}, {"segmentation": [[115.06, 630.93, 123.69, 547.52, 129.44, 498.62, 123.69, 466.98, 116.49, 442.53, 129.44, 390.75, 129.44, 357.67, 110.74, 303.02, 100.67, 295.83, 77.66, 291.52, 77.66, 290.08, 87.73, 275.7, 89.17, 255.56, 89.17, 239.74, 73.35, 210.98, 66.16, 206.66, 53.21, 206.66, 23.01, 209.54, 18.7, 228.23, 28.76, 267.07, 43.15, 271.38, 43.15, 285.76, 18.7, 292.95, 20.13, 428.14, 44.58, 580.59, 64.72, 623.74]], "area": 35593.757999999994, "iscrowd": 0, "image_id": 90582, "bbox": [18.7, 206.66, 110.74, 424.27], "category_id": 1, "id": 510190}, {"segmentation": [[227.95, 146.05, 216.57, 152.18, 213.95, 152.18, 209.57, 164.43, 211.32, 174.93, 219.2, 181.93, 218.32, 183.68, 213.07, 185.43, 208.7, 190.68, 197.32, 199.43, 190.32, 210.81, 188.57, 223.06, 191.19, 239.69, 194.7, 248.44, 194.7, 259.81, 192.94, 273.82, 192.94, 282.57, 193.82, 293.94, 194.7, 299.19, 194.7, 322.82, 195.57, 335.07, 200.82, 357.83, 202.57, 359.58, 201.7, 370.08, 194.7, 388.45, 193.82, 397.2, 193.82, 409.46, 201.7, 425.21, 203.45, 429.58, 197.32, 433.08, 195.57, 439.21, 216.57, 440.08, 221.82, 435.71, 214.82, 420.83, 215.7, 402.46, 216.57, 381.45, 219.2, 364.83, 224.45, 351.7, 230.57, 371.83, 226.2, 395.45, 227.07, 410.33, 227.95, 424.33, 227.07, 434.83, 226.2, 439.21, 227.07, 444.46, 233.2, 449.71, 253.33, 448.84, 260.33, 445.34, 259.45, 438.33, 250.7, 433.08, 250.7, 403.33, 251.58, 363.95, 257.7, 335.95, 262.95, 307.07, 262.95, 293.94, 262.95, 271.19, 260.33, 265.07, 263.83, 262.44, 277.83, 268.57, 285.7, 264.19, 290.08, 253.69, 286.58, 240.56, 279.58, 230.06, 274.33, 217.81, 258.58, 202.06, 244.58, 197.68, 237.57, 184.56, 245.45, 184.56, 243.7, 160.93, 235.82, 151.3, 227.07, 148.68]], "area": 17115.050599999995, "iscrowd": 0, "image_id": 244520, "bbox": [188.57, 146.05, 101.51, 303.66], "category_id": 1, "id": 510218}, {"segmentation": [[436.91, 166.96, 439.93, 155.37, 439.43, 150.83, 434.39, 146.8, 431.36, 144.28, 429.12, 143.24, 427.13, 142.91, 424.8, 144.91, 425.46, 149.56, 425.8, 152.56, 424.8, 155.55, 424.8, 158.54, 426.46, 161.54, 428.79, 163.53, 429.46, 164.53, 431.12, 166.19, 433.11, 169.85, 436.44, 167.86, 436.77, 167.86]], "area": 275.83185000000003, "iscrowd": 0, "image_id": 13258, "bbox": [424.8, 142.91, 15.13, 26.94], "category_id": 1, "id": 510904}, {"segmentation": [[331.38, 253.55, 331.38, 249.11, 330.11, 245.93, 329.79, 243.08, 331.38, 238.32, 331.69, 229.43, 332.64, 224.04, 334.23, 220.55, 337.4, 216.42, 342.48, 213.57, 344.39, 212.3, 345.97, 210.71, 346.61, 210.39, 351.05, 207.22, 354.54, 204.68, 355.49, 203.73, 358.67, 202.78, 363.43, 203.41, 364.7, 203.41, 367.23, 208.17, 365.65, 211.03, 361.52, 214.52, 359.62, 215.47, 357.4, 216.74, 356.44, 218.01, 355.49, 218.96, 354.22, 219.6, 352.32, 220.87, 351.37, 221.18, 349.78, 221.18, 350.1, 224.04, 349.78, 225.94, 348.19, 226.89, 349.15, 229.75, 349.46, 233.56, 349.46, 236.1, 349.78, 237.37, 350.73, 239.27, 354.86, 241.81, 357.71, 243.71, 359.62, 244.98, 361.52, 247.2, 361.84, 249.11, 360.89, 249.43, 358.98, 250.06, 358.67, 250.69, 357.4, 251.96, 357.4, 252.28, 353.59, 250.69, 350.73, 249.43, 346.61, 248.79, 346.29, 251.65, 345.34, 253.87, 344.39, 254.82, 343.43, 256.72, 341.21, 256.09, 337.09, 254.82, 333.28, 254.19]], "area": 1009.1782999999996, "iscrowd": 0, "image_id": 16125, "bbox": [329.79, 202.78, 37.44, 53.94], "category_id": 1, "id": 511311}, {"segmentation": [[262.9, 321.44, 277.28, 271.12, 280.36, 250.58, 268.04, 219.77, 267.01, 205.39, 275.23, 204.37, 279.33, 199.23, 281.39, 194.1, 287.55, 179.72, 284.47, 147.88, 275.23, 123.24, 274.2, 117.07, 264.96, 110.91, 251.61, 106.8, 241.34, 103.72, 238.26, 99.62, 237.23, 95.51, 241.34, 88.32, 242.36, 80.1, 238.26, 62.64, 233.12, 53.4, 231.07, 48.27, 224.91, 43.13, 217.72, 43.13, 208.47, 45.19, 203.34, 49.29, 198.2, 52.38, 195.12, 55.46, 193.07, 60.59, 193.07, 64.7, 194.1, 72.91, 194.1, 78.05, 197.18, 85.24, 202.31, 94.48, 204.37, 97.56, 207.45, 102.7, 204.37, 111.94, 192.04, 120.16, 174.58, 127.34, 172.53, 135.56, 170.48, 145.83, 163.29, 161.23, 158.15, 169.45, 155.07, 174.58, 156.1, 182.8, 161.23, 196.15, 163.29, 203.34, 175.61, 210.53, 182.8, 210.53, 184.85, 207.45, 185.88, 207.45, 180.75, 237.23, 178.69, 267.01, 179.72, 288.58, 183.83, 347.11, 209.5, 341.98, 219.77, 334.79, 225.93, 316.31, 226.96, 325.55, 235.18, 332.74, 261.88, 335.82, 265.98, 330.68, 263.93, 322.47]], "area": 25296.449350000003, "iscrowd": 0, "image_id": 139571, "bbox": [155.07, 43.13, 132.48, 303.98], "category_id": 1, "id": 511596}, {"segmentation": [[258.5, 191.55, 256.96, 186.54, 256.96, 184.03, 257.54, 181.33, 258.89, 178.45, 259.27, 177.1, 259.85, 174.98, 260.24, 172.86, 259.66, 170.93, 259.66, 168.81, 260.04, 167.46, 259.85, 165.54, 258.5, 163.03, 256.77, 160.72, 256.38, 160.14, 255.42, 158.6, 255.23, 158.22, 254.65, 157.83, 253.88, 157.06, 252.53, 157.06, 250.6, 159.95, 250.6, 161.68, 250.6, 162.84, 249.83, 164.0, 248.87, 164.57, 248.68, 166.31, 248.68, 167.66, 250.41, 169.2, 250.99, 171.7, 251.18, 174.98, 250.41, 178.06, 250.41, 180.76, 250.41, 183.07, 250.8, 184.8, 250.8, 186.34, 250.6, 187.88, 250.6, 189.04, 250.6, 190.2, 250.6, 191.35, 250.02, 191.93, 249.64, 192.7, 249.25, 192.89, 248.68, 193.47, 249.83, 194.24, 250.41, 194.05, 251.57, 193.28, 252.14, 192.7, 252.34, 191.93, 252.34, 190.0, 252.34, 189.04, 252.34, 187.69, 252.53, 186.34, 253.3, 184.03, 253.49, 182.88, 253.69, 182.49, 255.03, 184.42, 255.03, 186.73, 255.03, 189.04, 255.03, 189.62, 255.03, 191.16, 255.23, 191.93, 255.23, 192.89, 257.54, 193.09, 257.92, 192.51, 257.73, 191.74]], "area": 258.9031, "iscrowd": 0, "image_id": 311522, "bbox": [248.68, 157.06, 11.56, 37.18], "category_id": 1, "id": 511774}, {"segmentation": [[146.04, 28.45, 161.21, 42.67, 167.85, 65.43, 161.21, 67.33, 163.11, 77.76, 182.08, 88.19, 203.89, 110.95, 221.91, 148.89, 220.96, 163.11, 222.85, 201.04, 232.34, 233.29, 224.75, 255.1, 231.39, 268.37, 219.06, 273.11, 217.16, 298.72, 258.89, 316.74, 282.6, 328.12, 298.72, 329.07, 295.87, 360.36, 271.22, 360.36, 267.42, 349.93, 251.3, 336.65, 193.46, 316.74, 181.13, 283.55, 178.28, 266.48, 173.54, 267.42, 173.54, 267.42, 155.52, 296.82, 166.9, 330.96, 171.64, 373.64, 182.08, 398.29, 116.64, 405.88, 117.59, 400.19, 148.89, 381.22, 130.87, 330.01, 127.07, 293.98, 132.76, 249.41, 139.4, 226.65, 149.83, 190.61, 146.99, 181.13, 119.49, 212.42, 111.9, 227.6, 96.73, 209.58, 116.64, 194.4, 129.92, 170.7, 121.38, 128.02, 120.44, 112.85, 131.82, 91.04, 126.13, 70.18, 122.33, 47.42, 128.02, 34.14, 136.56, 31.29, 146.04, 31.29]], "area": 27055.24985, "iscrowd": 0, "image_id": 422341, "bbox": [96.73, 28.45, 201.99, 377.43], "category_id": 1, "id": 512123}, {"segmentation": [[465.25, 216.71, 474.64, 219.53, 475.11, 227.98, 476.05, 235.03, 490.13, 240.19, 492.95, 250.05, 482.15, 266.95, 478.87, 270.24, 470.88, 263.67, 471.82, 252.4, 462.9, 247.7, 457.74, 252.4, 455.86, 267.89, 447.88, 265.54, 450.7, 248.17, 456.8, 238.31, 461.49, 235.03, 461.49, 227.04, 459.62, 218.12, 464.78, 217.18]], "area": 1166.76695, "iscrowd": 0, "image_id": 385701, "bbox": [447.88, 216.71, 45.07, 53.53], "category_id": 1, "id": 512317}, {"segmentation": [[610.29, 413.48, 589.08, 421.0, 588.4, 429.9, 613.03, 433.32, 628.08, 427.85, 640.0, 427.85, 634.24, 407.32, 629.45, 398.43, 624.66, 371.06, 618.5, 356.69, 628.08, 357.37, 626.71, 373.11, 628.77, 384.06, 640.0, 386.11, 639.71, 259.53, 621.24, 247.22, 612.35, 242.43, 610.98, 230.8, 602.08, 220.54, 588.4, 217.11, 578.14, 218.48, 571.98, 223.27, 567.19, 227.38, 564.45, 234.9, 569.93, 242.43, 568.56, 247.22, 566.5, 250.64, 569.24, 259.53, 572.66, 265.01, 572.66, 271.85, 578.82, 267.06, 583.61, 259.53, 593.87, 258.85, 587.03, 266.38, 586.35, 277.32, 589.08, 293.06, 593.19, 307.43, 597.98, 318.38, 600.71, 319.74, 604.13, 327.95, 604.82, 332.74, 586.35, 340.27, 586.35, 353.27, 586.35, 384.74, 587.71, 400.48, 604.82, 401.16], [638.34, 396.37, 632.87, 399.79, 634.92, 409.37, 640.0, 410.06]], "area": 9934.203100000002, "iscrowd": 0, "image_id": 70288, "bbox": [564.45, 217.11, 75.55, 216.21], "category_id": 1, "id": 512386}, {"segmentation": [[319.9, 110.33, 304.94, 91.28, 285.21, 81.08, 283.85, 71.55, 287.25, 68.15, 283.85, 55.91, 277.72, 46.38, 268.88, 49.78, 263.44, 53.87, 262.76, 65.43, 264.8, 75.64, 264.8, 81.76, 260.04, 89.24, 250.51, 95.36, 245.75, 100.81, 243.03, 108.29, 243.03, 111.01, 262.76, 115.09, 283.17, 113.73, 298.13, 111.01, 314.46, 110.33, 315.14, 110.33]], "area": 2413.49725, "iscrowd": 0, "image_id": 216851, "bbox": [243.03, 46.38, 76.87, 68.71], "category_id": 1, "id": 512830}, {"segmentation": [[486.5, 129.75, 482.17, 136.25, 482.17, 142.75, 482.17, 148.17, 485.42, 154.67, 485.42, 157.92, 482.17, 165.51, 480.0, 174.18, 475.67, 175.26, 472.42, 180.68, 470.25, 186.09, 463.75, 187.18, 463.75, 192.6, 464.83, 202.35, 469.16, 214.27, 471.33, 217.52, 480.0, 212.1, 483.25, 300.95, 491.92, 316.12, 497.34, 337.79, 497.34, 344.29, 488.67, 352.96, 482.17, 354.04, 477.83, 358.37, 482.17, 360.54, 508.17, 363.79, 520.09, 362.71, 528.76, 365.96, 541.76, 364.88, 537.43, 347.54, 535.26, 341.04, 528.76, 317.2, 525.51, 293.36, 523.34, 257.61, 526.59, 243.52, 528.76, 229.44, 532.01, 192.6, 534.18, 183.93, 534.18, 170.93, 523.34, 160.09, 517.92, 153.59, 513.59, 149.26, 508.17, 146.0, 510.34, 138.42, 509.26, 125.42, 501.67, 122.17, 490.84, 126.5, 481.08, 131.92]], "area": 10783.363099999997, "iscrowd": 0, "image_id": 410755, "bbox": [463.75, 122.17, 78.01, 243.79], "category_id": 1, "id": 513770}, {"segmentation": [[35.12, 191.49, 35.94, 188.23, 36.92, 186.28, 37.03, 182.23, 40.24, 179.26, 42.0, 175.28, 44.43, 170.75, 51.8, 170.76, 55.32, 171.9, 55.93, 163.14, 56.46, 161.98, 57.64, 156.82, 58.99, 155.6, 57.76, 152.74, 58.51, 150.83, 59.19, 148.1, 58.93, 145.4, 61.09, 144.12, 61.42, 140.92, 65.1, 140.57, 67.15, 143.35, 69.31, 145.06, 70.25, 151.17, 74.24, 152.01, 76.15, 153.41, 76.73, 156.19, 75.43, 157.92, 79.8, 162.73, 79.75, 169.54, 80.91, 177.34, 76.52, 185.11, 73.62, 184.9, 64.49, 184.95, 58.75, 187.97, 56.9, 185.18, 54.69, 185.22, 55.81, 188.95, 53.15, 187.87, 52.07, 189.71, 50.35, 188.91, 52.83, 184.72, 51.79, 182.63, 49.28, 182.64, 44.99, 188.77, 45.82, 192.09, 35.49, 191.86]], "area": 1141.4563000000005, "iscrowd": 0, "image_id": 355111, "bbox": [35.12, 140.57, 45.79, 51.52], "category_id": 1, "id": 513839}, {"segmentation": [[337.11, 86.07, 299.2, 114.76, 291.0, 137.3, 285.88, 182.39, 291.0, 193.66, 297.15, 198.78, 302.28, 206.98, 300.23, 231.57, 302.28, 323.79, 305.35, 335.07, 323.79, 336.09, 356.58, 288.96, 361.71, 288.96, 364.78, 288.96, 333.02, 335.07, 408.84, 346.34, 414.99, 251.04, 392.45, 272.56, 382.2, 282.81, 376.05, 284.86, 359.66, 287.93, 360.68, 278.71, 376.05, 266.41, 382.2, 261.29, 390.4, 243.87, 409.87, 217.23, 412.94, 213.13, 419.09, 203.91, 426.26, 194.69, 430.36, 186.49, 436.51, 164.97, 441.63, 131.16, 446.75, 113.74, 434.46, 100.42, 419.09, 88.12, 410.89, 84.02, 403.72, 78.9, 396.54, 75.83, 407.82, 48.16, 393.47, 18.44, 372.98, 10.25, 355.56, 17.42, 349.41, 22.54, 340.19, 34.84, 336.09, 46.11, 336.09, 59.43, 348.39, 81.97]], "area": 33785.54875, "iscrowd": 0, "image_id": 139571, "bbox": [285.88, 10.25, 160.87, 336.09], "category_id": 1, "id": 514189}, {"segmentation": [[279.44, 322.8, 278.24, 342.08, 278.24, 385.44, 279.44, 391.46, 254.15, 414.35, 238.49, 446.87, 233.67, 480.59, 251.74, 491.43, 274.62, 497.46, 284.26, 503.48, 279.44, 511.91, 255.35, 511.91, 230.06, 505.89, 228.85, 504.68, 237.29, 519.14, 222.83, 522.75, 216.81, 520.34, 204.76, 511.91, 190.31, 508.3, 179.47, 504.68, 174.65, 499.87, 183.08, 486.62, 190.31, 466.14, 199.95, 450.48, 207.17, 431.21, 208.38, 408.32, 216.81, 374.6, 220.42, 362.55, 209.58, 349.3, 209.58, 331.24, 203.56, 305.94, 190.31, 291.49, 178.27, 252.94, 189.11, 234.88, 197.54, 171.04, 197.54, 144.54, 203.56, 114.43, 204.76, 112.02, 236.08, 83.11, 243.31, 80.7, 251.74, 80.7, 255.35, 55.41, 256.56, 51.79, 263.78, 42.16, 289.08, 31.32, 309.56, 34.93, 321.6, 63.84, 317.99, 79.5, 315.58, 86.72, 313.17, 90.34, 313.17, 97.56, 308.35, 99.97, 302.33, 101.18, 291.49, 108.4, 286.67, 114.43, 280.65, 114.43, 274.62, 114.43, 273.42, 119.24, 279.44, 130.09, 279.44, 145.74, 272.22, 172.24, 271.01, 193.92, 271.01, 226.44, 277.03, 267.4, 291.49, 290.28, 293.9, 305.94, 286.67, 307.15, 280.65, 303.53, 280.65, 314.37]], "area": 34282.29230000001, "iscrowd": 0, "image_id": 422744, "bbox": [174.65, 31.32, 146.95, 491.43], "category_id": 1, "id": 515761}, {"segmentation": [[420.67, 331.9, 389.39, 321.11, 373.21, 318.95, 384.0, 308.16, 391.55, 302.77, 389.39, 300.61, 386.16, 304.93, 384.0, 306.01, 378.61, 306.01, 373.21, 265.02, 384.0, 244.52, 400.18, 240.21, 402.34, 239.13, 403.42, 230.5, 401.26, 224.03, 399.1, 217.56, 409.89, 206.77, 410.97, 200.3, 415.28, 194.91, 431.46, 181.96, 437.93, 173.33, 443.33, 162.55, 454.11, 159.31, 461.66, 164.7, 467.06, 175.49, 468.13, 178.73, 465.98, 180.88, 465.98, 180.88, 467.06, 188.43, 472.45, 192.75, 475.69, 195.99, 477.84, 198.14, 477.84, 201.38, 482.16, 207.85, 481.08, 212.16, 478.92, 216.48, 477.84, 219.72, 475.69, 221.87, 475.69, 225.11, 474.61, 229.42, 471.37, 233.74, 470.29, 243.45, 470.29, 248.84, 468.13, 253.15, 465.98, 257.47, 465.98, 260.7, 464.9, 261.78, 459.51, 261.78, 450.88, 261.78, 440.09, 262.86, 432.54, 266.1, 424.99, 291.99, 423.91, 300.61, 423.91, 304.93, 423.91, 315.72, 423.91, 324.34, 427.15, 328.66, 428.22, 331.9, 424.99, 335.13]], "area": 9456.580849999997, "iscrowd": 0, "image_id": 253143, "bbox": [373.21, 159.31, 108.95, 175.82], "category_id": 1, "id": 515820}, {"segmentation": [[255.07, 445.34, 264.71, 438.91, 272.74, 397.94, 260.69, 341.7, 266.31, 313.58, 265.51, 290.28, 239.8, 319.2, 231.77, 315.99, 232.57, 303.13, 259.08, 272.6, 268.72, 269.39, 260.69, 258.14, 261.49, 243.68, 268.72, 233.23, 283.99, 232.43, 292.83, 238.05, 296.04, 252.52, 294.43, 263.76, 304.88, 266.98, 309.7, 304.74, 334.61, 321.61, 320.95, 329.65, 301.67, 311.17, 307.29, 361.78, 295.24, 385.89, 293.63, 447.75, 263.1, 444.54]], "area": 8466.93005, "iscrowd": 0, "image_id": 545806, "bbox": [231.77, 232.43, 102.84, 215.32], "category_id": 1, "id": 516307}, {"segmentation": [[156.76, 68.79, 184.09, 67.36, 195.6, 90.37, 204.22, 113.38, 230.11, 120.57, 238.74, 136.39, 248.81, 175.22, 248.81, 191.04, 240.18, 195.36, 245.93, 212.61, 247.37, 234.19, 253.12, 260.07, 207.1, 227.0, 202.79, 216.93, 142.38, 225.56, 116.49, 241.38, 102.11, 258.64, 90.61, 250.01, 106.43, 231.31, 143.82, 215.49, 161.08, 199.67, 161.08, 179.54, 159.64, 150.77, 169.71, 133.51, 155.33, 114.82]], "area": 12210.7657, "iscrowd": 0, "image_id": 463224, "bbox": [90.61, 67.36, 162.51, 192.71], "category_id": 1, "id": 516423}, {"segmentation": [[450.33, 159.78, 460.15, 148.48, 468.49, 139.15, 472.91, 125.4, 476.84, 123.44, 469.48, 114.6, 464.57, 100.36, 460.15, 89.06, 459.66, 73.84, 460.15, 60.09, 459.66, 42.91, 461.13, 23.26, 472.42, 16.88, 473.9, 8.04, 484.7, 2.15, 494.03, 1.66, 489.12, 17.37, 498.45, 33.58, 499.43, 50.27, 503.85, 67.46, 509.74, 83.66, 513.18, 95.45, 509.74, 100.85, 504.83, 93.48, 500.9, 80.23, 495.5, 74.33, 494.52, 126.88, 484.7, 137.19, 481.26, 156.83, 482.24, 176.96, 489.12, 181.38, 477.33, 180.4, 469.48, 181.38, 457.2, 180.89, 450.82, 168.62]], "area": 5506.67375, "iscrowd": 0, "image_id": 200910, "bbox": [450.33, 1.66, 62.85, 179.72], "category_id": 1, "id": 516456}, {"segmentation": [[494.01, 166.44, 497.89, 153.74, 507.07, 145.27, 523.3, 139.62, 540.59, 138.21, 546.94, 138.21, 557.52, 144.56, 567.41, 153.03, 569.88, 165.73, 568.82, 169.62, 577.99, 179.5, 579.76, 184.08, 606.22, 192.55, 618.22, 196.79, 620.34, 200.67, 628.8, 203.14, 640.0, 214.43, 639.39, 261.36, 640.0, 329.46, 617.86, 332.64, 639.74, 357.34, 639.39, 401.8, 640.0, 420.86, 603.04, 417.33, 597.75, 409.56, 597.05, 404.27, 611.16, 394.74, 585.4, 372.51, 552.58, 345.34, 540.94, 334.76, 535.65, 321.7, 538.12, 311.47, 544.47, 305.82, 543.06, 301.94, 544.47, 295.59, 554.0, 283.94, 562.11, 280.41, 575.17, 275.12, 561.05, 259.24, 557.17, 267.71, 539.53, 275.83, 527.53, 282.18, 495.07, 284.65, 459.43, 285.71, 447.43, 286.77, 418.14, 303.35, 395.91, 296.65, 395.56, 273.36, 394.5, 264.89, 404.38, 255.01, 428.38, 253.6, 437.2, 261.36, 441.78, 259.24, 453.43, 267.71, 460.84, 268.42, 468.25, 269.12, 521.18, 253.6, 526.83, 230.31, 520.47, 223.6, 523.65, 221.49, 524.36, 212.66, 524.36, 208.43, 518.71, 205.61, 508.48, 218.66, 506.01, 216.19, 506.01, 202.78, 497.18, 187.26, 495.77, 180.91, 498.6, 177.38, 506.36, 174.2, 506.01, 169.62]], "area": 27113.64889999999, "iscrowd": 0, "image_id": 502517, "bbox": [394.5, 138.21, 245.5, 282.65], "category_id": 1, "id": 516473}, {"segmentation": [[101.6, 362.49, 101.41, 350.67, 99.2, 346.06, 101.41, 340.7, 102.52, 337.93, 104.73, 335.35, 107.5, 335.53, 108.8, 339.41, 111.19, 347.53, 109.35, 351.04, 108.8, 355.47, 107.87, 365.07, 104.73, 364.52, 105.1, 362.3, 103.44, 365.26, 101.41, 365.26]], "area": 228.6166, "iscrowd": 0, "image_id": 448061, "bbox": [99.2, 335.35, 11.99, 29.91], "category_id": 1, "id": 516708}, {"segmentation": [[397.79, 193.42, 357.46, 160.32, 357.46, 160.32, 342.42, 151.29, 330.38, 123.6, 334.59, 112.77, 332.18, 104.34, 340.01, 85.68, 331.58, 47.77, 302.7, 23.78, 302.7, 23.78, 266.67, 22.34, 266.67, 22.34, 240.72, 32.43, 240.72, 32.43, 241.32, 44.47, 222.06, 67.34, 225.07, 73.96, 215.44, 72.76, 215.44, 72.76, 212.43, 73.96, 210.03, 82.99, 210.03, 82.99, 210.03, 82.99, 211.83, 86.6, 211.83, 86.6, 212.75, 86.41, 219.01, 90.68, 219.01, 90.68, 222.15, 90.68, 217.87, 94.95, 217.87, 94.95, 216.74, 97.8, 217.87, 99.22, 217.87, 99.22, 219.3, 100.36, 219.3, 100.36, 219.3, 100.36, 220.15, 100.36, 221.29, 110.9, 221.01, 122.29, 221.86, 124.28, 221.58, 128.55, 220.44, 133.1, 221.86, 137.37, 221.86, 137.37, 225.56, 137.37, 234.1, 141.08, 234.1, 141.08, 242.36, 143.92, 246.63, 147.62, 249.48, 154.74, 249.48, 154.74, 249.76, 154.74, 255.74, 166.41, 257.73, 173.25, 259.73, 179.23, 260.3, 185.49, 251.47, 194.03, 247.48, 197.16, 240.65, 196.31, 240.65, 196.31, 233.25, 201.15, 227.27, 199.15, 225.85, 202.57, 220.72, 203.42, 217.59, 205.7, 211.04, 206.56, 211.04, 206.56, 205.92, 207.98, 197.38, 208.26, 190.83, 206.56, 180.86, 204.85, 173.46, 200.86, 168.62, 197.16, 151.54, 192.61, 137.3, 184.35, 99.72, 154.74, 78.09, 138.8, 47.91, 131.4, 48.76, 138.8, 59.3, 143.92, 62.71, 147.34, 32.82, 140.22, 22.29, 139.65, 19.44, 141.64, 20.29, 146.48, 23.99, 147.05, 30.26, 147.91, 36.81, 149.62, 33.96, 153.03, 33.85, 155.96, 34.02, 158.21, 34.37, 159.94, 36.44, 160.97, 38.0, 160.97, 39.38, 160.8, 39.72, 160.8, 40.07, 160.8, 40.93, 160.8, 41.62, 160.8, 43.35, 160.97, 44.04, 160.97, 43.35, 163.22, 45.25, 168.75, 48.37, 169.44, 51.48, 169.44, 51.65, 169.44, 51.82, 169.44, 54.24, 173.94, 60.46, 181.71, 60.46, 181.71, 60.46, 181.71, 87.43, 182.75, 91.23, 182.41, 110.24, 198.83, 117.5, 204.7, 141.01, 223.37, 142.22, 228.55, 141.7, 234.6, 144.81, 238.41, 146.37, 239.27, 148.09, 243.76, 148.09, 243.76, 150.69, 246.7, 151.38, 252.58, 154.14, 254.65, 154.14, 254.65, 157.08, 256.04, 158.46, 256.04, 166.59, 257.25, 177.3, 259.49, 182.32, 259.49, 192.0, 274.18, 186.81, 290.6, 189.06, 294.41, 198.56, 302.7, 202.71, 307.02, 221.9, 330.53, 221.9, 330.36, 230.71, 340.21, 252.46, 373.87, 267.46, 367.74, 281.78, 350.01, 281.97, 344.16, 286.87, 339.46, 288.04, 332.61, 292.54, 331.04, 297.83, 321.64, 296.07, 318.31, 299.99, 309.5, 306.45, 307.54, 319.35, 314.58, 325.53, 326.94, 324.76, 336.98, 345.61, 361.7, 347.93, 362.47, 266.05, 373.28, 249.86, 375.8, 240.86, 377.95, 230.87, 383.43, 220.88, 393.61, 216.97, 408.1, 217.95, 423.96, 194.84, 438.06, 189.16, 447.66, 164.3, 478.99, 159.6, 485.64, 147.26, 516.78, 126.85, 536.94, 105.23, 536.94, 78.74, 530.92, 61.89, 536.34, 61.89, 536.34, 61.64, 543.87, 59.63, 548.4, 59.63, 548.4, 63.15, 551.92, 63.4, 552.17, 60.89, 557.44, 60.89, 557.44, 63.15, 559.96, 68.68, 565.24, 73.7, 571.02, 73.7, 571.02, 110.64, 574.03, 119.19, 590.87, 119.19, 590.87, 147.59, 590.11, 147.59, 590.11, 172.21, 577.8, 172.21, 577.8, 189.05, 560.71, 203.38, 545.38, 235.29, 506.18, 241.24, 529.86, 243.02, 533.74, 249.42, 552.42, 249.42, 552.42, 256.87, 565.01, 254.43, 575.77, 253.92, 578.44, 247.34, 579.03, 247.34, 579.03, 242.5, 580.65, 242.5, 580.65, 235.73, 583.23, 231.54, 587.1, 226.38, 591.29, 225.09, 599.03, 231.54, 604.51, 232.5, 604.84, 248.95, 605.8, 260.89, 606.45, 281.53, 608.06, 309.91, 622.9, 310.56, 623.22, 329.59, 623.22, 330.23, 618.38, 330.23, 618.38, 331.2, 598.71, 329.26, 592.58, 331.2, 586.77, 331.2, 586.77, 321.85, 567.74, 323.46, 564.52, 323.46, 564.52, 318.94, 537.43, 313.66, 504.32, 313.66, 504.32, 309.96, 489.51, 369.18, 494.64, 369.18, 494.64, 379.72, 489.23, 379.72, 489.23, 393.1, 480.12, 409.32, 474.42, 424.13, 473.85, 425.0, 227.03, 425.0, 227.03, 415.36, 210.26, 415.36, 210.26, 404.03, 200.02]], "area": 106034.83499999993, "iscrowd": 0, "image_id": 405121, "bbox": [19.44, 22.34, 405.56, 600.88], "category_id": 1, "id": 517209}, {"segmentation": [[397.89, 219.77, 421.24, 207.8, 425.43, 193.43, 431.41, 181.46, 440.99, 179.66, 443.98, 174.88, 443.98, 160.51, 446.98, 145.54, 448.77, 126.99, 453.56, 118.01, 467.33, 108.43, 493.67, 104.24, 506.24, 112.62, 515.82, 135.97, 515.82, 147.94, 511.63, 158.71, 511.63, 168.29, 503.85, 174.88, 518.81, 182.66, 527.79, 207.8, 537.37, 234.14, 534.97, 244.92, 530.78, 249.11, 521.21, 250.9, 510.43, 243.12, 506.24, 238.93, 438.0, 228.15, 431.41, 228.15, 420.64, 229.35, 422.43, 236.53, 414.05, 231.75, 413.45, 231.75, 413.45, 239.53, 408.07, 237.73, 401.48, 234.14, 391.3, 229.95, 393.7, 222.77, 398.49, 220.37]], "area": 11007.8355, "iscrowd": 0, "image_id": 434047, "bbox": [391.3, 104.24, 146.07, 146.66], "category_id": 1, "id": 517375}, {"segmentation": [[411.61, 36.94, 431.76, 48.45, 469.18, 60.93, 484.53, 45.57, 500.84, 46.53, 517.15, 61.89, 512.35, 76.28, 512.35, 86.83, 532.5, 94.51, 562.24, 117.53, 571.84, 149.2, 579.51, 165.51, 593.91, 181.82, 589.11, 193.33, 572.8, 185.66, 566.08, 172.22, 556.49, 148.24, 546.89, 136.72, 531.54, 126.17, 520.99, 156.87, 524.82, 185.66, 539.22, 220.2, 545.93, 252.82, 545.93, 276.8, 538.26, 293.11, 535.38, 306.55, 547.85, 320.94, 547.85, 334.37, 533.46, 329.57, 516.19, 309.43, 519.07, 281.6, 506.59, 255.7, 494.12, 232.67, 493.16, 244.18, 484.53, 248.98, 492.2, 280.64, 487.41, 301.75, 494.12, 326.7, 513.31, 338.21, 505.64, 345.89, 485.49, 345.89, 474.93, 335.33, 473.97, 305.59, 464.38, 269.13, 467.26, 239.39, 448.07, 207.72, 444.23, 187.57, 450.95, 166.47, 458.62, 139.6, 460.54, 108.9, 457.66, 83.95, 452.86, 72.44, 429.84, 59.97, 408.73, 51.33, 402.01, 42.7, 407.77, 34.06]], "area": 20936.857849999997, "iscrowd": 0, "image_id": 289693, "bbox": [402.01, 34.06, 191.9, 311.83], "category_id": 1, "id": 517488}, {"segmentation": [[156.51, 199.53, 160.63, 186.66, 178.65, 177.91, 181.22, 166.06, 186.37, 127.45, 187.91, 124.88, 196.67, 121.27, 205.42, 130.54, 208.51, 137.75, 213.14, 157.31, 217.26, 171.73, 226.01, 187.17, 231.16, 202.62, 226.01, 220.12, 224.98, 226.82, 230.13, 238.14, 231.16, 344.21, 226.01, 378.7, 210.57, 377.67, 203.36, 367.37, 197.7, 356.56, 201.82, 338.54, 205.93, 326.19, 195.12, 323.61, 193.06, 342.66, 190.49, 363.26, 185.34, 382.82, 174.53, 390.54, 151.36, 390.03, 145.18, 386.42, 156.51, 369.95, 164.23, 364.29, 162.17, 339.06, 165.77, 320.52, 177.62, 315.37, 193.06, 310.74, 203.36, 305.08, 213.14, 298.9, 220.87, 292.72, 223.44, 287.57, 223.95, 254.11, 223.44, 240.72, 218.29, 229.39, 201.82, 217.55, 190.49, 209.83, 185.34, 207.25, 182.77, 203.65, 169.89, 201.07, 159.08, 201.07, 153.93, 201.07, 155.48, 192.32]], "area": 8977.003300000004, "iscrowd": 0, "image_id": 280765, "bbox": [145.18, 121.27, 85.98, 269.27], "category_id": 1, "id": 517928}, {"segmentation": [[339.46, 278.38, 343.78, 283.78, 378.38, 309.73, 378.38, 341.08, 361.08, 347.57, 357.84, 338.92, 338.38, 346.49, 326.49, 338.92, 314.59, 330.27, 308.11, 340.0, 280.0, 337.84, 264.86, 343.24, 252.97, 325.95, 275.68, 287.03, 287.57, 280.54, 287.57, 236.22, 303.78, 215.68, 335.14, 222.16, 344.86, 239.46]], "area": 9437.378650000002, "iscrowd": 0, "image_id": 176587, "bbox": [252.97, 215.68, 125.41, 131.89], "category_id": 1, "id": 518514}, {"segmentation": [[293.62, 120.9, 275.39, 98.83, 295.54, 63.33, 315.69, 24.95, 327.21, 1.92, 404.93, 0.0, 397.25, 53.73, 386.7, 89.24, 415.49, 101.71, 408.77, 111.31, 378.06, 114.19, 366.55, 114.19, 355.99, 115.15, 364.63, 81.56, 372.31, 34.54, 355.03, 40.3, 322.41, 77.72, 309.93, 112.27, 299.38, 128.58, 288.82, 128.58]], "area": 8656.5668, "iscrowd": 0, "image_id": 249531, "bbox": [275.39, 0.0, 140.1, 128.58], "category_id": 1, "id": 519235}, {"segmentation": [[508.93, 190.61, 506.04, 195.43, 501.22, 198.32, 500.26, 205.07, 501.22, 211.81, 496.4, 214.7, 490.62, 222.42, 485.8, 237.84, 473.27, 243.62, 475.19, 250.37, 478.09, 253.26, 481.94, 256.15, 487.72, 257.12, 494.47, 252.3, 499.29, 250.37, 497.36, 290.85, 497.36, 300.49, 492.54, 317.84, 485.8, 335.19, 485.8, 346.76, 484.83, 357.36, 484.83, 364.11, 484.83, 373.75, 487.72, 381.46, 491.58, 381.46, 495.44, 376.64, 499.29, 361.22, 499.29, 358.32, 499.29, 352.54, 499.29, 341.94, 511.82, 315.91, 514.71, 309.17, 516.64, 317.84, 516.64, 330.37, 516.64, 343.87, 514.71, 354.47, 514.71, 366.03, 514.71, 378.56, 520.5, 391.1, 523.39, 393.02, 518.57, 397.84, 525.32, 399.77, 528.21, 382.42, 530.14, 351.58, 533.99, 332.3, 544.59, 301.45, 544.59, 288.92, 544.59, 281.21, 549.41, 271.57, 553.27, 262.9, 548.45, 247.48, 537.85, 227.24, 526.28, 213.74, 519.53, 195.43, 509.89, 187.72]], "area": 7848.9536499999995, "iscrowd": 0, "image_id": 279401, "bbox": [473.27, 187.72, 80.0, 212.05], "category_id": 1, "id": 519550}, {"segmentation": [[12.45, 0.0, 18.19, 24.89, 22.02, 45.0, 26.81, 67.98, 7.66, 106.27, 4.79, 120.63, 0.96, 131.16, 0.0, 227.86, 22.02, 280.52, 22.98, 303.5, 68.93, 296.79, 103.4, 293.92, 107.23, 240.31, 113.93, 277.65, 124.46, 289.13, 170.42, 280.52, 183.82, 269.99, 185.74, 247.97, 187.65, 225.95, 196.27, 206.8, 157.01, 135.95, 149.35, 111.06, 157.97, 92.87, 176.16, 91.91, 196.27, 105.31, 202.97, 109.14, 216.37, 105.31, 229.78, 93.83, 220.2, 88.08, 217.33, 79.46, 208.71, 14.36, 206.8, 0.0, 14.36, 0.0]], "area": 51842.664000000004, "iscrowd": 0, "image_id": 424536, "bbox": [0.0, 0.0, 229.78, 303.5], "category_id": 1, "id": 519725}, {"segmentation": [[640.0, 24.82, 629.42, 24.82, 617.85, 26.75, 615.92, 30.6, 617.85, 44.1, 622.67, 62.41, 624.6, 67.23, 619.78, 78.8, 606.28, 92.29, 605.32, 99.04, 616.88, 103.86, 624.6, 110.61, 626.52, 123.14, 640.0, 121.21]], "area": 2110.9134000000004, "iscrowd": 0, "image_id": 53615, "bbox": [605.32, 24.82, 34.68, 98.32], "category_id": 1, "id": 519745}, {"segmentation": [[364.58, 468.13, 345.17, 429.3, 344.09, 379.69, 262.11, 334.38, 257.8, 310.65, 256.72, 290.16, 257.8, 203.87, 258.88, 192.0, 313.89, 144.54, 300.94, 121.89, 296.63, 104.63, 302.02, 89.53, 323.6, 76.58, 335.46, 77.66, 352.72, 78.74, 371.06, 102.47, 369.98, 151.01, 392.63, 176.9, 403.42, 227.6, 409.89, 294.47, 436.85, 326.83, 434.7, 415.28, 431.46, 473.53, 402.34, 472.45, 399.1, 423.91, 405.57, 375.37, 407.73, 355.96, 352.72, 336.54, 378.61, 349.48, 380.76, 433.62, 393.71, 469.21, 394.79, 472.45]], "area": 41807.86334999999, "iscrowd": 0, "image_id": 392725, "bbox": [256.72, 76.58, 180.13, 396.95], "category_id": 1, "id": 519997}, {"segmentation": [[252.75, 342.75, 278.6, 315.94, 289.13, 340.83, 302.54, 309.24, 271.9, 273.82, 285.3, 207.76, 291.05, 154.14, 290.09, 148.4, 304.45, 134.99, 300.62, 101.48, 292.01, 92.87, 295.05, 80.29, 288.56, 68.94, 289.37, 87.59, 282.08, 91.64, 282.89, 121.64, 266.67, 104.61, 269.11, 100.56, 263.43, 86.78, 248.84, 82.72, 235.87, 93.26, 229.38, 118.39, 223.71, 131.37, 208.3, 126.5, 215.6, 79.48, 209.93, 73.81, 201.01, 77.86, 195.33, 94.89, 195.33, 102.99, 195.33, 104.61, 188.85, 121.64, 187.23, 138.66, 198.58, 152.44, 200.2, 150.82, 205.06, 134.61, 208.3, 132.99, 212.36, 141.09, 212.36, 148.39, 213.17, 152.44, 220.46, 154.06, 224.52, 162.17, 224.52, 171.09, 224.52, 180.01, 226.14, 189.73, 231.0, 208.38, 231.0, 233.51, 222.09, 269.18, 222.09, 269.18, 262.62, 317.82]], "area": 14995.517400000006, "iscrowd": 0, "image_id": 237841, "bbox": [187.23, 68.94, 117.22, 273.81], "category_id": 1, "id": 520059}, {"segmentation": [[396.05, 275.52, 403.59, 253.99, 408.97, 218.48, 430.49, 195.87, 443.41, 163.59, 456.32, 157.13, 474.62, 187.26, 471.39, 205.56, 484.3, 236.77, 475.7, 243.23, 447.71, 273.36, 456.32, 293.81, 431.57, 284.13, 391.75, 284.13, 394.98, 272.29], [482.15, 260.45, 473.54, 265.83, 472.47, 275.52, 462.78, 288.43, 474.62, 294.89, 482.15, 275.52, 483.23, 260.45]], "area": 6957.801549999998, "iscrowd": 0, "image_id": 561406, "bbox": [391.75, 157.13, 92.55, 137.76], "category_id": 1, "id": 520088}, {"segmentation": [[226.34, 162.85, 236.81, 143.17, 237.64, 134.38, 243.92, 131.03, 257.32, 128.1, 258.15, 104.66, 248.53, 82.06, 236.39, 62.38, 224.25, 55.27, 205.41, 52.34, 188.67, 48.15, 168.57, 52.34, 156.43, 64.48, 145.55, 77.45, 139.27, 89.17, 136.34, 102.99, 137.18, 116.8, 138.01, 131.03, 138.01, 144.85, 138.85, 156.99, 143.87, 166.62, 131.73, 180.43, 115.83, 177.92, 99.92, 180.43, 71.04, 176.66, 46.34, 189.64, 39.64, 214.34, 44.66, 298.9, 55.97, 362.11, 59.32, 374.25, 64.76, 381.78, 63.5, 427.0, 218.39, 427.0, 219.64, 408.15, 233.46, 375.08, 239.32, 358.76, 298.76, 356.66, 304.62, 308.52, 304.62, 296.8, 287.46, 269.18, 278.25, 236.1, 282.43, 235.27, 282.43, 231.5, 280.76, 229.83, 277.83, 222.29, 277.41, 221.87, 291.64, 225.22, 292.06, 221.45, 289.55, 214.34, 284.53, 211.41, 278.67, 202.62, 275.32, 198.85, 274.9, 196.76, 285.78, 195.5, 286.62, 193.41, 280.76, 185.87, 262.76, 182.94, 259.83, 181.27, 253.55, 175.41, 243.08, 173.31, 233.88, 175.83, 227.6, 178.76, 225.92, 185.87, 217.13, 196.76, 219.64, 202.2, 197.87, 195.92, 209.18, 190.9, 215.46, 178.76]], "area": 67684.23135, "iscrowd": 0, "image_id": 252702, "bbox": [39.64, 48.15, 264.98, 378.85], "category_id": 1, "id": 520256}, {"segmentation": [[416.08, 279.14, 480.54, 284.1, 507.82, 258.07, 520.21, 197.32, 504.1, 176.25, 502.24, 159.51, 503.48, 148.36, 501.62, 130.38, 481.16, 128.52, 471.25, 134.1, 468.15, 159.51, 473.11, 170.05, 460.71, 178.73, 440.88, 207.86, 434.68, 223.97, 439.02, 240.71, 421.04, 241.33, 417.32, 242.57, 402.45, 244.43, 367.12, 269.22, 323.73, 302.69, 314.43, 312.61, 336.12, 318.81, 343.56, 326.25, 379.51, 289.68, 370.22, 346.08, 364.02, 352.28, 390.05, 351.04, 406.17, 288.44, 408.64, 278.52, 413.6, 277.9]], "area": 14149.1048, "iscrowd": 0, "image_id": 169686, "bbox": [314.43, 128.52, 205.78, 223.76], "category_id": 1, "id": 520798}, {"segmentation": [[25.34, 258.25, 19.01, 253.5, 16.63, 255.88, 3.17, 225.78, 8.71, 194.1, 19.01, 171.93, 36.43, 168.76, 39.6, 164.8, 34.85, 152.92, 30.09, 154.51, 24.55, 154.51, 23.76, 143.42, 34.85, 129.96, 49.1, 129.16, 53.06, 129.16, 59.4, 134.71, 63.36, 137.08, 63.36, 140.25, 61.77, 142.63, 61.77, 147.38, 66.52, 152.92, 64.15, 159.26, 65.73, 168.76, 72.07, 170.34, 76.82, 167.97, 87.91, 180.64, 99.79, 197.27, 99.79, 239.24, 96.62, 247.16, 93.45, 251.12, 91.07, 259.83, 97.41, 271.71, 93.45, 276.47, 91.07, 279.63, 85.53, 279.63, 80.78, 279.63, 75.23, 272.51, 63.36, 274.88, 59.4, 274.88, 57.02, 274.88, 50.68, 261.42, 50.68, 255.08, 39.6, 259.04, 34.05, 257.46, 30.09, 259.04, 26.13, 259.04, 26.13, 259.83]], "area": 9567.83525, "iscrowd": 0, "image_id": 169686, "bbox": [3.17, 129.16, 96.62, 150.47], "category_id": 1, "id": 520913}, {"segmentation": [[170.12, 210.94, 164.95, 219.31, 157.57, 221.03, 153.39, 224.47, 152.16, 230.62, 154.87, 234.56, 170.61, 241.69, 172.09, 238.25, 179.47, 238.74, 185.87, 224.23, 192.75, 226.93, 198.17, 229.15, 205.3, 228.9, 214.9, 224.47, 221.54, 224.23, 221.79, 230.38, 220.31, 239.48, 220.55, 250.06, 217.85, 254.98, 218.09, 258.92, 214.9, 264.82, 237.04, 275.89, 241.96, 274.42, 242.45, 270.23, 235.81, 263.84, 235.81, 259.65, 238.51, 259.16, 240.97, 213.4, 238.27, 209.71, 230.89, 206.02, 219.32, 203.56, 222.52, 194.95, 226.21, 191.01, 229.9, 186.34, 239.01, 185.85, 244.67, 186.59, 253.52, 188.8, 264.35, 190.03, 275.66, 188.31, 286.73, 187.32, 290.42, 181.42, 296.58, 180.93, 301.74, 179.7, 300.27, 174.78, 294.85, 174.28, 289.93, 173.79, 285.5, 175.51, 267.05, 172.56, 256.23, 170.35, 241.96, 166.9, 237.28, 163.21, 232.36, 160.02, 237.78, 152.88, 238.51, 147.71, 237.28, 140.83, 233.84, 136.89, 224.74, 131.23, 219.32, 132.21, 213.67, 136.15, 210.71, 141.56, 203.09, 148.21, 199.4, 149.44, 184.39, 147.96, 170.86, 149.19, 160.03, 147.71, 146.26, 147.71, 138.63, 145.5, 130.02, 144.27, 126.82, 139.6, 125.59, 140.83, 125.59, 143.04, 120.92, 139.84, 113.54, 142.3, 109.85, 144.52, 111.57, 151.65, 112.8, 153.86, 122.64, 152.88, 129.28, 156.57, 142.57, 161.98, 151.42, 166.17, 164.71, 164.44, 163.97, 166.17, 160.03, 168.13, 163.97, 180.19, 175.04, 185.11, 176.76, 183.63, 177.5, 185.11, 174.55, 187.57, 170.61, 190.77, 167.17, 197.66, 167.17, 204.55]], "area": 8724.037349999999, "iscrowd": 0, "image_id": 125135, "bbox": [109.85, 131.23, 191.89, 144.66], "category_id": 1, "id": 521237}, {"segmentation": [[428.87, 144.61, 429.15, 140.26, 432.68, 137.81, 434.58, 140.26, 435.67, 144.61, 441.65, 148.69, 447.91, 153.58, 448.45, 156.57, 446.82, 156.03, 444.37, 153.04, 441.38, 152.77, 438.66, 151.41, 441.65, 156.85, 440.02, 156.57, 438.12, 154.13, 427.52, 148.69, 427.79, 145.43, 430.51, 144.34]], "area": 145.1871, "iscrowd": 0, "image_id": 41577, "bbox": [427.52, 137.81, 20.93, 19.04], "category_id": 1, "id": 521275}, {"segmentation": [[466.39, 404.21, 507.98, 424.31, 515.74, 383.06, 532.66, 384.47, 561.21, 375.31, 580.95, 342.17], [418.0, 231.43, 438.33, 199.84, 466.34, 181.17, 466.34, 174.03, 460.85, 170.18, 463.05, 164.14, 463.32, 153.98, 464.97, 141.34, 472.94, 127.61, 480.63, 118.82, 495.18, 113.87, 504.52, 116.35, 515.78, 118.27, 518.26, 128.98, 523.75, 145.19, 519.63, 160.84, 534.19, 167.16, 541.05, 171.83, 554.24, 177.05, 555.33, 182.54, 558.36, 189.41, 569.34, 198.75, 573.46, 216.32, 575.93, 231.7, 574.56, 241.59, 576.21, 263.02, 577.03, 276.75, 578.41, 285.81, 584.17, 295.98, 582.8, 300.64, 574.29, 297.62, 569.34, 288.56, 566.6, 281.42, 558.08, 278.4, 556.98, 267.96, 548.74, 265.76, 544.07, 262.19, 541.88, 260.27, 542.43, 251.48, 539.95, 251.21, 532.26, 253.68, 528.97, 256.97, 517.98, 260.54, 508.37, 264.66, 505.35, 268.51, 499.3, 268.78, 496.01, 263.57, 493.54, 259.17, 490.24, 255.6, 486.94, 251.48, 477.88, 254.23, 471.56, 257.8, 465.79, 255.33, 463.6, 256.7, 462.77, 260.82, 464.42, 267.41, 460.85, 270.43, 455.36, 270.43, 444.1, 267.41, 445.2, 263.29, 441.08, 265.76, 437.5, 265.21, 433.38, 264.66, 428.99, 270.16, 421.03, 239.12]], "area": 17635.389400000004, "iscrowd": 0, "image_id": 130949, "bbox": [418.0, 113.87, 166.17, 310.44], "category_id": 1, "id": 521655}, {"segmentation": [[216.35, 184.76, 221.14, 188.59, 225.92, 189.55, 239.33, 193.38, 239.33, 199.12, 239.33, 210.61, 237.41, 215.39, 237.41, 223.05, 254.64, 219.22, 260.39, 213.48, 264.22, 201.99, 258.47, 191.46, 244.11, 186.67, 242.2, 182.84, 238.37, 172.31, 238.37, 155.08, 242.2, 142.64, 246.03, 113.92, 246.98, 106.26, 235.5, 72.76, 227.84, 59.35, 218.27, 47.87, 185.72, 26.8, 177.1, 25.85, 174.23, 28.72, 172.31, 29.68, 170.4, 52.65, 157.0, 46.91, 156.04, 46.91, 141.68, 45.95, 136.89, 57.44, 140.72, 69.88, 148.38, 80.41, 155.08, 84.24, 160.83, 86.16, 172.31, 86.16, 179.02, 86.16, 182.84, 86.16, 188.59, 95.73, 189.55, 96.69, 180.93, 116.79, 174.23, 118.71, 170.4, 126.36, 166.57, 133.07, 166.57, 134.98, 168.49, 148.38, 180.93, 161.78, 180.93, 176.14, 186.67, 188.59, 189.55, 199.12, 173.27, 224.97, 180.93, 234.54, 205.82, 229.75, 218.27, 215.39]], "area": 12741.49845, "iscrowd": 0, "image_id": 289693, "bbox": [136.89, 25.85, 127.33, 208.69], "category_id": 1, "id": 521923}, {"segmentation": [[278.13, 110.32, 270.58, 123.9, 275.11, 142.77, 271.34, 148.05, 267.57, 155.59, 263.04, 161.63, 229.84, 198.59, 223.81, 212.17, 214.76, 219.72, 206.46, 233.3, 198.91, 247.63, 191.37, 268.75, 186.09, 281.58, 178.54, 297.42, 173.26, 317.79, 173.26, 325.34, 172.51, 336.65, 180.81, 342.69, 206.46, 344.2, 220.04, 317.79, 225.32, 301.2, 227.58, 280.07, 233.62, 252.16, 242.67, 253.67, 265.3, 266.49, 275.11, 266.49, 281.9, 268.75, 293.22, 271.02, 329.43, 277.81, 340.75, 277.81, 353.57, 277.81, 359.61, 268.75, 361.12, 255.17, 364.89, 248.39, 367.15, 258.95, 372.43, 274.79, 376.2, 283.84, 376.96, 289.12, 379.98, 301.2, 382.24, 311.76, 384.5, 320.06, 402.61, 336.65, 408.64, 336.65, 419.96, 336.65, 431.28, 338.16, 438.82, 338.16, 414.68, 297.42, 413.93, 292.9, 408.64, 280.07, 402.61, 261.21, 402.61, 237.07, 397.33, 221.98, 388.28, 206.89, 368.66, 185.77, 359.61, 175.96, 350.55, 168.42, 338.48, 149.55, 329.43, 136.73, 321.89, 125.41, 314.34, 115.61, 308.31, 106.55, 296.99, 104.29, 290.2, 104.29, 284.16, 105.04, 272.85, 108.82]], "area": 26395.344849999998, "iscrowd": 0, "image_id": 429144, "bbox": [172.51, 104.29, 266.31, 239.91], "category_id": 1, "id": 522293}, {"segmentation": [[393.51, 635.68, 392.42, 628.62, 388.69, 620.34, 386.62, 615.79, 391.59, 601.3, 394.49, 591.37, 388.28, 583.5, 386.62, 571.91, 384.14, 551.63, 383.31, 548.32, 383.72, 533.0, 376.69, 526.79, 369.65, 525.55, 365.92, 528.45, 367.17, 532.17, 364.68, 534.24, 363.44, 536.73, 365.92, 542.11, 370.89, 547.49, 368.41, 557.42, 370.89, 572.74, 366.34, 573.15, 363.86, 577.71, 368.82, 578.95, 372.96, 577.71, 372.13, 588.88, 362.61, 612.07, 361.37, 616.2, 384.14, 633.59, 387.45, 638.14, 385.79, 640.0, 392.0, 640.0, 395.32, 640.0, 396.97, 636.07, 394.49, 634.83]], "area": 2066.8169500000013, "iscrowd": 0, "image_id": 119093, "bbox": [361.37, 525.55, 35.6, 114.45], "category_id": 1, "id": 523609}, {"segmentation": [[162.17, 418.03, 167.28, 396.75, 164.0, 392.55, 167.37, 382.65, 171.24, 374.21, 118.49, 314.68, 99.68, 287.55, 91.43, 262.36, 90.79, 250.51, 100.15, 235.82, 128.3, 215.08, 141.1, 200.2, 125.05, 185.59, 131.64, 145.82, 129.13, 144.96, 133.26, 131.55, 145.16, 97.31, 185.19, 86.73, 190.63, 83.36, 183.89, 78.12, 182.2, 55.5, 174.93, 50.19, 181.02, 40.94, 168.6, 39.64, 183.86, 34.67, 183.84, 21.55, 195.92, 14.35, 213.01, 15.25, 226.12, 23.35, 231.39, 30.54, 229.21, 45.45, 236.42, 48.83, 238.82, 54.74, 234.62, 63.85, 222.0, 65.95, 221.3, 69.46, 219.6, 80.67, 223.05, 88.75, 228.49, 88.04, 258.29, 101.64, 266.14, 111.21, 270.39, 125.32, 275.3, 141.14, 276.4, 153.76, 277.79, 158.3, 273.18, 158.66, 281.93, 175.68, 278.2, 196.8, 278.2, 207.55, 274.71, 208.95, 292.0, 219.98, 307.0, 233.23, 311.25, 244.48, 302.53, 272.18, 289.78, 297.53, 254.35, 343.54, 238.3, 368.09, 240.2, 383.3, 233.68, 379.23, 231.29, 389.1, 231.29, 399.51, 227.38, 405.52, 217.44, 414.84, 198.73, 401.15, 196.21, 397.24, 193.28, 400.18, 192.44, 417.35, 191.97, 420.01, 160.59, 420.01, 164.08, 418.96]], "area": 49165.02004999999, "iscrowd": 0, "image_id": 36113, "bbox": [90.79, 14.35, 220.46, 405.66], "category_id": 1, "id": 524809}, {"segmentation": [[275.23, 270.07, 252.18, 271.17, 248.15, 263.48, 252.91, 251.04, 253.27, 237.5, 262.79, 229.44, 265.35, 220.66, 273.4, 220.29, 274.5, 222.86, 275.23, 233.47, 279.62, 240.79, 278.53, 229.08, 283.65, 227.25, 285.48, 233.1, 283.28, 250.67, 282.55, 252.87, 274.87, 249.94, 278.16, 259.45, 289.14, 269.34, 281.09, 271.17, 272.3, 271.17], [261.69, 274.46, 266.81, 280.31, 265.72, 298.98, 278.89, 299.71, 274.5, 293.12, 278.89, 278.48, 280.72, 279.58, 282.19, 298.25, 292.8, 299.71, 289.51, 289.46, 290.6, 276.29, 264.25, 274.09]], "area": 1809.8648500000002, "iscrowd": 0, "image_id": 531032, "bbox": [248.15, 220.29, 44.65, 79.42], "category_id": 1, "id": 524984}, {"segmentation": [[424.0, 411.7, 416.02, 385.76, 460.92, 343.86, 440.96, 305.95, 425.0, 274.02, 366.14, 295.97, 349.18, 310.94, 331.22, 298.96, 330.22, 288.99, 369.13, 275.02, 401.06, 252.07, 380.11, 244.09, 355.17, 247.09, 339.2, 232.12, 351.18, 216.16, 375.12, 230.13, 407.04, 224.14, 404.05, 216.16, 393.08, 208.18, 390.08, 190.22, 387.09, 166.28, 406.05, 150.31, 421.01, 143.33, 447.95, 154.3, 446.95, 192.22, 514.79, 258.06, 540.73, 305.95, 539.73, 337.87, 507.81, 393.74, 496.83, 400.73, 514.79, 420.68, 472.89, 419.68, 454.93, 404.72, 453.93, 420.68, 421.01, 420.68]], "area": 25594.59135, "iscrowd": 0, "image_id": 151655, "bbox": [330.22, 143.33, 210.51, 277.35], "category_id": 1, "id": 525025}, {"segmentation": [[8.67, 32.53, 32.77, 78.8, 34.7, 138.56, 0.96, 162.66, 0.0, 43.13], [4.82, 206.03, 27.95, 221.45, 51.09, 313.02, 49.16, 416.16, 8.67, 418.08]], "area": 10967.73075, "iscrowd": 0, "image_id": 252702, "bbox": [0.0, 32.53, 51.09, 385.55], "category_id": 1, "id": 525091}, {"segmentation": [[554.43, 297.78, 549.03, 269.73, 539.33, 250.32, 529.62, 239.53, 501.57, 260.03, 465.98, 281.6, 451.96, 281.6, 446.56, 276.21, 453.03, 257.87, 494.02, 228.75, 516.67, 213.64, 488.63, 212.57, 472.45, 209.33, 465.98, 172.66, 460.58, 160.79, 456.27, 144.61, 457.35, 131.67, 481.08, 113.33, 506.97, 101.47, 567.37, 141.38, 610.52, 175.89, 632.09, 212.57, 640.0, 236.3, 638.56, 348.48, 640.0, 381.91, 625.62, 409.96, 618.07, 399.17, 601.89, 371.13, 587.87, 353.87, 570.61, 348.48, 555.51, 331.22, 516.67, 317.2, 483.24, 317.2, 470.29, 310.72, 472.45, 304.25, 527.46, 298.86, 543.64, 306.41]], "area": 31025.84435, "iscrowd": 0, "image_id": 561406, "bbox": [446.56, 101.47, 193.44, 308.49], "category_id": 1, "id": 525376}, {"segmentation": [[314.16, 134.37, 358.27, 118.66, 401.64, 146.33, 400.14, 153.06, 409.86, 116.42, 409.86, 102.22, 410.61, 88.01, 379.21, 50.63, 338.83, 48.39, 309.68, 73.06, 297.71, 101.47, 302.2, 137.36], [309.93, 238.99, 420.28, 274.5, 431.8, 286.97, 440.43, 379.09, 351.2, 365.65, 301.3, 363.73, 301.3, 345.5, 301.3, 319.59, 306.1, 308.08, 294.58, 266.82, 292.66, 254.34, 283.07, 238.99, 304.18, 234.19], [395.33, 250.51, 374.22, 241.87, 369.43, 231.32, 401.09, 225.56, 416.44, 239.95]], "area": 23656.597899999997, "iscrowd": 0, "image_id": 252702, "bbox": [283.07, 48.39, 157.36, 330.7], "category_id": 1, "id": 525887}, {"segmentation": [[460.83, 419.69, 472.78, 386.85, 517.56, 344.05, 503.63, 295.28, 493.68, 265.42, 518.56, 222.62, 557.38, 208.68, 591.22, 221.62, 611.12, 245.51, 613.11, 275.37, 614.11, 299.26, 585.25, 325.14, 635.01, 352.01, 633.02, 363.95, 588.23, 395.8, 582.26, 418.7, 463.82, 416.71]], "area": 21925.7899, "iscrowd": 0, "image_id": 571516, "bbox": [460.83, 208.68, 174.18, 211.01], "category_id": 1, "id": 525940}, {"segmentation": [[325.39, 285.66, 316.14, 278.55, 313.66, 264.69, 314.72, 251.53, 317.21, 242.28, 319.34, 220.95, 311.52, 242.28, 308.68, 255.08, 307.61, 249.75, 309.03, 242.28, 311.17, 219.88, 316.14, 209.22, 321.48, 206.02, 322.9, 203.17, 318.63, 196.42, 317.21, 191.79, 324.32, 187.88, 334.63, 188.59, 333.57, 195.35, 331.43, 202.1, 339.61, 211.35, 347.79, 218.82, 350.99, 222.73, 348.86, 228.06, 341.39, 224.51, 337.83, 222.73, 337.83, 231.97, 337.83, 242.64, 337.83, 250.82, 337.12, 267.17, 336.06, 276.06, 334.99, 287.09, 331.43, 291.71, 329.66, 298.11]], "area": 2227.9543999999996, "iscrowd": 0, "image_id": 126978, "bbox": [307.61, 187.88, 43.38, 110.23], "category_id": 1, "id": 526502}, {"segmentation": [[319.8, 170.42, 312.37, 175.93, 311.67, 181.44, 310.8, 186.6, 312.28, 187.56, 313.94, 186.86, 314.29, 184.94, 315.26, 179.69, 317.79, 179.34, 317.79, 183.27, 317.44, 188.35, 315.52, 192.37, 313.94, 195.69, 312.9, 203.56, 312.37, 205.66, 315.17, 206.36, 315.17, 204.78, 316.31, 199.8, 318.58, 196.13, 320.5, 191.41, 322.16, 188.17, 324.44, 187.56, 325.92, 191.67, 327.85, 195.25, 329.68, 199.19, 330.03, 202.68, 331.17, 205.48, 334.23, 207.06, 336.68, 206.71, 335.98, 202.42, 333.09, 199.27, 332.92, 195.51, 332.22, 190.44, 331.61, 188.87, 330.82, 183.01, 331.08, 177.15, 329.68, 172.78, 327.58, 170.51, 326.18, 169.81, 326.8, 166.4, 324.7, 163.6, 320.41, 164.3, 319.89, 166.93]], "area": 488.32444999999996, "iscrowd": 0, "image_id": 84653, "bbox": [310.8, 163.6, 25.88, 43.46], "category_id": 1, "id": 526556}, {"segmentation": [[504.8, 131.96, 502.47, 135.89, 501.58, 142.69, 501.04, 155.39, 432.0, 159.33, 432.53, 154.85, 433.07, 145.37, 428.78, 145.55, 422.7, 145.91, 420.01, 143.59, 421.27, 127.31, 432.18, 99.76, 441.66, 85.1, 446.99, 80.72, 453.83, 78.59, 453.83, 76.82, 453.59, 72.57, 454.42, 71.63, 454.54, 67.97, 453.48, 64.43, 451.94, 61.01, 451.47, 59.36, 448.87, 59.59, 447.34, 58.53, 449.23, 52.75, 449.7, 49.09, 449.46, 45.43, 450.53, 38.47, 452.89, 31.27, 458.31, 25.72, 464.22, 23.6, 475.78, 22.66, 485.81, 27.02, 489.11, 30.33, 493.13, 30.68, 498.08, 33.87, 500.92, 38.12, 505.28, 51.1, 504.93, 53.46, 497.02, 55.35, 489.23, 59.24, 481.09, 67.5, 476.84, 74.23, 476.49, 81.43, 479.2, 86.26, 480.85, 96.18, 482.15, 100.66, 482.51, 104.67, 488.64, 109.04, 491.71, 116.95, 493.01, 122.96, 497.49, 123.79, 499.03, 122.14, 505.16, 127.57, 506.23, 129.69], [430.81, 172.07, 430.81, 178.31, 432.44, 181.83, 429.18, 211.66, 440.3, 206.5, 458.46, 198.37, 483.68, 188.07, 495.88, 168.01], [499.48, 204.04, 479.44, 216.56, 465.31, 220.49, 431.69, 229.08, 434.01, 244.64, 434.73, 270.4, 436.87, 275.23, 438.13, 278.45, 436.52, 296.51, 434.91, 325.49, 429.9, 329.96, 425.07, 331.93, 424.0, 335.68, 414.52, 343.55, 404.32, 345.52, 396.45, 348.38, 399.49, 355.18, 409.15, 355.9, 449.93, 352.14, 451.0, 349.82, 451.0, 338.19, 454.58, 317.8, 462.09, 298.48, 466.03, 288.11, 464.6, 277.37, 467.46, 274.87, 476.05, 276.12, 478.55, 288.82, 481.77, 301.16, 499.84, 284.35, 501.45, 268.97, 501.45, 268.97, 498.05, 261.99, 496.26, 244.64, 498.58, 217.63]], "area": 14968.864649999998, "iscrowd": 0, "image_id": 422341, "bbox": [396.45, 22.66, 109.78, 333.24], "category_id": 1, "id": 527005}, {"segmentation": [[362.44, 62.74, 356.96, 62.21, 357.14, 57.09, 358.2, 52.67, 359.61, 50.73, 362.09, 50.2, 366.68, 53.55, 366.68, 59.92, 370.93, 64.51, 375.34, 66.28, 379.06, 69.28, 379.41, 74.23, 378.35, 78.3, 375.17, 76.53, 369.86, 70.17, 367.57, 65.4]], "area": 207.6510500000002, "iscrowd": 0, "image_id": 269986, "bbox": [356.96, 50.2, 22.45, 28.1], "category_id": 1, "id": 527137}, {"segmentation": [[31.99, 280.86, 25.43, 274.3, 20.18, 274.3, 14.94, 267.74, 9.69, 259.88, 1.82, 253.32, 5.76, 237.58, 21.5, 237.58, 29.36, 246.76, 46.42, 246.76, 56.91, 261.19, 62.16, 266.43, 70.03, 274.3, 77.9, 283.48, 77.9, 287.42, 77.9, 292.67, 80.52, 304.47, 79.21, 320.21, 79.21, 337.26, 79.21, 351.69, 76.58, 364.81, 66.09, 363.49, 59.53, 339.88, 56.91, 320.21, 55.6, 309.72, 46.42, 293.98, 42.48, 292.67, 30.68, 288.73]], "area": 3851.2686999999996, "iscrowd": 0, "image_id": 111759, "bbox": [1.82, 237.58, 78.7, 127.23], "category_id": 1, "id": 527698}, {"segmentation": [[294.58, 422.2, 334.88, 393.42, 371.35, 374.22, 412.61, 419.32, 461.54, 421.24, 462.5, 403.97, 461.54, 329.13, 453.87, 289.78, 443.31, 256.2, 425.08, 221.66, 413.57, 186.15, 390.54, 142.01, 368.47, 104.59, 324.33, 83.48, 329.13, 72.93, 329.13, 50.86, 339.68, 57.57, 341.6, 54.69, 326.25, 39.34, 320.49, 21.11, 302.26, 15.35, 287.87, 12.47, 276.35, 19.19, 265.8, 34.54, 263.88, 53.73, 261.0, 58.53, 261.0, 71.97, 266.76, 80.6, 268.67, 81.56, 275.39, 81.56, 284.03, 102.67, 268.67, 115.15, 262.92, 129.54, 249.48, 170.8, 244.69, 187.11, 227.41, 206.3, 213.98, 217.82, 187.11, 229.33, 181.36, 237.97, 180.4, 243.73, 186.15, 260.04, 201.51, 262.92, 206.3, 260.04, 215.9, 261.0, 214.94, 249.48, 216.86, 251.4, 220.7, 233.17, 249.48, 219.74, 251.4, 208.22, 257.16, 195.75, 262.92, 177.52, 284.03, 185.19, 300.34, 198.63, 307.06, 210.14, 322.41, 223.58, 320.49, 240.85, 308.98, 241.81, 306.1, 257.16, 308.98, 267.71, 305.14, 282.11, 327.21, 300.34, 325.29, 306.1, 311.85, 322.41, 268.67, 362.71, 230.29, 410.69, 220.7, 422.2, 293.62, 422.2]], "area": 52730.666200000036, "iscrowd": 0, "image_id": 456433, "bbox": [180.4, 12.47, 282.1, 409.73], "category_id": 1, "id": 528074}, {"segmentation": [[364.96, 277.93, 373.88, 278.92, 378.84, 285.86, 378.84, 296.77, 372.89, 310.64, 371.9, 320.56, 374.87, 328.49, 375.86, 336.42, 375.86, 347.33, 370.9, 368.14, 363.96, 385.99, 363.96, 400.86, 364.96, 435.56, 363.96, 451.42, 362.97, 457.37, 353.06, 458.36, 352.07, 456.38, 344.14, 456.38, 340.17, 452.41, 345.13, 448.45, 351.08, 440.52, 342.15, 412.76, 341.16, 393.92, 336.21, 372.11, 335.21, 356.25, 333.23, 348.32, 332.24, 368.14, 330.26, 375.08, 325.3, 379.05, 323.32, 371.12, 327.28, 352.28, 328.28, 334.44, 332.24, 325.52, 332.24, 312.63, 331.25, 303.7, 332.24, 293.79, 338.19, 289.83, 341.16, 285.86, 339.18, 273.96, 337.2, 260.08, 341.16, 249.18, 346.12, 247.2, 361.98, 256.12, 363.96, 268.02, 363.96, 273.96]], "area": 6606.416250000001, "iscrowd": 0, "image_id": 545806, "bbox": [323.32, 247.2, 55.52, 211.16], "category_id": 1, "id": 528084}, {"segmentation": [[147.24, 213.97, 147.34, 208.47, 145.79, 207.84, 145.27, 203.38, 147.76, 200.27, 147.34, 198.19, 148.07, 196.84, 150.15, 197.05, 151.7, 199.85, 151.7, 202.13, 153.26, 204.73, 150.87, 210.13, 150.46, 215.63, 149.31, 216.46, 148.28, 215.52, 147.13, 215.42]], "area": 88.92194999999991, "iscrowd": 0, "image_id": 409374, "bbox": [145.27, 196.84, 7.99, 19.62], "category_id": 1, "id": 528085}, {"segmentation": [[109.11, 193.4, 118.24, 173.49, 116.58, 148.19, 115.75, 141.14, 112.85, 133.26, 104.97, 128.28, 113.26, 108.79, 123.63, 101.74, 123.63, 91.79, 133.58, 90.96, 142.71, 98.42, 136.9, 100.91, 135.66, 104.64, 143.54, 108.37, 144.78, 120.4, 143.54, 126.62, 139.39, 145.7, 138.97, 167.68, 131.92, 199.62, 137.73, 207.5, 126.12, 207.91, 126.53, 203.35, 125.29, 183.03, 119.48, 193.4, 119.07, 197.13, 119.9, 209.57, 115.33, 209.98]], "area": 2698.7730999999985, "iscrowd": 0, "image_id": 383605, "bbox": [104.97, 90.96, 39.81, 119.02], "category_id": 1, "id": 528292}, {"segmentation": [[397.75, 125.56, 391.85, 139.89, 396.91, 155.9, 403.65, 158.43, 403.65, 174.44, 405.34, 182.87, 411.24, 187.08, 407.87, 214.89, 408.71, 227.53, 420.51, 222.47, 417.98, 188.76, 428.09, 187.92, 426.4, 142.42, 435.67, 157.58, 440.73, 166.85, 447.47, 160.96, 425.56, 118.82, 414.61, 114.61, 416.29, 102.81, 403.65, 98.6, 396.07, 110.39, 398.6, 115.45]], "area": 2960.03015, "iscrowd": 0, "image_id": 265532, "bbox": [391.85, 98.6, 55.62, 128.93], "category_id": 1, "id": 528826}, {"segmentation": [[135.44, 221.44, 174.45, 270.19, 192.87, 308.12, 195.03, 340.62, 203.7, 352.54, 222.12, 383.96, 209.12, 404.55, 189.62, 415.39, 179.86, 430.56, 176.61, 450.06, 176.61, 470.65, 30.34, 469.56, 11.92, 448.98, 9.75, 411.05, 8.67, 367.71, 8.67, 340.62, 10.84, 248.52, 26.0, 209.52, 41.17, 186.76, 41.17, 156.42, 48.76, 125.0, 65.01, 101.16, 85.6, 95.75, 125.69, 103.33, 145.19, 127.17, 149.53, 162.93, 149.53, 178.09, 136.52, 203.02, 133.27, 204.1]], "area": 55612.37495000001, "iscrowd": 0, "image_id": 77841, "bbox": [8.67, 95.75, 213.45, 374.9], "category_id": 1, "id": 528918}, {"segmentation": [[350.53, 349.42, 346.03, 298.42, 346.03, 263.18, 340.78, 228.68, 337.78, 211.43, 352.03, 189.69, 346.03, 170.18, 346.03, 156.69, 354.27, 148.44, 370.77, 148.44, 382.78, 154.44, 382.78, 173.94, 380.52, 185.93, 400.78, 197.94, 410.53, 233.18, 398.52, 250.43, 400.03, 311.92, 396.27, 368.92, 394.03, 375.67, 382.03, 373.41, 376.78, 323.17, 370.03, 381.66, 353.53, 377.92, 352.78, 357.67]], "area": 11154.802549999999, "iscrowd": 0, "image_id": 550028, "bbox": [337.78, 148.44, 72.75, 233.22], "category_id": 1, "id": 528993}, {"segmentation": [[197.41, 122.19, 191.98, 127.61, 190.17, 144.48, 193.79, 157.74, 194.39, 169.19, 201.62, 182.44, 203.43, 190.28, 198.01, 209.56, 193.19, 226.43, 204.03, 229.44, 210.66, 229.44, 218.5, 228.24, 207.05, 221.61, 211.26, 198.11, 217.29, 187.26, 216.69, 180.03, 222.11, 173.4, 221.51, 155.33, 219.1, 152.92, 215.48, 140.87, 216.09, 127.01, 217.29, 117.97, 211.87, 117.36, 216.09, 111.34, 218.5, 103.51, 211.87, 96.88, 201.62, 96.27, 199.21, 105.31, 193.19, 117.36, 193.79, 121.58]], "area": 2574.6836, "iscrowd": 0, "image_id": 286359, "bbox": [190.17, 96.27, 31.94, 133.17], "category_id": 1, "id": 529186}, {"segmentation": [[168.38, 189.43, 163.51, 176.15, 158.64, 172.6, 156.87, 166.4, 152.88, 154.89, 149.34, 146.03, 145.79, 139.39, 145.79, 133.63, 148.89, 130.97, 150.22, 127.87, 158.64, 111.04, 164.84, 111.93, 171.04, 119.02, 173.7, 128.32, 169.27, 138.06, 174.58, 142.93, 179.01, 154.0, 179.45, 165.52, 180.78, 174.38, 180.78, 187.66, 179.9, 193.42, 180.34, 196.96, 180.78, 201.39]], "area": 1702.6611000000003, "iscrowd": 0, "image_id": 446331, "bbox": [145.79, 111.04, 34.99, 90.35], "category_id": 1, "id": 529332}, {"segmentation": [[418.59, 232.29, 374.79, 255.72, 380.39, 284.75, 380.39, 303.59, 382.43, 320.9, 383.45, 326.51, 387.52, 364.7, 390.58, 374.89, 384.98, 390.17, 375.3, 409.52, 362.06, 413.08, 343.73, 407.48, 342.2, 392.2, 355.44, 374.89, 355.44, 359.1, 355.44, 343.82, 341.69, 311.23, 339.14, 291.37, 336.09, 262.34, 336.6, 234.84, 346.78, 218.54, 370.21, 187.98, 374.28, 182.89, 369.19, 175.76, 364.1, 155.9, 359.51, 137.06, 359.51, 130.44, 336.09, 131.96, 319.28, 138.58, 309.1, 145.2, 318.77, 159.97, 326.92, 163.54, 326.92, 169.14, 322.34, 170.16, 312.15, 166.59, 310.62, 182.89, 306.55, 192.06, 294.33, 185.95, 287.71, 176.27, 286.18, 165.58, 287.71, 150.3, 288.22, 130.44, 293.31, 118.21, 313.17, 111.59, 352.89, 86.13, 373.26, 79.51, 390.07, 76.45, 394.65, 69.32, 387.02, 54.04, 380.39, 41.31, 384.98, 28.07, 392.62, 9.74, 412.99, 3.63, 433.87, 10.76, 437.94, 28.07, 439.47, 35.2, 443.54, 45.39, 438.45, 54.04, 430.81, 64.74, 432.85, 75.94, 458.31, 77.47, 468.5, 84.09, 490.4, 99.88, 499.56, 107.01, 530.12, 119.23, 566.28, 125.34, 589.2, 135.02, 596.33, 147.24, 607.53, 169.14, 601.93, 199.19, 594.29, 218.54, 566.79, 213.96, 548.96, 196.64, 558.64, 173.21, 579.01, 159.97, 583.09, 148.77, 566.79, 145.2, 547.95, 143.17, 529.61, 138.58, 512.3, 133.49, 480.21, 132.47, 458.31, 122.8, 460.86, 149.79, 452.2, 169.14, 451.18, 184.42, 451.18, 189.51, 464.93, 196.13, 500.07, 197.15, 532.16, 215.99, 542.34, 220.07, 547.95, 248.08, 551.0, 280.67, 547.95, 304.1, 543.87, 318.36, 542.85, 325.49, 534.7, 366.74, 546.42, 383.04, 562.71, 404.93, 566.79, 416.14, 541.33, 417.67, 527.57, 408.5, 520.95, 398.31, 504.66, 395.77, 499.06, 374.38, 500.07, 353.5, 499.06, 333.64, 504.66, 303.59, 504.15, 278.63, 502.11, 260.3, 478.68, 254.7, 448.13, 245.02, 427.76, 236.36]], "area": 46916.562150000005, "iscrowd": 0, "image_id": 36113, "bbox": [286.18, 3.63, 321.35, 414.04], "category_id": 1, "id": 529922}, {"segmentation": [[8.65, 188.11, 31.71, 178.02, 61.98, 169.37, 98.02, 173.69, 125.41, 193.87, 148.47, 222.7, 164.32, 247.21, 167.21, 276.04, 175.86, 312.07, 167.21, 352.43, 154.23, 394.23, 144.14, 418.74, 135.5, 434.59, 139.82, 461.98, 139.82, 505.23, 113.87, 632.07, 2.88, 629.19]], "area": 63441.53185000001, "iscrowd": 0, "image_id": 322725, "bbox": [2.88, 169.37, 172.98, 462.7], "category_id": 1, "id": 530395}, {"segmentation": [[501.92, 209.31, 503.12, 214.11, 503.84, 215.55, 506.0, 219.98, 506.96, 222.98, 506.84, 226.94, 504.08, 231.49, 502.04, 236.41, 501.21, 239.53, 501.8, 242.89, 502.88, 245.16, 505.64, 246.96, 508.04, 245.52, 510.92, 246.12, 514.99, 246.6, 519.43, 245.64, 520.27, 244.2, 516.91, 243.13, 515.95, 241.69, 514.99, 237.97, 514.52, 234.85, 515.35, 230.42, 517.03, 226.46, 518.11, 222.86, 518.83, 219.14, 519.07, 211.71, 520.15, 213.63, 521.47, 216.15, 522.07, 219.5, 522.79, 220.7, 524.35, 218.3, 524.47, 216.15, 523.63, 211.71, 521.47, 199.23, 520.39, 195.75, 520.03, 194.19, 517.51, 190.84, 517.15, 187.72, 516.55, 184.72, 513.08, 182.92, 507.68, 184.72, 506.84, 190.0, 501.92, 194.19, 499.77, 201.39, 500.37, 206.55, 501.8, 209.54]], "area": 965.7622000000009, "iscrowd": 0, "image_id": 409374, "bbox": [499.77, 182.92, 24.7, 64.04], "category_id": 1, "id": 530713}, {"segmentation": [[236.76, 246.49, 259.46, 218.38, 260.54, 207.57, 268.11, 187.03, 287.57, 177.3, 314.59, 176.22, 324.32, 191.35, 315.68, 221.62, 311.35, 233.51, 318.92, 250.81, 326.49, 252.97, 341.62, 252.97, 362.16, 251.89, 361.08, 263.78, 348.11, 265.95, 321.08, 277.84, 290.81, 290.81, 259.46, 292.97, 249.73, 299.46, 247.57, 321.08, 247.57, 357.84, 240.0, 364.32, 235.68, 362.16, 228.11, 337.3, 219.46, 310.27, 231.35, 298.38, 231.35, 289.73, 218.38, 282.16, 209.73, 275.68, 223.78, 265.95]], "area": 10403.747300000003, "iscrowd": 0, "image_id": 208754, "bbox": [209.73, 176.22, 152.43, 188.1], "category_id": 1, "id": 531175}, {"segmentation": [[152.09, 196.96, 162.43, 178.79, 171.2, 153.09, 178.1, 146.19, 190.64, 142.43, 188.44, 136.48, 185.62, 124.25, 188.13, 114.23, 190.64, 107.64, 198.47, 101.69, 210.07, 102.32, 216.02, 106.08, 218.84, 109.84, 219.47, 115.17, 221.35, 123.63, 221.35, 128.64, 219.47, 135.22, 211.95, 141.81, 227.3, 155.28, 231.07, 185.68, 228.24, 190.38, 225.11, 204.49, 212.26, 221.72, 213.51, 230.81, 209.44, 234.57, 203.49, 238.33, 200.04, 248.36, 204.74, 301.96, 207.25, 310.73, 211.32, 318.57, 213.51, 323.27, 213.51, 328.28, 209.75, 332.04, 205.99, 332.98, 199.72, 330.48, 196.28, 323.27, 186.25, 319.19, 187.19, 307.28, 178.1, 255.57, 178.73, 238.33, 180.61, 232.69, 175.59, 230.5, 159.3, 239.59, 144.25, 243.04, 149.27, 276.88, 151.77, 298.2, 154.67, 300.61, 157.3, 307.17, 155.11, 308.48, 145.06, 309.35, 135.44, 315.47, 115.33, 319.85, 117.08, 310.67, 124.95, 303.67, 127.13, 295.37, 120.58, 234.17, 141.12, 218.0, 137.19, 214.06, 134.13, 207.94, 131.94, 200.95, 137.63, 197.45, 143.31, 197.45]], "area": 11866.20565000001, "iscrowd": 0, "image_id": 207463, "bbox": [115.33, 101.69, 115.74, 231.29], "category_id": 1, "id": 531712}, {"segmentation": [[393.42, 167.03, 382.86, 170.86, 378.06, 171.82, 373.27, 173.74, 370.39, 178.54, 372.31, 187.18, 372.31, 197.73, 372.31, 205.41, 372.31, 215.96, 378.06, 233.23, 385.74, 234.19, 385.74, 235.15, 374.22, 247.63, 364.63, 255.3, 351.2, 264.9, 348.32, 345.5, 355.03, 345.5, 364.63, 421.31, 474.98, 420.35, 474.98, 360.85, 528.71, 343.58, 534.47, 332.07, 534.47, 323.43, 522.96, 313.84, 511.44, 311.92, 493.21, 311.92, 484.57, 311.92, 478.82, 311.92, 470.18, 295.61, 456.75, 272.58, 446.19, 263.94, 441.39, 260.1, 439.47, 253.39, 438.51, 236.11, 437.56, 217.88, 434.68, 199.65, 431.8, 191.97, 430.84, 188.14, 430.84, 177.58, 427.96, 172.78, 421.24, 164.15, 414.53, 162.23, 404.93, 162.23]], "area": 26787.2652, "iscrowd": 0, "image_id": 547693, "bbox": [348.32, 162.23, 186.15, 259.08], "category_id": 1, "id": 532218}, {"segmentation": [[70.78, 89.74, 80.71, 77.48, 82.46, 75.14, 82.46, 68.13, 94.13, 57.04, 109.9, 64.05, 94.13, 94.99, 98.8, 104.33, 111.65, 108.42, 122.74, 116.01, 135.58, 125.35, 138.5, 131.77, 127.41, 142.86, 129.75, 156.29, 132.66, 168.55, 120.99, 181.98, 104.64, 176.14, 107.56, 158.62, 105.81, 141.69, 84.79, 138.19, 72.53, 135.27, 69.03, 125.35, 71.37, 111.92, 72.53, 100.83, 72.53, 92.65, 72.53, 89.74]], "area": 3880.50585, "iscrowd": 0, "image_id": 289693, "bbox": [69.03, 57.04, 69.47, 124.94], "category_id": 1, "id": 532504}, {"segmentation": [[202.1, 282.79, 204.87, 298.33, 207.09, 304.16, 215.97, 305.54, 216.8, 310.54, 209.86, 314.42, 214.03, 318.03, 209.31, 320.53, 200.15, 320.53, 192.39, 321.91, 186.84, 324.41, 178.51, 324.69, 168.8, 320.53, 167.14, 313.31, 171.85, 300.55, 175.46, 290.28, 178.24, 283.35, 186.28, 280.02, 186.84, 279.74, 189.89, 273.08, 193.5, 269.2, 199.04, 268.92, 202.37, 272.25, 204.59, 275.58, 204.32, 281.13]], "area": 1653.5851000000002, "iscrowd": 0, "image_id": 483948, "bbox": [167.14, 268.92, 49.66, 55.77], "category_id": 1, "id": 533182}, {"segmentation": [[54.69, 23.99, 75.8, 28.79, 74.84, 46.06, 72.93, 58.53, 69.09, 71.01, 69.09, 81.56, 78.68, 65.25, 87.32, 53.73, 89.24, 49.9, 94.04, 40.3, 100.75, 52.78, 100.75, 56.61, 101.71, 64.29, 88.28, 76.76, 76.76, 86.36, 81.56, 119.94, 83.48, 131.46, 68.13, 148.73, 62.37, 161.2, 50.86, 184.23, 29.75, 205.34, 26.87, 246.6, 28.79, 275.39, 24.95, 295.54, 12.47, 266.76, 13.43, 237.97, 9.6, 216.86, 16.31, 192.87, 14.39, 169.84, 7.68, 159.29, 15.35, 118.02, 23.99, 91.16, 32.62, 71.01, 41.26, 58.53, 37.42, 43.18, 39.34, 30.71, 52.78, 22.07]], "area": 10176.683749999998, "iscrowd": 0, "image_id": 59542, "bbox": [7.68, 22.07, 94.03, 273.47], "category_id": 1, "id": 533479}, {"segmentation": [[610.07, 211.33, 612.71, 201.91, 613.65, 199.27, 614.6, 196.26, 616.48, 191.54, 617.61, 190.04, 616.86, 186.27, 615.35, 182.69, 614.41, 181.93, 614.97, 179.67, 615.35, 177.22, 614.97, 175.33, 611.96, 174.96, 609.51, 176.47, 609.7, 178.54, 609.32, 181.74, 606.87, 184.19, 605.74, 185.7, 605.36, 186.83, 604.23, 190.41, 603.29, 194.37, 602.16, 199.46, 602.53, 201.16, 604.8, 203.79, 605.55, 205.68, 606.11, 207.38, 606.3, 209.45, 606.11, 211.71]], "area": 316.25245000000103, "iscrowd": 0, "image_id": 576322, "bbox": [602.16, 174.96, 15.45, 36.75], "category_id": 1, "id": 533487}, {"segmentation": [[129.82, 200.79, 129.82, 187.75, 127.74, 180.08, 127.54, 173.46, 131.47, 170.97, 131.89, 164.14, 134.99, 156.47, 144.52, 160.62, 144.31, 167.04, 144.31, 171.8, 148.45, 176.98, 153.63, 174.08, 154.67, 174.28, 149.49, 179.05, 146.38, 182.57, 144.31, 187.95, 145.35, 200.79, 148.04, 213.63, 143.9, 214.67, 140.79, 205.97, 137.69, 199.34, 136.65, 192.72, 131.47, 211.15, 128.99, 203.49]], "area": 751.4478000000001, "iscrowd": 0, "image_id": 560350, "bbox": [127.54, 156.47, 27.13, 58.2], "category_id": 1, "id": 533548}, {"segmentation": [[122.4, 73.15, 114.16, 72.46, 110.04, 64.91, 99.06, 58.05, 90.14, 58.73, 86.02, 61.48, 80.53, 67.65, 75.04, 64.91, 70.92, 62.85, 68.18, 60.79, 67.49, 54.61, 71.61, 41.57, 74.35, 32.65, 77.78, 26.47, 81.9, 23.04, 94.94, 23.04, 91.51, 19.61, 94.94, 12.06, 104.55, 7.94, 113.48, 10.69, 114.85, 12.75, 116.22, 29.9, 114.16, 35.4, 118.97, 41.57, 110.73, 47.75, 107.98, 52.55, 108.67, 60.1, 116.91, 62.85, 122.4, 66.97]], "area": 1994.0654499999996, "iscrowd": 0, "image_id": 289693, "bbox": [67.49, 7.94, 54.91, 65.21], "category_id": 1, "id": 533721}, {"segmentation": [[472.49, 312.21, 536.31, 250.29, 546.79, 219.81, 528.69, 187.42, 520.12, 178.85, 480.11, 220.76, 402.95, 234.1, 390.56, 230.29, 383.9, 216.95, 383.9, 210.29, 396.28, 202.66, 423.91, 213.14, 482.01, 186.47, 500.11, 145.51, 509.64, 135.03, 491.54, 124.55, 481.06, 97.88, 477.25, 83.59, 512.5, 50.25, 512.5, 41.68, 536.31, 10.24, 582.04, 5.48, 600.14, 29.29, 595.37, 55.01, 588.7, 76.92, 581.08, 84.54, 547.74, 58.82, 557.27, 103.59, 594.42, 121.69, 615.38, 144.56, 628.71, 170.28, 640.0, 196.95, 632.52, 276.97, 619.19, 325.55, 619.19, 374.13, 639.19, 397.95, 622.05, 411.28, 603.95, 415.09, 595.37, 396.99, 574.42, 369.37, 570.6, 351.27, 562.98, 334.12, 542.98, 343.65, 533.45, 336.03, 522.98, 326.5, 502.97, 341.74, 532.5, 413.19, 507.73, 413.19, 503.92, 413.19, 494.4, 410.33, 491.54, 410.33, 484.87, 368.42, 465.82, 322.69, 466.77, 306.5]], "area": 43454.29990000001, "iscrowd": 0, "image_id": 422341, "bbox": [383.9, 5.48, 256.1, 409.61], "category_id": 1, "id": 533942}, {"segmentation": [[405.97, 289.19, 409.23, 282.35, 406.3, 243.91, 427.14, 252.38, 427.14, 290.82, 421.61, 291.47, 421.93, 281.7, 418.35, 253.36, 414.11, 249.77, 416.07, 289.51], [398.81, 237.07, 408.25, 206.45, 414.77, 203.52, 410.21, 198.96, 409.55, 188.86, 415.42, 185.28, 419.33, 183.98, 424.21, 196.68, 426.17, 200.92, 431.05, 208.41, 436.59, 226.32, 435.61, 239.68, 432.35, 234.47, 428.45, 221.11, 426.49, 228.28, 413.79, 218.18, 410.53, 216.55, 405.97, 240.33, 403.04, 245.87]], "area": 1527.971749999998, "iscrowd": 0, "image_id": 126978, "bbox": [398.81, 183.98, 37.78, 107.49], "category_id": 1, "id": 534185}, {"segmentation": [[305.41, 258.79, 304.11, 252.3, 306.49, 248.41, 304.54, 245.6, 300.65, 245.6, 298.06, 245.17, 294.6, 245.17, 296.33, 252.52, 295.89, 257.49, 296.76, 263.33, 297.84, 269.81, 297.41, 272.84, 300.0, 277.6, 299.79, 286.03, 300.65, 293.81, 301.95, 301.38, 308.86, 299.86, 311.89, 296.62, 310.59, 294.89, 311.03, 282.35, 309.73, 276.95, 309.51, 271.76, 309.51, 265.27, 310.59, 261.38, 312.97, 258.57, 313.19, 255.33, 311.03, 254.25, 308.65, 257.49, 306.27, 257.92]], "area": 613.0627499999999, "iscrowd": 0, "image_id": 274881, "bbox": [294.6, 245.17, 18.59, 56.21], "category_id": 1, "id": 534337}, {"segmentation": [[538.3, 215.84, 530.59, 200.87, 514.71, 189.52, 503.81, 182.26, 486.57, 183.17, 470.23, 188.61, 456.16, 198.14, 448.0, 216.3, 444.37, 229.91, 447.54, 254.42, 451.17, 276.2, 454.35, 286.18, 455.71, 292.08, 425.31, 305.7, 406.25, 319.31, 392.18, 340.64, 391.27, 346.54, 383.1, 372.86, 379.02, 394.19, 374.02, 412.34, 373.12, 421.42, 461.61, 416.88, 474.32, 384.21, 510.62, 368.78, 515.16, 357.43, 537.4, 350.62, 526.96, 335.19, 511.53, 330.2, 506.54, 317.95, 504.27, 292.08, 503.81, 278.47, 503.81, 255.78, 508.35, 248.06, 518.34, 225.83, 528.32, 224.92]], "area": 20159.305499999995, "iscrowd": 0, "image_id": 571516, "bbox": [373.12, 182.26, 165.18, 239.16], "category_id": 1, "id": 534434}, {"segmentation": [[23.86, 531.9, 31.11, 526.46, 34.13, 518.9, 38.66, 519.81, 41.08, 524.34, 39.57, 530.08, 43.8, 534.62, 41.38, 543.38, 40.78, 545.19, 36.55, 547.01, 32.32, 549.12, 31.71, 553.0, 25.06, 551.84, 26.88, 541.87, 23.86, 533.11]], "area": 410.0506000000003, "iscrowd": 0, "image_id": 181149, "bbox": [23.86, 518.9, 19.94, 34.1], "category_id": 1, "id": 534554}, {"segmentation": [[500.8, 247.66, 508.43, 231.39, 509.95, 226.06, 513.51, 222.24, 518.34, 221.99, 518.85, 235.71, 517.07, 244.86, 517.32, 246.9, 522.66, 238.76, 518.59, 251.98, 527.74, 248.17, 547.57, 257.57, 558.75, 254.78, 555.19, 263.42, 550.87, 265.45, 536.64, 262.4, 519.1, 256.81, 506.14, 263.93, 493.94, 265.71, 489.11, 265.71, 487.33, 255.28, 497.5, 243.08]], "area": 1121.063100000001, "iscrowd": 0, "image_id": 483948, "bbox": [487.33, 221.99, 71.42, 43.72], "category_id": 1, "id": 534616}, {"segmentation": [[158.43, 494.38, 171.91, 482.02, 174.16, 467.42, 176.4, 467.42, 187.64, 471.91, 191.01, 460.67, 193.26, 385.39, 170.79, 382.02, 152.81, 362.92, 129.21, 330.34, 130.34, 319.1, 108.99, 320.22, 106.74, 307.87, 73.03, 324.72, 68.54, 310.11, 37.08, 291.01, 15.73, 270.79, 4.49, 274.16, 0.0, 264.04, 2.25, 233.71, 8.99, 224.72, 13.48, 215.73, 33.71, 216.85, 47.19, 224.72, 67.42, 222.47, 88.76, 240.45, 106.74, 268.54, 119.1, 294.38, 133.71, 311.24, 146.07, 313.48, 168.54, 300.0, 148.31, 266.29, 150.56, 261.8, 146.07, 255.06, 147.19, 235.96, 128.09, 232.58, 130.34, 210.11, 137.08, 187.64, 138.2, 177.53, 129.21, 176.4, 123.6, 155.06, 121.35, 115.73, 144.94, 67.42, 183.15, 44.94, 219.1, 38.2, 234.83, 31.46, 270.79, 31.46, 306.74, 43.82, 314.61, 62.92, 331.46, 76.4, 353.93, 88.76, 361.8, 107.87, 375.0, 110.11, 375.0, 167.42, 371.91, 176.4, 375.0, 189.89, 375.0, 230.34, 373.03, 494.38, 160.67, 493.26]], "area": 106270.26625, "iscrowd": 0, "image_id": 496031, "bbox": [0.0, 31.46, 375.0, 462.92], "category_id": 1, "id": 534673}, {"segmentation": [[499.73, 248.77, 504.11, 235.62, 517.26, 235.62, 519.45, 250.96, 521.64, 264.11, 512.88, 288.22, 501.92, 283.84, 495.34, 281.64, 495.34, 250.96]], "area": 1061.5922000000007, "iscrowd": 0, "image_id": 385701, "bbox": [495.34, 235.62, 26.3, 52.6], "category_id": 1, "id": 535552}, {"segmentation": [[73.48, 42.65, 85.3, 42.65, 100.51, 63.77, 100.51, 71.37, 92.06, 85.73, 101.35, 92.48, 108.95, 99.24, 114.02, 105.15, 115.71, 118.67, 114.02, 130.49, 128.38, 138.09, 130.07, 144.0, 120.78, 148.23, 108.95, 160.9, 108.11, 247.04, 107.26, 305.32, 105.57, 317.99, 98.82, 317.99, 91.22, 307.01, 90.37, 290.12, 86.15, 232.69, 81.08, 207.35, 72.64, 241.13, 72.64, 290.96, 68.41, 307.85, 62.5, 313.77, 54.9, 320.52, 43.92, 330.66, 40.54, 313.77, 43.92, 286.74, 49.83, 227.62, 56.59, 176.1, 56.59, 125.42, 38.01, 150.76, 34.63, 148.23, 29.56, 143.16, 27.87, 129.65, 27.87, 114.44, 30.41, 107.69, 36.32, 106.84, 43.07, 106.84, 46.45, 98.4, 69.26, 86.57, 65.03, 78.13, 62.5, 66.3]], "area": 14293.448550000005, "iscrowd": 0, "image_id": 207463, "bbox": [27.87, 42.65, 102.2, 288.01], "category_id": 1, "id": 535910}, {"segmentation": [[84.44, 126.37, 74.84, 111.97, 73.89, 107.18, 74.84, 102.38, 81.56, 102.38, 88.28, 104.3, 97.87, 111.01, 118.02, 117.73, 122.82, 117.73, 127.62, 97.58, 122.82, 98.54, 120.9, 90.86, 120.9, 84.15, 121.86, 73.59, 112.27, 59.2, 118.98, 56.32, 121.86, 46.72, 135.3, 42.89, 142.01, 49.6, 163.12, 69.75, 168.88, 82.23, 182.31, 87.03, 195.75, 94.7, 194.79, 119.65, 186.15, 140.76, 223.58, 158.03, 216.86, 192.58, 209.18, 211.77, 193.83, 229.04, 205.34, 253.03, 207.26, 277.02, 216.86, 294.29, 218.78, 312.52, 211.1, 317.32, 184.23, 318.28, 177.52, 312.52, 187.11, 305.8, 189.03, 295.25, 189.03, 283.73, 185.19, 270.3, 177.52, 252.07, 169.84, 235.76, 169.84, 226.16, 167.92, 242.47, 172.72, 252.07, 180.4, 273.18, 187.11, 291.41, 188.07, 300.05, 166.96, 318.28, 148.73, 321.16, 148.73, 312.52, 169.84, 288.53, 148.73, 263.58, 140.09, 232.88, 149.69, 208.89, 159.29, 178.18, 158.33, 175.3, 138.18, 137.88, 124.74, 142.68, 107.47, 128.29, 91.16, 122.53]], "area": 16176.315400000003, "iscrowd": 0, "image_id": 237841, "bbox": [73.89, 42.89, 149.69, 278.27], "category_id": 1, "id": 536467}, {"segmentation": [[4.38, 165.59, 4.38, 165.59, 6.66, 165.59, 9.39, 167.87, 11.66, 172.42, 11.66, 174.24, 15.76, 178.79, 19.85, 183.79, 22.58, 186.07, 27.59, 189.25, 30.32, 190.16, 32.14, 193.35, 23.95, 191.98, 16.67, 185.61, 14.85, 188.8, 16.67, 195.17, 16.21, 201.99, 15.76, 205.17, 14.39, 210.63, 13.94, 216.09, 15.76, 222.92, 17.58, 225.65, 16.67, 227.47, 11.66, 227.92, 7.11, 227.47, 9.39, 213.36, 9.84, 207.9, 4.38, 200.62, 1.2, 197.9, 3.93, 191.98, 1.65, 183.34, 0.29, 181.06, 1.65, 175.15, 3.47, 172.87]], "area": 668.75105, "iscrowd": 0, "image_id": 483948, "bbox": [0.29, 165.59, 31.85, 62.33], "category_id": 1, "id": 536590}, {"segmentation": [[60.58, 227.24, 48.94, 157.37, 45.44, 124.77, 57.09, 106.72, 66.98, 101.48, 64.07, 88.09, 62.91, 81.1, 72.81, 78.19, 81.54, 92.17, 85.61, 99.73, 91.44, 103.81, 107.74, 131.17, 110.65, 151.55, 104.25, 159.12, 104.83, 159.7, 107.16, 194.05, 107.16, 195.22, 109.48, 205.7, 107.16, 256.93, 103.66, 265.08, 96.09, 261.59, 92.02, 255.76, 87.36, 227.24, 82.7, 195.8, 81.54, 212.68, 81.54, 237.72, 83.87, 255.18, 86.2, 264.5, 89.69, 268.57, 77.46, 270.9, 76.88, 270.9, 62.91, 266.83, 62.33, 251.11, 65.24, 244.12, 61.16, 227.82]], "area": 8381.20795, "iscrowd": 0, "image_id": 265532, "bbox": [45.44, 78.19, 65.21, 192.71], "category_id": 1, "id": 536756}, {"segmentation": [[473.43, 41.15, 473.43, 46.28, 473.43, 56.55, 474.46, 67.85, 476.51, 83.25, 477.54, 85.31, 482.67, 96.6, 483.7, 97.63, 487.81, 101.74, 489.86, 103.79, 493.97, 113.03, 493.97, 113.03, 498.08, 113.03, 488.84, 120.22, 486.78, 120.22, 482.67, 122.28, 471.38, 130.49, 469.32, 131.52, 452.89, 160.28, 427.22, 194.17, 383.06, 254.76, 373.82, 268.11, 366.63, 272.21, 361.49, 277.35, 359.44, 280.43, 359.44, 284.54, 361.49, 287.62, 366.63, 287.62, 376.9, 283.51, 386.14, 278.38, 391.27, 272.21, 392.3, 271.19, 394.36, 260.92, 398.46, 252.7, 403.6, 248.59, 440.57, 232.16, 451.87, 219.84, 459.05, 224.97, 459.05, 226.0, 459.05, 251.68, 444.68, 323.56, 445.7, 359.51, 501.16, 371.83, 565.86, 408.8, 569.97, 362.59, 578.18, 313.29, 578.18, 303.02, 579.21, 286.59, 585.37, 269.13, 582.29, 262.97, 576.13, 251.68, 576.13, 243.46, 581.26, 238.32, 591.53, 233.19, 595.64, 241.41, 599.75, 233.19, 598.15, 178.56, 600.78, 152.06, 595.64, 135.63, 590.75, 130.85, 587.12, 114.54, 580.77, 112.72, 552.67, 104.57, 546.33, 96.41, 538.17, 86.44, 539.08, 70.12, 543.61, 50.18, 545.42, 44.74, 542.7, 22.98, 538.17, 16.63, 533.64, 13.01, 527.29, 13.01, 510.97, 13.01, 500.1, 13.92, 491.03, 14.82, 483.78, 14.82, 478.34, 28.42, 471.09, 39.3]], "area": 44564.463049999984, "iscrowd": 0, "image_id": 139571, "bbox": [359.44, 13.01, 241.34, 395.79], "category_id": 1, "id": 536882}, {"segmentation": [[44.14, 220.65, 50.6, 220.65, 51.28, 211.8, 55.71, 203.29, 60.47, 191.38, 65.58, 170.95, 67.96, 151.21, 63.88, 136.58, 61.15, 132.15, 61.49, 127.05, 63.54, 125.35, 63.2, 120.24, 58.77, 116.16, 54.01, 118.88, 50.94, 126.37, 50.26, 129.09, 42.09, 129.77, 40.05, 123.3, 41.75, 118.88, 37.33, 113.77, 36.31, 113.77, 35.97, 116.84, 33.24, 121.6, 33.24, 124.67, 33.24, 130.45, 38.69, 141.0, 41.41, 143.05, 43.11, 149.17, 42.09, 170.27, 42.09, 183.21, 42.43, 207.71, 40.39, 210.78, 40.05, 212.82, 42.09, 218.26]], "area": 2065.1268999999993, "iscrowd": 0, "image_id": 560350, "bbox": [33.24, 113.77, 34.72, 106.88], "category_id": 1, "id": 536885}, {"segmentation": [[534.85, 284.66, 538.33, 283.43, 541.39, 284.66, 543.03, 292.01, 545.07, 306.93, 543.44, 308.16, 549.98, 312.45, 550.59, 335.14, 545.48, 335.75, 543.03, 334.11, 536.69, 332.27, 535.47, 324.1, 534.04, 318.79, 533.83, 315.11, 534.04, 285.68]], "area": 612.6141500000003, "iscrowd": 0, "image_id": 328487, "bbox": [533.83, 283.43, 16.76, 52.32], "category_id": 1, "id": 537117}, {"segmentation": [[142.06, 185.57, 156.28, 185.89, 165.44, 186.83, 169.24, 193.78, 171.76, 203.58, 167.02, 214.95, 169.55, 226.64, 168.92, 237.7, 174.92, 231.7, 183.77, 225.38, 194.19, 226.64, 198.93, 230.12, 201.78, 238.33, 197.67, 244.33, 193.25, 248.13, 197.99, 251.29, 196.41, 262.03, 190.4, 257.92, 188.82, 257.92, 178.4, 256.97, 165.76, 260.13, 178.08, 261.71, 187.24, 261.4, 195.77, 263.61, 198.93, 274.67, 195.14, 283.51, 170.81, 296.15, 158.49, 302.15, 176.5, 304.68, 171.13, 310.68, 158.18, 312.58, 140.17, 311.31, 119.0, 302.78, 124.06, 280.98, 121.53, 271.19, 111.73, 272.45, 112.68, 256.66, 115.84, 248.44, 122.16, 236.12, 124.37, 226.33, 130.69, 212.11, 132.59, 202.0, 132.27, 194.73, 138.27, 189.05]], "area": 7348.053899999999, "iscrowd": 0, "image_id": 84653, "bbox": [111.73, 185.57, 90.05, 127.01], "category_id": 1, "id": 537251}, {"segmentation": [[639.41, 353.15, 597.48, 383.64, 582.23, 417.95, 640.0, 419.85, 639.41, 359.82]], "area": 2410.9242499999996, "iscrowd": 0, "image_id": 571516, "bbox": [582.23, 353.15, 57.77, 66.7], "category_id": 1, "id": 537336}, {"segmentation": [[31.53, 2.82, 31.53, 20.83, 19.14, 19.71, 28.15, 78.27, 12.39, 164.98, 36.04, 193.13, 84.46, 296.73, 60.81, 438.63, 105.86, 488.18, 99.1, 494.93, 57.43, 487.05, 19.14, 474.66, 30.41, 431.87, 32.66, 351.91, 42.79, 312.5, 25.9, 300.11, 25.9, 344.03, 0.0, 376.69, 0.0, 2.82]], "area": 20708.648999999998, "iscrowd": 0, "image_id": 22265, "bbox": [0.0, 2.82, 105.86, 492.11], "category_id": 1, "id": 537907}, {"segmentation": [[622.22, 176.13, 624.33, 185.73, 623.57, 189.78, 620.57, 193.53, 615.17, 197.88, 613.07, 198.93, 612.02, 199.84, 609.32, 203.44, 608.87, 207.79, 621.62, 215.74, 625.53, 225.34, 628.23, 247.25, 623.12, 267.96, 616.37, 272.16, 610.52, 273.66, 606.77, 271.71, 599.57, 259.55, 596.27, 248.6, 592.37, 245.6, 578.86, 257.6, 556.65, 276.06, 533.85, 300.37, 526.35, 306.52, 515.69, 322.72, 508.79, 325.57, 506.39, 329.32, 507.59, 343.73, 493.03, 353.48, 446.07, 352.73, 451.32, 339.68, 457.02, 327.07, 459.42, 318.82, 461.98, 307.72, 468.58, 300.22, 474.13, 297.21, 480.13, 284.31, 485.68, 276.06, 500.54, 264.5, 513.59, 248.15, 521.54, 242.3, 531.15, 231.04, 536.25, 221.89, 547.5, 208.09, 552.3, 205.39, 560.86, 205.39, 560.86, 205.39, 567.16, 205.24, 567.01, 202.69, 565.66, 200.29, 566.71, 196.83, 566.71, 194.73, 566.26, 192.18, 566.26, 191.43, 564.31, 190.68, 562.21, 187.68, 564.76, 184.53, 567.91, 181.68, 570.46, 176.43, 569.71, 174.48, 569.56, 170.13, 571.51, 164.42, 576.61, 160.22, 581.56, 157.07, 585.91, 155.57, 595.22, 155.42, 604.97, 157.22, 616.67, 160.97, 623.87, 166.37, 625.23, 171.78]], "area": 13532.739500000007, "iscrowd": 0, "image_id": 169686, "bbox": [446.07, 155.42, 182.16, 198.06], "category_id": 1, "id": 538534}, {"segmentation": [[595.35, 235.64, 589.58, 204.86, 612.67, 177.93, 618.44, 164.47, 640.0, 168.31, 639.6, 191.4, 634.79, 233.72, 616.51, 227.95, 600.16, 235.64, 600.16, 235.64]], "area": 2513.6355999999982, "iscrowd": 0, "image_id": 403627, "bbox": [589.58, 164.47, 50.42, 71.17], "category_id": 1, "id": 538834}, {"segmentation": [[594.12, 182.78, 597.55, 181.15, 598.27, 179.71, 597.55, 177.72, 596.46, 175.38, 602.06, 173.57, 602.78, 173.39, 607.48, 172.67, 609.28, 172.13, 611.27, 173.93, 611.63, 173.93, 615.42, 173.21, 616.68, 172.31, 617.95, 170.68, 617.59, 167.98, 617.22, 165.27, 616.14, 162.38, 615.6, 157.32, 616.14, 153.53, 615.42, 148.48, 614.52, 146.31, 615.42, 143.24, 615.42, 141.8, 615.6, 140.18, 615.78, 138.01, 619.93, 131.69, 622.46, 129.34, 625.89, 127.72, 627.7, 127.0, 631.31, 124.65, 634.19, 123.39, 636.0, 123.57, 637.08, 124.11, 639.61, 123.39, 640.0, 133.5, 639.97, 139.99, 639.79, 173.21, 639.97, 176.28, 640.0, 191.62, 640.0, 194.87, 638.89, 195.23, 636.9, 195.05, 636.18, 192.71, 636.18, 191.99, 614.88, 192.35, 601.16, 186.21, 594.66, 183.32]], "area": 1840.548650000001, "iscrowd": 0, "image_id": 506417, "bbox": [594.12, 123.39, 45.88, 71.84], "category_id": 1, "id": 538924}, {"segmentation": [[233.75, 199.72, 234.04, 202.57, 234.04, 205.13, 234.32, 207.98, 233.18, 210.83, 233.47, 215.11, 233.18, 216.54, 232.04, 213.11, 232.04, 210.83, 230.62, 208.55, 230.62, 207.13, 230.05, 204.85, 230.33, 202.85]], "area": 37.984099999999955, "iscrowd": 0, "image_id": 409374, "bbox": [230.05, 199.72, 4.27, 16.82], "category_id": 1, "id": 539257}, {"segmentation": [[280.82, 53.65, 289.95, 46.8, 301.37, 42.24, 305.94, 30.82, 308.22, 3.42, 365.3, 19.41, 394.98, 35.39, 420.09, 78.77, 422.37, 108.45, 422.37, 119.86, 424.66, 188.36, 408.68, 304.79, 397.26, 334.47, 410.96, 384.7, 415.53, 494.29, 372.15, 489.73, 379.0, 473.74, 381.28, 450.91, 379.0, 400.68, 369.86, 391.55, 369.86, 359.59, 374.43, 345.89, 349.32, 304.79, 337.9, 293.38, 335.62, 281.96, 337.9, 240.87, 344.75, 179.22, 333.33, 147.26, 312.79, 129.0, 317.35, 97.03, 294.52, 58.22, 294.52, 58.22], [305.94, 414.38, 301.37, 466.89, 267.12, 482.88, 262.56, 482.88, 289.95, 489.73, 319.63, 487.44, 321.92, 480.59, 321.92, 428.08, 335.62, 366.44, 326.48, 357.31, 308.22, 361.87, 305.94, 380.14, 301.37, 409.82]], "area": 36167.58164999999, "iscrowd": 0, "image_id": 22265, "bbox": [262.56, 3.42, 162.1, 490.87], "category_id": 1, "id": 539844}, {"segmentation": [[610.69, 172.63, 619.34, 195.71, 619.34, 219.75, 613.57, 241.87, 638.58, 256.3, 638.58, 420.75, 552.02, 417.86, 546.25, 364.01, 515.48, 350.54, 535.67, 332.27, 546.25, 320.73, 544.33, 311.11, 532.79, 306.31, 520.29, 314.0, 509.71, 310.15, 524.13, 261.1, 546.25, 242.83, 565.49, 234.18, 558.75, 213.98, 554.91, 192.82, 564.52, 173.59, 584.72, 164.93, 600.11, 163.97]], "area": 22572.797850000014, "iscrowd": 0, "image_id": 547693, "bbox": [509.71, 163.97, 128.87, 256.78], "category_id": 1, "id": 539895}, {"segmentation": [[190.52, 228.89, 212.77, 241.87, 211.53, 272.15, 210.3, 282.03, 202.88, 287.6, 218.33, 300.57, 232.54, 312.31, 247.99, 319.73, 264.06, 324.05, 285.69, 325.91, 296.19, 321.58, 324.0, 299.34, 330.8, 299.95, 326.47, 323.44, 317.82, 343.21, 312.88, 351.25, 302.37, 346.3, 294.96, 338.27, 275.8, 340.74, 253.55, 341.36, 233.78, 338.89, 223.27, 341.98, 228.83, 351.86, 228.22, 372.26, 220.8, 387.09, 212.77, 403.15, 205.97, 416.13, 199.79, 422.93, 222.04, 429.11, 199.17, 432.82, 173.84, 427.87, 160.24, 420.46, 168.27, 405.01, 175.69, 397.59, 180.02, 392.65, 182.49, 382.76, 170.13, 391.41, 154.68, 397.59, 152.21, 410.57, 155.3, 426.02, 152.21, 435.29, 146.65, 439.0, 108.33, 434.67, 86.09, 432.82, 55.19, 435.29, 49.63, 426.02, 49.63, 413.66, 61.99, 408.72, 74.96, 403.77, 68.17, 387.7, 70.64, 379.05, 83.61, 361.13, 91.03, 340.12, 108.95, 310.46, 118.84, 291.92, 128.11, 275.24, 148.5, 271.53, 154.06, 267.2, 152.21, 257.93, 162.1, 243.72, 170.13, 232.6, 184.34, 228.27]], "area": 25196.980600000003, "iscrowd": 0, "image_id": 550028, "bbox": [49.63, 228.27, 281.17, 210.73], "category_id": 1, "id": 540266}, {"segmentation": [[337.98, 263.29, 333.66, 253.22, 326.47, 243.15, 339.42, 194.25, 353.8, 172.68, 372.49, 158.3, 373.93, 130.97, 371.06, 106.52, 333.66, 64.81, 320.72, 51.87, 314.97, 38.93, 309.21, 21.67, 287.64, 23.11, 274.7, 48.99, 274.7, 74.88, 263.19, 79.2, 248.81, 106.52, 260.31, 152.55, 260.31, 153.98, 268.94, 155.42, 256.0, 175.56, 260.31, 195.69, 266.07, 197.13, 283.33, 204.32, 291.96, 241.71, 293.39, 244.59, 287.64, 279.11, 304.9, 284.86, 329.35, 281.98, 337.98, 269.04]], "area": 18985.06880000001, "iscrowd": 0, "image_id": 463224, "bbox": [248.81, 21.67, 125.12, 263.19], "category_id": 1, "id": 540778}, {"segmentation": [[333.51, 169.36, 331.78, 161.27, 327.73, 157.8, 324.26, 152.6, 322.53, 146.24, 317.32, 135.83, 309.23, 119.65, 293.05, 124.85, 293.05, 137.57, 288.42, 148.55, 284.95, 158.38, 282.06, 171.1, 276.28, 187.28, 278.6, 195.95, 284.38, 202.89, 289.0, 205.78, 306.92, 208.67, 316.75, 211.56, 323.11, 203.47, 324.26, 198.26, 324.26, 191.33, 330.04, 176.88, 336.98, 165.31]], "area": 3359.7140499999987, "iscrowd": 0, "image_id": 280765, "bbox": [276.28, 119.65, 60.7, 91.91], "category_id": 1, "id": 541026}, {"segmentation": [[177.05, 59.65, 177.05, 75.61, 195.92, 98.83, 206.08, 111.89, 222.04, 130.76, 229.3, 145.27, 233.65, 156.88, 252.52, 152.53, 253.97, 136.56, 255.42, 113.34, 264.13, 85.77, 255.42, 78.51, 240.91, 64.0, 230.75, 45.13, 214.78, 8.85, 207.53, 8.85, 200.27, 16.11, 185.76, 37.88, 182.86, 61.1, 182.86, 68.35]], "area": 6692.4004, "iscrowd": 0, "image_id": 463224, "bbox": [177.05, 8.85, 87.08, 148.03], "category_id": 1, "id": 541872}, {"segmentation": [[138.98, 274.48, 138.13, 256.63, 133.46, 248.55, 136.43, 243.88, 136.86, 241.33, 141.11, 226.88, 133.88, 209.45, 121.56, 200.52, 110.93, 200.95, 107.11, 201.37, 96.91, 201.37, 86.28, 211.15, 83.73, 222.63, 80.76, 227.3, 60.36, 240.05, 51.0, 245.58, 37.83, 256.63, 29.33, 268.53, 19.13, 281.7, 9.78, 288.08, 4.25, 301.68, 2.98, 315.7, 6.8, 328.03, 12.75, 336.95, 21.25, 340.35, 26.35, 341.2, 28.9, 348.43, 32.73, 355.23, 28.48, 361.6, 31.45, 363.3, 37.83, 361.18, 34.85, 369.68, 29.75, 382.86, 27.63, 387.96, 26.78, 393.91, 22.53, 400.71, 18.28, 407.08, 14.45, 416.01, 13.18, 428.76, 16.15, 434.71, 31.45, 435.13, 45.48, 436.83, 51.43, 427.91, 47.18, 419.41, 57.38, 401.56, 68.43, 387.11, 72.26, 372.23, 73.96, 362.45, 81.18, 365.43, 91.81, 342.48, 104.56, 320.38, 117.31, 294.03, 124.92, 278.6]], "area": 16169.614150000003, "iscrowd": 0, "image_id": 550028, "bbox": [2.98, 200.52, 138.13, 236.31], "category_id": 1, "id": 542449}, {"segmentation": [[4.31, 346.61, 20.13, 327.91, 21.57, 316.4, 17.26, 302.02, 20.13, 280.45, 27.33, 267.51, 40.27, 261.75, 58.97, 258.88, 70.47, 266.07, 76.22, 264.63, 79.1, 274.7, 83.42, 290.52, 73.35, 304.9, 67.6, 329.35, 96.36, 345.17, 117.93, 358.11, 123.69, 405.57, 129.44, 445.84, 128.0, 458.79, 107.87, 470.29, 102.11, 481.8, 100.67, 493.3, 104.99, 496.18, 110.74, 506.25, 112.18, 513.44, 117.93, 526.38, 117.93, 526.38, 126.56, 535.01, 138.07, 553.71, 138.07, 558.02, 138.07, 563.78, 138.07, 568.09, 138.07, 575.28, 138.07, 581.03, 136.63, 583.91, 133.75, 595.42, 133.75, 604.04, 135.19, 614.11, 119.37, 624.18, 7.19, 628.49, 11.51, 612.67, 12.94, 596.85, 5.75, 572.4, 1.44, 559.46, 1.44, 349.48]], "area": 38453.913949999995, "iscrowd": 0, "image_id": 34354, "bbox": [1.44, 258.88, 136.63, 369.61], "category_id": 1, "id": 542501}, {"segmentation": [[59.07, 133.78, 48.71, 181.45, 50.78, 193.89, 62.18, 212.54, 69.43, 221.87, 68.39, 239.48, 67.36, 266.43, 69.43, 291.3, 69.43, 294.41, 72.54, 310.99, 78.76, 338.97, 78.76, 361.77, 78.76, 370.06, 92.23, 363.84, 103.63, 363.84, 111.92, 356.58, 112.95, 346.22, 111.92, 328.6, 108.81, 314.1, 108.81, 307.88, 109.85, 306.84, 120.21, 317.21, 129.54, 342.08, 129.54, 346.22, 129.54, 346.22, 150.26, 341.04, 151.3, 341.04, 156.48, 337.93, 156.48, 337.93, 158.55, 306.84, 164.77, 283.01, 150.26, 212.54, 168.91, 156.58, 133.68, 113.06, 117.1, 67.46, 109.85, 55.03, 77.72, 53.99, 79.79, 94.41, 75.65, 108.91, 51.81, 135.86, 53.89, 154.51]], "area": 24410.009950000003, "iscrowd": 0, "image_id": 139571, "bbox": [48.71, 53.99, 120.2, 316.07], "category_id": 1, "id": 542528}, {"segmentation": [[377.01, 259.51, 378.06, 255.84, 376.48, 250.85, 379.89, 248.75, 382.78, 247.71, 383.57, 244.03, 383.57, 240.89, 386.71, 240.89, 388.55, 242.46, 389.34, 243.77, 389.34, 246.39, 389.6, 249.02, 390.91, 251.38, 391.43, 254.26, 393.01, 255.57, 395.89, 256.1, 397.99, 258.98, 398.78, 261.08, 395.89, 260.82, 392.75, 260.82, 391.96, 262.39, 391.43, 264.23, 391.43, 266.85, 391.7, 268.69, 391.17, 269.21, 384.09, 268.69, 381.73, 268.69, 378.32, 268.69, 375.43, 266.59, 375.43, 266.33]], "area": 365.85044999999985, "iscrowd": 0, "image_id": 165347, "bbox": [375.43, 240.89, 23.35, 28.32], "category_id": 1, "id": 542555}, {"segmentation": [[266.41, 103.18, 252.29, 102.15, 252.98, 113.51, 248.16, 125.21, 251.26, 125.56, 252.29, 129.69, 271.22, 132.1, 268.13, 135.88, 269.5, 172.37, 278.8, 174.44, 277.42, 168.93, 280.52, 166.52, 280.52, 144.49, 271.57, 135.54, 270.54, 116.95, 269.85, 108.35]], "area": 915.5314500000001, "iscrowd": 0, "image_id": 275917, "bbox": [248.16, 102.15, 32.36, 72.29], "category_id": 1, "id": 542556}, {"segmentation": [[308.43, 236.8, 304.21, 201.4, 311.8, 151.69, 306.74, 145.79, 318.54, 126.4, 318.54, 110.39, 321.07, 106.18, 335.39, 108.71, 335.39, 126.4, 341.29, 151.69, 335.39, 205.62, 344.66, 242.7, 312.64, 247.75, 305.9, 247.75, 305.9, 237.64]], "area": 3996.2641000000003, "iscrowd": 0, "image_id": 265532, "bbox": [304.21, 106.18, 40.45, 141.57], "category_id": 1, "id": 542943}, {"segmentation": [[626.14, 180.77, 623.91, 182.52, 624.07, 183.79, 624.39, 185.7, 624.23, 186.65, 622.8, 188.24, 620.58, 187.6, 621.05, 189.03, 622.8, 191.42, 622.96, 191.57, 622.64, 197.13, 622.48, 202.85, 623.12, 206.03, 623.75, 209.05, 623.28, 213.82, 625.34, 217.31, 627.57, 217.95, 628.52, 215.41, 629.0, 213.5, 629.16, 212.39, 629.47, 210.96, 629.63, 210.48, 629.47, 206.35, 629.47, 203.81, 629.95, 201.74, 631.22, 201.27, 632.33, 200.79, 632.17, 192.05, 633.29, 187.6, 634.4, 186.97, 634.56, 186.17, 632.17, 182.2, 631.86, 181.25, 631.86, 179.98, 631.06, 177.75, 631.06, 176.8, 630.74, 175.85, 628.04, 174.1, 624.87, 174.26, 623.91, 175.05, 622.8, 175.69, 622.48, 176.16, 622.48, 178.71, 624.55, 180.29, 625.02, 180.29]], "area": 341.16289999999975, "iscrowd": 0, "image_id": 576322, "bbox": [620.58, 174.1, 13.98, 43.85], "category_id": 1, "id": 543935}, {"segmentation": [[621.37, 168.44, 616.09, 147.98, 620.05, 125.54, 640.0, 123.56, 638.53, 161.18, 629.29, 167.78, 628.63, 172.4], [618.07, 120.92, 622.69, 100.46, 618.73, 99.14, 617.41, 81.32, 621.37, 61.53, 640.0, 53.61, 640.0, 117.62]], "area": 2150.737199999998, "iscrowd": 0, "image_id": 502517, "bbox": [616.09, 53.61, 23.91, 118.79], "category_id": 1, "id": 544585}, {"segmentation": [[322.16, 216.22, 324.32, 195.68, 331.89, 174.05, 339.46, 166.49, 345.95, 160.0, 345.95, 148.11, 348.11, 137.3, 358.92, 134.05, 367.57, 136.22, 372.97, 148.11, 372.97, 161.08, 379.46, 169.73, 384.86, 177.3, 387.03, 192.43, 379.46, 200.0, 358.92, 207.57, 342.7, 212.97, 330.81, 223.78, 325.41, 223.78], [339.46, 300.54, 344.86, 318.92, 349.19, 341.62, 353.51, 352.43, 361.08, 360.0, 365.41, 361.08, 374.05, 361.08, 377.3, 358.92, 382.7, 357.84, 384.86, 348.11, 384.86, 342.7, 384.86, 324.32, 385.95, 308.11, 387.03, 298.38, 369.73, 301.62, 369.73, 318.92, 369.73, 328.65, 362.16, 313.51, 362.16, 299.46, 361.08, 292.97]], "area": 5448.464899999999, "iscrowd": 0, "image_id": 280765, "bbox": [322.16, 134.05, 64.87, 227.03], "category_id": 1, "id": 545171}, {"segmentation": [[69.09, 399.84, 109.39, 388.32, 121.86, 370.09, 143.93, 337.47, 156.41, 295.25, 157.37, 270.3, 176.56, 255.91, 198.63, 222.32, 197.67, 206.97, 196.71, 176.26, 187.11, 139.8, 184.23, 115.81, 183.27, 88.94, 191.91, 79.35, 203.42, 71.67, 203.42, 64.96, 196.71, 59.2, 187.11, 50.56, 180.4, 44.81, 185.19, 37.13, 189.99, 30.41, 209.18, 17.94, 247.56, 27.53, 257.16, 39.05, 257.16, 64.0, 257.16, 67.83, 307.06, 61.12, 370.39, 44.81, 376.14, 48.64, 336.8, 61.12, 339.68, 63.04, 355.03, 78.39, 289.78, 87.99, 322.41, 127.33, 346.4, 93.74, 362.71, 78.39, 384.78, 77.43, 390.54, 87.03, 358.87, 94.7, 352.16, 104.3, 324.33, 158.99, 308.02, 155.15, 295.54, 144.6, 281.15, 128.29, 280.19, 158.03, 270.59, 195.46, 278.27, 212.73, 278.27, 238.63, 263.88, 256.87, 263.88, 259.74, 269.63, 320.2, 326.25, 348.02, 356.95, 370.09, 378.06, 385.45, 379.98, 396.0, 351.2, 414.23, 339.68, 419.03, 309.93, 418.07, 308.98, 415.19, 316.65, 410.39, 335.84, 396.96, 330.09, 387.37, 297.46, 372.97, 271.55, 353.78, 250.44, 347.06, 241.81, 341.31, 209.18, 290.45, 193.83, 301.01, 172.72, 347.06, 145.85, 368.17, 145.85, 394.08, 142.01, 416.15, 73.89, 416.15, 70.05, 405.6, 70.05, 399.84]], "area": 39885.43604999998, "iscrowd": 0, "image_id": 502517, "bbox": [69.09, 17.94, 321.45, 401.09], "category_id": 1, "id": 545440}, {"segmentation": [[379.8, 296.88, 386.58, 295.53, 390.64, 291.46, 394.7, 281.98, 396.05, 272.96, 397.86, 266.64, 401.92, 258.96, 403.73, 249.03, 400.12, 239.55, 395.6, 235.04, 391.54, 233.69, 391.09, 229.62, 391.54, 219.69, 390.19, 216.53, 387.93, 213.82, 382.51, 214.27, 378.45, 218.79, 378.0, 222.85, 379.8, 227.82, 378.9, 232.33, 375.74, 235.94, 374.84, 237.3, 374.84, 237.3, 377.55, 238.2, 378.45, 243.62, 379.35, 249.94, 379.8, 256.26, 384.32, 258.51, 385.67, 261.67, 382.51, 265.73, 381.16, 270.25, 381.16, 272.51, 381.16, 276.12, 382.96, 277.92, 387.03, 280.63, 385.22, 283.79, 381.16, 286.5, 381.16, 288.76]], "area": 1255.897199999999, "iscrowd": 0, "image_id": 16125, "bbox": [374.84, 213.82, 28.89, 83.06], "category_id": 1, "id": 546178}, {"segmentation": [[114.72, 362.89, 113.82, 357.18, 115.02, 355.68, 115.47, 346.96, 115.62, 344.26, 116.97, 341.55, 117.28, 338.25, 118.63, 337.8, 119.98, 340.95, 120.88, 343.21, 120.13, 346.81, 119.08, 349.97, 119.53, 352.07, 118.48, 355.38, 116.37, 360.49, 114.87, 362.29]], "area": 85.46285000000009, "iscrowd": 0, "image_id": 448061, "bbox": [113.82, 337.8, 7.06, 25.09], "category_id": 1, "id": 548093}, {"segmentation": [[269.5, 290.92, 244.35, 271.23, 235.96, 263.21, 230.49, 251.91, 211.54, 247.17, 197.32, 245.71, 201.33, 232.59, 204.97, 223.84, 210.81, 216.55, 218.1, 211.81, 226.85, 204.15, 225.76, 193.95, 212.63, 183.01, 208.26, 173.53, 219.56, 152.38, 230.86, 140.72, 252.73, 139.26, 264.03, 155.67, 269.87, 179.73, 267.68, 202.7, 287.0, 212.54, 290.28, 217.64, 293.57, 231.86, 298.3, 246.81, 297.21, 265.04, 288.1, 264.67, 281.9, 268.32, 288.83, 281.81, 273.15, 286.91]], "area": 8543.957049999999, "iscrowd": 0, "image_id": 91307, "bbox": [197.32, 139.26, 100.98, 151.66], "category_id": 1, "id": 549251}, {"segmentation": [[455.62, 174.93, 458.76, 168.65, 462.95, 166.55, 468.18, 170.74, 468.18, 174.93, 469.23, 180.17, 475.52, 190.64, 476.56, 206.35, 472.37, 216.82, 471.33, 221.01, 467.14, 221.01, 463.99, 221.01, 461.9, 211.59, 459.81, 208.45, 454.57, 210.54, 449.33, 216.82, 451.43, 218.92, 448.29, 223.11, 446.19, 215.78, 442.0, 206.35, 445.14, 192.74, 447.24, 184.36, 439.91, 174.93, 427.34, 165.51, 430.48, 163.41, 437.81, 167.6, 453.52, 174.93, 456.66, 175.98]], "area": 1389.14345, "iscrowd": 0, "image_id": 483948, "bbox": [427.34, 163.41, 49.22, 59.7], "category_id": 1, "id": 549701}, {"segmentation": [[399.58, 179.82, 400.1, 161.36, 399.58, 155.21, 396.51, 153.16, 392.41, 144.96, 388.82, 134.19, 392.41, 126.5, 398.05, 122.91, 393.94, 114.7, 390.35, 108.04, 379.07, 114.19, 382.15, 122.91, 386.25, 129.06, 384.71, 136.24, 380.1, 152.13, 382.66, 166.49, 392.92, 182.9]], "area": 871.3816499999999, "iscrowd": 0, "image_id": 265532, "bbox": [379.07, 108.04, 21.03, 74.86], "category_id": 1, "id": 549893}, {"segmentation": [[28.26, 282.69, 20.24, 281.48, 24.29, 271.65, 24.29, 264.7, 24.29, 261.81, 20.24, 254.29, 14.46, 246.77, 0.0, 249.08, 0.57, 395.46, 19.09, 367.69, 28.34, 352.07, 31.82, 347.44, 35.29, 341.07, 35.87, 339.34, 42.81, 319.09, 43.39, 315.62, 57.27, 314.46, 44.54, 332.97, 44.54, 343.97, 47.44, 348.6, 53.8, 346.86, 57.85, 341.65, 65.37, 330.66, 68.27, 326.61, 76.37, 313.3, 75.79, 304.62, 66.53, 297.1, 47.44, 283.8, 41.07, 280.32, 32.97, 281.48]], "area": 5460.771649999998, "iscrowd": 0, "image_id": 156170, "bbox": [0.0, 246.77, 76.37, 148.69], "category_id": 1, "id": 552414}, {"segmentation": [[486.38, 125.39, 483.35, 119.95, 495.44, 113.31, 500.0, 131.43, 496.65, 171.91, 492.42, 176.75, 500.0, 199.1, 497.25, 205.14, 480.94, 206.35, 484.56, 195.48, 481.54, 177.95, 482.75, 161.04, 494.23, 155.0, 496.65, 144.12, 496.04, 137.47]], "area": 947.168049999999, "iscrowd": 0, "image_id": 265532, "bbox": [480.94, 113.31, 19.06, 93.04], "category_id": 1, "id": 552478}, {"segmentation": [[133.46, 215.87, 134.83, 213.47, 135.51, 212.56, 135.4, 209.93, 135.29, 207.08, 136.09, 204.68, 134.03, 201.94, 130.83, 201.02, 126.95, 201.02, 122.61, 205.25, 119.42, 211.3, 120.22, 215.07, 117.93, 217.92, 116.11, 222.72, 115.19, 227.4, 115.99, 235.39, 119.76, 235.27, 120.56, 235.27, 120.44, 232.31, 116.22, 228.2, 116.22, 225.68, 119.53, 223.29, 122.96, 224.77, 124.33, 226.94, 127.64, 226.94, 129.12, 226.14, 131.18, 226.71, 133.12, 229.34, 135.51, 229.68, 137.46, 229.57, 137.23, 226.14, 135.86, 222.6, 134.26, 220.32, 134.26, 217.01]], "area": 420.6565999999999, "iscrowd": 0, "image_id": 16125, "bbox": [115.19, 201.02, 22.27, 34.37], "category_id": 1, "id": 552564}, {"segmentation": [[128.66, 288.86, 127.7, 279.33, 133.42, 266.94, 140.09, 263.13, 142.95, 260.27, 142.95, 253.6, 142.95, 246.92, 142.95, 237.39, 147.72, 232.63, 151.53, 231.68, 162.01, 235.49, 163.0, 257.85, 173.69, 262.88, 179.98, 277.97, 179.98, 288.66, 179.98, 294.32, 175.58, 327.64, 169.29, 333.93, 166.77, 340.85, 172.43, 355.94, 177.46, 382.34, 173.69, 390.52, 168.66, 397.43, 164.26, 394.92, 158.6, 391.15, 151.68, 389.26, 147.28, 388.63, 141.0, 386.75, 139.74, 376.06, 137.85, 368.51, 134.08, 354.68, 132.82, 343.99, 131.56, 328.27, 134.08, 324.5, 144.14, 313.18, 154.2, 307.52, 152.94, 299.98, 145.4, 296.83, 137.85, 294.95]], "area": 5543.453450000002, "iscrowd": 0, "image_id": 156170, "bbox": [127.7, 231.68, 52.28, 165.75], "category_id": 1, "id": 552665}, {"segmentation": [[234.3, 223.02, 252.24, 221.83, 249.05, 205.49, 246.26, 193.93, 249.45, 173.2, 255.03, 169.61, 255.03, 163.63, 258.22, 158.05, 261.41, 152.07, 257.82, 142.5, 256.62, 136.52, 254.63, 129.35, 250.64, 124.57, 245.06, 120.58, 244.67, 113.8, 244.27, 111.01, 241.08, 107.03, 235.5, 106.23, 230.71, 110.61, 230.31, 114.6, 228.72, 115.4, 230.31, 118.59, 230.71, 121.38, 233.11, 124.17, 226.73, 129.35, 225.13, 136.92, 233.11, 147.69, 235.1, 158.05, 234.7, 186.35, 234.7, 195.52, 235.1, 208.28]], "area": 2155.464100000001, "iscrowd": 0, "image_id": 265532, "bbox": [225.13, 106.23, 36.28, 116.79], "category_id": 1, "id": 552835}, {"segmentation": [[452.4, 184.97, 458.04, 186.22, 463.04, 184.34, 472.43, 183.72, 478.06, 181.84, 483.07, 179.34, 481.81, 184.97, 474.93, 186.85, 465.55, 190.6, 452.4, 191.23, 451.78, 195.61, 457.41, 211.88, 458.66, 220.64, 458.04, 235.03, 461.17, 241.91, 466.17, 249.42, 465.55, 257.55, 458.66, 258.18, 459.91, 251.92, 457.41, 244.41, 452.4, 236.28, 448.65, 235.03, 448.02, 230.02, 442.39, 233.15, 435.51, 234.4, 432.38, 240.66, 428.63, 246.29, 425.5, 251.92, 423.0, 255.68, 417.36, 254.43, 422.37, 246.29, 425.5, 240.03, 430.5, 233.15, 433.01, 228.14, 433.01, 219.38, 436.76, 214.38, 434.88, 204.99, 431.76, 201.86, 427.38, 205.62, 425.5, 211.25, 431.76, 217.51, 428.0, 220.01, 423.0, 211.88, 421.12, 206.87, 423.0, 199.99, 425.5, 195.61, 428.63, 189.35, 430.5, 188.72, 429.25, 182.47, 429.88, 176.83, 434.26, 173.71, 439.89, 176.21, 442.39, 181.84, 441.14, 182.47, 446.77, 184.34]], "area": 1832.1495499999999, "iscrowd": 0, "image_id": 86620, "bbox": [417.36, 173.71, 65.71, 84.47], "category_id": 1, "id": 553783}, {"segmentation": [[492.89, 238.99, 499.91, 233.67, 503.53, 233.04, 505.66, 233.04, 508.63, 233.04, 510.34, 233.46, 510.76, 233.89, 508.21, 242.4, 500.55, 244.95, 502.68, 247.5, 506.08, 250.9, 507.78, 253.03, 512.04, 246.86, 513.74, 242.4, 515.44, 238.57, 517.14, 233.25, 517.36, 228.78, 516.72, 223.25, 514.8, 216.87, 512.68, 211.34, 512.04, 209.42, 509.49, 204.11, 508.63, 200.92, 508.42, 198.15, 506.08, 197.09, 500.98, 196.24, 498.42, 197.3, 497.79, 198.36, 497.79, 201.77, 497.57, 205.81, 497.57, 207.3, 496.72, 208.57, 496.08, 210.06, 494.17, 212.61, 493.96, 214.53, 492.47, 238.78]], "area": 822.6407499999995, "iscrowd": 0, "image_id": 531032, "bbox": [492.47, 196.24, 24.89, 56.79], "category_id": 1, "id": 553785}, {"segmentation": [[45.74, 235.07, 43.73, 247.13, 48.0, 249.39, 51.52, 263.71, 61.82, 262.71, 61.06, 256.68, 57.8, 250.65, 54.78, 246.63, 56.54, 244.37, 57.05, 243.61, 57.05, 238.34, 55.29, 236.08, 47.75, 234.57, 46.75, 234.57], [54.03, 269.99, 55.79, 298.88, 62.82, 296.37, 61.32, 292.85, 59.31, 291.34, 58.8, 288.08, 61.82, 283.81, 63.58, 280.79, 63.58, 278.03, 62.57, 274.76, 61.57, 267.23, 61.57, 266.73, 52.77, 267.73]], "area": 520.8247499999995, "iscrowd": 0, "image_id": 531032, "bbox": [43.73, 234.57, 19.85, 64.31], "category_id": 1, "id": 553956}, {"segmentation": [[245.07, 37.89, 243.6, 45.67, 243.46, 51.18, 246.41, 56.01, 246.55, 68.09, 243.33, 66.35, 241.72, 62.18, 241.58, 59.1, 240.64, 56.68, 238.09, 55.07, 238.63, 51.18, 238.76, 38.96, 239.03, 35.74, 241.31, 33.06, 243.06, 32.65, 240.78, 31.18, 240.78, 28.76, 240.78, 24.6, 242.39, 22.99, 245.61, 22.72, 247.22, 22.45, 248.97, 24.73, 250.04, 29.03, 249.9, 33.59]], "area": 277.6118000000001, "iscrowd": 0, "image_id": 277472, "bbox": [238.09, 22.45, 11.95, 45.64], "category_id": 1, "id": 554050}, {"segmentation": [[508.41, 148.66, 507.24, 151.16, 502.99, 154.82, 502.11, 160.39, 504.16, 162.29, 503.43, 170.79, 504.46, 173.57, 503.43, 180.31, 504.02, 184.12, 502.26, 186.03, 507.39, 185.74, 507.39, 181.05, 509.0, 175.04, 509.44, 186.32, 516.18, 186.18, 516.18, 184.12, 513.54, 173.13, 513.98, 166.98, 514.71, 164.2, 514.71, 171.08, 517.2, 169.62, 517.64, 160.53, 516.32, 154.67, 513.69, 151.3, 512.66, 147.79, 511.2, 147.05, 508.7, 147.2]], "area": 427.3970499999994, "iscrowd": 0, "image_id": 311522, "bbox": [502.11, 147.05, 15.53, 39.27], "category_id": 1, "id": 554344}, {"segmentation": [[1.59, 294.33, 16.58, 310.47, 20.8, 342.37, 14.27, 347.75, 0.82, 357.74, 0.43, 294.33]], "area": 872.9245, "iscrowd": 0, "image_id": 502517, "bbox": [0.43, 294.33, 20.37, 63.41], "category_id": 1, "id": 554393}, {"segmentation": [[59.65, 421.47, 58.09, 400.19, 59.13, 397.07, 65.62, 395.78, 73.14, 399.15, 76.26, 399.93, 84.82, 383.32, 94.94, 381.24, 90.79, 375.01, 89.23, 367.49, 92.35, 360.74, 100.13, 360.74, 105.32, 362.81, 109.48, 366.97, 104.81, 378.65, 114.67, 384.61, 108.7, 390.06, 101.17, 403.82, 89.23, 411.86, 83.01, 421.21, 74.7, 432.36, 69.51, 428.73, 72.37, 414.72, 68.99, 413.68, 65.62, 430.81, 57.57, 430.03, 57.83, 424.84]], "area": 1728.7564500000003, "iscrowd": 0, "image_id": 399441, "bbox": [57.57, 360.74, 57.1, 71.62], "category_id": 1, "id": 554402}, {"segmentation": [[535.72, 61.36, 533.11, 57.88, 533.11, 53.54, 533.98, 50.07, 537.45, 44.86, 540.06, 42.26, 559.43, 30.94, 557.54, 29.05, 554.71, 24.33, 550.94, 22.45, 557.54, 17.73, 566.97, 14.9, 573.58, 23.39, 580.18, 34.71, 584.9, 40.37, 584.9, 41.32, 598.68, 58.92, 598.0, 61.62, 598.68, 62.98, 536.45, 62.3], [541.19, 79.89, 543.89, 83.27, 543.89, 88.0, 543.89, 89.35, 546.6, 91.38, 548.63, 92.74, 554.04, 92.74, 560.8, 92.06, 570.95, 92.74, 574.33, 90.71, 578.39, 90.71, 579.74, 92.06, 581.77, 90.71, 581.77, 88.0, 581.09, 85.97, 581.09, 80.56, 578.39, 79.89, 570.95, 79.89, 564.18, 80.56, 545.92, 79.21, 543.89, 79.21]], "area": 2268.7768499999993, "iscrowd": 0, "image_id": 558286, "bbox": [533.11, 14.9, 65.57, 77.84], "category_id": 1, "id": 554497}, {"segmentation": [[439.19, 228.52, 438.01, 229.83, 431.49, 230.3, 429.47, 232.44, 427.1, 231.96, 432.32, 226.63, 433.74, 224.26, 433.98, 219.16, 434.81, 217.62, 438.84, 216.79, 441.8, 218.56, 442.51, 219.87, 443.11, 223.78, 441.92, 226.27]], "area": 116.78210000000013, "iscrowd": 0, "image_id": 531032, "bbox": [427.1, 216.79, 16.01, 15.65], "category_id": 1, "id": 554574}, {"segmentation": [[127.91, 132.24, 145.22, 138.01, 155.8, 161.09, 150.99, 209.17, 184.65, 228.41, 279.86, 257.26, 376.99, 265.91, 358.72, 298.61, 371.22, 315.92, 407.77, 294.76, 420.27, 282.26, 464.51, 252.45, 502.01, 236.1, 540.48, 207.25, 547.21, 200.52, 552.02, 207.25, 545.29, 229.37, 502.98, 284.19, 441.43, 341.89, 412.57, 370.74, 391.42, 427.0, 95.21, 427.0, 77.9, 363.05, 64.43, 294.76, 45.2, 254.37, 47.12, 222.64, 52.89, 213.02, 89.44, 183.21, 100.98, 160.13, 114.44, 140.89, 125.98, 128.39]], "area": 74339.67525, "iscrowd": 0, "image_id": 538990, "bbox": [45.2, 128.39, 506.82, 298.61], "category_id": 1, "id": 555512}, {"segmentation": [[110.02, 310.21, 109.8, 312.75, 113.33, 315.84, 112.89, 321.47, 109.36, 321.8, 110.68, 325.33, 113.44, 326.65, 113.88, 328.09, 109.69, 330.74, 109.36, 336.15, 109.69, 340.12, 109.91, 344.53, 105.05, 346.08, 105.28, 347.84, 111.24, 348.84, 112.78, 348.07, 113.44, 339.68, 113.66, 337.03, 116.53, 333.5, 118.19, 338.46, 121.17, 340.23, 121.94, 337.25, 124.7, 336.03, 123.16, 331.18, 121.72, 325.0, 121.5, 321.69, 121.28, 315.84, 118.63, 312.64, 116.64, 309.99, 113.88, 308.33, 112.34, 308.33]], "area": 344.3956499999998, "iscrowd": 0, "image_id": 187474, "bbox": [105.05, 308.33, 19.65, 40.51], "category_id": 1, "id": 555729}, {"segmentation": [[309.79, 286.95, 308.18, 278.08, 308.18, 276.47, 308.18, 273.24, 308.18, 271.63, 308.18, 267.59, 309.79, 261.94, 310.6, 257.1, 312.21, 249.04, 312.21, 244.2, 314.63, 239.36, 317.05, 224.83, 314.63, 215.15, 311.4, 215.15, 308.98, 219.99, 303.33, 224.03, 299.3, 224.83, 296.07, 223.22, 293.65, 219.19, 291.23, 212.73, 288.81, 206.28, 286.39, 202.25, 282.36, 196.6, 275.91, 190.95, 276.71, 190.14, 279.13, 187.72, 280.75, 186.11, 288.81, 194.98, 296.07, 206.28, 303.33, 207.89, 304.14, 202.25, 304.95, 198.21, 306.56, 198.21, 306.56, 194.98, 307.37, 190.95, 315.44, 187.72, 318.66, 183.69, 314.63, 183.69, 311.4, 179.66, 308.98, 173.2, 308.98, 166.75, 313.02, 159.49, 316.24, 156.26, 320.28, 153.84, 335.6, 154.65, 350.93, 155.45, 353.35, 160.3, 350.13, 175.62, 348.51, 179.66, 350.93, 183.69, 358.19, 202.25, 359.81, 208.7, 380.78, 270.82, 374.33, 277.27, 368.68, 274.85, 364.65, 270.82, 361.42, 263.56, 361.42, 250.65, 344.48, 220.8, 344.48, 228.06, 357.39, 287.76, 356.58, 297.44, 367.87, 309.54, 373.52, 336.16, 368.68, 356.96, 355.77, 357.77, 347.71, 351.31, 347.71, 346.47, 351.74, 340.83, 353.35, 340.02, 353.35, 339.21, 350.93, 326.3, 335.6, 294.84, 335.6, 294.84, 332.38, 295.65, 333.18, 303.72, 335.6, 326.3, 335.6, 334.37, 335.6, 340.83, 333.18, 346.47, 325.12, 352.12, 322.7, 354.54, 318.66, 355.35, 317.05, 356.15, 310.6, 356.15, 303.33, 353.73, 296.07, 349.7, 299.3, 344.05, 308.18, 337.6, 314.63, 332.76, 316.24, 330.34, 317.05, 321.46, 318.66, 314.2]], "area": 9798.885699999999, "iscrowd": 0, "image_id": 562845, "bbox": [275.91, 153.84, 104.87, 203.93], "category_id": 1, "id": 556223}, {"segmentation": [[308.41, 40.89, 309.6, 38.86, 310.56, 37.79, 310.56, 36.0, 310.56, 34.22, 310.2, 31.83, 311.51, 26.59, 317.71, 22.54, 323.42, 24.45, 325.69, 26.95, 325.57, 28.62, 325.57, 29.57, 327.35, 32.19, 326.64, 34.57, 324.61, 35.05, 321.4, 40.53, 318.78, 42.67, 326.04, 49.23, 326.28, 62.69, 327.12, 66.14, 324.61, 66.62, 323.66, 67.33, 323.18, 79.13, 322.83, 84.25, 320.09, 93.06, 316.28, 96.28, 311.03, 112.01, 309.13, 122.85, 304.24, 135.83, 303.65, 142.26, 302.81, 145.36, 306.39, 145.24, 308.53, 146.43, 309.49, 149.77, 308.53, 150.84, 304.12, 151.32, 293.28, 150.13, 292.21, 148.46, 292.57, 146.67, 292.57, 143.1, 293.64, 137.86, 296.38, 125.11, 299.72, 112.13, 300.43, 104.5, 297.33, 106.53, 293.76, 122.85, 291.74, 129.16, 290.42, 135.95, 289.83, 139.41, 286.49, 143.93, 289.83, 150.96, 288.16, 152.63, 282.8, 151.56, 279.58, 150.72, 276.13, 148.46, 275.77, 145.48, 277.2, 140.72, 278.27, 137.26, 279.23, 129.52, 287.33, 120.46, 289.35, 113.91, 291.38, 99.38, 297.93, 94.61, 297.22, 88.54, 290.07, 84.84, 288.88, 80.79, 286.97, 74.84, 287.09, 70.43, 287.09, 68.29, 290.66, 68.64, 295.43, 63.64, 304.84, 48.15]], "area": 2960.70355, "iscrowd": 0, "image_id": 289693, "bbox": [275.77, 22.54, 51.58, 130.09], "category_id": 1, "id": 556663}, {"segmentation": [[532.62, 346.59, 533.52, 337.57, 533.82, 333.65, 529.91, 333.96, 529.01, 333.05, 532.02, 327.34, 534.72, 321.32, 538.03, 316.81, 542.25, 315.6, 545.56, 316.21, 549.77, 320.42, 553.68, 320.42, 559.39, 322.22, 563.91, 327.64, 566.01, 333.35, 567.82, 335.16, 566.91, 342.68, 561.8, 350.2, 559.69, 351.4, 559.09, 354.19, 556.69, 360.21, 555.18, 360.51, 556.99, 374.65, 557.89, 379.76, 557.29, 386.38, 556.08, 391.49, 550.67, 391.49, 550.07, 390.89, 548.86, 386.98, 544.65, 384.57, 544.35, 378.56, 546.46, 376.75, 547.06, 366.82, 544.65, 359.6, 545.86, 352.68, 547.96, 349.38, 539.84, 355.69, 537.43, 357.8, 539.54, 362.01, 538.94, 370.73, 538.03, 377.95, 537.73, 380.36, 537.73, 384.57, 536.83, 390.59, 530.51, 389.69, 529.01, 386.68, 523.59, 384.87, 521.19, 382.17, 522.09, 377.65, 524.8, 376.45, 528.71, 377.95, 529.61, 366.52, 530.81, 355.39, 532.62, 350.28]], "area": 1872.4309499999995, "iscrowd": 0, "image_id": 403627, "bbox": [521.19, 315.6, 46.63, 75.89], "category_id": 1, "id": 557676}, {"segmentation": [[456.53, 237.07, 461.22, 239.83, 463.43, 244.53, 460.67, 249.22, 459.01, 248.95, 457.91, 251.43, 459.84, 259.72, 460.94, 264.97, 469.78, 271.6, 471.99, 275.46, 472.54, 277.12, 464.81, 276.57, 463.98, 274.08, 458.73, 267.18, 455.42, 275.19, 454.04, 276.57, 460.94, 284.58, 460.12, 295.35, 455.42, 294.79, 455.42, 287.06, 451.83, 281.81, 446.58, 287.89, 446.31, 295.07, 441.34, 294.79, 441.34, 286.79, 447.41, 278.22, 440.23, 271.04, 445.2, 267.45, 447.14, 262.21, 448.79, 253.92, 452.11, 250.61, 452.94, 246.74, 451.55, 243.42, 454.32, 237.9]], "area": 708.5558999999996, "iscrowd": 0, "image_id": 310753, "bbox": [440.23, 237.07, 32.31, 58.28], "category_id": 1, "id": 558603}, {"segmentation": [[588.43, 28.28, 594.01, 47.82, 599.19, 55.8, 627.1, 51.41, 640.0, 83.71, 639.86, 185.78, 639.86, 266.33, 639.07, 334.91, 613.94, 329.73, 631.09, 318.16, 619.13, 279.89, 607.57, 280.28, 592.81, 240.41, 585.63, 186.18, 586.03, 175.82, 580.85, 131.56, 571.68, 128.76, 559.72, 96.87, 557.72, 91.68, 568.09, 80.92, 558.52, 75.33, 564.1, 70.15, 573.27, 61.38, 567.29, 53.0, 559.32, 51.01, 557.72, 34.26, 564.5, 27.09, 577.26, 25.09]], "area": 14676.442000000001, "iscrowd": 0, "image_id": 151322, "bbox": [557.72, 25.09, 82.28, 309.82], "category_id": 1, "id": 558688}, {"segmentation": [[254.85, 183.05, 254.06, 168.85, 255.64, 160.96, 261.16, 157.8, 265.9, 160.96, 267.47, 176.74, 273.79, 171.22, 285.62, 155.44, 287.99, 130.19, 297.46, 127.82, 305.35, 127.82, 310.87, 134.92, 313.24, 137.29, 314.82, 149.12, 314.82, 154.65, 314.82, 165.69, 316.39, 171.22, 321.92, 176.74, 323.49, 193.31, 315.6, 199.62, 315.6, 199.62, 314.82, 209.88, 314.82, 218.56, 316.39, 229.6, 316.39, 241.44, 314.82, 252.48, 314.82, 256.43, 310.87, 336.12, 300.61, 359.0, 297.46, 346.38, 287.99, 343.22, 287.99, 330.6, 291.15, 322.71, 293.51, 314.82, 295.09, 299.04, 295.09, 291.15, 293.51, 284.04, 289.57, 274.58, 288.78, 287.99, 284.04, 302.98, 284.83, 303.77, 287.99, 321.13, 281.68, 324.28, 280.89, 328.23, 272.21, 337.7, 264.32, 340.85, 258.8, 337.7, 258.8, 333.75, 258.8, 326.65, 260.37, 323.49, 263.53, 317.97, 264.32, 309.29, 265.9, 297.46, 268.26, 291.15, 266.69, 277.73, 265.9, 276.15, 265.9, 262.74, 268.26, 249.33, 268.26, 240.65, 271.42, 231.97, 273.79, 225.66, 275.36, 220.92, 275.36, 209.88, 265.9, 204.35, 261.95, 212.24, 253.27, 199.62, 253.27, 190.15, 253.27, 183.05]], "area": 9616.2306, "iscrowd": 0, "image_id": 562845, "bbox": [253.27, 127.82, 70.22, 231.18], "category_id": 1, "id": 558754}, {"segmentation": [[26.15, 417.62, 37.77, 399.22, 44.55, 378.89, 48.42, 366.3, 54.23, 349.83, 62.95, 331.43, 64.88, 327.56, 66.82, 313.03, 73.6, 280.11, 72.63, 252.03, 69.72, 242.34, 70.69, 222.01, 85.22, 196.83, 105.56, 174.55, 111.37, 158.09, 105.56, 133.88, 99.74, 121.29, 96.84, 84.49, 96.84, 56.41, 102.65, 36.07, 115.24, 20.58, 126.86, 8.96, 136.54, 4.12, 160.75, 2.18, 210.14, 1.21, 255.66, 10.89, 277.93, 50.6, 280.84, 82.56, 287.61, 117.42, 281.8, 161.0, 275.99, 185.21, 284.71, 200.7, 297.3, 210.38, 320.54, 225.88, 345.72, 238.47, 355.4, 248.15, 383.49, 260.74, 425.13, 274.3, 459.99, 271.39, 474.51, 287.86, 466.77, 314.97, 441.59, 342.09, 435.78, 356.61, 416.41, 369.2, 391.23, 367.26, 336.03, 364.36, 304.08, 370.17, 281.8, 374.04, 273.09, 376.95, 262.44, 393.41, 258.56, 412.78, 255.66, 424.4]], "area": 103205.54809999999, "iscrowd": 0, "image_id": 395893, "bbox": [26.15, 1.21, 448.36, 423.19], "category_id": 1, "id": 559227}, {"segmentation": [[576.96, 136.88, 575.34, 130.41, 578.57, 123.95, 578.57, 123.95, 578.57, 118.3, 584.23, 123.14, 589.88, 132.84, 589.88, 140.92, 587.46, 144.95, 589.08, 156.26, 583.42, 159.5, 583.42, 145.76, 579.38, 155.46, 576.96, 158.69, 576.15, 150.61, 577.77, 139.3]], "area": 385.69640000000044, "iscrowd": 0, "image_id": 311522, "bbox": [575.34, 118.3, 14.54, 41.2], "category_id": 1, "id": 559365}, {"segmentation": [[529.62, 89.53, 531.78, 60.4, 532.85, 32.36, 551.19, 28.04, 554.43, 47.46, 560.9, 70.11, 557.66, 88.45, 533.93, 85.21]], "area": 1425.8398499999987, "iscrowd": 0, "image_id": 277472, "bbox": [529.62, 28.04, 31.28, 61.49], "category_id": 1, "id": 559562}, {"segmentation": [[592.5, 304.26, 594.2, 283.48, 594.39, 276.68, 593.82, 271.58, 593.82, 265.91, 593.82, 263.84, 595.14, 261.57, 594.39, 254.77, 594.2, 252.88, 587.21, 252.88, 587.96, 258.74, 585.51, 260.81, 581.92, 264.21, 579.84, 273.09, 579.46, 282.16, 582.3, 286.32, 584.37, 286.32, 588.72, 292.17, 588.72, 300.86, 588.72, 302.94, 592.5, 303.32]], "area": 486.5047500000004, "iscrowd": 0, "image_id": 165347, "bbox": [579.46, 252.88, 15.68, 51.38], "category_id": 1, "id": 560229}, {"segmentation": [[342.72, 219.12, 334.24, 209.66, 333.26, 199.55, 342.07, 192.38, 350.87, 184.87, 355.11, 184.22, 355.77, 171.5, 358.38, 164.65, 368.49, 166.28, 372.4, 173.78, 368.16, 180.96, 373.05, 185.2, 380.88, 185.2, 379.25, 191.4, 368.49, 194.99, 355.44, 204.77, 349.9, 213.25, 347.94, 215.21, 345.98, 220.43]], "area": 1077.99855, "iscrowd": 0, "image_id": 279401, "bbox": [333.26, 164.65, 47.62, 55.78], "category_id": 1, "id": 561668}, {"segmentation": [[281.34, 261.04, 270.6, 254.6, 267.38, 243.86, 263.09, 220.24, 256.64, 201.98, 245.91, 183.73, 237.32, 175.14, 221.21, 175.14, 204.03, 186.95, 199.73, 204.13, 200.81, 219.16, 202.95, 228.83, 205.1, 243.86, 204.03, 252.45, 193.29, 261.04, 175.03, 264.26, 161.07, 264.26, 158.93, 256.75, 163.22, 248.16, 165.37, 237.42, 171.81, 226.68, 178.26, 213.8, 178.26, 181.58, 171.81, 175.14, 155.7, 181.58, 148.19, 197.69, 141.74, 212.72, 138.52, 232.05, 135.3, 261.04, 133.15, 277.15, 135.3, 284.67, 144.97, 291.11, 166.44, 294.33, 182.55, 296.48, 191.14, 297.55, 198.66, 320.1, 199.73, 338.36, 198.66, 368.43, 193.29, 379.16, 193.29, 403.86, 187.92, 428.56, 192.21, 467.22, 191.14, 474.73, 292.08, 472.59, 291.01, 454.33, 293.15, 437.15, 291.01, 417.82, 282.42, 394.2, 278.12, 363.06, 274.9, 351.24, 277.05, 334.06, 281.34, 320.1, 285.64, 343.73, 289.93, 356.61, 307.11, 353.39, 316.78, 349.1, 320.0, 337.28, 316.78, 325.47, 312.48, 316.88, 304.97, 310.44, 304.97, 295.41, 297.45, 280.37, 295.3, 271.78, 282.42, 263.19]], "area": 30421.087250000008, "iscrowd": 0, "image_id": 205700, "bbox": [133.15, 175.14, 186.85, 299.59], "category_id": 1, "id": 561769}, {"segmentation": [[173.51, 197.98, 178.15, 190.03, 180.13, 185.07, 180.46, 179.11, 184.43, 174.81, 188.41, 175.14, 190.39, 177.13, 191.38, 182.42, 193.04, 184.08, 200.98, 188.38, 201.31, 195.66, 200.98, 196.98], [202.31, 200.62, 170.53, 200.96, 170.2, 210.55, 171.53, 212.54, 178.48, 211.22, 185.43, 206.91, 191.38, 211.88, 200.65, 210.22]], "area": 687.3034499999992, "iscrowd": 0, "image_id": 487322, "bbox": [170.2, 174.81, 32.11, 37.73], "category_id": 1, "id": 563231}, {"segmentation": [[258.42, 160.71, 260.31, 157.5, 259.37, 153.34, 260.5, 149.38, 260.31, 145.03, 261.07, 144.09, 265.6, 146.54, 265.03, 149.75, 266.92, 158.25, 268.06, 162.79, 268.62, 165.06, 266.17, 164.11, 264.09, 161.28, 262.39, 160.14, 260.31, 162.03, 258.61, 163.17]], "area": 109.85904999999997, "iscrowd": 0, "image_id": 311522, "bbox": [258.42, 144.09, 10.2, 20.97], "category_id": 1, "id": 563334}, {"segmentation": [[608.24, 246.04, 609.15, 231.39, 607.93, 220.4, 607.93, 220.4, 607.32, 216.12, 610.37, 199.03, 614.34, 192.31, 612.82, 184.07, 612.51, 174.91, 607.02, 169.11, 605.18, 164.84, 604.57, 164.53, 604.27, 155.98, 600.61, 153.23, 595.42, 158.42, 594.8, 161.78, 596.64, 164.53, 597.25, 166.67, 596.03, 169.72, 592.97, 174.6, 591.14, 186.82, 589.31, 195.67, 588.39, 204.52, 589.31, 211.85, 589.31, 211.85, 592.67, 212.15, 593.89, 212.15, 597.86, 225.28, 597.86, 225.28, 599.08, 228.03, 599.38, 239.02, 593.58, 241.16, 596.03, 243.29, 607.93, 246.04]], "area": 1373.4839500000012, "iscrowd": 0, "image_id": 446331, "bbox": [588.39, 153.23, 25.95, 92.81], "category_id": 1, "id": 563381}, {"segmentation": [[127.17, 366.5, 126.33, 357.26, 128.01, 345.49, 132.21, 333.73, 136.41, 325.32, 133.05, 312.71, 135.57, 305.15, 138.09, 294.22, 133.05, 286.66, 133.05, 279.1, 133.05, 274.05, 133.05, 269.85, 129.69, 262.29, 129.69, 258.09, 121.29, 267.33, 113.72, 269.01, 107.84, 273.21, 102.8, 273.21, 98.59, 269.85, 98.59, 266.49, 104.48, 265.65, 119.6, 257.25, 114.56, 253.04, 117.08, 250.52, 119.6, 242.96, 122.97, 232.03, 130.53, 219.43, 136.41, 216.06, 137.25, 211.86, 133.89, 203.46, 133.89, 194.21, 137.25, 188.33, 146.5, 184.97, 156.58, 188.33, 155.74, 195.05, 159.95, 199.25, 159.11, 205.98, 159.95, 212.7, 175.07, 218.58, 181.8, 223.63, 193.56, 230.35, 207.01, 237.91, 215.42, 243.8, 219.62, 253.04, 214.58, 253.04, 200.29, 246.32, 194.4, 242.96, 179.28, 240.44, 173.39, 235.39, 171.71, 248.84, 170.03, 254.72, 174.23, 273.21, 179.28, 290.02, 188.52, 305.15, 189.36, 309.35, 186.0, 319.44, 181.8, 332.89, 180.12, 341.29, 181.8, 351.38, 190.2, 353.9, 188.52, 358.94, 167.51, 358.94, 159.11, 352.22, 159.11, 343.81, 160.79, 334.57, 161.63, 328.68, 163.31, 322.8, 164.15, 317.76, 161.63, 312.71, 158.27, 306.83, 149.02, 336.25, 140.62, 354.74, 143.14, 364.82, 149.02, 369.87, 138.93, 373.23, 129.69, 367.34, 128.85, 363.14]], "area": 8106.447750000001, "iscrowd": 0, "image_id": 27070, "bbox": [98.59, 184.97, 121.03, 188.26], "category_id": 1, "id": 564420}, {"segmentation": [[580.47, 234.91, 576.83, 204.56, 573.59, 198.9, 576.42, 181.1, 565.1, 174.63, 572.38, 167.34, 570.76, 158.04, 580.75, 158.08, 579.85, 150.18, 581.34, 147.49, 584.48, 146.3, 590.59, 148.39, 592.23, 151.07, 592.23, 156.59, 596.7, 164.19, 595.51, 169.11, 592.83, 177.17, 589.4, 199.54, 588.35, 205.05, 589.4, 210.27, 594.32, 213.25, 597.45, 228.76, 597.6, 231.75, 596.56, 242.93, 589.25, 242.93, 581.64, 242.48, 576.12, 240.99, 575.98, 237.56]], "area": 1673.2916000000002, "iscrowd": 0, "image_id": 446331, "bbox": [565.1, 146.3, 32.5, 96.63], "category_id": 1, "id": 564901}, {"segmentation": [[60.66, 66.69, 45.29, 66.09, 41.24, 66.09, 40.89, 62.87, 41.48, 59.78, 40.29, 57.87, 41.13, 53.34, 44.58, 48.82, 49.11, 45.84, 52.09, 43.93, 51.85, 39.64, 54.11, 36.67, 56.25, 34.76, 59.59, 33.93, 62.57, 33.93, 64.83, 35.36, 67.1, 38.57, 67.1, 40.95, 65.31, 43.93, 63.4, 46.67, 62.21, 47.51, 68.17, 54.77, 65.9, 56.44, 64.12, 57.16, 62.81, 62.99, 61.73, 64.66]], "area": 601.6686, "iscrowd": 0, "image_id": 289693, "bbox": [40.29, 33.93, 27.88, 32.76], "category_id": 1, "id": 565697}, {"segmentation": [[221.17, 178.43, 225.43, 166.94, 231.81, 166.94, 232.24, 163.11, 232.66, 153.74, 237.35, 150.33, 243.31, 152.89, 241.6, 161.83, 241.6, 166.51, 245.86, 168.21, 247.56, 174.17, 248.84, 190.35, 219.47, 201.42, 221.6, 184.82]], "area": 896.8574999999998, "iscrowd": 0, "image_id": 487322, "bbox": [219.47, 150.33, 29.37, 51.09], "category_id": 1, "id": 566591}, {"segmentation": [[83.71, 321.83, 80.91, 305.5, 83.24, 296.17, 87.9, 300.84, 88.84, 307.37, 92.1, 319.03, 88.84, 321.36]], "area": 173.01050000000012, "iscrowd": 0, "image_id": 482024, "bbox": [80.91, 296.17, 11.19, 25.66], "category_id": 1, "id": 566598}, {"segmentation": [[603.28, 306.04, 607.78, 298.07, 606.55, 292.55, 602.26, 286.83, 600.42, 282.53, 600.83, 276.2, 600.01, 261.48, 602.47, 258.42, 606.14, 256.38, 607.37, 250.45, 610.23, 249.02, 612.68, 251.27, 614.11, 252.49, 614.11, 254.74, 612.48, 258.83, 611.87, 261.28, 612.07, 265.16, 613.5, 276.81, 612.89, 282.53, 612.89, 288.05, 615.75, 294.18, 608.8, 301.54, 607.37, 305.63, 607.37, 307.47, 605.33, 307.26, 604.1, 305.63]], "area": 527.3936000000002, "iscrowd": 0, "image_id": 165347, "bbox": [600.01, 249.02, 15.74, 58.45], "category_id": 1, "id": 566848}, {"segmentation": [[506.97, 379.51, 486.47, 374.11, 463.82, 361.17, 464.9, 346.07, 497.26, 320.18, 512.36, 318.02, 530.7, 270.56, 529.62, 210.16, 537.17, 169.17, 529.62, 156.22, 512.36, 149.75, 499.42, 122.79, 498.34, 114.16, 514.52, 68.85, 529.62, 51.6, 553.35, 47.28, 577.08, 55.91, 587.87, 61.3, 604.04, 95.82, 637.48, 104.45, 640.0, 410.79, 634.25, 416.18, 626.7, 433.44, 615.91, 432.36, 621.3, 412.94, 566.29, 421.57, 560.9, 431.28, 515.6, 439.91, 510.2, 437.75, 494.02, 421.57, 504.81, 420.49, 505.89, 415.1, 501.57, 403.24]], "area": 45517.49355000001, "iscrowd": 0, "image_id": 501625, "bbox": [463.82, 47.28, 176.18, 392.63], "category_id": 1, "id": 567000}, {"segmentation": [[111.71, 186.07, 110.87, 172.61, 107.79, 163.93, 104.99, 154.4, 111.15, 144.59, 112.83, 137.02, 110.03, 129.73, 104.71, 125.53, 92.65, 124.12, 91.53, 127.77, 87.05, 129.73, 88.17, 133.37, 92.65, 137.86, 90.69, 145.43, 92.09, 147.39, 98.26, 162.24, 102.18, 167.01, 104.43, 171.49, 104.43, 177.38, 110.31, 183.27, 102.18, 189.43, 100.5, 196.44, 102.18, 198.4, 109.47, 195.6, 113.11, 193.36, 119.56, 192.23, 133.58, 192.23, 143.95, 187.47, 138.06, 181.86, 128.25, 182.99, 120.4, 183.27, 120.4, 183.27]], "area": 1115.3403999999994, "iscrowd": 0, "image_id": 446331, "bbox": [87.05, 124.12, 56.9, 74.28], "category_id": 1, "id": 567110}, {"segmentation": [[186.98, 184.85, 180.43, 169.71, 180.43, 169.02, 179.06, 150.08, 171.83, 138.03, 174.58, 123.57, 174.58, 123.22, 173.2, 112.21, 177.68, 106.35, 183.53, 103.94, 190.42, 104.98, 193.17, 108.08, 192.83, 114.62, 194.21, 120.47, 191.11, 130.46, 197.65, 147.33, 201.09, 155.59, 204.53, 165.57, 196.27, 169.02, 187.32, 185.54]], "area": 1420.9488000000003, "iscrowd": 0, "image_id": 446331, "bbox": [171.83, 103.94, 32.7, 81.6], "category_id": 1, "id": 567225}, {"segmentation": [[61.72, 372.36, 57.87, 356.55, 59.58, 333.46, 54.88, 322.78, 51.46, 301.41, 57.44, 297.13, 57.87, 292.86, 65.56, 287.73, 74.54, 288.15, 79.25, 295.42, 76.25, 306.96, 82.67, 324.92, 89.5, 328.76, 92.07, 341.16, 92.49, 354.41, 100.19, 368.09, 87.79, 366.38, 79.67, 347.14, 71.55, 342.44, 68.56, 355.27, 72.4, 371.51, 63.0, 370.23]], "area": 2027.6330999999996, "iscrowd": 0, "image_id": 23676, "bbox": [51.46, 287.73, 48.73, 84.63], "category_id": 1, "id": 568654}, {"segmentation": [[250.25, 40.99, 263.19, 24.81, 283.69, 16.18, 309.57, 20.49, 323.6, 26.97, 328.99, 49.62, 334.38, 66.88, 340.85, 91.69, 347.33, 108.94, 347.33, 120.81, 345.17, 126.2, 348.4, 131.6, 390.47, 144.54, 410.97, 166.11, 421.75, 208.18, 430.38, 270.74, 430.38, 288.0, 415.28, 302.02, 403.42, 320.36, 400.18, 344.09, 400.18, 375.37, 402.34, 395.87, 396.94, 415.28, 394.79, 442.25, 388.31, 442.25, 382.92, 400.18, 368.9, 399.1, 364.58, 421.75, 360.27, 444.4, 336.54, 440.09, 320.36, 442.25, 305.26, 444.4, 299.87, 454.11, 288.0, 460.58, 245.93, 459.51, 240.54, 449.8, 248.09, 424.99, 244.85, 406.65, 243.78, 395.87, 234.07, 386.16, 224.36, 371.06, 222.2, 355.96, 224.36, 337.62, 225.44, 316.04, 227.6, 285.84, 226.52, 263.19, 230.83, 234.07, 237.3, 204.94, 239.46, 183.37, 250.25, 172.58, 254.56, 161.8, 275.06, 154.25, 270.74, 144.54, 268.58, 129.44, 259.96, 121.89, 251.33, 105.71, 251.33, 90.61, 250.25, 77.66, 247.01, 59.33]], "area": 62940.28490000001, "iscrowd": 0, "image_id": 501625, "bbox": [222.2, 16.18, 208.18, 444.4], "category_id": 1, "id": 568871}, {"segmentation": [[275.11, 34.91, 272.25, 31.23, 270.61, 30.62, 270.2, 37.77, 270.82, 43.29, 270.2, 46.35, 274.9, 45.94, 276.95, 42.68]], "area": 74.35725000000005, "iscrowd": 0, "image_id": 311522, "bbox": [270.2, 30.62, 6.75, 15.73], "category_id": 1, "id": 569443}, {"segmentation": [[182.32, 197.56, 182.72, 182.09, 186.34, 185.71, 191.36, 179.28, 194.98, 171.44, 196.59, 169.23, 203.02, 165.61, 207.04, 166.01, 213.07, 158.58, 215.88, 155.76, 219.7, 153.96, 224.12, 156.17, 227.74, 160.79, 228.94, 166.21, 223.52, 173.05, 221.1, 175.66, 218.89, 174.65, 220.7, 177.87, 216.08, 184.3, 216.48, 188.12, 213.47, 194.75, 217.49, 195.76, 220.9, 199.37, 222.51, 203.79, 223.11, 207.41, 221.71, 210.02, 218.49, 207.81, 214.87, 207.01, 210.45, 205.8, 206.43, 202.99, 200.61, 200.98, 197.79, 199.57, 194.18, 201.18, 188.35, 199.57, 183.93, 198.37, 183.32, 198.17]], "area": 1344.0340500000007, "iscrowd": 0, "image_id": 446331, "bbox": [182.32, 153.96, 46.62, 56.06], "category_id": 1, "id": 569557}, {"segmentation": [[115.24, 353.2, 105.89, 308.98, 103.01, 296.93, 99.6, 291.72, 99.6, 288.48, 98.7, 284.17, 89.17, 281.11, 84.31, 284.35, 82.88, 294.41, 79.1, 307.0, 85.03, 326.95, 96.54, 351.4, 97.44, 361.65, 108.05, 364.35]], "area": 1687.8127999999992, "iscrowd": 0, "image_id": 23676, "bbox": [79.1, 281.11, 36.14, 83.24], "category_id": 1, "id": 570508}, {"segmentation": [[139.37, 347.93, 135.7, 328.46, 129.78, 325.36, 124.42, 313.8, 123.3, 307.6, 120.19, 301.39, 117.94, 298.01, 118.22, 292.37, 120.48, 289.54, 119.06, 281.65, 121.04, 275.73, 127.24, 273.47, 132.6, 275.16, 136.55, 281.93, 134.29, 290.96, 143.04, 300.26, 139.09, 311.26, 153.75, 324.24, 151.22, 346.23, 154.88, 351.03, 148.11, 354.41, 137.68, 354.69]], "area": 1373.7770999999996, "iscrowd": 0, "image_id": 23676, "bbox": [117.94, 273.47, 36.94, 81.22], "category_id": 1, "id": 570798}, {"segmentation": [[285.58, 274.61, 284.32, 267.1, 284.32, 263.35, 291.21, 263.35, 296.84, 267.73, 291.84, 277.12, 291.21, 286.51, 285.58, 286.51, 279.32, 280.25]], "area": 221.7723499999994, "iscrowd": 0, "image_id": 23676, "bbox": [279.32, 263.35, 17.52, 23.16], "category_id": 1, "id": 571140}, {"segmentation": [[170.95, 346.07, 160.8, 327.17, 146.7, 320.12, 145.57, 302.08, 145.29, 293.05, 151.78, 286.85, 151.78, 277.26, 156.57, 273.03, 162.49, 273.87, 165.31, 278.39, 165.03, 287.41, 176.31, 296.72, 178.29, 306.02, 175.75, 315.05, 184.49, 323.23, 188.16, 329.15, 191.82, 346.07, 195.49, 351.15, 183.36, 351.71, 177.44, 332.25, 167.57, 326.05, 181.95, 353.4, 170.67, 353.97]], "area": 1835.4246499999997, "iscrowd": 0, "image_id": 23676, "bbox": [145.29, 273.03, 50.2, 80.94], "category_id": 1, "id": 571249}, {"segmentation": [[134.93, 276.72, 137.37, 273.4, 134.49, 269.41, 134.49, 266.76, 134.49, 261.67, 135.82, 258.13, 140.25, 258.13, 145.12, 260.12, 148.44, 264.99, 149.99, 268.97, 147.11, 272.95, 151.09, 276.72, 150.65, 281.37, 150.65, 285.79, 150.65, 288.01, 144.67, 293.1, 145.12, 303.28, 146.0, 316.78, 140.91, 311.47, 143.35, 303.28, 143.35, 301.06, 142.02, 297.74, 135.6, 290.44, 136.71, 284.69, 136.71, 283.14, 136.71, 281.14, 134.93, 277.6]], "area": 526.9275500000002, "iscrowd": 0, "image_id": 23676, "bbox": [134.49, 258.13, 16.6, 58.65], "category_id": 1, "id": 571262}, {"segmentation": [[278.44, 273.51, 279.33, 283.91, 280.66, 287.9, 283.76, 296.53, 287.52, 301.84, 290.84, 307.37, 293.72, 313.79, 293.94, 327.29, 295.04, 330.61, 301.02, 335.7, 299.47, 337.47, 293.72, 337.7, 289.73, 334.15, 288.18, 328.18, 287.74, 320.65, 285.75, 314.68, 281.1, 316.67, 272.25, 319.77, 270.7, 326.19, 271.14, 329.29, 273.35, 332.83, 275.12, 338.36, 274.02, 340.13, 268.48, 341.46, 264.72, 338.36, 264.72, 329.95, 264.06, 326.63, 262.51, 323.97, 258.97, 321.1, 258.08, 315.56, 257.64, 308.48, 256.98, 302.06, 258.08, 299.41, 259.85, 292.77, 259.63, 287.01, 262.07, 283.91, 264.28, 281.26, 265.16, 275.06, 268.48, 272.4, 277.78, 272.85, 277.78, 272.85]], "area": 1459.3224500000001, "iscrowd": 0, "image_id": 23676, "bbox": [256.98, 272.4, 44.04, 69.06], "category_id": 1, "id": 571271}, {"segmentation": [[294.26, 277.99, 298.21, 274.95, 300.34, 274.19, 303.54, 276.62, 305.22, 281.8, 305.37, 284.84, 303.39, 288.95, 304.61, 295.96, 303.85, 302.81, 304.76, 304.63, 312.37, 304.78, 311.46, 308.44, 308.87, 310.87, 306.59, 309.5, 307.35, 317.57, 308.87, 326.86, 311.3, 331.12, 314.2, 332.79, 315.57, 333.25, 315.57, 335.53, 305.06, 334.47, 303.85, 331.27, 301.87, 316.2, 298.21, 316.66, 295.47, 314.98, 294.26, 313.46, 293.34, 310.42, 292.43, 307.98, 290.3, 304.78, 289.08, 302.81, 287.41, 300.07, 286.04, 298.24, 284.67, 296.26, 283.45, 293.52, 282.99, 291.24, 283.45, 288.95, 286.49, 286.82, 290.3, 287.58, 291.97, 287.13, 293.04, 280.89, 292.89, 278.3, 295.02, 278.0]], "area": 764.4367500000003, "iscrowd": 0, "image_id": 23676, "bbox": [282.99, 274.19, 32.58, 61.34], "category_id": 1, "id": 571277}, {"segmentation": [[84.1, 258.02, 92.77, 258.74, 94.75, 256.4, 107.75, 252.79, 114.97, 252.24, 118.58, 253.33, 121.11, 252.6, 122.37, 251.34, 122.91, 249.72, 117.86, 248.45, 109.01, 248.45, 97.28, 250.26, 84.28, 254.05, 81.03, 254.59, 84.28, 257.84]], "area": 188.48064999999997, "iscrowd": 0, "image_id": 531032, "bbox": [81.03, 248.45, 41.88, 10.29], "category_id": 15, "id": 572006}, {"segmentation": [[1.9, 135.12, 134.64, 137.01, 126.11, 158.82, 125.16, 178.74, 135.59, 201.49, 135.59, 210.03, 98.61, 233.73, 92.92, 257.44, 0.95, 255.54], [318.59, 135.12, 357.47, 135.12, 359.37, 142.7, 362.21, 158.82, 368.85, 166.41, 370.75, 180.63, 351.78, 210.97, 337.56, 231.83, 336.61, 253.64, 321.44, 254.59, 311.96, 252.69, 311.96, 238.47, 302.48, 224.25, 284.46, 208.13, 279.72, 200.54, 280.67, 163.56, 279.72, 137.96, 292.99, 138.91, 284.46, 172.1, 293.94, 188.22, 311.96, 184.42, 313.85, 165.46, 317.65, 169.25, 325.23, 170.2, 328.08, 162.62, 315.75, 153.13, 313.85, 148.39, 313.85, 144.6], [458.93, 139.86, 494.96, 135.12, 519.61, 136.07, 541.42, 143.65, 568.92, 144.6, 580.3, 147.44, 563.23, 171.15, 554.7, 189.17, 554.7, 196.75, 569.87, 207.18, 584.09, 210.03, 596.42, 204.34, 605.9, 182.53, 604.95, 159.77, 592.62, 145.55, 591.68, 135.12, 640.0, 138.91, 640.0, 262.18, 554.7, 263.13, 546.16, 246.06, 543.32, 229.94, 525.3, 216.66, 480.74, 201.49, 447.55, 183.48, 447.55, 180.63, 456.08, 156.93, 460.82, 139.86], [423.84, 234.68, 388.76, 250.8, 384.02, 259.33, 490.22, 262.18, 503.49, 260.28, 489.27, 252.69, 467.46, 249.85, 447.55, 240.37, 428.59, 232.78, 423.84, 232.78], [207.66, 230.89, 177.31, 257.44, 198.17, 263.13, 243.69, 263.13, 256.96, 263.13, 251.27, 255.54, 232.31, 248.9, 214.29, 239.42]], "area": 39310.821899999995, "iscrowd": 0, "image_id": 36113, "bbox": [0.95, 135.12, 639.05, 128.01], "category_id": 15, "id": 572123}, {"segmentation": [[276.3, 494.5, 219.66, 517.99, 189.26, 508.32, 151.96, 501.41, 2.76, 566.34, 8.29, 602.26, 163.02, 605.02, 255.58, 603.64, 338.47, 603.64, 353.66, 605.02, 337.08, 564.96, 320.51, 531.8, 288.73, 501.41]], "area": 27632.351649999986, "iscrowd": 0, "image_id": 212271, "bbox": [2.76, 494.5, 350.9, 110.52], "category_id": 15, "id": 572154}, {"segmentation": [[24.17, 85.19, 30.71, 96.09, 41.92, 97.02, 42.54, 110.09, 56.86, 110.41, 56.86, 95.46, 82.07, 96.09, 83.63, 109.16, 102.0, 109.47, 101.68, 94.84, 106.35, 95.15, 106.66, 80.21, 22.93, 83.32]], "area": 1597.2611500000005, "iscrowd": 0, "image_id": 50429, "bbox": [22.93, 80.21, 83.73, 30.2], "category_id": 15, "id": 572237}, {"segmentation": [[0.0, 233.58, 17.23, 225.92, 33.51, 223.05, 59.35, 222.09, 76.58, 224.01, 101.47, 224.97, 117.75, 215.39, 125.41, 202.95, 134.02, 189.55, 139.77, 161.78, 153.17, 129.24, 160.83, 109.13, 176.14, 84.24, 191.46, 68.93, 201.03, 64.14, 639.48, 76.58, 639.48, 282.4, 637.56, 421.21, 581.08, 413.56, 580.13, 420.26, 517.9, 421.21, 515.03, 411.64, 180.93, 392.49, 161.78, 399.2, 138.81, 405.9, 128.28, 421.21, 49.78, 421.21, 50.74, 416.43, 108.18, 403.02, 119.66, 397.28, 122.53, 389.62, 122.53, 387.71, 0.96, 378.13, 1.91, 236.45]], "area": 189964.4113, "iscrowd": 0, "image_id": 262862, "bbox": [0.0, 64.14, 639.48, 357.07], "category_id": 15, "id": 572303}, {"segmentation": [[158.47, 386.04, 157.64, 408.87, 160.13, 420.9, 188.35, 421.73, 190.01, 450.37, 200.8, 454.94, 198.73, 421.32, 318.68, 415.92, 319.09, 419.66, 324.91, 419.66, 324.91, 415.92, 333.0, 415.51, 332.79, 378.98, 159.3, 383.55]], "area": 6935.598949999999, "iscrowd": 0, "image_id": 543392, "bbox": [157.64, 378.98, 175.36, 75.96], "category_id": 15, "id": 572641}, {"segmentation": [[145.86, 273.33, 144.98, 258.96, 144.1, 257.35, 143.51, 256.47, 143.07, 255.59, 162.72, 251.19, 173.13, 251.34, 173.28, 252.51, 168.44, 252.95, 167.41, 254.86, 167.71, 255.74, 164.63, 255.74, 164.92, 268.5, 164.92, 270.55, 162.87, 270.69, 162.13, 256.47, 155.68, 259.4, 150.11, 259.84, 150.55, 274.36], [171.22, 256.47, 170.78, 268.64, 174.45, 268.79, 174.6, 256.18]], "area": 282.90044999999975, "iscrowd": 0, "image_id": 531032, "bbox": [143.07, 251.19, 31.53, 23.17], "category_id": 15, "id": 572712}, {"segmentation": [[153.89, 405.67, 158.2, 333.76, 163.96, 297.8, 192.72, 286.3, 231.55, 277.67, 286.2, 261.85, 337.98, 253.22, 396.94, 264.73, 464.54, 286.3, 488.99, 294.93, 496.18, 328.01, 509.12, 368.28, 535.01, 385.53, 537.89, 391.29, 474.61, 398.48, 178.34, 417.17]], "area": 46414.43465, "iscrowd": 0, "image_id": 304937, "bbox": [153.89, 253.22, 384.0, 163.95], "category_id": 15, "id": 572939}, {"segmentation": [[166.75, 215.67, 166.75, 255.19, 102.17, 297.6, 55.91, 271.57, 33.74, 231.09, 42.41, 191.57, 113.74, 158.8, 399.05, 166.51, 400.98, 103.86, 410.61, 70.12, 429.89, 37.35, 506.04, 4.58, 615.92, 6.51, 630.38, 28.68, 625.56, 414.23, 0.0, 406.52, 8.67, 340.01, 44.34, 306.27, 67.47, 314.95, 82.89, 303.38, 178.32, 287.96, 200.49, 287.0, 201.45, 272.54, 188.92, 253.26, 187.96, 237.84]], "area": 175805.17030000006, "iscrowd": 0, "image_id": 187063, "bbox": [0.0, 4.58, 630.38, 409.65], "category_id": 15, "id": 572961}, {"segmentation": [[6.72, 344.64, 24.95, 326.41, 494.22, 372.47, 497.09, 400.3, 474.06, 402.22, 472.14, 427.17, 460.63, 427.17, 453.91, 400.3, 350.27, 393.58, 387.7, 426.21, 377.14, 426.21, 333.0, 388.78, 282.13, 385.9, 231.27, 427.17, 222.64, 424.29, 272.54, 384.94, 182.33, 375.35, 207.28, 427.17, 198.65, 428.0, 178.49, 375.35, 166.02, 374.39, 167.94, 424.29, 156.42, 425.25, 160.26, 373.43, 112.28, 364.79, 143.95, 425.25, 133.39, 418.53, 111.32, 374.39, 107.48, 365.75, 94.04, 362.87, 89.25, 426.21, 74.85, 420.45, 9.6, 344.64]], "area": 20673.73369999999, "iscrowd": 0, "image_id": 336675, "bbox": [6.72, 326.41, 490.37, 101.59], "category_id": 15, "id": 573200}, {"segmentation": [[209.74, 113.84, 216.47, 113.84, 242.27, 134.03, 273.68, 147.49, 275.92, 154.22, 283.77, 172.17, 289.38, 180.02, 302.84, 201.33, 309.57, 211.43, 309.57, 232.74, 306.2, 241.71, 293.86, 246.2, 299.47, 259.66, 297.23, 278.72, 299.47, 284.33, 314.05, 289.94, 327.51, 303.4, 305.08, 313.49, 303.96, 325.83, 307.32, 349.39, 310.69, 372.94, 310.69, 386.4, 312.93, 398.74, 303.96, 402.1, 302.84, 409.95, 349.95, 399.86, 348.82, 412.2, 340.97, 417.8, 366.77, 421.17, 360.04, 417.8, 363.41, 412.2, 358.92, 398.74, 385.84, 395.37, 389.2, 406.59, 381.35, 414.44, 403.78, 416.68, 407.15, 416.68, 399.3, 411.07, 399.3, 394.25, 441.92, 388.64, 502.49, 379.67, 506.97, 399.86, 498.0, 399.86, 502.49, 404.34, 517.07, 405.47, 522.68, 405.47, 514.82, 397.61, 514.82, 381.91, 559.69, 374.06, 559.69, 365.09, 597.82, 319.1, 638.2, 312.37, 638.2, 228.25, 640.0, 129.55, 638.2, 89.17, 504.73, 98.14, 369.01, 101.51, 214.23, 111.6, 209.74, 111.6], [1.12, 122.82, 71.78, 117.21, 161.51, 112.72, 160.39, 129.55, 150.3, 141.89, 144.69, 167.68, 133.47, 177.78, 122.26, 215.91, 114.41, 238.34, 113.28, 263.02, 113.28, 295.55, 112.16, 309.01, 98.7, 301.16, 90.85, 314.61, 100.95, 323.59, 124.5, 321.34, 141.32, 326.95, 164.88, 322.47, 199.65, 319.1, 240.03, 320.22, 252.36, 338.17, 245.64, 371.82, 240.03, 394.25, 222.08, 405.47, 192.92, 408.83, 189.55, 415.56, 187.31, 430.14, 199.65, 434.63, 188.43, 444.72, 176.09, 443.6, 168.24, 439.11, 178.34, 432.39, 176.09, 413.32, 95.34, 424.53, 97.58, 444.72, 106.55, 442.48, 100.95, 451.45, 94.22, 452.57, 79.64, 452.57, 77.39, 450.33, 87.49, 445.84, 87.49, 429.02, 49.35, 432.39, 44.86, 434.63, 48.23, 444.72, 61.69, 449.21, 40.38, 457.06, 22.43, 453.7, 30.28, 449.21, 33.65, 445.84, 30.28, 436.87, 1.12, 435.75, 1.12, 257.41, 1.12, 165.44]], "area": 147670.41035000002, "iscrowd": 0, "image_id": 558286, "bbox": [1.12, 89.17, 638.88, 367.89], "category_id": 15, "id": 573624}, {"segmentation": [[22.98, 405.9, 25.85, 384.84, 25.85, 322.61, 32.55, 322.61, 38.29, 322.61, 168.49, 329.31, 176.14, 324.53, 181.89, 341.76, 197.2, 343.67, 190.5, 356.12, 195.29, 400.15, 175.19, 408.77, 169.44, 375.26, 53.61, 377.18, 52.65, 407.81]], "area": 9691.04705, "iscrowd": 0, "image_id": 31602, "bbox": [22.98, 322.61, 174.22, 86.16], "category_id": 15, "id": 574163}, {"segmentation": [[540.56, 376.29, 536.74, 419.27, 486.12, 418.31, 491.85, 384.89, 448.88, 382.02, 290.34, 321.85, 289.38, 350.51, 311.35, 365.79, 227.3, 375.34, 231.12, 362.92, 256.91, 357.19, 248.31, 310.39, 168.09, 273.15, 171.91, 226.35, 294.16, 212.02, 290.34, 235.9, 253.09, 236.85, 233.99, 249.27, 238.76, 255.96, 266.46, 255.0, 287.47, 252.13, 306.57, 252.13, 328.54, 245.45, 331.4, 227.3, 342.87, 222.53, 637.98, 311.35, 636.07, 361.97]], "area": 48399.9087, "iscrowd": 0, "image_id": 341277, "bbox": [168.09, 212.02, 469.89, 207.25], "category_id": 15, "id": 574361}, {"segmentation": [[178.1, 347.88, 176.72, 357.77, 176.72, 375.0, 204.75, 375.0, 213.54, 355.03, 220.41, 349.53, 217.67, 344.04, 195.96, 346.23, 195.13, 350.9, 187.71, 352.0, 181.67, 347.88]], "area": 957.2880499999993, "iscrowd": 0, "image_id": 453734, "bbox": [176.72, 344.04, 43.69, 30.96], "category_id": 15, "id": 575040}, {"segmentation": [[228.26, 206.13, 285.56, 216.64, 323.76, 256.75, 321.85, 308.32, 315.17, 280.63, 296.07, 266.3, 287.47, 288.27, 288.43, 273.94, 289.38, 268.21, 269.33, 280.63, 262.64, 286.36, 259.78, 262.48, 259.78, 251.02, 241.63, 265.35, 237.81, 264.39, 237.81, 238.6, 237.81, 220.46]], "area": 4351.447950000001, "iscrowd": 0, "image_id": 181837, "bbox": [228.26, 206.13, 95.5, 102.19], "category_id": 15, "id": 575271}, {"segmentation": [[501.1, 373.02, 507.83, 401.87, 638.63, 411.49, 623.24, 388.41, 620.36, 383.6, 504.94, 373.02]], "area": 3437.3869500000005, "iscrowd": 0, "image_id": 336675, "bbox": [501.1, 373.02, 137.53, 38.47], "category_id": 15, "id": 575318}, {"segmentation": [[344.2, 272.33, 384.86, 271.78, 388.71, 293.49, 386.79, 292.39, 382.39, 279.47, 373.32, 280.85, 372.77, 295.68, 368.65, 293.49, 367.55, 282.22, 359.86, 283.32, 358.48, 292.11, 355.74, 291.01, 355.74, 282.77, 345.57, 281.4, 343.1, 293.21, 338.7, 292.66]], "area": 584.6251000000011, "iscrowd": 0, "image_id": 294416, "bbox": [338.7, 271.78, 50.01, 23.9], "category_id": 15, "id": 576727}, {"segmentation": [[183.75, 97.88, 157.5, 184.13, 141.75, 198.38, 108.75, 196.13, 69.75, 192.38, 61.5, 194.63, 65.25, 202.88, 76.5, 205.13, 69.0, 223.88, 76.5, 232.13, 76.5, 280.88, 89.25, 282.38, 107.25, 263.63, 142.5, 262.88, 158.25, 259.13, 172.5, 274.88, 180.75, 274.88, 176.25, 229.13, 228.75, 241.88, 225.75, 256.13, 233.25, 286.13, 235.5, 316.13, 252.0, 313.88, 268.5, 300.38, 285.75, 300.38, 295.5, 307.13, 302.25, 291.38, 315.0, 290.63, 327.0, 299.63, 333.75, 312.38, 346.5, 303.38, 341.25, 248.63, 353.25, 223.13, 361.5, 220.88, 375.75, 140.63, 387.0, 121.88, 383.25, 112.13, 189.0, 97.13]], "area": 41569.875, "iscrowd": 0, "image_id": 309195, "bbox": [61.5, 97.13, 325.5, 219.0], "category_id": 15, "id": 577473}, {"segmentation": [[294.05, 270.48, 296.16, 271.88, 294.05, 274.68, 290.2, 299.56, 280.04, 299.56, 278.99, 277.48, 276.88, 276.08, 241.14, 277.48, 243.6, 298.86, 235.19, 298.51, 235.19, 277.83, 219.07, 275.73, 221.87, 270.12]], "area": 922.7338499999989, "iscrowd": 0, "image_id": 531032, "bbox": [219.07, 270.12, 77.09, 29.44], "category_id": 15, "id": 577921}, {"segmentation": [[255.9, 376.42, 301.89, 375.73, 292.96, 364.75, 257.96, 364.75, 256.58, 364.75], [362.98, 368.18, 373.28, 377.11, 422.01, 377.79, 422.01, 368.87]], "area": 945.1945000000011, "iscrowd": 0, "image_id": 502517, "bbox": [255.9, 364.75, 166.11, 13.04], "category_id": 15, "id": 578852}, {"segmentation": [[578.42, 276.53, 578.61, 263.55, 576.73, 262.61, 574.84, 260.54, 572.4, 259.41, 571.65, 256.77, 624.34, 256.58, 623.96, 259.78, 620.95, 259.97, 620.01, 261.85, 612.11, 262.04, 609.85, 265.99, 607.59, 276.53, 604.96, 277.66, 604.2, 261.48, 589.15, 261.48, 586.51, 262.98, 584.07, 262.98, 582.37, 265.62, 581.43, 278.23]], "area": 388.73360000000156, "iscrowd": 0, "image_id": 531032, "bbox": [571.65, 256.58, 52.69, 21.65], "category_id": 15, "id": 579077}, {"segmentation": [[224.36, 391.55, 228.67, 350.56, 226.52, 310.65, 231.91, 282.61, 245.93, 248.09, 259.96, 229.75, 276.13, 218.97, 297.71, 220.04, 311.73, 222.2, 326.83, 222.2, 373.21, 222.2, 413.12, 236.22, 433.62, 248.09, 456.27, 265.35, 471.37, 294.47, 471.37, 316.04, 461.66, 363.51, 458.43, 399.1, 459.51, 427.15, 454.11, 437.93, 445.48, 443.33, 428.22, 444.4, 423.91, 435.78, 426.07, 415.28, 422.83, 401.26, 409.89, 379.69, 396.94, 369.98, 382.92, 366.74, 371.06, 360.27, 386.16, 388.31, 385.08, 395.87, 376.45, 399.1, 373.21, 400.18, 366.74, 398.02, 359.19, 382.92, 350.56, 375.37, 353.8, 396.94, 345.17, 418.52, 331.15, 415.28, 325.75, 391.55, 322.52, 376.45, 318.2, 362.43, 314.97, 349.48, 313.89, 333.3, 303.1, 306.34, 291.24, 308.49, 275.06, 309.57, 263.19, 304.18, 258.88, 302.02, 252.4, 310.65, 244.85, 346.25, 242.7, 373.21, 240.54, 387.24, 248.09, 390.47, 250.25, 402.34, 242.7, 403.42, 230.83, 394.79, 227.6, 390.47]], "area": 33300.64195, "iscrowd": 0, "image_id": 4278, "bbox": [224.36, 218.97, 247.01, 225.43], "category_id": 22, "id": 580066}, {"segmentation": [[132.67, 190.92, 119.73, 161.8, 136.99, 122.97, 192.0, 84.13, 278.29, 93.84, 306.34, 118.65, 313.89, 203.87, 328.99, 337.62, 320.36, 350.56, 303.1, 338.7, 303.1, 300.94, 276.13, 203.87, 248.09, 215.73, 239.46, 264.27, 254.56, 336.54, 229.75, 347.33, 199.55, 314.97, 200.63, 298.79, 204.94, 253.48, 204.94, 248.09, 187.69, 247.01, 198.47, 294.47, 182.29, 305.26, 173.66, 242.7, 182.29, 211.42, 139.15, 175.82, 133.75, 192.0]], "area": 30430.465549999994, "iscrowd": 0, "image_id": 27070, "bbox": [119.73, 84.13, 209.26, 266.43], "category_id": 22, "id": 580086}, {"segmentation": [[74.79, 628.49, 92.04, 570.97, 81.98, 430.02, 87.73, 314.97, 106.43, 293.39, 116.49, 238.74, 142.38, 230.11, 204.22, 220.04, 248.81, 263.19, 251.69, 224.36, 281.89, 247.37, 299.15, 290.52, 343.73, 281.89, 352.36, 251.69, 398.38, 294.83, 432.9, 366.74, 396.94, 476.04, 376.81, 546.52, 382.56, 628.49, 330.79, 628.49, 340.85, 568.09, 316.4, 507.69, 320.72, 632.81, 234.43, 625.62, 245.93, 536.45, 230.11, 488.99, 202.79, 474.61, 217.17, 628.49, 197.03, 632.81, 162.52, 628.49, 146.7, 474.61, 143.82, 474.61, 110.74, 618.43, 99.24, 632.81, 76.22, 629.93]], "area": 107392.54555, "iscrowd": 0, "image_id": 463224, "bbox": [74.79, 220.04, 358.11, 412.77], "category_id": 22, "id": 580249}, {"segmentation": [[4.31, 277.13, 163.96, 252.68, 194.16, 242.62, 232.99, 222.48, 231.55, 212.41, 238.74, 209.54, 248.81, 218.17, 261.75, 222.48, 254.56, 231.11, 244.49, 242.62, 231.55, 254.12, 231.55, 267.07, 273.26, 262.75, 304.9, 271.38, 294.83, 292.95, 297.71, 317.4, 307.78, 331.79, 332.22, 350.48, 339.42, 340.41, 332.22, 308.77, 350.92, 291.52, 369.62, 277.13, 427.0, 282.89, 424.27, 630.93, 281.89, 630.93, 283.33, 610.8, 273.26, 590.66, 266.07, 570.53, 264.63, 570.53, 253.12, 554.71, 231.55, 515.88, 220.04, 514.44, 212.85, 521.63, 201.35, 511.56, 182.65, 524.5, 115.06, 518.75, 80.54, 514.44, 69.03, 515.88, 61.84, 530.26, 53.21, 541.76, 43.15, 547.52, 40.27, 523.07, 50.34, 498.62, 64.72, 471.29, 66.16, 471.29, 79.1, 462.66, 77.66, 449.72, 64.72, 452.59, 48.9, 452.59, 2.88, 451.16, 1.44, 280.01]], "area": 120229.8887, "iscrowd": 0, "image_id": 369976, "bbox": [1.44, 209.54, 425.56, 421.39], "category_id": 22, "id": 580349}, {"segmentation": [[326.89, 319.35, 333.56, 387.97, 386.93, 398.45, 405.03, 343.18, 427.91, 324.12, 423.14, 347.94, 432.67, 370.82, 449.83, 389.88, 474.6, 397.5, 537.5, 404.17, 551.8, 405.13, 562.28, 326.98, 571.81, 270.75, 560.38, 184.02, 549.89, 148.76, 485.09, 78.24, 447.92, 67.76, 419.33, 40.12, 380.26, 34.4, 347.85, 42.02, 331.65, 31.54, 298.3, 28.68, 292.58, 36.31, 260.17, 22.96, 228.72, 44.88, 219.19, 60.13, 198.23, 74.43, 182.03, 86.82, 182.98, 100.16, 182.98, 122.08, 190.6, 135.42, 206.81, 146.86, 214.43, 164.96, 223.96, 185.93, 227.77, 203.09, 234.44, 232.63, 234.44, 254.55, 229.68, 275.51, 223.96, 298.39, 214.43, 309.82, 210.62, 340.32, 206.81, 355.57, 204.9, 367.0, 255.41, 376.54, 274.47, 340.32, 299.25, 336.51, 313.54, 323.17, 318.31, 320.31]], "area": 110140.1404, "iscrowd": 0, "image_id": 185962, "bbox": [182.03, 22.96, 389.78, 382.17], "category_id": 22, "id": 580540}, {"segmentation": [[6.72, 1.02, 73.89, 21.17, 131.46, 19.25, 166.0, 15.42, 195.75, 13.5, 208.22, 31.73, 228.37, 87.38, 238.93, 123.85, 246.6, 162.23, 277.31, 205.41, 319.53, 209.25, 321.45, 207.33, 344.48, 181.42, 346.4, 180.46, 365.59, 171.82, 384.78, 179.5, 390.54, 194.85, 372.31, 195.81, 355.99, 207.33, 322.41, 234.19, 285.95, 250.51, 249.48, 227.48, 227.41, 206.37, 195.75, 196.77, 195.75, 214.04, 192.87, 225.56, 162.16, 196.77, 136.26, 197.73, 130.5, 208.29, 127.62, 264.9, 108.43, 356.06, 123.78, 379.09, 64.29, 381.01, 56.61, 359.9, 65.25, 345.5, 63.33, 258.18, 47.98, 345.5, 42.22, 364.69, 50.86, 392.52, 34.54, 393.48, 2.88, 359.9, 7.68, 242.83]], "area": 66698.83720000001, "iscrowd": 0, "image_id": 221328, "bbox": [2.88, 1.02, 387.66, 392.46], "category_id": 22, "id": 580600}, {"segmentation": [[263.85, 80.36, 281.26, 99.78, 292.64, 114.51, 304.03, 129.91, 312.73, 142.64, 338.85, 163.4, 373.67, 170.76, 434.61, 172.77, 486.84, 178.8, 500.0, 182.82, 498.9, 218.98, 450.68, 211.61, 458.05, 214.96, 459.39, 223.0, 441.98, 234.38, 407.16, 247.78, 379.7, 247.78, 379.7, 253.13, 416.53, 277.24, 413.85, 279.92, 408.49, 281.93, 377.02, 263.85, 367.64, 276.57, 354.25, 285.95, 333.49, 281.93, 320.1, 253.13, 304.03, 232.37, 285.28, 218.31, 279.25, 219.65, 265.19, 214.96, 263.18, 218.31, 269.87, 249.78, 266.53, 271.21, 264.52, 276.57, 258.49, 271.88, 249.11, 252.46, 235.72, 244.43, 216.3, 243.09, 194.2, 243.76, 158.04, 236.39, 136.61, 214.29, 103.8, 214.96, 69.64, 229.69, 73.66, 240.41, 66.3, 252.46, 61.61, 264.52, 61.61, 280.59, 59.6, 294.65, 1.34, 294.65, 0.0, 40.85, 6.7, 36.83, 18.08, 30.13, 36.16, 25.45, 137.95, 10.71, 164.07, 13.39, 173.44, 29.47, 198.22, 40.18, 215.63, 50.89, 233.04, 66.97, 265.86, 79.69]], "area": 77675.26580000001, "iscrowd": 0, "image_id": 485882, "bbox": [0.0, 10.71, 500.0, 283.94], "category_id": 22, "id": 580730}, {"segmentation": [[269.83, 132.01, 293.88, 141.22, 303.6, 157.59, 308.72, 148.38, 328.17, 157.08, 353.24, 166.29, 367.06, 186.25, 372.18, 211.84, 365.53, 241.01, 372.18, 280.93, 374.74, 303.44, 372.69, 310.1, 366.55, 315.21, 356.83, 317.26, 359.38, 333.64, 360.41, 342.34, 349.15, 348.99, 332.26, 346.94, 311.28, 345.41, 309.74, 344.38, 309.74, 352.06, 306.67, 354.62, 293.88, 357.18, 296.44, 365.36, 285.69, 369.46, 272.9, 373.04, 257.55, 365.36, 259.08, 329.03, 262.15, 295.25, 261.13, 277.34, 254.48, 264.04, 241.68, 276.32, 240.66, 307.02, 242.19, 322.38, 250.89, 343.87, 232.47, 344.89, 209.95, 343.36, 190.51, 343.36, 181.3, 337.73, 182.32, 295.77, 186.41, 255.34, 183.34, 222.59, 182.32, 161.18, 204.84, 148.38, 233.49, 139.17, 255.5, 135.08]], "area": 35932.473150000005, "iscrowd": 0, "image_id": 566166, "bbox": [181.3, 132.01, 193.44, 241.03], "category_id": 22, "id": 580750}, {"segmentation": [[210.31, 311.54, 200.51, 300.68, 198.17, 290.45, 194.76, 283.63, 179.42, 278.73, 180.7, 286.83, 179.63, 297.69, 178.57, 307.07, 177.07, 310.05, 177.29, 331.35, 176.86, 341.15, 174.52, 344.35, 159.39, 342.22, 158.11, 344.35, 154.07, 347.55, 143.2, 347.55, 139.15, 346.69, 138.3, 344.35, 138.73, 341.37, 140.22, 340.09, 142.56, 337.96, 144.69, 332.63, 144.91, 326.03, 146.4, 318.78, 145.54, 314.95, 139.58, 308.56, 138.94, 305.58, 138.51, 302.38, 126.6, 293.06, 125.89, 294.11, 125.54, 297.62, 125.54, 304.64, 125.19, 313.77, 127.3, 330.26, 128.7, 335.87, 129.76, 340.09, 125.19, 342.19, 118.17, 342.54, 111.16, 339.03, 109.75, 337.98, 113.26, 333.42, 116.42, 330.96, 115.02, 325.7, 111.86, 316.22, 110.1, 317.98, 109.05, 327.8, 110.45, 332.72, 110.81, 335.87, 107.3, 337.28, 92.21, 335.17, 95.01, 330.96, 99.22, 325.7, 99.22, 322.54, 97.12, 324.64, 92.21, 325.7, 81.68, 323.24, 76.06, 319.03, 74.66, 313.77, 72.91, 308.85, 70.1, 297.62, 68.34, 289.9, 68.69, 279.73, 69.05, 274.81, 69.4, 269.55, 70.45, 262.18, 71.5, 255.51, 74.66, 241.83, 82.03, 239.37, 99.93, 239.72, 121.33, 237.62, 135.02, 235.16, 145.9, 237.97, 161.34, 246.04, 172.57, 257.27, 180.29, 270.25, 191.87, 274.46, 200.29, 282.18, 204.15, 295.87, 211.17, 310.26]], "area": 9807.938800000002, "iscrowd": 0, "image_id": 4278, "bbox": [68.34, 235.16, 142.83, 112.39], "category_id": 22, "id": 580927}, {"segmentation": [[636.95, 370.52, 622.63, 379.12, 614.04, 384.85, 563.42, 362.88, 571.06, 351.42, 591.12, 311.32, 597.8, 262.61, 596.85, 228.23, 593.03, 200.54, 573.93, 181.44, 551.96, 176.67, 536.68, 176.67, 512.81, 176.67, 484.16, 169.98, 448.83, 165.21, 440.23, 171.89, 441.19, 279.8, 445.96, 306.54, 451.69, 320.86, 455.51, 336.14, 426.86, 342.83, 386.76, 340.92, 381.98, 328.5, 389.62, 321.82, 397.26, 311.32, 397.26, 287.44, 391.53, 241.6, 383.89, 205.32, 378.16, 179.53, 366.7, 156.61, 360.02, 159.48, 351.42, 164.25, 340.92, 159.48, 329.46, 149.93, 286.49, 117.46, 283.62, 106.0, 287.44, 83.08, 283.62, 65.89, 277.89, 63.03, 258.79, 63.03, 234.92, 73.53, 230.14, 63.03, 226.32, 47.75, 227.28, 36.29, 224.41, 24.83, 220.59, 6.68, 640.0, 3.82]], "area": 80011.09254999999, "iscrowd": 0, "image_id": 566166, "bbox": [220.59, 3.82, 419.41, 381.03], "category_id": 22, "id": 581040}, {"segmentation": [[311.12, 22.07, 334.14, 27.94, 374.77, 47.35, 411.78, 80.3, 429.84, 103.77, 436.16, 119.12, 443.83, 154.78, 439.77, 156.13, 429.39, 163.36, 427.58, 170.58, 426.68, 185.93, 400.5, 163.81, 383.8, 151.62, 371.16, 144.4, 354.45, 115.51, 332.79, 86.17, 316.54, 56.83, 302.99, 66.76, 313.83, 72.17, 337.3, 102.42, 366.64, 143.95, 372.06, 153.42, 375.22, 163.36, 383.34, 170.58, 391.92, 182.77, 408.17, 211.2, 423.07, 227.0, 416.3, 267.18, 406.37, 295.62, 404.56, 332.63, 410.43, 373.71, 409.52, 390.41, 415.39, 408.92, 407.72, 412.08, 389.66, 410.27, 375.22, 409.37, 378.38, 386.8, 377.48, 355.2, 372.06, 322.25, 366.19, 288.84, 364.84, 265.37, 354.0, 284.33, 344.52, 313.22, 342.27, 356.1, 341.82, 387.7, 336.4, 401.24, 340.46, 425.62, 327.82, 430.58, 307.96, 428.33, 289.9, 426.07, 283.58, 422.46, 284.49, 411.62, 297.13, 398.53, 289.9, 392.67, 293.97, 381.83, 289.9, 358.36, 298.93, 331.28, 300.29, 290.2, 288.55, 268.08, 278.17, 251.83, 272.75, 241.45, 266.43, 264.92, 262.82, 301.48, 261.47, 332.63, 269.14, 365.13, 278.62, 382.28, 283.13, 392.67, 274.56, 411.17, 261.01, 417.49, 248.38, 419.3, 229.42, 417.49, 226.26, 434.65, 213.17, 436.45, 203.24, 428.33, 181.12, 421.1, 176.6, 412.98, 183.83, 403.5, 205.49, 411.62, 202.33, 360.62, 203.24, 299.68, 202.33, 289.75, 195.56, 209.85, 193.76, 198.56, 181.12, 166.51, 171.64, 152.52, 177.51, 134.47, 179.31, 115.96, 177.96, 106.48, 177.96, 73.53, 187.89, 55.47, 206.85, 46.89, 223.55, 41.48, 242.51, 40.57, 256.95, 40.12, 272.75, 35.16, 295.77, 26.13]], "area": 75347.64590000003, "iscrowd": 0, "image_id": 386850, "bbox": [171.64, 22.07, 272.19, 414.38], "category_id": 22, "id": 581609}, {"segmentation": [[2.69, 41.75, 25.59, 30.98, 41.75, 28.28, 59.26, 28.28, 75.42, 36.36, 91.59, 40.41, 106.4, 40.41, 131.99, 40.41, 154.89, 43.1, 172.4, 63.3, 184.52, 79.46, 208.76, 102.36, 227.62, 127.95, 222.23, 150.85, 211.45, 172.4, 199.33, 187.21, 188.56, 212.8, 185.86, 222.23, 183.17, 233.0, 185.86, 276.1, 199.33, 290.92, 249.17, 385.2, 242.43, 391.93, 228.96, 379.81, 212.8, 350.18, 195.29, 334.02, 192.6, 367.69, 211.45, 445.81, 228.96, 554.9, 235.7, 587.23, 218.19, 595.31, 199.33, 595.31, 187.21, 580.49, 181.82, 557.59, 162.97, 492.95, 148.15, 437.73, 141.42, 408.09, 130.64, 394.63, 113.14, 378.46, 105.05, 373.08, 95.63, 417.52, 88.89, 461.97, 92.93, 521.23, 95.63, 536.05, 98.32, 553.55, 98.32, 567.02, 66.0, 565.68, 24.24, 562.98, 10.77, 562.98, 10.77, 545.47, 13.47, 518.54, 10.77, 453.89, 6.73, 416.18, 0.0, 386.55]], "area": 95904.9693, "iscrowd": 0, "image_id": 376701, "bbox": [0.0, 28.28, 249.17, 567.03], "category_id": 22, "id": 581776}, {"segmentation": [[268.28, 201.19, 301.18, 169.79, 317.63, 163.06, 337.81, 160.82, 354.26, 154.09, 376.69, 151.85, 382.67, 166.06, 399.87, 173.53, 449.21, 167.55, 476.13, 166.06, 491.08, 171.29, 517.25, 191.48, 541.17, 231.85, 550.89, 252.78, 557.62, 270.73, 557.62, 277.45, 550.89, 273.72, 537.43, 266.99, 540.42, 253.53, 533.7, 241.57, 529.21, 240.82, 535.94, 284.93, 552.39, 315.58, 528.46, 321.57, 512.01, 310.35, 494.82, 296.89, 482.11, 292.41, 472.39, 298.39, 470.15, 314.09, 461.92, 312.59, 450.71, 317.08, 445.47, 301.38, 437.25, 287.92, 409.59, 279.7, 405.1, 278.95, 402.11, 287.92, 395.38, 301.38, 388.65, 314.84, 381.18, 330.54, 358.75, 331.29, 353.51, 320.82, 352.02, 310.35, 359.49, 285.68, 357.25, 261.75, 350.52, 247.55, 340.06, 250.54, 332.58, 244.56, 332.58, 236.33, 325.85, 234.84, 303.42, 236.33, 289.96, 232.6, 280.24, 228.11, 282.49, 241.57, 271.27, 236.33, 267.53, 230.35, 265.29, 227.36, 257.81, 209.42, 252.58, 206.43, 259.31, 201.94], [272.02, 243.06, 267.53, 274.46, 260.06, 285.68, 264.54, 301.38, 278.75, 317.83, 290.71, 320.82, 292.95, 313.34, 279.5, 299.14, 282.49, 272.22, 284.73, 246.05]], "area": 32009.02785, "iscrowd": 0, "image_id": 403535, "bbox": [252.58, 151.85, 305.04, 179.44], "category_id": 22, "id": 582269}, {"segmentation": [[67.96, 242.77, 62.56, 189.91, 64.72, 131.67, 78.74, 109.02, 93.84, 99.31, 106.79, 99.31, 124.04, 110.09, 168.27, 103.62, 251.33, 112.25, 270.74, 117.64, 323.6, 134.9, 355.96, 180.21, 331.15, 180.21, 312.81, 222.27, 268.58, 222.27, 236.22, 276.21, 232.99, 280.52, 208.18, 268.66, 214.65, 311.8, 184.45, 340.93, 172.58, 283.76, 143.46, 234.14, 142.38, 214.72, 127.28, 205.02, 96.0, 203.94, 91.69, 242.77]], "area": 36300.78854999999, "iscrowd": 0, "image_id": 4278, "bbox": [62.56, 99.31, 293.4, 241.62], "category_id": 22, "id": 582931}, {"segmentation": [[291.97, 108.53, 311.39, 103.17, 320.77, 101.83, 336.84, 108.53, 346.22, 119.24, 362.29, 144.02, 368.31, 167.46, 341.53, 163.44]], "area": 2341.7778000000008, "iscrowd": 0, "image_id": 485882, "bbox": [291.97, 101.83, 76.34, 65.63], "category_id": 22, "id": 582935}, {"segmentation": [[3.25, 318.46, 0.25, 310.99, 6.24, 311.73, 15.96, 304.26, 24.93, 291.55, 35.39, 260.89, 36.14, 238.46, 45.11, 216.03, 59.32, 192.11, 89.22, 183.89, 107.92, 183.89, 118.38, 186.13, 134.08, 190.61, 137.07, 181.64, 140.81, 177.16, 150.53, 172.67, 159.5, 162.2, 172.96, 150.99, 181.19, 153.23, 195.39, 163.7, 205.86, 170.43, 220.06, 170.43, 234.27, 182.39, 248.47, 204.82, 256.7, 211.55, 261.18, 219.77, 266.42, 231.74, 267.16, 234.73, 275.39, 238.46, 283.61, 239.96, 288.85, 240.71, 280.62, 243.7, 270.16, 243.7, 258.94, 248.93, 268.66, 257.16, 266.42, 255.66, 256.7, 254.16, 244.74, 243.7, 238.75, 236.22, 211.84, 237.72, 203.61, 238.46, 202.87, 259.4, 206.61, 275.85, 218.57, 303.51, 238.01, 333.42, 211.09, 331.92, 204.36, 323.7, 191.65, 313.98, 182.68, 307.25, 172.21, 282.58, 172.21, 302.01, 177.45, 315.47, 183.43, 321.45, 164.74, 331.92, 155.77, 322.2, 148.29, 314.72, 141.56, 308.0, 136.33, 305.0, 134.83, 296.78, 116.89, 298.28, 116.89, 304.26, 116.14, 311.73, 107.17, 322.95, 99.69, 331.17, 92.22, 340.89, 91.47, 344.63, 64.55, 341.64, 64.55, 325.19, 64.55, 313.98, 57.82, 298.28, 51.84, 285.57, 50.35, 275.1, 46.61, 269.12, 41.38, 266.87, 37.64, 276.59, 34.65, 287.06, 28.67, 295.29, 11.47, 308.74]], "area": 26969.465799999994, "iscrowd": 0, "image_id": 403535, "bbox": [0.25, 150.99, 288.6, 193.64], "category_id": 22, "id": 583362}, {"segmentation": [[329.33, 318.48, 321.02, 274.67, 309.93, 173.75, 307.71, 127.18, 313.81, 122.74, 327.67, 125.51, 344.86, 124.4, 365.37, 124.4, 381.45, 129.95, 391.99, 161.0, 395.32, 168.76, 391.44, 189.28, 391.99, 218.67, 390.33, 263.03, 389.22, 309.05, 380.9, 322.91, 372.03, 325.13, 365.37, 319.03, 365.37, 310.71, 375.91, 309.6, 374.25, 263.58, 372.58, 224.21, 363.16, 208.69, 354.84, 207.02, 352.07, 271.34, 354.84, 305.17, 351.51, 312.38], [269.45, 207.58, 281.65, 242.51, 285.53, 285.76, 302.72, 291.31, 278.32, 206.47]], "area": 13015.3952, "iscrowd": 0, "image_id": 27070, "bbox": [269.45, 122.74, 125.87, 202.39], "category_id": 22, "id": 583621}, {"segmentation": [[3.23, 4.3, 51.66, 9.69, 103.32, 1.08, 315.34, 0.0, 331.48, 7.53, 370.22, 18.3, 383.14, 45.2, 385.29, 79.64, 394.98, 109.78, 406.82, 164.66, 425.11, 217.4, 417.58, 252.91, 432.65, 259.37, 412.2, 264.75, 429.42, 271.21, 426.19, 277.67, 415.43, 273.36, 382.06, 303.5, 337.94, 307.8, 322.87, 270.13, 327.17, 213.09, 293.81, 195.87, 263.68, 190.49, 232.47, 177.58, 218.48, 195.87, 219.55, 249.69, 217.4, 329.33, 216.32, 397.13, 221.7, 425.11, 216.32, 446.64, 228.16, 471.39, 164.66, 473.54, 173.27, 458.48, 150.67, 321.79, 129.15, 380.99, 124.84, 415.43, 120.54, 432.65, 142.06, 469.24, 55.96, 467.09, 77.49, 442.33, 71.03, 418.65, 82.87, 356.23, 68.88, 299.19, 58.12, 277.67, 4.3, 289.51, 1.08, 7.53]], "area": 125864.35809999998, "iscrowd": 0, "image_id": 309694, "bbox": [1.08, 0.0, 431.57, 473.54], "category_id": 22, "id": 584601}, {"segmentation": [[313.89, 222.47, 333.3, 180.4, 373.21, 180.4, 396.94, 181.48, 416.36, 176.09, 463.82, 175.01, 518.83, 195.51, 563.06, 239.73, 577.08, 305.53, 573.84, 362.7, 580.31, 373.48, 568.45, 370.25, 564.13, 350.83, 566.29, 291.51, 563.06, 294.74, 561.98, 329.26, 557.66, 345.44, 564.13, 379.96, 555.51, 385.35, 542.56, 374.56, 533.93, 337.89, 528.54, 336.81, 523.15, 347.6, 537.17, 375.64, 542.56, 386.43, 533.93, 395.06, 523.15, 397.21, 518.83, 383.19, 499.42, 358.38, 483.24, 331.42, 484.31, 318.47, 472.45, 315.24, 469.21, 289.35, 450.88, 260.22, 404.49, 232.18, 369.98, 221.39, 316.04, 222.47], [303.1, 309.84, 304.18, 333.57, 288.0, 352.99, 294.47, 368.09, 303.1, 352.99, 308.49, 345.44, 312.81, 336.81, 313.89, 330.34, 308.49, 314.16]], "area": 25116.567399999993, "iscrowd": 0, "image_id": 4278, "bbox": [288.0, 175.01, 292.31, 222.2], "category_id": 22, "id": 584641}, {"segmentation": [[456.98, 168.68, 472.14, 177.1, 493.2, 183.84, 521.0, 198.16, 546.27, 217.53, 556.37, 237.75, 569.01, 233.54, 570.69, 245.33, 576.59, 248.7, 579.96, 263.02, 574.06, 281.55, 576.59, 291.66, 576.59, 303.45, 595.12, 299.24, 603.55, 294.19, 603.55, 290.82, 621.23, 295.03, 628.82, 291.66, 629.66, 285.76, 627.13, 284.08, 616.18, 261.33, 622.08, 228.48, 621.23, 226.8, 619.55, 207.42, 629.66, 181.31, 629.66, 253.75, 630.5, 261.33, 630.5, 264.7, 627.97, 273.97, 630.5, 270.6, 634.71, 267.23, 634.71, 267.23, 634.71, 265.55, 633.03, 242.8, 633.87, 216.69, 638.92, 185.52, 635.55, 153.51, 635.55, 153.51, 633.87, 145.09, 624.6, 132.46, 620.39, 124.88, 597.65, 105.5, 567.32, 99.6, 540.37, 94.55, 523.52, 91.18, 509.2, 90.34, 490.67, 90.34, 483.09, 93.71, 472.98, 97.08, 462.03, 99.6, 439.29, 92.02, 439.29, 92.02, 408.12, 92.87, 384.54, 92.87, 378.64, 92.87, 366.01, 100.45, 364.32, 107.19, 361.79, 113.92, 360.95, 124.03, 354.21, 153.51, 354.21, 154.36, 354.21, 154.36, 372.74, 153.51, 392.12, 151.83, 399.7, 157.73, 399.7, 160.25, 401.38, 172.05, 403.07, 176.26, 404.75, 179.63, 407.28, 179.63, 414.86, 176.26, 416.55, 174.57, 419.92, 165.31, 447.71, 172.05]], "area": 29130.8076, "iscrowd": 0, "image_id": 4278, "bbox": [354.21, 90.34, 284.71, 213.11], "category_id": 22, "id": 584824}, {"segmentation": [[380.95, 154.69, 389.15, 156.25, 393.06, 155.08, 396.58, 155.08, 402.83, 155.08, 408.69, 146.48, 412.21, 135.93, 414.16, 130.85, 411.42, 123.82, 412.99, 114.44, 404.39, 109.75, 399.7, 107.41, 391.5, 103.5, 383.29, 98.81, 361.8, 97.64, 356.72, 98.42, 349.69, 104.67, 338.36, 105.85, 323.51, 109.36, 315.7, 110.14, 305.15, 118.35, 296.16, 122.26, 287.56, 133.98, 281.7, 148.44, 278.58, 160.16, 278.58, 160.55, 287.96, 165.24, 301.63, 165.24, 324.68, 166.8, 332.89, 166.41, 338.36, 164.85, 338.75, 163.28, 350.08, 158.99, 357.9, 158.2, 367.66, 158.2, 379.39, 155.08]], "area": 6681.339900000002, "iscrowd": 0, "image_id": 272804, "bbox": [278.58, 97.64, 135.58, 69.16], "category_id": 23, "id": 586507}, {"segmentation": [[261.96, 140.16, 287.87, 128.64, 292.66, 125.77, 308.02, 123.85, 332.96, 119.05, 355.03, 117.13, 372.31, 99.86, 403.97, 53.8, 427.96, 21.17, 452.91, 6.78, 468.26, 5.82, 512.4, 4.86, 570.93, 5.82, 604.52, 5.82, 640.0, 5.82, 634.26, 324.39, 609.31, 329.19, 577.65, 325.35, 546.94, 319.59, 503.76, 323.43, 480.73, 318.63, 440.43, 317.68, 396.29, 323.43, 362.71, 326.31, 296.5, 328.23, 252.36, 323.43, 216.86, 323.43, 194.79, 324.39, 176.56, 321.51, 169.84, 314.8, 179.44, 298.48, 181.36, 288.89, 186.15, 273.54, 189.99, 272.58, 199.59, 280.25, 211.1, 280.25, 211.1, 269.7, 198.63, 262.02, 153.53, 243.79, 130.5, 227.48, 117.07, 214.04, 98.83, 195.81, 79.64, 182.38, 74.84, 174.7, 70.05, 155.51, 73.89, 141.12, 81.56, 130.56, 93.08, 123.85, 126.66, 132.48, 162.16, 143.04, 203.42, 150.71]], "area": 126482.04595, "iscrowd": 0, "image_id": 337167, "bbox": [70.05, 4.86, 569.95, 324.33], "category_id": 23, "id": 586982}, {"segmentation": [[388.33, 245.89, 409.14, 248.2, 410.29, 245.89, 414.92, 256.29, 434.56, 272.47, 439.19, 284.03, 448.43, 284.03, 465.77, 273.63, 477.33, 266.69, 485.42, 255.13, 491.2, 244.73, 509.69, 236.64, 518.93, 234.33, 538.58, 196.19, 550.14, 134.93, 546.67, 106.04, 524.71, 88.7, 456.52, 47.1, 371.0, 22.83, 334.01, 19.36, 288.94, 36.7, 247.33, 58.65, 205.72, 84.08, 182.61, 104.88, 165.27, 123.38, 147.94, 156.89, 142.16, 162.67, 115.58, 196.19, 104.02, 222.77, 101.71, 273.63, 104.02, 286.34, 101.71, 308.3, 128.29, 341.81, 128.29, 373.02, 143.31, 429.65, 149.09, 441.21, 190.7, 444.68, 206.88, 434.28, 235.77, 412.32, 234.62, 399.6, 217.28, 371.86, 211.5, 360.31, 211.5, 323.32, 220.75, 296.74, 232.31, 315.23, 242.71, 321.01, 251.95, 321.01, 276.23, 332.57, 295.87, 341.81, 324.77, 340.66, 327.08, 340.66, 342.1, 353.37, 365.22, 388.05, 386.02, 404.23, 416.07, 416.94, 449.59, 400.76, 450.74, 384.58, 456.52, 353.37, 451.9, 341.81, 425.32, 359.15, 345.57, 344.13, 330.55, 326.79, 332.86, 265.53, 358.28, 245.89, 391.8, 244.73]], "area": 112255.06945, "iscrowd": 0, "image_id": 82091, "bbox": [101.71, 19.36, 448.43, 425.32], "category_id": 23, "id": 587110}, {"segmentation": [[111.16, 354.4, 124.93, 314.17, 121.75, 290.88, 100.58, 276.05, 85.75, 274.99, 43.41, 283.46, 32.82, 259.11, 38.11, 246.41, 47.64, 222.06, 61.4, 188.18, 77.28, 158.54, 112.22, 135.25, 147.16, 135.25, 200.09, 163.83, 269.97, 195.59, 300.67, 207.24, 329.25, 243.23, 373.72, 262.29, 398.07, 294.05, 412.89, 338.52, 418.18, 366.04, 405.48, 382.98, 350.43, 410.51, 334.55, 404.16, 295.37, 370.28, 268.91, 359.69, 201.15, 376.63, 131.28, 387.22, 104.81, 381.92, 64.58, 389.33, 36.0, 396.74, 24.35, 387.22, 30.7, 377.69, 69.87, 367.1, 116.46, 356.51]], "area": 63510.55290000002, "iscrowd": 0, "image_id": 509269, "bbox": [24.35, 135.25, 393.83, 275.26], "category_id": 23, "id": 587409}, {"segmentation": [[213.0, 321.84, 208.22, 297.01, 194.85, 272.17, 187.21, 229.19, 190.08, 200.54, 206.31, 169.02, 225.42, 157.55, 241.65, 157.55, 252.16, 157.55, 277.95, 157.55, 296.1, 170.93, 298.01, 196.71, 298.01, 235.88, 298.01, 283.63, 292.28, 318.97, 278.91, 339.03, 264.58, 352.41, 252.16, 356.23, 234.97, 353.36, 234.97, 353.36]], "area": 17851.042049999996, "iscrowd": 0, "image_id": 13258, "bbox": [187.21, 157.55, 110.8, 198.68], "category_id": 23, "id": 587490}, {"segmentation": [[407.87, 336.2, 395.22, 295.1, 380.47, 275.08, 339.37, 249.78, 348.85, 236.08, 358.34, 181.28, 348.85, 179.17, 334.1, 199.19, 319.34, 190.76, 289.83, 201.3, 257.16, 189.71, 265.59, 171.79, 265.59, 123.31, 300.37, 52.7, 355.18, 33.73, 400.49, 28.46, 445.81, 2.11, 515.37, 8.43, 532.24, 46.37, 537.51, 71.67, 584.93, 125.42, 604.96, 204.46, 606.01, 248.73, 617.6, 289.83, 609.17, 316.18, 537.51, 363.61, 506.94, 380.47, 470.05, 359.39, 443.71, 369.93, 411.03, 366.77]], "area": 87405.5738, "iscrowd": 0, "image_id": 509269, "bbox": [257.16, 2.11, 360.44, 378.36], "category_id": 23, "id": 587752}, {"segmentation": [[240.43, 70.69, 263.51, 74.53, 292.36, 62.99, 301.98, 78.38, 311.59, 77.42, 325.06, 78.38, 324.1, 91.84, 348.14, 101.46, 363.53, 102.42, 377.95, 125.5, 386.61, 131.27, 387.57, 175.51, 387.57, 211.1, 373.14, 236.1, 369.3, 251.49, 358.72, 284.19, 354.87, 303.42, 353.91, 327.46, 360.64, 350.54, 367.37, 367.85, 365.45, 375.55, 361.6, 380.36, 357.76, 380.36, 348.14, 381.32, 346.22, 379.4, 344.29, 371.7, 344.29, 344.77, 340.45, 327.46, 338.52, 318.81, 337.56, 355.35, 352.95, 399.59, 332.75, 404.4, 326.02, 401.51, 316.4, 368.82, 311.59, 366.89, 308.71, 363.05, 313.52, 350.54, 321.21, 326.5, 319.29, 294.76, 315.44, 266.88, 301.02, 258.22, 297.17, 287.07, 297.17, 327.46, 294.28, 374.59, 287.55, 406.32, 276.97, 406.32, 268.32, 400.55, 269.28, 394.78, 277.93, 364.01, 277.93, 330.35, 276.97, 295.73, 272.16, 268.8, 266.39, 245.72, 266.39, 224.56, 263.51, 213.98, 251.01, 220.71, 246.2, 213.98, 240.43, 195.71, 248.12, 152.43, 246.2, 122.62, 251.97, 109.15, 240.43, 100.5, 236.58, 79.34]], "area": 31619.156150000006, "iscrowd": 0, "image_id": 399835, "bbox": [236.58, 62.99, 150.99, 343.33], "category_id": 24, "id": 588413}, {"segmentation": [[376.7, 297.6, 367.31, 260.51, 349.47, 240.32, 321.77, 223.42, 300.64, 214.5, 282.33, 212.15, 272.47, 211.21, 269.65, 246.89, 259.79, 268.96, 248.99, 290.09, 242.42, 305.11, 242.42, 311.22, 240.54, 319.2, 238.19, 331.88, 241.95, 338.45, 241.95, 355.35, 240.54, 363.8, 240.07, 387.28, 238.66, 408.88, 239.13, 421.08, 239.6, 425.31, 233.03, 431.41, 229.74, 438.92, 226.92, 445.03, 214.72, 440.8, 207.67, 440.8, 199.69, 439.86, 198.28, 432.82, 202.98, 424.37, 203.92, 416.39, 206.27, 403.71, 211.43, 382.11, 209.55, 368.97, 208.61, 360.99, 208.61, 354.88, 208.61, 348.31, 209.55, 345.49, 195.47, 327.65, 190.77, 321.55, 186.55, 312.16, 183.73, 304.64, 168.24, 306.99, 167.77, 312.16, 163.54, 330.47, 160.72, 346.43, 161.66, 359.58, 158.85, 373.19, 156.97, 388.69, 159.32, 398.08, 162.13, 404.65, 161.66, 410.75, 159.32, 417.33, 159.78, 425.31, 162.13, 428.13, 145.23, 437.05, 141.94, 430.94, 142.88, 423.9, 145.23, 418.27, 146.17, 409.81, 145.7, 403.71, 147.11, 399.49, 145.23, 370.84, 141.47, 375.07, 141.94, 384.46, 141.0, 391.97, 143.82, 400.89, 143.35, 407.47, 137.72, 413.57, 131.14, 417.33, 126.45, 418.27, 117.53, 410.28, 114.71, 405.12, 113.77, 395.73, 113.3, 385.87, 108.61, 372.25, 104.85, 362.86, 101.1, 351.13, 100.16, 364.27, 99.69, 368.97, 97.81, 369.44, 94.05, 392.91, 94.99, 404.18, 97.81, 410.75, 96.87, 415.45, 91.71, 421.08, 90.3, 426.72, 93.11, 432.82, 90.3, 437.05, 73.86, 437.05, 66.35, 435.17, 75.74, 423.43, 79.03, 414.04, 81.38, 403.24, 83.72, 380.7, 82.78, 363.33, 82.32, 346.43, 82.78, 334.69, 78.56, 314.5, 73.39, 303.7, 70.58, 288.21, 69.64, 272.25, 68.23, 256.75, 67.76, 244.08, 70.11, 228.11, 79.5, 200.41, 91.24, 182.57, 99.22, 172.71, 107.67, 167.08, 124.57, 160.03, 135.84, 161.91, 164.01, 154.87, 184.67, 146.42, 199.22, 144.07, 220.82, 146.89, 239.13, 158.16, 257.91, 176.47, 270.12, 196.19, 271.06, 200.88, 289.84, 199.94, 304.86, 193.84, 326.46, 192.43, 353.22, 200.88, 372.47, 215.44, 379.05, 235.63, 381.39, 246.89, 385.62, 264.74, 384.68, 279.29, 381.86, 287.74, 378.58, 295.25]], "area": 44723.44400000002, "iscrowd": 0, "image_id": 542173, "bbox": [66.35, 144.07, 319.27, 300.96], "category_id": 24, "id": 588571}, {"segmentation": [[222.92, 153.11, 207.91, 145.61, 213.16, 161.37, 218.41, 162.87, 213.91, 170.38, 181.64, 174.13, 168.88, 180.13, 166.62, 187.64, 159.87, 194.4, 150.86, 191.39, 150.86, 198.15, 162.12, 201.9, 162.12, 200.4, 171.13, 225.92, 165.12, 286.71, 169.63, 288.22, 177.13, 236.43, 177.88, 235.68, 195.15, 287.47, 198.15, 284.46, 189.14, 241.68, 200.4, 230.42, 201.9, 230.42, 198.9, 273.96, 203.4, 263.45, 210.16, 232.67, 218.41, 234.18, 214.66, 263.45, 230.42, 276.21, 224.42, 246.93, 225.17, 213.91, 232.67, 201.15, 229.67, 183.14, 238.68, 192.89, 241.68, 176.38, 242.43, 159.12, 252.19, 143.36, 235.68, 149.36]], "area": 5947.199849999998, "iscrowd": 0, "image_id": 326472, "bbox": [150.86, 143.36, 101.33, 144.86], "category_id": 24, "id": 588608}, {"segmentation": [[444.31, 140.41, 453.93, 118.29, 468.35, 103.86, 502.01, 104.83, 528.94, 113.48, 552.98, 123.1, 566.45, 143.3, 577.03, 201.96, 588.57, 221.19, 589.53, 245.24, 587.61, 246.2, 572.22, 236.58, 554.91, 226.0, 540.48, 217.35, 529.9, 226.0, 528.94, 262.55, 509.71, 262.55, 507.78, 232.73, 490.47, 210.61, 484.7, 220.23, 486.63, 261.59, 486.63, 269.28, 470.28, 270.24, 456.81, 222.16, 441.43, 174.07, 392.38, 176.95, 382.76, 184.65, 382.76, 179.84, 392.38, 167.34, 437.58, 160.61, 446.23, 138.49]], "area": 16697.769299999996, "iscrowd": 0, "image_id": 189660, "bbox": [382.76, 103.86, 206.77, 166.38], "category_id": 24, "id": 588741}, {"segmentation": [[379.89, 306.13, 379.89, 278.41, 373.13, 260.82, 386.65, 224.31, 392.06, 197.26, 391.38, 171.57, 377.86, 154.66, 371.77, 151.28, 353.52, 143.84, 345.4, 140.46, 325.79, 136.4, 281.16, 149.25, 271.7, 151.28, 264.26, 151.28, 241.94, 141.14, 229.09, 136.4, 212.19, 103.27, 208.13, 92.45, 218.27, 87.04, 234.5, 63.37, 231.12, 51.2, 220.3, 57.96, 204.07, 66.08, 195.96, 75.54, 191.23, 78.25, 181.08, 78.92, 164.85, 68.1, 158.77, 60.67, 148.63, 51.2, 152.68, 70.81, 156.74, 81.63, 163.5, 95.83, 163.5, 105.3, 161.47, 121.53, 164.18, 147.22, 171.62, 151.95, 181.08, 152.63, 193.93, 151.95, 206.78, 153.98, 283.19, 170.89, 312.94, 187.12, 325.79, 208.08, 342.02, 224.99, 373.13, 287.87, 375.83, 306.81]], "area": 14416.716, "iscrowd": 0, "image_id": 285307, "bbox": [148.63, 51.2, 243.43, 255.61], "category_id": 24, "id": 589112}, {"segmentation": [[268.31, 148.78, 260.9, 156.87, 257.53, 165.64, 254.83, 171.03, 250.79, 172.38, 243.37, 170.36, 240.0, 166.99, 234.61, 157.55, 233.93, 146.76, 236.63, 137.32, 238.65, 131.25, 237.3, 121.82, 237.98, 106.31, 236.63, 92.83, 244.04, 90.13, 250.79, 88.78, 262.92, 84.06, 276.4, 85.41, 287.19, 90.13, 299.33, 98.9, 314.16, 106.99, 334.38, 113.73, 341.8, 116.42, 351.24, 117.77, 375.51, 113.73, 385.62, 113.05, 404.49, 112.38, 412.58, 115.07, 423.37, 115.75, 435.51, 131.93, 439.55, 140.69, 445.62, 150.81, 446.29, 170.36, 446.29, 184.51, 443.6, 196.65, 444.94, 210.81, 448.31, 221.59, 451.69, 231.7, 453.03, 245.86, 448.99, 246.54, 443.6, 241.82, 440.9, 234.4, 434.83, 224.96, 433.48, 213.5, 428.76, 206.76, 421.35, 195.97, 415.96, 187.21, 413.93, 187.21, 408.54, 187.21, 407.19, 191.93, 404.49, 195.97, 401.12, 203.39, 402.47, 213.5, 404.49, 218.22, 404.49, 226.31, 399.1, 244.51, 398.43, 248.56, 396.4, 258.0, 394.38, 262.04, 389.66, 263.39, 384.27, 261.37, 382.92, 259.34, 381.57, 254.63, 381.57, 250.58, 382.92, 239.79, 384.27, 237.77, 386.29, 231.03, 384.27, 216.87, 381.57, 209.46, 378.88, 198.67, 376.18, 195.97, 369.44, 198.0, 362.02, 200.69, 358.65, 200.69, 346.52, 203.39, 333.71, 197.32, 327.64, 192.6, 327.64, 193.28, 327.64, 206.76, 331.01, 213.5, 333.71, 226.99, 334.38, 234.4, 334.38, 245.19, 333.71, 249.91, 332.36, 258.0, 326.97, 258.0, 323.6, 255.3, 320.22, 250.58, 318.2, 241.82, 320.22, 234.4, 321.57, 229.68, 319.55, 213.5, 315.51, 197.32, 315.51, 192.6, 314.16, 191.25, 306.74, 189.91, 304.72, 190.58, 297.3, 193.95, 291.24, 200.02, 289.89, 207.43, 284.49, 211.48, 280.45, 218.22, 276.4, 225.64, 275.06, 231.03, 274.38, 234.4, 273.71, 244.51, 264.94, 239.12, 263.6, 228.33, 261.57, 219.57, 264.27, 212.83, 267.64, 204.06, 272.36, 194.63, 277.08, 187.21, 279.1, 178.45, 279.1, 165.64, 279.1, 162.94, 276.4, 156.87, 270.34, 148.78, 266.97, 148.78]], "area": 20507.66969999999, "iscrowd": 0, "image_id": 453906, "bbox": [233.93, 84.06, 219.1, 179.33], "category_id": 24, "id": 589273}, {"segmentation": [[346.63, 202.29, 352.26, 200.13, 350.53, 187.57, 350.53, 184.97, 356.16, 188.0, 355.73, 178.47, 346.2, 154.64, 341.0, 147.71, 316.31, 149.01, 300.71, 154.21, 287.28, 163.74, 279.05, 175.87, 275.15, 181.5, 277.32, 199.7, 275.15, 203.16, 275.59, 205.33, 279.48, 199.26, 283.82, 202.29, 287.28, 201.43, 290.31, 188.87, 295.51, 181.07, 300.28, 177.6, 303.31, 182.8, 305.91, 197.53, 305.91, 204.89, 302.01, 206.63, 309.37, 204.03, 308.51, 182.8, 316.74, 192.76, 324.1, 200.56, 330.6, 201.43, 321.94, 193.2, 313.71, 181.5, 326.27, 180.2, 334.07, 178.47, 338.83, 181.93, 344.46, 192.33, 347.5, 201.43]], "area": 2605.3555499999998, "iscrowd": 0, "image_id": 260011, "bbox": [275.15, 147.71, 81.01, 58.92], "category_id": 24, "id": 589513}, {"segmentation": [[249.19, 122.86, 230.42, 128.12, 216.16, 140.13, 211.66, 151.38, 221.42, 152.89, 246.18, 146.13, 243.18, 161.14, 244.68, 185.16, 235.68, 191.91, 231.17, 191.91, 227.42, 230.94, 231.17, 249.71, 238.68, 276.73, 246.18, 278.23, 244.68, 265.47, 243.18, 254.21, 242.43, 236.95, 240.93, 221.19, 255.94, 200.92, 259.69, 210.68, 288.97, 211.43, 282.96, 225.69, 279.96, 239.2, 281.46, 257.21, 283.71, 275.23, 298.72, 275.23, 292.72, 248.96, 300.22, 234.7, 307.73, 218.93, 307.73, 207.68, 313.73, 209.18, 318.99, 234.7, 321.24, 248.96, 328.75, 266.22, 338.5, 274.48, 349.76, 279.73, 349.01, 269.22, 346.76, 263.97, 341.51, 260.22, 339.25, 250.46, 336.25, 241.45, 336.25, 224.19, 336.25, 209.18, 337.75, 208.43, 347.51, 220.44, 348.26, 230.19, 348.26, 245.2, 357.27, 258.71, 363.27, 267.72, 367.78, 280.48, 381.29, 271.47, 376.78, 260.97, 380.53, 246.71, 384.29, 230.19, 384.29, 224.19, 403.8, 215.18, 381.29, 209.18, 375.28, 194.17, 362.52, 165.64, 328.0, 130.37, 302.48, 132.62, 264.2, 124.36, 250.69, 123.61]], "area": 15447.560150000005, "iscrowd": 0, "image_id": 326472, "bbox": [211.66, 122.86, 192.14, 157.62], "category_id": 24, "id": 589731}, {"segmentation": [[44.7, 85.16, 50.11, 95.32, 52.82, 95.99, 59.59, 96.67, 53.5, 106.83, 54.85, 129.85, 54.85, 140.01, 54.18, 145.43, 53.5, 153.56, 58.24, 159.65, 62.98, 159.65, 67.72, 159.65, 70.43, 157.62, 70.43, 156.94, 71.11, 146.11, 71.78, 142.72, 77.2, 139.33, 79.91, 137.3, 80.59, 135.95, 90.74, 150.17, 95.49, 170.49, 98.19, 175.9, 100.23, 216.53, 119.19, 234.82, 127.99, 235.5, 125.28, 231.43, 122.57, 228.72, 121.22, 223.98, 123.93, 217.21, 131.38, 184.71, 147.63, 186.06, 159.82, 186.06, 164.56, 184.71, 165.91, 183.35, 172.01, 202.99, 154.4, 238.88, 162.53, 243.62, 184.88, 208.41, 182.17, 184.03, 196.39, 164.39, 210.61, 179.97, 220.09, 221.95, 217.38, 242.27, 226.86, 244.98, 230.93, 199.6, 239.05, 194.19, 230.93, 177.93, 232.96, 147.46, 235.67, 127.14, 228.89, 112.25, 209.26, 100.06, 189.62, 95.99, 147.63, 105.47, 117.83, 100.06, 77.88, 79.06, 68.4, 76.35, 64.33, 81.77, 59.59, 85.84, 52.82, 81.77, 49.44, 81.77]], "area": 16820.182750000004, "iscrowd": 0, "image_id": 453906, "bbox": [44.7, 76.35, 194.35, 168.63], "category_id": 24, "id": 589841}, {"segmentation": [[256.58, 86.17, 177.12, 185.74, 154.14, 247.97, 171.37, 263.28, 161.8, 347.54, 194.35, 372.43, 249.88, 290.09, 231.69, 254.67, 275.73, 205.84, 292.96, 220.2, 263.28, 320.73, 245.09, 358.07, 270.94, 356.15, 299.67, 273.82, 283.39, 344.66, 307.33, 342.75, 321.69, 313.07, 325.52, 198.18, 402.11, 197.22, 418.38, 188.61, 430.83, 239.35, 421.26, 308.28, 443.28, 304.45, 462.42, 205.84, 448.06, 179.03, 466.25, 195.31, 463.38, 309.24, 488.27, 303.5, 485.4, 185.74, 496.89, 99.57, 457.64, 46.91, 385.83, 47.87, 300.62, 65.1, 281.48, 83.29]], "area": 61438.27655000001, "iscrowd": 0, "image_id": 357929, "bbox": [154.14, 46.91, 342.75, 325.52], "category_id": 24, "id": 589896}, {"segmentation": [[101.43, 266.12, 95.85, 271.31, 93.06, 276.09, 89.87, 284.06, 86.28, 288.45, 81.89, 287.65, 75.91, 284.86, 77.11, 269.31, 77.51, 263.73, 77.51, 253.77, 77.11, 250.18, 75.12, 247.79, 74.72, 243.8, 75.12, 239.81, 79.1, 232.24, 90.27, 213.11, 94.25, 207.92, 97.84, 203.94, 103.02, 199.15, 109.8, 193.97, 116.97, 188.79, 127.74, 186.8, 142.09, 183.21, 154.84, 186.0, 166.0, 183.21, 178.76, 181.22, 189.12, 178.43, 196.7, 177.23, 202.68, 176.83, 209.45, 177.63, 215.03, 180.02, 223.4, 184.8, 226.99, 190.39, 228.19, 197.16, 228.19, 202.74, 228.59, 210.32, 228.59, 214.3, 224.2, 228.25, 224.2, 232.24, 222.61, 235.43, 225.4, 239.02, 228.59, 242.6, 227.39, 253.77, 227.79, 258.55, 226.19, 264.53, 226.59, 270.11, 226.19, 275.69, 224.2, 278.48, 221.01, 281.67, 217.42, 281.67, 213.04, 281.67, 212.64, 280.07, 217.42, 276.09, 219.02, 272.5, 220.22, 265.72, 220.22, 257.35, 220.22, 252.97, 219.02, 249.78, 216.23, 246.59, 210.25, 241.01, 211.84, 248.58, 209.45, 251.37, 207.86, 257.75, 203.87, 265.33, 200.28, 277.28, 196.7, 280.87, 193.51, 281.67, 189.12, 282.07, 186.73, 282.47, 188.72, 277.28, 193.91, 273.7, 202.28, 255.76, 201.08, 249.38, 198.69, 239.81, 194.7, 233.44, 194.3, 230.25, 192.71, 230.25, 182.75, 239.42, 167.6, 242.21, 155.24, 238.22, 146.07, 232.64, 146.07, 237.42, 146.87, 249.78, 152.45, 272.5, 154.84, 281.27, 151.65, 284.46, 144.88, 284.46, 141.69, 279.28, 146.07, 274.49, 140.89, 255.36, 140.49, 278.88, 138.9, 286.45, 129.33, 286.05, 128.93, 282.07, 133.32, 276.89, 131.72, 236.63, 122.55, 236.23, 118.57, 232.24, 107.41, 237.42, 100.23, 246.99, 101.43, 254.96, 101.83, 265.72]], "area": 9829.4913, "iscrowd": 0, "image_id": 94118, "bbox": [74.72, 176.83, 153.87, 111.62], "category_id": 24, "id": 590083}, {"segmentation": [[280.27, 622.3, 287.49, 587.63, 290.38, 542.84, 290.38, 515.4, 300.5, 479.28, 314.94, 473.5, 323.61, 469.16, 348.17, 500.95, 362.62, 529.84, 375.62, 560.18, 391.51, 599.19, 416.07, 629.53, 417.52, 632.42, 431.96, 600.63, 427.63, 577.52, 418.96, 538.51, 408.85, 485.06, 394.4, 415.71, 355.4, 320.36, 316.39, 297.25, 260.05, 268.35, 232.6, 230.79, 225.37, 191.78, 245.6, 126.77, 238.37, 109.44, 215.26, 131.11, 210.93, 131.11, 206.59, 131.11, 182.03, 110.88, 145.91, 126.77, 144.47, 131.11, 115.58, 125.33, 95.35, 152.78, 137.25, 183.12, 153.14, 196.12, 163.25, 210.56, 177.7, 246.68, 177.7, 266.91, 173.36, 307.36, 167.58, 329.03, 173.36, 360.81, 177.7, 389.71, 177.7, 440.27, 156.03, 513.95, 156.03, 542.84, 148.8, 613.63, 148.8, 613.63, 148.8, 625.19, 184.92, 606.41, 184.92, 526.95, 192.14, 486.5, 203.7, 451.83, 206.59, 440.27, 222.48, 457.61, 228.26, 466.28, 245.6, 495.17, 245.6, 544.29, 249.93, 599.19, 249.93, 620.86, 249.93, 628.08, 251.38, 628.08, 271.6, 628.08]], "area": 70952.94605000001, "iscrowd": 0, "image_id": 186255, "bbox": [95.35, 109.44, 336.61, 522.98], "category_id": 24, "id": 590400}, {"segmentation": [[434.02, 240.15, 443.35, 217.4, 445.69, 200.19, 444.81, 184.73, 446.27, 172.47, 444.23, 163.14, 441.02, 150.01, 436.65, 141.26, 417.98, 129.89, 410.98, 125.8, 398.14, 125.22, 394.06, 125.51, 394.35, 112.09, 393.18, 106.26, 395.81, 97.8, 397.56, 92.55, 405.14, 91.09, 414.19, 77.67, 420.6, 67.17, 416.81, 66.59, 405.14, 73.59, 389.97, 81.76, 384.43, 82.93, 385.31, 78.26, 384.72, 67.76, 378.6, 58.71, 371.6, 61.92, 368.68, 69.8, 369.56, 79.42, 367.81, 79.42, 360.51, 70.09, 356.14, 64.26, 349.72, 63.38, 349.14, 68.92, 351.18, 84.09, 355.85, 91.97, 355.26, 94.01, 353.51, 98.97, 351.76, 101.89, 350.89, 107.14, 352.35, 112.39, 352.35, 122.01, 348.85, 128.14, 346.22, 136.89, 349.43, 145.06, 364.6, 150.6, 384.43, 160.81, 389.1, 171.02, 392.89, 193.48, 388.81, 214.77, 385.6, 227.9, 379.47, 253.86, 379.18, 256.48, 384.43, 274.86, 385.6, 287.98, 384.72, 314.82, 384.72, 317.15, 402.81, 315.11, 401.93, 296.74, 402.52, 285.94, 405.73, 274.86, 406.02, 306.94, 410.1, 317.74, 422.35, 316.57, 420.89, 291.48, 423.52, 275.44, 432.56, 252.4], [394.35, 332.61, 404.56, 329.7, 404.85, 339.61, 407.48, 347.49, 411.85, 362.07, 414.77, 367.62, 414.77, 369.66, 401.64, 371.99, 400.18, 368.78, 400.18, 364.41, 396.39, 360.32, 395.23, 355.37, 396.1, 346.32, 395.23, 338.45, 392.89, 331.15], [422.64, 318.9, 411.85, 327.07, 411.85, 332.03, 415.35, 336.99, 414.48, 343.99, 421.19, 348.66, 430.23, 348.95, 430.81, 340.49, 424.69, 332.61, 423.52, 325.32]], "area": 13616.234099999998, "iscrowd": 0, "image_id": 285307, "bbox": [346.22, 58.71, 100.05, 313.28], "category_id": 24, "id": 591234}, {"segmentation": [[97.8, 618.79, 123.69, 581.39, 133.75, 520.99, 132.31, 483.6, 128.0, 421.75, 112.18, 380.04, 122.25, 336.9, 143.82, 299.51, 176.9, 283.69, 169.71, 329.71, 176.9, 391.55, 182.65, 456.27, 151.01, 506.61, 155.33, 555.51, 146.7, 536.81, 138.07, 600.09, 123.69, 631.73, 102.11, 623.1], [224.36, 191.64, 235.87, 161.44, 247.37, 187.33, 261.75, 177.26, 274.7, 170.07, 286.2, 181.57, 270.38, 193.08, 276.13, 203.15, 327.91, 197.39, 304.9, 220.4, 289.08, 227.6, 291.96, 259.24, 271.82, 264.99, 250.25, 266.43, 227.24, 211.78, 230.11, 193.08, 237.3, 170.07], [302.02, 516.67, 325.03, 579.96, 307.78, 594.34, 291.96, 564.13, 284.76, 539.69], [243.06, 489.35, 240.18, 516.67, 248.81, 551.19, 248.81, 522.43, 247.37, 492.22], [289.08, 620.22, 293.39, 634.61, 312.09, 630.29, 304.9, 608.72, 289.08, 590.02]], "area": 20201.057399999998, "iscrowd": 0, "image_id": 186255, "bbox": [97.8, 161.44, 230.11, 473.17], "category_id": 24, "id": 591531}, {"segmentation": [[80.97, 164.38, 80.77, 153.55, 75.25, 145.57, 70.55, 149.25, 68.71, 151.91, 67.07, 149.87, 65.64, 143.94, 66.87, 136.58, 69.32, 133.3, 71.57, 133.3, 79.34, 134.94, 84.65, 136.78, 93.24, 136.58, 100.81, 134.74, 107.76, 137.6, 107.96, 144.96, 107.76, 146.39, 103.26, 145.78, 96.31, 141.89, 92.22, 139.64, 90.58, 145.57, 92.22, 150.68, 87.52, 153.34, 87.93, 166.63, 84.45, 166.63, 84.24, 156.82, 83.63, 165.2, 81.59, 165.2], [102.24, 153.95, 102.03, 164.38, 104.28, 164.18, 104.08, 151.09, 101.62, 152.93]], "area": 621.3454999999997, "iscrowd": 0, "image_id": 94118, "bbox": [65.64, 133.3, 42.32, 33.33], "category_id": 24, "id": 591654}, {"segmentation": [[317.8, 242.44, 320.51, 250.56, 325.02, 249.28, 329.8, 248.08, 320.24, 230.15, 319.84, 222.58, 323.03, 211.82, 324.23, 201.46, 325.42, 230.55, 329.41, 233.34, 331.4, 229.35, 329.01, 220.59, 329.01, 202.66, 325.02, 190.7, 317.85, 184.33, 301.91, 180.34, 273.62, 185.52, 248.12, 187.52, 224.61, 173.97, 205.09, 166.4, 197.52, 165.2, 187.16, 175.16, 188.75, 184.33, 177.6, 201.86, 177.6, 212.22, 183.17, 215.01, 190.35, 209.83, 197.93, 203.46, 204.65, 204.37, 206.35, 200.79, 219.35, 210.59, 226.7, 219.26, 230.47, 227.74, 231.23, 242.06, 230.85, 244.51, 233.65, 260.11, 234.89, 268.49, 236.13, 262.9, 237.37, 249.55, 238.92, 240.86, 240.16, 233.1, 248.86, 252.04, 254.45, 264.76, 258.48, 257.0, 252.58, 234.96, 253.2, 229.68, 270.28, 231.24, 288.29, 227.82, 298.22, 219.44, 306.29, 243.65, 310.02, 264.45, 317.16, 260.73, 315.92, 253.9, 317.78, 244.9]], "area": 7193.811049999998, "iscrowd": 0, "image_id": 202970, "bbox": [177.6, 165.2, 153.8, 103.29], "category_id": 24, "id": 591973}, {"segmentation": [[340.85, 96.0, 431.46, 126.2, 386.16, 124.04, 327.91, 124.04, 294.47, 120.81, 259.96, 118.65, 222.2, 111.1, 190.92, 112.18, 213.57, 96.0, 247.01, 92.76, 285.84, 97.08, 332.22, 97.08]], "area": 4346.888600000001, "iscrowd": 0, "image_id": 9709, "bbox": [190.92, 92.76, 240.54, 33.44], "category_id": 24, "id": 592201}, {"segmentation": [[174.31, 292.84, 156.07, 324.25, 155.06, 345.54, 159.11, 382.02, 175.33, 401.28, 164.18, 406.34, 156.07, 407.36, 134.79, 389.12, 131.75, 407.36, 121.61, 416.48, 119.59, 417.49, 114.52, 419.52, 114.52, 410.4, 113.51, 369.86, 111.48, 270.54, 91.21, 292.84, 51.69, 293.85, 31.42, 284.73, 22.3, 254.33, 28.38, 246.22, 57.77, 271.55, 72.97, 269.53, 98.3, 237.1, 97.29, 217.84, 97.29, 193.52, 97.29, 179.33, 103.37, 157.03, 117.56, 149.94, 154.04, 147.91, 194.58, 152.98, 254.38, 163.12, 311.13, 184.4, 341.53, 225.95, 366.87, 282.7, 379.03, 309.05, 394.23, 316.15, 425.65, 316.15, 414.5, 326.28, 388.15, 336.42, 394.23, 352.63, 397.27, 359.73, 390.18, 386.07, 390.18, 413.44, 390.18, 435.73, 381.06, 435.73, 359.78, 433.71, 359.78, 425.6, 342.55, 415.47, 337.48, 392.16, 332.41, 363.78, 332.41, 345.54, 324.3, 338.44, 320.25, 328.31, 317.21, 314.12, 314.17, 301.96, 312.14, 330.33, 311.13, 362.77, 311.13, 386.07, 318.22, 409.38, 316.2, 422.56, 299.98, 418.51, 286.81, 395.2, 285.79, 370.87, 286.81, 324.25, 277.69, 301.96, 272.62, 310.07, 270.59, 337.43, 264.51, 366.82, 256.4, 393.17, 256.4, 426.61, 245.26, 420.53, 233.09, 406.34, 244.24, 337.43, 240.19, 298.92, 191.54, 292.84]], "area": 55095.62824999998, "iscrowd": 0, "image_id": 285307, "bbox": [22.3, 147.91, 403.35, 287.82], "category_id": 24, "id": 592252}, {"segmentation": [[197.58, 368.43, 182.55, 279.3, 169.66, 223.46, 151.41, 192.32, 146.04, 154.73, 171.81, 127.89, 204.03, 112.86, 243.76, 109.63, 279.19, 116.08, 375.84, 122.52, 426.31, 125.74, 441.34, 135.41, 462.82, 133.26, 474.63, 133.26, 513.29, 153.66, 542.28, 178.36, 551.95, 195.54, 551.95, 210.57, 558.39, 209.5, 587.38, 191.24, 587.38, 207.35, 575.57, 225.61, 569.13, 234.2, 577.72, 254.6, 573.42, 288.96, 572.35, 311.51, 568.05, 330.84, 569.13, 348.02, 546.58, 356.61, 534.77, 354.47, 528.32, 349.1, 525.1, 328.69, 525.1, 309.37, 512.21, 299.7, 513.29, 271.78, 513.29, 262.12, 470.34, 247.08, 464.97, 261.04, 448.86, 269.63, 451.01, 287.89, 451.01, 312.59, 451.01, 342.65, 451.01, 373.8, 442.42, 379.16, 433.83, 369.5, 426.31, 332.99, 420.94, 315.81, 416.64, 293.26, 413.42, 335.14, 403.76, 371.65, 405.91, 393.12, 406.98, 397.42, 389.8, 396.35, 383.36, 390.98, 382.28, 368.43, 385.5, 343.73, 384.43, 311.51, 384.43, 286.82, 382.28, 265.34, 360.81, 271.78, 317.85, 281.45, 279.19, 275.0, 253.42, 256.75, 240.54, 243.86, 231.95, 253.53, 223.36, 288.96, 217.99, 325.47, 219.06, 351.24, 229.8, 373.8, 227.65, 383.46]], "area": 70232.50144999997, "iscrowd": 0, "image_id": 9709, "bbox": [146.04, 109.63, 441.34, 287.79], "category_id": 24, "id": 592777}, {"segmentation": [[341.63, 261.35, 360.54, 250.92, 359.89, 230.71, 373.58, 219.62, 374.23, 238.53, 378.79, 257.44, 388.57, 260.69, 399.0, 261.35, 396.39, 229.4, 414.0, 231.36, 429.64, 229.4, 434.21, 226.8, 444.64, 241.14, 450.5, 260.69, 453.11, 275.04, 460.93, 276.99, 462.24, 243.09, 457.67, 231.36, 462.89, 213.76, 469.41, 239.83, 476.58, 247.66, 479.19, 242.44, 468.1, 211.15, 464.19, 191.59, 447.24, 182.46, 416.6, 183.77, 386.62, 181.81, 355.32, 192.9, 335.77, 213.11, 333.16, 224.19, 333.16, 230.05, 339.68, 226.8, 339.03, 243.75]], "area": 7446.008400000001, "iscrowd": 0, "image_id": 202970, "bbox": [333.16, 181.81, 146.03, 95.18], "category_id": 24, "id": 592931}, {"segmentation": [[118.44, 70.3, 149.0, 44.51, 187.21, 36.87, 233.06, 51.2, 285.59, 60.75, 318.07, 60.75, 347.68, 55.02, 383.97, 66.48, 439.37, 125.7, 470.89, 181.1, 471.85, 203.07, 455.61, 195.43, 458.48, 208.8, 462.3, 221.21, 462.3, 248.91, 457.52, 284.25, 451.79, 314.82, 436.51, 314.82, 428.87, 292.85, 420.27, 274.7, 404.99, 247.96, 408.81, 218.35, 391.61, 200.2, 366.78, 173.46, 348.63, 184.92, 346.72, 203.07, 351.5, 242.23, 352.45, 270.88, 356.27, 291.9, 369.65, 302.4, 354.36, 307.18, 343.86, 303.36, 340.99, 289.99, 339.08, 248.91, 332.39, 242.23, 327.62, 207.84, 317.11, 243.18, 311.38, 258.47, 304.7, 287.12, 298.01, 297.63, 290.37, 288.08, 297.05, 256.56, 302.78, 215.48, 309.47, 181.1, 294.19, 173.46, 248.34, 177.28, 213.96, 170.59, 195.81, 154.35, 187.21, 160.08, 181.48, 183.96, 171.93, 210.71, 168.11, 223.12, 171.93, 255.6, 183.39, 276.61, 197.72, 290.94, 179.57, 291.9, 168.11, 284.25, 157.6, 247.0, 149.96, 226.95, 145.18, 210.71, 142.32, 230.77, 144.23, 259.42, 151.87, 277.57, 164.29, 288.08, 145.18, 285.21, 133.72, 272.79, 127.04, 229.81, 120.35, 201.16, 130.86, 182.05, 134.68, 148.62, 126.08, 113.28, 115.57, 105.64, 111.75, 88.45]], "area": 52575.16745, "iscrowd": 0, "image_id": 119495, "bbox": [111.75, 36.87, 360.1, 277.95], "category_id": 24, "id": 592979}, {"segmentation": [[192.87, 195.46, 212.06, 199.29, 220.7, 215.61, 220.7, 238.63, 220.7, 250.15, 185.19, 256.87, 183.27, 256.87, 175.6, 246.31, 166.0, 230.96, 161.2, 208.89, 170.8, 194.5]], "area": 2952.0869499999994, "iscrowd": 0, "image_id": 189660, "bbox": [161.2, 194.5, 59.5, 62.37], "category_id": 24, "id": 593120}, {"segmentation": [[121.71, 135.01, 123.87, 134.06, 124.95, 133.25, 127.39, 133.25, 129.82, 134.61, 131.44, 134.33, 132.93, 132.85, 133.88, 132.58, 136.04, 132.98, 139.42, 133.79, 142.94, 135.28, 145.23, 137.04, 146.72, 141.09, 147.26, 145.42, 145.37, 148.94, 144.02, 153.8, 143.61, 161.64, 143.75, 165.83, 142.53, 168.0, 140.91, 168.0, 137.66, 167.19, 135.77, 166.24, 136.85, 165.16, 137.26, 163.67, 137.12, 161.78, 137.26, 158.8, 137.26, 156.64, 134.96, 154.75, 135.36, 163.67, 135.09, 167.32, 131.98, 167.46, 132.39, 163.4, 132.53, 158.26, 132.53, 154.88, 132.39, 153.53, 130.36, 153.67, 131.44, 168.13, 128.2, 168.0, 128.47, 165.29, 128.74, 161.91, 127.66, 156.64, 127.66, 154.21, 124.82, 152.45, 123.6, 151.77, 122.52, 149.75, 122.25, 145.96, 121.98, 141.91, 121.57, 137.17]], "area": 634.87425, "iscrowd": 0, "image_id": 94118, "bbox": [121.57, 132.58, 25.69, 35.55], "category_id": 24, "id": 593280}, {"segmentation": [[428.92, 332.0, 422.2, 322.41, 409.73, 306.1, 404.93, 269.63, 402.05, 241.81, 407.81, 207.26, 428.92, 192.87, 440.43, 175.6, 485.53, 166.0, 501.84, 177.52, 522.0, 204.38, 525.83, 212.06, 535.43, 229.33, 555.58, 222.62, 563.26, 203.42, 563.26, 187.11, 556.54, 165.04, 550.78, 136.26, 553.66, 120.9, 559.42, 113.23, 536.39, 86.36, 485.53, 73.89, 398.21, 98.83, 328.17, 88.28, 298.42, 70.05, 292.66, 64.29, 266.76, 72.93, 242.77, 71.97, 224.53, 67.17, 174.64, 74.84, 149.69, 95.0, 135.3, 104.59, 132.42, 127.62, 119.94, 150.65, 131.46, 180.4, 138.18, 166.96, 143.93, 148.73, 146.81, 142.01, 153.53, 168.88, 154.49, 184.23, 180.4, 184.23, 199.59, 184.23, 211.1, 186.15, 212.06, 199.59, 224.53, 171.76, 246.6, 180.4, 248.52, 113.23, 236.05, 72.93, 274.43, 79.64, 289.78, 71.01, 308.02, 78.68, 329.13, 95.0, 362.71, 106.51, 374.22, 120.9, 383.82, 134.34, 384.78, 157.37, 382.86, 184.23, 380.94, 228.37, 384.78, 279.23, 388.62, 296.5, 401.09, 326.25, 422.2, 335.84, 426.04, 330.09]], "area": 34054.836500000005, "iscrowd": 0, "image_id": 399835, "bbox": [119.94, 64.29, 443.32, 271.55], "category_id": 24, "id": 593639}, {"segmentation": [[165.81, 167.73, 166.54, 160.47, 165.09, 155.39, 164.36, 149.1, 161.94, 150.79, 158.55, 147.64, 159.28, 138.21, 160.49, 132.88, 164.12, 130.22, 167.75, 133.12, 181.54, 134.09, 182.27, 137.96, 181.3, 143.77, 178.88, 164.1, 175.49, 166.28, 174.77, 159.26, 174.04, 159.99, 172.59, 168.7, 170.89, 168.7, 170.89, 161.44, 169.44, 160.95, 168.47, 169.67]], "area": 594.2977999999998, "iscrowd": 0, "image_id": 94118, "bbox": [158.55, 130.22, 23.72, 39.45], "category_id": 24, "id": 593649}, {"segmentation": [[201.28, 154.77, 211.92, 152.83, 217.01, 152.83, 224.99, 152.11, 236.61, 147.75, 246.77, 149.45, 249.19, 151.38, 254.03, 165.42, 259.36, 178.24, 264.68, 188.17, 261.78, 188.89, 255.48, 180.18, 258.87, 193.97, 259.11, 206.8, 257.66, 211.4, 254.27, 209.22, 253.31, 202.93, 252.58, 194.22, 248.71, 182.36, 246.77, 176.07, 244.59, 174.37, 238.3, 181.63, 242.17, 193.25, 238.06, 198.33, 240.72, 203.9, 242.66, 208.74, 238.54, 208.74, 235.88, 204.62, 229.11, 211.88, 227.9, 206.56, 233.46, 198.09, 229.11, 191.07, 226.93, 183.57, 220.39, 183.08, 217.01, 185.02, 216.04, 195.67, 215.31, 198.57, 213.38, 205.35, 211.44, 200.27, 209.75, 191.55, 209.75, 184.78, 209.75, 180.66, 208.29, 171.47, 201.03, 157.43, 201.28, 155.5]], "area": 2082.2046000000005, "iscrowd": 0, "image_id": 260011, "bbox": [201.03, 147.75, 63.65, 64.13], "category_id": 24, "id": 593652}, {"segmentation": [[257.68, 173.74, 259.12, 171.66, 261.52, 171.82, 269.84, 162.06, 280.08, 158.06, 290.33, 158.22, 296.41, 156.78, 289.85, 162.54, 284.24, 168.78, 280.56, 175.98, 276.72, 180.3, 275.12, 184.46, 275.6, 188.46, 272.4, 191.82, 273.68, 195.02, 275.6, 200.78, 278.0, 203.82, 278.0, 206.06, 273.04, 205.1, 272.72, 202.06, 268.4, 193.74, 268.56, 189.74, 271.76, 185.42, 273.2, 181.26, 270.0, 182.7, 265.68, 187.5, 264.88, 195.18, 265.04, 198.22, 260.4, 203.34, 259.28, 205.58, 258.16, 193.42, 257.52, 188.3, 256.08, 181.1, 255.44, 180.14, 262.0, 187.82, 264.4, 187.66]], "area": 718.4368000000013, "iscrowd": 0, "image_id": 260011, "bbox": [255.44, 156.78, 40.97, 49.28], "category_id": 24, "id": 593726}, {"segmentation": [[204.4, 216.69, 203.44, 186.94, 227.43, 159.11, 285.01, 147.59, 308.04, 126.48, 374.26, 114.01, 374.26, 114.01, 450.07, 71.78, 449.11, 52.59, 464.47, 59.31, 468.3, 58.35, 475.02, 48.75, 481.74, 56.43, 483.66, 48.75, 490.38, 66.02, 502.85, 63.14, 499.01, 75.62, 508.61, 106.33, 502.85, 122.64, 489.42, 114.01, 475.98, 102.49, 468.3, 98.65, 459.67, 102.49, 426.08, 133.2, 388.65, 163.91, 360.83, 175.42, 349.31, 184.06, 353.15, 207.09, 331.08, 252.19, 313.8, 310.73, 306.13, 346.24, 295.57, 349.12, 299.41, 318.41, 293.65, 349.12, 287.89, 352.0, 290.77, 241.64, 277.34, 243.56, 262.94, 239.72, 257.18, 255.07, 243.75, 278.1, 242.79, 323.21, 261.98, 373.11, 261.02, 374.07, 243.75, 369.27, 236.07, 303.05, 225.52, 281.94, 229.35, 249.31, 218.8, 272.35, 206.32, 332.8, 204.4, 355.83, 214.0, 380.79, 207.28, 382.7, 193.85, 378.87, 195.77, 366.39, 191.93, 344.32, 197.69, 317.45, 188.09, 326.09, 192.89, 311.69, 175.61, 319.37, 207.28, 234.92, 202.48, 212.85]], "area": 29994.589600000003, "iscrowd": 0, "image_id": 403627, "bbox": [175.61, 48.75, 333.0, 333.95], "category_id": 25, "id": 594609}, {"segmentation": [[177.98, 170.43, 268.58, 170.43, 337.62, 159.64, 389.39, 161.8, 426.07, 172.58, 482.16, 180.13, 525.3, 181.21, 576.0, 182.29, 577.08, 195.24, 508.04, 196.31, 463.82, 196.31, 381.84, 190.92, 404.49, 204.94, 470.29, 209.26, 504.81, 215.73, 557.66, 223.28, 582.47, 225.44, 591.1, 230.83, 587.87, 243.78, 577.08, 247.01, 448.72, 245.93, 413.12, 243.78, 423.91, 257.8, 477.84, 265.35, 544.72, 270.74, 530.7, 280.45, 437.93, 281.53, 358.11, 288.0, 304.18, 244.85, 214.65, 207.1, 100.31, 180.13, 70.11, 177.98, 63.64, 185.53, 49.62, 192.0, 45.3, 177.98, 33.44, 176.9, 22.65, 175.82, 22.65, 167.19, 20.49, 158.56, 28.04, 148.85, 36.67, 145.62, 40.99, 133.75, 58.25, 133.75, 81.98, 149.93, 133.75, 165.03]], "area": 33630.91274999999, "iscrowd": 0, "image_id": 132964, "bbox": [20.49, 133.75, 570.61, 154.25], "category_id": 25, "id": 594718}, {"segmentation": [[272.19, 283.15, 270.51, 247.75, 275.56, 235.96, 288.2, 176.12, 283.15, 166.85, 285.67, 153.37, 266.29, 147.47, 262.92, 144.1, 277.25, 139.04, 286.52, 138.2, 289.04, 124.72, 283.99, 101.12, 283.99, 79.21, 290.73, 68.26, 294.94, 70.79, 302.53, 82.58, 306.74, 102.81, 314.33, 106.18, 318.54, 91.01, 317.7, 64.89, 318.54, 57.3, 327.81, 58.15, 332.87, 69.94, 332.02, 96.07, 342.98, 102.81, 352.25, 106.18, 360.67, 112.92, 376.69, 106.18, 385.96, 110.39, 427.25, 107.87, 442.42, 129.78, 448.31, 141.57, 489.61, 200.56, 500.0, 225.84, 499.72, 314.33, 496.35, 367.42, 450.84, 369.1, 449.16, 353.93, 436.52, 316.01, 430.62, 308.43, 430.62, 363.2, 429.78, 369.1, 412.08, 370.79, 406.18, 321.91, 395.22, 287.36, 393.54, 249.44, 397.75, 214.04, 403.65, 191.29, 406.18, 171.91, 406.18, 163.48, 376.69, 165.17, 369.1, 176.97, 369.1, 186.24, 328.65, 230.9, 311.8, 240.17, 310.96, 253.65, 300.84, 274.72, 281.46, 288.2]], "area": 35801.25440000002, "iscrowd": 0, "image_id": 12181, "bbox": [262.92, 57.3, 237.08, 313.49], "category_id": 25, "id": 594887}, {"segmentation": [[200.88, 194.01, 205.27, 227.9, 219.08, 246.1, 232.26, 263.05, 234.15, 298.2, 234.78, 338.38, 233.52, 324.57, 224.1, 291.3, 220.34, 307.62, 217.2, 337.12, 215.32, 333.98, 212.81, 290.67, 206.53, 284.39, 205.9, 315.78, 205.9, 339.0, 202.14, 338.38, 204.65, 301.97, 202.14, 288.79, 196.49, 275.61, 195.23, 296.32, 187.07, 330.22, 183.93, 338.38, 182.68, 332.1, 189.58, 286.28, 192.09, 251.75, 193.35, 234.18, 193.35, 214.09, 193.35, 199.03, 193.35, 189.61, 187.7, 184.59, 180.79, 187.1, 170.75, 187.1, 173.89, 180.2, 177.03, 177.06, 180.17, 173.29, 182.68, 169.53, 190.84, 165.13, 188.95, 172.67, 198.37, 176.43, 196.49, 189.61, 202.76, 217.23]], "area": 3523.7970499999997, "iscrowd": 0, "image_id": 108020, "bbox": [170.75, 165.13, 64.03, 173.87], "category_id": 25, "id": 594888}, {"segmentation": [[233.96, 349.52, 238.8, 327.74, 244.44, 300.31, 237.99, 293.05, 243.64, 266.43, 254.12, 251.1, 277.52, 238.19, 292.85, 218.83, 321.08, 191.4, 324.31, 186.56, 322.7, 176.88, 328.34, 172.04, 345.29, 174.46, 337.22, 193.01, 322.7, 211.57, 304.14, 251.1, 309.79, 262.39, 303.33, 284.17, 306.56, 343.07, 294.46, 343.87, 284.78, 328.55, 291.23, 293.86, 292.85, 280.14, 285.59, 276.11, 275.91, 281.75, 268.64, 280.14, 265.42, 278.53, 250.9, 306.76, 249.28, 349.52, 239.6, 352.75]], "area": 5729.585249999998, "iscrowd": 0, "image_id": 211397, "bbox": [233.96, 172.04, 111.33, 180.71], "category_id": 25, "id": 595352}, {"segmentation": [[184.39, 164.19, 190.1, 161.02, 215.48, 173.71, 240.23, 182.59, 270.05, 187.03, 313.84, 183.22, 315.11, 180.69, 346.83, 187.67, 355.72, 197.18, 356.35, 202.9, 379.2, 215.59, 407.12, 224.47, 413.46, 226.37, 430.6, 247.31, 435.04, 263.81, 431.23, 288.56, 431.23, 310.13, 436.94, 326.0, 422.98, 330.44, 416.64, 319.02, 414.73, 331.07, 395.06, 333.61, 393.16, 331.07, 389.98, 315.21, 385.54, 303.79, 385.54, 298.08, 374.12, 287.93, 355.08, 294.91, 351.91, 294.91, 351.91, 313.94, 351.91, 335.52, 339.22, 336.79, 334.78, 336.79, 334.78, 316.48, 330.34, 299.98, 329.07, 292.37, 329.07, 313.31, 331.61, 341.86, 317.01, 338.69, 314.47, 310.77, 311.93, 304.42, 310.03, 299.98, 307.49, 286.02, 302.42, 277.77, 300.51, 270.16, 291.63, 257.47, 292.26, 245.41, 299.88, 240.97, 299.24, 233.35, 287.82, 227.01, 267.52, 222.57, 231.98, 211.78, 207.87, 201.63, 191.37, 192.74, 179.31, 193.38, 169.16, 199.09, 159.64, 201.63, 153.3, 207.34, 150.12, 209.88, 148.22, 207.97, 146.95, 202.26, 141.88, 204.8, 140.61, 200.99, 142.51, 192.74, 155.2, 181.32, 161.55, 168.0, 168.53, 167.36, 169.8, 161.65, 166.62, 152.13, 172.33, 150.86, 175.51, 152.13, 175.63, 161.88, 178.14, 150.99, 182.75, 152.25, 181.07, 165.23]], "area": 20046.059649999996, "iscrowd": 0, "image_id": 423842, "bbox": [140.61, 150.86, 296.33, 191.0], "category_id": 25, "id": 595484}, {"segmentation": [[170.38, 579.39, 183.27, 567.93, 200.45, 535.0, 217.63, 499.21, 217.63, 364.62, 223.36, 293.04, 224.79, 238.63, 223.36, 211.42, 214.77, 191.38, 213.33, 174.2, 207.61, 168.47, 197.58, 162.74, 203.31, 154.15, 199.02, 148.43, 183.27, 138.4, 176.11, 131.25, 171.81, 124.09, 170.38, 116.93, 173.24, 109.77, 183.27, 109.77, 191.86, 111.2, 201.88, 114.06, 214.77, 128.38, 217.63, 92.59, 217.63, 76.84, 223.36, 71.11, 237.67, 84.0, 237.67, 104.04, 246.26, 109.77, 251.99, 104.04, 259.15, 98.31, 250.56, 84.0, 250.56, 72.54, 260.58, 71.11, 273.47, 85.43, 277.76, 106.91, 284.92, 124.09, 297.81, 101.18, 317.85, 101.18, 323.58, 104.04, 312.13, 132.68, 303.53, 149.86, 292.08, 187.08, 272.04, 248.65, 270.6, 343.15, 280.63, 447.67, 294.94, 550.75, 332.17, 616.61, 343.62, 632.36, 120.27, 632.36, 105.95, 632.36, 123.13, 618.05, 144.61, 606.59, 167.52, 592.27]], "area": 45494.70175000001, "iscrowd": 0, "image_id": 349401, "bbox": [105.95, 71.11, 237.67, 561.25], "category_id": 25, "id": 595701}, {"segmentation": [[188.15, 360.06, 184.33, 325.67, 176.69, 276.97, 170.96, 247.36, 167.13, 229.21, 170.0, 216.8, 160.45, 213.93, 133.71, 222.53, 112.7, 242.58, 99.33, 267.42, 87.87, 286.52, 81.18, 298.93, 75.45, 282.7, 63.03, 258.82, 68.76, 249.27, 69.72, 229.21, 78.31, 226.35, 85.96, 235.9, 99.33, 202.47, 137.53, 178.6, 206.29, 166.18, 221.57, 174.78, 240.67, 195.79, 290.34, 215.84, 294.16, 238.76, 318.03, 252.13, 344.78, 224.44, 365.79, 218.71, 363.88, 228.26, 333.31, 255.0, 319.94, 255.96, 309.44, 255.96, 312.3, 290.34, 328.54, 322.81, 342.87, 341.91, 319.94, 338.09, 303.71, 292.25, 297.98, 287.47, 294.16, 318.99, 298.93, 337.13, 309.44, 392.53, 303.71, 403.03, 300.84, 403.99, 279.83, 319.94, 275.06, 295.11, 278.88, 335.22, 278.88, 396.35, 265.51, 402.08, 257.87, 401.12, 264.55, 382.98, 263.6, 328.54, 241.63, 271.24, 216.8, 274.1, 223.48, 327.58, 223.48, 373.43, 224.44, 387.75, 208.2, 386.8, 211.07, 351.46, 209.16, 335.22, 202.47, 274.1, 195.79, 279.83, 200.56, 351.46, 186.24, 373.43, 187.19, 364.83]], "area": 25039.61295000001, "iscrowd": 0, "image_id": 478164, "bbox": [63.03, 166.18, 302.76, 237.81], "category_id": 25, "id": 596184}, {"segmentation": [[116.82, 249.42, 114.31, 290.74, 111.81, 307.01, 109.93, 346.45, 98.66, 348.96, 99.92, 335.81, 103.67, 303.26, 99.92, 315.78, 96.16, 347.7, 87.4, 348.96, 95.53, 305.13, 93.03, 295.74, 94.28, 268.2, 89.9, 259.44, 88.65, 241.91, 83.01, 223.75, 91.78, 208.1, 84.89, 185.57, 80.51, 144.25, 96.16, 133.61, 109.31, 166.79, 124.33, 180.56, 130.59, 190.57, 139.35, 199.34, 163.14, 199.96, 180.05, 218.74, 179.42, 255.05, 170.66, 248.52, 153.59, 250.96, 153.1, 248.03, 137.98, 250.96, 117.5, 250.96], [79.94, 138.77, 94.08, 127.55, 85.31, 105.12, 91.16, 93.9, 85.79, 94.87, 79.45, 97.31, 79.45, 83.17, 76.04, 84.14, 72.14, 92.92, 72.62, 81.7, 68.23, 83.66, 64.33, 94.39, 59.45, 93.41, 62.38, 101.22, 51.65, 114.87, 51.16, 123.16, 57.5, 124.14, 76.04, 120.73, 79.94, 138.77], [164.41, 303.35, 160.54, 346.47, 158.29, 351.94, 167.62, 350.97, 172.13, 344.86, 170.84, 303.99, 176.63, 342.93, 175.35, 352.9, 184.04, 352.26, 183.39, 324.26, 178.57, 307.85, 172.45, 300.45, 164.08, 303.02], [143.17, 251.41, 160.07, 277.08, 179.48, 257.67, 171.97, 250.16, 153.19, 250.79, 153.19, 248.91, 145.68, 251.41]], "area": 10981.3553, "iscrowd": 0, "image_id": 194679, "bbox": [51.16, 81.7, 132.88, 271.2], "category_id": 25, "id": 596308}, {"segmentation": [[94.0, 181.85, 95.4, 167.61, 122.09, 139.36, 131.14, 135.92, 139.04, 117.41, 150.35, 115.94, 145.86, 134.17, 162.41, 140.43, 164.47, 147.65, 200.56, 216.73, 234.75, 256.02, 251.79, 260.53, 286.47, 289.19, 344.92, 313.66, 373.8, 345.58, 371.73, 412.04, 388.37, 428.12, 384.29, 514.35, 395.93, 529.09, 393.89, 542.7, 384.37, 541.34, 374.16, 518.21, 372.72, 452.67, 366.91, 450.06, 361.49, 537.61, 351.53, 551.29, 339.14, 543.38, 351.03, 532.49, 349.67, 456.98, 310.4, 387.38, 300.09, 400.67, 275.64, 389.63, 300.01, 476.03, 329.26, 529.77, 340.9, 548.32, 331.45, 560.35, 314.87, 529.49, 279.6, 466.5, 248.98, 396.43, 240.14, 471.26, 233.34, 537.25, 224.79, 547.61, 208.36, 545.9, 219.99, 531.85, 226.63, 472.2, 226.53, 392.35, 204.76, 339.28, 212.25, 311.39, 180.38, 260.13, 144.06, 172.41, 113.34, 174.52]], "area": 34554.04780000004, "iscrowd": 0, "image_id": 269590, "bbox": [94.0, 115.94, 301.93, 444.41], "category_id": 25, "id": 596494}, {"segmentation": [[120.03, 159.25, 120.78, 166.7, 126.74, 170.43, 134.2, 173.41, 140.16, 210.69, 140.91, 264.37, 146.12, 276.3, 139.42, 285.24, 143.89, 306.12, 158.8, 327.74, 161.78, 375.0, 172.22, 375.0, 170.73, 344.88, 164.76, 312.83, 172.22, 312.83, 183.4, 313.57, 191.6, 326.99, 196.08, 359.79, 193.09, 375.0, 197.57, 375.0, 204.28, 354.58, 207.26, 346.38, 205.02, 329.23, 207.26, 337.43, 216.2, 365.76, 216.2, 375.0, 222.17, 374.71, 224.41, 368.74, 224.41, 335.94, 222.91, 312.08, 222.91, 295.68, 210.24, 276.3, 193.09, 265.86, 183.4, 258.4, 170.73, 247.97, 161.78, 236.78, 152.09, 186.83, 149.11, 166.7, 155.07, 162.23, 153.58, 161.48, 144.63, 157.76, 144.63, 151.05, 140.91, 148.07, 131.21, 148.07, 117.79, 157.01]], "area": 8416.59245, "iscrowd": 0, "image_id": 435665, "bbox": [117.79, 148.07, 106.62, 226.93], "category_id": 25, "id": 596852}, {"segmentation": [[514.0, 339.8, 516.41, 280.37, 522.84, 248.25, 517.22, 216.92, 527.66, 188.81, 538.1, 173.55, 543.72, 155.89, 559.78, 158.29, 569.42, 161.51, 571.83, 155.08, 566.21, 144.64, 556.57, 130.99, 550.15, 129.38, 546.93, 135.0, 538.9, 137.41, 534.89, 155.89, 520.43, 173.55, 506.78, 178.37, 497.94, 187.21, 488.3, 196.84, 472.24, 212.1, 455.38, 221.74, 450.56, 240.21, 449.75, 259.49, 451.36, 276.36, 454.57, 296.43, 458.59, 322.94, 461.0, 343.82, 471.44, 347.83, 477.86, 341.41, 477.06, 325.35, 472.24, 306.87, 478.67, 285.19, 482.68, 282.78, 485.89, 297.24, 485.89, 304.46, 481.08, 317.31, 485.89, 323.74, 494.73, 316.51, 501.96, 304.46, 505.97, 303.66, 501.96, 319.72, 502.76, 334.98, 505.97, 350.24, 522.04, 349.44, 517.22, 338.2]], "area": 9629.278750000001, "iscrowd": 0, "image_id": 423114, "bbox": [449.75, 129.38, 122.08, 220.86], "category_id": 25, "id": 596928}, {"segmentation": [[287.47, 209.16, 299.89, 186.24, 333.31, 184.33, 351.46, 155.67, 372.47, 151.85, 408.76, 106.01, 431.69, 82.13, 450.79, 88.82, 447.92, 107.92, 463.2, 123.2, 451.74, 131.8, 430.73, 113.65, 388.71, 180.51, 378.2, 186.24, 382.02, 228.26, 364.83, 264.55, 365.79, 298.93, 357.19, 311.35, 361.01, 350.51, 348.6, 355.28, 351.46, 311.35, 341.91, 334.27, 332.36, 321.85, 353.37, 287.47, 355.28, 250.22, 346.69, 246.4, 367.7, 225.39, 355.28, 217.75, 320.9, 244.49, 296.07, 239.72, 296.07, 219.66, 289.38, 206.29]], "area": 10200.417149999994, "iscrowd": 0, "image_id": 478164, "bbox": [287.47, 82.13, 175.73, 273.15], "category_id": 25, "id": 596960}, {"segmentation": [[221.35, 494.38, 230.34, 489.89, 229.21, 435.96, 232.58, 369.66, 247.19, 313.48, 238.2, 222.47, 239.33, 167.42, 234.83, 95.51, 241.57, 56.18, 248.31, 42.7, 243.82, 3.37, 222.47, 1.12, 220.22, 12.36, 208.99, 21.35, 217.98, 37.08, 220.22, 49.44, 205.62, 57.3, 214.61, 66.29, 224.72, 58.43, 216.85, 103.37, 206.74, 176.4, 189.89, 222.47, 170.79, 258.43, 152.81, 261.8, 141.57, 288.76, 134.83, 333.71, 138.2, 366.29, 131.46, 403.37, 116.85, 459.55, 132.58, 461.8, 130.34, 442.7, 151.69, 357.3, 168.54, 329.21, 176.4, 325.84, 160.67, 375.28, 162.92, 421.35, 164.04, 464.04, 180.9, 464.04, 177.53, 451.69, 169.66, 444.94, 174.16, 396.63, 177.53, 373.03, 184.27, 356.18, 187.64, 406.74, 187.64, 424.72, 188.76, 442.7, 184.27, 478.65, 183.15, 494.38, 203.37, 492.13, 197.75, 435.96, 204.49, 402.25, 205.62, 352.81, 212.36, 338.2, 219.1, 333.71, 213.48, 382.02, 217.98, 439.33, 215.73, 473.03, 217.98, 493.26]], "area": 24472.269300000014, "iscrowd": 0, "image_id": 231503, "bbox": [116.85, 1.12, 131.46, 493.26], "category_id": 25, "id": 597110}, {"segmentation": [[330.73, 265.97, 336.05, 260.12, 340.3, 251.08, 343.49, 246.83, 340.3, 245.24, 339.77, 239.92, 339.77, 236.73, 338.17, 238.86, 335.52, 238.86, 334.45, 234.61, 332.33, 234.61, 330.73, 241.52, 326.48, 239.39, 322.23, 236.73, 319.57, 236.73, 313.19, 243.64, 301.5, 255.87, 298.84, 260.12, 294.59, 272.34, 295.12, 284.04, 295.12, 291.48, 293.0, 299.45, 292.47, 321.77, 294.59, 327.62, 298.31, 327.09, 295.12, 313.8, 298.31, 295.73, 302.56, 279.78, 304.69, 279.78, 305.22, 288.29, 303.63, 293.07, 303.1, 306.89, 300.97, 315.39, 302.03, 324.96, 305.75, 326.56, 305.22, 312.74, 306.82, 302.11, 306.82, 311.67, 307.88, 329.75, 311.07, 331.34, 311.07, 316.46, 313.19, 299.98, 310.54, 286.69, 317.45, 277.66, 320.1, 290.41, 320.1, 301.58, 320.63, 311.67, 322.76, 328.15, 326.48, 329.75, 329.67, 327.09, 326.48, 317.52, 324.89, 295.2, 326.48, 270.22, 328.61, 264.37, 327.54, 257.46, 327.54, 250.55, 330.73, 257.99]], "area": 2183.794950000001, "iscrowd": 0, "image_id": 108020, "bbox": [292.47, 234.61, 51.02, 96.73], "category_id": 25, "id": 597415}, {"segmentation": [[307.42, 169.35, 324.67, 147.78, 336.54, 125.12, 346.25, 130.52, 365.66, 126.2, 365.66, 138.07, 372.13, 139.15, 396.94, 156.4, 431.46, 176.9, 445.48, 174.74, 455.19, 195.24, 490.79, 221.12, 509.12, 236.22, 518.83, 279.37, 517.75, 311.73, 523.15, 325.75, 530.7, 362.43, 542.56, 405.57, 539.33, 416.36, 525.3, 412.04, 527.46, 390.47, 520.99, 361.35, 510.2, 330.07, 503.73, 328.99, 503.73, 366.74, 508.04, 394.79, 508.04, 413.12, 489.71, 410.97, 500.49, 385.08, 488.63, 333.3, 474.61, 292.31, 453.03, 275.06, 446.56, 277.21, 445.48, 347.33, 444.4, 399.1, 443.33, 407.73, 423.91, 405.57, 416.36, 400.18, 423.91, 390.47, 426.07, 345.17, 419.6, 284.76, 408.81, 248.09, 403.42, 225.44, 415.28, 213.57, 399.1, 213.57, 369.98, 176.9, 351.64, 159.64, 334.38, 161.8, 313.89, 180.13]], "area": 18968.254900000007, "iscrowd": 0, "image_id": 88868, "bbox": [307.42, 125.12, 235.14, 291.24], "category_id": 25, "id": 597419}, {"segmentation": [[182.02, 300.84, 180.34, 317.7, 171.07, 329.49, 174.44, 345.51, 188.76, 343.82, 203.09, 320.22, 215.73, 306.74, 214.04, 352.25, 213.2, 369.94, 227.53, 368.26, 235.11, 337.92, 241.01, 334.55, 245.22, 358.15, 251.97, 369.94, 282.3, 367.42, 295.79, 326.97, 294.94, 292.42, 290.73, 285.67, 273.88, 284.83, 268.82, 260.39, 248.6, 230.06, 243.54, 225.84, 225.0, 238.48, 209.83, 256.18, 206.46, 256.18, 183.71, 294.1, 181.18, 304.21]], "area": 10684.70885, "iscrowd": 0, "image_id": 12181, "bbox": [171.07, 225.84, 124.72, 144.1], "category_id": 25, "id": 597450}, {"segmentation": [[176.89, 308.71, 165.4, 333.99, 161.57, 353.14, 142.42, 369.99, 132.46, 363.87, 130.92, 287.26, 130.92, 229.04, 124.79, 173.12, 130.15, 162.39, 147.01, 165.46, 150.84, 173.12, 155.44, 166.22, 168.46, 189.2, 199.87, 149.37, 266.52, 109.53, 290.27, 117.19, 288.74, 136.34, 263.46, 143.23, 284.14, 153.96, 288.74, 180.01, 233.58, 202.99, 207.53, 228.27, 211.37, 255.85, 199.1, 265.81, 180.72, 307.18], [310.96, 243.59, 301.76, 277.3, 317.85, 367.7, 317.08, 374.6, 329.34, 375.0, 332.4, 309.48, 349.26, 356.97, 343.9, 375.0, 375.3, 375.0, 368.41, 337.05, 368.41, 291.86, 374.54, 294.92, 381.44, 375.0, 394.46, 375.0, 402.12, 310.24, 392.92, 247.42, 399.82, 206.82, 369.94, 184.6, 327.81, 232.1]], "area": 31174.004150000004, "iscrowd": 0, "image_id": 12181, "bbox": [124.79, 109.53, 277.33, 265.47], "category_id": 25, "id": 597534}, {"segmentation": [[150.88, 269.14, 144.94, 250.0, 143.62, 238.78, 151.54, 230.86, 158.8, 228.22, 173.98, 217.0, 179.92, 195.23, 183.88, 189.29, 186.52, 182.69, 189.16, 180.05, 191.8, 186.65, 198.4, 191.93, 203.02, 197.21, 198.4, 201.83, 186.52, 203.81, 177.94, 232.18, 183.22, 249.34, 174.64, 260.56, 173.98, 281.68, 172.66, 285.64, 164.08, 283.66, 166.72, 266.5, 163.42, 253.96, 154.18, 255.94, 153.52, 261.88, 158.14, 275.08, 156.16, 275.08]], "area": 1885.0062000000007, "iscrowd": 0, "image_id": 269799, "bbox": [143.62, 180.05, 59.4, 105.59], "category_id": 25, "id": 597912}, {"segmentation": [[14.14, 365.69, 8.45, 355.01, 2.04, 290.96, 4.18, 256.8, 0.0, 184.22, 12.0, 169.27, 18.41, 144.37, 30.51, 116.61, 26.95, 100.24, 37.62, 70.35, 36.91, 45.45, 53.99, 35.48, 50.43, 61.1, 43.32, 116.61, 46.87, 133.69, 44.03, 174.97, 52.57, 217.66, 57.55, 239.73, 51.14, 283.14, 56.84, 309.47, 62.53, 340.78, 66.8, 355.01, 66.8, 361.42, 51.86, 359.99, 50.43, 347.9, 39.05, 322.99, 39.05, 286.69, 33.35, 254.67, 29.08, 267.48, 30.51, 294.52, 29.08, 320.85, 31.22, 356.44, 39.05, 364.26]], "area": 11164.3232, "iscrowd": 0, "image_id": 88868, "bbox": [0.0, 35.48, 66.8, 330.21], "category_id": 25, "id": 597954}, {"segmentation": [[158.93, 130.69, 155.7, 133.11, 153.28, 144.41, 150.86, 165.38, 143.6, 185.55, 137.95, 190.39, 143.6, 199.27, 146.02, 212.17, 142.79, 233.96, 138.76, 246.86, 139.57, 270.26, 141.18, 303.33, 133.11, 302.53, 133.92, 285.59, 131.5, 257.35, 129.08, 245.25, 126.66, 262.19, 116.98, 272.68, 108.1, 285.59, 103.26, 287.2, 104.88, 280.75, 118.59, 263.8, 121.82, 243.64, 117.78, 226.69, 110.52, 227.5, 102.46, 245.25, 99.23, 260.58, 101.65, 271.07, 97.62, 282.36, 98.42, 289.62, 92.78, 292.85, 91.16, 282.36, 94.39, 261.38, 93.58, 249.28, 86.32, 263.0, 81.48, 269.45, 81.48, 258.96, 83.9, 246.86, 89.55, 241.22, 91.97, 223.47, 86.32, 204.91, 93.58, 191.2, 100.84, 187.16, 122.62, 181.52, 127.47, 168.61, 135.53, 159.73, 141.99, 140.37, 146.83, 128.27, 152.47, 117.78, 158.93, 116.98, 161.35, 113.75, 162.16, 110.52, 164.58, 119.4, 170.22, 123.43, 177.48, 132.31, 177.48, 135.53]], "area": 5362.902850000001, "iscrowd": 0, "image_id": 423114, "bbox": [81.48, 110.52, 96.0, 192.81], "category_id": 25, "id": 598002}, {"segmentation": [[213.69, 251.71, 211.8, 228.22, 212.34, 219.85, 220.98, 207.71, 227.73, 188.54, 226.38, 182.61, 229.08, 183.42, 230.43, 180.71, 234.2, 183.42, 234.75, 184.22, 236.91, 186.39, 235.56, 188.81, 233.94, 193.13, 230.16, 196.37, 228.81, 212.3, 229.89, 235.78, 232.59, 243.88, 227.19, 256.02, 224.76, 254.14, 226.38, 234.16, 223.41, 252.51, 215.31, 253.87]], "area": 913.2547499999998, "iscrowd": 0, "image_id": 325684, "bbox": [211.8, 180.71, 25.11, 75.31], "category_id": 25, "id": 598092}, {"segmentation": [[90.75, 126.21, 85.13, 143.88, 81.92, 154.32, 80.31, 161.54, 80.31, 172.79, 81.92, 180.02, 79.51, 189.65, 77.1, 197.69, 73.89, 207.32, 71.48, 216.16, 69.87, 220.98, 70.68, 227.4, 72.28, 236.24, 73.89, 249.89, 72.28, 261.13, 74.69, 275.59, 77.1, 286.83, 74.69, 292.45, 68.27, 287.64, 66.66, 273.98, 64.25, 249.89, 61.84, 237.84, 56.22, 253.9, 56.22, 267.56, 53.01, 276.39, 51.4, 282.01, 49.79, 292.45, 49.79, 296.47, 43.37, 292.45, 42.57, 282.01, 44.98, 269.97, 49.79, 253.9, 54.61, 233.83, 56.22, 220.98, 59.43, 202.5, 52.2, 207.32, 40.16, 222.58, 33.73, 235.43, 33.73, 255.51, 35.34, 267.56, 35.34, 280.41, 33.73, 286.03, 32.13, 296.47, 29.72, 301.29, 30.52, 309.32, 20.88, 308.52, 16.87, 301.29, 15.26, 295.67, 17.67, 286.03, 20.08, 271.57, 20.88, 245.07, 21.68, 220.17, 21.68, 209.73, 20.08, 190.46, 18.47, 172.79, 20.88, 166.36, 32.13, 158.33, 48.99, 151.91, 56.22, 145.48, 58.63, 139.86, 59.43, 135.84, 61.84, 132.63, 65.86, 129.42, 70.68, 127.81, 72.28, 124.6, 93.16, 78.82, 95.57, 69.99, 85.13, 66.77, 85.13, 64.37, 93.16, 65.97, 97.98, 65.17, 95.57, 58.74, 96.38, 57.14, 100.39, 56.33, 100.39, 62.76, 101.19, 65.97, 106.01, 61.96, 106.01, 58.74, 106.82, 55.53, 107.62, 63.56, 107.62, 66.77, 110.03, 74.81, 109.23, 82.84, 110.03, 90.07, 110.03, 92.47, 104.41, 92.47, 101.19, 88.46, 100.39, 84.44, 96.38, 103.72, 89.95, 128.62]], "area": 7861.128549999999, "iscrowd": 0, "image_id": 423114, "bbox": [15.26, 55.53, 94.77, 253.79], "category_id": 25, "id": 598406}, {"segmentation": [[142.42, 369.1, 142.42, 330.34, 131.46, 289.04, 132.3, 276.4, 101.12, 266.29, 71.63, 243.54, 48.03, 251.12, 36.24, 247.75, 64.04, 218.26, 67.42, 226.69, 80.9, 224.16, 77.53, 234.27, 134.83, 254.49, 141.57, 254.49, 139.89, 289.04, 154.21, 321.91, 153.37, 368.26], [173.6, 314.33, 183.71, 338.76, 183.71, 367.42, 194.66, 367.42, 193.82, 331.18, 187.92, 313.48]], "area": 3741.930099999999, "iscrowd": 0, "image_id": 435665, "bbox": [36.24, 218.26, 158.42, 150.84], "category_id": 25, "id": 598422}, {"segmentation": [[29.54, 238.55, 23.12, 247.22, 15.15, 252.94, 7.87, 255.71, 5.1, 257.96, 3.19, 266.28, 5.27, 275.12, 6.31, 287.08, 7.35, 287.77, 12.9, 287.6, 21.22, 289.16, 21.04, 272.35, 23.99, 256.75, 23.99, 254.49, 30.58, 244.27, 33.87, 240.28, 35.78, 239.24, 36.64, 235.6, 35.08, 233.18, 32.83, 233.35, 29.71, 235.78]], "area": 704.1207500000002, "iscrowd": 0, "image_id": 108020, "bbox": [3.19, 233.18, 33.45, 55.98], "category_id": 25, "id": 599110}, {"segmentation": [[406.43, 164.74, 399.22, 168.74, 392.01, 169.94, 387.2, 171.55, 384.8, 171.55, 382.93, 173.26, 382.07, 176.05, 382.93, 176.48, 385.08, 177.13, 385.51, 177.77, 391.3, 177.13, 394.09, 179.06, 399.68, 179.7, 402.25, 180.78, 406.33, 187.22, 409.55, 196.02, 411.7, 206.33, 412.99, 214.49, 417.5, 225.44, 418.79, 227.8, 416.85, 231.88, 414.71, 234.67, 411.06, 238.32, 405.55, 243.67, 403.99, 251.16, 403.67, 255.84, 402.26, 262.49, 402.71, 272.02, 404.98, 284.27, 404.07, 290.63, 404.53, 309.69, 402.71, 327.85, 407.7, 328.3, 405.44, 319.22, 407.25, 301.07, 409.07, 285.64, 412.7, 281.55, 412.7, 290.17, 412.24, 298.8, 412.7, 314.68, 412.7, 321.04, 411.5, 321.71, 411.07, 324.51, 413.86, 327.08, 414.29, 330.09, 420.09, 329.66, 416.66, 324.51, 416.23, 316.78, 416.66, 300.24, 417.73, 291.66, 420.09, 283.5, 421.81, 278.99, 423.1, 288.86, 423.96, 300.03, 423.96, 310.76, 422.02, 318.06, 419.88, 323.65, 424.81, 325.15, 426.32, 324.29, 425.89, 314.63, 426.96, 310.12, 427.18, 298.1, 426.1, 288.22, 429.76, 280.0, 429.13, 293.78, 430.5, 302.32, 429.13, 308.93, 429.13, 313.07, 430.5, 318.3, 431.06, 319.96, 433.54, 318.58, 432.71, 310.86, 432.43, 303.42, 431.88, 293.5, 434.36, 287.44, 432.71, 281.93, 433.81, 274.21, 436.02, 262.09, 436.57, 253.82, 436.57, 243.35, 435.62, 237.32, 433.16, 232.2, 431.07, 229.93, 428.61, 225.57, 428.04, 219.88, 424.63, 216.28, 421.22, 211.73, 419.32, 206.43, 417.23, 196.45, 411.21, 176.7, 406.04, 169.43, 408.16, 166.95, 406.04, 164.13]], "area": 2906.798200000002, "iscrowd": 0, "image_id": 269799, "bbox": [382.07, 164.13, 54.5, 165.96], "category_id": 25, "id": 599141}, {"segmentation": [[399.11, 188.98, 402.96, 189.94, 391.42, 194.75, 387.57, 232.25, 373.14, 253.41, 357.76, 280.34, 359.68, 327.46, 371.22, 333.23, 373.14, 306.31, 373.14, 288.03, 400.07, 278.42, 403.92, 325.54, 410.65, 317.85, 401.03, 251.49, 406.8, 231.29, 398.15, 208.21, 403.92, 203.4, 409.69, 199.56, 400.07, 185.13, 395.26, 187.05]], "area": 3125.6153999999983, "iscrowd": 0, "image_id": 269799, "bbox": [357.76, 185.13, 52.89, 148.1], "category_id": 25, "id": 599268}, {"segmentation": [[427.96, 181.2, 457.71, 209.98, 476.9, 230.13, 502.8, 249.32, 500.89, 294.42, 503.76, 322.25, 494.17, 318.41, 486.49, 277.15, 485.53, 290.58, 472.1, 328.97, 468.26, 320.33, 479.78, 283.87, 468.26, 261.8, 463.46, 255.08, 464.42, 300.18, 464.42, 319.37, 458.67, 323.21, 448.11, 315.53, 451.95, 300.18, 451.95, 257.96, 446.19, 236.85, 443.31, 223.42, 440.43, 211.9, 427.0, 195.59, 422.2, 209.02, 418.36, 196.55, 418.36, 183.11, 425.08, 175.44]], "area": 4579.2970000000005, "iscrowd": 0, "image_id": 269799, "bbox": [418.36, 175.44, 85.4, 153.53], "category_id": 25, "id": 599506}, {"segmentation": [[137.22, 162.54, 129.68, 172.82, 124.88, 179.67, 131.05, 220.78, 140.64, 237.23, 155.03, 250.25, 153.66, 285.19, 150.92, 295.47, 151.6, 322.88, 152.29, 345.49, 148.86, 346.86, 145.44, 342.75, 145.44, 323.57, 145.44, 309.18, 144.07, 295.47, 141.33, 307.81, 141.33, 329.73, 141.33, 339.33, 139.96, 343.44, 135.16, 339.33, 136.53, 318.08, 136.53, 298.21, 133.79, 311.23, 129.68, 329.05, 129.68, 337.27, 127.62, 340.01, 127.62, 346.86, 122.83, 342.07, 126.25, 328.36, 133.1, 306.44, 130.36, 299.58, 127.62, 312.6, 120.09, 340.01, 119.4, 322.2, 120.09, 303.01, 120.09, 288.62, 115.97, 263.27, 116.66, 239.28, 120.09, 212.56, 119.4, 192.0, 117.34, 177.62, 117.34, 171.45, 115.97, 167.34, 113.92, 162.54, 119.4, 158.43, 119.4, 155.0, 121.46, 155.0, 133.1, 151.58, 137.22, 157.74, 142.01, 157.74, 141.33, 158.43]], "area": 4142.880399999999, "iscrowd": 0, "image_id": 108020, "bbox": [113.92, 151.58, 41.11, 195.28], "category_id": 25, "id": 599524}, {"segmentation": [[11.51, 517.51, 33.08, 510.32, 54.65, 510.32, 120.81, 511.76, 153.89, 441.29, 189.84, 431.22, 214.29, 389.51, 212.85, 304.66, 212.85, 288.84, 174.02, 304.66, 153.89, 300.34, 155.33, 290.28, 175.46, 260.07, 188.4, 239.94, 195.6, 222.68, 208.54, 225.56, 228.67, 242.82, 247.37, 281.65, 244.49, 321.92, 244.49, 331.98, 248.81, 378.01, 248.81, 390.95, 260.31, 441.29, 257.44, 457.11, 266.07, 487.31, 276.13, 514.64, 241.62, 523.27, 201.35, 530.46, 165.39, 530.46, 139.51, 529.02, 107.87, 539.09, 60.4, 523.27, 27.33, 524.7, 28.76, 517.51]], "area": 23603.443300000003, "iscrowd": 0, "image_id": 194679, "bbox": [11.51, 222.68, 264.62, 316.41], "category_id": 25, "id": 599814}, {"segmentation": [[353.05, 234.0, 364.08, 223.56, 370.05, 216.11, 379.29, 213.43, 384.95, 202.99, 387.64, 192.26, 390.92, 190.77, 395.98, 189.28, 400.16, 189.58, 391.51, 194.35, 388.53, 210.45, 387.34, 232.51, 377.8, 247.71, 367.36, 256.65, 352.46, 267.09, 353.35, 256.36, 351.86, 249.2, 349.48, 241.15, 353.35, 235.49]], "area": 1315.9044999999985, "iscrowd": 0, "image_id": 269799, "bbox": [349.48, 189.28, 50.68, 77.81], "category_id": 25, "id": 600003}, {"segmentation": [[252.56, 283.79, 249.17, 267.53, 252.56, 263.47, 258.65, 263.47, 260.68, 264.82, 260.68, 275.66, 269.49, 276.34, 272.87, 266.18, 278.97, 269.57, 281.68, 289.21, 290.48, 283.11, 305.38, 285.14, 307.41, 285.14, 295.9, 300.72, 285.74, 306.82, 284.39, 308.17, 340.6, 400.28, 360.92, 438.88, 365.66, 461.91, 373.79, 470.04, 375.82, 476.81, 375.82, 476.81, 408.05, 528.46, 410.92, 562.82, 406.62, 562.82, 342.19, 569.98, 307.83, 590.03, 251.99, 588.59, 224.79, 580.0, 183.27, 572.85, 193.29, 561.39, 150.34, 571.41, 130.29, 564.25, 170.38, 551.37, 213.33, 549.94, 251.99, 544.21, 251.99, 531.32, 259.15, 518.44, 270.6, 515.57, 274.9, 505.55, 286.35, 486.94, 294.94, 475.49, 294.94, 433.96, 274.9, 358.08, 253.42, 326.58, 247.7, 323.72, 244.83, 310.83, 231.95, 295.08, 224.79, 277.9, 241.97, 276.47]], "area": 27646.792849999994, "iscrowd": 0, "image_id": 194679, "bbox": [130.29, 263.47, 280.63, 326.56], "category_id": 25, "id": 600598}, {"segmentation": [[0.4, 255.39, 3.81, 251.77, 8.93, 248.99, 14.05, 246.65, 19.81, 243.45, 20.03, 240.03, 22.8, 239.82, 26.21, 238.75, 28.99, 239.18, 28.56, 241.53, 24.93, 243.87, 21.73, 248.99, 14.27, 254.11, 6.59, 257.74, 4.45, 264.78, 4.45, 269.26, 4.88, 275.66, 5.09, 281.64, 5.95, 287.4, 5.95, 288.68, 1.68, 288.47, 0.4, 286.76]], "area": 329.0546000000002, "iscrowd": 0, "image_id": 108020, "bbox": [0.4, 238.75, 28.59, 49.93], "category_id": 25, "id": 601149}, {"segmentation": [[281.02, 250.65, 287.71, 250.65, 292.92, 238.01, 298.12, 214.96, 298.87, 200.09, 315.97, 191.17, 341.25, 181.5, 352.4, 182.25, 356.86, 192.66, 350.91, 199.35, 351.66, 219.42, 359.83, 245.45, 362.81, 270.73, 365.78, 301.21, 365.04, 317.57, 354.63, 371.85, 351.66, 379.28, 370.99, 376.31, 370.99, 358.47, 372.48, 320.55, 374.71, 300.47, 374.71, 272.22, 376.19, 250.65, 384.37, 246.94, 393.29, 287.09, 397.01, 304.19, 399.24, 310.14, 404.45, 351.03, 404.45, 374.08, 405.93, 379.28, 420.8, 371.85, 411.14, 334.67, 405.93, 291.55, 404.45, 275.93, 404.45, 249.17, 412.63, 253.63, 425.27, 287.83, 429.73, 308.65, 422.29, 365.16, 434.93, 370.36, 440.14, 356.98, 440.14, 342.85, 439.39, 299.73, 446.83, 325.01, 448.32, 296.01, 443.85, 263.29, 449.06, 229.83, 449.8, 205.3, 439.39, 191.91, 433.45, 184.48, 414.11, 171.09, 391.81, 151.76, 385.12, 142.84, 367.27, 142.84, 335.3, 151.02, 303.33, 171.09, 289.94, 188.2, 285.48, 180.02, 282.51, 182.25, 282.51, 190.43, 277.3, 189.68, 273.58, 180.02, 271.35, 180.76, 264.66, 191.17, 272.1, 197.12, 276.56, 214.96, 279.53, 220.91, 280.28, 245.45]], "area": 16530.780749999994, "iscrowd": 0, "image_id": 527618, "bbox": [264.66, 142.84, 185.14, 236.44], "category_id": 25, "id": 601190}, {"segmentation": [[63.48, 315.47, 120.22, 201.02, 134.65, 177.93, 141.38, 159.66, 119.26, 132.73, 126.96, 120.22, 138.5, 128.88, 144.27, 122.15, 179.86, 138.5, 215.44, 145.23, 247.18, 150.04, 286.62, 156.77, 300.08, 161.58, 310.66, 166.39, 317.39, 177.93, 333.74, 181.78, 340.48, 186.59, 341.44, 200.05, 363.56, 230.83, 345.29, 218.33, 326.05, 229.87, 298.16, 226.98, 268.34, 239.49, 241.41, 257.76, 212.56, 267.38, 182.74, 269.3, 153.89, 360.67, 122.15, 419.34, 6.73, 418.38, 23.08, 388.57, 44.24, 352.02]], "area": 39954.711149999996, "iscrowd": 0, "image_id": 568060, "bbox": [6.73, 120.22, 356.83, 299.12], "category_id": 25, "id": 601202}, {"segmentation": [[8.59, 263.58, 1.43, 296.51, 14.32, 320.85, 41.52, 338.04, 64.43, 328.01, 84.47, 309.4, 85.91, 303.67, 73.02, 293.65, 67.29, 282.2, 67.29, 272.17, 67.29, 265.02, 67.29, 253.56, 70.16, 249.27, 68.72, 242.11, 42.95, 242.11, 27.2, 247.83, 7.16, 262.15]], "area": 5429.2033, "iscrowd": 0, "image_id": 532414, "bbox": [1.43, 242.11, 84.48, 95.93], "category_id": 34, "id": 602227}, {"segmentation": [[114.84, 265.68, 120.91, 262.27, 123.57, 260.37, 126.98, 259.24, 172.88, 262.65, 210.44, 277.44, 211.2, 280.48, 210.44, 285.03, 208.92, 288.45, 205.13, 290.72, 189.96, 292.24, 152.78, 285.79, 128.5, 281.24, 115.22, 273.27]], "area": 2068.036350000001, "iscrowd": 0, "image_id": 22265, "bbox": [114.84, 259.24, 96.36, 33.0], "category_id": 34, "id": 602316}, {"segmentation": [[231.77, 161.73, 231.41, 167.74, 229.49, 173.51, 225.16, 176.15, 221.55, 174.71, 220.23, 167.86, 221.79, 161.37, 223.36, 155.96, 226.96, 154.63, 229.61, 154.63, 231.29, 156.44]], "area": 190.9224500000001, "iscrowd": 0, "image_id": 483948, "bbox": [220.23, 154.63, 11.54, 21.52], "category_id": 34, "id": 602396}, {"segmentation": [[240.96, 236.52, 262.71, 230.31, 275.14, 235.75, 275.14, 243.52, 265.04, 248.18, 240.19, 250.51, 230.09, 251.28, 237.08, 241.19]], "area": 592.0685499999996, "iscrowd": 0, "image_id": 233900, "bbox": [230.09, 230.31, 45.05, 20.97], "category_id": 34, "id": 602547}, {"segmentation": [[344.0, 53.67, 351.27, 45.5, 362.61, 38.69, 372.14, 35.51, 380.77, 35.51, 385.76, 36.88, 390.75, 41.41, 391.66, 46.86, 390.75, 52.76, 383.49, 65.47, 371.24, 73.64, 356.26, 75.45, 349.0, 72.73, 345.37, 70.91, 342.19, 64.11, 342.64, 58.66]], "area": 1438.5450000000005, "iscrowd": 0, "image_id": 156170, "bbox": [342.19, 35.51, 49.47, 39.94], "category_id": 34, "id": 602725}, {"segmentation": [[249.35, 418.9, 207.95, 426.29, 173.94, 420.38, 152.5, 407.07, 153.24, 396.72, 175.42, 393.02, 209.43, 390.8, 242.7, 396.72, 256.74, 400.41, 261.92, 410.77, 253.79, 421.12]], "area": 2828.1155999999996, "iscrowd": 0, "image_id": 406874, "bbox": [152.5, 390.8, 109.42, 35.49], "category_id": 34, "id": 602787}, {"segmentation": [[256.47, 179.25, 259.62, 180.75, 261.19, 181.92, 265.27, 182.47, 267.63, 182.16, 265.74, 179.96, 262.92, 178.39, 259.38, 176.35, 255.22, 174.77, 252.23, 173.6, 250.97, 173.6, 250.5, 174.3, 250.89, 176.35, 252.15, 177.6]], "area": 60.47424999999997, "iscrowd": 0, "image_id": 86620, "bbox": [250.5, 173.6, 17.13, 8.87], "category_id": 34, "id": 603192}, {"segmentation": [[252.93, 327.01, 261.16, 326.27, 255.18, 320.28, 247.69, 319.53, 240.21, 319.53, 232.73, 319.53, 225.99, 320.28, 220.0, 321.78, 213.27, 324.77, 217.76, 328.51]], "area": 317.9681000000008, "iscrowd": 0, "image_id": 245780, "bbox": [213.27, 319.53, 47.89, 8.98], "category_id": 34, "id": 603218}, {"segmentation": [[361.55, 274.88, 373.8, 275.2, 390.9, 277.46, 401.54, 282.62, 402.51, 288.43, 397.67, 291.65, 385.74, 293.27, 370.9, 290.36, 358.64, 281.65, 356.06, 278.75, 360.58, 274.56]], "area": 584.6864500000003, "iscrowd": 0, "image_id": 385241, "bbox": [356.06, 274.56, 46.45, 18.71], "category_id": 34, "id": 603870}, {"segmentation": [[243.9, 162.2, 257.76, 161.87, 257.76, 159.25, 260.05, 158.71, 259.94, 161.98, 267.8, 160.78, 274.34, 159.69, 274.78, 156.96, 272.6, 154.56, 266.27, 155.1, 251.98, 155.98, 244.67, 157.18, 242.81, 158.38, 242.7, 160.78]], "area": 174.14434999999997, "iscrowd": 0, "image_id": 562845, "bbox": [242.7, 154.56, 32.08, 7.64], "category_id": 34, "id": 603922}, {"segmentation": [[125.69, 206.76, 125.69, 206.76, 167.91, 218.28, 164.07, 232.67, 135.28, 232.67, 134.32, 232.67, 104.58, 228.83, 97.86, 224.99, 84.43, 219.24, 87.31, 210.6, 125.69, 204.84, 159.27, 210.6, 159.27, 210.6]], "area": 1626.4803499999996, "iscrowd": 0, "image_id": 151655, "bbox": [84.43, 204.84, 83.48, 27.83], "category_id": 34, "id": 604625}, {"segmentation": [[173.84, 200.55, 181.72, 203.42, 188.95, 203.51, 189.97, 200.82, 188.48, 198.32, 186.54, 197.49, 180.05, 197.3, 174.49, 197.12, 173.1, 199.16]], "area": 82.50399999999976, "iscrowd": 0, "image_id": 428518, "bbox": [173.1, 197.12, 16.87, 6.39], "category_id": 34, "id": 604663}, {"segmentation": [[218.61, 174.25, 223.31, 174.25, 229.06, 172.94, 232.45, 171.63, 235.85, 169.54, 236.11, 167.98, 233.76, 166.15, 227.75, 165.63, 222.53, 165.63, 218.09, 166.15, 214.43, 167.46, 211.82, 170.85, 213.65, 173.2, 217.83, 174.51]], "area": 159.85234999999986, "iscrowd": 0, "image_id": 549519, "bbox": [211.82, 165.63, 24.29, 8.88], "category_id": 34, "id": 605133}, {"segmentation": [[390.79, 314.52, 409.64, 320.91, 427.14, 328.66, 438.59, 336.4, 443.3, 343.13, 474.27, 356.6, 468.21, 359.62, 448.69, 353.57, 384.73, 326.97, 317.4, 298.7, 307.3, 288.93, 310.0, 286.58, 322.11, 293.65, 354.43, 308.79, 386.07, 319.9], [307.3, 293.65, 318.75, 303.07, 453.74, 358.28, 445.66, 362.32, 310.0, 307.45, 301.58, 296.68, 302.25, 289.94]], "area": 2701.7354500000024, "iscrowd": 0, "image_id": 253143, "bbox": [301.58, 286.58, 172.69, 75.74], "category_id": 35, "id": 605972}, {"segmentation": [[77.47, 417.22, 94.45, 423.12, 105.52, 427.55, 110.68, 431.98, 118.06, 434.93, 126.18, 435.67, 169.72, 459.29, 169.72, 459.29, 177.84, 454.12, 174.15, 461.5, 169.72, 463.71, 101.83, 432.72, 77.47, 417.96], [127.66, 417.96, 143.15, 423.86, 160.86, 430.5, 175.62, 437.15, 177.1, 434.93, 227.28, 460.76, 234.66, 454.86, 237.61, 457.07, 228.76, 465.93, 143.89, 429.03, 129.13, 419.43]], "area": 1152.0401499999984, "iscrowd": 0, "image_id": 202194, "bbox": [77.47, 417.22, 160.14, 48.71], "category_id": 35, "id": 605997}, {"segmentation": [[330.51, 275.96, 339.02, 277.2, 343.81, 275.42, 333.52, 273.83], [391.53, 271.88, 391.71, 273.47, 424.7, 275.96, 432.33, 273.83, 394.9, 271.7]], "area": 107.74745000000047, "iscrowd": 0, "image_id": 446331, "bbox": [330.51, 271.7, 101.82, 5.5], "category_id": 35, "id": 606854}, {"segmentation": [[64.25, 327.31, 86.21, 326.68, 126.12, 325.41, 123.59, 323.3, 101.63, 324.36, 87.26, 325.84, 71.64, 325.2, 64.03, 324.15, 58.33, 324.15, 59.6, 326.05], [58.33, 324.78, 54.32, 324.57, 52.84, 325.41, 57.49, 327.53, 60.23, 327.53]], "area": 131.4303000000011, "iscrowd": 0, "image_id": 575792, "bbox": [52.84, 323.3, 73.28, 4.23], "category_id": 35, "id": 607190}, {"segmentation": [[238.46, 421.15, 309.87, 430.67, 350.81, 432.58, 369.85, 431.63, 366.04, 438.29, 229.89, 433.53, 237.5, 427.82], [76.59, 393.54, 114.68, 432.58, 134.67, 444.0, 119.44, 450.67, 40.41, 394.49, 45.17, 389.73]], "area": 2552.083600000001, "iscrowd": 0, "image_id": 410755, "bbox": [40.41, 389.73, 329.44, 60.94], "category_id": 35, "id": 607597}, {"segmentation": [[69.87, 373.16, 216.47, 371.68, 368.28, 365.72, 510.41, 359.03, 518.59, 348.61, 438.23, 356.05, 362.32, 356.05, 287.91, 359.03, 254.42, 357.54, 212.75, 363.49, 125.69, 365.72, 69.87, 364.98, 57.97, 363.49], [379.44, 347.12, 480.64, 346.37, 496.27, 337.45, 499.99, 336.7, 453.11, 338.93, 366.79, 335.21, 365.3, 341.17], [289.4, 353.07, 303.54, 347.86, 294.61, 343.4, 261.86, 345.63, 210.52, 347.12, 112.29, 355.3, 74.34, 352.33, 59.46, 347.86, 59.46, 356.05, 144.29, 362.0, 239.54, 352.33]], "area": 6760.069850000002, "iscrowd": 0, "image_id": 395040, "bbox": [57.97, 335.21, 460.62, 37.95], "category_id": 35, "id": 607709}, {"segmentation": [[341.9, 284.77, 321.09, 303.27, 313.0, 300.38, 299.7, 302.69, 309.53, 296.33, 332.65, 282.46, 337.27, 278.99, 340.16, 281.88], [260.39, 298.07, 276.58, 295.18, 296.81, 274.95, 291.03, 272.64, 286.41, 276.1, 271.95, 290.55, 263.28, 289.4, 259.24, 295.76]], "area": 602.9135999999999, "iscrowd": 0, "image_id": 435402, "bbox": [259.24, 272.64, 82.66, 30.63], "category_id": 35, "id": 607768}, {"segmentation": [[152.32, 210.72, 152.79, 213.52, 172.89, 212.58, 190.65, 212.58, 203.73, 211.65, 207.94, 208.85, 204.2, 207.91, 199.53, 209.78, 192.98, 209.78, 171.49, 210.25, 152.79, 211.18], [226.16, 210.72, 230.84, 208.38, 228.5, 205.57, 224.3, 210.25, 226.16, 211.18]], "area": 150.67360000000048, "iscrowd": 0, "image_id": 355111, "bbox": [152.32, 205.57, 78.52, 7.95], "category_id": 35, "id": 608006}, {"segmentation": [[294.47, 309.64, 332.22, 329.06, 374.29, 344.16, 379.69, 348.48, 372.13, 353.87, 320.36, 338.77, 280.45, 322.59, 270.74, 312.88, 280.45, 309.64, 286.92, 307.49], [193.08, 308.57, 294.47, 335.53, 308.49, 339.85, 295.55, 344.16, 240.54, 336.61, 195.24, 315.04, 187.69, 312.88]], "area": 2649.8489500000037, "iscrowd": 0, "image_id": 253143, "bbox": [187.69, 307.49, 192.0, 46.38], "category_id": 35, "id": 608594}, {"segmentation": [[322.19, 542.41, 261.13, 515.09, 262.73, 508.67, 270.77, 507.86, 314.96, 523.93, 376.82, 546.43, 399.32, 564.91, 388.07, 568.92], [332.63, 522.32, 309.33, 508.67, 309.33, 503.04, 318.17, 500.63, 331.83, 506.26, 409.76, 537.59, 424.0, 537.59, 422.62, 556.87, 385.66, 540.8], [201.67, 486.17, 184.0, 476.53, 189.62, 469.3, 203.28, 474.92], [219.35, 470.1, 188.01, 454.84, 194.44, 449.21, 211.31, 453.23]], "area": 3992.1609499999995, "iscrowd": 0, "image_id": 415946, "bbox": [184.0, 449.21, 240.0, 119.71], "category_id": 35, "id": 608971}, {"segmentation": [[613.14, 443.1, 417.74, 465.13, 388.62, 463.56, 378.92, 456.22, 382.06, 453.59, 400.16, 461.99, 629.4, 438.12], [498.52, 440.74, 365.54, 455.43, 344.29, 448.09, 344.56, 450.71, 362.13, 458.32, 376.03, 459.63, 505.6, 442.32]], "area": 1603.5141999999987, "iscrowd": 0, "image_id": 24730, "bbox": [344.29, 438.12, 285.11, 27.01], "category_id": 35, "id": 609402}, {"segmentation": [[167.11, 404.26, 165.69, 408.01, 160.39, 410.73, 128.83, 412.67, 83.95, 410.99, 85.89, 408.66, 131.29, 410.6, 153.02, 409.3, 165.05, 405.55], [186.52, 402.84, 187.42, 404.13, 178.76, 409.56, 166.21, 409.69, 164.4, 409.43, 167.24, 407.1, 177.98, 407.62]], "area": 233.70739999999924, "iscrowd": 0, "image_id": 24730, "bbox": [83.95, 402.84, 103.47, 9.83], "category_id": 35, "id": 609692}, {"segmentation": [[130.94, 325.34, 127.72, 324.09, 131.48, 323.02, 143.1, 323.2, 154.55, 322.66, 158.84, 323.02, 157.23, 325.34], [161.34, 323.91, 178.33, 322.3, 181.01, 322.13, 184.59, 322.3, 184.23, 324.27, 175.83, 324.99, 158.12, 325.34]], "area": 117.09799999999885, "iscrowd": 0, "image_id": 575792, "bbox": [127.72, 322.13, 56.87, 3.21], "category_id": 35, "id": 609854}, {"segmentation": [[447.6, 411.52, 423.38, 447.54, 412.24, 450.82, 410.28, 443.61, 410.93, 439.68, 420.1, 434.44, 430.58, 409.56], [403.73, 403.67, 378.85, 439.03, 374.26, 442.3, 369.02, 438.37, 367.06, 434.44, 389.32, 395.81]], "area": 1246.3766000000012, "iscrowd": 0, "image_id": 345100, "bbox": [367.06, 395.81, 80.54, 55.01], "category_id": 35, "id": 610121}, {"segmentation": [[251.8, 333.19, 259.93, 343.12, 268.05, 344.03, 270.76, 342.67, 271.21, 339.06, 267.15, 337.25, 259.47, 335.45, 254.96, 332.29], [294.74, 341.96, 297.0, 340.61, 302.42, 337.9, 306.48, 336.1, 307.38, 333.39, 303.32, 332.03, 297.0, 334.74, 292.49, 336.55, 285.72, 341.06, 284.81, 341.96, 287.07, 343.32, 292.03, 342.41, 292.49, 341.96]], "area": 214.9173999999997, "iscrowd": 0, "image_id": 311522, "bbox": [251.8, 332.03, 55.58, 12.0], "category_id": 35, "id": 611362}, {"segmentation": [[202.71, 191.97, 215.04, 201.83, 333.42, 240.8, 336.88, 234.88, 221.45, 196.4, 206.65, 189.01], [243.15, 250.66, 274.72, 221.56, 279.66, 222.05, 252.03, 248.69, 244.14, 252.64, 238.72, 252.14, 240.69, 248.2], [284.59, 212.19, 330.46, 171.74, 339.83, 157.93, 340.82, 159.9, 334.41, 171.25, 286.07, 214.16]], "area": 1333.8450500000024, "iscrowd": 0, "image_id": 431554, "bbox": [202.71, 157.93, 138.11, 94.71], "category_id": 35, "id": 611400}, {"segmentation": [[142.32, 423.7, 141.96, 420.05, 145.25, 420.05, 148.54, 420.05, 150.36, 420.41, 154.02, 423.7, 161.32, 425.53, 170.09, 425.89, 177.4, 426.26, 183.98, 427.36, 191.29, 427.72, 199.33, 428.82, 205.9, 428.82, 213.94, 429.55, 214.67, 430.28, 214.67, 432.47, 207.36, 432.84, 190.92, 432.11, 173.38, 428.45, 168.27, 428.82, 163.15, 429.55, 151.46, 430.64, 145.25, 428.09, 143.42, 425.53], [167.54, 429.91, 172.29, 429.55, 180.69, 430.28, 192.02, 432.47, 202.98, 433.57, 212.48, 432.84, 217.59, 433.57, 215.77, 435.03, 190.56, 436.13, 173.02, 432.84]], "area": 462.7403999999993, "iscrowd": 0, "image_id": 528493, "bbox": [141.96, 420.05, 75.63, 16.08], "category_id": 35, "id": 611559}, {"segmentation": [[10.33, 628.71, 40.4, 639.18, 189.45, 640.0, 96.62, 636.56, 18.18, 613.03], [2.49, 586.87, 147.62, 609.11, 156.76, 589.49, 88.78, 582.96, 2.49, 569.89, 1.18, 581.65], [198.6, 619.56, 347.66, 632.64, 375.11, 632.64, 381.64, 614.33, 369.88, 605.18, 207.75, 590.8, 189.45, 616.95]], "area": 9190.132100000003, "iscrowd": 0, "image_id": 415946, "bbox": [1.18, 569.89, 380.46, 70.11], "category_id": 35, "id": 611602}, {"segmentation": [[219.93, 306.71, 250.78, 302.7, 253.18, 305.11, 218.73, 311.92, 219.53, 306.31], [29.06, 358.8, 119.21, 331.15, 130.83, 324.34, 143.65, 321.13, 152.06, 319.93, 170.09, 317.53, 178.1, 314.72, 178.1, 318.33, 144.05, 329.55, 93.16, 344.77, 39.48, 360.4, 31.06, 362.4], [16.24, 363.2, 6.22, 366.01, 0.0, 365.61, 2.22, 370.42, 17.04, 369.61, 26.66, 364.41, 20.65, 362.0, 15.44, 362.8]], "area": 1110.2338500000008, "iscrowd": 0, "image_id": 237841, "bbox": [0.0, 302.7, 253.18, 67.72], "category_id": 35, "id": 612110}, {"segmentation": [[398.63, 298.86, 399.56, 300.11, 422.4, 297.3, 458.39, 287.6, 485.61, 279.15, 515.64, 266.63, 523.78, 260.06, 523.78, 256.0, 519.4, 255.68, 512.51, 257.56, 509.7, 263.19, 500.94, 266.63, 493.74, 270.08, 481.23, 276.33, 466.21, 281.03, 449.31, 287.91, 439.93, 290.41, 423.66, 295.42, 417.71, 295.42, 398.94, 297.3]], "area": 503.0988999999995, "iscrowd": 0, "image_id": 39958, "bbox": [398.63, 255.68, 125.15, 44.43], "category_id": 36, "id": 616102}, {"segmentation": [[98.37, 111.79, 357.34, 78.15, 365.75, 37.79, 380.04, 28.55, 422.93, 28.55, 458.24, 21.82, 476.74, 38.64, 472.53, 59.66, 486.83, 64.7, 498.6, 57.97, 499.44, 209.32, 351.46, 221.09, 236.27, 226.98, 169.0, 235.38, 164.8, 198.39, 144.62, 168.12], [0.0, 115.99, 62.22, 110.94, 48.77, 126.08, 43.72, 141.21, 38.68, 174.85, 59.7, 194.18, 63.06, 213.52, 49.61, 241.27, 0.0, 242.11]], "area": 61031.4538, "iscrowd": 0, "image_id": 289095, "bbox": [0.0, 21.82, 499.44, 220.29], "category_id": 36, "id": 617023}, {"segmentation": [[298.34, 43.79, 294.26, 58.93, 300.67, 126.51, 304.74, 179.52, 304.74, 191.75, 306.49, 197.58, 297.75, 171.36, 290.18, 87.48, 287.27, 57.19, 292.51, 49.03, 295.42, 43.79]], "area": 913.0345500000008, "iscrowd": 0, "image_id": 346853, "bbox": [287.27, 43.79, 19.22, 153.79], "category_id": 36, "id": 617060}, {"segmentation": [[455.47, 413.34, 640.0, 386.01, 639.93, 401.95, 446.36, 419.03, 380.31, 411.06]], "area": 2166.870399999998, "iscrowd": 0, "image_id": 361850, "bbox": [380.31, 386.01, 259.69, 33.02], "category_id": 36, "id": 617774}, {"segmentation": [[257.3, 302.24, 146.55, 242.41, 140.61, 226.59, 248.4, 283.95, 279.06, 293.34, 276.59, 300.26, 257.3, 301.75]], "area": 1726.997200000001, "iscrowd": 0, "image_id": 125135, "bbox": [140.61, 226.59, 138.45, 75.65], "category_id": 36, "id": 618257}, {"segmentation": [[232.69, 367.49, 210.08, 369.94, 189.64, 372.12, 188.0, 367.49, 189.64, 363.94, 195.36, 357.95, 208.44, 354.68, 225.06, 352.77], [266.48, 347.32, 287.73, 345.42, 288.55, 363.13, 261.58, 363.94], [325.07, 347.05, 387.47, 347.32, 377.66, 349.5, 377.38, 364.76, 289.1, 365.85, 291.55, 354.41, 313.08, 354.41, 326.97, 356.32]], "area": 2308.47965, "iscrowd": 0, "image_id": 275432, "bbox": [188.0, 345.42, 199.47, 26.7], "category_id": 36, "id": 618973}, {"segmentation": [[206.45, 204.53, 230.17, 184.52, 207.19, 181.55, 183.47, 193.41, 166.42, 185.26, 162.71, 170.43, 155.3, 170.43, 141.96, 184.52, 124.91, 177.11, 122.68, 168.95, 122.68, 164.5, 109.34, 172.66, 111.9, 184.06, 138.3, 187.26, 202.74, 204.53]], "area": 1465.2894499999984, "iscrowd": 0, "image_id": 263275, "bbox": [109.34, 164.5, 120.83, 40.03], "category_id": 36, "id": 619999}, {"segmentation": [[471.48, 284.42, 479.88, 279.38, 494.17, 281.9, 496.69, 291.14, 500.9, 303.75, 504.26, 318.88, 495.01, 338.21, 488.29, 355.86, 476.52, 365.94, 489.13, 365.1, 503.42, 340.73, 518.54, 318.88, 526.95, 315.51, 538.72, 317.2, 547.12, 330.64, 553.84, 346.61, 556.36, 361.74, 527.79, 444.1, 580.74, 480.0, 637.89, 480.0, 639.57, 447.46, 640.0, 379.39, 634.53, 370.14, 533.67, 312.99, 490.81, 272.65, 489.13, 268.45, 484.93, 269.29, 475.68, 275.17]], "area": 13714.261950000004, "iscrowd": 0, "image_id": 319293, "bbox": [471.48, 268.45, 168.52, 211.55], "category_id": 36, "id": 620560}, {"segmentation": [[447.5, 194.9, 425.05, 194.9, 427.6, 198.47, 519.45, 196.43, 531.69, 191.32, 531.69, 188.77, 520.98, 191.32, 510.26, 195.92]], "area": 259.9343000000007, "iscrowd": 0, "image_id": 319293, "bbox": [425.05, 188.77, 106.64, 9.7], "category_id": 36, "id": 620683}, {"segmentation": [[170.44, 163.82, 171.96, 163.73, 174.71, 165.87, 182.54, 171.2, 188.32, 176.81, 195.62, 182.15, 195.26, 182.95, 192.33, 183.04, 189.48, 183.57, 187.52, 182.06, 181.56, 184.19, 175.25, 184.1, 174.27, 183.21, 174.0, 180.63, 175.78, 177.43, 174.62, 177.25, 169.73, 177.34, 168.04, 175.92, 165.46, 174.67, 164.22, 173.25, 165.02, 172.09, 166.17, 169.87, 168.22, 168.45, 168.22, 165.07, 169.02, 164.27, 170.62, 163.73]], "area": 301.68254999999976, "iscrowd": 0, "image_id": 574668, "bbox": [164.22, 163.73, 31.4, 20.46], "category_id": 38, "id": 621051}, {"segmentation": [[159.26, 247.72, 167.47, 244.61, 174.68, 239.39, 180.28, 234.91, 178.53, 232.8, 174.56, 232.43, 171.7, 233.79, 169.33, 239.14, 164.73, 241.87]], "area": 88.67855000000007, "iscrowd": 0, "image_id": 404964, "bbox": [159.26, 232.43, 21.02, 15.29], "category_id": 38, "id": 621171}, {"segmentation": [[304.97, 230.92, 312.02, 230.86, 315.54, 232.86, 310.61, 234.27, 304.04, 233.45]], "area": 28.081899999999965, "iscrowd": 0, "image_id": 574668, "bbox": [304.04, 230.86, 11.5, 3.41], "category_id": 38, "id": 621274}, {"segmentation": [[175.39, 39.29, 177.13, 56.78, 222.6, 80.91, 247.78, 88.6, 280.3, 107.84, 299.19, 126.02, 309.33, 128.47, 335.56, 120.43, 310.38, 117.98, 304.43, 121.12, 294.64, 102.59, 278.9, 96.99, 257.57, 72.16, 239.38, 58.53, 217.0, 51.53, 192.17, 41.74, 179.58, 41.04]], "area": 2855.4241999999986, "iscrowd": 0, "image_id": 119093, "bbox": [175.39, 39.29, 160.17, 89.18], "category_id": 38, "id": 621639}, {"segmentation": [[350.04, 78.9, 345.32, 79.5, 337.89, 81.41, 334.77, 82.31, 328.45, 85.43, 330.35, 86.43, 334.27, 85.53, 337.79, 85.93, 340.8, 86.53, 342.1, 90.45, 343.31, 90.75, 346.42, 90.35, 348.73, 92.3, 351.04, 95.21, 352.35, 98.92, 353.45, 99.63, 353.45, 96.01, 353.25, 89.24, 350.54, 79.0]], "area": 188.76499999999987, "iscrowd": 0, "image_id": 374185, "bbox": [328.45, 78.9, 25.0, 20.73], "category_id": 38, "id": 622180}, {"segmentation": [[322.83, 79.63, 343.42, 54.71, 346.67, 37.38, 356.42, 37.38, 348.83, 49.29, 339.08, 73.13, 328.25, 87.21, 317.42, 85.04, 323.92, 76.38]], "area": 389.96389999999894, "iscrowd": 0, "image_id": 404964, "bbox": [317.42, 37.38, 39.0, 49.83], "category_id": 38, "id": 622254}, {"segmentation": [[269.33, 66.35, 248.41, 65.08, 220.53, 77.75, 250.95, 68.88, 280.73, 70.78, 283.27, 70.15, 297.84, 66.98, 338.4, 66.35, 349.81, 62.54, 349.81, 60.01, 292.14, 61.91, 282.0, 65.08, 278.83, 68.88]], "area": 547.1231, "iscrowd": 0, "image_id": 560350, "bbox": [220.53, 60.01, 129.28, 17.74], "category_id": 38, "id": 622556}, {"segmentation": [[159.2, 432.67, 162.8, 426.09, 175.95, 429.44, 172.72, 437.01, 167.51, 435.02, 163.79, 438.62, 156.35, 439.24, 162.3, 436.26, 165.65, 435.27, 165.78, 432.91, 163.79, 432.17, 154.98, 437.5, 158.21, 433.91]], "area": 125.19650000000004, "iscrowd": 0, "image_id": 574668, "bbox": [154.98, 426.09, 20.97, 13.15], "category_id": 38, "id": 622726}, {"segmentation": [[314.88, 458.84, 314.48, 455.68, 323.58, 453.3, 325.56, 453.3, 327.54, 456.47, 327.54, 457.66, 320.42, 459.24, 314.48, 464.38, 309.73, 465.18, 303.0, 465.18, 309.33, 463.99, 313.29, 462.01, 316.46, 459.63, 317.25, 458.05]], "area": 83.44910000000019, "iscrowd": 0, "image_id": 574668, "bbox": [303.0, 453.3, 24.54, 11.88], "category_id": 38, "id": 622969}, {"segmentation": [[640.0, 78.14, 634.5, 72.98, 628.85, 68.56, 626.86, 66.9, 626.86, 65.24, 629.63, 59.93, 630.96, 58.27, 632.17, 57.27, 636.16, 59.71, 640.0, 62.47]], "area": 160.38734999999977, "iscrowd": 0, "image_id": 274881, "bbox": [626.86, 57.27, 13.14, 20.87], "category_id": 38, "id": 623344}, {"segmentation": [[134.79, 84.53, 135.58, 82.31, 148.49, 78.39, 147.84, 85.18, 135.71, 84.53], [136.36, 87.99, 133.09, 91.73, 139.63, 90.33, 139.4, 86.36, 135.9, 86.59]], "area": 75.66424999999998, "iscrowd": 0, "image_id": 560350, "bbox": [133.09, 78.39, 15.4, 13.34], "category_id": 38, "id": 623354}, {"segmentation": [[181.91, 219.83, 124.82, 273.43, 70.64, 215.75, 56.66, 193.04, 53.17, 173.81, 56.66, 123.71, 77.05, 94.0, 86.95, 68.37, 103.85, 55.56, 123.07, 54.39, 135.89, 54.97, 159.77, 63.71, 230.84, 126.63, 230.84, 137.11, 245.4, 148.76, 211.62, 159.25, 184.82, 214.01]], "area": 25055.6107, "iscrowd": 0, "image_id": 187474, "bbox": [53.17, 54.39, 192.23, 219.04], "category_id": 38, "id": 624261}, {"segmentation": [[329.86, 35.02, 335.05, 34.61, 336.17, 34.41, 334.95, 35.83, 333.22, 37.87, 331.9, 38.27, 329.76, 40.41, 328.54, 42.24, 327.22, 39.9, 326.0, 38.58, 319.8, 37.56, 314.0, 32.27, 314.72, 31.16, 319.6, 34.71, 323.05, 36.04, 326.31, 35.93, 328.44, 35.22]], "area": 64.18094999999997, "iscrowd": 0, "image_id": 560350, "bbox": [314.0, 31.16, 22.17, 11.08], "category_id": 38, "id": 624568}, {"segmentation": [[10.34, 231.11, 12.03, 229.04, 12.94, 225.27, 12.29, 223.32, 4.75, 227.87, 1.63, 229.04, 0.0, 228.91, 5.01, 232.15, 6.18, 235.92, 8.78, 231.5]], "area": 60.00895000000001, "iscrowd": 0, "image_id": 574668, "bbox": [0.0, 223.32, 12.94, 12.6], "category_id": 38, "id": 624752}, {"segmentation": [[206.88, 306.22, 200.68, 303.85, 195.94, 281.43, 216.17, 271.59, 224.19, 291.09, 227.29, 293.82, 227.83, 297.1, 229.11, 302.21]], "area": 741.1686500000008, "iscrowd": 0, "image_id": 274881, "bbox": [195.94, 271.59, 33.17, 34.63], "category_id": 38, "id": 625848}, {"segmentation": [[282.19, 114.88, 286.02, 117.89, 284.93, 118.44, 281.09, 122.27, 277.53, 125.01, 273.69, 129.67, 271.23, 131.86, 267.94, 135.15, 265.47, 138.17, 257.25, 145.56, 252.6, 149.67, 249.86, 151.32, 247.66, 149.67, 252.32, 146.66, 255.88, 141.45, 258.62, 138.17, 261.36, 135.15, 263.83, 133.23, 266.84, 131.86, 269.31, 126.66, 273.15, 124.74, 272.05, 119.81, 274.52, 116.52, 278.63, 114.88, 281.64, 114.33]], "area": 234.73310000000018, "iscrowd": 0, "image_id": 404964, "bbox": [247.66, 114.33, 38.36, 36.99], "category_id": 38, "id": 626060}, {"segmentation": [[394.39, 212.51, 358.17, 202.07, 361.71, 195.84, 408.37, 215.72, 409.38, 217.74]], "area": 207.87474999999955, "iscrowd": 0, "image_id": 274881, "bbox": [358.17, 195.84, 51.21, 21.9], "category_id": 38, "id": 626238}, {"segmentation": [[224.13, 110.04, 229.1, 112.52, 230.96, 110.93, 231.85, 110.75, 236.82, 111.9, 237.53, 111.28, 234.07, 108.71, 231.59, 108.17, 228.13, 108.17]], "area": 31.829750000000047, "iscrowd": 0, "image_id": 404964, "bbox": [224.13, 108.17, 13.4, 4.35], "category_id": 38, "id": 626241}, {"segmentation": [[178.64, 80.4, 179.37, 81.86, 183.19, 80.95, 183.74, 78.4, 181.92, 77.31, 180.64, 77.49, 179.19, 78.58, 178.09, 79.86]], "area": 17.02390000000004, "iscrowd": 0, "image_id": 560350, "bbox": [178.09, 77.31, 5.65, 4.55], "category_id": 38, "id": 626287}, {"segmentation": [[339.93, 200.73, 366.06, 211.05, 370.24, 212.22, 374.42, 214.84, 371.29, 214.31, 365.02, 211.44, 360.31, 211.83, 354.43, 210.0, 351.43, 208.7, 347.12, 208.3, 339.15, 205.3, 336.93, 204.25, 338.62, 200.07, 339.41, 200.33]], "area": 111.62915000000024, "iscrowd": 0, "image_id": 274881, "bbox": [336.93, 200.07, 37.49, 14.77], "category_id": 38, "id": 626402}, {"segmentation": [[294.78, 86.75, 302.87, 80.07, 306.39, 73.04, 317.29, 75.5, 314.83, 80.07, 307.8, 83.94, 300.76, 95.9, 299.36, 92.03, 307.8, 82.53, 307.09, 79.72, 296.89, 88.86, 294.08, 93.79, 293.38, 89.21, 294.08, 83.59]], "area": 159.91834999999975, "iscrowd": 0, "image_id": 404964, "bbox": [293.38, 73.04, 23.91, 22.86], "category_id": 38, "id": 626744}, {"segmentation": [[332.95, 210.95, 329.7, 209.68, 327.36, 208.33, 324.29, 206.52, 322.12, 205.89, 318.06, 204.72, 317.7, 204.63, 315.44, 203.55, 316.52, 202.28, 317.25, 200.75, 318.87, 198.04, 320.5, 197.59, 324.02, 201.2, 328.17, 203.0, 330.52, 205.08, 332.77, 207.07, 336.29, 209.77, 339.18, 212.39, 341.89, 213.66, 341.71, 214.2, 340.08, 214.65, 337.38, 213.66, 336.2, 212.21, 333.49, 211.31, 333.22, 211.31]], "area": 114.3321, "iscrowd": 0, "image_id": 274881, "bbox": [315.44, 197.59, 26.45, 17.06], "category_id": 38, "id": 626912}, {"segmentation": [[290.67, 199.12, 294.11, 191.11, 314.71, 203.7, 331.87, 210.57, 319.28, 210.57, 306.7, 204.84]], "area": 209.56939999999997, "iscrowd": 0, "image_id": 274881, "bbox": [290.67, 191.11, 41.2, 19.46], "category_id": 38, "id": 627053}, {"segmentation": [[135.07, 161.08, 132.93, 159.56, 133.79, 157.99, 136.55, 158.75, 136.59, 160.13, 140.69, 161.08, 137.07, 160.56, 140.21, 161.51, 137.02, 160.94, 139.92, 161.94, 135.21, 161.22]], "area": 10.832050000000011, "iscrowd": 0, "image_id": 274881, "bbox": [132.93, 157.99, 7.76, 3.95], "category_id": 38, "id": 627117}, {"segmentation": [[420.04, 231.1, 420.04, 233.62, 416.9, 236.45, 417.21, 239.9, 408.1, 235.82, 420.35, 229.85]], "area": 50.29874999999992, "iscrowd": 0, "image_id": 274881, "bbox": [408.1, 229.85, 12.25, 10.05], "category_id": 38, "id": 627192}, {"segmentation": [[379.77, 221.98, 374.65, 222.23, 355.15, 216.86, 356.37, 211.74, 375.39, 219.06, 381.48, 221.98, 390.01, 222.47, 393.92, 223.44, 402.94, 225.88, 392.45, 224.66, 385.38, 223.44, 380.26, 222.71]], "area": 121.42665000000011, "iscrowd": 0, "image_id": 274881, "bbox": [355.15, 211.74, 47.79, 14.14], "category_id": 38, "id": 627232}, {"segmentation": [[430.36, 216.66, 429.46, 214.34, 434.75, 212.14, 441.46, 216.66, 461.73, 226.08, 441.85, 218.08, 460.95, 226.86, 439.14, 218.72, 431.01, 217.18]], "area": 77.87130000000013, "iscrowd": 0, "image_id": 274881, "bbox": [429.46, 212.14, 32.27, 14.72], "category_id": 38, "id": 627291}, {"segmentation": [[149.14, 214.47, 154.16, 213.21, 162.45, 218.73, 183.04, 231.79, 162.2, 222.0, 157.17, 222.0, 152.65, 219.74, 148.89, 215.22]], "area": 105.52625000000009, "iscrowd": 0, "image_id": 274881, "bbox": [148.89, 213.21, 34.15, 18.58], "category_id": 38, "id": 627302}, {"segmentation": [[247.54, 233.25, 251.05, 225.32, 254.4, 229.59, 266.9, 230.05, 256.84, 233.1, 257.14, 239.04, 253.79, 239.04, 248.3, 235.08]], "area": 99.51769999999976, "iscrowd": 0, "image_id": 274881, "bbox": [247.54, 225.32, 19.36, 13.72], "category_id": 38, "id": 627305}, {"segmentation": [[367.72, 94.01, 371.26, 89.06, 366.66, 82.34, 362.42, 83.05, 359.94, 86.23, 359.59, 93.3, 363.12, 94.01, 367.37, 93.66], [385.05, 85.17, 390.71, 95.43, 397.78, 93.66, 413.7, 94.37, 438.1, 95.07, 455.08, 94.37, 467.45, 96.13, 506.0, 97.9, 528.99, 96.84, 537.48, 95.07, 539.6, 89.41, 537.12, 82.34, 534.65, 80.57, 530.41, 80.57, 451.19, 84.11, 384.7, 84.82]], "area": 1997.6976000000009, "iscrowd": 0, "image_id": 502517, "bbox": [359.59, 80.57, 180.01, 17.33], "category_id": 39, "id": 627772}, {"segmentation": [[510.07, 143.1, 423.77, 106.17, 423.77, 92.48, 458.21, 95.8, 488.91, 94.56, 529.57, 96.22, 540.35, 135.63, 516.71, 152.23]], "area": 3846.564800000002, "iscrowd": 0, "image_id": 34354, "bbox": [423.77, 92.48, 116.58, 59.75], "category_id": 39, "id": 627819}, {"segmentation": [[401.95, 324.43, 441.39, 351.35, 452.65, 341.34, 454.53, 335.08, 395.06, 296.26, 396.94, 304.4, 406.33, 310.04], [287.39, 246.18, 271.74, 236.17, 274.87, 228.03, 281.75, 224.27, 294.27, 236.17]], "area": 1418.0264500000005, "iscrowd": 0, "image_id": 349052, "bbox": [271.74, 224.27, 182.79, 127.08], "category_id": 39, "id": 627907}, {"segmentation": [[436.15, 151.51, 438.05, 156.48, 435.45, 159.79, 438.28, 171.14, 435.21, 169.25, 429.3, 160.97, 428.59, 153.88, 429.3, 150.81], [460.74, 144.66, 466.18, 149.86, 472.33, 150.1, 481.31, 148.44, 544.91, 123.85, 617.73, 95.72, 640.0, 88.63, 640.0, 67.11, 631.2, 71.37, 597.87, 85.32, 525.29, 117.94, 469.49, 140.64]], "area": 2827.3473, "iscrowd": 0, "image_id": 252391, "bbox": [428.59, 67.11, 211.41, 104.03], "category_id": 39, "id": 628018}, {"segmentation": [[165.04, 290.2, 175.41, 329.95, 182.9, 372.58, 189.81, 406.57, 200.18, 407.14, 205.36, 402.53, 171.95, 289.05]], "area": 1300.3948500000001, "iscrowd": 0, "image_id": 381208, "bbox": [165.04, 289.05, 40.32, 118.09], "category_id": 39, "id": 628078}, {"segmentation": [[268.19, 429.38, 266.83, 430.33, 266.83, 429.27, 265.46, 427.38, 264.83, 426.12, 254.42, 414.87, 239.27, 395.94, 240.85, 391.73, 256.2, 410.55, 268.4, 425.28, 269.46, 428.43, 268.09, 429.69]], "area": 173.5703499999996, "iscrowd": 0, "image_id": 41577, "bbox": [239.27, 391.73, 30.19, 38.6], "category_id": 39, "id": 628118}, {"segmentation": [[292.45, 201.86, 282.68, 201.1, 282.93, 210.63, 289.95, 221.66, 292.2, 202.36], [282.17, 213.14, 277.91, 221.66, 276.41, 253.01, 280.67, 258.02, 282.93, 259.02, 285.18, 257.02, 288.69, 225.43], [275.61, 258.38, 280.64, 263.25, 278.05, 268.27, 274.55, 261.58]], "area": 544.1013499999984, "iscrowd": 0, "image_id": 399441, "bbox": [274.55, 201.1, 17.9, 67.17], "category_id": 39, "id": 628180}, {"segmentation": [[353.11, 239.89, 353.11, 237.01, 418.36, 195.75, 426.04, 192.87, 455.79, 182.31, 527.75, 138.18, 577.65, 106.51, 580.53, 96.91, 571.89, 80.6, 565.18, 73.89, 548.86, 77.72, 449.07, 142.01, 423.16, 166.0, 370.39, 197.67, 332.96, 227.41, 346.4, 238.93], [255.24, 281.15, 262.92, 289.78, 263.88, 299.38, 245.64, 308.02, 231.25, 294.58, 231.25, 286.91, 232.21, 281.15, 242.77, 278.27, 250.44, 281.15]], "area": 9513.241800000003, "iscrowd": 0, "image_id": 397184, "bbox": [231.25, 73.89, 349.28, 234.13], "category_id": 39, "id": 628655}, {"segmentation": [[187.61, 198.46, 177.72, 197.0, 174.78, 205.79, 175.15, 212.75, 177.72, 234.0, 179.18, 240.23, 181.01, 265.14, 181.75, 271.74, 186.51, 269.9, 186.88, 267.34, 186.88, 262.58, 186.14, 251.95, 186.88, 235.47, 189.07, 225.21, 189.07, 218.98, 187.97, 203.96]], "area": 688.9535999999997, "iscrowd": 0, "image_id": 288694, "bbox": [174.78, 197.0, 14.29, 74.74], "category_id": 39, "id": 628879}, {"segmentation": [[437.21, 307.78, 478.92, 304.9, 496.18, 314.97, 490.43, 346.61, 444.4, 346.61, 438.65, 312.09], [77.66, 353.8, 63.28, 353.8, 51.78, 359.55, 35.96, 349.48, 40.27, 329.35, 48.9, 323.6, 64.72, 332.22]], "area": 2961.0405000000023, "iscrowd": 0, "image_id": 142357, "bbox": [35.96, 304.9, 460.22, 54.65], "category_id": 39, "id": 629414}, {"segmentation": [[365.95, 232.65, 363.84, 194.05, 370.16, 193.34, 372.61, 194.4, 374.37, 198.26, 369.46, 234.75]], "area": 288.8203500000004, "iscrowd": 0, "image_id": 524522, "bbox": [363.84, 193.34, 10.53, 41.41], "category_id": 39, "id": 629469}, {"segmentation": [[157.37, 263.57, 239.86, 220.92, 241.97, 224.45, 161.25, 270.98, 157.72, 268.86]], "area": 588.8922500000011, "iscrowd": 0, "image_id": 70288, "bbox": [157.37, 220.92, 84.6, 50.06], "category_id": 39, "id": 629621}, {"segmentation": [[190.95, 68.37, 237.97, 103.87, 237.01, 113.47, 177.52, 78.92, 181.36, 69.33], [270.59, 124.98, 281.15, 130.74, 272.51, 137.46, 262.92, 126.9, 267.71, 117.31]], "area": 974.9378999999989, "iscrowd": 0, "image_id": 203847, "bbox": [177.52, 68.37, 103.63, 69.09], "category_id": 39, "id": 629674}, {"segmentation": [[140.15, 199.36, 117.34, 169.18, 102.62, 145.63, 78.33, 101.47, 67.29, 84.54, 78.33, 74.98, 110.71, 126.5, 130.59, 169.92, 147.51, 197.89, 140.15, 200.1], [169.59, 242.05, 152.67, 223.65, 162.23, 219.97, 175.48, 241.31, 169.59, 242.79]], "area": 2001.022099999999, "iscrowd": 0, "image_id": 234422, "bbox": [67.29, 74.98, 108.19, 167.81], "category_id": 39, "id": 630114}, {"segmentation": [[104.28, 238.89, 112.7, 235.86, 114.38, 239.57, 104.28, 241.92, 104.28, 239.23], [89.81, 247.31, 58.84, 260.1, 58.5, 266.83, 78.03, 257.75, 95.2, 249.33, 95.2, 247.31, 89.47, 246.97], [53.45, 263.47, 17.43, 281.31, 0.6, 288.38, 0.6, 298.81, 10.7, 292.75, 41.67, 275.25, 53.12, 269.19, 52.78, 265.15]], "area": 610.9624999999988, "iscrowd": 0, "image_id": 184877, "bbox": [0.6, 235.86, 113.78, 62.95], "category_id": 39, "id": 630261}, {"segmentation": [[309.16, 245.24, 401.63, 196.12, 394.4, 190.34, 303.39, 239.46]], "area": 849.5372000000015, "iscrowd": 0, "image_id": 23676, "bbox": [303.39, 190.34, 98.24, 54.9], "category_id": 39, "id": 630474}, {"segmentation": [[175.92, 136.76, 165.46, 134.08, 163.58, 132.2, 165.46, 127.64, 169.21, 128.45, 191.47, 135.69, 199.24, 138.37, 197.36, 139.17]], "area": 156.63394999999994, "iscrowd": 0, "image_id": 84653, "bbox": [163.58, 127.64, 35.66, 11.53], "category_id": 39, "id": 630602}, {"segmentation": [[28.27, 14.53, 32.43, 13.94, 71.09, 35.65, 105.63, 56.73, 122.53, 65.88, 123.43, 65.68, 153.54, 82.02, 149.2, 85.34, 107.6, 64.25, 59.12, 43.51, 24.42, 26.08, 23.17, 22.48, 24.82, 18.25]], "area": 1302.2594500000007, "iscrowd": 0, "image_id": 506417, "bbox": [23.17, 13.94, 130.37, 71.4], "category_id": 39, "id": 631078}, {"segmentation": [[588.53, 148.92, 603.37, 131.11, 622.45, 116.69, 640.0, 96.76, 640.0, 86.16, 613.97, 114.57, 604.64, 125.17, 583.44, 145.52, 585.13, 149.76]], "area": 471.9238999999998, "iscrowd": 0, "image_id": 550028, "bbox": [583.44, 86.16, 56.56, 63.6], "category_id": 39, "id": 631238}, {"segmentation": [[64.94, 401.56, 119.37, 330.89, 148.97, 305.11, 200.54, 240.17, 204.36, 243.99, 141.33, 323.25, 79.26, 414.93]], "area": 2300.836150000004, "iscrowd": 0, "image_id": 383605, "bbox": [64.94, 240.17, 139.42, 174.76], "category_id": 39, "id": 631762}, {"segmentation": [[359.21, 265.83, 289.65, 390.65, 309.66, 394.46, 363.97, 271.55]], "area": 1829.1883000000068, "iscrowd": 0, "image_id": 383605, "bbox": [289.65, 265.83, 74.32, 128.63], "category_id": 39, "id": 632067}, {"segmentation": [[381.27, 423.39, 362.72, 433.17, 357.95, 453.23, 374.0, 461.75, 385.29, 453.23, 392.31, 433.67, 388.54, 422.13]], "area": 875.4894000000007, "iscrowd": 0, "image_id": 399441, "bbox": [357.95, 422.13, 34.36, 39.62], "category_id": 40, "id": 632745}, {"segmentation": [[170.41, 238.01, 180.02, 231.12, 185.43, 226.44, 195.28, 227.18, 198.23, 232.35, 198.48, 241.21, 193.31, 246.14, 182.23, 248.35, 175.83, 248.35, 171.15, 243.43, 169.68, 236.78]], "area": 456.18584999999956, "iscrowd": 0, "image_id": 84653, "bbox": [169.68, 226.44, 28.8, 21.91], "category_id": 40, "id": 632925}, {"segmentation": [[300.36, 281.92, 284.68, 285.75, 271.67, 289.57, 266.69, 286.9, 258.66, 280.01, 257.51, 275.03, 250.62, 267.0, 242.59, 259.35, 239.53, 252.46, 238.76, 240.98, 241.44, 232.95, 245.65, 227.21, 248.33, 224.53, 250.24, 221.85, 254.07, 222.62, 259.81, 226.44, 263.25, 223.76, 260.19, 216.88, 255.98, 209.99, 255.6, 206.16, 257.51, 189.71, 264.78, 180.53, 277.02, 179.0, 316.05, 220.7, 321.79, 229.89, 319.11, 236.01, 314.9, 239.83, 312.99, 239.83, 312.99, 245.96, 308.4, 250.55, 307.25, 258.2, 309.93, 267.0, 307.25, 277.71, 301.89, 283.45]], "area": 5740.5647500000005, "iscrowd": 0, "image_id": 456433, "bbox": [238.76, 179.0, 83.03, 110.57], "category_id": 40, "id": 632981}, {"segmentation": [[372.82, 324.96, 370.94, 323.59, 364.61, 326.5, 365.81, 324.11, 360.33, 320.34, 362.9, 313.85, 352.98, 307.52, 348.2, 298.8, 349.22, 289.06, 359.82, 287.01, 371.1, 287.86, 379.31, 292.99, 383.41, 304.96, 380.85, 313.16, 382.22, 315.56, 372.47, 324.11]], "area": 918.6559500000005, "iscrowd": 0, "image_id": 70288, "bbox": [348.2, 287.01, 35.21, 39.49], "category_id": 40, "id": 633183}, {"segmentation": [[343.94, 247.54, 351.42, 267.72, 340.36, 281.06, 318.88, 283.99, 303.59, 275.86, 284.06, 259.91, 293.17, 256.33, 300.98, 252.75, 286.99, 252.75, 286.99, 248.19, 299.35, 248.19, 312.05, 249.17, 330.92, 247.22, 342.96, 246.57]], "area": 1760.6734500000018, "iscrowd": 0, "image_id": 429144, "bbox": [284.06, 246.57, 67.36, 37.42], "category_id": 40, "id": 633446}, {"segmentation": [[350.64, 262.61, 361.9, 263.15, 369.4, 270.65, 371.55, 272.8, 367.26, 276.55, 359.75, 282.45, 357.07, 285.66, 354.39, 289.42, 349.57, 285.13, 346.35, 278.16, 345.28, 266.9, 346.35, 262.61, 351.18, 263.15]], "area": 435.41425000000027, "iscrowd": 0, "image_id": 60771, "bbox": [345.28, 262.61, 26.27, 26.81], "category_id": 40, "id": 634111}, {"segmentation": [[169.23, 225.46, 170.54, 197.23, 173.17, 184.09, 179.74, 175.56, 187.62, 176.21, 196.15, 180.81, 200.75, 182.78, 202.72, 190.66, 196.15, 219.55, 193.53, 226.12, 179.08, 228.74, 167.92, 228.09]], "area": 1397.2597000000007, "iscrowd": 0, "image_id": 50429, "bbox": [167.92, 175.56, 34.8, 53.18], "category_id": 40, "id": 635031}, {"segmentation": [[514.96, 250.46, 514.96, 244.12, 512.17, 234.23, 505.07, 234.48, 499.49, 233.47, 496.95, 236.77, 490.11, 238.03, 484.02, 242.34, 478.44, 248.94, 481.74, 254.77, 491.88, 255.53, 495.94, 260.09, 502.28, 258.06, 511.66, 264.15, 513.94, 249.7]], "area": 706.4042000000007, "iscrowd": 0, "image_id": 203847, "bbox": [478.44, 233.47, 36.52, 30.68], "category_id": 40, "id": 635071}, {"segmentation": [[450.56, 96.92, 455.41, 103.21, 458.65, 108.07, 454.69, 112.02, 442.29, 112.02, 428.99, 106.27, 426.3, 99.62, 428.27, 100.34, 434.74, 102.86, 436.0, 97.28, 445.17, 94.41, 450.56, 92.79]], "area": 361.9844499999997, "iscrowd": 0, "image_id": 383605, "bbox": [426.3, 92.79, 32.35, 19.23], "category_id": 40, "id": 635192}, {"segmentation": [[310.63, 350.47, 304.71, 349.18, 300.07, 342.75, 296.21, 335.28, 294.67, 329.36, 295.7, 324.21, 292.86, 320.61, 294.92, 316.23, 297.5, 313.91, 303.42, 312.11, 310.63, 304.65, 315.0, 299.75, 322.47, 297.95, 328.65, 296.67, 333.8, 299.75, 336.63, 304.9, 335.86, 312.63, 330.45, 318.03, 327.36, 323.95, 326.85, 334.51, 324.27, 340.43, 319.9, 344.29, 315.52, 349.44]], "area": 1449.4279999999999, "iscrowd": 0, "image_id": 550028, "bbox": [292.86, 296.67, 43.77, 53.8], "category_id": 40, "id": 635529}, {"segmentation": [[413.0, 159.7, 415.61, 162.06, 416.73, 162.68, 417.72, 163.18, 417.23, 165.17, 415.24, 171.02, 409.89, 177.36, 406.15, 179.35, 400.56, 179.11, 399.93, 173.51, 399.81, 168.53, 397.7, 165.79, 395.33, 161.94, 395.33, 157.83, 399.06, 156.96, 403.54, 157.09, 408.89, 158.46, 410.01, 159.2]], "area": 336.1314500000002, "iscrowd": 0, "image_id": 50429, "bbox": [395.33, 156.96, 22.39, 22.39], "category_id": 40, "id": 635851}, {"segmentation": [[414.91, 271.11, 416.79, 276.62, 416.92, 279.03, 414.37, 281.99, 414.64, 283.19, 416.25, 285.88, 418.13, 288.43, 420.68, 288.56, 425.25, 290.84, 428.47, 291.92, 431.69, 286.28, 428.07, 277.69, 428.07, 275.01, 425.51, 272.05, 419.88, 266.28, 416.66, 265.48, 414.78, 266.28, 413.84, 268.7, 415.45, 271.65]], "area": 283.25834999999995, "iscrowd": 0, "image_id": 524522, "bbox": [413.84, 265.48, 17.85, 26.44], "category_id": 40, "id": 636119}, {"segmentation": [[249.59, 329.98, 261.7, 331.53, 269.15, 337.12, 277.85, 341.47, 269.15, 354.2, 261.08, 355.44, 252.7, 350.16, 246.18, 336.5, 245.25, 325.94, 250.84, 314.15, 261.08, 307.63, 271.64, 311.35, 271.02, 313.84, 266.05, 313.84, 258.91, 313.53, 250.84, 319.42]], "area": 656.8946, "iscrowd": 0, "image_id": 184877, "bbox": [245.25, 307.63, 32.6, 47.81], "category_id": 40, "id": 636233}, {"segmentation": [[239.81, 308.2, 229.3, 295.94, 227.55, 284.27, 231.05, 277.84, 240.39, 277.26, 249.15, 286.02, 253.82, 300.61, 243.31, 309.37]], "area": 555.6749, "iscrowd": 0, "image_id": 60771, "bbox": [227.55, 277.26, 26.27, 32.11], "category_id": 40, "id": 636459}, {"segmentation": [[264.11, 301.62, 255.34, 307.46, 242.81, 310.39, 231.95, 298.28, 227.36, 291.59, 225.69, 285.33, 229.86, 279.9, 236.55, 271.54, 244.48, 261.1, 254.92, 246.07, 267.45, 237.3, 284.16, 238.13, 290.01, 243.14, 299.2, 246.9, 304.63, 251.91, 305.46, 258.18, 312.56, 261.1, 314.65, 271.96, 309.22, 281.57, 295.44, 289.5, 285.0, 295.35, 277.06, 296.19, 269.13, 298.28, 267.45, 299.95]], "area": 3976.405899999999, "iscrowd": 0, "image_id": 397184, "bbox": [225.69, 237.3, 88.96, 73.09], "category_id": 40, "id": 636621}, {"segmentation": [[457.98, 267.23, 448.76, 273.61, 451.25, 278.93, 455.85, 282.12, 455.85, 284.95, 442.38, 287.43, 427.5, 297.0, 421.47, 301.97, 413.32, 302.32, 404.46, 299.84, 392.76, 284.24, 392.76, 278.22, 393.82, 267.23, 395.95, 259.08, 400.2, 256.6, 418.99, 252.7, 426.79, 253.05, 430.33, 256.6, 444.16, 259.43, 451.6, 260.85, 455.85, 268.29]], "area": 2267.5487000000007, "iscrowd": 0, "image_id": 502517, "bbox": [392.76, 252.7, 65.22, 49.62], "category_id": 40, "id": 636690}, {"segmentation": [[582.32, 151.33, 596.3, 146.13, 601.14, 147.92, 606.87, 162.44, 606.69, 168.0, 608.13, 181.08, 605.08, 189.33, 594.68, 207.61, 584.47, 215.32, 572.46, 211.55, 553.46, 202.77, 549.33, 192.91, 559.37, 173.91, 571.56, 154.2, 575.15, 152.04]], "area": 2724.31955, "iscrowd": 0, "image_id": 36113, "bbox": [549.33, 146.13, 58.8, 69.19], "category_id": 40, "id": 637046}, {"segmentation": [[211.76, 501.69, 212.41, 503.73, 218.23, 502.71, 224.14, 498.64, 232.37, 496.7, 232.92, 494.3, 228.21, 488.66, 221.09, 485.52, 214.9, 483.03, 211.67, 483.67, 210.47, 484.97, 213.33, 490.33]], "area": 275.76519999999977, "iscrowd": 0, "image_id": 41577, "bbox": [210.47, 483.03, 22.45, 20.7], "category_id": 40, "id": 637316}, {"segmentation": [[476.66, 343.18, 472.13, 348.16, 484.81, 353.14, 484.81, 358.12, 473.95, 354.5, 470.32, 359.02, 469.87, 362.65, 471.23, 368.08, 479.83, 370.35, 483.46, 365.82, 492.97, 365.36, 492.97, 370.35, 492.97, 371.7, 503.38, 374.42, 507.91, 371.7, 510.17, 368.08, 508.36, 364.46, 506.1, 360.38, 495.54, 357.54, 492.82, 350.29, 507.31, 348.48, 523.61, 343.95, 529.05, 347.58, 531.76, 346.67, 532.67, 350.29, 535.84, 353.92, 546.71, 351.2, 547.61, 347.58, 545.35, 341.24, 540.82, 339.88, 534.93, 338.97, 533.12, 337.61, 539.91, 333.54, 541.73, 332.18, 535.39, 327.65, 529.05, 323.58, 518.18, 320.41, 510.03, 327.2, 503.69, 330.82, 510.93, 334.44, 514.56, 339.42, 508.67, 342.59, 506.41, 343.05, 504.14, 344.41, 495.54, 344.41, 491.01, 344.41, 486.48, 345.31, 480.59, 344.86, 477.88, 343.95]], "area": 1489.3241000000007, "iscrowd": 0, "image_id": 289693, "bbox": [469.87, 320.41, 77.74, 54.01], "category_id": 41, "id": 637805}, {"segmentation": [[179.66, 219.67, 220.85, 216.64, 259.61, 213.62, 256.58, 221.49, 259.01, 225.12, 258.4, 231.79, 254.77, 234.82, 248.71, 232.39, 242.05, 229.97, 241.44, 225.12, 237.81, 220.28, 196.02, 223.91, 197.23, 232.39, 195.41, 236.03, 190.56, 236.03, 182.08, 232.39, 180.87, 228.76, 181.48, 223.91]], "area": 788.0667500000004, "iscrowd": 0, "image_id": 289693, "bbox": [179.66, 213.62, 79.95, 22.41], "category_id": 41, "id": 637985}, {"segmentation": [[149.77, 320.59, 165.69, 313.77, 204.36, 316.04, 244.86, 318.77, 245.77, 330.6, 240.31, 334.7, 164.33, 331.06, 165.24, 336.52, 163.87, 343.34, 152.5, 344.25, 153.86, 338.79, 157.05, 332.88, 152.95, 327.42, 150.22, 325.6, 150.22, 321.96, 151.59, 321.05], [278.52, 319.68, 267.6, 333.33, 280.8, 338.34, 274.88, 344.25, 274.88, 347.89, 281.71, 346.98, 283.98, 341.52, 288.08, 334.7, 292.17, 330.15, 293.54, 326.05, 293.08, 320.59, 287.62, 317.41, 283.07, 316.04, 277.61, 316.95]], "area": 2081.7387499999995, "iscrowd": 0, "image_id": 203989, "bbox": [149.77, 313.77, 143.77, 34.12], "category_id": 41, "id": 638035}, {"segmentation": [[372.35, 404.72, 397.28, 406.16, 403.03, 417.66, 415.97, 422.46, 401.59, 425.81, 406.39, 433.01, 401.59, 438.28, 398.72, 451.0, 388.16, 441.88, 380.06, 431.74, 356.75, 423.64, 358.77, 404.38, 363.84, 402.35, 377.02, 402.35, 388.16, 402.35], [431.74, 403.37, 512.82, 411.47, 508.77, 426.68, 507.76, 433.77, 510.8, 437.82, 499.65, 439.85, 493.57, 435.8, 489.51, 424.65, 424.65, 424.65, 430.73, 405.39, 431.74, 401.34]], "area": 3115.953999999997, "iscrowd": 0, "image_id": 288659, "bbox": [356.75, 401.34, 156.07, 49.66], "category_id": 41, "id": 638440}, {"segmentation": [[296.04, 583.53, 294.33, 597.22, 282.35, 600.64, 273.8, 593.8, 265.24, 593.8, 244.71, 597.22, 236.15, 588.66, 242.99, 583.53, 227.59, 576.68, 207.06, 561.28, 191.66, 552.73, 186.52, 569.84, 176.26, 557.86, 183.1, 545.88, 172.83, 533.9, 176.26, 521.93, 200.21, 532.19, 225.88, 564.71, 266.95, 564.71, 301.18, 576.68]], "area": 3040.680549999995, "iscrowd": 0, "image_id": 128770, "bbox": [172.83, 521.93, 128.35, 78.71], "category_id": 41, "id": 638713}, {"segmentation": [[370.79, 205.88, 396.19, 185.57, 404.66, 190.65, 408.04, 202.5, 404.66, 216.04, 397.88, 224.51, 396.19, 232.97, 394.5, 238.05, 389.42, 238.05, 380.95, 232.97, 367.41, 249.9, 323.39, 280.38, 330.16, 282.07, 326.77, 288.85, 326.77, 293.93, 320.0, 293.93, 316.61, 290.54, 289.52, 293.93, 284.44, 288.85, 284.44, 282.07, 286.14, 280.38, 287.83, 276.99, 292.91, 287.15, 296.3, 290.54, 306.46, 283.77, 308.15, 276.99, 308.15, 268.53, 306.46, 261.76, 306.46, 258.37, 343.7, 224.51, 347.09, 222.81, 357.25, 226.2, 367.41, 227.89, 372.49, 229.59, 379.26, 227.89, 384.34, 222.81, 384.34, 219.43, 380.95, 216.04, 379.26, 210.96, 374.18, 207.58]], "area": 3708.024750000004, "iscrowd": 0, "image_id": 202774, "bbox": [284.44, 185.57, 123.6, 108.36], "category_id": 41, "id": 638962}, {"segmentation": [[228.73, 276.19, 229.86, 277.13, 228.35, 280.71, 232.31, 283.54, 237.02, 282.03, 237.4, 278.07, 234.76, 276.57, 235.14, 275.44, 249.46, 277.13, 280.94, 276.94, 281.32, 278.45, 278.68, 279.02, 278.3, 282.22, 280.37, 284.48, 285.27, 284.29, 288.86, 283.16, 290.17, 280.71, 288.67, 279.39, 287.54, 278.26, 289.04, 276.94, 291.49, 276.38, 291.12, 274.12, 277.55, 275.44, 273.4, 275.44, 244.94, 273.36, 242.49, 273.17, 228.17, 272.99, 227.03, 274.49]], "area": 280.1569499999999, "iscrowd": 0, "image_id": 385644, "bbox": [227.03, 272.99, 64.46, 11.49], "category_id": 41, "id": 639145}, {"segmentation": [[106.38, 113.59, 136.97, 124.22, 175.53, 201.35, 203.46, 263.85, 151.6, 250.55, 146.28, 247.89, 128.99, 253.21, 123.67, 231.94, 139.63, 229.28, 107.71, 161.46, 94.41, 165.45, 87.77, 153.48, 97.07, 148.16, 98.4, 140.18, 93.09, 121.56]], "area": 7202.389100000002, "iscrowd": 0, "image_id": 216075, "bbox": [87.77, 113.59, 115.69, 150.26], "category_id": 41, "id": 639149}, {"segmentation": [[359.44, 316.03, 369.05, 299.92, 401.88, 270.18, 402.5, 272.04, 404.05, 276.38, 406.22, 277.31, 409.31, 276.69, 414.27, 276.38, 416.75, 278.54, 412.72, 282.88, 409.31, 286.91, 406.53, 286.29, 402.5, 286.91, 367.5, 313.86, 371.21, 315.72, 370.28, 318.5, 368.43, 320.98, 366.57, 323.46, 365.33, 327.49, 365.33, 333.37, 364.09, 336.47, 360.06, 338.02, 356.04, 331.51, 357.58, 327.49, 357.89, 323.46, 356.66, 322.84, 351.7, 328.73, 348.6, 331.82, 341.48, 333.37, 333.73, 331.51, 332.8, 327.18, 337.14, 321.6, 340.55, 318.81, 347.67, 314.17, 351.39, 322.53, 353.25, 322.22, 356.35, 319.43, 360.37, 315.41]], "area": 1147.9276499999994, "iscrowd": 0, "image_id": 35535, "bbox": [332.8, 270.18, 83.95, 67.84], "category_id": 41, "id": 640031}, {"segmentation": [[108.81, 497.66, 144.34, 474.49, 158.25, 461.36, 168.29, 466.76, 182.19, 467.54, 185.28, 456.72, 180.65, 448.22, 174.47, 445.13, 176.02, 426.6, 247.85, 330.81, 274.12, 333.13, 284.93, 323.86, 281.07, 313.82, 269.48, 303.0, 277.21, 259.75, 271.8, 256.66, 269.48, 258.2, 247.08, 310.73, 212.32, 355.53, 189.92, 389.52, 146.66, 453.63, 133.53, 469.08, 105.72, 493.03]], "area": 4591.160600000001, "iscrowd": 0, "image_id": 154424, "bbox": [105.72, 256.66, 179.21, 241.0], "category_id": 41, "id": 640143}, {"segmentation": [[532.06, 162.05, 509.7, 163.7, 503.9, 173.64, 503.9, 151.28, 494.79, 130.58, 486.51, 124.78, 474.92, 133.06, 487.34, 145.48, 493.97, 157.08, 489.82, 196.83, 487.34, 207.59, 487.34, 244.86, 486.51, 287.92, 485.68, 308.63, 488.17, 324.36, 479.89, 349.21, 474.09, 369.08, 473.26, 384.82, 480.72, 389.79, 488.17, 384.82, 498.93, 343.41, 503.9, 336.79, 521.29, 350.86, 527.09, 322.71, 525.44, 299.52, 498.11, 304.49, 503.9, 219.19, 498.93, 186.89, 505.56, 194.34, 513.01, 218.36, 530.4, 218.36, 533.72, 208.42, 527.92, 189.37, 537.03, 174.47]], "area": 6205.808800000001, "iscrowd": 0, "image_id": 487322, "bbox": [473.26, 124.78, 63.77, 265.01], "category_id": 41, "id": 640220}, {"segmentation": [[243.08, 285.67, 269.72, 301.16, 292.33, 316.03, 324.24, 337.71, 346.85, 353.2, 342.83, 358.15, 336.94, 356.29, 328.89, 350.1, 324.24, 346.07, 315.26, 340.5, 309.06, 340.5, 306.89, 342.05, 302.25, 342.66, 300.39, 344.21, 298.84, 347.0, 299.77, 350.1, 301.01, 351.65, 308.75, 351.96, 314.02, 354.13, 315.57, 363.2, 310.3, 370.94, 305.04, 372.49, 299.46, 372.8, 295.12, 369.7, 292.33, 366.61, 291.72, 363.82, 292.95, 361.03, 292.64, 357.31, 274.99, 343.37, 263.84, 343.99, 257.02, 337.8, 256.71, 329.12, 261.98, 323.55, 266.32, 320.76, 273.44, 321.69, 274.99, 322.31, 278.09, 329.43, 277.78, 333.77, 277.16, 336.25, 279.63, 339.35, 283.04, 339.66, 286.76, 333.46, 287.38, 329.12, 281.8, 323.86, 275.61, 322.31, 271.27, 320.14, 262.29, 312.71, 255.16, 308.06, 241.53, 302.18]], "area": 2619.0727000000006, "iscrowd": 0, "image_id": 576322, "bbox": [241.53, 285.67, 105.32, 87.13], "category_id": 41, "id": 640325}, {"segmentation": [[208.71, 326.05, 199.09, 336.63, 201.98, 359.71, 195.24, 349.13, 195.24, 338.55, 183.7, 343.36, 186.59, 349.13, 197.17, 366.44, 197.17, 377.99, 188.51, 379.91, 187.55, 366.44, 179.86, 366.44, 173.12, 374.14, 190.44, 380.87, 212.56, 400.11, 226.02, 406.84, 230.83, 352.02, 213.52, 326.05]], "area": 2322.5500000000006, "iscrowd": 0, "image_id": 1431, "bbox": [173.12, 326.05, 57.71, 80.79], "category_id": 41, "id": 640412}, {"segmentation": [[399.82, 508.68, 405.57, 500.05, 409.89, 487.11, 412.76, 466.98, 417.08, 446.84, 424.27, 413.76, 425.71, 318.84, 412.76, 321.72, 398.38, 324.59, 398.38, 327.47, 398.38, 334.66, 394.07, 354.8, 385.44, 376.37, 384.0, 406.57, 379.69, 423.83, 378.25, 438.21, 360.99, 491.43, 365.3, 520.19, 369.62, 521.63, 373.93, 521.63, 385.44, 521.63, 396.94, 520.19]], "area": 7719.189849999997, "iscrowd": 0, "image_id": 128770, "bbox": [360.99, 318.84, 64.72, 202.79], "category_id": 41, "id": 640874}, {"segmentation": [[200.17, 298.21, 185.01, 288.43, 179.63, 289.4, 175.23, 293.32, 184.52, 306.03, 193.33, 314.84, 200.17, 319.73, 204.57, 324.13, 203.6, 327.06, 196.75, 330.0, 197.24, 332.44, 203.6, 340.76, 210.93, 336.36, 211.42, 330.49, 218.76, 327.55, 247.61, 338.8, 291.14, 358.85, 295.05, 363.74, 297.01, 366.19, 295.54, 377.44, 300.43, 380.37, 306.79, 378.9, 308.26, 373.53, 305.32, 369.12, 308.26, 366.19, 318.04, 371.57, 324.4, 375.97, 335.65, 375.48, 345.43, 371.08, 348.36, 367.17, 348.36, 363.25, 336.62, 353.96, 316.08, 354.45, 309.72, 347.6, 307.28, 344.18, 230.98, 311.41, 222.18, 316.3, 210.44, 316.3, 206.04, 312.88]], "area": 3525.1215499999994, "iscrowd": 0, "image_id": 554674, "bbox": [175.23, 288.43, 173.13, 91.94], "category_id": 41, "id": 640902}, {"segmentation": [[316.63, 554.95, 320.0, 575.16, 313.26, 581.89, 303.16, 581.89, 296.42, 571.79, 296.42, 568.42, 249.26, 568.42, 245.89, 581.89, 235.79, 581.89, 229.05, 565.05, 222.32, 558.32, 218.95, 551.58, 225.68, 541.47, 242.53, 507.79, 262.74, 480.84, 269.47, 504.42, 266.11, 514.53, 276.21, 524.63, 293.05, 521.26, 303.16, 517.89, 313.26, 514.53, 316.63, 504.42, 316.63, 490.95, 316.63, 477.47, 323.37, 470.74, 323.37, 460.63, 313.26, 453.89, 306.53, 447.16, 306.53, 440.42, 313.26, 437.05, 326.74, 433.68, 346.95, 440.42, 353.68, 447.16, 353.68, 464.0, 346.95, 477.47, 346.95, 484.21, 350.32, 490.95, 353.68, 501.05, 350.32, 507.79, 343.58, 517.89, 340.21, 517.89, 333.47, 517.89, 333.47, 514.53, 326.74, 524.63, 316.63, 544.84, 313.26, 554.95]], "area": 8498.147799999999, "iscrowd": 0, "image_id": 561015, "bbox": [218.95, 433.68, 134.73, 148.21], "category_id": 41, "id": 641470}, {"segmentation": [[107.21, 340.19, 105.32, 344.63, 116.71, 349.06, 142.67, 349.69, 146.46, 349.69, 146.46, 343.36, 142.03, 340.83, 122.41, 341.46, 107.85, 340.83]], "area": 304.7664000000008, "iscrowd": 0, "image_id": 348044, "bbox": [105.32, 340.19, 41.14, 9.5], "category_id": 41, "id": 642295}, {"segmentation": [[272.9, 218.64, 336.54, 206.77, 353.8, 227.27, 373.21, 217.56, 377.53, 243.45, 381.84, 284.43, 382.92, 288.75, 216.81, 315.72, 224.36, 287.67, 235.15, 272.57], [173.66, 241.29, 173.66, 261.78, 163.96, 288.75, 151.01, 325.42, 153.17, 328.66, 103.55, 317.87, 84.13, 293.06, 84.13, 268.25, 102.47, 249.92, 153.17, 243.45], [431.46, 192.75, 487.55, 180.88, 511.28, 186.28, 518.83, 222.95, 498.34, 257.47, 456.27, 275.81, 440.09, 275.81, 439.01, 220.79, 427.15, 208.93]], "area": 23451.539750000007, "iscrowd": 0, "image_id": 538682, "bbox": [84.13, 180.88, 434.7, 147.78], "category_id": 41, "id": 642414}, {"segmentation": [[400.01, 336.18, 215.5, 486.89, 191.55, 522.1, 326.77, 524.92, 422.55, 424.92, 405.64, 409.42, 404.24, 396.75, 422.55, 389.71, 433.81, 386.89, 429.59, 382.66, 443.67, 382.66, 411.28, 336.18]], "area": 20549.257199999996, "iscrowd": 0, "image_id": 275917, "bbox": [191.55, 336.18, 252.12, 188.74], "category_id": 41, "id": 642651}, {"segmentation": [[142.7, 453.93, 197.75, 306.74, 197.75, 278.65, 189.89, 262.92, 173.03, 274.16, 166.29, 285.39, 155.06, 267.42, 128.09, 332.58, 94.38, 431.46, 86.52, 450.56, 86.52, 461.8, 113.48, 474.16, 138.2, 466.29, 141.57, 450.56]], "area": 11153.174700000001, "iscrowd": 0, "image_id": 45949, "bbox": [86.52, 262.92, 111.23, 211.24], "category_id": 41, "id": 643324}, {"segmentation": [[489.66, 262.34, 534.66, 283.94, 561.65, 293.54, 582.65, 303.14, 583.85, 313.93, 558.05, 316.33, 538.26, 305.54, 535.86, 311.54, 543.05, 315.13, 544.25, 320.53, 536.46, 323.53, 529.86, 322.93, 528.66, 321.73, 527.46, 317.53, 527.46, 314.53, 522.66, 308.54, 519.66, 305.54, 516.06, 300.74, 515.46, 300.14, 516.66, 294.74, 512.46, 293.54, 505.86, 286.94, 498.06, 282.74, 492.66, 281.54, 491.46, 280.94, 489.66, 280.34, 486.07, 277.94, 487.86, 264.74]], "area": 2194.5781, "iscrowd": 0, "image_id": 576322, "bbox": [486.07, 262.34, 97.78, 61.19], "category_id": 41, "id": 643360}, {"segmentation": [[92.49, 468.4, 112.94, 467.2, 121.6, 477.06, 121.6, 490.77, 117.99, 498.47, 104.04, 513.38, 113.42, 510.01, 117.99, 510.98, 119.91, 514.83, 119.43, 523.24, 115.1, 527.33, 110.05, 527.57, 105.72, 525.41, 94.9, 523.97, 79.99, 546.33, 77.1, 549.22, 60.02, 551.14, 60.26, 554.27, 71.57, 558.12, 74.94, 553.79, 83.11, 553.07, 86.72, 560.04, 84.08, 568.22, 74.45, 569.67, 72.29, 566.3, 36.21, 569.42, 35.01, 573.99, 27.07, 574.24, 23.7, 569.42, 23.7, 565.34, 29.24, 558.84, 36.21, 558.84, 38.38, 562.69, 50.4, 558.12, 42.22, 553.31, 16.97, 555.47, 26.35, 537.68, 44.63, 511.7, 55.69, 500.63, 67.48, 478.27, 79.51, 471.77]], "area": 5880.4289499999995, "iscrowd": 0, "image_id": 128770, "bbox": [16.97, 467.2, 104.63, 107.04], "category_id": 41, "id": 643818}, {"segmentation": [[10.84, 523.78, 131.24, 459.96, 179.41, 437.08, 195.06, 423.84, 190.24, 408.18, 178.2, 406.98, 170.98, 402.16, 160.14, 398.55, 154.12, 406.98, 137.27, 399.76, 134.86, 393.73, 126.43, 393.73, 122.82, 402.16, 131.24, 411.8, 26.49, 467.18, 12.04, 467.18, 2.41, 469.59, 2.41, 517.76]], "area": 8975.456449999994, "iscrowd": 0, "image_id": 275917, "bbox": [2.41, 393.73, 192.65, 130.05], "category_id": 41, "id": 644387}, {"segmentation": [[332.99, 317.47, 299.44, 298.3, 263.49, 278.53, 246.71, 274.93, 230.53, 278.53, 220.35, 296.5, 219.75, 315.67, 243.71, 335.45, 256.3, 346.23, 258.69, 351.62, 270.68, 352.82, 315.61, 377.99, 349.77, 397.76, 358.15, 406.75, 364.15, 408.54, 371.94, 406.75, 388.11, 408.54, 408.48, 388.77, 410.28, 373.19, 374.33, 345.03, 354.56, 333.05, 343.77, 342.64, 338.38, 345.03, 332.99, 346.23, 328.8, 343.24, 327.0, 337.24, 327.6, 330.65, 330.59, 328.26, 332.39, 318.07]], "area": 11203.30595, "iscrowd": 0, "image_id": 365654, "bbox": [219.75, 274.93, 190.53, 133.61], "category_id": 41, "id": 644667}, {"segmentation": [[362.63, 396.09, 418.85, 450.33, 433.64, 467.1, 452.38, 483.87, 453.36, 489.78, 432.65, 494.72, 429.69, 500.63, 418.85, 500.63, 412.93, 494.72, 359.67, 513.45, 355.73, 511.48, 359.67, 499.65, 363.62, 498.66, 283.73, 414.83, 258.09, 389.19, 252.17, 394.12, 249.21, 403.98, 240.34, 407.93, 230.47, 401.02, 228.5, 391.16, 238.36, 383.27, 247.24, 384.26, 233.43, 368.48, 216.67, 338.89, 214.69, 317.19, 224.56, 301.41, 235.4, 295.49, 250.2, 294.51, 269.92, 306.34, 334.03, 368.48, 333.04, 377.35, 324.17, 384.26, 320.22, 385.24, 321.21, 399.05, 331.07, 405.95, 343.89, 406.94, 354.74, 405.95, 360.66, 401.02]], "area": 18103.728300000002, "iscrowd": 0, "image_id": 14960, "bbox": [214.69, 294.51, 238.67, 218.94], "category_id": 41, "id": 644995}, {"segmentation": [[229.65, 475.15, 240.76, 389.07, 249.09, 374.26, 254.65, 369.63, 263.9, 367.78, 273.16, 368.71, 277.78, 370.56, 286.12, 375.19, 287.04, 383.52, 296.3, 421.47]], "area": 4117.764300000003, "iscrowd": 0, "image_id": 275917, "bbox": [229.65, 367.78, 66.65, 107.37], "category_id": 41, "id": 646045}, {"segmentation": [[226.39, 355.99, 231.99, 331.54, 232.5, 325.43, 235.05, 322.88, 231.99, 317.28, 227.92, 315.24, 225.88, 309.63, 230.46, 306.07, 235.05, 305.05, 238.61, 306.58, 241.16, 309.63, 245.75, 311.16, 252.88, 306.07, 283.96, 269.9, 299.24, 253.09, 303.32, 246.97, 297.71, 244.42, 297.71, 237.8, 294.65, 235.25, 293.13, 230.16, 295.16, 226.08, 300.26, 224.56, 304.84, 227.1, 306.37, 233.22, 309.43, 236.27, 322.16, 223.03, 337.96, 216.91, 348.66, 216.4, 350.69, 218.95, 344.07, 230.16, 323.69, 242.9, 305.35, 270.41, 273.77, 308.11, 253.39, 329.5, 244.22, 345.3, 230.46, 361.6, 226.9, 359.05, 226.39, 356.5]], "area": 3355.0669000000016, "iscrowd": 0, "image_id": 151322, "bbox": [225.88, 216.4, 124.81, 145.2], "category_id": 41, "id": 646192}, {"segmentation": [[146.69, 195.92, 154.33, 199.47, 150.24, 202.47, 145.32, 210.11, 142.05, 207.93, 139.86, 204.11, 141.5, 201.92, 142.05, 199.74, 143.41, 198.92, 146.14, 195.92], [169.62, 206.29, 181.09, 211.75, 193.65, 217.21, 203.21, 221.58, 211.67, 225.4, 219.32, 229.77, 216.86, 235.23, 217.41, 240.69, 216.04, 242.33, 188.46, 232.23, 172.63, 224.86, 167.17, 224.31, 162.25, 227.86, 162.25, 232.5, 156.79, 233.05, 151.6, 228.68, 154.33, 225.68, 156.79, 224.59, 159.79, 221.86, 160.61, 219.12, 160.07, 217.21, 161.71, 213.39, 164.98, 209.02, 167.71, 206.29, 169.08, 206.02], [235.7, 236.87, 239.25, 239.06, 242.25, 238.51, 249.08, 240.69, 253.99, 242.33, 261.64, 246.16, 260.27, 248.34, 246.62, 245.34, 238.43, 243.7, 231.33, 242.61, 225.32, 240.69, 222.59, 237.96, 223.69, 235.78, 228.87, 238.24, 231.6, 238.24, 235.7, 239.33, 236.52, 237.96]], "area": 1282.3351500000003, "iscrowd": 0, "image_id": 539099, "bbox": [139.86, 195.92, 121.78, 52.42], "category_id": 41, "id": 646356}, {"segmentation": [[411.62, 342.08, 415.68, 344.94, 419.5, 346.49, 423.56, 346.49, 420.57, 349.0, 418.07, 348.17, 416.52, 349.96, 414.61, 349.36, 412.81, 347.93, 408.52, 346.97, 408.76, 343.63, 411.86, 343.51]], "area": 50.54340000000013, "iscrowd": 0, "image_id": 539099, "bbox": [408.52, 342.08, 15.04, 7.88], "category_id": 41, "id": 646438}, {"segmentation": [[187.34, 212.05, 171.85, 203.6, 156.82, 192.8, 150.72, 183.88, 147.9, 175.9, 160.58, 172.61, 177.95, 178.71, 231.47, 204.07, 233.35, 209.7, 228.66, 212.05]], "area": 1712.3246000000001, "iscrowd": 0, "image_id": 207110, "bbox": [147.9, 172.61, 85.45, 39.44], "category_id": 42, "id": 647204}, {"segmentation": [[335.49, 344.83, 364.18, 344.83, 380.39, 339.01, 375.41, 333.61, 349.63, 329.86, 268.54, 324.04, 228.21, 321.55, 206.17, 322.79, 167.09, 324.46, 150.87, 331.11, 126.76, 329.86, 113.45, 332.36, 68.13, 333.61, 0.0, 333.61, 0.0, 388.07, 28.21, 387.66, 51.5, 383.5, 102.64, 378.93, 142.56, 375.6, 182.47, 376.02, 236.94, 376.43, 243.18, 371.86, 261.48, 360.63, 266.88, 355.64, 276.03, 349.82, 284.35, 346.08, 297.23, 342.75, 306.38, 341.51, 326.34, 343.17], [444.43, 338.18, 453.58, 347.74, 486.84, 342.34, 587.46, 322.79, 640.0, 310.74, 639.44, 280.38, 623.22, 292.03, 590.37, 297.43, 583.72, 303.25, 578.73, 309.49, 565.43, 310.32, 546.3, 314.06, 518.02, 314.48, 488.09, 318.22, 479.36, 312.82, 453.58, 319.47, 443.18, 322.79, 443.6, 327.78]], "area": 19451.025400000002, "iscrowd": 0, "image_id": 424536, "bbox": [0.0, 280.38, 640.0, 107.69], "category_id": 42, "id": 647358}, {"segmentation": [[332.82, 276.51, 413.5, 270.62, 503.43, 266.42, 557.22, 265.58, 518.56, 293.32, 447.96, 316.01, 400.05, 316.01, 331.98, 306.76, 285.75, 288.27, 288.27, 278.19]], "area": 8805.970599999995, "iscrowd": 0, "image_id": 21049, "bbox": [285.75, 265.58, 271.47, 50.43], "category_id": 42, "id": 647509}, {"segmentation": [[360.39, 224.82, 339.96, 204.94, 324.21, 187.54, 312.89, 171.24, 307.09, 161.03, 302.95, 152.74, 297.15, 136.45, 294.66, 127.33, 294.66, 121.81, 293.28, 116.56, 316.21, 121.53, 339.4, 127.33, 351.0, 131.2, 346.03, 141.14, 345.2, 147.77, 347.97, 153.57, 353.49, 158.26, 366.19, 163.24, 386.35, 172.35, 393.26, 177.32, 395.19, 196.65, 398.23, 202.18, 411.49, 207.7, 433.31, 215.16, 457.06, 223.72, 463.13, 230.07, 467.28, 232.28, 468.93, 232.0, 470.31, 236.15, 470.31, 255.76, 470.31, 262.11, 470.31, 266.53, 475.56, 267.91, 480.81, 265.7, 485.78, 262.38, 488.54, 252.44, 488.54, 244.16, 488.26, 241.39, 491.03, 237.53, 492.96, 230.62, 492.68, 224.27, 489.65, 222.06, 481.64, 220.68, 477.49, 216.26, 475.84, 212.95, 472.25, 210.19, 469.21, 212.4, 461.48, 207.15, 450.43, 199.41, 443.8, 194.44, 438.55, 191.68, 422.81, 190.02, 420.88, 188.64, 420.05, 180.63, 420.6, 172.9, 422.81, 165.17, 447.94, 180.36, 477.49, 200.52, 505.39, 224.27, 524.44, 244.71, 539.36, 266.53, 542.95, 273.15, 535.49, 280.34, 528.31, 284.2, 523.89, 287.24, 518.09, 291.38, 513.12, 292.21, 505.94, 292.49, 491.86, 290.55, 482.74, 287.52, 442.42, 270.67]], "area": 13969.416499999996, "iscrowd": 0, "image_id": 429158, "bbox": [293.28, 116.56, 249.67, 175.93], "category_id": 42, "id": 647690}, {"segmentation": [[294.24, 220.72, 284.86, 206.52, 266.85, 196.38, 245.8, 178.12, 248.59, 168.73, 262.54, 171.52, 277.76, 176.09, 339.64, 207.54, 383.52, 233.91, 383.52, 245.32, 378.19, 250.14, 362.21, 249.89, 344.2, 234.42, 330.51, 225.03, 323.15, 220.72, 309.21, 217.68, 302.1, 217.43, 293.48, 219.46]], "area": 3296.4847499999983, "iscrowd": 0, "image_id": 434193, "bbox": [245.8, 168.73, 137.72, 81.41], "category_id": 42, "id": 649547}, {"segmentation": [[407.51, 226.62, 378.86, 228.26, 337.03, 232.55, 370.62, 248.35, 405.21, 232.87, 407.84, 229.25, 408.5, 226.62]], "area": 779.1893500000001, "iscrowd": 0, "image_id": 521452, "bbox": [337.03, 226.62, 71.47, 21.73], "category_id": 42, "id": 649655}, {"segmentation": [[366.55, 239.89, 326.25, 270.59, 276.35, 304.18, 243.73, 326.25, 257.16, 334.88, 306.1, 335.84, 349.28, 319.53, 391.5, 291.7, 431.8, 260.04, 439.47, 240.85, 457.71, 232.21, 449.07, 206.3, 421.24, 215.9, 385.74, 229.33, 402.05, 247.56, 385.74, 253.32, 391.5, 269.63, 354.07, 273.47, 362.71, 266.76, 371.35, 261.96, 372.31, 252.36, 367.51, 248.52, 367.51, 240.85]], "area": 9254.397249999996, "iscrowd": 0, "image_id": 234655, "bbox": [243.73, 206.3, 213.98, 129.54], "category_id": 42, "id": 649842}, {"segmentation": [[235.94, 175.74, 196.01, 145.49, 166.97, 123.72, 130.67, 89.84, 100.42, 87.42, 114.94, 121.3, 124.62, 144.28, 135.51, 157.59, 142.77, 175.74, 147.61, 185.42, 158.5, 205.99, 171.81, 227.77, 196.01, 260.44, 223.84, 279.8, 234.73, 284.64, 244.41, 291.9, 256.51, 289.48, 263.77, 281.01, 264.98, 267.7, 262.56, 243.5, 248.04, 208.41, 243.2, 184.21], [280.7, 227.77, 390.81, 329.4, 504.54, 441.93, 500.91, 449.19, 468.24, 452.82, 387.18, 416.52, 286.75, 322.14, 283.12, 307.63, 300.06, 307.63, 300.06, 289.48, 296.43, 284.64, 275.86, 255.6]], "area": 29221.088599999995, "iscrowd": 0, "image_id": 422744, "bbox": [100.42, 87.42, 404.12, 365.4], "category_id": 42, "id": 649870}, {"segmentation": [[402.34, 262.89, 377.58, 264.57, 351.98, 268.34, 335.2, 281.35, 330.58, 289.32, 344.43, 292.26, 362.89, 293.1, 399.82, 285.13, 417.86, 275.9, 423.32, 267.5, 420.38, 261.63, 414.09, 259.11, 404.44, 272.96, 390.59, 280.93, 386.81, 273.8, 393.53, 270.02]], "area": 1677.7439000000006, "iscrowd": 0, "image_id": 497709, "bbox": [330.58, 259.11, 92.74, 33.99], "category_id": 42, "id": 650029}, {"segmentation": [[467.75, 409.33, 498.87, 415.56, 527.77, 422.23, 536.89, 426.67, 537.11, 430.01, 533.78, 431.56, 528.89, 431.56, 514.88, 428.9, 485.09, 422.67, 481.08, 418.67, 476.19, 421.34, 472.41, 418.0, 468.86, 410.22]], "area": 601.9316999999994, "iscrowd": 0, "image_id": 454437, "bbox": [467.75, 409.33, 69.36, 22.23], "category_id": 42, "id": 650033}, {"segmentation": [[312.06, 118.47, 353.64, 145.93, 381.85, 190.48, 395.96, 211.27, 399.67, 226.11, 392.24, 231.31, 387.79, 232.05, 377.4, 220.17, 366.26, 197.9, 351.41, 194.19, 336.56, 197.16, 315.03, 179.34, 304.64, 155.59, 305.38, 137.03], [404.86, 229.83, 407.09, 246.16, 408.58, 253.58, 408.58, 265.46, 400.41, 271.4, 390.02, 269.91, 375.91, 258.78, 385.56, 252.1, 395.96, 239.48, 401.89, 236.51]], "area": 4875.99945, "iscrowd": 0, "image_id": 78213, "bbox": [304.64, 118.47, 103.94, 152.93], "category_id": 42, "id": 650088}, {"segmentation": [[190.85, 302.04, 210.23, 290.32, 221.04, 297.08, 223.75, 294.38, 220.59, 289.42, 223.75, 284.46, 254.4, 267.79, 262.06, 265.08, 268.37, 261.03, 272.42, 263.73, 269.27, 268.69, 241.78, 284.46, 228.26, 292.12, 221.49, 300.24, 213.83, 301.59, 207.52, 302.94, 197.16, 306.55, 192.2, 307.45, 191.75, 302.94]], "area": 718.9261499999999, "iscrowd": 0, "image_id": 484714, "bbox": [190.85, 261.03, 81.57, 46.42], "category_id": 42, "id": 650285}, {"segmentation": [[187.55, 218.04, 245.26, 225.73, 271.98, 217.43, 264.86, 215.34, 243.09, 218.69, 201.23, 217.43], [321.8, 190.22, 351.1, 181.85, 320.96, 195.24, 315.93, 189.8, 325.56, 188.55]], "area": 444.54554999999937, "iscrowd": 0, "image_id": 17591, "bbox": [187.55, 181.85, 163.55, 43.88], "category_id": 42, "id": 650516}, {"segmentation": [[92.3, 258.69, 92.67, 246.51, 96.73, 233.95, 112.61, 233.58, 117.04, 242.81, 95.99, 256.47], [83.81, 240.97, 83.07, 259.43, 81.6, 265.7, 57.6, 264.96, 55.76, 258.69, 58.34, 251.3]], "area": 863.0553499999996, "iscrowd": 0, "image_id": 394242, "bbox": [55.76, 233.58, 61.28, 32.12], "category_id": 42, "id": 650792}, {"segmentation": [[410.37, 206.3, 392.42, 209.82, 383.27, 212.99, 362.51, 215.8, 348.79, 216.86, 325.56, 226.71, 303.03, 237.97, 298.11, 245.36, 305.15, 248.18, 318.17, 254.87, 328.73, 258.38, 343.86, 262.26, 354.42, 264.02, 363.92, 266.83, 374.48, 267.89, 397.35, 266.48, 408.97, 265.78, 410.37, 265.78, 412.48, 265.78, 414.6, 254.16, 412.84, 246.77, 411.78, 241.84, 411.43, 234.1, 411.43, 226.71, 414.95, 205.95], [450.14, 202.43, 471.61, 203.48, 489.2, 205.24, 507.15, 209.47, 517.36, 215.1, 518.41, 218.97, 517.01, 226.71, 519.82, 233.75, 517.36, 240.08, 507.86, 245.36, 459.29, 261.2, 440.64, 266.48, 438.18, 266.48, 439.58, 256.98, 436.77, 246.77, 435.71, 240.79, 440.29, 230.23, 444.16, 209.82]], "area": 8641.23635, "iscrowd": 0, "image_id": 501575, "bbox": [298.11, 202.43, 221.71, 65.46], "category_id": 42, "id": 650997}, {"segmentation": [[374.36, 230.42, 364.72, 234.77, 357.15, 239.11, 355.26, 244.22, 378.14, 238.55, 389.1, 235.9, 397.04, 230.99, 403.85, 224.56, 407.82, 215.3, 409.33, 211.7, 401.2, 215.3, 393.26, 219.64, 385.13, 223.99, 383.43, 225.5, 382.67, 227.21, 382.67, 227.21, 383.05, 228.72, 384.38, 232.31, 380.59, 234.77, 379.65, 234.77, 377.76, 233.44, 373.41, 229.28]], "area": 467.45975000000044, "iscrowd": 0, "image_id": 104919, "bbox": [355.26, 211.7, 54.07, 32.52], "category_id": 42, "id": 651416}, {"segmentation": [[404.71, 242.38, 418.3, 250.26, 427.55, 252.62, 431.48, 252.81, 433.45, 251.63, 436.41, 247.5, 436.01, 241.59, 433.26, 236.67, 426.37, 227.81, 415.15, 218.76, 412.59, 216.99, 412.0, 216.99, 411.01, 223.88, 409.63, 228.21, 407.66, 234.11, 404.12, 238.84, 403.92, 240.41, 404.71, 242.38], [398.41, 238.84, 390.93, 232.34, 384.24, 225.06, 378.33, 218.17, 375.97, 214.62, 373.8, 210.69, 373.8, 209.51, 378.33, 208.13, 384.24, 207.14, 393.69, 208.52, 400.58, 209.9, 405.7, 212.46, 407.47, 214.03, 407.66, 214.82, 403.92, 226.04, 402.15, 232.14, 400.77, 235.69, 399.4, 238.05, 398.61, 239.03]], "area": 1285.167499999999, "iscrowd": 0, "image_id": 126978, "bbox": [373.8, 207.14, 62.61, 45.67], "category_id": 42, "id": 651888}, {"segmentation": [[359.82, 334.87, 477.83, 354.85, 528.21, 360.75, 540.02, 368.92, 538.65, 374.82, 462.4, 367.1, 366.17, 358.48, 291.28, 342.59, 277.21, 332.15, 294.0, 323.98, 311.25, 323.98, 325.32, 324.89, 337.12, 333.97]], "area": 4532.936899999999, "iscrowd": 0, "image_id": 5339, "bbox": [277.21, 323.98, 262.81, 50.84], "category_id": 42, "id": 652177}, {"segmentation": [[369.88, 243.89, 373.31, 240.46, 383.04, 233.03, 383.42, 244.84, 380.37, 246.18, 373.69, 247.51, 370.64, 247.13, 369.69, 245.04], [386.66, 231.69, 398.48, 228.83, 397.52, 231.12, 387.42, 242.94]], "area": 187.86929999999978, "iscrowd": 0, "image_id": 394242, "bbox": [369.69, 228.83, 28.79, 18.68], "category_id": 42, "id": 652247}, {"segmentation": [[336.01, 273.5, 297.72, 282.11, 304.42, 289.77, 332.18, 291.69, 383.88, 284.03, 408.77, 262.97, 386.75, 256.26, 381.01, 265.84, 364.73, 274.45, 358.03, 281.15, 328.36, 280.2]], "area": 1354.9916999999987, "iscrowd": 0, "image_id": 429113, "bbox": [297.72, 256.26, 111.05, 35.43], "category_id": 42, "id": 652556}, {"segmentation": [[454.25, 231.38, 459.41, 231.01, 461.41, 231.86, 461.52, 233.17, 461.04, 234.96, 457.36, 237.8, 453.52, 238.44, 452.2, 238.65, 451.94, 233.22], [448.2, 234.28, 447.78, 240.33, 445.31, 238.54, 443.94, 237.07, 444.04, 234.86, 445.94, 234.44, 447.41, 233.49]], "area": 73.54325000000004, "iscrowd": 0, "image_id": 394242, "bbox": [443.94, 231.01, 17.58, 9.32], "category_id": 42, "id": 652680}, {"segmentation": [[205.14, 244.41, 207.51, 242.19, 211.69, 239.67, 214.21, 239.07, 216.93, 238.72, 218.44, 238.82, 219.39, 239.27, 221.56, 239.52, 223.12, 241.19, 223.32, 243.75, 223.63, 245.01, 222.01, 245.11, 214.36, 244.96, 207.61, 244.91, 205.24, 244.71]], "area": 86.43850000000018, "iscrowd": 0, "image_id": 394242, "bbox": [205.14, 238.72, 18.49, 6.39], "category_id": 42, "id": 653223}, {"segmentation": [[338.21, 250.38, 338.21, 236.23, 341.19, 220.58, 360.56, 239.21, 369.5, 259.32, 355.35, 266.77], [310.65, 211.64, 322.57, 207.17, 312.89, 192.27, 313.63, 199.72]], "area": 886.8479999999998, "iscrowd": 0, "image_id": 126978, "bbox": [310.65, 192.27, 58.85, 74.5], "category_id": 42, "id": 653272}, {"segmentation": [[372.59, 257.72, 436.83, 254.08, 454.78, 251.74, 456.08, 250.96, 483.65, 247.57, 490.41, 248.36, 476.89, 252.78, 453.74, 259.8, 416.28, 263.18, 387.41, 261.88, 368.17, 259.54]], "area": 714.4072499999993, "iscrowd": 0, "image_id": 148646, "bbox": [368.17, 247.57, 122.24, 15.61], "category_id": 42, "id": 653795}, {"segmentation": [[148.37, 212.27, 142.56, 216.14, 140.63, 219.18, 138.69, 222.22, 139.25, 235.21, 141.46, 246.27, 141.18, 254.84, 139.25, 266.17, 138.42, 275.85, 140.9, 282.2, 143.39, 284.69, 147.54, 276.4, 150.86, 260.64, 152.79, 248.76, 154.45, 237.42, 154.73, 222.77, 155.28, 218.35, 153.62, 215.03, 150.03, 211.16]], "area": 827.6544499999995, "iscrowd": 0, "image_id": 126978, "bbox": [138.42, 211.16, 16.86, 73.53], "category_id": 42, "id": 654067}, {"segmentation": [[303.53, 183.93, 283.42, 178.19, 274.8, 171.48, 265.23, 182.02, 255.65, 182.97, 257.57, 179.14, 269.06, 169.57, 284.38, 154.25, 287.25, 145.63, 298.74, 141.8, 311.19, 147.55, 314.06, 159.99, 315.97, 171.48, 306.4, 181.06]], "area": 1326.5420500000002, "iscrowd": 0, "image_id": 318310, "bbox": [255.65, 141.8, 60.32, 42.13], "category_id": 43, "id": 655497}, {"segmentation": [[164.71, 375.81, 189.75, 377.06, 197.89, 375.18, 194.13, 369.55, 182.24, 365.17, 174.73, 362.04, 169.09, 364.54, 164.08, 370.8, 162.83, 372.68, 162.83, 374.56], [142.8, 366.42, 141.55, 360.78, 141.55, 359.53, 148.43, 355.15, 151.56, 358.28, 151.56, 358.28, 155.32, 357.03, 152.19, 358.28, 147.81, 362.04, 145.3, 365.17, 144.68, 365.79], [147.81, 374.56, 144.05, 381.44, 148.43, 383.95, 152.19, 382.7, 151.56, 379.57, 150.31, 376.43]], "area": 442.6214499999996, "iscrowd": 0, "image_id": 19789, "bbox": [141.55, 355.15, 56.34, 28.8], "category_id": 43, "id": 655526}, {"segmentation": [[179.96, 254.1, 187.68, 262.16, 211.87, 251.29, 238.52, 245.68, 263.77, 247.44, 284.46, 246.03, 301.99, 240.07, 316.37, 225.35, 320.58, 206.76, 313.21, 192.03, 299.19, 183.27, 286.56, 181.16, 270.43, 182.57, 254.65, 189.58, 239.22, 205.71, 235.02, 216.93, 223.09, 228.5, 209.07, 239.02, 198.9, 246.03, 179.61, 254.1]], "area": 5327.956449999999, "iscrowd": 0, "image_id": 188085, "bbox": [179.61, 181.16, 140.97, 81.0], "category_id": 43, "id": 655759}, {"segmentation": [[92.46, 565.12, 67.79, 569.87, 26.04, 572.71, 7.06, 583.15, 0.42, 597.39, 15.6, 614.46, 60.2, 619.21, 98.15, 622.06, 143.7, 623.0, 166.47, 619.21, 177.85, 613.52, 180.7, 604.98, 178.8, 596.44, 159.83, 585.05, 124.72, 573.66, 111.43, 566.07, 106.69, 562.28], [106.69, 546.15, 108.59, 560.38, 120.92, 555.64, 113.33, 542.35]], "area": 7964.008650000001, "iscrowd": 0, "image_id": 64071, "bbox": [0.42, 542.35, 180.28, 80.65], "category_id": 43, "id": 656380}, {"segmentation": [[175.36, 133.1, 169.29, 126.77, 163.78, 109.13, 161.3, 98.38, 166.54, 88.74, 171.77, 89.57, 175.91, 95.9, 178.66, 90.67, 179.08, 102.09, 179.38, 113.79, 178.0, 119.8, 180.46, 123.8, 181.23, 127.19, 179.84, 131.8, 176.46, 133.65], [187.13, 88.49, 182.2, 87.41, 181.9, 84.95, 184.51, 81.87, 188.67, 84.34, 188.82, 87.26, 187.75, 88.18]], "area": 598.0967500000002, "iscrowd": 0, "image_id": 420051, "bbox": [161.3, 81.87, 27.52, 51.78], "category_id": 43, "id": 657038}, {"segmentation": [[388.19, 145.36, 404.82, 132.48, 408.58, 124.43, 411.8, 106.73, 416.09, 99.75, 428.97, 94.92, 438.63, 93.31, 454.18, 97.07, 460.62, 107.8, 462.23, 120.68, 457.4, 135.7, 449.36, 145.89, 441.84, 148.58, 429.5, 149.11, 417.16, 145.89, 412.87, 142.67, 403.75, 146.97, 397.31, 149.65, 391.41, 148.58, 389.8, 146.43]], "area": 2667.3069000000005, "iscrowd": 0, "image_id": 353009, "bbox": [388.19, 93.31, 74.04, 56.34], "category_id": 43, "id": 657168}, {"segmentation": [[131.29, 390.02, 129.42, 431.87, 125.67, 466.22, 129.42, 488.08, 131.29, 500.57, 133.79, 508.69, 138.79, 508.69, 144.41, 506.2, 146.28, 500.57, 148.78, 488.08, 148.78, 442.49, 143.78, 411.88, 141.91, 379.4, 136.91, 378.78, 127.54, 389.39]], "area": 2186.618200000001, "iscrowd": 0, "image_id": 36881, "bbox": [125.67, 378.78, 23.11, 129.91], "category_id": 43, "id": 657256}, {"segmentation": [[202.89, 325.73, 203.49, 345.01, 199.88, 369.12, 196.86, 380.57, 195.66, 396.23, 207.71, 406.48, 219.76, 404.67, 222.77, 389.0, 222.17, 371.53, 212.53, 354.05, 209.52, 320.31]], "area": 1350.0963000000004, "iscrowd": 0, "image_id": 385701, "bbox": [195.66, 320.31, 27.11, 86.17], "category_id": 43, "id": 657332}, {"segmentation": [[80.48, 378.25, 80.15, 363.37, 79.82, 354.44, 71.88, 342.2, 63.28, 330.62, 46.41, 318.39, 51.04, 307.8, 51.71, 307.47, 60.31, 311.77, 78.83, 328.31, 111.24, 341.54, 138.7, 344.19, 151.27, 351.13, 164.5, 358.08, 181.04, 375.94, 186.66, 394.13, 181.37, 404.72, 163.17, 419.93, 135.39, 424.56, 101.65, 412.65, 86.77, 398.76, 81.81, 380.24]], "area": 7506.807699999999, "iscrowd": 0, "image_id": 276420, "bbox": [46.41, 307.47, 140.25, 117.09], "category_id": 43, "id": 658109}, {"segmentation": [[263.19, 217.71, 243.78, 218.79, 228.67, 212.31, 200.63, 215.55, 190.92, 236.04, 195.24, 259.78, 210.34, 260.85, 232.99, 246.83, 253.48, 233.89, 269.66, 216.63]], "area": 2231.5373500000005, "iscrowd": 0, "image_id": 11754, "bbox": [190.92, 212.31, 78.74, 48.54], "category_id": 43, "id": 658456}, {"segmentation": [[202.14, 132.91, 188.33, 113.41, 177.77, 95.54, 175.33, 73.6, 173.71, 56.54, 165.58, 44.35, 155.83, 36.23, 146.89, 28.1, 132.27, 28.91, 123.33, 41.91, 124.96, 63.04, 133.9, 79.29, 150.96, 93.91, 172.89, 104.48, 188.33, 123.98, 203.77, 137.79]], "area": 2998.7780500000003, "iscrowd": 0, "image_id": 249531, "bbox": [123.33, 28.1, 80.44, 109.69], "category_id": 43, "id": 658477}, {"segmentation": [[212.03, 130.0, 205.73, 135.94, 204.33, 136.64, 202.93, 133.15, 205.38, 107.62, 206.43, 101.67, 204.68, 93.63, 199.44, 83.49, 193.84, 75.79, 189.99, 68.45, 189.29, 60.06, 188.24, 53.76, 189.99, 46.42, 191.39, 38.72, 199.09, 26.83, 206.78, 20.89, 216.22, 17.04, 226.36, 19.49, 235.11, 25.43, 238.95, 32.43, 240.7, 41.17, 240.7, 53.41, 234.06, 69.85, 225.31, 79.29, 221.12, 84.54, 215.17, 98.87, 213.77, 107.62, 211.33, 130.35]], "area": 3250.8352999999997, "iscrowd": 0, "image_id": 442961, "bbox": [188.24, 17.04, 52.46, 119.6], "category_id": 43, "id": 658904}, {"segmentation": [[270.47, 217.21, 272.72, 217.42, 278.65, 222.53, 280.28, 226.21, 283.35, 230.09, 291.32, 238.47, 281.71, 230.91, 281.71, 230.91, 277.98, 230.63, 274.34, 226.45, 269.89, 221.06]], "area": 89.87435000000006, "iscrowd": 0, "image_id": 23015, "bbox": [269.89, 217.21, 21.43, 21.26], "category_id": 43, "id": 658914}, {"segmentation": [[326.03, 415.56, 320.09, 429.4, 292.4, 430.39, 263.71, 442.26, 225.14, 459.08, 187.55, 460.07, 156.88, 435.34, 161.83, 393.79, 192.49, 376.98, 218.21, 375.99, 233.05, 379.95, 260.74, 398.74, 310.2, 413.58]], "area": 8727.816899999998, "iscrowd": 0, "image_id": 66003, "bbox": [156.88, 375.99, 169.15, 84.08], "category_id": 43, "id": 659511}, {"segmentation": [[266.33, 129.4, 267.13, 124.52, 269.66, 120.39, 271.26, 116.94, 272.13, 113.8, 271.88, 112.07, 269.91, 111.89, 267.5, 114.91, 265.47, 118.42, 264.48, 120.52, 264.24, 122.68, 264.24, 124.4, 264.42, 125.26, 265.59, 125.45, 265.72, 125.45, 264.98, 129.09, 264.85, 129.7, 266.52, 129.83]], "area": 61.720249999999716, "iscrowd": 0, "image_id": 375659, "bbox": [264.24, 111.89, 7.89, 17.94], "category_id": 43, "id": 659685}, {"segmentation": [[438.88, 421.32, 403.77, 404.74, 394.01, 380.36, 387.19, 345.25, 360.85, 319.89, 369.63, 301.36, 395.96, 328.67, 445.7, 344.27, 483.74, 355.98, 506.17, 388.16, 493.49, 415.47]], "area": 8088.625000000002, "iscrowd": 0, "image_id": 276420, "bbox": [360.85, 301.36, 145.32, 119.96], "category_id": 43, "id": 660160}, {"segmentation": [[515.03, 158.91, 515.03, 142.64, 518.86, 137.85, 510.24, 104.35, 507.37, 77.54, 515.99, 52.65, 529.39, 26.8, 532.26, 8.62, 574.38, 3.83, 601.19, 12.44, 607.89, 20.1, 603.1, 58.4, 588.74, 101.47, 565.77, 123.49, 538.0, 136.89, 537.05, 147.42, 531.3, 157.96, 539.92, 166.57, 544.71, 177.1, 539.92, 188.59, 522.69, 195.29, 509.29, 192.42, 493.01, 179.02, 500.67, 165.61, 493.97, 158.91, 502.58, 152.21, 511.2, 155.08, 514.07, 148.38]], "area": 11684.8913, "iscrowd": 0, "image_id": 23906, "bbox": [493.01, 3.83, 114.88, 191.46], "category_id": 46, "id": 662104}, {"segmentation": [[230.67, 49.12, 240.18, 52.29, 244.75, 56.16, 246.87, 61.79, 244.75, 69.89, 238.42, 73.41, 226.45, 75.52, 216.59, 76.22, 208.85, 74.46, 199.35, 71.3, 194.07, 67.07, 194.77, 61.09, 202.51, 54.75, 209.2, 54.75, 216.24, 52.99, 218.35, 48.77, 217.3, 36.1, 215.89, 29.76, 212.37, 19.2, 207.79, 12.51, 200.75, 4.06, 198.29, 0.0, 226.1, 0.54, 223.28, 12.51, 219.76, 22.02, 222.23, 37.5, 223.63, 44.19, 227.15, 50.88, 231.73, 49.82]], "area": 1580.8423999999998, "iscrowd": 0, "image_id": 241369, "bbox": [194.07, 0.0, 52.8, 76.22], "category_id": 46, "id": 663107}, {"segmentation": [[305.95, 396.76, 334.05, 394.59, 352.43, 383.78, 351.35, 363.24, 334.05, 350.27, 326.49, 349.19, 321.08, 342.7, 322.16, 316.76, 342.7, 305.95, 355.68, 291.89, 360.0, 274.59, 363.24, 246.49, 361.08, 212.97, 352.43, 196.76, 343.78, 190.27, 327.57, 187.03, 309.19, 187.03, 296.22, 192.43, 284.32, 195.68, 282.16, 215.14, 278.92, 238.92, 278.92, 261.62, 277.84, 284.32, 285.41, 298.38, 295.14, 312.43, 309.19, 317.84, 311.35, 344.86, 311.35, 350.27, 288.65, 355.68, 278.92, 375.14, 288.65, 385.95, 301.62, 394.59]], "area": 12428.306250000001, "iscrowd": 0, "image_id": 67657, "bbox": [277.84, 187.03, 85.4, 209.73], "category_id": 46, "id": 664695}, {"segmentation": [[317.34, 1.04, 330.86, 40.58, 347.51, 69.71, 365.2, 81.16, 374.56, 134.22, 350.63, 141.5, 352.71, 153.99, 377.68, 156.07, 390.17, 153.99, 407.86, 148.78, 408.9, 144.62, 408.9, 141.5, 398.49, 130.06, 384.97, 130.06, 373.52, 71.79, 393.29, 30.17, 396.41, 4.16]], "area": 5716.626400000002, "iscrowd": 0, "image_id": 332065, "bbox": [317.34, 1.04, 91.56, 155.03], "category_id": 46, "id": 664906}, {"segmentation": [[404.33, 375.02, 402.78, 362.65, 381.9, 347.96, 371.08, 331.72, 364.12, 310.06, 368.76, 269.07, 377.26, 231.95, 399.69, 224.22, 431.4, 225.76, 443.77, 274.49, 450.73, 311.61, 440.68, 336.36, 423.67, 354.92, 422.89, 362.65], [412.04, 456.27, 395.87, 468.13, 443.33, 468.13, 424.99, 461.66, 421.75, 454.11]], "area": 9618.830300000001, "iscrowd": 0, "image_id": 211622, "bbox": [364.12, 224.22, 86.61, 243.91], "category_id": 46, "id": 665647}, {"segmentation": [[204.7, 390.55, 185.68, 386.38, 169.91, 370.61, 150.43, 347.88, 150.43, 330.25, 162.95, 317.27, 178.72, 308.92, 191.71, 312.17, 220.0, 333.5, 231.6, 357.16, 212.11, 374.32, 204.7, 380.35, 204.7, 389.62], [245.6, 405.08, 242.24, 414.26, 248.66, 429.25, 262.43, 428.64, 276.82, 413.04, 278.96, 402.02, 273.14, 396.51, 259.07, 394.67, 248.05, 402.94]], "area": 5007.516099999999, "iscrowd": 0, "image_id": 510371, "bbox": [150.43, 308.92, 128.53, 120.33], "category_id": 46, "id": 666869}, {"segmentation": [[379.75, 479.5, 384.8, 479.5, 386.14, 459.98, 400.28, 452.91, 402.97, 449.88, 413.07, 425.3, 368.3, 367.74, 364.93, 367.74, 354.84, 420.93, 357.87, 440.11, 378.74, 461.32, 379.07, 480.0]], "area": 3361.0915500000006, "iscrowd": 0, "image_id": 510371, "bbox": [354.84, 367.74, 58.23, 112.26], "category_id": 46, "id": 667037}, {"segmentation": [[262.91, 327.13, 265.55, 326.94, 268.76, 326.56, 270.46, 326.56, 271.96, 327.51, 272.34, 342.03, 270.46, 347.32, 269.32, 349.77, 268.95, 362.03, 272.91, 361.65, 275.93, 362.97, 275.17, 365.62, 268.95, 367.12, 263.1, 367.31, 259.51, 365.43, 260.83, 362.79, 263.29, 362.03, 267.06, 361.47, 266.12, 352.22, 264.61, 347.88, 262.91, 344.68, 262.53, 337.32]], "area": 304.0243499999995, "iscrowd": 0, "image_id": 37433, "bbox": [259.51, 326.56, 16.42, 40.75], "category_id": 46, "id": 667236}, {"segmentation": [[282.22, 353.24, 279.83, 346.07, 279.53, 330.24, 288.19, 330.83, 291.18, 331.43, 291.48, 331.73, 292.38, 344.28, 289.99, 352.94, 285.51, 358.62, 286.7, 365.49, 293.57, 367.58, 292.38, 371.17, 285.8, 371.46, 277.74, 370.57, 276.54, 367.88, 282.22, 366.68, 283.12, 366.09]], "area": 383.1245, "iscrowd": 0, "image_id": 37433, "bbox": [276.54, 330.24, 17.03, 41.22], "category_id": 46, "id": 667599}, {"segmentation": [[297.13, 434.78, 292.07, 428.63, 287.01, 387.07, 293.51, 371.89, 310.5, 365.02, 338.69, 367.19, 349.17, 379.12, 350.62, 385.99, 364.35, 393.58, 369.41, 402.61, 368.33, 421.04, 363.99, 426.83, 354.23, 430.8, 344.83, 431.89, 340.86, 440.56, 323.87, 448.87, 309.42, 447.79, 293.87, 438.75]], "area": 5128.910500000002, "iscrowd": 0, "image_id": 176587, "bbox": [287.01, 365.02, 82.4, 83.85], "category_id": 47, "id": 668290}, {"segmentation": [[361.98, 242.34, 350.37, 243.63, 342.2, 247.93, 334.24, 251.16, 334.24, 257.18, 335.1, 259.55, 340.91, 259.76, 352.95, 261.7, 358.11, 261.05, 358.76, 261.7, 358.97, 268.58, 357.04, 272.67, 356.39, 273.31, 347.36, 272.45, 339.62, 271.16, 332.95, 270.52, 328.65, 270.52, 325.85, 270.52, 321.55, 274.6, 320.26, 278.47, 322.84, 284.71, 327.79, 286.86, 335.53, 286.86, 341.98, 286.86, 349.72, 287.51, 351.87, 287.94, 353.16, 290.52, 353.81, 293.74, 353.81, 297.61, 350.58, 297.18, 342.63, 294.39, 336.17, 293.31, 331.87, 293.1, 327.79, 293.1, 322.84, 295.03, 321.33, 297.83, 320.04, 302.99, 323.49, 307.29, 326.07, 308.8, 333.16, 308.8, 334.88, 309.44, 335.53, 311.16, 336.82, 318.26, 343.92, 321.27, 346.71, 323.21, 345.42, 329.87, 335.1, 332.46, 318.11, 334.82, 303.27, 332.24, 291.01, 326.0, 287.78, 320.2, 285.85, 264.49, 282.62, 228.79, 279.61, 228.79, 281.33, 224.28, 284.56, 220.62, 298.11, 218.69, 316.17, 218.47, 332.95, 221.05, 353.16, 222.56, 363.49, 226.43, 367.79, 228.79, 364.78, 231.37, 363.49, 233.31, 363.49, 237.4]], "area": 6330.358499999999, "iscrowd": 0, "image_id": 384755, "bbox": [279.61, 218.47, 88.18, 116.35], "category_id": 47, "id": 668450}, {"segmentation": [[268.96, 233.07, 270.1, 208.35, 279.48, 205.22, 292.84, 206.93, 295.68, 208.63, 295.68, 212.61, 300.22, 213.18, 301.36, 214.6, 303.35, 220.29, 301.65, 231.94, 298.52, 233.36, 291.98, 233.93, 289.43, 237.34, 272.37, 237.9]], "area": 920.6952500000002, "iscrowd": 0, "image_id": 304587, "bbox": [268.96, 205.22, 34.39, 32.68], "category_id": 47, "id": 668722}, {"segmentation": [[65.98, 139.24, 76.2, 138.62, 78.37, 154.42, 65.67, 155.66, 65.36, 139.24]], "area": 190.57569999999987, "iscrowd": 0, "image_id": 375528, "bbox": [65.36, 138.62, 13.01, 17.04], "category_id": 47, "id": 668984}, {"segmentation": [[303.99, 3.22, 303.99, 111.71, 323.32, 127.82, 358.77, 132.12, 374.88, 126.75, 401.73, 2.15]], "area": 10475.7424, "iscrowd": 0, "image_id": 387318, "bbox": [303.99, 2.15, 97.74, 129.97], "category_id": 47, "id": 669103}, {"segmentation": [[333.47, 157.31, 337.03, 159.58, 338.97, 160.22, 345.44, 160.55, 351.58, 160.55, 354.49, 160.55, 355.14, 163.46, 353.85, 185.13, 350.94, 187.07, 344.79, 187.07, 339.3, 188.36, 330.24, 186.1, 330.24, 182.86, 327.98, 177.36, 324.74, 171.87, 320.86, 167.99, 326.04, 160.22, 328.95, 159.9, 330.56, 159.25]], "area": 772.2698499999997, "iscrowd": 0, "image_id": 304587, "bbox": [320.86, 157.31, 34.28, 31.05], "category_id": 47, "id": 669662}, {"segmentation": [[420.27, 165.65, 420.78, 136.64, 426.89, 136.13, 436.56, 137.14, 435.03, 153.44, 432.49, 165.14, 421.8, 165.14]], "area": 413.6345000000003, "iscrowd": 0, "image_id": 185591, "bbox": [420.27, 136.13, 16.29, 29.52], "category_id": 47, "id": 670176}, {"segmentation": [[34.76, 271.35, 43.23, 269.13, 50.09, 269.33, 53.72, 271.95, 54.93, 291.71, 39.6, 294.74, 35.77, 298.17, 32.95, 297.96, 31.34, 274.17]], "area": 539.54255, "iscrowd": 0, "image_id": 169686, "bbox": [31.34, 269.13, 23.59, 29.04], "category_id": 47, "id": 670285}, {"segmentation": [[184.18, 411.15, 182.87, 387.57, 183.13, 380.49, 187.06, 375.78, 197.28, 373.16, 205.4, 373.68, 210.64, 376.3, 211.69, 384.42, 211.43, 409.84, 205.14, 416.39, 197.8, 417.7, 190.99, 417.7, 184.7, 413.77]], "area": 1150.5106499999993, "iscrowd": 0, "image_id": 480818, "bbox": [182.87, 373.16, 28.82, 44.54], "category_id": 47, "id": 670509}, {"segmentation": [[70.81, 206.28, 81.85, 204.85, 82.26, 219.16, 72.65, 219.57, 71.22, 218.95]], "area": 152.45194999999995, "iscrowd": 0, "image_id": 375528, "bbox": [70.81, 204.85, 11.45, 14.72], "category_id": 47, "id": 670583}, {"segmentation": [[34.46, 67.97, 44.04, 111.05, 77.54, 154.13, 99.56, 162.74, 125.41, 162.74, 152.21, 162.74, 174.23, 154.13, 196.25, 145.51, 207.73, 137.85, 217.31, 127.32, 224.01, 92.86, 224.97, 72.76, 224.97, 51.69, 221.14, 35.42, 212.52, 27.76, 179.97, 20.1, 127.32, 22.02, 89.99, 29.68, 54.57, 44.04, 36.38, 57.44]], "area": 22217.02905, "iscrowd": 0, "image_id": 516791, "bbox": [34.46, 20.1, 190.51, 142.64], "category_id": 47, "id": 670661}, {"segmentation": [[537.88, 436.76, 540.66, 409.25, 541.9, 404.62, 549.01, 400.91, 561.37, 402.45, 570.02, 407.4, 572.49, 412.96, 571.26, 418.22, 571.26, 420.07, 574.04, 421.62, 567.24, 422.54, 563.22, 423.78, 561.06, 428.42, 561.37, 431.51, 560.13, 447.27, 552.1, 447.58, 544.99, 445.41, 540.66, 440.47]], "area": 1124.3632500000003, "iscrowd": 0, "image_id": 95880, "bbox": [537.88, 400.91, 36.16, 46.67], "category_id": 47, "id": 670716}, {"segmentation": [[266.73, 331.04, 274.75, 333.51, 274.75, 338.75, 272.59, 364.05, 263.65, 366.52, 256.24, 365.9, 252.54, 360.96, 247.61, 336.59, 255.63, 331.66]], "area": 779.9267499999988, "iscrowd": 0, "image_id": 510979, "bbox": [247.61, 331.04, 27.14, 35.48], "category_id": 47, "id": 670829}, {"segmentation": [[322.16, 340.41, 310.65, 298.71, 307.78, 291.52, 333.66, 277.13, 379.69, 271.38, 411.33, 271.38, 409.89, 300.14, 404.68, 340.32, 392.63, 324.59, 381.12, 308.77, 363.87, 310.21, 376.81, 333.22, 389.75, 347.61, 395.51, 363.43, 388.31, 364.86, 368.18, 337.54, 353.8, 320.28, 342.29, 327.47, 340.85, 336.1, 360.99, 363.43, 363.87, 370.62, 352.36, 372.05, 339.42, 353.36, 333.66, 341.85], [96.36, 626.62, 107.87, 554.71, 117.93, 510.12, 94.92, 494.3, 54.65, 494.3, 23.01, 498.62, 4.31, 510.12, 7.19, 533.13, 14.38, 550.39, 11.51, 567.65, 48.9, 559.02, 58.97, 554.71, 80.54, 554.71, 81.98, 561.9, 47.07, 579.71, 35.96, 586.35, 17.16, 594.98, 17.26, 599.29, 69.03, 593.54, 97.8, 592.1, 92.04, 607.92, 54.65, 616.55, 24.45, 623.74, 20.13, 628.05, 54.65, 623.74, 87.73, 612.23, 93.48, 616.55, 83.42, 630.93]], "area": 14761.10525, "iscrowd": 0, "image_id": 322725, "bbox": [4.31, 271.38, 407.02, 359.55], "category_id": 47, "id": 671399}, {"segmentation": [[426.09, 434.29, 426.72, 423.09, 425.16, 414.07, 423.29, 405.98, 424.85, 403.49, 432.94, 401.31, 453.48, 404.73, 455.03, 411.27, 451.3, 411.58, 453.48, 433.05, 452.54, 438.03, 445.39, 438.65, 438.54, 442.69, 437.3, 444.25, 429.52, 443.32, 424.85, 441.14, 424.85, 435.85]], "area": 1056.7974999999992, "iscrowd": 0, "image_id": 77841, "bbox": [423.29, 401.31, 31.74, 42.94], "category_id": 47, "id": 671468}, {"segmentation": [[576.14, 204.82, 565.07, 204.4, 564.0, 225.92, 572.52, 226.34]], "area": 211.7732999999991, "iscrowd": 0, "image_id": 280765, "bbox": [564.0, 204.4, 12.14, 21.94], "category_id": 47, "id": 671861}, {"segmentation": [[144.39, 196.06, 141.11, 173.84, 147.67, 168.01, 158.6, 166.92, 171.35, 166.92, 179.0, 169.47, 181.19, 174.57, 179.37, 212.46, 171.35, 216.83, 159.33, 219.02, 150.59, 216.47, 147.67, 212.46]], "area": 1755.740600000001, "iscrowd": 0, "image_id": 386890, "bbox": [141.11, 166.92, 40.08, 52.1], "category_id": 47, "id": 673122}, {"segmentation": [[339.82, 522.62, 336.61, 523.58, 329.55, 519.73, 324.09, 515.23, 322.8, 503.03, 324.09, 494.04, 327.3, 487.62, 331.15, 485.69, 338.21, 484.09, 336.93, 472.85, 339.82, 466.43, 347.85, 464.18, 362.94, 461.93, 369.68, 464.18, 373.53, 465.47, 372.57, 476.06, 372.89, 477.67, 384.45, 477.67, 382.2, 525.19, 376.74, 529.04, 367.43, 530.97, 357.8, 530.97, 349.77, 529.68, 343.03, 525.83]], "area": 3279.0163, "iscrowd": 0, "image_id": 363326, "bbox": [322.8, 461.93, 61.65, 69.04], "category_id": 47, "id": 674024}, {"segmentation": [[403.84, 435.85, 405.43, 378.6, 412.85, 369.59, 429.81, 366.94, 463.74, 361.63, 486.53, 359.51, 510.91, 366.94, 530.0, 377.54, 530.53, 415.7, 525.23, 462.88, 526.29, 502.63, 524.7, 510.06, 507.73, 526.49, 473.81, 528.61, 447.3, 527.55, 416.56, 522.78, 403.84, 512.71]], "area": 19621.5942, "iscrowd": 0, "image_id": 446266, "bbox": [403.84, 359.51, 126.69, 169.1], "category_id": 47, "id": 674291}, {"segmentation": [[406.96, 331.84, 410.72, 364.13, 411.38, 366.34, 415.58, 360.59, 421.11, 357.72, 428.19, 357.72, 431.28, 357.72, 434.6, 340.47, 435.71, 338.03, 435.71, 334.94, 433.72, 331.4, 428.63, 328.08, 416.91, 326.97, 409.61, 327.86, 408.06, 329.41]], "area": 792.5549999999997, "iscrowd": 0, "image_id": 510979, "bbox": [406.96, 326.97, 28.75, 39.37], "category_id": 47, "id": 674912}, {"segmentation": [[414.1, 381.34, 415.97, 339.75, 423.91, 333.2, 437.47, 333.2, 456.63, 337.41, 459.9, 341.62, 459.9, 351.43, 468.32, 360.78, 468.78, 373.4, 461.77, 380.88, 454.76, 384.62, 451.96, 389.29, 424.85, 387.89]], "area": 2513.643049999998, "iscrowd": 0, "image_id": 176587, "bbox": [414.1, 333.2, 54.68, 56.09], "category_id": 47, "id": 675012}, {"segmentation": [[464.46, 287.15, 476.04, 261.53, 483.76, 221.86, 489.03, 215.19, 507.63, 214.49, 521.32, 227.13, 520.97, 239.41, 521.68, 271.36, 526.94, 240.46, 531.86, 209.92, 531.86, 200.45, 524.48, 193.78, 497.8, 186.76, 464.81, 193.07, 457.79, 200.8, 457.79, 253.1, 461.65, 263.63, 460.24, 293.82]], "area": 3418.2239999999997, "iscrowd": 0, "image_id": 426513, "bbox": [457.79, 186.76, 74.07, 107.06], "category_id": 47, "id": 675016}, {"segmentation": [[165.39, 29.14, 174.34, 23.17, 185.52, 21.68, 198.94, 19.45, 222.79, 20.94, 224.29, 25.41, 229.5, 72.38, 229.5, 75.36, 216.09, 77.6, 178.81, 79.83, 168.37, 36.59]], "area": 3133.8048499999995, "iscrowd": 0, "image_id": 335940, "bbox": [165.39, 19.45, 64.11, 60.38], "category_id": 47, "id": 675477}, {"segmentation": [[250.22, 211.46, 248.53, 209.56, 246.0, 196.25, 243.25, 182.95, 241.56, 180.41, 241.14, 179.36, 244.1, 176.4, 248.95, 175.77, 253.81, 174.92, 259.3, 174.71, 263.32, 174.71, 265.22, 176.19, 265.22, 177.24, 264.58, 178.51, 265.01, 185.69, 259.09, 189.92, 257.61, 190.76, 256.56, 193.3, 257.4, 195.41, 258.46, 196.89, 256.35, 198.37, 254.45, 199.63, 254.45, 203.01, 255.5, 204.07, 256.56, 204.7, 255.71, 206.39, 256.77, 208.93, 258.67, 209.98, 259.3, 209.98, 259.94, 210.62, 261.21, 210.62, 263.32, 210.19, 259.09, 211.46, 255.5, 211.46, 251.7, 211.04]], "area": 513.8383999999996, "iscrowd": 0, "image_id": 36113, "bbox": [241.14, 174.71, 24.08, 36.75], "category_id": 47, "id": 675554}, {"segmentation": [[191.18, 348.11, 187.08, 338.46, 183.7, 322.29, 182.97, 315.05, 184.66, 310.94, 191.18, 307.32, 197.7, 306.6, 203.73, 308.77, 206.63, 310.46, 208.08, 319.63, 207.83, 329.29, 205.66, 340.87, 204.94, 345.7, 199.87, 347.87, 193.11, 348.11], [556.64, 460.35, 558.67, 442.15, 560.02, 431.09, 561.5, 425.83, 567.57, 421.11, 570.94, 421.25, 571.21, 420.17, 572.55, 418.69, 573.09, 420.71, 582.4, 422.6, 588.73, 425.16, 591.97, 427.72, 593.86, 430.28, 594.67, 433.11, 594.8, 436.21, 594.26, 439.45, 591.3, 451.58, 588.6, 465.61, 584.69, 469.11, 578.62, 470.86, 572.82, 470.86, 567.57, 469.79, 562.31, 466.42, 556.37, 460.35]], "area": 2363.7870000000007, "iscrowd": 0, "image_id": 95880, "bbox": [182.97, 306.6, 411.83, 164.26], "category_id": 47, "id": 676242}, {"segmentation": [[481.8, 166.39, 490.43, 254.12, 526.38, 251.25, 526.38, 149.13, 496.18, 149.13, 490.43, 153.45, 481.8, 162.08]], "area": 4163.370949999999, "iscrowd": 0, "image_id": 446266, "bbox": [481.8, 149.13, 44.58, 104.99], "category_id": 47, "id": 676519}, {"segmentation": [[264.48, 163.64, 267.42, 162.62, 268.74, 162.11, 269.66, 161.81, 271.38, 159.78, 272.2, 158.66, 271.79, 156.73, 269.96, 155.72, 267.32, 155.82, 264.27, 156.12, 263.46, 159.27, 263.97, 162.82]], "area": 50.21430000000011, "iscrowd": 0, "image_id": 346754, "bbox": [263.46, 155.72, 8.74, 7.92], "category_id": 47, "id": 677135}, {"segmentation": [[35.66, 305.57, 41.68, 318.36, 55.6, 317.99, 68.77, 313.09, 68.02, 295.03, 57.48, 290.52, 37.54, 295.41]], "area": 742.1503000000001, "iscrowd": 0, "image_id": 169686, "bbox": [35.66, 290.52, 33.11, 27.84], "category_id": 47, "id": 677260}, {"segmentation": [[488.05, 389.65, 489.54, 396.04, 490.4, 414.79, 504.88, 413.93, 511.06, 410.1, 514.26, 408.82, 516.6, 392.2, 515.75, 388.58, 505.31, 387.52, 498.7, 387.73, 492.31, 387.73, 488.27, 389.01]], "area": 650.1100000000005, "iscrowd": 0, "image_id": 77841, "bbox": [488.05, 387.52, 28.55, 27.27], "category_id": 47, "id": 677648}, {"segmentation": [[417.63, 302.65, 411.58, 304.88, 410.31, 310.28, 411.26, 314.42, 415.4, 316.96, 416.67, 319.19, 423.99, 322.05, 430.03, 322.37, 432.89, 318.87, 432.89, 299.79, 425.58, 297.24, 415.72, 297.56]], "area": 447.9913999999996, "iscrowd": 0, "image_id": 260871, "bbox": [410.31, 297.24, 22.58, 25.13], "category_id": 47, "id": 678336}, {"segmentation": [[411.32, 315.11, 408.19, 313.27, 407.27, 310.51, 401.18, 303.31, 400.81, 298.15, 404.13, 296.12, 405.98, 295.39, 404.87, 292.99, 408.74, 290.41, 421.09, 290.59, 424.04, 292.99, 422.94, 296.49, 415.93, 297.23, 417.41, 302.58, 411.32, 304.6, 410.4, 310.32]], "area": 271.6586500000001, "iscrowd": 0, "image_id": 260871, "bbox": [400.81, 290.41, 23.23, 24.7], "category_id": 47, "id": 678380}, {"segmentation": [[408.0, 296.56, 408.17, 283.27, 411.97, 281.71, 416.28, 282.23, 418.18, 283.27, 418.7, 285.51, 420.6, 284.99, 423.02, 286.37, 423.36, 290.17, 421.64, 292.42, 418.18, 292.76, 418.01, 292.94, 418.01, 297.42, 414.73, 297.94, 410.59, 297.94, 408.51, 297.08]], "area": 188.7558499999999, "iscrowd": 0, "image_id": 290153, "bbox": [408.0, 281.71, 15.36, 16.23], "category_id": 47, "id": 678422}, {"segmentation": [[584.75, 162.07, 640.0, 174.89, 609.21, 254.7, 599.31, 254.12, 597.56, 218.0, 576.01, 207.51]], "area": 3206.587700000004, "iscrowd": 0, "image_id": 223838, "bbox": [576.01, 162.07, 63.99, 92.63], "category_id": 47, "id": 679395}, {"segmentation": [[375.91, 213.03, 374.6, 228.06, 377.22, 249.63, 377.87, 280.35, 388.98, 288.19, 410.55, 290.81, 428.2, 275.78, 431.46, 214.34, 428.2, 206.49, 411.2, 200.61, 392.25, 200.61, 379.83, 205.84, 377.87, 207.8]], "area": 4421.212999999997, "iscrowd": 0, "image_id": 426513, "bbox": [374.6, 200.61, 56.86, 90.2], "category_id": 47, "id": 680639}, {"segmentation": [[229.35, 296.39, 229.76, 310.54, 229.96, 316.69, 233.45, 319.77, 242.06, 319.77, 247.81, 317.51, 248.22, 295.16, 244.94, 293.52, 238.78, 292.7, 232.02, 293.11]], "area": 470.7503, "iscrowd": 0, "image_id": 480818, "bbox": [229.35, 292.7, 18.87, 27.07], "category_id": 47, "id": 681061}, {"segmentation": [[402.97, 116.57, 383.78, 88.75, 378.99, 55.17, 378.03, 19.67, 399.14, 7.2, 426.96, 2.4, 462.46, 0.48, 497.96, 3.36, 534.42, 13.91, 550.73, 24.47, 551.69, 44.61, 544.01, 73.4, 527.7, 99.3, 515.23, 115.61, 496.04, 130.01, 468.22, 133.84, 441.35, 132.89, 420.24, 126.17]], "area": 18795.572650000002, "iscrowd": 0, "image_id": 516791, "bbox": [378.03, 0.48, 173.66, 133.36], "category_id": 47, "id": 681275}, {"segmentation": [[436.65, 197.74, 441.18, 187.54, 466.86, 183.77, 484.23, 187.92, 463.46, 193.59, 458.55, 202.65, 457.79, 212.09, 457.42, 258.54, 455.53, 264.21, 457.42, 272.14, 452.51, 271.01, 443.82, 268.74, 435.13, 263.08, 434.76, 259.3]], "area": 1952.3014500000018, "iscrowd": 0, "image_id": 426513, "bbox": [434.76, 183.77, 49.47, 88.37], "category_id": 47, "id": 681500}, {"segmentation": [[335.2, 297.74, 335.55, 292.4, 334.17, 287.23, 327.45, 285.85, 331.93, 281.72, 334.17, 279.65, 345.37, 280.34, 346.75, 283.61, 345.37, 291.19, 344.16, 298.08, 335.89, 297.57]], "area": 218.57335000000023, "iscrowd": 0, "image_id": 290153, "bbox": [327.45, 279.65, 19.3, 18.43], "category_id": 47, "id": 682515}, {"segmentation": [[290.86, 229.17, 289.08, 222.93, 290.86, 219.36, 301.28, 220.25, 301.57, 225.31, 299.79, 230.36, 296.81, 231.55, 293.84, 231.85, 290.86, 228.28]], "area": 121.29149999999996, "iscrowd": 0, "image_id": 480818, "bbox": [289.08, 219.36, 12.49, 12.49], "category_id": 47, "id": 682922}, {"segmentation": [[67.45, 297.22, 72.67, 311.73, 76.54, 314.63, 89.31, 310.57, 93.17, 303.41, 93.37, 297.99, 93.37, 294.12, 89.31, 290.84, 78.47, 289.09, 72.28, 290.84, 69.77, 292.38]], "area": 496.9396500000007, "iscrowd": 0, "image_id": 169686, "bbox": [67.45, 289.09, 25.92, 25.54], "category_id": 47, "id": 683049}, {"segmentation": [[377.76, 287.34, 382.74, 285.73, 389.04, 286.32, 391.24, 289.4, 389.63, 306.83, 386.11, 308.88, 377.03, 307.71, 376.44, 303.17]], "area": 291.21255, "iscrowd": 0, "image_id": 290153, "bbox": [376.44, 285.73, 14.8, 23.15], "category_id": 47, "id": 683054}, {"segmentation": [[394.37, 319.6, 400.4, 379.9, 416.08, 382.31, 420.9, 372.66, 424.52, 369.05, 431.76, 320.8, 419.7, 315.98, 405.23, 317.19, 397.99, 318.39]], "area": 1867.6188499999994, "iscrowd": 0, "image_id": 115055, "bbox": [394.37, 315.98, 37.39, 66.33], "category_id": 47, "id": 684444}, {"segmentation": [[307.77, 323.01, 305.78, 355.51, 303.5, 377.74, 298.65, 382.02, 276.71, 384.01, 275.85, 377.74, 274.14, 344.68, 278.7, 332.99, 272.43, 327.86, 272.43, 322.73, 271.58, 320.73, 279.56, 318.45, 291.81, 316.74, 302.93, 317.03]], "area": 1988.643799999999, "iscrowd": 0, "image_id": 115055, "bbox": [271.58, 316.74, 36.19, 67.27], "category_id": 47, "id": 684658}, {"segmentation": [[477.29, 148.09, 477.29, 182.14, 476.1, 188.08, 488.37, 188.47, 498.27, 187.29, 510.15, 190.06, 521.63, 192.83, 522.42, 188.87, 519.65, 173.43, 527.17, 150.07, 525.98, 137.8, 514.5, 130.28, 487.97, 132.65, 482.04, 137.4]], "area": 2577.893649999997, "iscrowd": 0, "image_id": 426513, "bbox": [476.1, 130.28, 51.07, 62.55], "category_id": 47, "id": 684824}, {"segmentation": [[167.02, 159.69, 167.02, 159.69, 171.76, 192.48, 173.58, 213.61, 166.66, 220.17, 152.45, 222.35, 137.15, 223.08, 129.13, 220.17, 121.12, 185.56, 115.65, 172.81, 113.83, 161.15, 127.67, 152.41, 144.07, 150.22, 160.1, 151.31, 163.74, 153.14, 167.02, 161.51]], "area": 3396.47565, "iscrowd": 0, "image_id": 426513, "bbox": [113.83, 150.22, 59.75, 72.86], "category_id": 47, "id": 684919}, {"segmentation": [[308.01, 263.57, 314.53, 258.99, 329.49, 254.88, 351.21, 252.23, 360.14, 249.82, 369.56, 243.3, 382.11, 231.23, 385.49, 223.51, 388.62, 222.3, 385.0, 230.75, 375.83, 244.75, 365.45, 254.16, 353.38, 260.92, 339.87, 260.44, 328.77, 259.95, 318.63, 260.68, 308.49, 265.75], [236.53, 301.66, 215.28, 306.57, 208.33, 309.84, 207.92, 314.74, 211.4, 314.95, 219.98, 314.95, 251.25, 300.84, 256.77, 296.76, 254.72, 294.31, 238.37, 300.44]], "area": 801.8025999999987, "iscrowd": 0, "image_id": 564237, "bbox": [207.92, 222.3, 180.7, 92.65], "category_id": 48, "id": 685553}, {"segmentation": [[609.8, 375.26, 573.42, 402.07, 549.49, 418.34, 493.97, 421.21, 445.15, 413.56, 393.45, 421.21, 317.82, 420.26, 459.51, 397.28, 493.01, 386.75, 536.09, 366.65, 577.25, 345.59]], "area": 7368.38185, "iscrowd": 0, "image_id": 516791, "bbox": [317.82, 345.59, 291.98, 75.62], "category_id": 48, "id": 686583}, {"segmentation": [[505.61, 358.08, 507.42, 353.86, 516.46, 353.86, 522.49, 355.67, 538.15, 364.71, 559.24, 382.18, 573.71, 387.0, 585.15, 391.22, 600.22, 410.5, 605.04, 426.17, 585.15, 425.57, 558.64, 390.01, 550.21, 385.19, 526.1, 367.72]], "area": 1487.9521499999994, "iscrowd": 0, "image_id": 537924, "bbox": [505.61, 353.86, 99.43, 72.31], "category_id": 48, "id": 687242}, {"segmentation": [[341.82, 225.18, 341.82, 225.18, 342.93, 222.15, 346.51, 222.43, 372.14, 242.27, 385.36, 244.47, 393.35, 243.92, 405.48, 252.74, 414.57, 265.96, 404.1, 256.59, 412.37, 265.69, 404.1, 259.35, 409.61, 268.17, 402.17, 261.0, 408.51, 270.92, 394.46, 261.55, 381.5, 249.98, 371.58, 244.75]], "area": 540.3049000000003, "iscrowd": 0, "image_id": 64492, "bbox": [341.82, 222.15, 72.75, 48.77], "category_id": 48, "id": 688541}, {"segmentation": [[572.11, 272.23, 605.48, 271.7, 613.53, 269.4, 619.91, 264.7, 615.31, 269.72, 622.31, 265.22, 618.55, 269.61, 624.82, 266.16, 620.01, 270.24, 627.23, 266.47, 625.66, 268.57, 618.23, 273.59, 612.59, 274.0, 603.07, 273.48, 572.53, 273.69, 572.01, 272.85]], "area": 132.52950000000007, "iscrowd": 0, "image_id": 537924, "bbox": [572.01, 264.7, 55.22, 9.3], "category_id": 48, "id": 689020}, {"segmentation": [[347.34, 546.04, 314.8, 609.72, 310.65, 620.33, 315.5, 621.72, 348.72, 572.57, 369.02, 538.43, 372.72, 530.35, 373.18, 526.66, 377.33, 511.66, 372.26, 493.2, 369.72, 486.05, 370.18, 479.82, 390.94, 431.83, 413.56, 387.53, 439.4, 344.84, 445.63, 338.61, 468.7, 307.24, 472.39, 295.47, 470.78, 279.55, 458.32, 271.47, 440.55, 270.32, 429.71, 280.47, 426.01, 295.93, 419.32, 321.08, 413.09, 342.77, 411.25, 346.46, 399.25, 375.76, 392.1, 392.61, 380.1, 417.52, 372.72, 437.14, 354.72, 468.28, 340.65, 479.59, 332.34, 483.51, 314.57, 499.2, 310.65, 511.43, 304.19, 524.35, 298.65, 530.81, 285.73, 556.65, 278.35, 573.5, 276.5, 578.11, 271.66, 589.19, 269.35, 594.49, 271.43, 597.03, 274.89, 595.42, 307.88, 543.04, 317.11, 528.5, 320.57, 531.04, 282.04, 602.57, 288.04, 606.49, 330.72, 536.58, 333.95, 538.89, 296.58, 609.95, 301.19, 615.49, 344.11, 542.81, 348.26, 546.5]], "area": 12335.412550000001, "iscrowd": 0, "image_id": 478902, "bbox": [269.35, 270.32, 203.04, 351.4], "category_id": 48, "id": 689212}, {"segmentation": [[470.91, 336.13, 473.9, 339.48, 475.58, 341.44, 475.86, 344.33, 475.02, 346.85, 474.92, 349.46, 475.76, 350.39, 478.0, 350.77, 479.49, 350.67, 480.33, 350.58, 482.01, 350.3, 482.94, 349.65, 483.04, 349.18, 481.45, 346.85, 478.47, 343.59, 477.35, 340.88, 476.41, 334.73, 473.62, 334.17, 471.57, 334.26]], "area": 75.9736000000002, "iscrowd": 0, "image_id": 579659, "bbox": [470.91, 334.17, 12.13, 16.6], "category_id": 48, "id": 691201}, {"segmentation": [[328.84, 316.61, 347.92, 316.61, 363.99, 316.11, 370.82, 317.42, 376.14, 321.93, 381.46, 322.94, 393.92, 318.82, 400.54, 312.8, 390.4, 307.87, 372.73, 314.9, 363.29, 313.7, 343.2, 311.99, 334.26, 311.49, 329.04, 311.89, 324.52, 311.89, 323.72, 313.0, 325.32, 315.71]], "area": 434.33825000000104, "iscrowd": 0, "image_id": 111705, "bbox": [323.72, 307.87, 76.82, 15.07], "category_id": 48, "id": 691429}, {"segmentation": [[427.61, 384.78, 427.61, 392.31, 429.98, 397.26, 431.27, 398.76, 431.92, 404.14, 434.72, 404.14, 434.72, 397.69, 435.58, 396.83, 436.87, 389.94, 436.65, 386.28, 435.15, 383.91, 434.93, 386.93, 433.85, 383.27, 432.56, 383.27, 432.35, 389.29, 431.27, 383.7, 430.84, 383.7, 429.77, 389.73]], "area": 118.79244999999995, "iscrowd": 0, "image_id": 579659, "bbox": [427.61, 383.27, 9.26, 20.87], "category_id": 48, "id": 692184}, {"segmentation": [[462.87, 330.55, 464.14, 334.66, 465.88, 338.86, 465.88, 341.07, 464.93, 342.74, 465.01, 344.95, 468.49, 348.91, 474.03, 348.51, 471.89, 344.24, 470.7, 341.23, 468.57, 339.81, 467.38, 330.71, 466.51, 329.68, 464.37, 329.52]], "area": 89.2081, "iscrowd": 0, "image_id": 579659, "bbox": [462.87, 329.52, 11.16, 19.39], "category_id": 48, "id": 692263}, {"segmentation": [[99.66, 282.44, 140.44, 285.35, 176.56, 289.43, 202.77, 298.75, 203.94, 302.83, 176.56, 297.59, 177.14, 293.51, 150.93, 293.51, 134.03, 292.34, 99.08, 288.85]], "area": 664.493449999998, "iscrowd": 0, "image_id": 64492, "bbox": [99.08, 282.44, 104.86, 20.39], "category_id": 49, "id": 693415}, {"segmentation": [[91.88, 574.94, 136.08, 514.23, 155.49, 480.36, 165.4, 460.95, 173.66, 455.58, 186.88, 430.8, 185.64, 422.54, 192.25, 409.32, 186.46, 403.54, 174.49, 434.52, 169.53, 444.84, 162.51, 445.67, 157.97, 453.51, 136.08, 494.4, 109.64, 539.83]], "area": 1588.5977500000013, "iscrowd": 0, "image_id": 306627, "bbox": [91.88, 403.54, 100.37, 171.4], "category_id": 49, "id": 694133}, {"segmentation": [[285.38, 332.22, 289.73, 333.99, 364.65, 367.57, 369.14, 368.92, 390.69, 378.34, 405.95, 385.07, 406.84, 403.48, 349.84, 370.26, 335.93, 372.06, 305.41, 355.9, 281.62, 339.29, 282.07, 333.91]], "area": 1728.1511499999997, "iscrowd": 0, "image_id": 446266, "bbox": [281.62, 332.22, 125.22, 71.26], "category_id": 49, "id": 694468}, {"segmentation": [[153.89, 346.61, 240.18, 323.6, 244.49, 339.42, 182.65, 352.36]], "area": 1096.00765, "iscrowd": 0, "image_id": 453552, "bbox": [153.89, 323.6, 90.6, 28.76], "category_id": 49, "id": 695228}, {"segmentation": [[418.83, 238.93, 424.83, 233.66, 432.65, 230.02, 439.55, 227.12, 443.19, 226.75, 437.37, 232.02, 435.19, 232.75, 428.28, 237.84, 421.74, 241.11, 418.83, 240.57]], "area": 100.5841500000001, "iscrowd": 0, "image_id": 14812, "bbox": [418.83, 226.75, 24.36, 14.36], "category_id": 49, "id": 695304}, {"segmentation": [[410.1, 156.25, 408.98, 279.8, 414.59, 355.04, 416.84, 366.28, 424.7, 375.26, 424.7, 533.62, 448.29, 533.62, 459.52, 519.02, 450.53, 361.78, 451.66, 355.04, 449.41, 349.43, 441.55, 148.39, 435.93, 139.41, 419.09, 139.41, 406.73, 147.27]], "area": 13041.15715, "iscrowd": 0, "image_id": 107443, "bbox": [406.73, 139.41, 52.79, 394.21], "category_id": 49, "id": 695465}, {"segmentation": [[396.94, 427.9, 501.57, 418.19, 502.65, 412.79, 572.76, 419.27, 394.79, 437.6]], "area": 1438.373600000002, "iscrowd": 0, "image_id": 537924, "bbox": [394.79, 412.79, 177.97, 24.81], "category_id": 49, "id": 695815}, {"segmentation": [[218.29, 136.86, 313.07, 96.65, 503.59, 26.76, 570.61, 0.0, 640.0, 0.91, 638.59, 66.97, 596.46, 69.84, 586.89, 71.76, 577.31, 90.91, 577.31, 107.18, 601.25, 147.39, 551.46, 140.69, 535.19, 147.39, 495.93, 120.58, 479.66, 113.88, 443.28, 122.5, 416.47, 143.56, 404.02, 164.62, 396.36, 191.43, 393.49, 223.03, 287.22, 246.96, 281.48, 206.75, 260.41, 172.28]], "area": 42793.5549, "iscrowd": 0, "image_id": 105697, "bbox": [218.29, 0.0, 421.71, 246.96], "category_id": 49, "id": 695998}, {"segmentation": [[246.21, 392.82, 253.76, 412.28, 253.76, 419.43, 244.62, 415.06, 231.52, 396.79, 221.59, 379.32, 208.88, 357.87, 209.28, 354.3, 213.25, 353.11, 222.78, 359.46, 227.94, 371.38, 241.05, 386.86]], "area": 820.7692000000004, "iscrowd": 0, "image_id": 222572, "bbox": [208.88, 353.11, 44.88, 66.32], "category_id": 49, "id": 697519}, {"segmentation": [[162.52, 543.2, 169.71, 557.58, 276.13, 566.21, 303.46, 569.09, 463.1, 577.72, 480.0, 557.58, 388.31, 541.76, 307.78, 534.57, 306.34, 540.32, 293.39, 540.32, 169.71, 540.32]], "area": 8168.937150000002, "iscrowd": 0, "image_id": 111705, "bbox": [162.52, 534.57, 317.48, 43.15], "category_id": 49, "id": 697823}, {"segmentation": [[408.15, 236.86, 430.69, 238.86, 445.6, 237.77, 465.6, 239.04, 481.78, 242.86, 494.32, 247.59, 505.05, 246.86, 505.96, 242.86, 499.23, 239.95, 446.15, 234.86, 424.15, 233.41, 404.52, 230.68, 402.33, 230.13, 405.06, 235.77, 406.52, 237.59]], "area": 463.45010000000053, "iscrowd": 0, "image_id": 64492, "bbox": [402.33, 230.13, 103.63, 17.46], "category_id": 49, "id": 698210}, {"segmentation": [[375.93, 284.63, 306.44, 298.4, 529.92, 270.23, 529.92, 262.72]], "area": 1138.1255999999983, "iscrowd": 0, "image_id": 446266, "bbox": [306.44, 262.72, 223.48, 35.68], "category_id": 49, "id": 698463}, {"segmentation": [[154.05, 430.24, 164.84, 417.17, 177.34, 417.74, 178.76, 408.36, 200.06, 380.24, 211.99, 373.71, 224.49, 381.09, 218.24, 395.87, 188.13, 424.56, 163.42, 428.82]], "area": 1357.8824499999998, "iscrowd": 0, "image_id": 446266, "bbox": [154.05, 373.71, 70.44, 56.53], "category_id": 49, "id": 699447}, {"segmentation": [[266.51, 224.0, 282.15, 220.73, 293.79, 220.0, 310.89, 218.18, 330.89, 215.64, 344.72, 213.45, 351.63, 213.45, 353.45, 213.82, 351.99, 215.64, 341.44, 218.55, 332.71, 217.82, 328.35, 217.45, 327.26, 219.64, 310.52, 221.82, 304.34, 222.55, 294.15, 224.73, 282.15, 226.55, 273.78, 226.55, 268.69, 224.73]], "area": 325.8689000000003, "iscrowd": 0, "image_id": 111705, "bbox": [266.51, 213.45, 86.94, 13.1], "category_id": 49, "id": 699917}, {"segmentation": [[216.99, 392.83, 213.43, 394.87, 208.33, 387.23, 198.64, 368.88, 192.02, 358.17, 193.04, 351.04, 199.66, 354.61, 213.93, 384.17, 219.03, 388.75, 216.99, 394.36]], "area": 325.58174999999983, "iscrowd": 0, "image_id": 222572, "bbox": [192.02, 351.04, 27.01, 43.83], "category_id": 49, "id": 699996}, {"segmentation": [[270.74, 53.93, 298.79, 83.06, 307.42, 104.63, 286.92, 124.04, 368.9, 208.18, 379.69, 216.81, 402.34, 231.91, 440.09, 251.33, 464.9, 263.19, 465.98, 288.0, 468.13, 289.08, 476.76, 259.96, 468.13, 251.33, 424.99, 189.84, 337.62, 81.98, 324.67, 74.43, 320.36, 61.48, 314.97, 47.46, 291.24, 25.89, 272.9, 50.7]], "area": 13288.886750000003, "iscrowd": 0, "image_id": 441419, "bbox": [270.74, 25.89, 206.02, 263.19], "category_id": 49, "id": 700140}, {"segmentation": [[64.44, 310.78, 71.29, 318.45, 55.4, 342.01, 45.53, 343.66, 41.15, 343.66, 55.94, 320.92, 58.68, 318.45, 58.14, 317.9, 63.61, 311.05], [49.09, 286.67, 35.94, 302.56, 24.71, 319.55, 15.12, 332.15, 12.1, 332.97, 11.83, 334.34, 11.83, 335.16, 21.69, 339.55, 24.98, 342.56, 26.9, 343.93, 40.05, 323.11, 57.04, 296.26, 58.68, 292.15, 56.49, 289.68, 51.83, 286.12, 48.55, 286.39], [1.14, 334.34, 11.83, 322.83, 28.27, 302.28, 38.13, 288.04, 37.86, 285.3, 32.11, 277.35, 24.16, 283.65, 14.84, 292.97, 5.8, 306.94, 1.42, 315.71, 0.0, 318.72, 0.05, 334.89]], "area": 2076.6566999999995, "iscrowd": 0, "image_id": 222572, "bbox": [0.0, 277.35, 71.29, 66.58], "category_id": 49, "id": 700184}, {"segmentation": [[527.7, 380.31, 520.59, 376.55, 514.86, 375.76, 516.64, 378.53, 521.97, 382.09, 527.7, 384.65, 538.17, 383.86, 549.04, 383.86, 564.84, 386.04, 568.2, 385.25, 566.23, 382.88, 541.53, 380.7, 532.25, 380.7, 527.11, 379.91]], "area": 172.5404500000005, "iscrowd": 0, "image_id": 579659, "bbox": [514.86, 375.76, 53.34, 10.28], "category_id": 50, "id": 701278}, {"segmentation": [[453.93, 312.32, 454.24, 304.89, 453.54, 298.92, 453.81, 286.38, 453.81, 282.37, 454.25, 277.48, 459.05, 277.22, 459.5, 287.36, 458.43, 294.92, 458.97, 298.83, 457.81, 302.88, 457.28, 310.71, 454.61, 311.86]], "area": 161.32554999999968, "iscrowd": 0, "image_id": 561406, "bbox": [453.54, 277.22, 5.96, 35.1], "category_id": 50, "id": 701604}, {"segmentation": [[427.79, 362.34, 430.29, 328.53, 420.9, 326.03, 410.26, 327.91, 409.01, 336.05, 412.76, 352.32, 426.53, 363.59], [435.3, 334.17, 439.05, 361.71, 440.93, 333.54, 436.55, 333.54], [443.44, 335.42, 446.57, 357.96, 447.19, 334.79, 442.81, 334.79], [449.7, 338.55, 453.45, 360.46, 455.33, 340.43, 450.32, 339.18], [459.09, 343.56, 465.35, 367.35, 475.99, 360.46, 460.34, 344.81]], "area": 903.3662000000008, "iscrowd": 0, "image_id": 446266, "bbox": [409.01, 326.03, 66.98, 41.32], "category_id": 50, "id": 701693}, {"segmentation": [[329.48, 306.98, 325.91, 305.45, 341.72, 287.09, 341.38, 283.18, 343.76, 281.31, 348.18, 280.29, 353.45, 282.33, 354.3, 283.86, 346.99, 285.39, 344.78, 287.6, 330.16, 306.81]], "area": 137.67959999999982, "iscrowd": 0, "image_id": 543882, "bbox": [325.91, 280.29, 28.39, 26.69], "category_id": 50, "id": 701700}, {"segmentation": [[74.61, 397.53, 93.46, 388.17, 111.02, 376.73, 117.13, 371.65, 120.38, 369.05, 124.15, 369.7, 131.18, 373.21, 138.07, 377.38, 161.48, 378.94, 179.29, 376.07, 200.49, 368.27, 223.12, 357.35, 236.12, 348.77, 247.56, 337.84, 252.38, 329.13, 252.25, 320.29, 244.96, 313.65, 235.08, 308.71, 216.09, 304.55, 191.52, 305.72, 172.27, 308.97, 155.1, 313.39, 136.77, 323.15, 127.15, 331.6, 123.5, 340.18, 118.04, 349.81, 113.49, 358.13, 109.46, 362.81, 93.34, 373.05, 79.82, 379.59, 30.12, 395.12, 0.21, 404.05, 0.15, 425.88, 17.32, 419.23, 62.17, 402.21]], "area": 9242.2762, "iscrowd": 0, "image_id": 516791, "bbox": [0.15, 304.55, 252.23, 121.33], "category_id": 50, "id": 702061}, {"segmentation": [[375.16, 192.57, 387.91, 203.73, 398.01, 262.7, 405.97, 262.7, 404.91, 225.51, 407.57, 189.39, 400.13, 172.92, 389.5, 168.14, 382.07, 170.79, 375.16, 180.36]], "area": 1633.1663999999998, "iscrowd": 0, "image_id": 371808, "bbox": [375.16, 168.14, 32.41, 94.56], "category_id": 50, "id": 702218}, {"segmentation": [[71.32, 374.99, 63.19, 366.85, 33.28, 350.85, 26.73, 347.97, 24.1, 349.54, 28.56, 353.74, 62.92, 369.48, 70.27, 376.03, 70.53, 376.3]], "area": 172.90144999999941, "iscrowd": 0, "image_id": 185591, "bbox": [24.1, 347.97, 47.22, 28.33], "category_id": 50, "id": 702435}, {"segmentation": [[556.41, 243.82, 558.32, 244.7, 563.75, 240.0, 565.51, 240.0, 569.04, 238.54, 570.65, 235.89, 569.92, 233.4, 568.89, 233.25, 564.19, 233.69, 563.16, 236.19, 563.16, 237.95, 556.26, 242.94]], "area": 57.96005000000004, "iscrowd": 0, "image_id": 472861, "bbox": [556.26, 233.25, 14.39, 11.45], "category_id": 50, "id": 702768}, {"segmentation": [[323.0, 178.09, 323.49, 191.07, 318.67, 193.56, 317.67, 196.39, 319.34, 198.72, 323.16, 198.72, 326.32, 196.72, 325.49, 190.74, 325.32, 188.74, 324.49, 175.6]], "area": 74.58149999999989, "iscrowd": 0, "image_id": 290153, "bbox": [317.67, 175.6, 8.65, 23.12], "category_id": 50, "id": 703188}, {"segmentation": [[164.18, 493.97, 180.22, 498.15, 184.09, 493.0, 193.11, 471.59, 205.94, 468.19, 218.18, 460.3, 222.32, 440.54, 218.49, 429.65, 209.19, 427.96, 196.76, 431.21, 177.97, 449.55, 175.72, 461.46, 184.41, 465.64, 181.55, 467.82, 169.32, 486.66]], "area": 1843.6339000000003, "iscrowd": 0, "image_id": 446266, "bbox": [164.18, 427.96, 58.14, 70.19], "category_id": 50, "id": 703455}, {"segmentation": [[396.68, 217.81, 405.75, 217.91, 422.43, 222.84, 427.43, 227.84, 436.73, 226.97, 449.09, 227.63, 481.91, 235.45, 498.8, 235.9, 502.49, 237.56, 498.14, 239.93, 481.6, 238.98, 448.39, 229.61, 437.68, 228.53, 429.45, 230.59, 426.93, 232.68, 421.18, 232.8, 413.13, 230.78, 402.83, 225.11, 396.96, 219.95]], "area": 469.87065000000086, "iscrowd": 0, "image_id": 64492, "bbox": [396.68, 217.81, 105.81, 22.12], "category_id": 50, "id": 704144}, {"segmentation": [[198.47, 419.66, 206.42, 423.94, 213.97, 425.58, 219.07, 426.39, 224.37, 427.21, 230.28, 430.47, 235.58, 433.53, 238.44, 435.77, 240.68, 437.2, 248.63, 436.18, 255.36, 436.59, 260.26, 437.2, 266.58, 443.11, 262.7, 446.78, 254.95, 448.62, 244.15, 449.64, 237.42, 449.43, 234.56, 447.19, 234.77, 444.33, 235.58, 443.11, 233.75, 438.01, 226.41, 434.75, 221.1, 432.3, 218.45, 430.06, 208.46, 430.67, 202.75, 428.23, 190.93, 423.94, 194.19, 420.07]], "area": 599.3478000000008, "iscrowd": 0, "image_id": 176587, "bbox": [190.93, 419.66, 75.65, 29.98], "category_id": 50, "id": 704326}, {"segmentation": [[160.07, 304.87, 146.85, 309.03, 143.6, 306.86, 142.15, 299.44, 138.89, 295.82, 115.18, 293.11, 102.69, 291.3, 98.17, 289.12, 97.81, 285.87, 97.99, 283.88, 99.98, 282.61, 112.1, 282.61, 138.17, 286.41, 153.55, 286.59, 165.68, 288.4, 175.27, 289.12, 177.98, 291.84, 178.53, 294.55, 174.36, 300.53]], "area": 1012.8245999999997, "iscrowd": 0, "image_id": 64492, "bbox": [97.81, 282.61, 80.72, 26.42], "category_id": 50, "id": 704813}, {"segmentation": [[361.38, 368.66, 364.23, 367.95, 368.5, 366.17, 371.7, 363.77, 372.95, 359.41, 373.04, 356.21, 370.64, 353.72, 366.63, 352.12, 362.1, 353.54, 358.09, 357.46, 355.42, 361.73, 357.11, 365.82, 357.65, 368.49]], "area": 205.81929999999988, "iscrowd": 0, "image_id": 561406, "bbox": [355.42, 352.12, 17.62, 16.54], "category_id": 50, "id": 705555}, {"segmentation": [[68.72, 151.48, 69.74, 130.74, 68.22, 119.86, 53.54, 96.08, 42.41, 96.84, 37.86, 102.91, 57.85, 162.87]], "area": 1205.4089, "iscrowd": 0, "image_id": 333181, "bbox": [37.86, 96.08, 31.88, 66.79], "category_id": 50, "id": 705745}, {"segmentation": [[316.18, 25.48, 305.46, 6.32, 313.9, 7.62, 321.7, 22.88, 326.89, 29.7, 336.31, 51.45, 336.63, 52.42, 335.98, 54.05, 332.74, 54.37]], "area": 328.79154999999935, "iscrowd": 0, "image_id": 333181, "bbox": [305.46, 6.32, 31.17, 48.05], "category_id": 50, "id": 706392}, {"segmentation": [[329.18, 168.38, 329.79, 188.2, 325.91, 191.06, 327.75, 193.72, 332.04, 194.54, 334.08, 192.9, 334.08, 190.86, 331.22, 187.79, 332.24, 170.83, 332.65, 167.15, 331.02, 165.93, 329.99, 165.93, 329.79, 166.34]], "area": 88.02449999999982, "iscrowd": 0, "image_id": 290153, "bbox": [325.91, 165.93, 8.17, 28.61], "category_id": 50, "id": 707077}, {"segmentation": [[303.37, 133.21, 325.53, 139.78, 329.2, 139.93, 335.46, 145.74, 340.81, 146.05, 344.94, 146.5, 349.98, 144.67, 353.65, 141.77, 351.97, 137.18, 347.23, 133.97, 339.28, 135.04, 333.17, 137.64, 318.04, 132.6, 300.17, 125.72, 296.8, 127.56, 297.26, 129.69, 304.44, 132.6, 304.9, 133.21]], "area": 375.75030000000095, "iscrowd": 0, "image_id": 34356, "bbox": [296.8, 125.72, 56.85, 20.78], "category_id": 50, "id": 707735}, {"segmentation": [[588.57, 159.32, 586.28, 153.8, 587.04, 148.47, 590.28, 140.86, 596.75, 135.53, 599.8, 137.05, 602.27, 140.29, 603.8, 147.14, 603.8, 153.61, 601.89, 157.61, 600.75, 160.09, 596.56, 157.04, 592.76, 157.42, 590.28, 158.94]], "area": 307.3043499999996, "iscrowd": 0, "image_id": 223838, "bbox": [586.28, 135.53, 17.52, 24.56], "category_id": 50, "id": 707890}, {"segmentation": [[451.89, 141.7, 458.59, 124.46, 472.96, 90.0, 479.66, 74.68, 506.46, 39.25, 520.83, 17.23, 529.44, 5.74, 526.57, 0.0, 520.83, 0.0, 516.04, 4.79, 504.55, 22.98, 487.32, 40.21, 471.04, 66.06, 455.72, 77.55, 446.15, 87.12, 435.62, 97.65, 427.0, 109.14, 421.26, 122.55, 434.66, 132.12, 449.02, 143.61]], "area": 3105.320949999999, "iscrowd": 0, "image_id": 64454, "bbox": [421.26, 0.0, 108.18, 143.61], "category_id": 50, "id": 708208}, {"segmentation": [[121.57, 214.89, 126.73, 216.08, 131.49, 217.67, 135.46, 217.67, 139.42, 217.67, 144.58, 217.67, 148.55, 217.67, 155.29, 218.46, 155.29, 223.22, 153.7, 224.81, 147.36, 226.0, 141.01, 226.0, 137.44, 226.0, 133.87, 223.22, 131.89, 220.84, 127.92, 218.86, 123.95, 217.67, 121.97, 216.48]], "area": 196.61180000000022, "iscrowd": 0, "image_id": 392725, "bbox": [121.57, 214.89, 33.72, 11.11], "category_id": 50, "id": 708237}, {"segmentation": [[419.83, 205.9, 436.96, 201.4, 453.64, 183.36, 453.19, 182.46, 436.06, 177.05, 411.71, 178.86, 403.6, 181.56, 403.6, 188.77]], "area": 943.9499499999993, "iscrowd": 0, "image_id": 14812, "bbox": [403.6, 177.05, 50.04, 28.85], "category_id": 51, "id": 709282}, {"segmentation": [[68.54, 52.81, 87.64, 95.51, 200.0, 93.26, 197.75, 47.19, 96.63, 46.07, 64.04, 50.56]], "area": 5806.319399999999, "iscrowd": 0, "image_id": 8223, "bbox": [64.04, 46.07, 135.96, 49.44], "category_id": 51, "id": 709850}, {"segmentation": [[227.86, 359.11, 219.88, 358.91, 212.92, 361.57, 208.42, 365.25, 208.22, 368.73, 209.24, 371.8, 211.49, 377.94, 215.38, 381.41, 216.4, 382.03, 216.4, 383.67, 218.65, 385.92, 225.2, 386.73, 230.32, 385.1, 232.16, 382.64, 232.36, 381.01, 236.86, 376.91, 239.32, 368.73, 239.32, 364.43, 236.04, 361.16, 230.93, 359.32, 228.27, 359.32]], "area": 649.8867000000002, "iscrowd": 0, "image_id": 480818, "bbox": [208.22, 358.91, 31.1, 27.82], "category_id": 51, "id": 710201}, {"segmentation": [[381.85, 301.04, 382.46, 311.29, 391.5, 316.71, 393.91, 317.91, 396.32, 338.4, 430.66, 348.65, 461.4, 345.63, 471.64, 332.98, 476.46, 315.5, 473.45, 300.44, 459.59, 287.18, 440.91, 285.98, 410.78, 285.98, 393.91, 290.2]], "area": 4691.599799999996, "iscrowd": 0, "image_id": 561406, "bbox": [381.85, 285.98, 94.61, 62.67], "category_id": 51, "id": 710716}, {"segmentation": [[275.04, 203.04, 285.57, 200.56, 296.73, 200.25, 296.73, 200.25, 296.11, 199.94, 305.4, 201.49, 305.4, 201.49, 306.02, 201.18, 302.92, 212.02, 298.28, 216.67, 282.79, 217.29, 276.9, 210.16, 274.73, 203.04]], "area": 413.3758999999998, "iscrowd": 0, "image_id": 280765, "bbox": [274.73, 199.94, 31.29, 17.35], "category_id": 51, "id": 710831}, {"segmentation": [[340.44, 122.44, 332.37, 156.73, 341.79, 195.7, 352.54, 218.55, 380.1, 236.03, 397.57, 242.75, 415.04, 243.42, 443.94, 234.01, 465.45, 211.16, 477.55, 178.23, 478.23, 146.64, 466.12, 111.69, 443.94, 90.85, 421.09, 74.73, 382.12, 77.41, 352.54, 98.25, 339.09, 119.09]], "area": 19042.8246, "iscrowd": 0, "image_id": 371808, "bbox": [332.37, 74.73, 145.86, 168.69], "category_id": 51, "id": 711189}, {"segmentation": [[458.58, 401.93, 462.15, 411.12, 467.25, 415.2, 474.91, 415.2, 484.6, 408.05, 489.19, 401.42, 489.7, 400.4, 478.48, 397.85, 470.32, 393.77, 458.07, 392.24, 458.07, 403.97]], "area": 472.8874000000005, "iscrowd": 0, "image_id": 95880, "bbox": [458.07, 392.24, 31.63, 22.96], "category_id": 51, "id": 712144}, {"segmentation": [[22.92, 234.59, 29.61, 272.79, 51.58, 309.09, 85.96, 337.74, 139.45, 364.49, 202.49, 363.53, 253.12, 337.74, 261.71, 276.61, 273.17, 249.87, 298.01, 225.99, 304.7, 213.57, 292.28, 159.13, 277.0, 125.7, 254.07, 108.51, 201.54, 85.58, 158.56, 81.76, 84.05, 105.64, 27.7, 175.37, 24.83, 235.54]], "area": 59917.630399999995, "iscrowd": 0, "image_id": 294734, "bbox": [22.92, 81.76, 281.78, 282.73], "category_id": 51, "id": 712350}, {"segmentation": [[262.58, 1.07, 216.69, 27.75, 196.4, 60.84, 190.0, 91.8, 196.4, 128.09, 203.88, 155.84, 228.43, 170.79, 257.25, 188.93, 282.87, 211.35, 295.67, 217.75, 344.78, 212.42, 392.81, 183.6, 430.17, 115.28, 417.36, 66.18, 399.21, 32.02, 373.6, 16.01, 347.98, 2.13, 265.79, 0.0]], "area": 39450.1125, "iscrowd": 0, "image_id": 572602, "bbox": [190.0, 0.0, 240.17, 217.75], "category_id": 51, "id": 712556}, {"segmentation": [[278.23, 290.96, 282.93, 302.97, 286.58, 311.32, 300.42, 310.28, 305.91, 310.8, 308.78, 314.72, 309.56, 324.12, 309.82, 335.35, 312.17, 337.17, 325.49, 335.87, 336.98, 330.39, 343.77, 325.95, 352.91, 315.5, 356.3, 294.61, 359.96, 290.17, 358.13, 283.38, 357.09, 282.86, 351.6, 290.44, 348.47, 295.14, 345.33, 296.18, 344.29, 294.87, 351.6, 282.6, 350.82, 278.42, 346.12, 277.64, 340.63, 283.91, 332.8, 292.26, 328.62, 296.18, 325.49, 296.18, 321.31, 292.26, 324.97, 288.87, 330.97, 285.73, 337.24, 282.6, 342.72, 276.86, 341.16, 275.29, 320.79, 273.46, 295.72, 275.29, 280.84, 285.47, 278.23, 290.44]], "area": 3256.094400000001, "iscrowd": 0, "image_id": 561406, "bbox": [278.23, 273.46, 81.73, 63.71], "category_id": 51, "id": 712728}, {"segmentation": [[595.32, 379.11, 596.81, 381.81, 600.86, 385.32, 606.0, 388.16, 608.57, 391.4, 615.32, 393.43, 621.0, 393.3, 625.46, 391.81, 631.41, 391.13, 635.73, 387.89, 636.0, 385.59, 635.59, 382.48, 631.81, 378.97, 626.54, 375.46, 626.54, 375.46, 621.41, 373.16, 621.41, 373.16, 615.86, 371.81, 611.95, 371.27, 606.41, 370.59, 601.95, 370.46, 599.51, 370.73, 597.76, 372.08, 596.41, 373.43, 596.41, 373.43, 595.19, 374.65, 595.05, 376.81, 595.19, 379.65]], "area": 663.8368500000001, "iscrowd": 0, "image_id": 130624, "bbox": [595.05, 370.46, 40.95, 22.97], "category_id": 51, "id": 713660}, {"segmentation": [[321.17, 203.85, 287.09, 198.17, 260.11, 172.61, 242.36, 142.79, 244.49, 115.81, 251.59, 97.34, 258.69, 89.53, 255.85, 80.3, 273.6, 63.97, 299.87, 59.71, 309.81, 41.96, 317.62, 43.38, 330.4, 37.7, 346.73, 39.83, 366.62, 34.86, 372.3, 34.86, 395.02, 35.57, 386.5, 44.8, 413.48, 54.74, 413.48, 75.33, 417.74, 100.89, 415.61, 120.07, 409.93, 137.82, 404.25, 152.02, 380.82, 172.61, 361.64, 189.65, 332.53, 203.14, 323.3, 205.27]], "area": 22291.4015, "iscrowd": 0, "image_id": 268406, "bbox": [242.36, 34.86, 175.38, 170.41], "category_id": 51, "id": 714302}, {"segmentation": [[48.65, 362.7, 46.49, 362.7, 44.32, 372.43, 54.05, 377.84, 62.7, 386.49, 76.76, 386.49, 85.41, 382.16, 96.22, 367.03, 102.7, 360.54, 96.22, 352.97, 85.41, 354.05, 71.35, 355.14, 59.46, 357.3, 49.73, 361.62]], "area": 1296.94655, "iscrowd": 0, "image_id": 185591, "bbox": [44.32, 352.97, 58.38, 33.52], "category_id": 51, "id": 715033}, {"segmentation": [[603.1, 254.1, 593.69, 252.03, 583.54, 251.09, 575.27, 250.9, 569.06, 251.84, 565.67, 254.47, 565.49, 257.86, 566.62, 262.94, 590.31, 268.2, 603.29, 270.46, 617.39, 274.03, 620.21, 267.83, 622.84, 264.07, 621.15, 259.93, 610.24, 255.42, 602.72, 254.1]], "area": 834.6657000000001, "iscrowd": 0, "image_id": 472861, "bbox": [565.49, 250.9, 57.35, 23.13], "category_id": 51, "id": 715658}, {"segmentation": [[342.94, 320.15, 323.77, 290.33, 323.77, 250.92, 337.61, 216.84, 364.24, 196.6, 400.45, 177.43, 443.05, 188.08, 475.0, 215.77, 489.91, 251.98, 494.17, 285.0, 480.33, 321.21, 432.4, 352.1, 403.64, 352.1, 372.76, 345.71, 353.59, 333.99, 346.13, 322.28]], "area": 22688.991650000004, "iscrowd": 0, "image_id": 572602, "bbox": [323.77, 177.43, 170.4, 174.67], "category_id": 51, "id": 715661}, {"segmentation": [[411.64, 183.8, 461.42, 192.42, 493.01, 206.78, 529.39, 234.54, 553.32, 263.26, 570.55, 301.55, 576.3, 343.67, 576.3, 373.35, 567.68, 399.2, 557.15, 421.21, 277.62, 421.21, 262.3, 391.54, 255.6, 343.67, 258.47, 309.21, 259.43, 276.66, 273.79, 248.9, 305.38, 219.22, 336.97, 198.16, 383.88, 183.8, 413.56, 182.84]], "area": 64678.55699999999, "iscrowd": 0, "image_id": 294734, "bbox": [255.6, 182.84, 320.7, 238.37], "category_id": 51, "id": 715745}, {"segmentation": [[328.83, 260.7, 344.59, 274.21, 352.48, 289.98, 359.23, 304.62, 365.99, 323.76, 368.24, 349.66, 367.12, 381.19, 354.73, 419.48, 335.59, 445.38, 315.32, 464.53, 288.29, 479.17, 268.02, 490.43, 256.76, 494.93, 87.84, 494.93, 52.93, 482.55, 33.78, 472.41, 20.27, 460.02, 4.5, 443.13, 2.25, 435.25, 0.0, 276.46, 12.39, 259.57, 37.16, 241.55, 61.94, 225.79, 94.59, 212.27, 132.88, 205.52, 163.29, 203.27, 207.21, 206.64, 238.74, 211.15, 279.28, 226.91, 293.92, 233.67, 244.37, 264.08, 251.13, 270.83, 301.8, 241.55, 314.19, 250.56, 265.77, 278.72, 260.14, 295.61, 323.2, 259.57]], "area": 90118.739, "iscrowd": 0, "image_id": 8223, "bbox": [0.0, 203.27, 368.24, 291.66], "category_id": 51, "id": 715930}, {"segmentation": [[392.84, 191.6, 393.38, 197.92, 395.01, 199.0, 397.0, 200.81, 399.89, 202.98, 402.05, 202.44, 402.78, 201.71, 403.32, 196.3, 404.04, 191.6, 403.5, 190.7]], "area": 101.54275000000014, "iscrowd": 0, "image_id": 102315, "bbox": [392.84, 190.7, 11.2, 12.28], "category_id": 51, "id": 716639}, {"segmentation": [[453.34, 149.42, 450.39, 145.0, 448.17, 139.65, 454.26, 139.28, 464.21, 140.2, 471.04, 140.39, 468.82, 143.34, 466.06, 149.97, 460.89, 151.26, 454.81, 150.34]], "area": 187.83655000000016, "iscrowd": 0, "image_id": 543882, "bbox": [448.17, 139.28, 22.87, 11.98], "category_id": 51, "id": 716645}, {"segmentation": [[406.95, 295.72, 415.99, 297.16, 422.67, 298.07, 428.99, 295.72, 423.39, 306.01, 421.4, 308.72, 412.19, 307.82, 406.95, 296.8]], "area": 175.50924999999984, "iscrowd": 0, "image_id": 480818, "bbox": [406.95, 295.72, 22.04, 13.0], "category_id": 51, "id": 716660}, {"segmentation": [[477.81, 446.89, 479.7, 481.99, 467.37, 507.61, 455.03, 527.54, 433.21, 544.62, 415.18, 552.21, 391.46, 551.26, 365.84, 540.82, 350.66, 523.74, 338.32, 498.12, 335.48, 475.35, 338.32, 457.32, 344.97, 434.55, 364.89, 407.98, 386.72, 393.75, 407.59, 387.11, 438.9, 390.9, 463.57, 409.88, 472.11, 427.91, 477.81, 445.94]], "area": 18333.2503, "iscrowd": 0, "image_id": 371808, "bbox": [335.48, 387.11, 144.22, 165.1], "category_id": 51, "id": 716717}, {"segmentation": [[260.02, 244.17, 266.24, 256.6, 274.53, 256.6, 281.78, 245.2, 279.71, 245.2, 266.24, 242.1]], "area": 201.8045000000002, "iscrowd": 0, "image_id": 480818, "bbox": [260.02, 242.1, 21.76, 14.5], "category_id": 51, "id": 716751}, {"segmentation": [[40.34, 104.99, 40.34, 78.48, 54.17, 62.35, 70.3, 53.13, 106.03, 31.23, 187.85, 10.49, 238.56, 10.49, 292.73, 15.1, 328.45, 30.08, 345.74, 45.06, 349.2, 84.25, 339.98, 119.97, 313.47, 167.22, 296.18, 191.42, 286.96, 200.64, 286.96, 209.86, 261.61, 232.91, 224.73, 242.13, 187.85, 239.83, 159.04, 238.68, 150.97, 229.46, 140.6, 212.17, 100.26, 183.36, 54.17, 128.04]], "area": 52728.07365, "iscrowd": 0, "image_id": 486638, "bbox": [40.34, 10.49, 308.86, 231.64], "category_id": 51, "id": 717426}, {"segmentation": [[322.71, 36.28, 313.79, 37.62, 305.67, 39.58, 299.78, 41.63, 296.83, 44.22, 296.03, 46.09, 296.56, 51.63, 299.06, 59.66, 300.49, 61.71, 303.97, 71.79, 307.36, 77.68, 309.15, 79.56, 318.25, 89.37, 323.33, 92.23, 329.49, 95.71, 335.92, 97.58, 342.61, 98.3, 350.55, 97.94, 355.29, 94.72, 362.42, 91.7, 371.2, 88.96, 377.23, 87.86, 382.72, 86.22, 390.95, 69.31, 394.35, 61.01, 397.37, 51.2, 398.69, 43.27, 393.03, 39.69, 385.11, 37.05, 372.09, 34.97, 356.43, 34.22, 341.34, 34.41, 330.02, 34.78]], "area": 4997.84645, "iscrowd": 0, "image_id": 333181, "bbox": [296.03, 34.22, 102.66, 64.08], "category_id": 51, "id": 717546}, {"segmentation": [[142.56, 25.56, 149.56, 25.56, 155.93, 25.72, 162.78, 27.47, 164.69, 28.74, 166.12, 30.17, 164.85, 34.47, 163.57, 37.66, 161.66, 38.77, 150.04, 39.09, 143.2, 38.29]], "area": 277.4147000000001, "iscrowd": 0, "image_id": 222572, "bbox": [142.56, 25.56, 23.56, 13.53], "category_id": 51, "id": 718516}, {"segmentation": [[206.17, 369.5, 201.88, 354.47, 214.77, 344.8, 229.8, 341.58, 251.28, 344.8, 259.87, 351.24, 259.87, 358.76, 252.35, 371.65, 245.91, 383.46, 230.87, 384.53, 214.77, 377.02]], "area": 1820.3558999999989, "iscrowd": 0, "image_id": 561406, "bbox": [201.88, 341.58, 57.99, 42.95], "category_id": 51, "id": 1037846}, {"segmentation": [[537.96, 168.55, 541.86, 175.62, 544.91, 177.08, 554.54, 177.94, 559.66, 178.79, 562.71, 176.96, 566.97, 171.47, 566.61, 169.4, 564.17, 168.55, 562.71, 165.5, 561.0, 165.5, 556.73, 165.5, 555.88, 165.5, 551.0, 165.5, 546.25, 164.77, 543.2, 164.4, 542.1, 164.53, 540.28, 165.74, 538.2, 167.57]], "area": 305.99715000000003, "iscrowd": 0, "image_id": 543882, "bbox": [537.96, 164.4, 29.01, 14.39], "category_id": 51, "id": 1038200}, {"segmentation": [[136.95, 304.84, 136.95, 288.06, 151.76, 276.22, 179.39, 273.26, 207.03, 278.19, 220.84, 281.15, 227.75, 294.97, 224.79, 310.76, 196.17, 316.68, 173.47, 317.67, 164.59, 335.43, 159.65, 340.37, 155.7, 330.5]], "area": 3681.95415, "iscrowd": 0, "image_id": 111705, "bbox": [136.95, 273.26, 90.8, 67.11], "category_id": 51, "id": 1038257}, {"segmentation": [[322.24, 492.76, 348.02, 513.38, 398.54, 530.91, 444.95, 527.82, 424.32, 505.13, 445.98, 508.23, 454.23, 516.48, 477.94, 497.92, 480.0, 477.29, 474.85, 453.58, 459.38, 427.8, 426.39, 416.46, 400.61, 406.14, 386.17, 435.02, 342.86, 469.04, 343.89, 486.57, 325.33, 490.7]], "area": 12001.84235, "iscrowd": 0, "image_id": 111705, "bbox": [322.24, 406.14, 157.76, 124.77], "category_id": 51, "id": 1038371}, {"segmentation": [[262.47, 337.34, 287.14, 324.51, 313.79, 318.59, 348.33, 316.62, 376.95, 329.45, 393.73, 348.2, 401.62, 369.91, 400.64, 386.69, 392.74, 388.67, 281.22, 360.04, 261.48, 348.2]], "area": 6365.469000000003, "iscrowd": 0, "image_id": 111705, "bbox": [261.48, 316.62, 140.14, 72.05], "category_id": 51, "id": 1038470}, {"segmentation": [[177.98, 240.09, 175.83, 235.36, 179.27, 234.08, 191.08, 233.65, 190.0, 237.3, 188.93, 238.58]], "area": 71.35334999999998, "iscrowd": 0, "image_id": 579659, "bbox": [175.83, 233.65, 15.25, 6.44], "category_id": 51, "id": 1038473}, {"segmentation": [[58.4, 311.12, 28.72, 236.45, 79.46, 217.31, 137.85, 213.48, 160.83, 218.27, 172.31, 229.75, 164.66, 241.24, 164.66, 261.34, 164.66, 291.98, 141.68, 304.42, 107.22, 316.87, 86.16, 318.78]], "area": 11300.0972, "iscrowd": 0, "image_id": 333181, "bbox": [28.72, 213.48, 143.59, 105.3], "category_id": 51, "id": 1038644}, {"segmentation": [[412.6, 77.54, 403.98, 105.3, 403.02, 143.6, 420.26, 181.89, 465.25, 198.16, 532.26, 235.5, 545.66, 255.6, 585.87, 250.81, 613.63, 236.45, 637.56, 220.18, 640.0, 41.16, 586.83, 3.83, 490.14, 2.87, 458.55, 24.89, 429.83, 49.78]], "area": 46866.9762, "iscrowd": 0, "image_id": 294734, "bbox": [403.02, 2.87, 236.98, 252.73], "category_id": 51, "id": 1038689}, {"segmentation": [[467.91, 145.91, 467.22, 147.85, 466.97, 148.48, 466.97, 148.48, 470.35, 152.42, 471.42, 153.43, 470.98, 154.12, 472.36, 155.5, 477.68, 156.06, 481.88, 155.87, 482.76, 155.06, 485.77, 149.86, 487.02, 147.54, 486.64, 145.47, 484.76, 145.22, 482.01, 145.41, 475.55, 145.72, 471.6, 145.53, 469.03, 146.1, 469.03, 146.1]], "area": 162.75494999999967, "iscrowd": 0, "image_id": 543882, "bbox": [466.97, 145.22, 20.05, 10.84], "category_id": 51, "id": 1038727}, {"segmentation": [[441.32, 265.28, 447.5, 319.5, 458.48, 343.52, 479.07, 360.0, 509.96, 360.0, 545.65, 343.52, 560.75, 335.97, 571.73, 313.32, 581.34, 265.96, 559.38, 252.24, 534.67, 232.33, 472.21, 244.0, 453.68, 244.0, 446.81, 272.83]], "area": 13516.36755, "iscrowd": 0, "image_id": 333181, "bbox": [441.32, 232.33, 140.02, 127.67], "category_id": 51, "id": 1039154}, {"segmentation": [[196.2, 388.07, 178.46, 390.29, 171.81, 370.33, 162.93, 359.98, 154.06, 347.41, 162.93, 325.23, 177.72, 316.36, 210.25, 310.44, 236.87, 312.66, 259.78, 331.88, 262.0, 345.93, 258.31, 350.37, 236.87, 347.41, 210.99, 359.24, 219.86, 376.98, 193.98, 388.07]], "area": 5143.333499999999, "iscrowd": 0, "image_id": 111705, "bbox": [154.06, 310.44, 107.94, 79.85], "category_id": 51, "id": 1039872}, {"segmentation": [[119.55, 159.04, 83.26, 156.91, 49.1, 135.56, 25.62, 96.07, 36.29, 54.44, 75.79, 14.94, 106.74, 5.34, 141.97, 11.74, 170.79, 25.62, 192.13, 52.3, 190.0, 93.93, 176.12, 135.56, 131.29, 156.91]], "area": 19448.686599999997, "iscrowd": 0, "image_id": 572602, "bbox": [25.62, 5.34, 166.51, 153.7], "category_id": 51, "id": 1040096}, {"segmentation": [[237.3, 213.63, 239.73, 217.81, 242.97, 220.64, 243.91, 221.31, 245.39, 222.53, 249.98, 222.53, 253.21, 222.53, 254.83, 222.26, 256.05, 220.64, 261.17, 218.21, 262.11, 213.9, 260.23, 210.12, 259.42, 209.04, 255.37, 208.64, 253.62, 208.91, 251.19, 207.56, 248.36, 207.56, 246.34, 208.5, 243.78, 209.18, 241.48, 209.04, 240.14, 211.88, 238.79, 209.85, 237.98, 211.74, 237.17, 213.09]], "area": 277.3737500000002, "iscrowd": 0, "image_id": 135149, "bbox": [237.17, 207.56, 24.94, 14.97], "category_id": 51, "id": 1040175}, {"segmentation": [[322.48, 238.83, 330.09, 250.09, 338.61, 251.92, 342.87, 254.96, 350.78, 256.18, 360.22, 252.22, 363.57, 243.7, 366.0, 236.09, 363.57, 233.05, 350.48, 230.92, 338.3, 229.09, 327.04, 232.14, 321.87, 236.7, 323.69, 238.83]], "area": 840.2972000000003, "iscrowd": 0, "image_id": 543882, "bbox": [321.87, 229.09, 44.13, 27.09], "category_id": 51, "id": 1040215}, {"segmentation": [[0.0, 171.36, 2.87, 217.31, 55.52, 228.8, 113.92, 201.03, 136.89, 163.7, 133.07, 140.72, 115.83, 126.36, 69.88, 127.32, 71.8, 160.83, 60.31, 156.04, 45.95, 125.41, 7.66, 131.15, 3.83, 152.21, 1.91, 174.23]], "area": 10667.075850000001, "iscrowd": 0, "image_id": 333181, "bbox": [0.0, 125.41, 136.89, 103.39], "category_id": 51, "id": 1040324}, {"segmentation": [[112.03, 158.49, 133.89, 156.13, 152.5, 156.72, 156.05, 166.77, 161.66, 168.54, 166.1, 169.72, 168.46, 167.95, 170.82, 165.88, 173.48, 163.22, 177.03, 169.72, 175.25, 174.45, 172.0, 176.22, 166.39, 179.77, 161.37, 183.61, 158.71, 186.56, 156.35, 188.34, 153.39, 189.22, 145.41, 191.0, 136.55, 191.88, 130.64, 192.18, 123.55, 191.59, 119.12, 191.0, 116.46, 190.7, 112.32, 189.52, 108.19, 187.45, 104.64, 181.54, 93.41, 175.93, 91.34, 170.9, 91.34, 170.02, 91.94, 167.95, 99.91, 161.45]], "area": 2141.1272500000005, "iscrowd": 0, "image_id": 111705, "bbox": [91.34, 156.13, 85.69, 36.05], "category_id": 51, "id": 1040507}, {"segmentation": [[222.02, 469.66, 95.0, 469.66, 59.78, 456.85, 28.82, 420.56, 3.2, 359.72, 0.0, 290.34, 22.42, 224.16, 59.78, 186.8, 104.61, 165.45, 175.06, 152.64, 204.94, 157.98, 268.99, 195.34, 304.21, 235.9, 322.36, 274.33, 322.36, 345.84, 308.48, 393.88, 274.33, 436.57, 232.7, 466.46]], "area": 82973.99345, "iscrowd": 0, "image_id": 572602, "bbox": [0.0, 152.64, 322.36, 317.02], "category_id": 51, "id": 1040573}, {"segmentation": [[408.22, 339.43, 385.18, 340.0, 372.51, 327.33, 331.03, 312.93, 318.94, 297.38, 336.22, 274.33, 363.29, 272.03, 397.86, 274.33, 426.66, 287.01, 433.0, 289.31, 423.2, 295.65, 420.32, 315.81, 415.71, 335.39, 409.95, 341.73, 401.89, 340.58]], "area": 5129.671150000001, "iscrowd": 0, "image_id": 111705, "bbox": [318.94, 272.03, 114.06, 69.7], "category_id": 51, "id": 1040740}, {"segmentation": [[423.27, 194.08, 445.62, 184.59, 453.26, 173.13, 450.29, 165.49, 427.79, 152.75, 405.72, 146.38, 379.82, 145.96, 347.56, 153.18, 338.22, 158.69, 341.62, 170.16, 352.23, 179.92, 365.39, 187.14, 375.15, 192.23, 386.19, 193.93, 423.97, 193.5]], "area": 4144.115999999999, "iscrowd": 0, "image_id": 543882, "bbox": [338.22, 145.96, 115.04, 48.12], "category_id": 51, "id": 1040898}, {"segmentation": [[301.42, 125.1, 315.02, 122.3, 321.42, 120.5, 326.21, 117.51, 331.21, 114.11, 340.61, 110.71, 347.2, 104.91, 357.8, 110.91, 370.39, 120.5, 379.99, 126.9, 388.39, 129.3, 396.38, 132.7, 397.18, 137.9, 388.39, 147.29, 357.0, 150.29, 341.41, 153.09, 324.81, 150.69, 310.82, 144.29, 297.63, 133.7, 299.23, 125.7]], "area": 2830.1845999999996, "iscrowd": 0, "image_id": 543882, "bbox": [297.63, 104.91, 99.55, 48.18], "category_id": 51, "id": 1041147}, {"segmentation": [[345.83, 553.9, 281.26, 540.99, 269.78, 519.46, 269.78, 502.24, 248.25, 502.24, 252.56, 535.25, 238.21, 559.64, 212.38, 566.82, 166.46, 556.77, 150.67, 545.29, 156.41, 520.9, 107.62, 499.37, 106.19, 473.54, 129.15, 457.76, 144.93, 450.58, 140.63, 417.58, 162.15, 387.44, 183.68, 381.7, 206.64, 391.75, 210.94, 406.1, 215.25, 407.53, 218.12, 378.83, 232.47, 374.53, 262.6, 374.53, 275.52, 384.57, 281.26, 403.23, 294.17, 384.57, 332.91, 386.01, 358.74, 403.23, 363.05, 426.19, 354.44, 453.45, 327.17, 456.32, 298.48, 433.36, 291.3, 433.36, 294.17, 450.58, 305.65, 467.8, 309.96, 479.28, 350.13, 479.28, 378.83, 497.94, 374.53, 526.64, 350.13, 552.47]], "area": 35139.77775000002, "iscrowd": 0, "image_id": 142, "bbox": [106.19, 374.53, 272.64, 192.29], "category_id": 52, "id": 1041642}, {"segmentation": [[300.34, 278.94, 338.72, 269.34, 357.91, 226.16, 367.51, 181.06, 398.21, 158.03, 462.5, 141.72, 496.09, 142.68, 486.49, 131.17, 453.87, 130.21, 436.6, 122.53, 395.33, 123.49, 348.32, 140.76, 305.14, 169.55, 280.19, 200.25, 268.67, 229.04, 263.88, 250.15]], "area": 12511.740650000003, "iscrowd": 0, "image_id": 297764, "bbox": [263.88, 122.53, 232.21, 156.41], "category_id": 52, "id": 1041708}, {"segmentation": [[443.53, 360.24, 435.11, 362.12, 429.3, 363.8, 427.61, 366.24, 427.43, 368.3, 421.62, 372.6, 420.69, 377.1, 418.25, 379.53, 411.7, 380.84, 409.45, 377.28, 408.7, 371.85, 410.95, 363.8, 417.69, 358.93, 421.06, 356.31, 430.24, 355.94, 440.16, 357.06, 443.16, 359.31]], "area": 399.1947000000002, "iscrowd": 0, "image_id": 510979, "bbox": [408.7, 355.94, 34.83, 24.9], "category_id": 52, "id": 1041888}, {"segmentation": [[3.91, 229.67, 0.55, 195.21, 15.68, 197.74, 25.76, 195.21, 34.17, 185.97, 36.69, 177.56, 49.29, 174.2, 66.94, 175.88, 87.96, 191.01, 94.68, 202.78, 83.75, 194.37, 66.94, 196.89, 62.74, 210.34, 53.5, 217.07, 39.21, 218.75, 27.44, 227.15, 24.08, 237.24, 9.79, 231.35, 3.07, 237.24, 4.75, 229.67]], "area": 2745.33085, "iscrowd": 0, "image_id": 382979, "bbox": [0.55, 174.2, 94.13, 63.04], "category_id": 52, "id": 1042151}, {"segmentation": [[81.56, 195.81, 81.56, 215.96, 90.2, 231.32, 109.39, 240.91, 118.98, 236.11, 142.97, 218.84, 145.85, 207.33, 142.01, 189.1, 159.29, 174.7, 177.52, 159.35, 181.36, 137.28, 213.02, 121.93, 229.33, 112.33, 228.37, 97.94, 239.89, 91.22, 270.59, 81.63, 274.43, 62.43, 292.66, 79.71, 332.96, 81.63, 341.6, 72.03, 347.36, 51.88, 339.68, 35.57, 327.21, 22.13, 306.1, 10.62, 291.7, 10.62, 274.43, 17.34, 268.67, 31.73, 266.76, 38.45, 248.52, 25.97, 228.37, 25.97, 216.86, 35.57, 203.42, 49.0, 206.3, 60.52, 206.3, 68.19, 197.67, 69.15, 169.84, 74.91, 162.16, 84.5, 149.69, 96.02, 156.41, 114.25, 156.41, 117.13, 135.3, 116.17, 119.94, 123.85, 108.43, 143.04, 108.43, 155.51, 118.02, 169.9, 111.31, 176.62, 99.79, 172.78, 90.2, 179.5, 80.6, 190.05]], "area": 18435.056600000004, "iscrowd": 0, "image_id": 114259, "bbox": [80.6, 10.62, 266.76, 230.29], "category_id": 52, "id": 1042188}, {"segmentation": [[120.24, 219.53, 192.54, 180.02, 254.76, 135.45, 282.51, 110.23, 269.06, 69.87, 247.2, 72.39, 242.99, 56.42, 248.04, 46.33, 267.38, 44.65, 285.87, 55.58, 311.94, 93.41, 339.69, 106.03, 356.5, 135.45, 356.5, 176.65, 338.85, 222.06, 279.99, 293.53, 209.36, 348.18, 152.19, 368.36, 49.61, 369.2, 9.25, 364.99, 82.4, 333.88, 128.64, 280.07]], "area": 43390.35075, "iscrowd": 0, "image_id": 484307, "bbox": [9.25, 44.65, 347.25, 324.55], "category_id": 52, "id": 1042722}, {"segmentation": [[209.18, 0.06, 180.4, 35.57, 157.37, 76.83, 157.37, 127.68, 183.27, 168.94, 237.01, 192.93, 260.04, 210.21, 314.73, 210.21, 338.72, 206.37, 347.36, 209.25, 337.76, 235.15, 372.31, 238.03, 391.5, 250.51, 465.38, 243.79, 522.96, 208.29, 553.66, 143.04, 544.07, 88.34, 522.0, 71.07, 492.25, 60.52, 476.9, 60.52, 455.79, 79.71, 434.68, 75.87, 434.68, 61.48, 429.88, 43.24, 406.85, 11.58, 399.17, 3.9, 223.58, 0.06]], "area": 71917.14825000001, "iscrowd": 0, "image_id": 222987, "bbox": [157.37, 0.06, 396.29, 250.45], "category_id": 52, "id": 1042732}, {"segmentation": [[573.4, 121.69, 562.88, 119.19, 550.36, 109.17, 524.32, 87.64, 522.32, 71.11, 522.32, 63.1, 513.8, 46.07, 504.79, 25.54, 504.29, 19.53, 528.33, 17.03, 548.36, 28.54, 560.38, 55.59, 578.9, 84.13, 581.91, 103.16, 578.4, 117.18]], "area": 4223.450349999997, "iscrowd": 0, "image_id": 16680, "bbox": [504.29, 17.03, 77.62, 104.66], "category_id": 52, "id": 1043011}, {"segmentation": [[388.2, 445.02, 377.9, 448.58, 365.61, 445.81, 356.9, 435.9, 354.52, 429.96, 351.74, 417.67, 355.31, 410.14, 362.05, 404.59, 373.94, 399.05, 385.83, 396.67, 390.19, 399.84, 399.7, 409.35, 400.09, 416.09, 392.17, 417.67, 378.69, 417.28, 379.49, 426.39, 387.81, 431.54, 390.98, 445.41]], "area": 1540.4932499999998, "iscrowd": 0, "image_id": 461530, "bbox": [351.74, 396.67, 48.35, 51.91], "category_id": 52, "id": 1043359}, {"segmentation": [[423.66, 161.0, 409.64, 159.75, 404.13, 153.74, 400.13, 138.22, 399.12, 123.69, 400.13, 99.66, 401.63, 80.13, 404.13, 66.6, 423.16, 61.6, 442.69, 63.1, 452.71, 72.11, 449.2, 122.19, 445.2, 146.23, 436.18, 160.75]], "area": 4558.810949999999, "iscrowd": 0, "image_id": 16680, "bbox": [399.12, 61.6, 53.59, 99.4], "category_id": 52, "id": 1043825}, {"segmentation": [[340.33, 263.1, 335.81, 279.67, 329.79, 293.22, 328.28, 305.27, 316.24, 305.27, 295.15, 327.86, 293.65, 344.42, 293.65, 351.95, 293.65, 376.04, 293.65, 377.55, 305.69, 360.99, 307.2, 341.41, 305.69, 323.34, 320.75, 321.83, 317.74, 354.96, 319.25, 367.01, 323.76, 388.09, 317.74, 398.63, 325.27, 410.68, 334.31, 412.19, 343.34, 382.07, 349.36, 373.03, 358.4, 364.0, 362.92, 284.19, 362.92, 275.15, 362.92, 272.14, 362.92, 266.11, 359.91, 263.1, 359.91, 263.1, 355.39, 263.1]], "area": 5408.558049999999, "iscrowd": 0, "image_id": 572326, "bbox": [293.65, 263.1, 69.27, 149.09], "category_id": 52, "id": 1043871}, {"segmentation": [[496.03, 66.34, 494.82, 107.47, 490.59, 121.99, 480.3, 137.11, 473.65, 144.98, 456.71, 143.77, 452.48, 136.51, 448.85, 132.88, 451.87, 62.1, 460.95, 59.08, 463.97, 50.01, 464.57, 40.93, 478.49, 54.85]], "area": 3622.879249999998, "iscrowd": 0, "image_id": 16680, "bbox": [448.85, 40.93, 47.18, 104.05], "category_id": 52, "id": 1044143}, {"segmentation": [[552.06, 157.96, 557.54, 171.26, 555.19, 183.01, 537.97, 183.01, 519.96, 194.75, 486.3, 201.8, 455.77, 211.19, 443.24, 219.02, 456.55, 235.46, 469.86, 257.38, 469.86, 277.73, 468.29, 284.78, 452.64, 287.91, 435.41, 289.47, 401.75, 285.56, 383.75, 275.38, 369.66, 262.07, 361.83, 237.81, 361.05, 216.67, 369.66, 184.57, 369.66, 177.53, 399.4, 159.52, 445.59, 146.21, 474.56, 141.52, 520.74, 149.35]], "area": 16483.733200000002, "iscrowd": 0, "image_id": 297764, "bbox": [361.05, 141.52, 196.49, 147.95], "category_id": 52, "id": 1044184}, {"segmentation": [[475.46, 4.77, 493.61, 18.08, 505.71, 32.59, 525.67, 65.26, 513.57, 74.33, 483.93, 56.79, 460.95, 35.62, 468.81, 26.55, 468.2, 19.89, 461.55, 17.47, 456.71, 13.84, 466.99, 8.4, 470.02, 4.16]], "area": 2171.245249999998, "iscrowd": 0, "image_id": 16680, "bbox": [456.71, 4.16, 68.96, 70.17], "category_id": 52, "id": 1044372}, {"segmentation": [[368.42, 213.88, 373.29, 212.91, 379.13, 211.93, 384.48, 208.53, 391.29, 206.58, 397.13, 203.66, 400.04, 202.69, 405.4, 201.72, 410.26, 200.26, 414.64, 198.31, 416.59, 197.83, 419.5, 198.31, 420.96, 203.18, 422.42, 207.07, 419.02, 209.5, 419.5, 210.96, 422.42, 212.42, 423.4, 215.83, 427.29, 216.8, 430.69, 216.8, 431.18, 215.83, 430.69, 209.99, 430.69, 203.66, 430.21, 201.23, 430.21, 198.8, 431.67, 197.83, 434.59, 197.34, 437.02, 196.85, 439.45, 196.37, 442.37, 196.37, 446.75, 196.37, 449.67, 199.29, 453.07, 201.72, 455.99, 203.66, 462.31, 205.61, 466.69, 209.02, 470.1, 212.91, 473.5, 218.75, 476.91, 223.12, 479.34, 226.04, 480.8, 228.96, 482.75, 236.26, 482.26, 243.56, 479.34, 245.99, 476.42, 247.93, 477.4, 251.83, 478.37, 255.23, 480.8, 261.56, 480.8, 268.37, 480.31, 276.64, 478.86, 285.39, 476.42, 297.07, 471.56, 304.85, 468.64, 308.74, 465.72, 310.2, 460.37, 312.15, 453.56, 312.15, 445.77, 308.26, 441.88, 307.29, 437.5, 311.66, 433.13, 311.66, 433.13, 314.1, 431.18, 320.91, 428.75, 326.74, 424.86, 332.1, 416.1, 337.93, 412.69, 343.77, 408.8, 347.18, 402.96, 347.18, 394.21, 344.26, 388.86, 340.85, 384.48, 336.47, 378.15, 331.61, 378.15, 327.23, 376.69, 323.34, 375.23, 316.53, 371.83, 318.96, 356.26, 320.91, 355.77, 321.39, 347.99, 315.07, 341.18, 305.83, 337.29, 299.99, 336.8, 291.72, 336.8, 282.96, 335.34, 278.1, 337.29, 272.74, 337.29, 270.8, 333.88, 266.42, 334.37, 260.1, 337.29, 254.26, 337.78, 249.88, 337.78, 246.96, 337.78, 242.58, 338.75, 238.69, 343.61, 236.74, 346.53, 235.29, 350.91, 230.42, 351.88, 229.93, 351.88, 225.07, 351.4, 222.15, 352.86, 222.15, 357.72, 219.72, 361.61, 218.75, 364.53, 217.29, 367.45, 216.31, 369.4, 214.37]], "area": 15949.757650000001, "iscrowd": 0, "image_id": 572602, "bbox": [333.88, 196.37, 148.87, 150.81], "category_id": 52, "id": 1044535}, {"segmentation": [[238.84, 289.07, 348.71, 282.93, 467.46, 256.32, 534.34, 244.71, 569.83, 250.17, 588.25, 250.86, 601.22, 273.38, 598.49, 290.44, 529.56, 335.48, 443.57, 372.33, 352.13, 390.08, 233.38, 396.9, 126.23, 376.43, 75.73, 332.07, 41.61, 272.7, 36.83, 257.0, 38.88, 222.88, 56.62, 196.26, 61.4, 130.06, 69.59, 113.68, 90.06, 115.73, 95.52, 129.38, 88.02, 196.26, 122.82, 237.21, 155.58, 267.24]], "area": 61523.5046, "iscrowd": 0, "image_id": 36417, "bbox": [36.83, 113.68, 564.39, 283.22], "category_id": 52, "id": 1044713}, {"segmentation": [[423.21, 121.95, 415.51, 113.74, 397.05, 115.28, 363.2, 109.13, 310.89, 111.18, 246.27, 139.9, 207.29, 179.9, 202.68, 211.7, 205.75, 238.37, 219.6, 247.08, 238.06, 250.67, 256.53, 245.55, 266.78, 239.39, 300.63, 170.67, 330.38, 150.15, 373.97, 130.67, 408.33, 124.51]], "area": 11935.786900000001, "iscrowd": 0, "image_id": 297764, "bbox": [202.68, 109.13, 220.53, 141.54], "category_id": 52, "id": 1044928}, {"segmentation": [[245.73, 290.61, 245.51, 290.19, 248.92, 290.19, 251.91, 290.4, 253.61, 290.83, 256.38, 290.83, 258.73, 291.25, 261.07, 291.25, 263.63, 291.25, 263.63, 291.25, 264.69, 290.83, 264.05, 294.88, 260.0, 296.58, 258.94, 297.65, 256.59, 298.93, 253.18, 298.93, 250.2, 297.22, 248.28, 295.94, 247.22, 294.88, 246.37, 294.02, 245.94, 293.38, 245.73, 292.75, 245.51, 292.11, 245.51, 291.89, 245.51, 291.89, 245.51, 291.68, 245.51, 291.68, 245.51, 291.68, 245.51, 291.68]], "area": 116.78200000000018, "iscrowd": 0, "image_id": 510979, "bbox": [245.51, 290.19, 19.18, 8.74], "category_id": 52, "id": 1045403}, {"segmentation": [[391.84, 108.2, 387.82, 107.2, 382.79, 105.19, 377.77, 86.1, 375.76, 75.05, 384.8, 62.99, 393.84, 52.94, 408.92, 46.91, 422.98, 44.9, 436.04, 53.95, 445.08, 72.03, 443.08, 86.1, 438.05, 98.15, 432.02, 104.18, 422.98, 111.22, 413.94, 115.23, 395.85, 114.23, 379.78, 108.2, 379.78, 108.2, 379.78, 108.2]], "area": 3634.5551500000006, "iscrowd": 0, "image_id": 114259, "bbox": [375.76, 44.9, 69.32, 70.33], "category_id": 52, "id": 1045783}, {"segmentation": [[402.89, 50.24, 391.84, 44.21, 379.78, 45.21, 363.7, 52.24, 355.67, 58.27, 347.63, 67.32, 346.62, 77.36, 348.63, 86.4, 355.67, 93.44, 361.69, 98.46, 368.73, 104.49, 381.79, 97.46, 377.77, 76.36, 387.82, 61.29, 391.84, 53.25, 399.87, 51.24], [411.93, 117.55, 418.96, 126.59, 423.99, 128.6, 427.0, 133.63, 434.03, 136.64, 436.04, 137.64, 428.0, 142.67, 423.99, 150.71, 421.98, 158.74, 422.98, 166.78, 423.99, 178.84, 442.07, 194.91, 456.14, 200.94, 472.21, 197.93, 467.19, 208.98, 465.18, 218.02, 465.18, 226.06, 467.19, 233.09, 480.25, 237.11, 490.3, 247.16, 490.3, 253.19, 506.37, 253.19, 495.32, 260.22, 493.31, 263.23, 491.3, 265.24, 489.29, 274.28, 486.28, 278.3, 486.28, 280.31, 485.27, 282.32, 484.27, 295.38, 492.31, 307.44, 497.33, 310.45, 501.35, 303.42, 523.45, 298.4, 548.57, 286.34, 551.58, 286.34, 550.58, 274.28, 539.53, 258.21, 528.48, 251.18, 518.43, 248.16, 517.42, 249.17, 527.47, 238.12, 531.49, 228.07, 531.49, 221.04, 531.49, 218.02, 526.47, 217.02, 523.45, 213.0, 520.44, 208.98, 517.42, 202.95, 515.41, 198.93, 515.41, 191.9, 508.38, 188.88, 504.36, 184.87, 500.34, 187.88, 495.32, 185.87, 491.3, 186.88, 484.27, 188.88, 490.3, 180.85, 491.3, 169.8, 490.3, 155.73, 485.27, 146.69, 476.23, 138.65, 467.19, 133.63, 455.13, 132.62, 451.11, 131.62, 459.15, 128.6, 467.19, 124.58, 471.21, 116.55, 474.22, 105.49, 474.22, 98.46, 472.21, 88.41, 469.2, 79.37, 465.18, 75.35, 461.16, 73.34, 457.14, 71.33, 448.1, 68.32, 445.08, 68.32, 445.08, 82.39, 442.07, 94.44, 436.04, 102.48, 431.02, 105.49, 423.99, 112.53, 416.95, 115.54, 414.94, 115.54]], "area": 13514.012399999998, "iscrowd": 0, "image_id": 114259, "bbox": [346.62, 44.21, 204.96, 266.24], "category_id": 52, "id": 1046507}, {"segmentation": [[435.52, 165.71, 446.57, 163.62, 459.7, 172.58, 462.09, 177.05, 464.77, 183.62, 462.98, 192.57, 459.7, 198.54, 415.23, 197.35, 414.33, 186.31, 415.53, 180.64, 418.81, 174.97, 425.68, 168.1, 432.84, 164.82]], "area": 1408.9850499999995, "iscrowd": 0, "image_id": 382979, "bbox": [414.33, 163.62, 50.44, 34.92], "category_id": 53, "id": 1047288}, {"segmentation": [[287.2, 399.68, 279.92, 398.15, 274.17, 390.1, 270.72, 381.68, 271.87, 374.02, 274.94, 370.57, 282.22, 365.21, 289.88, 364.44, 295.62, 364.82, 300.22, 365.97, 300.22, 367.51, 290.64, 374.4, 288.34, 380.15, 289.11, 399.3]], "area": 561.9944499999993, "iscrowd": 0, "image_id": 176587, "bbox": [270.72, 364.44, 29.5, 35.24], "category_id": 53, "id": 1047329}, {"segmentation": [[271.58, 238.67, 265.68, 271.96, 266.21, 284.31, 308.1, 350.35, 318.83, 355.18, 314.0, 370.75, 471.33, 375.0, 477.77, 366.46, 485.82, 375.0, 500.0, 375.0, 500.0, 176.38, 500.0, 169.94, 480.99, 145.78, 467.03, 160.28, 447.7, 193.03, 438.57, 196.25, 427.83, 240.28, 436.96, 277.86, 406.89, 244.57, 388.1, 226.86, 364.47, 248.33, 329.04, 229.0, 310.24, 218.8, 273.73, 237.59]], "area": 33605.18730000001, "iscrowd": 0, "image_id": 404869, "bbox": [265.68, 145.78, 234.32, 229.22], "category_id": 53, "id": 1047859}, {"segmentation": [[270.34, 269.07, 277.97, 269.34, 288.23, 276.18, 288.5, 279.34, 288.5, 286.97, 301.13, 289.34, 305.6, 289.07, 308.5, 279.07, 306.39, 263.55, 302.44, 258.28, 295.08, 254.07, 286.13, 253.55, 274.55, 260.39, 270.34, 266.44]], "area": 838.6783499999997, "iscrowd": 0, "image_id": 111705, "bbox": [270.34, 253.55, 38.16, 35.79], "category_id": 53, "id": 1047922}, {"segmentation": [[640.0, 199.3, 637.09, 201.95, 631.12, 182.06, 622.5, 160.85, 609.91, 150.25, 582.07, 143.62, 564.83, 142.29, 551.58, 144.28, 545.61, 148.92, 531.69, 142.29, 517.11, 126.38, 499.21, 111.14, 487.94, 105.17, 480.65, 103.85, 479.33, 114.45, 459.44, 117.77, 426.96, 130.36, 406.41, 154.89, 393.15, 186.7, 390.5, 212.56, 391.83, 224.49, 395.85, 257.2, 366.72, 249.17, 335.57, 246.15, 313.47, 247.16, 292.37, 249.17, 287.35, 252.18, 285.34, 232.09, 276.29, 203.96, 258.21, 166.78, 241.13, 149.7, 217.02, 139.65, 197.93, 134.63, 186.88, 109.51, 167.79, 85.4, 143.67, 65.31, 116.55, 55.26, 93.44, 50.24, 57.27, 54.25, 28.13, 73.34, 8.04, 90.42, 0.0, 105.49, 1.0, 208.98, 8.04, 214.0, 15.07, 216.01, 39.18, 203.96, 36.17, 230.08, 37.17, 254.19, 51.24, 293.37, 61.29, 322.51, 87.41, 352.65, 118.56, 365.71, 144.68, 368.73, 169.8, 351.65, 195.92, 347.63, 215.01, 339.59, 234.1, 364.71, 258.21, 391.84, 274.28, 400.88, 309.45, 411.93, 343.61, 420.97, 377.77, 419.97, 413.94, 412.93, 449.1, 379.78, 467.19, 346.62, 526.47, 352.65, 574.69, 346.62, 607.85, 321.51, 619.9, 358.68, 640.0, 392.84]], "area": 140817.95145000005, "iscrowd": 0, "image_id": 105697, "bbox": [0.0, 50.24, 640.0, 370.73], "category_id": 53, "id": 1048100}, {"segmentation": [[223.04, 132.45, 256.2, 81.21, 306.44, 70.16, 357.68, 73.18, 366.72, 77.19], [290.36, 250.0, 373.75, 252.01, 392.84, 253.02, 394.85, 236.94, 390.83, 222.88, 285.34, 251.01]], "area": 4945.7941500000015, "iscrowd": 0, "image_id": 105697, "bbox": [223.04, 70.16, 171.81, 182.86], "category_id": 53, "id": 1048178}, {"segmentation": [[322.36, 290.35, 314.22, 287.46, 311.33, 282.47, 311.07, 278.01, 311.07, 269.87, 316.06, 259.89, 320.26, 255.43, 325.77, 253.07, 335.22, 253.85, 339.42, 255.17, 341.79, 256.74, 344.67, 259.89, 346.25, 264.88, 347.3, 267.51, 348.09, 269.87, 349.4, 273.02, 335.48, 276.96, 324.46, 284.31]], "area": 890.4781, "iscrowd": 0, "image_id": 111705, "bbox": [311.07, 253.07, 38.33, 37.28], "category_id": 53, "id": 1048806}, {"segmentation": [[105.04, 216.85, 123.11, 187.48, 147.95, 171.67, 170.54, 167.15, 192.0, 168.28, 237.18, 184.09, 258.64, 205.55, 271.06, 239.44, 271.06, 266.54, 264.28, 293.65, 238.31, 291.39, 201.04, 284.61, 171.67, 273.32, 149.08, 262.59, 120.85, 231.53]], "area": 14550.637949999997, "iscrowd": 0, "image_id": 36417, "bbox": [105.04, 167.15, 166.02, 126.5], "category_id": 53, "id": 1048895}, {"segmentation": [[362.9, 269.55, 364.71, 261.61, 369.59, 254.56, 374.64, 250.77, 378.07, 250.77, 383.67, 251.68, 387.82, 252.22, 393.24, 253.66, 397.75, 258.18, 399.2, 264.13, 400.46, 271.0, 400.28, 274.61, 392.34, 273.89, 383.49, 272.44, 377.17, 271.9, 370.85, 271.72, 365.43, 271.72, 363.45, 271.72, 363.27, 269.37]], "area": 671.5929500000002, "iscrowd": 0, "image_id": 111705, "bbox": [362.9, 250.77, 37.56, 23.84], "category_id": 53, "id": 1049378}, {"segmentation": [[264.9, 188.16, 262.43, 192.65, 261.75, 194.23, 261.08, 197.15, 262.88, 199.4, 271.42, 199.17, 278.17, 199.4, 279.06, 196.03, 279.29, 189.51, 277.94, 187.26, 273.44, 186.36, 266.7, 185.91, 265.58, 185.91]], "area": 206.39660000000018, "iscrowd": 0, "image_id": 373765, "bbox": [261.08, 185.91, 18.21, 13.49], "category_id": 53, "id": 1049466}, {"segmentation": [[208.24, 57.04, 211.25, 63.81, 215.02, 64.94, 215.77, 71.72, 224.05, 73.98, 226.31, 72.85, 230.82, 73.6, 237.6, 73.98, 240.61, 73.22, 245.88, 70.97, 249.27, 66.83, 254.16, 67.2, 255.29, 62.69, 255.29, 60.05, 251.9, 57.04, 251.9, 51.77, 249.64, 48.76, 247.38, 47.25, 243.62, 47.63, 237.97, 49.89, 234.59, 45.0, 231.2, 43.49, 226.68, 43.49, 223.67, 48.01, 219.91, 45.37, 216.14, 45.75, 215.02, 48.76, 215.02, 50.27, 210.12, 52.15]], "area": 1038.7442999999996, "iscrowd": 0, "image_id": 543882, "bbox": [208.24, 43.49, 47.05, 30.49], "category_id": 53, "id": 1049999}, {"segmentation": [[260.91, 199.2, 254.81, 197.84, 252.09, 197.84, 249.72, 196.49, 239.55, 196.49, 227.67, 193.78, 224.62, 193.1, 223.27, 190.38, 227.34, 188.69, 236.49, 184.62, 242.6, 177.84, 250.74, 177.84, 255.49, 177.84, 265.32, 175.12, 271.09, 174.44, 276.17, 174.1, 279.23, 175.46, 282.28, 176.82, 287.7, 184.96, 290.42, 188.01, 295.84, 190.38, 299.57, 196.49, 299.57, 197.17, 289.06, 197.51, 283.97, 198.86, 279.56, 199.54, 278.89, 189.03, 265.66, 185.97]], "area": 1054.3672500000005, "iscrowd": 0, "image_id": 373765, "bbox": [223.27, 174.1, 76.3, 25.44], "category_id": 53, "id": 1050154}, {"segmentation": [[241.46, 96.21, 243.53, 89.66, 244.9, 84.15, 247.32, 80.7, 251.11, 77.25, 254.9, 74.84, 259.38, 76.22, 261.11, 77.25, 264.9, 75.18, 270.41, 76.22, 271.1, 78.63, 275.24, 76.22, 282.48, 76.22, 284.55, 78.29, 284.89, 80.7, 284.89, 81.04, 291.78, 85.53, 292.13, 94.14, 289.37, 100.35, 287.65, 102.42, 283.17, 107.59, 276.62, 110.0, 269.03, 110.69, 259.04, 111.72, 247.66, 110.69, 245.59, 109.66, 241.8, 104.48]], "area": 1514.2172999999996, "iscrowd": 0, "image_id": 543882, "bbox": [241.46, 74.84, 50.67, 36.88], "category_id": 53, "id": 1050204}, {"segmentation": [[272.14, 60.36, 281.56, 45.71, 295.16, 36.29, 311.91, 30.0, 330.75, 30.0, 350.64, 34.19, 371.57, 49.89, 384.13, 65.59, 393.55, 84.43, 393.55, 105.37, 395.65, 116.88, 391.46, 136.77, 385.18, 147.23, 376.81, 155.61, 363.2, 161.89, 349.59, 168.17, 333.89, 170.26, 321.33, 169.21, 303.54, 163.98, 296.21, 155.61, 282.6, 143.05, 272.14, 130.49, 261.67, 108.51, 261.67, 92.81, 265.86, 76.06]], "area": 14591.7702, "iscrowd": 0, "image_id": 294734, "bbox": [261.67, 30.0, 133.98, 140.26], "category_id": 53, "id": 1050401}, {"segmentation": [[251.59, 94.22, 189.44, 86.2, 157.37, 83.2, 128.3, 46.11, 124.29, 4.01, 123.29, 1.0, 293.69, 1.0, 296.7, 20.05, 295.69, 34.08, 286.67, 44.1, 278.65, 56.13, 265.62, 79.19]], "area": 12983.247399999998, "iscrowd": 0, "image_id": 294734, "bbox": [123.29, 1.0, 173.41, 93.22], "category_id": 55, "id": 1050990}, {"segmentation": [[221.77, 231.69, 234.24, 215.99, 248.73, 206.33, 274.08, 202.31, 299.83, 211.57, 324.38, 224.85, 337.26, 235.31, 342.09, 252.61, 341.69, 277.96, 343.3, 302.49, 340.88, 306.89, 321.16, 315.34, 305.07, 327.01, 296.21, 330.63, 286.55, 300.45, 274.08, 282.74, 260.0, 267.85, 228.61, 263.42, 217.34, 263.02, 214.12, 249.34]], "area": 9584.60895, "iscrowd": 0, "image_id": 434201, "bbox": [214.12, 202.31, 129.18, 128.32], "category_id": 55, "id": 1051899}, {"segmentation": [[298.09, 339.89, 321.26, 315.72, 335.36, 306.65, 342.41, 305.65, 345.43, 306.65, 374.63, 354.99, 393.77, 367.08, 392.76, 368.09, 301.12, 369.09, 301.12, 362.04, 301.12, 347.94]], "area": 3554.8761499999982, "iscrowd": 0, "image_id": 434201, "bbox": [298.09, 305.65, 95.68, 63.44], "category_id": 55, "id": 1053265}, {"segmentation": [[294.28, 287.67, 302.31, 272.76, 337.48, 297.99, 337.48, 307.17, 318.37, 295.7, 308.81, 289.2, 303.08, 285.38, 301.55, 288.82]], "area": 450.4555000000004, "iscrowd": 0, "image_id": 428208, "bbox": [294.28, 272.76, 43.2, 34.41], "category_id": 55, "id": 1053391}, {"segmentation": [[340.34, 222.05, 349.81, 217.03, 359.29, 212.01, 374.89, 207.55, 392.73, 209.23, 405.55, 210.34, 414.46, 212.01, 417.81, 220.93, 420.04, 238.77, 428.96, 251.03, 427.28, 261.06, 423.38, 264.96, 415.58, 269.42, 408.33, 271.09, 405.55, 283.35, 431.74, 321.25, 450.69, 337.97, 471.87, 361.94, 459.05, 382.56, 434.53, 368.62, 385.48, 308.43, 376.01, 291.71, 371.55, 286.7, 365.42, 281.68, 348.7, 282.24, 331.98, 278.34, 324.18, 268.86, 323.06, 261.06, 321.39, 248.8]], "area": 9854.4531, "iscrowd": 0, "image_id": 294734, "bbox": [321.39, 207.55, 150.48, 175.01], "category_id": 56, "id": 1055399}, {"segmentation": [[514.89, 375.62, 495.24, 349.68, 505.46, 328.45, 526.68, 322.95, 562.84, 332.38, 560.48, 368.54, 543.98, 383.48, 547.12, 393.7, 522.75, 424.36, 509.39, 425.14, 512.53, 413.35, 518.82, 384.27]], "area": 4023.1465500000027, "iscrowd": 0, "image_id": 294734, "bbox": [495.24, 322.95, 67.6, 102.19], "category_id": 56, "id": 1055462}, {"segmentation": [[332.51, 317.09, 326.98, 320.29, 319.31, 310.28, 319.1, 301.12, 322.29, 295.58, 325.7, 288.55, 333.58, 289.83, 342.74, 297.92, 343.8, 306.02, 342.52, 310.49, 337.41, 313.69, 338.05, 314.96, 338.9, 317.31]], "area": 552.6816499999996, "iscrowd": 0, "image_id": 206427, "bbox": [319.1, 288.55, 24.7, 31.74], "category_id": 56, "id": 1055710}, {"segmentation": [[215.15, 125.94, 210.9, 126.84, 205.76, 128.18, 202.85, 128.85, 199.72, 127.95, 196.14, 129.74, 194.8, 131.31, 191.67, 133.32, 188.31, 132.2, 184.96, 131.08, 182.27, 135.33, 177.13, 133.55, 170.86, 133.77, 169.07, 131.31, 174.22, 127.28, 179.14, 123.7, 182.72, 120.57, 187.42, 117.22, 191.67, 116.55, 193.9, 118.78, 199.72, 117.89, 205.53, 117.89, 216.27, 124.82]], "area": 455.3878000000004, "iscrowd": 0, "image_id": 428208, "bbox": [169.07, 116.55, 47.2, 18.78], "category_id": 56, "id": 1055872}, {"segmentation": [[402.0, 174.6, 382.0, 146.6, 358.0, 119.6, 374.0, 85.6, 384.0, 38.6, 355.0, 42.6, 343.0, 17.6, 317.0, 13.6, 285.0, 30.6, 300.0, 16.6, 278.0, 1.6, 157.0, 0.0, 154.0, 12.6, 158.0, 25.6, 136.0, 28.6, 130.0, 33.6, 116.0, 21.6, 96.0, 30.6, 92.0, 39.6, 77.0, 39.6, 56.0, 77.6, 68.0, 91.6, 78.0, 93.6, 86.0, 110.6, 78.0, 126.6, 59.0, 128.6, 38.0, 126.6, 13.0, 138.6, 4.0, 155.6, 12.0, 178.6, 4.0, 198.6, 0.0, 254.6, 0.0, 426.0, 225.0, 426.0, 242.0, 409.6, 252.0, 382.6, 238.0, 338.6, 224.0, 299.6, 230.0, 279.6, 270.0, 269.6, 286.0, 262.6, 310.0, 267.6, 310.0, 241.6, 317.0, 219.6, 326.0, 218.6, 337.0, 223.6, 352.0, 202.6, 378.0, 191.6, 400.0, 180.6]], "area": 120179.1, "iscrowd": 0, "image_id": 67961, "bbox": [0.0, 0.0, 402.0, 426.0], "category_id": 56, "id": 1056242}, {"segmentation": [[192.49, 331.74, 184.05, 335.11, 176.74, 339.05, 167.74, 340.74, 150.3, 334.55, 142.98, 326.11, 124.98, 300.79, 122.73, 296.86, 122.17, 285.04, 123.86, 278.29, 124.42, 267.6, 121.04, 259.16, 119.92, 249.6, 121.61, 243.97, 126.11, 236.1, 132.86, 220.91, 134.55, 216.41, 143.55, 210.78, 156.49, 206.28, 169.99, 207.97, 182.93, 215.28, 192.49, 218.66, 205.99, 224.28, 212.74, 232.72, 217.24, 248.48, 216.68, 254.1, 212.74, 265.35, 216.68, 274.35, 218.93, 276.04, 219.49, 286.17, 217.24, 292.92, 212.18, 303.05, 209.37, 314.3, 205.99, 319.36, 205.43, 326.11]], "area": 10272.53265, "iscrowd": 0, "image_id": 49851, "bbox": [119.92, 206.28, 99.57, 134.46], "category_id": 56, "id": 1057797}, {"segmentation": [[399.09, 322.24, 400.22, 304.17, 416.04, 288.36, 418.29, 286.1, 437.49, 274.81, 453.31, 272.55, 481.54, 265.77, 492.84, 277.07, 490.58, 295.14, 505.26, 315.47, 512.04, 323.37, 513.16, 334.67, 505.26, 357.25, 505.26, 366.29, 498.48, 382.1, 479.28, 390.01, 452.18, 395.65, 446.53, 396.78, 435.24, 409.21, 427.33, 408.08, 395.71, 383.23, 384.41, 353.87, 388.93, 336.92, 391.19, 327.89]], "area": 12707.339299999994, "iscrowd": 0, "image_id": 33034, "bbox": [384.41, 265.77, 128.75, 143.44], "category_id": 56, "id": 1057941}, {"segmentation": [[213.09, 213.31, 211.25, 192.42, 213.09, 186.28, 208.18, 175.84, 206.33, 168.47, 210.02, 163.55, 218.62, 153.11, 223.53, 145.74, 217.39, 138.98, 206.95, 131.0, 188.52, 127.93, 177.46, 127.93, 173.16, 130.38, 140.61, 150.04, 128.32, 177.68, 129.55, 192.42, 135.08, 199.18, 139.99, 212.08, 153.51, 204.71, 164.56, 204.71, 172.55, 209.01, 193.43, 216.99, 203.88, 218.22]], "area": 6019.153550000001, "iscrowd": 0, "image_id": 49851, "bbox": [128.32, 127.93, 95.21, 90.29], "category_id": 56, "id": 1058075}, {"segmentation": [[177.0, 243.1, 190.0, 242.1, 198.0, 234.1, 205.0, 232.1, 210.0, 228.1, 216.0, 225.1, 219.0, 220.1, 220.0, 210.1, 220.0, 203.1, 220.0, 197.1, 220.0, 193.1, 219.0, 188.1, 219.0, 185.1, 216.0, 181.1, 213.0, 180.1, 210.0, 174.1, 210.0, 173.1, 208.0, 172.1, 207.0, 172.1, 204.0, 172.1, 200.0, 174.1, 194.0, 182.1, 190.0, 183.1, 185.0, 183.1, 185.0, 183.1, 180.0, 186.1, 178.0, 187.1, 176.0, 189.1, 175.0, 190.1, 173.0, 185.1, 172.0, 177.1, 170.0, 172.1, 163.0, 167.1, 155.0, 178.1, 152.0, 185.1, 149.0, 190.1, 143.0, 200.1, 141.0, 203.1, 140.0, 211.1, 140.0, 217.1, 142.0, 223.1, 147.0, 233.1, 149.0, 235.1, 155.0, 240.1, 162.0, 242.1, 169.0, 243.1, 171.0, 244.1, 175.0, 245.1]], "area": 4420.0, "iscrowd": 0, "image_id": 64454, "bbox": [140.0, 167.1, 80.0, 78.0], "category_id": 56, "id": 1058548}, {"segmentation": [[108.42, 83.59, 113.48, 87.14, 111.96, 91.7, 112.72, 99.04, 115.51, 101.33, 122.35, 97.78, 120.33, 89.67, 120.58, 82.57, 122.86, 76.75, 117.79, 74.47, 108.16, 76.49, 105.88, 79.79, 109.18, 83.59]], "area": 260.48665, "iscrowd": 0, "image_id": 428208, "bbox": [105.88, 74.47, 16.98, 26.86], "category_id": 56, "id": 1059677}, {"segmentation": [[435.54, 155.04, 445.04, 165.02, 458.35, 169.77, 465.01, 169.77, 486.87, 175.0, 491.14, 185.45, 490.67, 190.68, 468.81, 193.06, 456.45, 199.24, 446.47, 208.27, 436.49, 213.02, 413.68, 214.44, 399.9, 211.59, 392.29, 205.41, 403.22, 178.32, 407.5, 173.57, 418.91, 156.46, 436.01, 150.76]], "area": 3535.3120499999995, "iscrowd": 0, "image_id": 64454, "bbox": [392.29, 150.76, 98.85, 63.68], "category_id": 56, "id": 1059967}, {"segmentation": [[415.19, 124.29, 415.85, 133.42, 418.45, 133.75, 421.39, 134.07, 423.67, 124.29, 429.21, 125.92, 427.26, 118.42, 422.37, 114.51, 415.19, 114.51, 413.24, 117.77, 413.89, 122.66]], "area": 195.92989999999975, "iscrowd": 0, "image_id": 428208, "bbox": [413.24, 114.51, 15.97, 19.56], "category_id": 56, "id": 1060210}, {"segmentation": [[315.91, 99.19, 316.04, 100.75, 335.06, 100.23, 341.44, 98.67, 345.61, 96.84, 347.95, 93.59, 350.69, 89.81, 347.04, 89.42, 342.48, 90.07, 338.84, 91.63, 336.36, 91.5, 334.02, 89.42, 330.37, 89.68, 328.16, 90.59, 324.12, 93.59, 321.38, 97.88, 317.08, 99.58]], "area": 233.49, "iscrowd": 0, "image_id": 428208, "bbox": [315.91, 89.42, 34.78, 11.33], "category_id": 56, "id": 1060240}, {"segmentation": [[461.3, 217.44, 456.11, 214.56, 452.36, 210.52, 451.78, 205.32, 453.22, 198.69, 457.55, 196.96, 457.55, 196.96, 461.01, 194.65, 465.92, 196.09, 470.25, 198.11, 479.19, 203.59, 485.25, 205.32, 488.71, 205.32, 493.33, 203.3, 501.98, 201.57, 506.02, 201.86, 508.91, 202.73, 514.39, 204.46, 521.89, 206.48, 526.51, 207.92, 533.72, 204.17, 537.76, 203.02, 542.96, 204.17, 549.59, 207.63, 558.82, 212.83, 562.0, 215.71, 566.9, 222.64, 568.06, 223.5, 588.25, 232.16, 594.02, 239.66, 592.29, 243.7, 589.99, 251.49, 584.21, 256.68, 571.23, 263.03, 567.48, 263.32, 564.88, 263.32, 559.98, 262.45, 561.71, 258.41, 562.29, 254.95, 562.86, 250.33, 563.44, 246.58, 563.15, 246.29, 559.69, 245.14, 555.36, 245.14, 548.44, 245.14, 544.98, 243.99, 538.63, 242.83, 538.63, 242.83, 538.05, 242.83, 536.9, 242.83, 534.3, 252.64, 534.01, 252.93, 522.47, 254.37, 517.57, 257.55, 508.33, 259.85, 504.0, 258.41, 503.72, 253.22, 503.72, 253.22, 493.62, 254.37, 491.89, 252.35, 493.91, 248.03, 492.75, 245.14, 486.12, 245.14, 486.12, 245.14, 482.37, 245.43, 485.25, 240.52, 486.98, 237.93, 480.63, 233.6, 473.42, 233.89, 473.13, 233.6, 473.42, 230.14, 472.84, 228.41, 471.69, 226.67, 467.94, 222.35, 465.34, 221.48, 463.03, 218.88]], "area": 5271.685400000001, "iscrowd": 0, "image_id": 64454, "bbox": [451.78, 194.65, 142.24, 68.67], "category_id": 56, "id": 1060372}, {"segmentation": [[391.19, 109.91, 368.8, 111.53, 365.23, 106.02, 363.28, 110.88, 358.74, 120.29, 363.93, 126.46, 364.26, 135.54, 368.15, 134.89, 371.07, 126.46, 377.56, 123.21, 374.64, 119.97, 376.59, 116.4, 384.7, 116.4, 390.86, 112.51]], "area": 358.86584999999985, "iscrowd": 0, "image_id": 428208, "bbox": [358.74, 106.02, 32.45, 29.52], "category_id": 56, "id": 1060693}, {"segmentation": [[175.36, 629.65, 175.36, 611.67, 175.36, 604.17, 175.36, 599.68, 175.36, 598.18, 178.36, 590.68, 181.36, 589.18, 182.86, 586.19, 181.36, 574.2, 175.36, 563.7, 173.86, 562.21, 169.37, 562.21, 163.37, 559.21, 160.37, 559.21, 157.38, 562.21, 157.38, 563.7, 155.88, 569.7, 154.38, 569.7, 151.38, 569.7, 142.39, 572.7, 142.39, 572.7, 134.89, 577.19, 134.89, 580.19, 130.4, 586.19, 127.4, 598.18, 121.41, 607.17, 121.41, 608.67, 118.41, 614.66, 116.91, 616.16, 119.91, 623.66, 125.9, 623.66, 130.4, 626.66, 131.9, 628.15, 134.89, 629.65, 139.39, 632.65, 157.38, 629.65, 161.87, 628.15, 169.37, 628.15, 172.37, 628.15]], "area": 3163.862249999997, "iscrowd": 0, "image_id": 223932, "bbox": [116.91, 559.21, 65.95, 73.44], "category_id": 56, "id": 1060888}, {"segmentation": [[373.75, 185.87, 369.73, 198.93, 355.67, 205.96, 340.6, 206.97, 334.57, 194.91, 329.54, 177.83, 317.49, 175.82, 308.44, 159.75, 307.44, 142.67, 326.53, 134.63, 341.6, 135.64, 364.71, 137.64, 370.74, 141.66, 376.76, 155.73, 377.77, 175.82]], "area": 3662.0344500000006, "iscrowd": 0, "image_id": 64454, "bbox": [307.44, 134.63, 70.33, 72.34], "category_id": 56, "id": 1061363}, {"segmentation": [[419.15, 273.52, 408.19, 267.81, 401.04, 262.09, 393.9, 252.56, 388.66, 241.61, 383.89, 233.03, 382.46, 225.89, 379.61, 220.17, 383.42, 210.64, 389.61, 205.4, 400.57, 213.02, 417.72, 216.84, 434.39, 215.41, 445.82, 211.59, 460.11, 218.74, 471.07, 226.84, 470.59, 230.17, 462.5, 231.13, 456.3, 239.22, 446.3, 243.04, 437.72, 251.61, 437.72, 255.42, 446.78, 252.56, 450.59, 252.09, 451.06, 256.37, 450.59, 258.28]], "area": 3507.6809499999986, "iscrowd": 0, "image_id": 64454, "bbox": [379.61, 205.4, 91.46, 68.12], "category_id": 56, "id": 1061541}, {"segmentation": [[204.96, 163.46, 204.96, 164.46, 201.95, 148.39, 201.95, 148.39, 197.93, 135.33, 219.03, 129.3, 232.09, 136.33, 232.09, 136.33, 241.13, 128.3, 263.23, 136.33, 251.18, 156.43, 242.13, 169.49, 229.07, 166.47, 215.01, 161.45]], "area": 1764.8530999999998, "iscrowd": 0, "image_id": 64454, "bbox": [197.93, 128.3, 65.3, 41.19], "category_id": 56, "id": 1061571}, {"segmentation": [[266.13, 279.73, 241.44, 279.17, 211.13, 284.78, 202.71, 273.56, 213.93, 248.3, 259.4, 219.67, 262.2, 205.64, 269.5, 198.91, 297.0, 210.13, 295.88, 230.9, 290.83, 247.74]], "area": 4503.4174, "iscrowd": 0, "image_id": 64454, "bbox": [202.71, 198.91, 94.29, 85.87], "category_id": 56, "id": 1061595}, {"segmentation": [[313.1, 265.66, 254.73, 294.29, 252.48, 302.71, 255.85, 316.18, 268.2, 328.53, 268.76, 351.54, 273.25, 365.57, 302.44, 389.7, 352.39, 384.09, 366.42, 381.85, 353.51, 359.4, 346.78, 340.31, 356.32, 319.55, 333.31, 282.5, 335.55, 269.03]], "area": 9229.592099999998, "iscrowd": 0, "image_id": 64454, "bbox": [252.48, 265.66, 113.94, 124.04], "category_id": 56, "id": 1061645}, {"segmentation": [[438.1, 365.55, 451.03, 360.75, 464.7, 358.17, 475.05, 355.95, 489.45, 348.93, 492.41, 344.5, 490.93, 336.0, 484.65, 332.68, 472.83, 328.61, 463.22, 324.18, 454.73, 322.7, 439.58, 321.96, 437.36, 321.22, 418.15, 307.92, 407.07, 300.17, 393.77, 291.67, 395.25, 276.89, 397.83, 253.99, 394.88, 248.08, 388.97, 247.34, 377.89, 243.27, 373.08, 243.64, 370.87, 246.97, 369.39, 254.73, 366.8, 263.59, 359.78, 278.0, 350.55, 276.89, 339.83, 269.5, 338.73, 279.11, 340.94, 285.76, 354.24, 285.39, 363.85, 282.8, 368.65, 282.43, 374.19, 282.43, 376.04, 282.8, 381.95, 287.24, 376.78, 290.19, 373.08, 291.67, 375.3, 298.32, 378.99, 305.34, 379.36, 314.94, 378.99, 326.39, 380.1, 336.0, 381.58, 349.3, 390.45, 349.3, 399.31, 347.45, 408.18, 346.71, 415.57, 345.97, 421.48, 344.87, 430.71, 342.28, 431.45, 342.28, 437.36, 358.17]], "area": 5780.677249999999, "iscrowd": 0, "image_id": 64454, "bbox": [338.73, 243.27, 153.68, 122.28], "category_id": 56, "id": 1061664}, {"segmentation": [[432.51, 167.68, 429.77, 165.45, 430.27, 162.47, 434.99, 161.47, 437.22, 161.47, 439.21, 162.47, 439.46, 166.19, 437.47, 167.68, 435.98, 167.93, 433.25, 168.67]], "area": 52.56740000000005, "iscrowd": 0, "image_id": 543882, "bbox": [429.77, 161.47, 9.69, 7.2], "category_id": 57, "id": 1061930}, {"segmentation": [[358.24, 199.41, 350.29, 187.06, 348.53, 165.0, 359.12, 139.41, 377.65, 113.82, 397.94, 100.59, 428.82, 98.82, 457.94, 122.65, 462.35, 141.18, 458.82, 159.71, 441.18, 181.76, 424.41, 208.24, 399.71, 219.71, 382.06, 220.59, 361.76, 211.76, 356.47, 206.47]], "area": 9946.759250000003, "iscrowd": 0, "image_id": 404869, "bbox": [348.53, 98.82, 113.82, 121.77], "category_id": 57, "id": 1061975}, {"segmentation": [[178.65, 377.73, 199.11, 381.34, 212.35, 382.54, 221.98, 381.34, 227.39, 383.74, 229.2, 385.55, 237.62, 372.31, 254.47, 366.29, 268.31, 362.08, 266.51, 359.07, 262.9, 353.05, 266.51, 344.63, 273.13, 344.63, 277.94, 354.86, 286.37, 348.84, 297.2, 343.43, 303.82, 345.23, 310.44, 351.85, 296.6, 365.69, 294.19, 369.3, 307.43, 385.55, 318.86, 381.34, 330.29, 375.92, 347.74, 374.12, 354.36, 372.31, 362.79, 368.7, 380.84, 368.7, 377.23, 381.94, 362.79, 387.96, 343.53, 397.58, 335.11, 406.61, 332.7, 408.42, 347.14, 410.22, 358.57, 406.01, 363.39, 397.58, 373.02, 395.18, 378.43, 395.18, 380.24, 410.22, 370.61, 422.86, 370.01, 424.06, 379.03, 424.06, 379.64, 427.67, 363.99, 436.1, 357.97, 440.91, 368.8, 443.92, 388.06, 444.52, 395.28, 445.72, 400.7, 455.35, 390.47, 458.96, 379.03, 459.56, 371.81, 459.56, 367.0, 467.99, 365.19, 475.81, 369.41, 485.44, 379.03, 488.45, 379.03, 493.86, 377.23, 500.48, 376.03, 501.69, 374.22, 511.31, 363.99, 511.92, 376.03, 519.14, 374.82, 529.37, 371.81, 533.58, 360.98, 533.58, 353.76, 532.37, 348.35, 538.99, 349.55, 545.01, 342.33, 552.23, 339.32, 563.66, 349.55, 572.69, 343.53, 584.12, 328.49, 575.7, 316.45, 569.68, 306.22, 569.68, 299.6, 569.68, 294.19, 572.69, 303.82, 577.5, 311.04, 580.51, 314.65, 582.92, 309.23, 587.13, 294.79, 581.12, 288.17, 579.31, 277.34, 576.3, 271.92, 575.1, 262.9, 575.1, 256.28, 578.11, 240.03, 579.91, 226.79, 582.92, 224.39, 588.94, 217.17, 594.35, 209.94, 591.95, 212.95, 582.92, 215.36, 573.29, 215.96, 570.28, 215.96, 560.66, 197.31, 563.66, 188.28, 568.48, 156.99, 567.88, 151.58, 567.28, 140.74, 558.85, 137.74, 552.23, 128.11, 548.02, 126.3, 537.79, 131.72, 532.98, 143.15, 532.98, 144.96, 528.16, 142.55, 523.95, 127.51, 519.14, 113.06, 513.72, 110.05, 499.28, 123.29, 496.27, 128.11, 496.27, 142.55, 484.84, 138.94, 479.42, 138.94, 472.2, 137.74, 464.38, 143.15, 464.38, 143.75, 452.94, 139.54, 441.51, 139.54, 433.09, 111.26, 425.26, 105.24, 414.43, 105.24, 404.8, 121.49, 404.2, 135.93, 404.2, 140.14, 404.2, 143.15, 405.41, 146.76, 404.8, 149.17, 399.39, 149.77, 392.77, 162.41, 390.96, 156.39, 380.74, 164.21, 380.74, 169.03, 371.11]], "area": 47247.61625000001, "iscrowd": 0, "image_id": 107443, "bbox": [105.24, 343.43, 295.46, 250.92], "category_id": 57, "id": 1062068}, {"segmentation": [[160.54, 271.77, 173.85, 256.92, 200.48, 245.14, 289.59, 245.65, 293.68, 249.23, 293.17, 266.65, 281.39, 268.69, 244.01, 276.37, 244.01, 260.5, 234.79, 254.87, 229.16, 261.52, 220.97, 271.77, 220.97, 280.47, 171.29, 282.01, 160.54, 272.28]], "area": 3353.9625500000006, "iscrowd": 0, "image_id": 398949, "bbox": [160.54, 245.14, 133.14, 36.87], "category_id": 57, "id": 1062863}, {"segmentation": [[515.73, 249.7, 511.94, 208.69, 508.79, 170.2, 501.22, 127.93, 508.79, 114.68, 516.99, 114.05, 522.67, 114.68, 521.41, 153.8, 528.98, 214.37, 529.61, 228.88, 524.05, 252.99, 515.01, 249.6]], "area": 2155.710399999996, "iscrowd": 0, "image_id": 33034, "bbox": [501.22, 114.05, 28.39, 138.94], "category_id": 57, "id": 1063252}, {"segmentation": [[20.97, 383.35, 91.32, 387.24, 104.27, 387.67, 106.86, 379.9, 120.67, 382.49, 133.62, 385.08, 140.09, 376.02, 136.64, 368.25, 126.71, 357.89, 128.87, 339.33, 130.16, 320.77, 115.06, 320.77, 107.29, 313.01, 93.48, 312.57, 34.35, 338.9, 0.0, 357.46, 0.0, 381.2]], "area": 7273.258100000003, "iscrowd": 0, "image_id": 496031, "bbox": [0.0, 312.57, 140.09, 75.1], "category_id": 58, "id": 1066852}, {"segmentation": [[101.95, 355.31, 40.38, 310.9, 11.1, 258.41, 23.22, 189.77, 38.36, 164.53, 83.78, 164.53, 148.38, 168.57, 197.84, 169.58, 232.16, 163.52, 273.55, 152.42, 339.16, 146.36, 378.53, 145.36, 415.88, 144.35, 477.45, 144.35, 544.07, 154.44, 615.74, 183.71, 640.0, 198.85, 640.0, 423.95, 132.23, 421.93, 130.21, 415.88, 316.96, 323.01, 348.25, 306.86, 311.91, 307.87, 308.88, 293.74, 302.82, 282.64, 270.52, 287.68, 258.41, 297.78, 228.13, 305.85, 194.82, 316.96, 168.57, 332.1, 140.31, 346.23, 107.0, 357.33]], "area": 142514.52915000002, "iscrowd": 0, "image_id": 231996, "bbox": [11.1, 144.35, 628.9, 279.6], "category_id": 59, "id": 1071125}, {"segmentation": [[12.51, 378.65, 89.83, 362.73, 138.72, 337.71, 195.58, 319.52, 244.47, 314.97, 343.4, 339.99, 428.68, 357.04, 449.15, 358.18, 486.67, 371.82, 550.35, 386.61, 604.93, 394.57, 635.63, 410.49, 626.53, 484.4, 365.0, 480.98, 173.97, 480.98, 76.18, 475.3, 15.92, 479.85, 14.78, 380.92]], "area": 78142.3253, "iscrowd": 0, "image_id": 104125, "bbox": [12.51, 314.97, 623.12, 169.43], "category_id": 59, "id": 1071383}, {"segmentation": [[476.14, 370.82, 455.08, 367.45, 434.02, 363.24, 418.02, 374.19, 421.39, 389.35, 439.92, 404.51, 450.87, 418.83, 468.56, 417.15, 478.67, 417.15, 523.31, 415.46, 516.57, 403.67, 508.15, 390.19, 516.57, 384.3, 476.14, 370.82]], "area": 3870.5936999999985, "iscrowd": 0, "image_id": 537924, "bbox": [418.02, 363.24, 105.29, 55.59], "category_id": 59, "id": 1071408}, {"segmentation": [[64.86, 119.64, 230.63, 105.23, 374.77, 113.87, 455.5, 129.73, 448.29, 155.68, 383.42, 315.68, 298.38, 448.29, 255.14, 549.19, 204.68, 616.94, 155.68, 632.79, 135.5, 637.12, 102.34, 618.38, 95.14, 605.41, 89.37, 442.52, 90.81, 269.55, 82.16, 171.53, 66.31, 138.38]], "area": 131241.6164, "iscrowd": 0, "image_id": 478902, "bbox": [64.86, 105.23, 390.64, 531.89], "category_id": 59, "id": 1072101}, {"segmentation": [[33.08, 312.09, 61.84, 244.49, 84.85, 189.84, 143.82, 128.0, 198.47, 96.36, 261.75, 76.22, 283.33, 69.03, 297.71, 57.53, 379.69, 69.03, 447.28, 96.36, 493.3, 138.07, 417.08, 218.61, 323.6, 286.2, 320.72, 291.96, 425.71, 244.49, 493.3, 176.9, 519.19, 165.39, 565.21, 241.62, 591.1, 363.87, 560.9, 435.78, 529.26, 504.81, 444.4, 568.09, 345.17, 599.73, 306.34, 604.04, 310.65, 614.11, 266.07, 616.99, 155.33, 585.35, 116.49, 553.71, 76.22, 486.11, 61.84, 474.61, 37.39, 424.27, 17.26, 372.49, 30.2, 340.85, 30.2, 316.4]], "area": 230005.6602, "iscrowd": 0, "image_id": 296281, "bbox": [17.26, 57.53, 573.84, 559.46], "category_id": 59, "id": 1072224}, {"segmentation": [[148.73, 240.85, 142.01, 214.94, 159.29, 195.75, 196.71, 178.48, 232.21, 167.92, 271.55, 163.12, 314.73, 160.24, 323.37, 159.29, 347.36, 172.72, 358.87, 188.07, 366.55, 179.44, 389.58, 181.36, 416.44, 205.34, 435.64, 213.98, 450.03, 244.69, 445.23, 276.35, 391.5, 308.98, 337.76, 321.45, 285.95, 327.21, 233.17, 316.65, 168.88, 290.74, 148.73, 252.36, 148.73, 245.64]], "area": 38522.06755, "iscrowd": 0, "image_id": 101766, "bbox": [142.01, 159.29, 308.02, 167.92], "category_id": 59, "id": 1072346}, {"segmentation": [[219.15, 347.48, 223.91, 347.48, 269.64, 347.48, 320.14, 355.11, 357.3, 356.06, 405.9, 357.97, 439.24, 358.92, 472.59, 357.97, 497.37, 354.15, 521.19, 347.48, 522.14, 338.91, 524.04, 318.9, 518.33, 290.32, 498.32, 268.4, 483.07, 252.2, 470.69, 244.58, 438.29, 242.68, 403.04, 243.63, 368.74, 249.34, 335.39, 249.34, 305.85, 249.34, 288.7, 244.58, 277.27, 243.63, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 276.31, 236.01, 268.69, 236.01, 264.88, 236.01, 262.02, 246.49, 255.35, 265.54, 248.68, 281.74, 240.11, 294.13, 229.63, 312.23, 225.82, 322.71, 225.82, 328.43, 225.82, 330.33, 225.82, 330.33]], "area": 29619.082550000014, "iscrowd": 0, "image_id": 48451, "bbox": [219.15, 236.01, 304.89, 122.91], "category_id": 59, "id": 1072389}, {"segmentation": [[116.49, 350.56, 101.39, 373.21, 86.29, 389.39, 83.06, 404.49, 72.27, 430.38, 70.11, 446.56, 70.11, 463.82, 64.72, 468.13, 474.61, 472.45, 377.53, 433.62, 480.0, 424.99, 448.72, 363.51, 422.83, 345.17, 393.71, 328.99, 369.98, 318.2, 347.33, 305.26, 320.36, 298.79, 270.74, 294.47, 236.22, 291.24, 224.36, 291.24, 208.18, 295.55, 189.84, 299.87, 175.82, 303.1, 162.88, 306.34, 154.25, 307.42, 135.91, 337.62, 129.44, 344.09, 127.28, 345.17]], "area": 56177.54174999999, "iscrowd": 0, "image_id": 575421, "bbox": [64.72, 291.24, 415.28, 181.21], "category_id": 59, "id": 1072933}, {"segmentation": [[261.62, 461.95, 300.33, 459.37, 302.91, 476.57, 303.77, 480.0, 295.17, 480.0, 262.05, 478.29, 214.74, 478.72, 194.52, 478.72, 182.05, 480.0, 178.18, 477.0, 201.83, 467.11, 228.93, 460.23, 250.0, 460.23]], "area": 1909.180600000001, "iscrowd": 0, "image_id": 501625, "bbox": [178.18, 459.37, 125.59, 20.63], "category_id": 59, "id": 1073673}, {"segmentation": [[566.98, 292.54, 522.2, 368.78, 466.93, 392.6, 400.22, 401.18, 331.61, 348.77, 312.56, 287.78, 320.18, 237.28, 369.73, 202.02, 414.52, 191.54, 469.79, 190.58, 522.2, 211.55, 562.22, 257.29]], "area": 40628.697550000004, "iscrowd": 0, "image_id": 241369, "bbox": [312.56, 190.58, 254.42, 210.6], "category_id": 59, "id": 1073720}, {"segmentation": [[111.1, 182.29, 52.85, 173.66, 19.42, 166.11, 5.39, 156.4, 3.24, 151.01, 31.28, 140.22, 71.19, 125.12, 105.71, 124.04, 157.48, 124.04, 181.21, 125.12, 203.87, 128.36, 231.91, 140.22, 245.93, 159.64, 264.27, 171.51, 259.96, 190.92, 255.64, 206.02, 245.93, 207.1, 48.54, 256.72, 35.6, 257.8, 10.79, 249.17, 1.08, 243.78, 2.16, 227.6, 8.63, 220.04, 34.52, 214.65, 62.56, 204.94, 100.31, 192.0], [376.45, 107.87, 395.87, 87.37, 428.22, 98.16, 456.27, 116.49, 475.69, 133.75, 476.76, 145.62, 332.22, 180.13, 318.2, 182.29, 299.87, 171.51, 258.88, 134.83, 251.33, 116.49, 258.88, 101.39, 279.37, 91.69, 288.0, 87.37, 313.89, 97.08, 335.46, 112.18, 354.88, 116.49, 372.13, 118.65], [431.46, 235.15, 440.09, 200.63, 464.9, 185.53, 485.39, 186.61, 524.22, 181.21, 535.01, 181.21, 554.43, 186.61, 578.16, 194.16, 578.16, 199.55, 570.61, 223.28, 570.61, 241.62, 570.61, 245.93, 581.39, 235.15, 593.26, 218.97, 599.73, 206.02, 601.89, 202.79, 614.83, 200.63, 635.33, 209.26, 640.0, 216.81, 639.64, 236.22, 638.56, 268.58, 580.31, 271.82, 580.31, 278.29, 573.84, 278.29, 561.98, 279.37, 551.19, 281.53, 540.4, 290.16, 518.83, 299.87, 508.04, 302.02, 485.39, 310.65, 464.9, 295.55, 446.56, 278.29, 433.62, 252.4, 432.54, 247.01, 442.25, 245.93, 433.62, 242.7, 430.38, 241.62]], "area": 53919.725099999996, "iscrowd": 0, "image_id": 575421, "bbox": [1.08, 87.37, 638.92, 223.28], "category_id": 59, "id": 1075322}, {"segmentation": [[371.68, 268.6, 359.63, 256.55, 362.04, 211.95, 359.03, 193.88, 342.76, 187.25, 321.67, 184.84, 299.98, 188.45, 287.32, 195.69, 276.48, 254.14, 268.04, 254.14, 246.95, 248.11, 239.72, 245.7, 239.12, 235.46, 232.49, 225.81, 233.69, 187.25, 221.04, 153.5, 248.16, 152.9, 278.89, 149.89, 332.52, 152.3, 377.11, 166.76, 410.85, 177.01, 425.92, 191.47, 442.79, 205.33, 442.19, 222.8, 432.55, 248.71, 386.15, 272.21]], "area": 14412.110600000002, "iscrowd": 0, "image_id": 67657, "bbox": [221.04, 149.89, 221.75, 122.32], "category_id": 59, "id": 1075325}, {"segmentation": [[312.09, 155.33, 300.58, 184.09, 325.03, 194.16, 365.3, 189.84, 391.19, 185.53, 405.57, 198.47, 398.38, 202.79, 365.3, 194.16, 353.8, 214.29, 356.67, 225.8, 182.65, 316.4, 136.63, 369.62, 74.79, 424.27, 51.78, 468.85, 60.4, 513.44, 74.79, 523.51, 71.91, 536.45, 20.13, 484.67, 4.31, 445.84, 2.88, 260.31, 14.38, 240.18, 97.8, 319.28, 115.06, 307.78, 128.0, 273.26, 133.75, 244.49, 149.57, 207.1, 152.45, 175.46, 149.57, 161.08, 182.65, 153.89, 234.43, 146.7, 260.31, 149.57, 274.7, 158.2, 290.52, 152.45, 303.46, 148.13, 313.53, 152.45], [348.04, 496.18, 384.0, 494.74, 392.63, 478.92, 438.65, 448.72, 451.6, 424.27, 455.91, 395.51, 451.6, 384.0, 430.02, 386.88, 405.57, 398.38, 388.31, 414.2, 372.49, 434.34, 362.43, 457.35, 353.8, 477.48, 340.85, 491.87, 346.61, 497.62]], "area": 54601.50825000002, "iscrowd": 0, "image_id": 432967, "bbox": [2.88, 146.7, 453.03, 389.75], "category_id": 59, "id": 1075400}, {"segmentation": [[209.04, 488.22, 341.07, 276.43, 603.75, 474.47, 563.87, 547.36, 499.23, 565.24, 387.83, 567.99, 292.93, 570.74, 236.55, 540.49, 222.8, 528.11]], "area": 70051.14505, "iscrowd": 0, "image_id": 445346, "bbox": [209.04, 276.43, 394.71, 294.31], "category_id": 59, "id": 1075521}, {"segmentation": [[414.2, 250.25, 414.2, 240.54, 414.2, 225.44, 415.28, 209.26, 421.75, 198.47, 432.54, 208.18, 440.09, 225.44, 459.51, 235.15, 450.88, 250.25, 441.17, 252.4, 435.78, 251.33]], "area": 1447.6016000000009, "iscrowd": 0, "image_id": 537924, "bbox": [414.2, 198.47, 45.31, 53.93], "category_id": 59, "id": 1075650}, {"segmentation": [[285.56, 227.3, 324.72, 195.79, 316.12, 138.48, 274.1, 111.74, 232.08, 105.06, 183.37, 117.47, 142.3, 145.17, 120.34, 176.69, 120.34, 212.02, 142.3, 234.94, 173.82, 241.63, 219.66, 246.4, 276.97, 237.81]], "area": 22164.294250000006, "iscrowd": 0, "image_id": 241369, "bbox": [120.34, 105.06, 204.38, 141.34], "category_id": 59, "id": 1075809}, {"segmentation": [[206.29, 532.23, 63.26, 420.84, 13.75, 365.82, 4.13, 346.57, 2.75, 171.91, 44.01, 149.91, 116.9, 140.28, 123.78, 126.53, 145.78, 127.9, 156.78, 147.16, 169.16, 145.78, 189.79, 127.9, 215.92, 143.03, 250.3, 143.03, 281.93, 160.91, 352.07, 174.66, 385.08, 191.16, 413.96, 193.91, 489.6, 228.3, 569.37, 279.18, 599.62, 314.94, 609.25, 319.07, 607.87, 533.61, 570.74, 543.24, 603.75, 468.97, 341.07, 275.06, 213.17, 478.6, 210.42, 534.98]], "area": 132846.32494999998, "iscrowd": 0, "image_id": 445346, "bbox": [2.75, 126.53, 606.5, 416.71], "category_id": 59, "id": 1076107}, {"segmentation": [[100.04, 241.72, 79.08, 241.72, 52.4, 241.72, 21.91, 236.01, 11.43, 217.9, 15.24, 203.61, 40.97, 196.94, 63.84, 192.18, 83.85, 186.46, 112.43, 186.46, 129.58, 192.18, 138.16, 197.89, 153.4, 210.28, 157.21, 214.09, 158.17, 216.95, 147.69, 221.71, 141.02, 223.62]], "area": 5926.81635, "iscrowd": 0, "image_id": 48451, "bbox": [11.43, 186.46, 146.74, 55.26], "category_id": 59, "id": 1076134}, {"segmentation": [[119.91, 640.0, 98.24, 599.09, 79.46, 548.53, 76.57, 480.63, 98.24, 418.51, 131.47, 367.94, 164.7, 373.72, 196.48, 375.17, 222.48, 386.72, 252.82, 389.61, 252.82, 389.61, 268.71, 363.61, 281.72, 365.05, 307.72, 402.62, 304.83, 421.4, 304.83, 421.4, 340.95, 411.28, 359.73, 422.84, 361.17, 431.51, 361.17, 431.51, 387.18, 421.4, 401.63, 454.62, 384.29, 483.52, 366.95, 487.85, 244.15, 575.98, 167.58, 627.99, 121.35, 640.0]], "area": 54755.20845, "iscrowd": 0, "image_id": 207385, "bbox": [76.57, 363.61, 325.06, 276.39], "category_id": 59, "id": 1076289}, {"segmentation": [[296.22, 273.25, 331.29, 265.77, 359.81, 246.6, 357.01, 234.91, 355.14, 216.68, 345.32, 208.26, 350.93, 203.58, 332.23, 192.36, 315.39, 191.9, 310.72, 194.7, 296.69, 193.3, 273.31, 195.17, 256.48, 193.3, 238.72, 197.51, 238.72, 197.51, 215.8, 203.12, 192.43, 219.95, 175.6, 230.24, 180.74, 236.31, 166.71, 242.39, 169.05, 266.24, 187.75, 274.65, 202.71, 265.77, 210.19, 271.85, 246.66, 278.39, 259.29, 278.39]], "area": 12846.8908, "iscrowd": 0, "image_id": 426513, "bbox": [166.71, 191.9, 193.1, 86.49], "category_id": 59, "id": 1076487}, {"segmentation": [[213.38, 307.97, 209.56, 314.21, 217.54, 316.29, 227.25, 314.21, 233.14, 306.93, 240.77, 303.12, 245.27, 297.92, 250.47, 276.77, 250.47, 269.14, 241.81, 271.57, 232.79, 271.91, 227.59, 266.71, 219.62, 270.53, 214.76, 274.34, 210.6, 278.5, 211.3, 288.21, 214.76, 296.18, 216.84, 302.77, 214.42, 309.01]], "area": 1355.0847500000004, "iscrowd": 0, "image_id": 203876, "bbox": [209.56, 266.71, 40.91, 49.58], "category_id": 59, "id": 1077718}, {"segmentation": [[165.0, 274.41, 180.88, 272.65, 184.41, 274.41, 191.47, 272.65, 201.18, 266.47, 217.06, 273.53, 219.71, 275.29, 223.24, 285.0, 225.0, 292.06, 225.0, 304.41, 217.06, 312.35, 208.24, 315.0, 199.41, 316.76, 185.29, 319.41, 183.53, 319.41, 177.35, 319.41, 177.35, 308.82, 164.12, 297.35]], "area": 2420.809000000001, "iscrowd": 0, "image_id": 384755, "bbox": [164.12, 266.47, 60.88, 52.94], "category_id": 60, "id": 1078173}, {"segmentation": [[188.08, 261.85, 186.06, 270.15, 186.96, 275.08, 190.77, 280.02, 194.14, 282.71, 200.42, 283.16, 206.48, 281.14, 207.6, 276.43, 208.95, 270.82, 211.19, 266.56, 206.48, 260.73, 200.2, 257.36, 194.14, 256.91, 188.31, 262.3]], "area": 483.27534999999926, "iscrowd": 0, "image_id": 83787, "bbox": [186.06, 256.91, 25.13, 26.25], "category_id": 60, "id": 1078444}, {"segmentation": [[175.73, 271.41, 170.17, 269.23, 165.09, 263.66, 166.05, 257.37, 170.65, 254.71, 177.67, 257.37, 183.96, 268.74, 184.2, 272.13, 175.98, 272.37, 172.59, 270.68]], "area": 219.00369999999998, "iscrowd": 0, "image_id": 83787, "bbox": [165.09, 254.71, 19.11, 17.66], "category_id": 60, "id": 1079419}, {"segmentation": [[194.23, 235.35, 189.87, 241.15, 189.14, 245.27, 188.42, 250.11, 188.42, 252.77, 189.14, 254.46, 190.35, 255.67, 194.23, 256.4, 198.1, 256.16, 203.18, 256.4, 208.26, 255.67, 211.89, 252.29, 212.62, 247.2, 213.59, 244.3, 213.59, 242.12, 210.92, 239.22, 207.05, 238.49, 196.89, 236.31]], "area": 420.7501499999998, "iscrowd": 0, "image_id": 83787, "bbox": [188.42, 235.35, 25.17, 21.05], "category_id": 60, "id": 1079905}, {"segmentation": [[253.67, 254.74, 265.38, 249.31, 271.96, 247.31, 276.82, 245.88, 279.1, 246.74, 281.39, 249.31, 287.39, 255.03, 287.96, 259.31, 286.53, 263.89, 282.53, 267.03, 277.39, 270.75, 270.53, 274.46, 264.24, 276.75, 261.95, 277.32, 258.81, 276.46, 254.52, 273.32, 251.95, 271.03, 250.52, 267.32, 249.66, 263.31, 249.95, 259.31, 252.24, 256.74, 253.38, 255.31]], "area": 812.1539999999989, "iscrowd": 0, "image_id": 83787, "bbox": [249.66, 245.88, 38.3, 31.44], "category_id": 60, "id": 1079916}, {"segmentation": [[244.38, 294.94, 242.7, 282.3, 264.61, 279.78, 267.13, 299.16, 244.38, 296.63]], "area": 374.9420500000007, "iscrowd": 0, "image_id": 83787, "bbox": [242.7, 279.78, 24.43, 19.38], "category_id": 60, "id": 1081631}, {"segmentation": [[193.35, 281.55, 183.92, 283.73, 176.66, 290.51, 178.11, 299.95, 181.01, 305.27, 186.58, 306.0, 192.14, 305.03, 198.92, 302.12, 200.86, 298.49, 201.34, 293.89, 203.52, 286.88, 203.28, 284.21, 201.58, 282.76, 194.81, 282.52]], "area": 497.25794999999977, "iscrowd": 0, "image_id": 83787, "bbox": [176.66, 281.55, 26.86, 24.45], "category_id": 60, "id": 1081661}, {"segmentation": [[239.28, 305.69, 234.13, 326.28, 223.1, 325.91, 211.34, 322.23, 209.13, 309.0, 212.44, 301.65, 224.57, 294.29, 235.6, 296.5, 240.01, 301.65]], "area": 752.2726000000001, "iscrowd": 0, "image_id": 83787, "bbox": [209.13, 294.29, 30.88, 31.99], "category_id": 60, "id": 1081763}, {"segmentation": [[320.82, 280.69, 316.38, 279.03, 309.73, 276.81, 309.73, 273.48, 312.5, 270.15, 316.94, 266.83, 324.15, 264.05, 334.69, 266.27, 339.13, 274.04, 338.57, 280.69, 334.69, 282.91, 329.14, 282.91, 325.81, 284.58, 322.48, 281.8]], "area": 411.24539999999996, "iscrowd": 0, "image_id": 83787, "bbox": [309.73, 264.05, 29.4, 20.53], "category_id": 60, "id": 1081794}, {"segmentation": [[293.3, 310.46, 295.13, 320.94, 293.46, 323.27, 284.64, 325.77, 277.16, 326.27, 267.34, 328.1, 261.18, 327.6, 260.35, 322.11, 258.69, 315.62, 262.85, 310.79, 272.33, 308.3, 282.31, 306.8, 290.63, 308.13]], "area": 601.8437499999993, "iscrowd": 0, "image_id": 83787, "bbox": [258.69, 306.8, 36.44, 21.3], "category_id": 60, "id": 1081914}, {"segmentation": [[222.06, 93.5, 237.7, 99.56, 239.97, 110.91, 231.14, 112.92, 210.97, 112.42, 202.64, 111.66, 198.36, 109.14, 197.85, 103.34, 201.13, 97.79, 206.68, 92.75, 214.5, 91.74]], "area": 691.9735, "iscrowd": 0, "image_id": 83787, "bbox": [197.85, 91.74, 42.12, 21.18], "category_id": 60, "id": 1081990}, {"segmentation": [[338.8, 155.02, 344.81, 148.19, 350.83, 149.55, 355.48, 145.18, 359.04, 145.18, 367.24, 152.01, 369.43, 157.49, 348.92, 156.12, 337.98, 155.3]], "area": 225.49375000000015, "iscrowd": 0, "image_id": 34356, "bbox": [337.98, 145.18, 31.45, 12.31], "category_id": 61, "id": 1083939}, {"segmentation": [[293.96, 396.31, 324.22, 421.76, 333.86, 426.0, 398.52, 413.51, 443.92, 408.01, 507.21, 416.95, 509.27, 413.51, 490.01, 397.69, 526.47, 383.93, 573.25, 359.16, 577.38, 354.35, 598.7, 354.35, 598.7, 341.97, 591.82, 309.63, 584.94, 297.25, 550.55, 266.98, 523.03, 238.78, 465.93, 178.24, 456.99, 174.12, 439.79, 149.35, 427.41, 139.72, 423.97, 131.47, 423.97, 124.59, 415.03, 118.39, 383.39, 114.27, 360.0, 114.27, 351.74, 112.2, 342.11, 109.45, 342.11, 116.33, 330.42, 122.52, 309.78, 120.46, 302.21, 117.02, 297.4, 124.59, 279.51, 125.27, 270.57, 134.9, 258.87, 139.03, 240.99, 139.72, 229.29, 145.22, 219.66, 172.05, 219.66, 205.07, 224.48, 238.78, 234.8, 258.73, 247.87, 289.0, 240.99, 301.38, 258.87, 316.51, 278.13, 350.22, 267.82, 354.35, 251.31, 354.35, 256.12, 369.48, 243.05, 376.36, 258.19, 386.68, 282.95, 372.92, 292.58, 394.25]], "area": 80972.81330000001, "iscrowd": 0, "image_id": 516791, "bbox": [219.66, 109.45, 379.04, 316.55], "category_id": 61, "id": 1084106}, {"segmentation": [[462.74, 259.96, 463.82, 290.16, 458.43, 340.85, 448.72, 391.55, 448.72, 412.04, 402.34, 451.96, 368.9, 459.51, 337.62, 464.9, 281.53, 462.74, 222.2, 448.72, 188.76, 433.62, 160.72, 416.36, 142.38, 400.18, 139.15, 327.91, 139.15, 278.29, 147.78, 245.93, 180.13, 220.04, 216.81, 208.18, 292.31, 199.55, 346.25, 204.94, 393.71, 227.6, 422.83, 237.3, 437.93, 243.78, 457.35, 257.8]], "area": 72195.61735, "iscrowd": 0, "image_id": 441419, "bbox": [139.15, 199.55, 324.67, 265.35], "category_id": 61, "id": 1084553}, {"segmentation": [[369.43, 243.73, 309.93, 246.6, 279.23, 250.44, 248.52, 233.17, 209.18, 213.98, 191.91, 208.22, 178.48, 198.63, 193.83, 183.27, 227.41, 150.65, 229.33, 128.58, 240.85, 106.51, 264.84, 107.47, 287.87, 103.63, 287.87, 116.11, 290.74, 129.54, 301.3, 128.58, 306.1, 113.23, 368.47, 180.4, 370.39, 217.82]], "area": 18045.239099999995, "iscrowd": 0, "image_id": 208919, "bbox": [178.48, 103.63, 191.91, 146.81], "category_id": 61, "id": 1084788}, {"segmentation": [[315.41, 419.82, 308.58, 367.44, 322.24, 332.14, 366.65, 304.81, 458.88, 275.21, 474.82, 274.07, 494.18, 255.85, 507.85, 262.68, 516.95, 253.57, 531.76, 253.57, 539.73, 262.68, 552.25, 258.13, 559.09, 245.6, 565.92, 246.74, 573.89, 252.44, 583.0, 254.71, 580.72, 262.68, 610.33, 268.38, 634.24, 276.35, 640.0, 286.6, 640.0, 419.82]], "area": 45705.80235, "iscrowd": 0, "image_id": 487869, "bbox": [308.58, 245.6, 331.42, 174.22], "category_id": 61, "id": 1084950}, {"segmentation": [[346.35, 393.0, 368.83, 402.3, 385.88, 412.38, 388.98, 381.38, 367.28, 359.67, 347.13, 374.4, 315.35, 378.28, 277.37, 379.05, 246.36, 385.25, 230.09, 398.43, 239.39, 408.51, 256.44, 425.56, 288.99, 418.58, 317.67, 404.63, 330.08, 409.28, 336.28, 400.75]], "area": 5074.872500000001, "iscrowd": 0, "image_id": 564237, "bbox": [230.09, 359.67, 158.89, 65.89], "category_id": 61, "id": 1085799}, {"segmentation": [[335.85, 328.55, 370.35, 325.73, 368.24, 310.25, 347.47, 307.43, 325.65, 311.3, 323.53, 312.71, 334.09, 330.31]], "area": 763.9118000000009, "iscrowd": 0, "image_id": 318509, "bbox": [323.53, 307.43, 46.82, 22.88], "category_id": 61, "id": 1086666}, {"segmentation": [[166.59, 460.11, 207.87, 480.19, 220.14, 500.27, 223.48, 538.2, 208.98, 575.01, 155.43, 615.18, 97.42, 604.03, 63.95, 593.99, 43.87, 554.94, 50.57, 525.94, 65.07, 502.51, 85.15, 476.85, 107.46, 467.92, 133.12, 456.77, 140.93, 456.77, 153.2, 456.77, 107.46, 532.63, 86.27, 576.14, 111.92, 546.02]], "area": 19724.380749999993, "iscrowd": 0, "image_id": 306627, "bbox": [43.87, 456.77, 179.61, 158.41], "category_id": 61, "id": 1086967}, {"segmentation": [[169.29, 324.34, 242.95, 335.22, 329.47, 340.66, 346.28, 329.29, 346.28, 300.12, 337.38, 287.76, 318.59, 283.31, 289.42, 262.55, 280.03, 251.67, 232.57, 228.44, 214.77, 216.57, 198.46, 219.54, 200.44, 213.11, 165.83, 188.39, 134.19, 208.66, 125.29, 213.11, 111.94, 211.63, 99.09, 242.28, 83.27, 242.77, 71.4, 257.11, 77.34, 268.48, 63.0, 295.18, 67.94, 303.09, 83.76, 315.94, 143.09, 325.83]], "area": 26110.379650000003, "iscrowd": 0, "image_id": 208919, "bbox": [63.0, 188.39, 283.28, 152.27], "category_id": 61, "id": 1087733}, {"segmentation": [[128.64, 521.63, 85.61, 528.0, 43.11, 521.09, 30.36, 498.25, 28.23, 485.5, 34.61, 475.94, 33.54, 456.28, 51.08, 438.75, 82.42, 428.12, 112.17, 425.47, 144.58, 430.25, 158.39, 447.78, 163.7, 475.94, 163.7, 493.47, 133.42, 518.44]], "area": 11147.1334, "iscrowd": 0, "image_id": 453552, "bbox": [28.23, 425.47, 135.47, 102.53], "category_id": 61, "id": 1087788}, {"segmentation": [[160.62, 247.7, 166.31, 245.71, 168.3, 244.29, 170.29, 244.57, 170.86, 245.14, 172.57, 243.72, 172.57, 242.3, 172.0, 239.45, 170.86, 237.46, 170.01, 232.91, 168.59, 230.63, 166.03, 230.63, 159.77, 228.36, 158.35, 225.8, 154.93, 227.22, 154.37, 229.78, 153.51, 233.19, 152.66, 236.61, 152.66, 238.6, 152.38, 239.74, 154.08, 242.58, 156.36, 244.29, 158.35, 245.42]], "area": 291.2191499999999, "iscrowd": 0, "image_id": 392725, "bbox": [152.38, 225.8, 20.19, 21.9], "category_id": 61, "id": 1087825}, {"segmentation": [[210.14, 299.38, 236.05, 308.02, 261.96, 313.77, 297.46, 320.49, 332.0, 323.37, 362.71, 322.41, 383.82, 312.81, 406.85, 306.1, 436.6, 308.02, 447.15, 307.06, 450.99, 286.91, 451.95, 271.55, 438.51, 250.44, 408.77, 238.93, 375.18, 226.45, 349.28, 216.86, 332.96, 210.14, 308.98, 203.42, 293.62, 216.86, 291.7, 201.51, 282.11, 200.55, 274.43, 214.94, 269.63, 210.14, 277.31, 199.59, 262.92, 197.67, 257.16, 192.87, 228.37, 190.95, 204.38, 188.07, 176.56, 189.03, 152.57, 189.99, 122.82, 197.67, 107.47, 214.94, 115.15, 259.08, 135.3, 265.8, 166.0, 278.27, 185.19, 292.66]], "area": 31997.2869, "iscrowd": 0, "image_id": 223838, "bbox": [107.47, 188.07, 344.48, 135.3], "category_id": 61, "id": 1087872}, {"segmentation": [[493.99, 173.07, 496.15, 168.14, 500.47, 163.2, 502.32, 163.2, 504.78, 163.51, 509.1, 165.67, 513.73, 169.06, 512.49, 173.38, 506.94, 176.46, 500.47, 176.77, 494.3, 176.16]], "area": 194.83430000000038, "iscrowd": 0, "image_id": 392725, "bbox": [493.99, 163.2, 19.74, 13.57], "category_id": 61, "id": 1088299}, {"segmentation": [[540.64, 266.71, 554.27, 266.96, 561.47, 267.48, 568.41, 269.28, 576.64, 266.96, 581.27, 264.14, 578.69, 257.45, 573.81, 256.42, 570.47, 254.88, 565.58, 250.51, 565.32, 245.36, 554.52, 239.45, 547.58, 235.34, 540.64, 234.31, 532.41, 233.28, 529.32, 231.48, 530.61, 229.16, 530.35, 227.11, 522.64, 225.31, 516.98, 227.88, 510.29, 231.22, 510.55, 233.28, 504.64, 233.28, 497.18, 233.28, 492.04, 234.56, 492.04, 240.74, 493.32, 243.31, 499.49, 245.36, 501.29, 245.36, 506.69, 250.25, 509.52, 256.68, 511.58, 260.28, 515.44, 265.16, 519.04, 266.19, 522.64, 266.45, 526.49, 268.25, 530.61, 268.51, 535.49, 267.99, 539.61, 266.71]], "area": 2252.6022499999995, "iscrowd": 0, "image_id": 543882, "bbox": [492.04, 225.31, 89.23, 43.97], "category_id": 61, "id": 1089543}, {"segmentation": [[395.97, 318.43, 527.24, 349.62, 640.0, 378.65, 640.0, 417.21, 640.0, 425.0, 439.73, 425.0, 234.37, 425.0, 82.31, 425.0, 60.21, 423.71, 47.65, 415.91, 45.05, 424.57, 27.29, 423.71, 32.92, 415.04, 38.12, 403.34, 39.85, 389.48, 39.85, 374.75, 37.68, 341.39, 33.78, 326.66, 45.15, 320.44, 77.44, 309.29, 80.3, 305.29, 87.73, 300.43, 110.6, 294.43, 117.46, 294.43, 125.46, 293.86, 127.75, 291.85, 122.89, 268.7, 121.18, 257.55, 122.6, 251.84, 124.89, 245.84, 125.46, 234.4, 134.32, 234.4, 138.61, 235.55, 138.33, 240.41, 144.9, 250.41, 149.19, 260.41, 149.76, 274.7, 150.62, 284.42, 185.77, 270.99, 198.92, 272.99, 267.81, 288.71, 303.53, 296.71, 314.4, 300.43, 315.25, 310.15, 320.11, 313.01, 327.54, 302.72, 336.69, 305.57, 342.41, 305.57, 358.7, 303.29, 364.13, 300.72, 373.56, 291.28, 376.71, 289.85, 376.14, 294.43, 368.7, 307.86, 376.71, 312.72, 382.42, 315.01]], "area": 66649.71575, "iscrowd": 0, "image_id": 318509, "bbox": [27.29, 234.4, 612.71, 190.6], "category_id": 67, "id": 1090417}, {"segmentation": [[0.0, 117.12, 206.08, 135.14, 201.58, 199.32, 270.27, 220.72, 295.05, 234.23, 317.57, 161.04, 329.95, 159.91, 327.7, 176.8, 372.75, 195.95, 375.0, 199.32, 375.0, 492.12, 1.13, 494.37]], "area": 124552.06585, "iscrowd": 0, "image_id": 8223, "bbox": [0.0, 117.12, 375.0, 377.25], "category_id": 67, "id": 1090706}, {"segmentation": [[333.92, 417.24, 364.63, 321.29, 546.94, 331.84, 626.59, 421.08]], "area": 21814.324900000007, "iscrowd": 0, "image_id": 579659, "bbox": [333.92, 321.29, 292.67, 99.79], "category_id": 67, "id": 1090996}, {"segmentation": [[377.1, 252.36, 376.14, 252.36, 374.22, 252.36, 372.31, 252.36, 369.43, 252.36, 368.47, 251.4, 368.47, 250.44, 362.71, 248.52, 361.75, 248.52, 338.72, 240.85, 366.55, 236.05, 370.39, 236.05, 373.27, 236.05, 373.27, 236.05, 376.14, 235.09, 379.02, 234.13, 386.7, 234.13, 403.97, 234.13, 410.69, 231.25, 415.49, 231.25, 434.68, 237.01, 428.92, 238.93, 424.12, 245.64, 422.2, 248.52, 421.24, 251.4, 417.4, 255.24, 404.93, 258.12, 404.93, 255.24, 399.17, 249.48, 392.46, 245.64, 383.82, 244.69, 379.02, 244.69, 374.22, 247.56, 373.27, 248.52]], "area": 1192.7187500000002, "iscrowd": 0, "image_id": 579659, "bbox": [338.72, 231.25, 95.96, 26.87], "category_id": 67, "id": 1091272}, {"segmentation": [[318.93, 226.23, 323.49, 228.05, 333.98, 218.48, 271.06, 216.2, 254.19, 226.23, 268.78, 230.33]], "area": 749.7256000000011, "iscrowd": 0, "image_id": 579659, "bbox": [254.19, 216.2, 79.79, 14.13], "category_id": 67, "id": 1091844}, {"segmentation": [[174.64, 273.47, 174.64, 267.71, 197.67, 262.92, 259.08, 264.84, 274.43, 266.76, 273.47, 271.55, 281.15, 273.47, 281.15, 283.07, 256.2, 287.87, 254.28, 278.27, 249.48, 269.63, 209.18, 272.51, 179.44, 272.51]], "area": 1090.2580499999995, "iscrowd": 0, "image_id": 579659, "bbox": [174.64, 262.92, 106.51, 24.95], "category_id": 67, "id": 1091941}, {"segmentation": [[493.99, 361.61, 514.44, 307.8, 545.65, 261.52, 570.4, 234.62, 599.46, 226.01, 628.52, 243.23, 640.0, 266.91, 640.0, 445.56, 628.52, 454.17, 603.77, 467.09, 568.25, 469.24, 530.58, 459.55, 512.29, 443.41, 498.3, 424.04, 489.69, 400.36]], "area": 28616.308549999998, "iscrowd": 0, "image_id": 418193, "bbox": [489.69, 226.01, 150.31, 243.23], "category_id": 70, "id": 1092281}, {"segmentation": [[170.43, 415.28, 162.88, 408.81, 165.03, 384.0, 162.88, 376.45, 148.85, 363.51, 145.62, 353.8, 145.62, 344.09, 145.62, 326.83, 152.09, 316.04, 162.88, 305.26, 152.09, 296.63, 149.93, 258.88, 146.7, 231.91, 148.85, 225.44, 193.08, 224.36, 238.38, 223.28, 240.54, 243.78, 240.54, 262.11, 240.54, 294.47, 230.83, 307.42, 220.04, 308.49, 234.07, 323.6, 236.22, 337.62, 225.44, 365.66, 220.04, 381.84, 226.52, 410.97, 216.81, 421.75, 196.31, 421.75, 169.35, 421.75, 159.64, 419.6]], "area": 15531.153600000001, "iscrowd": 0, "image_id": 286359, "bbox": [145.62, 223.28, 94.92, 198.47], "category_id": 70, "id": 1092375}, {"segmentation": [[404.92, 404.92, 382.8, 400.11, 365.48, 388.57, 372.22, 365.48, 374.14, 353.94, 361.64, 336.63, 360.67, 320.28, 366.44, 301.04, 385.68, 287.58, 367.41, 283.73, 370.29, 227.95, 379.91, 213.52, 408.76, 223.14, 413.57, 229.87, 457.82, 239.49, 468.4, 231.79, 472.24, 247.18, 469.36, 256.8, 466.47, 256.8, 453.01, 301.04, 435.69, 296.23, 429.92, 299.12, 445.31, 314.51, 444.35, 338.55, 435.69, 358.75, 430.89, 364.52, 419.34, 365.48, 415.5, 396.26, 410.69, 404.92]], "area": 13254.823349999999, "iscrowd": 0, "image_id": 408829, "bbox": [360.67, 213.52, 111.57, 191.4], "category_id": 70, "id": 1092431}, {"segmentation": [[214.22, 588.61, 183.96, 584.13, 187.33, 558.36, 192.93, 541.55, 169.4, 525.86, 161.55, 502.33, 187.33, 466.47, 188.45, 466.47, 180.6, 433.97, 188.45, 395.87, 226.55, 384.67, 245.6, 408.2, 246.72, 454.14, 242.24, 478.8, 247.84, 501.21, 235.51, 532.58, 234.39, 549.39, 226.55, 586.37, 203.01, 591.98, 198.53, 587.49]], "area": 11756.822549999999, "iscrowd": 0, "image_id": 198137, "bbox": [161.55, 384.67, 86.29, 207.31], "category_id": 70, "id": 1092939}, {"segmentation": [[252.73, 267.09, 196.25, 246.98, 162.74, 111.05, 146.47, 13.4, 152.21, 3.83, 357.07, 0.96, 486.31, 1.91, 487.27, 24.89, 525.56, 53.61, 545.66, 85.2, 552.36, 138.81, 547.58, 175.19, 550.45, 228.8, 551.41, 279.53, 542.79, 291.02, 533.22, 285.28, 522.69, 227.84, 510.24, 270.92, 506.41, 282.4, 543.75, 291.98, 572.47, 303.47, 608.84, 328.36, 623.2, 353.24, 637.56, 375.26, 634.69, 413.56, 613.63, 421.21, 587.78, 419.3, 556.19, 426.0, 367.6, 424.09, 224.97, 423.13, 187.63, 426.0, 185.72, 386.75, 193.38, 350.37, 194.33, 322.61, 210.61, 310.17, 233.58, 292.93, 246.98, 285.28]], "area": 158925.46059999996, "iscrowd": 0, "image_id": 517764, "bbox": [146.47, 0.96, 491.09, 425.04], "category_id": 70, "id": 1093198}, {"segmentation": [[121.18, 338.63, 176.96, 327.3, 176.96, 342.12, 176.96, 349.96, 205.72, 376.11, 213.56, 395.28, 213.56, 409.23, 210.07, 416.2, 202.23, 422.3, 186.54, 439.73, 167.37, 449.32, 138.61, 417.07, 121.18, 393.54]], "area": 7497.096199999998, "iscrowd": 0, "image_id": 575530, "bbox": [121.18, 327.3, 92.38, 122.02], "category_id": 70, "id": 1093340}, {"segmentation": [[238.26, 290.94, 267.34, 316.66, 263.98, 361.41, 259.51, 377.07, 212.53, 396.08, 210.29, 457.6, 178.97, 473.26, 102.91, 462.08, 34.68, 407.27, 13.42, 378.18, 24.61, 350.22, 1.12, 332.32, 0.0, 238.36, 67.11, 202.57, 91.72, 198.09, 102.91, 215.99, 96.2, 238.36, 90.6, 252.9, 109.62, 264.09, 135.35, 283.11, 175.62, 296.53, 231.54, 295.41], [61.52, 69.46, 78.3, 201.45, 0.0, 237.24, 0.0, 77.29]], "area": 54585.82625, "iscrowd": 0, "image_id": 518081, "bbox": [0.0, 69.46, 267.34, 403.8], "category_id": 70, "id": 1093644}, {"segmentation": [[52.85, 363.58, 31.28, 397.02, 50.7, 456.34, 78.74, 467.13, 120.81, 468.21, 163.96, 461.73, 176.9, 432.61, 181.21, 398.09, 155.33, 354.95, 108.94, 339.85, 80.9, 350.63, 57.17, 365.73]], "area": 14729.3005, "iscrowd": 0, "image_id": 315647, "bbox": [31.28, 339.85, 149.93, 128.36], "category_id": 70, "id": 1093996}, {"segmentation": [[51.78, 454.57, 104.99, 467.51, 135.19, 491.96, 151.01, 504.9, 166.83, 552.37, 165.39, 571.06, 148.13, 599.83, 126.56, 608.46, 89.17, 612.77, 40.27, 615.65, 10.07, 615.65, 2.88, 591.2, 0.0, 530.79, 1.44, 483.33, 20.13, 470.39, 46.02, 456.01]], "area": 21832.24125, "iscrowd": 0, "image_id": 123722, "bbox": [0.0, 454.57, 166.83, 161.08], "category_id": 70, "id": 1094127}, {"segmentation": [[107.42, 370.58, 145.01, 371.66, 181.53, 386.7, 181.53, 408.18, 172.94, 429.66, 157.9, 442.55, 163.27, 471.56, 110.64, 472.63, 107.42, 431.81, 104.19, 399.59]], "area": 6306.49695, "iscrowd": 0, "image_id": 91837, "bbox": [104.19, 370.58, 77.34, 102.05], "category_id": 70, "id": 1094148}, {"segmentation": [[224.18, 415.59, 220.47, 418.52, 218.52, 423.02, 217.54, 434.74, 217.74, 446.85, 219.1, 452.52, 216.76, 452.12, 215.78, 453.1, 215.2, 455.06, 215.59, 458.96, 221.64, 465.02, 230.04, 472.05, 241.57, 479.67, 248.02, 482.99, 271.46, 492.37, 281.82, 494.52, 290.8, 494.52, 301.16, 493.74, 304.28, 491.2, 302.92, 480.65, 301.74, 466.19, 300.77, 455.06, 300.77, 450.95, 302.92, 449.19, 307.41, 448.02, 313.27, 445.48, 317.57, 440.01, 321.09, 433.56, 318.74, 421.65, 316.01, 415.59, 314.44, 410.51, 311.71, 407.97, 303.89, 404.06, 295.69, 401.72, 285.92, 398.59, 274.0, 396.84, 268.92, 395.08, 259.15, 396.05, 257.2, 396.05, 260.72, 384.53, 263.06, 373.98, 264.82, 362.84, 266.19, 347.8, 268.92, 345.45, 267.95, 342.91, 266.77, 338.42, 262.67, 334.71, 252.51, 331.58, 241.38, 333.93, 219.69, 336.08, 197.22, 339.79, 187.06, 342.33, 188.04, 350.92, 188.82, 351.31, 189.02, 363.43, 189.8, 375.35, 190.58, 387.46, 194.1, 399.38, 198.59, 402.5, 201.33, 403.09, 202.11, 407.19, 204.84, 410.32, 206.41, 411.29, 208.75, 410.32, 211.88, 409.34, 215.98, 411.29, 218.71, 412.86, 221.45, 413.83]], "area": 12736.390849999998, "iscrowd": 0, "image_id": 433911, "bbox": [187.06, 331.58, 134.03, 162.94], "category_id": 70, "id": 1094189}, {"segmentation": [[504.17, 292.43, 491.99, 282.13, 485.9, 271.82, 489.64, 254.49, 500.42, 248.4, 513.07, 246.99, 527.12, 246.99, 534.15, 247.46, 540.71, 247.93, 543.05, 248.4, 536.49, 299.93]], "area": 2315.0030499999993, "iscrowd": 0, "image_id": 95880, "bbox": [485.9, 246.99, 57.15, 52.94], "category_id": 70, "id": 1094293}, {"segmentation": [[263.01, 184.93, 275.79, 188.12, 279.84, 165.12, 358.21, 167.46, 417.0, 173.64, 418.91, 186.42, 423.81, 196.0, 433.18, 199.62, 438.72, 203.03, 443.41, 226.03, 453.63, 278.43, 456.18, 307.82, 455.33, 343.6, 448.52, 372.99, 436.59, 399.4, 410.61, 426.23, 405.28, 429.0, 394.21, 446.89, 380.36, 453.92, 366.73, 460.52, 361.62, 466.06, 341.17, 472.02, 334.15, 472.45, 318.6, 468.83, 310.08, 463.51, 299.64, 451.58, 293.04, 438.37, 286.86, 424.53, 285.8, 413.67, 279.84, 400.89, 275.58, 388.32, 268.76, 360.42, 268.76, 344.02, 268.76, 338.27, 264.93, 309.95, 265.99, 299.08, 263.44, 280.34, 260.88, 281.19, 260.24, 319.32, 258.75, 322.09, 257.05, 326.35, 255.34, 330.61, 251.51, 330.82, 248.95, 326.56, 246.19, 323.15, 238.73, 315.48, 235.32, 308.67, 231.49, 293.97, 232.77, 258.62, 234.47, 229.44, 238.52, 207.93, 240.65, 191.95, 246.82, 185.57, 252.79, 184.07]], "area": 52488.15589999998, "iscrowd": 0, "image_id": 534521, "bbox": [231.49, 165.12, 224.69, 307.33], "category_id": 70, "id": 1094733}, {"segmentation": [[458.97, 481.74, 443.75, 502.66, 447.55, 514.07, 440.9, 568.28, 399.05, 571.13, 377.18, 554.97, 386.69, 504.56, 369.57, 482.69, 363.87, 450.36, 363.87, 429.44, 380.03, 409.46, 399.05, 400.91, 411.42, 401.86, 417.12, 372.38, 380.03, 360.01, 366.72, 341.94, 359.11, 282.03, 383.84, 253.5, 392.4, 243.04, 419.97, 231.63, 464.67, 235.43, 478.94, 251.6, 471.33, 363.82, 438.99, 375.23, 432.34, 379.03, 428.53, 402.81, 457.06, 415.17, 462.77, 419.93]], "area": 27103.3778, "iscrowd": 0, "image_id": 493939, "bbox": [359.11, 231.63, 119.83, 339.5], "category_id": 70, "id": 1094855}, {"segmentation": [[551.99, 51.08, 556.83, 70.45, 564.58, 75.29, 538.43, 88.85, 566.51, 96.6, 585.88, 215.71, 599.44, 242.83, 508.41, 259.29, 429.97, 273.81, 453.21, 277.69, 485.17, 291.25, 475.48, 299.96, 459.02, 287.37, 458.05, 290.28, 459.99, 301.9, 439.65, 297.06, 427.06, 301.9, 414.47, 304.8, 377.67, 295.12, 363.15, 302.87, 405.76, 307.71, 429.97, 304.8, 431.91, 316.42, 443.53, 317.39, 448.37, 321.27, 420.28, 331.92, 410.6, 340.63, 441.59, 360.97, 431.91, 365.81, 387.36, 356.13, 375.74, 358.06, 375.74, 362.91, 357.34, 362.91, 361.21, 414.23, 367.02, 422.95, 640.0, 419.07, 639.14, 7.51, 580.07, 30.75]], "area": 53393.55014999998, "iscrowd": 0, "image_id": 395893, "bbox": [357.34, 7.51, 282.66, 415.44], "category_id": 70, "id": 1094981}, {"segmentation": [[181.08, 624.86, 189.5, 617.64, 181.08, 506.3, 152.19, 502.69, 80.56, 538.8, 89.59, 624.26, 181.68, 625.47]], "area": 11043.247450000003, "iscrowd": 0, "image_id": 303178, "bbox": [80.56, 502.69, 108.94, 122.78], "category_id": 70, "id": 1095686}, {"segmentation": [[44.27, 640.0, 1.06, 638.93, 0.49, 600.33, 10.28, 601.48, 20.65, 605.52, 29.29, 614.73, 39.66, 627.98]], "area": 1205.6915499999982, "iscrowd": 0, "image_id": 455632, "bbox": [0.49, 600.33, 43.78, 39.67], "category_id": 70, "id": 1095687}, {"segmentation": [[533.75, 417.86, 531.83, 398.63, 536.64, 383.24, 527.98, 364.97, 528.94, 353.43, 532.79, 328.42, 559.72, 307.27, 549.14, 297.65, 561.64, 250.53, 563.56, 240.91, 572.22, 223.6, 616.46, 235.14, 626.07, 243.79, 638.58, 245.72, 640.0, 341.89, 626.07, 338.04, 628.0, 345.74, 640.0, 351.51, 639.54, 420.75, 629.92, 421.71, 532.79, 420.75]], "area": 17923.093, "iscrowd": 0, "image_id": 228907, "bbox": [527.98, 223.6, 112.02, 198.11], "category_id": 70, "id": 1095768}, {"segmentation": [[90.6, 263.9, 135.01, 262.75, 144.24, 266.21, 148.85, 297.93, 148.27, 314.65, 139.62, 323.3, 131.55, 326.77, 121.17, 333.11, 120.01, 354.45, 130.97, 365.41, 128.66, 372.9, 112.51, 401.74, 91.18, 413.85, 66.38, 412.12, 59.45, 408.66, 60.03, 400.59, 61.18, 363.1, 47.34, 352.14, 38.69, 338.3, 39.85, 318.69, 51.38, 306.0, 65.8, 295.62, 64.07, 273.13, 70.41, 264.48, 76.76, 264.48]], "area": 11288.6961, "iscrowd": 0, "image_id": 286359, "bbox": [38.69, 262.75, 110.16, 151.1], "category_id": 70, "id": 1096073}, {"segmentation": [[250.42, 303.28, 256.82, 323.21, 262.52, 335.3, 266.78, 341.71, 278.17, 353.81, 278.88, 365.9, 285.29, 377.29, 292.4, 388.68, 296.67, 393.66, 316.6, 396.51, 321.58, 394.37, 309.48, 365.19, 321.58, 339.57, 354.32, 327.48, 369.97, 320.36, 388.48, 319.65, 399.15, 319.65, 405.56, 317.51, 407.69, 312.53, 407.69, 303.28, 394.88, 293.32, 397.73, 288.34, 407.69, 289.76, 411.96, 294.03, 407.69, 279.8, 399.86, 268.41, 409.83, 256.31, 437.58, 246.35, 434.02, 161.66, 432.6, 150.28, 384.21, 134.62, 375.67, 140.31, 321.58, 147.43, 340.08, 232.83, 347.91, 239.94, 348.62, 240.66, 332.97, 245.64, 347.91, 249.2, 358.59, 254.89, 362.15, 259.16, 362.15, 266.99, 360.72, 268.41, 337.95, 271.26, 323.72, 274.81, 313.04, 274.81, 300.23, 279.08, 292.4, 284.07, 286.0, 296.16, 273.19, 297.59, 266.78, 299.72]], "area": 21848.734849999993, "iscrowd": 0, "image_id": 208754, "bbox": [250.42, 134.62, 187.16, 261.89], "category_id": 70, "id": 1096268}, {"segmentation": [[102.16, 21.35, 70.19, 30.88, 62.7, 39.72, 57.94, 56.05, 62.7, 69.65, 79.71, 90.74, 99.44, 100.95, 99.44, 137.0, 113.73, 147.21, 128.01, 151.29, 186.52, 124.08, 190.6, 111.83, 185.16, 102.31, 189.24, 72.37, 194.68, 65.57, 198.08, 41.76, 208.97, 37.0, 228.02, 34.96, 235.5, 26.11, 237.54, 2.98, 237.54, 2.98, 149.1, 0.26, 151.82, 11.83, 142.98, 7.74, 135.5, 8.43]], "area": 15859.901650000002, "iscrowd": 0, "image_id": 180571, "bbox": [57.94, 0.26, 179.6, 151.03], "category_id": 70, "id": 1096624}, {"segmentation": [[105.33, 218.91, 102.79, 232.87, 110.41, 269.67, 119.29, 302.66, 145.94, 322.97, 140.86, 359.77, 137.06, 383.88, 139.59, 405.46, 125.63, 411.8, 120.56, 425.76, 187.82, 456.22, 241.12, 458.76, 263.96, 448.6, 275.38, 442.26, 265.23, 355.96, 265.23, 344.54, 304.57, 303.93, 333.76, 259.52, 338.83, 235.41, 340.1, 215.1, 329.95, 203.68, 262.69, 187.18, 272.84, 107.23, 68.53, 81.85, 41.88, 85.66, 26.65, 97.08, 36.8, 189.72, 45.69, 207.49, 73.6, 221.45, 97.72, 225.25]], "area": 69774.38575000002, "iscrowd": 0, "image_id": 154140, "bbox": [26.65, 81.85, 313.45, 376.91], "category_id": 70, "id": 1096726}, {"segmentation": [[149.91, 153.51, 147.03, 180.9, 147.03, 201.08, 144.14, 248.65, 155.68, 290.45, 188.83, 338.02, 187.39, 361.08, 200.36, 369.73, 158.56, 402.88, 131.17, 459.1, 128.29, 500.9, 134.05, 554.23, 144.14, 568.65, 164.32, 587.39, 185.95, 596.04, 200.36, 600.36, 210.45, 620.54, 216.22, 633.51, 272.43, 632.07, 294.05, 614.77, 325.77, 568.65, 345.95, 496.58, 344.5, 477.84, 341.62, 434.59, 331.53, 398.56, 327.21, 376.94, 322.88, 358.2, 324.32, 346.67, 327.21, 336.58, 330.09, 333.69, 338.74, 329.37, 394.95, 276.04, 393.51, 173.69, 399.28, 154.95, 392.07, 143.42, 383.42, 140.54, 299.82, 150.63, 272.43, 146.31, 262.34, 141.98, 236.4, 134.77, 229.19, 130.45, 209.01, 130.45, 200.36, 130.45, 185.95, 130.45, 152.79, 149.19, 152.79, 150.63]], "area": 95646.8824, "iscrowd": 0, "image_id": 512788, "bbox": [128.29, 130.45, 270.99, 503.06], "category_id": 70, "id": 1097028}, {"segmentation": [[189.12, 1.58, 195.78, 25.35, 208.14, 43.42, 214.8, 55.79, 238.57, 50.08, 263.3, 51.98, 285.17, 53.88, 295.63, 53.88, 306.09, 36.77, 306.09, 1.58]], "area": 5375.7324499999995, "iscrowd": 0, "image_id": 329368, "bbox": [189.12, 1.58, 116.97, 54.21], "category_id": 70, "id": 1097117}, {"segmentation": [[312.09, 313.53, 371.06, 291.96, 394.07, 241.62, 385.44, 222.92, 358.11, 207.1, 343.73, 264.63, 329.35, 263.19, 323.6, 290.52, 306.34, 299.15, 297.71, 316.4]], "area": 4116.562749999997, "iscrowd": 0, "image_id": 264244, "bbox": [297.71, 207.1, 96.36, 109.3], "category_id": 73, "id": 1097644}, {"segmentation": [[323.72, 331.46, 285.09, 397.89, 216.35, 412.56, 216.35, 416.43, 231.02, 464.32, 312.9, 451.96, 328.35, 428.01, 364.66, 363.13, 364.66, 361.58]], "area": 9004.628850000003, "iscrowd": 0, "image_id": 363326, "bbox": [216.35, 331.46, 148.31, 132.86], "category_id": 73, "id": 1098818}, {"segmentation": [[113.65, 200.56, 124.16, 339.04, 144.21, 353.37, 154.72, 370.56, 154.72, 372.47, 310.39, 382.98, 317.08, 367.7, 327.58, 346.69, 337.13, 346.69, 351.46, 298.93, 341.91, 207.25, 346.69, 191.97]], "area": 39379.57075, "iscrowd": 0, "image_id": 333643, "bbox": [113.65, 191.97, 237.81, 191.01], "category_id": 73, "id": 1099030}, {"segmentation": [[299.15, 500.49, 244.49, 487.55, 247.37, 516.31, 266.07, 524.94, 207.1, 558.02, 119.37, 539.33, 117.93, 520.63, 90.61, 501.93, 70.47, 496.18, 31.64, 401.26, 61.84, 368.18, 122.25, 314.97, 171.15, 445.84, 268.94, 473.17, 310.65, 478.92, 307.78, 491.87]], "area": 28123.718650000006, "iscrowd": 0, "image_id": 433397, "bbox": [31.64, 314.97, 279.01, 243.05], "category_id": 73, "id": 1099839}, {"segmentation": [[124.72, 370.65, 117.13, 175.98, 120.51, 168.4, 128.93, 166.71, 417.13, 155.76, 423.88, 157.44, 428.93, 163.34, 433.99, 370.65]], "area": 65026.62985, "iscrowd": 0, "image_id": 412289, "bbox": [117.13, 155.76, 316.86, 214.89], "category_id": 73, "id": 1100177}, {"segmentation": [[0.96, 179.86, 105.8, 342.4, 445.31, 213.52, 432.81, 184.67, 356.83, 209.67, 271.23, 234.68, 195.24, 266.42, 65.4, 81.75, 0.0, 46.17]], "area": 39542.2442, "iscrowd": 0, "image_id": 541994, "bbox": [0.0, 46.17, 445.31, 296.23], "category_id": 73, "id": 1100237}, {"segmentation": [[565.18, 165.04, 419.32, 172.72, 408.77, 157.37, 399.17, 112.27, 397.25, 21.11, 540.23, 15.35, 532.55, 113.23, 570.93, 160.24]], "area": 21370.890849999992, "iscrowd": 0, "image_id": 256611, "bbox": [397.25, 15.35, 173.68, 157.37], "category_id": 73, "id": 1100415}, {"segmentation": [[93.2, 365.04, 270.87, 365.04, 275.72, 366.98, 270.87, 433.0, 75.73, 431.83, 89.32, 367.76, 93.2, 365.82]], "area": 12833.250049999997, "iscrowd": 0, "image_id": 319917, "bbox": [75.73, 365.04, 199.99, 67.96], "category_id": 73, "id": 1100843}, {"segmentation": [[193.81, 388.1, 156.39, 265.29, 157.35, 254.74, 284.96, 267.21, 312.78, 371.79, 318.54, 366.03, 412.57, 390.02, 313.74, 406.33, 197.65, 396.74, 192.85, 386.18]], "area": 19586.3774, "iscrowd": 0, "image_id": 286116, "bbox": [156.39, 254.74, 256.18, 151.59], "category_id": 73, "id": 1100954}, {"segmentation": [[583.35, 419.76, 541.14, 281.6, 549.77, 276.8, 639.96, 285.44, 637.08, 418.8, 584.31, 419.76]], "area": 10580.974800000005, "iscrowd": 0, "image_id": 286116, "bbox": [541.14, 276.8, 98.82, 142.96], "category_id": 73, "id": 1101403}, {"segmentation": [[216.81, 344.09, 203.87, 330.07, 279.37, 307.42, 306.34, 224.36, 389.39, 247.01, 358.11, 347.33, 359.19, 357.03, 270.74, 382.92, 250.25, 363.51, 261.03, 344.09, 275.06, 341.93, 273.98, 336.54, 261.03, 335.46, 272.9, 327.91, 275.06, 323.6, 263.19, 324.67, 255.64, 324.67, 248.09, 330.07, 231.91, 330.07, 227.6, 336.54, 220.04, 336.54, 216.81, 341.93]], "area": 13476.343250000002, "iscrowd": 0, "image_id": 130949, "bbox": [203.87, 224.36, 185.52, 158.56], "category_id": 73, "id": 1102046}, {"segmentation": [[77.82, 251.51, 79.81, 258.49, 79.81, 266.47, 34.92, 265.47, 39.91, 272.46, 31.93, 303.38, 28.93, 359.25, 2.99, 356.26, 0.0, 242.53]], "area": 4333.613900000002, "iscrowd": 0, "image_id": 286116, "bbox": [0.0, 242.53, 79.81, 116.72], "category_id": 73, "id": 1102931}, {"segmentation": [[243.86, 341.43, 242.6, 268.62, 236.95, 239.74, 236.95, 229.7, 242.6, 223.42, 246.37, 224.05, 250.76, 254.81, 344.29, 245.39, 367.51, 242.25, 366.88, 219.66, 373.79, 213.38, 373.16, 411.1, 317.92, 425.54, 303.49, 424.28, 288.42, 412.36, 246.37, 370.93, 234.44, 355.24, 235.7, 348.96, 239.46, 346.45]], "area": 21517.9661, "iscrowd": 0, "image_id": 161289, "bbox": [234.44, 213.38, 139.35, 212.16], "category_id": 73, "id": 1103566}, {"segmentation": [[3.65, 340.13, 38.75, 386.63, 65.07, 388.39, 168.61, 354.17, 166.85, 341.88, 157.2, 328.72, 155.45, 244.49, 147.55, 239.22, 21.2, 255.89, 19.44, 262.03, 29.09, 326.96, 7.16, 333.98]], "area": 17813.112899999996, "iscrowd": 0, "image_id": 161289, "bbox": [3.65, 239.22, 164.96, 149.17], "category_id": 73, "id": 1103704}, {"segmentation": [[437.35, 315.27, 454.07, 307.22, 456.55, 298.86, 455.31, 290.18, 458.41, 281.2, 431.46, 274.69, 420.0, 229.16, 328.0, 213.98, 334.19, 231.95, 389.64, 247.74, 375.08, 296.38, 412.56, 310.94, 419.38, 309.39, 430.53, 313.1]], "area": 5541.862100000002, "iscrowd": 0, "image_id": 130949, "bbox": [328.0, 213.98, 130.41, 101.29], "category_id": 73, "id": 1104279}, {"segmentation": [[207.78, 259.02, 211.01, 260.99, 214.24, 258.32, 219.44, 259.58, 222.39, 260.57, 226.74, 258.74, 228.57, 253.97, 226.46, 246.8, 225.34, 242.87, 219.3, 240.9, 211.71, 240.34, 208.06, 240.34, 206.38, 241.18, 207.92, 245.4, 206.1, 257.2]], "area": 370.2808, "iscrowd": 0, "image_id": 304587, "bbox": [206.1, 240.34, 22.47, 20.65], "category_id": 74, "id": 1105138}, {"segmentation": [[260.25, 489.03, 290.36, 483.06, 296.06, 483.06, 298.23, 481.43, 299.31, 479.8, 299.58, 477.09, 299.04, 474.65, 297.69, 472.21, 296.06, 469.77, 293.07, 467.6, 289.82, 465.7, 285.48, 464.07, 281.41, 462.99, 278.15, 462.99, 274.36, 462.99, 270.02, 463.26, 265.68, 464.07, 262.15, 465.97, 257.81, 468.95, 253.2, 472.75, 249.94, 477.63, 248.59, 480.89, 248.59, 483.87, 249.94, 485.77, 253.47, 486.86, 257.27, 487.94, 261.88, 487.94]], "area": 950.1180999999997, "iscrowd": 0, "image_id": 363326, "bbox": [248.59, 462.99, 50.99, 26.04], "category_id": 74, "id": 1105561}, {"segmentation": [[503.1, 298.98, 479.22, 277.43, 476.31, 265.78, 484.46, 257.62, 491.45, 255.29, 499.61, 255.29, 515.92, 265.78, 531.65, 286.75, 528.15, 293.74, 518.83, 300.15]], "area": 1564.6321499999995, "iscrowd": 0, "image_id": 256611, "bbox": [476.31, 255.29, 55.34, 44.86], "category_id": 74, "id": 1105585}, {"segmentation": [[452.91, 76.75, 485.39, 96.24, 516.02, 128.72, 555.0, 173.27, 581.91, 234.52, 595.83, 297.63, 585.62, 357.03, 577.27, 366.31, 520.66, 350.53, 493.74, 325.48, 478.89, 271.65, 456.62, 188.12, 413.0, 133.36, 390.73, 100.88, 395.37, 75.82, 423.21, 69.32, 455.69, 76.75]], "area": 29004.116850000006, "iscrowd": 0, "image_id": 91113, "bbox": [390.73, 69.32, 205.1, 296.99], "category_id": 74, "id": 1105897}, {"segmentation": [[585.57, 223.9, 577.67, 220.08, 576.4, 216.51, 574.36, 216.25, 572.32, 217.53, 563.15, 214.22, 559.08, 214.73, 555.0, 219.06, 554.24, 224.41, 553.73, 231.54, 549.4, 234.59, 547.36, 238.16, 548.38, 244.27, 550.67, 247.84, 555.77, 250.89, 562.13, 251.66, 566.21, 250.89, 571.3, 249.37, 576.65, 247.33, 582.51, 234.34]], "area": 990.4048999999998, "iscrowd": 0, "image_id": 178436, "bbox": [547.36, 214.22, 38.21, 37.44], "category_id": 74, "id": 1107043}, {"segmentation": [[377.6, 285.19, 382.44, 280.72, 387.53, 278.12, 384.18, 274.77, 381.57, 272.66, 378.22, 275.63, 375.37, 276.75, 370.28, 278.98, 368.79, 281.71, 366.31, 283.57, 366.31, 284.07, 366.19, 285.06]], "area": 131.87020000000007, "iscrowd": 0, "image_id": 77841, "bbox": [366.19, 272.66, 21.34, 12.53], "category_id": 75, "id": 1108830}, {"segmentation": [[298.47, 449.66, 284.5, 419.98, 253.06, 381.56, 168.37, 303.85, 166.62, 297.74, 223.38, 287.26, 336.88, 357.98, 360.46, 401.64, 368.32, 430.45, 301.96, 452.28]], "area": 13641.8851, "iscrowd": 0, "image_id": 109776, "bbox": [166.62, 287.26, 201.7, 165.02], "category_id": 75, "id": 1110262}, {"segmentation": [[200.66, 371.1, 216.58, 364.0, 224.54, 361.06, 228.0, 370.92, 212.94, 376.11, 202.39, 373.86]], "area": 222.15785000000014, "iscrowd": 0, "image_id": 77841, "bbox": [200.66, 361.06, 27.34, 15.05], "category_id": 75, "id": 1110496}, {"segmentation": [[89.2, 324.32, 82.13, 349.45, 77.1, 351.18, 69.41, 351.49, 66.74, 345.99, 66.9, 343.32, 74.43, 324.0, 76.79, 322.59, 79.62, 322.12, 84.96, 322.12, 88.89, 322.12]], "area": 447.6672999999999, "iscrowd": 0, "image_id": 169686, "bbox": [66.74, 322.12, 22.46, 29.37], "category_id": 75, "id": 1111010}, {"segmentation": [[274.7, 211.21, 268.19, 200.15, 273.72, 191.04, 283.16, 187.78, 284.14, 191.36], [308.22, 228.79, 319.61, 243.1, 308.22, 251.57, 297.81, 251.89, 300.08, 245.06]], "area": 441.29150000000016, "iscrowd": 0, "image_id": 547693, "bbox": [268.19, 187.78, 51.42, 64.11], "category_id": 75, "id": 1111372}, {"segmentation": [[273.58, 138.2, 372.24, 170.81, 388.12, 182.1, 396.06, 219.3, 394.81, 274.07, 373.49, 290.79, 364.29, 300.4, 316.64, 324.65, 287.79, 315.45, 234.7, 270.31, 228.01, 241.88, 218.4, 224.74, 206.27, 220.14, 201.26, 224.32, 197.91, 211.78, 182.03, 195.89, 162.8, 200.91, 158.2, 213.45, 141.48, 195.06, 128.94, 192.97, 100.93, 164.96, 69.16, 134.44, 49.93, 123.15, 37.8, 85.95, 118.48, 45.82, 146.91, 57.1, 134.37, 59.19, 122.66, 63.79, 115.98, 72.99, 115.98, 82.6, 119.74, 92.22, 141.06, 103.92, 194.57, 90.97, 235.12, 106.43, 247.66, 131.52]], "area": 43452.56339999999, "iscrowd": 0, "image_id": 506140, "bbox": [37.8, 45.82, 358.26, 278.83], "category_id": 75, "id": 1111570}, {"segmentation": [[23.37, 127.81, 30.87, 134.38, 33.21, 142.82, 37.9, 148.44, 41.19, 148.44, 47.75, 151.73, 50.1, 155.95, 49.63, 157.82, 63.7, 155.01, 66.51, 158.76, 65.1, 161.11, 66.51, 165.8, 63.23, 170.02, 68.39, 179.4, 74.48, 182.68, 83.86, 174.71, 86.21, 168.61, 57.13, 142.82, 41.65, 126.87, 30.87, 119.84, 28.06, 119.84]], "area": 1067.8266999999994, "iscrowd": 0, "image_id": 405121, "bbox": [23.37, 119.84, 62.84, 62.84], "category_id": 75, "id": 1111722}, {"segmentation": [[94.45, 399.27, 124.54, 406.79, 127.8, 407.29, 129.81, 409.55, 124.04, 416.32, 120.53, 419.83, 124.29, 413.56, 121.53, 410.8, 117.02, 410.8, 105.74, 420.33, 104.23, 415.32, 99.22, 412.06, 87.43, 412.06, 85.18, 411.8, 84.42, 403.53]], "area": 458.47165, "iscrowd": 0, "image_id": 478260, "bbox": [84.42, 399.27, 45.39, 21.06], "category_id": 75, "id": 1111848}, {"segmentation": [[534.47, 306.09, 544.7, 307.22, 548.3, 313.67, 549.06, 322.0, 542.62, 323.9, 537.5, 324.28, 532.76, 324.09, 521.96, 321.81, 513.82, 318.97, 519.5, 313.86, 524.62, 309.31], [518.55, 328.25, 528.78, 330.34, 530.3, 332.61, 524.43, 333.18, 515.9, 332.42, 514.76, 330.15]], "area": 502.32034999999905, "iscrowd": 0, "image_id": 547693, "bbox": [513.82, 306.09, 35.24, 27.09], "category_id": 75, "id": 1112223}, {"segmentation": [[27.52, 413.56, 24.59, 405.2, 23.34, 392.26, 25.01, 380.14, 28.35, 376.8, 28.77, 374.71, 32.95, 371.79, 70.96, 411.89, 70.54, 417.73, 65.53, 425.67, 35.04, 426.5, 31.7, 422.74, 29.61, 417.73]], "area": 1620.5004500000002, "iscrowd": 0, "image_id": 547693, "bbox": [23.34, 371.79, 47.62, 54.71], "category_id": 75, "id": 1112291}, {"segmentation": [[236.42, 222.34, 237.8, 230.06, 249.94, 223.72, 265.11, 211.58, 270.07, 209.1, 270.07, 214.07, 263.73, 224.55, 278.9, 221.24, 290.76, 212.69, 289.65, 200.28, 283.59, 198.07, 236.98, 222.34]], "area": 617.3698500000005, "iscrowd": 0, "image_id": 127076, "bbox": [236.42, 198.07, 54.34, 31.99], "category_id": 75, "id": 1112725}, {"segmentation": [[625.11, 354.13, 639.63, 351.37, 639.87, 363.36, 639.63, 366.48, 637.83, 367.2, 632.55, 361.56, 624.04, 354.73, 622.96, 354.61]], "area": 133.08365000000032, "iscrowd": 0, "image_id": 547693, "bbox": [622.96, 351.37, 16.91, 15.83], "category_id": 75, "id": 1112937}, {"segmentation": [[100.49, 354.0, 106.66, 341.55, 104.83, 338.13, 89.07, 341.55, 86.33, 353.43]], "area": 224.46795000000003, "iscrowd": 0, "image_id": 169686, "bbox": [86.33, 338.13, 20.33, 15.87], "category_id": 75, "id": 1113555}, {"segmentation": [[330.78, 133.64, 345.84, 130.1, 349.39, 133.64, 348.5, 137.85, 347.17, 140.73, 339.64, 144.5, 334.76, 146.94, 331.88, 144.94, 329.0, 145.83, 325.01, 146.05, 322.13, 145.17, 322.13, 142.95, 323.02, 140.51, 324.79, 139.41, 327.23, 137.85, 329.89, 136.75, 330.78, 133.42, 330.78, 133.42], [368.89, 118.15, 377.62, 116.47, 386.02, 118.82, 387.7, 123.19, 387.03, 124.53, 379.64, 128.56, 375.94, 128.9, 376.61, 123.19]], "area": 406.0305500000001, "iscrowd": 0, "image_id": 50885, "bbox": [322.13, 116.47, 65.57, 30.47], "category_id": 75, "id": 1113947}, {"segmentation": [[359.61, 306.15, 357.07, 304.12, 359.61, 297.52, 374.85, 292.44, 381.45, 298.53, 371.29, 304.12, 363.16, 306.15]], "area": 194.30594999999997, "iscrowd": 0, "image_id": 50885, "bbox": [357.07, 292.44, 24.38, 13.71], "category_id": 75, "id": 1114201}, {"segmentation": [[248.88, 73.15, 245.52, 79.04, 318.67, 104.26, 342.21, 122.76, 369.96, 133.69, 396.02, 146.3, 419.56, 152.19, 422.09, 166.48, 491.87, 179.93, 500.0, 96.69, 476.74, 92.49, 380.89, 82.4, 321.19, 75.67, 255.61, 72.31, 252.24, 72.31]], "area": 12813.629349999997, "iscrowd": 0, "image_id": 335940, "bbox": [245.52, 72.31, 254.48, 107.62], "category_id": 76, "id": 1114647}, {"segmentation": [[24.81, 295.22, 107.87, 448.39, 120.81, 480.0, 266.43, 480.0, 475.69, 322.19, 585.71, 234.82, 596.49, 211.09, 628.85, 181.96, 545.8, 98.91, 494.02, 67.63, 468.13, 40.66, 396.94, 73.02, 314.97, 116.16, 215.73, 155.0, 165.03, 191.67, 32.36, 289.83]], "area": 144555.11705, "iscrowd": 0, "image_id": 16082, "bbox": [24.81, 40.66, 604.04, 439.34], "category_id": 76, "id": 1115004}, {"segmentation": [[156.76, 319.28, 263.19, 306.34, 332.22, 304.9, 345.17, 304.9, 353.8, 332.22, 271.82, 336.54, 156.76, 353.8, 143.82, 348.04, 151.01, 322.16]], "area": 6328.18370000001, "iscrowd": 0, "image_id": 529350, "bbox": [143.82, 304.9, 209.98, 48.9], "category_id": 76, "id": 1115464}, {"segmentation": [[407.91, 117.73, 527.44, 113.5, 545.89, 138.1, 416.75, 143.87, 407.53, 117.35]], "area": 3225.8909500000004, "iscrowd": 0, "image_id": 256611, "bbox": [407.53, 113.5, 138.36, 30.37], "category_id": 76, "id": 1115487}, {"segmentation": [[223.28, 257.18, 294.47, 257.58, 292.08, 274.68, 214.13, 271.5]], "area": 1181.8230000000005, "iscrowd": 0, "image_id": 118550, "bbox": [214.13, 257.18, 80.34, 17.5], "category_id": 76, "id": 1115586}, {"segmentation": [[333.0, 33.95, 464.16, 353.0, 479.04, 394.86, 479.04, 399.51, 477.18, 405.09, 2.79, 406.95, 2.79, 2.33]], "area": 156429.837, "iscrowd": 0, "image_id": 91113, "bbox": [2.79, 2.33, 476.25, 404.62], "category_id": 76, "id": 1115898}, {"segmentation": [[326.07, 250.9, 278.37, 258.57, 193.74, 269.93, 177.27, 271.35, 149.16, 272.77, 143.48, 265.1, 139.5, 241.81, 140.64, 239.54, 166.76, 233.86, 258.77, 222.5, 305.34, 220.23, 309.03, 220.23, 318.41, 225.91, 331.47, 241.53, 329.77, 248.06]], "area": 6776.701750000001, "iscrowd": 0, "image_id": 529350, "bbox": [139.5, 220.23, 191.97, 52.54], "category_id": 76, "id": 1116989}, {"segmentation": [[199.59, 427.0, 197.67, 421.24, 243.73, 377.1, 372.31, 255.24, 426.04, 285.95, 298.42, 427.0]], "area": 14930.081750000003, "iscrowd": 0, "image_id": 256611, "bbox": [197.67, 255.24, 228.37, 171.76], "category_id": 76, "id": 1117099}, {"segmentation": [[367.41, 205.82, 387.6, 185.63, 410.69, 176.01, 465.51, 193.32, 548.22, 222.18, 507.83, 262.57, 426.08, 237.56, 371.25, 204.86]], "area": 7716.630550000002, "iscrowd": 0, "image_id": 178436, "bbox": [367.41, 176.01, 180.81, 86.56], "category_id": 76, "id": 1117419}, {"segmentation": [[315.5, 260.99, 330.27, 240.11, 434.17, 253.35, 443.34, 259.46, 434.17, 283.4, 347.59, 269.65, 315.5, 264.05]], "area": 3306.6597499999975, "iscrowd": 0, "image_id": 118550, "bbox": [315.5, 240.11, 127.84, 43.29], "category_id": 76, "id": 1117528}, {"segmentation": [[294.06, 364.04, 269.74, 343.07, 272.26, 329.66, 273.09, 324.63, 252.13, 322.11, 233.68, 330.5, 227.81, 324.63, 274.77, 311.21, 328.44, 349.78]], "area": 1803.6324000000018, "iscrowd": 0, "image_id": 130949, "bbox": [227.81, 311.21, 100.63, 52.83], "category_id": 76, "id": 1117604}, {"segmentation": [[90.15, 258.81, 89.8, 255.64, 91.91, 241.92, 191.49, 237.7, 193.6, 247.9, 193.25, 251.07, 181.29, 251.07, 159.82, 252.47, 160.17, 254.94, 151.03, 256.7, 130.97, 256.7]], "area": 1588.4931500000007, "iscrowd": 0, "image_id": 118550, "bbox": [89.8, 237.7, 103.8, 21.11], "category_id": 76, "id": 1117635}, {"segmentation": [[116.42, 252.66, 149.34, 249.26, 166.12, 247.13, 179.08, 245.01, 189.27, 245.01, 203.08, 243.95, 208.18, 241.4, 211.36, 240.55, 208.93, 227.71, 202.31, 219.04, 191.16, 214.49, 177.94, 215.73, 162.23, 214.08, 135.79, 214.08, 111.82, 217.38, 95.71, 221.93, 87.03, 224.0, 77.12, 226.47, 73.81, 230.61, 72.16, 240.94, 73.81, 251.27, 80.01, 252.09, 87.03, 252.92, 95.3, 252.51]], "area": 4288.472349999998, "iscrowd": 0, "image_id": 304587, "bbox": [72.16, 214.08, 139.2, 38.84], "category_id": 76, "id": 1117678}, {"segmentation": [[374.53, 6.6, 338.65, 97.0, 213.81, 56.83, 229.6, 3.73, 246.82, 0.0, 365.92, 0.0], [165.02, 0.0, 152.11, 35.3, 167.89, 41.04, 186.55, 2.3]], "area": 11676.066899999998, "iscrowd": 0, "image_id": 428340, "bbox": [152.11, 0.0, 222.42, 97.0], "category_id": 78, "id": 1118508}, {"segmentation": [[332.51, 284.98, 400.4, 260.47, 536.19, 293.16, 531.16, 384.94, 458.87, 421.39, 384.06, 391.22, 331.26, 357.28]], "area": 24500.874799999998, "iscrowd": 0, "image_id": 155049, "bbox": [331.26, 260.47, 204.93, 160.92], "category_id": 78, "id": 1118561}, {"segmentation": [[91.02, 42.98, 99.68, 170.11, 121.35, 210.56, 362.62, 188.89, 362.62, 53.09, 309.16, 29.98]], "area": 43056.68160000001, "iscrowd": 0, "image_id": 239504, "bbox": [91.02, 29.98, 271.6, 180.58], "category_id": 78, "id": 1118604}, {"segmentation": [[391.15, 480.96, 390.47, 510.22, 417.68, 524.5, 436.73, 519.74, 450.34, 504.09, 454.42, 502.05, 461.22, 504.77, 459.18, 480.96, 431.97, 476.88, 434.69, 480.28, 423.13, 483.0, 420.4, 483.0, 411.56, 477.56, 391.83, 478.24, 389.79, 481.64]], "area": 2509.0067500000005, "iscrowd": 0, "image_id": 401182, "bbox": [389.79, 476.88, 71.43, 47.62], "category_id": 78, "id": 1118669}, {"segmentation": [[63.88, 230.49, 59.27, 186.13, 36.23, 179.8, 17.79, 184.98, 10.3, 188.44, 6.27, 191.32, 9.73, 223.0, 0.0, 222.42, 0.0, 165.4, 0.0, 149.84, 14.91, 147.54, 54.66, 157.91, 108.81, 149.27, 129.55, 144.08, 153.74, 138.32, 164.69, 140.62, 169.87, 205.14, 67.33, 235.67]], "area": 10072.350449999998, "iscrowd": 0, "image_id": 17580, "bbox": [0.0, 138.32, 169.87, 97.35], "category_id": 78, "id": 1118749}, {"segmentation": [[536.48, 21.92, 486.07, 16.97, 478.17, 28.84, 527.59, 39.71, 516.72, 74.3, 531.54, 80.23, 580.96, 76.28, 588.87, 20.93]], "area": 4187.4934, "iscrowd": 0, "image_id": 386890, "bbox": [478.17, 16.97, 110.7, 63.26], "category_id": 78, "id": 1118860}, {"segmentation": [[142.28, 168.77, 217.56, 169.72, 214.26, 173.95, 208.15, 186.18, 206.27, 193.71, 203.44, 203.12, 200.15, 214.41, 200.15, 229.94, 139.46, 225.23, 138.51, 170.66]], "area": 3892.292799999999, "iscrowd": 0, "image_id": 222572, "bbox": [138.51, 168.77, 79.05, 61.17], "category_id": 78, "id": 1118874}, {"segmentation": [[574.29, 159.94, 551.52, 159.23, 552.23, 139.3, 541.56, 131.47, 533.73, 131.47, 525.9, 147.84, 525.9, 159.23, 504.55, 159.23, 508.82, 110.12, 577.14, 111.55, 572.87, 154.96]], "area": 2692.909899999999, "iscrowd": 0, "image_id": 280765, "bbox": [504.55, 110.12, 72.59, 49.82], "category_id": 78, "id": 1119313}, {"segmentation": [[365.59, 249.48, 372.31, 222.62, 428.92, 226.45, 420.28, 256.2]], "area": 1615.68525, "iscrowd": 0, "image_id": 346754, "bbox": [365.59, 222.62, 63.33, 33.58], "category_id": 78, "id": 1119560}, {"segmentation": [[419.44, 292.47, 441.51, 289.23, 490.19, 295.07, 498.63, 293.77, 495.39, 342.45, 494.09, 352.84, 446.06, 353.49, 410.36, 338.56, 409.06, 334.01, 410.36, 330.77, 413.6, 330.12, 412.3, 292.47]], "area": 4923.265449999999, "iscrowd": 0, "image_id": 61203, "bbox": [409.06, 289.23, 89.57, 64.26], "category_id": 78, "id": 1119798}, {"segmentation": [[440.66, 225.91, 441.21, 205.88, 443.95, 171.58, 501.57, 165.27, 523.52, 175.97, 533.13, 181.19, 533.4, 234.14, 531.21, 268.99, 523.25, 269.27, 513.37, 265.7, 505.69, 261.04, 493.07, 261.04, 467.55, 268.44, 455.75, 268.44, 452.18, 272.56, 442.03, 274.48, 441.21, 270.64]], "area": 8820.8373, "iscrowd": 0, "image_id": 354359, "bbox": [440.66, 165.27, 92.74, 109.21], "category_id": 79, "id": 1121297}, {"segmentation": [[5.37, 112.79, 109.56, 97.75, 125.01, 104.45, 128.18, 137.71, 111.16, 136.12, 102.45, 138.9, 96.9, 135.73, 64.44, 143.25, 64.44, 143.25, 47.02, 155.13, 45.44, 129.0, 38.71, 123.85, 14.56, 127.81, 20.5, 163.05, 3.87, 166.61, 0.0, 115.54]], "area": 4427.199299999999, "iscrowd": 0, "image_id": 386890, "bbox": [0.0, 97.75, 128.18, 68.86], "category_id": 79, "id": 1121445}, {"segmentation": [[238.94, 278.78, 244.91, 316.41, 262.24, 325.97, 264.03, 329.55, 255.67, 331.34, 256.6, 469.29, 289.53, 467.92, 288.16, 381.47, 279.93, 373.24, 282.67, 362.26, 321.09, 360.89, 321.09, 334.82, 306.0, 330.7, 307.37, 323.84, 329.33, 318.35, 333.44, 299.14, 343.05, 285.42, 345.79, 277.18, 301.88, 270.32, 247.0, 275.81]], "area": 10267.978399999996, "iscrowd": 0, "image_id": 431014, "bbox": [238.94, 270.32, 106.85, 198.97], "category_id": 79, "id": 1121596}, {"segmentation": [[331.48, 343.1, 449.15, 345.97, 434.8, 496.65, 325.74, 493.78]], "area": 17110.667349999992, "iscrowd": 0, "image_id": 379545, "bbox": [325.74, 343.1, 123.41, 153.55], "category_id": 79, "id": 1122212}, {"segmentation": [[261.08, 295.78, 264.79, 404.06, 366.4, 358.08, 367.88, 269.82]], "area": 10280.331900000001, "iscrowd": 0, "image_id": 472861, "bbox": [261.08, 269.82, 106.8, 134.24], "category_id": 79, "id": 1123160}, {"segmentation": [[104.99, 585.35, 317.84, 582.47, 391.19, 583.91, 453.03, 332.22, 461.66, 267.51, 467.42, 250.25, 394.07, 139.51, 90.61, 135.19, 18.7, 234.43, 44.58, 349.48, 86.29, 583.91]], "area": 168157.81209999998, "iscrowd": 0, "image_id": 214766, "bbox": [18.7, 135.19, 448.72, 450.16], "category_id": 79, "id": 1123582}, {"segmentation": [[337.32, 82.15, 337.32, 151.92, 337.32, 158.21, 347.38, 158.21, 354.29, 132.44, 368.75, 126.15, 412.13, 131.18, 412.13, 117.35, 456.76, 122.38, 464.93, 169.53, 479.39, 142.49, 490.7, 117.35, 495.73, 108.55, 491.96, 107.29, 488.19, 106.03, 479.39, 103.52, 474.36, 111.06, 471.22, 112.32, 476.25, 86.55]], "area": 7042.398000000001, "iscrowd": 0, "image_id": 48451, "bbox": [337.32, 82.15, 158.41, 87.38], "category_id": 79, "id": 1123624}, {"segmentation": [[97.79, 463.11, 101.81, 542.66, 113.05, 630.23, 217.5, 527.39, 215.09, 443.83, 220.72, 436.6, 217.5, 436.6, 214.29, 391.61]], "area": 17855.465299999996, "iscrowd": 0, "image_id": 212181, "bbox": [97.79, 391.61, 122.93, 238.62], "category_id": 79, "id": 1123783}, {"segmentation": [[204.3, 262.96, 201.37, 283.48, 201.37, 385.15, 295.21, 377.33, 294.24, 287.39, 296.19, 257.09, 201.37, 261.98]], "area": 11343.4342, "iscrowd": 0, "image_id": 260871, "bbox": [201.37, 257.09, 94.82, 128.06], "category_id": 79, "id": 1124623}, {"segmentation": [[336.26, 332.44, 410.43, 321.38, 413.03, 335.04, 365.54, 346.1, 368.79, 432.62, 368.14, 451.49, 363.59, 504.92, 327.81, 465.88]], "area": 6265.867100000003, "iscrowd": 0, "image_id": 61203, "bbox": [327.81, 321.38, 85.22, 183.54], "category_id": 79, "id": 1125828}, {"segmentation": [[310.86, 282.12, 256.28, 267.9, 256.28, 248.3, 258.97, 240.61, 283.95, 231.39, 292.79, 234.08, 298.94, 233.7, 299.71, 233.31, 303.55, 231.39, 307.01, 230.24, 339.68, 233.7, 345.83, 237.16, 341.6, 241.0, 315.08, 250.22, 315.08, 280.97]], "area": 2777.3893, "iscrowd": 0, "image_id": 346754, "bbox": [256.28, 230.24, 89.55, 51.88], "category_id": 79, "id": 1126620}, {"segmentation": [[231.58, 275.58, 195.4, 305.52, 190.41, 196.98, 228.67, 181.59]], "area": 3858.6100499999993, "iscrowd": 0, "image_id": 102315, "bbox": [190.41, 181.59, 41.17, 123.93], "category_id": 79, "id": 1126793}, {"segmentation": [[335.39, 13.34, 339.2, 65.74, 486.89, 71.46, 502.13, 28.58, 510.71, 0.95, 353.49, 0.0, 333.48, 1.91]], "area": 11091.944599999999, "iscrowd": 0, "image_id": 48451, "bbox": [333.48, 0.0, 177.23, 71.46], "category_id": 79, "id": 1127452}, {"segmentation": [[141.38, 2.89, 288.54, 3.85, 332.78, 0.96, 581.89, 1.92, 640.0, 1.92, 640.0, 363.56, 640.0, 423.19, 527.07, 428.0, 292.39, 428.0, 111.57, 423.19, 121.19, 389.53, 142.35, 365.48, 136.58, 352.02, 59.63, 311.62, 48.09, 76.94, 175.05, 79.83]], "area": 233778.12554999997, "iscrowd": 0, "image_id": 372353, "bbox": [48.09, 0.96, 591.91, 427.04], "category_id": 79, "id": 1127541}, {"segmentation": [[230.86, 260.23, 267.8, 238.64, 360.36, 243.4, 370.24, 255.1, 358.9, 279.98, 235.98, 269.01]], "area": 4144.153300000001, "iscrowd": 0, "image_id": 375528, "bbox": [230.86, 238.64, 139.38, 41.34], "category_id": 79, "id": 1127998}, {"segmentation": [[301.49, 227.39, 302.32, 226.98, 302.18, 212.56, 304.05, 210.34, 304.88, 210.27, 321.79, 210.41, 322.83, 211.11, 325.4, 211.11, 327.55, 213.25, 327.55, 216.58, 327.55, 217.14, 327.13, 217.76, 326.99, 218.11, 326.44, 225.73, 326.23, 226.63, 326.23, 227.32, 325.81, 228.02, 321.52, 229.54, 315.42, 228.85, 306.2, 228.5, 304.95, 228.36, 304.4, 228.09, 303.01, 227.95]], "area": 446.4818499999998, "iscrowd": 0, "image_id": 290153, "bbox": [301.49, 210.27, 26.06, 19.27], "category_id": 80, "id": 1128809}, {"segmentation": [[167.37, 172.85, 176.85, 176.24, 179.89, 185.37, 180.57, 190.78, 179.89, 197.21, 176.85, 200.6, 172.79, 199.58, 145.38, 201.27, 134.55, 200.6, 133.87, 179.28, 138.95, 176.91, 152.48, 175.56, 160.27, 175.56, 164.33, 173.53]], "area": 1123.71805, "iscrowd": 0, "image_id": 110484, "bbox": [133.87, 172.85, 46.7, 28.42], "category_id": 80, "id": 1128875}, {"segmentation": [[45.97, 331.51, 134.64, 338.13, 141.25, 305.04, 45.97, 295.78, 30.09, 311.66]], "area": 3474.79765, "iscrowd": 0, "image_id": 379545, "bbox": [30.09, 295.78, 111.16, 42.35], "category_id": 81, "id": 1129411}, {"segmentation": [[262.74, 435.64, 331.31, 454.4, 395.99, 442.76, 426.39, 419.47, 421.86, 397.48, 392.76, 370.96, 368.18, 365.13, 372.06, 378.72, 360.41, 380.66, 316.43, 369.02, 315.78, 363.19, 322.25, 357.37, 292.49, 354.79, 256.92, 361.25, 233.63, 376.13, 225.87, 392.95, 227.16, 411.71, 259.5, 436.29]], "area": 13925.752199999999, "iscrowd": 0, "image_id": 95880, "bbox": [225.87, 354.79, 200.52, 99.61], "category_id": 81, "id": 1129561}, {"segmentation": [[268.36, 77.13, 267.54, 84.25, 275.48, 80.79, 275.28, 86.49, 318.63, 85.27, 330.43, 84.05, 327.17, 80.79, 326.77, 66.75, 325.34, 69.8, 306.62, 70.41, 271.21, 73.06], [341.83, 83.44, 340.4, 82.42, 341.01, 73.87, 351.39, 74.08, 351.39, 71.23, 367.27, 69.19, 401.05, 79.37]], "area": 1331.5997000000002, "iscrowd": 0, "image_id": 386890, "bbox": [267.54, 66.75, 133.51, 19.74], "category_id": 81, "id": 1129598}, {"segmentation": [[144.05, 377.4, 99.6, 413.71, 303.68, 423.73, 314.32, 389.3]], "area": 6922.272950000002, "iscrowd": 0, "image_id": 121316, "bbox": [99.6, 377.4, 214.72, 46.33], "category_id": 81, "id": 1129888}, {"segmentation": [[583.55, 127.28, 499.42, 167.19, 503.73, 186.61, 509.12, 215.73, 539.33, 255.64, 620.22, 289.08, 640.0, 290.16, 639.64, 168.27, 632.09, 163.96, 632.09, 158.56, 624.54, 154.25, 609.44, 148.85, 605.12, 145.62, 601.89, 134.83, 582.47, 128.36]], "area": 16027.332949999995, "iscrowd": 0, "image_id": 208754, "bbox": [499.42, 127.28, 140.58, 162.88], "category_id": 81, "id": 1130261}, {"segmentation": [[218.27, 311.27, 210.76, 326.92, 319.06, 326.29, 310.3, 309.39]], "area": 1630.9697500000034, "iscrowd": 0, "image_id": 379545, "bbox": [210.76, 309.39, 108.3, 17.53], "category_id": 81, "id": 1130890}, {"segmentation": [[28.3, 317.01, 56.84, 313.5, 68.99, 313.5, 79.24, 313.79, 88.02, 318.48, 86.85, 325.06, 73.97, 332.38, 50.55, 338.38, 41.18, 338.53, 43.23, 334.58, 44.11, 330.92, 42.06, 328.14, 36.5, 324.92, 29.91, 325.21, 26.69, 330.92, 22.44, 330.63, 20.98, 326.82, 19.66, 319.36]], "area": 1109.3040499999997, "iscrowd": 0, "image_id": 575530, "bbox": [19.66, 313.5, 68.36, 25.03], "category_id": 81, "id": 1131750}, {"segmentation": [[435.13, 81.07, 531.0, 87.2, 531.0, 147.06, 497.04, 147.74, 482.75, 153.87, 482.07, 155.91, 493.64, 226.66, 452.82, 213.05, 456.9, 120.53, 454.18, 107.61, 363.7, 79.03]], "area": 8316.713150000001, "iscrowd": 0, "image_id": 446266, "bbox": [363.7, 79.03, 167.3, 147.63], "category_id": 81, "id": 1131964}, {"segmentation": [[128.33, 275.02, 175.53, 275.32, 178.22, 303.1, 168.66, 284.58, 165.67, 285.78, 167.47, 292.35, 170.45, 296.83, 172.25, 301.01, 173.14, 311.17, 83.22, 310.27], [179.72, 273.53, 219.15, 275.02, 191.96, 310.87, 189.87, 311.17, 185.39, 306.99, 185.39, 305.49, 185.09, 296.83, 186.29, 292.65, 186.29, 288.76, 183.6, 285.48, 179.12, 285.78]], "area": 3231.9185500000017, "iscrowd": 0, "image_id": 110484, "bbox": [83.22, 273.53, 135.93, 37.64], "category_id": 81, "id": 1132290}, {"segmentation": [[78.5, 311.12, 1.91, 311.12, 0.96, 286.23, 32.55, 270.92, 122.53, 270.92]], "area": 3748.466799999999, "iscrowd": 0, "image_id": 110484, "bbox": [0.96, 270.92, 121.57, 40.2], "category_id": 81, "id": 1132575}, {"segmentation": [[511.32, 388.53, 555.14, 383.7, 570.96, 380.42, 577.72, 380.42, 624.81, 403.39, 640.0, 411.5, 640.0, 434.66, 640.0, 435.0, 598.18, 435.0, 503.99, 435.0, 494.92, 435.0, 489.32, 434.66, 445.89, 398.76, 445.31, 397.99, 481.79, 393.55]], "area": 7709.2363000000005, "iscrowd": 0, "image_id": 260871, "bbox": [445.31, 380.42, 194.69, 54.58], "category_id": 81, "id": 1132626}, {"segmentation": [[548.27, 345.76, 551.09, 360.79, 553.9, 376.28, 555.31, 381.45, 563.29, 386.61, 574.56, 390.84, 592.87, 394.12, 607.9, 395.53, 622.45, 398.35, 635.6, 398.82, 640.0, 398.82, 639.35, 344.35, 618.23, 342.48, 603.2, 342.48, 589.12, 341.07, 574.09, 340.13, 559.54, 338.72, 550.62, 341.07]], "area": 4552.853099999999, "iscrowd": 0, "image_id": 375528, "bbox": [548.27, 338.72, 91.73, 60.1], "category_id": 81, "id": 1133449}, {"segmentation": [[434.61, 389.76, 558.48, 376.85, 564.48, 374.83, 497.16, 339.39, 493.43, 339.63, 491.39, 342.53, 491.21, 348.66, 478.6, 345.94, 411.72, 352.07, 399.62, 359.57, 434.56, 389.56]], "area": 4750.457250000003, "iscrowd": 0, "image_id": 260871, "bbox": [399.62, 339.39, 164.86, 50.37], "category_id": 81, "id": 1133618}, {"segmentation": [[10.28, 230.2, 55.98, 205.79, 122.34, 209.54, 66.63, 247.1, 8.41, 247.73, 11.54, 230.2]], "area": 2923.2791500000003, "iscrowd": 0, "image_id": 401182, "bbox": [8.41, 205.79, 113.93, 41.94], "category_id": 81, "id": 1133711}, {"segmentation": [[307.07, 163.23, 297.57, 169.42, 290.14, 178.92, 292.2, 198.75, 311.2, 211.55, 335.57, 219.4, 364.07, 220.22, 384.72, 206.59, 386.37, 190.49, 376.87, 174.79, 376.04, 159.51, 396.4, 16.93, 407.55, 10.73, 411.68, 0.0, 327.42, 0.0, 327.42, 5.78, 338.99, 11.56, 314.62, 148.09, 309.67, 151.39]], "area": 14766.258800000001, "iscrowd": 0, "image_id": 180571, "bbox": [290.14, 0.0, 121.54, 220.22], "category_id": 81, "id": 1133838}, {"segmentation": [[440.81, 314.77, 405.53, 310.53, 404.11, 303.0, 406.94, 254.54, 446.46, 238.08, 446.46, 247.96, 444.11, 257.84, 439.4, 263.95, 436.58, 267.25, 438.93, 272.42, 442.22, 272.42, 443.64, 278.54, 442.69, 285.12, 442.69, 289.36, 440.34, 292.65, 441.28, 299.24, 442.22, 303.94, 442.22, 308.18, 442.22, 311.94, 442.69, 314.3, 442.69, 314.77], [524.09, 324.18, 537.73, 325.59, 540.09, 272.42, 541.03, 261.6, 546.2, 257.84, 550.91, 255.95, 551.85, 255.48, 522.21, 252.19, 523.15, 265.36, 523.15, 274.3, 524.56, 279.01, 525.03, 284.18, 525.5, 288.42, 526.44, 293.59, 526.91, 297.36, 525.97, 303.47, 525.03, 307.71, 524.56, 312.88, 524.56, 318.06, 524.56, 319.94, 525.5, 322.76, 525.5, 324.18, 525.5, 324.18]], "area": 3527.549000000001, "iscrowd": 0, "image_id": 222572, "bbox": [404.11, 238.08, 147.74, 87.51], "category_id": 81, "id": 1134485}, {"segmentation": [[10.35, 588.51, 86.39, 539.54, 85.24, 536.66, 12.08, 537.24, 11.5, 586.2]], "area": 1985.128149999999, "iscrowd": 0, "image_id": 401182, "bbox": [10.35, 536.66, 76.04, 51.85], "category_id": 81, "id": 1134560}, {"segmentation": [[469.8, 200.94, 458.97, 202.16, 448.14, 202.37, 439.35, 202.57, 440.17, 203.39, 489.01, 212.79, 511.69, 210.75]], "area": 356.6279999999994, "iscrowd": 0, "image_id": 280765, "bbox": [439.35, 200.94, 72.34, 11.85], "category_id": 81, "id": 1134574}, {"segmentation": [[638.57, 283.06, 544.93, 260.47, 533.17, 256.71, 581.17, 234.12, 586.34, 234.59, 581.17, 242.12, 602.34, 248.71, 605.63, 242.59, 603.75, 240.71, 610.81, 241.65, 605.16, 247.76, 634.34, 251.53, 639.52, 253.41]], "area": 2522.7709500000033, "iscrowd": 0, "image_id": 472861, "bbox": [533.17, 234.12, 106.35, 48.94], "category_id": 81, "id": 1134579}, {"segmentation": [[341.22, 156.18, 348.49, 160.82, 348.89, 164.25, 346.87, 174.94, 336.18, 194.31, 317.82, 206.42, 313.38, 208.24, 311.16, 209.04, 304.5, 209.04, 273.03, 210.05, 249.62, 206.82, 224.61, 199.56, 199.99, 180.8, 196.56, 174.14, 186.88, 151.94, 188.49, 150.13, 196.16, 151.74, 202.41, 154.57, 208.46, 157.79, 213.31, 160.82, 216.53, 158.2, 215.73, 152.15, 213.31, 144.88, 204.23, 136.21, 195.96, 138.83, 188.89, 141.65, 188.29, 137.01, 190.91, 131.57, 202.01, 128.94, 231.06, 130.15, 277.87, 137.82, 297.84, 142.26, 315.4, 145.29, 324.48, 149.32, 337.19, 153.76]], "area": 9319.028250000001, "iscrowd": 0, "image_id": 185474, "bbox": [186.88, 128.94, 162.01, 81.11], "category_id": 81, "id": 1135030}, {"segmentation": [[176.13, 344.37, 168.47, 351.78, 166.13, 358.63, 160.13, 364.81, 156.39, 366.31, 143.65, 369.5, 135.03, 367.62, 131.66, 363.5, 125.85, 359.0, 122.29, 353.38, 116.48, 346.45, 101.49, 344.95, 96.06, 340.83, 92.5, 336.15, 91.56, 318.16, 91.56, 313.1, 91.56, 312.35, 99.81, 305.98, 111.23, 303.92, 118.35, 302.24, 121.73, 303.17, 128.28, 308.79, 137.46, 308.98, 143.27, 313.66, 164.07, 311.79, 189.55, 314.79, 195.17, 319.85, 196.29, 326.59, 196.67, 332.77, 194.04, 336.52, 185.24, 341.58]], "area": 4454.984499999998, "iscrowd": 0, "image_id": 530016, "bbox": [91.56, 302.24, 105.11, 67.26], "category_id": 81, "id": 1135217}, {"segmentation": [[125.57, 260.48, 138.55, 264.66, 179.57, 255.45, 149.85, 244.15, 124.74, 249.17]], "area": 669.4308500000008, "iscrowd": 0, "image_id": 346754, "bbox": [124.74, 244.15, 54.83, 20.51], "category_id": 81, "id": 1135409}, {"segmentation": [[41.55, 205.4, 76.41, 196.25, 107.4, 186.03, 135.57, 187.79, 163.04, 190.96, 163.74, 194.13, 117.96, 207.87, 102.47, 213.85, 55.28, 211.04, 36.62, 208.22]], "area": 1859.0478999999998, "iscrowd": 0, "image_id": 102315, "bbox": [36.62, 186.03, 127.12, 27.82], "category_id": 81, "id": 1136393}, {"segmentation": [[49.17, 400.55, 86.58, 397.83, 106.99, 402.59, 126.72, 414.83, 137.61, 427.76, 135.57, 440.69, 81.82, 484.23, 41.0, 484.91, 16.51, 482.19, 0.0, 474.7, 2.91, 418.24]], "area": 9272.882600000003, "iscrowd": 0, "image_id": 455632, "bbox": [0.0, 397.83, 137.61, 87.08], "category_id": 81, "id": 1136563}, {"segmentation": [[175.28, 123.79, 215.75, 123.79, 233.42, 126.35, 237.04, 130.18, 224.05, 138.49, 197.64, 149.99, 170.59, 149.78, 151.0, 149.14, 150.57, 139.98, 150.57, 138.49, 160.16, 129.75, 165.7, 124.86]], "area": 1732.2600000000004, "iscrowd": 0, "image_id": 36417, "bbox": [150.57, 123.79, 86.47, 26.2], "category_id": 84, "id": 1136970}, {"segmentation": [[528.6, 214.51, 528.6, 220.26, 482.12, 218.83, 473.17, 210.36, 478.6, 210.04, 501.29, 212.44, 521.25, 213.71]], "area": 363.9697500000003, "iscrowd": 0, "image_id": 102315, "bbox": [473.17, 210.04, 55.43, 10.22], "category_id": 84, "id": 1136976}, {"segmentation": [[241.85, 56.46, 245.22, 56.46, 239.33, 29.49, 233.43, 29.49, 241.85, 56.46]], "area": 125.00595000000015, "iscrowd": 0, "image_id": 542041, "bbox": [233.43, 29.49, 11.79, 26.97], "category_id": 84, "id": 1137116}, {"segmentation": [[291.06, 317.17, 273.24, 327.21, 272.11, 330.81, 270.59, 334.6, 299.78, 338.58, 317.59, 326.64, 317.97, 320.2]], "area": 677.0137499999995, "iscrowd": 0, "image_id": 164208, "bbox": [270.59, 317.17, 47.38, 21.41], "category_id": 84, "id": 1137904}, {"segmentation": [[243.5, 122.59, 242.61, 138.35, 243.72, 138.8, 244.39, 141.24, 245.72, 143.9, 246.39, 178.08, 247.05, 179.85, 250.38, 179.63, 249.94, 129.92, 248.16, 122.15]], "area": 282.95835, "iscrowd": 0, "image_id": 304587, "bbox": [242.61, 122.15, 7.77, 57.7], "category_id": 84, "id": 1137905}, {"segmentation": [[64.44, 244.96, 400.11, 308.44, 401.07, 334.41, 367.41, 420.01, 359.71, 428.0, 190.44, 425.78, 0.96, 385.39, 0.0, 321.91, 25.01, 285.36, 1.92, 279.59, 0.0, 244.0, 36.55, 265.16, 65.4, 241.12]], "area": 55279.10339999999, "iscrowd": 0, "image_id": 518110, "bbox": [0.0, 241.12, 401.07, 186.88], "category_id": 84, "id": 1138229}, {"segmentation": [[184.48, 276.85, 149.01, 284.01, 142.17, 278.48, 150.63, 275.23, 151.93, 270.35, 148.03, 266.77, 142.82, 265.79, 138.59, 260.58, 140.87, 267.09, 137.29, 267.09, 133.06, 254.4, 134.36, 250.49, 163.65, 246.26, 166.9, 246.59, 169.18, 259.61, 168.86, 262.86, 167.23, 267.42, 167.23, 270.67, 170.81, 271.65, 171.79, 271.32]], "area": 999.10785, "iscrowd": 0, "image_id": 221328, "bbox": [133.06, 246.26, 51.42, 37.75], "category_id": 84, "id": 1138411}, {"segmentation": [[230.86, 276.07, 231.57, 274.31, 245.64, 270.79, 274.14, 269.03, 284.7, 325.68, 267.46, 329.2, 253.38, 329.9, 239.31, 329.2, 235.79, 329.2]], "area": 2710.0054499999983, "iscrowd": 0, "image_id": 194362, "bbox": [230.86, 269.03, 53.84, 60.87], "category_id": 84, "id": 1138702}, {"segmentation": [[261.36, 269.27, 296.53, 269.85, 296.24, 282.93, 258.74, 282.93, 261.06, 270.72]], "area": 486.3703999999999, "iscrowd": 0, "image_id": 83968, "bbox": [258.74, 269.27, 37.79, 13.66], "category_id": 84, "id": 1139309}, {"segmentation": [[242.45, 27.81, 245.28, 25.54, 248.29, 25.17, 255.27, 50.06, 252.44, 52.32, 250.37, 52.89, 248.48, 53.64]], "area": 185.64115000000035, "iscrowd": 0, "image_id": 542041, "bbox": [242.45, 25.17, 12.82, 28.47], "category_id": 84, "id": 1139400}, {"segmentation": [[56.31, 396.27, 124.31, 404.38, 143.23, 382.76, 142.33, 377.35, 77.92, 369.7, 55.86, 389.51]], "area": 2070.363849999999, "iscrowd": 0, "image_id": 416047, "bbox": [55.86, 369.7, 87.37, 34.68], "category_id": 84, "id": 1139797}, {"segmentation": [[274.71, 297.49, 274.71, 298.83, 284.13, 306.06, 317.4, 301.69, 317.07, 298.66, 307.82, 292.28, 274.88, 296.48]], "area": 379.4332500000001, "iscrowd": 0, "image_id": 418505, "bbox": [274.71, 292.28, 42.69, 13.78], "category_id": 84, "id": 1139908}, {"segmentation": [[162.22, 296.52, 220.61, 319.68, 242.14, 295.87, 240.51, 283.47, 184.4, 262.27, 162.22, 281.19, 162.22, 296.85]], "area": 2806.4855499999994, "iscrowd": 0, "image_id": 178436, "bbox": [162.22, 262.27, 79.92, 57.41], "category_id": 84, "id": 1140180}, {"segmentation": [[91.66, 305.4, 112.27, 308.91, 117.39, 307.45, 120.02, 304.23, 113.29, 297.95, 110.66, 295.32, 107.74, 292.39, 107.45, 290.2, 106.13, 288.44, 104.82, 288.59, 89.32, 300.29, 89.32, 305.7]], "area": 354.99740000000025, "iscrowd": 0, "image_id": 416047, "bbox": [89.32, 288.44, 30.7, 20.47], "category_id": 84, "id": 1140513}, {"segmentation": [[270.67, 335.8, 299.83, 337.29, 318.52, 326.08, 318.52, 336.55, 304.31, 343.28, 269.17, 343.28]], "area": 370.89649999999824, "iscrowd": 0, "image_id": 164208, "bbox": [269.17, 326.08, 49.35, 17.2], "category_id": 84, "id": 1140804}, {"segmentation": [[63.96, 383.01, 139.42, 380.61, 149.31, 368.33, 144.22, 361.75, 70.55, 362.94, 57.67, 375.82, 57.97, 383.61, 64.56, 383.91]], "area": 1618.0836500000003, "iscrowd": 0, "image_id": 233439, "bbox": [57.67, 361.75, 91.64, 22.16], "category_id": 84, "id": 1140846}, {"segmentation": [[474.98, 269.14, 463.62, 267.29, 464.48, 265.45, 475.83, 266.44, 493.01, 263.46, 493.44, 264.74]], "area": 61.6768500000003, "iscrowd": 0, "image_id": 418505, "bbox": [463.62, 263.46, 29.82, 5.68], "category_id": 84, "id": 1140918}, {"segmentation": [[283.91, 49.92, 202.56, 40.88, 187.49, 33.05, 180.87, 31.84, 181.47, 72.82, 281.5, 77.04]], "area": 3214.49425, "iscrowd": 0, "image_id": 359098, "bbox": [180.87, 31.84, 103.04, 45.2], "category_id": 84, "id": 1141729}, {"segmentation": [[472.02, 202.3, 490.62, 205.3, 528.46, 208.29, 528.25, 214.06, 484.64, 210.43, 470.31, 209.79]], "area": 343.08775000000014, "iscrowd": 0, "image_id": 102315, "bbox": [470.31, 202.3, 58.15, 11.76], "category_id": 84, "id": 1141787}, {"segmentation": [[274.38, 345.05, 301.26, 345.05, 315.41, 336.92, 312.93, 348.23, 297.37, 359.2, 270.14, 357.78, 269.78, 351.42, 269.78, 348.23]], "area": 548.3043499999994, "iscrowd": 0, "image_id": 164208, "bbox": [269.78, 336.92, 45.63, 22.28], "category_id": 84, "id": 1141948}, {"segmentation": [[314.71, 164.82, 314.71, 176.93, 338.54, 186.51, 363.94, 184.55, 367.46, 173.81, 367.46, 170.88, 358.86, 166.38, 327.6, 165.21, 321.74, 165.02, 315.49, 165.02]], "area": 913.007, "iscrowd": 0, "image_id": 264244, "bbox": [314.71, 164.82, 52.75, 21.69], "category_id": 84, "id": 1141985}, {"segmentation": [[260.28, 122.36, 263.83, 129.78, 264.15, 179.47, 268.99, 182.06, 269.31, 129.46, 265.44, 122.68]], "area": 301.6802000000014, "iscrowd": 0, "image_id": 304587, "bbox": [260.28, 122.36, 9.03, 59.7], "category_id": 84, "id": 1141990}, {"segmentation": [[14.33, 235.11, 64.04, 214.04, 76.69, 230.06, 29.49, 246.91]], "area": 937.6478499999998, "iscrowd": 0, "image_id": 260603, "bbox": [14.33, 214.04, 62.36, 32.87], "category_id": 84, "id": 1142532}, {"segmentation": [[259.2, 159.4, 197.18, 164.13, 194.82, 83.2, 255.66, 74.93]], "area": 5099.435999999999, "iscrowd": 0, "image_id": 319917, "bbox": [194.82, 74.93, 64.38, 89.2], "category_id": 84, "id": 1142549}, {"segmentation": [[166.74, 349.8, 157.76, 348.01, 151.03, 296.39, 160.9, 296.39]], "area": 489.32880000000057, "iscrowd": 0, "image_id": 528047, "bbox": [151.03, 296.39, 15.71, 53.41], "category_id": 84, "id": 1143257}, {"segmentation": [[131.49, 114.09, 142.04, 115.15, 136.24, 158.42, 133.07, 158.42]], "area": 301.5862999999999, "iscrowd": 0, "image_id": 528047, "bbox": [131.49, 114.09, 10.55, 44.33], "category_id": 84, "id": 1144157}, {"segmentation": [[445.57, 311.48, 452.17, 329.91, 460.69, 328.81, 475.82, 328.81, 486.26, 331.83, 494.79, 334.3, 499.46, 335.68, 500.01, 335.95, 500.84, 333.48, 504.96, 333.48, 508.81, 332.93, 512.38, 330.18, 519.53, 330.45, 518.98, 333.2, 523.38, 330.45, 502.76, 307.36, 485.16, 313.68, 476.92, 316.98, 473.62, 319.18, 472.79, 320.28, 465.92, 314.78, 457.95, 311.48, 447.77, 308.18]], "area": 1226.73165, "iscrowd": 0, "image_id": 164208, "bbox": [445.57, 307.36, 77.81, 28.59], "category_id": 84, "id": 1144926}, {"segmentation": [[256.95, 317.83, 285.98, 322.92, 298.32, 316.38, 267.84, 300.41, 254.77, 314.93]], "area": 513.5491499999994, "iscrowd": 0, "image_id": 83968, "bbox": [254.77, 300.41, 43.55, 22.51], "category_id": 84, "id": 1144984}, {"segmentation": [[452.82, 259.52, 454.74, 257.6, 471.99, 254.53, 490.02, 257.99, 490.79, 259.9, 487.34, 261.05, 470.84, 262.97]], "area": 196.12675000000002, "iscrowd": 0, "image_id": 418505, "bbox": [452.82, 254.53, 37.97, 8.44], "category_id": 84, "id": 1144989}, {"segmentation": [[275.49, 299.42, 284.61, 306.88, 316.93, 302.18, 318.31, 301.35, 319.41, 301.35, 319.14, 304.95, 283.78, 308.81, 273.56, 300.8, 274.11, 298.87]], "area": 115.44674999999981, "iscrowd": 0, "image_id": 418505, "bbox": [273.56, 298.87, 45.85, 9.94], "category_id": 84, "id": 1145079}, {"segmentation": [[405.71, 288.22, 376.37, 291.67, 365.59, 287.58, 363.43, 289.73, 376.37, 296.2, 407.65, 291.67]], "area": 170.12199999999928, "iscrowd": 0, "image_id": 418505, "bbox": [363.43, 287.58, 44.22, 8.62], "category_id": 84, "id": 1145686}, {"segmentation": [[248.46, 122.38, 251.99, 121.99, 255.13, 130.02, 254.15, 179.98, 250.82, 179.98, 250.23, 129.05]], "area": 237.94405000000046, "iscrowd": 0, "image_id": 304587, "bbox": [248.46, 121.99, 6.67, 57.99], "category_id": 84, "id": 1145772}, {"segmentation": [[134.58, 275.63, 127.95, 241.69, 131.68, 235.9, 130.02, 229.69, 122.57, 230.93, 119.26, 237.14, 128.37, 278.12]], "area": 365.2875500000001, "iscrowd": 0, "image_id": 528047, "bbox": [119.26, 229.69, 15.32, 48.43], "category_id": 84, "id": 1145842}, {"segmentation": [[255.1, 178.99, 255.64, 130.85, 251.83, 121.06, 255.64, 121.6, 259.99, 129.76, 259.18, 180.35]], "area": 245.9046000000009, "iscrowd": 0, "image_id": 304587, "bbox": [251.83, 121.06, 8.16, 59.29], "category_id": 84, "id": 1145987}, {"segmentation": [[456.75, 284.09, 507.6, 284.09, 513.36, 271.62, 455.79, 274.5, 454.83, 278.33, 460.58, 283.13]], "area": 588.9698999999988, "iscrowd": 0, "image_id": 233439, "bbox": [454.83, 271.62, 58.53, 12.47], "category_id": 84, "id": 1146567}, {"segmentation": [[72.49, 390.79, 71.18, 385.54, 72.49, 382.26, 138.72, 380.95, 148.23, 368.82, 160.36, 368.82, 162.66, 375.05, 153.81, 389.81]], "area": 961.196050000002, "iscrowd": 0, "image_id": 233439, "bbox": [71.18, 368.82, 91.48, 21.97], "category_id": 84, "id": 1146906}, {"segmentation": [[321.01, 304.79, 318.87, 304.89, 274.49, 301.73, 272.34, 302.34, 271.63, 307.64, 283.67, 316.52, 321.83, 311.73]], "area": 512.5064499999997, "iscrowd": 0, "image_id": 418505, "bbox": [271.63, 301.73, 50.2, 14.79], "category_id": 84, "id": 1146965}, {"segmentation": [[402.43, 208.56, 407.91, 247.29, 411.79, 256.33, 383.7, 266.99, 374.02, 279.58, 355.62, 300.24, 317.53, 331.55, 310.42, 350.27, 296.54, 357.7, 265.23, 378.36, 256.51, 382.56, 252.32, 379.33, 243.28, 340.59, 222.94, 272.8, 206.48, 206.3, 187.75, 136.24, 169.35, 73.3, 175.16, 72.33, 265.87, 56.83, 363.37, 44.89, 367.56, 46.82, 375.96, 86.21, 379.18, 99.12, 375.63, 109.13, 379.18, 116.23, 380.8, 121.4, 377.57, 129.79, 381.77, 137.21, 389.84, 140.76, 392.42, 164.01, 398.88, 196.61]], "area": 51415.178700000004, "iscrowd": 0, "image_id": 196981, "bbox": [169.35, 44.89, 242.44, 337.67], "category_id": 84, "id": 1147207}, {"segmentation": [[443.93, 283.55, 483.2, 287.31, 504.91, 285.23, 501.15, 288.57, 476.09, 291.49]], "area": 169.78119999999987, "iscrowd": 0, "image_id": 233439, "bbox": [443.93, 283.55, 60.98, 7.94], "category_id": 84, "id": 1147394}, {"segmentation": [[383.86, 401.13, 516.29, 385.78, 435.68, 293.65, 429.92, 303.25, 415.52, 302.29, 403.05, 293.65, 399.21, 288.85, 399.21, 274.46, 400.17, 266.78, 404.97, 261.98, 253.35, 278.3, 403.05, 309.96, 404.01, 332.04]], "area": 11330.699249999996, "iscrowd": 0, "image_id": 518110, "bbox": [253.35, 261.98, 262.94, 139.15], "category_id": 84, "id": 1148174}, {"segmentation": [[118.24, 121.62, 118.24, 121.62, 120.59, 160.98, 125.29, 160.58, 122.55, 120.05, 123.73, 117.9, 121.97, 117.11]], "area": 191.60815000000008, "iscrowd": 0, "image_id": 528047, "bbox": [118.24, 117.11, 7.05, 43.87], "category_id": 84, "id": 1148266}, {"segmentation": [[188.7, 348.62, 183.18, 348.12, 177.67, 302.23, 182.43, 301.98]], "area": 237.06584999999998, "iscrowd": 0, "image_id": 528047, "bbox": [177.67, 301.98, 11.03, 46.64], "category_id": 84, "id": 1148295}, {"segmentation": [[187.17, 138.22, 286.35, 138.49, 285.3, 106.56, 237.67, 105.51, 232.96, 86.67, 231.13, 81.7, 204.7, 81.17, 190.04, 83.53, 192.14, 91.38, 182.72, 90.59, 186.12, 139.01]], "area": 4439.17265, "iscrowd": 0, "image_id": 359098, "bbox": [182.72, 81.17, 103.63, 57.84], "category_id": 84, "id": 1148574}, {"segmentation": [[470.76, 283.58, 485.44, 287.49, 484.13, 311.31, 475.0, 310.65, 471.41, 307.39, 471.41, 305.76, 468.15, 304.46]], "area": 376.45579999999995, "iscrowd": 0, "image_id": 418505, "bbox": [468.15, 283.58, 17.29, 27.73], "category_id": 84, "id": 1148606}, {"segmentation": [[59.33, 308.16, 78.74, 296.3, 114.34, 296.3, 114.34, 299.54, 91.69, 314.64, 59.33, 310.32]], "area": 652.876999999999, "iscrowd": 0, "image_id": 359098, "bbox": [59.33, 296.3, 55.01, 18.34], "category_id": 84, "id": 1148734}, {"segmentation": [[153.72, 260.01, 167.61, 261.1, 177.11, 259.64, 177.47, 250.87, 163.96, 249.77, 152.26, 253.43]], "area": 233.78375000000005, "iscrowd": 0, "image_id": 528047, "bbox": [152.26, 249.77, 25.21, 11.33], "category_id": 84, "id": 1149986}, {"segmentation": [[173.07, 112.35, 183.41, 111.53, 179.87, 154.22, 174.43, 157.21, 169.54, 156.94]], "area": 452.8074000000005, "iscrowd": 0, "image_id": 528047, "bbox": [169.54, 111.53, 13.87, 45.68], "category_id": 84, "id": 1150550}, {"segmentation": [[159.98, 98.06, 144.32, 49.43, 147.62, 46.55, 150.5, 44.9, 167.81, 97.23]], "area": 399.21690000000046, "iscrowd": 0, "image_id": 528047, "bbox": [144.32, 44.9, 23.49, 53.16], "category_id": 84, "id": 1150699}, {"segmentation": [[147.77, 276.94, 154.81, 294.72, 156.76, 295.89, 167.51, 293.94, 167.51, 287.69, 170.25, 279.48, 172.4, 275.76, 172.59, 274.98, 166.34, 273.81, 161.84, 273.61, 155.98, 273.61, 150.12, 274.2, 146.21, 276.55]], "area": 384.5546999999997, "iscrowd": 0, "image_id": 575530, "bbox": [146.21, 273.61, 26.38, 22.28], "category_id": 86, "id": 1151318}, {"segmentation": [[218.14, 474.55, 219.61, 470.16, 201.85, 438.29, 205.07, 404.82, 215.37, 389.7, 218.59, 385.51, 225.99, 377.14, 226.31, 363.95, 221.16, 352.69, 227.6, 350.16, 253.66, 353.06, 260.74, 355.31, 270.72, 362.07, 273.94, 365.61, 272.65, 371.08, 284.56, 387.49, 285.2, 395.21, 291.96, 408.73, 295.18, 423.9, 291.96, 444.82, 281.34, 464.13, 269.75, 471.53, 265.89, 481.83, 245.3, 481.83, 223.09, 478.61, 215.69, 476.68]], "area": 8988.060699999998, "iscrowd": 0, "image_id": 516300, "bbox": [201.85, 350.16, 93.33, 131.67], "category_id": 86, "id": 1151498}, {"segmentation": [[286.36, 544.99, 287.17, 574.71, 282.34, 577.12, 140.14, 578.73, 136.12, 498.39, 124.87, 466.25, 126.48, 426.88, 136.12, 396.35, 159.42, 370.64, 170.67, 360.19, 172.27, 370.64, 178.7, 357.78, 185.93, 357.78, 192.36, 369.03, 205.21, 369.03, 202.0, 364.21, 198.79, 352.16, 213.25, 352.16, 215.66, 347.34, 227.71, 340.11, 221.28, 352.96, 222.89, 361.0, 239.76, 356.18, 246.19, 352.96, 262.26, 357.78, 265.47, 340.91, 286.36, 355.37, 318.5, 354.57, 332.16, 372.25, 349.03, 422.06, 347.42, 483.12, 324.93, 509.63, 310.46, 529.72]], "area": 42533.06105, "iscrowd": 0, "image_id": 248016, "bbox": [124.87, 340.11, 224.16, 238.62], "category_id": 86, "id": 1151547}, {"segmentation": [[90.92, 216.86, 99.24, 215.48, 101.32, 215.48, 101.67, 218.59, 102.71, 221.37, 106.86, 222.41, 113.1, 223.1, 116.91, 227.95, 110.33, 244.93, 106.52, 261.91, 100.28, 291.72, 96.81, 299.69, 52.8, 298.55, 85.03, 224.04]], "area": 2997.451, "iscrowd": 0, "image_id": 185474, "bbox": [52.8, 215.48, 64.11, 84.21], "category_id": 86, "id": 1151609}, {"segmentation": [[28.7, 187.5, 32.85, 186.25, 34.52, 197.89, 34.52, 212.86, 23.71, 214.11, 12.06, 212.45, 9.57, 192.49, 9.98, 187.5, 12.06, 185.83, 17.88, 189.58, 22.87, 191.24, 27.86, 189.58, 30.36, 188.33]], "area": 581.00235, "iscrowd": 0, "image_id": 102315, "bbox": [9.57, 185.83, 24.95, 28.28], "category_id": 86, "id": 1151753}, {"segmentation": [[148.99, 307.54, 153.6, 307.54, 157.29, 307.54, 161.68, 306.16, 161.91, 307.54, 160.29, 310.54, 158.91, 315.62, 163.75, 329.0, 159.37, 337.53, 148.06, 338.46, 147.37, 334.07, 145.06, 326.92, 151.29, 315.62, 148.06, 313.31]], "area": 405.8908499999994, "iscrowd": 0, "image_id": 121316, "bbox": [145.06, 306.16, 18.69, 32.3], "category_id": 86, "id": 1152241}, {"segmentation": [[253.93, 485.67, 269.66, 477.81, 282.02, 454.21, 288.76, 394.66, 278.65, 298.03, 265.17, 299.16, 255.06, 286.8, 256.18, 300.28, 243.82, 289.04, 240.45, 298.03, 222.47, 283.43, 220.22, 304.78, 200.0, 320.51, 188.76, 319.38, 187.64, 305.9, 168.54, 301.4, 151.69, 283.43, 152.81, 272.19, 141.57, 264.33, 107.87, 260.96, 11.24, 256.46, 0.0, 263.2, 1.12, 484.55, 256.18, 487.92]], "area": 58390.95585, "iscrowd": 0, "image_id": 162164, "bbox": [0.0, 256.46, 288.76, 231.46], "category_id": 86, "id": 1152804}, {"segmentation": [[43.79, 395.44, 94.12, 404.06, 99.88, 404.06, 108.51, 419.89, 121.45, 444.33, 144.46, 503.3, 154.53, 560.83, 157.4, 596.78, 154.53, 632.74, 118.57, 640.0, 92.69, 640.0, 52.42, 640.0, 19.34, 640.0, 7.83, 632.74, 9.27, 588.15, 12.15, 519.12, 15.02, 468.78, 33.72, 438.58, 62.48, 435.71, 81.18, 434.27, 92.69, 421.32, 56.73, 412.69, 25.09, 424.2, 12.15, 438.58, 7.83, 440.02, 2.08, 412.69, 22.21, 399.75, 27.97, 398.31]], "area": 29371.780100000004, "iscrowd": 0, "image_id": 273427, "bbox": [2.08, 395.44, 155.32, 244.56], "category_id": 86, "id": 1152805}, {"segmentation": [[165.43, 259.81, 235.91, 265.63, 385.63, 264.47, 422.91, 263.3, 467.18, 258.64, 459.03, 321.56, 439.8, 364.08, 411.26, 403.7, 376.89, 420.59, 325.04, 423.5, 228.34, 420.01, 181.15, 360.01, 161.93, 308.74]], "area": 40990.860199999996, "iscrowd": 0, "image_id": 34579, "bbox": [161.93, 258.64, 305.25, 164.86], "category_id": 86, "id": 1152960}, {"segmentation": [[517.14, 259.2, 517.14, 270.42, 515.89, 275.41, 510.49, 278.74, 507.99, 303.27, 509.65, 322.39, 522.96, 320.31, 531.69, 319.9, 538.34, 290.79, 534.18, 278.74, 531.69, 274.58, 531.69, 262.11, 518.38, 261.69]], "area": 1374.3193500000014, "iscrowd": 0, "image_id": 459794, "bbox": [507.99, 259.2, 30.35, 63.19], "category_id": 86, "id": 1153766}, {"segmentation": [[97.08, 337.44, 94.92, 320.18, 94.92, 287.82, 76.58, 261.93, 85.21, 237.12, 76.58, 205.84, 78.74, 200.45, 103.55, 195.06, 128.36, 192.9, 135.91, 203.69, 131.6, 220.94, 131.6, 231.73, 142.38, 246.83, 144.54, 271.64, 140.22, 300.76, 140.22, 327.73, 140.22, 333.12, 122.97, 336.36]], "area": 7363.224599999999, "iscrowd": 0, "image_id": 95880, "bbox": [76.58, 192.9, 67.96, 144.54], "category_id": 86, "id": 1154581}, {"segmentation": [[274.7, 395.07, 241.62, 397.94, 225.8, 393.63, 205.66, 385.0, 194.16, 383.56, 169.71, 484.23, 155.33, 550.39, 182.65, 599.29, 192.72, 602.17, 217.17, 605.04, 251.69, 605.04, 279.01, 597.85, 297.71, 533.13, 303.46, 513.0, 290.52, 462.66]], "area": 24629.323849999993, "iscrowd": 0, "image_id": 323829, "bbox": [155.33, 383.56, 148.13, 221.48], "category_id": 86, "id": 1154992}, {"segmentation": [[500.18, 293.69, 497.56, 302.25, 486.87, 307.0, 483.07, 319.12, 481.64, 334.56, 482.36, 340.5, 491.15, 359.99, 494.47, 364.03, 497.09, 365.22, 531.54, 363.08, 543.42, 362.84, 546.99, 358.56, 554.59, 342.64, 554.12, 320.31, 550.31, 307.47, 547.46, 305.1, 538.2, 302.48, 536.77, 297.49, 536.77, 293.69, 533.92, 291.79, 521.32, 287.99, 510.16, 287.99]], "area": 4523.75035, "iscrowd": 0, "image_id": 270796, "bbox": [481.64, 287.99, 72.95, 77.23], "category_id": 86, "id": 1156374}, {"segmentation": [[365.73, 213.98, 362.04, 205.86, 361.3, 199.95, 361.48, 196.82, 365.73, 194.42, 365.54, 189.99, 365.36, 186.67, 367.02, 185.56, 369.6, 185.56, 372.37, 185.56, 375.14, 186.11, 375.69, 186.85, 375.14, 188.88, 374.77, 193.68, 376.06, 194.79, 378.09, 196.26, 379.75, 197.74, 380.49, 200.14, 379.75, 203.83, 378.09, 209.18, 374.59, 213.98]], "area": 390.09954999999917, "iscrowd": 0, "image_id": 302680, "bbox": [361.3, 185.56, 19.19, 28.42], "category_id": 86, "id": 1156574}, {"segmentation": [[471.14, 220.82, 480.31, 221.47, 484.24, 209.68, 490.13, 209.68, 505.85, 210.99, 508.47, 216.89, 518.95, 218.2, 519.6, 214.27, 516.98, 210.34, 516.98, 204.44, 529.42, 197.24, 528.77, 157.3, 522.88, 143.54, 520.26, 138.31, 509.78, 137.65, 502.58, 136.34, 499.3, 137.0, 496.68, 139.62, 486.86, 138.31, 483.58, 139.62, 480.31, 137.0, 473.76, 157.95, 472.45, 185.45, 471.14, 195.93, 469.83, 203.79, 475.73, 210.34, 476.38, 215.58, 471.14, 218.85]], "area": 3972.9583999999986, "iscrowd": 0, "image_id": 270796, "bbox": [469.83, 136.34, 59.59, 85.13], "category_id": 86, "id": 1156777}, {"segmentation": [[509.12, 0.0, 509.12, 28.04, 514.52, 48.54, 497.26, 64.72, 498.34, 72.27, 459.51, 80.9, 471.37, 64.72, 459.51, 58.25, 447.64, 36.67, 456.27, 30.2, 457.35, 1.08]], "area": 3766.1334, "iscrowd": 0, "image_id": 270796, "bbox": [447.64, 0.0, 66.88, 80.9], "category_id": 86, "id": 1156844}, {"segmentation": [[276.88, 577.42, 295.93, 241.24, 392.3, 254.69, 387.82, 602.07]], "area": 35651.329150000005, "iscrowd": 0, "image_id": 273427, "bbox": [276.88, 241.24, 115.42, 360.83], "category_id": 86, "id": 1157030}, {"segmentation": [[334.05, 273.72, 320.23, 273.72, 314.47, 264.5, 319.65, 253.56, 333.48, 247.8, 345.0, 238.58, 357.1, 232.24, 345.0, 231.67, 328.87, 238.58, 328.29, 227.64, 321.38, 224.76, 317.35, 222.45, 317.35, 217.84, 328.87, 219.57, 347.3, 221.3, 358.25, 220.72, 377.26, 210.93, 410.67, 192.5, 413.55, 195.38, 388.2, 214.39, 413.55, 206.32, 415.28, 208.63, 399.72, 216.11, 375.53, 226.48, 368.62, 228.21, 349.03, 251.25, 347.3, 252.41, 335.21, 253.56, 327.14, 255.86, 321.38, 261.62, 320.8, 265.65, 324.84, 267.96, 327.14, 269.11, 332.9, 266.23, 334.63, 267.96]], "area": 1747.9508999999991, "iscrowd": 0, "image_id": 480629, "bbox": [314.47, 192.5, 100.81, 81.22], "category_id": 87, "id": 1157609}, {"segmentation": [[282.52, 524.68, 256.58, 517.48, 246.49, 508.83, 240.72, 488.65, 245.05, 465.59, 246.49, 452.61, 256.58, 443.96, 263.78, 439.64, 275.32, 443.96, 292.61, 464.14, 302.7, 446.85, 315.68, 438.2, 330.09, 442.52, 341.62, 456.94, 343.06, 472.79, 317.12, 498.74, 328.65, 632.79, 308.47, 629.91]], "area": 9450.815949999997, "iscrowd": 0, "image_id": 456200, "bbox": [240.72, 438.2, 102.34, 194.59], "category_id": 87, "id": 1158394}, {"segmentation": [[251.03, 152.27, 226.7, 166.86, 225.73, 176.59, 215.03, 191.19, 221.84, 205.78, 225.73, 221.35, 228.65, 240.81, 233.51, 254.43, 190.7, 311.84, 185.84, 334.22, 194.59, 355.62, 215.03, 365.35, 241.3, 363.41, 252.0, 361.46, 256.86, 379.95, 269.51, 393.57, 277.3, 395.51, 296.76, 388.7, 301.62, 370.22, 326.92, 357.57, 372.65, 359.51, 380.43, 354.65, 387.24, 316.7, 411.57, 360.49, 496.22, 355.62, 511.78, 386.76, 505.95, 401.35, 554.59, 384.81, 561.41, 352.7, 547.78, 324.49, 515.68, 294.32, 540.97, 276.81, 552.65, 252.49, 532.22, 229.14, 455.35, 203.84, 430.05, 201.89, 400.86, 197.03, 400.86, 168.81, 387.24, 146.43, 382.38, 133.78, 376.54, 130.86, 324.0, 126.0, 290.92, 128.92, 251.03, 149.35], [368.76, 366.32, 354.16, 384.81, 318.16, 390.65, 311.35, 399.41, 302.59, 393.57, 312.32, 368.27, 352.22, 364.38], [439.78, 369.24, 481.62, 359.51, 492.32, 365.35, 497.19, 387.73, 498.16, 399.41, 490.38, 405.24, 468.97, 400.38, 450.49, 378.97]], "area": 67756.5782, "iscrowd": 0, "image_id": 263098, "bbox": [185.84, 126.0, 375.57, 279.24], "category_id": 88, "id": 1159149}, {"segmentation": [[173.7, 377.48, 166.31, 356.04, 166.31, 344.21, 159.65, 336.08, 161.13, 322.77, 169.26, 308.72, 173.7, 302.81, 187.75, 301.33, 201.05, 306.5, 204.75, 307.98, 212.88, 302.07, 229.15, 302.07, 240.98, 307.98, 256.5, 317.59, 262.42, 322.77, 273.51, 326.47, 276.46, 341.99, 266.85, 348.64, 263.9, 371.56, 255.76, 388.57, 249.85, 393.0, 238.76, 402.61, 232.84, 412.23, 228.41, 423.32, 227.67, 429.97, 231.37, 442.54, 240.24, 452.89, 246.89, 455.11, 246.15, 461.02, 230.63, 495.03, 218.06, 495.77, 210.67, 490.59, 199.58, 497.99, 191.44, 494.29, 180.35, 492.07, 175.92, 484.68, 169.26, 478.03, 153.0, 472.11, 143.39, 457.32, 147.08, 441.8, 149.3, 426.27, 155.96, 412.97, 150.78, 400.4, 148.56, 390.05, 153.0, 381.91, 159.65, 378.96, 167.78, 376.0, 172.96, 378.22]], "area": 17171.877549999994, "iscrowd": 0, "image_id": 417832, "bbox": [143.39, 301.33, 133.07, 196.66], "category_id": 88, "id": 1159477}, {"segmentation": [[83.19, 142.7, 77.51, 155.98, 84.62, 161.67, 86.51, 170.67, 90.78, 179.21, 99.32, 181.58, 108.8, 176.84, 115.44, 182.53, 127.76, 187.27, 133.45, 184.42, 136.77, 174.94, 129.19, 167.83, 126.34, 163.09, 133.45, 159.3, 140.09, 156.92, 138.67, 144.12, 141.04, 135.59, 137.25, 123.74, 130.13, 110.46, 125.87, 100.03, 121.6, 94.34, 127.29, 89.6, 129.66, 81.06, 128.71, 70.63, 127.29, 67.79, 127.29, 61.62, 126.34, 58.3, 121.13, 57.36, 114.49, 59.73, 109.75, 57.36, 103.11, 58.78, 99.32, 56.41, 92.68, 54.51, 87.94, 55.46, 85.09, 63.05, 86.99, 70.63, 87.94, 73.48, 87.94, 79.17, 91.26, 89.12, 91.73, 91.97, 90.31, 95.29, 82.25, 102.4, 75.61, 118.05, 75.61, 124.21, 79.4, 132.74]], "area": 6054.892999999999, "iscrowd": 0, "image_id": 204603, "bbox": [75.61, 54.51, 65.43, 132.76], "category_id": 88, "id": 1159508}, {"segmentation": [[345.17, 342.87, 347.47, 316.4, 329.06, 300.3, 295.69, 304.9, 250.82, 315.25, 113.91, 294.54, 100.1, 318.71, 82.84, 347.47, 52.93, 363.58, 28.76, 379.69, 46.02, 433.76, 69.03, 436.06, 98.95, 445.27, 126.56, 425.71, 116.21, 409.6, 142.67, 379.69, 159.93, 433.76, 212.85, 417.65, 240.47, 423.41, 247.37, 415.35, 240.47, 405.0, 258.88, 392.34, 280.74, 414.2, 312.95, 409.6, 342.87, 385.44, 344.02, 339.42]], "area": 31435.286449999996, "iscrowd": 0, "image_id": 59406, "bbox": [28.76, 294.54, 318.71, 150.73], "category_id": 88, "id": 1159677}, {"segmentation": [[303.08, 192.66, 334.46, 196.58, 342.96, 201.16, 361.26, 214.23, 367.14, 245.6, 365.83, 273.71, 332.5, 299.86, 331.19, 318.81, 331.19, 350.84, 340.34, 373.07, 317.46, 320.78, 316.16, 317.51, 307.66, 318.16, 301.77, 324.04, 299.16, 348.88, 304.39, 367.19, 307.0, 375.0, 149.47, 375.0, 154.7, 362.61, 184.77, 352.15, 199.15, 299.2, 208.3, 278.94, 208.95, 273.06, 208.95, 254.76, 234.45, 237.11, 239.02, 236.45, 220.72, 227.96, 222.03, 210.08, 223.99, 200.93, 237.72, 197.01, 250.79, 191.78, 254.06, 185.24, 261.9, 179.36, 270.4, 177.4, 286.74, 181.32, 291.32, 183.94, 300.47, 188.51]], "area": 25318.272800000002, "iscrowd": 0, "image_id": 75973, "bbox": [149.47, 177.4, 217.67, 197.6], "category_id": 88, "id": 1159757}, {"segmentation": [[129.33, 312.19, 143.82, 308.05, 160.8, 310.95, 163.7, 312.19, 174.88, 308.88, 179.44, 310.95, 179.44, 315.92, 180.27, 321.72, 175.3, 330.42, 172.4, 338.7, 169.5, 345.74, 175.3, 344.91, 193.1, 364.79, 204.29, 378.04, 205.53, 395.85, 203.46, 411.17, 196.83, 416.14, 178.61, 414.48, 176.13, 411.17, 176.95, 419.45, 171.57, 424.42, 160.8, 424.42, 146.31, 421.94, 143.41, 418.21, 135.13, 416.14, 131.4, 411.58, 130.57, 407.03, 130.57, 403.3, 124.36, 391.7, 119.39, 377.62, 121.05, 366.03, 126.85, 356.92, 133.47, 354.43, 123.94, 344.5, 123.35, 341.24, 115.03, 333.81, 112.66, 331.44, 112.36, 321.34, 112.36, 316.89, 114.44, 313.33, 118.89, 309.76, 124.24, 310.65, 130.17, 311.25]], "area": 7438.224549999998, "iscrowd": 0, "image_id": 503023, "bbox": [112.36, 308.05, 93.17, 116.37], "category_id": 88, "id": 1160014}, {"segmentation": [[267.38, 193.39, 293.15, 192.32, 301.74, 223.46, 298.52, 234.2, 256.64, 228.83, 237.32, 259.97, 207.25, 290.04, 187.92, 324.4, 178.26, 361.98, 107.38, 346.95, 96.64, 284.67, 92.35, 249.23, 64.43, 256.75, 31.14, 272.86, 23.62, 305.07, 23.62, 331.92, 11.81, 281.45, 21.48, 259.97, 50.47, 233.12, 98.79, 223.46, 115.97, 224.53, 114.9, 206.28, 107.38, 186.95, 105.23, 161.18, 119.19, 134.33, 127.79, 120.37, 146.04, 117.15, 162.15, 121.45, 194.36, 120.37, 197.58, 117.15, 215.84, 120.37, 244.83, 147.22, 260.94, 177.28, 260.94, 177.28], [24.7, 336.21, 40.81, 339.43, 33.29, 377.02, 21.48, 371.65, 25.77, 345.88, 26.85, 337.28]], "area": 33805.97545, "iscrowd": 0, "image_id": 374391, "bbox": [11.81, 117.15, 289.93, 259.87], "category_id": 88, "id": 1160356}, {"segmentation": [[51.78, 404.13, 76.22, 401.26, 77.66, 379.69, 77.66, 372.49, 84.85, 360.99, 100.67, 359.55, 109.3, 360.99, 123.69, 371.06, 136.63, 376.81, 155.33, 385.44, 188.4, 382.56, 175.46, 350.92, 155.33, 340.85, 155.33, 329.35, 153.89, 312.09, 132.31, 299.15, 122.25, 297.71, 113.62, 290.52, 100.67, 258.88, 102.11, 244.49, 94.92, 231.55, 40.27, 253.12, 12.94, 268.94, 18.7, 290.52, 37.39, 306.34, 18.7, 325.03, 0.0, 359.55, 15.82, 379.69, 46.02, 356.67, 48.9, 356.67, 46.02, 398.38]], "area": 16297.18935, "iscrowd": 0, "image_id": 509702, "bbox": [0.0, 231.55, 188.4, 172.58], "category_id": 88, "id": 1160504}, {"segmentation": [[135.91, 346.25, 85.21, 353.8, 65.8, 353.8, 9.71, 350.56, 7.55, 304.18, 2.16, 275.06, 11.87, 240.54, 11.87, 214.65, 1.08, 184.45, 2.16, 145.62, 12.94, 128.36, 30.2, 128.36, 67.96, 134.83, 88.45, 133.75, 114.34, 125.12, 160.72, 142.38, 152.09, 162.88, 142.38, 185.53, 142.38, 214.65, 133.75, 230.83, 146.7, 264.27, 147.78, 293.39]], "area": 30360.197299999996, "iscrowd": 0, "image_id": 374800, "bbox": [1.08, 125.12, 159.64, 228.68], "category_id": 88, "id": 1160817}, {"segmentation": [[104.63, 180.13, 94.92, 146.7, 100.31, 119.73, 132.67, 81.98, 143.46, 5.39, 288.0, 1.08, 412.04, 1.08, 440.09, 10.79, 529.62, 66.88, 639.64, 134.83, 636.4, 289.08, 535.01, 250.25, 637.48, 314.97, 640.0, 474.61, 203.87, 469.21, 187.69, 420.67, 192.0, 373.21, 194.16, 347.33, 185.53, 307.42, 147.78, 316.04, 121.89, 293.39, 108.94, 269.66, 110.02, 226.52, 122.97, 189.84]], "area": 216947.73485000004, "iscrowd": 0, "image_id": 102200, "bbox": [94.92, 1.08, 545.08, 473.53], "category_id": 88, "id": 1160981}, {"segmentation": [[173.36, 478.88, 190.17, 498.67, 198.09, 523.4, 191.16, 545.16, 170.39, 551.09, 150.61, 554.06, 126.87, 545.16, 98.18, 547.13, 76.42, 534.28, 61.58, 512.51, 75.43, 476.9, 81.37, 471.96, 67.52, 453.17, 57.63, 429.43, 64.55, 393.82, 81.37, 374.03, 83.34, 356.23, 75.43, 334.47, 80.38, 312.71, 97.19, 299.85, 117.96, 286.0, 136.76, 284.02, 158.52, 291.93, 171.38, 305.78, 163.47, 316.66, 157.53, 334.47, 159.51, 356.23, 169.4, 372.05, 155.55, 385.9, 148.63, 397.77, 151.6, 416.57, 141.7, 447.23, 144.67, 465.04, 161.49, 476.9]], "area": 23696.5682, "iscrowd": 0, "image_id": 417832, "bbox": [57.63, 284.02, 140.46, 270.04], "category_id": 88, "id": 1161013}, {"segmentation": [[397.22, 286.62, 413.57, 305.85, 422.23, 304.89, 444.35, 266.42, 461.66, 250.07, 480.9, 327.97, 501.1, 360.67, 506.87, 372.22, 512.64, 393.38, 493.4, 402.99, 528.99, 414.53, 558.8, 413.57, 565.54, 400.11, 560.73, 361.64, 540.53, 326.05, 544.38, 309.7, 548.22, 297.2, 571.31, 324.13, 611.7, 385.68, 624.21, 394.34, 630.94, 396.26, 640.0, 346.25, 634.79, 317.39, 622.28, 291.42, 635.75, 285.65, 636.71, 278.92, 577.08, 174.09, 565.54, 154.85, 571.31, 121.19, 571.31, 112.53, 571.31, 92.33, 579.96, 67.33, 578.04, 60.59, 566.5, 53.86, 534.76, 52.9, 487.63, 63.48, 456.85, 75.98, 438.58, 100.99, 455.89, 130.8, 464.55, 151.96, 447.24, 197.17, 411.65, 245.26]], "area": 47328.3011, "iscrowd": 0, "image_id": 518110, "bbox": [397.22, 52.9, 242.78, 361.63], "category_id": 88, "id": 1161051}, {"segmentation": [[411.4, 238.71, 444.19, 250.79, 448.5, 250.79, 449.37, 248.2, 440.74, 236.12, 439.87, 232.67, 441.6, 213.68, 445.91, 202.46, 452.82, 199.87, 464.04, 198.15, 476.98, 193.83, 484.75, 192.97, 497.69, 187.79, 507.18, 187.79, 516.67, 187.79, 527.89, 191.24, 539.11, 198.15, 542.56, 201.6, 553.78, 203.33, 566.72, 204.19, 573.63, 210.23, 575.35, 217.13, 577.08, 230.08, 574.49, 241.29, 571.9, 250.79, 565.86, 259.42, 559.82, 267.18, 558.96, 274.95, 557.23, 287.89, 555.51, 294.8, 550.33, 306.88, 549.47, 312.92, 541.7, 322.41, 547.74, 329.31, 558.09, 335.35, 565.86, 343.12, 573.63, 363.83, 575.35, 384.54, 575.35, 400.93, 550.33, 399.21, 541.7, 399.21, 516.67, 395.76, 500.28, 395.76, 495.1, 398.35, 464.04, 389.72, 451.09, 389.72, 444.19, 387.13, 424.34, 381.95, 420.03, 375.05, 422.62, 360.38, 426.07, 343.98, 428.66, 332.76, 425.2, 318.09, 413.99, 298.25, 408.81, 287.89, 403.63, 274.95, 392.41, 268.91, 398.45, 252.51, 406.22, 242.16, 407.08, 238.71]], "area": 28369.03025000001, "iscrowd": 0, "image_id": 374391, "bbox": [392.41, 187.79, 184.67, 213.14], "category_id": 88, "id": 1161210}, {"segmentation": [[227.41, 390.54, 207.26, 367.51, 201.51, 345.44, 197.67, 333.92, 207.26, 313.77, 210.14, 279.23, 218.78, 270.59, 230.29, 269.63, 238.93, 283.07, 243.73, 296.5, 234.13, 309.93, 243.73, 344.48, 248.52, 380.94, 226.45, 386.7]], "area": 3899.1894500000003, "iscrowd": 0, "image_id": 204603, "bbox": [197.67, 269.63, 50.85, 120.91], "category_id": 88, "id": 1161923}, {"segmentation": [[259.77, 220.69, 288.64, 215.49, 316.93, 232.81, 327.32, 239.16, 345.79, 254.75, 338.29, 283.04, 323.28, 281.31, 317.5, 292.86, 335.4, 307.29, 350.41, 343.09, 360.23, 368.49, 334.25, 379.46, 331.94, 387.54, 299.61, 357.52, 290.37, 351.17, 260.92, 370.22, 239.56, 378.3, 218.78, 378.3, 215.31, 365.03, 208.39, 375.42, 185.29, 373.69, 176.63, 349.44, 195.68, 334.43, 243.6, 291.7, 233.21, 247.25, 241.87, 221.27, 252.26, 214.92, 261.5, 223.0]], "area": 17896.956550000006, "iscrowd": 0, "image_id": 509702, "bbox": [176.63, 214.92, 183.6, 172.62], "category_id": 88, "id": 1162227}, {"segmentation": [[480.0, 460.88, 433.96, 495.01, 412.96, 488.01, 401.58, 467.01, 405.09, 451.26, 422.59, 436.38, 414.71, 419.75, 398.96, 430.25, 396.33, 406.63, 391.96, 384.75, 381.46, 374.25, 397.21, 353.25, 407.71, 347.99, 413.84, 329.62, 420.84, 319.12, 431.34, 288.49, 433.96, 275.36, 453.22, 270.11, 458.47, 278.86, 478.59, 278.86]], "area": 14750.527050000002, "iscrowd": 0, "image_id": 509702, "bbox": [381.46, 270.11, 98.54, 224.9], "category_id": 88, "id": 1163022}, {"segmentation": [[350.27, 564.32, 387.75, 562.88, 397.84, 542.7, 381.98, 518.2, 363.24, 515.32, 351.71, 486.49, 337.3, 466.31, 345.95, 453.33, 354.59, 433.15, 340.18, 388.47, 345.95, 372.61, 354.59, 387.03, 369.01, 374.05, 369.01, 349.55, 363.24, 316.4, 351.71, 304.86, 340.18, 301.98, 334.41, 307.75, 325.77, 299.1, 309.91, 294.77, 294.05, 297.66, 283.96, 304.86, 275.32, 299.1, 263.78, 299.1, 250.81, 300.54, 253.69, 313.51, 270.99, 325.05, 278.2, 338.02, 265.23, 350.99, 265.23, 376.94, 259.46, 387.03, 243.6, 397.12, 230.63, 411.53, 227.75, 433.15, 236.4, 454.77, 247.93, 463.42, 230.63, 495.14, 224.86, 500.9, 213.33, 492.25, 200.36, 499.46, 190.27, 495.14, 197.48, 519.64, 194.59, 542.7, 200.36, 558.56, 213.33, 574.41, 232.07, 578.74, 253.69, 570.09, 273.87, 545.59, 273.87, 500.9, 292.61, 502.34, 314.23, 500.9, 312.79, 512.43, 322.88, 538.38, 330.09, 554.23, 338.74, 560.0]], "area": 30464.194399999993, "iscrowd": 0, "image_id": 417832, "bbox": [190.27, 294.77, 207.57, 283.97], "category_id": 88, "id": 1163028}, {"segmentation": [[304.09, 239.4, 296.65, 238.03, 291.97, 232.51, 291.97, 225.35, 299.41, 214.88, 306.57, 211.02, 307.67, 207.44, 309.14, 204.11, 313.29, 201.95, 312.52, 203.34, 309.91, 205.34, 309.14, 212.42, 312.37, 211.65, 320.38, 209.8, 322.07, 212.88, 315.45, 214.11, 310.06, 215.34, 309.75, 225.35, 302.83, 229.51, 301.59, 234.28, 302.21, 237.51]], "area": 365.5922999999993, "iscrowd": 0, "image_id": 20251, "bbox": [291.97, 201.95, 30.1, 37.45], "category_id": 27, "id": 1163545}, {"segmentation": [[417.48, 234.27, 424.44, 249.74, 419.8, 259.79, 419.8, 266.75, 419.8, 276.81, 422.89, 274.49, 425.21, 272.94, 427.53, 255.15, 437.59, 269.85, 436.04, 293.05, 436.04, 371.16, 444.55, 369.61, 441.45, 286.86, 446.09, 325.53, 449.96, 339.45, 451.51, 345.64, 465.43, 330.94, 469.29, 316.25, 467.75, 306.97, 442.23, 263.66, 441.45, 235.04, 433.72, 218.8, 413.61, 231.95]], "area": 2797.198249999999, "iscrowd": 0, "image_id": 205700, "bbox": [413.61, 218.8, 55.68, 152.36], "category_id": 27, "id": 1163677}, {"segmentation": [[434.78, 187.41, 432.02, 184.86, 419.69, 184.65, 412.25, 191.87, 408.0, 191.66, 406.73, 189.96, 400.35, 190.81, 396.95, 195.28, 396.95, 207.18, 401.62, 212.71, 408.43, 216.96, 409.49, 221.21, 412.25, 223.12, 411.61, 229.71, 413.1, 230.35, 414.38, 228.22, 415.02, 221.21, 420.54, 215.68, 424.79, 214.83, 429.9, 209.73, 432.87, 209.73, 440.31, 200.38, 440.95, 196.98]], "area": 1098.4813999999997, "iscrowd": 0, "image_id": 53361, "bbox": [396.95, 184.65, 44.0, 45.7], "category_id": 27, "id": 1165185}, {"segmentation": [[354.14, 264.1, 348.61, 282.33, 345.03, 285.58, 337.87, 283.3, 335.27, 276.47, 333.96, 273.54, 334.94, 261.17, 339.5, 256.94, 346.66, 257.27, 348.93, 259.22, 349.91, 251.41, 351.86, 252.39]], "area": 451.38685000000027, "iscrowd": 0, "image_id": 20251, "bbox": [333.96, 251.41, 20.18, 34.17], "category_id": 27, "id": 1165230}, {"segmentation": [[486.6, 124.51, 494.98, 133.15, 496.55, 137.6, 497.6, 142.31, 498.91, 146.24, 489.22, 159.86, 480.06, 157.5, 476.65, 146.5, 479.01, 141.01, 482.15, 134.98, 483.46, 131.32, 484.51, 127.92]], "area": 479.9132000000013, "iscrowd": 0, "image_id": 265532, "bbox": [476.65, 124.51, 22.26, 35.35], "category_id": 27, "id": 1166530}, {"segmentation": [[209.48, 278.31, 211.95, 283.08, 213.43, 288.19, 215.57, 294.6, 216.23, 297.07, 218.86, 296.74, 219.19, 291.15, 218.37, 285.72, 217.38, 278.81, 217.22, 276.67, 215.41, 275.84]], "area": 109.28110000000021, "iscrowd": 0, "image_id": 575792, "bbox": [209.48, 275.84, 9.71, 21.23], "category_id": 27, "id": 1167050}, {"segmentation": [[468.96, 197.91, 469.47, 194.1, 474.29, 193.59, 476.07, 191.05, 480.39, 189.78, 481.67, 189.78, 487.76, 190.29, 490.31, 190.29, 491.83, 190.54, 492.85, 192.07, 494.88, 194.35, 496.91, 196.13, 497.68, 197.4, 497.93, 200.45, 497.93, 202.49, 497.93, 204.26, 497.93, 206.3, 497.93, 207.82, 498.19, 210.11, 498.19, 211.64, 498.19, 214.69, 498.44, 218.24, 498.44, 218.5, 498.44, 221.8, 498.44, 221.8, 499.96, 223.84, 499.96, 225.11, 499.96, 227.39, 499.96, 228.41, 497.93, 230.19, 497.93, 230.19, 496.66, 231.97, 495.9, 232.73, 493.61, 233.75, 490.81, 234.0, 487.0, 234.76, 485.99, 234.76, 483.44, 234.76, 480.39, 234.76, 478.36, 234.76, 476.58, 235.02, 475.31, 235.27, 473.02, 235.53, 468.96, 235.53, 467.69, 235.53, 465.65, 234.76, 465.14, 234.51, 463.87, 233.75, 463.62, 233.49, 462.86, 231.46, 462.6, 230.19, 462.6, 228.16, 462.6, 225.61, 462.6, 222.82, 462.6, 221.55, 462.6, 220.02, 462.86, 217.99, 464.64, 216.46, 465.91, 216.46, 466.42, 215.96, 466.42, 212.4, 466.92, 210.62, 466.92, 209.6, 466.92, 208.08, 466.92, 206.3, 467.18, 202.49, 467.18, 200.96, 467.18, 200.2, 467.69, 197.91]], "area": 1402.0922, "iscrowd": 0, "image_id": 1431, "bbox": [462.6, 189.78, 37.36, 45.75], "category_id": 27, "id": 1167098}, {"segmentation": [[91.33, 297.34, 97.4, 295.82, 95.73, 277.46, 90.27, 271.08, 84.2, 270.63, 84.5, 276.09, 88.9, 282.31, 89.97, 295.21]], "area": 202.34295000000003, "iscrowd": 0, "image_id": 575792, "bbox": [84.2, 270.63, 13.2, 26.71], "category_id": 27, "id": 1167279}, {"segmentation": [[517.43, 208.72, 513.55, 223.28, 516.46, 236.87, 516.46, 247.55, 528.11, 249.49, 538.79, 245.61, 559.17, 239.78, 571.79, 235.9, 572.76, 232.02, 563.06, 218.43, 531.99, 204.84]], "area": 1774.237599999999, "iscrowd": 0, "image_id": 540547, "bbox": [513.55, 204.84, 59.21, 44.65], "category_id": 27, "id": 1167463}, {"segmentation": [[54.7, 346.08, 54.7, 349.78, 55.03, 352.14, 56.38, 354.83, 56.38, 360.89, 55.71, 363.25, 55.03, 368.64, 56.38, 375.7, 58.74, 381.09, 58.74, 382.44, 59.07, 387.82, 59.07, 392.54, 59.07, 393.21, 64.46, 393.88, 66.14, 392.87, 68.5, 388.5, 68.83, 386.81, 70.18, 383.11, 70.18, 376.71, 69.51, 373.01, 69.51, 371.33, 66.14, 359.88, 66.14, 358.54, 64.12, 353.82, 61.09, 348.44, 59.75, 347.09, 55.03, 344.4]], "area": 497.33970000000005, "iscrowd": 0, "image_id": 311522, "bbox": [54.7, 344.4, 15.48, 49.48], "category_id": 27, "id": 1167551}, {"segmentation": [[186.61, 251.33, 186.61, 251.33, 213.57, 228.67, 211.42, 214.65, 204.94, 199.55, 192.0, 190.92, 167.19, 199.55, 189.84, 179.06, 199.55, 179.06, 220.04, 202.79, 220.04, 229.75, 199.55, 255.64]], "area": 1032.7305999999996, "iscrowd": 0, "image_id": 343057, "bbox": [167.19, 179.06, 52.85, 76.58], "category_id": 27, "id": 1167721}, {"segmentation": [[571.53, 273.08, 571.53, 289.37, 569.02, 299.81, 571.11, 305.24, 585.73, 298.14, 579.88, 273.08]], "area": 352.5276500000012, "iscrowd": 0, "image_id": 450281, "bbox": [569.02, 273.08, 16.71, 32.16], "category_id": 27, "id": 1168541}, {"segmentation": [[165.85, 294.92, 168.56, 294.58, 169.75, 286.44, 169.66, 283.81, 168.05, 283.98, 165.51, 276.61, 158.73, 275.76, 161.36, 279.23, 162.37, 280.93, 165.26, 286.53, 165.09, 292.38, 163.9, 294.92, 166.53, 294.58]], "area": 86.04759999999993, "iscrowd": 0, "image_id": 575792, "bbox": [158.73, 275.76, 11.02, 19.16], "category_id": 27, "id": 1168749}, {"segmentation": [[308.47, 234.59, 304.15, 242.85, 303.75, 266.05, 309.46, 272.94, 318.7, 265.46, 318.7, 252.68, 319.49, 242.85, 308.87, 236.55]], "area": 449.0664, "iscrowd": 0, "image_id": 20251, "bbox": [303.75, 234.59, 15.74, 38.35], "category_id": 27, "id": 1169553}, {"segmentation": [[363.89, 215.01, 363.87, 207.21, 364.93, 199.61, 367.87, 195.04, 368.62, 186.5, 371.48, 181.99, 378.45, 179.12, 382.55, 175.43, 392.39, 173.38, 398.33, 174.0, 406.09, 168.01, 417.05, 164.38, 429.27, 167.24, 437.26, 172.56, 443.0, 180.97, 446.48, 188.55, 453.65, 197.97, 459.8, 200.02, 462.88, 198.59, 466.77, 204.12, 466.36, 211.7, 460.7, 212.76, 465.84, 227.57, 470.46, 246.74, 474.35, 257.19, 478.86, 254.33, 485.42, 252.89, 486.16, 264.12, 481.52, 265.6, 489.31, 271.33, 488.69, 277.07, 489.55, 279.77, 494.2, 284.66, 497.04, 287.89, 491.28, 291.72, 485.21, 284.24, 483.78, 285.94, 484.34, 306.15, 481.67, 313.77, 473.33, 319.69, 465.74, 320.72, 458.07, 328.64, 458.33, 331.68, 450.73, 338.14, 434.8, 340.5, 422.64, 339.88, 421.96, 334.15, 431.75, 332.12, 424.85, 329.58, 422.68, 325.57, 413.49, 323.82, 406.98, 322.37, 401.5, 319.39, 392.9, 312.51, 387.67, 301.78, 382.49, 291.14, 370.43, 291.39, 369.06, 291.02, 368.81, 282.81, 377.52, 280.69, 384.23, 269.75, 383.12, 257.56, 376.65, 244.49, 366.33, 228.61, 363.84, 218.38]], "area": 14925.447399999997, "iscrowd": 0, "image_id": 194362, "bbox": [363.84, 164.38, 133.2, 176.12], "category_id": 27, "id": 1169730}, {"segmentation": [[496.96, 325.52, 490.13, 322.11, 488.58, 318.38, 488.89, 311.25, 491.07, 307.21, 491.38, 303.8, 490.13, 300.38, 491.38, 300.38, 493.24, 301.62, 497.89, 301.93, 498.2, 301.62, 501.0, 298.83, 501.93, 298.83, 503.17, 301.0, 502.55, 306.59, 505.65, 311.87, 506.59, 316.21, 507.21, 319.63]], "area": 340.47825, "iscrowd": 0, "image_id": 404964, "bbox": [488.58, 298.83, 18.63, 26.69], "category_id": 27, "id": 1169885}, {"segmentation": [[166.96, 128.74, 171.08, 134.78, 174.65, 143.03, 179.6, 149.9, 182.34, 160.06, 180.97, 166.38, 179.32, 173.8, 172.45, 173.8, 165.58, 172.98, 166.68, 161.71, 169.15, 146.05, 168.33, 139.73, 167.23, 133.96, 166.41, 129.01]], "area": 441.53884999999985, "iscrowd": 0, "image_id": 265532, "bbox": [165.58, 128.74, 16.76, 45.06], "category_id": 27, "id": 1170698}, {"segmentation": [[398.18, 235.64, 380.87, 205.82, 376.06, 194.28, 371.25, 176.01, 369.33, 157.73, 372.22, 125.03, 377.02, 93.29, 379.91, 78.87, 394.34, 55.78, 401.07, 44.24, 402.03, 35.59, 396.26, 25.01, 393.38, 22.12, 378.95, 6.73, 412.61, 12.5, 419.34, 18.27, 425.11, 22.12, 426.08, 29.82, 431.85, 30.78, 452.04, 31.74, 460.7, 25.01, 469.36, 13.47, 484.75, 7.69, 492.44, 6.73, 497.25, 14.43, 488.59, 24.04, 477.05, 28.85, 474.17, 35.59, 482.82, 45.2, 488.59, 63.48, 491.48, 73.1, 499.17, 90.41, 505.91, 135.61, 503.98, 155.81, 503.98, 172.16, 506.87, 183.7, 508.79, 193.32, 503.98, 213.52, 498.21, 220.25, 483.78, 230.83, 468.4, 235.64, 446.27, 235.64, 421.27, 237.56, 409.73, 238.53, 404.92, 238.53]], "area": 25273.292800000007, "iscrowd": 0, "image_id": 114079, "bbox": [369.33, 6.73, 139.46, 231.8], "category_id": 27, "id": 1171056}, {"segmentation": [[459.28, 317.72, 454.84, 319.46, 450.72, 322.63, 450.56, 328.34, 448.18, 339.12, 448.5, 346.41, 451.67, 346.57, 456.11, 345.78, 463.71, 345.62, 467.99, 345.15, 468.15, 335.95, 468.47, 333.73, 472.27, 333.73, 473.07, 331.51, 467.36, 322.79, 463.4, 319.46, 458.8, 318.04]], "area": 509.60059999999976, "iscrowd": 0, "image_id": 165347, "bbox": [448.18, 317.72, 24.89, 28.85], "category_id": 27, "id": 1171123}, {"segmentation": [[305.06, 132.65, 306.38, 122.13, 295.53, 109.97, 285.02, 102.41, 284.03, 95.84, 302.1, 99.13, 312.29, 107.01, 320.51, 117.86, 331.02, 138.23, 334.64, 144.48, 332.99, 151.38, 315.58, 136.59, 306.71, 122.46]], "area": 821.8832000000004, "iscrowd": 0, "image_id": 213405, "bbox": [284.03, 95.84, 50.61, 55.54], "category_id": 27, "id": 1171150}, {"segmentation": [[132.57, 228.82, 129.85, 224.74, 123.07, 226.78, 119.67, 234.93, 98.63, 251.9, 93.88, 261.4, 87.77, 266.15, 78.27, 279.73, 68.76, 288.55, 65.37, 298.73, 60.62, 313.67, 55.19, 326.56, 63.33, 336.74, 74.87, 348.28, 82.34, 348.28, 96.59, 321.13, 121.03, 303.48, 129.17, 251.9, 144.79, 232.89, 163.11, 230.17, 183.48, 252.57, 180.76, 279.73, 184.16, 282.44, 190.94, 270.9, 190.94, 255.97, 177.37, 228.14, 165.83, 218.64, 150.22, 218.64, 143.43, 224.74, 141.39, 223.39, 135.96, 228.14]], "area": 5362.437649999997, "iscrowd": 0, "image_id": 178407, "bbox": [55.19, 218.64, 135.75, 129.64], "category_id": 27, "id": 1171514}, {"segmentation": [[265.17, 287.65, 264.12, 284.49, 260.5, 281.77, 260.05, 279.51, 265.17, 279.21, 266.98, 281.02, 269.24, 280.57, 269.09, 284.19, 271.35, 290.22, 270.9, 292.78, 269.09, 296.25, 267.43, 295.94, 266.98, 292.18, 265.47, 287.8]], "area": 85.23199999999977, "iscrowd": 0, "image_id": 575792, "bbox": [260.05, 279.21, 11.3, 17.04], "category_id": 27, "id": 1171532}, {"segmentation": [[390.49, 402.99, 408.76, 326.05, 408.76, 308.74, 418.38, 297.2, 417.42, 284.69, 428.0, 277.0, 445.31, 287.58, 460.7, 308.74, 490.52, 341.44, 504.94, 393.38, 501.1, 422.23, 398.18, 421.27, 393.38, 400.11, 393.38, 400.11]], "area": 11370.529699999997, "iscrowd": 0, "image_id": 333356, "bbox": [390.49, 277.0, 114.45, 145.23], "category_id": 27, "id": 1171642}, {"segmentation": [[236.6, 193.32, 222.18, 234.68, 254.88, 262.57, 254.88, 359.71, 204.86, 379.91, 173.12, 377.02, 152.93, 302.97, 161.58, 228.91, 134.65, 195.24, 146.19, 189.47, 190.44, 216.4, 228.91, 186.59, 241.41, 189.47, 231.79, 213.52]], "area": 15399.9092, "iscrowd": 0, "image_id": 333356, "bbox": [134.65, 186.59, 120.23, 193.32], "category_id": 27, "id": 1171775}, {"segmentation": [[307.77, 284.61, 308.87, 287.01, 310.87, 289.6, 311.67, 291.7, 311.97, 294.7, 311.87, 298.19, 310.87, 299.69, 308.87, 300.79, 307.57, 298.69, 307.07, 294.7, 306.37, 292.3, 305.57, 290.2, 304.07, 288.4, 303.77, 287.9, 301.28, 285.91, 300.88, 285.31, 301.58, 283.91, 302.77, 283.71, 304.07, 283.61, 306.27, 284.21]], "area": 86.13955000000026, "iscrowd": 0, "image_id": 575792, "bbox": [300.88, 283.61, 11.09, 17.18], "category_id": 27, "id": 1171901}, {"segmentation": [[487.63, 236.44, 481.86, 233.56, 488.59, 220.09, 501.1, 215.28, 511.68, 214.32, 522.26, 219.13, 527.07, 221.05, 527.07, 223.94, 538.61, 226.82, 543.42, 228.75, 547.26, 244.14, 547.26, 252.79, 551.11, 262.41, 551.11, 295.11, 551.11, 301.84, 542.45, 313.39, 535.72, 317.23, 528.99, 314.35, 522.26, 310.5, 517.45, 306.65, 515.52, 300.88, 515.52, 296.07, 522.26, 281.65, 522.26, 251.83, 515.52, 243.17, 513.6, 230.67, 506.87, 224.9, 501.1, 222.01, 493.4, 222.01]], "area": 3000.70615, "iscrowd": 0, "image_id": 333356, "bbox": [481.86, 214.32, 69.25, 102.91], "category_id": 27, "id": 1172032}, {"segmentation": [[241.33, 153.12, 239.34, 141.56, 240.93, 134.38, 240.93, 130.8, 236.95, 127.21, 237.74, 126.81, 243.33, 129.6, 248.11, 126.41, 248.51, 124.02, 248.51, 123.22, 251.3, 128.8, 256.48, 135.58, 259.67, 141.96, 262.46, 148.73, 262.06, 157.5, 260.86, 159.89, 254.89, 160.69, 250.5, 160.69, 247.71, 159.1, 243.72, 153.52]], "area": 574.0786499999998, "iscrowd": 0, "image_id": 265532, "bbox": [236.95, 123.22, 25.51, 37.47], "category_id": 27, "id": 1172036}, {"segmentation": [[337.23, 282.63, 338.24, 281.41, 341.29, 281.61, 341.9, 283.04, 342.1, 285.68, 343.93, 286.69, 343.93, 289.13, 345.96, 291.97, 346.77, 293.8, 346.77, 296.23, 344.74, 297.25, 342.71, 296.44, 341.49, 293.19, 340.07, 290.14, 338.44, 285.88, 337.63, 283.65, 338.04, 282.02, 338.04, 282.02]], "area": 68.34514999999979, "iscrowd": 0, "image_id": 575792, "bbox": [337.23, 281.41, 9.54, 15.84], "category_id": 27, "id": 1172042}, {"segmentation": [[373.32, 284.33, 376.9, 288.15, 378.33, 294.12, 377.61, 294.6, 375.46, 290.3, 369.97, 288.39, 370.45, 283.61, 372.36, 284.09]], "area": 35.87339999999995, "iscrowd": 0, "image_id": 575792, "bbox": [369.97, 283.61, 8.36, 10.99], "category_id": 27, "id": 1172114}, {"segmentation": [[408.28, 295.31, 407.74, 294.24, 405.6, 292.63, 403.45, 290.12, 402.91, 287.62, 404.52, 285.47, 405.42, 285.12, 408.1, 286.55, 409.53, 289.77, 410.42, 292.98, 410.42, 295.67, 410.07, 297.28, 407.56, 296.74]], "area": 50.165499999999945, "iscrowd": 0, "image_id": 575792, "bbox": [402.91, 285.12, 7.51, 12.16], "category_id": 27, "id": 1172175}, {"segmentation": [[25.72, 299.4, 29.07, 288.94, 37.86, 281.82, 47.91, 276.8, 53.77, 271.35, 56.28, 259.63, 51.26, 249.58, 45.4, 239.12, 41.63, 228.23, 38.28, 214.0, 38.7, 185.53, 45.4, 181.35, 52.52, 181.76, 63.4, 189.72, 73.03, 198.93, 81.82, 218.6, 87.68, 230.75, 93.12, 239.96, 98.57, 252.93, 104.85, 259.21, 110.71, 262.56, 114.89, 267.59, 117.41, 276.8, 118.24, 285.17, 118.66, 292.71, 119.5, 299.82, 120.34, 303.59, 120.34, 306.52, 119.5, 392.34, 116.57, 329.13, 102.33, 347.55, 92.29, 356.76, 84.33, 365.97, 73.03, 375.6, 66.75, 378.11, 47.49, 358.43, 41.63, 335.83, 32.42, 322.01, 26.14, 310.71, 21.95, 304.01]], "area": 11128.201999999997, "iscrowd": 0, "image_id": 13417, "bbox": [21.95, 181.35, 98.39, 210.99], "category_id": 31, "id": 1172350}, {"segmentation": [[481.99, 224.46, 480.38, 223.6, 479.14, 222.73, 478.64, 220.74, 478.15, 216.15, 479.14, 215.53, 479.26, 213.67, 480.75, 212.93, 481.37, 212.93, 482.36, 212.18, 483.23, 211.56, 483.23, 210.2, 484.23, 209.58, 484.85, 206.85, 486.09, 206.85, 486.21, 205.48, 487.58, 204.61, 488.07, 205.23, 487.08, 207.47, 485.96, 208.46, 486.09, 209.7, 485.22, 209.95, 485.09, 211.44, 483.98, 212.06, 484.72, 214.04, 486.09, 217.39, 486.58, 221.36, 484.72, 224.22], [489.19, 195.8, 489.93, 196.18, 489.81, 202.13, 488.2, 202.26, 488.94, 199.53]], "area": 97.24155000000006, "iscrowd": 0, "image_id": 409374, "bbox": [478.15, 195.8, 11.78, 28.66], "category_id": 31, "id": 1172468}, {"segmentation": [[564.8, 282.51, 579.65, 301.23, 576.06, 316.22, 573.72, 319.85, 561.15, 327.09, 554.76, 329.43, 553.7, 334.97, 550.29, 342.0, 542.33, 345.28, 530.53, 348.94, 512.82, 347.11, 491.89, 344.16, 484.58, 338.54, 477.69, 330.25, 469.97, 328.98, 457.46, 321.54, 454.09, 317.6, 454.27, 297.84, 454.05, 285.28, 458.31, 279.31, 460.44, 276.33, 462.79, 269.94, 463.64, 267.6, 463.64, 259.93, 463.21, 255.67, 465.77, 253.97, 470.45, 257.38, 471.73, 255.89, 474.93, 255.89, 477.91, 255.03, 483.45, 252.9, 487.71, 252.69, 491.54, 253.76, 503.04, 258.65, 512.41, 261.0, 527.96, 256.95, 532.43, 253.76, 538.61, 250.56, 538.82, 250.56, 542.44, 251.41, 543.29, 258.44, 545.21, 262.06, 555.22, 263.55, 557.56, 267.17, 560.55, 276.33]], "area": 9113.703400000004, "iscrowd": 0, "image_id": 130949, "bbox": [454.05, 250.56, 125.6, 98.38], "category_id": 31, "id": 1172742}, {"segmentation": [[203.8, 157.88, 194.04, 156.53, 187.64, 150.81, 189.33, 140.37, 204.48, 154.51], [212.56, 148.79, 212.56, 134.31, 204.81, 140.03, 199.43, 143.4, 194.71, 142.39, 193.37, 138.69, 194.38, 131.62, 190.67, 136.33, 191.35, 141.38, 203.8, 153.5, 207.84, 153.16, 210.54, 150.81], [210.03, 153.66, 205.44, 158.0, 210.99, 158.49, 211.72, 155.83], [209.85, 123.53, 206.25, 118.62, 202.07, 115.34, 203.22, 114.12, 206.41, 116.57, 210.01, 120.75, 210.75, 122.14]], "area": 392.5638500000002, "iscrowd": 0, "image_id": 286359, "bbox": [187.64, 114.12, 24.92, 44.37], "category_id": 31, "id": 1172769}, {"segmentation": [[560.44, 180.39, 573.5, 212.52, 573.5, 212.52, 595.6, 234.12, 598.61, 280.82, 570.49, 306.43, 530.82, 313.96, 516.25, 313.46, 515.75, 312.46, 504.7, 283.33, 520.27, 235.12, 520.27, 235.12, 517.76, 193.94, 520.77, 194.95, 520.77, 194.95, 531.82, 196.45, 527.8, 205.49, 529.31, 231.61, 540.36, 227.59, 540.36, 227.59, 537.85, 194.45, 537.85, 194.45, 533.33, 172.85, 541.86, 172.85, 552.41, 220.06, 562.45, 214.53, 562.45, 214.53, 552.91, 176.87, 560.95, 178.88]], "area": 8160.050100000002, "iscrowd": 0, "image_id": 269986, "bbox": [504.7, 172.85, 93.91, 141.11], "category_id": 31, "id": 1173101}, {"segmentation": [[530.04, 316.94, 530.04, 316.94, 548.07, 342.58, 486.49, 382.86, 475.94, 376.14, 474.02, 354.07, 527.75, 311.85]], "area": 2485.5460500000017, "iscrowd": 0, "image_id": 119337, "bbox": [474.02, 311.85, 74.05, 71.01], "category_id": 31, "id": 1173620}, {"segmentation": [[121.54, 107.27, 121.89, 110.68, 120.84, 111.5, 120.01, 111.73, 117.32, 110.44, 116.49, 110.03, 116.26, 109.68, 116.55, 105.75, 116.55, 104.69, 120.54, 104.63, 120.84, 104.81]], "area": 32.24930000000005, "iscrowd": 0, "image_id": 517261, "bbox": [116.26, 104.63, 5.63, 7.1], "category_id": 31, "id": 1173866}, {"segmentation": [[47.46, 362.43, 33.08, 415.64, 102.11, 415.64, 109.3, 373.93, 102.11, 349.48, 80.54, 277.57, 80.54, 268.94, 46.02, 355.24]], "area": 6315.792449999998, "iscrowd": 0, "image_id": 141800, "bbox": [33.08, 268.94, 76.22, 146.7], "category_id": 31, "id": 1174320}, {"segmentation": [[150.04, 208.42, 140.42, 209.38, 138.5, 347.88, 158.7, 353.65, 271.23, 344.99, 288.54, 319.98, 270.27, 254.58, 260.65, 212.26, 247.18, 197.84, 226.98, 169.94, 213.52, 170.91, 245.26, 218.03, 222.18, 250.74, 200.05, 242.08, 190.44, 245.93, 170.24, 225.73, 164.47, 213.23, 159.66, 216.11, 171.2, 177.64, 186.59, 150.71, 182.74, 139.17, 159.66, 171.87, 153.89, 199.76]], "area": 18036.005800000006, "iscrowd": 0, "image_id": 361661, "bbox": [138.5, 139.17, 150.04, 214.48], "category_id": 31, "id": 1174565}, {"segmentation": [[123.89, 91.3, 123.89, 88.11, 123.58, 84.77, 123.58, 81.74, 123.58, 81.42, 124.05, 84.13, 125.49, 86.84, 126.12, 89.54, 126.12, 91.3, 125.49, 93.37, 124.53, 94.64, 122.46, 95.91, 121.35, 95.91, 123.26, 92.89, 124.85, 90.82]], "area": 22.393399999999982, "iscrowd": 0, "image_id": 517261, "bbox": [121.35, 81.42, 4.77, 14.49], "category_id": 31, "id": 1174905}, {"segmentation": [[249.55, 222.13, 258.49, 234.85, 265.71, 246.54, 268.81, 251.69, 280.84, 249.29, 288.06, 250.66, 300.09, 271.98, 300.09, 278.51, 290.81, 287.1, 277.4, 293.29, 266.4, 296.38, 261.93, 295.35, 260.56, 284.69, 259.18, 274.04, 257.81, 265.79, 257.46, 261.32, 262.62, 256.51, 265.02, 254.79, 265.37, 250.32, 259.18, 242.75, 252.3, 233.13]], "area": 1562.9626999999998, "iscrowd": 0, "image_id": 157923, "bbox": [249.55, 222.13, 50.54, 74.25], "category_id": 31, "id": 1175749}, {"segmentation": [[182.87, 267.72, 170.22, 288.79, 171.91, 309.85, 212.36, 309.01, 221.63, 306.48, 223.31, 266.03, 221.63, 255.08, 212.36, 255.92, 205.62, 230.64, 195.51, 232.33, 198.88, 257.61, 181.18, 257.61]], "area": 2759.5909, "iscrowd": 0, "image_id": 294416, "bbox": [170.22, 230.64, 53.09, 79.21], "category_id": 31, "id": 1175802}, {"segmentation": [[241.12, 257.01, 244.58, 209.66, 239.15, 137.64, 254.44, 204.72, 273.68, 230.37, 285.02, 260.96, 265.79, 295.98, 241.12, 292.03, 240.14, 265.89]], "area": 3172.072549999999, "iscrowd": 0, "image_id": 577869, "bbox": [239.15, 137.64, 45.87, 158.34], "category_id": 31, "id": 1175969}, {"segmentation": [[2.27, 272.11, 61.22, 275.51, 73.7, 217.69, 49.89, 206.35, 49.89, 176.87, 29.48, 199.55, 23.81, 193.88, 27.21, 179.14, 13.61, 193.88, 2.27, 190.48]], "area": 5132.00795, "iscrowd": 0, "image_id": 445214, "bbox": [2.27, 176.87, 71.43, 98.64], "category_id": 31, "id": 1176314}, {"segmentation": [[175.67, 228.99, 180.93, 242.77, 180.93, 243.65, 174.29, 245.53, 169.28, 244.9, 168.91, 243.28, 168.91, 235.13, 169.78, 228.99, 166.02, 228.62, 164.27, 223.98, 164.27, 220.35, 169.03, 218.72, 174.17, 220.22, 175.05, 224.48]], "area": 247.32274999999993, "iscrowd": 0, "image_id": 13417, "bbox": [164.27, 218.72, 16.66, 26.81], "category_id": 31, "id": 1176334}, {"segmentation": [[387.27, 153.25, 397.93, 153.03, 398.6, 163.92, 390.82, 164.58, 386.82, 160.36]], "area": 118.53210000000034, "iscrowd": 0, "image_id": 265532, "bbox": [386.82, 153.03, 11.78, 11.55], "category_id": 31, "id": 1176645}, {"segmentation": [[523.8, 225.44, 525.8, 236.77, 525.35, 243.43, 519.8, 244.76, 513.14, 244.32, 512.03, 239.88, 514.92, 231.88, 514.92, 223.89, 514.69, 217.89, 513.81, 213.22, 516.25, 211.89, 520.91, 219.44]], "area": 290.24484999999976, "iscrowd": 0, "image_id": 206427, "bbox": [512.03, 211.89, 13.77, 32.87], "category_id": 31, "id": 1176984}, {"segmentation": [[197.67, 217.1, 199.45, 222.8, 203.65, 226.63, 205.52, 228.87, 209.07, 230.18, 210.85, 228.87, 205.05, 220.65, 200.66, 217.28, 198.42, 215.7]], "area": 72.47280000000009, "iscrowd": 0, "image_id": 13417, "bbox": [197.67, 215.7, 13.18, 14.48], "category_id": 31, "id": 1177256}, {"segmentation": [[229.15, 299.74, 230.53, 305.26, 231.22, 331.46, 251.9, 338.36, 251.9, 338.36, 266.38, 330.08, 269.14, 314.22, 248.45, 316.98, 236.04, 316.98, 237.42, 296.29]], "area": 786.7832499999988, "iscrowd": 0, "image_id": 13417, "bbox": [229.15, 296.29, 39.99, 42.07], "category_id": 31, "id": 1177607}, {"segmentation": [[136.83, 200.8, 138.19, 215.36, 134.1, 219.46, 134.1, 228.1, 140.92, 238.11, 144.11, 249.03, 150.02, 258.13, 157.76, 258.13, 158.21, 258.13, 165.49, 260.86, 168.68, 263.13, 171.41, 263.13, 174.59, 259.95, 175.5, 250.39, 170.04, 244.48, 163.22, 243.57, 161.4, 242.66, 158.21, 235.38, 157.3, 232.65, 154.57, 222.19, 149.11, 208.08, 149.11, 208.08, 144.11, 198.07, 143.2, 195.8]], "area": 1194.0303500000002, "iscrowd": 0, "image_id": 13417, "bbox": [134.1, 195.8, 41.4, 67.33], "category_id": 31, "id": 1177919}, {"segmentation": [[59.06, 154.95, 55.78, 165.14, 56.81, 169.29, 57.68, 169.11, 62.69, 157.71, 59.06, 154.26], [20.89, 150.8, 16.91, 143.55, 16.4, 137.16, 18.81, 135.26, 18.12, 140.61, 21.06, 148.56, 29.35, 154.6, 38.85, 161.69, 48.18, 165.31, 49.56, 169.11, 37.3, 163.41]], "area": 147.37325000000033, "iscrowd": 0, "image_id": 265532, "bbox": [16.4, 135.26, 46.29, 34.03], "category_id": 31, "id": 1178831}, {"segmentation": [[254.77, 196.38, 275.62, 231.43, 287.4, 270.41, 294.35, 278.57, 305.23, 276.45, 307.95, 270.41, 307.95, 260.44, 307.05, 255.6, 279.25, 196.38, 270.18, 179.76, 266.55, 172.81, 257.49, 144.7, 254.77, 137.45, 250.84, 120.23, 249.03, 115.39, 245.1, 106.93, 240.57, 105.72, 245.4, 112.07, 253.56, 143.8, 262.02, 170.09, 265.18, 181.87, 263.39, 193.29, 258.04, 194.36, 253.05, 189.37]], "area": 2221.289300000002, "iscrowd": 0, "image_id": 577869, "bbox": [240.57, 105.72, 67.38, 172.85], "category_id": 31, "id": 1179004}, {"segmentation": [[466.08, 425.22, 466.08, 401.86, 455.38, 374.62, 446.62, 355.16, 453.43, 318.18, 477.76, 305.53, 537.11, 305.53, 591.6, 292.88, 637.34, 292.88, 640.0, 423.27]], "area": 22469.443300000006, "iscrowd": 0, "image_id": 319917, "bbox": [446.62, 292.88, 193.38, 132.34], "category_id": 31, "id": 1179146}, {"segmentation": [[261.44, 211.08, 260.76, 232.23, 260.76, 232.23, 275.77, 246.55, 261.44, 286.11, 221.2, 277.25, 180.95, 244.5, 198.69, 225.4, 208.24, 211.76, 221.88, 213.13, 236.21, 194.71, 245.07, 195.39, 226.66, 216.54, 226.66, 216.54, 245.76, 229.5, 245.76, 229.5, 253.94, 228.81, 253.94, 228.81, 248.48, 211.76, 249.85, 211.08, 258.03, 207.67]], "area": 4549.594150000001, "iscrowd": 0, "image_id": 445214, "bbox": [180.95, 194.71, 94.82, 91.4], "category_id": 31, "id": 1179928}, {"segmentation": [[65.86, 366.67, 88.77, 338.04, 114.54, 329.44, 146.04, 339.47, 150.34, 392.44, 140.31, 426.81, 127.43, 475.49, 113.11, 517.01, 104.52, 529.89, 143.18, 515.57, 200.45, 485.51, 171.81, 355.22, 130.29, 319.42, 101.66, 322.29, 70.16, 339.47, 51.54, 368.1], [196.15, 572.85, 188.99, 569.98, 217.63, 627.25, 166.09, 628.68, 93.06, 631.55, 144.61, 601.48, 187.56, 565.69], [10.02, 478.35, 0.0, 485.51, 0.0, 622.96, 15.75, 549.94, 25.77, 499.83]], "area": 14711.439199999995, "iscrowd": 0, "image_id": 140115, "bbox": [0.0, 319.42, 217.63, 312.13], "category_id": 31, "id": 1179985}, {"segmentation": [[226.03, 211.38, 242.43, 212.57, 248.69, 211.08, 252.26, 210.78, 255.84, 212.27, 257.03, 214.66, 257.03, 215.55, 257.03, 218.24, 252.86, 221.81, 252.26, 235.23, 235.87, 242.38, 222.45, 240.3, 220.66, 228.97, 220.66, 224.5, 222.15, 220.92, 223.05, 218.54]], "area": 890.5164999999998, "iscrowd": 0, "image_id": 448843, "bbox": [220.66, 210.78, 36.37, 31.6], "category_id": 31, "id": 1180552}, {"segmentation": [[318.33, 164.83, 317.03, 167.86, 315.29, 173.06, 313.13, 177.39, 311.39, 183.45, 310.53, 189.08, 313.99, 195.15, 320.92, 197.31, 331.32, 193.85, 336.09, 189.08, 336.52, 184.32, 336.09, 177.39, 333.92, 169.16, 332.19, 162.66, 331.32, 155.73, 330.02, 148.36, 329.59, 140.57, 329.59, 131.9, 326.56, 127.14, 316.16, 124.1, 320.49, 128.44, 323.96, 130.6, 325.26, 131.9, 326.56, 139.7, 326.56, 147.5, 326.56, 156.59, 323.52, 164.83, 322.66, 168.29, 320.92, 163.96, 318.33, 162.23, 316.59, 166.99]], "area": 851.1057999999997, "iscrowd": 0, "image_id": 265532, "bbox": [310.53, 124.1, 25.99, 73.21], "category_id": 31, "id": 1180626}, {"segmentation": [[180.43, 194.28, 173.99, 205.54, 169.57, 212.38, 170.77, 219.62, 174.39, 242.95, 195.31, 239.73, 216.23, 229.27, 218.64, 211.98, 211.4, 200.71, 208.99, 172.96, 207.38, 154.06, 201.75, 142.79, 196.52, 137.97, 190.48, 139.57, 201.34, 148.02, 204.16, 172.16, 199.33, 194.28, 190.08, 202.73, 177.21, 205.54]], "area": 2064.69135, "iscrowd": 0, "image_id": 265532, "bbox": [169.57, 137.97, 49.07, 104.98], "category_id": 31, "id": 1180868}, {"segmentation": [[19.69, 231.18, 38.54, 278.54, 50.76, 294.84, 62.47, 316.74, 62.47, 330.49, 59.42, 351.88, 54.83, 355.96, 43.12, 357.99, 34.97, 357.99, 31.41, 342.21, 23.26, 282.62, 10.53, 231.18, 17.15, 227.1]], "area": 2838.5919500000005, "iscrowd": 0, "image_id": 294416, "bbox": [10.53, 227.1, 51.94, 130.89], "category_id": 31, "id": 1181133}, {"segmentation": [[10.96, 228.96, 0.84, 223.9, 6.74, 287.1, 10.96, 327.55, 14.33, 351.15, 17.7, 352.83, 21.07, 352.83, 29.49, 354.52, 30.34, 343.56, 29.49, 325.02, 22.75, 297.21, 17.7, 280.36, 20.22, 263.51]], "area": 1872.0845499999998, "iscrowd": 0, "image_id": 294416, "bbox": [0.84, 223.9, 29.5, 130.62], "category_id": 31, "id": 1182033}, {"segmentation": [[352.76, 80.72, 348.87, 105.19, 345.53, 139.66, 337.19, 150.78, 348.87, 187.47, 374.44, 179.69, 399.46, 156.89, 384.45, 124.65, 369.99, 122.98, 356.65, 127.98]], "area": 2915.359849999999, "iscrowd": 0, "image_id": 450940, "bbox": [337.19, 80.72, 62.27, 106.75], "category_id": 31, "id": 1182118}, {"segmentation": [[157.66, 318.13, 172.3, 351.91, 173.42, 354.17, 177.93, 360.92, 186.94, 348.54, 195.95, 349.66, 207.21, 330.52, 216.22, 328.27, 220.72, 300.11, 219.59, 293.36, 217.34, 277.59, 217.34, 266.33, 216.22, 260.7, 182.43, 275.34]], "area": 3785.963350000001, "iscrowd": 0, "image_id": 445214, "bbox": [157.66, 260.7, 63.06, 100.22], "category_id": 33, "id": 1183614}, {"segmentation": [[512.88, 325.71, 542.46, 313.97, 568.75, 307.4, 588.47, 310.69, 598.33, 313.97, 600.21, 321.95, 614.76, 319.14, 623.21, 351.53, 624.62, 379.7, 629.31, 404.12, 621.33, 413.98, 604.9, 415.86, 596.92, 422.43, 575.32, 423.84, 555.6, 424.31, 541.05, 427.12, 516.16, 417.73, 503.02, 332.28, 511.0, 327.12, 514.28, 325.71]], "area": 12067.263300000004, "iscrowd": 0, "image_id": 63123, "bbox": [503.02, 307.4, 126.29, 119.72], "category_id": 33, "id": 1183783}, {"segmentation": [[542.45, 284.69, 563.61, 306.81, 566.5, 422.23, 490.52, 421.27, 494.36, 287.58, 497.25, 285.65, 512.64, 280.84, 518.41, 274.11, 524.18, 273.15, 526.1, 277.96, 526.1, 285.65]], "area": 9813.111350000003, "iscrowd": 0, "image_id": 114079, "bbox": [490.52, 273.15, 75.98, 149.08], "category_id": 33, "id": 1184302}, {"segmentation": [[333.78, 363.39, 339.4, 301.09, 346.9, 295.94, 357.2, 293.12, 366.57, 293.12, 385.78, 293.12, 408.74, 299.68, 421.85, 308.12, 425.6, 376.98, 417.17, 377.92, 413.42, 379.79, 408.27, 385.88, 403.11, 392.44, 396.56, 395.72, 381.56, 387.28, 378.29, 379.32, 374.07, 379.32, 372.2, 390.56, 364.7, 380.73, 353.46, 375.57, 347.84, 375.57, 339.4, 369.48, 338.93, 366.2]], "area": 7467.980350000003, "iscrowd": 0, "image_id": 63123, "bbox": [333.78, 293.12, 91.82, 102.6], "category_id": 33, "id": 1184394}, {"segmentation": [[123.79, 343.88, 128.28, 336.7, 142.96, 335.5, 146.85, 332.8, 158.53, 334.0, 159.72, 335.2, 177.09, 335.2, 175.6, 362.45, 187.57, 363.65, 200.15, 351.97, 199.85, 316.03, 197.76, 312.74, 191.47, 312.14, 141.76, 310.34, 124.39, 317.53, 122.89, 322.32]], "area": 2376.211550000001, "iscrowd": 0, "image_id": 82486, "bbox": [122.89, 310.34, 77.26, 53.31], "category_id": 33, "id": 1185433}, {"segmentation": [[132.15, 262.61, 148.02, 240.25, 172.65, 246.08, 186.58, 253.86, 192.73, 260.99, 174.59, 292.09, 163.9, 285.93, 145.76, 278.48, 133.12, 271.03]], "area": 1912.2758999999994, "iscrowd": 0, "image_id": 82486, "bbox": [132.15, 240.25, 60.58, 51.84], "category_id": 33, "id": 1185729}, {"segmentation": [[535.56, 309.67, 558.14, 305.79, 555.32, 293.44, 554.61, 288.15, 529.92, 290.62, 517.21, 291.68, 513.69, 296.62, 516.16, 307.91, 530.62, 311.79]], "area": 778.356250000001, "iscrowd": 0, "image_id": 317153, "bbox": [513.69, 288.15, 44.45, 23.64], "category_id": 33, "id": 1185990}, {"segmentation": [[382.8, 164.47, 377.02, 67.33, 504.94, 57.71, 508.79, 128.88]], "area": 10792.741100000001, "iscrowd": 0, "image_id": 13417, "bbox": [377.02, 57.71, 131.77, 106.76], "category_id": 33, "id": 1186093}, {"segmentation": [[236.1, 6.68, 326.23, 0.0, 342.23, 15.94, 354.03, 37.0, 354.03, 83.33, 348.97, 104.39, 353.18, 122.92, 357.4, 128.81, 345.6, 166.72, 337.18, 191.99, 338.02, 206.31, 278.22, 213.89, 266.42, 214.73, 244.52, 177.67, 237.78, 126.29, 229.36, 77.43, 225.15, 46.27, 239.47, 9.2], [471.11, 9.2, 447.53, 57.22, 455.11, 88.38, 425.63, 138.92, 428.15, 186.94, 429.84, 190.31, 471.11, 181.88, 471.11, 175.14, 467.74, 170.09, 477.85, 102.7, 487.12, 73.22, 482.06, 49.64, 478.69, 46.27, 488.8, 42.9, 495.54, 34.47, 492.17, 27.73, 480.38, 19.31, 473.64, 7.52], [2.83, 24.25, 16.19, 2.3, 121.16, 0.0, 124.02, 18.52, 122.11, 50.01, 134.52, 93.91, 151.7, 110.13, 152.65, 146.39, 166.96, 182.65, 173.64, 206.51, 92.53, 201.74, 19.05, 200.79, 0.0, 191.24]], "area": 57252.28294999999, "iscrowd": 0, "image_id": 538682, "bbox": [0.0, 0.0, 495.54, 214.73], "category_id": 33, "id": 1186302}, {"segmentation": [[206.04, 239.1, 214.55, 238.27, 218.22, 269.79, 219.39, 276.97, 218.89, 278.47, 211.88, 278.47, 205.04, 275.13, 203.37, 272.8], [232.06, 238.43, 236.9, 239.77, 241.57, 244.44, 247.08, 250.94, 247.25, 255.11, 245.41, 257.95, 251.08, 259.28, 250.92, 261.29, 249.58, 262.29, 244.58, 260.12, 243.07, 267.62, 245.08, 270.46, 245.91, 272.13, 243.58, 274.63, 239.24, 277.13, 236.24, 277.13, 235.73, 259.95, 233.4, 248.27, 231.9, 239.27], [189.69, 243.6, 187.69, 243.6, 185.86, 244.27, 185.36, 247.11, 185.69, 248.44, 185.86, 252.28, 188.03, 253.78]], "area": 867.9397000000006, "iscrowd": 0, "image_id": 265532, "bbox": [185.36, 238.27, 65.72, 40.2], "category_id": 33, "id": 1186420}, {"segmentation": [[306.92, 285.55, 307.85, 295.81, 303.19, 307.01, 298.52, 320.07, 305.99, 334.06, 317.18, 342.46, 335.84, 345.26, 336.77, 326.6, 337.7, 324.73, 341.44, 301.41, 339.57, 275.29, 362.89, 293.02, 362.89, 293.02, 394.61, 299.55, 398.34, 207.19, 403.01, 213.72, 421.66, 208.12, 421.66, 226.78, 421.66, 227.71, 421.66, 266.9, 417.93, 303.28, 417.93, 304.21, 434.72, 316.34, 440.32, 352.72, 441.26, 354.59, 444.99, 398.43, 445.92, 410.56, 312.52, 404.96, 302.26, 371.38, 279.87, 339.66, 281.73, 310.74, 291.99, 291.15, 299.46, 286.49, 301.32, 285.55]], "area": 17044.851850000003, "iscrowd": 0, "image_id": 269986, "bbox": [279.87, 207.19, 166.05, 203.37], "category_id": 33, "id": 1186503}, {"segmentation": [[145.2, 333.3, 158.92, 334.96, 178.05, 336.62, 176.39, 366.98, 171.79, 376.5, 119.82, 381.07, 119.4, 347.39, 127.3, 336.58]], "area": 2427.39125, "iscrowd": 0, "image_id": 82486, "bbox": [119.4, 333.3, 58.65, 47.77], "category_id": 33, "id": 1186532}, {"segmentation": [[412.65, 281.86, 420.56, 279.51, 424.19, 277.16, 426.76, 273.74, 427.18, 271.81, 429.11, 271.38, 431.24, 274.8, 430.39, 277.16, 432.95, 279.93, 436.59, 283.14, 435.09, 289.12, 432.53, 296.6, 429.96, 299.6, 426.97, 298.74, 422.27, 298.1, 418.63, 298.53, 416.5, 298.74, 415.21, 297.25, 414.57, 294.68, 413.08, 292.12, 411.37, 289.77, 410.3, 286.99, 410.3, 283.35, 413.08, 281.43]], "area": 455.04184999999956, "iscrowd": 0, "image_id": 317153, "bbox": [410.3, 271.38, 26.29, 28.22], "category_id": 33, "id": 1187001}, {"segmentation": [[554.96, 123.11, 509.75, 118.3, 504.94, 78.87, 500.13, 4.81, 500.13, 0.96, 547.26, 0.0, 547.26, 63.48, 552.07, 87.52, 557.84, 100.99, 562.65, 111.57]], "area": 5594.026350000001, "iscrowd": 0, "image_id": 13417, "bbox": [500.13, 0.0, 62.52, 123.11], "category_id": 33, "id": 1187376}, {"segmentation": [[136.56, 117.81, 140.41, 133.2, 133.68, 135.12, 136.56, 153.39, 152.91, 155.32, 155.8, 143.78, 150.99, 130.31, 141.37, 113.96]], "area": 560.1236000000001, "iscrowd": 0, "image_id": 20251, "bbox": [133.68, 113.96, 22.12, 41.36], "category_id": 33, "id": 1187522}, {"segmentation": [[407.1, 189.54, 407.1, 213.86, 403.91, 228.21, 389.96, 224.62, 380.79, 216.25, 382.39, 199.51, 385.18, 188.74, 386.37, 184.76, 394.34, 181.57, 399.53, 183.16, 403.11, 150.47, 407.9, 150.87, 403.51, 179.97]], "area": 1126.2475500000007, "iscrowd": 0, "image_id": 265532, "bbox": [380.79, 150.47, 27.11, 77.74], "category_id": 33, "id": 1187621}, {"segmentation": [[333.26, 143.85, 333.26, 143.85, 329.68, 133.38, 346.76, 130.07, 353.38, 129.24, 361.64, 136.68, 359.99, 149.63, 344.28, 152.94]], "area": 538.0189999999999, "iscrowd": 0, "image_id": 20251, "bbox": [329.68, 129.24, 31.96, 23.7], "category_id": 33, "id": 1187750}, {"segmentation": [[327.06, 120.26, 325.52, 149.15, 324.75, 166.87, 324.75, 181.12, 333.22, 179.58, 340.16, 181.12, 342.47, 183.05, 347.48, 168.8, 352.1, 147.61, 350.17, 131.43, 351.33, 119.1, 339.39, 117.56, 329.37, 118.71]], "area": 1486.4383500000015, "iscrowd": 0, "image_id": 13417, "bbox": [324.75, 117.56, 27.35, 65.49], "category_id": 33, "id": 1187827}, {"segmentation": [[299.78, 306.4, 298.62, 305.08, 297.59, 303.77, 297.59, 301.43, 299.2, 301.0, 300.51, 301.43, 301.83, 302.46, 303.58, 304.21, 305.47, 305.08, 305.47, 306.25, 303.28, 306.25]], "area": 26.31065000000007, "iscrowd": 0, "image_id": 482024, "bbox": [297.59, 301.0, 7.88, 5.4], "category_id": 1, "id": 1188941}, {"segmentation": [[243.97, 217.14, 239.97, 216.7, 239.08, 210.92, 238.64, 207.37, 237.08, 204.92, 237.52, 201.37, 239.3, 199.15, 240.63, 195.37, 241.97, 195.6, 242.41, 198.26, 243.08, 201.15, 244.19, 204.26, 244.19, 206.92, 243.3, 207.15, 242.86, 213.59, 243.08, 215.14]], "area": 93.27354999999997, "iscrowd": 0, "image_id": 409374, "bbox": [237.08, 195.37, 7.11, 21.77], "category_id": 1, "id": 1189040}, {"segmentation": [[61.45, 330.62, 58.87, 331.72, 56.41, 333.69, 56.41, 336.28, 56.28, 337.87, 52.22, 341.44, 48.29, 343.78, 47.43, 344.39, 42.87, 342.06, 38.94, 340.83, 34.76, 341.56, 34.51, 343.53, 36.23, 350.67, 39.68, 348.82, 45.58, 351.28, 56.65, 350.79, 61.69, 333.57, 61.69, 331.36]], "area": 243.15574999999995, "iscrowd": 0, "image_id": 482024, "bbox": [34.51, 330.62, 27.18, 20.66], "category_id": 1, "id": 1189132}, {"segmentation": [[218.41, 196.55, 218.16, 197.45, 217.42, 198.43, 216.77, 199.49, 216.44, 200.8, 216.52, 201.87, 216.69, 202.52, 217.26, 203.18, 217.75, 204.57, 217.75, 205.47, 217.75, 206.45, 216.85, 207.68, 216.77, 208.25, 217.34, 209.15, 218.0, 211.12, 218.32, 212.92, 218.49, 214.47, 218.98, 216.85, 219.06, 217.58, 220.12, 217.67, 220.7, 217.17, 220.53, 215.87, 219.96, 213.08, 220.45, 212.67, 221.6, 214.06, 221.52, 215.78, 221.43, 217.34, 221.52, 217.99, 223.64, 217.75, 222.91, 215.13, 222.58, 211.85, 223.15, 207.68, 223.81, 205.96, 224.05, 202.85, 223.73, 200.56, 222.83, 199.25, 222.09, 198.35, 221.52, 197.12, 220.53, 195.97, 219.96, 195.65]], "area": 111.22325000000006, "iscrowd": 0, "image_id": 409374, "bbox": [216.44, 195.65, 7.61, 22.34], "category_id": 1, "id": 1189262}, {"segmentation": [[250.09, 199.5, 250.42, 197.02, 250.42, 193.39, 251.41, 189.43, 254.55, 188.11, 256.37, 187.29, 256.86, 186.3, 256.2, 184.48, 255.54, 180.85, 257.52, 177.71, 260.49, 177.05, 263.13, 177.38, 265.11, 179.53, 265.44, 182.17, 265.44, 183.82, 263.13, 186.13, 263.63, 187.45, 264.29, 188.11, 264.95, 192.07, 266.27, 191.91, 266.93, 188.61, 267.76, 185.8, 270.23, 184.81, 272.71, 184.81, 273.37, 188.61, 273.37, 189.93, 272.05, 193.56, 271.72, 194.05, 265.77, 195.87, 259.34, 196.03, 254.22, 197.85, 253.07, 199.67, 249.93, 201.15]], "area": 281.4867500000001, "iscrowd": 0, "image_id": 41577, "bbox": [249.93, 177.05, 23.44, 24.1], "category_id": 1, "id": 1190308}, {"segmentation": [[241.82, 175.25, 241.16, 171.46, 241.65, 167.84, 243.63, 166.19, 247.58, 168.17, 247.58, 172.12, 247.75, 175.75, 252.03, 182.33, 256.31, 188.1, 252.52, 187.77, 248.9, 187.93, 249.56, 195.18, 240.17, 195.18, 238.19, 190.07, 240.66, 179.53]], "area": 269.42840000000035, "iscrowd": 0, "image_id": 41577, "bbox": [238.19, 166.19, 18.12, 28.99], "category_id": 1, "id": 1190741}, {"segmentation": [[203.79, 182.39, 201.47, 180.42, 202.54, 172.73, 204.51, 168.08, 207.02, 164.32, 212.03, 158.05, 216.86, 161.1, 217.4, 168.08, 221.15, 172.55, 220.44, 175.59, 220.08, 178.46, 217.57, 180.07, 216.14, 183.65, 215.25, 185.26, 213.64, 185.79, 211.31, 185.61, 210.06, 184.36, 206.84, 182.93]], "area": 345.77655000000004, "iscrowd": 0, "image_id": 41577, "bbox": [201.47, 158.05, 19.68, 27.74], "category_id": 1, "id": 1190828}, {"segmentation": [[4.25, 358.26, 12.16, 358.26, 19.14, 359.66, 28.92, 361.52, 42.88, 366.18, 54.98, 368.04, 58.24, 374.55, 45.67, 404.34, 29.38, 401.55, 27.52, 425.76, 25.19, 468.58, 27.99, 469.51, 28.92, 474.63, 24.73, 478.0, 0.06, 478.0, 0.06, 413.65, 14.02, 399.69, 0.52, 399.22]], "area": 4011.353650000001, "iscrowd": 0, "image_id": 482024, "bbox": [0.06, 358.26, 58.18, 119.74], "category_id": 2, "id": 1190961}, {"segmentation": [[26.95, 113.04, 48.99, 92.21, 72.23, 73.38, 87.05, 74.58, 85.05, 124.66, 26.55, 119.85], [96.27, 73.38, 98.27, 111.04, 107.49, 105.83, 118.7, 78.18, 127.52, 72.17, 146.75, 44.13, 155.96, 36.52, 170.39, 42.53, 170.79, 46.13, 176.4, 46.93, 176.0, 39.32, 172.39, 33.31, 124.31, 36.92, 123.91, 45.73, 121.91, 52.14, 107.89, 70.57, 99.47, 72.58]], "area": 3592.0532, "iscrowd": 0, "image_id": 53615, "bbox": [26.55, 33.31, 149.85, 91.35], "category_id": 3, "id": 1191770}, {"segmentation": [[1.13, 286.53, 13.97, 286.82, 24.82, 289.39, 32.53, 297.38, 42.23, 306.23, 43.66, 311.37, 37.67, 319.93, 33.67, 322.21, 29.96, 318.79, 6.84, 321.64, 1.13, 321.36, 0.84, 319.36, 0.56, 316.22, 0.0, 314.79]], "area": 1184.0998000000004, "iscrowd": 0, "image_id": 48756, "bbox": [0.0, 286.53, 43.66, 35.68], "category_id": 3, "id": 1191776}, {"segmentation": [[36.03, 300.17, 44.88, 297.73, 41.12, 295.3, 41.56, 293.08, 45.1, 293.75, 46.43, 294.85, 55.29, 288.43, 69.46, 286.44, 86.07, 286.66, 94.04, 290.42, 94.48, 293.75, 51.53, 307.03, 50.2, 311.9, 48.87, 317.0, 44.22, 318.99, 40.9, 316.33, 43.55, 312.57, 41.78, 306.37, 38.9, 303.71]], "area": 789.3939499999988, "iscrowd": 0, "image_id": 48756, "bbox": [36.03, 286.44, 58.45, 32.55], "category_id": 3, "id": 1192110}, {"segmentation": [[445.84, 629.93, 444.4, 569.53, 421.39, 559.46, 425.71, 530.7, 427.15, 523.51, 424.27, 493.3, 411.33, 494.74, 398.38, 427.15, 326.47, 417.08, 258.88, 418.52, 179.78, 419.96, 123.69, 430.02, 93.48, 440.09, 80.54, 509.12, 76.22, 519.19, 67.6, 586.79, 21.57, 593.98, 2.88, 611.24, 2.88, 627.06]], "area": 73529.72704999999, "iscrowd": 0, "image_id": 275432, "bbox": [2.88, 417.08, 442.96, 212.85], "category_id": 3, "id": 1192324}, {"segmentation": [[311.64, 291.75, 322.91, 294.09, 323.35, 301.7, 323.79, 306.53, 319.39, 313.12, 315.0, 316.48, 300.51, 312.09, 290.56, 311.21, 290.27, 306.97, 289.97, 304.77, 293.63, 304.04, 294.22, 301.85, 291.73, 300.53, 290.41, 299.8, 291.58, 295.11, 295.98, 291.89, 303.44, 290.72]], "area": 668.0498499999999, "iscrowd": 0, "image_id": 48756, "bbox": [289.97, 290.72, 33.82, 25.76], "category_id": 3, "id": 1192401}, {"segmentation": [[329.71, 151.89, 339.62, 148.49, 348.29, 147.25, 353.87, 147.25, 355.11, 147.56, 358.51, 149.73, 356.66, 155.61, 358.51, 162.74, 364.09, 163.66, 369.05, 166.45, 370.9, 175.13, 370.59, 176.98, 361.61, 174.2, 356.66, 174.82, 344.26, 176.67, 343.34, 183.18, 342.72, 183.8, 337.45, 183.8, 327.85, 184.73, 323.51, 188.76, 317.63, 189.99, 311.12, 187.21]], "area": 1353.5818, "iscrowd": 0, "image_id": 206427, "bbox": [311.12, 147.25, 59.78, 42.74], "category_id": 3, "id": 1192662}, {"segmentation": [[199.22, 288.4, 206.55, 288.86, 212.66, 293.14, 214.18, 298.63, 212.35, 300.92, 210.98, 301.38, 206.4, 302.75, 195.1, 290.39]], "area": 160.14195000000007, "iscrowd": 0, "image_id": 48756, "bbox": [195.1, 288.4, 19.08, 14.35], "category_id": 3, "id": 1192958}, {"segmentation": [[81.89, 248.91, 81.89, 253.92, 81.89, 256.03, 84.0, 255.77, 85.71, 255.38, 86.37, 253.27, 91.9, 253.4, 93.08, 253.66, 94.14, 256.43, 94.92, 257.88, 96.24, 257.88, 97.29, 255.64, 97.56, 254.06, 107.17, 254.85, 107.56, 247.73, 81.63, 244.69]], "area": 217.94075000000018, "iscrowd": 0, "image_id": 354718, "bbox": [81.63, 244.69, 25.93, 13.19], "category_id": 3, "id": 1193089}, {"segmentation": [[180.4, 36.17, 185.19, 84.15, 205.34, 116.77, 218.78, 117.73, 213.02, 80.31, 245.64, 53.44, 239.89, 32.33], [266.76, 40.97, 272.51, 58.24, 291.7, 64.0, 365.59, 69.75, 332.96, 43.85]], "area": 4953.85075, "iscrowd": 0, "image_id": 53615, "bbox": [180.4, 32.33, 185.19, 85.4], "category_id": 3, "id": 1193416}, {"segmentation": [[247.38, 75.72, 258.3, 75.84, 262.38, 79.44, 262.62, 81.84, 260.7, 87.12, 250.38, 87.48, 247.74, 87.0]], "area": 159.09840000000003, "iscrowd": 0, "image_id": 397599, "bbox": [247.38, 75.72, 15.24, 11.76], "category_id": 3, "id": 1193581}, {"segmentation": [[0.5, 38.35, 19.94, 39.85, 25.92, 47.32, 27.42, 57.04, 31.15, 63.02, 34.89, 66.76, 34.89, 72.74, 37.88, 89.19, 40.87, 92.93, 37.13, 98.91, 28.16, 104.14, 25.92, 108.63, 22.93, 119.84, 8.72, 119.84, 0.5, 119.1]], "area": 2454.28735, "iscrowd": 0, "image_id": 53615, "bbox": [0.5, 38.35, 40.37, 81.49], "category_id": 3, "id": 1193690}, {"segmentation": [[206.06, 77.6, 212.53, 77.6, 214.93, 80.0, 216.97, 81.68, 217.45, 82.4, 215.05, 82.4, 212.05, 83.24, 211.81, 85.52, 209.41, 86.84, 209.29, 88.76, 209.17, 89.95, 207.01, 89.95, 206.29, 89.59]], "area": 77.2302500000001, "iscrowd": 0, "image_id": 397599, "bbox": [206.06, 77.6, 11.39, 12.35], "category_id": 3, "id": 1194367}, {"segmentation": [[0.0, 174.42, 28.73, 115.44, 43.86, 110.15, 189.04, 115.44, 316.83, 127.54, 396.98, 141.15, 411.35, 157.03, 444.62, 243.23, 458.23, 284.82, 500.0, 281.79, 500.0, 333.21, 317.58, 330.94, 1.51, 331.7]], "area": 92912.8118, "iscrowd": 0, "image_id": 282899, "bbox": [0.0, 110.15, 500.0, 223.06], "category_id": 8, "id": 1196604}, {"segmentation": [[330.79, 484.51, 378.25, 470.12, 382.56, 464.37, 386.88, 460.06, 394.07, 460.06, 394.07, 468.69, 405.57, 500.33, 405.57, 527.65, 399.82, 567.92, 408.45, 586.62, 408.45, 611.07, 409.89, 619.7, 409.89, 624.01, 396.94, 629.76, 340.85, 608.19, 313.53, 580.87, 309.21, 569.36, 320.72, 563.61, 330.79, 549.23, 335.1, 542.03, 314.97, 527.65, 310.65, 523.34, 302.02, 500.33, 306.34, 491.7, 329.35, 481.63]], "area": 12243.612449999999, "iscrowd": 0, "image_id": 440625, "bbox": [302.02, 460.06, 107.87, 169.7], "category_id": 10, "id": 1198658}, {"segmentation": [[31.46, 71.57, 38.2, 146.85, 74.16, 128.87, 64.04, 43.48, 26.97, 61.45]], "area": 3175.1823499999996, "iscrowd": 0, "image_id": 309536, "bbox": [26.97, 43.48, 47.19, 103.37], "category_id": 10, "id": 1199151}, {"segmentation": [[13.91, 173.19, 21.44, 172.21, 22.18, 168.75, 24.65, 170.23, 25.15, 174.68, 31.69, 175.54, 31.08, 177.15, 28.11, 176.9, 28.36, 188.12, 27.62, 188.62, 23.67, 189.36, 21.57, 187.26, 19.22, 186.77, 17.49, 186.15, 16.01, 184.42, 14.03, 184.17, 16.75, 182.69, 17.37, 182.2, 16.25, 180.59, 14.65, 180.47, 14.28, 179.35, 14.65, 178.61, 17.24, 178.37, 18.11, 177.38, 15.76, 176.02, 14.16, 174.29, 14.53, 173.8]], "area": 195.50795000000005, "iscrowd": 0, "image_id": 387595, "bbox": [13.91, 168.75, 17.78, 20.61], "category_id": 10, "id": 1199363}, {"segmentation": [[371.06, 234.43, 376.81, 178.34, 414.2, 142.38, 477.48, 139.51, 510.56, 176.9, 512.0, 222.92, 471.73, 273.26, 408.45, 276.13]], "area": 15295.337550000002, "iscrowd": 0, "image_id": 189605, "bbox": [371.06, 139.51, 140.94, 136.62], "category_id": 13, "id": 1200423}, {"segmentation": [[188.52, 194.26, 168.79, 206.82, 159.82, 231.34, 159.22, 257.05, 149.65, 270.21, 156.23, 280.37, 162.21, 284.56, 147.86, 296.52, 137.69, 309.68, 140.08, 318.05, 144.87, 317.45, 150.25, 313.26, 152.04, 330.61, 154.44, 312.67, 150.85, 301.3, 159.82, 296.52, 179.55, 300.71, 174.77, 307.88, 181.35, 318.05, 201.68, 307.28, 222.61, 319.24, 225.0, 316.25, 216.03, 307.28, 230.38, 309.08, 232.78, 305.49, 218.42, 301.3, 235.77, 303.7, 235.77, 299.51, 220.22, 294.73, 233.97, 294.13, 239.35, 296.52, 246.53, 294.13, 245.93, 302.5, 260.28, 295.92, 261.48, 287.55, 268.66, 283.96, 272.24, 288.75, 273.44, 287.55, 302.74, 294.73, 307.53, 280.37, 307.53, 269.61, 303.94, 267.22, 293.77, 266.62, 278.82, 261.24, 263.27, 251.67, 247.73, 247.48, 242.34, 224.76, 238.76, 215.79, 224.4, 209.81, 208.85, 193.66, 187.33, 194.26], [329.65, 290.54, 335.03, 290.54, 331.45, 274.39, 325.47, 275.59, 324.87, 280.97, 324.27, 286.35, 329.05, 288.15]], "area": 11339.936799999996, "iscrowd": 0, "image_id": 461530, "bbox": [137.69, 193.66, 197.34, 136.95], "category_id": 1, "id": 1200551}, {"segmentation": [[294.1, 291.43, 295.79, 288.06, 301.69, 288.06, 305.9, 293.96, 305.9, 303.23, 303.37, 309.13, 314.33, 313.34, 315.17, 326.83, 316.01, 342.84, 316.01, 356.32, 315.17, 364.75, 310.11, 368.96, 306.74, 357.16, 305.06, 347.05, 297.47, 349.58, 299.16, 358.85, 297.47, 370.65, 291.57, 363.9, 285.67, 358.01, 289.89, 344.52, 294.94, 314.19, 295.79, 306.6]], "area": 1427.1666999999998, "iscrowd": 0, "image_id": 453734, "bbox": [285.67, 288.06, 30.34, 82.59], "category_id": 1, "id": 1200694}, {"segmentation": [[1.9, 207.12, 4.44, 190.01, 3.8, 179.87, 0.63, 150.72, 0.63, 141.21, 3.8, 129.17, 7.6, 126.0, 7.6, 123.47, 7.6, 119.67, 8.87, 115.86, 12.67, 113.96, 18.38, 114.6, 21.55, 119.67, 21.55, 125.37, 20.28, 129.8, 17.11, 128.54, 15.21, 131.07, 19.01, 137.41, 22.81, 156.42, 23.45, 164.02, 20.28, 169.09, 15.21, 166.56, 15.84, 177.97, 15.84, 191.27, 13.94, 203.95, 11.41, 213.45, 16.48, 214.72, 13.94, 218.52, 4.44, 217.26]], "area": 1509.2582000000004, "iscrowd": 0, "image_id": 560350, "bbox": [0.63, 113.96, 22.82, 104.56], "category_id": 1, "id": 1201189}, {"segmentation": [[332.78, 423.19, 394.34, 414.53, 401.07, 365.48, 408.76, 302.97, 419.34, 291.42, 428.96, 288.54, 441.47, 287.58, 453.97, 294.31, 455.89, 272.19, 444.35, 248.14, 435.69, 226.02, 427.04, 206.79, 412.61, 194.28, 402.03, 181.78, 400.11, 169.28, 383.76, 154.85, 377.99, 144.27, 356.83, 137.54, 336.63, 151.96, 327.01, 173.12, 332.78, 199.09, 339.51, 220.25, 325.09, 253.91, 316.43, 296.23, 319.32, 340.48, 317.39, 377.02, 324.13, 399.15, 322.2, 415.5]], "area": 24746.874900000006, "iscrowd": 0, "image_id": 333356, "bbox": [316.43, 137.54, 139.46, 285.65], "category_id": 1, "id": 1202131}, {"segmentation": [[139.89, 175.02, 140.73, 259.29, 155.9, 324.18, 151.69, 364.63, 151.69, 368.84, 175.28, 367.16, 186.24, 301.43, 174.44, 255.08, 171.91, 219.69, 169.38, 195.25, 180.34, 192.72, 203.93, 200.3, 215.73, 185.98, 215.73, 172.5, 211.52, 169.12, 200.56, 180.92, 149.16, 172.5], [139.89, 0.0, 162.64, 1.43, 169.38, 18.28, 171.91, 25.87, 173.6, 30.08, 171.91, 39.35, 166.01, 54.52, 161.8, 64.63, 157.58, 42.72, 150.0, 9.01]], "area": 7672.696050000001, "iscrowd": 0, "image_id": 453734, "bbox": [139.89, 0.0, 75.84, 368.84], "category_id": 1, "id": 1202345}, {"segmentation": [[490.17, 186.69, 502.29, 185.02, 512.73, 202.14, 516.9, 240.98, 515.65, 267.29, 481.82, 265.62, 497.27, 249.33, 501.45, 237.64, 497.27, 202.14, 490.17, 187.11]], "area": 1439.6200500000007, "iscrowd": 0, "image_id": 35322, "bbox": [481.82, 185.02, 35.08, 82.27], "category_id": 1, "id": 1202432}, {"segmentation": [[44.44, 30.14, 29.22, 32.1, 26.77, 30.63, 26.27, 21.3, 24.8, 10.01, 49.35, 10.99, 48.86, 17.37], [13.02, 10.99, 17.44, 25.72, 14.98, 31.12, 1.23, 31.12, 1.72, 8.04], [0.0, 5.59, 2.21, 0.68, 51.32, 1.17, 51.32, 6.08]], "area": 987.3238000000001, "iscrowd": 0, "image_id": 191918, "bbox": [0.0, 0.68, 51.32, 31.42], "category_id": 1, "id": 1202683}, {"segmentation": [[148.07, 308.18, 151.01, 303.05, 151.74, 297.18, 153.94, 293.52, 158.34, 293.28, 162.74, 296.94, 162.74, 299.87, 158.34, 307.69, 160.05, 315.27, 161.27, 322.84, 160.05, 324.8]], "area": 244.55865000000057, "iscrowd": 0, "image_id": 125135, "bbox": [148.07, 293.28, 14.67, 31.52], "category_id": 1, "id": 1202734}, {"segmentation": [[397.45, 391.85, 400.79, 380.57, 401.2, 372.22, 396.19, 363.03, 389.51, 350.08, 386.17, 342.98, 383.24, 332.54, 382.41, 322.1, 380.74, 309.57, 379.07, 302.47, 377.81, 292.86, 376.98, 284.93, 376.14, 270.31, 374.06, 259.03, 374.06, 254.86, 375.31, 252.35, 372.39, 249.01, 372.8, 235.23, 373.64, 228.96, 368.63, 227.29, 365.7, 235.23, 360.69, 247.34, 358.6, 256.94, 359.02, 261.54, 361.53, 264.88, 356.51, 263.63, 349.83, 264.04, 347.74, 266.13, 345.24, 261.12, 349.0, 254.02, 353.17, 240.24, 354.43, 231.88, 354.84, 225.62, 354.84, 221.02, 354.84, 219.35, 359.44, 204.32, 368.63, 190.12, 374.47, 183.43, 379.9, 180.93, 388.26, 178.84, 389.09, 175.08, 389.09, 170.9, 389.09, 166.73, 390.76, 154.62, 392.43, 150.86, 394.94, 147.93, 397.03, 146.68, 397.45, 143.76, 401.62, 145.01, 409.56, 148.35, 413.32, 152.11, 417.08, 154.2, 419.16, 156.29, 421.25, 159.21, 421.67, 161.72, 415.82, 170.49, 411.23, 180.09, 412.48, 185.1, 428.35, 195.96, 438.38, 222.28, 440.47, 228.12, 438.38, 232.72, 438.38, 235.64, 445.06, 263.63, 445.48, 269.47, 445.48, 271.14, 446.31, 275.32, 444.64, 280.75, 442.55, 284.93, 440.05, 285.35, 436.29, 285.35, 433.78, 281.17, 433.78, 277.41, 436.71, 268.64, 436.71, 263.21, 434.2, 256.53, 432.95, 252.35, 430.86, 248.17, 428.77, 244.0, 425.01, 234.81, 422.92, 231.05, 422.92, 231.05, 422.51, 241.07, 423.76, 244.0, 423.76, 247.76, 424.18, 252.35, 425.01, 259.03, 421.67, 280.33, 418.33, 300.38, 417.91, 304.14, 415.4, 317.51, 418.33, 328.78, 418.75, 343.82, 419.16, 348.41, 422.09, 353.84, 423.34, 359.27, 423.76, 367.63, 415.4, 371.8, 416.66, 379.74, 416.24, 386.84, 412.9, 392.69, 411.23, 396.03, 408.3, 397.28, 401.62, 396.03, 397.86, 394.77]], "area": 11215.9954, "iscrowd": 0, "image_id": 60771, "bbox": [345.24, 143.76, 101.07, 253.52], "category_id": 1, "id": 1202872}, {"segmentation": [[127.21, 66.6, 127.21, 66.6, 144.42, 60.61, 161.64, 40.41, 215.51, 23.95, 312.05, 11.97, 475.93, 31.43, 475.93, 31.43, 500.0, 30.68, 496.88, 245.45, 478.92, 239.46, 451.98, 260.41, 434.02, 274.63, 383.89, 279.12, 396.61, 243.95, 386.13, 183.34, 368.92, 169.87, 273.88, 140.68, 243.95, 126.47, 223.75, 99.53, 223.75, 99.53, 206.53, 91.29, 178.1, 95.78, 168.37, 101.77, 141.43, 104.76, 115.99, 86.8, 118.23, 71.84, 130.96, 69.59], [274.63, 306.06, 274.63, 306.06, 274.63, 306.06, 234.97, 308.31, 208.78, 304.56, 192.32, 296.33, 178.85, 281.37, 178.85, 281.37, 154.9, 273.88, 144.42, 255.18, 144.42, 255.18, 144.42, 255.18, 130.96, 251.43, 115.99, 231.98, 112.25, 217.76, 119.73, 199.8, 133.2, 190.07, 154.15, 202.79, 155.65, 214.77, 165.38, 193.81, 192.32, 199.8, 201.3, 225.99, 214.02, 223.75, 230.48, 250.69, 240.21, 273.13, 254.43, 278.37, 254.43, 278.37], [104.25, 168.56, 104.25, 168.56, 126.97, 191.73, 118.79, 196.27, 102.89, 194.91, 98.35, 181.28, 99.26, 169.47, 99.26, 169.47]], "area": 62951.34944999998, "iscrowd": 0, "image_id": 506140, "bbox": [98.35, 11.97, 401.65, 296.34], "category_id": 1, "id": 1203028}, {"segmentation": [[119.8, 276.97, 119.22, 274.78, 119.95, 273.33, 120.39, 271.28, 120.82, 268.66, 122.43, 267.49, 125.05, 267.64, 126.51, 270.41, 128.56, 274.2, 128.99, 276.83, 128.12, 277.41, 121.7, 277.41]], "area": 70.67940000000026, "iscrowd": 0, "image_id": 146049, "bbox": [119.22, 267.49, 9.77, 9.92], "category_id": 1, "id": 1203101}, {"segmentation": [[425.55, 349.61, 439.71, 332.55, 449.36, 328.69, 486.05, 311.63, 484.76, 340.92, 456.12, 353.47, 437.78, 366.99, 429.73, 374.06, 427.16, 378.57, 423.94, 381.14, 416.22, 390.8, 409.78, 395.3, 404.63, 398.2, 403.34, 399.81, 401.41, 400.45, 399.48, 399.49, 399.48, 396.59, 402.38, 390.48, 406.56, 387.58, 408.49, 383.08, 409.78, 378.89, 409.14, 374.06, 403.02, 373.74, 402.06, 372.13, 403.99, 369.24, 404.63, 368.27, 403.67, 364.73, 400.77, 360.87, 396.59, 359.91, 394.33, 357.33, 389.51, 354.76, 388.54, 351.86, 386.29, 348.96, 397.23, 349.93, 403.67, 354.11, 415.57, 359.26, 416.22, 359.58]], "area": 2615.3312500000006, "iscrowd": 0, "image_id": 14575, "bbox": [386.29, 311.63, 99.76, 88.82], "category_id": 1, "id": 1203420}, {"segmentation": [[340.15, 201.04, 323.0, 223.91, 307.76, 278.22, 292.51, 334.44, 282.98, 366.83, 306.8, 401.13, 273.46, 399.23, 251.54, 378.27, 256.31, 363.02, 260.12, 340.15, 262.98, 319.19, 259.16, 291.56, 251.54, 319.19, 239.16, 369.69, 232.49, 395.42, 208.67, 389.7, 218.19, 358.26, 222.96, 314.43, 228.67, 292.51, 231.53, 280.13, 231.53, 230.58, 246.78, 195.33, 273.46, 163.88, 265.83, 150.54, 250.59, 143.87, 243.92, 130.53, 174.36, 100.04, 155.31, 96.23, 147.69, 89.56, 152.45, 80.99, 164.84, 76.22, 240.11, 106.71, 273.46, 113.38, 260.12, 80.99, 251.54, 57.17, 253.45, 47.64, 262.98, 40.97, 269.64, 56.22, 276.31, 84.8, 290.61, 105.76, 302.04, 113.38, 306.8, 98.14, 309.66, 85.75, 319.19, 76.22, 336.34, 74.32, 350.63, 81.94, 357.3, 101.0, 347.78, 126.72, 357.3, 144.83, 360.16, 156.26, 347.78, 189.61]], "area": 27468.84195, "iscrowd": 0, "image_id": 506417, "bbox": [147.69, 40.97, 212.47, 360.16], "category_id": 1, "id": 1203873}, {"segmentation": [[118.79, 214.13, 115.07, 207.92, 113.83, 203.37, 113.83, 201.71, 109.27, 195.92, 113.83, 192.6, 116.31, 190.95, 115.07, 187.22, 115.9, 184.74, 119.21, 184.32, 120.86, 185.15, 123.35, 188.88, 123.76, 196.33, 123.76, 200.88, 125.42, 202.54, 129.97, 204.61, 132.04, 206.26, 133.28, 211.65, 121.28, 217.03]], "area": 368.45585000000005, "iscrowd": 0, "image_id": 41577, "bbox": [109.27, 184.32, 24.01, 32.71], "category_id": 1, "id": 1205136}, {"segmentation": [[265.31, 65.11, 277.35, 69.12, 285.72, 78.82, 289.23, 88.36, 286.05, 98.9, 279.36, 102.24, 279.36, 107.1, 271.16, 110.94, 268.15, 111.11, 268.15, 111.11, 263.3, 124.33, 251.93, 117.97, 248.41, 119.31, 247.74, 127.34, 247.58, 154.27, 248.75, 160.63, 243.56, 168.66, 243.56, 168.66, 243.56, 168.66, 242.06, 179.53, 230.68, 184.72, 230.68, 184.72, 227.84, 187.23, 227.84, 187.23, 220.31, 204.96, 220.14, 205.13, 215.46, 214.83, 228.0, 245.61, 232.02, 261.0, 238.38, 280.74, 234.19, 293.79, 222.15, 321.39, 219.3, 326.58, 208.1, 356.53, 199.73, 358.2, 211.44, 365.56, 198.56, 375.6, 179.99, 383.63, 170.96, 392.51, 152.32, 382.03, 165.13, 341.83, 189.6, 295.81, 162.8, 218.33, 170.37, 182.22, 202.41, 111.15, 179.11, 104.74, 149.4, 89.01, 137.17, 77.36, 136.41, 59.2, 129.55, 46.49, 131.72, 45.99, 137.75, 52.51, 136.91, 38.79, 139.92, 38.46, 142.6, 39.96, 142.26, 51.34, 145.61, 41.14, 148.62, 41.97, 146.45, 55.69, 148.12, 72.92, 162.34, 78.78, 184.09, 84.8, 196.63, 93.33, 207.17, 96.68, 215.03, 96.01, 226.41, 98.18, 240.13, 99.85, 243.64, 93.33, 241.63, 84.46, 250.83, 68.57, 256.86, 66.56, 262.88, 65.39]], "area": 18493.20505000001, "iscrowd": 0, "image_id": 450281, "bbox": [129.55, 38.46, 159.68, 354.05], "category_id": 1, "id": 1205463}, {"segmentation": [[225.25, 384.91, 224.69, 387.62, 221.04, 388.09, 215.25, 388.93, 208.89, 387.53, 198.71, 379.59, 198.61, 375.29, 200.57, 371.74, 201.23, 364.63, 198.42, 351.36, 196.46, 336.13, 188.8, 333.61, 179.36, 328.93, 177.4, 326.69, 179.45, 314.63, 183.47, 301.46, 193.35, 259.57, 189.87, 259.09, 187.23, 249.73, 185.91, 244.21, 184.95, 237.26, 186.03, 217.95, 192.51, 223.34, 194.67, 220.58, 195.03, 209.79, 194.19, 201.03, 193.47, 196.96, 200.06, 196.6, 225.97, 215.91, 239.65, 225.86, 243.0, 227.54, 243.36, 239.9, 234.97, 239.66, 236.41, 241.81, 243.12, 241.81, 242.04, 252.37, 243.6, 253.33, 239.17, 265.92, 242.52, 275.4, 242.52, 289.07, 242.52, 299.15, 240.96, 304.9, 238.21, 314.38, 240.61, 322.42, 242.4, 338.73, 241.8, 346.53, 242.64, 358.52, 237.85, 357.08, 234.25, 352.88, 234.13, 348.68, 232.21, 347.6, 229.81, 342.45, 229.57, 360.56, 229.45, 362.36, 240.85, 366.08, 241.56, 369.79, 229.69, 369.19, 224.89, 368.0, 219.14, 369.31, 211.7, 370.15]], "area": 8563.140550000004, "iscrowd": 0, "image_id": 221328, "bbox": [177.4, 196.6, 66.2, 192.33], "category_id": 1, "id": 1206363}, {"segmentation": [[198.52, 475.34, 210.85, 467.13, 232.75, 468.5, 206.74, 447.96, 190.31, 420.58, 183.46, 384.98, 201.26, 326.11, 220.43, 294.62, 251.92, 279.56, 286.15, 269.97, 320.38, 269.97, 365.56, 291.88, 397.05, 324.74, 392.94, 354.86, 390.2, 374.03, 410.74, 356.23, 436.75, 346.65, 450.44, 358.97, 466.87, 401.41, 492.89, 467.13, 506.58, 517.79, 494.26, 539.69, 472.35, 549.28, 423.06, 550.65, 412.11, 549.28, 390.2, 568.44, 401.15, 590.35, 380.62, 597.2, 198.52, 597.2, 131.44, 598.57, 120.48, 598.57, 141.02, 564.34, 165.66, 523.26, 182.09, 497.25, 205.37, 475.34]], "area": 83317.60995000001, "iscrowd": 0, "image_id": 434047, "bbox": [120.48, 269.97, 386.1, 328.6], "category_id": 1, "id": 1206684}, {"segmentation": [[503.9, 130.37, 503.15, 136.86, 506.39, 138.11, 509.26, 138.85, 505.14, 142.47, 503.27, 144.34, 501.53, 147.58, 500.4, 143.72, 498.91, 138.11, 496.41, 134.74, 496.41, 132.49, 497.66, 130.0, 498.91, 128.38, 500.9, 127.88, 502.9, 128.88]], "area": 107.68209999999948, "iscrowd": 0, "image_id": 13258, "bbox": [496.41, 127.88, 12.85, 19.7], "category_id": 1, "id": 1206696}, {"segmentation": [[449.54, 347.43, 443.01, 380.94, 440.97, 408.41, 439.09, 447.94, 435.16, 482.23, 426.91, 522.88, 422.23, 546.3, 414.17, 585.46, 408.93, 610.19, 402.56, 623.68, 394.5, 640.0, 340.36, 640.0, 295.58, 640.0, 248.93, 640.0, 240.68, 640.0, 233.56, 621.43, 227.41, 607.76, 221.41, 599.15, 209.05, 582.85, 207.74, 575.73, 211.11, 553.62, 212.79, 540.69, 218.23, 506.22, 224.41, 469.31, 226.28, 443.46, 234.15, 417.6, 243.33, 382.57, 247.08, 374.13, 233.97, 366.83, 221.6, 353.34, 209.61, 336.48, 203.8, 316.99, 194.06, 308.94, 189.0, 303.13, 181.69, 302.57, 169.14, 301.25, 161.46, 302.75, 154.9, 302.94, 152.09, 300.32, 148.91, 295.26, 148.53, 293.38, 140.29, 291.51, 138.04, 287.58, 138.6, 283.83, 140.48, 281.77, 140.48, 280.08, 135.23, 279.15, 131.11, 277.27, 128.86, 273.53, 127.92, 269.78, 132.98, 264.91, 135.98, 264.91, 145.16, 264.91, 151.53, 265.09, 156.78, 271.65, 153.78, 275.4, 152.28, 277.46, 156.03, 280.08, 167.83, 277.27, 170.45, 273.9, 169.7, 270.72, 169.14, 266.22, 172.51, 264.72, 172.89, 260.79, 170.27, 254.98, 170.83, 248.79, 174.2, 244.67, 180.38, 244.3, 183.75, 245.05, 182.26, 238.12, 178.7, 233.81, 160.34, 224.06, 154.72, 219.94, 154.9, 214.7, 161.83, 211.14, 193.87, 224.44, 219.35, 242.05, 225.91, 249.92, 233.78, 272.4, 239.4, 286.83, 243.9, 295.26, 248.2, 295.45, 248.95, 288.14, 254.39, 262.1, 265.63, 234.74, 273.5, 212.26, 280.43, 201.77, 286.05, 197.09, 289.98, 195.02, 293.73, 194.27, 286.42, 188.65, 282.68, 183.6, 277.62, 169.92, 266.0, 145.56, 264.13, 140.5, 265.25, 123.08, 262.44, 117.83, 255.51, 111.84, 255.7, 102.1, 256.82, 79.61, 256.64, 76.05, 253.08, 66.5, 261.13, 47.76, 276.12, 35.59, 304.79, 22.28, 322.4, 19.1, 343.01, 20.41, 359.49, 29.78, 375.04, 47.2, 384.79, 77.93, 383.85, 98.16, 373.92, 128.14, 370.36, 138.44, 375.79, 168.23, 378.6, 168.42, 380.66, 171.42, 379.73, 175.16, 384.41, 181.91, 397.9, 183.03, 402.58, 191.46, 412.51, 202.33, 432.19, 223.88, 436.87, 239.8, 441.37, 255.91, 449.61, 278.58, 452.42, 317.37]], "area": 114377.94124999999, "iscrowd": 0, "image_id": 314944, "bbox": [127.92, 19.1, 324.5, 620.9], "category_id": 1, "id": 1207203}, {"segmentation": [[38.2, 492.13, 43.82, 424.72, 57.3, 396.63, 41.57, 383.15, 10.11, 374.16, 16.85, 306.74, 17.98, 292.13, 3.37, 285.39, 3.37, 253.93, 37.08, 167.42, 68.54, 150.56, 84.27, 105.62, 112.36, 88.76, 139.33, 96.63, 149.44, 144.94, 147.19, 153.93, 177.53, 169.66, 215.73, 292.13, 174.16, 315.73, 174.16, 346.07, 173.03, 373.03, 164.04, 394.38, 156.18, 403.37, 177.53, 442.7, 176.4, 491.01, 147.19, 493.26, 120.22, 449.44, 114.61, 380.9, 107.87, 389.89, 93.26, 446.07, 73.03, 487.64, 66.29, 493.26]], "area": 53388.368849999984, "iscrowd": 0, "image_id": 393714, "bbox": [3.37, 88.76, 212.36, 404.5], "category_id": 1, "id": 1207340}, {"segmentation": [[137.39, 173.95, 141.92, 172.36, 145.71, 175.3, 146.32, 179.57, 144.73, 184.95, 144.97, 185.93, 151.09, 189.97, 152.92, 196.69, 135.8, 195.35, 134.7, 187.89, 135.44, 186.54, 137.52, 184.83, 137.88, 183.61, 136.66, 180.8, 136.9, 174.68, 137.76, 173.34], [137.04, 197.91, 136.55, 201.21, 138.38, 202.93, 138.63, 206.1, 139.36, 210.63, 139.48, 212.22, 144.98, 211.36, 144.49, 203.54, 147.67, 201.82, 150.12, 200.11, 152.56, 200.11, 153.91, 201.7, 154.52, 199.26, 137.28, 197.79], [139.12, 215.76, 138.26, 221.87, 134.35, 227.99, 141.32, 228.23, 143.52, 216.25, 139.24, 215.52]], "area": 433.34245000000004, "iscrowd": 0, "image_id": 487322, "bbox": [134.35, 172.36, 20.17, 55.87], "category_id": 1, "id": 1207424}, {"segmentation": [[62.67, 402.94, 70.02, 390.88, 73.16, 386.94, 73.43, 381.7, 74.74, 378.02, 73.16, 375.14, 72.64, 374.88, 72.38, 371.2, 73.16, 365.7, 73.16, 356.78, 74.21, 348.12, 75.0, 343.4, 73.95, 338.42, 71.07, 339.99, 67.66, 338.68, 70.8, 332.91, 73.16, 332.12, 74.21, 323.99, 74.74, 320.06, 75.0, 317.7, 73.95, 314.81, 72.64, 312.45, 72.38, 311.67, 74.21, 306.68, 74.48, 300.12, 76.84, 299.34, 83.66, 299.34, 86.54, 299.86, 90.48, 308.52, 90.21, 311.14, 96.77, 321.37, 99.13, 326.35, 100.97, 337.37, 101.75, 345.76, 101.75, 349.7, 101.75, 366.22, 101.23, 368.32, 105.16, 379.07, 111.72, 390.09, 115.39, 397.17, 116.97, 400.06, 114.08, 403.2, 110.67, 405.56, 106.47, 407.66, 101.23, 408.45, 100.18, 407.93, 101.49, 403.99, 103.85, 401.11, 103.85, 397.43, 102.28, 392.45, 100.7, 390.88, 95.98, 385.89, 93.62, 382.48, 89.95, 375.4, 89.43, 374.35, 86.54, 379.6, 83.92, 386.94, 81.3, 393.76, 77.89, 400.58, 76.05, 407.14, 75.26, 412.12, 67.13, 413.96, 60.05, 413.17, 57.95, 412.12, 57.16, 410.02, 59.0, 409.24, 61.36, 409.24, 63.98, 407.4, 63.72, 406.35, 62.67, 405.83]], "area": 2784.6280500000007, "iscrowd": 0, "image_id": 165347, "bbox": [57.16, 299.34, 59.81, 114.62], "category_id": 1, "id": 1207526}, {"segmentation": [[279.06, 23.22, 284.22, 20.9, 287.84, 22.06, 288.35, 24.25, 288.74, 27.61, 288.22, 30.06, 289.13, 31.48, 292.22, 34.06, 294.16, 36.12, 295.45, 38.7, 296.87, 54.83, 294.55, 58.45, 290.03, 63.48, 289.26, 68.77, 289.26, 72.39, 282.93, 79.87, 283.71, 74.45, 283.71, 66.58, 283.96, 62.45, 282.78, 61.83, 280.46, 60.67, 280.46, 58.73, 282.26, 45.18, 282.39, 41.31, 282.76, 38.37, 282.25, 35.92, 282.12, 34.11, 282.5, 32.69, 281.86, 32.17, 281.08, 31.53, 280.05, 30.11, 280.44, 28.56, 280.18, 27.01, 279.67, 25.72, 279.28, 25.08, 278.5, 24.3, 278.89, 22.88]], "area": 567.9231000000005, "iscrowd": 0, "image_id": 277472, "bbox": [278.5, 20.9, 18.37, 58.97], "category_id": 1, "id": 1207779}, {"segmentation": [[237.32, 471.51, 237.32, 460.77, 240.54, 448.96, 242.68, 432.86, 256.64, 408.16, 265.23, 398.49, 271.68, 390.98, 283.49, 392.05, 301.74, 400.64, 320.0, 408.16, 327.52, 395.27, 333.96, 379.16, 333.96, 361.98, 333.96, 352.32, 331.81, 341.58, 322.15, 337.28, 314.63, 335.14, 311.41, 332.99, 296.38, 336.21, 281.34, 345.88, 272.75, 352.32, 255.57, 356.61, 228.72, 360.91, 215.84, 360.91, 204.03, 358.76, 190.07, 351.24, 186.85, 338.36, 183.62, 322.25, 179.33, 307.22, 177.18, 298.63, 191.14, 279.3, 196.51, 270.71, 213.69, 264.26, 253.42, 261.04, 260.94, 259.97, 279.19, 262.12, 285.64, 275.0, 288.86, 283.59, 292.08, 304.0, 325.37, 293.26, 332.89, 286.82, 332.89, 280.37, 329.66, 271.78, 327.52, 262.12, 325.37, 246.01, 322.15, 228.83, 320.0, 214.87, 316.78, 196.61, 315.7, 178.36, 314.63, 163.33, 322.15, 152.59, 330.74, 137.55, 346.85, 110.71, 355.44, 97.82, 361.88, 91.38, 383.36, 81.71, 400.54, 77.42, 423.09, 77.42, 453.15, 77.42, 481.07, 78.49, 495.03, 94.6, 507.92, 110.71, 522.95, 128.96, 537.99, 159.03, 544.43, 178.36, 546.58, 214.87, 543.36, 233.12, 540.13, 261.04, 525.1, 280.37, 511.14, 290.04, 493.96, 295.41, 484.3, 301.85, 483.22, 309.37, 502.55, 319.03, 512.21, 336.21, 527.25, 361.98, 535.84, 389.9, 537.99, 403.86, 547.65, 419.97, 547.65, 441.45, 548.72, 454.33, 547.65, 467.22, 541.21, 472.59, 636.78, 473.66, 640.0, 399.57, 640.0, 331.92, 640.0, 277.15, 636.78, 219.16, 640.0, 174.06, 640.0, 134.33, 640.0, 95.67, 640.0, 53.8, 640.0, 7.62, 640.0, 2.25, 535.84, 3.33, 451.01, 2.25, 390.87, 1.18, 336.11, 1.18, 279.19, 0.1, 233.02, 5.47, 154.63, 1.18, 106.31, 0.1, 49.4, 0.1, 2.15, 0.1, 0.0, 57.02, 0.0, 113.93, 0.0, 179.43, 1.07, 248.16, 0.0, 288.96, 0.0, 332.99, 0.0, 377.02, 1.07, 423.19, 0.0, 460.77, 3.22, 473.66, 143.89, 472.59, 201.88, 466.14]], "area": 205310.6944, "iscrowd": 0, "image_id": 260118, "bbox": [0.0, 0.1, 640.0, 473.56], "category_id": 1, "id": 1208103}, {"segmentation": [[190.49, 272.01, 194.55, 269.97, 195.57, 259.31, 198.11, 246.61, 195.06, 254.74, 193.03, 266.93, 187.95, 266.42, 187.95, 249.66, 187.95, 235.94, 194.04, 223.24, 199.12, 218.16, 199.12, 201.4, 199.12, 191.75, 205.73, 190.23, 210.3, 197.34, 212.33, 215.62, 220.46, 222.73, 224.01, 230.86, 224.52, 235.94, 215.38, 240.51, 221.98, 259.82, 218.93, 262.86, 205.73, 269.97, 200.65, 273.53]], "area": 1835.3740500000006, "iscrowd": 0, "image_id": 16125, "bbox": [187.95, 190.23, 36.57, 83.3], "category_id": 1, "id": 1208390}, {"segmentation": [[502.26, 84.55, 504.77, 77.02, 509.17, 48.76, 512.93, 38.08, 526.12, 36.2, 536.17, 55.66, 535.54, 74.5, 538.68, 86.44, 538.68, 93.34, 502.26, 96.48]], "area": 1650.7281499999988, "iscrowd": 0, "image_id": 130949, "bbox": [502.26, 36.2, 36.42, 60.28], "category_id": 1, "id": 1208560}, {"segmentation": [[100.93, 26.17, 106.76, 30.73, 108.03, 34.28, 80.14, 33.52, 80.9, 24.14, 80.9, 18.81, 80.64, 15.52, 79.63, 14.0, 89.26, 12.73, 103.46, 12.22, 100.93, 21.35], [99.41, 2.59, 101.18, 9.94, 79.12, 8.16, 80.14, 0.3], [77.85, 0.05, 74.3, 8.67, 53.26, 7.15, 56.3, 0.0], [71.77, 14.0, 64.41, 25.91, 68.22, 33.52, 43.37, 32.76, 45.9, 24.9, 49.2, 18.56, 50.72, 11.46, 50.72, 10.45]], "area": 1231.6771, "iscrowd": 0, "image_id": 191918, "bbox": [43.37, 0.0, 64.66, 34.28], "category_id": 1, "id": 1209036}, {"segmentation": [[344.92, 43.79, 344.92, 39.82, 340.95, 36.32, 337.45, 34.22, 337.45, 29.79, 336.75, 26.06, 335.35, 21.62, 332.55, 20.46, 324.62, 21.39, 321.82, 26.52, 321.82, 31.19, 321.82, 34.22, 320.89, 37.02, 315.99, 40.52, 314.82, 43.32, 314.82, 45.42]], "area": 451.0368500000001, "iscrowd": 0, "image_id": 60771, "bbox": [314.82, 20.46, 30.1, 24.96], "category_id": 1, "id": 1209569}, {"segmentation": [[529.75, 353.71, 526.5, 328.79, 529.75, 307.13, 538.42, 294.13, 544.92, 298.46, 553.58, 325.54, 547.08, 334.21, 546.0, 343.96, 535.17, 355.88]], "area": 1064.4147000000005, "iscrowd": 0, "image_id": 404964, "bbox": [526.5, 294.13, 27.08, 61.75], "category_id": 1, "id": 1210521}, {"segmentation": [[402.39, 427.0, 409.22, 422.15, 409.55, 422.15, 404.99, 411.73, 399.78, 405.88, 390.35, 394.49, 387.09, 390.26, 387.42, 385.37, 383.19, 378.54, 378.96, 377.24, 373.1, 390.26, 373.1, 390.91, 373.1, 392.53, 367.89, 397.09, 353.25, 422.47, 352.27, 423.45, 363.34, 427.0, 368.22, 427.0, 396.53, 427.0]], "area": 1531.1595, "iscrowd": 0, "image_id": 111831, "bbox": [352.27, 377.24, 57.28, 49.76], "category_id": 1, "id": 1211088}, {"segmentation": [[580.18, 249.73, 584.22, 230.56, 583.21, 202.31, 587.24, 180.11, 594.31, 172.04, 595.32, 156.9, 606.41, 154.88, 616.5, 163.96, 611.46, 177.08, 619.53, 176.07, 629.62, 183.14, 616.5, 201.3, 610.45, 221.48, 605.41, 236.61, 608.43, 252.76, 586.23, 255.78]], "area": 2741.986249999999, "iscrowd": 0, "image_id": 462123, "bbox": [580.18, 154.88, 49.44, 100.9], "category_id": 1, "id": 1211550}, {"segmentation": [[2.15, 196.39, 20.41, 212.5, 53.71, 231.84, 68.75, 245.8, 80.56, 265.14, 89.16, 268.36, 79.49, 318.85, 51.56, 329.59, 27.93, 330.66, 0.0, 293.07]], "area": 7845.2684500000005, "iscrowd": 0, "image_id": 426513, "bbox": [0.0, 196.39, 89.16, 134.27], "category_id": 1, "id": 1211704}, {"segmentation": [[237.35, 56.25, 237.48, 54.36, 238.29, 52.07, 239.24, 49.5, 239.51, 46.4, 239.37, 42.36, 238.7, 39.66, 237.08, 37.37, 235.46, 35.89, 234.79, 33.46, 234.11, 31.98, 232.49, 31.44, 230.07, 30.76, 227.91, 31.84, 227.37, 34.81, 227.37, 38.04, 226.56, 39.93, 225.89, 41.41, 225.35, 43.98, 226.29, 46.4, 229.39, 48.43, 232.09, 50.18, 233.57, 52.47, 234.65, 53.55]], "area": 220.49205000000006, "iscrowd": 0, "image_id": 277472, "bbox": [225.35, 30.76, 14.16, 25.49], "category_id": 1, "id": 1212140}, {"segmentation": [[19.59, 330.05, 19.8, 325.78, 21.22, 322.32, 20.82, 319.06, 18.98, 316.01, 20.0, 312.55, 20.61, 309.9, 21.63, 309.29, 24.48, 310.31, 25.9, 309.29, 25.7, 313.16, 25.9, 319.06, 23.26, 320.69, 24.48, 330.05, 23.05, 330.25, 22.44, 326.59, 22.44, 322.11, 20.61, 326.59, 20.41, 329.85, 20.0, 329.64]], "area": 83.11019999999995, "iscrowd": 0, "image_id": 482024, "bbox": [18.98, 309.29, 6.92, 20.96], "category_id": 1, "id": 1212978}, {"segmentation": [[256.6, 148.98, 254.02, 128.01, 260.47, 120.58, 260.79, 106.06, 247.89, 91.54, 246.6, 79.28, 238.85, 78.96, 240.14, 95.42, 231.43, 105.1, 234.98, 128.33]], "area": 1134.039000000001, "iscrowd": 0, "image_id": 263275, "bbox": [231.43, 78.96, 29.36, 70.02], "category_id": 1, "id": 1213244}, {"segmentation": [[387.61, 318.92, 388.93, 318.82, 389.13, 307.9, 388.93, 305.67, 386.7, 302.44, 385.69, 300.82, 385.29, 296.37, 385.09, 291.72, 385.69, 288.49, 387.41, 287.28, 388.32, 286.77, 389.53, 286.16, 389.13, 284.24, 389.74, 282.83, 391.05, 281.92, 391.86, 281.82, 392.16, 282.93, 392.57, 285.36, 392.67, 285.96, 393.17, 286.87, 393.68, 287.78, 394.59, 288.29, 395.09, 288.39, 395.3, 289.7, 398.13, 297.18, 398.43, 297.79, 399.14, 298.6, 399.34, 300.32, 399.14, 301.33, 398.73, 301.83, 397.82, 301.23, 397.42, 300.22, 397.02, 299.41, 396.31, 298.19, 395.8, 297.89, 395.6, 297.49, 394.79, 298.29, 394.39, 299.81, 394.39, 301.13, 394.39, 302.54, 394.39, 304.76, 394.18, 306.08, 394.29, 307.19, 394.29, 308.1, 394.29, 309.62, 394.18, 313.46, 394.39, 315.98, 394.59, 318.31, 394.29, 318.82, 393.48, 319.22, 392.06, 319.62, 391.86, 319.52, 391.05, 319.32, 390.04, 319.42, 389.13, 319.62, 388.12, 319.62]], "area": 274.1190500000001, "iscrowd": 0, "image_id": 217636, "bbox": [385.09, 281.82, 14.25, 37.8], "category_id": 1, "id": 1213774}, {"segmentation": [[103.82, 235.25, 114.91, 222.49, 123.79, 188.67, 146.52, 189.22, 152.62, 205.86, 155.39, 214.18, 170.36, 230.26, 168.14, 247.44, 159.83, 260.75, 175.35, 260.75, 180.34, 266.85, 170.36, 305.67, 170.36, 315.65, 178.12, 320.08, 177.57, 324.52, 162.04, 324.52, 158.16, 320.08, 157.05, 327.29, 137.65, 323.41, 138.2, 290.14, 134.32, 302.89, 126.56, 302.89, 117.13, 298.46, 113.8, 281.27, 113.8, 255.76, 114.91, 248.55, 113.25, 244.67, 108.26, 252.43, 101.05, 246.89, 101.61, 235.8]], "area": 6682.5847, "iscrowd": 0, "image_id": 3366, "bbox": [101.05, 188.67, 79.29, 138.62], "category_id": 1, "id": 1213840}, {"segmentation": [[166.96, 410.69, 146.81, 406.85, 145.85, 371.35, 172.72, 347.36, 191.91, 296.5, 210.14, 291.7, 236.05, 331.04, 247.56, 351.2, 241.81, 364.63, 237.97, 408.77, 215.9, 405.89, 218.78, 377.1, 211.1, 367.51, 190.95, 374.22, 174.64, 373.27, 165.04, 407.81]], "area": 6217.858899999999, "iscrowd": 0, "image_id": 502517, "bbox": [145.85, 291.7, 101.71, 118.99], "category_id": 1, "id": 1214758}, {"segmentation": [[129.55, 363.23, 113.18, 371.77, 112.47, 365.36, 108.2, 358.25, 113.89, 319.82, 118.16, 307.72, 120.3, 267.87, 130.26, 229.44, 148.76, 200.97, 158.73, 195.99, 151.61, 186.74, 151.61, 173.93, 154.46, 154.72, 167.27, 149.02, 180.08, 149.02, 193.64, 158.64, 194.04, 165.8, 195.63, 172.16, 194.83, 177.72, 198.41, 185.67, 195.63, 189.25, 194.43, 191.64, 194.04, 196.41, 191.65, 203.56, 189.66, 205.95, 185.29, 204.76, 182.11, 203.17, 179.72, 203.17, 171.77, 213.5, 171.77, 215.89, 170.98, 217.08, 175.35, 225.83, 176.15, 244.91, 182.11, 271.94, 199.2, 265.58, 205.96, 265.58, 211.53, 261.61, 221.47, 261.21, 226.64, 262.8, 227.83, 268.37, 228.23, 273.14, 228.23, 275.92, 225.05, 278.7, 222.26, 280.29, 217.09, 283.47, 209.54, 286.26, 198.01, 295.0, 189.27, 302.16, 185.29, 305.74, 181.31, 306.53, 181.31, 314.08, 181.31, 324.82, 178.53, 341.91, 172.17, 344.3, 166.6, 346.68, 162.63, 346.68, 156.27, 344.7, 146.73, 349.07, 148.32, 353.44, 134.0, 361.39, 132.81, 361.79]], "area": 11997.81295, "iscrowd": 0, "image_id": 206427, "bbox": [108.2, 149.02, 120.03, 222.75], "category_id": 1, "id": 1215677}, {"segmentation": [[123.82, 28.78, 122.86, 32.43, 123.98, 34.02, 123.18, 36.09, 121.12, 38.63, 120.32, 40.38, 119.69, 44.19, 120.16, 46.41, 123.82, 50.23, 126.52, 50.86, 127.47, 51.02, 125.72, 30.53, 124.45, 29.1], [127.79, 29.73, 129.22, 35.13, 129.38, 36.41, 134.62, 45.94, 133.19, 54.04, 131.6, 54.68, 130.81, 53.41, 130.33, 52.29, 129.85, 52.29]], "area": 167.8416, "iscrowd": 0, "image_id": 382979, "bbox": [119.69, 28.78, 14.93, 25.9], "category_id": 1, "id": 1216044}, {"segmentation": [[356.04, 353.64, 354.09, 364.29, 353.56, 368.73, 356.57, 369.97, 360.12, 369.08, 364.38, 368.37, 367.75, 368.02, 370.77, 366.6, 370.42, 365.18, 368.29, 361.8, 367.04, 356.83, 364.56, 351.15, 359.59, 349.2, 356.22, 353.64], [358.35, 374.23, 356.75, 377.95, 355.15, 381.15, 353.2, 383.99, 350.89, 391.27, 352.31, 394.28, 355.69, 395.35, 357.46, 393.22, 359.24, 388.25, 361.19, 382.04, 363.32, 379.02, 364.91, 379.55, 363.49, 385.23, 359.59, 391.27, 358.88, 395.35, 361.54, 394.64, 364.03, 393.22, 364.91, 389.49, 365.8, 384.7, 366.87, 381.33, 371.3, 379.73, 371.84, 371.39, 371.3, 369.61, 360.12, 373.87]], "area": 496.5596000000006, "iscrowd": 0, "image_id": 448061, "bbox": [350.89, 349.2, 20.95, 46.15], "category_id": 1, "id": 1216065}, {"segmentation": [[0.0, 320.54, 17.3, 272.97, 35.68, 243.78, 54.05, 237.3, 68.11, 227.57, 100.54, 221.08, 113.51, 212.43, 117.84, 212.43, 126.49, 201.62, 120.0, 195.14, 117.84, 187.57, 118.92, 174.59, 127.57, 169.19, 126.49, 147.57, 135.14, 137.84, 149.19, 124.86, 154.59, 124.86, 161.08, 125.95, 170.81, 130.27, 185.95, 143.24, 200.0, 172.43, 196.76, 198.38, 191.35, 215.68, 182.7, 230.81, 167.57, 238.38, 189.19, 249.19, 193.51, 266.49, 185.95, 337.84, 181.62, 369.19, 179.46, 380.0, 130.81, 392.97, 107.03, 391.89, 88.65, 389.73, 63.78, 397.3, 47.57, 402.7, 33.51, 408.11, 2.16, 417.84, 0.0, 380.0]], "area": 36258.2498, "iscrowd": 0, "image_id": 176587, "bbox": [0.0, 124.86, 200.0, 292.98], "category_id": 1, "id": 1216556}, {"segmentation": [[84.26, 269.22, 76.61, 278.92, 72.01, 295.75, 80.18, 310.55, 82.73, 344.23, 83.24, 357.49, 85.79, 365.14, 77.63, 379.94, 76.09, 387.59, 81.2, 392.19, 77.12, 401.37, 78.65, 408.0, 93.44, 403.92, 114.36, 405.45, 116.91, 403.41, 126.61, 405.96, 136.81, 402.39, 121.0, 391.17, 118.44, 389.13, 123.55, 377.39, 124.57, 360.04, 122.02, 342.69, 120.49, 330.96, 119.46, 329.94, 123.55, 308.0, 135.79, 308.0, 139.36, 300.86, 135.79, 297.28, 130.18, 293.71, 128.65, 289.12, 119.46, 273.81, 113.34, 266.67, 112.32, 263.61, 110.79, 253.4, 105.69, 240.65, 102.63, 237.08, 98.03, 235.55, 87.32, 238.1, 81.2, 239.12, 80.18, 239.12, 80.18, 247.28, 86.3, 252.89, 86.81, 259.53, 84.26, 267.18, 81.71, 271.26]], "area": 6973.0859, "iscrowd": 0, "image_id": 24730, "bbox": [72.01, 235.55, 67.35, 172.45], "category_id": 1, "id": 1216605}, {"segmentation": [[111.51, 212.9, 110.29, 215.46, 108.4, 214.92, 109.75, 210.74, 109.75, 205.48, 109.62, 198.87, 113.93, 200.63, 113.12, 210.74, 114.34, 214.92, 111.91, 215.46, 111.64, 212.9]], "area": 61.418000000000085, "iscrowd": 0, "image_id": 409374, "bbox": [108.4, 198.87, 5.94, 16.59], "category_id": 1, "id": 1217007}, {"segmentation": [[582.65, 167.25, 580.86, 187.06, 576.96, 187.59, 568.1, 187.48, 570.74, 183.69, 574.74, 181.27, 578.22, 178.42, 579.17, 176.73, 579.8, 175.26, 577.48, 173.15, 579.06, 166.09, 581.17, 165.35]], "area": 124.29974999999999, "iscrowd": 0, "image_id": 255604, "bbox": [568.1, 165.35, 14.55, 22.24], "category_id": 1, "id": 1217157}, {"segmentation": [[313.87, 199.1, 314.13, 197.05, 315.92, 196.8, 317.72, 197.74, 317.72, 200.21, 317.97, 200.81, 320.28, 202.95, 320.96, 207.91, 321.39, 210.47, 321.73, 211.84, 320.28, 211.75, 320.11, 212.01, 319.34, 205.94, 319.34, 212.78, 318.74, 218.08, 319.17, 222.09, 319.25, 224.23, 319.25, 225.43, 317.8, 225.43, 317.03, 224.92, 316.6, 224.32, 316.95, 223.03, 316.95, 220.04, 317.2, 218.16, 317.03, 216.37, 316.6, 213.63, 316.43, 216.11, 316.18, 218.42, 316.43, 220.56, 316.6, 221.58, 316.95, 222.52, 316.78, 223.63, 316.6, 223.72, 315.49, 223.63, 314.89, 222.95, 314.64, 219.87, 314.21, 217.05, 313.53, 213.63, 312.84, 211.58, 311.65, 209.45, 311.56, 207.22, 311.99, 204.15, 311.99, 202.35, 313.01, 201.67, 313.27, 200.64, 313.44, 199.87, 313.78, 199.36]], "area": 163.1355500000003, "iscrowd": 0, "image_id": 245441, "bbox": [311.56, 196.8, 10.17, 28.63], "category_id": 1, "id": 1217636}, {"segmentation": [[300.44, 500.12, 297.92, 493.83, 295.41, 487.54, 292.89, 484.3, 288.58, 483.76, 285.88, 483.58, 284.8, 476.21, 286.6, 474.23, 284.8, 470.46, 281.56, 469.2, 278.51, 469.2, 274.73, 471.72, 275.81, 476.03, 276.53, 482.32, 270.24, 483.76, 265.74, 487.54, 261.97, 498.14, 299.72, 499.4, 299.18, 499.4]], "area": 618.2740499999995, "iscrowd": 0, "image_id": 453332, "bbox": [261.97, 469.2, 38.47, 30.92], "category_id": 1, "id": 1217748}, {"segmentation": [[44.32, 274.05, 52.97, 276.22, 60.54, 271.89, 65.95, 268.65, 69.19, 262.16, 68.11, 241.62, 59.46, 224.32, 59.46, 207.03, 62.7, 177.84, 68.11, 162.7, 89.73, 148.65, 108.11, 146.49, 129.73, 147.57, 153.51, 171.35, 164.32, 174.59, 167.57, 199.46, 167.57, 220.0, 162.16, 228.65, 162.16, 236.22, 161.08, 250.27, 160.0, 253.51, 152.43, 264.32, 141.62, 269.73, 124.32, 272.97, 116.76, 293.51, 157.84, 312.97, 160.0, 308.65, 162.16, 294.59, 170.81, 288.11, 175.14, 288.11, 181.62, 284.86, 188.11, 281.62, 181.62, 294.59, 190.27, 291.35, 192.43, 294.59, 196.76, 298.92, 202.16, 300.0, 174.05, 319.46, 193.51, 334.59, 206.49, 342.16, 216.22, 346.49, 209.73, 317.3, 207.57, 306.49, 202.16, 294.59, 197.84, 289.19, 196.76, 275.14, 202.16, 271.89, 208.65, 275.14, 211.89, 268.65, 211.89, 262.16, 218.38, 258.92, 222.7, 264.32, 222.7, 265.41, 225.95, 275.14, 228.11, 277.3, 224.86, 298.92, 224.86, 315.14, 245.41, 346.49, 248.65, 383.24, 234.59, 398.38, 214.05, 397.3, 175.14, 380.0, 167.57, 390.81, 151.35, 402.7, 151.35, 402.7, 144.86, 436.22, 134.05, 470.81, 134.05, 470.81, 134.05, 470.81, 134.05, 480.0, 0.0, 480.0, 3.24, 325.95, 21.62, 281.62, 34.59, 279.46]], "area": 48464.713500000005, "iscrowd": 0, "image_id": 130624, "bbox": [0.0, 146.49, 248.65, 333.51], "category_id": 1, "id": 1217935}, {"segmentation": [[178.31, 273.91, 177.24, 245.98, 197.64, 224.5, 214.83, 200.87, 215.91, 178.31, 243.83, 194.42, 249.2, 219.13, 284.65, 258.87, 323.32, 282.5, 297.54, 292.17, 253.5, 272.84, 243.83, 278.21, 215.91, 258.87, 182.61, 265.32]], "area": 6262.88935, "iscrowd": 0, "image_id": 510979, "bbox": [177.24, 178.31, 146.08, 113.86], "category_id": 1, "id": 1218117}, {"segmentation": [[162.7, 187.24, 170.96, 185.59, 175.92, 188.48, 180.46, 199.63, 185.0, 209.55, 191.2, 224.83, 194.91, 245.89, 194.91, 261.17, 194.09, 289.26, 197.39, 331.92, 192.44, 336.05, 171.37, 332.33, 171.37, 320.77, 171.37, 307.55, 169.72, 296.4, 169.31, 276.57, 166.83, 259.23, 165.59, 250.55, 165.18, 241.88, 165.59, 234.45, 166.0, 226.19, 166.0, 217.1, 166.0, 212.97, 162.7, 208.57, 161.05, 194.53, 161.05, 189.16]], "area": 3620.8559499999983, "iscrowd": 0, "image_id": 90582, "bbox": [161.05, 185.59, 36.34, 150.46], "category_id": 1, "id": 1218222}, {"segmentation": [[276.35, 149.69, 283.07, 142.97, 293.62, 116.11, 328.17, 85.4, 361.75, 101.71, 338.72, 148.73, 391.5, 174.64, 395.33, 205.34, 465.38, 234.13, 472.1, 271.55, 489.37, 261.96, 487.45, 219.74, 476.9, 217.82, 423.16, 188.07, 427.0, 125.7, 434.68, 96.91, 418.36, 68.13, 427.0, 61.41, 481.69, 62.37, 506.64, 66.21, 529.67, 66.21, 525.83, 49.9, 506.64, 47.98, 486.49, 49.9, 441.39, 39.34, 385.74, 46.06, 345.44, 36.46, 329.13, 18.23, 299.38, 20.15, 292.66, 36.46, 292.66, 51.82, 305.14, 73.89, 279.23, 112.27, 271.55, 133.38]], "area": 19257.6091, "iscrowd": 0, "image_id": 429158, "bbox": [271.55, 18.23, 258.12, 253.32], "category_id": 1, "id": 1218233}, {"segmentation": [[212.11, 194.36, 211.84, 177.99, 219.63, 167.52, 235.2, 167.34, 235.73, 196.87, 225.26, 195.8, 217.21, 196.87, 212.92, 198.22, 212.11, 194.99], [222.85, 159.02, 222.31, 153.92, 224.46, 148.82, 229.56, 145.87, 230.37, 148.01, 231.44, 153.11, 232.78, 159.56, 223.12, 159.29]], "area": 744.9439999999994, "iscrowd": 0, "image_id": 157923, "bbox": [211.84, 145.87, 23.89, 52.35], "category_id": 1, "id": 1218244}, {"segmentation": [[64.92, 86.19, 59.99, 73.37, 68.87, 62.51, 77.74, 66.46, 83.66, 76.82, 84.16, 81.26]], "area": 365.26644999999996, "iscrowd": 0, "image_id": 375659, "bbox": [59.99, 62.51, 24.17, 23.68], "category_id": 1, "id": 1218482}, {"segmentation": [[299.7, 331.44, 302.71, 311.4, 297.7, 293.35, 297.7, 281.33, 299.7, 274.31, 301.71, 262.28, 296.69, 242.23, 296.69, 227.2, 301.71, 208.15, 301.71, 193.12, 305.72, 173.07, 313.73, 165.05, 323.76, 158.04, 333.78, 155.03, 351.82, 167.06, 345.81, 185.1, 342.8, 199.13, 332.78, 201.14, 343.81, 211.16, 356.84, 226.2, 372.87, 237.22, 359.84, 252.26, 359.84, 262.28, 357.84, 299.37, 365.86, 384.57, 381.89, 401.61, 383.9, 412.63, 367.86, 416.64, 353.83, 415.64, 345.81, 412.63, 338.79, 400.6, 345.81, 391.58, 329.77, 328.44, 303.71, 393.59, 297.7, 409.63, 315.74, 422.66, 289.68, 418.65]], "area": 13314.262949999993, "iscrowd": 0, "image_id": 221842, "bbox": [289.68, 155.03, 94.22, 267.63], "category_id": 1, "id": 1218761}, {"segmentation": [[515.87, 168.67, 515.39, 164.33, 514.67, 162.4, 512.98, 159.5, 510.8, 156.84, 509.6, 155.64, 504.77, 155.16, 500.67, 157.57, 499.22, 161.43, 498.5, 169.4, 496.81, 175.19, 505.49, 174.46, 510.8, 171.81, 515.39, 170.12]], "area": 267.7890499999999, "iscrowd": 0, "image_id": 347340, "bbox": [496.81, 155.16, 19.06, 20.03], "category_id": 1, "id": 1218868}, {"segmentation": [[309.52, 229.24, 312.59, 227.08, 310.97, 223.83, 312.41, 221.12, 312.59, 217.69, 310.79, 217.33, 308.08, 217.87, 307.54, 219.13, 307.54, 221.48]], "area": 42.079799999999956, "iscrowd": 0, "image_id": 531032, "bbox": [307.54, 217.33, 5.05, 11.91], "category_id": 1, "id": 1219587}, {"segmentation": [[8.6, 203.43, 42.02, 203.43, 46.8, 197.7, 42.98, 169.04, 39.16, 149.94, 39.16, 127.02, 31.52, 121.29, 21.97, 118.43, 12.42, 125.11, 9.55, 137.53, 4.78, 157.58, 3.82, 189.1, 0.96, 199.61]], "area": 2928.1207499999996, "iscrowd": 0, "image_id": 181837, "bbox": [0.96, 118.43, 45.84, 85.0], "category_id": 1, "id": 1219659}, {"segmentation": [[146.46, 283.57, 148.54, 278.15, 155.21, 279.82, 157.71, 288.98, 163.55, 297.32, 167.3, 304.82, 162.3, 308.99, 159.38, 308.15, 156.31, 302.05, 154.14, 299.89, 154.93, 292.4, 153.35, 289.64, 147.24, 283.92]], "area": 227.6880000000004, "iscrowd": 0, "image_id": 332065, "bbox": [146.46, 278.15, 20.84, 30.84], "category_id": 1, "id": 1219869}, {"segmentation": [[446.64, 113.46, 441.74, 117.31, 441.74, 119.77, 439.99, 123.62, 436.83, 127.13, 439.64, 133.08, 437.53, 138.34, 437.53, 146.4, 435.43, 147.1, 432.98, 150.25, 430.88, 156.56, 428.42, 159.36, 428.42, 163.22, 427.72, 169.52, 425.27, 174.43, 424.22, 178.98, 424.22, 183.89, 423.17, 187.74, 425.27, 191.25, 428.77, 170.92, 437.18, 150.6, 444.19, 132.73, 450.5, 120.82, 449.1, 116.96, 447.69, 113.46], [451.03, 181.13, 451.51, 187.16, 452.23, 191.98, 455.12, 198.0, 455.12, 203.06, 453.44, 205.71, 452.23, 208.12, 453.92, 209.57, 459.7, 206.92, 461.87, 205.23, 463.08, 198.96, 461.15, 195.83, 460.67, 190.29, 459.7, 180.17, 459.7, 175.11, 458.74, 170.77], [463.87, 172.22, 465.21, 184.36, 468.36, 193.81, 469.71, 198.75, 471.06, 201.45, 471.96, 203.7, 479.15, 203.25, 481.4, 202.35, 480.95, 198.3, 477.36, 190.66, 477.36, 185.71, 464.31, 170.42]], "area": 882.6914499999992, "iscrowd": 0, "image_id": 383605, "bbox": [423.17, 113.46, 58.23, 96.11], "category_id": 1, "id": 1220006}, {"segmentation": [[553.57, 255.39, 552.24, 249.26, 549.96, 247.94, 550.08, 242.53, 551.04, 240.72, 550.68, 238.32, 553.09, 237.48, 554.53, 238.8, 554.65, 240.0, 558.01, 242.77, 558.74, 246.01, 558.86, 253.95, 558.98, 256.35, 556.81, 256.47, 556.21, 251.9, 555.37, 252.38, 555.61, 256.71, 553.45, 256.83]], "area": 115.69424999999978, "iscrowd": 0, "image_id": 274881, "bbox": [549.96, 237.48, 9.02, 19.35], "category_id": 1, "id": 1220316}, {"segmentation": [[195.78, 222.47, 194.16, 180.4, 196.58, 157.75, 238.65, 143.19, 230.56, 121.35, 224.09, 106.79, 221.66, 105.17, 225.71, 74.43, 228.13, 71.19, 224.09, 60.67, 217.62, 54.2, 225.71, 42.07, 234.61, 30.74, 249.98, 31.55, 259.69, 49.35, 255.64, 58.25, 282.34, 80.09, 306.61, 116.49, 313.08, 145.62, 307.42, 169.89, 276.67, 169.08, 251.6, 171.51, 242.7, 190.92, 237.84, 176.36, 220.85, 183.64, 222.47, 219.24], [190.92, 259.69, 198.2, 237.84, 193.35, 226.52, 209.53, 222.47, 220.85, 245.12, 228.94, 250.79, 214.38, 258.07, 194.97, 270.2, 193.35, 262.92]], "area": 11737.354999999998, "iscrowd": 0, "image_id": 64744, "bbox": [190.92, 30.74, 122.16, 239.46], "category_id": 1, "id": 1220750}, {"segmentation": [[156.99, 205.05, 161.05, 202.09, 163.27, 197.66, 166.22, 195.44, 172.13, 195.44, 178.78, 209.85, 181.0, 216.87, 180.63, 219.09, 186.91, 227.21, 183.96, 236.82, 186.17, 247.9, 188.02, 260.46, 175.09, 252.33, 166.22, 251.23, 165.85, 246.42, 157.73, 245.31, 154.4, 234.23, 155.88, 226.47, 160.31, 220.56, 158.1, 208.74]], "area": 1339.8678, "iscrowd": 0, "image_id": 221328, "bbox": [154.4, 195.44, 33.62, 65.02], "category_id": 1, "id": 1220851}, {"segmentation": [[348.8, 2.38, 354.05, 28.08, 358.72, 49.1, 356.97, 69.53, 348.8, 97.56, 348.21, 105.74, 321.35, 106.32, 302.67, 89.39, 289.82, 77.12, 274.06, 63.69, 271.72, 45.01, 281.65, 4.14, 286.9, 0.05, 344.13, 0.05]], "area": 7305.086300000001, "iscrowd": 0, "image_id": 1431, "bbox": [271.72, 0.05, 87.0, 106.27], "category_id": 1, "id": 1220939}, {"segmentation": [[212.58, 97.66, 211.34, 92.39, 208.86, 85.27, 208.86, 81.55, 209.48, 75.35, 214.44, 72.88, 214.75, 66.37, 216.6, 65.13, 221.56, 65.44, 221.56, 67.3, 222.49, 72.88, 225.28, 81.86, 227.14, 102.3]], "area": 458.2391499999998, "iscrowd": 0, "image_id": 517261, "bbox": [208.86, 65.13, 18.28, 37.17], "category_id": 1, "id": 1220943}, {"segmentation": [[394.28, 74.97, 428.22, 71.37, 413.82, 66.74, 407.14, 66.22, 405.08, 59.54, 394.28, 62.63, 396.34, 71.37], [436.44, 72.39, 504.31, 65.2, 519.74, 63.14, 537.73, 62.63, 525.91, 57.48, 482.2, 55.43, 479.12, 47.71, 472.95, 40.0, 458.04, 48.74, 455.47, 52.86, 437.47, 69.31]], "area": 1461.9739999999997, "iscrowd": 0, "image_id": 429113, "bbox": [394.28, 40.0, 143.45, 34.97], "category_id": 1, "id": 1221209}, {"segmentation": [[192.68, 373.91, 207.7, 376.41, 214.59, 387.68, 236.5, 385.17, 245.27, 389.56, 258.41, 387.68, 267.18, 387.68, 269.05, 367.65, 265.3, 357.0, 256.53, 352.62, 243.39, 352.0, 236.5, 356.38, 218.97, 354.5, 212.71, 356.38, 195.18, 350.12, 179.53, 336.97, 179.53, 321.95, 182.04, 306.3, 179.53, 297.53, 183.92, 271.24, 183.92, 262.48, 177.66, 259.97, 164.51, 251.21, 162.01, 249.33, 162.01, 242.44, 168.27, 233.68, 177.03, 218.66, 181.41, 205.51, 179.53, 187.98, 177.66, 176.71, 173.27, 166.07, 166.39, 154.8, 148.86, 150.42, 138.22, 154.8, 129.45, 156.68, 126.95, 165.44, 122.57, 176.71, 122.57, 194.24, 118.18, 194.24, 122.57, 211.77, 126.95, 216.15, 126.95, 231.18, 118.18, 233.68, 103.16, 244.32, 80.62, 253.09, 58.71, 277.5, 56.84, 290.65, 43.69, 308.18, 41.19, 340.73, 41.19, 378.29, 45.57, 397.7, 54.33, 422.11, 71.86, 422.11, 89.39, 426.49, 104.41, 418.35, 106.92, 444.02, 130.71, 487.84, 128.83, 500.99, 122.57, 514.13, 118.18, 522.9, 109.42, 571.73, 109.42, 586.75, 124.44, 591.13, 146.36, 595.52, 152.62, 580.49, 148.23, 580.49, 155.12, 565.47, 155.12, 554.2, 155.12, 541.05, 157.0, 534.17, 163.88, 554.2, 150.74, 599.9, 140.1, 633.08, 137.59, 637.46, 190.18, 638.71, 190.18, 623.06, 220.85, 559.83, 218.97, 544.81, 214.59, 527.28, 187.67, 472.19, 187.67, 426.49, 205.83, 417.73, 205.83, 410.84, 201.44, 408.96, 198.94, 400.2, 198.94, 395.82, 207.7, 393.31, 205.83, 382.67, 190.18, 377.66, 192.05, 371.4]], "area": 47941.979, "iscrowd": 0, "image_id": 415946, "bbox": [41.19, 150.42, 227.86, 488.29], "category_id": 1, "id": 1221229}, {"segmentation": [[569.32, 140.51, 571.66, 140.08, 572.98, 141.54, 573.71, 144.32, 574.59, 145.49, 577.08, 147.1, 577.95, 150.46, 578.1, 155.29, 578.25, 160.26, 577.22, 160.56, 575.17, 161.73, 572.39, 162.9, 570.79, 163.92, 569.62, 164.65, 567.86, 165.97, 568.44, 140.95]], "area": 192.24564999999956, "iscrowd": 0, "image_id": 383605, "bbox": [567.86, 140.08, 10.39, 25.89], "category_id": 1, "id": 1221400}, {"segmentation": [[242.77, 307.86, 248.52, 267.55, 229.33, 227.25, 214.94, 194.63, 232.21, 176.4, 241.81, 148.57, 249.48, 122.66, 230.29, 99.63, 215.9, 74.68, 212.06, 26.71, 249.48, 5.6, 273.47, 20.95, 280.19, 32.46, 307.06, 42.06, 305.14, 79.48, 308.98, 101.55, 324.33, 109.23, 332.0, 275.23, 305.14, 291.54], [343.52, 352.0, 355.03, 400.93, 317.61, 402.85, 239.89, 402.85, 243.73, 353.91]], "area": 30124.6677, "iscrowd": 0, "image_id": 119337, "bbox": [212.06, 5.6, 142.97, 397.25], "category_id": 1, "id": 1221537}, {"segmentation": [[569.07, 359.77, 565.58, 389.42, 559.18, 412.08, 509.2, 410.92, 508.62, 360.94, 505.71, 333.04, 498.74, 305.14, 541.75, 305.14, 535.35, 323.16, 541.17, 337.11, 565.0, 355.12]], "area": 5158.9254500000025, "iscrowd": 0, "image_id": 502517, "bbox": [498.74, 305.14, 70.33, 106.94], "category_id": 1, "id": 1221741}, {"segmentation": [[130.34, 233.46, 137.58, 205.46, 140.23, 197.25, 137.82, 190.49, 137.58, 185.91, 141.2, 182.05, 147.23, 183.25, 149.41, 190.98, 161.23, 196.53, 163.65, 208.11, 160.99, 222.93, 162.92, 242.0, 164.85, 251.5, 177.4, 261.64, 172.09, 271.77, 167.03, 272.5, 165.82, 265.02, 159.78, 262.6, 157.37, 259.22, 156.16, 270.57, 154.96, 273.71, 143.13, 270.81, 148.68, 268.15, 147.96, 255.85, 146.99, 232.19, 142.41, 215.93, 133.48, 239.1]], "area": 1801.3488499999985, "iscrowd": 0, "image_id": 24730, "bbox": [130.34, 182.05, 47.06, 91.66], "category_id": 1, "id": 1222450}, {"segmentation": [[574.77, 250.44, 589.16, 255.24, 597.8, 262.92, 610.27, 267.71, 622.75, 276.35, 636.18, 284.99, 640.0, 289.78, 636.18, 236.05, 623.71, 229.33, 627.55, 215.9, 630.42, 205.34, 629.47, 200.55, 618.91, 201.51, 614.11, 214.94, 610.27, 216.86, 599.72, 209.18, 592.04, 202.47, 589.16, 198.63, 577.65, 204.38, 580.53, 208.22, 582.45, 217.82, 576.69, 214.94, 569.01, 212.06, 567.09, 212.06, 570.93, 217.82, 570.93, 220.7, 564.22, 227.41, 564.22, 228.37, 568.05, 233.17, 574.77, 235.09, 570.93, 237.97, 562.3, 240.85, 562.3, 245.64]], "area": 3739.3643, "iscrowd": 0, "image_id": 53615, "bbox": [562.3, 198.63, 77.7, 91.15], "category_id": 1, "id": 1222539}, {"segmentation": [[26.63, 218.3, 21.38, 216.75, 16.74, 219.53, 16.44, 225.71, 11.8, 231.58, 10.25, 245.18, 7.78, 247.97, 8.71, 226.95, 9.02, 215.51, 9.95, 211.5, 11.8, 204.08, 19.84, 202.22, 23.85, 207.48, 23.85, 213.04, 25.09, 216.44]], "area": 332.21175000000005, "iscrowd": 0, "image_id": 357428, "bbox": [7.78, 202.22, 18.85, 45.75], "category_id": 1, "id": 1223539}, {"segmentation": [[1.69, 260.56, 22.8, 248.73, 50.68, 238.6, 79.39, 227.62, 100.51, 222.55, 121.62, 203.97, 149.49, 196.37, 184.97, 192.99, 222.97, 189.61, 231.42, 189.61, 255.07, 168.5, 289.7, 138.09, 290.54, 138.09, 308.28, 133.02, 329.39, 119.51, 343.75, 117.82, 372.47, 127.11, 371.62, 122.04, 372.47, 110.22, 363.18, 102.62, 365.71, 95.86, 388.51, 89.95, 405.41, 65.46, 429.05, 65.46, 456.08, 80.66, 461.15, 100.08, 448.48, 126.27, 453.55, 143.16, 448.48, 158.36, 445.1, 160.9, 456.08, 182.01, 472.97, 199.75, 477.2, 218.33, 462.84, 252.96, 447.64, 270.69, 427.36, 284.21, 408.78, 290.12, 402.03, 293.5, 391.89, 314.61, 373.31, 316.3, 359.8, 306.17, 360.64, 285.05, 325.17, 301.94, 291.39, 312.92, 278.72, 319.68, 276.18, 320.52, 276.18, 344.17, 266.05, 362.75, 241.55, 363.6, 223.82, 349.24, 223.82, 325.59, 165.54, 339.1, 104.73, 349.24, 82.77, 347.55, 77.7, 328.13, 0.84, 352.62]], "area": 73143.41134999998, "iscrowd": 0, "image_id": 260603, "bbox": [0.84, 65.46, 476.36, 298.14], "category_id": 1, "id": 1225053}, {"segmentation": [[408.99, 112.3, 390.43, 102.14, 388.22, 96.83, 386.89, 87.55, 383.36, 72.97, 378.49, 67.22, 375.4, 65.01, 377.61, 58.39, 386.45, 51.31, 384.24, 44.68, 382.47, 35.85, 387.33, 28.33, 393.96, 28.78, 400.15, 36.29, 403.69, 42.92, 411.2, 51.31, 431.97, 63.25, 431.97, 72.97, 430.64, 84.46, 430.2, 93.74, 419.59, 92.86, 419.59, 100.81, 420.04, 105.67, 407.22, 105.23, 406.78, 109.21]], "area": 2728.778099999999, "iscrowd": 0, "image_id": 56699, "bbox": [375.4, 28.33, 56.57, 83.97], "category_id": 1, "id": 1225519}, {"segmentation": [[157.33, 304.14, 157.33, 304.14, 157.28, 305.33, 157.28, 305.33, 158.25, 305.87, 157.87, 310.74, 156.85, 311.28, 156.85, 311.28, 156.79, 313.88, 155.55, 313.94, 155.55, 311.39, 155.6, 310.91, 155.6, 310.91, 155.6, 310.91, 154.57, 310.26, 154.3, 305.87, 154.74, 305.22, 155.33, 305.12, 155.49, 303.65, 156.2, 303.44, 157.12, 303.82, 157.44, 304.25, 157.44, 304.25]], "area": 26.83864999999994, "iscrowd": 0, "image_id": 404964, "bbox": [154.3, 303.44, 3.95, 10.5], "category_id": 1, "id": 1226215}, {"segmentation": [[424.38, 1.16, 396.34, 33.95, 390.53, 45.59, 386.3, 52.99, 390.53, 73.62, 391.06, 86.84, 383.12, 95.83, 383.12, 100.07, 403.22, 100.59, 415.91, 105.88, 420.67, 119.63, 423.85, 127.04, 425.0, 140.26]], "area": 3018.7610999999997, "iscrowd": 0, "image_id": 322725, "bbox": [383.12, 1.16, 41.88, 139.1], "category_id": 1, "id": 1226249}, {"segmentation": [[594.24, 119.44, 594.24, 119.44, 586.15, 145.16, 612.34, 154.68, 625.2, 182.78, 631.39, 214.21, 620.43, 245.16, 619.01, 250.88, 611.39, 250.4, 602.81, 331.36, 605.2, 384.7, 601.86, 408.98, 603.77, 431.37, 576.62, 429.46, 579.96, 415.65, 579.96, 411.36, 569.96, 416.6, 556.62, 417.08, 547.1, 411.36, 566.15, 396.13, 564.72, 369.93, 553.29, 319.45, 543.76, 265.17, 539.0, 254.21, 538.05, 242.78, 538.05, 242.31, 539.95, 218.97, 530.91, 177.07, 538.05, 158.49, 558.53, 152.3, 560.43, 146.59, 560.91, 141.83, 555.19, 137.06, 557.57, 110.87, 564.72, 103.25, 578.05, 102.3, 590.43, 105.63, 590.43, 105.63]], "area": 18929.64665, "iscrowd": 0, "image_id": 444214, "bbox": [530.91, 102.3, 100.48, 329.07], "category_id": 1, "id": 1226371}, {"segmentation": [[408.79, 321.8, 410.35, 312.15, 406.92, 305.92, 403.81, 304.05, 400.07, 303.12, 399.76, 303.12, 402.87, 297.82, 407.23, 293.15, 407.86, 290.35, 407.54, 285.37, 410.03, 283.19, 413.77, 279.76, 416.57, 283.5, 418.13, 285.37, 421.87, 294.4, 420.62, 303.43, 418.13, 321.18, 411.28, 323.05]], "area": 512.5068999999999, "iscrowd": 0, "image_id": 217636, "bbox": [399.76, 279.76, 22.11, 43.29], "category_id": 1, "id": 1226491}, {"segmentation": [[171.44, 243.56, 166.64, 242.76, 161.44, 245.96, 160.64, 254.35, 159.44, 259.15, 157.45, 266.35, 153.45, 267.54, 149.85, 270.74, 149.45, 287.93, 149.85, 301.12, 150.25, 315.52, 151.85, 329.51, 151.85, 343.1, 152.25, 360.69, 150.25, 371.88, 147.85, 382.67, 149.45, 391.07, 163.84, 390.67, 163.04, 390.67, 159.44, 386.67, 156.25, 385.47, 155.05, 379.88, 155.85, 371.48, 158.64, 363.09, 164.64, 343.9, 165.44, 336.3, 166.64, 325.51, 167.84, 332.31, 168.64, 340.7, 179.83, 318.71, 181.83, 313.12, 178.63, 302.32, 184.63, 308.32, 189.03, 299.13, 185.83, 287.13, 183.83, 278.34, 182.23, 272.34, 176.23, 255.95, 173.84, 245.16]], "area": 3053.5711499999998, "iscrowd": 0, "image_id": 450281, "bbox": [147.85, 242.76, 41.18, 148.31], "category_id": 1, "id": 1226695}, {"segmentation": [[175.6, 422.2, 149.69, 379.02, 135.3, 323.37, 139.13, 291.7, 157.37, 309.93, 173.68, 314.73, 176.56, 304.18, 145.85, 257.16, 148.73, 209.18, 158.33, 192.87, 154.49, 142.97, 173.68, 107.47, 190.95, 100.75, 211.1, 95.96, 234.13, 114.19, 245.64, 124.74, 239.89, 150.65, 228.37, 182.31, 218.78, 198.63, 234.13, 237.01, 243.73, 256.2, 248.52, 284.99, 242.77, 297.46, 249.48, 308.02, 290.74, 303.22, 322.41, 283.07, 331.04, 273.47, 333.92, 302.26, 286.91, 314.73, 261.96, 329.13, 240.85, 324.33, 220.7, 345.44, 246.6, 358.87, 246.6, 400.13, 259.08, 422.2]], "area": 28689.309149999994, "iscrowd": 0, "image_id": 119337, "bbox": [135.3, 95.96, 198.62, 326.24], "category_id": 1, "id": 1227466}, {"segmentation": [[502.06, 420.31, 501.1, 382.8, 491.48, 356.83, 476.09, 328.93, 467.43, 309.7, 464.55, 285.65, 450.12, 251.03, 451.08, 241.41, 469.36, 223.14, 465.51, 211.6, 461.66, 201.02, 457.82, 179.86, 462.62, 166.39, 483.78, 162.54, 496.29, 176.97, 507.83, 196.21, 519.37, 209.67, 522.26, 240.45, 517.45, 305.85, 523.22, 326.05, 510.71, 342.4, 520.33, 406.84, 525.14, 428.0]], "area": 10864.377300000004, "iscrowd": 0, "image_id": 333356, "bbox": [450.12, 162.54, 75.02, 265.46], "category_id": 1, "id": 1227578}, {"segmentation": [[308.02, 202.2, 309.84, 207.67, 321.23, 195.59, 330.35, 192.63, 328.98, 181.69, 321.23, 181.24, 312.12, 197.64]], "area": 231.5972500000002, "iscrowd": 0, "image_id": 240762, "bbox": [308.02, 181.24, 22.33, 26.43], "category_id": 1, "id": 1227784}, {"segmentation": [[640.0, 330.29, 599.94, 289.26, 586.63, 266.52, 586.63, 246.56, 541.17, 249.33, 546.71, 262.64, 541.17, 259.87, 552.81, 275.39, 548.93, 292.03, 552.26, 295.36, 570.55, 315.32, 577.76, 364.11, 577.21, 387.4, 586.08, 369.1, 601.05, 359.12, 611.03, 360.79, 631.55, 353.58, 633.21, 351.91, 639.31, 354.69]], "area": 6115.289450000006, "iscrowd": 0, "image_id": 165773, "bbox": [541.17, 246.56, 98.83, 140.84], "category_id": 1, "id": 1228048}, {"segmentation": [[287.9, 310.21, 286.05, 297.98, 281.67, 282.29, 278.21, 270.75, 289.97, 262.45, 287.67, 255.3, 284.9, 247.45, 284.9, 243.3, 286.28, 237.53, 290.2, 234.07, 292.74, 234.07, 299.89, 235.68, 303.59, 238.68, 304.28, 247.45, 304.51, 253.91, 304.51, 256.22, 305.66, 258.06, 308.89, 257.6, 307.28, 261.53, 306.12, 269.37, 300.13, 277.45, 298.97, 283.68, 297.82, 291.52, 295.51, 294.52, 292.74, 300.06]], "area": 1182.1554499999997, "iscrowd": 0, "image_id": 204294, "bbox": [278.21, 234.07, 30.68, 76.14], "category_id": 1, "id": 1228423}, {"segmentation": [[402.27, 253.99, 400.15, 265.24, 400.36, 271.61, 403.55, 274.16, 402.7, 281.59, 406.52, 297.09, 407.58, 311.1, 410.77, 322.14, 410.98, 327.03, 412.89, 328.3, 416.07, 327.03, 414.59, 317.47, 412.68, 302.82, 415.01, 294.76, 417.13, 303.67, 418.62, 308.56, 420.53, 320.66, 420.32, 325.97, 425.0, 328.09, 425.0, 320.23, 424.14, 307.92, 424.78, 270.66, 424.99, 262.81, 424.78, 253.89, 420.53, 250.6, 419.47, 246.99, 418.41, 240.84, 416.71, 237.44, 413.53, 236.17, 410.77, 235.95, 409.28, 236.59, 408.01, 238.93, 407.16, 241.26, 406.73, 245.51, 408.43, 248.48, 406.52, 249.97, 404.61, 251.24, 403.33, 251.88, 402.49, 253.36]], "area": 1518.601, "iscrowd": 0, "image_id": 381208, "bbox": [400.15, 235.95, 24.85, 92.35], "category_id": 1, "id": 1229079}, {"segmentation": [[250.49, 32.9, 249.87, 30.67, 250.37, 28.68, 251.85, 27.44, 253.34, 27.69, 253.96, 29.55, 254.58, 31.04, 254.96, 32.16, 255.7, 32.66, 255.95, 32.78, 254.71, 33.9, 254.46, 35.01, 253.72, 36.13, 253.72, 37.37, 253.59, 38.73, 254.09, 41.34, 254.09, 43.95, 254.46, 48.91, 254.83, 53.0, 254.71, 56.35, 254.21, 59.95, 253.84, 59.95, 252.72, 59.58, 252.6, 59.58, 252.23, 60.82, 251.36, 65.53, 251.48, 67.77, 250.99, 69.88, 250.86, 70.25, 250.74, 70.25, 248.38, 68.39, 246.89, 67.02, 246.89, 66.9, 246.15, 56.1, 245.65, 54.0, 244.66, 52.26, 243.42, 50.89, 243.67, 45.31, 245.03, 38.61, 246.15, 36.75, 247.26, 35.88, 249.25, 34.64, 249.87, 33.65, 250.24, 32.53]], "area": 309.8495500000004, "iscrowd": 0, "image_id": 277472, "bbox": [243.42, 27.44, 12.53, 42.81], "category_id": 1, "id": 1229165}, {"segmentation": [[24.72, 165.42, 21.84, 178.58, 24.72, 188.45, 27.19, 200.38, 31.3, 208.61, 34.18, 222.18, 42.82, 243.98, 47.34, 247.68, 49.4, 264.96, 46.52, 282.24, 44.05, 322.14, 44.88, 328.72, 45.7, 350.11, 46.52, 365.33, 45.7, 371.91, 48.58, 383.42, 53.1, 410.57, 58.04, 425.38, 60.92, 434.84, 60.92, 439.37, 56.39, 450.88, 56.39, 457.0, 137.84, 457.0, 146.06, 384.25, 148.94, 355.45, 156.35, 347.64, 159.64, 345.58, 155.52, 314.32, 152.23, 290.05, 170.33, 294.99, 172.8, 295.81, 179.79, 269.9, 188.02, 270.31, 192.96, 272.36, 201.18, 274.83, 202.01, 277.3, 207.76, 274.42, 210.64, 273.19, 214.35, 273.19, 216.4, 273.19, 220.52, 275.24, 223.81, 278.53, 221.34, 279.77, 221.34, 282.65, 222.57, 284.29, 228.74, 283.88, 232.03, 281.0, 236.15, 276.07, 235.74, 270.72, 232.44, 264.55, 225.04, 259.2, 220.1, 254.27, 218.05, 255.5, 214.76, 258.38, 211.05, 260.02, 207.35, 260.02, 206.53, 257.56, 206.94, 253.44, 208.59, 248.51, 180.62, 247.27, 152.65, 246.45, 148.94, 242.75, 143.6, 242.75, 139.48, 241.93, 137.43, 233.29, 141.13, 231.64, 136.6, 215.19, 135.78, 207.78, 135.37, 188.86, 133.31, 183.93, 134.96, 177.76, 132.08, 174.05, 130.43, 167.06, 125.91, 162.13, 120.97, 150.61, 113.57, 136.21, 106.99, 129.63, 106.99, 125.93, 106.99, 121.4, 113.98, 116.47, 116.04, 115.23, 119.74, 111.12, 119.74, 107.83, 118.5, 100.84, 120.97, 96.72, 123.85, 92.2, 127.97, 90.14, 128.38, 86.03, 126.32, 83.56, 121.8, 77.8, 123.44, 75.33, 127.97, 72.04, 137.01, 69.16, 137.43, 64.23, 130.43, 60.53, 125.5, 58.06, 122.62, 53.94, 121.8, 46.13, 121.8, 43.66, 121.38, 37.08, 119.33, 31.73, 115.63, 26.8, 105.75, 23.51, 92.59, 24.74, 58.86, 44.9, 44.05, 59.29, 39.94, 71.63, 45.7, 79.86, 58.45, 83.97, 61.33, 88.91, 64.21, 96.31, 64.62, 103.72, 65.85, 109.06, 62.56, 114.41, 60.92, 118.11, 59.27, 121.4, 57.63, 123.46, 53.1, 127.16, 41.17, 139.09, 32.54, 150.61, 30.48, 154.72, 28.01, 159.25]], "area": 41547.480350000005, "iscrowd": 0, "image_id": 579533, "bbox": [21.84, 23.51, 214.31, 433.49], "category_id": 1, "id": 1229255}, {"segmentation": [[556.53, 234.18, 554.16, 236.08, 563.17, 241.29, 577.86, 248.41, 594.46, 259.78, 602.51, 266.9, 608.68, 285.39, 609.15, 311.46, 604.89, 336.11, 604.41, 345.12, 603.46, 375.46, 597.3, 386.37, 594.46, 391.11, 596.35, 402.01, 596.35, 426.66, 585.45, 448.0, 499.16, 448.0, 498.22, 433.77, 498.69, 415.76, 514.33, 419.55, 517.65, 420.03, 519.08, 412.91, 499.16, 404.38, 502.48, 399.17, 498.69, 399.17, 486.84, 393.0, 474.51, 390.63, 465.03, 386.84, 455.07, 382.1, 453.18, 378.78, 452.23, 371.19, 458.39, 368.35, 471.67, 369.77, 471.19, 359.34, 472.62, 353.65, 477.36, 353.18, 475.93, 337.53, 475.93, 335.64, 468.82, 329.0, 471.19, 321.42, 480.2, 310.51, 479.25, 292.02, 481.62, 277.8, 486.84, 267.84, 492.05, 259.78, 499.64, 255.52, 509.12, 251.25, 516.71, 252.2, 511.96, 241.29, 507.22, 228.97, 507.22, 220.44, 506.28, 208.58, 510.54, 209.06, 511.49, 210.48, 514.33, 188.2, 527.61, 178.24, 538.51, 175.87, 551.79, 177.77, 557.95, 180.61, 562.22, 186.3, 564.11, 191.99, 561.74, 199.58, 561.27, 211.9, 559.85, 218.54, 563.64, 218.54, 559.37, 226.6, 554.63, 235.61], [437.06, 394.9, 411.46, 413.39, 419.52, 418.6, 436.58, 434.25, 433.74, 448.0, 444.17, 448.0, 446.54, 442.78, 455.07, 443.26, 469.77, 428.56, 474.04, 428.09, 477.83, 417.66, 477.83, 415.76, 470.72, 413.86, 462.66, 418.13, 449.38, 410.54, 449.38, 405.33, 451.28, 398.22, 438.01, 394.9]], "area": 28571.877699999994, "iscrowd": 0, "image_id": 462123, "bbox": [411.46, 175.87, 197.69, 272.13], "category_id": 1, "id": 1229311}, {"segmentation": [[124.58, 313.41, 124.23, 300.92, 125.89, 300.16, 128.03, 299.74, 128.03, 300.64, 127.89, 301.68, 129.62, 303.26, 130.24, 306.65, 128.24, 307.34, 128.17, 312.65, 129.68, 313.2, 128.65, 313.76]], "area": 58.88379999999996, "iscrowd": 0, "image_id": 482024, "bbox": [124.23, 299.74, 6.01, 14.02], "category_id": 1, "id": 1229407}, {"segmentation": [[601.09, 328.82, 584.33, 325.68, 569.67, 308.92, 584.33, 231.43, 584.33, 204.2, 561.29, 165.46, 571.77, 147.65, 573.86, 147.65, 575.96, 126.71, 586.43, 120.43, 598.99, 123.57, 605.28, 142.42, 614.7, 185.35, 607.37, 232.48, 600.04, 327.77]], "area": 6230.2031, "iscrowd": 0, "image_id": 559566, "bbox": [561.29, 120.43, 53.41, 208.39], "category_id": 1, "id": 1229571}, {"segmentation": [[54.75, 164.27, 54.52, 157.38, 57.86, 155.83, 59.41, 148.5, 63.85, 147.17, 69.63, 150.28, 70.96, 156.72, 73.18, 158.71, 70.29, 170.49, 70.96, 180.48, 68.74, 178.04, 68.74, 178.04, 69.63, 186.25, 67.41, 186.7, 62.96, 181.15, 61.41, 178.48, 62.96, 173.6, 61.63, 168.26, 57.19, 165.38, 55.63, 164.71]], "area": 410.2714000000001, "iscrowd": 0, "image_id": 347340, "bbox": [54.52, 147.17, 18.66, 39.53], "category_id": 1, "id": 1229966}, {"segmentation": [[356.97, 618.86, 353.74, 630.47, 347.29, 631.11, 345.36, 633.05, 345.36, 633.7, 346.65, 636.28, 354.39, 637.24, 357.93, 637.24, 361.16, 631.11, 364.06, 618.54, 362.13, 614.02, 372.13, 588.22, 373.42, 577.9, 370.83, 578.54, 369.22, 579.19, 365.67, 579.51, 364.38, 580.8, 356.0, 613.38, 355.35, 620.15], [381.8, 631.76, 377.29, 632.4, 371.16, 635.63, 373.09, 635.95, 378.25, 636.92, 384.38, 637.24, 384.7, 637.24, 385.35, 637.24, 385.99, 636.92, 384.7, 634.66], [391.8, 623.05, 393.73, 612.09, 392.44, 601.12, 386.96, 614.02], [395.02, 591.12, 395.99, 588.86, 400.83, 587.57, 404.38, 581.77, 402.77, 574.35, 403.09, 570.8, 403.09, 564.67, 401.48, 560.16, 400.83, 551.77, 397.61, 549.51, 395.67, 547.9, 394.06, 534.03, 388.9, 531.78, 388.25, 526.29, 388.25, 523.39, 387.61, 518.55, 386.32, 514.68, 380.19, 513.39, 376.64, 514.68, 375.35, 518.23, 374.71, 518.87, 373.42, 518.87, 369.87, 518.87, 368.58, 519.2, 366.64, 526.29, 367.61, 526.61, 372.77, 525.32, 374.71, 525.97, 377.93, 528.23, 384.06, 532.42, 384.06, 547.26, 386.96, 573.06, 388.25, 583.7], [359.55, 520.81, 358.26, 520.16, 355.68, 520.81, 352.13, 525.0, 352.45, 531.78, 352.45, 537.58, 352.77, 542.1, 358.58, 544.03, 366.0, 544.35, 365.35, 541.77, 363.42, 538.55, 362.77, 535.97, 359.22, 535.32, 357.61, 535.0, 357.61, 531.13, 357.61, 528.87, 360.84, 526.94, 362.77, 523.07, 362.13, 521.13]], "area": 1864.2543500000027, "iscrowd": 0, "image_id": 119093, "bbox": [345.36, 513.39, 59.02, 123.85], "category_id": 1, "id": 1230625}, {"segmentation": [[37.39, 95.87, 21.25, 118.77, 12.24, 111.26, 8.86, 109.01, 6.61, 104.5, 5.11, 96.25, 11.49, 80.11, 15.24, 79.73, 13.36, 71.1, 23.5, 69.97, 27.63, 74.85, 31.38, 79.36, 38.89, 82.36, 43.77, 88.36]], "area": 1071.39565, "iscrowd": 0, "image_id": 269986, "bbox": [5.11, 69.97, 38.66, 48.8], "category_id": 1, "id": 1232159}, {"segmentation": [[531.63, 174.29, 519.53, 165.02, 507.43, 161.39, 515.09, 156.55, 520.74, 148.08, 516.71, 142.03, 513.88, 127.52, 515.09, 121.07, 524.37, 105.74, 538.88, 105.74, 546.95, 116.23, 547.35, 121.47, 551.38, 128.73, 548.16, 137.6, 542.92, 137.6, 547.76, 148.49, 557.43, 152.12, 540.9, 156.55, 537.27, 159.37], [545.35, 392.99, 529.46, 394.21, 522.13, 394.83, 516.02, 325.15, 525.19, 290.31, 527.02, 266.48, 536.19, 247.53, 547.19, 266.48, 553.91, 301.92, 549.63, 297.65, 544.74, 291.53, 544.74, 340.43, 543.52, 383.82]], "area": 5175.7269, "iscrowd": 0, "image_id": 444214, "bbox": [507.43, 105.74, 50.0, 289.09], "category_id": 1, "id": 1232920}, {"segmentation": [[443.71, 256.33, 460.96, 254.66, 487.11, 246.32, 504.36, 240.75, 523.83, 237.97, 531.62, 212.37, 532.73, 206.25, 529.4, 204.03, 526.61, 202.36, 524.95, 198.46, 526.61, 194.57, 529.4, 192.9, 528.84, 186.22, 528.84, 178.43, 531.62, 169.53, 533.85, 166.19, 537.74, 161.74, 554.43, 157.29, 561.67, 157.29, 566.12, 157.29, 581.14, 170.64, 583.37, 196.8, 583.37, 200.13, 587.82, 202.92, 590.6, 203.47, 593.94, 208.48, 595.61, 212.93, 602.84, 220.16, 606.18, 231.29, 623.99, 273.02, 632.89, 300.84, 639.01, 319.2, 613.97, 314.75, 582.25, 319.2, 569.46, 329.22, 561.67, 337.01, 550.54, 347.58, 536.63, 308.63, 522.72, 305.85, 519.94, 288.6, 521.61, 282.48, 527.17, 276.36, 532.18, 275.81, 533.29, 261.9, 529.4, 260.78, 523.28, 260.78, 522.16, 260.78, 510.48, 264.12, 492.67, 267.46, 491.0, 268.02, 475.43, 270.8, 473.76, 270.8, 463.18, 271.35, 453.17, 271.35, 445.38, 271.35, 443.71, 271.35, 437.03, 270.8, 430.91, 266.35, 419.78, 268.02, 419.78, 262.45, 423.12, 257.44, 428.13, 256.33, 435.92, 256.89, 442.04, 257.44]], "area": 15099.541999999998, "iscrowd": 0, "image_id": 480818, "bbox": [419.78, 157.29, 219.23, 190.29], "category_id": 1, "id": 1232930}, {"segmentation": [[592.66, 238.73, 592.97, 235.59, 595.17, 233.08, 596.42, 231.83, 595.79, 228.69, 597.36, 227.12, 599.87, 227.44, 601.75, 231.2, 605.2, 234.65, 605.51, 239.36, 603.63, 242.18, 606.46, 252.53, 606.77, 256.29, 604.89, 256.6, 603.63, 251.9, 600.81, 248.76, 598.62, 251.9, 597.05, 256.92, 595.79, 256.6, 596.42, 251.27, 595.48, 249.39, 596.11, 245.31, 595.79, 244.69, 594.85, 239.67]], "area": 231.70030000000088, "iscrowd": 0, "image_id": 274881, "bbox": [592.66, 227.12, 14.11, 29.8], "category_id": 1, "id": 1232949}, {"segmentation": [[157.92, 370.18, 157.92, 369.02, 157.92, 367.66, 159.08, 366.3, 161.17, 367.14, 160.86, 368.92, 160.65, 369.55, 162.54, 370.18, 162.64, 373.95, 156.14, 377.72, 156.35, 375.52, 154.88, 376.26, 155.2, 372.48, 155.62, 371.01]], "area": 51.331500000000005, "iscrowd": 0, "image_id": 307462, "bbox": [154.88, 366.3, 7.76, 11.42], "category_id": 1, "id": 1233585}, {"segmentation": [[234.68, 255.78, 272.76, 241.37, 289.23, 235.19, 309.81, 224.9, 322.16, 216.66, 330.4, 192.99, 337.6, 178.58, 346.87, 161.08, 353.04, 155.94, 372.6, 143.58, 373.63, 138.44, 359.22, 133.29, 357.16, 121.97, 357.16, 105.5, 357.16, 103.44, 354.07, 101.38, 350.98, 99.33, 358.19, 77.71, 344.81, 77.71, 337.6, 65.36, 356.13, 57.13, 364.36, 47.86, 358.19, 28.31, 364.36, 22.13, 426.12, 39.63, 439.5, 44.77, 459.06, 61.24, 457.0, 66.39, 444.65, 71.53, 439.5, 79.77, 439.5, 79.77, 439.5, 84.92, 440.53, 98.3, 436.41, 107.56, 430.24, 117.85, 430.24, 119.91, 427.15, 123.0, 458.03, 161.08, 474.5, 180.64, 475.53, 199.17, 479.64, 250.63, 457.0, 334.0, 453.91, 349.44, 464.2, 413.26, 437.44, 435.9, 439.5, 448.25, 443.62, 454.43, 309.81, 457.0, 319.08, 392.67, 329.37, 331.94, 333.49, 279.45, 333.49, 267.1, 331.43, 257.83, 311.87, 266.07, 284.08, 276.36, 274.82, 282.54, 253.2, 288.71, 243.94, 290.77, 234.68, 285.63, 234.68, 281.51, 239.82, 274.3, 233.65, 265.04, 221.3, 256.81, 205.86, 262.98, 205.86, 256.81, 205.86, 251.66, 211.0, 246.51, 221.3, 245.48, 229.53, 247.54, 236.73, 252.69], [189.39, 275.33, 196.59, 287.68, 204.83, 292.83, 214.09, 295.92, 222.32, 292.83, 224.38, 283.57, 220.27, 277.39, 217.18, 276.36, 209.97, 272.24, 202.77, 276.36, 196.59, 276.36, 192.48, 272.24]], "area": 56295.6542, "iscrowd": 0, "image_id": 579533, "bbox": [189.39, 22.13, 290.25, 434.87], "category_id": 1, "id": 1233912}, {"segmentation": [[331.56, 174.26, 333.08, 170.52, 333.16, 165.19, 330.94, 162.96, 327.83, 163.67, 324.71, 166.96, 323.82, 169.1, 322.85, 170.43, 322.05, 174.53]], "area": 93.81595, "iscrowd": 0, "image_id": 548253, "bbox": [322.05, 162.96, 11.11, 11.57], "category_id": 1, "id": 1234116}, {"segmentation": [[198.98, 248.21, 202.49, 244.85, 202.49, 242.93, 204.57, 240.54, 206.01, 239.9, 209.21, 240.85, 209.84, 243.09, 209.84, 244.85, 209.21, 246.13, 206.01, 248.85, 205.37, 252.2, 207.77, 251.56, 210.0, 249.81, 211.28, 252.2, 211.28, 254.28, 209.84, 255.88, 205.85, 258.12, 206.33, 271.39, 204.25, 281.62, 206.17, 282.89, 207.77, 284.65, 206.97, 286.73, 201.85, 287.21, 200.89, 286.89, 198.98, 279.06, 199.93, 270.43, 198.5, 266.91, 196.74, 257.0, 198.34, 248.69]], "area": 365.84115000000014, "iscrowd": 0, "image_id": 245441, "bbox": [196.74, 239.9, 14.54, 47.31], "category_id": 1, "id": 1234173}, {"segmentation": [[589.33, 342.66, 591.88, 335.01, 595.45, 323.27, 596.47, 300.31, 594.94, 277.86, 598.51, 274.8, 601.57, 273.78, 605.65, 271.23, 605.65, 263.57, 611.78, 261.02, 618.41, 267.15, 614.33, 274.8, 620.96, 277.86, 619.43, 295.72, 622.49, 312.56, 619.43, 320.21, 619.94, 331.44, 621.98, 337.56, 619.94, 347.76, 621.98, 351.33, 614.33, 350.31, 612.8, 346.23, 611.78, 319.19, 604.63, 321.23, 601.57, 331.95, 595.45, 343.17, 593.92, 347.76, 595.96, 352.86, 593.41, 354.91, 589.84, 353.89, 589.84, 350.31]], "area": 1744.9652999999998, "iscrowd": 0, "image_id": 328487, "bbox": [589.33, 261.02, 33.16, 93.89], "category_id": 1, "id": 1234628}, {"segmentation": [[308.87, 198.63, 307.87, 197.47, 306.54, 198.13, 305.71, 197.14, 306.05, 195.97, 308.53, 194.81, 309.36, 193.48, 309.86, 191.33, 311.02, 191.99, 311.19, 193.32, 311.36, 194.81, 311.69, 195.31, 313.35, 195.48, 314.01, 197.47, 313.85, 197.8, 311.52, 197.3, 311.19, 200.62]], "area": 30.655199999999997, "iscrowd": 0, "image_id": 413895, "bbox": [305.71, 191.33, 8.3, 9.29], "category_id": 1, "id": 1234678}, {"segmentation": [[53.32, 209.89, 55.28, 209.4, 56.25, 207.45, 56.99, 198.16, 56.01, 192.78, 57.48, 192.3, 56.25, 185.45, 56.25, 179.83, 55.77, 173.24, 53.57, 167.13, 52.1, 164.44, 48.92, 163.46, 48.43, 158.57, 46.97, 156.13, 44.04, 155.89, 43.06, 157.35, 41.84, 164.44, 42.08, 165.42, 39.64, 166.39, 39.15, 174.46, 37.44, 180.81, 38.42, 185.21, 41.84, 178.61, 42.08, 186.43, 41.59, 195.72, 41.84, 205.25, 41.59, 209.16, 46.48, 211.6, 46.72, 207.93, 46.48, 197.92, 47.7, 190.34, 48.43, 192.3, 51.61, 194.25, 52.59, 200.11, 53.32, 206.47, 49.17, 208.67, 51.37, 210.62]], "area": 653.0294999999999, "iscrowd": 0, "image_id": 483948, "bbox": [37.44, 155.89, 20.04, 55.71], "category_id": 1, "id": 1234737}, {"segmentation": [[85.85, 275.69, 91.69, 289.2, 89.54, 300.87, 88.62, 305.47, 92.61, 322.97, 90.77, 326.05, 78.48, 326.05, 77.87, 323.28, 80.63, 321.75, 78.79, 309.16, 80.63, 304.86, 80.63, 298.72, 77.26, 291.65, 77.26, 287.36, 71.42, 290.73, 65.89, 290.73, 63.74, 286.43, 66.2, 285.51, 71.11, 286.13, 75.11, 282.14, 76.33, 279.68, 73.57, 276.61, 73.88, 273.23, 75.11, 271.7, 77.56, 270.47, 80.33, 270.16, 81.86, 271.7, 84.93, 275.07]], "area": 689.8163500000005, "iscrowd": 0, "image_id": 575792, "bbox": [63.74, 270.16, 28.87, 55.89], "category_id": 1, "id": 1235263}, {"segmentation": [[298.77, 238.0, 297.57, 229.55, 293.94, 222.3, 289.92, 215.86, 289.11, 206.6, 289.52, 201.77, 292.33, 194.93, 295.15, 190.5, 299.18, 186.88, 307.63, 186.08, 313.26, 186.08, 315.28, 185.27, 326.14, 192.52, 331.38, 202.58, 333.79, 208.21, 335.8, 211.84, 339.02, 214.25, 340.63, 215.06, 343.05, 215.86, 344.26, 221.5, 337.82, 227.53, 324.94, 251.68, 322.52, 264.56, 318.9, 280.26, 317.29, 291.13, 317.29, 297.57, 316.89, 304.01, 316.89, 314.47, 315.68, 349.89, 315.68, 360.36, 316.08, 370.82, 309.64, 351.5, 306.82, 339.43, 304.81, 319.3, 304.41, 311.25, 299.58, 309.24, 297.97, 306.83, 301.19, 294.75, 304.81, 288.31, 308.03, 283.48, 308.84, 277.85, 308.43, 269.8, 304.01, 262.15, 300.79, 256.11, 299.18, 248.87, 302.4, 242.83, 303.6, 241.22, 303.6, 241.22, 303.6, 240.13, 301.19, 240.54]], "area": 3882.241499999999, "iscrowd": 0, "image_id": 333356, "bbox": [289.11, 185.27, 55.15, 185.55], "category_id": 1, "id": 1235694}, {"segmentation": [[192.61, 483.07, 218.82, 504.65, 235.77, 518.53, 242.71, 537.02, 248.88, 557.83, 254.27, 582.49, 268.14, 606.39, 273.54, 631.82, 276.62, 640.0, 251.96, 640.0, 203.4, 639.53, 139.44, 639.53, 44.64, 635.67, 0.0, 638.76, 2.25, 555.52, 1.48, 453.79, 0.71, 392.13, 0.71, 267.27, 1.48, 234.9, 1.48, 158.6, 15.35, 166.31, 33.08, 184.81, 50.03, 209.47, 75.47, 244.15, 84.72, 255.71, 78.55, 271.13, 87.8, 291.17, 104.75, 302.73, 124.79, 315.06, 143.29, 325.08, 155.62, 321.22, 158.7, 333.55, 161.02, 354.36, 165.64, 375.17, 163.33, 388.28, 157.93, 402.15, 156.39, 410.63, 153.31, 414.48, 162.56, 443.0, 174.89, 463.03, 187.22, 477.68, 196.47, 485.39]], "area": 75136.01259999997, "iscrowd": 0, "image_id": 422193, "bbox": [0.0, 158.6, 276.62, 481.4], "category_id": 1, "id": 1235787}, {"segmentation": [[135.01, 57.13, 135.01, 55.1, 135.91, 52.74, 136.92, 51.72, 137.15, 48.68, 138.05, 46.54, 140.87, 45.53, 141.32, 48.8, 141.77, 51.27, 141.88, 51.84, 142.89, 51.95, 144.47, 54.54, 144.58, 56.57, 144.36, 57.92, 144.58, 59.72, 144.58, 62.87, 144.13, 64.68, 143.91, 66.81, 142.56, 69.18, 139.4, 71.32, 137.04, 70.76, 136.47, 68.84, 136.47, 65.8, 137.04, 61.86, 137.04, 60.06, 136.02, 57.92]], "area": 168.36960000000013, "iscrowd": 0, "image_id": 269986, "bbox": [135.01, 45.53, 9.57, 25.79], "category_id": 1, "id": 1236141}, {"segmentation": [[245.0, 277.17, 245.0, 271.16, 245.0, 267.66, 245.67, 263.99, 246.34, 260.48, 246.34, 257.31, 243.17, 254.81, 243.0, 252.31, 245.34, 248.64, 249.01, 245.64, 257.02, 244.8, 261.19, 246.3, 262.69, 250.81, 262.19, 254.31, 258.68, 256.48, 257.52, 260.48, 257.18, 264.15, 257.18, 268.49, 257.18, 270.66, 262.69, 278.0, 257.68, 279.0, 256.35, 279.5, 250.84, 286.01, 251.01, 284.17, 250.51, 282.0]], "area": 505.35185000000024, "iscrowd": 0, "image_id": 453734, "bbox": [243.0, 244.8, 19.69, 41.21], "category_id": 1, "id": 1236424}, {"segmentation": [[117.26, 170.73, 121.32, 165.51, 121.03, 157.49, 118.71, 151.88, 117.84, 150.24, 113.58, 150.05, 111.26, 151.59, 112.33, 156.81, 111.46, 159.62, 106.43, 160.0, 105.56, 161.26]], "area": 181.81674999999967, "iscrowd": 0, "image_id": 537924, "bbox": [105.56, 150.05, 15.76, 20.68], "category_id": 1, "id": 1236741}, {"segmentation": [[244.18, 151.35, 255.28, 148.32, 261.33, 158.41, 263.35, 179.6, 258.31, 182.63, 253.26, 187.68, 249.23, 191.71, 254.27, 189.69, 266.38, 195.75, 272.43, 202.81, 279.5, 218.95, 275.46, 229.05, 277.48, 242.16, 273.44, 250.23, 273.44, 260.32, 268.4, 266.38, 293.62, 282.52, 301.69, 294.63, 304.72, 309.77, 310.77, 327.93, 311.78, 353.15, 311.78, 361.23, 310.77, 365.26, 320.86, 365.26, 323.89, 372.32, 327.93, 379.39, 334.99, 385.44, 344.07, 385.44, 332.97, 391.5, 325.91, 391.5, 316.83, 385.44, 314.81, 380.4, 310.77, 375.35, 305.73, 375.35, 302.7, 377.37, 295.64, 376.36, 293.62, 375.35, 295.64, 365.26, 298.67, 359.21, 299.68, 355.17, 288.58, 328.94, 283.53, 318.85, 273.44, 308.76, 266.38, 302.7, 255.28, 296.65, 244.18, 289.59, 236.11, 294.63, 231.06, 318.85, 230.05, 333.98, 228.04, 351.14, 228.04, 366.27, 228.04, 380.4, 229.05, 394.52, 229.05, 397.55, 215.93, 401.59, 219.96, 416.72, 225.01, 425.8, 216.94, 434.88, 210.88, 428.83, 206.85, 424.79, 204.83, 416.72, 205.84, 410.67, 206.85, 399.57, 207.86, 390.49, 207.86, 376.36, 204.83, 366.27, 202.81, 355.17, 202.81, 340.04, 202.81, 327.93, 200.79, 313.8, 188.68, 298.67, 187.68, 286.56, 191.71, 277.48, 185.66, 271.42, 189.69, 262.34, 188.68, 258.31, 183.64, 251.24, 175.57, 239.14, 175.57, 227.03, 184.65, 211.89, 192.72, 199.78, 198.77, 187.68, 208.86, 183.64, 222.99, 180.61, 231.06, 177.59, 230.05, 174.56, 233.08, 164.47, 236.11, 158.41, 241.15, 153.37, 248.22, 152.36]], "area": 16446.90635, "iscrowd": 0, "image_id": 462123, "bbox": [175.57, 148.32, 168.5, 286.56], "category_id": 1, "id": 1237209}, {"segmentation": [[137.95, 389.66, 126.28, 390.37, 123.09, 382.23, 124.16, 376.22, 120.97, 367.03, 115.31, 326.0, 117.08, 306.91, 111.78, 306.55, 106.83, 299.83, 105.77, 293.47, 107.53, 279.32, 110.56, 273.3, 118.49, 268.17, 123.39, 267.0, 123.39, 261.87, 125.26, 256.74, 128.76, 253.0, 134.82, 252.77, 138.09, 256.27, 138.09, 261.63, 136.92, 267.0, 138.32, 268.63, 146.26, 271.67, 148.59, 284.73, 149.99, 288.93, 150.69, 311.56, 152.32, 331.86, 151.39, 357.53, 152.32, 361.96, 148.36, 381.09, 148.82, 389.02, 141.12, 389.26, 139.26, 381.09, 138.56, 368.03, 138.79, 350.99, 135.29, 335.13, 132.02, 328.13, 132.26, 346.09, 133.42, 362.89, 136.46, 382.96]], "area": 4125.611249999999, "iscrowd": 0, "image_id": 450281, "bbox": [105.77, 252.77, 46.55, 137.6], "category_id": 1, "id": 1237380}, {"segmentation": [[65.47, 117.84, 68.75, 97.67, 63.12, 84.07, 47.18, 73.29, 50.46, 56.87, 57.03, 41.4, 56.09, 29.68, 43.43, 23.58, 27.95, 28.74, 26.54, 47.03, 25.61, 60.16, 26.07, 68.6, 14.35, 75.16, 12.01, 203.16, 22.32, 178.78, 38.27, 155.33, 53.27, 147.36, 54.68, 123.91, 63.12, 121.1]], "area": 5516.28885, "iscrowd": 0, "image_id": 216851, "bbox": [12.01, 23.58, 56.74, 179.58], "category_id": 1, "id": 1237808}, {"segmentation": [[422.93, 153.99, 410.55, 156.47, 410.91, 152.58, 412.32, 151.87, 407.72, 149.75, 407.37, 146.57, 413.03, 145.51, 413.38, 141.26, 412.32, 133.13, 412.67, 126.06, 412.67, 116.51, 413.74, 110.49, 414.44, 103.77, 414.44, 98.47, 413.03, 92.1, 413.74, 88.21, 423.99, 88.57, 424.35, 94.93, 427.88, 102.01, 428.94, 110.14, 429.3, 121.46, 431.42, 131.36, 425.05, 133.84, 422.58, 129.95, 422.58, 137.37, 425.41, 151.87]], "area": 925.9574000000005, "iscrowd": 0, "image_id": 20251, "bbox": [407.37, 88.21, 24.05, 68.26], "category_id": 1, "id": 1238193}, {"segmentation": [[224.03, 253.52, 229.63, 250.78, 228.83, 244.82, 230.78, 241.85, 237.42, 242.08, 239.48, 245.85, 239.82, 251.92, 239.14, 253.52, 233.87, 251.69, 229.52, 251.92, 227.69, 253.52, 225.17, 256.84, 223.68, 256.96]], "area": 115.26824999999972, "iscrowd": 0, "image_id": 453734, "bbox": [223.68, 241.85, 16.14, 15.11], "category_id": 1, "id": 1238334}, {"segmentation": [[258.69, 307.3, 253.35, 298.84, 250.23, 294.84, 251.35, 293.95, 262.7, 293.06, 265.82, 283.04, 265.59, 275.25, 265.82, 269.02, 266.71, 266.34, 267.15, 263.01, 267.6, 253.66, 262.92, 246.76, 254.46, 239.41, 242.67, 238.52, 226.86, 242.3, 218.18, 253.43, 214.62, 262.12, 215.95, 265.23, 217.96, 270.35, 221.3, 281.48, 224.64, 286.82, 221.52, 290.83, 215.51, 299.96, 211.95, 306.19, 201.93, 317.99, 190.8, 330.23, 188.35, 333.34, 195.7, 352.71, 198.37, 363.84, 199.26, 368.96, 208.39, 373.86, 208.61, 378.31, 211.95, 380.53, 214.84, 384.54, 215.73, 388.77, 205.49, 415.93, 203.27, 430.17, 205.94, 430.84, 204.82, 433.73, 197.26, 437.52, 203.71, 439.08, 207.72, 438.63, 202.38, 448.42, 205.27, 451.32, 209.72, 450.87, 212.84, 448.2, 212.84, 457.77, 209.72, 461.34, 207.5, 471.8, 203.27, 480.0, 237.55, 480.0, 242.0, 475.36, 242.44, 470.68, 241.11, 468.46, 242.67, 465.34, 245.34, 456.22, 245.11, 450.87, 246.45, 452.21, 246.67, 456.66, 246.89, 460.89, 248.68, 464.45, 248.23, 469.79, 250.46, 474.25, 249.79, 480.0, 282.73, 478.7, 280.95, 467.79, 280.95, 459.55, 282.29, 457.11, 289.63, 460.22, 295.64, 441.97, 294.97, 431.06, 291.86, 409.69, 286.96, 392.55, 282.95, 384.1, 275.83, 376.97, 272.72, 370.52, 273.61, 359.17, 274.94, 353.38, 286.07, 356.05, 287.41, 356.49, 290.3, 352.49, 298.54, 350.93, 302.54, 350.04, 312.78, 346.48, 315.01, 342.92, 314.34, 338.69, 312.11, 336.68, 307.44, 336.24, 304.99, 334.46, 303.66, 331.12, 302.32, 330.23, 289.85, 336.46, 281.17, 337.13, 276.28, 336.24, 272.72, 334.68, 272.94, 323.33, 267.6, 315.54]], "area": 16893.743449999998, "iscrowd": 0, "image_id": 24730, "bbox": [188.35, 238.52, 126.66, 241.48], "category_id": 1, "id": 1238737}, {"segmentation": [[297.52, 209.3, 294.66, 208.73, 293.06, 208.84, 290.2, 210.44, 287.45, 212.05, 285.39, 213.65, 285.96, 216.62, 289.62, 218.11, 290.2, 220.17, 292.03, 222.57, 294.66, 222.8, 293.97, 225.66, 292.83, 229.32, 292.37, 231.96, 292.26, 234.7, 292.37, 235.27, 293.63, 237.1, 295.23, 237.79, 291.45, 237.1, 289.74, 237.45, 289.51, 238.94, 289.51, 241.11, 290.42, 241.91, 293.63, 242.25, 293.97, 242.71, 292.71, 250.15, 292.6, 253.7, 291.91, 254.38, 288.94, 258.5, 288.94, 258.73, 287.11, 268.34, 287.11, 270.97, 287.79, 273.15, 289.28, 275.55, 290.54, 281.73, 291.8, 287.68, 291.57, 287.79, 290.54, 290.31, 288.59, 292.26, 285.5, 294.09, 283.22, 295.69, 283.56, 297.86, 286.88, 298.44, 291.68, 297.98, 294.09, 298.89, 296.26, 299.01, 290.54, 301.07, 288.25, 302.44, 291.91, 304.96, 298.09, 305.42, 301.07, 305.42, 306.44, 303.01, 305.41, 300.72, 304.16, 298.09, 303.35, 294.55, 303.01, 287.79, 303.01, 282.3, 302.1, 278.07, 300.61, 274.98, 300.72, 272.46, 303.58, 262.96, 305.41, 258.5, 307.93, 254.84, 308.16, 251.52, 306.79, 247.75, 308.85, 245.11, 307.59, 243.17, 305.3, 237.56, 308.96, 233.79, 310.56, 231.96, 307.24, 228.18, 304.96, 224.75, 303.35, 222.11, 303.7, 217.08, 301.98, 214.91, 299.92, 212.62, 298.89, 211.02]], "area": 1372.83575, "iscrowd": 0, "image_id": 23015, "bbox": [283.22, 208.73, 27.34, 96.69], "category_id": 1, "id": 1239034}, {"segmentation": [[545.87, 164.86, 546.58, 162.51, 547.52, 161.57, 547.83, 159.93, 549.4, 158.91, 550.34, 160.24, 551.04, 161.57, 551.51, 162.28, 552.22, 163.69, 552.22, 164.86, 550.81, 165.1]], "area": 24.50904999999997, "iscrowd": 0, "image_id": 576322, "bbox": [545.87, 158.91, 6.35, 6.19], "category_id": 1, "id": 1239363}, {"segmentation": [[245.85, 388.61, 230.75, 390.77, 223.2, 386.46, 219.97, 375.67, 219.97, 371.36, 221.05, 367.05, 216.73, 362.73, 221.05, 348.72, 226.44, 346.56, 229.67, 345.48, 230.75, 339.01, 235.07, 332.54, 241.54, 332.54, 244.77, 337.93, 244.77, 343.33, 241.54, 346.56, 240.46, 349.79, 242.61, 354.11, 245.85, 361.66, 246.93, 364.89, 246.93, 371.36, 246.93, 379.99, 246.93, 387.53, 245.85, 389.69], [256.63, 374.6, 259.87, 377.83, 263.1, 384.3, 263.1, 390.77, 263.1, 392.93, 258.79, 391.85, 254.47, 388.61, 255.55, 378.91, 255.55, 374.6]], "area": 1353.6263499999995, "iscrowd": 0, "image_id": 111831, "bbox": [216.73, 332.54, 46.37, 60.39], "category_id": 1, "id": 1239381}, {"segmentation": [[608.01, 121.78, 587.07, 115.72, 581.55, 109.11, 580.18, 86.51, 579.9, 76.04, 577.15, 71.36, 582.66, 64.19, 596.43, 64.19, 600.02, 73.01, 597.81, 85.69, 600.29, 92.02, 605.8, 95.88, 613.24, 91.47, 618.48, 90.09, 618.75, 108.56, 616.27, 121.23]], "area": 1489.4395000000002, "iscrowd": 0, "image_id": 577869, "bbox": [577.15, 64.19, 41.6, 57.59], "category_id": 1, "id": 1239653}, {"segmentation": [[439.68, 123.41, 468.3, 147.39, 471.39, 170.59, 496.14, 198.43, 495.37, 248.7, 494.59, 313.66, 480.67, 385.59, 480.67, 397.19, 476.8, 425.03, 483.77, 476.84, 437.36, 477.62, 442.0, 347.69, 440.46, 244.06, 439.68, 213.9], [430.38, 428.22, 410.97, 366.74, 406.65, 332.22, 399.1, 305.26, 402.34, 283.69, 381.84, 275.06, 381.84, 261.03, 410.97, 263.19, 407.73, 243.78, 419.6, 231.91, 427.15, 231.91], [421.75, 190.92, 406.65, 166.11, 405.57, 151.01, 405.57, 135.91, 419.6, 125.12]], "area": 20287.09685, "iscrowd": 0, "image_id": 206427, "bbox": [381.84, 123.41, 114.3, 354.21], "category_id": 1, "id": 1239812}, {"segmentation": [[210.2, 272.53, 208.07, 275.3, 208.07, 280.84, 205.94, 284.67, 205.94, 289.57, 201.89, 287.87, 199.97, 285.52, 199.33, 269.33, 197.41, 275.08, 195.28, 278.49, 195.28, 270.61, 195.71, 266.78, 198.48, 262.73, 201.25, 261.45, 201.04, 259.11, 201.89, 257.19, 205.72, 256.55, 207.0, 261.66, 208.92, 262.94, 212.54, 268.69, 211.05, 272.95]], "area": 309.56494999999967, "iscrowd": 0, "image_id": 165773, "bbox": [195.28, 256.55, 17.26, 33.02], "category_id": 1, "id": 1240031}, {"segmentation": [[266.92, 164.57, 272.34, 166.92, 272.49, 171.17, 276.59, 173.22, 274.83, 183.77, 264.13, 184.35, 264.87, 172.48, 266.48, 165.45]], "area": 177.23389999999975, "iscrowd": 0, "image_id": 548253, "bbox": [264.13, 164.57, 12.46, 19.78], "category_id": 1, "id": 1240044}, {"segmentation": [[342.89, 316.37, 341.82, 306.66, 341.82, 298.04, 340.74, 289.41, 337.5, 281.86, 332.11, 270.0, 333.19, 260.3, 336.42, 258.14, 343.97, 254.91, 345.05, 253.83, 353.68, 251.67, 353.68, 251.67, 357.99, 243.04, 360.15, 240.89, 362.3, 240.89, 367.69, 241.97, 369.85, 252.75, 369.85, 254.91, 373.09, 260.3, 374.16, 267.85, 376.32, 273.24, 376.32, 279.71, 373.09, 282.94, 370.93, 285.1, 370.93, 285.1, 366.62, 292.65, 362.3, 302.35, 362.3, 307.74, 362.3, 310.98, 362.3, 315.29, 362.3, 317.45, 350.44, 318.52, 353.68, 302.35, 352.6, 296.96, 351.52, 292.65, 351.52, 303.43, 349.36, 312.06, 348.29, 314.21, 347.21, 318.52, 342.89, 318.52, 340.74, 316.37, 340.74, 307.74, 340.74, 303.43]], "area": 2096.6744999999996, "iscrowd": 0, "image_id": 20251, "bbox": [332.11, 240.89, 44.21, 77.63], "category_id": 1, "id": 1240056}, {"segmentation": [[332.61, 146.49, 335.25, 117.52, 336.56, 91.84, 343.15, 76.7, 346.44, 64.19, 355.0, 55.63, 362.24, 55.63, 364.87, 62.22, 362.9, 67.48, 372.12, 74.07, 364.87, 78.02, 351.71, 76.7, 347.1, 79.33, 341.83, 109.62, 339.85, 146.6, 335.25, 149.89]], "area": 885.6407500000003, "iscrowd": 0, "image_id": 289693, "bbox": [332.61, 55.63, 39.51, 94.26], "category_id": 1, "id": 1240101}, {"segmentation": [[557.41, 279.07, 555.92, 276.29, 555.7, 275.01, 556.13, 268.61, 552.5, 265.62, 546.31, 267.11, 544.81, 272.24, 546.52, 275.65, 543.11, 278.64, 543.32, 284.62, 544.17, 307.04, 545.88, 310.88, 551.01, 313.87, 551.65, 309.39, 551.65, 302.56, 554.85, 299.14, 554.85, 293.38, 553.14, 281.63, 554.85, 281.21]], "area": 453.2537000000001, "iscrowd": 0, "image_id": 328487, "bbox": [543.11, 265.62, 14.3, 48.25], "category_id": 1, "id": 1240216}, {"segmentation": [[77.36, 266.43, 77.63, 264.51, 78.16, 264.03, 78.53, 263.66, 78.37, 263.29, 78.21, 262.43, 78.43, 261.58, 78.91, 260.83, 79.65, 260.67, 80.56, 260.78, 81.15, 260.99, 81.31, 261.58, 81.25, 263.02, 80.99, 263.29, 80.99, 263.55, 82.53, 264.14, 82.8, 264.67, 82.32, 266.59, 82.48, 268.03, 82.77, 269.04, 81.2, 270.17, 79.39, 270.28, 78.15, 270.96, 78.38, 271.75, 77.59, 270.4, 76.46, 267.92, 76.58, 267.24, 76.91, 266.68]], "area": 42.88240000000002, "iscrowd": 0, "image_id": 548253, "bbox": [76.46, 260.67, 6.34, 11.08], "category_id": 1, "id": 1240220}, {"segmentation": [[393.05, 161.62, 396.73, 163.97, 396.23, 152.09, 398.4, 150.42, 399.58, 140.88, 402.59, 135.53, 399.58, 130.01, 399.58, 124.99, 402.92, 123.82, 401.92, 122.14, 399.24, 122.98, 395.23, 121.64, 392.05, 123.82, 392.72, 128.0, 392.22, 131.35, 392.72, 134.02, 388.7, 139.54, 387.7, 146.57, 393.05, 150.42, 392.88, 160.79]], "area": 308.2020499999994, "iscrowd": 0, "image_id": 20251, "bbox": [387.7, 121.64, 15.22, 42.33], "category_id": 1, "id": 1240349}, {"segmentation": [[22.07, 157.52, 25.71, 158.98, 26.62, 167.36, 31.91, 170.46, 33.91, 179.39, 40.29, 184.67, 43.21, 189.23, 31.91, 179.93, 29.54, 176.65, 29.54, 193.05, 33.18, 200.89, 28.26, 205.99, 25.53, 221.12, 32.82, 223.67, 19.52, 220.39, 17.51, 212.55, 17.69, 200.89, 16.97, 187.4, 17.69, 183.94, 29.72, 193.78, 21.89, 185.58, 14.23, 176.47, 12.05, 173.37, 13.87, 167.72, 20.43, 166.45, 17.69, 161.89, 21.34, 157.52, 24.25, 157.34]], "area": 762.54785, "iscrowd": 0, "image_id": 483948, "bbox": [12.05, 157.34, 31.16, 66.33], "category_id": 1, "id": 1240584}, {"segmentation": [[544.3, 400.86, 544.47, 394.46, 544.47, 391.52, 545.51, 388.58, 547.07, 386.16, 545.17, 380.98, 545.17, 375.1, 543.44, 372.68, 540.33, 370.95, 536.7, 372.51, 535.49, 378.91, 534.45, 381.5, 534.79, 385.99, 535.66, 387.72, 534.1, 394.12]], "area": 257.79179999999985, "iscrowd": 0, "image_id": 567318, "bbox": [534.1, 370.95, 12.97, 29.91], "category_id": 1, "id": 1240954}, {"segmentation": [[325.32, 298.67, 339.19, 292.55, 340.8, 270.29, 340.8, 257.07, 346.28, 254.16, 349.83, 245.78, 344.35, 239.33, 339.51, 220.3, 331.77, 221.27, 324.67, 231.91, 318.22, 254.16, 321.12, 267.39, 322.74, 272.87, 318.87, 294.16]], "area": 1523.1457499999995, "iscrowd": 0, "image_id": 20367, "bbox": [318.22, 220.3, 31.61, 78.37], "category_id": 1, "id": 1241104}, {"segmentation": [[451.86, 326.57, 469.55, 324.73, 469.38, 323.73, 458.2, 324.56, 458.03, 321.89, 456.2, 323.9, 455.36, 323.23, 455.19, 320.39, 452.19, 314.05, 451.86, 312.38, 452.69, 306.54, 453.36, 301.2, 452.52, 298.36, 452.02, 294.86, 450.35, 293.19, 450.02, 293.35, 448.02, 291.18, 447.02, 290.45, 446.89, 288.47, 445.65, 287.94, 444.68, 287.5, 443.93, 288.29, 443.36, 288.47, 443.27, 291.33, 444.33, 291.82, 444.55, 292.44, 444.37, 295.17, 444.24, 298.13, 443.27, 298.35, 442.06, 301.01, 439.02, 301.92, 438.31, 321.98, 438.82, 322.18, 439.93, 304.66, 442.47, 302.53, 443.68, 303.54, 446.11, 302.93, 446.11, 306.07, 445.51, 310.53, 445.3, 313.77, 444.59, 314.69, 445.1, 315.9, 445.0, 321.37, 445.0, 322.89, 441.76, 325.73, 440.44, 326.44, 440.44, 327.15, 452.4, 326.44], [435.88, 327.15, 430.21, 327.25, 430.51, 328.26, 436.08, 328.06, 435.98, 327.15]], "area": 361.6222999999999, "iscrowd": 0, "image_id": 45124, "bbox": [430.21, 287.5, 39.34, 40.76], "category_id": 1, "id": 1241282}, {"segmentation": [[131.98, 371.24, 132.52, 358.98, 133.34, 346.72, 131.98, 341.27, 131.98, 337.18, 131.7, 333.91, 131.43, 330.64, 132.79, 327.37, 133.07, 325.19, 133.88, 322.74, 134.97, 321.38, 135.79, 319.47, 137.7, 318.38, 141.51, 318.38, 143.69, 318.38, 146.42, 318.93, 146.15, 321.11, 144.51, 323.29, 142.88, 325.74, 140.15, 330.1, 140.42, 332.28, 141.24, 335.55, 143.15, 338.0, 145.06, 341.0, 145.33, 342.36, 145.6, 343.18, 145.06, 346.18, 143.69, 356.53, 142.6, 370.15, 140.7, 371.79, 139.33, 354.62, 137.97, 369.61, 135.79, 372.61, 134.16, 372.61]], "area": 548.7029000000002, "iscrowd": 0, "image_id": 201260, "bbox": [131.43, 318.38, 14.99, 54.23], "category_id": 1, "id": 1242994}, {"segmentation": [[331.18, 362.01, 335.18, 350.19, 335.36, 346.74, 332.09, 340.92, 330.27, 338.19, 328.82, 331.28, 330.09, 325.1, 332.27, 321.83, 335.36, 316.74, 338.82, 314.74, 340.09, 309.47, 341.0, 306.19, 344.45, 305.65, 346.82, 308.74, 346.82, 312.37, 348.45, 315.83, 351.18, 318.01, 354.09, 321.65, 355.54, 322.92, 354.82, 327.28, 351.91, 332.37, 348.64, 337.46, 346.09, 342.19, 343.73, 351.64, 345.0, 364.57, 344.82, 367.48, 343.55, 368.03, 340.82, 367.12, 335.91, 375.12, 334.46, 379.66, 332.09, 381.66, 329.73, 381.3, 329.18, 379.12, 330.46, 374.21, 330.82, 369.85, 330.82, 368.94]], "area": 993.6641500000005, "iscrowd": 0, "image_id": 111831, "bbox": [328.82, 305.65, 26.72, 76.01], "category_id": 1, "id": 1243149}, {"segmentation": [[439.04, 279.78, 428.93, 279.78, 432.3, 251.97, 423.03, 230.9, 418.82, 144.1, 422.19, 107.02, 443.26, 96.91, 436.52, 76.69, 455.06, 64.04, 465.17, 64.04, 475.28, 85.11, 488.76, 107.87, 483.71, 163.48, 475.28, 214.89, 450.0, 215.73, 443.26, 278.93]], "area": 9535.804199999999, "iscrowd": 0, "image_id": 149863, "bbox": [418.82, 64.04, 69.94, 215.74], "category_id": 1, "id": 1243278}, {"segmentation": [[35.71, 297.8, 35.71, 288.46, 42.14, 282.03, 43.11, 279.13, 43.43, 275.59, 43.43, 275.59, 42.14, 273.66, 46.97, 265.94, 56.3, 265.94, 61.13, 275.27, 63.06, 277.2, 64.67, 288.46, 57.91, 293.29, 56.94, 297.8, 52.12, 301.34, 50.51, 303.59, 49.54, 302.95, 49.86, 299.73, 46.33, 293.29, 40.53, 291.68]], "area": 624.7298000000004, "iscrowd": 0, "image_id": 23676, "bbox": [35.71, 265.94, 28.96, 37.65], "category_id": 1, "id": 1243633}, {"segmentation": [[253.94, 120.47, 253.94, 118.96, 252.65, 117.67, 252.43, 114.66, 250.71, 112.29, 252.0, 109.49, 254.16, 108.2, 259.1, 107.99, 260.4, 109.92, 260.4, 112.94, 260.61, 114.01, 260.61, 115.3, 263.62, 114.01, 266.64, 113.37, 269.86, 113.37, 275.03, 114.44, 276.32, 115.73, 277.83, 118.31, 277.83, 119.82, 276.97, 120.9, 274.38, 120.9, 270.94, 121.54, 269.22, 121.54, 272.66, 137.04, 280.84, 150.81, 289.23, 172.97, 292.46, 176.42, 293.32, 178.35, 281.78, 179.36, 272.16, 155.32, 268.1, 154.38, 264.66, 161.89, 265.28, 174.4, 265.28, 182.22, 263.4, 185.98, 262.15, 188.17, 259.02, 188.17, 257.77, 174.71, 257.77, 155.94, 253.7, 135.92, 248.7, 130.91]], "area": 1414.0807500000003, "iscrowd": 0, "image_id": 375659, "bbox": [248.7, 107.99, 44.62, 80.18], "category_id": 1, "id": 1243638}, {"segmentation": [[486.16, 516.29, 483.93, 518.4, 482.71, 523.08, 483.48, 527.31, 488.39, 537.34, 490.28, 538.12, 491.61, 534.44, 491.84, 537.89, 495.07, 538.23, 493.62, 535.22, 494.18, 532.21, 491.84, 527.65, 489.72, 523.53, 489.94, 517.51, 488.5, 515.62, 487.16, 515.51]], "area": 150.19345000000018, "iscrowd": 0, "image_id": 181149, "bbox": [482.71, 515.51, 12.36, 22.72], "category_id": 1, "id": 1243992}, {"segmentation": [[199.23, 299.34, 195.54, 298.1, 194.92, 294.61, 195.33, 291.73, 198.21, 286.8, 202.11, 282.9, 209.51, 283.51, 214.85, 286.8, 216.5, 299.13, 216.7, 304.88, 216.29, 307.35, 213.83, 307.56, 215.26, 315.57, 218.35, 323.99, 217.73, 332.21, 215.26, 332.21, 215.67, 325.64, 214.44, 323.58, 211.56, 323.17, 209.1, 324.2, 207.45, 325.64, 205.81, 325.43, 204.17, 324.41, 202.32, 313.51, 200.88, 310.23, 200.26, 307.56, 199.44, 305.5]], "area": 672.1569000000001, "iscrowd": 0, "image_id": 332065, "bbox": [194.92, 282.9, 23.43, 49.31], "category_id": 1, "id": 1245457}, {"segmentation": [[433.77, 91.57, 452.51, 95.41, 451.06, 63.23, 450.58, 51.23, 448.66, 46.9, 444.82, 45.94, 444.34, 36.82, 438.58, 27.69, 434.26, 25.77, 427.05, 29.13, 425.13, 37.78, 427.53, 44.5, 428.97, 47.86, 424.17, 53.63, 423.69, 56.99, 430.41, 63.23, 433.77, 75.72, 431.85, 83.4, 433.29, 92.53], [430.41, 121.83, 444.82, 126.63, 447.22, 118.46, 448.18, 105.98, 452.03, 103.09, 452.03, 98.77, 435.7, 95.89, 433.29, 95.89, 432.81, 101.17, 432.33, 113.66, 434.26, 121.35], [444.82, 140.08, 445.3, 158.33, 441.94, 157.37, 435.7, 148.24, 434.74, 135.27, 434.26, 127.11, 443.86, 129.03, 445.3, 134.31]], "area": 1996.2342999999994, "iscrowd": 0, "image_id": 56699, "bbox": [423.69, 25.77, 28.82, 132.56], "category_id": 1, "id": 1246332}, {"segmentation": [[548.21, 181.76, 536.94, 175.19, 531.0, 173.31, 522.24, 175.82, 518.17, 180.2, 516.29, 187.08, 516.6, 191.46, 516.6, 193.65, 513.79, 198.35, 516.29, 200.22, 518.17, 200.54, 519.42, 206.17, 521.61, 208.36, 524.74, 208.05, 526.93, 208.05, 524.11, 212.43, 524.74, 220.56, 527.87, 224.32, 531.0, 219.94, 534.13, 200.54, 540.38, 186.77]], "area": 799.0733500000013, "iscrowd": 0, "image_id": 333356, "bbox": [513.79, 173.31, 34.42, 51.01], "category_id": 1, "id": 1246413}, {"segmentation": [[528.41, 224.83, 530.6, 220.78, 533.09, 210.16, 533.72, 200.79, 535.9, 193.93, 537.15, 188.62, 540.9, 183.62, 548.39, 181.75, 556.2, 181.44, 564.31, 186.12, 567.44, 193.3, 570.25, 204.85, 572.43, 215.47, 573.99, 219.53, 581.8, 219.84, 590.23, 219.84, 592.41, 224.21, 592.41, 229.52, 588.35, 232.64, 584.92, 232.95, 585.86, 236.07, 584.29, 241.38, 584.61, 253.25, 584.61, 265.42, 583.05, 276.35, 581.48, 282.59, 580.24, 286.34, 574.62, 287.28, 574.62, 311.63, 573.37, 325.68, 571.18, 338.48, 567.12, 341.6, 560.57, 341.6, 554.32, 353.15, 553.7, 358.77, 558.07, 369.07, 560.25, 381.87, 562.13, 384.37, 562.75, 397.48, 562.44, 413.72, 565.25, 425.58, 565.56, 428.0, 531.22, 427.46, 530.6, 425.27, 524.98, 424.96, 521.85, 419.34, 529.03, 413.09, 534.97, 409.97, 538.71, 407.16, 537.78, 399.98, 534.97, 387.18, 534.03, 380.94, 535.28, 377.19, 532.47, 365.33, 530.91, 351.59, 530.6, 349.72, 529.97, 344.1, 528.1, 336.6, 515.61, 329.11, 514.36, 328.8, 519.98, 318.18, 519.98, 313.19, 535.9, 317.87, 542.15, 313.19, 552.14, 290.71, 551.83, 267.92, 551.83, 254.18, 547.45, 245.75, 547.45, 242.01, 543.08, 234.83, 540.59, 229.52, 534.34, 226.71]], "area": 8355.579000000005, "iscrowd": 0, "image_id": 333356, "bbox": [514.36, 181.44, 78.05, 246.56], "category_id": 1, "id": 1246652}, {"segmentation": [[23.71, 170.02, 17.07, 155.25, 14.71, 147.54, 14.5, 138.98, 17.93, 134.7, 19.85, 131.91, 20.07, 123.78, 20.07, 118.64, 23.28, 111.36, 28.42, 110.5, 30.34, 110.5, 36.12, 111.57, 36.34, 111.57, 39.55, 113.93, 42.33, 116.93, 42.97, 118.42, 43.19, 120.35, 41.9, 132.34, 45.97, 132.55, 44.9, 137.91, 46.61, 140.9, 48.97, 141.98, 50.04, 163.81, 48.75, 165.1, 48.75, 168.31, 50.47, 169.38, 51.75, 181.58, 52.61, 187.15, 53.68, 195.29, 56.46, 208.35, 57.1, 226.33, 55.18, 232.11, 54.32, 232.54, 52.39, 247.95, 51.54, 252.02, 51.32, 254.16, 56.25, 256.3, 59.89, 258.23, 61.6, 260.58, 61.6, 262.08, 43.4, 266.79, 42.76, 263.15, 42.76, 258.44, 43.83, 255.23, 44.04, 251.81, 44.04, 248.17, 42.55, 241.53, 42.12, 235.96, 41.05, 234.46, 35.7, 237.25, 35.05, 237.03, 32.48, 246.67, 31.84, 251.81, 32.06, 253.09, 32.27, 253.31, 34.62, 253.73, 36.34, 253.73, 38.69, 254.59, 39.98, 255.45, 40.41, 256.52, 40.41, 256.94, 40.41, 257.8, 39.12, 259.73, 31.84, 262.3, 26.92, 263.58, 24.99, 264.44, 21.14, 264.22, 22.64, 259.3, 24.13, 253.73, 24.13, 239.17, 24.13, 230.83, 24.35, 204.71, 25.42, 188.65, 25.63, 184.15, 24.35, 177.52, 23.71, 172.59]], "area": 4230.950199999999, "iscrowd": 0, "image_id": 265532, "bbox": [14.5, 110.5, 47.1, 156.29], "category_id": 1, "id": 1246720}, {"segmentation": [[527.46, 430.38, 532.85, 416.36, 542.56, 428.22, 515.6, 442.25, 576.0, 450.88, 541.48, 352.72, 530.7, 243.78, 563.06, 265.35, 571.69, 269.66, 539.33, 198.47, 498.34, 171.51, 485.39, 140.22, 453.03, 149.93, 467.06, 189.84, 456.27, 220.04, 457.35, 236.22, 418.52, 261.03, 417.44, 281.53, 429.3, 283.69, 436.85, 266.43, 459.51, 261.03, 467.06, 308.49, 482.16, 362.43, 499.42, 405.57, 485.39, 437.93, 473.53, 446.56, 512.36, 445.48]], "area": 21700.646900000014, "iscrowd": 0, "image_id": 24730, "bbox": [417.44, 140.22, 158.56, 310.66], "category_id": 1, "id": 1246882}, {"segmentation": [[564.1, 129.82, 570.01, 134.95, 565.28, 162.94, 555.82, 182.26, 532.95, 196.84, 516.79, 201.97, 484.86, 196.45, 480.52, 197.24, 486.83, 227.99, 490.38, 232.72, 488.4, 240.6, 487.22, 253.22, 494.18, 301.64, 501.67, 335.87, 508.09, 346.57, 518.79, 369.03, 508.09, 381.87, 500.6, 375.45, 492.04, 351.92, 484.56, 318.76, 473.86, 288.81, 465.3, 271.69, 477.07, 273.83, 480.28, 271.69, 467.44, 256.72, 461.02, 250.3, 463.16, 248.16, 450.33, 235.33, 446.05, 220.35, 428.93, 207.51, 411.82, 207.51, 384.01, 200.03, 376.52, 239.6, 371.17, 236.4, 387.22, 185.05, 389.36, 175.42, 402.19, 162.59, 411.82, 160.45, 407.54, 147.61, 405.4, 127.29, 415.03, 110.18, 428.93, 103.76, 440.7, 102.69, 453.54, 115.52, 459.96, 130.5, 457.82, 144.4, 458.89, 148.68, 469.58, 152.96, 482.42, 159.38, 508.09, 170.08, 531.62, 173.29, 542.32, 167.94, 545.53, 150.82, 555.16, 134.78, 557.29, 131.57], [369.03, 350.85, 356.2, 394.71, 347.64, 421.45, 350.85, 428.93, 369.03, 428.93, 370.1, 416.1, 371.17, 394.71, 372.24, 366.89, 375.45, 351.92], [390.43, 215.0, 378.66, 246.02, 401.12, 251.37, 420.38, 250.3, 427.87, 248.16, 433.21, 235.33, 438.56, 227.84, 438.56, 227.84, 439.63, 221.42, 435.35, 213.93, 412.89, 211.79, 395.78, 208.58]], "area": 16759.958949999993, "iscrowd": 0, "image_id": 522150, "bbox": [347.64, 102.69, 222.37, 326.24], "category_id": 1, "id": 1247046}, {"segmentation": [[18.65, 326.41, 20.53, 325.09, 18.65, 323.4, 20.91, 320.39, 23.54, 320.2, 22.6, 317.0, 24.86, 316.82, 27.11, 321.14, 28.81, 323.4, 28.05, 325.09, 23.92, 324.15, 21.85, 326.41, 19.78, 326.78], [22.04, 344.46, 22.41, 338.25, 23.92, 338.25, 24.1, 345.4], [25.8, 337.5, 28.05, 337.31, 27.68, 345.59, 26.17, 344.65, 25.99, 337.5]], "area": 76.34924999999991, "iscrowd": 0, "image_id": 64908, "bbox": [18.65, 316.82, 10.16, 28.77], "category_id": 1, "id": 1247181}, {"segmentation": [[263.43, 282.75, 277.28, 267.92, 291.13, 230.33, 308.93, 224.39, 326.74, 242.2, 326.74, 260.0, 324.76, 270.88, 333.66, 290.67, 331.68, 337.16, 326.74, 373.76, 317.84, 415.3, 308.93, 443.0, 305.97, 448.93, 298.05, 452.89, 287.17, 459.81, 289.15, 475.64, 303.99, 492.45, 283.22, 496.41, 263.43, 481.57, 256.51, 472.67, 256.51, 480.58, 261.45, 496.41, 251.56, 501.36, 215.95, 483.55, 215.95, 471.68, 237.72, 441.02, 250.57, 430.14, 260.47, 401.45, 257.5, 390.57, 265.41, 376.72, 265.41, 358.92, 265.41, 351.0, 248.6, 336.17, 241.67, 328.25, 252.55, 300.56, 275.3, 274.84]], "area": 17240.209300000002, "iscrowd": 0, "image_id": 415946, "bbox": [215.95, 224.39, 117.71, 276.97], "category_id": 1, "id": 1247184}, {"segmentation": [[124.33, 134.04, 126.8, 105.29, 128.97, 84.88, 134.22, 73.13, 144.12, 67.87, 159.89, 61.38, 160.81, 51.18, 160.5, 41.9, 162.98, 36.64, 167.92, 28.91, 170.71, 23.66, 175.96, 19.95, 182.46, 19.33, 188.95, 20.26, 194.52, 23.97, 198.84, 24.89, 201.01, 27.99, 201.94, 30.15, 202.86, 35.41, 201.01, 44.68, 201.01, 48.08, 200.08, 50.56, 196.68, 53.03, 193.9, 53.03, 192.35, 53.96, 187.71, 62.93, 193.9, 66.02, 204.72, 71.27, 212.45, 76.84, 212.14, 93.23, 211.21, 102.5, 211.52, 113.02, 213.69, 129.4, 218.63, 145.17, 223.58, 154.45, 215.54, 152.9, 202.25, 148.88, 179.67, 142.7, 155.87, 136.52, 135.77, 134.35, 127.11, 132.5], [136.08, 171.76, 137.93, 227.42, 135.46, 276.58, 133.91, 299.77, 133.6, 303.18, 131.75, 305.03, 132.37, 309.98, 131.75, 315.23, 128.97, 322.65, 133.91, 326.06, 142.57, 326.37, 148.14, 322.35, 150.3, 317.4, 153.7, 312.45, 155.56, 309.67, 155.25, 305.96, 155.56, 300.39, 156.48, 294.83, 156.79, 288.02, 160.81, 262.36, 164.21, 247.52, 164.83, 240.72, 166.07, 223.09, 168.23, 204.54, 170.71, 198.36, 174.11, 207.63, 172.56, 218.14, 175.96, 242.88, 177.2, 247.83, 174.42, 270.4, 175.35, 280.6, 176.58, 295.75, 178.75, 303.18, 179.36, 306.58, 174.42, 309.98, 177.2, 314.62, 181.22, 318.94, 188.95, 323.89, 198.54, 325.75, 202.25, 325.13, 202.25, 322.96, 201.01, 319.56, 197.61, 315.54, 195.44, 314.31, 196.99, 312.14, 199.15, 305.34, 199.46, 301.94, 197.92, 300.08, 194.21, 299.16, 195.75, 291.43, 198.23, 267.0, 197.92, 257.1, 196.68, 236.7, 201.32, 212.27, 201.32, 204.54, 202.86, 195.26, 204.41, 190.32, 209.36, 187.22, 209.36, 181.04, 215.54, 178.88, 215.85, 175.17, 215.54, 171.15, 212.76, 169.91, 197.3, 169.91, 192.04, 169.91, 188.33, 172.69, 182.15, 169.29, 167.92, 169.29, 163.9, 169.6, 162.36, 168.98, 167.62, 166.2, 165.45, 165.27, 162.98, 166.51, 163.9, 161.87, 162.36, 160.63, 157.72, 158.16, 151.85, 159.09, 149.37, 164.03, 147.52, 167.44, 141.95, 168.67, 138.86, 165.89, 136.7, 169.29]], "area": 16179.49985, "iscrowd": 0, "image_id": 149863, "bbox": [124.33, 19.33, 99.25, 307.04], "category_id": 1, "id": 1247376}, {"segmentation": [[94.66, 458.81, 86.17, 435.66, 94.66, 400.15, 95.43, 392.44, 103.15, 390.12, 109.32, 393.98, 107.78, 407.87, 114.72, 439.51, 120.13, 451.86, 118.58, 467.3, 110.09, 470.38]], "area": 1631.5959500000001, "iscrowd": 0, "image_id": 307462, "bbox": [86.17, 390.12, 33.96, 80.26], "category_id": 1, "id": 1247505}, {"segmentation": [[28.44, 440.33, 12.19, 398.69, 6.09, 364.15, 20.32, 337.74, 47.74, 318.44, 55.87, 313.36, 57.9, 290.0, 63.99, 271.72, 85.32, 262.58, 99.55, 261.56, 109.7, 275.78, 113.77, 288.99, 115.8, 297.11, 106.66, 307.27, 98.53, 325.55, 93.45, 333.68, 110.72, 346.88, 116.81, 356.03, 124.94, 355.01, 136.11, 343.84, 149.32, 348.92, 150.33, 359.07, 143.22, 367.2, 121.89, 386.5, 122.91, 398.69, 142.21, 406.81, 150.33, 412.91, 162.52, 409.86, 169.63, 413.92, 163.54, 430.18, 151.35, 437.29, 150.33, 440.33, 145.25, 439.32]], "area": 16719.416749999997, "iscrowd": 0, "image_id": 286619, "bbox": [6.09, 261.56, 163.54, 178.77], "category_id": 1, "id": 1248796}, {"segmentation": [[79.34, 239.94, 73.95, 212.21, 75.49, 199.11, 89.35, 176.78, 97.82, 171.39, 95.51, 159.06, 100.91, 148.28, 117.85, 149.82, 127.09, 159.06, 131.72, 164.45, 124.78, 166.76, 127.09, 169.07, 125.55, 175.24, 124.01, 182.94, 145.58, 197.57, 167.15, 203.74, 168.69, 213.75, 162.53, 222.99, 129.41, 215.29, 123.24, 216.06, 121.7, 222.22, 134.03, 229.93, 144.04, 229.93, 143.27, 235.32, 142.5, 243.02, 145.58, 251.49, 154.82, 273.06, 164.07, 279.99, 180.24, 278.45, 181.01, 286.93, 154.82, 302.33, 127.09, 256.89, 80.11, 241.48]], "area": 6654.3061499999985, "iscrowd": 0, "image_id": 511988, "bbox": [73.95, 148.28, 107.06, 154.05], "category_id": 1, "id": 1249397}, {"segmentation": [[275.27, 395.95, 273.25, 394.6, 272.17, 392.31, 270.83, 391.23, 270.96, 389.48, 271.1, 386.65, 274.06, 384.36, 277.02, 384.23, 279.58, 385.04, 280.25, 386.79, 280.25, 389.21, 280.66, 391.77, 283.35, 394.87, 286.31, 396.89, 287.12, 404.03, 285.24, 412.38, 285.24, 416.15, 286.04, 430.15, 288.33, 449.68, 289.55, 451.43, 287.8, 452.64, 286.45, 452.78, 285.24, 455.88, 273.66, 456.68, 271.37, 456.95, 271.63, 456.01, 274.46, 452.51, 270.69, 438.1, 270.02, 426.65, 272.04, 415.74, 269.88, 411.84, 270.15, 408.74, 274.46, 407.53, 273.66, 401.2, 272.98, 399.72]], "area": 982.8939500000007, "iscrowd": 0, "image_id": 334097, "bbox": [269.88, 384.23, 19.67, 72.72], "category_id": 1, "id": 1249925}, {"segmentation": [[487.11, 187.02, 487.72, 177.82, 485.89, 170.67, 480.98, 168.01, 480.98, 161.68, 480.78, 159.22, 478.94, 157.79, 474.24, 157.59, 473.42, 159.84, 473.42, 163.92, 473.01, 170.26, 473.01, 170.87, 485.27, 185.79]], "area": 226.72405000000052, "iscrowd": 0, "image_id": 206427, "bbox": [473.01, 157.59, 14.71, 29.43], "category_id": 1, "id": 1250238}, {"segmentation": [[585.56, 252.86, 597.74, 253.76, 600.9, 247.89, 596.39, 241.57, 600.45, 218.1, 600.9, 201.4, 605.87, 198.24, 607.67, 196.88, 602.26, 183.34, 602.26, 174.31, 599.55, 169.35, 602.71, 166.64, 602.26, 157.61, 597.29, 153.55, 590.97, 157.61, 588.72, 167.09, 580.59, 173.41, 577.88, 182.89, 579.69, 195.98, 579.69, 207.27, 586.46, 221.26, 585.56, 251.5]], "area": 1706.179749999998, "iscrowd": 0, "image_id": 24730, "bbox": [577.88, 153.55, 29.79, 100.21], "category_id": 1, "id": 1250560}, {"segmentation": [[36.12, 242.42, 35.82, 240.26, 33.86, 241.83, 33.86, 243.1, 33.37, 242.71, 33.18, 241.34, 35.14, 239.28, 35.04, 234.67, 35.92, 233.11, 36.12, 232.03, 35.23, 231.44, 35.04, 228.5, 36.02, 227.42, 37.68, 227.42, 38.86, 228.21, 39.15, 229.97, 39.15, 231.15, 38.27, 231.93, 38.56, 232.52, 41.11, 233.11, 42.09, 236.73, 43.27, 240.55, 42.68, 241.34, 41.9, 241.44, 41.5, 239.48, 40.52, 237.61, 39.64, 238.59, 40.23, 241.24, 41.31, 242.61]], "area": 80.64050000000002, "iscrowd": 0, "image_id": 394242, "bbox": [33.18, 227.42, 10.09, 15.68], "category_id": 1, "id": 1250858}, {"segmentation": [[479.95, 187.98, 479.95, 183.83, 483.6, 175.3, 485.31, 169.2, 485.31, 169.2, 485.31, 166.77, 484.09, 162.62, 485.07, 156.77, 487.02, 154.09, 489.7, 153.12, 491.89, 153.12, 494.33, 155.07, 494.82, 156.53, 494.57, 158.97, 494.57, 162.14, 503.59, 169.69, 506.52, 175.3, 506.03, 182.86, 502.38, 191.15, 500.91, 190.17, 499.21, 189.93, 501.64, 184.32, 500.18, 180.18, 497.01, 178.22, 493.11, 178.22, 489.7, 180.66, 487.26, 183.59, 483.85, 188.22, 484.34, 190.41, 483.36, 193.34, 483.12, 193.58, 480.92, 193.34, 480.92, 193.1, 480.68, 192.36, 479.46, 191.63, 479.22, 189.68], [480.68, 198.7, 479.7, 202.12, 478.73, 203.82, 477.51, 205.77, 476.78, 206.75, 476.78, 206.75, 477.51, 207.24, 478.24, 207.24, 480.68, 207.24, 482.63, 207.24, 484.58, 202.36, 484.58, 202.36, 484.09, 201.14, 482.14, 199.43], [476.29, 214.55, 474.83, 219.18, 474.34, 219.67, 471.9, 222.59, 468.49, 225.76, 467.51, 228.2, 471.66, 229.18, 476.29, 228.69, 479.22, 228.69, 482.39, 223.57, 481.17, 221.62, 478.97, 218.94]], "area": 669.6946499999998, "iscrowd": 0, "image_id": 20251, "bbox": [467.51, 153.12, 39.01, 76.06], "category_id": 1, "id": 1251464}, {"segmentation": [[148.34, 39.62, 148.12, 35.96, 148.98, 31.66, 150.06, 28.43, 150.7, 24.77, 150.49, 23.05, 148.98, 19.82, 148.55, 16.17, 149.2, 14.01, 152.64, 11.43, 155.44, 10.14, 159.1, 9.71, 165.77, 12.08, 170.28, 21.76, 172.22, 24.56, 173.51, 26.06, 176.53, 28.43, 176.96, 29.94, 178.46, 31.87, 179.32, 34.89, 180.4, 37.25, 181.91, 38.76, 176.96, 40.05, 165.12, 39.84, 154.79, 38.76, 151.13, 38.76, 150.06, 39.62, 150.06, 39.62]], "area": 687.9194, "iscrowd": 0, "image_id": 60771, "bbox": [148.12, 9.71, 33.79, 30.34], "category_id": 1, "id": 1251814}, {"segmentation": [[321.62, 87.87, 325.03, 87.71, 325.66, 85.81, 325.82, 82.79, 324.79, 79.86, 325.11, 78.35, 327.77, 73.24, 329.51, 68.08, 332.52, 60.23, 333.4, 58.48, 334.43, 57.29, 336.81, 57.93, 343.07, 64.75, 344.18, 65.7, 346.17, 71.02, 347.59, 73.32, 348.31, 74.58, 347.75, 77.2, 349.66, 78.63, 357.59, 78.71, 358.46, 76.96, 355.37, 74.35, 351.72, 72.05, 350.61, 69.98, 349.97, 63.16, 350.13, 61.89, 349.97, 59.59, 348.39, 57.53, 347.12, 55.27, 347.12, 52.18, 347.12, 47.82, 346.25, 42.11, 344.34, 39.65, 343.31, 37.74, 342.6, 35.92, 341.09, 34.33, 337.84, 34.02, 336.81, 35.84, 336.01, 37.58, 334.75, 38.85, 332.6, 40.12, 329.19, 43.85, 325.86, 48.93, 324.12, 51.11, 325.07, 54.92, 324.91, 56.98, 322.45, 65.07, 320.39, 71.73, 320.15, 78.95, 319.68, 82.24, 320.47, 85.02, 321.1, 87.24]], "area": 765.3799000000001, "iscrowd": 0, "image_id": 375659, "bbox": [319.68, 34.02, 38.78, 53.85], "category_id": 1, "id": 1251854}, {"segmentation": [[15.08, 149.82, 18.44, 141.88, 20.58, 138.53, 34.32, 130.59, 41.95, 130.89, 44.69, 134.25, 47.14, 136.08, 48.97, 138.22, 50.19, 139.75, 54.16, 144.33, 53.85, 152.26, 50.8, 157.76, 53.55, 165.7, 56.3, 166.61, 58.43, 172.11, 61.79, 180.04, 63.01, 192.56, 61.49, 197.14, 61.18, 194.7, 56.91, 187.98, 54.46, 178.21, 53.55, 173.02, 45.31, 178.82, 36.15, 173.02, 31.57, 171.5, 30.04, 169.05, 28.51, 163.86, 18.44, 155.01, 17.52, 154.1]], "area": 1388.0576, "iscrowd": 0, "image_id": 446331, "bbox": [15.08, 130.59, 47.93, 66.55], "category_id": 1, "id": 1252781}, {"segmentation": [[460.04, 280.09, 450.24, 255.15, 443.12, 223.98, 450.24, 178.55, 460.04, 168.76, 476.12, 159.92, 479.4, 156.96, 479.73, 150.4, 475.79, 142.85, 474.15, 134.97, 477.1, 125.12, 481.7, 118.56, 490.56, 115.93, 498.44, 117.9, 502.7, 126.11, 505.0, 136.94, 503.36, 145.8, 501.06, 152.7, 504.02, 154.99, 506.97, 162.87, 517.15, 164.51, 531.92, 175.02, 537.17, 203.58, 541.11, 218.66, 541.11, 230.15, 537.83, 235.4, 533.23, 251.49, 528.31, 261.99, 527.32, 264.62, 526.34, 271.5, 524.7, 299.54, 516.82, 327.75, 514.85, 332.68, 517.15, 336.62, 517.15, 343.51, 517.15, 346.79, 514.85, 376.66, 513.87, 382.24, 515.18, 392.08, 514.52, 394.7, 512.88, 400.94, 517.15, 408.16, 519.45, 411.77, 522.4, 418.01, 521.74, 420.64, 516.82, 422.28, 506.64, 422.28, 502.38, 419.65, 501.06, 414.73, 498.77, 412.1, 497.78, 408.16, 496.8, 398.64, 496.8, 390.43, 494.83, 337.58, 496.47, 333.32, 495.15, 324.47, 494.17, 312.98, 494.83, 311.01, 493.84, 306.09, 492.86, 309.7, 492.86, 316.26, 491.87, 326.77, 492.53, 338.58, 492.2, 362.88, 491.22, 373.71, 493.18, 376.34, 494.83, 385.2, 493.18, 393.41, 492.53, 402.93, 493.18, 410.13, 492.2, 412.76, 489.25, 415.05, 488.92, 418.01, 485.96, 421.29, 481.37, 422.28, 473.16, 421.62, 468.24, 418.67, 470.86, 410.13, 473.49, 404.88, 475.13, 402.25, 475.46, 395.03, 473.82, 390.76, 473.16, 384.2, 474.8, 382.23, 470.86, 374.35, 470.21, 360.23, 468.56, 353.67, 469.22, 339.09, 469.88, 336.79, 467.91, 333.83, 468.89, 330.22, 470.86, 329.57, 468.89, 320.05, 465.61, 307.9, 465.94, 305.6, 463.31, 298.38]], "area": 17473.246049999987, "iscrowd": 0, "image_id": 444214, "bbox": [443.12, 115.93, 97.99, 306.35], "category_id": 1, "id": 1254299}, {"segmentation": [[57.17, 253.48, 44.22, 261.03, 45.3, 277.21, 18.34, 283.69, 3.24, 328.99, 2.16, 330.07, 0.0, 225.44, 16.18, 190.92, 25.89, 169.35, 44.22, 148.85, 61.48, 144.54, 78.74, 153.17, 61.48, 180.13, 58.25, 211.42, 66.88, 244.85, 67.96, 262.11]], "area": 7096.129449999999, "iscrowd": 0, "image_id": 130624, "bbox": [0.0, 144.54, 78.74, 185.53], "category_id": 1, "id": 1254492}, {"segmentation": [[116.36, 355.2, 118.45, 332.85, 124.74, 325.16, 141.51, 318.88, 149.89, 311.19, 152.69, 304.9, 152.69, 295.82, 152.69, 286.74, 159.67, 279.05, 169.45, 276.96, 182.73, 279.75, 186.22, 286.74, 186.92, 293.73, 186.22, 297.92, 184.82, 302.81, 180.63, 314.68, 177.84, 319.57, 179.93, 324.46, 183.43, 329.35, 183.43, 332.85, 190.41, 330.05, 195.3, 332.15, 188.32, 336.34, 196.0, 335.64, 195.3, 345.42, 191.81, 348.22, 185.52, 354.5, 186.22, 362.19, 191.81, 371.97, 195.3, 392.93, 195.3, 399.91, 173.64, 415.28, 162.47, 411.09, 151.99, 412.49, 138.71, 407.6, 126.14, 399.22, 122.65, 389.44, 136.62, 373.37, 144.3, 363.59, 147.1, 353.81, 147.1, 346.82, 149.89, 335.64, 143.6, 332.85, 121.25, 334.94, 127.54, 349.61, 119.85, 356.6]], "area": 6463.909900000001, "iscrowd": 0, "image_id": 286619, "bbox": [116.36, 276.96, 79.64, 138.32], "category_id": 1, "id": 1254554}, {"segmentation": [[408.55, 31.65, 417.24, 0.0, 500.66, 0.76, 490.24, 11.77, 484.44, 14.09, 482.7, 24.52, 478.65, 27.99, 485.02, 36.68, 476.33, 53.48, 476.33, 57.54, 435.78, 55.8, 435.2, 51.74, 429.98, 46.53, 424.77, 49.43, 417.82, 43.05]], "area": 3799.9692499999987, "iscrowd": 0, "image_id": 63017, "bbox": [408.55, 0.0, 92.11, 57.54], "category_id": 1, "id": 1254584}, {"segmentation": [[335.0, 153.14, 336.64, 161.65, 336.39, 163.04, 331.32, 163.04, 328.37, 163.21, 325.91, 162.31, 325.26, 158.54, 325.09, 152.73, 326.9, 150.68, 331.97, 149.94, 334.18, 151.66]], "area": 126.52005000000003, "iscrowd": 0, "image_id": 377226, "bbox": [325.09, 149.94, 11.55, 13.27], "category_id": 1, "id": 1254918}, {"segmentation": [[302.44, 425.76, 304.22, 411.25, 304.81, 401.77, 308.36, 397.63, 308.95, 389.63, 314.28, 388.74, 317.54, 396.15, 318.73, 400.0, 324.35, 408.88, 326.13, 413.62, 320.5, 412.14, 320.8, 419.24, 319.32, 437.9, 319.32, 448.86, 319.61, 455.07, 316.36, 453.3, 308.66, 455.37, 305.7, 453.89, 311.62, 451.22, 311.32, 440.56, 309.55, 437.6, 310.14, 432.87, 303.62, 426.94]], "area": 835.93435, "iscrowd": 0, "image_id": 334097, "bbox": [302.44, 388.74, 23.69, 66.63], "category_id": 1, "id": 1255273}, {"segmentation": [[204.84, 290.96, 208.96, 287.66, 214.45, 290.13, 215.83, 294.25, 215.83, 297.27, 215.0, 300.84, 218.02, 301.12, 222.14, 301.94, 233.68, 315.67, 233.68, 323.09, 233.13, 326.38, 230.38, 329.95, 229.28, 332.7, 226.54, 332.7, 224.62, 331.6, 224.89, 329.4, 227.09, 327.2, 227.36, 317.87, 224.62, 314.85, 224.62, 320.34, 224.62, 323.91, 223.79, 326.93, 223.52, 330.5, 222.69, 336.27, 222.14, 338.74, 220.22, 342.58, 218.3, 345.6, 217.2, 349.17, 213.63, 350.27, 210.61, 354.12, 212.26, 358.24, 207.86, 372.49, 203.74, 372.49, 202.1, 379.63, 203.2, 386.22, 201.0, 388.14, 195.51, 389.79, 191.11, 390.34, 192.21, 387.32, 197.15, 384.02, 197.43, 378.8, 197.43, 373.04, 197.7, 368.37, 198.25, 360.95, 199.63, 353.54, 199.63, 345.3, 199.63, 342.56, 198.8, 337.89, 199.08, 334.04, 201.0, 331.3, 195.78, 325.53, 195.23, 322.56, 197.43, 317.07, 197.98, 311.03, 199.9, 307.46, 201.0, 303.62, 206.49, 302.52, 205.12, 299.77, 205.12, 297.02, 205.39, 293.45]], "area": 1831.28945, "iscrowd": 0, "image_id": 404964, "bbox": [191.11, 287.66, 42.57, 102.68], "category_id": 1, "id": 1255564}, {"segmentation": [[154.23, 3.6, 148.47, 123.24, 136.94, 153.51, 129.73, 180.9, 145.59, 206.85, 160.0, 218.38, 164.32, 245.77, 103.78, 284.68, 93.69, 296.22, 73.51, 300.54, 57.66, 299.1, 4.32, 215.5, 5.77, 41.08, 11.53, 7.93]], "area": 38360.47195, "iscrowd": 0, "image_id": 432967, "bbox": [4.32, 3.6, 160.0, 296.94], "category_id": 1, "id": 1255775}, {"segmentation": [[494.64, 178.2, 490.43, 181.12, 486.54, 185.0, 484.92, 188.24, 481.68, 195.37, 480.71, 198.29, 484.92, 202.82, 482.65, 208.33, 475.2, 208.65, 474.55, 211.57, 476.17, 212.22, 476.5, 214.49, 481.68, 224.2, 481.68, 217.4, 485.89, 214.16, 490.43, 213.19, 493.99, 213.84, 496.26, 220.97, 497.23, 225.5, 507.92, 219.35, 505.01, 203.15, 502.09, 203.47, 502.09, 192.78, 499.5, 189.86, 500.47, 187.27, 500.79, 182.74, 497.88, 177.88]], "area": 817.6124499999996, "iscrowd": 0, "image_id": 20251, "bbox": [474.55, 177.88, 33.37, 47.62], "category_id": 1, "id": 1256175}, {"segmentation": [[499.11, 344.03, 513.48, 424.14, 507.32, 430.3, 472.4, 430.3, 473.43, 420.03, 481.65, 403.6, 466.24, 292.69, 479.59, 242.36, 464.19, 157.13, 489.86, 134.53, 495.0, 108.86, 523.75, 107.83, 528.89, 138.64, 524.78, 147.88, 546.35, 172.53, 566.89, 224.91, 550.45, 317.33, 536.08, 343.01, 535.05, 381.0, 539.16, 416.95, 545.32, 433.38, 526.83, 439.54, 516.56, 421.06]], "area": 22599.645950000006, "iscrowd": 0, "image_id": 579533, "bbox": [464.19, 107.83, 102.7, 331.71], "category_id": 1, "id": 1256584}, {"segmentation": [[21.0, 495.87, 22.75, 496.46, 25.1, 496.26, 25.88, 492.74, 27.25, 482.19, 27.05, 477.9, 26.27, 477.12, 26.47, 474.18, 25.69, 473.21, 23.15, 473.21, 22.56, 475.55, 23.34, 477.51, 21.78, 479.46, 20.61, 482.39, 20.61, 484.73, 21.97, 490.4, 21.78, 493.53, 21.58, 495.48]], "area": 109.41240000000008, "iscrowd": 0, "image_id": 570023, "bbox": [20.61, 473.21, 6.64, 23.25], "category_id": 1, "id": 1256841}, {"segmentation": [[45.1, 389.58, 51.82, 384.78, 39.34, 329.13, 32.62, 319.53, 35.5, 304.18, 39.34, 275.39, 38.38, 265.8, 40.3, 244.69, 54.69, 241.81, 57.57, 240.85, 73.89, 258.12, 68.13, 271.55, 67.17, 304.18, 66.21, 331.04, 63.33, 344.48, 76.76, 389.58, 50.86, 392.46, 51.82, 385.74]], "area": 4033.435999999999, "iscrowd": 0, "image_id": 450281, "bbox": [32.62, 240.85, 44.14, 151.61], "category_id": 1, "id": 1257241}, {"segmentation": [[367.02, 249.06, 366.02, 261.44, 365.14, 270.31, 364.39, 289.69, 364.27, 293.19, 367.27, 300.06, 369.39, 307.31, 363.77, 329.19, 358.27, 341.19, 355.89, 346.19, 350.27, 365.81, 355.02, 370.19, 355.02, 390.19, 358.64, 401.31, 362.02, 407.81, 363.64, 415.19, 362.14, 421.94, 351.02, 424.06, 338.52, 423.06, 323.39, 421.69, 319.27, 418.56, 315.77, 413.94, 316.89, 409.06, 314.39, 405.69, 314.27, 401.69, 316.77, 386.06, 314.14, 381.94, 315.14, 378.69, 317.39, 363.69, 315.02, 362.81, 311.02, 360.06, 309.27, 357.06, 312.02, 345.06, 313.02, 342.06, 314.14, 338.31, 315.77, 326.19, 314.52, 321.69, 314.14, 315.19, 317.14, 305.06, 319.52, 298.56, 321.77, 285.69, 324.02, 269.31, 325.02, 262.19, 327.39, 251.19, 329.64, 245.44, 330.02, 234.31, 332.14, 232.81, 340.52, 222.94, 346.02, 218.19, 349.02, 212.56, 355.89, 197.06, 359.02, 191.94, 362.02, 189.56, 366.77, 188.19, 372.02, 190.56, 375.89, 192.69, 382.77, 196.31, 385.64, 201.81, 386.64, 207.81, 385.52, 209.31, 379.77, 213.94, 378.02, 215.44, 384.02, 224.69, 381.77, 227.44, 380.39, 231.31, 378.64, 234.81, 376.89, 233.31, 376.39, 229.56, 373.39, 225.56, 370.64, 229.19, 368.64, 230.69, 365.52, 229.44, 360.27, 225.81, 360.52, 230.44, 365.64, 240.56, 366.39, 244.81]], "area": 9576.15405, "iscrowd": 0, "image_id": 221328, "bbox": [309.27, 188.19, 77.37, 235.87], "category_id": 1, "id": 1257270}, {"segmentation": [[130.07, 370.35, 83.61, 369.51, 86.15, 314.61, 72.64, 300.25, 87.84, 211.57, 71.79, 225.08, 56.59, 214.95, 54.9, 194.68, 79.39, 142.31, 108.95, 126.27, 102.2, 106.0, 97.13, 76.44, 115.71, 62.92, 141.89, 67.15, 151.18, 83.19, 143.58, 106.84, 135.14, 131.33, 132.6, 139.78, 142.74, 143.16, 163.01, 167.65, 172.3, 177.79, 160.47, 197.21, 152.03, 217.48, 171.45, 231.0, 168.07, 258.02, 169.76, 291.81, 175.68, 347.55, 179.05, 370.35, 149.49, 370.35, 139.36, 345.86, 132.6, 367.82]], "area": 23907.4726, "iscrowd": 0, "image_id": 294416, "bbox": [54.9, 62.92, 124.15, 307.43], "category_id": 1, "id": 1257752}, {"segmentation": [[200.78, 365.43, 191.7, 345.25, 188.67, 323.05, 186.66, 312.96, 194.73, 305.9, 199.77, 304.89, 204.82, 289.76, 206.83, 277.65, 216.92, 274.62, 228.02, 277.65, 237.1, 294.8, 237.1, 310.95, 247.19, 307.92, 261.32, 322.04, 258.29, 331.12, 244.17, 333.14, 244.17, 351.3, 246.18, 357.36, 237.1, 365.43, 213.9, 369.46, 207.84, 371.48]], "area": 4366.573150000001, "iscrowd": 0, "image_id": 286619, "bbox": [186.66, 274.62, 74.66, 96.86], "category_id": 1, "id": 1259349}, {"segmentation": [[189.99, 239.89, 189.68, 235.08, 193.25, 234.93, 192.47, 227.03, 191.08, 225.33, 190.77, 222.69, 187.98, 222.69, 186.59, 224.09, 185.19, 225.48, 184.11, 226.72, 184.11, 230.28, 185.66, 231.83, 185.19, 233.85, 186.43, 236.48, 186.9, 238.49, 186.9, 239.58, 189.07, 239.73]], "area": 103.24515000000004, "iscrowd": 0, "image_id": 476575, "bbox": [184.11, 222.69, 9.14, 17.2], "category_id": 1, "id": 1259509}, {"segmentation": [[371.19, 216.61, 378.14, 214.05, 377.41, 210.39, 374.12, 208.56, 376.31, 200.88, 378.14, 192.1, 388.75, 189.9, 395.34, 199.05, 394.24, 210.75, 400.09, 219.53, 404.85, 229.05, 404.12, 233.8, 388.02, 238.92, 370.83, 235.27], [372.29, 250.63, 375.95, 259.41, 387.29, 255.02, 386.19, 247.7]], "area": 1209.6994000000002, "iscrowd": 0, "image_id": 115055, "bbox": [370.83, 189.9, 34.02, 69.51], "category_id": 1, "id": 1259667}, {"segmentation": [[203.9, 126.91, 203.37, 115.9, 204.68, 111.7, 207.31, 109.86, 207.57, 104.09, 211.77, 100.16, 216.49, 102.0, 219.11, 108.03, 219.9, 115.37, 226.45, 114.06, 229.86, 113.8, 233.01, 115.11, 231.44, 118.52, 226.98, 118.78, 227.5, 123.5, 223.57, 123.5, 222.26, 122.19, 221.47, 126.91, 203.37, 127.44]], "area": 455.006, "iscrowd": 0, "image_id": 517261, "bbox": [203.37, 100.16, 29.64, 27.28], "category_id": 1, "id": 1259851}, {"segmentation": [[233.51, 241.7, 216.68, 236.34, 218.21, 213.39, 210.95, 144.53, 198.32, 134.97, 178.81, 136.88, 169.63, 191.58, 173.07, 198.85, 170.78, 206.5, 158.92, 217.98, 149.74, 216.07, 146.3, 207.65, 155.1, 195.79, 157.77, 120.05, 165.04, 110.87, 176.52, 105.9, 179.96, 95.95, 181.87, 58.08, 187.99, 54.64, 185.32, 48.52, 180.34, 42.78, 180.73, 25.57, 183.79, 20.97, 191.44, 16.38, 202.15, 17.15, 210.18, 23.65, 211.71, 29.77, 228.16, 40.1, 230.07, 48.9, 223.95, 55.02, 223.19, 61.14, 221.27, 64.2, 218.98, 87.92, 218.6, 89.07, 218.98, 92.51, 227.16, 109.65, 227.16, 118.35, 232.37, 132.84, 237.59, 226.19]], "area": 9099.444450000003, "iscrowd": 0, "image_id": 539099, "bbox": [146.3, 16.38, 91.29, 225.32], "category_id": 1, "id": 1260010}, {"segmentation": [[25.51, 118.07, 25.51, 113.74, 28.75, 103.47, 35.78, 98.6, 41.73, 101.31, 43.35, 109.42, 39.57, 121.85, 42.27, 125.1, 44.98, 136.45, 44.98, 145.1, 46.6, 152.67, 43.89, 154.84, 43.89, 168.9, 54.17, 170.52, 49.84, 175.38, 46.06, 173.76, 48.22, 184.04, 45.52, 190.52, 41.19, 216.48, 34.7, 246.22, 33.08, 263.52, 36.32, 268.19, 48.76, 274.14, 46.06, 275.76, 44.98, 278.47, 34.16, 281.17, 30.38, 273.06, 25.51, 268.73, 18.48, 264.41, 19.56, 243.32, 20.64, 203.31, 17.4, 194.12, 10.91, 196.82, 7.67, 194.66, 11.45, 183.3, 11.99, 166.0, 8.21, 156.81, 10.91, 133.75, 15.24, 124.02, 20.64, 121.85, 22.81, 118.07]], "area": 4390.9229000000005, "iscrowd": 0, "image_id": 462123, "bbox": [7.67, 98.6, 46.5, 182.57], "category_id": 1, "id": 1260608}, {"segmentation": [[427.0, 123.1, 423.15, 131.75, 417.38, 129.83, 413.54, 85.59, 430.85, 61.55, 452.97, 73.09, 459.7, 101.94, 433.73, 113.48]], "area": 1900.5802999999999, "iscrowd": 0, "image_id": 119337, "bbox": [413.54, 61.55, 46.16, 70.2], "category_id": 1, "id": 1260870}, {"segmentation": [[205.25, 277.71, 209.1, 278.06, 211.19, 281.2, 212.59, 284.35, 213.99, 288.54, 214.34, 289.94, 216.09, 293.78, 217.83, 298.67, 216.44, 302.87, 216.44, 305.66, 216.09, 309.16, 218.18, 311.6, 221.68, 314.4, 223.42, 317.54, 219.58, 321.04, 219.23, 321.04, 217.83, 321.04, 216.79, 319.29, 216.44, 317.54, 215.74, 314.4, 213.99, 313.35, 212.24, 311.25, 211.19, 309.16, 210.5, 308.81, 209.8, 309.51, 209.45, 312.3, 208.75, 316.84, 208.75, 319.64, 209.1, 319.99, 208.05, 322.78, 203.86, 322.78, 202.46, 322.09, 203.86, 320.34, 203.86, 319.29, 204.56, 314.4, 204.56, 310.55, 204.21, 307.06, 203.51, 303.57, 204.56, 300.42, 201.76, 293.08, 200.71, 291.69, 203.51, 288.89, 203.86, 286.44, 204.56, 284.35, 204.56, 280.15, 204.56, 278.41, 205.95, 278.41]], "area": 481.58400000000023, "iscrowd": 0, "image_id": 575792, "bbox": [200.71, 277.71, 22.71, 45.07], "category_id": 1, "id": 1260977}, {"segmentation": [[500.22, 161.82, 500.22, 156.89, 504.49, 154.27, 508.1, 152.63, 510.39, 153.61, 512.36, 156.24, 513.02, 160.83, 512.36, 164.12, 508.75, 167.07, 511.38, 172.0, 514.01, 176.59, 514.66, 178.89, 517.29, 180.53, 520.57, 180.53, 516.96, 186.11, 515.98, 186.44, 514.66, 188.08, 511.38, 208.76, 506.13, 208.43, 507.44, 227.8, 509.08, 235.68, 513.68, 248.15, 513.02, 250.78, 509.41, 250.78, 501.86, 251.76, 502.84, 246.84, 501.53, 238.96, 499.23, 241.26, 499.23, 246.18, 499.56, 249.47, 500.55, 250.45, 499.89, 252.75, 493.98, 250.78, 486.43, 234.69, 487.42, 221.24, 497.92, 219.92, 499.89, 216.31, 493.98, 216.97, 497.26, 211.39, 497.26, 206.79, 495.62, 205.15, 495.29, 204.82, 493.98, 203.18, 494.97, 196.29, 494.97, 192.35, 495.29, 188.41, 496.28, 183.48, 494.64, 179.55, 493.0, 175.93, 493.98, 171.67, 496.61, 167.4, 498.58, 165.43, 499.89, 164.12]], "area": 1662.9449499999985, "iscrowd": 0, "image_id": 462123, "bbox": [486.43, 152.63, 34.14, 100.12], "category_id": 1, "id": 1262079}, {"segmentation": [[275.12, 194.08, 272.43, 182.0, 265.99, 176.36, 258.2, 175.29, 257.67, 171.26, 260.35, 166.16, 260.08, 160.53, 253.64, 153.55, 249.88, 149.79, 242.9, 151.67, 243.97, 195.16]], "area": 901.0351999999999, "iscrowd": 0, "image_id": 157923, "bbox": [242.9, 149.79, 32.22, 45.37], "category_id": 1, "id": 1262140}, {"segmentation": [[0.56, 223.17, 3.76, 219.54, 4.19, 210.56, 7.18, 202.01, 8.25, 196.46, 8.89, 192.61, 8.68, 189.62, 9.32, 185.13, 9.32, 181.93, 7.39, 178.72, 5.26, 178.29, 1.41, 180.43, 0.13, 185.56]], "area": 269.93379999999996, "iscrowd": 0, "image_id": 539099, "bbox": [0.13, 178.29, 9.19, 44.88], "category_id": 1, "id": 1262151}, {"segmentation": [[349.34, 204.95, 349.91, 200.96, 350.19, 197.26, 349.91, 194.69, 349.62, 191.84, 348.77, 188.14, 348.48, 185.86, 348.48, 184.72, 348.48, 181.87, 348.2, 179.59, 345.63, 176.17, 344.21, 176.45, 343.35, 173.6, 342.78, 171.32, 342.5, 167.33, 342.5, 163.62, 345.06, 157.07, 347.63, 153.93, 352.76, 151.65, 354.47, 143.1, 356.18, 142.25, 359.88, 141.96, 361.59, 143.96, 362.16, 146.52, 362.73, 148.8, 364.73, 152.22, 366.72, 154.22, 369.0, 155.93, 374.42, 163.62, 372.14, 166.19, 369.86, 169.04, 367.86, 171.03, 363.87, 174.46, 363.02, 179.02, 363.3, 183.86, 361.88, 185.0, 359.88, 190.7, 361.02, 196.69, 361.31, 200.11, 361.31, 202.96, 361.02, 206.09, 361.88, 208.09, 362.16, 210.66, 361.02, 213.22, 351.9, 216.07, 350.76, 215.22, 352.76, 212.08, 355.89, 208.94, 356.46, 206.09, 356.18, 199.54, 355.32, 195.26, 354.75, 192.13, 353.33, 198.97, 354.75, 202.39, 354.75, 204.38, 353.33, 206.38, 351.62, 206.66, 350.48, 206.66, 350.19, 206.38]], "area": 1110.9748499999998, "iscrowd": 0, "image_id": 23015, "bbox": [342.5, 141.96, 31.92, 74.11], "category_id": 1, "id": 1262769}, {"segmentation": [[567.87, 327.77, 514.52, 377.31, 514.52, 377.31, 514.52, 396.37, 512.61, 408.76, 501.18, 409.71, 480.22, 402.09, 478.31, 374.45, 510.71, 327.77, 525.0, 314.43]], "area": 3773.683899999999, "iscrowd": 0, "image_id": 506417, "bbox": [478.31, 314.43, 89.56, 95.28], "category_id": 1, "id": 1262900}, {"segmentation": [[333.58, 454.78, 341.87, 441.32, 386.41, 428.89, 435.1, 401.95, 488.97, 401.95, 534.55, 417.49, 536.62, 395.73, 554.24, 339.79, 583.24, 318.04, 638.15, 322.18, 640.0, 409.2, 640.0, 454.78, 614.32, 455.82, 488.97, 455.82, 362.58, 455.82, 342.9, 455.82, 329.43, 455.82, 329.43, 450.64]], "area": 20909.206699999995, "iscrowd": 0, "image_id": 480818, "bbox": [329.43, 318.04, 310.57, 137.78], "category_id": 1, "id": 1262930}, {"segmentation": [[156.85, 229.93, 156.85, 211.83, 169.12, 204.24, 170.28, 194.9, 170.28, 178.55, 170.28, 151.69, 164.44, 142.93, 162.11, 133.0, 151.01, 119.57, 145.76, 112.57, 131.16, 104.98, 128.24, 100.3, 131.16, 90.38, 126.49, 78.7, 124.74, 78.12, 118.9, 75.2, 104.3, 77.53, 94.38, 93.88, 98.46, 113.73, 86.78, 121.32, 81.53, 142.93, 88.54, 150.52, 92.04, 151.69, 87.37, 162.78, 83.87, 191.78, 83.28, 204.04, 93.21, 208.71, 93.79, 199.37, 90.87, 190.61, 99.05, 174.26, 100.21, 156.75, 102.55, 170.18, 105.47, 176.6, 102.55, 192.95, 99.63, 205.21, 108.39, 202.29, 112.48, 196.45, 120.65, 199.37, 127.07, 198.79, 131.16, 206.38, 134.08, 213.97, 134.66, 227.98]], "area": 8676.7778, "iscrowd": 0, "image_id": 1431, "bbox": [81.53, 75.2, 88.75, 154.73], "category_id": 1, "id": 1263446}, {"segmentation": [[532.67, 121.39, 534.11, 120.43, 534.34, 119.95, 534.58, 116.84, 534.58, 113.49, 533.87, 109.9, 532.19, 107.03, 530.75, 102.72, 529.56, 96.98, 528.84, 97.22, 527.64, 97.94, 525.97, 90.99, 525.97, 88.36, 525.97, 82.62, 525.97, 79.27, 527.88, 74.24, 528.84, 73.28, 530.52, 71.13, 530.52, 68.97, 531.47, 66.1, 532.91, 65.38, 535.78, 65.38, 536.98, 67.54, 536.98, 69.93, 538.41, 71.85, 541.05, 73.28, 543.2, 75.44, 545.35, 78.31, 546.79, 82.86, 547.27, 85.25, 547.99, 86.93, 546.79, 89.08, 545.83, 91.95, 544.88, 94.82, 543.92, 100.81, 543.68, 107.03, 543.44, 118.28, 542.48, 123.55, 536.98, 124.02, 531.23, 123.78]], "area": 804.4511999999991, "iscrowd": 0, "image_id": 522150, "bbox": [525.97, 65.38, 22.02, 58.64], "category_id": 1, "id": 1263523}, {"segmentation": [[425.35, 330.04, 426.98, 328.59, 427.16, 326.59, 426.98, 324.23, 426.98, 322.6, 426.98, 321.69, 426.98, 319.88, 426.98, 318.79, 425.35, 316.25, 424.44, 314.08, 424.44, 312.08, 424.44, 310.81, 424.44, 307.55, 424.62, 305.91, 424.99, 304.64, 426.26, 302.29, 426.62, 300.83, 426.62, 298.11, 426.62, 297.21, 427.89, 296.12, 428.61, 296.12, 431.15, 298.48, 432.6, 299.38, 433.69, 301.74, 436.05, 304.1, 437.68, 307.36, 436.59, 310.27, 436.05, 311.9, 436.05, 314.98, 436.23, 318.25, 436.23, 320.6, 437.86, 322.06, 439.13, 323.87, 439.68, 325.14, 439.86, 326.41, 439.86, 328.22, 438.95, 329.85, 436.59, 329.67, 435.87, 325.68, 435.14, 324.59, 434.24, 323.14, 433.15, 321.33, 432.6, 316.61, 431.88, 316.61, 429.7, 321.15, 429.88, 324.59, 429.88, 326.23, 429.88, 328.4, 427.71, 330.94, 424.44, 330.94, 425.53, 329.31]], "area": 293.3485999999997, "iscrowd": 0, "image_id": 45124, "bbox": [424.44, 296.12, 15.42, 34.82], "category_id": 1, "id": 1264415}, {"segmentation": [[195.61, 515.13, 197.54, 514.11, 198.33, 514.22, 199.02, 510.93, 202.08, 510.93, 201.74, 510.25, 201.4, 508.89, 202.53, 507.08, 205.37, 506.51, 207.18, 508.32, 206.61, 511.27, 204.91, 512.63, 206.16, 515.92, 206.05, 520.01, 205.14, 531.91, 203.67, 531.91, 199.02, 520.91, 198.67, 517.17, 196.18, 515.01]], "area": 142.26924999999972, "iscrowd": 0, "image_id": 358100, "bbox": [195.61, 506.51, 11.57, 25.4], "category_id": 1, "id": 1264588}, {"segmentation": [[619.12, 263.64, 621.5, 258.09, 619.51, 254.12, 615.15, 255.71, 613.17, 262.06, 612.37, 277.92, 612.37, 283.87, 618.32, 285.46, 619.12, 305.29, 622.29, 304.5, 621.5, 289.43, 623.48, 281.49, 622.29, 270.39, 621.5, 265.63]], "area": 328.4505999999995, "iscrowd": 0, "image_id": 165347, "bbox": [612.37, 254.12, 11.11, 51.17], "category_id": 1, "id": 1265051}, {"segmentation": [[503.19, 173.31, 504.89, 168.92, 506.45, 167.37, 505.88, 164.11, 508.43, 161.98, 509.7, 161.7, 512.4, 163.97, 512.25, 166.09, 511.12, 167.37, 512.96, 170.76, 513.53, 173.03]], "area": 74.99150000000016, "iscrowd": 0, "image_id": 425652, "bbox": [503.19, 161.7, 10.34, 11.61], "category_id": 1, "id": 1265195}, {"segmentation": [[477.89, 245.79, 475.06, 225.11, 473.07, 223.13, 470.53, 224.83, 470.24, 226.81, 460.61, 224.26, 460.61, 215.76, 451.55, 216.05, 449.56, 207.55, 450.98, 196.22, 453.25, 186.3, 458.06, 181.21, 462.59, 174.41, 463.73, 171.58, 461.74, 165.06, 461.46, 156.56, 469.39, 149.76, 478.17, 149.48, 484.4, 151.75, 491.2, 157.7, 494.89, 162.23, 492.05, 163.93, 490.64, 166.19, 490.92, 170.16, 488.65, 170.44, 488.09, 174.97, 487.24, 176.11, 483.55, 177.24, 482.42, 179.79, 487.8, 187.72, 492.05, 194.8, 492.34, 201.03, 502.53, 198.77, 515.56, 199.33, 522.64, 200.18, 522.36, 204.43, 528.31, 205.28, 534.26, 206.98, 539.92, 212.08, 536.24, 218.6, 532.28, 218.03, 531.43, 220.01, 528.03, 216.05, 498.57, 219.73, 492.62, 218.6, 490.64, 222.84, 489.79, 223.41, 509.33, 224.54, 511.88, 227.66, 521.79, 229.08, 530.86, 233.04, 533.13, 250.04, 534.82, 260.23, 538.79, 276.1, 544.74, 280.06, 552.1, 279.21, 556.64, 276.66, 558.62, 280.06, 553.24, 288.28, 545.59, 290.83, 541.34, 291.68, 540.77, 293.94, 533.69, 295.08, 530.01, 291.11, 527.74, 282.61, 524.34, 276.95, 517.26, 255.99, 516.7, 243.52, 507.35, 247.21, 495.17, 251.74, 486.39, 249.19, 479.59, 246.64]], "area": 5246.49065, "iscrowd": 0, "image_id": 511988, "bbox": [449.56, 149.48, 109.06, 145.6], "category_id": 1, "id": 1265342}, {"segmentation": [[7.04, 326.55, 7.18, 324.06, 8.79, 323.62, 8.79, 322.3, 8.94, 320.84, 10.99, 320.1, 11.87, 320.98, 12.75, 321.72, 12.75, 323.18, 13.04, 324.21, 14.22, 325.96, 14.36, 328.16, 10.55, 327.87, 7.48, 327.28, 6.74, 326.55], [7.77, 331.39, 7.18, 334.02, 8.35, 335.64, 12.02, 335.34, 15.09, 334.9, 14.66, 331.24, 10.55, 330.95, 7.33, 330.95], [13.92, 339.74, 14.66, 341.79, 15.97, 342.08, 16.41, 341.2, 16.27, 339.45, 15.97, 339.01, 14.95, 338.86, 14.36, 339.15]], "area": 76.5796499999999, "iscrowd": 0, "image_id": 64908, "bbox": [6.74, 320.1, 9.67, 21.98], "category_id": 1, "id": 1265611}, {"segmentation": [[589.58, 333.74, 600.16, 305.85, 604.97, 276.04, 622.28, 240.45, 630.94, 226.02, 633.82, 193.32, 640.0, 190.44, 639.6, 313.55, 638.63, 421.27, 632.86, 423.19, 613.63, 422.23, 593.43, 402.99, 593.43, 386.64, 587.66, 373.18, 601.12, 352.98, 612.67, 333.74, 593.43, 333.74]], "area": 7339.5800000000045, "iscrowd": 0, "image_id": 333356, "bbox": [587.66, 190.44, 52.34, 232.75], "category_id": 1, "id": 1265942}, {"segmentation": [[563.46, 611.16, 564.69, 596.08, 558.84, 574.85, 558.84, 567.77, 556.69, 562.54, 556.69, 555.77, 560.38, 547.46, 564.69, 543.46, 560.99, 537.92, 563.46, 533.61, 565.61, 532.38, 567.46, 531.77, 572.38, 534.54, 574.53, 541.62, 574.23, 545.62, 580.07, 549.0, 586.23, 560.69, 585.61, 572.08, 585.92, 577.0, 580.69, 581.31, 579.77, 584.08, 579.77, 594.24, 579.77, 602.55, 582.53, 611.16, 582.53, 612.0]], "area": 1553.1223499999967, "iscrowd": 0, "image_id": 358100, "bbox": [556.69, 531.77, 29.54, 80.23], "category_id": 1, "id": 1266596}, {"segmentation": [[41.46, 247.91, 33.34, 242.42, 37.28, 242.42, 37.64, 240.74, 39.67, 237.52, 43.61, 240.39, 43.25, 240.62, 41.82, 244.92, 41.7, 246.59, 41.82, 247.67]], "area": 44.50189999999995, "iscrowd": 0, "image_id": 539099, "bbox": [33.34, 237.52, 10.27, 10.39], "category_id": 1, "id": 1266868}, {"segmentation": [[499.51, 171.8, 499.51, 170.36, 497.47, 166.4, 498.79, 163.28, 497.83, 161.61, 496.39, 161.01, 495.43, 161.37, 494.83, 163.16, 493.99, 166.04, 493.39, 166.52, 490.27, 167.6, 491.35, 173.84, 492.19, 174.32, 495.31, 175.16, 502.5, 175.16]], "area": 90.9882, "iscrowd": 0, "image_id": 425652, "bbox": [490.27, 161.01, 12.23, 14.15], "category_id": 1, "id": 1267193}, {"segmentation": [[463.0, 222.18, 460.89, 220.88, 459.92, 216.82, 461.05, 214.05, 468.36, 214.22, 470.31, 217.47, 469.34, 221.69, 470.31, 225.1, 472.1, 231.11, 471.94, 232.09, 469.5, 234.52, 468.69, 238.26, 469.18, 243.46, 469.83, 246.22, 470.8, 248.01, 474.38, 248.33, 474.05, 255.0, 469.66, 256.46, 468.04, 256.78, 467.71, 266.04, 463.98, 266.21, 464.14, 256.95, 462.03, 255.0, 458.78, 250.93, 458.29, 248.01, 458.62, 242.97, 457.8, 237.12, 456.83, 232.41, 457.32, 228.35, 458.62, 225.43, 461.38, 223.48]], "area": 528.7114500000002, "iscrowd": 0, "image_id": 485882, "bbox": [456.83, 214.05, 17.55, 52.16], "category_id": 1, "id": 1267408}, {"segmentation": [[615.84, 162.75, 613.4, 173.35, 618.49, 190.07, 620.53, 196.19, 612.58, 214.75, 608.71, 227.18, 607.69, 233.1, 602.79, 241.66, 600.14, 248.6, 597.29, 254.3, 593.01, 259.4, 594.64, 261.65, 598.51, 259.81, 602.79, 259.81, 604.43, 258.99, 605.65, 256.75, 611.36, 253.9, 612.79, 251.86, 616.46, 249.0, 623.59, 233.51, 627.87, 229.63, 633.18, 220.05, 635.01, 222.9, 633.18, 232.28, 633.18, 239.83, 637.25, 241.66, 637.25, 244.72, 631.75, 247.78, 632.97, 251.04, 636.03, 251.45, 636.23, 256.75, 630.73, 260.63, 632.77, 269.6, 635.62, 268.99, 637.25, 266.54, 639.7, 278.98, 640.0, 162.14, 637.05, 156.22, 625.02, 155.0, 619.31, 156.84, 616.66, 160.71]], "area": 2495.580750000003, "iscrowd": 0, "image_id": 24730, "bbox": [593.01, 155.0, 46.99, 123.98], "category_id": 1, "id": 1267439}, {"segmentation": [[46.4, 128.93, 54.78, 114.02, 60.37, 107.5, 67.52, 105.01, 74.66, 110.91, 80.25, 120.85, 86.46, 127.69, 87.4, 132.03, 87.71, 142.91, 84.91, 155.02, 81.49, 171.17, 81.49, 186.7, 66.59, 184.84, 52.61, 183.28, 41.12, 182.66, 39.25, 179.24, 38.01, 165.58, 37.39, 144.46, 40.19, 133.59]], "area": 3110.39015, "iscrowd": 0, "image_id": 149863, "bbox": [37.39, 105.01, 50.32, 81.69], "category_id": 1, "id": 1267459}, {"segmentation": [[95.81, 406.84, 90.41, 421.22, 88.62, 434.7, 91.76, 448.19, 94.01, 454.48, 95.81, 463.02, 97.61, 465.27, 102.55, 465.71, 99.4, 467.51, 89.52, 469.76, 92.21, 461.67, 86.82, 447.29, 80.08, 445.04, 74.23, 449.09, 67.94, 457.62, 66.14, 466.16, 59.4, 460.32, 61.2, 445.94, 64.8, 431.56, 68.39, 418.52, 74.23, 404.59, 80.53, 399.65, 81.87, 396.95, 82.77, 394.25, 85.92, 389.31, 84.12, 381.67, 91.31, 377.62, 94.46, 383.92, 98.05, 385.71, 101.2, 388.41, 101.65, 390.66]], "area": 1699.7313500000012, "iscrowd": 0, "image_id": 307462, "bbox": [59.4, 377.62, 43.15, 92.14], "category_id": 1, "id": 1267602}, {"segmentation": [[308.49, 206.49, 313.41, 205.65, 319.65, 206.37, 322.06, 205.89, 319.89, 201.93, 320.61, 198.69, 318.09, 196.89, 317.61, 194.72, 317.85, 190.28, 318.57, 186.8, 321.7, 190.88, 324.46, 191.48, 324.58, 189.44, 321.46, 187.04, 319.65, 185.0, 318.45, 182.24, 318.57, 175.39, 317.01, 174.67, 319.41, 172.15, 319.29, 170.23, 318.45, 168.67, 315.57, 167.23, 313.41, 169.75, 312.09, 174.91, 311.25, 177.19, 310.17, 186.92, 309.69, 205.41]], "area": 325.44599999999986, "iscrowd": 0, "image_id": 560350, "bbox": [308.49, 167.23, 16.09, 39.26], "category_id": 1, "id": 1267743}, {"segmentation": [[65.54, 141.91, 67.91, 139.37, 68.27, 134.47, 72.81, 131.2, 76.26, 130.47, 82.43, 135.19, 82.61, 141.0, 82.98, 142.82, 84.25, 142.82, 84.25, 162.79, 82.79, 174.23, 80.62, 183.86, 78.07, 194.39, 75.71, 200.0, 75.89, 210.9, 79.89, 214.89, 78.26, 215.44, 73.17, 213.8, 72.63, 216.71, 67.54, 216.89, 65.18, 213.8, 65.0, 194.19, 66.09, 188.56, 63.91, 180.76, 65.0, 170.59, 66.82, 170.06, 67.0, 161.7, 68.27, 151.53, 67.0, 146.63]], "area": 1249.7811500000003, "iscrowd": 0, "image_id": 560350, "bbox": [63.91, 130.47, 20.34, 86.42], "category_id": 1, "id": 1268019}, {"segmentation": [[293.59, 160.88, 299.0, 156.02, 298.1, 150.61, 298.82, 146.29, 300.98, 143.77, 303.5, 142.69, 307.64, 142.69, 309.98, 144.13, 311.06, 146.29, 311.24, 149.35, 310.88, 152.96, 309.62, 156.02, 309.26, 157.46, 310.88, 158.72, 315.39, 161.78, 313.05, 162.68, 299.0, 161.42]], "area": 244.83869999999985, "iscrowd": 0, "image_id": 377226, "bbox": [293.59, 142.69, 21.8, 19.99], "category_id": 1, "id": 1268318}, {"segmentation": [[484.54, 168.97, 485.8, 167.85, 486.5, 166.66, 487.9, 167.08, 489.02, 168.48, 490.27, 168.83, 490.41, 170.22, 490.27, 170.99, 490.2, 172.18, 490.2, 173.44, 490.27, 174.0, 490.2, 174.42, 489.43, 174.42, 489.09, 174.42, 487.13, 174.49, 485.8, 174.56, 485.66, 174.56, 484.82, 173.44, 484.68, 171.97, 484.47, 170.01, 484.68, 169.04]], "area": 36.972699999999826, "iscrowd": 0, "image_id": 425652, "bbox": [484.47, 166.66, 5.94, 7.9], "category_id": 1, "id": 1268364}, {"segmentation": [[1.9, 113.23, 14.88, 119.51, 15.3, 123.28, 15.3, 138.35, 13.62, 141.7, 22.83, 152.17, 27.02, 171.01, 28.69, 185.66, 28.69, 193.61, 23.67, 195.29, 17.81, 201.99, 23.67, 211.62, 22.41, 212.45, 39.58, 226.69, 38.74, 232.13, 10.69, 233.8, 0.64, 237.15, 0.23, 217.48, 0.0, 200.31, 0.23, 168.91, 0.23, 143.38, 0.0, 130.4]], "area": 2763.7772, "iscrowd": 0, "image_id": 1431, "bbox": [0.0, 113.23, 39.58, 123.92], "category_id": 1, "id": 1268387}, {"segmentation": [[487.09, 153.08, 489.92, 156.31, 489.92, 160.75, 489.51, 164.8, 489.51, 168.43, 486.28, 167.22, 490.73, 175.3, 489.11, 183.79, 489.11, 193.09, 491.94, 201.17, 491.94, 204.0, 487.49, 200.36, 484.26, 190.26, 482.64, 195.51, 479.41, 193.49, 478.2, 191.47, 472.54, 191.07, 473.75, 181.77, 473.35, 176.52, 472.54, 170.45, 474.56, 164.8, 481.03, 161.56, 481.03, 154.29, 483.86, 152.27], [420.26, 139.39, 424.07, 147.02, 423.12, 158.48, 420.26, 164.68, 422.17, 168.5, 422.64, 172.32, 437.44, 185.68, 441.73, 192.84, 453.19, 214.8, 447.46, 225.77, 434.58, 235.32, 422.64, 256.8, 422.17, 273.5, 418.82, 276.37, 416.92, 286.87, 413.57, 293.07, 415.96, 302.62, 412.62, 312.64, 415.01, 332.21, 411.19, 354.17, 393.05, 342.71, 389.71, 330.3, 388.28, 336.03, 374.91, 323.14, 375.39, 315.03, 360.6, 292.6, 363.46, 270.16, 367.75, 259.19, 362.11, 249.25, 368.62, 246.36, 370.79, 219.59, 380.2, 205.12, 379.47, 200.78, 391.05, 188.48, 391.77, 176.18, 397.56, 174.01, 386.71, 165.33, 385.26, 158.82, 385.26, 151.59, 391.77, 149.42, 397.56, 137.84, 416.37, 135.67], [345.47, 263.72, 336.79, 264.44, 333.17, 260.83, 336.07, 254.32, 341.13, 251.42, 344.75, 263.0], [360.2, 298.43, 373.95, 315.8, 371.78, 320.14, 365.27, 317.97, 360.2, 308.56], [394.2, 370.78, 382.63, 354.14, 368.88, 357.03, 367.44, 356.31, 376.12, 379.46, 371.05, 384.52, 373.95, 388.14, 360.2, 394.65, 374.67, 398.99, 384.8, 387.42, 389.14, 387.42, 389.86, 378.01, 394.2, 371.5]], "area": 11924.462049999998, "iscrowd": 0, "image_id": 462123, "bbox": [333.17, 135.67, 158.77, 263.32], "category_id": 1, "id": 1268415}, {"segmentation": [[205.83, 281.41, 206.13, 279.92, 210.01, 279.62, 213.6, 280.22, 217.78, 283.2, 217.78, 285.0, 221.96, 287.09, 224.35, 293.96, 225.25, 295.75, 229.73, 295.75, 234.21, 297.25, 238.69, 306.51, 240.49, 311.59, 230.93, 313.38, 230.93, 316.97, 227.94, 319.66, 229.73, 331.31, 229.13, 341.77, 228.54, 343.86, 226.44, 343.86, 222.86, 340.27, 220.17, 333.1, 219.27, 330.71, 217.78, 328.02, 219.27, 325.33, 215.09, 314.58, 213.3, 308.9, 214.19, 308.6, 216.88, 306.81, 216.88, 301.73, 215.09, 292.17, 215.09, 287.69, 210.91, 284.4, 207.32, 283.2, 202.54, 283.2, 203.44, 282.31]], "area": 810.7708999999996, "iscrowd": 0, "image_id": 332065, "bbox": [202.54, 279.62, 37.95, 64.24], "category_id": 1, "id": 1268577}, {"segmentation": [[564.02, 137.93, 566.42, 123.91, 568.83, 105.48, 583.65, 91.46, 588.06, 77.11, 602.88, 63.09, 614.9, 57.08, 640.0, 61.09, 640.0, 151.63, 640.0, 294.79, 638.94, 427.0, 562.02, 427.0, 554.81, 360.57, 552.0, 350.55, 539.18, 326.44, 543.19, 294.79, 547.99, 275.95, 550.0, 244.3, 550.4, 231.88, 558.41, 233.49, 565.62, 245.51, 570.43, 254.32, 574.84, 249.91, 570.83, 240.3, 580.85, 245.51, 590.06, 247.51, 596.87, 247.51, 593.67, 243.5, 581.25, 237.09, 597.27, 241.1, 604.89, 244.7, 604.09, 240.3, 604.09, 232.28, 590.86, 227.88, 579.65, 224.67, 582.05, 221.87, 594.47, 222.27, 591.26, 217.46, 578.84, 214.65, 567.23, 214.65, 563.22, 209.45, 552.8, 201.96, 548.39, 187.53, 544.39, 174.71, 543.19, 161.89, 543.59, 149.87, 547.19, 144.26, 554.4, 139.85, 560.01, 139.85, 562.42, 138.25]], "area": 29467.63535, "iscrowd": 0, "image_id": 119337, "bbox": [539.18, 57.08, 100.82, 369.92], "category_id": 1, "id": 1268627}, {"segmentation": [[561.26, 259.87, 559.1, 261.63, 557.21, 262.97, 555.73, 264.73, 555.05, 267.42, 555.05, 269.58, 555.59, 272.41, 556.13, 273.63, 557.21, 274.7, 559.64, 274.7, 563.41, 275.38, 569.35, 276.19, 570.96, 276.19, 568.94, 269.58, 568.94, 265.0, 570.02, 262.16, 570.56, 259.2, 570.56, 256.77, 570.29, 255.42, 569.21, 253.81, 567.73, 253.54, 565.17, 254.48, 562.74, 255.56, 561.53, 256.5, 560.85, 257.72, 560.99, 259.2, 560.99, 259.87], [558.83, 277.0, 558.7, 280.5, 558.56, 283.6, 558.7, 286.03, 559.1, 287.38, 559.23, 288.86, 560.18, 290.21, 560.45, 290.61, 560.45, 293.18, 560.31, 295.2, 558.83, 297.36, 558.43, 298.43, 558.29, 300.05, 560.72, 302.61, 563.82, 303.83, 565.98, 303.96, 566.65, 303.56, 566.52, 301.13, 566.11, 300.19, 566.52, 297.49, 566.65, 291.29, 567.73, 285.49, 568.94, 278.75, 558.96, 277.27]], "area": 454.7605000000002, "iscrowd": 0, "image_id": 165347, "bbox": [555.05, 253.54, 15.91, 50.42], "category_id": 1, "id": 1268666}, {"segmentation": [[115.68, 200.44, 116.34, 197.67, 117.76, 198.22, 118.55, 200.66, 119.65, 201.05, 119.81, 206.87, 119.96, 208.13, 118.39, 209.63, 119.81, 213.64, 120.04, 214.51, 119.1, 214.74, 117.84, 214.74, 117.92, 212.7, 117.45, 212.15, 116.42, 215.06, 115.01, 214.74, 116.03, 211.04, 115.87, 208.76, 116.11, 204.67, 115.87, 201.6]], "area": 55.32275000000001, "iscrowd": 0, "image_id": 409374, "bbox": [115.01, 197.67, 5.03, 17.39], "category_id": 1, "id": 1268757}, {"segmentation": [[140.8, 215.33, 140.57, 211.57, 139.64, 211.07, 139.75, 209.1, 139.21, 208.4, 139.02, 207.74, 139.13, 206.54, 139.17, 202.86, 140.92, 202.78, 140.8, 201.97, 140.64, 201.27, 140.8, 200.42, 141.3, 200.15, 142.04, 200.38, 141.92, 201.39, 141.88, 202.55, 141.96, 203.02, 142.85, 203.33, 143.78, 203.4, 143.82, 205.5, 142.85, 205.73, 142.77, 210.41, 142.39, 211.26, 142.5, 212.62, 142.62, 215.06, 142.31, 215.64, 140.88, 215.56]], "area": 42.298399999999965, "iscrowd": 0, "image_id": 409374, "bbox": [139.02, 200.15, 4.8, 15.49], "category_id": 1, "id": 1269303}, {"segmentation": [[139.83, 421.15, 134.68, 402.49, 134.68, 401.84, 138.86, 394.76, 142.72, 391.22, 138.54, 384.46, 138.54, 384.14, 135.64, 371.59, 147.87, 362.58, 151.09, 382.86, 157.53, 388.65, 163.0, 391.54, 166.86, 396.37, 159.13, 409.57, 153.02, 421.47, 140.79, 422.12]], "area": 1044.7689500000006, "iscrowd": 0, "image_id": 532414, "bbox": [134.68, 362.58, 32.18, 59.54], "category_id": 1, "id": 1269550}, {"segmentation": [[70.16, 263.44, 70.42, 263.1, 70.71, 263.02, 71.27, 263.02, 71.52, 263.53, 71.56, 263.87, 71.52, 264.55, 71.61, 265.02, 71.56, 265.48, 71.86, 265.78, 72.37, 266.5, 73.05, 267.27, 73.22, 269.01, 73.77, 269.22, 73.99, 271.18, 72.41, 271.43, 71.86, 270.92, 69.27, 270.84, 69.31, 266.72, 70.25, 265.36, 70.12, 264.21, 70.29, 263.44]], "area": 24.03899999999999, "iscrowd": 0, "image_id": 274881, "bbox": [69.27, 263.02, 4.72, 8.41], "category_id": 1, "id": 1269949}, {"segmentation": [[312.41, 532.58, 311.95, 525.25, 312.41, 522.96, 310.12, 520.67, 311.03, 515.64, 316.99, 515.64, 319.28, 519.3, 321.11, 521.59, 320.65, 534.87, 317.44, 540.37, 315.61, 549.07, 311.49, 549.07, 313.78, 541.28, 314.7, 536.7, 310.12, 531.67]], "area": 226.44435000000047, "iscrowd": 0, "image_id": 181149, "bbox": [310.12, 515.64, 10.99, 33.43], "category_id": 1, "id": 1270192}, {"segmentation": [[593.01, 370.03, 587.11, 375.93, 573.03, 373.66, 576.21, 363.67, 570.77, 354.14, 564.86, 317.38, 561.69, 281.06, 565.32, 275.16, 563.05, 254.74, 560.78, 237.94, 559.87, 230.23, 558.51, 220.7, 573.94, 211.16, 582.11, 207.99, 582.57, 203.45, 576.21, 195.28, 577.12, 189.38, 588.47, 179.39, 599.36, 176.21, 609.8, 185.29, 612.52, 195.73, 608.44, 207.53, 606.62, 207.53, 618.42, 218.43, 621.15, 223.87, 619.79, 283.79, 612.52, 294.23, 608.89, 293.32, 600.27, 346.43, 592.55, 359.59, 592.55, 365.94]], "area": 8290.897999999992, "iscrowd": 0, "image_id": 221328, "bbox": [558.51, 176.21, 62.64, 199.72], "category_id": 1, "id": 1270553}, {"segmentation": [[327.62, 471.03, 334.38, 474.25, 338.88, 474.57, 340.17, 472.0, 340.81, 469.1, 342.74, 462.99, 345.64, 454.3, 346.93, 451.72, 350.14, 452.37, 350.79, 457.52, 352.72, 463.31, 353.04, 468.14, 352.72, 472.32, 346.28, 474.89, 342.74, 475.54, 341.78, 478.43, 348.86, 478.75, 354.97, 478.11, 357.22, 477.79, 358.19, 476.18, 356.58, 460.73, 355.94, 455.58, 355.29, 450.76, 355.94, 441.75, 356.26, 436.92, 356.9, 433.06, 345.0, 433.06, 341.46, 435.63, 341.78, 449.47, 339.85, 456.23, 336.31, 462.02, 334.05, 467.49, 328.58, 467.49, 326.01, 471.03], [338.88, 416.32, 351.43, 415.68, 356.26, 413.43, 358.19, 408.92, 358.19, 404.1, 355.94, 397.98, 353.36, 394.44, 351.11, 389.94, 347.25, 383.5, 339.85, 383.18, 337.92, 390.9, 342.1, 396.37, 341.46, 400.23, 338.88, 408.28, 334.7, 414.07, 337.27, 417.29]], "area": 1113.5426500000003, "iscrowd": 0, "image_id": 334097, "bbox": [326.01, 383.18, 32.18, 95.57], "category_id": 1, "id": 1270674}, {"segmentation": [[164.62, 129.58, 172.06, 128.03, 170.51, 114.4, 172.68, 106.35, 172.68, 101.7, 174.85, 97.37, 174.54, 93.34, 172.37, 84.97, 171.44, 83.74, 169.27, 82.5, 170.51, 75.99, 168.65, 72.58, 162.77, 73.51, 160.6, 78.78, 158.12, 84.66, 154.71, 94.89, 156.26, 103.87, 159.36, 112.54, 160.29, 122.46]], "area": 745.0559, "iscrowd": 0, "image_id": 517261, "bbox": [154.71, 72.58, 20.14, 57.0], "category_id": 1, "id": 1270694}, {"segmentation": [[323.34, 128.9, 328.57, 127.69, 331.39, 127.69, 336.22, 128.9, 340.24, 132.12, 341.85, 136.95, 341.45, 141.37, 341.45, 145.8, 339.43, 151.03, 337.42, 153.85, 334.61, 157.07, 332.59, 157.87, 329.78, 161.09, 328.17, 163.91, 327.76, 170.35, 326.56, 174.38, 326.15, 177.19, 327.36, 189.27, 323.74, 192.08, 322.13, 192.49, 320.52, 191.28, 319.31, 184.03, 319.71, 176.39, 319.71, 169.14, 320.52, 161.9, 320.52, 155.46, 320.52, 147.41, 321.32, 140.17, 320.52, 135.34, 323.34, 130.91, 323.74, 130.1, 324.14, 130.1]], "area": 809.0843500000011, "iscrowd": 0, "image_id": 191918, "bbox": [319.31, 127.69, 22.54, 64.8], "category_id": 1, "id": 1270905}, {"segmentation": [[407.06, 259.51, 393.14, 259.51, 387.44, 253.18, 391.24, 205.07, 392.5, 189.24, 396.93, 141.76, 397.57, 136.07, 407.06, 127.84, 407.7, 111.38, 410.23, 107.58, 420.36, 103.78, 427.95, 111.38, 427.32, 122.77, 424.16, 125.3, 426.69, 141.76, 429.85, 159.49, 451.38, 155.69, 455.18, 156.32, 456.44, 163.29, 431.75, 163.92, 430.49, 175.95, 433.65, 183.55, 426.69, 188.61, 414.66, 239.26, 412.76, 249.38, 420.36, 256.35, 420.36, 257.61, 411.49, 260.15]], "area": 4648.3593, "iscrowd": 0, "image_id": 221328, "bbox": [387.44, 103.78, 69.0, 156.37], "category_id": 1, "id": 1271209}, {"segmentation": [[316.86, 342.49, 318.36, 337.56, 318.36, 334.35, 317.72, 332.42, 317.29, 330.28, 316.86, 326.42, 316.65, 322.78, 316.65, 321.07, 315.79, 319.35, 314.72, 315.93, 314.72, 313.14, 315.15, 311.21, 316.0, 309.5, 315.79, 306.29, 315.36, 304.57, 316.22, 303.07, 316.65, 302.43, 318.36, 301.79, 320.29, 301.79, 321.41, 305.43, 322.54, 306.84, 325.09, 308.82, 326.78, 312.21, 326.78, 314.05, 326.92, 316.45, 326.92, 319.14, 326.64, 321.12, 326.36, 322.81, 325.93, 324.51, 325.37, 325.92, 324.66, 329.88, 324.95, 332.42, 325.23, 333.84, 326.08, 337.23, 326.64, 338.36, 328.9, 342.03, 327.35, 342.46, 322.26, 343.45, 320.71, 343.73, 318.16, 344.29, 316.89, 344.43, 315.34, 344.01]], "area": 374.41719999999964, "iscrowd": 0, "image_id": 45124, "bbox": [314.72, 301.79, 14.18, 42.64], "category_id": 1, "id": 1271445}, {"segmentation": [[361.05, 272.14, 346.65, 270.89, 351.03, 253.99, 348.53, 243.35, 349.78, 227.7, 351.66, 222.69, 356.66, 223.31, 357.92, 232.08, 357.92, 237.09, 364.8, 238.96, 363.55, 243.97, 361.05, 247.1, 359.79, 267.13, 361.67, 270.89]], "area": 526.9574000000016, "iscrowd": 0, "image_id": 415946, "bbox": [346.65, 222.69, 18.15, 49.45], "category_id": 1, "id": 1271476}, {"segmentation": [[242.77, 354.78, 240.44, 318.66, 240.44, 306.43, 233.45, 300.02, 228.21, 292.45, 227.63, 280.8, 229.37, 274.97, 231.7, 272.06, 234.03, 259.83, 236.37, 241.77, 235.78, 233.61, 230.71, 227.19, 244.55, 198.37, 253.39, 192.22, 260.31, 190.3, 265.69, 185.68, 264.54, 183.38, 263.0, 181.46, 262.23, 178.77, 261.08, 174.92, 261.08, 171.46, 261.46, 166.08, 263.0, 163.39, 267.23, 160.32, 272.22, 158.78, 278.76, 159.17, 286.44, 168.39, 287.21, 170.7, 287.21, 178.0, 286.44, 182.61, 289.52, 185.68, 296.43, 189.53, 306.43, 197.6, 309.89, 206.44, 310.27, 220.27, 309.89, 228.35, 307.2, 234.5, 299.89, 241.41, 297.2, 255.25, 296.82, 267.16, 299.13, 281.0, 294.13, 307.52, 292.59, 326.35, 293.74, 345.95, 293.36, 356.33, 291.82, 362.86, 289.52, 370.93, 287.21, 376.7, 286.44, 378.24, 284.9, 378.62, 284.9, 381.31, 286.83, 384.77, 287.6, 388.23, 284.9, 392.07, 278.76, 396.3, 274.14, 397.84, 271.84, 396.3, 271.84, 390.92, 272.22, 386.69, 272.22, 381.69, 272.22, 376.31, 272.99, 370.93, 274.53, 365.55, 274.53, 358.63, 274.53, 341.72, 274.53, 331.73, 274.14, 325.2, 272.99, 310.98, 270.68, 299.83, 270.3, 298.29, 267.61, 298.68, 261.46, 308.29, 261.08, 313.28, 261.08, 314.82, 258.0, 326.74, 259.92, 337.5, 259.54, 349.8, 259.54, 355.94, 259.54, 360.94, 258.0, 366.32, 258.39, 374.78, 256.08, 377.85, 250.7, 377.47, 243.78, 370.55, 239.55, 362.86, 241.09, 359.79]], "area": 11250.3846, "iscrowd": 0, "image_id": 60771, "bbox": [227.63, 158.78, 82.64, 239.06], "category_id": 1, "id": 1271823}, {"segmentation": [[391.44, 39.3, 390.1, 30.27, 389.6, 28.1, 388.6, 24.41, 388.09, 21.4, 389.27, 15.72, 390.27, 11.87, 392.95, 8.36, 395.79, 6.85, 396.96, 5.51, 395.29, 1.5, 396.63, 0.0, 402.48, 0.0, 403.15, 0.16, 403.49, 0.49, 403.82, 1.66, 403.32, 4.51, 402.98, 5.51, 407.0, 9.02, 407.33, 10.36, 407.33, 14.04, 406.16, 20.07, 405.66, 22.07, 407.5, 28.6, 407.5, 31.78, 407.5, 39.64, 406.33, 39.64, 407.5, 43.32, 407.5, 51.85, 408.5, 53.19, 413.02, 54.53, 413.36, 56.7, 412.02, 58.54, 409.51, 58.54, 402.98, 58.71, 401.31, 57.2, 402.31, 55.53, 402.98, 51.18, 402.98, 47.0, 401.48, 39.14, 399.8, 40.31, 398.3, 41.98, 397.96, 41.98, 397.13, 43.65, 396.79, 44.32, 396.29, 45.66, 396.12, 49.01, 396.29, 53.36, 397.46, 56.37, 397.3, 57.87, 398.8, 59.71, 399.14, 60.88, 399.14, 61.39, 397.96, 62.56, 396.63, 62.72, 395.29, 62.89, 391.61, 61.22, 391.27, 59.55, 392.11, 55.7, 392.61, 51.68, 391.77, 46.33, 391.77, 40.98]], "area": 845.7453499999999, "iscrowd": 0, "image_id": 375659, "bbox": [388.09, 0.0, 25.27, 62.89], "category_id": 1, "id": 1272675}, {"segmentation": [[495.64, 173.43, 492.37, 168.85, 495.64, 162.96, 505.46, 165.58, 507.43, 171.47, 511.36, 179.33, 520.53, 189.8, 516.6, 192.42, 517.91, 196.35, 519.87, 201.59, 518.56, 213.38, 512.67, 214.69, 512.67, 220.58, 513.32, 228.44, 513.98, 240.88, 511.36, 253.98, 500.88, 253.98, 495.64, 255.94, 490.4, 252.67, 492.37, 238.92, 491.06, 227.79, 487.13, 209.45, 493.02, 198.32, 483.85, 188.49, 485.82, 179.98, 490.4, 174.74]], "area": 2172.676049999999, "iscrowd": 0, "image_id": 206427, "bbox": [483.85, 162.96, 36.68, 92.98], "category_id": 1, "id": 1272851}, {"segmentation": [[0.42, 173.18, 1.22, 132.83, 2.02, 131.23, 0.42, 127.63, 0.82, 107.26, 5.22, 104.06, 11.21, 103.26, 21.2, 108.86, 21.6, 119.24, 20.4, 123.64, 18.32, 125.53, 17.19, 131.58, 24.37, 133.84, 32.68, 138.38, 37.79, 151.23, 38.19, 166.01, 36.19, 172.4, 35.79, 178.0]], "area": 2023.002, "iscrowd": 0, "image_id": 149863, "bbox": [0.42, 103.26, 37.77, 74.74], "category_id": 1, "id": 1273989}, {"segmentation": [[48.96, 238.63, 47.25, 241.2, 44.26, 244.83, 46.4, 249.96, 56.44, 253.16, 54.73, 248.46, 53.88, 244.83, 53.88, 242.48, 53.24, 239.27, 49.6, 239.91]], "area": 100.28445000000006, "iscrowd": 0, "image_id": 539099, "bbox": [44.26, 238.63, 12.18, 14.53], "category_id": 1, "id": 1274601}, {"segmentation": [[561.31, 327.75, 560.44, 319.25, 559.4, 314.74, 558.7, 309.2, 559.57, 303.82, 560.09, 302.26, 560.96, 299.14, 563.91, 298.62, 565.29, 299.83, 565.29, 302.09, 565.81, 304.69, 566.33, 307.81, 567.03, 312.14, 567.03, 315.78, 565.99, 323.76, 565.99, 326.54, 566.68, 328.1, 564.95, 327.75, 564.25, 317.0, 562.0, 316.13, 562.69, 319.77, 562.69, 322.03, 562.69, 323.59, 563.56, 328.27, 561.48, 327.92]], "area": 162.20244999999923, "iscrowd": 0, "image_id": 404964, "bbox": [558.7, 298.62, 8.33, 29.65], "category_id": 1, "id": 1274773}, {"segmentation": [[639.06, 271.66, 639.06, 261.31, 638.12, 254.72, 626.83, 250.02, 612.72, 249.08, 603.31, 250.02, 596.72, 263.19, 592.96, 269.78, 577.9, 267.9, 593.9, 273.54, 597.66, 275.42, 599.54, 284.83, 598.6, 294.24, 592.96, 299.89, 579.78, 313.06, 562.85, 328.12, 545.91, 346.0, 527.09, 361.99, 513.91, 374.23, 506.39, 379.87, 512.03, 389.28, 520.5, 392.11, 526.15, 388.34, 532.73, 379.87, 538.38, 373.29, 551.55, 370.46, 570.37, 361.99, 600.48, 345.06, 603.31, 353.53, 608.01, 363.88, 611.78, 373.29, 610.84, 376.11, 601.43, 381.75, 597.66, 385.52, 597.66, 392.11, 603.31, 397.75, 604.25, 399.53, 599.54, 407.06, 582.61, 415.53, 572.26, 427.76, 562.85, 445.64, 563.79, 460.7, 563.79, 475.75, 564.73, 481.0, 609.89, 481.0, 619.3, 469.17, 624.01, 456.93, 626.83, 447.52, 637.18, 430.59]], "area": 13184.685949999992, "iscrowd": 0, "image_id": 404964, "bbox": [506.39, 249.08, 132.67, 231.92], "category_id": 1, "id": 1274828}, {"segmentation": [[380.48, 157.34, 387.61, 149.77, 396.07, 146.21, 401.86, 144.87, 399.63, 136.41, 396.07, 134.18, 397.41, 125.28, 399.63, 119.04, 408.99, 115.92, 417.0, 116.81, 420.12, 122.6, 421.9, 126.17, 420.57, 137.3, 418.78, 142.65, 419.23, 145.32, 420.12, 159.12, 422.79, 169.81, 423.24, 188.82, 418.78, 215.71, 399.63, 217.49, 392.95, 221.95, 386.72, 231.3, 384.05, 246.89, 384.05, 261.14, 380.93, 273.16, 374.25, 272.72, 371.58, 264.26, 376.03, 252.23, 373.8, 238.87, 371.13, 228.18, 370.24, 226.84, 365.79, 227.29, 365.79, 219.27, 366.23, 216.6, 377.37, 212.59, 380.04, 209.92, 372.02, 182.0, 370.24, 177.17, 372.91, 169.16]], "area": 4558.816400000001, "iscrowd": 0, "image_id": 149863, "bbox": [365.79, 115.92, 57.45, 157.24], "category_id": 1, "id": 1275031}, {"segmentation": [[576.43, 449.61, 566.99, 415.29, 565.27, 381.82, 554.97, 329.47, 537.81, 303.72, 518.93, 303.72, 500.05, 290.85, 500.91, 270.26, 496.62, 253.09, 486.32, 243.65, 471.73, 238.5, 464.01, 235.93, 450.28, 238.5, 445.98, 247.09, 440.84, 264.25, 445.98, 282.27, 464.86, 318.31, 463.15, 324.32, 455.42, 332.04, 444.27, 342.34, 438.26, 349.21, 421.1, 348.35, 406.51, 340.63, 397.93, 337.19, 391.06, 335.48, 379.91, 333.76, 371.32, 332.04, 361.03, 335.48, 357.59, 345.77, 362.74, 361.22, 395.35, 364.65, 409.94, 372.38, 419.38, 376.67, 430.54, 392.12, 430.54, 416.14, 418.52, 427.3, 449.42, 450.47]], "area": 23619.469449999997, "iscrowd": 0, "image_id": 286619, "bbox": [357.59, 235.93, 218.84, 214.54], "category_id": 1, "id": 1275138}, {"segmentation": [[115.85, 95.27, 121.48, 84.01, 126.05, 81.9, 122.54, 79.44, 122.18, 76.28, 127.11, 70.3, 131.33, 73.46, 134.14, 77.68, 132.74, 82.61, 132.74, 87.18, 135.9, 93.86, 136.96, 104.41, 136.96, 110.75, 136.25, 114.26, 135.2, 122.0, 134.14, 128.68, 132.74, 131.85, 130.63, 133.61, 128.16, 132.9, 127.46, 127.98, 126.05, 127.63, 126.41, 136.77, 120.07, 137.83, 116.91, 135.72, 119.72, 130.79, 122.18, 128.68, 120.07, 125.52, 120.78, 115.32, 120.78, 107.93, 119.37, 101.6, 116.91, 97.73]], "area": 910.7068000000003, "iscrowd": 0, "image_id": 517261, "bbox": [115.85, 70.3, 21.11, 67.53], "category_id": 1, "id": 1275150}, {"segmentation": [[235.08, 187.79, 237.17, 204.48, 239.14, 218.42, 239.91, 228.41, 238.82, 232.8, 239.58, 240.16, 240.57, 248.06, 239.14, 248.83, 236.18, 250.59, 238.49, 258.71, 240.24, 260.14, 243.1, 261.02, 244.19, 267.71, 246.5, 279.35, 251.0, 293.07, 253.42, 308.44, 255.5, 327.98, 257.92, 344.23, 259.56, 355.75, 260.11, 374.53, 259.56, 375.0, 248.91, 375.0, 230.25, 375.0, 229.53, 373.15, 228.37, 360.84, 222.21, 352.35, 217.88, 348.86, 204.57, 345.36, 194.42, 343.7, 191.93, 348.19, 188.27, 357.51, 187.6, 364.0, 184.61, 365.33, 180.78, 374.98, 177.28, 375.0, 175.45, 370.65, 174.79, 355.68, 174.79, 333.72, 174.46, 310.25, 219.39, 310.42, 226.45, 305.38, 226.96, 301.34, 227.21, 263.51, 224.94, 256.7, 221.91, 255.19, 203.5, 252.42, 195.68, 253.42, 187.61, 262.0, 174.25, 274.11, 170.39, 267.57, 167.23, 261.08, 165.4, 256.09, 165.23, 248.6, 168.06, 235.62, 168.4, 230.13, 167.73, 226.3, 160.41, 223.14, 152.59, 218.81, 150.59, 214.49, 150.43, 209.5, 150.43, 202.17, 150.43, 198.02, 151.09, 193.02, 152.92, 189.7, 153.75, 188.03, 157.25, 186.7, 164.2, 186.2, 174.85, 179.18, 175.84, 176.54, 178.04, 173.25, 178.15, 171.27, 177.71, 169.52, 173.32, 162.38, 166.4, 165.35, 163.44, 165.79, 160.03, 164.47, 155.42, 159.53, 152.68, 155.36, 147.52, 149.65, 141.92, 150.09, 135.66, 151.73, 127.54, 149.98, 123.92, 144.27, 123.59, 140.87, 127.43, 134.28, 135.88, 127.69, 139.29, 115.84, 138.52, 108.48, 142.91, 104.86, 154.87, 98.93, 159.92, 98.16, 169.47, 98.16, 175.95, 99.15, 186.71, 104.09, 191.65, 108.81, 192.31, 116.72, 192.31, 120.12, 193.62, 123.96, 204.93, 133.51, 215.36, 144.71, 222.5, 159.42, 229.19, 171.49, 234.68, 186.75]], "area": 16574.9486, "iscrowd": 0, "image_id": 294416, "bbox": [123.59, 98.16, 136.52, 276.84], "category_id": 1, "id": 1275309}, {"segmentation": [[447.17, 64.01, 453.92, 64.41, 451.94, 60.83, 442.79, 48.5, 437.62, 37.37, 442.0, 32.2, 450.74, 29.42, 464.26, 29.42, 461.87, 15.9, 479.37, 16.7, 489.31, 20.68, 490.9, 33.0, 488.91, 52.88, 486.13, 69.18, 484.14, 74.35, 473.01, 70.77, 473.4, 64.41, 473.4, 53.67, 471.42, 45.72, 454.32, 44.53, 461.87, 60.03, 466.25, 70.37, 447.56, 74.35, 445.97, 68.78, 446.77, 64.41], [444.78, 1.59, 486.52, 1.2, 487.32, 11.93, 487.32, 11.93, 487.72, 13.12, 468.24, 13.52, 459.49, 8.75, 447.17, 6.76, 447.96, 4.38]], "area": 2278.97445, "iscrowd": 0, "image_id": 524522, "bbox": [437.62, 1.2, 53.28, 73.15], "category_id": 1, "id": 1275393}, {"segmentation": [[337.26, 168.9, 335.53, 164.95, 334.05, 161.75, 329.12, 161.01, 328.87, 164.21, 332.33, 168.65, 335.29, 171.12, 335.78, 173.58]], "area": 49.79994999999993, "iscrowd": 0, "image_id": 511988, "bbox": [328.87, 161.01, 8.39, 12.57], "category_id": 1, "id": 1275610}, {"segmentation": [[327.21, 228.27, 327.48, 220.01, 329.18, 210.31, 331.02, 200.08, 332.46, 196.41, 335.21, 183.82, 337.84, 181.19, 345.7, 178.7, 359.74, 175.16, 364.2, 172.54, 366.82, 168.08, 366.16, 161.65, 362.62, 158.77, 361.31, 153.0, 362.49, 149.72, 362.49, 142.24, 366.95, 133.19, 372.46, 129.52, 379.28, 128.87, 387.93, 133.19, 392.52, 141.19, 394.23, 152.08, 394.23, 157.06, 394.23, 158.5, 390.82, 161.52, 389.9, 171.23, 395.28, 172.54, 411.93, 174.77, 416.79, 176.47, 425.18, 195.62, 431.21, 216.47, 432.0, 229.32, 430.16, 254.5, 425.18, 269.98, 423.61, 273.26, 427.02, 285.19, 424.13, 286.64, 418.89, 288.21, 416.13, 288.73, 415.61, 312.08, 414.69, 332.93, 413.25, 340.14, 413.38, 349.46, 415.61, 352.47, 414.43, 361.13, 413.77, 375.55, 412.72, 395.49, 411.54, 401.13, 412.72, 407.55, 420.46, 413.06, 425.31, 418.18, 424.79, 421.98, 422.03, 423.82, 417.7, 424.21, 412.46, 424.21, 406.43, 420.67, 401.7, 418.05, 397.64, 416.73, 389.64, 413.59, 388.85, 409.78, 389.25, 405.85, 390.03, 404.27, 390.16, 387.49, 391.08, 366.77, 391.48, 349.98, 392.26, 342.5, 389.38, 333.59, 389.11, 329.0, 387.41, 317.98, 386.23, 310.77, 384.39, 304.47, 381.51, 309.72, 378.49, 324.01, 374.82, 339.88, 372.59, 351.95, 371.67, 359.95, 371.93, 381.06, 372.2, 398.24, 370.89, 412.27, 367.74, 414.64, 366.43, 416.08, 365.77, 418.18, 360.52, 428.93, 355.41, 428.41, 350.82, 428.27, 348.07, 426.44, 347.15, 425.65, 346.49, 421.32, 346.75, 418.7, 348.07, 412.67, 349.64, 406.9, 348.85, 404.01, 348.46, 399.16, 347.93, 396.01, 347.8, 382.5, 348.59, 378.05, 349.9, 366.24, 349.9, 361.26, 350.03, 346.57, 350.43, 330.18, 348.59, 325.19, 349.11, 319.55, 348.98, 303.55, 349.64, 291.09, 350.82, 286.24, 352.13, 283.09, 350.03, 280.21, 345.97, 276.8, 338.23, 269.85, 333.11, 257.52, 332.2, 254.64, 327.34, 241.78, 326.82, 237.32]], "area": 18747.07125, "iscrowd": 0, "image_id": 444214, "bbox": [326.82, 128.87, 105.18, 300.06], "category_id": 1, "id": 1275873}, {"segmentation": [[490.51, 281.5, 491.42, 276.06, 492.2, 271.52, 492.2, 269.71, 492.2, 266.85, 499.72, 267.57, 500.36, 272.95, 501.14, 277.87, 502.31, 279.95, 502.7, 282.15, 505.55, 285.13, 505.81, 287.59, 505.81, 288.63, 501.4, 290.06, 498.81, 290.06, 497.64, 288.89, 496.73, 282.41, 494.92, 285.65, 494.27, 288.24, 493.88, 291.74, 493.23, 293.56, 491.94, 293.82, 490.51, 293.69, 489.34, 292.65, 488.96, 290.32, 489.22, 287.21], [500.79, 265.49, 501.48, 263.13, 501.48, 261.21, 501.48, 259.9, 501.48, 258.32, 502.62, 253.78, 501.66, 250.81, 498.16, 247.84, 495.46, 246.62, 494.76, 249.06, 494.41, 250.81, 493.45, 251.16, 491.52, 251.25, 489.87, 252.12, 489.34, 253.34, 489.08, 255.79, 489.34, 258.41, 492.14, 261.03, 493.53, 262.78, 493.36, 263.65, 492.49, 263.91]], "area": 428.0576000000008, "iscrowd": 0, "image_id": 165347, "bbox": [488.96, 246.62, 16.85, 47.2], "category_id": 1, "id": 1276276}, {"segmentation": [[349.48, 533.57, 388.31, 504.81, 405.57, 476.04, 417.08, 432.9, 421.39, 396.94, 422.83, 536.45, 409.89, 558.02, 369.62, 559.46, 353.8, 550.83, 346.61, 540.76, 346.61, 539.33], [343.73, 96.36, 368.18, 89.17, 386.88, 83.42, 401.26, 81.98, 417.08, 77.66, 419.96, 76.22, 419.96, 10.07, 407.01, 21.57, 389.75, 40.27, 376.81, 44.58, 359.55, 50.34, 352.36, 50.34, 330.79, 54.65, 313.53, 58.97, 310.65, 77.66, 325.03, 92.04, 329.35, 92.04]], "area": 9182.051549999998, "iscrowd": 0, "image_id": 260969, "bbox": [310.65, 10.07, 112.18, 549.39], "category_id": 1, "id": 1276341}, {"segmentation": [[405.27, 379.3, 403.65, 380.74, 401.68, 379.3, 399.7, 378.94, 399.16, 380.02, 391.79, 381.1, 389.45, 380.74, 387.12, 386.85, 382.98, 385.24, 387.65, 377.86, 387.83, 375.35, 388.73, 374.27, 390.71, 374.63, 389.81, 370.67, 391.79, 363.84, 397.0, 364.38, 402.22, 374.45, 405.27, 378.58]], "area": 214.5198000000005, "iscrowd": 0, "image_id": 567318, "bbox": [382.98, 363.84, 22.29, 23.01], "category_id": 1, "id": 1276368}, {"segmentation": [[604.29, 285.67, 603.28, 292.77, 595.93, 298.35, 593.9, 295.82, 594.91, 285.42, 594.91, 281.11, 595.93, 279.08, 599.22, 279.59, 599.98, 282.63]], "area": 130.99540000000027, "iscrowd": 0, "image_id": 173163, "bbox": [593.9, 279.08, 10.39, 19.27], "category_id": 1, "id": 1276621}, {"segmentation": [[323.86, 130.79, 306.81, 128.57, 297.92, 126.34, 296.43, 124.12, 297.18, 116.71, 310.52, 106.33, 311.26, 95.21, 311.26, 82.61, 309.04, 66.3, 300.88, 63.33, 303.11, 56.66, 312.0, 48.51, 309.04, 35.16, 303.11, 22.56, 297.18, 21.08, 290.5, 21.08, 280.13, 7.74, 286.8, 2.55, 294.21, 1.06, 297.92, 4.03, 305.33, 8.48, 317.93, 18.86, 333.0, 34.42, 331.28, 67.04, 324.6, 84.83, 331.28, 115.22, 332.02, 130.79]], "area": 2911.0414999999985, "iscrowd": 0, "image_id": 45949, "bbox": [280.13, 1.06, 52.87, 129.73], "category_id": 1, "id": 1276622}, {"segmentation": [[267.13, 42.1, 275.59, 31.34, 284.81, 27.5, 285.97, 15.97, 290.19, 10.2, 299.8, 12.12, 300.57, 12.89, 303.26, 19.04, 303.64, 29.8, 309.41, 39.03, 311.33, 41.72, 306.33, 44.02]], "area": 794.7706499999999, "iscrowd": 0, "image_id": 60771, "bbox": [267.13, 10.2, 44.2, 33.82], "category_id": 1, "id": 1276645}, {"segmentation": [[216.03, 230.78, 212.97, 229.14, 212.51, 223.27, 215.09, 216.69, 216.73, 214.58, 218.62, 216.09, 218.08, 218.38, 217.67, 220.2, 217.74, 222.83, 216.53, 223.57, 215.99, 226.4, 215.99, 228.43]], "area": 53.64840000000007, "iscrowd": 0, "image_id": 476575, "bbox": [212.51, 214.58, 6.11, 16.2], "category_id": 1, "id": 1276796}, {"segmentation": [[271.11, 228.22, 279.55, 217.38, 297.02, 205.32, 296.42, 190.26, 300.64, 168.57, 305.46, 164.35, 316.31, 161.34, 329.56, 166.76, 333.78, 184.23, 325.35, 204.12, 345.83, 211.35, 345.23, 256.54, 336.79, 257.75, 334.38, 254.13, 322.33, 249.92, 311.49, 245.7, 309.68, 252.33, 312.09, 264.38, 301.84, 264.98, 280.15, 264.38, 271.11, 258.35]], "area": 4983.2000499999995, "iscrowd": 0, "image_id": 130624, "bbox": [271.11, 161.34, 74.72, 103.64], "category_id": 1, "id": 1277260}, {"segmentation": [[332.03, 0.98, 334.49, 16.47, 335.2, 18.23, 354.56, 17.88, 352.1, 0.28, 332.73, 0.28], [335.9, 22.1, 334.84, 28.44, 334.49, 34.78, 332.38, 37.95, 333.08, 42.17, 354.21, 44.64, 352.1, 38.65, 354.91, 31.26, 354.56, 22.46, 336.25, 23.16]], "area": 761.115200000001, "iscrowd": 0, "image_id": 191918, "bbox": [332.03, 0.28, 22.88, 44.36], "category_id": 1, "id": 1277416}, {"segmentation": [[101.94, 120.04, 101.65, 110.94, 103.93, 102.41, 106.49, 99.85, 108.2, 98.42, 106.49, 94.16, 108.2, 89.89, 112.18, 87.62, 114.45, 89.89, 115.31, 94.73, 114.17, 99.28, 117.58, 100.42, 118.72, 100.13, 120.99, 110.65, 119.86, 112.64, 118.72, 118.62, 119.86, 125.16, 119.0, 131.98, 117.86, 139.66, 115.59, 141.94, 114.17, 128.0, 111.61, 126.86, 111.89, 144.5, 111.89, 147.06, 108.48, 147.91, 109.05, 141.94, 106.77, 138.81, 107.34, 131.98, 104.78, 127.72, 102.79, 125.16]], "area": 686.9649499999998, "iscrowd": 0, "image_id": 517261, "bbox": [101.65, 87.62, 19.34, 60.29], "category_id": 1, "id": 1277824}, {"segmentation": [[288.61, 230.08, 284.9, 226.66, 286.89, 221.24, 288.89, 217.53, 293.45, 217.53, 295.16, 223.81, 293.45, 228.37, 297.16, 232.08, 301.15, 246.05, 302.29, 250.9, 300.58, 258.88, 298.59, 262.3, 302.86, 276.85, 304.29, 281.7, 305.71, 285.4, 298.59, 286.54, 295.16, 286.83, 293.45, 283.98, 297.45, 282.84, 296.87, 277.42, 295.45, 272.57, 294.31, 273.71, 291.74, 279.7, 292.31, 283.98, 291.74, 286.26, 286.04, 284.83, 281.76, 282.84, 284.61, 279.98, 285.75, 278.84, 289.18, 273.43, 289.46, 264.59, 289.46, 258.88, 287.46, 255.46, 285.47, 258.88, 282.05, 255.46, 283.19, 249.76, 283.19, 245.77, 283.19, 240.63, 286.61, 234.36]], "area": 881.8123, "iscrowd": 0, "image_id": 294416, "bbox": [281.76, 217.53, 23.95, 69.3], "category_id": 1, "id": 1277967}, {"segmentation": [[185.85, 449.06, 159.9, 401.3, 128.75, 353.54, 114.21, 342.12, 109.02, 309.93, 109.02, 280.86, 103.83, 276.7, 98.64, 265.28, 92.41, 262.17, 90.33, 236.21, 91.37, 221.67, 76.83, 205.06, 55.03, 200.91, 38.42, 204.02, 19.73, 205.06, 2.08, 217.52, 1.04, 220.64, 1.04, 455.29, 182.74, 456.33]], "area": 31242.147800000006, "iscrowd": 0, "image_id": 480818, "bbox": [1.04, 200.91, 184.81, 255.42], "category_id": 1, "id": 1278247}, {"segmentation": [[571.15, 182.46, 570.64, 186.97, 570.64, 191.29, 570.89, 195.73, 571.28, 198.56, 572.82, 199.33, 572.92, 201.16, 573.59, 202.6, 576.29, 202.22, 576.19, 200.68, 576.58, 200.48, 578.41, 199.91, 579.28, 197.02, 579.18, 191.53, 578.89, 188.45, 579.08, 182.09, 579.08, 182.09, 578.51, 178.44, 579.37, 174.58, 578.31, 172.37, 579.18, 170.06, 578.79, 167.65, 575.42, 165.24, 571.77, 166.3, 571.38, 167.65, 570.99, 169.67, 570.9, 171.6, 572.15, 173.04, 573.88, 174.97, 573.79, 176.22, 573.02, 178.15, 572.15, 181.04, 570.99, 182.48]], "area": 259.33639999999986, "iscrowd": 0, "image_id": 511988, "bbox": [570.64, 165.24, 8.73, 37.36], "category_id": 1, "id": 1279035}, {"segmentation": [[312.2, 42.28, 314.99, 29.16, 318.94, 23.68, 322.45, 20.54, 323.79, 18.29, 324.06, 16.4, 324.15, 9.84, 322.81, 8.5, 325.14, 5.62, 330.89, 4.18, 336.82, 5.53, 339.43, 7.51, 340.24, 11.1, 340.06, 15.24, 340.06, 17.48, 339.97, 19.19, 341.32, 20.54, 345.45, 22.06, 346.62, 24.22, 347.52, 26.47, 349.85, 29.25, 346.17, 36.44, 344.55, 38.51, 339.43, 34.91, 338.08, 33.74, 336.73, 25.48, 334.76, 21.35, 327.21, 20.72, 324.78, 23.23, 322.36, 28.35, 322.63, 32.49, 321.55, 38.24, 317.68, 40.12, 316.61, 41.74, 313.73, 41.74]], "area": 561.7389500000002, "iscrowd": 0, "image_id": 60771, "bbox": [312.2, 4.18, 37.65, 38.1], "category_id": 1, "id": 1279047}, {"segmentation": [[160.34, 252.73, 162.93, 250.48, 167.78, 250.31, 172.45, 253.77, 175.56, 254.11, 175.74, 259.31, 170.72, 259.31, 168.64, 263.98, 168.12, 266.23, 170.72, 275.23, 170.72, 286.13, 170.55, 291.84, 171.93, 308.39, 171.58, 313.76, 168.3, 317.39, 164.32, 324.43, 173.66, 329.97, 171.07, 332.91, 167.6, 332.91, 166.74, 332.91, 167.6, 335.5, 162.93, 336.89, 159.47, 335.5, 152.72, 331.18, 158.26, 322.53, 158.09, 304.7, 154.11, 282.73, 154.28, 274.94, 154.97, 270.96, 154.45, 266.63, 154.28, 261.44, 156.01, 256.6]], "area": 1206.42385, "iscrowd": 0, "image_id": 23015, "bbox": [152.72, 250.31, 23.02, 86.58], "category_id": 1, "id": 1279056}, {"segmentation": [[122.78, 155.32, 126.97, 152.01, 136.46, 153.99, 139.11, 155.98, 143.08, 161.27, 141.76, 164.14, 141.98, 169.44, 141.1, 171.87, 147.06, 181.8, 166.04, 184.01, 172.22, 184.01, 171.33, 189.08, 164.93, 194.82, 167.36, 201.0, 158.97, 201.22, 144.41, 196.15, 133.37, 188.2, 124.77, 182.9, 123.88, 180.7, 125.21, 165.25, 131.17, 163.7, 128.96, 159.95]], "area": 1023.7041, "iscrowd": 0, "image_id": 511988, "bbox": [122.78, 152.01, 49.44, 49.21], "category_id": 1, "id": 1279105}, {"segmentation": [[487.43, 268.38, 491.92, 251.17, 488.18, 251.54, 486.3, 248.18, 489.3, 237.7, 493.79, 227.6, 494.54, 223.49, 499.4, 220.87, 499.02, 268.38, 487.8, 268.0], [482.94, 298.0, 488.55, 278.85, 500.0, 282.97, 499.02, 297.56]], "area": 660.6006499999979, "iscrowd": 0, "image_id": 485882, "bbox": [482.94, 220.87, 17.06, 77.13], "category_id": 1, "id": 1279162}, {"segmentation": [[305.64, 177.48, 303.66, 189.8, 308.43, 199.34, 299.68, 198.55, 297.29, 193.78, 298.89, 185.03, 301.67, 159.99, 297.69, 151.24, 299.68, 142.49, 304.85, 130.57, 306.44, 122.22, 308.82, 120.23, 314.79, 121.42, 316.78, 132.16, 317.97, 165.15, 312.8, 177.08, 315.98, 185.03, 323.53, 187.81, 320.35, 189.8, 312.8, 191.79, 308.43, 191.0, 308.43, 188.21, 310.02, 183.04, 309.22, 177.08]], "area": 1105.9951, "iscrowd": 0, "image_id": 23015, "bbox": [297.29, 120.23, 26.24, 79.11], "category_id": 1, "id": 1279284}, {"segmentation": [[114.65, 347.64, 115.66, 350.43, 112.87, 351.95, 111.86, 341.83, 111.1, 339.04, 111.36, 333.73, 111.61, 331.2, 113.63, 330.19, 115.66, 332.47, 117.17, 339.55, 117.68, 343.85, 119.96, 349.92, 117.43, 350.43]], "area": 108.92424999999992, "iscrowd": 0, "image_id": 45124, "bbox": [111.1, 330.19, 8.86, 21.76], "category_id": 1, "id": 1279473}, {"segmentation": [[56.58, 300.62, 59.13, 288.86, 59.65, 284.26, 64.76, 279.15, 66.8, 267.9, 76.01, 264.32, 82.66, 267.9, 84.19, 284.77, 73.45, 289.37, 75.5, 298.07, 74.99, 305.23, 79.59, 310.34, 73.45, 319.55, 63.22, 325.68, 60.67, 319.03, 60.67, 319.03]], "area": 1000.9406500000005, "iscrowd": 0, "image_id": 23015, "bbox": [56.58, 264.32, 27.61, 61.36], "category_id": 1, "id": 1279623}, {"segmentation": [[393.7, 257.55, 393.0, 252.99, 389.5, 249.14, 384.24, 248.44, 384.59, 241.44, 381.44, 245.29, 377.24, 242.84, 368.12, 244.43, 364.94, 238.08, 366.53, 231.34, 366.13, 225.78, 372.88, 219.04, 378.83, 210.71, 383.59, 206.35, 394.3, 195.24, 403.82, 194.05, 399.45, 194.45, 397.87, 192.46, 404.61, 192.07, 407.39, 188.89, 409.77, 190.08, 408.18, 194.05, 410.56, 195.24, 416.51, 192.86, 412.94, 182.15, 413.34, 171.84, 424.84, 155.97, 433.96, 152.4, 449.43, 155.57, 454.19, 176.6, 450.23, 195.24, 442.29, 199.6, 440.67, 201.41, 423.36, 199.56, 413.16, 197.39, 409.76, 197.39, 411.0, 198.94, 418.1, 200.49, 424.29, 201.72, 425.52, 208.83, 434.18, 210.07, 430.47, 206.36, 436.65, 206.05, 434.79, 202.65, 442.83, 203.88, 444.68, 205.12, 445.92, 199.87, 448.7, 196.47, 460.45, 199.25, 466.32, 210.07, 466.63, 234.79, 458.59, 242.21, 451.48, 248.7, 445.61, 254.57]], "area": 6424.006900000001, "iscrowd": 0, "image_id": 130624, "bbox": [364.94, 152.4, 101.69, 105.15], "category_id": 1, "id": 1279648}, {"segmentation": [[76.09, 185.78, 65.47, 186.92, 51.82, 183.13, 51.82, 177.44, 53.72, 171.37, 55.24, 167.2, 56.75, 161.51, 55.62, 153.55, 53.34, 134.97, 47.27, 112.22, 44.62, 98.94, 45.38, 95.53, 45.38, 85.29, 43.1, 79.23, 41.96, 77.71, 40.45, 67.47, 34.76, 47.75, 26.04, 28.41, 23.76, 19.69, 23.0, 12.11, 23.76, 3.39, 56.75, 6.04, 51.82, 9.83, 51.06, 20.83, 57.13, 31.07, 63.2, 34.1, 64.72, 28.41, 69.27, 37.13, 72.3, 81.12, 75.33, 110.7, 68.13, 114.49, 67.37, 118.66, 62.82, 122.07, 60.92, 126.63, 63.2, 136.86, 67.75, 138.76, 68.13, 142.93, 74.2, 145.59, 70.4, 149.0, 67.75, 152.79, 69.27, 160.37, 70.78, 166.82, 74.2, 171.75, 75.33, 177.82, 76.47, 185.02]], "area": 4500.202649999998, "iscrowd": 0, "image_id": 260969, "bbox": [23.0, 3.39, 53.47, 183.53], "category_id": 1, "id": 1279934}, {"segmentation": [[101.14, 404.29, 99.59, 399.87, 99.59, 397.43, 102.03, 395.22, 102.03, 391.68, 104.46, 389.91, 106.01, 392.12, 105.79, 395.22, 106.9, 399.87, 106.9, 401.86, 105.57, 402.3, 105.35, 405.62]], "area": 74.31649999999999, "iscrowd": 0, "image_id": 567318, "bbox": [99.59, 389.91, 7.31, 15.71], "category_id": 1, "id": 1280144}, {"segmentation": [[640.0, 152.65, 638.58, 190.51, 631.7, 195.83, 631.7, 195.83, 629.51, 227.44, 611.98, 260.29, 611.04, 238.7, 613.55, 212.42, 616.36, 198.65, 621.06, 193.02, 624.81, 185.82, 621.68, 170.49, 622.62, 159.54, 631.07, 153.28, 639.83, 151.4]], "area": 1491.658050000005, "iscrowd": 0, "image_id": 333356, "bbox": [611.04, 151.4, 28.96, 108.89], "category_id": 1, "id": 1280239}, {"segmentation": [[266.17, 287.95, 268.42, 285.29, 271.49, 284.47, 272.71, 283.24, 273.33, 274.66, 275.78, 270.77, 278.23, 269.95, 280.28, 270.36, 284.16, 270.36, 289.07, 271.39, 293.57, 276.09, 295.0, 278.75, 293.36, 284.47, 293.98, 287.54, 292.34, 290.6, 290.09, 291.83, 287.84, 295.92, 287.43, 298.58, 286.21, 300.83, 283.35, 303.69, 282.32, 305.53, 282.73, 309.01, 280.48, 311.87, 275.78, 312.07, 270.46, 312.48, 269.65, 308.6, 268.01, 306.14, 268.22, 301.85, 268.42, 296.74, 266.58, 291.63, 266.38, 288.97]], "area": 802.0898000000003, "iscrowd": 0, "image_id": 412289, "bbox": [266.17, 269.95, 28.83, 42.53], "category_id": 1, "id": 1280289}, {"segmentation": [[133.99, 204.84, 152.31, 183.64, 164.84, 178.82, 156.16, 159.54, 156.16, 119.05, 166.77, 112.3, 180.26, 112.3, 199.54, 114.23, 208.22, 117.12, 219.78, 164.36, 214.96, 187.49, 201.47, 215.45, 190.86, 217.37, 175.44, 196.17, 159.05, 191.35, 145.56, 203.88, 167.73, 230.87, 154.23, 261.72, 154.23, 292.56, 154.23, 318.59, 161.95, 354.26, 182.19, 379.32, 217.86, 379.32, 240.03, 373.54, 245.81, 370.64, 255.45, 363.9, 263.16, 346.55, 267.02, 320.52, 267.02, 296.42, 243.88, 263.64, 228.46, 225.09, 235.21, 194.24, 237.14, 193.27, 251.59, 201.95, 275.69, 218.34, 280.51, 239.55, 283.41, 281.96, 266.05, 403.42, 260.27, 419.81, 148.45, 417.88, 149.41, 404.38, 132.06, 307.02, 134.95, 271.36, 134.95, 245.33, 131.1, 212.55, 134.95, 200.99]], "area": 18929.333400000003, "iscrowd": 0, "image_id": 333356, "bbox": [131.1, 112.3, 152.31, 307.51], "category_id": 1, "id": 1280440}, {"segmentation": [[366.58, 164.23, 361.1, 160.44, 358.58, 157.07, 356.05, 151.17, 358.15, 145.27, 360.68, 139.37, 360.68, 128.42, 358.58, 119.99, 353.94, 115.36, 347.62, 114.1, 339.2, 115.36, 330.77, 122.1, 327.4, 131.79, 329.51, 145.27, 335.4, 150.75, 335.82, 158.75, 324.45, 166.34, 321.08, 169.29, 324.45, 184.88, 333.3, 191.62, 336.67, 181.93, 357.31, 176.03, 357.31, 176.03, 365.32, 171.82, 366.58, 166.34], [334.14, 292.39, 346.36, 296.6, 349.31, 291.13, 350.57, 336.21, 348.04, 387.18, 347.62, 398.56, 347.2, 398.56, 347.2, 398.56, 347.2, 400.67, 339.62, 405.72, 332.03, 405.72, 328.66, 404.88, 328.24, 404.46, 332.88, 393.92, 336.67, 389.71, 334.56, 381.29, 335.4, 380.44, 336.67, 378.76, 332.88, 372.86, 332.45, 342.95, 332.45, 342.95, 329.08, 335.36, 329.51, 321.88], [375.85, 324.41, 379.64, 332.84, 377.11, 363.17, 375.85, 382.13, 377.96, 387.6, 383.43, 394.77, 385.12, 401.51, 385.54, 403.61, 380.9, 403.61, 371.64, 400.67]], "area": 4344.117800000004, "iscrowd": 0, "image_id": 444214, "bbox": [321.08, 114.1, 64.46, 291.62], "category_id": 1, "id": 1280616}, {"segmentation": [[509.9, 131.67, 514.79, 127.94, 515.96, 122.35, 517.35, 116.77, 519.68, 111.18, 523.17, 107.45, 533.88, 103.73, 545.29, 107.45, 545.76, 120.96, 543.2, 126.08, 534.35, 132.13, 531.32, 133.53, 537.14, 139.58, 536.91, 144.7, 541.57, 144.0, 548.78, 141.44, 550.18, 141.44, 551.58, 143.31, 546.22, 150.52, 544.13, 155.41, 539.7, 158.67, 532.08, 166.48, 523.36, 143.82, 516.38, 133.94, 514.64, 132.19]], "area": 1237.2731499999995, "iscrowd": 0, "image_id": 119337, "bbox": [509.9, 103.73, 41.68, 62.75], "category_id": 1, "id": 1280647}, {"segmentation": [[618.98, 48.9, 623.0, 41.53, 620.99, 34.83, 624.34, 26.79, 630.37, 23.44, 638.41, 30.81, 639.75, 73.01, 639.75, 91.77, 635.06, 99.14, 633.72, 107.18, 629.7, 103.16, 629.7, 86.41, 627.69, 75.69, 627.02, 67.65, 618.31, 52.25]], "area": 1060.5865499999977, "iscrowd": 0, "image_id": 56699, "bbox": [618.31, 23.44, 21.44, 83.74], "category_id": 1, "id": 1280958}, {"segmentation": [[420.32, 55.16, 418.37, 58.55, 416.28, 60.77, 415.11, 62.59, 410.94, 69.11, 406.9, 74.71, 406.77, 75.89, 423.06, 76.67, 426.32, 78.89, 428.01, 80.58, 429.32, 80.71, 432.05, 76.67, 434.27, 76.28, 438.44, 76.02, 440.66, 77.19, 441.18, 77.19, 443.78, 77.06, 445.22, 75.76, 445.48, 74.32, 445.48, 71.72, 444.96, 71.46, 443.0, 71.33, 441.05, 71.98, 435.83, 73.28, 430.62, 71.46, 431.79, 65.98, 432.57, 62.59, 432.84, 61.42, 425.67, 57.12, 424.1, 55.56, 420.97, 54.77], [423.58, 46.43, 424.36, 43.3, 426.84, 41.74, 431.27, 41.09, 433.23, 41.87, 436.88, 45.39, 437.92, 48.13, 439.09, 50.34, 433.75, 48.65, 428.27, 47.21, 426.19, 46.43, 426.06, 46.43], [413.26, 128.87, 406.42, 129.89, 402.62, 136.99, 398.56, 144.08, 404.39, 146.37, 411.74, 145.86, 416.31, 143.83, 417.83, 143.83, 416.81, 138.51, 420.36, 130.9, 418.34, 128.87]], "area": 779.3366500000004, "iscrowd": 0, "image_id": 289693, "bbox": [398.56, 41.09, 46.92, 105.28], "category_id": 1, "id": 1282046}, {"segmentation": [[517.62, 231.27, 529.41, 214.11, 526.73, 175.52, 531.55, 163.19, 521.37, 137.46, 512.25, 128.88, 513.86, 120.3, 514.94, 108.51, 503.68, 103.69, 488.67, 111.19, 483.31, 120.3, 481.7, 129.42, 480.09, 141.75, 487.06, 160.51, 501.53, 174.45, 504.75, 177.13, 511.18, 195.89, 511.18, 213.04]], "area": 3324.7533499999995, "iscrowd": 0, "image_id": 119337, "bbox": [480.09, 103.69, 51.46, 127.58], "category_id": 1, "id": 1282056}, {"segmentation": [[356.23, 119.63, 339.29, 97.99, 350.59, 83.87, 353.88, 74.93, 357.65, 81.05, 359.06, 86.22, 361.41, 97.05, 364.7, 103.63, 368.0, 113.99, 356.23, 105.05, 355.76, 114.93, 355.76, 117.28]], "area": 523.0967499999997, "iscrowd": 0, "image_id": 517261, "bbox": [339.29, 74.93, 28.71, 44.7], "category_id": 1, "id": 1282099}, {"segmentation": [[123.97, 259.36, 124.79, 258.95, 125.2, 259.56, 125.5, 260.59, 125.71, 260.99, 126.01, 261.51, 126.83, 262.43, 127.04, 263.14, 127.85, 264.16, 127.75, 264.68, 126.73, 264.78, 125.71, 265.19, 124.79, 265.49, 123.97, 264.98, 123.15, 264.98, 122.74, 264.98, 122.33, 264.47, 122.23, 264.16, 122.13, 263.45, 121.82, 262.43, 122.13, 261.2, 122.74, 260.99, 123.15, 259.97, 123.35, 259.56]], "area": 23.575450000000032, "iscrowd": 0, "image_id": 274881, "bbox": [121.82, 258.95, 6.03, 6.54], "category_id": 1, "id": 1282372}, {"segmentation": [[596.47, 47.45, 600.31, 40.53, 599.54, 34.77, 601.47, 28.24, 603.39, 23.62, 609.54, 18.63, 617.99, 22.09, 619.15, 25.55, 614.92, 35.15, 611.46, 42.84, 612.61, 50.14]], "area": 417.2777000000002, "iscrowd": 0, "image_id": 60771, "bbox": [596.47, 18.63, 22.68, 31.51], "category_id": 1, "id": 1282573}, {"segmentation": [[294.58, 61.26, 300.51, 55.33, 312.36, 56.18, 324.21, 58.72, 330.98, 67.18, 334.37, 76.5, 333.52, 84.96, 358.92, 96.81, 362.3, 106.12, 364.84, 117.97, 367.38, 130.67, 371.61, 137.44, 368.23, 145.91, 369.07, 154.37, 369.07, 164.53, 375.0, 184.0, 375.85, 191.62, 376.69, 205.16, 376.69, 213.63, 370.77, 217.01, 362.3, 222.09, 358.92, 229.71, 362.3, 243.26, 359.76, 266.96, 360.61, 289.81, 358.92, 314.36, 354.68, 323.67, 349.6, 334.68, 334.37, 343.14, 320.82, 346.53, 314.05, 343.99, 316.59, 338.06, 319.98, 333.83, 313.21, 331.29, 311.51, 333.83, 294.58, 333.83, 286.96, 332.14, 283.58, 331.29, 288.66, 323.67, 297.12, 321.98, 304.74, 319.44, 301.35, 312.67, 295.43, 297.43, 290.35, 285.58, 288.66, 272.04, 286.12, 254.26, 281.88, 236.48, 275.96, 219.55, 273.42, 215.32, 263.26, 216.17, 262.42, 207.7, 263.26, 198.39, 264.95, 185.69, 266.65, 157.76, 267.49, 151.83, 271.73, 147.6, 271.73, 145.91, 261.57, 130.67, 265.8, 127.29, 274.27, 117.97, 277.65, 111.2, 291.2, 107.82, 292.89, 105.28, 292.89, 99.35, 291.2, 86.65, 284.42, 69.72, 291.2, 62.95]], "area": 22441.732050000006, "iscrowd": 0, "image_id": 149863, "bbox": [261.57, 55.33, 115.12, 291.2], "category_id": 1, "id": 1282916}, {"segmentation": [[93.09, 222.9, 99.66, 222.2, 103.81, 215.98, 101.05, 201.45, 101.05, 192.12, 108.66, 182.78, 109.35, 174.48, 105.54, 171.36, 103.81, 164.79, 99.66, 159.95, 98.28, 151.65, 96.9, 149.92, 95.51, 148.54, 93.09, 146.12, 93.09, 141.62, 91.02, 136.43, 87.21, 134.01, 87.21, 125.37, 87.9, 120.52, 89.63, 116.03, 88.94, 114.99, 87.56, 114.64, 84.45, 109.46, 82.02, 108.77, 78.57, 107.38, 78.22, 107.38, 70.27, 108.77, 67.15, 110.15, 66.46, 112.92, 72.0, 118.1, 75.11, 121.91, 72.0, 130.21, 73.03, 139.89, 75.45, 145.08, 75.8, 154.76, 79.26, 168.94, 80.99, 176.55, 80.99, 182.09, 84.45, 192.81, 88.25, 201.11, 92.4, 211.14, 93.09, 217.36, 93.09, 221.86]], "area": 2097.7883499999994, "iscrowd": 0, "image_id": 446331, "bbox": [66.46, 107.38, 42.89, 115.52], "category_id": 1, "id": 1283169}, {"segmentation": [[127.91, 164.93, 122.14, 179.36, 121.57, 205.57, 115.22, 216.99, 117.76, 227.14, 116.49, 230.31, 130.45, 245.54, 144.41, 256.33, 148.22, 222.7, 153.29, 203.67, 158.37, 195.42, 155.83, 166.86, 155.2, 145.29, 155.2, 137.68, 146.95, 124.35, 141.87, 118.64, 131.09, 119.28, 117.13, 123.72, 111.42, 131.97, 111.42, 143.39, 113.95, 150.37, 120.93, 158.62, 126.01, 164.96]], "area": 4280.784199999999, "iscrowd": 0, "image_id": 119337, "bbox": [111.42, 118.64, 46.95, 137.69], "category_id": 1, "id": 1283255}, {"segmentation": [[77.72, 419.32, 80.6, 398.21, 86.36, 386.7, 81.56, 379.02, 81.56, 370.39, 82.52, 361.75, 93.08, 359.83, 101.71, 363.67, 102.67, 374.22, 102.67, 378.06, 108.43, 378.06, 118.98, 386.7, 126.66, 406.85, 118.98, 408.77, 125.7, 421.24]], "area": 2011.6997000000003, "iscrowd": 0, "image_id": 20251, "bbox": [77.72, 359.83, 48.94, 61.41], "category_id": 1, "id": 1283368}, {"segmentation": [[422.01, 163.73, 425.15, 142.98, 435.84, 136.69, 436.47, 127.25, 441.5, 120.96, 450.31, 122.22, 455.34, 129.14, 454.08, 142.98, 463.51, 144.86, 464.14, 168.13, 445.9, 166.87, 440.87, 163.73, 427.67, 164.36]], "area": 1309.08745, "iscrowd": 0, "image_id": 480818, "bbox": [422.01, 120.96, 42.13, 47.17], "category_id": 1, "id": 1283858}, {"segmentation": [[508.6, 344.91, 505.07, 327.25, 498.89, 300.76, 498.89, 283.99, 498.01, 268.98, 503.3, 257.5, 505.07, 255.73, 513.9, 255.73, 520.96, 278.69, 527.14, 299.0, 529.79, 317.54, 532.44, 339.61, 528.03, 346.68, 515.67, 354.62, 515.67, 354.62]], "area": 2226.314100000001, "iscrowd": 0, "image_id": 450281, "bbox": [498.01, 255.73, 34.43, 98.89], "category_id": 1, "id": 1284867}, {"segmentation": [[326.51, 416.91, 311.35, 414.03, 309.19, 411.14, 304.14, 419.08, 292.59, 419.8, 288.98, 414.03, 290.42, 402.48, 272.38, 285.54, 270.93, 256.67, 265.88, 224.91, 268.05, 193.15, 278.87, 184.49, 283.2, 180.16, 274.54, 170.77, 275.99, 154.89, 281.76, 145.51, 290.42, 139.02, 304.86, 135.41, 322.18, 146.23, 325.07, 158.5, 319.29, 170.05, 317.85, 172.94, 320.02, 180.16, 335.9, 187.38, 326.51, 232.85, 336.62, 268.22, 326.51, 336.07, 330.84, 349.06, 325.79, 380.1, 326.51, 393.09, 325.79, 408.25]], "area": 14361.429399999997, "iscrowd": 0, "image_id": 444214, "bbox": [265.88, 135.41, 70.74, 284.39], "category_id": 1, "id": 1285030}, {"segmentation": [[84.5, 276.78, 78.99, 277.05, 79.78, 273.64, 80.3, 271.8, 83.19, 274.42]], "area": 16.140799999999924, "iscrowd": 0, "image_id": 146049, "bbox": [78.99, 271.8, 5.51, 5.25], "category_id": 1, "id": 1285441}, {"segmentation": [[477.1, 174.73, 477.22, 167.78, 478.66, 166.94, 479.14, 163.34, 481.18, 162.38, 483.7, 163.22, 484.54, 164.06, 484.66, 167.18, 485.26, 168.26, 484.54, 170.54, 484.78, 173.41, 485.74, 174.49]], "area": 81.06179999999986, "iscrowd": 0, "image_id": 425652, "bbox": [477.1, 162.38, 8.64, 12.35], "category_id": 1, "id": 1285549}, {"segmentation": [[463.87, 175.87, 473.44, 176.03, 475.98, 174.92, 475.42, 171.83, 474.39, 170.8, 472.18, 170.57, 473.52, 169.3, 472.97, 167.72, 472.41, 166.61, 471.86, 165.42, 471.23, 164.79, 469.25, 164.79, 468.46, 164.95, 467.27, 165.34, 466.56, 166.06, 466.0, 167.09, 466.0, 168.19, 466.48, 169.38, 466.64, 170.01, 466.24, 170.73, 466.08, 171.2, 466.0, 172.07, 464.74, 172.23, 464.03, 172.39, 463.31, 173.18, 462.92, 174.05, 462.92, 174.92, 463.08, 175.32, 463.47, 175.79]], "area": 95.29055000000018, "iscrowd": 0, "image_id": 425652, "bbox": [462.92, 164.79, 13.06, 11.24], "category_id": 1, "id": 1286223}, {"segmentation": [[374.81, 316.3, 378.63, 318.76, 379.18, 324.49, 383.55, 326.68, 385.46, 330.5, 386.28, 336.51, 388.19, 341.97, 389.56, 346.07, 387.1, 349.34, 385.19, 346.34, 383.82, 340.88, 382.46, 343.34, 381.91, 346.34, 380.0, 350.44, 378.36, 356.99, 378.91, 361.63, 377.54, 366.28, 378.09, 369.55, 376.17, 372.83, 374.26, 373.1, 374.81, 370.65, 372.9, 368.73, 370.17, 364.64, 367.71, 361.36, 369.07, 357.54, 369.07, 352.89, 369.07, 347.43, 368.53, 341.42, 366.62, 343.34, 365.8, 349.34, 363.61, 351.8, 361.97, 349.34, 362.79, 343.88, 364.43, 338.15, 364.98, 333.78, 368.8, 331.59, 372.62, 329.68, 375.9, 327.5, 376.45, 327.22, 375.63, 322.58, 374.81, 319.85, 374.54, 315.48], [386.28, 365.46, 386.55, 367.91, 388.74, 370.92, 386.83, 373.38, 382.73, 373.65, 382.46, 369.83, 381.64, 367.64, 384.37, 366.55]], "area": 700.9965499999998, "iscrowd": 0, "image_id": 532414, "bbox": [361.97, 315.48, 27.59, 58.17], "category_id": 1, "id": 1286710}, {"segmentation": [[518.33, 268.43, 520.69, 265.54, 523.22, 262.28, 523.76, 258.3, 521.59, 251.96, 523.22, 247.62, 525.75, 243.46, 531.36, 242.91, 536.79, 246.17, 537.16, 248.71, 535.71, 253.59, 535.53, 259.2, 533.54, 261.38, 534.44, 263.18, 537.34, 265.36, 541.14, 267.71, 544.58, 271.15, 545.66, 278.93, 544.58, 284.36, 545.3, 289.61, 542.22, 294.68, 542.04, 301.01, 543.85, 306.8, 545.3, 309.52, 543.85, 318.02, 542.77, 325.44, 542.59, 331.06, 541.68, 336.48, 542.4, 340.47, 543.49, 347.89, 541.32, 367.07, 542.04, 371.96, 536.97, 371.23, 532.09, 366.71, 531.55, 363.45, 531.0, 359.29, 529.37, 354.4, 530.1, 347.89, 531.91, 339.92, 531.91, 334.13, 530.1, 330.51, 529.55, 325.99, 529.19, 317.12, 528.11, 311.69, 527.38, 308.07, 526.3, 295.04, 524.12, 287.26, 523.76, 283.27, 521.41, 276.4, 519.06, 273.86, 519.42, 271.87]], "area": 1912.8947500000006, "iscrowd": 0, "image_id": 450281, "bbox": [518.33, 242.91, 27.33, 129.05], "category_id": 1, "id": 1286824}, {"segmentation": [[558.63, 37.97, 551.97, 29.02, 550.1, 25.9, 544.69, 22.99, 538.65, 22.57, 536.36, 21.11, 540.11, 15.7, 547.39, 13.62, 550.72, 15.08, 553.85, 15.5, 555.72, 20.07, 557.38, 24.03, 558.01, 30.48]], "area": 214.6412999999997, "iscrowd": 0, "image_id": 56699, "bbox": [536.36, 13.62, 22.27, 24.35], "category_id": 1, "id": 1287624}, {"segmentation": [[371.9, 113.09, 377.53, 104.43, 375.37, 89.26, 382.73, 73.24, 397.03, 83.63, 398.76, 94.03, 414.79, 113.96, 399.19, 120.02, 401.36, 141.68, 392.26, 132.58, 400.49, 115.69, 380.13, 107.03, 370.17, 114.39]], "area": 997.0726000000003, "iscrowd": 0, "image_id": 149863, "bbox": [370.17, 73.24, 44.62, 68.44], "category_id": 1, "id": 1287741}, {"segmentation": [[238.85, 168.49, 252.95, 164.41, 246.27, 153.28, 247.38, 135.47, 264.45, 127.68, 271.87, 128.42, 279.67, 133.99, 282.63, 142.52, 278.92, 149.57, 274.84, 157.73, 274.1, 168.87, 282.26, 177.4, 282.63, 180.37, 275.21, 185.93, 270.39, 192.24, 266.31, 195.95, 266.68, 207.08, 264.45, 216.73, 268.53, 241.96, 270.76, 261.26, 271.5, 277.21, 277.07, 311.57, 283.75, 325.3, 284.12, 340.88, 285.23, 353.5, 285.97, 368.34, 288.2, 380.95, 290.06, 393.2, 285.97, 395.42, 279.67, 397.65, 272.62, 393.2, 270.76, 389.49, 270.39, 380.58, 270.39, 362.4, 267.42, 365.0, 268.16, 373.9, 270.39, 382.44, 270.02, 387.26, 268.91, 394.31, 263.71, 400.25, 246.64, 400.62, 242.19, 396.17, 244.05, 387.26, 249.24, 380.21, 249.61, 371.31, 251.47, 366.48, 261.48, 344.96, 258.52, 311.57, 259.63, 293.39, 260.0, 278.17, 257.77, 275.2, 260.0, 260.36, 260.74, 251.46, 258.15, 221.77, 255.18, 209.9, 247.01, 204.7, 244.05, 196.91, 242.93, 195.06, 242.93, 182.44]], "area": 6116.538700000003, "iscrowd": 0, "image_id": 444214, "bbox": [238.85, 127.68, 51.21, 272.94], "category_id": 1, "id": 1288219}, {"segmentation": [[239.75, 192.94, 230.4, 189.91, 223.8, 186.61, 218.3, 183.86, 217.47, 175.06, 218.85, 164.06, 222.15, 161.32, 233.15, 161.87, 239.75, 162.69, 243.59, 164.34, 250.19, 178.09, 250.74, 187.16, 248.54, 193.76], [252.12, 201.74, 271.37, 222.63, 279.07, 237.76, 281.54, 246.28, 293.64, 286.98, 293.09, 290.55, 298.59, 294.67, 305.74, 284.23, 307.66, 270.75, 299.69, 253.98, 295.29, 232.26, 289.24, 220.16, 277.42, 217.68, 262.02, 204.76, 250.19, 192.94, 238.37, 191.29], [281.5, 306.58, 268.1, 390.84, 267.14, 416.69, 268.1, 427.22, 291.08, 425.31, 285.33, 386.05, 294.91, 372.64, 297.78, 318.07, 292.99, 304.66]], "area": 4713.833500000001, "iscrowd": 0, "image_id": 333356, "bbox": [217.47, 161.32, 90.19, 265.9], "category_id": 1, "id": 1288427}, {"segmentation": [[429.1, 10.32, 428.71, 22.24, 425.53, 25.03, 427.91, 34.57, 427.12, 51.66, 427.12, 60.41, 418.77, 58.42, 414.79, 52.06, 410.82, 56.83, 398.09, 55.64, 398.49, 40.13, 402.86, 25.03, 399.68, 17.08, 396.5, 10.71, 397.3, 5.55]], "area": 1383.4094000000002, "iscrowd": 0, "image_id": 524522, "bbox": [396.5, 5.55, 32.6, 54.86], "category_id": 1, "id": 1288467}, {"segmentation": [[456.9, 175.53, 457.46, 173.66, 458.8, 173.14, 460.52, 172.24, 460.63, 171.57, 460.33, 170.71, 459.7, 169.85, 459.62, 168.58, 460.63, 167.02, 463.32, 166.42, 464.89, 167.39, 464.55, 169.56, 465.15, 171.61, 466.05, 172.1, 463.62, 172.58, 463.09, 174.34, 463.66, 175.94, 456.9, 176.2]], "area": 47.478800000000035, "iscrowd": 0, "image_id": 425652, "bbox": [456.9, 166.42, 9.15, 9.78], "category_id": 1, "id": 1288501}, {"segmentation": [[35.37, 147.39, 37.75, 144.16, 41.71, 143.41, 43.4, 144.73, 46.42, 145.67, 46.8, 146.99, 44.16, 147.55, 44.54, 150.19, 43.4, 152.08, 42.46, 152.64, 42.08, 153.96, 46.99, 158.86, 47.36, 168.1, 48.68, 176.77, 46.61, 176.96, 45.67, 176.77, 43.78, 178.46, 41.14, 180.72, 39.26, 191.09, 37.56, 193.35, 36.24, 177.33, 32.1, 176.58, 30.02, 176.39, 29.27, 175.82, 29.83, 167.72, 30.02, 160.37, 31.91, 154.9, 36.81, 153.02, 36.62, 150.0, 35.68, 147.93]], "area": 525.7465500000003, "iscrowd": 0, "image_id": 347340, "bbox": [29.27, 143.41, 19.41, 49.94], "category_id": 1, "id": 1289025}, {"segmentation": [[505.81, 356.34, 506.28, 358.69, 504.87, 360.1, 501.58, 358.22, 499.22, 355.87, 499.22, 353.99, 499.22, 351.63, 500.17, 346.93, 500.64, 343.64, 501.58, 338.93, 501.58, 336.11, 500.64, 333.29, 499.7, 330.93, 495.46, 329.52, 490.29, 329.99, 490.29, 332.82, 491.7, 333.76, 492.64, 334.7, 493.11, 338.46, 494.05, 342.7, 494.05, 345.05, 493.58, 347.4, 490.76, 352.11, 488.4, 347.4, 488.87, 341.28, 489.34, 340.34, 489.34, 337.05, 489.34, 335.64, 488.4, 333.29, 487.46, 329.05, 487.46, 328.11, 487.46, 324.82, 486.99, 321.99, 487.93, 318.23, 486.99, 319.17, 485.11, 326.7, 483.7, 326.7, 482.76, 322.93, 482.76, 319.64, 485.58, 314.0, 486.52, 309.29, 486.52, 306.94, 488.4, 303.17, 490.76, 301.29, 492.17, 300.35, 493.11, 299.41, 494.05, 296.59, 493.11, 295.18, 494.05, 289.53, 495.46, 287.65, 497.34, 286.71, 500.17, 289.53, 501.11, 293.29, 501.11, 296.12, 502.99, 299.88, 505.34, 301.29, 506.75, 302.23, 508.63, 305.53, 509.58, 308.82, 509.58, 311.64, 510.05, 314.47, 510.05, 316.35, 510.05, 322.93, 508.63, 323.88, 508.63, 326.7, 508.63, 329.52, 508.63, 337.52, 506.75, 343.17, 506.28, 344.11, 505.34, 348.81, 503.93, 354.93, 503.93, 354.93]], "area": 1038.665950000001, "iscrowd": 0, "image_id": 404964, "bbox": [482.76, 286.71, 27.29, 73.39], "category_id": 1, "id": 1289178}, {"segmentation": [[354.17, 93.65, 355.38, 90.99, 358.53, 89.06, 360.46, 88.33, 362.16, 87.85, 363.13, 87.36, 363.61, 83.25, 362.88, 80.83, 360.46, 74.05, 360.46, 71.63, 361.43, 68.73, 363.85, 65.82, 366.03, 64.37, 368.93, 63.16, 371.6, 62.92, 375.47, 63.89, 377.89, 66.79, 380.55, 72.12, 381.03, 73.57, 381.03, 77.44, 379.34, 81.07, 378.37, 83.73, 377.16, 88.81, 376.44, 90.02, 375.95, 91.96, 375.71, 95.35, 375.71, 99.22, 376.68, 102.12, 376.92, 104.06, 374.74, 108.17, 373.05, 110.11, 371.6, 112.77, 369.9, 114.47, 367.97, 115.43, 357.08, 97.28, 353.69, 95.11, 353.69, 94.14]], "area": 814.82735, "iscrowd": 0, "image_id": 149863, "bbox": [353.69, 62.92, 27.34, 52.51], "category_id": 1, "id": 1289246}, {"segmentation": [[90.35, 274.96, 87.65, 276.29, 85.71, 275.8, 85.6, 275.74, 85.6, 273.67, 85.92, 273.19, 87.03, 273.03, 87.19, 272.87, 88.15, 273.35, 89.58, 273.67, 90.54, 273.67, 90.85, 273.67, 90.85, 273.67]], "area": 12.019499999999992, "iscrowd": 0, "image_id": 146049, "bbox": [85.6, 272.87, 5.25, 3.42], "category_id": 1, "id": 1289470}, {"segmentation": [[522.3, 328.82, 518.33, 328.6, 516.35, 325.19, 515.03, 324.42, 507.43, 324.42, 501.93, 324.86, 498.62, 323.54, 500.61, 321.34, 508.97, 317.81, 507.54, 316.05, 508.31, 311.76, 511.73, 310.43, 514.59, 313.19, 517.89, 314.07, 523.29, 320.12, 524.61, 323.98, 524.72, 326.29, 523.18, 327.83]], "area": 232.10189999999997, "iscrowd": 0, "image_id": 45124, "bbox": [498.62, 310.43, 26.1, 18.39], "category_id": 1, "id": 1289581}, {"segmentation": [[253.93, 420.6, 243.44, 423.43, 239.41, 421.81, 230.94, 425.04, 226.1, 425.04, 220.46, 419.39, 218.44, 412.94, 220.46, 399.23, 218.44, 390.36, 209.97, 370.2, 204.33, 368.59, 195.46, 277.46, 197.88, 260.52, 193.44, 223.02, 199.49, 206.08, 205.54, 201.65, 205.54, 191.97, 206.75, 175.44, 215.22, 157.29, 228.93, 156.89, 234.97, 161.32, 239.81, 169.79, 243.44, 190.76, 245.05, 200.03, 247.07, 204.87, 256.35, 208.91, 261.18, 256.08, 258.36, 263.75, 256.75, 269.39, 259.17, 280.28, 259.17, 324.63, 261.18, 346.01, 256.75, 354.47, 252.72, 364.15, 250.7, 373.43, 244.65, 389.56, 244.65, 403.27, 246.67, 407.7, 252.72, 414.56]], "area": 13129.259800000007, "iscrowd": 0, "image_id": 444214, "bbox": [193.44, 156.89, 67.74, 268.15], "category_id": 1, "id": 1290053}, {"segmentation": [[352.79, 72.21, 365.16, 59.07, 375.22, 50.56, 384.5, 57.52, 397.64, 76.08, 420.07, 82.27, 443.27, 90.78, 433.99, 118.62, 421.45, 124.64, 421.45, 115.6, 428.68, 96.92, 414.22, 96.32, 395.53, 104.76, 373.84, 119.82, 367.21, 122.23, 369.02, 108.37, 371.43, 100.54, 366.61, 95.12, 363.0, 89.09, 356.97, 82.46, 351.55, 78.24], [432.9, 144.53, 412.41, 154.77, 411.8, 173.45, 416.02, 204.79, 422.05, 227.08, 430.48, 246.97, 417.23, 259.62, 428.07, 268.66, 436.51, 266.85, 437.11, 245.16, 430.48, 194.54, 434.1, 156.58, 432.9, 143.93]], "area": 4769.9565999999995, "iscrowd": 0, "image_id": 517261, "bbox": [351.55, 50.56, 91.72, 218.1], "category_id": 1, "id": 1290280}, {"segmentation": [[241.81, 43.18, 205.34, 38.38, 201.51, 1.92, 242.77, 1.92, 239.89, 42.22]], "area": 1466.7795, "iscrowd": 0, "image_id": 191918, "bbox": [201.51, 1.92, 41.26, 41.26], "category_id": 1, "id": 1290403}, {"segmentation": [[583.4, 290.95, 578.87, 292.04, 572.16, 291.49, 574.33, 289.68, 575.6, 289.32, 576.51, 282.79, 575.06, 282.06, 572.88, 282.42, 571.43, 278.8, 572.88, 277.71, 575.42, 274.99, 581.95, 274.99, 584.13, 276.98, 582.5, 284.78, 583.76, 290.04]], "area": 148.9002000000002, "iscrowd": 0, "image_id": 45124, "bbox": [571.43, 274.99, 12.7, 17.05], "category_id": 1, "id": 1290434}, {"segmentation": [[247.64, 390.02, 249.34, 384.69, 249.58, 380.1, 249.58, 376.23, 249.58, 372.36, 249.1, 368.25, 249.1, 361.48, 249.1, 357.85, 249.58, 351.56, 250.06, 348.42, 250.55, 342.37, 251.51, 338.5, 252.24, 337.29, 249.82, 333.42, 249.34, 331.49, 249.34, 329.07, 245.71, 331.49, 241.6, 333.9, 238.45, 334.63, 232.41, 334.63, 229.26, 333.66, 229.75, 332.21, 234.34, 330.76, 239.66, 330.03, 244.02, 327.62, 245.71, 325.44, 247.64, 320.36, 248.13, 318.43, 246.7, 316.66, 246.26, 314.46, 246.85, 312.25, 246.99, 310.64, 250.37, 313.28, 252.43, 315.63, 253.75, 316.07, 255.22, 317.1, 256.98, 317.24, 259.33, 317.24, 265.2, 324.44, 266.52, 330.75, 267.7, 335.01, 267.11, 337.51, 266.52, 337.95, 268.43, 342.79, 268.87, 349.69, 267.7, 363.94, 267.4, 365.7, 268.58, 368.93, 271.51, 371.57, 275.04, 381.85, 276.07, 385.08, 274.16, 389.34, 273.28, 391.1, 271.81, 391.69, 268.87, 391.69, 267.7, 391.69, 268.43, 390.07, 268.87, 388.02, 268.87, 386.4, 268.58, 382.58, 267.84, 379.65, 267.26, 377.3, 266.82, 375.83, 263.0, 372.16, 262.12, 369.66, 261.53, 367.61, 260.94, 364.08, 260.35, 358.5, 258.74, 358.5, 256.24, 360.85, 256.1, 366.58, 255.51, 370.54, 255.22, 374.8, 255.36, 379.06, 255.07, 383.17, 255.07, 384.93, 255.07, 387.43, 254.92, 394.18, 251.84, 395.65, 248.46, 395.8, 245.52, 394.77, 245.23, 392.86]], "area": 1297.76225, "iscrowd": 0, "image_id": 404964, "bbox": [229.26, 310.64, 46.81, 85.16], "category_id": 1, "id": 1290464}, {"segmentation": [[161.61, 297.32, 121.21, 271.42, 102.56, 254.84, 121.21, 197.87, 124.31, 196.83, 117.06, 167.82, 130.53, 148.14, 145.03, 141.93, 165.75, 151.25, 175.08, 176.11, 174.04, 190.62, 167.82, 192.69, 203.05, 196.83, 210.3, 207.19, 195.8, 234.13, 209.26, 254.84, 203.05, 267.28]], "area": 10374.318599999999, "iscrowd": 0, "image_id": 480818, "bbox": [102.56, 141.93, 107.74, 155.39], "category_id": 1, "id": 1290642}, {"segmentation": [[376.79, 44.14, 377.06, 41.11, 385.33, 38.08, 385.88, 32.29, 388.91, 23.47, 394.7, 19.89, 400.21, 23.75, 402.97, 34.49, 405.17, 39.18, 410.13, 39.18, 417.02, 44.14, 417.29, 45.79]], "area": 477.62059999999997, "iscrowd": 0, "image_id": 60771, "bbox": [376.79, 19.89, 40.5, 25.9], "category_id": 1, "id": 1290786}, {"segmentation": [[166.0, 139.72, 167.39, 133.48, 174.33, 130.01, 177.8, 127.23, 183.35, 127.92, 193.76, 140.42, 188.21, 166.79, 196.53, 171.64, 200.7, 171.64, 206.94, 174.42, 206.25, 190.38, 206.25, 200.79, 199.31, 206.34, 192.37, 220.92, 193.76, 229.24, 189.59, 212.59, 185.43, 198.01, 183.35, 193.85, 167.39, 187.61, 165.3, 182.05, 169.47, 175.81, 170.86, 164.7, 170.16, 151.52], [193.76, 262.55, 198.61, 262.55, 196.53, 273.66, 204.17, 369.42, 207.64, 383.3, 206.25, 390.24, 205.55, 390.94, 210.41, 394.41, 214.58, 397.88, 213.19, 404.82, 203.47, 405.51, 193.76, 404.12, 193.76, 400.65, 182.65, 398.57, 186.12, 390.24, 188.21, 335.42, 185.43, 320.15, 183.35, 294.48, 187.51, 289.62, 188.9, 291.7, 191.68, 288.92, 188.9, 281.98, 186.82, 278.51, 192.37, 272.96]], "area": 4159.53895, "iscrowd": 0, "image_id": 444214, "bbox": [165.3, 127.23, 49.28, 278.28], "category_id": 1, "id": 1290818}, {"segmentation": [[132.83, 170.94, 132.61, 167.07, 134.12, 163.19, 137.78, 160.61, 141.01, 159.1, 145.74, 158.24, 153.27, 158.24, 155.21, 158.24, 157.58, 160.18, 164.46, 178.47, 152.2, 183.85, 145.1, 189.23, 142.3, 185.79, 140.15, 182.35, 135.63, 178.9, 133.9, 172.02]], "area": 657.3120499999998, "iscrowd": 0, "image_id": 333356, "bbox": [132.61, 158.24, 31.85, 30.99], "category_id": 1, "id": 1291317}, {"segmentation": [[513.39, 134.68, 514.4, 127.94, 514.07, 122.56, 508.68, 117.51, 509.35, 112.79, 509.35, 108.08, 508.68, 104.04, 507.0, 102.02, 497.91, 103.37, 493.53, 106.4, 492.52, 114.48, 491.85, 117.84, 494.2, 122.22, 495.21, 129.29, 495.89, 132.32, 502.28, 134.68]], "area": 542.4266500000007, "iscrowd": 0, "image_id": 130624, "bbox": [491.85, 102.02, 22.55, 32.66], "category_id": 1, "id": 1291771}, {"segmentation": [[383.41, 275.58, 382.69, 269.29, 383.05, 261.56, 383.23, 254.01, 381.61, 248.62, 379.45, 245.74, 380.71, 238.01, 384.49, 234.42, 387.18, 232.98, 387.54, 228.84, 389.52, 226.51, 393.29, 226.87, 394.01, 230.64, 394.37, 232.26, 396.35, 233.16, 398.87, 238.19, 398.69, 245.56, 398.15, 249.34, 395.45, 252.03, 394.37, 259.05, 395.27, 266.96, 394.91, 273.25, 392.93, 276.66, 387.9, 277.38, 381.97, 275.58]], "area": 648.7312, "iscrowd": 0, "image_id": 415946, "bbox": [379.45, 226.51, 19.42, 50.87], "category_id": 1, "id": 1291800}, {"segmentation": [[539.43, 212.32, 539.43, 191.88, 537.09, 183.12, 534.76, 174.95, 532.42, 160.94, 525.42, 155.1, 523.08, 151.59, 523.08, 146.92, 523.08, 140.5, 523.08, 132.32, 523.66, 122.4, 524.25, 114.22, 526.58, 102.55, 528.34, 97.87, 533.01, 91.45, 538.85, 89.12, 546.44, 84.44, 547.02, 80.94, 544.68, 75.1, 543.52, 70.43, 544.1, 64.59, 548.19, 60.5, 551.69, 60.5, 556.95, 61.67, 561.62, 64.01, 563.95, 69.26, 563.95, 73.93, 563.37, 78.61, 562.79, 80.94, 563.95, 83.28, 573.3, 89.12, 577.38, 94.37, 573.3, 142.25, 577.38, 156.26, 577.97, 169.11, 577.38, 180.2, 574.46, 193.63, 570.96, 213.49, 568.62, 222.25, 566.29, 216.41, 566.29, 207.65, 566.87, 194.8, 566.87, 190.71, 565.12, 180.79, 562.79, 175.53, 559.87, 171.45, 558.7, 171.45, 554.03, 178.45, 552.28, 183.12, 552.86, 188.38, 553.44, 202.39, 552.86, 211.15, 552.86, 218.16, 556.36, 225.17, 553.44, 231.0, 545.27, 231.59, 534.17, 231.59, 531.26, 231.59, 531.26, 229.25]], "area": 6013.9807500000015, "iscrowd": 0, "image_id": 1431, "bbox": [523.08, 60.5, 54.89, 171.09], "category_id": 1, "id": 1291881}, {"segmentation": [[254.19, 43.36, 252.52, 29.58, 257.95, 0.0, 277.17, 1.18, 270.07, 40.85], [279.67, 2.01, 303.06, 0.34, 296.38, 45.03, 279.25, 45.03]], "area": 1672.6273499999998, "iscrowd": 0, "image_id": 191918, "bbox": [252.52, 0.0, 50.54, 45.03], "category_id": 1, "id": 1292116}, {"segmentation": [[185.53, 238.0, 178.85, 187.05, 183.86, 186.21, 187.2, 181.62, 186.37, 172.43, 181.35, 170.76, 178.85, 161.99, 181.35, 147.37, 186.37, 140.69, 193.88, 138.6, 205.58, 140.27, 210.17, 145.28, 211.01, 150.71, 203.07, 173.26, 201.82, 183.71, 199.31, 196.24, 203.07, 204.59, 190.12, 215.87, 187.2, 236.75]], "area": 1737.4065999999998, "iscrowd": 0, "image_id": 221842, "bbox": [178.85, 138.6, 32.16, 99.4], "category_id": 1, "id": 1292460}, {"segmentation": [[377.04, 232.6, 378.21, 229.09, 377.82, 226.36, 378.73, 224.02, 380.03, 221.55, 381.97, 220.38, 383.01, 219.99, 382.49, 215.83, 383.14, 212.06, 384.18, 212.06, 388.86, 214.01, 389.77, 217.52, 390.81, 222.07, 394.58, 223.89, 395.88, 225.45, 395.75, 227.66, 395.49, 227.92, 394.58, 229.48, 392.63, 232.21, 390.03, 234.68, 390.81, 237.93, 391.98, 239.22, 386.39, 247.28, 382.36, 249.88, 381.19, 244.42, 380.94, 242.08, 380.42, 238.7, 379.51, 237.02, 378.34, 236.5, 377.17, 236.76, 377.17, 236.76]], "area": 393.38204999999977, "iscrowd": 0, "image_id": 294416, "bbox": [377.04, 212.06, 18.84, 37.82], "category_id": 1, "id": 1292479}, {"segmentation": [[142.18, 172.14, 144.54, 170.96, 145.61, 168.84, 145.37, 165.06, 144.54, 161.05, 147.02, 156.68, 150.68, 155.38, 155.16, 156.44, 158.0, 157.86, 158.59, 160.81, 160.24, 162.58, 159.18, 163.64, 159.41, 166.0, 158.94, 169.07, 157.05, 171.2, 158.0, 174.03, 160.95, 177.57, 163.78, 180.87, 171.09, 183.47, 169.68, 183.94, 146.55, 181.82]], "area": 394.3865499999996, "iscrowd": 0, "image_id": 511988, "bbox": [142.18, 155.38, 28.91, 28.56], "category_id": 1, "id": 1292494}, {"segmentation": [[420.29, 310.83, 420.77, 306.36, 422.37, 304.28, 423.65, 303.8, 427.32, 306.52, 427.32, 310.19, 427.48, 312.58, 429.39, 317.37, 429.87, 326.94, 428.91, 335.56, 422.85, 338.59, 424.6, 344.49, 421.25, 344.65, 419.98, 338.59, 419.34, 336.2, 418.38, 332.37, 418.06, 329.97, 417.1, 328.06, 415.19, 326.14, 418.06, 320.72, 411.52, 325.67, 407.21, 327.1, 404.02, 329.97, 400.83, 326.46, 416.62, 317.21]], "area": 435.7533500000008, "iscrowd": 0, "image_id": 404964, "bbox": [400.83, 303.8, 29.04, 40.85], "category_id": 1, "id": 1292770}, {"segmentation": [[44.93, 270.9, 49.21, 270.58, 49.13, 267.96, 48.42, 266.37, 47.94, 265.03, 47.71, 263.99, 46.91, 263.44, 45.72, 263.92, 45.41, 265.66, 45.56, 266.37, 44.53, 267.01, 44.45, 268.44, 44.77, 269.86], [44.29, 272.96, 43.66, 275.58, 43.74, 278.03, 44.14, 279.46, 46.12, 279.78, 46.44, 278.19, 45.8, 275.5, 46.2, 274.07, 46.75, 274.31, 46.99, 275.97, 46.99, 277.56, 46.91, 278.83, 48.26, 279.46, 49.13, 278.11, 48.9, 276.29, 48.58, 274.39, 48.42, 273.83, 48.5, 273.04]], "area": 52.81329999999984, "iscrowd": 0, "image_id": 274881, "bbox": [43.66, 263.44, 5.55, 16.34], "category_id": 1, "id": 1293094}, {"segmentation": [[340.6, 347.6, 342.15, 342.94, 344.02, 333.29, 346.51, 325.51, 350.24, 317.74, 352.42, 313.69, 354.91, 312.14, 356.15, 308.09, 355.53, 306.85, 353.66, 303.43, 353.66, 302.49, 353.66, 294.72, 353.66, 286.63, 354.6, 280.72, 358.02, 278.85, 364.24, 277.29, 373.58, 277.92, 375.13, 282.58, 375.44, 292.85, 375.44, 302.8, 380.42, 307.16, 386.95, 311.2, 389.44, 312.45, 390.69, 316.18, 392.55, 327.69, 396.6, 343.25, 398.15, 352.89, 401.57, 357.87, 402.51, 363.16, 404.69, 366.58, 393.49, 370.63, 388.2, 370.31, 377.31, 370.31, 377.0, 372.49, 381.35, 391.78, 370.15, 396.14, 368.6, 390.54, 367.98, 388.36, 367.04, 386.49, 364.86, 388.98, 358.95, 392.71, 354.6, 399.87, 354.6, 410.45, 354.6, 422.89, 359.89, 425.38, 358.95, 437.51, 358.64, 440.0, 349.62, 444.36, 344.95, 442.49, 344.95, 442.49, 339.98, 440.62, 333.44, 438.45, 333.44, 434.4, 334.69, 431.29, 339.04, 431.29, 341.84, 428.8, 342.15, 428.18, 341.84, 426.0, 339.35, 421.34, 339.66, 416.36, 338.73, 402.05, 337.8, 393.65, 337.8, 386.49, 339.66, 381.83, 341.53, 369.38, 335.62, 377.16, 332.2, 379.65, 330.33, 382.14, 326.29, 385.25, 322.24, 384.94, 321.31, 383.07, 322.55, 378.4, 324.42, 374.36, 331.89, 373.43]], "area": 5812.6347000000005, "iscrowd": 0, "image_id": 404964, "bbox": [321.31, 277.29, 83.38, 167.07], "category_id": 1, "id": 1293384}, {"segmentation": [[353.19, 170.52, 353.98, 165.81, 350.44, 162.87, 347.89, 161.1, 342.79, 162.87, 334.74, 157.37, 328.26, 149.91, 326.5, 145.2, 329.83, 139.12, 331.01, 134.21, 330.82, 132.05, 331.21, 130.09, 330.03, 127.15, 323.36, 123.81, 319.63, 124.01, 314.72, 126.95, 312.17, 133.23, 314.72, 140.1, 312.56, 143.83, 307.66, 155.21, 305.1, 157.77, 311.19, 160.12, 312.95, 168.17, 306.67, 173.27, 304.32, 175.43, 305.89, 178.77, 316.29, 178.57, 317.67, 180.14, 325.91, 176.8, 338.08, 173.66, 345.34, 173.66, 353.0, 170.13]], "area": 1309.7187499999993, "iscrowd": 0, "image_id": 480818, "bbox": [304.32, 123.81, 49.66, 56.33], "category_id": 1, "id": 1294194}, {"segmentation": [[246.76, 294.86, 247.95, 294.86, 248.43, 294.38, 252.01, 293.91, 253.92, 287.22, 255.35, 284.36, 255.35, 282.69, 255.11, 278.63, 255.35, 277.67, 256.31, 277.44, 258.69, 277.67, 262.75, 284.12, 268.72, 291.04, 262.99, 302.74, 265.62, 320.64, 261.32, 324.46, 260.84, 324.22, 259.17, 323.75, 258.69, 323.51, 258.69, 323.03, 258.22, 320.64, 258.69, 318.97, 259.89, 317.54, 257.26, 312.29, 255.59, 308.71, 254.4, 306.32, 255.83, 295.1, 253.68, 294.38, 252.72, 295.82, 250.58, 296.77, 249.14, 296.77, 247.23, 295.82]], "area": 412.6414500000001, "iscrowd": 0, "image_id": 575792, "bbox": [246.76, 277.44, 21.96, 47.02], "category_id": 1, "id": 1294523}, {"segmentation": [[454.13, 297.31, 449.69, 286.46, 448.21, 277.58, 452.65, 266.24, 454.62, 262.78, 462.02, 257.36, 463.01, 253.41, 462.02, 248.48, 457.58, 244.53, 451.17, 239.11, 451.17, 238.61, 447.72, 240.09, 447.72, 236.15, 448.7, 232.2, 446.24, 226.77, 443.77, 224.31, 433.41, 226.77, 433.41, 232.69, 435.39, 240.59, 437.36, 244.53, 429.96, 248.97, 426.51, 250.45, 420.1, 263.77, 424.04, 269.2, 426.01, 271.17, 425.52, 277.09, 427.49, 284.98, 430.45, 288.43, 429.47, 296.32, 429.47, 305.2, 428.48, 307.67, 435.39, 311.62, 438.35, 306.68, 438.84, 297.8, 437.36, 283.5, 443.28, 296.32, 443.28, 302.74, 444.27, 307.18, 447.72, 305.7, 450.68, 300.76]], "area": 1893.3327499999991, "iscrowd": 0, "image_id": 20251, "bbox": [420.1, 224.31, 42.91, 87.31], "category_id": 1, "id": 1294544}, {"segmentation": [[242.04, 312.7, 237.48, 295.21, 238.62, 290.27, 238.62, 284.95, 239.38, 279.25, 240.52, 278.11, 244.7, 276.21, 259.9, 283.05, 258.38, 292.17, 256.48, 306.62, 269.03, 318.4, 265.99, 327.9, 257.62, 337.4, 250.02, 324.1, 243.18, 315.36]], "area": 1020.6362999999997, "iscrowd": 0, "image_id": 41577, "bbox": [237.48, 276.21, 31.55, 61.19], "category_id": 1, "id": 1294837}, {"segmentation": [[374.88, 199.26, 374.57, 196.49, 374.57, 185.1, 380.11, 171.24, 383.8, 168.17, 383.8, 168.17, 381.96, 160.47, 385.34, 151.54, 397.35, 150.0, 401.35, 166.63, 401.35, 166.63, 405.35, 181.71, 421.36, 186.64, 438.6, 191.56, 433.36, 197.41, 408.12, 199.56, 393.96, 200.8, 414.9, 203.57, 426.9, 210.03, 429.36, 216.8, 399.5, 216.8, 394.27, 223.88, 383.8, 221.11, 372.11, 210.34]], "area": 2406.841350000001, "iscrowd": 0, "image_id": 511988, "bbox": [372.11, 150.0, 66.49, 73.88], "category_id": 1, "id": 1295464}, {"segmentation": [[228.02, 280.89, 231.81, 279.63, 238.65, 283.42, 245.48, 293.79, 250.28, 311.0, 241.18, 312.26, 235.36, 299.11, 230.8, 296.32, 228.27, 290.0]], "area": 375.07159999999936, "iscrowd": 0, "image_id": 332065, "bbox": [228.02, 279.63, 22.26, 32.63], "category_id": 1, "id": 1295578}, {"segmentation": [[26.48, 269.42, 22.39, 269.9, 21.55, 269.42, 21.67, 261.12, 23.23, 260.52, 23.47, 258.6, 24.91, 258.12, 25.4, 260.52, 26.84, 261.73, 26.48, 268.94]], "area": 48.81319999999996, "iscrowd": 0, "image_id": 274881, "bbox": [21.55, 258.12, 5.29, 11.78], "category_id": 1, "id": 1295581}, {"segmentation": [[528.09, 170.71, 530.43, 170.04, 530.43, 168.2, 530.59, 165.69, 532.27, 163.69, 534.44, 164.52, 534.78, 165.86, 535.45, 167.53, 535.95, 168.04, 535.95, 169.04, 535.11, 170.21, 533.94, 170.88]], "area": 31.254900000000273, "iscrowd": 0, "image_id": 425652, "bbox": [528.09, 163.69, 7.86, 7.19], "category_id": 1, "id": 1295829}, {"segmentation": [[538.69, 115.23, 540.13, 111.41, 539.65, 107.11, 539.65, 104.09, 540.6, 102.81, 543.47, 101.22, 543.95, 98.99, 543.79, 96.76, 544.58, 94.85, 546.18, 93.42, 548.56, 93.1, 550.0, 93.26, 551.27, 95.49, 550.95, 95.96, 552.07, 97.4, 551.27, 98.99, 550.63, 98.99, 550.32, 98.99, 550.32, 99.79, 550.16, 101.7, 550.63, 102.65, 551.43, 102.97, 551.59, 102.97, 552.7, 104.24, 552.86, 105.04, 553.02, 106.16, 553.02, 106.79, 553.02, 107.75, 553.02, 108.86, 552.55, 109.66, 552.55, 110.14, 551.91, 110.77, 551.43, 111.73, 551.27, 112.21, 551.27, 112.84, 551.27, 113.64, 551.59, 113.8, 551.91, 114.28, 552.7, 115.55, 552.7, 116.19, 552.39, 118.26, 551.75, 119.37, 549.36, 120.49, 548.09, 120.96, 546.49, 121.6, 545.7, 122.56, 545.54, 123.19, 545.22, 123.67, 544.9, 124.15, 544.9, 124.15]], "area": 293.7997999999999, "iscrowd": 0, "image_id": 23015, "bbox": [538.69, 93.1, 14.33, 31.05], "category_id": 1, "id": 1296149}, {"segmentation": [[555.25, 118.58, 555.87, 110.54, 556.8, 107.14, 559.27, 101.89, 560.51, 98.18, 559.27, 93.24, 565.14, 88.6, 569.16, 88.29, 570.09, 91.07, 570.71, 94.16, 571.63, 98.18, 572.25, 101.89, 574.11, 104.36, 572.25, 111.47, 572.25, 115.49, 572.25, 120.43, 570.4, 124.45, 565.76, 125.38, 552.16, 124.76, 554.33, 119.51]], "area": 525.0921000000006, "iscrowd": 0, "image_id": 23015, "bbox": [552.16, 88.29, 21.95, 37.09], "category_id": 1, "id": 1297001}, {"segmentation": [[303.93, 322.66, 305.29, 313.98, 308.0, 300.43, 306.64, 291.49, 304.2, 287.42, 302.31, 285.25, 300.14, 284.17, 297.7, 284.17, 297.43, 288.78, 294.99, 291.49, 294.17, 295.55, 291.19, 298.26, 294.99, 300.43, 297.97, 296.64, 299.59, 304.23, 299.87, 315.34, 301.49, 321.84]], "area": 296.55095000000006, "iscrowd": 0, "image_id": 575792, "bbox": [291.19, 284.17, 16.81, 38.49], "category_id": 1, "id": 1297144}, {"segmentation": [[229.35, 207.5, 230.4, 201.77, 229.35, 198.9, 227.27, 198.12, 227.79, 192.38, 227.79, 185.35, 229.87, 184.82, 230.13, 181.7, 231.18, 179.61, 233.26, 179.87, 234.57, 181.44, 234.3, 183.52, 234.3, 186.13, 236.13, 188.21, 236.65, 190.3, 237.43, 194.21, 237.43, 195.77, 236.91, 197.07, 235.61, 197.07, 235.35, 196.81, 235.35, 199.94, 235.35, 203.59, 235.35, 207.5, 233.78, 207.76, 233.52, 206.98, 231.96, 208.02]], "area": 187.7861, "iscrowd": 0, "image_id": 511988, "bbox": [227.27, 179.61, 10.16, 28.41], "category_id": 1, "id": 1297869}, {"segmentation": [[18.61, 442.3, 19.55, 426.74, 40.3, 431.93, 56.33, 396.09, 35.58, 386.19, 20.02, 385.72, 28.04, 355.54, 16.72, 341.86, 15.31, 325.36, 29.45, 322.06, 41.71, 334.79, 58.69, 317.34, 44.54, 303.19, 46.9, 296.59, 39.36, 288.11, 48.79, 288.11, 58.22, 275.84, 82.27, 283.86, 90.28, 305.55, 81.32, 312.63, 88.4, 323.94, 83.21, 362.61, 81.32, 398.92, 77.55, 445.6, 77.55, 453.62, 76.14, 479.55, 61.99, 479.55, 47.37, 450.79], [20.02, 452.2, 38.88, 459.75, 45.96, 480.5, 17.66, 480.5]], "area": 9158.19895, "iscrowd": 0, "image_id": 404964, "bbox": [15.31, 275.84, 74.97, 204.66], "category_id": 1, "id": 1298134}, {"segmentation": [[214.73, 307.11, 199.22, 298.56, 208.85, 277.16, 252.18, 252.02, 249.5, 232.76, 228.1, 249.34, 216.34, 245.6, 217.41, 223.66, 240.41, 187.29, 254.85, 169.64, 308.88, 170.17, 329.74, 216.71, 323.32, 229.55, 324.93, 249.88, 330.81, 261.11, 321.72, 283.04, 307.81, 279.83, 273.57, 290.53, 232.92, 295.35, 224.89, 293.74]], "area": 11431.6315, "iscrowd": 0, "image_id": 64744, "bbox": [199.22, 169.64, 131.59, 137.47], "category_id": 1, "id": 1298591}, {"segmentation": [[414.76, 44.17, 418.31, 42.24, 418.9, 41.35, 426.45, 41.21, 426.45, 40.76, 425.86, 38.99, 424.38, 35.73, 423.19, 28.92, 422.9, 24.48, 424.97, 21.67, 427.93, 20.19, 430.3, 20.19, 432.37, 21.08, 438.14, 21.97, 438.29, 26.11, 439.62, 32.03, 440.95, 32.18, 440.95, 32.92, 437.55, 34.69, 436.07, 35.73, 435.92, 36.17, 435.48, 37.51, 434.89, 41.5, 434.74, 44.17, 434.74, 44.31, 432.81, 45.05, 431.48, 45.5]], "area": 340.34965000000017, "iscrowd": 0, "image_id": 60771, "bbox": [414.76, 20.19, 26.19, 25.31], "category_id": 1, "id": 1298847}, {"segmentation": [[551.74, 263.88, 549.82, 262.92, 545.02, 261.0, 544.07, 256.2, 546.94, 248.52, 558.46, 244.69, 562.3, 254.28, 569.01, 267.71, 572.85, 283.07, 565.18, 313.77, 572.85, 349.28, 569.01, 369.43, 569.97, 379.98, 556.54, 379.02, 556.54, 355.99, 551.74, 324.33, 542.15, 295.54, 541.19, 290.74, 547.9, 274.43, 550.78, 270.59, 552.7, 267.71]], "area": 2483.7028999999993, "iscrowd": 0, "image_id": 450281, "bbox": [541.19, 244.69, 31.66, 135.29], "category_id": 1, "id": 1298902}, {"segmentation": [[548.91, 292.68, 549.53, 291.45, 550.02, 290.03, 550.02, 288.06, 550.14, 286.39, 549.46, 284.54, 549.46, 282.88, 550.82, 281.4, 551.75, 281.34, 553.66, 281.89, 554.34, 283.74, 556.0, 285.28, 557.17, 289.04, 558.1, 291.69, 558.96, 294.78, 559.27, 296.01, 559.27, 296.26, 559.27, 296.32, 558.47, 296.2, 558.16, 296.2, 555.69, 296.75, 551.81, 297.18, 549.71, 297.18, 547.8, 297.0, 546.88, 295.95, 546.88, 295.89, 546.88, 295.21, 546.94, 294.22, 547.49, 293.42]], "area": 120.6746000000001, "iscrowd": 0, "image_id": 45124, "bbox": [546.88, 281.34, 12.39, 15.84], "category_id": 1, "id": 1299061}, {"segmentation": [[105.14, 5.52, 105.14, 0.95, 105.14, 0.17, 115.33, 0.43, 114.55, 7.09, 114.94, 8.79, 115.2, 10.09, 105.53, 9.57], [104.89, 15.32, 105.82, 25.64, 108.33, 35.18, 109.58, 36.74, 113.65, 36.74, 114.9, 36.43, 115.52, 35.49, 114.59, 15.78], [128.04, 0.76, 128.66, 10.46, 132.11, 10.77, 132.42, 8.58, 134.61, 0.45], [128.04, 18.28, 129.6, 23.91, 129.6, 28.61, 129.6, 31.42, 127.1, 35.18, 137.11, 37.05, 143.06, 36.43, 142.74, 35.18, 140.24, 32.36, 138.68, 29.54, 138.68, 27.04, 141.49, 17.34, 140.55, 15.47, 135.86, 15.15, 130.23, 15.15]], "area": 563.3805500000004, "iscrowd": 0, "image_id": 191918, "bbox": [104.89, 0.17, 38.17, 36.88], "category_id": 1, "id": 1299264}, {"segmentation": [[597.24, 286.18, 603.82, 277.69, 604.64, 273.3, 614.23, 256.59, 618.07, 251.11, 617.24, 248.64, 619.98, 236.58, 626.56, 221.78, 631.77, 217.12, 637.52, 211.92, 640.0, 212.47, 640.0, 212.74, 639.99, 255.49, 640.0, 263.44, 639.44, 265.63, 639.72, 326.63, 635.06, 323.89, 630.12, 321.15, 629.03, 319.51, 623.0, 316.49, 616.97, 314.3, 616.7, 309.91, 616.15, 302.52, 615.87, 297.58, 613.41, 294.02, 606.01, 293.2, 602.17, 293.2, 598.61, 292.1]], "area": 2678.3156500000023, "iscrowd": 0, "image_id": 130624, "bbox": [597.24, 211.92, 42.76, 114.71], "category_id": 1, "id": 1299443}, {"segmentation": [[116.8, 212.54, 122.55, 191.48, 125.42, 176.16, 122.55, 152.23, 110.1, 143.61, 101.48, 139.78, 89.04, 154.14, 80.42, 162.76, 79.46, 188.61, 76.59, 198.18, 88.08, 208.71, 103.4, 212.54, 117.76, 217.33, 120.63, 208.71]], "area": 2692.642, "iscrowd": 0, "image_id": 119337, "bbox": [76.59, 139.78, 48.83, 77.55], "category_id": 1, "id": 1299455}, {"segmentation": [[621.03, 303.75, 612.57, 308.75, 611.8, 306.06, 615.26, 302.6, 615.26, 297.99, 614.49, 296.45, 608.73, 299.91, 608.73, 295.3, 613.72, 290.3, 616.03, 288.76, 616.8, 287.22, 617.57, 283.77, 619.87, 282.61, 623.72, 284.15, 625.25, 288.76]], "area": 219.07144999999988, "iscrowd": 0, "image_id": 173163, "bbox": [608.73, 282.61, 16.52, 26.14], "category_id": 1, "id": 1299475}, {"segmentation": [[436.85, 351.13, 439.02, 349.28, 437.47, 346.49, 439.95, 340.6, 442.42, 348.97, 448.0, 346.18, 444.9, 344.01, 442.42, 329.46, 449.86, 318.62, 445.83, 314.59, 442.73, 309.63, 442.42, 307.47, 441.8, 301.27, 439.64, 300.34, 437.47, 305.61, 434.68, 309.63, 430.96, 314.9, 430.96, 316.45, 432.51, 324.5, 434.68, 328.53, 435.3, 330.69, 435.92, 335.03, 435.92, 340.3, 432.51, 347.73]], "area": 474.3035000000003, "iscrowd": 0, "image_id": 404964, "bbox": [430.96, 300.34, 18.9, 50.79], "category_id": 1, "id": 1299589}, {"segmentation": [[302.61, 184.4, 300.07, 174.23, 300.07, 170.95, 301.16, 168.77, 301.16, 163.68, 302.61, 160.77, 307.7, 159.68, 308.79, 165.5, 312.07, 174.59, 312.07, 181.86]], "area": 216.98029999999986, "iscrowd": 0, "image_id": 511988, "bbox": [300.07, 159.68, 12.0, 24.72], "category_id": 1, "id": 1300017}, {"segmentation": [[136.99, 177.99, 132.05, 170.08, 122.66, 166.13, 112.77, 166.13, 104.36, 169.09, 99.91, 178.98, 95.46, 182.94, 92.5, 193.32, 95.96, 199.25, 100.9, 202.22, 99.91, 209.63, 100.41, 213.1, 97.44, 217.05, 84.09, 223.97, 75.19, 227.93, 72.22, 233.86, 67.28, 248.2, 63.33, 269.95, 60.85, 298.14, 58.38, 322.86, 58.88, 340.16, 56.4, 349.06, 65.8, 354.99, 64.81, 360.93, 74.2, 371.31, 70.25, 400.48, 69.26, 426.19, 157.26, 426.68, 152.82, 414.32, 149.35, 405.92, 146.88, 380.21, 141.78, 353.88, 123.09, 339.87, 99.74, 323.52, 87.47, 307.76, 92.14, 278.56, 99.74, 265.71, 110.83, 241.77, 116.67, 224.84, 124.84, 211.41, 131.85, 207.32, 139.44, 196.81, 141.78, 186.89, 138.27, 181.05, 133.6, 175.21]], "area": 13010.032000000001, "iscrowd": 0, "image_id": 333356, "bbox": [56.4, 166.13, 100.86, 260.55], "category_id": 1, "id": 1300067}, {"segmentation": [[54.63, 240.3, 56.13, 238.59, 55.28, 236.88, 56.99, 236.66, 60.2, 241.8, 61.27, 241.16, 62.56, 241.16, 62.77, 242.66, 61.06, 245.87, 60.85, 250.37, 62.13, 256.8, 56.56, 254.65, 55.28, 249.73, 54.63, 245.23]], "area": 103.08415000000001, "iscrowd": 0, "image_id": 539099, "bbox": [54.63, 236.66, 8.14, 20.14], "category_id": 1, "id": 1300216}, {"segmentation": [[338.67, 176.94, 342.4, 166.47, 341.28, 160.12, 346.33, 156.57, 352.12, 156.75, 352.12, 165.35, 354.74, 173.57, 355.11, 182.92, 355.3, 188.71, 345.58, 184.41, 336.24, 184.79, 338.29, 175.82]], "area": 391.36395000000056, "iscrowd": 0, "image_id": 511988, "bbox": [336.24, 156.57, 19.06, 32.14], "category_id": 1, "id": 1300250}, {"segmentation": [[338.94, 45.9, 335.87, 46.11, 333.01, 44.47, 325.23, 44.47, 323.8, 43.24, 322.77, 44.06, 320.11, 43.44, 319.7, 34.85, 319.09, 30.14, 317.45, 27.07, 316.22, 20.11, 315.81, 12.13, 314.79, 9.87, 314.58, 7.21, 314.58, 6.19, 311.31, 2.92, 308.44, 0.25, 340.38, 0.0, 342.22, 2.51, 342.01, 5.37, 343.04, 8.24, 342.42, 12.74, 340.79, 17.04, 340.79, 20.52, 340.79, 25.43, 340.58, 27.48, 339.56, 28.5, 339.35, 31.98, 339.35, 36.49, 339.35, 44.88]], "area": 1069.0109000000004, "iscrowd": 0, "image_id": 524522, "bbox": [308.44, 0.0, 34.6, 46.11], "category_id": 1, "id": 1300826}, {"segmentation": [[315.24, 341.87, 307.22, 341.87, 297.97, 348.04, 296.12, 333.85, 297.36, 325.22, 296.12, 312.27, 298.59, 311.65, 305.37, 314.74, 301.06, 320.9, 309.07, 322.14, 311.54, 327.69, 318.94, 337.55, 322.64, 339.4], [319.06, 312.66, 324.08, 307.85, 319.26, 303.03, 318.06, 295.81, 313.24, 290.99, 315.65, 287.38, 319.06, 278.96, 321.87, 275.75, 325.68, 274.95, 330.5, 275.15, 336.92, 280.56, 340.93, 288.99, 338.12, 291.2, 338.92, 295.01, 341.33, 296.21, 338.92, 297.82, 342.74, 300.42, 342.74, 301.63, 352.57, 305.44, 352.57, 306.44, 342.33, 307.65, 342.54, 314.87, 339.53, 315.47, 342.13, 318.48, 342.33, 319.28, 340.73, 320.29, 340.93, 327.11, 341.73, 332.93, 330.7, 328.11, 328.69, 321.29, 326.89, 320.09, 327.69, 313.46]], "area": 1504.4780500000008, "iscrowd": 0, "image_id": 286619, "bbox": [296.12, 274.95, 56.45, 73.09], "category_id": 1, "id": 1301307}, {"segmentation": [[316.76, 357.3, 316.76, 374.59, 325.41, 392.97, 331.89, 436.22, 338.38, 474.05, 638.92, 475.14, 638.92, 450.27, 615.14, 427.57, 603.24, 421.08, 595.68, 377.84, 602.16, 318.38, 594.59, 276.22, 575.14, 245.95, 554.59, 230.81, 517.84, 222.16, 476.76, 228.65, 441.08, 255.68, 434.59, 296.76, 431.35, 303.24, 433.51, 312.97, 425.95, 329.19, 430.27, 352.97, 438.92, 381.08, 465.95, 400.54, 467.03, 423.24, 468.11, 444.86, 447.57, 450.27, 418.38, 454.59, 404.32, 457.84, 394.59, 465.41, 374.05, 474.05, 358.92, 424.32, 355.68, 397.3, 357.84, 391.89, 375.14, 377.84, 372.97, 374.59, 354.59, 384.32, 354.59, 373.51, 356.76, 364.86, 354.59, 362.7, 343.78, 365.95, 335.14, 382.16]], "area": 43176.628749999996, "iscrowd": 0, "image_id": 130624, "bbox": [316.76, 222.16, 322.16, 252.98], "category_id": 1, "id": 1301521}, {"segmentation": [[67.6, 435.39, 66.59, 423.28, 60.54, 414.2, 59.53, 393.01, 58.52, 359.71, 65.59, 320.36, 58.52, 315.32, 58.52, 304.22, 55.5, 290.09, 50.45, 233.59, 56.5, 178.09, 84.76, 169.01, 88.79, 162.95, 89.8, 155.89, 83.75, 147.82, 85.77, 131.68, 89.8, 120.58, 109.98, 123.6, 120.07, 134.7, 120.07, 142.77, 117.05, 146.81, 110.99, 161.95, 112.0, 168.0, 125.12, 172.04, 139.24, 178.09, 139.24, 187.17, 131.17, 190.2, 130.16, 209.37, 128.14, 214.41, 135.21, 244.68, 133.19, 260.83, 132.18, 317.33, 127.14, 317.33, 127.14, 329.44, 124.11, 341.55, 125.12, 366.77, 121.08, 377.87, 120.07, 393.01, 120.07, 409.15, 126.13, 417.23, 130.16, 422.27, 130.16, 426.31, 123.1, 429.33, 109.98, 427.32, 108.97, 421.26, 100.9, 419.24, 100.9, 400.07, 100.9, 366.77, 103.93, 351.64, 101.91, 330.45, 97.87, 321.37, 91.82, 322.38, 85.77, 345.59, 82.74, 376.86, 78.7, 401.08, 83.75, 407.14, 80.72, 419.24, 85.77, 433.37, 85.77, 437.41, 73.66, 438.41]], "area": 18011.0441, "iscrowd": 0, "image_id": 444214, "bbox": [50.45, 120.58, 88.79, 317.83], "category_id": 1, "id": 1301596}, {"segmentation": [[340.94, 286.77, 343.49, 292.45, 342.64, 297.84, 340.09, 302.95, 339.52, 308.05, 338.95, 321.96, 334.69, 321.11, 334.98, 317.99, 332.14, 310.32, 332.99, 299.54, 332.99, 295.57, 325.61, 301.24, 325.33, 298.12, 327.03, 296.7, 328.74, 289.89, 330.72, 288.19, 331.57, 285.07, 333.56, 282.23, 336.4, 281.38, 341.51, 285.35, 341.51, 286.77]], "area": 355.88934999999947, "iscrowd": 0, "image_id": 575792, "bbox": [325.33, 281.38, 18.16, 40.58], "category_id": 1, "id": 1302119}, {"segmentation": [[393.51, 301.83, 401.54, 307.35, 392.51, 319.9, 376.95, 327.43, 371.43, 326.43, 364.4, 327.43, 360.89, 334.96, 360.38, 341.99, 360.89, 345.0, 362.39, 354.54, 363.39, 360.06, 377.95, 366.59, 389.5, 364.58, 389.0, 371.1, 378.96, 382.15, 374.44, 387.67, 365.9, 388.17, 357.87, 378.13, 353.86, 373.61, 351.35, 367.09, 347.83, 362.07, 344.82, 358.05, 347.83, 352.53, 351.35, 347.51, 352.85, 342.49, 352.85, 336.97, 345.83, 331.95, 343.82, 326.43, 340.3, 319.4, 341.31, 314.88, 343.82, 316.89, 348.84, 328.44, 353.86, 331.45, 354.86, 323.92, 355.87, 318.4, 362.39, 319.4, 366.41, 315.89, 370.42, 314.38, 371.93, 311.87, 365.4, 301.83, 364.4, 295.81, 363.39, 290.29, 363.9, 283.76, 370.42, 273.22, 374.94, 270.71, 381.97, 271.72, 388.49, 278.74, 391.0, 290.29, 392.01, 299.32]], "area": 2625.7728000000006, "iscrowd": 0, "image_id": 286619, "bbox": [340.3, 270.71, 61.24, 117.46], "category_id": 1, "id": 1302151}, {"segmentation": [[614.41, 151.03, 613.68, 148.29, 613.32, 145.74, 612.58, 143.91, 612.58, 141.35, 611.85, 137.7, 609.85, 135.69, 605.64, 135.51, 598.89, 135.51, 594.32, 136.24, 591.03, 139.89, 589.76, 144.28, 590.49, 149.21, 592.13, 153.23, 593.96, 157.61, 592.31, 159.98, 582.63, 170.03, 579.53, 175.14, 576.24, 185.19, 573.14, 195.78, 568.93, 223.18, 567.84, 232.12, 609.3, 232.31, 614.05, 231.21, 616.42, 228.47, 611.49, 221.35, 607.84, 212.76, 606.56, 206.74, 605.1, 197.97, 606.38, 193.95, 609.66, 190.48, 616.6, 187.01, 622.45, 184.64, 625.73, 183.73, 628.47, 184.46, 630.67, 180.99, 630.48, 177.52, 628.66, 175.51, 621.17, 178.43, 610.39, 182.45, 607.47, 182.45, 606.56, 181.17, 608.38, 170.76, 606.92, 166.56, 605.1, 164.18, 605.1, 162.72, 606.56, 161.26, 609.3, 161.26, 611.49, 161.26, 611.49, 159.8, 612.95, 155.23, 614.41, 153.23, 615.69, 151.95]], "area": 3080.172800000001, "iscrowd": 0, "image_id": 1431, "bbox": [567.84, 135.51, 62.83, 96.8], "category_id": 1, "id": 1302186}, {"segmentation": [[411.55, 262.96, 409.44, 248.49, 406.29, 245.86, 401.82, 237.71, 401.03, 229.3, 400.5, 224.04, 400.24, 220.62, 397.08, 214.57, 401.55, 210.89, 407.08, 210.1, 411.81, 218.78, 417.86, 225.09, 416.02, 232.19, 416.02, 241.13, 418.39, 249.81, 416.02, 250.07]], "area": 554.9351499999998, "iscrowd": 0, "image_id": 294416, "bbox": [397.08, 210.1, 21.31, 52.86], "category_id": 1, "id": 1302459}, {"segmentation": [[216.83, 207.83, 185.68, 209.31, 194.09, 194.97, 195.57, 185.09, 200.51, 177.67, 210.4, 178.16, 213.37, 183.11, 212.87, 193.99, 221.28, 209.31]], "area": 650.1662000000005, "iscrowd": 0, "image_id": 1431, "bbox": [185.68, 177.67, 35.6, 31.64], "category_id": 1, "id": 1302813}, {"segmentation": [[593.45, 301.64, 597.8, 301.09, 598.17, 291.66, 599.25, 301.28, 606.33, 300.55, 603.06, 297.47, 602.34, 295.47, 602.34, 288.94, 605.97, 286.58, 606.33, 278.24, 604.88, 274.43, 602.34, 273.71, 600.71, 269.72, 597.99, 269.9, 597.62, 272.26, 596.35, 275.7, 594.54, 284.95, 595.81, 287.31, 595.26, 293.48, 594.0, 300.37]], "area": 261.02255000000054, "iscrowd": 0, "image_id": 45124, "bbox": [593.45, 269.72, 12.88, 31.92], "category_id": 1, "id": 1303665}, {"segmentation": [[379.01, 223.27, 379.7, 218.28, 381.76, 216.9, 385.89, 217.76, 386.07, 220.69, 384.69, 223.09, 384.35, 224.13, 386.07, 226.54, 386.58, 231.35, 386.07, 232.56, 381.08, 236.69, 379.87, 240.47, 380.04, 247.53, 382.28, 251.14, 383.14, 254.58, 380.04, 259.74, 383.31, 262.33, 383.14, 264.73, 373.85, 265.08, 374.37, 262.15, 374.02, 260.09, 378.32, 251.66, 377.63, 241.33, 372.3, 235.14, 373.33, 229.46, 378.84, 225.68, 379.18, 224.81]], "area": 312.2282000000003, "iscrowd": 0, "image_id": 415946, "bbox": [372.3, 216.9, 14.28, 48.18], "category_id": 1, "id": 1303676}, {"segmentation": [[42.93, 542.96, 43.11, 534.71, 43.11, 528.47, 46.05, 524.62, 49.35, 518.2, 50.63, 517.46, 52.65, 519.48, 54.67, 524.98, 55.77, 529.02, 56.5, 535.99, 58.34, 544.61, 58.7, 551.4, 58.7, 552.87, 50.26, 553.0, 44.03, 547.73, 42.38, 546.63]], "area": 408.17064999999985, "iscrowd": 0, "image_id": 181149, "bbox": [42.38, 517.46, 16.32, 35.54], "category_id": 1, "id": 1304025}, {"segmentation": [[303.02, 210.92, 304.95, 202.93, 309.36, 200.73, 313.77, 201.0, 317.08, 197.7, 317.9, 193.29, 323.14, 193.29, 330.85, 194.66, 331.68, 201.28, 330.03, 205.41, 322.86, 208.44, 325.07, 216.43, 319.28, 217.81, 318.45, 224.42, 317.08, 224.7, 310.74, 223.87, 309.36, 222.5, 307.16, 216.16], [302.2, 238.75, 299.44, 247.02, 298.06, 250.6, 298.06, 253.08, 302.2, 253.08, 304.4, 251.98, 302.2, 250.88, 301.92, 249.22]], "area": 561.1774500000002, "iscrowd": 0, "image_id": 20251, "bbox": [298.06, 193.29, 33.62, 59.79], "category_id": 1, "id": 1304369}, {"segmentation": [[540.14, 169.23, 543.66, 168.97, 544.84, 168.97, 543.92, 165.83, 542.49, 165.31, 541.83, 162.96, 541.83, 162.17, 539.87, 159.95, 539.74, 168.84]], "area": 26.079450000000037, "iscrowd": 0, "image_id": 425652, "bbox": [539.74, 159.95, 5.1, 9.28], "category_id": 1, "id": 1304539}, {"segmentation": [[292.86, 540.91, 293.23, 534.67, 294.15, 532.1, 293.05, 530.45, 291.4, 529.9, 290.85, 528.62, 291.4, 527.7, 292.68, 527.15, 294.33, 526.78, 295.43, 526.42, 295.07, 523.85, 295.25, 522.2, 298.0, 520.73, 300.02, 520.91, 301.67, 521.83, 302.22, 523.85, 302.59, 524.77, 304.06, 527.15, 305.16, 529.72, 305.34, 533.39, 304.79, 536.87, 304.42, 542.19, 303.14, 546.05, 302.77, 548.43, 301.3, 548.43, 297.27, 547.88, 295.25, 544.95, 293.23, 542.93]], "area": 274.3098999999999, "iscrowd": 0, "image_id": 181149, "bbox": [290.85, 520.73, 14.49, 27.7], "category_id": 1, "id": 1304605}, {"segmentation": [[544.97, 167.81, 545.99, 167.77, 546.07, 167.28, 545.99, 165.98, 545.87, 165.57, 545.62, 165.16, 545.17, 164.76, 545.05, 164.39, 545.21, 163.94, 545.54, 163.41, 546.23, 162.84, 546.72, 162.76, 547.61, 162.76, 548.71, 162.72, 549.65, 163.09, 549.89, 163.98, 549.89, 165.65, 549.89, 166.59, 549.36, 167.36, 549.0, 167.77, 548.75, 168.13, 548.63, 168.82, 544.89, 168.82]], "area": 24.0871999999999, "iscrowd": 0, "image_id": 425652, "bbox": [544.89, 162.72, 5.0, 6.1], "category_id": 1, "id": 1304668}, {"segmentation": [[106.63, 74.3, 119.31, 71.38, 118.33, 65.04, 119.06, 60.41, 117.84, 58.94, 115.41, 58.7, 113.7, 60.65, 113.7, 58.21, 112.48, 54.31, 111.02, 51.87, 108.09, 51.63, 104.44, 53.58, 104.92, 56.02, 104.92, 61.14, 102.97, 62.84, 101.75, 64.8, 102.0, 66.75, 102.73, 70.4, 104.19, 74.06, 105.65, 74.06]], "area": 275.33635, "iscrowd": 0, "image_id": 375659, "bbox": [101.75, 51.63, 17.56, 22.67], "category_id": 1, "id": 1304777}, {"segmentation": [[134.4, 243.73, 128.7, 211.74, 129.14, 195.53, 134.4, 190.71, 139.22, 181.07, 142.29, 173.62, 137.9, 165.29, 139.22, 149.08, 146.23, 139.88, 157.62, 138.56, 161.57, 138.56, 164.64, 138.56, 172.09, 150.4, 169.89, 174.5, 164.64, 180.63, 163.76, 182.38, 173.4, 190.71, 185.67, 194.22, 191.37, 228.4, 198.38, 262.58, 193.12, 265.64, 189.18, 277.48, 186.11, 279.67, 191.37, 289.31, 186.98, 291.06, 183.92, 292.38, 182.6, 296.32, 182.6, 333.48, 179.53, 347.5, 180.41, 365.03, 178.66, 376.42, 178.66, 406.59, 178.22, 413.16, 176.03, 415.79, 178.22, 419.73, 186.55, 429.38, 179.1, 430.69, 173.4, 428.06, 170.77, 433.76, 158.94, 433.76, 153.24, 433.76, 149.74, 427.18, 147.11, 423.24, 145.35, 420.17, 138.78, 417.54, 141.85, 408.78, 140.1, 368.9, 140.53, 338.67, 137.9, 324.64, 137.03, 317.19, 130.46, 294.41, 132.65, 267.28, 133.96, 261.59, 132.21, 258.96, 135.71, 245.37]], "area": 13255.102149999995, "iscrowd": 0, "image_id": 444214, "bbox": [128.7, 138.56, 69.68, 295.2], "category_id": 1, "id": 1304826}, {"segmentation": [[639.99, 26.7, 639.99, 140.75, 639.99, 156.35, 635.19, 156.95, 633.09, 155.15, 634.89, 140.45, 637.89, 105.03, 637.89, 93.63, 634.59, 94.83, 628.59, 109.53, 623.19, 137.45, 621.39, 147.65, 622.89, 154.85, 612.68, 155.45, 599.78, 156.35, 599.18, 154.85, 602.18, 149.75, 609.68, 146.15, 610.28, 135.34, 621.69, 73.52, 622.29, 67.51, 620.79, 64.51, 621.69, 59.11, 622.89, 56.71, 614.18, 52.51, 611.48, 52.51, 612.98, 44.7, 613.88, 34.8, 619.58, 27.3, 628.29, 24.3, 632.79, 24.0, 635.79, 21.89, 633.39, 17.99, 633.69, 11.99, 638.79, 6.89, 639.69, 9.59]], "area": 2755.4733000000033, "iscrowd": 0, "image_id": 60771, "bbox": [599.18, 6.89, 40.81, 150.06], "category_id": 1, "id": 1304872}, {"segmentation": [[254.02, 227.15, 259.75, 225.92, 262.85, 218.17, 260.37, 214.3, 258.2, 214.76, 257.12, 217.55, 255.1, 219.57, 254.64, 226.23]], "area": 66.57175000000016, "iscrowd": 0, "image_id": 476575, "bbox": [254.02, 214.3, 8.83, 12.85], "category_id": 1, "id": 1305169}, {"segmentation": [[18.87, 75.83, 20.19, 70.76, 17.0, 64.95, 16.25, 60.07, 15.12, 53.31, 18.12, 46.93, 19.63, 45.99, 20.38, 41.12, 23.94, 38.86, 25.63, 39.43, 27.88, 43.18, 27.69, 44.68, 29.38, 47.68, 33.13, 52.75, 34.64, 60.07, 32.95, 67.2, 29.57, 72.26, 23.94, 77.14, 20.56, 80.89, 20.38, 83.33, 18.31, 83.52, 17.37, 79.77]], "area": 511.2089500000001, "iscrowd": 0, "image_id": 517261, "bbox": [15.12, 38.86, 19.52, 44.66], "category_id": 1, "id": 1305226}, {"segmentation": [[552.33, 66.25, 546.05, 66.53, 544.05, 63.11, 551.76, 45.11, 561.47, 41.4, 562.04, 35.12, 565.47, 27.98, 573.47, 27.69, 578.61, 33.97, 578.89, 42.54, 587.18, 51.97, 586.32, 69.39, 584.89, 78.53, 575.75, 79.39, 568.61, 75.1, 564.61, 77.96, 563.47, 81.67, 555.19, 79.39, 555.19, 72.82, 549.48, 71.1]], "area": 1505.9854500000001, "iscrowd": 0, "image_id": 524522, "bbox": [544.05, 27.69, 43.13, 53.98], "category_id": 1, "id": 1305740}, {"segmentation": [[248.83, 210.07, 250.97, 187.02, 244.54, 168.79, 243.47, 158.61, 249.36, 151.1, 250.43, 142.53, 255.26, 137.17, 266.52, 143.6, 265.44, 163.97, 272.41, 173.08, 275.09, 182.73, 269.73, 184.34, 271.34, 200.95, 274.56, 215.96, 273.48, 219.72, 267.59, 219.72, 256.87, 220.25, 256.87, 217.04, 253.65, 215.43]], "area": 1695.2393499999991, "iscrowd": 0, "image_id": 20251, "bbox": [243.47, 137.17, 31.62, 83.08], "category_id": 1, "id": 1306323}, {"segmentation": [[590.43, 151.91, 587.47, 152.2, 585.26, 155.6, 584.08, 158.4, 582.16, 162.54, 582.45, 166.52, 590.87, 165.49, 591.02, 165.05, 590.87, 153.38]], "area": 95.65604999999992, "iscrowd": 0, "image_id": 425652, "bbox": [582.16, 151.91, 8.86, 14.61], "category_id": 1, "id": 1306558}, {"segmentation": [[389.75, 303.05, 395.2, 309.86, 397.46, 329.38, 390.66, 329.38, 385.21, 329.38, 378.86, 329.38, 373.86, 329.38, 372.95, 328.01, 381.58, 323.48, 380.67, 319.84, 381.12, 314.4, 383.39, 308.95, 386.12, 305.77, 385.21, 304.41, 383.85, 303.96, 380.22, 303.5, 378.86, 300.78, 378.86, 296.24, 379.31, 293.52, 381.58, 292.16, 386.12, 293.97, 387.03, 296.7, 387.48, 298.97, 388.39, 300.33]], "area": 463.24709999999925, "iscrowd": 0, "image_id": 450281, "bbox": [372.95, 292.16, 24.51, 37.22], "category_id": 1, "id": 1307162}, {"segmentation": [[182.83, 353.53, 162.61, 352.72, 163.42, 334.92, 165.03, 310.65, 164.22, 294.47, 163.42, 283.15, 139.96, 279.1, 135.91, 271.01, 133.48, 249.17, 132.67, 242.7, 131.06, 211.15, 131.06, 195.78, 131.06, 178.79, 136.72, 166.65, 147.24, 162.61, 148.85, 162.61, 152.9, 165.03, 160.99, 173.93, 169.89, 176.36, 173.12, 167.46, 167.46, 164.22, 160.99, 161.8, 157.75, 156.94, 154.52, 149.66, 151.28, 136.72, 151.28, 130.25, 152.9, 122.97, 163.42, 116.49, 172.31, 117.3, 182.83, 126.2, 184.45, 135.91, 186.07, 146.43, 186.88, 156.94, 188.49, 165.03, 194.16, 166.65, 194.16, 169.08, 197.39, 177.98, 197.39, 200.63, 196.58, 219.24, 196.58, 225.71, 192.54, 251.6, 191.73, 257.26, 192.54, 264.54, 192.54, 281.53, 189.3, 310.65, 187.69, 331.69, 187.69, 339.78]], "area": 10254.3124, "iscrowd": 0, "image_id": 64744, "bbox": [131.06, 116.49, 66.33, 237.04], "category_id": 1, "id": 1308151}, {"segmentation": [[447.88, 205.9, 455.58, 212.5, 457.78, 229.37, 459.25, 238.54, 459.25, 241.84, 444.58, 242.58, 440.54, 244.05, 438.34, 244.78, 438.34, 249.18, 434.31, 249.91, 425.87, 248.81, 426.24, 242.21, 426.6, 236.71, 428.8, 229.37, 431.74, 222.77, 435.41, 217.64, 438.34, 213.6, 438.71, 211.03, 437.61, 208.83, 435.04, 203.33, 434.67, 200.4, 435.77, 195.63, 438.71, 194.16, 442.74, 194.16, 445.31, 195.99, 446.41, 200.4, 446.41, 203.7, 446.04, 206.63]], "area": 1109.5188499999995, "iscrowd": 0, "image_id": 294416, "bbox": [425.87, 194.16, 33.38, 55.75], "category_id": 1, "id": 1308311}, {"segmentation": [[61.71, 213.54, 61.41, 211.68, 60.79, 208.42, 60.32, 206.26, 60.48, 204.4, 61.1, 203.16, 62.49, 202.69, 63.11, 203.0, 63.88, 204.71, 64.19, 206.41, 65.59, 209.51, 66.05, 211.83, 65.59, 213.69, 64.5, 215.7, 61.71, 214.0]], "area": 47.01225, "iscrowd": 0, "image_id": 476575, "bbox": [60.32, 202.69, 5.73, 13.01], "category_id": 1, "id": 1308632}, {"segmentation": [[124.23, 151.52, 128.45, 184.48, 120.85, 230.11, 118.31, 266.45, 118.31, 273.21, 99.72, 270.68, 102.25, 240.25, 99.72, 208.14, 106.48, 192.93, 90.42, 121.1, 98.87, 93.21, 122.54, 61.94, 144.51, 55.18, 152.11, 55.18, 158.87, 36.59, 173.24, 29.83, 185.07, 45.89, 178.31, 72.93, 181.69, 93.21, 183.38, 126.17, 166.48, 116.03, 164.79, 105.04, 147.89, 120.25, 159.72, 157.44, 172.39, 170.11, 169.01, 179.41, 153.8, 174.34, 140.28, 169.27, 135.21, 176.03, 125.92, 153.21]], "area": 10577.517899999997, "iscrowd": 0, "image_id": 64744, "bbox": [90.42, 29.83, 94.65, 243.38], "category_id": 1, "id": 1308707}, {"segmentation": [[297.25, 219.11, 280.59, 218.62, 271.77, 222.05, 268.83, 223.03, 262.94, 220.58, 259.02, 220.09, 238.93, 231.36, 214.92, 228.42, 224.23, 205.88, 238.44, 181.38, 258.53, 159.82, 267.85, 153.45, 275.2, 131.89, 291.86, 131.4, 303.13, 135.32, 297.25, 152.96, 291.86, 167.17, 287.45, 173.05, 290.88, 195.1, 297.25, 198.53, 298.23, 212.74, 297.74, 216.66]], "area": 4649.227800000003, "iscrowd": 0, "image_id": 480818, "bbox": [214.92, 131.4, 88.21, 99.96], "category_id": 1, "id": 1309251}, {"segmentation": [[307.34, 240.0, 309.93, 231.69, 312.52, 229.96, 311.23, 225.42, 313.39, 223.26, 315.33, 224.99, 315.76, 229.53, 319.44, 232.12, 319.65, 239.9]], "area": 122.73249999999993, "iscrowd": 0, "image_id": 476575, "bbox": [307.34, 223.26, 12.31, 16.74], "category_id": 1, "id": 1310238}, {"segmentation": [[580.31, 199.55, 606.2, 211.42, 611.6, 215.73, 621.3, 235.15, 602.97, 281.53, 596.49, 290.16, 580.31, 255.64, 558.74, 237.3, 524.22, 231.91, 513.44, 223.28, 525.3, 203.87, 545.8, 200.63, 537.17, 172.58, 540.4, 163.96, 556.58, 154.25, 565.21, 152.09, 578.16, 158.56, 586.79, 172.58, 586.79, 188.76, 581.39, 197.39]], "area": 6519.7000499999995, "iscrowd": 0, "image_id": 130624, "bbox": [513.44, 152.09, 107.86, 138.07], "category_id": 1, "id": 1310532}, {"segmentation": [[62.22, 256.07, 73.38, 262.17, 73.12, 257.24, 72.34, 254.9, 70.91, 253.86, 71.82, 252.31, 72.08, 249.32, 71.17, 247.12, 69.35, 246.6, 67.28, 247.12, 67.54, 250.36, 67.8, 252.44, 65.85, 253.22, 64.55, 252.31, 63.78, 252.96, 62.87, 254.64, 62.35, 255.68]], "area": 87.10105000000001, "iscrowd": 0, "image_id": 539099, "bbox": [62.22, 246.6, 11.16, 15.57], "category_id": 1, "id": 1310854}, {"segmentation": [[58.5, 155.07, 47.66, 153.16, 47.81, 149.5, 49.71, 147.01, 51.76, 145.1, 51.03, 141.0, 51.47, 137.63, 55.13, 136.9, 56.6, 137.34, 57.48, 141.15, 56.01, 145.69, 58.36, 146.86, 59.38, 150.82]], "area": 133.30179999999993, "iscrowd": 0, "image_id": 347340, "bbox": [47.66, 136.9, 11.72, 18.17], "category_id": 1, "id": 1311001}, {"segmentation": [[108.14, 214.56, 113.21, 215.11, 112.94, 205.24, 111.57, 203.32, 110.75, 202.64, 107.73, 202.91]], "area": 59.359849999999994, "iscrowd": 0, "image_id": 476575, "bbox": [107.73, 202.64, 5.48, 12.47], "category_id": 1, "id": 1311381}, {"segmentation": [[462.15, 174.21, 485.99, 175.63, 483.64, 169.51, 478.15, 164.33, 477.21, 161.82, 478.3, 157.59, 478.46, 152.1, 473.44, 150.69, 470.31, 152.41, 468.58, 156.8, 471.4, 162.45, 464.34, 167.16]], "area": 304.72365000000025, "iscrowd": 0, "image_id": 347340, "bbox": [462.15, 150.69, 23.84, 24.94], "category_id": 1, "id": 1311457}, {"segmentation": [[57.44, 181.08, 55.01, 165.71, 56.63, 156.0, 64.72, 151.96, 68.76, 151.15, 84.13, 149.53, 88.18, 154.38, 92.22, 160.04, 88.99, 174.61, 87.37, 180.27, 99.51, 185.12, 104.36, 186.74, 104.36, 188.36, 101.93, 203.73, 128.63, 238.52, 130.25, 249.03, 127.82, 255.51, 122.16, 257.12, 122.16, 257.12, 105.17, 263.6, 95.46, 270.07, 93.03, 270.88, 77.66, 274.11, 61.48, 274.11, 59.87, 278.97, 66.34, 295.15, 68.76, 304.85, 66.34, 320.22, 61.48, 325.08, 57.44, 328.31, 42.07, 323.46, 43.69, 291.1, 26.7, 275.73, 23.46, 253.89, 28.31, 228.81, 32.36, 215.06, 29.12, 220.72, 24.27, 225.57, 9.71, 225.57, 6.47, 217.48, 4.85, 209.39, 8.09, 198.88, 16.99, 197.26, 21.84, 190.79, 29.93, 181.08, 38.83, 181.08, 47.73, 181.08, 55.82, 182.7]], "area": 10884.311550000002, "iscrowd": 0, "image_id": 64744, "bbox": [4.85, 149.53, 125.4, 178.78], "category_id": 1, "id": 1311495}, {"segmentation": [[18.07, 31.15, 14.25, 36.23, 14.0, 44.11, 16.8, 47.41, 19.34, 49.7, 22.13, 50.97, 18.83, 54.28, 21.62, 57.33, 22.89, 54.02, 22.64, 49.45, 25.94, 46.4, 28.74, 45.64, 29.5, 42.08, 30.01, 39.54, 32.55, 39.54, 34.33, 39.03, 31.53, 33.95, 28.23, 30.9, 25.69, 30.13, 24.67, 27.08, 22.64, 22.51, 19.08, 20.98, 15.78, 24.54, 16.29, 27.08]], "area": 350.74915, "iscrowd": 0, "image_id": 375659, "bbox": [14.0, 20.98, 20.33, 36.35], "category_id": 1, "id": 1311512}, {"segmentation": [[169.14, 59.47, 161.47, 59.47, 159.17, 56.78, 157.64, 52.57, 158.02, 45.66, 160.71, 43.36, 161.86, 41.44, 161.86, 37.61, 165.69, 33.01, 167.61, 33.39, 171.06, 37.61, 171.44, 39.91, 170.68, 42.21, 176.04, 46.05, 176.81, 51.41, 176.81, 55.63, 169.14, 58.32]], "area": 344.27940000000007, "iscrowd": 0, "image_id": 375659, "bbox": [157.64, 33.01, 19.17, 26.46], "category_id": 1, "id": 1311721}, {"segmentation": [[58.38, 202.41, 69.19, 184.25, 93.85, 179.92, 114.18, 182.52, 119.8, 187.27, 119.8, 198.95, 121.1, 205.87, 120.67, 209.33, 119.37, 221.45, 116.34, 224.91, 112.45, 236.15, 108.56, 243.51, 106.83, 243.94, 102.93, 246.97, 107.26, 257.78, 118.07, 270.32, 122.4, 276.81, 130.19, 280.71, 150.08, 289.36, 161.33, 294.11, 172.58, 294.55, 179.5, 301.9, 184.69, 310.12, 179.93, 314.44, 172.58, 318.77, 171.28, 323.53, 162.63, 326.12, 154.41, 326.12, 148.35, 330.02, 144.89, 332.61, 142.73, 338.67, 137.11, 340.83, 125.86, 341.7, 117.21, 342.99, 108.99, 340.4, 106.39, 309.25, 106.39, 288.92, 102.93, 281.57, 98.61, 271.62, 97.74, 268.16, 86.93, 264.27, 91.25, 253.02, 97.31, 243.51, 97.74, 241.78, 89.96, 228.8, 87.36, 215.17, 74.39, 205.66, 62.71, 206.96]], "area": 6414.948850000001, "iscrowd": 0, "image_id": 480818, "bbox": [58.38, 179.92, 126.31, 163.07], "category_id": 1, "id": 1312264}, {"segmentation": [[297.2, 226.96, 296.26, 225.08, 295.32, 222.26, 295.32, 219.68, 295.09, 214.75, 293.44, 209.82, 296.49, 207.71, 296.96, 204.19, 294.62, 201.14, 296.96, 199.26, 299.55, 199.73, 301.42, 202.54, 301.42, 205.36, 301.66, 205.83, 301.89, 208.65, 303.54, 209.12, 304.24, 216.86, 304.95, 218.04, 304.71, 219.21, 305.18, 220.15, 304.48, 221.32, 304.95, 222.26, 304.01, 226.96, 302.6, 227.19, 302.83, 231.89, 308.0, 233.06, 306.35, 239.4, 304.48, 240.0, 299.78, 238.23, 300.02, 234.71, 300.25, 230.48, 298.37, 226.72]], "area": 280.1043500000007, "iscrowd": 0, "image_id": 476575, "bbox": [293.44, 199.26, 14.56, 40.74], "category_id": 1, "id": 1312388}, {"segmentation": [[212.59, 117.56, 216.46, 112.73, 221.05, 111.28, 227.57, 112.25, 233.6, 116.11, 234.57, 120.46, 231.43, 131.81, 238.67, 137.84, 251.47, 144.36, 237.95, 156.68, 223.22, 155.23, 215.49, 138.57, 211.63, 119.25], [250.26, 167.37, 251.47, 188.14, 218.63, 187.65, 209.46, 184.76, 209.21, 180.65, 215.25, 178.96, 216.46, 172.68, 225.87, 171.72, 231.91, 164.96]], "area": 1697.392099999999, "iscrowd": 0, "image_id": 149863, "bbox": [209.21, 111.28, 42.26, 76.86], "category_id": 1, "id": 1312730}, {"segmentation": [[455.56, 188.22, 466.28, 236.03, 464.9, 248.67, 460.23, 248.4, 460.23, 238.5, 457.21, 218.17, 457.49, 208.55, 457.49, 201.96, 454.74, 199.49, 453.91, 194.54, 454.19, 188.49], [470.67, 198.39, 478.92, 203.88, 482.76, 216.25, 480.57, 221.74, 483.59, 229.16, 482.22, 236.58, 478.09, 238.78, 473.97, 238.23, 467.93, 200.86]], "area": 649.8948999999981, "iscrowd": 0, "image_id": 294416, "bbox": [453.91, 188.22, 29.68, 60.45], "category_id": 1, "id": 1313462}, {"segmentation": [[281.91, 223.41, 281.17, 222.35, 280.11, 221.61, 278.49, 221.79, 277.56, 222.85, 277.68, 224.59, 279.55, 225.59, 277.75, 226.02, 277.81, 228.76, 277.12, 236.09, 276.88, 236.59, 278.31, 237.03, 278.37, 240.0, 283.84, 240.0, 284.4, 238.95, 284.83, 235.72, 284.34, 232.67, 284.03, 229.88, 284.15, 227.76, 283.16, 226.89, 282.6, 225.77, 282.47, 224.03, 282.35, 223.22, 282.35, 223.22]], "area": 108.51234999999981, "iscrowd": 0, "image_id": 476575, "bbox": [276.88, 221.61, 7.95, 18.39], "category_id": 1, "id": 1313859}, {"segmentation": [[294.94, 132.32, 300.73, 128.78, 310.07, 128.46, 313.93, 136.51, 314.9, 142.95, 306.53, 155.5, 304.27, 157.11, 309.42, 159.68, 311.68, 163.54, 311.68, 168.69, 305.56, 174.17, 305.56, 178.35, 309.75, 180.93, 310.71, 188.65, 302.99, 195.09, 296.87, 196.7, 289.79, 194.76, 288.18, 191.55, 288.82, 174.17, 292.69, 164.51, 294.94, 157.43, 301.06, 143.27, 303.63, 134.9]], "area": 1062.0092999999993, "iscrowd": 0, "image_id": 480818, "bbox": [288.18, 128.46, 26.72, 68.24], "category_id": 1, "id": 1313882}, {"segmentation": [[372.12, 276.46, 359.19, 300.55, 362.74, 308.41, 363.75, 324.89, 361.72, 339.6, 362.74, 346.45, 363.25, 350.76, 366.04, 363.18, 363.25, 365.97, 356.65, 365.72, 348.79, 362.93, 333.83, 363.69, 327.24, 357.86, 329.52, 354.81, 338.4, 353.29, 342.71, 352.53, 348.29, 346.45, 348.03, 340.36, 346.51, 324.89, 340.93, 295.48, 341.44, 285.84, 344.74, 271.9, 348.79, 255.42, 345.5, 271.9, 349.05, 284.58, 354.12, 290.41, 358.68, 286.1, 366.04, 278.74, 368.32, 272.15, 365.27, 264.8, 359.7, 262.01, 356.91, 254.66, 360.46, 245.78, 363.75, 240.71, 369.84, 230.57, 372.12, 225.75, 372.63, 224.23, 374.4, 227.02, 374.66, 233.86, 373.64, 241.47, 374.15, 246.03, 375.42, 249.33, 377.7, 251.11, 377.45, 257.95, 377.45, 266.83, 377.19, 277.98, 377.45, 284.32, 377.45, 285.34], [355.89, 214.83, 365.27, 196.58, 368.82, 188.21, 380.74, 181.62, 391.9, 180.35, 391.9, 177.05, 389.87, 172.49, 390.12, 167.42, 386.83, 162.6, 382.77, 160.57, 381.25, 160.06, 380.49, 157.78, 379.73, 154.23, 379.22, 145.86, 375.92, 141.3, 368.57, 139.52, 357.67, 142.31, 354.88, 145.36, 354.88, 150.93, 354.12, 152.46, 350.31, 155.75, 350.57, 157.78, 351.84, 157.27, 355.13, 155.5, 356.4, 157.78, 356.91, 159.55, 356.91, 161.33, 357.41, 162.85, 357.41, 164.88, 357.67, 169.7, 358.43, 170.2, 358.43, 171.47, 356.65, 176.29, 356.65, 181.62, 357.16, 187.7, 355.64, 195.31], [408.89, 182.88, 411.93, 178.07, 423.85, 184.66, 433.48, 195.56, 432.72, 198.86, 430.69, 201.39]], "area": 3989.129000000002, "iscrowd": 0, "image_id": 60771, "bbox": [327.24, 139.52, 106.24, 226.45], "category_id": 1, "id": 1314115}, {"segmentation": [[625.77, 287.36, 628.41, 285.12, 626.88, 282.48, 631.05, 279.03, 633.99, 281.47, 633.38, 285.94, 633.89, 292.74, 638.56, 299.24, 639.27, 300.97, 638.97, 303.2, 634.91, 300.15, 635.31, 301.27, 639.07, 308.58, 639.07, 316.81, 640.0, 319.96, 637.04, 320.87, 631.76, 315.49, 635.52, 311.43, 634.91, 307.77, 631.56, 305.95, 630.64, 320.57, 627.19, 319.05, 626.99, 303.81, 627.7, 298.33, 626.38, 291.02]], "area": 338.62489999999923, "iscrowd": 0, "image_id": 173163, "bbox": [625.77, 279.03, 14.23, 41.84], "category_id": 1, "id": 1314328}, {"segmentation": [[385.12, 336.73, 385.12, 324.57, 393.23, 314.43, 402.35, 304.3, 397.29, 294.16, 395.26, 278.96, 393.23, 261.73, 401.34, 253.62, 413.5, 249.57, 429.72, 254.64, 442.89, 268.83, 447.96, 292.14, 458.09, 303.28, 464.18, 316.46, 459.11, 327.61, 439.85, 346.86, 414.51, 345.85, 388.16, 336.73]], "area": 5142.9150500000005, "iscrowd": 0, "image_id": 286619, "bbox": [385.12, 249.57, 79.06, 97.29], "category_id": 1, "id": 1315311}, {"segmentation": [[277.25, 286.03, 275.57, 269.9, 274.23, 260.16, 270.87, 264.86, 265.83, 265.54, 268.52, 260.16, 269.53, 253.44, 270.2, 249.07, 270.53, 240.67, 276.58, 240.33, 279.61, 243.02, 280.28, 247.05, 283.64, 250.41, 282.29, 255.79, 284.31, 258.82, 282.29, 266.54, 281.96, 268.56, 283.97, 277.3, 285.65, 279.98, 282.29, 283.34, 285.65, 286.37, 279.61, 287.71]], "area": 462.10315000000054, "iscrowd": 0, "image_id": 294416, "bbox": [265.83, 240.33, 19.82, 47.38], "category_id": 1, "id": 1316067}, {"segmentation": [[291.86, 313.42, 296.08, 313.55, 296.08, 317.91, 296.08, 322.0, 297.53, 325.96, 298.85, 342.99, 289.22, 339.16, 280.5, 339.96, 273.9, 340.22, 271.66, 344.58, 258.19, 343.13, 251.46, 344.58, 246.31, 348.41, 243.14, 351.97, 240.9, 348.67, 242.08, 344.97, 243.67, 342.33, 246.84, 339.69, 250.53, 336.52, 252.65, 333.22, 258.06, 324.11, 260.7, 321.74, 265.32, 320.81, 268.09, 318.83, 269.94, 315.27, 272.05, 309.46, 275.09, 307.87, 275.22, 304.84, 275.22, 301.54, 273.24, 296.92, 276.15, 290.05, 279.71, 285.3, 283.01, 283.98, 286.84, 283.98, 291.99, 285.17, 294.1, 289.26, 295.82, 293.48, 297.67, 298.1, 296.74, 300.75, 295.55, 308.27, 294.1, 311.04]], "area": 1785.8934499999993, "iscrowd": 0, "image_id": 286619, "bbox": [240.9, 283.98, 57.95, 67.99], "category_id": 1, "id": 1316159}, {"segmentation": [[158.56, 303.91, 151.96, 322.79, 141.57, 323.73, 151.01, 301.08, 141.57, 300.13, 141.57, 295.42, 147.24, 285.98, 147.24, 271.82, 157.62, 270.88, 166.11, 276.54, 168.0, 287.87, 167.06, 297.3, 171.78, 321.84, 165.17, 321.84, 158.56, 305.8]], "area": 1008.9141500000004, "iscrowd": 0, "image_id": 575792, "bbox": [141.57, 270.88, 30.21, 52.85], "category_id": 1, "id": 1316326}, {"segmentation": [[597.8, 48.94, 566.13, 47.98, 569.97, 30.71, 571.89, 24.95, 581.49, 20.15, 583.41, 2.88, 599.72, 1.92, 598.76, 16.31, 604.52, 20.15, 599.72, 47.02]], "area": 1209.5522000000003, "iscrowd": 0, "image_id": 60771, "bbox": [566.13, 1.92, 38.39, 47.02], "category_id": 1, "id": 1316792}, {"segmentation": [[539.49, 123.95, 520.71, 120.66, 520.71, 109.86, 520.71, 102.82, 526.35, 100.47, 526.35, 95.78, 533.86, 92.96, 535.27, 101.41, 538.55, 101.41, 540.43, 113.62, 540.43, 122.07]], "area": 458.73694999999805, "iscrowd": 0, "image_id": 23015, "bbox": [520.71, 92.96, 19.72, 30.99], "category_id": 1, "id": 1317136}, {"segmentation": [[373.59, 206.53, 366.44, 212.89, 362.46, 226.41, 361.27, 231.97, 360.48, 237.54, 359.68, 238.34, 355.7, 238.34, 348.15, 241.91, 344.57, 245.49, 347.36, 219.65, 349.34, 216.87, 337.42, 209.71, 335.43, 163.2, 337.02, 162.4, 335.43, 130.6, 338.21, 127.02, 342.59, 125.83, 349.74, 129.01, 353.72, 132.98, 354.51, 144.91, 355.31, 150.48, 355.7, 155.25, 365.25, 162.4, 368.43, 172.74]], "area": 2802.726899999999, "iscrowd": 0, "image_id": 130624, "bbox": [335.43, 125.83, 38.16, 119.66], "category_id": 1, "id": 1317363}, {"segmentation": [[534.03, 296.0, 535.66, 296.9, 537.48, 295.63, 538.02, 295.09, 539.47, 296.0, 543.28, 297.27, 546.18, 297.27, 545.82, 295.45, 548.18, 292.19, 547.45, 289.65, 546.18, 287.11, 545.28, 286.56, 543.83, 286.75, 542.01, 288.56, 539.47, 292.37, 537.66, 292.01, 533.67, 295.63, 533.67, 296.54]], "area": 81.16124999999995, "iscrowd": 0, "image_id": 45124, "bbox": [533.67, 286.56, 14.51, 10.71], "category_id": 1, "id": 1317380}, {"segmentation": [[368.62, 116.21, 380.66, 107.46, 395.7, 114.3, 396.52, 121.14, 395.98, 124.69, 396.52, 134.82, 401.45, 142.75, 395.98, 147.12, 385.58, 150.95, 381.2, 159.16, 372.72, 173.93, 369.99, 175.85, 366.98, 152.05, 368.07, 143.02, 369.17, 138.37, 368.89, 131.81, 368.89, 127.43, 371.9, 121.41, 370.26, 118.95]], "area": 1344.24725, "iscrowd": 0, "image_id": 149863, "bbox": [366.98, 107.46, 34.47, 68.39], "category_id": 1, "id": 1318592}, {"segmentation": [[453.31, 280.16, 454.29, 279.19, 454.91, 279.12, 455.82, 280.37, 456.51, 281.48, 457.83, 282.11, 458.81, 284.26, 459.08, 285.58, 458.87, 286.56, 459.92, 288.78, 459.5, 290.87, 458.53, 294.21, 460.06, 296.57, 459.92, 297.75, 456.37, 299.0, 455.89, 298.59, 456.02, 297.13, 455.12, 294.9, 454.49, 291.08, 453.31, 291.49, 452.41, 289.96, 453.94, 288.44, 454.42, 286.91, 454.29, 285.45, 454.42, 283.92, 454.42, 283.08, 454.91, 282.52, 454.98, 281.97, 454.49, 282.18, 453.94, 282.11, 453.87, 281.48, 453.66, 281.41, 453.31, 281.06]], "area": 83.44439999999979, "iscrowd": 0, "image_id": 45124, "bbox": [452.41, 279.12, 7.65, 19.88], "category_id": 1, "id": 1319410}, {"segmentation": [[189.63, 200.67, 190.22, 198.09, 190.42, 194.51, 194.4, 195.31, 194.4, 199.68, 193.01, 203.85, 190.02, 204.05]], "area": 36.54825000000007, "iscrowd": 0, "image_id": 476575, "bbox": [189.63, 194.51, 4.77, 9.54], "category_id": 1, "id": 1319440}, {"segmentation": [[99.05, 134.04, 102.06, 121.24, 106.95, 116.16, 117.86, 116.35, 124.07, 123.31, 126.7, 131.59, 126.14, 135.73, 115.04, 137.05, 101.87, 136.86], [89.59, 158.41, 84.03, 162.76, 81.62, 180.62, 84.76, 187.63, 93.93, 190.77, 110.35, 193.9, 111.56, 235.44, 112.52, 262.72, 119.04, 263.2, 120.97, 258.13, 130.15, 256.93, 131.84, 254.51, 135.95, 199.7, 134.01, 195.11, 132.32, 187.14, 133.29, 181.59, 136.91, 177.49, 136.19, 166.38, 126.53, 165.9, 114.7, 170.72, 109.38, 174.35, 104.31, 172.9, 99.24, 167.1]], "area": 3245.2396, "iscrowd": 0, "image_id": 149863, "bbox": [81.62, 116.16, 55.29, 147.04], "category_id": 1, "id": 1319917}, {"segmentation": [[101.69, 72.24, 101.49, 67.82, 103.0, 63.59, 105.51, 61.68, 107.02, 58.97, 108.73, 53.64, 110.84, 53.94, 111.95, 56.96, 110.84, 61.18, 113.26, 63.99, 115.87, 65.7, 116.57, 68.22, 115.97, 70.03, 114.16, 72.94, 115.07, 77.17, 115.07, 81.69, 115.27, 84.1, 115.67, 89.74, 115.27, 90.54, 113.26, 87.82, 109.94, 88.43, 106.12, 91.55, 105.21, 90.34, 105.31, 84.31, 105.11, 80.59, 105.41, 74.35, 105.11, 74.35, 102.09, 73.75]], "area": 338.42429999999996, "iscrowd": 0, "image_id": 517261, "bbox": [101.49, 53.64, 15.08, 37.91], "category_id": 1, "id": 1320269}, {"segmentation": [[349.82, 210.1, 348.05, 209.07, 345.25, 209.07, 342.75, 210.55, 341.72, 214.23, 343.93, 218.94, 344.07, 219.53, 342.9, 221.44, 340.54, 225.71, 340.1, 226.6, 337.01, 232.34, 335.09, 235.43, 335.53, 237.05, 337.3, 238.52, 338.48, 238.52, 340.39, 237.34, 342.45, 233.96, 344.52, 232.63, 347.31, 234.55, 347.9, 236.31, 346.14, 238.38, 345.55, 241.03, 342.31, 242.06, 341.86, 242.2, 340.98, 245.0, 341.13, 254.13, 341.28, 258.11, 344.37, 260.02, 347.61, 261.64, 350.26, 262.52, 351.58, 262.82, 353.94, 262.67, 353.79, 251.48, 353.35, 243.97, 352.02, 233.81, 351.73, 227.33, 351.73, 221.59, 351.29, 217.02, 350.55, 211.13]], "area": 563.0419000000006, "iscrowd": 0, "image_id": 294416, "bbox": [335.09, 209.07, 18.85, 53.75], "category_id": 1, "id": 1320363}, {"segmentation": [[71.8, 255.08, 72.9, 253.66, 72.46, 251.02, 72.46, 248.82, 75.21, 246.84, 77.41, 248.71, 77.85, 251.68, 76.86, 255.08, 79.49, 256.84, 79.49, 263.87, 73.45, 261.46, 72.57, 255.08]], "area": 82.35649999999995, "iscrowd": 0, "image_id": 539099, "bbox": [71.8, 246.84, 7.69, 17.03], "category_id": 1, "id": 1320692}, {"segmentation": [[446.18, 171.8, 448.84, 167.65, 451.33, 166.49, 453.82, 164.0, 454.65, 162.84, 454.65, 158.52, 454.48, 155.37, 456.47, 153.71, 458.63, 153.71, 461.79, 155.37, 462.62, 156.03, 463.78, 159.02, 462.12, 162.51, 462.28, 164.5, 464.44, 164.66, 464.28, 166.16, 462.78, 169.48, 461.79, 171.97, 460.46, 173.63, 453.32, 173.63]], "area": 207.41154999999986, "iscrowd": 0, "image_id": 347340, "bbox": [446.18, 153.71, 18.26, 19.92], "category_id": 1, "id": 1320924}, {"segmentation": [[376.22, 223.69, 374.61, 226.93, 372.76, 234.77, 371.15, 239.39, 369.76, 241.93, 375.99, 242.85, 371.84, 247.47, 366.76, 257.17, 366.53, 257.86, 366.76, 260.86, 383.61, 258.32, 382.92, 251.17, 382.0, 244.7, 380.61, 238.01, 376.92, 236.62, 377.61, 232.7, 378.99, 222.08]], "area": 322.6402500000008, "iscrowd": 0, "image_id": 294416, "bbox": [366.53, 222.08, 17.08, 38.78], "category_id": 1, "id": 1321024}, {"segmentation": [[495.94, 90.51, 500.0, 85.79, 500.0, 75.05, 499.53, 71.65, 496.32, 68.82, 487.27, 62.04, 483.5, 62.04, 480.67, 63.54, 477.09, 65.62, 471.05, 69.95, 471.05, 76.93, 488.59, 107.29, 485.76, 141.04, 486.14, 146.7, 479.63, 185.46, 479.01, 198.51, 473.73, 212.49, 500.0, 207.52, 500.0, 147.88, 500.0, 129.87, 499.82, 96.01, 497.95, 92.6]], "area": 2623.3821500000017, "iscrowd": 0, "image_id": 149863, "bbox": [471.05, 62.04, 28.95, 150.45], "category_id": 1, "id": 1321430}, {"segmentation": [[69.53, 60.73, 88.78, 56.4, 87.39, 51.71, 86.35, 45.99, 83.75, 39.92, 79.24, 39.57, 78.54, 35.24, 75.77, 31.77, 71.95, 31.6, 69.7, 32.98, 69.53, 38.53, 70.91, 40.44, 64.84, 44.43, 64.67, 48.24, 66.06, 52.41, 68.83, 59.34]], "area": 447.52484999999996, "iscrowd": 0, "image_id": 375659, "bbox": [64.67, 31.6, 24.11, 29.13], "category_id": 1, "id": 1321468}, {"segmentation": [[162.48, 225.47, 164.22, 225.23, 165.06, 224.39, 167.55, 225.23, 168.13, 227.3, 168.13, 229.47, 168.05, 231.46, 167.05, 232.21, 166.3, 233.13, 166.14, 234.87, 167.55, 235.46, 168.05, 236.37, 168.22, 237.79, 166.05, 238.87, 166.14, 239.87, 166.47, 240.0, 160.05, 240.0, 159.43, 233.73, 162.69, 230.78, 162.38, 225.81]], "area": 95.57765000000006, "iscrowd": 0, "image_id": 476575, "bbox": [159.43, 224.39, 8.79, 15.61], "category_id": 1, "id": 1322279}, {"segmentation": [[602.98, 129.53, 589.42, 128.26, 591.54, 122.12, 590.9, 113.64, 596.62, 103.26, 596.83, 98.39, 596.62, 94.36, 604.04, 89.28, 606.58, 90.13]], "area": 422.82100000000156, "iscrowd": 0, "image_id": 23015, "bbox": [589.42, 89.28, 17.16, 40.25], "category_id": 1, "id": 1322421}, {"segmentation": [[166.11, 243.78, 169.35, 230.83, 174.74, 218.97, 186.61, 217.89, 190.92, 244.85, 190.92, 253.48, 192.0, 261.03, 192.0, 270.74, 188.76, 277.21, 188.76, 289.08, 190.92, 302.02, 190.92, 306.34, 175.82, 317.12, 172.58, 314.97, 170.43, 304.18]], "area": 1980.6962499999986, "iscrowd": 0, "image_id": 23015, "bbox": [166.11, 217.89, 25.89, 99.23], "category_id": 1, "id": 1323097}, {"segmentation": [[629.28, 63.12, 627.06, 52.58, 623.74, 40.94, 628.17, 31.51, 634.83, 32.62, 636.49, 51.47, 634.27, 63.67, 633.72, 64.78]], "area": 286.9130000000013, "iscrowd": 0, "image_id": 517261, "bbox": [623.74, 31.51, 12.75, 33.27], "category_id": 1, "id": 1323428}, {"segmentation": [[524.12, 219.02, 516.31, 218.05, 516.31, 215.44, 516.63, 214.14, 517.93, 212.19, 517.93, 211.86, 522.49, 213.49]], "area": 38.61740000000031, "iscrowd": 0, "image_id": 425652, "bbox": [516.31, 211.86, 7.81, 7.16], "category_id": 1, "id": 1323546}, {"segmentation": [[484.36, 117.79, 488.22, 112.88, 485.42, 106.21, 489.63, 96.74, 493.84, 96.04, 492.79, 90.07, 495.94, 87.97, 501.56, 91.12, 501.91, 93.93, 501.91, 97.44, 506.82, 102.0, 504.37, 113.58, 506.47, 118.85]], "area": 456.65334999999993, "iscrowd": 0, "image_id": 23015, "bbox": [484.36, 87.97, 22.46, 30.88], "category_id": 1, "id": 1323584}, {"segmentation": [[615.82, 174.51, 620.67, 172.9, 619.2, 169.52, 622.28, 166.0, 625.95, 166.83, 626.39, 170.06, 626.54, 173.29, 630.21, 176.23, 629.18, 181.37, 627.13, 182.1, 624.78, 181.81, 620.08, 183.43, 618.32, 183.43, 615.53, 177.55]], "area": 158.51354999999987, "iscrowd": 0, "image_id": 347340, "bbox": [615.53, 166.0, 14.68, 17.43], "category_id": 1, "id": 1323767}, {"segmentation": [[133.27, 220.8, 136.21, 213.92, 141.45, 212.94, 143.42, 218.18, 144.07, 222.76, 141.78, 225.06, 135.23, 228.0, 131.3, 222.11]], "area": 119.35489999999983, "iscrowd": 0, "image_id": 476575, "bbox": [131.3, 212.94, 12.77, 15.06], "category_id": 1, "id": 1323788}, {"segmentation": [[640.0, 281.21, 637.91, 278.85, 636.46, 280.85, 636.46, 282.85, 636.82, 284.3, 636.82, 287.76, 634.46, 290.3, 633.55, 293.94, 636.64, 294.12, 639.18, 299.39]], "area": 63.45819999999921, "iscrowd": 0, "image_id": 173163, "bbox": [633.55, 278.85, 6.45, 20.54], "category_id": 1, "id": 1326349}, {"segmentation": [[46.16, 89.54, 42.01, 86.57, 42.16, 81.82, 42.16, 75.59, 46.01, 72.18, 46.16, 66.55, 49.28, 62.54, 52.39, 63.43, 54.32, 69.51, 55.21, 70.26, 60.1, 71.0, 61.59, 72.18, 59.81, 72.93, 64.55, 84.79, 46.46, 88.5]], "area": 367.60425000000004, "iscrowd": 0, "image_id": 375659, "bbox": [42.01, 62.54, 22.54, 27.0], "category_id": 1, "id": 1326566}, {"segmentation": [[329.65, 162.75, 331.36, 160.35, 331.48, 158.86, 331.48, 155.54, 332.28, 151.31, 333.08, 149.14, 337.31, 148.22, 338.69, 148.22, 342.23, 148.91, 342.81, 152.57, 342.46, 157.83, 341.78, 160.01, 341.66, 160.35, 341.2, 161.84, 344.18, 162.64, 344.41, 163.33, 344.87, 164.7]], "area": 166.06435, "iscrowd": 0, "image_id": 347340, "bbox": [329.65, 148.22, 15.22, 16.48], "category_id": 1, "id": 1326683}, {"segmentation": [[373.78, 318.32, 368.92, 317.35, 368.92, 310.08, 368.92, 307.65, 367.47, 301.34, 368.92, 294.07, 359.71, 294.07, 358.74, 292.61, 364.07, 291.15, 367.47, 287.27, 367.95, 283.88, 370.86, 283.88, 372.32, 285.82, 372.81, 285.82, 376.69, 291.15, 376.69, 295.52]], "area": 263.12949999999927, "iscrowd": 0, "image_id": 575792, "bbox": [358.74, 283.88, 17.95, 34.44], "category_id": 1, "id": 1327903}, {"segmentation": [[38.18, 195.24, 38.18, 190.54, 40.32, 183.49, 40.96, 181.36, 42.02, 179.86, 43.09, 178.58, 45.65, 177.09, 48.64, 177.09, 48.86, 176.87, 50.35, 175.81, 49.92, 174.95, 49.5, 171.54, 49.5, 169.19, 50.78, 165.77, 52.06, 164.28, 53.13, 163.64, 54.84, 162.78, 56.12, 163.21, 58.47, 164.49, 59.75, 165.13, 61.46, 165.98, 63.16, 168.76, 62.74, 170.9, 62.74, 172.82, 62.31, 174.31, 62.1, 175.81, 61.67, 177.3, 64.44, 179.86, 64.44, 180.08, 64.44, 180.08, 65.3, 180.29, 66.37, 181.78, 69.78, 192.25, 70.21, 193.74, 70.85, 195.45, 71.06, 196.95, 71.06, 196.95, 71.7, 199.29, 71.7, 201.0, 72.13, 205.27, 72.13, 205.27, 72.77, 205.49, 78.96, 211.46, 76.4, 214.03, 75.33, 215.74, 68.93, 225.98, 65.3, 228.97, 63.38, 231.32, 63.38, 231.96, 62.74, 233.03, 62.52, 234.31, 62.1, 235.17, 61.03, 235.81, 60.81, 236.02, 57.83, 234.95, 56.76, 233.88, 57.18, 231.32, 60.6, 223.85, 64.23, 216.16, 64.23, 215.52, 63.38, 213.17, 59.96, 213.17, 54.62, 216.59, 54.2, 219.37, 55.26, 222.14, 57.18, 225.56, 57.4, 228.55, 56.12, 234.74, 53.55, 235.17, 51.63, 235.59, 50.57, 233.03, 50.14, 231.54, 49.71, 230.47, 48.0, 226.84, 44.37, 218.08, 43.52, 216.16, 41.81, 213.81, 40.1, 206.98, 63.16, 205.49, 63.59, 202.71, 63.16, 200.36, 57.61, 200.79, 56.97, 200.79, 45.44, 196.95, 42.45, 196.95, 36.05, 195.24]], "area": 1490.8808499999989, "iscrowd": 0, "image_id": 347340, "bbox": [36.05, 162.78, 42.91, 73.24], "category_id": 1, "id": 1328441}, {"segmentation": [[93.86, 236.12, 92.74, 231.62, 93.86, 229.94, 93.86, 227.69, 93.86, 226.56, 94.99, 226.56, 95.55, 227.69, 95.55, 229.94, 96.67, 232.75, 98.92, 239.54, 98.92, 240.0, 93.3, 240.0, 93.3, 238.42, 93.3, 237.3, 93.3, 236.17]], "area": 46.38415000000005, "iscrowd": 0, "image_id": 476575, "bbox": [92.74, 226.56, 6.18, 13.44], "category_id": 1, "id": 1328595}, {"segmentation": [[466.04, 194.33, 464.99, 194.33, 462.88, 192.49, 462.36, 191.43, 462.36, 191.43, 460.25, 187.49, 460.25, 183.54, 461.04, 179.85, 461.83, 177.75, 464.2, 176.69, 470.52, 178.8, 473.15, 180.12, 476.83, 183.27, 479.46, 186.7, 481.57, 191.43, 483.41, 191.43, 484.47, 190.64, 488.68, 188.54, 493.68, 185.91, 497.36, 184.33, 499.2, 182.22, 500.52, 180.64, 501.05, 179.85, 501.05, 178.01, 501.05, 176.17, 499.73, 173.27, 498.15, 172.22, 497.89, 171.43, 496.57, 169.33, 496.57, 166.17, 496.84, 164.59, 497.1, 162.22, 496.57, 160.11, 496.31, 158.01, 495.78, 154.85, 497.62, 149.32, 498.68, 145.9, 500.26, 144.06, 503.15, 141.43, 504.99, 140.37, 507.36, 138.53, 511.84, 138.0, 519.47, 138.0, 522.1, 139.06, 505.26, 152.48, 504.2, 157.74, 504.47, 165.64, 504.47, 168.8, 504.47, 171.69, 504.47, 174.85, 504.47, 178.54, 505.26, 179.85, 507.63, 181.17, 508.15, 180.12, 510.0, 183.01, 510.0, 183.01, 510.0, 183.01, 510.52, 183.54, 510.78, 184.06, 512.63, 184.59, 514.47, 186.17, 516.05, 189.85, 516.05, 193.54, 515.0, 195.64, 513.42, 198.28, 511.84, 200.38, 510.78, 202.49, 509.47, 203.01, 477.62, 194.59]], "area": 1153.6163499999998, "iscrowd": 0, "image_id": 480818, "bbox": [460.25, 138.0, 61.85, 65.01], "category_id": 1, "id": 1328668}, {"segmentation": [[426.99, 290.83, 429.83, 296.34, 429.51, 300.81, 428.37, 302.02, 427.81, 303.16, 427.08, 304.38, 424.97, 307.05, 426.75, 312.81, 426.83, 315.0, 426.43, 315.89, 424.97, 316.38, 424.4, 316.62, 420.83, 317.6, 419.21, 317.11, 418.88, 316.46, 419.69, 315.81, 420.51, 315.41, 420.91, 313.62, 421.56, 311.59, 421.88, 309.4, 421.64, 305.35, 419.86, 303.4, 420.91, 301.7, 420.42, 298.86, 420.51, 297.16, 418.96, 298.7, 417.02, 297.32, 417.02, 296.18, 417.34, 295.37, 419.37, 293.34, 420.91, 289.94, 421.88, 286.12, 422.94, 285.72, 424.56, 286.29, 424.72, 289.21, 425.86, 290.02]], "area": 207.1380000000001, "iscrowd": 0, "image_id": 575792, "bbox": [417.02, 285.72, 12.81, 31.88], "category_id": 1, "id": 1329365}, {"segmentation": [[475.0, 154.35, 476.55, 149.71, 477.11, 147.18, 477.39, 143.39, 477.95, 139.88, 480.48, 135.95, 488.06, 132.44, 496.91, 133.28, 503.22, 136.51, 504.35, 141.01, 498.87, 145.92, 496.48, 150.84, 496.34, 155.19, 496.76, 163.33, 497.19, 170.49, 498.03, 172.46, 500.98, 174.42, 500.84, 178.22, 501.12, 180.46, 488.06, 190.01, 482.44, 191.55, 479.07, 186.08, 473.88, 180.32, 471.35, 174.0, 468.82, 170.21, 467.7, 166.0, 468.68, 158.84, 470.37, 155.75, 473.74, 154.21]], "area": 1362.3789499999998, "iscrowd": 0, "image_id": 480818, "bbox": [467.7, 132.44, 36.65, 59.11], "category_id": 1, "id": 1330726}, {"segmentation": [[596.32, 172.58, 596.8, 172.18, 598.29, 170.61, 600.81, 169.03, 602.46, 167.78, 605.06, 166.67, 606.0, 164.71, 606.87, 163.13, 610.65, 162.11, 611.98, 162.27, 612.61, 163.68, 612.85, 164.55, 614.19, 164.79, 614.42, 165.97, 614.9, 167.62, 615.37, 171.0, 615.6, 173.21, 615.6, 173.68, 615.68, 174.86, 615.68, 175.09, 615.05, 175.72, 614.19, 176.51, 614.03, 176.51, 613.01, 172.58, 612.53, 171.95, 612.06, 172.03, 610.49, 172.34, 608.21, 172.34, 607.73, 172.73, 607.58, 172.81, 606.48, 172.73, 605.14, 172.18, 604.67, 173.05, 604.67, 173.13, 605.45, 173.76, 605.53, 173.84, 605.77, 173.84, 605.45, 174.86, 604.82, 175.8, 604.67, 176.12, 603.72, 177.69, 601.75, 176.83, 600.49, 176.43, 599.47, 175.57, 599.23, 174.78, 599.0, 174.54]], "area": 153.03330000000014, "iscrowd": 0, "image_id": 347340, "bbox": [596.32, 162.11, 19.36, 15.58], "category_id": 1, "id": 1331558}, {"segmentation": [[515.52, 312.05, 511.08, 311.84, 510.45, 306.98, 509.82, 304.44, 510.24, 299.16, 511.72, 296.0, 510.45, 294.52, 509.18, 295.79, 507.49, 294.31, 508.76, 291.77, 510.03, 288.61, 511.93, 287.34, 511.29, 285.65, 513.19, 283.75, 514.88, 284.17, 515.31, 286.49, 518.47, 289.66, 519.53, 293.89, 516.78, 294.94, 516.78, 297.05, 515.52, 310.99]], "area": 178.94439999999935, "iscrowd": 0, "image_id": 575792, "bbox": [507.49, 283.75, 12.04, 28.3], "category_id": 1, "id": 1331961}, {"segmentation": [[532.34, 310.87, 531.56, 308.74, 531.95, 305.82, 532.34, 303.68, 532.73, 297.85, 531.76, 299.41, 530.98, 301.55, 530.4, 303.1, 529.81, 301.74, 530.2, 298.63, 530.59, 295.33, 531.76, 293.58, 532.53, 292.41, 533.12, 291.05, 533.12, 289.89, 533.7, 288.33, 534.09, 287.75, 535.45, 288.14, 536.42, 289.3, 536.61, 290.66, 538.56, 291.05, 539.34, 293.19, 538.95, 300.38, 539.92, 304.07, 540.5, 306.02, 540.5, 307.57, 539.92, 310.1, 538.56, 310.87, 537.39, 309.51, 537.39, 308.74, 536.23, 306.02, 535.45, 303.49, 533.7, 310.68]], "area": 150.83650000000023, "iscrowd": 0, "image_id": 575792, "bbox": [529.81, 287.75, 10.69, 23.12], "category_id": 1, "id": 1332093}, {"segmentation": [[444.55, 101.31, 450.27, 104.85, 453.42, 110.37, 454.8, 112.15, 453.22, 122.99, 441.99, 123.78, 446.13, 118.06], [429.18, 119.04, 428.98, 125.16, 432.92, 124.17, 435.68, 118.06, 432.73, 113.33, 430.36, 116.48], [434.11, 135.6, 439.82, 139.94, 444.36, 141.32, 448.49, 138.95, 454.41, 130.87, 455.98, 126.14, 439.43, 125.35, 437.06, 127.91, 434.11, 134.62]], "area": 446.2752500000002, "iscrowd": 0, "image_id": 289693, "bbox": [428.98, 101.31, 27.0, 40.01], "category_id": 2, "id": 1334423}, {"segmentation": [[523.93, 388.14, 533.08, 400.95, 572.43, 406.45, 593.48, 389.06, 603.55, 393.63, 578.84, 409.19, 556.87, 410.11, 554.13, 426.58, 573.35, 433.9, 567.86, 440.31, 551.38, 435.73, 560.54, 460.45, 573.35, 476.92, 566.94, 478.75, 545.89, 455.87, 549.55, 478.75, 533.08, 480.58, 484.57, 480.58, 490.98, 457.7, 507.45, 446.72, 523.93, 443.97, 538.57, 437.56, 544.06, 431.16, 536.74, 426.58, 537.65, 422.92, 549.55, 412.85, 522.1, 404.62, 519.35, 399.12]], "area": 3569.273399999998, "iscrowd": 0, "image_id": 404964, "bbox": [484.57, 388.14, 118.98, 92.44], "category_id": 2, "id": 1335197}, {"segmentation": [[234.72, 69.3, 230.23, 88.26, 219.75, 92.75, 224.24, 113.21, 234.22, 137.17, 245.2, 126.19, 243.7, 95.75, 254.18, 106.23, 255.18, 118.7, 263.66, 125.69, 263.66, 110.72, 262.17, 111.22, 260.17, 104.23, 275.14, 102.73, 295.6, 100.74, 321.05, 97.74, 330.54, 89.26, 319.06, 82.77, 311.57, 79.78, 293.11, 88.26, 289.61, 80.77, 298.1, 69.3, 302.59, 62.81, 286.62, 60.31, 276.14, 62.31, 275.64, 72.79, 281.63, 83.77, 275.14, 97.74, 264.16, 103.73]], "area": 2616.8072, "iscrowd": 0, "image_id": 263098, "bbox": [219.75, 60.31, 110.79, 76.86], "category_id": 2, "id": 1336010}, {"segmentation": [[204.95, 385.13, 200.96, 370.93, 202.24, 363.27, 204.85, 356.59, 209.9, 352.8, 211.38, 351.75, 212.75, 349.33, 215.8, 347.22, 216.33, 343.33, 215.7, 341.75, 215.27, 338.28, 212.75, 336.07, 211.06, 335.12, 208.01, 336.38, 206.12, 336.8, 204.85, 336.07, 204.96, 332.38, 208.12, 331.33, 216.96, 331.64, 222.33, 331.64, 225.49, 331.64, 225.17, 334.38, 219.17, 336.38, 220.64, 340.07, 219.38, 344.28, 219.06, 350.49, 218.43, 352.28, 221.27, 356.49, 218.43, 360.38, 214.96, 364.07, 211.8, 371.12, 209.48, 375.75, 209.48, 381.65, 208.64, 385.44, 209.27, 388.39]], "area": 513.59385, "iscrowd": 0, "image_id": 404964, "bbox": [200.96, 331.33, 24.53, 57.06], "category_id": 2, "id": 1336312}, {"segmentation": [[23.05, 107.68, 9.23, 112.0, 7.07, 110.27, 10.52, 101.63, 14.84, 95.15, 24.35, 93.42, 29.96, 88.67, 43.36, 83.92, 56.75, 81.33, 74.03, 85.65, 69.28, 91.7, 44.22, 97.31, 46.81, 104.22, 46.38, 111.14, 48.54, 121.07, 48.54, 125.83, 41.2, 128.42, 32.56, 127.99, 32.99, 125.83, 38.6, 114.59, 33.85, 112.43]], "area": 1218.2879499999997, "iscrowd": 0, "image_id": 277472, "bbox": [7.07, 81.33, 66.96, 47.09], "category_id": 2, "id": 1336400}, {"segmentation": [[373.51, 321.85, 375.96, 322.94, 377.87, 326.48, 380.86, 331.38, 381.41, 336.28, 380.05, 338.46, 377.05, 339.28, 371.06, 339.55, 366.98, 338.46, 364.8, 334.92, 363.71, 339.28, 359.9, 338.73, 357.17, 334.1, 357.45, 330.84, 359.62, 327.57, 360.17, 327.03, 359.35, 322.94, 357.99, 320.49, 357.45, 315.86, 361.53, 315.04, 362.62, 316.95, 360.17, 319.13, 362.35, 321.85, 364.53, 322.94, 366.98, 323.49, 369.15, 322.94, 369.7, 321.03]], "area": 365.5034499999998, "iscrowd": 0, "image_id": 482024, "bbox": [357.17, 315.04, 24.24, 24.51], "category_id": 2, "id": 1336570}, {"segmentation": [[227.21, 354.75, 217.38, 361.06, 210.36, 374.75, 210.36, 384.22, 210.71, 391.59, 216.33, 397.2, 222.64, 395.1, 227.21, 388.43, 231.42, 382.47, 233.17, 374.4, 236.33, 374.4, 237.73, 382.12, 241.59, 386.33, 248.61, 388.43, 248.61, 373.34, 248.61, 356.5, 248.61, 350.89, 241.24, 350.89, 240.89, 346.68, 244.75, 343.87, 251.06, 343.52, 250.36, 340.01, 238.43, 343.87, 237.73, 340.36, 236.68, 334.75, 230.01, 334.4, 235.63, 336.85, 236.68, 344.22, 230.71, 348.78, 226.15, 352.99], [268.96, 377.2, 259.49, 388.78, 254.22, 388.78, 256.68, 370.54, 256.33, 362.47, 259.49, 357.55, 261.24, 363.87, 264.05, 372.29]], "area": 1568.02255, "iscrowd": 0, "image_id": 404964, "bbox": [210.36, 334.4, 58.6, 62.8], "category_id": 2, "id": 1336572}, {"segmentation": [[116.01, 469.08, 108.49, 462.63, 109.56, 444.37, 98.82, 441.15, 90.23, 431.48, 88.08, 421.82, 88.08, 412.15, 105.27, 404.63, 123.53, 412.15, 134.27, 403.55, 142.86, 385.29, 166.49, 365.96, 247.06, 345.55, 368.44, 345.55, 415.7, 356.29, 533.86, 444.37, 588.64, 471.23]], "area": 43954.211599999995, "iscrowd": 0, "image_id": 482024, "bbox": [88.08, 345.55, 500.56, 125.68], "category_id": 3, "id": 1337730}, {"segmentation": [[561.52, 106.86, 561.52, 113.2, 568.2, 112.87, 569.87, 116.21, 575.21, 115.54, 576.54, 110.53, 586.56, 109.53, 588.23, 114.54, 597.24, 112.87, 595.57, 100.18, 594.9, 89.5, 592.23, 87.17, 574.21, 87.83, 562.52, 89.84, 559.52, 99.52, 559.52, 109.53]], "area": 869.370600000001, "iscrowd": 0, "image_id": 522150, "bbox": [559.52, 87.17, 37.72, 29.04], "category_id": 3, "id": 1338679}, {"segmentation": [[157.08, 425.21, 163.87, 424.6, 167.65, 420.53, 173.68, 420.76, 173.84, 427.32, 173.56, 430.63, 160.71, 430.95, 155.98, 425.89], [179.39, 419.3, 180.76, 419.41, 180.65, 429.94, 178.82, 429.71], [182.79, 420.42, 183.12, 429.36, 184.76, 429.61, 185.08, 420.91]], "area": 161.48895000000005, "iscrowd": 0, "image_id": 399378, "bbox": [155.98, 419.3, 29.1, 11.65], "category_id": 3, "id": 1339074}, {"segmentation": [[129.3, 417.67, 132.9, 416.6, 136.85, 412.27, 146.93, 412.56, 149.85, 414.02, 150.05, 416.36, 152.14, 420.3, 152.43, 422.45, 141.77, 424.83, 137.14, 425.37, 133.73, 425.71, 133.0, 427.85, 131.44, 427.07, 130.32, 424.35, 129.64, 421.23, 129.54, 419.23]], "area": 238.23649999999992, "iscrowd": 0, "image_id": 379743, "bbox": [129.3, 412.27, 23.13, 15.58], "category_id": 3, "id": 1339428}, {"segmentation": [[422.47, 174.66, 422.47, 174.66, 417.35, 181.55, 413.83, 180.23, 413.83, 180.23, 412.51, 182.28, 412.51, 182.28, 414.12, 184.77, 412.51, 189.75, 412.51, 189.75, 412.51, 200.16, 417.64, 200.01, 419.84, 198.1, 421.3, 187.41, 424.09, 178.91, 423.94, 174.81, 423.06, 174.81]], "area": 179.43994999999967, "iscrowd": 0, "image_id": 24730, "bbox": [412.51, 174.66, 11.58, 25.5], "category_id": 3, "id": 1339510}, {"segmentation": [[614.1, 226.0, 623.51, 227.14, 631.49, 233.7, 632.34, 232.84, 637.76, 246.52, 639.75, 254.22, 639.75, 267.05, 635.19, 282.15, 634.62, 286.43, 626.36, 287.28, 616.1, 287.0, 613.81, 285.0, 614.1, 275.6, 616.67, 267.05, 614.95, 251.08, 614.95, 239.68, 612.96, 224.86]], "area": 1290.5099499999994, "iscrowd": 0, "image_id": 387595, "bbox": [612.96, 224.86, 26.79, 62.42], "category_id": 3, "id": 1339904}, {"segmentation": [[502.41, 177.71, 501.83, 169.79, 503.73, 167.3, 513.84, 166.13, 525.71, 165.98, 530.25, 167.45, 532.75, 174.48, 538.9, 174.92, 541.39, 180.05, 533.92, 180.2, 529.08, 178.0, 520.88, 177.71, 502.71, 177.85]], "area": 377.7221000000001, "iscrowd": 0, "image_id": 24730, "bbox": [501.83, 165.98, 39.56, 14.22], "category_id": 3, "id": 1339929}, {"segmentation": [[284.19, 428.15, 284.72, 440.87, 322.88, 441.93, 333.48, 442.46, 336.13, 429.74, 327.12, 422.85, 317.05, 415.96, 316.52, 427.09, 300.62, 426.56, 285.78, 427.09]], "area": 828.7954500000004, "iscrowd": 0, "image_id": 14027, "bbox": [284.19, 415.96, 51.94, 26.5], "category_id": 3, "id": 1339958}, {"segmentation": [[506.99, 303.71, 513.28, 306.85, 518.85, 314.84, 521.51, 318.71, 517.88, 323.06, 512.8, 323.79, 511.59, 326.93, 508.2, 325.96]], "area": 194.8566999999999, "iscrowd": 0, "image_id": 47387, "bbox": [506.99, 303.71, 14.52, 23.22], "category_id": 3, "id": 1340206}, {"segmentation": [[203.5, 269.25, 206.7, 268.0, 211.72, 268.57, 213.09, 271.54, 211.95, 273.82, 212.64, 276.79, 208.87, 276.79, 209.1, 274.16, 209.1, 269.94, 204.3, 269.14]], "area": 33.815750000000016, "iscrowd": 0, "image_id": 328487, "bbox": [203.5, 268.0, 9.59, 8.79], "category_id": 3, "id": 1340557}, {"segmentation": [[360.13, 529.74, 363.66, 530.92, 367.18, 525.63, 421.26, 522.69, 426.55, 527.98, 439.49, 530.92, 444.19, 535.03, 444.78, 552.08, 370.71, 552.08, 369.53, 547.97, 363.66, 545.62, 363.07, 537.39, 358.95, 531.51]], "area": 2112.615400000002, "iscrowd": 0, "image_id": 181149, "bbox": [358.95, 522.69, 85.83, 29.39], "category_id": 3, "id": 1340729}, {"segmentation": [[32.77, 194.89, 29.87, 195.09, 29.58, 197.02, 27.94, 197.41, 27.94, 199.34, 28.23, 201.08, 28.9, 201.76, 30.45, 201.95, 30.93, 201.95, 31.61, 200.98, 31.71, 198.86, 32.48, 197.6, 34.22, 197.02, 34.61, 196.92, 34.61, 196.73, 34.8, 196.05, 34.8, 195.67, 34.7, 195.18, 34.7, 195.09]], "area": 28.267899999999983, "iscrowd": 0, "image_id": 165347, "bbox": [27.94, 194.89, 6.86, 7.06], "category_id": 3, "id": 1341365}, {"segmentation": [[277.06, 262.83, 280.07, 262.57, 282.55, 263.61, 282.55, 266.1, 282.55, 268.19, 281.51, 269.1, 280.2, 268.97, 279.29, 268.71, 278.24, 268.45, 276.54, 268.45, 275.76, 268.71, 275.11, 269.36, 274.06, 269.36, 273.01, 268.71, 271.84, 267.8, 269.88, 267.27, 269.49, 266.23, 269.75, 265.84, 270.27, 265.44, 271.84, 264.79, 272.88, 264.01, 273.8, 263.74, 275.76, 262.96, 276.67, 262.44]], "area": 64.67010000000015, "iscrowd": 0, "image_id": 13000, "bbox": [269.49, 262.44, 13.06, 6.92], "category_id": 3, "id": 1341585}, {"segmentation": [[57.84, 522.54, 52.8, 515.89, 46.69, 514.99, 45.61, 508.52, 47.95, 501.32, 48.49, 498.09, 52.08, 497.55, 55.86, 496.83, 59.81, 494.49, 64.31, 491.44, 67.9, 489.64, 68.98, 489.28, 66.83, 492.7, 63.23, 500.07, 58.74, 503.3, 60.53, 510.31, 60.89, 514.81, 61.43, 517.14, 61.25, 519.48, 61.43, 521.1]], "area": 332.94549999999987, "iscrowd": 0, "image_id": 453332, "bbox": [45.61, 489.28, 23.37, 33.26], "category_id": 3, "id": 1341877}, {"segmentation": [[35.37, 149.5, 18.84, 157.37, 0.48, 157.37, 0.0, 114.35, 41.14, 114.88, 45.86, 132.19]], "area": 1669.9243000000004, "iscrowd": 0, "image_id": 530876, "bbox": [0.0, 114.35, 45.86, 43.02], "category_id": 3, "id": 1342478}, {"segmentation": [[35.42, 386.14, 57.64, 383.74, 78.06, 391.54, 93.67, 383.74, 90.07, 365.12, 98.47, 360.92, 110.48, 375.33, 111.68, 387.34, 134.5, 385.54, 121.89, 366.92, 137.51, 363.92, 151.32, 374.13, 155.52, 350.11, 150.72, 335.09, 122.49, 333.89, 117.09, 319.48, 94.27, 312.28, 47.43, 318.28, 35.42, 322.48]], "area": 6824.447100000002, "iscrowd": 0, "image_id": 399441, "bbox": [35.42, 312.28, 120.1, 79.26], "category_id": 3, "id": 1342967}, {"segmentation": [[95.95, 287.84, 21.11, 283.04, 19.19, 266.73, 24.95, 252.34, 40.3, 224.51, 84.43, 224.51, 98.82, 232.19, 105.54, 253.3, 111.3, 261.93, 105.54, 285.92]], "area": 4755.659050000001, "iscrowd": 0, "image_id": 198001, "bbox": [19.19, 224.51, 92.11, 63.33], "category_id": 3, "id": 1343239}, {"segmentation": [[216.34, 366.42, 218.85, 362.88, 233.93, 362.97, 237.0, 365.95, 236.72, 372.47, 235.89, 373.21, 228.35, 373.3, 225.55, 370.14, 220.99, 367.16]], "area": 147.5394999999998, "iscrowd": 0, "image_id": 309536, "bbox": [216.34, 362.88, 20.66, 10.42], "category_id": 3, "id": 1343389}, {"segmentation": [[562.88, 231.42, 580.83, 230.7, 597.7, 241.04, 615.84, 242.31, 617.11, 251.74, 617.11, 255.36, 602.05, 258.08, 595.71, 258.08, 566.69, 258.81, 553.63, 258.99, 551.27, 262.08, 540.39, 262.8, 536.94, 258.81, 517.35, 258.99, 518.62, 245.93, 522.43, 243.57, 530.96, 242.49, 539.66, 239.22, 549.64, 232.69]], "area": 2152.371000000001, "iscrowd": 0, "image_id": 198001, "bbox": [517.35, 230.7, 99.76, 32.1], "category_id": 3, "id": 1343609}, {"segmentation": [[304.36, 472.45, 303.4, 462.55, 305.33, 452.42, 305.33, 444.21, 305.81, 439.63, 311.85, 434.07, 314.26, 430.45, 321.98, 422.73, 325.36, 418.39, 344.91, 416.7, 359.63, 416.94, 370.98, 418.63, 377.74, 420.56, 380.39, 421.76, 382.56, 422.01, 383.05, 424.18, 382.08, 425.63, 383.53, 432.87, 384.74, 435.76, 387.87, 434.8, 390.77, 434.56, 393.67, 436.25, 395.84, 438.42, 395.11, 440.83, 393.18, 442.28, 389.8, 441.8, 391.01, 445.18, 393.18, 453.14, 393.67, 458.69, 393.18, 465.69, 393.18, 467.86, 391.25, 470.52, 392.46, 478.24, 392.46, 479.21, 380.87, 478.48, 374.36, 475.35, 317.4, 475.59, 315.71, 479.45, 304.61, 479.45]], "area": 4748.107250000001, "iscrowd": 0, "image_id": 171155, "bbox": [303.4, 416.7, 92.44, 62.75], "category_id": 3, "id": 1344317}, {"segmentation": [[588.42, 304.62, 600.57, 303.68, 622.55, 281.24, 638.91, 273.76, 638.44, 384.57, 639.38, 407.01, 616.47, 404.67, 605.25, 414.96, 592.62, 416.36, 580.0, 417.3, 566.44, 413.09, 557.56, 402.34, 550.08, 394.86, 550.08, 387.84, 545.87, 379.89, 546.8, 373.35, 549.14, 366.34, 549.14, 338.28, 580.47, 323.32, 587.48, 316.31]], "area": 9259.925650000001, "iscrowd": 0, "image_id": 482024, "bbox": [545.87, 273.76, 93.51, 143.54], "category_id": 3, "id": 1344414}, {"segmentation": [[246.51, 171.7, 258.45, 168.23, 264.16, 164.43, 278.53, 164.95, 286.66, 170.48, 286.83, 176.37, 284.58, 176.19, 284.41, 177.75, 283.02, 179.66, 280.6, 179.83, 278.7, 179.48, 277.14, 176.19, 259.32, 175.5, 258.45, 179.66, 256.55, 180.87, 254.3, 180.87, 250.49, 176.71, 246.34, 176.71, 245.47, 174.98, 245.13, 171.35]], "area": 417.34460000000024, "iscrowd": 0, "image_id": 576322, "bbox": [245.13, 164.43, 41.7, 16.44], "category_id": 3, "id": 1344515}, {"segmentation": [[96.25, 203.76, 101.88, 203.68, 101.64, 212.32, 96.82, 212.41], [104.41, 205.39, 105.06, 207.1, 105.39, 208.16, 105.14, 211.51, 105.14, 212.73, 103.68, 212.65, 103.92, 205.15]], "area": 54.87484999999997, "iscrowd": 0, "image_id": 452087, "bbox": [96.25, 203.68, 9.14, 9.05], "category_id": 3, "id": 1344520}, {"segmentation": [[57.08, 244.44, 53.12, 244.44, 50.33, 243.74, 49.86, 243.97, 44.51, 242.11, 41.02, 240.25, 39.15, 240.25, 38.46, 240.71, 38.22, 250.26, 37.99, 253.75, 37.99, 253.75, 37.99, 255.38, 38.46, 255.38, 42.18, 253.52, 45.44, 253.28, 50.56, 254.22, 55.22, 254.68, 59.87, 253.52, 61.73, 253.05, 62.67, 250.26, 64.3, 247.7, 64.3, 246.3, 60.34, 244.21]], "area": 267.2987, "iscrowd": 0, "image_id": 149878, "bbox": [37.99, 240.25, 26.31, 15.13], "category_id": 3, "id": 1344547}, {"segmentation": [[197.55, 259.71, 192.0, 264.47, 188.43, 273.6, 190.41, 278.36, 193.59, 278.36, 195.57, 282.72, 201.52, 283.51, 208.26, 278.75, 211.04, 278.75, 213.82, 262.89, 210.25, 262.49, 206.28, 261.3, 200.73, 260.51]], "area": 426.49599999999987, "iscrowd": 0, "image_id": 564803, "bbox": [188.43, 259.71, 25.39, 23.8], "category_id": 3, "id": 1346862}, {"segmentation": [[128.66, 425.52, 118.72, 424.12, 119.81, 419.0, 123.53, 415.89, 125.71, 414.8, 125.87, 413.09, 134.26, 413.25, 134.41, 415.58, 129.44, 418.06, 130.37, 424.9]], "area": 116.70125000000002, "iscrowd": 0, "image_id": 379743, "bbox": [118.72, 413.09, 15.69, 12.43], "category_id": 3, "id": 1346939}, {"segmentation": [[30.05, 210.94, 26.05, 216.21, 24.32, 204.23, 38.48, 203.86, 42.1, 208.68, 31.1, 208.3]], "area": 95.49700000000006, "iscrowd": 0, "image_id": 165347, "bbox": [24.32, 203.86, 17.78, 12.35], "category_id": 3, "id": 1347077}, {"segmentation": [[27.83, 335.21, 32.36, 343.43, 32.36, 343.43, 32.36, 343.43, 38.62, 349.07, 38.86, 362.43, 35.43, 362.43, 34.94, 359.37, 33.47, 359.25, 33.47, 359.25, 33.1, 362.92, 26.6, 363.05, 28.2, 349.19, 22.8, 339.51, 19.12, 337.3, 7.35, 336.07, 7.72, 334.72, 16.18, 333.87, 27.46, 334.85]], "area": 301.17804999999976, "iscrowd": 0, "image_id": 354277, "bbox": [7.35, 333.87, 31.51, 29.18], "category_id": 3, "id": 1347321}, {"segmentation": [[33.23, 334.7, 51.45, 327.18, 108.46, 325.6, 123.1, 321.64, 178.53, 339.06, 180.51, 341.04, 179.32, 342.62, 184.47, 359.64, 169.03, 365.19, 159.92, 373.1, 130.63, 393.69, 126.27, 393.3, 118.35, 402.4, 98.56, 400.42, 96.97, 397.25, 96.18, 394.48, 51.84, 391.32, 55.8, 379.83, 55.01, 375.48, 51.84, 370.33, 36.8, 365.19, 33.23, 370.33]], "area": 8403.2533, "iscrowd": 0, "image_id": 482024, "bbox": [33.23, 321.64, 151.24, 80.76], "category_id": 3, "id": 1347359}, {"segmentation": [[632.09, 340.87, 631.66, 298.1, 638.14, 296.37, 639.87, 301.13, 639.44, 343.03, 639.87, 345.63, 635.98, 341.74], [621.72, 340.44, 621.29, 300.69, 620.86, 300.69, 615.24, 303.72, 611.35, 311.06, 610.06, 317.98, 610.49, 327.05, 611.79, 334.83, 614.81, 339.15, 621.29, 341.31]], "area": 720.3721000000014, "iscrowd": 0, "image_id": 47387, "bbox": [610.06, 296.37, 29.81, 49.26], "category_id": 3, "id": 1350133}, {"segmentation": [[298.63, 122.53, 314.92, 122.65, 318.2, 122.59, 318.2, 121.54, 317.83, 120.79, 314.61, 120.3, 314.36, 118.81, 310.09, 117.88, 302.41, 119.18, 298.51, 121.23, 298.63, 122.53]], "area": 66.49255000000002, "iscrowd": 0, "image_id": 501358, "bbox": [298.51, 117.88, 19.69, 4.77], "category_id": 3, "id": 1350137}, {"segmentation": [[275.27, 335.08, 275.27, 324.33, 279.57, 319.59, 282.58, 313.57, 291.61, 307.12, 304.95, 306.26, 320.44, 306.69, 330.77, 314.86, 337.65, 319.16, 338.51, 332.93, 334.64, 333.79, 334.21, 338.95, 327.75, 338.95, 327.32, 336.37, 301.51, 334.22, 299.36, 339.82, 290.75, 339.82, 293.34, 335.94, 281.72, 335.94, 277.85, 338.52, 274.83, 336.37]], "area": 1628.8941000000007, "iscrowd": 0, "image_id": 482024, "bbox": [274.83, 306.26, 63.68, 33.56], "category_id": 3, "id": 1350148}, {"segmentation": [[20.31, 218.2, 34.71, 219.88, 40.69, 222.2, 42.9, 224.61, 45.63, 229.66, 44.37, 231.55, 39.01, 232.49, 33.97, 235.64, 29.03, 237.32, 28.61, 235.12, 28.4, 222.62, 24.09, 221.78, 20.31, 222.41, 18.42, 223.04, 18.95, 230.5, 17.37, 229.76, 14.32, 217.36, 14.32, 216.0]], "area": 282.5622500000001, "iscrowd": 0, "image_id": 387595, "bbox": [14.32, 216.0, 31.31, 21.32], "category_id": 3, "id": 1351932}, {"segmentation": [[375.5, 233.74, 399.19, 233.55, 401.82, 239.76, 402.01, 247.66, 403.14, 248.03, 403.52, 250.85, 403.89, 255.55, 402.58, 260.26, 399.57, 262.14, 396.56, 261.38, 395.62, 258.38, 391.48, 258.0, 391.48, 260.07, 388.47, 262.32, 383.96, 261.95, 383.77, 259.5, 381.33, 259.13, 379.45, 259.88, 379.07, 261.38, 377.0, 262.51, 375.87, 262.51]], "area": 721.1349499999993, "iscrowd": 0, "image_id": 564803, "bbox": [375.5, 233.55, 28.39, 28.96], "category_id": 3, "id": 1353117}, {"segmentation": [[507.31, 241.51, 506.44, 243.45, 514.86, 245.48, 516.4, 249.83, 525.59, 250.12, 527.04, 242.96, 522.2, 237.36, 510.02, 237.07, 507.02, 239.87]], "area": 186.31665, "iscrowd": 0, "image_id": 564803, "bbox": [506.44, 237.07, 20.6, 13.05], "category_id": 3, "id": 1354090}, {"segmentation": [[108.18, 259.14, 117.75, 234.25, 132.11, 232.33, 147.42, 232.33, 164.66, 238.08, 168.49, 246.69, 178.06, 253.39, 178.06, 264.88, 176.14, 268.71, 173.27, 268.71, 170.4, 265.84, 164.66, 264.88, 160.83, 273.5, 151.25, 268.71, 127.32, 268.71, 118.71, 271.58, 112.96, 272.54, 111.05, 270.62, 111.05, 260.09]], "area": 2142.1705499999994, "iscrowd": 0, "image_id": 198001, "bbox": [108.18, 232.33, 69.88, 41.17], "category_id": 3, "id": 1354629}, {"segmentation": [[553.4, 537.92, 535.17, 538.51, 532.82, 529.69, 518.71, 531.45, 522.24, 521.46, 543.99, 520.29, 549.28, 529.69, 552.81, 533.81]], "area": 395.28479999999956, "iscrowd": 0, "image_id": 181149, "bbox": [518.71, 520.29, 34.69, 18.22], "category_id": 3, "id": 1355312}, {"segmentation": [[220.45, 361.13, 220.57, 355.64, 222.71, 354.21, 224.02, 353.38, 226.05, 351.23, 229.03, 351.23, 232.73, 351.23, 235.23, 351.83, 237.37, 353.14, 239.4, 354.81, 241.78, 355.64, 244.41, 355.88, 245.84, 356.36, 246.67, 356.83, 247.51, 359.34, 247.51, 361.24, 245.24, 363.15, 238.45, 364.58, 235.94, 364.58, 233.92, 363.27, 230.7, 362.44, 225.1, 361.72, 219.49, 361.6]], "area": 254.8676, "iscrowd": 0, "image_id": 309536, "bbox": [219.49, 351.23, 28.02, 13.35], "category_id": 3, "id": 1355474}, {"segmentation": [[324.75, 85.93, 328.23, 83.32, 331.16, 82.69, 335.91, 82.61, 337.97, 83.88, 338.36, 85.7, 338.52, 87.04, 337.81, 88.62, 337.49, 89.57, 335.75, 89.97, 332.51, 90.13, 331.4, 89.89, 329.98, 89.89, 329.03, 90.36, 328.87, 90.29, 325.62, 90.05, 324.36, 89.81, 324.12, 87.04, 324.36, 86.01, 324.83, 86.01]], "area": 91.0712, "iscrowd": 0, "image_id": 397599, "bbox": [324.12, 82.61, 14.4, 7.75], "category_id": 3, "id": 1355724}, {"segmentation": [[454.73, 527.01, 480.97, 525.88, 486.09, 529.98, 489.17, 534.19, 490.7, 535.52, 493.37, 538.08, 494.08, 538.49, 491.01, 540.13, 488.96, 540.44, 488.24, 540.85, 485.68, 542.69, 484.55, 544.23, 483.02, 547.61, 482.2, 549.15, 481.17, 550.28, 480.25, 550.89, 478.71, 551.4, 475.02, 551.81, 472.97, 550.17, 471.74, 549.56, 469.18, 549.56, 463.75, 549.76, 461.6, 549.56, 458.93, 550.07, 455.55, 548.23, 455.14, 547.82, 455.45, 543.1, 454.83, 527.11]], "area": 749.2858999999997, "iscrowd": 0, "image_id": 181149, "bbox": [454.73, 525.88, 39.35, 25.93], "category_id": 3, "id": 1355780}, {"segmentation": [[239.79, 326.75, 246.63, 326.75, 247.01, 316.74, 247.78, 314.71, 251.25, 311.83, 251.92, 310.0, 260.39, 302.49, 259.53, 301.91, 241.62, 301.62, 236.04, 302.49, 232.38, 309.13, 228.82, 308.65, 227.98, 310.95, 228.96, 312.34, 227.25, 313.8, 227.01, 316.33, 226.19, 326.11, 226.84, 328.23, 230.75, 328.48, 230.59, 325.87, 233.93, 325.3, 234.67, 328.96, 238.34, 329.13]], "area": 548.3465999999997, "iscrowd": 0, "image_id": 482024, "bbox": [226.19, 301.62, 34.2, 27.51], "category_id": 3, "id": 1357444}, {"segmentation": [[353.12, 122.4, 349.85, 122.21, 347.82, 122.28, 346.15, 122.28, 346.03, 120.92, 346.15, 119.99, 346.46, 119.19, 348.43, 118.27, 349.98, 117.84, 352.01, 117.59, 353.12, 117.9, 355.03, 118.27, 356.63, 118.82, 357.87, 119.81, 358.61, 120.67, 358.73, 121.47, 357.99, 121.91, 356.82, 122.34, 354.48, 122.46]], "area": 48.01175000000008, "iscrowd": 0, "image_id": 501358, "bbox": [346.03, 117.59, 12.7, 4.87], "category_id": 3, "id": 1357925}, {"segmentation": [[206.99, 313.87, 213.39, 306.41, 221.06, 302.36, 235.55, 303.0, 231.29, 309.18, 228.73, 310.24, 228.52, 311.73, 228.73, 314.08, 226.18, 320.47, 225.32, 325.16, 223.19, 324.31, 219.14, 325.8, 216.8, 325.16, 214.45, 321.32, 211.26, 325.37, 207.21, 324.73, 205.29, 323.24, 205.29, 320.26, 205.72, 316.85]], "area": 439.59169999999983, "iscrowd": 0, "image_id": 482024, "bbox": [205.29, 302.36, 30.26, 23.44], "category_id": 3, "id": 1358525}, {"segmentation": [[320.92, 206.17, 324.58, 199.84, 326.58, 193.18, 332.91, 190.51, 345.89, 189.18, 347.89, 188.52, 348.56, 186.52, 344.23, 183.19, 333.57, 183.19, 324.25, 182.52, 316.59, 185.19, 313.26, 186.52, 312.26, 195.18, 312.26, 202.84, 309.26, 210.83, 310.59, 213.83, 313.59, 211.16]], "area": 471.30440000000004, "iscrowd": 0, "image_id": 511988, "bbox": [309.26, 182.52, 39.3, 31.31], "category_id": 4, "id": 1362494}, {"segmentation": [[211.41, 197.26, 222.61, 197.78, 227.09, 200.02, 228.82, 203.81, 229.68, 211.91, 228.13, 217.42, 226.4, 219.84, 224.16, 221.39, 220.54, 219.66, 223.13, 213.8, 222.09, 211.74, 219.16, 209.32, 217.61, 206.05, 216.41, 204.15, 215.37, 202.43, 212.96, 201.74, 210.89, 200.36, 210.55, 200.02]], "area": 228.7591, "iscrowd": 0, "image_id": 511988, "bbox": [210.55, 197.26, 19.13, 24.13], "category_id": 4, "id": 1362569}, {"segmentation": [[611.82, 217.74, 616.65, 217.49, 632.92, 238.33, 635.2, 241.38, 640.0, 243.92, 640.0, 247.74, 640.0, 253.84, 638.25, 256.38, 633.93, 257.9, 616.65, 256.89, 612.08, 254.34, 614.11, 252.31, 607.5, 252.06, 597.59, 249.51, 599.88, 246.21, 611.31, 247.99, 617.16, 247.99, 619.19, 247.74]], "area": 709.8742999999971, "iscrowd": 0, "image_id": 13000, "bbox": [597.59, 217.49, 42.41, 40.41], "category_id": 5, "id": 1363035}, {"segmentation": [[240.5, 206.86, 305.38, 207.35, 302.94, 189.79, 305.86, 174.18, 300.01, 173.7, 297.08, 171.26, 296.11, 167.35, 298.55, 158.09, 316.6, 158.57, 318.55, 142.97, 321.47, 136.63, 323.91, 139.55, 327.81, 142.48, 337.57, 142.48, 343.91, 152.23, 354.15, 165.4, 354.15, 204.42, 369.27, 207.32, 425.0, 201.96, 421.95, 229.27, 328.79, 240.0, 232.7, 241.95, 238.55, 207.32]], "area": 8844.4017, "iscrowd": 0, "image_id": 452088, "bbox": [232.7, 136.63, 192.3, 105.32], "category_id": 5, "id": 1363505}, {"segmentation": [[0.0, 178.34, 28.24, 183.19, 28.61, 176.47, 33.47, 171.99, 65.22, 174.23, 70.07, 168.25, 75.67, 167.88, 105.92, 170.49, 111.9, 169.0, 126.09, 170.87, 129.45, 176.47, 140.66, 183.57, 141.78, 184.69, 163.44, 183.19, 176.14, 185.81, 178.01, 183.57, 180.25, 165.64, 183.61, 161.16, 202.28, 163.4, 207.51, 201.49, 208.26, 211.58, 195.56, 216.43, 178.38, 222.78, 175.02, 220.17, 172.4, 215.69, 98.45, 218.3, 84.64, 232.87, 78.29, 233.99, 77.17, 231.74, 64.09, 227.26, 60.73, 227.26, 57.75, 221.66, 50.28, 223.9, 49.9, 230.25, 51.77, 236.6, 32.72, 239.59, 25.25, 239.59, 15.92, 239.59, 12.55, 239.59, 4.71, 230.62, 5.83, 226.52, 0.23, 223.9]], "area": 10332.446500000002, "iscrowd": 0, "image_id": 913, "bbox": [0.0, 161.16, 208.26, 78.43], "category_id": 5, "id": 1363637}, {"segmentation": [[549.08, 230.34, 565.45, 230.66, 592.78, 231.13, 600.08, 233.99, 599.61, 264.34, 596.91, 257.67, 593.09, 255.6, 585.47, 254.81, 573.23, 254.17, 565.93, 251.79, 551.31, 251.31, 548.61, 251.31]], "area": 1170.2173500000001, "iscrowd": 0, "image_id": 357428, "bbox": [548.61, 230.34, 51.47, 34.0], "category_id": 6, "id": 1364944}, {"segmentation": [[454.22, 166.46, 461.2, 180.99, 465.27, 214.12, 466.43, 236.78, 466.43, 244.34, 486.77, 250.73, 515.83, 247.25, 537.34, 248.99, 546.06, 253.06, 560.59, 257.71, 566.4, 251.9, 596.62, 252.48, 596.62, 252.48, 593.14, 236.78, 588.49, 213.54, 593.72, 205.98, 593.72, 147.27, 585.58, 140.88, 584.42, 136.81, 524.55, 144.37, 522.81, 158.32, 503.63, 160.06, 451.9, 165.87, 452.48, 168.2]], "area": 12976.059700000003, "iscrowd": 0, "image_id": 425652, "bbox": [451.9, 136.81, 144.72, 120.9], "category_id": 6, "id": 1365652}, {"segmentation": [[84.96, 3.31, 82.75, 222.88, 82.75, 258.19, 2.21, 303.43, 3.31, 1.1]], "area": 22518.8476, "iscrowd": 0, "image_id": 56699, "bbox": [2.21, 1.1, 82.75, 302.33], "category_id": 6, "id": 1366030}, {"segmentation": [[131.15, 191.65, 137.37, 187.99, 157.86, 186.89, 192.25, 186.16, 211.64, 186.89, 214.2, 185.79, 216.39, 185.79, 217.86, 186.89, 233.22, 186.52, 238.34, 184.69, 240.17, 186.52, 259.56, 185.79, 262.12, 185.06, 276.02, 185.79, 280.78, 186.89, 280.78, 190.55, 285.9, 191.28, 289.19, 197.13, 284.8, 201.16, 284.44, 203.72, 279.68, 207.38, 270.9, 208.11, 272.73, 201.89, 272.0, 196.04, 269.8, 196.4, 267.97, 192.38, 264.68, 194.57, 263.58, 197.5, 257.36, 202.25, 255.17, 199.69, 255.9, 196.04, 252.24, 197.86, 251.51, 199.69, 250.78, 204.45, 250.78, 209.57, 246.02, 209.57, 244.2, 199.33, 243.46, 196.4, 241.63, 195.67, 239.07, 197.86, 238.34, 199.69, 236.88, 205.91, 235.78, 207.01, 234.68, 200.06, 235.05, 206.64, 234.32, 201.89, 232.85, 197.5, 231.03, 199.69, 230.66, 201.52, 230.66, 206.64, 224.81, 207.38, 224.44, 201.16, 221.15, 196.4, 220.42, 196.4, 218.59, 198.23, 216.03, 200.79, 218.22, 203.35, 217.12, 207.38, 210.9, 207.38, 210.54, 201.16, 208.34, 196.4, 205.42, 199.69, 204.69, 202.62, 204.32, 207.74, 202.49, 209.57, 202.49, 209.2, 200.66, 201.52, 200.3, 196.4, 196.64, 197.86, 196.27, 203.35, 194.81, 205.18, 192.61, 205.55, 192.25, 204.08, 192.25, 208.11, 190.78, 209.2, 161.88, 208.84, 160.06, 202.62, 160.42, 197.86, 156.03, 198.96, 157.49, 200.06, 153.47, 198.6, 150.54, 197.86, 147.98, 198.6, 145.79, 203.35, 145.42, 204.45, 143.59, 203.72, 143.23, 199.33, 140.67, 200.43, 140.67, 202.99, 140.3, 206.28, 138.47, 207.74, 128.96, 208.11, 128.23, 205.55, 128.23, 196.4]], "area": 2650.5659999999993, "iscrowd": 0, "image_id": 409374, "bbox": [128.23, 184.69, 160.96, 24.88], "category_id": 7, "id": 1367265}, {"segmentation": [[405.9, 251.58, 405.9, 246.69, 404.74, 246.22, 404.74, 236.91, 409.86, 233.89, 411.95, 231.56, 414.28, 229.23, 431.27, 231.56, 434.53, 234.35, 435.0, 237.61, 437.56, 239.24, 438.26, 243.43, 436.86, 248.32, 437.09, 252.28, 433.84, 254.14, 431.51, 252.97, 431.51, 255.07, 428.48, 255.54, 427.08, 252.51, 426.85, 249.95, 422.89, 250.65, 418.94, 251.11, 417.08, 250.41, 415.21, 249.48, 413.82, 253.67, 410.79, 253.67, 409.63, 251.35, 408.46, 254.14]], "area": 650.9593999999995, "iscrowd": 0, "image_id": 198001, "bbox": [404.74, 229.23, 33.52, 26.31], "category_id": 8, "id": 1368182}, {"segmentation": [[420.53, 257.93, 426.45, 262.77, 433.26, 260.8, 433.62, 257.57, 453.0, 259.54, 462.86, 260.8, 467.17, 256.67, 473.09, 255.59, 476.5, 255.59, 477.93, 251.83, 477.93, 237.65, 468.07, 226.53, 449.23, 224.02, 432.01, 226.17, 427.88, 239.45, 424.12, 241.24, 422.14, 245.01, 422.14, 250.75]], "area": 1694.409500000001, "iscrowd": 0, "image_id": 564803, "bbox": [420.53, 224.02, 57.4, 38.75], "category_id": 8, "id": 1368684}, {"segmentation": [[2.19, 186.2, 18.71, 187.74, 63.3, 193.5, 64.06, 206.18, 77.52, 208.87, 77.9, 218.87, 83.66, 220.02, 81.36, 241.16, 78.28, 241.16, 78.28, 259.22, 74.44, 260.76, 74.44, 274.59, 71.75, 281.9, 70.21, 286.51, 1.03, 285.74, 0.0, 186.58]], "area": 7207.89545, "iscrowd": 0, "image_id": 113812, "bbox": [0.0, 186.2, 83.66, 100.31], "category_id": 8, "id": 1368813}, {"segmentation": [[161.95, 293.1, 164.17, 298.84, 163.84, 304.59, 164.75, 310.25, 163.68, 312.8, 161.95, 312.96, 156.37, 312.39, 150.54, 312.39, 144.72, 312.39, 140.37, 311.16, 138.31, 309.52, 137.33, 306.4, 135.85, 304.43, 136.1, 303.44, 139.46, 303.36, 140.28, 302.37, 140.45, 297.2, 142.58, 293.43, 148.49, 292.11, 160.64, 292.52]], "area": 481.56064999999955, "iscrowd": 0, "image_id": 217636, "bbox": [135.85, 292.11, 28.9, 20.85], "category_id": 8, "id": 1368935}, {"segmentation": [[127.79, 230.54, 127.79, 230.54, 164.96, 228.14, 159.76, 286.5, 152.17, 283.3, 130.58, 280.5, 129.24, 268.24, 137.25, 267.51, 133.61, 242.27, 120.26, 241.54, 125.6, 230.86], [115.75, 250.5, 115.75, 250.5, 85.22, 255.79, 81.49, 273.23, 88.03, 274.79, 86.78, 285.38, 111.07, 285.38, 110.76, 281.64, 125.09, 277.9, 125.71, 270.12, 115.75, 266.38, 116.99, 250.5]], "area": 2762.6135999999997, "iscrowd": 0, "image_id": 149878, "bbox": [81.49, 228.14, 83.47, 58.36], "category_id": 8, "id": 1368981}, {"segmentation": [[566.29, 120.54, 566.29, 120.54, 566.29, 120.54, 640.0, 117.3, 640.0, 254.02, 518.56, 253.21, 496.72, 263.73, 456.27, 271.01, 452.22, 254.83, 452.22, 254.83, 436.85, 255.64, 417.44, 242.7, 431.19, 207.1, 490.25, 184.45, 490.25, 184.45, 566.29, 122.97]], "area": 21974.736450000004, "iscrowd": 0, "image_id": 255604, "bbox": [417.44, 117.3, 222.56, 153.71], "category_id": 8, "id": 1369169}, {"segmentation": [[314.72, 222.3, 314.41, 217.03, 313.48, 212.99, 314.41, 208.64, 315.03, 199.64, 315.65, 192.19, 318.14, 189.4, 320.62, 186.6, 321.86, 183.81, 323.73, 177.29, 330.25, 153.69, 335.21, 148.1, 342.35, 145.62, 348.25, 145.62, 384.58, 146.24, 402.27, 148.73, 408.48, 151.83, 411.59, 154.62, 413.14, 157.11, 415.31, 163.32, 416.86, 169.53, 421.21, 181.63, 422.14, 189.08, 423.38, 193.12, 425.87, 197.47, 427.73, 204.3, 429.59, 209.26, 429.59, 220.44, 427.42, 233.79, 427.11, 235.34, 423.07, 235.03, 413.14, 235.34, 399.79, 234.1, 398.24, 231.0, 344.53, 228.51, 342.97, 219.2, 342.04, 212.68, 340.18, 209.58, 340.8, 206.16, 342.04, 201.19, 341.42, 199.64, 337.39, 201.81, 336.45, 201.81, 332.42, 202.12, 330.56, 200.88, 328.07, 199.02, 326.83, 199.02, 325.9, 202.43, 325.59, 205.85, 325.9, 210.51, 325.59, 214.23, 325.9, 218.27, 324.66, 220.13, 319.69, 220.75, 315.03, 222.61]], "area": 7951.2504999999965, "iscrowd": 0, "image_id": 20769, "bbox": [313.48, 145.62, 116.11, 89.72], "category_id": 8, "id": 1370762}, {"segmentation": [[38.79, 196.15, 38.15, 202.12, 39.21, 210.21, 42.41, 214.04, 38.15, 224.68, 40.06, 241.29, 39.64, 248.95, 38.15, 254.48, 41.56, 257.68, 39.85, 262.57, 41.34, 277.9, 45.39, 277.05, 54.54, 277.05, 58.37, 276.62, 61.14, 273.01, 64.97, 268.32, 69.23, 266.83, 78.38, 266.83, 97.54, 269.17, 103.29, 274.28, 107.55, 274.5, 111.17, 274.28, 109.89, 263.0, 107.76, 261.51, 107.12, 255.12, 107.97, 249.59, 107.34, 243.2, 107.12, 239.8, 103.93, 236.39, 101.59, 231.71, 102.65, 227.87, 91.16, 225.96, 82.22, 226.81, 83.28, 229.79, 80.51, 235.96, 73.91, 235.33, 72.64, 227.87, 69.87, 225.96, 69.44, 225.96, 63.06, 224.47, 55.82, 222.77, 56.24, 218.51, 52.62, 212.76, 46.88, 208.5, 42.19, 201.05]], "area": 3268.2470499999986, "iscrowd": 0, "image_id": 154140, "bbox": [38.15, 196.15, 73.02, 81.75], "category_id": 8, "id": 1370879}, {"segmentation": [[59.15, 624.82, 52.2, 592.37, 69.2, 569.97, 63.02, 555.3, 59.93, 546.8, 48.34, 538.3, 42.93, 496.59, 77.69, 503.54, 86.96, 448.7, 104.73, 427.84, 201.28, 419.35, 216.73, 381.5, 297.84, 380.72, 314.84, 408.53, 394.4, 420.12, 405.21, 422.43, 420.66, 491.96, 433.79, 498.13, 429.93, 539.85, 426.07, 559.16, 448.47, 569.2, 448.47, 621.73, 445.38, 639.49, 59.15, 637.95]], "area": 83375.02155000002, "iscrowd": 0, "image_id": 275432, "bbox": [42.93, 380.72, 405.54, 258.77], "category_id": 8, "id": 1370918}, {"segmentation": [[1.44, 379.69, 63.28, 376.81, 70.47, 389.75, 73.1, 422.43, 74.79, 460.22, 38.83, 464.54, 28.76, 460.22, 0.0, 454.47, 0.55, 391.83, 0.43, 382.56], [80.92, 404.18, 83.42, 465.98, 99.24, 461.66, 92.04, 474.61, 109.3, 471.73, 112.18, 447.28, 112.18, 417.08, 106.43, 412.76, 81.89, 400.36], [522.57, 433.95, 520.92, 445.52, 506.05, 447.17, 500.27, 439.32, 498.62, 431.89, 486.23, 436.43, 480.45, 436.43, 476.73, 445.11, 468.88, 445.52, 459.38, 441.8, 455.67, 434.78, 449.47, 432.72, 450.3, 419.09, 445.34, 409.17, 439.56, 398.85, 441.62, 397.2, 447.82, 395.13, 451.12, 389.35, 451.95, 385.22, 450.3, 381.09, 439.15, 380.26, 472.6, 379.85, 480.86, 388.52, 482.92, 394.31, 483.75, 398.85, 484.99, 397.2, 499.03, 395.96, 528.77, 398.02, 538.68, 401.33, 539.51, 409.17, 541.99, 417.43, 544.46, 424.46, 541.99, 431.89, 522.99, 433.95, 522.99, 433.95, 522.99, 433.95]], "area": 12141.807700000005, "iscrowd": 0, "image_id": 567318, "bbox": [0.0, 376.81, 544.46, 97.8], "category_id": 8, "id": 1371206}, {"segmentation": [[511.96, 179.63, 531.49, 179.93, 579.81, 183.74, 567.62, 185.65, 545.29, 186.68, 542.94, 189.03, 541.92, 203.72, 543.39, 208.71, 539.42, 208.71, 537.07, 202.98, 535.9, 203.42, 534.28, 208.27, 528.99, 209.44, 522.53, 206.65, 519.74, 200.49, 519.3, 195.2, 516.8, 191.67, 517.69, 187.56, 511.81, 182.13]], "area": 811.6914499999998, "iscrowd": 0, "image_id": 409374, "bbox": [511.81, 179.63, 68.0, 29.81], "category_id": 8, "id": 1371403}, {"segmentation": [[415.51, 156.51, 437.9, 158.5, 446.76, 161.16, 452.74, 167.81, 453.85, 192.18, 453.19, 217.22, 451.63, 235.17, 427.7, 234.73, 429.92, 212.13, 427.04, 202.82, 425.26, 195.73, 423.05, 190.63, 414.18, 158.94, 412.86, 157.17]], "area": 2210.7744499999994, "iscrowd": 0, "image_id": 20769, "bbox": [412.86, 156.51, 40.99, 78.66], "category_id": 8, "id": 1371437}, {"segmentation": [[57.05, 169.93, 57.67, 155.82, 72.39, 150.92, 78.53, 158.89, 84.66, 159.51, 84.66, 163.19, 84.05, 172.39, 80.37, 173.62, 76.07, 168.71, 67.48, 168.71, 61.35, 176.68, 58.89, 176.07, 57.67, 171.78]], "area": 449.25855000000035, "iscrowd": 0, "image_id": 51076, "bbox": [57.05, 150.92, 27.61, 25.76], "category_id": 8, "id": 1372248}, {"segmentation": [[68.12, 391.14, 103.92, 391.5, 105.02, 402.46, 60.08, 401.37, 64.1, 395.52]], "area": 433.1906, "iscrowd": 0, "image_id": 146751, "bbox": [60.08, 391.14, 44.94, 11.32], "category_id": 8, "id": 1372840}, {"segmentation": [[601.21, 217.56, 600.12, 245.17, 598.75, 259.11, 599.3, 262.67, 601.21, 268.68, 603.67, 275.51, 604.49, 277.7, 608.87, 277.7, 610.23, 274.15, 630.19, 276.61, 631.01, 280.71, 636.2, 282.07, 638.93, 244.35, 639.21, 217.02, 625.27, 217.84]], "area": 2240.881899999999, "iscrowd": 0, "image_id": 357428, "bbox": [598.75, 217.02, 40.46, 65.05], "category_id": 8, "id": 1373028}, {"segmentation": [[219.05, 186.96, 229.46, 185.71, 231.55, 182.79, 240.72, 183.21, 242.8, 184.46, 266.55, 184.46, 269.88, 182.37, 292.38, 184.04, 296.97, 186.54, 302.39, 211.12, 298.64, 209.87, 293.22, 214.88, 286.13, 210.71, 286.13, 214.88, 279.88, 218.21, 271.13, 214.04, 254.47, 214.46, 238.63, 212.79, 228.63, 216.96, 224.05, 220.71, 223.21, 226.96, 221.55, 241.13, 197.38, 243.63, 194.05, 248.63, 184.88, 249.46, 174.04, 251.96, 168.63, 251.54, 162.79, 245.71, 149.88, 242.38, 147.79, 229.46, 152.38, 221.54, 172.79, 214.04, 199.88, 195.29]], "area": 5395.782700000001, "iscrowd": 0, "image_id": 579000, "bbox": [147.79, 182.37, 154.6, 69.59], "category_id": 8, "id": 1374284}, {"segmentation": [[107.42, 248.87, 222.18, 249.8, 255.0, 248.4, 254.3, 263.3, 256.4, 267.26, 257.56, 270.52, 257.33, 284.02, 256.86, 285.41, 253.84, 286.58, 251.51, 290.53, 249.65, 293.56, 226.37, 294.72, 210.77, 294.26, 202.39, 298.91, 191.92, 295.89, 187.96, 298.91, 173.29, 296.59, 169.34, 288.44, 164.91, 293.33, 144.43, 296.82, 139.31, 295.19, 120.22, 291.7, 89.96, 293.09, 68.54, 293.33, 63.42, 294.49, 59.0, 288.9, 57.6, 287.04, 60.63, 281.46, 60.63, 275.64, 68.31, 254.45, 90.42, 252.82, 98.1, 252.82, 99.27, 250.73, 105.32, 251.19]], "area": 8530.261049999996, "iscrowd": 0, "image_id": 223121, "bbox": [57.6, 248.4, 199.96, 50.51], "category_id": 8, "id": 1374297}, {"segmentation": [[476.13, 172.5, 466.18, 190.62, 461.84, 192.92, 463.11, 196.24, 480.47, 196.24, 484.3, 194.96, 480.47, 193.18, 474.6, 193.18]], "area": 166.6777000000004, "iscrowd": 0, "image_id": 409956, "bbox": [461.84, 172.5, 22.46, 23.74], "category_id": 9, "id": 1374469}, {"segmentation": [[127.77, 196.78, 142.35, 196.42, 148.72, 194.05, 157.11, 194.96, 163.67, 197.69, 159.29, 201.16, 153.1, 202.25, 127.95, 202.07]], "area": 212.39204999999987, "iscrowd": 0, "image_id": 336675, "bbox": [127.77, 194.05, 35.9, 8.2], "category_id": 9, "id": 1374516}, {"segmentation": [[26.53, 235.93, 40.29, 249.46, 59.42, 256.23, 67.82, 256.7, 67.59, 260.66, 73.19, 260.66, 72.72, 258.1, 128.72, 261.6, 144.82, 264.16, 152.52, 252.03, 156.72, 238.96, 150.89, 238.26, 120.32, 237.33, 117.29, 236.16, 69.69, 230.8, 55.46, 229.63, 55.22, 224.5, 51.26, 221.23, 46.36, 222.16, 45.42, 224.96, 44.96, 228.23, 44.96, 228.46, 30.96, 231.03]], "area": 3055.476300000002, "iscrowd": 0, "image_id": 501358, "bbox": [26.53, 221.23, 130.19, 42.93], "category_id": 9, "id": 1375327}, {"segmentation": [[594.0, 250.55, 599.66, 253.74, 602.48, 261.16, 603.19, 279.56, 589.04, 280.97, 570.3, 278.85, 574.9, 216.95, 583.74, 216.95, 591.17, 222.61, 592.94, 227.92, 592.94, 249.49, 594.7, 250.91]], "area": 1511.4544000000049, "iscrowd": 0, "image_id": 336675, "bbox": [570.3, 216.95, 32.89, 64.02], "category_id": 9, "id": 1375435}, {"segmentation": [[352.38, 192.87, 350.33, 192.27, 351.78, 194.8, 354.31, 195.53, 360.47, 195.53, 366.15, 195.41, 368.32, 193.23, 368.32, 191.54, 367.35, 192.99]], "area": 41.37434999999991, "iscrowd": 0, "image_id": 409956, "bbox": [350.33, 191.54, 17.99, 3.99], "category_id": 9, "id": 1375516}, {"segmentation": [[125.24, 204.49, 124.55, 208.99, 122.71, 209.8, 122.24, 211.29, 124.67, 211.99, 129.16, 211.52, 130.43, 210.37, 128.7, 208.99, 127.55, 207.37, 126.28, 205.64]], "area": 28.38940000000003, "iscrowd": 0, "image_id": 2114, "bbox": [122.24, 204.49, 8.19, 7.5], "category_id": 9, "id": 1375875}, {"segmentation": [[579.53, 40.58, 576.0, 41.26, 573.78, 42.12, 568.03, 42.12, 567.17, 42.74, 566.55, 41.75, 566.86, 40.7, 567.72, 39.78, 569.02, 37.92, 570.01, 36.01, 571.8, 34.95, 573.16, 34.89, 573.9, 35.76, 575.2, 36.81, 577.61, 37.74, 579.71, 37.92, 580.52, 39.03, 580.45, 40.21, 579.77, 40.64]], "area": 62.64150000000006, "iscrowd": 0, "image_id": 483948, "bbox": [566.55, 34.89, 13.97, 7.85], "category_id": 9, "id": 1375907}, {"segmentation": [[301.61, 519.66, 302.06, 528.49, 304.8, 529.26, 305.72, 530.02, 304.35, 532.3, 302.82, 533.06, 297.8, 533.67, 294.45, 534.13, 292.63, 534.43, 287.75, 533.97, 285.62, 532.45, 286.54, 529.71, 287.6, 526.97, 287.45, 520.58, 287.45, 517.38, 288.06, 516.47, 290.65, 516.32, 298.56, 516.01, 299.63, 518.14, 299.93, 519.66]], "area": 263.8604999999994, "iscrowd": 0, "image_id": 119093, "bbox": [285.62, 516.01, 20.1, 18.42], "category_id": 9, "id": 1376257}, {"segmentation": [[134.0, 39.89, 134.61, 41.57, 135.69, 44.34, 135.09, 47.72, 135.09, 50.25, 135.21, 53.14, 133.88, 53.02, 130.99, 53.62, 129.31, 53.38, 128.1, 52.78, 127.38, 52.54, 126.77, 51.33, 128.46, 50.85, 129.43, 49.04, 130.03, 48.68, 130.03, 47.48, 130.63, 46.39, 130.63, 45.31, 130.63, 44.58, 130.75, 43.26, 131.35, 42.78, 131.35, 41.93, 131.35, 41.21, 131.72, 40.37, 132.32, 39.52, 134.49, 39.28]], "area": 70.06265000000006, "iscrowd": 0, "image_id": 483948, "bbox": [126.77, 39.28, 8.92, 14.34], "category_id": 9, "id": 1376465}, {"segmentation": [[219.33, 205.21, 228.74, 226.22, 293.96, 229.04, 308.7, 215.56, 308.07, 206.78, 293.33, 208.66, 275.15, 199.88, 242.22, 197.68, 224.03, 199.25, 217.45, 199.56]], "area": 2156.645399999999, "iscrowd": 0, "image_id": 501358, "bbox": [217.45, 197.68, 91.25, 31.36], "category_id": 9, "id": 1376762}, {"segmentation": [[425.66, 197.71, 461.74, 200.25, 488.96, 197.08, 494.03, 197.08, 495.3, 185.69, 497.19, 181.26, 469.34, 186.32, 451.61, 186.95, 438.95, 187.59, 428.82, 184.42, 422.49, 184.42, 420.59, 184.42, 418.69, 192.02, 419.96, 195.18, 423.13, 198.35]], "area": 988.4614500000013, "iscrowd": 0, "image_id": 501358, "bbox": [418.69, 181.26, 78.5, 18.99], "category_id": 9, "id": 1377565}, {"segmentation": [[418.06, 193.12, 411.2, 201.62, 369.5, 200.25, 345.09, 198.05, 343.99, 195.31, 335.21, 188.45, 379.38, 190.65, 418.06, 192.84]], "area": 706.1335000000003, "iscrowd": 0, "image_id": 501358, "bbox": [335.21, 188.45, 82.85, 13.17], "category_id": 9, "id": 1377763}, {"segmentation": [[10.48, 51.23, 10.06, 59.0, 10.34, 60.47, 16.65, 60.05, 17.0, 59.35, 16.79, 58.93, 16.65, 58.65, 14.54, 58.72, 13.21, 58.72, 12.58, 56.97, 11.04, 52.0]], "area": 22.886499999999984, "iscrowd": 0, "image_id": 483948, "bbox": [10.06, 51.23, 6.94, 9.24], "category_id": 9, "id": 1378200}, {"segmentation": [[388.26, 210.81, 396.15, 227.09, 415.88, 234.49, 468.16, 237.45, 495.29, 234.0, 505.65, 225.61, 510.09, 220.68, 508.12, 218.21, 496.77, 219.69, 493.81, 225.61, 483.46, 223.64, 481.48, 217.72, 456.82, 214.76, 418.84, 209.33, 396.64, 206.37, 389.24, 207.36, 388.75, 207.85, 389.74, 211.31]], "area": 2308.3988000000004, "iscrowd": 0, "image_id": 501358, "bbox": [388.26, 206.37, 121.83, 31.08], "category_id": 9, "id": 1378270}, {"segmentation": [[517.37, 175.67, 508.27, 183.84, 497.53, 185.71, 496.37, 184.77, 498.47, 180.11, 480.06, 182.42, 478.24, 171.33, 474.79, 170.78, 464.79, 168.97, 477.33, 165.15, 487.15, 162.06, 493.88, 155.69, 499.33, 154.42, 502.24, 157.33, 503.7, 162.6, 510.6, 165.69, 514.42, 169.15, 518.06, 173.51]], "area": 821.6231499999997, "iscrowd": 0, "image_id": 501358, "bbox": [464.79, 154.42, 53.27, 31.29], "category_id": 9, "id": 1378934}, {"segmentation": [[419.31, 155.32, 384.68, 156.28, 358.72, 175.51, 414.5, 177.44, 444.31, 176.47, 422.19, 161.09]], "area": 1227.7718499999994, "iscrowd": 0, "image_id": 501358, "bbox": [358.72, 155.32, 85.59, 22.12], "category_id": 9, "id": 1379623}, {"segmentation": [[305.7, 158.62, 322.07, 158.8, 335.16, 157.89, 344.06, 152.26, 343.7, 150.98, 338.97, 151.16, 333.7, 145.71, 325.16, 146.44, 319.16, 145.71, 307.34, 150.26, 305.34, 151.53]], "area": 380.5133000000003, "iscrowd": 0, "image_id": 501358, "bbox": [305.34, 145.71, 38.72, 13.09], "category_id": 9, "id": 1379845}, {"segmentation": [[295.02, 165.8, 308.85, 169.64, 318.46, 172.72, 318.46, 180.02, 328.07, 185.01, 336.91, 190.78, 344.21, 196.93, 340.75, 202.69, 330.38, 208.46, 314.62, 208.84, 308.47, 205.77, 305.39, 197.7, 302.7, 188.09, 300.4, 180.79, 296.94, 173.87, 295.02, 171.18], [291.56, 170.79, 303.86, 195.39, 305.78, 204.62, 304.24, 205.77, 293.1, 207.69, 285.02, 204.23, 271.19, 197.7, 264.27, 199.24, 256.58, 199.62, 237.75, 198.85, 231.22, 196.54, 234.29, 193.85, 245.44, 192.7, 253.89, 189.24, 259.27, 189.24, 260.81, 183.86, 264.27, 176.94, 264.27, 186.17, 264.66, 191.16, 266.96, 191.16, 267.73, 180.4, 268.11, 170.79, 272.34, 169.26, 286.56, 169.26]], "area": 2480.203950000001, "iscrowd": 0, "image_id": 501358, "bbox": [231.22, 165.8, 112.99, 43.04], "category_id": 9, "id": 1380236}, {"segmentation": [[275.07, 275.28, 280.2, 274.42, 298.16, 287.82, 294.45, 288.39, 293.88, 289.24, 294.74, 291.81, 290.18, 292.38, 274.79, 280.41]], "area": 186.52255000000002, "iscrowd": 0, "image_id": 171155, "bbox": [274.79, 274.42, 23.37, 17.96], "category_id": 10, "id": 1380778}, {"segmentation": [[179.13, 305.84, 191.55, 305.42, 190.31, 333.58, 179.13, 333.58, 179.54, 308.32]], "area": 323.99310000000025, "iscrowd": 0, "image_id": 493245, "bbox": [179.13, 305.42, 12.42, 28.16], "category_id": 10, "id": 1381054}, {"segmentation": [[349.09, 318.33, 350.82, 317.12, 350.65, 315.05, 351.51, 314.18, 354.11, 314.18, 356.88, 316.43, 365.53, 326.81, 365.01, 328.37, 369.34, 334.95, 367.26, 335.29, 365.7, 337.37, 364.15, 339.79, 351.69, 326.12, 352.55, 323.01]], "area": 221.0194500000001, "iscrowd": 0, "image_id": 171155, "bbox": [349.09, 314.18, 20.25, 25.61], "category_id": 10, "id": 1381442}, {"segmentation": [[296.92, 104.51, 299.85, 63.05, 323.75, 66.96, 319.85, 104.51]], "area": 931.6859, "iscrowd": 0, "image_id": 164036, "bbox": [296.92, 63.05, 26.83, 41.46], "category_id": 10, "id": 1381515}, {"segmentation": [[35.38, 203.33, 41.56, 203.62, 41.42, 211.42, 39.8, 213.78, 35.38, 215.1, 40.83, 216.58, 41.42, 220.99, 41.56, 224.52, 38.03, 223.2, 31.11, 222.61, 32.14, 204.06, 31.7, 202.15]], "area": 183.49359999999993, "iscrowd": 0, "image_id": 165773, "bbox": [31.11, 202.15, 10.45, 22.37], "category_id": 10, "id": 1381550}, {"segmentation": [[584.25, 115.92, 589.98, 116.0, 589.98, 117.64, 597.68, 118.87, 598.08, 131.39, 582.94, 130.33, 583.19, 116.82]], "area": 201.90814999999913, "iscrowd": 0, "image_id": 47387, "bbox": [582.94, 115.92, 15.14, 15.47], "category_id": 10, "id": 1382072}, {"segmentation": [[166.09, 167.8, 154.56, 168.39, 152.02, 163.11, 154.17, 146.89, 167.65, 147.09, 168.04, 149.24]], "area": 295.7948, "iscrowd": 0, "image_id": 111759, "bbox": [152.02, 146.89, 16.02, 21.5], "category_id": 10, "id": 1382109}, {"segmentation": [[26.87, 71.98, 47.44, 73.85, 53.04, 59.52, 59.28, 60.77, 59.28, 37.08, 64.26, 35.84, 64.26, 17.76, 79.22, 17.14, 77.97, 7.17, 88.57, 6.55, 90.44, 20.26, 110.38, 30.23, 109.76, 38.33, 118.48, 38.33, 115.99, 88.19, 120.35, 105.01, 115.37, 113.74, 109.76, 205.35, 106.64, 230.9, 80.47, 229.66, 47.44, 228.41, 50.55, 202.86, 22.51, 191.64, 17.52, 167.96, 20.01, 130.57, 43.7, 136.17, 45.57, 128.7, 22.51, 116.86, 23.75, 85.69]], "area": 16296.2651, "iscrowd": 0, "image_id": 334097, "bbox": [17.52, 6.55, 102.83, 224.35], "category_id": 10, "id": 1382110}, {"segmentation": [[26.17, 566.23, 31.64, 565.58, 31.64, 551.43, 24.88, 551.43]], "area": 88.72425000000048, "iscrowd": 0, "image_id": 75308, "bbox": [24.88, 551.43, 6.76, 14.8], "category_id": 10, "id": 1382154}, {"segmentation": [[599.27, 212.67, 605.07, 212.12, 605.61, 225.73, 599.99, 225.91, 599.27, 224.28, 598.72, 222.1, 598.72, 220.47, 598.54, 213.03]], "area": 87.4553000000004, "iscrowd": 0, "image_id": 111831, "bbox": [598.54, 212.12, 7.07, 13.79], "category_id": 10, "id": 1382446}, {"segmentation": [[544.08, 120.46, 543.45, 140.18, 541.54, 141.61, 538.04, 141.77, 532.95, 141.45, 536.77, 138.75, 540.74, 136.84, 540.43, 135.57, 536.45, 134.77, 535.18, 134.29, 538.04, 132.39, 540.59, 130.96, 540.59, 129.21, 539.79, 128.09, 534.7, 126.19, 533.59, 124.28, 534.39, 122.69, 537.25, 122.53, 539.15, 122.37, 540.11, 119.99, 542.81, 119.99]], "area": 133.5967000000009, "iscrowd": 0, "image_id": 456653, "bbox": [532.95, 119.99, 11.13, 21.78], "category_id": 10, "id": 1382462}, {"segmentation": [[373.97, 329.49, 362.32, 312.94, 362.32, 311.1, 364.57, 308.85, 366.61, 310.89, 369.88, 308.44, 374.38, 315.19, 377.65, 316.21, 378.67, 318.86, 381.94, 326.22, 376.62, 330.1, 374.38, 329.7]], "area": 205.7948, "iscrowd": 0, "image_id": 171155, "bbox": [362.32, 308.44, 19.62, 21.66], "category_id": 10, "id": 1382741}, {"segmentation": [[632.77, 85.42, 638.22, 84.86, 640.0, 86.17, 639.35, 119.65, 636.34, 120.77, 634.09, 122.84, 630.89, 120.4, 631.83, 85.8]], "area": 298.35175000000004, "iscrowd": 0, "image_id": 47387, "bbox": [630.89, 84.86, 9.11, 37.98], "category_id": 10, "id": 1383003}, {"segmentation": [[205.72, 284.97, 207.92, 286.9, 209.94, 287.52, 210.38, 298.5, 209.32, 299.73, 208.27, 300.79, 207.22, 301.4, 204.23, 300.61, 202.03, 300.0, 201.24, 297.89, 201.33, 287.6, 203.35, 286.64]], "area": 123.49424999999987, "iscrowd": 0, "image_id": 354277, "bbox": [201.24, 284.97, 9.14, 16.43], "category_id": 10, "id": 1383152}, {"segmentation": [[224.76, 300.03, 214.79, 299.78, 214.66, 288.15, 225.27, 288.15, 225.27, 299.27]], "area": 123.81830000000015, "iscrowd": 0, "image_id": 354277, "bbox": [214.66, 288.15, 10.61, 11.88], "category_id": 10, "id": 1383170}, {"segmentation": [[640.0, 240.64, 628.02, 237.86, 630.01, 218.38, 640.0, 217.98]], "area": 232.63800000000037, "iscrowd": 0, "image_id": 165347, "bbox": [628.02, 217.98, 11.98, 22.66], "category_id": 10, "id": 1383288}, {"segmentation": [[379.99, 494.05, 383.17, 492.14, 397.56, 491.51, 400.94, 492.78, 402.21, 520.29, 401.16, 521.14, 383.8, 520.93, 383.8, 519.45, 382.32, 518.39, 381.05, 513.73, 381.05, 511.4, 382.53, 510.13, 383.59, 504.21, 381.26, 501.67, 379.14, 499.76, 378.93, 495.74]], "area": 582.9351499999995, "iscrowd": 0, "image_id": 358100, "bbox": [378.93, 491.51, 23.28, 29.63], "category_id": 10, "id": 1383296}, {"segmentation": [[43.13, 305.99, 53.99, 307.37, 51.92, 343.93, 50.54, 342.55, 41.06, 334.96, 42.09, 328.41, 50.54, 329.1, 50.72, 327.37, 45.89, 325.47, 41.06, 322.89, 41.92, 319.44, 44.51, 318.23, 50.54, 318.92, 51.23, 317.02, 46.23, 314.95, 43.99, 313.75, 41.58, 311.68, 41.75, 308.23, 42.61, 306.68]], "area": 311.2428999999998, "iscrowd": 0, "image_id": 334097, "bbox": [41.06, 305.99, 12.93, 37.94], "category_id": 10, "id": 1383380}, {"segmentation": [[206.84, 351.96, 206.38, 325.17, 200.44, 324.4, 196.33, 326.69, 195.27, 328.06, 195.73, 332.78, 200.44, 333.23, 200.44, 335.21, 196.64, 334.76, 194.81, 339.32, 195.57, 342.22, 196.33, 342.82, 200.44, 342.52, 200.9, 344.8, 195.73, 345.11, 195.12, 346.63, 194.66, 349.67, 196.18, 352.26, 198.47, 352.57, 202.58, 352.87, 206.23, 352.41]], "area": 284.10614999999996, "iscrowd": 0, "image_id": 334097, "bbox": [194.66, 324.4, 12.18, 28.47], "category_id": 10, "id": 1383491}, {"segmentation": [[631.11, 226.06, 611.15, 229.62, 613.47, 258.68, 617.57, 260.64, 621.31, 261.35, 625.94, 258.5, 627.37, 258.68, 627.55, 262.6, 637.0, 262.96, 635.39, 227.12]], "area": 798.5719499999997, "iscrowd": 0, "image_id": 354277, "bbox": [611.15, 226.06, 25.85, 36.9], "category_id": 10, "id": 1383625}, {"segmentation": [[18.75, 106.16, 40.13, 109.05, 35.51, 128.71, 15.86, 121.77]], "area": 380.23785000000015, "iscrowd": 0, "image_id": 374977, "bbox": [15.86, 106.16, 24.27, 22.55], "category_id": 10, "id": 1384022}, {"segmentation": [[371.99, 449.86, 374.24, 449.44, 376.06, 450.28, 376.76, 454.48, 376.2, 456.02, 374.94, 456.3, 374.1, 456.3, 371.71, 456.3, 370.59, 454.76, 370.31, 453.08, 370.45, 451.54]], "area": 36.316700000000054, "iscrowd": 0, "image_id": 116740, "bbox": [370.31, 449.44, 6.45, 6.86], "category_id": 10, "id": 1384237}, {"segmentation": [[499.39, 127.21, 507.21, 127.21, 510.67, 132.73, 515.02, 135.89, 515.42, 139.06, 514.23, 139.85, 506.32, 139.46, 510.27, 143.81, 513.44, 146.19, 517.0, 150.14, 513.44, 150.94, 505.92, 150.94, 511.46, 154.9, 514.63, 158.46, 514.63, 160.04, 513.84, 160.44, 499.98, 161.23]], "area": 408.3212499999999, "iscrowd": 0, "image_id": 482024, "bbox": [499.39, 127.21, 17.61, 34.02], "category_id": 10, "id": 1384562}, {"segmentation": [[356.57, 456.14, 357.66, 459.13, 360.35, 459.68, 362.12, 459.07, 362.91, 456.39, 362.24, 454.99, 361.02, 453.7, 359.62, 453.34, 357.97, 453.34, 356.57, 454.92]], "area": 30.987850000000076, "iscrowd": 0, "image_id": 116740, "bbox": [356.57, 453.34, 6.34, 6.34], "category_id": 10, "id": 1384716}, {"segmentation": [[438.5, 326.9, 437.27, 330.17, 435.64, 329.35, 435.64, 327.72, 434.21, 326.9, 432.16, 327.31, 429.51, 327.31, 429.51, 322.4, 434.62, 321.59, 434.82, 319.95, 431.14, 320.36, 430.32, 320.56, 429.1, 317.09, 434.41, 316.27, 434.41, 314.64, 428.48, 314.23, 428.48, 309.73, 433.19, 309.32, 435.23, 305.44, 436.25, 306.05, 438.29, 326.08]], "area": 140.87795000000034, "iscrowd": 0, "image_id": 171155, "bbox": [428.48, 305.44, 10.02, 24.73], "category_id": 10, "id": 1384815}, {"segmentation": [[557.39, 269.11, 552.4, 268.17, 552.0, 270.19, 547.55, 270.33, 547.96, 248.62, 557.93, 249.56, 556.99, 268.84]], "area": 197.08854999999969, "iscrowd": 0, "image_id": 47387, "bbox": [547.55, 248.62, 10.38, 21.71], "category_id": 10, "id": 1384867}, {"segmentation": [[235.26, 556.56, 235.12, 549.36, 234.9, 547.56, 234.47, 547.05, 232.96, 546.62, 232.6, 546.55, 230.73, 547.12, 229.57, 549.43, 230.15, 557.13, 230.8, 558.93, 234.76, 558.28, 235.84, 556.99]], "area": 60.52534999999995, "iscrowd": 0, "image_id": 75308, "bbox": [229.57, 546.55, 6.27, 12.38], "category_id": 10, "id": 1385338}, {"segmentation": [[603.93, 452.27, 603.93, 459.39, 618.7, 459.66, 618.96, 452.14]], "area": 109.077100000001, "iscrowd": 0, "image_id": 181149, "bbox": [603.93, 452.14, 15.03, 7.52], "category_id": 10, "id": 1385541}, {"segmentation": [[100.3, 114.85, 108.25, 112.2, 111.43, 111.14, 113.55, 110.08, 116.2, 113.26, 117.26, 118.04, 120.97, 145.07, 97.65, 145.6, 97.65, 110.61]], "area": 691.7665999999998, "iscrowd": 0, "image_id": 111759, "bbox": [97.65, 110.08, 23.32, 35.52], "category_id": 10, "id": 1385765}, {"segmentation": [[516.69, 518.79, 495.46, 519.41, 494.84, 480.33, 510.54, 479.71]], "area": 723.7109000000022, "iscrowd": 0, "image_id": 358100, "bbox": [494.84, 479.71, 21.85, 39.7], "category_id": 10, "id": 1386039}, {"segmentation": [[237.35, 389.62, 232.47, 414.0, 213.45, 409.13, 213.94, 386.2, 214.91, 381.81, 233.45, 382.3]], "area": 632.9146999999998, "iscrowd": 0, "image_id": 116740, "bbox": [213.45, 381.81, 23.9, 32.19], "category_id": 10, "id": 1386232}, {"segmentation": [[401.4, 71.97, 399.08, 72.07, 395.91, 72.49, 395.06, 75.81, 393.5, 77.84, 393.83, 80.4, 395.63, 81.68, 397.28, 81.63, 398.66, 78.84, 399.27, 77.04, 400.79, 76.28, 401.97, 74.24]], "area": 49.55170000000008, "iscrowd": 0, "image_id": 172059, "bbox": [393.5, 71.97, 8.47, 9.71], "category_id": 10, "id": 1386599}, {"segmentation": [[510.45, 477.49, 511.05, 497.5, 516.27, 497.65, 516.72, 496.01, 516.27, 494.36, 514.63, 493.77, 514.63, 493.02, 516.57, 493.47, 516.87, 492.12, 516.57, 488.99, 515.08, 488.09, 515.08, 487.34, 516.27, 487.04, 516.13, 484.06, 514.48, 483.16, 514.63, 482.42, 516.13, 481.67, 516.57, 480.62, 516.27, 477.79, 515.68, 477.04, 511.5, 476.59]], "area": 111.55220000000016, "iscrowd": 0, "image_id": 181149, "bbox": [510.45, 476.59, 6.42, 21.06], "category_id": 10, "id": 1386698}, {"segmentation": [[311.46, 152.71, 312.95, 133.34, 322.39, 135.08, 321.65, 151.22, 312.45, 153.21]], "area": 177.6897499999999, "iscrowd": 0, "image_id": 510314, "bbox": [311.46, 133.34, 10.93, 19.87], "category_id": 10, "id": 1386769}, {"segmentation": [[329.66, 160.21, 322.12, 159.3, 322.42, 152.82, 323.78, 144.22, 329.66, 144.67]], "area": 106.41090000000047, "iscrowd": 0, "image_id": 510314, "bbox": [322.12, 144.22, 7.54, 15.99], "category_id": 10, "id": 1386959}, {"segmentation": [[439.03, 305.88, 444.96, 305.48, 446.31, 327.32, 439.44, 326.91]], "area": 137.17960000000014, "iscrowd": 0, "image_id": 171155, "bbox": [439.03, 305.48, 7.28, 21.84], "category_id": 10, "id": 1387090}, {"segmentation": [[447.22, 334.02, 462.66, 334.02, 460.11, 327.7, 444.18, 327.58]], "area": 99.90259999999994, "iscrowd": 0, "image_id": 171155, "bbox": [444.18, 327.58, 18.48, 6.44], "category_id": 10, "id": 1387205}, {"segmentation": [[598.0, 277.77, 596.17, 268.41, 611.63, 265.16, 614.48, 291.6, 616.92, 315.2, 618.34, 326.19, 604.51, 327.61, 602.88, 322.73]], "area": 902.4667999999999, "iscrowd": 0, "image_id": 171155, "bbox": [596.17, 265.16, 22.17, 62.45], "category_id": 10, "id": 1387280}, {"segmentation": [[285.84, 314.97, 281.53, 307.42, 258.88, 284.76, 265.35, 275.06, 299.87, 294.47]], "area": 681.8050500000006, "iscrowd": 0, "image_id": 171155, "bbox": [258.88, 275.06, 40.99, 39.91], "category_id": 10, "id": 1387354}, {"segmentation": [[236.64, 547.38, 241.51, 548.14, 240.9, 559.56, 236.34, 560.17]], "area": 57.10919999999985, "iscrowd": 0, "image_id": 75308, "bbox": [236.34, 547.38, 5.17, 12.79], "category_id": 10, "id": 1387417}, {"segmentation": [[108.17, 548.44, 106.12, 546.3, 103.58, 547.08, 103.58, 549.9, 103.19, 551.17, 103.68, 552.34, 103.68, 554.68, 102.9, 556.05, 103.29, 557.61, 102.8, 560.34, 104.56, 562.39, 107.88, 561.9, 108.46, 548.73]], "area": 72.34829999999985, "iscrowd": 0, "image_id": 75308, "bbox": [102.8, 546.3, 5.66, 16.09], "category_id": 10, "id": 1387501}, {"segmentation": [[210.99, 358.17, 208.83, 357.3, 206.67, 337.43, 215.74, 341.32, 216.17, 356.87]], "area": 146.72750000000008, "iscrowd": 0, "image_id": 171155, "bbox": [206.67, 337.43, 9.5, 20.74], "category_id": 10, "id": 1387615}, {"segmentation": [[622.75, 359.97, 612.54, 359.19, 612.54, 366.45, 619.61, 366.45, 618.82, 368.02, 614.11, 368.22, 614.5, 375.68, 620.0, 375.48, 621.38, 376.46, 624.91, 375.87]], "area": 158.2731999999997, "iscrowd": 0, "image_id": 171155, "bbox": [612.54, 359.19, 12.37, 17.27], "category_id": 10, "id": 1387720}, {"segmentation": [[61.63, 223.44, 64.67, 220.93, 63.62, 215.12, 65.86, 213.93, 64.01, 211.94, 63.48, 211.55, 61.11, 209.57, 59.65, 210.49, 60.84, 223.18]], "area": 49.6751, "iscrowd": 0, "image_id": 409374, "bbox": [59.65, 209.57, 6.21, 13.87], "category_id": 11, "id": 1387754}, {"segmentation": [[149.67, 143.22, 150.09, 140.01, 151.48, 139.69, 154.16, 139.9, 154.69, 142.25, 154.8, 144.18, 153.84, 145.14, 150.09, 145.25]], "area": 24.889750000000006, "iscrowd": 0, "image_id": 51076, "bbox": [149.67, 139.69, 5.13, 5.56], "category_id": 13, "id": 1388466}, {"segmentation": [[215.0, 279.79, 209.05, 279.79, 209.95, 278.17, 210.85, 263.55, 208.69, 259.03, 186.12, 257.05, 187.2, 275.46, 180.16, 275.46, 179.26, 257.59, 168.07, 255.24, 167.89, 252.72, 175.65, 252.9, 220.78, 255.42, 217.17, 264.99, 214.64, 268.06, 219.52, 279.79]], "area": 474.29814999999996, "iscrowd": 0, "image_id": 531032, "bbox": [167.89, 252.72, 52.89, 27.07], "category_id": 15, "id": 1390733}, {"segmentation": [[370.71, 244.62, 388.2, 243.43, 388.6, 241.04, 394.96, 241.04, 394.96, 242.63, 447.04, 238.66, 446.64, 258.53, 394.56, 260.92, 394.56, 269.67, 445.85, 266.09, 444.26, 270.46, 393.37, 275.23, 396.55, 295.51, 390.98, 295.11, 374.68, 294.71, 375.08, 288.35, 370.31, 275.63, 365.54, 275.63, 360.37, 272.85, 385.42, 269.27, 385.42, 262.11, 369.52, 263.7]], "area": 2360.4682500000004, "iscrowd": 0, "image_id": 530876, "bbox": [360.37, 238.66, 86.67, 56.85], "category_id": 15, "id": 1390914}, {"segmentation": [[173.8, 39.86, 316.49, 38.06, 315.6, 146.65, 311.11, 145.76, 310.21, 125.12, 256.37, 125.12, 256.37, 143.96, 253.67, 144.86, 249.19, 144.86, 246.49, 125.12, 171.11, 126.91, 163.03, 104.47, 169.31, 90.12, 163.03, 76.65, 160.34, 69.47, 162.13, 65.88, 158.54, 51.53, 163.93, 42.55, 172.01, 42.55]], "area": 13402.632250000004, "iscrowd": 0, "image_id": 276420, "bbox": [158.54, 38.06, 157.95, 108.59], "category_id": 15, "id": 1390973}, {"segmentation": [[238.39, 240.3, 233.39, 242.54, 234.89, 251.53, 235.89, 253.65, 237.39, 254.78, 244.0, 252.41, 245.63, 254.9, 245.63, 259.4, 246.13, 261.64, 248.25, 261.39, 248.25, 261.14, 247.25, 257.4, 247.0, 254.65, 256.61, 247.04, 255.61, 244.79, 252.62, 245.29, 251.62, 246.29, 251.37, 246.79, 250.87, 247.29, 248.12, 247.66, 247.87, 247.66, 245.75, 248.04, 245.13, 248.16, 244.38, 248.16, 244.25, 248.41, 243.51, 248.54, 242.51, 248.04, 242.13, 246.66]], "area": 172.67000000000027, "iscrowd": 0, "image_id": 245441, "bbox": [233.39, 240.3, 23.22, 21.34], "category_id": 15, "id": 1391692}, {"segmentation": [[116.7, 316.13, 143.42, 315.81, 143.42, 323.53, 116.38, 322.89], [157.59, 315.81, 171.43, 315.81, 172.07, 320.31, 166.6, 321.92, 158.55, 322.57], [84.5, 316.77, 96.09, 317.09, 97.06, 316.77, 97.7, 323.21, 94.16, 326.43, 93.52, 334.16, 86.76, 334.16, 89.01, 325.47, 83.54, 324.18], [104.79, 315.81, 109.29, 317.74, 109.62, 321.28, 102.86, 322.89]], "area": 469.0767999999996, "iscrowd": 0, "image_id": 22265, "bbox": [83.54, 315.81, 88.53, 18.35], "category_id": 15, "id": 1393353}, {"segmentation": [[215.85, 58.47, 215.85, 65.27, 216.12, 66.09, 220.47, 65.81, 222.92, 64.18, 234.89, 64.18, 235.43, 65.81, 237.88, 65.81, 237.88, 63.64, 238.97, 63.37, 235.16, 60.92, 235.16, 57.93, 218.03, 57.93, 216.12, 57.93]], "area": 142.16705000000013, "iscrowd": 0, "image_id": 412289, "bbox": [215.85, 57.93, 23.12, 8.16], "category_id": 15, "id": 1394147}, {"segmentation": [[495.92, 235.24, 639.14, 231.28, 640.0, 288.7, 520.34, 293.98, 491.96, 294.64, 490.64, 238.54]], "area": 8684.2932, "iscrowd": 0, "image_id": 1431, "bbox": [490.64, 231.28, 149.36, 63.36], "category_id": 15, "id": 1394407}, {"segmentation": [[27.74, 253.03, 52.0, 242.99, 91.03, 229.72, 89.51, 236.92, 89.7, 250.94, 97.66, 256.44, 95.95, 266.67, 95.38, 274.25, 96.52, 279.55, 105.05, 286.94, 104.86, 294.33, 75.87, 304.94, 69.81, 307.59, 57.3, 303.99, 39.11, 300.2, 28.5, 295.47, 12.21, 290.73, 21.11, 275.76, 20.92, 274.63, 16.76, 270.84, 6.52, 259.47, 0.08, 261.17]], "area": 4715.9651, "iscrowd": 0, "image_id": 205931, "bbox": [0.08, 229.72, 104.97, 77.87], "category_id": 15, "id": 1394483}, {"segmentation": [[346.65, 39.38, 398.43, 48.01, 398.29, 55.02, 346.52, 47.2, 345.84, 39.24], [434.02, 54.08, 434.83, 59.6, 451.15, 63.24, 451.15, 60.68, 446.29, 55.29, 434.7, 54.62], [319.82, 41.67, 318.2, 34.12, 311.33, 34.12, 306.2, 38.71, 305.53, 39.38, 319.55, 41.27]], "area": 548.7094500000005, "iscrowd": 0, "image_id": 524522, "bbox": [305.53, 34.12, 145.62, 29.12], "category_id": 15, "id": 1394942}, {"segmentation": [[367.36, 285.9, 356.13, 286.33, 356.13, 293.68, 354.4, 293.68, 353.54, 287.63, 322.43, 286.76, 322.43, 294.97, 319.84, 294.97, 317.68, 289.36, 296.08, 287.2, 294.78, 284.17, 299.1, 282.88, 304.29, 281.15, 349.22, 281.15, 372.98, 279.85, 373.41, 279.85, 369.96, 283.31], [370.66, 273.12, 362.88, 273.12, 362.45, 279.16, 359.86, 279.16, 359.86, 273.98, 328.75, 273.55, 328.75, 278.3, 327.45, 279.16, 327.02, 274.84, 301.53, 273.55, 302.39, 267.5, 314.06, 267.07, 354.67, 266.64, 375.41, 265.77, 376.27, 270.09]], "area": 1042.378400000002, "iscrowd": 0, "image_id": 385701, "bbox": [294.78, 265.77, 81.49, 29.2], "category_id": 15, "id": 1395290}, {"segmentation": [[511.6, 256.79, 509.96, 260.9, 523.64, 261.44, 527.47, 275.4, 519.53, 275.67, 520.63, 280.6, 538.96, 278.41, 537.86, 274.03, 532.12, 274.31, 530.48, 261.72, 550.45, 261.99, 552.61, 255.52], [557.26, 255.52, 563.41, 255.19, 564.24, 258.02, 557.43, 260.34]], "area": 409.4403500000004, "iscrowd": 0, "image_id": 531032, "bbox": [509.96, 255.19, 54.28, 25.41], "category_id": 15, "id": 1395862}, {"segmentation": [[74.38, 321.05, 86.36, 313.26, 108.53, 312.06, 109.13, 324.05, 122.31, 330.04, 92.35, 333.63, 76.18, 321.65], [130.1, 312.06, 150.47, 308.47, 151.67, 309.67, 159.46, 327.04, 125.31, 330.04, 119.91, 330.64, 129.5, 313.26]], "area": 1143.0832000000003, "iscrowd": 0, "image_id": 41577, "bbox": [74.38, 308.47, 85.08, 25.16], "category_id": 15, "id": 1395965}, {"segmentation": [[45.23, 293.12, 48.59, 292.73, 50.66, 292.86, 53.63, 292.86, 54.54, 292.73, 57.77, 292.73, 59.97, 293.51, 61.27, 297.52, 58.81, 297.91, 58.03, 293.9, 55.57, 295.84, 55.57, 297.78, 55.7, 300.88, 55.7, 302.95, 53.51, 302.69, 53.51, 300.49, 53.51, 297.52, 53.25, 297.52, 51.95, 298.55, 51.95, 300.88, 51.57, 304.24, 51.44, 306.83, 49.37, 307.35, 49.37, 304.63, 49.88, 301.79, 50.01, 299.72, 49.75, 298.16, 47.43, 298.16, 43.68, 297.26, 42.77, 294.67, 43.93, 293.12]], "area": 106.38134999999984, "iscrowd": 0, "image_id": 369201, "bbox": [42.77, 292.73, 18.5, 14.62], "category_id": 15, "id": 1397751}, {"segmentation": [[294.4, 265.67, 290.32, 265.67, 311.25, 266.69, 311.77, 271.29, 302.57, 273.33, 304.11, 293.76, 301.55, 293.76, 298.49, 273.84, 295.43, 271.29, 290.83, 270.27, 288.79, 268.23, 283.17, 266.18, 291.34, 265.16], [317.38, 267.21, 366.91, 268.74, 365.38, 272.31, 351.59, 271.8, 350.06, 291.2, 349.55, 296.31, 345.98, 297.33, 345.46, 274.35, 335.25, 272.31, 319.42, 268.23]], "area": 506.61929999999995, "iscrowd": 0, "image_id": 531032, "bbox": [283.17, 265.16, 83.74, 32.17], "category_id": 15, "id": 1397885}, {"segmentation": [[579.95, 331.71, 583.29, 327.53, 585.8, 324.19, 588.3, 322.1, 592.9, 319.18, 597.07, 317.92, 603.76, 317.51, 610.86, 318.76, 616.29, 320.85, 619.63, 321.26, 620.88, 320.01, 621.72, 317.92, 621.72, 313.33, 620.88, 306.23, 608.35, 296.2, 602.5, 293.28, 592.48, 291.61, 584.96, 292.03, 578.28, 298.71, 576.19, 301.63, 568.67, 306.65, 561.15, 309.57, 556.56, 311.66, 550.29, 315.83, 547.79, 316.67, 547.37, 317.09, 547.37, 318.34, 550.29, 319.59, 554.05, 319.59, 563.24, 319.59, 570.34, 319.59, 575.77, 319.59, 578.7, 319.59, 583.29, 319.59, 584.96, 319.59, 586.21, 320.01, 582.87, 321.26, 577.86, 325.44, 575.77, 327.95, 574.94, 331.71]], "area": 1412.9658499999991, "iscrowd": 0, "image_id": 503212, "bbox": [547.37, 291.61, 74.35, 40.1], "category_id": 16, "id": 1399196}, {"segmentation": [[25.88, 73.53, 29.65, 72.02, 30.9, 73.78, 31.65, 75.28, 29.9, 76.54, 32.41, 79.55, 33.16, 85.57, 32.16, 90.83, 29.65, 88.33, 26.84, 83.95, 25.83, 82.51, 22.44, 82.44, 17.47, 84.53, 14.02, 86.54, 13.15, 86.47, 13.44, 84.81, 20.07, 80.35, 20.21, 77.61, 18.63, 75.59, 15.67, 74.01, 13.73, 71.85, 11.71, 69.11, 12.0, 67.38, 14.16, 67.6, 16.32, 68.39, 19.56, 68.6, 22.95, 69.69, 24.39, 71.85, 25.83, 73.14]], "area": 221.83185000000006, "iscrowd": 0, "image_id": 95281, "bbox": [11.71, 67.38, 21.45, 23.45], "category_id": 16, "id": 1399592}, {"segmentation": [[500.15, 177.49, 500.85, 173.73, 502.73, 171.85, 507.43, 172.32, 510.95, 175.14, 510.95, 178.43, 508.84, 178.43, 506.49, 175.61, 504.14, 175.61, 502.5, 178.9, 500.85, 179.37, 499.68, 178.19]], "area": 48.9252500000001, "iscrowd": 0, "image_id": 409956, "bbox": [499.68, 171.85, 11.27, 7.52], "category_id": 16, "id": 1399911}, {"segmentation": [[25.88, 26.37, 30.61, 28.81, 34.12, 27.89, 36.26, 28.35, 39.61, 33.54, 40.38, 32.32, 41.14, 31.41, 43.73, 31.25, 44.8, 32.17, 45.11, 32.47, 47.09, 33.69, 42.21, 35.83, 46.63, 37.66, 46.48, 52.16, 40.53, 42.39, 36.41, 42.85, 26.33, 46.97, 33.81, 39.95, 33.05, 36.75, 28.93, 34.15]], "area": 231.92080000000004, "iscrowd": 0, "image_id": 95281, "bbox": [25.88, 26.37, 21.21, 25.79], "category_id": 16, "id": 1399941}, {"segmentation": [[539.93, 302.6, 525.38, 306.82, 520.68, 301.19, 518.33, 294.14, 518.33, 290.39, 519.74, 285.22, 525.38, 282.41, 530.54, 280.06, 539.46, 276.77, 548.85, 274.42, 558.24, 273.96, 565.75, 274.89, 578.43, 277.71, 578.9, 279.59, 573.27, 280.53, 566.22, 282.41, 559.18, 284.75, 557.3, 288.04, 559.18, 289.92, 558.71, 290.39, 544.16, 301.19]], "area": 1032.6261999999995, "iscrowd": 0, "image_id": 537924, "bbox": [518.33, 273.96, 60.57, 32.86], "category_id": 18, "id": 1403114}, {"segmentation": [[559.84, 429.47, 535.19, 434.24, 510.94, 444.18, 495.03, 442.19, 487.88, 434.63, 490.26, 424.7, 495.03, 421.52, 521.27, 411.18, 541.55, 404.82, 547.51, 400.84, 548.31, 390.11, 545.52, 378.18, 554.67, 365.06, 545.92, 358.7, 540.36, 351.55, 539.16, 345.98, 550.69, 346.38, 566.59, 352.34, 574.15, 347.97, 596.81, 349.96, 611.52, 356.71, 631.0, 366.26, 639.74, 366.65, 640.0, 472.01, 631.79, 474.39, 621.06, 475.19, 607.54, 473.6, 593.63, 472.4, 584.48, 473.2, 572.95, 468.43, 561.82, 471.61, 533.99, 470.41, 519.28, 465.25, 512.53, 458.89, 512.53, 450.93, 519.28, 446.16, 528.43, 445.77, 545.92, 443.38, 572.16, 441.39, 573.75, 438.21, 564.21, 434.24, 560.63, 427.88]], "area": 13022.916850000003, "iscrowd": 0, "image_id": 374800, "bbox": [487.88, 345.98, 152.12, 129.21], "category_id": 18, "id": 1403200}, {"segmentation": [[482.54, 256.47, 481.75, 248.6, 482.28, 241.52, 487.26, 235.48, 488.84, 232.6, 490.41, 229.45, 490.41, 215.55, 489.1, 208.73, 487.26, 205.58, 483.33, 206.63, 480.7, 210.3, 480.7, 215.81, 480.7, 224.21, 481.23, 229.19, 480.7, 230.5, 479.92, 231.55, 477.82, 232.34, 475.98, 233.91, 477.03, 236.27, 478.34, 238.63, 478.61, 242.3, 476.25, 248.6, 475.2, 253.58, 479.13, 256.73], [496.24, 216.43, 497.25, 203.3, 497.59, 199.6, 494.56, 194.21, 498.93, 193.54, 502.64, 200.94, 497.59, 217.44]], "area": 479.50785000000036, "iscrowd": 0, "image_id": 338086, "bbox": [475.2, 193.54, 27.44, 63.19], "category_id": 19, "id": 1403404}, {"segmentation": [[557.83, 315.85, 566.2, 306.22, 568.71, 307.48, 579.18, 306.64, 582.53, 316.27, 578.76, 315.43, 577.5, 312.92, 577.5, 317.53, 574.99, 317.53, 575.83, 312.92, 571.64, 313.34, 567.45, 313.34, 569.13, 317.11, 568.29, 317.11, 567.45, 315.43, 564.11, 317.11, 566.2, 314.18, 565.78, 312.92, 563.69, 312.92, 560.76, 317.53, 558.66, 316.69]], "area": 148.72979999999896, "iscrowd": 0, "image_id": 168001, "bbox": [557.83, 306.22, 24.7, 11.31], "category_id": 19, "id": 1404435}, {"segmentation": [[246.52, 313.52, 247.86, 308.48, 249.64, 306.25, 254.53, 303.88, 255.57, 303.73, 257.06, 304.77, 257.65, 307.73, 257.65, 312.04, 253.35, 313.37, 250.83, 313.82, 249.79, 313.97, 246.97, 314.11]], "area": 82.55649999999993, "iscrowd": 0, "image_id": 168001, "bbox": [246.52, 303.73, 11.13, 10.38], "category_id": 19, "id": 1404541}, {"segmentation": [[586.79, 250.25, 619.15, 245.93, 636.4, 243.78, 638.56, 474.61, 559.82, 473.53, 550.11, 449.8, 547.96, 415.28, 553.35, 395.87, 556.58, 386.16, 560.9, 373.21, 563.06, 363.51, 567.37, 350.56, 574.92, 336.54, 582.47, 321.44, 587.87, 308.49, 591.1, 298.79, 592.18, 279.37, 590.02, 267.51]], "area": 15644.813449999992, "iscrowd": 0, "image_id": 449985, "bbox": [547.96, 243.78, 90.6, 230.83], "category_id": 21, "id": 1407217}, {"segmentation": [[43.62, 202.74, 51.75, 210.61, 56.47, 210.87, 61.72, 208.51, 65.65, 207.98, 72.21, 210.08, 77.72, 210.87, 82.44, 211.13, 86.64, 210.08, 89.78, 207.2, 92.67, 201.95, 95.29, 200.9, 95.03, 207.2, 91.88, 214.28, 87.95, 216.64, 81.92, 218.48, 76.41, 222.93, 83.75, 231.07, 88.74, 227.92, 94.24, 226.08, 96.6, 226.08, 102.64, 228.18, 106.31, 231.33, 108.14, 236.57, 108.41, 241.03, 118.64, 248.38, 129.39, 262.28, 92.14, 270.93, 81.92, 262.54, 78.51, 262.02, 62.51, 276.97, 58.83, 277.49, 57.26, 275.39, 53.85, 267.26, 49.92, 269.36, 47.03, 269.62, 35.23, 267.26, 34.7, 264.9, 33.92, 256.77, 36.8, 253.36, 42.57, 237.88, 41.26, 231.85, 40.47, 225.56, 48.87, 216.11, 42.57, 211.92, 41.26, 207.46, 41.26, 203.52]], "area": 3975.9396999999994, "iscrowd": 0, "image_id": 546562, "bbox": [33.92, 200.9, 95.47, 76.59], "category_id": 21, "id": 1407263}, {"segmentation": [[379.69, 326.83, 403.42, 325.75, 416.36, 328.99, 430.38, 330.07, 426.07, 308.49, 436.85, 293.39, 441.17, 280.45, 442.25, 269.66, 450.88, 266.43, 463.82, 270.74, 474.61, 264.27, 471.37, 252.4, 458.43, 241.62, 458.43, 230.83, 454.11, 224.36, 445.48, 221.12, 437.93, 214.65, 431.46, 214.65, 421.75, 218.97, 412.04, 211.42, 402.34, 211.42, 415.28, 225.44, 426.07, 228.67, 408.81, 245.93, 403.42, 252.4, 384.0, 253.48, 374.29, 257.8, 367.82, 265.35, 349.48, 276.13, 351.64, 283.69, 363.51, 286.92, 372.13, 312.81, 373.21, 321.44, 382.92, 323.6]], "area": 7245.817550000001, "iscrowd": 0, "image_id": 546562, "bbox": [349.48, 211.42, 125.13, 118.65], "category_id": 21, "id": 1407309}, {"segmentation": [[377.75, 240.43, 369.08, 240.74, 363.81, 236.72, 361.65, 231.45, 365.05, 229.28, 376.82, 230.83, 378.99, 228.04, 383.95, 227.42, 385.81, 229.59, 387.67, 233.31, 388.28, 235.48, 387.05, 237.65, 382.71, 236.72, 382.71, 236.72, 380.85, 237.65]], "area": 235.2482500000002, "iscrowd": 0, "image_id": 298658, "bbox": [361.65, 227.42, 26.63, 13.32], "category_id": 21, "id": 1407910}, {"segmentation": [[33.04, 318.02, 21.8, 306.36, 4.96, 317.16, 1.07, 316.73, 28.72, 268.34, 51.18, 267.91, 58.53, 280.0, 32.17, 304.63]], "area": 1302.2912000000006, "iscrowd": 0, "image_id": 546562, "bbox": [1.07, 267.91, 57.46, 50.11], "category_id": 21, "id": 1408043}, {"segmentation": [[335.66, 152.08, 352.78, 154.33, 382.5, 153.88, 391.06, 152.98, 396.46, 156.58, 401.42, 157.93, 402.77, 179.55, 396.91, 181.8, 379.8, 180.45, 369.44, 182.25, 356.83, 180.9], [420.33, 165.14, 446.46, 171.44, 455.91, 168.29, 467.17, 173.7, 474.38, 176.85, 465.37, 175.05, 441.95, 175.05, 429.79, 175.95, 416.28, 176.85]], "area": 1808.9338500000006, "iscrowd": 0, "image_id": 4278, "bbox": [335.66, 152.08, 138.72, 30.17], "category_id": 22, "id": 1409213}, {"segmentation": [[69.03, 328.99, 52.85, 270.74, 61.48, 213.57, 56.09, 184.45, 98.16, 161.8, 131.6, 170.43, 171.51, 163.96, 229.75, 160.72, 284.76, 175.82, 320.36, 218.97, 322.52, 262.11, 317.12, 302.02, 310.65, 320.36, 292.31, 321.44, 276.13, 297.71, 261.03, 321.44, 240.54, 324.67, 221.12, 296.63, 200.63, 295.55, 193.08, 325.75, 122.97, 326.83, 129.44, 276.13, 110.02, 294.47, 94.92, 282.61, 92.76, 332.22, 75.51, 333.3]], "area": 37608.5486, "iscrowd": 0, "image_id": 214655, "bbox": [52.85, 160.72, 269.67, 172.58], "category_id": 22, "id": 1409384}, {"segmentation": [[351.46, 306.57, 351.46, 292.25, 359.1, 273.15, 365.79, 271.24, 373.43, 265.51, 380.11, 266.46, 390.62, 259.78, 409.72, 257.87, 437.42, 257.87, 449.83, 259.78, 463.2, 265.51, 472.75, 274.1, 485.17, 293.2, 480.39, 313.26]], "area": 5923.70265, "iscrowd": 0, "image_id": 159021, "bbox": [351.46, 257.87, 133.71, 55.39], "category_id": 22, "id": 1409632}, {"segmentation": [[260.75, 228.61, 251.93, 221.2, 245.58, 214.49, 240.99, 213.08, 231.11, 213.08, 219.12, 213.43, 201.83, 214.49, 191.6, 212.73, 179.6, 209.91, 171.14, 208.5, 162.67, 214.49, 142.91, 220.84, 139.03, 219.79, 145.38, 211.32, 135.86, 211.32, 128.45, 218.73, 125.27, 224.72, 136.92, 225.43, 153.14, 225.08, 165.84, 225.08, 174.31, 226.14, 184.9, 233.19, 186.31, 234.96, 193.36, 242.72, 200.07, 251.54, 206.06, 260.71, 213.82, 272.0, 219.47, 278.0, 234.64, 279.41, 244.52, 280.11, 244.52, 280.11, 236.4, 268.82, 233.93, 252.24, 239.23, 241.31, 250.52, 234.25, 266.74, 230.37]], "area": 3720.6140500000006, "iscrowd": 0, "image_id": 159021, "bbox": [125.27, 208.5, 141.47, 71.61], "category_id": 22, "id": 1410577}, {"segmentation": [[80.93, 230.06, 104.26, 223.55, 138.31, 224.7, 178.86, 228.14, 212.52, 270.99, 213.29, 279.02, 205.64, 287.82, 181.15, 290.5, 160.11, 285.14, 140.22, 279.02, 130.66, 276.73, 121.86, 272.9, 87.05, 274.05, 79.02, 273.66, 70.6, 279.02, 56.45, 287.82, 55.3, 299.29, 55.3, 303.5, 60.66, 308.09, 62.19, 300.82, 63.33, 300.44, 67.54, 309.24, 64.48, 311.15, 61.04, 311.92, 55.3, 312.68, 50.71, 312.3, 49.18, 283.23, 38.09, 294.7, 37.7, 288.2, 48.03, 274.43, 48.8, 254.16, 50.33, 247.27, 54.92, 240.0, 64.48, 234.26]], "area": 8261.416749999999, "iscrowd": 0, "image_id": 159021, "bbox": [37.7, 223.55, 175.59, 89.13], "category_id": 22, "id": 1410639}, {"segmentation": [[522.7, 213.9, 533.16, 208.67, 547.69, 211.58, 556.98, 212.74, 573.84, 219.13, 581.97, 235.4, 584.3, 259.23, 583.72, 267.36, 573.84, 274.92, 566.86, 285.96, 560.47, 283.63, 555.24, 278.4, 550.59, 267.36, 540.13, 273.76, 515.72, 279.57, 503.52, 288.28, 497.71, 288.28, 487.25, 266.78, 485.51, 247.6, 487.25, 226.68, 504.68, 216.81, 513.98, 210.41]], "area": 6007.3026500000005, "iscrowd": 0, "image_id": 159021, "bbox": [485.51, 208.67, 98.79, 79.61], "category_id": 22, "id": 1410734}, {"segmentation": [[640.0, 246.12, 634.52, 242.94, 625.35, 242.59, 619.7, 243.3, 615.47, 242.94, 614.06, 241.53, 601.71, 244.71, 594.65, 244.71, 594.3, 244.71, 587.95, 253.53, 584.77, 268.7, 585.83, 280.34, 587.24, 289.51, 587.24, 294.8, 597.83, 294.8, 605.24, 296.57, 607.71, 294.8, 606.29, 291.28, 606.29, 285.28, 613.35, 278.93, 617.58, 277.16, 622.17, 282.81, 625.35, 288.1, 631.7, 288.1, 633.46, 279.99, 635.22, 280.34, 639.1, 272.58, 639.1, 270.11]], "area": 2271.1426000000015, "iscrowd": 0, "image_id": 159021, "bbox": [584.77, 241.53, 55.23, 55.04], "category_id": 22, "id": 1410800}, {"segmentation": [[433.83, 251.21, 439.95, 242.03, 446.07, 238.97, 450.28, 237.06, 459.84, 232.47, 469.79, 228.64, 479.73, 225.2, 485.85, 225.2, 483.56, 252.36, 485.85, 263.07, 498.48, 290.61, 499.24, 300.56, 485.85, 300.56, 480.5, 284.49, 467.11, 267.66, 453.72, 258.48, 448.36, 256.95]], "area": 1961.8965500000018, "iscrowd": 0, "image_id": 159021, "bbox": [433.83, 225.2, 65.41, 75.36], "category_id": 22, "id": 1410831}, {"segmentation": [[24.39, 275.12, 31.92, 252.51, 37.72, 240.91, 48.74, 226.42, 54.54, 230.48, 62.07, 224.1, 72.51, 229.9, 93.96, 227.0, 61.49, 235.7, 55.7, 243.81, 50.48, 250.77, 48.74, 255.99, 47.0, 279.18, 41.2, 271.64, 35.4, 286.72, 22.65, 278.02, 26.12, 275.7]], "area": 1130.9740000000002, "iscrowd": 0, "image_id": 159021, "bbox": [22.65, 224.1, 71.31, 62.62], "category_id": 22, "id": 1410887}, {"segmentation": [[242.78, 289.33, 235.95, 268.15, 234.58, 251.07, 243.46, 238.09, 259.86, 228.52, 266.69, 225.11, 274.89, 227.16, 283.09, 232.62, 289.24, 236.72, 300.85, 257.9, 298.12, 273.62, 293.34, 284.55, 289.92, 305.04, 289.24, 311.88, 281.72, 300.94, 270.79, 296.16, 263.96, 287.96, 254.4, 281.81]], "area": 3539.7977499999993, "iscrowd": 0, "image_id": 159021, "bbox": [234.58, 225.11, 66.27, 86.77], "category_id": 22, "id": 1410921}, {"segmentation": [[448.33, 239.72, 448.61, 233.4, 438.44, 233.67, 424.97, 236.97, 420.29, 238.35, 418.09, 236.42, 415.07, 235.6, 411.77, 236.42, 408.47, 243.02, 408.2, 250.44, 408.2, 252.64, 402.7, 259.51, 416.72, 258.96, 423.87, 259.24, 432.11, 259.24, 434.31, 256.21, 436.79, 253.19, 438.71, 245.22, 442.56, 242.19]], "area": 758.1173499999996, "iscrowd": 0, "image_id": 159021, "bbox": [402.7, 233.4, 45.91, 26.11], "category_id": 22, "id": 1410935}, {"segmentation": [[430.54, 273.73, 417.35, 277.86, 412.95, 281.98, 409.37, 293.8, 408.0, 306.72, 408.0, 313.6, 407.17, 316.62, 406.9, 322.39, 406.9, 323.49, 410.75, 326.52, 415.42, 328.99, 419.55, 330.37, 423.94, 333.39, 431.37, 336.14, 434.94, 336.69, 441.54, 338.34, 447.86, 339.99, 451.98, 340.54, 453.91, 339.99, 456.38, 338.61, 456.38, 331.47, 452.26, 316.07, 449.79, 311.95, 444.84, 309.75, 440.71, 306.17, 437.41, 300.95, 435.49, 297.1, 434.12, 289.95, 432.19, 279.78, 431.92, 276.48, 431.09, 274.83, 431.09, 274.28]], "area": 1994.818549999999, "iscrowd": 0, "image_id": 13258, "bbox": [406.9, 273.73, 49.48, 66.81], "category_id": 23, "id": 1411636}, {"segmentation": [[87.21, 211.41, 86.34, 196.25, 91.11, 177.19, 94.14, 164.63, 101.94, 156.83, 115.37, 155.53, 118.4, 159.0, 121.43, 171.13, 127.06, 191.05, 127.5, 205.35, 128.8, 216.18, 122.3, 214.44, 123.17, 208.81, 120.13, 195.82, 117.97, 193.22, 115.37, 197.98, 117.1, 215.31, 111.04, 219.21, 108.44, 212.28, 108.87, 194.08, 99.77, 194.95, 95.01, 209.25, 93.28, 214.88, 90.24, 216.18]], "area": 1654.026300000001, "iscrowd": 0, "image_id": 260011, "bbox": [86.34, 155.53, 42.46, 63.68], "category_id": 24, "id": 1411770}, {"segmentation": [[104.66, 165.11, 107.33, 165.11, 107.83, 150.77, 107.0, 148.77, 105.16, 146.43, 101.16, 144.6, 97.49, 141.93, 91.99, 139.76, 90.98, 146.1, 91.99, 149.77, 91.99, 151.44, 88.82, 153.6, 88.32, 164.11, 88.15, 166.78, 90.82, 164.95, 93.49, 162.28, 95.32, 163.78, 97.66, 163.61, 101.66, 163.11, 102.16, 162.28, 101.99, 154.1, 101.33, 153.27, 104.5, 150.94, 104.5, 150.94]], "area": 330.46680000000015, "iscrowd": 0, "image_id": 94118, "bbox": [88.15, 139.76, 19.68, 27.02], "category_id": 24, "id": 1411778}, {"segmentation": [[456.72, 154.34, 458.66, 156.04, 460.35, 155.31, 460.35, 150.94, 460.11, 147.55, 463.51, 146.09, 466.18, 145.36, 467.15, 145.12, 469.81, 148.76, 470.06, 150.46, 469.33, 155.55, 471.27, 156.52, 472.72, 156.52, 473.21, 151.19, 474.18, 148.03, 476.6, 145.36, 476.6, 141.24, 476.6, 135.18, 474.18, 131.78, 472.24, 130.81, 469.57, 130.33, 465.2, 129.84, 456.47, 130.57, 454.78, 125.96, 450.17, 128.39, 447.26, 132.02, 449.2, 137.12, 451.38, 142.94, 452.35, 147.79, 453.08, 155.07, 455.75, 156.76], [447.74, 124.51, 443.62, 125.48, 442.41, 128.63, 439.98, 132.75, 442.89, 135.42, 443.62, 134.69, 445.8, 128.87]], "area": 586.3823000000006, "iscrowd": 0, "image_id": 94118, "bbox": [439.98, 124.51, 36.62, 32.25], "category_id": 24, "id": 1411854}, {"segmentation": [[535.65, 316.4, 532.3, 323.71, 532.45, 327.05, 533.21, 329.03, 539.76, 329.64, 541.89, 328.27, 539.76, 317.16, 539.76, 315.33, 540.52, 310.62, 541.43, 308.48, 540.37, 307.88, 539.15, 313.96, 539.0, 315.18, 536.41, 315.64, 533.67, 308.48, 532.6, 308.48, 534.58, 313.96]], "area": 114.16969999999932, "iscrowd": 0, "image_id": 404964, "bbox": [532.3, 307.88, 9.59, 21.76], "category_id": 27, "id": 1414963}, {"segmentation": [[398.15, 228.33, 397.88, 222.57, 400.62, 212.98, 409.11, 202.84, 425.55, 186.4, 446.11, 178.18, 462.0, 187.5, 464.74, 194.62, 463.1, 200.38, 460.08, 201.2, 453.78, 196.54, 441.45, 188.05, 435.15, 184.21, 422.81, 189.96, 422.81, 196.54, 432.41, 199.01, 443.92, 206.95, 450.77, 218.74, 448.03, 229.43, 443.64, 240.39, 427.2, 237.65, 411.03, 232.71, 398.42, 227.23]], "area": 2004.2484000000004, "iscrowd": 0, "image_id": 253143, "bbox": [397.88, 178.18, 66.86, 62.21], "category_id": 27, "id": 1415026}, {"segmentation": [[593.59, 327.8, 579.11, 357.35, 584.32, 367.78, 588.96, 372.99, 590.69, 374.73, 585.48, 392.69, 585.48, 400.22, 585.48, 408.33, 585.48, 417.02, 585.48, 421.66, 585.48, 433.82, 589.54, 445.41, 591.85, 453.52, 600.54, 480.0, 623.14, 479.59, 613.29, 434.4, 613.29, 432.66, 612.13, 414.7, 612.13, 411.81, 609.81, 397.32, 609.81, 395.59, 608.65, 385.16, 607.5, 366.04, 608.07, 356.77, 617.92, 346.92, 617.34, 343.44, 610.39, 342.29, 607.5, 340.18, 609.81, 334.38, 609.23, 332.64], [315.81, 466.27, 314.79, 441.21, 317.86, 421.27, 317.86, 420.24, 326.04, 400.81, 338.31, 387.51, 355.7, 371.66, 362.35, 364.36, 344.45, 394.53, 340.87, 403.22, 331.15, 427.77]], "area": 4736.675699999992, "iscrowd": 0, "image_id": 146049, "bbox": [314.79, 327.8, 308.35, 152.2], "category_id": 27, "id": 1416562}, {"segmentation": [[65.72, 474.98, 65.72, 466.35, 70.39, 459.33, 67.33, 455.02, 61.4, 462.21, 61.04, 469.04, 63.02, 475.87, 60.32, 476.05, 59.07, 474.44, 55.65, 472.46, 55.11, 469.76, 56.73, 459.87, 63.38, 457.36, 68.77, 451.78, 73.27, 458.44, 69.13, 465.81, 67.69, 473.18, 65.72, 475.33]], "area": 164.6256999999998, "iscrowd": 0, "image_id": 452087, "bbox": [55.11, 451.78, 18.16, 24.27], "category_id": 27, "id": 1416670}, {"segmentation": [[497.03, 168.3, 499.53, 171.97, 498.53, 178.63, 498.7, 179.46, 500.03, 181.13, 500.53, 182.79, 500.86, 184.62, 500.36, 186.46, 499.36, 187.95, 499.2, 189.45, 501.86, 189.95, 503.69, 185.29, 504.19, 181.96, 505.03, 178.13, 505.19, 175.46, 503.69, 171.47, 502.36, 169.63, 499.7, 168.47, 498.36, 167.64]], "area": 95.69145000000026, "iscrowd": 0, "image_id": 20251, "bbox": [497.03, 167.64, 8.16, 22.31], "category_id": 27, "id": 1416911}, {"segmentation": [[90.55, 98.88, 54.26, 106.0, 35.04, 231.96, 45.72, 239.07, 57.81, 207.05, 56.39, 180.01, 75.61, 126.63], [98.38, 94.61, 97.67, 91.76, 118.3, 71.12, 133.25, 71.12, 153.17, 92.47, 165.98, 138.73, 161.71, 151.54, 157.44, 115.25, 116.88, 87.49]], "area": 3801.242949999999, "iscrowd": 0, "image_id": 319293, "bbox": [35.04, 71.12, 130.94, 167.95], "category_id": 27, "id": 1417106}, {"segmentation": [[272.11, 480.83, 267.59, 478.25, 265.66, 475.02, 260.82, 470.83, 262.11, 463.73, 263.72, 461.48, 268.24, 456.64, 275.01, 448.25, 284.69, 441.16, 298.23, 437.93, 298.88, 437.29, 301.46, 435.03, 305.97, 431.16, 315.33, 430.19, 321.13, 433.09, 330.16, 433.09, 337.58, 433.09, 339.84, 434.38, 344.35, 439.22, 348.55, 443.41, 354.03, 448.25, 358.55, 450.19, 351.45, 453.09, 339.19, 459.22, 328.23, 461.15, 326.94, 462.12, 322.1, 465.67, 319.84, 466.64, 313.71, 470.51, 312.42, 471.15, 313.71, 473.73, 313.39, 477.6, 306.94, 473.09, 306.94, 473.09, 299.52, 471.8, 295.97, 477.28]], "area": 2781.1876499999985, "iscrowd": 0, "image_id": 50404, "bbox": [260.82, 430.19, 97.73, 50.64], "category_id": 27, "id": 1417240}, {"segmentation": [[121.26, 58.67, 119.92, 50.49, 119.25, 47.65, 117.75, 44.15, 115.08, 40.98, 117.75, 39.47, 120.42, 42.31, 123.09, 46.65, 123.93, 49.15, 121.42, 58.33], [143.62, 52.82, 139.45, 45.15, 137.78, 41.48, 136.94, 38.3, 137.61, 38.14, 140.28, 41.64, 144.29, 48.82, 144.12, 52.16]], "area": 88.63880000000006, "iscrowd": 0, "image_id": 289693, "bbox": [115.08, 38.14, 29.21, 20.53], "category_id": 27, "id": 1417468}, {"segmentation": [[453.75, 291.29, 455.9, 289.5, 455.9, 292.72, 456.61, 291.29, 456.61, 288.43, 455.36, 287.54, 454.47, 285.39, 451.97, 285.57, 453.22, 288.25, 451.61, 289.68, 452.32, 292.01, 453.93, 291.11]], "area": 19.937100000000058, "iscrowd": 0, "image_id": 575792, "bbox": [451.61, 285.39, 5.0, 7.33], "category_id": 27, "id": 1419040}, {"segmentation": [[107.68, 216.42, 160.09, 218.33, 216.31, 269.79, 251.57, 359.36, 250.62, 392.71, 215.36, 336.49, 162.95, 286.94, 77.19, 270.74, 34.3, 301.23, 17.15, 358.41, 10.48, 413.68, 10.48, 416.53, 0.0, 420.35, 0.95, 298.37, 37.16, 262.16, 57.17, 246.92, 62.89, 213.56, 78.14, 205.94, 92.43, 222.14, 94.34, 227.86]], "area": 15589.697799999998, "iscrowd": 0, "image_id": 571516, "bbox": [0.0, 205.94, 251.57, 214.41], "category_id": 27, "id": 1419116}, {"segmentation": [[31.45, 174.24, 32.71, 165.77, 36.6, 160.85, 40.04, 166.12, 40.95, 170.12, 41.75, 173.44, 39.58, 176.07, 37.06, 176.64, 35.46, 175.61, 31.91, 175.73, 31.11, 174.47]], "area": 107.57694999999994, "iscrowd": 0, "image_id": 347340, "bbox": [31.11, 160.85, 10.64, 15.79], "category_id": 27, "id": 1419606}, {"segmentation": [[524.08, 199.77, 540.29, 200.07, 538.49, 225.58, 525.89, 223.48, 521.38, 215.68]], "area": 400.9080999999994, "iscrowd": 0, "image_id": 1431, "bbox": [521.38, 199.77, 18.91, 25.81], "category_id": 27, "id": 1419859}, {"segmentation": [[88.77, 639.17, 98.92, 629.72, 94.37, 624.83, 94.02, 618.18, 102.76, 605.24, 110.11, 606.64, 115.35, 606.99, 123.05, 588.11, 125.15, 586.71, 125.49, 595.1, 120.6, 605.94, 119.9, 612.94, 134.24, 600.0, 146.83, 595.45, 161.87, 595.1, 177.95, 606.29, 184.95, 620.28, 186.35, 626.93, 185.65, 628.32, 177.95, 613.29, 165.71, 608.74, 150.32, 609.44, 134.94, 612.59, 125.49, 622.03, 122.35, 632.17, 120.25, 638.82]], "area": 1701.9932000000003, "iscrowd": 0, "image_id": 119093, "bbox": [88.77, 586.71, 97.58, 52.46], "category_id": 27, "id": 1420872}, {"segmentation": [[382.55, 551.71, 385.68, 579.51, 390.38, 588.33, 397.63, 589.11, 403.11, 582.65, 400.76, 571.49, 386.66, 552.69, 383.53, 549.75, 376.87, 548.18, 369.82, 549.36, 377.46, 549.36, 381.18, 550.73]], "area": 460.2374000000002, "iscrowd": 0, "image_id": 119093, "bbox": [369.82, 548.18, 33.29, 40.93], "category_id": 27, "id": 1421599}, {"segmentation": [[135.3, 179.44, 139.13, 115.15, 156.41, 112.27, 152.57, 159.29, 143.93, 191.91], [136.26, 206.3, 133.38, 226.45, 145.85, 230.29, 147.77, 231.25, 226.45, 228.37, 226.45, 220.7, 225.49, 216.86, 152.57, 217.82, 145.85, 200.55, 132.42, 191.91], [229.33, 166.96, 223.58, 148.73, 213.02, 154.49, 220.7, 136.26, 213.02, 111.31, 228.37, 111.31, 237.01, 133.38]], "area": 3256.493849999999, "iscrowd": 0, "image_id": 279401, "bbox": [132.42, 111.31, 104.59, 119.94], "category_id": 27, "id": 1422494}, {"segmentation": [[103.6, 410.06, 99.8, 418.6, 90.31, 424.29, 75.13, 426.19, 49.51, 417.65, 37.18, 368.31, 40.97, 331.3, 41.92, 311.38, 48.56, 298.09, 60.9, 290.5, 59.95, 276.27, 98.85, 242.11, 109.29, 239.26, 118.78, 247.8, 111.19, 251.6, 102.65, 256.34, 99.8, 257.29, 85.57, 266.78, 64.69, 284.81, 55.21, 303.79, 51.41, 332.25, 48.56, 382.54, 59.0, 394.88, 100.75, 408.16]], "area": 3073.8100999999992, "iscrowd": 0, "image_id": 415946, "bbox": [37.18, 239.26, 81.6, 186.93], "category_id": 27, "id": 1422495}, {"segmentation": [[456.9, 149.05, 459.42, 106.18, 469.51, 91.55, 484.64, 90.54, 481.62, 98.1, 476.07, 115.76, 466.99, 133.41, 458.92, 146.53], [519.96, 92.05, 541.65, 95.58, 536.1, 124.34, 539.12, 152.08, 542.65, 169.23, 544.17, 174.78, 534.08, 174.27, 518.95, 143.5, 515.92, 136.44, 519.96, 93.06]], "area": 2195.867999999999, "iscrowd": 0, "image_id": 269986, "bbox": [456.9, 90.54, 87.27, 84.24], "category_id": 27, "id": 1422579}, {"segmentation": [[312.93, 159.43, 297.53, 171.19, 290.05, 182.09, 284.92, 190.22, 279.36, 200.91, 298.18, 202.83, 301.81, 190.0, 307.37, 181.67, 307.8, 177.39, 313.14, 169.69, 315.7, 165.63]], "area": 618.9676999999999, "iscrowd": 0, "image_id": 255604, "bbox": [279.36, 159.43, 36.34, 43.4], "category_id": 27, "id": 1422704}, {"segmentation": [[386.12, 192.38, 388.39, 208.28, 411.1, 208.28, 411.1, 188.97, 419.05, 191.24, 423.59, 226.45, 423.59, 232.12, 422.46, 233.26, 412.24, 212.82, 387.25, 212.82, 378.17, 244.62, 374.76, 232.12, 380.44, 204.87, 380.44, 190.11, 388.39, 190.11, 388.39, 196.92]], "area": 795.5500499999991, "iscrowd": 0, "image_id": 279401, "bbox": [374.76, 188.97, 48.83, 55.65], "category_id": 27, "id": 1422733}, {"segmentation": [[273.89, 332.14, 277.12, 317.04, 283.23, 302.48, 280.72, 284.14, 280.0, 280.55, 282.52, 278.39, 288.45, 278.39, 292.58, 289.72, 292.76, 300.32, 287.73, 322.8, 279.82, 337.9]], "area": 583.9532499999991, "iscrowd": 0, "image_id": 415946, "bbox": [273.89, 278.39, 18.87, 59.51], "category_id": 27, "id": 1422737}, {"segmentation": [[89.36, 112.55, 80.92, 127.33, 62.26, 127.33, 57.69, 124.16, 56.63, 122.4, 53.81, 122.76, 49.24, 123.11, 47.83, 118.88, 47.83, 113.61, 49.94, 108.33, 53.11, 104.45, 56.63, 101.29, 65.08, 104.45, 74.23, 103.4, 81.27, 104.1, 85.84, 105.51, 88.31, 105.51, 88.31, 110.09, 88.31, 112.9]], "area": 829.6938999999999, "iscrowd": 0, "image_id": 151322, "bbox": [47.83, 101.29, 41.53, 26.04], "category_id": 27, "id": 1422941}, {"segmentation": [[524.24, 231.39, 531.42, 254.86, 533.36, 263.15, 536.39, 265.91, 536.95, 262.87, 531.98, 238.84, 533.91, 226.14, 531.7, 221.72, 529.77, 222.82], [505.19, 229.45, 501.87, 258.17, 499.11, 261.21, 496.35, 258.45, 499.66, 229.45, 503.53, 225.86]], "area": 396.8085500000006, "iscrowd": 0, "image_id": 279401, "bbox": [496.35, 221.72, 40.6, 44.19], "category_id": 27, "id": 1423294}, {"segmentation": [[512.93, 193.19, 530.03, 186.82, 543.16, 184.43, 552.31, 183.64, 556.29, 180.06, 558.68, 178.47, 565.84, 180.46, 586.13, 186.42, 600.85, 191.6, 608.81, 191.2, 609.6, 193.98, 590.51, 194.38, 559.87, 195.97, 559.08, 230.58, 553.11, 229.39, 554.7, 197.17, 549.13, 198.36, 539.58, 196.37, 521.28, 195.97, 513.32, 193.58]], "area": 1104.2150000000008, "iscrowd": 0, "image_id": 531032, "bbox": [512.93, 178.47, 96.67, 52.11], "category_id": 28, "id": 1424562}, {"segmentation": [[281.08, 5.05, 422.34, 22.34, 427.0, 166.49, 420.9, 186.67, 389.19, 157.84, 376.22, 149.19, 357.48, 170.81, 347.39, 159.28, 367.57, 136.22, 338.74, 129.01, 345.95, 97.3, 332.97, 81.44, 369.01, 64.14, 302.7, 29.55, 270.99, 20.9, 275.32, 9.37]], "area": 13181.239499999992, "iscrowd": 0, "image_id": 203655, "bbox": [270.99, 5.05, 156.01, 181.62], "category_id": 28, "id": 1425137}, {"segmentation": [[389.75, 268.23, 391.4, 284.96, 390.58, 267.4, 397.98, 260.55, 403.47, 255.33, 406.21, 246.01, 399.9, 232.84, 393.05, 235.04, 387.29, 240.25, 382.07, 244.91, 375.22, 250.95, 370.56, 254.79, 366.72, 257.8, 362.88, 262.19, 363.15, 268.77, 369.73, 270.42, 379.61, 270.42, 385.64, 268.23]], "area": 922.46305, "iscrowd": 0, "image_id": 539099, "bbox": [362.88, 232.84, 43.33, 52.12], "category_id": 28, "id": 1425645}, {"segmentation": [[242.54, 162.45, 244.09, 164.11, 245.39, 164.59, 246.35, 163.64, 246.94, 161.85, 248.13, 161.61, 249.56, 161.85, 250.63, 163.04, 251.58, 163.99, 251.82, 164.11, 254.2, 164.35, 255.39, 163.87, 255.39, 162.68, 255.99, 161.14, 257.29, 160.78, 257.77, 160.78, 257.89, 151.26, 256.34, 151.26, 254.56, 151.74, 252.65, 151.85, 251.11, 152.57, 249.2, 153.04, 247.3, 153.4, 245.87, 154.12, 244.56, 154.83, 243.73, 155.54, 243.13, 156.61, 241.94, 157.92, 241.11, 158.28, 241.11, 163.16, 242.06, 163.52], [262.77, 162.56, 263.84, 163.4, 264.91, 163.64, 265.39, 162.21, 266.81, 161.26, 267.88, 160.9, 269.43, 161.14, 270.5, 161.97, 270.74, 163.16, 271.57, 163.75, 272.53, 163.75, 273.24, 163.52, 273.6, 163.52, 273.6, 157.09, 262.53, 151.26, 262.29, 151.26, 261.93, 153.64, 262.53, 160.78, 262.53, 162.21, 262.53, 162.68]], "area": 254.34510000000006, "iscrowd": 0, "image_id": 511988, "bbox": [241.11, 151.26, 32.49, 13.33], "category_id": 28, "id": 1426020}, {"segmentation": [[623.15, 186.51, 640.0, 179.5, 640.0, 190.86, 632.33, 191.1, 625.08, 191.1, 625.08, 191.1]], "area": 131.05100000000007, "iscrowd": 0, "image_id": 531032, "bbox": [623.15, 179.5, 16.85, 11.6], "category_id": 28, "id": 1426098}, {"segmentation": [[332.83, 269.09, 353.41, 261.35, 360.43, 263.04, 363.58, 267.4, 378.83, 270.3, 387.55, 269.82, 378.35, 274.9, 376.17, 277.08, 373.99, 276.11, 371.81, 278.29, 368.42, 280.23, 363.34, 280.96, 358.98, 281.68, 356.8, 282.65, 355.83, 281.68, 354.86, 279.99, 350.99, 279.5, 348.81, 279.5, 347.36, 281.68, 347.12, 284.59, 346.15, 285.8, 344.21, 284.59, 343.0, 284.1, 341.55, 284.1, 339.13, 282.65, 337.19, 280.96, 336.95, 280.23, 334.77, 277.81, 334.04, 276.36, 332.11, 274.42, 332.11, 272.0, 332.59, 268.61]], "area": 685.6079, "iscrowd": 0, "image_id": 539099, "bbox": [332.11, 261.35, 55.44, 24.45], "category_id": 28, "id": 1426661}, {"segmentation": [[429.08, 248.33, 418.37, 252.83, 412.59, 259.69, 409.8, 264.83, 418.59, 268.47, 431.01, 268.9, 433.15, 268.25, 446.0, 267.4, 455.21, 256.26, 455.42, 253.47, 448.57, 249.4, 440.43, 245.76]], "area": 724.0071999999997, "iscrowd": 0, "image_id": 539099, "bbox": [409.8, 245.76, 45.62, 23.14], "category_id": 28, "id": 1427399}, {"segmentation": [[214.37, 360.19, 212.99, 358.62, 211.42, 350.75, 210.83, 346.23, 212.99, 334.23, 213.39, 333.84, 219.88, 329.51, 221.06, 332.27, 222.63, 336.79, 224.79, 345.44, 226.96, 349.38, 227.15, 358.62, 224.79, 361.37, 220.07, 361.37, 216.14, 360.19]], "area": 374.40780000000007, "iscrowd": 0, "image_id": 332065, "bbox": [210.83, 329.51, 16.32, 31.86], "category_id": 31, "id": 1431115}, {"segmentation": [[226.16, 248.9, 236.85, 240.4, 250.56, 238.48, 256.04, 248.9, 256.59, 261.23, 250.83, 269.46, 236.85, 277.68, 228.62, 279.05, 222.87, 274.94, 223.96, 264.52, 223.96, 254.11]], "area": 1015.5064499999999, "iscrowd": 0, "image_id": 207463, "bbox": [222.87, 238.48, 33.72, 40.57], "category_id": 31, "id": 1431572}, {"segmentation": [[577.8, 237.68, 591.74, 256.57, 600.11, 260.29, 580.9, 237.06], [602.58, 273.3, 605.37, 284.14, 606.92, 292.5, 613.43, 290.65, 615.28, 289.72, 613.74, 281.66, 612.5, 276.09, 609.4, 270.82, 606.92, 268.03, 606.3, 267.41]], "area": 281.2490499999995, "iscrowd": 0, "image_id": 385701, "bbox": [577.8, 237.06, 37.48, 55.44], "category_id": 31, "id": 1431668}, {"segmentation": [[289.05, 370.62, 290.4, 412.64, 287.69, 424.83, 335.13, 424.16, 326.99, 397.05, 317.51, 382.14, 298.53, 362.49, 283.62, 327.25, 274.14, 297.43, 264.65, 294.72, 278.88, 340.8, 288.37, 357.07]], "area": 2597.53335, "iscrowd": 0, "image_id": 119337, "bbox": [264.65, 294.72, 70.48, 130.11], "category_id": 31, "id": 1432760}, {"segmentation": [[533.66, 304.86, 553.49, 338.92, 556.03, 337.65, 555.27, 334.6, 538.24, 305.63, 535.7, 303.59, 533.66, 303.08, 533.41, 306.64]], "area": 143.01885000000053, "iscrowd": 0, "image_id": 336675, "bbox": [533.41, 303.08, 22.62, 35.84], "category_id": 31, "id": 1433080}, {"segmentation": [[478.5, 400.88, 511.02, 411.48, 544.25, 422.09, 605.75, 395.93, 612.0, 379.67, 596.56, 363.41, 574.65, 337.96, 523.74, 330.18, 501.12, 333.72, 486.28, 368.36, 474.96, 381.08, 474.96, 395.93]], "area": 8659.395199999999, "iscrowd": 0, "image_id": 9025, "bbox": [474.96, 330.18, 137.04, 91.91], "category_id": 31, "id": 1433847}, {"segmentation": [[546.19, 83.5, 531.95, 135.2, 520.71, 159.18, 558.18, 152.44, 561.93, 93.99, 561.93, 85.0, 555.93, 79.0, 560.43, 24.3, 558.93, 19.81, 548.44, 59.52, 548.44, 73.76, 543.19, 82.75], [520.71, 168.18, 521.46, 173.42, 542.45, 181.66, 555.93, 171.92, 555.93, 160.68]], "area": 2665.0594499999875, "iscrowd": 0, "image_id": 285022, "bbox": [520.71, 19.81, 41.22, 161.85], "category_id": 31, "id": 1433849}, {"segmentation": [[338.46, 415.23, 343.78, 414.86, 349.71, 414.61, 354.04, 412.26, 359.0, 408.68, 359.0, 431.91, 354.16, 433.64, 340.93, 436.98, 334.51, 435.13, 332.16, 416.22, 334.51, 415.6]], "area": 541.7911999999998, "iscrowd": 0, "image_id": 334097, "bbox": [332.16, 408.68, 26.84, 28.3], "category_id": 31, "id": 1434088}, {"segmentation": [[536.57, 149.27, 537.89, 164.45, 545.81, 193.49, 550.43, 208.67, 553.73, 205.37, 548.45, 180.95, 542.51, 160.49, 545.81, 147.95, 549.77, 140.69]], "area": 369.38880000000177, "iscrowd": 0, "image_id": 119337, "bbox": [536.57, 140.69, 17.16, 67.98], "category_id": 31, "id": 1434340}, {"segmentation": [[79.83, 68.65, 71.85, 68.83, 62.6, 66.65, 62.24, 62.3, 63.51, 58.67, 68.59, 56.68, 73.3, 59.58, 79.83, 64.66, 81.29, 66.47], [80.38, 55.23, 91.44, 49.6, 95.25, 44.16, 98.52, 41.44, 101.06, 37.82, 102.14, 35.82, 102.51, 33.1, 103.41, 31.1, 104.14, 32.92, 102.87, 38.18, 100.87, 43.08, 91.62, 51.24, 84.01, 56.5, 82.74, 57.59]], "area": 226.47500000000014, "iscrowd": 0, "image_id": 289693, "bbox": [62.24, 31.1, 41.9, 37.73], "category_id": 31, "id": 1435584}, {"segmentation": [[46.44, 331.66, 178.95, 457.38, 180.08, 482.29, 96.27, 412.07, 54.36, 362.24, 24.92, 326.0], [9.06, 259.17, 13.59, 269.37, 2.27, 281.82, 0.0, 267.1]], "area": 4111.147699999998, "iscrowd": 0, "image_id": 56594, "bbox": [0.0, 259.17, 180.08, 223.12], "category_id": 31, "id": 1435920}, {"segmentation": [[370.38, 369.36, 351.09, 370.47, 350.82, 360.27, 350.82, 359.72, 349.99, 347.04, 362.39, 334.37, 364.32, 328.31, 368.73, 348.15, 372.31, 353.66, 373.14, 358.34, 372.31, 363.03, 371.48, 369.36]], "area": 629.6796500000007, "iscrowd": 0, "image_id": 221328, "bbox": [349.99, 328.31, 23.15, 42.16], "category_id": 31, "id": 1436566}, {"segmentation": [[334.51, 403.23, 316.54, 405.27, 313.27, 392.61, 314.9, 381.58, 313.27, 358.29, 312.86, 337.87, 314.08, 322.34, 318.17, 326.02, 318.17, 346.04, 320.62, 360.34, 324.71, 368.1, 330.83, 384.03, 335.74, 392.61, 336.96, 394.65, 335.33, 402.82]], "area": 892.0696500000005, "iscrowd": 0, "image_id": 114540, "bbox": [312.86, 322.34, 24.1, 82.93], "category_id": 31, "id": 1437025}, {"segmentation": [[149.74, 333.5, 161.04, 341.46, 156.86, 375.78, 153.51, 381.65, 143.04, 397.97, 129.64, 392.11, 130.48, 367.41, 136.34, 349.83, 142.2, 337.27, 149.74, 328.9]], "area": 1383.8740500000008, "iscrowd": 0, "image_id": 13417, "bbox": [129.64, 328.9, 31.4, 69.07], "category_id": 31, "id": 1437450}, {"segmentation": [[96.17, 85.11, 185.61, 81.26, 235.62, 84.15, 255.82, 21.64, 262.55, 21.64, 242.35, 88.96, 241.39, 171.67, 201.96, 160.13, 164.45, 157.24, 131.75, 162.05, 116.37, 162.05, 81.75, 161.09]], "area": 12476.786, "iscrowd": 0, "image_id": 223838, "bbox": [81.75, 21.64, 180.8, 150.03], "category_id": 31, "id": 1439251}, {"segmentation": [[51.44, 135.58, 54.96, 139.53, 52.76, 147.3, 60.82, 161.07, 65.8, 151.84, 64.63, 139.53, 62.28, 137.19, 62.28, 135.72, 63.02, 131.33, 59.5, 129.86, 53.05, 130.01]], "area": 282.19354999999996, "iscrowd": 0, "image_id": 451160, "bbox": [51.44, 129.86, 14.36, 31.21], "category_id": 32, "id": 1439866}, {"segmentation": [[86.12, 333.4, 83.04, 333.56, 79.95, 338.44, 84.34, 344.13, 88.56, 348.36, 93.44, 354.21, 93.28, 347.22, 91.65, 340.72, 89.38, 335.84, 85.96, 333.56]], "area": 132.30915, "iscrowd": 0, "image_id": 286619, "bbox": [79.95, 333.4, 13.49, 20.81], "category_id": 32, "id": 1439905}, {"segmentation": [[526.87, 216.15, 524.91, 235.21, 520.94, 237.03, 523.28, 212.6, 525.04, 205.77, 526.99, 204.01, 527.19, 205.96, 527.19, 209.87]], "area": 113.12720000000014, "iscrowd": 0, "image_id": 480818, "bbox": [520.94, 204.01, 6.25, 33.02], "category_id": 32, "id": 1440081}, {"segmentation": [[297.06, 234.41, 302.47, 249.11, 304.79, 254.52, 304.79, 259.94, 300.15, 413.84, 334.18, 440.13, 355.06, 411.52, 326.44, 251.43, 331.86, 237.51, 333.41, 230.55, 331.86, 227.45]], "area": 7560.13375, "iscrowd": 0, "image_id": 194943, "bbox": [297.06, 227.45, 58.0, 212.68], "category_id": 32, "id": 1440301}, {"segmentation": [[465.13, 315.58, 471.53, 317.45, 477.39, 315.85, 483.79, 312.12, 486.73, 313.98, 486.99, 315.85, 475.53, 325.18, 474.46, 327.58, 474.73, 339.58, 471.0, 350.78, 469.4, 352.83, 460.33, 353.09, 468.33, 327.5, 467.53, 320.83]], "area": 391.6686000000004, "iscrowd": 0, "image_id": 286619, "bbox": [460.33, 312.12, 26.66, 40.97], "category_id": 32, "id": 1441808}, {"segmentation": [[458.39, 159.32, 457.36, 152.64, 454.92, 148.15, 454.02, 143.4, 450.56, 143.4, 450.3, 147.89, 457.23, 159.32]], "area": 56.441449999999776, "iscrowd": 0, "image_id": 579533, "bbox": [450.3, 143.4, 8.09, 15.92], "category_id": 32, "id": 1442309}, {"segmentation": [[446.86, 166.71, 446.27, 144.73, 445.68, 143.75, 442.34, 142.57, 441.95, 145.12, 443.72, 145.32, 440.97, 154.93, 440.38, 164.75, 442.34, 167.3, 442.54, 172.6, 442.54, 172.6, 443.33, 171.81, 445.48, 166.12]], "area": 127.0280999999997, "iscrowd": 0, "image_id": 480818, "bbox": [440.38, 142.57, 6.48, 30.03], "category_id": 32, "id": 1442479}, {"segmentation": [[172.73, 327.31, 176.68, 338.4, 170.76, 335.93, 169.04, 328.54, 169.78, 327.31]], "area": 44.454750000000054, "iscrowd": 0, "image_id": 286619, "bbox": [169.04, 327.31, 7.64, 11.09], "category_id": 32, "id": 1442566}, {"segmentation": [[284.91, 322.8, 282.89, 323.82, 283.01, 329.9, 282.89, 334.46, 283.39, 340.92, 287.32, 339.65, 290.87, 337.88, 289.48, 333.83, 288.46, 329.01, 288.46, 325.97, 285.67, 322.55]], "area": 100.25095000000005, "iscrowd": 0, "image_id": 286619, "bbox": [282.89, 322.55, 7.98, 18.37], "category_id": 32, "id": 1442695}, {"segmentation": [[202.92, 138.04, 206.19, 140.49, 205.98, 144.17, 204.96, 146.22, 207.21, 147.65, 200.26, 170.54, 197.2, 149.08, 201.49, 144.17, 200.67, 141.72]], "area": 160.1804000000002, "iscrowd": 0, "image_id": 451160, "bbox": [197.2, 138.04, 10.01, 32.5], "category_id": 32, "id": 1442843}, {"segmentation": [[524.73, 151.33, 528.96, 151.79, 531.08, 154.83, 526.2, 157.86, 526.29, 159.52, 527.58, 161.45, 523.26, 157.13, 523.07, 156.57, 522.98, 153.54]], "area": 40.66785000000006, "iscrowd": 0, "image_id": 579533, "bbox": [522.98, 151.33, 8.1, 10.12], "category_id": 32, "id": 1443044}, {"segmentation": [[544.01, 147.1, 542.81, 144.6, 542.6, 142.1, 545.31, 138.73, 547.05, 139.6, 549.01, 142.97, 549.12, 146.45, 548.25, 148.29]], "area": 44.053750000000036, "iscrowd": 0, "image_id": 579533, "bbox": [542.6, 138.73, 6.52, 9.56], "category_id": 32, "id": 1443226}, {"segmentation": [[536.68, 186.43, 531.87, 230.67, 536.68, 257.6, 517.45, 269.14, 511.68, 274.91, 500.13, 266.26, 492.44, 257.6, 487.63, 250.87, 493.4, 231.63, 504.94, 208.55, 506.87, 195.08, 521.29, 183.54, 527.07, 181.62, 530.91, 186.43]], "area": 2936.5205499999993, "iscrowd": 0, "image_id": 518110, "bbox": [487.63, 181.62, 49.05, 93.29], "category_id": 32, "id": 1443254}, {"segmentation": [[639.09, 135.17, 632.69, 168.6, 637.43, 173.76, 639.5, 170.46]], "area": 132.94274999999905, "iscrowd": 0, "image_id": 579533, "bbox": [632.69, 135.17, 6.81, 38.59], "category_id": 32, "id": 1443414}, {"segmentation": [[192.44, 140.09, 190.6, 147.47, 194.4, 169.96, 198.09, 171.34, 203.17, 171.0, 210.43, 165.69, 206.17, 138.83, 201.78, 137.1, 197.75, 138.48]], "area": 510.79759999999993, "iscrowd": 0, "image_id": 20251, "bbox": [190.6, 137.1, 19.83, 34.24], "category_id": 33, "id": 1444017}, {"segmentation": [[286.36, 505.58, 290.08, 408.37, 249.83, 398.47, 177.39, 407.13, 182.34, 467.81, 205.25, 521.06, 283.89, 517.97]], "area": 11895.186199999996, "iscrowd": 0, "image_id": 114540, "bbox": [177.39, 398.47, 112.69, 122.59], "category_id": 33, "id": 1444493}, {"segmentation": [[134.05, 303.42, 118.2, 410.09, 249.37, 449.01, 309.91, 440.36, 325.77, 322.16, 216.22, 300.54, 165.77, 299.1]], "area": 24867.24154999999, "iscrowd": 0, "image_id": 314126, "bbox": [118.2, 299.1, 207.57, 149.91], "category_id": 33, "id": 1444927}, {"segmentation": [[209.4, 337.28, 208.95, 307.84, 217.56, 305.58, 229.33, 306.94, 230.69, 339.99, 223.44, 342.26, 207.59, 342.26]], "area": 742.7798500000004, "iscrowd": 0, "image_id": 317153, "bbox": [207.59, 305.58, 23.1, 36.68], "category_id": 33, "id": 1445009}, {"segmentation": [[141.93, 309.54, 151.0, 313.12, 151.55, 338.96, 129.28, 343.91, 127.63, 337.58, 126.26, 314.21, 133.4, 309.82, 140.0, 309.82]], "area": 739.0962500000003, "iscrowd": 0, "image_id": 317153, "bbox": [126.26, 309.54, 25.29, 34.37], "category_id": 33, "id": 1446305}, {"segmentation": [[208.83, 340.29, 204.84, 308.18, 192.87, 308.18, 186.34, 310.0, 187.61, 341.19, 189.06, 345.0, 201.58, 344.64]], "area": 710.0410999999998, "iscrowd": 0, "image_id": 317153, "bbox": [186.34, 308.18, 22.49, 36.82], "category_id": 33, "id": 1446598}, {"segmentation": [[249.67, 347.59, 269.43, 342.65, 267.31, 320.43, 259.55, 310.19, 244.02, 311.96, 242.26, 314.07, 245.43, 349.36]], "area": 817.0701999999998, "iscrowd": 0, "image_id": 317153, "bbox": [242.26, 310.19, 27.17, 39.17], "category_id": 33, "id": 1446720}, {"segmentation": [[272.99, 339.73, 269.85, 336.59, 268.1, 311.42, 271.94, 307.23, 283.13, 305.83, 289.07, 307.23, 293.96, 313.87, 293.96, 334.49, 289.42, 340.43]], "area": 791.1575499999989, "iscrowd": 0, "image_id": 317153, "bbox": [268.1, 305.83, 25.86, 34.6], "category_id": 33, "id": 1447001}, {"segmentation": [[245.8, 296.87, 248.16, 307.93, 249.07, 310.29, 250.16, 310.65, 275.91, 304.66, 277.91, 303.21, 280.81, 303.21, 281.53, 302.31, 281.35, 300.67, 282.62, 299.59, 283.53, 298.13, 283.17, 295.05, 278.27, 285.62, 274.46, 282.54, 262.31, 282.36, 259.41, 284.71, 258.68, 286.16, 257.77, 285.98, 255.96, 285.44, 254.51, 284.35, 252.88, 284.17, 251.97, 285.44, 250.88, 286.16, 250.34, 286.71, 249.97, 286.71, 248.16, 287.07, 246.17, 287.98, 245.62, 289.07, 244.72, 290.52, 244.35, 291.79, 243.81, 293.96, 246.35, 297.41]], "area": 810.7937499999992, "iscrowd": 0, "image_id": 317153, "bbox": [243.81, 282.36, 39.72, 28.29], "category_id": 33, "id": 1447159}, {"segmentation": [[364.27, 115.08, 352.92, 116.75, 349.32, 164.36, 345.72, 187.34, 364.27, 182.35, 366.76, 177.09, 367.59, 140.0]], "area": 1129.8438499999984, "iscrowd": 0, "image_id": 13417, "bbox": [345.72, 115.08, 21.87, 72.26], "category_id": 33, "id": 1447197}, {"segmentation": [[412.97, 180.05, 403.76, 185.49, 395.8, 193.87, 388.69, 203.08, 386.59, 207.68, 381.57, 218.99, 381.99, 228.2, 381.99, 239.08, 383.66, 249.13, 384.08, 256.24, 377.8, 256.24, 382.41, 263.78, 387.01, 271.73, 379.89, 276.76, 383.24, 288.9, 386.59, 297.27, 381.15, 296.44, 373.2, 278.01, 356.03, 262.52, 356.45, 257.92, 371.52, 247.87, 366.92, 238.66, 365.66, 220.66, 367.75, 208.94, 366.5, 189.26, 377.8, 183.4, 387.85, 181.73, 405.01, 180.47, 410.46, 179.63]], "area": 2047.0851499999999, "iscrowd": 0, "image_id": 13417, "bbox": [356.03, 179.63, 56.94, 117.64], "category_id": 33, "id": 1447306}, {"segmentation": [[323.57, 310.17, 344.63, 304.42, 353.24, 340.8, 331.23, 346.54]], "area": 830.0712000000001, "iscrowd": 0, "image_id": 317153, "bbox": [323.57, 304.42, 29.67, 42.12], "category_id": 33, "id": 1447417}, {"segmentation": [[573.23, 108.68, 552.07, 4.81, 639.6, 0.0, 640.0, 89.45]], "area": 7586.894599999998, "iscrowd": 0, "image_id": 13417, "bbox": [552.07, 0.0, 87.93, 108.68], "category_id": 33, "id": 1447642}, {"segmentation": [[296.13, 143.46, 295.86, 169.15, 300.83, 181.02, 307.73, 179.92, 306.35, 176.05, 309.12, 167.77, 312.43, 151.19, 312.71, 138.21, 312.71, 137.11, 306.63, 137.11, 303.59, 137.94, 298.07, 139.32, 296.41, 145.12]], "area": 578.7505000000001, "iscrowd": 0, "image_id": 13417, "bbox": [295.86, 137.11, 16.85, 43.91], "category_id": 33, "id": 1447659}, {"segmentation": [[380.32, 79.62, 365.02, 88.88, 365.43, 116.25, 365.83, 164.55, 367.04, 179.44, 387.16, 174.61]], "area": 1709.5770000000014, "iscrowd": 0, "image_id": 13417, "bbox": [365.02, 79.62, 22.14, 99.82], "category_id": 33, "id": 1447756}, {"segmentation": [[322.4, 194.13, 311.23, 196.44, 307.76, 168.32, 312.77, 125.56, 322.02, 117.47, 328.57, 117.08]], "area": 1145.9404999999995, "iscrowd": 0, "image_id": 13417, "bbox": [307.76, 117.08, 20.81, 79.36], "category_id": 33, "id": 1447784}, {"segmentation": [[295.8, 162.86, 290.43, 162.86, 288.23, 163.35, 287.01, 167.51, 284.32, 169.46, 281.14, 172.39, 280.9, 180.21, 279.92, 188.77, 279.68, 191.45, 279.68, 196.34, 280.17, 202.45, 288.72, 204.4, 293.85, 204.16, 300.94, 200.25, 298.0, 175.57, 298.0, 172.39, 296.78, 168.48]], "area": 695.1158999999999, "iscrowd": 0, "image_id": 13417, "bbox": [279.68, 162.86, 21.26, 41.54], "category_id": 33, "id": 1447817}, {"segmentation": [[291.38, 168.87, 286.66, 167.69, 282.08, 165.77, 276.62, 161.93, 272.04, 155.73, 271.01, 150.71, 271.15, 147.02, 272.93, 144.66, 275.14, 142.44, 282.38, 142.88, 287.84, 143.92, 294.78, 147.46, 300.54, 152.93, 303.49, 157.06, 303.64, 162.67, 300.54, 166.07, 297.88, 162.52, 297.73, 160.75, 298.77, 157.36, 299.21, 155.73, 299.21, 155.29, 298.92, 154.84, 297.29, 154.55, 295.67, 155.29, 295.52, 155.58, 290.5, 151.45, 288.73, 148.5, 287.1, 147.17, 287.1, 147.17, 285.18, 146.28, 284.89, 146.28, 281.34, 144.66, 279.13, 144.51, 279.13, 144.51, 276.17, 146.43, 277.21, 147.61, 277.65, 147.76, 280.9, 150.56, 277.95, 149.82, 277.5, 150.56, 277.65, 151.45, 282.23, 155.73, 287.25, 159.72]], "area": 354.1111499999997, "iscrowd": 0, "image_id": 333324, "bbox": [271.01, 142.44, 32.63, 26.43], "category_id": 34, "id": 1448014}, {"segmentation": [[281.07, 338.17, 290.96, 333.23, 314.45, 332.4, 328.87, 333.64, 337.94, 340.23, 339.17, 349.3, 319.39, 359.19, 295.91, 362.9, 269.94, 359.19, 268.71, 352.59, 274.89, 346.83, 277.77, 346.0, 280.25, 342.29, 284.78, 339.41]], "area": 1578.7767000000006, "iscrowd": 0, "image_id": 66676, "bbox": [268.71, 332.4, 70.46, 30.5], "category_id": 34, "id": 1448513}, {"segmentation": [[304.49, 345.27, 308.23, 345.46, 316.08, 343.21, 316.92, 343.77, 308.33, 346.2, 305.9, 346.58, 304.12, 345.92], [310.57, 346.3, 319.72, 343.87, 320.47, 344.33, 315.15, 346.39, 310.94, 347.04, 309.45, 346.48]], "area": 20.475449999999952, "iscrowd": 0, "image_id": 45124, "bbox": [304.12, 343.21, 16.35, 3.83], "category_id": 35, "id": 1449254}, {"segmentation": [[52.9, 379.03, 64.95, 387.46, 74.58, 392.68, 113.12, 394.68, 214.29, 391.47, 212.69, 395.09, 89.03, 397.09, 64.95, 393.88, 52.9, 380.63], [27.61, 399.9, 53.7, 405.93, 201.45, 400.71, 203.05, 396.29, 64.54, 396.69, 27.21, 391.87, 26.81, 395.89]], "area": 1749.7816999999923, "iscrowd": 0, "image_id": 237841, "bbox": [26.81, 379.03, 187.48, 26.9], "category_id": 35, "id": 1452656}, {"segmentation": [[197.29, 353.69, 236.12, 348.84, 239.36, 343.18, 228.03, 345.6, 194.06, 343.99, 189.2, 350.46], [190.82, 340.75, 213.47, 339.94, 215.9, 339.13, 221.56, 337.52, 222.37, 337.52, 236.93, 334.28, 236.93, 341.56, 215.09, 343.99, 199.72, 343.18]], "area": 504.53769999999946, "iscrowd": 0, "image_id": 415946, "bbox": [189.2, 334.28, 50.16, 19.41], "category_id": 35, "id": 1453940}, {"segmentation": [[448.33, 326.58, 469.23, 325.13, 468.59, 323.53, 449.29, 325.46], [430.8, 326.9, 436.43, 326.74, 436.43, 328.03, 430.96, 327.71], [439.16, 325.94, 448.16, 325.78, 446.72, 327.71, 440.93, 327.39]], "area": 45.371050000000196, "iscrowd": 0, "image_id": 45124, "bbox": [430.8, 323.53, 38.43, 4.5], "category_id": 35, "id": 1454403}, {"segmentation": [[42.27, 191.85, 34.58, 192.93, 29.54, 193.78, 26.77, 196.3, 27.14, 198.7, 29.54, 199.42, 79.88, 191.73, 81.08, 188.85, 80.6, 186.09, 78.32, 184.77, 72.31, 184.65]], "area": 352.2602999999993, "iscrowd": 0, "image_id": 355111, "bbox": [26.77, 184.65, 54.31, 14.77], "category_id": 36, "id": 1456495}, {"segmentation": [[10.99, 43.19, 25.91, 39.46, 37.11, 35.5, 40.37, 35.03, 42.94, 35.73, 44.57, 39.93, 36.87, 43.66, 23.58, 46.69, 14.72, 47.86, 11.46, 47.16, 8.66, 44.36]], "area": 218.17019999999994, "iscrowd": 0, "image_id": 355111, "bbox": [8.66, 35.03, 35.91, 12.83], "category_id": 36, "id": 1456675}, {"segmentation": [[511.47, 323.32, 516.91, 325.36, 517.59, 329.44, 514.87, 330.12, 497.19, 330.8, 491.75, 328.08, 493.45, 323.32, 498.55, 323.32]], "area": 164.7300000000003, "iscrowd": 0, "image_id": 45124, "bbox": [491.75, 323.32, 25.84, 7.48], "category_id": 36, "id": 1456991}, {"segmentation": [[424.91, 330.92, 426.98, 331.35, 429.74, 331.35, 432.42, 330.49, 436.39, 330.05, 440.36, 329.45, 442.86, 328.41, 446.74, 327.21, 448.21, 328.07, 447.52, 329.79, 428.1, 332.9, 417.31, 334.02, 415.76, 332.04, 416.27, 330.92, 417.4, 330.31, 421.28, 331.18]], "area": 65.28059999999945, "iscrowd": 0, "image_id": 45124, "bbox": [415.76, 327.21, 32.45, 6.81], "category_id": 36, "id": 1457152}, {"segmentation": [[47.25, 78.26, 60.87, 78.85, 66.0, 78.65, 67.38, 77.07, 66.79, 75.69, 58.89, 75.1, 54.16, 74.9, 46.46, 74.9]], "area": 69.6869, "iscrowd": 0, "image_id": 289095, "bbox": [46.46, 74.9, 20.92, 3.95], "category_id": 36, "id": 1458075}, {"segmentation": [[27.86, 355.06, 33.98, 349.62, 46.21, 345.88, 55.39, 348.6, 62.87, 356.76, 61.85, 369.34, 55.39, 376.82, 49.61, 381.58, 38.39, 382.94, 28.54, 376.82, 23.78, 365.26]], "area": 1064.6436999999992, "iscrowd": 0, "image_id": 156170, "bbox": [23.78, 345.88, 39.09, 37.06], "category_id": 37, "id": 1458909}, {"segmentation": [[378.25, 238.34, 361.76, 246.3, 343.57, 265.06, 335.04, 287.24, 336.18, 310.55, 346.98, 332.15, 367.45, 348.64, 393.03, 358.3, 415.2, 358.3, 435.1, 354.89, 454.43, 345.23, 469.78, 332.15, 481.15, 317.37, 487.4, 301.45, 488.54, 287.24, 485.7, 275.87, 482.86, 266.77, 478.31, 258.24, 467.51, 267.34, 456.14, 280.41, 447.04, 284.96, 433.39, 283.26, 426.57, 275.87, 423.16, 270.75, 417.48, 263.93, 415.2, 258.24, 413.5, 239.48, 407.24, 244.03, 404.4, 247.44, 397.01, 245.73, 394.73, 246.87, 385.07, 242.32, 378.82, 237.78]], "area": 12649.391700000002, "iscrowd": 0, "image_id": 82091, "bbox": [335.04, 237.78, 153.5, 120.52], "category_id": 37, "id": 1459769}, {"segmentation": [[158.52, 270.42, 151.44, 268.07, 149.76, 263.01, 147.73, 256.95, 148.41, 252.23, 150.77, 250.54, 153.46, 249.53, 157.84, 249.2, 164.92, 249.87, 168.62, 252.23, 172.67, 255.26, 173.68, 259.64, 174.35, 262.34, 174.35, 266.04, 174.02, 268.4, 172.67, 270.09, 169.3, 270.42, 163.91, 269.75]], "area": 464.7097000000004, "iscrowd": 0, "image_id": 349052, "bbox": [147.73, 249.2, 26.62, 21.22], "category_id": 37, "id": 1460077}, {"segmentation": [[21.01, 280.22, 14.26, 277.37, 12.78, 274.52, 14.99, 272.31, 18.37, 270.83, 24.81, 273.15, 30.72, 274.94]], "area": 92.19135000000045, "iscrowd": 0, "image_id": 184877, "bbox": [12.78, 270.83, 17.94, 9.39], "category_id": 37, "id": 1461256}, {"segmentation": [[392.26, 116.58, 391.48, 123.5, 389.26, 125.19, 387.83, 122.32, 388.61, 118.27, 389.26, 116.32, 391.22, 115.53]], "area": 28.66470000000008, "iscrowd": 0, "image_id": 50429, "bbox": [387.83, 115.53, 4.43, 9.66], "category_id": 37, "id": 1461638}, {"segmentation": [[109.43, 401.25, 113.68, 392.76, 121.91, 391.7, 128.54, 391.7, 130.93, 394.35, 128.54, 407.09, 122.17, 408.69, 121.11, 402.85, 117.39, 400.99, 111.55, 400.72]], "area": 220.69520000000023, "iscrowd": 0, "image_id": 456433, "bbox": [109.43, 391.7, 21.5, 16.99], "category_id": 37, "id": 1462147}, {"segmentation": [[99.1, 405.21, 104.05, 401.84, 108.01, 401.25, 113.94, 401.05, 118.89, 403.43, 121.47, 406.99, 122.26, 416.69, 117.71, 422.04, 113.55, 424.41, 107.61, 424.61, 103.06, 423.23, 100.28, 420.26, 97.91, 417.29, 96.13, 412.73, 97.32, 407.59, 98.9, 405.61]], "area": 482.9475500000005, "iscrowd": 0, "image_id": 456433, "bbox": [96.13, 401.05, 26.13, 23.56], "category_id": 37, "id": 1462223}, {"segmentation": [[6.61, 410.17, 8.93, 407.38, 14.49, 406.15, 19.29, 408.62, 23.0, 413.11, 26.86, 422.38, 26.86, 426.25, 24.85, 427.0, 3.51, 427.0, 1.66, 423.93, 1.04, 418.05, 2.59, 413.72, 5.52, 411.1, 9.23, 408.47]], "area": 414.7290499999998, "iscrowd": 0, "image_id": 456433, "bbox": [1.04, 406.15, 25.82, 20.85], "category_id": 37, "id": 1462297}, {"segmentation": [[32.47, 384.75, 37.58, 380.32, 42.69, 380.66, 44.39, 381.35, 46.44, 382.37, 48.14, 383.39, 48.48, 385.78, 48.48, 388.16, 48.48, 390.55, 47.8, 391.57, 46.44, 392.59, 43.71, 392.59, 42.35, 392.59, 39.28, 391.91, 36.9, 389.86, 34.51, 388.5, 33.49, 388.16]], "area": 148.5432499999999, "iscrowd": 0, "image_id": 456433, "bbox": [32.47, 380.32, 16.01, 12.27], "category_id": 37, "id": 1462327}, {"segmentation": [[36.31, 426.81, 31.12, 418.73, 34.58, 410.94, 39.49, 404.88, 46.7, 404.3, 52.76, 404.88, 58.53, 413.25, 58.82, 421.9, 54.2, 427.0]], "area": 503.98744999999997, "iscrowd": 0, "image_id": 456433, "bbox": [31.12, 404.3, 27.7, 22.7], "category_id": 37, "id": 1462470}, {"segmentation": [[426.29, 234.14, 427.88, 232.76, 429.58, 230.95, 431.6, 230.73, 432.77, 229.67, 434.47, 229.03, 436.6, 229.78, 438.41, 231.69, 442.24, 233.39, 443.83, 235.41, 446.7, 235.84, 447.24, 238.92, 445.32, 241.69, 441.28, 239.24, 439.79, 239.56, 438.3, 238.5, 435.22, 238.29, 434.47, 239.45, 432.14, 238.82, 431.5, 237.65, 429.58, 236.8, 428.52, 236.16, 427.67, 236.48, 427.46, 237.01, 426.18, 236.48]], "area": 137.78675000000024, "iscrowd": 0, "image_id": 274881, "bbox": [426.18, 229.03, 21.06, 12.66], "category_id": 38, "id": 1462953}, {"segmentation": [[141.7, 151.75, 138.02, 146.11, 136.55, 144.64, 134.58, 145.86, 134.34, 142.43, 132.62, 139.24, 134.34, 138.51, 136.3, 140.71, 138.51, 141.45, 139.24, 144.15, 143.41, 150.52, 143.41, 152.24, 142.92, 152.24]], "area": 41.85030000000001, "iscrowd": 0, "image_id": 476575, "bbox": [132.62, 138.51, 10.79, 13.73], "category_id": 38, "id": 1463018}, {"segmentation": [[456.4, 195.83, 448.17, 156.75, 457.77, 128.64, 474.23, 112.87, 504.4, 103.27, 531.14, 103.27, 553.77, 112.87, 570.91, 138.23, 580.51, 161.55, 586.68, 175.95, 573.65, 197.2, 568.85, 184.17, 558.57, 145.09, 541.42, 140.29, 517.43, 143.03, 492.06, 156.75, 472.86, 180.75, 456.4, 193.77]], "area": 6003.095549999996, "iscrowd": 0, "image_id": 352426, "bbox": [448.17, 103.27, 138.51, 93.93], "category_id": 38, "id": 1463315}, {"segmentation": [[344.41, 202.16, 345.21, 197.9, 355.06, 203.49, 359.05, 206.15, 365.97, 206.68, 370.22, 208.28, 379.27, 213.34, 389.12, 217.33, 397.37, 217.86, 396.57, 219.46, 392.84, 218.66, 387.26, 217.33, 379.54, 214.67, 372.09, 210.68, 359.58, 208.01]], "area": 102.10569999999966, "iscrowd": 0, "image_id": 274881, "bbox": [344.41, 197.9, 52.96, 21.56], "category_id": 38, "id": 1464388}, {"segmentation": [[254.95, 372.9, 258.34, 368.26, 259.31, 367.47, 258.29, 366.85, 252.92, 367.52, 251.05, 368.32, 250.43, 368.71, 250.65, 369.22, 246.92, 369.73, 242.45, 371.65, 238.61, 375.5, 232.5, 380.42, 232.95, 382.68, 235.84, 380.93, 239.4, 375.95, 243.08, 374.25, 249.47, 370.86, 251.11, 370.58, 251.22, 371.43, 248.22, 374.54, 245.06, 376.18, 241.49, 378.83, 238.04, 381.77, 234.54, 384.15, 235.84, 385.73, 242.68, 380.76, 247.43, 376.74, 252.86, 373.91, 255.01, 373.12, 255.12, 372.78]], "area": 119.06125000000014, "iscrowd": 0, "image_id": 574668, "bbox": [232.5, 366.85, 26.81, 18.88], "category_id": 38, "id": 1464644}, {"segmentation": [[161.32, 126.75, 161.81, 123.09, 163.27, 122.84, 164.25, 124.55, 161.81, 126.26]], "area": 6.014850000000014, "iscrowd": 0, "image_id": 560350, "bbox": [161.32, 122.84, 2.93, 3.91], "category_id": 38, "id": 1465214}, {"segmentation": [[278.93, 265.4, 297.8, 252.53, 304.88, 243.74, 316.67, 238.38, 321.82, 235.59, 318.38, 230.44, 315.38, 229.59, 308.09, 229.8, 303.59, 231.09, 300.37, 234.73, 290.29, 249.96, 282.15, 258.96, 281.93, 259.61, 280.0, 261.75]], "area": 396.6472999999998, "iscrowd": 0, "image_id": 404964, "bbox": [278.93, 229.59, 42.89, 35.81], "category_id": 38, "id": 1465766}, {"segmentation": [[199.2, 8.04, 201.42, 13.36, 203.26, 12.1, 215.84, 16.36, 215.65, 15.49, 205.2, 9.97, 206.36, 4.65, 203.36, 3.88, 201.42, 5.52, 199.29, 6.97]], "area": 62.72565000000009, "iscrowd": 0, "image_id": 119093, "bbox": [199.2, 3.88, 16.64, 12.48], "category_id": 38, "id": 1468163}, {"segmentation": [[69.77, 214.58, 82.88, 215.91, 88.66, 215.91, 93.32, 216.8, 97.55, 217.24, 101.77, 219.91, 102.21, 223.24, 100.66, 226.35, 97.1, 227.91, 87.77, 228.8, 79.33, 231.24, 74.22, 231.68, 68.89, 231.24, 62.66, 231.24, 55.78, 233.02, 41.11, 234.35, 34.67, 233.68, 29.12, 233.91, 23.78, 233.02, 20.45, 231.46, 14.23, 230.13, 11.79, 225.91, 12.9, 221.24, 18.23, 215.24, 22.67, 213.69, 27.34, 213.24, 28.89, 212.36, 38.45, 213.24, 42.45, 214.36, 50.89, 213.02, 56.0, 212.13, 61.78, 213.02, 64.89, 213.24, 70.44, 214.8]], "area": 1506.7116999999996, "iscrowd": 0, "image_id": 36113, "bbox": [11.79, 212.13, 90.42, 22.22], "category_id": 40, "id": 1471752}, {"segmentation": [[77.44, 164.63, 85.23, 162.09, 102.61, 155.94, 114.01, 155.03, 115.64, 158.11, 112.57, 161.73, 106.59, 163.36, 111.12, 164.63, 113.11, 165.53, 112.93, 168.43, 111.12, 168.97, 108.22, 167.16, 97.72, 167.16, 97.36, 171.51, 95.73, 175.31, 78.35, 173.5, 75.45, 169.15, 74.91, 166.08]], "area": 449.3299, "iscrowd": 0, "image_id": 45949, "bbox": [74.91, 155.03, 40.73, 20.28], "category_id": 41, "id": 1474047}, {"segmentation": [[285.71, 125.49, 290.01, 136.0, 288.58, 174.2, 285.71, 181.84, 283.8, 186.61, 281.41, 192.82, 279.5, 195.21, 277.12, 198.55, 272.82, 202.37, 271.39, 201.42, 268.52, 199.98, 265.18, 196.64, 265.66, 193.3, 272.34, 191.39, 275.21, 191.39, 278.07, 190.43, 278.07, 186.14, 277.59, 184.7, 279.03, 131.22, 270.91, 126.93, 265.66, 125.02, 266.61, 117.38, 269.0, 115.94, 274.25, 117.85, 277.12, 118.33, 279.5, 118.33, 282.85, 121.2, 284.28, 122.63]], "area": 920.0888000000008, "iscrowd": 0, "image_id": 1431, "bbox": [265.18, 115.94, 24.83, 86.43], "category_id": 41, "id": 1474798}, {"segmentation": [[314.39, 375.61, 300.19, 382.94, 295.22, 390.52, 294.27, 395.73, 295.22, 403.07, 298.53, 408.51, 305.63, 412.06, 314.16, 413.01, 324.57, 402.36, 336.17, 392.41, 341.14, 384.84, 355.82, 373.48, 378.31, 355.72, 366.47, 351.22, 360.55, 349.57, 339.72, 359.51, 325.52, 368.27, 320.78, 366.85, 321.02, 362.59, 316.76, 359.27, 312.03, 358.8, 309.18, 362.82, 307.53, 367.56, 308.95, 372.77, 313.45, 375.84]], "area": 2254.4639500000008, "iscrowd": 0, "image_id": 275917, "bbox": [294.27, 349.57, 84.04, 63.44], "category_id": 41, "id": 1475334}, {"segmentation": [[281.49, 234.52, 340.74, 175.27, 345.93, 180.46, 284.95, 242.3]], "area": 651.7028999999993, "iscrowd": 0, "image_id": 244520, "bbox": [281.49, 175.27, 64.44, 67.03], "category_id": 39, "id": 1475638}, {"segmentation": [[8.55, 169.1, 38.51, 135.23, 45.03, 127.84, 52.41, 121.33, 58.05, 120.9, 58.05, 126.98, 55.88, 135.66, 57.19, 143.04, 55.01, 143.04, 48.94, 145.65, 41.55, 149.12, 35.91, 167.36, 32.0, 173.44, 26.35, 172.14, 18.97, 173.01, 14.63, 174.74, 10.29, 173.01, 6.38, 173.01]], "area": 983.7142500000002, "iscrowd": 0, "image_id": 151322, "bbox": [6.38, 120.9, 51.67, 53.84], "category_id": 41, "id": 1477631}, {"segmentation": [[285.56, 364.49, 288.83, 405.13, 283.59, 400.54, 279.66, 359.9, 285.56, 351.38], [292.11, 433.97, 298.67, 503.45, 291.46, 515.9, 281.62, 527.7, 267.2, 529.01, 257.37, 521.15, 269.83, 515.9, 286.87, 460.19]], "area": 1643.6544500000014, "iscrowd": 0, "image_id": 128770, "bbox": [257.37, 351.38, 41.3, 177.63], "category_id": 41, "id": 1477688}, {"segmentation": [[242.02, 179.82, 235.46, 167.37, 214.49, 150.98, 188.27, 140.49, 171.23, 137.87, 181.71, 106.41, 186.3, 74.94, 195.48, 53.97, 210.55, 53.31, 226.29, 71.01, 228.25, 91.99, 243.33, 140.49, 244.64, 156.22, 242.02, 172.61]], "area": 4918.589349999999, "iscrowd": 0, "image_id": 446266, "bbox": [171.23, 53.31, 73.41, 126.51], "category_id": 44, "id": 1482991}, {"segmentation": [[127.9, 199.43, 128.93, 200.84, 132.38, 205.93, 134.19, 209.02, 135.47, 232.62, 123.12, 232.07, 120.21, 232.07, 119.49, 209.2, 121.49, 206.11, 121.3, 191.4, 127.66, 189.41, 128.02, 199.21, 127.98, 198.59]], "area": 503.04785000000015, "iscrowd": 0, "image_id": 222572, "bbox": [119.49, 189.41, 15.98, 43.21], "category_id": 44, "id": 1483053}, {"segmentation": [[143.58, 328.42, 143.58, 323.71, 143.13, 320.57, 143.13, 318.1, 143.58, 316.08, 144.93, 312.94, 145.15, 312.27, 146.72, 304.87, 147.17, 305.09, 149.41, 314.74, 150.31, 317.88, 150.54, 329.32]], "area": 122.83359999999985, "iscrowd": 0, "image_id": 332065, "bbox": [143.13, 304.87, 7.41, 24.45], "category_id": 44, "id": 1483854}, {"segmentation": [[365.97, 362.52, 366.23, 350.84, 364.84, 347.32, 364.72, 343.18, 359.19, 342.93, 358.44, 345.94, 355.93, 350.46, 356.68, 367.04, 363.46, 369.3]], "area": 220.37240000000028, "iscrowd": 0, "image_id": 502517, "bbox": [355.93, 342.93, 10.3, 26.37], "category_id": 44, "id": 1483915}, {"segmentation": [[346.94, 280.3, 343.65, 286.13, 336.0, 307.63, 325.8, 307.27, 321.79, 298.52, 325.43, 291.6, 331.63, 280.3, 339.28, 267.18, 341.1, 263.9, 345.48, 258.79, 350.22, 253.69, 350.94, 249.32, 358.96, 251.14, 359.69, 251.87, 359.69, 256.24, 356.05, 263.9, 354.95, 266.08, 356.41, 269.36, 356.78, 271.91, 356.05, 275.19, 350.22, 278.48]], "area": 875.5869499999991, "iscrowd": 0, "image_id": 428340, "bbox": [321.79, 249.32, 37.9, 58.31], "category_id": 44, "id": 1484077}, {"segmentation": [[397.24, 389.77, 431.36, 387.76, 448.76, 380.4, 456.11, 387.09, 456.11, 391.77, 454.78, 397.8, 442.73, 401.14, 444.74, 405.15, 445.41, 412.51, 446.08, 416.53, 448.09, 423.22, 448.09, 427.23, 448.09, 429.24, 448.09, 429.24, 448.09, 432.58, 448.09, 433.0, 391.89, 431.92, 391.22, 411.85, 396.57, 403.82, 397.91, 391.77, 397.91, 391.77]], "area": 2498.351600000001, "iscrowd": 0, "image_id": 319917, "bbox": [391.22, 380.4, 64.89, 52.6], "category_id": 44, "id": 1484603}, {"segmentation": [[296.09, 427.01, 296.09, 402.54, 297.32, 379.29, 299.76, 373.18, 296.09, 362.16, 299.76, 356.05, 309.55, 348.71, 321.79, 351.15, 327.91, 358.49, 324.24, 365.84, 334.02, 397.65, 335.25, 419.67, 321.79, 435.58, 316.89, 436.8, 308.33, 436.8]], "area": 2739.8692500000025, "iscrowd": 0, "image_id": 461530, "bbox": [296.09, 348.71, 39.16, 88.09], "category_id": 44, "id": 1484706}, {"segmentation": [[122.1, 327.6, 124.85, 341.35, 117.52, 347.76, 123.02, 397.25, 130.35, 398.16, 144.1, 395.41, 142.26, 380.75, 141.35, 348.68, 137.68, 345.01, 134.02, 324.85]], "area": 1380.6422000000002, "iscrowd": 0, "image_id": 17580, "bbox": [117.52, 324.85, 26.58, 73.31], "category_id": 44, "id": 1485222}, {"segmentation": [[396.2, 195.14, 394.38, 168.26, 395.29, 151.4, 399.85, 145.48, 399.85, 141.84, 409.41, 143.2, 409.41, 146.85, 413.51, 150.04, 412.6, 166.44, 413.06, 179.2, 404.86, 181.93, 404.86, 187.85, 408.5, 192.86, 409.87, 194.23, 410.78, 194.69, 403.95, 194.69]], "area": 787.6973000000004, "iscrowd": 0, "image_id": 14812, "bbox": [394.38, 141.84, 19.13, 53.3], "category_id": 44, "id": 1485234}, {"segmentation": [[373.44, 181.26, 372.43, 141.44, 367.05, 137.24, 366.55, 133.88, 358.48, 134.55, 358.48, 139.76, 354.95, 143.12, 354.78, 168.49, 355.79, 183.28, 366.21, 184.45]], "area": 826.2810000000004, "iscrowd": 0, "image_id": 14812, "bbox": [354.78, 133.88, 18.66, 50.57], "category_id": 44, "id": 1485349}, {"segmentation": [[247.0, 125.82, 246.69, 129.66, 246.19, 130.77, 245.64, 133.3, 245.64, 135.53, 245.64, 137.2, 247.37, 139.24, 248.98, 140.53, 250.21, 140.72, 250.46, 132.07, 250.4, 130.58, 249.1, 129.53, 249.1, 127.25, 249.22, 125.27, 248.91, 124.84, 248.73, 124.77, 247.68, 124.53, 247.37, 125.02, 247.31, 125.14, 247.31, 125.7, 247.31, 125.89]], "area": 54.96245000000013, "iscrowd": 0, "image_id": 102315, "bbox": [245.64, 124.53, 4.82, 16.19], "category_id": 44, "id": 1485694}, {"segmentation": [[106.4, 371.83, 111.51, 382.63, 113.21, 388.87, 113.78, 413.01, 112.64, 420.68, 105.54, 423.23, 97.59, 410.17, 93.62, 405.91, 80.27, 404.21, 78.85, 397.11, 79.99, 385.75, 84.25, 376.09, 85.1, 372.69, 84.53, 368.99, 84.53, 364.17, 87.37, 361.04, 99.3, 359.06, 105.83, 361.33, 107.25, 370.98]], "area": 1510.9837000000002, "iscrowd": 0, "image_id": 509702, "bbox": [78.85, 359.06, 34.93, 64.17], "category_id": 44, "id": 1485939}, {"segmentation": [[564.0, 52.11, 542.95, 73.16, 542.95, 85.18, 542.13, 88.46, 534.48, 89.56, 529.83, 85.46, 528.46, 79.99, 529.83, 72.34, 534.48, 67.41, 564.82, 45.27, 568.64, 42.54, 570.01, 44.73]], "area": 515.7271499999994, "iscrowd": 0, "image_id": 510371, "bbox": [528.46, 42.54, 41.55, 47.02], "category_id": 44, "id": 1486009}, {"segmentation": [[317.33, 329.84, 310.12, 331.86, 302.33, 331.0, 308.97, 317.73, 309.54, 311.38, 310.99, 307.92, 313.0, 306.47, 315.89, 308.2, 315.6, 313.4, 315.02, 318.59, 316.76, 323.78]], "area": 207.8011499999995, "iscrowd": 0, "image_id": 37433, "bbox": [302.33, 306.47, 15.0, 25.39], "category_id": 44, "id": 1486409}, {"segmentation": [[329.93, 152.04, 328.01, 153.68, 327.32, 154.37, 327.19, 154.64, 327.6, 156.15, 327.87, 156.15, 328.83, 156.29, 329.52, 157.11, 326.09, 160.68, 325.68, 163.01, 325.68, 163.56, 324.03, 164.79, 323.76, 165.2, 323.76, 166.16, 324.17, 168.49, 324.17, 172.06, 322.66, 173.29, 322.52, 173.29, 321.84, 175.62, 321.43, 180.28, 321.43, 182.2, 321.56, 182.34, 322.93, 183.03, 323.07, 183.03, 324.58, 183.3, 332.26, 183.44, 332.53, 183.3, 333.49, 182.07, 333.77, 181.66, 334.45, 179.46, 334.45, 179.46, 335.0, 177.54, 335.0, 177.27, 335.0, 173.15, 334.45, 172.19, 333.77, 164.38, 333.08, 162.32, 332.12, 161.36, 330.89, 158.62, 331.3, 155.74, 331.85, 154.51, 331.3, 152.59]], "area": 272.91794999999996, "iscrowd": 0, "image_id": 408829, "bbox": [321.43, 152.04, 13.57, 31.4], "category_id": 44, "id": 1487280}, {"segmentation": [[110.09, 337.64, 116.15, 339.8, 117.01, 346.29, 120.47, 352.77, 123.07, 399.05, 116.58, 402.51, 113.55, 401.21]], "area": 562.5067999999998, "iscrowd": 0, "image_id": 17580, "bbox": [110.09, 337.64, 12.98, 64.87], "category_id": 44, "id": 1487607}, {"segmentation": [[79.63, 208.04, 78.71, 214.22, 78.31, 223.29, 75.81, 221.85, 73.84, 217.9, 72.4, 207.65, 72.13, 205.02, 72.13, 202.39, 75.55, 201.87, 79.1, 202.13, 79.1, 206.2]], "area": 115.26859999999989, "iscrowd": 0, "image_id": 1431, "bbox": [72.13, 201.87, 7.5, 21.42], "category_id": 44, "id": 1487610}, {"segmentation": [[318.11, 202.72, 317.99, 192.06, 319.91, 191.22, 320.15, 187.75, 322.43, 188.23, 322.66, 192.06, 322.54, 203.68]], "area": 61.83145000000019, "iscrowd": 0, "image_id": 53361, "bbox": [317.99, 187.75, 4.67, 15.93], "category_id": 44, "id": 1487702}, {"segmentation": [[574.61, 45.51, 542.1, 74.45, 546.33, 85.83, 555.43, 88.1, 559.66, 78.35, 569.09, 61.12, 592.49, 39.01, 602.25, 31.21]], "area": 643.9908999999989, "iscrowd": 0, "image_id": 510371, "bbox": [542.1, 31.21, 60.15, 56.89], "category_id": 44, "id": 1487743}, {"segmentation": [[368.56, 328.08, 362.27, 324.08, 360.55, 319.5, 366.27, 307.49, 369.71, 300.91, 372.57, 294.91, 371.42, 292.34, 374.28, 287.76, 374.28, 287.47, 380.29, 284.04, 384.29, 268.31, 385.72, 264.88, 390.58, 263.45, 399.16, 264.88, 402.31, 270.6, 397.45, 270.31, 394.59, 275.46, 389.73, 286.33, 380.0, 302.63, 377.43, 312.93]], "area": 783.0851999999998, "iscrowd": 0, "image_id": 428340, "bbox": [360.55, 263.45, 41.76, 64.63], "category_id": 44, "id": 1487744}, {"segmentation": [[211.68, 164.54, 215.07, 164.69, 216.46, 174.26, 220.01, 179.81, 219.39, 199.09, 213.53, 199.71, 211.53, 198.94, 209.68, 178.27, 211.68, 174.72]], "area": 258.4328999999997, "iscrowd": 0, "image_id": 110484, "bbox": [209.68, 164.54, 10.33, 35.17], "category_id": 44, "id": 1487904}, {"segmentation": [[326.79, 193.07, 327.88, 201.61, 327.81, 203.85, 327.49, 204.17, 323.39, 204.43, 322.23, 202.89, 321.85, 194.87, 322.17, 192.49, 322.87, 191.85, 323.13, 191.34, 323.0, 189.09, 323.51, 188.52, 326.47, 188.45, 326.72, 190.63]], "area": 77.21969999999996, "iscrowd": 0, "image_id": 53361, "bbox": [321.85, 188.45, 6.03, 15.98], "category_id": 44, "id": 1488456}, {"segmentation": [[501.32, 77.86, 500.21, 76.55, 500.31, 73.0, 501.02, 70.68, 502.54, 69.46, 502.74, 62.07, 501.22, 58.23, 501.83, 55.69, 503.15, 53.76, 503.25, 47.07, 503.35, 42.52, 507.4, 42.62, 507.4, 52.84, 508.81, 56.29, 508.61, 59.32, 507.5, 61.85, 507.6, 68.95, 509.12, 70.88, 510.03, 73.1, 509.72, 75.94, 508.91, 77.86]], "area": 209.96974999999986, "iscrowd": 0, "image_id": 416047, "bbox": [500.21, 42.52, 9.82, 35.34], "category_id": 44, "id": 1488556}, {"segmentation": [[79.47, 177.59, 76.08, 182.69, 74.57, 189.1, 74.0, 193.06, 75.7, 206.84, 85.7, 206.84, 87.21, 203.82, 88.53, 201.74, 88.15, 194.2, 88.15, 189.86, 84.19, 181.93, 82.49, 178.72, 82.12, 176.65, 80.98, 176.65, 79.1, 176.84]], "area": 333.9804500000001, "iscrowd": 0, "image_id": 401182, "bbox": [74.0, 176.65, 14.53, 30.19], "category_id": 44, "id": 1488722}, {"segmentation": [[287.04, 233.66, 288.15, 245.88, 283.05, 252.32, 283.93, 276.09, 286.6, 276.76, 295.71, 275.87, 299.26, 275.42, 299.93, 274.76, 302.59, 272.31, 302.37, 269.2, 300.82, 249.66, 295.71, 245.88, 297.04, 235.0, 297.04, 232.78, 291.26, 230.78, 288.15, 233.44]], "area": 645.1795499999998, "iscrowd": 0, "image_id": 434047, "bbox": [283.05, 230.78, 19.54, 45.98], "category_id": 44, "id": 1488749}, {"segmentation": [[587.89, 86.51, 596.1, 59.15, 618.68, 37.95, 630.99, 29.01, 639.88, 31.07, 629.62, 48.17, 608.42, 69.3, 605.0, 87.77]], "area": 1037.8505999999998, "iscrowd": 0, "image_id": 510371, "bbox": [587.89, 29.01, 51.99, 58.76], "category_id": 44, "id": 1488780}, {"segmentation": [[553.91, 404.23, 540.89, 397.72, 528.25, 398.48, 527.1, 413.8, 526.72, 421.08, 524.8, 457.09, 523.65, 479.3, 551.23, 479.3, 552.77, 419.55]], "area": 2120.92895, "iscrowd": 0, "image_id": 146513, "bbox": [523.65, 397.72, 30.26, 81.58], "category_id": 44, "id": 1489241}, {"segmentation": [[310.7, 304.85, 307.58, 281.43, 306.8, 246.3, 309.92, 219.76, 298.21, 203.36, 297.43, 184.63, 284.16, 178.38, 272.45, 179.94, 272.45, 193.99, 272.45, 202.58, 255.28, 213.51, 263.08, 250.98, 260.74, 271.28, 258.4, 289.23, 256.06, 293.14, 267.77, 321.24, 290.41, 318.9, 304.46, 316.56, 310.7, 307.19]], "area": 6016.374199999999, "iscrowd": 0, "image_id": 246356, "bbox": [255.28, 178.38, 55.42, 142.86], "category_id": 44, "id": 1489490}, {"segmentation": [[22.61, 420.98, 21.43, 395.81, 19.19, 393.7, 17.87, 392.25, 17.48, 388.57, 12.34, 388.57, 12.34, 389.62, 11.81, 390.28, 11.81, 392.39, 10.36, 395.02, 9.96, 396.73, 9.57, 417.55, 9.7, 420.58, 14.05, 422.56, 18.92, 422.03, 19.19, 422.03]], "area": 371.3054499999999, "iscrowd": 0, "image_id": 444214, "bbox": [9.57, 388.57, 13.04, 33.99], "category_id": 44, "id": 1489805}, {"segmentation": [[487.53, 42.67, 487.38, 56.63, 485.69, 59.09, 485.84, 66.15, 482.93, 74.58, 484.46, 78.57, 492.75, 79.19, 495.66, 75.35, 494.43, 68.45, 492.59, 62.0, 491.67, 58.01, 491.21, 54.33, 491.83, 42.37, 488.76, 42.06]], "area": 254.10480000000024, "iscrowd": 0, "image_id": 416047, "bbox": [482.93, 42.06, 12.73, 37.13], "category_id": 44, "id": 1489812}, {"segmentation": [[344.03, 276.42, 344.56, 237.68, 345.09, 234.49, 347.21, 232.37, 347.21, 224.41, 347.74, 213.79, 348.27, 211.14, 351.46, 207.95, 351.46, 202.12, 349.87, 195.22, 348.8, 194.16, 348.8, 192.03, 352.52, 191.5, 362.6, 190.97, 367.91, 190.97, 372.16, 190.97, 372.16, 194.16, 370.03, 195.75, 366.85, 195.75, 357.83, 197.34, 359.42, 202.12, 358.36, 205.3, 360.48, 207.95, 363.13, 209.55, 363.13, 214.85, 363.13, 220.16, 363.13, 223.88, 364.2, 227.06, 366.32, 230.78, 365.79, 233.96, 366.32, 242.45, 369.5, 282.26, 369.5, 283.32]], "area": 1686.1532500000012, "iscrowd": 0, "image_id": 434047, "bbox": [344.03, 190.97, 28.13, 92.35], "category_id": 44, "id": 1489982}, {"segmentation": [[82.66, 379.1, 82.75, 376.58, 83.1, 374.66, 87.36, 374.75, 87.18, 378.05, 89.97, 379.45, 90.14, 391.27, 89.97, 396.31, 90.14, 397.01, 90.57, 397.61, 91.27, 401.0, 91.36, 406.65, 90.66, 408.31, 84.58, 409.61, 82.49, 406.57, 80.75, 403.96, 78.58, 401.87, 77.97, 394.22, 79.27, 388.23, 81.53, 379.36]], "area": 339.03934999999984, "iscrowd": 0, "image_id": 444214, "bbox": [77.97, 374.66, 13.39, 34.95], "category_id": 44, "id": 1490312}, {"segmentation": [[613.4, 42.99, 595.75, 60.04, 589.47, 68.72, 584.98, 78.59, 583.48, 87.26, 569.12, 87.86, 569.72, 81.58, 571.22, 70.51, 575.41, 63.93, 596.35, 46.88, 602.93, 41.19, 606.52, 38.5, 617.59, 29.23, 622.37, 29.23, 624.47, 33.12]], "area": 827.6767500000003, "iscrowd": 0, "image_id": 510371, "bbox": [569.12, 29.23, 55.35, 58.63], "category_id": 44, "id": 1490846}, {"segmentation": [[504.88, 472.79, 508.5, 405.84, 510.76, 391.82, 521.62, 390.46, 530.66, 398.15, 523.43, 480.0, 509.86, 479.12, 505.33, 474.6]], "area": 1751.5062999999973, "iscrowd": 0, "image_id": 146513, "bbox": [504.88, 390.46, 25.78, 89.54], "category_id": 44, "id": 1490969}, {"segmentation": [[640.0, 259.92, 611.6, 312.09, 594.61, 390.96, 585.51, 447.99, 578.23, 480.0, 640.0, 479.53]], "area": 8345.026199999998, "iscrowd": 0, "image_id": 441419, "bbox": [578.23, 259.92, 61.77, 220.08], "category_id": 44, "id": 1491408}, {"segmentation": [[191.91, 363.42, 191.52, 366.48, 191.91, 371.45, 194.2, 371.84, 191.91, 394.04, 189.61, 403.22, 199.56, 416.24, 201.09, 441.11, 210.66, 441.11, 216.02, 444.18, 224.44, 439.58, 229.42, 430.01, 227.12, 396.72, 223.29, 376.81, 225.59, 361.5, 220.23, 354.61, 212.57, 353.08, 207.22, 353.85, 198.8, 353.85, 195.73, 358.06, 193.44, 360.74]], "area": 2718.580699999999, "iscrowd": 0, "image_id": 461530, "bbox": [189.61, 353.08, 39.81, 91.1], "category_id": 44, "id": 1491523}, {"segmentation": [[152.32, 334.1, 155.84, 317.24, 151.62, 300.37, 160.05, 295.1, 170.59, 296.5, 177.62, 297.91, 177.62, 304.59, 177.27, 316.53, 182.19, 330.59, 182.89, 358.35, 179.73, 365.72, 163.92, 366.43, 158.65, 351.67, 159.35, 342.18, 157.24, 336.91, 152.67, 333.75]], "area": 1662.25545, "iscrowd": 0, "image_id": 461530, "bbox": [151.62, 295.1, 31.27, 71.33], "category_id": 44, "id": 1491749}, {"segmentation": [[373.64, 386.16, 373.64, 380.84, 376.79, 376.11, 377.97, 345.59, 381.32, 340.67, 384.47, 335.35, 385.45, 326.49, 389.19, 324.92, 391.16, 325.71, 390.96, 329.45, 392.15, 332.79, 398.84, 335.55, 404.55, 337.72, 408.49, 346.58, 409.08, 352.88, 407.9, 379.46, 409.47, 382.41, 410.06, 390.88, 398.25, 383.6, 391.95, 382.61, 390.57, 384.78, 387.03, 392.65, 378.95, 390.68, 374.42, 386.75]], "area": 1669.0384999999983, "iscrowd": 0, "image_id": 176587, "bbox": [373.64, 324.92, 36.42, 67.73], "category_id": 44, "id": 1491904}, {"segmentation": [[307.63, 282.77, 307.31, 277.34, 306.99, 271.91, 307.95, 265.84, 316.09, 264.57, 325.52, 266.8, 328.07, 268.88, 328.07, 273.51, 326.95, 279.1, 329.03, 289.32, 330.47, 314.24, 330.79, 323.18, 323.44, 327.01, 315.14, 327.49, 309.07, 326.53, 306.35, 322.22, 303.48, 317.75, 304.59, 291.88]], "area": 1433.38, "iscrowd": 0, "image_id": 461530, "bbox": [303.48, 264.57, 27.31, 62.92], "category_id": 44, "id": 1491975}, {"segmentation": [[633.13, 43.91, 611.06, 63.89, 609.81, 71.8, 611.48, 80.54, 613.56, 84.29, 618.97, 84.29, 623.97, 84.29, 626.05, 83.46, 626.88, 80.12, 626.88, 72.22, 626.88, 65.97, 628.96, 60.98, 637.29, 53.9, 640.0, 46.82]], "area": 579.3737000000012, "iscrowd": 0, "image_id": 510371, "bbox": [609.81, 43.91, 30.19, 40.38], "category_id": 44, "id": 1491995}, {"segmentation": [[70.47, 287.71, 74.13, 256.62, 78.75, 237.61, 87.71, 230.28, 102.78, 228.65, 114.32, 239.37, 114.6, 256.75, 115.27, 277.12, 114.73, 284.32, 111.61, 299.93, 109.71, 311.61, 107.13, 323.97, 100.88, 327.77, 100.88, 327.77, 100.75, 331.0, 77.53, 331.0, 77.93, 328.04, 72.64, 323.15, 67.62, 317.45]], "area": 3924.591499999999, "iscrowd": 0, "image_id": 246356, "bbox": [67.62, 228.65, 47.65, 102.35], "category_id": 44, "id": 1492012}, {"segmentation": [[626.8, 81.93, 626.63, 67.15, 629.06, 61.42, 635.84, 55.33, 640.0, 47.51, 639.84, 48.55, 640.0, 81.75, 635.14, 83.32, 627.84, 83.49]], "area": 340.02535000000097, "iscrowd": 0, "image_id": 510371, "bbox": [626.63, 47.51, 13.37, 35.98], "category_id": 44, "id": 1492046}, {"segmentation": [[552.26, 0.7, 539.25, 8.51, 535.68, 14.03, 535.68, 20.86, 540.56, 23.46, 551.48, 9.08, 557.97, 2.81, 560.65, 0.13, 553.05, 0.0]], "area": 227.41640000000058, "iscrowd": 0, "image_id": 510371, "bbox": [535.68, 0.0, 24.97, 23.46], "category_id": 44, "id": 1492158}, {"segmentation": [[588.42, 42.25, 571.41, 58.34, 554.39, 74.65, 553.92, 85.84, 564.41, 88.4, 566.98, 84.67, 571.87, 70.92, 583.99, 59.73, 597.05, 48.78, 599.38, 45.05, 600.78, 42.48, 602.17, 39.69, 602.17, 39.69, 600.78, 37.59, 600.78, 37.59, 595.41, 36.19, 593.08, 39.22]], "area": 690.237050000001, "iscrowd": 0, "image_id": 510371, "bbox": [553.92, 36.19, 48.25, 52.21], "category_id": 44, "id": 1492491}, {"segmentation": [[627.95, 321.66, 617.87, 324.68, 614.6, 321.66, 615.86, 294.45, 620.64, 282.36, 620.64, 275.81, 618.88, 274.8, 619.38, 268.0, 626.19, 265.73, 628.96, 265.73, 631.22, 270.02, 630.22, 321.41]], "area": 763.2103000000013, "iscrowd": 0, "image_id": 461530, "bbox": [614.6, 265.73, 16.62, 58.95], "category_id": 44, "id": 1492926}, {"segmentation": [[350.33, 243.04, 348.84, 248.1, 347.65, 253.76, 349.73, 264.47, 350.03, 276.07, 348.25, 285.29, 334.86, 287.37, 332.48, 284.99, 328.91, 280.53, 329.21, 269.23, 334.56, 267.14, 337.54, 266.25, 331.59, 261.79, 338.13, 261.49, 340.21, 259.11, 341.7, 257.03, 339.92, 252.57, 340.21, 249.59, 335.45, 248.1, 332.48, 246.61, 330.99, 240.96, 331.59, 239.18, 342.3, 239.47, 346.76, 239.47, 348.84, 240.07, 350.92, 243.64]], "area": 720.0953999999992, "iscrowd": 0, "image_id": 461530, "bbox": [328.91, 239.18, 22.01, 48.19], "category_id": 44, "id": 1493118}, {"segmentation": [[151.9, 334.34, 158.01, 336.63, 159.92, 342.36, 158.39, 350.0, 158.39, 354.2, 164.88, 368.71, 166.41, 393.53, 135.1, 405.75, 130.13, 408.42, 131.28, 375.2, 134.33, 361.45, 135.48, 356.49, 131.66, 350.0, 127.46, 345.42, 126.7, 339.69, 128.99, 334.73, 133.95, 333.2, 142.74, 333.2, 154.95, 334.34]], "area": 2108.622349999999, "iscrowd": 0, "image_id": 461530, "bbox": [126.7, 333.2, 39.71, 75.22], "category_id": 44, "id": 1493332}, {"segmentation": [[513.21, 266.97, 513.21, 258.69, 510.51, 256.71, 508.89, 250.77, 508.35, 245.73, 508.53, 242.31, 508.89, 239.97, 511.23, 239.07, 515.01, 240.51, 519.69, 240.33, 516.63, 258.33, 513.93, 258.87, 514.65, 266.61]], "area": 174.2957999999999, "iscrowd": 0, "image_id": 61203, "bbox": [508.35, 239.07, 11.34, 27.9], "category_id": 46, "id": 1495618}, {"segmentation": [[193.09, 78.38, 170.56, 89.35, 163.74, 107.73, 170.85, 109.81, 186.27, 117.52, 190.13, 123.45, 186.86, 131.45, 153.36, 131.45, 102.96, 116.33, 91.99, 109.81, 86.35, 105.06, 84.87, 98.84, 95.64, 95.11, 123.12, 92.91, 144.47, 101.51, 149.51, 91.43, 145.36, 78.38]], "area": 3053.79045, "iscrowd": 0, "image_id": 445346, "bbox": [84.87, 78.38, 108.22, 53.07], "category_id": 46, "id": 1497133}, {"segmentation": [[173.49, 455.71, 168.12, 460.78, 164.54, 472.12, 167.23, 476.0, 169.91, 477.5, 180.36, 479.88, 186.03, 477.79, 195.88, 473.91, 197.07, 469.44, 196.77, 462.57, 193.19, 456.31, 184.24, 453.92, 179.16, 452.13, 180.66, 444.96, 185.43, 438.7, 189.61, 432.13, 192.0, 420.49, 190.8, 410.64, 188.12, 403.18, 180.36, 397.81, 171.11, 399.3, 162.75, 403.48, 157.08, 409.45, 157.38, 419.6, 162.45, 439.59, 165.43, 444.07, 172.0, 448.25, 174.39, 453.02]], "area": 2022.4539000000004, "iscrowd": 0, "image_id": 130624, "bbox": [157.08, 397.81, 39.99, 82.07], "category_id": 46, "id": 1497201}, {"segmentation": [[215.47, 412.4, 218.34, 387.25, 223.37, 373.6, 227.69, 367.85, 232.72, 354.91, 230.56, 347.01, 229.12, 342.69, 223.37, 339.1, 219.06, 338.38, 227.69, 334.07, 250.68, 331.91, 264.34, 336.23, 253.56, 339.82, 248.53, 350.6, 255.71, 364.97, 262.18, 387.97, 262.9, 416.72, 259.31, 426.0, 216.19, 423.9]], "area": 3297.5708999999983, "iscrowd": 0, "image_id": 286116, "bbox": [215.47, 331.91, 48.87, 94.09], "category_id": 46, "id": 1497673}, {"segmentation": [[281.73, 263.17, 282.56, 273.14, 280.07, 280.61, 275.08, 284.76, 273.84, 293.49, 270.1, 293.49, 270.1, 282.69, 264.29, 278.95, 262.21, 268.15, 263.04, 261.51, 268.85, 257.77, 275.91, 256.52, 277.99, 258.6, 280.9, 259.85]], "area": 483.28019999999964, "iscrowd": 0, "image_id": 130624, "bbox": [262.21, 256.52, 20.35, 36.97], "category_id": 46, "id": 1497774}, {"segmentation": [[596.67, 355.18, 596.47, 357.94, 601.59, 360.1, 608.68, 360.89, 615.57, 360.69, 617.54, 354.98, 619.32, 346.51, 622.47, 340.02, 624.83, 332.93, 625.42, 324.66, 622.27, 318.55, 616.56, 315.99, 608.49, 314.81, 602.18, 315.01, 600.02, 315.6, 600.02, 334.31, 599.23, 344.15]], "area": 1006.0184500000006, "iscrowd": 0, "image_id": 130624, "bbox": [596.47, 314.81, 28.95, 46.08], "category_id": 46, "id": 1497960}, {"segmentation": [[484.91, 343.1, 515.85, 344.09, 528.94, 348.06, 530.52, 363.13, 526.56, 388.12, 511.09, 415.09, 509.7, 417.67, 513.07, 426.0, 503.95, 426.0, 487.89, 426.0, 494.63, 422.43, 493.84, 417.07, 489.08, 408.15, 483.33, 399.03, 474.8, 376.42, 475.79, 360.16, 477.18, 347.07]], "area": 3402.0921999999987, "iscrowd": 0, "image_id": 286116, "bbox": [474.8, 343.1, 55.72, 82.9], "category_id": 46, "id": 1498042}, {"segmentation": [[306.8, 249.91, 305.3, 261.92, 309.37, 269.22, 313.88, 272.65, 313.88, 280.8, 311.3, 283.37, 310.23, 284.45, 312.37, 285.73, 317.74, 286.16, 320.95, 285.09, 319.88, 282.3, 317.09, 281.01, 318.38, 271.58, 323.74, 264.93, 324.17, 254.85, 323.74, 249.7, 320.31, 247.12, 314.95, 246.05, 309.8, 247.34]], "area": 467.8992999999999, "iscrowd": 0, "image_id": 130624, "bbox": [305.3, 246.05, 18.87, 40.11], "category_id": 46, "id": 1498355}, {"segmentation": [[95.33, 387.11, 105.75, 387.54, 110.96, 384.94, 112.27, 354.54, 104.02, 333.26, 100.54, 323.27, 103.58, 315.46, 109.66, 308.94, 105.32, 305.04, 99.24, 306.77, 97.5, 324.14, 95.33, 335.43, 95.33, 359.75]], "area": 965.3405499999999, "iscrowd": 0, "image_id": 286116, "bbox": [95.33, 305.04, 16.94, 82.5], "category_id": 46, "id": 1498433}, {"segmentation": [[458.84, 147.69, 455.75, 148.11, 457.3, 154.01, 460.25, 159.49, 459.55, 148.25]], "area": 26.77679999999998, "iscrowd": 0, "image_id": 130624, "bbox": [455.75, 147.69, 4.5, 11.8], "category_id": 46, "id": 1498905}, {"segmentation": [[615.15, 315.84, 616.71, 310.28, 616.71, 303.85, 615.84, 298.46, 611.5, 294.81, 605.94, 292.9, 597.77, 292.73, 598.99, 300.55, 600.2, 308.72, 600.2, 314.97, 608.54, 314.63]], "area": 352.48500000000024, "iscrowd": 0, "image_id": 130624, "bbox": [597.77, 292.73, 18.94, 23.11], "category_id": 46, "id": 1499205}, {"segmentation": [[304.18, 169.21, 304.85, 162.97, 307.53, 158.74, 314.66, 156.51, 321.57, 159.18, 325.14, 163.86, 325.14, 171.67, 318.9, 176.57, 314.44, 179.02, 308.2, 177.24, 305.3, 171.89]], "area": 354.6868999999996, "iscrowd": 0, "image_id": 541677, "bbox": [304.18, 156.51, 20.96, 22.51], "category_id": 46, "id": 1499398}, {"segmentation": [[506.62, 125.03, 512.94, 124.74, 513.91, 129.21, 512.74, 132.52, 510.8, 134.95, 508.85, 135.83, 507.39, 134.85, 506.13, 132.52, 505.93, 128.63, 506.03, 125.42]], "area": 69.69875000000013, "iscrowd": 0, "image_id": 130624, "bbox": [505.93, 124.74, 7.98, 11.09], "category_id": 46, "id": 1499430}, {"segmentation": [[268.12, 168.8, 269.81, 161.03, 274.88, 160.02, 278.26, 161.71, 278.6, 163.06, 279.61, 167.79, 280.96, 169.81, 278.6, 171.17, 278.94, 182.32, 274.88, 182.32, 273.53, 181.64, 272.52, 176.23]], "area": 181.48370000000023, "iscrowd": 0, "image_id": 541677, "bbox": [268.12, 160.02, 12.84, 22.3], "category_id": 46, "id": 1500229}, {"segmentation": [[249.73, 165.03, 249.56, 175.75, 254.57, 179.21, 255.61, 183.01, 263.39, 183.01, 263.56, 175.75, 267.19, 167.62, 266.16, 162.61, 250.08, 161.57]], "area": 292.46119999999996, "iscrowd": 0, "image_id": 541677, "bbox": [249.56, 161.57, 17.63, 21.44], "category_id": 46, "id": 1500537}, {"segmentation": [[231.8, 167.76, 231.8, 175.37, 234.91, 179.52, 235.95, 182.11, 242.17, 182.28, 242.69, 179.86, 247.88, 169.49, 246.15, 163.61, 230.93, 162.74]], "area": 245.98659999999978, "iscrowd": 0, "image_id": 541677, "bbox": [230.93, 162.74, 16.95, 19.54], "category_id": 46, "id": 1500620}, {"segmentation": [[462.41, 1.87, 459.45, 75.85, 486.09, 85.23, 504.83, 87.69, 523.58, 84.24, 538.37, 72.9, 545.28, 0.0]], "area": 6599.100499999999, "iscrowd": 0, "image_id": 297764, "bbox": [459.45, 0.0, 85.83, 87.69], "category_id": 47, "id": 1501429}, {"segmentation": [[134.68, 261.6, 137.21, 267.43, 140.25, 281.63, 145.83, 281.88, 152.17, 280.62, 150.9, 261.35, 150.9, 258.56, 145.83, 257.54, 137.72, 258.56, 134.68, 260.84]], "area": 324.3740999999997, "iscrowd": 0, "image_id": 448843, "bbox": [134.68, 257.54, 17.49, 24.34], "category_id": 47, "id": 1501707}, {"segmentation": [[49.11, 412.69, 63.15, 410.82, 68.3, 417.84, 70.17, 433.28, 30.86, 444.98, 30.86, 434.22, 38.35, 429.54, 36.48, 418.31]], "area": 861.7569500000001, "iscrowd": 0, "image_id": 306627, "bbox": [30.86, 410.82, 39.31, 34.16], "category_id": 47, "id": 1502569}, {"segmentation": [[377.17, 154.77, 377.03, 156.97, 380.26, 156.53, 382.61, 157.41, 383.35, 161.38, 382.61, 164.32, 379.53, 168.73, 376.59, 170.2, 376.88, 175.79, 372.91, 177.55, 373.06, 155.21, 371.88, 153.74, 372.18, 151.24, 378.06, 152.71, 378.35, 154.77, 377.61, 155.06]], "area": 167.71054999999964, "iscrowd": 0, "image_id": 14812, "bbox": [371.88, 151.24, 11.47, 26.31], "category_id": 47, "id": 1503738}, {"segmentation": [[353.24, 294.51, 356.57, 340.64, 357.13, 341.2, 360.46, 333.97, 363.24, 331.19, 372.69, 333.42, 371.58, 343.97, 374.91, 352.87, 377.14, 359.54, 381.58, 355.65, 384.92, 311.74, 386.03, 302.29, 383.25, 297.29, 376.58, 297.85, 374.36, 292.85, 374.36, 289.51, 369.36, 288.96, 361.02, 288.96, 355.46, 290.07]], "area": 1470.553, "iscrowd": 0, "image_id": 115055, "bbox": [353.24, 288.96, 32.79, 70.58], "category_id": 47, "id": 1504024}, {"segmentation": [[226.0, 581.16, 219.44, 533.9, 213.36, 526.88, 217.57, 510.04, 235.35, 501.15, 257.81, 502.08, 269.51, 506.76, 276.53, 516.12, 276.06, 528.75, 271.85, 542.32, 264.83, 583.96, 250.79, 592.85, 233.95, 590.05, 226.46, 580.22]], "area": 4276.068950000002, "iscrowd": 0, "image_id": 493873, "bbox": [213.36, 501.15, 63.17, 91.7], "category_id": 47, "id": 1504110}, {"segmentation": [[88.38, 184.38, 84.15, 170.3, 81.34, 163.26, 81.34, 159.39, 86.62, 158.69, 92.6, 156.58, 98.94, 155.87, 108.44, 155.87, 107.03, 154.11, 111.61, 153.76, 120.76, 156.22, 127.1, 159.39, 127.1, 162.91, 126.74, 178.05, 127.1, 181.22, 126.04, 182.27, 122.87, 181.92, 116.89, 179.81, 104.92, 178.4, 99.99, 178.4, 97.18, 180.51, 91.9, 184.03]], "area": 1046.67375, "iscrowd": 0, "image_id": 333643, "bbox": [81.34, 153.76, 45.76, 30.62], "category_id": 47, "id": 1504162}, {"segmentation": [[354.26, 39.91, 344.17, 54.48, 315.02, 174.44, 295.96, 229.37, 287.0, 230.49, 244.39, 210.31, 200.67, 204.71, 196.19, 92.6, 196.19, 39.91, 189.46, 24.22, 204.04, 8.52, 226.46, 0.0, 279.15, 0.0, 311.66, 8.52, 339.69, 16.37, 353.14, 23.09, 357.62, 39.91]], "area": 27972.64105, "iscrowd": 0, "image_id": 8223, "bbox": [189.46, 0.0, 168.16, 230.49], "category_id": 47, "id": 1504288}, {"segmentation": [[347.36, 259.62, 350.15, 257.53, 356.76, 256.83, 368.95, 258.57, 371.38, 261.01, 375.91, 264.49, 375.91, 266.93, 369.29, 278.42, 362.68, 301.05, 342.49, 295.48]], "area": 1006.2644500000008, "iscrowd": 0, "image_id": 493873, "bbox": [342.49, 256.83, 33.42, 44.22], "category_id": 47, "id": 1504361}, {"segmentation": [[415.16, 34.72, 418.25, 82.51, 441.37, 81.73, 449.85, 36.26]], "area": 1348.86425, "iscrowd": 0, "image_id": 109776, "bbox": [415.16, 34.72, 34.69, 47.79], "category_id": 47, "id": 1504813}, {"segmentation": [[463.04, 322.45, 461.1, 333.76, 456.25, 340.87, 444.29, 338.61, 438.79, 335.7, 435.23, 331.18, 435.23, 328.27, 435.88, 323.09, 436.2, 316.95, 441.05, 314.04, 445.58, 314.04, 454.63, 314.69, 462.07, 318.24, 463.36, 318.89]], "area": 602.5030999999999, "iscrowd": 0, "image_id": 480818, "bbox": [435.23, 314.04, 28.13, 26.83], "category_id": 47, "id": 1505973}, {"segmentation": [[282.62, 314.78, 285.0, 311.61, 294.49, 308.45, 300.03, 308.84, 307.55, 313.2, 309.14, 314.78, 309.14, 351.19, 301.22, 354.36, 293.7, 354.75, 284.2, 350.01]], "area": 1097.4290999999998, "iscrowd": 0, "image_id": 561406, "bbox": [282.62, 308.45, 26.52, 46.3], "category_id": 47, "id": 1505989}, {"segmentation": [[144.02, 400.69, 146.54, 397.97, 151.99, 397.38, 162.69, 398.55, 165.41, 398.94, 162.88, 414.11, 143.43, 410.8]], "area": 294.91619999999995, "iscrowd": 0, "image_id": 121316, "bbox": [143.43, 397.38, 21.98, 16.73], "category_id": 47, "id": 1506189}, {"segmentation": [[193.77, 448.18, 194.63, 458.16, 199.76, 466.71, 202.04, 479.82, 214.01, 479.54, 210.59, 444.48, 205.74, 441.63, 199.19, 441.06, 193.77, 446.47]], "area": 557.92455, "iscrowd": 0, "image_id": 130624, "bbox": [193.77, 441.06, 20.24, 38.76], "category_id": 47, "id": 1506216}, {"segmentation": [[550.21, 327.82, 551.35, 323.28, 553.33, 321.86, 559.01, 320.73, 569.23, 321.01, 580.02, 324.7, 579.45, 329.81, 575.76, 335.49, 574.91, 338.61, 572.92, 343.43, 572.92, 348.26, 571.79, 354.22, 569.8, 357.06, 556.74, 356.49, 556.74, 349.68, 555.32, 341.73, 551.63, 334.07]], "area": 753.2683999999989, "iscrowd": 0, "image_id": 510979, "bbox": [550.21, 320.73, 29.81, 36.33], "category_id": 47, "id": 1506363}, {"segmentation": [[17.97, 225.89, 19.23, 239.55, 29.84, 239.01, 30.38, 225.35, 25.7, 225.17, 22.29, 225.89, 19.05, 225.89]], "area": 158.24630000000016, "iscrowd": 0, "image_id": 121316, "bbox": [17.97, 225.17, 12.41, 14.38], "category_id": 47, "id": 1506501}, {"segmentation": [[561.88, 111.45, 574.97, 47.55, 581.13, 2.13, 639.64, 2.13, 639.64, 22.91, 639.64, 56.02, 639.64, 105.29, 639.64, 126.08, 636.56, 136.09, 628.87, 139.94, 604.23, 141.48, 575.74, 136.86, 562.65, 119.92]], "area": 9348.531699999998, "iscrowd": 0, "image_id": 268406, "bbox": [561.88, 2.13, 77.76, 139.35], "category_id": 47, "id": 1507159}, {"segmentation": [[488.93, 59.55, 479.94, 91.15, 472.2, 93.63, 461.36, 89.91, 464.15, 48.09, 475.61, 48.71, 488.0, 56.15]], "area": 936.6997000000002, "iscrowd": 0, "image_id": 538682, "bbox": [461.36, 48.09, 27.57, 45.54], "category_id": 47, "id": 1507231}, {"segmentation": [[316.64, 75.29, 316.64, 75.29, 330.91, 114.67, 344.2, 119.09, 348.63, 133.37, 371.27, 132.88, 375.7, 130.41, 365.85, 75.78, 361.91, 71.85, 345.18, 65.45, 333.37, 65.45, 317.13, 68.89, 317.13, 68.89, 317.13, 71.85, 317.13, 71.85]], "area": 2710.350100000001, "iscrowd": 0, "image_id": 332065, "bbox": [316.64, 65.45, 59.06, 67.92], "category_id": 47, "id": 1507501}, {"segmentation": [[538.56, 98.58, 524.13, 158.2, 521.25, 175.51, 511.63, 196.67, 515.48, 210.13, 503.94, 239.95, 500.09, 252.45, 504.9, 265.91, 523.17, 278.42, 534.71, 289.96, 570.3, 297.65, 610.69, 307.27, 624.15, 299.57, 640.0, 268.8, 640.0, 101.46, 619.34, 94.73, 619.34, 94.73, 584.72, 93.77, 567.41, 93.77, 567.41, 93.77]], "area": 24187.385100000007, "iscrowd": 0, "image_id": 226262, "bbox": [500.09, 93.77, 139.91, 213.5], "category_id": 47, "id": 1508108}, {"segmentation": [[175.34, 484.63, 186.68, 481.79, 194.23, 481.79, 209.35, 482.74, 227.3, 488.4, 228.24, 496.91, 225.41, 503.52, 217.85, 509.19, 213.13, 519.58, 214.07, 564.86, 198.96, 567.7, 190.46, 567.7, 180.07, 557.31, 167.79, 499.69]], "area": 3574.3625000000006, "iscrowd": 0, "image_id": 493873, "bbox": [167.79, 481.79, 60.45, 85.91], "category_id": 47, "id": 1508166}, {"segmentation": [[420.02, 261.94, 424.68, 258.66, 428.23, 257.29, 428.51, 251.54, 427.96, 246.61, 412.36, 247.16, 412.08, 252.63]], "area": 184.52050000000014, "iscrowd": 0, "image_id": 480818, "bbox": [412.08, 246.61, 16.43, 15.33], "category_id": 47, "id": 1508171}, {"segmentation": [[166.79, 0.49, 166.89, 0.0, 167.43, 11.29, 169.08, 26.1, 169.63, 37.35, 166.34, 43.38, 170.73, 43.38, 170.73, 53.26, 171.55, 57.65, 167.16, 59.84, 162.22, 62.31, 158.66, 63.68, 139.46, 67.79, 135.34, 66.7, 129.04, 62.03, 128.21, 60.94, 126.84, 58.19, 126.84, 56.0, 127.12, 55.45, 126.84, 49.97, 122.73, 44.75, 120.26, 36.25, 116.42, 28.3, 114.77, 20.62, 112.03, 13.49, 110.39, 8.83, 110.66, 5.26, 109.29, 2.24, 108.74, 0.0]], "area": 3219.4795999999997, "iscrowd": 0, "image_id": 241369, "bbox": [108.74, 0.0, 62.81, 67.79], "category_id": 47, "id": 1508525}, {"segmentation": [[56.1, 227.98, 72.06, 266.01, 83.8, 298.88, 85.67, 323.29, 80.04, 348.17, 65.02, 365.08, 42.01, 377.28, 2.57, 379.16, 1.16, 215.77, 15.72, 215.77, 33.09, 217.65, 49.05, 222.35]], "area": 11279.79105, "iscrowd": 0, "image_id": 67657, "bbox": [1.16, 215.77, 84.51, 163.39], "category_id": 47, "id": 1508663}, {"segmentation": [[363.03, 338.03, 361.44, 325.79, 375.5, 326.01, 387.52, 327.15, 385.25, 334.18, 368.7, 336.22, 363.26, 338.49]], "area": 231.27185000000054, "iscrowd": 0, "image_id": 286619, "bbox": [361.44, 325.79, 26.08, 12.7], "category_id": 47, "id": 1508721}, {"segmentation": [[336.18, 259.51, 334.13, 262.02, 333.1, 265.33, 330.93, 267.5, 329.22, 268.98, 324.99, 269.67, 322.71, 267.27, 320.88, 264.99, 319.17, 262.02, 316.66, 258.14, 318.94, 255.85, 326.14, 255.05, 330.47, 255.05, 333.9, 256.54, 336.53, 257.79]], "area": 191.98464999999982, "iscrowd": 0, "image_id": 130624, "bbox": [316.66, 255.05, 19.87, 14.62], "category_id": 47, "id": 1510188}, {"segmentation": [[343.65, 328.58, 342.9, 308.04, 350.75, 307.29, 356.35, 307.29, 356.73, 307.29, 356.35, 328.95, 352.62, 330.45]], "area": 292.3842000000005, "iscrowd": 0, "image_id": 286619, "bbox": [342.9, 307.29, 13.83, 23.16], "category_id": 47, "id": 1510300}, {"segmentation": [[320.72, 260.93, 322.16, 258.28, 326.97, 256.84, 332.74, 257.32, 336.82, 258.04, 338.51, 261.17, 337.3, 279.19, 335.14, 276.55, 329.61, 278.23, 326.73, 280.87, 323.84, 279.19]], "area": 331.94835000000023, "iscrowd": 0, "image_id": 510979, "bbox": [320.72, 256.84, 17.79, 24.03], "category_id": 47, "id": 1510505}, {"segmentation": [[150.55, 286.59, 153.37, 277.2, 167.46, 269.69, 174.03, 270.16, 181.07, 274.85, 182.01, 280.96, 182.01, 290.35, 183.89, 297.39, 187.18, 307.72, 177.32, 308.19, 167.46, 305.37, 162.29, 306.31, 158.54, 298.8, 157.13, 293.63, 152.9, 289.88]], "area": 957.4615499999995, "iscrowd": 0, "image_id": 392725, "bbox": [150.55, 269.69, 36.63, 38.5], "category_id": 47, "id": 1510833}, {"segmentation": [[315.15, 313.5, 315.0, 319.11, 317.65, 319.74, 316.4, 321.3, 315.15, 321.3, 315.62, 323.64, 316.71, 324.88, 316.71, 327.69, 316.71, 330.81, 316.87, 331.28, 326.38, 330.81, 326.54, 322.7, 327.32, 317.55, 327.32, 313.5]], "area": 189.64825000000022, "iscrowd": 0, "image_id": 286619, "bbox": [315.0, 313.5, 12.32, 17.78], "category_id": 47, "id": 1510943}, {"segmentation": [[1.31, 65.72, 35.12, 144.6, 31.99, 158.99, 16.96, 172.77, 0.06, 187.17]], "area": 2296.2719, "iscrowd": 0, "image_id": 478902, "bbox": [0.06, 65.72, 35.06, 121.45], "category_id": 47, "id": 1511086}, {"segmentation": [[231.61, 259.84, 232.18, 257.58, 236.69, 255.52, 246.47, 255.33, 249.67, 257.4, 251.36, 260.97, 251.17, 265.11, 251.74, 272.82, 249.86, 271.69, 247.97, 271.5, 245.91, 270.0, 242.9, 269.62, 240.08, 270.94, 238.57, 271.88, 235.94, 271.88, 234.43, 271.69, 233.68, 274.32, 235.56, 277.33, 234.43, 279.02, 231.99, 276.95, 230.86, 274.51, 230.67, 263.79, 231.24, 261.35, 231.43, 257.96]], "area": 324.1366499999998, "iscrowd": 0, "image_id": 561406, "bbox": [230.67, 255.33, 21.07, 23.69], "category_id": 47, "id": 1511290}, {"segmentation": [[308.15, 306.47, 307.25, 320.09, 299.92, 320.68, 299.62, 319.04, 302.16, 317.69, 302.61, 314.55, 301.26, 313.8, 299.32, 313.8, 299.32, 311.56, 297.97, 310.51, 297.52, 305.87, 307.55, 305.87]], "area": 115.34384999999963, "iscrowd": 0, "image_id": 286619, "bbox": [297.52, 305.87, 10.63, 14.81], "category_id": 47, "id": 1511960}, {"segmentation": [[150.21, 295.82, 157.47, 322.09, 159.82, 322.51, 160.67, 315.89, 167.72, 310.34, 173.7, 308.85, 173.7, 308.85, 175.19, 294.33, 170.92, 291.98, 165.37, 291.34, 158.11, 293.05, 152.98, 294.54]], "area": 463.3087499999993, "iscrowd": 0, "image_id": 561406, "bbox": [150.21, 291.34, 24.98, 31.17], "category_id": 47, "id": 1512400}, {"segmentation": [[31.1, 225.48, 31.1, 225.48, 31.94, 236.97, 42.03, 237.95, 48.75, 237.25, 47.91, 224.36, 31.52, 224.64]], "area": 218.91599999999985, "iscrowd": 0, "image_id": 121316, "bbox": [31.1, 224.36, 17.65, 13.59], "category_id": 47, "id": 1512548}, {"segmentation": [[533.44, 303.68, 518.27, 304.88, 510.32, 302.23, 510.08, 293.08, 518.99, 291.16, 529.59, 292.12, 533.2, 293.32, 536.81, 296.21, 538.02, 298.14, 538.02, 299.83], [513.45, 318.13, 530.07, 318.13, 530.07, 320.05, 527.66, 322.94, 525.74, 324.87, 513.21, 324.87, 512.01, 318.61]], "area": 415.72540000000026, "iscrowd": 0, "image_id": 561406, "bbox": [510.08, 291.16, 27.94, 33.71], "category_id": 47, "id": 1512608}, {"segmentation": [[513.46, 249.95, 509.25, 272.76, 529.95, 274.87, 532.06, 246.8, 529.95, 243.29]], "area": 534.2190499999994, "iscrowd": 0, "image_id": 561406, "bbox": [509.25, 243.29, 22.81, 31.58], "category_id": 47, "id": 1512741}, {"segmentation": [[434.83, 168.62, 435.19, 175.53, 431.73, 176.96, 431.73, 178.98, 431.73, 180.41, 430.66, 181.13, 429.95, 181.13, 429.47, 177.91, 428.4, 177.2, 427.56, 175.05, 427.56, 172.91, 428.28, 167.78, 434.83, 168.5]], "area": 70.01995000000007, "iscrowd": 0, "image_id": 480818, "bbox": [427.56, 167.78, 7.63, 13.35], "category_id": 47, "id": 1512819}, {"segmentation": [[474.46, 326.9, 469.69, 387.33, 461.34, 389.32, 441.86, 377.79, 437.88, 324.12, 439.87, 320.54, 446.23, 318.16, 458.95, 318.16, 468.1, 318.95, 472.47, 321.34]], "area": 2136.095999999998, "iscrowd": 0, "image_id": 115055, "bbox": [437.88, 318.16, 36.58, 71.16], "category_id": 47, "id": 1513257}, {"segmentation": [[4.47, 224.86, 12.21, 224.37, 10.4, 240.18, 1.84, 239.52, 0.52, 225.03]], "area": 153.08390000000003, "iscrowd": 0, "image_id": 121316, "bbox": [0.52, 224.37, 11.69, 15.81], "category_id": 47, "id": 1513558}, {"segmentation": [[432.57, 186.18, 433.5, 192.92, 440.94, 193.39, 442.8, 188.51, 443.03, 186.18, 433.74, 185.25]], "area": 69.03214999999986, "iscrowd": 0, "image_id": 480818, "bbox": [432.57, 185.25, 10.46, 8.14], "category_id": 47, "id": 1513665}, {"segmentation": [[14.42, 347.93, 20.32, 345.96, 29.27, 345.78, 33.92, 345.96, 34.82, 346.85, 36.79, 363.14, 31.96, 365.82, 28.91, 367.97, 15.67, 369.4]], "area": 447.27665000000025, "iscrowd": 0, "image_id": 121316, "bbox": [14.42, 345.78, 22.37, 23.62], "category_id": 47, "id": 1513720}, {"segmentation": [[54.0, 261.39, 34.22, 123.89, 23.34, 24.98, 48.07, 12.12, 95.55, 11.13, 128.19, 11.13, 150.94, 22.01, 155.88, 69.49, 155.88, 151.59, 148.96, 250.51, 159.84, 258.42, 160.83, 272.27, 160.83, 297.99, 135.11, 317.77, 99.5, 324.69, 68.84, 318.76, 52.02, 309.86, 40.15, 294.03, 43.12, 263.37, 49.06, 256.44]], "area": 35445.244, "iscrowd": 0, "image_id": 207385, "bbox": [23.34, 11.13, 137.49, 313.56], "category_id": 47, "id": 1513846}, {"segmentation": [[251.36, 226.66, 256.26, 247.76, 266.91, 248.4, 267.33, 248.18, 266.48, 224.75, 265.42, 222.19, 260.3, 221.55]], "area": 331.31624999999985, "iscrowd": 0, "image_id": 561406, "bbox": [251.36, 221.55, 15.97, 26.85], "category_id": 47, "id": 1513978}, {"segmentation": [[214.68, 299.56, 215.67, 287.6, 222.84, 285.91, 229.74, 285.77, 234.81, 286.34, 236.49, 288.03, 236.49, 292.11, 231.85, 293.65, 229.46, 296.33, 229.18, 304.21, 218.34, 304.49, 214.96, 300.69]], "area": 302.26489999999995, "iscrowd": 0, "image_id": 480818, "bbox": [214.68, 285.77, 21.81, 18.72], "category_id": 47, "id": 1514141}, {"segmentation": [[273.45, 265.47, 277.06, 265.47, 279.59, 265.47, 281.4, 266.19, 284.47, 266.19, 286.28, 267.46, 286.46, 269.44, 287.36, 273.24, 285.91, 277.39, 284.83, 279.38, 283.57, 281.72, 276.52, 282.63, 273.27, 281.54, 272.37, 279.2, 270.56, 275.04, 266.59, 271.43, 266.59, 268.54, 266.77, 266.55, 268.58, 264.93, 270.56, 264.93, 271.65, 266.73, 272.19, 267.64, 272.55, 265.83]], "area": 271.4539500000001, "iscrowd": 0, "image_id": 480818, "bbox": [266.59, 264.93, 20.77, 17.7], "category_id": 47, "id": 1514216}, {"segmentation": [[263.32, 245.11, 266.88, 243.56, 277.32, 243.44, 279.1, 244.87, 278.51, 253.05, 276.49, 255.66, 272.57, 257.32, 269.25, 257.44, 267.0, 256.85, 266.41, 251.63, 263.08, 251.04]], "area": 180.04280000000006, "iscrowd": 0, "image_id": 480818, "bbox": [263.08, 243.44, 16.02, 14.0], "category_id": 47, "id": 1514310}, {"segmentation": [[169.34, 55.23, 174.84, 53.8, 181.54, 53.56, 188.72, 54.51, 190.4, 82.51, 188.72, 93.28, 176.52, 93.99]], "area": 663.1537999999999, "iscrowd": 0, "image_id": 386890, "bbox": [169.34, 53.56, 21.06, 40.43], "category_id": 47, "id": 1514325}, {"segmentation": [[418.47, 56.18, 426.37, 55.91, 432.91, 58.36, 432.64, 61.91, 431.0, 70.08, 429.91, 79.34, 428.28, 88.06, 428.55, 97.06, 417.38, 96.51, 417.65, 81.25, 417.92, 66.81]], "area": 504.20405000000017, "iscrowd": 0, "image_id": 121316, "bbox": [417.38, 55.91, 15.53, 41.15], "category_id": 47, "id": 1514772}, {"segmentation": [[439.94, 58.5, 442.12, 82.48, 441.3, 96.38, 451.66, 96.93, 451.38, 55.51, 441.03, 56.6], [457.38, 56.05, 456.56, 95.56, 458.47, 96.38, 460.65, 78.12, 462.83, 56.32, 459.01, 55.23]], "area": 571.57455, "iscrowd": 0, "image_id": 121316, "bbox": [439.94, 55.23, 22.89, 41.7], "category_id": 47, "id": 1515051}, {"segmentation": [[470.07, 193.76, 496.35, 179.26, 514.41, 175.7, 544.24, 168.31, 574.62, 157.36, 610.47, 143.95, 607.46, 136.02, 595.15, 142.04, 559.29, 154.63, 528.91, 162.29, 490.6, 172.96, 467.06, 185.55, 462.14, 189.66, 465.42, 192.39]], "area": 1279.435450000001, "iscrowd": 0, "image_id": 333181, "bbox": [462.14, 136.02, 148.33, 57.74], "category_id": 48, "id": 1516183}, {"segmentation": [[385.33, 359.51, 394.61, 359.91, 403.33, 360.15, 409.2, 358.64, 411.1, 355.7, 410.86, 353.4, 406.74, 354.75, 400.16, 356.97, 391.67, 358.24, 385.8, 358.24]], "area": 72.79574999999967, "iscrowd": 0, "image_id": 579659, "bbox": [385.33, 353.4, 25.77, 6.75], "category_id": 48, "id": 1517691}, {"segmentation": [[168.86, 289.33, 185.29, 292.61, 180.59, 294.96, 173.55, 295.9, 166.51, 291.67]], "area": 65.55099999999983, "iscrowd": 0, "image_id": 561406, "bbox": [166.51, 289.33, 18.78, 6.57], "category_id": 48, "id": 1518107}, {"segmentation": [[572.19, 382.38, 566.73, 380.74, 556.19, 378.74, 546.37, 378.38, 540.55, 378.74, 538.19, 380.2, 535.1, 380.56, 527.64, 378.74, 526.01, 376.38, 524.19, 375.29, 522.74, 374.38, 521.1, 371.65, 526.74, 374.02, 528.92, 374.56, 529.83, 376.38, 532.55, 376.38, 539.46, 376.38, 545.1, 376.38, 549.82, 376.38, 555.64, 376.38, 561.82, 376.38, 564.73, 377.11, 568.37, 377.11, 573.28, 377.11, 574.73, 377.47, 576.73, 378.38, 577.09, 379.47, 576.55, 381.11, 575.28, 382.01]], "area": 174.41875000000016, "iscrowd": 0, "image_id": 579659, "bbox": [521.1, 371.65, 55.99, 10.73], "category_id": 48, "id": 1520280}, {"segmentation": [[516.22, 376.49, 523.94, 379.8, 528.62, 382.01, 535.79, 381.45, 542.95, 381.45, 551.49, 380.63, 556.73, 382.28, 562.24, 382.83, 568.3, 383.11, 567.47, 385.86, 564.72, 385.31, 556.73, 384.76, 549.56, 383.38, 542.4, 383.38, 534.96, 383.11, 528.9, 385.59, 522.01, 383.93, 517.87, 380.08, 515.12, 377.87, 515.67, 375.67]], "area": 144.12535000000042, "iscrowd": 0, "image_id": 579659, "bbox": [515.12, 375.67, 53.18, 10.19], "category_id": 48, "id": 1520356}, {"segmentation": [[157.33, 319.12, 182.09, 315.58, 186.22, 316.17, 204.49, 317.64, 203.61, 320.0, 181.2, 322.06, 174.42, 325.31, 165.29, 325.31, 156.44, 322.36, 154.67, 321.18]], "area": 271.3780500000002, "iscrowd": 0, "image_id": 379545, "bbox": [154.67, 315.58, 49.82, 9.73], "category_id": 49, "id": 1521175}, {"segmentation": [[505.99, 419.14, 539.73, 405.88, 565.04, 393.22, 566.85, 388.4, 574.08, 389.01, 578.3, 390.21, 578.3, 396.84, 568.65, 398.65, 552.38, 402.26, 536.72, 410.7, 527.08, 414.31, 530.09, 420.94, 513.22, 423.35, 502.37, 417.33]], "area": 414.3249499999999, "iscrowd": 0, "image_id": 176587, "bbox": [502.37, 388.4, 75.93, 34.95], "category_id": 49, "id": 1521252}, {"segmentation": [[414.06, 223.43, 406.95, 226.83, 401.74, 226.67, 413.58, 221.3, 414.45, 220.75]], "area": 24.382750000000073, "iscrowd": 0, "image_id": 14812, "bbox": [401.74, 220.75, 12.71, 6.08], "category_id": 49, "id": 1521799}, {"segmentation": [[414.38, 301.89, 407.89, 304.56, 407.27, 303.94, 414.12, 298.34, 420.34, 295.05, 423.81, 294.33, 425.59, 296.2, 421.5, 298.78]], "area": 55.286649999999916, "iscrowd": 0, "image_id": 290153, "bbox": [407.27, 294.33, 18.32, 10.23], "category_id": 49, "id": 1522329}, {"segmentation": [[361.59, 309.37, 369.52, 296.22, 372.94, 291.18, 374.38, 290.82, 374.38, 292.44, 373.84, 294.96, 373.48, 297.3, 365.92, 311.35]], "area": 85.10225000000052, "iscrowd": 0, "image_id": 318509, "bbox": [361.59, 290.82, 12.79, 20.53], "category_id": 49, "id": 1522500}, {"segmentation": [[369.5, 305.22, 369.11, 310.9, 365.39, 314.04, 364.21, 315.99, 364.41, 319.91, 361.47, 326.18, 355.2, 328.14, 353.44, 326.57, 350.3, 326.38, 348.54, 326.38, 351.09, 322.65, 353.24, 315.8, 357.16, 307.38, 357.94, 304.83, 360.69, 303.07, 367.15, 302.67, 369.11, 307.18]], "area": 283.89470000000006, "iscrowd": 0, "image_id": 496847, "bbox": [348.54, 302.67, 20.96, 25.47], "category_id": 49, "id": 1522824}, {"segmentation": [[383.62, 388.23, 380.26, 386.45, 353.99, 386.64, 352.6, 383.48, 353.59, 381.31, 359.32, 381.31, 380.86, 383.48, 386.19, 383.48, 417.8, 386.64, 419.38, 387.24, 420.17, 388.23, 419.38, 390.4, 417.8, 391.58, 413.46, 391.39, 412.86, 390.99, 408.71, 390.0, 383.23, 388.62]], "area": 305.3656999999993, "iscrowd": 0, "image_id": 579659, "bbox": [352.6, 381.31, 67.57, 10.27], "category_id": 49, "id": 1522860}, {"segmentation": [[588.44, 96.33, 601.98, 113.6, 601.98, 114.07, 608.51, 129.0, 608.51, 129.0, 619.48, 140.43, 620.0, 140.2, 619.94, 120.83, 605.71, 104.27, 603.38, 98.2, 603.38, 97.5, 601.98, 93.3, 591.71, 92.37, 587.51, 93.77]], "area": 530.8691000000007, "iscrowd": 0, "image_id": 332065, "bbox": [587.51, 92.37, 32.49, 48.06], "category_id": 49, "id": 1523085}, {"segmentation": [[413.9, 349.07, 415.75, 349.74, 417.59, 347.4, 418.76, 343.05, 417.42, 339.03, 417.25, 335.69, 416.75, 328.16, 415.91, 327.49, 412.23, 327.83, 412.06, 329.5]], "area": 98.62355000000011, "iscrowd": 0, "image_id": 579659, "bbox": [412.06, 327.49, 6.7, 22.25], "category_id": 49, "id": 1524044}, {"segmentation": [[499.73, 341.89, 500.93, 339.13, 495.89, 332.41, 491.93, 326.05, 490.13, 325.93, 489.65, 326.65, 493.73, 331.93, 494.45, 336.13, 497.45, 341.29, 498.89, 341.29]], "area": 47.70719999999993, "iscrowd": 0, "image_id": 579659, "bbox": [489.65, 325.93, 11.28, 15.96], "category_id": 49, "id": 1524418}, {"segmentation": [[214.71, 213.09, 217.47, 205.97, 219.61, 202.23, 220.67, 201.61, 221.92, 201.97, 222.28, 202.95, 218.09, 211.93, 217.29, 213.98, 217.03, 215.22, 215.87, 214.87]], "area": 38.76749999999994, "iscrowd": 0, "image_id": 135149, "bbox": [214.71, 201.61, 7.57, 13.61], "category_id": 49, "id": 1524487}, {"segmentation": [[196.04, 33.45, 196.04, 27.15, 147.62, 15.12, 91.76, 1.37, 89.47, 0.0, 70.85, 0.22, 64.55, 3.66, 64.55, 8.24, 66.27, 10.25, 195.18, 35.46]], "area": 1492.0095000000001, "iscrowd": 0, "image_id": 268406, "bbox": [64.55, 0.0, 131.49, 35.46], "category_id": 49, "id": 1524720}, {"segmentation": [[505.05, 351.82, 529.56, 352.47, 562.88, 353.59, 562.72, 351.02, 503.61, 350.38, 502.97, 351.99, 505.38, 352.31]], "area": 115.52940000000105, "iscrowd": 0, "image_id": 579659, "bbox": [502.97, 350.38, 59.91, 3.21], "category_id": 49, "id": 1524766}, {"segmentation": [[210.93, 207.39, 281.54, 210.53, 279.83, 213.66, 232.29, 217.64, 197.27, 214.8]], "area": 548.4845499999999, "iscrowd": 0, "image_id": 446266, "bbox": [197.27, 207.39, 84.27, 10.25], "category_id": 49, "id": 1524881}, {"segmentation": [[560.84, 405.65, 543.21, 406.2, 538.25, 404.82, 538.52, 402.34, 561.12, 402.07, 561.67, 402.34, 566.63, 401.79, 590.88, 402.89, 593.08, 405.92, 592.26, 407.3, 562.22, 406.2, 560.84, 405.1]], "area": 219.08380000000005, "iscrowd": 0, "image_id": 579659, "bbox": [538.25, 401.79, 54.83, 5.51], "category_id": 49, "id": 1525250}, {"segmentation": [[210.67, 202.24, 215.21, 189.25, 217.88, 190.32, 213.7, 202.86, 213.08, 203.84, 211.83, 203.13]], "area": 41.885799999999925, "iscrowd": 0, "image_id": 135149, "bbox": [210.67, 189.25, 7.21, 14.59], "category_id": 49, "id": 1525459}, {"segmentation": [[218.12, 213.21, 221.49, 204.31, 222.3, 202.16, 226.08, 201.75, 226.62, 203.37, 225.27, 203.91, 224.46, 208.09, 221.76, 213.21, 219.07, 213.21]], "area": 45.69955, "iscrowd": 0, "image_id": 135149, "bbox": [218.12, 201.75, 8.5, 11.46], "category_id": 49, "id": 1525595}, {"segmentation": [[362.36, 344.14, 373.78, 343.57, 381.85, 344.03, 388.88, 344.03, 394.53, 344.37, 398.8, 344.95, 399.49, 344.6, 398.57, 342.64, 397.53, 342.07, 381.96, 341.49, 367.67, 340.8, 363.05, 340.8, 359.13, 340.91, 360.75, 342.76, 362.48, 343.68]], "area": 101.11419999999917, "iscrowd": 0, "image_id": 579659, "bbox": [359.13, 340.8, 40.36, 4.15], "category_id": 49, "id": 1525930}, {"segmentation": [[250.17, 272.05, 281.98, 272.77, 282.16, 273.85, 281.62, 274.57, 271.01, 274.3, 255.02, 274.75, 250.62, 274.75, 249.72, 274.21, 249.99, 272.68]], "area": 68.00175000000026, "iscrowd": 0, "image_id": 579659, "bbox": [249.72, 272.05, 32.44, 2.7], "category_id": 49, "id": 1526041}, {"segmentation": [[526.61, 177.47, 526.14, 178.75, 525.27, 179.96, 523.79, 181.1, 522.85, 181.23, 522.25, 179.82, 521.38, 171.03, 520.7, 167.47, 520.84, 164.78, 521.71, 164.31, 521.91, 164.38, 522.52, 164.71, 523.26, 165.52, 523.39, 167.8, 523.59, 169.48, 524.2, 170.42, 524.73, 171.7, 525.41, 173.44, 526.08, 175.46]], "area": 53.935949999999856, "iscrowd": 0, "image_id": 110484, "bbox": [520.7, 164.31, 5.91, 16.92], "category_id": 49, "id": 1526102}, {"segmentation": [[222.42, 193.2, 225.8, 192.46, 225.65, 193.49, 224.48, 195.4, 221.98, 201.42, 220.07, 201.57, 218.75, 203.48, 217.13, 206.71, 216.69, 206.27, 221.69, 193.64]], "area": 35.03284999999996, "iscrowd": 0, "image_id": 135149, "bbox": [216.69, 192.46, 9.11, 14.25], "category_id": 49, "id": 1526129}, {"segmentation": [[562.1, 259.47, 527.71, 193.68, 502.29, 136.86, 488.09, 92.74, 507.52, 86.76, 532.94, 106.95, 565.09, 188.44, 554.63, 190.69, 571.82, 249.0]], "area": 5343.825350000003, "iscrowd": 0, "image_id": 101766, "bbox": [488.09, 86.76, 83.73, 172.71], "category_id": 49, "id": 1526161}, {"segmentation": [[517.51, 411.81, 508.69, 393.9, 506.76, 392.8, 504.01, 395.0, 505.39, 400.52, 511.45, 413.19]], "area": 118.62850000000012, "iscrowd": 0, "image_id": 579659, "bbox": [504.01, 392.8, 13.5, 20.39], "category_id": 49, "id": 1526163}, {"segmentation": [[528.9, 176.56, 527.91, 177.14, 527.02, 177.14, 526.7, 177.08, 525.5, 173.16, 524.61, 171.49, 524.72, 170.23, 524.98, 168.45, 524.87, 167.09, 524.98, 165.89, 524.87, 164.58, 525.5, 163.95, 526.29, 163.9, 527.07, 164.06, 527.54, 164.06, 527.65, 164.95, 527.75, 166.41, 527.75, 167.67, 528.01, 169.76, 528.73, 173.04, 528.62, 174.56]], "area": 38.441649999999726, "iscrowd": 0, "image_id": 110484, "bbox": [524.61, 163.9, 4.29, 13.24], "category_id": 49, "id": 1526219}, {"segmentation": [[526.94, 163.72, 525.89, 159.91, 521.89, 160.09, 523.92, 165.26, 524.84, 163.97]], "area": 15.844800000000214, "iscrowd": 0, "image_id": 110484, "bbox": [521.89, 159.91, 5.05, 5.35], "category_id": 49, "id": 1526404}, {"segmentation": [[550.24, 420.75, 548.1, 417.63, 548.99, 414.79, 561.09, 410.43, 574.52, 406.42, 580.39, 404.56, 580.75, 402.06, 577.37, 399.75, 573.63, 401.62, 564.56, 405.09, 556.46, 408.2, 547.74, 411.32, 545.25, 413.18, 543.39, 414.43, 541.25, 415.05, 538.14, 414.43, 533.16, 413.18, 528.8, 412.92, 525.33, 412.83, 526.84, 416.3, 530.58, 419.41, 531.55, 420.3, 537.78, 423.24, 545.52, 423.5, 549.88, 422.61, 550.24, 420.75]], "area": 326.50235000000083, "iscrowd": 0, "image_id": 176587, "bbox": [525.33, 399.75, 55.42, 23.75], "category_id": 50, "id": 1527115}, {"segmentation": [[204.37, 361.38, 203.66, 364.23, 200.1, 366.01, 195.92, 368.23, 192.72, 369.92, 189.69, 370.1, 189.34, 367.16, 189.78, 364.32, 192.36, 360.23, 194.5, 358.54, 199.12, 356.31, 204.01, 356.93]], "area": 134.02104999999992, "iscrowd": 0, "image_id": 561406, "bbox": [189.34, 356.31, 15.03, 13.79], "category_id": 50, "id": 1527688}, {"segmentation": [[246.96, 218.14, 255.69, 205.05, 254.78, 203.77, 256.24, 198.87, 259.87, 199.41, 261.69, 201.23, 258.78, 200.86, 258.96, 202.86, 258.96, 202.86, 263.69, 203.59, 259.33, 206.14, 257.87, 206.14, 257.87, 206.14, 248.6, 219.59]], "area": 71.22579999999975, "iscrowd": 0, "image_id": 346754, "bbox": [246.96, 198.87, 16.73, 20.72], "category_id": 50, "id": 1528052}, {"segmentation": [[559.51, 376.3, 528.63, 373.33, 518.38, 371.72, 515.01, 372.12, 508.81, 374.14, 503.96, 374.41, 494.25, 372.53, 487.91, 368.35, 487.24, 365.51, 487.64, 363.63, 489.66, 363.63, 498.83, 365.38, 502.07, 366.32, 512.04, 369.96, 517.98, 369.83, 522.97, 369.42, 535.24, 369.96, 553.3, 373.33, 559.24, 373.87]], "area": 306.85675000000055, "iscrowd": 0, "image_id": 561406, "bbox": [487.24, 363.63, 72.27, 12.67], "category_id": 50, "id": 1528202}, {"segmentation": [[493.64, 388.58, 527.51, 353.12, 531.09, 350.33, 531.09, 354.31, 528.7, 356.7, 496.43, 390.17]], "area": 166.89565000000172, "iscrowd": 0, "image_id": 185591, "bbox": [493.64, 350.33, 37.45, 39.84], "category_id": 50, "id": 1528233}, {"segmentation": [[164.35, 387.31, 180.04, 388.3, 181.28, 390.67, 180.29, 392.53, 164.73, 389.05]], "area": 48.26294999999977, "iscrowd": 0, "image_id": 480818, "bbox": [164.35, 387.31, 16.93, 5.22], "category_id": 50, "id": 1528748}, {"segmentation": [[608.75, 170.23, 611.83, 163.46, 615.07, 159.92, 617.53, 159.3, 620.61, 164.08, 621.53, 171.16, 620.76, 173.31], [606.87, 175.66, 604.18, 186.04, 606.87, 189.88, 600.34, 235.62, 599.19, 245.61, 599.19, 251.38, 601.49, 250.99, 611.49, 192.57, 616.87, 189.11, 621.1, 180.66, 621.48, 176.43, 606.87, 175.28]], "area": 569.0391999999989, "iscrowd": 0, "image_id": 223838, "bbox": [599.19, 159.3, 22.34, 92.08], "category_id": 50, "id": 1529526}, {"segmentation": [[600.29, 170.13, 601.7, 159.17, 605.59, 151.39, 610.9, 146.08, 613.37, 145.73, 616.55, 152.09, 615.49, 159.52, 612.66, 160.94, 609.48, 170.48]], "area": 250.76724999999925, "iscrowd": 0, "image_id": 223838, "bbox": [600.29, 145.73, 16.26, 24.75], "category_id": 50, "id": 1531179}, {"segmentation": [[589.44, 158.87, 585.85, 162.18, 584.47, 166.32, 584.19, 172.12, 586.4, 179.58, 588.06, 186.76, 586.4, 212.17, 593.58, 216.04, 594.96, 185.38, 597.17, 183.45, 598.28, 179.03, 599.1, 171.57, 599.38, 169.91, 600.21, 163.56, 597.72, 158.04, 596.34, 156.66, 594.41, 157.21], [587.41, 224.02, 587.72, 247.48, 592.72, 245.61, 592.72, 226.21, 587.72, 221.52]], "area": 675.7234000000025, "iscrowd": 0, "image_id": 223838, "bbox": [584.19, 156.66, 16.02, 90.82], "category_id": 50, "id": 1531234}, {"segmentation": [[626.23, 167.77, 632.5, 154.41, 632.08, 145.64, 630.83, 145.64, 625.82, 149.82, 620.8, 159.42, 620.8, 169.03]], "area": 163.06610000000066, "iscrowd": 0, "image_id": 223838, "bbox": [620.8, 145.64, 11.7, 23.39], "category_id": 50, "id": 1531304}, {"segmentation": [[614.52, 147.16, 615.74, 145.32, 617.88, 144.21, 621.75, 144.1, 623.68, 145.53, 624.91, 147.56, 625.31, 150.11, 624.09, 153.57, 622.26, 157.34, 621.45, 159.78, 621.34, 159.98, 621.14, 163.75, 620.83, 164.05, 618.19, 160.59, 617.37, 158.96, 616.25, 159.68, 615.74, 159.68, 615.74, 157.13, 616.46, 151.23, 616.05, 149.5, 614.22, 147.36]], "area": 131.06724999999955, "iscrowd": 0, "image_id": 223838, "bbox": [614.22, 144.1, 11.09, 19.95], "category_id": 50, "id": 1531360}, {"segmentation": [[314.7, 589.2, 287.79, 558.53, 274.64, 532.86, 267.13, 500.94, 267.13, 479.65, 271.51, 469.63, 290.92, 461.5, 315.96, 457.74, 348.51, 457.74, 405.48, 461.5, 426.0, 469.01, 426.0, 494.68, 401.72, 488.41, 372.92, 484.03, 341.0, 483.41, 316.58, 483.41, 292.79, 487.79, 290.92, 491.54, 322.84, 497.81, 359.78, 504.07, 389.83, 505.32, 426.0, 503.44, 426.0, 585.45, 418.62, 592.33, 374.8, 591.08, 363.53, 591.08, 370.42, 587.33, 334.74, 587.33]], "area": 16813.107000000007, "iscrowd": 0, "image_id": 516300, "bbox": [267.13, 457.74, 158.87, 134.59], "category_id": 51, "id": 1531563}, {"segmentation": [[408.48, 330.27, 403.52, 330.88, 398.88, 338.32, 401.05, 351.33, 403.21, 357.83, 406.93, 385.09, 412.82, 391.91, 412.51, 395.63, 436.67, 403.06, 441.93, 400.27, 448.13, 401.82, 449.06, 403.99, 462.69, 400.89, 472.6, 393.46, 473.84, 387.57, 474.77, 354.12, 471.67, 355.36, 462.07, 359.38, 432.02, 360.31, 415.8, 353.72, 406.0, 346.99, 405.07, 335.22]], "area": 2991.876449999998, "iscrowd": 0, "image_id": 382979, "bbox": [398.88, 330.27, 75.89, 73.72], "category_id": 51, "id": 1532031}, {"segmentation": [[318.09, 276.17, 311.2, 284.23, 306.81, 284.81, 299.63, 284.08, 290.98, 274.7, 295.53, 273.09, 303.44, 272.94, 311.5, 272.8, 317.07, 273.82]], "area": 230.72469999999987, "iscrowd": 0, "image_id": 16125, "bbox": [290.98, 272.8, 27.11, 12.01], "category_id": 51, "id": 1532300}, {"segmentation": [[202.01, 337.31, 185.58, 339.66, 172.43, 333.56, 159.28, 322.76, 163.04, 310.08, 183.7, 303.98, 208.11, 303.04, 225.49, 306.33, 231.59, 312.43, 220.79, 326.05, 204.36, 335.44]], "area": 1851.1462500000005, "iscrowd": 0, "image_id": 561406, "bbox": [159.28, 303.04, 72.31, 36.62], "category_id": 51, "id": 1532326}, {"segmentation": [[33.82, 93.66, 34.28, 109.81, 36.59, 122.27, 41.9, 134.5, 47.66, 139.8, 59.2, 144.88, 74.89, 145.34, 87.81, 142.11, 95.43, 132.65, 100.04, 124.11, 103.27, 102.89, 103.04, 98.96, 97.96, 94.12, 92.2, 91.58, 74.66, 89.97, 60.12, 89.04, 44.43, 88.35, 36.36, 89.73, 32.9, 92.04]], "area": 3286.87215, "iscrowd": 0, "image_id": 17580, "bbox": [32.9, 88.35, 70.37, 56.99], "category_id": 51, "id": 1532454}, {"segmentation": [[162.16, 266.76, 166.96, 310.89, 176.56, 347.36, 197.67, 379.02, 233.17, 419.32, 382.86, 421.24, 418.36, 406.85, 449.07, 351.2, 462.5, 302.26, 471.14, 255.24, 431.8, 259.08, 334.88, 259.08, 207.26, 261.96, 158.33, 261.0]], "area": 42172.161850000004, "iscrowd": 0, "image_id": 34579, "bbox": [158.33, 255.24, 312.81, 166.0], "category_id": 51, "id": 1532627}, {"segmentation": [[469.87, 194.86, 482.75, 197.91, 484.28, 203.15, 483.19, 204.68, 477.51, 206.64, 472.06, 206.86, 464.42, 207.51, 463.33, 211.44, 461.8, 212.75, 443.03, 209.26, 439.54, 204.24, 439.54, 202.93, 433.43, 194.64, 434.52, 192.89, 445.65, 191.8, 446.96, 190.27, 450.45, 188.09, 457.22, 188.53, 463.76, 189.4, 468.13, 191.8]], "area": 770.8743999999996, "iscrowd": 0, "image_id": 543882, "bbox": [433.43, 188.09, 50.85, 24.66], "category_id": 51, "id": 1532811}, {"segmentation": [[228.41, 248.38, 239.45, 248.01, 244.69, 248.01, 246.75, 248.19, 248.06, 254.93, 242.07, 255.12, 229.16, 255.68, 226.35, 252.87, 226.35, 249.13, 227.28, 247.44]], "area": 148.0083500000003, "iscrowd": 0, "image_id": 290153, "bbox": [226.35, 247.44, 21.71, 8.24], "category_id": 51, "id": 1533511}, {"segmentation": [[441.01, 87.11, 452.13, 87.48, 453.12, 86.24, 453.98, 85.38, 455.84, 87.23, 462.64, 88.96, 461.4, 94.77, 459.05, 107.38, 442.86, 105.28, 438.29, 103.3, 433.47, 96.62, 429.76, 92.42, 429.26, 88.71, 431.12, 87.11]], "area": 512.1735499999995, "iscrowd": 0, "image_id": 111705, "bbox": [429.26, 85.38, 33.38, 22.0], "category_id": 51, "id": 1533747}, {"segmentation": [[258.72, 118.87, 262.93, 174.85, 263.54, 185.68, 271.96, 192.3, 281.59, 196.51, 287.01, 201.93, 297.24, 206.74, 302.05, 210.36, 299.65, 224.8, 298.44, 233.83, 294.83, 242.26, 293.63, 242.86, 293.63, 244.66, 296.64, 251.28, 297.24, 251.28, 300.25, 254.29, 300.85, 266.93, 300.25, 271.75, 300.25, 271.75, 355.02, 260.31, 447.1, 258.51, 448.91, 257.3, 449.51, 245.26, 457.34, 132.11, 462.15, 128.5, 459.74, 116.47, 459.14, 114.66, 458.54, 112.25, 456.73, 107.44, 431.46, 94.2, 404.97, 91.19, 379.7, 87.58, 361.04, 88.18, 339.97, 90.59, 318.3, 90.59, 299.65, 91.79, 282.79, 97.21, 276.17, 99.61, 268.95, 102.62, 260.53, 105.03]], "area": 30114.3274, "iscrowd": 0, "image_id": 446266, "bbox": [258.72, 87.58, 203.43, 184.17], "category_id": 51, "id": 1533952}, {"segmentation": [[247.21, 258.04, 247.52, 265.46, 228.98, 264.84, 225.58, 255.57, 232.99, 255.57]], "area": 173.89469999999955, "iscrowd": 0, "image_id": 290153, "bbox": [225.58, 255.57, 21.94, 9.89], "category_id": 51, "id": 1534277}, {"segmentation": [[279.15, 355.35, 281.69, 370.42, 286.59, 378.22, 294.21, 381.12, 308.73, 382.03, 321.25, 368.06, 323.79, 353.9, 323.43, 349.18, 313.63, 343.01, 308.55, 342.47, 303.47, 341.38, 286.41, 343.55, 280.24, 349.91]], "area": 1439.3756, "iscrowd": 0, "image_id": 354359, "bbox": [279.15, 341.38, 44.64, 40.65], "category_id": 51, "id": 1534320}, {"segmentation": [[559.91, 241.79, 549.41, 232.12, 534.77, 215.28, 534.5, 208.92, 550.79, 200.36, 579.24, 189.59, 584.49, 187.38, 585.6, 195.11, 582.28, 206.16, 588.08, 214.72, 585.32, 219.7, 582.0, 231.02]], "area": 1753.2474000000016, "iscrowd": 0, "image_id": 541994, "bbox": [534.5, 187.38, 53.58, 54.41], "category_id": 51, "id": 1534989}, {"segmentation": [[238.89, 450.03, 260.31, 460.9, 282.35, 455.93, 297.88, 444.14, 301.6, 436.06, 299.74, 424.89, 288.87, 413.71, 263.73, 411.85, 245.1, 419.3, 235.79, 429.54, 234.23, 440.1]], "area": 2452.1499999999996, "iscrowd": 0, "image_id": 130624, "bbox": [234.23, 411.85, 67.37, 49.05], "category_id": 51, "id": 1535363}, {"segmentation": [[347.28, 371.04, 350.12, 354.86, 350.69, 344.92, 348.7, 320.49, 353.81, 319.07, 371.7, 320.49, 397.69, 335.39, 402.18, 341.95, 402.56, 349.63, 394.13, 360.49, 391.5, 379.6, 390.76, 387.1, 379.7, 401.9, 366.4, 412.95, 359.28, 417.64, 341.11, 417.64]], "area": 4046.0555999999997, "iscrowd": 0, "image_id": 493873, "bbox": [341.11, 319.07, 61.45, 98.57], "category_id": 51, "id": 1535575}, {"segmentation": [[173.65, 232.51, 174.15, 243.09, 178.68, 243.34, 178.43, 245.86, 195.3, 246.61, 206.37, 247.87, 208.64, 235.03, 207.63, 232.77, 198.82, 228.74, 182.46, 228.49, 175.41, 229.75, 172.64, 230.75]], "area": 570.06255, "iscrowd": 0, "image_id": 34356, "bbox": [172.64, 228.49, 36.0, 19.38], "category_id": 51, "id": 1535618}, {"segmentation": [[515.63, 394.07, 512.54, 389.15, 512.96, 385.92, 513.1, 384.23, 521.67, 385.64, 534.74, 385.64, 553.29, 377.63, 554.13, 373.27, 556.52, 367.09, 559.05, 363.86, 566.07, 367.51, 563.54, 379.46, 554.83, 408.54, 551.18, 420.21, 545.84, 424.7, 535.02, 428.78, 517.31, 429.06, 516.47, 428.78, 510.15, 422.17, 506.92, 420.77, 497.64, 423.58, 492.44, 423.44, 486.82, 418.52, 487.81, 414.45, 492.44, 412.76, 502.14, 408.82, 503.26, 408.4, 510.71, 416.41, 514.93, 417.96, 520.26, 417.26, 525.46, 411.63, 526.87, 407.98, 523.36, 398.29, 520.41, 394.63], [478.95, 363.3, 491.74, 375.52, 509.73, 382.83, 509.73, 383.81, 502.98, 389.57, 493.71, 387.19, 487.67, 392.67, 481.62, 404.47, 477.69, 402.36, 475.44, 371.03, 474.74, 362.31, 476.56, 360.07]], "area": 2667.528500000001, "iscrowd": 0, "image_id": 382979, "bbox": [474.74, 360.07, 91.33, 68.99], "category_id": 51, "id": 1536103}, {"segmentation": [[555.59, 237.03, 553.67, 215.65, 550.93, 199.48, 563.26, 186.88, 599.71, 179.75, 625.47, 180.57, 640.0, 182.22, 640.0, 286.35, 618.89, 280.6, 583.0, 268.54, 567.37, 255.66, 559.43, 244.7, 559.43, 226.61]], "area": 7474.684350000003, "iscrowd": 0, "image_id": 67657, "bbox": [550.93, 179.75, 89.07, 106.6], "category_id": 51, "id": 1536133}, {"segmentation": [[414.45, 85.59, 433.24, 76.38, 470.44, 70.25, 508.02, 70.63, 550.97, 77.53, 555.19, 83.29, 555.95, 90.19, 537.16, 110.9, 514.16, 119.72, 490.38, 123.93, 465.45, 123.93, 441.68, 120.1, 428.26, 111.66, 418.67, 105.14, 410.62, 93.26, 411.38, 89.04]], "area": 6000.985100000001, "iscrowd": 0, "image_id": 332065, "bbox": [410.62, 70.25, 145.33, 53.68], "category_id": 51, "id": 1536140}, {"segmentation": [[185.6, 242.81, 186.52, 240.4, 187.92, 239.47, 200.52, 238.73, 204.14, 241.6, 204.97, 246.33, 204.05, 247.81, 194.68, 249.02, 186.9, 249.02]], "area": 169.2842000000002, "iscrowd": 0, "image_id": 290153, "bbox": [185.6, 238.73, 19.37, 10.29], "category_id": 51, "id": 1536250}, {"segmentation": [[266.59, 178.56, 277.72, 178.69, 276.72, 189.44, 270.22, 190.31, 268.09, 190.19, 264.47, 183.06, 264.09, 179.06]], "area": 132.74905000000032, "iscrowd": 0, "image_id": 346754, "bbox": [264.09, 178.56, 13.63, 11.75], "category_id": 51, "id": 1536424}, {"segmentation": [[289.91, 242.97, 295.27, 250.41, 296.1, 264.86, 300.23, 274.36, 304.36, 281.38, 311.38, 284.28, 315.51, 285.51, 322.53, 288.41, 329.97, 289.64, 336.16, 290.47, 344.84, 290.06, 346.49, 288.41, 347.31, 262.39, 348.14, 258.26, 354.34, 255.36, 366.31, 257.84, 363.42, 257.02, 364.25, 249.17, 372.92, 243.8, 368.79, 238.43, 353.51, 234.3, 338.64, 231.0, 324.19, 231.0, 314.69, 232.65, 303.95, 233.06, 295.27, 236.37, 290.32, 240.08]], "area": 3201.314199999999, "iscrowd": 0, "image_id": 493873, "bbox": [289.91, 231.0, 83.01, 59.47], "category_id": 51, "id": 1536873}, {"segmentation": [[231.21, 355.49, 227.01, 369.75, 208.56, 373.11, 128.86, 373.95, 114.6, 358.01, 110.4, 347.94, 137.25, 222.94, 153.19, 211.2, 192.62, 208.68, 231.21, 211.2, 242.95, 222.94, 232.05, 313.55, 231.21, 347.1]], "area": 17996.861399999998, "iscrowd": 0, "image_id": 428208, "bbox": [110.4, 208.68, 132.55, 165.27], "category_id": 51, "id": 1537115}, {"segmentation": [[252.78, 180.92, 253.01, 183.45, 253.47, 185.87, 254.51, 187.71, 255.54, 189.44, 263.02, 189.67, 263.48, 188.75, 264.86, 186.68, 265.55, 184.84, 264.86, 180.92]], "area": 95.76830000000027, "iscrowd": 0, "image_id": 346754, "bbox": [252.78, 180.92, 12.77, 8.75], "category_id": 51, "id": 1537335}, {"segmentation": [[34.19, 302.42, 41.7, 319.69, 54.09, 319.32, 70.61, 314.06, 68.73, 295.66, 57.84, 290.03, 46.58, 290.78, 36.07, 299.04]], "area": 829.3531500000003, "iscrowd": 0, "image_id": 169686, "bbox": [34.19, 290.03, 36.42, 29.66], "category_id": 51, "id": 1537394}, {"segmentation": [[1.72, 259.73, 9.79, 260.74, 12.81, 264.1, 19.53, 274.18, 20.2, 285.61, 19.53, 294.68, 19.53, 304.76, 13.48, 313.83, 0.38, 319.88, 0.0, 302.07]], "area": 962.6995999999995, "iscrowd": 0, "image_id": 96177, "bbox": [0.0, 259.73, 20.2, 60.15], "category_id": 51, "id": 1537397}, {"segmentation": [[242.19, 181.95, 252.74, 181.8, 252.59, 186.21, 251.32, 188.41, 244.16, 188.81, 242.5, 185.89, 241.64, 182.43]], "area": 66.32490000000004, "iscrowd": 0, "image_id": 346754, "bbox": [241.64, 181.8, 11.1, 7.01], "category_id": 51, "id": 1537718}, {"segmentation": [[82.98, 66.36, 84.64, 59.87, 86.14, 55.88, 85.64, 40.57, 88.14, 33.58, 95.62, 30.25, 102.95, 30.09, 107.6, 29.75, 116.42, 15.78, 122.58, 15.44, 131.9, 20.94, 134.89, 21.27, 150.37, 18.94, 156.52, 21.1, 160.68, 25.76, 162.18, 28.59, 172.5, 35.41, 174.83, 43.23, 169.0, 75.01, 165.51, 95.81, 162.85, 101.47, 161.52, 105.3, 154.53, 108.96, 137.55, 106.79, 129.4, 102.97, 121.08, 99.97, 114.93, 103.63, 112.76, 112.28, 107.44, 112.62, 92.8, 109.12, 82.65, 105.13, 76.32, 99.97, 74.49, 95.31]], "area": 7249.577350000003, "iscrowd": 0, "image_id": 428208, "bbox": [74.49, 15.44, 100.34, 97.18], "category_id": 51, "id": 1537750}, {"segmentation": [[328.36, 223.07, 329.36, 218.27, 333.36, 215.87, 341.36, 214.67, 351.95, 214.07, 361.75, 214.87, 368.34, 215.67, 377.34, 216.87, 381.74, 217.67, 386.14, 219.87, 390.33, 223.46, 389.13, 228.66, 382.34, 234.26, 380.54, 236.86, 370.94, 239.46, 366.14, 239.06, 362.55, 233.46, 355.95, 231.66, 346.55, 230.06, 339.96, 229.06, 335.36, 229.06, 332.56, 229.06, 329.36, 226.26]], "area": 1020.3462499999998, "iscrowd": 0, "image_id": 543882, "bbox": [328.36, 214.07, 61.97, 25.39], "category_id": 51, "id": 1537894}, {"segmentation": [[241.93, 187.65, 242.61, 184.94, 241.25, 182.9, 233.79, 182.73, 233.45, 184.09, 234.13, 187.48, 235.31, 188.67]], "area": 44.27160000000007, "iscrowd": 0, "image_id": 346754, "bbox": [233.45, 182.73, 9.16, 5.94], "category_id": 51, "id": 1537986}, {"segmentation": [[122.16, 286.22, 125.92, 300.7, 131.37, 303.34, 145.48, 303.15, 155.63, 300.7, 162.03, 296.94, 162.59, 286.6, 164.09, 282.84, 159.96, 280.39, 150.74, 279.64, 137.01, 279.64, 125.54, 280.96, 121.97, 285.66]], "area": 839.2689499999998, "iscrowd": 0, "image_id": 16125, "bbox": [121.97, 279.64, 42.12, 23.7], "category_id": 51, "id": 1538030}, {"segmentation": [[636.93, 381.52, 625.43, 373.99, 617.49, 364.86, 623.84, 355.74, 635.74, 355.74, 640.0, 356.53]], "area": 371.9776499999996, "iscrowd": 0, "image_id": 130624, "bbox": [617.49, 355.74, 22.51, 25.78], "category_id": 51, "id": 1538312}, {"segmentation": [[226.27, 184.76, 226.09, 183.12, 233.73, 183.3, 233.91, 187.85, 233.0, 188.76, 228.46, 189.3, 226.27, 187.12, 225.91, 184.76]], "area": 42.139749999999886, "iscrowd": 0, "image_id": 346754, "bbox": [225.91, 183.12, 8.0, 6.18], "category_id": 51, "id": 1538430}, {"segmentation": [[3.84, 291.7, 51.82, 308.98, 112.27, 317.61, 157.37, 345.44, 252.36, 361.75, 367.51, 366.55, 436.6, 357.91, 536.39, 332.96, 567.09, 308.02, 607.4, 304.18, 636.18, 292.66, 640.0, 389.58, 629.47, 420.28, 398.21, 420.28, 36.46, 421.24, 0.96, 379.02]], "area": 51518.96954999999, "iscrowd": 0, "image_id": 434201, "bbox": [0.96, 291.7, 639.04, 129.54], "category_id": 51, "id": 1538499}, {"segmentation": [[92.53, 294.15, 91.32, 305.01, 88.31, 311.64, 78.96, 314.35, 73.39, 314.2, 70.52, 308.62, 69.62, 302.75, 69.62, 298.07, 67.96, 295.36, 67.81, 292.95, 70.22, 292.5, 76.4, 291.74, 81.98, 290.09, 89.06, 290.24, 89.66, 290.69]], "area": 471.1312500000001, "iscrowd": 0, "image_id": 169686, "bbox": [67.81, 290.09, 24.72, 24.26], "category_id": 51, "id": 1538647}, {"segmentation": [[4.31, 259.88, 21.57, 259.88, 38.83, 262.75, 53.21, 267.07, 61.84, 275.7, 48.9, 285.76, 35.96, 305.9, 28.76, 324.59, 18.7, 333.22, 5.75, 336.1, 1.44, 327.47, 1.44, 310.21, 1.44, 303.02]], "area": 2848.0295, "iscrowd": 0, "image_id": 493873, "bbox": [1.44, 259.88, 60.4, 76.22], "category_id": 51, "id": 1538958}, {"segmentation": [[566.95, 372.39, 563.42, 409.4, 568.01, 428.08, 570.83, 431.61, 572.59, 435.13, 580.35, 431.26, 584.93, 430.55, 593.74, 433.02, 596.21, 438.31, 595.86, 445.71, 613.48, 450.64, 630.75, 449.23, 636.39, 444.65, 640.0, 408.7, 593.39, 400.59, 592.68, 400.59, 590.57, 402.0, 589.86, 403.05, 588.81, 411.87, 602.2, 415.39, 606.08, 418.21, 604.67, 429.49, 600.79, 434.78, 584.93, 429.49, 586.69, 409.05, 590.57, 399.53, 588.1, 394.59, 585.28, 393.18, 584.58, 393.18, 579.29, 396.0, 571.18, 393.54, 567.3, 387.54]], "area": 2630.8911500000004, "iscrowd": 0, "image_id": 382979, "bbox": [563.42, 372.39, 76.58, 78.25], "category_id": 51, "id": 1539037}, {"segmentation": [[568.48, 254.83, 573.0, 261.43, 586.76, 261.8, 592.04, 255.02, 588.45, 248.99, 569.61, 249.18, 567.73, 250.31, 567.16, 252.95]], "area": 255.70054999999985, "iscrowd": 0, "image_id": 222572, "bbox": [567.16, 248.99, 24.88, 12.81], "category_id": 51, "id": 1539325}, {"segmentation": [[526.15, 299.8, 541.18, 310.2, 568.35, 315.98, 601.87, 315.41, 604.76, 311.94, 601.87, 328.7, 598.4, 331.59, 581.06, 331.01, 581.06, 338.53, 581.06, 344.89, 577.02, 346.62, 574.13, 334.48, 573.55, 332.17, 568.35, 333.32, 567.77, 325.23, 561.41, 320.61, 553.32, 317.14, 545.22, 323.5, 542.33, 317.14, 535.4, 315.41, 523.84, 320.61, 526.73, 318.3, 527.31, 310.78, 525.57, 302.11]], "area": 1007.0395499999984, "iscrowd": 0, "image_id": 382979, "bbox": [523.84, 299.8, 80.92, 46.82], "category_id": 51, "id": 1539770}, {"segmentation": [[115.73, 271.41, 118.75, 282.23, 121.52, 286.01, 124.54, 281.73, 129.57, 281.23, 142.15, 279.21, 151.21, 279.21, 153.73, 278.71, 153.73, 271.16, 148.44, 269.4, 141.9, 267.89, 129.57, 268.14, 121.27, 269.65, 116.99, 269.65]], "area": 435.78725000000037, "iscrowd": 0, "image_id": 16125, "bbox": [115.73, 267.89, 38.0, 18.12], "category_id": 51, "id": 1539923}, {"segmentation": [[160.47, 116.13, 177.36, 102.62, 241.55, 106.0, 255.91, 118.67, 248.31, 198.9, 243.24, 218.33, 233.11, 212.42, 150.34, 209.04, 156.25, 208.19, 146.11, 197.21, 158.78, 116.13]], "area": 10373.376400000003, "iscrowd": 0, "image_id": 428208, "bbox": [146.11, 102.62, 109.8, 115.71], "category_id": 51, "id": 1539987}, {"segmentation": [[178.93, 37.74, 172.17, 53.65, 167.8, 86.26, 166.2, 94.61, 175.75, 103.76, 178.14, 101.37, 220.69, 105.35, 242.97, 105.75, 247.34, 110.52, 252.11, 103.76, 257.28, 89.84, 260.47, 58.42, 260.86, 46.09, 256.89, 38.93, 254.5, 32.97, 239.78, 28.19, 235.81, 27.4, 231.83, 20.24, 223.48, 20.24, 213.93, 25.81, 208.36, 26.2, 202.8, 23.82, 194.84, 23.02, 190.07, 24.61, 180.52, 34.56]], "area": 6700.784699999998, "iscrowd": 0, "image_id": 428208, "bbox": [166.2, 20.24, 94.66, 90.28], "category_id": 51, "id": 1540197}, {"segmentation": [[335.04, 260.59, 333.55, 264.9, 329.4, 269.22, 323.42, 268.89, 321.93, 264.24, 323.92, 258.76, 325.58, 254.78, 328.4, 254.78, 333.22, 255.27, 337.03, 257.1]], "area": 150.63319999999985, "iscrowd": 0, "image_id": 130624, "bbox": [321.93, 254.78, 15.1, 14.44], "category_id": 51, "id": 1540783}, {"segmentation": [[242.78, 350.41, 249.33, 373.99, 276.83, 376.61, 295.17, 365.47, 302.37, 355.0, 300.4, 341.24, 270.28, 345.83, 242.12, 347.79], [221.82, 301.3, 240.81, 296.06, 289.27, 293.44, 314.16, 301.3, 327.25, 311.78, 323.32, 322.25, 318.74, 314.4, 314.81, 312.43, 304.99, 312.43, 297.13, 331.42, 287.96, 317.67, 280.76, 309.16, 255.87, 302.61, 253.25, 303.92, 261.77, 315.05, 238.85, 320.29, 233.61, 326.18, 225.75, 305.88], [203.49, 309.16, 195.63, 325.53, 213.96, 345.17, 208.73, 313.09]], "area": 3643.8634000000025, "iscrowd": 0, "image_id": 130624, "bbox": [195.63, 293.44, 131.62, 83.17], "category_id": 51, "id": 1540833}, {"segmentation": [[346.35, 32.72, 358.15, 90.87, 375.84, 95.08, 433.15, 94.24, 441.57, 98.46, 450.0, 78.23, 435.67, 43.68, 422.19, 24.3, 404.49, 20.93, 386.8, 16.71, 369.1, 15.87, 356.46, 23.46]], "area": 6469.11855, "iscrowd": 0, "image_id": 428208, "bbox": [346.35, 15.87, 103.65, 82.59], "category_id": 51, "id": 1540956}, {"segmentation": [[135.67, 219.94, 104.49, 351.4, 99.44, 363.2, 66.57, 366.57, 0.84, 363.2, 0.0, 312.64, 10.96, 267.13, 29.49, 215.73, 47.19, 208.99, 92.7, 207.3, 128.09, 209.83, 139.04, 219.94]], "area": 17097.872649999994, "iscrowd": 0, "image_id": 428208, "bbox": [0.0, 207.3, 139.04, 159.27], "category_id": 51, "id": 1541010}, {"segmentation": [[486.86, 305.02, 485.11, 315.19, 491.07, 323.62, 500.55, 319.4, 506.51, 317.65, 513.18, 318.35, 513.18, 307.82, 508.97, 295.19], [439.84, 289.58, 442.29, 305.02, 445.8, 305.02, 451.07, 297.3]], "area": 614.4834499999989, "iscrowd": 0, "image_id": 382979, "bbox": [439.84, 289.58, 73.34, 34.04], "category_id": 51, "id": 1541084}, {"segmentation": [[255.52, 118.61, 263.71, 106.84, 326.63, 102.75, 342.49, 117.59, 354.26, 196.37, 341.98, 219.91, 265.24, 213.77, 249.89, 190.74]], "area": 10318.18485, "iscrowd": 0, "image_id": 428208, "bbox": [249.89, 102.75, 104.37, 117.16], "category_id": 51, "id": 1541210}, {"segmentation": [[343.38, 433.95, 344.3, 436.74, 347.4, 449.44, 336.56, 462.76, 331.91, 466.16, 264.08, 433.64, 263.77, 432.09, 257.57, 428.68, 255.09, 427.13, 255.4, 423.73, 283.59, 397.71, 295.67, 387.17, 304.04, 379.43, 306.51, 378.5, 348.95, 394.92, 348.95, 401.11, 352.05, 405.14, 353.6, 406.07, 348.64, 411.64, 345.23, 418.77, 343.99, 427.44, 343.99, 429.61]], "area": 5056.7015, "iscrowd": 0, "image_id": 382979, "bbox": [255.09, 378.5, 98.51, 87.66], "category_id": 51, "id": 1541319}, {"segmentation": [[245.21, 317.69, 252.16, 322.44, 256.55, 340.0, 252.53, 338.17, 246.68, 337.08, 241.19, 340.74, 238.99, 338.54, 238.99, 337.81, 225.46, 326.83, 199.48, 316.59, 194.73, 314.4, 192.17, 309.64, 190.34, 307.81, 188.14, 300.86, 206.07, 285.13, 203.87, 294.64, 205.34, 301.96, 208.63, 305.98, 210.46, 307.81, 210.82, 309.27, 238.26, 311.1, 243.02, 310.74, 244.48, 308.18, 251.43, 305.25, 261.67, 298.3, 270.82, 291.72, 271.92, 289.52, 265.33, 282.57, 262.77, 280.74, 262.77, 279.28, 263.14, 277.81, 259.48, 273.06, 259.11, 272.69, 278.14, 274.52, 283.62, 278.55, 284.36, 282.2, 284.72, 287.69, 284.72, 288.06], [244.85, 270.5, 238.26, 274.89, 235.33, 275.98, 233.14, 280.01, 232.41, 282.94, 223.99, 278.18, 219.24, 276.35, 227.29, 271.96, 230.94, 269.77]], "area": 1933.6897000000004, "iscrowd": 0, "image_id": 382979, "bbox": [188.14, 269.77, 96.58, 70.97], "category_id": 51, "id": 1541368}, {"segmentation": [[245.93, 316.2, 256.72, 333.46, 257.8, 338.85, 309.57, 357.19, 332.22, 330.22, 349.48, 319.44, 350.56, 296.79, 298.79, 279.53, 286.92, 288.16]], "area": 4935.565200000001, "iscrowd": 0, "image_id": 382979, "bbox": [245.93, 279.53, 104.63, 77.66], "category_id": 51, "id": 1541392}, {"segmentation": [[372.98, 168.24, 383.43, 165.77, 391.97, 168.81, 397.86, 164.82, 394.82, 162.35, 392.73, 161.97, 395.39, 158.37, 396.34, 153.43, 392.73, 154.19, 391.6, 149.06, 387.23, 150.2, 382.48, 155.9, 382.1, 148.11, 380.01, 147.92, 380.01, 147.92, 378.11, 148.3, 376.78, 153.62, 373.93, 159.32, 373.74, 159.7, 374.5, 163.3]], "area": 332.1068000000003, "iscrowd": 0, "image_id": 373765, "bbox": [372.98, 147.92, 24.88, 20.89], "category_id": 52, "id": 1542056}, {"segmentation": [[248.54, 340.07, 261.73, 330.32, 270.91, 330.9, 288.69, 330.32, 311.05, 336.63, 321.37, 344.66, 330.55, 351.54, 340.87, 359.57, 340.87, 369.32, 338.58, 371.61, 330.55, 371.04, 333.99, 382.51, 327.68, 383.66, 300.16, 374.48, 294.99, 375.63, 281.8, 381.36, 273.2, 389.39, 258.86, 393.98, 237.07, 397.42, 228.47, 403.73, 224.46, 368.75, 235.93, 354.98, 243.95, 350.39]], "area": 5126.671450000001, "iscrowd": 0, "image_id": 41688, "bbox": [224.46, 330.32, 116.41, 73.41], "category_id": 52, "id": 1542933}, {"segmentation": [[371.68, 85.48, 354.01, 127.25, 345.44, 132.07, 345.44, 154.03, 345.44, 161.0, 399.53, 161.0, 400.07, 134.75, 400.6, 99.94, 389.36, 94.05, 374.9, 87.62]], "area": 3177.4907000000003, "iscrowd": 0, "image_id": 16680, "bbox": [345.44, 85.48, 55.16, 75.52], "category_id": 52, "id": 1543069}, {"segmentation": [[439.85, 42.88, 447.69, 60.22, 457.76, 59.1, 463.63, 53.23, 461.12, 39.8, 458.32, 33.37, 457.48, 32.53, 450.21, 32.81, 444.89, 35.04, 441.81, 37.28, 439.02, 39.52]], "area": 485.4433999999998, "iscrowd": 0, "image_id": 16680, "bbox": [439.02, 32.53, 24.61, 27.69], "category_id": 52, "id": 1543321}, {"segmentation": [[420.82, 228.06, 432.52, 226.84, 443.01, 221.48, 441.79, 214.41, 442.28, 211.0, 443.49, 207.83, 443.49, 202.95, 444.23, 196.13, 442.28, 191.25, 436.91, 188.08, 436.91, 184.91, 429.36, 186.38, 422.29, 185.64, 416.19, 186.38, 412.78, 184.67, 412.78, 184.67, 407.9, 184.67, 401.08, 185.4, 396.93, 188.57, 391.57, 193.44, 394.74, 203.68, 395.47, 209.53, 399.13, 213.92, 404.73, 219.53, 410.1, 216.12, 418.14, 217.58, 419.36, 224.89]], "area": 1691.4614000000001, "iscrowd": 0, "image_id": 373765, "bbox": [391.57, 184.67, 52.66, 43.39], "category_id": 52, "id": 1544460}, {"segmentation": [[219.75, 488.45, 223.12, 510.91, 234.35, 522.14, 239.97, 521.01, 245.58, 514.28, 253.44, 504.17, 255.69, 492.94, 256.81, 504.17, 262.43, 508.66, 263.55, 513.15, 265.8, 516.52, 272.53, 515.4, 274.78, 508.66, 284.89, 480.59, 284.89, 457.0, 290.5, 485.08, 293.87, 494.06, 301.73, 500.8, 305.1, 503.05, 308.47, 497.43, 314.08, 474.97, 311.84, 458.13, 311.84, 448.02, 323.07, 469.36, 337.67, 480.59, 342.16, 480.59, 344.41, 468.23, 343.28, 455.88, 353.39, 448.02, 348.9, 427.81, 339.91, 409.84, 332.05, 396.36, 326.44, 388.5, 308.47, 379.52, 305.1, 375.03, 290.5, 375.03, 279.27, 386.26, 272.53, 390.75, 256.81, 390.75, 241.09, 394.12, 224.25, 407.59, 218.63, 418.82, 217.51, 426.68, 204.03, 451.39, 209.65, 471.6, 218.63, 486.2, 220.88, 487.32]], "area": 13844.255299999995, "iscrowd": 0, "image_id": 41688, "bbox": [204.03, 375.03, 149.36, 147.11], "category_id": 52, "id": 1544857}, {"segmentation": [[405.53, 67.21, 404.47, 92.51, 400.78, 98.84, 383.91, 97.26, 374.95, 84.08, 368.1, 75.64]], "area": 777.8023000000001, "iscrowd": 0, "image_id": 16680, "bbox": [368.1, 67.21, 37.43, 31.63], "category_id": 52, "id": 1545085}, {"segmentation": [[416.63, 184.92, 414.93, 176.41, 416.15, 169.11, 417.85, 169.84, 420.52, 173.24, 420.04, 186.13]], "area": 69.13304999999998, "iscrowd": 0, "image_id": 373765, "bbox": [414.93, 169.11, 5.59, 17.02], "category_id": 52, "id": 1545789}, {"segmentation": [[450.54, 179.74, 441.3, 194.09, 441.79, 219.63, 451.52, 220.85, 457.11, 203.82, 459.79, 182.66]], "area": 545.9378499999996, "iscrowd": 0, "image_id": 373765, "bbox": [441.3, 179.74, 18.49, 41.11], "category_id": 52, "id": 1546536}, {"segmentation": [[459.69, 225.33, 458.4, 222.1, 454.97, 218.03, 453.03, 213.95, 454.32, 207.08, 453.68, 200.42, 456.68, 192.05, 461.41, 191.62, 468.92, 190.33, 471.07, 193.76, 475.36, 190.76, 484.17, 191.4, 487.82, 194.84, 497.05, 201.28, 502.63, 206.0, 503.28, 212.01, 500.48, 217.17, 498.34, 221.68, 501.13, 223.61, 496.83, 228.33, 493.61, 229.19, 489.32, 228.76, 486.53, 230.91, 482.88, 231.34, 477.94, 231.77, 471.71, 230.26, 465.27, 228.98, 460.12, 227.69]], "area": 1624.5628499999998, "iscrowd": 0, "image_id": 373765, "bbox": [453.03, 190.33, 50.25, 41.44], "category_id": 52, "id": 1546992}, {"segmentation": [[476.04, 188.02, 475.71, 185.74, 477.01, 181.51, 477.66, 178.26, 478.32, 174.68, 478.97, 174.35, 482.22, 177.28, 482.87, 181.84, 480.27, 189.65, 477.34, 189.32]], "area": 71.41400000000013, "iscrowd": 0, "image_id": 373765, "bbox": [475.71, 174.35, 7.16, 15.3], "category_id": 52, "id": 1547327}, {"segmentation": [[469.72, 191.58, 459.25, 192.14, 458.97, 183.32, 454.56, 180.29, 455.67, 178.36, 461.73, 177.26, 462.56, 175.6, 465.31, 172.85, 466.96, 175.33, 468.07, 170.64, 469.44, 170.37, 470.27, 170.37, 467.52, 159.34, 469.44, 158.24, 477.44, 163.2, 479.36, 160.72, 481.02, 160.17, 484.6, 169.26, 485.15, 170.92, 490.11, 171.47, 492.87, 174.22, 501.96, 181.39, 504.16, 184.97, 504.99, 185.8, 506.92, 191.86, 507.47, 196.27, 505.54, 200.4, 505.27, 203.16, 504.72, 206.19]], "area": 1249.2295500000002, "iscrowd": 0, "image_id": 373765, "bbox": [454.56, 158.24, 52.91, 47.95], "category_id": 52, "id": 1547639}, {"segmentation": [[320.25, 184.95, 323.17, 182.34, 328.38, 178.36, 329.14, 177.9, 332.51, 178.36, 332.21, 181.12, 330.98, 183.72, 329.6, 186.02, 325.47, 188.47, 321.63, 189.24, 320.56, 189.08, 320.41, 186.94, 318.26, 186.79]], "area": 82.88159999999999, "iscrowd": 0, "image_id": 373765, "bbox": [318.26, 177.9, 14.25, 11.34], "category_id": 52, "id": 1547783}, {"segmentation": [[414.54, 183.59, 405.26, 184.53, 399.0, 185.86, 396.35, 181.69, 395.78, 179.42, 397.3, 174.49, 398.62, 172.41, 399.95, 169.56, 400.52, 168.05, 400.71, 167.86, 403.36, 166.72, 405.44, 166.34, 409.05, 165.77, 412.46, 165.58, 414.16, 165.58, 415.3, 165.58, 420.42, 166.91, 416.06, 169.56, 413.78, 176.01, 415.87, 183.21, 415.68, 183.59]], "area": 324.5269499999999, "iscrowd": 0, "image_id": 373765, "bbox": [395.78, 165.58, 24.64, 20.28], "category_id": 52, "id": 1548096}, {"segmentation": [[366.94, 92.71, 364.82, 93.12, 363.43, 95.65, 364.33, 97.61, 367.35, 99.56, 369.96, 99.24, 371.51, 97.12, 371.51, 94.18, 370.45, 92.88, 368.41, 92.22]], "area": 44.264399999999945, "iscrowd": 0, "image_id": 231374, "bbox": [363.43, 92.22, 8.08, 7.34], "category_id": 53, "id": 1548334}, {"segmentation": [[238.69, 502.78, 247.7, 502.78, 248.23, 510.2, 248.23, 516.03, 244.52, 521.86, 240.81, 526.1, 233.39, 528.75, 223.84, 528.75, 218.54, 528.75, 215.89, 528.75, 207.94, 530.34, 198.93, 528.22, 198.4, 522.39, 195.75, 517.09, 195.75, 511.26, 194.69, 504.37, 196.81, 501.19, 200.52, 499.07, 207.94, 497.48, 214.3, 496.42, 218.01, 495.36, 223.31, 496.42, 225.43, 498.01, 232.32, 500.13, 235.51, 501.19]], "area": 1476.83175, "iscrowd": 0, "image_id": 558153, "bbox": [194.69, 495.36, 53.54, 34.98], "category_id": 53, "id": 1548650}, {"segmentation": [[132.74, 171.0, 142.88, 168.69, 152.7, 174.22, 160.23, 184.97, 159.92, 198.03, 150.55, 203.86, 143.03, 201.25, 130.28, 203.71, 126.9, 205.09, 119.99, 198.49, 116.77, 192.65, 118.0, 184.97, 119.53, 181.29, 126.29, 176.07, 132.74, 170.84]], "area": 1164.67605, "iscrowd": 0, "image_id": 360695, "bbox": [116.77, 168.69, 43.46, 36.4], "category_id": 53, "id": 1548919}, {"segmentation": [[492.79, 175.04, 502.68, 183.04, 511.62, 192.92, 519.62, 188.22, 528.09, 181.63, 529.5, 177.4, 524.32, 165.63, 517.26, 163.28, 507.85, 162.34, 499.38, 164.69, 496.56, 169.4]], "area": 708.38725, "iscrowd": 0, "image_id": 382979, "bbox": [492.79, 162.34, 36.71, 30.58], "category_id": 53, "id": 1548977}, {"segmentation": [[305.56, 302.51, 305.03, 323.76, 317.78, 329.61, 332.65, 326.95, 341.69, 317.39, 339.56, 306.23, 328.4, 297.2, 315.12, 295.61]], "area": 966.6458999999999, "iscrowd": 0, "image_id": 558153, "bbox": [305.03, 295.61, 36.66, 34.0], "category_id": 53, "id": 1549030}, {"segmentation": [[321.65, 291.98, 310.17, 294.85, 300.59, 292.93, 291.02, 288.15, 285.28, 283.36, 282.4, 269.96, 284.32, 260.39, 289.11, 254.64, 300.59, 254.64, 314.95, 253.69, 324.53, 260.39, 329.31, 273.79]], "area": 1513.4089500000007, "iscrowd": 0, "image_id": 360695, "bbox": [282.4, 253.69, 46.91, 41.16], "category_id": 53, "id": 1549074}, {"segmentation": [[389.55, 368.84, 356.55, 329.91, 347.31, 304.17, 339.39, 280.41, 345.99, 246.09, 355.89, 227.61, 378.33, 205.18, 417.27, 191.98, 440.36, 193.96, 459.5, 198.58, 499.1, 226.29, 543.32, 303.51, 538.04, 333.87, 391.53, 367.52]], "area": 25556.30235, "iscrowd": 0, "image_id": 434201, "bbox": [339.39, 191.98, 203.93, 176.86], "category_id": 53, "id": 1549564}, {"segmentation": [[212.59, 70.68, 215.54, 74.18, 216.09, 77.5, 217.2, 82.66, 216.28, 90.04, 215.54, 91.7, 219.6, 96.12, 214.8, 97.6, 200.79, 95.75, 191.02, 90.22, 188.62, 85.98, 188.62, 81.74, 191.21, 78.98, 196.37, 79.35, 198.21, 76.4, 203.56, 75.84, 204.48, 71.79, 207.25, 70.68, 209.27, 69.57]], "area": 553.5360499999997, "iscrowd": 0, "image_id": 543882, "bbox": [188.62, 69.57, 30.98, 28.03], "category_id": 53, "id": 1549621}, {"segmentation": [[132.75, 308.87, 128.62, 313.41, 124.49, 317.13, 124.49, 317.13, 122.43, 322.08, 122.84, 325.8, 124.49, 331.17, 126.14, 333.65, 126.56, 333.65, 132.75, 337.37, 136.47, 337.37, 138.12, 336.13, 147.21, 334.06, 149.27, 326.63, 148.45, 319.19, 145.97, 311.76, 141.84, 308.04]], "area": 601.0434499999998, "iscrowd": 0, "image_id": 558153, "bbox": [122.43, 308.04, 26.84, 29.33], "category_id": 53, "id": 1549780}, {"segmentation": [[296.5, 365.59, 261.0, 367.51, 206.3, 355.99, 160.24, 342.56, 143.93, 338.72, 130.5, 331.04, 126.66, 328.17, 124.74, 323.37, 144.89, 290.74, 164.08, 261.0, 208.22, 257.16, 243.73, 263.88, 261.0, 269.63, 279.23, 287.87, 292.66, 313.77, 296.5, 341.6, 299.38, 366.55]], "area": 13712.086199999998, "iscrowd": 0, "image_id": 434201, "bbox": [124.74, 257.16, 174.64, 110.35], "category_id": 53, "id": 1549825}, {"segmentation": [[120.51, 91.07, 131.6, 88.3, 139.91, 94.64, 145.05, 101.36, 152.97, 100.18, 161.67, 100.97, 164.05, 102.55, 168.4, 98.2, 177.51, 99.39, 184.63, 102.95, 185.03, 105.32, 185.42, 108.49, 186.21, 110.47, 195.71, 115.22, 198.88, 117.99, 203.63, 116.01, 209.17, 120.36, 203.23, 124.32, 197.69, 122.34, 186.21, 122.74, 180.67, 123.92, 175.13, 130.65, 170.78, 135.01, 162.86, 140.55, 150.59, 140.55, 151.38, 142.92, 143.47, 155.98, 143.07, 158.36, 124.87, 166.67, 117.74, 170.63, 114.18, 166.67, 106.27, 173.0, 98.35, 168.65, 98.35, 164.29, 101.12, 153.21, 98.35, 138.17, 89.64, 125.9, 87.27, 119.17, 81.33, 117.99, 74.6, 125.51, 75.39, 127.49, 70.65, 130.65, 57.58, 135.01, 53.23, 140.55, 55.21, 146.88, 49.27, 145.3, 52.44, 131.05, 59.17, 125.9, 62.33, 123.92, 64.31, 116.4, 70.25, 110.47, 80.94, 112.05, 88.06, 113.24, 90.43, 116.01, 93.6, 116.01, 96.77, 114.03, 96.77, 112.05, 96.77, 104.93, 99.14, 97.8, 103.89, 92.26, 109.04, 89.49, 114.18, 89.49, 120.91, 89.89]], "area": 5702.951399999998, "iscrowd": 0, "image_id": 382979, "bbox": [49.27, 88.3, 159.9, 84.7], "category_id": 53, "id": 1549878}, {"segmentation": [[174.64, 222.86, 149.69, 199.83, 127.62, 182.55, 113.23, 175.84, 94.04, 176.8, 55.65, 194.07, 17.27, 223.82, 0.0, 253.56, 0.0, 283.31, 15.35, 300.58, 38.38, 308.26, 88.28, 310.17, 109.39, 315.93, 118.02, 323.61, 120.9, 328.41, 123.78, 331.28, 132.42, 317.85, 139.13, 303.46, 146.81, 292.9, 161.2, 280.43, 166.0, 272.75, 175.6, 258.36, 178.48, 257.4, 180.4, 252.6, 182.31, 240.13, 181.36, 233.41, 178.48, 230.53]], "area": 18583.952949999995, "iscrowd": 0, "image_id": 434201, "bbox": [0.0, 175.84, 182.31, 155.44], "category_id": 53, "id": 1550104}, {"segmentation": [[398.21, 150.65, 391.5, 141.05, 404.93, 130.5, 410.69, 120.9, 427.0, 114.19, 449.07, 104.59, 466.34, 102.67, 480.73, 108.43, 519.12, 154.49, 517.2, 175.6, 513.36, 189.03, 507.6, 189.99, 488.41, 158.33, 481.69, 150.65, 430.84, 145.85]], "area": 4609.229800000001, "iscrowd": 0, "image_id": 434201, "bbox": [391.5, 102.67, 127.62, 87.32], "category_id": 53, "id": 1550372}, {"segmentation": [[190.83, 113.09, 205.31, 115.98, 211.68, 111.35, 223.85, 115.98, 234.86, 114.25, 240.65, 107.29, 243.55, 103.24, 243.55, 95.13, 255.13, 91.65, 265.56, 96.87, 268.46, 98.02, 279.46, 93.39, 289.31, 89.91, 290.47, 86.44, 290.47, 78.91, 297.42, 74.85, 307.27, 73.11, 304.38, 66.7, 285.84, 70.17, 281.78, 73.65, 277.73, 73.65, 268.46, 69.02, 261.51, 67.86, 253.97, 63.8, 244.13, 63.22, 238.33, 55.69, 222.11, 62.06, 220.37, 71.91, 218.63, 74.81, 210.52, 74.81, 201.25, 80.02, 200.1, 81.18, 198.36, 81.76, 187.93, 83.5, 187.93, 83.5, 184.45, 84.66]], "area": 3702.1768, "iscrowd": 0, "image_id": 382979, "bbox": [184.45, 55.69, 122.82, 60.29], "category_id": 53, "id": 1550835}, {"segmentation": [[521.25, 263.99, 556.83, 272.65, 591.45, 298.61, 601.07, 304.38, 623.19, 296.69, 636.65, 275.53, 628.96, 230.33, 616.46, 201.48, 595.3, 177.44, 577.03, 171.67, 532.79, 178.4, 515.48, 189.94, 502.98, 175.51, 480.86, 151.47, 460.66, 149.55, 431.81, 147.62, 431.81, 147.62, 403.92, 150.51, 401.03, 150.51, 395.26, 146.66, 383.72, 138.01, 368.34, 133.2, 354.87, 131.27, 353.91, 131.27, 311.59, 135.12, 285.63, 149.55, 282.74, 152.43, 275.05, 136.08, 262.55, 114.92, 235.62, 93.77, 185.61, 70.69, 152.91, 95.69, 131.75, 127.43, 121.18, 159.16, 121.18, 179.36, 155.8, 216.87, 163.49, 223.6, 186.57, 241.87, 210.61, 235.14, 229.85, 215.9, 254.85, 202.44, 285.63, 202.44, 318.33, 225.52, 347.18, 242.83, 363.53, 240.91, 393.34, 203.4, 452.0, 198.59, 502.98, 230.33, 504.9, 233.22, 511.63, 251.49]], "area": 46850.484699999986, "iscrowd": 0, "image_id": 434201, "bbox": [121.18, 70.69, 515.47, 233.69], "category_id": 53, "id": 1550858}, {"segmentation": [[242.98, 211.35, 237.35, 221.2, 237.82, 226.36, 242.04, 234.33, 252.83, 238.55, 259.4, 239.02, 270.18, 231.05, 270.65, 221.2, 269.24, 214.63, 265.02, 210.88, 258.46, 206.66, 247.67, 206.66, 242.04, 210.88]], "area": 838.1595000000005, "iscrowd": 0, "image_id": 558153, "bbox": [237.35, 206.66, 33.3, 32.36], "category_id": 53, "id": 1551192}, {"segmentation": [[169.06, 157.3, 177.53, 148.5, 186.49, 146.18, 193.96, 146.18, 200.93, 150.49, 205.8, 162.29, 205.64, 169.1, 202.98, 173.91, 200.49, 173.91, 194.19, 171.92, 186.55, 173.41, 181.9, 176.24, 180.41, 176.9, 170.28, 168.27, 170.28, 161.79]], "area": 840.52375, "iscrowd": 0, "image_id": 382979, "bbox": [169.06, 146.18, 36.74, 30.72], "category_id": 53, "id": 1551217}, {"segmentation": [[335.8, 251.35, 339.88, 247.27, 342.14, 243.65, 343.05, 237.31, 343.05, 231.42, 343.05, 223.27, 343.05, 223.27, 338.07, 216.93, 333.99, 212.85, 330.37, 211.04, 331.73, 205.16, 331.73, 205.16, 331.73, 203.8, 323.58, 196.1, 318.14, 194.29, 318.14, 194.29, 313.61, 193.84, 299.57, 195.19, 293.24, 201.53, 293.24, 201.53, 293.24, 205.16, 293.69, 214.21, 297.31, 217.84, 297.76, 229.61, 299.57, 230.51, 303.65, 231.87, 308.18, 234.59, 313.61, 239.12, 318.14, 243.65, 321.31, 251.35, 321.31, 251.8, 321.76, 255.87, 321.76, 255.87, 324.03, 255.87, 324.48, 255.87, 327.65, 255.42, 327.65, 255.42, 330.82, 253.61, 330.82, 253.61]], "area": 2018.6721000000005, "iscrowd": 0, "image_id": 360695, "bbox": [293.24, 193.84, 49.81, 62.03], "category_id": 53, "id": 1551273}, {"segmentation": [[145.4, 154.12, 144.76, 157.32, 145.82, 163.07, 152.43, 170.1, 156.69, 173.51, 162.23, 173.29, 172.24, 170.31, 170.75, 162.64, 169.05, 158.17, 176.93, 148.79, 174.16, 144.53, 163.08, 139.63, 153.92, 140.91, 146.25, 151.35]], "area": 756.1925500000002, "iscrowd": 0, "image_id": 382979, "bbox": [144.76, 139.63, 32.17, 33.88], "category_id": 53, "id": 1551324}, {"segmentation": [[178.68, 149.81, 174.65, 143.93, 171.87, 139.9, 173.73, 132.78, 175.27, 128.75, 182.71, 126.27, 190.45, 122.55, 195.72, 123.48, 200.06, 125.96, 202.53, 129.68, 205.32, 135.56, 206.87, 141.76, 206.56, 145.17, 202.53, 148.26, 198.82, 147.96, 194.17, 146.41, 188.9, 144.86]], "area": 672.5035500000002, "iscrowd": 0, "image_id": 382979, "bbox": [171.87, 122.55, 35.0, 27.26], "category_id": 53, "id": 1551485}, {"segmentation": [[208.18, 197.21, 259.96, 158.38, 276.13, 146.52, 281.53, 128.18, 279.37, 121.71, 273.98, 115.24, 265.35, 95.82, 254.56, 92.58, 248.09, 94.74, 236.22, 105.53, 224.36, 114.16, 209.26, 114.16, 200.63, 129.26, 210.34, 138.97, 210.34, 157.3, 206.02, 169.17, 195.24, 176.72, 183.37, 176.72, 172.58, 172.4, 162.88, 171.33, 148.85, 163.78, 136.99, 162.7, 129.44, 178.88, 147.78, 183.19, 159.64, 188.58, 170.43, 199.37, 185.53, 202.61, 206.02, 198.29]], "area": 6401.17585, "iscrowd": 0, "image_id": 382979, "bbox": [129.44, 92.58, 152.09, 110.03], "category_id": 53, "id": 1551584}, {"segmentation": [[230.27, 301.75, 209.16, 290.24, 211.08, 271.05, 220.68, 259.53, 243.7, 261.45, 253.3, 276.8, 253.3, 292.16, 243.7, 300.79, 230.27, 298.87]], "area": 1455.629150000001, "iscrowd": 0, "image_id": 360695, "bbox": [209.16, 259.53, 44.14, 42.22], "category_id": 53, "id": 1551717}, {"segmentation": [[165.61, 221.93, 159.87, 215.23, 159.87, 198.96, 163.7, 192.26, 165.61, 190.34, 175.19, 188.43, 183.8, 188.43, 188.59, 191.3, 194.33, 199.92, 197.2, 208.53, 197.2, 216.19, 197.2, 222.89, 194.33, 225.76, 188.59, 225.76, 182.84, 223.85, 171.36, 221.93]], "area": 1152.1873999999996, "iscrowd": 0, "image_id": 360695, "bbox": [159.87, 188.43, 37.33, 37.33], "category_id": 53, "id": 1551958}, {"segmentation": [[278.86, 312.53, 276.33, 317.6, 276.79, 328.22, 281.63, 336.06, 290.17, 339.29, 297.32, 337.91, 305.4, 331.91, 307.94, 326.37, 307.94, 321.53, 304.47, 310.68, 301.71, 305.61, 295.48, 303.3, 291.09, 304.91, 284.4, 317.6, 281.17, 316.68, 281.17, 309.99]], "area": 800.9957500000006, "iscrowd": 0, "image_id": 558153, "bbox": [276.33, 303.3, 31.61, 35.99], "category_id": 53, "id": 1551966}, {"segmentation": [[335.57, 272.44, 340.22, 263.14, 342.55, 259.13, 345.72, 257.01, 353.96, 258.28, 358.61, 260.39, 361.99, 263.56, 366.22, 268.64, 368.33, 272.65, 368.54, 276.88, 366.01, 283.64, 364.11, 289.14, 362.84, 293.37, 359.24, 295.27, 352.48, 296.33, 345.08, 295.9, 338.95, 293.58, 337.9, 289.35, 338.53, 285.76, 335.99, 282.38, 335.36, 278.15, 335.36, 275.19]], "area": 1005.2494499999998, "iscrowd": 0, "image_id": 558153, "bbox": [335.36, 257.01, 33.18, 39.32], "category_id": 53, "id": 1552001}, {"segmentation": [[264.74, 210.21, 268.32, 220.95, 269.93, 225.24, 274.05, 225.24, 281.03, 223.27, 283.71, 219.69, 284.79, 214.68, 283.89, 211.1, 278.7, 207.88, 274.77, 206.09, 273.16, 203.41, 269.58, 206.63, 266.18, 209.67]], "area": 286.4264, "iscrowd": 0, "image_id": 558153, "bbox": [264.74, 203.41, 20.05, 21.83], "category_id": 53, "id": 1552037}, {"segmentation": [[232.62, 219.22, 221.14, 212.52, 207.73, 213.48, 205.82, 198.16, 206.78, 187.63, 213.48, 181.89, 226.88, 179.02, 242.2, 187.63, 243.16, 199.12, 241.24, 217.31]], "area": 1173.5037, "iscrowd": 0, "image_id": 360695, "bbox": [205.82, 179.02, 37.34, 40.2], "category_id": 53, "id": 1552086}, {"segmentation": [[247.38, 175.38, 239.98, 182.78, 239.34, 195.01, 242.88, 205.31, 250.92, 207.88, 264.12, 206.59, 268.95, 196.62, 270.23, 189.22, 267.34, 182.78, 261.87, 176.02, 252.86, 172.8]], "area": 835.3918499999997, "iscrowd": 0, "image_id": 558153, "bbox": [239.34, 172.8, 30.89, 35.08], "category_id": 53, "id": 1552139}, {"segmentation": [[129.24, 305.38, 103.39, 301.55, 96.69, 290.06, 92.86, 283.36, 98.6, 268.04, 103.39, 261.34, 124.45, 258.47, 132.11, 266.13, 133.07, 278.58, 133.07, 293.89]], "area": 1477.5039000000004, "iscrowd": 0, "image_id": 360695, "bbox": [92.86, 258.47, 40.21, 46.91], "category_id": 53, "id": 1552156}, {"segmentation": [[295.81, 183.8, 296.76, 193.38, 314.95, 191.46, 331.23, 200.08, 338.89, 214.44, 341.76, 229.75, 338.89, 252.73, 331.23, 260.39, 342.71, 270.92, 353.24, 284.32, 359.95, 296.76, 364.73, 313.04, 18.19, 313.04, 4.79, 277.62, 3.83, 204.86, 12.44, 193.38, 19.15, 173.27, 32.55, 157.96, 66.05, 166.57, 92.86, 163.7, 111.05, 157.96, 124.45, 155.08, 145.51, 157.0, 154.13, 144.55, 190.5, 143.6, 197.2, 154.13, 224.01, 150.3, 237.41, 167.53, 241.24, 171.36, 263.26, 170.4, 282.4, 182.84]], "area": 49522.0601, "iscrowd": 0, "image_id": 360695, "bbox": [3.83, 143.6, 360.9, 169.44], "category_id": 53, "id": 1552246}, {"segmentation": [[169.09, 46.0, 164.9, 52.29, 161.75, 57.19, 164.2, 65.93, 163.15, 70.48, 160.35, 78.17, 159.65, 84.82, 162.1, 90.76, 168.04, 90.76, 172.24, 87.26, 173.29, 77.12, 169.79, 69.43, 169.44, 63.48, 175.74, 58.59, 180.28, 55.79, 181.68, 49.14]], "area": 489.0291500000001, "iscrowd": 0, "image_id": 558153, "bbox": [159.65, 46.0, 22.03, 44.76], "category_id": 53, "id": 1552252}, {"segmentation": [[206.92, 59.87, 209.46, 64.56, 211.02, 68.27, 213.96, 73.94, 215.91, 76.09, 218.06, 73.35, 215.91, 67.3, 213.76, 64.17, 209.66, 60.65]], "area": 64.08704999999986, "iscrowd": 0, "image_id": 558153, "bbox": [206.92, 59.87, 11.14, 16.22], "category_id": 53, "id": 1552318}, {"segmentation": [[276.4, 352.55, 294.78, 340.18, 304.15, 329.68, 318.4, 319.93, 331.52, 312.44, 354.02, 315.44, 357.39, 323.68, 360.02, 336.06, 370.51, 345.43, 371.64, 353.68, 363.76, 362.3, 347.64, 369.05, 335.27, 372.8, 331.15, 376.92, 319.52, 368.68, 301.9, 367.18, 284.28, 358.55]], "area": 3603.5748000000012, "iscrowd": 0, "image_id": 411517, "bbox": [276.4, 312.44, 95.24, 64.48], "category_id": 54, "id": 1552875}, {"segmentation": [[115.44, 427.3, 123.26, 453.38, 142.38, 455.99, 194.54, 455.99, 232.78, 458.59, 251.04, 472.5, 284.94, 472.5, 302.32, 464.68, 323.18, 460.33, 340.57, 466.42, 392.72, 440.34, 401.41, 391.66, 374.46, 376.89, 359.69, 368.2, 326.66, 357.76, 306.67, 359.5, 294.5, 360.37, 282.33, 358.63, 275.37, 354.29, 266.68, 350.81, 257.99, 346.47, 246.69, 345.6, 230.17, 349.94, 223.22, 353.42, 218.0, 358.63, 214.53, 365.59, 211.05, 369.93, 208.44, 376.02, 204.97, 380.36, 190.19, 391.66, 177.15, 398.62, 162.37, 403.83, 157.16, 408.18, 143.25, 413.4, 133.69, 419.48, 129.34, 421.22, 120.65, 423.83]], "area": 23592.8702, "iscrowd": 0, "image_id": 111705, "bbox": [115.44, 345.6, 285.97, 126.9], "category_id": 54, "id": 1555355}, {"segmentation": [[304.66, 114.65, 283.59, 123.52, 278.6, 120.75, 270.84, 104.12, 272.5, 92.47, 286.92, 86.93, 288.03, 86.93, 290.8, 75.84, 297.46, 71.4, 305.77, 71.4, 308.55, 63.08, 306.33, 51.44, 312.43, 45.34, 320.74, 39.24, 325.73, 37.58, 331.28, 31.48, 345.14, 28.5, 356.79, 32.38, 360.11, 52.34, 368.43, 51.79, 378.41, 54.0, 383.4, 61.21, 386.17, 65.65, 392.83, 61.77, 398.93, 58.99, 408.91, 59.55, 414.45, 62.32, 417.23, 66.2, 419.44, 77.29, 421.66, 83.39, 426.65, 83.39, 430.53, 81.17, 443.29, 77.85, 449.39, 78.4, 453.82, 82.28, 453.27, 95.04, 448.83, 95.04, 437.74, 100.03, 436.08, 100.58, 433.86, 100.58, 426.1, 101.14, 422.22, 101.14, 410.02, 99.47, 410.02, 92.82, 389.5, 97.81, 391.72, 117.77, 390.06, 123.32, 390.61, 124.53, 381.18, 128.41, 366.21, 132.29, 356.23, 130.07, 365.1, 126.75, 366.21, 121.76, 362.89, 99.58, 355.12, 78.51, 329.62, 81.28, 325.18, 83.5, 330.73, 114.55, 334.05, 130.07, 325.73, 130.63, 316.86, 128.41, 316.31, 118.43]], "area": 8415.775000000001, "iscrowd": 0, "image_id": 382979, "bbox": [270.84, 28.5, 182.98, 103.79], "category_id": 55, "id": 1556025}, {"segmentation": [[524.51, 265.96, 549.54, 270.02, 573.32, 282.23, 590.22, 297.24, 596.48, 307.57, 572.7, 311.95, 565.19, 315.7, 535.78, 333.23, 542.03, 314.45, 536.4, 293.8, 523.58, 267.21]], "area": 2238.189000000002, "iscrowd": 0, "image_id": 434201, "bbox": [523.58, 265.96, 72.9, 67.27], "category_id": 55, "id": 1556126}, {"segmentation": [[287.7, 258.02, 268.1, 256.1, 249.36, 249.92, 246.17, 244.17, 247.87, 231.39, 259.58, 224.58, 264.91, 224.79, 269.38, 226.71, 273.0, 227.77, 284.5, 224.37, 291.74, 222.88, 297.07, 224.58, 305.8, 226.71, 316.88, 230.12, 318.79, 240.55, 319.01, 241.62, 292.81, 258.23]], "area": 1917.1194999999998, "iscrowd": 0, "image_id": 382979, "bbox": [246.17, 222.88, 72.84, 35.35], "category_id": 55, "id": 1557799}, {"segmentation": [[205.01, 299.37, 204.08, 291.63, 208.73, 282.34, 216.47, 279.24, 225.45, 278.93, 232.58, 282.34, 240.63, 273.04, 249.0, 269.95, 258.91, 270.56, 263.86, 276.14, 265.72, 282.96, 270.99, 287.29, 271.61, 290.39, 245.59, 309.59, 236.91, 310.52, 210.89, 309.59, 209.04, 302.16]], "area": 1861.7295499999996, "iscrowd": 0, "image_id": 382979, "bbox": [204.08, 269.95, 67.53, 40.57], "category_id": 55, "id": 1557867}, {"segmentation": [[226.36, 140.1, 223.06, 133.5, 226.72, 125.43, 234.79, 127.27, 239.56, 130.2, 235.89, 133.5, 234.06, 137.17]], "area": 142.9296999999998, "iscrowd": 0, "image_id": 428208, "bbox": [223.06, 125.43, 16.5, 14.67], "category_id": 56, "id": 1559841}, {"segmentation": [[168.44, 442.3, 159.66, 437.91, 155.27, 434.49, 150.39, 430.1, 143.07, 423.27, 141.61, 433.52, 141.12, 444.25, 131.86, 444.74, 118.69, 443.27, 116.25, 451.08, 122.1, 457.91, 131.37, 457.42, 146.49, 450.1, 159.66, 455.95, 166.0, 461.81, 171.36, 457.42, 169.9, 449.61]], "area": 880.9895500000005, "iscrowd": 0, "image_id": 353412, "bbox": [116.25, 423.27, 55.11, 38.54], "category_id": 56, "id": 1560174}, {"segmentation": [[166.29, 470.44, 240.45, 396.29, 270.79, 419.88, 265.17, 444.6, 262.92, 458.08, 219.1, 472.69]], "area": 4221.57485, "iscrowd": 0, "image_id": 8223, "bbox": [166.29, 396.29, 104.5, 76.4], "category_id": 56, "id": 1560403}, {"segmentation": [[219.4, 190.91, 232.57, 187.28, 234.38, 202.71, 246.64, 201.8, 257.08, 203.62, 260.26, 207.7, 260.71, 218.14, 255.26, 227.22, 250.27, 236.3, 238.47, 242.65, 226.21, 242.65, 213.5, 247.19, 206.24, 249.01, 198.98, 246.74, 198.98, 240.38, 200.79, 236.3, 217.59, 224.04, 221.22, 212.24, 221.22, 205.89, 219.4, 193.63]], "area": 1968.8840999999998, "iscrowd": 0, "image_id": 64454, "bbox": [198.98, 187.28, 61.73, 61.73], "category_id": 56, "id": 1560981}, {"segmentation": [[269.63, 332.66, 268.44, 326.7, 271.22, 315.56, 270.43, 308.41, 270.43, 298.07, 275.2, 292.9, 283.95, 292.9, 291.1, 298.47, 296.67, 294.49, 295.48, 285.75, 295.08, 280.98, 297.86, 273.82, 309.39, 273.82, 313.37, 273.82, 325.29, 270.64, 332.45, 270.64, 337.62, 270.64, 343.58, 271.83, 348.35, 273.82, 351.93, 277.4, 355.11, 277.4, 366.24, 280.98, 369.02, 286.54, 369.82, 288.93, 374.59, 292.51, 379.36, 301.65, 377.77, 306.82, 376.18, 308.81, 376.97, 320.34, 376.18, 331.86, 374.59, 334.25, 372.6, 338.62, 371.81, 344.19, 371.01, 346.57, 368.23, 349.75, 365.84, 354.92, 361.87, 356.91, 355.11, 357.71, 349.15, 358.5, 342.39, 357.71, 339.6, 364.86, 335.63, 372.81, 329.27, 373.61, 331.26, 364.07, 327.28, 354.52, 318.53, 346.18, 307.4, 344.59, 305.41, 344.59, 303.82, 333.85, 299.45, 325.5, 292.3, 319.94, 285.54, 319.14, 278.38, 322.32, 274.8, 326.7, 272.42, 331.07]], "area": 6822.189350000001, "iscrowd": 0, "image_id": 206427, "bbox": [268.44, 270.64, 110.92, 102.97], "category_id": 56, "id": 1561439}, {"segmentation": [[178.79, 353.85, 177.28, 342.79, 169.24, 341.03, 167.98, 333.23, 167.98, 314.63, 168.48, 292.5, 166.97, 283.96, 184.82, 271.89, 188.85, 276.92, 192.62, 280.44, 196.89, 283.7, 201.92, 283.45, 204.94, 288.23, 207.95, 290.49, 213.73, 289.24, 214.24, 287.73, 218.01, 288.98, 223.04, 288.73, 226.81, 291.75, 231.08, 294.77, 233.85, 298.79, 233.09, 299.8, 230.83, 302.06, 235.86, 305.58, 238.12, 310.35, 238.62, 312.37, 238.62, 314.13, 238.37, 315.38, 225.3, 324.18, 224.04, 326.7, 216.25, 330.72, 212.23, 334.99, 209.71, 337.76, 205.19, 341.78, 201.42, 343.79, 197.39, 344.8, 195.38, 347.06, 191.86, 348.07, 184.57, 351.33, 181.3, 354.1]], "area": 3637.4043500000002, "iscrowd": 0, "image_id": 8223, "bbox": [166.97, 271.89, 71.65, 82.21], "category_id": 56, "id": 1561697}, {"segmentation": [[410.74, 110.72, 401.19, 118.15, 398.01, 117.79, 395.18, 123.81, 393.76, 128.4, 399.07, 127.7, 394.12, 139.72, 398.36, 154.57, 398.01, 165.18, 402.96, 165.54, 410.03, 156.34, 415.34, 150.33, 430.55, 155.28, 442.57, 155.28, 447.17, 139.72, 442.57, 133.0, 441.16, 125.22, 429.13, 126.63, 426.66, 126.28, 418.52, 111.78]], "area": 1765.8519999999999, "iscrowd": 0, "image_id": 64454, "bbox": [393.76, 110.72, 53.41, 54.82], "category_id": 56, "id": 1561798}, {"segmentation": [[582.17, 323.42, 577.69, 329.19, 579.61, 332.18, 586.87, 331.32, 583.88, 340.08, 580.89, 343.07, 586.23, 344.99, 587.94, 341.14, 592.21, 339.86, 593.92, 337.94, 600.32, 333.89, 610.57, 334.31, 618.9, 339.65, 621.46, 336.66, 612.49, 330.47, 614.2, 328.33, 611.21, 327.27, 610.36, 328.12, 602.88, 325.56, 589.22, 323.42]], "area": 415.96369999999973, "iscrowd": 0, "image_id": 537924, "bbox": [577.69, 323.42, 43.77, 21.57], "category_id": 57, "id": 1563409}, {"segmentation": [[524.38, 330.99, 531.16, 327.28, 541.03, 326.05, 546.28, 329.13, 552.44, 336.54, 549.05, 339.62, 543.5, 339.62, 535.48, 339.62, 524.07, 340.24, 520.99, 337.77]], "area": 318.09315000000026, "iscrowd": 0, "image_id": 537924, "bbox": [520.99, 326.05, 31.45, 14.19], "category_id": 57, "id": 1563559}, {"segmentation": [[486.73, 247.84, 500.31, 263.69, 511.63, 280.9, 518.88, 288.6, 536.54, 294.94, 534.27, 307.62, 534.27, 324.82, 539.71, 322.56, 547.41, 328.45, 548.77, 326.63, 542.43, 295.84, 529.75, 268.67, 515.26, 251.01, 495.78, 234.26, 488.54, 238.33, 485.37, 245.12]], "area": 1615.9087499999987, "iscrowd": 0, "image_id": 294734, "bbox": [485.37, 234.26, 63.4, 94.19], "category_id": 57, "id": 1563635}, {"segmentation": [[131.77, 111.22, 122.29, 101.75, 114.49, 63.86, 115.61, 45.47, 130.65, 34.32, 146.81, 29.87, 162.41, 29.87, 174.11, 36.0, 165.76, 46.58, 165.76, 51.04, 177.46, 64.97, 194.73, 76.67, 199.19, 93.39]], "area": 4585.365400000001, "iscrowd": 0, "image_id": 404869, "bbox": [114.49, 29.87, 84.7, 81.35], "category_id": 57, "id": 1564505}, {"segmentation": [[328.65, 136.83, 335.49, 140.25, 339.89, 149.05, 344.29, 160.04, 343.31, 170.55, 340.87, 173.0, 331.34, 170.55, 328.65, 167.86, 326.94, 157.6, 327.43, 151.49, 327.43, 144.4, 324.5, 139.76]], "area": 454.1371000000003, "iscrowd": 0, "image_id": 49851, "bbox": [324.5, 136.83, 19.79, 36.17], "category_id": 57, "id": 1564757}, {"segmentation": [[425.93, 170.14, 425.85, 171.79, 429.74, 175.54, 434.49, 174.82, 433.63, 173.52, 430.75, 171.65, 428.44, 168.63, 426.72, 168.92]], "area": 29.908549999999828, "iscrowd": 0, "image_id": 543882, "bbox": [425.85, 168.63, 8.64, 6.91], "category_id": 57, "id": 1564915}, {"segmentation": [[383.32, 126.62, 407.55, 137.73, 425.4, 152.88, 460.74, 179.47, 479.26, 202.36, 483.97, 213.13, 480.27, 216.5, 468.82, 212.12, 453.34, 186.2, 429.43, 167.69, 414.96, 154.56, 391.06, 137.05, 384.33, 128.98]], "area": 1219.7601999999997, "iscrowd": 0, "image_id": 33034, "bbox": [383.32, 126.62, 100.65, 89.88], "category_id": 57, "id": 1565169}, {"segmentation": [[418.65, 171.76, 417.21, 168.3, 418.5, 165.42, 420.81, 163.7, 424.84, 165.71, 427.43, 168.45, 426.28, 169.31, 423.97, 171.33, 421.82, 171.47]], "area": 53.142600000000094, "iscrowd": 0, "image_id": 543882, "bbox": [417.21, 163.7, 10.22, 8.06], "category_id": 57, "id": 1565709}, {"segmentation": [[362.39, 88.45, 395.77, 104.77, 425.45, 133.71, 475.89, 167.09, 477.38, 155.96, 478.12, 155.96, 510.02, 179.7, 507.79, 201.96, 440.28, 163.38, 380.93, 118.13, 356.45, 95.87, 357.19, 87.71]], "area": 3144.9105999999997, "iscrowd": 0, "image_id": 33034, "bbox": [356.45, 87.71, 153.57, 114.25], "category_id": 57, "id": 1565958}, {"segmentation": [[426.83, 160.54, 421.13, 157.69, 420.66, 153.42, 423.03, 152.24, 426.11, 153.66, 429.91, 158.17, 429.2, 162.91, 427.77, 163.15]], "area": 53.54685000000013, "iscrowd": 0, "image_id": 543882, "bbox": [420.66, 152.24, 9.25, 10.91], "category_id": 57, "id": 1566162}, {"segmentation": [[492.91, 233.49, 466.01, 186.13, 466.01, 182.91, 496.14, 192.59, 503.68, 211.96, 496.14, 233.49]], "area": 895.3471999999996, "iscrowd": 0, "image_id": 33034, "bbox": [466.01, 182.91, 37.67, 50.58], "category_id": 57, "id": 1566444}, {"segmentation": [[528.87, 228.53, 529.25, 214.99, 541.29, 223.64, 546.18, 229.28, 547.68, 232.86, 544.48, 237.56, 542.98, 239.25, 534.52, 233.99]], "area": 239.8878999999995, "iscrowd": 0, "image_id": 33034, "bbox": [528.87, 214.99, 18.81, 24.26], "category_id": 57, "id": 1566719}, {"segmentation": [[417.06, 201.15, 427.68, 194.39, 436.12, 185.7, 461.95, 206.7, 463.88, 209.35, 447.47, 217.32, 437.57, 210.32, 413.44, 202.83]], "area": 697.4648500000003, "iscrowd": 0, "image_id": 33034, "bbox": [413.44, 185.7, 50.44, 31.62], "category_id": 57, "id": 1566865}, {"segmentation": [[407.83, 179.35, 406.1, 177.04, 406.29, 172.99, 406.68, 171.84, 408.22, 171.84, 408.99, 171.84, 414.77, 173.57, 415.92, 175.3, 415.73, 177.81, 413.42, 180.7, 410.92, 180.89, 409.37, 180.89]], "area": 69.37339999999989, "iscrowd": 0, "image_id": 543882, "bbox": [406.1, 171.84, 9.82, 9.05], "category_id": 57, "id": 1567174}, {"segmentation": [[370.62, 174.56, 371.62, 169.27, 372.61, 166.62, 375.59, 166.62, 376.91, 169.27, 377.24, 175.55]], "area": 45.57325000000006, "iscrowd": 0, "image_id": 543882, "bbox": [370.62, 166.62, 6.62, 8.93], "category_id": 57, "id": 1567277}, {"segmentation": [[379.41, 175.04, 379.68, 172.53, 379.68, 169.48, 379.81, 169.08, 384.05, 170.41, 385.37, 173.45, 383.78, 176.24, 383.52, 176.37, 380.61, 174.91]], "area": 29.33049999999993, "iscrowd": 0, "image_id": 543882, "bbox": [379.41, 169.08, 5.96, 7.29], "category_id": 57, "id": 1567379}, {"segmentation": [[379.02, 171.04, 396.42, 169.03, 397.09, 179.07, 381.03, 181.08, 376.34, 172.38]], "area": 185.4629000000003, "iscrowd": 0, "image_id": 543882, "bbox": [376.34, 169.03, 20.75, 12.05], "category_id": 57, "id": 1567552}, {"segmentation": [[0.0, 169.12, 16.31, 174.88, 33.58, 187.35, 46.06, 198.87, 55.65, 212.3, 51.82, 229.57, 39.34, 244.93, 0.96, 266.99, 0.96, 266.99]], "area": 3525.38965, "iscrowd": 0, "image_id": 101766, "bbox": [0.0, 169.12, 55.65, 97.87], "category_id": 59, "id": 1569989}, {"segmentation": [[133.2, 343.55, 84.86, 293.07, 84.86, 240.43, 124.6, 203.91, 204.09, 186.72, 282.5, 200.69, 330.84, 247.95, 335.14, 299.51, 272.84, 342.48, 164.35, 350.0]], "area": 32187.010749999998, "iscrowd": 0, "image_id": 387318, "bbox": [84.86, 186.72, 250.28, 163.28], "category_id": 60, "id": 1572172}, {"segmentation": [[606.67, 169.58, 598.99, 168.73, 597.28, 167.75, 598.01, 165.31, 601.06, 163.61, 604.84, 164.34, 609.11, 165.19, 611.3, 166.53, 612.16, 169.09, 611.79, 170.31, 607.04, 169.95]], "area": 66.42839999999991, "iscrowd": 0, "image_id": 543882, "bbox": [597.28, 163.61, 14.88, 6.7], "category_id": 60, "id": 1572273}, {"segmentation": [[596.16, 161.07, 596.16, 157.32, 597.17, 155.41, 600.46, 153.67, 602.92, 153.4, 605.93, 153.76, 607.67, 156.41, 607.94, 156.96, 608.67, 158.51, 608.4, 162.8, 607.4, 164.26, 607.21, 164.54, 603.2, 165.18, 602.28, 165.18, 598.35, 163.26, 596.53, 161.98]], "area": 118.67774999999997, "iscrowd": 0, "image_id": 543882, "bbox": [596.16, 153.4, 12.51, 11.78], "category_id": 60, "id": 1572545}, {"segmentation": [[581.91, 162.88, 584.81, 167.24, 590.46, 168.21, 593.36, 164.9, 594.49, 162.0, 595.37, 159.66, 591.75, 157.97, 583.2, 158.29, 579.98, 161.68]], "area": 106.68555000000035, "iscrowd": 0, "image_id": 543882, "bbox": [579.98, 157.97, 15.39, 10.24], "category_id": 60, "id": 1572672}, {"segmentation": [[589.45, 169.6, 592.76, 168.16, 595.86, 167.95, 597.62, 168.36, 598.66, 168.98, 599.79, 169.71, 600.72, 171.16, 601.03, 172.5, 601.35, 173.54, 601.45, 174.47, 601.66, 174.88, 601.35, 175.4, 597.41, 174.67, 594.83, 174.36, 593.48, 173.95, 592.45, 173.74, 592.45, 173.22, 592.14, 171.88, 590.59, 170.12]], "area": 56.617249999999885, "iscrowd": 0, "image_id": 543882, "bbox": [589.45, 167.95, 12.21, 7.45], "category_id": 60, "id": 1572812}, {"segmentation": [[368.2, 397.62, 378.44, 404.44, 385.27, 404.93, 391.61, 405.42, 391.12, 407.86, 383.81, 415.66, 380.39, 420.05, 377.95, 418.59, 372.59, 410.78, 369.66, 403.47]], "area": 222.4524000000001, "iscrowd": 0, "image_id": 216851, "bbox": [368.2, 397.62, 23.41, 22.43], "category_id": 60, "id": 1572833}, {"segmentation": [[204.6, 286.19, 202.18, 292.0, 203.87, 297.57, 206.05, 301.44, 210.89, 303.37, 224.2, 294.66, 232.91, 296.11, 236.3, 296.36, 237.27, 291.03, 236.06, 286.68, 227.83, 283.77, 220.57, 281.84, 214.76, 282.08, 209.44, 283.05, 207.26, 284.01]], "area": 488.9762500000007, "iscrowd": 0, "image_id": 83787, "bbox": [202.18, 281.84, 35.09, 21.53], "category_id": 60, "id": 1572962}, {"segmentation": [[245.48, 212.91, 246.71, 207.58, 251.42, 203.69, 256.95, 201.23, 261.26, 200.0, 264.54, 199.79, 269.25, 200.82, 272.12, 202.66, 275.4, 204.3, 277.24, 206.35, 278.47, 209.01, 279.7, 211.27, 280.52, 213.52, 279.91, 216.18, 275.6, 218.03, 250.81, 218.44]], "area": 503.5969500000002, "iscrowd": 0, "image_id": 83787, "bbox": [245.48, 199.79, 35.04, 18.65], "category_id": 60, "id": 1573457}, {"segmentation": [[612.1, 165.5, 612.76, 167.22, 616.73, 170.0, 621.5, 169.6, 623.36, 167.35, 624.55, 165.1, 623.76, 162.71, 621.24, 162.05, 618.46, 161.66, 615.28, 162.05, 613.29, 163.51, 612.63, 164.3]], "area": 77.45169999999986, "iscrowd": 0, "image_id": 543882, "bbox": [612.1, 161.66, 12.45, 8.34], "category_id": 60, "id": 1574358}, {"segmentation": [[574.93, 172.28, 572.41, 168.92, 572.13, 166.12, 575.21, 162.2, 580.81, 159.96, 583.61, 166.4, 584.73, 167.8, 583.89, 171.72, 582.49, 172.0, 576.89, 172.0]], "area": 108.8976, "iscrowd": 0, "image_id": 543882, "bbox": [572.13, 159.96, 12.6, 12.32], "category_id": 60, "id": 1574419}, {"segmentation": [[386.42, 216.82, 373.27, 217.29, 366.23, 224.33, 369.05, 236.54, 371.87, 239.35, 384.07, 228.08, 377.97, 242.64, 388.3, 248.74, 404.26, 254.85, 406.61, 240.29, 403.32, 225.74, 396.28, 218.22]], "area": 991.9925999999995, "iscrowd": 0, "image_id": 564237, "bbox": [366.23, 216.82, 40.38, 38.03], "category_id": 61, "id": 1576339}, {"segmentation": [[347.26, 303.12, 346.88, 297.09, 346.31, 290.87, 346.31, 286.16, 351.59, 282.2, 358.75, 280.69, 364.78, 282.01, 371.0, 285.78, 374.77, 289.17, 375.15, 291.43, 373.83, 297.47, 370.06, 302.74, 364.78, 304.82, 351.59, 304.06]], "area": 563.6663, "iscrowd": 0, "image_id": 290153, "bbox": [346.31, 280.69, 28.84, 24.13], "category_id": 61, "id": 1577316}, {"segmentation": [[201.51, 414.53, 152.57, 384.78, 142.01, 361.75, 105.55, 332.0, 90.2, 301.3, 80.6, 264.84, 80.6, 243.73, 80.6, 221.66, 77.72, 210.14, 76.76, 187.11, 76.76, 165.04, 80.6, 142.97, 86.36, 126.66, 91.16, 117.07, 106.51, 100.75, 115.15, 92.12, 129.54, 82.52, 136.26, 70.05, 143.93, 60.45, 160.24, 51.82, 174.64, 40.3, 182.31, 31.67, 191.91, 22.07, 199.59, 12.47, 206.3, 3.84, 390.54, 0.0, 404.93, 10.56, 413.57, 22.07, 419.32, 29.75, 425.08, 41.26, 427.0, 45.1, 429.88, 47.02, 436.6, 47.98, 442.35, 51.82, 453.87, 51.82, 471.14, 45.1, 479.78, 46.06, 479.78, 60.45, 512.4, 69.09, 534.47, 80.6, 544.07, 94.04, 554.62, 138.18, 549.82, 168.88, 542.15, 193.83, 535.43, 209.18, 534.47, 228.37, 526.79, 274.43, 507.6, 293.62, 489.37, 341.6, 462.5, 365.59, 424.12, 397.25, 394.38, 409.73, 374.22, 422.2, 215.9, 422.2]], "area": 160361.29160000003, "iscrowd": 0, "image_id": 222987, "bbox": [76.76, 0.0, 477.86, 422.2], "category_id": 61, "id": 1578586}, {"segmentation": [[290.16, 136.18, 293.39, 207.37, 290.16, 226.79, 320.36, 225.71, 336.55, 226.22, 330.58, 197.99, 320.65, 194.02, 314.68, 174.14, 309.91, 155.45, 314.68, 145.12, 321.84, 127.23, 323.83, 116.49, 323.43, 104.96, 328.6, 92.64, 287.25, 94.23, 290.43, 139.15], [460.98, 95.82, 476.49, 97.81, 494.78, 110.93, 494.38, 115.7, 487.62, 142.34, 482.05, 171.36, 489.61, 194.81, 492.39, 209.52, 491.99, 218.67, 491.99, 229.8, 488.41, 236.16, 485.23, 252.06, 490.4, 257.63, 495.57, 260.81, 508.29, 253.65, 513.46, 248.48, 519.42, 246.1, 527.38, 243.31, 534.13, 236.56, 519.42, 287.84, 503.12, 312.89, 497.56, 324.81, 488.41, 289.43, 483.64, 275.12, 477.68, 266.37, 466.95, 251.66, 457.01, 244.51, 443.89, 240.93, 435.14, 240.93, 440.31, 230.59, 443.89, 223.04, 455.82, 183.28, 457.41, 170.96, 461.78, 161.42, 462.57, 151.08, 463.77, 145.12, 473.71, 116.49, 473.71, 104.57], [537.31, 88.67, 575.08, 86.28, 565.14, 118.08, 559.18, 140.35, 555.6, 149.49, 551.23, 122.85, 549.64, 104.57, 547.25, 98.6]], "area": 11975.431549999998, "iscrowd": 0, "image_id": 564237, "bbox": [287.25, 86.28, 287.83, 238.53], "category_id": 62, "id": 1579417}, {"segmentation": [[17.6, 270.76, 29.58, 260.28, 33.77, 259.68, 36.16, 260.28, 36.46, 263.88, 21.49, 304.9, 18.8, 308.8, 17.6, 292.62, 17.0, 271.06]], "area": 479.93280000000004, "iscrowd": 0, "image_id": 546466, "bbox": [17.0, 259.68, 19.46, 49.12], "category_id": 62, "id": 1580717}, {"segmentation": [[451.82, 249.63, 451.21, 254.25, 450.61, 259.88, 450.21, 262.49, 452.22, 265.91, 461.26, 272.54, 460.66, 269.93, 461.46, 267.92, 462.67, 267.52, 465.08, 268.12, 465.68, 270.13, 479.75, 253.05, 479.35, 251.24, 477.94, 250.64, 476.93, 230.34, 472.71, 227.33, 470.3, 229.74, 470.3, 232.95, 476.73, 243.4, 471.91, 244.81, 464.88, 244.41, 462.87, 244.41, 456.64, 247.22, 451.01, 249.03], [442.17, 240.79, 430.72, 242.4, 431.92, 247.42, 437.55, 247.62, 437.55, 246.02, 446.99, 244.21, 445.39, 241.19, 445.19, 240.59, 442.17, 240.39]], "area": 692.1084500000003, "iscrowd": 0, "image_id": 483948, "bbox": [430.72, 227.33, 49.03, 45.21], "category_id": 62, "id": 1580863}, {"segmentation": [[601.47, 416.91, 601.47, 427.6, 605.3, 431.71, 621.47, 435.55, 640.0, 433.9, 640.0, 409.79, 600.92, 411.43]], "area": 893.9846999999992, "iscrowd": 0, "image_id": 115055, "bbox": [600.92, 409.79, 39.08, 25.76], "category_id": 62, "id": 1580879}, {"segmentation": [[459.51, 337.62, 471.37, 354.88, 481.08, 361.35, 482.16, 376.45, 468.13, 365.66, 461.66, 360.27, 459.51, 338.7], [460.58, 312.81, 494.02, 323.6, 537.17, 341.93, 547.96, 355.96, 551.19, 399.1, 555.51, 405.57, 567.37, 415.28, 606.2, 418.52, 608.36, 422.83, 623.46, 421.75, 625.62, 415.28, 637.48, 415.28, 640.0, 253.48, 636.4, 250.25, 624.54, 247.01, 612.67, 249.17, 607.28, 243.78, 555.51, 237.3, 514.52, 243.78, 508.04, 245.93, 481.08, 253.48, 463.82, 268.58, 459.51, 312.81]], "area": 22875.051699999996, "iscrowd": 0, "image_id": 77841, "bbox": [459.51, 237.3, 180.49, 185.53], "category_id": 62, "id": 1581150}, {"segmentation": [[183.12, 158.02, 182.51, 150.69, 181.69, 143.98, 182.71, 142.55, 185.36, 139.5, 190.44, 137.47, 196.34, 137.87, 201.22, 138.48, 202.65, 138.48, 203.67, 140.32, 205.29, 142.76, 207.33, 146.42, 208.75, 152.32, 209.16, 154.56, 209.16, 155.17, 205.09, 154.76, 201.83, 154.35, 188.2, 157.41, 185.76, 158.22, 183.52, 158.63]], "area": 428.05714999999987, "iscrowd": 0, "image_id": 130624, "bbox": [181.69, 137.47, 27.47, 21.16], "category_id": 62, "id": 1581183}, {"segmentation": [[47.51, 154.24, 48.86, 189.92, 63.77, 189.02, 64.22, 176.37, 64.45, 167.79, 59.25, 153.34]], "area": 538.6642499999999, "iscrowd": 0, "image_id": 517261, "bbox": [47.51, 153.34, 16.94, 36.58], "category_id": 62, "id": 1581308}, {"segmentation": [[137.07, 186.4, 189.56, 185.31, 236.05, 212.65, 227.84, 213.47, 192.57, 214.29, 180.81, 216.48, 174.8, 213.47, 176.17, 223.04, 173.98, 224.41, 172.34, 221.4, 169.06, 206.91, 138.71, 192.96, 136.79, 189.95]], "area": 1753.4612499999998, "iscrowd": 0, "image_id": 11754, "bbox": [136.79, 185.31, 99.26, 39.1], "category_id": 62, "id": 1581384}, {"segmentation": [[404.63, 46.49, 406.05, 43.64, 402.59, 38.96, 410.12, 38.96, 412.16, 34.08, 410.53, 27.77, 407.48, 19.84, 401.37, 20.86, 395.27, 22.69, 395.27, 26.35, 397.3, 31.44, 397.71, 37.54, 396.08, 45.47, 396.49, 49.95, 399.95, 48.93, 399.34, 44.46, 399.34, 38.96, 401.78, 41.41]], "area": 299.3779500000002, "iscrowd": 0, "image_id": 23015, "bbox": [395.27, 19.84, 16.89, 30.11], "category_id": 62, "id": 1581462}, {"segmentation": [[335.99, 2.24, 334.5, 32.18, 339.73, 42.65, 348.71, 50.14, 355.45, 55.38, 361.44, 61.36, 362.18, 71.09, 356.2, 73.33, 356.2, 75.58, 358.44, 89.8, 358.44, 106.26, 358.44, 130.96, 351.71, 148.17, 348.71, 167.62, 338.24, 178.85, 325.52, 185.58, 286.6, 193.07, 252.18, 191.57, 240.21, 186.33, 237.96, 181.09, 246.2, 178.85, 239.46, 171.36, 223.75, 166.13, 208.78, 161.64, 196.06, 156.4, 188.58, 151.91, 180.34, 136.94, 178.85, 126.47, 176.6, 113.74, 176.6, 98.78, 174.36, 89.05, 172.86, 77.82, 173.61, 68.84, 173.61, 59.87, 169.12, 46.4, 168.37, 23.95, 169.12, 14.97, 172.11, 0.75]], "area": 31009.780249999996, "iscrowd": 0, "image_id": 127076, "bbox": [168.37, 0.75, 193.81, 192.32], "category_id": 62, "id": 1581483}, {"segmentation": [[353.89, 58.47, 361.28, 62.27, 363.39, 63.96, 372.46, 63.11, 378.58, 61.85, 382.81, 60.16, 385.55, 56.57, 387.45, 53.19, 388.08, 52.35, 383.44, 50.03, 374.79, 51.5, 366.13, 52.98, 359.8, 54.46, 357.05, 56.36, 355.79, 56.78]], "area": 291.2073000000001, "iscrowd": 0, "image_id": 558286, "bbox": [353.89, 50.03, 34.19, 13.93], "category_id": 62, "id": 1581669}, {"segmentation": [[1.74, 109.88, 15.8, 103.32, 49.57, 104.26, 53.32, 143.65, 51.45, 331.24, 48.64, 381.9, 14.86, 380.02, 13.93, 365.02, 20.49, 357.51, 14.86, 349.06, 18.62, 138.96, 0.0, 136.15, 3.61, 111.76]], "area": 10215.289200000001, "iscrowd": 0, "image_id": 564237, "bbox": [0.0, 103.32, 53.32, 278.58], "category_id": 62, "id": 1581787}, {"segmentation": [[2.15, 379.18, 9.67, 379.18, 35.45, 372.73, 59.08, 403.88, 69.82, 444.7, 104.19, 447.92, 155.75, 432.89, 169.72, 431.81, 172.94, 442.55, 163.27, 450.07, 167.57, 470.48, 149.31, 472.63, 142.86, 457.59, 68.75, 466.18, 62.3, 472.63, 1.07, 472.63, 0.0, 381.33]], "area": 8012.922999999997, "iscrowd": 0, "image_id": 275327, "bbox": [0.0, 372.73, 172.94, 99.9], "category_id": 62, "id": 1581896}, {"segmentation": [[99.31, 169.57, 95.15, 164.88, 91.9, 158.01, 90.64, 154.76, 88.83, 150.43, 88.29, 147.36, 87.93, 145.74, 86.67, 143.93, 84.32, 143.03, 81.43, 142.12, 81.79, 143.57, 82.87, 150.25, 85.4, 158.56, 87.21, 174.08, 88.11, 176.43, 86.3, 178.96, 83.96, 177.7, 83.05, 168.67, 82.51, 163.43, 81.79, 157.83, 80.35, 152.24, 79.44, 147.54, 81.43, 143.93, 81.07, 138.51, 82.51, 136.71, 85.94, 135.8, 94.43, 136.35, 102.19, 137.43, 104.54, 138.33, 104.72, 143.75, 106.17, 151.51, 107.07, 158.38, 108.88, 164.15, 109.42, 165.96, 107.79, 170.83, 107.25, 165.42, 104.18, 157.11, 103.28, 149.71, 102.19, 145.74, 100.57, 142.85, 95.69, 141.4, 91.36, 142.12, 89.74, 142.85, 92.62, 148.44, 98.58, 163.79, 99.31, 166.5, 99.85, 169.03]], "area": 416.0769, "iscrowd": 0, "image_id": 289693, "bbox": [79.44, 135.8, 29.98, 43.16], "category_id": 62, "id": 1582758}, {"segmentation": [[184.09, 343.89, 226.17, 354.41, 226.17, 354.41, 257.74, 354.41, 257.74, 377.37, 256.78, 397.45, 310.34, 412.75, 307.47, 421.36, 300.78, 425.19, 300.78, 465.36, 299.82, 458.66, 299.82, 480.0, 291.21, 477.79, 293.12, 452.92, 293.12, 447.19, 285.47, 456.75, 276.87, 473.97, 267.3, 478.75, 245.3, 480.0, 237.65, 473.97, 236.7, 450.05, 229.04, 445.27, 224.26, 458.66, 208.96, 480.0, 193.66, 473.97, 189.83, 439.53, 193.66, 406.06, 181.22, 359.19, 181.22, 347.72, 183.14, 338.15, 188.87, 342.93]], "area": 11142.734299999998, "iscrowd": 0, "image_id": 290153, "bbox": [181.22, 338.15, 129.12, 141.85], "category_id": 62, "id": 1584017}, {"segmentation": [[341.9, 226.69, 341.9, 233.03, 343.83, 233.3, 344.11, 227.79, 349.07, 227.24, 349.9, 221.45, 352.65, 218.15, 352.93, 215.67, 359.82, 210.98, 360.64, 204.65, 358.99, 202.17, 357.34, 201.89, 352.1, 204.09, 349.35, 204.09, 340.8, 196.38, 324.82, 195.55, 330.06, 210.71, 329.78, 219.53, 333.09, 220.9, 332.26, 223.66, 327.3, 226.69, 328.68, 232.75, 330.61, 232.2, 330.06, 226.14, 334.74, 225.31, 340.8, 226.14]], "area": 741.9318000000003, "iscrowd": 0, "image_id": 579659, "bbox": [324.82, 195.55, 35.82, 37.75], "category_id": 62, "id": 1584332}, {"segmentation": [[555.32, 377.74, 563.25, 376.92, 557.23, 340.83, 608.64, 336.46, 608.64, 381.85, 608.09, 387.31, 604.53, 390.87, 574.46, 394.42, 565.98, 395.79, 566.8, 410.83, 567.07, 422.04, 565.43, 422.04, 553.95, 397.43, 552.04, 385.4, 550.4, 380.48]], "area": 2975.620900000001, "iscrowd": 0, "image_id": 50885, "bbox": [550.4, 336.46, 58.24, 85.58], "category_id": 62, "id": 1584994}, {"segmentation": [[47.21, 240.35, 47.35, 237.27, 51.11, 236.19, 55.54, 235.39, 56.88, 235.39, 55.0, 232.43, 53.93, 231.76, 49.5, 231.76, 46.81, 232.43, 44.4, 233.1, 42.11, 236.19, 40.91, 237.4, 40.91, 239.01, 40.91, 240.08, 40.1, 241.43, 43.59, 241.7, 47.62, 241.56]], "area": 84.95865, "iscrowd": 0, "image_id": 24730, "bbox": [40.1, 231.76, 16.78, 9.94], "category_id": 62, "id": 1585048}, {"segmentation": [[515.98, 199.26, 523.72, 228.37, 522.79, 230.54, 523.41, 232.71, 525.89, 233.33, 529.91, 234.26, 530.22, 233.02, 536.11, 235.19, 550.36, 236.12, 551.6, 228.99, 560.58, 228.99, 560.89, 227.14, 555.32, 226.52, 546.95, 226.52, 537.66, 225.28, 531.77, 202.66, 531.46, 194.3, 528.99, 192.75, 525.27, 191.82, 521.24, 191.82, 519.38, 192.75, 517.52, 194.3, 516.6, 195.54, 515.98, 197.4]], "area": 762.752549999999, "iscrowd": 0, "image_id": 139915, "bbox": [515.98, 191.82, 44.91, 44.3], "category_id": 62, "id": 1585115}, {"segmentation": [[284.9, 295.69, 279.78, 275.2, 281.97, 274.47, 285.99, 274.47, 303.19, 269.72, 305.02, 268.98, 305.38, 265.33, 307.94, 266.42, 309.77, 282.52, 303.92, 283.98, 298.8, 287.28, 293.68, 290.57, 284.9, 293.86]], "area": 468.5617499999996, "iscrowd": 0, "image_id": 290153, "bbox": [279.78, 265.33, 29.99, 30.36], "category_id": 62, "id": 1585420}, {"segmentation": [[538.38, 3.61, 550.6, 4.12, 553.66, 4.63, 550.09, 18.88, 549.58, 27.03, 547.04, 28.05, 547.04, 22.45, 537.88, 22.45, 537.88, 15.83, 533.8, 12.26]], "area": 289.6095000000008, "iscrowd": 0, "image_id": 23015, "bbox": [533.8, 3.61, 19.86, 24.44], "category_id": 62, "id": 1585977}, {"segmentation": [[271.77, 227.59, 273.96, 236.65, 260.53, 236.65, 260.22, 240.39, 257.1, 240.39, 256.16, 236.65, 247.73, 233.84, 248.36, 227.59, 247.11, 219.48, 243.36, 200.75, 253.35, 202.31, 260.85, 225.72, 260.85, 225.72, 272.4, 227.59, 272.4, 227.59]], "area": 530.2676499999997, "iscrowd": 0, "image_id": 579659, "bbox": [243.36, 200.75, 30.6, 39.64], "category_id": 62, "id": 1586218}, {"segmentation": [[34.94, 180.85, 39.4, 180.55, 45.13, 179.44, 46.15, 180.45, 44.76, 184.24, 47.07, 188.13, 47.16, 192.1, 45.22, 192.84, 43.1, 192.1, 41.71, 191.45, 38.11, 190.62, 37.46, 190.62, 36.54, 189.05]], "area": 115.61724999999994, "iscrowd": 0, "image_id": 41577, "bbox": [34.94, 179.44, 12.22, 13.4], "category_id": 62, "id": 1586412}, {"segmentation": [[222.12, 200.67, 218.02, 197.24, 213.85, 192.54, 209.54, 195.67, 212.8, 205.58, 214.89, 214.31, 213.58, 221.35, 213.58, 222.78, 216.58, 223.31, 219.06, 224.61, 227.66, 224.09, 231.44, 221.87, 232.62, 216.01, 232.22, 208.58, 230.53, 201.8, 226.36, 201.93, 224.66, 201.93]], "area": 469.5961500000001, "iscrowd": 0, "image_id": 579659, "bbox": [209.54, 192.54, 23.08, 32.07], "category_id": 62, "id": 1586767}, {"segmentation": [[49.08, 281.54, 32.43, 278.03, 28.92, 244.29, 0.44, 247.8, 0.44, 288.11]], "area": 1271.4345500000009, "iscrowd": 0, "image_id": 444214, "bbox": [0.44, 244.29, 48.64, 43.82], "category_id": 62, "id": 1587030}, {"segmentation": [[34.9, 206.98, 41.04, 214.37, 45.81, 219.49, 47.17, 221.19, 45.36, 230.51, 45.92, 233.01, 44.67, 233.69, 42.86, 233.24, 39.33, 233.01, 27.97, 230.74, 32.06, 213.46, 27.85, 206.3, 30.13, 206.98, 32.97, 210.05]], "area": 331.78034999999994, "iscrowd": 0, "image_id": 347340, "bbox": [27.85, 206.3, 19.32, 27.39], "category_id": 62, "id": 1588299}, {"segmentation": [[271.9, 336.96, 282.43, 373.34, 329.35, 370.47, 337.0, 386.74, 346.58, 382.91, 339.88, 361.85, 340.83, 356.1, 351.37, 363.76, 339.88, 308.23, 344.66, 263.24, 342.75, 242.17, 322.64, 242.17, 326.47, 303.45, 284.35, 303.45]], "area": 5841.727850000002, "iscrowd": 0, "image_id": 579659, "bbox": [271.9, 242.17, 79.47, 144.57], "category_id": 62, "id": 1588733}, {"segmentation": [[79.93, 85.52, 77.19, 80.34, 88.14, 80.05, 89.14, 81.06, 89.86, 84.66, 80.22, 85.38]], "area": 53.25204999999995, "iscrowd": 0, "image_id": 543882, "bbox": [77.19, 80.05, 12.67, 5.47], "category_id": 62, "id": 1589828}, {"segmentation": [[217.58, 152.18, 216.79, 140.65, 221.96, 137.47, 229.91, 136.67, 235.47, 137.07, 239.05, 139.06, 241.44, 147.8, 243.42, 152.57, 221.16, 153.77, 217.98, 153.77, 217.98, 152.18]], "area": 371.01205000000016, "iscrowd": 0, "image_id": 130624, "bbox": [216.79, 136.67, 26.63, 17.1], "category_id": 62, "id": 1589840}, {"segmentation": [[15.68, 80.34, 39.57, 86.31, 47.78, 96.02, 47.78, 116.92, 42.56, 132.6, 33.6, 145.3, 14.93, 145.3, 0.0, 146.04, 0.0, 81.08, 12.69, 79.59]], "area": 2786.1979, "iscrowd": 0, "image_id": 127076, "bbox": [0.0, 79.59, 47.78, 66.45], "category_id": 62, "id": 1589888}, {"segmentation": [[93.4, 224.13, 93.4, 214.59, 90.62, 206.64, 86.25, 201.47, 78.69, 197.5, 71.94, 195.91, 71.54, 211.01, 67.17, 214.19, 67.17, 205.45, 67.96, 194.32, 67.17, 185.97, 75.91, 182.39, 129.58, 185.97, 155.03, 210.61, 155.42, 219.76, 153.04, 222.14, 149.86, 216.58, 130.77, 215.78, 113.28, 216.18, 104.93, 222.54, 101.75, 226.12, 99.77, 224.53, 101.75, 218.57, 102.55, 214.59, 96.98, 211.41, 96.19, 224.53]], "area": 2182.2854500000003, "iscrowd": 0, "image_id": 11754, "bbox": [67.17, 182.39, 88.25, 43.73], "category_id": 62, "id": 1590255}, {"segmentation": [[114.46, 180.66, 104.51, 149.12, 89.98, 145.39, 78.78, 157.01, 84.59, 163.23, 89.15, 168.21, 92.47, 181.9, 111.98, 186.05, 117.37, 198.5, 119.86, 195.6, 121.52, 190.62]], "area": 919.7655500000003, "iscrowd": 0, "image_id": 480818, "bbox": [78.78, 145.39, 42.74, 53.11], "category_id": 62, "id": 1591288}, {"segmentation": [[321.39, 67.12, 312.72, 26.48, 331.25, 22.6, 376.07, 17.22, 379.95, 28.58, 326.77, 34.55, 324.08, 49.49, 328.26, 64.73], [380.25, 69.81, 384.43, 93.11, 384.43, 94.31, 390.11, 94.01, 385.93, 63.24]], "area": 1144.474149999999, "iscrowd": 0, "image_id": 332065, "bbox": [312.72, 17.22, 77.39, 77.09], "category_id": 62, "id": 1591713}, {"segmentation": [[460.09, 266.81, 461.16, 246.4, 464.38, 230.29, 468.68, 223.84, 478.35, 218.47, 485.87, 214.17, 495.53, 213.1, 505.2, 213.1, 515.94, 216.32, 523.46, 221.69, 525.61, 233.51, 526.68, 239.95, 526.68, 248.55, 524.54, 252.84, 520.24, 258.21, 518.09, 262.51, 493.39, 274.33, 478.35, 274.33, 467.61, 270.03]], "area": 3288.9993999999992, "iscrowd": 0, "image_id": 510979, "bbox": [460.09, 213.1, 66.59, 61.23], "category_id": 62, "id": 1591818}, {"segmentation": [[586.37, 241.65, 569.29, 238.98, 571.43, 217.09, 613.06, 220.3, 611.46, 234.71, 603.99, 234.17, 607.72, 240.58, 594.38, 238.98, 594.38, 244.31, 590.11, 243.78], [564.49, 237.91, 547.41, 232.04, 549.54, 235.78, 556.48, 238.98]], "area": 932.8869000000005, "iscrowd": 0, "image_id": 64744, "bbox": [547.41, 217.09, 65.65, 27.22], "category_id": 62, "id": 1592045}, {"segmentation": [[208.53, 322.94, 203.95, 305.95, 212.45, 300.73, 243.16, 288.31, 245.77, 292.88, 245.77, 311.83, 241.2, 310.53, 211.14, 322.94]], "area": 844.6260499999993, "iscrowd": 0, "image_id": 290153, "bbox": [203.95, 288.31, 41.82, 34.63], "category_id": 62, "id": 1592263}, {"segmentation": [[370.17, 153.63, 375.89, 160.38, 376.92, 162.62, 379.57, 166.51, 381.0, 171.41, 382.43, 174.89, 384.07, 178.56, 385.29, 180.4, 386.32, 180.81, 386.93, 180.2, 389.59, 155.47, 387.13, 152.61, 385.91, 150.98, 383.25, 150.16, 379.78, 149.54, 377.12, 149.54, 374.26, 149.54, 372.01, 149.95, 370.78, 150.77, 370.17, 152.2, 370.17, 153.43]], "area": 316.73534999999976, "iscrowd": 0, "image_id": 130624, "bbox": [370.17, 149.54, 19.42, 31.27], "category_id": 62, "id": 1592416}, {"segmentation": [[468.68, 165.65, 465.12, 166.47, 460.74, 145.39, 454.99, 141.01, 457.73, 137.45, 465.12, 135.81, 473.06, 135.54, 477.44, 136.63, 479.63, 140.19, 477.72, 145.67, 477.44, 149.23, 476.07, 151.96, 474.98, 154.15, 471.15, 155.25, 468.14, 158.53, 467.59, 162.37]], "area": 391.5752999999997, "iscrowd": 0, "image_id": 480818, "bbox": [454.99, 135.54, 24.64, 30.93], "category_id": 62, "id": 1592650}, {"segmentation": [[463.4, 6.75, 464.38, 3.81, 464.29, 0.52, 446.95, 0.34, 446.14, 4.17, 444.54, 4.97, 444.37, 10.22, 444.1, 17.34, 442.68, 24.18, 442.05, 26.23, 444.99, 25.7, 446.06, 23.56, 452.82, 23.47, 455.22, 19.92, 457.44, 18.67, 459.49, 17.07, 459.22, 15.2, 460.82, 14.13, 462.69, 12.44, 463.67, 9.06]], "area": 383.5548499999998, "iscrowd": 0, "image_id": 23015, "bbox": [442.05, 0.34, 22.33, 25.89], "category_id": 62, "id": 1592746}, {"segmentation": [[64.22, 85.28, 63.12, 88.58, 46.26, 88.71, 46.02, 84.19, 64.47, 84.8, 64.47, 84.92]], "area": 73.26794999999997, "iscrowd": 0, "image_id": 543882, "bbox": [46.02, 84.19, 18.45, 4.52], "category_id": 62, "id": 1592982}, {"segmentation": [[159.08, 226.72, 175.68, 228.23, 183.9, 232.25, 177.19, 232.93, 168.64, 232.93, 166.12, 230.75, 158.75, 233.09], [147.85, 227.9, 132.26, 230.91, 125.21, 235.78, 137.79, 235.27, 147.85, 233.43]], "area": 200.15045000000038, "iscrowd": 0, "image_id": 551986, "bbox": [125.21, 226.72, 58.69, 9.06], "category_id": 62, "id": 1593055}, {"segmentation": [[242.42, 178.36, 241.36, 174.95, 241.36, 171.96, 242.42, 169.4, 245.41, 166.2, 247.11, 165.78, 250.95, 167.7]], "area": 58.09279999999989, "iscrowd": 0, "image_id": 480818, "bbox": [241.36, 165.78, 9.59, 12.58], "category_id": 62, "id": 1593298}, {"segmentation": [[347.63, 229.24, 350.15, 229.24, 346.36, 221.66, 347.0, 216.61, 355.21, 212.19, 357.1, 211.56, 365.31, 212.82, 375.42, 210.92, 378.58, 210.29, 381.74, 210.92, 381.74, 220.4, 382.37, 226.09, 382.37, 226.72, 376.69, 219.77, 370.37, 217.87, 362.16, 222.3, 361.52, 228.61, 360.89, 239.98, 360.89, 253.88]], "area": 572.9575000000003, "iscrowd": 0, "image_id": 483948, "bbox": [346.36, 210.29, 36.01, 43.59], "category_id": 62, "id": 1593428}, {"segmentation": [[535.71, 219.07, 520.64, 213.27, 497.45, 211.53, 477.15, 202.25, 473.09, 170.36, 473.09, 158.77, 467.87, 156.45, 442.36, 150.07, 445.26, 130.36, 445.26, 104.27, 466.14, 102.53, 509.62, 105.43, 546.73, 117.6, 564.7, 127.46], [491.07, 238.2, 476.57, 242.84, 465.56, 306.62, 424.39, 350.69, 421.49, 394.75, 427.87, 411.57, 460.34, 405.77, 477.73, 401.71, 484.69, 381.42, 480.05, 337.35, 470.19, 324.01, 471.35, 307.2, 482.95, 264.29, 495.13, 259.08, 498.6, 250.38, 498.02, 246.9]], "area": 14926.061050000002, "iscrowd": 0, "image_id": 333643, "bbox": [421.49, 102.53, 143.21, 309.04], "category_id": 62, "id": 1593965}, {"segmentation": [[69.18, 99.08, 67.39, 94.05, 67.75, 91.89, 89.31, 90.09, 92.19, 91.17, 91.11, 99.08]], "area": 192.18274999999988, "iscrowd": 0, "image_id": 543882, "bbox": [67.39, 90.09, 24.8, 8.99], "category_id": 62, "id": 1594011}, {"segmentation": [[202.76, 262.9, 198.34, 255.34, 204.65, 243.36, 245.61, 232.02, 248.76, 235.8, 250.02, 243.36, 250.65, 267.94, 252.54, 286.85, 253.81, 313.32, 253.81, 318.99, 246.24, 318.99, 240.57, 315.84, 234.9, 307.02, 224.18, 305.13, 210.95, 309.54, 205.91, 308.91, 204.02, 298.82, 204.02, 272.98]], "area": 3528.872949999999, "iscrowd": 0, "image_id": 551986, "bbox": [198.34, 232.02, 55.47, 86.97], "category_id": 62, "id": 1594321}, {"segmentation": [[369.74, 253.81, 367.55, 252.99, 366.73, 250.53, 366.73, 234.39, 366.73, 230.01, 379.32, 228.09, 379.86, 229.19, 382.87, 231.1, 385.61, 251.9, 387.8, 253.54, 382.33, 256.82, 378.77, 252.45]], "area": 434.3799499999997, "iscrowd": 0, "image_id": 531032, "bbox": [366.73, 228.09, 21.07, 28.73], "category_id": 62, "id": 1594432}, {"segmentation": [[531.87, 253.4, 534.95, 221.82, 548.04, 207.96, 569.6, 206.42, 596.56, 221.82, 597.33, 236.46, 585.01, 250.32, 576.53, 278.04, 575.76, 294.22, 571.14, 311.16, 554.2, 300.38, 545.73, 278.04, 534.95, 267.26, 533.41, 254.17]], "area": 4257.5302999999985, "iscrowd": 0, "image_id": 510979, "bbox": [531.87, 206.42, 65.46, 104.74], "category_id": 62, "id": 1594742}, {"segmentation": [[365.1, 426.41, 344.7, 395.27, 324.3, 366.28, 307.11, 338.36, 302.82, 315.81, 332.89, 315.81, 342.55, 317.96, 351.14, 338.36, 357.58, 354.47, 365.1, 363.06, 385.5, 359.84, 419.87, 369.5, 430.6, 378.09, 429.53, 399.57, 437.05, 411.38, 440.27, 423.19, 417.72, 429.63, 402.68, 427.49, 404.83, 438.22, 383.36, 438.22, 375.84, 435.0]], "area": 7856.507950000001, "iscrowd": 0, "image_id": 50885, "bbox": [302.82, 315.81, 137.45, 122.41], "category_id": 62, "id": 1594782}, {"segmentation": [[26.46, 91.22, 29.0, 97.5, 18.31, 98.18, 8.64, 98.35, 8.3, 89.69, 25.78, 89.02]], "area": 165.2175500000001, "iscrowd": 0, "image_id": 543882, "bbox": [8.3, 89.02, 20.7, 9.33], "category_id": 62, "id": 1595186}, {"segmentation": [[177.1, 418.76, 175.34, 408.05, 178.32, 403.04, 188.89, 389.75, 194.18, 390.84, 195.8, 392.19, 197.57, 421.33, 198.92, 432.72, 198.38, 442.61, 197.43, 445.19, 178.32, 443.83, 176.83, 431.91]], "area": 1024.0258, "iscrowd": 0, "image_id": 332065, "bbox": [175.34, 389.75, 23.58, 55.44], "category_id": 62, "id": 1595231}, {"segmentation": [[166.15, 213.13, 148.75, 213.8, 148.92, 195.06, 166.15, 194.06, 165.98, 202.76, 173.01, 208.44, 176.02, 208.44, 176.35, 213.8]], "area": 395.89980000000014, "iscrowd": 0, "image_id": 579659, "bbox": [148.75, 194.06, 27.6, 19.74], "category_id": 62, "id": 1595470}, {"segmentation": [[412.08, 110.98, 411.85, 99.21, 429.62, 100.54, 430.29, 100.99, 429.62, 113.2, 413.41, 112.09]], "area": 227.9512000000002, "iscrowd": 0, "image_id": 23015, "bbox": [411.85, 99.21, 18.44, 13.99], "category_id": 62, "id": 1595604}, {"segmentation": [[99.72, 263.31, 117.71, 254.65, 127.67, 250.57, 129.11, 252.25, 130.07, 255.13, 131.03, 262.81, 136.95, 288.63, 138.75, 288.03, 139.05, 290.72, 136.95, 293.72, 140.55, 306.89, 170.19, 306.29, 171.09, 316.18, 173.79, 324.26, 170.19, 332.05, 172.89, 343.73, 172.89, 347.02, 174.36, 355.02, 168.67, 361.31, 165.38, 367.6, 175.86, 367.6, 175.35, 370.9, 154.1, 370.9, 120.39, 369.18, 118.03, 385.93, 109.87, 385.5, 112.23, 366.61, 114.16, 352.01, 113.09, 337.62, 109.65, 317.22, 109.65, 314.22, 109.23, 309.49, 106.0, 296.18, 103.21, 279.87, 99.78, 263.55]], "area": 5528.126449999999, "iscrowd": 0, "image_id": 579659, "bbox": [99.72, 250.57, 76.14, 135.36], "category_id": 62, "id": 1595898}, {"segmentation": [[335.75, 255.19, 342.78, 259.37, 351.14, 260.32, 353.04, 264.31, 356.46, 269.25, 359.69, 274.94, 359.88, 278.17, 356.27, 276.65, 351.33, 265.64, 343.73, 267.35, 340.12, 267.92, 337.84, 267.73, 334.8, 266.4, 335.75, 259.75, 335.75, 258.99, 334.42, 256.14, 334.42, 254.43, 336.32, 254.81], [337.08, 240.37, 344.11, 239.42, 343.35, 241.7, 341.45, 243.03, 335.18, 248.35]], "area": 219.03010000000015, "iscrowd": 0, "image_id": 483948, "bbox": [334.42, 239.42, 25.46, 38.75], "category_id": 62, "id": 1596155}, {"segmentation": [[398.67, 98.1, 411.66, 98.54, 411.84, 111.8, 396.89, 110.91, 397.16, 97.92]], "area": 192.46269999999993, "iscrowd": 0, "image_id": 23015, "bbox": [396.89, 97.92, 14.95, 13.88], "category_id": 62, "id": 1596313}, {"segmentation": [[57.37, 298.06, 69.73, 295.59, 70.64, 299.23, 71.55, 312.11, 74.41, 333.18, 73.89, 335.78, 71.16, 334.22, 67.38, 314.84, 59.71, 318.35, 59.58, 335.78, 58.8, 334.87, 54.38, 315.36, 52.43, 315.36, 51.65, 311.98, 55.55, 311.98, 57.5, 310.94]], "area": 419.3730000000001, "iscrowd": 0, "image_id": 332065, "bbox": [51.65, 295.59, 22.76, 40.19], "category_id": 62, "id": 1596563}, {"segmentation": [[538.16, 73.22, 536.89, 85.48, 535.3, 85.48, 534.98, 84.37, 532.59, 84.37, 532.43, 82.94, 534.98, 82.94, 535.14, 74.18, 524.63, 74.66, 522.4, 73.54, 524.31, 69.24, 524.63, 68.29, 524.15, 60.8, 525.74, 58.57, 528.45, 57.46, 530.84, 57.3, 536.25, 57.62, 538.01, 59.05, 538.16, 61.76, 538.16, 63.99, 538.01, 66.22, 537.85, 69.56, 538.01, 72.59]], "area": 261.3187499999999, "iscrowd": 0, "image_id": 23015, "bbox": [522.4, 57.3, 15.76, 28.18], "category_id": 62, "id": 1596622}, {"segmentation": [[452.66, 164.14, 480.26, 166.16, 486.66, 190.74, 492.72, 203.53, 496.09, 227.43, 478.24, 227.77, 467.14, 234.16, 463.77, 202.52, 448.96, 196.46, 453.67, 165.49]], "area": 2009.6694000000016, "iscrowd": 0, "image_id": 130624, "bbox": [448.96, 164.14, 47.13, 70.02], "category_id": 62, "id": 1596754}, {"segmentation": [[404.96, 95.24, 398.25, 90.21, 394.48, 92.93, 390.08, 95.66, 387.14, 93.98, 391.33, 89.58, 388.19, 88.53, 390.5, 84.55, 389.24, 78.88, 383.16, 71.97, 383.16, 69.45, 384.83, 67.35, 391.54, 67.56, 396.79, 72.59, 399.72, 73.43, 404.75, 74.69, 410.42, 77.21, 414.19, 79.51, 415.87, 80.98, 415.87, 82.45, 415.87, 83.92, 411.25, 85.59, 402.45, 87.27, 406.22, 92.72, 407.06, 95.24]], "area": 469.66500000000013, "iscrowd": 0, "image_id": 269986, "bbox": [383.16, 67.35, 32.71, 28.31], "category_id": 62, "id": 1597014}, {"segmentation": [[37.44, 301.47, 44.77, 300.43, 52.26, 299.84, 52.36, 312.15, 53.05, 316.6, 55.22, 336.31, 55.81, 339.66, 54.23, 339.86, 50.88, 319.75, 46.94, 319.16, 39.65, 321.13, 40.43, 345.38, 38.07, 345.38, 38.66, 333.75, 36.89, 332.17, 36.69, 321.72, 36.29, 318.17, 36.89, 315.86, 36.4, 312.95, 36.22, 306.14]], "area": 411.3121000000001, "iscrowd": 0, "image_id": 332065, "bbox": [36.22, 299.84, 19.59, 45.54], "category_id": 62, "id": 1597087}, {"segmentation": [[409.2, 232.65, 408.44, 237.68, 408.19, 242.47, 406.68, 248.51, 404.66, 253.8, 398.12, 253.04, 394.34, 252.54, 392.83, 253.29, 396.35, 255.31, 397.61, 258.33, 398.62, 265.38, 396.61, 270.92, 396.61, 277.21, 398.87, 276.96, 400.63, 273.94, 400.63, 269.66, 403.4, 276.71, 405.92, 278.98, 408.69, 275.45, 409.2, 270.92, 414.48, 269.91, 417.5, 267.39, 418.26, 258.83, 418.51, 250.78, 425.56, 245.74, 430.09, 241.96, 430.6, 233.91, 428.33, 232.9, 425.06, 230.13, 413.22, 231.39, 408.44, 231.89]], "area": 836.9489, "iscrowd": 0, "image_id": 531032, "bbox": [392.83, 230.13, 37.77, 48.85], "category_id": 62, "id": 1597239}, {"segmentation": [[155.56, 122.76, 149.93, 103.08, 173.36, 102.14, 161.18, 117.13]], "area": 241.03250000000008, "iscrowd": 0, "image_id": 269986, "bbox": [149.93, 102.14, 23.43, 20.62], "category_id": 62, "id": 1597282}, {"segmentation": [[108.86, 95.02, 108.31, 91.65, 106.95, 90.82, 106.49, 90.19, 121.07, 88.73, 122.25, 95.65]], "area": 80.47079999999997, "iscrowd": 0, "image_id": 543882, "bbox": [106.49, 88.73, 15.76, 6.92], "category_id": 62, "id": 1597362}, {"segmentation": [[89.81, 304.8, 85.32, 304.5, 87.72, 278.75, 79.63, 227.84, 85.32, 228.14, 103.29, 224.24, 109.28, 250.3, 111.67, 257.48, 100.29, 262.58, 101.19, 273.06, 103.89, 280.84, 95.5, 279.05]], "area": 1307.3234500000003, "iscrowd": 0, "image_id": 579659, "bbox": [79.63, 224.24, 32.04, 80.56], "category_id": 62, "id": 1597529}, {"segmentation": [[388.49, 246.22, 389.74, 232.53, 404.67, 230.87, 406.33, 233.36, 405.5, 249.53], [388.86, 250.53, 388.74, 254.58, 392.19, 254.82, 392.19, 251.72, 393.98, 251.48, 388.86, 250.65], [396.6, 255.65, 396.6, 260.3, 398.51, 260.89, 399.93, 255.53, 399.93, 255.53]], "area": 299.5419999999995, "iscrowd": 0, "image_id": 531032, "bbox": [388.49, 230.87, 17.84, 30.02], "category_id": 62, "id": 1597625}, {"segmentation": [[109.98, 158.68, 98.85, 155.89, 88.91, 140.39, 87.32, 139.2, 90.11, 137.21, 91.3, 135.62, 92.09, 133.63, 95.28, 132.83, 99.65, 133.63, 99.65, 133.23, 105.21, 144.76, 108.79, 151.52, 115.55, 149.93, 118.33, 152.31]], "area": 340.0845999999999, "iscrowd": 0, "image_id": 23015, "bbox": [87.32, 132.83, 31.01, 25.85], "category_id": 62, "id": 1598070}, {"segmentation": [[12.85, 85.34, 12.85, 79.82, 26.86, 79.4, 26.86, 84.92]], "area": 77.33520000000004, "iscrowd": 0, "image_id": 543882, "bbox": [12.85, 79.4, 14.01, 5.94], "category_id": 62, "id": 1598105}, {"segmentation": [[450.71, 171.03, 442.39, 175.47, 435.74, 174.36, 434.63, 169.93, 432.97, 157.17, 435.74, 149.41, 449.05, 151.07, 456.25, 154.95, 456.25, 168.82]], "area": 482.6034999999998, "iscrowd": 0, "image_id": 385701, "bbox": [432.97, 149.41, 23.28, 26.06], "category_id": 62, "id": 1598111}, {"segmentation": [[523.67, 100.52, 525.1, 88.24, 539.71, 88.24, 540.1, 101.56, 536.22, 101.43, 535.44, 99.88, 534.8, 95.22, 533.5, 93.54, 528.72, 94.06, 527.04, 97.16, 527.55, 98.32]], "area": 141.16770000000042, "iscrowd": 0, "image_id": 23015, "bbox": [523.67, 88.24, 16.43, 13.32], "category_id": 62, "id": 1598196}, {"segmentation": [[260.55, 152.44, 260.19, 147.22, 257.47, 145.56, 252.37, 144.85, 248.57, 144.85, 245.49, 146.27, 248.57, 149.24, 247.98, 153.51, 250.35, 155.52]], "area": 111.1508000000002, "iscrowd": 0, "image_id": 41577, "bbox": [245.49, 144.85, 15.06, 10.67], "category_id": 62, "id": 1598322}, {"segmentation": [[481.04, 288.13, 483.47, 282.77, 484.85, 280.52, 489.18, 279.48, 499.04, 280.0, 505.79, 279.31, 510.12, 279.14, 512.54, 279.48, 516.0, 282.42, 517.38, 288.48, 517.04, 289.17]], "area": 297.9967999999998, "iscrowd": 0, "image_id": 385701, "bbox": [481.04, 279.14, 36.34, 10.03], "category_id": 62, "id": 1598349}, {"segmentation": [[520.16, 208.36, 524.65, 189.56, 526.7, 181.18, 528.95, 175.25, 533.03, 169.12, 536.3, 167.48, 540.59, 167.28, 539.78, 171.37, 539.57, 177.7, 541.0, 181.99, 542.23, 189.15, 545.29, 199.77, 545.5, 201.82, 538.55, 204.27, 530.78, 204.68, 526.49, 206.11, 522.81, 209.18, 522.61, 211.42, 519.54, 211.83]], "area": 612.6244500000001, "iscrowd": 0, "image_id": 130624, "bbox": [519.54, 167.28, 25.96, 44.55], "category_id": 62, "id": 1598429}, {"segmentation": [[312.25, 57.66, 310.6, 54.19, 308.17, 52.48, 306.16, 51.63, 306.22, 50.23, 308.47, 48.65, 310.6, 48.89, 313.04, 49.32, 314.68, 50.72, 316.27, 52.85, 317.36, 55.16, 317.79, 56.69, 318.21, 57.36, 320.04, 59.55, 320.53, 61.07, 320.71, 61.86, 320.89, 63.08, 321.81, 62.96, 322.42, 64.18, 322.23, 70.51, 314.32, 70.93]], "area": 166.97655000000006, "iscrowd": 0, "image_id": 558286, "bbox": [306.16, 48.65, 16.26, 22.28], "category_id": 62, "id": 1598662}, {"segmentation": [[599.46, 210.64, 612.01, 212.09, 620.69, 211.36, 626.0, 215.47, 627.94, 220.05, 627.21, 223.19, 623.11, 228.26, 620.21, 230.91, 618.28, 231.4, 616.11, 224.64, 609.83, 217.16, 606.46, 214.26]], "area": 249.23704999999995, "iscrowd": 0, "image_id": 130624, "bbox": [599.46, 210.64, 28.48, 20.76], "category_id": 62, "id": 1599147}, {"segmentation": [[249.08, 419.79, 226.0, 336.12, 252.93, 309.19, 267.36, 303.42, 285.63, 400.55, 285.63, 403.44, 265.43, 421.71, 253.89, 421.71]], "area": 4407.71105, "iscrowd": 0, "image_id": 579659, "bbox": [226.0, 303.42, 59.63, 118.29], "category_id": 62, "id": 1599277}, {"segmentation": [[433.96, 225.97, 443.37, 226.69, 442.65, 228.38, 433.23, 227.42], [433.23, 230.07, 442.41, 230.79, 442.65, 232.73, 432.75, 231.76], [432.75, 234.17, 432.75, 236.1, 441.68, 235.86, 441.68, 234.41, 432.75, 233.93]], "area": 48.97034999999994, "iscrowd": 0, "image_id": 290153, "bbox": [432.75, 225.97, 10.62, 10.13], "category_id": 62, "id": 1599462}, {"segmentation": [[533.93, 427.15, 538.25, 412.04, 537.17, 395.87, 522.07, 395.87, 516.67, 337.62, 497.26, 338.7, 495.1, 379.69, 494.02, 404.49, 488.63, 415.28, 528.54, 409.89, 525.3, 428.22]], "area": 2245.4855499999994, "iscrowd": 0, "image_id": 50885, "bbox": [488.63, 337.62, 49.62, 90.6], "category_id": 62, "id": 1599474}, {"segmentation": [[589.27, 376.66, 598.88, 332.8, 594.28, 281.43, 591.77, 255.53, 594.7, 250.94, 625.19, 265.56, 630.62, 326.53, 633.12, 339.07, 640.0, 346.17, 640.0, 352.43, 636.88, 383.76, 625.63, 413.57, 619.87, 412.61, 621.79, 381.9, 604.52, 365.59, 598.76, 379.98, 598.76, 379.98]], "area": 4707.068500000006, "iscrowd": 0, "image_id": 579659, "bbox": [589.27, 250.94, 50.73, 162.63], "category_id": 62, "id": 1599512}, {"segmentation": [[66.49, 99.99, 87.71, 100.1, 87.82, 109.82, 70.62, 111.16, 66.27, 109.82]], "area": 223.4799, "iscrowd": 0, "image_id": 543882, "bbox": [66.27, 99.99, 21.55, 11.17], "category_id": 62, "id": 1599629}, {"segmentation": [[22.37, 230.03, 16.29, 241.94, 20.66, 239.75, 20.66, 245.35, 23.58, 247.54, 25.77, 233.43, 33.56, 232.21, 29.18, 242.92, 26.99, 248.75, 34.77, 249.24, 38.66, 248.75, 42.07, 259.21, 46.45, 259.21, 47.91, 262.13, 47.42, 256.29, 51.07, 237.08, 53.01, 228.32, 52.53, 224.43, 51.07, 224.19, 24.31, 229.3]], "area": 661.9277499999998, "iscrowd": 0, "image_id": 579659, "bbox": [16.29, 224.19, 36.72, 37.94], "category_id": 62, "id": 1599904}, {"segmentation": [[287.53, 211.74, 272.29, 213.35, 266.43, 215.4, 261.01, 219.65, 260.13, 222.73, 260.27, 232.11, 261.89, 243.39, 262.62, 248.37, 264.38, 249.54, 265.84, 253.5, 266.43, 258.34, 268.77, 256.87, 271.26, 257.02, 272.88, 257.02, 273.02, 240.61, 273.32, 231.96, 271.26, 228.59, 273.17, 225.95, 277.13, 217.31, 280.64, 214.38, 284.74, 212.62]], "area": 510.8059000000004, "iscrowd": 0, "image_id": 130624, "bbox": [260.13, 211.74, 27.4, 46.6], "category_id": 62, "id": 1599938}, {"segmentation": [[407.81, 290.45, 412.61, 329.79, 423.16, 329.79, 500.89, 327.87, 499.93, 288.53, 409.73, 283.73]], "area": 3871.805600000001, "iscrowd": 0, "image_id": 579659, "bbox": [407.81, 283.73, 93.08, 46.06], "category_id": 62, "id": 1599980}, {"segmentation": [[434.64, 228.29, 451.57, 227.62, 456.89, 229.28, 457.55, 232.44, 457.05, 236.92, 454.4, 240.07, 452.74, 242.56, 452.4, 244.22, 451.41, 244.72, 443.94, 245.05, 443.27, 240.41, 440.62, 236.26, 436.97, 233.43, 434.14, 229.95]], "area": 269.52755000000013, "iscrowd": 0, "image_id": 385701, "bbox": [434.14, 227.62, 23.41, 17.43], "category_id": 62, "id": 1600035}, {"segmentation": [[17.61, 336.38, 16.22, 321.75, 16.22, 318.5, 16.22, 302.7, 17.61, 303.16, 21.33, 303.16, 31.78, 302.7, 33.41, 301.54, 34.8, 315.01, 36.19, 315.24, 36.43, 318.73, 34.1, 320.12, 35.26, 319.66, 36.19, 332.43, 34.33, 331.74, 32.01, 319.66, 30.62, 320.12, 30.85, 333.13, 28.99, 333.13, 27.83, 321.05, 18.54, 321.98, 20.4, 334.76]], "area": 432.08004999999997, "iscrowd": 0, "image_id": 332065, "bbox": [16.22, 301.54, 20.21, 34.84], "category_id": 62, "id": 1600417}, {"segmentation": [[405.3, 246.49, 396.53, 245.88, 396.12, 240.98, 400.2, 239.55, 400.61, 229.36, 403.26, 228.95, 416.92, 228.95, 415.9, 230.38, 410.4, 233.85, 408.97, 236.29, 407.54, 239.15, 405.5, 246.9]], "area": 179.81375000000025, "iscrowd": 0, "image_id": 385701, "bbox": [396.12, 228.95, 20.8, 17.95], "category_id": 62, "id": 1600649}, {"segmentation": [[0.02, 307.82, 14.72, 306.26, 14.43, 312.48, 15.14, 326.33, 16.27, 335.38, 15.85, 337.22, 14.72, 337.36, 13.02, 325.91, 0.72, 328.45]], "area": 308.7573000000003, "iscrowd": 0, "image_id": 332065, "bbox": [0.02, 306.26, 16.25, 31.1], "category_id": 62, "id": 1600800}, {"segmentation": [[78.44, 89.16, 76.02, 86.89, 78.51, 85.75, 99.81, 83.91, 100.94, 84.69, 101.72, 88.95, 98.24, 89.59, 98.39, 94.56, 92.71, 95.55, 92.14, 94.7, 92.21, 91.08, 91.93, 89.94, 88.59, 89.59, 80.57, 89.66]], "area": 147.0995, "iscrowd": 0, "image_id": 543882, "bbox": [76.02, 83.91, 25.7, 11.64], "category_id": 62, "id": 1600839}, {"segmentation": [[1.78, 124.91, 10.66, 189.44, 2.96, 189.44, 1.18, 127.87]], "area": 269.5459, "iscrowd": 0, "image_id": 543882, "bbox": [1.18, 124.91, 9.48, 64.53], "category_id": 62, "id": 1600876}, {"segmentation": [[179.16, 187.8, 191.41, 186.76, 194.0, 190.21, 195.72, 194.0, 202.62, 196.25, 200.55, 197.8, 191.41, 198.66, 181.06, 197.8, 179.68, 196.59, 178.48, 190.04]], "area": 187.8467000000001, "iscrowd": 0, "image_id": 41577, "bbox": [178.48, 186.76, 24.14, 11.9], "category_id": 62, "id": 1600965}, {"segmentation": [[570.42, 311.91, 575.09, 290.41, 576.96, 270.77, 588.18, 244.12, 602.68, 232.9, 628.86, 232.43, 632.13, 236.17, 623.72, 247.86, 625.12, 256.74, 623.25, 266.09, 610.16, 266.09, 586.78, 272.17, 580.23, 281.99, 577.43, 286.2, 575.56, 303.03, 577.9, 308.64, 575.56, 315.19]], "area": 1598.1148499999986, "iscrowd": 0, "image_id": 510979, "bbox": [570.42, 232.43, 61.71, 82.76], "category_id": 62, "id": 1601078}, {"segmentation": [[475.68, 227.92, 488.61, 227.38, 489.95, 230.35, 488.07, 236.54, 483.76, 232.77, 481.88, 231.42, 474.06, 231.96, 476.49, 227.92]], "area": 74.06145000000004, "iscrowd": 0, "image_id": 385701, "bbox": [474.06, 227.38, 15.89, 9.16], "category_id": 62, "id": 1601164}, {"segmentation": [[1.44, 192.31, 1.44, 183.08, 7.44, 181.24, 16.44, 181.01, 17.82, 188.39, 13.9, 188.62, 12.28, 192.54, 11.82, 193.93, 9.51, 193.7, 7.21, 191.62]], "area": 157.06499999999997, "iscrowd": 0, "image_id": 41577, "bbox": [1.44, 181.01, 16.38, 12.92], "category_id": 62, "id": 1601533}, {"segmentation": [[164.24, 396.54, 168.87, 396.89, 168.87, 377.69, 200.86, 383.38, 206.55, 402.94, 210.82, 401.87, 200.15, 366.67, 200.86, 362.76, 209.75, 365.61, 216.15, 381.6, 218.64, 376.63, 213.31, 360.27, 215.44, 321.17, 200.51, 326.86, 195.17, 358.14, 163.89, 356.72]], "area": 1743.7258499999998, "iscrowd": 0, "image_id": 332065, "bbox": [163.89, 321.17, 54.75, 81.77], "category_id": 62, "id": 1601561}, {"segmentation": [[138.36, 123.48, 134.12, 112.35, 150.03, 109.17, 157.98, 121.89, 154.8, 130.37, 154.8, 134.08, 145.25, 134.61, 141.01, 127.72, 138.89, 123.48]], "area": 391.24865000000017, "iscrowd": 0, "image_id": 41577, "bbox": [134.12, 109.17, 23.86, 25.44], "category_id": 62, "id": 1601704}, {"segmentation": [[224.99, 345.04, 228.72, 343.64, 227.78, 321.99, 228.02, 318.97, 233.6, 315.47, 238.49, 313.61, 243.85, 312.45, 247.81, 312.45, 242.68, 325.49, 239.19, 335.26, 236.86, 341.08, 233.14, 348.77, 230.34, 354.82, 228.72, 357.61, 226.15, 352.72, 224.29, 346.9]], "area": 471.92959999999977, "iscrowd": 0, "image_id": 332065, "bbox": [224.29, 312.45, 23.52, 45.16], "category_id": 62, "id": 1602043}, {"segmentation": [[131.83, 325.76, 121.11, 274.31, 122.18, 245.38, 136.11, 237.87, 155.4, 238.95, 173.62, 256.09, 178.98, 282.89, 173.62, 320.4, 172.55, 328.97, 152.19, 323.61]], "area": 4237.37625, "iscrowd": 0, "image_id": 510979, "bbox": [121.11, 237.87, 57.87, 91.1], "category_id": 62, "id": 1602066}, {"segmentation": [[468.32, 169.88, 470.23, 161.13, 480.62, 161.13, 479.53, 168.24, 479.8, 170.43, 479.53, 170.97, 473.79, 170.15, 470.78, 170.43]], "area": 99.78854999999996, "iscrowd": 0, "image_id": 385701, "bbox": [468.32, 161.13, 12.3, 9.84], "category_id": 62, "id": 1602081}, {"segmentation": [[362.17, 106.51, 361.99, 99.4, 372.28, 99.77, 373.03, 104.27, 373.59, 108.76, 373.78, 109.88, 372.47, 110.82, 368.35, 107.64, 362.92, 107.45, 361.8, 106.89]], "area": 95.97489999999952, "iscrowd": 0, "image_id": 385701, "bbox": [361.8, 99.4, 11.98, 11.42], "category_id": 62, "id": 1602362}, {"segmentation": [[85.94, 189.44, 85.67, 186.35, 83.66, 181.65, 84.6, 180.17, 87.01, 179.64, 91.05, 179.23, 95.35, 180.17, 96.96, 181.52, 99.38, 184.88, 101.26, 187.56, 99.38, 189.04, 94.67, 189.04, 88.49, 188.91]], "area": 129.36390000000006, "iscrowd": 0, "image_id": 41577, "bbox": [83.66, 179.23, 17.6, 10.21], "category_id": 62, "id": 1602481}, {"segmentation": [[64.52, 411.12, 95.85, 435.43, 126.71, 470.03, 131.85, 477.98, 112.21, 478.0, 45.35, 477.04, 43.95, 426.55, 45.82, 411.12]], "area": 3807.2191000000007, "iscrowd": 0, "image_id": 510979, "bbox": [43.95, 411.12, 87.9, 66.88], "category_id": 62, "id": 1602613}, {"segmentation": [[359.7, 107.48, 365.04, 106.98, 368.46, 107.79, 370.18, 110.0, 370.68, 113.03, 370.88, 115.45, 370.08, 116.96, 368.97, 118.37, 368.06, 121.29, 367.46, 123.1, 366.75, 120.59, 365.44, 119.68, 364.63, 118.97, 364.94, 115.65, 364.33, 114.54, 361.41, 112.52, 359.29, 112.12, 358.89, 111.92, 359.6, 109.5, 359.6, 108.09]], "area": 99.59795000000001, "iscrowd": 0, "image_id": 385701, "bbox": [358.89, 106.98, 11.99, 16.12], "category_id": 62, "id": 1602647}, {"segmentation": [[176.65, 267.12, 174.69, 255.39, 159.05, 241.42, 162.12, 228.85, 171.62, 217.96, 195.36, 213.77, 207.09, 221.03, 200.11, 221.03, 193.41, 227.46, 191.45, 235.0, 183.07, 243.66, 181.4, 252.88]], "area": 1031.8029499999993, "iscrowd": 0, "image_id": 510979, "bbox": [159.05, 213.77, 48.04, 53.35], "category_id": 62, "id": 1602823}, {"segmentation": [[96.43, 180.55, 97.65, 179.34, 108.92, 179.34, 111.2, 188.77, 108.46, 189.08, 107.24, 186.95, 102.83, 186.95, 100.7, 187.4]], "area": 95.39819999999995, "iscrowd": 0, "image_id": 41577, "bbox": [96.43, 179.34, 14.77, 9.74], "category_id": 62, "id": 1602830}, {"segmentation": [[342.16, 99.4, 342.27, 95.06, 350.49, 93.81, 360.08, 93.69, 361.0, 95.18, 361.57, 101.0, 361.11, 103.06, 358.37, 100.66, 355.52, 100.2, 350.49, 100.43, 343.3, 100.2]], "area": 123.072, "iscrowd": 0, "image_id": 385701, "bbox": [342.16, 93.69, 19.41, 9.37], "category_id": 62, "id": 1602866}, {"segmentation": [[319.43, 99.97, 319.24, 96.96, 324.89, 95.26, 338.09, 94.7, 339.22, 99.97, 339.03, 101.67, 334.69, 101.1, 327.72, 101.1, 323.01, 102.24, 319.8, 101.48]], "area": 118.9005499999999, "iscrowd": 0, "image_id": 385701, "bbox": [319.24, 94.7, 19.98, 7.54], "category_id": 62, "id": 1603105}, {"segmentation": [[80.04, 312.73, 94.81, 332.08, 100.92, 336.15, 126.39, 328.51, 118.24, 288.79, 105.0, 270.97, 109.58, 283.19, 101.94, 296.43, 100.92, 301.52, 92.27, 304.58, 85.65, 304.58]], "area": 1427.3677499999992, "iscrowd": 0, "image_id": 510979, "bbox": [80.04, 270.97, 46.35, 65.18], "category_id": 62, "id": 1603291}, {"segmentation": [[325.98, 205.59, 319.81, 208.67, 317.65, 213.3, 322.9, 217.0, 329.68, 218.24, 326.91, 224.41, 326.29, 228.72, 334.93, 229.96, 348.19, 232.43, 350.04, 244.15, 353.43, 242.91, 348.81, 222.56, 351.89, 221.01, 352.82, 226.57, 355.59, 231.5, 358.37, 239.52, 359.6, 237.67, 358.99, 228.11, 356.21, 223.17, 356.83, 219.16, 358.99, 221.01, 361.15, 228.72, 363.3, 232.43, 368.24, 231.19, 363.0, 220.7, 365.77, 207.44, 368.24, 200.96, 370.4, 195.72, 371.94, 189.55, 373.79, 183.69, 375.95, 173.82, 375.95, 169.5, 375.95, 167.34, 372.25, 167.03, 366.39, 175.05, 362.07, 182.45, 356.21, 194.79, 354.05, 205.28, 346.34, 205.9, 338.63, 205.28, 329.68, 204.36, 328.14, 204.36]], "area": 1478.2019000000007, "iscrowd": 0, "image_id": 510979, "bbox": [317.65, 167.03, 58.3, 77.12], "category_id": 62, "id": 1603350}, {"segmentation": [[322.57, 192.17, 329.12, 192.34, 334.98, 193.72, 338.94, 195.27, 342.91, 196.31, 345.49, 195.27, 347.91, 189.24, 349.8, 181.66, 351.52, 174.25, 353.76, 168.05, 357.38, 160.46, 359.8, 158.22, 365.65, 159.43, 365.83, 164.08, 360.49, 183.73, 357.38, 192.86, 355.49, 197.69, 354.8, 201.48, 353.76, 204.58, 348.77, 205.44, 339.46, 205.44, 336.36, 204.92, 322.75, 202.17, 321.54, 200.62, 320.33, 198.89, 319.82, 196.31, 319.99, 194.76, 321.71, 192.69, 322.23, 192.34]], "area": 741.6665499999997, "iscrowd": 0, "image_id": 510979, "bbox": [319.82, 158.22, 46.01, 47.22], "category_id": 62, "id": 1603504}, {"segmentation": [[44.31, 459.18, 43.0, 451.35, 46.91, 445.48, 43.0, 422.66, 29.96, 399.18, 24.09, 388.1, 20.83, 375.06, 20.18, 348.97, 19.53, 341.8, 1.27, 329.41, 1.92, 407.01, 43.65, 475.48, 46.26, 461.14]], "area": 2936.1875499999987, "iscrowd": 0, "image_id": 510979, "bbox": [1.27, 329.41, 45.64, 146.07], "category_id": 62, "id": 1603541}, {"segmentation": [[160.4, 218.25, 158.26, 207.56, 153.99, 199.0, 149.71, 191.52, 147.57, 182.96, 147.57, 174.41, 147.57, 169.06, 151.85, 165.85, 162.54, 169.06, 175.37, 184.03, 180.72, 205.42, 190.34, 203.28, 204.25, 205.42, 204.25, 211.83, 199.97, 212.9, 192.48, 213.97, 176.44, 217.18, 170.03, 217.18, 162.54, 217.18, 161.47, 217.18]], "area": 1387.5337500000003, "iscrowd": 0, "image_id": 510979, "bbox": [147.57, 165.85, 56.68, 52.4], "category_id": 62, "id": 1603561}, {"segmentation": [[204.03, 173.31, 203.68, 161.05, 208.93, 154.75, 215.23, 152.3, 228.89, 155.45, 234.15, 165.25, 231.35, 166.31, 216.29, 169.11, 207.18, 174.36]], "area": 418.9397000000001, "iscrowd": 0, "image_id": 510979, "bbox": [203.68, 152.3, 30.47, 22.06], "category_id": 62, "id": 1603617}, {"segmentation": [[25.24, 145.76, 57.5, 156.51, 67.24, 157.19, 70.94, 162.23, 56.49, 178.36, 51.79, 203.89, 48.09, 210.95, 41.37, 219.35, 37.67, 229.09, 32.3, 239.85, 26.25, 246.9, 12.14, 260.68, 9.78, 284.54, 10.46, 299.66, 17.85, 325.53, 1.72, 324.86, 0.04, 253.62, 0.04, 189.78, 3.4, 140.72]], "area": 5902.5362000000005, "iscrowd": 0, "image_id": 75973, "bbox": [0.04, 140.72, 70.9, 184.81], "category_id": 63, "id": 1603986}, {"segmentation": [[4.39, 261.83, 43.14, 260.58, 33.55, 219.74, 33.55, 210.99, 1.47, 210.99, 0.0, 261.83]], "area": 1851.911149999999, "iscrowd": 0, "image_id": 110484, "bbox": [0.0, 210.99, 43.14, 50.84], "category_id": 63, "id": 1604416}, {"segmentation": [[183.12, 40.31, 191.39, 44.26, 195.72, 43.51, 201.36, 43.88, 207.38, 43.88, 211.14, 46.89, 215.65, 48.96, 219.79, 51.59, 222.42, 56.29, 217.53, 57.23, 217.53, 60.62, 218.47, 64.57, 217.16, 68.52, 215.47, 70.4, 210.58, 67.58, 210.01, 70.02, 207.0, 73.6, 209.26, 74.72, 214.52, 75.66, 216.41, 76.42, 216.41, 81.68, 213.96, 89.02, 212.46, 95.41, 211.89, 98.42, 191.39, 97.1, 191.02, 89.58, 195.72, 83.56, 195.72, 75.66, 194.78, 69.08, 193.65, 65.7, 195.16, 62.88, 188.39, 61.0, 183.68, 60.06, 177.85, 60.24, 176.16, 59.68, 173.15, 55.54, 173.9, 50.84, 176.73, 47.08, 181.62, 44.26, 183.87, 42.75, 182.18, 42.0]], "area": 1466.6988499999998, "iscrowd": 0, "image_id": 185591, "bbox": [173.15, 40.31, 49.27, 58.11], "category_id": 64, "id": 1606571}, {"segmentation": [[564.96, 337.1, 568.07, 331.54, 573.62, 327.99, 575.84, 326.88, 580.28, 325.55, 579.17, 324.66, 576.28, 318.22, 582.95, 317.77, 587.17, 320.66, 593.16, 318.22, 597.38, 317.11, 602.05, 318.66, 612.71, 326.44, 615.59, 330.66, 622.26, 331.1, 624.7, 334.21, 625.37, 340.43, 625.59, 343.76, 611.6, 345.31, 608.27, 345.54, 607.15, 332.21]], "area": 802.3923500000001, "iscrowd": 0, "image_id": 50885, "bbox": [564.96, 317.11, 60.63, 28.43], "category_id": 64, "id": 1606866}, {"segmentation": [[71.42, 187.37, 63.22, 187.37, 64.66, 189.06, 64.91, 193.64, 78.9, 193.4, 81.8, 192.19, 85.18, 192.43, 85.66, 188.81, 86.63, 187.61, 80.59, 186.88, 82.77, 182.3, 80.59, 183.26, 77.94, 182.06, 79.87, 175.78, 82.28, 167.09, 83.79, 167.55, 86.01, 166.44, 86.01, 162.56, 87.67, 160.34, 90.44, 159.23, 88.78, 155.91, 91.0, 152.58, 93.21, 148.7, 91.22, 147.68, 92.95, 142.07, 89.06, 142.93, 86.9, 145.52, 83.44, 146.82, 82.58, 147.25, 85.17, 150.28, 79.12, 158.92, 74.8, 155.46, 73.07, 155.89, 68.75, 150.71, 67.89, 152.44, 65.73, 158.49, 65.3, 150.71, 62.27, 150.71, 61.41, 152.0, 60.54, 149.41, 54.93, 152.0, 54.06, 152.44, 59.25, 154.16, 62.71, 155.89, 65.3, 158.92, 64.87, 162.81, 62.27, 162.81, 59.68, 160.65, 59.25, 161.08, 55.79, 163.24, 54.5, 163.67, 53.63, 166.69, 51.9, 168.42, 51.9, 168.42, 54.06, 174.47, 55.79, 171.88, 56.66, 165.4, 60.54, 164.97, 66.59, 167.56, 70.91, 172.31, 72.64, 180.52, 73.51, 183.11, 73.51, 184.41]], "area": 762.7913999999998, "iscrowd": 0, "image_id": 290153, "bbox": [51.9, 142.07, 41.31, 51.57], "category_id": 64, "id": 1606881}, {"segmentation": [[633.56, 468.9, 410.2, 468.9, 405.91, 444.21, 412.35, 428.1, 380.13, 346.49, 393.02, 305.68, 464.97, 274.54, 539.06, 278.84, 614.23, 279.91, 638.93, 284.21, 640.0, 284.21, 640.0, 451.72, 638.93, 468.9]], "area": 45524.23864999999, "iscrowd": 0, "image_id": 517261, "bbox": [380.13, 274.54, 259.87, 194.36], "category_id": 64, "id": 1606970}, {"segmentation": [[147.94, 235.64, 147.67, 232.06, 145.74, 226.27, 143.26, 220.76, 143.26, 217.46, 140.5, 215.25, 138.3, 215.8, 132.51, 213.87, 130.03, 212.77, 129.48, 212.77, 126.45, 211.12, 122.59, 198.72, 124.52, 192.38, 127.27, 191.55, 130.03, 191.55, 130.03, 191.55, 133.34, 188.52, 134.99, 185.77, 142.98, 180.25, 149.59, 182.46, 150.42, 188.52, 150.7, 196.79, 155.93, 201.47, 161.17, 202.3, 165.03, 200.65, 170.81, 203.13, 167.23, 209.19, 163.1, 214.15, 167.51, 217.73, 167.51, 219.66, 166.95, 220.49, 163.37, 225.17, 161.44, 228.75, 159.79, 233.71, 155.66, 230.68, 151.52, 233.16, 148.49, 234.82]], "area": 1327.4968999999996, "iscrowd": 0, "image_id": 551986, "bbox": [122.59, 180.25, 48.22, 55.39], "category_id": 64, "id": 1607520}, {"segmentation": [[154.23, 295.71, 152.71, 293.18, 151.69, 284.3, 147.38, 275.68, 154.23, 273.14, 151.19, 272.13, 148.65, 267.31, 144.85, 264.52, 147.13, 262.24, 149.67, 262.24, 152.2, 266.05, 153.72, 268.33, 152.2, 260.97, 148.91, 260.72, 145.61, 258.69, 145.86, 256.41, 147.13, 252.86, 147.64, 252.1, 143.83, 251.09, 140.54, 251.09, 138.0, 249.56, 137.75, 246.77, 138.76, 245.51, 141.81, 245.76, 142.06, 242.0, 144.09, 239.72, 143.07, 236.42, 143.07, 234.9, 145.61, 234.14, 143.33, 232.37, 142.57, 230.08, 142.82, 228.06, 144.85, 227.04, 150.17, 226.53, 146.88, 225.01, 144.09, 225.01, 142.06, 225.27, 135.72, 231.35, 136.73, 228.31, 139.78, 224.51, 143.07, 221.97, 147.89, 222.73, 149.16, 221.21, 147.38, 217.15, 146.62, 214.87, 148.4, 213.35, 150.17, 213.35, 154.23, 215.63, 153.47, 217.41, 153.72, 218.93, 155.75, 219.94, 157.27, 220.2, 160.57, 218.67, 163.86, 217.15, 166.15, 216.65, 167.67, 216.65, 168.18, 215.63, 172.49, 215.38, 172.23, 218.42, 176.8, 220.45, 177.56, 221.21, 172.23, 221.97, 171.73, 222.73, 170.96, 226.79, 168.94, 231.1, 168.94, 233.89, 171.47, 234.14, 171.98, 237.44, 173.5, 238.45, 172.74, 241.75, 173.75, 244.79, 176.8, 248.85, 177.3, 251.38, 175.02, 251.13, 176.04, 253.41, 176.29, 254.68, 172.23, 253.41, 169.95, 253.16, 168.43, 254.43, 166.91, 257.42, 166.65, 262.5, 170.46, 263.51, 170.96, 265.28, 170.46, 270.1, 175.53, 268.83, 177.81, 272.64, 177.56, 275.43, 171.98, 275.17, 168.43, 286.33, 166.91, 291.15, 167.16, 293.94]], "area": 1927.3163000000004, "iscrowd": 0, "image_id": 575530, "bbox": [135.72, 213.35, 42.09, 82.36], "category_id": 64, "id": 1607776}, {"segmentation": [[220.92, 212.69, 212.16, 210.78, 205.68, 212.3, 198.06, 229.45, 184.72, 240.5, 185.86, 248.51, 209.49, 259.56, 211.01, 264.13, 207.2, 265.27, 198.06, 267.56, 188.15, 265.27, 183.96, 263.75, 183.96, 261.46, 179.76, 213.83, 172.52, 207.73, 174.81, 195.54, 178.24, 194.39, 183.58, 194.77, 183.19, 201.63, 187.77, 198.97, 193.86, 193.25, 204.92, 195.54, 208.34, 191.35, 209.87, 176.86, 214.06, 181.44, 215.2, 187.15, 217.11, 194.39, 217.11, 197.82, 220.92, 203.16, 223.21, 205.06], [211.01, 165.05, 216.73, 119.32, 214.06, 64.45, 215.2, 57.97, 211.01, 55.68, 205.68, 54.92, 199.96, 50.73, 189.29, 37.01, 186.62, 32.82, 178.62, 35.87, 167.57, 40.06, 159.95, 43.87, 161.85, 18.34, 157.66, 8.81, 167.19, 4.62, 204.92, 0.43, 211.77, 1.19, 216.35, 3.86, 217.11, 6.91, 231.59, 0.05, 227.02, 18.72, 227.78, 120.09, 228.16, 122.37, 223.21, 149.43]], "area": 5779.192900000002, "iscrowd": 0, "image_id": 445214, "bbox": [157.66, 0.05, 73.93, 267.51], "category_id": 64, "id": 1607862}, {"segmentation": [[354.82, 215.34, 350.81, 215.91, 342.78, 215.91, 339.34, 212.47, 335.9, 206.73, 334.75, 200.43, 334.18, 190.1, 323.86, 199.85, 316.97, 201.0, 302.64, 200.43, 304.93, 182.08, 334.75, 164.3, 314.68, 152.83, 350.24, 147.09, 368.01, 135.62, 400.7, 135.05, 378.91, 147.67, 368.01, 150.53, 427.08, 163.72, 412.74, 183.8, 433.39, 215.91, 424.21, 228.53, 415.61, 235.98, 401.85, 259.49, 400.22, 285.26, 414.62, 299.66, 414.62, 309.25, 398.62, 317.25, 393.02, 333.25, 382.62, 352.45, 378.62, 376.44, 368.23, 370.04, 377.82, 323.65, 347.43, 348.45, 325.83, 322.85, 337.03, 277.26, 343.43, 246.07, 344.23, 223.67]], "area": 15773.258450000001, "iscrowd": 0, "image_id": 354761, "bbox": [302.64, 135.05, 130.75, 241.39], "category_id": 64, "id": 1609651}, {"segmentation": [[147.57, 287.44, 145.96, 308.95, 143.61, 309.82, 134.47, 311.05, 124.45, 309.69, 121.24, 305.24, 120.99, 290.78, 113.33, 285.47, 110.86, 280.27, 113.33, 279.04, 114.57, 276.69, 112.96, 275.33, 111.97, 274.22, 112.22, 268.9, 109.74, 270.02, 107.27, 271.99, 106.9, 272.86, 102.45, 271.5, 98.37, 273.11, 95.41, 270.88, 95.41, 269.4, 99.61, 267.91, 100.47, 266.92, 99.24, 263.34, 98.5, 260.25, 98.87, 259.26, 102.58, 259.26, 103.69, 263.96, 106.9, 264.08, 108.63, 263.46, 114.81, 264.82, 117.78, 264.82, 118.27, 263.83, 115.8, 260.62, 111.97, 259.26, 107.27, 260.0, 110.24, 257.78, 110.98, 257.28, 110.12, 254.56, 109.37, 250.73, 112.71, 249.25, 113.95, 254.69, 119.39, 259.51, 123.22, 267.54, 128.29, 266.92, 132.36, 263.09, 135.58, 264.45, 137.43, 265.32, 142.13, 263.59, 144.85, 267.79, 149.67, 272.61, 151.03, 275.33, 156.96, 280.27, 156.84, 282.87, 155.11, 285.71, 154.49, 288.06]], "area": 1653.7660000000005, "iscrowd": 0, "image_id": 354761, "bbox": [95.41, 249.25, 61.55, 61.8], "category_id": 64, "id": 1609682}, {"segmentation": [[3.16, 98.96, 0.68, 98.62, 1.5, 121.85, 6.65, 121.68, 3.5, 114.05, 4.16, 110.57, 4.99, 109.24, 5.15, 105.76, 5.32, 102.44, 5.15, 99.95, 2.33, 98.46]], "area": 86.41929999999999, "iscrowd": 0, "image_id": 445214, "bbox": [0.68, 98.46, 5.97, 23.39], "category_id": 64, "id": 1609868}, {"segmentation": [[588.57, 213.17, 612.99, 239.08, 600.41, 229.46, 568.58, 210.21, 542.68, 201.33, 530.09, 189.49, 528.61, 170.98, 525.65, 153.22, 539.71, 146.55, 554.52, 152.48, 551.56, 159.88, 539.71, 174.68, 536.75, 195.41, 547.12, 183.56, 554.52, 186.52, 552.3, 170.24, 560.44, 165.8, 565.62, 170.24, 578.95, 167.28, 586.35, 173.2, 592.27, 164.32, 598.19, 151.0, 601.89, 165.8, 595.97, 173.2, 606.33, 188.01, 613.73, 199.85, 615.22, 216.87, 615.22, 216.87]], "area": 3542.3099500000035, "iscrowd": 0, "image_id": 359098, "bbox": [525.65, 146.55, 89.57, 92.53], "category_id": 64, "id": 1610124}, {"segmentation": [[3.64, 92.01, 25.04, 92.71, 33.12, 81.84, 41.19, 63.94, 43.29, 56.57, 40.49, 54.11, 34.87, 50.95, 30.66, 38.32, 26.1, 26.39, 7.15, 21.13, 0.0, 21.13, 0.0, 79.03, 0.0, 92.01]], "area": 2344.40595, "iscrowd": 0, "image_id": 374023, "bbox": [0.0, 21.13, 43.29, 71.58], "category_id": 64, "id": 1610268}, {"segmentation": [[1.69, 148.31, 160.11, 139.04, 141.57, 169.38, 143.26, 178.65, 139.04, 193.82, 140.73, 207.3, 144.94, 214.04, 144.94, 219.1, 134.83, 243.54, 132.3, 266.29, 135.67, 280.62, 138.2, 305.06, 139.89, 311.8, 144.1, 321.91, 150.84, 327.81, 150.84, 332.87, 161.8, 341.29, 174.44, 352.25, 182.02, 352.25, 198.88, 353.93, 220.79, 358.15, 243.54, 358.99, 374.16, 313.48, 372.47, 302.53, 382.58, 285.67, 393.54, 272.19, 403.65, 267.13, 410.39, 261.24, 417.98, 241.01, 423.03, 219.1, 423.03, 201.4, 419.66, 176.12, 414.61, 155.9, 429.78, 133.99, 430.62, 117.98, 498.88, 108.71, 497.19, 369.94, 0.0, 370.79, 0.0, 146.63]], "area": 62707.6934, "iscrowd": 0, "image_id": 299854, "bbox": [0.0, 108.71, 498.88, 262.08], "category_id": 65, "id": 1611119}, {"segmentation": [[566.53, 454.92, 561.36, 449.75, 552.75, 440.28, 544.14, 434.26, 524.34, 422.2, 487.32, 393.79, 464.93, 384.32, 413.27, 369.68, 384.0, 361.07, 362.48, 360.21, 307.37, 364.52, 263.46, 368.82, 204.91, 368.82, 179.95, 370.54, 169.61, 377.43, 167.89, 397.23, 160.14, 405.84, 105.04, 415.31, 61.99, 418.76, 21.52, 424.78, 6.89, 428.23, 6.89, 449.75, 6.89, 453.2, 3.44, 468.7, 12.05, 471.28, 39.61, 473.0, 60.27, 471.28, 81.79, 469.56, 576.0, 473.86, 576.0, 473.86, 571.7, 463.53, 569.11, 458.36]], "area": 45500.57555000001, "iscrowd": 0, "image_id": 79196, "bbox": [3.44, 360.21, 572.56, 113.65], "category_id": 65, "id": 1612192}, {"segmentation": [[0.0, 104.49, 125.56, 91.85, 133.15, 121.35, 143.26, 117.13, 139.89, 82.58, 159.27, 67.42, 161.8, 118.82, 178.65, 116.29, 161.8, 14.33, 163.48, 11.8, 163.48, 0.84, 3.37, 0.0]], "area": 16352.38345, "iscrowd": 0, "image_id": 542041, "bbox": [0.0, 0.0, 178.65, 121.35], "category_id": 65, "id": 1612218}, {"segmentation": [[261.81, 530.52, 295.73, 640.0, 180.91, 640.0, 0.0, 640.0, 0.0, 495.94, 0.0, 338.71, 0.0, 251.29, 9.33, 249.99, 27.59, 266.3, 64.78, 287.17, 109.8, 280.65, 123.5, 270.21, 133.93, 238.9, 154.16, 204.97, 225.27, 231.07, 396.85, 283.26, 480.0, 311.31, 480.0, 402.0, 444.48, 403.95, 427.52, 412.44, 421.64, 416.35, 415.77, 423.53, 341.4, 448.97, 327.05, 447.01, 352.49, 433.31, 366.19, 424.18, 366.19, 415.7, 332.92, 353.07, 224.62, 289.13, 207.66, 289.13, 161.34, 301.53, 226.58, 359.59, 258.54, 381.12, 295.73, 446.36, 263.11, 460.06, 255.93, 471.8, 265.72, 508.99]], "area": 124681.89655000005, "iscrowd": 0, "image_id": 109776, "bbox": [0.0, 204.97, 480.0, 435.03], "category_id": 65, "id": 1612286}, {"segmentation": [[0.0, 0.0, 640.0, 0.0, 640.0, 419.05, 640.0, 429.0, 0.0, 429.0, 0.0, 275.38, 0.0, 91.52]], "area": 274560.0, "iscrowd": 0, "image_id": 231996, "bbox": [0.0, 0.0, 640.0, 429.0], "category_id": 67, "id": 1613031}, {"segmentation": [[575.11, 467.54, 575.11, 467.54, 575.11, 467.54, 574.05, 172.53, 504.82, 228.98, 488.85, 241.76, 486.72, 313.12, 421.75, 356.78, 372.76, 339.74, 336.55, 309.92, 323.77, 272.65, 323.77, 239.63, 340.81, 215.13, 292.88, 218.33, 318.44, 266.26, 323.77, 298.21, 321.64, 362.11, 283.3, 432.4, 230.04, 468.61], [85.2, 469.67, 25.56, 419.62, 0.0, 363.17, 1.07, 469.67], [349.33, 0.0, 575.11, 0.0, 576.0, 89.46, 560.2, 70.29, 519.73, 45.8, 483.52, 51.12, 439.85, 77.75, 426.01, 111.83, 426.01, 80.94, 407.9, 46.86, 407.9, 45.8, 391.93, 23.43], [397.25, 182.12, 416.42, 151.23, 426.01, 187.44, 390.86, 185.31], [164.01, 154.43, 188.51, 118.22, 203.42, 154.43, 186.38, 153.36], [1.07, 276.91, 1.07, 0.0, 260.93, 1.07, 209.81, 33.02, 195.96, 76.68, 190.64, 51.12, 183.18, 35.15, 159.75, 17.04, 119.28, 8.52, 77.75, 14.91, 34.08, 60.71, 42.6, 127.8, 69.23, 155.49, 68.16, 182.12, 59.64, 189.57, 42.6, 170.4, 27.69, 169.34, 25.56, 183.18, 41.54, 199.16, 22.37, 220.46, 23.43, 233.24]], "area": 81241.7278, "iscrowd": 0, "image_id": 572602, "bbox": [0.0, 0.0, 576.0, 469.67], "category_id": 67, "id": 1613096}, {"segmentation": [[332.25, 456.33, 337.44, 442.83, 350.94, 439.72, 368.59, 442.83, 410.12, 421.03, 436.08, 398.18, 465.15, 403.38, 532.64, 417.91, 537.83, 416.87, 537.83, 400.26, 550.29, 367.03, 555.48, 353.54, 538.87, 303.7, 523.3, 299.55, 523.3, 289.16, 509.8, 258.01, 509.8, 258.01, 466.19, 271.51, 446.46, 271.51, 441.27, 271.51, 427.77, 265.28, 419.47, 263.21, 426.74, 255.94, 455.81, 252.82, 485.92, 249.71, 498.38, 244.52, 494.23, 243.48, 494.23, 233.1, 475.54, 207.14, 469.31, 206.1, 458.92, 215.44, 452.69, 216.48, 448.54, 216.48, 438.16, 216.48, 437.12, 212.33, 425.7, 211.29, 424.66, 209.22, 436.08, 198.83, 450.62, 194.68, 456.85, 190.53, 456.85, 187.41, 444.39, 185.33, 443.35, 180.14, 446.46, 172.88, 445.43, 161.45, 428.81, 163.53, 416.35, 162.49, 415.32, 164.57, 411.16, 164.57, 404.93, 157.3, 395.59, 161.45, 392.47, 165.61, 390.4, 164.57, 385.2, 162.49, 380.01, 162.49, 369.63, 162.49, 361.32, 165.61, 355.09, 167.68, 354.06, 170.8, 339.52, 174.95, 327.06, 177.03, 327.06, 177.03, 321.87, 179.1, 321.87, 179.1, 320.83, 187.41, 320.83, 188.45, 315.64, 192.6, 307.33, 193.64, 302.14, 194.68, 296.95, 199.87, 299.03, 205.06, 301.1, 214.41, 290.72, 219.6, 279.3, 222.71, 268.92, 221.67, 262.69, 219.6, 249.19, 220.64, 249.19, 220.64, 239.84, 231.02, 259.57, 228.94, 269.95, 228.94, 272.03, 228.94, 277.22, 233.1, 277.22, 238.29, 268.92, 243.48, 260.61, 245.56, 249.19, 246.59, 223.23, 247.63, 210.77, 248.67, 207.66, 249.71, 207.66, 249.71, 208.7, 255.94, 203.5, 260.09, 192.08, 262.17, 180.66, 270.47, 153.67, 288.13, 149.51, 290.2, 156.78, 298.51, 174.43, 296.43, 177.55, 296.43, 183.78, 308.89, 177.55, 319.27, 176.51, 321.35, 165.09, 327.58, 152.63, 330.69, 148.48, 332.77, 139.13, 337.96, 118.36, 344.19, 118.36, 344.19, 140.17, 376.38, 152.63, 387.8, 157.82, 405.45, 169.24, 422.06, 173.39, 438.68, 179.62, 455.29]], "area": 82738.02135, "iscrowd": 0, "image_id": 480818, "bbox": [118.36, 157.3, 437.12, 299.03], "category_id": 67, "id": 1614373}, {"segmentation": [[20.11, 376.97, 0.0, 374.23, 0.02, 480.0, 324.25, 480.0, 314.21, 472.87, 308.73, 459.17, 323.34, 439.08, 346.17, 428.12, 357.13, 408.02, 337.95, 411.68, 295.03, 416.24, 274.93, 416.24, 262.15, 400.72, 246.62, 393.41, 247.53, 376.97, 248.45, 363.27, 258.49, 346.83, 274.02, 334.96, 289.55, 333.13, 296.85, 330.39, 295.94, 319.43, 287.72, 311.21, 273.11, 299.34, 251.19, 290.2, 239.31, 298.42, 240.23, 360.53, 218.31, 389.76, 176.29, 401.63, 151.63, 390.67, 139.76, 363.27, 131.54, 337.7, 131.54, 315.78, 126.97, 280.16, 120.58, 274.68, 111.44, 270.11, 86.78, 264.63, 73.08, 268.28, 82.22, 329.48, 73.08, 363.27, 43.86, 373.32]], "area": 38618.823200000006, "iscrowd": 0, "image_id": 67657, "bbox": [0.0, 264.63, 357.13, 215.37], "category_id": 67, "id": 1615400}, {"segmentation": [[530.62, 357.35, 556.98, 355.92, 557.8, 355.71, 557.8, 348.56, 557.39, 345.9, 557.18, 341.2, 556.78, 340.39, 556.16, 339.57, 553.91, 339.77, 549.21, 339.77, 539.81, 339.98, 530.82, 342.63, 528.37, 342.43], [608.28, 341.82, 608.48, 351.63, 610.73, 351.63, 620.54, 350.6, 624.83, 350.6, 625.24, 341.41, 622.99, 340.18]], "area": 622.7600000000003, "iscrowd": 0, "image_id": 50885, "bbox": [528.37, 339.57, 96.87, 17.78], "category_id": 67, "id": 1617400}, {"segmentation": [[386.03, 411.39, 264.42, 415.34, 187.82, 420.08, 177.56, 417.71, 177.56, 414.55, 178.35, 409.81, 200.46, 386.12, 204.41, 375.06, 209.93, 371.91, 239.94, 350.58, 243.1, 339.53, 244.68, 336.37, 301.54, 336.37, 334.7, 335.58, 347.34, 351.37]], "area": 12044.827649999992, "iscrowd": 0, "image_id": 286619, "bbox": [177.56, 335.58, 208.47, 84.5], "category_id": 67, "id": 1617652}, {"segmentation": [[113.65, 281.74, 63.03, 333.31, 96.46, 418.31, 595.0, 419.27, 637.02, 276.97, 631.29, 241.63, 581.63, 205.34, 573.99, 198.65, 579.72, 191.01, 387.75, 148.99, 355.28, 183.37, 283.65, 285.56, 251.18, 296.07, 220.62, 298.93, 200.56, 298.93, 157.58, 297.98, 131.8, 293.2, 114.61, 288.43]], "area": 102319.97285000002, "iscrowd": 0, "image_id": 241369, "bbox": [63.03, 148.99, 573.99, 270.28], "category_id": 67, "id": 1617655}, {"segmentation": [[556.51, 257.96, 556.2, 247.14, 573.83, 246.52, 599.81, 243.74, 602.29, 240.03, 579.71, 239.1, 534.86, 239.72, 532.39, 240.95, 536.41, 245.59, 541.36, 246.21, 552.18, 247.14, 553.42, 259.82, 553.73, 270.65, 550.64, 273.12, 546.31, 273.74, 546.93, 276.52, 561.15, 278.38, 562.39, 276.21, 556.2, 271.88, 555.89, 253.94]], "area": 578.3801000000019, "iscrowd": 0, "image_id": 531032, "bbox": [532.39, 239.1, 69.9, 39.28], "category_id": 67, "id": 1617933}, {"segmentation": [[252.92, 166.78, 252.92, 166.78, 280.87, 165.77, 316.44, 167.29, 324.56, 168.31, 326.6, 179.99, 326.6, 179.99, 332.19, 180.5, 332.19, 180.5, 333.71, 169.32, 343.87, 174.91, 340.32, 181.52, 316.44, 189.65, 309.32, 181.01, 300.68, 177.45, 293.57, 171.36, 284.42, 173.9, 285.44, 181.01, 277.82, 191.68, 242.76, 188.12, 234.63, 183.55, 209.73, 175.42, 230.56, 167.8, 248.86, 166.28]], "area": 2010.6061500000005, "iscrowd": 0, "image_id": 510979, "bbox": [209.73, 165.77, 134.14, 25.91], "category_id": 67, "id": 1618264}, {"segmentation": [[8.63, 381.51, 23.73, 427.9, 25.89, 447.31, 14.02, 469.96, 71.19, 473.2, 185.53, 472.12, 263.19, 472.12, 325.75, 471.04, 501.57, 473.2, 515.6, 473.2, 515.6, 454.86, 500.49, 434.37, 490.79, 402.01, 482.16, 389.06, 450.88, 389.06, 453.03, 410.64, 405.57, 436.52, 321.44, 448.39, 261.03, 437.6, 201.71, 410.64, 204.94, 385.83, 177.98, 378.28, 70.11, 380.43]], "area": 30328.36875000001, "iscrowd": 0, "image_id": 564237, "bbox": [8.63, 378.28, 506.97, 94.92], "category_id": 67, "id": 1618952}, {"segmentation": [[56.03, 140.73, 70.63, 139.6, 69.78, 115.74, 62.48, 109.85, 51.54, 110.13], [9.43, 112.94, 1.01, 114.06, 0.17, 123.88, 3.26, 143.25, 14.48, 142.13], [20.66, 110.97, 17.57, 107.32, 17.57, 100.87, 34.13, 100.87, 31.33, 108.73, 30.48, 111.53, 21.22, 113.22]], "area": 945.6842499999998, "iscrowd": 0, "image_id": 543882, "bbox": [0.17, 100.87, 70.46, 42.38], "category_id": 67, "id": 1619379}, {"segmentation": [[320.52, 54.57, 340.42, 58.33, 342.18, 57.44, 354.12, 55.9, 358.54, 55.9, 359.87, 55.01, 360.31, 53.91, 359.65, 53.02, 358.1, 51.48, 353.24, 50.59, 347.49, 49.49, 321.19, 52.8]], "area": 213.551, "iscrowd": 0, "image_id": 558286, "bbox": [320.52, 49.49, 39.79, 8.84], "category_id": 67, "id": 1619509}, {"segmentation": [[47.11, 209.2, 14.06, 89.76, 11.16, 84.54, 112.63, 19.02, 107.99, 3.37, 107.41, 0.47, 316.72, 0.47, 382.82, 13.23, 387.46, 145.42, 383.4, 131.51, 361.95, 121.65, 323.1, 112.37, 314.4, 106.0, 337.6, 77.01, 344.55, 69.47, 341.65, 60.77, 328.9, 57.29, 317.88, 59.61, 308.6, 65.99, 284.83, 90.34, 273.82, 96.72, 257.58, 96.14, 201.34, 88.6, 177.57, 93.24, 159.01, 108.32]], "area": 38827.81705, "iscrowd": 0, "image_id": 241369, "bbox": [11.16, 0.47, 376.3, 208.73], "category_id": 67, "id": 1619563}, {"segmentation": [[535.08, 66.34, 535.08, 58.9, 502.42, 57.66, 473.07, 53.94, 459.02, 55.18, 478.45, 69.64]], "area": 755.177200000001, "iscrowd": 0, "image_id": 558286, "bbox": [459.02, 53.94, 76.06, 15.7], "category_id": 67, "id": 1621185}, {"segmentation": [[1.14, 201.3, 7.72, 201.7, 15.1, 201.97, 19.67, 201.83, 25.71, 201.7, 27.99, 201.56, 30.0, 200.49, 32.95, 200.49, 36.04, 200.36, 40.61, 201.03, 42.75, 201.16, 47.05, 201.16, 52.95, 201.16, 56.18, 200.89, 58.46, 200.36, 63.56, 200.36, 63.96, 200.49, 63.96, 201.56, 62.35, 203.85, 59.67, 204.52, 53.76, 205.46, 47.18, 205.46, 32.95, 206.13, 29.87, 206.66, 28.26, 232.03, 32.28, 233.11, 36.98, 232.84, 37.65, 233.91, 34.3, 234.45, 22.89, 234.72, 19.26, 234.99, 19.4, 234.05, 22.08, 232.7, 24.36, 231.09, 24.9, 230.29, 24.9, 227.2, 23.69, 207.74, 0.0, 207.07]], "area": 474.49654999999984, "iscrowd": 0, "image_id": 347340, "bbox": [0.0, 200.36, 63.96, 34.63], "category_id": 67, "id": 1621553}, {"segmentation": [[298.93, 249.77, 342.65, 249.16, 343.41, 256.5, 312.38, 256.81, 281.51, 257.26, 283.19, 247.48]], "area": 462.57539999999983, "iscrowd": 0, "image_id": 531032, "bbox": [281.51, 247.48, 61.9, 9.78], "category_id": 67, "id": 1623088}, {"segmentation": [[106.01, 241.53, 133.8, 234.74, 156.74, 239.27, 147.69, 242.5, 149.96, 254.13, 146.73, 253.49, 146.73, 245.73, 139.62, 246.7, 140.59, 268.35, 123.46, 272.88, 123.46, 248.32, 112.79, 247.67, 111.83, 249.29]], "area": 830.83215, "iscrowd": 0, "image_id": 531032, "bbox": [106.01, 234.74, 50.73, 38.14], "category_id": 67, "id": 1623144}, {"segmentation": [[378.61, 289.67, 388.07, 271.65, 401.58, 247.78, 411.04, 227.51, 420.95, 210.85, 425.45, 202.74, 437.16, 189.68, 445.72, 184.73, 455.18, 186.53, 466.89, 197.79, 480.4, 245.98, 483.55, 280.66, 484.0, 300.93, 476.8, 339.66, 466.89, 351.37, 453.38, 355.87, 434.91, 356.32, 416.89, 354.97, 400.23, 342.36, 391.67, 328.85, 382.67, 312.64, 379.06, 305.43, 378.16, 297.32, 378.61, 295.52]], "area": 12936.193299999997, "iscrowd": 0, "image_id": 418193, "bbox": [378.16, 184.73, 105.84, 171.59], "category_id": 70, "id": 1624033}, {"segmentation": [[393.9, 264.88, 389.6, 204.61, 380.99, 178.78, 374.53, 162.64, 358.39, 166.94, 351.93, 183.09, 342.24, 203.53, 330.4, 225.06, 319.64, 246.58, 319.64, 262.73, 339.01, 289.63, 371.3, 296.09, 380.99, 295.01, 378.83, 289.63, 391.75, 262.73]], "area": 6673.109199999999, "iscrowd": 0, "image_id": 418193, "bbox": [319.64, 162.64, 74.26, 133.45], "category_id": 70, "id": 1624147}, {"segmentation": [[328.4, 164.31, 338.93, 209.23, 316.2, 248.04, 313.42, 255.8, 305.66, 254.69, 297.34, 248.6, 286.25, 236.95, 281.26, 230.3, 279.05, 225.31, 275.72, 215.88, 293.46, 200.35, 298.45, 189.82, 302.33, 179.28, 306.22, 170.41, 312.32, 159.88, 314.53, 151.01, 325.62, 151.01, 328.4, 160.99]], "area": 3580.1703999999995, "iscrowd": 0, "image_id": 418193, "bbox": [275.72, 151.01, 63.21, 104.79], "category_id": 70, "id": 1624168}, {"segmentation": [[121.4, 63.86, 198.51, 51.06, 202.26, 75.72, 199.14, 76.97, 197.57, 79.46, 197.26, 83.21, 196.95, 86.33, 193.83, 91.02, 194.14, 93.2, 185.71, 94.76, 181.34, 96.01, 177.59, 97.26, 178.22, 93.82, 174.79, 90.7, 171.04, 91.02, 169.48, 93.51, 169.79, 95.39, 171.04, 96.95, 143.26, 104.44, 142.01, 103.19, 143.26, 98.2, 143.26, 95.7, 140.45, 93.51, 138.89, 93.2, 137.01, 93.82, 134.2, 96.01, 131.08, 96.01, 128.27, 97.26]], "area": 2934.772049999999, "iscrowd": 0, "image_id": 20251, "bbox": [121.4, 51.06, 80.86, 53.38], "category_id": 72, "id": 1625083}, {"segmentation": [[286.52, 60.04, 500.0, 81.11, 500.0, 3.58, 288.2, 1.9]], "area": 14433.9894, "iscrowd": 0, "image_id": 335940, "bbox": [286.52, 1.9, 213.48, 79.21], "category_id": 72, "id": 1625153}, {"segmentation": [[272.69, 88.36, 269.93, 127.57, 330.48, 131.01, 329.1, 81.48, 285.07, 82.17, 278.19, 82.17, 288.51, 112.44, 289.89, 117.25, 282.32, 106.93, 274.06, 90.42]], "area": 2592.4562500000006, "iscrowd": 0, "image_id": 577869, "bbox": [269.93, 81.48, 60.55, 49.53], "category_id": 72, "id": 1625287}, {"segmentation": [[270.82, 139.39, 304.85, 144.46, 305.57, 173.18, 295.92, 171.73, 292.54, 159.66, 284.09, 154.35]], "area": 555.8388500000002, "iscrowd": 0, "image_id": 176587, "bbox": [270.82, 139.39, 34.75, 33.79], "category_id": 72, "id": 1625298}, {"segmentation": [[33.04, 243.84, 80.01, 267.62, 75.37, 305.89, 70.16, 305.31, 72.48, 288.49, 69.58, 278.06, 66.1, 275.16, 65.52, 267.62, 64.94, 264.14, 61.46, 261.82, 53.34, 260.08, 53.34, 271.68, 55.08, 277.48, 48.7, 279.22, 44.06, 296.61, 40.0, 293.71, 28.98, 287.33, 26.09, 277.48]], "area": 1390.5472499999998, "iscrowd": 0, "image_id": 317153, "bbox": [26.09, 243.84, 53.92, 62.05], "category_id": 72, "id": 1625463}, {"segmentation": [[509.09, 20.16, 505.76, 42.52, 466.37, 47.61, 469.58, 5.98, 509.88, 18.83]], "area": 1308.9401499999997, "iscrowd": 0, "image_id": 20251, "bbox": [466.37, 5.98, 43.51, 41.63], "category_id": 72, "id": 1625494}, {"segmentation": [[61.04, 86.85, 88.87, 86.02, 87.77, 128.73, 58.56, 128.73, 60.21, 90.71]], "area": 1218.10435, "iscrowd": 0, "image_id": 577869, "bbox": [58.56, 86.02, 30.31, 42.71], "category_id": 72, "id": 1625550}, {"segmentation": [[260.75, 349.95, 277.13, 298.02, 281.81, 294.27, 279.47, 265.73, 281.34, 239.06, 286.02, 237.66, 300.53, 250.76, 310.82, 337.32, 308.01, 338.72, 303.8, 343.4, 298.65, 340.6, 289.76, 325.62, 283.68, 301.76, 272.45, 342.93, 269.18, 351.36, 280.41, 349.95, 291.17, 349.95, 291.17, 363.05, 274.32, 363.99, 264.5, 362.59, 263.56, 360.25, 261.69, 357.44]], "area": 2909.135750000001, "iscrowd": 0, "image_id": 363326, "bbox": [260.75, 237.66, 50.07, 126.33], "category_id": 72, "id": 1626053}, {"segmentation": [[175.3, 353.3, 128.9, 342.22, 127.86, 333.56, 168.37, 314.52, 215.46, 331.14, 214.42, 336.68, 180.84, 352.96]], "area": 2041.2067000000018, "iscrowd": 0, "image_id": 169686, "bbox": [127.86, 314.52, 87.6, 38.78], "category_id": 73, "id": 1626647}, {"segmentation": [[286.72, 281.67, 281.54, 274.18, 287.3, 271.3, 313.22, 264.97, 310.91, 270.15, 301.12, 272.46]], "area": 182.48544999999922, "iscrowd": 0, "image_id": 264244, "bbox": [281.54, 264.97, 31.68, 16.7], "category_id": 73, "id": 1627621}, {"segmentation": [[379.16, 262.79, 415.48, 258.89, 407.68, 286.51, 373.46, 291.01, 353.65, 282.6]], "area": 1259.8759999999995, "iscrowd": 0, "image_id": 418505, "bbox": [353.65, 258.89, 61.83, 32.12], "category_id": 73, "id": 1627624}, {"segmentation": [[232.26, 238.46, 318.41, 237.97, 314.13, 211.57, 311.66, 165.12, 231.91, 165.04, 233.87, 215.58, 229.73, 232.69]], "area": 5970.957950000001, "iscrowd": 0, "image_id": 118550, "bbox": [229.73, 165.04, 88.68, 73.42], "category_id": 73, "id": 1628238}, {"segmentation": [[290.04, 214.64, 308.63, 219.73, 314.6, 220.84, 329.43, 217.96, 327.88, 213.32, 314.38, 204.68, 309.74, 204.02, 301.55, 202.91, 299.55, 204.68, 293.58, 206.01, 289.59, 212.21, 289.82, 213.76]], "area": 464.2302499999999, "iscrowd": 0, "image_id": 529350, "bbox": [289.59, 202.91, 39.84, 17.93], "category_id": 74, "id": 1629065}, {"segmentation": [[70.36, 235.52, 78.64, 226.9, 88.12, 226.9, 88.99, 232.08, 80.88, 242.25, 78.47, 243.8, 76.4, 243.8, 71.4, 242.25]], "area": 212.24269999999993, "iscrowd": 0, "image_id": 405121, "bbox": [70.36, 226.9, 18.63, 16.9], "category_id": 75, "id": 1630511}, {"segmentation": [[351.68, 217.45, 387.57, 215.84, 387.57, 222.81, 381.14, 222.81, 375.25, 223.88, 374.17, 229.77, 352.21, 229.77, 352.21, 218.52]], "area": 379.0335500000007, "iscrowd": 0, "image_id": 207463, "bbox": [351.68, 215.84, 35.89, 13.93], "category_id": 75, "id": 1630822}, {"segmentation": [[477.0, 182.76, 488.58, 182.76, 489.95, 180.72, 483.13, 146.64, 468.13, 147.32, 467.96, 151.75, 474.78, 184.12, 477.0, 183.61]], "area": 572.4230500000007, "iscrowd": 0, "image_id": 319917, "bbox": [467.96, 146.64, 21.99, 37.48], "category_id": 75, "id": 1631205}, {"segmentation": [[502.53, 242.11, 495.05, 239.46, 495.05, 238.01, 493.84, 235.12, 497.22, 233.67, 500.6, 231.5]], "area": 51.889400000000045, "iscrowd": 0, "image_id": 50885, "bbox": [493.84, 231.5, 8.69, 10.61], "category_id": 75, "id": 1632060}, {"segmentation": [[198.66, 475.4, 180.43, 469.22, 175.48, 463.35, 190.63, 452.22, 201.75, 454.07]], "area": 379.9380499999997, "iscrowd": 0, "image_id": 359098, "bbox": [175.48, 452.22, 26.27, 23.18], "category_id": 75, "id": 1632070}, {"segmentation": [[284.13, 331.29, 278.73, 323.34, 279.81, 321.58, 290.73, 324.42, 291.27, 330.21, 289.65, 332.78]], "area": 85.18919999999989, "iscrowd": 0, "image_id": 256465, "bbox": [278.73, 321.58, 12.54, 11.2], "category_id": 75, "id": 1633766}, {"segmentation": [[210.19, 195.44, 210.0, 199.58, 213.2, 202.77, 207.37, 206.72, 203.99, 208.79, 202.1, 208.79, 201.73, 206.72, 203.61, 207.29, 205.68, 206.35, 206.81, 204.28, 204.93, 202.77, 203.99, 201.27, 203.05, 201.27, 203.61, 199.58, 202.48, 197.51, 205.11, 195.06, 206.05, 196.0, 206.99, 195.63, 208.12, 194.12, 208.69, 193.94, 210.0, 195.44, 210.0, 195.44]], "area": 78.59209999999995, "iscrowd": 0, "image_id": 256465, "bbox": [201.73, 193.94, 11.47, 14.85], "category_id": 75, "id": 1633789}, {"segmentation": [[358.18, 363.8, 408.54, 359.76, 404.77, 367.57, 358.18, 368.11, 355.76, 363.26]], "area": 294.65695000000005, "iscrowd": 0, "image_id": 50885, "bbox": [355.76, 359.76, 52.78, 8.35], "category_id": 76, "id": 1634507}, {"segmentation": [[230.58, 254.26, 223.79, 240.89, 224.85, 239.4, 226.97, 240.04, 250.11, 257.87, 246.72, 260.21, 239.92, 250.65, 234.83, 246.83, 230.58, 246.83, 230.37, 253.62]], "area": 86.85900000000021, "iscrowd": 0, "image_id": 91307, "bbox": [223.79, 239.4, 26.32, 20.81], "category_id": 77, "id": 1635495}, {"segmentation": [[619.69, 285.0, 616.34, 281.65, 617.28, 280.71, 618.01, 281.36, 619.1, 282.82, 619.61, 284.13, 619.76, 285.08]], "area": 4.8856999999998605, "iscrowd": 0, "image_id": 450281, "bbox": [616.34, 280.71, 3.42, 4.37], "category_id": 77, "id": 1635818}, {"segmentation": [[227.9, 192.46, 227.75, 198.33, 231.28, 198.63, 232.6, 199.8, 232.89, 200.39, 248.02, 200.54, 248.17, 198.78, 249.34, 197.16, 249.78, 195.54, 249.49, 188.79, 231.72, 189.23, 229.08, 190.85, 228.49, 191.73]], "area": 230.98155000000006, "iscrowd": 0, "image_id": 130624, "bbox": [227.75, 188.79, 22.03, 11.75], "category_id": 77, "id": 1635944}, {"segmentation": [[458.63, 135.41, 449.49, 102.75, 449.27, 99.49, 450.58, 97.31, 453.84, 96.88, 474.09, 95.35, 476.49, 95.79, 477.79, 98.18, 486.07, 128.23, 484.98, 133.02, 485.2, 133.23, 485.2, 135.19, 461.9, 137.15, 460.16, 136.5]], "area": 1158.0306500000002, "iscrowd": 0, "image_id": 319917, "bbox": [449.27, 95.35, 36.8, 41.8], "category_id": 77, "id": 1636875}, {"segmentation": [[404.03, 306.11, 407.75, 314.48, 419.83, 316.02, 429.74, 318.19, 430.67, 331.2, 439.66, 331.51, 437.18, 321.6, 446.16, 319.74, 431.29, 300.23, 412.09, 309.52, 407.75, 304.56, 404.65, 304.25]], "area": 527.1383000000004, "iscrowd": 0, "image_id": 115055, "bbox": [404.03, 300.23, 42.13, 31.28], "category_id": 77, "id": 1636928}, {"segmentation": [[598.27, 27.34, 575.89, 13.92, 577.38, 0.0, 592.3, 5.71, 601.26, 16.9, 602.75, 19.14, 602.75, 22.12]], "area": 391.3801999999998, "iscrowd": 0, "image_id": 332065, "bbox": [575.89, 0.0, 26.86, 27.34], "category_id": 77, "id": 1637090}, {"segmentation": [[290.4, 105.13, 290.19, 104.45, 301.97, 93.4, 303.71, 94.61, 302.5, 96.27, 300.78, 96.27, 297.27, 99.33, 297.15, 99.84, 298.74, 102.0, 297.95, 103.49, 297.22, 102.7, 295.74, 102.68, 294.34, 103.02]], "area": 31.387499999999616, "iscrowd": 0, "image_id": 161289, "bbox": [290.19, 93.4, 13.52, 11.73], "category_id": 77, "id": 1637571}, {"segmentation": [[347.47, 612.0, 358.17, 591.72, 366.53, 580.35, 368.54, 577.68, 373.22, 575.67, 388.6, 570.99, 402.65, 566.64, 413.68, 563.3, 422.04, 562.96, 426.39, 561.96, 429.74, 565.64, 431.74, 570.66, 410.01, 612.0]], "area": 2701.4840999999997, "iscrowd": 0, "image_id": 9025, "bbox": [347.47, 561.96, 84.27, 50.04], "category_id": 77, "id": 1638111}, {"segmentation": [[108.88, 139.78, 108.64, 137.12, 114.21, 141.71, 116.39, 144.38, 116.39, 145.59, 110.09, 142.44, 111.3, 140.5], [114.69, 149.22, 120.5, 156.48, 120.02, 158.17, 116.14, 156.96, 108.64, 150.67, 112.27, 149.46]], "area": 66.38639999999995, "iscrowd": 0, "image_id": 294416, "bbox": [108.64, 137.12, 11.86, 21.05], "category_id": 77, "id": 1638831}, {"segmentation": [[455.73, 389.12, 459.86, 386.92, 473.88, 387.75, 474.43, 392.15, 468.38, 399.57, 455.18, 403.14], [411.75, 390.5, 411.75, 390.5, 411.2, 403.42, 406.8, 400.95, 397.73, 402.87, 395.25, 396.55, 407.62, 392.7]], "area": 353.26294999999936, "iscrowd": 0, "image_id": 286116, "bbox": [395.25, 386.92, 79.18, 16.5], "category_id": 77, "id": 1639726}, {"segmentation": [[110.21, 114.73, 127.82, 115.58, 127.82, 144.84, 110.77, 146.54]], "area": 529.2905499999999, "iscrowd": 0, "image_id": 401182, "bbox": [110.21, 114.73, 17.61, 31.81], "category_id": 78, "id": 1641058}, {"segmentation": [[109.88, 177.03, 110.55, 187.8, 111.9, 189.15, 147.24, 188.14, 149.26, 191.17, 214.23, 185.45, 215.91, 184.77, 216.59, 183.09, 226.01, 182.75, 225.34, 140.34, 224.33, 138.99, 222.98, 138.32, 224.33, 134.28, 222.98, 133.27, 224.67, 130.24, 222.98, 129.9, 149.6, 124.18, 151.62, 174.67, 151.95, 175.01]], "area": 5022.09545, "iscrowd": 0, "image_id": 135149, "bbox": [109.88, 124.18, 116.13, 66.99], "category_id": 78, "id": 1641218}, {"segmentation": [[112.19, 240.86, 111.21, 219.38, 110.65, 200.53, 145.03, 197.2, 194.38, 192.21, 198.81, 216.05, 197.71, 219.94, 198.26, 228.25, 257.59, 232.69, 261.47, 342.48, 250.38, 353.01, 191.61, 386.84, 177.19, 384.62, 176.64, 382.4, 181.63, 380.18, 175.53, 253.76, 181.63, 252.65, 183.29, 246.0]], "area": 15070.517700000002, "iscrowd": 0, "image_id": 135149, "bbox": [110.65, 192.21, 150.82, 194.63], "category_id": 79, "id": 1641525}, {"segmentation": [[37.85, 416.47, 86.98, 433.31, 197.88, 373.89, 100.55, 352.83, 97.74, 350.49, 38.32, 372.95, 36.92, 372.02]], "area": 7631.858750000001, "iscrowd": 0, "image_id": 212181, "bbox": [36.92, 350.49, 160.96, 82.82], "category_id": 79, "id": 1641534}, {"segmentation": [[569.97, 259.08, 555.58, 235.09, 544.07, 332.0, 555.58, 362.71]], "area": 1652.6789999999983, "iscrowd": 0, "image_id": 551986, "bbox": [544.07, 235.09, 25.9, 127.62], "category_id": 79, "id": 1641614}, {"segmentation": [[481.02, 184.69, 432.12, 182.7, 433.31, 129.43, 459.15, 127.04, 486.98, 129.83, 486.98, 142.95, 482.61, 144.93]], "area": 2800.095399999999, "iscrowd": 0, "image_id": 408672, "bbox": [432.12, 127.04, 54.86, 57.65], "category_id": 79, "id": 1641842}, {"segmentation": [[342.13, 342.69, 353.69, 343.27, 367.56, 343.85, 371.61, 337.49, 380.86, 336.91, 388.37, 330.55, 391.26, 324.77, 391.26, 318.99, 484.9, 326.51, 507.45, 366.39, 587.22, 375.06, 600.51, 393.56, 534.04, 455.41, 507.45, 479.69, 409.18, 480.0, 338.66, 480.0, 336.93, 443.85, 337.5, 403.39, 336.93, 379.69, 336.35, 372.17, 339.24, 357.72, 339.82, 353.1]], "area": 31188.99849999999, "iscrowd": 0, "image_id": 185591, "bbox": [336.35, 318.99, 264.16, 161.01], "category_id": 79, "id": 1642212}, {"segmentation": [[145.2, 266.29, 119.71, 269.2, 119.71, 269.2, 110.67, 274.04, 116.81, 297.59, 116.81, 297.59, 122.94, 303.4, 141.97, 305.01, 143.91, 312.76, 157.14, 312.11, 157.14, 305.98, 177.79, 298.56, 185.53, 275.97, 181.66, 271.13, 153.27, 266.62, 153.27, 272.1, 147.78, 272.1]], "area": 2423.401449999999, "iscrowd": 0, "image_id": 96461, "bbox": [110.67, 266.29, 74.86, 46.47], "category_id": 81, "id": 1643347}, {"segmentation": [[140.68, 198.04, 147.3, 198.45, 150.27, 198.04, 152.97, 198.04, 153.65, 198.04, 153.92, 194.26, 153.38, 194.12, 147.7, 193.85, 144.19, 193.85, 140.54, 194.39, 140.54, 198.31]], "area": 55.60084999999995, "iscrowd": 0, "image_id": 53361, "bbox": [140.54, 193.85, 13.38, 4.6], "category_id": 81, "id": 1643352}, {"segmentation": [[88.88, 366.22, 113.95, 321.02, 104.99, 317.89, 100.52, 298.65, 83.96, 299.54, 85.75, 333.1]], "area": 1081.9051000000006, "iscrowd": 0, "image_id": 91837, "bbox": [83.96, 298.65, 29.99, 67.57], "category_id": 81, "id": 1643354}, {"segmentation": [[256.71, 502.98, 261.77, 498.29, 267.02, 494.73, 278.63, 486.3, 293.25, 482.74, 312.17, 489.11, 317.79, 491.74, 317.79, 498.48, 310.48, 505.6, 302.24, 510.1, 280.13, 511.03, 261.96, 510.47, 254.46, 506.54]], "area": 1233.2519000000007, "iscrowd": 0, "image_id": 303178, "bbox": [254.46, 482.74, 63.33, 28.29], "category_id": 81, "id": 1643404}, {"segmentation": [[426.98, 215.07, 423.68, 218.64, 363.46, 213.14, 374.46, 207.09, 378.59, 210.67, 382.16, 209.57, 387.11, 208.74, 392.61, 209.29, 396.18, 210.67, 409.65, 211.49, 410.75, 209.29, 428.63, 212.04]], "area": 368.9200999999997, "iscrowd": 0, "image_id": 551986, "bbox": [363.46, 207.09, 65.17, 11.55], "category_id": 81, "id": 1644132}, {"segmentation": [[397.46, 590.0, 596.87, 596.87, 598.25, 319.07, 345.2, 279.18, 386.45, 341.07, 455.22, 369.95, 459.34, 400.21, 504.73, 523.98, 486.85, 541.86, 419.46, 551.49, 400.21, 550.11], [386.45, 397.46, 364.45, 451.09, 347.95, 451.09, 349.32, 468.97, 369.95, 479.97, 405.71, 477.22, 424.96, 488.22, 438.71, 488.22, 441.47, 488.22, 444.22, 457.97, 429.09, 424.96, 413.96, 405.71, 405.71, 400.21, 397.46, 397.46, 391.96, 393.33], [22.0, 327.32, 108.65, 273.68, 103.15, 236.55, 292.93, 270.93, 287.43, 280.56, 239.3, 295.69, 213.17, 320.44, 196.67, 358.95, 202.17, 430.46, 235.17, 466.22, 173.29, 471.72, 185.66, 442.84, 185.66, 405.71, 181.54, 390.58, 152.66, 342.44, 149.91, 339.69, 99.02, 332.82, 68.76, 343.82, 55.01, 350.7, 52.26, 342.44, 35.76, 321.82]], "area": 68849.07165, "iscrowd": 0, "image_id": 434047, "bbox": [22.0, 236.55, 576.25, 360.32], "category_id": 81, "id": 1644553}, {"segmentation": [[292.69, 303.26, 245.43, 307.96, 256.4, 315.01, 276.5, 318.15, 281.73, 319.97, 287.47, 322.85, 287.47, 325.72, 284.86, 331.2, 311.23, 328.59, 297.92, 321.54, 296.09, 305.35, 291.91, 303.79]], "area": 756.1749999999997, "iscrowd": 0, "image_id": 16125, "bbox": [245.43, 303.26, 65.8, 27.94], "category_id": 81, "id": 1644757}, {"segmentation": [[410.74, 334.67, 446.14, 332.12, 457.35, 330.98, 463.21, 334.93, 468.94, 343.46, 416.73, 349.19, 406.54, 349.57, 397.12, 345.11, 393.93, 338.75, 401.7, 334.54]], "area": 950.3869499999987, "iscrowd": 0, "image_id": 260871, "bbox": [393.93, 330.98, 75.01, 18.59], "category_id": 81, "id": 1644759}, {"segmentation": [[429.4, 269.36, 457.15, 267.43, 478.29, 272.34, 449.68, 275.33]], "area": 204.24579999999943, "iscrowd": 0, "image_id": 16125, "bbox": [429.4, 267.43, 48.89, 7.9], "category_id": 81, "id": 1644958}, {"segmentation": [[9.71, 333.3, 58.25, 332.22, 145.62, 352.72, 214.65, 367.82, 257.8, 405.57, 242.7, 455.19, 242.7, 473.53, 5.39, 474.61, 2.16, 334.38]], "area": 30157.214899999988, "iscrowd": 0, "image_id": 260118, "bbox": [2.16, 332.22, 255.64, 142.39], "category_id": 81, "id": 1645059}, {"segmentation": [[395.88, 209.56, 371.59, 208.53, 365.39, 209.22, 348.85, 213.87, 417.07, 215.76, 436.37, 215.59, 439.64, 211.11]], "area": 438.9193499999993, "iscrowd": 0, "image_id": 135149, "bbox": [348.85, 208.53, 90.79, 7.23], "category_id": 81, "id": 1645743}, {"segmentation": [[429.92, 289.3, 443.35, 258.2, 438.4, 256.08, 429.92, 252.54, 431.33, 241.94, 478.7, 241.23, 543.74, 259.61, 575.56, 281.53, 575.56, 298.5, 562.83, 312.63], [374.07, 282.23, 369.83, 244.77, 412.95, 241.94, 420.02, 241.94, 408.0, 261.03, 405.17, 282.94]], "area": 8448.903199999999, "iscrowd": 0, "image_id": 434047, "bbox": [369.83, 241.23, 205.73, 71.4], "category_id": 81, "id": 1645751}, {"segmentation": [[134.58, 286.99, 135.51, 281.22, 191.8, 280.76, 191.57, 287.45, 134.35, 287.91]], "area": 379.13549999999987, "iscrowd": 0, "image_id": 373189, "bbox": [134.35, 280.76, 57.45, 7.15], "category_id": 81, "id": 1645926}, {"segmentation": [[319.91, 374.94, 306.76, 364.51, 322.07, 361.9, 321.62, 364.17]], "area": 96.52000000000027, "iscrowd": 0, "image_id": 431014, "bbox": [306.76, 361.9, 15.31, 13.04], "category_id": 81, "id": 1646189}, {"segmentation": [[307.05, 375.0, 313.25, 359.15, 314.03, 345.2, 292.32, 348.3, 275.26, 345.97, 261.3, 339.77, 261.3, 335.89, 255.1, 334.34, 247.34, 327.36, 247.34, 324.26, 255.1, 318.83, 258.97, 318.06, 251.22, 313.4, 251.22, 307.98, 253.54, 303.32, 251.22, 307.2, 170.57, 291.69, 174.45, 287.81, 193.06, 276.18, 200.04, 263.78, 200.04, 259.9, 205.47, 252.92, 207.79, 249.82, 208.57, 242.06, 211.67, 235.86, 227.96, 225.78, 233.38, 219.58, 228.73, 216.47, 178.33, 209.5, 176.0, 223.45, 173.67, 225.78, 159.72, 235.86, 143.43, 234.31, 142.66, 238.19, 134.9, 240.51, 124.05, 240.51, 120.94, 238.19, 120.94, 242.84, 125.6, 249.82, 119.39, 255.25, 127.15, 259.9, 129.47, 273.08, 126.37, 280.06, 120.94, 280.84, 116.29, 285.49, 110.86, 289.37, 106.99, 292.47, 98.46, 306.43, 93.8, 303.32, 89.15, 297.12, 82.95, 293.24, 82.17, 281.61, 51.16, 304.1, 43.4, 309.53, 32.54, 307.98, 30.99, 325.81, 23.24, 345.97, 10.83, 355.28, 3.08, 362.26, 0.75, 362.26, 0.0, 375.0, 101.56, 373.89, 127.92, 360.71, 169.02, 355.28, 199.26, 356.05, 233.38, 366.91, 239.59, 375.0], [328.76, 312.63, 337.29, 291.69, 323.33, 296.34, 314.03, 297.12, 310.15, 297.9, 316.36, 305.65, 321.78, 316.51, 324.11, 321.16, 327.21, 319.61, 327.21, 316.51]], "area": 23396.28325, "iscrowd": 0, "image_id": 96177, "bbox": [0.0, 209.5, 337.29, 165.5], "category_id": 81, "id": 1646484}, {"segmentation": [[365.34, 128.57, 399.36, 131.86, 440.34, 131.86, 436.31, 198.44, 414.73, 200.27, 414.36, 209.42, 389.49, 201.74, 383.27, 176.5, 374.12, 171.74, 368.64, 168.45, 367.9, 162.59, 370.83, 159.67, 373.03, 157.47, 371.2, 145.77, 369.73, 137.35, 366.07, 133.69, 364.25, 131.5, 364.61, 127.47]], "area": 4408.64515, "iscrowd": 0, "image_id": 280765, "bbox": [364.25, 127.47, 76.09, 81.95], "category_id": 82, "id": 1646697}, {"segmentation": [[303.13, 299.76, 358.02, 352.95, 356.74, 433.37, 308.23, 435.0, 302.28, 419.75, 302.7, 299.34]], "area": 5914.999050000003, "iscrowd": 0, "image_id": 260871, "bbox": [302.28, 299.34, 55.74, 135.66], "category_id": 82, "id": 1647097}, {"segmentation": [[266.99, 257.23, 267.17, 261.27, 278.95, 261.82, 278.58, 257.78, 278.21, 256.86]], "area": 52.28579999999957, "iscrowd": 0, "image_id": 83968, "bbox": [266.99, 256.86, 11.96, 4.96], "category_id": 84, "id": 1648468}, {"segmentation": [[395.66, 145.6, 395.14, 170.86, 393.07, 170.86, 392.89, 144.73, 396.18, 145.08, 396.01, 146.81]], "area": 63.607850000000425, "iscrowd": 0, "image_id": 130949, "bbox": [392.89, 144.73, 3.29, 26.13], "category_id": 84, "id": 1648834}, {"segmentation": [[198.12, 9.88, 197.53, 81.95, 267.82, 76.05, 264.87, 3.39]], "area": 4965.7599, "iscrowd": 0, "image_id": 319917, "bbox": [197.53, 3.39, 70.29, 78.56], "category_id": 84, "id": 1648932}, {"segmentation": [[195.17, 125.94, 196.09, 54.59, 121.53, 62.42, 116.92, 134.22, 125.21, 134.68, 193.79, 127.32]], "area": 5540.9757, "iscrowd": 0, "image_id": 319917, "bbox": [116.92, 54.59, 79.17, 80.09], "category_id": 84, "id": 1649457}, {"segmentation": [[463.83, 353.44, 474.07, 353.36, 473.64, 360.05, 471.79, 360.54, 463.41, 359.48]], "area": 68.28350000000003, "iscrowd": 0, "image_id": 354277, "bbox": [463.41, 353.36, 10.66, 7.18], "category_id": 84, "id": 1649651}, {"segmentation": [[127.91, 60.45, 133.34, 14.85, 198.12, 11.24, 197.39, 56.11, 127.91, 61.9]], "area": 3074.75555, "iscrowd": 0, "image_id": 319917, "bbox": [127.91, 11.24, 70.21, 50.66], "category_id": 84, "id": 1649871}, {"segmentation": [[473.71, 275.46, 473.0, 248.29, 472.29, 246.88, 475.82, 246.88, 476.88, 275.81]], "area": 86.96745000000007, "iscrowd": 0, "image_id": 459794, "bbox": [472.29, 246.88, 4.59, 28.93], "category_id": 84, "id": 1649934}, {"segmentation": [[150.77, 458.01, 152.04, 453.56, 160.33, 450.37, 175.61, 450.37, 177.73, 452.49, 165.85, 459.08]], "area": 165.26239999999962, "iscrowd": 0, "image_id": 371714, "bbox": [150.77, 450.37, 26.96, 8.71], "category_id": 84, "id": 1650156}, {"segmentation": [[453.58, 288.89, 467.04, 291.17, 475.0, 292.11, 507.6, 292.68, 509.68, 294.01, 509.49, 298.18, 459.65, 297.23, 444.49, 291.55, 445.43, 288.51, 452.82, 288.51]], "area": 365.20575000000053, "iscrowd": 0, "image_id": 233439, "bbox": [444.49, 288.51, 65.19, 9.67], "category_id": 84, "id": 1651080}, {"segmentation": [[310.65, 463.82, 427.15, 333.3, 586.79, 393.71, 559.82, 474.61]], "area": 24161.418550000002, "iscrowd": 0, "image_id": 67657, "bbox": [310.65, 333.3, 276.14, 141.31], "category_id": 84, "id": 1651214}, {"segmentation": [[365.28, 293.91, 365.49, 292.4, 376.93, 296.07, 406.26, 292.83, 407.55, 298.01, 376.28, 301.46, 362.69, 296.28, 363.12, 293.48]], "area": 228.2558999999998, "iscrowd": 0, "image_id": 418505, "bbox": [362.69, 292.4, 44.86, 9.06], "category_id": 84, "id": 1651431}, {"segmentation": [[585.6, 198.96, 591.76, 219.61, 595.2, 231.84, 596.56, 239.54, 599.37, 239.54, 599.91, 239.54, 594.02, 217.17, 589.22, 199.05, 588.32, 198.14, 586.23, 197.42]], "area": 127.7926499999994, "iscrowd": 0, "image_id": 341989, "bbox": [585.6, 197.42, 14.31, 42.12], "category_id": 84, "id": 1651736}, {"segmentation": [[378.59, 196.71, 377.48, 176.94, 372.38, 176.94, 372.82, 202.7, 377.93, 203.37]], "area": 143.2863, "iscrowd": 0, "image_id": 130949, "bbox": [372.38, 176.94, 6.21, 26.43], "category_id": 84, "id": 1651786}, {"segmentation": [[217.82, 417.4, 240.85, 354.07, 425.08, 375.18, 405.89, 419.32]], "area": 10245.851899999998, "iscrowd": 0, "image_id": 252702, "bbox": [217.82, 354.07, 207.26, 65.25], "category_id": 84, "id": 1652011}, {"segmentation": [[315.88, 140.18, 314.6, 163.24, 342.78, 166.02, 359.01, 166.02, 359.01, 166.02, 354.31, 140.18]], "area": 1032.9017999999999, "iscrowd": 0, "image_id": 130949, "bbox": [314.6, 140.18, 44.41, 25.84], "category_id": 84, "id": 1652228}, {"segmentation": [[623.92, 217.12, 629.76, 246.32, 634.82, 245.93, 627.43, 216.73]], "area": 127.70185000000077, "iscrowd": 0, "image_id": 341989, "bbox": [623.92, 216.73, 10.9, 29.59], "category_id": 84, "id": 1652573}, {"segmentation": [[626.91, 407.15, 595.22, 400.26, 527.98, 396.41, 513.38, 426.72, 618.92, 427.0]], "area": 2796.9278000000004, "iscrowd": 0, "image_id": 252702, "bbox": [513.38, 396.41, 113.53, 30.59], "category_id": 84, "id": 1652663}, {"segmentation": [[530.4, 282.33, 509.89, 284.25, 509.89, 284.25, 513.42, 292.58, 536.49, 283.29], [540.65, 288.73, 514.38, 297.07, 532.64, 312.77, 538.09, 295.14], [544.18, 287.45, 552.51, 297.39, 563.73, 299.95, 582.31, 314.69, 552.19, 330.71, 535.21, 312.13]], "area": 1396.816849999999, "iscrowd": 0, "image_id": 167671, "bbox": [509.89, 282.33, 72.42, 48.38], "category_id": 84, "id": 1652696}, {"segmentation": [[523.53, 364.76, 554.22, 368.34, 552.62, 365.16, 552.22, 359.98, 561.79, 358.38, 580.91, 361.97, 585.69, 371.53, 625.14, 371.13, 625.54, 366.75, 633.11, 361.57, 606.01, 339.65, 585.29, 338.86, 535.49, 337.66, 502.82, 337.26, 509.59, 344.44, 538.28, 353.2, 534.69, 356.79, 509.19, 348.42, 508.79, 350.01, 522.34, 365.55]], "area": 2938.8381999999974, "iscrowd": 0, "image_id": 176587, "bbox": [502.82, 337.26, 130.29, 34.27], "category_id": 84, "id": 1652875}, {"segmentation": [[319.0, 265.95, 318.35, 243.22, 323.55, 242.89, 323.22, 267.57, 320.3, 265.95], [319.97, 285.43, 318.68, 268.22, 322.57, 269.84, 324.2, 282.51, 320.3, 283.48], [319.0, 313.36, 318.68, 289.98, 324.52, 292.25, 320.3, 307.51]], "area": 233.9391999999997, "iscrowd": 0, "image_id": 233439, "bbox": [318.35, 242.89, 6.17, 70.47], "category_id": 84, "id": 1653214}, {"segmentation": [[333.31, 172.67, 335.9, 173.31, 334.6, 195.82, 332.02, 195.56]], "area": 59.262250000000186, "iscrowd": 0, "image_id": 130949, "bbox": [332.02, 172.67, 3.88, 23.15], "category_id": 84, "id": 1653400}, {"segmentation": [[437.19, 273.27, 427.51, 275.77, 427.2, 294.19, 430.01, 295.44, 430.95, 277.33]], "area": 69.80665000000003, "iscrowd": 0, "image_id": 418505, "bbox": [427.2, 273.27, 9.99, 22.17], "category_id": 84, "id": 1653479}, {"segmentation": [[115.46, 97.48, 110.52, 53.01, 118.5, 53.01, 123.83, 99.38, 116.98, 101.28]], "area": 380.88925000000023, "iscrowd": 0, "image_id": 528047, "bbox": [110.52, 53.01, 13.31, 48.27], "category_id": 84, "id": 1653600}, {"segmentation": [[245.83, 270.0, 245.65, 278.45, 274.06, 275.94, 273.88, 267.48]], "area": 238.68464999999946, "iscrowd": 0, "image_id": 95281, "bbox": [245.65, 267.48, 28.41, 10.97], "category_id": 84, "id": 1653642}, {"segmentation": [[608.75, 240.9, 596.91, 199.44, 594.54, 199.44, 606.38, 242.08, 611.12, 242.08]], "area": 109.44070000000028, "iscrowd": 0, "image_id": 341989, "bbox": [594.54, 199.44, 16.58, 42.64], "category_id": 84, "id": 1653868}, {"segmentation": [[448.46, 278.01, 445.07, 278.53, 445.2, 298.0, 446.11, 297.87, 447.81, 294.87, 447.94, 291.08]], "area": 55.139150000000114, "iscrowd": 0, "image_id": 418505, "bbox": [445.07, 278.01, 3.39, 19.99], "category_id": 84, "id": 1653891}, {"segmentation": [[174.46, 314.26, 177.92, 348.62, 169.39, 347.88, 165.93, 302.76, 165.81, 297.08, 167.66, 293.99, 173.6, 292.75, 179.78, 294.85, 180.77, 299.18, 180.4, 301.4, 173.35, 302.51]], "area": 483.8839999999999, "iscrowd": 0, "image_id": 528047, "bbox": [165.81, 292.75, 14.96, 55.87], "category_id": 84, "id": 1653980}, {"segmentation": [[452.47, 279.84, 464.35, 282.39, 464.56, 280.17, 453.0, 278.23], [464.69, 280.58, 465.76, 280.04, 466.5, 281.65, 465.5, 282.86, 464.69, 282.59]], "area": 26.77969999999951, "iscrowd": 0, "image_id": 418505, "bbox": [452.47, 278.23, 14.03, 4.63], "category_id": 84, "id": 1654255}, {"segmentation": [[432.09, 147.78, 437.0, 148.06, 438.09, 168.24, 436.72, 175.61, 430.72, 174.79]], "area": 167.1060999999997, "iscrowd": 0, "image_id": 130949, "bbox": [430.72, 147.78, 7.37, 27.83], "category_id": 84, "id": 1654589}, {"segmentation": [[260.06, 47.17, 255.11, 21.15, 257.98, 20.19, 263.57, 45.73]], "area": 88.56219999999993, "iscrowd": 0, "image_id": 542041, "bbox": [255.11, 20.19, 8.46, 26.98], "category_id": 84, "id": 1654731}, {"segmentation": [[455.05, 299.99, 477.92, 301.1, 496.38, 301.37, 499.41, 300.54, 499.14, 298.34, 464.42, 296.96, 453.95, 295.31, 451.46, 294.48, 454.22, 297.79]], "area": 161.48840000000152, "iscrowd": 0, "image_id": 233439, "bbox": [451.46, 294.48, 47.95, 6.89], "category_id": 84, "id": 1654816}, {"segmentation": [[627.53, 412.58, 631.57, 407.99, 622.94, 440.14, 616.14, 444.19]], "area": 129.5464000000024, "iscrowd": 0, "image_id": 341989, "bbox": [616.14, 407.99, 15.43, 36.2], "category_id": 84, "id": 1655098}, {"segmentation": [[37.78, 137.41, 20.64, 127.86, 29.75, 112.67, 47.33, 121.57]], "area": 355.40964999999994, "iscrowd": 0, "image_id": 341989, "bbox": [20.64, 112.67, 26.69, 24.74], "category_id": 84, "id": 1655390}, {"segmentation": [[161.76, 304.7, 165.42, 348.34, 169.23, 347.73, 169.23, 347.73, 165.88, 304.86, 165.88, 301.96, 161.61, 302.72]], "area": 182.553, "iscrowd": 0, "image_id": 528047, "bbox": [161.61, 301.96, 7.62, 46.38], "category_id": 84, "id": 1655602}, {"segmentation": [[241.66, 155.16, 242.07, 137.38, 244.72, 134.73, 245.95, 136.97, 245.34, 155.57]], "area": 73.35595000000002, "iscrowd": 0, "image_id": 130949, "bbox": [241.66, 134.73, 4.29, 20.84], "category_id": 84, "id": 1655709}, {"segmentation": [[84.23, 143.57, 87.25, 194.43, 91.93, 194.71, 96.33, 193.61, 93.3, 141.92, 87.25, 142.47]], "area": 474.74349999999987, "iscrowd": 0, "image_id": 459794, "bbox": [84.23, 141.92, 12.1, 52.79], "category_id": 84, "id": 1655887}, {"segmentation": [[199.98, 135.56, 203.9, 135.3, 203.81, 152.37, 199.63, 152.64, 200.07, 135.56]], "area": 68.32685000000012, "iscrowd": 0, "image_id": 130949, "bbox": [199.63, 135.3, 4.27, 17.34], "category_id": 84, "id": 1656237}, {"segmentation": [[256.14, 50.37, 247.47, 23.3, 254.41, 21.39, 261.17, 48.28]], "area": 176.90530000000035, "iscrowd": 0, "image_id": 542041, "bbox": [247.47, 21.39, 13.7, 28.98], "category_id": 84, "id": 1656264}, {"segmentation": [[489.28, 313.39, 483.92, 313.39, 485.38, 287.06, 494.16, 283.64, 496.6, 284.37, 486.36, 290.47]], "area": 104.64189999999994, "iscrowd": 0, "image_id": 418505, "bbox": [483.92, 283.64, 12.68, 29.75], "category_id": 84, "id": 1657086}, {"segmentation": [[259.03, 6.52, 267.1, 5.59, 280.77, 34.17, 280.15, 38.2, 274.56, 39.76, 273.31, 37.89, 259.03, 8.7]], "area": 300.89330000000035, "iscrowd": 0, "image_id": 542041, "bbox": [259.03, 5.59, 21.74, 34.17], "category_id": 84, "id": 1657166}, {"segmentation": [[464.0, 344.65, 464.14, 352.57, 474.14, 351.73, 473.17, 344.51]], "area": 72.83040000000025, "iscrowd": 0, "image_id": 354277, "bbox": [464.0, 344.51, 10.14, 8.06], "category_id": 84, "id": 1657608}, {"segmentation": [[582.74, 29.9, 581.97, 25.51, 639.61, 2.61, 639.99, 7.57]], "area": 281.5589999999997, "iscrowd": 0, "image_id": 395893, "bbox": [581.97, 2.61, 58.02, 27.29], "category_id": 84, "id": 1657876}, {"segmentation": [[33.42, 127.94, 28.2, 128.22, 24.35, 75.44, 30.94, 75.71]], "area": 310.05785000000003, "iscrowd": 0, "image_id": 459794, "bbox": [24.35, 75.44, 9.07, 52.78], "category_id": 84, "id": 1657943}, {"segmentation": [[283.56, 33.78, 281.31, 35.01, 270.25, 12.46, 267.58, 0.0, 278.24, 0.0, 278.03, 9.19]], "area": 238.6848499999997, "iscrowd": 0, "image_id": 542041, "bbox": [267.58, 0.0, 15.98, 35.01], "category_id": 84, "id": 1658453}, {"segmentation": [[583.09, 22.47, 633.64, 4.13, 633.14, 0.66, 627.69, 0.66, 579.13, 21.97]], "area": 206.05529999999968, "iscrowd": 0, "image_id": 395893, "bbox": [579.13, 0.66, 54.51, 21.81], "category_id": 84, "id": 1658474}, {"segmentation": [[1.98, 127.57, 101.38, 131.19, 100.02, 83.29, 95.96, 83.29, 93.7, 77.87, 80.14, 76.06, 52.13, 73.81, 35.41, 71.55, 33.6, 71.55, 25.47, 71.55, 0.17, 68.38, 1.53, 127.57]], "area": 5545.804049999998, "iscrowd": 0, "image_id": 459794, "bbox": [0.17, 68.38, 101.21, 62.81], "category_id": 84, "id": 1658770}, {"segmentation": [[582.18, 15.34, 618.16, 0.36, 608.11, 0.54, 582.18, 12.05]], "area": 114.69114999999974, "iscrowd": 0, "image_id": 395893, "bbox": [582.18, 0.36, 35.98, 14.98], "category_id": 84, "id": 1658954}, {"segmentation": [[168.89, 132.19, 168.57, 146.59, 171.56, 146.59, 171.56, 131.71, 169.6, 131.71]], "area": 41.86320000000018, "iscrowd": 0, "image_id": 130949, "bbox": [168.57, 131.71, 2.99, 14.88], "category_id": 84, "id": 1659582}, {"segmentation": [[513.37, 308.24, 461.68, 307.24, 461.51, 304.06, 456.16, 307.4, 437.93, 306.73, 440.44, 300.04, 448.8, 302.55, 495.98, 302.72, 499.66, 301.05, 514.21, 301.72]], "area": 393.944349999999, "iscrowd": 0, "image_id": 233439, "bbox": [437.93, 300.04, 76.28, 8.2], "category_id": 84, "id": 1659842}, {"segmentation": [[425.5, 272.58, 421.78, 273.27, 421.32, 271.88, 421.08, 246.56, 422.48, 243.31, 425.96, 243.54]], "area": 131.55789999999993, "iscrowd": 0, "image_id": 459794, "bbox": [421.08, 243.31, 4.88, 29.96], "category_id": 84, "id": 1659859}, {"segmentation": [[10.55, 155.0, 23.25, 163.6, 23.86, 165.24, 15.47, 182.24, 5.12, 173.95, 4.2, 169.34]], "area": 305.6895500000001, "iscrowd": 0, "image_id": 341989, "bbox": [4.2, 155.0, 19.66, 27.24], "category_id": 84, "id": 1659928}, {"segmentation": [[178.39, 156.36, 185.11, 155.56, 188.41, 156.02, 188.75, 158.52, 190.8, 158.52, 191.6, 174.58, 189.09, 173.79, 188.86, 168.32, 184.31, 163.99, 180.66, 161.03, 179.64, 159.66, 178.27, 157.72]], "area": 113.9901499999999, "iscrowd": 0, "image_id": 130949, "bbox": [178.27, 155.56, 13.33, 19.02], "category_id": 84, "id": 1660155}, {"segmentation": [[48.21, 142.32, 50.33, 146.2, 55.62, 199.48, 60.91, 199.12, 55.62, 144.79, 52.8, 140.91, 47.5, 141.26]], "area": 314.89324999999985, "iscrowd": 0, "image_id": 459794, "bbox": [47.5, 140.91, 13.41, 58.57], "category_id": 84, "id": 1660420}, {"segmentation": [[417.84, 247.3, 421.83, 247.3, 421.03, 272.48, 415.84, 272.48, 417.84, 246.1]], "area": 116.77620000000013, "iscrowd": 0, "image_id": 459794, "bbox": [415.84, 246.1, 5.99, 26.38], "category_id": 84, "id": 1660622}, {"segmentation": [[632.09, 218.83, 638.18, 216.46, 640.0, 223.06, 639.03, 241.82]], "area": 98.50104999999948, "iscrowd": 0, "image_id": 341989, "bbox": [632.09, 216.46, 7.91, 25.36], "category_id": 84, "id": 1660695}, {"segmentation": [[61.36, 351.68, 66.04, 395.22, 71.0, 393.56, 73.76, 391.36, 69.9, 351.13, 69.35, 348.93]], "area": 362.6508500000002, "iscrowd": 0, "image_id": 459794, "bbox": [61.36, 348.93, 12.4, 46.29], "category_id": 84, "id": 1660766}, {"segmentation": [[389.17, 171.07, 385.08, 170.67, 385.08, 144.3, 387.94, 144.51, 388.76, 170.05]], "area": 86.96080000000023, "iscrowd": 0, "image_id": 130949, "bbox": [385.08, 144.3, 4.09, 26.77], "category_id": 84, "id": 1660819}, {"segmentation": [[251.98, 255.79, 295.96, 247.74, 292.86, 263.53, 289.77, 269.42, 279.85, 271.59, 254.45, 266.63, 254.14, 260.13, 252.29, 256.41]], "area": 700.8934499999996, "iscrowd": 0, "image_id": 130949, "bbox": [251.98, 247.74, 43.98, 23.85], "category_id": 84, "id": 1661605}, {"segmentation": [[600.81, 239.85, 606.16, 240.6, 594.73, 200.97, 589.68, 199.19, 600.22, 240.15]], "area": 208.14900000000023, "iscrowd": 0, "image_id": 341989, "bbox": [589.68, 199.19, 16.48, 41.41], "category_id": 84, "id": 1661840}, {"segmentation": [[407.43, 229.58, 496.77, 236.48, 497.92, 228.81, 488.72, 202.74, 470.7, 198.14, 466.48, 203.12, 462.65, 206.57, 436.96, 203.12, 432.74, 198.9, 432.74, 203.5, 419.7, 203.5, 410.12, 201.97]], "area": 2571.1619000000005, "iscrowd": 0, "image_id": 459794, "bbox": [407.43, 198.14, 90.49, 38.34], "category_id": 84, "id": 1662315}, {"segmentation": [[418.67, 306.4, 422.2, 280.29, 423.96, 278.88, 426.43, 279.24, 422.2, 308.52, 419.02, 308.17]], "area": 114.34359999999985, "iscrowd": 0, "image_id": 459794, "bbox": [418.67, 278.88, 7.76, 29.64], "category_id": 84, "id": 1663047}, {"segmentation": [[484.13, 275.8, 483.48, 250.15, 489.33, 250.15, 489.0, 276.77]], "area": 140.00599999999957, "iscrowd": 0, "image_id": 459794, "bbox": [483.48, 250.15, 5.85, 26.62], "category_id": 84, "id": 1663132}, {"segmentation": [[114.63, 317.56, 24.91, 363.19, 2.67, 368.56, 0.75, 305.68, 110.41, 268.87]], "area": 6582.831599999999, "iscrowd": 0, "image_id": 459794, "bbox": [0.75, 268.87, 113.88, 99.69], "category_id": 84, "id": 1663373}, {"segmentation": [[239.43, 315.71, 245.09, 310.41, 256.05, 311.11, 260.65, 318.19, 259.23, 329.5, 253.22, 340.47, 242.61, 342.59, 234.48, 335.52, 235.89, 326.67, 239.07, 316.77]], "area": 624.27105, "iscrowd": 0, "image_id": 448533, "bbox": [234.48, 310.41, 26.17, 32.18], "category_id": 85, "id": 1664041}, {"segmentation": [[43.98, 506.73, 49.59, 505.8, 53.8, 506.73, 56.61, 509.54, 59.88, 515.15, 66.44, 532.47, 69.71, 549.78, 69.24, 576.92, 66.44, 594.7, 61.29, 596.57, 56.14, 600.78, 50.06, 604.52, 49.12, 608.73, 45.85, 614.35, 41.17, 616.22, 48.19, 628.38, 46.32, 636.81, 37.43, 635.87, 29.0, 619.49, 25.73, 596.1, 23.86, 571.77, 26.2, 548.37, 29.94, 527.79, 34.15, 517.49]], "area": 4173.847000000001, "iscrowd": 0, "image_id": 379465, "bbox": [23.86, 505.8, 45.85, 131.01], "category_id": 85, "id": 1664328}, {"segmentation": [[0.97, 158.05, 5.99, 159.42, 7.02, 160.67, 9.42, 167.98, 8.85, 171.29, 7.02, 175.17, 5.08, 178.83, 0.06, 181.45, 0.0, 157.7]], "area": 162.34535000000005, "iscrowd": 0, "image_id": 290153, "bbox": [0.0, 157.7, 9.42, 23.75], "category_id": 85, "id": 1664746}, {"segmentation": [[55.32, 53.04, 60.93, 52.35, 64.47, 54.98, 65.73, 57.5, 65.85, 60.47, 65.16, 63.1, 62.3, 65.05, 58.87, 65.16, 55.32, 64.02, 53.83, 61.27, 52.57, 59.1, 53.37, 56.01]], "area": 131.76354999999998, "iscrowd": 0, "image_id": 165347, "bbox": [52.57, 52.35, 13.28, 12.81], "category_id": 85, "id": 1664903}, {"segmentation": [[189.06, 59.49, 192.38, 51.96, 195.92, 49.53, 197.69, 52.63, 199.02, 65.02, 199.91, 80.51, 199.02, 91.36, 196.15, 96.01, 191.28, 96.45, 189.06, 90.47, 187.96, 80.29, 188.18, 69.22, 188.84, 60.81]], "area": 444.7544, "iscrowd": 0, "image_id": 453332, "bbox": [187.96, 49.53, 11.95, 46.92], "category_id": 85, "id": 1665069}, {"segmentation": [[630.19, 55.34, 629.47, 58.42, 628.74, 62.05, 628.74, 66.59, 629.47, 68.94, 631.28, 70.39, 633.82, 67.67, 633.82, 62.78, 633.82, 58.24, 633.09, 54.25, 632.01, 53.16, 630.92, 54.61]], "area": 68.04650000000044, "iscrowd": 0, "image_id": 450281, "bbox": [628.74, 53.16, 5.08, 17.23], "category_id": 85, "id": 1665124}, {"segmentation": [[385.28, 261.96, 444.57, 194.2, 476.76, 187.42, 548.75, 260.26, 525.03, 284.83, 514.87, 281.44, 512.33, 310.24, 541.13, 310.24, 514.02, 330.57, 504.71, 335.65, 482.68, 350.05, 475.06, 344.96, 475.06, 405.1, 464.9, 426.28, 457.27, 414.42, 456.43, 386.47, 446.26, 389.86, 440.33, 382.23, 439.49, 335.65, 430.17, 334.8, 420.85, 328.87, 413.23, 323.79, 398.83, 317.86, 398.83, 309.39, 405.61, 301.77, 414.92, 291.6, 420.01, 290.76, 411.54, 278.05, 413.23, 260.26, 405.61, 260.26, 402.22, 278.05, 402.22, 287.37, 397.14, 289.91, 391.21, 290.76, 385.28, 283.13, 383.59, 278.9, 384.43, 266.19, 383.59, 261.11]], "area": 18444.62225, "iscrowd": 0, "image_id": 448533, "bbox": [383.59, 187.42, 165.16, 238.86], "category_id": 85, "id": 1665141}, {"segmentation": [[325.44, 298.24, 320.35, 294.59, 316.57, 285.46, 316.83, 278.43, 320.61, 273.6, 322.57, 272.43, 325.31, 271.52, 329.35, 270.6, 332.21, 270.73, 335.21, 271.26, 336.39, 271.52, 339.25, 272.17, 338.86, 282.21, 336.91, 282.73, 335.73, 283.25, 333.91, 284.29, 332.87, 285.07, 331.17, 285.99, 330.52, 286.77, 329.22, 288.07, 328.69, 289.11, 328.04, 291.59, 327.78, 293.42, 327.26, 295.63, 327.26, 296.67, 327.26, 299.28]], "area": 393.39644999999985, "iscrowd": 0, "image_id": 448533, "bbox": [316.57, 270.6, 22.68, 28.68], "category_id": 85, "id": 1665797}, {"segmentation": [[112.75, 67.59, 110.55, 62.92, 108.9, 59.89, 107.53, 56.32, 107.8, 52.2, 113.3, 50.82, 123.2, 56.05, 130.62, 67.59, 133.1, 85.19, 130.62, 98.38, 127.32, 103.61, 122.65, 107.73, 120.17, 107.45, 118.8, 72.81, 118.25, 67.59, 116.33, 67.04]], "area": 702.9028000000002, "iscrowd": 0, "image_id": 459794, "bbox": [107.53, 50.82, 25.57, 56.91], "category_id": 85, "id": 1666050}, {"segmentation": [[479.08, 424.08, 480.98, 402.56, 508.83, 382.3, 522.76, 379.77, 549.98, 389.89, 567.71, 406.35, 575.94, 424.71, 577.84, 427.0]], "area": 3241.3527500000005, "iscrowd": 0, "image_id": 448533, "bbox": [479.08, 379.77, 98.76, 47.23], "category_id": 85, "id": 1666453}, {"segmentation": [[201.28, 140.43, 202.29, 131.3, 209.14, 121.66, 215.22, 121.41, 221.05, 123.18, 224.86, 128.76, 227.14, 134.59, 226.13, 141.95, 224.35, 148.54, 220.29, 153.86, 218.01, 154.88, 213.19, 154.88, 205.33, 149.05, 202.8, 144.23]], "area": 656.6426999999999, "iscrowd": 0, "image_id": 448533, "bbox": [201.28, 121.41, 25.86, 33.47], "category_id": 85, "id": 1666478}, {"segmentation": [[57.56, 110.81, 49.4, 117.47, 47.25, 127.99, 48.76, 140.23, 58.42, 150.54, 69.37, 151.61, 79.24, 148.82, 85.26, 140.66, 86.97, 131.21, 84.4, 121.76, 81.39, 116.61, 79.67, 115.54, 74.74, 111.67, 71.3, 113.61, 68.08, 111.89, 64.22, 112.75, 62.93, 110.17, 60.14, 112.53]], "area": 1282.165, "iscrowd": 0, "image_id": 448533, "bbox": [47.25, 110.17, 39.72, 41.44], "category_id": 85, "id": 1666527}, {"segmentation": [[143.23, 357.1, 135.45, 360.29, 130.14, 360.29, 120.24, 358.16, 119.53, 354.27, 118.83, 350.38, 118.47, 344.37, 119.53, 336.95, 120.24, 333.76, 125.9, 328.1, 128.37, 327.04, 134.39, 325.63, 139.69, 325.63, 144.64, 327.04, 147.83, 329.52, 148.53, 331.29, 149.59, 334.82, 149.95, 337.65, 151.01, 339.77, 150.66, 343.31, 150.3, 345.43, 148.89, 348.26, 147.47, 352.86, 146.76, 354.98, 145.0, 356.75, 145.0, 356.75]], "area": 925.7218500000002, "iscrowd": 0, "image_id": 448533, "bbox": [118.47, 325.63, 32.54, 34.66], "category_id": 85, "id": 1666636}, {"segmentation": [[362.74, 145.06, 362.36, 136.91, 363.11, 128.76, 366.91, 121.94, 371.83, 119.1, 380.55, 118.91, 385.67, 122.51, 390.22, 127.43, 392.87, 133.69, 391.35, 144.87, 388.32, 148.85, 387.75, 145.06, 368.61, 145.82, 368.8, 153.21, 365.2, 150.75, 362.36, 147.33]], "area": 724.9203500000001, "iscrowd": 0, "image_id": 448533, "bbox": [362.36, 118.91, 30.51, 34.3], "category_id": 85, "id": 1666758}, {"segmentation": [[218.66, 390.36, 224.89, 390.36, 228.46, 393.92, 230.24, 398.67, 225.78, 402.83, 216.28, 404.61, 209.75, 404.61, 203.81, 400.75, 204.11, 379.37, 201.14, 374.33, 190.45, 360.96, 192.53, 327.41, 186.29, 314.35, 184.51, 308.41, 192.23, 310.19, 207.08, 311.68, 215.39, 310.19, 218.36, 307.52, 216.28, 301.28, 220.74, 303.66, 221.92, 307.22, 221.03, 315.83, 219.25, 358.0, 223.11, 367.2, 218.36, 372.54, 218.66, 377.59, 213.61, 383.83, 215.98, 385.61]], "area": 2402.47305, "iscrowd": 0, "image_id": 503023, "bbox": [184.51, 301.28, 45.73, 103.33], "category_id": 86, "id": 1666870}, {"segmentation": [[66.31, 279.77, 72.71, 279.96, 79.1, 281.09, 79.85, 286.35, 82.67, 289.36, 90.38, 288.98, 89.44, 281.27, 89.07, 274.32, 87.56, 268.86, 84.37, 264.54, 83.43, 259.65, 83.05, 254.19, 83.24, 246.3, 85.31, 239.53, 86.25, 237.65, 80.04, 236.33, 77.22, 236.33, 74.21, 236.52, 70.07, 236.52, 66.12, 237.46, 63.3, 239.53, 64.81, 242.35, 67.44, 246.48, 68.19, 253.25, 69.13, 257.96, 68.95, 265.29, 67.25, 270.37, 66.5, 277.51, 66.69, 279.58]], "area": 872.1431999999995, "iscrowd": 0, "image_id": 211622, "bbox": [63.3, 236.33, 27.08, 53.03], "category_id": 86, "id": 1667116}, {"segmentation": [[162.62, 259.7, 165.92, 320.83, 198.55, 324.96, 207.64, 320.0, 211.77, 255.57, 192.77, 262.18, 180.79, 263.42, 172.12, 263.42, 168.4, 262.59, 168.4, 262.59]], "area": 2775.2164999999995, "iscrowd": 0, "image_id": 509702, "bbox": [162.62, 255.57, 49.15, 69.39], "category_id": 86, "id": 1667371}, {"segmentation": [[440.09, 358.11, 396.94, 352.36, 376.81, 342.29, 356.67, 342.29, 343.73, 335.1, 336.54, 326.47, 336.54, 309.21, 337.98, 294.83, 339.42, 280.45, 343.73, 266.07, 345.17, 263.19, 348.04, 260.31, 381.12, 34.52, 391.19, 28.76, 407.01, 28.76, 418.52, 27.33, 437.21, 24.45, 447.28, 24.45, 465.98, 27.33, 474.61, 31.64, 480.0, 40.27, 473.17, 191.28, 470.29, 221.48, 467.42, 245.93, 455.91, 276.13, 455.91, 284.76, 458.79, 302.02, 450.16, 323.6]], "area": 35527.597350000004, "iscrowd": 0, "image_id": 207385, "bbox": [336.54, 24.45, 143.46, 333.66], "category_id": 86, "id": 1667785}, {"segmentation": [[333.11, 304.5, 347.37, 303.8, 350.18, 300.06, 353.45, 296.32, 355.32, 291.88, 355.32, 287.9, 353.69, 285.09, 350.41, 282.05, 347.84, 281.82, 346.67, 280.65, 342.23, 279.71, 334.28, 280.18, 332.17, 280.42, 328.66, 281.58, 325.86, 283.46, 323.52, 285.33, 322.58, 286.5, 321.65, 291.17, 322.58, 294.68, 325.39, 297.96, 329.13, 302.17, 331.24, 304.74]], "area": 655.9663500000007, "iscrowd": 0, "image_id": 418505, "bbox": [321.65, 279.71, 33.67, 25.03], "category_id": 86, "id": 1667836}, {"segmentation": [[14.43, 0.48, 52.89, 113.0, 78.86, 123.58, 79.82, 125.5, 76.94, 134.16, 61.55, 149.55, 56.74, 158.2, 54.82, 163.97, 59.63, 174.55, 100.98, 186.09, 111.56, 156.28, 129.83, 128.39, 136.56, 113.0, 142.33, 99.54, 142.33, 76.46, 139.45, 55.3, 147.14, 37.99, 150.03, 32.22, 148.1, 0.48]], "area": 16049.416899999998, "iscrowd": 0, "image_id": 205931, "bbox": [14.43, 0.48, 135.6, 185.61], "category_id": 86, "id": 1668406}, {"segmentation": [[251.15, 210.04, 254.67, 210.04, 248.07, 217.96, 245.87, 229.84, 256.87, 252.29, 256.87, 258.89, 246.75, 307.29, 261.27, 309.93, 283.27, 312.57, 280.19, 308.17, 276.23, 304.65, 282.83, 298.93, 283.27, 296.29, 285.47, 261.09, 294.28, 252.73, 299.12, 243.48, 304.4, 228.08, 300.0, 216.2, 291.64, 210.48, 274.91, 209.16, 269.63, 207.84, 252.03, 209.16]], "area": 3999.2480999999993, "iscrowd": 0, "image_id": 341989, "bbox": [245.87, 207.84, 58.53, 104.73], "category_id": 86, "id": 1668418}, {"segmentation": [[265.75, 124.58, 267.07, 126.01, 266.16, 127.93, 265.34, 128.95, 264.94, 130.98, 265.75, 133.62, 266.66, 136.06, 273.87, 135.45, 274.18, 131.79, 274.38, 129.46, 273.06, 127.83, 272.55, 126.41, 273.57, 124.48, 272.86, 122.86, 269.3, 122.96, 267.07, 123.06, 265.85, 123.47, 265.85, 123.67]], "area": 99.58594999999998, "iscrowd": 0, "image_id": 346754, "bbox": [264.94, 122.86, 9.44, 13.2], "category_id": 86, "id": 1668934}, {"segmentation": [[276.63, 119.16, 274.23, 119.28, 273.99, 120.36, 274.59, 120.84, 275.07, 131.52, 274.71, 132.11, 274.11, 132.35, 274.11, 134.63, 277.59, 133.91]], "area": 37.0361999999999, "iscrowd": 0, "image_id": 346754, "bbox": [273.99, 119.16, 3.6, 15.47], "category_id": 86, "id": 1670013}, {"segmentation": [[60.66, 400.71, 73.56, 421.36, 70.98, 532.35, 294.24, 533.64, 296.82, 487.18, 251.66, 498.79, 242.62, 403.29, 98.08, 404.58, 64.53, 385.23]], "area": 24890.161350000002, "iscrowd": 0, "image_id": 194701, "bbox": [60.66, 385.23, 236.16, 148.41], "category_id": 86, "id": 1670983}, {"segmentation": [[149.48, 163.63, 144.55, 169.61, 144.9, 174.19, 148.43, 177.01, 156.17, 177.01, 158.64, 173.49, 155.82, 166.8, 156.17, 163.27]], "area": 145.99414999999962, "iscrowd": 0, "image_id": 102315, "bbox": [144.55, 163.27, 14.09, 13.74], "category_id": 86, "id": 1671028}, {"segmentation": [[276.79, 394.56, 277.19, 390.58, 281.56, 387.8, 285.94, 385.81, 295.88, 385.02, 303.83, 385.02, 306.61, 385.02, 311.38, 390.98, 311.38, 394.16, 311.38, 397.34, 313.37, 402.11, 314.56, 408.07, 314.96, 412.85, 314.16, 414.04, 313.77, 416.82, 312.57, 420.8, 310.59, 423.18, 305.42, 426.36, 297.86, 428.35, 290.71, 428.75, 286.33, 428.75, 283.15, 427.95, 280.37, 425.57, 277.59, 421.19, 276.79, 416.03, 275.2, 410.06, 275.2, 406.09, 275.6, 399.73, 279.58, 397.74, 277.59, 395.35]], "area": 1467.2013500000003, "iscrowd": 0, "image_id": 416047, "bbox": [275.2, 385.02, 39.76, 43.73], "category_id": 86, "id": 1671246}, {"segmentation": [[429.27, 258.56, 427.92, 260.4, 426.92, 259.73, 427.09, 256.88, 424.4, 252.02, 423.56, 247.66, 425.74, 243.47, 437.31, 243.64, 439.16, 245.65, 439.66, 248.83, 438.49, 252.86, 436.31, 256.88, 435.8, 258.56, 436.31, 260.57, 433.79, 258.56]], "area": 202.27025000000046, "iscrowd": 0, "image_id": 418505, "bbox": [423.56, 243.47, 16.1, 17.1], "category_id": 86, "id": 1671541}, {"segmentation": [[257.11, 121.29, 248.37, 121.17, 248.48, 126.12, 248.83, 136.48, 249.52, 137.63, 255.16, 136.48]], "area": 118.88964999999997, "iscrowd": 0, "image_id": 346754, "bbox": [248.37, 121.17, 8.74, 16.46], "category_id": 86, "id": 1671548}, {"segmentation": [[308.41, 314.09, 305.31, 297.85, 303.1, 293.12, 302.36, 289.43, 306.34, 292.09, 307.67, 286.62, 307.97, 278.8, 311.36, 274.37, 316.09, 273.63, 319.93, 277.47, 320.08, 284.85, 315.65, 289.43, 313.28, 290.17, 309.59, 291.5, 309.15, 295.48, 313.73, 314.09, 309.15, 314.68]], "area": 294.04909999999916, "iscrowd": 0, "image_id": 233439, "bbox": [302.36, 273.63, 17.72, 41.05], "category_id": 87, "id": 1672013}, {"segmentation": [[360.02, 138.56, 364.16, 134.41, 368.49, 135.49, 369.93, 140.18, 364.16, 150.27, 358.58, 153.16, 354.61, 157.84, 352.09, 160.55, 346.32, 161.09, 345.96, 159.83, 350.1, 154.24, 350.65, 148.47, 349.92, 146.31, 353.53, 140.72, 353.35, 139.28, 350.83, 140.18, 349.2, 144.15, 347.94, 140.54, 348.12, 136.75, 351.91, 133.87, 358.22, 134.41, 359.12, 138.74, 358.22, 141.26]], "area": 352.4363000000003, "iscrowd": 0, "image_id": 304587, "bbox": [345.96, 133.87, 23.97, 27.22], "category_id": 87, "id": 1672136}, {"segmentation": [[312.94, 273.09, 313.78, 268.89, 315.46, 266.73, 317.14, 265.05, 320.02, 265.05, 322.18, 266.25, 324.7, 268.77, 325.54, 272.97, 326.38, 276.81, 326.02, 281.85, 324.34, 286.4, 322.18, 290.24, 321.34, 289.88, 320.5, 294.8, 320.14, 297.8, 317.14, 306.68, 317.14, 313.39, 313.3, 290.72, 311.26, 276.09, 311.26, 273.93, 312.94, 273.09]], "area": 387.8453999999997, "iscrowd": 0, "image_id": 233439, "bbox": [311.26, 265.05, 15.12, 48.34], "category_id": 87, "id": 1672247}, {"segmentation": [[10.34, 335.87, 9.85, 329.33, 12.51, 321.84, 17.59, 314.34, 23.88, 308.78, 29.44, 307.08, 34.28, 306.84, 17.59, 333.93, 16.87, 335.14, 16.63, 337.32], [28.72, 340.22, 32.1, 337.8, 40.33, 330.54, 47.34, 319.9, 49.28, 315.31, 47.83, 309.5]], "area": 440.4566500000003, "iscrowd": 0, "image_id": 222572, "bbox": [9.85, 306.84, 39.43, 33.38], "category_id": 87, "id": 1672397}, {"segmentation": [[17.44, 166.79, 33.36, 161.0, 43.5, 159.56, 50.73, 161.0, 62.33, 169.68, 68.12, 174.03, 78.24, 175.47, 88.38, 175.47, 97.07, 172.58, 107.2, 165.35, 115.88, 163.89, 137.6, 159.56, 150.63, 158.1, 160.76, 158.1, 168.0, 150.87, 194.07, 143.63, 204.19, 146.52, 211.44, 158.1, 215.77, 171.14, 217.23, 184.16, 217.23, 202.98, 217.23, 205.88, 209.98, 230.48, 202.74, 240.62, 194.07, 249.31, 185.37, 259.45, 182.47, 271.03, 182.47, 278.26, 185.37, 291.3, 191.16, 297.09, 195.51, 305.77, 195.51, 307.21, 191.16, 320.25, 173.79, 320.25, 149.18, 318.8, 134.71, 317.35, 124.57, 314.46, 111.55, 311.56, 97.07, 311.56, 91.28, 310.11, 84.04, 327.48, 75.35, 343.41, 50.73, 356.43, 39.15, 359.33, 11.65, 365.12, 11.65, 365.12]], "area": 31747.4391, "iscrowd": 0, "image_id": 461989, "bbox": [11.65, 143.63, 205.58, 221.49], "category_id": 88, "id": 1673297}, {"segmentation": [[109.05, 391.05, 104.33, 410.88, 110.0, 427.89, 116.61, 448.67, 127.0, 465.67, 140.22, 475.12, 162.89, 467.56, 177.06, 458.11, 191.23, 443.94, 220.52, 430.72, 232.8, 443.0, 228.07, 450.56, 198.79, 462.84, 174.23, 478.89, 161.95, 496.84, 175.17, 514.79, 194.07, 534.63, 213.9, 542.18, 236.57, 539.35, 246.96, 521.4, 251.69, 511.96, 297.03, 490.23, 307.42, 505.34, 320.64, 508.18, 337.65, 505.34, 349.93, 495.9, 353.71, 491.17, 358.43, 468.5, 364.1, 453.39, 363.15, 373.1, 386.77, 333.42, 383.93, 309.81, 378.27, 262.58, 382.99, 255.02, 382.99, 248.41, 377.32, 234.24, 355.6, 217.24, 326.31, 184.18, 302.7, 168.12, 273.41, 151.11, 261.13, 157.73, 246.96, 158.67, 237.52, 161.5, 230.91, 170.01, 229.02, 179.45, 233.74, 192.68, 234.68, 195.51, 220.52, 203.07, 212.01, 212.51, 204.46, 228.57, 204.46, 240.85, 213.9, 251.24, 223.35, 253.13, 203.51, 279.58, 195.01, 297.53, 192.18, 308.86, 176.12, 315.48, 163.84, 328.7, 152.5, 345.7, 144.0, 357.04, 136.44, 374.99, 118.5, 377.82, 107.16, 388.21]], "area": 67305.88580000002, "iscrowd": 0, "image_id": 105671, "bbox": [104.33, 151.11, 282.44, 391.07], "category_id": 88, "id": 1673695}, {"segmentation": [[408.63, 186.47, 407.11, 185.21, 405.09, 184.7, 400.8, 186.47, 399.54, 188.74, 399.29, 192.53, 398.28, 195.05, 398.02, 198.33, 399.29, 201.62, 396.76, 203.13, 393.73, 205.65, 391.21, 209.44, 389.19, 213.73, 387.17, 217.27, 387.42, 219.54, 387.17, 222.82, 386.92, 225.85, 388.18, 226.86, 387.67, 227.87, 389.95, 229.38, 400.8, 229.38, 406.1, 227.87, 407.87, 223.83, 410.64, 223.83, 416.7, 223.07, 427.05, 222.57, 427.56, 220.8, 426.3, 216.26, 425.54, 213.98, 424.53, 212.98, 419.98, 212.22, 418.98, 207.93, 419.98, 206.16, 422.26, 205.65, 423.27, 205.15, 424.53, 202.63, 424.53, 199.6, 423.01, 197.32, 423.01, 194.55, 421.5, 191.27, 419.73, 188.24, 418.98, 185.46, 416.96, 184.96, 415.19, 185.97, 408.12, 186.97]], "area": 1195.6548, "iscrowd": 0, "image_id": 233439, "bbox": [386.92, 184.7, 40.64, 44.68], "category_id": 88, "id": 1673733}, {"segmentation": [[258.26, 157.85, 258.32, 156.17, 259.05, 160.02, 259.71, 161.58, 257.33, 163.71, 253.65, 164.28, 247.75, 165.34, 246.69, 164.69, 243.66, 162.15, 242.92, 159.69, 242.84, 158.38, 244.15, 157.15, 247.01, 155.84, 248.98, 152.73, 249.23, 150.44, 254.3, 150.52, 258.07, 151.59]], "area": 176.00655000000003, "iscrowd": 0, "image_id": 377226, "bbox": [242.84, 150.44, 16.87, 14.9], "category_id": 1, "id": 1676327}, {"segmentation": [[194.87, 284.95, 192.94, 269.23, 187.37, 258.34, 184.96, 255.2, 182.29, 253.26, 182.29, 244.55, 181.09, 238.02, 177.7, 234.88, 173.59, 233.91, 171.41, 234.15, 166.81, 239.23, 166.57, 249.87, 166.09, 254.47, 161.25, 258.34, 158.59, 268.02, 162.7, 281.08, 161.25, 287.37]], "area": 1261.0745500000003, "iscrowd": 0, "image_id": 385701, "bbox": [158.59, 233.91, 36.28, 53.46], "category_id": 1, "id": 1676362}, {"segmentation": [[33.86, 223.17, 35.75, 218.65, 33.71, 216.61, 32.83, 213.98, 32.83, 211.5, 35.02, 209.17, 37.06, 208.29, 39.84, 208.15, 41.44, 209.17, 43.48, 210.48, 44.65, 214.13, 44.5, 217.05, 44.5, 217.78, 45.23, 218.65, 45.38, 219.38, 44.94, 220.84, 42.9, 220.98, 42.32, 225.65, 43.04, 232.65, 45.67, 239.36, 49.17, 246.07, 42.61, 244.91, 39.11, 240.97, 39.25, 234.99, 39.25, 230.9, 34.44, 225.36]], "area": 277.11395000000005, "iscrowd": 0, "image_id": 357428, "bbox": [32.83, 208.15, 16.34, 37.92], "category_id": 1, "id": 1676790}, {"segmentation": [[626.46, 200.61, 622.48, 200.61, 625.8, 190.64, 629.78, 182.67, 635.76, 175.37, 637.75, 172.71, 640.0, 171.38, 639.74, 242.45, 634.43, 239.8, 627.79, 233.82, 631.11, 223.19, 629.12, 213.89, 626.46, 204.59]], "area": 741.5119000000009, "iscrowd": 0, "image_id": 462123, "bbox": [622.48, 171.38, 17.52, 71.07], "category_id": 1, "id": 1676970}, {"segmentation": [[360.54, 211.12, 337.62, 196.49, 341.52, 187.22, 339.57, 173.56, 333.23, 182.34, 329.32, 183.81, 324.93, 189.17, 319.08, 180.39, 327.86, 161.37, 331.76, 143.81, 331.76, 134.06, 336.64, 127.23, 343.47, 128.69, 345.42, 131.13, 348.83, 138.93, 358.1, 143.32, 362.98, 150.64, 367.86, 166.25, 373.71, 177.95, 376.15, 182.83, 377.12, 187.71, 378.1, 196.0, 373.22, 203.32, 369.32, 205.76, 361.52, 203.32], [363.42, 241.93, 339.0, 230.25, 345.16, 253.18, 347.28, 254.88, 368.51, 253.18]], "area": 3050.055750000002, "iscrowd": 0, "image_id": 275432, "bbox": [319.08, 127.23, 59.02, 127.65], "category_id": 1, "id": 1677066}, {"segmentation": [[504.13, 91.26, 509.51, 84.45, 508.8, 77.99, 514.89, 74.41, 519.2, 55.76, 523.5, 49.66, 535.33, 42.85, 549.68, 50.38, 554.7, 67.23, 554.34, 76.92, 555.42, 81.58, 563.66, 85.52, 561.51, 90.54, 539.64, 91.26]], "area": 1772.25105, "iscrowd": 0, "image_id": 263098, "bbox": [504.13, 42.85, 59.53, 48.41], "category_id": 1, "id": 1677693}, {"segmentation": [[351.6, 139.63, 359.2, 128.01, 363.43, 110.47, 366.6, 100.11, 365.97, 93.56, 363.43, 84.05, 362.59, 70.73, 363.85, 65.87, 366.6, 62.49, 370.2, 59.95, 372.73, 58.68, 374.21, 57.41, 372.94, 53.61, 372.1, 50.44, 371.04, 48.75, 371.89, 42.2, 376.75, 39.45, 378.86, 39.45, 380.76, 39.66, 382.67, 40.72, 383.51, 41.56, 384.36, 43.25, 385.41, 46.0, 385.84, 48.96, 385.84, 51.92, 385.41, 55.3, 386.89, 56.78, 389.01, 59.74, 387.32, 64.81, 383.3, 72.84, 380.34, 79.18, 379.28, 83.83, 378.44, 88.7, 376.96, 94.4, 380.76, 100.74, 383.3, 102.65, 383.09, 111.95, 383.09, 116.6, 381.19, 124.2, 381.61, 128.85, 381.61, 130.12, 379.28, 127.8, 376.75, 131.18, 364.91, 147.24, 361.74, 149.99, 357.09, 143.23, 353.92, 141.11]], "area": 1826.6101499999995, "iscrowd": 0, "image_id": 275432, "bbox": [351.6, 39.45, 37.41, 110.54], "category_id": 1, "id": 1677977}, {"segmentation": [[110.0, 276.33, 110.0, 273.19, 109.7, 271.67, 110.11, 270.45, 109.7, 268.83, 107.37, 268.12, 106.76, 268.53, 104.94, 273.59, 104.84, 275.31]], "area": 32.085200000000036, "iscrowd": 0, "image_id": 539099, "bbox": [104.84, 268.12, 5.27, 8.21], "category_id": 1, "id": 1678159}, {"segmentation": [[210.74, 181.98, 210.26, 178.42, 210.86, 174.15, 212.52, 171.42, 214.18, 169.53, 215.36, 167.99, 216.31, 167.39, 215.6, 165.61, 215.24, 163.36, 216.43, 161.23, 217.97, 159.92, 220.7, 159.45, 222.59, 160.52, 223.31, 160.99, 225.08, 162.18, 226.03, 166.33, 225.91, 168.7, 224.97, 169.41, 224.14, 170.48, 225.91, 173.68, 227.1, 177.35, 227.1, 178.66]], "area": 250.0397499999998, "iscrowd": 0, "image_id": 377226, "bbox": [210.26, 159.45, 16.84, 22.53], "category_id": 1, "id": 1678172}, {"segmentation": [[392.23, 239.75, 391.13, 235.9, 393.6, 231.5, 399.92, 230.13, 404.04, 237.55, 405.42, 244.69, 406.24, 251.01, 396.9, 267.77, 394.43, 269.15, 369.42, 271.07, 360.63, 269.15, 360.9, 262.0, 360.08, 261.18, 355.96, 266.4, 355.96, 267.5, 351.01, 269.7, 348.54, 265.85, 351.01, 264.2, 362.0, 258.71, 366.12, 257.88, 379.04, 258.16, 382.61, 256.78, 383.16, 251.01, 388.66, 243.59, 393.33, 239.47]], "area": 953.1884499999992, "iscrowd": 0, "image_id": 294416, "bbox": [348.54, 230.13, 57.7, 40.94], "category_id": 1, "id": 1678366}, {"segmentation": [[24.7, 195.65, 24.07, 192.81, 25.32, 190.4, 25.05, 189.07, 23.63, 187.47, 21.85, 186.67, 20.51, 187.47, 19.98, 189.07, 19.0, 192.63, 17.93, 195.47, 17.8, 203.75, 21.79, 204.4, 25.2, 201.4, 25.49, 198.65]], "area": 102.91920000000005, "iscrowd": 0, "image_id": 338086, "bbox": [17.8, 186.67, 7.69, 17.73], "category_id": 1, "id": 1679246}, {"segmentation": [[637.88, 261.65, 627.0, 294.28, 625.03, 305.65, 625.03, 319.0, 625.03, 327.9, 624.04, 339.76, 623.54, 347.18, 624.53, 350.15, 623.54, 356.57, 620.58, 372.4, 626.51, 391.68, 635.9, 403.05, 638.87, 400.08, 640.0, 363.99]], "area": 1756.9831500000016, "iscrowd": 0, "image_id": 336675, "bbox": [620.58, 261.65, 19.42, 141.4], "category_id": 1, "id": 1679653}, {"segmentation": [[130.79, 218.31, 140.41, 212.54, 129.83, 234.66, 130.79, 220.23], [146.18, 207.73, 152.91, 202.92, 160.61, 207.73, 161.57, 223.12, 153.87, 227.93, 152.91, 235.62, 159.64, 247.16, 166.38, 246.2, 166.38, 255.82, 180.8, 258.7, 188.5, 265.43, 184.65, 276.01, 175.99, 290.44, 183.69, 301.02, 178.88, 314.48, 162.53, 304.86, 141.37, 298.13, 124.06, 287.55, 124.06, 268.32, 130.79, 240.43, 130.79, 228.89], [449.12, 154.84, 455.85, 136.56, 458.74, 124.06, 470.28, 123.1, 474.12, 134.64, 481.82, 145.22, 489.51, 159.64, 489.51, 176.95, 487.59, 198.11, 475.09, 212.54, 468.35, 233.7, 465.47, 259.66, 463.55, 268.32, 449.12, 262.55, 441.43, 260.62, 454.89, 253.89, 451.04, 216.39, 449.12, 171.18, 448.16, 166.38, 455.85, 149.07]], "area": 7736.0747, "iscrowd": 0, "image_id": 221328, "bbox": [124.06, 123.1, 365.45, 191.38], "category_id": 1, "id": 1679654}, {"segmentation": [[636.94, 231.06, 621.51, 247.89, 618.23, 260.99, 625.72, 269.4, 637.87, 276.88, 640.0, 272.67]], "area": 589.8629500000003, "iscrowd": 0, "image_id": 510979, "bbox": [618.23, 231.06, 21.77, 45.82], "category_id": 1, "id": 1679704}, {"segmentation": [[218.17, 393.68, 218.85, 395.97, 218.85, 397.16, 219.02, 398.95, 218.42, 400.57, 217.4, 403.03, 216.04, 396.57, 215.19, 394.87, 215.36, 394.44]], "area": 19.23169999999991, "iscrowd": 0, "image_id": 334097, "bbox": [215.19, 393.68, 3.83, 9.35], "category_id": 1, "id": 1679744}, {"segmentation": [[66.9, 241.08, 68.98, 236.46, 66.9, 229.54, 62.98, 227.24, 56.75, 229.31, 54.67, 237.62, 51.21, 250.31, 57.67, 277.3, 72.44, 262.77, 70.36, 249.85, 68.29, 242.23]], "area": 679.10265, "iscrowd": 0, "image_id": 415946, "bbox": [51.21, 227.24, 21.23, 50.06], "category_id": 1, "id": 1679948}, {"segmentation": [[142.58, 0.0, 145.83, 19.41, 147.78, 24.95, 160.8, 23.64, 172.51, 20.07, 174.79, 8.68, 173.17, 0.0], [145.18, 37.65, 144.85, 46.11, 147.78, 47.41, 153.97, 44.48, 156.24, 51.32, 158.2, 52.94, 166.01, 51.97, 166.98, 44.81, 166.33, 41.23, 167.31, 32.44, 155.27, 36.02, 149.73, 36.35]], "area": 975.0761999999993, "iscrowd": 0, "image_id": 285022, "bbox": [142.58, 0.0, 32.21, 52.94], "category_id": 1, "id": 1680571}, {"segmentation": [[461.48, 230.92, 463.1, 223.39, 466.56, 223.19, 467.38, 218.71, 464.12, 216.27, 464.73, 212.4, 469.41, 209.35, 463.1, 207.72, 461.27, 204.27, 458.22, 200.4, 449.27, 200.4, 451.1, 210.17, 449.68, 218.51, 450.08, 226.44, 452.73, 230.71, 454.76, 230.92]], "area": 413.20635000000004, "iscrowd": 0, "image_id": 16125, "bbox": [449.27, 200.4, 20.14, 30.52], "category_id": 1, "id": 1680884}, {"segmentation": [[187.25, 253.13, 187.8, 249.31, 189.25, 247.12, 190.71, 246.39, 193.08, 245.85, 191.99, 243.66, 191.99, 241.48, 193.08, 240.2, 197.45, 240.93, 198.0, 242.2, 198.18, 244.94, 200.18, 247.49, 201.46, 248.22, 201.82, 250.04, 201.64, 251.13, 200.73, 253.68, 200.37, 255.32, 200.91, 256.96, 200.91, 259.51, 200.73, 264.97, 200.0, 266.25, 199.27, 267.16, 198.91, 262.06, 198.54, 260.24, 197.45, 260.24, 193.81, 260.42, 192.72, 260.42, 190.17, 260.6, 188.34, 262.79, 188.53, 264.97, 189.25, 266.43, 189.8, 267.71, 189.8, 268.98, 189.25, 269.71, 187.25, 270.08, 185.43, 270.44, 188.34, 269.16, 188.34, 267.89, 187.25, 265.7, 185.43, 261.33, 185.43, 259.87, 186.16, 256.96, 187.07, 255.14, 187.98, 253.32, 187.98, 252.59]], "area": 257.72290000000004, "iscrowd": 0, "image_id": 506417, "bbox": [185.43, 240.2, 16.39, 30.24], "category_id": 1, "id": 1680899}, {"segmentation": [[614.96, 321.99, 623.7, 280.04, 624.28, 263.73, 624.87, 245.67, 634.77, 229.95, 639.43, 217.13, 638.85, 330.14, 627.2, 327.81, 613.8, 322.57], [618.46, 218.88, 626.03, 197.91, 629.53, 188.59, 633.61, 181.59, 640.0, 176.35, 640.0, 178.68, 640.0, 193.25, 626.03, 214.8, 622.54, 225.87]], "area": 2013.893199999997, "iscrowd": 0, "image_id": 221328, "bbox": [613.8, 176.35, 26.2, 153.79], "category_id": 1, "id": 1681441}, {"segmentation": [[549.06, 246.87, 551.32, 235.07, 550.63, 193.41, 552.01, 186.52, 565.44, 181.01, 579.56, 180.67, 586.1, 183.08, 599.53, 194.78, 607.45, 233.35, 599.19, 275.36, 604.01, 321.16, 600.56, 332.52, 600.91, 350.43, 599.19, 365.23, 576.11, 365.92, 572.67, 360.76, 565.78, 316.68, 564.06, 316.68, 558.9, 323.91, 559.24, 363.17, 553.73, 353.18, 547.53, 329.76, 548.57, 313.58, 547.88, 248.5]], "area": 8943.898550000002, "iscrowd": 0, "image_id": 550028, "bbox": [547.53, 180.67, 59.92, 185.25], "category_id": 1, "id": 1683953}, {"segmentation": [[0.96, 284.99, 8.64, 296.5, 8.64, 296.5, 23.99, 309.93, 21.11, 337.76, 21.11, 337.76, 29.75, 346.4, 30.71, 378.06, 38.38, 389.58, 13.43, 390.54, 17.39, 354.32, 2.2, 348.62]], "area": 1787.03205, "iscrowd": 0, "image_id": 450281, "bbox": [0.96, 284.99, 37.42, 105.55], "category_id": 1, "id": 1684087}, {"segmentation": [[47.28, 212.28, 62.93, 215.7, 71.73, 210.32, 95.21, 197.12, 91.29, 210.32, 90.8, 213.74, 101.56, 236.73, 98.63, 247.0, 97.65, 249.93, 99.12, 255.31, 102.54, 258.73, 104.01, 262.65, 104.01, 269.0, 102.54, 273.4, 102.54, 281.23, 100.1, 286.12, 90.8, 291.99, 83.96, 295.41, 99.61, 309.1, 105.96, 313.99, 107.43, 315.95, 100.59, 317.9, 88.85, 318.88, 75.16, 322.79, 70.76, 328.17, 64.4, 336.0, 56.08, 343.33, 47.77, 348.22, 27.23, 353.11, 27.23, 342.35, 21.85, 335.51, 14.03, 328.17, 15.99, 316.44, 25.77, 305.19, 30.17, 300.79, 36.52, 295.9, 24.79, 295.41, 18.92, 293.45, 18.92, 292.96, 16.96, 281.23, 15.01, 270.47, 15.01, 253.84, 15.01, 243.08, 19.9, 233.3, 24.79, 223.52, 25.28, 214.23, 26.74, 210.32, 29.68, 205.43, 32.61, 204.94, 38.48, 203.47]], "area": 10028.307800000002, "iscrowd": 0, "image_id": 461530, "bbox": [14.03, 197.12, 93.4, 155.99], "category_id": 1, "id": 1684475}, {"segmentation": [[323.98, 139.49, 327.09, 134.97, 327.37, 127.34, 321.72, 119.14, 321.72, 111.79, 324.83, 99.64, 319.17, 95.4, 315.21, 86.63, 318.32, 85.5, 323.69, 85.5, 325.96, 85.22, 327.09, 78.44, 332.74, 76.46, 338.11, 80.98, 341.5, 89.18, 342.07, 100.2, 337.26, 115.75, 335.0, 123.66, 338.68, 131.86, 335.28, 139.49, 324.26, 140.62]], "area": 964.31335, "iscrowd": 0, "image_id": 522150, "bbox": [315.21, 76.46, 26.86, 64.16], "category_id": 1, "id": 1685192}, {"segmentation": [[59.32, 198.91, 57.89, 196.21, 59.17, 191.92, 60.75, 189.54, 61.71, 186.84, 63.61, 185.09, 66.0, 185.89, 67.11, 188.11, 65.84, 190.49, 65.36, 191.61, 67.75, 195.42, 67.43, 198.44, 67.43, 200.82, 67.43, 204.79, 67.27, 207.49, 63.61, 206.38, 63.3, 204.95, 63.93, 202.89]], "area": 132.29900000000006, "iscrowd": 0, "image_id": 338086, "bbox": [57.89, 185.09, 9.86, 22.4], "category_id": 1, "id": 1685650}, {"segmentation": [[300.68, 324.84, 300.9, 320.33, 301.11, 316.68, 302.83, 314.53, 307.13, 313.89, 310.13, 315.18, 311.85, 321.4, 311.63, 324.19, 315.93, 327.84, 319.79, 352.96, 320.65, 357.47, 319.36, 361.34, 311.63, 355.11, 310.35, 364.77, 311.42, 387.48, 314.21, 399.08, 317.43, 404.44, 320.44, 408.39, 318.51, 412.9, 310.99, 410.97, 308.2, 407.32, 306.05, 398.51, 303.91, 383.91, 298.75, 396.8, 300.47, 400.02, 298.54, 402.81, 295.1, 401.73, 292.74, 398.3, 292.31, 394.43, 294.89, 379.62, 295.75, 343.76, 297.25, 336.73, 298.32, 331.58]], "area": 1588.7920500000012, "iscrowd": 0, "image_id": 111831, "bbox": [292.31, 313.89, 28.34, 99.01], "category_id": 1, "id": 1685810}, {"segmentation": [[229.45, 107.52, 231.57, 118.32, 235.17, 116.42, 234.11, 103.5, 237.71, 102.65, 234.32, 88.47, 235.8, 82.54, 235.17, 79.36, 231.57, 78.09, 228.81, 75.55, 224.58, 75.34, 222.04, 80.63, 223.1, 84.44, 223.73, 92.91, 224.37, 101.59, 225.21, 112.6, 225.85, 118.11, 229.45, 117.9, 230.3, 113.45], [235.7, 83.17, 237.89, 90.76, 238.01, 97.18, 236.47, 97.57, 234.29, 88.57]], "area": 484.04035, "iscrowd": 0, "image_id": 522150, "bbox": [222.04, 75.34, 15.97, 42.98], "category_id": 1, "id": 1685990}, {"segmentation": [[278.03, 149.99, 277.88, 148.81, 277.64, 147.64, 277.48, 146.77, 277.09, 146.07, 276.62, 145.75, 276.07, 145.67, 275.44, 145.91, 274.73, 146.38, 273.87, 148.66, 273.87, 149.44, 273.95, 150.38, 274.18, 151.56, 274.5, 152.58, 274.5, 153.13, 274.03, 155.02, 274.03, 155.8, 274.03, 156.27, 274.03, 156.98, 274.73, 158.31, 274.73, 159.1, 275.28, 160.83, 275.44, 161.06, 275.68, 162.16, 275.91, 162.79, 276.3, 163.18, 276.85, 163.42, 277.33, 163.42, 279.6, 163.42, 280.39, 163.34, 280.94, 162.4, 280.94, 162.24, 279.92, 160.75, 279.37, 160.28, 278.82, 159.96, 278.19, 159.57, 277.88, 159.18, 277.8, 157.84, 278.11, 157.45, 278.42, 156.74, 278.82, 154.31, 278.97, 154.15, 279.21, 153.29, 279.21, 153.13, 279.21, 152.82, 279.21, 152.43, 278.66, 151.17, 278.19, 150.62, 278.03, 150.46]], "area": 72.29485000000001, "iscrowd": 0, "image_id": 311522, "bbox": [273.87, 145.67, 7.07, 17.75], "category_id": 1, "id": 1686402}, {"segmentation": [[103.55, 640.0, 103.55, 617.08, 106.43, 591.2, 106.43, 539.42, 81.98, 496.28, 64.72, 467.51, 58.97, 447.38, 33.08, 434.43, 15.82, 430.12, 15.82, 407.11, 15.82, 386.97, 18.7, 340.95, 21.57, 306.43, 15.82, 289.17, 0.0, 277.67, 1.44, 640.0, 100.67, 640.0]], "area": 21046.8404, "iscrowd": 0, "image_id": 111759, "bbox": [0.0, 277.67, 106.43, 362.33], "category_id": 1, "id": 1687244}, {"segmentation": [[178.31, 390.14, 181.08, 388.76, 183.67, 389.45, 184.71, 391.7, 182.46, 395.15, 186.78, 397.06, 188.68, 403.11, 187.3, 416.24, 184.88, 421.25, 184.54, 416.93, 184.88, 413.65, 183.84, 411.23, 181.25, 409.15, 179.35, 409.33, 179.7, 400.51, 179.52, 399.13, 178.49, 398.27, 177.1, 392.73]], "area": 187.02205000000035, "iscrowd": 0, "image_id": 334097, "bbox": [177.1, 388.76, 11.58, 32.49], "category_id": 1, "id": 1687509}, {"segmentation": [[414.1, 40.6, 408.74, 43.99, 408.74, 52.4, 404.15, 53.93, 401.09, 56.99, 403.39, 61.58, 402.62, 63.11, 398.03, 66.17, 391.91, 75.35, 389.62, 79.94, 387.32, 86.83, 385.79, 92.18, 388.85, 96.01, 391.15, 96.77, 394.21, 96.77, 400.33, 109.01, 401.86, 118.19, 400.33, 129.67, 401.09, 138.85, 401.09, 145.73, 401.09, 153.38, 399.56, 158.74, 399.56, 161.03, 412.57, 158.74, 414.1, 117.43, 419.45, 115.13, 434.75, 141.14, 437.81, 159.5, 453.11, 157.21, 446.23, 131.96, 437.05, 109.01, 440.87, 107.48, 440.87, 96.77, 437.81, 78.41, 429.4, 65.41, 424.81, 58.52, 421.75, 53.17, 424.04, 50.87, 422.51, 44.75, 415.63, 40.93]], "area": 3924.7415000000024, "iscrowd": 0, "image_id": 275432, "bbox": [385.79, 40.6, 67.32, 120.43], "category_id": 1, "id": 1687685}, {"segmentation": [[595.76, 45.37, 598.53, 43.47, 600.43, 36.2, 602.16, 34.64, 605.63, 34.64, 610.3, 35.16, 612.2, 38.1, 612.2, 48.48, 611.51, 83.44, 603.03, 84.31, 591.61, 82.06, 586.76, 80.33, 585.38, 79.11, 586.07, 74.79, 586.24, 68.39, 586.59, 62.16, 588.49, 56.96, 590.74, 54.37, 591.78, 53.5, 594.03, 52.29, 595.07, 51.77], [619.9, 54.09, 631.01, 61.41, 635.23, 71.41, 635.67, 81.18, 635.67, 90.06, 635.0, 95.62, 629.67, 97.39, 617.02, 90.73, 617.9, 56.75, 617.9, 54.31]], "area": 1646.2339500000007, "iscrowd": 0, "image_id": 524522, "bbox": [585.38, 34.64, 50.29, 62.75], "category_id": 1, "id": 1687871}, {"segmentation": [[8.44, 314.27, 11.17, 320.92, 11.17, 327.09, 12.48, 335.31, 14.91, 334.19, 14.54, 327.65, 16.59, 325.59, 14.35, 316.25, 16.96, 316.62, 16.78, 313.07, 19.58, 311.2, 20.51, 305.41, 16.22, 305.04, 14.91, 301.67, 13.79, 300.18, 12.11, 302.42, 11.92, 304.1, 8.18, 308.77, 7.43, 311.95]], "area": 202.29804999999976, "iscrowd": 0, "image_id": 482024, "bbox": [7.43, 300.18, 13.08, 35.13], "category_id": 1, "id": 1688114}, {"segmentation": [[498.16, 16.56, 496.11, 22.69, 503.27, 27.3, 524.75, 31.9, 532.93, 44.68, 538.56, 83.04, 544.18, 91.22, 539.58, 97.87, 547.25, 108.09, 547.25, 114.74, 543.67, 123.44, 543.67, 140.82, 544.69, 161.28, 550.83, 170.48, 555.94, 199.63, 549.81, 200.14, 541.63, 196.05, 535.49, 190.94, 529.86, 176.11, 524.75, 160.77, 515.03, 132.64, 512.48, 122.41, 503.27, 117.81, 492.02, 115.25, 480.77, 115.25, 478.73, 107.07, 474.63, 99.91, 465.43, 97.87, 463.9, 90.71, 464.92, 79.46, 469.01, 83.04, 469.01, 50.31, 474.63, 45.19, 473.1, 38.04, 478.21, 37.52, 471.57, 33.94, 463.9, 16.05, 445.49, 11.95, 451.11, 8.89, 456.23, 7.35, 462.36, 1.22, 511.97, 0.19, 514.01, 6.84, 510.43, 12.47, 504.3, 17.58]], "area": 9046.794200000002, "iscrowd": 0, "image_id": 3366, "bbox": [445.49, 0.19, 110.45, 199.95], "category_id": 1, "id": 1688359}, {"segmentation": [[512.7, 107.03, 506.88, 105.69, 520.74, 100.32, 531.02, 98.98, 548.46, 108.37, 548.46, 113.28, 546.67, 124.01, 539.96, 135.64, 542.2, 141.45, 569.02, 154.86, 566.78, 212.97, 566.34, 214.76, 546.22, 170.5, 526.11, 161.12, 518.95, 149.05, 527.0, 145.92, 528.79, 136.53, 523.42, 111.94, 514.04, 108.37]], "area": 2389.814649999998, "iscrowd": 0, "image_id": 579533, "bbox": [506.88, 98.98, 62.14, 115.78], "category_id": 1, "id": 1689042}, {"segmentation": [[387.72, 430.84, 384.51, 416.41, 390.92, 389.96, 404.55, 368.31, 398.14, 358.69, 388.52, 348.27, 398.14, 339.46, 402.15, 330.64, 398.94, 310.6, 414.97, 283.34, 422.99, 283.34, 422.99, 493.21]], "area": 4978.7872, "iscrowd": 0, "image_id": 64071, "bbox": [384.51, 283.34, 38.48, 209.87], "category_id": 1, "id": 1689406}, {"segmentation": [[395.7, 32.59, 398.04, 29.0, 400.55, 26.48, 400.01, 21.99, 401.45, 19.65, 404.15, 20.91, 405.23, 27.02, 410.26, 27.38, 412.6, 31.69, 396.6, 32.41]], "area": 96.90229999999995, "iscrowd": 0, "image_id": 204294, "bbox": [395.7, 19.65, 16.9, 12.94], "category_id": 1, "id": 1689510}, {"segmentation": [[89.2, 56.2, 87.56, 47.34, 87.8, 41.27, 92.7, 39.4, 92.23, 35.67, 93.86, 30.77, 99.0, 30.3, 101.33, 33.34, 101.56, 38.47, 108.1, 39.4, 111.6, 43.37, 109.26, 51.54, 105.06, 53.17, 104.83, 60.87, 100.63, 65.77, 97.36, 64.14, 89.66, 56.2]], "area": 512.84805, "iscrowd": 0, "image_id": 375659, "bbox": [87.56, 30.3, 24.04, 35.47], "category_id": 1, "id": 1689559}, {"segmentation": [[303.21, 45.57, 303.21, 45.57, 301.93, 54.26, 301.93, 54.26, 302.25, 58.12, 302.25, 58.44, 300.64, 62.62, 295.17, 62.94, 287.77, 75.5, 287.44, 106.07, 289.37, 113.15, 290.02, 122.48, 287.12, 131.17, 287.44, 143.4, 287.44, 143.4, 292.91, 150.8, 293.56, 150.8, 306.75, 131.49, 311.26, 135.67, 316.41, 163.03, 330.57, 162.38, 330.89, 162.06, 329.6, 148.87, 326.7, 135.99, 325.74, 111.54, 331.21, 106.39, 330.57, 90.3, 330.57, 90.3, 324.13, 73.24, 316.73, 62.3, 318.02, 50.72, 312.22, 42.35, 303.53, 43.64]], "area": 3614.763900000001, "iscrowd": 0, "image_id": 275432, "bbox": [287.12, 42.35, 44.09, 120.68], "category_id": 1, "id": 1689815}, {"segmentation": [[82.16, 284.09, 76.98, 283.72, 80.68, 278.91, 81.42, 270.03, 82.16, 260.78, 82.9, 247.46, 82.9, 238.58, 76.98, 244.13, 69.21, 246.35, 68.47, 243.39, 69.58, 242.28, 77.72, 236.73, 83.64, 231.55, 85.12, 230.81, 81.79, 224.89, 84.01, 217.86, 92.15, 218.23, 91.04, 224.89, 95.11, 230.07, 97.33, 234.88, 94.0, 245.98, 92.52, 255.97, 90.67, 265.59, 94.0, 274.47, 97.33, 281.5, 91.78, 283.35, 86.6, 283.35, 91.41, 279.65, 90.3, 276.32, 87.71, 271.88, 81.79, 283.72]], "area": 775.60695, "iscrowd": 0, "image_id": 394242, "bbox": [68.47, 217.86, 28.86, 66.23], "category_id": 1, "id": 1690238}, {"segmentation": [[274.5, 301.25, 273.78, 298.13, 277.61, 298.13, 277.85, 301.97]], "area": 12.320400000000163, "iscrowd": 0, "image_id": 482024, "bbox": [273.78, 298.13, 4.07, 3.84], "category_id": 1, "id": 1690409}, {"segmentation": [[173.56, 422.86, 166.14, 424.56, 164.66, 421.17, 163.81, 414.39, 163.81, 410.15, 163.18, 407.19, 164.66, 405.49, 166.99, 401.68, 169.74, 399.99, 169.53, 398.72, 166.35, 396.39, 166.99, 392.15, 172.07, 391.51, 173.77, 395.54, 172.5, 398.29, 176.52, 405.92, 176.1, 417.15, 174.62, 422.02], [170.17, 430.07, 169.96, 438.54, 170.17, 442.14, 169.53, 444.26, 165.3, 443.84, 163.6, 440.66, 167.63, 441.72, 166.78, 436.63, 166.14, 431.34, 166.57, 428.58, 171.23, 427.1, 174.62, 427.95, 174.62, 437.27, 174.4, 441.08, 176.52, 442.78, 176.74, 444.26, 172.5, 445.53, 171.23, 444.68, 171.44, 439.81, 171.65, 431.55, 171.23, 430.28, 170.38, 429.86, 170.17, 430.91]], "area": 427.8302999999999, "iscrowd": 0, "image_id": 334097, "bbox": [163.18, 391.51, 13.56, 54.02], "category_id": 1, "id": 1690410}, {"segmentation": [[123.3, 268.57, 124.94, 267.66, 126.42, 267.58, 127.24, 267.99, 128.47, 269.39, 129.7, 271.36, 129.13, 273.41, 128.31, 274.89, 128.22, 275.54, 130.77, 278.5, 131.02, 281.78, 131.59, 284.0, 119.11, 280.14, 119.52, 278.74, 120.43, 276.2, 121.41, 274.8, 122.72, 274.23, 122.48, 270.78, 122.48, 269.3]], "area": 117.16399999999987, "iscrowd": 0, "image_id": 539099, "bbox": [119.11, 267.58, 12.48, 16.42], "category_id": 1, "id": 1690495}, {"segmentation": [[17.0, 226.32, 19.14, 226.88, 22.07, 228.1, 22.26, 229.57, 19.06, 231.82, 17.39, 234.51, 16.65, 234.88, 9.98, 234.7, 7.75, 232.38, 7.1, 229.41, 7.01, 228.95, 6.08, 227.74, 4.14, 222.92, 4.51, 219.68, 5.62, 218.94, 10.35, 219.31, 16.56, 219.77, 18.14, 220.51, 18.97, 221.53, 18.04, 223.2, 17.67, 224.59]], "area": 197.69589999999982, "iscrowd": 0, "image_id": 24730, "bbox": [4.14, 218.94, 18.12, 15.94], "category_id": 1, "id": 1690512}, {"segmentation": [[505.52, 203.54, 505.52, 203.54, 500.17, 205.63, 499.24, 217.02, 494.13, 222.59, 486.93, 233.51, 481.12, 242.81, 486.93, 270.45, 478.8, 276.03, 478.8, 276.03, 501.33, 281.37, 501.57, 275.33, 498.31, 269.29, 505.52, 266.27, 504.82, 252.1, 502.5, 247.45, 510.63, 247.22, 520.85, 248.61, 520.85, 241.41, 530.37, 239.55, 527.12, 228.17, 527.12, 228.17, 527.12, 228.17, 524.57, 223.29, 515.97, 219.57, 515.97, 209.35, 511.56, 204.71, 503.89, 202.38]], "area": 1908.1869500000003, "iscrowd": 0, "image_id": 64744, "bbox": [478.8, 202.38, 51.57, 78.99], "category_id": 1, "id": 1691095}, {"segmentation": [[202.96, 257.22, 204.94, 256.1, 209.16, 256.35, 211.02, 258.46, 211.15, 263.18, 211.52, 266.9, 212.64, 269.88, 214.13, 270.13, 214.37, 277.82, 208.91, 278.32, 193.89, 275.47, 194.89, 273.35, 197.37, 271.37, 199.11, 269.88, 200.6, 268.27, 200.85, 267.77, 198.74, 261.07, 199.6, 258.34, 200.72, 257.72]], "area": 288.5423, "iscrowd": 0, "image_id": 377226, "bbox": [193.89, 256.1, 20.48, 22.22], "category_id": 1, "id": 1691163}, {"segmentation": [[236.26, 414.74, 236.54, 411.94, 236.54, 410.4, 236.26, 409.0, 235.84, 407.18, 235.56, 406.48, 234.86, 404.94, 234.86, 403.39, 234.16, 401.29, 234.86, 400.03, 235.14, 397.93, 235.28, 396.39, 236.26, 394.85, 237.39, 394.71, 238.79, 395.55, 239.63, 396.95, 240.33, 398.91, 241.17, 400.73, 241.17, 403.95, 240.75, 407.88, 241.87, 410.82, 242.15, 414.18, 238.37, 415.58], [235.42, 418.38, 235.7, 421.32, 236.54, 423.14, 239.35, 422.3, 240.47, 421.88, 240.75, 419.78, 240.47, 416.98]], "area": 132.86989999999994, "iscrowd": 0, "image_id": 334097, "bbox": [234.16, 394.71, 7.99, 28.43], "category_id": 1, "id": 1692522}, {"segmentation": [[437.97, 349.85, 432.37, 350.75, 430.92, 351.66, 429.65, 351.84, 429.29, 348.76, 427.84, 345.87, 424.58, 344.78, 421.15, 345.51, 418.25, 345.51, 414.09, 344.06, 412.64, 340.8, 411.92, 337.18, 412.28, 332.84, 412.64, 329.22, 413.37, 327.41, 415.54, 325.24, 416.98, 323.07, 419.16, 322.35, 420.97, 322.16, 423.68, 321.98, 421.51, 318.18, 423.5, 315.47, 424.58, 313.3, 426.03, 312.21, 428.93, 312.39, 430.74, 314.56, 431.1, 318.36, 431.1, 320.35, 435.62, 324.88, 438.52, 327.95, 439.78, 332.48, 441.96, 342.97, 441.96, 344.96, 445.94, 347.5, 443.22, 348.76, 437.25, 350.21]], "area": 750.1637, "iscrowd": 0, "image_id": 539099, "bbox": [411.92, 312.21, 34.02, 39.63], "category_id": 1, "id": 1692582}, {"segmentation": [[32.69, 281.02, 32.52, 278.2, 32.19, 277.54, 32.52, 273.89, 33.02, 272.89, 34.85, 272.39, 36.34, 272.56, 37.84, 274.22, 39.83, 276.54, 40.66, 278.53, 41.16, 280.69, 41.49, 281.69, 43.65, 282.35, 43.81, 282.35, 49.62, 290.98, 51.61, 297.96, 52.28, 302.6, 52.61, 303.93, 23.56, 304.26, 24.39, 294.47, 25.72, 288.33, 26.38, 286.17, 28.54, 283.68, 29.87, 282.35, 31.2, 281.69]], "area": 600.6510499999998, "iscrowd": 0, "image_id": 328487, "bbox": [23.56, 272.39, 29.05, 31.87], "category_id": 1, "id": 1692769}, {"segmentation": [[0.0, 384.9, 8.51, 382.83, 18.03, 394.01, 24.65, 411.81, 27.55, 424.64, 22.58, 444.92, 10.17, 457.76, 10.17, 483.42, 14.31, 493.77, 15.13, 498.74, 2.3, 495.01, 0.0, 495.42]], "area": 2001.6081000000004, "iscrowd": 0, "image_id": 64071, "bbox": [0.0, 382.83, 27.55, 115.91], "category_id": 1, "id": 1692820}, {"segmentation": [[381.91, 247.69, 379.96, 245.98, 379.22, 244.51, 382.4, 240.84, 382.89, 238.39, 383.14, 236.43, 382.65, 232.76, 382.65, 230.56, 382.16, 228.61, 381.67, 226.16, 383.14, 224.2, 385.58, 225.67, 386.81, 229.1, 387.54, 234.48, 387.79, 241.82, 386.56, 246.47, 382.65, 248.42]], "area": 116.29130000000033, "iscrowd": 0, "image_id": 394242, "bbox": [379.22, 224.2, 8.57, 24.22], "category_id": 1, "id": 1692859}, {"segmentation": [[137.32, 40.09, 139.57, 40.84, 140.7, 43.1, 142.2, 45.91, 143.51, 47.6, 143.51, 50.6, 143.57, 53.63, 142.67, 55.64, 141.76, 57.75, 140.86, 59.26, 140.05, 61.17, 140.35, 63.08, 140.35, 64.39, 140.66, 66.4, 140.35, 68.51, 138.44, 67.71, 137.34, 66.5, 136.73, 63.79, 135.73, 60.77, 135.43, 58.76, 136.23, 55.74, 137.04, 50.41, 137.24, 46.89, 137.14, 45.28, 137.54, 44.08, 136.94, 41.97]], "area": 136.88079999999994, "iscrowd": 0, "image_id": 277472, "bbox": [135.43, 40.09, 8.14, 28.42], "category_id": 1, "id": 1692988}, {"segmentation": [[322.42, 197.02, 324.31, 191.74, 325.81, 187.78, 326.57, 183.26, 328.45, 181.94, 332.22, 181.56, 334.67, 182.32, 336.37, 186.27, 337.31, 189.67, 337.31, 190.61, 337.88, 191.17, 337.69, 192.12, 337.12, 194.19, 340.14, 198.9, 346.92, 207.57, 345.42, 210.97, 341.08, 211.34, 339.76, 211.34, 332.79, 194.76]], "area": 264.8835, "iscrowd": 0, "image_id": 206427, "bbox": [322.42, 181.56, 24.5, 29.78], "category_id": 1, "id": 1693013}, {"segmentation": [[222.84, 240.36, 222.84, 234.02, 221.62, 233.14, 220.61, 231.04, 219.33, 227.6, 216.02, 227.06, 217.37, 230.64, 218.38, 231.85, 218.04, 234.69, 214.39, 239.69, 216.15, 239.49, 218.78, 236.58, 219.12, 236.31, 218.58, 240.36]], "area": 55.413700000000226, "iscrowd": 0, "image_id": 394242, "bbox": [214.39, 227.06, 8.45, 13.3], "category_id": 1, "id": 1693288}, {"segmentation": [[450.53, 247.3, 448.07, 246.48, 447.39, 239.38, 448.07, 232.95, 447.25, 232.13, 446.84, 234.59, 445.48, 235.55, 444.93, 233.23, 445.07, 229.4, 447.12, 227.76, 446.57, 224.48, 446.84, 222.7, 450.12, 222.7, 450.81, 224.34, 452.04, 227.49, 454.36, 229.4, 454.22, 231.18, 452.72, 233.91, 452.17, 240.88, 451.49, 244.02, 452.31, 246.07]], "area": 132.04440000000054, "iscrowd": 0, "image_id": 394242, "bbox": [444.93, 222.7, 9.43, 24.6], "category_id": 1, "id": 1695121}, {"segmentation": [[259.7, 74.78, 259.43, 71.3, 259.7, 70.1, 259.83, 70.1, 256.75, 69.3, 255.28, 71.3, 254.75, 73.04, 254.48, 73.98, 253.28, 76.79, 252.07, 80.0, 251.67, 84.68, 252.07, 86.81, 254.35, 88.95, 254.48, 93.37, 254.75, 100.45, 256.89, 105.27, 258.49, 110.61, 258.76, 119.84, 258.89, 120.78, 264.91, 114.22, 264.78, 108.07, 264.64, 103.39, 263.84, 91.36, 262.24, 88.69, 261.7, 86.41, 261.97, 84.41, 262.24, 82.54, 261.7, 81.07, 260.63, 78.26, 259.96, 77.05, 259.83, 75.45]], "area": 379.7251499999998, "iscrowd": 0, "image_id": 522150, "bbox": [251.67, 69.3, 13.24, 51.48], "category_id": 1, "id": 1695474}, {"segmentation": [[567.04, 235.17, 568.86, 240.37, 569.39, 242.84, 570.3, 244.66, 570.69, 247.01, 569.65, 247.27, 567.56, 246.22, 565.09, 247.4, 564.31, 248.83, 564.18, 250.39, 564.18, 251.95, 563.27, 251.56, 562.1, 249.74, 561.19, 247.53, 561.84, 245.7, 560.02, 244.01, 559.37, 242.19, 559.37, 237.25, 561.06, 235.17, 561.06, 234.0, 560.41, 231.66, 560.41, 230.23, 560.8, 228.93, 562.23, 229.45, 563.4, 230.62, 563.4, 232.57, 563.66, 233.09, 564.18, 234.13, 565.35, 234.13]], "area": 135.03104999999982, "iscrowd": 0, "image_id": 539099, "bbox": [559.37, 228.93, 11.32, 23.02], "category_id": 1, "id": 1695561}, {"segmentation": [[304.62, 75.05, 304.82, 70.18, 307.31, 67.17, 308.56, 66.03, 309.28, 63.33, 310.11, 61.88, 310.94, 61.36, 312.6, 61.26, 313.85, 62.19, 315.09, 64.06, 315.3, 66.44, 315.51, 68.21, 316.54, 70.49, 315.71, 70.9, 311.98, 70.8, 310.42, 72.35, 309.91, 74.84, 309.6, 76.92, 308.45, 76.92, 306.48, 75.78]], "area": 99.87280000000017, "iscrowd": 0, "image_id": 522150, "bbox": [304.62, 61.26, 11.92, 15.66], "category_id": 1, "id": 1695658}, {"segmentation": [[177.07, 187.96, 174.05, 184.44, 177.32, 175.12, 182.36, 175.88, 185.13, 179.15, 185.13, 186.7]], "area": 108.08664999999993, "iscrowd": 0, "image_id": 377226, "bbox": [174.05, 175.12, 11.08, 12.84], "category_id": 1, "id": 1695757}, {"segmentation": [[214.68, 123.28, 214.68, 111.5, 215.44, 98.58, 210.88, 91.74, 210.5, 86.42, 210.88, 81.09, 212.78, 75.77, 213.87, 73.87, 217.14, 68.69, 217.95, 66.78, 218.5, 64.87, 219.86, 62.42, 222.04, 60.51, 222.31, 56.15, 223.95, 53.16, 225.86, 51.25, 226.67, 48.8, 226.95, 47.71, 230.49, 48.52, 232.4, 50.7, 234.85, 53.97, 238.39, 61.06, 237.57, 64.87, 239.21, 67.6, 238.39, 72.23, 240.03, 75.5, 241.66, 83.68, 244.11, 86.13, 245.2, 97.03, 246.56, 109.29, 247.65, 116.1, 244.93, 118.55, 243.57, 120.46, 243.57, 133.27, 246.56, 142.53, 249.29, 154.52, 252.56, 158.34, 258.83, 160.24, 257.19, 163.24, 239.21, 165.15, 237.85, 156.16, 236.76, 146.62, 234.03, 136.27, 231.31, 131.36, 229.94, 129.45, 232.12, 127.27, 232.94, 124.55, 227.22, 124.28, 224.49, 127.0, 218.23, 131.63, 216.86, 131.09, 215.23, 123.19]], "area": 2522.721849999999, "iscrowd": 0, "image_id": 275432, "bbox": [210.5, 47.71, 48.33, 117.44], "category_id": 1, "id": 1696192}, {"segmentation": [[36.78, 217.93, 40.26, 218.19, 42.58, 221.54, 40.91, 225.15, 46.19, 232.36, 48.77, 240.87, 48.13, 253.25, 46.97, 253.37, 46.32, 261.88, 50.96, 270.0, 52.51, 274.64, 51.09, 276.45, 45.81, 277.09, 38.07, 278.25, 34.59, 277.48, 39.36, 275.29, 39.75, 273.22, 37.81, 266.52, 35.11, 263.17, 35.62, 260.85, 36.78, 252.47, 34.21, 251.05, 33.82, 242.42, 28.02, 242.93, 26.73, 240.87, 28.15, 237.78, 29.82, 237.52, 30.08, 235.2, 31.11, 234.17, 32.79, 235.33, 33.69, 232.62, 33.82, 228.63, 34.98, 227.34, 32.27, 223.86, 32.92, 219.86, 35.49, 218.57, 36.91, 218.44]], "area": 745.2220499999995, "iscrowd": 0, "image_id": 415946, "bbox": [26.73, 217.93, 25.78, 60.32], "category_id": 1, "id": 1696254}, {"segmentation": [[178.58, 216.53, 184.06, 220.55, 184.43, 227.86, 180.41, 234.07, 187.71, 238.09, 189.18, 242.11, 188.08, 244.3, 196.85, 254.9, 211.83, 261.47, 218.41, 263.3, 222.79, 263.3, 224.62, 265.86, 223.16, 268.42, 222.43, 270.61, 222.43, 272.44, 221.7, 272.44, 207.45, 271.34, 202.33, 270.61, 197.95, 269.51, 195.02, 270.61, 191.73, 271.34, 188.81, 279.38, 185.52, 281.94, 190.64, 303.13, 191.0, 314.09, 189.91, 321.76, 186.98, 327.24, 185.16, 336.74, 188.08, 342.59, 190.64, 346.61, 180.77, 341.13, 178.21, 333.82, 178.58, 324.69, 180.41, 318.84, 180.77, 316.28, 180.77, 313.72, 180.77, 310.8, 180.77, 306.05, 180.77, 305.32, 182.23, 288.88, 183.33, 277.19, 180.04, 266.59, 178.21, 262.93, 174.2, 259.28, 162.58, 250.15, 162.58, 244.3, 166.6, 240.65, 170.62, 234.07, 172.81, 230.78, 175.0, 227.49, 175.37, 226.03, 176.1, 223.84, 177.19, 222.01, 177.92, 219.45]], "area": 1815.6495499999987, "iscrowd": 0, "image_id": 415946, "bbox": [162.58, 216.53, 62.04, 130.08], "category_id": 1, "id": 1696402}, {"segmentation": [[479.64, 141.73, 476.55, 135.55, 481.7, 128.35, 483.76, 121.14, 484.79, 117.03, 481.7, 109.82, 480.67, 106.73, 474.49, 106.73, 462.14, 108.79, 459.05, 110.85, 459.05, 119.09, 459.05, 124.23, 459.05, 133.5, 455.97, 141.73, 455.97, 147.91, 457.0, 154.08, 462.14, 166.43, 475.52, 161.29, 478.61, 156.14, 480.67, 154.08, 480.67, 149.96]], "area": 1246.5631999999996, "iscrowd": 0, "image_id": 579533, "bbox": [455.97, 106.73, 28.82, 59.7], "category_id": 1, "id": 1696512}, {"segmentation": [[283.68, 160.42, 283.1, 156.94, 283.58, 155.01, 283.49, 152.69, 283.29, 150.47, 283.1, 148.53, 283.1, 146.02, 283.1, 144.47, 283.2, 142.64, 284.45, 140.7, 284.74, 139.93, 285.03, 138.67, 285.9, 137.03, 286.68, 136.55, 288.13, 136.93, 288.13, 138.0, 287.93, 139.06, 287.06, 140.12, 287.16, 141.38, 287.64, 143.12, 288.03, 147.08, 288.32, 149.5, 288.51, 151.14, 287.84, 152.59, 287.45, 154.62, 286.48, 156.36, 286.0, 157.72, 285.61, 159.84, 284.55, 160.62]], "area": 90.22464999999971, "iscrowd": 0, "image_id": 311522, "bbox": [283.1, 136.55, 5.41, 24.07], "category_id": 1, "id": 1696780}, {"segmentation": [[262.75, 170.65, 264.43, 160.6, 262.75, 151.26, 259.4, 146.48, 257.01, 143.37, 256.77, 139.54, 258.2, 123.74, 259.4, 119.91, 261.55, 117.28, 263.47, 115.12, 263.95, 113.45, 264.91, 109.38, 265.38, 106.03, 266.34, 103.16, 268.02, 101.96, 269.69, 100.52, 273.04, 100.76, 275.2, 101.24, 277.83, 103.16, 279.74, 106.27, 279.51, 109.38, 279.74, 112.01, 285.73, 112.97, 287.88, 115.36, 294.34, 122.06, 297.46, 128.53, 298.89, 128.53, 296.74, 131.16, 293.63, 132.6, 291.95, 132.6, 287.4, 131.16, 285.97, 130.68, 284.29, 133.07, 282.14, 135.95, 278.55, 137.14, 275.44, 137.86, 273.28, 139.06, 274.72, 141.69, 278.55, 142.41, 280.22, 143.37, 279.03, 146.0, 274.72, 147.44, 273.04, 149.35, 274.24, 155.09, 274.96, 163.71, 271.13, 171.37, 268.97, 176.64, 267.06, 176.87, 264.67, 175.92, 263.47, 174.48]], "area": 1420.1854000000003, "iscrowd": 0, "image_id": 522150, "bbox": [256.77, 100.52, 42.12, 76.35], "category_id": 1, "id": 1696875}, {"segmentation": [[228.54, 346.01, 226.04, 327.23, 219.15, 303.44, 216.02, 279.03, 229.17, 266.51, 246.7, 256.49, 252.33, 248.35, 249.83, 231.45, 246.07, 221.43, 244.82, 220.18, 247.95, 201.4, 245.45, 192.64, 213.52, 165.09, 212.89, 153.2, 211.64, 146.31, 211.01, 138.17, 218.53, 131.91, 224.79, 129.41, 232.3, 126.91, 231.05, 130.66, 232.3, 134.42, 232.93, 145.06, 235.43, 150.69, 237.31, 153.82, 238.56, 155.7, 247.32, 164.47, 252.33, 162.59, 252.96, 158.21, 250.45, 150.07, 250.45, 145.06, 256.71, 138.17, 264.23, 135.67, 274.24, 134.42, 284.88, 136.3, 289.89, 142.56, 299.28, 155.08, 306.79, 162.59, 306.17, 164.47, 300.53, 171.98, 319.31, 183.25, 338.72, 198.9, 357.5, 209.54, 375.03, 220.81, 386.3, 226.44, 395.06, 230.82, 405.08, 237.08, 404.45, 240.84, 398.19, 244.6, 388.18, 243.97, 389.43, 248.98, 388.8, 252.11, 376.91, 245.85, 365.64, 239.59, 349.36, 234.58, 314.31, 215.8, 308.05, 212.04, 310.55, 223.31, 316.18, 228.32, 318.69, 237.71, 320.57, 253.99, 305.54, 274.65, 303.66, 280.28, 320.57, 309.08, 325.58, 329.73, 326.2, 358.53, 289.27, 359.78, 288.64, 346.64, 293.65, 342.25, 292.4, 328.48, 288.01, 315.96, 277.37, 297.81, 270.49, 290.3, 269.23, 289.04, 253.58, 294.68, 251.71, 296.56, 261.1, 321.6, 264.23, 330.99, 266.73, 339.12, 268.61, 345.38, 269.86, 356.65, 262.35, 359.16, 229.79, 364.17, 223.53, 363.54, 221.66, 357.28]], "area": 18950.7014, "iscrowd": 0, "image_id": 275432, "bbox": [211.01, 126.91, 194.07, 237.26], "category_id": 1, "id": 1696925}, {"segmentation": [[330.17, 149.11, 326.42, 150.45, 326.57, 148.81, 328.14, 147.91, 329.49, 147.91, 330.54, 147.16, 331.07, 144.01, 331.37, 143.03, 332.72, 143.03, 333.84, 144.08, 334.14, 146.18, 334.22, 146.93, 336.54, 147.76, 337.22, 148.51, 337.07, 149.56, 334.67, 150.0, 334.74, 151.8, 335.12, 153.45, 335.72, 155.18, 336.92, 157.5, 336.39, 158.1, 335.42, 157.95, 333.47, 156.0, 333.02, 154.88, 332.27, 154.35, 329.87, 158.25, 328.52, 159.68, 327.02, 158.55, 329.34, 156.45, 330.47, 154.43, 330.32, 151.95, 331.07, 149.86, 330.17, 149.26]], "area": 73.54160000000009, "iscrowd": 0, "image_id": 311522, "bbox": [326.42, 143.03, 10.8, 16.65], "category_id": 1, "id": 1697200}, {"segmentation": [[130.24, 166.02, 131.52, 140.07, 129.92, 138.79, 129.6, 131.1, 128.96, 113.8, 131.84, 103.23, 132.8, 99.06, 134.73, 93.3, 134.73, 85.61, 134.73, 82.4, 136.65, 80.16, 140.49, 78.56, 144.02, 79.2, 148.18, 81.76, 151.07, 83.68, 151.71, 86.25, 150.1, 88.81, 149.78, 93.94, 146.9, 99.06, 142.42, 102.27, 151.39, 123.41, 153.95, 123.41, 157.47, 126.93, 157.79, 132.38, 156.51, 134.3, 152.67, 135.26, 152.67, 143.27, 155.23, 159.29, 156.19, 165.7, 131.52, 165.38]], "area": 1715.805699999999, "iscrowd": 0, "image_id": 275432, "bbox": [128.96, 78.56, 28.83, 87.46], "category_id": 1, "id": 1697399}, {"segmentation": [[367.96, 130.5, 367.96, 100.55, 366.89, 93.06, 369.03, 77.02, 378.66, 67.39, 381.87, 77.02, 382.94, 89.85, 380.8, 97.34, 384.01, 124.08, 384.01, 130.5]], "area": 844.6473000000012, "iscrowd": 0, "image_id": 522150, "bbox": [366.89, 67.39, 17.12, 63.11], "category_id": 1, "id": 1697419}, {"segmentation": [[47.73, 234.17, 55.93, 233.48, 55.25, 232.66, 53.61, 232.25, 52.79, 230.07, 50.74, 229.52, 50.46, 231.98, 47.87, 233.07]], "area": 17.463699999999935, "iscrowd": 0, "image_id": 394242, "bbox": [47.73, 229.52, 8.2, 4.65], "category_id": 1, "id": 1697673}, {"segmentation": [[499.71, 265.12, 496.67, 262.56, 488.04, 264.19, 486.64, 271.19, 489.44, 275.15, 491.77, 277.49, 493.41, 278.89, 493.87, 281.45, 489.91, 285.65, 489.91, 290.55, 492.01, 294.99, 494.57, 295.92, 494.11, 298.72, 495.27, 305.02, 494.34, 312.02, 493.64, 316.45, 494.81, 321.59, 493.87, 324.62, 499.28, 331.75, 499.47, 334.48, 503.28, 336.84, 503.47, 329.39, 502.56, 314.11, 502.74, 302.66, 500.74, 298.66, 498.38, 295.03, 496.19, 288.3, 498.12, 280.82, 498.12, 273.75, 500.6, 265.61]], "area": 553.2757000000005, "iscrowd": 0, "image_id": 450281, "bbox": [486.64, 262.56, 16.83, 74.28], "category_id": 1, "id": 1697856}, {"segmentation": [[371.72, 201.76, 371.72, 191.79, 362.13, 190.64, 353.31, 195.24, 356.37, 201.76, 352.54, 204.83, 350.24, 216.34, 340.65, 228.99, 340.65, 232.83, 336.43, 237.43, 344.48, 257.76, 344.1, 263.13, 339.5, 268.88, 345.25, 270.41, 352.92, 266.2, 351.77, 256.61, 350.62, 243.57, 354.46, 241.65, 360.59, 242.03, 362.51, 242.8, 368.26, 262.74, 364.43, 268.5, 367.88, 272.33, 379.39, 272.33, 381.69, 272.33, 378.62, 264.66, 377.85, 249.7, 375.93, 242.03, 389.36, 239.73, 388.21, 230.91, 388.97, 227.07, 388.59, 219.79, 384.37, 213.27, 379.39, 204.45, 374.78, 200.61]], "area": 2437.4844499999995, "iscrowd": 0, "image_id": 64744, "bbox": [336.43, 190.64, 52.93, 81.69], "category_id": 1, "id": 1697962}, {"segmentation": [[289.61, 226.13, 290.06, 224.36, 291.38, 224.58, 291.94, 226.9, 292.16, 227.9, 288.95, 227.9, 287.95, 227.35]], "area": 8.692549999999995, "iscrowd": 0, "image_id": 394242, "bbox": [287.95, 224.36, 4.21, 3.54], "category_id": 1, "id": 1698035}, {"segmentation": [[150.7, 217.29, 147.12, 224.46, 146.57, 227.21, 155.11, 244.3, 154.01, 247.88, 140.51, 246.23, 124.53, 239.06, 130.04, 230.25, 136.65, 227.77, 138.3, 225.56, 138.03, 217.02, 136.1, 212.06, 137.48, 209.3, 145.74, 210.41, 150.15, 214.81]], "area": 597.5324499999998, "iscrowd": 0, "image_id": 547693, "bbox": [124.53, 209.3, 30.58, 38.58], "category_id": 1, "id": 1698334}, {"segmentation": [[434.7, 110.38, 441.25, 109.22, 444.2, 112.18, 443.18, 116.28, 443.69, 119.88, 444.59, 121.68, 447.28, 124.63, 445.87, 126.81, 445.1, 127.84, 444.97, 131.56, 445.62, 135.8, 444.85, 138.11, 451.26, 145.04, 456.14, 151.71, 459.09, 159.42, 461.15, 163.91, 457.04, 158.9, 445.74, 149.53, 438.17, 141.7, 434.19, 136.95, 426.94, 123.59, 430.44, 120.09, 430.64, 117.89, 434.04, 112.08]], "area": 550.4490499999994, "iscrowd": 0, "image_id": 579533, "bbox": [426.94, 109.22, 34.21, 54.69], "category_id": 1, "id": 1698390}, {"segmentation": [[577.24, 234.63, 576.53, 233.38, 576.88, 231.32, 576.35, 229.17, 576.97, 227.21, 580.1, 227.92, 580.64, 230.43, 582.61, 233.29, 582.34, 233.82, 582.16, 234.36, 580.1, 235.88, 578.49, 234.45]], "area": 33.909849999999985, "iscrowd": 0, "image_id": 539099, "bbox": [576.35, 227.21, 6.26, 8.67], "category_id": 1, "id": 1698633}, {"segmentation": [[324.27, 246.1, 314.34, 236.17, 312.92, 221.27, 315.76, 201.41, 324.27, 192.19, 335.62, 185.8, 345.55, 184.38, 356.9, 188.64, 364.0, 192.9, 368.25, 203.54, 365.42, 224.82, 363.29, 235.46, 359.74, 247.52, 361.16, 253.91, 371.09, 258.16, 381.02, 277.32, 379.6, 279.45, 370.38, 278.74, 355.48, 278.74, 339.88, 280.15, 335.62, 278.03, 328.53, 270.22, 328.53, 265.26, 312.92, 259.58, 308.66, 267.39, 304.41, 265.97, 302.28, 265.97, 306.53, 257.45, 309.37, 253.2, 318.59, 251.07, 327.11, 247.52]], "area": 4491.168400000002, "iscrowd": 0, "image_id": 461530, "bbox": [302.28, 184.38, 78.74, 95.77], "category_id": 1, "id": 1699266}, {"segmentation": [[307.77, 172.43, 310.01, 167.0, 311.6, 164.44, 312.08, 164.44, 307.77, 160.45, 307.61, 156.45, 308.25, 151.82, 309.69, 149.11, 311.92, 146.07, 314.32, 145.43, 319.91, 147.35, 320.39, 154.54, 322.47, 161.41, 333.49, 167.32, 336.52, 199.42, 333.17, 211.88, 331.69, 233.2, 337.26, 241.43, 338.96, 248.69, 336.54, 256.68, 336.05, 263.7, 335.57, 268.06, 330.97, 269.51, 325.4, 264.43, 326.61, 253.53, 325.4, 239.25, 325.4, 237.55, 325.4, 227.39, 325.88, 222.54, 323.95, 209.95, 324.19, 205.84, 315.96, 191.31, 308.45, 175.09]], "area": 1664.7748000000008, "iscrowd": 0, "image_id": 64744, "bbox": [307.61, 145.43, 31.35, 124.08], "category_id": 1, "id": 1699420}, {"segmentation": [[306.8, 83.3, 308.61, 76.44, 311.86, 71.02, 315.83, 69.22, 320.53, 81.86, 316.92, 83.66, 319.8, 97.39, 314.75, 99.19, 312.58, 112.19, 311.14, 120.86, 313.3, 125.56, 312.94, 127.0, 307.89, 126.28, 306.8, 115.8, 304.64, 103.89, 306.08, 100.27, 306.8, 92.69, 307.53, 90.16, 304.64, 85.83, 304.64, 84.74]], "area": 491.63709999999975, "iscrowd": 0, "image_id": 522150, "bbox": [304.64, 69.22, 15.89, 57.78], "category_id": 1, "id": 1699593}, {"segmentation": [[129.63, 302.87, 130.06, 302.33, 130.49, 302.28, 131.08, 302.71, 131.3, 303.3, 131.46, 303.46, 131.62, 303.89, 131.67, 304.64, 131.51, 305.72, 131.57, 306.69, 131.78, 307.87, 131.83, 308.68, 131.83, 310.02, 131.83, 311.15, 131.78, 311.74, 131.67, 312.12, 130.6, 312.17, 130.49, 312.17, 129.52, 311.36, 129.31, 310.45, 129.31, 309.97, 130.11, 307.49, 130.17, 307.33, 130.22, 305.77]], "area": 17.642800000000058, "iscrowd": 0, "image_id": 482024, "bbox": [129.31, 302.28, 2.52, 9.89], "category_id": 1, "id": 1699771}, {"segmentation": [[530.93, 168.21, 531.0, 166.13, 532.31, 164.41, 534.8, 163.65, 534.46, 162.4, 533.14, 161.36, 533.07, 159.29, 534.73, 157.08, 537.36, 159.63, 536.46, 162.05, 538.54, 163.23, 540.4, 165.58, 541.16, 168.0, 541.51, 169.52, 540.89, 170.56, 538.33, 174.43, 537.15, 175.06]], "area": 100.25770000000028, "iscrowd": 0, "image_id": 24730, "bbox": [530.93, 157.08, 10.58, 17.98], "category_id": 1, "id": 1699921}, {"segmentation": [[281.77, 256.57, 277.65, 259.86, 277.93, 274.12, 282.04, 273.84], [278.48, 279.05, 275.19, 283.17, 280.95, 283.71, 281.22, 282.07], [294.38, 242.58, 291.91, 250.81, 290.54, 255.47, 289.72, 257.66, 287.53, 258.21, 286.98, 276.86, 288.9, 278.78, 290.82, 282.62, 294.66, 284.54, 302.34, 284.54, 313.85, 282.62, 317.14, 282.34, 318.52, 278.78, 317.42, 274.66, 317.42, 268.36, 317.14, 266.16, 315.22, 263.15, 314.4, 262.32, 312.21, 259.58, 310.29, 257.94, 308.37, 256.84, 305.9, 256.57, 302.88, 256.57, 302.06, 255.19, 303.43, 252.45, 303.71, 246.42, 303.98, 242.58, 302.88, 239.84, 299.32, 237.92, 297.4, 238.19, 295.75, 239.01]], "area": 1032.5229000000006, "iscrowd": 0, "image_id": 377226, "bbox": [275.19, 237.92, 43.33, 46.62], "category_id": 1, "id": 1700064}, {"segmentation": [[115.14, 402.84, 115.35, 398.14, 115.35, 395.84, 115.77, 393.64, 116.19, 391.76, 117.96, 390.93, 119.32, 394.58, 120.78, 395.94, 121.62, 402.0, 120.68, 402.84]], "area": 56.138849999999934, "iscrowd": 0, "image_id": 334097, "bbox": [115.14, 390.93, 6.48, 11.91], "category_id": 1, "id": 1700474}, {"segmentation": [[56.07, 230.68, 58.26, 231.12, 59.57, 231.56, 61.33, 232.87, 61.76, 234.62, 60.45, 234.62, 59.57, 234.62, 56.95, 234.62, 56.51, 234.18, 56.07, 231.56, 56.07, 231.56]], "area": 16.185849999999995, "iscrowd": 0, "image_id": 394242, "bbox": [56.07, 230.68, 5.69, 3.94], "category_id": 1, "id": 1700939}, {"segmentation": [[491.01, 197.45, 488.56, 189.5, 488.56, 174.22, 484.89, 165.06, 492.84, 163.83, 492.84, 154.67, 486.12, 152.22, 480.62, 152.22, 478.78, 158.94, 480.0, 162.61, 470.84, 163.83, 470.84, 172.39, 470.84, 180.95, 470.84, 193.17, 486.12, 198.67, 494.67, 202.95]], "area": 735.0190000000003, "iscrowd": 0, "image_id": 462123, "bbox": [470.84, 152.22, 23.83, 50.73], "category_id": 1, "id": 1701340}, {"segmentation": [[255.81, 375.33, 259.93, 378.94, 264.06, 388.22, 265.09, 395.43, 272.82, 399.04, 275.91, 395.95, 274.37, 390.28, 274.37, 376.36, 274.37, 368.63, 273.33, 363.48, 271.27, 350.08, 270.24, 341.83, 265.09, 338.23, 267.15, 331.53, 267.15, 327.4, 263.54, 322.25, 257.87, 322.76, 254.78, 326.89]], "area": 1058.4634499999997, "iscrowd": 0, "image_id": 111831, "bbox": [254.78, 322.25, 21.13, 76.79], "category_id": 1, "id": 1701438}, {"segmentation": [[97.54, 313.07, 98.31, 299.23, 96.0, 294.24, 95.23, 289.62, 90.24, 289.62, 87.55, 292.7, 88.32, 298.85, 89.85, 301.92, 89.85, 305.0, 82.94, 302.31, 86.78, 310.76, 89.85, 312.68, 99.08, 316.53]], "area": 239.23405000000005, "iscrowd": 0, "image_id": 111831, "bbox": [82.94, 289.62, 16.14, 26.91], "category_id": 1, "id": 1701542}, {"segmentation": [[621.62, 230.68, 615.36, 228.44, 613.12, 206.54, 621.62, 198.49, 621.62, 180.61, 614.91, 165.86, 617.15, 147.09, 624.3, 130.1, 638.6, 127.86, 631.45, 119.82, 634.13, 106.41, 637.71, 106.41, 638.6, 106.41, 639.94, 190.89, 631.0, 195.36, 623.85, 206.09, 624.3, 230.23]], "area": 1768.013050000004, "iscrowd": 0, "image_id": 579533, "bbox": [613.12, 106.41, 26.82, 124.27], "category_id": 1, "id": 1701839}, {"segmentation": [[130.41, 190.38, 131.96, 205.43, 131.96, 214.06, 127.53, 230.0, 128.86, 241.06, 118.02, 253.68, 118.02, 253.68, 124.48, 261.21, 100.26, 264.33, 103.12, 248.63, 105.67, 229.88, 107.95, 206.02, 112.21, 196.36, 117.04, 188.97, 122.43, 190.68, 123.85, 192.1, 113.91, 201.47, 111.07, 212.27, 111.64, 218.8, 114.76, 207.44, 120.73, 209.14, 123.0, 218.8, 125.84, 203.18, 124.99, 192.67, 127.55, 188.69, 132.09, 188.69, 132.09, 188.69]], "area": 1392.3509999999997, "iscrowd": 0, "image_id": 334097, "bbox": [100.26, 188.69, 31.83, 75.64], "category_id": 1, "id": 1702557}, {"segmentation": [[326.06, 403.83, 328.59, 397.96, 326.84, 395.23, 326.84, 392.89, 327.23, 390.35, 328.99, 389.17, 332.31, 388.78, 333.87, 389.76, 333.87, 392.49, 335.63, 396.21, 337.78, 398.16, 337.97, 398.16, 339.14, 399.92, 339.54, 401.29, 338.56, 405.19, 338.56, 407.54, 338.56, 409.69, 336.41, 412.03, 335.04, 413.99, 336.41, 415.94, 335.04, 416.72, 333.48, 419.85, 334.65, 425.9, 335.43, 430.59, 336.21, 433.52, 337.58, 434.89, 338.17, 437.23, 336.6, 444.66, 336.6, 449.54, 335.43, 452.08, 333.09, 453.84, 327.81, 453.84, 323.71, 452.47, 325.47, 449.54, 327.62, 447.98, 329.77, 445.63, 329.96, 443.88, 326.64, 438.21, 323.32, 435.28, 321.17, 431.57, 322.54, 425.51, 324.49, 423.36, 325.27, 421.41, 326.25, 419.06, 325.47, 411.05]], "area": 676.0175500000001, "iscrowd": 0, "image_id": 334097, "bbox": [321.17, 388.78, 18.37, 65.06], "category_id": 1, "id": 1702801}, {"segmentation": [[537.84, 160.14, 538.94, 159.28, 539.1, 158.57, 538.7, 156.76, 539.33, 155.35, 539.88, 155.04, 540.98, 155.35, 541.45, 156.29, 541.61, 157.78, 542.47, 159.12, 543.81, 160.61, 544.28, 161.55, 544.04, 164.38, 543.96, 167.21, 542.79, 167.99, 541.92, 168.15, 539.88, 163.75, 538.55, 162.89, 537.68, 162.42, 537.13, 160.45]], "area": 49.94724999999995, "iscrowd": 0, "image_id": 24730, "bbox": [537.13, 155.04, 7.15, 13.11], "category_id": 1, "id": 1702869}, {"segmentation": [[592.43, 169.87, 593.36, 157.54, 589.97, 153.53, 585.03, 153.84, 580.41, 157.23, 578.87, 156.92, 578.87, 160.0, 579.79, 163.4, 579.79, 166.48, 578.25, 168.02, 573.32, 168.95, 566.53, 172.65, 562.83, 177.58, 559.13, 181.59, 557.59, 187.14, 559.44, 195.16, 559.75, 198.55, 562.52, 199.79, 564.99, 203.49, 567.15, 206.57, 568.38, 206.88, 569.0, 206.88, 567.15, 213.66, 570.85, 218.29, 572.7, 234.01, 573.32, 250.36, 574.55, 266.09, 572.7, 268.86, 573.32, 270.71, 576.71, 273.8, 584.42, 273.18, 585.03, 268.55, 590.89, 265.78, 594.28, 262.39, 594.9, 261.46, 595.83, 242.45, 594.28, 220.86, 594.9, 212.85, 596.75, 210.69, 597.37, 207.3, 598.6, 204.83, 601.07, 203.9, 603.84, 203.9, 607.24, 193.84, 607.55, 188.9, 609.09, 186.44, 608.47, 183.66, 604.77, 181.81, 602.92, 177.18, 601.38, 175.95, 596.44, 172.25, 592.43, 170.4]], "area": 3225.044399999998, "iscrowd": 0, "image_id": 206427, "bbox": [557.59, 153.53, 51.5, 120.27], "category_id": 1, "id": 1703045}, {"segmentation": [[338.16, 86.56, 334.66, 78.87, 334.66, 70.82, 339.91, 67.68, 347.25, 67.33, 352.15, 68.73, 352.85, 72.92, 352.5, 78.52, 352.5, 80.62, 356.69, 81.32, 360.54, 82.01, 361.94, 83.76, 363.69, 87.96, 364.74, 93.56, 366.14, 97.75, 361.24, 118.73, 358.44, 128.53, 350.75, 135.52, 348.65, 137.27, 342.7, 130.98, 336.41, 129.58, 333.96, 130.98, 330.81, 130.98, 331.16, 126.43, 333.61, 119.08, 333.96, 114.19, 332.21, 110.69, 331.16, 101.25, 330.12, 94.6, 334.31, 92.51, 338.86, 88.66]], "area": 1732.798499999999, "iscrowd": 0, "image_id": 275432, "bbox": [330.12, 67.33, 36.02, 69.94], "category_id": 1, "id": 1703046}, {"segmentation": [[160.1, 177.5, 160.87, 174.02, 161.77, 172.28, 164.0, 171.45, 166.92, 171.03, 168.03, 171.59, 169.49, 172.21, 170.25, 173.88, 169.77, 179.72, 172.34, 182.15, 174.7, 183.68, 176.02, 185.63, 177.9, 187.92, 177.97, 188.13, 174.21, 189.66, 165.25, 191.19, 155.31, 194.25, 154.12, 192.72, 153.99, 188.41, 156.63, 185.84, 159.82, 184.38, 161.28, 182.36, 161.15, 180.0]], "area": 279.16644999999994, "iscrowd": 0, "image_id": 377226, "bbox": [153.99, 171.03, 23.98, 23.22], "category_id": 1, "id": 1703472}, {"segmentation": [[155.93, 77.22, 170.08, 77.71, 170.08, 89.42, 177.39, 95.27, 187.64, 110.39, 185.2, 133.32, 181.3, 133.32, 175.44, 135.27, 171.05, 148.44, 170.57, 164.53, 169.1, 167.46, 153.98, 166.0, 152.03, 146.97, 153.01, 137.22, 162.76, 134.29, 160.32, 126.0, 156.91, 124.54, 153.01, 123.56, 152.52, 117.71, 150.57, 107.46, 149.1, 100.64, 152.52, 95.27, 154.47, 92.83, 153.49, 86.0, 155.44, 78.2]], "area": 2115.3467, "iscrowd": 0, "image_id": 275432, "bbox": [149.1, 77.22, 38.54, 90.24], "category_id": 1, "id": 1704036}, {"segmentation": [[512.51, 163.11, 512.23, 155.45, 512.23, 153.53, 512.64, 152.44, 514.42, 151.34, 518.25, 150.39, 521.67, 150.66, 520.3, 180.88, 516.47, 180.47, 513.88, 178.29, 511.82, 175.96, 511.14, 174.73, 510.59, 173.5, 510.05, 171.58, 509.09, 169.4, 508.68, 168.44, 508.68, 167.21, 510.05, 166.52, 511.28, 165.43], [524.82, 166.93, 527.14, 168.44, 527.69, 178.42, 523.45, 180.75, 523.04, 180.75, 522.9, 178.15, 523.31, 176.37, 523.58, 173.64, 523.58, 169.26]], "area": 321.643849999999, "iscrowd": 0, "image_id": 462123, "bbox": [508.68, 150.39, 19.01, 30.49], "category_id": 1, "id": 1704410}, {"segmentation": [[279.8, 264.47, 287.14, 244.89, 288.54, 231.95, 297.29, 226.0, 304.28, 223.21, 303.58, 220.41, 300.78, 216.56, 293.79, 215.86, 290.64, 216.56, 286.44, 223.91, 286.44, 228.1, 281.2, 236.15, 278.75, 242.79, 276.3, 251.18, 276.65, 258.18, 277.7, 264.12, 277.7, 267.62]], "area": 406.1682500000001, "iscrowd": 0, "image_id": 415946, "bbox": [276.3, 215.86, 27.98, 51.76], "category_id": 1, "id": 1704482}, {"segmentation": [[376.25, 266.61, 360.15, 252.94, 366.5, 220.74, 375.28, 215.38, 382.11, 210.98, 378.21, 203.18, 374.79, 183.17, 384.55, 160.78, 396.26, 152.48, 408.46, 148.09, 421.14, 153.95, 425.53, 159.8, 427.97, 165.66, 430.41, 173.46, 430.41, 180.29, 433.34, 192.0, 428.95, 201.28, 425.53, 205.18, 425.53, 212.5, 427.49, 216.89, 432.36, 221.28, 437.24, 229.09, 443.1, 239.33, 443.59, 241.28, 417.73, 246.16, 414.8, 252.02, 419.19, 258.36, 425.05, 261.29, 426.02, 263.24, 421.63, 262.75, 399.19, 264.7, 392.36, 266.66, 388.45, 269.1, 382.6, 273.0, 380.65, 272.51]], "area": 6324.955650000001, "iscrowd": 0, "image_id": 461530, "bbox": [360.15, 148.09, 83.44, 124.91], "category_id": 1, "id": 1704896}, {"segmentation": [[364.8, 76.31, 366.34, 71.09, 373.09, 66.17, 374.94, 69.55, 374.94, 69.55, 377.7, 72.93, 377.09, 82.76, 367.87, 83.38]], "area": 159.60109999999983, "iscrowd": 0, "image_id": 522150, "bbox": [364.8, 66.17, 12.9, 17.21], "category_id": 1, "id": 1704941}, {"segmentation": [[61.32, 165.88, 65.35, 150.33, 60.17, 135.35, 59.59, 124.41, 61.32, 107.12, 68.81, 92.72, 59.59, 86.96, 55.56, 81.78, 54.41, 70.26, 46.34, 62.19, 40.01, 69.68, 42.31, 79.47, 40.58, 86.39, 37.13, 88.69, 26.18, 86.39, 21.0, 108.28, 27.33, 116.34, 27.33, 128.44, 27.33, 145.72, 27.33, 152.63, 25.03, 167.03, 26.18, 169.91, 38.85, 168.76, 39.43, 152.63, 40.58, 149.18, 43.46, 155.51, 49.8, 170.49, 49.8, 172.79, 61.9, 172.79]], "area": 3240.3053000000004, "iscrowd": 0, "image_id": 275432, "bbox": [21.0, 62.19, 47.81, 110.6], "category_id": 1, "id": 1705084}, {"segmentation": [[9.85, 306.81, 8.02, 299.06, 7.0, 293.76, 5.98, 286.01, 8.02, 277.65, 12.1, 276.02, 15.16, 276.63, 16.79, 282.55, 16.58, 289.68, 17.4, 297.03, 18.62, 302.94, 17.81, 305.39, 15.36, 306.61, 11.49, 307.22]], "area": 287.57640000000026, "iscrowd": 0, "image_id": 328487, "bbox": [5.98, 276.02, 12.64, 31.2], "category_id": 1, "id": 1705291}, {"segmentation": [[574.19, 313.47, 565.46, 312.23, 562.96, 299.76, 567.33, 268.58, 559.22, 261.73, 577.93, 154.49, 576.68, 146.38, 560.47, 133.91, 562.96, 110.85, 568.58, 102.74, 550.5, 96.51, 557.98, 92.77, 571.69, 90.27, 577.3, 92.77, 576.68, 103.36, 575.43, 118.95, 581.67, 130.17, 597.88, 135.78, 601.62, 167.58, 603.86, 200.26, 601.8, 207.45, 587.42, 215.66, 580.24, 282.42, 580.24, 298.85]], "area": 4781.2188499999975, "iscrowd": 0, "image_id": 579533, "bbox": [550.5, 90.27, 53.36, 223.2], "category_id": 1, "id": 1705485}, {"segmentation": [[98.02, 632.07, 99.46, 619.1, 95.14, 609.01, 92.25, 532.61, 103.78, 469.19, 99.46, 436.04, 99.46, 407.21, 95.14, 400.0, 96.58, 365.41, 106.67, 338.02, 125.41, 271.71, 100.9, 276.04, 93.69, 270.27, 85.05, 250.09, 103.78, 195.32, 126.85, 149.19, 142.7, 144.86, 157.12, 144.86, 177.3, 136.22, 187.39, 120.36, 180.18, 98.74, 180.18, 72.79, 190.27, 55.5, 216.22, 45.41, 249.37, 46.85, 269.55, 65.59, 266.67, 95.86, 258.02, 124.68, 246.49, 149.19, 291.17, 167.93, 299.82, 277.48, 289.73, 384.14, 285.41, 391.35, 279.64, 401.44, 268.11, 417.3, 247.93, 405.77, 242.16, 418.74, 239.28, 466.31, 239.28, 503.78, 233.51, 568.65, 229.19, 591.71, 206.13, 619.1, 194.59, 607.57, 196.04, 593.15, 201.8, 564.32, 187.39, 534.05, 185.95, 503.78, 172.97, 474.95, 165.77, 440.36, 162.88, 487.93, 157.12, 521.08, 158.56, 558.56, 151.35, 601.8, 142.7, 633.51]], "area": 81660.86060000001, "iscrowd": 0, "image_id": 20367, "bbox": [85.05, 45.41, 214.77, 588.1], "category_id": 1, "id": 1706095}, {"segmentation": [[637.12, 628.49, 552.27, 629.93, 549.39, 401.26, 563.78, 358.11, 599.73, 356.67, 615.55, 384.0, 616.99, 422.83, 635.69, 460.22, 640.0, 629.93], [535.01, 622.74, 500.49, 506.25, 523.51, 484.67, 513.44, 463.1, 536.45, 450.16]], "area": 24446.59305000001, "iscrowd": 0, "image_id": 34354, "bbox": [500.49, 356.67, 139.51, 273.26], "category_id": 1, "id": 1706244}, {"segmentation": [[230.45, 336.75, 229.59, 335.2, 229.76, 332.09, 228.55, 330.54, 230.97, 328.12, 233.22, 328.29, 233.73, 329.5, 233.91, 331.57]], "area": 26.63099999999986, "iscrowd": 0, "image_id": 307462, "bbox": [228.55, 328.12, 5.36, 8.63], "category_id": 1, "id": 1706596}, {"segmentation": [[640.0, 96.91, 637.93, 94.34, 637.93, 85.47, 638.63, 78.48, 638.87, 73.34, 635.37, 63.31, 633.5, 57.01, 633.04, 50.24, 637.23, 53.28, 639.1, 55.84, 639.8, 54.21, 639.8, 49.08, 637.7, 47.91, 635.84, 46.98, 633.04, 43.01, 636.3, 40.68, 636.54, 36.48, 636.77, 34.14, 637.23, 31.58, 634.67, 27.61, 636.77, 22.71, 637.23, 17.11, 636.3, 14.31, 631.4, 12.21, 628.14, 12.68, 625.8, 16.41, 626.27, 19.91, 625.1, 23.64, 621.84, 27.38, 620.2, 31.81, 618.8, 39.28, 618.8, 42.54, 616.94, 46.74, 616.24, 48.84, 617.4, 50.48, 615.07, 53.51, 613.67, 59.34, 613.44, 61.91, 614.6, 63.78, 613.67, 74.04, 610.4, 74.04, 603.64, 78.24, 598.5, 81.97, 596.17, 82.21, 594.07, 81.97, 592.67, 88.27, 593.84, 91.77, 595.47, 96.44, 598.5, 92.94, 599.44, 88.74, 602.0, 84.31, 608.07, 82.21, 612.97, 80.34, 616.7, 80.34, 618.8, 78.24, 621.6, 73.34, 624.4, 66.34, 629.3, 73.34, 630.94, 78.24, 630.24, 82.91, 631.4, 90.37, 633.04, 98.07, 632.8, 102.27, 639.8, 102.51]], "area": 1437.5724499999992, "iscrowd": 0, "image_id": 200910, "bbox": [592.67, 12.21, 47.33, 90.3], "category_id": 1, "id": 1707201}, {"segmentation": [[361.97, 87.63, 359.28, 84.03, 365.57, 76.4, 378.6, 67.86, 383.54, 58.42, 385.34, 48.98, 391.63, 41.79, 401.07, 40.0, 403.8, 41.16, 408.92, 44.92, 410.63, 49.25, 409.84, 50.05, 409.95, 53.58, 409.38, 58.71, 408.01, 61.33, 408.47, 63.83, 407.56, 65.77, 405.96, 66.45, 405.16, 67.36, 404.94, 69.07, 404.94, 71.92, 403.23, 73.29, 402.89, 75.22, 405.73, 75.57, 407.67, 77.73, 416.78, 74.65, 418.72, 72.71, 421.23, 73.63, 423.05, 73.4, 426.35, 75.9, 428.29, 78.75, 429.66, 79.78, 428.17, 87.29, 426.81, 88.66, 428.63, 89.69, 428.17, 90.48, 427.83, 91.05, 424.3, 89.69, 415.19, 85.81, 400.27, 81.37, 386.48, 81.14, 369.17, 83.88, 362.9, 86.5]], "area": 1457.6606000000006, "iscrowd": 0, "image_id": 3366, "bbox": [359.28, 40.0, 70.38, 51.05], "category_id": 1, "id": 1707298}, {"segmentation": [[122.49, 94.39, 124.83, 81.71, 127.65, 79.83, 128.59, 53.07, 121.55, 44.62, 118.73, 36.17, 111.22, 30.06, 109.81, 21.14, 104.64, 20.2, 99.95, 31.0, 96.66, 40.86, 103.24, 63.87, 112.16, 61.99, 114.97, 66.69, 108.87, 70.44, 106.05, 70.44]], "area": 1233.26945, "iscrowd": 0, "image_id": 277472, "bbox": [96.66, 20.2, 31.93, 74.19], "category_id": 1, "id": 1707418}, {"segmentation": [[96.36, 89.17, 96.36, 120.81, 47.46, 153.89, 51.78, 231.55, 77.66, 260.31, 76.22, 290.52, 74.79, 330.79, 71.91, 384.0, 67.6, 422.83, 73.35, 455.91, 97.8, 471.73, 106.43, 470.29, 94.92, 419.96, 113.62, 345.17, 128.0, 360.99, 129.44, 412.76, 136.63, 448.72, 185.53, 458.79, 191.28, 451.6, 159.64, 430.02, 166.83, 310.65, 151.01, 268.94, 152.45, 235.87, 163.96, 281.89, 169.71, 303.46, 182.65, 286.2, 153.89, 152.45, 139.51, 136.63, 153.89, 123.69, 151.01, 109.3, 161.08, 94.92, 117.93, 73.35, 102.11, 89.17]], "area": 32093.086150000006, "iscrowd": 0, "image_id": 381208, "bbox": [47.46, 73.35, 143.82, 398.38], "category_id": 1, "id": 1707976}, {"segmentation": [[363.71, 167.0, 366.28, 162.15, 367.71, 161.01, 367.71, 154.17, 372.84, 153.88, 374.55, 156.45, 374.55, 161.3, 384.24, 165.29, 383.67, 169.28]], "area": 159.60075000000046, "iscrowd": 0, "image_id": 347340, "bbox": [363.71, 153.88, 20.53, 15.4], "category_id": 1, "id": 1708465}, {"segmentation": [[544.33, 196.37, 548.87, 194.56, 554.31, 157.34, 547.05, 150.08, 548.41, 117.4, 549.32, 112.4, 575.19, 112.4, 578.82, 139.18, 587.9, 180.03, 593.35, 200.91, 579.28, 198.64, 582.91, 193.65, 570.65, 163.24, 568.38, 156.43, 560.21, 171.41, 556.13, 198.64, 545.69, 196.83], [557.94, 102.42, 553.86, 91.07, 559.31, 87.44, 566.57, 89.25, 567.93, 101.51, 559.76, 103.32]], "area": 2369.608650000006, "iscrowd": 0, "image_id": 429144, "bbox": [544.33, 87.44, 49.02, 113.47], "category_id": 1, "id": 1708736}, {"segmentation": [[305.43, 160.97, 317.13, 156.38, 330.49, 149.28, 348.04, 137.59, 352.63, 127.14, 345.11, 118.37, 348.04, 115.45, 372.68, 100.83, 372.68, 93.73, 375.6, 76.19, 376.02, 72.85, 374.35, 72.85, 377.27, 70.34, 376.02, 68.67, 371.42, 68.67, 370.17, 68.67, 367.25, 65.75, 367.25, 68.67, 367.25, 71.59, 364.32, 68.67, 362.65, 69.92, 362.65, 75.77, 362.65, 80.36, 360.98, 96.65, 356.34, 96.74, 352.76, 92.89, 348.9, 89.03, 347.8, 87.93, 350.56, 85.17, 347.8, 82.14, 351.66, 79.38, 345.05, 69.74, 337.33, 71.39, 332.37, 76.08, 330.44, 79.11, 327.69, 81.86, 324.65, 83.79, 312.25, 85.72, 300.68, 82.14, 296.82, 85.72, 298.48, 108.87, 304.26, 108.87, 307.29, 108.87, 307.29, 113.83, 307.29, 120.44, 309.22, 125.4, 316.94, 132.29, 316.94, 135.05, 310.33, 138.08, 305.37, 140.83, 301.51, 141.94, 303.44, 160.12, 303.44, 160.12]], "area": 3854.447850000002, "iscrowd": 0, "image_id": 346853, "bbox": [296.82, 65.75, 80.45, 95.22], "category_id": 1, "id": 1708983}, {"segmentation": [[74.95, 361.08, 122.52, 382.7, 142.7, 434.59, 162.88, 495.14, 184.5, 506.67, 184.5, 536.94, 206.13, 570.09, 226.31, 536.94, 252.25, 485.05, 256.58, 456.22, 291.17, 381.26, 370.45, 349.55, 357.48, 335.14, 318.56, 346.67, 295.5, 325.05, 279.64, 290.45, 259.46, 283.24, 272.43, 242.88, 266.67, 182.34, 305.59, 121.8, 380.54, 81.44, 471.0, 92.97, 471.0, 632.07, 168.65, 630.63, 147.03, 590.27, 122.52, 519.64, 110.99, 515.32, 118.2, 506.67, 106.67, 469.19, 66.31, 433.15, 43.24, 404.32, 25.95, 376.94, 23.06, 350.99, 15.86, 330.81, 36.04, 338.02, 59.1, 369.73]], "area": 127500.86110000002, "iscrowd": 0, "image_id": 111759, "bbox": [15.86, 81.44, 455.14, 550.63], "category_id": 1, "id": 1709721}, {"segmentation": [[531.2, 354.9, 547.92, 348.72, 550.83, 348.72, 545.38, 342.54, 544.29, 334.18, 537.74, 313.81, 571.92, 306.9, 580.65, 307.63, 575.2, 328.36, 575.56, 341.81, 539.92, 369.45, 530.47, 362.17]], "area": 1669.5366999999994, "iscrowd": 0, "image_id": 456653, "bbox": [530.47, 306.9, 50.18, 62.55], "category_id": 1, "id": 1710151}, {"segmentation": [[407.74, 174.75, 416.05, 167.2, 415.57, 165.3, 414.24, 161.09, 414.9, 158.13, 418.53, 156.61, 423.12, 156.23, 425.02, 157.75, 425.79, 163.0, 428.08, 165.39, 432.57, 167.68, 437.15, 170.16, 438.2, 173.51, 441.83, 182.0, 441.64, 183.05, 409.18, 176.94, 406.79, 175.89]], "area": 469.02944999999994, "iscrowd": 0, "image_id": 487322, "bbox": [406.79, 156.23, 35.04, 26.82], "category_id": 1, "id": 1710279}, {"segmentation": [[513.78, 171.91, 515.46, 168.08, 517.74, 167.48, 517.62, 163.4, 518.82, 161.36, 521.58, 161.96, 522.18, 164.84, 521.7, 166.64, 524.93, 168.56, 524.09, 173.59, 514.86, 172.99]], "area": 80.26809999999988, "iscrowd": 0, "image_id": 425652, "bbox": [513.78, 161.36, 11.15, 12.23], "category_id": 1, "id": 1710645}, {"segmentation": [[183.09, 173.65, 181.47, 192.14, 178.22, 199.92, 180.82, 207.06, 181.79, 212.24, 182.12, 214.19, 176.6, 213.22, 175.95, 212.24, 176.28, 209.0, 174.33, 205.76, 172.71, 205.11, 174.01, 210.62, 173.68, 212.24, 173.04, 213.54, 168.49, 213.22, 165.25, 212.89, 164.93, 210.95, 165.25, 208.35, 164.93, 204.14, 163.95, 199.92, 163.95, 194.73, 163.31, 188.89, 162.66, 182.08, 162.66, 180.79, 156.82, 179.17, 153.25, 178.19, 153.58, 175.92, 154.23, 173.65, 147.42, 174.3, 147.09, 173.65, 149.04, 167.81, 152.6, 162.63, 154.87, 153.87, 158.12, 147.38, 162.66, 144.79, 161.36, 139.92, 161.36, 138.3, 159.41, 137.33, 158.77, 137.65, 165.25, 133.44, 167.85, 132.47, 169.47, 131.49, 171.09, 133.76, 171.74, 137.01, 172.06, 140.9, 175.31, 142.52, 178.87, 142.84, 181.47, 144.14, 182.76, 146.74, 182.12, 150.63, 183.41, 154.84, 186.33, 158.41, 186.33, 160.68, 183.74, 164.9, 183.74, 170.73, 180.17, 175.92]], "area": 1745.5170500000002, "iscrowd": 0, "image_id": 560350, "bbox": [147.09, 131.49, 39.24, 82.7], "category_id": 1, "id": 1710719}, {"segmentation": [[455.1, 340.2, 451.81, 307.26, 464.69, 296.47, 461.09, 280.3, 472.17, 276.41, 480.56, 283.9, 475.47, 301.27, 490.14, 318.04, 501.52, 333.01, 505.41, 341.69, 453.31, 341.09]], "area": 1887.0798999999993, "iscrowd": 0, "image_id": 450281, "bbox": [451.81, 276.41, 53.6, 65.28], "category_id": 1, "id": 1710729}, {"segmentation": [[486.42, 123.29, 486.42, 131.45, 495.17, 137.87, 487.87, 141.37, 485.25, 148.66, 483.21, 155.08, 474.46, 158.58, 484.96, 157.12, 506.83, 161.5, 530.16, 158.58, 552.91, 155.37, 563.71, 151.0, 574.5, 146.91, 584.12, 147.79, 588.2, 154.5, 580.62, 164.7, 590.25, 170.83, 589.95, 182.79, 559.91, 181.91, 551.16, 190.08, 528.71, 206.7, 511.5, 215.16, 503.04, 211.95, 497.79, 211.66, 508.0, 227.7, 503.62, 232.95, 520.83, 254.53, 526.67, 265.62, 541.25, 306.16, 547.08, 323.07, 559.04, 374.99, 561.66, 380.53, 566.62, 389.86, 569.83, 408.24, 575.95, 416.69, 575.66, 420.78, 586.45, 433.61, 584.12, 437.99, 561.08, 435.94, 550.87, 438.57, 546.5, 421.94, 543.0, 412.61, 532.79, 383.74, 526.67, 372.07, 520.83, 353.7, 512.08, 328.03, 503.33, 320.74, 499.54, 313.45, 487.87, 349.32, 476.5, 367.11, 464.83, 379.95, 417.88, 407.07, 407.09, 414.07, 406.21, 426.61, 401.25, 430.11, 388.42, 428.07, 384.05, 412.9, 384.05, 385.2, 398.34, 377.9, 415.54, 374.11, 436.84, 356.03, 455.5, 345.24, 456.08, 313.74, 447.92, 279.62, 445.29, 264.16, 445.88, 255.7, 444.13, 238.49, 438.88, 212.54, 435.09, 196.79, 434.5, 160.91, 438.0, 151.29, 443.25, 146.62, 443.83, 141.37, 444.42, 116.58, 458.71, 109.87, 468.63, 109.29, 480.88, 115.41, 484.96, 120.08]], "area": 25871.131649999992, "iscrowd": 0, "image_id": 550028, "bbox": [384.05, 109.29, 206.2, 329.28], "category_id": 1, "id": 1711406}, {"segmentation": [[500.0, 118.01, 486.58, 113.81, 461.41, 132.27, 436.24, 164.99, 432.05, 196.03, 436.24, 205.26, 423.66, 223.71, 411.07, 246.36, 398.49, 269.02, 391.78, 280.76, 403.52, 309.28, 414.43, 321.87, 432.89, 324.38, 449.66, 319.35, 460.57, 317.67, 463.93, 313.48, 478.19, 311.8, 500.0, 324.38, 500.0, 115.49]], "area": 15147.442499999997, "iscrowd": 0, "image_id": 484307, "bbox": [391.78, 113.81, 108.22, 210.57], "category_id": 1, "id": 1711463}, {"segmentation": [[375.81, 134.86, 373.63, 126.11, 369.25, 121.19, 370.53, 113.36, 369.07, 108.62, 358.87, 106.61, 356.32, 111.17, 359.23, 122.65, 350.3, 135.41]], "area": 421.94384999999966, "iscrowd": 0, "image_id": 203989, "bbox": [350.3, 106.61, 25.51, 28.8], "category_id": 1, "id": 1711586}, {"segmentation": [[354.88, 166.11, 317.12, 158.56, 259.96, 154.25, 193.08, 176.9, 166.11, 198.47, 165.03, 220.04, 141.3, 234.07, 143.46, 257.8, 166.11, 271.82, 188.76, 280.45, 223.28, 303.1, 238.38, 303.1, 254.56, 307.42, 264.27, 318.2, 277.21, 331.15, 288.0, 340.85, 299.87, 367.82, 308.49, 398.02, 362.43, 355.96, 339.78, 323.6, 339.78, 298.79, 339.78, 272.9, 345.17, 255.64, 368.9, 208.18, 368.9, 199.55, 368.9, 186.61]], "area": 31016.945699999997, "iscrowd": 0, "image_id": 247508, "bbox": [141.3, 154.25, 227.6, 243.77], "category_id": 1, "id": 1712264}, {"segmentation": [[443.31, 32.75, 394.72, 29.93, 395.07, 20.78, 394.37, 15.85, 404.93, 9.51, 406.34, 0.36, 463.37, 1.06, 464.08, 25.0]], "area": 1935.8888499999998, "iscrowd": 0, "image_id": 203847, "bbox": [394.37, 0.36, 69.71, 32.39], "category_id": 1, "id": 1712663}, {"segmentation": [[601.29, 314.95, 599.84, 312.98, 599.92, 311.52, 605.93, 311.18, 608.42, 310.4, 610.82, 308.0, 614.16, 305.68, 615.71, 304.74, 620.0, 301.05, 619.83, 298.13, 619.83, 296.25, 621.03, 294.45, 620.77, 291.7, 619.31, 289.73, 619.14, 288.1, 618.97, 286.64, 617.85, 284.84, 617.94, 283.64, 622.74, 280.72, 621.89, 278.49, 621.11, 277.8, 621.03, 275.91, 621.8, 274.46, 624.12, 273.51, 625.32, 274.2, 626.09, 275.66, 627.63, 275.91, 629.44, 278.49, 630.38, 280.12, 630.89, 281.32, 634.24, 286.3, 636.21, 289.21, 636.21, 292.13, 635.7, 295.48, 634.07, 296.42, 632.61, 296.25, 632.87, 290.58, 632.61, 288.53, 631.41, 287.75, 630.64, 294.79, 630.46, 298.13, 631.49, 298.48, 626.95, 300.62, 617.42, 306.37, 610.47, 310.58, 607.99, 312.03, 603.53, 314.44]], "area": 370.1697000000003, "iscrowd": 0, "image_id": 45124, "bbox": [599.84, 273.51, 36.37, 41.44], "category_id": 1, "id": 1712972}, {"segmentation": [[118.84, 620.09, 34.36, 604.34, 45.82, 584.3, 52.98, 577.14, 2.86, 577.14, 1.43, 539.91, 18.61, 531.32, 1.43, 519.87, 0.0, 348.06, 21.48, 313.7, 40.09, 270.74, 57.27, 262.15, 91.63, 277.9, 98.79, 323.72, 87.34, 345.19, 83.04, 419.65, 74.45, 466.89, 123.13, 528.46, 140.31, 558.53, 127.43, 620.09]], "area": 31003.962249999997, "iscrowd": 0, "image_id": 234422, "bbox": [0.0, 262.15, 140.31, 357.94], "category_id": 1, "id": 1713096}, {"segmentation": [[205.93, 331.48, 208.62, 325.65, 209.52, 301.41, 200.54, 299.16, 201.89, 285.25, 198.75, 277.62, 193.81, 260.12, 197.85, 244.41, 205.03, 241.26, 205.48, 230.04, 214.9, 230.49, 217.15, 239.92, 226.12, 241.71, 235.55, 259.67, 227.02, 284.35, 224.33, 288.39, 222.53, 301.86, 227.02, 313.98, 230.61, 321.61, 233.31, 330.58, 222.98, 329.24, 217.6, 300.06, 214.45, 300.51, 214.9, 318.91, 213.56, 327.44, 214.9, 331.48, 208.17, 333.72]], "area": 2357.0361000000016, "iscrowd": 0, "image_id": 381208, "bbox": [193.81, 230.04, 41.74, 103.68], "category_id": 1, "id": 1713188}, {"segmentation": [[543.74, 49.06, 543.04, 24.55, 550.74, 11.25, 550.04, 1.44, 580.15, 5.65, 610.26, 21.75, 620.76, 49.06, 619.36, 77.07, 603.96, 84.07, 578.75, 96.68, 568.95, 75.67, 547.94, 65.87, 542.34, 44.86]], "area": 5184.490999999998, "iscrowd": 0, "image_id": 252391, "bbox": [542.34, 1.44, 78.42, 95.24], "category_id": 1, "id": 1713399}, {"segmentation": [[330.07, 305.31, 343.82, 265.43, 356.2, 246.18, 379.58, 236.55, 387.83, 218.67, 393.33, 211.79, 404.33, 202.17, 420.84, 202.17, 437.34, 203.54, 438.71, 213.17, 438.71, 228.3, 437.34, 237.92, 430.46, 250.3, 420.84, 257.18, 418.09, 259.93, 424.96, 286.06, 430.46, 299.81, 431.84, 302.56, 433.21, 319.07, 331.44, 317.69, 335.57, 302.56]], "area": 8572.606249999997, "iscrowd": 0, "image_id": 431014, "bbox": [330.07, 202.17, 108.64, 116.9], "category_id": 1, "id": 1713929}, {"segmentation": [[301.69, 67.42, 349.72, 32.87, 440.73, 27.81, 456.74, 74.16, 462.64, 116.29, 467.7, 155.06, 476.12, 184.55, 476.97, 197.19, 487.08, 217.42, 498.88, 218.26, 498.88, 370.79, 97.75, 370.79, 149.16, 342.98, 176.12, 316.01, 228.37, 296.63, 230.06, 283.15, 267.98, 263.76, 286.52, 241.85, 300.0, 214.04, 310.11, 203.09, 327.81, 199.72, 322.75, 153.37, 310.11, 148.31, 304.21, 133.15, 311.8, 124.72, 303.37, 67.42]], "area": 71288.7156, "iscrowd": 0, "image_id": 542041, "bbox": [97.75, 27.81, 401.13, 342.98], "category_id": 1, "id": 1713962}, {"segmentation": [[321.34, 282.12, 317.83, 277.77, 317.41, 273.83, 316.85, 272.01, 314.46, 268.07, 307.85, 266.95, 307.29, 264.28, 308.56, 250.93, 310.8, 246.71, 313.61, 242.36, 316.85, 236.46, 324.29, 232.94, 323.45, 230.7, 321.06, 225.64, 321.06, 221.42, 324.43, 217.07, 327.95, 216.22, 333.71, 216.93, 337.64, 222.26, 338.63, 227.32, 336.66, 231.54, 344.25, 234.35, 348.18, 250.51, 351.13, 264.28, 349.16, 266.11, 349.59, 279.74, 343.97, 282.12, 344.39, 296.6, 342.14, 318.52, 341.58, 326.25, 340.87, 326.67, 336.24, 325.54, 333.57, 320.06, 333.15, 326.67, 332.44, 327.79, 329.77, 328.35, 323.87, 328.35, 321.9, 324.56, 323.17, 318.94, 323.17, 317.53, 322.61, 292.52, 321.76, 286.76]], "area": 2888.3616499999994, "iscrowd": 0, "image_id": 233900, "bbox": [307.29, 216.22, 43.84, 112.13], "category_id": 1, "id": 1714065}, {"segmentation": [[282.13, 244.44, 285.0, 238.96, 285.78, 230.34, 293.35, 227.47, 296.23, 231.13, 296.75, 237.91, 297.79, 243.14, 303.54, 250.45, 312.42, 252.28, 313.72, 257.76, 290.74, 258.8, 282.91, 257.5, 281.6, 250.97]], "area": 533.6374000000005, "iscrowd": 0, "image_id": 548253, "bbox": [281.6, 227.47, 32.12, 31.33], "category_id": 1, "id": 1714404}, {"segmentation": [[196.48, 355.16, 198.84, 344.53, 197.26, 341.98, 195.49, 337.45, 197.07, 333.72, 194.31, 329.0, 193.72, 324.67, 195.89, 313.06, 203.16, 308.34, 203.16, 305.39, 200.8, 304.41, 203.75, 302.64, 204.34, 299.49, 209.46, 299.49, 211.03, 302.44, 210.25, 305.79, 209.26, 308.34, 211.82, 310.11, 214.77, 312.87, 213.79, 320.93, 214.18, 329.0, 214.57, 335.29, 213.59, 348.86, 211.62, 359.09, 210.44, 365.38, 212.61, 370.5, 208.87, 369.91, 204.34, 365.58, 206.11, 360.66, 206.31, 347.48, 205.13, 342.76, 202.97, 352.6, 200.21, 360.27]], "area": 944.8097000000002, "iscrowd": 0, "image_id": 111831, "bbox": [193.72, 299.49, 21.05, 71.01], "category_id": 1, "id": 1714482}, {"segmentation": [[402.46, 65.64, 398.98, 61.85, 402.46, 58.68, 404.36, 58.37, 408.47, 50.46, 414.48, 51.41, 415.75, 55.2, 418.6, 65.33, 424.61, 66.91, 428.4, 66.28, 432.83, 69.76, 437.58, 72.29, 442.01, 72.29, 442.01, 77.03, 431.88, 80.2, 432.52, 82.73, 435.68, 83.99, 433.15, 87.16, 427.77, 87.16, 425.56, 78.93, 418.28, 70.71, 415.75, 67.86, 405.31, 67.54]], "area": 489.2968999999999, "iscrowd": 0, "image_id": 269986, "bbox": [398.98, 50.46, 43.03, 36.7], "category_id": 1, "id": 1714568}, {"segmentation": [[380.03, 387.41, 382.19, 387.98, 382.05, 392.6, 383.92, 394.18, 386.08, 395.91, 386.95, 398.94, 386.8, 401.68, 383.92, 402.25, 383.92, 413.21, 381.33, 413.79, 378.44, 415.23, 377.0, 417.54], [370.23, 409.89, 367.2, 411.48, 365.9, 412.92, 364.89, 415.95, 364.46, 423.73, 364.89, 426.62, 364.89, 428.06, 363.74, 429.07, 362.87, 429.79, 364.03, 431.09, 366.33, 431.09, 369.07, 430.37]], "area": 244.61660000000074, "iscrowd": 0, "image_id": 448061, "bbox": [362.87, 387.41, 24.08, 43.68], "category_id": 1, "id": 1714678}, {"segmentation": [[186.65, 327.9, 188.31, 328.45, 193.54, 342.51, 191.34, 353.53, 196.85, 354.08, 199.88, 359.32, 198.5, 363.72, 185.83, 361.8, 173.98, 365.38, 166.81, 365.38, 162.95, 359.04, 162.4, 351.05, 163.5, 343.33, 165.16, 336.44, 169.84, 329.56, 174.25, 325.42, 176.73, 324.87, 178.11, 321.29, 180.59, 317.43, 184.72, 318.26, 187.2, 319.91, 187.2, 324.87]], "area": 1135.3041, "iscrowd": 0, "image_id": 111831, "bbox": [162.4, 317.43, 37.48, 47.95], "category_id": 1, "id": 1715591}, {"segmentation": [[317.77, 191.64, 317.5, 193.86, 316.88, 194.66, 315.82, 195.55, 315.28, 196.52, 318.04, 196.97, 320.25, 197.06, 320.61, 195.9, 319.81, 194.3, 319.37, 193.42, 319.37, 191.29, 318.48, 191.11]], "area": 16.575600000000072, "iscrowd": 0, "image_id": 413895, "bbox": [315.28, 191.11, 5.33, 5.95], "category_id": 1, "id": 1715684}, {"segmentation": [[529.93, 140.6, 521.87, 150.54, 518.12, 157.29, 512.68, 152.41, 501.99, 153.16, 488.5, 159.35, 487.0, 154.66, 485.31, 152.79, 486.25, 147.17, 485.12, 142.67, 487.0, 140.79, 490.18, 140.04, 491.87, 134.04, 496.37, 129.54, 503.49, 125.42, 510.99, 123.92, 512.12, 126.17, 514.37, 123.92, 519.62, 124.86, 522.24, 128.98, 525.24, 129.92, 529.93, 138.54]], "area": 1045.6662, "iscrowd": 0, "image_id": 461530, "bbox": [485.12, 123.92, 44.81, 35.43], "category_id": 1, "id": 1716103}, {"segmentation": [[339.11, 426.3, 345.12, 405.79, 358.56, 396.95, 357.85, 391.64, 364.57, 378.56, 373.06, 378.56, 374.83, 382.09, 373.06, 395.88, 366.34, 400.84, 358.56, 413.92, 351.84, 422.76, 356.08, 424.88]], "area": 681.4938999999991, "iscrowd": 0, "image_id": 111831, "bbox": [339.11, 378.56, 35.72, 47.74], "category_id": 1, "id": 1716229}, {"segmentation": [[352.11, 0.04, 375.25, 0.59, 378.56, 17.67, 397.3, 33.1, 397.02, 46.88, 390.13, 44.4, 387.65, 52.95, 387.38, 60.39, 390.13, 86.19, 384.35, 79.03, 376.91, 80.13, 379.94, 61.11, 372.77, 44.58, 370.29, 16.85, 365.33, 9.41, 352.93, 0.86]], "area": 1186.7219499999999, "iscrowd": 0, "image_id": 223838, "bbox": [352.11, 0.04, 45.19, 86.15], "category_id": 1, "id": 1716365}, {"segmentation": [[426.43, 240.23, 416.52, 242.29, 414.87, 255.51, 421.06, 263.36, 416.93, 264.6, 427.0, 279.47]], "area": 305.37160000000046, "iscrowd": 0, "image_id": 204294, "bbox": [414.87, 240.23, 12.13, 39.24], "category_id": 1, "id": 1716421}, {"segmentation": [[138.07, 386.69, 130.7, 381.09, 125.98, 373.13, 125.98, 366.35, 128.34, 361.93, 130.7, 360.75, 138.07, 360.75, 142.78, 362.23, 143.96, 366.35, 145.14, 371.36, 147.21, 376.97, 149.56, 381.39, 156.93, 387.28, 167.55, 403.79, 172.85, 415.58, 163.13, 421.19, 155.76, 423.54, 149.27, 422.07, 148.68, 421.48, 145.14, 427.97, 144.55, 432.09, 142.19, 433.27, 136.3, 431.5, 132.76, 421.77, 130.7, 415.88, 128.63, 416.47, 126.28, 417.94, 123.92, 420.6, 123.33, 415.58, 124.8, 410.87, 128.93, 406.15, 135.12, 403.79, 136.59, 401.73, 126.57, 398.19, 119.5, 393.18, 117.73, 389.35, 120.38, 386.69, 126.28, 391.41, 132.17, 396.13, 137.48, 397.01, 137.77, 395.24, 138.66, 390.23, 138.95, 386.4, 137.18, 383.45]], "area": 1866.28165, "iscrowd": 0, "image_id": 399441, "bbox": [117.73, 360.75, 55.12, 72.52], "category_id": 1, "id": 1716428}, {"segmentation": [[560.16, 253.34, 554.94, 250.99, 551.07, 250.31, 549.39, 248.29, 551.07, 247.62, 554.94, 247.29, 557.3, 244.59, 554.61, 243.58, 553.93, 238.37, 555.28, 237.02, 558.14, 237.19, 559.82, 240.22, 560.5, 243.25, 564.87, 248.63, 564.87, 251.66], [557.64, 260.24, 557.13, 264.95, 550.23, 265.46, 550.23, 263.44, 551.75, 262.76, 552.76, 258.73, 556.46, 258.56, 557.3, 260.58]], "area": 158.07205000000005, "iscrowd": 0, "image_id": 245441, "bbox": [549.39, 237.02, 15.48, 28.44], "category_id": 1, "id": 1717057}, {"segmentation": [[282.08, 514.28, 287.86, 518.84, 286.64, 529.32, 284.82, 527.65, 280.87, 514.43]], "area": 51.24194999999999, "iscrowd": 0, "image_id": 119093, "bbox": [280.87, 514.28, 6.99, 15.04], "category_id": 1, "id": 1717154}, {"segmentation": [[282.31, 193.07, 282.31, 180.68, 277.67, 179.13, 273.95, 184.71, 270.23, 192.14]], "area": 114.22579999999986, "iscrowd": 0, "image_id": 165347, "bbox": [270.23, 179.13, 12.08, 13.94], "category_id": 1, "id": 1717418}, {"segmentation": [[9.41, 74.5, 17.97, 81.58, 20.62, 93.08, 22.1, 107.24, 22.98, 115.2, 21.8, 117.26, 7.35, 114.31, 5.29, 107.53, 8.53, 95.44, 6.47, 83.94, 4.11, 74.21]], "area": 541.6680500000001, "iscrowd": 0, "image_id": 139571, "bbox": [4.11, 74.21, 18.87, 43.05], "category_id": 1, "id": 1717428}, {"segmentation": [[589.11, 1.06, 587.56, 13.15, 588.8, 21.52, 595.31, 26.48, 599.34, 41.98, 601.2, 53.76, 601.82, 57.17, 624.76, 51.59, 622.9, 47.25, 624.45, 33.92, 627.24, 40.12, 640.0, 31.44, 638.71, 10.36, 637.47, 1.06]], "area": 2121.0944000000013, "iscrowd": 0, "image_id": 151322, "bbox": [587.56, 1.06, 52.44, 56.11], "category_id": 1, "id": 1717473}, {"segmentation": [[8.61, 63.07, 32.29, 34.01, 35.52, 29.7, 23.68, 1.72, 27.98, 0.0, 474.62, 0.0, 496.14, 29.7, 506.91, 40.47, 527.35, 73.83, 546.73, 108.27, 554.26, 150.24, 538.12, 209.43, 525.2, 247.1, 512.29, 247.1, 505.83, 258.94, 496.14, 258.94, 481.08, 250.33, 493.99, 207.28, 485.38, 171.77, 483.23, 161.0, 492.91, 113.65, 475.7, 100.74, 429.42, 56.61, 408.97, 25.4, 416.5, 53.38, 396.05, 52.3, 363.77, 63.07, 329.33, 87.82, 318.57, 116.88, 290.58, 124.41, 288.43, 227.73, 166.82, 270.78, 168.97, 214.82, 171.12, 135.17, 159.28, 120.11, 138.83, 58.76, 127.0, 17.87, 103.32, 55.53, 65.65, 72.75, 59.19, 86.74, 33.36, 98.58, 21.52, 98.58, 5.38, 106.12, 0.0, 68.45], [163.59, 343.96, 161.43, 383.78, 204.48, 387.01, 224.93, 365.49, 256.14, 353.65, 250.76, 322.44, 186.19, 341.81]], "area": 71310.65585, "iscrowd": 0, "image_id": 564237, "bbox": [0.0, 0.0, 554.26, 387.01], "category_id": 1, "id": 1717621}, {"segmentation": [[372.0, 286.53, 377.85, 293.27, 382.34, 301.81, 380.09, 314.39, 386.38, 318.43, 402.56, 316.64, 412.0, 315.74, 419.19, 309.0, 426.83, 305.85, 421.44, 294.17, 420.09, 289.22, 421.44, 286.08, 421.89, 279.79, 417.84, 278.44, 420.99, 268.1, 430.42, 261.81, 438.06, 256.87, 453.79, 258.67, 463.23, 262.26, 467.72, 269.0, 469.97, 280.24, 474.46, 285.63, 469.07, 288.32, 466.37, 287.88, 466.37, 294.17, 468.17, 294.62, 473.56, 289.22, 480.3, 290.12, 489.29, 295.96, 505.02, 306.3, 514.91, 320.68, 522.1, 332.36, 527.49, 340.9, 526.14, 382.24, 528.84, 392.58, 527.49, 402.47, 531.08, 414.6, 521.65, 419.99, 509.96, 416.85, 501.87, 410.55, 494.68, 406.96, 474.91, 409.66, 460.98, 405.16, 470.42, 424.04, 451.99, 430.33, 421.44, 433.92, 414.7, 427.63, 420.54, 415.95, 430.42, 415.05, 400.32, 395.41, 394.47, 366.65, 403.91, 359.01, 422.78, 359.46, 451.09, 363.06, 443.01, 346.88, 434.02, 338.34, 421.89, 337.89, 414.25, 339.69, 405.26, 335.2, 380.54, 332.5, 370.66, 325.31, 362.12, 323.51, 362.57, 313.18, 352.68, 306.44, 349.09, 298.35, 349.09, 288.91, 363.47, 286.21]], "area": 16515.234550000005, "iscrowd": 0, "image_id": 70288, "bbox": [349.09, 256.87, 181.99, 177.05], "category_id": 1, "id": 1717818}, {"segmentation": [[477.27, 71.18, 413.41, 71.18, 414.56, 52.77, 418.59, 37.81, 431.82, 20.55, 440.45, 14.8, 454.25, 18.83, 454.25, 32.06, 454.25, 38.96, 458.28, 50.47], [447.93, 84.41, 411.11, 84.41, 410.53, 98.79, 443.9, 98.21], [465.19, 95.91, 453.1, 97.64, 453.68, 84.98, 465.76, 83.26, 460.58, 87.28]], "area": 2800.0090999999993, "iscrowd": 0, "image_id": 558286, "bbox": [410.53, 14.8, 66.74, 83.99], "category_id": 1, "id": 1717913}, {"segmentation": [[190.58, 545.17, 180.23, 545.57, 181.23, 537.61, 182.62, 532.04, 182.02, 530.25, 179.44, 533.44, 178.84, 538.01, 179.44, 541.39, 177.05, 544.18, 175.66, 540.6, 176.05, 531.25, 179.24, 525.48, 184.21, 521.9, 184.21, 521.1, 184.21, 516.93, 186.8, 514.34, 190.77, 516.53, 190.58, 519.11, 190.58, 521.5, 193.56, 523.29, 199.33, 530.05, 197.34, 533.44, 192.17, 539.4, 191.77, 546.17]], "area": 420.90515000000033, "iscrowd": 0, "image_id": 181149, "bbox": [175.66, 514.34, 23.67, 31.83], "category_id": 1, "id": 1718242}, {"segmentation": [[4.89, 183.11, 16.07, 183.11, 22.28, 181.04, 17.72, 173.17, 9.03, 153.7, 12.76, 152.05, 9.03, 129.69, 0.0, 96.97, 0.0, 155.36, 4.06, 160.33, 4.89, 171.51, 1.99, 177.72, 3.64, 182.28], [0.0, 74.19, 5.3, 65.5, 6.13, 52.66, 5.72, 46.86, 0.33, 42.72], [1.57, 89.52, 10.68, 95.31, 11.51, 101.53, 9.44, 104.01, 6.13, 99.45, 2.4, 96.56, 0.0, 95.31]], "area": 983.6520000000003, "iscrowd": 0, "image_id": 45949, "bbox": [0.0, 42.72, 22.28, 140.39], "category_id": 1, "id": 1718292}, {"segmentation": [[322.63, 181.48, 323.52, 180.32, 324.41, 179.17, 324.76, 178.1, 326.27, 178.64, 327.87, 181.57, 328.93, 184.23, 328.22, 187.96, 328.85, 191.06, 328.14, 193.64, 326.36, 191.86, 324.05, 191.95, 321.48, 191.24, 320.86, 188.22, 321.21, 186.27, 322.01, 184.94]], "area": 83.24500000000018, "iscrowd": 0, "image_id": 338086, "bbox": [320.86, 178.1, 8.07, 15.54], "category_id": 1, "id": 1718441}, {"segmentation": [[182.68, 427.34, 180.82, 431.06, 177.11, 423.63, 175.25, 416.82, 168.44, 382.76, 169.06, 375.95, 159.77, 371.0, 157.91, 367.28, 165.34, 356.76, 191.97, 310.32, 206.83, 305.37, 210.54, 299.18, 211.16, 293.6, 212.4, 287.41, 214.26, 282.46, 216.73, 279.36, 222.93, 276.89, 225.4, 275.65, 230.36, 275.65, 235.93, 277.5, 238.41, 281.84, 241.5, 286.79, 241.5, 292.98, 243.36, 301.03, 245.84, 304.13, 249.55, 307.84, 253.88, 314.04, 256.36, 315.27, 258.22, 323.32, 257.6, 351.19, 252.03, 361.09, 248.93, 375.95, 248.31, 384.0, 247.07, 393.29, 244.6, 399.48, 241.5, 403.81, 235.93, 403.81, 227.26, 405.05, 216.12, 403.81, 208.69, 401.96, 198.16, 400.1, 191.97, 398.86, 191.35, 402.58, 187.01, 407.53, 183.92, 409.39, 176.49, 413.1, 176.49, 414.34]], "area": 8673.86845, "iscrowd": 0, "image_id": 114540, "bbox": [157.91, 275.65, 100.31, 155.41], "category_id": 1, "id": 1718717}, {"segmentation": [[44.83, 107.53, 49.81, 100.06, 57.29, 97.07, 65.25, 101.06, 77.21, 112.51, 77.21, 120.48, 88.66, 130.45, 99.12, 137.92, 118.55, 181.75, 125.03, 194.2, 125.03, 215.12, 128.01, 237.04, 129.51, 243.01, 146.94, 254.47, 153.42, 269.91, 163.88, 281.37, 169.36, 286.35, 169.36, 288.84, 163.38, 293.82, 152.42, 304.78, 145.95, 305.77, 127.02, 305.77, 126.02, 303.28, 140.47, 297.8, 146.44, 291.83, 143.95, 291.33, 148.44, 285.85, 144.45, 275.89, 124.53, 256.46, 115.56, 250.48, 112.07, 246.5, 115.06, 227.57, 117.55, 221.1, 109.58, 220.6, 101.62, 227.07, 97.63, 219.11, 92.65, 212.63, 88.66, 213.63, 88.66, 220.6, 89.66, 227.57, 79.7, 227.57, 80.7, 226.08, 84.18, 224.58, 81.19, 222.09, 82.19, 215.62, 78.7, 216.61, 76.21, 208.65, 78.2, 203.17, 71.73, 188.22, 65.25, 173.78, 48.82, 171.29, 44.33, 174.28, 34.87, 176.77, 28.4, 173.28, 28.89, 167.8, 37.86, 163.82, 65.75, 160.33, 65.25, 142.4, 66.75, 136.42, 54.79, 130.94, 49.81, 124.97, 46.33, 125.46, 46.33, 120.98, 38.86, 117.99, 34.37, 114.01, 35.37, 110.52, 40.85, 110.02, 44.83, 108.53], [80.32, 233.89, 79.3, 240.8, 83.39, 252.32, 90.05, 253.09, 96.71, 253.09, 95.94, 248.48, 102.08, 247.2, 107.46, 246.18, 99.01, 245.41, 93.89, 234.4], [82.88, 268.96, 82.62, 277.67, 88.77, 271.52, 86.46, 267.68], [91.07, 266.92, 94.66, 275.37, 96.45, 266.4, 93.89, 267.17], [79.3, 285.09, 89.54, 274.34, 94.66, 282.28, 92.35, 294.82, 91.33, 298.92], [86.98, 298.92, 83.39, 302.76, 89.03, 301.23, 89.03, 304.04, 66.75, 304.04, 61.88, 306.86, 62.4, 304.04, 70.59, 294.57, 78.78, 288.94]], "area": 7773.027349999999, "iscrowd": 0, "image_id": 275917, "bbox": [28.4, 97.07, 140.96, 209.79], "category_id": 1, "id": 1718768}, {"segmentation": [[180.69, 141.32, 195.41, 135.8, 204.6, 135.8, 211.96, 141.32, 214.26, 148.68, 215.64, 149.59, 213.8, 175.8, 228.06, 180.86, 233.57, 185.92, 242.31, 202.47, 245.53, 231.9, 206.44, 232.36, 183.91, 227.76, 178.86, 178.1, 178.86, 141.32], [147.59, 207.53, 151.27, 199.25, 168.28, 187.76, 169.66, 230.98, 145.75, 230.98, 147.13, 202.01, 149.89, 202.01], [209.66, 240.18, 234.03, 239.72, 237.71, 270.98, 237.71, 315.52, 204.6, 288.4, 209.2, 282.42, 210.58, 270.0, 210.58, 252.53, 205.98, 241.95, 207.82, 240.12], [225.3, 341.27, 234.03, 338.05, 232.65, 354.15, 231.27, 356.45, 226.68, 357.83, 217.94, 342.65, 223.92, 339.89]], "area": 7295.210949999999, "iscrowd": 0, "image_id": 550028, "bbox": [145.75, 135.8, 99.78, 222.03], "category_id": 1, "id": 1718852}, {"segmentation": [[365.4, 404.02, 355.49, 398.65, 346.81, 398.65, 339.38, 402.37, 335.66, 407.33, 335.66, 413.93, 329.88, 418.89, 326.99, 427.56, 312.53, 452.76, 312.53, 459.78, 350.53, 464.32, 362.51, 426.32]], "area": 2178.648099999999, "iscrowd": 0, "image_id": 449573, "bbox": [312.53, 398.65, 52.87, 65.67], "category_id": 1, "id": 1718988}, {"segmentation": [[601.55, 273.16, 607.12, 252.49, 609.9, 248.91, 600.36, 245.73, 598.77, 234.2, 597.18, 231.81, 595.99, 224.26, 607.12, 196.03, 616.26, 192.85, 621.83, 190.07, 620.64, 182.12, 617.85, 169.4, 628.99, 153.1, 640.0, 152.7, 640.0, 262.03, 640.0, 390.61, 634.04, 387.16, 628.85, 391.48, 618.92, 386.29, 622.37, 380.68, 619.78, 373.33, 628.85, 353.03, 630.15, 350.0, 629.28, 335.31, 631.01, 324.08, 628.42, 305.93, 625.4, 316.74, 621.94, 334.88, 618.92, 359.08, 605.95, 380.68, 602.07, 296.86, 605.52, 285.2, 602.07, 281.74], [597.75, 332.72, 598.61, 375.93, 594.29, 380.25, 577.44, 374.63, 577.44, 369.01, 592.56, 362.1, 592.56, 355.62, 594.72, 352.16, 593.42, 342.66, 596.45, 329.7]], "area": 7662.149799999996, "iscrowd": 0, "image_id": 410755, "bbox": [577.44, 152.7, 62.56, 238.78], "category_id": 1, "id": 1719086}, {"segmentation": [[238.66, 379.51, 254.28, 400.55, 256.31, 408.02, 299.76, 418.2, 320.8, 424.31, 329.62, 431.1, 329.62, 437.21, 332.34, 439.92, 334.37, 488.12, 309.94, 459.61, 275.32, 462.32, 208.12, 465.04, 176.9, 455.53, 171.46, 444.67, 147.71, 443.32, 150.42, 399.87, 172.82, 409.38, 180.97, 400.55, 232.56, 376.79, 242.06, 372.72]], "area": 10585.477850000001, "iscrowd": 0, "image_id": 495931, "bbox": [147.71, 372.72, 186.66, 115.4], "category_id": 1, "id": 1719876}, {"segmentation": [[61.07, 234.72, 53.97, 234.38, 47.54, 238.1, 43.82, 245.21, 45.17, 252.32, 42.46, 254.68, 41.11, 260.44, 35.7, 265.17, 33.33, 268.22, 34.01, 280.06, 42.46, 282.77, 44.16, 286.83, 56.34, 293.26, 61.75, 295.96, 73.59, 295.96, 86.79, 297.32, 86.45, 290.21, 84.42, 273.63, 81.38, 262.47, 71.9, 255.7, 66.49, 250.62, 66.15, 239.12, 62.09, 235.74]], "area": 2159.0219999999995, "iscrowd": 0, "image_id": 156170, "bbox": [33.33, 234.38, 53.46, 62.94], "category_id": 1, "id": 1719939}, {"segmentation": [[268.69, 404.31, 273.6, 374.83, 267.05, 370.74, 265.82, 367.46, 265.82, 358.04, 266.23, 347.4, 269.92, 337.57, 272.37, 330.2, 280.15, 324.47, 283.43, 320.79, 283.43, 317.92, 283.02, 310.96, 287.52, 300.32, 294.07, 295.4, 298.17, 292.95, 305.54, 294.18, 313.31, 304.82, 315.36, 311.37, 313.31, 319.97, 318.23, 326.11, 321.91, 328.16, 326.82, 336.76, 339.93, 366.23, 346.07, 377.7, 354.67, 381.38, 355.48, 387.52, 355.48, 389.98, 355.07, 394.89, 337.06, 393.66, 331.33, 382.61, 322.32, 365.01, 316.59, 362.96, 311.27, 372.37, 314.13, 401.03, 319.46, 405.13, 318.64, 418.64, 312.5, 457.94, 310.86, 473.91, 309.63, 484.96, 309.63, 496.02, 311.27, 505.84, 308.4, 505.03, 304.31, 498.07, 300.62, 475.96, 293.66, 467.36, 296.12, 453.85, 296.94, 414.14, 294.48, 419.46, 292.84, 435.83, 289.16, 451.39, 287.52, 414.95, 283.84, 406.65, 276.06, 405.01]], "area": 7395.941649999997, "iscrowd": 0, "image_id": 114540, "bbox": [265.82, 292.95, 89.66, 212.89], "category_id": 1, "id": 1720105}, {"segmentation": [[214.21, 480.0, 231.22, 458.48, 254.42, 448.43, 292.32, 449.97, 313.2, 456.93, 328.67, 463.12, 341.81, 474.72, 342.59, 480.0]], "area": 2977.2192499999983, "iscrowd": 0, "image_id": 392725, "bbox": [214.21, 448.43, 128.38, 31.57], "category_id": 1, "id": 1720322}, {"segmentation": [[352.57, 163.19, 353.86, 153.81, 353.86, 141.53, 362.92, 135.06, 360.01, 123.42, 366.8, 115.66, 376.17, 120.19, 376.49, 133.12, 390.07, 141.53, 397.19, 158.66, 392.01, 171.59, 390.07, 170.95, 387.81, 163.83, 376.17, 164.16, 368.41, 164.16, 359.36, 166.1, 356.13, 166.1]], "area": 1393.7191499999997, "iscrowd": 0, "image_id": 480818, "bbox": [352.57, 115.66, 44.62, 55.93], "category_id": 1, "id": 1720920}, {"segmentation": [[230.62, 213.83, 233.28, 208.11, 233.89, 206.06, 233.89, 202.18, 233.89, 199.11, 233.89, 197.28, 233.07, 194.82, 234.09, 190.12, 233.89, 188.08, 231.85, 185.83, 231.23, 183.38, 231.23, 178.47, 233.07, 175.61, 236.14, 172.55, 241.66, 172.34, 245.95, 174.59, 247.38, 175.82, 247.58, 179.7, 247.79, 182.56, 248.4, 185.22, 248.81, 185.42, 253.92, 186.65, 255.55, 187.67, 257.19, 190.74, 260.25, 196.46, 262.71, 199.52, 264.75, 201.57, 268.43, 204.02, 272.52, 205.04, 277.22, 206.68, 280.49, 207.9, 282.53, 208.92, 287.23, 217.85, 303.17, 226.23, 314.0, 232.36, 316.66, 233.18, 300.72, 234.0, 293.36, 234.2, 288.25, 231.54, 279.46, 228.89, 276.19, 228.27, 272.11, 227.25, 266.79, 224.8, 263.73, 222.96, 259.64, 220.92, 257.39, 218.87, 254.74, 216.83, 249.63, 213.97, 246.15, 211.11, 244.11, 209.27, 240.63, 213.15, 239.82, 215.4, 232.87, 216.83, 230.01, 216.83]], "area": 1761.9529500000003, "iscrowd": 0, "image_id": 207110, "bbox": [230.01, 172.34, 86.65, 61.86], "category_id": 1, "id": 1720963}, {"segmentation": [[301.0, 77.14, 296.86, 80.2, 296.86, 85.24, 297.73, 88.74, 299.59, 92.46, 301.0, 93.44, 301.0, 93.44]], "area": 49.56299999999985, "iscrowd": 0, "image_id": 263275, "bbox": [296.86, 77.14, 4.14, 16.3], "category_id": 1, "id": 1721591}, {"segmentation": [[360.79, 214.65, 376.14, 262.62, 369.43, 260.7, 366.55, 267.42, 365.59, 271.26, 362.71, 272.22, 375.18, 275.1, 380.94, 273.18, 387.66, 269.34, 389.58, 265.5, 386.7, 261.66, 386.7, 246.31, 385.74, 240.55, 383.82, 236.72, 383.82, 235.76, 380.94, 227.12, 381.9, 221.36, 401.09, 208.89, 407.81, 202.17, 410.69, 195.46, 414.53, 184.9, 401.09, 167.63, 387.66, 158.99, 368.47, 147.48, 359.83, 146.52, 349.28, 132.12, 340.64, 132.12, 332.0, 142.68, 333.92, 157.07, 340.64, 164.75, 351.2, 164.75, 351.2, 174.34, 340.64, 182.98, 336.8, 187.78, 348.32, 195.46, 355.03, 185.86, 359.83, 187.78, 357.91, 198.33, 359.83, 205.05, 347.36, 206.97, 345.44, 218.48, 353.11, 216.57, 356.95, 212.73, 361.75, 211.77]], "area": 5012.0217, "iscrowd": 0, "image_id": 234655, "bbox": [332.0, 132.12, 82.53, 142.98], "category_id": 1, "id": 1721990}, {"segmentation": [[252.13, 109.69, 270.37, 69.92, 280.67, 32.95, 286.75, 7.22, 315.29, 5.81, 311.08, 43.25, 313.89, 69.45, 310.61, 100.8, 312.48, 109.69, 300.79, 101.73, 276.92, 104.54, 269.44, 108.75, 258.21, 114.37, 253.53, 125.6, 253.06, 111.09], [265.23, 125.13, 283.94, 119.05, 300.79, 119.05, 302.19, 119.05, 296.58, 127.94, 287.69, 134.49, 271.31, 136.36]], "area": 4434.90445, "iscrowd": 0, "image_id": 260969, "bbox": [252.13, 5.81, 63.16, 130.55], "category_id": 1, "id": 1722127}, {"segmentation": [[413.18, 158.64, 408.71, 162.61, 390.85, 167.57, 391.34, 170.55, 416.65, 177.5, 421.12, 182.46, 431.05, 217.7, 432.53, 237.55, 427.57, 260.88, 423.6, 276.76, 427.57, 285.69, 415.66, 289.66, 416.16, 311.0, 413.18, 330.85, 413.18, 341.27, 414.67, 349.71, 414.67, 359.14, 412.19, 371.55, 414.67, 376.51, 411.69, 393.88, 411.69, 400.83, 420.62, 403.81, 420.13, 393.39, 423.1, 382.47, 419.63, 375.02, 423.6, 362.62, 418.14, 346.73, 416.16, 326.88, 423.1, 306.04, 429.56, 308.52, 433.53, 330.85, 433.53, 347.23, 427.57, 359.64, 432.53, 367.08, 427.08, 377.01, 427.08, 386.93, 433.03, 394.87, 433.03, 405.3, 443.45, 412.24, 455.86, 406.29, 447.92, 392.39, 451.39, 380.98, 452.88, 369.56, 455.86, 355.17, 457.85, 329.36, 456.85, 312.99, 459.83, 290.65, 459.83, 283.71, 446.93, 255.91, 443.95, 235.56, 444.94, 216.21, 449.9, 179.98, 456.85, 171.05, 436.01, 161.12, 434.02, 154.67, 442.46, 143.75, 437.0, 122.91, 426.58, 116.45, 422.61, 117.94, 415.16, 119.43, 407.72, 125.88, 403.75, 137.8, 403.75, 145.74, 410.2, 158.14]], "area": 8255.19445, "iscrowd": 0, "image_id": 444214, "bbox": [390.85, 116.45, 68.98, 295.79], "category_id": 1, "id": 1722245}, {"segmentation": [[93.62, 233.6, 95.38, 228.83, 94.62, 223.55, 93.87, 221.29, 89.85, 219.78, 86.58, 219.53, 84.32, 221.29, 84.07, 226.07, 81.81, 230.09, 77.28, 236.87, 72.26, 242.9, 70.75, 250.19, 70.75, 261.5, 71.75, 265.27, 82.56, 252.45, 88.09, 250.19, 84.82, 246.67, 82.81, 241.14, 84.32, 237.12, 94.37, 233.6]], "area": 459.8193499999998, "iscrowd": 0, "image_id": 415946, "bbox": [70.75, 219.53, 24.63, 45.74], "category_id": 1, "id": 1722850}, {"segmentation": [[265.36, 255.0, 254.53, 254.55, 251.37, 269.0, 253.62, 281.64, 253.62, 285.7, 243.24, 286.15, 237.82, 296.08, 231.96, 317.75, 231.96, 330.84, 238.27, 333.1, 245.5, 324.52, 249.56, 330.39, 282.51, 332.19, 284.32, 325.42, 286.12, 319.1, 294.7, 333.55, 302.37, 330.84, 305.08, 319.55, 305.08, 297.89, 310.05, 286.15, 312.3, 279.83, 310.05, 269.9, 305.08, 278.93, 303.73, 282.09, 299.21, 279.83, 299.21, 279.83, 296.51, 286.15, 297.41, 289.31, 297.41, 300.14, 296.51, 314.14, 290.64, 298.34, 287.48, 287.51, 278.45, 284.8, 278.45, 270.35, 277.1, 259.97, 270.32, 257.26]], "area": 3797.1449499999985, "iscrowd": 0, "image_id": 156221, "bbox": [231.96, 254.55, 80.34, 79.0], "category_id": 1, "id": 1722909}, {"segmentation": [[332.38, 250.18, 324.62, 254.07, 322.68, 256.53, 318.02, 268.3, 316.85, 275.55, 317.76, 277.24, 324.1, 276.72, 328.63, 274.78, 330.96, 272.84, 332.9, 271.67, 333.42, 271.02, 337.17, 265.07, 339.11, 263.26, 340.8, 262.09, 340.93, 261.96, 343.77, 256.27, 347.4, 253.16, 346.1, 252.51, 344.55, 251.74, 343.64, 250.18, 345.2, 239.57, 343.64, 237.63, 341.96, 235.95, 339.24, 235.95, 336.14, 236.85, 333.94, 238.02, 332.12, 239.7, 331.61, 242.03, 331.22, 244.36, 331.74, 246.3, 332.0, 248.11, 331.87, 249.93, 331.61, 250.57]], "area": 629.2598999999998, "iscrowd": 0, "image_id": 377226, "bbox": [316.85, 235.95, 30.55, 41.29], "category_id": 1, "id": 1723003}, {"segmentation": [[625.26, 106.42, 575.15, 99.64, 575.15, 91.29, 590.81, 59.97, 597.07, 42.23, 605.95, 39.09, 617.43, 49.53, 625.26, 59.45, 630.48, 104.86], [606.99, 112.69, 603.86, 129.91, 580.89, 133.56, 584.55, 137.22, 624.74, 143.48, 625.26, 110.6, 604.38, 107.47], [582.46, 145.05, 585.59, 179.49, 586.11, 182.1, 593.94, 183.15, 601.25, 150.79, 602.29, 146.61], [610.64, 149.22, 609.6, 184.19, 622.13, 184.71, 622.13, 147.65], [592.9, 183.15, 588.2, 194.11, 576.72, 195.15, 576.2, 192.54, 580.37, 184.71, 584.55, 183.15], [610.64, 189.41, 611.17, 198.8, 624.74, 198.28, 623.17, 190.97]], "area": 4485.035, "iscrowd": 0, "image_id": 56699, "bbox": [575.15, 39.09, 55.33, 159.71], "category_id": 1, "id": 1723338}, {"segmentation": [[305.91, 477.14, 226.12, 507.24, 208.23, 517.75, 194.88, 522.86, 185.51, 510.65, 170.46, 490.77, 149.44, 437.38, 138.94, 395.64, 125.02, 358.15, 126.73, 349.06, 134.11, 342.82, 139.79, 342.25, 161.66, 389.39, 176.71, 415.23, 181.82, 410.4, 188.92, 400.18, 202.83, 382.29, 202.83, 381.15, 194.6, 362.41, 179.55, 327.48, 178.41, 318.96, 178.98, 311.3, 179.83, 306.18, 169.04, 293.12, 167.62, 274.95, 169.32, 262.45, 173.3, 250.81, 194.88, 242.01, 215.89, 244.56, 233.22, 252.8, 233.79, 263.59, 237.76, 309.59, 237.48, 321.24, 235.77, 324.64, 251.11, 336.57, 259.91, 356.16, 269.28, 353.61, 279.22, 351.62, 297.96, 366.39, 300.52, 362.7, 313.01, 382.86, 324.66, 401.03, 327.78, 414.66, 324.66, 422.9, 321.82, 428.29, 373.22, 431.13, 382.02, 437.38, 387.7, 447.89]], "area": 31320.3259, "iscrowd": 0, "image_id": 91307, "bbox": [125.02, 242.01, 262.68, 280.85], "category_id": 1, "id": 1724127}, {"segmentation": [[72.56, 138.77, 74.17, 140.75, 73.92, 143.35, 78.12, 160.27, 76.89, 164.22, 78.62, 176.08, 32.54, 177.44, 33.16, 174.6, 33.16, 173.74, 31.8, 169.78, 29.7, 169.54, 28.83, 166.82, 30.56, 163.24, 33.28, 158.66, 36.0, 145.32, 37.11, 138.9, 38.47, 127.41, 36.12, 112.96, 35.26, 100.11, 34.51, 96.4, 34.51, 92.57, 34.88, 90.23, 35.5, 86.89, 38.47, 86.02, 34.64, 83.18, 32.04, 79.72, 30.81, 76.14, 29.45, 73.42, 26.24, 68.98, 26.24, 65.52, 26.24, 62.92, 26.73, 59.46, 27.1, 57.74, 23.27, 52.3, 30.44, 46.99, 38.34, 44.64, 44.89, 44.52, 49.59, 44.39, 56.5, 48.59, 63.17, 57.36, 66.02, 63.66, 65.65, 66.63, 67.5, 71.32, 65.65, 73.05, 63.42, 76.51, 63.42, 76.76, 70.22, 85.41, 76.02, 96.4, 75.65, 102.08, 73.8, 107.89, 75.03, 120.99, 74.79, 133.59], [33.08, 190.47, 79.66, 190.35, 80.27, 196.52, 79.9, 205.66, 77.68, 207.64, 70.39, 207.76, 72.86, 217.4, 72.24, 237.29, 72.86, 251.25, 74.96, 258.78, 74.96, 261.63, 74.96, 264.84, 57.05, 269.04, 48.16, 269.04, 44.57, 268.79, 40.87, 266.2, 21.35, 266.32, 18.14, 264.47, 18.01, 261.75, 19.62, 260.88, 23.82, 259.77, 27.4, 258.78, 29.87, 257.43, 37.9, 247.42, 38.27, 244.82, 34.69, 225.8, 32.71, 210.73, 32.22, 207.27, 30.12, 203.19, 31.23, 198.0, 32.1, 192.82]], "area": 8304.518049999999, "iscrowd": 0, "image_id": 422341, "bbox": [18.01, 44.39, 62.26, 224.65], "category_id": 1, "id": 1724284}, {"segmentation": [[121.55, 117.38, 111.34, 106.57, 98.13, 98.76, 96.93, 89.16, 93.93, 74.74, 87.92, 68.74, 77.11, 61.53, 68.11, 69.94, 63.3, 78.95, 68.11, 91.56, 68.11, 101.77, 64.5, 111.38, 55.49, 125.19, 68.71, 126.39, 125.75, 119.18]], "area": 2186.3835500000005, "iscrowd": 0, "image_id": 216851, "bbox": [55.49, 61.53, 70.26, 64.86], "category_id": 1, "id": 1724385}, {"segmentation": [[639.91, 258.07, 621.3, 261.3, 614.02, 293.66, 594.61, 283.96, 614.02, 245.12, 622.92, 234.61, 617.26, 220.04, 627.78, 208.72, 639.1, 190.92, 639.1, 241.08]], "area": 1756.338200000001, "iscrowd": 0, "image_id": 64744, "bbox": [594.61, 190.92, 45.3, 102.74], "category_id": 1, "id": 1724603}, {"segmentation": [[455.97, 152.4, 455.97, 143.82, 453.17, 139.71, 456.72, 137.85, 459.52, 127.03, 458.02, 120.31, 456.72, 116.58, 451.49, 113.03, 448.32, 112.47, 444.59, 112.66, 443.66, 116.02, 442.72, 120.12, 446.64, 125.72, 444.96, 131.5, 445.15, 136.17, 444.96, 138.41, 455.22, 150.54]], "area": 393.0795500000004, "iscrowd": 0, "image_id": 579533, "bbox": [442.72, 112.47, 16.8, 39.93], "category_id": 1, "id": 1724672}, {"segmentation": [[637.48, 473.53, 465.98, 480.0, 396.94, 480.0, 402.34, 456.27, 419.6, 445.48, 528.54, 442.25, 578.16, 433.62, 580.31, 417.44, 557.66, 399.1, 465.98, 364.58, 470.29, 327.91, 471.37, 317.12, 522.07, 307.42, 543.64, 252.4, 553.35, 243.78, 540.4, 185.53, 554.43, 147.78, 595.42, 141.3, 638.56, 161.8, 639.64, 373.21]], "area": 40334.18644999999, "iscrowd": 0, "image_id": 115055, "bbox": [396.94, 141.3, 242.7, 338.7], "category_id": 1, "id": 1724691}, {"segmentation": [[230.24, 270.59, 225.2, 262.28, 224.45, 264.29, 224.95, 271.84, 222.18, 273.36, 220.92, 267.82, 220.67, 259.0, 217.15, 255.73, 216.64, 249.69, 220.17, 243.39, 227.22, 246.16, 229.99, 249.69, 230.24, 267.56]], "area": 255.6100000000003, "iscrowd": 0, "image_id": 506417, "bbox": [216.64, 243.39, 13.6, 29.97], "category_id": 1, "id": 1724729}, {"segmentation": [[288.78, 390.61, 287.62, 382.16, 286.47, 372.93, 284.55, 357.95, 276.86, 344.11, 280.71, 329.89, 289.16, 321.43, 293.39, 316.82, 299.15, 317.21, 300.69, 321.43, 293.39, 379.85, 293.39, 389.46]], "area": 924.2472499999991, "iscrowd": 0, "image_id": 111831, "bbox": [276.86, 316.82, 23.83, 73.79], "category_id": 1, "id": 1724808}, {"segmentation": [[576.24, 103.7, 562.01, 101.66, 563.23, 76.86, 560.38, 72.79, 561.2, 63.03, 566.89, 36.19, 567.7, 30.09, 572.99, 16.26, 576.24, 12.2, 582.75, 11.79, 587.22, 14.64, 590.07, 19.11, 590.48, 27.65, 598.2, 37.0, 598.2, 43.1, 582.34, 78.08, 576.24, 91.9, 578.68, 98.0], [579.51, 138.82, 560.75, 136.14, 562.76, 108.68, 570.13, 108.68], [572.14, 168.29, 560.75, 156.24, 559.41, 146.19, 572.14, 144.18]], "area": 2655.197550000001, "iscrowd": 0, "image_id": 56699, "bbox": [559.41, 11.79, 38.79, 156.5], "category_id": 1, "id": 1724894}, {"segmentation": [[0.0, 236.52, 14.09, 253.67, 29.33, 275.59, 31.24, 285.12, 33.14, 302.27, 32.19, 313.71, 36.96, 323.24, 40.77, 327.05, 37.91, 335.62, 39.81, 348.01, 41.72, 368.98, 41.72, 391.85, 34.1, 412.81, 26.47, 423.29, 0.0, 425.0, 0.0, 411.86, 0.0, 302.27, 0.0, 267.97]], "area": 6050.852400000001, "iscrowd": 0, "image_id": 318509, "bbox": [0.0, 236.52, 41.72, 188.48], "category_id": 1, "id": 1724941}, {"segmentation": [[173.8, 219.54, 192.44, 194.49, 181.95, 195.07, 176.13, 186.92, 179.62, 174.1, 195.35, 174.68, 199.43, 164.2, 207.58, 163.03, 218.65, 162.45, 220.98, 170.02, 220.98, 182.84, 218.65, 189.25, 216.91, 189.83, 219.82, 200.32, 220.4, 209.64, 220.4, 218.96, 216.32, 220.12, 202.34, 220.71, 196.52, 220.71, 193.02, 220.71, 190.11, 221.87, 187.2, 224.78, 186.03, 229.44, 181.37, 230.03, 181.37, 225.37, 181.37, 223.04, 170.88, 223.04, 170.88, 217.79]], "area": 2151.4732499999996, "iscrowd": 0, "image_id": 240762, "bbox": [170.88, 162.45, 50.1, 67.58], "category_id": 1, "id": 1725285}, {"segmentation": [[24.74, 136.02, 24.12, 130.39, 28.12, 118.27, 33.49, 116.52, 35.74, 114.77, 38.37, 112.64, 42.74, 112.39, 44.87, 115.14, 46.37, 117.52, 48.12, 120.27, 47.24, 129.52, 48.87, 132.64, 50.99, 138.77, 55.87, 148.14, 60.37, 155.77, 59.87, 157.52, 56.49, 158.27, 52.62, 157.77, 49.37, 152.77, 48.37, 148.64, 38.62, 132.64, 36.99, 130.27, 33.87, 131.39, 32.62, 135.02, 32.49, 155.39, 31.99, 163.52, 29.24, 164.52, 26.62, 164.39, 24.49, 160.39, 25.37, 148.77, 23.62, 138.14]], "area": 830.7271999999999, "iscrowd": 0, "image_id": 375659, "bbox": [23.62, 112.39, 36.75, 52.13], "category_id": 1, "id": 1725326}, {"segmentation": [[144.61, 350.11, 145.69, 345.32, 146.43, 343.67, 146.76, 341.94, 148.74, 339.88, 152.45, 339.39, 154.1, 341.53, 158.72, 344.33, 159.46, 347.22, 156.49, 349.03, 159.05, 350.35, 163.99, 348.21, 166.22, 348.21, 168.12, 349.45, 171.09, 351.51, 173.56, 352.42, 175.37, 354.39, 175.04, 357.12, 167.54, 359.18, 161.6, 358.6, 159.37, 359.18, 154.34, 358.93, 147.42, 357.69, 144.61, 354.23]], "area": 364.90815000000043, "iscrowd": 0, "image_id": 187474, "bbox": [144.61, 339.39, 30.76, 19.79], "category_id": 1, "id": 1725848}, {"segmentation": [[36.06, 349.89, 35.67, 338.95, 37.82, 334.65, 40.56, 332.89, 44.07, 331.14, 43.49, 329.38, 41.53, 324.49, 42.32, 319.02, 47.98, 317.27, 50.91, 320.0, 51.69, 325.28, 53.45, 326.25, 50.52, 333.29, 48.37, 339.54]], "area": 282.11145000000033, "iscrowd": 0, "image_id": 201260, "bbox": [35.67, 317.27, 17.78, 32.62], "category_id": 1, "id": 1725863}, {"segmentation": [[222.49, 161.4, 221.61, 161.17, 222.32, 157.3, 221.55, 156.88, 222.73, 155.42, 223.2, 154.89, 223.02, 154.24, 223.61, 153.66, 224.43, 154.07, 224.43, 154.71, 224.49, 155.42, 225.84, 156.88, 226.19, 158.06, 225.43, 159.23, 225.49, 162.46, 226.84, 163.75, 226.31, 164.51, 225.9, 164.98, 225.9, 166.39, 225.72, 167.04, 224.25, 167.04, 223.67, 166.98, 223.32, 164.46, 222.49, 166.27, 222.43, 166.74, 221.03, 166.74, 220.79, 166.45, 222.67, 162.69, 222.61, 161.4]], "area": 44.30295000000016, "iscrowd": 0, "image_id": 576322, "bbox": [220.79, 153.66, 6.05, 13.38], "category_id": 1, "id": 1726016}, {"segmentation": [[526.84, 519.91, 526.26, 517.61, 528.75, 516.27, 528.75, 512.63, 531.44, 513.78, 532.97, 516.46, 533.55, 520.1]], "area": 33.676300000000076, "iscrowd": 0, "image_id": 181149, "bbox": [526.26, 512.63, 7.29, 7.47], "category_id": 1, "id": 1726029}, {"segmentation": [[75.65, 34.97, 73.39, 34.22, 73.23, 32.41, 73.31, 30.98, 72.93, 29.7, 73.01, 28.79, 73.69, 28.04, 74.74, 28.12, 75.72, 29.55, 76.4, 31.28, 76.78, 34.67]], "area": 19.238499999999988, "iscrowd": 0, "image_id": 382979, "bbox": [72.93, 28.04, 3.85, 6.93], "category_id": 1, "id": 1726300}, {"segmentation": [[160.2, 37.49, 147.55, 37.49, 148.1, 19.89, 140.95, 17.14, 134.63, 12.19, 131.61, 10.27, 134.08, 5.6, 137.1, 0.1, 184.67, 0.0, 186.32, 11.92, 176.7, 19.62, 172.02, 22.92, 171.47, 36.11, 174.77, 38.86, 162.67, 38.31, 161.57, 33.91, 162.4, 22.92, 156.35, 20.17, 157.45, 31.71]], "area": 1310.4917499999997, "iscrowd": 0, "image_id": 191918, "bbox": [131.61, 0.0, 54.71, 38.86], "category_id": 1, "id": 1726303}, {"segmentation": [[370.46, 41.27, 376.2, 29.79, 378.79, 23.18, 383.67, 18.01, 392.57, 17.73, 399.47, 22.03, 398.89, 44.43, 401.76, 76.88, 385.11, 78.32, 378.79, 72.58, 378.79, 63.96, 377.35, 58.51, 369.31, 47.88, 371.03, 40.41], [422.15, 56.21, 437.37, 61.38, 436.51, 75.74, 434.21, 85.79, 416.12, 80.62, 421.58, 68.56, 418.99, 60.8, 419.28, 56.5]], "area": 1844.5882999999994, "iscrowd": 0, "image_id": 53615, "bbox": [369.31, 17.73, 68.06, 68.06], "category_id": 1, "id": 1726616}, {"segmentation": [[498.33, 105.11, 507.09, 109.67, 515.15, 129.64, 505.34, 144.01, 504.28, 175.19, 502.53, 190.61, 499.38, 180.45, 499.73, 123.33, 494.12, 117.38]], "area": 664.4566499999976, "iscrowd": 0, "image_id": 383605, "bbox": [494.12, 105.11, 21.03, 85.5], "category_id": 1, "id": 1727194}, {"segmentation": [[577.92, 231.92, 577.39, 225.33, 576.68, 222.12, 575.79, 224.62, 574.36, 221.94, 574.0, 220.87, 574.18, 216.42, 574.72, 212.68, 574.72, 206.62, 574.72, 203.42, 576.68, 198.96, 576.14, 199.85, 577.74, 196.47, 578.1, 195.58, 579.35, 194.69, 579.35, 192.73, 578.99, 190.94, 578.99, 189.88, 580.6, 187.2, 582.02, 186.31, 585.41, 186.49, 587.72, 187.92, 589.68, 189.7, 589.68, 192.9, 592.0, 193.26, 594.49, 195.58, 596.45, 198.43, 596.81, 200.21, 596.99, 207.51, 596.99, 211.25, 597.52, 213.75, 597.16, 215.35, 595.92, 216.42, 593.96, 215.53, 593.6, 217.13, 592.89, 222.66, 591.64, 226.93, 590.22, 233.7, 589.5, 234.95, 588.97, 237.62, 584.69, 238.33, 585.05, 235.48, 585.41, 231.39, 584.16, 224.79, 583.45, 229.43, 582.56, 232.63, 582.38, 234.59, 581.31, 239.22, 580.77, 235.84, 579.53, 233.17, 578.46, 231.92]], "area": 825.1318499999998, "iscrowd": 0, "image_id": 487322, "bbox": [574.0, 186.31, 23.52, 52.91], "category_id": 1, "id": 1727633}, {"segmentation": [[2.52, 235.43, 49.61, 217.77, 116.87, 219.45, 107.62, 227.86, 127.8, 235.43, 135.37, 256.45, 108.46, 307.74, 0.84, 369.96, 0.84, 236.27], [202.63, 351.46, 227.86, 359.02, 234.59, 366.59, 168.16, 369.11, 202.63, 352.3]], "area": 14418.520999999997, "iscrowd": 0, "image_id": 484307, "bbox": [0.84, 217.77, 233.75, 152.19], "category_id": 1, "id": 1727873}, {"segmentation": [[406.83, 318.43, 401.24, 317.93, 398.71, 317.7, 398.71, 316.32, 401.01, 313.34, 400.32, 307.37, 398.94, 303.7, 398.94, 300.71, 398.71, 297.27, 392.97, 297.04, 392.51, 294.52, 394.35, 293.37, 394.81, 294.52, 399.4, 290.85, 398.94, 285.57, 402.61, 285.11, 406.28, 285.8, 409.5, 288.09, 408.58, 290.85, 411.1, 293.83, 408.35, 297.96, 406.28, 303.01, 405.83, 305.3, 404.91, 309.44, 406.06, 315.4, 406.28, 317.7]], "area": 280.28820000000036, "iscrowd": 0, "image_id": 575792, "bbox": [392.51, 285.11, 18.59, 33.32], "category_id": 1, "id": 1727931}, {"segmentation": [[162.89, 205.99, 140.1, 205.99, 136.3, 156.61, 131.24, 135.72, 133.14, 111.67, 140.73, 93.94, 161.63, 78.75, 171.12, 76.21, 169.86, 67.35, 174.29, 57.85, 185.68, 51.52, 199.61, 58.49, 200.24, 66.08, 200.24, 76.21, 181.88, 76.85, 174.92, 84.44, 176.82, 97.74, 185.68, 105.97, 174.29, 116.73, 185.05, 130.66, 165.42, 145.22, 153.4, 178.77, 156.56, 196.5, 166.69, 196.5]], "area": 4617.0378, "iscrowd": 0, "image_id": 420051, "bbox": [131.24, 51.52, 69.0, 154.47], "category_id": 1, "id": 1728110}, {"segmentation": [[315.68, 98.74, 296.94, 169.37, 283.96, 202.52, 266.67, 244.32, 263.78, 254.41, 253.69, 281.8, 246.49, 310.63, 260.9, 317.84, 279.64, 289.01, 295.5, 260.18, 317.12, 242.88, 331.53, 218.38, 347.39, 278.92, 357.48, 294.77, 345.95, 391.35, 341.62, 414.41, 321.44, 418.74, 345.95, 434.59, 353.15, 437.48, 369.01, 441.8, 399.28, 434.59, 418.02, 417.3, 418.02, 349.55, 400.72, 316.4, 392.07, 284.68, 400.72, 255.86, 400.72, 224.14, 405.05, 192.43, 413.69, 176.58, 420.9, 165.05, 413.69, 111.71, 418.02, 82.88, 394.95, 77.12, 381.98, 80.0, 371.89, 88.65, 361.8, 114.59, 350.27, 121.8, 341.62, 111.71, 328.65, 103.06], [367.57, 5.05, 371.89, 18.02, 374.77, 39.64, 390.63, 43.96, 403.6, 20.9, 418.02, 10.81, 422.34, 5.05]], "area": 32047.735450000007, "iscrowd": 0, "image_id": 260969, "bbox": [246.49, 5.05, 175.85, 436.75], "category_id": 1, "id": 1728160}, {"segmentation": [[534.5, 383.52, 534.89, 386.45, 536.06, 387.23, 535.47, 389.96, 532.74, 391.53, 532.54, 393.48, 518.28, 394.07, 519.45, 386.64, 518.09, 385.08, 520.24, 381.76, 521.99, 380.2, 523.17, 377.66, 522.19, 375.31, 520.82, 373.36, 521.99, 370.82, 524.53, 369.45, 526.68, 370.23, 529.81, 371.01, 531.18, 373.36, 531.37, 376.29, 530.39, 377.85, 533.21, 384.22, 534.39, 382.46]], "area": 287.3783499999993, "iscrowd": 0, "image_id": 567318, "bbox": [518.09, 369.45, 17.97, 24.62], "category_id": 1, "id": 1728443}, {"segmentation": [[420.05, 134.4, 424.17, 129.73, 429.95, 123.96, 432.42, 120.66, 434.35, 115.98, 438.47, 112.13, 443.14, 109.39, 449.74, 106.36, 455.52, 103.06, 466.51, 103.06, 475.31, 111.58, 481.09, 121.21, 482.19, 126.43, 483.01, 133.86, 482.19, 140.45, 481.91, 148.15, 485.76, 156.4, 490.16, 162.17, 493.73, 166.85, 498.13, 170.97, 503.36, 177.57, 508.03, 185.82, 512.15, 203.42, 512.15, 208.36, 512.15, 214.69, 513.25, 245.76, 509.95, 247.96, 506.38, 247.68, 505.28, 246.31, 495.93, 210.01, 491.26, 194.34, 486.03, 181.14, 481.91, 171.52, 476.96, 168.22, 475.31, 167.12, 467.06, 165.75, 462.66, 165.2, 453.04, 166.02, 446.17, 167.4, 437.92, 165.75, 433.25, 164.92, 424.45, 151.18, 420.05, 145.68, 414.0, 141.28, 418.12, 136.33]], "area": 4554.637549999999, "iscrowd": 0, "image_id": 119337, "bbox": [414.0, 103.06, 99.25, 144.9], "category_id": 1, "id": 1728734}, {"segmentation": [[207.1, 537.89, 194.16, 509.12, 179.78, 497.62, 161.08, 491.87, 140.94, 494.74, 125.12, 487.55, 115.06, 478.92, 104.99, 468.85, 102.11, 444.4, 116.49, 437.21, 129.44, 434.34, 140.94, 432.9, 151.01, 425.71, 149.57, 412.76, 151.01, 404.13, 151.01, 384.0, 158.2, 372.49, 201.35, 369.62, 208.54, 384.0, 217.17, 404.13, 227.24, 414.2, 237.3, 419.96, 244.49, 422.83, 271.82, 418.52, 286.2, 414.2, 217.17, 535.01]], "area": 15134.747600000004, "iscrowd": 0, "image_id": 14575, "bbox": [102.11, 369.62, 184.09, 168.27], "category_id": 1, "id": 1728803}, {"segmentation": [[296.63, 245.93, 284.76, 243.78, 279.37, 243.78, 268.58, 248.09, 261.03, 252.4, 256.72, 249.17, 254.56, 243.78, 247.01, 243.78, 242.7, 241.62, 241.62, 248.09, 237.3, 232.99, 241.62, 216.81, 235.15, 190.92, 242.7, 173.66, 251.33, 168.27, 250.25, 153.17, 270.74, 151.01, 280.45, 163.96, 294.47, 173.66, 299.87, 193.08, 297.71, 206.02, 295.55, 214.65]], "area": 4870.33245, "iscrowd": 0, "image_id": 206427, "bbox": [235.15, 151.01, 64.72, 101.39], "category_id": 1, "id": 1728940}, {"segmentation": [[84.71, 154.89, 87.13, 148.44, 89.55, 146.83, 87.13, 137.95, 85.51, 133.11, 83.09, 131.5, 77.45, 136.34, 80.67, 144.41, 79.06, 150.86, 74.22, 156.51, 68.57, 164.58, 65.35, 173.45, 58.89, 182.32, 54.86, 196.04, 56.47, 219.43, 55.67, 239.6, 53.24, 247.67, 52.44, 256.54, 51.63, 270.26, 52.44, 283.97, 58.89, 287.2, 58.09, 297.69, 58.09, 307.37, 57.28, 321.08, 62.93, 327.54, 65.35, 322.7, 66.96, 313.02, 66.15, 300.91, 70.19, 299.3, 75.03, 284.78, 77.45, 279.94, 79.06, 272.68, 81.48, 281.55, 82.29, 286.39, 82.29, 298.49, 79.06, 309.79, 75.03, 326.73, 72.61, 336.41, 83.9, 341.25, 90.36, 341.25, 93.58, 338.02, 83.9, 328.34, 86.32, 317.05, 93.58, 302.53, 96.81, 289.62, 97.62, 278.33, 100.04, 271.87, 100.04, 247.67, 100.04, 241.22, 96.81, 228.31, 95.2, 221.85, 96.0, 209.75, 108.91, 225.89, 120.2, 238.8, 126.66, 245.25, 127.47, 250.09, 133.11, 250.09, 132.31, 245.25, 125.85, 233.96, 114.56, 217.01, 102.46, 198.46, 98.42, 186.36, 94.39, 179.1, 95.2, 175.06, 91.97, 162.96, 88.74, 156.51]], "area": 6960.9607000000005, "iscrowd": 0, "image_id": 562845, "bbox": [51.63, 131.5, 81.48, 209.75], "category_id": 1, "id": 1729244}, {"segmentation": [[476.76, 506.06, 472.09, 467.49, 463.91, 451.13, 461.57, 432.44, 468.58, 409.07, 489.62, 390.37, 548.04, 382.19, 578.43, 410.24, 581.93, 426.59, 587.78, 445.29, 584.27, 466.33, 598.29, 490.86, 598.29, 504.89]], "area": 13402.785599999996, "iscrowd": 0, "image_id": 461530, "bbox": [461.57, 382.19, 136.72, 123.87], "category_id": 1, "id": 1729285}, {"segmentation": [[612.61, 110.38, 606.34, 132.93, 614.69, 137.11, 616.78, 188.06, 625.14, 200.17, 623.05, 205.19, 636.0, 205.6, 634.74, 194.33, 638.5, 199.34, 640.0, 174.7, 638.5, 140.45, 638.5, 118.73, 635.16, 111.21], [619.29, 97.43, 628.48, 91.16, 633.91, 94.09, 634.32, 100.77, 631.82, 100.77]], "area": 2297.5692999999987, "iscrowd": 0, "image_id": 429144, "bbox": [606.34, 91.16, 33.66, 114.44], "category_id": 1, "id": 1729529}, {"segmentation": [[509.17, 250.74, 536.06, 246.4, 541.27, 234.26, 542.13, 217.78, 536.06, 183.95, 533.46, 154.46, 536.93, 118.89, 533.46, 92.0, 548.21, 78.99, 560.35, 74.66, 634.95, 65.11, 637.55, 113.69, 635.82, 139.71, 622.8, 180.48, 608.06, 172.67, 595.91, 190.02, 595.91, 213.44, 600.25, 231.66, 586.37, 263.75, 576.83, 288.04, 576.83, 298.45, 562.95, 300.18, 555.15, 301.05, 539.53, 284.57, 519.58, 282.84, 495.29, 274.16, 485.75, 256.81, 489.22, 249.01, 496.16, 249.01, 513.51, 249.01]], "area": 18183.5007, "iscrowd": 0, "image_id": 167671, "bbox": [485.75, 65.11, 151.8, 235.94], "category_id": 1, "id": 1729665}, {"segmentation": [[480.0, 376.81, 418.52, 389.75, 371.06, 424.27, 314.97, 520.63, 279.01, 559.46, 247.37, 572.4, 221.48, 572.4, 212.85, 562.34, 192.72, 569.53, 175.46, 583.91, 152.45, 576.72, 139.51, 563.78, 123.69, 563.78, 103.55, 586.79, 80.54, 589.66, 60.4, 579.6, 56.09, 556.58, 81.98, 529.26, 87.73, 506.25, 63.28, 517.75, 48.9, 503.37, 48.9, 477.48, 70.47, 440.09, 207.1, 312.09, 244.49, 284.76, 346.61, 225.8, 376.81, 186.97, 396.94, 192.72, 478.92, 125.12]], "area": 97728.88535, "iscrowd": 0, "image_id": 432967, "bbox": [48.9, 125.12, 431.1, 464.54], "category_id": 1, "id": 1729697}, {"segmentation": [[0.35, 229.61, 35.92, 203.32, 21.23, 182.44, 21.23, 159.23, 39.01, 149.95, 71.5, 156.91, 76.91, 180.12, 70.72, 210.28, 106.3, 226.52, 115.58, 285.29, 99.34, 289.93, 73.82, 310.81, 35.15, 340.2, 30.51, 334.79, 54.48, 314.68, 46.75, 298.44, 8.85, 303.08, 1.89, 295.35]], "area": 12512.202099999999, "iscrowd": 0, "image_id": 561406, "bbox": [0.35, 149.95, 115.23, 190.25], "category_id": 1, "id": 1729982}, {"segmentation": [[536.68, 99.73, 542.94, 96.15, 555.45, 97.94, 564.84, 102.86, 565.73, 105.09, 563.5, 113.14, 561.71, 133.7, 575.12, 148.01, 577.8, 156.05, 570.2, 207.91, 567.97, 194.94, 568.86, 156.95, 559.03, 149.35, 544.72, 141.75, 541.59, 135.49, 542.04, 127.44, 545.62, 116.72, 547.85, 109.12, 535.78, 99.73]], "area": 1425.9469999999994, "iscrowd": 0, "image_id": 579533, "bbox": [535.78, 96.15, 42.02, 111.76], "category_id": 1, "id": 1730115}, {"segmentation": [[12.76, 147.23, 18.07, 125.97, 20.2, 115.34, 27.64, 108.96, 39.33, 110.03, 43.59, 120.66, 42.52, 130.23, 18.07, 144.05]], "area": 672.5441500000002, "iscrowd": 0, "image_id": 446331, "bbox": [12.76, 108.96, 30.83, 38.27], "category_id": 1, "id": 1730498}, {"segmentation": [[262.58, 281.07, 275.31, 252.21, 281.25, 231.83, 286.35, 220.8, 290.59, 202.12, 288.05, 197.87, 272.76, 190.23, 256.63, 185.14, 252.39, 178.35, 260.88, 170.71, 270.22, 170.71, 266.82, 177.5, 268.52, 182.59, 279.56, 182.59, 291.44, 184.29, 297.38, 185.99, 304.18, 185.99, 305.87, 180.04, 315.21, 163.91, 314.36, 159.67, 327.95, 163.91, 327.95, 174.95, 321.16, 186.84, 321.16, 191.93, 329.65, 193.63, 337.29, 204.67, 342.38, 232.68, 342.38, 243.72, 337.29, 248.81, 335.59, 249.66, 329.65, 238.62, 327.95, 230.98, 323.7, 225.89, 319.46, 232.68, 318.61, 287.02, 264.27, 283.62], [294.84, 294.66, 317.76, 295.51, 312.67, 332.01, 310.12, 370.22, 311.82, 388.05, 297.38, 385.5, 298.23, 379.56, 298.23, 362.58, 298.23, 335.41, 296.54, 297.2], [283.8, 295.51, 274.46, 311.64, 274.46, 338.8, 272.76, 355.78, 274.46, 363.42, 274.46, 371.07, 269.37, 382.1, 266.82, 384.65, 260.88, 387.2, 255.78, 382.1, 256.63, 367.67, 261.73, 361.73, 261.73, 343.9, 260.88, 327.77, 260.88, 307.39, 265.12, 292.11]], "area": 8385.104349999998, "iscrowd": 0, "image_id": 318310, "bbox": [252.39, 159.67, 89.99, 228.38], "category_id": 1, "id": 1731223}, {"segmentation": [[6.8, 261.13, 20.06, 254.25, 25.96, 242.95, 27.43, 234.11, 28.9, 228.22, 27.43, 225.27, 19.08, 225.27, 14.17, 221.34, 6.8, 228.22, 0.0, 237.55, 0.0, 241.48, 2.38, 261.62, 4.35, 264.56]], "area": 784.1137999999999, "iscrowd": 0, "image_id": 64744, "bbox": [0.0, 221.34, 28.9, 43.22], "category_id": 1, "id": 1731438}, {"segmentation": [[371.43, 286.79, 376.38, 281.22, 379.48, 279.36, 374.83, 273.16, 372.98, 267.28, 375.14, 258.61, 380.41, 253.65, 385.06, 251.17, 384.75, 249.93, 382.89, 246.22, 381.96, 239.71, 381.96, 237.54, 385.06, 235.68, 386.92, 235.06, 390.94, 233.82, 394.04, 235.68, 396.21, 237.85, 397.45, 240.33, 397.76, 243.43, 394.66, 247.45, 395.28, 250.24, 398.69, 251.79, 402.09, 252.1, 404.57, 252.41, 406.43, 253.34, 407.98, 256.13, 407.98, 259.84, 407.67, 264.49, 407.36, 269.76, 408.6, 276.26, 411.08, 280.6, 412.63, 282.77, 411.7, 283.7, 403.38, 283.8, 396.72, 284.73, 388.77, 286.07, 372.05, 286.48]], "area": 1308.9107500000002, "iscrowd": 0, "image_id": 385701, "bbox": [371.43, 233.82, 41.2, 52.97], "category_id": 1, "id": 1732170}, {"segmentation": [[64.71, 128.26, 59.73, 131.57, 50.21, 144.0, 45.65, 151.05, 51.86, 153.95, 57.66, 144.83, 58.08, 152.29, 60.98, 165.96, 65.53, 181.29, 65.95, 194.55, 72.99, 195.79, 75.06, 192.89, 78.38, 181.29, 80.86, 173.42, 78.38, 153.12, 76.89, 144.09, 73.33, 132.21, 75.41, 126.27, 75.41, 120.62, 70.95, 116.46, 65.61, 116.76, 64.12, 121.51, 64.12, 125.97]], "area": 1308.8958, "iscrowd": 0, "image_id": 517261, "bbox": [45.65, 116.46, 35.21, 79.33], "category_id": 1, "id": 1732606}, {"segmentation": [[464.62, 160.67, 459.51, 165.05, 455.62, 177.46, 460.49, 184.77, 459.75, 194.75, 459.75, 203.27, 461.7, 219.09, 460.73, 232.72, 469.0, 232.48, 469.49, 220.3, 469.98, 203.02, 470.95, 202.78, 473.63, 220.06, 474.6, 228.82, 474.6, 232.23, 480.2, 232.72, 484.83, 230.04, 480.2, 224.2, 479.71, 209.11, 479.47, 204.48, 480.69, 196.45, 480.2, 186.96, 481.42, 180.39, 485.56, 181.12, 488.48, 175.76, 486.04, 169.19, 485.31, 164.32, 479.47, 159.45, 482.39, 159.45, 483.12, 158.48, 479.23, 156.04, 478.5, 152.15, 475.82, 149.72, 469.73, 148.99, 467.54, 152.15, 467.54, 153.61, 462.92, 154.58, 462.92, 157.99, 465.6, 158.24]], "area": 1646.3005499999995, "iscrowd": 0, "image_id": 560350, "bbox": [455.62, 148.99, 32.86, 83.73], "category_id": 1, "id": 1732824}, {"segmentation": [[379.14, 236.51, 392.92, 237.57, 404.05, 242.87, 412.0, 246.58, 424.73, 249.23, 431.62, 249.23, 440.63, 248.7, 450.7, 246.58, 454.41, 244.46, 457.59, 241.81, 459.18, 235.45, 460.77, 231.21, 462.36, 229.62, 465.54, 228.03, 475.08, 227.5, 481.97, 230.15, 483.56, 232.8, 483.56, 248.7, 480.91, 256.12, 479.32, 263.01, 472.96, 265.66, 458.65, 268.31, 450.7, 267.78, 425.79, 263.54, 424.73, 263.54, 415.71, 265.13, 411.47, 273.08, 404.58, 279.44, 402.99, 274.67, 404.05, 271.49, 406.7, 268.84, 408.29, 261.42, 397.16, 267.25, 393.98, 267.25, 389.34, 268.62, 388.99, 265.47, 382.69, 264.07, 381.65, 263.37, 381.65, 262.32, 382.35, 259.18, 384.09, 258.13, 388.29, 257.43, 395.98, 254.63, 397.38, 253.58, 397.73, 252.53, 394.94, 248.68, 388.29, 249.38, 386.89, 249.03, 386.19, 247.64, 386.54, 245.89, 387.59, 244.84, 387.59, 243.79, 379.2, 241.34, 377.1, 239.59, 376.4, 237.14]], "area": 2446.4139999999998, "iscrowd": 0, "image_id": 14575, "bbox": [376.4, 227.5, 107.16, 51.94], "category_id": 1, "id": 1732847}, {"segmentation": [[47.98, 330.09, 61.41, 306.1, 70.05, 262.92, 85.4, 249.48, 108.43, 241.81, 124.74, 232.21, 141.05, 228.37, 153.53, 225.49, 166.0, 221.66, 187.11, 222.62, 191.91, 232.21, 194.79, 244.69, 185.19, 252.36, 176.56, 255.24, 167.92, 261.0, 162.16, 264.84, 147.77, 273.47, 136.26, 279.23, 127.62, 290.74, 130.5, 302.26, 132.42, 308.02, 128.58, 320.49, 122.82, 333.92, 118.98, 326.25, 108.43, 321.45, 104.59, 320.49, 104.59, 306.1, 97.87, 302.26, 91.16, 315.69, 81.56, 320.49, 71.97, 327.21, 70.05, 330.09, 58.53, 332.0], [39.34, 364.63, 42.22, 382.86, 52.78, 382.86, 53.73, 382.86, 58.53, 379.02, 58.53, 371.35, 54.69, 355.03, 51.82, 354.07, 37.42, 359.83]], "area": 8044.4178, "iscrowd": 0, "image_id": 448843, "bbox": [37.42, 221.66, 157.37, 161.2], "category_id": 1, "id": 1732859}, {"segmentation": [[137.29, 39.06, 140.23, 41.22, 142.98, 43.18, 146.32, 46.32, 148.08, 48.68, 148.26, 49.41, 149.71, 49.23, 151.33, 48.51, 152.78, 50.14, 154.22, 52.66, 155.85, 54.83, 157.47, 57.36, 158.91, 60.07, 159.46, 61.69, 162.53, 63.68, 164.51, 65.12, 166.86, 66.21, 167.22, 61.69, 167.04, 58.26, 167.04, 54.11, 167.04, 51.4, 166.32, 50.5, 165.78, 48.33, 165.42, 45.62, 165.96, 43.09, 166.5, 41.65, 166.5, 40.57, 164.51, 36.23, 162.53, 31.0, 161.08, 30.82, 159.1, 30.82, 157.83, 30.64, 154.94, 29.73, 153.68, 28.11, 154.4, 27.57, 155.3, 26.48, 155.85, 24.86, 156.03, 23.59, 155.12, 22.69, 154.76, 19.8, 152.41, 16.91, 150.97, 16.01, 149.35, 15.83, 147.54, 17.09, 145.19, 19.08, 144.83, 20.89, 144.83, 23.77, 145.37, 25.4, 146.09, 26.48, 146.46, 27.39, 147.36, 29.01, 146.28, 30.27, 143.75, 31.0, 142.12, 31.9, 141.4, 32.44, 139.59, 33.89, 139.05, 35.87, 137.97, 37.68]], "area": 710.9252999999999, "iscrowd": 0, "image_id": 289693, "bbox": [137.29, 15.83, 29.93, 50.38], "category_id": 1, "id": 1732908}, {"segmentation": [[440.75, 87.78, 430.07, 78.35, 414.98, 66.41, 412.46, 56.98, 414.98, 43.77, 409.95, 31.83, 407.44, 19.89, 411.84, 7.31, 421.89, 0.4, 447.04, 0.4, 456.47, 13.6, 459.61, 31.83, 460.24, 35.6, 480.36, 47.55, 470.3, 65.15, 460.87, 78.35, 458.98, 78.35, 464.01, 82.12, 471.55, 83.38, 469.67, 89.66, 461.5, 89.66, 448.3, 89.66]], "area": 4271.785850000001, "iscrowd": 0, "image_id": 151322, "bbox": [407.44, 0.4, 72.92, 89.26], "category_id": 1, "id": 1733198}, {"segmentation": [[165.29, 368.66, 167.22, 373.49, 173.98, 378.32, 175.91, 386.37, 179.45, 394.42, 170.12, 403.43, 168.18, 417.28, 167.22, 429.83, 167.22, 436.59, 167.86, 437.24, 165.29, 447.22, 166.9, 456.88, 167.86, 458.49, 162.39, 457.84, 159.17, 457.84, 155.63, 459.77, 152.41, 461.71, 151.12, 460.42, 152.09, 451.4, 149.51, 444.32, 146.29, 433.7, 146.29, 427.26, 145.33, 418.56, 145.0, 407.3, 142.75, 395.06, 138.24, 393.78, 136.31, 387.98, 141.78, 374.46, 149.83, 371.24, 150.8, 369.95]], "area": 2227.700049999999, "iscrowd": 0, "image_id": 493245, "bbox": [136.31, 368.66, 43.14, 93.05], "category_id": 1, "id": 1733975}, {"segmentation": [[348.0, 164.0, 347.5, 147.5, 333.0, 123.5, 311.5, 124.5, 300.0, 130.5, 297.0, 162.5, 301.0, 177.0, 305.0, 183.5, 296.0, 195.5, 295.0, 204.5, 295.0, 214.0, 275.5, 228.0, 272.5, 275.5, 272.5, 304.5, 276.0, 313.5, 294.0, 313.5, 299.5, 331.5, 295.0, 381.5, 301.5, 448.5, 299.5, 478.0, 317.0, 472.5, 334.5, 526.5, 345.0, 433.5, 349.5, 437.0, 350.5, 529.5, 388.0, 524.0, 390.5, 432.0, 395.5, 374.0, 382.5, 317.0, 380.5, 277.5, 400.0, 276.5, 408.5, 255.5, 404.0, 247.0, 404.5, 242.0, 378.0, 220.5, 389.5, 237.5, 384.0, 245.0, 365.0, 247.0, 336.0, 232.0, 325.0, 217.0, 322.0, 221.0, 326.0, 231.0, 315.0, 246.5, 321.5, 253.0, 330.0, 251.5, 338.0, 261.0, 377.5, 275.0, 378.0, 300.0, 368.5, 333.5, 348.0, 335.5, 353.0, 346.0, 329.0, 359.0, 309.0, 315.5, 307.5, 293.0, 314.0, 262.5, 299.5, 245.5, 299.5, 235.5, 314.5, 206.0, 327.0, 204.5, 327.5, 184.0, 338.0, 165.0, 345.0, 164.5], [367.5, 177.5, 392.5, 215.0, 366.5, 210.0, 376.5, 193.0]], "area": 24830.75, "iscrowd": 0, "image_id": 525360, "bbox": [272.5, 123.5, 136.0, 406.0], "category_id": 1, "id": 1734570}, {"segmentation": [[340.37, 284.76, 338.3, 283.82, 332.95, 283.82, 330.04, 285.32, 328.35, 288.14, 327.23, 292.18, 326.94, 294.99, 325.16, 296.21, 320.65, 299.22, 318.31, 300.91, 317.18, 302.41, 318.59, 304.95, 318.4, 306.07, 319.53, 305.7, 321.03, 303.63, 323.47, 303.82, 324.22, 307.29, 325.44, 306.26, 328.16, 304.01, 329.95, 303.91, 329.95, 306.35, 332.86, 303.91, 335.02, 302.6, 337.93, 303.72, 338.68, 306.82, 340.93, 306.45, 340.56, 304.95, 340.74, 302.32, 339.15, 299.69, 337.18, 298.09, 337.36, 296.5, 338.3, 293.68, 339.43, 291.61, 339.99, 289.74, 340.28, 287.48]], "area": 301.74895, "iscrowd": 0, "image_id": 336675, "bbox": [317.18, 283.82, 23.75, 23.47], "category_id": 1, "id": 1734574}, {"segmentation": [[508.82, 186.26, 506.68, 181.99, 506.04, 175.79, 505.4, 173.23, 504.97, 167.88, 507.75, 163.18, 509.67, 162.33, 510.31, 162.33, 512.88, 157.84, 518.43, 146.09, 531.47, 136.05, 539.37, 134.34, 545.14, 134.34, 556.47, 139.04, 561.17, 142.88, 564.16, 149.72, 564.59, 156.77, 568.01, 164.04, 567.79, 167.03, 565.23, 174.29, 567.58, 176.65, 588.95, 182.2, 603.01, 183.09, 608.64, 185.11, 612.95, 186.01, 634.69, 191.24, 637.62, 193.0, 638.95, 194.77, 639.68, 195.94, 639.98, 226.22, 639.98, 255.76, 639.54, 285.0, 639.54, 314.69, 639.54, 344.08, 639.54, 373.47, 639.54, 402.86, 635.98, 420.25, 632.4, 419.23, 630.87, 418.2, 627.8, 406.94, 630.36, 393.13, 629.84, 386.47, 615.51, 382.38, 608.35, 380.33, 615.0, 369.07, 627.8, 342.97, 633.43, 331.2, 626.77, 324.04, 616.54, 325.06, 590.44, 327.62, 568.95, 327.62, 547.45, 326.09, 526.98, 325.06, 490.65, 315.34, 486.55, 348.09, 484.51, 385.96, 487.58, 416.67, 487.58, 418.2, 479.9, 420.76, 429.75, 422.81, 414.91, 418.2, 412.86, 415.13, 413.37, 402.85, 433.84, 398.24, 441.01, 394.66, 442.03, 393.64, 444.59, 384.94, 444.59, 362.93, 441.01, 336.32, 441.52, 302.04, 443.06, 293.34, 446.13, 274.91, 450.22, 269.79, 449.71, 265.19, 441.01, 241.14, 442.54, 217.29, 445.61, 211.15, 449.2, 207.05, 455.85, 203.47, 473.76, 198.35, 488.09, 195.79, 490.14, 188.12, 500.88, 184.53]], "area": 35428.1239, "iscrowd": 0, "image_id": 506417, "bbox": [412.86, 134.34, 227.12, 288.47], "category_id": 1, "id": 1734826}, {"segmentation": [[4.52, 3.39, 11.29, 282.35, 131.01, 315.11, 154.73, 228.14, 278.96, 196.52, 283.48, 73.41, 268.8, 56.47, 295.91, 21.46, 321.88, 73.41, 339.95, 74.54, 361.41, 115.2, 388.52, 3.39]], "area": 75175.20300000001, "iscrowd": 0, "image_id": 441419, "bbox": [4.52, 3.39, 384.0, 311.72], "category_id": 1, "id": 1734943}, {"segmentation": [[241.35, 236.69, 242.17, 232.02, 241.76, 229.99, 244.1, 227.85, 245.11, 227.65, 246.43, 230.49, 246.74, 233.03, 249.38, 235.68, 253.65, 239.44, 254.66, 240.96, 251.31, 242.59, 250.5, 246.85, 244.81, 247.56, 242.57, 246.75, 242.07, 244.41, 240.34, 241.37, 240.03, 238.72]], "area": 158.9684000000001, "iscrowd": 0, "image_id": 245441, "bbox": [240.03, 227.65, 14.63, 19.91], "category_id": 1, "id": 1735193}, {"segmentation": [[232.29, 90.51, 249.5, 78.88, 256.01, 75.62, 257.41, 72.36, 258.34, 67.25, 257.87, 60.27, 253.22, 49.1, 253.22, 38.4, 255.08, 26.77, 262.53, 17.93, 276.02, 14.68, 283.46, 16.54, 289.04, 20.26, 291.83, 29.1, 293.23, 39.8, 293.69, 58.87, 293.69, 68.18, 293.69, 69.11, 307.19, 72.36, 315.56, 78.41, 324.4, 82.13, 331.38, 90.04, 338.82, 103.07, 344.87, 110.05, 349.99, 120.75, 354.17, 124.0, 360.69, 128.65, 355.1, 134.7, 354.17, 146.8, 349.99, 170.52, 346.73, 182.16, 338.36, 200.76, 336.5, 203.09, 329.05, 203.56, 303.93, 158.89, 279.27, 122.14, 269.04, 114.23, 242.99, 104.0, 237.4, 97.95]], "area": 9876.976500000002, "iscrowd": 0, "image_id": 269986, "bbox": [232.29, 14.68, 128.4, 188.88], "category_id": 1, "id": 1735368}, {"segmentation": [[82.19, 266.46, 78.29, 268.33, 77.78, 272.06, 74.56, 273.24, 74.05, 275.96, 75.24, 276.8, 78.8, 283.25, 82.53, 277.31, 86.77, 275.11, 84.4, 271.55, 84.57, 268.33, 83.72, 266.8]], "area": 106.46060000000008, "iscrowd": 0, "image_id": 328487, "bbox": [74.05, 266.46, 12.72, 16.79], "category_id": 1, "id": 1735669}, {"segmentation": [[464.15, 211.59, 459.95, 211.59, 451.56, 213.43, 449.46, 216.05, 452.61, 219.2, 456.54, 220.51, 456.81, 223.66, 458.38, 232.58, 459.95, 238.35, 464.41, 242.28, 470.18, 245.95, 466.77, 253.3, 460.22, 256.97, 453.13, 263.26, 450.51, 274.8, 452.61, 288.44, 452.61, 297.36, 454.18, 303.92, 454.18, 316.25, 456.28, 320.71, 456.28, 323.07, 450.77, 327.26, 448.68, 333.56, 448.94, 337.75, 449.72, 340.11, 454.45, 342.48, 457.33, 342.74, 458.9, 343.79, 454.97, 377.36, 454.97, 429.03, 443.43, 429.03, 441.33, 429.29, 440.81, 434.8, 444.22, 439.0, 457.59, 441.88, 467.04, 445.03, 470.97, 446.6, 475.95, 446.6, 478.31, 446.6, 480.41, 445.55, 479.63, 439.26, 479.36, 428.51, 482.25, 407.26, 501.4, 439.78, 504.28, 442.41, 504.54, 444.24, 499.04, 448.18, 497.2, 450.28, 496.67, 453.16, 496.67, 455.0, 498.77, 457.36, 500.61, 458.14, 502.97, 458.93, 506.38, 458.93, 508.74, 459.72, 512.94, 459.46, 515.03, 458.93, 520.54, 456.57, 537.07, 441.88, 535.76, 439.26, 529.46, 435.33, 524.21, 423.78, 495.1, 382.61, 496.94, 378.41, 495.1, 376.84, 494.31, 353.75, 504.28, 330.41, 506.12, 325.69, 506.9, 322.8, 515.03, 320.97, 514.77, 301.56, 510.05, 271.66, 506.64, 262.74, 495.02, 246.92, 491.21, 242.08, 487.75, 236.54, 487.06, 233.77, 488.61, 230.83, 490.69, 225.81, 489.65, 216.99, 486.88, 214.22, 484.63, 211.97, 482.21, 209.55, 479.44, 208.51, 477.71, 208.33, 473.39, 207.82, 469.93, 209.03, 465.77, 210.24]], "area": 11791.11115, "iscrowd": 0, "image_id": 374977, "bbox": [440.81, 207.82, 96.26, 251.9], "category_id": 1, "id": 1736021}, {"segmentation": [[442.19, 297.85, 442.41, 296.71, 443.2, 296.49, 444.0, 293.32, 445.92, 290.26, 448.07, 288.91, 448.3, 286.3, 449.66, 285.06, 450.9, 285.85, 451.35, 287.55, 451.47, 289.02, 453.73, 289.58, 454.97, 290.6, 455.65, 293.66, 455.99, 295.7, 455.88, 298.75, 455.31, 300.9, 454.97, 301.69, 454.63, 302.6, 453.84, 302.71, 451.69, 303.17, 451.81, 304.64, 452.15, 306.79, 452.6, 308.15, 453.16, 309.39, 453.73, 311.54, 453.96, 312.56, 454.07, 313.12, 454.07, 313.8, 452.37, 315.05, 450.67, 315.39, 450.33, 314.14, 451.35, 312.56, 450.33, 309.62, 450.11, 311.31, 450.11, 312.45, 450.22, 313.24, 450.11, 314.26, 450.11, 314.71, 448.75, 314.48, 446.94, 315.05, 446.37, 313.46, 447.96, 312.56, 447.62, 308.03, 448.07, 304.75, 447.51, 302.94, 446.37, 300.79, 446.37, 298.98, 447.73, 295.36, 447.73, 294.56, 446.37, 296.71, 444.68, 298.53, 443.32, 299.09, 442.53, 299.32, 441.96, 298.07]], "area": 211.04875000000013, "iscrowd": 0, "image_id": 575792, "bbox": [441.96, 285.06, 14.03, 30.33], "category_id": 1, "id": 1736347}, {"segmentation": [[445.23, 113.23, 447.63, 142.56, 453.69, 146.7, 450.38, 161.85, 446.8, 182.52, 453.69, 185.27, 459.75, 157.99, 463.88, 161.85, 470.22, 141.74, 464.16, 135.4, 469.4, 127.13, 463.61, 114.46]], "area": 1042.5177500000004, "iscrowd": 0, "image_id": 429144, "bbox": [445.23, 113.23, 24.99, 72.04], "category_id": 1, "id": 1736537}, {"segmentation": [[339.78, 473.53, 448.72, 472.45, 443.33, 434.7, 429.3, 417.44, 406.65, 410.97, 403.42, 398.02, 413.12, 390.47, 408.81, 365.66, 393.71, 349.48, 367.82, 349.48, 355.96, 379.69, 352.72, 395.87, 368.9, 403.42, 371.06, 414.2, 346.25, 430.38]], "area": 8531.845949999997, "iscrowd": 0, "image_id": 3366, "bbox": [339.78, 349.48, 108.94, 124.05], "category_id": 1, "id": 1736687}, {"segmentation": [[62.51, 217.22, 62.51, 208.62, 62.96, 201.83, 62.96, 195.04, 60.7, 188.25, 56.18, 184.18, 51.2, 184.18, 44.86, 184.18, 41.69, 180.11, 38.98, 171.51, 44.41, 159.29, 47.58, 154.76, 44.41, 146.16, 43.96, 134.39, 45.31, 123.08, 53.46, 114.48, 69.3, 108.14, 85.6, 107.69, 102.79, 110.41, 109.58, 124.89, 111.85, 132.58, 119.09, 126.25, 130.4, 129.87, 139.0, 139.82, 134.48, 153.4, 138.55, 166.53, 148.51, 189.61, 157.56, 201.38, 159.82, 209.07, 161.18, 215.86, 163.44, 228.08, 159.37, 235.32, 157.11, 235.32], [217.56, 273.49, 204.79, 308.05, 201.68, 325.79, 196.08, 342.91, 193.59, 349.14, 180.2, 372.79, 177.4, 375.0, 335.85, 375.0, 334.6, 368.75, 329.0, 359.1, 316.86, 345.71, 312.81, 341.04, 306.9, 331.7, 302.85, 326.1, 302.23, 324.86, 299.12, 310.22, 296.0, 304.31, 289.78, 296.22, 282.31, 289.68, 286.66, 277.85, 291.02, 269.45], [232.75, 227.77, 232.18, 230.6, 304.56, 227.96, 302.29, 222.1, 233.32, 226.07]], "area": 21649.92765, "iscrowd": 0, "image_id": 289095, "bbox": [38.98, 107.69, 296.87, 267.31], "category_id": 1, "id": 1736893}, {"segmentation": [[351.21, 174.11, 350.59, 171.78, 351.83, 169.45, 354.32, 168.98, 356.49, 170.38, 356.8, 173.34, 355.4, 175.67, 354.94, 177.07, 356.03, 179.71, 356.8, 183.28, 356.96, 183.9, 356.34, 187.63, 355.87, 190.74, 355.25, 194.16, 355.72, 197.89, 354.94, 200.53, 351.36, 202.55, 350.59, 200.22, 350.74, 195.56, 349.03, 193.54, 347.94, 189.97, 346.86, 184.37, 348.57, 179.24, 350.43, 175.67, 350.9, 175.36]], "area": 214.48505000000014, "iscrowd": 0, "image_id": 560350, "bbox": [346.86, 168.98, 10.1, 33.57], "category_id": 1, "id": 1737099}, {"segmentation": [[128.52, 345.54, 124.4, 329.54, 110.98, 312.52, 105.83, 292.92, 96.54, 265.06, 111.5, 253.19, 125.43, 234.62, 137.81, 252.68, 148.13, 287.76, 157.93, 310.46, 165.67, 326.45, 164.12, 336.77, 131.1, 343.99], [33.27, 193.89, 39.52, 175.91, 26.23, 175.13, 21.54, 191.55, 22.32, 206.4, 26.23, 225.17, 15.28, 228.3, 0.0, 228.3, 0.43, 252.54, 24.67, 250.97, 40.31, 233.77, 36.4, 205.62]], "area": 5520.460749999999, "iscrowd": 0, "image_id": 115055, "bbox": [0.0, 175.13, 165.67, 170.41], "category_id": 1, "id": 1737295}, {"segmentation": [[75.85, 327.11, 77.43, 293.93, 75.85, 259.16, 71.11, 249.68, 63.21, 244.94, 66.37, 301.83]], "area": 739.0528999999997, "iscrowd": 0, "image_id": 381208, "bbox": [63.21, 244.94, 14.22, 82.17], "category_id": 1, "id": 1737439}, {"segmentation": [[165.8, 113.87, 170.89, 117.69, 177.26, 127.15, 180.72, 133.16, 182.54, 134.25, 165.8, 134.61, 165.43, 114.42]], "area": 191.38009999999974, "iscrowd": 0, "image_id": 20769, "bbox": [165.43, 113.87, 17.11, 20.74], "category_id": 1, "id": 1737479}, {"segmentation": [[295.89, 503.84, 297.98, 499.84, 299.72, 497.93, 303.37, 504.18, 303.89, 510.79, 303.72, 517.57, 301.46, 528.34, 296.94, 528.34, 295.72, 523.48, 295.03, 516.18, 294.68, 512.53, 294.16, 508.53]], "area": 217.8299500000003, "iscrowd": 0, "image_id": 358100, "bbox": [294.16, 497.93, 9.73, 30.41], "category_id": 1, "id": 1738084}, {"segmentation": [[380.61, 391.15, 384.83, 358.47, 380.61, 319.46, 375.34, 279.4, 369.01, 258.31, 365.85, 243.55, 350.03, 240.39, 323.68, 239.33, 313.13, 225.62, 298.37, 209.81, 315.24, 188.72, 320.51, 215.08, 338.44, 224.57, 354.25, 207.7, 372.18, 196.1, 383.77, 190.83, 381.66, 170.8, 381.66, 150.77, 391.15, 145.5, 404.86, 148.66, 408.02, 165.53, 409.08, 185.56, 421.89, 194.27, 434.9, 203.48, 440.65, 235.19, 445.58, 249.16, 436.54, 255.73, 433.26, 270.51, 429.15, 286.12, 431.61, 313.23, 424.22, 338.7, 432.43, 356.77, 432.43, 399.49, 417.65, 405.24, 416.0, 360.88, 408.61, 339.52, 402.86, 348.56, 414.36, 402.77, 387.25, 399.49]], "area": 14321.27645, "iscrowd": 0, "image_id": 279401, "bbox": [298.37, 145.5, 147.21, 259.74], "category_id": 1, "id": 1738387}, {"segmentation": [[620.2, 278.23, 618.25, 282.03, 616.09, 287.06, 615.17, 289.21, 612.8, 290.04, 611.26, 291.88, 609.62, 293.94, 608.49, 295.07, 608.9, 300.0, 613.73, 297.33, 611.67, 305.54, 611.78, 310.78, 611.78, 313.55, 611.67, 314.48, 610.55, 314.78, 610.24, 313.55, 607.88, 312.73, 607.05, 309.34, 606.34, 303.08, 605.92, 299.69, 605.82, 296.09, 605.82, 293.63, 606.95, 290.75, 606.95, 288.5, 607.16, 280.69, 606.95, 273.47, 608.08, 273.47, 610.44, 275.42, 612.29, 275.32, 613.73, 275.73, 614.96, 276.34, 615.37, 276.55, 616.4, 277.06, 619.68, 276.75, 620.51, 277.57]], "area": 266.62094999999925, "iscrowd": 0, "image_id": 173163, "bbox": [605.82, 273.47, 14.69, 41.31], "category_id": 1, "id": 1738484}, {"segmentation": [[271.89, 171.51, 259.76, 133.52, 251.68, 115.74, 246.83, 114.12, 260.57, 104.42, 273.5, 101.19, 275.12, 89.06, 275.12, 85.83, 275.12, 81.79, 276.74, 80.17, 278.35, 79.36, 274.31, 69.66, 276.74, 66.43, 279.16, 62.39, 276.74, 58.35, 279.16, 51.88, 279.97, 46.22, 261.38, 32.48, 237.94, 33.29, 219.34, 42.99, 217.73, 64.81, 225.81, 89.87, 221.77, 100.38, 216.92, 102.8, 196.71, 127.64, 189.44, 145.42, 175.69, 172.09, 165.19, 194.73, 169.23, 200.39, 169.23, 210.09, 187.01, 219.79, 191.05, 231.1, 189.44, 250.5, 182.16, 260.2, 205.6, 231.1, 233.09, 196.34, 246.83, 185.03, 266.23, 182.6, 276.74, 179.37, 274.31, 171.29]], "area": 12061.119699999997, "iscrowd": 0, "image_id": 128770, "bbox": [165.19, 32.48, 114.78, 227.72], "category_id": 1, "id": 1739087}, {"segmentation": [[464.1, 406.14, 475.61, 382.39, 484.97, 368.0, 500.08, 365.12, 515.91, 373.76, 524.54, 385.99, 535.33, 403.98, 537.49, 427.0, 543.25, 475.81, 450.43, 476.53, 444.67, 439.11, 461.94, 434.08, 465.54, 426.16]], "area": 7871.438199999998, "iscrowd": 0, "image_id": 3366, "bbox": [444.67, 365.12, 98.58, 111.41], "category_id": 1, "id": 1739142}, {"segmentation": [[138.06, 195.55, 138.29, 191.11, 140.62, 187.67, 141.73, 187.56, 141.4, 185.89, 141.28, 182.45, 141.73, 179.67, 144.28, 177.89, 147.17, 178.67, 148.39, 181.0, 148.51, 183.22, 150.5, 187.33, 151.62, 187.56, 153.61, 190.0, 153.84, 191.55, 153.84, 194.0]], "area": 171.23870000000014, "iscrowd": 0, "image_id": 377226, "bbox": [138.06, 177.89, 15.78, 17.66], "category_id": 1, "id": 1739218}, {"segmentation": [[627.16, 278.7, 627.46, 275.37, 628.34, 269.29, 628.73, 265.67, 628.83, 261.75, 629.32, 259.59, 630.59, 258.71, 631.96, 258.81, 634.12, 259.79, 635.98, 261.85, 636.28, 263.22, 636.28, 267.82, 637.65, 270.96, 638.92, 272.92, 638.63, 276.35, 636.18, 279.58, 634.41, 284.38, 634.51, 287.13, 635.69, 288.79, 636.96, 289.67, 637.16, 290.65, 637.45, 304.47, 637.45, 309.47, 637.65, 319.46, 635.3, 320.15, 633.83, 319.26, 633.04, 318.09, 632.55, 315.74, 632.94, 312.8, 632.45, 301.63, 632.16, 299.47, 631.38, 298.69, 631.08, 305.25, 631.28, 309.17, 631.57, 312.7, 631.57, 314.56, 632.45, 315.84, 633.04, 318.58, 632.75, 319.36, 628.93, 318.97, 627.07, 318.77, 626.18, 317.79, 625.6, 313.78, 625.4, 307.21, 625.99, 301.33, 625.79, 293.59, 625.79, 292.81]], "area": 586.8855499999996, "iscrowd": 0, "image_id": 165347, "bbox": [625.4, 258.71, 13.52, 61.44], "category_id": 1, "id": 1739381}, {"segmentation": [[379.18, 68.18, 381.57, 64.95, 384.52, 64.95, 386.63, 66.36, 386.77, 69.03, 389.02, 74.09, 389.02, 78.02, 388.32, 81.68, 387.62, 86.46, 387.48, 91.94, 388.74, 97.85, 387.76, 99.11, 385.79, 99.67, 384.95, 111.2, 382.56, 111.9, 381.01, 96.72, 383.12, 89.55, 381.57, 82.8, 381.15, 79.57, 380.73, 77.04, 379.6, 74.23, 378.48, 71.98]], "area": 279.4425499999999, "iscrowd": 0, "image_id": 522150, "bbox": [378.48, 64.95, 10.54, 46.95], "category_id": 1, "id": 1739484}, {"segmentation": [[25.56, 115.7, 31.83, 101.81, 39.45, 92.4, 58.27, 87.92, 61.41, 84.78, 58.72, 79.85, 55.58, 73.58, 50.65, 56.1, 50.65, 48.48, 58.27, 37.27, 61.41, 34.14, 68.13, 34.14, 70.82, 29.66, 77.1, 29.66, 88.3, 34.14, 92.78, 38.62, 96.37, 48.03, 95.92, 59.23, 99.06, 68.65, 90.09, 82.54, 85.16, 85.68, 85.16, 96.88, 89.65, 103.16, 95.92, 118.84, 105.33, 126.46, 105.33, 137.67, 100.85, 150.21, 103.99, 161.42, 132.22, 170.83, 125.95, 180.24, 112.05, 175.76, 116.54, 184.72, 116.54, 194.13, 119.67, 203.55, 119.67, 212.96, 118.33, 222.82, 122.81, 235.37, 124.15, 247.92, 139.84, 282.42, 146.11, 305.73, 152.84, 333.96, 159.11, 354.58, 155.97, 370.27, 149.7, 372.06, 137.15, 373.4, 125.95, 368.92, 125.95, 362.65, 122.81, 351.89, 122.81, 375.2, 136.7, 376.54, 134.01, 387.75, 121.47, 390.88, 107.12, 389.54, 83.82, 389.54, 77.54, 386.4, 77.54, 378.33, 80.23, 372.06, 80.68, 361.3, 75.75, 351.89, 77.54, 346.96, 100.85, 342.48, 111.61, 336.21, 111.61, 331.28, 114.74, 326.79, 96.37, 292.28, 91.44, 279.74, 85.16, 260.91, 80.68, 249.71, 63.2, 213.41, 58.72, 207.13, 58.72, 216.54, 53.79, 213.41, 46.17, 208.92, 41.24, 208.92, 36.76, 213.41, 38.11, 203.99, 38.11, 199.51, 22.42, 178.9, 17.94, 174.42, 17.94, 165.0, 19.28, 158.73, 25.56, 114.36]], "area": 21069.26525, "iscrowd": 0, "image_id": 269986, "bbox": [17.94, 29.66, 141.17, 361.22], "category_id": 1, "id": 1739994}, {"segmentation": [[639.98, 128.97, 635.53, 127.48, 627.17, 127.3, 620.86, 128.78, 619.18, 129.71, 623.46, 132.13, 625.5, 132.68, 625.5, 134.54, 625.5, 136.58, 614.36, 138.63, 596.71, 151.26, 583.34, 165.74, 589.57, 174.28, 588.83, 180.59, 588.08, 185.05, 592.17, 189.88, 596.63, 196.93, 599.97, 201.57, 602.57, 206.59, 600.52, 222.46, 600.34, 234.53, 600.34, 242.33, 603.5, 253.75, 601.08, 259.69, 599.22, 264.34, 597.74, 271.77, 596.63, 276.59, 640.0, 275.85], [640.0, 283.0, 596.44, 282.63, 602.75, 312.71, 604.24, 319.21, 608.84, 341.64, 609.56, 363.32, 640.0, 364.4]], "area": 8923.759199999997, "iscrowd": 0, "image_id": 550028, "bbox": [583.34, 127.3, 56.66, 237.1], "category_id": 1, "id": 1740285}, {"segmentation": [[206.2, 532.97, 205.93, 524.21, 207.55, 520.31, 210.11, 518.42, 211.46, 517.48, 214.02, 516.94, 214.15, 514.92, 214.96, 512.22, 212.27, 512.22, 213.88, 510.87, 214.69, 509.79, 216.98, 507.91, 219.54, 508.04, 219.54, 511.28, 220.08, 513.03, 220.35, 514.11, 219.27, 515.59, 219.81, 518.15, 221.7, 521.38, 221.97, 524.48, 219.81, 526.91, 216.31, 530.68, 215.5, 534.59, 214.56, 535.8, 206.2, 535.26]], "area": 271.9513499999996, "iscrowd": 0, "image_id": 358100, "bbox": [205.93, 507.91, 16.04, 27.89], "category_id": 1, "id": 1740742}, {"segmentation": [[301.62, 237.74, 294.82, 248.63, 283.02, 253.63, 281.66, 261.8, 282.11, 238.2, 292.09, 234.57, 298.9, 235.93], [274.85, 277.22, 283.02, 274.05, 286.19, 280.4, 288.92, 286.3]], "area": 309.69489999999945, "iscrowd": 0, "image_id": 64071, "bbox": [274.85, 234.57, 26.77, 51.73], "category_id": 1, "id": 1741425}, {"segmentation": [[76.3, 163.33, 73.53, 176.8, 73.13, 183.13, 74.72, 194.62, 75.11, 198.19, 76.7, 198.98, 81.45, 197.39, 83.83, 200.96, 85.02, 203.33, 83.43, 206.5, 81.05, 206.9, 77.09, 209.67, 78.68, 219.18, 80.66, 219.97, 84.62, 230.27, 83.83, 235.81, 86.6, 238.19, 89.37, 238.19, 90.96, 236.21, 90.96, 233.44, 90.56, 229.87, 88.98, 216.8, 94.52, 216.41, 96.11, 222.74, 95.71, 227.1, 94.92, 231.85, 93.73, 235.81, 98.48, 237.4, 108.38, 237.0, 105.21, 233.83, 101.65, 229.87, 102.44, 219.97, 103.63, 210.46, 105.21, 203.33, 103.63, 192.24, 103.23, 183.93, 105.21, 181.55, 101.65, 165.71, 99.67, 160.95, 97.69, 160.56, 97.69, 157.79, 97.69, 153.43, 101.65, 148.28, 97.29, 147.88, 96.5, 145.9, 94.12, 143.53, 89.37, 144.32, 86.6, 145.9, 85.02, 149.07, 83.83, 153.83, 84.22, 159.37, 84.22, 159.37]], "area": 2044.6501999999994, "iscrowd": 0, "image_id": 487322, "bbox": [73.13, 143.53, 35.25, 94.66], "category_id": 1, "id": 1741751}, {"segmentation": [[335.31, 256.75, 336.31, 246.77, 339.71, 243.77, 343.1, 241.37, 343.5, 239.18, 342.5, 236.78, 343.1, 230.99, 347.1, 227.39, 351.49, 228.39, 354.89, 231.79, 353.89, 240.18, 356.88, 243.97, 358.48, 247.57, 361.08, 252.76, 363.67, 256.55, 369.27, 257.75, 370.27, 259.55, 370.66, 262.75, 372.86, 268.54, 384.05, 284.72, 376.66, 284.12, 373.66, 280.72, 367.87, 276.53, 365.67, 272.33, 361.88, 270.74, 359.08, 273.13, 358.08, 272.73, 353.89, 271.33, 349.09, 271.13, 342.7, 270.74, 338.51, 270.54, 336.31, 268.74, 335.71, 263.15]], "area": 1115.8568499999997, "iscrowd": 0, "image_id": 483948, "bbox": [335.31, 227.39, 48.74, 57.33], "category_id": 1, "id": 1741907}, {"segmentation": [[152.22, 187.09, 155.43, 184.55, 153.55, 181.11, 152.88, 177.34, 154.43, 174.79, 156.98, 174.24, 159.2, 174.57, 159.97, 175.57, 160.42, 176.79, 160.42, 178.01, 160.75, 180.89, 160.75, 182.0, 160.97, 183.11, 161.3, 183.44, 161.19, 184.21, 156.76, 186.32, 154.1, 188.98, 153.77, 189.86, 153.33, 189.86]], "area": 83.62754999999986, "iscrowd": 0, "image_id": 377226, "bbox": [152.22, 174.24, 9.08, 15.62], "category_id": 1, "id": 1741994}, {"segmentation": [[56.56, 316.9, 72.2, 314.82, 84.71, 324.2, 81.58, 339.84, 99.31, 357.56, 104.52, 391.97, 99.31, 407.61, 96.18, 428.46, 83.67, 443.06, 89.92, 474.33, 89.92, 502.48, 73.24, 510.82, 68.03, 475.37, 61.77, 452.44, 54.48, 470.16, 49.26, 518.12, 40.92, 512.91, 29.45, 544.18, 12.77, 543.14, 20.07, 529.59, 34.67, 479.55, 39.88, 428.46, 50.31, 404.48, 43.01, 382.59, 22.16, 404.48, 9.64, 424.29, 1.3, 426.37, 1.3, 412.82, 12.77, 394.05, 29.45, 365.9, 47.18, 341.93, 57.6, 334.63]], "area": 10634.980450000001, "iscrowd": 0, "image_id": 201260, "bbox": [1.3, 314.82, 103.22, 229.36], "category_id": 1, "id": 1742397}, {"segmentation": [[610.69, 379.88, 626.15, 377.95, 633.89, 374.08, 634.66, 359.78, 633.89, 343.15, 637.75, 331.16, 640.0, 323.82, 640.0, 260.79, 634.66, 254.99, 628.86, 255.37, 623.83, 260.01, 624.99, 266.59, 627.7, 272.39, 628.86, 279.73, 629.25, 286.69, 629.25, 289.01, 625.38, 285.53, 619.58, 280.89, 617.65, 280.12, 614.55, 280.51, 618.03, 287.47, 622.67, 290.56, 624.99, 294.04, 628.47, 298.68, 628.47, 302.94, 624.61, 314.54, 614.55, 336.58, 618.42, 352.43, 620.35, 360.16, 619.19, 365.19, 613.78, 369.44, 612.23, 376.4]], "area": 1991.4854500000004, "iscrowd": 0, "image_id": 450281, "bbox": [610.69, 254.99, 29.31, 124.89], "category_id": 1, "id": 1742517}, {"segmentation": [[48.16, 382.11, 46.61, 375.92, 42.48, 374.37, 48.16, 348.06, 37.84, 344.45, 36.29, 336.72, 51.77, 306.79, 55.9, 303.7, 57.44, 287.71, 68.28, 280.48, 72.92, 280.48, 76.02, 285.13, 71.89, 304.21, 79.63, 311.44, 85.82, 315.05, 87.37, 333.62, 77.56, 340.84, 76.02, 384.69, 66.73, 390.37, 64.67, 386.24]], "area": 3234.2432499999995, "iscrowd": 0, "image_id": 156221, "bbox": [36.29, 280.48, 51.08, 109.89], "category_id": 1, "id": 1742856}, {"segmentation": [[154.08, 3.43, 155.26, 62.54, 155.26, 63.73, 225.01, 67.27, 258.12, 67.27, 282.95, 59.0, 295.95, 0.0, 181.27, 0.0, 155.26, 0.0]], "area": 8783.975349999999, "iscrowd": 0, "image_id": 575421, "bbox": [154.08, 0.0, 141.87, 67.27], "category_id": 1, "id": 1742931}, {"segmentation": [[568.36, 190.48, 539.53, 198.72, 544.67, 225.49, 518.93, 270.79, 508.64, 288.3, 522.02, 314.04, 528.2, 319.19, 511.73, 411.85, 481.87, 410.82, 487.01, 297.56, 483.93, 297.56, 483.93, 322.27, 481.87, 327.42, 481.87, 331.54, 477.75, 345.96, 477.75, 410.82, 450.98, 410.82, 446.86, 400.53, 449.95, 389.2, 443.77, 334.63, 440.68, 308.89, 441.71, 235.79, 453.04, 186.36, 424.21, 197.69, 424.21, 206.96, 410.82, 213.13, 401.56, 205.93, 400.53, 200.78, 437.59, 166.8, 444.8, 130.76, 439.65, 129.73, 444.8, 118.41, 453.04, 100.9, 483.93, 87.52, 471.57, 75.16, 471.57, 58.69, 470.54, 38.1, 487.01, 26.77, 506.58, 27.8, 522.02, 48.39, 526.14, 68.99, 518.93, 73.1, 520.99, 88.55, 544.67, 96.79, 565.27, 121.5, 572.47, 163.71, 568.36, 192.54]], "area": 32866.27429999999, "iscrowd": 0, "image_id": 269986, "bbox": [400.53, 26.77, 171.94, 385.08], "category_id": 1, "id": 1743301}, {"segmentation": [[456.49, 223.09, 466.05, 219.72, 463.24, 187.68, 453.12, 184.31, 454.81, 147.77, 450.87, 139.34, 457.05, 133.72, 468.3, 117.41, 466.61, 111.79, 459.3, 108.98, 463.8, 101.11, 462.68, 96.05, 474.48, 90.99, 482.91, 98.3, 477.29, 114.04, 489.1, 128.66, 496.96, 141.59, 493.59, 155.64, 482.35, 161.82, 476.73, 189.93, 478.98, 203.42, 474.48, 218.04, 478.41, 226.47, 478.41, 230.96, 451.99, 232.09, 451.99, 229.28, 455.93, 226.47]], "area": 3203.8891000000012, "iscrowd": 0, "image_id": 265532, "bbox": [450.87, 90.99, 46.09, 141.1], "category_id": 1, "id": 1743818}, {"segmentation": [[161.93, 161.66, 161.93, 161.66, 160.1, 165.0, 160.1, 165.0, 157.26, 171.5, 161.6, 180.34, 173.27, 180.68, 173.11, 170.83, 173.61, 166.16, 173.27, 161.33, 168.1, 158.16, 168.1, 158.16, 164.27, 158.49, 161.1, 162.0]], "area": 287.84985000000046, "iscrowd": 0, "image_id": 511988, "bbox": [157.26, 158.16, 16.35, 22.52], "category_id": 1, "id": 1743916}, {"segmentation": [[450.45, 243.73, 444.37, 241.7, 443.36, 231.57, 450.45, 223.47, 456.19, 222.12, 465.3, 208.61, 476.11, 205.58, 483.2, 204.22, 481.17, 199.5, 477.46, 190.38, 481.85, 186.67, 484.55, 189.37, 480.49, 175.86, 483.53, 166.75, 490.29, 159.66, 503.79, 153.92, 512.23, 152.91, 518.98, 158.31, 527.76, 167.42, 530.46, 181.27, 527.42, 201.19, 527.42, 202.54, 536.2, 211.65, 542.95, 215.03, 540.93, 223.81, 549.03, 229.88, 553.76, 227.52, 559.16, 217.73, 561.86, 214.69, 565.91, 215.03, 570.64, 225.83, 570.98, 237.31, 568.28, 240.69, 559.84, 241.03, 554.43, 237.65, 545.66, 240.35, 531.48, 235.29, 518.98, 235.29, 516.96, 239.34, 517.63, 244.06, 516.96, 255.54, 514.26, 257.91, 505.82, 255.21, 496.03, 244.06, 488.94, 253.18, 487.58, 254.87, 471.38, 246.43, 462.94, 252.17, 463.95, 257.91, 456.86, 249.47]], "area": 6355.71645, "iscrowd": 0, "image_id": 461530, "bbox": [443.36, 152.91, 127.62, 105.0], "category_id": 1, "id": 1744278}, {"segmentation": [[610.48, 106.3, 608.37, 99.96, 611.42, 90.57, 613.53, 87.28, 614.0, 84.7, 618.22, 78.83, 623.62, 80.48, 624.56, 83.53, 624.8, 89.4, 624.09, 92.68, 623.39, 94.33, 628.32, 103.72, 626.91, 108.18, 618.93, 108.88, 613.3, 108.18]], "area": 396.77565000000016, "iscrowd": 0, "image_id": 192335, "bbox": [608.37, 78.83, 19.95, 30.05], "category_id": 1, "id": 1744463}, {"segmentation": [[73.32, 176.79, 70.92, 179.33, 70.52, 181.07, 70.52, 183.88, 69.98, 185.21, 62.5, 191.63, 61.43, 195.5, 60.76, 198.98, 60.09, 206.33, 60.22, 209.41, 62.63, 212.21, 65.04, 211.81, 66.64, 209.94, 67.71, 207.67, 70.92, 206.33, 72.79, 201.79, 73.72, 198.98, 75.06, 195.5, 74.66, 191.9, 74.39, 186.55, 73.72, 178.26, 73.72, 177.73]], "area": 298.37229999999994, "iscrowd": 0, "image_id": 487322, "bbox": [60.09, 176.79, 14.97, 35.42], "category_id": 1, "id": 1744637}, {"segmentation": [[221.88, 123.32, 228.79, 120.88, 237.52, 123.52, 241.38, 128.6, 241.38, 134.29, 238.54, 140.18, 235.29, 147.91, 233.46, 150.55, 239.15, 155.42, 246.67, 155.63, 250.12, 150.95, 251.95, 145.87, 258.66, 144.25, 261.5, 146.48, 265.97, 149.94, 263.33, 153.8, 259.67, 159.89, 246.26, 174.52, 242.81, 178.38, 240.78, 174.52, 241.59, 167.0, 239.56, 164.57, 237.32, 160.3, 233.87, 157.66, 229.6, 155.02, 224.52, 153.8, 228.79, 148.72, 228.38, 144.45, 227.16, 142.83, 221.47, 138.97, 218.63, 130.02]], "area": 952.8768500000007, "iscrowd": 0, "image_id": 446331, "bbox": [218.63, 120.88, 47.34, 57.5], "category_id": 1, "id": 1744715}, {"segmentation": [[482.3, 64.8, 480.02, 51.13, 477.75, 45.2, 477.75, 42.47, 476.38, 38.37, 474.1, 32.9, 472.73, 28.8, 471.37, 21.96, 470.0, 0.0, 514.2, 1.0, 516.48, 6.92, 516.94, 11.48, 516.94, 15.58, 517.85, 26.06, 517.85, 33.35, 518.3, 37.91, 518.76, 46.11, 520.58, 52.04, 522.4, 62.06, 525.14, 72.09, 525.59, 75.73, 525.59, 78.47, 516.02, 84.85, 514.66, 83.94, 513.75, 80.75, 513.29, 76.19, 512.83, 72.09, 511.92, 63.43, 510.56, 54.77, 507.82, 47.94, 504.63, 46.57, 499.16, 47.48, 495.52, 61.61, 495.97, 73.91, 495.06, 84.85, 491.42, 88.49, 485.49, 88.95, 481.85, 85.3]], "area": 3067.4411999999998, "iscrowd": 0, "image_id": 151322, "bbox": [470.0, 0.0, 55.59, 88.95], "category_id": 1, "id": 1744818}, {"segmentation": [[162.48, 356.95, 153.27, 349.91, 153.27, 327.69, 161.4, 322.27, 165.19, 314.14, 170.61, 313.05, 173.32, 316.85, 170.61, 323.89, 171.15, 328.23, 163.02, 339.61]], "area": 448.77765000000016, "iscrowd": 0, "image_id": 111831, "bbox": [153.27, 313.05, 20.05, 43.9], "category_id": 1, "id": 1744832}, {"segmentation": [[349.01, 263.2, 352.77, 247.85, 355.91, 236.57, 359.98, 210.25, 369.38, 197.71, 373.14, 191.76, 385.36, 177.98, 398.21, 177.66, 399.46, 170.77, 387.24, 160.43, 388.81, 146.96, 387.87, 137.87, 382.06, 130.61, 364.9, 124.2, 355.6, 122.75, 360.14, 102.29, 374.61, 92.36, 392.18, 89.47, 404.59, 93.4, 412.24, 100.01, 419.89, 115.72, 417.4, 129.57, 415.75, 141.77, 412.44, 149.21, 406.45, 152.52, 426.91, 160.99, 427.0, 220.32, 427.0, 240.37, 427.0, 244.92, 427.0, 274.69, 427.0, 290.81, 427.0, 312.52, 427.0, 327.82, 423.61, 333.81, 419.89, 333.4, 410.38, 334.64, 406.86, 327.82, 399.63, 322.86, 395.08, 330.92, 391.15, 332.16, 390.74, 332.36, 374.2, 378.05, 370.27, 383.01, 374.41, 392.73, 372.55, 398.31, 379.16, 407.4, 367.96, 458.7, 366.08, 470.3, 360.76, 459.02, 357.94, 451.18, 354.49, 438.34, 351.36, 427.68, 342.9, 403.87, 338.51, 394.78, 338.51, 386.32, 338.51, 355.93, 338.51, 351.86, 338.51, 336.19, 337.88, 319.27, 338.51, 312.38, 341.96, 298.28, 344.15, 290.76, 352.61, 308.62, 350.73, 322.41, 350.73, 329.93, 352.3, 339.95, 362.32, 347.16, 372.66, 341.21, 377.68, 328.05, 377.99, 325.54, 378.3, 317.39, 367.65, 292.64, 364.52, 290.45]], "area": 17336.336349999998, "iscrowd": 0, "image_id": 128770, "bbox": [337.88, 89.47, 89.12, 380.83], "category_id": 1, "id": 1744848}, {"segmentation": [[524.84, 13.18, 524.84, 19.71, 525.55, 20.13, 524.41, 22.97, 524.84, 26.38, 528.39, 30.63, 531.65, 33.47, 531.51, 37.3, 533.92, 41.98, 535.91, 47.66, 543.0, 57.73, 548.25, 62.41, 550.52, 57.59, 552.5, 55.03, 551.51, 48.93, 548.25, 44.11, 548.25, 43.12, 557.47, 42.26, 558.46, 35.17, 562.29, 28.36, 565.98, 25.67, 571.09, 23.68, 576.9, 23.54, 579.88, 23.4, 579.17, 19.14, 580.74, 14.03, 578.04, 7.22, 576.62, 2.68, 575.91, 0.13, 525.69, 0.27, 524.84, 5.24, 524.84, 8.64], [551.82, 69.57, 553.95, 70.42, 556.22, 70.7, 558.77, 70.85, 557.36, 72.12, 556.65, 74.11, 556.79, 75.67, 557.36, 78.36, 551.26, 78.65, 549.7, 78.08, 549.27, 75.67, 550.55, 73.68, 551.26, 71.7]], "area": 2123.524, "iscrowd": 0, "image_id": 151322, "bbox": [524.41, 0.13, 56.33, 78.52], "category_id": 1, "id": 1744920}, {"segmentation": [[200.19, 270.44, 222.62, 273.43, 227.1, 319.77, 224.11, 325.76, 216.64, 322.02, 212.9, 281.65, 201.69, 310.8, 201.69, 319.03, 195.71, 325.01, 191.22, 315.29, 193.47, 306.32, 197.95, 282.4], [224.11, 262.22, 197.95, 257.73, 196.46, 250.26, 190.48, 250.26, 185.99, 241.29, 190.48, 230.82, 194.96, 230.07, 197.95, 230.07, 194.96, 220.36, 200.94, 215.12, 206.17, 216.62, 212.9, 227.83, 222.62, 233.06, 226.36, 251.75]], "area": 2309.451700000001, "iscrowd": 0, "image_id": 415946, "bbox": [185.99, 215.12, 41.11, 110.64], "category_id": 1, "id": 1745776}, {"segmentation": [[10.3, 186.58, 14.96, 189.3, 29.69, 192.78, 48.29, 197.44, 64.96, 201.7, 84.34, 208.29, 101.79, 211.78, 117.29, 216.43, 120.0, 221.08, 115.35, 221.08, 118.84, 226.12, 116.52, 230.38, 113.03, 230.0, 109.93, 231.55, 104.11, 225.73, 92.87, 222.63, 90.93, 224.18, 94.42, 228.45, 100.24, 230.38, 100.62, 232.71, 97.52, 233.87, 89.38, 232.32, 78.92, 224.18, 73.88, 219.92, 71.55, 215.27, 56.05, 215.27, 18.06, 208.68, 0.0, 209.45, 0.0, 183.87]], "area": 2063.4779500000004, "iscrowd": 0, "image_id": 119337, "bbox": [0.0, 183.87, 120.0, 50.0], "category_id": 1, "id": 1745808}, {"segmentation": [[49.98, 284.01, 52.74, 291.88, 52.23, 298.84, 51.0, 305.38, 51.0, 308.35, 29.93, 309.68, 12.54, 311.22, 13.57, 307.74, 13.57, 306.1, 15.2, 290.14, 16.53, 287.69, 16.02, 285.54, 13.98, 282.88, 11.93, 281.04, 12.34, 275.62, 13.36, 272.86, 13.87, 270.5, 9.27, 262.73, 6.0, 258.54, 4.36, 255.37, 3.95, 252.5, 13.46, 243.09, 16.02, 239.72, 22.87, 232.25, 24.61, 229.08, 27.48, 225.91, 31.16, 224.07, 34.64, 223.66, 38.22, 227.85, 40.06, 233.48, 44.15, 238.28, 46.5, 242.78, 46.5, 244.22, 52.95, 250.97, 58.78, 264.47, 59.49, 268.36, 57.65, 270.71, 54.69, 271.73, 52.64, 278.89, 50.39, 283.8]], "area": 3133.0150000000003, "iscrowd": 0, "image_id": 357428, "bbox": [3.95, 223.66, 55.54, 87.56], "category_id": 1, "id": 1745896}, {"segmentation": [[531.22, 203.67, 547.15, 216.95, 558.66, 205.44, 576.37, 211.64, 609.12, 211.64, 630.37, 192.16, 632.14, 170.92, 603.81, 169.15, 596.73, 141.71, 607.35, 119.57, 612.66, 93.9, 602.93, 77.97, 578.14, 70.89, 563.97, 93.9, 570.17, 114.26, 544.5, 127.54, 521.48, 155.87, 534.76, 176.23, 533.88, 196.59]], "area": 8993.567549999998, "iscrowd": 0, "image_id": 461530, "bbox": [521.48, 70.89, 110.66, 146.06], "category_id": 1, "id": 1746538}, {"segmentation": [[133.29, 94.36, 134.51, 92.01, 135.13, 89.96, 135.74, 87.81, 136.66, 86.99, 139.53, 86.59, 141.78, 88.43, 142.29, 94.15, 148.32, 98.96, 154.05, 104.49, 155.89, 106.74, 155.07, 107.86, 148.94, 108.37, 137.69, 107.55, 137.48, 108.27, 138.3, 110.83, 134.51, 111.13]], "area": 287.36470000000014, "iscrowd": 0, "image_id": 517261, "bbox": [133.29, 86.59, 22.6, 24.54], "category_id": 1, "id": 1746776}, {"segmentation": [[195.59, 358.08, 196.92, 357.49, 197.66, 353.94, 199.29, 350.84, 201.21, 350.1, 208.9, 350.69, 210.38, 355.13, 210.08, 358.53, 212.3, 359.41, 211.41, 360.45, 209.34, 361.48, 208.9, 363.7, 211.27, 367.1, 214.07, 370.06, 215.4, 371.09, 214.96, 377.89, 209.49, 375.97, 209.05, 372.57, 207.87, 369.32, 206.83, 367.1, 204.32, 369.17, 198.7, 365.62, 196.33, 364.88, 197.07, 361.33, 195.59, 359.86, 195.45, 358.08]], "area": 274.5418500000002, "iscrowd": 0, "image_id": 307462, "bbox": [195.45, 350.1, 19.95, 27.79], "category_id": 1, "id": 1746783}, {"segmentation": [[203.45, 533.71, 203.03, 529.75, 201.19, 524.65, 200.62, 522.11, 200.2, 517.58, 198.22, 514.89, 193.26, 516.45, 192.13, 520.41, 190.15, 529.18, 189.72, 536.54, 189.72, 538.81]], "area": 218.89539999999977, "iscrowd": 0, "image_id": 358100, "bbox": [189.72, 514.89, 13.73, 23.92], "category_id": 1, "id": 1746860}, {"segmentation": [[468.03, 17.29, 475.37, 13.62, 478.12, 23.71, 477.2, 35.64, 483.63, 52.17, 481.33, 60.89, 474.45, 44.36, 473.07, 55.38, 476.29, 61.8, 488.22, 72.82, 488.22, 85.21, 489.55, 96.32, 493.73, 103.27, 504.86, 105.36, 499.29, 111.62, 483.29, 109.53, 484.68, 93.53, 478.42, 87.27, 477.73, 94.23, 481.21, 100.49, 470.08, 103.97, 474.25, 95.62, 473.56, 83.8, 459.64, 72.67, 458.95, 63.62, 454.77, 52.49, 455.47, 36.5, 462.43, 27.45, 466.6, 16.32, 473.56, 13.54]], "area": 1771.3147000000013, "iscrowd": 0, "image_id": 577869, "bbox": [454.77, 13.54, 50.09, 98.08], "category_id": 1, "id": 1747013}, {"segmentation": [[202.14, 309.3, 201.79, 330.86, 197.72, 331.39, 195.78, 318.66, 196.84, 311.77, 199.67, 308.06], [209.03, 307.88, 210.44, 305.23, 213.8, 306.65, 216.28, 304.0, 217.34, 307.18, 219.1, 306.47, 220.34, 308.95, 222.64, 313.19, 224.05, 323.08, 224.4, 331.92, 209.56, 330.86, 208.5, 307.35]], "area": 468.11015, "iscrowd": 0, "image_id": 156221, "bbox": [195.78, 304.0, 28.62, 27.92], "category_id": 1, "id": 1747359}, {"segmentation": [[118.69, 255.17, 120.89, 255.17, 122.7, 251.57, 123.7, 251.17, 122.9, 249.36, 121.7, 246.56, 121.1, 243.56, 120.09, 244.16, 119.89, 246.76, 118.29, 248.76, 118.89, 250.97]], "area": 34.04209999999996, "iscrowd": 0, "image_id": 274881, "bbox": [118.29, 243.56, 5.41, 11.61], "category_id": 1, "id": 1747370}, {"segmentation": [[536.92, 166.62, 532.92, 169.44, 531.98, 175.08, 534.1, 176.73, 534.57, 182.37, 533.86, 189.42, 533.63, 199.76, 535.74, 202.58, 534.8, 206.57, 535.51, 208.92, 541.85, 207.98, 542.08, 205.87, 542.08, 203.28, 544.43, 196.94, 544.43, 187.3, 547.02, 184.72, 547.49, 178.37, 549.13, 175.79, 547.02, 167.8, 542.55, 166.62, 542.79, 164.51, 542.79, 160.98, 540.91, 159.57, 538.56, 160.04, 537.62, 161.92, 537.39, 165.68]], "area": 508.99119999999886, "iscrowd": 0, "image_id": 206427, "bbox": [531.98, 159.57, 17.15, 49.35], "category_id": 1, "id": 1747962}, {"segmentation": [[162.26, 310.6, 157.33, 308.62, 153.05, 310.27, 150.09, 315.53, 148.44, 302.04, 150.09, 295.13, 153.05, 292.83, 155.02, 292.17, 160.95, 299.74, 163.25, 307.96]], "area": 199.7291499999999, "iscrowd": 0, "image_id": 111831, "bbox": [148.44, 292.17, 14.81, 23.36], "category_id": 1, "id": 1748278}, {"segmentation": [[219.71, 153.05, 219.14, 155.03, 218.06, 156.76, 218.23, 159.24, 218.81, 159.49, 218.56, 159.9, 217.32, 159.32, 216.91, 155.69, 216.0, 153.38, 215.5, 151.06, 216.0, 149.0, 216.41, 148.51, 216.41, 147.43, 217.65, 146.52, 218.48, 146.77, 218.64, 148.09, 219.14, 149.17, 219.3, 150.4, 219.55, 152.14]], "area": 31.960749999999976, "iscrowd": 0, "image_id": 576322, "bbox": [215.5, 146.52, 4.21, 13.38], "category_id": 1, "id": 1748558}, {"segmentation": [[248.51, 310.8, 237.95, 287.15, 237.95, 282.93, 232.88, 277.44, 229.93, 270.69, 226.55, 265.2, 221.9, 261.82, 217.26, 258.02, 213.46, 254.64, 210.08, 243.24, 213.88, 238.17, 216.83, 234.37, 223.59, 232.68, 227.81, 231.83, 231.19, 229.72, 232.04, 227.19, 231.19, 225.08, 237.1, 225.5, 241.75, 233.95, 245.97, 242.39, 249.77, 247.04, 250.2, 255.06, 251.46, 260.13, 255.26, 266.04, 255.26, 270.26, 255.26, 270.26, 270.04, 282.93, 280.18, 290.96, 286.93, 295.18, 288.62, 299.4, 289.05, 303.62, 288.2, 307.42, 286.51, 310.38, 283.13, 311.23, 277.64, 304.05, 275.96, 301.51, 271.31, 297.71, 264.98, 293.91, 261.18, 290.11, 256.11, 286.31, 251.04, 279.98, 247.66, 278.71, 249.35, 288.42, 250.62, 296.44, 255.26, 304.47, 258.22, 308.27, 258.64, 310.38, 262.02, 314.6, 264.55, 317.14, 265.82, 318.4, 261.6, 324.32, 257.37, 324.74, 250.48, 318.37], [171.2, 241.4, 176.65, 235.95, 182.1, 231.4, 189.37, 222.62, 189.97, 217.78, 188.76, 213.54, 186.34, 210.51, 185.43, 207.48, 186.03, 204.15, 187.85, 201.73, 187.85, 198.4, 187.85, 194.47, 192.7, 191.74, 197.84, 191.74, 202.38, 193.86, 205.41, 193.86, 210.56, 193.86, 217.83, 196.28, 223.58, 199.31, 226.3, 200.52, 231.75, 204.15, 227.82, 208.09, 226.0, 209.0, 223.28, 210.51, 217.83, 212.63, 212.07, 215.96, 209.35, 218.08, 206.62, 222.02, 204.5, 225.95, 201.48, 227.77, 199.36, 227.16, 197.24, 229.59, 194.51, 233.83, 186.03, 239.88, 183.61, 244.12, 179.68, 247.15, 175.44, 247.45, 171.8, 246.84, 169.69, 244.12]], "area": 3767.1906000000004, "iscrowd": 0, "image_id": 82486, "bbox": [169.69, 191.74, 119.36, 133.0], "category_id": 1, "id": 1748769}, {"segmentation": [[0.72, 171.99, 2.52, 169.29, 5.22, 169.06, 7.92, 169.74, 9.28, 169.52, 9.95, 167.94, 10.63, 165.46, 11.98, 163.44, 10.63, 161.41, 10.4, 159.83, 11.3, 158.71, 10.85, 153.08, 10.18, 149.93, 10.18, 147.9, 10.85, 146.1, 14.0, 144.3, 17.83, 144.52, 19.18, 144.52, 21.66, 149.7, 22.33, 153.08, 25.49, 154.66, 26.84, 155.56, 27.96, 158.26, 28.41, 160.96, 28.41, 162.54, 29.54, 165.01, 30.67, 167.94, 30.44, 171.54, 29.54, 175.59, 29.31, 177.4, 29.54, 180.1, 27.96, 181.67, 19.18, 183.02, 17.16, 184.38, 15.58, 185.5, 9.28, 184.6, 5.67, 182.12, 4.77, 181.22, 2.07, 186.63, 0.0, 186.4, 0.0, 185.73]], "area": 787.3688499999997, "iscrowd": 0, "image_id": 355111, "bbox": [0.0, 144.3, 30.67, 42.33], "category_id": 1, "id": 1748892}, {"segmentation": [[262.95, 552.75, 260.09, 531.97, 263.67, 524.8, 270.12, 516.92, 272.98, 533.4, 272.98, 556.33]], "area": 360.0629000000016, "iscrowd": 0, "image_id": 358100, "bbox": [260.09, 516.92, 12.89, 39.41], "category_id": 1, "id": 1748906}, {"segmentation": [[1.32, 246.93, 14.42, 230.33, 19.66, 223.34, 19.23, 218.54, 18.35, 213.3, 18.79, 208.05, 20.97, 201.5, 29.71, 189.71, 37.57, 186.65, 47.18, 187.52, 57.23, 194.95, 58.98, 202.81, 58.54, 214.17, 56.79, 218.1, 55.05, 222.91, 54.61, 233.83, 55.92, 243.0, 56.79, 247.8, 58.1, 254.36, 67.28, 254.79, 73.39, 257.85, 76.45, 260.04, 75.58, 264.4, 72.08, 268.33, 68.15, 268.33, 62.47, 265.28, 62.04, 266.15, 61.16, 276.2, 48.06, 305.03, 42.38, 312.89, 44.13, 321.19, 54.61, 326.87, 52.43, 331.67, 45.44, 332.98, 40.63, 332.11, 33.64, 330.8, 27.09, 330.8, 23.16, 330.8, 14.86, 330.8, 9.62, 329.93, 6.56, 325.12, 7.43, 322.5, 13.55, 319.01, 17.92, 317.26, 28.4, 307.65, 31.46, 300.66, 32.77, 294.98, 22.72, 298.48, 14.86, 301.1, 6.12, 302.41, 1.32, 301.97, 0.0, 300.66, 0.01, 249.11]], "area": 6442.194400000001, "iscrowd": 0, "image_id": 3366, "bbox": [0.0, 186.65, 76.45, 146.33], "category_id": 1, "id": 1748925}, {"segmentation": [[619.3, 326.08, 608.31, 330.08, 604.81, 328.08, 606.81, 315.58, 608.81, 300.59, 606.31, 298.59, 602.31, 321.08, 600.31, 327.58, 595.31, 327.58, 595.81, 315.08, 598.31, 299.59, 588.81, 297.09, 592.31, 285.09, 591.31, 280.09, 598.81, 258.6, 599.31, 245.6, 603.31, 243.6, 608.31, 241.6, 613.31, 230.6, 619.3, 226.1, 625.8, 226.6, 627.8, 234.1, 624.3, 241.6, 622.8, 242.6, 622.3, 244.1, 627.3, 247.1, 627.3, 247.1, 631.3, 249.1, 630.8, 254.6, 627.8, 263.59, 631.8, 277.09, 631.8, 290.09, 631.8, 290.59, 627.8, 292.09, 625.3, 291.09, 623.3, 300.59, 622.3, 301.59, 619.8, 301.59, 616.31, 303.09, 615.81, 307.09, 614.31, 321.58, 619.3, 323.58]], "area": 2652.967600000001, "iscrowd": 0, "image_id": 403627, "bbox": [588.81, 226.1, 42.99, 103.98], "category_id": 1, "id": 1749175}, {"segmentation": [[515.98, 77.73, 520.21, 68.36, 527.15, 62.32, 531.38, 63.83, 529.27, 58.7, 531.68, 53.87, 536.52, 51.45, 542.86, 55.38, 541.35, 63.53, 539.54, 68.06, 540.14, 73.2, 538.93, 78.33, 538.33, 80.75, 533.5, 81.66, 529.57, 79.84, 517.18, 78.94]], "area": 463.9489999999997, "iscrowd": 0, "image_id": 289693, "bbox": [515.98, 51.45, 26.88, 30.21], "category_id": 1, "id": 1749983}, {"segmentation": [[350.02, 83.15, 346.76, 61.14, 350.84, 47.29, 352.47, 38.32, 350.02, 26.91, 354.1, 20.39, 367.14, 15.5, 373.66, 8.16, 381.81, 4.08, 392.41, 3.27, 407.08, 0.01, 458.43, 1.64, 461.69, 8.97, 469.03, 13.86, 477.18, 18.76, 482.89, 29.35, 488.59, 39.13, 493.49, 50.55, 495.93, 57.88, 495.12, 70.11, 494.3, 82.34, 504.08, 93.75, 500.82, 100.27, 498.38, 110.05, 496.75, 116.57, 496.75, 123.91, 494.3, 145.92, 508.16, 172.0, 532.61, 185.86, 552.17, 193.19, 562.77, 201.35, 613.31, 219.28, 639.39, 247.81, 640.0, 478.75, 510.6, 477.94, 485.33, 468.15, 482.07, 464.08, 471.48, 453.48, 458.43, 451.04, 438.87, 450.22, 425.01, 448.59, 420.94, 451.85, 409.53, 455.11, 407.08, 445.33, 402.19, 446.96, 398.11, 446.96, 396.48, 446.96, 389.96, 438.81, 390.78, 433.1, 394.04, 428.21, 388.33, 418.43, 386.7, 414.36, 385.89, 406.2, 384.26, 397.24, 385.07, 392.35, 398.93, 375.23, 412.79, 368.71, 415.23, 366.26, 416.05, 361.37, 418.49, 357.3, 420.94, 353.22, 426.64, 345.07, 433.17, 336.92, 438.87, 332.84, 451.1, 294.53, 449.47, 277.41, 443.76, 268.45, 440.5, 260.29, 438.06, 248.88, 438.06, 237.47, 435.61, 221.98, 420.94, 212.95, 416.05, 207.25, 416.05, 207.25, 411.97, 207.25, 411.16, 205.62, 378.55, 173.76, 366.32, 135.19, 367.14, 129.48, 363.06, 114.81, 357.36, 108.29, 352.47, 91.17, 350.02, 79.76, 348.39, 70.79]], "area": 84190.53009999997, "iscrowd": 0, "image_id": 211622, "bbox": [346.76, 0.01, 293.24, 478.74], "category_id": 1, "id": 1750174}, {"segmentation": [[523.27, 125.76, 527.32, 117.28, 533.59, 109.16, 541.7, 102.53, 547.6, 100.32, 554.61, 106.21, 551.66, 119.49, 552.4, 123.91, 544.65, 130.92, 537.28, 134.61, 533.59, 134.61]], "area": 666.2703999999989, "iscrowd": 0, "image_id": 461530, "bbox": [523.27, 100.32, 31.34, 34.29], "category_id": 1, "id": 1750294}, {"segmentation": [[502.46, 20.59, 512.76, 6.18, 532.32, 3.09, 545.7, 16.47, 552.91, 36.04, 570.41, 43.24, 588.95, 97.81, 577.62, 109.14, 584.83, 179.16, 582.77, 220.34, 601.3, 271.82, 602.33, 293.44, 577.62, 298.59, 601.3, 322.27, 591.01, 331.54, 560.12, 309.92, 538.5, 311.98, 544.67, 330.51, 530.26, 331.54, 514.81, 305.8, 504.52, 285.21, 544.67, 226.52, 539.53, 203.87, 566.3, 186.36, 565.27, 142.09, 556.0, 113.26, 523.05, 87.52, 523.05, 74.13, 523.05, 59.72, 517.9, 49.42, 515.84, 35.01, 505.55, 22.65]], "area": 14855.233750000016, "iscrowd": 0, "image_id": 269986, "bbox": [502.46, 3.09, 99.87, 328.45], "category_id": 1, "id": 1750649}, {"segmentation": [[171.1, 547.29, 155.64, 545.86, 159.94, 514.94, 166.52, 510.93, 167.09, 506.64, 175.11, 505.21, 177.11, 514.08, 178.26, 536.41, 172.53, 546.43]], "area": 707.7158999999998, "iscrowd": 0, "image_id": 358100, "bbox": [155.64, 505.21, 22.62, 42.08], "category_id": 1, "id": 1750880}, {"segmentation": [[177.13, 56.38, 197.89, 51.03, 194.54, 43.33, 192.31, 40.32, 190.86, 39.09, 189.63, 37.19, 189.63, 36.63, 192.65, 34.85, 191.31, 33.62, 189.41, 33.95, 187.07, 30.16, 186.51, 29.6, 181.82, 31.05, 182.27, 34.96, 178.03, 37.86, 176.69, 41.88, 177.25, 47.79, 176.8, 52.48, 176.91, 55.49]], "area": 350.8501999999998, "iscrowd": 0, "image_id": 375659, "bbox": [176.69, 29.6, 21.2, 26.78], "category_id": 1, "id": 1751058}, {"segmentation": [[553.7, 164.89, 556.12, 165.0, 555.82, 162.29, 555.71, 161.05, 554.29, 161.34, 554.58, 162.35, 554.52, 163.17, 554.05, 164.0, 553.88, 164.65]], "area": 6.083450000000128, "iscrowd": 0, "image_id": 576322, "bbox": [553.7, 161.05, 2.42, 3.95], "category_id": 1, "id": 1751257}, {"segmentation": [[73.89, 229.11, 75.28, 228.95, 75.98, 230.27, 75.98, 230.27, 75.98, 230.27, 78.45, 231.12, 78.45, 231.12, 79.76, 231.35, 80.15, 232.81, 81.15, 232.89, 82.08, 230.96, 84.24, 230.96, 81.92, 232.43, 80.69, 233.97, 80.15, 234.13, 77.98, 234.13, 76.05, 233.59, 75.51, 233.51, 75.59, 232.04, 75.28, 231.42, 74.28, 230.81, 73.43, 230.42, 73.58, 229.42, 74.28, 229.19, 74.28, 229.19]], "area": 21.26509999999998, "iscrowd": 0, "image_id": 394242, "bbox": [73.43, 228.95, 10.81, 5.18], "category_id": 1, "id": 1751573}, {"segmentation": [[367.94, 279.98, 356.06, 277.01, 367.44, 261.67, 382.79, 249.3, 390.7, 239.89, 395.65, 233.46, 400.11, 223.56, 407.03, 205.75, 410.0, 196.84, 412.48, 194.37, 421.38, 190.9, 421.38, 191.89, 424.85, 212.68, 424.85, 230.49, 418.42, 232.96, 416.93, 234.94, 412.48, 230.49, 411.49, 230.49, 400.6, 248.8, 380.31, 263.65, 372.89, 269.58, 371.4, 270.57, 370.91, 272.06, 367.94, 278.0]], "area": 1452.916650000001, "iscrowd": 0, "image_id": 206427, "bbox": [356.06, 190.9, 68.79, 89.08], "category_id": 1, "id": 1751666}, {"segmentation": [[200.9, 227.96, 216.05, 216.02, 234.86, 201.8, 242.21, 208.22, 248.17, 225.2, 258.27, 241.72, 257.35, 246.77, 250.93, 251.36, 244.96, 233.92, 239.45, 223.37, 229.36, 223.83, 232.11, 230.25, 222.93, 233.0, 213.75, 232.55, 210.08, 238.51, 212.38, 250.44, 223.39, 264.67, 234.41, 276.14, 233.95, 282.11, 233.95, 300.01, 237.16, 327.54, 240.83, 338.1, 245.42, 344.06, 238.08, 347.28, 232.57, 345.44, 219.72, 342.69, 217.43, 321.58, 219.72, 299.09, 213.3, 275.68, 209.62, 259.62, 208.25, 250.9, 205.03, 248.15, 197.23, 243.56, 194.94, 237.13, 197.23, 230.25], [251.39, 300.47, 255.52, 300.47, 254.6, 283.94, 249.09, 279.81, 247.26, 293.58], [241.75, 300.92, 238.99, 324.79, 240.83, 332.13, 248.17, 333.51, 251.84, 326.62, 248.63, 313.77, 246.34, 304.14]], "area": 3182.952499999998, "iscrowd": 0, "image_id": 82486, "bbox": [194.94, 201.8, 63.33, 145.48], "category_id": 1, "id": 1752412}, {"segmentation": [[244.32, 124.11, 244.32, 124.11, 243.61, 128.36, 243.61, 128.36, 246.44, 138.74, 248.8, 147.23, 245.03, 147.94, 243.14, 144.4, 232.29, 144.64, 227.33, 139.92, 227.33, 139.92, 223.8, 139.21, 230.87, 129.07, 235.36, 127.42, 237.01, 119.87, 240.78, 118.22, 244.08, 118.92, 244.08, 118.92]], "area": 375.8593999999999, "iscrowd": 0, "image_id": 20251, "bbox": [223.8, 118.22, 25.0, 29.72], "category_id": 1, "id": 1752705}, {"segmentation": [[72.05, 316.94, 76.38, 314.05, 78.15, 311.8, 79.27, 309.71, 81.04, 305.21, 82.0, 301.04, 85.06, 298.95, 91.48, 298.15, 95.98, 301.2, 96.62, 304.41, 97.58, 308.27, 96.62, 310.03, 96.62, 310.35, 96.62, 311.64, 97.74, 314.05, 99.19, 313.89, 101.28, 313.24, 101.92, 314.69, 103.36, 316.94, 100.15, 319.35, 98.07, 322.4, 94.69, 323.2, 89.71, 322.56, 86.18, 321.76, 81.68, 320.95, 77.83, 320.15, 74.14, 319.19, 72.21, 317.9], [102.4, 311.0, 103.85, 308.75, 109.15, 308.27, 112.2, 307.94, 116.05, 307.3, 118.3, 306.34, 120.87, 307.78, 122.64, 309.71, 120.71, 311.0, 118.78, 311.64, 115.57, 311.32, 112.84, 311.0, 106.58, 311.0, 104.33, 310.68]], "area": 516.91155, "iscrowd": 0, "image_id": 23015, "bbox": [72.05, 298.15, 50.59, 25.05], "category_id": 1, "id": 1753792}, {"segmentation": [[529.15, 205.71, 526.74, 200.48, 525.54, 195.66, 527.14, 186.41, 525.94, 180.38, 521.52, 174.76, 522.72, 167.92, 526.34, 162.7, 526.74, 160.29, 528.35, 157.47, 533.17, 161.09, 533.57, 167.12, 531.97, 175.96, 533.98, 187.62, 530.76, 190.84, 530.36, 198.07, 531.97, 203.3]], "area": 318.39370000000065, "iscrowd": 0, "image_id": 206427, "bbox": [521.52, 157.47, 12.46, 48.24], "category_id": 1, "id": 1753830}, {"segmentation": [[568.8, 83.1, 565.24, 89.32, 563.86, 96.68, 565.12, 104.39, 569.38, 114.52, 552.46, 122.69, 555.11, 104.27, 555.11, 100.36, 543.72, 100.94, 547.75, 89.55, 553.73, 83.91, 562.71, 81.03], [608.63, 123.0, 610.64, 132.77, 607.48, 139.09, 612.65, 146.56, 604.03, 154.89, 594.55, 149.15, 591.96, 133.92, 601.73, 128.17, 606.61, 122.43]], "area": 953.3355999999992, "iscrowd": 0, "image_id": 461530, "bbox": [543.72, 81.03, 68.93, 73.86], "category_id": 1, "id": 1754219}, {"segmentation": [[505.94, 178.72, 505.57, 177.03, 505.94, 175.62, 506.38, 174.61, 507.11, 173.16, 508.68, 173.12, 509.4, 175.05, 510.85, 177.11, 512.22, 177.91, 512.26, 178.16]], "area": 21.53054999999996, "iscrowd": 0, "image_id": 191785, "bbox": [505.57, 173.12, 6.69, 5.6], "category_id": 1, "id": 1754430}, {"segmentation": [[123.78, 513.2, 104.27, 510.93, 102.9, 500.04, 108.8, 486.42, 108.35, 474.63, 98.37, 468.27, 92.92, 456.47, 100.64, 441.04, 116.52, 428.34, 121.06, 416.54, 127.41, 403.83, 151.92, 397.93, 152.82, 415.18, 139.66, 428.34, 136.03, 436.51, 131.04, 449.21, 127.86, 455.11, 131.95, 461.46, 131.95, 472.81, 132.4, 485.52, 136.94, 491.87, 132.4, 496.86, 127.86, 504.12]], "area": 3183.87675, "iscrowd": 0, "image_id": 41577, "bbox": [92.92, 397.93, 59.9, 115.27], "category_id": 1, "id": 1754627}, {"segmentation": [[1.15, 382.36, 8.64, 378.96, 18.17, 379.64, 18.85, 366.03, 15.79, 347.65, 18.85, 344.24, 22.25, 338.8, 18.85, 323.48, 15.79, 310.89, 14.76, 303.4, 10.68, 300.68, 9.32, 288.77, 2.51, 281.96, 0.47, 282.64, 0.47, 282.64]], "area": 1508.1312000000003, "iscrowd": 0, "image_id": 156221, "bbox": [0.47, 281.96, 21.78, 100.4], "category_id": 1, "id": 1754780}, {"segmentation": [[80.14, 361.82, 89.99, 303.95, 83.83, 299.02, 69.06, 299.02, 64.13, 249.77, 65.36, 236.23, 83.83, 205.45, 113.38, 201.75, 118.31, 235.0, 146.63, 236.23, 150.32, 249.77, 147.86, 273.17, 119.54, 307.64, 105.99, 381.52]], "area": 8451.67705, "iscrowd": 0, "image_id": 111759, "bbox": [64.13, 201.75, 86.19, 179.77], "category_id": 1, "id": 1756261}, {"segmentation": [[510.94, 175.54, 511.18, 173.34, 510.2, 166.27, 513.38, 163.1, 517.77, 165.29, 519.72, 173.1, 526.31, 181.15, 525.82, 192.87, 526.07, 202.38, 527.04, 205.56, 524.36, 208.48, 519.97, 214.34, 518.5, 224.35, 516.06, 234.35, 514.11, 236.06, 513.38, 222.64, 514.11, 215.32, 519.48, 210.44, 520.94, 196.77, 518.01, 193.6, 519.97, 188.47, 515.57, 183.59, 513.13, 179.2, 512.4, 177.98, 512.4, 177.98]], "area": 465.00784999999934, "iscrowd": 0, "image_id": 206427, "bbox": [510.2, 163.1, 16.84, 72.96], "category_id": 1, "id": 1756572}, {"segmentation": [[18.42, 389.05, 18.95, 397.12, 18.95, 410.01, 16.8, 420.76, 17.88, 440.65, 26.48, 447.1, 54.43, 448.17, 65.71, 449.25, 67.86, 449.78, 90.43, 490.63, 89.36, 506.21, 93.12, 510.51, 124.83, 509.44, 32.93, 390.13, 16.27, 378.84, 13.58, 375.62, 13.58, 375.62]], "area": 3393.9973999999997, "iscrowd": 0, "image_id": 461530, "bbox": [13.58, 375.62, 111.25, 134.89], "category_id": 1, "id": 1756868}, {"segmentation": [[141.16, 403.55, 142.07, 401.93, 142.07, 399.5, 142.07, 398.19, 143.28, 397.17, 142.98, 396.57, 142.78, 395.15, 143.89, 393.63, 145.21, 393.93, 145.61, 395.65, 145.71, 396.87, 147.13, 398.49, 148.35, 401.22, 148.65, 403.05, 147.44, 403.76, 145.82, 403.66, 142.98, 403.66], [145.41, 405.68, 145.31, 418.95, 146.93, 416.62, 147.23, 414.49, 146.12, 409.33, 146.22, 407.61, 146.42, 406.69, 146.42, 406.09], [141.56, 405.78, 141.46, 409.33, 140.55, 411.46, 142.07, 413.38, 143.18, 415.71, 142.57, 417.43, 142.47, 418.44, 143.49, 418.24, 143.59, 418.14, 143.38, 405.68]], "area": 81.22190000000012, "iscrowd": 0, "image_id": 334097, "bbox": [140.55, 393.63, 8.1, 25.32], "category_id": 1, "id": 1757066}, {"segmentation": [[107.68, 31.14, 106.99, 25.35, 108.02, 24.33, 108.7, 24.33, 111.76, 24.33, 113.12, 25.35, 116.18, 28.42, 114.82, 32.84, 116.48, 42.19, 113.92, 42.19, 114.47, 44.56, 113.56, 48.94, 112.11, 49.24, 109.84, 49.24, 103.85, 45.73, 103.64, 32.92, 102.81, 32.09, 105.5, 31.26], [100.33, 42.63, 95.79, 42.01, 96.41, 46.35, 102.81, 49.03, 100.33, 42.01]], "area": 269.925, "iscrowd": 0, "image_id": 382979, "bbox": [95.79, 24.33, 20.69, 24.91], "category_id": 1, "id": 1757143}, {"segmentation": [[328.18, 368.15, 336.59, 355.53, 314.5, 298.73, 292.41, 267.17, 270.33, 261.91, 248.24, 255.6, 250.34, 239.82, 254.55, 204.06, 254.55, 175.66, 233.51, 150.41, 216.68, 145.16, 192.49, 146.21, 172.5, 161.99, 160.93, 195.64, 159.88, 229.3, 155.67, 257.7, 132.53, 275.59, 120.96, 288.21, 108.34, 336.59, 108.34, 343.96, 112.55, 354.47, 143.05, 356.58, 149.36, 363.94, 176.71, 368.15, 187.23, 370.25, 156.73, 262.96, 166.19, 258.76, 276.64, 272.43, 280.84, 276.64, 311.35, 368.15]], "area": 18064.409799999994, "iscrowd": 0, "image_id": 286116, "bbox": [108.34, 145.16, 228.25, 225.09], "category_id": 1, "id": 1757469}, {"segmentation": [[273.35, 415.37, 261.87, 405.66, 266.28, 349.16, 278.64, 348.27, 272.46, 322.67, 274.23, 310.31, 282.17, 295.31, 289.24, 309.43, 303.36, 328.85, 306.01, 342.98, 331.61, 352.69, 334.26, 368.58, 293.65, 382.7], [165.65, 384.47, 153.29, 364.16, 158.58, 353.57, 170.06, 348.27, 163.88, 334.15, 183.3, 326.2, 183.3, 326.2]], "area": 4475.545300000002, "iscrowd": 0, "image_id": 111759, "bbox": [153.29, 295.31, 180.97, 120.06], "category_id": 1, "id": 1757513}, {"segmentation": [[157.13, 403.91, 157.13, 399.45, 158.21, 398.52, 158.37, 395.45, 160.52, 394.98, 161.29, 398.83, 162.21, 404.06], [156.67, 405.6, 156.67, 410.37, 156.67, 412.53, 159.91, 416.53, 158.67, 417.92, 160.67, 418.07, 161.75, 416.38, 161.91, 412.99, 162.52, 409.45, 162.68, 407.45, 161.75, 404.83]], "area": 91.81850000000016, "iscrowd": 0, "image_id": 334097, "bbox": [156.67, 394.98, 6.01, 23.09], "category_id": 1, "id": 1757603}, {"segmentation": [[14.49, 40.04, 15.62, 34.86, 15.62, 29.68, 15.13, 25.8, 15.94, 21.59, 19.34, 18.68, 25.01, 17.54, 26.46, 17.06, 26.95, 15.6, 27.27, 10.26, 29.54, 5.41, 34.23, 4.43, 40.86, 12.85, 46.37, 15.44, 46.69, 25.15, 47.18, 30.33, 47.66, 36.48, 44.42, 40.2, 40.22, 42.46, 26.14, 46.51, 9.15, 48.78, 9.79, 44.41, 10.44, 42.3, 11.25, 38.42, 12.22, 37.61]], "area": 1049.4548499999999, "iscrowd": 0, "image_id": 355111, "bbox": [9.15, 4.43, 38.51, 44.35], "category_id": 1, "id": 1758522}, {"segmentation": [[373.68, 284.35, 380.64, 272.45, 388.27, 269.31, 399.27, 271.55, 404.89, 283.68, 375.25, 283.23]], "area": 307.7518000000002, "iscrowd": 0, "image_id": 156221, "bbox": [373.68, 269.31, 31.21, 15.04], "category_id": 1, "id": 1758678}, {"segmentation": [[105.69, 377.51, 126.57, 300.29, 129.11, 293.33, 133.54, 285.73, 137.33, 279.4, 143.03, 274.97, 151.26, 271.81, 160.12, 269.28, 162.02, 267.38, 158.22, 260.42, 158.22, 249.66, 158.22, 233.2, 160.12, 228.14, 163.92, 223.7, 167.08, 221.17, 172.78, 219.91, 182.27, 219.27, 193.67, 221.17, 198.73, 227.5, 200.63, 242.06, 200.0, 250.92, 201.26, 254.72, 203.79, 257.88, 204.43, 261.68, 202.53, 265.48, 202.53, 266.74, 207.59, 269.28, 210.12, 271.18, 218.35, 288.26, 221.52, 294.59, 213.92, 295.23, 205.06, 300.92, 203.79, 305.35, 197.46, 306.62, 191.77, 307.25, 177.21, 319.91, 174.04, 326.24, 165.18, 333.2, 165.82, 338.27, 167.71, 345.86, 168.98, 349.66, 160.75, 350.93, 158.22, 356.62, 155.06, 364.85, 156.95, 376.24, 162.65, 381.94, 165.82, 383.21, 162.65, 420.55, 163.92, 430.68, 165.18, 439.54, 165.18, 453.46, 159.49, 466.12, 157.59, 474.35, 155.06, 474.98, 137.33, 422.45, 120.24, 395.87, 110.75, 387.0]], "area": 11402.759250000003, "iscrowd": 0, "image_id": 111759, "bbox": [105.69, 219.27, 115.83, 255.71], "category_id": 1, "id": 1760198}, {"segmentation": [[0.0, 61.88, 11.13, 58.87, 12.34, 57.06, 9.33, 51.64, 8.12, 48.33, 8.42, 40.19, 8.72, 34.47, 7.82, 30.25, 1.8, 27.24, 0.0, 24.53]], "area": 293.75115, "iscrowd": 0, "image_id": 355111, "bbox": [0.0, 24.53, 12.34, 37.35], "category_id": 1, "id": 1760678}, {"segmentation": [[414.97, 355.67, 420.99, 259.44, 427.0, 242.4, 414.97, 211.33, 411.97, 181.26, 411.97, 156.2, 442.04, 125.13, 478.12, 118.11, 500.17, 131.14, 521.22, 146.18, 525.23, 157.2, 512.2, 199.3, 496.16, 206.32, 493.16, 212.33, 514.21, 233.38, 554.3, 245.41, 583.37, 267.46, 588.38, 275.48, 544.28, 280.49, 544.28, 291.52, 579.36, 412.8, 514.21, 403.78, 526.24, 378.72, 530.24, 347.65, 495.16, 344.64, 481.13, 344.64, 476.12, 381.73, 478.12, 393.76, 467.1, 377.72, 456.07, 366.69, 455.07, 358.68, 426.0, 352.66]], "area": 29499.076950000002, "iscrowd": 0, "image_id": 286116, "bbox": [411.97, 118.11, 176.41, 294.69], "category_id": 1, "id": 1761694}, {"segmentation": [[626.24, 220.33, 626.62, 215.16, 623.94, 214.2, 623.56, 218.8, 624.13, 221.29, 626.04, 220.52]], "area": 16.569900000000143, "iscrowd": 0, "image_id": 394242, "bbox": [623.56, 214.2, 3.06, 7.09], "category_id": 1, "id": 1762535}, {"segmentation": [[612.29, 222.52, 613.47, 219.63, 611.89, 217.65, 611.5, 217.26, 610.44, 218.7, 610.44, 220.55, 611.1, 222.0]], "area": 10.081949999999829, "iscrowd": 0, "image_id": 394242, "bbox": [610.44, 217.26, 3.03, 5.26], "category_id": 1, "id": 1762551}, {"segmentation": [[118.63, 322.95, 117.64, 308.7, 108.3, 297.88, 108.3, 283.62, 108.3, 275.27, 108.79, 262.98, 105.84, 253.14, 102.9, 246.26, 107.32, 229.06, 102.4, 220.7, 89.62, 218.73, 74.38, 224.63, 75.86, 238.89, 78.32, 262.98, 73.4, 285.1, 73.89, 302.31, 76.35, 319.02, 83.72, 320.99, 85.69, 305.75, 89.62, 279.69, 93.06, 273.3, 97.49, 281.17, 105.84, 302.31, 108.79, 322.46]], "area": 2607.3882000000003, "iscrowd": 0, "image_id": 3366, "bbox": [73.4, 218.73, 45.23, 104.22], "category_id": 1, "id": 1762794}, {"segmentation": [[510.9, 225.21, 511.64, 222.51, 511.15, 220.54, 508.69, 219.31, 509.18, 225.46, 509.67, 225.7]], "area": 12.906149999999892, "iscrowd": 0, "image_id": 394242, "bbox": [508.69, 219.31, 2.95, 6.39], "category_id": 1, "id": 1763088}, {"segmentation": [[344.68, 47.82, 343.83, 24.32, 351.56, 14.58, 357.86, 13.44, 361.87, 11.72, 363.31, 0.26, 382.79, 0.26, 383.08, 7.13, 383.08, 13.44, 388.81, 26.9, 396.54, 42.95, 404.85, 46.38, 405.14, 54.69, 401.13, 75.61, 393.39, 76.47, 394.25, 54.12, 384.79, 59.28, 377.06, 64.72, 363.31, 67.3, 362.45, 76.18, 364.45, 93.66, 366.46, 102.54, 356.14, 103.97, 355.0, 100.25, 357.58, 93.37, 350.7, 66.15, 362.16, 64.43, 372.19, 47.24, 372.19, 34.64, 370.76, 26.04, 368.46, 28.05, 365.31, 39.51, 362.45, 39.79, 358.44, 33.21, 357.86, 35.78, 358.72, 44.09, 351.56, 50.68, 346.12, 50.4]], "area": 2682.1607500000005, "iscrowd": 0, "image_id": 151322, "bbox": [343.83, 0.26, 61.31, 103.71], "category_id": 1, "id": 1763299}, {"segmentation": [[605.26, 104.85, 614.94, 106.97, 618.28, 108.18, 624.03, 106.97, 629.48, 106.67, 628.57, 112.12, 628.27, 115.75, 633.11, 116.36, 633.11, 114.54, 632.2, 109.4, 637.05, 109.09, 640.0, 122.72, 635.53, 128.77, 626.15, 132.71, 613.43, 128.77, 609.19, 120.3, 601.32, 119.39, 602.83, 103.34]], "area": 718.4545999999993, "iscrowd": 0, "image_id": 192335, "bbox": [601.32, 103.34, 38.68, 29.37], "category_id": 2, "id": 1765085}, {"segmentation": [[247.65, 231.8, 252.71, 226.73, 253.06, 224.81, 257.95, 213.12, 259.52, 209.98, 260.22, 208.58, 313.99, 206.31, 321.32, 206.66, 322.37, 206.66, 331.62, 210.67, 337.03, 213.12, 337.9, 211.02, 330.22, 207.18, 327.6, 204.56, 324.99, 196.53, 324.81, 194.61, 346.11, 202.47, 354.66, 205.61, 350.3, 209.1, 353.09, 220.97, 360.6, 249.08, 350.3, 251.52, 345.06, 258.16, 343.31, 262.17, 358.5, 280.5, 363.22, 283.99, 369.33, 289.06, 372.12, 289.06, 377.36, 287.31, 379.28, 282.07, 372.29, 278.23, 368.45, 268.46, 375.61, 268.28, 388.0, 252.05, 407.38, 228.65, 410.52, 222.55, 423.27, 207.88, 435.66, 192.17, 435.84, 192.0, 436.53, 190.08, 434.44, 168.08, 434.44, 165.29, 440.03, 159.18, 433.04, 153.24, 431.12, 149.4, 424.31, 148.7, 423.27, 148.7, 421.17, 145.74, 421.17, 143.12, 412.44, 148.7, 405.11, 147.31, 403.19, 143.29, 404.24, 141.37, 409.13, 141.37, 415.24, 141.37, 426.41, 141.02, 437.93, 146.08, 442.47, 145.39, 457.66, 150.45, 460.8, 153.94, 464.64, 156.73, 491.7, 160.4, 500.0, 168.95, 500.0, 188.5, 497.11, 199.5, 493.79, 204.22, 488.38, 205.26, 474.76, 205.79, 474.76, 208.75, 499.2, 213.29, 500.0, 221.67, 500.0, 267.06, 500.0, 285.74, 485.94, 301.97, 469.35, 310.18, 443.69, 314.37, 429.2, 310.53, 418.73, 301.28, 413.49, 292.9, 406.51, 279.45, 405.98, 270.9, 408.43, 251.35, 418.38, 230.4, 422.57, 224.47, 428.5, 218.53, 433.22, 213.29, 440.03, 210.67, 442.82, 208.58, 441.77, 200.2, 429.2, 212.42, 419.95, 225.34, 397.61, 250.3, 384.16, 269.33, 383.12, 270.9, 385.73, 274.39, 385.56, 288.01, 383.81, 292.37, 379.1, 298.48, 372.64, 303.2, 361.99, 303.89, 357.8, 302.85, 342.97, 305.12, 335.81, 307.04, 323.24, 319.08, 295.83, 332.35, 267.9, 331.82, 246.08, 321.87, 234.56, 309.65, 227.75, 282.6, 232.46, 261.3, 233.51, 251.17, 232.29, 255.36, 225.83, 253.27, 226.35, 247.51, 226.7, 241.92, 229.85, 236.51, 231.42, 235.11, 232.99, 233.54, 237.35, 234.07, 242.07, 235.64]], "area": 26733.070000000007, "iscrowd": 0, "image_id": 450940, "bbox": [225.83, 141.02, 274.17, 191.33], "category_id": 2, "id": 1767184}, {"segmentation": [[6.45, 356.69, 11.81, 361.75, 13.0, 367.99, 11.51, 375.73, 8.54, 381.67, 7.05, 378.4, 5.27, 372.16, 5.27, 365.32, 5.27, 359.96]], "area": 130.6229500000001, "iscrowd": 0, "image_id": 201260, "bbox": [5.27, 356.69, 7.73, 24.98], "category_id": 2, "id": 1767540}, {"segmentation": [[127.77, 132.11, 130.06, 125.24, 136.64, 124.09, 143.51, 120.09, 148.09, 115.22, 150.67, 109.78, 148.09, 103.48, 134.92, 104.34, 123.76, 106.92, 108.87, 107.49, 111.16, 111.78, 120.32, 117.51, 123.47, 125.24, 121.18, 132.4, 108.01, 128.1, 89.69, 128.1, 78.24, 129.82, 75.95, 127.82, 71.37, 110.35, 81.39, 104.63, 86.54, 102.34, 89.69, 93.75, 79.67, 78.29, 77.95, 78.57, 77.95, 86.88, 79.38, 91.46, 78.52, 100.04, 72.51, 104.63, 65.35, 117.22, 68.22, 128.96, 75.09, 130.68, 89.98, 133.25, 112.31, 132.4, 124.9, 135.26, 128.91, 133.54]], "area": 1179.92555, "iscrowd": 0, "image_id": 277472, "bbox": [65.35, 78.29, 85.32, 56.97], "category_id": 2, "id": 1767545}, {"segmentation": [[15.18, 440.22, 40.7, 444.29, 55.28, 460.8, 64.07, 481.0, 0.0, 481.0, 0.6, 427.57, 0.6, 420.7, 0.6, 417.06, 0.0, 387.04, 19.9, 397.12, 12.61, 406.34, 10.68, 426.92, 11.75, 445.58]], "area": 2707.045399999998, "iscrowd": 0, "image_id": 404964, "bbox": [0.0, 387.04, 64.07, 93.96], "category_id": 2, "id": 1767597}, {"segmentation": [[130.01, 171.21, 119.15, 192.34, 201.26, 187.51, 210.32, 192.34, 217.57, 204.42, 221.19, 197.17, 212.74, 188.12, 222.4, 175.44, 216.96, 174.23, 209.11, 177.25, 134.84, 176.64, 131.83, 170.61], [12.27, 147.66, 48.5, 148.27, 65.41, 148.27, 66.61, 156.11, 59.37, 171.21, 50.91, 177.85, 46.69, 176.64, 58.16, 159.13, 2.01, 159.74, 1.4, 152.49]], "area": 2177.9288500000002, "iscrowd": 0, "image_id": 277472, "bbox": [1.4, 147.66, 221.0, 56.76], "category_id": 2, "id": 1767612}, {"segmentation": [[14.03, 350.47, 17.69, 351.9, 22.62, 355.24, 23.73, 362.24, 24.36, 369.87, 21.18, 375.12, 12.44, 380.84, 9.58, 380.84, 12.44, 373.37, 12.92, 365.1, 11.48, 361.92, 8.15, 357.63, 6.24, 355.24, 5.76, 353.17, 5.28, 349.04, 8.78, 348.88, 14.03, 349.2]], "area": 351.30015, "iscrowd": 0, "image_id": 201260, "bbox": [5.28, 348.88, 19.08, 31.96], "category_id": 2, "id": 1767740}, {"segmentation": [[329.83, 396.69, 313.91, 397.67, 306.11, 406.77, 302.53, 416.84, 301.56, 427.24, 303.51, 440.89, 309.36, 455.52, 320.73, 464.62, 326.26, 468.2, 339.91, 470.47, 350.31, 462.67, 352.58, 453.57, 353.56, 449.02, 371.76, 469.17, 374.03, 479.57, 375.33, 480.55, 418.56, 481.0, 420.84, 468.2, 420.84, 454.54, 417.59, 437.64, 414.01, 428.54, 402.63, 414.89, 394.83, 408.07, 392.56, 401.24, 392.56, 392.14, 386.71, 379.47, 368.51, 380.44, 366.23, 384.02, 370.78, 391.82, 370.78, 393.12, 368.51, 396.37, 360.71, 391.82, 353.88, 395.39, 353.88, 419.12, 357.13, 435.04, 356.16, 438.62, 347.06, 440.89, 335.68, 436.34, 333.08, 431.79, 337.63, 423.99, 338.93, 420.42, 342.18, 410.34, 338.93, 394.42, 338.93, 386.29, 342.18, 383.04, 342.18, 369.39, 337.96, 369.39, 332.11, 378.17, 326.58, 380.44, 328.53, 384.99, 333.08, 386.29, 332.11, 391.82]], "area": 7745.9321, "iscrowd": 0, "image_id": 404964, "bbox": [301.56, 369.39, 119.28, 111.61], "category_id": 2, "id": 1768933}, {"segmentation": [[18.68, 330.71, 23.22, 331.1, 27.5, 332.01, 34.76, 332.79, 36.06, 334.99, 35.28, 337.45, 30.22, 345.24, 28.15, 341.99, 21.92, 334.99, 12.84, 335.9, 9.6, 334.34, 9.6, 332.4, 10.51, 330.84, 13.88, 329.93]], "area": 171.80969999999988, "iscrowd": 0, "image_id": 201260, "bbox": [9.6, 329.93, 26.46, 15.31], "category_id": 2, "id": 1769027}, {"segmentation": [[100.75, 338.05, 104.21, 342.55, 105.6, 346.71, 103.87, 350.17, 101.79, 353.64, 98.67, 354.67, 95.73, 351.56, 93.65, 348.44, 93.3, 346.01, 92.09, 342.55, 88.97, 340.13, 83.43, 335.79, 83.43, 334.41, 84.47, 333.72, 86.55, 333.2, 90.36, 333.37, 91.05, 333.37, 92.26, 335.1, 92.61, 338.57, 93.65, 341.34, 95.21, 344.46, 96.07, 347.05, 99.19, 347.92, 100.23, 346.01, 99.36, 342.55, 99.02, 338.05, 99.02, 337.18]], "area": 161.94454999999994, "iscrowd": 0, "image_id": 201260, "bbox": [83.43, 333.2, 22.17, 21.47], "category_id": 2, "id": 1769249}, {"segmentation": [[592.74, 535.03, 592.74, 537.99, 585.91, 538.44, 585.69, 526.39, 590.69, 518.89, 595.01, 517.3, 605.7, 517.75, 609.56, 519.34, 611.61, 525.94, 612.52, 530.71, 613.2, 537.76, 607.52, 537.99, 607.29, 535.49]], "area": 458.98904999999974, "iscrowd": 0, "image_id": 181149, "bbox": [585.69, 517.3, 27.51, 21.14], "category_id": 3, "id": 1770316}, {"segmentation": [[239.74, 35.65, 258.94, 35.4, 272.34, 35.65, 276.63, 41.72, 279.41, 46.26, 279.16, 50.81, 275.62, 51.32, 268.29, 51.07, 261.22, 51.32, 253.89, 50.31, 245.04, 50.81, 239.23, 51.57], [226.6, 40.96, 222.3, 47.28, 222.05, 52.08, 225.33, 52.84, 229.38, 52.58, 229.63, 41.46], [234.94, 35.9, 235.69, 52.08, 238.22, 51.82, 237.46, 34.89]], "area": 691.4265500000002, "iscrowd": 0, "image_id": 382979, "bbox": [222.05, 34.89, 57.36, 17.95], "category_id": 3, "id": 1770726}, {"segmentation": [[170.61, 430.67, 169.03, 427.25, 170.61, 413.83, 179.03, 410.14, 184.29, 406.46, 176.66, 404.09, 150.87, 402.51, 145.34, 404.09, 137.45, 409.62, 132.71, 412.51, 131.92, 415.93, 132.45, 422.78, 135.61, 424.88, 137.71, 431.72, 147.45, 431.99, 150.08, 438.3, 157.71, 436.46, 168.24, 436.72, 171.13, 436.46]], "area": 1176.379400000001, "iscrowd": 0, "image_id": 567318, "bbox": [131.92, 402.51, 52.37, 35.79], "category_id": 3, "id": 1771203}, {"segmentation": [[509.37, 304.47, 511.33, 301.96, 520.64, 302.61, 524.74, 302.98, 526.23, 307.36, 525.48, 311.36, 523.53, 316.21, 522.97, 317.98, 521.11, 318.26, 514.03, 307.45, 508.63, 304.66]], "area": 150.77190000000013, "iscrowd": 0, "image_id": 47387, "bbox": [508.63, 301.96, 17.6, 16.3], "category_id": 3, "id": 1771229}, {"segmentation": [[293.32, 551.3, 293.32, 540.16, 308.4, 536.88, 319.54, 536.88, 329.37, 537.54, 340.52, 538.19, 351.0, 541.47, 364.77, 546.06, 368.7, 540.16, 368.7, 525.74, 366.08, 498.87, 362.8, 483.79, 350.35, 476.58, 341.17, 470.68, 330.03, 468.71, 291.02, 471.68, 287.56, 478.6, 283.66, 486.38, 276.74, 500.22, 271.99, 508.0, 270.69, 519.68, 271.99, 530.06, 276.74, 534.82, 276.74, 538.28, 283.66, 544.33, 284.1, 549.52]], "area": 6075.274099999999, "iscrowd": 0, "image_id": 116740, "bbox": [270.69, 468.71, 98.01, 82.59], "category_id": 3, "id": 1771348}, {"segmentation": [[384.33, 123.97, 413.89, 122.26, 411.44, 114.45, 397.03, 113.47, 389.46, 117.13, 385.8, 119.82]], "area": 221.5209000000001, "iscrowd": 0, "image_id": 172059, "bbox": [384.33, 113.47, 29.56, 10.5], "category_id": 3, "id": 1771403}, {"segmentation": [[574.2, 254.97, 594.31, 255.4, 599.45, 259.89, 601.59, 265.67, 602.02, 273.8, 602.45, 282.15, 602.02, 289.42, 583.4, 288.35, 583.4, 274.66]], "area": 684.294100000001, "iscrowd": 0, "image_id": 357428, "bbox": [574.2, 254.97, 28.25, 34.45], "category_id": 3, "id": 1772109}, {"segmentation": [[196.24, 415.49, 196.44, 420.82, 207.1, 423.49, 212.85, 416.93, 210.59, 412.01]], "area": 125.99609999999998, "iscrowd": 0, "image_id": 14027, "bbox": [196.24, 412.01, 16.61, 11.48], "category_id": 3, "id": 1773364}, {"segmentation": [[172.13, 411.51, 169.84, 422.64, 171.27, 426.63, 180.97, 424.64, 181.54, 426.35, 181.54, 426.35, 185.53, 426.06, 185.53, 419.79, 177.26, 411.51]], "area": 175.40409999999994, "iscrowd": 0, "image_id": 14027, "bbox": [169.84, 411.51, 15.69, 15.12], "category_id": 3, "id": 1774746}, {"segmentation": [[272.66, 208.76, 285.35, 200.62, 293.48, 193.88, 296.26, 191.9, 310.93, 180.4, 318.86, 179.01, 324.22, 178.22, 334.13, 178.22, 341.07, 178.81, 342.07, 180.99, 361.7, 185.75, 370.62, 226.8, 370.62, 234.73, 321.24, 238.3, 294.47, 239.89, 289.32, 242.27, 288.13, 266.66, 239.14, 266.07, 237.76, 260.51, 238.35, 254.17, 238.95, 249.01, 239.54, 227.59, 240.33, 225.22, 244.7, 222.84, 260.56, 212.92], [263.93, 178.61, 300.22, 179.21, 291.7, 185.55, 271.47, 197.06, 251.44, 209.75, 240.14, 220.46, 238.15, 217.68, 238.75, 203.8, 242.71, 199.24, 251.44, 194.68, 255.6, 188.13, 257.39, 182.38, 258.78, 180.4]], "area": 7877.31025, "iscrowd": 0, "image_id": 35322, "bbox": [237.76, 178.22, 132.86, 88.44], "category_id": 3, "id": 1774817}, {"segmentation": [[308.12, 439.27, 293.64, 439.88, 289.42, 424.19, 291.23, 417.56, 308.72, 419.37, 309.92, 440.48], [287.92, 436.6, 281.15, 436.6, 280.36, 425.86, 281.95, 425.86, 287.52, 435.81], [277.17, 435.41, 271.2, 442.18, 259.66, 439.39, 260.06, 416.31, 279.16, 410.74], [318.16, 386.07, 327.71, 385.67, 330.1, 402.78, 317.76, 399.2, 316.57, 386.07]], "area": 1081.52695, "iscrowd": 0, "image_id": 567318, "bbox": [259.66, 385.67, 70.44, 56.51], "category_id": 3, "id": 1776297}, {"segmentation": [[117.82, 422.32, 109.83, 421.69, 108.94, 422.95, 104.13, 420.67, 104.51, 416.87, 109.2, 413.83, 119.34, 413.83, 119.72, 418.9, 118.07, 421.94]], "area": 114.2373500000001, "iscrowd": 0, "image_id": 379743, "bbox": [104.13, 413.83, 15.59, 9.12], "category_id": 3, "id": 1776462}, {"segmentation": [[122.22, 486.78, 135.64, 485.73, 141.17, 488.62, 145.64, 492.05, 146.69, 495.73, 146.17, 497.57, 143.27, 502.57, 142.75, 510.2, 144.59, 518.89, 144.59, 519.68, 137.48, 521.52, 137.48, 513.1, 134.59, 509.68, 128.27, 506.26, 125.64, 502.05, 124.59, 497.31]], "area": 501.50839999999954, "iscrowd": 0, "image_id": 453332, "bbox": [122.22, 485.73, 24.47, 35.79], "category_id": 3, "id": 1776476}, {"segmentation": [[393.7, 472.65, 381.47, 472.65, 376.38, 472.09, 376.76, 466.82, 379.77, 466.07, 380.34, 462.3, 390.69, 462.87, 393.89, 467.01, 394.08, 471.71]], "area": 152.58224999999956, "iscrowd": 0, "image_id": 116740, "bbox": [376.38, 462.3, 17.7, 10.35], "category_id": 3, "id": 1776487}, {"segmentation": [[13.15, 237.25, 13.15, 236.53, 12.55, 232.83, 11.95, 229.96, 12.19, 228.29, 14.58, 225.78, 17.33, 221.59, 19.48, 218.96, 22.35, 217.77, 27.49, 216.69, 29.05, 216.45, 35.14, 216.09, 41.36, 216.09, 44.35, 216.21, 46.98, 219.08, 47.58, 220.52, 43.63, 220.87, 37.53, 220.87, 30.0, 220.64, 27.01, 221.35, 22.71, 221.35, 21.28, 223.86, 19.72, 229.48, 19.84, 232.71, 19.12, 234.74, 19.12, 235.94, 19.36, 236.89]], "area": 222.3219499999999, "iscrowd": 0, "image_id": 298658, "bbox": [11.95, 216.09, 35.63, 21.16], "category_id": 3, "id": 1776626}, {"segmentation": [[6.71, 239.85, 92.93, 237.47, 96.74, 187.45, 76.74, 143.62, 69.59, 138.86, 34.82, 138.38, 33.39, 171.25, 0.0, 170.3]], "area": 7698.84495, "iscrowd": 0, "image_id": 456433, "bbox": [0.0, 138.38, 96.74, 101.47], "category_id": 3, "id": 1777026}, {"segmentation": [[260.97, 216.06, 253.18, 231.35, 254.34, 237.99, 254.34, 244.33, 257.51, 250.97, 261.84, 251.55, 297.04, 252.7, 297.33, 246.64, 295.88, 236.54, 296.17, 221.83, 290.11, 217.5]], "area": 1417.7848999999999, "iscrowd": 0, "image_id": 198001, "bbox": [253.18, 216.06, 44.15, 36.64], "category_id": 3, "id": 1777368}, {"segmentation": [[69.57, 429.51, 72.66, 426.16, 75.24, 420.49, 71.89, 415.34, 52.05, 414.05, 47.15, 418.69, 39.42, 419.2, 35.81, 425.64, 35.55, 427.45]], "area": 449.01845, "iscrowd": 0, "image_id": 379743, "bbox": [35.55, 414.05, 39.69, 15.46], "category_id": 3, "id": 1777446}, {"segmentation": [[222.17, 316.53, 221.73, 310.39, 224.22, 307.32, 236.8, 308.05, 237.67, 312.29, 237.67, 317.41, 234.75, 317.41, 233.73, 315.95, 225.54, 315.95, 224.37, 317.11, 221.59, 316.53]], "area": 133.34185, "iscrowd": 0, "image_id": 536781, "bbox": [221.59, 307.32, 16.08, 10.09], "category_id": 3, "id": 1777624}, {"segmentation": [[397.46, 504.57, 405.0, 510.09, 404.83, 529.73, 399.92, 530.14, 399.51, 530.14, 399.31, 530.34, 397.87, 532.59, 394.6, 532.39, 394.4, 532.39]], "area": 214.98385000000061, "iscrowd": 0, "image_id": 453332, "bbox": [394.4, 504.57, 10.6, 28.02], "category_id": 3, "id": 1777940}, {"segmentation": [[21.88, 64.96, 36.6, 65.95, 40.56, 67.93, 42.55, 88.6, 38.08, 89.76, 37.59, 87.11, 34.28, 86.62, 31.8, 90.25, 29.16, 90.75, 25.02, 86.95, 15.76, 83.97, 16.42, 66.61]], "area": 553.7234500000001, "iscrowd": 0, "image_id": 522150, "bbox": [15.76, 64.96, 26.79, 25.79], "category_id": 3, "id": 1778622}, {"segmentation": [[80.06, 203.66, 83.49, 201.3, 98.04, 201.73, 99.75, 208.37, 97.61, 210.08, 92.9, 210.08, 79.42, 210.29, 79.21, 206.01, 79.85, 204.3]], "area": 162.90345000000016, "iscrowd": 0, "image_id": 409374, "bbox": [79.21, 201.3, 20.54, 8.99], "category_id": 3, "id": 1779364}, {"segmentation": [[639.24, 339.03, 609.81, 341.48, 602.94, 351.78, 579.89, 353.74, 569.59, 345.89, 564.69, 325.29, 555.37, 318.43, 547.52, 301.26, 547.03, 287.04, 552.92, 270.36, 561.74, 259.08, 574.5, 255.16, 587.25, 257.61, 607.85, 254.67, 608.83, 251.72, 600.49, 250.25, 598.53, 243.39, 599.51, 237.99, 612.26, 233.09, 640.0, 207.58]], "area": 8732.64955, "iscrowd": 0, "image_id": 530876, "bbox": [547.03, 207.58, 92.97, 146.16], "category_id": 3, "id": 1779411}, {"segmentation": [[116.57, 78.59, 119.86, 98.33, 140.07, 98.8, 140.07, 111.02, 141.48, 115.25, 143.36, 119.95, 145.71, 123.71, 152.76, 127.0, 160.28, 127.0, 175.31, 123.71, 176.25, 119.48, 176.72, 114.31, 177.66, 111.02, 177.66, 107.73, 178.13, 105.38, 183.3, 104.44, 180.95, 92.69, 182.83, 87.99, 190.35, 91.75, 181.89, 58.86, 144.77, 59.33, 141.95, 62.15, 145.71, 67.31, 144.77, 71.54, 138.66, 75.77, 125.97, 76.71]], "area": 3183.1879, "iscrowd": 0, "image_id": 322725, "bbox": [116.57, 58.86, 73.78, 68.14], "category_id": 3, "id": 1779800}, {"segmentation": [[50.38, 279.31, 54.26, 275.91, 56.93, 272.76, 56.93, 265.24, 55.96, 262.57, 46.01, 261.6, 38.97, 257.47, 38.97, 273.0, 43.1, 274.21, 46.74, 274.7, 48.19, 276.64], [32.68, 252.98, 32.54, 269.65, 29.97, 269.11, 28.34, 270.87, 26.72, 276.02, 26.58, 279.82, 20.35, 280.09, 21.03, 284.56, 20.75, 285.37, 16.28, 284.56, 14.11, 286.73, 12.08, 287.95, 8.56, 288.9, 6.12, 288.76, 4.36, 286.19, 4.49, 282.66, 3.95, 280.36, 0.0, 279.95, 0.0, 254.07, 8.56, 253.66]], "area": 1180.4159999999997, "iscrowd": 0, "image_id": 149878, "bbox": [0.0, 252.98, 56.93, 35.92], "category_id": 3, "id": 1779898}, {"segmentation": [[15.96, 94.56, 42.79, 96.55, 120.28, 147.22, 108.36, 167.09, 77.56, 176.03, 15.96, 179.01, 15.96, 102.51]], "area": 6083.958299999999, "iscrowd": 0, "image_id": 322725, "bbox": [15.96, 94.56, 104.32, 84.45], "category_id": 3, "id": 1780349}, {"segmentation": [[610.65, 131.05, 608.23, 131.16, 605.34, 130.7, 601.52, 129.08, 597.13, 131.16, 593.55, 132.55, 591.7, 130.93, 592.97, 119.38, 594.36, 116.49, 598.87, 114.29, 604.64, 114.52, 609.15, 117.06, 610.42, 120.53, 611.46, 127.7]], "area": 278.05764999999934, "iscrowd": 0, "image_id": 501358, "bbox": [591.7, 114.29, 19.76, 18.26], "category_id": 3, "id": 1780475}, {"segmentation": [[3.02, 94.34, 0.0, 140.65, 51.05, 222.66, 31.32, 249.65, 9.52, 329.59, 3.29, 393.96, 4.33, 450.01, 4.33, 471.82, 0.0, 534.1, 0.0, 554.87, 4.33, 556.94, 13.67, 557.98, 20.94, 561.1, 20.94, 578.74, 25.09, 589.13, 25.09, 589.13, 39.63, 597.43, 47.93, 598.47, 87.38, 592.24, 90.5, 572.52, 108.15, 568.36, 363.53, 565.25, 383.25, 594.32, 414.4, 599.51, 424.78, 581.86, 436.2, 563.17, 456.96, 555.91, 464.23, 549.68, 463.19, 523.72, 464.23, 499.85, 468.38, 485.31, 462.15, 475.97, 456.96, 459.36, 453.85, 434.44, 450.73, 348.28, 435.16, 266.26, 414.4, 216.43, 480.0, 107.43, 480.0, 92.89, 301.24, 66.94, 176.66, 71.09, 55.2, 83.55]], "area": 217999.25185, "iscrowd": 0, "image_id": 314126, "bbox": [0.0, 66.94, 480.0, 532.57], "category_id": 3, "id": 1780669}, {"segmentation": [[28.74, 627.28, 31.36, 584.67, 37.92, 580.08, 49.72, 582.71, 49.72, 619.41, 39.23, 638.42]], "area": 967.4193499999989, "iscrowd": 0, "image_id": 237514, "bbox": [28.74, 580.08, 20.98, 58.34], "category_id": 3, "id": 1780851}, {"segmentation": [[402.95, 258.01, 403.6, 245.36, 407.17, 242.77, 406.2, 240.82, 408.47, 240.17, 411.06, 234.98, 429.22, 233.69, 430.2, 245.04, 422.09, 249.9, 421.11, 257.36, 417.87, 257.36, 417.22, 255.09, 409.11, 254.77, 408.47, 258.01]], "area": 460.0085, "iscrowd": 0, "image_id": 564803, "bbox": [402.95, 233.69, 27.25, 24.32], "category_id": 3, "id": 1781044}, {"segmentation": [[226.17, 307.28, 214.61, 307.47, 206.84, 308.04, 204.76, 307.66, 202.3, 302.73, 208.36, 301.22, 210.25, 293.45, 227.12, 294.21, 226.17, 304.63]], "area": 271.22430000000026, "iscrowd": 0, "image_id": 217636, "bbox": [202.3, 293.45, 24.82, 14.59], "category_id": 3, "id": 1781350}, {"segmentation": [[235.31, 276.39, 239.2, 277.36, 239.2, 273.15, 235.31, 269.58]], "area": 21.4339, "iscrowd": 0, "image_id": 328487, "bbox": [235.31, 269.58, 3.89, 7.78], "category_id": 3, "id": 1781550}, {"segmentation": [[70.4, 75.75, 69.38, 67.3, 69.38, 66.67, 66.33, 66.28, 63.83, 65.66, 63.05, 63.39, 63.52, 63.15, 74.0, 63.15, 74.62, 63.39, 73.84, 78.25, 73.84, 79.19, 72.12, 79.34, 71.34, 78.17, 71.02, 76.68]], "area": 85.21605000000008, "iscrowd": 0, "image_id": 522150, "bbox": [63.05, 63.15, 11.57, 16.19], "category_id": 3, "id": 1781657}, {"segmentation": [[204.81, 553.0, 225.44, 537.69, 290.03, 537.69, 303.48, 552.94, 256.84, 553.0, 206.61, 553.0]], "area": 1248.7595999999962, "iscrowd": 0, "image_id": 181149, "bbox": [204.81, 537.69, 98.67, 15.31], "category_id": 3, "id": 1781970}, {"segmentation": [[612.48, 533.06, 622.73, 533.92, 622.92, 535.06, 628.81, 534.87, 628.81, 532.3, 629.09, 530.78, 629.19, 527.46, 628.9, 525.18, 628.05, 523.76, 624.82, 518.73, 622.92, 518.06, 618.17, 518.06, 610.1, 518.06, 609.43, 519.69, 608.09, 522.45, 610.27, 524.8, 611.27, 527.99, 612.19, 530.92]], "area": 277.37244999999996, "iscrowd": 0, "image_id": 181149, "bbox": [608.09, 518.06, 21.1, 17.0], "category_id": 3, "id": 1782393}, {"segmentation": [[480.64, 552.58, 485.39, 543.72, 492.35, 539.61, 493.3, 538.98, 511.39, 537.36, 511.94, 532.54, 513.59, 531.3, 531.63, 530.61, 534.25, 536.12, 534.8, 537.64, 550.91, 538.05, 553.94, 539.01, 557.11, 542.04, 560.83, 547.28, 564.13, 552.24, 564.41, 552.37, 564.55, 552.92]], "area": 1234.455050000001, "iscrowd": 0, "image_id": 181149, "bbox": [480.64, 530.61, 83.91, 22.31], "category_id": 3, "id": 1782528}, {"segmentation": [[91.08, 404.81, 101.8, 410.45, 108.57, 416.8, 109.7, 422.01, 112.09, 426.67, 113.22, 429.35, 115.06, 428.5, 116.75, 425.12, 118.72, 423.0, 120.56, 419.33, 120.41, 410.31, 113.5, 404.81]], "area": 308.3562999999999, "iscrowd": 0, "image_id": 567318, "bbox": [91.08, 404.81, 29.48, 24.54], "category_id": 3, "id": 1782981}, {"segmentation": [[113.8, 150.56, 100.71, 163.65, 88.62, 173.72, 97.69, 186.81, 112.79, 191.85, 170.2, 189.83, 168.18, 169.69, 168.18, 163.65, 150.05, 149.55, 132.93, 149.55, 129.91, 150.56, 119.84, 154.59], [50.35, 117.32, 29.21, 122.36, 35.25, 151.56, 39.28, 156.6, 49.35, 140.49]], "area": 3219.90265, "iscrowd": 0, "image_id": 192335, "bbox": [29.21, 117.32, 140.99, 74.53], "category_id": 3, "id": 1783181}, {"segmentation": [[282.81, 374.86, 284.65, 369.87, 286.48, 365.67, 292.79, 364.88, 298.04, 366.98, 299.35, 370.92, 300.14, 371.97, 301.72, 374.6, 300.93, 376.17, 289.37, 376.7]], "area": 162.51475000000008, "iscrowd": 0, "image_id": 309536, "bbox": [282.81, 364.88, 18.91, 11.82], "category_id": 3, "id": 1783443}, {"segmentation": [[344.01, 288.27, 342.37, 278.46, 344.66, 264.08, 353.49, 245.78, 390.09, 248.06, 394.34, 255.25, 397.94, 253.29, 400.23, 255.91, 396.63, 260.16, 400.88, 266.7, 400.88, 278.14, 394.02, 283.37, 384.21, 284.02, 382.25, 282.06, 368.52, 279.77, 363.29, 284.35, 357.08, 286.96]], "area": 1925.5831499999986, "iscrowd": 0, "image_id": 198001, "bbox": [342.37, 245.78, 58.51, 42.49], "category_id": 3, "id": 1783698}, {"segmentation": [[537.6, 195.21, 548.99, 183.59, 587.81, 183.23, 590.92, 185.51, 593.32, 187.06, 597.51, 190.06, 598.83, 192.34, 600.51, 195.69, 601.23, 202.64, 601.23, 203.36, 599.67, 201.08, 596.08, 197.73, 589.25, 200.6, 588.17, 203.6, 588.41, 208.15, 588.77, 215.58, 587.33, 218.22, 577.74, 217.02, 571.27, 217.26, 568.16, 217.26, 564.68, 215.59, 560.61, 214.99, 553.54, 215.23, 549.11, 216.55, 544.79, 216.19, 544.67, 215.95, 544.19, 215.47, 543.47, 196.54]], "area": 1623.4927499999992, "iscrowd": 0, "image_id": 20769, "bbox": [537.6, 183.23, 63.63, 34.99], "category_id": 3, "id": 1784279}, {"segmentation": [[409.55, 471.96, 406.93, 471.86, 406.35, 471.37, 406.35, 467.78, 406.45, 466.72, 406.74, 465.17, 410.52, 460.9, 413.92, 460.51, 420.03, 461.96, 420.61, 464.0, 421.48, 466.43, 421.58, 469.43, 421.58, 470.02, 421.58, 471.28, 421.38, 472.25, 419.44, 472.73, 415.95, 471.66, 413.33, 471.66, 413.14, 471.66, 412.56, 471.66, 412.56, 471.66, 411.59, 471.86]], "area": 151.39340000000024, "iscrowd": 0, "image_id": 116740, "bbox": [406.35, 460.51, 15.23, 12.22], "category_id": 3, "id": 1784412}, {"segmentation": [[103.97, 284.41, 103.63, 290.85, 95.15, 293.74, 94.13, 290.34, 96.17, 286.44, 101.94, 284.07, 103.97, 283.39]], "area": 64.12775000000019, "iscrowd": 0, "image_id": 48756, "bbox": [94.13, 283.39, 9.84, 10.35], "category_id": 3, "id": 1785176}, {"segmentation": [[135.59, 98.09, 144.31, 97.64, 150.34, 106.58, 151.01, 107.48, 151.91, 111.28, 152.13, 117.09, 152.13, 122.68, 152.13, 124.25, 151.01, 125.37, 148.78, 128.5, 144.98, 129.61, 140.95, 131.63, 138.49, 131.63, 136.48, 128.27, 129.1, 128.27, 122.84, 122.24, 123.06, 114.19, 128.21, 105.24], [102.63, 99.7, 96.9, 104.44, 91.58, 110.16, 89.8, 112.72, 89.6, 115.29, 92.96, 118.25, 97.3, 120.62, 103.62, 126.74, 107.17, 133.45, 109.54, 137.4, 109.54, 131.67, 108.55, 116.08, 107.37, 111.15, 105.0, 106.01]], "area": 1090.1749, "iscrowd": 0, "image_id": 530876, "bbox": [89.6, 97.64, 62.53, 39.76], "category_id": 3, "id": 1785240}, {"segmentation": [[250.6, 173.88, 266.47, 148.09, 272.42, 146.11, 349.12, 138.83, 418.54, 148.75, 438.37, 163.3, 448.95, 189.74, 452.26, 209.58, 470.11, 216.19, 499.86, 142.14, 499.2, 281.0, 440.36, 281.0, 419.86, 271.07, 394.74, 263.14, 362.34, 261.81, 260.52, 232.72, 245.97, 218.18, 245.97, 199.0]], "area": 26047.848199999997, "iscrowd": 0, "image_id": 172059, "bbox": [245.97, 138.83, 253.89, 142.17], "category_id": 3, "id": 1785532}, {"segmentation": [[100.78, 553.0, 112.67, 546.9, 160.53, 543.12, 202.43, 545.82, 217.84, 547.98, 210.27, 553.0, 204.87, 553.0]], "area": 851.073199999999, "iscrowd": 0, "image_id": 181149, "bbox": [100.78, 543.12, 117.06, 9.88], "category_id": 3, "id": 1786420}, {"segmentation": [[245.94, 365.88, 246.09, 368.15, 247.36, 368.86, 247.51, 371.7, 248.93, 372.7, 248.93, 374.12, 248.64, 374.69, 247.36, 375.11, 245.94, 374.4, 245.8, 372.7, 239.55, 372.98, 238.42, 376.11, 236.71, 375.54, 237.28, 372.84, 237.28, 368.86, 240.26, 365.74, 245.52, 365.74]], "area": 76.65065000000001, "iscrowd": 0, "image_id": 309536, "bbox": [236.71, 365.74, 12.22, 10.37], "category_id": 3, "id": 1786473}, {"segmentation": [[576.85, 512.32, 576.66, 516.61, 576.47, 517.18, 575.23, 518.13, 572.18, 517.08, 569.7, 516.61, 568.65, 516.04, 571.61, 516.32, 570.75, 514.13, 569.79, 513.75, 569.79, 513.27]], "area": 28.71309999999999, "iscrowd": 0, "image_id": 181149, "bbox": [568.65, 512.32, 8.2, 5.81], "category_id": 3, "id": 1787649}, {"segmentation": [[351.4, 472.49, 348.1, 465.6, 337.92, 466.5, 337.92, 470.69, 345.11, 472.49, 351.1, 472.19]], "area": 69.51319999999978, "iscrowd": 0, "image_id": 116740, "bbox": [337.92, 465.6, 13.48, 6.89], "category_id": 3, "id": 1787852}, {"segmentation": [[191.99, 324.96, 193.81, 326.24, 193.99, 324.06, 195.44, 311.16, 189.99, 300.99, 174.92, 301.72, 172.74, 304.26, 175.1, 304.62, 181.09, 305.89, 186.54, 307.89, 188.54, 311.16, 191.99, 312.43, 192.53, 317.52, 191.63, 322.79, 191.63, 323.88]], "area": 154.59399999999962, "iscrowd": 0, "image_id": 482024, "bbox": [172.74, 300.99, 22.7, 25.25], "category_id": 3, "id": 1788025}, {"segmentation": [[370.03, 473.4, 375.62, 471.68, 376.63, 468.93, 376.73, 466.19, 374.81, 465.38, 368.81, 466.09, 366.17, 466.6, 364.96, 468.53, 364.45, 471.68, 365.26, 473.0]], "area": 77.6468500000001, "iscrowd": 0, "image_id": 116740, "bbox": [364.45, 465.38, 12.28, 8.02], "category_id": 3, "id": 1788179}, {"segmentation": [[133.34, 298.34, 146.07, 298.54, 146.58, 299.97, 147.5, 306.39, 147.19, 312.4, 146.17, 313.82, 143.52, 313.82, 142.1, 311.68, 133.54, 311.99, 133.54, 313.72, 133.03, 314.03, 130.79, 313.93, 129.77, 312.5, 129.98, 310.56, 129.98, 307.92, 130.28, 303.74, 131.1, 300.99, 131.81, 298.95]], "area": 237.4890000000001, "iscrowd": 0, "image_id": 482024, "bbox": [129.77, 298.34, 17.73, 15.69], "category_id": 3, "id": 1788375}, {"segmentation": [[417.98, 472.8, 416.94, 466.27, 420.13, 461.97, 427.0, 462.23, 427.0, 473.15]], "area": 99.38109999999973, "iscrowd": 0, "image_id": 116740, "bbox": [416.94, 461.97, 10.06, 11.18], "category_id": 3, "id": 1788761}, {"segmentation": [[90.89, 307.88, 92.95, 299.47, 111.4, 300.36, 113.31, 305.22, 118.03, 304.78, 117.0, 307.44, 115.08, 307.44, 117.0, 311.42, 115.97, 315.55, 100.04, 315.11, 97.82, 309.65, 90.74, 308.62]], "area": 316.5596999999997, "iscrowd": 0, "image_id": 482024, "bbox": [90.74, 299.47, 27.29, 16.08], "category_id": 3, "id": 1789270}, {"segmentation": [[209.13, 314.15, 208.84, 317.95, 207.18, 318.73, 206.02, 320.09, 205.72, 320.97, 204.17, 321.36, 204.17, 322.62, 204.17, 322.91, 204.07, 323.21, 201.44, 323.3, 201.15, 323.21, 201.15, 320.87, 197.64, 320.19, 197.94, 323.21, 196.28, 323.11, 196.48, 318.92, 195.89, 315.22, 197.35, 312.89, 200.18, 312.3, 201.44, 307.83, 205.24, 306.76, 214.87, 306.17, 208.99, 311.16, 209.12, 313.84]], "area": 167.01430000000025, "iscrowd": 0, "image_id": 482024, "bbox": [195.89, 306.17, 18.98, 17.13], "category_id": 3, "id": 1789433}, {"segmentation": [[209.29, 304.8, 206.24, 300.4, 193.02, 300.74, 193.36, 307.51, 196.07, 302.77, 199.46, 305.14, 200.48, 307.85]], "area": 75.62210000000007, "iscrowd": 0, "image_id": 482024, "bbox": [193.02, 300.4, 16.27, 7.45], "category_id": 3, "id": 1789472}, {"segmentation": [[640.0, 48.85, 632.05, 57.19, 617.93, 76.44, 605.74, 96.33, 598.04, 116.22, 599.32, 128.41, 606.38, 138.68, 616.65, 147.02, 635.26, 148.95, 639.11, 148.3, 640.0, 147.02]], "area": 2787.797450000002, "iscrowd": 0, "image_id": 285022, "bbox": [598.04, 48.85, 41.96, 100.1], "category_id": 4, "id": 1791938}, {"segmentation": [[321.43, 197.8, 318.44, 197.09, 316.87, 197.8, 316.44, 200.37, 317.87, 202.79, 319.43, 200.94, 321.43, 198.52]], "area": 16.673049999999986, "iscrowd": 0, "image_id": 413895, "bbox": [316.44, 197.09, 4.99, 5.7], "category_id": 4, "id": 1792024}, {"segmentation": [[300.46, 201.88, 287.18, 188.13, 281.49, 190.03, 289.08, 208.52, 285.76, 211.37, 288.61, 212.79, 292.87, 210.89, 302.83, 224.17, 309.47, 219.9, 302.36, 206.62, 321.33, 196.19, 359.74, 228.91, 366.38, 221.8, 343.61, 182.44, 356.42, 173.43, 358.31, 178.17, 366.85, 177.7, 366.85, 175.8, 362.11, 169.16, 360.69, 168.69, 361.16, 163.95, 359.26, 161.1, 356.89, 157.78, 354.05, 153.04, 349.3, 160.63, 355.47, 165.84, 336.98, 173.9, 306.63, 136.44, 297.62, 142.61, 316.11, 188.13]], "area": 2844.74235, "iscrowd": 0, "image_id": 480115, "bbox": [281.49, 136.44, 85.36, 92.47], "category_id": 5, "id": 1793124}, {"segmentation": [[415.55, 156.21, 449.23, 161.17, 452.95, 170.26, 452.53, 200.22, 452.74, 226.88, 431.21, 228.02, 427.74, 198.82, 420.32, 175.56, 416.36, 160.71]], "area": 1892.4991999999993, "iscrowd": 0, "image_id": 20769, "bbox": [415.55, 156.21, 37.4, 71.81], "category_id": 6, "id": 1794180}, {"segmentation": [[356.97, 198.03, 352.62, 208.19, 348.26, 208.91, 333.04, 210.36, 327.24, 209.64, 318.53, 198.76, 314.18, 195.13, 294.6, 195.86, 289.53, 192.23, 287.35, 178.46, 291.7, 174.83, 294.6, 173.38, 294.6, 171.2, 295.33, 135.67, 302.58, 113.19, 312.01, 101.59, 332.31, 92.17, 334.49, 80.56, 345.36, 80.56, 348.99, 86.36, 351.16, 89.26, 379.44, 87.09, 387.42, 85.64, 393.22, 85.64, 402.65, 90.71, 440.36, 137.85, 453.41, 171.93, 444.71, 178.46, 443.26, 181.36, 439.63, 182.81, 436.01, 182.81, 433.1, 186.43, 424.4, 192.96, 362.04, 191.51], [416.43, 88.54, 452.68, 88.54, 457.76, 173.38, 454.86, 169.75, 442.53, 135.67], [512.87, 98.69, 521.57, 98.69, 546.23, 134.95, 557.83, 177.01, 561.45, 179.18, 557.83, 200.21, 521.57, 202.39, 519.4, 210.36, 517.22, 211.09, 507.07, 213.26, 507.79, 202.39, 504.17, 166.13, 507.07, 107.39], [462.84, 142.92, 472.26, 114.64, 473.71, 118.27, 470.81, 174.83, 468.64, 182.81, 462.84, 174.83], [486.76, 122.62, 496.92, 95.79, 499.09, 95.79, 494.74, 141.47], [486.04, 127.7, 491.84, 147.28, 491.12, 173.38, 481.69, 170.48]], "area": 21476.208150000006, "iscrowd": 0, "image_id": 448843, "bbox": [287.35, 80.56, 274.1, 132.7], "category_id": 6, "id": 1794198}, {"segmentation": [[14.22, 167.11, 29.63, 248.89, 27.26, 267.85, 0.0, 269.04, 1.19, 165.93]], "area": 2296.3048500000004, "iscrowd": 0, "image_id": 165347, "bbox": [0.0, 165.93, 29.63, 103.11], "category_id": 6, "id": 1794396}, {"segmentation": [[447.47, 228.79, 471.06, 238.4, 469.75, 257.62, 457.95, 263.73, 454.9, 275.53, 448.34, 276.4]], "area": 742.8115999999998, "iscrowd": 0, "image_id": 241076, "bbox": [447.47, 228.79, 23.59, 47.61], "category_id": 6, "id": 1795104}, {"segmentation": [[254.89, 433.23, 251.48, 438.69, 249.17, 440.05, 243.3, 440.05, 239.48, 435.28, 220.93, 432.82, 217.12, 437.05, 214.39, 437.32, 207.57, 439.23, 203.89, 436.91, 201.3, 433.09, 188.48, 433.23, 181.11, 432.55, 178.79, 436.23, 175.52, 437.32, 170.34, 436.5, 167.61, 433.5, 166.79, 429.14, 166.79, 427.09, 169.38, 420.55, 169.25, 414.14, 170.88, 411.55, 173.47, 408.68, 176.61, 407.18, 181.11, 405.41, 191.75, 397.22, 198.16, 395.86, 229.12, 396.13, 235.8, 409.23, 245.62, 409.64, 260.49, 409.64, 262.4, 410.18, 262.94, 413.86, 261.3, 417.82, 259.67, 426.96, 259.26, 431.32, 258.17, 433.64]], "area": 3043.0966999999996, "iscrowd": 0, "image_id": 567318, "bbox": [166.79, 395.86, 96.15, 44.19], "category_id": 8, "id": 1796317}, {"segmentation": [[429.59, 196.32, 440.81, 174.46, 454.82, 167.73, 458.75, 167.73, 458.19, 160.44, 465.47, 157.64, 471.64, 157.64, 473.32, 160.44, 473.32, 163.25, 481.17, 166.61, 491.82, 165.49, 499.11, 157.64, 504.16, 158.2, 506.96, 161.57, 507.52, 167.17, 523.22, 169.41, 524.9, 171.1, 524.9, 172.78, 525.46, 177.82, 538.92, 178.95, 544.52, 178.95, 555.17, 182.31, 564.71, 188.48, 588.25, 209.22, 595.54, 204.17, 607.31, 210.34, 609.56, 215.95, 609.56, 221.55, 639.27, 228.28, 639.27, 309.57, 601.71, 307.33, 598.9, 296.68, 594.42, 289.95, 579.28, 289.39, 509.76, 287.71, 506.96, 260.24, 487.34, 234.45, 489.02, 215.95, 480.61, 209.78, 469.96, 209.78, 467.72, 211.46, 464.35, 213.14, 459.31, 213.14, 455.94, 215.95, 455.94, 222.11, 459.87, 222.67, 460.99, 223.23, 459.31, 231.08, 462.11, 237.81, 463.79, 238.37, 464.91, 241.17, 467.72, 242.3, 471.64, 247.34, 457.07, 273.13, 451.46, 293.31, 450.34, 314.62, 440.25, 315.74, 413.9, 307.33, 413.34, 293.31, 393.15, 291.63, 384.74, 299.48, 376.33, 300.6, 352.79, 296.68, 342.7, 291.63, 342.14, 286.59, 345.5, 275.93, 349.42, 264.16, 350.55, 254.07, 349.99, 238.37, 348.3, 234.45, 366.8, 228.28, 371.85, 226.6, 375.21, 226.04, 383.06, 220.43, 381.94, 212.02, 376.33, 206.98, 371.85, 203.61, 369.05, 185.67, 369.05, 181.75, 368.49, 179.51, 377.46, 177.26, 388.67, 178.95, 403.81, 186.79, 407.73, 190.16, 409.41, 192.4, 422.31, 192.96, 425.11, 193.52]], "area": 28116.4934, "iscrowd": 0, "image_id": 374977, "bbox": [342.14, 157.64, 297.13, 158.1], "category_id": 8, "id": 1797106}, {"segmentation": [[559.33, 480.0, 545.94, 458.82, 557.1, 454.92, 546.5, 436.51, 550.96, 396.34, 560.45, 389.65, 573.28, 385.18, 616.79, 377.93, 640.0, 376.26, 640.0, 480.0]], "area": 8721.764199999998, "iscrowd": 0, "image_id": 64908, "bbox": [545.94, 376.26, 94.06, 103.74], "category_id": 8, "id": 1797515}, {"segmentation": [[15.03, 262.75, 29.46, 262.75, 39.86, 263.22, 44.83, 266.77, 46.48, 268.19, 48.37, 268.42, 49.79, 269.37, 50.26, 271.97, 49.08, 274.81, 48.37, 275.76, 47.66, 276.46, 44.35, 276.23, 40.81, 275.05, 28.27, 273.86, 27.09, 275.99, 24.73, 275.99, 22.36, 275.99, 19.29, 274.1, 11.72, 273.63, 11.01, 268.9, 11.25, 266.77, 11.96, 264.4]], "area": 423.1555500000002, "iscrowd": 0, "image_id": 13000, "bbox": [11.01, 262.75, 39.25, 13.71], "category_id": 8, "id": 1797939}, {"segmentation": [[247.53, 356.67, 247.53, 356.67, 269.05, 357.74, 270.99, 368.72, 271.63, 374.32, 271.85, 377.33, 247.31, 376.04, 245.59, 375.18, 245.81, 357.74]], "area": 482.7131999999998, "iscrowd": 0, "image_id": 309536, "bbox": [245.59, 356.67, 26.26, 20.66], "category_id": 8, "id": 1798237}, {"segmentation": [[232.64, 194.26, 228.26, 193.55, 226.63, 192.74, 225.11, 193.24, 222.97, 182.46, 227.04, 181.75, 230.81, 183.17, 232.64, 184.09]], "area": 94.38959999999987, "iscrowd": 0, "image_id": 36914, "bbox": [222.97, 181.75, 9.67, 12.51], "category_id": 8, "id": 1799518}, {"segmentation": [[3.69, 37.77, 163.79, 40.23, 179.8, 71.02, 231.53, 80.87, 237.68, 84.56, 243.84, 73.48, 247.54, 56.24, 305.42, 48.85, 305.42, 71.02, 326.35, 132.59, 330.05, 164.61, 294.33, 168.31, 293.1, 176.93, 286.95, 181.86, 286.95, 93.19, 263.55, 95.65, 264.78, 183.09, 245.07, 185.55, 237.68, 168.31, 231.53, 157.22, 195.81, 159.69, 197.04, 143.68, 198.28, 132.59, 192.12, 122.74, 182.27, 122.74, 174.88, 131.36, 172.41, 138.75, 151.48, 139.98, 149.01, 151.07, 102.22, 152.3, 102.22, 164.61, 102.22, 174.47, 87.44, 183.09, 82.51, 98.11, 59.11, 98.11, 61.58, 188.01, 48.03, 186.78, 46.8, 175.7, 46.8, 158.46, 1.23, 154.76]], "area": 31104.300000000007, "iscrowd": 0, "image_id": 257323, "bbox": [1.23, 37.77, 328.82, 150.24], "category_id": 8, "id": 1800051}, {"segmentation": [[174.6, 216.31, 157.01, 220.78, 135.51, 220.5, 131.88, 211.85, 153.38, 204.31, 176.84, 212.4]], "area": 491.1087, "iscrowd": 0, "image_id": 336675, "bbox": [131.88, 204.31, 44.96, 16.47], "category_id": 9, "id": 1800684}, {"segmentation": [[145.7, 203.53, 216.21, 188.36, 221.13, 219.31, 149.8, 204.14], [124.38, 187.75, 131.15, 188.57, 136.89, 188.57, 141.81, 188.98, 145.91, 188.98, 149.18, 186.93, 151.44, 185.08, 155.33, 183.85, 159.84, 183.24, 164.56, 182.83, 169.68, 182.62, 172.96, 182.62, 175.42, 181.19, 178.29, 179.96, 181.57, 179.96, 186.69, 180.57, 189.56, 180.57, 190.38, 180.57, 130.74, 195.53, 123.56, 195.53, 123.56, 193.89, 122.33, 194.51, 121.1, 193.69, 121.31, 191.23, 121.31, 189.8, 121.1, 186.52, 122.33, 186.31, 123.15, 186.72], [124.06, 212.43, 126.92, 209.29, 132.35, 209.29, 193.24, 222.72, 202.96, 225.58, 204.11, 226.73, 137.5, 238.73, 133.49, 226.73, 128.06, 219.86]], "area": 2600.1954499999993, "iscrowd": 0, "image_id": 130647, "bbox": [121.1, 179.96, 100.03, 58.77], "category_id": 9, "id": 1800885}, {"segmentation": [[38.9, 190.3, 3.14, 189.94, 1.0, 189.59, 0.28, 167.42, 14.59, 168.49, 31.39, 172.06, 44.62, 174.57]], "area": 819.8266000000001, "iscrowd": 0, "image_id": 501358, "bbox": [0.28, 167.42, 44.34, 22.88], "category_id": 9, "id": 1801425}, {"segmentation": [[636.81, 346.87, 539.81, 336.33, 513.45, 331.06, 518.73, 326.84, 511.35, 320.51, 500.8, 320.51, 506.07, 295.21, 527.16, 292.05, 531.38, 254.09, 515.56, 225.62, 509.24, 185.56, 509.24, 173.96, 539.81, 175.02, 544.03, 199.27, 563.01, 200.32, 597.8, 200.32, 613.61, 134.95, 640.0, 131.79, 640.0, 353.2]], "area": 20152.561700000006, "iscrowd": 0, "image_id": 73727, "bbox": [500.8, 131.79, 139.2, 221.41], "category_id": 9, "id": 1802033}, {"segmentation": [[26.37, 152.51, 37.61, 156.05, 40.11, 166.05, 35.11, 166.05], [40.11, 155.01, 40.94, 155.01, 40.94, 153.55, 51.35, 152.72, 54.27, 152.72, 56.77, 153.76, 62.39, 152.09, 64.26, 147.51, 73.01, 104.2, 77.18, 77.96, 80.09, 141.27, 80.51, 144.81, 79.88, 147.72, 90.5, 145.85, 96.75, 150.64, 101.54, 152.72, 103.21, 156.47, 101.96, 162.09, 95.29, 163.96, 42.19, 166.25]], "area": 1543.8339500000004, "iscrowd": 0, "image_id": 501358, "bbox": [26.37, 77.96, 76.84, 88.29], "category_id": 9, "id": 1802552}, {"segmentation": [[519.74, 329.27, 569.95, 344.03, 538.94, 385.38, 513.84, 447.39, 437.06, 518.27, 233.29, 556.66, 214.1, 493.17, 256.92, 463.63, 253.97, 527.13, 301.21, 516.79, 307.12, 440.01, 426.72, 386.85, 469.54, 379.47], [172.76, 509.41, 126.98, 509.41, 177.19, 553.7, 177.19, 538.94]], "area": 32417.14525, "iscrowd": 0, "image_id": 376701, "bbox": [126.98, 329.27, 442.97, 227.39], "category_id": 9, "id": 1802617}, {"segmentation": [[466.64, 334.17, 581.85, 320.8, 640.0, 315.66, 640.0, 562.53, 531.45, 528.58, 481.04, 502.87, 456.36, 388.69, 455.33, 331.09]], "area": 36593.562949999985, "iscrowd": 0, "image_id": 114540, "bbox": [455.33, 315.66, 184.67, 246.87], "category_id": 9, "id": 1802946}, {"segmentation": [[575.69, 327.04, 564.14, 355.61, 539.82, 348.93, 539.82, 341.02, 530.09, 340.41, 525.83, 341.02, 514.28, 344.67, 484.49, 345.89, 440.72, 344.06, 440.11, 328.25, 443.15, 313.66, 443.15, 308.8, 440.11, 300.89, 435.85, 290.56, 437.07, 283.87, 447.4, 279.01, 451.05, 266.85, 452.88, 254.69, 452.88, 244.96, 455.92, 238.27, 480.24, 211.52, 483.88, 243.14, 482.06, 296.64, 494.83, 297.85, 495.43, 256.51, 502.12, 254.69, 503.95, 256.51, 505.77, 299.07, 520.97, 300.89, 520.97, 298.46, 524.01, 291.17, 529.48, 287.52, 528.87, 274.75, 530.7, 274.75, 534.35, 283.26, 536.17, 286.3, 544.68, 291.17, 552.59, 291.77, 547.11, 294.81, 546.51, 302.11, 545.29, 307.58, 553.19, 307.58, 558.06, 313.05, 562.31, 318.53, 562.92, 306.37, 562.92, 301.5, 567.78, 300.89, 569.0, 310.62, 570.22, 313.66, 575.69, 318.53, 580.55, 324.0, 580.55, 324.0]], "area": 9209.6702, "iscrowd": 0, "image_id": 307462, "bbox": [435.85, 211.52, 144.7, 144.09], "category_id": 9, "id": 1802953}, {"segmentation": [[16.25, 211.74, 18.55, 210.56, 22.54, 206.69, 23.17, 207.32, 23.04, 209.0, 22.23, 210.43, 22.04, 211.62, 21.42, 212.93, 19.99, 213.55, 16.5, 213.36, 15.62, 213.12, 15.25, 212.49]], "area": 24.32850000000006, "iscrowd": 0, "image_id": 2114, "bbox": [15.25, 206.69, 7.92, 6.86], "category_id": 9, "id": 1803341}, {"segmentation": [[14.94, 213.52, 54.75, 213.8, 53.89, 211.08, 22.24, 211.37, 23.39, 206.93, 21.67, 206.78, 16.08, 211.22]], "area": 112.15505000000014, "iscrowd": 0, "image_id": 2114, "bbox": [14.94, 206.78, 39.81, 7.02], "category_id": 9, "id": 1803409}, {"segmentation": [[100.27, 290.8, 114.64, 326.32, 134.09, 359.72, 162.84, 365.22, 170.87, 345.77, 182.29, 333.93, 155.65, 287.42, 107.03, 279.39]], "area": 4279.695250000001, "iscrowd": 0, "image_id": 114540, "bbox": [100.27, 279.39, 82.02, 85.83], "category_id": 9, "id": 1803536}, {"segmentation": [[363.7, 2.97, 365.85, 19.95, 372.1, 16.83, 375.02, 20.53, 384.98, 18.19, 384.2, 9.21, 378.93, 4.92, 379.32, 3.16, 381.47, 2.97, 384.59, 0.43, 365.46, 0.62]], "area": 339.29605000000015, "iscrowd": 0, "image_id": 510314, "bbox": [363.7, 0.43, 21.28, 20.1], "category_id": 10, "id": 1804526}, {"segmentation": [[33.89, 321.38, 28.49, 320.84, 27.04, 321.74, 26.5, 324.63, 28.31, 324.99, 31.37, 324.99]], "area": 22.417300000000132, "iscrowd": 0, "image_id": 354277, "bbox": [26.5, 320.84, 7.39, 4.15], "category_id": 10, "id": 1804612}, {"segmentation": [[258.33, 331.19, 258.33, 346.22, 256.49, 346.93, 253.93, 346.22, 253.37, 343.95, 255.92, 343.1, 255.21, 341.83, 252.37, 341.12, 252.94, 338.0, 255.92, 337.72, 256.2, 336.72, 252.94, 336.72, 253.51, 332.9]], "area": 66.74299999999994, "iscrowd": 0, "image_id": 171155, "bbox": [252.37, 331.19, 5.96, 15.74], "category_id": 10, "id": 1804718}, {"segmentation": [[458.94, 12.41, 466.09, 11.59, 468.95, 8.93, 473.04, 9.14, 475.09, 41.43, 472.43, 42.86, 471.2, 43.07, 470.59, 41.64, 467.32, 41.84, 462.0, 42.25, 460.78, 33.26, 465.89, 32.44, 465.07, 31.21, 461.39, 31.83, 460.16, 23.24, 465.07, 21.81, 464.46, 20.17, 459.55, 20.79]], "area": 414.0721000000001, "iscrowd": 0, "image_id": 522150, "bbox": [458.94, 8.93, 16.15, 34.14], "category_id": 10, "id": 1805046}, {"segmentation": [[133.09, 288.18, 129.63, 288.56, 128.86, 292.02, 130.01, 294.33, 133.47, 293.56, 133.85, 291.64, 133.09, 289.33], [154.21, 291.25, 152.67, 295.48, 152.67, 298.93, 158.44, 299.32, 158.82, 296.63, 158.82, 293.94, 157.67, 291.64, 154.21, 290.87], [173.8, 261.29, 171.11, 265.14, 171.11, 267.82, 174.57, 268.98, 178.02, 269.74, 178.79, 266.29, 179.18, 263.21, 178.02, 262.45, 174.57, 262.06]], "area": 114.66509999999995, "iscrowd": 0, "image_id": 536781, "bbox": [128.86, 261.29, 50.32, 38.03], "category_id": 10, "id": 1805072}, {"segmentation": [[328.57, 500.37, 329.03, 550.86, 347.22, 550.41, 343.13, 501.73]], "area": 810.919250000001, "iscrowd": 0, "image_id": 75308, "bbox": [328.57, 500.37, 18.65, 50.49], "category_id": 10, "id": 1805165}, {"segmentation": [[496.81, 509.33, 497.38, 497.99, 502.62, 498.18, 502.91, 509.91, 496.62, 509.43]], "area": 65.81745000000024, "iscrowd": 0, "image_id": 181149, "bbox": [496.62, 497.99, 6.29, 11.92], "category_id": 10, "id": 1805208}, {"segmentation": [[202.73, 207.8, 203.09, 197.88, 210.26, 197.51, 208.79, 207.62]], "area": 65.99760000000003, "iscrowd": 0, "image_id": 111831, "bbox": [202.73, 197.51, 7.53, 10.29], "category_id": 10, "id": 1805573}, {"segmentation": [[81.6, 397.95, 98.19, 396.98, 98.52, 414.22, 97.87, 434.72, 91.69, 434.4, 80.62, 433.09, 80.95, 398.61]], "area": 639.1385999999994, "iscrowd": 0, "image_id": 453332, "bbox": [80.62, 396.98, 17.9, 37.74], "category_id": 10, "id": 1806246}, {"segmentation": [[347.89, 210.4, 347.89, 247.71, 364.98, 247.71, 364.6, 209.63]], "area": 637.1186500000015, "iscrowd": 0, "image_id": 111831, "bbox": [347.89, 209.63, 17.09, 38.08], "category_id": 10, "id": 1806846}, {"segmentation": [[156.8, 437.66, 167.96, 436.94, 166.51, 459.01, 157.77, 459.25, 156.07, 457.56]], "area": 234.62514999999976, "iscrowd": 0, "image_id": 453332, "bbox": [156.07, 436.94, 11.89, 22.31], "category_id": 10, "id": 1806997}, {"segmentation": [[310.01, 549.67, 314.59, 549.57, 313.37, 560.97, 307.48, 559.29, 308.98, 549.29]], "area": 61.936099999999776, "iscrowd": 0, "image_id": 75308, "bbox": [307.48, 549.29, 7.11, 11.68], "category_id": 10, "id": 1807051}, {"segmentation": [[260.26, 332.01, 259.74, 348.19, 263.29, 347.99, 263.42, 347.2, 264.8, 347.27, 265.39, 331.68, 260.07, 331.88]], "area": 81.52935, "iscrowd": 0, "image_id": 171155, "bbox": [259.74, 331.68, 5.65, 16.51], "category_id": 10, "id": 1807086}, {"segmentation": [[406.32, 137.88, 389.31, 112.68, 393.09, 102.6, 401.91, 88.12, 418.28, 82.45, 423.95, 75.52, 442.22, 101.97, 444.11, 124.02, 410.1, 134.1]], "area": 2107.539100000001, "iscrowd": 0, "image_id": 164036, "bbox": [389.31, 75.52, 54.8, 62.36], "category_id": 10, "id": 1807234}, {"segmentation": [[590.9, 225.66, 605.98, 190.3, 582.13, 186.46, 570.61, 227.31]], "area": 855.5408499999995, "iscrowd": 0, "image_id": 164036, "bbox": [570.61, 186.46, 35.37, 40.85], "category_id": 10, "id": 1807535}, {"segmentation": [[215.07, 287.9, 223.74, 285.8, 224.27, 291.06, 223.74, 298.16, 221.11, 301.05, 216.12, 302.1, 211.91, 298.42, 211.91, 294.74]], "area": 152.62970000000053, "iscrowd": 0, "image_id": 536781, "bbox": [211.91, 285.8, 12.36, 16.3], "category_id": 10, "id": 1807546}, {"segmentation": [[25.19, 105.7, 26.11, 133.56, 74.07, 130.82, 71.33, 99.76, 24.74, 103.41]], "area": 1448.202, "iscrowd": 0, "image_id": 571516, "bbox": [24.74, 99.76, 49.33, 33.8], "category_id": 10, "id": 1807926}, {"segmentation": [[75.82, 175.63, 72.26, 210.37, 104.32, 208.59, 103.43, 174.74]], "area": 1021.4091000000001, "iscrowd": 0, "image_id": 164036, "bbox": [72.26, 174.74, 32.06, 35.63], "category_id": 10, "id": 1807941}, {"segmentation": [[139.03, 294.82, 140.72, 288.35, 141.0, 284.28, 137.77, 281.61, 131.73, 281.89, 123.86, 286.11, 121.33, 292.01, 123.01, 297.07, 126.53, 299.31, 134.26, 297.91, 135.66, 297.63, 136.93, 297.35]], "area": 260.0428000000003, "iscrowd": 0, "image_id": 536781, "bbox": [121.33, 281.61, 19.67, 17.7], "category_id": 10, "id": 1808084}, {"segmentation": [[77.16, 81.52, 78.21, 1.77, 53.02, 3.87, 63.52, 12.26, 63.52, 18.56, 48.82, 21.71, 57.22, 37.45, 65.61, 46.89, 46.73, 54.24, 57.22, 67.88, 68.76, 82.57]], "area": 1606.7944499999994, "iscrowd": 0, "image_id": 571516, "bbox": [46.73, 1.77, 31.48, 80.8], "category_id": 10, "id": 1808431}, {"segmentation": [[149.49, 32.58, 151.14, 38.46, 155.55, 41.21, 158.3, 41.03, 161.97, 36.62, 161.61, 31.85, 157.57, 28.18, 152.79, 28.18, 150.22, 32.03]], "area": 120.61000000000008, "iscrowd": 0, "image_id": 412289, "bbox": [149.49, 28.18, 12.48, 13.03], "category_id": 13, "id": 1809527}, {"segmentation": [[98.83, 246.12, 108.87, 245.73, 108.67, 225.66, 108.08, 213.27, 102.97, 207.76, 94.51, 210.12, 90.38, 219.76, 92.54, 246.51, 99.42, 246.51]], "area": 615.6319499999998, "iscrowd": 0, "image_id": 540547, "bbox": [90.38, 207.76, 18.49, 38.75], "category_id": 14, "id": 1810098}, {"segmentation": [[493.37, 71.03, 490.46, 71.03, 487.73, 71.38, 486.7, 73.6, 485.5, 78.39, 488.07, 92.6, 490.12, 92.94, 495.94, 91.91, 497.82, 90.03, 496.62, 84.21, 494.57, 78.73, 495.08, 74.97, 494.74, 71.72]], "area": 196.80704999999998, "iscrowd": 0, "image_id": 397599, "bbox": [485.5, 71.03, 12.32, 21.91], "category_id": 14, "id": 1810106}, {"segmentation": [[68.81, 288.41, 71.74, 286.99, 71.44, 281.43, 74.27, 279.71, 74.47, 283.25, 76.9, 281.94, 77.4, 278.1, 78.41, 277.18, 78.01, 275.87, 70.83, 274.45, 70.83, 271.93, 69.51, 265.86, 54.95, 269.8, 55.16, 279.61, 56.37, 281.13, 55.05, 283.86, 54.85, 286.18, 61.63, 287.9, 63.75, 288.31, 68.6, 284.36]], "area": 347.15209999999985, "iscrowd": 0, "image_id": 369201, "bbox": [54.85, 265.86, 23.56, 22.55], "category_id": 15, "id": 1810450}, {"segmentation": [[376.5, 480.0, 378.0, 406.0, 538.0, 377.5, 616.5, 404.0, 616.0, 434.0, 611.0, 435.0, 606.0, 478.5, 598.0, 479.5, 596.5, 436.0, 555.0, 443.5, 554.5, 406.5, 522.5, 387.5, 508.5, 392.5, 504.5, 459.0, 462.5, 471.5, 460.0, 480.0, 443.0, 480.0, 438.5, 469.0, 390.5, 450.5, 389.5, 479.0]], "area": 13286.5, "iscrowd": 0, "image_id": 146513, "bbox": [376.5, 377.5, 240.0, 102.5], "category_id": 15, "id": 1811417}, {"segmentation": [[1.85, 363.96, 9.77, 363.96, 16.55, 375.83, 28.42, 383.18, 52.16, 388.83, 60.08, 397.88, 51.6, 413.14, 44.81, 436.88, 40.86, 478.15, 32.94, 491.15, 0.16, 486.06], [109.13, 388.21, 98.6, 428.42, 102.43, 434.64, 112.0, 437.99, 121.57, 438.47, 118.22, 497.82, 128.75, 495.91, 132.58, 466.71, 127.79, 453.31, 123.97, 436.55, 119.66, 409.75, 116.31, 396.83], [164.65, 390.12, 156.51, 398.74, 160.82, 404.96, 171.83, 429.85, 174.7, 446.13, 176.62, 399.22]], "area": 6888.910250000001, "iscrowd": 0, "image_id": 393714, "bbox": [0.16, 363.96, 176.46, 133.86], "category_id": 15, "id": 1812107}, {"segmentation": [[486.98, 125.13, 546.73, 125.13, 544.47, 143.16, 555.75, 145.42, 555.75, 130.76, 623.38, 128.51, 621.13, 38.33, 483.6, 43.96, 474.58, 51.85, 479.09, 64.25, 477.96, 71.02, 477.96, 74.4, 481.35, 78.91, 482.47, 91.31, 484.73, 126.25]], "area": 12358.892999999996, "iscrowd": 0, "image_id": 276420, "bbox": [474.58, 38.33, 148.8, 107.09], "category_id": 15, "id": 1812315}, {"segmentation": [[63.22, 375.98, 125.33, 371.55, 127.55, 366.0, 59.89, 364.89], [46.58, 363.78, 2.22, 363.78, 0.0, 375.98, 46.58, 375.98]], "area": 1095.4985000000033, "iscrowd": 0, "image_id": 502517, "bbox": [0.0, 363.78, 127.55, 12.2], "category_id": 15, "id": 1812404}, {"segmentation": [[571.66, 382.71, 622.03, 394.42, 623.2, 388.56, 638.43, 393.25, 639.6, 450.65, 577.51, 448.31, 564.63, 383.88]], "area": 4095.725949999999, "iscrowd": 0, "image_id": 286619, "bbox": [564.63, 382.71, 74.97, 67.94], "category_id": 15, "id": 1812507}, {"segmentation": [[139.42, 295.43, 151.59, 306.5, 119.5, 336.37, 130.57, 390.59, 111.76, 419.36, 105.12, 382.85, 95.16, 360.72, 86.31, 338.59, 76.35, 331.95, 74.14, 318.67, 79.67, 302.07, 67.5, 297.65, 81.88, 288.79, 101.8, 295.43, 139.42, 292.11, 143.84, 291.01]], "area": 4618.273199999999, "iscrowd": 0, "image_id": 156170, "bbox": [67.5, 288.79, 84.09, 130.57], "category_id": 15, "id": 1812552}, {"segmentation": [[363.71, 247.93, 353.27, 249.27, 354.07, 252.22, 363.18, 251.68]], "area": 32.87314999999998, "iscrowd": 0, "image_id": 531032, "bbox": [353.27, 247.93, 10.44, 4.29], "category_id": 15, "id": 1812590}, {"segmentation": [[14.59, 392.26, 1.71, 400.46, 1.71, 448.49, 26.31, 450.83, 33.34, 443.81, 16.94, 406.32]], "area": 1191.7813, "iscrowd": 0, "image_id": 286619, "bbox": [1.71, 392.26, 31.63, 58.57], "category_id": 15, "id": 1812595}, {"segmentation": [[340.45, 368.84, 323.8, 384.76, 325.98, 454.22, 325.25, 545.39, 291.97, 539.6, 290.52, 399.95, 231.19, 384.76, 238.42, 379.69, 238.42, 363.78, 243.49, 355.09, 255.79, 357.99, 260.85, 365.22, 270.26, 366.67, 291.97, 373.18, 310.78, 370.29, 320.19, 367.39, 333.93, 370.29]], "area": 7521.7741, "iscrowd": 0, "image_id": 141800, "bbox": [231.19, 355.09, 109.26, 190.3], "category_id": 15, "id": 1813209}, {"segmentation": [[547.35, 248.89, 508.8, 251.1, 505.5, 255.5, 550.65, 254.4]], "area": 207.36675000000048, "iscrowd": 0, "image_id": 531032, "bbox": [505.5, 248.89, 45.15, 6.61], "category_id": 15, "id": 1813618}, {"segmentation": [[29.75, 217.16, 19.53, 237.15, 35.52, 242.03, 38.19, 252.25, 34.64, 257.58, 30.19, 262.91, 23.97, 264.24, 7.09, 267.8, 7.09, 258.91, 0.87, 258.02, 0.43, 241.59, 10.2, 239.81, 23.09, 213.6, 29.3, 216.71]], "area": 1033.4755500000003, "iscrowd": 0, "image_id": 503212, "bbox": [0.43, 213.6, 37.76, 54.2], "category_id": 16, "id": 1814006}, {"segmentation": [[527.84, 47.32, 518.06, 44.58, 516.88, 37.54, 508.67, 33.23, 499.28, 23.85, 494.98, 23.85, 496.15, 40.28, 483.63, 46.14, 483.63, 46.14, 485.98, 52.01, 513.75, 52.79, 527.84, 53.58]], "area": 657.4794999999999, "iscrowd": 0, "image_id": 572717, "bbox": [483.63, 23.85, 44.21, 29.73], "category_id": 16, "id": 1814200}, {"segmentation": [[638.95, 118.58, 628.03, 101.9, 627.13, 89.77, 631.37, 72.8, 631.67, 65.22, 627.13, 63.7, 617.42, 67.34, 625.91, 57.34, 627.13, 49.15, 635.01, 47.33, 640.0, 47.63], [639.35, 152.69, 635.46, 156.58, 621.45, 155.03, 627.67, 157.36, 628.45, 159.7, 637.4, 161.64, 639.35, 162.03]], "area": 793.9497000000024, "iscrowd": 0, "image_id": 63017, "bbox": [617.42, 47.33, 22.58, 114.7], "category_id": 16, "id": 1815288}, {"segmentation": [[306.86, 164.21, 353.41, 169.38, 371.51, 170.24, 382.72, 146.97, 397.37, 178.0, 417.2, 184.03, 421.51, 199.55, 430.13, 206.44, 423.23, 222.82, 387.89, 224.55, 367.2, 224.55, 354.27, 225.41, 337.9, 239.2, 349.96, 249.54, 356.0, 263.33, 339.62, 261.61, 336.17, 259.89, 350.83, 283.16, 331.86, 279.71, 321.52, 273.68, 310.31, 262.47, 312.04, 222.82, 302.55, 205.58, 299.11, 194.38, 291.35, 176.27, 274.97, 189.2, 274.97, 205.58, 258.59, 214.2, 260.32, 233.17, 248.25, 238.34, 240.49, 241.79, 241.35, 246.96, 256.87, 260.75, 255.15, 268.51, 241.35, 273.68, 222.39, 259.89, 210.32, 234.03, 188.77, 200.41, 121.54, 217.65, 107.75, 221.96, 93.96, 221.1, 101.71, 206.44, 141.36, 193.51, 174.12, 187.48, 203.43, 178.0, 281.01, 170.24], [257.73, 139.21, 286.18, 146.11, 281.01, 153.86, 259.46, 161.62], [188.77, 158.17, 174.12, 171.1, 193.08, 171.96, 192.22, 160.76]], "area": 16415.973649999996, "iscrowd": 0, "image_id": 246356, "bbox": [93.96, 139.21, 336.17, 143.95], "category_id": 17, "id": 1816289}, {"segmentation": [[176.05, 459.43, 184.59, 462.84, 197.41, 454.3, 213.65, 450.03, 220.48, 449.17, 228.17, 456.01, 221.34, 464.55, 208.52, 460.28, 203.39, 464.55, 203.39, 466.26, 207.67, 470.54, 213.65, 471.39, 212.79, 482.5, 187.16, 481.64, 182.03, 489.33, 187.16, 491.04, 203.39, 490.19, 217.92, 491.9, 217.07, 495.32, 205.96, 495.32, 205.1, 498.73, 211.08, 503.01, 252.96, 482.5, 269.19, 467.97, 270.9, 456.01, 269.19, 427.81, 253.81, 409.86, 235.01, 399.61, 214.5, 397.04, 204.25, 403.03, 201.68, 411.57, 188.01, 415.84, 181.17, 419.26, 193.14, 426.95, 190.57, 430.37, 182.03, 437.21, 175.19, 437.21, 169.21, 444.9, 174.34, 449.17, 177.76, 451.74, 176.05, 453.44, 176.05, 460.28]], "area": 6284.9635499999995, "iscrowd": 0, "image_id": 231374, "bbox": [169.21, 397.04, 101.69, 105.97], "category_id": 17, "id": 1816292}, {"segmentation": [[310.17, 364.14, 307.16, 365.78, 303.87, 365.78, 298.4, 364.14, 294.56, 360.31, 292.37, 355.38, 292.92, 351.0, 289.63, 345.25, 291.82, 339.77, 294.29, 332.1, 298.12, 333.47, 315.1, 323.61, 328.79, 317.86, 343.31, 321.14, 353.44, 331.28, 354.54, 338.13, 352.08, 344.97, 351.25, 351.82, 352.08, 362.5, 354.27, 368.25, 349.34, 369.35, 345.78, 364.69, 344.13, 366.88, 338.93, 366.88, 334.27, 365.24, 335.09, 367.98, 330.71, 368.8, 325.78, 369.62, 320.31, 366.61, 321.95, 362.77, 319.76, 360.31, 317.84, 362.23, 313.46, 360.03]], "area": 2470.0148999999997, "iscrowd": 0, "image_id": 141800, "bbox": [289.63, 317.86, 64.91, 51.76], "category_id": 17, "id": 1816536}, {"segmentation": [[277.66, 165.51, 287.92, 172.92, 295.9, 186.04, 302.74, 188.89, 321.56, 189.46, 338.09, 202.0, 339.23, 212.26, 335.24, 230.51, 331.25, 243.05, 330.68, 252.17, 322.13, 253.31, 325.55, 245.9, 318.71, 231.65, 316.43, 218.53, 309.02, 215.68, 298.75, 220.82, 295.33, 224.24, 295.9, 240.77, 290.2, 247.61, 284.5, 247.61, 285.64, 239.63, 283.93, 236.78, 279.94, 239.63, 276.52, 233.93, 276.52, 225.38, 271.39, 220.25, 265.12, 208.27, 258.84, 199.72, 257.13, 187.18, 264.55, 176.91, 272.53, 171.78]], "area": 3603.377650000001, "iscrowd": 0, "image_id": 114521, "bbox": [257.13, 165.51, 82.1, 87.8], "category_id": 18, "id": 1816737}, {"segmentation": [[306.42, 386.69, 310.05, 380.58, 317.52, 377.86, 325.67, 372.43, 336.99, 373.34, 344.23, 374.01, 351.48, 379.0, 356.46, 381.94, 360.76, 384.88, 363.7, 388.5, 366.65, 395.98, 365.97, 401.41, 355.55, 410.01, 352.16, 417.94, 349.67, 417.71, 338.8, 410.92, 325.9, 402.99, 320.69, 402.99, 306.42, 406.62, 304.84, 406.62, 304.61, 402.31]], "area": 1816.9738000000007, "iscrowd": 0, "image_id": 532414, "bbox": [304.61, 372.43, 62.04, 45.51], "category_id": 18, "id": 1817063}, {"segmentation": [[260.39, 415.31, 266.98, 399.93, 253.8, 363.67, 290.06, 295.55, 302.14, 283.46, 323.02, 282.37, 334.01, 272.48, 358.18, 280.17, 379.05, 266.98, 402.12, 261.49, 416.41, 206.56, 335.1, 161.51, 327.41, 139.54, 291.16, 107.67, 253.8, 105.48, 217.54, 60.43, 179.09, 148.32, 123.05, 210.95, 64.82, 265.89, 9.89, 287.86, 1.1, 296.65, 1.1, 420.8]], "area": 78952.5013, "iscrowd": 0, "image_id": 419141, "bbox": [1.1, 60.43, 415.31, 360.37], "category_id": 18, "id": 1817491}, {"segmentation": [[0.0, 10.29, 88.52, 26.49, 159.58, 38.96, 159.58, 28.99, 175.79, 22.75, 184.52, 12.78, 203.22, 11.53, 239.38, 22.75, 269.3, 38.96, 288.0, 48.94, 316.68, 47.69, 330.39, 53.92, 344.1, 70.13, 340.36, 82.6, 322.91, 95.06, 297.97, 101.3, 292.99, 122.49, 290.49, 149.92, 295.48, 166.13, 316.68, 206.03, 322.91, 238.44, 309.19, 247.17, 305.45, 254.65, 290.49, 274.6, 263.06, 278.34, 238.13, 274.6, 231.9, 262.13, 170.81, 250.91, 128.42, 257.14, 92.26, 273.35, 56.1, 326.96, 24.94, 366.86, 2.49, 381.82]], "area": 79973.5964, "iscrowd": 0, "image_id": 449985, "bbox": [0.0, 10.29, 344.1, 371.53], "category_id": 21, "id": 1819345}, {"segmentation": [[17.06, 261.29, 17.7, 242.11, 17.06, 226.77, 17.06, 221.66, 15.14, 212.07, 17.7, 203.12, 17.7, 194.81, 15.14, 181.38, 17.7, 165.4, 20.9, 158.37, 20.9, 146.23, 20.9, 129.61, 25.37, 116.82, 33.68, 106.59, 40.71, 98.92, 41.99, 98.92, 43.27, 106.59, 50.3, 127.05, 56.05, 136.0, 56.05, 178.19, 56.05, 234.44, 63.72, 256.18, 59.89, 262.57, 46.46, 263.85, 43.27, 231.88, 43.27, 215.26, 48.38, 193.53, 48.38, 178.83, 37.52, 194.81, 40.07, 212.07, 38.79, 226.77, 30.48, 239.56, 27.93, 251.06, 27.93, 261.93], [63.09, 97.64, 72.03, 100.84, 90.57, 104.04, 100.8, 106.59, 109.75, 107.87, 111.03, 114.26, 93.77, 114.9, 72.67, 108.51, 59.89, 103.4, 54.77, 98.92], [125.09, 109.15, 134.68, 114.26, 141.71, 102.76, 163.45, 98.28, 169.2, 112.99, 166.64, 117.46, 146.19, 124.49, 125.73, 128.33, 117.42, 125.77, 120.62, 119.38, 121.26, 112.35]], "area": 6264.246199999999, "iscrowd": 0, "image_id": 544209, "bbox": [15.14, 97.64, 154.06, 166.21], "category_id": 21, "id": 1819798}, {"segmentation": [[378.76, 276.36, 380.96, 317.1, 411.79, 341.32, 422.8, 352.33, 421.7, 373.25, 393.07, 393.07, 389.77, 398.58, 386.46, 398.58, 365.54, 389.77, 361.14, 386.46, 356.74, 388.67, 367.75, 419.49, 230.12, 419.49, 224.61, 387.56, 216.9, 346.83, 219.11, 324.81, 232.32, 310.49, 256.54, 284.07, 268.65, 270.85, 281.87, 268.65, 304.99, 263.15, 314.9, 259.84, 358.94, 277.46]], "area": 24249.3841, "iscrowd": 0, "image_id": 151648, "bbox": [216.9, 259.84, 205.9, 159.65], "category_id": 21, "id": 1819832}, {"segmentation": [[76.25, 180.63, 48.75, 186.88, 40.0, 200.63, 36.25, 231.88, 33.75, 271.88, 35.0, 296.88, 8.75, 309.38, 16.25, 344.38, 20.0, 360.63, 12.5, 388.13, 20.0, 401.88, 33.75, 393.13, 38.75, 370.63, 41.25, 346.88, 51.25, 323.13, 73.75, 364.38, 82.5, 385.63, 88.75, 403.13, 117.5, 403.13, 120.0, 390.63, 110.0, 380.63, 97.5, 355.63, 97.5, 341.88, 148.75, 351.88, 186.25, 361.88, 193.75, 364.38, 188.75, 395.63, 198.75, 411.88, 215.0, 406.88, 215.0, 391.88, 208.75, 384.38, 210.0, 370.63, 256.25, 370.63, 260.0, 346.88, 280.0, 345.63, 270.0, 325.63, 297.5, 378.13, 308.75, 390.63, 323.75, 390.63, 323.75, 383.13, 315.0, 361.88, 298.75, 328.13, 292.5, 315.63, 331.25, 298.13, 340.0, 275.63, 345.0, 300.63, 396.25, 288.13, 417.5, 279.38, 392.5, 219.38, 383.75, 203.13, 383.75, 184.38, 371.25, 191.88, 370.0, 175.63, 348.75, 175.63, 338.75, 203.13, 345.0, 205.63, 323.75, 208.13, 301.25, 200.63, 285.0, 174.38, 260.0, 159.38, 240.0, 166.88, 227.5, 183.13, 222.5, 189.38, 188.75, 190.63, 160.0, 184.38, 136.25, 176.88, 118.75, 176.88]], "area": 61688.28125, "iscrowd": 0, "image_id": 80336, "bbox": [8.75, 159.38, 408.75, 252.5], "category_id": 21, "id": 1819874}, {"segmentation": [[389.38, 308.59, 380.43, 310.58, 368.51, 306.61, 343.17, 310.08, 332.25, 311.08, 325.29, 310.08, 321.32, 307.6, 313.37, 297.17, 301.94, 301.14, 295.98, 299.65, 290.52, 287.73, 304.43, 285.24, 305.92, 285.74, 308.4, 285.24, 302.94, 272.33, 296.97, 270.34, 293.0, 274.32, 284.06, 274.32, 280.08, 272.33, 274.12, 274.32, 266.17, 266.86, 277.1, 252.95, 281.57, 241.03, 291.51, 233.58, 285.55, 229.6, 276.61, 221.66, 276.11, 219.17, 277.1, 210.73, 280.58, 219.67, 288.53, 225.63, 296.97, 228.61, 296.97, 224.14, 286.04, 209.73, 288.53, 210.23, 298.46, 218.18, 303.93, 226.62, 307.9, 231.59, 322.31, 238.55, 334.23, 244.01, 348.64, 246.5, 364.04, 254.44, 375.96, 261.9, 385.9, 272.83, 392.85, 282.76, 395.34, 292.2]], "area": 6588.955849999999, "iscrowd": 0, "image_id": 303020, "bbox": [266.17, 209.73, 129.17, 101.35], "category_id": 21, "id": 1820229}, {"segmentation": [[551.47, 269.79, 535.14, 264.98, 475.57, 261.62, 470.77, 249.61, 457.32, 261.62, 439.54, 261.62, 424.17, 255.38, 426.57, 264.98, 430.9, 276.03, 431.38, 277.95, 433.78, 295.25, 440.99, 308.7, 447.71, 313.02, 449.15, 314.94, 451.55, 316.86, 457.32, 345.69, 452.51, 351.45, 442.91, 350.01, 435.7, 353.85, 438.58, 359.62, 479.9, 367.78, 490.46, 368.75, 493.83, 369.71, 486.62, 376.91, 505.84, 394.21, 555.8, 357.22, 568.29, 287.61, 572.13, 272.24, 548.59, 270.8]], "area": 13249.563299999993, "iscrowd": 0, "image_id": 13258, "bbox": [424.17, 249.61, 147.96, 144.6], "category_id": 23, "id": 1822074}, {"segmentation": [[377.29, 129.9, 382.5, 132.3, 388.32, 136.92, 392.93, 140.13, 392.53, 160.78, 390.12, 160.78, 387.51, 150.76, 386.51, 159.58, 379.29, 160.38, 378.09, 145.74, 373.88, 146.54, 372.87, 140.93, 374.88, 129.9]], "area": 418.2362499999997, "iscrowd": 0, "image_id": 94118, "bbox": [372.87, 129.9, 20.06, 30.88], "category_id": 24, "id": 1822251}, {"segmentation": [[163.24, 203.92, 149.73, 218.89, 145.38, 239.65, 148.28, 257.51, 156.0, 263.79, 165.17, 296.61, 174.35, 314.96, 177.24, 362.75, 169.04, 378.2, 174.83, 383.99, 181.59, 383.99, 187.86, 373.86, 189.8, 365.65, 190.76, 365.17, 187.86, 349.24, 185.93, 334.75, 184.0, 322.2, 186.9, 325.58, 192.21, 336.68, 192.21, 350.68, 198.0, 362.75, 200.9, 383.51, 204.28, 388.34, 213.45, 384.48, 216.35, 369.51, 212.0, 352.61, 202.83, 337.65, 202.35, 325.1, 198.97, 309.65, 200.42, 295.65, 202.35, 282.61, 205.24, 277.3, 208.14, 276.82, 212.48, 276.82, 217.8, 280.68, 226.97, 291.3, 234.21, 301.44, 240.97, 311.1, 238.07, 333.3, 237.11, 353.58, 232.76, 365.65, 236.14, 377.72, 246.76, 376.27, 251.59, 372.89, 256.9, 364.68, 258.83, 323.17, 260.76, 296.13, 259.31, 278.75, 256.9, 269.1, 256.9, 259.44, 259.8, 248.34, 263.66, 238.68, 265.59, 218.41, 252.07, 221.79, 243.86, 218.41, 239.04, 203.44, 239.52, 194.75, 239.52, 187.03, 240.48, 180.75, 231.31, 176.89, 225.04, 179.79, 218.76, 189.92, 216.35, 201.51, 208.14, 198.13, 208.14, 188.96, 198.48, 187.99, 192.69, 186.06, 183.04, 185.1, 171.93, 184.61, 162.76, 186.06, 158.42, 187.03, 161.79, 196.2, 162.28, 199.58, 159.86, 207.3]], "area": 14695.8167, "iscrowd": 0, "image_id": 399835, "bbox": [145.38, 176.89, 120.21, 211.45], "category_id": 24, "id": 1822255}, {"segmentation": [[20.5, 172.05, 20.5, 172.05, 120.43, 153.74, 159.33, 186.54, 159.33, 230.02, 136.45, 233.83, 95.26, 252.14, 57.88, 252.14, 3.72, 260.53, 0.0, 199.51, 18.21, 175.1]], "area": 12773.913199999999, "iscrowd": 0, "image_id": 189660, "bbox": [0.0, 153.74, 159.33, 106.79], "category_id": 24, "id": 1822585}, {"segmentation": [[138.46, 154.71, 140.28, 145.59, 145.75, 149.85, 148.49, 155.02, 150.31, 159.27, 151.53, 162.01, 152.44, 163.83, 160.95, 162.31, 165.21, 162.31, 170.07, 162.62, 173.72, 164.14, 175.84, 165.66, 177.36, 169.61, 177.36, 179.64, 175.54, 188.76, 174.93, 197.27, 174.93, 199.7, 172.8, 205.48, 172.5, 209.12, 171.89, 213.08, 171.89, 214.29, 168.55, 213.08, 167.03, 194.53, 165.51, 190.58, 162.77, 188.45, 157.3, 190.58, 155.78, 190.89, 155.48, 190.58, 158.52, 194.84, 157.91, 201.52, 157.3, 206.69, 156.69, 210.95, 156.39, 211.25, 154.26, 204.26, 153.35, 194.53, 152.13, 190.89, 150.92, 189.06, 149.4, 187.85, 149.09, 187.54, 143.32, 206.08, 141.8, 214.29, 139.06, 214.9, 140.28, 200.92, 142.1, 190.58, 142.1, 184.2, 142.1, 181.16, 140.89, 175.38, 139.98, 172.95, 138.46, 169.3, 137.54, 165.35, 137.54, 156.23]], "area": 1458.2099, "iscrowd": 0, "image_id": 260011, "bbox": [137.54, 145.59, 39.82, 69.31], "category_id": 24, "id": 1822703}, {"segmentation": [[640.0, 128.73, 619.47, 127.77, 595.71, 135.7, 584.71, 162.04, 583.85, 181.05, 585.68, 206.94, 590.02, 224.8, 597.47, 237.54, 599.68, 254.73, 596.78, 273.56, 611.75, 271.15, 609.82, 252.8, 613.68, 226.25, 616.57, 218.04, 619.95, 246.53, 612.71, 273.56, 626.71, 277.91, 631.06, 269.22, 636.94, 242.0, 640.0, 225.77]], "area": 6553.424499999998, "iscrowd": 0, "image_id": 189660, "bbox": [583.85, 127.77, 56.15, 150.14], "category_id": 24, "id": 1822754}, {"segmentation": [[184.09, 211.35, 180.19, 208.62, 183.31, 194.57, 181.36, 177.02, 181.36, 166.87, 186.43, 155.17, 189.55, 153.61, 199.31, 152.83, 212.96, 147.37, 214.13, 152.05, 201.65, 154.78, 203.6, 164.14, 205.94, 169.21, 206.72, 172.73, 206.33, 175.85, 204.77, 180.53, 204.38, 183.65, 204.77, 185.99, 206.33, 190.67, 207.5, 195.74, 208.67, 198.47, 209.06, 206.28, 207.89, 207.84, 205.16, 207.45, 204.38, 202.77, 203.21, 198.08, 200.48, 193.01, 200.09, 189.11, 195.79, 182.48, 193.45, 178.58, 192.28, 182.09, 189.94, 187.94, 189.16, 192.62, 188.77, 193.79, 189.94, 194.57, 189.16, 198.86]], "area": 997.6903000000001, "iscrowd": 0, "image_id": 260011, "bbox": [180.19, 147.37, 33.94, 63.98], "category_id": 24, "id": 1822767}, {"segmentation": [[639.95, 83.18, 596.69, 78.75, 581.16, 75.42, 580.05, 88.73, 556.76, 75.42, 553.44, 78.75, 556.76, 89.84, 576.73, 98.71, 565.64, 115.35, 570.07, 155.27, 572.29, 170.8, 578.95, 170.8, 590.04, 131.98, 612.22, 124.22, 639.95, 127.55]], "area": 4127.193450000002, "iscrowd": 0, "image_id": 189660, "bbox": [553.44, 75.42, 86.51, 95.38], "category_id": 24, "id": 1822818}, {"segmentation": [[457.55, 113.23, 430.82, 124.61, 396.13, 131.43, 371.68, 143.94, 353.48, 150.19, 335.85, 172.37, 317.66, 192.84, 314.24, 226.96, 309.7, 236.06, 298.32, 246.3, 302.87, 272.46, 322.21, 263.36, 339.83, 231.51, 355.76, 231.51, 370.54, 240.61, 377.93, 241.75, 382.48, 265.63, 397.27, 273.59, 401.25, 245.73, 417.17, 240.61, 427.41, 247.44, 439.35, 267.34, 450.15, 254.83, 453.0, 245.16, 460.96, 236.06, 458.68, 226.96, 443.9, 168.39, 426.27, 179.2, 380.21, 181.47, 394.99, 170.1, 434.23, 168.39, 441.62, 154.18]], "area": 14146.808799999995, "iscrowd": 0, "image_id": 189660, "bbox": [298.32, 113.23, 162.64, 160.36], "category_id": 24, "id": 1822925}, {"segmentation": [[388.58, 426.74, 384.58, 410.14, 392.57, 399.84, 388.37, 398.37, 381.43, 400.89, 375.13, 400.68, 372.4, 395.43, 367.56, 401.52, 362.73, 408.25, 356.22, 417.28, 358.11, 427.0]], "area": 734.0610499999993, "iscrowd": 0, "image_id": 111831, "bbox": [356.22, 395.43, 36.35, 31.57], "category_id": 27, "id": 1823888}, {"segmentation": [[261.53, 287.35, 244.41, 314.85, 244.41, 330.41, 234.55, 328.34, 232.48, 312.77, 247.0, 291.5, 251.67, 285.28, 255.82, 280.09, 258.93, 281.13]], "area": 547.3730000000003, "iscrowd": 0, "image_id": 415946, "bbox": [232.48, 280.09, 29.05, 50.32], "category_id": 27, "id": 1824328}, {"segmentation": [[57.41, 397.74, 64.33, 417.81, 58.1, 435.81, 42.87, 436.51, 20.72, 433.74, 6.87, 428.89, 4.79, 436.51, 3.41, 433.74, 5.49, 417.12, 14.49, 399.81, 26.25, 394.97, 41.49, 393.58]], "area": 2050.1160999999997, "iscrowd": 0, "image_id": 532414, "bbox": [3.41, 393.58, 60.92, 42.93], "category_id": 27, "id": 1825356}, {"segmentation": [[202.22, 271.7, 214.56, 269.35, 217.79, 262.88, 222.2, 259.65, 219.56, 246.14, 213.09, 231.16, 205.46, 225.87, 197.82, 222.34, 181.66, 220.58, 189.89, 249.96, 195.76, 262.0, 198.11, 266.7]], "area": 1270.2842500000004, "iscrowd": 0, "image_id": 13417, "bbox": [181.66, 220.58, 40.54, 51.12], "category_id": 27, "id": 1825475}, {"segmentation": [[0.23, 371.29, 31.92, 369.71, 48.55, 397.04, 44.19, 422.38, 36.67, 427.93, 38.25, 444.56, 33.1, 453.67, 1.02, 463.58, 1.02, 395.45]], "area": 3506.0574, "iscrowd": 0, "image_id": 275917, "bbox": [0.23, 369.71, 48.32, 93.87], "category_id": 27, "id": 1826216}, {"segmentation": [[345.57, 217.26, 342.36, 198.92, 348.77, 198.01, 348.77, 216.34], [321.27, 213.13, 319.44, 227.8, 315.32, 226.88, 314.4, 210.84]], "area": 174.6742499999997, "iscrowd": 0, "image_id": 253143, "bbox": [314.4, 198.01, 34.37, 29.79], "category_id": 27, "id": 1826511}, {"segmentation": [[341.03, 356.37, 325.75, 356.85, 322.89, 358.76, 326.23, 377.38, 332.43, 391.7, 345.8, 397.43, 374.44, 414.14, 385.42, 422.73, 384.94, 403.16, 384.47, 396.47, 368.24, 384.06, 363.46, 379.77, 356.3, 376.9, 347.71, 372.6, 342.94, 362.1]], "area": 1720.550699999999, "iscrowd": 0, "image_id": 314126, "bbox": [322.89, 356.37, 62.53, 66.36], "category_id": 27, "id": 1827269}, {"segmentation": [[399.6, 383.28, 412.13, 376.22, 415.77, 369.16, 415.55, 362.78, 416.46, 357.54, 413.04, 349.8, 410.08, 349.8, 407.35, 350.03, 401.2, 354.35, 397.32, 358.0, 396.19, 363.69, 393.0, 370.75, 393.0, 377.59, 394.14, 380.77]], "area": 552.8714999999999, "iscrowd": 0, "image_id": 20251, "bbox": [393.0, 349.8, 23.46, 33.48], "category_id": 27, "id": 1827958}, {"segmentation": [[283.52, 230.14, 272.86, 217.71, 271.53, 210.15, 273.75, 201.27, 279.08, 194.61, 291.96, 194.61, 296.4, 204.82, 293.74, 220.37, 292.41, 226.59]], "area": 659.4555499999996, "iscrowd": 0, "image_id": 20251, "bbox": [271.53, 194.61, 24.87, 35.53], "category_id": 27, "id": 1828267}, {"segmentation": [[158.53, 209.35, 179.01, 155.95, 194.37, 127.42, 193.64, 119.37, 177.55, 120.1, 137.31, 159.6, 129.27, 197.64, 151.94, 210.08]], "area": 2840.198349999999, "iscrowd": 0, "image_id": 203989, "bbox": [129.27, 119.37, 65.1, 90.71], "category_id": 27, "id": 1828498}, {"segmentation": [[51.91, 120.57, 54.53, 116.5, 56.71, 114.32, 58.75, 116.21, 59.77, 122.31, 61.22, 127.55, 58.17, 130.31, 54.53, 133.51, 52.79, 130.31, 51.91, 127.99, 50.17, 125.51]], "area": 122.92990000000005, "iscrowd": 0, "image_id": 20251, "bbox": [50.17, 114.32, 11.05, 19.19], "category_id": 27, "id": 1828622}, {"segmentation": [[560.65, 113.27, 576.05, 85.29, 591.2, 72.97, 607.37, 62.18, 624.83, 59.87, 633.56, 57.31, 640.0, 56.54, 640.0, 104.54, 639.72, 111.47, 639.97, 115.84, 639.46, 125.85, 634.58, 116.86, 620.98, 117.63, 596.08, 120.71, 590.69, 122.25, 584.01, 115.07, 576.57, 115.84, 572.46, 118.4, 567.58, 122.25, 560.14, 116.09]], "area": 3656.63095, "iscrowd": 0, "image_id": 3366, "bbox": [560.14, 56.54, 79.86, 69.31], "category_id": 28, "id": 1829068}, {"segmentation": [[588.79, 345.44, 595.19, 338.64, 597.99, 331.83, 597.99, 325.43, 596.79, 320.63, 593.59, 316.63, 590.79, 315.83, 586.39, 315.83, 583.18, 315.83, 580.38, 311.42, 581.18, 307.42, 586.79, 306.62, 592.79, 306.22, 598.39, 306.22, 602.8, 309.42, 606.0, 312.62, 607.6, 316.63, 608.0, 323.03, 608.0, 329.03, 608.0, 335.04, 605.6, 341.04, 603.6, 341.84, 601.6, 340.64, 596.79, 339.84]], "area": 493.5762999999991, "iscrowd": 0, "image_id": 169686, "bbox": [580.38, 306.22, 27.62, 39.22], "category_id": 28, "id": 1829854}, {"segmentation": [[626.83, 328.89, 626.83, 325.98, 627.02, 323.27, 627.41, 320.94, 629.93, 318.42, 630.9, 318.03, 634.58, 318.23, 638.27, 319.0, 639.43, 320.75, 639.23, 325.79, 639.23, 329.86, 637.68, 330.63, 636.52, 328.89, 635.36, 326.75, 634.39, 325.79, 634.97, 330.82, 633.61, 331.6, 632.06, 329.27, 632.06, 327.34, 631.29, 325.4, 630.32, 326.17, 630.9, 329.27, 629.16, 327.72, 628.96, 325.98, 627.61, 325.59]], "area": 118.22410000000045, "iscrowd": 0, "image_id": 168001, "bbox": [626.83, 318.03, 12.6, 13.57], "category_id": 19, "id": 1832483}, {"segmentation": [[406.76, 347.55, 386.34, 316.58, 397.87, 309.99, 406.43, 305.38, 403.8, 310.32, 418.95, 338.65, 416.98, 343.26]], "area": 630.2258500000008, "iscrowd": 0, "image_id": 165347, "bbox": [386.34, 305.38, 32.61, 42.17], "category_id": 31, "id": 1833083}, {"segmentation": [[324.98, 434.39, 327.97, 434.39, 336.02, 416.12, 336.47, 413.77, 334.66, 413.77, 332.4, 414.86, 328.87, 416.57, 320.64, 430.68, 323.72, 434.39]], "area": 149.21000000000006, "iscrowd": 0, "image_id": 334097, "bbox": [320.64, 413.77, 15.83, 20.62], "category_id": 31, "id": 1833115}, {"segmentation": [[606.09, 94.69, 603.89, 85.54, 603.89, 82.97, 600.96, 86.64, 601.33, 95.43], [604.63, 108.98, 603.89, 122.16, 604.26, 129.49, 602.79, 134.25, 589.98, 134.98, 578.99, 134.98, 577.52, 120.33, 583.38, 108.98]], "area": 680.0502499999993, "iscrowd": 0, "image_id": 56699, "bbox": [577.52, 82.97, 28.57, 52.01], "category_id": 31, "id": 1833313}, {"segmentation": [[266.88, 394.64, 254.78, 364.08, 262.42, 334.79, 262.42, 321.42, 267.52, 316.97, 294.9, 314.42, 303.81, 325.24, 307.63, 329.06, 312.09, 321.42, 322.91, 317.6, 328.64, 316.97, 333.1, 309.33, 364.93, 302.32, 382.12, 331.61, 404.41, 399.74, 415.23, 410.56, 427.33, 419.47, 394.22, 408.01, 373.85, 402.92, 356.65, 406.74, 346.47, 419.47, 333.73, 444.31, 262.42, 420.11]], "area": 14320.87125, "iscrowd": 0, "image_id": 9025, "bbox": [254.78, 302.32, 172.55, 141.99], "category_id": 31, "id": 1833352}, {"segmentation": [[304.08, 174.93, 296.36, 188.32, 288.65, 190.35, 282.97, 189.54, 277.69, 183.04, 285.0, 168.43, 297.28, 170.27, 311.32, 151.05, 314.28, 146.86, 312.45, 160.11, 303.39, 168.61], [334.64, 123.15, 337.71, 106.64, 336.95, 100.49, 339.25, 108.37, 337.91, 115.28]], "area": 540.5317500000001, "iscrowd": 0, "image_id": 155049, "bbox": [277.69, 100.49, 61.56, 89.86], "category_id": 31, "id": 1833441}, {"segmentation": [[513.97, 183.45, 513.82, 183.3, 513.66, 181.89, 514.6, 180.96, 516.0, 179.87, 516.62, 178.46, 517.09, 177.37, 517.71, 176.13, 518.18, 174.57, 518.49, 173.63, 519.27, 173.32, 519.43, 174.1, 518.65, 176.28, 518.03, 177.68, 516.31, 180.33]], "area": 9.710999999999661, "iscrowd": 0, "image_id": 206427, "bbox": [513.66, 173.32, 5.77, 10.13], "category_id": 31, "id": 1833521}, {"segmentation": [[304.08, 439.52, 304.77, 436.1, 305.79, 433.02, 307.85, 430.28, 309.9, 435.76, 309.56, 438.15, 308.19, 441.23, 307.85, 445.0, 306.82, 448.76, 306.14, 451.5, 304.42, 450.82, 303.4, 449.1, 301.69, 446.02, 300.32, 441.92, 300.66, 440.89, 301.69, 442.26, 302.37, 445.0, 304.42, 447.05, 306.82, 448.42, 305.79, 444.31, 305.79, 440.89]], "area": 71.28760000000005, "iscrowd": 0, "image_id": 334097, "bbox": [300.32, 430.28, 9.58, 21.22], "category_id": 31, "id": 1833797}, {"segmentation": [[483.56, 154.16, 502.42, 175.24, 513.51, 173.02, 541.24, 102.04, 544.56, 74.31, 554.55, 29.95, 550.11, 26.62, 539.02, 51.02, 509.07, 72.09, 483.56, 148.62]], "area": 4449.742799999998, "iscrowd": 0, "image_id": 285022, "bbox": [483.56, 26.62, 70.99, 148.62], "category_id": 31, "id": 1834483}, {"segmentation": [[25.02, 272.97, 23.73, 281.44, 26.12, 285.85, 28.7, 290.45, 36.06, 291.19, 42.5, 289.17, 50.05, 288.8, 52.26, 287.33, 50.6, 282.36, 49.13, 281.99, 44.34, 281.8, 36.25, 279.96, 30.36, 276.83, 28.52, 273.15, 28.52, 273.15]], "area": 279.72455000000014, "iscrowd": 0, "image_id": 357428, "bbox": [23.73, 272.97, 28.53, 18.22], "category_id": 31, "id": 1834911}, {"segmentation": [[215.36, 234.22, 217.29, 234.86, 224.01, 232.94, 228.17, 240.3, 229.45, 244.46, 229.77, 248.3, 232.33, 250.86, 232.65, 255.03, 227.21, 256.31, 219.85, 261.75, 216.65, 264.31, 216.33, 255.67, 216.33, 246.7, 214.4, 239.34, 213.12, 236.46, 212.8, 233.9]], "area": 354.0383999999996, "iscrowd": 0, "image_id": 13417, "bbox": [212.8, 232.94, 19.85, 31.37], "category_id": 31, "id": 1835337}, {"segmentation": [[379.87, 317.12, 408.47, 353.89, 419.91, 380.86, 473.02, 400.47, 472.2, 390.66, 462.4, 381.67, 457.5, 375.95, 455.04, 372.68, 450.14, 370.23, 443.6, 371.87, 433.8, 354.71, 427.26, 339.18, 419.91, 330.19, 409.28, 321.2, 401.11, 317.12, 392.12, 312.21, 384.77, 306.49, 370.06, 305.68]], "area": 2504.76115, "iscrowd": 0, "image_id": 9025, "bbox": [370.06, 305.68, 102.96, 94.79], "category_id": 31, "id": 1836071}, {"segmentation": [[76.73, 378.66, 93.46, 428.0, 106.6, 427.64, 127.5, 422.86, 127.5, 411.52, 106.0, 373.29, 101.82, 367.32, 95.85, 360.75]], "area": 2030.3597499999996, "iscrowd": 0, "image_id": 13417, "bbox": [76.73, 360.75, 50.77, 67.25], "category_id": 31, "id": 1836125}, {"segmentation": [[462.54, 137.31, 463.31, 150.19, 446.58, 154.04, 446.39, 139.61, 458.12, 136.15, 458.89, 135.19, 454.27, 116.92, 455.43, 116.92, 462.35, 137.69]], "area": 279.9662000000007, "iscrowd": 0, "image_id": 20251, "bbox": [446.39, 116.92, 16.92, 37.12], "category_id": 31, "id": 1836494}, {"segmentation": [[536.8, 0.0, 583.38, 25.51, 602.24, 31.05, 605.56, 51.02, 600.02, 64.33, 586.71, 83.18, 554.55, 85.4, 521.27, 72.09, 516.84, 63.22, 520.16, 1.11]], "area": 5552.562299999999, "iscrowd": 0, "image_id": 191918, "bbox": [516.84, 0.0, 88.72, 85.4], "category_id": 31, "id": 1836632}, {"segmentation": [[182.68, 182.6, 219.01, 166.28, 212.8, 164.44, 183.6, 178.92, 182.68, 175.93, 181.99, 172.94, 179.46, 169.26, 175.55, 166.74, 170.96, 165.13, 166.13, 163.75, 166.13, 163.75, 159.92, 169.95, 163.14, 179.84, 175.09, 185.59, 181.99, 180.53]], "area": 467.0841000000005, "iscrowd": 0, "image_id": 125135, "bbox": [159.92, 163.75, 59.09, 21.84], "category_id": 31, "id": 1837068}, {"segmentation": [[479.22, 243.0, 494.75, 244.22, 519.68, 245.86, 531.94, 245.86, 562.18, 243.41, 576.9, 241.77, 575.67, 248.72, 567.09, 255.67, 569.13, 260.98, 576.9, 262.2, 584.25, 263.02, 590.79, 267.52, 593.65, 275.69, 554.83, 279.78, 524.18, 286.32, 496.8, 297.76, 479.63, 296.12, 477.18, 289.58, 473.5, 300.62, 472.28, 292.85, 470.23, 278.96, 473.09, 273.24, 469.83, 258.93, 474.32, 246.67]], "area": 4635.336499999998, "iscrowd": 0, "image_id": 13417, "bbox": [469.83, 241.77, 123.82, 58.85], "category_id": 31, "id": 1837463}, {"segmentation": [[504.8, 204.98, 505.43, 211.91, 507.96, 218.22, 505.01, 221.58, 495.56, 224.52, 494.3, 217.17, 495.56, 212.54, 497.45, 208.55, 499.76, 206.03, 499.76, 202.67, 498.29, 197.62, 499.55, 197.62, 500.18, 198.67, 501.65, 204.14, 501.65, 204.77, 502.28, 204.56, 504.38, 203.51, 504.38, 203.51]], "area": 192.99005, "iscrowd": 0, "image_id": 20251, "bbox": [494.3, 197.62, 13.66, 26.9], "category_id": 31, "id": 1838653}, {"segmentation": [[407.66, 297.04, 408.11, 293.27, 410.98, 287.1, 415.5, 283.48, 416.55, 282.43, 421.52, 283.48, 423.78, 285.29, 425.74, 284.69, 428.6, 287.25, 428.6, 290.86, 428.0, 293.27, 429.66, 296.59, 429.66, 298.4, 428.15, 307.74, 424.99, 315.87, 423.18, 317.98, 422.13, 318.43, 414.89, 318.89, 410.07, 316.63, 411.28, 312.41, 411.88, 306.08, 411.13, 302.31, 411.13, 300.96, 408.72, 297.34]], "area": 595.3334499999996, "iscrowd": 0, "image_id": 20251, "bbox": [407.66, 282.43, 22.0, 36.46], "category_id": 31, "id": 1838832}, {"segmentation": [[404.42, 292.95, 401.9, 292.53, 399.38, 295.68, 394.33, 304.51, 400.01, 318.16, 401.69, 318.79, 404.84, 317.74, 406.94, 315.85, 409.67, 311.44, 409.88, 309.13, 409.88, 305.35, 406.31, 299.04, 405.68, 296.1]], "area": 260.8998500000005, "iscrowd": 0, "image_id": 20251, "bbox": [394.33, 292.53, 15.55, 26.26], "category_id": 31, "id": 1839052}, {"segmentation": [[113.43, 118.6, 109.83, 120.2, 107.43, 121.0, 102.1, 118.2, 101.7, 125.13, 101.83, 129.0, 105.3, 130.2, 110.9, 131.66, 114.1, 129.0, 115.7, 127.0, 115.03, 123.13, 114.36, 118.46]], "area": 140.92134999999996, "iscrowd": 0, "image_id": 20251, "bbox": [101.7, 118.2, 14.0, 13.46], "category_id": 31, "id": 1839592}, {"segmentation": [[229.57, 161.91, 226.43, 160.5, 224.48, 159.63, 221.99, 159.74, 220.58, 161.58, 219.61, 162.77, 217.12, 163.75, 214.52, 165.59, 213.0, 165.7, 212.89, 172.3, 213.11, 176.85, 216.03, 179.13, 223.18, 178.15, 233.79, 175.77, 231.74, 174.14, 229.68, 169.6, 228.38, 165.8, 229.03, 163.53]], "area": 272.3437500000001, "iscrowd": 0, "image_id": 20251, "bbox": [212.89, 159.63, 20.9, 19.5], "category_id": 31, "id": 1839613}, {"segmentation": [[354.77, 256.02, 357.33, 269.17, 361.59, 277.19, 363.47, 283.85, 362.11, 287.94, 358.86, 290.33, 355.11, 291.53, 351.01, 291.7, 346.4, 290.33, 342.82, 288.45, 341.62, 284.87, 345.89, 284.7, 348.45, 281.29, 351.18, 277.87, 352.72, 274.8, 353.06, 270.02, 353.06, 264.56, 352.04, 258.58, 351.52, 253.64, 354.08, 253.46]], "area": 326.5268499999992, "iscrowd": 0, "image_id": 20251, "bbox": [341.62, 253.46, 21.85, 38.24], "category_id": 31, "id": 1839641}, {"segmentation": [[342.74, 210.77, 351.94, 179.06, 358.42, 166.79, 368.64, 153.16, 374.78, 147.36, 376.82, 144.63, 374.78, 153.16, 376.82, 163.38, 369.67, 178.04, 347.85, 213.15, 344.78, 218.61, 342.05, 223.38, 343.76, 216.22]], "area": 808.1665500000004, "iscrowd": 0, "image_id": 579533, "bbox": [342.05, 144.63, 34.77, 78.75], "category_id": 32, "id": 1840548}, {"segmentation": [[477.92, 147.15, 473.87, 137.62, 474.56, 135.71, 475.63, 137.08, 479.75, 146.08, 479.29, 149.06]], "area": 23.89419999999983, "iscrowd": 0, "image_id": 579533, "bbox": [473.87, 135.71, 5.88, 13.35], "category_id": 32, "id": 1840938}, {"segmentation": [[8.75, 366.25, 223.75, 241.25, 242.5, 252.5, 468.75, 158.75, 487.5, 168.75, 488.75, 203.75, 471.25, 265.0, 486.25, 278.75, 507.5, 187.5, 520.0, 166.25, 523.75, 161.25, 640.0, 160.0, 637.5, 0.0, 0.0, 0.0], [1.25, 161.25, 0.0, 471.25, 640.0, 472.5, 635.0, 350.0, 310.0, 366.25, 8.75, 362.5, 0.0, 67.5]], "area": 219242.96875, "iscrowd": 0, "image_id": 86229, "bbox": [0.0, 0.0, 640.0, 472.5], "category_id": 33, "id": 1842316}, {"segmentation": [[640.0, 211.21, 615.21, 215.54, 581.63, 207.96, 578.38, 218.79, 605.46, 239.37, 602.21, 281.61, 583.8, 287.03, 579.47, 301.11, 598.96, 311.94, 640.0, 291.36]], "area": 4109.5278499999995, "iscrowd": 0, "image_id": 269986, "bbox": [578.38, 207.96, 61.62, 103.98], "category_id": 33, "id": 1842539}, {"segmentation": [[499.25, 314.58, 504.09, 312.78, 507.68, 311.95, 510.04, 310.71, 512.8, 309.6, 515.15, 311.68, 516.95, 315.0, 518.06, 318.45, 519.58, 322.6, 520.55, 326.34, 520.41, 327.72, 521.52, 331.18, 523.31, 335.47, 524.14, 337.68, 509.48, 343.07, 507.68, 341.97, 503.12, 342.94, 502.98, 337.4, 501.46, 333.53, 500.77, 331.18, 499.8, 328.14, 499.39, 325.79, 498.83, 323.71, 498.0, 322.33, 496.07, 319.98, 494.27, 317.76, 493.99, 317.49, 499.8, 314.58]], "area": 604.4649999999997, "iscrowd": 0, "image_id": 317153, "bbox": [493.99, 309.6, 30.15, 33.47], "category_id": 33, "id": 1843009}, {"segmentation": [[355.59, 334.61, 335.78, 309.67, 297.65, 317.74, 296.91, 413.09, 335.05, 405.02, 349.72, 374.95]], "area": 4791.424099999998, "iscrowd": 0, "image_id": 13417, "bbox": [296.91, 309.67, 58.68, 103.42], "category_id": 33, "id": 1843078}, {"segmentation": [[290.51, 109.22, 302.65, 107.6, 302.65, 95.46, 288.89, 88.99, 282.42, 102.75, 290.51, 108.41]], "area": 280.94469999999956, "iscrowd": 0, "image_id": 20251, "bbox": [282.42, 88.99, 20.23, 20.23], "category_id": 33, "id": 1843279}, {"segmentation": [[165.57, 141.22, 164.8, 134.26, 162.28, 125.17, 157.64, 124.59, 152.81, 120.72, 151.26, 112.99, 147.59, 114.92, 149.91, 125.36, 150.1, 128.26, 151.45, 131.36, 157.06, 146.63, 158.61, 144.7, 163.83, 140.83, 164.41, 142.96, 166.15, 142.18]], "area": 272.87455000000034, "iscrowd": 0, "image_id": 20251, "bbox": [147.59, 112.99, 18.56, 33.64], "category_id": 33, "id": 1843513}, {"segmentation": [[345.12, 400.02, 338.93, 392.15, 340.05, 380.9, 345.96, 368.81, 357.49, 363.19, 362.83, 358.97, 366.2, 351.38, 374.64, 354.19, 377.45, 365.44, 365.92, 382.03, 352.71, 396.36, 353.83, 404.24, 351.86, 400.58, 352.14, 399.46]], "area": 958.8039999999991, "iscrowd": 0, "image_id": 20251, "bbox": [338.93, 351.38, 38.52, 52.86], "category_id": 33, "id": 1843619}, {"segmentation": [[434.9, 322.6, 425.01, 325.47, 420.54, 326.75, 418.3, 329.94, 414.15, 333.77, 411.92, 339.2, 410.0, 343.67, 408.72, 349.41, 408.72, 356.12, 410.96, 362.18, 415.11, 365.06, 421.81, 369.53, 425.01, 371.44, 425.01, 365.38, 425.32, 359.95, 425.01, 354.84, 425.01, 348.77, 426.92, 344.62, 432.67, 342.71, 437.78, 340.47, 447.99, 337.28, 454.7, 334.41, 462.04, 332.17, 468.1, 330.26, 473.53, 327.38, 478.0, 324.51, 477.36, 321.32, 476.4, 319.72, 470.98, 317.81, 465.87, 316.85, 459.8, 317.49, 453.74, 319.08, 445.12, 321.96, 442.24, 323.55, 433.63, 323.55]], "area": 1344.648949999999, "iscrowd": 0, "image_id": 13417, "bbox": [408.72, 316.85, 69.28, 54.59], "category_id": 33, "id": 1843897}, {"segmentation": [[390.25, 174.1, 401.41, 173.1, 408.61, 174.59, 415.81, 183.28, 414.81, 190.97, 402.65, 194.69, 395.95, 194.2, 392.98, 184.27, 390.0, 174.59]], "area": 410.4703999999999, "iscrowd": 0, "image_id": 20251, "bbox": [390.0, 173.1, 25.81, 21.59], "category_id": 33, "id": 1843943}, {"segmentation": [[436.52, 241.2, 435.68, 237.63, 434.84, 234.27, 434.0, 231.53, 434.84, 228.38, 436.94, 226.49, 438.41, 226.07, 442.4, 225.44, 444.93, 225.86, 446.61, 228.8, 447.45, 229.01, 447.45, 223.97, 447.45, 216.4, 447.87, 209.68, 444.93, 205.9, 442.61, 202.75, 440.72, 200.43, 438.2, 202.54, 434.42, 206.53, 432.95, 209.89, 430.22, 209.47, 429.17, 216.61, 427.27, 219.98, 427.27, 224.18, 426.85, 228.59, 427.48, 233.01, 429.38, 236.37, 431.69, 238.68, 433.58, 240.36, 435.68, 241.62]], "area": 486.4914999999997, "iscrowd": 0, "image_id": 20251, "bbox": [426.85, 200.43, 21.02, 41.19], "category_id": 33, "id": 1843993}, {"segmentation": [[282.3, 178.97, 301.32, 158.48, 285.22, 148.24, 266.2, 162.14]], "area": 534.2751999999998, "iscrowd": 0, "image_id": 20251, "bbox": [266.2, 148.24, 35.12, 30.73], "category_id": 33, "id": 1844028}, {"segmentation": [[279.49, 86.18, 278.38, 72.87, 272.84, 69.54, 263.96, 69.54, 258.42, 78.41, 263.96, 86.18]], "area": 284.20455000000004, "iscrowd": 0, "image_id": 20251, "bbox": [258.42, 69.54, 21.07, 16.64], "category_id": 33, "id": 1844076}, {"segmentation": [[498.35, 246.06, 508.59, 247.53, 504.2, 265.09, 490.3, 263.62]], "area": 221.09259999999915, "iscrowd": 0, "image_id": 20251, "bbox": [490.3, 246.06, 18.29, 19.03], "category_id": 33, "id": 1844311}, {"segmentation": [[432.48, 209.21, 437.88, 204.79, 435.42, 209.7, 427.07, 211.91], [411.6, 212.16, 406.69, 207.25, 407.18, 205.77, 412.58, 211.67]], "area": 22.165199999999807, "iscrowd": 0, "image_id": 311522, "bbox": [406.69, 204.79, 31.19, 7.37], "category_id": 35, "id": 1846912}, {"segmentation": [[588.08, 155.19, 582.88, 159.07, 581.84, 157.84, 585.05, 155.66, 587.04, 155.57], [578.43, 156.61, 574.84, 157.74, 574.55, 157.18, 576.44, 155.76]], "area": 10.81785000000009, "iscrowd": 0, "image_id": 311522, "bbox": [574.55, 155.19, 13.53, 3.88], "category_id": 35, "id": 1848211}, {"segmentation": [[570.68, 289.17, 574.53, 290.71, 577.62, 290.71, 580.9, 290.71, 584.95, 291.1, 586.69, 291.1, 585.34, 292.84, 581.09, 293.03, 572.99, 292.45, 571.83, 292.26, 570.68, 291.48]], "area": 32.33859999999995, "iscrowd": 0, "image_id": 45124, "bbox": [570.68, 289.17, 16.01, 3.86], "category_id": 36, "id": 1851987}, {"segmentation": [[363.56, 245.79, 368.32, 252.17, 367.97, 253.57, 364.03, 254.61, 356.71, 255.19, 348.82, 255.77, 344.76, 254.03, 345.1, 247.53, 351.49, 251.01, 358.57, 250.67, 362.63, 248.23]], "area": 124.43950000000032, "iscrowd": 0, "image_id": 275432, "bbox": [344.76, 245.79, 23.56, 9.98], "category_id": 36, "id": 1852749}, {"segmentation": [[608.48, 302.59, 588.44, 301.94, 587.9, 300.0, 591.35, 300.22, 595.23, 301.3, 609.02, 300.76]], "area": 29.286899999999548, "iscrowd": 0, "image_id": 45124, "bbox": [587.9, 300.0, 21.12, 2.59], "category_id": 36, "id": 1853003}, {"segmentation": [[114.11, 352.27, 106.05, 353.03, 104.96, 352.36, 105.38, 351.18, 110.75, 351.1, 113.18, 351.68, 115.54, 351.43]], "area": 13.02934999999968, "iscrowd": 0, "image_id": 45124, "bbox": [104.96, 351.1, 10.58, 1.93], "category_id": 36, "id": 1853246}, {"segmentation": [[6.03, 385.81, 6.03, 379.05, 6.87, 373.69, 8.56, 371.44, 12.51, 368.06, 16.74, 366.93, 20.97, 366.93, 23.78, 367.49, 29.14, 369.18, 31.96, 372.0, 33.93, 375.1, 34.78, 381.02, 34.78, 382.43, 33.93, 384.69, 29.99, 387.79, 23.5, 388.07, 19.84, 391.17, 15.33, 395.68, 14.2, 396.81, 11.66, 392.86, 9.97, 388.91]], "area": 581.9051500000002, "iscrowd": 0, "image_id": 456433, "bbox": [6.03, 366.93, 28.75, 29.88], "category_id": 37, "id": 1854016}, {"segmentation": [[16.95, 406.67, 14.86, 402.08, 15.42, 396.8, 23.2, 388.18, 32.37, 387.35, 39.46, 392.21, 39.74, 402.5, 37.38, 408.48, 30.29, 413.06, 23.48, 413.62]], "area": 499.68845, "iscrowd": 0, "image_id": 456433, "bbox": [14.86, 387.35, 24.88, 26.27], "category_id": 37, "id": 1854404}, {"segmentation": [[0.0, 389.05, 5.38, 388.17, 10.91, 388.9, 14.11, 394.28, 11.05, 407.81, 5.96, 412.03, 0.0, 410.13, 0.0, 393.26]], "area": 271.31894999999986, "iscrowd": 0, "image_id": 456433, "bbox": [0.0, 388.17, 14.11, 23.86], "category_id": 37, "id": 1854797}, {"segmentation": [[156.04, 108.18, 161.54, 129.72, 145.5, 149.43, 132.21, 150.8, 137.71, 159.97, 143.21, 161.34, 147.33, 165.47, 148.71, 174.63, 145.04, 179.22, 136.33, 178.3, 130.38, 174.63, 130.83, 169.13, 137.25, 163.63, 130.38, 154.47, 127.63, 151.26, 122.58, 161.34, 116.17, 151.26, 119.38, 137.51, 117.08, 136.14, 112.5, 147.14, 110.21, 155.84, 102.88, 141.18, 108.38, 128.8, 104.71, 127.43, 97.38, 145.76, 95.54, 147.14, 86.83, 135.22, 95.08, 121.47, 90.04, 118.26, 97.38, 115.97, 101.96, 102.22, 95.08, 99.01, 95.54, 97.18, 103.79, 100.84, 111.13, 83.43, 120.75, 82.97, 114.33, 99.47, 116.63, 102.22, 121.21, 103.59, 128.54, 88.47, 135.88, 88.93, 127.63, 102.68, 135.42, 104.51, 139.08, 95.34, 147.33, 93.05, 143.67, 104.97, 149.62, 106.8, 147.79, 121.01, 143.21, 119.18, 155.12, 125.14, 153.29, 105.43]], "area": 3372.80855, "iscrowd": 0, "image_id": 189847, "bbox": [86.83, 82.97, 74.71, 96.25], "category_id": 38, "id": 1855372}, {"segmentation": [[28.3, 119.93, 33.83, 120.82, 38.12, 122.61, 37.05, 125.28, 29.19, 124.93]], "area": 37.07805000000003, "iscrowd": 0, "image_id": 476575, "bbox": [28.3, 119.93, 9.82, 5.35], "category_id": 38, "id": 1855402}, {"segmentation": [[99.84, 451.19, 102.49, 451.5, 106.23, 452.28, 109.66, 452.28, 111.38, 452.75, 113.25, 454.46, 110.29, 456.8, 106.23, 456.95, 102.18, 456.64, 98.75, 455.86, 96.26, 454.15, 96.73, 452.43]], "area": 69.3012000000001, "iscrowd": 0, "image_id": 574668, "bbox": [96.26, 451.19, 16.99, 5.76], "category_id": 38, "id": 1855433}, {"segmentation": [[78.63, 380.09, 82.19, 379.72, 82.81, 381.47, 81.32, 382.78, 78.32, 384.09, 77.32, 384.65, 75.51, 389.33, 75.01, 387.65, 76.14, 383.65, 75.32, 380.72, 78.94, 380.09]], "area": 28.67644999999982, "iscrowd": 0, "image_id": 574668, "bbox": [75.01, 379.72, 7.8, 9.61], "category_id": 38, "id": 1856134}, {"segmentation": [[224.28, 112.48, 221.69, 113.47, 219.22, 117.3, 222.43, 120.88, 228.85, 118.53, 228.23, 115.45]], "area": 50.48324999999993, "iscrowd": 0, "image_id": 476575, "bbox": [219.22, 112.48, 9.63, 8.4], "category_id": 38, "id": 1856497}, {"segmentation": [[387.39, 107.52, 388.1, 105.78, 388.26, 105.52, 388.61, 105.16, 388.92, 104.6, 391.22, 104.86, 391.89, 104.96, 391.99, 105.01, 390.86, 106.39, 390.56, 107.72, 387.74, 109.41, 386.88, 109.82]], "area": 12.883500000000055, "iscrowd": 0, "image_id": 560350, "bbox": [386.88, 104.6, 5.11, 5.22], "category_id": 38, "id": 1856513}, {"segmentation": [[204.21, 111.62, 202.14, 112.76, 201.73, 113.48, 202.3, 114.82, 203.33, 116.21, 204.36, 116.88, 205.96, 116.16, 206.83, 114.82, 206.83, 113.22, 205.8, 112.24]], "area": 18.302500000000013, "iscrowd": 0, "image_id": 476575, "bbox": [201.73, 111.62, 5.1, 5.26], "category_id": 38, "id": 1856536}, {"segmentation": [[443.04, 222.45, 438.35, 223.38, 431.45, 220.69, 428.88, 218.59, 441.16, 215.07, 450.64, 215.31, 454.74, 218.47, 453.33, 220.22]], "area": 136.87864999999988, "iscrowd": 0, "image_id": 404964, "bbox": [428.88, 215.07, 25.86, 8.31], "category_id": 38, "id": 1856767}, {"segmentation": [[270.97, 143.25, 272.24, 142.49, 273.42, 141.81, 274.02, 143.34, 274.19, 144.44, 273.51, 145.37, 272.41, 145.54]], "area": 7.27649999999988, "iscrowd": 0, "image_id": 476575, "bbox": [270.97, 141.81, 3.22, 3.73], "category_id": 38, "id": 1856926}, {"segmentation": [[97.25, 157.61, 97.08, 154.93, 100.12, 155.29, 97.79, 157.43]], "area": 4.4111000000000224, "iscrowd": 0, "image_id": 476575, "bbox": [97.08, 154.93, 3.04, 2.68], "category_id": 38, "id": 1857000}, {"segmentation": [[367.25, 165.47, 365.1, 162.37, 367.25, 158.06, 371.79, 159.5, 369.64, 164.75, 368.2, 165.95]], "area": 31.20179999999991, "iscrowd": 0, "image_id": 560350, "bbox": [365.1, 158.06, 6.69, 7.89], "category_id": 38, "id": 1857033}, {"segmentation": [[199.62, 84.59, 199.79, 81.62, 203.01, 82.13, 202.5, 85.09]], "area": 9.214949999999995, "iscrowd": 0, "image_id": 476575, "bbox": [199.62, 81.62, 3.39, 3.47], "category_id": 38, "id": 1857053}, {"segmentation": [[367.41, 61.14, 365.42, 61.55, 362.4, 62.65, 358.42, 62.79, 359.18, 64.02, 360.96, 64.92, 368.58, 65.19, 370.5, 64.37, 372.01, 62.31, 372.28, 60.18, 370.57, 59.77, 369.47, 59.91]], "area": 42.91374999999992, "iscrowd": 0, "image_id": 560350, "bbox": [358.42, 59.77, 13.86, 5.42], "category_id": 38, "id": 1857082}, {"segmentation": [[44.9, 19.66, 47.85, 18.72, 53.99, 23.44, 47.38, 24.03]], "area": 25.022250000000017, "iscrowd": 0, "image_id": 476575, "bbox": [44.9, 18.72, 9.09, 5.31], "category_id": 38, "id": 1857091}, {"segmentation": [[391.27, 106.25, 391.99, 105.4, 392.78, 109.67, 391.34, 109.8, 390.29, 108.94, 391.2, 107.37]], "area": 5.812499999999964, "iscrowd": 0, "image_id": 560350, "bbox": [390.29, 105.4, 2.49, 4.4], "category_id": 38, "id": 1857101}, {"segmentation": [[119.07, 154.69, 117.39, 158.49, 117.73, 159.83, 118.34, 160.61, 119.24, 160.39, 119.57, 159.33, 119.68, 158.27, 119.85, 157.26, 120.35, 157.04, 121.69, 158.27, 122.14, 159.05, 122.59, 159.89, 122.64, 159.94, 125.49, 159.94, 125.1, 158.27, 123.71, 156.53, 122.03, 155.14, 121.25, 154.47, 120.35, 153.41, 119.63, 153.63, 119.4, 154.13]], "area": 28.269449999999996, "iscrowd": 0, "image_id": 476575, "bbox": [117.39, 153.41, 8.1, 7.2], "category_id": 38, "id": 1857146}, {"segmentation": [[212.46, 125.38, 214.0, 125.52, 214.84, 126.36, 214.42, 128.59, 212.88, 128.17, 212.6, 125.8, 212.6, 125.52]], "area": 5.3809000000000085, "iscrowd": 0, "image_id": 476575, "bbox": [212.46, 125.38, 2.38, 3.21], "category_id": 38, "id": 1857195}, {"segmentation": [[49.22, 80.74, 47.69, 78.93, 48.11, 76.0, 52.71, 76.28, 52.15, 79.77, 53.27, 81.02, 54.8, 82.28, 53.83, 82.42, 51.87, 81.44]], "area": 23.44615000000001, "iscrowd": 0, "image_id": 476575, "bbox": [47.69, 76.0, 7.11, 6.42], "category_id": 38, "id": 1857209}, {"segmentation": [[276.13, 46.92, 276.13, 42.17, 280.46, 42.59, 280.18, 46.5]], "area": 18.142699999999984, "iscrowd": 0, "image_id": 476575, "bbox": [276.13, 42.17, 4.33, 4.75], "category_id": 38, "id": 1857228}, {"segmentation": [[202.95, 197.19, 224.61, 199.25, 221.51, 211.62, 223.92, 215.41, 219.11, 221.94, 223.58, 226.75, 225.3, 228.47, 222.2, 232.93, 217.73, 237.4, 215.33, 240.5, 212.92, 242.56, 209.83, 248.74, 203.99, 243.93, 200.89, 243.24, 193.33, 228.12, 202.95, 207.5, 197.46, 206.13, 197.8, 201.66]], "area": 1086.5007000000003, "iscrowd": 0, "image_id": 383605, "bbox": [193.33, 197.19, 31.97, 51.55], "category_id": 40, "id": 1858388}, {"segmentation": [[153.64, 80.49, 161.12, 76.75, 166.81, 76.75, 181.47, 83.19, 184.61, 86.63, 181.17, 99.34, 180.12, 100.39, 173.39, 97.7, 169.2, 99.49, 164.41, 99.64, 158.13, 96.2, 149.01, 90.22, 147.36, 87.67, 150.2, 86.18, 157.98, 82.29, 159.78, 79.89, 152.9, 80.64]], "area": 573.7660500000002, "iscrowd": 0, "image_id": 506417, "bbox": [147.36, 76.75, 37.25, 23.64], "category_id": 40, "id": 1858932}, {"segmentation": [[176.25, 405.14, 179.74, 405.14, 181.89, 404.07, 195.34, 400.84, 205.57, 403.8, 213.1, 404.61, 211.75, 394.92, 207.22, 394.94, 205.72, 398.4, 197.45, 398.25, 196.7, 395.69, 198.65, 393.74, 204.21, 392.54, 227.81, 394.49, 228.41, 398.25, 235.32, 398.4, 235.92, 387.88, 228.56, 388.33, 227.2, 390.58, 219.09, 388.03, 233.31, 385.12, 242.28, 373.73, 229.17, 364.41, 213.98, 365.1, 197.4, 375.45, 172.89, 386.85, 171.51, 389.26, 188.08, 393.41, 189.12, 393.75, 189.46, 395.48, 183.25, 398.93, 181.27, 399.01, 180.18, 395.74, 174.53, 396.23, 173.34, 402.08, 174.53, 406.05]], "area": 1574.9862999999996, "iscrowd": 0, "image_id": 450281, "bbox": [171.51, 364.41, 70.77, 41.64], "category_id": 41, "id": 1860499}, {"segmentation": [[31.38, 181.03, 28.17, 180.23, 18.82, 180.23, 8.65, 181.57, 2.24, 181.03, 0.0, 183.7, 6.25, 183.97, 11.86, 185.04, 12.4, 185.31, 11.86, 186.65, 7.32, 186.65, 5.45, 190.12, 7.58, 193.33, 12.13, 192.53, 16.14, 191.46, 22.83, 192.53, 23.09, 189.86, 22.56, 187.98, 20.95, 188.25, 16.68, 189.32, 15.07, 187.98, 15.34, 185.84, 19.35, 185.58, 27.91, 185.04]], "area": 202.55935000000036, "iscrowd": 0, "image_id": 45949, "bbox": [0.0, 180.23, 31.38, 13.1], "category_id": 41, "id": 1861596}, {"segmentation": [[464.61, 93.93, 471.85, 93.93, 471.85, 87.17, 466.54, 85.24, 466.54, 93.45], [485.85, 89.58, 495.02, 90.07, 493.09, 93.45, 485.85, 93.93, 485.85, 90.55], [451.09, 81.86, 452.06, 90.07, 452.06, 91.03, 332.82, 96.34, 327.51, 92.96, 335.23, 90.55, 335.71, 87.17, 333.3, 82.34, 331.37, 79.44, 331.85, 77.51, 337.64, 79.44, 342.95, 85.72, 345.85, 89.1, 364.68, 87.17, 383.02, 85.24, 400.4, 84.76, 415.37, 81.86, 426.47, 81.86, 438.54, 81.86, 450.13, 81.38]], "area": 1202.6941000000002, "iscrowd": 0, "image_id": 448843, "bbox": [327.51, 77.51, 167.51, 18.83], "category_id": 42, "id": 1863549}, {"segmentation": [[243.57, 39.69, 253.22, 44.81, 255.64, 52.51, 252.77, 61.55, 245.68, 67.28, 235.58, 68.19, 233.77, 73.62, 228.34, 72.26, 227.74, 62.76, 224.12, 61.55, 221.56, 57.48, 219.75, 53.71, 220.95, 46.93, 225.33, 42.4, 233.32, 39.54, 239.2, 38.63]], "area": 837.6109499999999, "iscrowd": 0, "image_id": 353009, "bbox": [219.75, 38.63, 35.89, 34.99], "category_id": 43, "id": 1864206}, {"segmentation": [[202.41, 28.58, 207.81, 26.3, 210.4, 25.05, 214.34, 24.53, 216.1, 27.64, 213.72, 30.86, 206.15, 35.11, 202.41, 28.79]], "area": 80.54799999999997, "iscrowd": 0, "image_id": 353009, "bbox": [202.41, 24.53, 13.69, 10.58], "category_id": 43, "id": 1864359}, {"segmentation": [[468.53, 214.57, 474.97, 213.5, 476.05, 209.56, 477.12, 199.53, 477.48, 192.73, 477.48, 187.36, 476.4, 181.63, 475.69, 176.62, 475.69, 171.61, 474.97, 166.59, 472.82, 164.45, 467.45, 166.24, 466.38, 171.25, 464.95, 177.69, 465.3, 180.92, 467.45, 186.64, 468.17, 193.8, 469.24, 202.4, 471.03, 210.99]], "area": 419.1457000000005, "iscrowd": 0, "image_id": 472861, "bbox": [464.95, 164.45, 12.53, 50.12], "category_id": 44, "id": 1864991}, {"segmentation": [[115.99, 205.54, 118.21, 198.22, 118.38, 188.52, 117.36, 185.97, 117.36, 184.78, 121.1, 184.61, 120.76, 188.18, 121.27, 201.32, 119.91, 205.23, 120.08, 229.23, 120.42, 234.67, 118.21, 234.5, 117.02, 232.97, 116.68, 208.81, 116.16, 206.6]], "area": 158.61639999999994, "iscrowd": 0, "image_id": 222572, "bbox": [115.99, 184.61, 5.28, 50.06], "category_id": 44, "id": 1865569}, {"segmentation": [[82.86, 262.87, 82.37, 248.38, 84.58, 241.5, 103.24, 242.73, 103.24, 250.83, 95.63, 254.03, 84.58, 263.36]], "area": 298.20280000000014, "iscrowd": 0, "image_id": 501625, "bbox": [82.37, 241.5, 20.87, 21.86], "category_id": 44, "id": 1865632}, {"segmentation": [[7.98, 367.21, 31.17, 366.77, 41.43, 368.11, 43.21, 396.65, 40.09, 399.33, 41.43, 412.26, 41.43, 418.51, 49.9, 428.32, 53.03, 436.79, 49.01, 479.61, 49.01, 480.0, 0.84, 480.0, 0.0, 368.11]], "area": 5182.5158, "iscrowd": 0, "image_id": 501625, "bbox": [0.0, 366.77, 53.03, 113.23], "category_id": 44, "id": 1865697}, {"segmentation": [[429.67, 208.49, 434.2, 208.34, 434.04, 214.74, 436.54, 217.71, 435.92, 240.19, 431.23, 242.22, 426.7, 241.44, 425.77, 235.98, 426.86, 215.68, 428.73, 214.11, 429.2, 208.8]], "area": 294.3992500000005, "iscrowd": 0, "image_id": 222572, "bbox": [425.77, 208.34, 10.77, 33.88], "category_id": 44, "id": 1865851}, {"segmentation": [[184.36, 158.84, 183.71, 161.93, 181.52, 166.07, 181.39, 169.42, 182.55, 171.36, 182.55, 181.56, 185.26, 182.21, 188.23, 181.82, 189.0, 180.91, 189.0, 162.45, 186.81, 160.13, 186.68, 157.93, 185.65, 157.29, 184.49, 157.67]], "area": 146.09199999999984, "iscrowd": 0, "image_id": 83968, "bbox": [181.39, 157.29, 7.61, 24.92], "category_id": 44, "id": 1866639}, {"segmentation": [[192.01, 288.13, 192.01, 295.01, 190.37, 298.45, 188.72, 303.38, 188.43, 313.25, 188.72, 321.17, 195.6, 321.92, 199.64, 321.02, 200.24, 306.07, 198.89, 299.05, 197.84, 296.21, 197.84, 290.83, 196.95, 288.28, 194.85, 287.84, 193.81, 287.99]], "area": 316.99095000000017, "iscrowd": 0, "image_id": 3366, "bbox": [188.43, 287.84, 11.81, 34.08], "category_id": 44, "id": 1866821}, {"segmentation": [[333.38, 214.84, 328.55, 215.46, 323.71, 214.37, 323.71, 202.99, 325.58, 200.34, 326.99, 196.6, 331.82, 196.6, 331.82, 202.53, 333.69, 209.38, 333.53, 213.75]], "area": 153.68765000000025, "iscrowd": 0, "image_id": 472861, "bbox": [323.71, 196.6, 9.98, 18.86], "category_id": 44, "id": 1866874}, {"segmentation": [[535.83, 21.05, 548.78, 28.76, 557.11, 23.62, 560.5, 18.37, 561.74, 16.42, 561.84, 12.1, 561.94, 7.78, 566.88, 1.82, 570.37, 0.0, 559.89, 0.28, 547.86, 14.26, 540.35, 23.31]], "area": 332.4789500000004, "iscrowd": 0, "image_id": 510371, "bbox": [535.83, 0.0, 34.54, 28.76], "category_id": 44, "id": 1867035}, {"segmentation": [[198.59, 181.47, 191.91, 182.26, 189.21, 181.15, 191.44, 160.96, 192.55, 160.17, 191.28, 158.26, 191.91, 156.67, 194.77, 156.51, 198.43, 157.31, 198.91, 159.69, 196.84, 160.17, 197.95, 164.14, 198.43, 180.83]], "area": 189.85024999999987, "iscrowd": 0, "image_id": 83968, "bbox": [189.21, 156.51, 9.7, 25.75], "category_id": 44, "id": 1867140}, {"segmentation": [[6.16, 372.59, 4.24, 372.59, 4.38, 370.12, 2.59, 369.84, 2.59, 357.09, 5.61, 352.43, 6.43, 347.22, 5.34, 347.09, 5.2, 346.4, 5.88, 345.99, 10.0, 346.13, 10.68, 347.36, 9.72, 347.77, 9.45, 350.38, 9.31, 353.53, 10.82, 356.68, 11.92, 356.96, 10.82, 371.63, 6.3, 373.41]], "area": 182.60314999999997, "iscrowd": 0, "image_id": 371714, "bbox": [2.59, 345.99, 9.33, 27.42], "category_id": 44, "id": 1867846}, {"segmentation": [[7.44, 220.74, 17.26, 220.74, 14.61, 197.68, 12.43, 195.5, 11.96, 188.33, 8.22, 189.11, 8.84, 195.5, 6.82, 197.37, 7.6, 220.59]], "area": 238.80964999999998, "iscrowd": 0, "image_id": 290153, "bbox": [6.82, 188.33, 10.44, 32.41], "category_id": 44, "id": 1867860}, {"segmentation": [[53.61, 269.16, 48.4, 269.65, 44.65, 269.16, 38.23, 267.83, 37.74, 261.41, 38.35, 255.96, 38.83, 250.03, 39.2, 245.54, 40.17, 244.58, 40.17, 243.0, 40.29, 240.7, 41.01, 240.09, 48.28, 240.34, 54.09, 240.82, 56.27, 241.55, 55.79, 245.18, 55.67, 246.15, 56.27, 247.6, 54.94, 268.19, 54.22, 269.53]], "area": 485.6738500000001, "iscrowd": 0, "image_id": 501625, "bbox": [37.74, 240.09, 18.53, 29.56], "category_id": 44, "id": 1867862}, {"segmentation": [[512.02, 126.58, 504.7, 124.69, 500.92, 112.41, 503.51, 107.45, 529.26, 81.94, 538.71, 78.16, 547.45, 66.82, 552.41, 69.18, 544.62, 79.81, 537.53, 84.06, 516.27, 106.03, 513.67, 110.99, 514.85, 116.9, 516.98, 121.62]], "area": 608.4121499999991, "iscrowd": 0, "image_id": 211622, "bbox": [500.92, 66.82, 51.49, 59.76], "category_id": 44, "id": 1867924}, {"segmentation": [[87.76, 239.78, 88.33, 222.06, 96.14, 221.3, 103.76, 223.59, 102.24, 241.49, 88.33, 239.97]], "area": 280.7677499999999, "iscrowd": 0, "image_id": 501625, "bbox": [87.76, 221.3, 16.0, 20.19], "category_id": 44, "id": 1869422}, {"segmentation": [[577.32, 266.62, 578.34, 254.85, 578.6, 246.15, 580.39, 240.52, 581.67, 237.45, 581.93, 233.35, 581.93, 229.0, 580.9, 224.91, 583.21, 222.09, 586.28, 220.81, 590.63, 220.81, 595.23, 220.81, 599.84, 222.86, 598.56, 225.68, 597.54, 232.84, 598.3, 238.47, 599.58, 242.31, 599.84, 247.43, 599.84, 268.67, 597.28, 270.71, 587.56, 271.23, 581.16, 270.97]], "area": 966.8593500000002, "iscrowd": 0, "image_id": 461530, "bbox": [577.32, 220.81, 22.52, 50.42], "category_id": 44, "id": 1869599}, {"segmentation": [[479.8, 429.89, 475.07, 429.89, 469.72, 429.89, 459.32, 427.68, 447.67, 422.33, 439.17, 413.83, 439.48, 402.49, 442.95, 394.3, 452.39, 359.34, 453.97, 349.89, 458.06, 341.39, 464.36, 327.84, 470.35, 324.06, 480.0, 323.75]], "area": 3146.7088499999995, "iscrowd": 0, "image_id": 111705, "bbox": [439.17, 323.75, 40.83, 106.14], "category_id": 44, "id": 1869621}, {"segmentation": [[253.04, 278.88, 249.65, 296.36, 247.4, 322.29, 258.67, 329.62, 260.37, 336.95, 271.08, 329.62, 286.3, 322.86, 289.68, 285.08, 281.23, 269.86, 263.18, 269.3, 255.29, 274.94]], "area": 2150.74325, "iscrowd": 0, "image_id": 111705, "bbox": [247.4, 269.3, 42.28, 67.65], "category_id": 44, "id": 1870028}, {"segmentation": [[239.65, 395.89, 241.6, 421.54, 239.86, 423.6, 236.36, 428.02, 235.13, 430.69, 233.58, 435.32, 228.55, 435.32, 228.14, 434.19, 226.39, 431.0, 225.26, 432.23, 224.33, 434.19, 223.61, 434.8, 218.57, 434.39, 216.41, 431.62, 213.95, 426.48, 212.92, 418.87, 212.71, 413.73, 211.48, 401.39, 210.66, 392.65, 211.17, 390.18, 217.13, 392.03, 222.07, 393.57, 229.27, 394.5, 234.0, 393.37, 239.03, 391.72, 239.45, 396.04]], "area": 1096.4921000000004, "iscrowd": 0, "image_id": 130624, "bbox": [210.66, 390.18, 30.94, 45.14], "category_id": 44, "id": 1870364}, {"segmentation": [[351.3, 223.47, 331.6, 251.01, 319.42, 270.71, 312.18, 285.49, 310.44, 289.26, 311.02, 292.45, 321.74, 297.67, 330.73, 282.89, 340.0, 265.5, 348.69, 254.77, 350.43, 250.43, 356.52, 251.88, 362.32, 235.07, 368.69, 222.02, 359.13, 216.81, 356.81, 216.52, 351.88, 223.18]], "area": 1402.7231999999992, "iscrowd": 0, "image_id": 428340, "bbox": [310.44, 216.52, 58.25, 81.15], "category_id": 44, "id": 1870751}, {"segmentation": [[537.31, 283.38, 537.54, 259.01, 535.26, 252.86, 535.26, 243.52, 537.08, 240.34, 536.86, 238.51, 530.25, 235.78, 525.92, 235.78, 519.54, 236.46, 516.13, 239.88, 516.13, 243.07, 517.95, 244.44, 517.72, 251.95, 515.44, 259.24, 514.76, 268.12, 513.17, 284.07, 513.62, 287.26, 520.91, 288.85, 532.3, 287.48, 536.86, 286.57]], "area": 1092.6624999999988, "iscrowd": 0, "image_id": 461530, "bbox": [513.17, 235.78, 24.37, 53.07], "category_id": 44, "id": 1870775}, {"segmentation": [[580.29, 1.35, 578.4, 4.43, 583.13, 16.24, 582.89, 19.31, 571.08, 23.32, 567.3, 22.85, 563.28, 17.18, 562.34, 7.5, 570.13, 1.12]], "area": 345.7723999999999, "iscrowd": 0, "image_id": 510371, "bbox": [562.34, 1.12, 20.79, 22.2], "category_id": 44, "id": 1871287}, {"segmentation": [[74.49, 365.66, 79.11, 365.21, 80.6, 363.13, 81.94, 342.27, 79.71, 340.63, 79.71, 338.4, 78.96, 336.76, 75.98, 336.61, 75.54, 335.12, 73.3, 334.67, 72.85, 330.95, 66.9, 331.25, 69.13, 333.03, 68.83, 334.08, 73.45, 337.65, 71.81, 340.19, 72.41, 343.31, 70.32, 346.74, 70.62, 351.36, 71.51, 355.08, 74.34, 359.26, 73.3, 362.09, 74.34, 362.83, 74.34, 366.41, 76.73, 365.66], [60.04, 338.99, 59.0, 342.27, 60.34, 346.29, 60.04, 359.4, 59.89, 361.04, 63.02, 355.83, 63.92, 347.04, 61.38, 343.31, 60.49, 339.89, 60.34, 339.59]], "area": 327.6108499999997, "iscrowd": 0, "image_id": 121316, "bbox": [59.0, 330.95, 22.94, 35.46], "category_id": 44, "id": 1871303}, {"segmentation": [[584.24, 19.56, 593.26, 18.41, 599.01, 13.8, 598.06, 2.29, 596.71, 0.18, 581.75, 0.18, 578.87, 4.21, 583.67, 19.56]], "area": 313.7212499999998, "iscrowd": 0, "image_id": 510371, "bbox": [578.87, 0.18, 20.14, 19.38], "category_id": 44, "id": 1871467}, {"segmentation": [[622.93, 82.12, 609.39, 98.12, 609.88, 104.77, 609.63, 115.12, 602.49, 115.85, 590.67, 116.59, 587.22, 109.45, 585.5, 99.85, 590.18, 92.46, 607.91, 73.5, 618.99, 62.42, 633.27, 56.51, 639.92, 60.94, 635.24, 70.54]], "area": 1299.56975, "iscrowd": 0, "image_id": 211622, "bbox": [585.5, 56.51, 54.42, 60.08], "category_id": 44, "id": 1871507}, {"segmentation": [[410.63, 58.5, 408.36, 75.34, 411.11, 76.31, 419.05, 76.79, 420.83, 75.98, 421.48, 61.57, 422.29, 57.2, 422.12, 53.97, 419.69, 52.67, 412.73, 53.48, 411.92, 56.72, 410.14, 58.82]], "area": 266.051, "iscrowd": 0, "image_id": 111705, "bbox": [408.36, 52.67, 13.93, 24.12], "category_id": 44, "id": 1871629}, {"segmentation": [[592.89, 37.2, 583.1, 41.55, 572.21, 42.64, 564.6, 36.11, 563.51, 28.49, 567.86, 23.05, 591.8, 0.0, 610.3, 0.2, 615.74, 1.29, 605.95, 11.08, 595.07, 18.7, 595.07, 25.23, 596.15, 35.02, 597.24, 36.11]], "area": 1095.5385000000015, "iscrowd": 0, "image_id": 211622, "bbox": [563.51, 0.0, 52.23, 42.64], "category_id": 44, "id": 1871648}, {"segmentation": [[476.15, 103.88, 479.22, 97.19, 482.01, 81.57, 482.57, 76.82, 489.82, 76.82, 489.82, 91.61, 494.01, 96.07, 492.89, 138.48, 480.06, 117.0, 474.48, 107.79]], "area": 668.1753999999994, "iscrowd": 0, "image_id": 510371, "bbox": [474.48, 76.82, 19.53, 61.66], "category_id": 44, "id": 1872479}, {"segmentation": [[51.57, 334.69, 49.86, 329.9, 45.07, 330.92, 44.04, 335.72, 41.99, 335.03, 40.96, 338.45, 38.22, 338.45, 38.22, 360.7, 49.86, 360.7, 48.49, 339.14, 47.46, 334.35, 50.2, 332.98]], "area": 287.98440000000005, "iscrowd": 0, "image_id": 121316, "bbox": [38.22, 329.9, 13.35, 30.8], "category_id": 44, "id": 1872626}, {"segmentation": [[614.1, 67.71, 583.67, 104.23, 587.25, 118.19, 581.87, 119.27, 573.64, 119.27, 570.06, 116.76, 567.91, 110.32, 564.69, 104.23, 565.76, 101.72, 595.84, 72.72, 613.02, 59.12, 619.11, 55.54]], "area": 943.6600999999995, "iscrowd": 0, "image_id": 211622, "bbox": [564.69, 55.54, 54.42, 63.73], "category_id": 44, "id": 1872830}, {"segmentation": [[536.74, 53.69, 529.74, 58.75, 520.4, 56.81, 516.51, 42.41, 543.35, 16.73, 551.91, 16.73, 559.31, 8.56, 563.59, 9.73, 533.63, 38.13, 537.13, 54.86]], "area": 631.9844500000008, "iscrowd": 0, "image_id": 211622, "bbox": [516.51, 8.56, 47.08, 50.19], "category_id": 44, "id": 1872937}, {"segmentation": [[599.23, 37.26, 612.92, 33.35, 617.27, 26.17, 615.1, 19.87, 614.01, 15.31, 614.44, 8.78, 620.31, 1.18, 616.84, 0.52, 612.27, 5.74, 602.71, 12.91, 598.79, 15.74, 594.45, 19.22, 595.97, 26.39, 596.4, 35.52]], "area": 490.60704999999956, "iscrowd": 0, "image_id": 211622, "bbox": [594.45, 0.52, 25.86, 36.74], "category_id": 44, "id": 1873134}, {"segmentation": [[593.86, 61.1, 551.97, 100.49, 549.11, 105.86, 549.11, 113.73, 554.12, 120.89, 564.5, 121.25, 569.88, 116.96, 565.22, 101.92, 618.57, 54.3, 618.57, 50.0, 595.65, 57.52]], "area": 1124.4655500000013, "iscrowd": 0, "image_id": 211622, "bbox": [549.11, 50.0, 69.46, 71.25], "category_id": 44, "id": 1873221}, {"segmentation": [[519.35, 55.96, 512.65, 62.1, 504.56, 62.65, 501.21, 55.4, 501.21, 49.82, 504.56, 45.36, 519.63, 26.39, 526.6, 18.02, 544.73, 10.21, 544.18, 16.9, 516.56, 42.29, 519.63, 55.4]], "area": 677.6173499999983, "iscrowd": 0, "image_id": 211622, "bbox": [501.21, 10.21, 43.52, 52.44], "category_id": 44, "id": 1873229}, {"segmentation": [[612.86, 112.34, 611.14, 100.3, 639.51, 65.91, 639.51, 77.09, 638.65, 108.04, 630.91, 113.2, 619.72, 114.21]], "area": 810.4116999999998, "iscrowd": 0, "image_id": 211622, "bbox": [611.14, 65.91, 28.37, 48.3], "category_id": 44, "id": 1873237}, {"segmentation": [[292.67, 169.19, 293.12, 161.24, 299.71, 161.24, 300.62, 169.87, 299.03, 177.36, 298.35, 183.26, 294.26, 182.35, 294.71, 175.54]], "area": 129.85704999999976, "iscrowd": 0, "image_id": 541677, "bbox": [292.67, 161.24, 7.95, 22.02], "category_id": 46, "id": 1873509}, {"segmentation": [[237.86, 429.98, 269.56, 396.44, 313.22, 420.33, 305.4, 438.26, 290.7, 431.82, 241.07, 430.44], [260.37, 454.34, 261.29, 449.74, 303.57, 447.45, 303.11, 452.04]], "area": 1795.0346999999997, "iscrowd": 0, "image_id": 211622, "bbox": [237.86, 396.44, 75.36, 57.9], "category_id": 46, "id": 1873934}, {"segmentation": [[520.94, 265.1, 520.94, 265.1, 524.04, 261.85, 523.88, 258.29, 523.88, 258.29, 520.17, 254.73, 517.84, 251.01, 520.17, 240.64, 521.25, 238.78, 526.36, 238.47, 526.36, 238.47, 532.24, 237.85, 532.55, 246.52, 532.55, 246.83, 532.86, 252.25, 532.71, 253.34, 529.76, 258.76, 529.76, 258.76, 528.53, 262.94, 528.53, 262.94, 530.85, 264.02, 528.68, 264.79, 521.87, 265.41, 521.87, 265.41]], "area": 290.4452000000002, "iscrowd": 0, "image_id": 61203, "bbox": [517.84, 237.85, 15.02, 27.56], "category_id": 46, "id": 1874195}, {"segmentation": [[281.97, 158.77, 296.46, 158.32, 297.37, 160.81, 293.07, 161.26, 293.29, 171.9, 294.88, 175.98, 294.2, 182.77, 283.56, 183.68, 283.33, 178.02, 281.52, 173.04, 281.07, 170.32, 281.07, 164.88]], "area": 299.1244000000002, "iscrowd": 0, "image_id": 541677, "bbox": [281.07, 158.32, 16.3, 25.36], "category_id": 46, "id": 1875404}, {"segmentation": [[575.4, 419.49, 585.66, 424.34, 594.84, 424.88, 599.7, 423.27, 601.32, 420.57, 602.4, 417.33, 601.32, 413.55, 598.08, 411.93, 593.76, 409.77, 593.76, 405.45, 594.3, 402.21, 596.46, 397.35, 600.78, 395.19, 606.72, 391.41, 609.42, 384.39, 612.12, 377.38, 613.73, 371.98, 613.73, 364.42, 611.58, 359.56, 601.32, 354.7, 591.6, 353.62, 586.74, 355.24, 582.96, 357.4, 579.72, 361.18, 576.48, 373.06, 577.56, 382.23, 580.26, 389.79, 584.58, 394.11, 586.2, 396.81, 586.74, 400.05, 586.2, 403.83, 585.12, 408.15, 578.64, 410.31, 577.02, 410.85, 574.86, 414.09, 574.86, 417.33]], "area": 1725.348600000001, "iscrowd": 0, "image_id": 95880, "bbox": [574.86, 353.62, 38.87, 71.26], "category_id": 46, "id": 1875575}, {"segmentation": [[624.05, 381.03, 632.61, 380.05, 638.87, 382.68, 639.53, 419.58, 633.93, 426.17, 631.3, 434.74, 630.97, 438.69, 636.57, 445.94, 635.58, 452.2, 632.29, 453.84, 628.0, 455.16, 620.1, 453.19, 615.81, 451.54, 611.53, 448.9, 607.91, 444.95, 609.88, 439.02, 612.19, 436.38, 616.14, 436.05, 620.75, 435.07, 621.74, 435.07, 623.39, 433.42, 624.05, 424.52, 621.41, 420.9, 618.78, 417.27, 616.47, 412.99, 615.48, 405.74, 614.49, 397.18, 615.48, 389.93, 617.46, 385.32, 621.08, 381.36, 624.38, 380.38, 626.03, 380.05]], "area": 1477.2226999999993, "iscrowd": 0, "image_id": 95880, "bbox": [607.91, 380.05, 31.62, 75.11], "category_id": 46, "id": 1875899}, {"segmentation": [[92.16, 302.72, 92.45, 284.53, 104.29, 271.25, 104.58, 255.08, 102.56, 250.18, 115.84, 250.47, 110.06, 254.51, 107.18, 272.12, 110.93, 278.76, 100.25, 302.14]], "area": 467.8140000000001, "iscrowd": 0, "image_id": 211622, "bbox": [92.16, 250.18, 23.68, 52.54], "category_id": 46, "id": 1876478}, {"segmentation": [[349.3, 140.53, 351.33, 141.38, 356.75, 142.06, 360.47, 140.87, 358.78, 128.0, 355.56, 126.81, 351.5, 126.81, 349.8, 127.83, 348.45, 129.52]], "area": 152.83899999999997, "iscrowd": 0, "image_id": 375528, "bbox": [348.45, 126.81, 12.02, 15.25], "category_id": 47, "id": 1877192}, {"segmentation": [[38.73, 243.43, 65.28, 316.46, 130.57, 317.56, 151.59, 297.65, 164.87, 251.17, 159.34, 219.09, 129.46, 209.13, 115.08, 209.13, 76.35, 215.77, 49.79, 225.72, 38.73, 233.47]], "area": 10904.48305, "iscrowd": 0, "image_id": 333181, "bbox": [38.73, 209.13, 126.14, 108.43], "category_id": 47, "id": 1877596}, {"segmentation": [[2.64, 430.11, 19.37, 427.88, 23.47, 429.36, 27.93, 439.78, 30.9, 438.29, 32.76, 433.83, 29.04, 426.02, 29.42, 417.83, 26.81, 411.88, 18.26, 408.91, 6.73, 410.4, 0.4, 413.37, 0.0, 420.81, 0.4, 430.85]], "area": 594.1948000000002, "iscrowd": 0, "image_id": 306627, "bbox": [0.0, 408.91, 32.76, 30.87], "category_id": 47, "id": 1878207}, {"segmentation": [[14.91, 360.24, 16.58, 370.21, 27.38, 364.12, 48.17, 355.25, 50.66, 353.86, 52.05, 347.77, 52.05, 337.79, 46.51, 333.63, 37.64, 329.75, 21.01, 329.47, 14.64, 331.69]], "area": 1127.9116499999998, "iscrowd": 0, "image_id": 434047, "bbox": [14.64, 329.47, 37.41, 40.74], "category_id": 47, "id": 1878392}, {"segmentation": [[0.0, 445.02, 0.74, 455.32, 10.28, 451.69, 25.53, 447.31, 29.16, 445.21, 28.58, 438.15, 25.53, 430.71, 23.24, 429.0, 19.81, 427.85, 4.94, 429.19, 0.0, 430.9, 0.36, 445.21]], "area": 600.2543999999999, "iscrowd": 0, "image_id": 306627, "bbox": [0.0, 427.85, 29.16, 27.47], "category_id": 47, "id": 1878700}, {"segmentation": [[468.16, 351.12, 445.97, 327.82, 440.42, 273.46, 441.53, 247.95, 465.94, 240.18, 516.97, 240.18, 560.23, 249.05, 576.88, 265.7, 579.09, 288.99, 563.56, 331.15, 523.63, 350.01, 508.09, 358.88, 467.05, 358.88]], "area": 13474.932599999998, "iscrowd": 0, "image_id": 333181, "bbox": [440.42, 240.18, 138.67, 118.7], "category_id": 47, "id": 1879054}, {"segmentation": [[524.82, 163.79, 528.81, 161.87, 535.47, 161.87, 535.32, 167.19, 534.28, 173.4, 523.64, 171.18, 522.9, 167.63, 522.9, 165.12]], "area": 116.8121000000005, "iscrowd": 0, "image_id": 543882, "bbox": [522.9, 161.87, 12.57, 11.53], "category_id": 47, "id": 1879118}, {"segmentation": [[182.05, 333.32, 179.82, 323.93, 184.47, 322.18, 194.35, 321.21, 196.48, 321.41, 196.0, 333.81, 189.8, 334.39, 186.31, 336.9, 186.21, 336.42, 186.89, 334.77, 189.02, 333.61, 192.32, 333.03, 194.54, 331.58, 195.13, 329.93, 195.13, 329.16, 194.64, 328.87, 190.67, 329.45, 189.02, 330.03, 187.09, 330.71, 185.44, 332.06]], "area": 153.05509999999992, "iscrowd": 0, "image_id": 286619, "bbox": [179.82, 321.21, 16.66, 15.69], "category_id": 47, "id": 1880764}, {"segmentation": [[480.69, 187.82, 485.96, 200.23, 487.09, 207.0, 470.54, 238.98, 463.39, 250.64, 461.51, 259.29, 463.39, 270.57, 469.03, 278.1, 497.62, 289.01, 526.58, 296.53, 552.16, 296.15, 560.81, 290.13, 569.09, 281.86, 571.34, 272.08, 571.34, 262.3, 580.0, 264.18, 591.28, 258.91, 599.18, 244.62, 599.18, 228.07, 593.16, 213.78, 580.75, 207.38, 573.98, 207.0, 568.34, 198.73, 560.81, 191.96, 540.88, 186.32, 517.56, 182.18, 498.0, 182.55]], "area": 11489.31875, "iscrowd": 0, "image_id": 223838, "bbox": [461.51, 182.18, 137.67, 114.35], "category_id": 47, "id": 1880875}, {"segmentation": [[527.53, 144.14, 524.31, 161.04, 522.77, 170.08, 517.05, 170.08, 516.22, 167.7, 518.72, 142.95, 521.93, 142.0, 527.53, 143.9]], "area": 213.16124999999832, "iscrowd": 0, "image_id": 543882, "bbox": [516.22, 142.0, 11.31, 28.08], "category_id": 47, "id": 1881152}, {"segmentation": [[124.56, 350.27, 122.74, 336.38, 147.23, 335.28, 149.42, 335.28, 147.6, 349.91, 138.82, 350.27, 144.67, 346.25, 141.75, 343.69, 133.34, 347.35], [145.3, 361.64, 134.23, 366.3, 143.92, 367.52, 145.65, 366.48]], "area": 335.4901000000006, "iscrowd": 0, "image_id": 286619, "bbox": [122.74, 335.28, 26.68, 32.24], "category_id": 47, "id": 1882974}, {"segmentation": [[189.24, 218.2, 192.14, 201.1, 194.46, 198.21, 186.63, 191.25, 181.13, 189.51, 175.04, 188.06, 164.03, 186.03, 155.91, 187.48, 152.72, 187.48, 148.38, 189.22, 146.35, 204.58, 154.46, 207.77, 153.59, 204.0, 158.81, 199.94, 165.77, 197.34, 171.85, 199.36, 182.0, 208.93, 189.53, 216.46]], "area": 705.0193000000003, "iscrowd": 0, "image_id": 405121, "bbox": [146.35, 186.03, 48.11, 32.17], "category_id": 47, "id": 1883009}, {"segmentation": [[125.04, 260.5, 100.38, 266.97, 83.0, 258.08, 78.56, 214.42, 87.85, 210.38, 94.72, 204.31, 100.79, 204.31, 109.28, 208.36, 121.0, 211.59, 122.21, 222.91, 126.25, 236.25, 123.02, 245.95, 122.21, 246.76]], "area": 2334.9825500000006, "iscrowd": 0, "image_id": 529350, "bbox": [78.56, 204.31, 47.69, 62.66], "category_id": 47, "id": 1883011}, {"segmentation": [[333.11, 191.3, 333.29, 199.02, 333.66, 199.66, 341.29, 199.57, 341.93, 199.2, 342.02, 191.3]], "area": 72.64294999999967, "iscrowd": 0, "image_id": 480818, "bbox": [333.11, 191.3, 8.91, 8.36], "category_id": 47, "id": 1883731}, {"segmentation": [[0.54, 392.56, 9.43, 391.32, 15.43, 392.56, 17.49, 394.01, 18.53, 395.04, 18.73, 395.46, 18.94, 396.9, 18.94, 397.94, 20.18, 408.89, 12.12, 409.1, 9.43, 409.93, 3.85, 411.37, 0.0, 412.61]], "area": 339.34555000000023, "iscrowd": 0, "image_id": 306627, "bbox": [0.0, 391.32, 20.18, 21.29], "category_id": 47, "id": 1884249}, {"segmentation": [[1.72, 426.41, 37.35, 396.89, 47.53, 366.35, 0.0, 167.86, 2.74, 425.39]], "area": 6234.81495, "iscrowd": 0, "image_id": 297764, "bbox": [0.0, 167.86, 47.53, 258.55], "category_id": 47, "id": 1884392}, {"segmentation": [[97.06, 224.15, 96.63, 210.92, 99.79, 209.77, 105.97, 208.76, 111.01, 208.62, 114.6, 209.05, 115.61, 210.2, 115.61, 219.55, 117.19, 248.45, 113.6, 249.32, 101.08, 250.04]], "area": 725.2482999999997, "iscrowd": 0, "image_id": 405121, "bbox": [96.63, 208.62, 20.56, 41.42], "category_id": 47, "id": 1884407}, {"segmentation": [[405.46, 184.38, 406.43, 187.46, 404.16, 189.25, 403.18, 207.25, 402.54, 212.11, 413.56, 215.52, 420.86, 214.22, 421.51, 213.73, 422.48, 212.44, 423.13, 191.84, 424.43, 184.54, 416.0, 183.57, 415.35, 185.68, 411.78, 184.87, 411.62, 183.08, 406.59, 182.92, 405.29, 183.24]], "area": 581.1988999999999, "iscrowd": 0, "image_id": 102315, "bbox": [402.54, 182.92, 21.89, 32.6], "category_id": 47, "id": 1884729}, {"segmentation": [[94.75, 3.32, 141.3, 94.75, 187.84, 93.09, 216.1, 84.78, 201.14, 1.66]], "area": 8255.436849999998, "iscrowd": 0, "image_id": 478902, "bbox": [94.75, 1.66, 121.35, 93.09], "category_id": 47, "id": 1884852}, {"segmentation": [[535.86, 165.69, 536.05, 155.86, 544.11, 155.86, 547.06, 156.06, 550.4, 158.61, 549.02, 164.9, 540.38, 165.1, 536.45, 165.3]], "area": 123.3401999999998, "iscrowd": 0, "image_id": 543882, "bbox": [535.86, 155.86, 14.54, 9.83], "category_id": 47, "id": 1885029}, {"segmentation": [[362.12, 138.65, 360.33, 150.1, 360.33, 150.1, 374.29, 150.82, 373.57, 138.29, 373.57, 138.29, 364.98, 137.57]], "area": 158.09745000000015, "iscrowd": 0, "image_id": 375528, "bbox": [360.33, 137.57, 13.96, 13.25], "category_id": 47, "id": 1885344}, {"segmentation": [[247.34, 311.04, 248.66, 314.27, 248.81, 316.03, 253.36, 316.47, 257.47, 316.33, 257.32, 318.67, 250.42, 319.26, 251.45, 320.14, 256.3, 320.44, 258.2, 321.17, 255.27, 322.34, 250.72, 322.93, 250.57, 323.81, 255.85, 323.67, 257.18, 323.67, 258.2, 323.96, 258.35, 325.28, 253.21, 325.72, 252.18, 326.31, 254.83, 327.48, 257.47, 327.04, 258.35, 326.6, 259.23, 310.89]], "area": 94.73385000000042, "iscrowd": 0, "image_id": 286619, "bbox": [247.34, 310.89, 11.89, 16.59], "category_id": 47, "id": 1885408}, {"segmentation": [[449.52, 227.77, 449.25, 242.22, 448.98, 243.58, 446.89, 243.31, 444.98, 241.4, 441.71, 240.22, 440.53, 232.68, 436.53, 230.95, 436.62, 227.5, 441.98, 226.86, 446.43, 226.77]], "area": 144.54335000000003, "iscrowd": 0, "image_id": 480818, "bbox": [436.53, 226.77, 12.99, 16.81], "category_id": 47, "id": 1885522}, {"segmentation": [[16.75, 188.78, 35.57, 242.83, 48.6, 242.83, 70.81, 240.42, 86.74, 226.42, 88.18, 219.67, 84.32, 185.4, 87.22, 175.26, 85.77, 170.43, 65.98, 161.75, 37.02, 162.23, 19.16, 166.57, 9.51, 186.36]], "area": 4862.912350000001, "iscrowd": 0, "image_id": 386890, "bbox": [9.51, 161.75, 78.67, 81.08], "category_id": 47, "id": 1885869}, {"segmentation": [[273.36, 315.33, 271.94, 309.36, 281.75, 308.79, 281.32, 323.0, 278.62, 324.28, 274.92, 323.57, 274.64, 321.86, 277.06, 318.03, 275.92, 315.9, 274.64, 314.9]], "area": 104.18209999999958, "iscrowd": 0, "image_id": 286619, "bbox": [271.94, 308.79, 9.81, 15.49], "category_id": 47, "id": 1885881}, {"segmentation": [[391.96, 55.05, 393.74, 73.19, 396.59, 72.12, 398.72, 69.28, 397.3, 63.94, 406.54, 63.94, 405.12, 51.85, 393.03, 51.85]], "area": 201.7418500000004, "iscrowd": 0, "image_id": 386890, "bbox": [391.96, 51.85, 14.58, 21.34], "category_id": 47, "id": 1885898}, {"segmentation": [[562.85, 293.5, 559.17, 294.29, 559.44, 291.53, 550.38, 290.48, 545.65, 290.61, 543.68, 292.71, 543.16, 293.1, 541.71, 292.45, 540.41, 292.45, 538.42, 293.75, 536.86, 297.64, 536.95, 302.24, 537.04, 304.92, 538.51, 307.0, 540.85, 308.04, 543.53, 308.38, 543.62, 310.64, 544.22, 311.71, 548.12, 313.96, 553.32, 314.4, 559.73, 314.57, 561.03, 313.88, 562.15, 312.14, 562.24, 308.25]], "area": 515.02105, "iscrowd": 0, "image_id": 375528, "bbox": [536.86, 290.48, 25.99, 24.09], "category_id": 47, "id": 1885945}, {"segmentation": [[333.93, 66.6, 328.27, 66.6, 328.03, 83.82, 340.29, 83.35, 339.59, 66.37]], "area": 201.03860000000032, "iscrowd": 0, "image_id": 386890, "bbox": [328.03, 66.37, 12.26, 17.45], "category_id": 47, "id": 1886580}, {"segmentation": [[361.48, 150.54, 360.52, 154.94, 364.73, 155.71, 370.66, 155.71, 373.54, 155.71, 372.96, 150.92]], "area": 59.7898500000002, "iscrowd": 0, "image_id": 375528, "bbox": [360.52, 150.54, 13.02, 5.17], "category_id": 47, "id": 1886760}, {"segmentation": [[538.6, 316.68, 531.12, 327.9, 526.25, 329.94, 517.51, 327.81, 514.67, 322.38, 514.91, 315.76, 514.44, 309.39, 527.19, 308.68, 534.99, 310.1]], "area": 395.7642000000003, "iscrowd": 0, "image_id": 375528, "bbox": [514.44, 308.68, 24.16, 21.26], "category_id": 47, "id": 1887127}, {"segmentation": [[46.27, 217.05, 46.75, 215.71, 47.48, 214.98, 47.48, 213.52, 47.6, 212.67, 49.55, 211.95, 52.34, 211.46, 54.89, 211.22, 57.68, 211.58, 59.63, 213.4, 59.5, 213.65, 60.72, 214.13, 61.45, 214.98, 61.45, 215.83, 60.6, 216.8, 56.35, 217.53, 51.61, 217.77, 49.3, 218.02]], "area": 76.76020000000011, "iscrowd": 0, "image_id": 375528, "bbox": [46.27, 211.22, 15.18, 6.8], "category_id": 47, "id": 1887500}, {"segmentation": [[307.38, 181.12, 297.07, 179.49, 288.93, 182.75, 290.56, 186.0, 290.56, 190.34, 304.13, 194.69, 306.84, 188.17]], "area": 198.18204999999963, "iscrowd": 0, "image_id": 375528, "bbox": [288.93, 179.49, 18.45, 15.2], "category_id": 47, "id": 1887632}, {"segmentation": [[349.21, 140.9, 349.35, 143.02, 360.17, 143.54, 360.17, 143.54, 360.17, 143.54, 360.56, 141.7, 353.83, 141.83]], "area": 18.601049999999955, "iscrowd": 0, "image_id": 375528, "bbox": [349.21, 140.9, 11.35, 2.64], "category_id": 47, "id": 1887839}, {"segmentation": [[72.43, 206.63, 68.09, 203.37, 57.23, 203.91, 57.23, 209.88, 64.29, 221.28, 72.43, 219.11]], "area": 213.15170000000018, "iscrowd": 0, "image_id": 375528, "bbox": [57.23, 203.37, 15.2, 17.91], "category_id": 47, "id": 1887942}, {"segmentation": [[564.24, 157.59, 557.68, 157.59, 557.09, 151.03, 557.98, 148.65, 562.15, 149.84, 564.24, 153.42, 564.53, 154.01]], "area": 52.821999999999946, "iscrowd": 0, "image_id": 543882, "bbox": [557.09, 148.65, 7.44, 8.94], "category_id": 47, "id": 1887983}, {"segmentation": [[560.96, 144.5, 567.33, 144.77, 570.18, 165.37, 568.69, 168.08, 564.62, 169.7, 563.67, 166.18, 560.01, 165.77, 558.93, 165.77]], "area": 203.64715000000018, "iscrowd": 0, "image_id": 543882, "bbox": [558.93, 144.5, 11.25, 25.2], "category_id": 47, "id": 1888013}, {"segmentation": [[570.34, 145.47, 570.46, 162.62, 576.94, 159.98, 576.7, 156.26, 575.38, 145.59, 573.34, 145.59]], "area": 92.94599999999993, "iscrowd": 0, "image_id": 543882, "bbox": [570.34, 145.47, 6.6, 17.15], "category_id": 47, "id": 1888183}, {"segmentation": [[585.83, 142.72, 585.1, 154.48, 592.29, 154.05, 591.28, 142.57]], "area": 73.47899999999927, "iscrowd": 0, "image_id": 543882, "bbox": [585.1, 142.57, 7.19, 11.91], "category_id": 47, "id": 1888222}, {"segmentation": [[87.79, 96.5, 87.7, 110.31, 89.0, 111.33, 94.01, 111.42, 96.51, 110.22, 97.44, 108.64, 97.81, 99.56, 96.6, 95.85, 96.32, 95.2, 87.33, 94.55, 87.7, 96.4]], "area": 156.19514999999993, "iscrowd": 0, "image_id": 543882, "bbox": [87.33, 94.55, 10.48, 16.87], "category_id": 47, "id": 1888245}, {"segmentation": [[544.88, 155.2, 536.0, 156.12, 537.68, 146.01, 545.8, 147.09, 546.56, 155.05, 545.34, 156.58, 543.81, 155.51]], "area": 86.28569999999984, "iscrowd": 0, "image_id": 543882, "bbox": [536.0, 146.01, 10.56, 10.57], "category_id": 47, "id": 1888256}, {"segmentation": [[534.65, 162.44, 524.85, 163.21, 525.16, 153.71, 535.88, 155.09, 534.65, 160.3, 535.57, 162.9, 531.74, 162.75]], "area": 87.15554999999996, "iscrowd": 0, "image_id": 543882, "bbox": [524.85, 153.71, 11.03, 9.5], "category_id": 47, "id": 1888270}, {"segmentation": [[534.95, 156.23, 525.29, 155.35, 531.44, 138.66, 541.1, 143.05, 536.71, 157.11, 535.83, 160.62]], "area": 178.25775000000036, "iscrowd": 0, "image_id": 543882, "bbox": [525.29, 138.66, 15.81, 21.96], "category_id": 47, "id": 1888280}, {"segmentation": [[167.13, 291.21, 174.94, 296.27, 181.37, 294.89, 185.97, 292.59, 175.86, 292.13, 169.43, 289.83, 167.13, 291.21], [577.04, 378.32, 581.46, 377.03, 581.46, 375.56, 577.78, 373.72, 541.89, 365.99, 522.2, 365.99, 507.47, 357.89, 518.0, 365.06, 507.8, 359.48, 507.44, 360.08, 516.3, 365.18, 516.18, 365.55, 507.68, 361.06, 507.2, 361.06, 507.07, 361.66, 517.88, 369.68, 522.62, 370.77, 538.65, 367.86, 577.02, 377.93, 579.32, 377.45]], "area": 315.0746999999997, "iscrowd": 0, "image_id": 561406, "bbox": [167.13, 289.83, 414.33, 88.49], "category_id": 48, "id": 1889541}, {"segmentation": [[373.82, 372.86, 379.2, 360.33, 374.18, 366.06, 375.97, 359.61, 373.82, 365.7, 373.82, 359.61, 367.02, 369.28, 370.6, 372.14], [353.77, 387.18, 348.76, 393.27, 354.49, 397.56, 354.49, 397.56, 359.86, 391.12]], "area": 125.55740000000014, "iscrowd": 0, "image_id": 561406, "bbox": [348.76, 359.61, 30.44, 37.95], "category_id": 48, "id": 1890653}, {"segmentation": [[457.16, 517.7, 477.65, 537.1, 480.0, 539.72, 480.0, 556.72, 460.43, 540.59, 435.14, 515.74, 425.33, 506.58, 426.42, 504.19, 429.04, 503.1, 442.77, 508.76]], "area": 835.04315, "iscrowd": 0, "image_id": 111705, "bbox": [425.33, 503.1, 54.67, 53.62], "category_id": 49, "id": 1891304}, {"segmentation": [[211.24, 272.32, 211.35, 270.59, 211.89, 269.29, 212.43, 268.86, 213.18, 268.54, 214.26, 268.43, 214.69, 268.21, 215.13, 266.92, 215.67, 266.16, 217.5, 265.19, 218.48, 265.3, 218.58, 266.16, 217.83, 267.24, 216.64, 269.08, 215.34, 270.91, 213.29, 272.42, 211.56, 272.96]], "area": 23.88755, "iscrowd": 0, "image_id": 579659, "bbox": [211.24, 265.19, 7.34, 7.77], "category_id": 49, "id": 1891311}, {"segmentation": [[308.22, 325.58, 305.72, 318.27, 305.09, 311.58, 304.88, 309.28, 306.97, 308.03, 310.73, 308.03, 312.19, 310.33, 312.82, 315.13, 313.86, 319.1, 314.7, 323.28, 315.74, 324.95, 316.16, 325.99, 308.02, 325.58]], "area": 130.09879999999998, "iscrowd": 0, "image_id": 496847, "bbox": [304.88, 308.03, 11.28, 17.96], "category_id": 49, "id": 1891318}, {"segmentation": [[294.28, 504.84, 310.32, 511.61, 314.38, 514.77, 319.58, 517.93, 317.99, 523.13, 312.8, 522.0, 269.67, 512.97]], "area": 414.23065000000054, "iscrowd": 0, "image_id": 111705, "bbox": [269.67, 504.84, 49.91, 18.29], "category_id": 49, "id": 1891629}, {"segmentation": [[218.35, 190.22, 222.16, 193.0, 216.6, 206.06, 214.86, 204.21, 214.24, 203.59, 213.83, 203.18, 213.83, 202.97]], "area": 57.48404999999989, "iscrowd": 0, "image_id": 135149, "bbox": [213.83, 190.22, 8.33, 15.84], "category_id": 49, "id": 1892301}, {"segmentation": [[218.07, 190.02, 219.28, 188.64, 221.04, 188.97, 221.87, 190.35, 221.32, 192.21, 221.04, 192.21, 218.4, 190.51, 217.74, 190.35]], "area": 8.332050000000013, "iscrowd": 0, "image_id": 135149, "bbox": [217.74, 188.64, 4.13, 3.57], "category_id": 49, "id": 1892341}, {"segmentation": [[314.73, 311.65, 314.73, 303.53, 314.73, 301.31, 316.45, 298.85, 312.27, 296.39, 309.07, 296.39, 307.1, 298.85, 308.83, 307.96, 311.04, 309.19, 314.49, 315.34, 314.98, 319.77]], "area": 98.15670000000006, "iscrowd": 0, "image_id": 496847, "bbox": [307.1, 296.39, 9.35, 23.38], "category_id": 49, "id": 1892748}, {"segmentation": [[166.17, 282.11, 160.58, 282.11, 159.23, 282.88, 160.0, 283.46, 165.78, 283.46], [170.41, 282.3, 190.47, 282.3, 191.05, 283.65, 190.66, 284.23, 170.99, 284.04]], "area": 45.20984999999995, "iscrowd": 0, "image_id": 579659, "bbox": [159.23, 282.11, 31.82, 2.12], "category_id": 49, "id": 1893251}, {"segmentation": [[496.75, 343.44, 475.84, 336.92, 472.0, 333.08, 492.53, 339.03, 518.05, 347.28, 536.28, 353.61, 533.02, 355.72]], "area": 189.90120000000147, "iscrowd": 0, "image_id": 176587, "bbox": [472.0, 333.08, 64.28, 22.64], "category_id": 49, "id": 1893500}, {"segmentation": [[321.93, 345.59, 323.42, 340.37, 325.28, 331.79, 326.03, 326.57, 324.91, 323.96, 321.55, 324.33, 320.06, 326.2, 321.93, 328.06, 319.69, 335.52, 318.57, 341.12, 318.57, 341.86, 318.99, 343.87, 321.05, 346.35]], "area": 93.95375, "iscrowd": 0, "image_id": 496847, "bbox": [318.57, 323.96, 7.46, 22.39], "category_id": 49, "id": 1893693}, {"segmentation": [[62.54, 178.84, 83.65, 179.49, 90.62, 215.4, 89.75, 219.76, 104.11, 226.72, 108.68, 234.34, 105.63, 241.52, 93.23, 247.39, 84.96, 245.65, 56.45, 233.03, 50.57, 228.24, 52.1, 224.11, 61.24, 219.1, 66.68, 216.49]], "area": 2009.0582500000005, "iscrowd": 0, "image_id": 223838, "bbox": [50.57, 178.84, 58.11, 68.55], "category_id": 49, "id": 1893749}, {"segmentation": [[342.87, 311.06, 347.85, 293.85, 349.66, 290.46, 354.19, 288.87, 356.46, 288.42, 360.08, 288.87, 361.44, 290.01, 362.8, 292.72, 363.02, 298.38, 361.66, 299.97, 358.95, 300.19, 358.04, 301.55, 358.27, 302.91, 357.14, 306.31, 355.55, 308.35, 353.74, 312.19, 352.61, 313.33, 346.72, 313.78, 342.19, 313.78]], "area": 325.8180999999994, "iscrowd": 0, "image_id": 496847, "bbox": [342.19, 288.42, 20.83, 25.36], "category_id": 49, "id": 1894114}, {"segmentation": [[302.86, 289.96, 307.95, 277.39, 309.01, 272.85, 310.35, 270.97, 312.65, 270.19, 313.64, 270.19, 314.87, 270.19, 316.83, 271.91, 317.82, 273.64, 317.82, 274.87, 317.82, 278.8, 317.57, 282.0, 317.57, 288.89, 317.33, 293.81, 317.33, 296.03, 317.57, 299.23, 317.33, 303.66, 315.6, 304.15, 315.11, 302.67, 316.1, 300.7, 316.1, 297.75, 315.11, 297.26, 312.9, 297.26, 309.21, 297.26, 307.73, 297.5, 307.48, 298.49, 307.24, 302.92, 307.48, 305.62, 307.48, 307.1, 305.27, 307.84, 303.55, 307.35, 301.33, 306.12, 300.84, 303.9, 300.59, 301.69, 300.59, 297.75, 300.59, 294.55]], "area": 406.7326999999998, "iscrowd": 0, "image_id": 496847, "bbox": [300.59, 270.19, 17.23, 37.65], "category_id": 49, "id": 1894336}, {"segmentation": [[350.0, 327.14, 347.53, 335.96, 345.77, 343.19, 347.18, 346.37, 351.41, 337.72, 354.24, 331.2, 354.06, 328.73, 352.47, 327.67, 350.36, 328.02]], "area": 72.01800000000073, "iscrowd": 0, "image_id": 496847, "bbox": [345.77, 327.14, 8.47, 19.23], "category_id": 49, "id": 1894510}, {"segmentation": [[188.25, 295.68, 188.25, 302.19, 191.15, 305.81, 183.91, 315.21, 165.82, 321.0, 147.73, 321.72, 132.54, 323.17, 118.06, 323.17, 97.8, 317.38, 87.67, 314.49, 86.23, 310.15, 36.3, 290.61, 38.47, 284.82, 61.63, 292.06, 98.53, 307.25, 127.47, 302.19, 159.31, 297.85, 184.63, 297.12]], "area": 2310.3594, "iscrowd": 0, "image_id": 135038, "bbox": [36.3, 284.82, 154.85, 38.35], "category_id": 50, "id": 1894787}, {"segmentation": [[157.16, 284.29, 163.79, 284.29, 167.16, 284.52, 170.18, 284.63, 175.29, 283.82, 179.47, 282.54, 183.3, 282.19, 184.12, 283.59, 182.72, 285.91, 173.43, 289.28, 170.06, 289.16, 169.13, 288.58, 167.27, 286.96, 162.74, 286.61, 161.23, 286.26, 157.63, 284.98]], "area": 90.42964999999988, "iscrowd": 0, "image_id": 561406, "bbox": [157.16, 282.19, 26.96, 7.09], "category_id": 50, "id": 1894986}, {"segmentation": [[73.54, 121.46, 39.0, 156.0, 36.77, 160.46, 14.49, 160.46, 11.14, 144.86, 54.6, 99.17, 55.71, 55.71, 74.66, 31.2, 95.83, 21.17, 129.26, 17.83, 153.77, 34.54, 168.26, 55.71, 69.09, 49.03, 67.97, 64.63, 149.31, 75.77]], "area": 7536.14035, "iscrowd": 0, "image_id": 49851, "bbox": [11.14, 17.83, 157.12, 142.63], "category_id": 50, "id": 1895227}, {"segmentation": [[216.22, 467.33, 205.63, 474.53, 201.4, 477.92, 203.09, 483.01, 211.56, 486.82, 242.06, 482.16, 246.72, 477.08, 244.6, 471.57, 226.81, 467.33, 230.62, 446.15, 246.72, 416.5, 244.6, 410.57, 233.16, 411.0, 216.22, 416.93, 222.57, 444.04, 217.91, 457.59]], "area": 1519.6198000000013, "iscrowd": 0, "image_id": 446266, "bbox": [201.4, 410.57, 45.32, 76.25], "category_id": 50, "id": 1896539}, {"segmentation": [[516.04, 423.84, 519.33, 404.1, 520.15, 400.81, 524.27, 391.76, 520.15, 391.76, 533.31, 362.97, 533.31, 362.97, 530.85, 358.86, 530.85, 358.86, 511.93, 402.45, 511.93, 407.39, 516.86, 404.92, 512.75, 421.37, 512.75, 421.37]], "area": 281.58594999999804, "iscrowd": 0, "image_id": 185591, "bbox": [511.93, 358.86, 21.38, 64.98], "category_id": 50, "id": 1896956}, {"segmentation": [[471.67, 335.54, 474.37, 341.65, 475.31, 344.7, 475.31, 348.45, 475.43, 350.68, 477.42, 351.74, 481.06, 352.21, 483.18, 351.15, 482.71, 347.87, 480.59, 345.75, 478.71, 344.35, 478.6, 343.64, 476.25, 335.19, 474.02, 334.6]], "area": 86.50134999999973, "iscrowd": 0, "image_id": 579659, "bbox": [471.67, 334.6, 11.51, 17.61], "category_id": 50, "id": 1897506}, {"segmentation": [[91.01, 247.82, 97.08, 245.91, 99.63, 244.63, 104.11, 243.03, 105.7, 241.76, 107.62, 240.48, 107.62, 237.92, 107.94, 235.05, 108.58, 232.5, 104.74, 226.75, 103.47, 225.79, 100.27, 223.87, 98.04, 222.6, 95.8, 221.32, 93.57, 220.68, 91.33, 219.4, 89.82, 219.09, 89.82, 217.38, 90.5, 215.67, 89.99, 212.25, 88.96, 208.31, 87.25, 197.7, 83.66, 180.08, 83.32, 177.85, 82.12, 177.85, 80.75, 178.37, 66.72, 177.85, 65.86, 176.48, 64.32, 176.66, 62.1, 180.08, 63.98, 197.87, 66.37, 217.04, 62.61, 218.24, 60.38, 219.27, 57.13, 220.29, 54.57, 221.49, 52.51, 223.03, 51.31, 226.11, 52.0, 228.68, 52.51, 229.88, 53.71, 230.73, 55.59, 231.76, 57.48, 233.47, 60.21, 233.81, 62.1, 235.18, 74.42, 241.51, 82.97, 244.76, 86.57, 245.62, 89.82, 246.99, 92.38, 247.33]], "area": 2083.8025499999994, "iscrowd": 0, "image_id": 223838, "bbox": [51.31, 176.48, 57.27, 71.34], "category_id": 50, "id": 1897507}, {"segmentation": [[638.6, 175.27, 640.0, 167.61, 640.0, 147.81, 635.73, 159.95, 634.77, 169.53, 630.3, 180.38, 604.12, 245.85, 605.71, 249.36, 608.27, 248.08]], "area": 513.9163500000025, "iscrowd": 0, "image_id": 223838, "bbox": [604.12, 147.81, 35.88, 101.55], "category_id": 50, "id": 1897874}, {"segmentation": [[246.8, 269.44, 249.26, 265.83, 251.22, 266.65, 250.73, 267.63, 248.44, 269.11, 247.29, 270.91, 245.98, 271.89, 243.69, 271.4, 243.2, 270.58, 244.67, 270.09, 245.82, 270.09]], "area": 13.785400000000086, "iscrowd": 0, "image_id": 579659, "bbox": [243.2, 265.83, 8.02, 6.06], "category_id": 50, "id": 1897894}, {"segmentation": [[250.27, 268.83, 249.32, 269.33, 249.14, 270.09, 248.95, 270.97, 248.57, 271.47, 247.88, 271.41, 246.81, 271.6, 246.3, 271.98, 246.05, 272.48, 246.18, 272.86, 246.56, 273.24, 247.69, 273.36, 248.76, 273.49, 249.39, 272.98, 249.32, 272.04, 249.32, 271.66, 249.64, 270.66, 250.27, 270.09, 250.96, 269.78, 251.27, 269.33, 250.96, 268.71]], "area": 8.626899999999981, "iscrowd": 0, "image_id": 579659, "bbox": [246.05, 268.71, 5.22, 4.78], "category_id": 50, "id": 1897910}, {"segmentation": [[365.76, 250.21, 364.5, 233.73, 365.45, 229.93, 376.22, 225.18, 394.28, 226.13, 404.1, 231.83, 403.79, 246.09, 380.66, 244.19, 377.8, 249.58, 366.08, 252.43, 366.08, 246.41]], "area": 781.4581500000005, "iscrowd": 0, "image_id": 64492, "bbox": [364.5, 225.18, 39.6, 27.25], "category_id": 51, "id": 1898227}, {"segmentation": [[428.51, 306.08, 440.95, 304.22, 439.24, 296.07, 444.24, 295.06, 445.39, 290.06, 448.82, 289.91, 448.25, 287.48, 439.09, 284.34, 434.23, 282.48, 424.79, 282.48, 408.2, 283.76, 405.48, 284.77, 409.63, 287.77, 410.49, 301.21, 427.22, 306.22]], "area": 711.4657999999997, "iscrowd": 0, "image_id": 16125, "bbox": [405.48, 282.48, 43.34, 23.74], "category_id": 51, "id": 1898231}, {"segmentation": [[354.65, 104.91, 383.39, 98.31, 426.34, 97.98, 438.89, 103.92, 447.48, 113.83, 459.04, 150.83, 467.3, 181.22, 466.97, 181.22, 465.98, 188.49, 457.72, 202.03, 445.83, 211.94, 443.18, 217.23, 399.58, 214.92, 366.21, 215.91, 359.28, 207.98, 354.32, 188.49, 345.4, 137.95, 344.74, 132.33, 348.38, 107.22]], "area": 12151.898600000002, "iscrowd": 0, "image_id": 428208, "bbox": [344.74, 97.98, 122.56, 119.25], "category_id": 51, "id": 1898919}, {"segmentation": [[214.18, 293.1, 220.34, 299.51, 220.85, 304.39, 230.61, 310.3, 232.4, 313.12, 227.27, 320.56, 238.05, 325.95, 258.84, 323.9, 266.54, 322.62, 271.68, 312.61, 268.85, 308.75, 274.76, 301.05, 277.84, 291.3, 277.84, 287.71, 273.47, 284.11, 270.91, 286.68, 271.42, 293.35, 253.2, 299.26, 231.38, 298.49, 220.59, 293.1, 223.16, 287.45, 231.63, 283.08, 226.5, 281.8, 218.28, 285.91]], "area": 1357.1061499999987, "iscrowd": 0, "image_id": 561406, "bbox": [214.18, 281.8, 63.66, 44.15], "category_id": 51, "id": 1899242}, {"segmentation": [[274.75, 270.39, 282.67, 278.0, 292.5, 276.73, 290.91, 273.56, 294.4, 271.98, 302.63, 271.66, 298.52, 268.18, 275.07, 270.39]], "area": 139.0584500000002, "iscrowd": 0, "image_id": 16125, "bbox": [274.75, 268.18, 27.88, 9.82], "category_id": 51, "id": 1900159}, {"segmentation": [[359.61, 478.15, 351.47, 470.55, 343.87, 419.54, 353.64, 403.8, 340.61, 391.86, 347.67, 370.7, 375.35, 365.82, 401.94, 378.84, 416.05, 395.12, 430.7, 407.06, 431.24, 414.66, 422.56, 435.82, 406.82, 445.59, 404.65, 458.61, 413.88, 464.04, 413.88, 479.24]], "area": 7391.195799999999, "iscrowd": 0, "image_id": 382979, "bbox": [340.61, 365.82, 90.63, 113.42], "category_id": 51, "id": 1900322}, {"segmentation": [[262.28, 142.67, 275.48, 153.95, 281.28, 155.23, 283.54, 155.56, 289.01, 156.52, 311.88, 158.78, 321.54, 156.2, 323.79, 149.76, 298.35, 148.79, 270.33, 144.93, 262.92, 141.71]], "area": 464.4834000000003, "iscrowd": 0, "image_id": 543882, "bbox": [262.28, 141.71, 61.51, 17.07], "category_id": 51, "id": 1900592}, {"segmentation": [[359.06, 305.45, 354.08, 304.21, 347.84, 295.48, 312.94, 281.77, 309.19, 264.31, 304.21, 261.82, 336.62, 233.14, 361.56, 234.39, 374.03, 236.88, 398.96, 245.61, 396.47, 263.06, 360.31, 289.25]], "area": 3983.276650000001, "iscrowd": 0, "image_id": 382979, "bbox": [304.21, 233.14, 94.75, 72.31], "category_id": 51, "id": 1900800}, {"segmentation": [[616.2, 298.63, 620.66, 225.09, 601.71, 174.94, 561.6, 117.0, 478.03, 63.51, 356.57, 30.09, 269.66, 32.31, 186.09, 51.26, 96.94, 92.49, 33.43, 179.4, 18.94, 256.29, 54.6, 371.06, 121.46, 420.09, 519.26, 422.31, 578.31, 379.97]], "area": 195624.70359999998, "iscrowd": 0, "image_id": 49851, "bbox": [18.94, 30.09, 601.72, 392.22], "category_id": 51, "id": 1900882}, {"segmentation": [[59.28, 49.86, 53.69, 43.81, 46.7, 34.96, 39.72, 17.72, 37.85, 10.74, 37.85, 8.87, 45.31, 5.61, 59.28, 4.21, 88.16, 0.95, 110.05, 0.02, 113.78, 7.48, 115.64, 27.04, 112.85, 36.35, 106.79, 46.6, 57.88, 50.79]], "area": 3144.7358499999996, "iscrowd": 0, "image_id": 496847, "bbox": [37.85, 0.02, 77.79, 50.77], "category_id": 51, "id": 1901112}, {"segmentation": [[403.65, 362.75, 387.41, 370.33, 376.58, 365.46, 365.22, 366.0, 348.98, 369.25, 343.03, 380.61, 338.7, 382.24, 321.37, 378.99, 311.63, 361.67, 309.47, 357.34, 309.47, 355.72, 309.47, 355.17, 348.44, 360.59, 375.5, 363.29, 390.66, 351.93, 399.86, 343.27, 403.65, 361.67]], "area": 1228.0130499999996, "iscrowd": 0, "image_id": 382979, "bbox": [309.47, 343.27, 94.18, 38.97], "category_id": 51, "id": 1901307}, {"segmentation": [[0.0, 292.61, 0.69, 350.22, 6.94, 359.94, 31.23, 366.88, 85.37, 360.63, 112.44, 348.14, 120.77, 328.01, 139.51, 285.67, 148.54, 255.82, 145.76, 243.33, 118.0, 235.0, 79.82, 235.7, 35.4, 241.25, 9.02, 245.41, 0.0, 248.19]], "area": 16009.383799999998, "iscrowd": 0, "image_id": 446266, "bbox": [0.0, 235.0, 148.54, 131.88], "category_id": 51, "id": 1901547}, {"segmentation": [[162.64, 112.73, 169.15, 114.36, 197.21, 134.69, 204.12, 137.54, 282.61, 136.73, 288.31, 134.29, 331.83, 109.07, 337.93, 104.6, 336.71, 103.38, 324.1, 106.22, 264.31, 109.48, 214.29, 110.7, 180.94, 110.7]], "area": 3517.565749999998, "iscrowd": 0, "image_id": 83787, "bbox": [162.64, 103.38, 175.29, 34.16], "category_id": 51, "id": 1901870}, {"segmentation": [[186.34, 8.87, 165.18, 12.32, 137.87, 14.78, 122.12, 15.02, 115.48, 14.04, 115.48, 26.1, 122.12, 38.65, 134.42, 48.24, 154.35, 47.01, 167.64, 45.04, 174.53, 42.83, 180.19, 36.19, 185.6, 24.13, 186.09, 16.99, 187.32, 9.61, 184.62, 7.4]], "area": 2091.753549999999, "iscrowd": 0, "image_id": 496847, "bbox": [115.48, 7.4, 71.84, 40.84], "category_id": 51, "id": 1901969}, {"segmentation": [[377.09, 273.19, 383.18, 276.45, 386.65, 279.93, 383.39, 286.45, 382.09, 283.4, 379.7, 280.8, 375.57, 281.88, 373.61, 286.01, 370.13, 286.01], [362.96, 272.54, 373.18, 272.75, 373.18, 274.27, 367.96, 283.84, 366.44, 284.27, 359.7, 282.75, 358.61, 282.97, 357.09, 282.97], [356.87, 273.84, 351.01, 274.71, 347.31, 276.67, 353.4, 278.84]], "area": 240.60239999999993, "iscrowd": 0, "image_id": 561406, "bbox": [347.31, 272.54, 39.34, 13.91], "category_id": 51, "id": 1902326}, {"segmentation": [[135.58, 212.49, 113.77, 246.0, 168.31, 217.16, 173.77, 203.92, 161.3, 184.44, 135.58, 173.53, 126.23, 172.75, 105.97, 168.07, 81.82, 166.52, 65.45, 168.07, 56.1, 170.41, 48.31, 179.76, 50.65, 207.81, 62.34, 227.29, 74.03, 235.09, 93.51, 205.48, 98.96, 205.48, 102.86, 221.84, 102.86, 224.96, 109.87, 212.49, 114.55, 212.49, 111.43, 231.97, 130.13, 215.61]], "area": 6088.026849999999, "iscrowd": 0, "image_id": 185474, "bbox": [48.31, 166.52, 125.46, 79.48], "category_id": 51, "id": 1902417}, {"segmentation": [[149.1, 187.54, 133.72, 192.86, 136.68, 203.51, 165.65, 217.7, 196.4, 240.17, 274.46, 242.53, 312.9, 231.89, 351.92, 207.05, 349.56, 203.51, 321.17, 211.78, 260.86, 217.11, 215.92, 217.7, 156.78, 210.01, 142.0, 199.37]], "area": 3942.1490999999983, "iscrowd": 0, "image_id": 83787, "bbox": [133.72, 187.54, 218.2, 54.99], "category_id": 51, "id": 1902443}, {"segmentation": [[364.46, 217.01, 446.83, 216.19, 453.76, 225.98, 457.84, 239.84, 460.29, 248.4, 463.14, 259.41, 465.18, 269.2, 480.27, 309.16, 487.61, 335.67, 492.09, 353.2, 488.83, 372.36, 473.74, 375.0, 435.41, 375.0, 373.03, 375.0, 366.09, 374.81, 363.24, 371.14, 355.49, 285.51, 347.34, 230.46, 347.34, 225.16, 350.6, 222.72]], "area": 18664.326250000006, "iscrowd": 0, "image_id": 428208, "bbox": [347.34, 216.19, 144.75, 158.81], "category_id": 51, "id": 1902625}, {"segmentation": [[173.38, 225.97, 135.39, 235.71, 112.99, 251.3, 95.45, 263.96, 91.56, 280.52, 102.27, 303.9, 106.17, 308.77, 119.81, 320.45, 154.87, 330.19, 169.48, 335.06, 183.12, 337.01, 193.83, 343.83, 190.91, 356.49, 200.65, 362.34, 234.74, 372.08, 242.53, 372.08, 255.19, 374.03, 274.68, 374.03, 298.05, 369.16, 316.56, 359.42, 324.35, 346.75, 332.14, 335.06, 340.91, 332.14, 342.86, 315.58, 344.81, 225.97, 331.17, 222.08], [374.03, 234.74, 369.16, 316.56, 375.0, 316.56, 376.95, 321.43, 386.69, 316.56, 405.19, 300.97, 415.91, 287.34, 416.88, 268.83, 411.04, 253.25, 400.32, 244.48, 389.61, 238.64, 381.82, 235.71, 378.9, 233.77]], "area": 32647.305399999997, "iscrowd": 0, "image_id": 83787, "bbox": [91.56, 222.08, 325.32, 151.95], "category_id": 51, "id": 1902710}, {"segmentation": [[241.77, 366.48, 234.67, 346.37, 234.97, 301.51, 244.43, 223.45, 258.03, 215.76, 339.05, 216.95, 349.69, 228.18, 362.11, 363.6, 353.83, 375.0, 251.53, 374.24]], "area": 18387.762800000004, "iscrowd": 0, "image_id": 428208, "bbox": [234.67, 215.76, 127.44, 159.24], "category_id": 51, "id": 1902753}, {"segmentation": [[269.61, 106.26, 266.02, 104.1, 267.1, 101.23, 262.79, 92.62, 259.92, 38.41, 272.49, 27.28, 333.87, 25.48, 342.49, 33.02, 352.9, 92.62, 340.34, 109.49, 319.87, 103.74]], "area": 6663.295399999998, "iscrowd": 0, "image_id": 428208, "bbox": [259.92, 25.48, 92.98, 84.01], "category_id": 51, "id": 1903027}, {"segmentation": [[22.42, 160.8, 41.14, 155.33, 46.9, 144.67, 51.22, 133.44, 53.52, 125.09, 51.79, 122.5, 19.83, 121.35, 27.32, 125.09, 22.71, 141.5, 20.12, 155.33], [12.02, 123.0, 6.02, 123.82, 0.0, 124.77, 0.0, 125.72, 0.0, 138.12, 4.94, 134.71, 9.02, 134.3, 8.2, 130.35, 8.89, 126.95, 10.38, 124.77]], "area": 1002.6174500000004, "iscrowd": 0, "image_id": 185474, "bbox": [0.0, 121.35, 53.52, 39.45], "category_id": 51, "id": 1903255}, {"segmentation": [[82.81, 139.19, 77.88, 130.89, 75.63, 127.75, 74.74, 124.61, 100.76, 127.3, 129.25, 134.93, 145.63, 140.09, 148.1, 147.5, 140.92, 157.59, 129.03, 166.57, 128.36, 166.57, 126.79, 168.59, 129.03, 153.33, 127.23, 152.88, 127.23, 151.98, 125.66, 147.72, 123.42, 149.52, 122.07, 151.09, 118.48, 154.23, 117.36, 162.08, 116.02, 168.14, 98.07, 163.87, 94.03, 160.51, 92.46, 158.27]], "area": 1798.7994999999994, "iscrowd": 0, "image_id": 185474, "bbox": [74.74, 124.61, 73.36, 43.98], "category_id": 51, "id": 1903444}, {"segmentation": [[19.24, 168.78, 13.04, 198.8, 0.0, 214.13, 0.0, 159.98, 12.71, 161.61, 18.26, 164.54]], "area": 719.7041, "iscrowd": 0, "image_id": 185474, "bbox": [0.0, 159.98, 19.24, 54.15], "category_id": 51, "id": 1903969}, {"segmentation": [[439.34, 161.0, 565.02, 160.53, 567.13, 120.4, 513.27, 69.7, 498.48, 64.42, 491.09, 120.4, 466.8, 142.57, 444.62, 139.41, 444.62, 127.79, 435.12, 156.3]], "area": 6706.3527, "iscrowd": 0, "image_id": 16680, "bbox": [435.12, 64.42, 132.01, 96.58], "category_id": 52, "id": 1904395}, {"segmentation": [[566.03, 121.32, 575.9, 144.23, 601.44, 160.75, 640.0, 159.25, 638.0, 140.22, 621.47, 127.2, 608.95, 126.7, 597.43, 120.19, 584.41, 109.17, 581.44, 110.58, 576.08, 121.35]], "area": 2193.0356499999994, "iscrowd": 0, "image_id": 16680, "bbox": [566.03, 109.17, 73.97, 51.58], "category_id": 52, "id": 1904522}, {"segmentation": [[117.62, 234.38, 108.28, 240.09, 105.69, 245.28, 94.27, 250.98, 83.9, 254.62, 74.04, 272.25, 74.04, 290.93, 78.71, 302.86, 84.42, 306.49, 88.05, 309.09, 91.16, 310.64, 98.94, 307.53, 98.42, 303.9, 102.57, 302.34, 110.87, 312.72, 113.99, 316.87, 116.58, 317.91, 121.77, 317.91, 124.88, 312.72, 125.92, 305.98, 124.36, 298.71, 127.99, 294.04, 136.81, 301.31, 147.19, 303.9, 151.34, 302.34, 154.97, 298.19, 156.01, 296.64, 158.08, 299.75, 163.79, 298.71, 166.38, 297.67, 159.12, 279.0, 154.97, 272.77, 154.97, 271.22, 172.61, 280.04, 177.8, 279.52, 178.32, 274.85, 175.2, 267.59, 165.86, 258.25, 150.82, 247.87, 136.29, 239.05, 129.55, 238.53, 124.36, 237.5, 121.77, 236.98]], "area": 5386.3849, "iscrowd": 0, "image_id": 41688, "bbox": [74.04, 234.38, 104.28, 83.53], "category_id": 52, "id": 1904630}, {"segmentation": [[517.88, 1.42, 530.9, 16.95, 551.93, 40.98, 551.43, 15.44, 587.49, 16.44, 590.49, 42.49, 589.99, 52.5, 560.95, 55.0, 566.95, 64.52, 577.47, 64.02, 587.49, 63.52, 596.0, 73.53, 597.5, 82.55, 597.0, 92.06, 590.49, 100.58, 583.98, 105.58, 590.99, 115.1, 608.52, 126.62, 618.54, 128.12, 624.54, 127.62, 628.55, 116.1, 630.05, 104.08, 630.05, 95.07, 617.03, 65.52, 639.07, 87.56, 638.57, 1.42]], "area": 6862.574699999999, "iscrowd": 0, "image_id": 16680, "bbox": [517.88, 1.42, 121.19, 126.7], "category_id": 52, "id": 1904675}, {"segmentation": [[320.53, 119.78, 371.55, 161.93, 436.98, 194.09, 472.47, 212.95, 496.87, 207.4, 524.6, 166.36, 491.33, 135.31, 436.98, 106.47, 379.31, 67.65], [245.11, 84.29, 300.56, 39.93, 269.51, 27.73, 231.8, 21.07, 166.36, 24.4, 135.31, 36.6, 133.09, 44.36, 151.95, 62.11, 168.58, 72.09, 211.84, 75.42, 225.15, 77.64]], "area": 21143.010850000002, "iscrowd": 0, "image_id": 226262, "bbox": [133.09, 21.07, 391.51, 191.88], "category_id": 52, "id": 1904748}, {"segmentation": [[421.56, 172.61, 427.29, 171.02, 433.98, 169.74, 438.76, 168.47, 440.03, 171.97, 444.17, 175.16, 443.21, 177.39, 452.13, 179.62, 451.5, 172.93, 451.5, 169.42, 453.73, 169.74, 453.41, 167.83, 455.32, 167.83, 458.5, 173.56, 455.64, 179.3, 448.63, 181.53, 445.13, 187.26, 439.71, 193.63, 437.48, 186.94, 435.89, 185.03, 432.07, 186.62, 420.28, 185.35, 422.83, 174.84]], "area": 464.0406999999997, "iscrowd": 0, "image_id": 373765, "bbox": [420.28, 167.83, 38.22, 25.8], "category_id": 52, "id": 1904792}, {"segmentation": [[80.97, 440.36, 67.86, 423.68, 69.06, 396.26, 83.36, 371.24, 94.09, 365.28, 110.77, 358.12, 127.46, 348.59, 134.61, 348.59, 135.8, 349.78, 148.91, 353.36, 156.06, 367.66, 163.21, 387.92, 159.64, 398.65, 159.64, 421.29, 154.87, 440.36, 145.34, 442.75, 136.99, 428.44, 122.69, 457.05, 108.39, 453.47, 109.58, 447.51, 101.24, 458.24, 84.55, 455.86, 77.4, 440.36]], "area": 7652.967900000001, "iscrowd": 0, "image_id": 41688, "bbox": [67.86, 348.59, 95.35, 109.65], "category_id": 52, "id": 1904888}, {"segmentation": [[319.2, 223.86, 324.33, 220.44, 328.32, 218.72, 334.02, 209.6, 334.59, 200.48, 334.02, 198.2, 339.72, 192.5, 339.72, 190.79, 337.44, 189.65, 338.01, 185.66, 330.6, 187.37, 320.91, 189.65, 319.77, 190.22, 319.2, 193.07, 310.64, 188.51, 306.65, 190.79, 311.78, 195.35, 310.64, 197.63, 313.49, 199.34, 313.49, 205.61, 313.49, 210.17, 314.06, 215.87, 314.06, 227.28]], "area": 715.0878999999994, "iscrowd": 0, "image_id": 373765, "bbox": [306.65, 185.66, 33.07, 41.62], "category_id": 52, "id": 1905215}, {"segmentation": [[376.38, 196.74, 377.93, 196.19, 379.85, 194.91, 382.14, 193.72, 383.97, 193.63, 384.34, 194.82, 385.62, 197.29, 384.98, 198.57, 382.78, 199.94, 381.5, 200.31, 380.04, 199.85, 379.03, 199.3, 377.38, 199.3, 376.2, 199.76, 374.92, 199.12, 374.82, 197.75, 375.28, 196.92, 376.56, 196.65]], "area": 44.850049999999996, "iscrowd": 0, "image_id": 373765, "bbox": [374.82, 193.63, 10.8, 6.68], "category_id": 52, "id": 1905256}, {"segmentation": [[93.41, 126.77, 94.52, 142.33, 128.99, 153.45, 190.15, 164.57, 277.99, 151.23, 338.04, 105.64, 380.3, 56.71, 391.42, 73.39, 403.65, 47.82, 365.84, 37.81, 331.37, 23.35, 242.41, 83.4, 110.09, 105.64, 98.97, 111.2]], "area": 19654.39765, "iscrowd": 0, "image_id": 226262, "bbox": [93.41, 23.35, 310.24, 141.22], "category_id": 52, "id": 1905406}, {"segmentation": [[322.94, 94.48, 325.07, 125.97, 342.69, 133.98, 356.56, 122.77, 358.17, 98.22, 358.7, 85.4, 339.48, 93.41, 321.33, 82.74]], "area": 1357.7930000000003, "iscrowd": 0, "image_id": 16680, "bbox": [321.33, 82.74, 37.37, 51.24], "category_id": 52, "id": 1905426}, {"segmentation": [[199.24, 257.88, 192.47, 274.23, 187.96, 285.51, 185.14, 299.04, 185.14, 308.06, 210.51, 319.33, 216.71, 314.26, 228.55, 322.15, 235.32, 319.9, 236.45, 318.2, 243.78, 319.33, 248.29, 313.13, 253.92, 315.39, 256.18, 310.31, 256.18, 301.86, 256.18, 291.71, 234.19, 268.03, 224.04, 265.21, 215.59, 265.77, 212.2, 259.57, 209.95, 256.75]], "area": 3244.35235, "iscrowd": 0, "image_id": 41688, "bbox": [185.14, 256.75, 71.04, 65.4], "category_id": 52, "id": 1905456}, {"segmentation": [[155.33, 302.41, 151.99, 307.66, 151.99, 311.0, 140.53, 309.57, 131.94, 314.34, 122.39, 322.94, 113.8, 342.03, 116.66, 352.06, 118.09, 353.49, 130.51, 349.67, 139.1, 349.67, 146.26, 354.44, 151.03, 357.79, 153.9, 359.7, 158.19, 356.83, 160.58, 357.79, 172.52, 365.9, 178.72, 364.95, 182.54, 362.08, 183.97, 356.35, 187.79, 353.01, 194.47, 353.49, 206.89, 355.4, 211.66, 350.15, 212.14, 346.33, 211.66, 334.87, 223.6, 331.53, 225.5, 326.28, 222.64, 322.94, 185.4, 308.62, 179.2, 306.71, 174.42, 309.09, 171.56, 308.14, 163.92, 303.84]], "area": 4357.11145, "iscrowd": 0, "image_id": 41688, "bbox": [113.8, 302.41, 111.7, 63.49], "category_id": 52, "id": 1905530}, {"segmentation": [[349.14, 283.12, 345.8, 271.67, 343.42, 258.3, 340.07, 251.62, 332.91, 246.37, 329.09, 243.5, 326.23, 245.89, 322.89, 243.02, 317.64, 241.59, 313.82, 244.46, 311.43, 239.68, 303.79, 239.21, 300.45, 239.21, 298.54, 241.11, 293.29, 239.21, 284.22, 243.02, 281.36, 249.71, 279.45, 255.44, 274.2, 259.26, 272.76, 266.89, 273.72, 278.35, 277.06, 278.35, 281.36, 280.26, 286.61, 285.99, 297.11, 295.54, 300.93, 294.58, 305.7, 291.24, 309.52, 290.29, 315.25, 289.33, 319.07, 287.9, 321.46, 283.12, 328.62, 282.17, 332.44, 282.17, 338.16, 282.17, 343.89, 279.31, 348.67, 281.69]], "area": 2933.4122499999994, "iscrowd": 0, "image_id": 41688, "bbox": [272.76, 239.21, 76.38, 56.33], "category_id": 52, "id": 1905626}, {"segmentation": [[352.35, 285.93, 362.37, 293.57, 368.58, 307.41, 375.26, 328.42, 379.56, 339.87, 379.56, 353.24, 379.56, 367.08, 375.74, 370.9, 369.06, 368.04, 364.76, 358.97, 356.17, 344.65, 354.26, 359.92, 348.53, 364.22, 342.8, 358.01, 337.55, 351.33, 348.05, 351.81, 350.44, 345.6, 344.23, 338.44, 334.21, 328.42, 323.23, 320.78, 310.82, 316.0, 300.79, 314.09, 296.5, 316.48, 296.5, 307.41, 297.93, 298.34, 302.22, 293.09, 312.25, 291.18, 318.93, 290.23, 322.27, 284.5, 346.62, 282.11, 349.01, 289.27]], "area": 3704.0328499999987, "iscrowd": 0, "image_id": 41688, "bbox": [296.5, 282.11, 83.06, 88.79], "category_id": 52, "id": 1905670}, {"segmentation": [[180.82, 475.01, 173.81, 450.1, 169.14, 448.54, 155.9, 439.2, 156.68, 395.59, 159.01, 390.14, 173.81, 373.79, 186.27, 376.91, 188.6, 373.02, 199.5, 373.02, 203.4, 377.69, 203.4, 371.46, 208.07, 369.12, 219.75, 373.02, 228.31, 404.94, 206.51, 466.45, 199.5, 429.85, 194.05, 471.9, 186.27, 478.13]], "area": 5240.170000000001, "iscrowd": 0, "image_id": 41688, "bbox": [155.9, 369.12, 72.41, 109.01], "category_id": 52, "id": 1905684}, {"segmentation": [[268.74, 234.53, 271.74, 235.81, 274.83, 239.23, 276.22, 243.08, 276.97, 247.13, 277.5, 250.23, 272.59, 252.37, 269.07, 253.54, 267.04, 254.72, 263.3, 257.71, 263.3, 258.88, 263.72, 259.63, 266.82, 259.74, 273.55, 258.67, 275.15, 258.46, 271.84, 261.02, 271.52, 262.41, 269.71, 262.73, 266.5, 263.16, 263.94, 262.84, 261.48, 261.56, 261.27, 259.74, 260.41, 258.03, 259.13, 256.64, 257.21, 256.43, 254.32, 256.86, 252.51, 254.29, 252.72, 251.83, 253.26, 249.48, 252.62, 245.75, 254.97, 242.65, 255.82, 240.3, 250.91, 239.66, 251.55, 238.59, 257.42, 235.6, 262.55, 233.78, 266.18, 233.89, 269.07, 234.53]], "area": 492.87565000000006, "iscrowd": 0, "image_id": 558153, "bbox": [250.91, 233.78, 26.59, 29.38], "category_id": 53, "id": 1906094}, {"segmentation": [[310.27, 351.72, 307.31, 347.44, 304.67, 341.85, 304.02, 336.25, 307.64, 330.32, 309.61, 328.02, 312.58, 327.36, 317.18, 329.34, 321.79, 329.34, 330.02, 327.69, 333.31, 327.03, 335.29, 332.3, 336.28, 338.23, 335.29, 346.78, 330.35, 353.37, 324.76, 354.68]], "area": 708.1151000000008, "iscrowd": 0, "image_id": 558153, "bbox": [304.02, 327.03, 32.26, 27.65], "category_id": 53, "id": 1907720}, {"segmentation": [[317.01, 312.36, 306.11, 290.97, 321.45, 276.85, 340.82, 280.08, 400.13, 344.64, 410.62, 405.57, 397.31, 406.78, 373.9, 364.81, 369.87, 355.13]], "area": 4608.268999999999, "iscrowd": 0, "image_id": 411517, "bbox": [306.11, 276.85, 104.51, 129.93], "category_id": 54, "id": 1909143}, {"segmentation": [[259.41, 319.16, 269.91, 315.83, 277.33, 315.06, 282.7, 315.06, 283.47, 307.13, 280.4, 300.22, 273.49, 295.87, 268.11, 293.82, 258.65, 294.08, 254.04, 300.73, 255.06, 307.9, 255.83, 311.99, 258.39, 321.21]], "area": 562.0150500000002, "iscrowd": 0, "image_id": 461530, "bbox": [254.04, 293.82, 29.43, 27.39], "category_id": 54, "id": 1910087}, {"segmentation": [[395.0, 268.83, 394.26, 272.32, 394.26, 274.35, 394.08, 277.84, 399.04, 280.23, 405.48, 281.52, 409.53, 280.42, 409.53, 271.96, 401.8, 268.83, 397.2, 266.81]], "area": 169.52514999999997, "iscrowd": 0, "image_id": 461530, "bbox": [394.08, 266.81, 15.45, 14.71], "category_id": 54, "id": 1911216}, {"segmentation": [[145.52, 358.02, 147.47, 344.63, 156.68, 338.21, 167.56, 336.82, 175.65, 337.94, 179.83, 344.07, 171.46, 347.42, 165.6, 356.63, 165.33, 366.39, 164.77, 368.9, 151.66, 360.81, 146.08, 357.18]], "area": 590.4079500000003, "iscrowd": 0, "image_id": 382979, "bbox": [145.52, 336.82, 34.31, 32.08], "category_id": 55, "id": 1911684}, {"segmentation": [[385.21, 208.31, 389.67, 209.8, 393.63, 211.2, 395.03, 212.19, 398.82, 212.27, 401.87, 212.68, 402.78, 210.62, 403.11, 209.3, 404.68, 208.39, 405.42, 207.49, 405.75, 206.0, 404.35, 205.1, 403.85, 204.6, 403.93, 201.96, 403.11, 201.14, 401.87, 200.64, 400.22, 200.64, 399.73, 199.57, 398.66, 198.66, 397.01, 198.33, 395.03, 198.83, 393.71, 199.4, 393.3, 199.49, 391.56, 197.76, 389.01, 197.26, 387.69, 198.25, 388.02, 201.05, 387.69, 202.37, 386.2, 203.03, 385.79, 204.35, 385.79, 205.92, 384.14, 205.59, 384.22, 207.9]], "area": 217.39555000000033, "iscrowd": 0, "image_id": 185474, "bbox": [384.14, 197.26, 21.61, 15.42], "category_id": 55, "id": 1912161}, {"segmentation": [[193.47, 345.49, 181.14, 343.7, 174.73, 338.05, 171.65, 337.53, 177.04, 330.6, 184.99, 324.44, 193.98, 322.9, 201.42, 325.47, 206.56, 328.29]], "area": 477.86115000000007, "iscrowd": 0, "image_id": 382979, "bbox": [171.65, 322.9, 34.91, 22.59], "category_id": 55, "id": 1912366}, {"segmentation": [[206.62, 327.2, 193.14, 344.59, 205.32, 360.02, 221.62, 351.11, 232.05, 341.33, 225.75, 330.24, 219.88, 326.55, 218.36, 326.55]], "area": 793.0017500000002, "iscrowd": 0, "image_id": 382979, "bbox": [193.14, 326.55, 38.91, 33.47], "category_id": 55, "id": 1912739}, {"segmentation": [[585.19, 280.47, 587.5, 274.6, 585.4, 267.06, 591.27, 262.03, 597.98, 260.56, 602.17, 260.98, 608.04, 264.75, 612.65, 271.67, 611.82, 280.47, 608.88, 283.83, 604.48, 287.39, 601.54, 288.02, 591.06, 282.99]], "area": 556.4199000000001, "iscrowd": 0, "image_id": 360695, "bbox": [585.19, 260.56, 27.46, 27.46], "category_id": 55, "id": 1912862}, {"segmentation": [[514.5, 228.83, 514.5, 238.26, 513.67, 243.08, 512.62, 245.81, 511.15, 247.7, 508.63, 248.95, 506.75, 249.37, 505.7, 249.16, 501.09, 245.39, 498.36, 243.08, 493.96, 242.66, 490.4, 241.83, 488.93, 239.52, 488.3, 236.17, 488.72, 231.55, 489.98, 227.99, 492.07, 224.01, 495.22, 222.12, 498.36, 220.65, 500.88, 220.65, 508.84, 221.7, 512.62, 223.8, 514.5, 226.73, 514.71, 229.67]], "area": 576.6965999999995, "iscrowd": 0, "image_id": 360695, "bbox": [488.3, 220.65, 26.41, 28.72], "category_id": 55, "id": 1913487}, {"segmentation": [[519.78, 252.48, 511.62, 248.39, 513.22, 245.02, 514.46, 237.74, 514.28, 232.77, 514.1, 229.4, 514.99, 227.98, 520.32, 226.56, 523.51, 227.09, 527.06, 228.34, 532.57, 233.66, 533.45, 240.58, 530.97, 241.65, 527.24, 243.07, 521.38, 247.51, 521.2, 251.23, 520.67, 252.83]], "area": 347.82565, "iscrowd": 0, "image_id": 360695, "bbox": [511.62, 226.56, 21.83, 26.27], "category_id": 55, "id": 1913644}, {"segmentation": [[474.08, 224.26, 473.34, 218.82, 475.57, 216.59, 481.51, 216.59, 489.93, 219.31, 492.41, 225.01, 487.45, 233.42, 486.96, 236.64, 483.99, 238.38, 477.55, 237.88, 473.34, 235.9, 476.07, 230.21, 475.32, 223.03]], "area": 305.2016000000002, "iscrowd": 0, "image_id": 360695, "bbox": [473.34, 216.59, 19.07, 21.79], "category_id": 55, "id": 1913992}, {"segmentation": [[492.08, 214.4, 496.13, 211.4, 500.04, 210.64, 504.7, 211.1, 506.66, 212.15, 508.16, 213.8, 508.01, 214.25, 506.51, 218.01, 505.0, 220.87, 503.5, 221.17, 500.04, 221.62, 496.74, 219.06, 494.48, 216.66]], "area": 117.73254999999996, "iscrowd": 0, "image_id": 360695, "bbox": [492.08, 210.64, 16.08, 10.98], "category_id": 55, "id": 1914115}, {"segmentation": [[481.62, 215.64, 486.28, 213.39, 488.83, 212.94, 490.49, 212.94, 491.54, 213.99, 494.09, 216.55, 495.3, 219.1, 495.3, 220.61, 494.84, 222.56, 493.34, 223.61, 490.18, 221.51, 488.83, 220.3, 485.98, 218.5, 482.82, 217.45, 480.87, 216.7]], "area": 79.9916500000001, "iscrowd": 0, "image_id": 360695, "bbox": [480.87, 212.94, 14.43, 10.67], "category_id": 55, "id": 1914236}, {"segmentation": [[540.54, 232.74, 537.69, 236.0, 531.98, 234.78, 525.45, 229.47, 520.56, 225.8, 519.34, 222.13, 521.78, 216.02, 534.43, 211.12, 541.36, 216.42, 545.03, 228.66, 544.21, 232.33]], "area": 422.23805, "iscrowd": 0, "image_id": 360695, "bbox": [519.34, 211.12, 25.69, 24.88], "category_id": 55, "id": 1914326}, {"segmentation": [[585.22, 266.93, 582.29, 262.71, 579.01, 261.19, 571.99, 260.14, 567.65, 261.07, 561.8, 264.94, 559.22, 269.74, 558.99, 275.24, 559.92, 279.81, 564.26, 280.98, 566.83, 282.39, 568.71, 283.91, 569.53, 285.43, 570.46, 287.77, 571.63, 288.36, 574.45, 288.36, 575.62, 288.36, 578.9, 287.07, 579.36, 286.37, 581.36, 284.85, 585.34, 281.33, 584.87, 279.69, 587.09, 273.84, 585.34, 267.63]], "area": 582.056450000001, "iscrowd": 0, "image_id": 360695, "bbox": [558.99, 260.14, 28.1, 28.22], "category_id": 55, "id": 1914356}, {"segmentation": [[610.08, 297.11, 614.43, 293.63, 618.78, 292.32, 625.17, 292.32, 632.13, 295.08, 634.89, 300.3, 634.16, 302.92, 634.16, 303.21, 606.74, 304.51, 608.19, 300.16]], "area": 256.2086499999993, "iscrowd": 0, "image_id": 360695, "bbox": [606.74, 292.32, 28.15, 12.19], "category_id": 55, "id": 1914367}, {"segmentation": [[601.83, 287.6, 607.76, 284.31, 612.6, 281.89, 621.18, 281.45, 627.56, 285.85, 629.98, 294.42, 613.48, 297.94, 609.08, 299.7, 606.01, 299.26, 603.15, 296.84, 600.95, 293.32]], "area": 372.7163499999994, "iscrowd": 0, "image_id": 360695, "bbox": [600.95, 281.45, 29.03, 18.25], "category_id": 55, "id": 1914375}, {"segmentation": [[486.38, 297.55, 490.56, 292.54, 498.07, 291.71, 501.69, 292.54, 502.81, 293.94, 501.69, 298.11, 500.02, 304.51, 499.74, 306.46, 494.45, 303.96, 488.89, 300.06, 485.55, 298.39, 485.55, 298.39]], "area": 153.0362499999997, "iscrowd": 0, "image_id": 360695, "bbox": [485.55, 291.71, 17.26, 14.75], "category_id": 55, "id": 1914400}, {"segmentation": [[561.9, 246.59, 558.28, 234.62, 561.06, 226.55, 569.41, 225.44, 577.21, 224.88, 581.94, 232.4, 585.28, 239.08, 585.56, 244.37, 583.61, 247.71, 581.94, 249.1, 578.04, 250.77]], "area": 533.1918000000011, "iscrowd": 0, "image_id": 360695, "bbox": [558.28, 224.88, 27.28, 25.89], "category_id": 55, "id": 1914414}, {"segmentation": [[78.14, 433.3, 122.03, 422.87, 145.72, 420.35, 157.09, 418.77, 166.24, 415.93, 181.09, 412.77, 185.19, 412.77, 189.3, 419.72, 190.56, 430.14, 188.35, 442.14, 183.3, 452.56, 179.19, 459.51, 169.09, 468.98, 158.03, 473.4, 140.98, 472.77, 130.24, 469.61, 118.56, 464.88, 115.4, 455.4, 115.72, 447.82, 99.61, 450.03, 92.03, 451.93, 85.4, 448.45, 81.29, 444.35, 80.03, 436.45]], "area": 4280.6723999999995, "iscrowd": 0, "image_id": 8223, "bbox": [78.14, 412.77, 112.42, 60.63], "category_id": 56, "id": 1914468}, {"segmentation": [[272.77, 417.62, 261.89, 413.27, 252.46, 409.64, 239.4, 401.66, 235.04, 398.04, 232.14, 387.15, 237.22, 376.27, 249.55, 374.09, 258.26, 375.54, 264.79, 382.8, 271.32, 395.86, 283.65, 407.47, 282.2, 417.62]], "area": 1315.5403000000001, "iscrowd": 0, "image_id": 8223, "bbox": [232.14, 374.09, 51.51, 43.53], "category_id": 56, "id": 1914604}, {"segmentation": [[124.78, 253.18, 130.06, 245.02, 139.18, 251.74, 135.82, 258.46, 131.02, 260.86, 137.26, 275.25, 136.78, 276.21, 115.66, 274.77, 98.39, 251.74, 108.94, 246.46, 123.82, 252.7]], "area": 762.9024499999994, "iscrowd": 0, "image_id": 8223, "bbox": [98.39, 245.02, 40.79, 31.19], "category_id": 56, "id": 1914842}, {"segmentation": [[282.04, 100.55, 276.32, 99.46, 274.61, 96.9, 275.59, 94.34, 278.14, 92.64, 280.21, 92.27, 282.53, 92.39]], "area": 49.492149999999974, "iscrowd": 0, "image_id": 428208, "bbox": [274.61, 92.27, 7.92, 8.28], "category_id": 56, "id": 1915301}, {"segmentation": [[375.69, 93.2, 382.27, 88.94, 385.17, 86.23, 390.59, 86.23, 396.98, 91.07, 402.4, 96.49, 376.46, 99.01]], "area": 214.27105000000006, "iscrowd": 0, "image_id": 428208, "bbox": [375.69, 86.23, 26.71, 12.78], "category_id": 56, "id": 1915794}, {"segmentation": [[45.66, 218.2, 81.61, 223.06, 121.44, 233.74, 82.58, 302.72, 60.23, 323.12, 43.72, 307.58, 1.94, 242.49, 34.97, 221.11]], "area": 7081.28415, "iscrowd": 0, "image_id": 404869, "bbox": [1.94, 218.2, 119.5, 104.92], "category_id": 57, "id": 1916877}, {"segmentation": [[202.15, 81.54, 163.09, 50.29, 172.85, 37.6, 201.17, 16.11, 222.66, 53.22, 249.02, 65.92, 203.13, 83.5]], "area": 2579.2985500000004, "iscrowd": 0, "image_id": 404869, "bbox": [163.09, 16.11, 85.93, 67.39], "category_id": 57, "id": 1917292}, {"segmentation": [[311.07, 155.33, 297.24, 183.89, 307.06, 187.02, 308.84, 204.42, 327.14, 205.76, 329.82, 166.93, 327.59, 155.78]], "area": 1146.8047499999993, "iscrowd": 0, "image_id": 49851, "bbox": [297.24, 155.33, 32.58, 50.43], "category_id": 57, "id": 1917614}, {"segmentation": [[422.41, 96.3, 466.63, 143.09, 476.89, 157.19, 477.53, 166.8, 437.15, 138.6, 420.49, 120.66, 410.23, 108.48, 398.06, 92.46, 392.29, 80.28, 407.03, 84.13]], "area": 1685.9903000000006, "iscrowd": 0, "image_id": 33034, "bbox": [392.29, 80.28, 85.24, 86.52], "category_id": 57, "id": 1917860}, {"segmentation": [[188.75, 0.63, 190.0, 13.13, 197.5, 43.13, 220.0, 60.63, 266.25, 70.63, 362.5, 90.63, 383.75, 81.88, 382.5, 20.63, 382.5, 16.88, 382.5, 3.13]], "area": 13587.5, "iscrowd": 0, "image_id": 176923, "bbox": [188.75, 0.63, 195.0, 90.0], "category_id": 57, "id": 1918297}, {"segmentation": [[447.37, 108.01, 459.32, 138.34, 476.78, 156.26, 480.0, 156.72, 473.1, 140.18, 461.61, 113.99, 459.32, 107.09]], "area": 524.826300000001, "iscrowd": 0, "image_id": 33034, "bbox": [447.37, 107.09, 32.63, 49.63], "category_id": 57, "id": 1918732}, {"segmentation": [[352.42, 157.92, 330.81, 186.18, 312.52, 186.18, 236.05, 157.92, 241.04, 146.29, 299.22, 131.32]], "area": 3751.4333500000016, "iscrowd": 0, "image_id": 207385, "bbox": [236.05, 131.32, 116.37, 54.86], "category_id": 59, "id": 1923592}, {"segmentation": [[288.25, 326.22, 319.33, 271.82, 328.07, 251.42, 320.3, 237.82, 308.64, 244.62, 296.02, 266.96, 286.3, 306.79, 284.36, 323.31]], "area": 1502.4218500000002, "iscrowd": 0, "image_id": 63017, "bbox": [284.36, 237.82, 43.71, 88.4], "category_id": 59, "id": 1923765}, {"segmentation": [[638.75, 463.13, 601.25, 449.38, 551.25, 446.88, 523.75, 465.63, 528.75, 473.13, 638.75, 473.13]], "area": 2328.125, "iscrowd": 0, "image_id": 501625, "bbox": [523.75, 446.88, 115.0, 26.25], "category_id": 59, "id": 1923861}, {"segmentation": [[186.13, 233.51, 183.35, 241.45, 184.15, 247.53, 184.94, 250.31, 186.66, 251.1, 198.83, 250.84, 209.02, 252.56, 216.03, 252.82, 215.77, 247.4, 217.35, 244.22, 222.25, 241.05, 223.57, 237.61, 221.98, 233.51, 218.81, 230.73, 211.27, 229.14, 203.86, 229.54, 195.13, 230.86, 189.97, 231.52, 188.38, 232.98]], "area": 741.7748500000004, "iscrowd": 0, "image_id": 382979, "bbox": [183.35, 229.14, 40.22, 23.68], "category_id": 60, "id": 1924752}, {"segmentation": [[110.52, 382.56, 89.82, 376.23, 105.45, 358.9, 112.21, 352.99, 117.7, 350.88, 117.7, 357.21, 130.38, 358.9, 123.2, 364.82, 117.7, 373.27]], "area": 571.3188000000005, "iscrowd": 0, "image_id": 216851, "bbox": [89.82, 350.88, 40.56, 31.68], "category_id": 60, "id": 1924988}, {"segmentation": [[163.99, 273.73, 155.11, 271.2, 147.92, 270.77, 145.81, 265.28, 144.12, 254.7, 145.81, 244.56, 155.11, 241.17, 170.33, 241.17, 182.17, 243.71, 182.17, 250.48, 176.68, 260.62, 169.49, 269.5]], "area": 953.8044, "iscrowd": 0, "image_id": 382979, "bbox": [144.12, 241.17, 38.05, 32.56], "category_id": 60, "id": 1925146}, {"segmentation": [[177.01, 281.34, 169.86, 273.84, 170.22, 262.41, 177.36, 253.49, 186.65, 249.92, 197.72, 249.92, 210.57, 251.34, 214.86, 253.13, 208.08, 254.2, 199.5, 262.06, 195.93, 265.27, 191.65, 272.41, 187.01, 278.13, 181.29, 281.7]], "area": 748.6385499999997, "iscrowd": 0, "image_id": 382979, "bbox": [169.86, 249.92, 45.0, 31.78], "category_id": 60, "id": 1925476}, {"segmentation": [[68.32, 372.31, 110.76, 335.73, 148.81, 326.94, 201.5, 338.65, 220.53, 372.31, 220.53, 413.29, 220.53, 452.81, 191.25, 477.69, 156.13, 492.32, 113.69, 493.79, 87.34, 486.47, 68.32, 470.37, 59.54, 444.03, 50.75, 404.51]], "area": 22583.150800000003, "iscrowd": 0, "image_id": 371808, "bbox": [50.75, 326.94, 169.78, 166.85], "category_id": 60, "id": 1925706}, {"segmentation": [[166.39, 273.45, 170.17, 275.34, 174.19, 281.95, 174.42, 288.57, 171.12, 291.64, 163.79, 294.24, 158.83, 297.54, 152.22, 297.31, 145.13, 301.56, 135.92, 306.52, 130.25, 301.32, 128.84, 294.24, 130.02, 285.5, 133.09, 279.12, 143.95, 272.74, 154.58, 271.09, 164.74, 273.92]], "area": 1065.4877, "iscrowd": 0, "image_id": 382979, "bbox": [128.84, 271.09, 45.58, 35.43], "category_id": 60, "id": 1926008}, {"segmentation": [[603.95, 176.23, 604.28, 173.73, 606.11, 171.24, 611.43, 170.07, 616.59, 171.9, 617.59, 174.07, 612.43, 176.23, 605.28, 176.89]], "area": 64.45964999999987, "iscrowd": 0, "image_id": 543882, "bbox": [603.95, 170.07, 13.64, 6.82], "category_id": 60, "id": 1926047}, {"segmentation": [[109.99, 299.73, 104.42, 300.43, 95.37, 304.61, 99.55, 314.36, 104.42, 322.71, 114.87, 322.02, 126.71, 316.45, 134.37, 312.96, 127.41, 303.21]], "area": 598.8790999999995, "iscrowd": 0, "image_id": 382979, "bbox": [95.37, 299.73, 39.0, 22.98], "category_id": 60, "id": 1926068}, {"segmentation": [[592.32, 175.32, 589.12, 174.68, 584.2, 173.19, 583.35, 172.33, 583.14, 170.62, 584.63, 169.34, 587.41, 168.7, 591.25, 170.2, 592.96, 173.19]], "area": 42.706900000000125, "iscrowd": 0, "image_id": 543882, "bbox": [583.14, 168.7, 9.82, 6.62], "category_id": 60, "id": 1926159}, {"segmentation": [[193.25, 270.56, 206.82, 254.85, 222.89, 250.92, 240.39, 256.64, 242.18, 268.06, 227.18, 271.63, 222.18, 274.49, 211.82, 268.78, 202.18, 268.06]], "area": 680.0954000000003, "iscrowd": 0, "image_id": 382979, "bbox": [193.25, 250.92, 48.93, 23.57], "category_id": 60, "id": 1926228}, {"segmentation": [[154.15, 49.5, 141.62, 114.67, 151.64, 224.96, 125.33, 212.43, 132.85, 350.29, 151.64, 449.3, 204.28, 480.0, 601.57, 476.87, 640.0, 351.54, 640.0, 87.1, 607.83, 68.3, 562.72, 63.29, 545.17, 64.54, 561.46, 16.92, 548.93, 4.39, 377.23, 4.39, 374.73, 55.77, 323.34, 68.3, 258.17, 63.29, 204.28, 45.74, 151.64, 45.74]], "area": 215411.45865000004, "iscrowd": 0, "image_id": 176923, "bbox": [125.33, 4.39, 514.67, 475.61], "category_id": 61, "id": 1926978}, {"segmentation": [[319.22, 135.5, 372.06, 168.52, 386.37, 191.64, 383.07, 226.87, 413.89, 236.77, 442.51, 256.59, 468.93, 265.39, 481.04, 267.59, 492.05, 275.3, 528.37, 264.29, 530.57, 233.47, 549.29, 215.86, 573.5, 214.76, 605.43, 210.35, 617.53, 194.94, 617.53, 170.73, 607.63, 147.61, 564.7, 113.49, 494.25, 79.36, 435.91, 70.56, 385.27, 67.25, 361.05, 83.77, 361.05, 94.77, 330.23, 94.77, 322.53, 107.98, 319.22, 123.39, 317.02, 134.4]], "area": 38502.406, "iscrowd": 0, "image_id": 441382, "bbox": [317.02, 67.25, 300.51, 208.05], "category_id": 61, "id": 1927457}, {"segmentation": [[6.67, 136.53, 70.07, 132.08, 116.79, 128.75, 151.27, 128.75, 181.3, 99.83, 190.2, 76.47, 233.58, 82.03, 236.91, 60.9, 229.13, 43.1, 171.29, 0.83, 1.11, 6.4]], "area": 25046.862050000003, "iscrowd": 0, "image_id": 441382, "bbox": [1.11, 0.83, 235.8, 135.7], "category_id": 61, "id": 1927670}, {"segmentation": [[310.51, 363.11, 334.85, 346.52, 371.36, 331.02, 393.49, 316.64, 406.77, 302.26, 423.37, 300.04, 459.88, 286.76, 476.48, 286.76, 501.93, 285.66, 535.12, 298.94, 556.15, 300.04, 571.64, 310.0, 573.85, 318.85, 640.0, 349.84, 640.0, 425.08, 269.57, 425.08, 265.14, 406.27, 280.63, 387.46, 298.34, 366.43, 312.72, 366.43]], "area": 38445.36745, "iscrowd": 0, "image_id": 441382, "bbox": [265.14, 285.66, 374.86, 139.42], "category_id": 61, "id": 1927709}, {"segmentation": [[328.41, 441.29, 269.4, 397.24, 250.52, 363.41, 244.23, 315.42, 249.74, 277.66, 254.46, 265.08, 258.39, 258.78, 278.06, 231.25, 305.59, 210.79, 327.62, 198.99, 347.29, 192.7, 363.02, 191.13, 386.62, 188.77, 411.8, 188.77, 420.45, 196.63, 439.33, 187.98, 455.85, 191.91, 462.14, 198.99, 477.88, 195.85, 485.74, 203.71, 503.05, 210.01, 520.36, 220.23, 538.45, 232.03, 549.47, 246.98, 572.28, 267.44, 580.93, 290.25, 587.23, 305.2, 588.8, 315.42, 591.16, 336.66, 593.52, 343.74, 595.1, 351.61, 590.37, 361.05, 584.08, 373.64, 580.15, 383.87, 573.85, 390.95, 573.85, 399.6, 553.4, 416.12, 545.53, 424.77, 536.88, 431.07, 521.15, 438.93, 495.19, 451.52, 472.37, 457.81, 411.8, 463.32, 392.13, 463.32, 363.81, 455.45, 338.63, 446.01]], "area": 75402.22689999998, "iscrowd": 0, "image_id": 486638, "bbox": [244.23, 187.98, 350.87, 275.34], "category_id": 61, "id": 1929083}, {"segmentation": [[50.74, 236.51, 53.37, 235.8, 57.57, 235.59, 60.98, 235.59, 63.83, 236.3, 63.9, 236.51, 63.76, 240.93, 50.1, 241.71, 48.53, 241.42, 48.67, 239.36, 48.81, 237.51]], "area": 81.28410000000004, "iscrowd": 0, "image_id": 24730, "bbox": [48.53, 235.59, 15.37, 6.12], "category_id": 62, "id": 1930610}, {"segmentation": [[526.13, 332.88, 521.14, 260.57, 492.47, 255.58, 462.55, 195.74, 386.49, 193.25, 380.26, 198.23, 386.49, 258.08, 395.22, 279.27, 388.99, 306.7, 387.74, 324.16, 411.43, 331.64, 432.62, 312.94]], "area": 14695.779449999998, "iscrowd": 0, "image_id": 139915, "bbox": [380.26, 193.25, 145.87, 139.63], "category_id": 62, "id": 1930935}, {"segmentation": [[639.76, 202.14, 629.37, 218.68, 622.52, 212.3, 598.19, 209.94, 618.98, 208.99, 622.99, 204.03, 630.32, 204.74, 640.0, 199.31]], "area": 210.3634999999997, "iscrowd": 0, "image_id": 130624, "bbox": [598.19, 199.31, 41.81, 19.37], "category_id": 62, "id": 1931488}, {"segmentation": [[278.26, 151.01, 306.27, 153.48, 312.86, 120.54, 250.67, 116.42, 244.5, 115.6, 239.97, 118.07, 241.2, 125.48, 238.73, 134.13, 237.5, 137.83, 258.09, 138.66, 269.62, 141.13, 274.56, 146.07]], "area": 1934.3082999999995, "iscrowd": 0, "image_id": 111705, "bbox": [237.5, 115.6, 75.36, 37.88], "category_id": 62, "id": 1931551}, {"segmentation": [[574.0, 369.53, 575.96, 370.18, 576.94, 362.5, 582.33, 361.85, 587.72, 361.36, 590.49, 367.89, 593.43, 367.57, 591.31, 361.69, 595.07, 360.54, 596.7, 359.07, 590.33, 358.26, 589.02, 354.5, 591.15, 344.05, 590.82, 341.76, 589.68, 339.64, 578.08, 339.64, 569.43, 342.91, 569.59, 349.6, 568.12, 353.85, 566.65, 351.73, 560.77, 352.22, 560.28, 355.15, 564.2, 359.24, 568.28, 360.22, 571.88, 368.22]], "area": 584.4470000000005, "iscrowd": 0, "image_id": 2114, "bbox": [560.28, 339.64, 36.42, 30.54], "category_id": 62, "id": 1931686}, {"segmentation": [[517.67, 422.32, 515.47, 412.4, 515.03, 401.82, 515.03, 397.41, 518.33, 396.31, 524.28, 411.3, 535.31, 413.73, 543.9, 411.74, 548.75, 412.85, 554.04, 421.66, 553.82, 427.0, 520.98, 427.0]], "area": 604.3560499999995, "iscrowd": 0, "image_id": 547693, "bbox": [515.03, 396.31, 39.01, 30.69], "category_id": 62, "id": 1932056}, {"segmentation": [[1.73, 177.53, 28.78, 174.17, 50.37, 174.38, 65.47, 179.62, 77.83, 190.74, 85.17, 214.63, 86.01, 241.68, 82.45, 262.85, 79.51, 264.11, 78.25, 252.79, 75.32, 250.69, 31.71, 247.55, 0.9, 245.24, 0.0, 245.66, 0.9, 213.59, 0.69, 177.95]], "area": 5901.774899999999, "iscrowd": 0, "image_id": 286116, "bbox": [0.0, 174.17, 86.01, 89.94], "category_id": 62, "id": 1932946}, {"segmentation": [[243.47, 94.0, 300.14, 96.63, 309.8, 86.97, 299.26, 77.31, 262.36, 72.03, 243.91, 91.8]], "area": 1115.0026999999998, "iscrowd": 0, "image_id": 111705, "bbox": [243.47, 72.03, 66.33, 24.6], "category_id": 62, "id": 1933006}, {"segmentation": [[334.49, 365.62, 385.42, 377.61, 424.87, 382.1, 482.8, 378.6, 505.27, 388.59, 500.78, 435.03, 500.28, 476.98, 335.98, 478.48, 333.99, 423.05, 333.99, 370.12]], "area": 16716.468899999996, "iscrowd": 0, "image_id": 561406, "bbox": [333.99, 365.62, 171.28, 112.86], "category_id": 62, "id": 1933264}, {"segmentation": [[4.46, 183.54, 0.0, 236.39, 3.81, 253.35, 5.11, 276.19, 5.11, 312.07, 5.11, 312.07, 12.94, 314.68, 19.47, 317.94, 19.47, 317.94, 35.12, 315.98, 41.0, 296.41, 6.42, 256.61, 17.51, 261.18, 46.22, 295.76, 75.57, 331.64, 80.14, 333.6, 92.54, 306.2, 98.41, 314.68, 109.5, 321.2, 110.8, 310.76, 103.63, 289.89, 103.63, 289.89, 101.02, 282.71, 110.8, 255.96, 117.98, 247.48, 114.72, 247.48, 106.89, 247.48, 86.01, 254.0, 84.06, 254.0, 81.45, 254.0, 61.87, 255.96, 54.04, 247.48, 52.09, 245.52, 55.35, 244.22, 58.61, 244.22, 65.14, 241.61, 64.48, 233.13, 77.53, 235.08, 82.1, 223.99, 82.1, 218.77, 68.4, 215.51, 65.79, 216.82, 51.44, 221.38, 50.78, 217.47, 45.56, 188.11, 23.38, 190.07, 7.07, 183.54, 5.77, 227.26]], "area": 9801.1851, "iscrowd": 0, "image_id": 275917, "bbox": [0.0, 183.54, 117.98, 150.06], "category_id": 62, "id": 1933389}, {"segmentation": [[0.0, 287.02, 56.38, 277.85, 58.05, 328.74, 63.06, 338.75, 59.72, 402.99, 55.55, 352.93, 33.02, 359.61, 32.19, 414.67, 24.68, 417.17, 19.67, 368.78, 2.99, 372.12, 2.99, 407.16, 1.32, 408.83]], "area": 5472.7205, "iscrowd": 0, "image_id": 444214, "bbox": [0.0, 277.85, 63.06, 139.32], "category_id": 62, "id": 1933409}, {"segmentation": [[502.19, 427.0, 483.93, 409.85, 480.05, 403.21, 480.05, 396.57, 483.93, 393.25, 530.41, 384.39, 540.37, 387.16, 589.07, 427.0, 503.29, 427.0]], "area": 3043.817500000001, "iscrowd": 0, "image_id": 448843, "bbox": [480.05, 384.39, 109.02, 42.61], "category_id": 62, "id": 1933707}, {"segmentation": [[640.0, 267.08, 640.0, 381.97, 639.18, 418.02, 639.18, 424.47, 590.53, 424.76, 590.53, 417.44, 586.13, 417.73, 583.49, 414.21, 598.44, 386.66, 614.26, 370.54, 612.8, 362.04, 616.02, 361.16, 618.07, 360.28, 615.73, 344.46, 620.13, 331.27, 628.92, 325.41, 635.07, 291.7, 639.47, 267.96]], "area": 3757.2309499999965, "iscrowd": 0, "image_id": 64492, "bbox": [583.49, 267.08, 56.51, 157.68], "category_id": 62, "id": 1933827}, {"segmentation": [[430.23, 276.88, 438.02, 277.18, 442.67, 280.02, 447.46, 283.77, 449.71, 284.22, 450.31, 288.12, 450.31, 291.26, 459.61, 292.76, 467.25, 293.06, 473.4, 295.91, 473.54, 299.51, 471.75, 301.16, 474.14, 304.6, 459.76, 306.25, 452.26, 308.35, 445.97, 309.4, 444.92, 307.75, 447.32, 304.6, 445.07, 301.46, 441.32, 298.31, 438.92, 302.36, 437.12, 302.51, 435.32, 296.66, 436.52, 291.71, 433.08, 283.02, 432.18, 278.97]], "area": 662.8655000000003, "iscrowd": 0, "image_id": 115055, "bbox": [430.23, 276.88, 43.91, 32.52], "category_id": 62, "id": 1934101}, {"segmentation": [[17.17, 261.4, 10.49, 246.12, 16.21, 230.37, 22.9, 223.68, 32.92, 221.77, 45.81, 222.73, 65.86, 227.5, 88.3, 232.75, 114.55, 237.05, 136.99, 239.44, 152.74, 239.44, 160.86, 239.91, 158.0, 248.51, 158.0, 255.67, 158.0, 264.74, 155.61, 276.2]], "area": 5367.342499999997, "iscrowd": 0, "image_id": 410561, "bbox": [10.49, 221.77, 150.37, 54.43], "category_id": 62, "id": 1934231}, {"segmentation": [[22.26, 181.29, 31.93, 184.0, 45.09, 199.09, 45.48, 202.58, 26.13, 209.16, 18.77, 222.32, 18.0, 221.93, 14.51, 184.0]], "area": 670.0812500000002, "iscrowd": 0, "image_id": 130949, "bbox": [14.51, 181.29, 30.97, 41.03], "category_id": 62, "id": 1934523}, {"segmentation": [[193.96, 264.9, 181.43, 246.64, 182.14, 228.38, 192.17, 211.2, 203.27, 212.63, 203.27, 248.07]], "area": 867.2911500000005, "iscrowd": 0, "image_id": 176587, "bbox": [181.43, 211.2, 21.84, 53.7], "category_id": 62, "id": 1935037}, {"segmentation": [[6.65, 379.31, 16.64, 371.55, 26.62, 371.55, 78.75, 377.09, 98.71, 375.98, 94.27, 390.4, 105.36, 394.84, 110.91, 393.73, 125.33, 387.07, 125.33, 373.76, 147.51, 368.22, 171.91, 357.13, 180.78, 364.89, 195.2, 362.67, 199.64, 349.36, 199.64, 314.98, 196.31, 289.47, 183.0, 285.04, 179.67, 268.4, 153.05, 262.85, 131.98, 257.31, 122.0, 258.42, 116.45, 239.56, 103.15, 231.8, 45.47, 234.02, 9.98, 246.22, 0.0, 251.76, 3.33, 358.24, 0.0, 374.87, 4.44, 381.53]], "area": 24546.523, "iscrowd": 0, "image_id": 84202, "bbox": [0.0, 231.8, 199.64, 163.04], "category_id": 62, "id": 1935195}, {"segmentation": [[194.33, 221.48, 195.23, 221.03, 200.32, 228.67, 202.72, 227.17, 197.63, 220.13, 199.27, 217.13, 205.72, 227.02, 202.12, 216.08, 193.88, 212.18, 192.98, 223.27]], "area": 85.42499999999997, "iscrowd": 0, "image_id": 347340, "bbox": [192.98, 212.18, 12.74, 16.49], "category_id": 62, "id": 1935579}, {"segmentation": [[103.85, 356.29, 123.82, 352.85, 132.5, 354.49, 132.17, 357.93, 131.85, 358.58, 132.17, 362.67, 125.95, 365.13, 121.37, 361.86, 118.58, 362.51, 118.26, 366.28, 112.53, 367.26, 112.04, 361.2, 104.5, 356.29]], "area": 238.13064999999938, "iscrowd": 0, "image_id": 2114, "bbox": [103.85, 352.85, 28.65, 14.41], "category_id": 62, "id": 1935843}, {"segmentation": [[112.69, 191.43, 121.97, 182.15, 124.5, 181.3, 126.61, 173.29, 132.09, 168.23, 161.61, 168.23, 164.57, 168.23, 163.72, 173.29, 160.77, 185.52, 158.24, 190.16, 150.65, 197.75, 148.12, 200.28, 144.74, 200.71, 140.52, 200.71, 137.99, 199.44, 134.62, 198.6, 131.67, 201.13, 131.25, 207.45, 137.99, 209.56, 140.2, 213.84, 142.17, 219.75, 142.83, 221.72, 122.13, 230.92, 119.5, 235.2, 119.83, 242.1, 121.14, 245.38, 123.77, 277.9, 110.3, 275.93, 108.0, 247.67, 106.02, 239.78, 105.69, 234.52, 105.69, 228.28, 112.27, 193.11], [176.02, 179.99, 174.38, 188.2, 168.14, 204.31, 161.23, 204.63, 167.15, 193.13, 172.74, 180.97]], "area": 2851.0967499999997, "iscrowd": 0, "image_id": 207463, "bbox": [105.69, 168.23, 70.33, 109.67], "category_id": 62, "id": 1936364}, {"segmentation": [[420.24, 274.31, 420.24, 261.26, 419.42, 256.36, 424.32, 254.32, 429.62, 257.17, 435.74, 255.13, 433.29, 245.34, 441.46, 241.67, 453.29, 242.48, 460.64, 245.75, 456.96, 255.13, 457.78, 258.4, 456.96, 265.74, 456.96, 270.64, 456.96, 275.95, 449.62, 277.99, 439.01, 277.99, 434.52, 276.35, 434.11, 272.27, 427.58, 271.05, 427.58, 276.76, 420.24, 277.17, 420.64, 273.09]], "area": 1075.2733999999996, "iscrowd": 0, "image_id": 64744, "bbox": [419.42, 241.67, 41.22, 36.32], "category_id": 62, "id": 1936768}, {"segmentation": [[1.47, 341.45, 110.49, 321.7, 115.62, 320.97, 118.54, 337.06, 106.1, 345.85, 89.27, 347.31, 92.2, 406.58, 124.4, 408.77, 122.93, 423.41, 23.42, 424.87, 66.59, 413.9, 55.62, 358.28, 2.93, 364.14]], "area": 5587.195050000004, "iscrowd": 0, "image_id": 448843, "bbox": [1.47, 320.97, 122.93, 103.9], "category_id": 62, "id": 1936933}, {"segmentation": [[23.5, 158.01, 25.47, 153.63, 24.59, 149.25, 12.54, 150.13, 13.2, 156.92, 19.77, 156.7, 21.31, 157.58], [24.37, 147.28, 24.37, 142.02, 18.24, 138.52, 13.86, 139.17, 8.38, 140.93, 5.97, 143.34, 6.85, 148.59, 11.45, 148.38, 18.9, 147.06], [9.48, 157.58, 10.35, 154.95, 9.04, 149.91, 5.97, 149.91, 5.75, 157.36, 7.51, 157.14]], "area": 257.0701499999999, "iscrowd": 0, "image_id": 448843, "bbox": [5.75, 138.52, 19.72, 19.49], "category_id": 62, "id": 1937043}, {"segmentation": [[5.5, 341.15, 54.16, 351.88, 121.79, 356.0, 163.02, 362.6, 210.03, 362.6, 227.35, 365.07, 247.14, 388.16, 269.41, 435.99, 287.55, 480.0, 3.03, 476.4, 3.85, 339.5]], "area": 31263.48905, "iscrowd": 0, "image_id": 50885, "bbox": [3.03, 339.5, 284.52, 140.5], "category_id": 62, "id": 1937461}, {"segmentation": [[44.91, 233.24, 43.78, 230.46, 31.23, 231.8, 29.69, 235.09, 29.18, 240.13, 38.84, 242.29, 40.69, 241.36, 42.34, 235.19]], "area": 129.19274999999982, "iscrowd": 0, "image_id": 24730, "bbox": [29.18, 230.46, 15.73, 11.83], "category_id": 62, "id": 1937568}, {"segmentation": [[402.35, 371.36, 400.63, 370.38, 401.62, 362.27, 400.63, 353.43, 409.48, 351.95, 415.37, 351.46, 418.56, 351.46, 422.0, 352.94, 423.48, 357.36, 423.48, 362.27, 424.21, 369.88, 422.74, 369.88, 421.51, 362.52, 405.3, 363.25, 404.56, 363.25, 402.35, 370.38]], "area": 267.0566500000003, "iscrowd": 0, "image_id": 2114, "bbox": [400.63, 351.46, 23.58, 19.9], "category_id": 62, "id": 1937740}, {"segmentation": [[27.3, 176.32, 9.65, 176.32, 3.14, 171.27, 2.93, 169.38, 35.08, 164.55, 44.74, 164.55, 56.93, 164.34, 59.87, 165.39, 54.83, 167.91, 52.73, 168.75]], "area": 413.43034999999946, "iscrowd": 0, "image_id": 448843, "bbox": [2.93, 164.34, 56.94, 11.98], "category_id": 62, "id": 1937766}, {"segmentation": [[138.69, 215.93, 136.46, 196.18, 141.88, 195.23, 146.34, 195.55, 146.34, 199.05, 145.7, 201.92, 147.93, 206.38, 148.25, 210.2, 148.88, 212.75, 146.97, 214.02]], "area": 188.07435000000004, "iscrowd": 0, "image_id": 579659, "bbox": [136.46, 195.23, 12.42, 20.7], "category_id": 62, "id": 1937805}, {"segmentation": [[202.96, 419.24, 183.0, 412.58, 151.95, 421.45, 185.22, 420.35], [147.51, 420.35, 113.13, 407.04, 78.75, 409.25, 47.69, 407.04, 45.47, 339.38, 52.13, 323.85, 33.27, 305.0, 2.22, 301.67, 1.11, 401.49, 1.11, 421.45]], "area": 6529.7127, "iscrowd": 0, "image_id": 308936, "bbox": [1.11, 301.67, 201.85, 119.78], "category_id": 62, "id": 1937861}, {"segmentation": [[410.49, 290.11, 410.49, 286.09, 411.91, 284.67, 417.1, 283.96, 438.13, 283.73, 438.6, 285.15, 437.89, 287.04, 435.29, 288.93, 434.35, 289.63, 429.15, 289.87, 422.54, 290.58, 419.23, 290.58, 414.98, 290.11, 411.43, 290.11]], "area": 163.49724999999998, "iscrowd": 0, "image_id": 385701, "bbox": [410.49, 283.73, 28.11, 6.85], "category_id": 62, "id": 1937910}, {"segmentation": [[319.01, 433.93, 322.01, 424.93, 319.76, 418.18, 316.76, 402.44, 331.0, 402.44, 350.5, 405.44, 363.25, 405.44, 363.25, 394.94, 378.24, 338.7, 385.74, 334.95, 405.99, 338.7, 411.24, 339.45, 412.74, 334.2, 423.24, 332.7, 435.23, 332.7, 447.98, 334.95, 456.23, 340.95, 459.23, 349.95, 471.23, 349.95, 477.97, 349.95, 486.22, 351.45, 489.22, 353.7, 490.72, 360.45, 487.72, 380.69, 482.47, 436.93, 478.72, 459.43, 435.23, 447.43, 370.0, 433.93, 325.0, 433.18, 325.0, 433.18]], "area": 13878.450650000006, "iscrowd": 0, "image_id": 275327, "bbox": [316.76, 332.7, 173.96, 126.73], "category_id": 62, "id": 1938044}, {"segmentation": [[256.13, 548.93, 263.91, 457.11, 259.24, 454.51, 263.39, 451.4, 273.25, 448.29, 289.85, 447.77, 302.3, 448.29, 308.52, 452.96, 305.41, 457.63, 324.09, 523.51, 326.68, 549.45, 328.76, 557.23, 325.13, 557.75, 314.23, 519.88, 300.74, 523.51, 300.22, 538.56, 295.04, 538.56, 294.0, 526.62, 289.33, 527.14, 287.25, 568.13, 282.07, 571.24, 282.07, 569.68, 276.88, 530.26, 264.95, 521.96, 262.87, 550.49]], "area": 4849.451649999997, "iscrowd": 0, "image_id": 371714, "bbox": [256.13, 447.77, 72.63, 123.47], "category_id": 62, "id": 1938246}, {"segmentation": [[482.45, 246.84, 474.15, 246.84, 473.08, 254.87, 473.08, 259.96, 460.22, 258.62, 460.22, 264.52, 461.03, 277.1, 469.33, 276.84, 476.83, 278.18, 478.7, 274.96, 484.33, 270.14, 484.33, 270.14, 486.74, 263.71, 482.72, 250.86]], "area": 541.3323, "iscrowd": 0, "image_id": 64744, "bbox": [460.22, 246.84, 26.52, 31.34], "category_id": 62, "id": 1938376}, {"segmentation": [[236.04, 340.3, 236.04, 330.14, 275.3, 321.82, 276.69, 329.21, 287.78, 329.21, 294.24, 326.9, 293.78, 317.2, 297.48, 316.74, 299.78, 297.81, 296.55, 288.57, 297.01, 276.56, 285.93, 271.48, 287.78, 262.24, 282.23, 254.85, 271.61, 253.93, 243.29, 252.83, 247.42, 249.65, 247.1, 243.93, 237.89, 229.64, 190.87, 228.68, 182.73, 230.27, 173.2, 233.45, 170.34, 238.53, 156.04, 249.65, 158.58, 262.99, 181.46, 264.58, 181.78, 269.03, 178.6, 269.98, 180.82, 279.51, 179.87, 287.45, 199.57, 292.22, 197.34, 310.33, 200.52, 313.5, 200.52, 327.48, 214.18, 329.59, 214.5, 341.03, 226.25, 342.62]], "area": 10079.689049999997, "iscrowd": 0, "image_id": 84202, "bbox": [156.04, 228.68, 143.74, 113.94], "category_id": 62, "id": 1938458}, {"segmentation": [[464.99, 358.94, 467.07, 350.61, 464.73, 333.16, 459.78, 329.0, 458.22, 317.8, 458.22, 304.78, 466.03, 306.61, 468.63, 315.98, 471.76, 324.57, 472.02, 328.22, 470.46, 333.43, 470.46, 340.46, 470.98, 343.84, 469.94, 352.95], [492.33, 339.41, 496.75, 339.67, 495.71, 327.96, 494.15, 319.1, 494.41, 311.29, 495.19, 306.09, 493.37, 305.31, 491.81, 309.21, 491.55, 314.16, 492.59, 322.23, 492.33, 328.74, 491.29, 335.25, 490.77, 337.33]], "area": 492.57994999999926, "iscrowd": 0, "image_id": 444214, "bbox": [458.22, 304.78, 38.53, 54.16], "category_id": 62, "id": 1938712}, {"segmentation": [[296.66, 370.33, 297.51, 361.06, 300.04, 359.37, 293.57, 355.15, 272.77, 357.68, 272.2, 353.75, 264.33, 355.43, 258.15, 355.99, 248.02, 356.56, 239.03, 357.68, 231.72, 356.84, 230.31, 357.68, 234.25, 359.93, 235.09, 367.8, 234.81, 370.05, 227.78, 369.77, 230.59, 372.86, 242.68, 370.61, 256.46, 368.65, 251.96, 372.58, 255.33, 372.58, 258.15, 368.36, 268.55, 368.36, 269.95, 372.3, 275.3, 371.18, 277.83, 364.99, 281.76, 363.87, 292.16, 370.9]], "area": 840.2787500000004, "iscrowd": 0, "image_id": 2114, "bbox": [227.78, 353.75, 72.26, 19.11], "category_id": 62, "id": 1938873}, {"segmentation": [[109.09, 371.87, 115.63, 370.68, 113.85, 325.51, 129.3, 322.54, 139.4, 316.6, 145.35, 337.4, 149.51, 348.69, 158.42, 348.69, 154.26, 335.61, 147.13, 299.95, 146.54, 277.37, 145.35, 220.31, 140.0, 216.75, 113.25, 207.83, 69.86, 209.61, 52.03, 222.09, 50.85, 236.95, 49.06, 277.96, 47.87, 321.35, 38.96, 365.33, 47.87, 364.14, 61.54, 323.73, 77.59, 328.48, 96.02, 326.11, 106.12, 329.08, 108.5, 368.9]], "area": 12041.332400000001, "iscrowd": 0, "image_id": 518481, "bbox": [38.96, 207.83, 119.46, 164.04], "category_id": 62, "id": 1939400}, {"segmentation": [[3.66, 317.56, 39.62, 313.5, 54.7, 329.16, 73.26, 377.89, 140.54, 401.67, 141.7, 417.33, 146.92, 443.43, 156.78, 455.03, 159.1, 467.79, 125.46, 466.05, 97.62, 476.49, 86.02, 480.0, 75.0, 480.0, 0.0, 480.0]], "area": 17005.632600000004, "iscrowd": 0, "image_id": 146513, "bbox": [0.0, 313.5, 159.1, 166.5], "category_id": 62, "id": 1939796}, {"segmentation": [[415.21, 216.31, 434.54, 218.39, 434.54, 233.54, 427.75, 245.56, 418.87, 249.21, 419.91, 253.39, 420.43, 259.14, 419.39, 266.45, 419.91, 270.11, 415.21, 275.33, 407.37, 268.54, 404.24, 265.93, 399.54, 269.59, 395.36, 272.72, 387.52, 272.72, 386.48, 270.63, 394.84, 261.23, 394.84, 252.87, 389.09, 248.69, 382.3, 242.42, 380.73, 233.54, 391.18, 225.71, 404.76, 223.62, 407.9, 221.53, 411.55, 216.31]], "area": 1943.4930500000014, "iscrowd": 0, "image_id": 64744, "bbox": [380.73, 216.31, 53.81, 59.02], "category_id": 62, "id": 1939943}, {"segmentation": [[447.32, 110.76, 449.99, 114.77, 449.23, 116.68, 445.41, 117.07, 442.73, 116.3, 439.29, 116.11, 438.14, 116.11, 434.7, 110.37, 435.27, 108.27, 440.24, 106.55, 443.69, 107.51, 446.94, 112.1]], "area": 104.26080000000012, "iscrowd": 0, "image_id": 41577, "bbox": [434.7, 106.55, 15.29, 10.52], "category_id": 62, "id": 1940021}, {"segmentation": [[108.91, 362.65, 100.04, 370.41, 95.88, 369.99, 94.63, 363.62, 82.71, 362.92, 82.71, 369.16, 77.44, 369.3, 76.05, 361.81, 59.69, 361.4, 60.52, 362.37, 60.11, 369.58, 57.75, 369.3, 57.06, 358.35, 63.44, 355.16, 107.25, 358.07, 109.6, 361.54]], "area": 427.1656999999996, "iscrowd": 0, "image_id": 2114, "bbox": [57.06, 355.16, 52.54, 15.25], "category_id": 62, "id": 1940345}, {"segmentation": [[315.36, 426.0, 315.03, 401.58, 319.65, 397.62, 328.56, 396.3, 339.44, 398.28, 354.62, 409.49, 363.19, 400.59, 375.4, 379.48, 371.44, 373.87, 369.79, 364.96, 371.44, 355.72, 376.72, 349.79, 382.99, 347.15, 426.53, 339.89, 463.8, 335.27, 501.08, 333.29, 548.91, 333.95, 557.16, 338.24, 563.43, 346.49, 567.39, 356.05, 567.06, 367.27, 563.76, 372.22, 559.47, 374.86, 553.86, 376.51, 550.23, 426.0]], "area": 17818.4784, "iscrowd": 0, "image_id": 37433, "bbox": [315.03, 333.29, 252.36, 92.71], "category_id": 62, "id": 1940838}, {"segmentation": [[385.98, 281.98, 391.89, 281.98, 394.6, 280.01, 393.86, 275.33, 397.31, 271.15, 398.79, 267.45, 399.53, 263.51, 367.51, 262.04, 365.79, 266.47, 364.07, 270.9, 364.31, 272.13, 370.72, 271.64, 373.42, 271.89, 375.39, 270.16, 377.86, 266.47, 379.58, 268.19, 378.1, 271.89, 378.35, 274.84, 381.8, 276.07, 385.49, 278.29, 386.72, 281.98]], "area": 405.3810499999997, "iscrowd": 0, "image_id": 561406, "bbox": [364.07, 262.04, 35.46, 19.94], "category_id": 62, "id": 1941223}, {"segmentation": [[62.51, 178.55, 58.41, 172.18, 72.96, 170.36, 74.33, 177.19]], "area": 91.36964999999994, "iscrowd": 0, "image_id": 41577, "bbox": [58.41, 170.36, 15.92, 8.19], "category_id": 62, "id": 1942918}, {"segmentation": [[529.18, 226.42, 528.2, 232.61, 528.36, 237.5, 530.48, 238.48, 537.98, 239.29, 538.31, 233.59, 535.54, 232.28, 535.54, 227.72, 534.56, 225.44, 529.18, 226.42]], "area": 104.10384999999941, "iscrowd": 0, "image_id": 64744, "bbox": [528.2, 225.44, 10.11, 13.85], "category_id": 62, "id": 1943667}, {"segmentation": [[210.38, 341.41, 197.27, 334.65, 191.77, 310.55, 176.55, 288.14, 208.69, 281.37, 210.8, 302.09, 220.53, 305.9]], "area": 1321.5550999999998, "iscrowd": 0, "image_id": 77841, "bbox": [176.55, 281.37, 43.98, 60.04], "category_id": 62, "id": 1944338}, {"segmentation": [[371.27, 291.59, 371.61, 288.55, 378.2, 284.5, 398.98, 284.67, 402.02, 286.36, 403.87, 289.9, 403.87, 290.92]], "area": 193.40704999999957, "iscrowd": 0, "image_id": 385701, "bbox": [371.27, 284.5, 32.6, 7.09], "category_id": 62, "id": 1945752}, {"segmentation": [[27.46, 227.27, 26.01, 211.37, 20.23, 208.97, 0.01, 214.75, 0.49, 299.99, 1.45, 312.52, 0.49, 349.6, 37.57, 334.19, 51.54, 360.2, 57.8, 355.86, 45.28, 331.3, 61.17, 327.45, 96.33, 398.25, 108.37, 392.95, 71.29, 313.0, 65.99, 313.48, 64.54, 304.33, 43.35, 297.1, 29.87, 296.62, 18.31, 296.62, 0.97, 300.48, 0.97, 258.09, 10.6, 252.79, 20.72, 294.7, 30.83, 295.66, 17.34, 246.05, 28.42, 227.75]], "area": 5296.204449999999, "iscrowd": 0, "image_id": 14812, "bbox": [0.01, 208.97, 108.36, 189.28], "category_id": 62, "id": 1946049}, {"segmentation": [[421.33, 131.7, 418.88, 123.78, 429.34, 124.26, 432.55, 132.55, 420.95, 132.46]], "area": 90.40135000000008, "iscrowd": 0, "image_id": 41577, "bbox": [418.88, 123.78, 13.67, 8.77], "category_id": 62, "id": 1946152}, {"segmentation": [[248.1, 254.03, 247.06, 250.13, 247.06, 244.55, 248.36, 241.43, 250.82, 239.88, 255.24, 239.23, 259.65, 241.17, 261.73, 243.77, 263.93, 249.09, 263.67, 250.39, 254.46, 250.65, 254.07, 251.43, 254.98, 252.73, 256.14, 254.29, 255.89, 255.71, 250.3, 254.68]], "area": 186.20005000000006, "iscrowd": 0, "image_id": 302680, "bbox": [247.06, 239.23, 16.87, 16.48], "category_id": 62, "id": 1946324}, {"segmentation": [[412.53, 139.24, 409.8, 133.79, 398.89, 135.15, 402.98, 141.97]], "area": 69.73449999999998, "iscrowd": 0, "image_id": 41577, "bbox": [398.89, 133.79, 13.64, 8.18], "category_id": 62, "id": 1946622}, {"segmentation": [[359.22, 92.76, 337.38, 92.44, 337.06, 99.46, 346.63, 115.73]], "area": 289.0407000000003, "iscrowd": 0, "image_id": 269986, "bbox": [337.06, 92.44, 22.16, 23.29], "category_id": 62, "id": 1946759}, {"segmentation": [[0.03, 392.33, 35.92, 421.39, 85.48, 425.66, 81.21, 531.62, 65.83, 550.42, 58.14, 535.04, 4.3, 535.9]], "area": 9757.645549999997, "iscrowd": 0, "image_id": 371714, "bbox": [0.03, 392.33, 85.45, 158.09], "category_id": 62, "id": 1947591}, {"segmentation": [[418.29, 68.35, 426.22, 66.0, 432.91, 69.47, 436.51, 72.69, 431.92, 75.91, 427.58, 75.91, 419.78, 69.84]], "area": 100.13005000000021, "iscrowd": 0, "image_id": 269986, "bbox": [418.29, 66.0, 18.22, 9.91], "category_id": 62, "id": 1947831}, {"segmentation": [[471.21, 360.34, 465.87, 366.86, 462.91, 371.61, 462.31, 372.79, 454.01, 417.27, 452.23, 425.57, 461.13, 425.57, 465.87, 375.17, 477.14, 371.61, 477.14, 368.05, 498.48, 378.72, 542.36, 387.02, 548.29, 385.25, 550.66, 388.8, 552.44, 397.7, 554.81, 403.03, 548.88, 426.0, 566.67, 424.97, 565.49, 390.58, 560.15, 385.84, 558.37, 382.87, 570.82, 375.17, 576.75, 366.27, 576.75, 361.53, 570.23, 342.55, 554.22, 332.47, 539.4, 325.36, 534.65, 323.58, 524.57, 321.21, 517.46, 320.02, 511.53, 320.02, 509.16, 320.02, 484.25, 320.61, 470.02, 330.69, 465.87, 334.84, 464.68, 341.96, 467.06, 352.04], [472.99, 376.35, 467.65, 411.34, 473.58, 414.89, 480.1, 411.93, 484.25, 406.59, 483.66, 370.42]], "area": 7155.5608500000035, "iscrowd": 0, "image_id": 14812, "bbox": [452.23, 320.02, 124.52, 105.98], "category_id": 62, "id": 1947894}, {"segmentation": [[63.57, 413.98, 56.09, 420.58, 60.93, 426.0, 29.7, 426.0, 0.0, 426.0, 0.0, 395.06, 0.0, 372.63, 3.75, 368.45, 30.8, 362.3, 51.91, 360.54, 67.09, 363.61, 75.22, 369.99, 84.68, 370.21, 92.82, 401.88, 104.03, 426.0, 89.08, 426.0, 77.86, 390.23, 73.9, 399.24]], "area": 5075.19585, "iscrowd": 0, "image_id": 14812, "bbox": [0.0, 360.54, 104.03, 65.46], "category_id": 62, "id": 1948113}, {"segmentation": [[184.43, 330.0, 192.04, 369.29, 195.21, 366.44, 197.11, 374.05, 197.11, 378.17, 192.67, 377.85, 186.97, 377.85, 185.7, 376.9, 182.53, 374.05, 182.21, 356.3, 184.43, 339.19]], "area": 316.09749999999997, "iscrowd": 0, "image_id": 176587, "bbox": [182.21, 330.0, 14.9, 48.17], "category_id": 62, "id": 1948152}, {"segmentation": [[109.6, 88.93, 108.46, 71.89, 109.41, 69.61, 124.93, 70.37, 125.31, 86.09, 124.93, 88.74]], "area": 303.5409500000002, "iscrowd": 0, "image_id": 269986, "bbox": [108.46, 69.61, 16.85, 19.32], "category_id": 62, "id": 1948340}, {"segmentation": [[107.04, 71.08, 110.87, 85.57, 92.69, 85.57, 92.55, 79.46, 93.26, 74.92, 94.54, 71.51, 94.82, 70.66, 95.82, 70.09, 108.32, 69.24]], "area": 247.42334999999997, "iscrowd": 0, "image_id": 269986, "bbox": [92.55, 69.24, 18.32, 16.33], "category_id": 62, "id": 1948657}, {"segmentation": [[409.7, 76.34, 407.85, 70.8, 406.57, 67.39, 407.71, 66.12, 411.4, 66.12, 417.51, 75.35, 428.59, 78.76, 422.48, 83.02, 429.3, 88.84, 424.61, 89.84, 421.2, 88.98, 412.96, 87.56, 410.27, 82.73]], "area": 252.31015000000008, "iscrowd": 0, "image_id": 269986, "bbox": [406.57, 66.12, 22.73, 23.72], "category_id": 62, "id": 1948752}, {"segmentation": [[411.87, 66.83, 417.25, 66.68, 418.47, 66.99, 429.07, 75.89, 433.52, 76.05, 435.52, 79.89, 429.53, 79.89, 429.68, 85.26, 426.92, 84.65, 425.23, 80.19]], "area": 130.06294999999974, "iscrowd": 0, "image_id": 269986, "bbox": [411.87, 66.68, 23.65, 18.58], "category_id": 62, "id": 1948780}, {"segmentation": [[163.36, 94.42, 163.09, 92.39, 162.69, 90.9, 160.38, 89.81, 159.02, 89.4, 155.22, 90.62, 152.78, 91.17, 149.11, 91.98, 146.8, 92.25, 149.52, 98.5, 144.77, 98.23, 143.55, 96.46, 139.34, 91.85, 136.22, 84.11, 138.12, 78.27, 142.19, 76.64, 149.52, 74.74, 151.55, 75.01, 157.26, 79.09, 159.83, 80.04, 161.6, 82.07, 163.09, 86.28, 164.59, 96.46, 163.23, 94.7]], "area": 393.6212500000001, "iscrowd": 0, "image_id": 269986, "bbox": [136.22, 74.74, 28.37, 23.76], "category_id": 62, "id": 1948805}, {"segmentation": [[4.7, 79.75, 16.14, 79.35, 16.82, 82.18, 12.37, 83.66, 9.41, 85.28, 8.74, 88.78, 7.93, 93.49, 7.66, 96.19, 6.58, 101.71, 8.33, 106.15, 14.8, 108.31, 15.61, 115.31, 15.87, 121.24, 0.12, 122.58, 0.0, 78.93]], "area": 480.95714999999996, "iscrowd": 0, "image_id": 269986, "bbox": [0.0, 78.93, 16.82, 43.65], "category_id": 62, "id": 1948824}, {"segmentation": [[404.06, 328.14, 287.54, 327.47, 287.54, 242.91, 295.53, 163.68, 320.83, 174.33, 327.49, 159.02, 335.48, 167.01, 331.48, 176.33, 340.8, 188.32, 342.8, 192.31, 375.43, 196.97, 364.77, 210.29, 352.12, 216.28, 369.43, 227.6, 372.76, 224.94, 368.1, 208.29, 380.75, 200.97, 395.4, 208.96]], "area": 15504.784199999996, "iscrowd": 0, "image_id": 273427, "bbox": [287.54, 159.02, 116.52, 169.12], "category_id": 64, "id": 1951934}, {"segmentation": [[342.58, 209.27, 341.41, 215.35, 329.83, 215.75, 329.43, 207.9, 330.02, 206.52, 325.71, 206.52, 325.12, 207.5, 322.56, 209.27, 321.39, 207.7, 323.94, 204.17, 329.04, 202.79, 331.0, 202.79, 330.22, 201.03, 325.31, 199.85, 322.76, 199.65, 322.37, 197.3, 325.12, 195.33, 325.51, 195.33, 323.94, 193.76, 323.15, 191.61, 322.76, 190.62, 323.74, 189.25, 325.71, 189.05, 324.92, 187.29, 325.71, 186.31, 329.43, 184.74, 333.16, 183.95, 333.95, 186.11, 333.95, 189.84, 336.5, 185.91, 337.48, 185.32, 339.64, 185.52, 341.6, 187.68, 342.58, 189.45, 341.01, 195.14, 340.42, 200.44, 340.23, 201.03, 338.27, 203.77, 342.0, 206.33, 342.98, 207.5, 342.39, 212.21]], "area": 456.76159999999993, "iscrowd": 0, "image_id": 302680, "bbox": [321.39, 183.95, 21.59, 31.8], "category_id": 64, "id": 1952322}, {"segmentation": [[117.71, 285.69, 118.58, 304.29, 110.15, 305.74, 98.53, 305.16, 94.75, 304.0, 94.46, 288.6, 91.26, 284.82, 96.78, 281.33, 89.52, 263.9, 87.19, 256.34, 83.42, 254.02, 80.8, 248.21, 79.35, 249.08, 78.18, 256.05, 72.37, 257.79, 74.12, 249.95, 71.21, 245.88, 77.89, 238.91, 80.22, 238.03, 79.64, 233.68, 77.6, 235.13, 74.41, 233.39, 74.41, 228.15, 75.28, 222.92, 65.69, 218.27, 61.33, 213.33, 58.72, 207.23, 63.07, 202.0, 68.89, 202.0, 71.79, 204.33, 69.47, 209.85, 71.79, 213.62, 73.54, 218.56, 76.73, 217.11, 81.09, 221.76, 83.71, 220.89, 88.36, 210.72, 94.46, 203.45, 102.3, 206.07, 95.62, 215.95, 87.77, 225.54, 86.9, 228.45, 89.81, 231.06, 91.84, 234.55, 88.94, 239.49, 88.36, 249.08, 90.39, 256.05, 93.01, 260.41, 99.98, 279.01, 104.34, 278.14, 108.12, 276.68, 114.8, 281.04, 120.03, 285.98]], "area": 1549.2981000000007, "iscrowd": 0, "image_id": 128248, "bbox": [58.72, 202.0, 61.31, 103.74], "category_id": 64, "id": 1953649}, {"segmentation": [[164.48, 277.4, 165.28, 263.92, 174.2, 240.83, 171.5, 215.66, 167.74, 200.63, 170.87, 193.12, 179.64, 188.11, 187.78, 183.73, 203.43, 188.11, 210.32, 191.24, 215.96, 186.23, 218.46, 200.63, 232.24, 184.98, 242.89, 186.86, 244.14, 191.24, 249.15, 201.26, 244.14, 225.06, 243.51, 226.93, 236.0, 236.33, 236.62, 240.08, 246.64, 245.72, 250.4, 258.87, 244.14, 281.41, 236.0, 297.07, 224.73, 307.09, 170.17, 290.78, 167.02, 286.36]], "area": 8313.3689, "iscrowd": 0, "image_id": 341989, "bbox": [164.48, 183.73, 85.92, 123.36], "category_id": 64, "id": 1953946}, {"segmentation": [[115.45, 318.55, 117.52, 309.55, 105.75, 310.94, 116.14, 291.55, 107.83, 272.17, 116.14, 271.48, 115.45, 263.86, 120.98, 264.55, 123.75, 263.86, 125.83, 254.17, 124.45, 241.71, 129.29, 236.17, 136.21, 240.32, 133.45, 252.09, 129.29, 257.63, 137.6, 256.25, 143.83, 250.01, 143.83, 259.01, 142.45, 268.71, 138.29, 267.32, 137.6, 259.71, 129.29, 261.78, 132.75, 271.48, 141.06, 269.4, 145.91, 278.4, 150.06, 283.25, 146.6, 288.78, 143.14, 286.01, 141.75, 277.01, 137.6, 276.32, 134.83, 287.4, 142.45, 294.32, 136.21, 310.24, 132.06, 319.24, 125.83, 319.24]], "area": 1715.79965, "iscrowd": 0, "image_id": 435933, "bbox": [105.75, 236.17, 44.31, 83.07], "category_id": 64, "id": 1954172}, {"segmentation": [[164.0, 227.69, 162.31, 229.87, 161.34, 231.56, 159.65, 232.53, 134.46, 225.51, 137.37, 222.12, 141.97, 218.25, 142.94, 215.1, 145.6, 196.21, 145.12, 185.56, 145.36, 174.67, 153.83, 160.38, 154.08, 150.94, 155.53, 147.31, 161.58, 142.46, 168.12, 139.56, 169.57, 137.38, 170.54, 153.12, 180.47, 146.58, 184.58, 139.56, 189.18, 133.99, 194.51, 133.99, 208.55, 135.68, 218.48, 146.82, 208.55, 158.44, 192.09, 184.35, 178.53, 198.39, 165.7, 217.76, 164.49, 220.91]], "area": 3845.7160499999986, "iscrowd": 0, "image_id": 341989, "bbox": [134.46, 133.99, 84.02, 98.54], "category_id": 64, "id": 1954316}, {"segmentation": [[414.99, 196.38, 429.55, 197.92, 429.25, 212.64, 416.06, 203.13, 415.14, 196.84]], "area": 146.56085000000013, "iscrowd": 0, "image_id": 302680, "bbox": [414.99, 196.38, 14.56, 16.26], "category_id": 64, "id": 1954421}, {"segmentation": [[302.82, 123.47, 285.15, 115.13, 296.93, 86.18, 293.49, 72.44, 290.06, 57.72, 285.15, 49.87, 294.47, 46.44, 290.55, 37.12, 304.78, 40.06, 310.67, 27.79, 319.01, 17.98, 314.59, 8.66, 314.59, 5.22, 325.39, 0.81, 341.09, 3.26, 337.16, 17.49, 340.11, 26.81, 359.24, 24.85, 347.47, 43.98, 356.79, 46.93, 356.79, 55.76, 353.85, 64.1, 363.66, 67.54, 355.32, 81.28, 358.26, 95.01, 368.57, 99.43, 364.15, 111.7, 363.66, 116.11, 356.3, 108.75, 348.94, 107.77, 341.09, 111.21, 334.22, 116.11, 324.4, 118.08, 322.44, 120.04, 315.08, 121.51, 302.82, 123.47]], "area": 6365.2343500000015, "iscrowd": 0, "image_id": 543882, "bbox": [285.15, 0.81, 83.42, 122.66], "category_id": 64, "id": 1954580}, {"segmentation": [[30.44, 97.61, 38.22, 98.78, 44.45, 99.94, 56.9, 101.5, 62.34, 98.39, 68.57, 97.22, 71.29, 93.33, 71.68, 83.6, 72.07, 77.77, 69.74, 75.43, 54.17, 71.54, 52.23, 54.81, 50.28, 47.81, 46.39, 48.58, 43.28, 50.53, 43.28, 53.64, 43.67, 57.53, 43.28, 61.03, 41.72, 69.59, 39.78, 71.93, 35.89, 75.43, 34.72, 78.93, 29.27, 86.71, 27.72, 91.77, 28.1, 95.66]], "area": 1282.7600499999999, "iscrowd": 0, "image_id": 374023, "bbox": [27.72, 47.81, 44.35, 53.69], "category_id": 64, "id": 1954753}, {"segmentation": [[144.54, 318.76, 132.13, 317.56, 127.73, 316.76, 122.52, 313.16, 115.72, 314.76, 110.12, 318.76, 107.72, 319.96, 102.51, 318.76, 99.31, 312.76, 100.11, 305.95, 100.91, 303.15, 92.91, 300.35, 92.51, 295.15, 90.91, 289.94, 88.9, 284.34, 88.9, 279.14, 91.31, 273.94, 94.11, 270.33, 99.31, 266.73, 99.31, 264.73, 98.91, 259.13, 102.51, 256.33, 108.92, 254.32, 111.72, 258.33, 115.72, 258.33, 118.92, 260.73, 120.52, 251.12, 122.92, 251.52, 124.12, 258.33, 127.33, 258.33, 131.73, 257.93, 138.93, 254.72, 142.14, 251.52, 141.73, 245.12, 147.74, 246.72, 147.74, 252.72, 146.14, 255.93, 152.94, 256.73, 159.75, 259.93, 161.35, 261.93, 167.75, 262.73, 170.95, 261.93, 176.15, 265.13, 175.75, 269.93, 183.36, 272.74, 184.96, 277.94, 189.36, 283.14, 185.36, 289.14, 183.76, 294.35, 183.76, 300.75, 186.96, 303.15, 183.36, 307.55, 180.56, 312.76, 172.55, 311.56, 168.55, 307.55, 158.14, 312.76, 154.54, 313.16, 146.54, 316.76]], "area": 5065.419550000001, "iscrowd": 0, "image_id": 169686, "bbox": [88.9, 245.12, 100.46, 74.84], "category_id": 64, "id": 1954755}, {"segmentation": [[518.59, 191.81, 533.24, 190.62, 532.77, 172.44, 537.25, 165.82, 524.74, 159.44, 515.29, 159.21, 512.45, 166.53, 510.56, 171.96, 515.29, 176.22, 515.76, 180.94, 515.76, 180.94, 521.19, 182.36, 514.81, 184.01, 518.12, 186.61]], "area": 578.4589499999998, "iscrowd": 0, "image_id": 537924, "bbox": [510.56, 159.21, 26.69, 32.6], "category_id": 64, "id": 1954767}, {"segmentation": [[301.9, 316.76, 336.21, 315.27, 336.96, 265.67, 351.5, 216.44, 338.82, 201.52, 332.11, 183.99, 299.29, 228.75, 301.53, 240.31, 304.88, 247.02, 310.48, 273.13, 303.39, 276.86, 304.51, 299.23, 303.39, 301.47]], "area": 4222.918449999998, "iscrowd": 0, "image_id": 445214, "bbox": [299.29, 183.99, 52.21, 132.77], "category_id": 64, "id": 1954958}, {"segmentation": [[528.21, 258.35, 527.64, 244.52, 518.99, 241.06, 524.18, 219.74, 523.03, 203.03, 508.62, 196.12, 528.79, 196.12, 527.06, 180.56, 548.38, 162.7, 569.13, 176.53, 557.6, 207.07, 554.14, 231.84, 558.75, 247.98, 550.69, 250.86, 550.69, 254.89]], "area": 3001.9949000000033, "iscrowd": 0, "image_id": 341989, "bbox": [508.62, 162.7, 60.51, 95.65], "category_id": 64, "id": 1955042}, {"segmentation": [[588.35, 140.31, 603.04, 177.74, 583.1, 167.94, 573.66, 150.8, 573.66, 157.1, 563.86, 137.86, 560.01, 144.5, 546.02, 128.41, 552.67, 126.66, 548.82, 114.77, 552.67, 112.32, 567.36, 124.91, 563.51, 113.37, 566.66, 109.52, 567.71, 99.73, 576.46, 103.92]], "area": 1604.5649000000014, "iscrowd": 0, "image_id": 341989, "bbox": [546.02, 99.73, 57.02, 78.01], "category_id": 64, "id": 1955107}, {"segmentation": [[107.64, 84.95, 124.5, 73.27, 124.5, 52.52, 112.83, 44.74, 108.94, 21.4, 101.16, 18.8, 90.78, 27.88, 75.22, 16.21, 59.66, 25.29, 41.5, 29.18, 46.69, 56.41, 66.14, 77.16, 67.44, 91.43]], "area": 4254.410999999999, "iscrowd": 0, "image_id": 558286, "bbox": [41.5, 16.21, 83.0, 75.22], "category_id": 64, "id": 1955252}, {"segmentation": [[230.2, 206.85, 228.92, 196.1, 231.01, 190.17, 245.12, 190.17, 248.81, 190.17, 250.58, 210.54, 232.77, 215.84, 229.24, 212.79, 230.04, 208.62]], "area": 466.2257500000006, "iscrowd": 0, "image_id": 302680, "bbox": [228.92, 190.17, 21.66, 25.67], "category_id": 64, "id": 1955465}, {"segmentation": [[147.86, 188.11, 144.62, 210.73, 162.94, 212.88, 164.01, 191.34]], "area": 386.3457499999994, "iscrowd": 0, "image_id": 302680, "bbox": [144.62, 188.11, 19.39, 24.77], "category_id": 64, "id": 1955571}, {"segmentation": [[616.44, 174.14, 620.89, 187.22, 634.25, 184.72, 634.53, 169.41, 639.81, 166.91, 632.02, 160.23, 619.78, 159.67, 612.82, 165.52, 612.54, 173.59]], "area": 492.9867999999992, "iscrowd": 0, "image_id": 537924, "bbox": [612.54, 159.67, 27.27, 27.55], "category_id": 64, "id": 1955682}, {"segmentation": [[545.84, 262.65, 543.53, 274.97, 531.21, 277.02, 519.14, 274.2, 519.14, 258.28, 510.67, 243.14, 521.19, 246.99, 524.27, 242.11, 528.38, 234.92, 537.37, 239.03, 545.07, 258.28]], "area": 914.1346500000009, "iscrowd": 0, "image_id": 537924, "bbox": [510.67, 234.92, 35.17, 42.1], "category_id": 64, "id": 1956013}, {"segmentation": [[544.04, 191.79, 541.24, 185.08, 539.56, 182.28, 536.76, 178.92, 539.84, 174.73, 547.11, 174.17, 548.79, 172.49, 549.07, 165.22, 547.39, 161.02, 549.91, 159.35, 556.34, 164.38, 556.34, 166.06, 559.42, 172.77, 560.82, 172.77, 558.86, 185.36, 558.3, 188.43]], "area": 423.0385500000005, "iscrowd": 0, "image_id": 537924, "bbox": [536.76, 159.35, 24.06, 32.44], "category_id": 64, "id": 1956246}, {"segmentation": [[291.23, 306.82, 315.58, 208.44, 318.51, 198.7, 321.43, 191.88, 325.32, 180.19, 325.32, 169.48, 334.09, 169.48, 347.73, 180.19, 372.08, 177.27, 375.0, 180.19, 377.92, 195.78, 381.82, 201.62, 379.87, 210.39, 375.97, 245.45, 379.87, 269.81, 375.97, 282.47, 372.08, 284.42, 361.36, 291.23, 357.47, 299.03, 351.62, 301.95, 344.81, 306.82, 331.17, 310.71, 311.69, 310.71]], "area": 8878.597299999998, "iscrowd": 0, "image_id": 340412, "bbox": [291.23, 169.48, 90.59, 141.23], "category_id": 65, "id": 1957113}, {"segmentation": [[212.46, 432.0, 215.36, 368.43, 235.62, 364.3, 245.13, 354.79, 249.27, 361.4, 251.75, 371.74, 263.33, 388.7, 272.01, 393.66, 294.76, 394.9, 298.07, 371.33, 315.02, 358.09, 361.34, 355.2, 415.52, 356.44, 492.44, 356.03, 501.54, 360.58, 509.81, 375.46, 509.81, 404.0, 512.71, 423.02, 515.6, 432.0, 283.59, 432.0, 249.27, 387.87, 233.55, 388.7, 233.55, 432.0]], "area": 18961.242000000002, "iscrowd": 0, "image_id": 263098, "bbox": [212.46, 354.79, 303.14, 77.21], "category_id": 65, "id": 1957246}, {"segmentation": [[157.92, 219.43, 159.58, 237.71, 68.16, 295.9, 71.48, 312.52, 81.45, 337.45, 187.84, 337.45, 207.79, 369.04, 269.3, 384.0, 237.71, 462.13, 267.64, 553.56, 420.57, 611.74, 423.9, 630.03, 3.32, 631.69, 1.66, 229.4, 157.92, 222.75]], "area": 91361.45575000001, "iscrowd": 0, "image_id": 143847, "bbox": [1.66, 219.43, 422.24, 412.26], "category_id": 65, "id": 1957366}, {"segmentation": [[435.12, 465.04, 462.55, 405.19, 460.05, 337.87, 451.32, 281.77, 433.87, 256.83, 431.38, 192.0, 458.81, 199.48, 592.21, 472.52, 435.12, 470.03], [201.97, 466.29, 184.52, 405.19, 182.03, 357.82, 200.73, 324.16, 230.65, 315.43, 201.97, 265.56, 175.79, 367.79, 167.06, 472.52, 206.96, 471.27]], "area": 24388.13505, "iscrowd": 0, "image_id": 196981, "bbox": [167.06, 192.0, 425.15, 280.52], "category_id": 65, "id": 1957711}, {"segmentation": [[8.31, 387.32, 1.66, 1.66, 640.0, 6.65, 640.0, 625.04, 551.9, 625.04, 477.09, 596.78, 575.17, 518.65, 611.74, 413.92, 611.74, 279.27, 581.82, 187.84, 531.95, 128.0, 460.47, 78.13, 340.78, 48.21, 244.36, 48.21, 111.38, 142.96, 56.52, 201.14, 14.96, 280.94]], "area": 96485.41814999998, "iscrowd": 0, "image_id": 296281, "bbox": [1.66, 1.66, 638.34, 623.38], "category_id": 67, "id": 1958341}, {"segmentation": [[246.26, 477.94, 250.56, 470.95, 287.12, 446.76, 321.53, 432.24, 340.88, 430.09, 370.99, 431.71, 414.54, 441.38, 497.33, 469.34, 508.62, 478.0, 246.8, 478.0]], "area": 8093.051300000004, "iscrowd": 0, "image_id": 275327, "bbox": [246.26, 430.09, 262.36, 47.91], "category_id": 67, "id": 1958832}, {"segmentation": [[478.75, 393.97, 415.58, 365.71, 443.84, 334.13, 455.48, 274.29, 465.45, 209.45, 480.0, 207.79], [1.66, 221.09, 49.87, 219.43, 49.87, 279.27, 71.48, 295.9, 136.31, 292.57, 157.92, 224.42, 192.83, 222.75, 179.53, 274.29, 194.49, 304.21, 272.62, 312.52, 289.25, 272.62, 292.57, 224.42, 360.73, 206.13, 349.09, 284.26, 390.65, 307.53, 447.17, 314.18, 418.91, 360.73, 279.27, 320.83, 136.31, 337.45, 58.18, 380.68, 4.99, 402.29]], "area": 37794.52675000001, "iscrowd": 0, "image_id": 207385, "bbox": [1.66, 206.13, 478.34, 196.16], "category_id": 67, "id": 1959189}, {"segmentation": [[460.32, 163.39, 451.75, 162.46, 446.61, 153.73, 441.31, 146.72, 441.31, 143.29, 443.18, 144.54, 444.74, 140.95, 449.73, 140.64, 454.4, 140.95, 457.99, 144.69, 460.01, 151.08]], "area": 292.9907499999999, "iscrowd": 0, "image_id": 130624, "bbox": [441.31, 140.64, 19.01, 22.75], "category_id": 67, "id": 1959541}, {"segmentation": [[3.74, 86.34, 33.66, 77.61, 53.61, 53.92, 100.99, 42.7, 147.12, 61.4, 188.26, 65.14, 275.53, 56.42, 361.56, 46.44, 412.68, 55.17, 546.08, 146.18, 572.26, 161.14, 633.35, 188.57, 640.0, 234.7, 640.0, 474.08, 0.0, 471.58]], "area": 248642.19014999998, "iscrowd": 0, "image_id": 575421, "bbox": [0.0, 42.7, 640.0, 431.38], "category_id": 67, "id": 1959911}, {"segmentation": [[238.99, 249.09, 194.71, 242.45, 229.18, 238.97, 253.85, 243.08, 255.43, 246.87]], "area": 329.0658499999999, "iscrowd": 0, "image_id": 531032, "bbox": [194.71, 238.97, 60.72, 10.12], "category_id": 67, "id": 1960355}, {"segmentation": [[3.61, 113.6, 6.95, 221.01, 47.05, 218.15, 38.46, 145.11, 30.82, 121.24], [155.42, 102.15, 222.25, 100.24, 165.92, 118.85, 153.03, 130.79], [155.42, 147.5, 195.04, 177.09, 233.23, 183.3, 282.4, 193.33, 339.21, 198.1, 355.44, 193.8, 354.01, 203.83, 283.36, 220.54, 264.74, 212.42, 244.69, 210.03, 240.87, 207.65, 216.52, 216.24, 211.75, 224.35, 152.56, 225.31]], "area": 10784.713799999998, "iscrowd": 0, "image_id": 207385, "bbox": [3.61, 100.24, 351.83, 125.07], "category_id": 67, "id": 1961139}, {"segmentation": [[43.72, 291.52, 56.72, 286.96, 49.79, 283.28, 43.5, 290.65], [1.33, 287.29, 2.28, 286.45, 0.38, 283.97, 0.01, 287.92]], "area": 47.73370000000007, "iscrowd": 0, "image_id": 537924, "bbox": [0.01, 283.28, 56.71, 8.24], "category_id": 67, "id": 1961187}, {"segmentation": [[341.46, 317.97, 313.77, 253.37, 259.24, 254.21, 249.17, 317.13, 264.27, 297.83, 303.7, 312.93, 302.86, 317.13, 302.86, 317.13]], "area": 4050.8182999999976, "iscrowd": 0, "image_id": 83968, "bbox": [249.17, 253.37, 92.29, 64.6], "category_id": 67, "id": 1962149}, {"segmentation": [[503.61, 261.38, 416.24, 264.64, 415.69, 275.49, 483.53, 301.54, 531.28, 296.65, 548.11, 263.01, 541.05, 261.92, 539.97, 273.86, 502.52, 272.78]], "area": 3349.4224000000017, "iscrowd": 0, "image_id": 115055, "bbox": [415.69, 261.38, 132.42, 40.16], "category_id": 67, "id": 1962313}, {"segmentation": [[28.26, 299.22, 96.42, 270.96, 104.73, 247.69, 31.58, 231.06]], "area": 3196.1791, "iscrowd": 0, "image_id": 451824, "bbox": [28.26, 231.06, 76.47, 68.16], "category_id": 67, "id": 1963068}, {"segmentation": [[224.78, 208.22, 224.78, 214.19, 222.61, 215.82, 222.61, 220.71, 221.53, 226.68, 223.15, 247.3, 223.15, 247.84, 223.7, 263.58, 223.7, 274.97, 222.61, 290.17, 219.36, 296.68, 225.32, 315.68, 225.32, 324.9, 227.5, 342.27, 234.01, 349.32, 349.06, 333.58, 345.26, 321.65, 343.09, 298.85, 336.03, 297.22, 329.52, 299.4, 324.64, 298.85, 314.32, 289.08, 295.33, 280.94, 281.76, 272.8, 279.05, 264.12, 282.31, 255.98, 298.59, 239.7, 323.55, 222.88, 324.09, 208.77, 300.21, 210.4, 299.13, 215.82, 293.7, 216.91, 283.39, 217.45, 276.88, 214.74, 272.54, 207.14, 251.92, 207.14], [360.99, 297.77, 361.54, 305.91, 363.17, 315.68, 363.71, 316.76, 363.71, 323.27, 369.68, 330.87, 369.14, 321.1, 369.14, 311.88, 369.14, 304.28, 369.68, 299.94, 365.34, 295.6], [388.67, 300.48, 387.04, 325.44, 394.64, 325.44, 394.64, 311.88], [192.76, 317.85, 192.76, 339.01, 191.68, 355.83, 204.16, 352.58, 209.04, 342.81, 204.7, 329.24, 201.45, 328.16, 201.45, 317.85, 197.65, 312.42], [165.63, 321.65, 169.97, 354.21, 167.26, 355.29, 152.61, 326.53, 154.23, 320.56]], "area": 13296.938900000001, "iscrowd": 0, "image_id": 280765, "bbox": [152.61, 207.14, 242.03, 148.69], "category_id": 67, "id": 1964039}, {"segmentation": [[638.34, 471.27, 640.0, 42.39, 604.68, 28.68, 576.0, 18.7, 548.57, 16.21, 511.17, 0.0, 1.25, 3.74, 1.25, 470.03]], "area": 296602.75285, "iscrowd": 0, "image_id": 33034, "bbox": [1.25, 0.0, 638.75, 471.27], "category_id": 67, "id": 1964384}, {"segmentation": [[16.63, 380.09, 127.83, 340.9, 67.61, 337.4, 0.7, 354.6, 1.02, 362.57, 13.76, 369.58, 13.76, 374.36]], "area": 2373.7494499999984, "iscrowd": 0, "image_id": 332065, "bbox": [0.7, 337.4, 127.13, 42.69], "category_id": 67, "id": 1965176}, {"segmentation": [[169.78, 205.57, 171.72, 205.71, 175.75, 205.57, 178.81, 204.88, 185.07, 204.74, 188.68, 204.18, 192.57, 202.24, 192.43, 201.68, 190.9, 200.99, 186.73, 200.71, 161.85, 201.26, 158.66, 201.54, 158.24, 201.96, 158.1, 203.21, 160.46, 204.74, 166.02, 205.16, 167.69, 205.3]], "area": 129.4225000000001, "iscrowd": 0, "image_id": 579659, "bbox": [158.1, 200.71, 34.47, 5.0], "category_id": 67, "id": 1965750}, {"segmentation": [[419.42, 400.52, 366.76, 385.71, 367.31, 374.19, 361.83, 363.22, 389.8, 353.89, 409.55, 353.89, 463.86, 365.96, 495.67, 369.8, 502.8, 369.8, 484.7, 391.19, 477.57, 395.03, 462.76, 393.93, 445.2, 395.58, 428.2, 398.87, 422.17, 400.52]], "area": 4336.78865, "iscrowd": 0, "image_id": 194701, "bbox": [361.83, 353.89, 140.97, 46.63], "category_id": 67, "id": 1966592}, {"segmentation": [[343.28, 199.5, 355.44, 201.24, 364.88, 200.49, 372.82, 198.26, 372.82, 196.27, 355.44, 197.76, 344.77, 197.76, 342.04, 198.26]], "area": 87.52630000000025, "iscrowd": 0, "image_id": 579659, "bbox": [342.04, 196.27, 30.78, 4.97], "category_id": 67, "id": 1967124}, {"segmentation": [[618.81, 270.79, 605.32, 271.2, 618.4, 279.78, 618.4, 274.88], [626.98, 269.97, 627.8, 291.63, 639.65, 298.58, 640.0, 274.06, 640.0, 270.79]], "area": 366.6636499999991, "iscrowd": 0, "image_id": 579659, "bbox": [605.32, 269.97, 34.68, 28.61], "category_id": 67, "id": 1967249}, {"segmentation": [[272.93, 211.78, 265.45, 209.01, 260.47, 206.79, 261.3, 202.92, 295.92, 202.08, 292.04, 209.29, 274.87, 210.95], [298.41, 204.02, 302.84, 204.02, 300.35, 208.45, 297.02, 207.9, 297.86, 204.3]], "area": 261.9105499999997, "iscrowd": 0, "image_id": 579659, "bbox": [260.47, 202.08, 42.37, 9.7], "category_id": 67, "id": 1967372}, {"segmentation": [[123.23, 221.42, 122.32, 219.41, 127.8, 217.95, 130.91, 216.12, 143.33, 215.94, 171.29, 215.94, 170.92, 219.41, 168.91, 217.58, 163.06, 219.23, 156.49, 219.59, 153.38, 224.34, 123.41, 221.97], [165.44, 233.84, 165.44, 220.69, 166.54, 218.86, 167.82, 232.02], [163.8, 255.59, 164.16, 250.84, 167.08, 249.93, 166.9, 254.86]], "area": 301.94135000000017, "iscrowd": 0, "image_id": 579659, "bbox": [122.32, 215.94, 48.97, 39.65], "category_id": 67, "id": 1967390}, {"segmentation": [[469.18, 367.2, 470.17, 418.99, 465.71, 432.37, 454.31, 438.81, 412.93, 442.53, 382.95, 437.82, 355.44, 427.66, 348.01, 416.01, 354.94, 368.93, 356.93, 351.34, 345.53, 336.72, 343.79, 327.05, 342.8, 320.11, 343.55, 302.27, 346.77, 295.58, 365.85, 285.92, 365.1, 275.76, 367.09, 243.29, 364.86, 226.2, 362.87, 221.98, 363.62, 217.28, 363.87, 214.55, 363.37, 207.12, 367.09, 204.64, 372.79, 202.16, 420.61, 203.89, 472.9, 208.85, 473.15, 216.28, 472.15, 222.48, 472.15, 233.38, 469.43, 271.3, 466.45, 288.64, 468.44, 292.11, 486.03, 304.25, 489.5, 323.83, 486.28, 349.6]], "area": 27697.757400000006, "iscrowd": 0, "image_id": 286359, "bbox": [342.8, 202.16, 146.7, 240.37], "category_id": 70, "id": 1967409}, {"segmentation": [[79.79, 354.08, 129.66, 359.06, 123.01, 390.65, 141.3, 428.88, 167.9, 413.92, 201.14, 417.25, 219.43, 428.88, 201.14, 460.47, 199.48, 512.0, 136.31, 512.0, 123.01, 488.73, 114.7, 463.79, 101.4, 462.13, 84.78, 430.55, 74.81, 374.03, 83.12, 359.06]], "area": 12078.52395, "iscrowd": 0, "image_id": 530016, "bbox": [74.81, 354.08, 144.62, 157.92], "category_id": 70, "id": 1967590}, {"segmentation": [[506.84, 418.87, 493.98, 408.16, 486.12, 384.95, 486.12, 380.66, 488.27, 374.95, 496.48, 375.66, 499.34, 349.24, 488.62, 343.88, 490.05, 335.31, 488.62, 320.31, 487.2, 309.95, 486.84, 305.31, 490.41, 299.24, 493.98, 289.96, 515.05, 290.67, 523.62, 290.31, 532.19, 292.46, 537.55, 299.24, 548.98, 303.53, 558.62, 309.95, 565.4, 313.53, 569.69, 320.67, 571.83, 328.88, 570.4, 342.81, 567.9, 351.38, 560.76, 356.74, 555.4, 359.24, 549.69, 362.09, 542.9, 367.09, 543.98, 412.8, 531.12, 419.94, 528.98, 417.44, 509.34, 418.52, 509.69, 418.87]], "area": 7785.612600000001, "iscrowd": 0, "image_id": 286359, "bbox": [486.12, 289.96, 85.71, 129.98], "category_id": 70, "id": 1967693}, {"segmentation": [[229.1, 427.63, 227.29, 418.33, 227.29, 408.01, 220.33, 384.52, 216.71, 372.9, 212.32, 359.48, 213.1, 357.67, 223.68, 361.8, 233.49, 361.03, 250.27, 355.09, 266.27, 356.13, 279.95, 358.71, 284.6, 355.09, 291.83, 354.06, 294.15, 353.03, 295.44, 365.42, 284.08, 400.52, 277.89, 411.88, 283.31, 453.96, 284.86, 464.54, 278.92, 470.48, 251.56, 475.12, 238.91, 469.44, 231.17, 457.31, 229.62, 447.76]], "area": 6786.0031, "iscrowd": 0, "image_id": 96461, "bbox": [212.32, 353.03, 83.12, 122.09], "category_id": 70, "id": 1967760}, {"segmentation": [[155.0, 270.83, 135.0, 310.83, 170.0, 340.83, 190.0, 389.17, 286.67, 389.17, 321.67, 352.5, 321.67, 305.83, 340.0, 244.17, 295.0, 175.83, 238.33, 165.83, 211.67, 177.5, 180.0, 192.5, 156.67, 235.83]], "area": 33542.483349999995, "iscrowd": 0, "image_id": 515734, "bbox": [135.0, 165.83, 205.0, 223.34], "category_id": 70, "id": 1967844}, {"segmentation": [[113.42, 2.78, 154.57, 191.82, 155.68, 205.16, 2.22, 262.98, 0.0, 1.67, 66.72, 1.67]], "area": 31774.5949, "iscrowd": 0, "image_id": 256611, "bbox": [0.0, 1.67, 155.68, 261.31], "category_id": 72, "id": 1969992}, {"segmentation": [[37.33, 480.67, 24.0, 46.0, 26.67, 19.33, 533.33, 78.0, 542.67, 180.67, 529.33, 147.33, 504.0, 114.0, 477.33, 160.67, 430.67, 167.33, 405.33, 228.67, 406.67, 264.67, 350.67, 224.67, 332.0, 186.0, 325.33, 190.0, 304.0, 219.33, 346.67, 274.0, 398.67, 351.33, 445.33, 400.67, 444.0, 459.33, 52.0, 506.0]], "area": 174898.1511, "iscrowd": 0, "image_id": 396039, "bbox": [24.0, 19.33, 518.67, 486.67], "category_id": 73, "id": 1970863}, {"segmentation": [[54.96, 273.91, 52.56, 270.63, 62.18, 260.79, 83.6, 253.36, 96.93, 253.36, 105.9, 256.42, 111.14, 262.76, 110.49, 271.29, 104.37, 273.25, 93.0, 272.82, 86.0, 272.82, 76.82, 275.66]], "area": 945.1974999999999, "iscrowd": 0, "image_id": 333643, "bbox": [52.56, 253.36, 58.58, 22.3], "category_id": 74, "id": 1971596}, {"segmentation": [[296.78, 260.34, 302.87, 258.39, 308.95, 259.47, 311.56, 263.39, 307.21, 271.86, 298.3, 274.04, 293.52, 272.73, 293.08, 267.95]], "area": 208.3871000000005, "iscrowd": 0, "image_id": 118550, "bbox": [293.08, 258.39, 18.48, 15.65], "category_id": 74, "id": 1971693}, {"segmentation": [[186.7, 168.6, 195.6, 168.6, 199.54, 162.26, 197.49, 159.35, 183.61, 158.32, 183.61, 164.66, 185.5, 167.91]], "area": 134.23879999999988, "iscrowd": 0, "image_id": 127076, "bbox": [183.61, 158.32, 15.93, 10.28], "category_id": 75, "id": 1973511}, {"segmentation": [[293.98, 200.35, 300.26, 200.35, 299.99, 201.99, 295.16, 202.81, 294.62, 202.62, 293.62, 200.71]], "area": 12.65020000000007, "iscrowd": 0, "image_id": 280765, "bbox": [293.62, 200.35, 6.64, 2.46], "category_id": 77, "id": 1976181}, {"segmentation": [[229.43, 335.92, 226.57, 335.92, 219.43, 334.49, 215.14, 331.63, 209.43, 333.54, 200.86, 336.4, 208.48, 331.63, 209.43, 329.73, 208.95, 327.35, 206.57, 326.87, 201.34, 327.35, 197.53, 327.82, 196.57, 327.82, 193.72, 325.44, 185.15, 317.35, 183.24, 311.64, 191.81, 304.02, 196.1, 303.06, 216.57, 321.63, 218.0, 327.35, 223.24, 328.3, 226.1, 330.21, 230.86, 333.54]], "area": 630.5377500000004, "iscrowd": 0, "image_id": 204294, "bbox": [183.24, 303.06, 47.62, 33.34], "category_id": 77, "id": 1976691}, {"segmentation": [[360.45, 264.89, 472.47, 248.25, 533.47, 219.42, 570.07, 146.22, 576.73, 77.45, 545.67, 40.85, 491.33, 25.32, 298.35, 12.02, 212.95, 22.0, 146.4, 40.85, 118.67, 69.69, 107.58, 126.25, 113.13, 142.89, 129.76, 132.91, 151.95, 145.11, 151.95, 183.92, 147.51, 212.76, 240.67, 254.91, 290.58, 261.56, 327.18, 264.89]], "area": 95403.4984, "iscrowd": 0, "image_id": 538990, "bbox": [107.58, 12.02, 469.15, 252.87], "category_id": 77, "id": 1976760}, {"segmentation": [[202.16, 192.95, 284.97, 210.35, 290.54, 192.95, 322.56, 57.94, 320.47, 51.67, 258.53, 33.58, 239.04, 31.49]], "area": 14311.060200000002, "iscrowd": 0, "image_id": 215908, "bbox": [202.16, 31.49, 120.4, 178.86], "category_id": 77, "id": 1977472}, {"segmentation": [[376.05, 160.47, 389.62, 158.85, 403.73, 162.1, 408.61, 166.44, 436.83, 168.61, 468.31, 163.19, 471.02, 165.9, 459.62, 170.78, 455.28, 187.06, 450.4, 201.17, 453.11, 209.86, 456.91, 216.91, 431.95, 223.97, 369.0, 207.14, 369.54, 161.56]], "area": 4570.143849999999, "iscrowd": 0, "image_id": 472861, "bbox": [369.0, 158.85, 102.02, 65.12], "category_id": 78, "id": 1978638}, {"segmentation": [[640.0, 289.83, 548.06, 280.77, 537.99, 449.01, 614.55, 464.12, 640.0, 472.18, 636.75, 302.34]], "area": 16667.79085000001, "iscrowd": 0, "image_id": 222572, "bbox": [537.99, 280.77, 102.01, 191.41], "category_id": 79, "id": 1979543}, {"segmentation": [[370.13, 226.0, 415.5, 228.45, 414.69, 255.02, 369.72, 249.71], [382.8, 220.69, 425.31, 223.55, 425.72, 246.44, 417.96, 252.16, 418.36, 227.23, 372.17, 224.36]], "area": 1501.9917500000006, "iscrowd": 0, "image_id": 346754, "bbox": [369.72, 220.69, 56.0, 34.33], "category_id": 79, "id": 1980095}, {"segmentation": [[117.59, 417.93, 117.59, 337.25, 123.8, 324.84, 185.38, 319.11, 187.77, 325.32, 183.95, 328.18, 180.61, 342.03, 179.65, 400.75, 183.47, 418.89, 181.56, 454.21, 180.61, 491.45, 118.55, 434.64]], "area": 8934.159199999998, "iscrowd": 0, "image_id": 354761, "bbox": [117.59, 319.11, 70.18, 172.34], "category_id": 79, "id": 1980436}, {"segmentation": [[88.31, 444.16, 124.68, 489.61, 124.68, 346.75, 210.39, 309.09, 159.74, 276.62, 88.31, 303.9, 83.12, 428.57, 90.91, 457.14]], "area": 9897.6439, "iscrowd": 0, "image_id": 541677, "bbox": [83.12, 276.62, 127.27, 212.99], "category_id": 79, "id": 1980768}, {"segmentation": [[124.94, 369.81, 168.66, 356.06, 152.42, 342.32, 158.67, 334.83, 157.42, 323.58, 107.44, 312.34, 88.7, 308.59, 71.21, 313.59, 62.47, 337.32, 69.96, 343.57, 91.2, 343.57, 108.69, 343.57, 129.93, 351.07, 123.69, 364.81]], "area": 3365.132250000002, "iscrowd": 0, "image_id": 222572, "bbox": [62.47, 308.59, 106.19, 61.22], "category_id": 79, "id": 1981011}, {"segmentation": [[200.07, 500.89, 190.49, 512.73, 284.08, 509.35, 276.75, 500.32, 205.71, 502.02]], "area": 841.2302500000028, "iscrowd": 0, "image_id": 401182, "bbox": [190.49, 500.32, 93.59, 12.41], "category_id": 79, "id": 1981103}, {"segmentation": [[275.8, 176.76, 247.22, 194.95, 242.89, 197.55, 250.68, 207.08, 305.25, 220.07, 327.77, 220.07, 340.76, 206.21, 349.43, 198.42, 351.16, 185.43, 344.23, 185.43, 319.11, 183.69, 297.46, 179.36, 287.93, 175.03]], "area": 3206.62145, "iscrowd": 0, "image_id": 408829, "bbox": [242.89, 175.03, 108.27, 45.04], "category_id": 81, "id": 1981714}, {"segmentation": [[107.53, 169.09, 63.9, 163.64, 49.09, 172.99, 52.21, 211.95, 74.81, 232.99, 89.61, 215.84, 102.08, 216.62, 102.08, 216.62], [112.99, 171.43, 102.86, 220.52, 105.97, 222.08, 127.01, 172.99], [137.14, 178.44, 114.55, 225.97, 148.83, 180.78, 143.38, 180.0], [151.17, 183.9, 113.77, 238.44, 112.21, 246.23, 151.95, 233.77, 175.32, 201.82, 165.19, 190.13]], "area": 5437.553850000001, "iscrowd": 0, "image_id": 185474, "bbox": [49.09, 163.64, 126.23, 82.59], "category_id": 81, "id": 1981976}, {"segmentation": [[12.77, 260.46, 0.9, 262.15, 0.34, 274.02, 20.12, 270.63]], "area": 183.01480000000015, "iscrowd": 0, "image_id": 541677, "bbox": [0.34, 260.46, 19.78, 13.56], "category_id": 81, "id": 1982596}, {"segmentation": [[120.78, 306.49, 298.7, 328.57, 293.51, 407.79, 271.43, 429.87, 209.09, 433.77, 157.14, 419.48, 118.18, 410.39, 123.38, 380.52, 114.29, 353.25, 81.82, 332.47, 59.74, 331.17]], "area": 20188.8634, "iscrowd": 0, "image_id": 128248, "bbox": [59.74, 306.49, 238.96, 127.28], "category_id": 81, "id": 1982916}, {"segmentation": [[161.42, 451.15, 158.31, 450.76, 78.93, 430.92, 69.98, 309.52, 69.98, 296.68, 159.48, 306.8, 161.81, 364.77, 162.2, 374.89, 166.48, 448.04]], "area": 12291.355999999996, "iscrowd": 0, "image_id": 375528, "bbox": [69.98, 296.68, 96.5, 154.47], "category_id": 82, "id": 1983294}, {"segmentation": [[26.46, 158.07, 9.49, 150.12, 18.5, 134.74, 34.41, 141.1]], "area": 326.5913999999998, "iscrowd": 0, "image_id": 341989, "bbox": [9.49, 134.74, 24.92, 23.33], "category_id": 84, "id": 1984601}, {"segmentation": [[185.97, 303.67, 188.0, 303.21, 193.4, 347.36, 191.83, 348.26, 189.12, 348.26, 183.04, 303.44]], "area": 209.07595000000015, "iscrowd": 0, "image_id": 528047, "bbox": [183.04, 303.21, 10.36, 45.05], "category_id": 84, "id": 1984621}, {"segmentation": [[609.72, 241.85, 600.54, 210.96, 602.14, 211.11, 611.32, 242.28]], "area": 46.98580000000059, "iscrowd": 0, "image_id": 341989, "bbox": [600.54, 210.96, 10.78, 31.32], "category_id": 84, "id": 1984927}, {"segmentation": [[392.79, 143.94, 391.08, 143.94, 390.29, 170.39, 392.53, 170.39, 393.32, 144.73]], "area": 59.350699999999485, "iscrowd": 0, "image_id": 130949, "bbox": [390.29, 143.94, 3.03, 26.45], "category_id": 84, "id": 1985702}, {"segmentation": [[6.54, 334.04, 28.35, 331.06, 68.51, 332.06, 65.53, 343.46, 27.36, 347.42, 7.03, 342.47, 4.55, 340.48, 6.04, 335.03]], "area": 812.6719000000002, "iscrowd": 0, "image_id": 50885, "bbox": [4.55, 331.06, 63.96, 16.36], "category_id": 84, "id": 1986240}, {"segmentation": [[505.74, 339.08, 505.51, 336.89, 500.24, 336.89, 500.42, 343.76, 502.08, 343.76, 502.84, 339.2]], "area": 21.784049999999834, "iscrowd": 0, "image_id": 354277, "bbox": [500.24, 336.89, 5.5, 6.87], "category_id": 84, "id": 1987374}, {"segmentation": [[495.39, 354.33, 500.95, 354.15, 502.48, 356.22, 502.3, 360.07, 494.41, 359.62, 495.39, 354.78]], "area": 40.579700000000145, "iscrowd": 0, "image_id": 354277, "bbox": [494.41, 354.15, 8.07, 5.92], "category_id": 84, "id": 1987535}, {"segmentation": [[223.7, 435.29, 215.02, 437.46, 211.4, 445.42, 210.68, 446.15, 196.21, 446.15, 188.25, 445.42, 182.46, 442.53, 127.47, 425.16, 123.12, 423.72, 132.53, 416.48, 145.56, 416.48, 153.51, 415.76, 162.2, 412.86, 179.56, 415.03, 192.59, 422.99, 209.23, 427.33, 219.36, 430.23, 221.53, 431.68]], "area": 1756.8104999999994, "iscrowd": 0, "image_id": 204294, "bbox": [123.12, 412.86, 100.58, 33.29], "category_id": 84, "id": 1988370}, {"segmentation": [[61.19, 313.13, 87.3, 307.06, 87.47, 309.25, 78.37, 344.97, 70.62, 344.3, 77.53, 316.33, 75.68, 314.14, 62.03, 316.5]], "area": 367.92615000000023, "iscrowd": 0, "image_id": 50885, "bbox": [61.19, 307.06, 26.28, 37.91], "category_id": 84, "id": 1988915}, {"segmentation": [[47.13, 327.36, 52.79, 317.12, 75.68, 314.5, 76.55, 316.03, 71.75, 343.92, 66.09, 345.23, 68.48, 331.5, 45.82, 330.63]], "area": 469.38174999999984, "iscrowd": 0, "image_id": 50885, "bbox": [45.82, 314.5, 30.73, 30.73], "category_id": 84, "id": 1989330}, {"segmentation": [[100.69, 303.33, 141.76, 301.91, 143.18, 308.33, 139.97, 312.62, 105.69, 315.83]], "area": 454.28394999999955, "iscrowd": 0, "image_id": 146513, "bbox": [100.69, 301.91, 42.49, 13.92], "category_id": 85, "id": 1991696}, {"segmentation": [[319.49, 120.5, 313.19, 123.65, 302.8, 128.38, 296.82, 137.82, 293.35, 146.96, 293.35, 154.83, 294.61, 164.28, 299.97, 169.63, 305.64, 175.93, 314.14, 177.51, 321.07, 179.71, 326.74, 179.71, 332.09, 178.45, 340.6, 175.62, 347.84, 166.8, 350.04, 157.35, 352.56, 147.9, 352.25, 140.97, 347.52, 132.16, 343.12, 129.01, 339.34, 124.91, 333.04, 123.34]], "area": 2732.1967, "iscrowd": 0, "image_id": 451824, "bbox": [293.35, 120.5, 59.21, 59.21], "category_id": 85, "id": 1991762}, {"segmentation": [[228.71, 125.48, 227.77, 133.58, 228.48, 138.98, 230.12, 139.8, 235.05, 138.98, 235.87, 132.53, 235.4, 129.94, 233.88, 126.54, 233.41, 126.19, 228.36, 125.13]], "area": 95.38895000000001, "iscrowd": 0, "image_id": 346754, "bbox": [227.77, 125.13, 8.1, 14.67], "category_id": 86, "id": 1992161}, {"segmentation": [[378.19, 213.75, 376.25, 210.52, 378.84, 206.78, 380.26, 202.9, 380.52, 199.29, 378.84, 196.32, 377.03, 194.25, 377.67, 186.37, 382.07, 186.89, 386.33, 187.02, 388.01, 186.24, 388.14, 193.99, 390.46, 196.7, 391.88, 199.8, 391.75, 204.45, 389.17, 210.14, 388.27, 212.72, 387.88, 213.62, 387.36, 214.4]], "area": 310.26530000000014, "iscrowd": 0, "image_id": 302680, "bbox": [376.25, 186.24, 15.63, 28.16], "category_id": 86, "id": 1992742}, {"segmentation": [[134.11, 319.49, 129.92, 267.39, 135.35, 264.92, 143.25, 264.18, 147.94, 264.18, 150.41, 266.4, 152.88, 317.27, 149.43, 320.48, 142.02, 322.45, 135.35, 321.22]], "area": 1105.2980499999999, "iscrowd": 0, "image_id": 459794, "bbox": [129.92, 264.18, 22.96, 58.27], "category_id": 86, "id": 1992992}, {"segmentation": [[291.25, 271.43, 303.5, 262.98, 317.44, 229.6, 317.86, 215.24, 309.83, 205.1, 314.48, 190.31, 319.55, 183.97, 335.61, 180.17, 345.75, 183.13, 357.15, 188.62, 359.27, 190.73, 360.11, 194.11, 347.01, 287.9, 344.9, 298.46, 339.41, 309.03, 319.97, 300.15, 315.33, 284.52]], "area": 4985.520149999999, "iscrowd": 0, "image_id": 410561, "bbox": [291.25, 180.17, 68.86, 128.86], "category_id": 86, "id": 1993226}, {"segmentation": [[414.12, 262.29, 403.62, 268.02, 395.03, 268.02, 384.52, 268.49, 373.07, 268.02, 364.0, 266.11, 358.75, 262.29, 360.18, 273.27, 360.18, 273.27, 362.57, 287.59, 362.09, 304.77, 361.13, 320.05, 358.27, 334.37, 356.36, 345.35, 403.14, 350.6, 406.48, 330.55, 407.92, 309.55, 411.74, 289.98, 412.21, 277.09, 413.17, 265.15]], "area": 3905.327200000002, "iscrowd": 0, "image_id": 509702, "bbox": [356.36, 262.29, 57.76, 88.31], "category_id": 86, "id": 1993320}, {"segmentation": [[149.95, 244.83, 146.72, 236.83, 147.91, 232.92, 147.06, 226.79, 148.59, 225.6, 149.61, 223.04, 155.57, 224.06, 155.57, 226.11, 157.61, 225.26, 158.81, 224.4, 159.49, 229.51, 158.98, 233.77, 161.53, 233.77, 162.55, 231.38, 167.49, 230.87, 168.34, 234.62, 165.27, 238.02, 165.27, 243.3, 159.66, 243.64, 154.21, 246.02, 151.32, 245.85]], "area": 319.75705000000016, "iscrowd": 0, "image_id": 551986, "bbox": [146.72, 223.04, 21.62, 22.98], "category_id": 86, "id": 1994202}, {"segmentation": [[150.53, 287.62, 148.46, 285.78, 164.15, 240.08, 165.54, 237.08, 162.54, 232.46, 162.07, 230.51, 159.53, 230.28, 157.23, 230.05, 153.07, 228.9, 134.84, 224.74, 136.69, 221.97, 139.22, 220.59, 144.07, 219.21, 146.15, 218.74, 151.0, 220.36, 156.07, 221.74, 157.23, 221.97, 160.46, 223.59, 162.77, 225.67, 164.61, 229.36, 165.77, 232.82, 166.92, 236.52, 167.38, 241.13, 165.77, 244.36, 154.72, 284.78, 154.25, 285.93]], "area": 426.1265999999998, "iscrowd": 0, "image_id": 341989, "bbox": [134.84, 218.74, 32.54, 68.88], "category_id": 86, "id": 1994223}, {"segmentation": [[573.33, 148.31, 587.35, 141.22, 590.33, 143.2, 602.7, 178.19, 582.07, 166.3]], "area": 487.07180000000017, "iscrowd": 0, "image_id": 341989, "bbox": [573.33, 141.22, 29.37, 36.97], "category_id": 86, "id": 1994314}, {"segmentation": [[441.64, 250.23, 439.0, 256.35, 439.69, 259.54, 442.33, 262.04, 450.67, 262.32, 453.03, 257.6, 452.61, 255.37, 450.25, 249.95]], "area": 140.59265000000028, "iscrowd": 0, "image_id": 418505, "bbox": [439.0, 249.95, 14.03, 12.37], "category_id": 86, "id": 1994456}, {"segmentation": [[240.26, 344.09, 244.7, 338.91, 250.99, 338.26, 254.33, 338.81, 256.92, 340.66, 257.1, 341.03, 270.24, 340.29, 270.7, 338.17, 273.01, 336.69, 274.96, 336.13, 277.64, 335.48, 280.88, 335.67, 285.78, 339.83, 285.41, 341.22, 285.22, 344.64, 284.3, 346.77, 281.71, 348.53, 278.75, 350.56, 276.99, 350.93, 273.2, 351.12, 270.88, 350.38, 270.24, 349.64, 269.87, 348.06, 270.14, 347.23, 269.59, 346.31, 268.11, 346.12, 255.81, 347.14, 252.75, 350.65, 249.88, 351.12, 245.07, 350.93, 242.11, 349.91, 241.19, 348.34, 240.17, 345.94, 240.08, 344.27]], "area": 448.3978999999997, "iscrowd": 0, "image_id": 319917, "bbox": [240.08, 335.48, 45.7, 15.64], "category_id": 87, "id": 1994896}, {"segmentation": [[38.49, 399.78, 33.52, 376.19, 28.56, 361.29, 26.07, 338.95, 40.97, 311.63, 47.18, 306.66, 47.18, 289.28, 45.94, 278.11, 31.04, 274.38, 27.31, 260.73, 39.73, 253.28, 54.63, 253.28, 74.49, 250.79, 94.36, 233.41, 103.05, 222.24, 106.77, 217.27, 96.84, 212.31, 90.63, 204.86, 95.6, 198.65, 109.26, 193.68, 127.88, 199.89, 129.12, 206.1, 145.26, 208.58, 141.54, 225.96, 132.85, 237.14, 124.16, 255.76, 119.19, 270.66, 108.02, 291.77, 99.32, 311.63, 125.4, 319.08, 121.67, 333.98, 109.26, 338.95, 100.57, 340.19, 99.32, 352.6, 73.25, 373.71, 65.8, 381.16, 59.59, 391.09, 48.42, 397.3, 38.49, 396.06]], "area": 11841.089049999999, "iscrowd": 0, "image_id": 26732, "bbox": [26.07, 193.68, 119.19, 206.1], "category_id": 88, "id": 1996134}, {"segmentation": [[275.46, 161.74, 260.97, 158.52, 246.5, 142.44, 240.06, 117.51, 240.86, 107.86, 233.63, 97.4, 231.21, 93.37, 241.67, 77.29, 256.96, 61.2, 270.63, 56.38, 272.24, 56.38, 282.69, 49.13, 310.84, 42.7, 337.38, 48.34, 347.05, 50.74, 351.87, 53.16, 364.74, 57.99, 373.59, 73.27, 384.04, 98.21, 387.25, 113.48, 384.04, 127.97, 363.93, 149.69, 398.52, 153.7, 410.58, 159.34, 432.3, 159.34, 441.15, 169.8, 448.39, 185.88, 445.98, 201.96, 438.73, 209.21, 424.26, 215.64, 405.76, 213.22, 399.32, 210.0, 405.76, 220.46, 430.69, 222.07, 443.57, 240.57, 447.58, 250.22, 448.39, 260.68, 442.76, 267.12, 441.96, 267.12, 435.21, 291.78, 420.36, 303.99, 402.84, 309.29, 386.92, 304.51, 372.59, 298.68, 358.8, 290.72, 355.61, 289.12, 346.06, 308.23, 337.04, 311.95, 318.99, 310.35, 304.66, 308.77, 292.47, 298.15, 295.11, 296.56, 292.47, 286.47, 283.97, 280.11, 276.54, 278.51, 271.76, 276.93, 274.95, 263.12, 274.42, 251.98, 273.36, 248.79, 272.3, 244.55, 270.7, 241.37, 264.33, 232.88, 264.33, 224.92, 266.46, 219.61, 253.72, 212.18, 247.88, 206.34, 240.46, 186.17, 238.33, 169.2, 245.76, 161.77, 254.25, 160.7, 260.62, 164.95, 266.99, 165.48, 276.01, 162.29]], "area": 39919.217949999984, "iscrowd": 0, "image_id": 374800, "bbox": [231.21, 42.7, 217.18, 269.25], "category_id": 88, "id": 1996173}, {"segmentation": [[173.0, 506.24, 175.4, 510.24, 182.6, 511.04, 185.4, 503.84, 181.8, 497.04, 180.2, 491.84, 182.6, 481.03, 178.2, 471.43, 171.8, 463.43, 163.4, 457.43, 155.0, 453.83, 144.59, 452.23, 141.79, 455.83, 142.19, 460.63, 138.59, 463.43, 134.99, 470.63, 134.99, 476.23, 133.79, 480.23, 132.59, 487.04, 132.59, 493.44, 134.59, 499.04, 138.59, 505.44, 148.99, 507.44, 152.99, 506.64, 157.8, 506.24, 165.8, 508.64, 169.8, 507.44]], "area": 2253.3360999999995, "iscrowd": 0, "image_id": 260969, "bbox": [132.59, 452.23, 52.81, 58.81], "category_id": 88, "id": 1996237}, {"segmentation": [[511.33, 262.87, 546.42, 300.47, 606.58, 286.68, 584.02, 255.35, 625.38, 242.82, 621.62, 225.27, 605.33, 220.26, 563.97, 221.51, 552.69, 201.46, 521.36, 177.65, 506.32, 146.32, 463.71, 131.28, 438.64, 143.81, 446.16, 161.36, 444.91, 171.38, 458.69, 211.49, 473.73, 239.06, 498.8, 246.58, 537.65, 271.64]], "area": 14050.946650000005, "iscrowd": 0, "image_id": 374800, "bbox": [438.64, 131.28, 186.74, 169.19], "category_id": 88, "id": 1996435}, {"segmentation": [[158.06, 149.03, 181.12, 143.42, 223.29, 153.31, 233.17, 145.07, 243.06, 145.07, 252.94, 158.91, 256.89, 164.84, 240.75, 165.5, 237.46, 178.02, 240.42, 191.86, 247.01, 204.37, 248.0, 220.85, 239.76, 229.08, 262.82, 229.74, 270.07, 242.92, 272.71, 247.2, 276.66, 266.31, 271.06, 278.5, 282.59, 280.15, 294.78, 290.69, 290.17, 307.17, 283.58, 313.1, 266.12, 329.57, 248.99, 329.57, 224.28, 316.39, 219.34, 333.52, 178.81, 343.41, 163.33, 332.21, 151.47, 314.74, 145.87, 301.57, 148.17, 276.86, 146.85, 262.03, 146.52, 254.78, 134.99, 233.37, 137.63, 212.61, 142.57, 194.49, 143.56, 182.96, 147.51, 162.53, 143.56, 148.37]], "area": 21861.485449999996, "iscrowd": 0, "image_id": 374800, "bbox": [134.99, 143.42, 159.79, 199.99], "category_id": 88, "id": 1996645}, {"segmentation": [[443.46, 269.01, 482.09, 284.15, 499.31, 266.93, 508.71, 255.96, 491.48, 242.92, 474.78, 237.7, 453.9, 198.55, 447.64, 176.11, 443.99, 161.5, 438.25, 144.79, 445.55, 138.53, 428.33, 138.01, 412.67, 160.97, 433.03, 157.84, 440.86, 171.93, 446.6, 185.5, 441.9, 203.77, 429.37, 214.21, 403.28, 211.6, 405.36, 224.13, 430.42, 223.08, 448.16, 251.27, 448.68, 259.1, 441.9, 267.45]], "area": 4169.9621499999985, "iscrowd": 0, "image_id": 374800, "bbox": [403.28, 138.01, 105.43, 146.14], "category_id": 88, "id": 1996709}, {"segmentation": [[639.87, 21.8, 639.67, 16.8, 629.47, 25.0, 624.07, 32.0, 621.27, 37.4, 618.87, 36.8, 617.27, 33.2, 611.27, 38.6, 613.87, 41.2, 612.27, 42.6, 613.67, 45.6, 615.67, 44.6, 622.07, 40.2, 624.07, 38.6, 631.87, 28.8, 636.67, 27.4, 640.0, 23.6, 639.87, 19.8]], "area": 190.094, "iscrowd": 0, "image_id": 208754, "bbox": [611.27, 16.8, 28.73, 28.8], "category_id": 90, "id": 1997321}, {"segmentation": [[381.86, 322.38, 270.04, 449.67, 265.28, 452.05, 137.99, 452.05, 190.34, 425.88, 223.65, 415.17, 242.68, 403.28, 287.89, 368.78, 340.23, 324.76, 353.31, 310.49, 365.21, 306.92, 377.11, 309.3, 383.05, 324.76]], "area": 9482.694850000005, "iscrowd": 0, "image_id": 205309, "bbox": [137.99, 306.92, 245.06, 145.13], "category_id": 90, "id": 1997785}, {"segmentation": [[184.39, 406.95, 190.91, 407.25, 196.54, 404.73, 201.13, 421.47, 197.28, 422.06, 191.65, 416.14, 187.5, 412.88, 185.13, 412.73]], "area": 149.02949999999984, "iscrowd": 0, "image_id": 434047, "bbox": [184.39, 404.73, 16.74, 17.33], "category_id": 90, "id": 1997792}, {"segmentation": [[579.87, 32.28, 580.27, 34.25, 581.06, 36.09, 583.56, 35.83, 589.48, 30.04, 589.22, 27.93, 590.4, 25.96, 600.54, 14.77, 609.88, 2.53, 610.15, 0.95, 611.46, 0.03, 605.14, 0.0, 599.88, 4.11, 599.35, 6.87, 598.7, 8.32, 585.8, 24.78, 584.22, 25.3, 576.45, 33.99, 576.72, 36.36, 580.27, 39.12, 582.9, 41.64, 587.46, 38.17, 589.0, 35.76, 588.78, 34.44, 587.57, 32.13, 583.67, 35.76, 583.45, 35.92, 581.03, 36.2, 580.15, 34.33]], "area": 309.153499999999, "iscrowd": 0, "image_id": 208754, "bbox": [576.45, 0.0, 35.01, 41.64], "category_id": 90, "id": 1997932}, {"segmentation": [[603.57, 35.68, 606.77, 28.78, 609.97, 27.3, 622.28, 16.22, 639.52, 3.66, 640.0, 10.07, 613.42, 29.77, 615.63, 31.98, 605.29, 38.14, 604.8, 36.91]], "area": 251.39994999999962, "iscrowd": 0, "image_id": 208754, "bbox": [603.57, 3.66, 36.43, 34.48], "category_id": 90, "id": 1998079}, {"segmentation": [[374.04, 139.34, 374.74, 135.45, 376.39, 133.68, 377.69, 138.28, 375.8, 143.11, 374.51, 150.31, 372.74, 150.19, 372.97, 148.54, 374.98, 141.7, 375.1, 139.69], [370.97, 153.02, 369.79, 159.16, 368.61, 164.11, 368.61, 167.53, 368.73, 168.12, 370.61, 168.12, 373.56, 154.67, 373.68, 153.49]], "area": 71.65944999999954, "iscrowd": 0, "image_id": 408829, "bbox": [368.61, 133.68, 9.08, 34.44], "category_id": 90, "id": 1998475}, {"segmentation": [[609.37, 17.53, 615.22, 4.17, 617.44, 0.83, 627.46, 1.11, 616.88, 13.35, 612.43, 18.92, 612.99, 24.48, 613.27, 31.16, 608.82, 38.39, 602.14, 35.89, 603.81, 30.05, 606.59, 28.1, 609.37, 25.6, 608.26, 17.53]], "area": 246.40204999999983, "iscrowd": 0, "image_id": 208754, "bbox": [602.14, 0.83, 25.32, 37.56], "category_id": 90, "id": 1998614}, {"segmentation": [[365.7, 145.9, 365.26, 138.46, 368.54, 134.3, 369.86, 139.99, 368.54, 143.49, 367.23, 150.94, 365.26, 150.94], [361.1, 167.37, 364.38, 153.35, 365.7, 153.13, 364.82, 168.68]], "area": 84.58865000000013, "iscrowd": 0, "image_id": 408829, "bbox": [361.1, 134.3, 8.76, 34.38], "category_id": 90, "id": 1998885}, {"segmentation": [[368.86, 150.43, 371.42, 141.1, 372.57, 135.6, 371.04, 133.81, 370.02, 136.62, 369.63, 139.44, 368.99, 142.89, 368.1, 146.47, 368.1, 148.0, 368.1, 150.18]], "area": 29.53225000000006, "iscrowd": 0, "image_id": 408829, "bbox": [368.1, 133.81, 4.47, 16.62], "category_id": 90, "id": 1999211}, {"segmentation": [[598.97, 273.42, 601.47, 268.58, 600.84, 266.39, 600.84, 266.23, 601.31, 259.98, 601.0, 259.83, 599.44, 257.95, 598.97, 255.3, 595.69, 255.45, 596.0, 258.89, 595.84, 259.83, 595.38, 262.17, 593.81, 262.95, 594.28, 266.23, 595.84, 266.39, 597.41, 269.98]], "area": 80.61035000000037, "iscrowd": 0, "image_id": 241076, "bbox": [593.81, 255.3, 7.66, 18.12], "category_id": 1, "id": 1999887}, {"segmentation": [[62.46, 268.29, 62.16, 264.18, 63.8, 263.67, 65.03, 264.28, 65.45, 266.03, 65.14, 268.29, 65.14, 268.29, 65.24, 276.11, 60.92, 276.11, 62.16, 272.41]], "area": 38.18655000000003, "iscrowd": 0, "image_id": 146049, "bbox": [60.92, 263.67, 4.53, 12.44], "category_id": 1, "id": 2000103}, {"segmentation": [[280.78, 329.66, 274.26, 325.46, 277.0, 313.48, 279.31, 310.33, 278.68, 306.96, 278.89, 303.39, 278.89, 301.5, 283.93, 300.24, 285.61, 301.92, 285.4, 304.86, 284.98, 308.86, 287.29, 312.01, 290.44, 314.11, 291.71, 317.89, 291.71, 319.36, 280.78, 330.29]], "area": 286.36975000000007, "iscrowd": 0, "image_id": 111831, "bbox": [274.26, 300.24, 17.45, 30.05], "category_id": 1, "id": 2000410}, {"segmentation": [[327.81, 236.48, 326.13, 232.85, 327.53, 229.5, 330.04, 226.99, 335.34, 228.95, 333.94, 233.97, 331.99, 237.32], [327.53, 244.29, 335.06, 244.01, 335.06, 248.75, 335.9, 252.66, 330.6, 252.38, 327.25, 252.38, 326.97, 245.68]], "area": 130.57409999999982, "iscrowd": 0, "image_id": 294416, "bbox": [326.13, 226.99, 9.77, 25.67], "category_id": 1, "id": 2000820}, {"segmentation": [[149.76, 488.37, 150.05, 494.13, 149.47, 498.17, 152.93, 500.77, 154.95, 499.32, 156.68, 497.02, 156.68, 494.42, 156.68, 490.1, 159.28, 488.37, 163.6, 489.23, 160.43, 495.58, 156.68, 499.9, 154.09, 503.94, 151.49, 509.7, 151.78, 512.3, 161.01, 513.16, 165.33, 513.74, 172.25, 511.14, 169.37, 506.24, 169.37, 503.07, 175.42, 503.07, 177.15, 502.21, 179.17, 498.46, 180.32, 493.85, 188.11, 489.52, 192.72, 485.48, 195.32, 482.31, 197.62, 477.99, 198.2, 474.82, 204.83, 481.16, 209.45, 485.2, 212.33, 488.08, 213.77, 490.39, 214.35, 493.27, 212.04, 501.63, 215.21, 504.23, 217.23, 503.94, 221.27, 500.77, 224.44, 497.02, 227.32, 495.86, 228.47, 492.98, 226.17, 488.66, 216.94, 485.48, 212.9, 481.45, 204.83, 470.2, 200.8, 466.46, 196.47, 460.11, 195.32, 457.23, 199.07, 453.19, 201.08, 450.31, 201.37, 443.1, 201.08, 438.78, 195.03, 434.45, 190.13, 432.72, 185.8, 432.15, 180.61, 434.16, 178.88, 438.2, 176.87, 442.52, 173.98, 444.25, 169.66, 446.56, 165.62, 447.71, 161.3, 449.73, 158.41, 452.62, 154.38, 456.94, 152.07, 459.54, 149.76, 462.42, 148.32, 465.01, 145.44, 468.76, 144.28, 473.09, 143.13, 476.26, 144.0, 480.87, 146.59, 484.62, 148.61, 486.93]], "area": 3194.91815, "iscrowd": 0, "image_id": 41577, "bbox": [143.13, 432.15, 85.34, 81.59], "category_id": 1, "id": 2001910}, {"segmentation": [[76.24, 202.33, 74.77, 198.46, 75.14, 194.97, 78.82, 195.52, 82.5, 197.36, 81.58, 199.38, 81.77, 203.8, 85.63, 207.3, 85.81, 215.95, 84.71, 221.47, 80.66, 227.54, 80.29, 224.23, 79.92, 220.36, 78.08, 217.24, 75.88, 212.63, 73.48, 213.74, 71.46, 217.05, 69.43, 215.95, 70.91, 208.59, 71.46, 205.64, 72.75, 203.43, 74.4, 203.43]], "area": 269.5351499999998, "iscrowd": 0, "image_id": 338086, "bbox": [69.43, 194.97, 16.38, 32.57], "category_id": 1, "id": 2002128}, {"segmentation": [[554.25, 168.75, 554.28, 167.28, 555.12, 166.33, 556.49, 165.89, 557.96, 166.2, 558.67, 166.86, 558.8, 167.36, 558.85, 168.12, 558.85, 168.12, 558.9, 168.59, 554.31, 168.65]], "area": 10.50895000000003, "iscrowd": 0, "image_id": 425652, "bbox": [554.25, 165.89, 4.65, 2.86], "category_id": 1, "id": 2002158}, {"segmentation": [[469.72, 315.04, 469.95, 311.91, 469.72, 306.01, 469.02, 302.3, 468.44, 299.41, 467.4, 298.6, 464.85, 297.56, 463.35, 296.05, 463.35, 294.43, 465.09, 293.5, 467.63, 292.35, 468.21, 290.73, 468.21, 288.53, 469.25, 287.37, 471.11, 287.02, 472.61, 287.72, 474.23, 290.26, 477.01, 292.69, 476.55, 295.59, 477.36, 296.86, 476.2, 300.57, 474.69, 304.04, 474.23, 309.94, 474.23, 313.42, 473.65, 314.69, 472.38, 315.15]], "area": 194.67135000000022, "iscrowd": 0, "image_id": 575792, "bbox": [463.35, 287.02, 14.01, 28.13], "category_id": 1, "id": 2002862}, {"segmentation": [[441.45, 29.22, 439.37, 26.76, 438.24, 22.98, 439.18, 20.71, 443.34, 18.44, 447.13, 17.87, 450.53, 17.49, 453.56, 20.33, 454.69, 23.55, 456.02, 26.95, 455.64, 31.11, 455.64, 34.14, 458.48, 35.08, 459.04, 37.35, 446.56, 40.38, 444.86, 40.19, 443.72, 34.33, 441.26, 31.11]], "area": 302.97909999999985, "iscrowd": 0, "image_id": 56699, "bbox": [438.24, 17.49, 20.8, 22.89], "category_id": 1, "id": 2003157}, {"segmentation": [[541.66, 126.81, 543.01, 124.46, 542.94, 121.61, 542.66, 118.68, 541.66, 117.47, 541.52, 116.62, 540.87, 116.33, 540.09, 116.47, 540.02, 117.9, 539.02, 119.9, 539.52, 123.1, 539.73, 125.38, 540.59, 126.52, 541.23, 127.16]], "area": 30.227750000000004, "iscrowd": 0, "image_id": 501358, "bbox": [539.02, 116.33, 3.99, 10.83], "category_id": 1, "id": 2005366}, {"segmentation": [[13.81, 472.53, 15.77, 472.77, 16.42, 474.67, 16.54, 476.63, 17.37, 478.23, 17.31, 480.54, 16.95, 481.02, 15.53, 476.15, 14.1, 475.26]], "area": 11.465399999999986, "iscrowd": 0, "image_id": 570023, "bbox": [13.81, 472.53, 3.56, 8.49], "category_id": 1, "id": 2005539}, {"segmentation": [[544.1, 477.46, 537.76, 405.68, 547.26, 396.18, 538.82, 382.45, 547.26, 342.34, 565.21, 324.39, 582.1, 325.45, 598.99, 349.73, 614.83, 382.45, 611.66, 393.01, 617.99, 407.79, 623.27, 446.85, 614.83, 453.18, 608.49, 451.07, 596.88, 460.57, 606.38, 479.58]], "area": 9976.867249999998, "iscrowd": 0, "image_id": 3366, "bbox": [537.76, 324.39, 85.51, 155.19], "category_id": 1, "id": 2006945}, {"segmentation": [[393.26, 163.69, 378.22, 175.86, 378.94, 184.09, 383.59, 184.09, 383.24, 178.01, 385.39, 178.01, 386.1, 191.97, 398.99, 191.97, 399.71, 206.65, 402.57, 201.28, 402.57, 185.17, 405.79, 183.38, 404.0, 171.56, 401.14, 168.7, 399.35, 164.76]], "area": 574.7632499999996, "iscrowd": 0, "image_id": 206427, "bbox": [378.22, 163.69, 27.57, 42.96], "category_id": 1, "id": 2007162}, {"segmentation": [[638.16, 289.03, 630.6, 289.91, 631.49, 285.03, 624.39, 284.58, 619.05, 280.59, 620.39, 276.59, 617.72, 273.03, 631.94, 271.26, 632.83, 265.48, 639.49, 272.59]], "area": 297.0493999999997, "iscrowd": 0, "image_id": 203847, "bbox": [617.72, 265.48, 21.77, 24.43], "category_id": 1, "id": 2007358}, {"segmentation": [[257.55, 305.29, 260.88, 298.26, 267.92, 292.34, 275.32, 289.75, 277.17, 283.83, 283.09, 283.83, 285.31, 287.16, 283.83, 293.45, 285.31, 304.18, 291.6, 309.36, 291.23, 316.76, 286.05, 320.09, 286.05, 332.31, 280.5, 331.57, 281.24, 316.02, 274.95, 317.87, 274.21, 331.57, 268.29, 334.53, 266.07, 333.05, 266.07, 327.49, 269.03, 318.24, 257.92, 307.14]], "area": 921.7162500000003, "iscrowd": 0, "image_id": 41577, "bbox": [257.55, 283.83, 34.05, 50.7], "category_id": 1, "id": 2007504}, {"segmentation": [[404.76, 207.96, 404.1, 198.42, 404.76, 192.35, 409.09, 190.4, 414.51, 189.1, 415.16, 188.66, 415.16, 182.81, 415.16, 174.79, 420.58, 173.27, 425.57, 175.66, 425.78, 179.34, 424.92, 184.54, 425.35, 188.66, 431.64, 192.57, 436.19, 203.19, 436.62, 207.09]], "area": 674.6269499999996, "iscrowd": 0, "image_id": 385701, "bbox": [404.1, 173.27, 32.52, 34.69], "category_id": 1, "id": 2007519}, {"segmentation": [[547.96, 295.77, 552.09, 290.46, 562.73, 286.32, 569.82, 277.45, 569.23, 264.45, 565.69, 259.13, 558.59, 256.18, 548.55, 256.18, 537.91, 262.68, 521.95, 272.73, 522.54, 284.55, 525.5, 292.23, 533.77, 295.18, 542.05, 295.18]], "area": 1394.017400000001, "iscrowd": 0, "image_id": 384895, "bbox": [521.95, 256.18, 47.87, 39.59], "category_id": 1, "id": 2008091}, {"segmentation": [[120.22, 283.06, 120.22, 277.43, 119.39, 272.29, 120.39, 266.83, 123.37, 264.02, 125.35, 261.53, 125.19, 258.06, 127.01, 251.27, 132.64, 250.61, 134.13, 253.59, 134.29, 257.73, 132.97, 261.7, 134.96, 265.51, 134.96, 271.8, 134.13, 285.7, 131.81, 305.07, 122.37, 304.58]], "area": 640.2294499999998, "iscrowd": 0, "image_id": 566501, "bbox": [119.39, 250.61, 15.57, 54.46], "category_id": 1, "id": 2008645}, {"segmentation": [[0.0, 137.05, 6.27, 135.68, 12.22, 135.22, 19.08, 143.0, 24.11, 214.84, 13.59, 219.42, 13.13, 230.4, 15.88, 251.91, 17.25, 259.69, 9.47, 261.06, 0.32, 257.85]], "area": 2321.7604499999998, "iscrowd": 0, "image_id": 510979, "bbox": [0.0, 135.22, 24.11, 125.84], "category_id": 1, "id": 2008735}, {"segmentation": [[106.88, 274.49, 107.01, 270.93, 103.95, 268.38, 103.82, 268.63, 102.81, 264.68, 103.06, 262.01, 102.93, 260.48, 102.93, 260.48, 100.64, 260.61, 100.38, 260.99, 99.87, 261.5, 99.87, 261.5, 99.24, 262.26, 97.2, 262.26, 96.56, 262.9, 96.31, 263.67, 95.8, 265.07, 95.8, 265.96, 95.67, 268.12, 95.67, 268.89, 96.18, 269.91, 97.2, 271.05, 99.11, 270.55, 98.22, 271.69, 96.94, 275.13, 96.43, 276.66, 96.31, 276.92, 94.65, 279.21, 94.52, 279.59, 98.73, 278.44, 101.91, 276.92, 103.95, 276.28, 104.84, 275.64, 106.63, 274.49]], "area": 132.80469999999997, "iscrowd": 0, "image_id": 245441, "bbox": [94.52, 260.48, 12.49, 19.11], "category_id": 1, "id": 2008748}, {"segmentation": [[241.43, 141.19, 240.0, 136.17, 237.48, 131.14, 236.77, 125.4, 240.0, 113.19, 241.07, 105.29, 241.43, 96.32, 246.82, 92.37, 259.02, 89.14, 257.23, 85.91, 257.95, 78.01, 258.67, 62.21, 264.41, 59.34, 264.77, 87.7, 265.13, 111.04, 261.18, 115.7, 257.59, 130.42, 255.43, 139.04, 255.43, 146.22]], "area": 1300.5388499999992, "iscrowd": 0, "image_id": 149863, "bbox": [236.77, 59.34, 28.36, 86.88], "category_id": 1, "id": 2008835}, {"segmentation": [[221.99, 99.2, 228.36, 99.84, 229.64, 104.3, 230.27, 107.48, 230.27, 113.85, 236.32, 123.41, 236.01, 127.23, 233.14, 128.82, 228.68, 130.73, 224.86, 138.38, 228.04, 141.24, 230.27, 144.75, 228.04, 150.16, 220.4, 147.61, 218.81, 136.47, 215.62, 124.68, 214.67, 116.72, 215.94, 109.39, 219.76, 108.12, 219.44, 102.7, 219.44, 99.84]], "area": 630.86885, "iscrowd": 0, "image_id": 20251, "bbox": [214.67, 99.2, 21.65, 50.96], "category_id": 1, "id": 2008875}, {"segmentation": [[609.14, 56.06, 609.96, 34.86, 621.25, 31.01, 634.46, 34.86, 638.87, 44.22, 638.32, 50.83, 634.74, 53.58, 635.29, 57.16, 631.43, 61.56, 629.23, 64.59, 627.31, 67.07, 633.64, 72.85, 636.39, 76.15, 639.97, 83.31, 638.87, 122.12, 640.0, 136.44, 640.0, 139.19, 633.64, 137.82, 618.77, 133.14, 611.34, 126.8, 597.3, 127.91, 601.43, 113.87, 598.4, 104.78, 597.03, 68.45]], "area": 3538.010400000003, "iscrowd": 0, "image_id": 269986, "bbox": [597.03, 31.01, 42.97, 108.18], "category_id": 1, "id": 2009624}, {"segmentation": [[51.29, 250.19, 48.86, 241.61, 48.05, 233.68, 50.16, 226.07, 52.26, 223.15, 60.03, 225.26, 61.01, 227.04, 55.18, 232.22, 53.88, 240.32]], "area": 150.71670000000006, "iscrowd": 0, "image_id": 415946, "bbox": [48.05, 223.15, 12.96, 27.04], "category_id": 1, "id": 2010523}, {"segmentation": [[195.71, 200.02, 193.33, 204.77, 195.18, 206.75, 195.18, 214.53, 195.44, 217.7, 197.42, 215.46, 198.35, 213.48, 198.88, 218.36, 199.93, 217.57, 199.54, 209.65, 200.99, 208.86, 201.78, 207.94, 201.12, 203.58, 200.46, 201.21, 199.4, 200.02, 199.54, 199.49, 199.01, 197.64, 197.29, 197.25, 195.84, 198.3, 195.71, 199.23]], "area": 99.95344999999986, "iscrowd": 0, "image_id": 409374, "bbox": [193.33, 197.25, 8.45, 21.11], "category_id": 1, "id": 2011420}, {"segmentation": [[341.91, 161.77, 340.84, 161.13, 338.49, 164.12, 338.81, 167.86, 338.81, 168.5, 335.29, 174.37, 335.18, 177.04, 336.14, 181.95, 337.0, 182.38, 339.88, 175.23]], "area": 61.40830000000001, "iscrowd": 0, "image_id": 511988, "bbox": [335.18, 161.13, 6.73, 21.25], "category_id": 1, "id": 2011727}, {"segmentation": [[551.34, 190.79, 552.03, 190.1, 550.66, 186.17, 548.09, 188.22, 548.09, 191.64]], "area": 14.019699999999794, "iscrowd": 0, "image_id": 373765, "bbox": [548.09, 186.17, 3.94, 5.47], "category_id": 1, "id": 2012607}, {"segmentation": [[89.38, 332.31, 89.98, 328.11, 87.38, 319.11, 86.18, 314.31, 86.38, 308.11, 85.98, 303.71, 82.98, 299.51, 75.58, 299.31, 73.38, 300.11, 71.58, 304.51, 85.78, 315.11]], "area": 157.24000000000012, "iscrowd": 0, "image_id": 156221, "bbox": [71.58, 299.31, 18.4, 33.0], "category_id": 1, "id": 2012660}, {"segmentation": [[278.09, 0.64, 278.98, 22.41, 315.41, 27.3, 316.74, 1.09]], "area": 901.1720000000005, "iscrowd": 0, "image_id": 203847, "bbox": [278.09, 0.64, 38.65, 26.66], "category_id": 1, "id": 2012680}, {"segmentation": [[448.86, 265.6, 451.87, 265.46, 453.87, 267.32, 454.88, 270.33, 456.74, 273.06, 459.9, 275.92, 461.62, 279.08, 462.19, 282.95, 461.47, 286.97, 461.47, 289.98, 462.77, 295.0, 461.76, 306.33, 460.9, 311.06, 459.18, 316.8, 458.75, 321.1, 457.03, 320.67, 455.74, 319.23, 455.74, 316.8, 455.88, 314.5, 454.02, 313.07, 452.15, 311.49, 452.58, 299.16, 452.87, 297.29, 451.15, 293.71, 449.43, 290.27, 448.42, 288.26, 448.14, 286.11, 448.42, 283.09, 449.29, 281.09, 450.43, 276.93, 450.0, 273.63, 449.57, 271.34]], "area": 493.7560499999999, "iscrowd": 0, "image_id": 328487, "bbox": [448.14, 265.46, 14.63, 55.64], "category_id": 1, "id": 2013331}, {"segmentation": [[517.01, 319.14, 517.54, 314.63, 518.6, 312.91, 518.73, 310.26, 518.6, 308.4, 518.46, 307.74, 517.27, 306.94, 517.01, 305.88, 516.87, 304.29, 515.95, 303.1, 514.75, 303.36, 514.22, 303.89, 514.35, 306.28, 513.96, 306.81, 512.9, 308.14, 512.9, 309.2, 512.9, 311.72, 512.9, 313.57, 512.1, 316.22, 513.96, 317.95, 513.96, 319.8, 514.22, 320.47, 517.01, 319.01]], "area": 72.75564999999992, "iscrowd": 0, "image_id": 404964, "bbox": [512.1, 303.1, 6.63, 17.37], "category_id": 1, "id": 2013800}, {"segmentation": [[409.45, 38.4, 412.16, 38.47, 413.44, 39.33, 414.08, 42.25, 414.01, 44.67, 414.58, 45.53, 415.01, 46.74, 412.8, 47.24, 410.02, 46.74, 406.03, 46.38, 404.61, 45.1, 406.6, 45.17, 408.74, 45.17, 408.88, 44.17, 409.1, 41.89, 409.88, 38.76]], "area": 45.579049999999924, "iscrowd": 0, "image_id": 191918, "bbox": [404.61, 38.4, 10.4, 8.84], "category_id": 1, "id": 2014278}, {"segmentation": [[90.04, 276.16, 91.22, 275.71, 92.04, 272.8, 94.32, 272.71, 95.14, 273.89, 94.96, 275.89, 96.59, 276.71, 89.5, 277.07]], "area": 16.409399999999927, "iscrowd": 0, "image_id": 146049, "bbox": [89.5, 272.71, 7.09, 4.36], "category_id": 1, "id": 2015270}, {"segmentation": [[290.36, 1.27, 283.06, 29.0, 285.25, 30.46, 285.98, 53.82, 283.06, 74.25, 283.06, 79.36, 294.74, 77.17, 295.47, 74.25, 305.68, 2.0], [312.25, 2.73, 307.14, 73.52, 334.15, 80.82, 340.71, 77.17, 339.25, 59.66, 337.8, 45.06, 337.8, 39.95, 326.85, 10.76, 323.93, 2.0], [335.61, 2.73, 343.63, 30.46, 359.69, 0.0, 332.69, 0.0], [309.44, 86.03, 305.59, 124.56, 331.11, 109.15, 330.15, 103.37, 339.78, 98.55, 338.82, 85.07, 325.33, 86.03, 313.3, 86.52], [297.89, 81.7, 294.52, 134.19, 286.81, 139.96, 285.85, 85.55]], "area": 4777.633350000001, "iscrowd": 0, "image_id": 285022, "bbox": [283.06, 0.0, 76.63, 139.96], "category_id": 1, "id": 2015821}, {"segmentation": [[477.99, 519.56, 480.86, 525.13, 469.37, 524.77, 469.91, 521.9, 470.45, 519.74, 468.83, 518.3, 468.66, 515.25, 469.37, 513.82, 471.71, 512.74, 473.14, 513.28, 474.94, 516.51, 476.02, 517.77]], "area": 90.2741999999999, "iscrowd": 0, "image_id": 181149, "bbox": [468.66, 512.74, 12.2, 12.39], "category_id": 1, "id": 2015851}, {"segmentation": [[217.06, 403.95, 218.27, 400.43, 218.39, 399.22, 216.93, 397.64, 215.96, 395.94, 219.24, 395.09, 221.91, 394.85, 221.54, 399.22, 223.24, 400.31, 223.24, 402.85, 223.24, 404.43]], "area": 45.30275, "iscrowd": 0, "image_id": 334097, "bbox": [215.96, 394.85, 7.28, 9.58], "category_id": 1, "id": 2015918}, {"segmentation": [[561.44, 165.55, 561.44, 165.55, 563.55, 173.33, 558.28, 175.18, 556.16, 179.01, 554.45, 175.44, 555.11, 171.88, 553.39, 168.32, 555.11, 164.49, 558.67, 163.96, 561.57, 165.02, 561.57, 165.02]], "area": 90.86644999999972, "iscrowd": 0, "image_id": 206427, "bbox": [553.39, 163.96, 10.16, 15.05], "category_id": 1, "id": 2016173}, {"segmentation": [[389.09, 35.86, 386.03, 62.82, 379.9, 75.07, 376.23, 91.62, 380.51, 99.58, 383.58, 100.19, 382.97, 117.96, 379.29, 132.05, 377.45, 138.18, 368.87, 152.27, 368.87, 161.46, 373.77, 164.52, 389.7, 160.85, 398.28, 158.4, 395.22, 149.82, 394.61, 142.47, 398.28, 126.54, 401.35, 112.45, 396.44, 102.64, 393.38, 99.58, 384.8, 88.55, 386.64, 79.97, 392.77, 73.85, 398.89, 66.5, 403.18, 59.14, 403.18, 48.73, 403.18, 40.76, 389.09, 34.64]], "area": 2024.4450500000003, "iscrowd": 0, "image_id": 275432, "bbox": [368.87, 34.64, 34.31, 129.88], "category_id": 1, "id": 2016264}, {"segmentation": [[92.52, 32.37, 89.36, 27.32, 89.78, 26.06, 90.2, 24.38, 91.47, 22.7, 93.78, 23.75, 97.35, 29.22, 93.15, 30.48], [100.29, 29.73, 92.1, 20.48, 91.47, 17.96, 92.94, 16.49, 93.36, 16.07, 93.57, 15.02, 93.78, 12.5, 93.78, 11.24, 93.78, 8.93, 95.04, 7.45, 98.4, 6.19, 100.29, 8.3, 101.55, 9.14, 102.18, 10.61, 103.23, 12.5, 105.54, 15.65, 106.17, 17.33, 108.28, 19.22, 108.91, 20.9, 109.12, 22.58, 109.75, 24.69, 109.96, 25.95, 111.01, 28.05, 111.85, 30.36, 111.43, 31.41, 109.96, 33.72, 108.28, 35.4, 105.75, 36.45, 104.28, 37.71, 103.02, 36.24, 99.24, 29.94]], "area": 375.60405000000014, "iscrowd": 0, "image_id": 375659, "bbox": [89.36, 6.19, 22.49, 31.52], "category_id": 1, "id": 2016347}, {"segmentation": [[507.46, 37.35, 500.27, 50.19, 499.25, 55.83, 496.93, 61.99, 492.31, 65.33, 488.72, 67.9, 491.29, 74.06, 495.91, 75.09, 503.87, 70.98, 506.69, 70.72, 511.57, 70.72, 519.52, 73.8, 525.43, 74.32, 530.82, 76.11, 533.39, 76.11, 542.11, 69.18, 542.11, 62.51, 540.83, 53.52, 538.78, 46.34, 536.72, 41.97, 531.85, 36.84, 522.61, 32.47, 519.78, 30.42, 519.24, 25.03, 517.45, 19.66, 513.51, 19.3, 512.79, 24.67, 511.01, 28.91, 511.44, 31.3, 508.83, 36.52]], "area": 1671.0816500000012, "iscrowd": 0, "image_id": 524522, "bbox": [488.72, 19.3, 53.39, 56.81], "category_id": 1, "id": 2016708}, {"segmentation": [[184.94, 236.24, 183.11, 219.13, 187.39, 212.41, 191.05, 206.91, 198.39, 203.85, 200.22, 211.8, 206.94, 217.3, 207.55, 228.3, 216.72, 236.85, 209.38, 239.91, 196.55, 239.91]], "area": 719.4118999999997, "iscrowd": 0, "image_id": 41577, "bbox": [183.11, 203.85, 33.61, 36.06], "category_id": 1, "id": 2017037}, {"segmentation": [[201.65, 266.49, 206.55, 259.75, 196.75, 245.04, 208.39, 227.89, 232.29, 216.86, 251.89, 233.4, 260.47, 234.63, 258.63, 238.92, 257.41, 240.14, 257.41, 266.49, 256.18, 276.29, 262.31, 281.8, 262.31, 285.48, 258.63, 292.83, 270.27, 298.96, 274.56, 312.44, 277.62, 349.2, 265.98, 349.2, 240.86, 306.92, 224.93, 298.96, 216.97, 290.99, 207.17, 270.78]], "area": 5058.7666500000005, "iscrowd": 0, "image_id": 111759, "bbox": [196.75, 216.86, 80.87, 132.34], "category_id": 1, "id": 2017785}, {"segmentation": [[94.52, 286.86, 91.74, 280.93, 92.48, 278.71, 95.63, 273.72, 97.85, 274.46, 100.62, 277.42, 100.81, 280.93, 102.1, 282.6, 105.43, 285.0, 105.43, 287.78, 103.95, 295.55, 102.1, 297.03, 96.74, 296.48, 92.29, 295.18, 89.7, 297.03, 89.15, 296.48, 89.15, 294.07, 92.29, 291.3, 93.59, 290.56], [100.81, 306.1, 94.33, 306.29, 93.59, 309.06, 94.33, 313.32, 93.59, 316.65, 97.85, 310.36]], "area": 262.1750499999999, "iscrowd": 0, "image_id": 332065, "bbox": [89.15, 273.72, 16.28, 42.93], "category_id": 1, "id": 2017982}, {"segmentation": [[540.72, 262.95, 540.99, 261.02, 539.89, 260.74, 540.58, 259.78, 540.44, 258.12, 540.44, 256.88, 540.72, 256.19, 541.55, 255.22, 544.31, 254.26, 545.27, 254.81, 546.1, 260.47, 545.55, 261.57, 545.0, 262.54, 547.62, 263.5, 546.65, 266.26, 546.65, 266.4, 544.72, 268.19, 541.82, 269.44, 538.37, 269.99, 538.65, 267.64, 541.27, 265.71, 541.55, 265.16, 540.58, 263.37]], "area": 80.25169999999994, "iscrowd": 0, "image_id": 539099, "bbox": [538.37, 254.26, 9.25, 15.73], "category_id": 1, "id": 2018249}, {"segmentation": [[171.11, 180.47, 176.42, 175.6, 175.98, 169.41, 171.55, 162.77, 171.11, 155.69, 171.55, 149.05, 182.17, 140.2, 206.51, 149.05, 210.49, 164.98, 214.92, 170.73, 211.82, 173.39, 212.7, 176.93, 212.7, 178.7, 212.7, 181.35, 210.49, 184.01, 207.39, 185.33, 200.76, 184.89, 211.38, 186.66, 214.47, 191.53, 221.11, 203.48, 221.11, 214.54, 221.11, 216.75, 224.65, 225.16, 232.62, 225.16, 236.6, 226.48, 239.7, 232.68, 237.04, 234.45, 262.26, 229.58, 275.09, 231.79, 278.63, 238.43, 276.42, 243.3, 263.59, 245.07, 262.26, 247.28, 255.18, 245.95, 237.93, 245.95, 221.55, 246.4, 213.15, 246.4, 206.51, 246.84, 202.53, 245.51, 199.87, 240.64, 197.66, 233.12, 200.76, 225.6, 202.97, 216.75, 207.39, 209.23, 212.26, 204.36]], "area": 3589.8731000000002, "iscrowd": 0, "image_id": 480818, "bbox": [171.11, 140.2, 107.52, 107.08], "category_id": 1, "id": 2018452}, {"segmentation": [[143.0, 151.37, 142.68, 142.82, 136.02, 136.48, 127.79, 135.21, 122.72, 132.99, 120.18, 127.92, 118.6, 125.71, 118.28, 120.95, 120.82, 117.47, 120.5, 113.98, 114.48, 109.55, 109.73, 108.91, 105.92, 113.35, 102.75, 120.0, 100.54, 127.61, 102.44, 140.6, 107.19, 147.25, 111.94, 150.42, 122.08, 151.69, 125.89, 152.96, 125.89, 158.03, 126.84, 163.09]], "area": 1111.834, "iscrowd": 0, "image_id": 23015, "bbox": [100.54, 108.91, 42.46, 54.18], "category_id": 1, "id": 2018575}, {"segmentation": [[167.33, 340.36, 166.97, 338.52, 167.33, 337.79, 168.8, 338.15, 170.27, 339.8, 170.82, 344.21, 170.82, 348.62, 169.54, 350.08, 165.87, 350.27, 165.87, 344.58, 166.97, 340.54]], "area": 50.18294999999987, "iscrowd": 0, "image_id": 64908, "bbox": [165.87, 337.79, 4.95, 12.48], "category_id": 1, "id": 2019205}, {"segmentation": [[274.11, 66.93, 272.68, 55.52, 269.25, 52.1, 269.68, 42.82, 271.97, 39.97, 274.96, 39.68, 276.53, 36.12, 275.39, 33.41, 274.39, 30.41, 275.25, 26.84, 279.95, 25.56, 281.52, 28.27, 281.95, 32.55, 282.38, 36.12, 280.1, 57.66, 282.09, 80.06, 276.1, 85.19]], "area": 448.18659999999977, "iscrowd": 0, "image_id": 277472, "bbox": [269.25, 25.56, 13.13, 59.63], "category_id": 1, "id": 2019414}, {"segmentation": [[361.27, 196.13, 373.95, 198.49, 375.02, 190.97, 378.67, 177.22, 380.39, 171.84, 379.96, 167.12, 382.33, 165.18, 382.33, 160.45, 381.68, 155.73, 379.53, 151.21, 376.31, 149.5, 370.08, 150.14, 367.28, 152.5, 365.14, 156.8, 366.0, 162.39, 367.28, 166.04, 364.28, 169.91, 361.27, 176.36, 361.05, 186.46, 361.7, 194.62]], "area": 720.7167500000004, "iscrowd": 0, "image_id": 511988, "bbox": [361.05, 149.5, 21.28, 48.99], "category_id": 1, "id": 2019474}, {"segmentation": [[441.72, 120.41, 443.31, 115.64, 444.67, 112.23, 444.9, 107.92, 446.49, 104.74, 447.85, 103.83, 449.67, 104.96, 450.81, 107.69, 450.81, 111.1, 452.63, 114.73, 454.22, 118.14, 454.9, 123.59, 454.9, 128.14, 453.99, 134.04, 453.31, 136.77, 452.17, 139.04, 448.99, 139.27, 448.31, 131.54, 447.85, 123.59, 445.81, 121.09, 443.99, 119.96], [445.58, 152.9, 450.35, 152.9, 449.22, 161.31, 446.95, 167.21, 443.54, 168.57, 441.04, 167.67, 441.72, 164.94, 441.04, 161.31, 443.08, 155.85, 444.9, 153.58]], "area": 343.16144999999983, "iscrowd": 0, "image_id": 20251, "bbox": [441.04, 103.83, 13.86, 64.74], "category_id": 1, "id": 2019864}, {"segmentation": [[434.83, 45.18, 435.06, 36.98, 440.53, 34.48, 440.75, 31.97, 438.7, 29.01, 437.79, 23.55, 437.57, 17.62, 441.89, 13.98, 450.78, 13.98, 455.33, 18.99, 456.93, 24.0, 460.11, 28.1, 465.35, 35.16, 470.36, 44.27, 433.69, 45.41]], "area": 721.9042000000004, "iscrowd": 0, "image_id": 60771, "bbox": [433.69, 13.98, 36.67, 31.43], "category_id": 1, "id": 2019920}, {"segmentation": [[594.03, 280.09, 594.43, 263.77, 595.03, 259.79, 596.62, 255.81, 600.6, 253.03, 603.78, 253.82, 604.18, 257.41, 602.79, 261.39, 600.4, 270.54, 601.0, 277.7, 602.19, 283.67, 601.0, 295.41, 594.43, 293.22]], "area": 294.12825000000134, "iscrowd": 0, "image_id": 165347, "bbox": [594.03, 253.03, 10.15, 42.38], "category_id": 1, "id": 2019936}, {"segmentation": [[533.61, 413.14, 531.78, 423.66, 532.24, 430.52, 529.04, 434.18, 527.66, 434.63, 523.55, 418.63, 524.92, 412.68, 522.17, 411.77, 523.55, 400.79, 526.75, 395.3, 532.69, 396.22, 532.69, 404.45, 534.52, 409.48]], "area": 314.1515500000017, "iscrowd": 0, "image_id": 307462, "bbox": [522.17, 395.3, 12.35, 39.33], "category_id": 1, "id": 2020900}, {"segmentation": [[480.98, 132.53, 482.14, 125.54, 484.47, 118.56, 476.71, 121.28, 477.1, 117.78, 482.14, 115.84, 482.53, 111.96, 486.02, 110.8, 486.8, 113.51, 486.02, 113.9, 487.58, 121.66, 486.02, 130.98, 482.92, 131.75]], "area": 106.16029999999972, "iscrowd": 0, "image_id": 311522, "bbox": [476.71, 110.8, 10.87, 21.73], "category_id": 1, "id": 2021433}, {"segmentation": [[460.19, 79.42, 459.24, 84.17, 464.57, 90.07, 466.28, 98.06, 462.66, 106.62, 463.05, 123.37, 463.05, 126.22, 462.28, 133.07, 458.29, 132.69, 455.63, 111.0, 444.4, 103.58, 444.21, 93.11, 447.63, 86.84, 450.49, 84.55, 450.68, 77.32, 452.77, 75.61, 456.39, 75.23, 459.62, 76.37]], "area": 665.5588000000002, "iscrowd": 0, "image_id": 522150, "bbox": [444.21, 75.23, 22.07, 57.84], "category_id": 1, "id": 2021707}, {"segmentation": [[118.67, 145.51, 130.51, 144.35, 135.85, 147.37, 137.71, 148.99, 140.5, 146.44, 143.98, 137.61, 143.52, 130.88, 137.02, 127.39, 126.1, 122.98, 118.67, 126.46, 114.25, 131.8, 114.95, 135.52, 112.63, 140.17, 117.04, 141.33]], "area": 539.5193499999999, "iscrowd": 0, "image_id": 446331, "bbox": [112.63, 122.98, 31.35, 26.01], "category_id": 1, "id": 2022124}, {"segmentation": [[69.82, 260.41, 69.82, 258.68, 69.33, 256.95, 69.33, 255.22, 66.62, 254.48, 66.62, 256.46, 66.12, 258.68, 66.12, 258.92]], "area": 15.002650000000056, "iscrowd": 0, "image_id": 548253, "bbox": [66.12, 254.48, 3.7, 5.93], "category_id": 1, "id": 2022384}, {"segmentation": [[387.71, 200.96, 377.3, 187.32, 371.2, 185.88, 368.33, 170.09, 374.43, 171.52, 381.97, 175.47, 392.02, 183.01, 395.61, 170.8, 400.63, 161.83, 398.84, 157.52, 392.74, 159.32, 388.07, 153.93, 384.12, 151.06, 384.12, 147.47, 384.84, 141.37, 382.33, 135.27, 383.04, 131.68, 390.22, 124.14, 393.81, 121.27, 401.71, 121.63, 406.38, 125.57, 409.25, 130.6, 410.33, 143.16, 411.4, 146.75, 412.48, 149.27, 412.48, 152.5, 412.4, 193.84, 394.19, 195.36]], "area": 1898.7047500000003, "iscrowd": 0, "image_id": 130624, "bbox": [368.33, 121.27, 44.15, 79.69], "category_id": 1, "id": 2022512}, {"segmentation": [[411.54, 207.04, 410.76, 205.39, 409.69, 205.29, 409.01, 206.46, 408.91, 207.62, 407.65, 208.69, 406.78, 210.15, 406.1, 210.93, 405.42, 211.61, 405.81, 212.68, 406.1, 213.26, 405.03, 215.3, 405.13, 215.98, 405.42, 216.17, 406.19, 216.17, 406.58, 216.46, 408.14, 217.05, 409.3, 217.05, 410.27, 216.46, 411.05, 215.1, 411.05, 213.16, 412.02, 212.0, 412.8, 211.32, 412.61, 209.96, 411.73, 208.6, 411.63, 207.72]], "area": 53.80150000000013, "iscrowd": 0, "image_id": 425540, "bbox": [405.03, 205.29, 7.77, 11.76], "category_id": 1, "id": 2022517}, {"segmentation": [[605.42, 519.44, 606.65, 518.04, 608.12, 517.55, 610.34, 517.55, 612.8, 519.93, 612.22, 524.77, 610.5, 525.67, 607.96, 525.5, 605.17, 524.6, 605.91, 522.55, 606.24, 521.98]], "area": 49.13580000000034, "iscrowd": 0, "image_id": 181149, "bbox": [605.17, 517.55, 7.63, 8.12], "category_id": 1, "id": 2022895}, {"segmentation": [[238.67, 203.44, 236.23, 206.64, 232.12, 211.65, 232.12, 214.22, 234.56, 218.32, 234.17, 222.3, 237.64, 225.51, 244.06, 224.87, 243.42, 217.94, 241.49, 214.47, 240.85, 208.44, 240.72, 203.44]], "area": 166.43425000000005, "iscrowd": 0, "image_id": 476575, "bbox": [232.12, 203.44, 11.94, 22.07], "category_id": 1, "id": 2023472}, {"segmentation": [[96.8, 157.5, 97.1, 159.61, 95.44, 161.72, 92.58, 163.52, 89.42, 166.54, 88.36, 176.48, 87.61, 181.0, 88.51, 184.01, 89.72, 188.23, 90.47, 192.14, 93.94, 201.33, 94.69, 202.08, 96.05, 204.34, 96.2, 208.86, 96.2, 211.12, 95.74, 213.23, 97.1, 215.34, 97.55, 218.35, 98.3, 219.71, 101.17, 219.56, 102.52, 219.1, 102.67, 217.75, 100.71, 215.94, 101.17, 212.02, 102.52, 209.61, 105.69, 205.55, 107.49, 202.23, 109.15, 200.28, 109.9, 197.11, 107.94, 189.73, 107.04, 185.67, 105.99, 182.95, 107.94, 185.06, 108.55, 188.83, 109.3, 191.84, 110.81, 190.79, 112.01, 189.28, 111.11, 187.17, 108.7, 183.56, 108.4, 178.44, 106.59, 164.28, 104.33, 163.22, 102.07, 162.77, 103.73, 160.51, 104.33, 159.31, 104.93, 156.29, 103.43, 154.94, 102.07, 153.58, 98.3, 154.04, 97.1, 154.94]], "area": 908.4073500000002, "iscrowd": 0, "image_id": 483948, "bbox": [87.61, 153.58, 24.4, 66.13], "category_id": 1, "id": 2023896}, {"segmentation": [[290.49, 172.03, 292.54, 170.08, 291.82, 167.82, 290.49, 165.77, 291.31, 162.8, 295.1, 160.75, 299.1, 161.36, 301.56, 163.21, 300.74, 166.28, 301.66, 169.87, 302.79, 170.8, 307.1, 171.0, 307.82, 173.67, 305.05, 174.28, 304.84, 175.31, 287.82, 175.21, 288.13, 173.87]], "area": 168.13320000000002, "iscrowd": 0, "image_id": 548253, "bbox": [287.82, 160.75, 20.0, 14.56], "category_id": 1, "id": 2024167}, {"segmentation": [[483.07, 165.4, 483.26, 161.0, 487.09, 159.66, 490.53, 158.7, 491.49, 161.19, 491.68, 166.55, 490.34, 169.23, 491.49, 171.72, 497.04, 174.78, 485.94, 175.54, 483.83, 169.61, 480.2, 167.12]], "area": 132.46325000000022, "iscrowd": 0, "image_id": 347340, "bbox": [480.2, 158.7, 16.84, 16.84], "category_id": 1, "id": 2024202}, {"segmentation": [[291.72, 161.69, 291.59, 158.91, 290.53, 157.32, 293.44, 154.8, 292.52, 153.48, 288.68, 152.95, 285.77, 151.76, 282.19, 151.09, 277.56, 152.68, 275.97, 154.93, 275.7, 159.43, 278.09, 161.95, 280.87, 163.67]], "area": 161.60754999999986, "iscrowd": 0, "image_id": 377226, "bbox": [275.7, 151.09, 17.74, 12.58], "category_id": 1, "id": 2024311}, {"segmentation": [[456.21, 392.28, 460.92, 388.33, 462.42, 385.51, 461.86, 382.3, 464.3, 380.23, 465.62, 380.05, 467.5, 378.73, 468.82, 374.77, 470.89, 374.4, 473.91, 372.7, 473.91, 369.69, 474.47, 365.17, 479.37, 365.36, 481.81, 369.13, 481.81, 373.27, 484.83, 377.41, 486.14, 383.06, 483.32, 385.88, 475.79, 385.88, 469.95, 386.82, 466.19, 388.52, 462.04, 392.1, 458.47, 393.98, 456.58, 394.54]], "area": 344.3093499999998, "iscrowd": 0, "image_id": 448061, "bbox": [456.21, 365.17, 29.93, 29.37], "category_id": 1, "id": 2024458}, {"segmentation": [[525.51, 445.94, 530.09, 438.21, 531.09, 432.49, 535.82, 433.06, 536.1, 438.78, 539.68, 442.79, 541.54, 445.22, 539.39, 451.66, 540.11, 457.39, 541.54, 466.4, 539.11, 470.41, 538.39, 478.85, 534.82, 476.85, 534.1, 469.27, 530.81, 469.55, 530.09, 457.82, 527.95, 453.52, 526.52, 447.8]], "area": 418.9955499999992, "iscrowd": 0, "image_id": 307462, "bbox": [525.51, 432.49, 16.03, 46.36], "category_id": 1, "id": 2024574}, {"segmentation": [[624.4, 518.64, 623.86, 513.97, 623.5, 513.25, 622.24, 511.81, 620.99, 512.35, 620.63, 513.61, 621.16, 514.69, 620.63, 517.56, 622.24, 518.1, 624.22, 518.64]], "area": 18.122450000000008, "iscrowd": 0, "image_id": 181149, "bbox": [620.63, 511.81, 3.77, 6.83], "category_id": 1, "id": 2025668}, {"segmentation": [[405.9, 305.45, 404.92, 312.78, 403.46, 312.78, 402.81, 310.99, 402.64, 304.63], [401.5, 298.12, 400.36, 294.69, 401.34, 292.74, 401.01, 287.69, 403.46, 287.03, 405.41, 289.48, 406.06, 291.76, 406.72, 294.37, 401.83, 300.56]], "area": 70.97690000000026, "iscrowd": 0, "image_id": 217636, "bbox": [400.36, 287.03, 6.36, 25.75], "category_id": 1, "id": 2026003}, {"segmentation": [[138.36, 87.77, 138.36, 87.77, 136.65, 88.4, 136.49, 92.14, 135.09, 93.07, 134.62, 86.06, 131.66, 84.34, 133.69, 81.23, 135.87, 80.76, 138.21, 83.41]], "area": 39.463050000000074, "iscrowd": 0, "image_id": 517261, "bbox": [131.66, 80.76, 6.7, 12.31], "category_id": 1, "id": 2026598}, {"segmentation": [[250.2, 505.71, 248.1, 507.81, 247.19, 505.97, 246.14, 505.71, 245.35, 505.71, 244.04, 506.89, 246.66, 509.12, 248.63, 509.64, 249.41, 510.17, 250.2, 512.0, 250.2, 512.92, 251.38, 515.8, 251.51, 516.85, 251.51, 524.06, 251.64, 527.73, 255.84, 528.0, 256.36, 523.15, 257.67, 516.07, 258.98, 512.13, 259.77, 510.56, 258.98, 506.23, 256.62, 503.74, 256.62, 501.91, 255.44, 499.68, 253.87, 499.94, 252.69, 500.86, 252.43, 503.09, 250.99, 504.27]], "area": 193.1977500000005, "iscrowd": 0, "image_id": 358100, "bbox": [244.04, 499.68, 15.73, 28.32], "category_id": 1, "id": 2026899}, {"segmentation": [[276.56, 370.68, 276.12, 377.29, 279.44, 379.13, 283.14, 378.76, 283.14, 373.21, 282.03, 367.66, 287.58, 361.74, 288.32, 338.79, 289.43, 336.21, 289.43, 328.45, 289.43, 319.95, 291.28, 329.56, 292.02, 331.77, 295.34, 325.86, 294.97, 315.15, 288.32, 308.13, 280.57, 304.44, 282.41, 298.53, 282.41, 295.94, 277.61, 295.57, 274.66, 298.16, 275.4, 302.96, 273.92, 307.03, 263.21, 315.15, 265.79, 320.32, 270.23, 325.12, 269.86, 336.57, 272.81, 347.66, 273.18, 355.41, 274.66, 365.02, 276.5, 371.3]], "area": 1313.3007999999995, "iscrowd": 0, "image_id": 450281, "bbox": [263.21, 295.57, 32.13, 83.56], "category_id": 1, "id": 2028445}, {"segmentation": [[246.49, 542.05, 246.77, 536.77, 245.94, 532.32, 243.44, 529.55, 242.88, 526.49, 234.27, 518.99, 234.27, 523.71, 234.27, 528.99, 234.27, 530.94]], "area": 139.5112499999998, "iscrowd": 0, "image_id": 358100, "bbox": [234.27, 518.99, 12.5, 23.06], "category_id": 1, "id": 2028576}, {"segmentation": [[138.81, 264.7, 141.35, 261.03, 142.75, 259.62, 143.46, 258.36, 142.75, 256.1, 142.05, 254.27, 142.19, 252.16, 143.46, 250.61, 144.45, 250.04, 147.12, 250.04, 148.11, 250.89, 148.53, 252.72, 149.24, 254.69, 149.24, 255.82, 148.95, 258.22, 148.81, 259.34, 148.81, 261.74, 149.1, 263.15, 149.1, 265.4, 149.1, 267.66, 148.53, 275.69, 148.81, 281.75, 148.81, 283.16, 147.55, 284.57, 146.42, 282.31, 146.28, 279.21, 142.61, 276.67, 141.35, 275.69, 139.23, 275.41, 140.36, 273.15, 141.2, 271.6, 142.33, 270.62, 142.61, 269.91, 141.77, 268.78, 140.22, 268.22, 139.8, 267.8, 138.95, 266.25, 138.95, 264.56]], "area": 220.4349500000001, "iscrowd": 0, "image_id": 566501, "bbox": [138.81, 250.04, 10.43, 34.53], "category_id": 1, "id": 2029182}, {"segmentation": [[254.98, 245.49, 255.58, 247.69, 256.58, 247.69, 257.78, 246.09, 259.38, 243.49, 263.98, 241.3, 265.98, 240.3, 264.18, 235.9, 260.78, 229.7, 260.78, 220.91, 259.58, 219.11, 255.58, 218.51, 257.78, 224.31, 255.38, 225.11, 248.39, 231.5, 251.59, 234.1, 259.78, 232.7, 260.58, 235.9, 260.18, 238.9, 255.78, 241.7]], "area": 169.57704999999973, "iscrowd": 0, "image_id": 111759, "bbox": [248.39, 218.51, 17.59, 29.18], "category_id": 1, "id": 2029475}, {"segmentation": [[31.27, 168.37, 30.21, 168.37, 26.28, 167.61, 24.62, 166.25, 25.68, 162.93, 25.68, 160.52, 24.62, 159.16, 23.56, 158.25, 21.45, 158.1, 18.73, 158.85, 14.65, 155.53, 14.35, 154.02, 18.13, 149.79, 19.64, 148.89, 21.6, 147.53, 21.15, 146.17, 20.39, 144.51, 19.64, 142.85, 19.49, 140.88, 20.24, 139.52, 21.0, 138.77, 22.81, 138.77, 23.71, 139.22, 24.77, 139.98, 24.77, 140.88, 25.07, 142.7, 25.68, 144.06, 24.92, 145.41, 24.92, 146.47, 27.04, 146.47, 28.85, 146.47, 36.85, 151.76, 31.42, 159.46, 29.3, 160.36, 30.66, 164.44, 31.57, 168.37]], "area": 285.4199500000001, "iscrowd": 0, "image_id": 483948, "bbox": [14.35, 138.77, 22.5, 29.6], "category_id": 1, "id": 2029477}, {"segmentation": [[202.8, 34.97, 205.07, 33.94, 205.18, 32.5, 204.76, 30.03, 205.9, 28.79, 208.16, 29.51, 208.58, 32.29, 210.64, 33.12, 211.98, 34.05, 212.29, 35.9, 209.71, 36.0, 209.2, 34.36, 208.37, 34.25, 208.16, 35.59, 206.41, 36.0, 206.21, 34.77, 203.32, 34.77]], "area": 30.496500000000008, "iscrowd": 0, "image_id": 277472, "bbox": [202.8, 28.79, 9.49, 7.21], "category_id": 1, "id": 2029898}, {"segmentation": [[3.42, 187.86, 5.12, 184.09, 6.35, 184.09, 7.57, 184.84, 7.86, 185.88, 7.38, 188.99, 8.42, 190.41, 8.42, 193.05, 9.08, 195.98, 9.37, 196.07, 9.46, 197.3, 7.29, 197.2, 3.23, 194.18, 3.23, 191.54, 3.7, 187.48]], "area": 54.37389999999997, "iscrowd": 0, "image_id": 338086, "bbox": [3.23, 184.09, 6.23, 13.21], "category_id": 1, "id": 2030036}, {"segmentation": [[0.29, 23.11, 7.47, 26.1, 7.47, 26.25, 9.71, 30.88, 11.65, 34.47, 13.15, 39.4, 16.29, 45.38, 18.08, 48.37, 18.08, 48.52, 17.63, 50.62, 13.45, 53.9, 1.94, 44.19, 0.0, 42.54, 0.0, 22.51]], "area": 306.3221, "iscrowd": 0, "image_id": 382979, "bbox": [0.0, 22.51, 18.08, 31.39], "category_id": 1, "id": 2030732}, {"segmentation": [[571.81, 404.33, 567.15, 420.87, 569.27, 427.65, 572.66, 430.19, 576.47, 414.93, 584.1, 431.47, 581.14, 406.03, 572.66, 404.33, 570.54, 372.11, 563.75, 378.9, 569.27, 390.77, 570.54, 400.09]], "area": 358.88385000000017, "iscrowd": 0, "image_id": 567318, "bbox": [563.75, 372.11, 20.35, 59.36], "category_id": 1, "id": 2031870}, {"segmentation": [[558.29, 267.11, 560.26, 265.39, 565.66, 265.88, 566.89, 271.28, 572.78, 277.91, 572.78, 339.07, 567.38, 339.07, 558.29, 339.07, 559.03, 332.44, 558.29, 297.81, 553.38, 301.49, 554.36, 284.54, 556.57, 278.9, 558.78, 274.23, 557.06, 268.33]], "area": 1078.8215999999993, "iscrowd": 0, "image_id": 328487, "bbox": [553.38, 265.39, 19.4, 73.68], "category_id": 1, "id": 2032266}, {"segmentation": [[345.09, 175.21, 346.77, 170.3, 346.65, 165.27, 349.0, 165.27, 350.79, 169.18, 353.14, 168.95, 357.16, 168.95, 360.4, 171.86, 361.52, 175.55, 362.07, 177.11]], "area": 113.26030000000036, "iscrowd": 0, "image_id": 548253, "bbox": [345.09, 165.27, 16.98, 11.84], "category_id": 1, "id": 2032634}, {"segmentation": [[131.27, 232.77, 132.31, 230.9, 131.48, 228.83, 130.65, 226.75, 130.65, 223.84, 130.65, 220.31, 132.31, 216.98, 134.39, 215.32, 136.67, 215.32, 140.2, 215.74, 141.24, 218.02, 143.74, 220.72, 143.74, 223.42, 143.74, 225.29, 143.11, 226.33, 141.87, 227.58, 140.0, 228.41, 140.62, 230.9, 143.53, 234.85]], "area": 196.96525000000014, "iscrowd": 0, "image_id": 111759, "bbox": [130.65, 215.32, 13.09, 19.53], "category_id": 1, "id": 2033197}, {"segmentation": [[61.04, 264.73, 63.06, 260.69, 64.7, 258.92, 66.09, 270.91]], "area": 27.504750000000076, "iscrowd": 0, "image_id": 111759, "bbox": [61.04, 258.92, 5.05, 11.99], "category_id": 1, "id": 2033343}, {"segmentation": [[238.99, 30.07, 248.82, 34.2, 253.89, 30.07, 255.79, 19.29, 268.48, 10.41, 271.33, 12.95, 259.28, 19.61, 259.6, 28.17, 258.33, 32.29, 260.86, 37.05, 257.38, 37.37, 256.43, 34.51, 246.28, 36.41, 239.62, 31.34], [273.91, 64.42, 287.37, 74.03, 295.06, 84.13, 295.54, 91.34, 283.04, 100.47, 268.14, 76.44, 267.66, 64.9, 272.95, 64.9]], "area": 723.5851500000001, "iscrowd": 0, "image_id": 151322, "bbox": [238.99, 10.41, 56.55, 90.06], "category_id": 2, "id": 2035869}, {"segmentation": [[549.66, 274.52, 561.97, 273.1, 574.05, 272.39, 571.45, 261.73, 567.89, 253.44, 554.63, 251.78, 550.37, 251.78, 541.84, 252.02, 543.97, 257.23, 548.24, 260.31, 549.89, 266.7, 550.13, 272.39]], "area": 501.3530500000001, "iscrowd": 0, "image_id": 241076, "bbox": [541.84, 251.78, 32.21, 22.74], "category_id": 3, "id": 2036927}, {"segmentation": [[561.83, 261.75, 557.38, 263.55, 551.54, 265.22, 554.18, 267.58, 558.63, 269.94, 563.36, 271.33, 566.97, 271.89, 570.58, 268.42, 570.72, 263.41]], "area": 125.24420000000013, "iscrowd": 0, "image_id": 418505, "bbox": [551.54, 261.75, 19.18, 10.14], "category_id": 3, "id": 2037398}, {"segmentation": [[50.54, 414.81, 55.11, 413.78, 63.37, 413.04, 69.27, 412.9, 67.94, 432.8, 66.02, 432.36, 65.29, 426.76, 62.93, 424.1, 58.21, 422.77, 52.75, 422.33, 51.43, 422.19], [70.45, 413.34, 73.99, 414.37, 76.2, 415.7, 78.12, 418.65, 80.33, 420.86, 82.39, 421.45, 83.72, 426.61, 83.28, 429.41, 81.21, 430.74, 80.62, 432.36, 79.29, 434.57, 76.79, 435.46, 75.02, 434.28, 74.43, 432.51, 70.89, 432.51, 70.15, 432.8]], "area": 406.04869999999994, "iscrowd": 0, "image_id": 14027, "bbox": [50.54, 412.9, 33.18, 22.56], "category_id": 3, "id": 2037654}, {"segmentation": [[231.3, 238.89, 234.18, 237.4, 233.78, 233.73, 230.71, 230.46, 228.33, 228.58, 222.67, 229.07, 218.91, 230.56, 216.03, 234.33, 216.33, 238.0, 222.08, 238.39, 225.55, 235.22, 230.51, 235.72]], "area": 121.73309999999998, "iscrowd": 0, "image_id": 198001, "bbox": [216.03, 228.58, 18.15, 10.31], "category_id": 3, "id": 2038547}, {"segmentation": [[119.95, 220.88, 115.8, 223.8, 114.61, 224.69, 114.5, 228.81, 120.45, 233.79, 120.14, 235.83, 121.16, 237.16, 121.32, 239.75, 121.86, 241.86, 122.41, 245.07, 124.84, 245.23, 124.29, 237.48, 124.61, 237.32, 130.95, 237.08, 130.64, 222.67, 131.34, 221.18, 131.34, 219.85, 130.25, 219.69, 122.8, 219.93]], "area": 253.8404499999998, "iscrowd": 0, "image_id": 165347, "bbox": [114.5, 219.69, 16.84, 25.54], "category_id": 3, "id": 2039067}, {"segmentation": [[415.49, 233.77, 448.24, 253.52, 451.13, 268.94, 454.03, 276.16, 459.32, 285.32, 458.36, 289.65, 421.27, 306.03, 397.18, 332.05, 391.88, 344.57, 365.86, 344.09, 372.13, 330.12, 372.61, 321.93, 386.1, 313.26, 383.69, 300.73, 392.36, 280.98]], "area": 4461.780799999997, "iscrowd": 0, "image_id": 571516, "bbox": [365.86, 233.77, 93.46, 110.8], "category_id": 3, "id": 2039378}, {"segmentation": [[77.6, 317.51, 88.48, 317.77, 90.19, 319.09, 92.55, 317.91, 93.6, 317.12, 96.48, 317.12, 94.91, 311.74, 83.5, 312.01, 82.98, 309.78, 77.21, 309.91, 73.26, 311.47, 60.3, 312.16, 61.0, 315.75, 64.82, 317.37, 65.97, 318.88, 77.32, 318.99, 77.55, 317.83]], "area": 232.72854999999947, "iscrowd": 0, "image_id": 536781, "bbox": [60.3, 309.78, 36.18, 9.31], "category_id": 3, "id": 2039573}, {"segmentation": [[302.42, 374.37, 295.33, 368.04, 295.87, 364.71, 301.88, 364.71, 306.82, 369.97, 306.07, 374.59]], "area": 73.49625000000012, "iscrowd": 0, "image_id": 309536, "bbox": [295.33, 364.71, 11.49, 9.88], "category_id": 3, "id": 2039775}, {"segmentation": [[356.82, 90.73, 353.77, 91.56, 350.72, 90.17, 350.72, 87.81, 350.86, 82.41, 352.38, 78.8, 353.91, 76.45, 355.02, 73.4, 356.68, 70.48, 360.7, 69.24, 364.58, 68.82, 368.88, 68.68, 374.56, 69.51, 378.86, 70.35, 383.99, 70.62, 381.77, 71.46, 374.29, 71.73, 369.57, 72.01, 365.27, 72.01, 363.33, 72.7, 362.64, 74.23, 362.5, 76.58, 360.84, 78.53, 360.42, 79.63, 358.62, 80.61, 358.2, 83.1, 358.48, 85.46, 358.48, 87.81, 356.4, 89.2, 354.46, 90.45]], "area": 205.53199999999973, "iscrowd": 0, "image_id": 397599, "bbox": [350.72, 68.68, 33.27, 22.88], "category_id": 3, "id": 2040776}, {"segmentation": [[189.37, 327.85, 189.96, 324.67, 191.96, 321.48, 192.15, 312.92, 190.76, 312.12, 186.38, 310.33, 183.79, 306.54, 177.22, 304.35, 173.43, 304.55, 171.84, 305.55, 171.84, 307.34, 175.42, 309.33, 178.81, 313.51, 178.61, 321.88, 179.41, 323.07, 180.2, 325.07, 185.38, 325.07, 184.39, 327.65, 183.99, 329.25, 189.57, 328.45], [165.66, 304.95, 162.28, 304.35, 159.89, 304.55, 156.3, 304.75, 148.73, 310.33, 146.94, 312.52, 144.55, 313.31, 142.96, 314.91, 140.97, 314.91, 138.77, 324.67, 140.57, 325.86, 145.35, 327.06, 147.54, 328.25, 148.34, 326.26, 154.71, 326.66, 157.3, 326.86, 157.3, 328.85, 161.08, 330.24, 165.07, 329.65, 165.46, 326.26, 164.47, 323.07, 165.66, 319.09, 166.66, 315.9, 167.26, 312.12, 168.65, 310.13, 169.45, 309.33, 166.86, 309.53, 166.26, 307.14, 166.06, 304.75]], "area": 769.9990499999997, "iscrowd": 0, "image_id": 482024, "bbox": [138.77, 304.35, 53.38, 25.89], "category_id": 3, "id": 2041610}, {"segmentation": [[528.98, 266.0, 530.08, 262.8, 532.18, 261.33, 535.29, 260.51, 544.43, 259.41, 549.55, 261.7, 550.92, 263.35, 551.66, 265.54, 552.75, 268.83, 554.03, 269.84, 554.4, 271.48, 550.28, 271.48, 530.62, 266.64]], "area": 190.79509999999974, "iscrowd": 0, "image_id": 418505, "bbox": [528.98, 259.41, 25.42, 12.07], "category_id": 3, "id": 2041730}, {"segmentation": [[10.35, 127.22, 17.4, 107.16, 15.23, 97.4, 34.21, 92.52, 40.18, 92.52, 36.38, 69.2, 26.62, 39.92, 37.47, 30.7, 40.18, 29.62, 16.86, 2.5, 0.59, 1.96, 1.68, 44.26, 7.1, 49.14, 8.73, 59.44, 7.64, 69.2, 3.84, 75.71, 0.05, 79.5, 3.84, 114.75, 9.81, 122.34]], "area": 3043.6337499999995, "iscrowd": 0, "image_id": 45949, "bbox": [0.05, 1.96, 40.13, 125.26], "category_id": 3, "id": 2042123}, {"segmentation": [[568.84, 271.33, 567.75, 252.89, 580.09, 255.39, 581.66, 272.42, 576.03, 272.89, 574.78, 271.02]], "area": 221.05234999999982, "iscrowd": 0, "image_id": 241076, "bbox": [567.75, 252.89, 13.91, 20.0], "category_id": 3, "id": 2042268}, {"segmentation": [[133.67, 419.36, 124.43, 419.76, 119.71, 418.97, 119.71, 417.3, 120.79, 414.84, 124.33, 412.09, 132.0, 411.7, 134.65, 417.4, 134.75, 419.07]], "area": 96.2520500000004, "iscrowd": 0, "image_id": 14027, "bbox": [119.71, 411.7, 15.04, 8.06], "category_id": 3, "id": 2042347}, {"segmentation": [[122.35, 413.66, 120.02, 411.75, 114.61, 411.83, 114.52, 419.15, 119.77, 418.99, 120.6, 415.16]], "area": 44.72660000000001, "iscrowd": 0, "image_id": 14027, "bbox": [114.52, 411.75, 7.83, 7.4], "category_id": 3, "id": 2042997}, {"segmentation": [[37.48, 150.28, 37.94, 157.16, 44.81, 156.7, 45.73, 145.7, 72.31, 147.08, 71.85, 161.74, 95.69, 159.45, 76.44, 129.66, 64.98, 126.91, 58.56, 132.41, 43.44, 136.08], [80.94, 120.0, 83.88, 125.89, 104.02, 155.36, 108.44, 153.4, 91.74, 124.17]], "area": 1207.92035, "iscrowd": 0, "image_id": 530876, "bbox": [37.48, 120.0, 70.96, 41.74], "category_id": 3, "id": 2043285}, {"segmentation": [[1.49, 130.7, 0.0, 130.26, 0.0, 114.63, 0.0, 103.62, 0.0, 97.46, 1.93, 95.7, 7.43, 95.48, 15.36, 97.68, 22.18, 99.66, 25.7, 102.52, 29.89, 105.16, 32.09, 107.36, 33.63, 113.09, 34.29, 117.49, 33.41, 121.89, 29.23, 123.21, 25.26, 122.77, 16.24, 127.84, 5.67, 129.6]], "area": 913.6306999999999, "iscrowd": 0, "image_id": 203989, "bbox": [0.0, 95.48, 34.29, 35.22], "category_id": 3, "id": 2044083}, {"segmentation": [[73.09, 417.03, 75.19, 415.49, 80.65, 415.21, 82.75, 416.89, 85.27, 417.03, 85.41, 420.67, 74.49, 420.25, 73.51, 416.75, 73.51, 416.75]], "area": 51.60680000000021, "iscrowd": 0, "image_id": 379743, "bbox": [73.09, 415.21, 12.32, 5.46], "category_id": 3, "id": 2044243}, {"segmentation": [[27.75, 225.76, 27.53, 225.55, 26.01, 216.85, 31.01, 210.11, 35.79, 209.9, 36.44, 211.64, 34.49, 216.42, 32.1, 219.9, 32.31, 227.07, 29.27, 227.72]], "area": 105.39834999999988, "iscrowd": 0, "image_id": 165347, "bbox": [26.01, 209.9, 10.43, 17.82], "category_id": 3, "id": 2044286}, {"segmentation": [[480.0, 296.13, 474.15, 296.49, 464.9, 303.57, 464.45, 306.74, 466.72, 309.91, 473.79, 310.37, 477.51, 312.72, 479.68, 312.82]], "area": 181.66710000000043, "iscrowd": 0, "image_id": 449573, "bbox": [464.45, 296.13, 15.55, 16.69], "category_id": 3, "id": 2044576}, {"segmentation": [[33.47, 232.35, 31.93, 221.19, 31.93, 220.23, 35.97, 209.46, 37.32, 208.69, 55.4, 207.73, 57.71, 213.11, 58.67, 220.23, 58.67, 225.62, 59.06, 232.73, 57.52, 235.04, 54.63, 234.27, 53.48, 233.31, 45.97, 232.73, 40.2, 233.31, 35.39, 234.66]], "area": 626.6097, "iscrowd": 0, "image_id": 165347, "bbox": [31.93, 207.73, 27.13, 27.31], "category_id": 3, "id": 2044653}, {"segmentation": [[60.29, 105.57, 102.67, 96.23, 90.99, 84.88, 77.64, 74.21, 59.96, 77.88, 36.6, 89.56, 19.92, 90.89, 19.92, 97.9, 34.26, 110.91]], "area": 1666.06095, "iscrowd": 0, "image_id": 203989, "bbox": [19.92, 74.21, 82.75, 36.7], "category_id": 3, "id": 2044665}, {"segmentation": [[215.43, 76.08, 226.46, 74.74, 229.05, 82.8, 215.52, 83.18, 214.27, 80.21, 213.22, 76.66]], "area": 102.7659000000001, "iscrowd": 0, "image_id": 397599, "bbox": [213.22, 74.74, 15.83, 8.44], "category_id": 3, "id": 2044811}, {"segmentation": [[512.98, 144.93, 501.24, 146.61, 495.92, 146.61, 490.05, 140.18, 493.41, 115.84, 510.75, 115.56, 517.18, 114.17, 530.61, 113.61, 534.24, 119.2, 538.16, 125.35, 540.67, 130.67, 542.63, 144.93, 530.33, 144.37]], "area": 1424.1686499999996, "iscrowd": 0, "image_id": 530876, "bbox": [490.05, 113.61, 52.58, 33.0], "category_id": 3, "id": 2045180}, {"segmentation": [[35.87, 194.26, 35.75, 196.69, 33.69, 197.5, 32.81, 197.94, 33.5, 199.13, 33.13, 199.75, 32.63, 200.13, 32.63, 200.75, 32.63, 201.25, 32.63, 201.69, 33.0, 202.0, 33.44, 202.12, 34.0, 202.37, 34.19, 202.87, 34.5, 203.25, 34.94, 203.31, 35.31, 203.31, 36.31, 203.31, 36.5, 203.31, 37.43, 203.31, 37.56, 203.31, 37.68, 203.31, 39.24, 203.37, 40.62, 203.75, 41.87, 203.75, 43.05, 203.75, 43.36, 203.75, 44.05, 204.18, 44.05, 204.18, 44.43, 204.18, 45.11, 203.87, 46.24, 203.5, 46.73, 202.94, 46.86, 201.56, 46.8, 200.75, 46.49, 200.56, 46.3, 199.94, 45.61, 194.01, 44.61, 192.89, 36.0, 192.89, 36.0, 194.32]], "area": 126.33590000000017, "iscrowd": 0, "image_id": 165347, "bbox": [32.63, 192.89, 14.23, 11.29], "category_id": 3, "id": 2045211}, {"segmentation": [[580.14, 522.7, 582.16, 522.61, 583.39, 522.52, 583.83, 523.14, 584.09, 523.75, 584.97, 524.19, 585.41, 524.63, 585.41, 525.95, 585.23, 527.71, 585.15, 528.94, 585.06, 529.2, 584.53, 529.99, 583.56, 530.17, 583.48, 531.4, 583.48, 532.36, 582.42, 532.54, 581.98, 532.54, 581.72, 530.87, 581.02, 530.25, 579.61, 530.17, 578.91, 529.55, 578.91, 528.41, 578.82, 527.0, 578.82, 526.12, 579.35, 525.25, 579.26, 524.1, 579.52, 523.58, 579.79, 523.31]], "area": 47.913349999999696, "iscrowd": 0, "image_id": 181149, "bbox": [578.82, 522.52, 6.59, 10.02], "category_id": 4, "id": 2048175}, {"segmentation": [[158.65, 386.32, 154.24, 383.18, 135.27, 381.86, 150.27, 386.71, 152.47, 389.79, 138.8, 393.32, 133.51, 401.26, 127.78, 414.49, 126.01, 421.55, 126.01, 424.19, 161.73, 424.63]], "area": 1045.0951999999995, "iscrowd": 0, "image_id": 443604, "bbox": [126.01, 381.86, 35.72, 42.77], "category_id": 4, "id": 2048395}, {"segmentation": [[1.16, 336.95, 33.26, 332.12, 47.75, 331.03, 51.96, 331.34, 51.65, 328.85, 50.87, 327.44, 49.0, 326.82, 49.0, 325.57, 49.0, 324.17, 47.75, 324.02, 46.82, 324.17, 45.73, 325.11, 44.64, 325.89, 43.39, 326.98, 42.77, 326.98, 42.45, 323.39, 41.99, 319.18, 41.52, 316.85, 47.13, 318.56, 52.58, 325.57, 57.88, 323.86, 70.35, 322.61, 73.94, 325.42, 80.95, 326.82, 80.95, 329.63, 77.68, 331.18, 68.48, 335.7, 57.1, 333.52, 19.86, 337.57, 7.86, 339.29, 2.56, 336.95]], "area": 497.83159999999964, "iscrowd": 0, "image_id": 64908, "bbox": [1.16, 316.85, 79.79, 22.44], "category_id": 5, "id": 2049154}, {"segmentation": [[65.04, 153.77, 74.82, 153.35, 76.52, 152.78, 81.63, 154.34, 82.9, 155.47, 83.47, 157.03, 80.35, 157.6, 71.28, 157.6, 68.16, 157.6, 63.34, 156.46, 62.21, 156.46, 61.64, 155.75, 61.64, 152.64, 61.64, 150.79, 62.77, 151.36, 64.76, 153.06]], "area": 85.5514499999999, "iscrowd": 0, "image_id": 154727, "bbox": [61.64, 150.79, 21.83, 6.81], "category_id": 5, "id": 2049394}, {"segmentation": [[640.0, 319.13, 593.57, 316.17, 587.23, 314.48, 588.08, 310.25, 640.0, 309.4]], "area": 396.0257500000007, "iscrowd": 0, "image_id": 64908, "bbox": [587.23, 309.4, 52.77, 9.73], "category_id": 5, "id": 2049406}, {"segmentation": [[394.0, 163.21, 397.42, 163.44, 397.27, 164.05, 400.46, 163.97, 400.46, 163.13, 404.33, 162.83, 407.06, 161.92, 408.81, 161.31, 413.98, 161.01, 414.96, 156.91, 412.68, 157.13, 410.03, 159.41, 402.28, 159.79, 401.14, 158.42, 400.0, 158.12, 396.2, 158.12, 394.76, 158.65, 394.53, 159.56, 391.04, 160.25, 391.34, 161.23, 391.87, 162.22, 393.24, 162.75]], "area": 83.70615000000005, "iscrowd": 0, "image_id": 154727, "bbox": [391.04, 156.91, 23.92, 7.14], "category_id": 5, "id": 2049415}, {"segmentation": [[327.17, 13.54, 280.58, 8.13, 240.5, 9.21, 237.25, 9.21, 240.5, 22.21, 238.33, 34.13, 185.25, 73.13, 185.25, 100.21, 192.83, 296.29, 213.42, 261.63, 219.92, 262.71, 217.75, 223.71, 210.17, 209.63, 202.58, 205.29, 228.58, 197.71, 241.58, 204.21, 253.5, 225.88, 262.17, 244.29, 267.58, 251.88, 273.0, 252.96, 293.58, 260.54, 297.92, 278.96, 294.67, 285.46, 276.25, 296.29, 268.67, 322.29, 268.67, 342.88, 352.08, 345.04, 385.67, 338.54, 419.25, 324.46, 426.83, 314.71, 426.83, 303.88, 433.33, 297.38, 439.83, 316.88, 455.0, 313.63, 473.42, 301.71, 481.0, 285.46, 478.83, 258.38, 492.92, 252.96, 486.42, 76.38, 484.25, 69.88, 442.0, 57.96, 439.83, 50.38, 426.83, 39.54, 395.42, 39.54, 385.67, 31.96, 388.92, 16.79, 387.83, 12.46, 387.83, 1.63, 378.08, 0.54, 378.08, 23.29, 361.83, 21.13, 327.17, 23.29, 327.17, 23.29]], "area": 80527.54125000001, "iscrowd": 0, "image_id": 157923, "bbox": [185.25, 0.54, 307.67, 344.5], "category_id": 7, "id": 2050696}, {"segmentation": [[612.82, 253.38, 613.3, 248.76, 616.28, 248.09, 621.0, 248.09, 637.44, 248.38, 638.02, 255.01, 636.38, 260.78, 610.99, 258.48, 610.99, 255.98, 611.19, 254.53]], "area": 291.1844499999998, "iscrowd": 0, "image_id": 418505, "bbox": [610.99, 248.09, 27.03, 12.69], "category_id": 8, "id": 2051172}, {"segmentation": [[120.32, 239.39, 117.05, 232.19, 111.6, 223.69, 109.2, 216.71, 112.91, 213.23, 104.19, 209.09, 100.48, 202.33, 105.06, 186.2, 110.07, 180.75, 114.87, 179.0, 179.83, 179.66, 200.97, 182.27, 204.46, 207.56, 204.02, 225.87, 201.41, 234.59, 196.61, 227.61, 191.16, 218.89, 181.57, 217.37, 175.03, 217.37, 169.36, 219.98, 162.61, 227.18, 155.63, 237.64, 137.1, 233.28, 141.68, 223.25, 142.33, 216.71, 135.14, 214.32, 131.87, 216.5, 131.43, 219.55, 131.43, 225.22, 132.52, 230.45]], "area": 4570.45265, "iscrowd": 0, "image_id": 111759, "bbox": [100.48, 179.0, 103.98, 60.39], "category_id": 8, "id": 2051384}, {"segmentation": [[539.21, 247.21, 539.57, 241.48, 537.06, 238.62, 537.42, 229.31, 529.9, 229.67, 530.26, 246.5, 534.2, 247.21, 534.2, 250.08, 536.36, 251.14, 540.1, 250.21], [526.23, 229.48, 523.9, 229.32, 521.25, 232.44, 519.53, 240.55, 515.48, 243.35, 515.95, 250.99, 518.6, 250.83, 520.16, 248.49, 525.77, 247.71]], "area": 298.85360000000003, "iscrowd": 0, "image_id": 564803, "bbox": [515.48, 229.31, 24.62, 21.83], "category_id": 8, "id": 2051554}, {"segmentation": [[308.82, 243.34, 307.77, 241.84, 307.02, 237.78, 306.27, 235.82, 305.06, 233.57, 305.06, 231.01, 307.32, 226.05, 312.28, 225.3, 319.49, 225.75, 321.3, 225.9, 322.35, 228.91, 324.6, 229.36, 324.0, 230.71, 323.1, 231.77, 324.45, 233.27, 324.9, 236.73, 324.9, 240.33, 324.3, 242.44, 322.65, 244.39, 321.0, 242.44, 320.24, 241.54, 317.24, 241.84, 314.38, 243.94, 312.73, 243.34, 310.47, 242.59]], "area": 301.45709999999997, "iscrowd": 0, "image_id": 198001, "bbox": [305.06, 225.3, 19.84, 19.09], "category_id": 8, "id": 2051866}, {"segmentation": [[273.97, 330.67, 267.0, 329.88, 266.6, 334.26, 259.63, 332.67, 259.63, 329.08, 253.85, 328.88, 252.46, 332.27, 247.48, 331.87, 245.49, 326.29, 245.49, 318.92, 247.48, 313.74, 253.05, 307.97, 264.21, 301.2, 277.95, 301.59, 292.29, 301.99, 292.89, 307.57, 288.51, 310.56, 286.52, 314.74, 284.13, 314.94, 282.13, 318.52, 281.74, 319.72, 276.96, 322.71, 275.96, 325.69]], "area": 1015.7941999999999, "iscrowd": 0, "image_id": 482024, "bbox": [245.49, 301.2, 47.4, 33.06], "category_id": 8, "id": 2052852}, {"segmentation": [[494.81, 288.02, 495.3, 284.8, 497.53, 282.82, 498.52, 281.83, 499.51, 279.35, 500.75, 277.86, 504.46, 276.13, 505.2, 273.66, 506.69, 270.93, 507.43, 267.71, 508.67, 265.98, 513.62, 265.73, 513.87, 262.76, 517.34, 264.74, 520.55, 270.44, 523.03, 273.16, 524.52, 273.9, 529.22, 277.12, 536.89, 278.11, 540.86, 279.1, 543.83, 286.53, 543.58, 290.24, 539.87, 290.99, 538.38, 291.73, 535.66, 292.72, 529.22, 292.97, 526.5, 292.47, 512.88, 292.72, 504.96, 294.2, 502.48, 292.97, 499.26, 290.49, 492.33, 290.49]], "area": 882.8871000000009, "iscrowd": 0, "image_id": 223121, "bbox": [492.33, 262.76, 51.5, 31.44], "category_id": 8, "id": 2052876}, {"segmentation": [[528.69, 240.24, 533.1, 242.93, 532.91, 266.91, 529.84, 272.67, 505.09, 272.67, 502.21, 239.86]], "area": 941.4019500000009, "iscrowd": 0, "image_id": 241076, "bbox": [502.21, 239.86, 30.89, 32.81], "category_id": 8, "id": 2053255}, {"segmentation": [[261.89, 149.36, 254.41, 151.85, 252.46, 151.13, 250.68, 152.02, 236.27, 153.27, 231.46, 153.27, 231.46, 147.75, 233.6, 145.26, 245.7, 143.66, 251.75, 140.28, 262.42, 140.81]], "area": 285.4522500000003, "iscrowd": 0, "image_id": 501358, "bbox": [231.46, 140.28, 30.96, 12.99], "category_id": 9, "id": 2054548}, {"segmentation": [[415.63, 528.38, 418.07, 525.5, 418.07, 523.34, 419.51, 521.47, 423.11, 520.76, 425.0, 522.63, 425.0, 535.42, 424.4, 538.01, 418.07, 537.73, 414.77, 535.42]], "area": 139.99525000000008, "iscrowd": 0, "image_id": 119093, "bbox": [414.77, 520.76, 10.23, 17.25], "category_id": 9, "id": 2056312}, {"segmentation": [[0.8, 64.2, 7.21, 62.81, 0.1, 60.3, 0.24, 64.2]], "area": 14.07800000000002, "iscrowd": 0, "image_id": 483948, "bbox": [0.1, 60.3, 7.11, 3.9], "category_id": 9, "id": 2056501}, {"segmentation": [[453.93, 0.0, 510.92, 0.43, 509.68, 41.57, 509.19, 66.1, 509.93, 104.01, 511.66, 133.0, 508.19, 160.02, 497.04, 161.25, 477.22, 161.01, 462.6, 157.54, 462.6, 148.62, 460.37, 143.16, 457.64, 137.47, 462.1, 119.13, 460.12, 102.28, 456.65, 102.77, 451.7, 91.37, 454.92, 83.44, 457.4, 79.48, 458.88, 69.82, 452.94, 52.22, 456.16, 44.54, 457.4, 42.31, 452.44, 21.99, 452.44, 9.1, 453.18, 0.0]], "area": 8500.488100000002, "iscrowd": 0, "image_id": 165773, "bbox": [451.7, 0.0, 59.96, 161.25], "category_id": 10, "id": 2056614}, {"segmentation": [[347.03, 124.65, 354.28, 125.46, 359.38, 127.34, 359.65, 139.69, 351.87, 140.23, 349.99, 140.23, 347.03, 134.59, 344.88, 131.63, 345.69, 123.58]], "area": 188.4293499999998, "iscrowd": 0, "image_id": 255604, "bbox": [344.88, 123.58, 14.77, 16.65], "category_id": 10, "id": 2056740}, {"segmentation": [[136.41, 38.5, 131.57, 38.25, 132.33, 32.39, 135.64, 31.12, 135.64, 29.34, 130.55, 28.06, 131.32, 23.48, 136.41, 22.97, 137.17, 20.43, 130.81, 20.17, 131.83, 13.3, 138.95, 13.3]], "area": 128.4438999999998, "iscrowd": 0, "image_id": 522150, "bbox": [130.55, 13.3, 8.4, 25.2], "category_id": 10, "id": 2056805}, {"segmentation": [[474.72, 264.36, 486.6, 264.16, 488.13, 265.28, 488.13, 275.52, 486.7, 276.65, 476.46, 275.83, 474.0, 275.21, 474.21, 264.16]], "area": 165.44149999999956, "iscrowd": 0, "image_id": 482024, "bbox": [474.0, 264.16, 14.13, 12.49], "category_id": 10, "id": 2057338}, {"segmentation": [[326.99, 457.01, 325.39, 459.37, 327.27, 462.2, 330.1, 462.38, 331.89, 459.84, 330.57, 456.82]], "area": 26.08810000000003, "iscrowd": 0, "image_id": 116740, "bbox": [325.39, 456.82, 6.5, 5.56], "category_id": 10, "id": 2057496}, {"segmentation": [[161.54, 253.56, 161.43, 255.74, 163.22, 257.0, 165.17, 255.85, 165.29, 253.94, 163.6, 252.76]], "area": 11.835849999999985, "iscrowd": 0, "image_id": 22224, "bbox": [161.43, 252.76, 3.86, 4.24], "category_id": 10, "id": 2057758}, {"segmentation": [[403.85, 139.91, 405.36, 138.11, 417.71, 137.65, 420.27, 140.22, 420.27, 174.87, 419.22, 176.83, 406.87, 177.28, 405.06, 175.47]], "area": 612.9186999999989, "iscrowd": 0, "image_id": 22224, "bbox": [403.85, 137.65, 16.42, 39.63], "category_id": 10, "id": 2057939}, {"segmentation": [[365.03, 100.31, 366.94, 99.75, 368.28, 99.63, 370.3, 100.19, 371.2, 101.09, 371.53, 103.22, 371.42, 104.45, 370.52, 105.46, 369.74, 105.8, 367.84, 105.91, 365.71, 105.8, 364.47, 104.56, 364.47, 102.88, 364.7, 100.87, 365.48, 100.19]], "area": 37.812199999999876, "iscrowd": 0, "image_id": 172059, "bbox": [364.47, 99.63, 7.06, 6.28], "category_id": 10, "id": 2058173}, {"segmentation": [[128.01, 172.99, 126.24, 221.96, 146.3, 223.14, 148.07, 169.44, 130.37, 167.67, 129.78, 174.76]], "area": 1070.0564500000003, "iscrowd": 0, "image_id": 308350, "bbox": [126.24, 167.67, 21.83, 55.47], "category_id": 10, "id": 2058489}, {"segmentation": [[265.29, 331.94, 264.66, 346.43, 266.38, 347.52, 269.49, 346.75, 272.45, 345.97, 267.94, 342.69, 270.12, 342.38, 271.21, 341.29, 270.58, 339.58, 267.47, 338.64, 270.9, 336.93, 271.36, 333.34, 267.94, 331.63, 267.94, 329.76, 265.91, 328.82]], "area": 87.58954999999958, "iscrowd": 0, "image_id": 171155, "bbox": [264.66, 328.82, 7.79, 18.7], "category_id": 10, "id": 2059183}, {"segmentation": [[24.11, 344.13, 24.36, 352.49, 28.71, 351.91, 27.88, 341.28]], "area": 39.47580000000014, "iscrowd": 0, "image_id": 309536, "bbox": [24.11, 341.28, 4.6, 11.21], "category_id": 10, "id": 2059375}, {"segmentation": [[235.87, 338.43, 235.82, 346.1, 242.4, 346.56, 242.74, 339.0, 240.34, 337.63, 235.64, 337.92]], "area": 56.565100000000136, "iscrowd": 0, "image_id": 309536, "bbox": [235.64, 337.63, 7.1, 8.93], "category_id": 10, "id": 2059496}, {"segmentation": [[242.81, 322.86, 259.92, 322.86, 261.04, 381.25, 240.21, 381.62]], "area": 1111.0308500000006, "iscrowd": 0, "image_id": 116740, "bbox": [240.21, 322.86, 20.83, 58.76], "category_id": 10, "id": 2059735}, {"segmentation": [[238.9, 428.7, 236.03, 435.87, 239.86, 443.53, 246.56, 442.58]], "area": 74.8591499999999, "iscrowd": 0, "image_id": 116740, "bbox": [236.03, 428.7, 10.53, 14.83], "category_id": 10, "id": 2059851}, {"segmentation": [[231.94, 442.51, 233.32, 439.5, 235.83, 439.13, 237.33, 439.63, 238.34, 441.39, 238.84, 444.4, 237.58, 445.65, 235.32, 446.03, 232.81, 444.77, 231.68, 443.14]], "area": 36.11839999999994, "iscrowd": 0, "image_id": 116740, "bbox": [231.68, 439.13, 7.16, 6.9], "category_id": 10, "id": 2060049}, {"segmentation": [[310.47, 463.98, 309.21, 461.01, 311.37, 458.67, 313.08, 458.4, 314.25, 459.03, 314.79, 459.93, 315.06, 461.82, 314.7, 462.99, 313.44, 463.8, 311.19, 463.8]], "area": 24.03675000000011, "iscrowd": 0, "image_id": 116740, "bbox": [309.21, 458.4, 5.85, 5.58], "category_id": 10, "id": 2060063}, {"segmentation": [[309.29, 221.05, 305.44, 211.63, 303.52, 209.32, 298.9, 207.97, 292.17, 211.43, 290.25, 216.63, 290.25, 219.71]], "area": 172.85570000000016, "iscrowd": 0, "image_id": 374977, "bbox": [290.25, 207.97, 19.04, 13.08], "category_id": 11, "id": 2060244}, {"segmentation": [[238.29, 489.55, 241.2, 487.27, 244.73, 476.04, 244.52, 464.82, 242.86, 459.84, 232.47, 460.25, 231.22, 466.9, 231.22, 479.58, 231.84, 489.55]], "area": 353.94865000000016, "iscrowd": 0, "image_id": 116740, "bbox": [231.22, 459.84, 13.51, 29.71], "category_id": 14, "id": 2060786}, {"segmentation": [[639.48, 222.28, 606.5, 223.97, 604.39, 228.2, 604.81, 232.42, 639.91, 230.31]], "area": 284.63299999999987, "iscrowd": 0, "image_id": 385701, "bbox": [604.39, 222.28, 35.52, 10.14], "category_id": 15, "id": 2061345}, {"segmentation": [[247.28, 180.21, 265.97, 180.21, 279.82, 198.91, 280.51, 204.44, 252.12, 203.06, 241.05, 202.37, 245.2, 194.06, 251.43, 183.68], [330.35, 210.68, 332.43, 198.91, 332.43, 193.37, 335.89, 183.68, 342.12, 171.21, 344.2, 164.98, 346.97, 164.29, 356.66, 173.29, 365.66, 173.29, 369.82, 162.91, 380.2, 164.98, 381.58, 173.29, 382.28, 203.06, 381.58, 212.75, 367.74, 239.75, 355.28, 249.44, 348.35, 252.91, 340.05, 248.06, 330.35, 241.83, 337.97, 226.6, 351.12, 206.52, 344.2, 209.98, 330.35, 212.06]], "area": 3952.218949999997, "iscrowd": 0, "image_id": 463224, "bbox": [241.05, 162.91, 141.23, 90.0], "category_id": 15, "id": 2062396}, {"segmentation": [[640.0, 206.99, 609.21, 206.99, 608.43, 202.32, 639.56, 200.37]], "area": 175.36395000000024, "iscrowd": 0, "image_id": 385701, "bbox": [608.43, 200.37, 31.57, 6.62], "category_id": 15, "id": 2062436}, {"segmentation": [[379.45, 253.12, 310.5, 254.51, 304.92, 260.08, 332.78, 262.17, 332.78, 267.04, 336.27, 266.35, 336.96, 262.87, 364.82, 260.78, 366.22, 265.65, 370.39, 264.96, 370.39, 261.47, 378.06, 260.78]], "area": 581.2951999999998, "iscrowd": 0, "image_id": 385701, "bbox": [304.92, 253.12, 74.53, 13.92], "category_id": 15, "id": 2062536}, {"segmentation": [[557.97, 294.5, 562.23, 292.72, 562.82, 298.26, 563.02, 302.12, 560.54, 303.21, 557.87, 299.15], [566.48, 290.84, 574.69, 287.08, 576.77, 297.47, 567.96, 300.84, 566.08, 295.69, 565.49, 291.63]], "area": 140.85849999999996, "iscrowd": 0, "image_id": 539099, "bbox": [557.87, 287.08, 18.9, 16.13], "category_id": 15, "id": 2062779}, {"segmentation": [[455.64, 368.33, 456.37, 322.96, 451.25, 317.84, 450.52, 240.28, 531.74, 239.54, 538.33, 251.98, 569.06, 265.89, 607.84, 269.55, 589.55, 284.91, 580.77, 287.84, 581.5, 373.45, 569.06, 376.38, 569.06, 363.94, 468.08, 358.82, 466.62, 370.52, 457.11, 370.52]], "area": 15246.2897, "iscrowd": 0, "image_id": 518481, "bbox": [450.52, 239.54, 157.32, 136.84], "category_id": 15, "id": 2063043}, {"segmentation": [[209.29, 304.86, 212.19, 313.36, 213.23, 318.95, 218.2, 326.83, 221.52, 332.22, 226.49, 332.22, 227.32, 321.02, 244.73, 319.78, 246.39, 318.54, 238.93, 315.64, 236.44, 301.54, 208.25, 304.65]], "area": 593.0207499999999, "iscrowd": 0, "image_id": 41577, "bbox": [208.25, 301.54, 38.14, 30.68], "category_id": 15, "id": 2063163}, {"segmentation": [[610.0, 288.13, 640.0, 289.38, 640.0, 300.63, 603.75, 301.88, 601.25, 295.63]], "area": 450.78125, "iscrowd": 0, "image_id": 385701, "bbox": [601.25, 288.13, 38.75, 13.75], "category_id": 15, "id": 2063955}, {"segmentation": [[240.42, 288.5, 240.97, 287.24, 240.8, 285.6, 241.95, 284.78, 243.27, 285.82, 244.36, 285.6, 245.07, 286.59, 245.89, 288.72, 244.64, 289.82, 242.88, 290.31, 241.46, 290.42, 240.42, 289.54, 240.48, 288.39]], "area": 21.33815000000003, "iscrowd": 0, "image_id": 67082, "bbox": [240.42, 284.78, 5.47, 5.64], "category_id": 16, "id": 2065346}, {"segmentation": [[251.91, 288.82, 250.78, 289.0, 248.75, 289.18, 247.74, 289.12, 246.54, 288.82, 246.31, 287.51, 246.9, 285.66, 247.62, 283.69, 248.45, 283.22, 250.36, 284.41, 251.97, 286.14, 253.64, 288.29, 253.64, 288.41]], "area": 27.361149999999913, "iscrowd": 0, "image_id": 67082, "bbox": [246.31, 283.22, 7.33, 5.96], "category_id": 16, "id": 2065421}, {"segmentation": [[145.97, 99.32, 144.05, 98.79, 145.33, 96.76, 147.36, 96.33, 152.28, 101.35, 153.13, 104.66, 153.34, 107.23, 153.66, 108.4, 154.2, 110.22, 154.84, 112.57, 154.31, 113.1, 151.31, 110.97, 149.93, 108.94, 147.47, 109.79, 147.57, 108.29, 145.55, 103.06, 145.76, 99.75]], "area": 85.17619999999995, "iscrowd": 0, "image_id": 95281, "bbox": [144.05, 96.33, 10.79, 16.77], "category_id": 16, "id": 2065638}, {"segmentation": [[291.82, 157.56, 295.37, 154.9, 296.7, 150.47, 297.14, 148.26, 293.6, 148.26, 291.38, 150.47, 289.16, 151.36, 286.5, 152.69, 286.95, 155.35, 291.38, 156.68]], "area": 57.14789999999997, "iscrowd": 0, "image_id": 151655, "bbox": [286.5, 148.26, 10.64, 9.3], "category_id": 16, "id": 2065673}, {"segmentation": [[445.39, 282.62, 421.14, 289.3, 419.9, 286.58, 436.73, 269.99, 446.88, 260.59, 455.05, 253.9, 470.39, 258.61, 474.35, 261.82, 477.32, 266.77, 477.57, 272.47, 476.83, 290.29, 481.04, 290.78, 467.92, 306.13, 467.92, 309.44, 467.92, 309.94, 475.1, 313.4, 478.31, 313.9, 479.3, 314.64, 474.11, 341.87, 472.37, 343.11, 446.38, 324.79, 451.09, 312.91, 456.04, 289.39, 456.04, 284.44, 455.54, 281.97, 443.91, 282.71]], "area": 2338.2867500000016, "iscrowd": 0, "image_id": 503212, "bbox": [419.9, 253.9, 61.14, 89.21], "category_id": 16, "id": 2065971}, {"segmentation": [[164.13, 29.67, 166.52, 27.88, 164.92, 25.69, 164.73, 20.9, 165.72, 15.32, 169.71, 18.51, 170.9, 23.69, 171.1, 27.28, 172.9, 29.67, 175.09, 33.46, 176.69, 37.05, 175.89, 39.24, 170.31, 34.06, 166.72, 35.65, 165.12, 34.46, 164.73, 32.26]], "area": 133.9235500000002, "iscrowd": 0, "image_id": 95281, "bbox": [164.13, 15.32, 12.56, 23.92], "category_id": 16, "id": 2066039}, {"segmentation": [[253.75, 48.32, 257.38, 39.08, 260.02, 35.45, 263.98, 35.12, 268.6, 38.42, 271.24, 36.44, 267.28, 30.83, 268.6, 24.89, 275.86, 18.28, 266.29, 19.27, 261.67, 22.58, 260.29, 26.78, 258.83, 26.9, 257.73, 26.41, 255.42, 26.9, 255.42, 28.36, 256.76, 29.7, 256.88, 30.55, 254.57, 32.37, 252.74, 39.06, 252.5, 46.48, 252.74, 49.28]], "area": 240.22944999999982, "iscrowd": 0, "image_id": 95281, "bbox": [252.5, 18.28, 23.36, 31.0], "category_id": 16, "id": 2066282}, {"segmentation": [[271.53, 287.68, 272.89, 287.29, 273.71, 286.95, 275.4, 286.95, 275.79, 286.23, 275.79, 287.87, 275.45, 288.74, 273.61, 288.31, 272.16, 288.16, 271.49, 288.16]], "area": 5.267250000000098, "iscrowd": 0, "image_id": 67082, "bbox": [271.49, 286.23, 4.3, 2.51], "category_id": 16, "id": 2066316}, {"segmentation": [[222.03, 286.68, 222.69, 286.3, 223.07, 285.53, 223.9, 285.53, 224.5, 285.91, 224.72, 286.74, 224.72, 287.56, 225.38, 288.16, 226.53, 288.6, 227.02, 289.31, 227.57, 289.81, 226.15, 289.92, 224.72, 290.08, 223.07, 290.03, 222.69, 289.7, 222.69, 288.88, 223.13, 287.94, 222.96, 287.06]], "area": 12.196399999999956, "iscrowd": 0, "image_id": 67082, "bbox": [222.03, 285.53, 5.54, 4.55], "category_id": 16, "id": 2066373}, {"segmentation": [[115.03, 135.72, 113.48, 134.48, 112.7, 133.08, 111.3, 132.62, 110.68, 133.86, 110.68, 136.19, 110.68, 139.3, 110.37, 141.32, 109.13, 142.71, 107.73, 145.2, 107.11, 147.68, 106.8, 150.01, 106.64, 151.88, 106.17, 154.36, 105.24, 156.38, 105.09, 157.62, 104.78, 160.89, 105.4, 162.75, 105.71, 163.53, 106.8, 162.59, 108.04, 160.26, 108.04, 158.56, 108.04, 156.23, 108.35, 154.05, 109.44, 151.41, 110.99, 149.86, 111.77, 150.01, 113.79, 149.08, 114.72, 147.99, 115.96, 146.29, 116.58, 144.58, 116.58, 142.25, 116.43, 139.76, 115.65, 137.9, 115.49, 135.41]], "area": 139.03635, "iscrowd": 0, "image_id": 95281, "bbox": [104.78, 132.62, 11.8, 30.91], "category_id": 16, "id": 2066401}, {"segmentation": [[42.29, 333.47, 46.09, 323.16, 46.09, 311.76, 50.43, 314.47, 53.69, 326.41, 57.49, 324.78, 54.77, 300.91, 51.52, 297.11, 30.35, 292.77, 34.15, 300.91, 19.5, 304.16, 10.27, 304.16, 4.3, 292.77, 1.59, 294.39, 0.5, 319.36, 0.0, 357.89, 10.27, 377.97, 12.99, 388.28, 18.96, 392.08, 26.55, 391.53, 28.72, 388.82, 11.9, 358.97, 10.27, 357.89, 17.33, 354.09, 21.67, 356.26, 32.52, 378.51, 37.41, 381.22, 44.46, 380.14, 46.09, 374.17, 34.15, 356.8, 28.18, 352.46, 18.41, 348.12, 14.61, 344.86, 29.81, 337.81]], "area": 3080.489299999999, "iscrowd": 0, "image_id": 561406, "bbox": [0.0, 292.77, 57.49, 99.31], "category_id": 18, "id": 2067224}, {"segmentation": [[170.1, 222.23, 166.28, 215.54, 167.87, 209.17, 163.41, 207.26, 162.45, 212.99, 155.77, 212.99, 152.9, 207.26, 150.67, 211.4, 150.35, 214.91, 146.85, 222.23, 143.66, 226.05, 133.15, 228.92, 123.91, 234.65, 123.28, 237.84, 122.96, 241.98, 122.32, 249.94, 123.6, 250.9, 128.37, 248.35, 137.93, 242.61, 143.66, 232.1, 147.17, 228.6, 156.72, 222.87, 164.68, 221.28]], "area": 566.7237500000007, "iscrowd": 0, "image_id": 204589, "bbox": [122.32, 207.26, 47.78, 43.64], "category_id": 19, "id": 2067406}, {"segmentation": [[464.28, 197.04, 471.28, 190.89, 476.59, 189.77, 481.34, 196.76, 483.86, 204.59, 483.86, 208.79, 480.79, 209.63, 478.27, 208.51, 474.07, 209.07, 474.07, 219.42, 471.56, 223.33, 466.52, 230.88, 469.6, 246.55, 471.0, 253.26, 468.2, 252.14, 464.84, 240.95, 464.84, 238.43, 461.21, 246.55, 462.33, 248.5, 459.81, 248.78, 460.37, 241.51, 462.05, 237.88, 459.81, 237.88, 459.81, 234.24, 461.77, 214.66, 461.21, 210.19, 461.77, 207.95, 465.68, 203.19]], "area": 665.8395000000002, "iscrowd": 0, "image_id": 338086, "bbox": [459.81, 189.77, 24.05, 63.49], "category_id": 19, "id": 2067436}, {"segmentation": [[116.08, 292.71, 114.77, 291.4, 111.49, 290.09, 112.48, 288.13, 112.31, 286.82, 113.62, 286.33, 119.51, 287.8, 122.79, 287.8, 128.03, 287.8, 128.68, 289.6, 128.84, 290.75, 126.55, 293.2, 126.39, 297.95, 124.75, 297.29, 124.1, 293.04, 118.86, 292.87, 119.51, 296.97, 117.22, 297.29, 116.24, 294.18, 115.1, 292.38]], "area": 103.67050000000003, "iscrowd": 0, "image_id": 168001, "bbox": [111.49, 286.33, 17.35, 11.62], "category_id": 19, "id": 2067767}, {"segmentation": [[332.56, 224.64, 330.02, 224.64, 326.63, 227.52, 325.45, 228.02, 323.92, 229.21, 313.93, 229.55, 307.49, 229.72, 305.12, 230.06, 301.73, 231.58, 297.5, 232.43, 296.99, 234.63, 297.67, 238.19, 302.24, 238.52, 306.65, 239.2, 310.88, 238.69, 319.01, 238.02, 325.78, 238.52, 331.54, 239.37, 333.74, 238.86, 335.1, 237.85, 334.93, 234.29, 334.59, 231.58, 335.95, 230.06, 336.28, 228.53]], "area": 365.2582, "iscrowd": 0, "image_id": 298658, "bbox": [296.99, 224.64, 39.29, 14.73], "category_id": 21, "id": 2069334}, {"segmentation": [[215.48, 260.18, 209.35, 249.58, 208.51, 237.59, 211.86, 228.67, 219.67, 219.19, 225.8, 212.5, 234.16, 208.31, 248.94, 207.48, 263.72, 212.5, 276.82, 219.19, 280.73, 227.27, 279.61, 233.69, 273.76, 237.59, 271.25, 232.57, 266.79, 232.57, 264.28, 230.9, 262.05, 229.78, 256.19, 227.55, 254.52, 227.27, 246.15, 226.44, 238.9, 227.27, 234.44, 228.67, 228.59, 232.29, 222.73, 237.87, 220.5, 244.28, 218.55, 250.98, 216.32, 256.83]], "area": 1447.2277000000008, "iscrowd": 0, "image_id": 295295, "bbox": [208.51, 207.48, 72.22, 52.7], "category_id": 21, "id": 2069415}, {"segmentation": [[122.13, 246.96, 128.47, 238.41, 126.88, 234.61, 123.71, 230.17, 116.11, 219.71, 116.74, 206.4, 120.54, 207.04, 121.18, 216.23, 131.63, 223.2, 142.72, 223.51, 150.96, 223.83, 151.91, 225.73, 143.99, 239.99, 132.9, 255.83, 130.05, 256.15, 127.83, 252.35, 126.88, 258.37, 122.45, 248.86]], "area": 731.8480000000006, "iscrowd": 0, "image_id": 546562, "bbox": [116.11, 206.4, 35.8, 51.97], "category_id": 21, "id": 2069441}, {"segmentation": [[168.88, 255.77, 164.48, 249.46, 165.63, 248.7, 169.07, 252.14, 173.28, 249.46, 171.56, 248.31, 174.81, 246.78, 177.87, 241.24, 181.31, 245.83, 182.46, 249.84, 185.33, 253.29, 186.47, 255.96, 187.43, 261.32, 184.75, 267.63, 183.6, 270.69, 182.46, 276.04, 181.12, 282.54, 180.93, 287.13, 181.5, 288.28, 176.34, 288.09, 172.7, 287.71, 173.47, 281.01, 173.09, 273.94, 170.03, 266.29, 168.69, 262.27, 168.69, 258.26, 168.69, 255.58]], "area": 549.2337, "iscrowd": 0, "image_id": 325684, "bbox": [164.48, 241.24, 22.95, 47.04], "category_id": 24, "id": 2070503}, {"segmentation": [[145.85, 249.74, 148.81, 251.96, 147.82, 256.89, 145.85, 265.28, 145.85, 274.41, 147.33, 284.77, 147.82, 291.92, 149.05, 290.69, 151.03, 286.74, 149.79, 279.84, 149.79, 273.42, 151.52, 271.2, 153.0, 277.86, 153.0, 285.26, 154.23, 288.22, 155.47, 285.76, 156.7, 274.41, 158.92, 272.43, 158.18, 285.02, 160.15, 288.96, 161.63, 273.17, 163.36, 265.03, 163.11, 253.93, 160.4, 250.23, 157.44, 247.02, 151.52, 244.8, 147.57, 247.02]], "area": 549.8676500000003, "iscrowd": 0, "image_id": 325684, "bbox": [145.85, 244.8, 17.51, 47.12], "category_id": 24, "id": 2070551}, {"segmentation": [[352.75, 206.89, 350.82, 206.7, 350.05, 205.73, 351.59, 187.75, 352.75, 186.78, 354.3, 187.36], [374.41, 192.59, 373.83, 190.26, 372.28, 187.36, 371.7, 185.82, 372.48, 183.88, 375.18, 186.4, 376.92, 191.62]], "area": 74.4275000000004, "iscrowd": 0, "image_id": 279401, "bbox": [350.05, 183.88, 26.87, 23.01], "category_id": 27, "id": 2071251}, {"segmentation": [[323.77, 239.45, 392.52, 259.41, 416.91, 291.56, 405.82, 312.63, 394.74, 287.13, 323.77, 248.32]], "area": 1805.9555499999992, "iscrowd": 0, "image_id": 333356, "bbox": [323.77, 239.45, 93.14, 73.18], "category_id": 27, "id": 2073757}, {"segmentation": [[109.12, 2.39, 107.43, 30.24, 116.72, 39.52, 124.31, 34.88, 125.15, 31.08, 125.15, 18.85, 119.67, 0.0]], "area": 542.2578, "iscrowd": 0, "image_id": 558286, "bbox": [107.43, 0.0, 17.72, 39.52], "category_id": 28, "id": 2075008}, {"segmentation": [[42.2, 152.27, 75.82, 148.97, 79.77, 177.32, 71.2, 185.23, 54.06, 185.89, 32.31, 174.02]], "area": 1326.2751999999991, "iscrowd": 0, "image_id": 269986, "bbox": [32.31, 148.97, 47.46, 36.92], "category_id": 31, "id": 2076047}, {"segmentation": [[0.42, 350.15, 13.78, 351.99, 14.24, 328.96, 8.25, 290.25, 0.0, 247.41]], "area": 900.0198499999999, "iscrowd": 0, "image_id": 294416, "bbox": [0.0, 247.41, 14.24, 104.58], "category_id": 31, "id": 2076547}, {"segmentation": [[384.33, 325.65, 368.72, 353.19, 368.29, 355.79, 384.55, 362.94, 384.33, 342.13, 385.63, 333.67, 384.98, 326.52]], "area": 327.69329999999997, "iscrowd": 0, "image_id": 165347, "bbox": [368.29, 325.65, 17.34, 37.29], "category_id": 31, "id": 2077086}, {"segmentation": [[611.78, 238.02, 611.13, 236.66, 611.13, 235.3, 611.35, 231.86, 604.4, 230.0, 599.6, 227.71, 599.24, 227.63, 597.17, 228.49, 595.66, 229.42, 595.38, 230.14, 594.73, 230.71, 594.37, 232.36, 593.8, 234.44, 592.94, 236.23, 593.3, 237.59, 595.59, 239.95, 599.53, 241.31, 604.54, 241.17, 605.4, 240.6, 606.76, 239.81, 608.98, 239.02, 609.34, 238.16, 610.49, 238.02]], "area": 181.83669999999995, "iscrowd": 0, "image_id": 403627, "bbox": [592.94, 227.63, 18.84, 13.68], "category_id": 31, "id": 2077973}, {"segmentation": [[212.53, 269.54, 216.99, 260.82, 216.99, 253.65, 214.86, 246.47, 212.73, 239.11, 211.76, 235.81, 205.75, 229.61, 202.07, 231.55, 198.58, 231.16, 195.28, 231.94, 192.96, 235.04, 196.25, 240.08, 192.38, 253.45, 193.35, 257.33, 193.93, 258.49, 193.93, 260.04, 196.83, 264.11, 200.52, 273.8]], "area": 781.3599500000003, "iscrowd": 0, "image_id": 13417, "bbox": [192.38, 229.61, 24.61, 44.19], "category_id": 31, "id": 2078086}, {"segmentation": [[638.7, 355.66, 635.59, 355.49, 633.29, 356.15, 629.84, 357.46, 626.4, 362.71, 620.98, 367.31, 616.38, 376.01, 621.64, 386.67, 639.03, 404.89, 639.52, 403.9, 639.69, 360.91, 639.52, 354.51]], "area": 717.7605000000015, "iscrowd": 0, "image_id": 336675, "bbox": [616.38, 354.51, 23.31, 50.38], "category_id": 31, "id": 2078469}, {"segmentation": [[319.46, 152.07, 324.97, 167.34, 327.09, 167.34, 320.31, 152.92]], "area": 19.433199999999808, "iscrowd": 0, "image_id": 480818, "bbox": [319.46, 152.07, 7.63, 15.27], "category_id": 32, "id": 2079470}, {"segmentation": [[488.08, 167.73, 485.47, 168.44, 483.34, 175.07, 482.15, 180.99, 484.05, 184.55, 488.08, 180.05, 489.03, 171.28, 490.21, 169.15]], "area": 74.49454999999998, "iscrowd": 0, "image_id": 480818, "bbox": [482.15, 167.73, 8.06, 16.82], "category_id": 32, "id": 2079488}, {"segmentation": [[223.09, 225.83, 226.3, 232.86, 227.83, 234.08, 227.83, 230.72, 224.47, 226.28]], "area": 13.690650000000053, "iscrowd": 0, "image_id": 303376, "bbox": [223.09, 225.83, 4.74, 8.25], "category_id": 32, "id": 2079684}, {"segmentation": [[437.57, 315.61, 465.78, 306.59, 458.8, 289.13, 452.98, 287.1, 436.11, 291.17, 431.75, 299.32, 436.4, 312.11]], "area": 644.0541999999995, "iscrowd": 0, "image_id": 317153, "bbox": [431.75, 287.1, 34.03, 28.51], "category_id": 33, "id": 2080932}, {"segmentation": [[191.82, 300.15, 218.91, 298.44, 219.76, 310.38, 192.46, 310.38, 192.04, 300.36]], "area": 301.03545000000014, "iscrowd": 0, "image_id": 303376, "bbox": [191.82, 298.44, 27.94, 11.94], "category_id": 33, "id": 2080973}, {"segmentation": [[365.75, 191.21, 340.18, 193.43, 342.4, 247.91, 363.52, 247.91]], "area": 1297.7429999999997, "iscrowd": 0, "image_id": 13417, "bbox": [340.18, 191.21, 25.57, 56.7], "category_id": 33, "id": 2081612}, {"segmentation": [[547.97, 142.25, 545.15, 142.58, 542.7, 142.72, 540.73, 141.68, 541.06, 140.74, 542.79, 140.32, 545.71, 140.37, 547.92, 141.54]], "area": 13.107900000000036, "iscrowd": 0, "image_id": 483948, "bbox": [540.73, 140.32, 7.24, 2.4], "category_id": 34, "id": 2082062}, {"segmentation": [[350.42, 130.15, 349.99, 132.41, 349.23, 134.04, 349.67, 134.9, 353.99, 134.79, 356.25, 134.04, 357.44, 132.09, 359.71, 131.66, 359.71, 131.12, 356.36, 129.71, 352.47, 129.71]], "area": 37.65864999999982, "iscrowd": 0, "image_id": 59542, "bbox": [349.23, 129.71, 10.48, 5.19], "category_id": 37, "id": 2088183}, {"segmentation": [[221.62, 104.42, 222.79, 103.57, 222.79, 102.79, 226.82, 103.03, 226.2, 104.11, 223.79, 104.5, 222.17, 104.58, 220.38, 105.27, 217.59, 106.67, 217.36, 106.52, 217.59, 106.28, 219.61, 105.43, 219.92, 104.96, 220.46, 104.89]], "area": 7.561849999999941, "iscrowd": 0, "image_id": 560350, "bbox": [217.36, 102.79, 9.46, 3.88], "category_id": 38, "id": 2089273}, {"segmentation": [[95.09, 429.97, 92.41, 427.97, 92.91, 426.11, 95.27, 424.99, 97.26, 424.99, 98.7, 425.17, 99.76, 425.67, 101.0, 426.42, 101.19, 427.1, 101.0, 427.23, 99.57, 426.73, 96.77, 427.04, 95.77, 427.97, 95.83, 428.6, 96.95, 429.28, 97.45, 429.9, 97.26, 430.22, 96.27, 430.34]], "area": 22.5432500000001, "iscrowd": 0, "image_id": 574668, "bbox": [92.41, 424.99, 8.78, 5.35], "category_id": 38, "id": 2089850}, {"segmentation": [[106.6, 444.9, 118.89, 443.74, 122.65, 441.28, 121.06, 440.27, 116.72, 441.14, 104.58, 440.13, 105.59, 443.16]], "area": 56.261300000000105, "iscrowd": 0, "image_id": 574668, "bbox": [104.58, 440.13, 18.07, 4.77], "category_id": 38, "id": 2090114}, {"segmentation": [[71.12, 121.03, 70.25, 119.36, 71.3, 117.83, 73.1, 119.19, 73.49, 120.02, 71.91, 120.86]], "area": 5.922699999999988, "iscrowd": 0, "image_id": 476575, "bbox": [70.25, 117.83, 3.24, 3.2], "category_id": 38, "id": 2090161}, {"segmentation": [[230.27, 164.33, 224.08, 162.38, 224.4, 146.89, 227.18, 146.4, 229.78, 148.36]], "area": 94.21409999999995, "iscrowd": 0, "image_id": 102315, "bbox": [224.08, 146.4, 6.19, 17.93], "category_id": 44, "id": 2092915}, {"segmentation": [[530.01, 274.51, 529.7, 264.34, 531.55, 256.94, 538.03, 256.63, 539.57, 264.34, 539.57, 272.66, 532.48, 274.51]], "area": 153.9814000000005, "iscrowd": 0, "image_id": 115055, "bbox": [529.7, 256.63, 9.87, 17.88], "category_id": 44, "id": 2093697}, {"segmentation": [[251.72, 230.23, 255.06, 221.64, 255.06, 218.77, 255.06, 211.61, 255.54, 204.45, 257.93, 200.15, 245.99, 196.34, 245.51, 206.84, 244.56, 210.66, 238.83, 214.0, 237.88, 214.48, 237.88, 223.07, 251.24, 233.57]], "area": 417.34159999999986, "iscrowd": 0, "image_id": 428340, "bbox": [237.88, 196.34, 20.05, 37.23], "category_id": 44, "id": 2093773}, {"segmentation": [[472.42, 200.57, 472.42, 192.39, 473.87, 188.16, 473.47, 186.32, 476.9, 186.18, 477.03, 189.88, 476.38, 195.16, 476.51, 201.49, 472.81, 201.23]], "area": 58.45459999999957, "iscrowd": 0, "image_id": 280765, "bbox": [472.42, 186.18, 4.61, 15.31], "category_id": 44, "id": 2094568}, {"segmentation": [[136.0, 375.65, 136.1, 365.85, 137.77, 362.93, 137.77, 360.01, 139.96, 359.59, 140.27, 375.86]], "area": 56.91080000000013, "iscrowd": 0, "image_id": 444214, "bbox": [136.0, 359.59, 4.27, 16.27], "category_id": 44, "id": 2094863}, {"segmentation": [[492.82, 50.6, 504.28, 36.27, 508.22, 34.48, 514.66, 30.55, 515.38, 29.47, 512.15, 37.35, 501.41, 48.45, 500.34, 52.74, 499.26, 55.25, 497.83, 55.61, 494.97, 53.82, 492.46, 52.74]], "area": 163.84655000000015, "iscrowd": 0, "image_id": 211622, "bbox": [492.46, 29.47, 22.92, 26.14], "category_id": 44, "id": 2095188}, {"segmentation": [[137.98, 177.49, 138.71, 165.14, 132.9, 146.97, 120.55, 146.97, 123.45, 177.49, 137.26, 182.57]], "area": 489.60380000000015, "iscrowd": 0, "image_id": 48451, "bbox": [120.55, 146.97, 18.16, 35.6], "category_id": 44, "id": 2095568}, {"segmentation": [[434.63, 191.85, 435.72, 192.44, 435.72, 194.37, 437.66, 196.23, 437.49, 211.09, 434.88, 212.26, 432.1, 211.93, 431.6, 208.98, 432.02, 196.65, 433.11, 194.88, 433.87, 193.36, 434.12, 191.85]], "area": 101.53340000000026, "iscrowd": 0, "image_id": 551986, "bbox": [431.6, 191.85, 6.06, 20.41], "category_id": 44, "id": 2095661}, {"segmentation": [[569.84, 71.39, 537.17, 101.23, 531.77, 108.05, 535.76, 123.09, 537.64, 124.03, 548.22, 122.85, 552.92, 119.09, 548.92, 112.98, 550.33, 102.64, 579.24, 74.21, 585.11, 67.86, 588.17, 65.98, 583.7, 62.46, 578.3, 64.81]], "area": 842.3387000000006, "iscrowd": 0, "image_id": 211622, "bbox": [531.77, 62.46, 56.4, 61.57], "category_id": 44, "id": 2095714}, {"segmentation": [[134.3, 149.52, 134.68, 146.64, 135.64, 144.91, 137.95, 144.33, 141.59, 144.14, 147.16, 144.52, 151.77, 145.48, 152.92, 146.06, 153.5, 148.75, 153.88, 151.63, 154.84, 154.32, 155.23, 155.47, 156.19, 159.31, 157.34, 163.34, 158.11, 168.91, 157.53, 172.75, 155.23, 175.63, 149.66, 177.36, 142.75, 177.74, 139.48, 177.16, 138.33, 176.01, 138.71, 173.32, 139.29, 168.14, 138.91, 163.53, 137.37, 160.27, 136.22, 157.77, 135.64, 153.16, 134.68, 151.24]], "area": 606.57445, "iscrowd": 0, "image_id": 48451, "bbox": [134.3, 144.14, 23.81, 33.6], "category_id": 44, "id": 2095758}, {"segmentation": [[505.86, 256.03, 504.52, 259.27, 504.07, 264.63, 503.63, 272.12, 505.3, 273.35, 511.78, 273.46, 513.46, 270.1, 513.35, 261.61, 512.79, 259.15, 512.12, 255.13]], "area": 155.23730000000046, "iscrowd": 0, "image_id": 115055, "bbox": [503.63, 255.13, 9.83, 18.33], "category_id": 44, "id": 2095766}, {"segmentation": [[516.1, 106.07, 516.1, 125.06, 534.55, 122.89, 531.84, 106.61, 569.83, 67.0, 551.92, 69.17, 536.18, 86.53]], "area": 895.6228500000018, "iscrowd": 0, "image_id": 211622, "bbox": [516.1, 67.0, 53.73, 58.06], "category_id": 44, "id": 2095872}, {"segmentation": [[478.51, 202.34, 484.59, 202.97, 486.46, 193.46, 485.21, 188.94, 484.43, 187.38, 484.43, 183.33, 484.27, 180.84, 484.74, 180.06, 479.44, 177.88, 478.97, 179.59, 479.13, 184.27, 480.38, 182.24, 480.69, 181.46, 480.69, 184.27, 479.44, 188.63, 476.95, 190.03, 477.26, 194.4, 477.26, 199.54, 478.04, 202.66]], "area": 161.84759999999972, "iscrowd": 0, "image_id": 280765, "bbox": [476.95, 177.88, 9.51, 25.09], "category_id": 44, "id": 2096935}, {"segmentation": [[305.18, 208.99, 303.89, 196.47, 305.55, 181.75, 308.86, 181.19, 307.76, 185.8, 308.49, 192.24, 309.78, 198.86, 309.6, 204.02, 309.23, 206.78, 307.39, 208.43]], "area": 114.03330000000007, "iscrowd": 0, "image_id": 280765, "bbox": [303.89, 181.19, 5.89, 27.8], "category_id": 44, "id": 2097137}, {"segmentation": [[400.55, 290.87, 397.21, 316.53, 393.58, 319.32, 396.09, 349.45, 382.7, 348.89, 386.33, 301.19, 381.86, 297.84, 377.12, 297.84, 377.12, 288.36]], "area": 789.5246999999993, "iscrowd": 0, "image_id": 115055, "bbox": [377.12, 288.36, 23.43, 61.09], "category_id": 47, "id": 2098574}, {"segmentation": [[255.95, 180.78, 260.85, 202.86, 264.13, 204.49, 299.69, 181.6, 295.19, 169.75, 260.85, 175.88]], "area": 873.8305999999999, "iscrowd": 0, "image_id": 64492, "bbox": [255.95, 169.75, 43.74, 34.74], "category_id": 47, "id": 2098941}, {"segmentation": [[79.69, 165.18, 85.35, 163.63, 88.84, 165.59, 89.56, 169.7, 87.2, 171.35, 80.82, 171.04, 79.48, 170.73, 80.41, 165.48]], "area": 60.623349999999945, "iscrowd": 0, "image_id": 375528, "bbox": [79.48, 163.63, 10.08, 7.72], "category_id": 47, "id": 2099337}, {"segmentation": [[169.74, 1.2, 170.67, 13.24, 175.76, 20.65, 208.18, 16.48, 228.55, 14.63, 237.35, 15.09, 248.93, 16.48, 256.34, 15.55, 260.04, 7.22, 260.51, 2.12, 260.51, 0.0]], "area": 1433.7841500000002, "iscrowd": 0, "image_id": 226262, "bbox": [169.74, 0.0, 90.77, 20.65], "category_id": 47, "id": 2099504}, {"segmentation": [[294.16, 87.03, 298.83, 118.39, 303.5, 135.73, 304.17, 140.4, 314.84, 141.07, 314.18, 99.04, 318.18, 84.36, 317.51, 81.03, 300.83, 85.03, 296.16, 87.03]], "area": 938.5694499999997, "iscrowd": 0, "image_id": 426513, "bbox": [294.16, 81.03, 24.02, 60.04], "category_id": 47, "id": 2099747}, {"segmentation": [[422.2, 77.93, 428.95, 62.48, 445.37, 60.55, 465.64, 53.79, 483.51, 36.89, 482.54, 18.07, 468.54, 1.65, 356.06, 1.17, 347.37, 31.58, 363.78, 35.45, 377.3, 37.38, 392.75, 39.79, 401.44, 42.69, 401.92, 57.17, 399.99, 65.38, 399.99, 68.76, 408.68, 72.13, 417.85, 76.0]], "area": 6516.1029, "iscrowd": 0, "image_id": 226262, "bbox": [347.37, 1.17, 136.14, 76.76], "category_id": 47, "id": 2099910}, {"segmentation": [[163.08, 5.56, 158.73, 21.05, 116.62, 18.63, 110.32, 0.0]], "area": 805.35085, "iscrowd": 0, "image_id": 226262, "bbox": [110.32, 0.0, 52.76, 21.05], "category_id": 47, "id": 2100089}, {"segmentation": [[253.18, 251.83, 253.18, 270.99, 261.09, 270.99, 266.5, 269.12, 267.13, 266.62, 266.71, 252.04, 265.46, 251.42]], "area": 259.7504499999998, "iscrowd": 0, "image_id": 480818, "bbox": [253.18, 251.42, 13.95, 19.57], "category_id": 47, "id": 2100408}, {"segmentation": [[243.35, 396.45, 248.01, 398.95, 256.24, 399.67, 264.12, 398.59, 270.56, 396.45, 272.0, 394.66, 276.29, 344.89, 275.58, 331.64, 275.22, 330.93, 268.77, 326.99, 261.61, 325.56, 250.87, 325.56, 240.85, 329.14, 237.27, 330.93]], "area": 2436.507200000001, "iscrowd": 0, "image_id": 115055, "bbox": [237.27, 325.56, 39.02, 74.11], "category_id": 47, "id": 2100803}, {"segmentation": [[347.98, 302.82, 345.9, 333.46, 338.11, 334.5, 333.44, 342.28, 331.36, 329.82, 319.42, 325.67, 316.3, 294.52, 339.67, 294.52, 347.46, 296.59]], "area": 1082.3199499999998, "iscrowd": 0, "image_id": 115055, "bbox": [316.3, 294.52, 31.68, 47.76], "category_id": 47, "id": 2101151}, {"segmentation": [[36.56, 231.13, 37.69, 238.53, 44.58, 238.22, 44.58, 236.27, 46.12, 234.93, 46.12, 233.29, 47.05, 232.57, 49.72, 232.87, 50.95, 233.08, 51.67, 231.43, 54.96, 231.33, 55.58, 229.48, 53.22, 228.66, 49.18, 228.99, 45.09, 229.07, 41.7, 230.0, 37.07, 229.79]], "area": 104.58410000000006, "iscrowd": 0, "image_id": 290153, "bbox": [36.56, 228.66, 19.02, 9.87], "category_id": 47, "id": 2101160}, {"segmentation": [[2.2, 277.06, 7.87, 279.32, 13.16, 281.97, 23.36, 286.13, 30.54, 294.44, 56.62, 322.78, 62.66, 325.43, 70.98, 332.99, 77.78, 334.12, 83.45, 337.9, 86.85, 341.3, 87.23, 348.1, 0.0, 335.63]], "area": 2899.2724000000017, "iscrowd": 0, "image_id": 231996, "bbox": [0.0, 277.06, 87.23, 71.04], "category_id": 49, "id": 2104514}, {"segmentation": [[534.27, 395.72, 556.41, 375.8, 565.61, 372.39, 566.12, 372.22, 547.04, 392.66, 535.63, 402.03]], "area": 200.85570000000016, "iscrowd": 0, "image_id": 318509, "bbox": [534.27, 372.22, 31.85, 29.81], "category_id": 49, "id": 2104931}, {"segmentation": [[579.66, 273.83, 605.67, 274.34, 609.56, 273.83, 624.26, 274.0, 623.58, 275.52, 609.22, 276.53, 605.84, 276.53, 584.05, 275.52, 579.49, 275.52, 578.82, 274.67]], "area": 88.43479999999975, "iscrowd": 0, "image_id": 537924, "bbox": [578.82, 273.83, 45.44, 2.7], "category_id": 49, "id": 2105095}, {"segmentation": [[625.31, 372.2, 628.86, 380.98, 629.2, 384.7, 621.09, 385.54, 622.27, 392.98, 627.34, 397.88, 632.24, 399.4, 633.42, 400.07, 636.46, 398.72, 638.32, 393.99, 637.31, 389.43, 637.48, 386.73, 636.46, 385.21, 634.61, 384.19, 633.25, 383.52, 635.28, 376.08, 635.79, 373.89, 634.77, 372.54, 631.23, 371.19, 626.16, 371.19, 625.31, 371.52]], "area": 294.7874, "iscrowd": 0, "image_id": 176587, "bbox": [621.09, 371.19, 17.23, 28.88], "category_id": 50, "id": 2105870}, {"segmentation": [[364.19, 300.95, 363.0, 274.02, 363.0, 272.37, 363.0, 271.66, 363.24, 271.19, 364.42, 270.95, 364.42, 271.19, 366.07, 300.71]], "area": 50.845450000000135, "iscrowd": 0, "image_id": 115055, "bbox": [363.0, 270.95, 3.07, 30.0], "category_id": 50, "id": 2106114}, {"segmentation": [[137.5, 226.88, 50.0, 288.13, 41.25, 359.38, 65.0, 428.13, 98.75, 474.38, 143.75, 473.13]], "area": 18348.4375, "iscrowd": 0, "image_id": 176923, "bbox": [41.25, 226.88, 102.5, 247.5], "category_id": 51, "id": 2106968}, {"segmentation": [[280.91, 222.25, 277.47, 224.96, 272.31, 224.96, 269.61, 220.04, 280.42, 220.78]], "area": 39.57035000000016, "iscrowd": 0, "image_id": 290153, "bbox": [269.61, 220.04, 11.3, 4.92], "category_id": 51, "id": 2107498}, {"segmentation": [[48.06, 426.44, 46.2, 433.14, 43.96, 442.06, 45.82, 452.48, 52.89, 459.55, 62.93, 464.38, 79.3, 465.5, 93.81, 461.03, 104.97, 454.71, 103.85, 434.25, 107.94, 428.3, 96.78, 406.73, 70.37, 403.01, 56.24, 409.7, 51.78, 414.54, 66.65, 420.12, 71.12, 422.35, 60.7, 422.35, 48.43, 417.51]], "area": 3070.535999999999, "iscrowd": 0, "image_id": 509702, "bbox": [43.96, 403.01, 63.98, 62.49], "category_id": 51, "id": 2107562}, {"segmentation": [[273.21, 264.82, 278.02, 262.66, 281.57, 262.16, 284.74, 262.54, 287.53, 263.17, 291.08, 263.68, 292.22, 265.32, 292.34, 267.23, 290.44, 272.93, 287.53, 274.7, 285.25, 271.15, 284.99, 268.62, 283.47, 267.1, 278.4, 266.46, 274.98, 266.08, 273.46, 265.32]], "area": 109.08784999999956, "iscrowd": 0, "image_id": 480818, "bbox": [273.21, 262.16, 19.13, 12.54], "category_id": 51, "id": 2108271}, {"segmentation": [[357.33, 280.52, 317.13, 281.6, 296.31, 292.72, 300.98, 298.47, 307.8, 298.11, 319.28, 289.13, 335.8, 288.42, 349.8, 283.75], [389.28, 295.95, 376.36, 312.83, 348.72, 321.08, 333.28, 321.08, 327.54, 325.39, 338.31, 330.06, 358.05, 336.16, 371.69, 336.52, 387.85, 325.03, 401.13, 308.52, 397.18, 294.52, 388.56, 288.78]], "area": 1652.7103500000007, "iscrowd": 0, "image_id": 130624, "bbox": [296.31, 280.52, 104.82, 56.0], "category_id": 51, "id": 2109450}, {"segmentation": [[248.33, 283.83, 252.97, 290.41, 255.06, 291.9, 255.96, 294.29, 263.58, 293.69, 266.12, 289.06, 268.81, 281.88, 266.12, 278.6, 261.04, 276.8, 250.73, 279.34, 249.38, 281.74]], "area": 245.63030000000003, "iscrowd": 0, "image_id": 130624, "bbox": [248.33, 276.8, 20.48, 17.49], "category_id": 51, "id": 2109594}, {"segmentation": [[293.46, 188.61, 299.03, 191.54, 297.57, 197.4, 304.01, 194.17, 306.94, 192.12, 307.82, 188.61, 310.75, 187.14, 311.63, 183.04, 311.05, 180.69, 309.58, 185.09, 303.13, 180.4, 302.25, 183.92, 299.03, 182.45, 298.74, 185.38, 295.22, 185.68]], "area": 143.4680500000001, "iscrowd": 0, "image_id": 373765, "bbox": [293.46, 180.4, 18.17, 17.0], "category_id": 52, "id": 2111070}, {"segmentation": [[299.22, 108.35, 317.36, 93.55, 338.37, 78.27, 357.94, 69.2, 370.83, 62.04, 384.2, 56.79, 398.04, 58.7, 408.06, 59.65, 416.66, 63.47, 424.3, 68.25, 426.68, 109.78, 425.25, 139.38, 412.84, 149.88, 408.06, 150.83, 401.38, 153.22, 389.92, 156.56, 384.67, 153.7, 357.46, 139.85, 336.93, 130.78, 314.98, 118.37, 303.04, 114.07, 298.27, 110.73]], "area": 8266.658449999999, "iscrowd": 0, "image_id": 231374, "bbox": [298.27, 56.79, 128.41, 99.77], "category_id": 53, "id": 2111691}, {"segmentation": [[262.73, 321.33, 266.05, 312.23, 266.93, 310.65, 272.36, 314.68, 276.56, 315.73, 277.96, 315.55, 278.31, 328.68, 273.93, 331.48, 270.08, 331.13, 264.48, 327.11, 262.9, 322.55]], "area": 230.26284999999987, "iscrowd": 0, "image_id": 558153, "bbox": [262.73, 310.65, 15.58, 20.83], "category_id": 53, "id": 2111700}, {"segmentation": [[104.24, 237.33, 98.13, 253.2, 104.24, 267.45, 117.67, 269.89, 144.94, 243.84, 142.9, 238.15, 117.26, 230.82]], "area": 1153.4815499999997, "iscrowd": 0, "image_id": 48451, "bbox": [98.13, 230.82, 46.81, 39.07], "category_id": 54, "id": 2112948}, {"segmentation": [[314.46, 223.79, 330.31, 226.92, 345.96, 222.75, 342.21, 213.15, 324.47, 202.3, 317.17, 200.21, 313.62, 210.44, 314.46, 224.0]], "area": 572.5900499999993, "iscrowd": 0, "image_id": 48451, "bbox": [313.62, 200.21, 32.34, 26.71], "category_id": 54, "id": 2113240}, {"segmentation": [[466.03, 272.68, 477.38, 274.16, 482.57, 281.57, 484.79, 287.74, 483.81, 293.42, 482.82, 296.14, 478.87, 296.39, 474.67, 292.68, 467.75, 290.21, 464.79, 290.46, 464.3, 283.05]], "area": 342.5183999999996, "iscrowd": 0, "image_id": 360695, "bbox": [464.3, 272.68, 20.49, 23.71], "category_id": 55, "id": 2113540}, {"segmentation": [[365.16, 288.62, 382.39, 296.0, 390.59, 288.62, 390.59, 288.62, 394.69, 278.78, 390.59, 272.21, 375.0, 272.21, 366.8, 278.78]], "area": 499.0029000000001, "iscrowd": 0, "image_id": 206427, "bbox": [365.16, 272.21, 29.53, 23.79], "category_id": 56, "id": 2114562}, {"segmentation": [[202.75, 112.58, 202.75, 134.19, 195.36, 140.44, 181.71, 139.87, 170.9, 119.4, 178.3, 112.58, 181.71, 103.48, 180.0, 101.21, 186.26, 89.83, 194.22, 78.46, 211.28, 71.64, 220.38, 72.77, 220.38, 91.54, 209.0, 92.68, 201.04, 96.66, 202.18, 102.34, 215.83, 108.03, 206.16, 110.3]], "area": 1760.5774, "iscrowd": 0, "image_id": 64454, "bbox": [170.9, 71.64, 49.48, 68.8], "category_id": 56, "id": 2114822}, {"segmentation": [[615.89, 339.04, 612.1, 340.7, 604.76, 340.7, 599.08, 340.7, 592.45, 340.7, 600.5, 333.6, 611.39, 334.31]], "area": 116.99734999999934, "iscrowd": 0, "image_id": 537924, "bbox": [592.45, 333.6, 23.44, 7.1], "category_id": 57, "id": 2115798}, {"segmentation": [[143.45, 100.66, 247.57, 118.13, 257.65, 127.53, 258.32, 147.01, 267.05, 159.1, 283.18, 173.88, 290.56, 187.99, 293.25, 201.42, 294.6, 230.98, 280.49, 243.74, 265.71, 264.57, 256.98, 285.39, 249.59, 304.2, 207.94, 330.4, 173.68, 339.8, 134.05, 339.13, 60.83, 308.23, 52.77, 297.48, 50.75, 282.71, 55.45, 267.25, 54.78, 255.84, 55.45, 238.37, 53.44, 230.98, 60.15, 217.55, 72.92, 149.03, 84.34, 147.01, 100.46, 145.67, 109.86, 145.67, 111.88, 134.92, 125.99, 133.58, 138.08, 136.94, 142.11, 139.62, 137.41, 119.47, 136.06, 108.72]], "area": 43211.55975, "iscrowd": 0, "image_id": 294734, "bbox": [50.75, 100.66, 243.85, 239.14], "category_id": 57, "id": 2116001}, {"segmentation": [[503.97, 337.54, 507.62, 323.74, 507.62, 314.41, 511.27, 302.64, 517.35, 289.26, 527.5, 290.47, 536.42, 296.15, 532.77, 321.71, 528.71, 322.93, 524.25, 323.34, 519.38, 327.8, 512.89, 331.04, 506.4, 336.32], [498.69, 365.53, 495.45, 384.19, 499.5, 390.28, 507.21, 391.09, 519.38, 393.93, 523.03, 392.71, 523.03, 389.47, 521.82, 382.57, 518.57, 378.92, 510.05, 374.86, 503.97, 369.99, 500.32, 366.34]], "area": 1352.5702499999989, "iscrowd": 0, "image_id": 294734, "bbox": [495.45, 289.26, 40.97, 104.67], "category_id": 57, "id": 2116384}, {"segmentation": [[613.1, 289.54, 625.36, 294.28, 631.83, 295.31, 630.97, 297.58, 622.88, 294.99, 618.78, 294.34, 606.81, 292.62, 606.16, 289.49, 608.64, 288.95]], "area": 68.71765000000032, "iscrowd": 0, "image_id": 537924, "bbox": [606.16, 288.95, 25.67, 8.63], "category_id": 57, "id": 2116390}, {"segmentation": [[1.11, 138.31, 27.66, 134.99, 49.79, 130.57, 57.54, 133.89, 89.63, 131.67, 105.12, 129.46, 120.61, 125.03, 138.31, 120.61, 150.48, 121.71, 160.44, 115.08, 168.19, 107.33, 174.83, 102.9, 182.57, 90.73, 184.78, 85.2, 200.28, 76.35, 212.45, 74.14, 223.51, 73.03, 233.47, 76.35, 234.58, 54.22, 219.09, 38.73, 203.59, 27.66, 187.0, 19.92, 183.68, 17.7, 171.51, 9.96, 157.12, 7.75, 148.27, 3.32, 139.42, 2.21, 125.03, 0.0, 109.54, 1.11, 86.31, 2.21, 75.24, 3.32, 34.3, 7.75, 2.21, 7.75, 1.11, 134.99]], "area": 24266.609249999998, "iscrowd": 0, "image_id": 441382, "bbox": [1.11, 0.0, 233.47, 138.31], "category_id": 59, "id": 2117674}, {"segmentation": [[69.82, 0.0, 54.86, 36.57, 9.97, 78.13, 0.0, 61.51, 1.66, 3.32]], "area": 3377.1360000000004, "iscrowd": 0, "image_id": 478902, "bbox": [0.0, 0.0, 69.82, 78.13], "category_id": 59, "id": 2117746}, {"segmentation": [[242.93, 196.89, 249.75, 190.43, 254.0, 185.44, 256.21, 180.83, 262.86, 186.74, 265.62, 195.59, 262.86, 199.29, 260.09, 200.95, 248.65, 206.11, 244.03, 201.13, 242.37, 196.89]], "area": 314.47364999999996, "iscrowd": 0, "image_id": 83787, "bbox": [242.37, 180.83, 23.25, 25.28], "category_id": 60, "id": 2117875}, {"segmentation": [[618.86, 282.21, 639.84, 292.7, 639.84, 359.33, 631.2, 359.95, 631.2, 313.68, 594.8, 320.46, 592.95, 359.95, 578.14, 359.95, 579.99, 333.42, 573.21, 360.0, 558.4, 357.48, 568.89, 309.98, 539.28, 297.02, 527.56, 359.95, 522.0, 359.33, 522.62, 291.47, 528.79, 280.36, 569.51, 282.21, 604.67, 284.68, 615.16, 284.68]], "area": 5514.85165, "iscrowd": 0, "image_id": 102315, "bbox": [522.0, 280.36, 117.84, 79.64], "category_id": 62, "id": 2120253}, {"segmentation": [[74.35, 111.6, 76.89, 111.6, 92.48, 122.48, 97.56, 164.54, 82.69, 177.6, 86.32, 186.3, 55.49, 182.67, 50.05, 183.76, 43.89, 171.07, 33.37, 170.71, 33.37, 154.75, 28.66, 129.37, 32.65, 113.41, 47.15, 109.06, 62.75, 109.06]], "area": 4211.87035, "iscrowd": 0, "image_id": 178436, "bbox": [28.66, 109.06, 68.9, 77.24], "category_id": 62, "id": 2120290}, {"segmentation": [[54.41, 27.93, 62.38, 26.87, 66.44, 28.38, 69.29, 34.24, 70.19, 37.09, 56.37, 38.89, 55.62, 35.89, 55.77, 33.94]], "area": 138.03115000000003, "iscrowd": 0, "image_id": 375659, "bbox": [54.41, 26.87, 15.78, 12.02], "category_id": 62, "id": 2120394}, {"segmentation": [[188.85, 178.96, 139.95, 178.96, 138.45, 177.84, 139.58, 172.95, 147.1, 163.17, 172.68, 159.4, 185.47, 162.41]], "area": 796.1759000000005, "iscrowd": 0, "image_id": 502517, "bbox": [138.45, 159.4, 50.4, 19.56], "category_id": 62, "id": 2120818}, {"segmentation": [[317.07, 161.9, 317.38, 160.95, 319.27, 157.18, 319.58, 150.25, 318.95, 143.64, 321.16, 133.57, 324.3, 122.56, 324.93, 121.3, 330.28, 100.53, 334.06, 103.04, 341.3, 107.13, 342.56, 115.0, 348.54, 154.97, 346.65, 161.58, 345.7, 168.82, 343.82, 177.95, 337.21, 172.91, 326.82, 168.19, 318.64, 166.93, 316.12, 166.3, 315.81, 164.73, 317.38, 161.9]], "area": 1572.1369500000008, "iscrowd": 0, "image_id": 510979, "bbox": [315.81, 100.53, 32.73, 77.42], "category_id": 62, "id": 2121968}, {"segmentation": [[133.01, 337.49, 125.97, 348.13, 124.5, 345.02, 124.33, 339.94, 122.86, 337.16, 126.46, 335.52, 132.03, 335.85], [121.22, 339.13, 123.84, 347.64, 114.84, 346.98, 118.44, 340.6]], "area": 111.86429999999987, "iscrowd": 0, "image_id": 187474, "bbox": [114.84, 335.52, 18.17, 12.61], "category_id": 62, "id": 2122323}, {"segmentation": [[99.07, 522.85, 118.64, 526.19, 136.78, 519.03, 144.9, 511.4, 146.8, 516.17, 135.35, 528.58, 145.85, 558.66, 139.17, 560.57, 137.73, 574.41, 126.28, 575.84, 125.8, 535.74, 112.91, 535.27, 112.91, 576.32, 104.32, 580.62, 103.36, 575.37, 101.93, 535.74, 93.34, 520.47]], "area": 1544.164649999999, "iscrowd": 0, "image_id": 198137, "bbox": [93.34, 511.4, 53.46, 69.22], "category_id": 62, "id": 2122517}, {"segmentation": [[86.9, 178.14, 93.03, 169.14, 96.3, 165.87, 100.79, 162.19, 113.47, 161.38, 129.0, 162.63, 131.86, 165.49, 135.13, 174.89, 134.72, 180.2]], "area": 698.9492499999997, "iscrowd": 0, "image_id": 502517, "bbox": [86.9, 161.38, 48.23, 18.82], "category_id": 62, "id": 2122703}, {"segmentation": [[599.31, 219.71, 602.76, 215.92, 618.96, 223.16, 625.17, 233.5, 624.13, 246.94, 619.31, 257.98]], "area": 517.6469500000021, "iscrowd": 0, "image_id": 480818, "bbox": [599.31, 215.92, 25.86, 42.06], "category_id": 62, "id": 2122741}, {"segmentation": [[382.52, 60.6, 391.42, 43.92, 432.56, 49.48, 430.34, 62.83, 390.3, 58.38]], "area": 627.7684999999999, "iscrowd": 0, "image_id": 502517, "bbox": [382.52, 43.92, 50.04, 18.91], "category_id": 62, "id": 2122830}, {"segmentation": [[46.47, 223.33, 77.45, 129.28, 85.2, 118.21, 112.86, 113.78, 116.18, 99.4, 116.18, 62.89, 123.93, 58.46, 189.21, 46.29, 225.72, 57.35, 277.73, 52.93, 308.71, 58.46, 319.78, 54.03, 328.63, 54.03, 349.65, 56.25, 358.5, 58.46, 368.46, 58.46, 388.38, 49.61, 402.76, 46.29, 422.68, 47.39, 445.92, 48.5, 471.37, 66.21, 471.37, 76.16, 475.79, 76.16, 513.41, 52.93, 530.01, 50.71, 556.57, 164.68, 565.42, 165.79, 615.21, 176.85, 621.85, 184.6, 627.38, 198.98, 611.89, 343.94, 604.15, 348.36, 593.08, 348.36, 580.91, 416.96, 497.92, 420.28, 76.35, 419.18]], "area": 188964.71010000005, "iscrowd": 0, "image_id": 484617, "bbox": [46.47, 46.29, 580.91, 373.99], "category_id": 62, "id": 2123028}, {"segmentation": [[611.3, 138.53, 610.0, 131.81, 611.3, 123.57, 612.17, 106.66, 617.81, 104.92, 633.42, 105.14, 638.4, 110.34, 637.32, 116.2, 635.8, 121.83, 636.67, 128.99, 636.02, 137.01, 631.03, 138.09, 630.17, 137.66, 630.82, 133.54, 630.17, 128.77, 627.13, 127.47, 621.49, 127.69, 617.59, 131.16, 617.37, 134.62, 617.81, 137.23, 616.72, 138.74]], "area": 704.5179500000005, "iscrowd": 0, "image_id": 385701, "bbox": [610.0, 104.92, 28.4, 33.82], "category_id": 62, "id": 2123410}, {"segmentation": [[120.58, 170.48, 115.37, 157.77, 114.46, 151.42, 114.23, 149.15, 117.41, 145.75, 121.49, 142.8, 127.62, 142.8, 131.93, 145.52, 132.83, 148.47, 128.52, 152.55, 122.62, 156.41, 121.04, 169.57]], "area": 239.68195000000009, "iscrowd": 0, "image_id": 480818, "bbox": [114.23, 142.8, 18.6, 27.68], "category_id": 62, "id": 2123877}, {"segmentation": [[28.24, 100.82, 29.22, 95.4, 34.64, 86.54, 40.55, 82.35, 73.79, 82.35, 76.5, 85.8, 77.24, 91.21, 78.22, 100.57, 78.22, 101.56, 28.48, 100.08]], "area": 825.9965000000002, "iscrowd": 0, "image_id": 502517, "bbox": [28.24, 82.35, 49.98, 19.21], "category_id": 62, "id": 2124162}, {"segmentation": [[487.0, 54.37, 488.6, 50.08, 490.75, 46.87, 494.51, 43.11, 497.73, 40.43, 503.09, 38.82, 511.13, 40.43, 515.42, 44.72, 515.42, 46.87, 517.56, 52.23, 518.1, 55.44, 518.1, 58.13]], "area": 409.20229999999947, "iscrowd": 0, "image_id": 558286, "bbox": [487.0, 38.82, 31.1, 19.31], "category_id": 62, "id": 2124461}, {"segmentation": [[639.4, 95.32, 632.58, 95.32, 631.69, 108.23, 632.36, 110.48, 640.0, 110.93]], "area": 116.51689999999921, "iscrowd": 0, "image_id": 23015, "bbox": [631.69, 95.32, 8.31, 15.61], "category_id": 62, "id": 2125822}, {"segmentation": [[445.64, 3.76, 442.23, 23.53, 439.16, 21.15, 430.63, 12.62, 429.27, 11.6, 431.65, 3.76]], "area": 204.73110000000005, "iscrowd": 0, "image_id": 23015, "bbox": [429.27, 3.76, 16.37, 19.77], "category_id": 62, "id": 2126088}, {"segmentation": [[467.1, 259.19, 476.91, 258.93, 479.23, 259.19, 484.39, 241.25, 486.59, 239.32, 488.65, 239.19, 491.23, 242.03, 490.72, 243.32, 489.3, 253.77, 485.55, 262.42, 484.65, 264.61, 483.49, 279.97, 482.59, 288.22, 482.46, 291.19, 481.55, 292.48, 481.04, 285.77, 481.04, 282.55, 481.94, 268.61, 481.17, 268.61, 481.17, 268.87, 479.36, 281.0, 478.07, 295.58, 477.43, 296.35, 475.75, 296.74, 476.39, 293.39, 477.17, 283.45, 463.23, 284.35, 464.52, 263.71, 467.49, 259.19], [457.17, 282.55, 454.2, 287.71, 455.88, 288.1, 457.68, 284.61]], "area": 666.5865000000002, "iscrowd": 0, "image_id": 290153, "bbox": [454.2, 239.19, 37.03, 57.55], "category_id": 62, "id": 2126328}, {"segmentation": [[377.52, 277.94, 377.74, 260.77, 380.13, 261.42, 380.13, 263.81, 393.17, 265.34, 392.09, 279.46, 379.26, 278.16, 379.26, 278.6, 377.96, 278.6], [410.34, 268.16, 424.25, 269.9, 418.6, 281.86, 412.95, 281.64, 413.82, 274.47, 409.26, 274.25, 409.26, 269.03, 411.21, 268.81]], "area": 349.3738500000005, "iscrowd": 0, "image_id": 290153, "bbox": [377.52, 260.77, 46.73, 21.09], "category_id": 62, "id": 2126350}, {"segmentation": [[469.13, 234.63, 482.78, 237.87, 476.67, 257.25, 472.37, 257.25, 474.52, 243.25, 478.83, 242.53, 477.03, 239.66, 466.62, 237.87, 466.98, 234.99]], "area": 138.61905000000007, "iscrowd": 0, "image_id": 290153, "bbox": [466.62, 234.63, 16.16, 22.62], "category_id": 62, "id": 2126422}, {"segmentation": [[403.76, 396.27, 409.98, 363.31, 415.58, 338.44, 418.69, 338.44, 425.53, 316.68, 429.88, 319.16, 431.75, 335.95, 413.71, 386.32, 410.6, 441.66, 413.09, 474.62, 413.09, 477.07, 409.98, 476.45, 405.63, 457.18, 402.52, 455.93, 402.52, 480.0, 378.89, 480.0, 355.88, 450.96, 348.42, 445.98, 349.67, 406.19, 375.16, 385.04]], "area": 5588.253549999998, "iscrowd": 0, "image_id": 290153, "bbox": [348.42, 316.68, 83.33, 163.32], "category_id": 62, "id": 2126432}, {"segmentation": [[227.25, 249.45, 224.48, 255.43, 232.77, 251.75, 232.31, 245.76], [222.18, 228.27, 232.31, 227.35, 230.93, 212.15, 225.86, 208.93, 218.04, 219.98, 221.72, 229.19], [240.14, 233.79, 240.14, 251.29, 249.8, 249.91, 247.04, 239.32, 243.82, 232.87, 241.98, 232.87], [239.68, 219.98, 297.69, 183.15, 358.47, 147.23, 358.93, 133.88, 354.78, 114.08, 365.83, 92.9, 372.28, 93.36, 401.29, 111.32, 416.02, 104.87, 419.7, 73.1, 428.91, 100.73, 447.79, 99.35, 456.54, 79.55, 472.65, 92.44, 480.94, 127.9, 472.65, 154.6, 450.09, 165.65, 388.97, 184.51, 362.1, 172.87, 357.62, 157.64, 242.08, 226.61, 240.29, 226.61]], "area": 10434.33925, "iscrowd": 0, "image_id": 35322, "bbox": [218.04, 73.1, 262.9, 182.33], "category_id": 64, "id": 2127955}, {"segmentation": [[319.2, 281.25, 312.73, 281.25, 308.64, 280.23, 303.19, 262.51, 303.19, 259.78, 311.36, 255.01, 302.85, 250.24, 297.05, 229.45, 295.35, 229.11, 296.71, 219.57, 293.98, 218.55, 297.05, 204.23, 303.53, 209.69, 310.0, 203.55, 317.5, 211.39, 318.52, 222.3, 325.34, 227.41, 328.06, 233.88, 326.7, 236.27, 319.88, 237.29, 320.57, 242.06, 324.66, 243.08, 324.31, 250.24, 313.75, 252.97, 313.75, 255.01, 319.88, 256.38]], "area": 1438.356899999999, "iscrowd": 0, "image_id": 294416, "bbox": [293.98, 203.55, 34.08, 77.7], "category_id": 64, "id": 2128408}, {"segmentation": [[637.34, 4.43, 637.34, 417.15, 3.32, 418.25, 1.11, 4.43, 621.85, 1.11, 639.55, 2.21]], "area": 263555.7208, "iscrowd": 0, "image_id": 294734, "bbox": [1.11, 1.11, 638.44, 417.14], "category_id": 67, "id": 2130033}, {"segmentation": [[135.13, 434.06, 245.26, 451.81, 281.49, 456.16, 304.68, 460.14, 97.45, 463.0, 1.8, 463.0, 0.0, 463.0, 0.0, 419.57]], "area": 7242.183549999998, "iscrowd": 0, "image_id": 332065, "bbox": [0.0, 419.57, 304.68, 43.43], "category_id": 67, "id": 2130284}, {"segmentation": [[379.8, 473.5, 382.3, 418.53, 392.3, 406.04, 283.6, 381.05, 271.11, 371.06, 258.62, 366.06, 217.39, 358.56, 201.15, 356.06, 173.66, 358.56, 171.16, 357.31, 148.67, 344.82, 159.92, 331.08, 163.66, 327.33, 84.96, 306.09, 49.97, 317.34, 47.48, 311.09, 57.47, 287.35, 32.48, 279.85, 1.25, 316.09, 3.75, 473.5]], "area": 47867.694899999995, "iscrowd": 0, "image_id": 222572, "bbox": [1.25, 279.85, 391.05, 193.65], "category_id": 67, "id": 2130506}, {"segmentation": [[167.13, 591.76, 110.04, 581.74, 58.96, 560.71, 0.0, 544.68, 0.0, 535.17, 0.0, 454.04, 0.0, 386.43, 7.37, 369.41, 29.41, 362.39, 37.92, 356.38, 50.94, 354.38, 79.99, 354.38, 99.52, 357.39, 130.07, 380.42, 153.11, 386.93, 152.1, 395.95, 131.07, 407.47, 109.54, 432.0, 112.04, 446.03, 156.61, 495.61, 208.69, 503.62, 249.26, 503.62, 312.36, 471.07, 315.36, 457.04, 333.89, 476.58, 360.94, 489.6, 346.41, 510.63, 392.99, 492.6, 425.04, 495.11, 446.07, 492.1, 458.59, 482.59, 473.11, 470.07, 480.0, 469.06, 478.62, 572.73, 480.0, 606.28, 480.0, 639.33, 382.47, 640.0, 315.36, 636.83, 204.69, 603.28], [146.42, 326.84, 170.96, 320.83, 193.5, 320.83, 207.02, 321.83, 207.02, 326.34, 190.49, 341.36, 178.97, 353.88, 156.94, 346.37, 146.92, 336.86, 141.92, 330.35]], "area": 73823.44360000003, "iscrowd": 0, "image_id": 509702, "bbox": [0.0, 320.83, 480.0, 319.17], "category_id": 67, "id": 2132039}, {"segmentation": [[10.0, 7.5, 226.67, 0.83, 226.67, 64.17, 5.0, 65.83, 1.67, 0.83]], "area": 13582.413900000001, "iscrowd": 0, "image_id": 405121, "bbox": [1.67, 0.83, 225.0, 65.0], "category_id": 72, "id": 2133766}, {"segmentation": [[243.02, 141.64, 267.16, 147.43, 265.23, 204.4, 242.06, 203.91, 243.51, 142.6]], "area": 1399.1314500000015, "iscrowd": 0, "image_id": 518481, "bbox": [242.06, 141.64, 25.1, 62.76], "category_id": 72, "id": 2133896}, {"segmentation": [[552.32, 279.08, 544.36, 259.59, 563.19, 253.62, 565.85, 256.93, 567.84, 256.01, 574.6, 269.53, 571.02, 271.26, 572.74, 274.44, 554.31, 278.81]], "area": 498.3138499999996, "iscrowd": 0, "image_id": 317153, "bbox": [544.36, 253.62, 30.24, 25.46], "category_id": 72, "id": 2134266}, {"segmentation": [[133.48, 241.35, 143.17, 241.35, 149.24, 240.85, 151.09, 241.86, 151.68, 243.71, 151.09, 247.42, 147.47, 248.94, 139.89, 249.27, 128.43, 249.27, 127.5, 247.34, 127.5, 244.47]], "area": 174.5585000000003, "iscrowd": 0, "image_id": 118550, "bbox": [127.5, 240.85, 24.18, 8.42], "category_id": 75, "id": 2135547}, {"segmentation": [[173.29, 357.27, 182.46, 356.25, 197.74, 355.57, 196.55, 349.29, 182.12, 347.25, 166.5, 347.76, 170.74, 355.06, 173.29, 356.76]], "area": 234.38699999999983, "iscrowd": 0, "image_id": 207463, "bbox": [166.5, 347.25, 31.24, 10.02], "category_id": 75, "id": 2136394}, {"segmentation": [[296.37, 172.55, 296.13, 168.05, 299.91, 166.69, 306.57, 166.77, 315.09, 167.33, 312.92, 171.35, 312.44, 173.68, 302.24, 173.19], [315.89, 172.71, 316.37, 170.14, 318.54, 170.14, 318.86, 170.95, 318.78, 173.03]], "area": 115.87579999999994, "iscrowd": 0, "image_id": 207463, "bbox": [296.13, 166.69, 22.73, 6.99], "category_id": 75, "id": 2136449}, {"segmentation": [[131.87, 204.95, 131.99, 199.84, 138.81, 200.44, 143.31, 204.22, 140.14, 206.78, 136.13, 207.02]], "area": 58.87289999999999, "iscrowd": 0, "image_id": 207463, "bbox": [131.87, 199.84, 11.44, 7.18], "category_id": 75, "id": 2136455}, {"segmentation": [[37.44, 96.08, 39.69, 109.57, 30.4, 109.12, 32.2, 105.67, 37.59, 105.67, 36.39, 101.77, 30.25, 101.47, 30.55, 98.93, 31.75, 95.33], [36.54, 119.92, 44.18, 119.58, 42.31, 125.02, 35.86, 124.51, 35.86, 120.43, 35.86, 120.43]], "area": 115.64609999999993, "iscrowd": 0, "image_id": 207463, "bbox": [30.25, 95.33, 13.93, 29.69], "category_id": 75, "id": 2136461}, {"segmentation": [[2.46, 380.9, 37.42, 358.33, 62.91, 335.75, 76.75, 308.8, 97.87, 288.41, 99.33, 283.31, 97.14, 282.58, 17.76, 270.2, 1.01, 282.58]], "area": 6243.97195, "iscrowd": 0, "image_id": 333643, "bbox": [1.01, 270.2, 98.32, 110.7], "category_id": 76, "id": 2136824}, {"segmentation": [[182.47, 275.17, 207.6, 261.14, 282.13, 235.72, 264.3, 252.08]], "area": 666.947700000002, "iscrowd": 0, "image_id": 541994, "bbox": [182.47, 235.72, 99.66, 39.45], "category_id": 76, "id": 2136883}, {"segmentation": [[64.65, 389.55, 321.0, 321.56, 327.69, 330.47, 308.74, 352.77, 349.98, 416.3, 15.6, 422.98]], "area": 17679.835950000004, "iscrowd": 0, "image_id": 541994, "bbox": [15.6, 321.56, 334.38, 101.42], "category_id": 76, "id": 2136927}, {"segmentation": [[196.66, 218.38, 206.32, 209.07, 219.93, 207.28, 210.62, 219.45, 196.3, 218.74]], "area": 147.34170000000015, "iscrowd": 0, "image_id": 130624, "bbox": [196.3, 207.28, 23.63, 12.17], "category_id": 77, "id": 2137741}, {"segmentation": [[172.26, 247.61, 159.37, 262.65, 147.55, 257.99, 157.22, 249.4, 166.53, 241.88, 170.11, 245.1]], "area": 224.1115999999997, "iscrowd": 0, "image_id": 130624, "bbox": [147.55, 241.88, 24.71, 20.77], "category_id": 77, "id": 2138151}, {"segmentation": [[110.91, 372.33, 151.03, 365.0, 174.57, 368.66, 173.22, 377.54, 133.09, 383.71, 110.72, 380.43, 109.56, 371.56]], "area": 833.0825999999998, "iscrowd": 0, "image_id": 286116, "bbox": [109.56, 365.0, 65.01, 18.71], "category_id": 77, "id": 2138468}, {"segmentation": [[370.75, 389.2, 371.17, 387.6, 371.72, 386.84, 372.21, 388.37, 372.07, 390.11, 371.1, 390.73, 369.84, 390.87, 369.77, 389.48, 369.91, 389.55]], "area": 5.288700000000016, "iscrowd": 0, "image_id": 448061, "bbox": [369.77, 386.84, 2.44, 4.03], "category_id": 77, "id": 2138607}, {"segmentation": [[500.0, 50.74, 436.93, 50.74, 447.85, 85.07, 438.49, 95.21, 434.58, 102.63, 444.73, 110.04, 465.02, 173.24, 466.19, 194.31, 452.53, 204.06, 440.05, 214.98, 452.14, 225.13, 461.11, 249.71, 471.65, 255.17, 493.1, 264.53, 490.37, 273.5, 474.38, 284.82, 485.69, 329.29, 490.76, 346.07, 500.0, 346.85]], "area": 11355.942250000002, "iscrowd": 0, "image_id": 428208, "bbox": [434.58, 50.74, 65.42, 296.11], "category_id": 79, "id": 2139208}, {"segmentation": [[357.92, 263.79, 237.75, 263.45, 235.33, 216.14, 247.76, 194.04, 352.74, 195.76, 358.26, 219.94]], "area": 8184.550700000001, "iscrowd": 0, "image_id": 110484, "bbox": [235.33, 194.04, 122.93, 69.75], "category_id": 79, "id": 2139238}, {"segmentation": [[204.29, 0.0, 640.0, 0.0, 640.0, 390.13, 640.0, 426.0, 4.64, 426.0, 4.64, 147.53, 5.8, 0.0]], "area": 270577.79260000004, "iscrowd": 0, "image_id": 441382, "bbox": [4.64, 0.0, 635.36, 426.0], "category_id": 79, "id": 2139566}, {"segmentation": [[501.05, 398.37, 482.1, 397.19, 461.74, 396.48, 458.18, 395.29, 455.1, 396.48, 454.16, 400.98, 450.6, 402.4, 444.92, 406.66, 439.47, 403.58, 435.45, 405.48, 432.61, 407.37, 429.53, 411.4, 429.76, 429.16, 429.53, 437.45, 429.05, 447.63, 433.55, 449.05, 434.03, 452.6, 434.97, 474.63, 434.74, 477.47, 434.74, 478.66, 434.43, 480.0, 493.86, 480.0, 493.62, 474.9, 494.81, 461.41, 499.78, 435.83, 503.09, 424.46, 507.59, 416.17, 509.49, 410.25, 504.99, 408.59, 502.38, 403.86]], "area": 5460.971050000002, "iscrowd": 0, "image_id": 501625, "bbox": [429.05, 395.29, 80.44, 84.71], "category_id": 79, "id": 2139902}, {"segmentation": [[267.17, 224.94, 266.9, 227.63, 299.18, 227.63, 301.33, 220.9, 291.11, 221.71, 276.85, 223.33, 272.82, 222.52, 267.44, 224.94]], "area": 171.30794999999955, "iscrowd": 0, "image_id": 518481, "bbox": [266.9, 220.9, 34.43, 6.73], "category_id": 81, "id": 2140562}, {"segmentation": [[194.1, 93.66, 237.89, 94.02, 238.61, 95.81, 244.0, 96.17, 244.71, 98.69, 244.71, 108.74, 241.48, 181.97, 233.23, 180.17, 226.77, 180.17, 230.0, 133.15, 223.89, 130.28, 209.53, 128.12, 202.0, 128.12, 196.25, 121.66, 194.46, 118.79, 186.56, 118.79, 187.28, 113.76, 187.28, 111.25, 186.56, 107.3, 186.56, 102.28, 190.51, 103.71, 193.02, 95.1]], "area": 2590.3450500000004, "iscrowd": 0, "image_id": 185591, "bbox": [186.56, 93.66, 58.15, 88.31], "category_id": 82, "id": 2141020}, {"segmentation": [[532.41, 222.68, 498.28, 227.0, 466.02, 217.3, 466.6, 212.39, 475.6, 212.74, 483.9, 219.29, 528.9, 220.34, 529.02, 217.3, 533.11, 219.05]], "area": 354.0649500000004, "iscrowd": 0, "image_id": 102315, "bbox": [466.02, 212.39, 67.09, 14.61], "category_id": 84, "id": 2141309}, {"segmentation": [[257.15, 121.97, 260.56, 131.87, 259.2, 159.86, 259.54, 180.13, 263.3, 180.47, 263.3, 131.65, 260.22, 121.41, 257.49, 122.09]], "area": 206.56700000000086, "iscrowd": 0, "image_id": 304587, "bbox": [257.15, 121.41, 6.15, 59.06], "category_id": 84, "id": 2141420}, {"segmentation": [[327.94, 179.35, 328.08, 193.3, 328.08, 194.94, 328.29, 195.36, 331.35, 195.93, 331.71, 194.15, 331.5, 180.21, 332.21, 175.01, 332.99, 171.74, 337.83, 170.74, 339.4, 170.39, 339.11, 169.1, 334.34, 169.18, 329.08, 169.53, 329.01, 171.6]], "area": 108.04260000000004, "iscrowd": 0, "image_id": 130949, "bbox": [327.94, 169.1, 11.46, 26.83], "category_id": 84, "id": 2141646}, {"segmentation": [[257.98, 7.26, 254.12, 10.6, 263.64, 43.03, 267.25, 45.61, 270.59, 42.78, 264.67, 30.16, 259.78, 15.24]], "area": 181.2600999999999, "iscrowd": 0, "image_id": 542041, "bbox": [254.12, 7.26, 16.47, 38.35], "category_id": 84, "id": 2141719}, {"segmentation": [[582.92, 19.92, 582.08, 16.44, 604.79, 6.83, 620.94, 0.0, 628.88, 0.0]], "area": 153.64969999999948, "iscrowd": 0, "image_id": 395893, "bbox": [582.08, 0.0, 46.8, 19.92], "category_id": 84, "id": 2141993}, {"segmentation": [[498.97, 290.44, 498.7, 315.56, 494.29, 314.9, 494.03, 288.97, 503.11, 288.3, 503.11, 289.37, 498.44, 290.17]], "area": 129.03585000000012, "iscrowd": 0, "image_id": 418505, "bbox": [494.03, 288.3, 9.08, 27.26], "category_id": 84, "id": 2142136}, {"segmentation": [[599.7, 0.44, 584.89, 6.2, 584.24, 10.48, 608.91, 0.77]], "area": 78.60649999999981, "iscrowd": 0, "image_id": 395893, "bbox": [584.24, 0.44, 24.67, 10.04], "category_id": 84, "id": 2142159}, {"segmentation": [[226.62, 336.65, 193.75, 353.19, 182.79, 354.0, 182.12, 353.42, 215.66, 335.98, 213.87, 330.83]], "area": 230.2792499999993, "iscrowd": 0, "image_id": 169686, "bbox": [182.12, 330.83, 44.5, 23.17], "category_id": 84, "id": 2142694}, {"segmentation": [[33.64, 163.15, 38.07, 195.07, 41.54, 195.07, 37.12, 162.2, 33.64, 161.88]], "area": 116.88429999999997, "iscrowd": 0, "image_id": 459794, "bbox": [33.64, 161.88, 7.9, 33.19], "category_id": 84, "id": 2142923}, {"segmentation": [[324.79, 243.16, 328.88, 244.58, 328.17, 282.73, 326.21, 282.38, 325.86, 271.73, 323.37, 267.65]], "area": 149.39679999999993, "iscrowd": 0, "image_id": 233439, "bbox": [323.37, 243.16, 5.51, 39.57], "category_id": 84, "id": 2143091}, {"segmentation": [[329.64, 261.28, 327.9, 282.74, 332.34, 284.67, 333.12, 282.74, 335.25, 270.75, 331.76, 261.86, 329.64, 261.66]], "area": 112.77390000000041, "iscrowd": 0, "image_id": 233439, "bbox": [327.9, 261.28, 7.35, 23.39], "category_id": 84, "id": 2143284}, {"segmentation": [[439.14, 350.02, 434.41, 355.54, 413.53, 346.48, 399.73, 262.93, 430.87, 237.71, 434.19, 236.07]], "area": 3170.65485, "iscrowd": 0, "image_id": 178436, "bbox": [399.73, 236.07, 39.41, 119.47], "category_id": 84, "id": 2143318}, {"segmentation": [[102.9, 336.73, 100.84, 360.91, 94.35, 363.86, 67.95, 366.37, 51.43, 366.67, 54.82, 329.06, 57.03, 300.15, 58.07, 294.55, 94.94, 288.94, 103.19, 288.21, 106.14, 294.25, 103.78, 331.57]], "area": 3616.6200500000004, "iscrowd": 0, "image_id": 319917, "bbox": [51.43, 288.21, 54.71, 78.46], "category_id": 84, "id": 2143533}, {"segmentation": [[638.33, 435.47, 589.51, 406.06, 587.15, 395.47, 547.74, 380.18, 526.57, 370.18, 493.63, 349.0, 500.1, 335.47, 583.04, 283.71, 638.92, 314.88, 638.92, 436.06]], "area": 12200.032849999994, "iscrowd": 0, "image_id": 67657, "bbox": [493.63, 283.71, 145.29, 152.35], "category_id": 84, "id": 2143924}, {"segmentation": [[121.61, 246.31, 94.97, 247.16, 98.78, 255.19, 98.78, 272.53, 94.97, 286.06, 94.97, 297.05, 94.97, 300.86, 103.0, 300.44, 112.31, 276.76, 119.07, 264.07, 126.26, 257.73, 129.64, 253.08, 131.33, 248.85]], "area": 1005.7264500000003, "iscrowd": 0, "image_id": 211622, "bbox": [94.97, 246.31, 36.36, 54.55], "category_id": 86, "id": 2145970}, {"segmentation": [[269.62, 174.37, 263.27, 175.28, 253.29, 171.95, 249.96, 163.48, 250.26, 150.18, 253.29, 139.29, 256.92, 128.11, 257.22, 119.03, 254.8, 110.27, 253.59, 104.22, 255.1, 100.59, 259.03, 99.38, 265.99, 106.03, 267.2, 125.38, 268.1, 148.67]], "area": 1029.29345, "iscrowd": 0, "image_id": 95880, "bbox": [249.96, 99.38, 19.66, 75.9], "category_id": 86, "id": 2146654}, {"segmentation": [[571.57, 173.11, 569.91, 163.14, 572.68, 162.03, 575.18, 168.96], [585.43, 188.08, 586.54, 196.67, 578.5, 196.67, 578.78, 193.9, 580.16, 190.02, 584.04, 188.08]], "area": 85.58664999999934, "iscrowd": 0, "image_id": 434047, "bbox": [569.91, 162.03, 16.63, 34.64], "category_id": 90, "id": 2148141}, {"segmentation": [[382.27, 384.68, 391.9, 381.16, 395.65, 381.16, 402.22, 381.16, 407.85, 386.32, 411.14, 390.55, 403.63, 391.95, 396.35, 391.72, 394.01, 392.42, 385.32, 392.66, 380.4, 391.95, 382.74, 384.91], [453.38, 371.54, 456.9, 372.48, 457.6, 374.12, 457.6, 375.76, 455.02, 378.34, 453.38, 378.81]], "area": 284.8994, "iscrowd": 0, "image_id": 434047, "bbox": [380.4, 371.54, 77.2, 21.12], "category_id": 90, "id": 2148202}, {"segmentation": [[93.02, 532.97, 90.08, 544.74, 85.88, 560.29, 86.3, 575.42, 93.02, 571.64, 97.22, 538.44, 94.7, 532.97], [97.64, 504.81, 103.53, 504.81, 102.69, 511.54, 97.22, 508.18]], "area": 303.36819999999983, "iscrowd": 0, "image_id": 90582, "bbox": [85.88, 504.81, 17.65, 70.61], "category_id": 90, "id": 2148215}, {"segmentation": [[490.82, 197.97, 498.13, 199.62, 505.63, 199.98, 504.72, 196.69, 493.56, 193.58], [478.57, 189.38, 481.13, 182.61, 476.38, 180.42, 471.26, 180.6, 469.79, 176.03, 462.48, 170.54, 456.08, 170.54, 454.44, 174.38, 457.18, 176.39, 461.93, 177.67, 464.49, 177.13, 478.02, 189.92]], "area": 206.6816000000001, "iscrowd": 0, "image_id": 434047, "bbox": [454.44, 170.54, 51.19, 29.44], "category_id": 90, "id": 2148265}, {"segmentation": [[102.43, 265.95, 102.27, 262.18, 102.1, 260.54, 101.77, 259.23, 101.12, 259.23, 100.13, 260.87, 99.48, 262.18, 99.97, 264.81, 100.63, 266.28, 101.77, 266.28]], "area": 15.183449999999906, "iscrowd": 0, "image_id": 274881, "bbox": [99.48, 259.23, 2.95, 7.05], "category_id": 1, "id": 2148380}, {"segmentation": [[115.32, 269.16, 115.32, 259.92, 113.95, 257.27, 112.75, 259.6, 113.55, 263.06, 112.99, 270.29]], "area": 23.78810000000001, "iscrowd": 0, "image_id": 369201, "bbox": [112.75, 257.27, 2.57, 13.02], "category_id": 1, "id": 2148447}, {"segmentation": [[123.61, 23.17, 124.3, 28.82, 124.01, 31.5, 121.53, 34.08, 126.29, 35.47, 118.95, 40.32, 117.56, 39.63, 113.79, 34.77, 116.37, 29.61, 115.18, 21.58, 118.06, 20.69, 121.43, 20.49, 123.11, 20.39]], "area": 152.48014999999995, "iscrowd": 0, "image_id": 289693, "bbox": [113.79, 20.39, 12.5, 19.93], "category_id": 1, "id": 2150684}, {"segmentation": [[112.68, 307.54, 110.96, 285.6, 108.52, 282.16, 113.4, 277.14, 112.82, 273.56, 114.83, 272.12, 118.13, 274.56, 119.85, 286.46, 117.12, 307.83, 113.97, 308.26]], "area": 243.60959999999992, "iscrowd": 0, "image_id": 328487, "bbox": [108.52, 272.12, 11.33, 36.14], "category_id": 1, "id": 2150884}, {"segmentation": [[221.3, 318.56, 198.2, 333.34, 190.81, 407.25, 196.35, 433.11, 195.43, 449.74, 171.41, 479.31, 161.25, 541.21, 164.02, 572.62, 166.79, 602.18, 168.64, 628.05, 207.44, 636.36, 231.46, 606.8, 236.08, 604.03, 234.23, 592.02, 241.62, 583.7, 241.62, 581.85, 243.47, 565.23, 250.86, 555.99, 249.01, 546.75, 260.1, 547.67, 260.1, 539.36, 268.41, 528.27, 272.11, 530.12, 282.27, 494.09, 262.87, 490.39, 253.63, 479.31, 253.63, 464.53, 260.1, 408.17, 238.85, 373.06, 231.46, 346.27, 224.07, 336.11, 224.07, 326.87]], "area": 21385.605400000004, "iscrowd": 0, "image_id": 34354, "bbox": [161.25, 318.56, 121.02, 317.8], "category_id": 1, "id": 2151173}, {"segmentation": [[140.84, 233.18, 139.5, 235.34, 138.06, 235.95, 138.06, 237.8, 138.57, 238.73, 145.87, 238.63, 145.57, 235.85, 145.15, 234.93, 143.3, 234.51, 142.79, 234.0, 143.1, 232.56, 142.07, 232.05, 141.56, 231.74, 140.73, 232.15, 140.73, 233.08]], "area": 34.810249999999925, "iscrowd": 0, "image_id": 146049, "bbox": [138.06, 231.74, 7.81, 6.99], "category_id": 1, "id": 2151315}, {"segmentation": [[451.24, 227.9, 456.64, 225.45, 456.64, 224.22, 458.35, 219.56, 458.35, 208.52, 458.35, 204.1, 455.16, 200.42, 451.97, 197.47, 451.48, 202.63, 444.12, 204.84, 444.12, 207.78, 439.95, 208.52, 436.02, 209.99, 436.76, 212.93, 435.53, 214.9, 436.51, 218.33, 440.19, 219.31, 439.21, 221.28, 442.4, 222.5]], "area": 429.3744500000007, "iscrowd": 0, "image_id": 14575, "bbox": [435.53, 197.47, 22.82, 30.43], "category_id": 1, "id": 2151598}, {"segmentation": [[110.06, 105.88, 70.13, 159.45, 30.19, 247.11, 14.61, 285.1, 10.71, 302.63, 24.35, 333.8, 75.97, 363.02, 111.04, 345.49, 103.25, 366.92, 150.0, 367.89, 166.56, 353.28, 186.04, 343.54, 214.29, 262.69, 244.48, 237.37, 218.18, 232.5, 165.58, 255.88, 142.21, 252.95, 132.47, 276.33, 114.94, 290.94, 89.61, 287.05, 86.69, 265.62, 61.36, 269.51, 58.44, 236.4, 94.48, 200.36, 100.32, 188.67, 102.27, 172.11, 101.3, 160.42, 117.86, 123.41, 186.04, 116.59, 217.21, 138.99, 252.27, 176.01, 253.25, 186.72, 285.39, 178.93, 302.92, 189.64, 332.14, 194.51, 364.29, 218.86, 366.23, 254.9, 358.44, 284.12, 348.7, 285.1, 335.06, 311.4, 326.3, 363.99, 336.04, 367.89, 499.68, 364.97, 499.68, 287.05, 430.52, 124.38, 383.77, 88.34, 340.91, 72.76, 317.53, 63.02, 323.38, 19.19, 324.35, 2.63, 185.06, 4.58, 194.81, 43.54, 202.6, 73.73, 195.78, 71.79, 182.14, 86.4, 124.68, 106.85]], "area": 81532.75115, "iscrowd": 0, "image_id": 75973, "bbox": [10.71, 2.63, 488.97, 365.26], "category_id": 1, "id": 2152179}, {"segmentation": [[37.51, 49.88, 35.01, 51.59, 34.39, 54.86, 35.01, 57.51, 35.95, 58.29, 33.61, 59.7, 31.74, 62.19, 31.43, 66.71, 31.59, 76.53, 34.08, 78.09, 40.47, 78.55, 40.94, 78.71, 40.62, 69.83, 40.0, 63.9, 40.31, 57.67, 38.91, 52.06, 37.82, 50.34], [44.36, 58.76, 47.01, 62.5, 48.88, 68.27, 49.35, 70.76, 48.42, 73.72, 48.73, 75.28, 48.73, 76.53, 47.01, 79.8, 45.61, 79.64, 44.68, 64.99], [47.01, 81.67, 48.88, 83.85, 49.51, 86.81, 50.13, 88.53, 47.79, 90.09, 46.86, 86.66, 46.7, 82.6]], "area": 282.23834999999997, "iscrowd": 0, "image_id": 382979, "bbox": [31.43, 49.88, 18.7, 40.21], "category_id": 1, "id": 2152254}, {"segmentation": [[107.58, 19.63, 104.25, 24.07, 65.44, 28.5, 52.13, 26.29, 52.13, 41.81, 43.25, 39.59, 23.29, 62.89, 33.27, 90.61, 46.58, 98.38, 63.22, 81.74, 72.09, 79.52, 57.67, 95.05, 49.91, 106.14, 51.02, 117.23, 72.09, 132.76, 80.96, 131.65, 80.96, 160.49, 145.29, 160.49, 199.64, 156.05, 244.0, 166.03, 242.89, 75.09, 259.53, 18.52, 260.64, 2.99, 104.25, 2.99]], "area": 29583.849650000004, "iscrowd": 0, "image_id": 223838, "bbox": [23.29, 2.99, 237.35, 163.04], "category_id": 1, "id": 2152638}, {"segmentation": [[190.56, 102.57, 230.7, 93.52, 226.17, 82.22, 233.52, 83.35, 230.13, 78.83, 219.96, 78.83, 219.39, 65.26, 207.52, 63.0, 199.61, 66.96, 202.43, 81.65, 182.65, 99.18]], "area": 972.1208499999991, "iscrowd": 0, "image_id": 45949, "bbox": [182.65, 63.0, 50.87, 39.57], "category_id": 1, "id": 2152745}, {"segmentation": [[43.64, 196.61, 14.96, 226.54, 6.23, 252.72, 8.73, 252.72, 3.74, 468.41, 268.05, 472.15, 258.08, 455.94, 187.01, 440.98, 204.47, 417.29, 251.84, 378.64, 275.53, 333.76, 266.81, 320.04, 219.43, 332.51, 195.74, 362.43, 149.61, 383.63, 152.1, 315.05, 159.58, 344.98, 187.01, 333.76, 195.74, 297.6, 183.27, 252.72, 177.04, 243.99, 182.03, 226.54, 192.0, 220.3, 183.27, 202.85, 193.25, 171.68, 165.82, 143.0, 140.88, 140.51, 94.75, 150.48, 74.81, 149.24, 58.6, 169.18, 56.1, 196.61]], "area": 60316.63845, "iscrowd": 0, "image_id": 130949, "bbox": [3.74, 140.51, 271.79, 331.64], "category_id": 1, "id": 2152861}, {"segmentation": [[346.73, 323.85, 341.35, 316.31, 332.02, 332.82, 327.0, 334.97, 325.57, 332.1, 340.99, 306.99, 341.35, 300.89, 338.12, 299.09, 345.3, 295.15, 351.76, 296.94, 352.11, 300.89, 353.55, 313.44]], "area": 415.94395000000014, "iscrowd": 0, "image_id": 404964, "bbox": [325.57, 295.15, 27.98, 39.82], "category_id": 1, "id": 2152899}, {"segmentation": [[368.0, 278.83, 368.0, 276.17, 368.54, 273.77, 370.94, 271.9, 373.34, 271.9, 375.2, 275.63, 375.47, 279.1, 375.47, 279.1, 380.27, 280.97, 383.74, 287.9, 387.47, 293.24, 393.61, 294.04, 396.27, 293.24, 396.27, 316.44, 394.67, 307.9, 392.01, 304.97, 385.34, 304.44, 379.2, 305.77, 372.54, 305.77, 369.6, 300.44, 368.27, 292.17, 366.94, 284.97, 366.94, 284.7, 364.54, 282.03, 367.47, 279.63]], "area": 596.0541999999994, "iscrowd": 0, "image_id": 23676, "bbox": [364.54, 271.9, 31.73, 44.54], "category_id": 1, "id": 2153928}, {"segmentation": [[508.71, 410.69, 489.99, 413.53, 490.56, 378.36, 476.95, 376.66, 474.11, 311.43, 471.28, 304.63, 506.44, 302.93, 520.62, 334.12, 515.52, 381.2, 511.55, 407.86], [444.62, 412.96, 449.16, 311.43, 450.29, 304.63, 439.51, 304.63, 429.87, 327.32, 432.14, 343.76, 420.23, 352.27, 424.2, 396.51, 425.33, 403.89, 422.5, 410.69], [467.31, 289.93, 472.82, 284.42, 496.2, 284.64, 522.77, 283.2, 537.14, 276.96, 541.94, 272.7, 546.25, 272.04, 546.36, 275.58, 544.15, 277.23, 543.99, 278.61, 547.92, 281.11, 568.3, 278.38, 548.1, 290.66]], "area": 6733.813650000004, "iscrowd": 0, "image_id": 502517, "bbox": [420.23, 272.04, 148.07, 141.49], "category_id": 1, "id": 2154023}, {"segmentation": [[117.72, 363.53, 120.24, 355.56, 119.61, 352.2, 120.03, 349.16, 121.08, 347.06, 121.61, 346.01, 121.19, 344.12, 121.92, 341.92, 123.28, 341.4, 124.96, 341.4, 126.54, 342.34, 125.49, 345.8, 127.58, 346.75, 127.9, 353.15, 126.64, 355.03, 126.22, 356.4, 126.22, 366.68, 124.54, 367.2, 123.91, 365.53, 123.6, 356.4, 122.55, 355.45, 120.14, 364.06, 119.3, 365.53]], "area": 139.99760000000003, "iscrowd": 0, "image_id": 448061, "bbox": [117.72, 341.4, 10.18, 25.8], "category_id": 1, "id": 2154989}, {"segmentation": [[259.31, 166.23, 270.44, 138.24, 280.89, 132.51, 282.91, 120.7, 293.03, 116.32, 298.42, 116.32, 300.78, 185.11, 299.1, 190.17, 277.18, 192.53, 272.46, 181.4, 267.06, 177.02, 260.66, 177.02, 258.3, 175.33]], "area": 2189.2893999999997, "iscrowd": 0, "image_id": 157923, "bbox": [258.3, 116.32, 42.48, 76.21], "category_id": 1, "id": 2155104}, {"segmentation": [[229.16, 272.25, 233.89, 265.15, 244.54, 251.55, 243.35, 249.19, 252.22, 237.95, 259.91, 229.08, 261.68, 223.76, 259.91, 217.85, 258.14, 215.48, 252.22, 216.67, 250.45, 214.3, 242.17, 218.44, 229.76, 215.48, 225.02, 216.08, 220.29, 211.34, 223.84, 209.57, 229.16, 213.12, 242.76, 211.34, 249.86, 207.21, 259.32, 203.07, 264.05, 202.48, 261.09, 195.97, 261.09, 189.47, 265.82, 185.92, 271.74, 185.92, 274.1, 190.06, 274.69, 194.79, 272.33, 198.93, 282.38, 201.88, 290.66, 203.66, 298.94, 203.66, 307.8, 204.25, 314.31, 200.11, 317.86, 200.7, 320.22, 204.25, 314.9, 206.02, 310.17, 206.61, 296.57, 209.57, 289.48, 211.94, 282.97, 215.48, 283.56, 229.67, 284.15, 233.81, 281.2, 241.5, 282.97, 248.0, 281.79, 263.38, 284.15, 269.29, 284.15, 272.84, 275.88, 273.43, 278.24, 263.97, 273.51, 247.41, 271.15, 242.68, 258.14, 249.78, 257.55, 246.82, 249.27, 253.33, 240.4, 267.52, 240.4, 272.84, 235.08, 273.43]], "area": 2211.5552000000002, "iscrowd": 0, "image_id": 385644, "bbox": [220.29, 185.92, 99.93, 87.51], "category_id": 1, "id": 2155181}, {"segmentation": [[117.59, 147.67, 117.59, 129.17, 134.14, 101.9, 147.78, 98.0, 154.6, 100.92, 161.02, 96.54, 184.79, 123.32, 180.89, 143.78, 179.92, 164.23, 189.66, 177.87, 189.66, 199.29, 192.58, 210.98, 208.16, 218.77, 212.06, 221.69, 197.45, 243.12, 181.87, 255.78, 180.89, 266.5, 189.66, 282.08, 175.05, 291.82, 174.08, 289.87, 160.44, 297.66, 156.54, 309.35, 120.51, 292.79, 122.46, 287.92, 146.8, 285.0, 160.44, 257.73, 167.26, 248.96, 189.66, 231.43, 168.23, 213.9, 162.39, 174.94, 152.65, 169.1, 139.01, 155.46, 130.25, 151.57]], "area": 7329.684500000002, "iscrowd": 0, "image_id": 130624, "bbox": [117.59, 96.54, 94.47, 212.81], "category_id": 1, "id": 2155242}, {"segmentation": [[220.92, 180.13, 220.64, 200.9, 224.91, 206.31, 223.77, 207.45, 216.37, 207.73, 216.37, 189.8]], "area": 114.36929999999953, "iscrowd": 0, "image_id": 84653, "bbox": [216.37, 180.13, 8.54, 27.6], "category_id": 1, "id": 2155374}, {"segmentation": [[391.21, 427.7, 364.94, 398.51, 338.66, 411.65, 318.22, 397.05, 318.22, 386.83, 328.44, 369.31, 329.9, 340.12, 309.46, 347.42, 267.13, 308.01, 252.54, 296.33, 229.18, 296.33, 221.88, 309.46, 201.44, 277.35, 197.06, 220.42, 264.21, 163.49, 366.39, 150.35, 380.99, 134.3, 402.89, 135.76, 418.95, 166.41, 418.95, 192.69, 348.88, 239.4, 391.21, 360.56, 394.13, 432.08], [427.7, 455.44, 453.98, 462.74, 458.36, 474.42, 449.6, 487.55], [369.31, 499.23, 337.2, 494.85, 335.74, 465.66, 362.25, 484.08]], "area": 34085.03270000001, "iscrowd": 0, "image_id": 14960, "bbox": [197.06, 134.3, 261.3, 364.93], "category_id": 1, "id": 2155426}, {"segmentation": [[100.57, 243.88, 100.29, 241.65, 96.1, 239.69, 95.54, 233.26, 98.34, 223.2, 101.13, 214.81, 107.0, 208.1, 114.55, 204.47, 117.07, 201.67, 121.82, 201.39, 126.85, 201.95, 129.65, 205.03, 137.75, 206.14, 139.71, 206.98, 143.34, 213.13, 144.18, 218.72, 144.74, 224.04, 144.74, 228.23, 146.42, 233.26, 145.3, 235.78, 145.3, 237.73, 146.98, 239.13, 150.05, 241.65, 151.45, 243.6]], "area": 1767.1927000000003, "iscrowd": 0, "image_id": 384895, "bbox": [95.54, 201.39, 55.91, 42.49], "category_id": 1, "id": 2155892}, {"segmentation": [[470.46, 135.85, 471.8, 128.06, 470.46, 124.57, 466.97, 121.89, 464.28, 121.62, 461.06, 122.15, 459.18, 124.03, 458.64, 126.72, 457.3, 130.21, 457.57, 132.09, 470.73, 136.12], [448.98, 157.87, 450.32, 168.07, 451.12, 172.64, 455.15, 171.03, 459.72, 169.95, 463.74, 171.56, 466.97, 175.32, 467.77, 179.89, 468.04, 181.77, 468.58, 183.38, 472.07, 183.91, 473.14, 175.05, 473.68, 168.07, 473.68, 167.27, 472.61, 164.31, 473.14, 160.28, 474.49, 157.6, 473.41, 154.38, 471.53, 151.96, 470.19, 149.01, 470.19, 146.32, 449.51, 158.94], [447.1, 196.0, 446.02, 212.38, 451.39, 213.18, 454.61, 212.92, 458.91, 210.77, 461.6, 207.81, 464.28, 205.13, 464.28, 201.1, 463.48, 200.03, 447.9, 196.27]], "area": 893.4247999999997, "iscrowd": 0, "image_id": 548198, "bbox": [446.02, 121.62, 28.47, 91.56], "category_id": 1, "id": 2156085}, {"segmentation": [[285.51, 357.82, 335.38, 294.23, 356.57, 320.42, 370.29, 337.87, 380.26, 351.58, 386.49, 361.56, 400.21, 360.31, 395.22, 346.6, 386.49, 329.14, 364.05, 286.75, 359.06, 253.09, 371.53, 263.06, 374.03, 265.56, 379.01, 249.35, 375.27, 235.64, 364.05, 229.4, 359.06, 225.66, 356.57, 209.45, 351.58, 205.71, 340.36, 205.71, 329.14, 221.92, 322.91, 226.91, 324.16, 249.35, 321.66, 265.56, 289.25, 324.16, 284.26, 332.88, 274.29, 329.14, 275.53, 341.61, 281.77, 354.08]], "area": 6829.790650000003, "iscrowd": 0, "image_id": 524522, "bbox": [274.29, 205.71, 125.92, 155.85], "category_id": 1, "id": 2156373}, {"segmentation": [[336.3, 118.35, 338.5, 114.69, 335.57, 86.88, 335.57, 70.05, 335.57, 62.74, 341.42, 56.88, 345.81, 60.54, 345.81, 71.52, 347.28, 87.61, 346.55, 96.4, 346.55, 111.76, 345.81, 119.81, 338.5, 122.01, 341.42, 119.08, 337.77, 117.62]], "area": 604.4908000000003, "iscrowd": 0, "image_id": 20251, "bbox": [335.57, 56.88, 11.71, 65.13], "category_id": 1, "id": 2156610}, {"segmentation": [[568.43, 253.36, 568.6, 250.81, 570.98, 249.62, 574.2, 250.98, 575.22, 253.52, 573.36, 258.28, 575.9, 262.69, 578.45, 263.88, 578.28, 265.75, 575.39, 267.62, 575.9, 276.96, 570.98, 275.43, 569.28, 270.0, 569.45, 265.24, 570.98, 258.62, 570.47, 255.73]], "area": 144.88614999999976, "iscrowd": 0, "image_id": 165347, "bbox": [568.43, 249.62, 10.02, 27.34], "category_id": 1, "id": 2156676}, {"segmentation": [[426.57, 188.68, 420.27, 188.68, 416.8, 187.11, 418.38, 178.92, 424.05, 172.62, 427.51, 169.79, 429.4, 169.47, 430.35, 164.43, 436.65, 165.69, 436.96, 172.62, 436.33, 175.14, 436.96, 179.55, 436.02, 182.7, 441.68, 186.16, 441.37, 189.31, 433.81, 187.74, 427.83, 187.11]], "area": 356.20829999999995, "iscrowd": 0, "image_id": 41577, "bbox": [416.8, 164.43, 24.88, 24.88], "category_id": 1, "id": 2156918}, {"segmentation": [[26.34, 90.73, 18.25, 98.55, 17.44, 103.67, 18.25, 115.81, 27.69, 124.17, 38.75, 126.32, 43.06, 132.26, 51.96, 136.03, 58.97, 136.03, 62.75, 134.69, 61.94, 157.88, 58.87, 154.94, 46.28, 153.37, 32.12, 149.17, 17.95, 151.27, 21.63, 156.52, 39.99, 159.66, 54.15, 168.06, 63.6, 172.78, 64.64, 179.6, 63.6, 204.78, 75.14, 225.77, 82.48, 231.54, 78.29, 215.8, 71.99, 194.81, 66.22, 174.35, 65.69, 132.38, 72.51, 118.74, 78.81, 110.35, 81.43, 107.2, 81.43, 101.95, 67.79, 93.04, 43.66, 86.22, 33.17, 84.64]], "area": 3209.4831, "iscrowd": 0, "image_id": 64492, "bbox": [17.44, 84.64, 65.04, 146.9], "category_id": 1, "id": 2157313}, {"segmentation": [[233.96, 408.04, 221.76, 395.84, 229.52, 374.78, 230.63, 347.06, 221.76, 294.94, 222.87, 250.59, 261.68, 228.41, 271.66, 194.04, 291.62, 176.3, 294.94, 154.12, 288.29, 136.38, 282.75, 121.97, 271.66, 94.25, 255.03, 73.18, 242.83, 45.46, 223.98, 39.92, 217.33, 37.7, 222.87, 17.74, 255.03, 29.94, 281.64, 68.75, 307.14, 90.92, 345.95, 105.34, 360.36, 107.55, 361.47, 92.03, 385.87, 76.51, 414.69, 90.92, 408.04, 126.4, 392.52, 136.38, 419.13, 146.36, 459.05, 155.23, 464.59, 127.51, 457.94, 105.34, 467.92, 100.9, 474.57, 83.16, 492.31, 116.42, 474.57, 170.76, 460.16, 185.17, 430.22, 188.5, 400.28, 200.69, 381.43, 218.44, 362.58, 268.33, 337.08, 293.83, 304.92, 319.34, 287.18, 344.84, 271.66, 379.21, 262.79, 399.17, 246.16, 400.28, 235.07, 408.04]], "area": 38479.64285, "iscrowd": 0, "image_id": 1431, "bbox": [217.33, 17.74, 274.98, 390.3], "category_id": 1, "id": 2157476}, {"segmentation": [[64.29, 124.49, 69.24, 130.68, 75.42, 128.2, 74.18, 115.84, 75.42, 97.29, 69.24, 88.64, 65.53, 87.4, 59.35, 83.69, 56.87, 77.51, 53.16, 78.75, 51.93, 87.4, 45.75, 91.11, 49.45, 96.06, 61.82, 101.0, 65.53, 109.66]], "area": 649.7282000000001, "iscrowd": 0, "image_id": 522150, "bbox": [45.75, 77.51, 29.67, 53.17], "category_id": 1, "id": 2157750}, {"segmentation": [[54.39, 71.85, 53.57, 73.6, 56.14, 76.48, 59.84, 71.13, 59.74, 69.9, 57.06, 70.41, 54.7, 71.23, 54.49, 71.95], [60.04, 55.77, 63.6, 57.97, 61.06, 60.0, 60.72, 63.22, 60.72, 66.27, 55.47, 67.79, 54.28, 68.64, 55.3, 64.4, 55.3, 60.68, 54.62, 58.48, 52.76, 55.6, 54.62, 53.56, 57.33, 52.38, 58.52, 52.38, 60.21, 49.33, 63.6, 49.16, 66.81, 52.21, 69.52, 56.44, 70.2, 60.0, 69.35, 61.19, 64.78, 60.0, 65.8, 57.63, 63.94, 56.1, 61.39, 53.73, 60.38, 55.6], [64.95, 62.37, 68.51, 67.45, 69.35, 62.71, 64.95, 61.69]], "area": 192.67735, "iscrowd": 0, "image_id": 382979, "bbox": [52.76, 49.16, 17.44, 27.32], "category_id": 1, "id": 2157971}, {"segmentation": [[268.12, 175.95, 266.42, 173.24, 259.32, 168.84, 252.89, 169.18, 247.13, 158.35, 243.41, 144.14, 245.44, 128.91, 253.56, 117.4, 271.5, 108.6, 288.42, 109.28, 301.96, 116.72, 308.05, 130.26, 311.1, 138.72, 312.11, 143.8, 310.42, 148.54, 315.16, 160.38, 328.02, 164.44, 336.48, 162.75, 356.11, 158.35, 371.67, 160.38, 376.75, 163.43, 383.52, 162.75, 389.27, 168.5, 401.45, 175.61, 426.84, 180.69, 443.42, 183.05, 456.96, 182.72, 458.99, 176.62, 461.02, 171.21, 463.05, 176.29, 469.14, 165.12, 473.2, 156.66, 477.26, 159.36, 481.32, 149.89, 484.37, 147.86, 493.17, 147.86, 495.54, 160.38, 494.18, 172.22, 492.15, 199.3, 489.11, 209.79, 480.65, 210.47, 479.29, 207.42, 471.85, 208.77, 464.4, 208.1, 462.03, 206.41, 447.14, 205.39, 447.14, 201.33, 415.33, 202.68, 392.32, 206.07, 385.89, 204.71, 380.81, 206.41, 390.96, 220.96, 402.47, 241.94, 404.16, 264.62, 403.49, 273.75, 425.14, 291.01, 442.4, 299.13, 455.6, 302.86, 466.09, 303.53, 477.94, 306.24, 487.41, 312.67, 488.77, 327.22, 481.66, 348.21, 480.65, 352.27, 456.96, 339.41, 448.5, 323.16, 443.42, 318.42, 421.76, 312.67, 391.64, 305.23, 380.81, 318.09, 365.24, 323.84, 338.17, 317.07, 315.83, 299.81, 283.34, 270.71, 267.78, 252.43, 226.83, 254.8, 217.69, 244.99, 210.92, 248.03, 210.58, 250.4, 214.64, 254.8, 221.07, 260.55, 230.55, 268.0, 232.58, 272.4, 231.57, 273.75, 226.83, 272.06, 229.53, 275.11, 231.23, 278.83, 229.53, 283.57, 222.77, 283.91, 216.67, 281.54, 209.23, 282.89, 201.11, 275.44, 197.72, 265.63, 192.98, 262.92, 184.86, 259.54, 178.43, 249.72, 176.06, 243.97, 177.08, 235.51, 188.92, 221.97, 193.32, 216.56, 197.72, 213.51, 205.17, 217.24, 214.64, 211.48, 219.72, 211.48, 233.93, 200.31, 233.93, 196.25, 238.0, 193.21, 247.81, 189.48, 259.99, 183.05, 262.36, 180.35, 266.76, 178.99, 268.79, 177.3]], "area": 32351.461349999998, "iscrowd": 0, "image_id": 487322, "bbox": [176.06, 108.6, 319.48, 243.67], "category_id": 1, "id": 2157993}, {"segmentation": [[64.86, 159.68, 67.52, 176.97, 67.94, 185.99, 69.21, 190.02, 71.23, 206.88, 71.76, 215.26, 70.06, 217.91, 66.45, 209.96, 60.62, 198.71, 56.41, 189.3, 52.55, 176.44, 52.55, 174.02, 50.62, 163.09, 50.62, 158.43, 52.07, 153.61, 52.23, 142.51, 47.08, 136.57, 39.53, 128.53, 40.17, 121.78, 42.9, 115.02, 46.76, 111.17, 50.94, 110.52, 58.34, 112.29, 65.25, 116.47, 68.3, 124.19, 68.79, 129.49, 67.5, 133.83, 64.29, 138.01, 59.3, 141.87, 55.12, 145.41, 63.48, 156.02]], "area": 1453.63875, "iscrowd": 0, "image_id": 446331, "bbox": [39.53, 110.52, 32.23, 107.39], "category_id": 1, "id": 2158022}, {"segmentation": [[1.19, 61.72, 10.68, 104.46, 9.5, 115.14, 13.06, 122.26, 37.98, 127.01, 54.6, 136.51, 55.79, 149.56, 56.98, 168.56, 61.72, 189.92, 64.1, 200.61, 60.54, 205.35, 45.11, 205.35, 39.17, 207.73, 27.3, 227.91, 27.3, 237.4, 34.42, 252.83, 41.55, 281.32, 45.11, 309.81, 43.92, 334.74, 41.55, 348.98, 36.8, 382.22, 34.42, 390.53, 9.5, 400.02, 0.0, 413.08, 0.0, 64.1]], "area": 12438.24955, "iscrowd": 0, "image_id": 139571, "bbox": [0.0, 61.72, 64.1, 351.36], "category_id": 1, "id": 2158209}, {"segmentation": [[233.93, 314.81, 230.92, 306.39, 230.92, 284.75, 238.74, 281.75, 244.15, 275.74, 243.55, 263.71, 255.57, 262.51, 257.98, 267.32, 259.78, 279.34, 264.59, 283.55, 268.8, 293.77, 268.2, 306.39, 270.6, 311.8]], "area": 1438.7995000000005, "iscrowd": 0, "image_id": 412289, "bbox": [230.92, 262.51, 39.68, 52.3], "category_id": 1, "id": 2158571}, {"segmentation": [[516.16, 145.87, 493.71, 177.04, 483.74, 235.64, 473.77, 351.58, 471.27, 395.22, 476.26, 400.21, 487.48, 369.04, 496.21, 284.26, 551.06, 213.19, 600.94, 174.55, 640.0, 164.57, 634.6, 89.77, 579.74, 92.26, 578.49, 53.61, 553.56, 18.7, 507.43, 26.18, 470.03, 59.84, 507.43, 132.16, 517.4, 137.14], [574.75, 233.14, 532.36, 289.25, 511.17, 365.3, 612.16, 369.04, 617.14, 398.96, 639.58, 398.96, 634.6, 195.74, 634.6, 195.74, 579.74, 218.18]], "area": 40964.038750000014, "iscrowd": 0, "image_id": 525813, "bbox": [470.03, 18.7, 169.97, 381.51], "category_id": 1, "id": 2158574}, {"segmentation": [[328.48, 179.4, 324.71, 179.4, 321.63, 180.43, 322.31, 183.85, 321.63, 186.25, 323.68, 189.33, 324.03, 194.12, 326.08, 200.62, 328.82, 197.88, 332.24, 194.46, 334.29, 194.46, 337.03, 193.09, 338.74, 194.8, 339.77, 199.25, 341.82, 201.99, 342.85, 199.59, 342.51, 194.12, 342.51, 192.41, 340.45, 190.7, 337.37, 190.01, 335.66, 189.67, 334.64, 188.98, 333.27, 186.25, 332.92, 186.25, 332.24, 183.85, 329.84, 181.11, 328.48, 179.4]], "area": 226.60790000000034, "iscrowd": 0, "image_id": 41577, "bbox": [321.63, 179.4, 21.22, 22.59], "category_id": 1, "id": 2158617}, {"segmentation": [[60.21, 9.7, 69.64, 52.5, 77.62, 85.86, 96.48, 122.13, 92.85, 133.74, 87.77, 143.17, 72.54, 152.6, 58.76, 159.13, 31.92, 180.16, 31.92, 196.85, 16.68, 266.49, 1.45, 325.97, 5.08, 336.85, 211.09, 345.55, 232.12, 222.96, 233.0, 172.91, 232.85, 156.23, 230.67, 148.97, 204.56, 131.56, 216.89, 118.51, 210.36, 103.27, 194.4, 80.06, 187.15, 41.62, 185.7, 33.64, 178.77, 12.38, 180.11, 0.0, 134.05, 0.0, 100.01, 0.0, 61.96, 1.7, 61.96, 1.7, 60.63, 5.03, 60.63, 9.04]], "area": 56936.353899999995, "iscrowd": 0, "image_id": 191858, "bbox": [1.45, 0.0, 231.55, 345.55], "category_id": 1, "id": 2158876}, {"segmentation": [[370.39, 108.67, 368.81, 88.09, 370.39, 62.75, 365.63, 45.33, 362.47, 35.84, 357.72, 4.17, 188.33, 4.17, 181.99, 32.66, 180.4, 40.58, 175.66, 73.82, 175.66, 78.58, 174.06, 113.4, 191.48, 141.91, 205.73, 157.74, 204.15, 162.49, 221.57, 190.99, 218.4, 202.07, 161.41, 230.57, 162.99, 259.06, 166.15, 268.57, 169.33, 304.97, 172.48, 338.22, 172.48, 366.71, 169.33, 379.38, 158.24, 411.05, 151.9, 437.96, 147.15, 452.21, 147.15, 493.38, 143.99, 515.54, 137.66, 528.21, 136.08, 570.95, 132.9, 580.46, 131.32, 604.19, 131.32, 624.77, 128.17, 627.95, 421.05, 626.37, 425.0, 154.58, 425.0, 145.07, 424.21, 133.98, 417.88, 118.16, 411.54, 110.25, 398.88, 105.49, 387.81, 110.25, 384.63, 110.25]], "area": 153810.63905000006, "iscrowd": 0, "image_id": 322725, "bbox": [128.17, 4.17, 296.83, 623.78], "category_id": 1, "id": 2159007}, {"segmentation": [[226.56, 185.8, 234.89, 189.01, 249.63, 190.93, 258.6, 196.06, 257.32, 217.85, 258.6, 225.54, 259.88, 240.92, 266.29, 252.46, 265.65, 259.51, 257.96, 270.4, 248.99, 269.12, 230.4, 276.81, 227.2, 272.33, 226.56, 262.71, 222.71, 258.87, 214.38, 261.43, 211.17, 262.07, 204.12, 260.79, 197.07, 260.79, 193.23, 269.76, 193.23, 267.84, 193.87, 258.87, 192.59, 249.89, 210.53, 221.05, 194.51, 214.65, 189.38, 201.83, 197.07, 202.47, 212.46, 197.34, 223.99, 186.45, 234.25, 189.65]], "area": 4622.92415, "iscrowd": 0, "image_id": 130624, "bbox": [189.38, 185.8, 76.91, 91.01], "category_id": 1, "id": 2159089}, {"segmentation": [[631.74, 178.66, 631.9, 178.04, 635.17, 176.63, 636.73, 177.41, 637.98, 179.13, 638.29, 180.68, 638.29, 182.87, 639.79, 183.93, 639.68, 191.41, 637.67, 192.2, 636.66, 193.54, 636.66, 194.21, 636.55, 195.21, 636.22, 200.91, 635.16, 200.96, 632.79, 200.04, 631.34, 201.49, 632.13, 193.84, 632.52, 190.14, 633.71, 187.5, 633.45, 184.07, 632.13, 181.83]], "area": 133.11939999999916, "iscrowd": 0, "image_id": 576322, "bbox": [631.34, 176.63, 8.45, 24.86], "category_id": 1, "id": 2159593}, {"segmentation": [[391.44, 363.91, 391.66, 359.78, 393.56, 357.26, 395.56, 358.12, 397.11, 360.53, 397.11, 363.22, 397.34, 366.78, 397.45, 367.01]], "area": 38.97850000000009, "iscrowd": 0, "image_id": 307462, "bbox": [391.44, 357.26, 6.01, 9.75], "category_id": 1, "id": 2159670}, {"segmentation": [[143.09, 71.14, 124.1, 73.9, 119.95, 65.27, 117.19, 62.85, 108.9, 58.71, 112.01, 46.62, 119.95, 39.03, 122.71, 36.95, 126.51, 33.16, 124.79, 24.87, 129.28, 16.58, 133.07, 14.85, 137.22, 15.2, 140.33, 19.0, 141.02, 23.83, 139.98, 33.5, 139.29, 36.61, 139.29, 38.68, 142.74, 44.55, 145.85, 46.62, 138.6, 51.46, 137.56, 56.64, 137.56, 59.05, 139.64, 62.51]], "area": 1195.1456999999996, "iscrowd": 0, "image_id": 289693, "bbox": [108.9, 14.85, 36.95, 59.05], "category_id": 1, "id": 2159895}, {"segmentation": [[490.35, 147.99, 468.51, 151.43, 461.15, 152.16, 456.48, 150.94, 446.42, 142.84, 432.93, 136.95, 429.74, 137.44, 430.47, 142.1, 431.7, 142.59, 429.25, 146.76, 443.23, 152.16, 442.74, 155.35, 434.64, 152.65, 433.91, 155.84, 445.2, 161.0, 444.95, 163.7, 436.12, 165.91, 435.63, 169.34, 441.27, 173.02, 434.64, 178.18, 430.72, 180.87, 429.0, 184.31, 428.26, 187.5, 429.74, 189.95, 430.72, 190.45, 440.04, 183.33, 445.93, 181.37, 454.28, 174.25, 464.58, 167.13, 488.14, 161.24, 491.09, 148.48]], "area": 1275.8116999999995, "iscrowd": 0, "image_id": 14575, "bbox": [428.26, 136.95, 62.83, 53.5], "category_id": 1, "id": 2160262}, {"segmentation": [[215.12, 209.33, 221.36, 199.96, 232.82, 198.92, 236.98, 198.92, 239.06, 202.04, 242.19, 208.29, 241.66, 214.53, 243.75, 218.18, 249.47, 225.47, 261.97, 231.71, 272.38, 243.16, 274.98, 282.73, 276.02, 293.66, 267.17, 306.15, 243.75, 309.28, 238.02, 304.59, 243.23, 298.35, 243.75, 293.14, 234.38, 282.73, 234.38, 275.44, 233.86, 272.84, 233.86, 272.84, 215.12, 283.25, 210.95, 284.81, 194.29, 273.88, 213.55, 267.63, 224.49, 261.91, 231.77, 255.66, 234.9, 252.01, 238.02, 244.73, 238.02, 241.08, 234.9, 239.0, 226.05, 237.96, 226.05, 231.71]], "area": 4118.888349999999, "iscrowd": 0, "image_id": 16125, "bbox": [194.29, 198.92, 81.73, 110.36], "category_id": 1, "id": 2160358}, {"segmentation": [[0.0, 305.84, 5.84, 283.44, 158.77, 274.68, 129.55, 366.23, 0.0, 366.23]], "area": 12411.448200000004, "iscrowd": 0, "image_id": 289095, "bbox": [0.0, 274.68, 158.77, 91.55], "category_id": 1, "id": 2161570}, {"segmentation": [[2.58, 217.46, 11.98, 204.14, 21.38, 186.13, 26.09, 175.16, 37.05, 154.01, 43.32, 148.52, 52.72, 146.96, 62.9, 146.96, 71.52, 146.18, 78.57, 146.18, 81.71, 139.91, 80.13, 134.42, 73.87, 128.94, 66.04, 121.1, 63.68, 119.54, 51.15, 110.92, 44.1, 107.79, 33.13, 106.23, 15.9, 103.87, 5.72, 106.23, 0.0, 114.84]], "area": 4271.285250000001, "iscrowd": 0, "image_id": 130624, "bbox": [0.0, 103.87, 81.71, 113.59], "category_id": 1, "id": 2161922}, {"segmentation": [[484.37, 421.59, 518.58, 421.59, 526.3, 396.21, 628.91, 400.63, 630.02, 400.63, 640.0, 317.87, 639.95, 237.33, 638.84, 108.24, 616.78, 109.34, 599.12, 119.27, 580.37, 135.82, 573.75, 171.13, 573.75, 202.02, 566.02, 222.99, 551.68, 238.43, 528.51, 256.09, 506.44, 268.22, 485.48, 299.12, 484.37, 320.08, 479.96, 336.63, 479.96, 348.77, 482.17, 366.42, 482.17, 389.59, 482.17, 412.76]], "area": 31964.33919999999, "iscrowd": 0, "image_id": 252702, "bbox": [479.96, 108.24, 160.04, 313.35], "category_id": 1, "id": 2161979}, {"segmentation": [[580.99, 1.25, 578.49, 87.27, 543.58, 190.75, 528.62, 253.09, 498.7, 317.92, 486.23, 355.32, 478.75, 382.75, 475.01, 407.69, 492.47, 410.18, 498.7, 447.58, 518.65, 452.57, 537.35, 458.81, 543.58, 460.05, 578.49, 427.64, 609.66, 443.84, 633.35, 416.42, 640.0, 3.74, 639.58, 3.74]], "area": 45428.40135, "iscrowd": 0, "image_id": 564237, "bbox": [475.01, 1.25, 164.99, 458.8], "category_id": 1, "id": 2162134}, {"segmentation": [[230.09, 334.08, 228.99, 347.35, 247.79, 351.78, 283.19, 355.1, 351.78, 345.14, 351.78, 401.56, 352.88, 418.15, 480.1, 418.15, 484.52, 369.48, 515.5, 332.97, 533.2, 308.63, 528.77, 272.13, 501.12, 223.46, 476.78, 170.36, 475.67, 164.83, 434.74, 165.93, 409.3, 133.85, 409.3, 103.98, 402.66, 89.6, 380.54, 73.01, 358.41, 74.12, 329.65, 92.92, 314.17, 112.83, 337.4, 174.78, 369.48, 185.84, 331.87, 223.46, 340.72, 285.4, 338.5, 302.0, 324.12, 315.27, 303.1, 334.08, 273.24, 337.4, 266.6, 338.5, 258.85, 324.12, 238.94, 323.02]], "area": 50486.689799999986, "iscrowd": 0, "image_id": 119337, "bbox": [228.99, 73.01, 304.21, 345.14], "category_id": 1, "id": 2162913}, {"segmentation": [[86.61, 117.28, 87.85, 100.92, 89.96, 98.28, 95.23, 95.81, 97.52, 92.12, 99.63, 91.24, 101.04, 91.06, 102.45, 84.55, 104.21, 81.03, 108.26, 79.1, 112.13, 80.51, 114.59, 83.14, 115.47, 86.14, 115.47, 89.13, 116.88, 90.01, 118.81, 92.47, 128.14, 99.68, 130.6, 103.03, 129.72, 108.83, 127.08, 112.53, 122.68, 114.29, 124.97, 129.77, 125.85, 137.51, 125.67, 141.38, 123.74, 142.97, 122.68, 143.32, 120.57, 147.54, 120.57, 153.0, 119.69, 157.22, 118.28, 163.2, 118.28, 168.13, 85.91, 168.66, 87.67, 152.82, 87.32, 141.91, 87.49, 133.99, 86.97, 117.28]], "area": 2891.058449999999, "iscrowd": 0, "image_id": 275432, "bbox": [85.91, 79.1, 44.69, 89.56], "category_id": 1, "id": 2163391}, {"segmentation": [[584.51, 129.38, 589.67, 120.83, 603.38, 117.61, 605.31, 111.97, 604.67, 107.13, 604.18, 104.71, 602.25, 97.94, 603.38, 94.23, 609.34, 93.42, 617.08, 94.55, 621.92, 97.45, 626.27, 100.2, 626.76, 104.71, 621.6, 105.52, 620.79, 109.55, 619.18, 113.9, 618.37, 119.22, 627.56, 121.64, 632.72, 124.38, 635.95, 128.41, 624.21, 132.0, 621.3, 144.57, 616.47, 163.76, 620.82, 177.47, 623.4, 181.18, 620.17, 201.33, 612.92, 204.07, 612.76, 209.72, 615.34, 219.55, 612.43, 242.13, 610.34, 256.96, 601.95, 256.96, 597.92, 249.38, 597.12, 240.84, 601.47, 236.48, 602.28, 215.52, 601.95, 202.62, 607.6, 187.63, 607.6, 183.59, 605.98, 165.05, 604.05, 153.76, 603.57, 150.54, 600.34, 134.41, 595.99, 130.38], [583.63, 251.38, 591.96, 251.72, 592.07, 237.62, 595.19, 220.86, 596.58, 211.84, 599.01, 206.64, 593.81, 207.79, 591.15, 212.07, 587.45, 212.99]], "area": 3106.1178999999993, "iscrowd": 0, "image_id": 579533, "bbox": [583.63, 93.42, 52.32, 163.54], "category_id": 1, "id": 2163699}, {"segmentation": [[359.49, 419.43, 367.62, 399.38, 361.52, 367.41, 340.02, 326.73, 333.91, 320.04, 308.34, 287.21, 300.79, 282.56, 294.68, 268.32, 270.86, 270.35, 259.23, 274.13, 243.25, 275.29, 244.7, 271.52, 244.99, 263.38, 242.96, 256.7, 233.66, 253.21, 225.23, 264.54, 221.16, 275.0, 220.58, 281.11, 211.57, 280.52, 170.31, 281.11, 161.3, 277.91, 161.59, 270.64, 165.95, 263.09, 175.83, 256.11, 186.58, 250.59, 197.34, 246.52, 207.8, 244.49, 216.51, 244.49, 225.23, 247.11, 233.37, 248.56, 242.09, 244.2, 252.84, 247.11, 261.27, 247.98, 266.5, 242.75, 271.73, 244.2, 285.68, 246.52, 290.03, 246.23, 290.91, 242.17, 288.29, 239.55, 278.41, 234.9, 269.98, 236.35, 265.62, 230.54, 255.16, 232.0, 251.68, 229.38, 250.51, 222.41, 238.89, 211.07, 242.96, 205.55, 252.26, 194.22, 253.71, 182.59, 247.32, 167.48, 245.57, 158.48, 238.6, 156.73, 229.3, 164.29, 222.04, 163.71, 216.8, 158.48, 213.61, 148.89, 192.1, 118.95, 188.91, 114.31, 194.72, 109.07, 177.28, 100.36, 157.81, 94.54, 139.8, 91.35, 128.17, 95.71, 107.25, 91.64, 92.72, 93.09, 91.85, 96.58, 70.64, 105.01, 71.8, 109.07, 63.37, 112.56, 57.27, 120.7, 50.0, 131.16, 53.2, 134.36, 45.06, 137.84, 34.89, 161.09, 19.78, 191.02, 16.3, 198.29, 17.17, 225.31, 31.7, 242.17, 38.09, 245.94, 42.16, 247.98, 43.9, 254.08, 43.61, 270.06, 52.04, 286.92, 49.71, 300.57, 35.48, 310.46, 17.17, 342.42, 6.42, 369.45, 0.0, 404.03, 2.06, 483.94, 1.77, 487.43, 0.31, 499.05, 195.3, 499.92, 261.56, 500.0, 262.14, 497.6, 267.95, 497.02, 278.12, 499.05, 293.23, 499.92, 301.08, 499.05, 306.6, 490.62, 303.69, 460.98, 298.75, 438.9, 298.75, 431.92, 314.15, 439.48, 329.55, 439.48, 340.02, 435.7, 353.09, 429.02]], "area": 104947.39355000004, "iscrowd": 0, "image_id": 398949, "bbox": [0.0, 91.35, 367.62, 408.65], "category_id": 1, "id": 2163826}, {"segmentation": [[35.28, 243.4, 72.3, 242.78, 71.67, 238.87, 69.64, 237.31, 68.08, 227.16, 64.17, 221.7, 57.15, 217.32, 46.22, 216.86, 37.31, 225.13, 36.53, 234.03, 35.28, 238.41, 34.81, 243.09]], "area": 768.3473500000002, "iscrowd": 0, "image_id": 384895, "bbox": [34.81, 216.86, 37.49, 26.54], "category_id": 1, "id": 2164445}, {"segmentation": [[367.26, 230.6, 372.59, 227.69, 367.26, 201.07, 370.17, 178.81, 372.59, 168.16, 364.84, 147.34, 359.04, 135.73, 355.65, 135.24, 356.13, 116.85, 416.63, 115.4, 413.73, 135.73, 408.41, 169.13, 407.92, 191.39, 416.63, 210.27, 425.35, 220.92, 424.86, 235.44]], "area": 5533.375000000003, "iscrowd": 0, "image_id": 221842, "bbox": [355.65, 115.4, 69.7, 120.04], "category_id": 1, "id": 2164506}, {"segmentation": [[599.15, 277.44, 596.59, 182.64, 585.49, 169.83, 597.44, 157.02, 599.15, 81.86, 572.67, 75.02, 538.51, 95.52, 530.83, 117.73, 529.97, 135.66, 538.51, 155.31, 540.22, 161.29, 525.7, 168.97, 513.74, 175.8, 536.8, 242.42, 588.9, 250.96]], "area": 11130.706450000005, "iscrowd": 0, "image_id": 434047, "bbox": [513.74, 75.02, 85.41, 202.42], "category_id": 1, "id": 2164663}, {"segmentation": [[615.76, 194.04, 616.67, 187.18, 625.37, 184.2, 628.12, 184.2, 629.95, 178.02, 626.52, 175.73, 622.63, 176.19, 620.79, 176.65, 621.25, 164.29, 621.94, 159.71, 623.08, 153.3, 620.79, 147.58, 628.12, 140.25, 631.55, 141.17, 630.64, 132.24, 630.41, 124.23, 636.13, 118.51, 640.0, 120.11, 640.0, 161.77, 640.0, 168.18, 640.0, 197.94]], "area": 1175.9296000000004, "iscrowd": 0, "image_id": 1431, "bbox": [615.76, 118.51, 24.24, 79.43], "category_id": 1, "id": 2164817}, {"segmentation": [[5.38, 40.52, 16.68, 74.69, 18.14, 87.08, 23.24, 100.92, 23.24, 127.14, 23.97, 149.72, 17.41, 160.65, 14.5, 160.65, 9.4, 130.06, 9.4, 112.57, 6.48, 112.57, 1.38, 120.59, 5.02, 153.37, 8.48, 160.06, 12.32, 161.02, 9.44, 168.71, 2.23, 172.07, 0.79, 166.31, 1.75, 71.62, 0.79, 25.49, 5.59, 37.98], [38.28, 159.58, 42.12, 162.46, 45.01, 163.42, 43.56, 166.79, 34.43, 168.71, 30.59, 165.34, 29.14, 163.9, 29.14, 163.9, 25.3, 163.9, 38.76, 160.54]], "area": 1963.1033499999994, "iscrowd": 0, "image_id": 151322, "bbox": [0.79, 25.49, 44.22, 146.58], "category_id": 1, "id": 2164916}, {"segmentation": [[295.15, 372.95, 310.68, 356.61, 313.95, 338.63, 309.04, 330.46, 305.78, 308.4, 305.78, 299.42, 320.48, 283.08, 330.29, 276.54, 346.63, 276.54, 364.6, 286.35, 376.04, 291.25, 384.21, 307.59, 372.77, 325.56, 376.86, 338.63, 375.22, 351.71, 365.42, 359.88, 380.94, 374.58, 400.55, 383.57, 407.9, 398.27, 410.35, 417.07, 411.17, 424.42, 418.52, 453.83, 418.52, 458.73, 416.07, 463.63, 416.07, 474.26, 416.07, 477.52, 401.37, 477.52, 386.66, 478.0, 380.94, 457.92, 381.76, 478.0, 362.15, 477.52, 340.91, 477.52, 292.7, 476.71, 276.36, 476.71, 275.55, 466.09, 273.1, 477.52, 255.94, 476.71, 253.49, 458.73, 259.21, 438.31, 266.56, 418.7, 286.17, 382.75, 296.79, 371.31]], "area": 20944.82534999999, "iscrowd": 0, "image_id": 510979, "bbox": [253.49, 276.54, 165.03, 201.46], "category_id": 1, "id": 2165393}, {"segmentation": [[18.04, 536.55, 21.45, 551.74, 5.13, 552.49, 4.37, 547.94, 2.47, 551.36, 0.96, 551.36, 0.0, 547.94, 4.75, 529.34, 8.17, 526.3, 9.69, 517.95, 14.62, 519.47, 17.66, 527.44]], "area": 469.68234999999976, "iscrowd": 0, "image_id": 181149, "bbox": [0.0, 517.95, 21.45, 34.54], "category_id": 1, "id": 2165778}, {"segmentation": [[31.17, 187.01, 36.16, 123.43, 29.92, 102.23, 34.91, 53.61, 21.19, 32.42, 1.25, 3.74, 1.25, 3.74, 3.74, 196.99, 8.73, 163.32, 11.22, 193.25]], "area": 4894.533849999999, "iscrowd": 0, "image_id": 3366, "bbox": [1.25, 3.74, 34.91, 193.25], "category_id": 1, "id": 2165794}, {"segmentation": [[543.84, 257.57, 542.15, 252.88, 542.15, 245.39, 538.4, 240.9, 531.1, 242.4, 530.54, 249.14, 530.16, 253.07, 532.6, 256.82, 533.35, 260.0, 526.79, 262.81, 519.86, 266.55, 516.49, 275.36, 516.87, 282.28, 517.99, 289.4, 524.55, 289.59, 537.09, 289.4, 547.58, 288.84, 558.25, 288.65, 557.88, 279.85, 556.38, 269.18, 554.51, 262.25, 549.64, 258.69, 545.15, 258.13]], "area": 1302.3451499999985, "iscrowd": 0, "image_id": 385701, "bbox": [516.49, 240.9, 41.76, 48.69], "category_id": 1, "id": 2166219}, {"segmentation": [[218.88, 160.57, 219.07, 165.26, 220.75, 165.69, 221.31, 162.38, 222.19, 161.01, 222.19, 158.27, 221.94, 156.7, 222.0, 155.64, 220.81, 153.96, 219.88, 153.9, 219.0, 156.14, 218.82, 156.58, 218.75, 159.45]], "area": 30.912950000000023, "iscrowd": 0, "image_id": 576322, "bbox": [218.75, 153.9, 3.44, 11.79], "category_id": 1, "id": 2166581}, {"segmentation": [[245.6, 52.48, 255.82, 46.26, 273.14, 49.37, 279.81, 49.81, 283.81, 54.25, 286.47, 58.25, 290.47, 64.91, 287.36, 78.69, 284.69, 83.13, 285.14, 91.57, 279.36, 94.23, 278.47, 96.45, 275.81, 97.34, 275.36, 98.68, 273.14, 100.01, 268.26, 102.23, 267.37, 105.78, 258.04, 103.12, 274.48, 114.67, 277.59, 128.88, 275.81, 139.1, 275.36, 148.87, 271.81, 160.42, 270.03, 167.53, 269.59, 190.16, 273.59, 206.12, 289.14, 224.3, 301.13, 240.74, 296.69, 246.93, 291.8, 252.26, 311.35, 276.22, 314.9, 304.18, 317.57, 330.8, 331.78, 356.98, 341.56, 361.39, 355.33, 367.17, 362.43, 367.61, 362.88, 375.61, 337.11, 379.16, 322.01, 380.94, 314.9, 380.49, 313.12, 368.5, 311.79, 361.39, 306.02, 345.84, 295.8, 330.3, 291.8, 314.75, 286.47, 290.76, 285.14, 287.21, 261.15, 272.1, 250.49, 266.33, 241.16, 287.65, 234.94, 299.64, 226.5, 304.53, 226.5, 310.75, 217.17, 318.3, 207.4, 318.3, 198.51, 316.08, 188.3, 315.19, 157.2, 312.53, 143.87, 311.64, 128.32, 315.19, 127.44, 318.3, 119.44, 320.97, 110.56, 320.08, 94.56, 325.85, 91.45, 329.85, 89.68, 318.75, 96.78, 307.2, 102.12, 300.09, 106.56, 296.09, 108.78, 292.98, 112.33, 284.1, 116.33, 282.32, 133.21, 293.87, 140.32, 296.54, 153.2, 290.76, 169.19, 286.76, 178.52, 285.87, 184.74, 285.87, 190.52, 285.87, 194.52, 286.76, 199.85, 288.98, 204.29, 288.98, 204.73, 280.99, 207.84, 271.66, 208.73, 261.0, 210.51, 253.0, 211.4, 250.78, 214.06, 234.79, 210.06, 231.68, 207.84, 215.3, 208.29, 206.86, 214.51, 200.2, 214.95, 179.35, 215.84, 166.02, 209.17, 172.24, 204.29, 179.79, 194.52, 184.68, 182.97, 189.12, 173.64, 189.56, 168.75, 186.01, 168.75, 182.01, 170.97, 178.9, 174.08, 175.35, 174.52, 174.02, 182.97, 173.13, 188.3, 173.13, 193.63, 173.13, 196.74, 172.68, 201.62, 167.8, 205.62, 159.8, 214.95, 143.69, 216.28, 124.14, 218.95, 110.37, 224.28, 99.27, 228.28, 97.05, 230.94, 94.83, 234.94, 91.27, 236.72, 88.61, 236.72, 80.61, 236.72, 77.06, 238.94, 71.73, 242.94, 54.84]], "area": 21919.898899999982, "iscrowd": 0, "image_id": 200910, "bbox": [89.68, 46.26, 273.2, 334.68], "category_id": 1, "id": 2166584}, {"segmentation": [[285.4, 282.89, 284.07, 259.59, 286.07, 251.6, 299.38, 245.61, 306.04, 234.29, 318.69, 228.29, 346.66, 232.96, 354.65, 244.27, 357.98, 268.91, 359.31, 277.57, 354.65, 287.55, 352.65, 300.2, 351.41, 328.78, 364.72, 353.41, 368.05, 354.08, 354.07, 370.73, 354.07, 373.39, 324.11, 324.78, 308.8, 297.48, 290.82, 286.83]], "area": 6103.570949999998, "iscrowd": 0, "image_id": 64071, "bbox": [284.07, 228.29, 83.98, 145.1], "category_id": 1, "id": 2166779}, {"segmentation": [[333.91, 552.83, 339.83, 548.09, 345.28, 547.38, 346.47, 546.55, 346.47, 544.3, 345.88, 538.37, 346.11, 535.53, 348.24, 532.21, 356.18, 530.44, 356.77, 530.44, 359.14, 532.21, 361.99, 535.06, 362.46, 541.1, 362.22, 543.35, 362.22, 545.24, 360.8, 547.26, 360.45, 549.51, 363.88, 551.05, 364.71, 551.64, 365.66, 552.59, 365.66, 553.0, 342.09, 552.94, 334.15, 552.83]], "area": 383.54780000000017, "iscrowd": 0, "image_id": 181149, "bbox": [333.91, 530.44, 31.75, 22.56], "category_id": 1, "id": 2167017}, {"segmentation": [[580.07, 471.15, 586.3, 452.48, 598.74, 421.36, 576.34, 357.88, 556.42, 355.39, 551.44, 330.49, 551.44, 311.82, 545.22, 278.21, 529.04, 262.03, 504.14, 271.99, 486.71, 290.66, 479.24, 314.31, 485.47, 339.21, 499.16, 355.39, 495.43, 360.37, 458.08, 371.57, 438.17, 396.47, 446.88, 362.86, 421.98, 361.61, 414.52, 407.67, 410.78, 435.05, 413.27, 452.48, 440.66, 451.24, 461.82, 458.71, 465.55, 472.4, 580.07, 469.91]], "area": 23540.105800000005, "iscrowd": 0, "image_id": 510979, "bbox": [410.78, 262.03, 187.96, 210.37], "category_id": 1, "id": 2167287}, {"segmentation": [[436.38, 98.54, 438.25, 98.37, 441.31, 105.69, 445.91, 111.82, 450.0, 115.22, 450.68, 115.9, 452.21, 109.6, 455.27, 116.41, 465.14, 117.94, 474.85, 109.43, 480.29, 100.75, 483.19, 91.39, 483.02, 75.56, 479.95, 59.39, 474.34, 53.04, 474.85, 34.15, 473.31, 2.83, 472.8, 0.0, 469.91, 0.0, 468.72, 16.11, 461.23, 16.28, 462.25, 0.11, 457.54, 25.99, 452.52, 38.34, 452.52, 44.25, 450.2, 52.74, 448.92, 58.28, 448.15, 61.23, 447.25, 64.32, 441.97, 80.02, 439.78, 88.25, 439.27, 90.18]], "area": 3109.7550499999998, "iscrowd": 0, "image_id": 440698, "bbox": [436.38, 0.0, 46.81, 117.94], "category_id": 2, "id": 2168302}, {"segmentation": [[106.11, 345.09, 106.52, 347.42, 109.52, 349.58, 113.52, 349.5, 115.93, 347.83, 117.26, 345.59, 117.43, 341.93, 119.76, 340.05, 120.8, 337.79, 119.95, 335.05, 117.59, 334.11, 114.86, 334.3, 115.04, 331.75, 117.78, 331.66, 117.68, 328.92, 112.31, 328.92, 112.12, 330.9, 113.63, 331.09, 112.31, 334.2, 109.67, 333.83, 109.58, 332.04, 111.08, 331.62, 110.54, 329.57, 104.64, 329.57, 104.37, 331.21, 106.56, 331.49, 103.68, 340.81]], "area": 236.72834999999986, "iscrowd": 0, "image_id": 201260, "bbox": [103.68, 328.92, 17.12, 20.66], "category_id": 2, "id": 2168418}, {"segmentation": [[103.87, 156.83, 117.8, 158.26, 133.15, 165.04, 141.36, 171.47, 144.58, 177.18, 134.58, 177.18, 131.01, 173.26, 124.94, 178.61, 120.65, 186.83, 121.01, 193.25, 127.44, 193.61, 118.87, 195.75, 109.94, 195.4, 104.58, 190.75, 100.65, 177.18, 99.58, 167.9, 104.58, 160.4]], "area": 967.5722000000005, "iscrowd": 0, "image_id": 277472, "bbox": [99.58, 156.83, 45.0, 38.92], "category_id": 2, "id": 2168431}, {"segmentation": [[252.73, 359.27, 230.91, 336.74, 216.74, 266.97, 224.61, 192.47, 228.81, 176.2, 241.4, 126.89, 229.86, 133.71, 220.42, 136.33, 213.6, 120.59, 216.74, 109.05, 227.76, 103.81, 241.93, 110.1, 251.37, 96.98, 259.24, 86.49, 260.81, 72.33, 291.24, 62.36, 300.16, 21.96, 300.16, 4.65, 299.64, 1.5, 316.95, 4.65, 315.38, 64.98, 321.15, 77.05, 329.02, 105.9, 331.64, 145.78, 327.97, 163.09, 320.62, 218.7, 319.05, 217.13, 313.8, 259.1, 310.65, 267.49, 300.16, 326.25, 277.08, 347.23, 269.73, 357.73]], "area": 26243.162900000003, "iscrowd": 0, "image_id": 440698, "bbox": [213.6, 1.5, 118.04, 357.77], "category_id": 2, "id": 2168499}, {"segmentation": [[136.89, 167.64, 148.83, 157.99, 172.27, 156.61, 192.03, 163.96, 210.87, 176.37, 202.6, 180.04, 146.08, 177.75]], "area": 1167.7044999999991, "iscrowd": 0, "image_id": 277472, "bbox": [136.89, 156.61, 73.98, 23.43], "category_id": 2, "id": 2168537}, {"segmentation": [[429.64, 300.1, 415.55, 298.26, 415.55, 279.88, 435.16, 260.27, 447.41, 261.5, 436.38, 301.32]], "area": 854.1719000000004, "iscrowd": 0, "image_id": 164036, "bbox": [415.55, 260.27, 31.86, 41.05], "category_id": 3, "id": 2168907}, {"segmentation": [[148.08, 65.35, 178.57, 66.32, 186.31, 70.68, 183.89, 80.36, 167.44, 82.77, 156.79, 88.58, 145.67, 66.81]], "area": 604.1578500000002, "iscrowd": 0, "image_id": 203989, "bbox": [145.67, 65.35, 40.64, 23.23], "category_id": 3, "id": 2169270}, {"segmentation": [[14.66, 119.66, 17.68, 119.99, 19.35, 121.58, 23.21, 122.51, 22.7, 124.35, 22.54, 125.52, 21.03, 125.52, 20.69, 126.11, 19.35, 126.7, 17.93, 126.03, 16.33, 126.36, 15.83, 126.78, 15.24, 127.03], [12.81, 119.99, 10.3, 120.91, 10.05, 122.0, 11.14, 123.01, 12.73, 122.93]], "area": 47.08340000000003, "iscrowd": 0, "image_id": 501358, "bbox": [10.05, 119.66, 13.16, 7.37], "category_id": 3, "id": 2169453}, {"segmentation": [[141.42, 74.35, 183.07, 72.96, 192.78, 91.01, 184.45, 83.37, 178.21, 88.92, 178.21, 100.72, 185.15, 120.16, 184.45, 122.24, 163.63, 127.1, 113.66, 118.08, 113.66, 104.19, 123.37, 86.84]], "area": 3057.6801, "iscrowd": 0, "image_id": 322725, "bbox": [113.66, 72.96, 79.12, 54.14], "category_id": 8, "id": 2171710}, {"segmentation": [[226.04, 291.07, 267.1, 287.6, 314.43, 287.6, 315.13, 327.96, 314.43, 355.1, 313.04, 355.1, 309.56, 308.47, 302.6, 304.99, 300.51, 333.53, 301.9, 357.19, 234.55, 360.97, 213.77, 379.15, 200.79, 372.66, 189.1, 359.67, 181.31, 362.27, 165.72, 351.88, 177.41, 328.5, 186.5, 328.5, 192.99, 314.22, 192.99, 314.22]], "area": 8863.09285, "iscrowd": 0, "image_id": 493245, "bbox": [165.72, 287.6, 149.41, 91.55], "category_id": 8, "id": 2171740}, {"segmentation": [[95.06, 226.51, 98.85, 225.14, 100.23, 221.69, 112.63, 228.24, 122.61, 234.78, 143.27, 239.6, 167.72, 242.35, 193.54, 242.7, 217.3, 243.39, 224.88, 217.91, 210.07, 217.91, 195.61, 212.74, 179.08, 206.54, 162.9, 204.13, 151.54, 203.1, 141.55, 208.61, 135.01, 211.02, 120.55, 206.89, 105.39, 206.89, 94.38, 214.46, 94.72, 224.79]], "area": 3645.1371, "iscrowd": 0, "image_id": 501358, "bbox": [94.38, 203.1, 130.5, 40.29], "category_id": 9, "id": 2172163}, {"segmentation": [[192.45, 298.73, 206.06, 277.94, 222.39, 278.19, 240.7, 278.93, 260.25, 283.14, 262.98, 289.08, 266.19, 301.94, 255.8, 302.44, 247.63, 304.42, 237.24, 303.18, 229.07, 301.94, 219.67, 301.94, 205.07, 300.71, 193.44, 300.46]], "area": 1487.7819499999998, "iscrowd": 0, "image_id": 336675, "bbox": [192.45, 277.94, 73.74, 26.48], "category_id": 9, "id": 2172185}, {"segmentation": [[334.27, 218.67, 397.96, 218.08, 400.91, 223.38, 388.53, 225.15, 387.35, 229.28, 386.17, 229.28, 385.58, 224.56, 357.27, 222.8, 357.86, 231.64, 354.91, 231.05, 354.32, 222.8, 328.37, 223.38, 328.37, 223.38]], "area": 389.3028500000003, "iscrowd": 0, "image_id": 385701, "bbox": [328.37, 218.08, 72.54, 13.56], "category_id": 15, "id": 2173535}, {"segmentation": [[440.35, 246.57, 439.46, 235.02, 494.53, 235.02, 489.21, 239.46, 490.09, 242.57, 489.21, 243.91, 442.57, 244.79]], "area": 477.72454999999906, "iscrowd": 0, "image_id": 1431, "bbox": [439.46, 235.02, 55.07, 11.55], "category_id": 15, "id": 2173607}, {"segmentation": [[78.68, 274.88, 75.88, 275.96, 72.43, 275.96, 71.56, 274.88, 70.92, 273.16, 70.16, 271.32, 70.05, 266.36, 73.18, 268.3, 76.63, 270.89]], "area": 48.4410999999999, "iscrowd": 0, "image_id": 369201, "bbox": [70.05, 266.36, 8.63, 9.6], "category_id": 15, "id": 2173906}, {"segmentation": [[126.96, 95.4, 127.32, 92.01, 129.07, 91.19, 130.71, 90.13, 132.23, 90.01, 132.7, 91.3, 133.29, 92.71, 133.17, 95.05, 130.48, 100.44, 127.78, 100.44]], "area": 49.168649999999914, "iscrowd": 0, "image_id": 151655, "bbox": [126.96, 90.01, 6.33, 10.43], "category_id": 16, "id": 2174325}, {"segmentation": [[2.28, 130.7, 3.75, 128.0, 5.99, 127.15, 7.46, 128.0, 8.46, 130.16, 7.46, 131.55, 6.38, 132.56, 5.45, 133.79, 4.06, 133.02, 3.05, 132.87, 1.51, 132.87, 1.51, 132.56]], "area": 27.771500000000028, "iscrowd": 0, "image_id": 151655, "bbox": [1.51, 127.15, 6.95, 6.64], "category_id": 16, "id": 2174362}, {"segmentation": [[56.99, 130.0, 56.8, 128.8, 56.99, 128.11, 57.62, 127.48, 58.75, 126.98, 59.57, 126.98, 60.32, 126.98, 60.83, 127.36, 61.02, 127.86, 61.46, 127.99, 61.83, 128.17, 62.59, 128.55, 62.65, 130.88, 62.15, 132.33, 62.09, 133.08, 61.77, 133.08, 62.21, 134.28, 61.9, 135.6, 62.4, 135.85, 61.83, 135.85, 61.52, 136.23, 61.39, 135.79, 61.2, 135.73, 61.58, 135.6, 61.83, 134.47, 61.08, 133.4, 59.76, 133.4, 59.76, 134.47, 59.69, 135.54, 60.89, 135.54, 60.01, 135.6, 59.51, 136.23, 59.32, 135.85, 58.94, 135.6, 59.38, 135.54, 59.44, 134.4, 58.75, 133.4, 57.87, 132.64, 57.74, 132.01, 57.74, 131.38, 57.74, 130.57, 57.56, 130.13, 57.43, 130.31, 57.3, 130.31]], "area": 32.30135, "iscrowd": 0, "image_id": 151655, "bbox": [56.8, 126.98, 5.85, 9.25], "category_id": 16, "id": 2174452}, {"segmentation": [[220.38, 218.57, 239.79, 180.8, 250.81, 177.13, 271.27, 170.83, 275.99, 170.83, 300.65, 180.27, 321.63, 180.27, 312.72, 194.96, 317.44, 205.46, 311.67, 234.83, 305.37, 241.65, 294.88, 245.85, 264.97, 249.0, 251.86, 242.7, 242.42, 231.69, 227.2, 239.56, 223.53, 239.56]], "area": 5779.2369499999995, "iscrowd": 0, "image_id": 189660, "bbox": [220.38, 170.83, 101.25, 78.17], "category_id": 24, "id": 2175289}, {"segmentation": [[434.15, 271.17, 438.45, 261.26, 437.79, 253.33, 437.79, 245.08, 437.79, 238.8, 433.82, 220.3, 433.16, 207.75, 434.48, 204.11, 434.48, 201.14, 434.15, 195.85, 435.14, 191.89, 435.14, 188.92, 432.83, 183.3, 431.84, 174.05, 434.81, 172.07, 440.76, 173.39, 443.73, 180.66, 445.72, 178.68, 446.05, 173.39, 449.02, 171.74, 451.0, 173.72, 450.01, 180.66, 450.01, 183.63, 457.28, 186.28, 461.57, 189.58, 462.56, 197.84, 463.22, 215.01, 461.24, 222.28, 460.25, 230.54, 457.61, 238.8, 458.27, 246.4, 459.26, 255.65, 461.24, 259.94, 462.89, 265.89, 462.56, 268.53, 457.94, 267.87, 455.63, 263.58, 455.96, 270.51, 455.3, 273.82, 452.32, 273.82, 451.33, 254.99, 450.01, 251.02, 448.69, 246.4, 448.69, 241.11, 447.04, 239.46, 445.05, 242.43, 444.06, 248.71, 444.06, 257.63, 444.06, 262.58, 443.73, 266.55, 441.42, 268.2, 440.1, 272.16]], "area": 2138.484700000002, "iscrowd": 0, "image_id": 94118, "bbox": [431.84, 171.74, 31.38, 102.08], "category_id": 24, "id": 2175316}, {"segmentation": [[233.85, 149.35, 233.08, 144.72, 231.92, 140.48, 230.95, 138.16, 229.6, 134.3, 226.13, 136.43, 221.5, 137.2, 215.14, 141.44, 213.21, 148.19, 214.17, 152.24, 219.19, 153.79, 226.9, 153.98]], "area": 286.4448, "iscrowd": 0, "image_id": 260011, "bbox": [213.21, 134.3, 20.64, 19.68], "category_id": 24, "id": 2175368}, {"segmentation": [[343.45, 148.72, 355.66, 147.85, 363.07, 159.19, 369.61, 180.54, 369.82, 186.86, 366.99, 186.43, 371.35, 199.07, 369.39, 201.68, 366.12, 199.07, 366.77, 193.4, 355.66, 171.17, 355.0, 174.44, 342.36, 149.16], [334.52, 179.45, 332.99, 192.97, 333.21, 199.72, 327.98, 198.42, 328.85, 193.62, 330.81, 183.16, 328.63, 185.12, 327.76, 197.33, 324.06, 195.15, 313.16, 182.29, 334.08, 178.58], [311.2, 187.3, 316.65, 196.89, 315.99, 206.26, 321.88, 204.74, 321.88, 198.63, 311.85, 186.43]], "area": 844.8866999999998, "iscrowd": 0, "image_id": 260011, "bbox": [311.2, 147.85, 60.15, 58.41], "category_id": 24, "id": 2175377}, {"segmentation": [[171.87, 312.24, 221.76, 269.0, 237.28, 261.24, 262.79, 241.28, 273.88, 235.73, 299.38, 226.86, 316.01, 227.97, 330.42, 230.19, 339.3, 221.32, 367.02, 232.41, 355.93, 213.56, 345.95, 199.14, 339.3, 183.62, 314.9, 173.64, 312.68, 166.99, 286.07, 153.68, 327.1, 169.2, 349.27, 160.33, 351.49, 143.7, 357.04, 112.65, 364.8, 111.55, 369.23, 121.53, 376.99, 140.38, 390.3, 145.92, 391.41, 112.65, 406.93, 114.87, 414.69, 134.83, 422.46, 162.55, 442.41, 154.79, 471.24, 151.46, 473.46, 159.22, 459.05, 183.62, 447.96, 196.92, 436.87, 196.92, 442.41, 210.23, 442.41, 213.56, 434.65, 217.99, 430.22, 239.06, 447.96, 280.08, 450.18, 296.72, 452.39, 316.68, 428.0, 327.76, 414.69, 328.87, 394.74, 296.72, 376.99, 295.61, 359.25, 276.76, 292.73, 348.83, 229.52, 418.69, 223.98, 422.01, 125.3, 420.9, 140.82, 386.53, 158.56, 346.61]], "area": 41306.428049999995, "iscrowd": 0, "image_id": 568060, "bbox": [125.3, 111.55, 348.16, 310.46], "category_id": 25, "id": 2175430}, {"segmentation": [[235.81, 238.98, 247.9, 252.11, 244.56, 257.25, 252.28, 259.31, 251.25, 262.14, 244.04, 260.09, 242.5, 270.9, 245.59, 271.67, 245.84, 274.5, 239.15, 277.07, 237.09, 278.36, 236.32, 258.28, 232.2, 242.07, 231.69, 238.98, 235.81, 238.21], [220.1, 278.36, 214.7, 278.62, 203.89, 275.27, 204.92, 246.19, 215.73, 246.19, 216.5, 256.22, 217.27, 258.03, 216.5, 269.09]], "area": 729.5279000000004, "iscrowd": 0, "image_id": 265532, "bbox": [203.89, 238.21, 48.39, 40.41], "category_id": 31, "id": 2176428}, {"segmentation": [[164.57, 194.29, 210.7, 225.45, 224.42, 235.43, 275.53, 310.23, 255.58, 361.35, 236.88, 419.95, 230.65, 464.83, 251.84, 463.58, 258.08, 456.1, 260.57, 429.92, 270.55, 380.05, 301.71, 352.62, 299.22, 378.81, 300.47, 400.0, 283.01, 442.39, 296.73, 453.61, 317.92, 451.12, 312.94, 419.95, 326.65, 396.26, 332.88, 357.61, 355.32, 347.64, 406.44, 363.84, 458.81, 361.35, 507.43, 342.65, 548.57, 393.77, 571.01, 439.9, 576.0, 473.56, 609.66, 472.31, 610.91, 411.22, 610.91, 378.81, 598.44, 345.14, 598.44, 308.99, 610.91, 255.38, 610.91, 254.13, 615.9, 222.96, 640.0, 254.13, 640.0, 242.91, 640.0, 229.19, 625.87, 209.25, 613.4, 194.29, 608.42, 178.08, 608.42, 178.08, 590.96, 168.1, 569.77, 164.36, 552.31, 171.84, 523.64, 171.84, 523.64, 171.84, 503.69, 174.34, 436.36, 170.6, 326.65, 159.38, 256.83, 161.87, 250.6, 136.94, 230.65, 123.22, 230.65, 123.22, 159.58, 146.91, 134.65, 148.16, 135.9, 154.39, 153.35, 159.38, 159.58, 155.64, 165.82, 171.84, 165.82, 171.84, 177.04, 164.36, 162.08, 186.81]], "area": 86951.67460000001, "iscrowd": 0, "image_id": 347340, "bbox": [134.65, 123.22, 505.35, 350.34], "category_id": 21, "id": 2177015}, {"segmentation": [[88.0, 224.56, 81.06, 232.15, 84.7, 257.26, 92.95, 253.63], [105.18, 234.47, 108.48, 238.76, 103.86, 245.7, 104.11, 238.38, 104.62, 234.98]], "area": 255.4537999999999, "iscrowd": 0, "image_id": 265532, "bbox": [81.06, 224.56, 27.42, 32.7], "category_id": 33, "id": 2177778}, {"segmentation": [[294.14, 186.83, 287.25, 186.12, 282.3, 185.59, 276.11, 185.59, 272.05, 185.59, 268.87, 185.24, 265.51, 184.71, 263.22, 182.77, 262.33, 180.47, 265.34, 178.35, 271.7, 179.41, 274.88, 179.41, 281.59, 179.76, 286.89, 180.29, 291.13, 180.82, 296.08, 185.06]], "area": 182.8891500000003, "iscrowd": 0, "image_id": 562845, "bbox": [262.33, 178.35, 33.75, 8.48], "category_id": 34, "id": 2177925}, {"segmentation": [[243.19, 440.68, 242.46, 446.87, 240.28, 446.63, 240.15, 440.2, 243.19, 440.32]], "area": 17.124300000000023, "iscrowd": 0, "image_id": 574668, "bbox": [240.15, 440.2, 3.04, 6.67], "category_id": 38, "id": 2180454}, {"segmentation": [[371.89, 372.34, 371.89, 372.34, 369.02, 372.34, 363.65, 372.34, 359.0, 372.34, 355.42, 371.27, 353.98, 364.47, 356.49, 355.87, 356.85, 350.5, 357.21, 344.78, 359.35, 339.05, 361.5, 334.03, 364.37, 332.96, 370.81, 333.32, 372.96, 335.82, 373.32, 340.12, 375.82, 342.63, 376.18, 349.07, 376.18, 355.16, 375.47, 366.26, 374.75, 375.57]], "area": 719.8582499999997, "iscrowd": 0, "image_id": 115055, "bbox": [353.98, 332.96, 22.2, 42.61], "category_id": 44, "id": 2182234}, {"segmentation": [[329.87, 357.6, 323.73, 357.84, 318.77, 358.08, 316.17, 354.06, 315.23, 347.92, 316.17, 342.96, 318.06, 338.0, 318.06, 333.75, 318.06, 328.55, 319.48, 326.42, 324.68, 323.35, 330.11, 326.66, 332.0, 330.44, 332.24, 341.31, 332.47, 351.46, 331.29, 355.24]], "area": 481.9976999999998, "iscrowd": 0, "image_id": 115055, "bbox": [315.23, 323.35, 17.24, 34.73], "category_id": 44, "id": 2182578}, {"segmentation": [[79.3, 163.55, 80.17, 150.07, 88.21, 150.07, 89.08, 163.33]], "area": 119.12670000000011, "iscrowd": 0, "image_id": 375528, "bbox": [79.3, 150.07, 9.78, 13.48], "category_id": 47, "id": 2183385}, {"segmentation": [[30.89, 420.06, 32.42, 416.99, 29.35, 402.41, 33.96, 395.25, 45.72, 390.9, 56.72, 391.15, 61.33, 394.99, 61.33, 398.57, 63.89, 411.36, 53.91, 411.36, 38.82, 415.46, 35.75, 421.59, 34.98, 429.01, 34.98, 432.6, 31.65, 433.36, 29.1, 427.48]], "area": 743.1579000000003, "iscrowd": 0, "image_id": 306627, "bbox": [29.1, 390.9, 34.79, 42.46], "category_id": 47, "id": 2183416}, {"segmentation": [[363.55, 236.23, 363.38, 232.48, 365.43, 228.55, 371.23, 225.31, 379.6, 224.11, 387.96, 223.77, 395.13, 225.65, 399.91, 228.21, 402.98, 230.43, 404.69, 234.18, 405.2, 237.6, 402.64, 242.21, 401.62, 247.33, 401.1, 249.89, 398.71, 247.67, 392.91, 244.77, 388.13, 244.77, 382.16, 244.77, 377.89, 245.28, 372.43, 242.72, 364.92, 237.94, 363.38, 237.09], [364.58, 243.06, 364.58, 246.64, 364.75, 249.89, 366.28, 253.47, 381.13, 249.55, 380.28, 249.37, 377.04, 248.18, 371.4, 245.62, 366.63, 243.06]], "area": 824.4647499999996, "iscrowd": 0, "image_id": 64492, "bbox": [363.38, 223.77, 41.82, 29.7], "category_id": 47, "id": 2183800}, {"segmentation": [[333.06, 196.14, 355.41, 197.42, 359.56, 202.85, 358.92, 206.04, 355.09, 228.72, 350.3, 226.48, 350.94, 222.01, 345.83, 210.19], [307.51, 232.87, 314.21, 259.69, 326.03, 263.84, 339.76, 261.93, 349.34, 255.54, 349.66, 253.94, 351.26, 234.14, 342.64, 226.8, 341.04, 235.42, 338.8, 241.17, 336.25, 241.81, 335.29, 244.36, 330.5, 245.32, 327.95, 245.64, 321.56, 242.13, 321.56, 238.93, 316.77, 235.1]], "area": 1285.8486500000001, "iscrowd": 0, "image_id": 64492, "bbox": [307.51, 196.14, 52.05, 67.7], "category_id": 47, "id": 2183892}, {"segmentation": [[87.44, 346.82, 86.17, 339.95, 86.04, 334.73, 94.44, 334.47, 94.44, 341.47, 92.91, 346.44]], "area": 91.63039999999974, "iscrowd": 0, "image_id": 332065, "bbox": [86.04, 334.47, 8.4, 12.35], "category_id": 47, "id": 2183934}, {"segmentation": [[61.86, 342.6, 59.65, 354.36, 60.06, 356.85, 70.02, 356.85, 71.96, 356.85, 72.79, 362.11, 74.73, 362.8, 78.46, 361.14, 78.46, 357.82, 79.15, 348.14, 80.12, 344.95, 80.26, 342.6, 80.12, 340.67, 77.77, 339.28, 71.13, 338.73, 62.14, 340.39, 61.86, 340.67]], "area": 355.9286500000003, "iscrowd": 0, "image_id": 332065, "bbox": [59.65, 338.73, 20.61, 24.07], "category_id": 47, "id": 2184021}, {"segmentation": [[293.45, 377.62, 360.56, 287.26, 364.95, 288.14, 304.42, 369.72]], "area": 436.24140000000136, "iscrowd": 0, "image_id": 139571, "bbox": [293.45, 287.26, 71.5, 90.36], "category_id": 49, "id": 2184712}, {"segmentation": [[69.7, 392.79, 68.6, 380.65, 67.12, 367.58, 67.31, 360.4, 69.33, 350.83, 70.62, 344.21, 72.09, 343.47, 82.95, 343.47, 85.16, 345.86, 79.64, 375.13, 77.61, 384.33, 77.98, 391.69, 88.1, 396.66, 90.87, 399.05, 91.23, 408.81, 89.95, 410.1, 73.93, 411.2, 68.23, 411.94, 54.29, 410.34, 50.05, 406.1, 51.26, 400.03, 58.84, 396.09, 67.93, 393.67]], "area": 1247.0678499999997, "iscrowd": 0, "image_id": 441419, "bbox": [50.05, 343.47, 41.18, 68.47], "category_id": 50, "id": 2185267}, {"segmentation": [[208.08, 61.46, 257.45, 60.55, 257.27, 63.99, 253.11, 71.76, 242.08, 76.11, 239.01, 76.11, 229.24, 76.11, 223.27, 76.11, 215.5, 72.85, 210.43, 67.97, 208.81, 65.62]], "area": 619.1643, "iscrowd": 0, "image_id": 543882, "bbox": [208.08, 60.55, 49.37, 15.56], "category_id": 51, "id": 2185965}, {"segmentation": [[25.82, 180.22, 29.14, 186.39, 46.71, 185.91, 45.76, 177.84, 23.44, 178.32]], "area": 158.36384999999984, "iscrowd": 0, "image_id": 121316, "bbox": [23.44, 177.84, 23.27, 8.55], "category_id": 51, "id": 2185994}, {"segmentation": [[188.8, 83.28, 186.83, 85.68, 187.25, 91.03, 186.83, 97.52, 203.03, 98.5, 205.43, 99.91, 217.83, 99.07, 220.22, 98.08, 221.21, 97.09, 220.79, 95.54, 216.84, 96.95, 205.0, 96.95, 196.13, 94.56, 190.77, 89.62, 188.8, 85.26]], "area": 139.10729999999975, "iscrowd": 0, "image_id": 543882, "bbox": [186.83, 83.28, 34.38, 16.63], "category_id": 51, "id": 2186017}, {"segmentation": [[238.67, 95.39, 236.86, 97.04, 242.13, 104.12, 247.07, 109.72, 251.68, 111.2, 260.58, 111.04, 281.16, 110.54, 290.39, 98.52, 290.39, 97.53, 281.66, 98.85, 252.18, 98.85, 241.63, 98.03, 239.16, 97.04]], "area": 529.2554500000006, "iscrowd": 0, "image_id": 543882, "bbox": [236.86, 95.39, 53.53, 15.81], "category_id": 51, "id": 2186052}, {"segmentation": [[392.08, 164.81, 390.65, 171.61, 386.36, 180.92, 380.63, 185.21, 373.82, 189.15, 364.16, 185.21, 352.7, 193.81, 344.82, 200.25, 342.32, 204.91, 342.68, 212.78, 369.53, 206.34, 376.33, 211.35, 382.78, 225.31, 391.37, 229.61, 408.2, 232.83, 414.28, 232.48, 431.83, 237.13, 449.01, 239.99, 458.32, 239.28, 474.07, 229.61, 497.7, 209.2, 509.52, 197.75, 512.74, 193.09, 500.57, 184.5, 491.98, 174.47, 496.99, 166.6, 494.48, 153.35, 484.46, 142.97, 474.43, 138.67, 466.56, 137.95, 453.67, 150.49, 453.31, 152.28, 447.94, 140.46, 440.78, 134.02, 434.33, 131.87, 422.88, 133.3, 412.49, 145.83, 410.34, 146.91, 399.6, 153.35, 392.44, 161.58]], "area": 10799.241549999997, "iscrowd": 0, "image_id": 382979, "bbox": [342.32, 131.87, 170.42, 108.12], "category_id": 53, "id": 2186736}, {"segmentation": [[170.44, 200.79, 195.36, 208.88, 203.78, 208.88, 202.81, 204.02, 194.07, 194.64, 185.97, 189.78, 177.23, 194.31, 172.38, 198.2]], "area": 346.62574999999987, "iscrowd": 0, "image_id": 543882, "bbox": [170.44, 189.78, 33.34, 19.1], "category_id": 54, "id": 2187170}, {"segmentation": [[397.69, 179.35, 396.83, 168.86, 398.11, 167.15, 401.76, 171.43, 405.18, 169.93, 407.11, 167.15, 409.25, 165.01, 412.68, 169.07, 414.82, 173.14, 407.54, 171.43, 406.47, 173.78, 406.89, 179.78, 397.9, 179.14]], "area": 128.90590000000006, "iscrowd": 0, "image_id": 543882, "bbox": [396.83, 165.01, 17.99, 14.77], "category_id": 57, "id": 2188125}, {"segmentation": [[77.97, 100.64, 81.79, 92.04, 90.07, 84.08, 105.99, 83.12, 123.83, 84.08, 128.61, 91.4, 128.93, 94.91, 126.38, 100.32, 80.83, 100.96]], "area": 752.6598499999996, "iscrowd": 0, "image_id": 502517, "bbox": [77.97, 83.12, 50.96, 17.84], "category_id": 62, "id": 2189749}, {"segmentation": [[127.56, 63.14, 134.95, 52.52, 141.88, 49.28, 167.28, 47.9, 175.13, 52.05, 176.98, 61.75]], "area": 574.1764499999999, "iscrowd": 0, "image_id": 502517, "bbox": [127.56, 47.9, 49.42, 15.24], "category_id": 62, "id": 2190004}, {"segmentation": [[88.7, 320.41, 85.94, 309.74, 83.88, 311.12, 81.81, 316.28, 84.57, 328.33, 89.77, 339.34, 88.16, 340.95, 88.43, 347.93, 90.31, 352.22, 92.19, 359.19, 92.72, 367.51, 97.01, 373.48, 99.16, 378.85, 104.8, 380.72, 114.45, 382.87, 119.55, 382.87, 136.99, 378.85, 137.53, 400.04, 138.6, 425.06, 151.21, 426.4, 149.6, 397.69, 148.53, 373.01, 160.6, 367.91, 160.33, 347.39, 139.94, 334.78, 119.55, 343.36, 109.36, 349.27, 105.06, 351.41, 109.89, 338.8, 108.82, 328.07, 103.45, 325.66, 90.31, 321.1]], "area": 3555.951550000002, "iscrowd": 0, "image_id": 346754, "bbox": [81.81, 309.74, 78.79, 116.66], "category_id": 62, "id": 2190133}, {"segmentation": [[388.24, 131.93, 387.63, 128.41, 384.97, 125.14, 381.45, 124.77, 378.05, 125.26, 375.99, 129.75, 376.72, 133.51]], "area": 80.84619999999995, "iscrowd": 0, "image_id": 41577, "bbox": [375.99, 124.77, 12.25, 8.74], "category_id": 62, "id": 2190239}, {"segmentation": [[79.63, 64.31, 87.08, 53.39, 90.55, 50.66, 96.01, 50.66, 122.07, 48.92, 126.29, 49.67, 127.28, 60.59, 126.78, 62.57]], "area": 566.2921500000002, "iscrowd": 0, "image_id": 502517, "bbox": [79.63, 48.92, 47.65, 15.39], "category_id": 62, "id": 2190464}, {"segmentation": [[74.7, 35.49, 80.16, 25.98, 86.86, 19.64, 96.37, 16.64, 111.69, 16.12, 118.73, 16.12, 123.31, 19.64, 125.42, 25.45, 125.07, 30.73, 124.37, 36.54, 74.18, 36.54]], "area": 861.55255, "iscrowd": 0, "image_id": 502517, "bbox": [74.18, 16.12, 51.24, 20.42], "category_id": 62, "id": 2192099}, {"segmentation": [[45.46, 190.29, 42.6, 189.58, 42.24, 194.95, 39.74, 194.95, 41.88, 180.63, 35.8, 172.03, 35.44, 167.74, 39.74, 161.29, 42.24, 173.82, 47.61, 183.85, 49.05, 187.43, 60.14, 188.15, 68.02, 198.17, 55.13, 206.76, 54.77, 206.76, 45.82, 192.08]], "area": 410.3624999999998, "iscrowd": 0, "image_id": 23015, "bbox": [35.44, 161.29, 32.58, 45.47], "category_id": 62, "id": 2192128}, {"segmentation": [[238.07, 384.91, 225.1, 336.88, 240.95, 318.63, 239.03, 272.53, 190.52, 273.49, 165.55, 273.49, 172.27, 325.36, 173.23, 341.18, 175.15, 402.65, 184.28, 403.61, 184.76, 385.36, 229.42, 385.84]], "area": 7344.306049999998, "iscrowd": 0, "image_id": 579659, "bbox": [165.55, 272.53, 75.4, 131.08], "category_id": 62, "id": 2192221}, {"segmentation": [[103.17, 164.33, 92.44, 164.01, 89.64, 161.06, 87.31, 156.09, 84.05, 149.25, 87.47, 148.16, 87.47, 144.43, 89.33, 142.56, 89.49, 139.61, 86.84, 138.68, 89.49, 137.59, 97.57, 154.84, 111.4, 158.11, 111.72, 159.04, 111.09, 159.66, 116.07, 168.68, 113.27, 170.54, 111.72, 168.37, 107.67, 171.63, 108.14, 173.19, 104.56, 174.9, 103.48, 173.65, 103.63, 172.72, 101.46, 169.46, 101.15, 167.43, 99.44, 166.81, 98.35, 165.72, 98.66, 165.57, 103.01, 164.79]], "area": 399.6962499999999, "iscrowd": 0, "image_id": 23015, "bbox": [84.05, 137.59, 32.02, 37.31], "category_id": 62, "id": 2192322}, {"segmentation": [[41.32, 139.8, 57.01, 156.58, 57.56, 182.02, 62.97, 183.11, 68.92, 169.03, 71.09, 173.36, 76.5, 174.99, 98.15, 175.53, 102.48, 172.28, 104.1, 182.02, 108.44, 183.65, 106.81, 169.03, 105.19, 155.5, 98.69, 151.17, 100.32, 137.64, 105.73, 124.65, 76.5, 121.4, 68.92, 121.4, 63.51, 140.89, 60.8, 138.72]], "area": 2475.6737500000004, "iscrowd": 0, "image_id": 11754, "bbox": [41.32, 121.4, 67.12, 62.25], "category_id": 62, "id": 2192417}, {"segmentation": [[162.96, 122.45, 189.95, 119.75, 195.35, 122.99, 203.99, 131.63, 210.47, 146.74, 212.09, 153.76, 214.79, 164.56, 209.39, 166.18, 167.28, 167.8, 165.66, 166.72, 162.96, 164.02]], "area": 2043.5059, "iscrowd": 0, "image_id": 11754, "bbox": [162.96, 119.75, 51.83, 48.05], "category_id": 62, "id": 2192445}, {"segmentation": [[468.34, 407.01, 506.79, 423.67, 513.84, 385.22, 526.02, 385.22, 561.27, 374.97, 593.96, 360.23, 599.72, 352.53, 604.85, 332.03, 617.67, 333.31, 622.8, 338.43, 611.9, 380.09, 590.11, 435.21, 584.98, 459.51, 581.14, 478.03, 374.13, 477.39, 362.59, 474.19, 366.44, 464.57, 362.59, 462.65, 409.38, 438.3, 448.47, 414.58, 467.06, 404.97, 469.62, 402.4]], "area": 16647.59669999999, "iscrowd": 0, "image_id": 130949, "bbox": [362.59, 332.03, 260.21, 146.0], "category_id": 62, "id": 2192609}, {"segmentation": [[46.48, 285.1, 43.58, 290.32, 45.9, 293.8, 49.38, 301.92, 50.74, 306.51, 49.0, 308.44, 52.87, 318.89, 56.93, 327.92, 59.63, 333.33, 62.92, 333.72, 69.49, 336.23, 82.45, 337.78, 87.09, 336.62, 87.67, 335.27, 83.22, 325.21, 81.87, 319.22, 82.45, 313.8, 84.96, 309.94, 70.85, 317.28, 60.02, 321.34, 64.27, 315.16, 68.33, 303.55, 66.4, 295.63, 62.73, 292.92, 51.12, 292.34, 48.8, 290.21, 46.68, 285.38], [87.0, 309.17, 90.47, 321.33, 108.34, 327.53, 120.75, 324.06, 107.1, 315.12, 102.63, 310.9, 96.43, 307.18]], "area": 1342.7462500000004, "iscrowd": 0, "image_id": 346754, "bbox": [43.58, 285.1, 77.17, 52.68], "category_id": 62, "id": 2192670}, {"segmentation": [[35.68, 179.88, 46.08, 165.02, 63.31, 163.53, 78.25, 164.36, 85.73, 177.65, 82.41, 178.48, 72.44, 178.48, 71.61, 173.5, 47.53, 176.82, 45.87, 179.31]], "area": 507.8128999999996, "iscrowd": 0, "image_id": 502517, "bbox": [35.68, 163.53, 50.05, 16.35], "category_id": 62, "id": 2192679}, {"segmentation": [[59.25, 77.24, 65.79, 78.46, 67.01, 80.1, 111.98, 78.87, 126.29, 76.42, 125.47, 73.15, 129.97, 73.15, 132.01, 107.89, 139.78, 108.71, 131.6, 123.43, 135.69, 131.19, 134.05, 142.64, 132.83, 151.63, 137.32, 160.63, 139.78, 173.3, 140.19, 191.28, 140.19, 195.37, 130.38, 192.51, 129.97, 180.66, 115.66, 166.35, 96.45, 180.25, 95.63, 182.29, 95.22, 200.69, 90.32, 200.28, 88.27, 188.01, 70.69, 187.2, 68.24, 197.82, 62.11, 194.96, 60.47, 129.15, 60.88, 111.98]], "area": 7803.595199999999, "iscrowd": 0, "image_id": 420051, "bbox": [59.25, 73.15, 80.94, 127.54], "category_id": 62, "id": 2192936}, {"segmentation": [[403.35, 214.42, 400.86, 205.11, 401.36, 202.12, 405.51, 200.96, 397.7, 187.66, 403.19, 186.5, 401.19, 179.02, 409.34, 179.69, 412.33, 184.51, 411.99, 191.65, 414.99, 196.97, 415.15, 202.95, 418.31, 206.94, 417.64, 210.76, 416.65, 214.09]], "area": 435.12514999999956, "iscrowd": 0, "image_id": 302680, "bbox": [397.7, 179.02, 20.61, 35.4], "category_id": 64, "id": 2193552}, {"segmentation": [[50.77, 228.0, 75.54, 205.71, 108.97, 182.18, 115.17, 166.08, 134.98, 152.46, 152.32, 149.98, 162.22, 132.65, 189.47, 123.98, 232.81, 116.55, 258.81, 114.07, 268.72, 116.55, 294.73, 126.46, 299.68, 112.83, 298.44, 89.31, 293.49, 83.11, 314.54, 78.16, 320.73, 68.25, 319.49, 36.06, 328.16, 32.34, 338.07, 42.25, 346.74, 94.26, 354.17, 79.4, 364.07, 38.53, 364.07, 16.24, 362.83, 10.05, 382.65, 11.29, 382.65, 39.77, 397.51, 90.54, 403.7, 102.93, 427.23, 100.45, 434.66, 97.97, 443.33, 64.54, 459.42, 67.01, 464.38, 101.69, 489.15, 106.64, 499.05, 116.55, 515.15, 130.17, 531.25, 127.69, 568.4, 123.98, 609.26, 127.69, 635.27, 146.27, 640.0, 178.47, 640.0, 361.74, 640.0, 426.13, 609.26, 444.71, 575.83, 459.57, 533.73, 469.48, 134.98, 469.48, 97.83, 450.9, 48.3, 422.42, 19.81, 370.41, 9.91, 309.73, 23.53, 328.31, 33.44, 329.54, 70.59, 327.07, 86.68, 313.44, 92.88, 283.72, 87.92, 272.58, 79.25, 260.2, 69.35, 244.1, 52.01, 230.48]], "area": 202723.83350000007, "iscrowd": 0, "image_id": 426513, "bbox": [9.91, 10.05, 630.09, 459.43], "category_id": 67, "id": 2194747}, {"segmentation": [[46.11, 67.71, 44.23, 3.19, 132.75, 8.44, 131.12, 71.38, 46.35, 69.13]], "area": 5588.89265, "iscrowd": 0, "image_id": 178436, "bbox": [44.23, 3.19, 88.52, 68.19], "category_id": 72, "id": 2194862}, {"segmentation": [[640.0, 28.16, 629.79, 26.54, 624.52, 26.54, 609.51, 32.63, 594.51, 47.63, 594.51, 57.77, 640.0, 93.87]], "area": 1983.9216500000007, "iscrowd": 0, "image_id": 16082, "bbox": [594.51, 26.54, 45.49, 67.33], "category_id": 74, "id": 2195092}, {"segmentation": [[51.64, 629.6, 54.09, 605.7, 64.5, 587.93, 93.91, 567.1, 125.16, 555.46, 156.41, 553.62, 183.98, 560.98, 198.07, 575.07, 201.13, 613.05, 176.63, 640.0, 60.22, 638.17]], "area": 10418.245999999996, "iscrowd": 0, "image_id": 342843, "bbox": [51.64, 553.62, 149.49, 86.38], "category_id": 81, "id": 2196363}, {"segmentation": [[195.52, 346.86, 187.84, 294.72, 192.29, 294.32, 199.97, 347.67, 195.52, 348.08]], "area": 235.85534999999948, "iscrowd": 0, "image_id": 528047, "bbox": [187.84, 294.32, 12.13, 53.76], "category_id": 84, "id": 2196538}, {"segmentation": [[121.1, 281.76, 141.01, 281.19, 140.15, 292.85, 135.6, 349.44, 133.33, 353.13, 117.97, 353.98, 121.39, 303.65, 123.09, 283.18]], "area": 1270.66395, "iscrowd": 0, "image_id": 319917, "bbox": [117.97, 281.19, 23.04, 72.79], "category_id": 84, "id": 2196692}, {"segmentation": [[77.61, 287.06, 76.9, 284.22, 79.74, 281.85, 89.45, 280.19, 92.29, 279.72, 93.47, 281.14, 93.24, 285.16, 90.39, 286.58, 80.68, 289.43, 78.32, 289.43, 77.37, 288.24]], "area": 109.09579999999977, "iscrowd": 0, "image_id": 408672, "bbox": [76.9, 279.72, 16.57, 9.71], "category_id": 85, "id": 2197182}, {"segmentation": [[415.24, 103.45, 416.66, 72.45, 412.11, 72.16, 405.85, 71.31, 405.57, 63.63, 407.84, 59.36, 415.81, 55.1, 419.5, 51.4, 421.78, 44.29, 428.61, 44.0, 430.03, 47.13, 429.74, 51.4, 436.85, 55.66, 439.41, 57.94, 445.96, 60.78, 445.96, 63.91, 448.23, 69.32, 446.81, 72.16, 443.4, 74.72, 441.41, 75.86, 439.13, 76.43, 435.72, 74.15, 434.58, 86.67, 435.15, 105.73]], "area": 1403.0775499999995, "iscrowd": 0, "image_id": 263098, "bbox": [405.57, 44.0, 42.66, 61.73], "category_id": 11, "id": 2198005}, {"segmentation": [[484.44, 189.84, 480.65, 202.64, 477.81, 210.23, 477.33, 221.13, 483.97, 228.24, 482.55, 237.25, 481.13, 243.88, 486.34, 246.73, 493.45, 245.78, 491.08, 232.51, 496.3, 219.71, 493.93, 212.6, 494.4, 200.27, 491.56, 188.42, 486.82, 188.89]], "area": 716.5733499999999, "iscrowd": 0, "image_id": 409374, "bbox": [477.33, 188.42, 18.97, 58.31], "category_id": 1, "id": 2198235}, {"segmentation": [[487.65, 262.79, 468.04, 270.06, 462.22, 268.61, 445.51, 270.79, 441.88, 266.43, 444.06, 254.08, 479.66, 159.62, 467.31, 140.0, 462.22, 158.17, 454.96, 169.79, 448.42, 162.53, 453.51, 85.51, 455.68, 84.05, 462.22, 74.61, 459.32, 71.7, 428.8, 125.47, 425.89, 137.82, 424.44, 147.99, 415.72, 147.99, 415.0, 135.64, 422.26, 111.66, 458.59, 38.28, 469.49, 31.01, 479.66, 19.39, 471.67, 16.48, 459.32, 16.48, 459.32, 7.04, 468.76, 0.0, 514.54, 0.5, 513.09, 20.84, 503.64, 33.19, 532.7, 61.53, 541.42, 98.59, 530.52, 110.21, 532.7, 123.29, 525.01, 136.72, 521.18, 134.33, 511.59, 121.38, 511.11, 126.18, 509.19, 138.16, 528.37, 177.95, 529.81, 204.79, 535.56, 217.26, 539.87, 225.89, 539.87, 244.1, 548.02, 250.81, 553.78, 256.57, 563.84, 253.69, 566.72, 262.32, 548.98, 270.95, 519.74, 278.14, 519.74, 274.3, 518.3, 252.25, 515.91, 248.9, 511.59, 236.43, 499.61, 192.33, 490.5, 211.03, 481.39, 219.66, 474.68, 238.35, 474.68, 244.58, 473.72, 250.33, 476.6, 259.44, 486.66, 259.44]], "area": 18343.401400000002, "iscrowd": 0, "image_id": 155049, "bbox": [415.0, 0.0, 151.72, 278.14], "category_id": 1, "id": 2198313}, {"segmentation": [[257.59, 41.01, 269.73, 31.84, 275.93, 27.8, 279.43, 25.1, 282.67, 21.86, 281.05, 16.2, 282.94, 10.54, 286.18, 8.65, 291.3, 10.27, 294.0, 14.58, 294.0, 20.25, 293.19, 24.02, 292.38, 26.72, 297.23, 33.19, 299.39, 35.89, 298.58, 42.36, 298.85, 46.14, 299.39, 47.76, 302.36, 49.37, 304.25, 53.15, 302.36, 56.92, 297.23, 53.96, 290.76, 50.45, 290.76, 45.6, 291.03, 44.25, 287.26, 52.88, 282.94, 51.53, 274.51, 47.22, 266.96, 44.25, 262.65, 42.9, 258.6, 41.28], [288.65, 76.69, 285.94, 81.33, 284.98, 83.84, 284.98, 91.96, 288.07, 89.45, 289.04, 84.23, 288.84, 77.07]], "area": 993.0299499999994, "iscrowd": 0, "image_id": 200910, "bbox": [257.59, 8.65, 46.66, 83.31], "category_id": 1, "id": 2198351}, {"segmentation": [[367.66, 229.94, 362.68, 228.99, 363.16, 214.54, 361.74, 207.68, 360.08, 202.23, 363.39, 194.89, 371.45, 191.81, 370.97, 197.26, 369.32, 199.62, 370.26, 203.89, 368.61, 209.33, 368.61, 214.07, 367.66, 219.99, 366.71, 224.49, 367.18, 228.52, 369.79, 228.75, 369.79, 229.94]], "area": 236.59900000000016, "iscrowd": 0, "image_id": 409374, "bbox": [360.08, 191.81, 11.37, 38.13], "category_id": 1, "id": 2198445}, {"segmentation": [[350.31, 168.59, 353.13, 166.54, 351.85, 157.3, 350.56, 151.91, 358.52, 140.87, 359.03, 144.72, 360.32, 146.52, 358.78, 159.09, 358.78, 165.25, 361.09, 167.82, 357.75, 168.59, 356.98, 167.31, 355.7, 168.85], [351.28, 142.92, 352.29, 140.48, 352.57, 132.31, 354.87, 135.46, 356.16, 136.47, 355.73, 138.05]], "area": 194.06044999999935, "iscrowd": 0, "image_id": 311522, "bbox": [350.31, 132.31, 10.78, 36.54], "category_id": 1, "id": 2198584}, {"segmentation": [[126.91, 189.02, 139.19, 200.47, 163.74, 269.21, 173.56, 316.67, 216.11, 424.69, 224.29, 421.41, 199.74, 352.68, 172.74, 278.21, 158.01, 226.66, 146.55, 198.84, 128.55, 185.74]], "area": 2322.4688999999985, "iscrowd": 0, "image_id": 343057, "bbox": [126.91, 185.74, 97.38, 238.95], "category_id": 35, "id": 2199005}, {"segmentation": [[498.44, 394.89, 498.66, 408.12, 488.52, 407.9, 487.2, 401.73, 484.99, 396.21, 485.21, 392.91, 487.42, 386.74, 491.39, 384.97, 499.32, 390.7], [529.52, 403.27, 523.35, 411.87, 518.94, 404.81, 518.5, 403.05, 518.06, 401.95, 516.96, 401.51, 517.4, 400.18]], "area": 321.8767499999996, "iscrowd": 0, "image_id": 279401, "bbox": [484.99, 384.97, 44.53, 26.9], "category_id": 35, "id": 2199195}, {"segmentation": [[197.7, 206.24, 207.21, 204.28, 209.17, 198.96, 209.73, 195.61, 201.06, 200.64, 195.46, 203.44, 190.15, 203.16, 193.79, 205.96], [213.09, 200.92, 231.83, 198.4, 235.74, 192.53, 232.39, 191.69, 228.19, 193.93, 223.71, 196.17, 210.01, 198.12, 208.61, 199.8, 210.57, 201.2]], "area": 178.35880000000017, "iscrowd": 0, "image_id": 355111, "bbox": [190.15, 191.69, 45.59, 14.55], "category_id": 35, "id": 2200064}, {"segmentation": [[276.46, 291.88, 272.76, 294.91, 192.54, 289.87, 224.09, 290.21, 273.77, 293.23], [301.63, 290.88, 297.27, 295.91, 272.76, 293.9, 297.27, 294.91, 297.27, 294.91, 301.29, 288.86]], "area": 130.22645000000145, "iscrowd": 0, "image_id": 162882, "bbox": [192.54, 288.86, 109.09, 7.05], "category_id": 35, "id": 2200665}, {"segmentation": [[231.92, 437.68, 247.93, 441.48, 305.24, 441.9, 303.97, 436.42, 307.77, 435.58, 317.04, 441.9, 323.78, 440.63, 338.11, 439.37, 343.16, 437.68, 346.11, 439.37, 348.64, 442.74, 382.35, 442.74, 380.67, 449.9, 311.14, 447.8, 246.24, 445.69, 244.14, 446.11, 233.18, 446.53, 227.7, 443.16, 227.7, 439.37, 231.92, 436.42], [158.17, 434.73, 164.49, 430.94, 183.04, 437.26, 220.96, 437.26, 221.8, 435.16, 231.07, 430.94, 239.5, 430.52, 245.4, 431.79, 245.82, 435.16, 232.34, 438.11, 226.44, 440.21, 182.19, 439.79, 169.13, 438.95, 162.81, 437.26]], "area": 1394.9297500000002, "iscrowd": 0, "image_id": 528493, "bbox": [158.17, 430.52, 224.18, 19.38], "category_id": 35, "id": 2200689}, {"segmentation": [[441.91, 567.33, 515.74, 579.41, 512.16, 583.88, 488.44, 588.36, 418.64, 575.38, 440.57, 567.33]], "area": 977.6370499999998, "iscrowd": 0, "image_id": 525360, "bbox": [418.64, 567.33, 97.1, 21.03], "category_id": 35, "id": 2201191}, {"segmentation": [[421.81, 578.54, 480.46, 585.88, 478.51, 591.74, 465.8, 592.23, 408.61, 583.43]], "area": 474.6880500000007, "iscrowd": 0, "image_id": 525360, "bbox": [408.61, 578.54, 71.85, 13.69], "category_id": 35, "id": 2201846}, {"segmentation": [[359.95, 270.7, 365.69, 270.29, 368.02, 268.65, 368.43, 269.75, 366.92, 271.8, 359.95, 272.62]], "area": 15.295550000000107, "iscrowd": 0, "image_id": 415946, "bbox": [359.95, 268.65, 8.48, 3.97], "category_id": 35, "id": 2202330}, {"segmentation": [[194.27, 368.84, 187.49, 377.89, 185.22, 379.02, 185.79, 366.58, 182.96, 335.49, 181.83, 323.62, 181.83, 305.53, 185.22, 276.14, 176.74, 254.66, 175.61, 245.05, 169.96, 237.13, 173.35, 233.17, 176.74, 238.26, 181.83, 236.0, 181.83, 237.7, 180.7, 250.7, 190.88, 269.92, 194.27, 271.05, 199.69, 265.69, 202.89, 265.94, 207.07, 268.4, 208.8, 271.6, 209.04, 276.02, 209.04, 277.26, 211.26, 273.56, 214.7, 266.67, 208.55, 265.44, 205.35, 264.21, 205.35, 261.51, 211.5, 262.74, 213.22, 262.98, 213.22, 259.54, 217.16, 260.52, 217.9, 258.06, 220.11, 259.05, 220.36, 261.02, 220.85, 264.71, 220.61, 265.44, 218.15, 269.14, 217.65, 270.37, 215.44, 281.68, 207.57, 287.1, 202.64, 294.48, 202.64, 306.29, 206.58, 321.05, 209.04, 334.83, 208.06, 336.8, 210.52, 342.46, 213.72, 359.93, 215.19, 367.56, 215.93, 374.2, 212.49, 377.4, 209.53, 376.42, 208.8, 374.69, 207.57, 362.15, 206.34, 349.6, 198.46, 335.32, 197.23, 337.79, 191.57, 339.75, 191.57, 341.72, 191.82, 345.17, 191.08, 359.19, 194.03, 366.08]], "area": 2577.371949999998, "iscrowd": 0, "image_id": 428518, "bbox": [169.96, 233.17, 50.89, 145.85], "category_id": 1, "id": 2204365}, {"segmentation": [[118.15, 214.19, 121.67, 203.09, 126.0, 196.6, 132.49, 191.19, 133.84, 189.56, 133.57, 185.23, 135.47, 182.8, 132.76, 178.74, 131.68, 176.58, 131.41, 172.79, 128.43, 165.21, 127.35, 163.05, 126.0, 160.34, 128.16, 157.09, 128.16, 153.57, 135.47, 147.35, 139.8, 145.73, 147.64, 145.18, 150.89, 145.18, 153.33, 143.56, 157.66, 144.64, 161.99, 147.35, 164.69, 148.97, 167.94, 152.76, 170.65, 158.72, 170.65, 162.5, 168.48, 161.42, 168.21, 166.29, 170.1, 169.81, 170.1, 173.06, 171.19, 174.41, 175.52, 177.12, 178.22, 180.63, 180.12, 189.29, 193.11, 202.28, 200.68, 210.67, 209.07, 224.74, 202.04, 229.61, 202.85, 234.49, 203.93, 237.73, 199.87, 237.19, 192.02, 219.87, 181.2, 205.26], [202.92, 255.22, 222.78, 255.7, 226.17, 260.06, 226.17, 265.88, 222.78, 275.56, 220.84, 289.13, 218.9, 294.94, 217.94, 302.69, 220.36, 307.53, 220.36, 310.44, 220.84, 319.16, 222.3, 323.52, 223.75, 327.88, 224.72, 331.27, 216.97, 335.63, 208.73, 337.08, 206.31, 336.6, 203.4, 330.79, 203.4, 324.97, 202.44, 313.35, 202.44, 311.89, 204.37, 308.02, 201.47, 299.78, 200.5, 294.94, 197.11, 294.46, 189.36, 299.78, 181.12, 300.27, 173.37, 298.33, 169.98, 298.33, 173.37, 304.14, 183.06, 309.96, 185.0, 311.89, 180.15, 319.64, 175.31, 327.39, 173.86, 333.69, 163.68, 337.57, 156.42, 339.02, 152.06, 337.57, 150.6, 333.69, 156.42, 327.39, 156.9, 323.52, 156.9, 316.25, 156.42, 312.38, 154.96, 309.47, 137.04, 302.69, 123.96, 300.27, 115.24, 295.91, 114.27, 288.64, 113.79, 281.38, 115.24, 275.08, 116.21, 270.72, 127.84, 294.94, 156.9, 293.97, 167.56, 294.94, 171.92, 294.46, 183.54, 292.03, 197.59, 290.58, 202.44, 290.58, 207.28, 290.58, 211.15, 288.16]], "area": 6394.2829500000025, "iscrowd": 0, "image_id": 151322, "bbox": [113.79, 143.56, 112.38, 195.46], "category_id": 1, "id": 2204977}, {"segmentation": [[152.54, 228.2, 214.05, 202.15, 218.39, 191.3, 207.53, 171.76, 205.36, 160.19, 183.66, 138.48, 158.33, 150.78, 131.56, 176.83, 128.66, 194.92, 151.1, 226.03]], "area": 4979.5790499999985, "iscrowd": 0, "image_id": 322725, "bbox": [128.66, 138.48, 89.73, 89.72], "category_id": 1, "id": 2205026}, {"segmentation": [[277.82, 258.5, 298.97, 263.16, 306.15, 267.38, 304.89, 261.04, 309.11, 253.85, 308.27, 233.56, 314.61, 224.68, 326.45, 212.41, 320.95, 203.54, 326.87, 181.97, 334.91, 174.36, 329.83, 169.71, 325.6, 159.14, 323.91, 140.11, 328.99, 121.5, 346.32, 107.97, 359.85, 109.67, 380.15, 119.81, 389.03, 150.26, 389.03, 158.29, 392.41, 162.52, 396.22, 167.59, 401.72, 160.83, 412.29, 147.72, 428.78, 147.72, 433.01, 159.56, 433.85, 166.33, 441.46, 179.86, 455.42, 189.16, 463.03, 219.6, 482.05, 236.52, 491.78, 255.12, 518.42, 269.08, 545.48, 275.84, 551.4, 280.91, 558.17, 283.03, 561.97, 273.73, 569.16, 271.61, 568.74, 277.11, 570.43, 283.03, 572.12, 283.45, 578.46, 268.65, 592.42, 265.27, 599.6, 265.27, 608.91, 260.62, 617.79, 259.77, 616.09, 268.23, 620.75, 273.73, 620.75, 281.76, 617.36, 289.79, 614.83, 298.67, 610.17, 299.1, 604.68, 296.98, 599.6, 288.53, 592.42, 281.76, 589.88, 282.18, 585.65, 296.98, 585.23, 307.13, 586.5, 311.78, 585.65, 313.47, 575.08, 318.12, 565.78, 318.55, 537.02, 323.62, 508.69, 329.12, 503.62, 322.35, 484.59, 319.82, 471.06, 310.51, 443.15, 284.72, 444.84, 321.08, 443.58, 329.12, 443.15, 333.35, 451.19, 346.88, 456.26, 355.76, 459.64, 404.81, 460.91, 424.26, 454.99, 431.44, 449.5, 438.63, 441.89, 444.98, 439.35, 479.65, 326.87, 480.0, 327.3, 441.59, 317.15, 433.56, 317.15, 414.53, 313.34, 402.27, 311.65, 389.16, 314.19, 384.09, 314.61, 374.36, 318.84, 357.45, 326.45, 337.15, 323.49, 327.85, 317.15, 309.24, 315.88, 302.48, 308.69, 307.55, 298.97, 289.79, 294.31, 269.92]], "area": 54657.2824, "iscrowd": 0, "image_id": 205700, "bbox": [277.82, 107.97, 342.93, 372.03], "category_id": 1, "id": 2205102}, {"segmentation": [[51.58, 271.91, 54.37, 272.0, 57.77, 271.48, 58.11, 267.9, 57.24, 265.11, 55.85, 263.72, 57.33, 262.59, 55.59, 261.45, 54.54, 259.01, 53.32, 259.19, 52.97, 261.54, 51.32, 262.24, 52.8, 263.72, 52.89, 265.11, 51.75, 265.55, 51.66, 270.34]], "area": 60.66020000000012, "iscrowd": 0, "image_id": 274881, "bbox": [51.32, 259.01, 6.79, 12.99], "category_id": 1, "id": 2205459}, {"segmentation": [[49.29, 155.26, 59.25, 157.92, 64.56, 160.57, 64.56, 165.88, 63.23, 171.19, 57.26, 181.82, 53.27, 189.12, 53.94, 193.77, 53.94, 203.72, 61.91, 223.64, 66.55, 226.3, 71.2, 225.63, 79.83, 221.65, 84.48, 217.67, 85.8, 218.99, 84.48, 233.6, 83.15, 243.56, 80.49, 251.52, 77.84, 265.46, 71.2, 283.39, 73.85, 296.67, 75.18, 305.3, 83.15, 317.91, 84.48, 327.87, 83.15, 337.83, 85.8, 359.73, 87.13, 372.35, 85.8, 375.0, 76.51, 373.67, 72.53, 365.04, 71.2, 357.74, 69.21, 347.78, 67.22, 345.13, 62.57, 345.13, 57.26, 345.13, 56.59, 355.09, 57.26, 363.05, 59.91, 372.35, 59.91, 374.34, 59.91, 375.0, 55.27, 375.0, 43.98, 373.01, 33.36, 373.67, 33.36, 371.68, 36.01, 363.05, 39.33, 359.07, 39.33, 357.08, 55.27, 354.42, 55.93, 344.46, 64.56, 340.48, 73.19, 335.17, 76.51, 326.54, 75.85, 314.59, 74.52, 307.29, 67.88, 292.02, 66.55, 287.37, 63.9, 280.73, 62.57, 276.75, 61.91, 267.46, 61.91, 264.8, 57.92, 254.18, 56.59, 248.87, 56.59, 242.23, 55.27, 241.56, 53.27, 240.9, 50.62, 240.9, 49.29, 240.9, 47.3, 238.25, 43.32, 236.92, 40.66, 236.92, 36.68, 236.92, 35.35, 236.92, 33.36, 234.93, 30.7, 232.93, 28.05, 232.27, 24.73, 228.29, 23.4, 226.96, 20.75, 225.63, 36.01, 213.96, 42.65, 219.27, 49.96, 211.97, 49.96, 204.0, 48.63, 191.39, 46.64, 186.08, 41.33, 166.83, 42.65, 158.86, 44.64, 158.86, 44.64, 158.86, 47.96, 158.86]], "area": 3895.6457999999984, "iscrowd": 0, "image_id": 294416, "bbox": [20.75, 155.26, 66.38, 219.74], "category_id": 1, "id": 2205582}, {"segmentation": [[215.52, 309.85, 213.05, 291.38, 235.22, 224.88, 235.22, 165.76, 256.16, 139.9, 266.01, 130.05, 252.46, 106.65, 242.61, 80.79, 258.62, 57.39, 286.95, 50.0, 310.34, 72.17, 317.73, 104.19, 314.04, 127.59, 332.51, 157.14, 338.67, 205.17, 334.98, 211.33, 321.43, 272.91, 322.66, 293.84, 371.92, 333.25, 374.38, 352.96, 364.53, 410.84, 354.68, 472.41, 369.46, 493.35, 373.15, 500.0, 322.66, 500.0, 326.35, 419.46, 333.74, 359.11, 300.49, 361.58, 293.1, 375.12, 273.4, 444.09, 224.14, 451.48, 181.03, 449.01, 151.48, 471.18, 150.25, 493.35, 124.38, 497.04, 92.36, 461.33, 130.54, 440.39, 194.58, 418.23, 237.68, 412.07, 240.15, 394.83, 233.99, 335.71, 221.67, 318.47]], "area": 43415.954299999976, "iscrowd": 0, "image_id": 22265, "bbox": [92.36, 50.0, 282.02, 450.0], "category_id": 1, "id": 2205635}, {"segmentation": [[210.74, 181.5, 209.54, 177.29, 210.74, 175.0, 211.47, 173.19, 210.26, 170.67, 209.66, 168.98, 208.1, 167.29, 206.77, 165.61, 205.33, 166.69, 204.6, 169.34, 204.12, 171.75, 206.17, 174.4, 206.65, 175.72, 205.45, 178.01, 204.6, 179.34, 203.52, 181.26, 202.32, 183.07, 202.44, 184.03]], "area": 86.19570000000006, "iscrowd": 0, "image_id": 377226, "bbox": [202.32, 165.61, 9.15, 18.42], "category_id": 1, "id": 2205810}, {"segmentation": [[134.64, 250.96, 150.82, 250.33, 157.16, 248.74, 157.16, 244.94, 163.5, 243.35, 162.87, 236.06, 159.7, 226.86, 162.55, 214.81, 160.02, 202.75, 161.28, 197.05, 166.04, 177.7, 167.94, 159.94, 169.21, 138.37, 169.21, 132.03, 164.77, 126.0, 160.02, 124.42, 160.33, 116.8, 156.21, 112.68, 141.94, 110.14, 138.77, 114.27, 139.4, 118.39, 138.45, 120.61, 138.45, 121.88, 139.4, 124.42, 138.45, 128.22, 139.4, 134.56, 138.13, 137.1, 133.37, 141.86, 127.03, 147.57, 124.81, 152.01, 127.03, 157.4, 128.62, 161.21, 129.57, 171.04, 129.89, 181.82, 130.84, 187.53, 136.86, 189.12, 135.59, 195.14, 136.23, 200.22, 137.5, 205.93, 139.72, 211.63, 141.94, 217.34, 144.47, 226.22, 146.06, 233.2, 145.74, 240.18, 141.3, 243.98, 134.64, 247.79, 133.69, 250.33]], "area": 3842.362649999999, "iscrowd": 0, "image_id": 265532, "bbox": [124.81, 110.14, 44.4, 140.82], "category_id": 1, "id": 2206083}, {"segmentation": [[382.58, 304.06, 384.64, 283.42, 389.8, 273.62, 392.9, 259.69, 386.19, 242.67, 385.16, 213.78, 382.06, 201.91, 356.27, 220.48, 335.12, 218.42, 326.86, 213.26, 321.19, 209.13, 318.09, 199.85, 322.22, 189.01, 323.77, 187.41, 335.12, 190.51, 338.21, 192.06, 341.82, 189.48, 362.46, 169.87, 378.97, 136.86, 411.98, 106.94, 421.79, 103.32, 430.56, 100.74, 427.98, 93.52, 424.88, 85.27, 428.49, 62.57, 437.78, 50.19, 455.83, 44.0, 465.64, 50.7, 470.79, 62.57, 472.86, 74.95, 474.41, 85.27, 472.86, 97.13, 467.7, 107.45, 472.86, 110.03, 492.98, 126.54, 506.39, 138.92, 517.74, 179.16, 517.74, 223.52, 511.03, 269.95, 506.91, 269.95, 497.1, 262.73, 492.98, 263.25, 488.33, 269.95, 486.79, 286.46, 488.33, 309.68, 482.14, 330.83, 473.89, 360.23, 458.41, 416.98, 454.8, 430.91, 451.19, 449.48, 455.83, 464.44, 441.39, 474.24, 419.21, 480.0, 399.09, 479.4, 413.53, 464.96, 415.59, 449.48, 407.34, 440.71, 394.96, 411.31, 383.61, 374.16, 375.87, 335.99, 380.51, 314.32]], "area": 41471.369950000015, "iscrowd": 0, "image_id": 576322, "bbox": [318.09, 44.0, 199.65, 436.0], "category_id": 1, "id": 2206523}, {"segmentation": [[575.43, 345.51, 581.56, 345.16, 585.99, 345.16, 589.39, 345.16, 595.18, 325.76, 596.2, 303.64, 594.84, 281.52, 593.47, 275.39, 591.09, 269.61, 585.65, 268.59, 581.9, 272.67, 581.9, 279.14, 579.86, 283.56, 575.78, 289.01, 573.05, 293.43, 572.37, 297.86, 574.75, 299.9, 574.75, 303.98, 574.75, 308.75, 575.78, 313.85, 575.78, 316.58, 574.75, 323.38, 574.75, 329.17, 575.43, 334.61, 575.43, 341.08, 573.73, 343.8, 570.67, 345.85]], "area": 1374.2426000000025, "iscrowd": 0, "image_id": 328487, "bbox": [570.67, 268.59, 25.53, 77.26], "category_id": 1, "id": 2206630}, {"segmentation": [[371.77, 188.85, 373.44, 188.85, 373.74, 186.13, 374.65, 182.51, 375.4, 179.48, 376.61, 182.2, 376.61, 184.62, 376.76, 187.64, 377.97, 188.55, 379.78, 188.4, 379.48, 181.75, 378.88, 178.43, 378.27, 176.61, 378.88, 173.74, 378.57, 172.08, 377.82, 171.78, 377.06, 170.12, 376.16, 168.0, 375.1, 166.94, 373.59, 166.94, 371.77, 169.96, 370.72, 172.68, 372.83, 173.74, 372.08, 178.27, 371.77, 183.41, 371.47, 187.19, 371.47, 189.0]], "area": 123.37584999999996, "iscrowd": 0, "image_id": 84653, "bbox": [370.72, 166.94, 9.06, 22.06], "category_id": 1, "id": 2206679}, {"segmentation": [[36.92, 376.66, 51.48, 373.75, 56.14, 369.09, 51.48, 341.13, 53.22, 321.91, 53.81, 305.61, 48.57, 296.87, 43.91, 291.63, 36.92, 291.63, 30.51, 300.36, 19.44, 310.85, 18.28, 323.08, 25.85, 348.12, 33.42, 365.6, 37.5, 375.5]], "area": 2200.3414000000002, "iscrowd": 0, "image_id": 23676, "bbox": [18.28, 291.63, 37.86, 85.03], "category_id": 1, "id": 2207120}, {"segmentation": [[169.35, 380.39, 162.13, 376.78, 161.1, 379.87, 152.86, 370.59, 159.56, 364.92, 167.81, 345.85, 161.62, 321.62, 164.71, 311.83, 164.71, 306.16, 164.2, 298.94, 162.65, 291.21, 160.07, 283.99, 155.95, 275.74, 162.13, 272.13, 167.81, 274.71, 168.32, 262.86, 167.29, 251.0, 164.2, 244.3, 168.84, 243.78, 170.38, 245.85, 172.44, 255.12, 174.51, 267.5, 173.48, 285.02, 173.48, 289.15, 178.11, 294.3, 180.18, 305.13, 176.57, 320.08, 177.08, 328.32, 181.72, 346.88, 176.05, 356.16, 170.9, 366.47, 168.84, 374.2, 171.41, 378.33, 170.38, 380.9, 164.71, 379.87]], "area": 1637.4194499999999, "iscrowd": 0, "image_id": 428518, "bbox": [152.86, 243.78, 28.86, 137.12], "category_id": 1, "id": 2207407}, {"segmentation": [[292.35, 292.08, 308.15, 282.6, 304.99, 249.42, 290.77, 213.07, 311.31, 190.95, 327.11, 202.01, 349.23, 222.55, 374.52, 232.03, 387.16, 228.87, 376.1, 211.49, 355.56, 195.69, 347.65, 181.46, 353.98, 156.18, 382.42, 173.56, 399.8, 173.56, 407.7, 159.34, 380.84, 151.44, 342.91, 124.58, 319.21, 105.61, 308.15, 100.87, 282.86, 108.77, 268.64, 108.77, 249.68, 108.77, 224.4, 113.51, 238.62, 154.6, 249.68, 171.98, 252.84, 192.53, 265.48, 216.23, 273.38, 254.16, 282.86, 273.12]], "area": 14565.009149999994, "iscrowd": 0, "image_id": 202774, "bbox": [224.4, 100.87, 183.3, 191.21], "category_id": 1, "id": 2207606}, {"segmentation": [[441.55, 369.32, 441.55, 357.15, 440.76, 353.44, 438.38, 351.33, 437.58, 347.89, 437.58, 345.77, 433.88, 339.42, 436.0, 327.78, 439.7, 319.05, 443.4, 313.5, 447.64, 309.8, 445.26, 304.77, 446.84, 299.48, 450.55, 297.1, 458.75, 299.48, 460.07, 304.77, 462.72, 310.85, 469.86, 315.62, 471.97, 321.7, 472.5, 332.02, 471.97, 333.87, 467.74, 335.19, 468.53, 341.54, 467.74, 343.92, 452.66, 347.1, 451.87, 352.39, 450.28, 366.94, 451.08, 394.45, 446.05, 395.24, 441.55, 395.24, 440.23, 393.65, 442.08, 391.27, 442.61, 388.63, 441.55, 382.54, 442.61, 375.4, 442.61, 371.17]], "area": 1776.8436, "iscrowd": 0, "image_id": 165347, "bbox": [433.88, 297.1, 38.62, 98.14], "category_id": 1, "id": 2207839}, {"segmentation": [[579.45, 524.33, 579.77, 518.75, 568.29, 514.98, 560.08, 517.11, 556.8, 520.39, 558.93, 527.12, 564.35, 527.29, 567.14, 525.15, 573.05, 526.3, 580.27, 526.3]], "area": 212.41864999999945, "iscrowd": 0, "image_id": 181149, "bbox": [556.8, 514.98, 23.47, 12.31], "category_id": 3, "id": 2208606}, {"segmentation": [[580.09, 515.35, 580.3, 514.72, 580.94, 513.07, 581.84, 512.27, 583.01, 512.01, 589.02, 511.58, 589.28, 516.26, 588.54, 516.68, 584.66, 516.95, 584.93, 514.66, 583.81, 514.29, 583.12, 514.56, 583.17, 515.62, 583.07, 516.42, 582.11, 516.63, 580.09, 516.52, 579.77, 516.42]], "area": 37.543999999999826, "iscrowd": 0, "image_id": 181149, "bbox": [579.77, 511.58, 9.51, 5.37], "category_id": 3, "id": 2209036}, {"segmentation": [[433.44, 281.38, 442.8, 299.54, 443.29, 334.2, 435.71, 360.16, 431.12, 359.7, 429.33, 283.61], [421.96, 289.51, 416.36, 307.5, 416.65, 339.93, 422.55, 356.45]], "area": 1110.4513500000012, "iscrowd": 0, "image_id": 50404, "bbox": [416.36, 281.38, 26.93, 78.78], "category_id": 13, "id": 2209837}, {"segmentation": [[432.08, 78.41, 437.15, 80.81, 439.29, 84.82, 438.76, 92.31, 433.15, 98.45, 428.6, 98.72, 422.19, 96.31, 418.72, 91.24, 418.72, 85.09, 421.39, 81.08, 425.66, 78.68, 429.4, 77.88]], "area": 335.08624999999955, "iscrowd": 0, "image_id": 203989, "bbox": [418.72, 77.88, 20.57, 20.84], "category_id": 13, "id": 2209922}, {"segmentation": [[85.28, 448.55, 83.45, 445.91, 83.96, 440.31, 87.12, 436.44, 94.96, 436.24, 99.03, 440.82, 99.03, 447.64, 94.14, 451.3]], "area": 185.70090000000008, "iscrowd": 0, "image_id": 453332, "bbox": [83.45, 436.24, 15.58, 15.06], "category_id": 13, "id": 2210058}, {"segmentation": [[329.8, 275.96, 334.46, 274.04, 342.7, 272.21, 350.02, 272.21, 350.77, 271.47, 350.85, 271.05, 347.11, 269.22, 344.36, 267.47, 342.2, 264.98, 340.7, 263.81, 338.62, 263.48, 329.64, 265.39, 327.39, 267.81, 327.81, 269.14, 325.98, 270.8, 325.06, 272.55, 326.89, 274.79, 329.22, 275.79]], "area": 178.48064999999966, "iscrowd": 0, "image_id": 294416, "bbox": [325.06, 263.48, 25.79, 12.48], "category_id": 31, "id": 2210842}, {"segmentation": [[51.66, 394.97, 29.52, 345.42, 10.54, 304.31, 10.54, 286.39, 3.16, 262.14, 0.0, 260.03, 0.0, 422.38, 45.33, 423.43]], "area": 4549.36035, "iscrowd": 0, "image_id": 13417, "bbox": [0.0, 260.03, 51.66, 163.4], "category_id": 31, "id": 2210933}, {"segmentation": [[523.72, 186.55, 521.3, 199.44, 531.78, 212.06, 546.82, 214.21, 570.45, 214.48, 584.68, 207.23, 583.88, 201.32, 574.21, 196.75, 556.48, 189.23]], "area": 1295.1239500000006, "iscrowd": 0, "image_id": 13417, "bbox": [521.3, 186.55, 63.38, 27.93], "category_id": 31, "id": 2211359}, {"segmentation": [[286.32, 64.21, 287.24, 74.31, 271.18, 81.19, 262.0, 83.03, 271.18, 42.18, 280.35, 45.86, 281.73, 61.0, 287.24, 64.21], [287.24, 90.83, 289.53, 141.77, 280.81, 137.18, 264.75, 140.39, 263.83, 97.25, 283.11, 88.08, 287.24, 87.16]], "area": 1740.3692500000004, "iscrowd": 0, "image_id": 285022, "bbox": [262.0, 42.18, 27.53, 99.59], "category_id": 31, "id": 2211505}, {"segmentation": [[222.55, 152.97, 228.78, 151.96, 230.97, 145.9, 232.65, 144.55, 232.99, 128.56, 231.64, 128.56, 230.3, 140.01, 227.27, 141.86, 224.74, 143.71, 222.39, 146.74]], "area": 107.34140000000008, "iscrowd": 0, "image_id": 20251, "bbox": [222.39, 128.56, 10.6, 24.41], "category_id": 31, "id": 2211957}, {"segmentation": [[141.84, 259.72, 149.32, 289.21, 146.24, 328.82, 131.27, 335.87, 121.59, 330.14, 112.34, 260.16, 118.07, 248.27, 107.5, 193.69, 113.67, 186.21, 139.19, 248.71, 142.28, 258.84]], "area": 3315.0529499999993, "iscrowd": 0, "image_id": 13417, "bbox": [107.5, 186.21, 41.82, 149.66], "category_id": 31, "id": 2212043}, {"segmentation": [[209.56, 287.91, 204.46, 296.77, 208.22, 308.32, 214.13, 315.3, 223.26, 312.35, 227.02, 306.17, 226.48, 300.53]], "area": 375.4607500000001, "iscrowd": 0, "image_id": 13417, "bbox": [204.46, 287.91, 22.56, 27.39], "category_id": 31, "id": 2212243}, {"segmentation": [[48.34, 244.4, 50.82, 242.91, 54.29, 245.39, 63.72, 283.6, 70.67, 291.04, 79.1, 324.78, 74.63, 336.69, 70.67, 341.16, 64.21, 342.65, 61.73, 341.16, 64.21, 319.82, 51.31, 293.03, 48.83, 282.11, 50.32, 277.15]], "area": 1285.0777999999996, "iscrowd": 0, "image_id": 294416, "bbox": [48.34, 242.91, 30.76, 99.74], "category_id": 31, "id": 2212337}, {"segmentation": [[41.38, 427.38, 49.63, 407.67, 51.42, 400.5, 51.78, 393.33, 66.11, 382.58, 72.21, 381.15, 80.09, 403.01, 82.24, 412.69, 87.98, 424.52, 83.68, 427.02]], "area": 1332.5559499999997, "iscrowd": 0, "image_id": 13417, "bbox": [41.38, 381.15, 46.6, 46.23], "category_id": 31, "id": 2212454}, {"segmentation": [[474.08, 296.21, 493.26, 287.77, 499.91, 287.77, 510.14, 289.82, 514.49, 303.12, 507.07, 308.49, 491.21, 315.39, 485.84, 315.65, 481.75, 315.14, 476.38, 299.28]], "area": 777.2246000000005, "iscrowd": 0, "image_id": 317153, "bbox": [474.08, 287.77, 40.41, 27.88], "category_id": 33, "id": 2212599}, {"segmentation": [[421.95, 576.71, 460.41, 584.29, 464.9, 584.01, 471.08, 571.09, 441.32, 569.41, 422.79, 576.43], [481.18, 573.34, 502.23, 575.58, 515.15, 578.95, 516.83, 580.92, 515.15, 583.16, 483.99, 586.81, 475.01, 585.13, 470.23, 584.29, 480.62, 572.22]], "area": 856.0764499999971, "iscrowd": 0, "image_id": 525360, "bbox": [421.95, 569.41, 94.88, 17.4], "category_id": 36, "id": 2212799}, {"segmentation": [[99.04, 255.08, 91.84, 261.76, 74.37, 260.73, 71.54, 258.68, 60.23, 245.83, 60.23, 239.14, 63.83, 232.98, 63.57, 227.83, 66.4, 224.49, 70.0, 221.92, 71.02, 216.78, 74.88, 212.67, 78.22, 212.67, 78.22, 208.81, 81.56, 205.22, 84.9, 203.16, 89.79, 205.22, 90.56, 208.81, 91.33, 216.53, 94.16, 221.15, 94.93, 213.18, 99.55, 209.33, 104.95, 210.36, 109.58, 213.96, 113.69, 220.89, 111.89, 227.83, 103.15, 246.08, 100.07, 248.65]], "area": 2045.6242500000003, "iscrowd": 0, "image_id": 252391, "bbox": [60.23, 203.16, 53.46, 58.6], "category_id": 40, "id": 2213226}, {"segmentation": [[408.15, 134.45, 399.08, 136.46, 391.36, 144.86, 388.68, 156.61, 392.37, 166.34, 400.43, 169.03, 412.51, 168.69, 423.26, 171.71, 434.34, 175.07, 444.07, 175.74, 448.1, 175.74, 450.79, 175.74, 455.15, 171.38, 462.54, 165.34, 465.56, 164.33, 472.61, 161.64, 477.64, 155.6, 476.97, 153.25, 473.62, 151.23, 464.55, 149.56, 462.2, 148.88, 464.22, 143.85, 450.79, 136.13, 431.65, 135.12, 424.94, 136.13, 413.52, 135.12]], "area": 2661.6860000000006, "iscrowd": 0, "image_id": 252391, "bbox": [388.68, 134.45, 88.96, 41.29], "category_id": 40, "id": 2213244}, {"segmentation": [[512.0, 85.9, 500.49, 97.0, 497.61, 109.13, 497.2, 115.71, 498.02, 120.85, 498.84, 122.7, 504.19, 121.88, 502.13, 111.6, 508.3, 102.55, 519.2, 93.1, 521.25, 90.01, 525.37, 85.9, 526.39, 84.87, 522.49, 82.81, 517.96, 81.99, 513.44, 82.81, 511.18, 86.1]], "area": 386.1592999999999, "iscrowd": 0, "image_id": 211622, "bbox": [497.2, 81.99, 29.19, 40.71], "category_id": 44, "id": 2213372}, {"segmentation": [[37.33, 230.22, 35.11, 227.11, 35.56, 225.48, 38.81, 224.89, 44.15, 222.96, 47.85, 221.93, 49.19, 222.07, 51.26, 222.22, 52.3, 224.59, 51.11, 227.11, 50.22, 228.0, 49.93, 228.89, 38.07, 230.67]], "area": 98.73954999999991, "iscrowd": 0, "image_id": 290153, "bbox": [35.11, 221.93, 17.19, 8.74], "category_id": 47, "id": 2213570}, {"segmentation": [[293.09, 187.4, 299.74, 197.37, 301.4, 223.98, 301.96, 229.52, 315.26, 231.73, 324.68, 227.86, 325.79, 223.98, 327.45, 199.04, 330.78, 188.51, 330.78, 184.07, 321.36, 179.08, 314.71, 177.98, 305.84, 177.42, 296.42, 181.3, 292.54, 185.74]], "area": 1462.3154000000004, "iscrowd": 0, "image_id": 434047, "bbox": [292.54, 177.42, 38.24, 54.31], "category_id": 47, "id": 2214682}, {"segmentation": [[27.54, 286.63, 25.66, 315.06, 9.44, 313.18, 5.92, 272.06, 8.74, 267.59, 16.73, 265.71, 33.18, 263.83, 42.11, 266.42, 44.22, 268.77, 43.05, 282.4, 28.71, 282.87]], "area": 1220.1170500000003, "iscrowd": 0, "image_id": 211622, "bbox": [5.92, 263.83, 38.3, 51.23], "category_id": 47, "id": 2215000}, {"segmentation": [[246.55, 220.7, 252.13, 220.56, 251.85, 232.87, 249.7, 233.59, 246.12, 233.02, 245.83, 220.13]], "area": 76.04914999999988, "iscrowd": 0, "image_id": 346754, "bbox": [245.83, 220.13, 6.3, 13.46], "category_id": 47, "id": 2215230}, {"segmentation": [[429.68, 370.5, 430.84, 332.06, 432.59, 330.9, 436.67, 356.52, 438.41, 329.73, 444.82, 358.85, 446.57, 329.73, 452.39, 355.94, 453.56, 329.73, 462.87, 368.75, 461.13, 372.25, 458.22, 375.16, 452.97, 376.91, 448.31, 376.91, 436.67, 372.83, 434.34, 371.67]], "area": 978.6247500000006, "iscrowd": 0, "image_id": 446266, "bbox": [429.68, 329.73, 33.19, 47.18], "category_id": 48, "id": 2216432}, {"segmentation": [[435.71, 336.23, 440.72, 334.75, 443.27, 336.23, 443.77, 339.17, 441.02, 341.83, 437.97, 341.83, 436.1, 340.16, 435.22, 339.37, 434.92, 338.09]], "area": 45.718549999999716, "iscrowd": 0, "image_id": 480818, "bbox": [434.92, 334.75, 8.85, 7.08], "category_id": 50, "id": 2216641}, {"segmentation": [[46.9, 210.24, 40.34, 198.0, 58.25, 153.0, 55.2, 149.94, 55.2, 145.14, 61.31, 141.2, 74.42, 113.24, 77.48, 108.87, 77.48, 105.81, 78.79, 103.63, 91.46, 108.44, 108.06, 112.81, 113.31, 110.62, 115.05, 102.32, 120.73, 99.26, 137.77, 106.25, 142.14, 107.13, 156.56, 110.18, 159.62, 115.43, 148.26, 177.9, 146.51, 198.0, 147.38, 204.12, 143.89, 213.29, 138.21, 221.16, 129.03, 210.24]], "area": 10014.375549999999, "iscrowd": 0, "image_id": 428208, "bbox": [40.34, 99.26, 119.28, 121.9], "category_id": 51, "id": 2217454}, {"segmentation": [[161.19, 434.57, 165.93, 421.93, 180.15, 410.86, 194.37, 407.7, 211.75, 406.12, 251.26, 412.44, 274.96, 432.99, 276.54, 451.95, 257.58, 464.59, 243.36, 480.4, 227.56, 489.88, 207.01, 486.72, 188.05, 485.14, 172.25, 477.23, 170.67, 455.11, 162.77, 447.21, 165.93, 423.51]], "area": 7150.8353, "iscrowd": 0, "image_id": 509702, "bbox": [161.19, 406.12, 115.35, 83.76], "category_id": 54, "id": 2218620}, {"segmentation": [[554.88, 381.45, 545.79, 372.03, 542.22, 362.29, 548.71, 354.17, 557.15, 349.95, 572.41, 349.95, 575.98, 349.63, 579.88, 355.15, 589.62, 362.94, 596.11, 365.54, 600.98, 367.49, 603.91, 375.28, 603.91, 382.42, 600.98, 386.32, 592.54, 387.62, 556.5, 383.39]], "area": 1646.9698999999996, "iscrowd": 0, "image_id": 461530, "bbox": [542.22, 349.63, 61.69, 37.99], "category_id": 54, "id": 2219241}, {"segmentation": [[435.88, 631.93, 412.49, 566.58, 385.66, 471.66, 377.41, 454.46, 377.41, 439.33, 371.91, 432.45, 364.34, 429.01, 353.68, 405.37, 345.76, 396.79, 334.55, 390.19, 322.67, 388.21, 308.81, 386.23, 301.56, 390.19, 296.28, 386.89, 286.38, 390.19, 279.78, 390.85, 273.18, 382.94, 254.05, 376.34, 230.3, 378.32, 223.04, 384.26, 164.97, 385.58, 151.12, 384.26, 143.2, 388.21, 143.86, 387.55, 139.9, 389.53, 143.86, 394.81, 130.66, 402.07, 112.85, 411.31, 111.53, 427.8, 108.89, 436.38, 107.57, 461.45, 108.23, 472.01, 99.65, 481.91, 87.11, 525.46, 80.52, 569.67, 78.54, 594.08, 74.58, 610.57, 77.88, 640.0, 438.14, 638.95, 437.48, 631.03]], "area": 76219.29590000001, "iscrowd": 0, "image_id": 142, "bbox": [74.58, 376.34, 363.56, 263.66], "category_id": 54, "id": 2219361}, {"segmentation": [[352.86, 115.01, 358.3, 94.33, 385.23, 94.06, 382.78, 100.05, 378.43, 121.0, 378.98, 128.07, 363.74, 128.89, 368.36, 136.51, 367.82, 137.05, 361.02, 129.98, 349.59, 132.15, 353.94, 123.99, 347.69, 117.46, 347.69, 115.83]], "area": 969.5007999999997, "iscrowd": 0, "image_id": 269986, "bbox": [347.69, 94.06, 37.54, 42.99], "category_id": 62, "id": 2222288}, {"segmentation": [[89.19, 105.78, 111.7, 113.89, 115.62, 114.41, 111.43, 130.11, 109.86, 135.35, 105.68, 127.76, 101.49, 123.05, 94.95, 114.68]], "area": 288.45040000000023, "iscrowd": 0, "image_id": 269986, "bbox": [89.19, 105.78, 26.43, 29.57], "category_id": 62, "id": 2222553}, {"segmentation": [[546.7, 279.2, 494.89, 273.48, 483.75, 272.28, 482.55, 283.42, 478.63, 291.85, 510.86, 294.26, 526.82, 291.85, 531.64, 293.96, 536.16, 296.67, 550.61, 297.58, 550.61, 289.75, 550.61, 285.83]], "area": 1239.7611500000005, "iscrowd": 0, "image_id": 561406, "bbox": [478.63, 272.28, 71.98, 25.3], "category_id": 62, "id": 2222592}, {"segmentation": [[566.85, 238.24, 565.49, 229.73, 565.15, 214.75, 564.81, 205.9, 587.96, 206.24, 583.87, 228.71, 574.0, 228.71, 575.36, 239.94]], "area": 557.5855500000008, "iscrowd": 0, "image_id": 139915, "bbox": [564.81, 205.9, 23.15, 34.04], "category_id": 62, "id": 2222837}, {"segmentation": [[345.05, 588.31, 357.46, 584.5, 364.15, 570.18, 427.0, 578.77, 424.29, 447.98, 308.78, 445.12, 304.0, 468.98, 326.91, 554.9, 342.19, 582.59]], "area": 14181.864649999998, "iscrowd": 0, "image_id": 371714, "bbox": [304.0, 445.12, 123.0, 143.19], "category_id": 62, "id": 2222958}, {"segmentation": [[44.07, 278.09, 39.99, 245.07, 42.03, 244.25, 43.66, 244.25, 46.1, 244.25, 48.55, 244.66, 53.44, 278.09], [91.38, 326.58, 97.64, 324.66, 96.68, 317.44, 95.72, 314.55, 97.16, 308.77, 98.13, 307.81, 101.01, 313.1, 101.5, 315.99, 101.5, 321.77, 101.98, 326.1, 102.46, 336.21, 101.01, 337.66, 98.13, 339.58, 99.57, 398.33, 97.64, 402.66, 94.75, 405.07, 92.35, 399.77, 88.98, 374.73, 87.53, 354.99, 88.98, 335.25, 90.9, 327.07, 92.83, 319.84], [127.98, 322.25, 138.57, 319.84, 141.94, 334.29, 126.05, 339.1, 122.68, 339.1, 126.05, 322.25]], "area": 1400.4686499999996, "iscrowd": 0, "image_id": 444214, "bbox": [39.99, 244.25, 101.95, 160.82], "category_id": 62, "id": 2223357}, {"segmentation": [[390.12, 149.29, 388.7, 140.45, 401.08, 141.51, 401.78, 149.99]], "area": 103.16039999999997, "iscrowd": 0, "image_id": 41577, "bbox": [388.7, 140.45, 13.08, 9.54], "category_id": 62, "id": 2223395}, {"segmentation": [[177.21, 285.25, 212.3, 281.94, 213.62, 305.11, 210.31, 328.94, 210.97, 350.13, 214.76, 361.66, 206.23, 367.14, 200.75, 369.58, 198.92, 370.8, 188.2, 366.79, 198.53, 366.79, 204.17, 364.29, 205.11, 358.96, 183.81, 357.71, 179.43, 329.21, 177.86, 313.55, 180.06, 301.96, 176.61, 289.75, 175.67, 286.62], [0.15, 305.91, 10.74, 304.59, 15.37, 319.82, 14.71, 333.06, 16.04, 353.58, 25.97, 363.52, 21.33, 367.49, 14.05, 376.76, 9.41, 389.34, 13.39, 395.96, 12.06, 399.93, 15.37, 423.77, 20.67, 447.6, 39.87, 474.75, 39.87, 480.0, 7.43, 477.4, 14.05, 470.78, 25.3, 463.49, 0.15, 455.55, 0.15, 399.93, 0.15, 316.51], [163.57, 427.0, 189.67, 412.95, 194.68, 397.23, 207.34, 392.86, 213.9, 385.43, 218.7, 382.38, 217.83, 388.93, 219.14, 403.34, 226.56, 433.05, 229.62, 447.9, 236.87, 472.21, 245.48, 478.18, 166.5, 478.18, 164.94, 432.83, 164.15, 427.35], [352.74, 443.67, 371.28, 453.61, 348.77, 462.21, 354.73, 452.94]], "area": 10125.9028, "iscrowd": 0, "image_id": 77841, "bbox": [0.15, 281.94, 371.13, 198.06], "category_id": 63, "id": 2223915}, {"segmentation": [[329.48, 284.44, 301.04, 265.48, 277.33, 253.63, 277.33, 239.41, 277.33, 233.48, 266.67, 232.3, 253.63, 232.3, 246.52, 227.56, 253.63, 259.56, 246.52, 266.67, 242.96, 266.67, 282.07, 297.48, 297.48, 324.74, 290.37, 375.7, 296.3, 381.63, 309.33, 381.63, 312.89, 378.07], [163.56, 267.85, 157.63, 285.63, 192.0, 340.15, 199.11, 384.0, 234.67, 381.63, 205.04, 348.44, 193.19, 318.81, 183.7, 291.56, 170.67, 261.93], [135.11, 355.56, 123.26, 402.96, 154.07, 399.41, 146.96, 363.85, 135.11, 353.19], [79.41, 235.85, 60.44, 240.59, 72.3, 252.44, 80.59, 239.41], [68.74, 343.7, 14.22, 352.0, 3.56, 386.37, 13.04, 413.63, 62.81, 402.96, 67.56, 392.3, 65.19, 346.07]], "area": 11856.360849999997, "iscrowd": 0, "image_id": 256465, "bbox": [3.56, 227.56, 325.92, 186.07], "category_id": 63, "id": 2223946}, {"segmentation": [[0.83, 77.47, 38.01, 80.77, 53.71, 103.91, 52.88, 120.43, 37.18, 136.96, 28.92, 147.7, 4.13, 139.44]], "area": 2814.8406, "iscrowd": 0, "image_id": 127076, "bbox": [0.83, 77.47, 52.88, 70.23], "category_id": 63, "id": 2224903}, {"segmentation": [[378.65, 208.8, 378.18, 214.72, 378.18, 217.55, 389.77, 217.08, 388.82, 209.99], [391.9, 209.51, 416.73, 208.57, 415.78, 213.06, 391.19, 212.82], [419.33, 209.04, 430.68, 208.8, 435.65, 215.9, 435.41, 217.79, 418.62, 218.26]], "area": 317.19629999999995, "iscrowd": 0, "image_id": 579659, "bbox": [378.18, 208.57, 57.47, 9.69], "category_id": 67, "id": 2225875}, {"segmentation": [[223.82, 197.48, 219.6, 197.48, 215.97, 195.67, 215.37, 193.25, 221.11, 192.04, 225.03, 192.34, 222.62, 194.46, 225.33, 196.57]], "area": 38.19784999999996, "iscrowd": 0, "image_id": 579659, "bbox": [215.37, 192.04, 9.96, 5.44], "category_id": 67, "id": 2226404}, {"segmentation": [[254.59, 251.02, 255.28, 254.93, 271.13, 256.31, 272.97, 257.23, 274.35, 259.98, 275.27, 261.13, 277.33, 261.13, 277.33, 257.69, 281.7, 257.69, 284.68, 257.23, 287.44, 257.0, 287.44, 254.47, 287.21, 252.63, 285.37, 251.94, 274.58, 251.71, 255.51, 250.56], [281.24, 257.69, 281.01, 278.59, 283.77, 277.21, 283.54, 258.37, 282.39, 257.91]], "area": 226.8985499999998, "iscrowd": 0, "image_id": 302680, "bbox": [254.59, 250.56, 32.85, 28.03], "category_id": 67, "id": 2226649}, {"segmentation": [[33.19, 540.32, 0.38, 536.59, 0.38, 597.73, 2.62, 640.0, 48.85, 638.74, 42.14, 582.07, 52.58, 569.4, 48.85, 542.55]], "area": 4639.82115, "iscrowd": 0, "image_id": 121316, "bbox": [0.38, 536.59, 52.2, 103.41], "category_id": 67, "id": 2226963}, {"segmentation": [[267.52, 130.48, 275.31, 130.09, 282.32, 128.93, 297.51, 128.54, 304.52, 135.16, 336.47, 138.27, 355.94, 139.83, 366.07, 156.19, 368.41, 170.22, 368.41, 179.96, 336.86, 178.4, 304.91, 178.4, 279.59, 171.0, 266.35, 169.83]], "area": 4097.8991000000005, "iscrowd": 0, "image_id": 223838, "bbox": [266.35, 128.54, 102.06, 51.42], "category_id": 67, "id": 2226970}, {"segmentation": [[579.37, 188.06, 520.0, 188.06, 521.02, 219.46, 579.03, 221.5, 579.03, 202.74, 579.03, 190.45]], "area": 1897.1044999999995, "iscrowd": 0, "image_id": 135149, "bbox": [520.0, 188.06, 59.37, 33.44], "category_id": 78, "id": 2227691}, {"segmentation": [[84.16, 237.0, 25.99, 290.22, 50.74, 417.7, 295.79, 406.56, 288.37, 230.82]], "area": 44287.331900000005, "iscrowd": 0, "image_id": 496847, "bbox": [25.99, 230.82, 269.8, 186.88], "category_id": 78, "id": 2227794}, {"segmentation": [[260.1, 295.14, 258.9, 268.68, 259.7, 261.06, 232.44, 253.44, 232.44, 223.4, 286.97, 212.17, 371.57, 233.43, 370.77, 266.71, 263.31, 295.57]], "area": 7773.784899999999, "iscrowd": 0, "image_id": 472861, "bbox": [232.44, 212.17, 139.13, 83.4], "category_id": 79, "id": 2228443}, {"segmentation": [[201.19, 154.09, 212.73, 155.24, 221.96, 152.93, 223.89, 149.86, 225.81, 143.32, 232.35, 143.7, 233.5, 148.32, 232.73, 154.86, 228.89, 161.01, 230.04, 164.47, 228.89, 167.16, 233.89, 166.78, 241.96, 169.47, 243.12, 176.78, 241.58, 184.47, 239.27, 186.01, 241.96, 197.55, 239.27, 195.63, 239.27, 205.63, 235.81, 226.4, 233.89, 246.78, 205.04, 240.63]], "area": 3158.5322500000007, "iscrowd": 0, "image_id": 95880, "bbox": [201.19, 143.32, 41.93, 103.46], "category_id": 86, "id": 2228619}, {"segmentation": [[76.3, 278.9, 78.36, 302.49, 79.24, 305.14, 83.37, 306.76, 82.34, 295.11, 84.26, 295.41, 84.55, 306.61, 86.47, 308.53, 88.24, 307.2, 89.71, 300.57, 89.86, 288.78, 91.18, 288.33, 90.6, 281.7, 89.56, 278.01, 86.91, 274.77, 86.47, 274.77, 82.93, 277.57, 80.13, 280.81, 79.39, 281.26, 78.21, 281.11, 77.03, 279.19]], "area": 338.14365, "iscrowd": 0, "image_id": 328487, "bbox": [76.3, 274.77, 14.88, 33.76], "category_id": 1, "id": 2229414}, {"segmentation": [[431.02, 161.83, 452.92, 161.83, 452.25, 170.32, 449.57, 172.33, 445.55, 175.01, 430.13, 175.46, 431.25, 171.66, 431.47, 167.64, 431.02, 162.94]], "area": 269.2916499999997, "iscrowd": 0, "image_id": 385701, "bbox": [430.13, 161.83, 22.79, 13.63], "category_id": 15, "id": 2229919}, {"segmentation": [[291.14, 380.14, 289.17, 371.42, 286.92, 365.79, 285.79, 362.41, 286.92, 357.91, 284.39, 354.25, 281.01, 347.78, 284.39, 347.5, 288.04, 345.81, 296.2, 327.8, 298.17, 321.61, 301.55, 316.27, 304.65, 309.79, 312.81, 304.17, 320.68, 303.04, 326.59, 305.29, 329.97, 306.42, 339.82, 300.51, 347.7, 300.23, 350.79, 300.23, 355.3, 300.79, 360.92, 305.01, 366.55, 310.64, 369.36, 321.89, 370.21, 331.74, 367.68, 338.78, 369.93, 349.19, 371.33, 358.19, 370.49, 364.66, 368.8, 366.63, 367.96, 364.95, 367.68, 371.7, 368.24, 377.05, 360.36, 378.45, 360.08, 377.05, 359.8, 370.01, 360.36, 359.88, 358.95, 355.94, 355.58, 348.91, 355.58, 345.53, 353.33, 346.37, 355.58, 330.62, 353.04, 330.05, 347.7, 335.4, 345.45, 350.88, 345.45, 357.91, 344.04, 354.82, 342.07, 352.0, 326.31, 353.41, 324.91, 358.76, 326.03, 365.51, 326.31, 371.42, 327.72, 376.2, 318.43, 380.7, 311.96, 385.21, 309.71, 384.08, 311.4, 377.33, 312.81, 370.57, 312.81, 366.07, 310.55, 361.01, 308.02, 364.38, 305.21, 373.67, 304.08, 380.14, 302.39, 384.08, 299.02, 386.89, 295.08, 388.3, 291.42, 386.33]], "area": 4706.287550000001, "iscrowd": 0, "image_id": 87146, "bbox": [281.01, 300.23, 90.32, 88.07], "category_id": 19, "id": 2230076}, {"segmentation": [[471.39, 323.42, 476.68, 328.71, 484.07, 328.71, 484.07, 318.14, 483.02, 309.68, 483.02, 304.4, 487.25, 294.88, 476.68, 289.6, 465.05, 288.54, 453.42, 291.71, 442.85, 300.17, 433.34, 300.17, 424.89, 306.51, 420.66, 316.02, 418.54, 328.71, 419.6, 339.27, 427.0, 348.79, 431.23, 358.3, 432.28, 368.87, 432.28, 379.44, 430.17, 382.61, 436.51, 381.55, 436.51, 373.1, 437.57, 365.7, 439.68, 367.81, 440.74, 383.67, 446.02, 380.5, 447.08, 369.93, 447.08, 365.7, 448.14, 356.19, 448.14, 351.96, 452.37, 358.3, 454.48, 365.7, 458.71, 372.04, 460.82, 380.5, 465.05, 387.89, 469.28, 386.84, 466.11, 379.44, 466.11, 369.93, 466.11, 356.19, 466.11, 347.73, 469.28, 337.16, 469.28, 329.76, 469.28, 318.14]], "area": 3909.7039999999965, "iscrowd": 0, "image_id": 87146, "bbox": [418.54, 288.54, 68.71, 99.35], "category_id": 19, "id": 2230127}, {"segmentation": [[172.79, 382.14, 171.27, 385.47, 166.73, 386.08, 161.58, 386.08, 160.07, 385.17, 160.37, 374.57, 159.16, 341.27, 161.89, 343.08, 163.1, 346.11, 167.03, 329.46, 171.88, 315.23, 177.03, 306.75, 183.69, 299.18, 189.74, 295.55, 195.19, 295.85, 207.91, 293.73, 217.29, 296.46, 225.17, 303.72, 227.89, 319.47, 226.68, 331.88, 224.56, 349.14, 222.44, 358.83, 223.35, 370.63, 220.32, 373.97, 215.18, 374.27, 214.87, 372.45, 216.99, 366.7, 215.78, 353.38, 213.66, 345.5, 210.03, 344.6, 208.21, 345.5, 208.21, 360.95, 208.21, 368.21, 206.09, 375.78, 197.61, 377.3, 197.61, 383.05, 190.65, 384.87, 187.93, 382.75, 184.29, 382.75, 182.48, 380.32, 184.29, 363.97, 178.24, 369.73, 176.42, 376.08]], "area": 4579.91005, "iscrowd": 0, "image_id": 87146, "bbox": [159.16, 293.73, 68.73, 92.35], "category_id": 19, "id": 2230134}, {"segmentation": [[336.3, 410.55, 337.31, 407.84, 340.86, 409.53, 338.16, 411.73]], "area": 9.302700000000131, "iscrowd": 0, "image_id": 574668, "bbox": [336.3, 407.84, 4.56, 3.89], "category_id": 38, "id": 2230516}, {"segmentation": [[333.4, 203.94, 337.5, 209.26, 340.85, 213.51, 351.78, 217.31, 362.11, 217.76, 372.44, 216.25, 380.18, 212.45, 383.37, 206.83, 385.65, 203.18, 386.87, 200.91, 385.05, 197.41, 376.08, 194.37, 370.31, 193.01, 365.15, 191.34, 362.11, 189.97, 360.74, 189.82, 358.46, 192.86, 354.06, 192.4, 350.42, 191.18, 346.92, 191.18, 344.8, 193.61, 339.02, 195.89, 334.16, 198.48, 332.64, 201.06, 332.64, 202.73]], "area": 1079.5498999999998, "iscrowd": 0, "image_id": 14812, "bbox": [332.64, 189.82, 54.23, 27.94], "category_id": 51, "id": 2231006}, {"segmentation": [[174.15, 229.0, 152.25, 226.61, 145.4, 229.69, 141.64, 232.43, 126.92, 251.59, 136.5, 264.6, 139.58, 266.31, 152.25, 265.63, 154.64, 269.05, 153.96, 275.55, 148.82, 277.26, 149.85, 279.66, 167.99, 277.95, 172.44, 261.18, 177.92, 261.52, 168.33, 253.3, 171.76, 247.14, 178.6, 244.06, 187.5, 247.14, 191.95, 247.49, 191.26, 245.09]], "area": 1816.4256500000004, "iscrowd": 0, "image_id": 314944, "bbox": [126.92, 226.61, 65.03, 53.05], "category_id": 77, "id": 2231718}, {"segmentation": [[156.95, 437.13, 256.35, 459.8, 273.79, 447.59, 317.38, 459.8, 355.75, 470.26, 355.75, 503.4, 350.52, 517.35, 291.23, 517.35, 244.14, 491.19, 127.3, 484.21, 106.38, 482.47, 141.25, 459.8, 151.72, 449.34]], "area": 10567.7855, "iscrowd": 0, "image_id": 297135, "bbox": [106.38, 437.13, 249.37, 80.22], "category_id": 90, "id": 2231914}, {"segmentation": [[58.72, 282.12, 106.3, 287.12, 127.33, 291.13, 132.34, 298.14, 148.36, 300.64, 176.91, 305.15, 185.42, 309.66, 184.42, 320.18, 181.92, 323.18, 167.89, 323.68, 160.88, 321.68, 160.88, 314.67, 153.87, 312.66, 129.83, 312.66, 123.32, 310.66, 117.81, 313.16, 81.76, 308.16, 61.22, 304.15, 45.7, 302.15, 13.65, 302.15, 6.64, 299.64, 4.63, 293.13, 2.13, 281.11, 9.14, 272.6, 19.66, 273.1, 28.67, 274.6]], "area": 3879.0401000000006, "iscrowd": 0, "image_id": 297135, "bbox": [2.13, 272.6, 183.29, 51.08], "category_id": 90, "id": 2231920}, {"segmentation": {"counts": [182, 6, 194, 13, 171, 9, 1, 5, 1, 5, 2, 4, 1, 23, 2, 5, 1, 5, 17, 24, 1, 2, 1, 5, 127, 15, 3, 6, 1, 5, 1, 5, 1, 5, 142, 65, 17, 33, 126, 17, 2, 24, 141, 66, 17, 33, 125, 19, 1, 24, 140, 67, 17, 33, 124, 20, 1, 24, 140, 67, 17, 33, 123, 46, 140, 67, 17, 33, 123, 46, 140, 67, 18, 32, 123, 46, 140, 67, 18, 32, 122, 47, 140, 68, 18, 31, 122, 47, 140, 69, 17, 31, 121, 47, 142, 68, 27, 20, 122, 46, 144, 67, 26, 20, 123, 46, 145, 66, 26, 20, 123, 46, 145, 66, 26, 20, 123, 46, 145, 66, 25, 21, 123, 46, 145, 66, 25, 21, 123, 33, 1, 12, 144, 67, 24, 23, 17, 8, 97, 46, 143, 68, 23, 35, 5, 10, 96, 28, 1, 18, 141, 69, 23, 36, 3, 12, 94, 49, 139, 70, 23, 37, 1, 14, 92, 51, 137, 71, 23, 52, 92, 51, 136, 72, 22, 53, 92, 51, 136, 71, 22, 54, 92, 51, 136, 70, 23, 54, 91, 52, 136, 70, 23, 54, 90, 53, 136, 69, 24, 54, 89, 54, 136, 69, 23, 54, 89, 54, 137, 70, 22, 53, 90, 53, 139, 69, 22, 52, 90, 51, 143, 68, 22, 51, 90, 47, 149, 67, 21, 52, 90, 46, 151, 66, 21, 52, 90, 46, 151, 66, 20, 52, 91, 46, 151, 24, 4, 38, 19, 53, 91, 46, 151, 25, 10, 31, 18, 54, 90, 47, 151, 25, 18, 23, 17, 55, 90, 47, 151, 25, 25, 16, 16, 56, 89, 48, 151, 31, 26, 9, 15, 57, 88, 49, 151, 39, 19, 7, 16, 56, 89, 49, 151, 46, 12, 7, 16, 55, 90, 49, 6, 7, 138, 54, 4, 7, 16, 55, 90, 49, 5, 8, 138, 64, 17, 55, 89, 50, 4, 9, 139, 62, 18, 55, 88, 51, 3, 10, 140, 59, 20, 55, 87, 52, 2, 11, 141, 59, 19, 55, 86, 52, 3, 11, 142, 59, 18, 55, 86, 52, 3, 11, 143, 58, 18, 55, 86, 51, 4, 11, 144, 57, 18, 55, 86, 50, 5, 11, 144, 57, 18, 55, 86, 48, 7, 11, 146, 55, 18, 55, 86, 47, 8, 11, 153, 48, 18, 55, 85, 47, 9, 11, 164, 37, 18, 55, 84, 47, 10, 11, 174, 26, 19, 54, 84, 48, 10, 11, 184, 16, 19, 54, 84, 47, 10, 12, 143, 1, 50, 7, 18, 53, 85, 46, 9, 14, 142, 7, 51, 1, 18, 53, 84, 47, 8, 15, 142, 17, 41, 1, 18, 52, 84, 47, 8, 16, 142, 28, 30, 1, 18, 52, 84, 47, 7, 17, 142, 38, 20, 1, 18, 51, 85, 31, 2, 14, 7, 17, 142, 48, 10, 1, 18, 50, 86, 30, 2, 15, 7, 17, 142, 59, 18, 50, 85, 31, 1, 16, 6, 18, 142, 59, 18, 50, 89, 27, 1, 15, 6, 19, 142, 59, 18, 50, 98, 34, 6, 19, 142, 59, 18, 50, 108, 23, 7, 19, 142, 59, 18, 50, 117, 13, 7, 20, 142, 58, 20, 49, 126, 4, 7, 20, 142, 58, 20, 49, 126, 3, 7, 21, 142, 58, 21, 48, 126, 2, 7, 22, 142, 58, 22, 47, 126, 1, 7, 23, 142, 58, 24, 44, 81, 4, 41, 2, 6, 24, 142, 57, 26, 42, 81, 15, 31, 2, 6, 24, 142, 56, 26, 43, 81, 26, 19, 2, 6, 25, 142, 56, 25, 44, 80, 37, 8, 2, 6, 26, 143, 55, 18, 50, 80, 47, 6, 27, 143, 55, 17, 51, 79, 46, 7, 28, 143, 55, 16, 52, 78, 47, 6, 29, 143, 55, 15, 53, 77, 48, 6, 29, 143, 55, 15, 52, 78, 48, 5, 30, 143, 55, 15, 52, 77, 49, 5, 30, 143, 55, 15, 52, 76, 50, 4, 31, 143, 55, 13, 54, 76, 50, 3, 32, 143, 55, 12, 54, 77, 50, 3, 32, 143, 55, 11, 56, 76, 50, 3, 32, 143, 55, 10, 58, 75, 50, 3, 32, 143, 1, 13, 41, 10, 59, 73, 51, 3, 32, 174, 24, 10, 60, 71, 51, 4, 32, 191, 6, 11, 60, 70, 52, 4, 32, 195, 1, 12, 60, 70, 52, 3, 33, 208, 60, 70, 51, 4, 33, 208, 60, 70, 50, 4, 34, 209, 59, 70, 49, 5, 34, 210, 58, 69, 49, 6, 34, 140, 2, 69, 57, 67, 50, 6, 35, 139, 15, 41, 1, 15, 57, 66, 50, 7, 35, 138, 33, 23, 3, 13, 57, 66, 50, 8, 35, 137, 51, 6, 3, 13, 56, 66, 50, 8, 36, 137, 60, 13, 55, 62, 1, 4, 49, 8, 37, 137, 60, 13, 54, 63, 2, 3, 46, 10, 38, 137, 60, 13, 53, 63, 4, 2, 43, 13, 38, 137, 60, 13, 52, 64, 5, 1, 42, 13, 39, 137, 60, 13, 51, 64, 6, 1, 42, 12, 40, 137, 59, 15, 49, 64, 7, 1, 41, 12, 41, 137, 58, 17, 47, 65, 7, 2, 40, 12, 41, 138, 56, 20, 44, 65, 8, 3, 38, 12, 42, 139, 52, 31, 36, 65, 8, 4, 37, 11, 43, 141, 15, 2, 7, 2, 12, 50, 4, 2, 22, 65, 9, 4, 36, 12, 43, 239, 17, 66, 8, 6, 34, 12, 44, 248, 5, 68, 8, 8, 31, 13, 45, 323, 3, 13, 4, 8, 16, 13, 46, 354, 10, 15, 46, 379, 46, 379, 47, 379, 47, 379, 47, 379, 47, 379, 26, 1, 19, 380, 13, 3, 7, 11, 11, 381, 13, 22, 9, 383, 11, 25, 4, 387, 9, 419, 4, 27082, 27, 12, 7, 378, 30, 10, 19, 5, 12, 9, 10, 330, 32, 8, 38, 7, 15, 324, 35, 6, 40, 5, 17, 322, 36, 6, 41, 3, 19, 320, 37, 6, 41, 3, 20, 318, 38, 6, 41, 3, 20, 318, 38, 6, 41, 2, 21, 318, 38, 6, 41, 2, 21, 318, 38, 6, 41, 1, 22, 318, 38, 5, 42, 1, 22, 318, 38, 4, 42, 2, 22, 318, 38, 4, 41, 3, 22, 318, 38, 3, 40, 5, 22, 318, 38, 3, 39, 6, 22, 319, 37, 3, 38, 7, 22, 319, 37, 3, 38, 6, 23, 319, 36, 4, 38, 6, 24, 318, 36, 3, 39, 6, 25, 317, 36, 3, 38, 7, 25, 317, 35, 4, 38, 7, 25, 317, 34, 5, 38, 7, 25, 317, 34, 5, 38, 7, 25, 318, 32, 6, 38, 7, 26, 318, 31, 6, 38, 7, 26, 317, 32, 5, 39, 7, 26, 317, 32, 4, 40, 6, 27, 6, 10, 300, 32, 5, 40, 6, 27, 5, 17, 3, 7, 283, 33, 5, 40, 5, 28, 4, 19, 1, 9, 281, 34, 4, 41, 4, 29, 3, 31, 280, 34, 4, 41, 3, 30, 3, 32, 278, 35, 4, 41, 3, 30, 3, 32, 277, 36, 4, 41, 3, 30, 3, 32, 277, 36, 3, 42, 2, 31, 3, 32, 277, 36, 2, 76, 3, 32, 277, 36, 2, 75, 4, 32, 277, 36, 2, 74, 4, 33, 277, 36, 2, 73, 4, 33, 278, 36, 2, 73, 2, 34, 279, 36, 2, 72, 2, 35, 278, 36, 3, 71, 2, 35, 279, 35, 4, 39, 1, 29, 3, 36, 279, 36, 3, 38, 2, 29, 3, 35, 280, 37, 2, 37, 3, 29, 3, 34, 281, 37, 2, 35, 5, 28, 4, 34, 281, 37, 3, 31, 9, 26, 5, 33, 282, 37, 4, 13, 27, 23, 7, 32, 283, 37, 5, 8, 31, 12, 5, 3, 10, 31, 284, 37, 7, 3, 35, 10, 20, 27, 287, 37, 46, 8, 22, 9, 1, 4, 299, 36, 49, 3, 27, 4, 307, 35, 392, 31, 396, 24, 404, 4, 57561, 10, 415, 12, 413, 15, 410, 17, 408, 19, 407, 20, 406, 20, 406, 20, 406, 20, 406, 20, 406, 20, 406, 20, 406, 19, 407, 19, 407, 19, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 408, 18, 409, 16, 411, 14, 413, 13, 414, 11, 417, 8, 322, 12, 82, 16, 13, 6, 3, 15, 278, 23, 70, 20, 10, 26, 276, 26, 67, 22, 8, 28, 274, 28, 65, 24, 6, 30, 272, 30, 63, 26, 5, 30, 271, 32, 62, 27, 4, 30, 271, 32, 62, 28, 3, 30, 271, 32, 62, 28, 3, 30, 271, 32, 62, 28, 3, 31, 270, 32, 62, 28, 3, 32, 269, 32, 62, 28, 3, 33, 268, 32, 63, 24, 2, 1, 3, 33, 268, 32, 64, 10, 15, 1, 3, 33, 268, 32, 89, 1, 3, 33, 269, 31, 63, 1, 25, 1, 3, 27, 5, 1, 270, 30, 62, 2, 25, 1, 3, 20, 12, 1, 271, 29, 62, 2, 29, 13, 19, 1, 271, 29, 93, 5, 27, 1, 271, 29, 93, 3, 23, 7, 271, 29, 89, 2, 2, 2, 18, 13, 271, 29, 89, 3, 1, 3, 10, 20, 271, 29, 60, 36, 3, 27, 271, 29, 60, 33, 1, 32, 271, 29, 60, 33, 2, 31, 271, 29, 60, 33, 3, 31, 270, 29, 60, 33, 3, 32, 269, 29, 60, 33, 3, 32, 269, 29, 60, 33, 3, 32, 269, 29, 61, 32, 3, 32, 269, 29, 62, 31, 3, 32, 269, 28, 63, 31, 3, 32, 269, 28, 63, 31, 3, 32, 270, 27, 63, 31, 3, 32, 270, 27, 63, 31, 3, 32, 269, 28, 63, 31, 3, 32, 268, 30, 62, 31, 3, 33, 267, 31, 61, 31, 3, 33, 267, 31, 61, 31, 3, 33, 267, 31, 61, 31, 4, 32, 267, 31, 61, 31, 5, 31, 267, 31, 61, 31, 6, 30, 267, 31, 61, 31, 7, 29, 266, 32, 61, 31, 7, 29, 266, 32, 61, 31, 7, 29, 265, 33, 61, 31, 7, 29, 265, 33, 61, 31, 7, 29, 265, 33, 61, 31, 7, 29, 265, 33, 61, 31, 7, 29, 265, 33, 61, 31, 6, 30, 265, 33, 61, 31, 5, 31, 265, 33, 61, 31, 4, 32, 266, 32, 61, 31, 4, 32, 267, 31, 62, 30, 4, 32, 268, 30, 62, 30, 4, 32, 268, 30, 62, 30, 4, 32, 269, 29, 62, 30, 4, 32, 269, 29, 62, 30, 4, 32, 269, 29, 62, 30, 5, 31, 270, 28, 62, 30, 6, 30, 270, 28, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 64, 28, 8, 28, 269, 29, 91, 1, 8, 28, 269, 29, 91, 1, 8, 28, 269, 29, 62, 5, 24, 1, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 29, 62, 30, 8, 28, 269, 30, 61, 30, 8, 28, 269, 30, 61, 30, 8, 28, 269, 30, 61, 30, 8, 28, 269, 30, 61, 30, 8, 28, 269, 30, 61, 4, 20, 6, 8, 28, 269, 30, 61, 4, 34, 28, 269, 30, 61, 4, 34, 28, 269, 30, 61, 4, 34, 28, 269, 30, 61, 4, 34, 28, 269, 30, 61, 4, 35, 27, 269, 30, 61, 29, 11, 26, 269, 30, 61, 29, 11, 25, 270, 30, 61, 29, 12, 24, 270, 30, 61, 29, 13, 22, 271, 29, 63, 27, 16, 19, 272, 29, 64, 25, 20, 13, 275, 29, 66, 20, 25, 3, 283, 29, 397, 29, 397, 28, 398, 27, 400, 25, 402, 21, 407, 15, 417, 8, 420, 3, 26116, 16, 409, 18, 407, 22, 402, 26, 392, 35, 368, 59, 366, 61, 364, 62, 360, 67, 45, 10, 300, 78, 37, 27, 282, 81, 35, 31, 278, 83, 33, 33, 276, 85, 32, 34, 274, 86, 32, 35, 273, 86, 32, 35, 273, 86, 32, 35, 273, 86, 32, 35, 273, 86, 32, 35, 273, 96, 23, 34, 233, 7, 33, 97, 23, 33, 225, 16, 32, 98, 23, 31, 215, 28, 32, 98, 23, 29, 212, 33, 32, 97, 24, 25, 183, 9, 2, 7, 11, 36, 33, 96, 26, 8, 1, 3, 193, 66, 34, 95, 230, 67, 35, 94, 229, 70, 34, 93, 228, 72, 35, 91, 227, 74, 35, 89, 227, 76, 35, 87, 228, 76, 36, 83, 231, 76, 36, 61, 1, 3, 249, 76, 37, 51, 262, 76, 38, 30, 1, 4, 1, 3, 273, 76, 39, 14, 1, 3, 1, 6, 286, 76, 41, 9, 300, 75, 351, 75, 352, 73, 351, 74, 351, 74, 351, 73, 352, 72, 354, 71, 355, 23, 2, 43, 358, 22, 22, 9, 1, 11, 361, 19, 407, 18, 408, 16, 411, 15, 412, 14, 413, 13, 414, 11, 416, 9, 419, 4, 8363], "size": [426, 640]}, "area": 38194, "iscrowd": 1, "image_id": 459794, "bbox": [0, 134, 620, 291], "category_id": 84, "id": 908400459794}, {"segmentation": {"counts": [36726, 7, 463, 14, 460, 29, 3, 7, 437, 40, 435, 42, 434, 43, 432, 44, 432, 44, 432, 44, 433, 43, 433, 43, 434, 41, 436, 40, 438, 4, 1, 32, 442, 32, 442, 33, 443, 34, 441, 36, 440, 37, 438, 38, 438, 38, 438, 38, 439, 37, 439, 37, 438, 37, 439, 24, 3, 10, 438, 25, 4, 8, 439, 25, 6, 4, 441, 25, 452, 23, 453, 23, 454, 21, 456, 12, 2, 4, 460, 8, 37120, 6, 7, 6, 455, 9, 4, 9, 454, 23, 452, 28, 446, 31, 443, 34, 442, 35, 440, 36, 1, 6, 4, 6, 423, 44, 1, 9, 421, 56, 420, 57, 419, 57, 420, 56, 420, 56, 421, 56, 421, 56, 422, 54, 424, 52, 425, 51, 426, 50, 427, 49, 428, 48, 430, 46, 435, 16, 2, 23, 436, 8, 20, 12, 435, 7, 22, 11, 434, 12, 20, 10, 426, 7, 1, 13, 10, 6, 4, 8, 416, 37, 3, 9, 5, 4, 416, 40, 2, 10, 424, 53, 422, 54, 422, 54, 421, 55, 421, 55, 421, 23, 6, 26, 422, 20, 20, 13, 423, 19, 458, 18, 459, 17, 460, 16, 461, 15, 462, 15, 463, 13, 464, 11, 466, 10, 467, 8, 470, 4, 1902, 6, 468, 9, 467, 22, 20, 6, 427, 24, 17, 9, 426, 26, 5, 6, 4, 10, 423, 40, 2, 12, 422, 41, 1, 12, 421, 55, 421, 55, 420, 56, 420, 56, 420, 57, 420, 57, 419, 11, 1, 4, 6, 35, 420, 10, 12, 35, 420, 8, 14, 34, 422, 4, 29, 21, 457, 19, 459, 17, 462, 14, 418, 5, 51, 1, 417, 15, 461, 16, 459, 18, 458, 18, 457, 22, 454, 24, 452, 25, 1, 7, 444, 33, 443, 34, 441, 36, 440, 36, 440, 36, 441, 35, 441, 36, 441, 36, 441, 35, 440, 36, 440, 36, 439, 37, 439, 37, 439, 36, 441, 36, 440, 37, 440, 36, 441, 39, 439, 4, 1, 36, 440, 41, 436, 42, 435, 42, 435, 42, 432, 45, 431, 46, 428, 49, 425, 52, 424, 53, 422, 56, 420, 58, 417, 61, 415, 62, 1, 2, 411, 65, 412, 64, 412, 64, 413, 63, 414, 62, 416, 59, 421, 9, 2, 16, 3, 25, 422, 7, 4, 13, 11, 18, 425, 4, 7, 2, 26, 10, 11843, 6, 468, 8, 468, 9, 466, 11, 465, 12, 41, 5, 417, 13, 37, 12, 414, 14, 33, 17, 412, 17, 27, 25, 408, 18, 23, 28, 407, 20, 16, 34, 407, 30, 2, 38, 407, 69, 405, 71, 405, 71, 404, 72, 401, 75, 399, 77, 399, 77, 398, 78, 398, 77, 398, 78, 398, 77, 399, 77, 400, 75, 401, 74, 403, 72, 405, 71, 404, 72, 404, 72, 404, 71, 406, 70, 406, 69, 408, 66, 411, 9, 1, 1, 1, 15, 1, 34, 416, 5, 8, 12, 2, 31, 434, 8, 4, 23, 1, 4, 6638, 3, 1915, 2, 463, 25, 451, 26, 418, 4, 12, 11, 4, 34, 411, 7, 4, 5, 1, 52, 406, 18, 1, 52, 405, 72, 400, 77, 397, 79, 397, 79, 396, 80, 379, 10, 2, 85, 377, 99, 377, 98, 377, 99, 377, 98, 377, 98, 378, 98, 378, 98, 379, 96, 380, 96, 381, 86, 6, 2, 383, 83, 395, 8, 1, 7, 5, 58, 416, 51, 3, 4, 416, 52, 424, 52, 423, 53, 423, 52, 423, 53, 422, 53, 423, 52, 424, 52, 424, 51, 425, 51, 425, 50, 426, 50, 426, 49, 428, 48, 428, 47, 430, 46, 431, 45, 433, 42, 433, 43, 433, 42, 433, 43, 433, 43, 432, 44, 432, 44, 432, 44, 433, 43, 433, 43, 434, 42, 434, 41, 436, 40, 437, 39, 439, 37, 439, 38, 438, 39, 435, 41, 435, 28, 12, 1, 434, 27, 449, 25, 450, 25, 451, 24, 452, 23, 454, 15, 461, 14, 462, 13, 462, 14, 462, 14, 35, 2, 424, 15, 461, 15, 461, 15, 461, 16, 461, 17, 2, 5, 452, 25, 452, 25, 452, 25, 17, 10, 2, 4, 5, 1, 413, 25, 14, 25, 412, 28, 9, 27, 411, 33, 2, 30, 409, 67, 407, 69, 407, 69, 406, 71, 405, 72, 403, 74, 1, 7, 394, 83, 393, 84, 393, 84, 392, 84, 393, 84, 393, 84, 393, 84, 393, 84, 391, 86, 388, 89, 384, 92, 382, 94, 382, 94, 381, 95, 381, 95, 380, 96, 380, 96, 380, 96, 381, 94, 382, 94, 383, 92, 385, 90, 388, 87, 393, 75, 1, 5, 395, 76, 401, 75, 401, 75, 402, 75, 400, 77, 399, 77, 398, 78, 398, 78, 398, 78, 399, 77, 399, 76, 401, 75, 402, 74, 403, 73, 404, 72, 406, 69, 409, 67, 410, 65, 412, 62, 416, 11, 10, 34, 447, 28, 452, 17, 461, 13, 57476], "size": [476, 640]}, "area": 17143, "iscrowd": 1, "image_id": 522150, "bbox": [77, 39, 442, 109], "category_id": 1, "id": 900100522150}, {"segmentation": {"counts": [207651, 6, 454, 8, 452, 10, 450, 12, 448, 13, 447, 14, 447, 14, 447, 14, 447, 14, 447, 14, 447, 14, 447, 13, 448, 12, 449, 13, 448, 13, 448, 13, 448, 13, 448, 13, 448, 13, 449, 12, 449, 12, 449, 12, 449, 12, 448, 14, 447, 15, 446, 15, 446, 15, 446, 16, 445, 16, 445, 16, 445, 16, 445, 17, 444, 17, 445, 17, 444, 17, 372, 7, 65, 17, 371, 9, 64, 17, 370, 10, 65, 16, 369, 11, 65, 16, 369, 11, 66, 15, 369, 11, 66, 15, 369, 11, 66, 15, 369, 11, 66, 16, 368, 11, 67, 15, 368, 12, 66, 16, 367, 12, 66, 16, 4, 7, 356, 12, 67, 27, 355, 12, 67, 28, 355, 11, 67, 29, 4, 8, 342, 12, 66, 29, 1, 12, 342, 11, 66, 42, 343, 11, 65, 41, 346, 9, 66, 40, 347, 9, 65, 40, 349, 7, 65, 39, 374, 13, 35, 39, 372, 18, 33, 38, 372, 25, 26, 38, 371, 28, 24, 38, 370, 30, 23, 38, 369, 33, 21, 37, 369, 35, 20, 37, 369, 37, 17, 38, 368, 38, 14, 40, 368, 40, 12, 41, 367, 43, 8, 43, 366, 46, 4, 45, 366, 95, 365, 96, 364, 97, 363, 98, 362, 98, 362, 99, 362, 99, 362, 99, 362, 96, 365, 57, 5, 30, 369, 56, 8, 25, 371, 56, 10, 21, 374, 40, 11, 5, 10, 17, 378, 37, 30, 13, 381, 34, 34, 9, 384, 31, 37, 5, 388, 30, 431, 29, 432, 27, 434, 26, 435, 25, 436, 24, 437, 24, 438, 23, 439, 21, 441, 20, 442, 19, 443, 18, 445, 15, 447, 14, 449, 12, 454, 7, 456, 4, 41792], "size": [461, 640]}, "area": 4378, "iscrowd": 1, "image_id": 480818, "bbox": [450, 122, 99, 120], "category_id": 1, "id": 900100480818}, {"segmentation": {"counts": [255, 12, 464, 20, 457, 26, 452, 30, 448, 34, 444, 38, 441, 40, 439, 42, 436, 45, 434, 47, 432, 49, 431, 50, 429, 52, 427, 54, 425, 56, 423, 57, 422, 59, 420, 60, 419, 62, 416, 64, 415, 66, 413, 67, 413, 67, 412, 69, 410, 70, 409, 71, 408, 73, 407, 73, 406, 74, 406, 74, 405, 75, 405, 75, 404, 76, 404, 76, 404, 76, 404, 76, 403, 77, 403, 77, 403, 77, 403, 77, 403, 77, 403, 76, 404, 76, 403, 77, 403, 76, 403, 77, 402, 78, 402, 77, 402, 78, 402, 77, 402, 78, 402, 77, 402, 77, 403, 76, 404, 76, 404, 75, 404, 75, 405, 74, 406, 73, 407, 72, 408, 71, 409, 71, 409, 70, 409, 71, 409, 71, 409, 70, 410, 70, 410, 69, 411, 69, 411, 68, 411, 68, 412, 68, 413, 66, 414, 66, 414, 66, 414, 66, 414, 66, 414, 66, 414, 66, 414, 65, 416, 64, 416, 64, 416, 63, 418, 62, 418, 62, 418, 61, 420, 60, 421, 58, 422, 58, 423, 56, 424, 55, 426, 53, 428, 52, 429, 50, 431, 49, 432, 48, 433, 46, 435, 44, 437, 43, 439, 42, 439, 41, 440, 41, 439, 41, 439, 42, 437, 49, 431, 51, 429, 60, 420, 62, 417, 65, 415, 66, 415, 66, 414, 67, 413, 67, 413, 68, 412, 68, 413, 68, 412, 68, 413, 67, 414, 66, 3, 8, 404, 78, 403, 79, 402, 79, 402, 79, 402, 79, 403, 77, 407, 74, 407, 73, 407, 74, 405, 75, 404, 76, 403, 77, 402, 78, 401, 79, 401, 79, 400, 80, 400, 80, 400, 79, 401, 79, 400, 79, 401, 79, 402, 77, 403, 76, 404, 75, 405, 75, 405, 75, 406, 74, 406, 74, 407, 73, 407, 73, 407, 73, 406, 75, 404, 36, 1, 39, 404, 36, 2, 39, 402, 37, 3, 38, 402, 37, 3, 38, 402, 37, 3, 38, 402, 37, 3, 38, 401, 37, 4, 38, 401, 36, 6, 37, 402, 32, 9, 37, 402, 30, 12, 36, 402, 27, 16, 34, 403, 25, 21, 6, 3, 22, 403, 24, 31, 21, 405, 23, 31, 21, 405, 22, 32, 20, 407, 20, 33, 19, 409, 4, 47, 18, 411, 2, 49, 17, 412, 1, 50, 13, 470, 5, 6679, 1, 478, 3, 472, 9, 470, 11, 464, 18, 461, 21, 454, 28, 451, 31, 448, 34, 445, 34, 446, 33, 444, 35, 444, 35, 14, 8, 399, 9, 14, 33, 14, 13, 394, 14, 11, 33, 14, 16, 391, 17, 8, 33, 14, 18, 389, 19, 6, 31, 16, 20, 387, 21, 5, 30, 16, 22, 385, 23, 3, 30, 16, 23, 384, 24, 3, 27, 19, 24, 383, 25, 2, 26, 19, 25, 382, 26, 2, 28, 17, 21, 386, 57, 16, 14, 393, 58, 15, 7, 400, 27, 1, 31, 13, 2, 405, 60, 420, 61, 420, 60, 420, 61, 419, 61, 40, 4, 375, 61, 37, 7, 375, 61, 33, 12, 375, 60, 30, 15, 375, 59, 27, 20, 375, 57, 25, 23, 376, 54, 23, 27, 377, 52, 21, 30, 378, 49, 21, 32, 378, 48, 21, 33, 378, 47, 21, 34, 379, 44, 22, 35, 379, 43, 22, 26, 389, 42, 22, 25, 390, 41, 23, 24, 392, 40, 23, 23, 394, 39, 23, 22, 396, 37, 25, 20, 397, 37, 25, 17, 401, 36, 445, 34, 446, 33, 447, 32, 448, 32, 448, 31, 443, 37, 440, 39, 440, 40, 439, 41, 438, 41, 438, 41, 438, 41, 439, 40, 439, 40, 435, 44, 435, 44, 409, 6, 20, 44, 406, 12, 17, 44, 403, 20, 13, 43, 401, 26, 10, 42, 400, 30, 8, 41, 399, 34, 6, 40, 398, 38, 3, 40, 398, 40, 2, 39, 398, 78, 400, 74, 405, 72, 407, 71, 409, 69, 410, 70, 409, 71, 408, 72, 407, 72, 408, 72, 407, 73, 407, 73, 406, 74, 406, 74, 405, 75, 405, 75, 405, 73, 407, 72, 407, 70, 410, 70, 410, 75, 405, 76, 402, 78, 400, 80, 398, 82, 397, 83, 34, 3, 359, 84, 32, 6, 356, 87, 29, 9, 354, 88, 27, 12, 352, 89, 26, 13, 352, 91, 22, 16, 350, 95, 17, 18, 349, 98, 13, 21, 347, 100, 10, 23, 346, 103, 6, 26, 345, 106, 1, 30, 342, 141, 338, 144, 22, 11, 302, 148, 9, 22, 300, 180, 300, 181, 297, 183, 296, 185, 294, 186, 294, 186, 293, 187, 292, 188, 291, 189, 290, 190, 290, 190, 289, 164, 1, 26, 289, 162, 3, 25, 289, 163, 4, 24, 289, 163, 4, 23, 289, 164, 5, 22, 289, 164, 6, 20, 290, 163, 8, 18, 291, 163, 9, 15, 292, 120, 2, 41, 12, 12, 293, 120, 4, 39, 15, 5, 297, 120, 5, 37, 318, 120, 6, 35, 319, 120, 8, 31, 321, 120, 11, 14, 1, 12, 322, 120, 16, 5, 8, 5, 325, 121, 359, 121, 360, 120, 360, 120, 360, 120, 360, 120, 360, 119, 351, 6, 4, 119, 350, 130, 349, 130, 349, 131, 349, 131, 348, 131, 348, 132, 348, 131, 349, 131, 349, 130, 350, 129, 352, 127, 353, 127, 354, 125, 356, 123, 357, 122, 358, 121, 359, 120, 361, 118, 362, 117, 363, 118, 363, 117, 364, 120, 360, 122, 358, 89, 4, 5, 6, 19, 357, 89, 15, 19, 357, 88, 16, 20, 357, 87, 17, 19, 358, 86, 17, 19, 358, 85, 19, 18, 358, 85, 20, 17, 358, 85, 20, 17, 358, 84, 21, 16, 360, 83, 20, 16, 362, 82, 19, 16, 363, 81, 19, 16, 364, 81, 19, 20, 360, 81, 19, 22, 358, 81, 19, 26, 354, 80, 20, 27, 352, 81, 20, 28, 351, 80, 21, 29, 351, 80, 20, 29, 351, 89, 6, 34, 351, 90, 3, 36, 351, 129, 348, 132, 344, 136, 343, 136, 343, 136, 343, 134, 346, 128, 352, 122, 358, 116, 2, 1, 361, 115, 365, 109, 371, 103, 378, 97, 384, 90, 392, 3, 1, 72, 6, 3, 399, 71, 409, 70, 410, 69, 411, 67, 414, 65, 416, 62, 418, 60, 420, 58, 423, 54, 426, 50, 431, 47, 46, 8, 380, 44, 45, 13, 378, 42, 46, 16, 376, 39, 48, 18, 375, 32, 54, 20, 375, 26, 58, 22, 373, 26, 58, 21, 375, 25, 59, 20, 374, 24, 61, 21, 373, 23, 63, 20, 373, 23, 64, 20, 372, 22, 66, 20, 372, 22, 65, 20, 373, 22, 65, 20, 373, 22, 61, 24, 373, 22, 58, 27, 373, 21, 58, 27, 374, 20, 58, 14, 389, 10, 3, 3, 60, 15, 390, 8, 66, 15, 393, 3, 68, 16, 464, 16, 463, 17, 137, 20, 306, 17, 120, 11, 3, 27, 302, 18, 116, 46, 300, 18, 114, 50, 297, 20, 9, 1, 101, 54, 295, 34, 95, 57, 295, 33, 94, 64, 252, 12, 25, 34, 92, 69, 244, 20, 21, 34, 91, 72, 239, 26, 18, 35, 89, 75, 235, 30, 16, 36, 87, 78, 220, 6, 5, 34, 15, 36, 86, 82, 215, 8, 2, 38, 13, 38, 84, 84, 212, 50, 13, 40, 9, 1, 71, 86, 208, 53, 13, 41, 7, 1, 71, 88, 204, 56, 13, 42, 5, 2, 69, 90, 202, 58, 13, 48, 69, 91, 200, 60, 14, 47, 68, 92, 196, 64, 16, 44, 68, 93, 194, 66, 18, 41, 68, 94, 191, 69, 17, 41, 68, 95, 188, 72, 17, 40, 68, 95, 187, 73, 12, 45, 68, 96, 185, 75, 8, 48, 68, 96, 184, 76, 7, 49, 67, 98, 183, 77, 5, 50, 66, 99, 183, 77, 4, 50, 65, 102, 182, 78, 2, 51, 65, 102, 182, 78, 1, 51, 66, 102, 182, 78, 1, 51, 66, 103, 181, 131, 65, 103, 180, 132, 65, 103, 180, 133, 64, 103, 180, 133, 65, 102, 180, 134, 65, 101, 180, 134, 67, 99, 180, 134, 68, 98, 180, 134, 70, 96, 179, 135, 71, 95, 179, 135, 72, 94, 178, 136, 72, 94, 177, 137, 73, 92, 178, 137, 74, 91, 177, 137, 76, 90, 176, 138, 76, 90, 175, 139, 77, 88, 175, 140, 77, 88, 175, 141, 77, 86, 175, 142, 77, 86, 175, 142, 77, 85, 175, 143, 77, 84, 176, 143, 78, 82, 176, 144, 80, 80, 176, 144, 81, 78, 177, 144, 83, 75, 178, 144, 86, 70, 179, 144, 88, 68, 180, 144, 89, 65, 182, 143, 91, 62, 184, 143, 93, 58, 186, 142, 95, 55, 188, 141, 98, 52, 189, 139, 103, 48, 189, 139, 108, 43, 190, 139, 109, 42, 190, 139, 111, 39, 192, 137, 115, 35, 193, 137, 117, 31, 195, 136, 120, 28, 196, 136, 121, 25, 198, 135, 124, 21, 200, 135, 127, 16, 202, 135, 132, 5, 208, 136, 345, 135, 24, 8, 313, 136, 20, 13, 311, 136, 19, 16, 308, 137, 18, 18, 307, 137, 17, 20, 306, 137, 16, 22, 305, 140, 1, 34, 304, 176, 304, 94, 1, 78, 307, 170, 310, 170, 310, 170, 285, 3, 22, 170, 283, 7, 20, 170, 282, 9, 18, 117, 15, 39, 281, 11, 17, 115, 18, 38, 280, 13, 17, 113, 19, 38, 280, 15, 15, 113, 19, 38, 280, 16, 14, 112, 19, 39, 280, 17, 13, 112, 19, 39, 280, 19, 11, 111, 10, 6, 3, 40, 281, 19, 10, 110, 7, 53, 281, 20, 9, 102, 14, 54, 282, 20, 8, 100, 16, 59, 279, 20, 6, 99, 16, 67, 274, 19, 5, 98, 17, 74, 267, 20, 4, 96, 19, 79, 263, 20, 2, 96, 20, 79, 265, 116, 20, 79, 267, 114, 21, 78, 267, 115, 20, 78, 268, 114, 20, 78, 270, 113, 20, 76, 272, 113, 20, 75, 273, 113, 21, 72, 275, 114, 6, 2, 14, 38, 5, 26, 277, 122, 22, 22, 10, 13, 11, 2, 279, 122, 21, 16, 14, 14, 294, 122, 21, 13, 15, 15, 295, 122, 20, 13, 13, 16, 299, 120, 19, 12, 12, 18, 299, 121, 17, 12, 10, 21, 300, 148, 9, 23, 301, 146, 7, 25, 304, 139, 1, 4, 4, 27, 306, 133, 7, 2, 3, 28, 307, 131, 12, 30, 307, 130, 13, 29, 308, 129, 13, 32, 306, 128, 13, 34, 305, 128, 13, 33, 306, 128, 13, 32, 307, 128, 14, 30, 308, 128, 14, 30, 308, 128, 15, 28, 308, 129, 15, 27, 308, 130, 16, 26, 308, 131, 16, 25, 306, 133, 17, 24, 304, 138, 4, 5, 6, 24, 303, 149, 5, 23, 302, 150, 6, 23, 299, 153, 6, 23, 297, 154, 16, 14, 295, 155, 20, 13, 292, 156, 20, 20, 282, 158, 21, 21, 279, 163, 13, 26, 277, 204, 275, 206, 273, 207, 272, 209, 271, 209, 271, 16, 2, 192, 270, 14, 4, 192, 270, 14, 4, 192, 270, 13, 4, 193, 270, 12, 5, 193, 270, 12, 6, 187, 274, 13, 6, 185, 276, 13, 6, 184, 277, 13, 6, 184, 278, 12, 6, 184, 278, 11, 7, 184, 277, 12, 7, 184, 277, 12, 7, 184, 277, 13, 7, 183, 277, 12, 8, 183, 277, 12, 8, 183, 277, 12, 9, 120, 3, 59, 277, 12, 9, 120, 7, 56, 276, 12, 9, 119, 9, 55, 276, 12, 10, 118, 11, 53, 276, 13, 10, 116, 12, 56, 5, 5, 263, 13, 10, 115, 14, 66, 262, 13, 11, 113, 15, 68, 260, 13, 11, 113, 16, 69, 258, 13, 12, 111, 18, 69, 258, 12, 13, 110, 19, 69, 257, 12, 14, 113, 16, 69, 18, 2, 236, 12, 15, 115, 15, 12, 3, 53, 17, 4, 234, 12, 14, 118, 16, 5, 7, 54, 16, 6, 232, 12, 13, 121, 27, 56, 13, 7, 231, 12, 12, 124, 26, 62, 6, 8, 230, 12, 12, 125, 26, 76, 230, 12, 10, 127, 26, 75, 229, 13, 5, 3, 2, 128, 27, 74, 228, 152, 29, 71, 228, 153, 31, 69, 227, 154, 31, 68, 228, 154, 32, 66, 228, 155, 34, 63, 228, 156, 39, 57, 228, 156, 41, 55, 228, 157, 41, 54, 228, 157, 42, 53, 228, 158, 43, 51, 229, 157, 46, 47, 231, 157, 46, 46, 233, 3, 12, 140, 47, 44, 248, 141, 49, 42, 248, 142, 51, 38, 250, 141, 58, 30, 251, 141, 59, 27, 253, 142, 60, 24, 254, 142, 63, 5, 7, 5, 258, 142, 338, 142, 338, 142, 338, 142, 339, 141, 339, 141, 339, 141, 340, 140, 340, 140, 340, 140, 341, 139, 342, 138, 342, 138, 343, 136, 344, 136, 345, 135, 346, 133, 348, 132, 349, 131, 272], "size": [480, 640]}, "area": 76299, "iscrowd": 1, "image_id": 385701, "bbox": [0, 36, 639, 341], "category_id": 1, "id": 900100385701}, {"segmentation": {"counts": [197421, 5, 475, 8, 473, 22, 456, 24, 456, 25, 454, 26, 454, 26, 453, 27, 408, 14, 8, 13, 1, 6, 1, 29, 406, 18, 1, 53, 408, 71, 408, 70, 410, 69, 410, 69, 411, 67, 413, 67, 414, 66, 414, 65, 416, 64, 417, 62, 420, 60, 421, 59, 421, 58, 422, 58, 423, 57, 423, 57, 424, 57, 424, 56, 426, 54, 426, 54, 427, 53, 428, 53, 429, 42, 2, 7, 441, 27, 455, 25, 455, 25, 452, 28, 450, 30, 446, 34, 444, 35, 445, 35, 444, 35, 445, 35, 444, 34, 445, 27, 3, 3, 438, 5, 1, 27, 3, 5, 6, 6, 425, 34, 2, 9, 2, 17, 416, 34, 2, 10, 1, 18, 414, 34, 2, 40, 404, 35, 1, 42, 401, 80, 400, 80, 400, 81, 399, 81, 4, 3, 393, 91, 389, 93, 388, 93, 388, 92, 390, 3, 3, 85, 395, 85, 395, 85, 394, 86, 394, 86, 393, 86, 394, 86, 393, 85, 395, 84, 396, 82, 399, 92, 388, 94, 387, 95, 386, 95, 387, 94, 388, 104, 381, 101, 380, 101, 379, 101, 378, 103, 377, 103, 377, 103, 377, 103, 377, 7, 1, 95, 386, 94, 388, 91, 395, 85, 400, 78, 404, 74, 414, 64, 417, 62, 419, 31, 1, 22, 1, 3, 424, 29, 3, 8, 3, 3, 436, 27, 455, 25, 458, 22, 458, 22, 459, 21, 461, 19, 462, 18, 462, 17, 464, 16, 465, 13, 469, 3, 1, 5, 28301, 3, 475, 6, 473, 7, 473, 8, 471, 9, 471, 10, 468, 12, 466, 15, 465, 16, 463, 19, 460, 22, 35, 1, 419, 26, 32, 4, 416, 30, 28, 6, 391, 6, 18, 33, 25, 8, 388, 10, 14, 36, 22, 10, 388, 11, 11, 40, 19, 12, 386, 94, 386, 95, 384, 96, 384, 96, 383, 98, 382, 98, 381, 100, 380, 100, 380, 100, 380, 100, 380, 101, 380, 101, 379, 102, 377, 103, 377, 104, 376, 104, 376, 104, 377, 104, 376, 104, 377, 103, 378, 102, 379, 101, 380, 100, 382, 98, 384, 96, 389, 91, 388, 92, 388, 91, 388, 92, 388, 92, 388, 92, 389, 91, 389, 90, 391, 89, 392, 88, 392, 88, 393, 87, 394, 86, 396, 83, 401, 78, 403, 75, 406, 68, 414, 63, 422, 57, 429, 49, 433, 43, 439, 39, 443, 34, 448, 31, 451, 27, 1739], "size": [480, 640]}, "area": 11507, "iscrowd": 1, "image_id": 130624, "bbox": [411, 89, 225, 124], "category_id": 1, "id": 900100130624}, {"segmentation": {"counts": [79970, 6, 473, 8, 471, 10, 469, 14, 466, 15, 465, 16, 464, 17, 463, 17, 463, 18, 462, 18, 462, 18, 462, 18, 462, 18, 463, 17, 464, 17, 463, 17, 463, 17, 463, 18, 463, 17, 464, 16, 466, 14, 467, 13, 466, 14, 461, 19, 460, 20, 459, 21, 458, 21, 459, 21, 459, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 19, 461, 18, 463, 15, 466, 12, 470, 8, 45982, 6, 473, 8, 471, 12, 467, 14, 466, 15, 465, 16, 464, 16, 464, 16, 464, 16, 464, 16, 464, 16, 464, 16, 464, 15, 466, 13, 468, 10, 400, 6, 66, 5, 402, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 3847, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 7150, 5, 474, 6, 473, 7, 472, 8, 472, 8, 472, 8, 472, 8, 472, 8, 472, 8, 472, 8, 472, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 5277, 6, 473, 8, 471, 10, 469, 12, 468, 12, 467, 18, 461, 20, 459, 23, 457, 24, 8, 6, 442, 26, 5, 8, 441, 28, 2, 10, 440, 41, 439, 41, 439, 41, 439, 41, 440, 40, 441, 39, 443, 37, 444, 35, 446, 33, 448, 30, 452, 25, 457, 22, 474, 4, 38440, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 23447, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 13, 467, 13, 467, 13, 467, 13, 467, 13, 468, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 28219], "size": [480, 640]}, "area": 2406, "iscrowd": 1, "image_id": 385701, "bbox": [166, 91, 415, 215], "category_id": 62, "id": 906200385701}, {"segmentation": {"counts": [57264, 15, 624, 17, 382, 24, 216, 19, 380, 33, 208, 19, 379, 41, 201, 19, 378, 43, 200, 19, 378, 44, 142, 7, 50, 19, 378, 45, 140, 9, 49, 19, 378, 45, 139, 11, 37, 30, 378, 45, 139, 11, 36, 30, 379, 45, 139, 14, 32, 29, 378, 48, 139, 15, 31, 27, 379, 49, 8, 15, 116, 16, 30, 27, 378, 50, 7, 49, 83, 16, 30, 27, 377, 50, 7, 51, 82, 18, 28, 27, 377, 49, 8, 52, 82, 18, 27, 27, 377, 48, 9, 52, 79, 22, 26, 27, 377, 48, 9, 52, 78, 24, 26, 25, 378, 48, 9, 52, 77, 26, 27, 21, 380, 48, 9, 52, 77, 26, 31, 15, 382, 48, 9, 52, 77, 30, 26, 16, 383, 47, 10, 51, 77, 31, 24, 17, 387, 8, 2, 33, 12, 48, 78, 32, 22, 18, 399, 30, 17, 44, 77, 33, 22, 18, 407, 12, 1, 8, 18, 44, 77, 33, 22, 18, 422, 4, 20, 44, 77, 33, 22, 17, 447, 44, 77, 33, 22, 15, 449, 44, 77, 33, 22, 14, 450, 44, 77, 33, 22, 14, 451, 43, 77, 32, 24, 13, 389, 2, 62, 1, 14, 25, 78, 31, 24, 14, 388, 12, 85, 6, 83, 28, 23, 15, 387, 21, 170, 24, 22, 15, 388, 30, 166, 19, 18, 18, 389, 39, 161, 15, 17, 19, 389, 46, 14, 28, 117, 10, 16, 20, 389, 47, 12, 44, 106, 5, 17, 20, 388, 48, 11, 48, 125, 21, 386, 49, 11, 48, 125, 21, 386, 49, 11, 48, 125, 21, 386, 49, 11, 48, 84, 4, 37, 21, 386, 49, 11, 48, 83, 10, 32, 10, 1, 10, 386, 49, 11, 48, 82, 16, 28, 8, 2, 10, 386, 48, 12, 3, 14, 31, 82, 20, 26, 4, 4, 10, 386, 47, 14, 2, 42, 2, 83, 20, 33, 11, 386, 47, 143, 20, 4, 7, 21, 13, 384, 48, 143, 20, 3, 12, 17, 13, 383, 49, 143, 20, 2, 14, 16, 13, 383, 49, 143, 20, 2, 14, 16, 13, 383, 49, 14, 2, 31, 12, 84, 20, 2, 14, 16, 16, 380, 49, 13, 3, 23, 21, 83, 36, 16, 17, 379, 49, 12, 4, 16, 29, 83, 16, 1, 18, 16, 18, 378, 49, 11, 6, 7, 37, 85, 33, 17, 27, 368, 49, 11, 50, 85, 33, 19, 26, 368, 48, 11, 50, 86, 12, 1, 19, 19, 28, 367, 47, 11, 50, 88, 8, 3, 19, 19, 29, 368, 44, 12, 50, 99, 19, 19, 30, 368, 44, 11, 50, 99, 19, 19, 30, 371, 41, 11, 50, 99, 19, 20, 29, 374, 38, 12, 49, 99, 19, 20, 29, 377, 35, 14, 47, 99, 19, 20, 29, 381, 31, 16, 45, 99, 19, 20, 29, 384, 28, 14, 47, 99, 20, 19, 29, 387, 25, 13, 48, 100, 20, 24, 23, 359, 7, 24, 22, 12, 49, 100, 21, 31, 15, 358, 11, 24, 19, 12, 48, 102, 21, 38, 7, 357, 15, 24, 16, 12, 49, 101, 21, 401, 19, 24, 12, 13, 49, 101, 21, 401, 22, 24, 8, 14, 49, 101, 21, 401, 25, 24, 3, 16, 49, 101, 21, 401, 28, 40, 49, 101, 21, 401, 31, 38, 48, 101, 21, 401, 34, 37, 46, 101, 21, 401, 37, 49, 30, 102, 21, 402, 39, 37, 37, 104, 21, 403, 41, 33, 38, 104, 20, 406, 42, 29, 40, 103, 19, 407, 45, 26, 40, 103, 18, 408, 48, 23, 40, 104, 17, 408, 49, 22, 40, 104, 16, 409, 49, 22, 40, 103, 18, 408, 49, 22, 34, 5, 1, 103, 19, 407, 49, 22, 21, 122, 19, 407, 49, 23, 7, 135, 19, 407, 50, 164, 19, 408, 49, 164, 19, 23, 7, 379, 48, 164, 19, 23, 17, 369, 48, 164, 19, 23, 27, 360, 47, 163, 19, 23, 38, 351, 46, 163, 19, 23, 1, 2, 42, 345, 45, 163, 20, 22, 1, 11, 33, 344, 46, 163, 20, 42, 25, 344, 45, 164, 20, 50, 17, 344, 44, 165, 20, 59, 8, 344, 42, 35, 23, 109, 20, 411, 41, 35, 25, 108, 20, 411, 41, 34, 27, 108, 19, 411, 40, 35, 27, 110, 4, 1, 11, 413, 38, 26, 37, 117, 7, 415, 36, 27, 38, 539, 36, 26, 39, 539, 36, 26, 39, 539, 36, 26, 39, 539, 36, 26, 38, 540, 36, 26, 36, 542, 36, 26, 35, 152, 6, 386, 35, 26, 35, 151, 14, 380, 34, 26, 35, 150, 22, 375, 31, 27, 35, 149, 30, 374, 25, 28, 34, 148, 37, 376, 16, 30, 33, 148, 44, 370, 14, 31, 33, 148, 52, 363, 11, 33, 33, 148, 52, 365, 7, 35, 33, 148, 52, 407, 33, 148, 52, 407, 32, 149, 52, 408, 30, 151, 51, 410, 6, 1, 19, 155, 49, 595, 44, 613, 4, 1, 20, 139814], "size": [640, 427]}, "area": 12946, "iscrowd": 1, "image_id": 528047, "bbox": [89, 43, 119, 305], "category_id": 84, "id": 908400528047}, {"segmentation": {"counts": [4361, 6, 405, 8, 403, 10, 401, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 401, 10, 403, 8, 406, 3, 70420, 6, 405, 8, 403, 10, 401, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 11, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 401, 10, 403, 8, 406, 3, 2058, 6, 405, 8, 403, 10, 401, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 401, 10, 403, 8, 406, 3, 2472, 6, 405, 8, 403, 10, 401, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 17, 395, 18, 395, 18, 395, 18, 396, 3, 1, 12, 400, 12, 396, 16, 395, 17, 394, 18, 393, 19, 393, 18, 394, 17, 395, 14, 398, 12, 400, 12, 400, 12, 401, 10, 403, 8, 406, 3, 1, 6, 405, 8, 403, 10, 401, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 401, 10, 403, 8, 406, 3, 145011, 6, 405, 8, 403, 10, 401, 12, 400, 12, 400, 12, 400, 12, 400, 12, 400, 12, 188], "size": [412, 640]}, "area": 1125, "iscrowd": 1, "image_id": 394242, "bbox": [10, 209, 629, 40], "category_id": 1, "id": 900100394242}, {"segmentation": {"counts": [230913, 8, 469, 14, 465, 16, 463, 18, 461, 20, 459, 22, 457, 24, 456, 24, 455, 26, 454, 26, 454, 26, 454, 26, 454, 27, 453, 26, 454, 24, 455, 24, 455, 24, 455, 24, 455, 23, 456, 23, 456, 23, 456, 23, 8, 1, 448, 21, 9, 1, 448, 21, 9, 1, 449, 20, 460, 20, 460, 20, 460, 19, 461, 19, 461, 18, 462, 17, 463, 17, 463, 16, 465, 14, 2, 1, 463, 16, 465, 13, 467, 12, 469, 10, 471, 8, 473, 5, 477, 2, 6253, 2, 477, 8, 471, 13, 466, 15, 464, 17, 463, 18, 461, 19, 460, 21, 458, 22, 457, 23, 456, 24, 455, 26, 442, 1, 10, 27, 441, 2, 9, 28, 440, 3, 8, 29, 437, 6, 7, 30, 436, 7, 6, 31, 435, 8, 5, 32, 433, 10, 4, 33, 433, 9, 4, 34, 432, 9, 4, 34, 431, 10, 4, 35, 431, 9, 4, 36, 429, 10, 4, 37, 428, 10, 5, 37, 428, 8, 6, 37, 429, 8, 5, 37, 430, 9, 3, 38, 430, 9, 2, 38, 431, 9, 1, 38, 432, 27, 4, 16, 433, 26, 10, 9, 435, 25, 12, 5, 438, 24, 456, 22, 458, 21, 459, 20, 460, 20, 460, 19, 461, 18, 462, 17, 463, 16, 464, 15, 465, 14, 466, 13, 467, 12, 468, 11, 469, 10, 470, 9, 471, 8, 473, 6, 26872], "size": [480, 640]}, "area": 2746, "iscrowd": 1, "image_id": 211622, "bbox": [481, 1, 103, 52], "category_id": 44, "id": 904400211622}, {"segmentation": {"counts": [725, 2, 2, 2, 1, 3, 1, 1, 1, 10, 1, 3, 2, 6, 1, 6, 2, 2, 414, 49, 413, 51, 410, 53, 409, 54, 408, 21, 1, 32, 409, 12, 1, 2, 8, 33, 407, 9, 16, 31, 407, 8, 18, 30, 434, 29, 435, 28, 437, 26, 438, 25, 439, 23, 442, 20, 445, 14, 450, 11, 3662, 6, 456, 8, 454, 10, 452, 12, 451, 12, 451, 12, 451, 12, 450, 13, 450, 13, 450, 13, 450, 13, 450, 13, 450, 13, 450, 13, 451, 11, 453, 9, 456, 5, 12074, 7, 442, 23, 439, 25, 16, 1, 3, 10, 407, 27, 5, 1, 3, 21, 401, 63, 399, 65, 397, 66, 394, 69, 391, 72, 390, 73, 389, 74, 388, 75, 388, 74, 389, 73, 390, 71, 392, 69, 394, 64, 399, 59, 404, 57, 406, 55, 409, 53, 411, 50, 415, 44, 421, 19, 3, 20, 426, 13, 4, 19, 430, 9, 4, 19, 433, 6, 5, 17, 446, 7, 1, 4, 11083, 4, 458, 6, 456, 7, 456, 7, 456, 7, 456, 9, 454, 12, 451, 15, 2, 4, 443, 20, 444, 19, 446, 5, 1, 11, 452, 11, 453, 10, 454, 9, 456, 6, 458, 4, 12451, 6, 456, 8, 2, 6, 26, 6, 414, 18, 19, 13, 412, 20, 17, 15, 411, 21, 15, 17, 410, 21, 14, 18, 410, 21, 14, 18, 410, 21, 14, 18, 410, 21, 14, 18, 410, 21, 14, 18, 410, 21, 14, 15, 413, 21, 14, 11, 418, 19, 16, 10, 419, 17, 18, 9, 420, 15, 21, 4, 425, 11, 943, 6, 456, 8, 454, 10, 452, 12, 451, 12, 451, 12, 451, 12, 451, 12, 451, 12, 451, 12, 452, 10, 454, 8, 457, 4, 37468, 15, 447, 17, 445, 19, 443, 21, 442, 21, 442, 22, 441, 22, 440, 23, 440, 23, 440, 23, 440, 23, 440, 23, 440, 23, 440, 23, 441, 22, 442, 21, 444, 19, 445, 17, 446, 16, 448, 13, 451, 10, 455, 6, 2861, 8, 453, 12, 449, 17, 445, 19, 443, 21, 442, 23, 439, 25, 438, 25, 437, 26, 435, 28, 433, 31, 432, 31, 432, 31, 432, 30, 433, 29, 435, 26, 438, 23, 141788], "size": [463, 620]}, "area": 3963, "iscrowd": 1, "image_id": 332065, "bbox": [1, 242, 312, 116], "category_id": 1, "id": 900100332065}, {"segmentation": {"counts": [4995, 19, 407, 23, 405, 25, 402, 28, 399, 31, 396, 35, 392, 38, 390, 40, 387, 43, 384, 46, 382, 48, 379, 26, 1, 25, 376, 25, 3, 26, 374, 24, 6, 26, 371, 24, 8, 27, 369, 22, 12, 27, 367, 19, 17, 27, 364, 17, 22, 28, 361, 14, 26, 29, 359, 13, 29, 29, 357, 12, 32, 29, 355, 11, 35, 29, 353, 10, 37, 31, 350, 9, 40, 31, 348, 9, 41, 32, 346, 8, 44, 32, 344, 7, 46, 34, 341, 6, 49, 34, 339, 6, 50, 35, 337, 5, 53, 35, 335, 5, 54, 37, 332, 4, 58, 36, 330, 4, 62, 34, 328, 3, 66, 33, 327, 2, 70, 32, 324, 1, 75, 30, 322, 1, 79, 28, 402, 28, 401, 30, 17, 3, 379, 31, 11, 4, 384, 31, 4, 5, 389, 30, 399, 28, 401, 26, 403, 24, 405, 23, 406, 21, 408, 19, 410, 17, 412, 16, 413, 14, 415, 12, 417, 10, 419, 9, 420, 7, 422, 5, 424, 4, 423, 5, 423, 4, 423, 5, 423, 5, 423, 5, 422, 8, 419, 12, 415, 15, 413, 18, 409, 6, 1, 10, 413, 3, 5, 2, 19206, 2, 427, 9, 420, 12, 416, 26, 47, 3, 15, 4, 334, 29, 41, 7, 12, 5, 334, 31, 37, 26, 335, 32, 33, 28, 336, 33, 29, 30, 336, 30, 30, 32, 336, 27, 32, 33, 336, 24, 34, 34, 235, 1, 99, 22, 38, 33, 234, 5, 96, 19, 41, 33, 234, 7, 93, 17, 44, 33, 234, 10, 90, 15, 47, 32, 234, 12, 87, 14, 49, 32, 236, 13, 84, 12, 52, 31, 237, 15, 80, 10, 55, 31, 239, 16, 77, 8, 58, 30, 242, 16, 2, 1, 70, 7, 60, 30, 246, 19, 66, 6, 61, 30, 249, 20, 61, 6, 61, 31, 251, 22, 57, 5, 60, 33, 252, 25, 52, 5, 60, 34, 254, 27, 39, 12, 60, 36, 256, 29, 22, 24, 60, 37, 257, 31, 6, 36, 59, 39, 259, 75, 54, 40, 259, 76, 51, 42, 259, 77, 49, 43, 259, 77, 47, 45, 218, 3, 38, 78, 44, 47, 217, 7, 35, 79, 42, 48, 216, 12, 31, 79, 40, 50, 215, 17, 27, 80, 36, 53, 215, 20, 24, 81, 27, 61, 214, 24, 21, 82, 18, 69, 213, 27, 19, 82, 9, 78, 213, 29, 18, 168, 212, 31, 17, 168, 212, 32, 16, 168, 212, 32, 17, 167, 211, 10, 5, 18, 17, 167, 211, 9, 9, 15, 18, 166, 211, 9, 9, 16, 17, 166, 210, 10, 9, 16, 18, 165, 210, 9, 10, 6, 9, 1, 19, 164, 210, 10, 44, 164, 210, 10, 44, 164, 210, 10, 26, 1, 16, 165, 210, 10, 26, 2, 14, 166, 210, 11, 25, 3, 12, 167, 210, 15, 21, 4, 6, 172, 210, 20, 16, 182, 210, 23, 12, 183, 210, 26, 9, 183, 210, 28, 7, 183, 210, 31, 3, 184, 210, 218, 210, 218, 210, 218, 210, 218, 211, 217, 211, 217, 211, 217, 212, 216, 212, 216, 213, 103, 9, 103, 213, 103, 14, 98, 214, 101, 20, 22, 4, 67, 214, 21, 1, 16, 4, 59, 47, 66, 215, 19, 3, 11, 13, 53, 49, 65, 215, 18, 6, 6, 17, 51, 51, 64, 216, 16, 8, 1, 22, 49, 53, 63, 217, 15, 33, 46, 55, 62, 219, 13, 36, 42, 56, 62, 222, 10, 38, 39, 58, 61, 224, 8, 41, 35, 59, 61, 225, 7, 42, 33, 61, 60, 226, 6, 42, 31, 64, 58, 228, 5, 41, 31, 66, 56, 230, 3, 42, 29, 69, 54, 232, 2, 43, 22, 3, 1, 72, 52, 281, 18, 78, 50, 235, 1, 51, 10, 82, 48, 381, 45, 385, 42, 387, 39, 391, 35, 395, 31, 400, 25, 408, 15, 181923], "size": [428, 640]}, "area": 24968, "iscrowd": 1, "image_id": 13417, "bbox": [11, 210, 203, 217], "category_id": 31, "id": 903100013417}, {"segmentation": {"counts": [54575, 19, 459, 23, 439, 10, 5, 28, 437, 45, 435, 46, 434, 47, 425, 6, 3, 47, 424, 8, 1, 48, 423, 58, 422, 59, 422, 59, 422, 58, 423, 58, 423, 58, 423, 57, 424, 57, 424, 57, 425, 56, 425, 56, 426, 55, 427, 54, 427, 53, 428, 53, 429, 52, 429, 51, 430, 51, 431, 49, 432, 49, 432, 48, 433, 47, 435, 45, 436, 45, 435, 45, 436, 42, 439, 33, 448, 32, 449, 31, 450, 29, 452, 28, 453, 28, 454, 26, 456, 24, 459, 21, 464, 16, 470, 11, 470, 10, 471, 9, 472, 8, 473, 7, 474, 7, 474, 7, 474, 6, 475, 6, 475, 5, 476, 5, 477, 4, 477, 3, 479, 2, 480, 2, 44256, 1, 479, 2, 479, 3, 478, 3, 477, 5, 476, 5, 476, 6, 475, 6, 475, 7, 474, 7, 474, 8, 473, 8, 473, 9, 471, 10, 471, 11, 470, 13, 461, 6, 1, 15, 458, 25, 455, 31, 449, 31, 450, 30, 451, 29, 452, 28, 453, 27, 454, 27, 454, 26, 455, 26, 455, 26, 456, 25, 457, 24, 458, 23, 458, 23, 459, 21, 461, 20, 463, 18, 463, 19, 462, 19, 461, 20, 460, 21, 459, 22, 458, 23, 458, 23, 458, 23, 458, 23, 458, 23, 458, 24, 457, 24, 457, 24, 457, 24, 457, 24, 458, 23, 459, 22, 460, 22, 461, 20, 461, 21, 460, 21, 460, 22, 460, 21, 460, 22, 459, 22, 459, 24, 457, 25, 456, 26, 456, 27, 455, 27, 456, 28, 458, 23, 458, 23, 459, 22, 460, 21, 461, 20, 463, 17, 465, 15, 468, 10, 52904, 6, 474, 8, 472, 10, 462, 6, 2, 12, 460, 8, 1, 12, 459, 22, 451, 30, 450, 31, 449, 31, 449, 31, 450, 31, 450, 30, 451, 30, 451, 30, 451, 29, 452, 29, 452, 29, 452, 28, 453, 28, 453, 28, 453, 27, 454, 28, 453, 28, 453, 29, 452, 29, 451, 30, 450, 32, 448, 33, 447, 35, 445, 36, 445, 36, 445, 37, 444, 37, 444, 37, 444, 38, 443, 38, 443, 39, 441, 41, 439, 42, 439, 42, 439, 42, 439, 43, 438, 43, 438, 45, 435, 47, 434, 48, 432, 50, 430, 51, 429, 52, 428, 53, 428, 53, 427, 54, 427, 54, 426, 54, 426, 54, 426, 55, 426, 55, 425, 56, 424, 57, 424, 57, 424, 57, 424, 56, 425, 39, 2, 14, 426, 38, 5, 9, 429, 37, 444, 24, 1, 11, 445, 23, 4, 6, 448, 23, 459, 21, 461, 19, 464, 3, 2, 10, 473, 5, 58960], "size": [481, 640]}, "area": 6712, "iscrowd": 1, "image_id": 295295, "bbox": [113, 185, 404, 60], "category_id": 21, "id": 902100295295}, {"segmentation": {"counts": [192, 7, 551, 1, 5, 10, 5, 1, 1, 2, 3, 5, 2, 3, 17, 24, 2, 14, 3, 2, 540, 2, 3, 12, 3, 2, 1, 3, 2, 13, 11, 1, 2, 18, 10, 17, 540, 2, 1, 15, 2, 6, 1, 16, 5, 25, 10, 17, 540, 19, 1, 26, 1, 8, 1, 17, 10, 17, 541, 71, 10, 18, 541, 71, 10, 17, 542, 71, 10, 17, 542, 71, 11, 15, 544, 70, 12, 14, 544, 70, 12, 13, 545, 56, 1, 13, 12, 12, 546, 56, 8, 6, 12, 10, 548, 55, 8, 7, 9, 12, 550, 54, 7, 8, 7, 13, 551, 54, 7, 8, 7, 14, 550, 21, 7, 25, 7, 9, 7, 15, 550, 21, 9, 20, 9, 12, 4, 16, 550, 20, 38, 32, 551, 19, 37, 33, 552, 19, 36, 33, 554, 18, 35, 33, 555, 17, 34, 34, 557, 15, 34, 34, 557, 15, 33, 34, 558, 15, 33, 34, 557, 16, 32, 34, 558, 16, 15, 7, 10, 32, 559, 17, 14, 11, 7, 32, 559, 17, 13, 14, 4, 33, 559, 18, 11, 16, 2, 34, 559, 18, 10, 53, 558, 20, 9, 52, 559, 21, 7, 53, 559, 21, 7, 52, 560, 21, 7, 34, 1, 15, 561, 23, 6, 34, 6, 9, 562, 23, 6, 34, 9, 6, 562, 24, 5, 34, 10, 5, 562, 24, 6, 33, 10, 5, 562, 24, 6, 33, 11, 4, 562, 24, 6, 33, 11, 4, 562, 24, 7, 32, 11, 3, 563, 24, 7, 31, 13, 2, 563, 25, 6, 31, 13, 1, 564, 25, 7, 30, 4, 1, 573, 27, 5, 37, 571, 29, 3, 39, 569, 30, 3, 42, 565, 32, 2, 40, 566, 34, 1, 39, 566, 35, 2, 37, 566, 36, 2, 35, 567, 37, 1, 35, 567, 73, 567, 74, 566, 75, 565, 76, 564, 76, 564, 55, 1, 21, 563, 54, 3, 20, 556, 61, 5, 18, 555, 62, 6, 17, 554, 63, 7, 23, 546, 64, 7, 25, 543, 65, 7, 26, 542, 65, 7, 27, 540, 66, 7, 27, 540, 65, 7, 29, 539, 65, 7, 29, 539, 65, 7, 29, 540, 64, 7, 29, 540, 64, 7, 29, 540, 64, 7, 29, 541, 68, 2, 29, 542, 98, 543, 97, 544, 96, 545, 95, 547, 93, 549, 91, 550, 90, 551, 89, 552, 26, 2, 59, 555, 22, 4, 35, 1, 23, 566, 9, 7, 33, 4, 21, 583, 31, 10, 15, 585, 30, 10, 15, 585, 30, 10, 14, 586, 30, 9, 13, 588, 30, 9, 12, 589, 30, 9, 10, 591, 30, 10, 7, 580, 32, 2, 9, 593, 35, 5, 7, 592, 36, 603, 38, 601, 40, 599, 42, 598, 42, 597, 46, 594, 48, 591, 50, 590, 51, 589, 51, 589, 52, 588, 53, 588, 52, 588, 52, 588, 52, 589, 52, 589, 51, 590, 50, 592, 8, 2, 38, 602, 38, 603, 37, 603, 37, 603, 37, 603, 37, 603, 37, 603, 37, 604, 36, 604, 36, 8, 7, 589, 36, 7, 10, 588, 35, 6, 12, 587, 35, 5, 14, 585, 35, 5, 15, 585, 35, 5, 16, 584, 34, 5, 17, 584, 33, 6, 17, 585, 30, 8, 17, 585, 28, 10, 17, 585, 17, 22, 16, 586, 15, 23, 16, 587, 13, 24, 15, 589, 10, 27, 14, 591, 6, 30, 12, 629, 9, 633, 5, 5779, 7, 632, 10, 629, 12, 627, 14, 625, 15, 625, 16, 526, 2, 95, 17, 525, 5, 93, 17, 525, 7, 91, 17, 524, 9, 9, 2, 79, 17, 524, 11, 4, 5, 80, 16, 524, 21, 79, 16, 524, 22, 78, 15, 526, 22, 78, 14, 526, 22, 79, 17, 522, 23, 78, 19, 521, 22, 77, 21, 521, 21, 76, 23, 519, 22, 75, 24, 518, 23, 75, 25, 517, 23, 74, 26, 516, 24, 74, 26, 516, 24, 74, 26, 516, 24, 74, 26, 516, 24, 75, 25, 517, 23, 75, 25, 517, 23, 75, 24, 518, 23, 76, 23, 519, 21, 78, 21, 521, 20, 79, 18, 524, 19, 81, 5, 4, 5, 528, 17, 623, 17, 623, 17, 623, 17, 623, 19, 621, 21, 620, 21, 619, 22, 618, 23, 7, 7, 604, 23, 5, 10, 603, 22, 4, 12, 603, 22, 2, 14, 602, 22, 1, 15, 601, 23, 1, 19, 597, 45, 595, 46, 594, 47, 593, 47, 23, 4, 565, 49, 21, 7, 563, 49, 20, 8, 563, 49, 19, 9, 4, 1, 558, 49, 18, 11, 2, 2, 558, 24, 1, 24, 18, 11, 2, 3, 557, 24, 1, 24, 17, 12, 2, 3, 557, 23, 2, 24, 17, 17, 557, 23, 3, 23, 17, 17, 557, 23, 4, 22, 17, 17, 557, 23, 4, 22, 18, 16, 557, 23, 4, 22, 18, 16, 557, 24, 4, 20, 19, 15, 559, 25, 3, 19, 20, 14, 559, 26, 3, 17, 22, 12, 22, 14, 524, 27, 4, 13, 25, 9, 23, 17, 522, 28, 5, 9, 29, 5, 24, 19, 519, 30, 71, 21, 517, 32, 69, 22, 516, 34, 68, 23, 514, 35, 67, 25, 512, 36, 67, 25, 512, 37, 66, 26, 510, 38, 66, 26, 510, 38, 66, 26, 509, 39, 67, 25, 509, 39, 67, 25, 509, 40, 66, 25, 509, 41, 66, 24, 509, 41, 67, 22, 510, 41, 68, 21, 511, 41, 69, 5, 1, 12, 511, 42, 76, 9, 512, 43, 78, 5, 514, 43, 596, 44, 596, 44, 596, 44, 596, 44, 596, 44, 596, 44, 596, 44, 596, 43, 597, 43, 597, 42, 598, 42, 598, 41, 599, 40, 600, 39, 602, 37, 603, 36, 604, 35, 605, 17, 2, 14, 607, 17, 5, 7, 610, 18, 622, 18, 621, 19, 621, 19, 621, 21, 619, 22, 618, 23, 617, 25, 616, 25, 20, 2, 593, 26, 19, 4, 591, 26, 11, 1, 6, 6, 591, 26, 9, 3, 5, 7, 590, 26, 8, 17, 590, 25, 8, 18, 590, 24, 7, 19, 591, 23, 7, 20, 591, 22, 7, 20, 592, 21, 7, 20, 592, 21, 8, 20, 591, 20, 9, 20, 591, 20, 9, 20, 591, 20, 10, 20, 590, 21, 10, 19, 591, 20, 9, 21, 590, 22, 6, 22, 590, 24, 3, 23, 591, 24, 1, 24, 591, 49, 591, 49, 592, 48, 592, 48, 593, 46, 594, 46, 593, 47, 592, 47, 593, 47, 592, 47, 593, 47, 593, 25, 1, 20, 594, 23, 4, 17, 597, 20, 7, 14, 599, 20, 9, 9, 602, 20, 621, 19, 622, 18, 618, 22, 617, 23, 615, 25, 612, 28, 611, 29, 610, 30, 10, 7, 592, 31, 9, 10, 589, 32, 8, 12, 588, 32, 7, 14, 586, 33, 6, 15, 586, 33, 6, 16, 6, 7, 572, 33, 5, 17, 5, 10, 570, 33, 5, 17, 4, 12, 570, 31, 6, 17, 3, 14, 569, 31, 6, 17, 2, 15, 569, 30, 7, 17, 2, 16, 569, 27, 10, 16, 1, 17, 570, 24, 12, 16, 1, 17, 571, 10, 25, 15, 2, 17, 573, 6, 28, 14, 2, 17, 608, 12, 4, 16, 609, 9, 6, 16, 611, 5, 8, 15, 626, 14, 627, 12, 629, 9, 633, 5, 4464, 10, 629, 13, 50, 7, 569, 15, 48, 10, 566, 17, 46, 12, 564, 18, 45, 14, 563, 19, 43, 15, 562, 20, 43, 16, 561, 20, 42, 17, 529, 7, 25, 20, 42, 17, 528, 10, 23, 20, 42, 17, 527, 12, 22, 20, 20, 7, 5, 7, 3, 17, 526, 14, 22, 19, 19, 10, 2, 10, 2, 16, 525, 16, 20, 19, 19, 24, 1, 16, 525, 17, 19, 19, 18, 41, 525, 19, 18, 18, 18, 27, 1, 14, 525, 20, 17, 17, 19, 28, 1, 12, 526, 21, 16, 17, 18, 29, 2, 9, 528, 21, 16, 17, 18, 29, 4, 5, 530, 22, 15, 17, 18, 29, 540, 21, 15, 17, 18, 29, 540, 22, 14, 17, 19, 28, 540, 22, 14, 17, 19, 28, 540, 22, 14, 17, 19, 27, 542, 21, 14, 18, 19, 26, 542, 21, 14, 19, 19, 24, 543, 21, 14, 19, 20, 9, 3, 9, 546, 20, 13, 21, 21, 5, 7, 5, 548, 20, 13, 21, 586, 20, 12, 22, 586, 20, 12, 22, 587, 18, 13, 22, 587, 18, 13, 22, 22, 7, 558, 17, 14, 22, 21, 10, 556, 17, 14, 21, 21, 12, 555, 17, 14, 21, 20, 14, 554, 17, 14, 20, 20, 15, 550, 21, 14, 18, 22, 16, 548, 22, 14, 17, 22, 17, 547, 31, 6, 17, 22, 17, 546, 34, 4, 17, 22, 17, 545, 36, 3, 17, 22, 17, 545, 37, 2, 17, 23, 16, 544, 38, 2, 17, 23, 16, 544, 39, 1, 18, 22, 15, 545, 39, 1, 18, 23, 14, 545, 39, 1, 18, 24, 12, 546, 58, 23, 14, 546, 57, 22, 15, 546, 39, 1, 18, 21, 16, 545, 39, 1, 19, 19, 17, 544, 20, 6, 14, 1, 20, 18, 17, 544, 18, 8, 14, 1, 20, 18, 18, 543, 18, 8, 14, 2, 20, 17, 18, 543, 17, 9, 14, 2, 20, 17, 18, 543, 17, 8, 15, 2, 20, 17, 18, 543, 17, 8, 15, 2, 20, 17, 18, 543, 17, 8, 15, 3, 19, 18, 17, 543, 18, 7, 15, 3, 19, 18, 18, 542, 18, 7, 15, 3, 19, 18, 18, 542, 19, 6, 14, 5, 18, 18, 18, 542, 20, 5, 18, 2, 17, 18, 18, 542, 23, 1, 39, 18, 17, 543, 32, 2, 28, 18, 17, 543, 32, 8, 22, 18, 17, 543, 32, 9, 21, 19, 15, 545, 31, 9, 21, 20, 14, 546, 30, 9, 21, 21, 12, 548, 29, 9, 21, 22, 9, 552, 27, 9, 21, 24, 5, 555, 27, 8, 21, 584, 27, 8, 21, 584, 27, 8, 21, 584, 27, 8, 21, 584, 21, 2, 4, 8, 21, 584, 20, 4, 3, 8, 21, 584, 20, 6, 30, 584, 20, 7, 29, 584, 20, 7, 30, 583, 20, 7, 32, 581, 20, 7, 33, 581, 19, 6, 38, 577, 19, 6, 13, 1, 26, 574, 19, 7, 13, 1, 27, 573, 20, 5, 14, 1, 29, 570, 23, 3, 13, 2, 37, 562, 25, 1, 13, 3, 38, 560, 38, 4, 39, 559, 36, 6, 40, 19, 7, 533, 33, 9, 39, 18, 10, 531, 30, 13, 39, 14, 14, 530, 29, 15, 38, 13, 16, 530, 28, 16, 37, 12, 17, 526, 12, 1, 19, 17, 36, 11, 19, 524, 13, 4, 16, 19, 34, 10, 20, 523, 14, 7, 13, 19, 34, 10, 20, 522, 15, 9, 11, 19, 34, 9, 21, 521, 16, 9, 10, 20, 33, 10, 21, 521, 17, 8, 10, 21, 32, 10, 22, 519, 18, 8, 9, 22, 31, 11, 22, 519, 18, 8, 8, 23, 29, 13, 22, 519, 18, 8, 8, 24, 26, 15, 23, 518, 18, 8, 7, 26, 12, 28, 23, 518, 18, 8, 6, 28, 9, 30, 24, 518, 18, 7, 6, 30, 5, 32, 24, 518, 21, 4, 12, 61, 24, 518, 24, 1, 14, 59, 24, 519, 39, 58, 24, 519, 40, 57, 24, 519, 1, 1, 38, 57, 24, 523, 37, 3, 12, 41, 24, 525, 35, 2, 15, 39, 24, 526, 52, 38, 24, 527, 52, 37, 24, 527, 52, 37, 24, 527, 53, 36, 24, 527, 53, 36, 24, 527, 53, 36, 24, 527, 53, 34, 26, 519, 1, 7, 53, 33, 27, 519, 2, 7, 52, 21, 8, 3, 28, 518, 4, 5, 53, 20, 40, 517, 5, 5, 53, 19, 41, 517, 7, 3, 53, 18, 42, 516, 64, 17, 43, 516, 63, 18, 43, 516, 63, 17, 44, 516, 62, 18, 44, 517, 61, 18, 44, 517, 61, 18, 43, 518, 60, 19, 43, 519, 59, 18, 43, 521, 58, 18, 41, 524, 57, 18, 39, 528, 55, 18, 33, 538, 51, 18, 31, 539, 52, 18, 29, 541, 52, 18, 27, 542, 58, 13, 24, 545, 60, 11, 23, 546, 61, 10, 23, 546, 62, 9, 22, 547, 62, 9, 22, 547, 63, 8, 22, 547, 63, 7, 23, 547, 63, 7, 23, 547, 63, 6, 24, 547, 63, 6, 24, 547, 63, 6, 24, 547, 63, 6, 23, 548, 63, 7, 22, 548, 63, 7, 22, 548, 63, 7, 22, 548, 63, 8, 20, 435], "size": [640, 480]}, "area": 27292, "iscrowd": 1, "image_id": 41577, "bbox": [0, 104, 479, 137], "category_id": 62, "id": 906200041577}, {"segmentation": {"counts": [55711, 6, 367, 9, 365, 11, 364, 12, 362, 13, 49, 7, 306, 13, 48, 9, 305, 13, 47, 11, 80, 8, 216, 13, 46, 13, 76, 14, 99, 8, 106, 13, 46, 13, 75, 16, 95, 14, 102, 13, 47, 13, 73, 20, 92, 16, 100, 14, 47, 13, 72, 22, 89, 20, 97, 14, 48, 13, 72, 23, 87, 22, 96, 14, 48, 13, 71, 24, 87, 23, 95, 14, 48, 13, 6, 6, 58, 26, 85, 24, 95, 14, 49, 11, 6, 8, 57, 26, 84, 26, 94, 14, 50, 9, 6, 10, 55, 27, 84, 26, 94, 13, 53, 5, 7, 12, 54, 27, 83, 28, 93, 12, 66, 12, 54, 27, 83, 28, 94, 10, 67, 12, 54, 27, 83, 28, 95, 8, 68, 12, 54, 27, 83, 28, 97, 4, 70, 12, 54, 27, 83, 29, 170, 12, 53, 28, 83, 29, 170, 12, 53, 28, 83, 29, 171, 10, 8, 6, 40, 28, 83, 29, 172, 8, 8, 8, 39, 28, 83, 29, 174, 4, 9, 10, 38, 28, 83, 29, 186, 12, 37, 28, 83, 29, 186, 12, 37, 28, 82, 31, 185, 12, 37, 28, 81, 33, 184, 12, 37, 28, 79, 36, 185, 10, 37, 28, 78, 37, 187, 8, 37, 28, 78, 37, 189, 6, 38, 27, 77, 38, 77, 7, 107, 4, 38, 27, 75, 40, 75, 10, 106, 3, 40, 26, 74, 41, 74, 12, 105, 2, 42, 25, 74, 41, 73, 14, 149, 24, 73, 41, 73, 15, 150, 23, 72, 41, 74, 15, 151, 22, 72, 39, 76, 15, 153, 20, 71, 39, 77, 15, 153, 20, 71, 38, 78, 15, 153, 20, 71, 37, 79, 15, 153, 20, 70, 37, 80, 14, 154, 20, 70, 36, 71, 8, 2, 13, 155, 20, 69, 35, 72, 10, 2, 10, 157, 20, 69, 34, 72, 12, 2, 8, 7, 6, 145, 20, 68, 35, 71, 14, 3, 4, 8, 8, 144, 20, 68, 34, 72, 14, 14, 10, 142, 21, 68, 34, 72, 14, 13, 12, 141, 21, 68, 34, 72, 14, 13, 12, 141, 21, 67, 34, 73, 14, 13, 12, 141, 21, 67, 33, 74, 14, 13, 12, 141, 21, 67, 32, 75, 14, 13, 12, 141, 21, 66, 31, 54, 6, 18, 12, 14, 12, 141, 21, 66, 31, 53, 8, 18, 10, 15, 12, 141, 21, 66, 30, 53, 10, 19, 6, 18, 10, 142, 21, 66, 29, 53, 12, 43, 8, 143, 21, 66, 28, 54, 12, 45, 4, 145, 21, 66, 27, 55, 12, 195, 20, 66, 27, 55, 12, 195, 20, 66, 27, 55, 12, 103, 1, 92, 19, 66, 27, 55, 12, 102, 4, 3, 3, 85, 18, 66, 27, 55, 12, 101, 12, 2, 6, 77, 17, 65, 28, 55, 12, 100, 22, 77, 16, 65, 27, 57, 10, 101, 23, 77, 15, 65, 27, 58, 8, 102, 23, 79, 12, 65, 28, 60, 4, 104, 23, 82, 6, 65, 32, 167, 23, 152, 33, 167, 22, 151, 35, 167, 22, 150, 36, 168, 21, 150, 37, 59, 6, 103, 20, 149, 38, 58, 8, 104, 6, 2, 10, 148, 39, 57, 10, 111, 11, 147, 39, 56, 12, 111, 10, 146, 41, 55, 12, 112, 8, 147, 41, 55, 12, 114, 4, 149, 42, 54, 12, 267, 42, 54, 12, 267, 42, 54, 12, 267, 43, 53, 12, 87, 6, 174, 43, 54, 10, 87, 8, 173, 43, 55, 8, 87, 10, 171, 45, 56, 4, 88, 12, 170, 45, 147, 13, 170, 46, 146, 13, 170, 46, 146, 13, 170, 46, 55, 6, 85, 13, 170, 47, 53, 8, 84, 13, 170, 49, 50, 10, 83, 13, 170, 54, 44, 12, 82, 13, 170, 58, 40, 12, 83, 11, 171, 59, 39, 12, 84, 9, 172, 59, 39, 12, 86, 5, 174, 60, 38, 12, 265, 60, 38, 12, 103, 6, 156, 61, 37, 12, 102, 8, 155, 61, 37, 12, 5, 6, 90, 10, 154, 61, 38, 10, 5, 8, 88, 12, 153, 61, 39, 8, 5, 10, 87, 12, 153, 62, 40, 4, 6, 12, 86, 12, 153, 62, 50, 12, 88, 10, 153, 61, 51, 12, 92, 6, 154, 60, 51, 12, 95, 3, 154, 60, 51, 12, 95, 3, 154, 60, 51, 12, 96, 1, 156, 59, 51, 12, 253, 58, 52, 12, 254, 57, 52, 12, 254, 56, 54, 10, 255, 55, 56, 8, 256, 55, 58, 4, 258, 55, 320, 55, 319, 56, 319, 57, 318, 57, 317, 58, 317, 58, 316, 59, 315, 60, 315, 61, 313, 62, 313, 61, 314, 62, 313, 62, 52, 6, 254, 63, 50, 9, 253, 63, 49, 11, 252, 63, 48, 13, 251, 63, 47, 14, 251, 63, 47, 14, 43, 5, 203, 63, 47, 14, 42, 7, 202, 62, 29, 6, 13, 14, 39, 11, 52, 7, 142, 63, 27, 8, 12, 14, 38, 13, 50, 9, 141, 63, 26, 10, 11, 14, 38, 13, 49, 11, 139, 64, 25, 12, 10, 13, 39, 13, 48, 13, 138, 64, 25, 12, 11, 11, 40, 13, 48, 13, 137, 65, 25, 12, 12, 9, 41, 13, 48, 13, 137, 65, 25, 12, 11, 8, 23, 6, 14, 13, 48, 13, 137, 65, 25, 12, 10, 10, 21, 8, 13, 13, 48, 13, 137, 64, 26, 12, 9, 12, 19, 10, 13, 11, 49, 13, 137, 64, 26, 12, 9, 12, 18, 12, 13, 9, 50, 13, 137, 64, 26, 12, 9, 12, 18, 12, 15, 5, 53, 12, 137, 64, 26, 12, 9, 12, 18, 12, 74, 10, 138, 64, 26, 12, 9, 12, 18, 12, 75, 8, 139, 64, 26, 12, 9, 12, 18, 12, 77, 4, 141, 64, 27, 10, 10, 12, 18, 12, 222, 64, 28, 8, 11, 12, 18, 12, 222, 64, 30, 4, 14, 10, 20, 10, 223, 64, 49, 8, 22, 8, 225, 63, 51, 4, 26, 4, 227, 63, 313, 62, 314, 61, 38, 6, 271, 60, 37, 8, 138, 6, 127, 59, 36, 10, 31, 7, 98, 8, 127, 58, 35, 12, 29, 9, 96, 10, 128, 56, 35, 12, 28, 11, 61, 6, 27, 12, 130, 8, 2, 43, 34, 13, 24, 16, 59, 8, 26, 12, 140, 42, 35, 13, 23, 17, 58, 10, 25, 12, 10, 6, 124, 43, 34, 13, 22, 18, 57, 12, 24, 12, 9, 8, 123, 43, 34, 13, 21, 19, 57, 12, 24, 12, 8, 10, 122, 43, 34, 13, 21, 19, 57, 12, 24, 12, 7, 12, 121, 43, 34, 13, 21, 19, 57, 12, 24, 12, 7, 12, 122, 42, 34, 12, 22, 19, 57, 12, 25, 10, 8, 12, 122, 42, 34, 12, 22, 18, 58, 12, 26, 8, 9, 12, 123, 41, 35, 10, 23, 17, 59, 12, 28, 4, 11, 12, 124, 40, 36, 8, 24, 16, 44, 6, 11, 10, 44, 12, 125, 39, 38, 4, 27, 13, 45, 8, 11, 8, 45, 12, 126, 38, 70, 10, 46, 10, 12, 4, 48, 10, 128, 37, 72, 6, 47, 12, 64, 8, 131, 35, 125, 12, 66, 4, 136, 32, 49, 9, 67, 12, 8, 7, 194, 28, 49, 11, 66, 12, 7, 9, 193, 28, 48, 13, 65, 12, 6, 10, 193, 28, 47, 15, 64, 12, 5, 11, 193, 28, 47, 15, 64, 12, 5, 11, 193, 28, 47, 15, 64, 12, 5, 11, 194, 26, 26, 6, 16, 15, 65, 10, 6, 11, 194, 26, 25, 9, 14, 15, 66, 8, 7, 11, 195, 24, 25, 11, 13, 15, 68, 4, 9, 12, 195, 22, 25, 13, 12, 15, 81, 12, 196, 20, 26, 14, 12, 15, 81, 11, 197, 18, 27, 14, 13, 15, 8, 6, 67, 9, 199, 16, 28, 14, 13, 15, 7, 9, 67, 5, 203, 12, 30, 14, 13, 15, 6, 11, 277, 6, 33, 14, 13, 15, 5, 14, 314, 14, 13, 15, 5, 15, 313, 14, 13, 15, 5, 16, 313, 12, 14, 15, 5, 17, 313, 10, 16, 13, 6, 17, 315, 6, 19, 11, 7, 17, 342, 7, 9, 17, 359, 16, 360, 15, 362, 13, 364, 10, 366, 8, 369, 4, 57182], "size": [375, 500]}, "area": 14246, "iscrowd": 1, "image_id": 83787, "bbox": [148, 48, 199, 326], "category_id": 60, "id": 906000083787}, {"segmentation": {"counts": [75, 6, 118, 10, 13, 10, 411, 63, 7, 12, 111, 54, 390, 86, 108, 57, 75, 7, 307, 87, 105, 60, 73, 9, 306, 88, 103, 63, 70, 11, 305, 89, 101, 70, 63, 13, 304, 89, 65, 10, 25, 72, 56, 22, 301, 89, 62, 16, 21, 73, 32, 6, 4, 6, 7, 24, 300, 89, 60, 20, 18, 75, 30, 8, 2, 50, 288, 89, 58, 24, 16, 75, 29, 62, 287, 89, 57, 26, 14, 76, 28, 64, 286, 89, 56, 28, 12, 77, 28, 65, 285, 89, 55, 30, 11, 77, 28, 66, 284, 89, 54, 32, 10, 77, 28, 67, 283, 89, 53, 34, 8, 78, 28, 68, 282, 88, 54, 34, 8, 78, 28, 68, 282, 87, 54, 36, 7, 78, 28, 68, 282, 84, 56, 38, 6, 78, 29, 67, 282, 73, 67, 38, 6, 78, 30, 66, 282, 73, 67, 38, 6, 78, 32, 64, 282, 73, 66, 40, 5, 77, 35, 62, 282, 73, 66, 40, 5, 77, 36, 8, 1, 52, 282, 72, 67, 40, 5, 77, 38, 3, 5, 10, 2, 40, 281, 71, 68, 40, 5, 76, 48, 8, 3, 40, 281, 60, 2, 6, 71, 40, 5, 76, 50, 3, 6, 40, 281, 60, 79, 40, 5, 75, 60, 40, 281, 59, 80, 40, 5, 75, 53, 47, 281, 59, 80, 40, 6, 74, 48, 52, 281, 58, 81, 40, 6, 73, 46, 55, 281, 58, 81, 40, 7, 72, 44, 57, 281, 59, 80, 40, 7, 71, 43, 59, 281, 59, 80, 40, 8, 70, 42, 60, 281, 59, 80, 40, 8, 68, 43, 61, 281, 60, 80, 38, 10, 67, 42, 62, 281, 60, 80, 38, 10, 66, 42, 63, 282, 59, 81, 36, 11, 66, 41, 64, 284, 57, 81, 36, 10, 67, 41, 64, 284, 57, 82, 35, 9, 68, 40, 65, 283, 58, 82, 35, 8, 69, 39, 66, 283, 58, 83, 34, 7, 70, 39, 66, 283, 58, 84, 32, 8, 70, 39, 66, 283, 58, 85, 30, 8, 71, 38, 67, 283, 58, 86, 26, 10, 72, 38, 66, 284, 58, 88, 22, 12, 72, 38, 65, 285, 59, 88, 20, 13, 71, 39, 62, 288, 59, 91, 14, 15, 72, 39, 62, 288, 59, 94, 8, 18, 72, 39, 63, 286, 60, 120, 71, 40, 63, 286, 61, 119, 71, 40, 63, 286, 62, 118, 70, 41, 63, 286, 63, 117, 70, 41, 63, 285, 65, 116, 69, 42, 63, 285, 66, 114, 70, 42, 63, 285, 66, 114, 70, 42, 62, 286, 67, 113, 70, 43, 61, 286, 68, 112, 70, 43, 61, 286, 68, 112, 70, 43, 60, 287, 68, 112, 70, 42, 61, 287, 69, 111, 70, 41, 61, 288, 69, 112, 69, 41, 61, 288, 69, 113, 68, 41, 60, 289, 69, 114, 67, 40, 61, 289, 69, 115, 66, 40, 61, 289, 69, 115, 66, 40, 62, 288, 69, 116, 65, 40, 62, 288, 69, 117, 64, 40, 62, 288, 69, 116, 65, 40, 62, 288, 69, 115, 66, 40, 62, 288, 69, 115, 66, 40, 62, 289, 68, 115, 67, 39, 62, 290, 67, 115, 67, 39, 61, 293, 64, 116, 67, 39, 61, 293, 64, 116, 67, 39, 61, 293, 63, 117, 67, 39, 61, 293, 63, 51, 10, 57, 66, 40, 61, 292, 62, 49, 19, 52, 65, 40, 61, 292, 62, 47, 24, 49, 65, 41, 60, 292, 61, 46, 28, 47, 65, 41, 60, 291, 61, 20, 6, 20, 31, 45, 65, 42, 59, 291, 60, 19, 9, 18, 33, 44, 65, 42, 59, 291, 61, 13, 2, 2, 11, 16, 42, 36, 65, 43, 58, 290, 66, 6, 19, 14, 44, 35, 64, 45, 57, 290, 91, 13, 46, 34, 64, 46, 56, 290, 91, 13, 47, 34, 63, 47, 55, 290, 91, 12, 48, 34, 63, 49, 53, 289, 92, 11, 49, 34, 63, 50, 52, 289, 92, 11, 49, 35, 62, 53, 49, 289, 92, 10, 50, 35, 62, 56, 46, 289, 92, 10, 50, 35, 62, 63, 38, 290, 92, 10, 50, 35, 62, 63, 38, 290, 92, 10, 50, 35, 62, 64, 36, 291, 91, 11, 49, 36, 62, 64, 36, 291, 90, 12, 50, 35, 61, 66, 34, 292, 89, 13, 50, 35, 61, 66, 34, 292, 89, 13, 50, 35, 61, 67, 32, 293, 88, 14, 50, 35, 61, 68, 30, 294, 88, 14, 50, 35, 61, 69, 28, 295, 87, 15, 50, 35, 61, 70, 26, 296, 88, 14, 50, 34, 62, 72, 22, 298, 88, 14, 49, 35, 61, 74, 20, 299, 88, 14, 48, 36, 61, 77, 14, 302, 89, 14, 45, 38, 61, 80, 8, 305, 89, 14, 44, 39, 61, 393, 89, 15, 43, 39, 61, 393, 89, 15, 42, 40, 61, 61, 10, 322, 89, 16, 41, 40, 60, 59, 16, 319, 89, 16, 40, 41, 60, 57, 20, 317, 89, 17, 39, 42, 59, 55, 24, 315, 89, 17, 38, 43, 59, 54, 26, 314, 89, 17, 39, 42, 59, 53, 31, 309, 90, 17, 40, 42, 7, 1, 50, 52, 35, 306, 90, 16, 42, 42, 5, 4, 48, 51, 38, 304, 90, 16, 42, 43, 3, 6, 47, 50, 41, 302, 90, 15, 43, 45, 1, 7, 46, 50, 42, 301, 89, 15, 44, 56, 43, 49, 44, 300, 89, 15, 44, 60, 39, 48, 46, 299, 88, 16, 44, 62, 37, 48, 47, 298, 88, 15, 45, 64, 35, 48, 48, 297, 87, 16, 46, 64, 34, 47, 49, 297, 87, 16, 47, 65, 32, 44, 53, 296, 87, 16, 48, 65, 30, 44, 55, 295, 87, 16, 49, 65, 29, 43, 56, 295, 87, 16, 50, 64, 29, 42, 57, 295, 88, 15, 50, 34, 2, 28, 29, 42, 58, 294, 88, 15, 51, 32, 16, 14, 30, 42, 58, 294, 88, 15, 52, 17, 8, 5, 18, 13, 30, 42, 58, 294, 89, 14, 52, 11, 15, 4, 18, 12, 31, 42, 58, 294, 89, 14, 52, 10, 17, 3, 19, 11, 31, 42, 58, 294, 89, 14, 53, 8, 19, 1, 20, 11, 31, 42, 58, 294, 89, 14, 53, 7, 20, 1, 21, 9, 32, 43, 57, 294, 89, 15, 52, 6, 43, 9, 32, 44, 56, 294, 89, 15, 52, 5, 45, 7, 33, 46, 54, 294, 71, 1, 17, 16, 51, 4, 47, 6, 33, 49, 51, 294, 69, 4, 16, 16, 51, 3, 52, 1, 34, 50, 50, 294, 69, 6, 14, 17, 139, 51, 50, 294, 69, 7, 13, 17, 139, 52, 49, 294, 69, 7, 13, 18, 138, 52, 48, 295, 69, 8, 12, 19, 137, 53, 47, 295, 69, 9, 10, 21, 135, 55, 45, 296, 69, 10, 8, 23, 133, 57, 44, 296, 74, 7, 3, 28, 131, 58, 42, 297, 75, 38, 130, 60, 40, 297, 76, 40, 127, 61, 38, 298, 77, 41, 125, 64, 34, 299, 77, 41, 125, 67, 30, 300, 78, 41, 124, 70, 26, 301, 79, 40, 124, 72, 22, 303, 80, 40, 123, 73, 20, 304, 81, 40, 122, 76, 14, 308, 9, 3, 69, 40, 121, 45, 11, 23, 8, 313, 4, 7, 69, 40, 120, 42, 17, 353, 68, 42, 118, 40, 21, 352, 67, 43, 117, 38, 25, 1, 6, 343, 67, 46, 114, 37, 34, 340, 69, 44, 116, 36, 43, 2, 10, 319, 70, 43, 117, 35, 59, 315, 71, 42, 118, 34, 62, 312, 71, 42, 119, 33, 65, 308, 73, 42, 118, 34, 66, 306, 75, 41, 118, 33, 68, 300, 81, 40, 118, 32, 70, 298, 82, 40, 118, 32, 71, 296, 83, 40, 118, 32, 72, 294, 85, 39, 119, 30, 73, 294, 85, 40, 118, 30, 74, 293, 86, 40, 117, 30, 75, 292, 87, 38, 118, 30, 75, 292, 87, 37, 119, 30, 75, 292, 87, 37, 119, 30, 76, 291, 88, 35, 120, 30, 76, 291, 88, 34, 121, 30, 76, 291, 88, 34, 121, 30, 76, 291, 88, 34, 121, 30, 76, 291, 88, 33, 122, 30, 76, 291, 88, 33, 122, 30, 76, 291, 88, 33, 122, 30, 76, 291, 88, 33, 122, 31, 75, 291, 88, 33, 122, 31, 75, 291, 88, 33, 122, 32, 74, 291, 88, 33, 81, 3, 37, 33, 74, 291, 88, 33, 78, 8, 35, 34, 73, 291, 88, 33, 77, 12, 32, 34, 72, 292, 87, 34, 78, 12, 30, 36, 71, 292, 87, 34, 78, 13, 28, 38, 31, 2, 36, 293, 86, 35, 79, 12, 6, 10, 12, 39, 29, 3, 36, 293, 86, 35, 79, 13, 4, 20, 2, 41, 66, 294, 85, 36, 80, 13, 1, 22, 1, 44, 64, 294, 85, 37, 79, 82, 62, 295, 84, 38, 79, 85, 58, 296, 83, 40, 78, 86, 56, 297, 83, 40, 78, 85, 56, 298, 83, 41, 77, 84, 55, 300, 83, 41, 77, 83, 55, 301, 83, 42, 76, 82, 56, 301, 84, 42, 75, 82, 56, 301, 85, 42, 74, 81, 57, 301, 87, 41, 73, 80, 58, 301, 88, 42, 71, 80, 59, 300, 89, 42, 20, 2, 47, 81, 59, 300, 90, 44, 14, 7, 45, 80, 60, 300, 91, 46, 8, 11, 44, 80, 60, 300, 91, 67, 41, 81, 60, 300, 92, 66, 19, 4, 17, 82, 60, 300, 92, 66, 14, 10, 16, 82, 60, 300, 93, 65, 12, 13, 14, 5, 12, 66, 59, 301, 93, 65, 10, 15, 32, 65, 58, 302, 93, 65, 8, 17, 33, 64, 57, 303, 93, 65, 7, 19, 33, 63, 57, 303, 93, 66, 5, 20, 33, 63, 57, 303, 93, 67, 2, 22, 33, 63, 57, 303, 93, 66, 2, 24, 32, 63, 57, 303, 93, 65, 2, 26, 31, 63, 57, 303, 93, 63, 3, 27, 31, 64, 55, 304, 93, 60, 6, 27, 31, 64, 54, 305, 93, 59, 8, 26, 37, 59, 52, 306, 93, 58, 9, 26, 38, 58, 52, 306, 92, 58, 11, 23, 41, 58, 51, 306, 92, 58, 13, 19, 44, 57, 51, 306, 92, 58, 19, 11, 46, 58, 50, 306, 91, 59, 20, 10, 47, 58, 49, 306, 90, 60, 22, 7, 50, 57, 47, 307, 58, 1, 31, 59, 24, 1, 56, 57, 45, 308, 89, 59, 83, 58, 41, 310, 88, 60, 84, 58, 40, 310, 87, 61, 85, 60, 37, 310, 88, 60, 85, 63, 8, 5, 21, 310, 89, 59, 86, 83, 12, 311, 90, 58, 86, 84, 10, 312, 91, 57, 86, 86, 5, 315, 91, 58, 86, 406, 91, 58, 85, 412, 85, 58, 86, 404, 93, 58, 86, 403, 93, 58, 86, 403, 93, 58, 86, 403, 93, 58, 87, 402, 93, 56, 89, 402, 93, 55, 90, 402, 93, 54, 91, 402, 93, 53, 41, 6, 45, 402, 93, 53, 37, 12, 43, 402, 93, 53, 33, 17, 42, 402, 93, 38, 10, 5, 22, 28, 42, 402, 93, 35, 16, 2, 21, 29, 42, 402, 92, 35, 18, 1, 21, 29, 42, 402, 92, 33, 42, 29, 42, 402, 92, 32, 44, 28, 42, 402, 92, 31, 45, 28, 42, 402, 93, 29, 55, 19, 41, 403, 93, 28, 57, 18, 41, 403, 94, 27, 59, 8, 1, 1, 11, 1, 34, 404, 94, 26, 61, 7, 4, 9, 35, 404, 95, 25, 63, 5, 2, 11, 34, 405, 95, 24, 65, 4, 1, 11, 35, 405, 95, 24, 66, 3, 1, 10, 36, 405, 96, 23, 68, 11, 37, 405, 96, 23, 62, 3, 4, 10, 37, 405, 97, 22, 60, 18, 38, 405, 97, 22, 59, 19, 38, 405, 23, 1, 73, 22, 59, 19, 38, 405, 23, 2, 72, 22, 59, 19, 38, 405, 22, 6, 69, 22, 34, 1, 24, 18, 39, 405, 22, 9, 66, 22, 34, 2, 23, 18, 39, 405, 21, 9, 67, 22, 34, 1, 24, 18, 39, 405, 22, 7, 68, 22, 34, 1, 25, 7, 2, 8, 39, 405, 22, 6, 69, 23, 32, 2, 26, 5, 8, 3, 39, 405, 22, 6, 69, 23, 32, 1, 39, 4, 39, 405, 22, 5, 70, 23, 32, 1, 36, 7, 39, 405, 22, 4, 71, 24, 30, 2, 33, 10, 39, 405, 22, 4, 70, 26, 28, 3, 33, 9, 41, 404, 22, 4, 70, 27, 26, 4, 32, 10, 41, 404, 22, 3, 71, 27, 29, 1, 32, 10, 41, 404, 22, 3, 70, 29, 61, 9, 42, 404, 21, 4, 40, 1, 28, 32, 61, 4, 45, 404, 21, 4, 40, 2, 26, 34, 109, 404, 20, 4, 41, 2, 26, 36, 107, 404, 19, 4, 42, 3, 24, 37, 107, 404, 16, 7, 42, 4, 21, 38, 108, 404, 12, 10, 44, 1, 22, 38, 109, 404, 12, 9, 69, 37, 108, 405, 11, 10, 70, 35, 109, 405, 10, 11, 71, 33, 110, 405, 10, 10, 73, 32, 109, 406, 10, 10, 73, 32, 109, 406, 10, 10, 74, 30, 110, 406, 9, 11, 74, 30, 110, 406, 8, 12, 75, 29, 110, 408, 3, 15, 75, 29, 109, 427, 75, 29, 109, 427, 75, 29, 110, 426, 75, 29, 110, 426, 75, 29, 111, 425, 75, 29, 111, 425, 75, 29, 112, 424, 75, 29, 112, 425, 74, 29, 112, 425, 74, 29, 112, 426, 73, 30, 111, 426, 36, 4, 32, 31, 111, 404, 10, 13, 34, 5, 32, 32, 110, 404, 13, 10, 34, 5, 32, 32, 110, 404, 15, 9, 32, 7, 30, 34, 109, 404, 17, 7, 31, 9, 28, 35, 109, 404, 18, 6, 30, 10, 28, 35, 109, 404, 19, 5, 29, 12, 26, 35, 110, 404, 20, 4, 29, 5, 32, 36, 110, 404, 21, 4, 28, 2, 33, 37, 111, 404, 22, 4, 27, 1, 33, 37, 112, 404, 22, 6, 58, 38, 112, 47, 10, 347, 23, 17, 47, 37, 112, 44, 16, 1, 7, 336, 24, 17, 47, 35, 113, 42, 27, 335, 24, 18, 47, 34, 113, 40, 35, 329, 24, 20, 45, 34, 113, 39, 39, 326, 25, 13, 51, 33, 114, 38, 42, 324, 25, 10, 54, 32, 115, 37, 45, 322, 25, 9, 55, 31, 116, 36, 47, 321, 25, 7, 57, 30, 117, 35, 49, 320, 25, 6, 58, 29, 117, 36, 51, 318, 25, 5, 59, 28, 118, 35, 53, 317, 25, 4, 59, 28, 119, 34, 55, 316, 25, 3, 59, 29, 118, 35, 56, 315, 25, 3, 59, 28, 118, 36, 56, 315, 25, 2, 59, 28, 67, 2, 2, 2, 46, 35, 57, 315, 25, 1, 59, 29, 66, 9, 44, 35, 57, 315, 82, 32, 66, 14, 38, 36, 57, 315, 80, 33, 67, 18, 34, 36, 58, 314, 24, 1, 55, 33, 67, 21, 30, 37, 58, 314, 24, 1, 55, 33, 67, 20, 31, 37, 59, 313, 23, 2, 54, 34, 67, 19, 32, 37, 59, 313, 23, 2, 54, 34, 68, 17, 33, 37, 59, 313, 22, 2, 55, 34, 69, 15, 34, 37, 59, 313, 22, 1, 55, 35, 70, 13, 35, 37, 59, 313, 21, 1, 55, 36, 71, 11, 36, 37, 59, 313, 20, 1, 56, 36, 74, 8, 35, 38, 59, 313, 19, 2, 55, 37, 75, 7, 34, 39, 58, 314, 18, 3, 54, 38, 77, 5, 35, 39, 57, 314, 16, 5, 52, 40, 77, 4, 37, 38, 57, 314, 15, 6, 51, 41, 77, 4, 37, 39, 56, 314, 12, 9, 49, 44, 77, 4, 37, 38, 55, 316, 8, 12, 47, 46, 77, 5, 37, 38, 54, 336, 47, 47, 76, 9, 34, 37, 53, 337, 46, 48, 77, 9, 33, 38, 52, 338, 44, 50, 76, 10, 33, 38, 50, 339, 41, 53, 119, 39, 49, 339, 39, 56, 119, 39, 47, 340, 39, 57, 118, 41, 44, 341, 39, 1, 6, 51, 117, 42, 42, 342, 47, 49, 118, 42, 41, 343, 48, 47, 119, 41, 40, 345, 49, 46, 119, 41, 40, 345, 49, 46, 119, 41, 40, 346, 48, 45, 120, 41, 40, 346, 48, 45, 120, 41, 40, 346, 48, 45, 120, 41, 40, 347, 47, 45, 120, 41, 40, 348, 46, 45, 120, 41, 40, 346, 47, 46, 120, 41, 40, 345, 47, 47, 120, 41, 40, 343, 48, 6, 7, 35, 120, 41, 40, 342, 48, 6, 9, 34, 120, 41, 40, 341, 49, 5, 11, 33, 120, 41, 40, 340, 50, 4, 13, 32, 40, 1, 79, 42, 38, 340, 51, 3, 14, 32, 120, 42, 38, 340, 50, 4, 14, 32, 120, 43, 36, 340, 50, 4, 15, 33, 119, 43, 36, 340, 49, 4, 18, 31, 119, 44, 34, 340, 50, 4, 19, 31, 118, 44, 34, 340, 50, 2, 22, 30, 117, 46, 32, 341, 75, 30, 116, 47, 30, 342, 75, 30, 116, 48, 28, 343, 75, 31, 32, 1, 81, 50, 26, 344, 75, 32, 30, 2, 81, 52, 22, 346, 75, 33, 28, 3, 81, 50, 26, 344, 75, 34, 26, 5, 80, 47, 31, 342, 75, 36, 22, 8, 79, 45, 34, 340, 77, 36, 20, 11, 76, 44, 37, 339, 77, 39, 14, 16, 74, 43, 39, 337, 79, 41, 8, 20, 73, 42, 42, 335, 79, 70, 71, 42, 44, 333, 80, 71, 70, 41, 46, 332, 80, 71, 70, 40, 48, 331, 38, 4, 38, 72, 69, 37, 51, 331, 38, 6, 36, 72, 69, 36, 52, 331, 38, 8, 34, 71, 70, 35, 53, 331, 38, 8, 34, 71, 70, 34, 54, 331, 38, 8, 34, 71, 70, 34, 54, 331, 38, 8, 34, 71, 70, 34, 54, 331, 37, 9, 34, 70, 34, 1, 35, 35, 54, 331, 37, 9, 34, 70, 70, 35, 54, 331, 37, 8, 34, 70, 71, 35, 54, 331, 79, 69, 72, 35, 54, 332, 78, 69, 71, 37, 53, 332, 77, 70, 71, 38, 52, 332, 76, 70, 71, 40, 51, 333, 76, 69, 70, 41, 51, 334, 76, 68, 69, 42, 51, 335, 75, 68, 66, 45, 51, 335, 75, 68, 64, 47, 50, 336, 75, 68, 65, 46, 50, 335, 76, 68, 65, 47, 48, 336, 76, 68, 65, 47, 48, 335, 78, 67, 66, 47, 46, 336, 79, 66, 68, 45, 46, 336, 80, 65, 69, 45, 44, 337, 81, 64, 70, 44, 43, 338, 81, 64, 71, 44, 41, 339, 82, 64, 70, 45, 39, 340, 82, 51, 10, 3, 70, 46, 36, 342, 83, 47, 16, 1, 69, 47, 34, 343, 83, 45, 88, 49, 29, 346, 83, 43, 90, 50, 25, 349, 83, 42, 91, 53, 14, 357, 83, 41, 91, 57, 8, 361, 82, 40, 91, 427, 82, 39, 89, 430, 82, 38, 89, 432, 81, 38, 88, 434, 80, 37, 54, 1, 34, 435, 79, 36, 38, 1, 10, 7, 33, 436, 79, 36, 38, 4, 5, 10, 32, 437, 77, 37, 38, 19, 31, 440, 20, 3, 52, 36, 40, 18, 30, 442, 18, 5, 51, 36, 40, 18, 29, 445, 15, 8, 48, 37, 40, 18, 28, 450, 10, 13, 14, 1, 28, 38, 40, 18, 26, 453, 8, 16, 11, 2, 28, 38, 40, 18, 25, 456, 3, 20, 9, 2, 28, 39, 40, 18, 25, 481, 4, 4, 28, 40, 40, 18, 26, 487, 28, 41, 15, 3, 21, 18, 28, 485, 30, 40, 12, 7, 20, 18, 28, 485, 30, 40, 9, 10, 17, 21, 29, 483, 32, 39, 8, 12, 14, 23, 30, 482, 32, 39, 8, 12, 14, 23, 30, 481, 34, 38, 8, 13, 13, 23, 30, 481, 34, 39, 8, 13, 13, 22, 31, 480, 34, 39, 10, 11, 13, 22, 31, 480, 34, 40, 12, 9, 12, 23, 30, 480, 34, 40, 13, 8, 30, 5, 30, 480, 34, 41, 13, 8, 29, 5, 30, 480, 34, 41, 13, 5, 1, 3, 29, 4, 30, 480, 34, 42, 13, 5, 1, 3, 29, 4, 29, 480, 34, 43, 13, 4, 3, 1, 29, 4, 29, 480, 34, 44, 12, 4, 66, 480, 34, 45, 12, 3, 66, 480, 34, 47, 11, 3, 65, 481, 32, 49, 11, 2, 65, 481, 32, 52, 9, 3, 2, 1, 60, 481, 32, 55, 6, 6, 59, 483, 30, 68, 59, 484, 28, 69, 58, 2, 6, 478, 26, 70, 58, 1, 8, 477, 26, 70, 68, 477, 24, 71, 69, 478, 20, 73, 69, 467, 10, 1, 20, 73, 69, 464, 35, 72, 69, 463, 38, 70, 69, 461, 41, 69, 70, 459, 43, 68, 71, 457, 45, 67, 72, 455, 47, 67, 71, 454, 48, 67, 72, 452, 50, 67, 72, 450, 51, 67, 72, 449, 53, 67, 71, 449, 53, 67, 72, 448, 53, 68, 71, 448, 53, 69, 70, 448, 53, 70, 28, 1, 40, 448, 53, 71, 26, 2, 40, 448, 53, 73, 22, 4, 40, 448, 53, 74, 20, 5, 40, 449, 52, 77, 15, 7, 40, 449, 52, 80, 9, 10, 40, 449, 52, 99, 40, 449, 52, 99, 40, 449, 51, 100, 40, 450, 50, 100, 40, 450, 50, 101, 38, 451, 49, 102, 38, 407], "size": [640, 480]}, "area": 98364, "iscrowd": 1, "image_id": 41577, "bbox": [0, 0, 479, 358], "category_id": 1, "id": 900100041577}, {"segmentation": {"counts": [717, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 466, 14, 466, 14, 465, 15, 465, 15, 465, 14, 466, 14, 466, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 471, 9, 470, 10, 469, 11, 469, 11, 469, 11, 469, 11, 469, 10, 470, 10, 471, 13, 466, 28, 452, 30, 450, 31, 448, 33, 447, 34, 446, 34, 445, 35, 445, 35, 444, 36, 444, 36, 444, 35, 444, 36, 444, 35, 444, 24, 2, 8, 446, 21, 459, 21, 459, 21, 460, 20, 460, 20, 461, 24, 457, 31, 448, 33, 447, 34, 446, 35, 445, 35, 446, 34, 446, 34, 446, 34, 446, 34, 447, 32, 448, 32, 448, 31, 449, 29, 451, 20, 460, 20, 460, 20, 460, 20, 460, 20, 460, 20, 461, 19, 460, 20, 460, 20, 460, 20, 461, 19, 461, 19, 462, 18, 462, 17, 463, 17, 463, 16, 465, 13, 467, 14, 466, 15, 465, 15, 465, 15, 466, 14, 466, 14, 467, 13, 467, 13, 463, 17, 461, 19, 461, 19, 460, 20, 460, 20, 459, 21, 459, 20, 460, 20, 461, 18, 462, 18, 463, 16, 466, 12, 469, 5, 95493, 13, 465, 16, 464, 17, 462, 19, 461, 18, 461, 19, 461, 18, 462, 18, 463, 17, 463, 17, 464, 16, 465, 15, 465, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 468, 12, 468, 12, 468, 12, 467, 13, 467, 13, 467, 13, 467, 13, 467, 12, 468, 11, 469, 10, 470, 10, 470, 10, 470, 11, 469, 12, 468, 13, 4, 4, 2, 1, 456, 13, 2, 10, 455, 13, 2, 11, 454, 13, 1, 13, 453, 13, 1, 13, 453, 27, 453, 27, 453, 27, 453, 27, 453, 27, 454, 26, 454, 25, 456, 24, 457, 8, 1, 13, 460, 4, 3, 13, 467, 13, 467, 13, 467, 13, 467, 13, 466, 14, 466, 14, 465, 15, 465, 14, 466, 14, 467, 12, 468, 11, 470, 10, 471, 4, 1, 3, 474, 1, 11038, 1, 477, 5, 475, 8, 1, 1, 469, 11, 469, 11, 468, 11, 469, 11, 469, 11, 470, 10, 470, 9, 470, 10, 470, 10, 470, 10, 471, 9, 471, 9, 472, 8, 473, 7, 475, 4, 43689, 6, 472, 8, 472, 8, 471, 9, 466, 14, 464, 15, 464, 16, 464, 17, 462, 20, 1, 1, 458, 22, 457, 23, 457, 23, 456, 24, 456, 24, 456, 24, 456, 24, 456, 26, 454, 29, 451, 30, 449, 32, 448, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 446, 45, 435, 46, 434, 47, 433, 48, 432, 48, 432, 48, 432, 48, 433, 47, 433, 47, 433, 46, 435, 45, 435, 44, 436, 42, 438, 34, 446, 31, 450, 30, 450, 30, 451, 29, 452, 28, 454, 4, 2, 20, 460, 21, 460, 21, 460, 22, 459, 24, 456, 25, 455, 26, 454, 27, 453, 28, 453, 28, 452, 29, 451, 30, 451, 29, 451, 29, 452, 28, 453, 27, 454, 27, 455, 26, 455, 25, 457, 23, 440, 40, 438, 42, 438, 42, 437, 42, 438, 42, 437, 42, 438, 27, 1, 12, 440, 27, 453, 27, 453, 26, 454, 27, 453, 28, 453, 27, 453, 27, 453, 27, 453, 27, 453, 27, 453, 26, 454, 26, 454, 25, 455, 27, 453, 28, 452, 29, 451, 30, 451, 30, 450, 31, 450, 30, 451, 29, 452, 28, 453, 27, 455, 25, 458, 22, 468, 11, 470, 10, 471, 8, 474, 4, 21819], "size": [480, 640]}, "area": 6276, "iscrowd": 1, "image_id": 298658, "bbox": [1, 212, 593, 63], "category_id": 21, "id": 902100298658}, {"segmentation": {"counts": [22781, 10, 469, 13, 466, 17, 462, 19, 461, 20, 460, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 459, 21, 398, 28, 35, 19, 397, 33, 32, 18, 396, 35, 32, 17, 397, 36, 29, 18, 397, 47, 18, 18, 397, 48, 17, 17, 398, 49, 16, 16, 399, 49, 15, 17, 399, 50, 14, 17, 399, 50, 14, 17, 398, 51, 14, 17, 398, 51, 14, 17, 398, 51, 14, 17, 398, 51, 14, 17, 398, 51, 14, 18, 393, 1, 3, 51, 14, 19, 392, 55, 14, 20, 392, 1, 11, 4, 3, 35, 14, 21, 403, 1, 7, 33, 15, 21, 403, 1, 7, 39, 9, 21, 403, 1, 7, 69, 411, 69, 411, 69, 411, 69, 411, 69, 410, 69, 413, 31, 1, 12, 2, 4, 1, 4, 2, 9, 419, 16, 39, 4, 429, 5, 47554, 6, 463, 23, 456, 35, 444, 37, 442, 39, 441, 40, 440, 40, 440, 40, 440, 40, 440, 40, 440, 40, 441, 39, 442, 37, 445, 12, 4, 18, 467, 11, 471, 4, 28735, 12, 467, 18, 461, 20, 459, 22, 458, 23, 457, 23, 457, 23, 457, 23, 457, 24, 455, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 453, 27, 453, 27, 453, 27, 453, 11, 3, 13, 453, 10, 9, 8, 453, 10, 9, 8, 453, 10, 10, 7, 453, 9, 11, 8, 452, 9, 11, 9, 451, 8, 13, 8, 452, 7, 13, 8, 453, 6, 13, 8, 455, 4, 14, 7, 452, 6, 15, 7, 451, 9, 13, 7, 450, 10, 14, 5, 450, 11, 14, 4, 451, 11, 14, 2, 453, 11, 12, 4, 453, 11, 10, 6, 453, 12, 5, 9, 454, 27, 453, 28, 452, 29, 451, 29, 451, 29, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 29, 451, 28, 452, 26, 454, 22, 459, 21, 460, 20, 460, 19, 461, 18, 462, 18, 462, 18, 462, 19, 461, 20, 460, 20, 461, 19, 460, 20, 460, 20, 460, 20, 460, 20, 460, 19, 461, 18, 462, 16, 465, 15, 465, 14, 467, 12, 469, 9, 473, 4, 140460], "size": [480, 640]}, "area": 4809, "iscrowd": 1, "image_id": 375528, "bbox": [47, 151, 300, 99], "category_id": 47, "id": 904700375528}, {"segmentation": {"counts": [761, 12, 468, 12, 467, 13, 467, 13, 468, 12, 468, 5, 1, 6, 468, 1, 1907, 6, 472, 9, 471, 10, 469, 11, 469, 11, 469, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 471, 8, 474, 3, 6718, 3, 477, 4, 468, 6, 1, 6, 465, 16, 464, 19, 460, 22, 458, 22, 458, 22, 457, 22, 459, 21, 459, 20, 460, 17, 464, 15, 466, 15, 467, 13, 468, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 5, 6, 460, 10, 2, 9, 458, 12, 1, 10, 457, 24, 456, 24, 455, 25, 456, 24, 456, 24, 456, 24, 457, 22, 458, 22, 458, 12, 1, 8, 458, 11, 5, 3, 462, 9, 471, 8, 472, 4, 476, 4, 476, 5, 1, 3, 470, 8, 472, 7, 473, 7, 472, 6, 475, 2, 478, 2, 478, 2, 11045, 6, 472, 9, 471, 10, 469, 12, 468, 12, 468, 12, 467, 12, 469, 10, 470, 9, 471, 4, 1, 3, 473, 2, 479, 1, 38396, 6, 472, 9, 471, 10, 469, 12, 468, 12, 468, 12, 467, 13, 468, 13, 467, 14, 466, 15, 466, 14, 467, 13, 466, 14, 467, 13, 467, 13, 467, 12, 469, 11, 470, 9, 468, 9, 469, 9, 471, 10, 469, 12, 468, 12, 468, 18, 461, 20, 461, 20, 460, 21, 459, 21, 460, 20, 461, 19, 463, 3, 2, 12, 467, 13, 467, 12, 468, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 471, 8, 474, 3, 4795, 6, 472, 9, 471, 10, 469, 12, 468, 12, 468, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 471, 8, 474, 3, 9111, 6, 472, 9, 471, 10, 469, 12, 468, 12, 468, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 469, 10, 468, 12, 468, 13, 466, 15, 465, 15, 465, 15, 464, 16, 465, 15, 465, 15, 465, 14, 467, 13, 468, 11, 471, 6, 31191, 6, 472, 9, 471, 10, 469, 12, 468, 12, 468, 12, 467, 13, 418, 6, 44, 12, 416, 9, 43, 12, 416, 10, 42, 11, 416, 12, 42, 10, 416, 12, 43, 8, 417, 12, 45, 3, 419, 13, 468, 12, 468, 12, 468, 11, 470, 10, 471, 8, 474, 3, 1917, 6, 472, 9, 471, 10, 469, 12, 468, 12, 468, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 471, 8, 474, 3, 1915, 6, 472, 9, 471, 10, 469, 12, 468, 12, 50, 6, 412, 12, 48, 9, 410, 13, 48, 10, 410, 12, 47, 12, 409, 12, 47, 12, 409, 11, 48, 12, 410, 10, 47, 13, 411, 8, 48, 13, 413, 3, 52, 12, 413, 6, 49, 12, 411, 9, 48, 11, 412, 10, 48, 10, 411, 12, 48, 8, 412, 12, 50, 3, 415, 12, 467, 13, 468, 12, 468, 12, 468, 11, 470, 10, 471, 8, 474, 3, 101544], "size": [480, 640]}, "area": 2882, "iscrowd": 1, "image_id": 328487, "bbox": [1, 207, 427, 85], "category_id": 1, "id": 900100328487}, {"segmentation": {"counts": [7999, 4, 476, 6, 475, 6, 475, 6, 475, 6, 475, 6, 476, 4, 476, 6, 475, 6, 475, 6, 475, 6, 475, 6, 476, 4, 28861, 1, 479, 3, 475, 1, 1, 4, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 475, 6, 476, 4, 8653, 4, 476, 6, 475, 6, 475, 6, 475, 6, 475, 6, 476, 4, 2872, 11, 469, 13, 468, 13, 468, 13, 468, 14, 467, 14, 467, 14, 467, 14, 467, 15, 466, 15, 466, 15, 466, 15, 467, 6, 2, 6, 475, 6, 476, 4, 5769, 4, 476, 6, 475, 6, 475, 6, 475, 6, 475, 6, 476, 4, 5769, 4, 476, 6, 475, 6, 475, 6, 475, 6, 475, 6, 476, 10, 471, 11, 469, 12, 468, 14, 467, 14, 467, 14, 467, 14, 467, 14, 467, 14, 468, 13, 467, 14, 466, 15, 466, 15, 466, 14, 467, 9, 472, 8, 474, 5, 12985, 2, 478, 4, 477, 6, 475, 6, 475, 6, 474, 7, 474, 6, 475, 6, 475, 6, 475, 6, 476, 4, 5288, 6, 474, 8, 473, 8, 473, 8, 473, 8, 473, 8, 473, 12, 469, 12, 469, 13, 465, 16, 464, 17, 464, 17, 464, 16, 465, 18, 463, 19, 463, 18, 463, 18, 463, 18, 462, 19, 462, 19, 462, 19, 462, 18, 463, 16, 466, 15, 469, 12, 473, 7, 4797, 11, 469, 13, 468, 15, 465, 17, 464, 17, 464, 17, 464, 17, 464, 17, 465, 15, 3355, 16, 464, 18, 463, 18, 463, 18, 463, 18, 463, 18, 463, 17, 464, 16, 466, 14, 466, 12, 468, 14, 467, 14, 467, 14, 467, 14, 467, 14, 468, 12, 4793, 4, 476, 9, 472, 11, 470, 12, 469, 13, 468, 15, 466, 16, 466, 15, 471, 10, 470, 12, 468, 14, 467, 14, 467, 14, 467, 14, 467, 12, 470, 9, 18266, 4, 477, 5, 476, 6, 475, 6, 475, 7, 474, 8, 473, 9, 473, 8, 473, 9, 473, 8, 473, 9, 472, 10, 471, 10, 472, 10, 471, 11, 471, 10, 471, 10, 471, 10, 471, 9, 473, 7, 484, 5, 462, 20, 1, 5, 454, 28, 453, 28, 453, 28, 453, 28, 453, 26, 456, 25, 458, 22, 459, 22, 459, 21, 460, 20, 461, 20, 461, 19, 462, 19, 462, 18, 464, 16, 464, 17, 462, 18, 462, 19, 462, 18, 463, 17, 464, 14, 467, 13, 469, 5, 1, 4, 2876, 5, 475, 7, 474, 14, 467, 17, 464, 19, 462, 15, 2, 2, 463, 13, 472, 8, 474, 5, 477, 3, 5763, 15, 465, 17, 464, 18, 463, 20, 461, 21, 460, 21, 461, 20, 466, 15, 467, 14, 468, 12, 9604, 9, 471, 11, 470, 11, 470, 11, 470, 11, 470, 12, 469, 12, 469, 12, 470, 11, 473, 8, 474, 4, 15865, 12, 468, 14, 467, 14, 467, 14, 467, 14, 467, 14, 466, 15, 466, 15, 466, 15, 466, 15, 466, 11, 471, 4, 10094, 13, 467, 21, 460, 22, 459, 22, 459, 22, 459, 22, 459, 22, 460, 4, 4, 12, 473, 2, 3838, 6, 474, 8, 472, 9, 472, 9, 472, 11, 470, 12, 469, 14, 467, 15, 467, 14, 469, 12, 469, 11, 470, 10, 472, 4, 1, 3, 29027], "size": [481, 640]}, "area": 3358, "iscrowd": 1, "image_id": 404964, "bbox": [16, 293, 563, 34], "category_id": 1, "id": 900100404964}, {"segmentation": {"counts": [159, 5, 421, 8, 418, 9, 418, 10, 417, 10, 416, 11, 417, 10, 415, 12, 414, 12, 414, 12, 415, 15, 409, 19, 407, 20, 406, 21, 406, 21, 406, 21, 405, 22, 406, 22, 405, 10, 1, 11, 405, 9, 3, 9, 407, 7, 6, 5, 411, 3, 30301, 5, 421, 8, 418, 9, 418, 10, 417, 10, 416, 11, 417, 10, 417, 10, 417, 9, 419, 7, 419, 8, 418, 9, 418, 10, 417, 12, 414, 15, 413, 14, 413, 15, 408, 19, 405, 28, 398, 31, 37, 9, 313, 7, 22, 5, 2, 32, 32, 16, 310, 10, 1, 5, 2, 5, 3, 44, 2, 14, 14, 17, 309, 93, 7, 19, 308, 119, 308, 119, 307, 120, 308, 49, 1, 69, 308, 47, 2, 69, 309, 38, 3, 3, 6, 11, 1, 55, 311, 36, 13, 10, 4, 3, 2, 42, 1, 3, 315, 32, 15, 9, 10, 40, 326, 8, 4, 12, 19, 7, 12, 36, 331, 3, 9, 7, 24, 3, 16, 3, 12, 18, 346, 3, 67, 9, 19111, 12, 414, 16, 13, 5, 1, 5, 377, 29, 6, 17, 1, 5, 1, 5, 362, 32, 3, 32, 359, 33, 2, 33, 359, 34, 1, 34, 358, 34, 1, 34, 357, 75, 353, 34, 1, 41, 351, 34, 1, 41, 351, 18, 1, 14, 2, 42, 351, 12, 11, 8, 4, 9, 3, 3, 3, 23, 353, 8, 16, 3, 8, 3, 15, 3, 2, 16, 411, 16, 411, 16, 52, 5, 355, 14, 52, 7, 350, 18, 51, 9, 348, 19, 51, 9, 347, 20, 51, 9, 347, 20, 50, 11, 346, 19, 52, 10, 345, 19, 53, 11, 345, 17, 54, 11, 345, 17, 55, 10, 345, 16, 58, 9, 345, 14, 58, 10, 347, 3, 4, 3, 3, 5, 53, 9, 357, 10, 51, 10, 355, 11, 51, 10, 354, 13, 51, 9, 354, 13, 51, 10, 353, 13, 48, 13, 352, 14, 47, 14, 353, 13, 46, 16, 352, 13, 46, 16, 352, 12, 47, 17, 352, 10, 47, 18, 354, 6, 50, 17, 409, 19, 408, 19, 408, 18, 409, 19, 407, 20, 407, 20, 408, 19, 408, 19, 408, 19, 409, 18, 411, 16, 414, 13, 416, 11, 418, 8, 422, 3, 13955, 5, 421, 8, 8, 5, 1, 7, 1, 8, 43, 5, 340, 9, 1, 5, 1, 30, 35, 8, 338, 48, 26, 5, 1, 9, 338, 53, 10, 1, 10, 20, 332, 62, 1, 2, 9, 23, 331, 64, 9, 23, 331, 64, 7, 26, 330, 97, 331, 96, 333, 3, 2, 89, 339, 7, 2, 3, 3, 5, 1, 8, 2, 31, 1, 25, 341, 3, 18, 3, 7, 3, 1, 24, 3, 23, 378, 16, 2, 3, 6, 21, 381, 3, 1, 9, 12, 19, 389, 5, 15, 7, 3, 3, 416, 3, 3833, 5, 421, 8, 418, 9, 418, 10, 417, 10, 415, 12, 414, 13, 413, 14, 413, 13, 414, 12, 414, 13, 415, 13, 414, 13, 414, 14, 414, 13, 409, 18, 408, 19, 407, 20, 407, 19, 408, 18, 408, 19, 409, 18, 409, 18, 409, 18, 410, 17, 412, 14, 413, 13, 413, 14, 412, 15, 412, 14, 413, 14, 412, 14, 414, 13, 414, 13, 414, 12, 416, 7, 414, 5, 3, 3, 415, 8, 418, 9, 416, 12, 414, 17, 409, 20, 405, 22, 404, 24, 402, 25, 402, 25, 401, 26, 401, 26, 402, 24, 403, 10, 1, 12, 404, 9, 3, 13, 403, 7, 4, 13, 406, 2, 6, 13, 35, 6, 374, 12, 33, 9, 375, 11, 32, 10, 375, 10, 31, 12, 358, 5, 11, 12, 29, 11, 355, 11, 8, 14, 28, 11, 354, 12, 9, 14, 26, 12, 344, 5, 4, 14, 8, 15, 26, 11, 343, 9, 1, 14, 2, 21, 26, 11, 342, 25, 1, 22, 26, 11, 342, 48, 27, 10, 342, 48, 27, 10, 341, 25, 1, 24, 24, 12, 342, 23, 1, 11, 1, 13, 24, 12, 342, 21, 4, 10, 4, 9, 24, 13, 342, 13, 1, 4, 7, 10, 5, 7, 25, 14, 342, 11, 13, 9, 8, 6, 24, 14, 344, 8, 15, 7, 8, 9, 21, 15, 347, 3, 19, 3, 9, 10, 22, 14, 381, 11, 20, 13, 383, 11, 20, 14, 381, 12, 19, 16, 381, 11, 19, 16, 381, 11, 19, 16, 381, 11, 18, 17, 382, 10, 19, 16, 382, 10, 19, 16, 382, 9, 20, 16, 382, 10, 21, 14, 338, 5, 39, 10, 21, 14, 335, 9, 37, 11, 21, 13, 334, 12, 37, 10, 21, 12, 331, 16, 37, 10, 21, 12, 328, 20, 6, 10, 7, 5, 1, 5, 1, 10, 22, 12, 327, 21, 5, 13, 1, 33, 15, 12, 326, 22, 4, 50, 13, 11, 327, 24, 2, 50, 14, 10, 327, 77, 14, 8, 327, 78, 16, 3, 331, 77, 350, 78, 349, 11, 2, 65, 350, 8, 5, 64, 352, 4, 7, 13, 1, 9, 3, 10, 2, 25, 364, 12, 3, 5, 2, 40, 366, 10, 3, 47, 369, 6, 4, 48, 379, 47, 380, 45, 381, 45, 383, 42, 385, 39, 388, 40, 388, 39, 389, 39, 388, 39, 388, 39, 387, 40, 388, 39, 388, 38, 389, 37, 391, 9, 2, 26, 392, 3, 5, 12, 6, 10, 399, 12, 5, 12, 398, 12, 5, 12, 397, 13, 5, 12, 398, 12, 4, 13, 398, 12, 5, 12, 398, 11, 6, 12, 23, 5, 1, 5, 365, 9, 7, 11, 23, 14, 365, 5, 9, 11, 23, 14, 374, 16, 23, 14, 373, 17, 23, 15, 371, 18, 23, 15, 371, 17, 24, 15, 371, 16, 25, 15, 370, 15, 27, 15, 371, 10, 31, 15, 371, 10, 31, 15, 371, 9, 32, 15, 372, 7, 33, 15, 374, 3, 35, 15, 7, 3, 402, 15, 6, 6, 400, 15, 4, 8, 359, 11, 1, 5, 1, 1, 22, 15, 3, 10, 357, 20, 22, 15, 2, 11, 356, 21, 22, 15, 1, 12, 329, 7, 14, 27, 22, 13, 2, 13, 328, 17, 4, 29, 21, 9, 9, 10, 327, 20, 1, 32, 19, 7, 12, 8, 328, 20, 1, 34, 17, 7, 13, 6, 329, 56, 16, 7, 14, 3, 330, 58, 15, 7, 348, 58, 14, 7, 348, 41, 3, 3, 3, 7, 15, 7, 348, 31, 22, 6, 13, 7, 349, 19, 2, 8, 21, 9, 12, 7, 351, 16, 5, 4, 23, 9, 11, 8, 358, 3, 1, 3, 33, 11, 10, 8, 398, 12, 9, 9, 397, 12, 9, 9, 396, 13, 9, 9, 397, 12, 9, 10, 396, 12, 9, 10, 396, 11, 10, 10, 397, 10, 10, 10, 398, 8, 6, 1, 4, 11, 399, 3, 14, 11, 412, 1, 3, 11, 412, 2, 2, 11, 410, 4, 2, 11, 408, 7, 1, 11, 408, 19, 407, 20, 407, 20, 407, 20, 406, 21, 407, 20, 407, 20, 407, 19, 409, 18, 409, 18, 410, 17, 407, 20, 405, 22, 405, 22, 404, 23, 404, 23, 404, 23, 403, 24, 404, 23, 404, 23, 404, 23, 405, 4, 1, 17, 406, 3, 1, 17, 407, 2, 1, 17, 407, 1, 2, 17, 406, 2, 2, 17, 405, 3, 2, 17, 404, 4, 3, 16, 404, 3, 4, 15, 405, 3, 4, 15, 405, 3, 4, 15, 405, 2, 5, 15, 405, 2, 5, 15, 404, 3, 6, 13, 406, 1, 7, 13, 406, 1, 11, 9, 406, 1, 18, 2, 425, 2, 425, 2, 425, 1, 425, 1, 66429], "size": [427, 640]}, "area": 11154, "iscrowd": 1, "image_id": 501358, "bbox": [0, 73, 484, 144], "category_id": 9, "id": 900900501358}, {"segmentation": {"counts": [799, 5, 2, 35, 435, 48, 431, 50, 429, 52, 427, 52, 427, 53, 426, 54, 425, 55, 423, 57, 421, 58, 420, 60, 419, 61, 417, 62, 417, 63, 414, 65, 414, 65, 413, 67, 32, 31, 348, 68, 17, 50, 343, 69, 13, 56, 341, 70, 9, 61, 339, 70, 6, 66, 337, 70, 4, 70, 335, 71, 1, 73, 334, 71, 1, 74, 333, 147, 332, 149, 331, 148, 332, 148, 332, 148, 331, 149, 330, 150, 329, 150, 329, 151, 329, 151, 328, 151, 328, 152, 327, 152, 327, 152, 327, 153, 327, 152, 327, 152, 327, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 326, 153, 327, 152, 327, 152, 327, 152, 327, 152, 327, 151, 328, 141, 5, 5, 329, 132, 14, 4, 329, 127, 20, 2, 330, 123, 25, 1, 330, 119, 360, 115, 364, 112, 367, 108, 371, 104, 38, 4, 334, 101, 39, 5, 334, 98, 40, 6, 335, 96, 41, 6, 337, 92, 43, 6, 338, 90, 43, 7, 340, 87, 44, 7, 341, 85, 45, 7, 343, 84, 44, 7, 344, 83, 45, 6, 345, 82, 45, 5, 347, 81, 45, 5, 348, 81, 45, 3, 350, 79, 47, 1, 352, 77, 402, 74, 405, 73, 406, 62, 4, 5, 408, 61, 418, 61, 418, 60, 419, 59, 420, 59, 420, 58, 421, 60, 420, 61, 418, 63, 416, 64, 415, 64, 416, 64, 415, 64, 415, 65, 415, 65, 414, 66, 413, 68, 411, 68, 412, 67, 412, 68, 411, 68, 412, 68, 411, 69, 411, 68, 3, 8, 400, 79, 401, 78, 401, 79, 401, 78, 401, 79, 401, 78, 402, 77, 402, 78, 402, 77, 402, 77, 403, 77, 403, 76, 404, 75, 404, 75, 405, 74, 406, 73, 406, 73, 407, 72, 408, 71, 408, 71, 409, 70, 409, 70, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 69, 410, 68, 411, 68, 411, 68, 411, 67, 412, 67, 412, 66, 414, 65, 414, 41, 4, 20, 414, 41, 9, 4, 3, 7, 416, 39, 440, 39, 441, 37, 442, 32, 2, 2, 444, 27, 5, 3, 444, 27, 453, 23, 9, 1, 446, 22, 458, 21, 459, 21, 1, 1, 5, 1, 451, 23, 457, 26, 454, 24, 456, 22, 458, 21, 459, 19, 462, 16, 464, 15, 466, 12, 469, 10, 472, 6, 13895, 3, 52, 2, 421, 4, 51, 7, 416, 6, 49, 12, 411, 8, 47, 15, 408, 10, 45, 17, 406, 12, 43, 20, 404, 12, 42, 21, 406, 11, 40, 23, 408, 9, 38, 25, 398, 2, 11, 6, 36, 27, 352, 6, 39, 3, 10, 7, 34, 29, 350, 8, 37, 5, 9, 7, 32, 31, 346, 13, 35, 7, 9, 7, 30, 33, 344, 14, 35, 8, 8, 8, 28, 35, 342, 15, 34, 10, 7, 9, 26, 36, 342, 15, 34, 27, 24, 38, 341, 15, 34, 28, 21, 40, 341, 19, 29, 32, 17, 42, 340, 20, 28, 36, 12, 43, 340, 21, 27, 40, 7, 46, 338, 21, 26, 44, 2, 49, 338, 20, 26, 95, 340, 18, 26, 96, 339, 18, 26, 97, 338, 18, 26, 98, 329, 6, 2, 17, 27, 99, 327, 8, 2, 16, 27, 100, 325, 10, 3, 12, 29, 100, 325, 10, 44, 101, 324, 10, 44, 102, 323, 10, 44, 103, 322, 10, 44, 103, 322, 10, 44, 104, 321, 10, 44, 105, 321, 8, 10, 10, 25, 105, 320, 7, 11, 12, 24, 106, 318, 8, 10, 14, 23, 106, 317, 10, 9, 14, 24, 106, 316, 10, 9, 14, 24, 106, 315, 11, 9, 14, 24, 107, 314, 11, 9, 14, 25, 107, 313, 11, 9, 14, 25, 107, 313, 11, 8, 15, 26, 107, 312, 10, 9, 15, 2, 6, 18, 108, 311, 10, 9, 15, 1, 9, 17, 108, 310, 9, 10, 26, 16, 109, 310, 8, 10, 27, 16, 108, 312, 4, 12, 28, 15, 109, 327, 14, 1, 13, 16, 109, 327, 13, 1, 13, 17, 109, 328, 9, 3, 13, 18, 108, 340, 13, 19, 108, 339, 13, 19, 109, 339, 12, 20, 108, 341, 10, 21, 108, 340, 9, 22, 109, 340, 8, 23, 108, 342, 4, 26, 107, 372, 107, 372, 107, 373, 106, 373, 106, 374, 105, 374, 105, 375, 104, 375, 104, 376, 103, 376, 103, 377, 102, 378, 101, 356, 14, 9, 100, 352, 22, 6, 99, 354, 22, 4, 99, 355, 23, 3, 98, 352, 28, 2, 97, 344, 38, 1, 96, 343, 136, 342, 137, 341, 138, 339, 140, 338, 141, 338, 141, 337, 142, 336, 143, 335, 144, 335, 144, 334, 145, 333, 146, 333, 146, 332, 147, 332, 147, 332, 147, 331, 148, 331, 148, 331, 148, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 149, 330, 15, 2, 132, 330, 14, 4, 131, 330, 11, 23, 115, 330, 13, 19, 117, 330, 14, 17, 118, 331, 17, 12, 119, 331, 17, 7, 124, 331, 18, 3, 33, 16, 78, 332, 18, 2, 28, 20, 79, 332, 48, 15, 84, 332, 47, 12, 88, 333, 47, 1, 98, 333, 146, 333, 146, 334, 145, 334, 145, 334, 145, 334, 145, 335, 144, 335, 143, 336, 142, 337, 141, 338, 140, 339, 138, 341, 137, 342, 135, 344, 133, 346, 130, 349, 129, 350, 129, 350, 129, 350, 129, 350, 129, 350, 129, 350, 128, 351, 127, 352, 23, 3, 100, 353, 20, 6, 100, 354, 17, 8, 100, 354, 17, 8, 101, 353, 18, 7, 101, 353, 20, 4, 102, 353, 127, 352, 127, 352, 127, 301, 6, 46, 127, 299, 8, 45, 128, 297, 10, 44, 128, 297, 10, 44, 129, 296, 10, 44, 130, 295, 10, 44, 130, 295, 10, 44, 131, 294, 10, 44, 131, 294, 10, 44, 131, 294, 10, 45, 131, 285, 18, 45, 131, 284, 18, 46, 131, 283, 19, 47, 131, 282, 20, 46, 131, 282, 20, 47, 130, 282, 20, 47, 130, 282, 20, 47, 131, 281, 20, 47, 131, 281, 20, 48, 131, 280, 19, 49, 132, 278, 20, 49, 132, 278, 18, 51, 133, 277, 15, 55, 132, 277, 15, 55, 132, 277, 15, 55, 133, 276, 15, 55, 133, 276, 14, 56, 133, 275, 15, 57, 133, 273, 16, 57, 133, 272, 18, 56, 133, 272, 18, 57, 133, 271, 18, 57, 134, 270, 18, 58, 134, 269, 18, 58, 134, 269, 18, 58, 134, 269, 17, 59, 134, 270, 16, 60, 133, 272, 12, 62, 133, 346, 14, 5, 114, 346, 13, 6, 114, 347, 11, 8, 113, 347, 11, 8, 113, 269, 11, 67, 12, 8, 112, 268, 13, 67, 13, 6, 112, 267, 15, 66, 131, 267, 15, 66, 131, 267, 15, 66, 131, 267, 15, 66, 131, 267, 15, 67, 130, 267, 15, 67, 130, 267, 14, 68, 130, 268, 13, 69, 129, 270, 9, 71, 129, 269, 9, 72, 129, 268, 11, 72, 128, 268, 11, 72, 128, 268, 11, 72, 128, 268, 11, 73, 127, 268, 11, 73, 127, 268, 11, 73, 127, 268, 10, 74, 127, 269, 9, 74, 127, 271, 5, 76, 127, 353, 126, 353, 126, 353, 126, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 354, 125, 353, 126, 353, 126, 353, 126, 353, 126, 353, 126, 353, 125, 354, 123, 356, 122, 357, 122, 356, 124, 355, 124, 355, 124, 354, 126, 353, 126, 352, 127, 352, 127, 351, 129, 350, 129, 350, 129, 349, 131, 348, 131, 348, 131, 347, 132, 347, 132, 347, 132, 347, 132, 347, 132, 346, 133, 346, 133, 346, 133, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 346, 133, 346, 133, 346, 133, 347, 132, 347, 132, 348, 131, 348, 131, 349, 130, 349, 130, 349, 130, 349, 130, 348, 131, 348, 131, 348, 131, 347, 132, 347, 132, 347, 132, 346, 133, 346, 133, 346, 133, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 345, 134, 344, 135, 344, 135, 344, 135, 344, 135, 343, 136, 343, 76, 1, 59, 342, 77, 1, 59, 342, 64, 7, 5, 2, 59, 342, 59, 12, 4, 4, 58, 341, 58, 26, 54, 341, 56, 32, 17, 1, 32, 341, 55, 37, 11, 6, 29, 340, 56, 39, 7, 12, 25, 340, 56, 39, 6, 15, 23, 339, 57, 38, 5, 19, 21, 339, 57, 36, 2, 36, 9, 339, 58, 27, 3, 4, 2, 37, 9, 338, 68, 18, 9, 37, 9, 338, 71, 16, 8, 37, 9, 338, 71, 16, 8, 44, 2, 337, 72, 17, 11, 41, 1, 337, 72, 18, 13, 376, 72, 19, 13, 375, 72, 20, 14, 29, 5, 339, 71, 22, 14, 6, 7, 12, 7, 339, 72, 23, 14, 2, 16, 5, 7, 340, 72, 24, 42, 341, 71, 26, 40, 342, 71, 28, 36, 343, 71, 30, 34, 344, 71, 32, 30, 346, 70, 35, 26, 347, 71, 38, 20, 350, 70, 44, 10, 355, 70, 408, 73, 406, 74, 404, 76, 403, 77, 402, 79, 399, 81, 398, 81, 398, 82, 375, 14, 7, 84, 373, 16, 6, 85, 371, 18, 5, 85, 371, 18, 5, 86, 370, 18, 4, 88, 369, 18, 4, 88, 369, 18, 4, 89, 369, 16, 5, 89, 370, 14, 6, 89, 389, 91, 388, 91, 388, 91, 387, 93, 386, 93, 386, 93, 386, 93, 385, 94, 385, 94, 385, 94, 385, 94, 384, 95, 384, 95, 384, 95, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 382, 97, 382, 97, 382, 97, 382, 97, 382, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 383, 96, 384, 95, 384, 95, 384, 95, 384, 95, 385, 94, 385, 94, 385, 94, 386, 93, 386, 92, 388, 91, 388, 91, 389, 90, 389, 90, 390, 89, 390, 89, 391, 87, 393, 86, 394, 85, 395, 83, 397, 82, 398, 80, 400, 79, 401, 77, 403, 76, 404, 74, 407, 72, 66], "size": [479, 640]}, "area": 70629, "iscrowd": 1, "image_id": 307462, "bbox": [1, 267, 638, 211], "category_id": 1, "id": 900100307462}, {"segmentation": {"counts": [8790, 17, 409, 19, 407, 21, 29, 7, 369, 23, 27, 9, 368, 23, 18, 19, 5, 8, 354, 23, 17, 21, 2, 11, 353, 23, 16, 22, 1, 13, 352, 23, 12, 41, 351, 25, 9, 42, 351, 26, 7, 43, 352, 26, 5, 44, 353, 26, 4, 44, 355, 24, 4, 44, 357, 22, 4, 44, 357, 22, 4, 43, 358, 22, 4, 42, 359, 22, 4, 39, 362, 22, 5, 34, 367, 20, 7, 31, 370, 18, 10, 4, 3, 3, 2, 14, 375, 7, 2, 4, 24805, 6, 415, 15, 411, 17, 404, 23, 403, 24, 402, 25, 401, 26, 401, 27, 400, 28, 399, 29, 398, 30, 397, 30, 397, 30, 398, 29, 399, 28, 400, 27, 402, 25, 404, 22, 409, 18, 414, 12, 416, 10, 419, 5, 3398, 33, 393, 35, 391, 37, 389, 39, 388, 39, 388, 39, 388, 39, 388, 39, 388, 39, 388, 39, 389, 38, 390, 38, 391, 4, 2, 30, 397, 30, 397, 39, 388, 42, 385, 43, 385, 51, 377, 51, 378, 3, 7, 40, 387, 41, 382, 45, 381, 46, 381, 46, 380, 47, 379, 48, 378, 49, 377, 17, 23, 9, 378, 16, 25, 7, 379, 15, 26, 4, 382, 15, 412, 14, 413, 13, 414, 13, 415, 10, 418, 8, 421, 3, 20058, 2, 423, 5, 53, 3, 366, 6, 47, 8, 366, 7, 40, 14, 366, 8, 7, 6, 18, 22, 366, 61, 366, 61, 367, 56, 2, 1, 369, 52, 375, 49, 379, 45, 383, 38, 391, 34, 393, 34, 393, 34, 393, 34, 394, 33, 395, 32, 397, 8, 1, 21, 407, 8, 1, 10, 410, 3, 5, 8, 421, 2, 1680, 20, 406, 22, 404, 24, 402, 25, 402, 25, 402, 25, 402, 25, 402, 26, 401, 26, 401, 26, 402, 24, 404, 22, 407, 4, 3, 13, 415, 12, 415, 12, 415, 12, 416, 10, 418, 8, 421, 3, 5549, 1, 425, 4, 5, 3, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 416, 10, 418, 8, 421, 4, 16638, 11, 415, 13, 413, 20, 406, 28, 399, 34, 393, 40, 387, 40, 387, 40, 387, 41, 386, 45, 383, 46, 1, 6, 375, 53, 376, 52, 378, 50, 378, 9, 2, 38, 379, 3, 11, 34, 396, 26, 402, 19, 410, 14, 415, 9, 420, 4, 3843, 4, 13, 1, 405, 23, 400, 27, 398, 29, 396, 31, 395, 32, 393, 34, 391, 36, 390, 37, 388, 38, 387, 39, 386, 41, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 385, 42, 386, 41, 388, 39, 389, 38, 389, 37, 391, 35, 393, 34, 395, 32, 396, 31, 395, 32, 394, 32, 395, 31, 396, 29, 398, 29, 1, 8, 389, 39, 388, 40, 376, 52, 374, 53, 373, 54, 372, 55, 372, 55, 372, 55, 372, 55, 372, 54, 373, 53, 374, 50, 378, 49, 379, 48, 381, 4, 1, 4, 1, 36, 392, 35, 393, 33, 396, 5, 1, 24, 405, 19, 411, 8, 1, 3, 104682], "size": [427, 640]}, "area": 7439, "iscrowd": 1, "image_id": 111831, "bbox": [20, 247, 374, 126], "category_id": 1, "id": 900100111831}, {"segmentation": {"counts": [82454, 7, 420, 9, 418, 11, 4, 7, 406, 12, 2, 17, 397, 32, 396, 5, 6, 22, 395, 5, 11, 17, 395, 4, 16, 13, 395, 4, 21, 9, 394, 3, 25, 6, 394, 3, 26, 4, 391, 6, 27, 4, 390, 7, 28, 3, 389, 8, 28, 2, 390, 7, 29, 2, 390, 7, 30, 1, 390, 6, 422, 6, 30, 1, 391, 5, 31, 1, 391, 5, 424, 3, 425, 3, 32, 1, 393, 1, 32, 1, 394, 1, 32, 1, 427, 2, 393, 2, 31, 2, 394, 4, 28, 2, 394, 6, 26, 2, 396, 6, 23, 4, 397, 7, 20, 3, 400, 7, 18, 3, 406, 4, 15, 4, 407, 4, 13, 4, 410, 2, 11, 4, 413, 1, 10, 4, 424, 4, 418, 1, 5, 3, 422, 2, 1, 1, 77888, 6, 421, 8, 419, 10, 418, 10, 418, 10, 418, 11, 417, 11, 417, 10, 418, 11, 417, 11, 417, 11, 417, 10, 418, 11, 417, 11, 417, 11, 417, 11, 417, 11, 417, 11, 417, 10, 417, 12, 416, 12, 403, 6, 7, 11, 403, 8, 5, 12, 402, 10, 4, 12, 402, 10, 4, 12, 402, 10, 4, 12, 402, 11, 3, 11, 402, 12, 3, 11, 402, 12, 3, 11, 402, 12, 3, 11, 401, 12, 4, 11, 401, 12, 4, 10, 402, 12, 4, 10, 402, 11, 5, 10, 401, 12, 5, 11, 399, 13, 5, 11, 399, 13, 5, 11, 399, 12, 6, 11, 399, 12, 6, 11, 399, 12, 6, 11, 399, 11, 7, 11, 399, 11, 7, 10, 400, 12, 5, 11, 400, 12, 4, 13, 399, 12, 4, 12, 400, 13, 2, 13, 400, 13, 2, 13, 400, 13, 2, 12, 402, 12, 2, 12, 402, 12, 1, 12, 402, 12, 2, 12, 402, 12, 2, 12, 402, 12, 2, 11, 403, 11, 3, 11, 403, 11, 3, 10, 404, 11, 2, 12, 402, 12, 2, 12, 402, 12, 2, 12, 402, 11, 3, 12, 402, 12, 2, 11, 403, 11, 3, 11, 403, 11, 2, 12, 402, 12, 1, 13, 402, 12, 1, 12, 403, 12, 1, 12, 403, 25, 403, 24, 404, 24, 404, 24, 404, 23, 405, 23, 405, 22, 406, 21, 407, 21, 407, 21, 408, 21, 407, 21, 407, 21, 407, 21, 407, 22, 407, 20, 408, 20, 409, 20, 408, 20, 407, 21, 407, 22, 405, 24, 404, 24, 403, 25, 402, 14, 1, 12, 400, 14, 2, 12, 400, 13, 4, 10, 401, 13, 4, 11, 400, 12, 5, 10, 401, 11, 6, 11, 400, 11, 6, 11, 400, 11, 6, 10, 401, 12, 5, 11, 400, 12, 5, 13, 398, 12, 5, 14, 396, 14, 4, 15, 395, 13, 4, 17, 394, 14, 2, 21, 391, 14, 2, 23, 389, 13, 3, 24, 388, 13, 3, 25, 388, 12, 3, 25, 388, 11, 4, 25, 390, 7, 6, 26, 403, 25, 403, 24, 405, 23, 405, 24, 404, 23, 405, 24, 404, 24, 404, 24, 404, 23, 405, 24, 405, 23, 405, 23, 406, 21, 407, 22, 407, 21, 407, 21, 407, 21, 408, 19, 409, 19, 411, 17, 411, 16, 412, 15, 413, 16, 412, 16, 412, 16, 412, 17, 411, 16, 412, 17, 411, 16, 412, 16, 413, 16, 412, 15, 413, 16, 412, 17, 411, 18, 410, 19, 409, 19, 409, 19, 409, 20, 408, 20, 408, 20, 409, 20, 408, 19, 411, 17, 411, 17, 413, 14, 414, 14, 415, 13, 415, 13, 416, 12, 416, 13, 417, 11, 417, 10, 418, 11, 417, 11, 417, 12, 416, 13, 415, 13, 415, 13, 416, 13, 415, 13, 416, 12, 417, 12, 416, 12, 416, 12, 416, 13, 416, 12, 416, 12, 417, 12, 416, 12, 364, 6, 46, 13, 362, 8, 46, 13, 360, 10, 45, 13, 360, 10, 45, 13, 360, 10, 45, 14, 359, 11, 44, 14, 358, 12, 44, 14, 358, 11, 45, 13, 359, 12, 44, 13, 359, 11, 45, 13, 359, 11, 46, 11, 359, 12, 46, 9, 361, 11, 49, 5, 363, 12, 416, 11, 417, 11, 417, 11, 417, 10, 418, 10, 418, 10, 418, 11, 417, 10, 7, 6, 405, 10, 6, 8, 404, 11, 4, 10, 403, 11, 4, 10, 403, 11, 4, 10, 403, 11, 4, 11, 402, 11, 4, 11, 402, 11, 4, 10, 403, 11, 4, 10, 403, 11, 4, 11, 402, 10, 5, 10, 403, 10, 5, 10, 404, 9, 5, 11, 403, 8, 5, 12, 405, 4, 7, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 12, 416, 13, 415, 12, 417, 12, 416, 12, 417, 10, 418, 10, 419, 9, 419, 8, 422, 4, 153], "size": [428, 640]}, "area": 5448, "iscrowd": 1, "image_id": 274881, "bbox": [192, 252, 447, 70], "category_id": 38, "id": 903800274881}, {"segmentation": {"counts": [33839, 2, 418, 8, 416, 10, 414, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 414, 10, 416, 9, 418, 8, 416, 10, 414, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 414, 10, 416, 8, 419, 4, 2976, 1, 423, 10, 414, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 414, 10, 416, 8, 419, 4, 5525, 6, 418, 8, 416, 10, 414, 12, 413, 12, 413, 12, 413, 12, 413, 13, 412, 13, 412, 13, 412, 13, 413, 12, 413, 12, 413, 12, 414, 10, 416, 8, 419, 4, 16988, 6, 418, 8, 416, 10, 414, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 414, 10, 416, 8, 419, 4, 17013, 11, 413, 13, 411, 15, 409, 17, 408, 17, 408, 17, 408, 17, 408, 17, 408, 17, 408, 17, 409, 15, 411, 13, 414, 9, 27181, 15, 409, 17, 407, 19, 405, 21, 404, 21, 404, 21, 404, 21, 404, 21, 404, 28, 397, 29, 397, 29, 397, 32, 395, 31, 399, 27, 397, 29, 395, 30, 394, 31, 394, 31, 394, 31, 394, 32, 393, 33, 392, 34, 391, 34, 392, 37, 389, 37, 389, 37, 387, 39, 385, 40, 384, 41, 383, 42, 383, 43, 382, 45, 380, 46, 379, 47, 378, 48, 377, 48, 378, 48, 378, 48, 379, 46, 380, 45, 380, 45, 380, 46, 379, 46, 379, 46, 379, 46, 379, 46, 379, 46, 373, 52, 372, 53, 371, 54, 370, 55, 370, 55, 370, 55, 370, 55, 370, 55, 370, 55, 370, 55, 371, 54, 372, 53, 374, 51, 375, 50, 375, 50, 376, 49, 377, 48, 379, 45, 381, 44, 380, 45, 380, 45, 379, 46, 379, 46, 379, 46, 379, 45, 380, 45, 380, 45, 380, 45, 379, 46, 377, 47, 377, 47, 377, 49, 375, 50, 374, 51, 374, 51, 373, 52, 373, 52, 373, 52, 373, 40, 1, 10, 374, 39, 3, 8, 375, 29, 3, 5, 7, 4, 377, 12, 2, 14, 397, 12, 5, 9, 399, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 12, 413, 14, 411, 18, 407, 20, 405, 40, 385, 42, 383, 45, 381, 45, 380, 46, 379, 47, 378, 47, 379, 46, 380, 45, 382, 43, 382, 43, 382, 43, 382, 43, 382, 43, 381, 44, 380, 45, 379, 46, 379, 46, 379, 46, 379, 46, 379, 46, 379, 46, 379, 46, 380, 45, 381, 8, 3, 33, 381, 6, 6, 32, 380, 8, 6, 31, 379, 10, 5, 31, 378, 12, 4, 31, 378, 13, 3, 31, 378, 14, 2, 31, 378, 14, 2, 31, 378, 14, 2, 31, 378, 14, 2, 31, 377, 15, 3, 30, 376, 16, 4, 29, 375, 17, 6, 26, 376, 16, 11, 22, 376, 15, 11, 23, 376, 15, 11, 23, 376, 15, 8, 26, 375, 15, 8, 27, 375, 14, 8, 28, 375, 13, 8, 29, 375, 13, 8, 29, 375, 13, 8, 28, 376, 13, 6, 30, 376, 13, 5, 31, 375, 15, 3, 32, 375, 16, 1, 32, 376, 49, 376, 49, 376, 49, 376, 49, 375, 50, 375, 50, 375, 50, 375, 50, 375, 50, 375, 14, 2, 34, 374, 13, 4, 34, 373, 14, 4, 34, 372, 15, 4, 34, 372, 15, 4, 34, 371, 16, 4, 34, 370, 17, 4, 34, 369, 18, 4, 34, 368, 19, 4, 33, 369, 19, 4, 33, 369, 19, 5, 32, 368, 20, 5, 31, 369, 19, 5, 32, 369, 19, 4, 33, 369, 19, 4, 33, 369, 19, 4, 32, 370, 19, 4, 32, 370, 19, 4, 32, 371, 18, 4, 32, 372, 17, 4, 32, 374, 15, 5, 31, 375, 14, 6, 30, 374, 15, 8, 28, 373, 16, 13, 23, 373, 16, 14, 21, 373, 17, 15, 20, 371, 19, 17, 17, 371, 19, 19, 16, 370, 19, 20, 15, 370, 18, 6, 30, 371, 18, 5, 31, 370, 18, 5, 31, 370, 18, 5, 31, 370, 19, 5, 31, 370, 18, 6, 31, 370, 18, 5, 32, 370, 17, 5, 32, 371, 16, 5, 33, 371, 14, 6, 34, 371, 12, 8, 34, 371, 11, 9, 33, 381, 1, 10, 33, 392, 33, 392, 32, 393, 32, 394, 31, 395, 30, 368, 9, 20, 27, 368, 13, 20, 23, 368, 15, 19, 23, 367, 17, 8, 32, 368, 18, 4, 35, 368, 18, 3, 36, 368, 18, 2, 36, 369, 18, 1, 37, 369, 18, 1, 37, 369, 18, 1, 36, 371, 54, 372, 52, 375, 50, 377, 47, 378, 47, 378, 47, 376, 49, 376, 49, 373, 37, 1, 14, 371, 39, 2, 13, 353, 7, 11, 15, 1, 23, 2, 13, 352, 10, 9, 13, 3, 23, 2, 12, 352, 15, 5, 13, 3, 37, 351, 19, 3, 12, 3, 37, 351, 34, 3, 37, 351, 34, 3, 37, 351, 34, 3, 37, 351, 33, 4, 37, 351, 33, 4, 36, 352, 32, 5, 35, 354, 1, 7, 23, 5, 35, 362, 22, 5, 36, 362, 21, 6, 36, 363, 19, 7, 36, 356, 2, 5, 18, 7, 37, 356, 4, 2, 18, 8, 36, 357, 24, 8, 36, 356, 24, 9, 36, 356, 24, 9, 36, 356, 24, 9, 35, 357, 24, 9, 34, 358, 24, 9, 34, 358, 24, 9, 33, 358, 24, 11, 32, 357, 24, 13, 31, 357, 23, 16, 28, 358, 22, 19, 26, 358, 22, 21, 24, 358, 21, 22, 24, 358, 21, 18, 27, 350, 7, 1, 22, 16, 28, 350, 31, 14, 30, 349, 32, 13, 31, 348, 33, 12, 31, 349, 33, 11, 32, 349, 33, 11, 32, 349, 33, 11, 32, 348, 34, 7, 36, 347, 35, 6, 36, 347, 36, 5, 36, 347, 37, 4, 36, 348, 37, 3, 36, 349, 37, 2, 37, 349, 37, 1, 38, 349, 76, 349, 76, 349, 36, 1, 39, 350, 34, 2, 39, 351, 32, 3, 39, 353, 29, 4, 38, 358, 25, 4, 37, 359, 24, 5, 37, 359, 24, 5, 36, 360, 24, 4, 36, 361, 23, 4, 37, 361, 22, 4, 38, 362, 20, 5, 38, 363, 18, 3, 40, 366, 16, 2, 40, 367, 15, 2, 40, 368, 14, 2, 41, 368, 13, 3, 41, 368, 12, 4, 40, 370, 10, 5, 39, 372, 8, 6, 38, 375, 4, 8, 36, 389, 35, 391, 33, 393, 31, 396, 28, 406, 19, 408, 16, 411, 13, 157], "size": [425, 640]}, "area": 15112, "iscrowd": 1, "image_id": 539099, "bbox": [79, 210, 560, 119], "category_id": 1, "id": 900100539099}, {"segmentation": {"counts": [10299, 9, 415, 15, 411, 17, 410, 18, 385, 8, 15, 20, 380, 13, 13, 22, 376, 17, 7, 28, 374, 19, 6, 28, 369, 25, 5, 29, 365, 30, 3, 29, 364, 33, 1, 29, 363, 64, 362, 65, 361, 66, 360, 67, 360, 67, 359, 68, 359, 68, 359, 68, 359, 68, 359, 67, 360, 66, 361, 66, 361, 65, 362, 64, 363, 62, 365, 62, 366, 62, 366, 61, 366, 63, 365, 63, 365, 62, 366, 61, 368, 12, 1, 46, 371, 6, 4, 46, 381, 46, 382, 45, 383, 43, 384, 43, 385, 43, 384, 43, 384, 21, 5, 17, 384, 20, 9, 14, 384, 20, 11, 10, 386, 19, 15, 6, 386, 19, 18, 3, 382, 15, 7, 2, 19, 3, 378, 18, 28, 3, 377, 18, 29, 3, 376, 19, 28, 5, 374, 20, 28, 5, 373, 21, 28, 6, 371, 23, 27, 6, 371, 24, 26, 7, 369, 26, 24, 8, 369, 30, 20, 10, 367, 31, 19, 12, 365, 31, 19, 14, 363, 31, 18, 16, 8, 1, 353, 31, 18, 18, 6, 2, 352, 32, 17, 22, 2, 2, 352, 34, 15, 27, 351, 34, 15, 27, 351, 33, 15, 28, 351, 32, 16, 28, 351, 32, 16, 28, 352, 16, 3, 11, 17, 28, 353, 13, 6, 9, 19, 27, 353, 7, 3, 2, 9, 6, 21, 26, 354, 5, 5, 2, 7, 3, 26, 25, 365, 2, 36, 24, 366, 2, 36, 23, 367, 3, 35, 21, 407, 19, 409, 18, 409, 17, 411, 15, 412, 14, 414, 11, 421, 3, 1216, 7, 417, 12, 414, 13, 413, 17, 409, 20, 10, 8, 388, 22, 8, 10, 3, 6, 377, 24, 1, 27, 375, 53, 373, 56, 371, 57, 370, 58, 369, 58, 369, 59, 368, 61, 366, 62, 365, 62, 365, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 364, 63, 365, 61, 365, 61, 366, 61, 366, 60, 367, 59, 368, 59, 368, 60, 367, 60, 367, 60, 367, 60, 367, 60, 367, 60, 367, 60, 368, 59, 369, 58, 369, 58, 370, 57, 371, 55, 373, 53, 376, 51, 379, 47, 381, 45, 382, 44, 382, 43, 384, 36, 391, 34, 392, 34, 393, 33, 394, 28, 399, 27, 400, 26, 401, 24, 402, 25, 402, 25, 402, 25, 402, 27, 400, 27, 400, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 402, 24, 404, 22, 405, 22, 406, 19, 409, 18, 410, 16, 413, 12, 418, 6, 3396, 8, 416, 14, 412, 16, 410, 18, 409, 19, 408, 25, 402, 28, 399, 29, 398, 30, 397, 31, 396, 32, 395, 33, 394, 34, 393, 34, 393, 35, 392, 36, 391, 37, 390, 38, 389, 38, 389, 39, 388, 39, 388, 39, 388, 39, 388, 39, 388, 39, 388, 39, 388, 39, 388, 40, 387, 41, 386, 42, 385, 42, 385, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 43, 384, 42, 385, 41, 386, 41, 386, 40, 387, 40, 387, 41, 386, 42, 385, 42, 385, 43, 385, 42, 386, 41, 388, 39, 390, 37, 390, 37, 390, 37, 390, 37, 390, 37, 390, 37, 391, 36, 391, 36, 390, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 35, 392, 34, 393, 34, 393, 33, 394, 32, 395, 31, 396, 29, 398, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 402, 24, 404, 22, 405, 22, 406, 20, 408, 18, 410, 16, 413, 12, 418, 6, 12790, 8, 417, 13, 414, 14, 413, 15, 412, 16, 411, 17, 410, 18, 409, 18, 409, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 19, 408, 20, 407, 20, 407, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 21, 406, 20, 407, 19, 408, 19, 408, 18, 409, 17, 410, 16, 413, 12, 418, 6, 109301], "size": [427, 640]}, "area": 12275, "iscrowd": 1, "image_id": 375659, "bbox": [24, 0, 360, 84], "category_id": 1, "id": 900100375659}, {"segmentation": {"counts": [129093, 6, 427, 8, 425, 10, 423, 12, 422, 13, 421, 19, 415, 22, 412, 23, 411, 24, 410, 25, 409, 26, 409, 29, 405, 30, 404, 31, 403, 32, 402, 32, 402, 32, 402, 32, 402, 32, 403, 31, 403, 31, 403, 31, 403, 31, 403, 31, 403, 31, 403, 31, 403, 31, 404, 30, 405, 29, 405, 29, 405, 29, 405, 29, 405, 24, 410, 22, 412, 22, 412, 21, 413, 21, 413, 20, 414, 20, 415, 19, 416, 18, 416, 18, 417, 17, 418, 15, 420, 14, 422, 12, 425, 6, 70659, 6, 427, 8, 425, 10, 423, 12, 422, 12, 422, 13, 421, 13, 421, 13, 421, 13, 421, 14, 420, 15, 419, 16, 418, 16, 419, 15, 419, 16, 418, 16, 418, 17, 417, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 18, 416, 17, 417, 16, 418, 14, 420, 12, 422, 12, 422, 12, 423, 10, 425, 8, 428, 4, 41529], "size": [434, 640]}, "area": 1721, "iscrowd": 1, "image_id": 543882, "bbox": [297, 126, 247, 98], "category_id": 51, "id": 905100543882}, {"segmentation": {"counts": [203755, 11, 467, 18, 437, 6, 17, 21, 434, 9, 16, 21, 432, 12, 14, 22, 430, 15, 13, 22, 429, 17, 11, 23, 427, 20, 10, 23, 427, 23, 7, 23, 418, 6, 2, 25, 7, 21, 417, 9, 1, 52, 418, 60, 419, 56, 424, 53, 9, 6, 411, 55, 6, 9, 410, 59, 2, 10, 409, 72, 408, 72, 409, 71, 409, 71, 410, 70, 411, 29, 2, 38, 413, 4, 3, 19, 5, 4, 1, 31, 421, 17, 13, 28, 424, 14, 16, 25, 426, 12, 21, 12, 3, 4, 429, 10, 25, 8, 439, 6, 29, 4, 90476], "size": [480, 640]}, "area": 1338, "iscrowd": 1, "image_id": 409374, "bbox": [424, 186, 27, 71], "category_id": 1, "id": 900100409374}, {"segmentation": {"counts": [37068, 8, 471, 12, 468, 13, 467, 14, 466, 14, 466, 14, 467, 13, 467, 13, 468, 12, 471, 8, 54284, 8, 468, 13, 466, 14, 466, 14, 466, 14, 466, 14, 466, 14, 467, 13, 467, 13, 467, 12, 468, 9, 471, 9, 471, 9, 472, 8, 473, 7, 474, 5, 57466, 11, 468, 15, 464, 17, 463, 17, 463, 18, 462, 17, 463, 17, 464, 4, 8, 2, 13454, 4, 9, 4, 462, 19, 461, 19, 461, 19, 461, 19, 461, 19, 461, 18, 463, 17, 467, 13, 468, 12, 471, 8, 37003, 12, 467, 15, 465, 16, 464, 16, 464, 16, 464, 16, 465, 15, 465, 14, 465, 15, 465, 15, 465, 15, 465, 15, 465, 15, 466, 13, 81947], "size": [480, 640]}, "area": 794, "iscrowd": 1, "image_id": 311522, "bbox": [77, 32, 392, 140], "category_id": 1, "id": 900100311522}, {"segmentation": {"counts": [60890, 11, 412, 13, 410, 15, 408, 17, 407, 17, 407, 17, 407, 17, 407, 17, 407, 17, 407, 17, 408, 15, 410, 13, 413, 9, 24160, 9, 414, 11, 413, 12, 7, 6, 399, 26, 397, 27, 396, 28, 395, 29, 395, 29, 395, 27, 398, 26, 399, 25, 399, 25, 399, 25, 399, 25, 399, 25, 399, 25, 399, 25, 399, 24, 401, 22, 316, 4, 83, 20, 316, 6, 84, 17, 315, 8, 92, 8, 315, 10, 93, 4, 316, 12, 412, 12, 412, 12, 412, 12, 413, 11, 414, 9, 416, 6, 6771, 2, 422, 4, 410, 6, 3, 5, 410, 15, 409, 15, 409, 15, 409, 16, 409, 14, 411, 13, 414, 9, 416, 7, 20344, 4, 419, 7, 416, 8, 416, 8, 416, 9, 415, 8, 416, 8, 417, 6, 419, 4, 134245], "size": [424, 640]}, "area": 1024, "iscrowd": 1, "image_id": 377226, "bbox": [143, 154, 180, 130], "category_id": 1, "id": 900100377226}, {"segmentation": {"counts": [96253, 10, 450, 12, 448, 13, 447, 18, 443, 20, 441, 21, 439, 23, 437, 25, 435, 27, 434, 27, 434, 27, 434, 28, 433, 28, 433, 28, 433, 27, 434, 27, 434, 27, 434, 28, 433, 28, 433, 28, 433, 28, 433, 27, 434, 27, 434, 27, 434, 26, 435, 25, 436, 25, 437, 25, 437, 25, 437, 26, 435, 27, 430, 32, 428, 34, 426, 35, 425, 36, 425, 37, 423, 38, 422, 39, 421, 40, 421, 40, 420, 41, 420, 41, 420, 40, 421, 41, 420, 40, 421, 40, 421, 40, 421, 40, 421, 40, 421, 39, 423, 38, 424, 37, 426, 34, 429, 31, 440, 20, 443, 16, 447, 13, 452, 7, 25183, 6, 454, 8, 452, 10, 450, 12, 449, 12, 449, 12, 449, 13, 448, 14, 447, 14, 447, 14, 445, 16, 444, 17, 443, 18, 421, 7, 14, 19, 420, 9, 13, 19, 419, 11, 12, 18, 419, 13, 11, 17, 420, 13, 11, 15, 422, 13, 11, 15, 422, 13, 11, 15, 422, 14, 11, 13, 423, 14, 12, 11, 424, 14, 14, 7, 422, 20, 440, 21, 439, 23, 437, 24, 437, 23, 438, 23, 438, 23, 438, 22, 439, 21, 440, 14, 1, 4, 442, 14, 448, 14, 448, 13, 441, 6, 1, 13, 440, 22, 438, 22, 438, 23, 437, 24, 437, 23, 438, 22, 439, 22, 439, 22, 439, 21, 440, 20, 441, 12, 2, 4, 442, 14, 446, 15, 445, 16, 444, 18, 443, 17, 444, 18, 443, 18, 443, 17, 444, 17, 444, 17, 445, 15, 447, 13, 450, 4, 1, 4, 11184, 9, 451, 12, 426, 6, 1, 6, 9, 14, 424, 15, 7, 16, 422, 40, 420, 41, 420, 42, 419, 43, 418, 44, 417, 45, 415, 46, 415, 46, 415, 47, 414, 47, 314, 6, 12, 7, 75, 46, 314, 8, 10, 9, 74, 46, 313, 10, 8, 11, 73, 46, 312, 12, 6, 13, 72, 45, 313, 12, 6, 14, 15, 12, 14, 6, 24, 44, 314, 12, 6, 15, 13, 14, 12, 8, 23, 42, 316, 12, 6, 15, 12, 16, 10, 15, 17, 42, 316, 12, 6, 15, 11, 18, 8, 17, 16, 41, 317, 12, 6, 16, 9, 19, 8, 17, 16, 40, 318, 12, 6, 15, 1, 6, 2, 20, 8, 17, 16, 38, 321, 9, 7, 24, 1, 20, 8, 17, 16, 35, 325, 6, 10, 44, 8, 19, 14, 34, 328, 4, 14, 40, 8, 19, 15, 17, 1, 13, 347, 41, 8, 19, 16, 15, 3, 10, 10, 6, 329, 12, 2, 32, 7, 19, 17, 13, 5, 8, 10, 13, 314, 1, 8, 9, 5, 33, 6, 19, 19, 9, 9, 4, 8, 18, 312, 2, 8, 9, 7, 32, 5, 19, 48, 20, 311, 5, 4, 10, 8, 31, 5, 19, 47, 22, 310, 19, 8, 16, 2, 13, 5, 19, 46, 23, 310, 19, 8, 15, 3, 14, 6, 16, 47, 22, 311, 19, 8, 15, 3, 14, 6, 15, 48, 21, 312, 19, 8, 15, 3, 13, 8, 14, 48, 21, 312, 19, 8, 14, 4, 13, 8, 14, 48, 20, 313, 19, 8, 14, 4, 13, 11, 10, 49, 20, 314, 17, 7, 16, 4, 12, 17, 4, 50, 20, 315, 15, 9, 14, 6, 10, 18, 2, 52, 20, 317, 4, 3, 4, 13, 11, 8, 8, 73, 20, 346, 4, 12, 4, 75, 20, 441, 20, 441, 19, 442, 19, 442, 19, 442, 19, 442, 19, 442, 19, 442, 19, 442, 19, 442, 19, 442, 19, 443, 18, 443, 17, 445, 15, 446, 14, 448, 12, 450, 9, 454, 5, 81291], "size": [461, 640]}, "area": 6099, "iscrowd": 1, "image_id": 480818, "bbox": [208, 158, 255, 233], "category_id": 47, "id": 904700480818}, {"segmentation": {"counts": [16042, 8, 229, 14, 225, 16, 222, 20, 219, 22, 217, 24, 216, 24, 215, 26, 214, 26, 213, 28, 212, 28, 212, 28, 212, 28, 212, 28, 212, 28, 212, 28, 212, 30, 210, 33, 207, 34, 206, 36, 205, 36, 204, 37, 204, 36, 203, 38, 201, 39, 199, 42, 197, 43, 196, 44, 196, 39, 200, 40, 200, 45, 194, 46, 194, 46, 194, 46, 194, 46, 194, 46, 194, 45, 195, 45, 195, 44, 196, 43, 197, 42, 198, 41, 200, 16, 8, 15, 201, 16, 12, 9, 204, 15, 12, 6, 208, 14, 227, 14, 227, 17, 224, 16, 226, 12, 231, 6, 238, 8, 229, 14, 225, 16, 222, 20, 219, 22, 217, 24, 216, 24, 215, 26, 161, 6, 47, 26, 159, 10, 44, 28, 157, 12, 43, 28, 156, 14, 42, 28, 155, 16, 41, 28, 155, 17, 40, 28, 155, 17, 40, 28, 155, 17, 40, 28, 155, 17, 40, 28, 155, 17, 40, 28, 155, 18, 39, 26, 157, 19, 38, 24, 160, 18, 38, 23, 161, 20, 37, 22, 162, 20, 36, 22, 163, 21, 35, 21, 163, 23, 34, 20, 163, 25, 33, 20, 162, 26, 33, 18, 164, 26, 33, 16, 165, 27, 34, 12, 168, 26, 37, 13, 165, 25, 39, 14, 164, 23, 38, 16, 164, 22, 35, 21, 162, 22, 32, 25, 162, 21, 31, 27, 162, 20, 29, 29, 165, 16, 29, 31, 165, 15, 28, 32, 166, 13, 29, 33, 167, 10, 29, 34, 170, 4, 32, 34, 205, 35, 205, 35, 205, 35, 205, 35, 205, 35, 205, 35, 205, 35, 205, 35, 205, 35, 205, 36, 204, 37, 204, 37, 203, 37, 204, 36, 205, 35, 205, 35, 204, 36, 203, 37, 203, 37, 202, 38, 202, 38, 201, 39, 201, 38, 202, 38, 202, 37, 203, 36, 204, 35, 205, 34, 206, 33, 207, 35, 205, 34, 206, 34, 207, 10, 4, 19, 207, 5, 9, 21, 206, 4, 9, 23, 205, 4, 8, 24, 205, 3, 5, 27, 206, 34, 207, 33, 209, 31, 212, 28, 212, 28, 212, 28, 212, 28, 212, 28, 212, 28, 213, 26, 214, 26, 215, 24, 217, 22, 219, 20, 221, 18, 223, 16, 226, 12, 231, 6, 25703], "size": [240, 320]}, "area": 5011, "iscrowd": 1, "image_id": 476575, "bbox": [66, 134, 146, 97], "category_id": 1, "id": 900100476575}, {"segmentation": {"counts": [202732, 4, 415, 6, 413, 7, 413, 7, 413, 7, 7, 4, 402, 7, 6, 10, 396, 8, 5, 12, 392, 28, 391, 29, 390, 30, 390, 30, 391, 29, 391, 29, 392, 3, 1, 24, 398, 22, 401, 19, 401, 8, 1, 3, 1, 6, 402, 3, 10, 3, 21396, 4, 2, 4, 1, 4, 404, 17, 1, 4, 397, 24, 396, 24, 397, 24, 396, 24, 395, 25, 394, 26, 394, 26, 395, 12, 1, 3, 2, 5, 397, 11, 410, 3, 1, 6, 414, 6, 415, 3, 32045], "size": [420, 640]}, "area": 593, "iscrowd": 1, "image_id": 575792, "bbox": [482, 284, 81, 29], "category_id": 1, "id": 900100575792}, {"segmentation": {"counts": [21404, 6, 233, 8, 231, 10, 229, 12, 228, 12, 228, 12, 228, 12, 228, 12, 228, 12, 228, 12, 229, 10, 231, 8, 234, 4, 2745, 6, 233, 8, 231, 12, 227, 14, 226, 15, 225, 16, 224, 7, 3, 6, 224, 4, 6, 6, 224, 3, 4, 9, 224, 4, 3, 9, 225, 4, 3, 8, 226, 3, 4, 7, 226, 4, 3, 7, 226, 6, 1, 7, 226, 14, 226, 14, 226, 14, 227, 12, 213, 7, 9, 10, 213, 9, 10, 6, 214, 11, 228, 13, 227, 3, 3, 7, 227, 4, 6, 4, 226, 5, 4, 6, 225, 5, 5, 6, 224, 6, 5, 6, 223, 8, 4, 6, 223, 9, 4, 4, 224, 9, 4, 3, 225, 10, 3, 2, 225, 11, 3, 1, 226, 14, 227, 13, 228, 11, 230, 9, 233, 5, 30447, 6, 233, 8, 231, 10, 229, 12, 228, 12, 228, 12, 228, 12, 228, 12, 228, 12, 228, 12, 229, 10, 231, 8, 234, 4, 1941, 6, 233, 8, 231, 10, 229, 12, 228, 12, 228, 12, 228, 12, 228, 12, 228, 12, 228, 12, 229, 10, 231, 8, 234, 4, 2972], "size": [240, 320]}, "area": 900, "iscrowd": 1, "image_id": 476575, "bbox": [89, 41, 218, 125], "category_id": 38, "id": 903800476575}, {"segmentation": {"counts": [127354, 6, 1, 5, 467, 14, 465, 16, 463, 17, 463, 17, 463, 17, 463, 17, 463, 17, 463, 17, 463, 17, 463, 16, 464, 16, 464, 17, 463, 17, 463, 17, 464, 16, 465, 15, 466, 14, 468, 12, 469, 10, 471, 8, 473, 8, 471, 10, 469, 11, 469, 11, 469, 11, 469, 11, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 475, 4, 475, 6, 473, 8, 470, 10, 469, 11, 468, 12, 467, 13, 467, 13, 467, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 11, 470, 11, 471, 10, 469, 12, 465, 15, 464, 16, 463, 17, 462, 18, 462, 18, 462, 18, 462, 18, 462, 17, 463, 16, 464, 14, 467, 10, 471, 8, 474, 4, 9123, 7, 472, 9, 470, 11, 468, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 467, 13, 468, 11, 470, 9, 473, 5, 8157, 1, 478, 2, 5, 1, 471, 3, 5, 2, 469, 5, 5, 2, 468, 5, 5, 2, 468, 6, 1, 5, 468, 12, 468, 12, 468, 12, 468, 12, 469, 11, 470, 11, 470, 11, 468, 13, 466, 14, 466, 14, 466, 14, 466, 14, 466, 14, 466, 14, 467, 12, 469, 11, 470, 10, 471, 9, 472, 8, 473, 6, 475, 4, 953, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 469, 10, 469, 12, 468, 12, 468, 12, 468, 12, 467, 13, 466, 14, 466, 14, 466, 13, 467, 12, 468, 11, 470, 9, 472, 7, 957, 6, 473, 8, 471, 10, 465, 16, 463, 17, 462, 18, 461, 19, 461, 19, 461, 19, 461, 19, 461, 18, 462, 17, 463, 15, 465, 13, 468, 11, 470, 9, 473, 5, 33118, 6, 473, 8, 471, 10, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 13, 468, 13, 468, 12, 467, 13, 466, 14, 466, 14, 466, 14, 466, 14, 466, 13, 467, 12, 468, 12, 468, 12, 469, 10, 471, 8, 474, 4, 27369, 3, 478, 3, 477, 4, 471, 1, 2, 7, 470, 11, 469, 11, 469, 12, 468, 12, 468, 12, 468, 12, 468, 12, 468, 12, 472, 8, 471, 9, 469, 1, 4, 5, 477, 2, 5279, 2, 468, 4, 6, 3, 466, 6, 1, 8, 464, 16, 463, 17, 463, 17, 463, 17, 463, 17, 463, 17, 463, 16, 464, 15, 466, 12, 298], "size": [480, 640]}, "area": 2519, "iscrowd": 1, "image_id": 347340, "bbox": [265, 149, 374, 36], "category_id": 1, "id": 900100347340}, {"segmentation": {"counts": [23195, 9, 398, 9, 10, 11, 396, 14, 5, 13, 394, 16, 3, 15, 384, 43, 383, 45, 381, 47, 379, 48, 379, 54, 373, 55, 372, 56, 371, 57, 370, 57, 370, 57, 371, 57, 371, 55, 374, 9, 1, 43, 377, 4, 4, 42, 387, 39, 393, 33, 394, 32, 395, 13, 1, 4, 2, 11, 396, 13, 9, 7, 399, 11, 417, 9, 420, 5, 7664, 6, 410, 18, 408, 20, 406, 22, 404, 29, 398, 30, 397, 33, 394, 34, 393, 49, 378, 50, 377, 57, 371, 57, 371, 57, 372, 56, 377, 50, 377, 51, 377, 51, 377, 50, 379, 4, 2, 4, 4, 34, 397, 31, 398, 4, 2, 22, 409, 18, 409, 18, 410, 16, 412, 14, 415, 4, 2, 4, 2500, 11, 415, 13, 413, 21, 405, 23, 404, 26, 1, 6, 394, 34, 393, 37, 390, 38, 389, 39, 388, 40, 387, 40, 387, 40, 387, 41, 386, 40, 388, 39, 389, 8, 4, 26, 391, 4, 7, 12, 1, 11, 403, 12, 3, 8, 404, 12, 5, 4, 406, 13, 414, 12, 415, 12, 415, 12, 416, 10, 418, 8, 421, 4, 5963, 11, 409, 19, 407, 24, 402, 32, 394, 34, 393, 35, 392, 36, 391, 36, 391, 36, 391, 37, 390, 45, 383, 45, 2, 6, 375, 53, 376, 52, 377, 52, 1, 6, 367, 61, 366, 62, 365, 63, 364, 63, 364, 63, 364, 64, 363, 63, 365, 62, 366, 61, 368, 4, 2, 52, 361, 6, 9, 50, 361, 8, 9, 40, 3, 4, 362, 33, 1, 22, 361, 6, 3, 26, 2, 4, 4, 20, 361, 8, 1, 24, 15, 4, 3, 4, 1, 4, 362, 39, 387, 41, 3, 13, 370, 42, 1, 15, 2, 6, 361, 67, 360, 68, 359, 69, 358, 69, 358, 69, 359, 69, 359, 8, 1, 58, 362, 4, 5, 56, 375, 52, 375, 51, 376, 52, 375, 53, 374, 54, 374, 53, 375, 52, 375, 21, 5, 27, 374, 16, 17, 19, 376, 15, 20, 16, 377, 13, 25, 12, 379, 9, 1, 1, 29, 7, 3849, 10, 2, 4, 408, 21, 401, 2, 1, 28, 397, 38, 390, 38, 389, 43, 384, 47, 380, 50, 377, 51, 376, 52, 375, 53, 374, 57, 370, 58, 369, 59, 368, 60, 367, 60, 369, 11, 6, 41, 370, 9, 14, 35, 369, 8, 17, 32, 370, 7, 21, 29, 365, 2, 3, 5, 26, 26, 367, 7, 30, 22, 408, 13, 8576, 19, 407, 21, 401, 27, 399, 29, 397, 30, 396, 31, 395, 33, 393, 33, 393, 34, 393, 34, 392, 34, 393, 33, 394, 31, 396, 16, 377, 6, 28, 16, 376, 8, 27, 17, 1, 13, 360, 10, 26, 32, 358, 12, 26, 32, 356, 13, 27, 32, 355, 13, 15, 6, 8, 30, 355, 19, 7, 9, 7, 30, 355, 20, 5, 11, 6, 31, 354, 37, 6, 29, 354, 38, 6, 29, 352, 40, 6, 29, 351, 42, 6, 27, 351, 43, 6, 26, 351, 43, 8, 23, 353, 43, 9, 15, 360, 43, 11, 11, 362, 42, 21, 6, 15, 7, 336, 41, 10, 8, 3, 4, 17, 9, 335, 39, 11, 10, 1, 2, 7, 3, 9, 11, 334, 17, 3, 16, 13, 26, 1, 18, 333, 16, 6, 8, 18, 27, 1, 18, 333, 16, 32, 47, 332, 16, 32, 48, 332, 14, 33, 65, 316, 12, 34, 66, 317, 8, 36, 67, 360, 68, 359, 68, 359, 68, 359, 69, 358, 68, 359, 68, 359, 68, 359, 69, 358, 70, 353, 75, 349, 79, 348, 79, 348, 79, 347, 81, 346, 82, 343, 84, 343, 84, 343, 85, 342, 84, 343, 61, 2, 6, 2, 13, 343, 12, 3, 44, 13, 12, 344, 10, 6, 37, 19, 10, 346, 8, 9, 35, 20, 8, 349, 4, 12, 28, 28, 4, 367, 25, 403, 24, 404, 22, 406, 20, 407, 20, 407, 20, 408, 17, 411, 12, 417, 8, 11208, 6, 420, 8, 418, 10, 416, 12, 415, 12, 415, 12, 415, 13, 413, 14, 412, 15, 411, 16, 1, 10, 396, 32, 389, 43, 383, 46, 10, 9, 361, 48, 6, 13, 359, 50, 4, 15, 356, 75, 347, 81, 345, 83, 343, 85, 341, 86, 336, 91, 335, 93, 333, 93, 333, 94, 332, 95, 332, 94, 333, 93, 334, 91, 336, 59, 5, 15, 348, 59, 6, 13, 349, 40, 1, 17, 8, 11, 350, 40, 3, 14, 11, 7, 352, 40, 8, 7, 372, 39, 388, 39, 388, 38, 389, 38, 389, 38, 389, 37, 391, 36, 392, 35, 394, 32, 399, 27, 402, 23, 3244, 7, 419, 9, 417, 11, 415, 13, 414, 13, 413, 14, 408, 20, 406, 21, 404, 22, 383, 7, 12, 26, 381, 9, 10, 26, 380, 12, 1, 34, 379, 48, 378, 48, 371, 55, 371, 55, 371, 56, 370, 57, 361, 65, 361, 66, 360, 67, 359, 67, 360, 66, 361, 3, 1, 38, 10, 5, 1, 6, 367, 36, 12, 1, 377, 35, 393, 33, 395, 31, 397, 30, 401, 26, 414, 4, 1, 7, 415, 2, 3909, 8, 418, 10, 416, 12, 414, 14, 28, 2, 348, 10, 25, 14, 27, 9, 341, 12, 24, 14, 26, 11, 339, 14, 23, 15, 24, 13, 337, 16, 22, 14, 25, 13, 336, 21, 15, 18, 24, 17, 332, 54, 24, 18, 331, 53, 17, 6, 2, 19, 328, 55, 16, 29, 20, 9, 297, 56, 15, 30, 19, 12, 294, 56, 15, 31, 18, 14, 292, 57, 13, 34, 16, 16, 281, 66, 12, 36, 16, 17, 279, 60, 2, 4, 13, 35, 17, 17, 278, 60, 4, 1, 15, 36, 16, 17, 277, 61, 20, 35, 17, 18, 275, 58, 3, 1, 20, 45, 7, 17, 275, 58, 25, 46, 6, 18, 273, 39, 8, 10, 26, 71, 273, 37, 44, 73, 273, 35, 38, 5, 2, 73, 274, 32, 40, 81, 274, 29, 42, 82, 274, 13, 8, 5, 44, 82, 275, 11, 59, 81, 277, 9, 59, 82, 278, 7, 60, 81, 281, 5, 60, 80, 347, 78, 349, 51, 2, 22, 352, 43, 12, 18, 354, 42, 385, 40, 391, 34, 396, 19, 1, 9, 402, 13, 415, 11, 415, 10, 418, 7, 59547], "size": [427, 640]}, "area": 17115, "iscrowd": 1, "image_id": 20251, "bbox": [54, 75, 446, 338], "category_id": 1, "id": 900100020251}, {"segmentation": {"counts": [26577, 2, 469, 4, 467, 7, 465, 8, 463, 10, 461, 12, 47, 7, 405, 15, 47, 6, 404, 16, 48, 5, 378, 1, 23, 19, 48, 4, 377, 2, 21, 23, 47, 3, 376, 4, 17, 32, 42, 2, 375, 6, 14, 39, 38, 1, 374, 9, 9, 54, 401, 74, 399, 80, 393, 87, 386, 97, 376, 8, 12, 77, 376, 4, 17, 2, 1, 73, 376, 1, 23, 73, 409, 63, 415, 57, 419, 53, 421, 51, 426, 47, 435, 37, 438, 35, 440, 32, 443, 29, 446, 26, 448, 24, 450, 22, 452, 20, 454, 18, 457, 14, 460, 11, 464, 6, 5096, 5, 443, 7, 12, 10, 442, 11, 6, 13, 441, 13, 4, 15, 439, 15, 2, 17, 438, 35, 437, 35, 437, 36, 436, 36, 436, 36, 436, 35, 438, 33, 439, 33, 439, 33, 28, 8, 404, 31, 20, 18, 404, 29, 18, 22, 403, 27, 22, 21, 402, 25, 24, 21, 402, 25, 24, 28, 396, 23, 25, 31, 393, 22, 26, 33, 391, 21, 26, 35, 391, 20, 26, 36, 391, 19, 26, 38, 390, 19, 25, 39, 389, 19, 25, 38, 390, 19, 25, 38, 390, 20, 24, 38, 390, 20, 24, 38, 391, 19, 25, 37, 392, 19, 24, 37, 393, 18, 25, 36, 395, 16, 25, 36, 394, 18, 25, 35, 394, 19, 3, 1, 21, 33, 9, 8, 378, 20, 1, 2, 21, 33, 9, 9, 377, 24, 19, 35, 7, 11, 376, 24, 18, 37, 6, 12, 375, 25, 16, 39, 4, 13, 375, 26, 12, 43, 3, 13, 375, 26, 10, 46, 1, 14, 375, 97, 375, 97, 375, 29, 6, 62, 375, 28, 9, 59, 376, 27, 12, 56, 377, 26, 15, 52, 379, 24, 19, 46, 383, 22, 24, 44, 382, 20, 28, 42, 383, 17, 33, 39, 384, 14, 38, 36, 386, 5, 48, 33, 441, 32, 443, 30, 446, 27, 447, 25, 448, 25, 453, 19, 456, 16, 457, 16, 457, 15, 458, 14, 459, 14, 458, 15, 459, 16, 458, 15, 457, 16, 457, 16, 457, 15, 458, 14, 459, 13, 460, 12, 461, 11, 462, 10, 463, 9, 464, 8, 465, 6, 463, 8, 466, 4, 5119, 5, 465, 9, 462, 13, 458, 17, 454, 20, 439, 8, 5, 23, 435, 10, 4, 25, 432, 13, 2, 27, 429, 46, 426, 49, 423, 52, 420, 55, 417, 56, 416, 56, 416, 57, 416, 54, 419, 52, 420, 51, 421, 50, 423, 47, 425, 46, 427, 44, 429, 42, 431, 40, 427, 45, 28, 4, 393, 46, 27, 7, 391, 22, 2, 23, 26, 8, 390, 20, 8, 20, 21, 1, 2, 10, 389, 20, 12, 17, 21, 13, 389, 18, 16, 16, 19, 14, 389, 17, 19, 14, 18, 15, 389, 17, 19, 15, 16, 16, 389, 17, 20, 10, 1, 4, 14, 17, 389, 16, 22, 8, 3, 4, 11, 19, 389, 16, 24, 4, 5, 5, 9, 20, 390, 15, 33, 7, 6, 20, 391, 14, 34, 33, 391, 15, 34, 31, 392, 15, 34, 30, 393, 15, 35, 27, 395, 15, 36, 25, 397, 14, 36, 24, 399, 12, 38, 23, 400, 10, 40, 21, 402, 8, 47, 14, 405, 4, 49, 14, 458, 13, 459, 13, 460, 6, 2, 4, 470, 2, 187677], "size": [472, 640]}, "area": 8846, "iscrowd": 1, "image_id": 446331, "bbox": [56, 94, 186, 126], "category_id": 1, "id": 900100446331}, {"segmentation": {"counts": [509, 38, 1, 1, 1, 1, 1, 1, 298, 44, 286, 57, 1, 4, 280, 64, 277, 65, 277, 66, 276, 66, 276, 66, 276, 66, 276, 66, 276, 66, 277, 66, 276, 66, 276, 66, 276, 66, 277, 65, 277, 65, 277, 65, 278, 64, 278, 64, 279, 63, 280, 62, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 61, 281, 60, 282, 60, 282, 60, 282, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 59, 282, 59, 283, 59, 282, 60, 282, 59, 282, 60, 282, 59, 283, 59, 283, 58, 284, 57, 284, 58, 284, 57, 285, 56, 286, 55, 287, 55, 287, 54, 288, 54, 288, 54, 289, 52, 290, 52, 290, 51, 291, 51, 292, 49, 293, 48, 294, 48, 295, 46, 296, 45, 298, 39, 304, 36, 306, 35, 308, 32, 311, 29, 314, 27, 316, 24, 317, 24, 318, 22, 320, 20, 322, 19, 322, 18, 324, 16, 326, 15, 327, 14, 328, 13, 330, 12, 330, 11, 331, 10, 333, 9, 333, 8, 337, 4, 32145, 9, 331, 14, 326, 17, 324, 19, 322, 21, 320, 23, 319, 24, 317, 26, 314, 28, 311, 32, 307, 35, 306, 36, 304, 38, 303, 39, 302, 40, 301, 41, 300, 42, 299, 43, 298, 44, 297, 48, 294, 51, 290, 53, 289, 54, 287, 56, 286, 57, 284, 59, 283, 60, 282, 60, 282, 61, 281, 61, 280, 62, 280, 62, 280, 62, 280, 62, 280, 63, 279, 64, 278, 65, 277, 47, 13, 6, 277, 46, 13, 7, 276, 44, 17, 3, 278, 40, 302, 40, 303, 39, 28, 1, 274, 40, 27, 1, 274, 46, 21, 1, 275, 47, 9, 11, 275, 51, 4, 12, 275, 67, 276, 66, 276, 66, 277, 65, 278, 64, 278, 64, 279, 63, 280, 62, 280, 62, 281, 61, 282, 59, 284, 57, 285, 55, 288, 54, 288, 55, 288, 56, 286, 57, 285, 58, 284, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 59, 283, 58, 284, 57, 285, 55, 288, 54, 288, 54, 288, 55, 287, 55, 287, 55, 287, 55, 287, 55, 287, 55, 287, 55, 287, 55, 287, 55, 287, 55, 287, 54, 288, 54, 288, 55, 287, 55, 287, 55, 287, 56, 286, 56, 286, 56, 286, 56, 286, 56, 286, 56, 286, 56, 286, 56, 286, 56, 286, 56, 287, 55, 287, 55, 287, 55, 287, 54, 289, 53, 289, 53, 289, 52, 291, 51, 291, 14, 8, 29, 292, 5, 20, 25, 293, 3, 24, 22, 293, 3, 24, 22, 294, 2, 23, 23, 295, 1, 23, 23, 319, 23, 318, 24, 296, 6, 16, 23, 296, 9, 14, 23, 295, 13, 11, 22, 295, 17, 7, 23, 295, 46, 295, 46, 295, 27, 1, 18, 296, 28, 1, 16, 297, 28, 3, 12, 299, 28, 6, 6, 301, 29, 313, 29, 313, 29, 313, 29, 313, 29, 314, 28, 314, 28, 314, 27, 316, 26, 316, 25, 318, 5, 2, 17, 319, 3, 4, 15, 320, 3, 5, 13, 323, 1, 7, 10, 333, 8, 335, 5, 337, 2, 22561, 4, 336, 10, 331, 14, 327, 19, 322, 23, 319, 24, 317, 26, 315, 27, 315, 28, 314, 28, 314, 29, 312, 30, 312, 31, 311, 31, 311, 31, 311, 31, 311, 32, 311, 31, 311, 31, 311, 32, 311, 31, 311, 31, 311, 32, 311, 31, 311, 31, 312, 30, 312, 31, 311, 31, 311, 31, 311, 32, 309, 33, 309, 33, 309, 33, 309, 34, 308, 34, 308, 34, 308, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 35, 307, 34, 308, 34, 308, 33, 309, 31, 312, 28, 314, 27, 315, 26, 317, 24, 318, 23, 320, 20, 323, 18, 324, 16, 331, 10, 336, 4, 7869, 9, 333, 10, 331, 13, 324, 19, 323, 21, 316, 28, 313, 30, 312, 31, 310, 33, 308, 34, 308, 35, 307, 35, 307, 36, 305, 37, 305, 38, 304, 38, 304, 37, 304, 38, 304, 38, 303, 39, 302, 40, 302, 40, 302, 41, 301, 41, 300, 41, 301, 41, 301, 40, 302, 40, 302, 39, 303, 38, 305, 36, 306, 35, 307, 33, 309, 30, 312, 30, 312, 30, 312, 30, 312, 30, 313, 29, 313, 29, 313, 29, 313, 29, 313, 29, 313, 30, 312, 30, 312, 30, 313, 29, 313, 29, 313, 29, 313, 29, 313, 29, 313, 29, 313, 29, 312, 30, 311, 31, 311, 31, 311, 31, 311, 31, 310, 32, 310, 32, 310, 32, 310, 32, 310, 32, 311, 31, 311, 31, 311, 31, 312, 30, 312, 30, 313, 29, 313, 29, 313, 32, 310, 33, 309, 34, 308, 35, 307, 37, 305, 38, 304, 39, 303, 40, 302, 41, 301, 42, 299, 44, 298, 44, 298, 45, 297, 45, 297, 45, 298, 9, 2, 12, 13, 8, 298, 6, 6, 9, 17, 6, 298, 5, 8, 5, 23, 3, 298, 5, 37, 2, 297, 6, 37, 2, 297, 6, 37, 2, 296, 8, 34, 4, 295, 10, 33, 3, 296, 11, 2, 3, 3, 5, 3, 5, 8, 6, 296, 46, 296, 46, 295, 47, 295, 47, 295, 47, 295, 47, 295, 47, 296, 46, 296, 46, 296, 46, 297, 45, 297, 45, 298, 45, 297, 45, 297, 46, 296, 46, 296, 46, 296, 46, 297, 45, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 46, 296, 45, 297, 45, 297, 45, 297, 44, 297, 45, 296, 47, 295, 48, 294, 48, 294, 49, 292, 50, 292, 50, 292, 50, 292, 50, 292, 50, 293, 49, 293, 49, 135], "size": [342, 640]}, "area": 20371, "iscrowd": 1, "image_id": 511988, "bbox": [1, 139, 638, 81], "category_id": 1, "id": 900100511988}, {"segmentation": {"counts": [782, 3, 2, 9, 3, 1, 1, 5, 1, 6, 1, 5, 1, 5, 1, 5, 1, 6, 1, 5, 1, 5, 1, 5, 354, 74, 235, 75, 44, 74, 231, 105, 18, 74, 225, 203, 219, 209, 199, 229, 195, 233, 194, 234, 193, 235, 192, 236, 192, 236, 192, 236, 192, 235, 193, 94, 1, 140, 193, 47, 54, 134, 193, 51, 49, 135, 193, 58, 39, 138, 194, 63, 32, 140, 194, 68, 25, 141, 196, 73, 2, 3, 11, 143, 198, 83, 3, 144, 201, 199, 1, 27, 203, 192, 5, 28, 205, 190, 5, 28, 212, 3, 1, 179, 5, 28, 219, 1, 2, 173, 4, 29, 227, 4, 1, 164, 2, 30, 230, 167, 1, 30, 229, 168, 1, 30, 228, 169, 1, 30, 195, 24, 8, 25, 5, 4, 1, 166, 191, 29, 7, 26, 11, 4, 1, 159, 184, 37, 6, 30, 15, 156, 183, 39, 5, 31, 11, 159, 182, 42, 3, 32, 9, 160, 181, 45, 1, 33, 7, 161, 181, 45, 1, 34, 2, 165, 181, 46, 1, 200, 181, 247, 181, 247, 181, 247, 181, 247, 182, 177, 2, 4, 1, 62, 183, 15, 17, 143, 14, 39, 1, 16, 185, 9, 22, 146, 12, 36, 2, 16, 217, 146, 11, 36, 2, 16, 219, 148, 6, 38, 1, 16, 220, 149, 3, 39, 1, 16, 221, 190, 1, 16, 222, 206, 223, 205, 223, 205, 224, 172, 2, 30, 225, 171, 3, 29, 227, 169, 3, 29, 224, 173, 2, 29, 223, 175, 1, 29, 218, 210, 217, 211, 212, 216, 211, 217, 210, 218, 207, 221, 206, 222, 205, 223, 204, 224, 204, 33, 6, 185, 204, 25, 14, 185, 204, 21, 1, 202, 204, 19, 2, 203, 204, 15, 5, 157, 1, 46, 204, 13, 6, 158, 1, 46, 204, 13, 6, 157, 2, 46, 205, 13, 5, 157, 3, 45, 205, 13, 5, 156, 4, 45, 205, 13, 5, 155, 5, 45, 205, 14, 1, 159, 5, 44, 206, 173, 6, 43, 206, 174, 5, 43, 204, 176, 5, 43, 204, 177, 4, 43, 200, 182, 4, 42, 199, 184, 4, 41, 196, 187, 4, 41, 194, 190, 3, 41, 193, 191, 4, 40, 192, 236, 191, 51, 2, 39, 1, 144, 188, 240, 187, 241, 186, 242, 185, 188, 1, 54, 185, 187, 3, 53, 185, 187, 3, 53, 185, 243, 185, 243, 185, 243, 185, 243, 185, 243, 185, 243, 186, 242, 186, 242, 185, 243, 184, 244, 184, 244, 184, 244, 184, 244, 184, 243, 185, 242, 186, 240, 189, 239, 190, 238, 191, 156, 1, 79, 192, 156, 1, 79, 192, 156, 1, 19, 2, 58, 192, 156, 1, 79, 192, 156, 1, 80, 191, 238, 190, 239, 190, 238, 191, 221, 1, 16, 192, 219, 1, 17, 196, 214, 1, 17, 198, 212, 1, 17, 200, 210, 1, 17, 200, 210, 1, 17, 199, 211, 1, 17, 197, 212, 2, 17, 196, 213, 2, 17, 195, 214, 2, 17, 194, 215, 2, 17, 194, 214, 3, 17, 194, 214, 3, 17, 194, 80, 1, 132, 4, 17, 194, 80, 1, 132, 4, 17, 187, 87, 1, 132, 4, 17, 186, 88, 1, 132, 4, 17, 185, 89, 1, 135, 1, 17, 184, 90, 1, 153, 184, 244, 184, 244, 184, 244, 184, 244, 184, 244, 184, 244, 185, 243, 186, 242, 188, 240, 191, 237, 195, 233, 199, 229, 199, 229, 198, 78, 1, 68, 1, 82, 197, 79, 1, 68, 2, 81, 197, 148, 2, 81, 197, 148, 2, 81, 196, 232, 196, 232, 196, 232, 196, 232, 196, 232, 196, 63, 2, 167, 196, 46, 1, 16, 5, 164, 197, 43, 5, 13, 5, 165, 198, 38, 9, 183, 199, 36, 10, 183, 199, 37, 9, 183, 199, 41, 5, 183, 200, 42, 3, 183, 201, 42, 1, 184, 202, 226, 203, 225, 203, 225, 203, 225, 204, 224, 205, 223, 205, 223, 206, 222, 207, 221, 207, 221, 207, 221, 208, 220, 209, 219, 210, 218, 210, 122, 2, 94, 210, 121, 3, 94, 211, 119, 4, 94, 212, 118, 4, 94, 213, 120, 1, 94, 213, 215, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 216, 212, 126, 1, 89, 212, 123, 5, 88, 212, 124, 5, 87, 212, 125, 5, 86, 213, 124, 5, 86, 213, 126, 4, 85, 213, 127, 3, 85, 214, 127, 3, 84, 215, 108, 1, 18, 3, 83, 216, 106, 3, 18, 3, 82, 216, 106, 4, 18, 2, 82, 216, 106, 5, 18, 1, 82, 217, 105, 6, 100, 218, 104, 8, 92, 1, 5, 219, 102, 9, 92, 1, 5, 219, 101, 11, 90, 1, 6, 220, 101, 11, 89, 1, 6, 220, 101, 13, 87, 1, 6, 221, 99, 14, 86, 3, 5, 222, 98, 15, 85, 3, 5, 224, 96, 16, 84, 2, 6, 230, 31, 6, 52, 19, 82, 2, 6, 231, 28, 8, 52, 18, 82, 3, 6, 232, 26, 9, 52, 17, 92, 234, 23, 10, 52, 17, 92, 236, 20, 11, 51, 18, 92, 238, 18, 11, 51, 18, 92, 241, 15, 11, 50, 17, 94, 242, 14, 11, 50, 17, 94, 243, 12, 13, 49, 16, 95, 245, 9, 15, 48, 16, 95, 247, 5, 18, 47, 16, 95, 272, 44, 17, 95, 272, 44, 17, 95, 272, 14, 4, 26, 17, 95, 273, 12, 9, 22, 18, 91, 1, 2, 274, 10, 12, 20, 19, 89, 280, 6, 14, 19, 21, 26, 4, 58, 300, 19, 23, 8, 2, 7, 7, 62, 301, 17, 47, 63, 302, 16, 42, 68, 304, 14, 41, 69, 305, 13, 36, 47, 3, 24, 305, 13, 35, 43, 9, 22, 305, 13, 31, 43, 1, 2, 13, 19, 306, 12, 31, 43, 19, 8, 2, 5, 307, 13, 26, 43, 346, 13, 25, 42, 349, 12, 20, 42, 353, 13, 19, 38, 357, 14, 14, 41, 359, 13, 12, 1, 1, 38, 363, 13, 9, 41, 365, 13, 6, 1, 1, 38, 369, 13, 3, 41, 370, 54, 374, 52, 375, 49, 379, 47, 381, 43, 385, 40, 388, 37, 390, 33, 1, 1, 393, 32, 396, 27, 401, 26, 402, 21, 407, 20, 408, 15, 414, 13, 416, 8, 422, 4, 5486, 22, 401, 28, 397, 32, 395, 34, 390, 38, 387, 41, 383, 45, 159, 13, 211, 45, 41, 7, 110, 15, 209, 46, 16, 7, 17, 9, 1, 5, 102, 17, 207, 47, 14, 10, 15, 23, 94, 19, 206, 47, 12, 17, 8, 28, 99, 11, 205, 47, 12, 55, 97, 12, 205, 47, 10, 58, 96, 13, 203, 47, 10, 60, 95, 14, 196, 53, 8, 62, 95, 15, 195, 52, 8, 62, 96, 15, 195, 52, 7, 63, 95, 16, 195, 51, 7, 64, 95, 16, 196, 49, 8, 64, 95, 16, 197, 46, 10, 63, 96, 16, 197, 46, 10, 63, 95, 17, 197, 46, 10, 63, 95, 17, 197, 46, 10, 62, 96, 17, 197, 46, 10, 62, 96, 17, 198, 45, 10, 62, 96, 17, 199, 43, 11, 62, 95, 18, 201, 40, 12, 62, 95, 18, 206, 33, 13, 63, 95, 18, 207, 29, 16, 63, 95, 18, 207, 24, 20, 63, 96, 18, 208, 20, 23, 63, 95, 19, 208, 18, 12, 8, 5, 63, 95, 19, 209, 14, 14, 12, 2, 63, 95, 19, 210, 11, 15, 78, 95, 19, 212, 4, 19, 78, 95, 20, 214, 9, 12, 78, 95, 20, 213, 20, 2, 78, 95, 20, 212, 22, 1, 78, 95, 20, 210, 102, 96, 20, 208, 104, 95, 21, 207, 105, 95, 21, 205, 107, 95, 21, 204, 108, 95, 21, 202, 109, 96, 21, 194, 117, 95, 22, 193, 118, 95, 22, 192, 119, 95, 22, 191, 64, 4, 52, 95, 22, 191, 65, 4, 50, 96, 22, 191, 69, 2, 48, 94, 24, 191, 121, 90, 26, 191, 122, 86, 29, 191, 123, 83, 31, 191, 25, 2, 97, 80, 33, 192, 2, 20, 1, 4, 98, 76, 35, 193, 1, 45, 79, 73, 37, 248, 71, 70, 39, 248, 73, 66, 41, 248, 74, 63, 43, 248, 75, 60, 45, 248, 76, 57, 47, 248, 78, 53, 49, 248, 79, 50, 51, 248, 80, 46, 54, 248, 81, 38, 61, 248, 83, 29, 68, 248, 84, 21, 75, 248, 85, 13, 82, 248, 86, 5, 89, 248, 180, 248, 10, 6, 164, 248, 9, 8, 163, 248, 9, 9, 162, 248, 8, 11, 161, 248, 7, 13, 160, 248, 7, 13, 160, 248, 6, 15, 159, 243, 10, 17, 158, 244, 9, 18, 157, 246, 5, 21, 156, 273, 155, 274, 154, 275, 153, 276, 152, 277, 151, 277, 137, 1, 13, 278, 135, 3, 12, 280, 134, 2, 12, 178, 1, 104, 131, 2, 12, 178, 2, 105, 130, 1, 12, 178, 3, 106, 128, 1, 12, 177, 5, 108, 125, 1, 12, 177, 5, 75, 2, 33, 123, 1, 12, 177, 5, 75, 3, 17, 1, 16, 121, 1, 12, 177, 5, 75, 5, 14, 5, 16, 44, 2, 72, 1, 12, 176, 6, 37, 19, 19, 7, 12, 9, 12, 45, 2, 71, 1, 12, 176, 6, 34, 30, 11, 8, 10, 14, 8, 46, 3, 69, 2, 10, 177, 6, 32, 41, 2, 10, 7, 17, 6, 47, 3, 68, 1, 12, 176, 6, 30, 57, 5, 20, 4, 47, 3, 67, 1, 12, 175, 7, 28, 60, 3, 23, 2, 47, 3, 67, 1, 12, 164, 9, 2, 7, 25, 138, 4, 66, 1, 12, 164, 18, 23, 141, 4, 65, 1, 12, 163, 19, 21, 144, 4, 64, 1, 12, 163, 19, 20, 146, 3, 64, 1, 12, 163, 19, 19, 148, 2, 64, 1, 12, 162, 19, 18, 150, 3, 63, 1, 12, 162, 20, 16, 151, 4, 62, 1, 12, 162, 20, 15, 152, 5, 61, 1, 12, 162, 20, 13, 154, 6, 60, 1, 12, 161, 21, 12, 155, 6, 60, 1, 12, 161, 20, 12, 156, 6, 60, 1, 12, 161, 20, 11, 157, 7, 59, 1, 12, 160, 21, 10, 159, 7, 57, 3, 11, 160, 21, 9, 160, 9, 55, 3, 11, 160, 21, 8, 161, 10, 54, 4, 10, 160, 21, 7, 162, 12, 53, 2, 11, 159, 22, 6, 163, 15, 50, 2, 11, 159, 22, 5, 164, 15, 50, 2, 11, 159, 22, 4, 165, 15, 50, 2, 11, 158, 23, 4, 165, 16, 48, 4, 10, 158, 23, 3, 166, 17, 48, 4, 9, 158, 23, 2, 167, 18, 47, 4, 9, 158, 22, 3, 166, 20, 47, 3, 9, 157, 23, 2, 162, 25, 47, 3, 9, 157, 23, 2, 160, 27, 59, 157, 23, 1, 159, 30, 58, 156, 181, 33, 58, 156, 179, 36, 57, 156, 177, 38, 57, 156, 177, 38, 57, 155, 177, 40, 56, 155, 176, 42, 55, 155, 174, 45, 54, 154, 174, 47, 53, 154, 173, 49, 52, 154, 173, 50, 51, 154, 173, 51, 50, 153, 173, 45, 57, 153, 173, 46, 56, 153, 173, 21, 68, 1, 12, 152, 173, 21, 82, 152, 173, 21, 82, 152, 173, 21, 82, 152, 173, 20, 83, 151, 173, 20, 84, 151, 173, 20, 84, 151, 173, 19, 85, 151, 172, 20, 85, 150, 174, 18, 86, 150, 174, 18, 86, 150, 174, 17, 87, 149, 175, 17, 87, 149, 175, 17, 87, 149, 175, 16, 88, 149, 175, 16, 88, 148, 176, 16, 88, 148, 176, 15, 13, 1, 75, 148, 175, 16, 13, 3, 73, 147, 176, 16, 14, 1, 74, 147, 175, 16, 90, 147, 175, 16, 90, 147, 174, 17, 71, 1, 18, 146, 175, 16, 91, 146, 175, 16, 91, 146, 174, 16, 92, 145, 175, 16, 92, 145, 175, 16, 92, 145, 175, 15, 93, 145, 174, 16, 93, 144, 175, 16, 93, 144, 175, 15, 94, 144, 174, 16, 94, 143, 175, 16, 11, 1, 82, 143, 175, 15, 12, 1, 69, 2, 11, 143, 175, 15, 12, 1, 69, 3, 10, 143, 175, 15, 12, 2, 68, 3, 10, 142, 176, 14, 13, 3, 66, 4, 10, 142, 176, 14, 13, 4, 64, 5, 10, 142, 175, 15, 13, 4, 63, 6, 10, 141, 176, 14, 14, 4, 62, 7, 10, 141, 177, 13, 13, 5, 62, 7, 10, 141, 177, 13, 12, 3, 65, 8, 9, 141, 177, 12, 86, 3, 9, 140, 178, 12, 98, 140, 9, 1, 168, 11, 99, 140, 9, 1, 168, 11, 99, 139, 10, 1, 168, 10, 100, 139, 10, 1, 168, 10, 100, 139, 9, 1, 170, 8, 101, 139, 9, 1, 170, 7, 102, 138, 9, 1, 93, 1, 77, 7, 102, 138, 9, 1, 93, 3, 75, 4, 105, 138, 9, 1, 94, 4, 74, 2, 106, 138, 9, 1, 95, 2, 75, 2, 106, 137, 10, 1, 96, 1, 75, 2, 106, 137, 9, 1, 173, 2, 106, 137, 184, 1, 106, 136, 57, 2, 233, 136, 57, 3, 232, 136, 57, 3, 232, 136, 57, 3, 232, 135, 58, 3, 232, 135, 58, 3, 15, 1, 216, 135, 58, 3, 232, 134, 59, 3, 232, 134, 59, 3, 232, 134, 59, 2, 233, 134, 195, 1, 98, 133, 196, 1, 13, 3, 82, 133, 210, 3, 82, 133, 211, 2, 82, 132, 41, 3, 169, 1, 82, 132, 41, 4, 168, 2, 81, 132, 41, 3, 169, 3, 80, 132, 215, 2, 79, 131, 217, 2, 78, 131, 75, 5, 138, 1, 78, 131, 75, 5, 217, 130, 76, 5, 217, 130, 76, 5, 217, 130, 29, 1, 268, 130, 28, 2, 268, 130, 28, 2, 268, 130, 28, 2, 267, 131, 28, 2, 267, 131, 28, 2, 266, 132, 27, 3, 265, 132, 27, 4, 265, 132, 27, 4, 265, 132, 27, 4, 198, 1, 66, 132, 26, 5, 265, 132, 25, 6, 199, 1, 65, 132, 24, 7, 265, 132, 24, 8, 45, 2, 152, 1, 64, 132, 24, 9, 45, 2, 216, 131, 24, 12, 43, 1, 217, 131, 23, 13, 261, 131, 22, 14, 261, 131, 22, 15, 260, 131, 22, 16, 259, 131, 22, 16, 259, 130, 22, 17, 259, 130, 21, 18, 259, 129, 21, 19, 259, 129, 20, 20, 117, 7, 43, 2, 90, 129, 20, 20, 118, 8, 40, 5, 88, 129, 19, 21, 118, 10, 38, 5, 88, 128, 20, 21, 14, 1, 103, 11, 37, 5, 88, 127, 20, 21, 119, 12, 38, 4, 87, 126, 19, 23, 119, 12, 39, 4, 86, 126, 19, 23, 119, 12, 39, 5, 85, 125, 20, 23, 119, 12, 40, 5, 83, 126, 19, 25, 118, 12, 41, 5, 82, 126, 18, 25, 119, 12, 41, 5, 82, 126, 18, 25, 119, 12, 42, 4, 82, 126, 16, 27, 119, 12, 43, 3, 82, 126, 16, 27, 16, 1, 102, 12, 44, 3, 81, 126, 15, 28, 119, 12, 45, 2, 81, 127, 14, 28, 119, 12, 45, 2, 81, 127, 13, 29, 119, 12, 46, 2, 80, 127, 13, 29, 119, 12, 47, 2, 79, 127, 13, 29, 119, 12, 128, 127, 12, 30, 119, 12, 128, 127, 11, 31, 119, 12, 128, 127, 10, 32, 119, 12, 128, 127, 9, 32, 120, 12, 128, 127, 9, 32, 120, 12, 128, 128, 9, 31, 120, 12, 128, 128, 11, 28, 121, 13, 127, 126, 15, 25, 122, 13, 127, 125, 18, 22, 123, 13, 127, 124, 23, 18, 26, 1, 97, 12, 127, 125, 27, 13, 124, 12, 127, 125, 28, 12, 124, 12, 127, 125, 29, 10, 125, 12, 127, 126, 29, 8, 126, 12, 127, 127, 28, 7, 127, 13, 126, 129, 26, 7, 127, 13, 126, 130, 25, 7, 127, 13, 126, 131, 24, 7, 128, 12, 126, 132, 23, 7, 63, 1, 64, 13, 126, 133, 21, 6, 129, 14, 125, 136, 17, 6, 130, 14, 125, 138, 14, 6, 131, 15, 125, 142, 7, 7, 132, 15, 125, 156, 132, 16, 124, 156, 132, 16, 124, 156, 132, 18, 122, 156, 132, 18, 123, 155, 132, 18, 123, 155, 132, 18, 123, 155, 132, 19, 122, 155, 132, 19, 122, 155, 132, 19, 122, 155, 132, 20, 121, 155, 132, 20, 121, 156, 131, 21, 120, 156, 132, 21, 119, 156, 132, 21, 119, 156, 132, 21, 119, 155, 134, 20, 119, 154, 136, 19, 119, 153, 121, 1, 16, 19, 118, 152, 139, 19, 118, 152, 139, 19, 118, 152, 141, 17, 118, 152, 142, 16, 118, 152, 142, 16, 118, 152, 143, 16, 117, 152, 143, 16, 117, 152, 143, 16, 118, 152, 143, 15, 118, 153, 143, 14, 118, 154, 143, 13, 118, 156, 141, 13, 19, 1, 98, 157, 141, 12, 118, 157, 141, 12, 118, 157, 142, 11, 118, 157, 12, 2, 129, 11, 117, 157, 12, 3, 129, 9, 118, 157, 146, 6, 101, 7, 11, 157, 147, 5, 98, 11, 10, 157, 148, 4, 96, 13, 10, 157, 149, 3, 95, 14, 10, 157, 43, 1, 106, 2, 93, 16, 10, 158, 39, 1, 110, 1, 91, 18, 10, 158, 131, 1, 18, 1, 89, 21, 9, 158, 132, 2, 16, 2, 85, 25, 8, 158, 133, 2, 16, 2, 84, 27, 6, 158, 133, 3, 16, 1, 84, 30, 3, 158, 134, 3, 100, 32, 1, 158, 134, 4, 101, 189, 134, 5, 102, 187, 135, 5, 102, 186, 136, 5, 106, 181, 12, 6, 122, 1, 107, 3, 9, 167, 13, 14, 235, 166, 13, 19, 6, 2, 223, 165, 13, 31, 220, 164, 13, 31, 220, 163, 13, 32, 181, 1, 38, 163, 13, 32, 28, 1, 191, 163, 13, 32, 28, 2, 190, 163, 20, 25, 27, 3, 190, 163, 27, 1, 4, 14, 26, 3, 190, 162, 40, 2, 3, 2, 26, 4, 189, 162, 73, 4, 188, 163, 73, 5, 186, 164, 72, 6, 185, 165, 72, 6, 183, 167, 72, 6, 83, 1, 95, 171, 71, 8, 35, 1, 46, 1, 88, 1, 4, 174, 57, 3, 9, 10, 27, 17, 18, 2, 4, 1, 12, 1, 77, 1, 4, 29], "size": [428, 640]}, "area": 136383, "iscrowd": 1, "image_id": 13417, "bbox": [1, 120, 638, 307], "category_id": 33, "id": 903300013417}, {"segmentation": {"counts": [177908, 6, 421, 8, 403, 26, 401, 28, 399, 29, 398, 30, 398, 31, 397, 30, 397, 31, 397, 31, 397, 30, 398, 29, 399, 30, 398, 10, 19, 2, 397, 10, 19, 3, 395, 11, 20, 2, 395, 10, 3, 20, 395, 10, 2, 22, 394, 10, 1, 24, 393, 10, 1, 24, 393, 9, 1, 25, 393, 9, 1, 25, 393, 35, 393, 35, 393, 35, 394, 35, 394, 33, 397, 4, 1, 26, 402, 26, 402, 26, 402, 26, 401, 6, 19, 2, 401, 6, 18, 6, 398, 6, 11, 15, 383, 6, 7, 33, 381, 8, 6, 34, 379, 10, 5, 35, 377, 12, 4, 36, 376, 12, 5, 5, 1, 30, 375, 2, 1, 9, 5, 5, 2, 29, 375, 1, 2, 10, 4, 5, 2, 29, 375, 1, 3, 9, 4, 5, 2, 29, 375, 1, 3, 8, 5, 5, 2, 29, 375, 1, 3, 8, 6, 5, 2, 28, 379, 8, 6, 5, 2, 28, 379, 8, 6, 5, 2, 28, 380, 8, 6, 4, 2, 28, 380, 7, 7, 4, 2, 28, 380, 7, 8, 3, 3, 27, 380, 5, 1, 1, 9, 3, 2, 27, 380, 4, 2, 2, 10, 1, 2, 27, 381, 3, 2, 1, 14, 27, 381, 3, 2, 2, 13, 14, 1, 12, 381, 3, 3, 1, 14, 12, 2, 12, 381, 3, 3, 1, 15, 10, 10, 5, 381, 3, 3, 1, 17, 3, 16, 4, 381, 4, 2, 2, 35, 4, 381, 4, 2, 2, 37, 2, 381, 4, 2, 2, 38, 1, 381, 4, 2, 2, 420, 4, 3, 2, 419, 4, 2, 3, 419, 4, 2, 3, 419, 4, 2, 2, 420, 3, 3, 3, 418, 4, 2, 4, 418, 4, 2, 3, 419, 4, 2, 3, 419, 4, 2, 4, 418, 4, 1, 4, 15, 2, 397, 1, 4, 3, 2, 4, 14, 3, 397, 1, 4, 3, 2, 4, 13, 3, 398, 1, 4, 3, 2, 3, 14, 3, 4, 5, 389, 1, 3, 4, 2, 3, 14, 3, 3, 14, 381, 1, 3, 4, 1, 4, 14, 2, 3, 23, 373, 1, 3, 3, 2, 3, 15, 2, 3, 25, 371, 7, 2, 3, 15, 1, 3, 25, 373, 6, 2, 2, 16, 1, 3, 26, 373, 5, 1, 2, 20, 28, 374, 4, 21, 30, 398, 3, 424, 4, 27, 2, 395, 4, 27, 3, 394, 4, 27, 4, 393, 4, 2, 30, 392, 4, 1, 31, 392, 4, 1, 31, 393, 3, 1, 31, 394, 2, 1, 31, 396, 4, 12, 16, 413, 15, 414, 14, 415, 12, 418, 9, 421, 5, 3809, 6, 421, 8, 419, 10, 417, 12, 415, 13, 414, 14, 413, 16, 412, 16, 412, 15, 413, 15, 413, 16, 412, 15, 413, 16, 411, 17, 411, 16, 412, 16, 412, 17, 411, 17, 411, 17, 411, 18, 410, 19, 410, 18, 410, 18, 410, 19, 409, 18, 410, 19, 409, 19, 409, 19, 409, 18, 410, 19, 410, 17, 411, 18, 410, 17, 411, 17, 411, 17, 412, 16, 413, 14, 414, 14, 413, 15, 412, 15, 413, 15, 413, 15, 413, 15, 413, 14, 414, 14, 414, 14, 414, 13, 415, 12, 416, 12, 417, 10, 419, 8, 422, 4, 30111], "size": [428, 640]}, "area": 3849, "iscrowd": 1, "image_id": 418505, "bbox": [415, 257, 154, 63], "category_id": 84, "id": 908400418505}, {"segmentation": {"counts": [146647, 8, 410, 25, 398, 30, 395, 33, 393, 35, 392, 35, 391, 36, 391, 36, 390, 37, 377, 50, 376, 51, 375, 52, 374, 53, 374, 53, 374, 53, 374, 53, 374, 52, 375, 51, 376, 49, 379, 47, 381, 44, 384, 42, 385, 40, 388, 38, 390, 37, 391, 20, 3, 13, 392, 10, 13, 12, 394, 6, 16, 10, 418, 8, 1, 8, 406, 22, 394, 35, 391, 36, 391, 30, 2, 5, 390, 29, 3, 6, 389, 29, 3, 6, 389, 29, 3, 6, 388, 29, 4, 7, 387, 28, 5, 8, 386, 28, 6, 7, 386, 27, 7, 8, 384, 28, 6, 10, 383, 28, 6, 11, 383, 30, 2, 12, 383, 44, 384, 43, 384, 43, 384, 43, 385, 42, 386, 7, 4, 29, 408, 3, 1, 14, 417, 8, 45701, 1, 424, 3, 422, 5, 413, 4, 3, 7, 413, 14, 412, 15, 407, 20, 397, 3, 5, 21, 399, 27, 402, 24, 408, 18, 414, 11, 849, 7, 401, 10, 5, 12, 399, 29, 397, 30, 397, 30, 397, 30, 397, 30, 397, 29, 399, 27, 401, 21, 412, 12, 49751], "size": [427, 640]}, "area": 2838, "iscrowd": 1, "image_id": 373765, "bbox": [343, 152, 180, 67], "category_id": 52, "id": 905200373765}, {"segmentation": {"counts": [18130, 6, 633, 8, 631, 10, 629, 12, 628, 12, 628, 14, 626, 15, 624, 16, 623, 18, 622, 20, 1, 6, 613, 28, 612, 29, 611, 30, 610, 31, 609, 32, 22, 6, 579, 34, 20, 9, 577, 35, 18, 11, 576, 35, 13, 16, 576, 35, 12, 17, 574, 37, 11, 16, 572, 44, 7, 17, 570, 47, 6, 17, 569, 49, 4, 18, 568, 51, 2, 19, 568, 51, 1, 20, 568, 72, 568, 72, 568, 72, 568, 72, 568, 74, 563, 79, 560, 82, 557, 85, 554, 88, 552, 89, 551, 90, 550, 90, 550, 90, 550, 90, 550, 90, 551, 89, 552, 88, 554, 86, 555, 84, 559, 80, 563, 71, 1, 2, 568, 69, 570, 70, 570, 70, 569, 71, 568, 72, 568, 72, 568, 72, 568, 45, 3, 24, 568, 43, 6, 23, 568, 43, 7, 9, 2, 10, 569, 42, 11, 3, 6, 8, 571, 40, 24, 2, 575, 38, 605, 2, 2, 29, 611, 28, 612, 27, 614, 26, 614, 25, 616, 24, 616, 24, 616, 24, 616, 24, 616, 24, 617, 23, 618, 21, 621, 18, 623, 15, 627, 13, 628, 11, 630, 10, 632, 6, 249374], "size": [640, 494]}, "area": 3860, "iscrowd": 1, "image_id": 23676, "bbox": [28, 188, 76, 89], "category_id": 1, "id": 900100023676}, {"segmentation": {"counts": [119, 4, 22, 9, 13, 9, 2, 8, 345, 1, 1, 24, 5, 18, 16, 12, 2, 4, 5, 16, 5, 55, 200, 7, 2, 22, 84, 28, 2, 22, 13, 103, 197, 7, 1, 24, 12, 8, 62, 54, 3, 115, 194, 32, 9, 14, 58, 55, 3, 118, 191, 33, 7, 16, 57, 56, 2, 119, 190, 33, 6, 18, 37, 8, 9, 58, 1, 121, 189, 33, 5, 20, 33, 14, 6, 181, 188, 33, 4, 22, 31, 16, 4, 183, 188, 33, 2, 24, 29, 18, 1, 186, 187, 33, 2, 24, 28, 206, 185, 1, 1, 33, 1, 26, 26, 208, 183, 35, 2, 26, 25, 209, 181, 38, 1, 26, 25, 209, 178, 41, 1, 26, 24, 210, 175, 72, 23, 211, 172, 74, 23, 211, 171, 74, 24, 211, 170, 75, 23, 212, 167, 79, 20, 213, 167, 80, 13, 220, 166, 82, 9, 223, 165, 83, 8, 224, 164, 84, 7, 225, 163, 85, 6, 225, 164, 86, 4, 225, 164, 87, 3, 226, 164, 87, 2, 226, 165, 86, 3, 225, 166, 86, 3, 224, 167, 86, 3, 222, 169, 86, 3, 221, 170, 86, 3, 220, 171, 85, 4, 219, 172, 85, 4, 218, 173, 84, 5, 230, 161, 83, 6, 233, 159, 82, 6, 234, 158, 82, 7, 234, 158, 81, 7, 235, 157, 80, 8, 236, 157, 80, 8, 236, 156, 82, 5, 237, 156, 83, 3, 239, 156, 83, 2, 239, 156, 84, 1, 239, 157, 83, 1, 239, 157, 83, 1, 240, 156, 83, 1, 240, 156, 83, 1, 239, 157, 83, 1, 239, 157, 83, 1, 239, 157, 83, 1, 239, 157, 83, 1, 239, 158, 82, 1, 238, 159, 82, 1, 237, 161, 81, 1, 237, 161, 81, 2, 235, 162, 81, 2, 234, 163, 81, 1, 234, 164, 81, 1, 232, 166, 81, 2, 228, 169, 81, 1, 221, 177, 81, 1, 216, 182, 81, 2, 212, 185, 80, 2, 208, 190, 79, 3, 206, 192, 78, 4, 203, 193, 79, 5, 201, 194, 80, 5, 201, 193, 81, 5, 201, 192, 82, 5, 200, 192, 83, 7, 197, 192, 83, 8, 195, 194, 83, 8, 194, 194, 85, 6, 194, 195, 85, 5, 194, 196, 85, 5, 194, 196, 85, 5, 194, 196, 86, 4, 194, 196, 86, 4, 194, 196, 85, 5, 193, 197, 85, 5, 192, 198, 85, 5, 189, 201, 85, 5, 186, 204, 84, 6, 185, 205, 84, 6, 184, 206, 85, 5, 184, 206, 85, 5, 184, 207, 84, 5, 183, 208, 84, 5, 182, 210, 84, 4, 182, 210, 84, 4, 181, 212, 83, 4, 180, 214, 82, 4, 180, 214, 82, 5, 179, 214, 83, 5, 178, 214, 83, 5, 177, 215, 82, 6, 176, 216, 82, 6, 176, 216, 83, 3, 177, 217, 83, 3, 126, 4, 46, 218, 82, 4, 122, 15, 39, 219, 81, 4, 119, 22, 34, 220, 81, 4, 117, 25, 32, 220, 83, 3, 115, 29, 30, 220, 83, 3, 113, 32, 28, 221, 82, 4, 112, 34, 26, 222, 82, 4, 110, 37, 24, 223, 83, 3, 109, 39, 23, 223, 83, 3, 108, 41, 21, 224, 82, 4, 109, 40, 21, 224, 82, 4, 109, 41, 19, 225, 82, 4, 109, 41, 18, 226, 82, 4, 109, 41, 18, 227, 81, 5, 108, 41, 17, 228, 81, 5, 109, 40, 16, 229, 82, 3, 111, 40, 14, 230, 82, 3, 112, 39, 12, 232, 81, 4, 112, 7, 7, 25, 10, 234, 81, 4, 19, 1, 93, 5, 9, 24, 9, 236, 80, 4, 129, 22, 9, 236, 81, 3, 131, 20, 8, 238, 80, 3, 133, 18, 7, 239, 81, 3, 132, 19, 6, 240, 80, 3, 132, 19, 5, 242, 80, 3, 132, 266, 79, 3, 132, 267, 78, 2, 134, 267, 77, 2, 134, 269, 75, 2, 134, 270, 74, 1, 23, 1, 111, 268, 76, 1, 135, 267, 77, 1, 136, 265, 78, 1, 24, 1, 111, 264, 79, 1, 24, 1, 111, 262, 81, 1, 136, 259, 84, 1, 137, 257, 85, 1, 138, 255, 226, 253, 228, 251, 230, 249, 232, 247, 238, 242, 238, 241, 239, 241, 238, 242, 238, 242, 237, 243, 91, 1, 145, 243, 91, 1, 145, 243, 91, 2, 144, 243, 91, 2, 144, 243, 91, 2, 143, 244, 91, 1, 143, 246, 90, 1, 143, 246, 90, 1, 142, 248, 89, 1, 141, 249, 89, 1, 140, 251, 88, 1, 140, 252, 87, 1, 140, 253, 86, 1, 139, 256, 84, 1, 139, 259, 81, 1, 139, 264, 76, 1, 138, 265, 76, 1, 138, 265, 76, 1, 138, 265, 76, 1, 137, 266, 76, 1, 137, 266, 76, 1, 137, 266, 76, 1, 137, 266, 214, 267, 212, 268, 211, 269, 211, 269, 211, 269, 211, 270, 209, 271, 208, 272, 208, 272, 207, 273, 74, 1, 131, 274, 74, 1, 130, 275, 74, 1, 128, 277, 202, 278, 201, 279, 200, 281, 199, 281, 198, 282, 198, 282, 198, 282, 197, 284, 196, 284, 195, 285, 194, 286, 193, 287, 72, 1, 118, 290, 71, 1, 118, 290, 71, 1, 118, 290, 190, 290, 189, 291, 189, 292, 187, 293, 187, 294, 185, 295, 184, 296, 184, 296, 183, 297, 69, 1, 112, 299, 68, 1, 111, 300, 68, 1, 110, 302, 67, 1, 110, 302, 67, 1, 110, 303, 66, 1, 110, 303, 66, 2, 108, 305, 65, 1, 109, 305, 63, 3, 108, 307, 59, 7, 106, 308, 60, 6, 106, 308, 60, 6, 104, 310, 61, 5, 103, 311, 61, 5, 103, 311, 62, 4, 103, 312, 61, 3, 104, 312, 61, 3, 103, 313, 61, 3, 103, 312, 62, 3, 102, 312, 63, 3, 102, 312, 63, 3, 101, 312, 65, 3, 100, 312, 65, 3, 99, 313, 66, 2, 98, 314, 66, 2, 98, 314, 66, 2, 97, 315, 66, 1, 97, 316, 66, 1, 96, 317, 66, 1, 95, 318, 66, 1, 95, 318, 66, 1, 95, 318, 66, 1, 94, 319, 66, 1, 94, 319, 66, 1, 93, 320, 66, 1, 93, 320, 66, 2, 91, 321, 66, 2, 90, 322, 66, 2, 89, 323, 66, 1, 89, 324, 66, 1, 89, 324, 66, 1, 89, 324, 66, 1, 89, 324, 66, 1, 88, 325, 66, 1, 87, 327, 65, 1, 87, 327, 65, 1, 86, 328, 65, 2, 84, 329, 65, 2, 83, 331, 64, 1, 83, 332, 64, 1, 83, 332, 64, 1, 83, 332, 64, 1, 83, 332, 64, 1, 82, 334, 63, 1, 82, 334, 63, 1, 81, 336, 62, 1, 80, 337, 62, 1, 80, 338, 61, 3, 77, 339, 61, 2, 77, 341, 60, 1, 77, 342, 60, 1, 75, 345, 59, 1, 75, 345, 59, 1, 75, 345, 59, 1, 74, 347, 58, 1, 74, 347, 58, 1, 73, 348, 58, 1, 72, 349, 58, 1, 72, 350, 57, 1, 71, 351, 57, 2, 69, 353, 56, 2, 68, 354, 56, 2, 68, 355, 55, 1, 68, 356, 55, 2, 66, 358, 54, 2, 65, 359, 54, 1, 65, 360, 54, 1, 65, 360, 54, 1, 65, 360, 54, 1, 65, 361, 53, 1, 64, 362, 53, 1, 64, 362, 53, 1, 63, 363, 53, 1, 62, 364, 53, 1, 62, 364, 53, 1, 61, 365, 53, 2, 59, 366, 53, 2, 60, 365, 53, 2, 60, 365, 53, 2, 61, 364, 53, 2, 61, 364, 53, 1, 62, 363, 54, 1, 62, 363, 54, 1, 63, 362, 54, 1, 63, 362, 54, 1, 62, 363, 54, 1, 62, 363, 54, 1, 62, 363, 54, 1, 62, 362, 55, 1, 62, 361, 56, 1, 61, 361, 57, 2, 59, 361, 58, 2, 59, 360, 59, 2, 59, 359, 60, 1, 59, 360, 60, 1, 58, 360, 61, 1, 58, 359, 62, 1, 57, 360, 62, 1, 56, 360, 63, 1, 55, 361, 63, 1, 54, 362, 63, 1, 53, 363, 63, 1, 52, 364, 63, 2, 50, 365, 63, 2, 49, 366, 63, 1, 49, 367, 63, 1, 49, 367, 63, 1, 48, 368, 63, 2, 46, 369, 63, 2, 45, 370, 63, 1, 46, 370, 63, 1, 46, 370, 63, 1, 46, 370, 63, 2, 45, 370, 63, 2, 44, 371, 63, 1, 45, 371, 61, 4, 43, 373, 58, 6, 43, 373, 59, 4, 43, 374, 59, 4, 42, 375, 58, 5, 41, 376, 58, 6, 40, 376, 58, 6, 40, 376, 58, 5, 40, 377, 58, 6, 39, 377, 58, 6, 39, 378, 57, 5, 40, 378, 58, 6, 37, 380, 57, 6, 37, 380, 57, 5, 37, 381, 57, 4, 37, 382, 57, 4, 37, 383, 56, 4, 38, 382, 56, 4, 38, 382, 56, 4, 38, 382, 56, 4, 38, 383, 55, 4, 38, 383, 55, 4, 38, 384, 54, 4, 38, 384, 54, 4, 38, 385, 54, 3, 37, 387, 53, 3, 37, 388, 52, 3, 36, 326, 6, 57, 52, 3, 36, 325, 8, 57, 51, 3, 36, 324, 10, 57, 50, 3, 36, 323, 12, 56, 51, 2, 36, 323, 12, 56, 51, 2, 37, 321, 14, 55, 50, 3, 37, 320, 15, 56, 49, 3, 36, 320, 16, 56, 49, 3, 36, 319, 17, 56, 49, 4, 35, 319, 18, 55, 49, 6, 33, 318, 20, 54, 49, 9, 30, 317, 22, 53, 50, 13, 24, 43, 10, 264, 23, 53, 50, 12, 25, 40, 16, 260, 24, 52, 52, 11, 25, 39, 18, 259, 25, 51, 52, 11, 26, 37, 20, 257, 26, 52, 51, 10, 27, 36, 22, 255, 28, 51, 51, 10, 27, 35, 24, 253, 29, 51, 51, 10, 27, 34, 26, 252, 15, 1, 14, 50, 51, 10, 27, 33, 27, 251, 16, 2, 13, 51, 50, 10, 27, 33, 28, 250, 15, 3, 14, 50, 49, 11, 27, 32, 29, 248, 16, 4, 14, 50, 49, 12, 26, 31, 30, 247, 16, 6, 14, 49, 50, 11, 25, 31, 31, 247, 16, 6, 14, 49, 50, 11, 25, 30, 33, 246, 15, 9, 12, 48, 51, 11, 24, 30, 40, 239, 15, 10, 13, 46, 52, 11, 25, 28, 44, 234, 16, 11, 14, 45, 52, 10, 26, 27, 46, 233, 15, 12, 15, 44, 52, 10, 26, 26, 48, 231, 16, 13, 14, 43, 53, 10, 27, 24, 50, 230, 15, 14, 14, 43, 53, 10, 27, 23, 52, 228, 15, 16, 13, 43, 53, 10, 27, 23, 53, 225, 16, 18, 13, 41, 54, 10, 38, 1, 9, 1, 54, 225, 15, 19, 14, 39, 55, 10, 104, 223, 16, 19, 15, 38, 55, 10, 104, 223, 15, 21, 14, 38, 55, 10, 104, 222, 16, 22, 13, 38, 55, 10, 104, 220, 16, 24, 13, 37, 56, 10, 105, 219, 15, 25, 14, 35, 57, 10, 105, 218, 16, 26, 14, 34, 57, 10, 105, 218, 15, 27, 14, 34, 57, 10, 105, 217, 16, 28, 14, 33, 57, 11, 104, 216, 15, 31, 13, 33, 57, 11, 104, 215, 15, 32, 13, 32, 58, 11, 104, 214, 16, 32, 14, 30, 59, 10, 105, 214, 16, 32, 15, 29, 59, 10, 105, 213, 16, 34, 14, 28, 60, 10, 104, 213, 15, 37, 13, 28, 60, 10, 104, 212, 16, 38, 12, 28, 60, 10, 104, 212, 15, 39, 13, 26, 61, 10, 104, 211, 16, 39, 14, 24, 62, 10, 104, 210, 16, 40, 15, 23, 62, 10, 105, 208, 16, 42, 14, 23, 62, 10, 105, 207, 16, 44, 13, 23, 62, 10, 104, 208, 15, 45, 13, 22, 63, 10, 104, 208, 15, 46, 13, 21, 13, 2, 48, 10, 104, 206, 16, 47, 14, 19, 14, 2, 48, 10, 104, 205, 16, 48, 15, 18, 13, 3, 48, 10, 104, 204, 16, 50, 14, 18, 12, 4, 48, 10, 103, 205, 16, 51, 13, 18, 12, 4, 48, 10, 102, 206, 15, 52, 14, 16, 13, 4, 48, 10, 102, 204, 16, 53, 14, 15, 14, 5, 47, 10, 102, 203, 16, 55, 14, 14, 13, 6, 47, 10, 103, 201, 16, 56, 14, 13, 14, 7, 46, 10, 103, 201, 16, 57, 14, 12, 13, 8, 46, 7, 106, 201, 15, 59, 13, 12, 13, 8, 46, 6, 107, 199, 16, 60, 14, 10, 14, 8, 46, 5, 108, 198, 16, 61, 14, 10, 14, 8, 46, 4, 108, 199, 15, 63, 14, 8, 14, 9, 46, 3, 109, 198, 16, 63, 14, 8, 13, 10, 46, 2, 110, 198, 15, 66, 12, 8, 13, 10, 46, 2, 109, 197, 16, 67, 13, 7, 13, 10, 46, 1, 111, 195, 16, 68, 14, 5, 13, 11, 46, 1, 113, 193, 15, 69, 14, 4, 14, 12, 45, 1, 116, 189, 16, 70, 14, 3, 13, 13, 45, 1, 117, 188, 15, 71, 14, 3, 12, 15, 44, 1, 118, 186, 15, 73, 13, 3, 12, 15, 164, 184, 15, 75, 13, 1, 13, 16, 164, 182, 16, 75, 27, 17, 164, 181, 15, 76, 27, 17, 164, 180, 15, 78, 25, 17, 166, 178, 16, 79, 23, 18, 166, 177, 15, 81, 23, 17, 167, 176, 16, 81, 23, 17, 167, 120, 3, 2, 11, 40, 15, 83, 22, 17, 168, 105, 31, 38, 16, 83, 21, 18, 168, 104, 33, 36, 16, 85, 19, 19, 168, 102, 36, 34, 15, 88, 18, 19, 167, 102, 37, 33, 16, 88, 18, 19, 167, 75, 6, 18, 40, 33, 15, 89, 17, 20, 44, 1, 122, 74, 8, 15, 42, 32, 16, 89, 17, 20, 44, 1, 122, 73, 11, 12, 43, 31, 16, 91, 16, 20, 44, 1, 122, 72, 13, 8, 46, 30, 15, 94, 14, 21, 44, 1, 121, 73, 16, 4, 47, 29, 16, 95, 12, 22, 44, 2, 121, 71, 19, 1, 48, 29, 16, 95, 12, 22, 44, 2, 121, 70, 69, 28, 16, 96, 12, 22, 44, 3, 119, 70, 55, 2, 13, 27, 16, 97, 12, 22, 44, 3, 119, 69, 43, 15, 13, 26, 15, 100, 10, 23, 44, 4, 118, 69, 41, 18, 12, 25, 16, 101, 8, 24, 44, 4, 118, 67, 40, 21, 11, 26, 16, 103, 3, 27, 44, 5, 117, 66, 40, 21, 12, 25, 16, 134, 44, 6, 115, 66, 40, 22, 12, 24, 16, 135, 44, 6, 114, 66, 43, 20, 13, 22, 16, 136, 44, 6, 114, 66, 44, 19, 12, 23, 15, 137, 44, 5, 114, 67, 45, 18, 12, 22, 16, 137, 44, 5, 114, 67, 48, 15, 12, 9, 6, 7, 15, 138, 44, 4, 115, 67, 50, 13, 12, 8, 8, 4, 16, 139, 44, 4, 115, 67, 51, 12, 12, 3, 14, 2, 16, 140, 44, 3, 116, 67, 26, 1, 27, 8, 13, 1, 17, 1, 15, 141, 44, 4, 114, 68, 25, 4, 26, 7, 31, 1, 15, 141, 44, 3, 115, 68, 23, 7, 26, 7, 45, 142, 44, 3, 115, 68, 21, 12, 27, 3, 44, 143, 44, 3, 115, 68, 20, 15, 26, 1, 44, 145, 43, 2, 115, 69, 19, 17, 70, 145, 43, 2, 115, 1, 8, 60, 18, 21, 66, 147, 42, 1, 128, 58, 15, 24, 64, 148, 42, 2, 128, 58, 14, 26, 61, 150, 41, 2, 129, 57, 13, 30, 57, 151, 41, 2, 130, 56, 13, 31, 38, 2, 16, 152, 40, 2, 131, 55, 12, 33, 35, 4, 15, 154, 39, 1, 133, 55, 11, 37, 29, 5, 16, 155, 38, 1, 133, 56, 9, 39, 28, 3, 16, 159, 36, 2, 133, 56, 7, 41, 28, 2, 15, 163, 33, 2, 133, 108, 41, 170, 26, 2, 133, 108, 40, 171, 26, 2, 133, 110, 38, 171, 26, 1, 135, 112, 33, 173, 26, 1, 116, 1, 18, 113, 31, 174, 26, 1, 104, 3, 8, 2, 18, 115, 29, 174, 26, 1, 102, 7, 5, 3, 18, 118, 26, 174, 26, 1, 100, 12, 1, 4, 18, 119, 24, 175, 26, 2, 97, 20, 16, 121, 21, 177, 26, 2, 95, 22, 16, 124, 17, 178, 26, 2, 95, 22, 16, 125, 16, 178, 26, 2, 95, 22, 16, 127, 14, 178, 26, 1, 89, 2, 5, 22, 16, 130, 10, 179, 26, 2, 88, 29, 15, 132, 8, 180, 26, 3, 86, 30, 15, 134, 3, 183, 26, 3, 86, 30, 15, 320, 26, 3, 86, 30, 15, 320, 26, 3, 87, 29, 15, 320, 26, 2, 88, 29, 14, 321, 26, 2, 89, 28, 14, 321, 26, 3, 88, 28, 14, 321, 26, 2, 96, 21, 13, 322, 26, 2, 97, 20, 13, 322, 26, 2, 98, 19, 13, 322, 26, 1, 100, 10, 5, 3, 13, 322, 26, 1, 101, 4, 12, 1, 12, 323, 26, 1, 129, 324, 26, 1, 129, 324, 26, 2, 127, 325, 26, 2, 126, 325, 27, 2, 127, 323, 28, 2, 127, 323, 28, 1, 128, 322, 29, 1, 127, 323, 29, 1, 127, 323, 28, 3, 126, 323, 27, 4, 126, 323, 27, 4, 125, 324, 27, 4, 127, 322, 26, 4, 129, 321, 26, 4, 102, 18, 10, 320, 26, 4, 102, 18, 11, 319, 26, 4, 101, 20, 11, 318, 26, 4, 101, 20, 12, 317, 26, 4, 101, 20, 12, 317, 27, 4, 99, 21, 13, 316, 27, 4, 94, 26, 13, 316, 26, 5, 94, 26, 13, 316, 26, 5, 93, 28, 12, 316, 26, 5, 93, 28, 13, 315, 26, 4, 94, 28, 13, 315, 26, 4, 93, 29, 12, 316, 26, 4, 93, 29, 12, 316, 26, 4, 93, 29, 12, 316, 27, 3, 99, 24, 11, 316, 27, 4, 100, 22, 11, 316, 26, 5, 100, 22, 10, 317, 26, 5, 100, 22, 10, 317, 26, 5, 103, 19, 11, 316, 26, 5, 102, 19, 12, 316, 26, 5, 101, 16, 16, 316, 26, 4, 102, 17, 15, 316, 26, 4, 101, 20, 14, 315, 27, 3, 96, 26, 13, 315, 27, 4, 93, 29, 11, 316, 26, 6, 91, 29, 12, 316, 26, 6, 91, 28, 13, 316, 27, 5, 91, 27, 14, 316, 27, 5, 91, 27, 14, 316, 26, 6, 91, 27, 13, 317, 26, 5, 95, 2, 4, 17, 14, 317, 26, 4, 103, 7, 4, 4, 16, 316, 26, 4, 106, 2, 14, 2, 10, 316, 27, 3, 120, 4, 10, 316, 28, 2, 118, 6, 10, 316, 28, 3, 109, 14, 11, 315, 29, 1, 106, 18, 11, 307, 37, 1, 104, 21, 9, 305, 40, 1, 102, 23, 9, 304, 41, 1, 92, 4, 3, 26, 9, 303, 42, 1, 91, 34, 9, 302, 43, 1, 91, 34, 9, 292, 53, 1, 90, 35, 10, 288, 56, 1, 89, 36, 10, 286, 58, 1, 88, 37, 9, 285, 60, 1, 88, 37, 9, 284, 61, 1, 88, 37, 9, 282, 63, 1, 88, 36, 10, 281, 64, 2, 87, 36, 10, 280, 65, 1, 90, 34, 9, 280, 66, 1, 95, 28, 10, 279, 67, 1, 100, 20, 14, 277, 68, 1, 102, 6, 26, 277, 68, 1, 134, 276, 69, 1, 134, 276, 69, 1, 135, 275, 69, 1, 135, 275, 69, 1, 134, 276, 69, 1, 134, 276, 69, 1, 134, 276, 69, 2, 133, 276, 69, 1, 135, 275, 69, 1, 135, 275, 69, 1, 134, 277, 68, 1, 134, 277, 68, 1, 134, 278, 67, 1, 134, 278, 67, 1, 134, 279, 66, 1, 133, 281, 20, 1, 44, 1, 126, 2, 5, 282, 17, 3, 44, 1, 113, 1, 9, 5, 6, 283, 13, 5, 44, 1, 111, 17, 6, 286, 7, 8, 44, 1, 109, 19, 6, 301, 44, 3, 106, 20, 6, 301, 44, 2, 105, 22, 7, 300, 44, 1, 104, 24, 7, 300, 44, 2, 93, 34, 6, 301, 44, 2, 92, 36, 5, 301, 44, 1, 92, 37, 6, 300, 44, 1, 92, 37, 6, 301, 43, 1, 91, 38, 6, 301, 43, 1, 90, 39, 6, 302, 42, 1, 89, 40, 7, 301, 42, 2, 88, 29, 18, 302, 41, 2, 88, 18, 29, 303, 40, 2, 88, 7, 40, 304, 39, 2, 135, 306, 37, 1, 137, 308, 10, 1, 23, 2, 136, 319, 23, 2, 135, 320, 23, 3, 134, 321, 22, 3, 135, 320, 22, 4, 134, 320, 22, 3, 135, 320, 22, 3, 135, 320, 22, 2, 137, 320, 21, 3, 136, 320, 21, 2, 108, 2, 26, 321, 21, 2, 107, 3, 27, 320, 21, 2, 108, 2, 27, 320, 21, 2, 109, 1, 27, 321, 20, 1, 110, 1, 28, 320, 20, 1, 139, 321, 19, 2, 138, 321, 19, 2, 138, 322, 18, 2, 139, 322, 17, 2, 139, 323, 16, 2, 139, 325, 14, 2, 138, 329, 8, 4, 139, 341, 139, 342, 138, 342, 138, 342, 137, 343, 136, 345, 135, 346, 133, 348, 16, 2, 113, 351, 12, 6, 45, 2, 64, 344], "size": [480, 640]}, "area": 122489, "iscrowd": 1, "image_id": 23015, "bbox": [0, 0, 639, 479], "category_id": 1, "id": 900100023015}, {"segmentation": {"counts": [64330, 8, 416, 11, 415, 12, 414, 13, 413, 14, 413, 14, 412, 15, 411, 17, 409, 21, 406, 21, 405, 22, 405, 22, 405, 22, 404, 23, 404, 23, 403, 24, 402, 25, 402, 25, 401, 26, 401, 26, 401, 26, 401, 13, 1, 12, 401, 13, 1, 12, 401, 13, 1, 12, 401, 12, 2, 12, 401, 2, 6, 4, 2, 12, 401, 2, 6, 4, 2, 12, 401, 2, 5, 6, 1, 12, 402, 1, 5, 6, 1, 12, 408, 19, 408, 19, 408, 20, 407, 20, 407, 20, 407, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 376, 6, 25, 7, 1, 12, 375, 8, 24, 7, 1, 12, 375, 15, 17, 7, 1, 12, 375, 21, 11, 7, 1, 12, 374, 23, 10, 7, 1, 12, 374, 24, 9, 7, 1, 12, 374, 24, 9, 7, 1, 12, 373, 25, 9, 7, 1, 12, 373, 25, 9, 7, 1, 12, 373, 25, 9, 7, 1, 12, 372, 25, 10, 7, 1, 12, 373, 24, 10, 7, 1, 12, 375, 22, 10, 7, 1, 12, 378, 20, 9, 7, 1, 12, 380, 4, 1, 12, 10, 7, 1, 12, 388, 7, 12, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 407, 7, 1, 12, 407, 6, 2, 12, 407, 6, 2, 12, 407, 6, 2, 12, 407, 6, 2, 12, 407, 6, 2, 12, 407, 6, 2, 12, 407, 6, 2, 12, 406, 6, 3, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 6, 3, 12, 406, 6, 3, 12, 406, 5, 4, 12, 406, 6, 3, 12, 406, 6, 3, 12, 406, 6, 3, 12, 406, 6, 3, 12, 406, 6, 2, 13, 406, 6, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 7, 2, 12, 406, 6, 3, 12, 406, 5, 4, 12, 406, 3, 6, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 12, 415, 11, 416, 9, 417, 10, 417, 10, 417, 10, 417, 10, 418, 9, 417, 10, 417, 10, 420, 7, 425, 2, 426, 1, 426, 1, 426, 1, 426, 1, 425, 2, 425, 1, 426, 1, 116502, 7, 419, 9, 417, 13, 413, 15, 412, 16, 411, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 16, 410, 17, 410, 17, 410, 17, 410, 17, 410, 17, 410, 16, 411, 15, 412, 15, 412, 16, 411, 17, 410, 18, 409, 18, 409, 18, 399, 7, 3, 18, 398, 29, 397, 30, 396, 31, 396, 30, 397, 29, 398, 27, 400, 23, 404, 21, 406, 18, 409, 19, 408, 19, 409, 18, 409, 18, 409, 18, 409, 17, 410, 18, 409, 17, 411, 17, 410, 17, 410, 17, 410, 17, 410, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 411, 16, 412, 15, 413, 14, 415, 13, 413, 13, 414, 13, 414, 13, 414, 13, 414, 12, 415, 12, 415, 12, 416, 10, 418, 8, 421, 4, 10033], "size": [427, 640]}, "area": 4099, "iscrowd": 1, "image_id": 579659, "bbox": [150, 202, 466, 90], "category_id": 67, "id": 906700579659}, {"segmentation": {"counts": [5438, 11, 467, 14, 465, 16, 463, 18, 461, 19, 439, 6, 16, 19, 438, 8, 15, 19, 437, 10, 1, 6, 6, 20, 436, 19, 4, 21, 436, 20, 3, 21, 436, 21, 2, 21, 436, 21, 2, 21, 436, 21, 2, 21, 436, 22, 1, 21, 436, 22, 1, 21, 436, 22, 1, 21, 436, 22, 1, 21, 435, 23, 1, 21, 435, 23, 1, 21, 435, 45, 435, 45, 435, 45, 436, 44, 435, 45, 435, 45, 435, 45, 435, 45, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 46, 434, 45, 435, 25, 1, 19, 435, 25, 2, 18, 434, 26, 4, 16, 434, 26, 7, 13, 434, 26, 7, 12, 435, 26, 7, 12, 435, 26, 7, 12, 435, 26, 7, 12, 435, 26, 8, 10, 436, 26, 9, 8, 437, 26, 11, 4, 439, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 454, 26, 455, 25, 456, 24, 458, 22, 468, 12, 469, 10, 471, 8, 474, 4, 47984, 1, 478, 8, 1, 9, 461, 20, 459, 22, 458, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 23, 457, 24, 456, 25, 455, 25, 455, 25, 455, 25, 455, 25, 7, 17, 431, 25, 6, 19, 430, 25, 5, 21, 429, 25, 4, 23, 429, 24, 4, 23, 430, 22, 5, 24, 430, 20, 6, 24, 431, 7, 14, 29, 431, 3, 17, 29, 432, 2, 17, 29, 431, 3, 17, 30, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 430, 50, 431, 49, 431, 49, 430, 49, 431, 26, 2, 22, 430, 26, 2, 23, 429, 26, 2, 24, 428, 52, 428, 52, 428, 52, 428, 52, 428, 52, 428, 52, 428, 53, 427, 53, 427, 53, 427, 53, 428, 52, 429, 51, 431, 4, 15, 2, 2, 26, 450, 2, 3, 25, 450, 3, 2, 25, 429, 1, 20, 4, 1, 25, 428, 52, 428, 52, 428, 52, 428, 52, 428, 52, 427, 53, 427, 53, 427, 53, 427, 53, 427, 52, 428, 27, 1, 23, 429, 26, 3, 21, 430, 25, 4, 20, 432, 10, 1, 4, 2, 5, 7, 19, 433, 8, 22, 16, 436, 4, 26, 12, 474, 4, 23031, 11, 468, 17, 462, 25, 454, 27, 453, 29, 451, 29, 451, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 450, 30, 451, 29, 452, 28, 453, 27, 453, 27, 453, 11, 7, 9, 454, 3, 1453, 6, 941, 1, 479, 2, 15, 11, 452, 29, 448, 1, 1, 31, 447, 1, 1, 32, 446, 1, 1, 32, 446, 34, 446, 34, 446, 34, 446, 34, 447, 33, 446, 34, 445, 35, 444, 36, 444, 36, 444, 36, 444, 35, 445, 36, 444, 37, 443, 38, 442, 39, 441, 39, 441, 39, 442, 38, 443, 37, 444, 36, 443, 37, 442, 38, 442, 37, 443, 37, 443, 36, 444, 34, 446, 32, 444, 31, 429, 6, 10, 2, 1, 31, 429, 8, 3, 39, 429, 10, 1, 39, 429, 33, 3, 7, 2, 4, 431, 33, 447, 33, 447, 33, 2, 1, 444, 33, 1, 2, 444, 36, 444, 36, 444, 44, 435, 70, 410, 71, 409, 72, 408, 73, 407, 73, 407, 73, 407, 73, 407, 5, 26, 42, 407, 5, 26, 42, 407, 7, 24, 42, 407, 31, 1, 41, 407, 73, 407, 7, 24, 42, 407, 4, 27, 42, 407, 5, 16, 52, 407, 5, 26, 42, 407, 5, 26, 42, 407, 6, 1, 66, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 73, 407, 74, 406, 74, 406, 74, 406, 74, 406, 74, 406, 73, 407, 73, 407, 73, 407, 74, 406, 74, 406, 74, 406, 74, 406, 37, 1, 36, 406, 37, 3, 33, 407, 30, 5, 2, 2, 34, 407, 10, 25, 2, 1, 35, 408, 7, 28, 1, 1, 34, 409, 7, 28, 1, 1, 34, 409, 7, 28, 1, 1, 33, 410, 8, 27, 1, 1, 32, 411, 8, 26, 2, 2, 27, 416, 25, 2, 8, 3, 25, 418, 34, 12, 4, 7, 4, 421, 32, 448, 32, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 34, 446, 34, 446, 34, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 33, 447, 32, 448, 31, 450, 22, 1, 5, 453, 15, 2, 2, 463, 4, 34567, 10, 467, 16, 460, 22, 455, 27, 450, 31, 446, 35, 443, 38, 440, 41, 437, 44, 435, 46, 433, 47, 432, 49, 430, 50, 429, 52, 428, 52, 427, 54, 426, 54, 425, 55, 400, 7, 1, 13, 4, 55, 396, 2, 1, 23, 2, 56, 393, 30, 1, 56, 27, 10, 352, 91, 24, 16, 346, 95, 21, 20, 343, 96, 19, 24, 340, 97, 18, 26, 337, 99, 17, 28, 335, 100, 16, 30, 333, 101, 15, 32, 331, 102, 14, 34, 330, 44, 1, 58, 13, 34, 330, 44, 1, 58, 12, 36, 329, 44, 2, 57, 12, 37, 328, 103, 11, 38, 328, 103, 11, 39, 327, 103, 10, 41, 327, 102, 10, 42, 327, 101, 9, 44, 327, 100, 8, 45, 329, 98, 7, 47, 329, 96, 7, 48, 329, 44, 1, 50, 8, 49, 327, 45, 2, 47, 9, 50, 326, 46, 4, 46, 8, 51, 325, 46, 6, 45, 6, 52, 325, 46, 7, 45, 5, 52, 325, 46, 6, 47, 3, 53, 325, 46, 5, 49, 2, 53, 325, 46, 5, 50, 1, 53, 325, 46, 5, 50, 1, 53, 325, 49, 2, 104, 325, 50, 1, 104, 325, 155, 325, 155, 325, 155, 326, 153, 328, 152, 330, 150, 331, 148, 334, 146, 336, 143, 339, 140, 339, 43, 1, 97, 332, 50, 1, 50, 1, 45, 332, 51, 1, 50, 2, 43, 332, 103, 2, 42, 332, 103, 4, 39, 334, 103, 5, 36, 336, 54, 1, 48, 6, 33, 338, 54, 2, 46, 9, 27, 342, 55, 1, 46, 11, 18, 349, 101, 14, 14, 351, 100, 19, 6, 356, 99, 382, 54, 1, 43, 384, 52, 1, 43, 389, 47, 1, 43, 389, 47, 1, 42, 390, 47, 1, 41, 391, 46, 2, 40, 392, 17, 2, 26, 3, 38, 394, 43, 6, 34, 398, 40, 8, 31, 401, 39, 9, 27, 405, 37, 12, 24, 407, 36, 14, 19, 411, 35, 17, 9, 419, 35, 445, 34, 446, 33, 447, 31, 449, 29, 451, 28, 453, 26, 455, 25, 457, 22, 460, 19, 461, 17, 463, 16, 465, 14, 467, 11, 471, 7, 364], "size": [480, 640]}, "area": 22985, "iscrowd": 1, "image_id": 130949, "bbox": [11, 85, 628, 158], "category_id": 84, "id": 908400130949}, {"segmentation": {"counts": [25923, 9, 417, 11, 410, 18, 408, 20, 406, 21, 405, 22, 405, 22, 405, 22, 405, 22, 404, 23, 404, 23, 404, 22, 405, 22, 386, 7, 8, 26, 383, 11, 4, 29, 382, 44, 382, 44, 382, 45, 381, 46, 380, 47, 379, 47, 379, 47, 380, 45, 382, 44, 382, 44, 383, 42, 385, 41, 386, 41, 386, 41, 386, 40, 386, 40, 386, 39, 388, 38, 389, 36, 391, 30, 397, 30, 397, 30, 397, 30, 398, 29, 399, 28, 400, 27, 400, 27, 400, 26, 402, 24, 404, 23, 405, 22, 405, 22, 406, 20, 408, 19, 410, 17, 410, 17, 411, 16, 76, 1, 334, 16, 75, 3, 334, 15, 74, 9, 8, 4, 318, 13, 74, 11, 6, 13, 312, 10, 75, 12, 5, 14, 315, 4, 77, 13, 3, 16, 395, 14, 1, 18, 394, 34, 393, 35, 392, 36, 391, 37, 390, 37, 389, 39, 387, 40, 387, 40, 386, 41, 384, 43, 384, 43, 383, 44, 383, 44, 381, 25, 7, 13, 381, 21, 16, 8, 381, 22, 18, 4, 383, 22, 404, 23, 402, 25, 400, 27, 399, 28, 398, 28, 399, 18, 1, 8, 399, 19, 3, 4, 401, 18, 409, 17, 411, 16, 411, 16, 411, 16, 412, 15, 412, 15, 413, 14, 414, 12, 417, 9, 420, 5, 5926, 7, 419, 9, 417, 11, 415, 13, 407, 20, 406, 24, 402, 26, 400, 28, 399, 29, 397, 31, 395, 32, 394, 34, 393, 35, 392, 36, 391, 36, 391, 36, 391, 37, 390, 37, 391, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 35, 392, 34, 393, 33, 394, 32, 395, 31, 396, 31, 396, 30, 397, 29, 399, 27, 401, 26, 403, 23, 406, 21, 406, 20, 407, 19, 408, 19, 408, 18, 409, 17, 410, 17, 410, 16, 410, 17, 409, 18, 409, 18, 408, 19, 406, 21, 405, 21, 405, 22, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 23, 404, 22, 405, 21, 406, 20, 407, 19, 408, 18, 410, 16, 411, 14, 413, 14, 413, 14, 413, 14, 414, 12, 416, 10, 419, 6, 422, 6, 417, 10, 416, 11, 415, 12, 414, 13, 414, 13, 413, 14, 412, 15, 411, 16, 411, 15, 412, 15, 412, 15, 412, 15, 412, 15, 412, 15, 411, 16, 410, 17, 409, 17, 409, 18, 408, 19, 405, 22, 404, 23, 403, 24, 402, 24, 403, 24, 403, 24, 403, 24, 403, 23, 404, 23, 403, 25, 402, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 401, 26, 402, 25, 402, 26, 402, 26, 401, 26, 402, 24, 404, 21, 407, 18, 410, 15, 413, 12, 417, 8, 420, 3, 3025, 2, 425, 3, 424, 5, 422, 6, 421, 8, 415, 14, 408, 20, 403, 26, 396, 33, 390, 38, 387, 41, 384, 43, 383, 43, 383, 43, 383, 43, 383, 44, 382, 44, 381, 45, 381, 30, 4, 11, 381, 12, 26, 6, 382, 11, 415, 10, 416, 10, 415, 10, 416, 10, 416, 10, 416, 11, 415, 11, 415, 11, 414, 12, 415, 12, 415, 11, 415, 11, 416, 10, 417, 10, 417, 9, 418, 8, 419, 7, 420, 7, 420, 6, 422, 5, 422, 5, 422, 5, 422, 5, 422, 6, 421, 6, 421, 6, 422, 5, 422, 5, 422, 5, 422, 5, 422, 5, 423, 4, 424, 4, 425, 2, 121843], "size": [427, 640]}, "area": 6993, "iscrowd": 1, "image_id": 503212, "bbox": [60, 260, 294, 137], "category_id": 16, "id": 901600503212}, {"segmentation": {"counts": [58766, 1, 422, 6, 418, 9, 417, 11, 416, 11, 416, 12, 415, 12, 415, 12, 415, 13, 414, 13, 414, 17, 410, 19, 408, 19, 408, 12, 415, 11, 416, 10, 418, 8, 420, 7, 421, 6, 423, 3, 26113, 4, 421, 7, 417, 25, 400, 33, 392, 38, 387, 41, 384, 47, 378, 50, 374, 54, 371, 57, 368, 59, 367, 60, 367, 60, 367, 17, 3, 40, 367, 16, 6, 5, 2, 31, 367, 14, 29, 17, 368, 10, 35, 13, 370, 8, 39, 9, 373, 3, 44, 4, 5947, 10, 414, 15, 407, 32, 393, 36, 386, 42, 379, 49, 377, 51, 374, 65, 358, 70, 356, 76, 350, 78, 348, 80, 347, 81, 346, 81, 346, 81, 346, 12, 2, 67, 346, 11, 5, 65, 346, 11, 7, 1, 1, 61, 347, 9, 12, 59, 348, 7, 14, 57, 351, 4, 16, 56, 373, 3, 9, 42, 386, 40, 390, 36, 398, 26, 410, 12, 55008, 8, 418, 10, 416, 12, 414, 14, 412, 15, 412, 15, 411, 16, 411, 16, 411, 16, 411, 16, 411, 15, 412, 14, 413, 13, 414, 13, 414, 13, 13, 8, 393, 13, 12, 10, 393, 12, 11, 12, 392, 12, 10, 13, 392, 12, 9, 15, 392, 10, 10, 16, 392, 8, 11, 16, 394, 3, 14, 16, 391, 6, 12, 18, 389, 47, 379, 49, 377, 51, 375, 53, 374, 53, 374, 54, 373, 55, 372, 55, 372, 55, 372, 55, 372, 55, 373, 55, 373, 55, 374, 53, 379, 48, 379, 48, 379, 48, 380, 47, 381, 46, 383, 18, 7, 18, 385, 11, 22, 8, 388, 7, 26, 3, 14044, 12, 414, 14, 412, 16, 410, 18, 409, 20, 407, 21, 406, 22, 405, 23, 404, 24, 403, 25, 403, 25, 403, 26, 403, 25, 403, 25, 404, 3, 3, 10, 4, 3, 411, 2, 20512, 14, 410, 21, 405, 52, 374, 54, 373, 55, 372, 56, 371, 56, 372, 55, 375, 52, 379, 48, 385, 42, 392, 35, 398, 28, 406, 20, 5477, 3, 396, 1, 23, 8, 394, 6, 15, 13, 392, 11, 7, 17, 391, 36, 391, 36, 391, 36, 391, 36, 391, 36, 391, 35, 392, 34, 394, 31, 397, 29, 400, 26, 403, 21, 24044], "size": [427, 640]}, "area": 5644, "iscrowd": 1, "image_id": 450281, "bbox": [137, 259, 446, 124], "category_id": 1, "id": 900100450281}, {"segmentation": {"counts": [5421, 4, 423, 6, 422, 6, 421, 7, 420, 8, 420, 8, 420, 7, 421, 6, 422, 6, 422, 6, 422, 6, 423, 4, 48787, 4, 423, 6, 422, 6, 422, 6, 422, 6, 422, 6, 423, 4, 4710, 4, 423, 6, 422, 6, 416, 4, 2, 6, 415, 6, 1, 6, 415, 6, 1, 6, 415, 6, 2, 4, 416, 6, 422, 6, 423, 4, 13265, 4, 423, 6, 422, 6, 422, 6, 422, 6, 422, 6, 423, 4, 4706, 4, 423, 6, 422, 6, 422, 6, 422, 6, 422, 6, 423, 4, 1279, 4, 423, 6, 422, 6, 422, 6, 422, 6, 422, 6, 423, 4, 17971, 4, 423, 6, 422, 6, 422, 6, 422, 6, 422, 6, 423, 4, 7699, 4, 423, 6, 422, 6, 422, 6, 422, 6, 422, 6, 423, 4, 146091], "size": [428, 640]}, "area": 378, "iscrowd": 1, "image_id": 168001, "bbox": [12, 280, 286, 12], "category_id": 19, "id": 901900168001}, {"segmentation": {"counts": [19802, 10, 417, 12, 414, 15, 412, 17, 410, 18, 409, 19, 409, 20, 407, 26, 401, 30, 398, 31, 397, 32, 396, 33, 395, 33, 395, 33, 395, 33, 395, 33, 396, 32, 397, 31, 399, 28, 404, 23, 406, 12, 1, 7, 410, 8, 13720, 5, 421, 7, 420, 8, 412, 16, 394, 11, 6, 18, 7, 1, 384, 13, 4, 20, 4, 4, 382, 15, 2, 29, 381, 17, 1, 30, 379, 18, 1, 33, 376, 18, 1, 41, 368, 18, 1, 45, 364, 18, 1, 45, 364, 18, 1, 45, 364, 18, 2, 44, 353, 28, 4, 43, 352, 28, 7, 41, 351, 27, 16, 34, 350, 33, 13, 31, 351, 34, 16, 26, 352, 35, 27, 12, 354, 36, 392, 36, 392, 36, 392, 36, 393, 35, 394, 34, 396, 32, 408, 19, 412, 15, 415, 11, 1308, 6, 414, 15, 412, 17, 410, 19, 408, 20, 408, 24, 404, 25, 403, 26, 402, 27, 401, 27, 401, 27, 402, 26, 403, 25, 404, 24, 405, 23, 407, 21, 408, 19, 410, 17, 413, 14, 416, 10, 17493, 6, 420, 9, 418, 11, 416, 13, 413, 15, 412, 16, 412, 16, 411, 17, 411, 17, 411, 17, 411, 17, 412, 16, 412, 16, 413, 15, 414, 14, 415, 13, 415, 13, 416, 12, 416, 11, 418, 10, 419, 8, 422, 4, 8219, 6, 390, 6, 25, 8, 388, 8, 23, 10, 386, 10, 21, 12, 384, 12, 20, 12, 384, 12, 20, 12, 384, 12, 20, 12, 384, 12, 20, 12, 384, 12, 20, 12, 384, 12, 20, 12, 384, 12, 20, 12, 384, 12, 20, 13, 383, 12, 20, 13, 383, 12, 20, 14, 382, 12, 20, 15, 381, 12, 20, 16, 380, 12, 21, 16, 72, 13, 294, 12, 21, 17, 66, 19, 293, 13, 20, 18, 64, 21, 292, 15, 18, 19, 56, 29, 291, 16, 18, 18, 52, 34, 290, 17, 18, 17, 48, 38, 290, 18, 18, 16, 44, 43, 289, 19, 18, 15, 40, 47, 289, 20, 18, 14, 27, 60, 290, 20, 18, 13, 21, 66, 291, 20, 18, 12, 20, 67, 292, 19, 18, 12, 15, 72, 293, 19, 17, 12, 10, 77, 295, 17, 17, 13, 8, 78, 296, 17, 17, 13, 6, 79, 297, 16, 18, 13, 4, 80, 298, 15, 20, 12, 2, 81, 299, 15, 2, 10, 7, 64, 2, 28, 301, 27, 6, 93, 303, 28, 4, 93, 303, 125, 303, 124, 305, 122, 306, 120, 308, 118, 307, 119, 307, 119, 308, 116, 310, 113, 314, 111, 316, 110, 317, 79, 348, 76, 352, 73, 355, 69, 359, 67, 361, 66, 362, 64, 364, 61, 368, 45, 5, 8, 371, 22, 2, 18, 9, 4, 375, 19, 5, 12, 394, 16, 414, 13, 417, 10, 420, 7, 423, 3, 5459, 23, 403, 28, 400, 29, 398, 31, 397, 32, 395, 33, 395, 33, 395, 34, 395, 34, 394, 34, 395, 33, 396, 32, 398, 30, 399, 29, 397, 30, 398, 30, 397, 32, 396, 33, 394, 35, 393, 36, 392, 36, 393, 35, 393, 35, 394, 34, 395, 33, 397, 6, 7, 17, 414, 14, 416, 11, 420, 6, 6406, 9, 413, 16, 410, 19, 409, 20, 407, 21, 407, 21, 406, 22, 406, 22, 406, 22, 407, 20, 408, 20, 409, 18, 411, 15, 414, 11, 414, 18, 408, 21, 407, 22, 405, 25, 403, 30, 397, 33, 393, 36, 392, 37, 390, 39, 389, 39, 388, 40, 388, 40, 388, 40, 389, 39, 389, 38, 391, 37, 392, 21, 2, 12, 395, 19, 7, 5, 397, 19, 409, 19, 408, 20, 408, 19, 409, 19, 409, 18, 411, 16, 412, 15, 414, 14, 415, 12, 418, 8, 5227, 3, 423, 7, 421, 10, 417, 13, 402, 6, 7, 15, 398, 12, 2, 18, 396, 34, 393, 36, 392, 38, 389, 54, 50, 7, 317, 62, 38, 12, 316, 70, 18, 25, 315, 77, 4, 33, 314, 115, 313, 115, 314, 114, 314, 115, 314, 114, 315, 113, 317, 4, 4, 103, 335, 94, 336, 93, 339, 89, 341, 87, 343, 58, 11, 16, 364, 39, 10, 15, 367, 37, 9, 15, 369, 38, 6, 15, 371, 38, 5, 14, 372, 9, 4, 26, 3, 14, 371, 11, 3, 43, 370, 13, 2, 43, 369, 14, 2, 43, 369, 14, 2, 42, 369, 15, 2, 42, 368, 16, 2, 41, 368, 17, 2, 39, 369, 18, 2, 36, 371, 19, 2, 36, 370, 20, 2, 36, 369, 21, 2, 35, 369, 22, 2, 34, 369, 22, 3, 33, 369, 23, 3, 33, 369, 59, 372, 56, 372, 55, 371, 56, 366, 4, 1, 55, 367, 47, 380, 45, 297, 7, 78, 46, 288, 6, 2, 10, 75, 47, 287, 20, 73, 48, 286, 22, 72, 47, 286, 24, 71, 46, 287, 25, 69, 35, 2, 8, 289, 26, 68, 32, 302, 26, 70, 30, 302, 26, 72, 28, 302, 26, 76, 24, 302, 26, 81, 19, 303, 25, 81, 18, 305, 24, 81, 17, 308, 4, 2, 16, 81, 15, 317, 15, 81, 10, 324, 12, 82, 10, 327, 8, 83, 10, 329, 4, 85, 10, 415, 13, 414, 14, 414, 14, 415, 13, 416, 12, 416, 12, 415, 13, 414, 14, 414, 14, 414, 14, 414, 14, 413, 14, 414, 14, 414, 13, 414, 14, 414, 14, 414, 14, 414, 13, 415, 13, 415, 13, 415, 13, 415, 12, 416, 12, 417, 10, 419, 8, 422, 4, 25142, 6, 420, 9, 419, 10, 402, 6, 9, 12, 12, 14, 373, 9, 8, 12, 10, 17, 372, 57, 370, 59, 345, 19, 5, 59, 343, 22, 3, 60, 343, 24, 1, 60, 342, 86, 342, 86, 341, 86, 342, 86, 342, 85, 344, 82, 346, 73, 356, 35, 2, 36, 356, 34, 4, 35, 357, 32, 14, 26, 368, 20, 15, 28, 367, 17, 18, 6, 3, 18, 370, 13, 27, 19, 371, 10, 29, 19, 372, 6, 31, 19, 410, 18, 411, 17, 412, 16, 412, 16, 413, 15, 414, 13, 417, 11, 418, 9, 421, 5, 11231, 7, 418, 11, 415, 14, 413, 16, 410, 18, 408, 20, 407, 21, 400, 28, 398, 30, 397, 30, 394, 34, 392, 35, 393, 33, 394, 31, 397, 29, 398, 28, 394, 32, 7, 10, 377, 52, 376, 53, 374, 55, 373, 55, 372, 56, 372, 56, 372, 56, 373, 55, 164], "size": [428, 640]}, "area": 15657, "iscrowd": 1, "image_id": 483948, "bbox": [46, 65, 593, 244], "category_id": 1, "id": 900100483948}, {"segmentation": {"counts": [2480, 4, 472, 9, 470, 10, 466, 14, 465, 15, 464, 16, 464, 17, 463, 17, 464, 16, 465, 15, 469, 10, 471, 3, 2, 3, 23008, 6, 463, 18, 461, 20, 459, 38, 441, 40, 439, 42, 437, 44, 435, 45, 435, 45, 435, 45, 435, 45, 435, 45, 435, 45, 435, 45, 436, 43, 437, 42, 75, 4, 1, 1, 357, 40, 76, 15, 348, 40, 76, 19, 345, 40, 75, 23, 341, 41, 75, 25, 339, 41, 75, 25, 339, 41, 69, 5, 2, 25, 337, 42, 68, 33, 337, 42, 67, 34, 337, 42, 67, 34, 337, 42, 66, 35, 337, 46, 62, 36, 336, 47, 61, 36, 336, 47, 62, 36, 336, 46, 62, 36, 336, 48, 61, 35, 335, 53, 56, 36, 335, 54, 55, 36, 335, 54, 54, 36, 336, 54, 48, 4, 2, 35, 338, 53, 47, 6, 1, 28, 2, 4, 339, 52, 47, 35, 347, 32, 2, 3, 2, 11, 48, 34, 349, 29, 10, 7, 51, 33, 352, 23, 15, 5, 53, 29, 359, 18, 17, 3, 55, 13, 1, 14, 361, 14, 77, 13, 2, 12, 365, 7, 82, 12, 3, 3, 2, 5, 461, 5, 476, 3, 380, 6, 472, 9, 470, 11, 469, 12, 2, 6, 459, 22, 458, 23, 457, 24, 6, 5, 445, 25, 3, 17, 436, 44, 436, 44, 437, 43, 438, 42, 440, 38, 442, 37, 444, 28, 4, 4, 445, 26, 6, 2, 448, 15, 43713, 3, 478, 4, 476, 6, 474, 8, 473, 14, 466, 14, 466, 14, 466, 13, 468, 3, 5, 3, 469, 2, 478, 1, 198617], "size": [480, 640]}, "area": 3522, "iscrowd": 1, "image_id": 517261, "bbox": [5, 33, 221, 144], "category_id": 1, "id": 900100517261}, {"segmentation": {"counts": [93387, 20, 457, 22, 455, 24, 453, 26, 451, 28, 450, 28, 450, 29, 449, 30, 448, 30, 448, 31, 448, 30, 448, 30, 449, 29, 448, 30, 448, 30, 447, 31, 448, 30, 449, 28, 451, 26, 453, 23, 456, 20, 459, 17, 461, 16, 462, 15, 463, 13, 466, 10, 469, 8, 472, 4, 13358, 6, 471, 8, 469, 10, 467, 12, 463, 15, 461, 17, 459, 19, 458, 20, 458, 20, 457, 21, 456, 22, 456, 23, 455, 23, 455, 23, 454, 24, 454, 24, 455, 23, 455, 23, 455, 23, 455, 23, 456, 21, 456, 22, 456, 22, 456, 22, 456, 22, 455, 23, 455, 23, 456, 22, 456, 22, 456, 22, 456, 22, 457, 21, 457, 21, 458, 19, 460, 17, 462, 14, 465, 11, 470, 5, 79166, 6, 469, 12, 465, 14, 463, 16, 461, 18, 459, 20, 458, 20, 457, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 457, 22, 456, 22, 457, 22, 456, 22, 456, 22, 455, 23, 455, 23, 455, 23, 456, 22, 456, 22, 456, 22, 456, 22, 457, 22, 457, 21, 456, 22, 456, 23, 455, 23, 455, 23, 455, 23, 455, 23, 455, 22, 457, 21, 457, 22, 457, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 456, 22, 457, 22, 456, 22, 457, 22, 456, 22, 456, 22, 455, 23, 455, 23, 455, 23, 456, 22, 456, 22, 456, 22, 456, 22, 457, 21, 458, 20, 457, 21, 457, 21, 457, 21, 457, 21, 457, 21, 457, 21, 457, 21, 458, 20, 458, 20, 459, 19, 459, 19, 459, 19, 459, 19, 459, 19, 459, 19, 459, 19, 459, 19, 459, 19, 459, 19, 460, 18, 460, 18, 461, 17, 461, 17, 461, 17, 460, 18, 460, 18, 461, 17, 461, 17, 461, 17, 461, 17, 462, 16, 462, 16, 463, 15, 463, 15, 464, 14, 464, 14, 465, 13, 466, 12, 467, 11, 467, 11, 468, 10, 467, 11, 467, 11, 467, 11, 467, 11, 468, 10, 468, 10, 468, 10, 468, 10, 468, 10, 468, 10, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 468, 10, 468, 10, 468, 10, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 467, 11, 468, 10, 467, 11, 466, 12, 466, 12, 466, 12, 466, 12, 465, 13, 465, 13, 465, 13, 466, 12, 465, 13, 465, 13, 464, 14, 463, 15, 463, 15, 462, 16, 462, 16, 461, 17, 460, 18, 460, 18, 459, 19, 459, 19, 459, 19, 459, 19, 458, 20, 458, 20, 458, 20, 458, 20, 457, 21, 457, 21, 457, 21, 457, 21, 458, 20, 458, 20, 458, 20, 458, 20, 459, 19, 459, 19, 460, 18, 461, 16, 463, 14, 465, 11, 470, 5, 5743], "size": [478, 640]}, "area": 4460, "iscrowd": 1, "image_id": 510979, "bbox": [195, 147, 432, 330], "category_id": 62, "id": 906200510979}, {"segmentation": {"counts": [428, 34, 393, 38, 389, 39, 388, 40, 387, 41, 386, 41, 386, 42, 385, 43, 384, 43, 384, 44, 383, 44, 384, 45, 382, 45, 381, 46, 381, 46, 381, 46, 381, 46, 381, 47, 380, 47, 380, 47, 381, 46, 380, 47, 380, 47, 380, 47, 380, 47, 381, 46, 380, 47, 380, 47, 380, 47, 380, 47, 380, 47, 380, 46, 382, 45, 381, 46, 381, 46, 381, 46, 381, 46, 381, 46, 381, 45, 384, 45, 385, 42, 381, 46, 380, 47, 380, 47, 380, 47, 380, 47, 380, 47, 380, 47, 380, 47, 380, 47, 380, 47, 380, 46, 381, 46, 381, 46, 381, 46, 381, 46, 381, 46, 381, 47, 380, 47, 380, 48, 379, 48, 379, 48, 379, 48, 379, 48, 379, 48, 379, 49, 378, 49, 378, 49, 378, 49, 378, 49, 378, 49, 378, 49, 378, 49, 379, 48, 379, 48, 378, 49, 378, 49, 378, 49, 378, 49, 378, 50, 377, 50, 377, 50, 377, 51, 376, 51, 376, 52, 375, 52, 375, 52, 375, 53, 374, 53, 374, 53, 374, 54, 373, 54, 373, 54, 373, 54, 373, 54, 373, 55, 372, 55, 372, 55, 372, 55, 372, 55, 372, 55, 372, 55, 372, 55, 372, 54, 373, 54, 373, 54, 374, 53, 374, 53, 373, 53, 374, 53, 374, 53, 374, 52, 375, 53, 374, 53, 374, 54, 373, 55, 372, 55, 372, 56, 371, 56, 371, 56, 371, 56, 371, 56, 371, 57, 370, 57, 370, 57, 370, 57, 370, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 58, 369, 57, 370, 57, 371, 56, 370, 57, 370, 57, 370, 57, 370, 57, 370, 57, 370, 57, 370, 57, 370, 14, 5, 12, 8, 19, 369, 13, 9, 6, 11, 19, 369, 12, 26, 21, 368, 11, 27, 21, 368, 11, 27, 21, 368, 10, 28, 21, 368, 10, 28, 21, 368, 10, 28, 22, 367, 9, 29, 22, 367, 9, 30, 21, 367, 9, 30, 22, 366, 10, 29, 23, 365, 10, 29, 23, 365, 10, 29, 23, 365, 11, 28, 24, 364, 11, 28, 24, 364, 11, 28, 25, 363, 12, 27, 25, 363, 14, 25, 26, 362, 16, 23, 26, 362, 19, 20, 26, 362, 21, 18, 27, 361, 22, 17, 27, 361, 24, 15, 27, 361, 25, 14, 27, 362, 25, 13, 27, 361, 27, 13, 26, 361, 28, 12, 27, 360, 29, 11, 27, 360, 31, 8, 28, 360, 33, 6, 28, 360, 36, 3, 28, 360, 37, 1, 29, 360, 68, 359, 69, 358, 70, 357, 71, 356, 72, 355, 73, 354, 74, 353, 75, 352, 76, 351, 76, 351, 77, 350, 77, 350, 78, 349, 79, 348, 79, 348, 79, 348, 80, 347, 80, 347, 80, 347, 81, 346, 81, 346, 81, 346, 81, 346, 81, 346, 81, 347, 80, 347, 80, 346, 81, 346, 81, 346, 81, 346, 83, 344, 84, 343, 85, 342, 86, 341, 87, 340, 88, 339, 89, 338, 90, 337, 90, 337, 91, 336, 92, 335, 92, 335, 93, 334, 93, 334, 94, 333, 94, 333, 94, 333, 95, 332, 95, 332, 95, 332, 96, 331, 96, 331, 96, 331, 96, 331, 96, 331, 96, 331, 96, 331, 96, 331, 96, 332, 95, 331, 96, 331, 96, 331, 96, 331, 96, 331, 95, 332, 95, 332, 95, 332, 95, 332, 94, 333, 94, 333, 94, 333, 94, 333, 94, 333, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 95, 332, 94, 333, 40, 2, 52, 333, 39, 3, 52, 333, 38, 4, 52, 333, 37, 5, 51, 334, 35, 7, 51, 334, 34, 8, 51, 335, 32, 9, 50, 335, 32, 10, 50, 335, 31, 11, 49, 336, 30, 12, 49, 336, 30, 12, 48, 337, 29, 13, 48, 337, 29, 13, 48, 337, 29, 13, 49, 336, 28, 14, 49, 336, 28, 14, 50, 335, 27, 15, 50, 335, 25, 17, 50, 335, 15, 28, 49, 335, 14, 29, 50, 334, 13, 30, 50, 334, 11, 32, 50, 334, 10, 33, 50, 334, 10, 33, 50, 334, 10, 33, 50, 334, 10, 33, 50, 334, 10, 33, 50, 334, 11, 32, 50, 334, 11, 32, 50, 334, 11, 32, 50, 334, 11, 32, 50, 334, 11, 32, 50, 334, 12, 31, 50, 334, 13, 30, 50, 334, 16, 27, 49, 335, 18, 25, 49, 335, 30, 13, 49, 335, 31, 12, 48, 336, 33, 11, 47, 337, 34, 8, 48, 336, 36, 7, 47, 337, 38, 4, 48, 337, 39, 3, 47, 338, 89, 338, 88, 339, 38, 3, 48, 338, 33, 8, 48, 338, 29, 12, 1, 3, 44, 338, 27, 18, 45, 337, 26, 19, 45, 337, 24, 21, 45, 337, 23, 22, 46, 336, 22, 23, 46, 336, 21, 24, 46, 336, 20, 25, 46, 336, 19, 25, 47, 336, 7, 2, 7, 28, 47, 336, 5, 39, 47, 336, 5, 39, 47, 336, 5, 15, 1, 23, 47, 336, 4, 40, 47, 336, 4, 40, 47, 336, 4, 40, 47, 336, 4, 40, 47, 336, 4, 40, 47, 336, 4, 40, 47, 336, 4, 40, 47, 336, 5, 39, 47, 336, 5, 39, 46, 337, 5, 39, 46, 337, 6, 27, 1, 10, 46, 337, 7, 27, 1, 9, 45, 338, 10, 8, 1, 25, 45, 338, 20, 24, 44, 339, 20, 16, 1, 6, 45, 339, 21, 16, 1, 5, 44, 340, 21, 17, 1, 4, 44, 340, 21, 16, 49, 341, 23, 13, 51, 340, 25, 9, 53, 340, 27, 5, 55, 340, 28, 2, 58, 339, 88, 339, 88, 339, 89, 338, 89, 338, 89, 338, 89, 338, 89, 338, 90, 337, 90, 337, 90, 337, 90, 337, 90, 337, 90, 337, 90, 337, 90, 337, 89, 338, 89, 338, 89, 338, 89, 338, 89, 338, 88, 339, 88, 339, 88, 339, 87, 344, 83, 343, 83, 344, 83, 344, 38, 3, 41, 345, 37, 4, 41, 344, 38, 4, 41, 344, 38, 4, 41, 345, 36, 5, 42, 344, 36, 5, 42, 344, 35, 6, 42, 344, 35, 6, 43, 342, 36, 6, 43, 342, 29, 13, 43, 342, 27, 15, 43, 342, 24, 18, 44, 341, 21, 21, 44, 341, 20, 22, 44, 340, 21, 22, 44, 341, 19, 23, 44, 341, 18, 24, 44, 341, 18, 24, 44, 341, 18, 24, 44, 341, 18, 24, 44, 341, 19, 23, 44, 341, 20, 23, 43, 341, 20, 23, 43, 341, 21, 22, 42, 342, 24, 19, 42, 342, 28, 15, 42, 342, 32, 11, 42, 342, 34, 9, 41, 343, 36, 7, 41, 344, 36, 6, 41, 344, 36, 6, 40, 345, 36, 6, 40, 344, 37, 6, 39, 345, 37, 6, 39, 345, 37, 6, 38, 346, 38, 5, 38, 346, 39, 4, 38, 346, 39, 4, 39, 344, 41, 3, 39, 344, 42, 2, 39, 344, 41, 3, 40, 343, 41, 2, 41, 343, 40, 3, 41, 343, 40, 3, 42, 342, 40, 3, 42, 342, 40, 3, 42, 342, 23, 2, 15, 3, 42, 343, 20, 11, 8, 3, 42, 343, 19, 16, 4, 3, 42, 343, 19, 18, 2, 4, 41, 342, 19, 25, 41, 342, 19, 25, 41, 342, 19, 25, 41, 342, 19, 25, 41, 342, 19, 25, 41, 342, 19, 25, 41, 342, 20, 23, 42, 342, 20, 23, 41, 343, 20, 24, 40, 343, 20, 14, 1, 9, 40, 343, 20, 14, 1, 9, 40, 343, 16, 17, 1, 10, 39, 344, 15, 17, 2, 10, 39, 344, 14, 15, 2, 1, 1, 11, 39, 344, 13, 31, 38, 346, 11, 32, 38, 346, 11, 32, 37, 347, 11, 32, 36, 348, 11, 32, 36, 349, 10, 32, 35, 350, 10, 31, 35, 350, 11, 31, 35, 350, 11, 31, 34, 351, 11, 31, 33, 352, 12, 30, 33, 352, 13, 29, 33, 352, 14, 28, 33, 352, 15, 27, 33, 353, 15, 26, 32, 354, 18, 23, 32, 354, 21, 20, 32, 354, 22, 19, 32, 354, 23, 18, 31, 355, 24, 17, 31, 355, 26, 15, 31, 355, 27, 14, 30, 355, 29, 13, 30, 355, 31, 11, 29, 355, 33, 10, 29, 355, 35, 8, 28, 355, 38, 6, 27, 356, 39, 5, 27, 356, 41, 3, 26, 357, 43, 1, 25, 358, 68, 359, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 362, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 65, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 363, 64, 362, 64, 363, 65, 362, 65, 362, 65, 362, 66, 361, 66, 361, 66, 361, 66, 361, 66, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 361, 66, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 67, 360, 66, 361, 66, 361, 66, 361, 44, 4, 18, 361, 39, 9, 18, 361, 35, 13, 18, 361, 30, 18, 18, 361, 27, 21, 18, 361, 24, 24, 18, 361, 24, 24, 18, 361, 23, 25, 18, 361, 23, 25, 18, 361, 22, 26, 18, 361, 22, 26, 18, 361, 21, 27, 18, 362, 20, 27, 18, 362, 19, 28, 18, 362, 19, 28, 18, 362, 14, 33, 18, 362, 5, 42, 18, 362, 1, 46, 18, 362, 1, 46, 18, 362, 1, 46, 18, 362, 1, 46, 18, 362, 1, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 2, 46, 18, 361, 1, 11, 4, 31, 19, 361, 17, 31, 18, 361, 17, 31, 18, 361, 18, 30, 18, 361, 19, 29, 18, 361, 19, 29, 18, 361, 22, 26, 18, 361, 21, 28, 17, 361, 20, 29, 17, 362, 18, 30, 17, 362, 18, 30, 17, 362, 17, 31, 17, 362, 18, 30, 17, 362, 18, 22, 5, 6, 14, 362, 19, 19, 5, 8, 14, 362, 19, 32, 14, 362, 19, 32, 14, 362, 20, 32, 13, 362, 20, 32, 13, 362, 21, 6, 1, 25, 12, 362, 27, 26, 12, 362, 26, 28, 11, 361, 26, 29, 8, 1, 2, 361, 26, 30, 2, 369, 26, 401, 25, 402, 25, 402, 25, 402, 24, 403, 24, 403, 24, 403, 24, 403, 24, 403, 24, 403, 23, 404, 11, 7, 5, 404, 10, 10, 2, 405, 9, 418, 8, 420, 6, 422, 5, 419], "size": [427, 640]}, "area": 45674, "iscrowd": 1, "image_id": 60771, "bbox": [1, 1, 638, 95], "category_id": 1, "id": 900100060771}, {"segmentation": {"counts": [149400, 6, 357, 8, 355, 10, 353, 12, 352, 12, 352, 12, 352, 12, 351, 13, 351, 13, 351, 13, 351, 13, 351, 12, 352, 12, 352, 12, 353, 11, 354, 11, 353, 12, 352, 12, 352, 12, 352, 12, 352, 12, 352, 15, 349, 16, 349, 16, 349, 16, 350, 14, 352, 12, 352, 12, 352, 12, 352, 12, 352, 12, 353, 10, 355, 8, 358, 4, 1820, 4, 360, 5, 357, 8, 356, 8, 354, 10, 354, 10, 354, 10, 354, 10, 354, 10, 355, 8, 358, 4, 66073], "size": [364, 640]}, "area": 497, "iscrowd": 1, "image_id": 409956, "bbox": [410, 156, 48, 21], "category_id": 16, "id": 901600409956}, {"segmentation": {"counts": [264, 8, 397, 1, 3, 2, 10, 23, 387, 13, 1, 28, 384, 44, 382, 48, 378, 55, 372, 58, 369, 67, 360, 69, 358, 70, 357, 71, 356, 72, 355, 72, 355, 73, 355, 72, 355, 72, 356, 71, 356, 1, 1, 70, 357, 70, 358, 68, 359, 68, 363, 64, 363, 64, 364, 62, 363, 64, 362, 64, 363, 63, 364, 61, 366, 2, 2, 55, 372, 55, 372, 55, 373, 54, 373, 53, 374, 53, 374, 54, 373, 54, 373, 53, 373, 54, 373, 54, 374, 53, 377, 49, 381, 46, 384, 42, 386, 40, 388, 38, 392, 33, 394, 31, 397, 30, 399, 27, 402, 25, 404, 23, 405, 22, 407, 19, 408, 19, 409, 17, 411, 15, 414, 11, 418, 7, 5915, 7, 419, 19, 407, 22, 405, 24, 403, 25, 402, 26, 401, 27, 400, 28, 18, 6, 374, 42, 4, 25, 356, 7, 3, 33, 2, 27, 355, 7, 9, 28, 1, 28, 354, 7, 15, 51, 353, 9, 21, 44, 353, 9, 27, 39, 352, 9, 33, 32, 353, 8, 40, 26, 353, 8, 47, 12, 359, 9, 418, 9, 418, 9, 417, 9, 418, 9, 417, 10, 416, 11, 416, 11, 416, 10, 417, 10, 417, 10, 417, 10, 417, 9, 418, 9, 418, 9, 419, 8, 419, 8, 1, 2, 418, 4, 3, 6, 421, 11, 416, 15, 413, 16, 411, 16, 412, 16, 411, 15, 413, 14, 413, 14, 415, 11, 421, 4, 13654, 6, 420, 8, 418, 10, 413, 15, 409, 18, 408, 19, 407, 21, 405, 21, 406, 21, 406, 21, 406, 20, 407, 20, 407, 19, 407, 20, 406, 22, 405, 21, 406, 21, 406, 21, 406, 20, 407, 20, 407, 19, 409, 17, 411, 14, 415, 5, 1254, 8, 417, 12, 6, 8, 400, 14, 5, 10, 397, 15, 5, 11, 395, 33, 394, 34, 392, 35, 392, 36, 391, 36, 391, 36, 391, 36, 391, 37, 390, 36, 391, 36, 391, 36, 392, 35, 391, 35, 391, 36, 390, 36, 391, 35, 392, 33, 394, 31, 396, 31, 396, 32, 395, 31, 396, 31, 396, 31, 396, 31, 396, 30, 397, 30, 397, 29, 399, 27, 400, 25, 403, 22, 405, 18, 410, 13, 414, 13, 415, 2, 2, 8, 422, 4, 25207, 6, 12, 1, 407, 10, 9, 16, 391, 12, 8, 22, 384, 17, 4, 23, 1, 6, 376, 52, 375, 53, 374, 54, 373, 54, 373, 54, 373, 55, 372, 55, 371, 56, 370, 56, 371, 57, 370, 67, 360, 68, 359, 69, 358, 70, 357, 70, 357, 70, 357, 71, 357, 70, 348, 8, 2, 68, 348, 10, 2, 68, 345, 82, 345, 82, 344, 84, 342, 85, 342, 86, 341, 86, 341, 86, 341, 87, 340, 86, 341, 87, 339, 87, 340, 87, 338, 89, 338, 27, 36, 25, 337, 24, 47, 18, 338, 23, 50, 14, 339, 24, 402, 25, 402, 25, 402, 24, 403, 23, 404, 22, 405, 21, 406, 20, 407, 20, 407, 20, 407, 19, 409, 17, 411, 15, 413, 13, 415, 10, 419, 6, 6507, 1, 416, 16, 402, 30, 387, 42, 376, 52, 362, 65, 362, 65, 362, 65, 333, 5, 24, 66, 332, 6, 23, 65, 327, 14, 21, 66, 326, 15, 21, 64, 326, 16, 22, 63, 325, 18, 21, 63, 325, 18, 22, 62, 325, 18, 24, 59, 326, 18, 26, 57, 326, 19, 28, 53, 325, 21, 28, 53, 325, 20, 29, 52, 325, 21, 29, 52, 324, 22, 29, 51, 325, 22, 29, 50, 326, 21, 30, 50, 326, 20, 32, 49, 326, 21, 32, 48, 326, 21, 32, 47, 327, 21, 33, 46, 327, 21, 33, 46, 311, 38, 33, 44, 311, 39, 34, 42, 310, 41, 34, 41, 305, 46, 36, 40, 304, 47, 36, 41, 302, 49, 35, 40, 302, 49, 36, 40, 302, 50, 35, 40, 302, 49, 36, 40, 302, 50, 35, 39, 303, 50, 36, 38, 303, 49, 38, 36, 304, 49, 38, 35, 305, 49, 39, 33, 306, 49, 41, 29, 308, 48, 44, 25, 310, 47, 48, 19, 313, 49, 46, 16, 316, 50, 46, 14, 317, 50, 48, 10, 319, 51, 31, 8, 10, 6, 321, 51, 29, 12, 336, 50, 28, 14, 336, 49, 27, 16, 336, 49, 25, 18, 336, 48, 25, 18, 338, 45, 25, 20, 339, 44, 24, 20, 339, 43, 25, 20, 339, 43, 25, 20, 339, 43, 25, 21, 338, 43, 25, 21, 338, 42, 26, 20, 339, 41, 27, 20, 339, 41, 27, 20, 339, 40, 28, 20, 339, 41, 27, 21, 339, 40, 27, 20, 341, 38, 28, 21, 340, 39, 27, 20, 341, 39, 27, 21, 340, 39, 27, 20, 341, 39, 27, 20, 341, 39, 27, 20, 341, 39, 26, 21, 342, 39, 25, 21, 343, 37, 26, 21, 344, 36, 26, 20, 346, 35, 25, 22, 347, 33, 25, 22, 349, 30, 26, 22, 362, 16, 2, 17, 8, 21, 364, 14, 1, 48, 366, 11, 1, 49, 369, 6, 2, 50, 376, 50, 377, 51, 375, 52, 375, 52, 375, 52, 375, 53, 374, 52, 375, 53, 374, 54, 373, 54, 373, 55, 373, 54, 357, 14, 3, 53, 356, 16, 1, 54, 355, 72, 355, 72, 355, 72, 355, 72, 355, 72, 355, 72, 356, 71, 356, 71, 356, 71, 356, 71, 357, 70, 357, 70, 359, 67, 371, 55, 372, 53, 374, 51, 376, 49, 378, 47, 380, 40, 387, 38, 389, 20, 408, 19, 409, 17, 410, 16, 412, 14, 415, 10, 419, 6, 32049, 13, 412, 18, 6, 9, 361, 16, 16, 36, 357, 20, 12, 39, 347, 30, 9, 42, 344, 84, 342, 85, 341, 87, 339, 88, 339, 88, 338, 89, 338, 90, 331, 96, 329, 97, 329, 98, 328, 99, 327, 100, 327, 99, 327, 100, 327, 100, 327, 99, 328, 99, 328, 98, 329, 97, 330, 95, 332, 72, 11, 10, 334, 30, 3, 29, 366, 28, 7, 24, 368, 28, 7, 24, 369, 27, 7, 25, 369, 26, 7, 25, 369, 25, 8, 26, 366, 27, 8, 26, 364, 28, 9, 26, 363, 28, 10, 26, 362, 27, 12, 27, 360, 18, 2, 6, 14, 26, 361, 18, 8, 8, 7, 25, 360, 20, 5, 12, 5, 26, 359, 20, 4, 14, 3, 26, 360, 20, 3, 16, 2, 26, 360, 20, 2, 46, 359, 21, 1, 46, 359, 20, 1, 46, 360, 67, 360, 20, 1, 46, 360, 67, 360, 20, 1, 45, 361, 66, 361, 20, 1, 44, 362, 20, 1, 43, 363, 62, 365, 60, 367, 58, 369, 57, 370, 56, 371, 55, 372, 55, 372, 56, 370, 56, 371, 56, 370, 56, 371, 55, 372, 53, 374, 52, 375, 50, 377, 48, 379, 45, 382, 37, 390, 43, 385, 44, 384, 44, 383, 45, 383, 45, 384, 43, 386, 42, 392, 35, 391, 36, 391, 36, 5, 8, 378, 37, 2, 12, 376, 36, 2, 15, 374, 36, 1, 19, 371, 56, 371, 57, 370, 57, 370, 57, 370, 34, 1, 23, 370, 32, 2, 32, 362, 29, 4, 43, 351, 18, 2, 7, 6, 55, 340, 14, 18, 59, 338, 10, 20, 59, 340, 6, 22, 60, 367, 59, 369, 58, 370, 57, 370, 57, 371, 55, 374, 53, 376, 50, 381, 46, 127], "size": [427, 640]}, "area": 23419, "iscrowd": 1, "image_id": 579659, "bbox": [0, 188, 639, 134], "category_id": 62, "id": 906200579659}, {"segmentation": {"counts": [148487, 9, 416, 12, 413, 14, 411, 16, 410, 17, 409, 21, 405, 22, 404, 23, 403, 24, 402, 24, 402, 24, 402, 25, 401, 24, 402, 24, 402, 24, 402, 23, 403, 22, 404, 21, 405, 20, 406, 19, 407, 19, 407, 18, 408, 18, 408, 17, 409, 17, 410, 16, 411, 14, 414, 11, 417, 7, 54926, 1, 423, 3, 421, 5, 419, 7, 416, 10, 415, 12, 413, 13, 412, 15, 411, 16, 410, 17, 409, 19, 407, 19, 407, 19, 407, 19, 407, 18, 408, 12, 4, 1, 409, 9, 417, 7, 420, 6, 421, 5, 423, 2, 3855, 4, 422, 5, 421, 6, 420, 7, 419, 8, 417, 9, 416, 10, 398, 1, 16, 12, 396, 4, 14, 11, 396, 8, 11, 11, 395, 13, 7, 17, 389, 41, 385, 42, 384, 43, 383, 44, 382, 44, 382, 44, 382, 45, 382, 43, 384, 43, 384, 41, 385, 41, 385, 41, 386, 39, 388, 37, 391, 13, 5, 17, 392, 9, 11, 13, 395, 4, 17, 9, 420, 6, 420, 5, 422, 3, 423, 1, 3376, 6, 419, 8, 417, 10, 415, 11, 415, 11, 73, 6, 336, 12, 71, 8, 335, 13, 69, 10, 334, 16, 65, 12, 333, 17, 64, 12, 332, 20, 62, 12, 331, 23, 60, 13, 329, 26, 58, 13, 329, 28, 56, 12, 330, 30, 53, 13, 330, 30, 53, 13, 330, 31, 51, 13, 331, 31, 51, 14, 330, 30, 52, 13, 331, 30, 51, 14, 331, 30, 51, 14, 331, 29, 52, 13, 333, 27, 53, 14, 332, 25, 55, 13, 333, 25, 55, 13, 334, 23, 56, 13, 335, 23, 55, 13, 337, 20, 56, 13, 339, 19, 55, 13, 341, 17, 55, 1, 1, 11, 344, 13, 60, 9, 343, 15, 60, 9, 342, 14, 62, 8, 342, 14, 63, 7, 342, 14, 64, 5, 343, 13, 65, 4, 343, 14, 65, 1, 346, 13, 413, 14, 412, 14, 412, 15, 411, 16, 410, 16, 410, 16, 410, 17, 410, 16, 411, 14, 413, 13, 413, 13, 414, 11, 416, 9, 419, 5, 3896, 1, 424, 3, 422, 6, 5, 1, 414, 12, 414, 12, 414, 13, 413, 12, 414, 12, 121], "size": [426, 640]}, "area": 3260, "iscrowd": 1, "image_id": 360695, "bbox": [348, 209, 291, 98], "category_id": 55, "id": 905500360695}, {"segmentation": {"counts": [2871, 6, 419, 8, 417, 10, 415, 12, 414, 12, 414, 12, 414, 12, 414, 12, 414, 31, 395, 32, 394, 33, 393, 34, 392, 34, 392, 34, 393, 33, 394, 32, 394, 32, 394, 32, 394, 31, 396, 29, 398, 25, 402, 6, 2, 12, 382, 6, 3, 6, 8, 20, 382, 8, 1, 8, 6, 24, 378, 21, 2, 26, 376, 23, 1, 27, 375, 52, 374, 52, 374, 52, 374, 52, 374, 52, 374, 52, 375, 51, 376, 23, 1, 25, 379, 20, 2, 24, 381, 18, 3, 21, 385, 14, 7, 16, 390, 10, 11, 12, 394, 8, 14, 4, 402, 3, 60478, 13, 408, 19, 406, 21, 404, 23, 402, 25, 401, 26, 400, 26, 400, 26, 399, 27, 398, 28, 397, 29, 396, 30, 396, 30, 395, 31, 395, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 396, 30, 397, 29, 398, 28, 398, 28, 399, 27, 400, 25, 402, 24, 403, 22, 404, 22, 405, 20, 407, 19, 408, 18, 409, 16, 411, 14, 414, 9, 18727, 2, 423, 4, 421, 6, 419, 8, 418, 10, 416, 11, 415, 13, 413, 15, 411, 17, 4, 3, 402, 25, 401, 26, 401, 28, 398, 28, 399, 27, 400, 27, 400, 27, 399, 28, 398, 30, 397, 30, 397, 32, 396, 9, 1, 20, 398, 4, 5, 19, 408, 18, 410, 15, 417, 8, 420, 3, 6843, 7, 410, 7, 1, 9, 368, 6, 34, 19, 366, 10, 2, 7, 21, 21, 364, 21, 19, 22, 363, 23, 18, 22, 363, 24, 17, 22, 363, 24, 17, 22, 363, 24, 17, 22, 363, 24, 17, 22, 363, 24, 17, 21, 364, 24, 18, 19, 366, 23, 23, 12, 369, 21, 30, 3, 373, 19, 409, 16, 409, 17, 409, 17, 409, 17, 409, 17, 409, 17, 409, 17, 409, 17, 410, 15, 412, 13, 415, 3, 2, 3, 11059, 6, 419, 8, 417, 10, 415, 12, 413, 13, 412, 14, 412, 14, 411, 15, 410, 16, 410, 16, 409, 20, 16, 7, 383, 22, 13, 15, 376, 23, 11, 17, 1, 10, 364, 25, 8, 35, 358, 26, 7, 41, 351, 28, 5, 43, 349, 30, 3, 45, 347, 80, 346, 80, 346, 81, 345, 81, 345, 81, 345, 81, 345, 81, 345, 81, 345, 81, 345, 81, 345, 81, 345, 81, 345, 80, 346, 80, 346, 79, 347, 78, 348, 77, 349, 76, 351, 74, 353, 72, 354, 71, 356, 69, 357, 68, 359, 68, 359, 68, 359, 67, 360, 66, 361, 2, 6, 57, 371, 55, 373, 53, 374, 52, 377, 49, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 379, 47, 380, 46, 381, 45, 381, 44, 382, 43, 384, 41, 386, 42, 387, 41, 388, 39, 390, 37, 391, 36, 393, 33, 393, 33, 393, 33, 393, 33, 393, 33, 392, 34, 391, 35, 390, 36, 389, 37, 389, 37, 389, 37, 388, 38, 388, 38, 388, 37, 388, 37, 389, 36, 390, 35, 391, 35, 390, 36, 390, 36, 390, 36, 389, 37, 389, 37, 389, 37, 388, 37, 389, 36, 390, 35, 391, 35, 391, 35, 391, 35, 391, 35, 392, 33, 394, 31, 397, 28, 410, 14, 416, 7, 2544, 6, 419, 10, 415, 13, 412, 20, 406, 23, 403, 26, 400, 28, 398, 29, 397, 30, 396, 31, 395, 31, 395, 31, 395, 31, 395, 31, 395, 31, 395, 31, 395, 30, 397, 28, 399, 26, 402, 23, 405, 19, 412, 13, 415, 8, 6789, 2, 423, 6, 419, 10, 415, 14, 412, 19, 407, 22, 404, 24, 402, 25, 401, 25, 401, 25, 402, 24, 402, 24, 402, 24, 402, 23, 403, 22, 404, 24, 401, 29, 397, 32, 393, 34, 393, 34, 392, 35, 391, 36, 390, 36, 390, 36, 390, 36, 390, 36, 389, 37, 388, 38, 388, 38, 387, 39, 387, 39, 387, 39, 387, 39, 387, 39, 387, 38, 388, 37, 389, 35, 391, 32, 395, 32, 394, 33, 393, 34, 392, 35, 381, 6, 4, 35, 380, 8, 3, 35, 379, 10, 2, 35, 378, 12, 1, 35, 377, 49, 375, 51, 373, 53, 372, 53, 372, 53, 372, 51, 375, 46, 379, 47, 378, 48, 378, 48, 377, 49, 376, 50, 376, 50, 376, 55, 370, 58, 368, 59, 367, 61, 365, 62, 364, 63, 362, 65, 361, 65, 360, 66, 360, 66, 359, 67, 359, 67, 359, 67, 359, 67, 359, 66, 360, 66, 360, 66, 360, 66, 360, 67, 360, 67, 360, 66, 361, 65, 362, 64, 364, 62, 368, 58, 371, 55, 371, 54, 372, 53, 374, 49, 378, 47, 381, 4, 1, 3, 6, 31, 395, 30, 397, 29, 397, 29, 397, 29, 397, 29, 397, 29, 398, 28, 399, 27, 400, 26, 402, 23, 406, 19, 411, 14, 414, 9, 8611], "size": [426, 640]}, "area": 13707, "iscrowd": 1, "image_id": 317153, "bbox": [6, 273, 613, 80], "category_id": 33, "id": 903300317153}]} \ No newline at end of file diff --git a/MaskRefineNet/datasets/dataset.py b/MaskRefineNet/datasets/dataset.py new file mode 100755 index 0000000..38827cf --- /dev/null +++ b/MaskRefineNet/datasets/dataset.py @@ -0,0 +1,386 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import os +import math +import torch.utils.data as data +import torch +import numpy as np +import random +import json +from PIL import Image + +import torch.nn.functional as F +import torchvision.transforms.functional as TF +from pycocotools.coco import COCO +import pycocotools.mask as mask_util + +from datasets.utils import center_map_gen, gaussian, COCO_CATEGORIES, BDD100K_CATEGORIES + + +class TrainSet(data.Dataset): + def __init__(self, root, dataset, num_classes, weak_pth=None, + gt_json=None, transform=None, size_cut=0, box_scale=2.0): + + self.dataset = dataset + self.num_classes = num_classes + self.weak_pth = weak_pth + self.gt_json = gt_json + self.transform = transform + self.size_cut = size_cut + self.box_scale = box_scale + + self.sigma = 6 + self.g = gaussian(self.sigma) + + if self.dataset == 'coco': + self.cls_ids = [c['id'] for c in COCO_CATEGORIES] + self.img_dir = os.path.join(root, "coco", "train2017", "%012d.jpg") + elif self.dataset == 'BDD100K': + self.cls_ids = [c['id'] for c in BDD100K_CATEGORIES] + self.img_dir = os.path.join(root, "BDD100K", "train", "%s") + else: + raise "[ERROR] Invalid dataset: support only coco and BDD100K " + + self.img_info = {} + self.gt_labels_per_img = {} + self.pred_labels_per_img = {} + + with open(os.path.join(root, dataset, "annotations", self.gt_json)) as f: + gt_annotations = json.load(f) + #gt_image_ids = [p['id'] for p in gt_annotations['images']] + + for img in gt_annotations['images']: + self.img_info[img['id']] = img + + for anno in gt_annotations['annotations']: + if anno['image_id'] not in self.gt_labels_per_img: + self.gt_labels_per_img[anno['image_id']] = [] + + self.gt_labels_per_img[anno['image_id']].append(anno) + + for wpth in self.weak_pth: + weak_labels = torch.load(wpth, map_location='cpu') + #weak_labels = [w for w in weak_labels if w['image_id'] in gt_image_ids] + + for anno in weak_labels: + if anno['image_id'] not in self.pred_labels_per_img: + self.pred_labels_per_img[anno['image_id']] = [] + self.pred_labels_per_img[anno['image_id']] += anno['instances'] + + img_ids = self.pred_labels_per_img.keys() + self.matched_labels = self.label_matching(img_ids) + + np.random.shuffle(self.matched_labels) + del weak_labels + + def __getitem__(self, index): + scale = random.uniform(1.0, self.box_scale) + + l = self.matched_labels[index] + if self.dataset == 'coco': + img_path = self.img_dir % l['img_id'] + elif self.dataset == 'BDD100K': + img_path = self.img_dir % l['file_name'] + else: + raise "[ERROR] Invalid img path in datasets.coco.py" + + img = np.uint8( Image.open(img_path).convert('RGB') ) + point = l['point'] + pred = self.pred_labels_per_img[l['img_id']][l['pred_idx']] + gt = self.gt_labels_per_img[l['img_id']][l['gt_idx']] + + pred_mask = mask_util.decode(pred['segmentation']) + h, w = pred_mask.shape + + if type(gt['segmentation']) == list: + gt_mask = mask_util.decode(mask_util.merge(mask_util.frPyObjects(gt['segmentation'], h, w))) + elif type(gt['segmentation']['counts']) == list: + gt_mask = mask_util.decode(mask_util.frPyObjects(gt['segmentation'], h, w)) + else: + gt_mask = np.zeros((h, w), dtype=np.uint8) + + # loosely crop + y_coord, x_coord = pred_mask.nonzero() + ymin, xmin = int(y_coord.min()), int(x_coord.min()) + ymax, xmax = int(y_coord.max()), int(x_coord.max()) + + box_cx, box_cy = (xmin+xmax)/2, (ymin+ymax)/2 + box_w, box_h = (xmax-xmin), (ymax-ymin) + + xmin = int( max(0, box_cx - box_w / 2 * scale) ) + ymin = int( max(0, box_cy - box_h / 2 * scale) ) + xmax = int( min(w-1, box_cx + box_w / 2 * scale) ) + ymax = int( min(h-1, box_cy + box_h / 2 * scale) ) + + if point[1] > xmax: + xmax = int( min(w-1, point[1] + box_w / 2 * scale) ) + if point[1] < xmin: + xmin = int( max(0, point[1] - box_w / 2 * scale) ) + if point[0] > ymax: + ymax = int( min(h-1, point[0] + box_h / 2 * scale) ) + if point[0] < ymin: + ymin = int( max(0, point[0] - box_h / 2 * scale) ) + + cropped_img = img[ymin:ymax, xmin:xmax] + pred_cropped_mask = pred_mask[ymin:ymax, xmin:xmax] * l['category'] + gt_cropped_mask = gt_mask[ymin:ymax, xmin:xmax] * l['category'] + + ############# + cropped_img = Image.fromarray(cropped_img) + pred_cropped_mask = Image.fromarray(pred_cropped_mask) + gt_cropped_mask = Image.fromarray(gt_cropped_mask) + + if self.transform is not None: + [cropped_img], [pred_cropped_mask, gt_cropped_mask] = self.transform([cropped_img], [pred_cropped_mask, gt_cropped_mask]) + + pred_cropped_mask = pred_cropped_mask.long() + gt_cropped_mask = gt_cropped_mask.long() + t_cls = gt_cropped_mask.max() + th, tw = gt_cropped_mask.shape + + if t_cls == 0: + center_map = torch.zeros((self.num_classes+1, th, tw), dtype=torch.float32) + + else: + y_coord, x_coord = gt_cropped_mask.nonzero(as_tuple=True) + cy, cx = y_coord.float().mean(), x_coord.float().mean() + + center_map = np.zeros((self.num_classes+1, th, tw), dtype=np.float32) + center_map = center_map_gen(center_map, int(cx), int(cy), t_cls, self.sigma, self.g) + center_map = torch.from_numpy(center_map) + + # make binary mask + gt_cropped_mask = torch.where(gt_cropped_mask > 0, 1, 0) + pred_cropped_mask = torch.where(pred_cropped_mask > 0, 1, 0) + + cropped_img = torch.cat([cropped_img, center_map, pred_cropped_mask.unsqueeze(0)]) + + return {"img": cropped_img, "target": gt_cropped_mask} + + + def __len__(self): + return len(self.matched_labels) + + + def __repr__(self): + format_string = f"weak ({self.weak_pth}) | gt ({self.gt_json}) | # data {len(self.matched_labels)}" + return format_string + + + def label_matching(self, img_ids): + matched_labels = [] + + for img_id in img_ids: + if img_id in self.gt_labels_per_img and img_id in self.pred_labels_per_img: + info = self.img_info[img_id] + + gt_labels = self.gt_labels_per_img[img_id] + pred_labels = self.pred_labels_per_img[img_id] + + gt_point_per_cls = {} + + for j, l in enumerate(gt_labels): + if type(l['segmentation']) == list: + m = mask_util.decode(mask_util.merge(mask_util.frPyObjects(l['segmentation'], info['height'], info['width']))) + elif type(l['segmentation']['counts']) == list: + m = mask_util.decode(mask_util.frPyObjects(l['segmentation'], info['height'], info['width'])) + # elif 'counts' in l['segmentation']: + # m = mask_util.decode(l['segmentation']) + else: + print("[TYPE ERROR] in label_matching") + continue + cate = self.cls_ids.index(l['category_id']) + + y_coord, x_coord = m.nonzero() + cy, cx = y_coord.mean(), x_coord.mean() + + if cate not in gt_point_per_cls: + gt_point_per_cls[cate] = [] + + gt_point_per_cls[cate].append({"point":(cy, cx), "idx":j}) + + for j, l in enumerate(pred_labels): + cate = l['category_id'] + mask_h, mask_w = l['segmentation']['size'] + + cy = (l['bbox'][0] / 10000 * mask_h) + cx = (l['bbox'][1] / 10000 * mask_w) + + match_point = {"point":(0,0), "dist":999999, "idx":-1} + + if cate in gt_point_per_cls: + for gt in gt_point_per_cls[cate]: + dist = math.sqrt( (cy-gt['point'][0])**2 + (cx-gt['point'][1])**2 ) + if dist < match_point["dist"]: + match_point["dist"] = dist + match_point["point"] = gt['point'] + match_point["idx"] = gt['idx'] + + if dist != 999999: + matched_labels.append( + { + "pred_idx":j, + "gt_idx":match_point['idx'], + "point":match_point['point'], + "img_id":img_id, + "category":cate, + "file_name":info["file_name"], + } + ) + + return matched_labels + + + +class ValidSet(data.Dataset): + def __init__(self, root, dataset, num_classes, weak_pth=None, + gt_json=None, transform=None, size_cut=0, val_size=256, + box_scale=2.0, filtering=False): + + self.dataset = dataset + self.num_classes = num_classes + self.weak_pth = weak_pth + self.gt_json = gt_json + self.transform = transform + self.size_cut = size_cut + self.val_size = val_size + self.box_scale = box_scale + + self.sigma = 6 + self.g = gaussian(self.sigma) + + if self.dataset == 'coco': + self.img_dir = os.path.join(root, "coco", "train2017", "%012d.jpg") + self.cls_ids = [c['id'] for c in COCO_CATEGORIES] + + elif self.dataset == 'BDD100K': + self.img_dir = os.path.join(root, "BDD100K", "%s", "%s") + self.cls_ids = [c['id'] for c in BDD100K_CATEGORIES] + else: + raise "[ERROR] Invalid dataset: support only coco and BDD100K " + + self.gt_annotations = COCO(gt_json) + + gt_image_ids = [p['id'] for p in self.gt_annotations.dataset['images']] + + self.id_to_fname = {} + for p in self.gt_annotations.dataset['images']: + self.id_to_fname[p['id']] = p['file_name'] + + self.weak_labels = torch.load(weak_pth, map_location='cpu') + if filtering: + self.weak_labels = [w for w in self.weak_labels if w['image_id'] in gt_image_ids] + + def __getitem__(self, index): + + pred = self.weak_labels[index] + + if self.dataset == 'coco': + img_path = self.img_dir % pred['image_id'] + elif self.datsaet == 'BDD100K': + img_path = self.img_dir % ("train", self.id_to_fname[pred['image_id']]) + if not os.path.exists(img_path): + img_path = self.img_dir % ("val", self.id_to_fname[pred['image_id']]) + else: + raise "[ERROR] Invalid img path in datasets.coco.py" + + x = Image.open(img_path).convert('RGB') + x = TF.to_tensor(x) + x = TF.normalize(x, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) + + meta = [] + inputs = [] + + for inst in pred['instances']: + category_id = inst['category_id'] + rle = inst['segmentation'] + mask = mask_util.decode(rle) + mask_h, mask_w = mask.shape + + y_coord, x_coord = mask.nonzero() + ymin, xmin = int(y_coord.min()), int(x_coord.min()) + ymax, xmax = int(y_coord.max()), int(x_coord.max()) + bbox = (xmin, ymin, xmax-xmin, ymax-ymin) + + box_cx, box_cy = (xmin+xmax)/2, (ymin+ymax)/2 + box_w, box_h = (xmax-xmin), (ymax-ymin) + + crop_xmin = int( max(0, box_cx - box_w / 2 * self.box_scale) ) + crop_ymin = int( max(0, box_cy - box_h / 2 * self.box_scale) ) + crop_xmax = int( min(mask_w-1, box_cx + box_w / 2 * self.box_scale) ) + crop_ymax = int( min(mask_h-1, box_cy + box_h / 2 * self.box_scale) ) + + gt_cy = (inst['bbox'][0] / 10000 * mask_h) + gt_cx = (inst['bbox'][1] / 10000 * mask_w) + + if gt_cx > crop_xmax: + crop_xmax = int( min(mask_w-1, gt_cx + box_w / 2 * self.box_scale) ) + if gt_cx < crop_xmin: + crop_xmin = int( max(0, gt_cx - box_w / 2 * self.box_scale) ) + if gt_cy > crop_ymax: + crop_ymax = int( min(mask_h-1, gt_cy + box_h / 2 * self.box_scale) ) + if gt_cy < crop_ymin: + crop_ymin = int( max(0, gt_cy - box_h / 2 * self.box_scale) ) + + if (crop_ymax-crop_ymin+1) > self.size_cut and (crop_xmax-crop_xmin+1) > self.size_cut and mask.sum() > 0: + cropped_x = x[:, crop_ymin:crop_ymax+1, crop_xmin:crop_xmax+1].clone() + cropped_mask = torch.from_numpy(mask[crop_ymin:crop_ymax+1, crop_xmin:crop_xmax+1]) * (category_id + 1) + cropped_cls = cropped_mask.max() + + _, ori_h, ori_w = cropped_x.shape + + cropped_mask = torch.where(cropped_mask > 0, 1, 0) + + cropped_x, cropped_mask = self.tensor_resize(cropped_x, cropped_mask, self.val_size) + + _, crop_h, crop_w = cropped_mask.shape + + gt_cx = int( (gt_cx-crop_xmin) / ori_w * crop_w) + gt_cy = int( (gt_cy-crop_ymin) / ori_h * crop_h) + + center_map = np.zeros((self.num_classes+1, crop_h, crop_w), dtype=np.float32) + center_map = center_map_gen(center_map, gt_cx, gt_cy, cropped_cls, self.sigma, self.g) + center_map = torch.from_numpy(center_map) + + cropped_x = torch.cat([cropped_x, center_map, cropped_mask]) + + inputs.append(cropped_x) + else: + inputs.append(0) + ori_h, ori_w = 0, 0 + + meta.append( + { + 'image_id': inst['image_id'], + 'category_id': self.cls_ids[inst['category_id']], + 'bbox': bbox, + 'crop_bbox': (crop_xmin, crop_ymin, crop_xmax, crop_ymax), + 'segmentation': mask, + 'ori_size': (ori_h, ori_w), + } + ) + return inputs, meta + + def tensor_resize(self, img, mask, size): + + if type(size) == list: + h, w = size + else: + h, w = size, size + + img = F.interpolate(img[None, ...], (h, w), mode="bilinear", align_corners=False).squeeze(0) + mask = F.interpolate(mask[None, None, ...].float(), (h, w), mode="nearest").squeeze(0) + + return img, mask + + def __len__(self): + return len(self.weak_labels) + + def __repr__(self): + format_string = f" weak ({self.weak_pth}): # {len(self.weak_labels)} \n gt ({self.gt_json}): # {len(self.gt_annotations.dataset['images'])}" + return format_string + diff --git a/MaskRefineNet/datasets/utils.py b/MaskRefineNet/datasets/utils.py new file mode 100644 index 0000000..ed9f0a6 --- /dev/null +++ b/MaskRefineNet/datasets/utils.py @@ -0,0 +1,149 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import numpy as np + +COCO_CATEGORIES = [ + {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"}, + {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"}, + {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, + {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"}, + {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"}, + {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"}, + {"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "train"}, + {"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "truck"}, + {"color": [0, 0, 192], "isthing": 1, "id": 9, "name": "boat"}, + {"color": [250, 170, 30], "isthing": 1, "id": 10, "name": "traffic light"}, + {"color": [100, 170, 30], "isthing": 1, "id": 11, "name": "fire hydrant"}, + {"color": [220, 220, 0], "isthing": 1, "id": 13, "name": "stop sign"}, + {"color": [175, 116, 175], "isthing": 1, "id": 14, "name": "parking meter"}, + {"color": [250, 0, 30], "isthing": 1, "id": 15, "name": "bench"}, + {"color": [165, 42, 42], "isthing": 1, "id": 16, "name": "bird"}, + {"color": [255, 77, 255], "isthing": 1, "id": 17, "name": "cat"}, + {"color": [0, 226, 252], "isthing": 1, "id": 18, "name": "dog"}, + {"color": [182, 182, 255], "isthing": 1, "id": 19, "name": "horse"}, + {"color": [0, 82, 0], "isthing": 1, "id": 20, "name": "sheep"}, + {"color": [120, 166, 157], "isthing": 1, "id": 21, "name": "cow"}, + {"color": [110, 76, 0], "isthing": 1, "id": 22, "name": "elephant"}, + {"color": [174, 57, 255], "isthing": 1, "id": 23, "name": "bear"}, + {"color": [199, 100, 0], "isthing": 1, "id": 24, "name": "zebra"}, + {"color": [72, 0, 118], "isthing": 1, "id": 25, "name": "giraffe"}, + {"color": [255, 179, 240], "isthing": 1, "id": 27, "name": "backpack"}, + {"color": [0, 125, 92], "isthing": 1, "id": 28, "name": "umbrella"}, + {"color": [209, 0, 151], "isthing": 1, "id": 31, "name": "handbag"}, + {"color": [188, 208, 182], "isthing": 1, "id": 32, "name": "tie"}, + {"color": [0, 220, 176], "isthing": 1, "id": 33, "name": "suitcase"}, + {"color": [255, 99, 164], "isthing": 1, "id": 34, "name": "frisbee"}, + {"color": [92, 0, 73], "isthing": 1, "id": 35, "name": "skis"}, + {"color": [133, 129, 255], "isthing": 1, "id": 36, "name": "snowboard"}, + {"color": [78, 180, 255], "isthing": 1, "id": 37, "name": "sports ball"}, + {"color": [0, 228, 0], "isthing": 1, "id": 38, "name": "kite"}, + {"color": [174, 255, 243], "isthing": 1, "id": 39, "name": "baseball bat"}, + {"color": [45, 89, 255], "isthing": 1, "id": 40, "name": "baseball glove"}, + {"color": [134, 134, 103], "isthing": 1, "id": 41, "name": "skateboard"}, + {"color": [145, 148, 174], "isthing": 1, "id": 42, "name": "surfboard"}, + {"color": [255, 208, 186], "isthing": 1, "id": 43, "name": "tennis racket"}, + {"color": [197, 226, 255], "isthing": 1, "id": 44, "name": "bottle"}, + {"color": [171, 134, 1], "isthing": 1, "id": 46, "name": "wine glass"}, + {"color": [109, 63, 54], "isthing": 1, "id": 47, "name": "cup"}, + {"color": [207, 138, 255], "isthing": 1, "id": 48, "name": "fork"}, + {"color": [151, 0, 95], "isthing": 1, "id": 49, "name": "knife"}, + {"color": [9, 80, 61], "isthing": 1, "id": 50, "name": "spoon"}, + {"color": [84, 105, 51], "isthing": 1, "id": 51, "name": "bowl"}, + {"color": [74, 65, 105], "isthing": 1, "id": 52, "name": "banana"}, + {"color": [166, 196, 102], "isthing": 1, "id": 53, "name": "apple"}, + {"color": [208, 195, 210], "isthing": 1, "id": 54, "name": "sandwich"}, + {"color": [255, 109, 65], "isthing": 1, "id": 55, "name": "orange"}, + {"color": [0, 143, 149], "isthing": 1, "id": 56, "name": "broccoli"}, + {"color": [179, 0, 194], "isthing": 1, "id": 57, "name": "carrot"}, + {"color": [209, 99, 106], "isthing": 1, "id": 58, "name": "hot dog"}, + {"color": [5, 121, 0], "isthing": 1, "id": 59, "name": "pizza"}, + {"color": [227, 255, 205], "isthing": 1, "id": 60, "name": "donut"}, + {"color": [147, 186, 208], "isthing": 1, "id": 61, "name": "cake"}, + {"color": [153, 69, 1], "isthing": 1, "id": 62, "name": "chair"}, + {"color": [3, 95, 161], "isthing": 1, "id": 63, "name": "couch"}, + {"color": [163, 255, 0], "isthing": 1, "id": 64, "name": "potted plant"}, + {"color": [119, 0, 170], "isthing": 1, "id": 65, "name": "bed"}, + {"color": [0, 182, 199], "isthing": 1, "id": 67, "name": "dining table"}, + {"color": [0, 165, 120], "isthing": 1, "id": 70, "name": "toilet"}, + {"color": [183, 130, 88], "isthing": 1, "id": 72, "name": "tv"}, + {"color": [95, 32, 0], "isthing": 1, "id": 73, "name": "laptop"}, + {"color": [130, 114, 135], "isthing": 1, "id": 74, "name": "mouse"}, + {"color": [110, 129, 133], "isthing": 1, "id": 75, "name": "remote"}, + {"color": [166, 74, 118], "isthing": 1, "id": 76, "name": "keyboard"}, + {"color": [219, 142, 185], "isthing": 1, "id": 77, "name": "cell phone"}, + {"color": [79, 210, 114], "isthing": 1, "id": 78, "name": "microwave"}, + {"color": [178, 90, 62], "isthing": 1, "id": 79, "name": "oven"}, + {"color": [65, 70, 15], "isthing": 1, "id": 80, "name": "toaster"}, + {"color": [127, 167, 115], "isthing": 1, "id": 81, "name": "sink"}, + {"color": [59, 105, 106], "isthing": 1, "id": 82, "name": "refrigerator"}, + {"color": [142, 108, 45], "isthing": 1, "id": 84, "name": "book"}, + {"color": [196, 172, 0], "isthing": 1, "id": 85, "name": "clock"}, + {"color": [95, 54, 80], "isthing": 1, "id": 86, "name": "vase"}, + {"color": [128, 76, 255], "isthing": 1, "id": 87, "name": "scissors"}, + {"color": [201, 57, 1], "isthing": 1, "id": 88, "name": "teddy bear"}, + {"color": [246, 0, 122], "isthing": 1, "id": 89, "name": "hair drier"}, + {"color": [191, 162, 208], "isthing": 1, "id": 90, "name": "toothbrush"}, +] + +BDD100K_CATEGORIES = [ + {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "pedestrian"}, + {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "rider"}, + {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, + {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "truck"}, + {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "bus"}, + {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "train"}, + {"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "motorcycle"}, + {"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "bicycle"}, +] + +def gaussian(sigma=6): + """ + 2D Gaussian Kernel Generation. + """ + size = 6 * sigma + 3 + x = np.arange(0, size, 1, float) + y = x[:, np.newaxis] + x0, y0 = 3 * sigma + 1, 3 * sigma + 1 + g = np.exp(- ((x - x0) ** 2 + (y - y0) ** 2) / (2 * sigma ** 2)) + return g + +def center_map_gen(center_map, x, y, label, sigma, g): + """ + Center map generation. point to heatmap. + Arguments: + center_map: A Tensor of shape [C, H, W]. + x: A Int type value. x-coordinate for the center point. + y: A Int type value. y-coordinate for the center point. + label: A Int type value. class for the center point. + sigma: A Int type value. sigma for 2D gaussian kernel. + g: A numpy array. predefined 2D gaussian kernel to be encoded in the center_map. + + Returns: + A numpy array of shape [C, H, W]. center map in which points are encoded in 2D gaussian kernel. + """ + + channel, height, width = center_map.shape + + # outside image boundary + if x < 0 or y < 0 or x >= width or y >= height: + return center_map + + # upper left + ul = int(np.round(x - 3 * sigma - 1)), int(np.round(y - 3 * sigma - 1)) + # bottom right + br = int(np.round(x + 3 * sigma + 2)), int(np.round(y + 3 * sigma + 2)) + + c, d = max(0, -ul[0]), min(br[0], width) - ul[0] + a, b = max(0, -ul[1]), min(br[1], height) - ul[1] + + cc, dd = max(0, ul[0]), min(br[0], width) + aa, bb = max(0, ul[1]), min(br[1], height) + + center_map[label, aa:bb, cc:dd] = np.maximum( + center_map[label, aa:bb, cc:dd], g[a:b, c:d]) + + return center_map diff --git a/MaskRefineNet/main.py b/MaskRefineNet/main.py new file mode 100755 index 0000000..9c2bff0 --- /dev/null +++ b/MaskRefineNet/main.py @@ -0,0 +1,415 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import os +import warnings +warnings.filterwarnings(action="ignore") + +os.environ["OPENBLAS_NUM_THREADS"] = "1" +os.environ["MKL_NUM_THREADS"] = "1" + +import random +import argparse +import numpy as np +import time +import itertools +from tqdm import tqdm + +import torch +import torch.nn as nn +import torch.nn.functional as F + +from torch.utils import data +import torch.utils.data +import torch.utils.data.distributed +from torch.utils.data.distributed import DistributedSampler +from torch.nn.parallel import DistributedDataParallel as DDP +from torch.utils.tensorboard import SummaryWriter + +from network import UNet_ResNet101 +from datasets import dataset_factory +from utils import AverageMeter, optim_factory, save_checkpoint, tensorboard_report +from utils.loss import DiceLoss +from utils.distributed import gather + +from pycocotools.coco import COCO +from pycocotools.cocoeval import COCOeval +import pycocotools.mask as mask_util + +torch.backends.cudnn.benchmark = True + +NUM_CLASSES = {'coco': 80, 'BDD100K': 8} + +def str2bool(v): + return v.lower() in ("yes", "y", "true", "t", "1") + +def get_argparser(): + parser = argparse.ArgumentParser() + + # Path option + parser.add_argument("--data_root", type=str, default="/mnt/tmp", help="path to Dataset") + parser.add_argument("--workspace", type=str, default="results", help="workspace path") + parser.add_argument("--exp_name", type=str, default="segmentation", help="experiment name") + parser.add_argument("--dataset", type=str, default='coco', choices=["coco", "BDD100K"]) + + # Deeplab Options + parser.add_argument("--num_classes", type=int, default=80, help="80 for coco, 8 for BDD100K") + parser.add_argument("--box_scale", type=float, default=2.0) + + parser.add_argument("--weak_pth", nargs='+', type=str) + parser.add_argument("--gt_json", type=str) + parser.add_argument("--eval_pth", type=str) + parser.add_argument("--eval_json", type=str, default="datasets/coco/instances_train2017_refine_test_1K.json") + + # Train Options + parser.add_argument("--ddp", action="store_true", default=False) + parser.add_argument("--amp", action="store_true", default=False) + parser.add_argument("--test_only", action="store_true", default=False) + parser.add_argument("--train_iters", type=int, default=0, help="total training iteration") + parser.add_argument("--warm_iters", type=int, default=0, help="warm-up iterations") + + parser.add_argument("--optim", type=str, default="adam", choices=["sgd", "adam"]) + parser.add_argument("--lr", type=float, default=1e-4, help="learning rate (default: 1e-4)") + parser.add_argument("--lr_policy", type=str, default="cosine", help="learning rate scheduler policy") + parser.add_argument("--weight_decay", type=float, default=0, help="weight decay") + + parser.add_argument("--batch_size", type=int, default=16, help="batch size (default: 16)") + parser.add_argument("--train_size", type=str, default="256", help="input size for training (support multi-scale sizes)") + parser.add_argument("--val_size", type=str, default="256", help="input size for validation (support multi-scale sizes)") + parser.add_argument("--workers", type=int, default=4) + parser.add_argument("--restore", default='none', type=str, help="restore from checkpoint") + parser.add_argument("--ckpt_dir", default="ckpts", type=str, help="save dir") + + parser.add_argument("--aug_min_scale", type=float, default=0.5, help="min scale for random scale augmentation") + parser.add_argument("--aug_max_scale", type=float, default=1.5, help="max scale for random scale augmentation") + parser.add_argument("--aug_color", type=float, default=0.0, help="prob for random color jiterring augmentation") + + parser.add_argument("--random_seed", type=int, default=3407, help="random seed (default: 2)") + parser.add_argument("--print_interval", type=int, default=100, help="print interval of loss (default: 10)") + parser.add_argument("--val_interval", type=int, default=1000, help="epoch interval for eval (default: 100)") + + # DDP Options + parser.add_argument("--gpu", type=int, default=0) + parser.add_argument("--world_size", type=int, default=1) + parser.add_argument("--local_rank", type=int, default=int(os.getenv("LOCAL_RANK", "0"))) + + return parser + + +def print_func(string, rank): + if rank == 0: + print(string) + + +def train(): + # ========== Train Loop ==========# + scaler = torch.cuda.amp.GradScaler(enabled=args.amp) + + avg_loss = AverageMeter(args.ddp) + data_time = AverageMeter(args.ddp) + avg_time = AverageMeter(args.ddp) + + # switch to train mode + model.train() + start = time.time() + end = time.time() + epoch = 0 + cur_itrs = 0 + + # best score dict initialize + best_AP = 0 + + while cur_itrs < args.train_iters: + try: + data_end = time.time() + dat = next(data_iter) + data_time.update(time.time() - data_end) + except: + epoch += 1 + data_iter = iter(train_loader) + dat = next(data_iter) + avg_loss.reset() + data_time.reset() + avg_time.reset() + + if args.local_rank == 0: + save_path = f"{args.ckpt_dir}/last.pt" + save_checkpoint(save_path, model, epoch, cur_itrs, best_AP, args.ddp) + + cur_itrs += 1 + + images = dat['img'].to(device, non_blocking=True) + labels = dat['target'].to(device, non_blocking=True) + + optimizer.zero_grad() + + with torch.cuda.amp.autocast(enabled=args.amp): + outputs = model(images) + loss = criterion(outputs, labels) + + scaler.scale(loss).backward() + scaler.step(optimizer) + scaler.update() + scheduler.step() + + avg_time.update(time.time()-end) + avg_loss.update(loss.item(), images.size(0)) + + if cur_itrs % args.print_interval == 0: + data_time.synch(device) + avg_time.synch(device) + avg_loss.synch(device) + + if args.local_rank == 0: + print( + "Progress: [{0}][{1}/{2}] ({3:.1f}%, {4:.1f} min) | " + "Data Time: {5:.1f} ms | " + "Epoch Time: {6:.1f} ms | " + "Left: {7:.1f} min | " + "LR: {8:.8f} | " + "Loss: {avg_loss.avg:.6}".format( + epoch, cur_itrs, args.train_iters, cur_itrs / args.train_iters * 100, (end - start) / 60, + data_time.avg * 1000, avg_time.avg * 1000, (args.train_iters - cur_itrs) * avg_time.avg / 60, + optimizer.param_groups[0]["lr"], avg_loss=avg_loss) + ) + + report_dict = dict() + report_dict["optim/progress"] = float(cur_itrs / args.train_iters) + report_dict["optim/epoch"] = epoch + report_dict["optim/learning_rate"] = optimizer.param_groups[-1]["lr"] + report_dict["optim/data_time"] = data_time.avg * 1000 + report_dict["optim/epoch_time"] = avg_time.avg * 1000 + report_dict["optim/left"] = ((args.train_iters - cur_itrs) * avg_time.avg / 60) + report_dict["train/loss"] = avg_loss.avg + + tensorboard_report(writer, report_dict, cur_itrs) + + if (cur_itrs) % args.val_interval == 0: + print_func("validation...", rank=args.local_rank) + model.eval() + + if args.ddp: + torch.distributed.barrier() + + val_score = validate() + + if args.local_rank == 0: + report_dict = dict() + + for k, v in val_score.items(): + if type(v) is not dict: + report_dict[k] = float(v) + + tensorboard_report(writer, report_dict, cur_itrs) + + if val_score["val/AP"] >= best_AP: + best_AP = val_score["val/AP"] + save_path = f"{args.ckpt_dir}/best_AP.pt" + save_checkpoint(save_path, model, epoch, cur_itrs, best_AP, args.ddp) + print("Best COCO AP Model saved: %.8f" % (best_AP)) + + model.train() + + end = time.time() + + +def validate(): + """Do validation and return specified samples""" + score = {} + _annotations = [] + + if args.local_rank == 0: + progress_bar = tqdm(total=len(valid_loader)) + + with torch.no_grad(): + for inputs, meta in valid_loader: + if args.local_rank == 0: + progress_bar.update(1) + + for n in range(len(inputs)): + meta[n]['image_id'] = int(meta[n]['image_id']) + meta[n]['category_id'] = int(meta[n]['category_id']) + meta[n]['bbox'] = list(map(int, meta[n]['bbox'])) + meta[n]['crop_bbox'] = list(map(int, meta[n]['crop_bbox'])) + meta[n]['ori_size'] = list(map(int, meta[n]['ori_size'])) + meta[n]['segmentation'] = meta[n]['segmentation'][0].numpy() + + if meta[n]['ori_size'] == [0, 0]: + refined_mask = meta[n]['segmentation'] + else: + out = model(inputs[n].to(device)) + out = torch.softmax(out, 1) + out = F.interpolate(out, size=meta[n]['ori_size'], mode="bilinear", align_corners=False) + out = out.argmax(1)[0].detach().cpu().numpy() + out = (out > 0).astype(np.uint8) + + refined_mask = np.zeros_like(meta[n]['segmentation']) + refined_mask[meta[n]['crop_bbox'][1]:meta[n]['crop_bbox'][3]+1, + meta[n]['crop_bbox'][0]:meta[n]['crop_bbox'][2]+1] = out + + if refined_mask.sum() > 0: + y_coord, x_coord = refined_mask.nonzero() + ymin, xmin = int(y_coord.min()), int(x_coord.min()) + ymax, xmax = int(y_coord.max()), int(x_coord.max()) + meta[n]['bbox'] = [xmin, ymin, xmax-xmin, ymax-ymin] + else: + refined_mask = meta[n]['segmentation'] + + refined_mask_rle = mask_util.encode(np.asfortranarray(refined_mask)) + refined_mask_rle['counts'] = refined_mask_rle['counts'].decode('ascii') + + meta[n]['segmentation'] = refined_mask_rle + meta[n]['area'] = int(np.sum(refined_mask)) + meta[n]['iscrowd'] = False + meta[n]['id'] = 0 + meta[n]['score'] = 1.0 + + del meta[n]['ori_size'] + del meta[n]['crop_bbox'] + _annotations.append(meta[n]) + + annotations = gather(_annotations, dst=0) + annotations = list(itertools.chain(*annotations)) + + if args.local_rank == 0: + progress_bar.close() + + for inst_id, anno in enumerate(annotations): + anno['id'] = inst_id+1 + + pred_annotations = COCO() + pred_annotations.dataset['categories'] = valid_dst.gt_annotations.dataset['categories'] + pred_annotations.dataset['annotations'] = annotations + pred_annotations.dataset['images'] = valid_dst.gt_annotations.dataset['images'] + pred_annotations.createIndex() + + print('\nEvaluating Refined Masks:') + coco_eval = COCOeval(valid_dst.gt_annotations, pred_annotations, 'segm') + coco_eval.evaluate() + coco_eval.accumulate() + coco_eval.summarize() + + score['val/AP'] = coco_eval.stats[0] + score['val/AP50'] = coco_eval.stats[1] + score['val/AP75'] = coco_eval.stats[2] + score['val/AP_S'] = coco_eval.stats[3] + score['val/AP_M'] = coco_eval.stats[4] + score['val/AP_L'] = coco_eval.stats[5] + score['val/AR100'] = coco_eval.stats[7] + + return score + + +if __name__ == "__main__": + + args = get_argparser().parse_args() + + # Setup random seed + torch.manual_seed(args.random_seed) + np.random.seed(args.random_seed) + random.seed(args.random_seed) + + session_dir = os.path.join(args.workspace, args.exp_name) + args.ckpt_dir = os.path.join(session_dir, "ckpt") + + if args.local_rank == 0: + os.makedirs(session_dir, exist_ok=True, mode=0o777) + os.makedirs(args.ckpt_dir, exist_ok=True, mode=0o777) + writer = SummaryWriter(log_dir=session_dir) + + args.gpu = args.local_rank + torch.cuda.set_device(args.gpu) + n_gpus = torch.cuda.device_count() + device = torch.device(f"cuda:{args.gpu}") + + args.ddp = True if n_gpus > 1 else False + + # Init dirstributed system + if args.ddp: + torch.distributed.init_process_group(backend="nccl", rank=args.local_rank, world_size=n_gpus) + args.world_size = torch.distributed.get_world_size() + + batch_per_gpu_train = args.batch_size // n_gpus + + # str -> integer list + args.train_size = list(map(int, args.train_size.split(","))) if len(args.train_size.split(",")) > 1 else int(args.train_size) + args.val_size = list(map(int, args.val_size.split(","))) if len(args.val_size.split(",")) > 1 else int(args.val_size) + + # Setup dataloader + train_dst, valid_dst = dataset_factory(args) + + train_loader = data.DataLoader( + train_dst, + batch_size=batch_per_gpu_train, + num_workers=args.workers, + sampler=DistributedSampler(train_dst, num_replicas=n_gpus, rank=args.local_rank) if args.ddp else None, + shuffle=False if args.ddp else True, + pin_memory=True, + drop_last=True, + ) + + valid_loader = data.DataLoader( + valid_dst, + batch_size=1, + num_workers=0, + sampler=DistributedSampler(valid_dst, num_replicas=n_gpus, rank=args.local_rank) if args.ddp else None, + pin_memory=True, + drop_last=False, + ) + + args.num_classes = NUM_CLASSES[args.dataset] + print_func(f"LOG | Dataset | {train_dst} | {valid_dst} ", args.local_rank) + print_func("LOG | Num_Classes: %d, Train Iters: %d, Warm Iters: %d" + % (args.num_classes, args.train_iters, args.warm_iters), args.local_rank) + + # Set up model + # input channel + # RGB image (3-channel) + # prior mask (1-channel) + # center map (num_classes+1 channel) + + model = UNet_ResNet101( + output_channel=2, + input_channel=3+1+args.num_classes+1, + ) + model.to(device) + + optimizer, scheduler = optim_factory( + args, + model.parameters(), + args.train_iters, + args.warm_iters, + ) + + # Set up criterion + criterion = DiceLoss() + + # Restore + if os.path.exists(args.restore): + checkpoint = torch.load(args.restore, map_location=torch.device("cpu")) + model.load_state_dict(checkpoint["model_state"], strict=True) + + print_func("LOG: Model restored from %s" % args.restore, rank=args.local_rank) + del checkpoint # free memory + # model.head_init() + else: + print_func("LOG: Training without restoring weight: %s" % args.restore, rank=args.local_rank) + + # DDP + if args.ddp: + model = nn.SyncBatchNorm.convert_sync_batchnorm(model) + model = DDP( + model, + device_ids=[args.gpu], + output_device=args.gpu, + ) + torch.distributed.barrier() + + print_func("LOG: start training...", rank=args.local_rank) + print_func(args, rank=args.local_rank) + + train() + \ No newline at end of file diff --git a/MaskRefineNet/merge_strong_and_refined_weak_labels.py b/MaskRefineNet/merge_strong_and_refined_weak_labels.py new file mode 100755 index 0000000..7adb267 --- /dev/null +++ b/MaskRefineNet/merge_strong_and_refined_weak_labels.py @@ -0,0 +1,215 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import os +import warnings +warnings.filterwarnings(action="ignore") + +os.environ["OPENBLAS_NUM_THREADS"] = "1" +os.environ["MKL_NUM_THREADS"] = "1" + +import argparse +import numpy as np +import torch +import json +import itertools +from tqdm import tqdm + +import torch.utils.data +import torch.utils.data.distributed +from torch.utils import data +from torch.utils.data.distributed import DistributedSampler +from torch.nn.parallel import DistributedDataParallel as DDP + +import pycocotools.mask as mask_util +from torch.nn.functional import interpolate + +from network import UNet_ResNet101 +from datasets import ValidSet +from utils.distributed import gather + +torch.backends.cudnn.benchmark = True + +NUM_CLASSES = {'coco': 80, 'BDD100K': 8} + +def str2bool(v): + return v.lower() in ("yes", "y", "true", "t", "1") + +def get_argparser(): + parser = argparse.ArgumentParser() + + # Path option + parser.add_argument("--data_root", type=str, default="/mnt/tmp", help="path to Dataset") + parser.add_argument("--dataset", type=str, default='coco', choices=["coco", "BDD100K"]) + parser.add_argument("--weak_pth", type=str, default="higher_hrnet48", help="model name") + parser.add_argument("--weak_json", type=str, default=None, help="model name") + parser.add_argument("--strong_json", type=str, default=None, help="model name") + parser.add_argument("--save_path", type=str, default=None, help="model name") + + # Deeplab Options + parser.add_argument("--num_classes", type=int, default=80, help="80 for coco, 8 for BDD100K") + parser.add_argument("--size", type=int, default=256, help='input tensor size') + parser.add_argument("--size_cut", type=int, default=0) + parser.add_argument("--box_scale", type=float, default=2.0) + + # Train Options + parser.add_argument("--ckpt", default='none', type=str, help="restore from checkpoint") + + parser.add_argument("--gpu", type=int, default=0) + parser.add_argument("--world_size", type=int, default=1) + parser.add_argument("--local_rank", type=int, default=int(os.getenv("LOCAL_RANK", "0"))) + + return parser + +def inference(): + """Do validation and return specified samples""" + model.eval() + _annotations = [] + + with torch.no_grad(): + for inputs, meta in tqdm(valid_loader): + for n in range(len(inputs)): + meta[n]['image_id'] = int(meta[n]['image_id']) + meta[n]['category_id'] = int(meta[n]['category_id']) + meta[n]['bbox'] = list(map(int, meta[n]['bbox'])) + meta[n]['crop_bbox'] = list(map(int, meta[n]['crop_bbox'])) + meta[n]['ori_size'] = list(map(int, meta[n]['ori_size'])) + meta[n]['segmentation'] = meta[n]['segmentation'][0].numpy() + + if meta[n]['ori_size'] == [0, 0]: + refined_mask = meta[n]['segmentation'] + else: + out = model(inputs[n].to(device, non_blocking=True)) + out = torch.softmax(out, 1) + out = interpolate(out, size=meta[n]['ori_size'], mode="bilinear", align_corners=False) + out = out.argmax(1)[0].detach().cpu().numpy() + out = (out > 0).astype(np.uint8) + + refined_mask = np.zeros_like(meta[n]['segmentation']) + refined_mask[meta[n]['crop_bbox'][1]:meta[n]['crop_bbox'][3]+1, + meta[n]['crop_bbox'][0]:meta[n]['crop_bbox'][2]+1] = out + + if refined_mask.sum() > 0: + y_coord, x_coord = refined_mask.nonzero() + ymin, xmin = int(y_coord.min()), int(x_coord.min()) + ymax, xmax = int(y_coord.max()), int(x_coord.max()) + meta[n]['bbox'] = [xmin, ymin, xmax-xmin, ymax-ymin] + else: + refined_mask = meta[n]['segmentation'] + + refined_mask_rle = mask_util.encode(np.asfortranarray(refined_mask)) + refined_mask_rle['counts'] = refined_mask_rle['counts'].decode('ascii') + + meta[n]['segmentation'] = refined_mask_rle + meta[n]['area'] = int(np.sum(refined_mask)) + meta[n]['iscrowd'] = False + meta[n]['id'] = 0 + del meta[n]['ori_size'] + del meta[n]['crop_bbox'] + _annotations.append(meta[n]) + + annotations = gather(_annotations, dst=0) + annotations = list(itertools.chain(*annotations)) + + return annotations + + +if __name__ == "__main__": + + args = get_argparser().parse_args() + + args.gpu = args.local_rank + torch.cuda.set_device(args.gpu) + n_gpus = torch.cuda.device_count() + device = torch.device(f"cuda:{args.gpu}") + + args.ddp = True if n_gpus > 1 else False + + # Init dirstributed system + if args.ddp: + torch.distributed.init_process_group(backend="nccl", rank=args.local_rank, world_size=n_gpus) + args.world_size = torch.distributed.get_world_size() + + args.num_classes = NUM_CLASSES[args.dataset] + + valid_dst = ValidSet( + root=args.data_root, + dataset=args.dataset, + num_classes=args.num_classes, + weak_pth=args.weak_pth, + gt_json=args.strong_json, + val_size=args.size, + box_scale=args.box_scale + ) + if args.local_rank == 0: + print("======================") + print(args) + print("======================") + print(valid_dst) + print("======================") + + valid_loader = data.DataLoader( + valid_dst, + batch_size=1, + num_workers=0, + sampler=DistributedSampler(valid_dst, num_replicas=n_gpus, rank=args.local_rank) if args.ddp else None, + pin_memory=False, + drop_last=False, + ) + + # Set up model + # input channel + # RGB image (3-channel) + # prior mask (1-channel) + # center map (num_classes+1 channel) + model = UNet_ResNet101( + output_channel=2, + input_channel=3+1+args.num_classes+1, + ) + model.to(device) + + checkpoint = torch.load(args.ckpt, map_location=torch.device("cpu")) + model.load_state_dict(checkpoint["model_state"], strict=True) + if args.local_rank == 0: + print("LOG: Model restored from %s" % args.ckpt) + + if args.ddp: + model = DDP( + model, + device_ids=[args.gpu], + output_device=args.gpu, + ) + + pseudo_annotations = inference() + + if args.local_rank == 0: + strong_labels = valid_dst.gt_annotations.dataset + print("strong_labels : ", len(strong_labels['images']), len(strong_labels['annotations'])) + + with open(args.weak_json) as f: + weak_json = json.load(f) + print("weak_json : ", len(weak_json['images']), len(weak_json['annotations'])) + + refined_weak_results = { + 'info': weak_json['info'], + 'licenses': weak_json['licenses'], + 'categories': weak_json['categories'], + 'images': weak_json['images'] + strong_labels['images'], + 'annotations': strong_labels['annotations'] + pseudo_annotations, + } + + for inst_id, anno in enumerate(refined_weak_results["annotations"]): + anno['id'] = inst_id+1 + + with open(args.save_path, 'w') as f: + json.dump(refined_weak_results, f) + + print("\n=============================================") + print(f" strong_labels : img {len(strong_labels['images'])} , anno {len(strong_labels['annotations'])}") + print(f" weak_labels : img {len(weak_json['images'])} , anno {len(weak_json['annotations'])}") + print(f" refined_weak_labels : img {len(weak_json['images'])} , anno {len(refined_weak_results['annotations'])-len(strong_labels['annotations'])}") + print(f" merge_labels : img {len(refined_weak_results['images'])} , anno {len(refined_weak_results['annotations'])}") + print("=============================================\n") diff --git a/MaskRefineNet/network/__init__.py b/MaskRefineNet/network/__init__.py new file mode 100755 index 0000000..b079f13 --- /dev/null +++ b/MaskRefineNet/network/__init__.py @@ -0,0 +1 @@ +from .unet import UNet_ResNet101 diff --git a/MaskRefineNet/network/modules.py b/MaskRefineNet/network/modules.py new file mode 100755 index 0000000..bd6fa33 --- /dev/null +++ b/MaskRefineNet/network/modules.py @@ -0,0 +1,270 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import torch +import torch.nn as nn + +class ConvBN(nn.Sequential): + def __init__( + self, + in_planes, + out_planes, + kernel_size=3, + stride=1, + groups=1, + dilation=1, + padding=None, + bias=False, + ): + if padding is None: + padding = (kernel_size - 1) // 2 + super(ConvBN, self).__init__( + nn.Conv2d( + in_planes, + out_planes, + kernel_size, + stride, + padding, + groups=groups, + dilation=dilation, + bias=bias, + ), + nn.BatchNorm2d(out_planes), + ) + + +class ConvBNReLU(nn.Sequential): + def __init__( + self, + in_planes, + out_planes, + kernel_size=3, + stride=1, + groups=1, + dilation=1, + padding=None, + ): + if padding is None: + padding = (kernel_size - 1) // 2 + super(ConvBNReLU, self).__init__( + nn.Conv2d( + in_planes, + out_planes, + kernel_size, + stride, + padding, + groups=groups, + dilation=dilation, + bias=False, + ), + nn.BatchNorm2d(out_planes), + nn.ReLU(inplace=True), + ) + + +class ConvAct(nn.Sequential): + def __init__( + self, + in_planes, + out_planes, + kernel_size=3, + stride=1, + groups=1, + dilation=1, + bias=False, + padding=None, + activation=nn.ReLU, + ): + if padding is None: + padding = (kernel_size - 1) // 2 + super(ConvAct, self).__init__( + nn.Conv2d( + in_planes, + out_planes, + kernel_size, + stride, + padding, + groups=groups, + dilation=dilation, + bias=bias, + ), + activation(), + ) + +class ConvBNAct(nn.Sequential): + def __init__( + self, + in_planes, + out_planes, + kernel_size=3, + stride=1, + groups=1, + dilation=1, + bias=False, + padding=None, + activation=nn.ReLU, + ): + if padding is None: + padding = (kernel_size - 1) // 2 + super(ConvBNAct, self).__init__( + nn.Conv2d( + in_planes, + out_planes, + kernel_size, + stride, + padding, + groups=groups, + dilation=dilation, + bias=bias, + ), + nn.BatchNorm2d(out_planes), + activation(), + ) + + @property + def in_channels(self): + return self.conv.in_channels + + @property + def out_channels(self): + return self.conv.out_channels + + +class ASPPPooling(nn.Sequential): + def __init__(self, in_channels, out_channels): + super(ASPPPooling, self).__init__( + nn.AdaptiveAvgPool2d(1), + ConvBNReLU(in_channels, out_channels, 1), + ) + + def forward(self, x): + size = x.shape[-2:] + x = super(ASPPPooling, self).forward(x) + return nn.functional.interpolate(x, size=size, mode='bilinear', align_corners=False) + + +class ASPP(nn.Module): + def __init__(self, in_channels, out_channels, atrous_rates): + super(ASPP, self).__init__() + + rate1, rate2, rate3 = tuple(atrous_rates) + + modules = [] + modules.append(ASPPPooling(in_channels, out_channels)) + modules.append(ConvBNReLU(in_channels, out_channels, 1, padding=0, dilation=1)) + modules.append(ConvBNReLU(in_channels, out_channels, 3, padding=rate1, dilation=rate1)) + modules.append(ConvBNReLU(in_channels, out_channels, 3, padding=rate2, dilation=rate2)) + modules.append(ConvBNReLU(in_channels, out_channels, 3, padding=rate3, dilation=rate3)) + self.convs = nn.ModuleList(modules) + + self.project = ConvBNReLU(out_channels*len(modules), out_channels, 1, padding=0) + + def forward(self, x): + res = [] + for conv in self.convs: + res.append(conv(x)) + res = torch.cat(res, dim=1) + return self.project(res) + + +class BasicBlock(nn.Module): + expansion = 1 + + def __init__( + self, + inplanes, + planes, + stride=1, + downsample=None, + groups=1, + base_width=64, + dilation=1, + norm_layer=None, + ): + super(BasicBlock, self).__init__() + if norm_layer is None: + norm_layer = nn.BatchNorm2d + if groups != 1 or base_width != 64: + raise ValueError("BasicBlock only supports groups=1 and base_width=64") + if dilation > 1: + raise NotImplementedError("Dilation > 1 not supported in BasicBlock") + # Both self.conv1 and self.downsample layers downsample the input when stride != 1 + + self.conv1 = ConvBNReLU( + inplanes, planes, kernel_size=3, padding=1, stride=stride + ) + self.conv2 = ConvBN(planes, planes, kernel_size=3, padding=1) + + self.relu = nn.ReLU(inplace=True) + self.downsample = downsample + self.stride = stride + + def forward(self, x): + identity = x + + out = self.conv1(x) + out = self.conv2(out) + + if self.downsample is not None: + identity = self.downsample(x) + + out += identity + out = self.relu(out) + + return out + + +class Bottleneck(nn.Module): + expansion = 4 + + def __init__( + self, + inplanes, + planes, + stride=1, + downsample=None, + groups=1, + base_width=64, + dilation=1, + norm_layer=None, + ): + super(Bottleneck, self).__init__() + if norm_layer is None: + norm_layer = nn.BatchNorm2d + width = int(planes * (base_width / 64.0)) * groups + # Both self.conv2 and self.downsample layers downsample the input when stride != 1 + + self.conv1 = ConvBNReLU(inplanes, width, kernel_size=1, padding=0) + self.conv2 = ConvBNReLU( + width, + width, + kernel_size=3, + padding=1, + stride=stride, + groups=groups, + dilation=dilation, + ) + self.conv3 = ConvBN(width, planes * self.expansion, kernel_size=1, padding=0) + + self.relu = nn.ReLU(inplace=True) + self.downsample = downsample + self.stride = stride + + def forward(self, x): + identity = x + + out = self.conv1(x) + out = self.conv2(out) + out = self.conv3(out) + + if self.downsample is not None: + identity = self.downsample(x) + + out += identity + out = self.relu(out) + + return out + diff --git a/MaskRefineNet/network/unet.py b/MaskRefineNet/network/unet.py new file mode 100644 index 0000000..10a102f --- /dev/null +++ b/MaskRefineNet/network/unet.py @@ -0,0 +1,123 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import torch +import torch.nn as nn +import torch.nn.functional as F +from torchvision import models + +from .modules import ConvBNReLU, ASPP + + +class double_conv(nn.Module): + def __init__(self, in_ch, mid_ch, out_ch): + super(double_conv, self).__init__() + self.conv = nn.Sequential( + ConvBNReLU(in_ch + mid_ch, mid_ch, kernel_size=1), + ConvBNReLU(mid_ch, out_ch, kernel_size=3, padding=1), + ) + + def forward(self, x): + x = self.conv(x) + return x + + +class ResNetUNet(nn.Module): + def __init__(self, output_channel, input_channel): + super().__init__() + + base_model = models.resnet101(pretrained=True) + base_layers = list(base_model.children()) + + if input_channel == 3: + self.layer0 = nn.Sequential(*base_layers[0:3]) + else: + self.layer0 = nn.Sequential( + nn.Conv2d(input_channel, 64, kernel_size=7, stride=2, padding=3, bias=False), + base_layers[1], + base_layers[2], + ) + + self.layer1 = nn.Sequential(*base_layers[3:5]) + self.layer2 = base_layers[5] + self.layer3 = base_layers[6] + self.layer4 = base_layers[7] + + self.aspp = ASPP(2048, 512, atrous_rates=[3, 6, 9]) + + self.decoder_3 = double_conv(1024, 512, 256) + self.decoder_2 = double_conv(512, 256, 128) + self.decoder_1 = double_conv(256, 128, 64) + self.decoder_0 = double_conv(64, 64, 64) + + self.head = nn.Conv2d(64, output_channel, kernel_size=1, padding=0, bias=True) + + self.head_init() + + + def head_init(self,): + for m in self.head.modules(): + if isinstance(m, nn.Conv2d): + nn.init.normal_(m.weight, mean=0, std=0.001) + + + def forward(self, x): + ori_size = x.size()[2:] + + enc_0 = self.layer0(x) # [B, 64, H/2, W/2] + enc_1 = self.layer1(enc_0) # [B, 256, H/4, W/4] + enc_2 = self.layer2(enc_1) # [B, 512, H/8, W/8] + enc_3 = self.layer3(enc_2) # [B, 1024, H/16, W/16] + enc_4 = self.layer4(enc_3) # [B, 2048, H/32, W/32] + + x = self.aspp(enc_4) + x = F.interpolate(x, size=enc_3.size()[2:], mode="bilinear", align_corners=False) + x = torch.cat([x, enc_3], dim=1) + x = self.decoder_3(x) + + x = F.interpolate(x, size=enc_2.size()[2:], mode="bilinear", align_corners=False) + x = torch.cat([x, enc_2], dim=1) + x = self.decoder_2(x) + + x = F.interpolate(x, size=enc_1.size()[2:], mode="bilinear", align_corners=False) + x = torch.cat([x, enc_1], dim=1) + x = self.decoder_1(x) + + x = F.interpolate(x, size=enc_0.size()[2:], mode="bilinear", align_corners=False) + x = torch.cat([x, enc_0], dim=1) + x = self.decoder_0(x) + + x = self.head(x) + x = F.interpolate(x, size=ori_size, mode="bilinear", align_corners=False) + + return x + + +def UNet_ResNet101( + output_channel=2, + input_channel=3, +): + model = ResNetUNet( + output_channel=output_channel, + input_channel=input_channel, + ) + + return model + + +if __name__ == "__main__": + + input_channel = 85 + output_channel = 2 + + net = UNet(output_channel, input_channel).cuda() + + in_ten = torch.randn(1, input_channel, 256, 256).cuda() + + net.eval() + out_ten = net(in_ten) + + print(out_ten.shape) diff --git a/MaskRefineNet/utils/__init__.py b/MaskRefineNet/utils/__init__.py new file mode 100755 index 0000000..dd75172 --- /dev/null +++ b/MaskRefineNet/utils/__init__.py @@ -0,0 +1,53 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import torch +from .scheduler import CosineAnnealingWarmUpRestarts +from .utils import AverageMeter, save_checkpoint, tensorboard_report, get_coco_info + +def optim_factory( + args, params, train_iters, warm_iters, resume_iter=-1, lr_scale=1.0, +): + lr = args.lr * lr_scale + + if "cosine" in args.lr_policy: + min_lr = lr * 0.01 + max_lr = lr + lr = min_lr + + # optimizer + if args.optim == "adam": + optimizer = torch.optim.Adam(params, lr) + + elif args.optim == "sgd": + optimizer = torch.optim.SGD( + params, + lr=lr, + weight_decay=args.weight_decay, + momentum=0.9, + nesterov=True, + ) + + else: + raise "[ERROR] please check again args.optim" + + # lr scheduler + if args.lr_policy == "cosine": + scheduler = CosineAnnealingWarmUpRestarts( + optimizer, + T_0=train_iters, + T_mult=1, + gamma=1.0, + T_up=warm_iters, + eta_max=max_lr, + last_epoch=resume_iter, + ) + else: + scheduler = None + + return optimizer, scheduler + + diff --git a/MaskRefineNet/utils/distributed.py b/MaskRefineNet/utils/distributed.py new file mode 100644 index 0000000..d52a665 --- /dev/null +++ b/MaskRefineNet/utils/distributed.py @@ -0,0 +1,229 @@ +# The implementations are from https://github.com/facebookresearch/detectron2/blob/main/detectron2/utils/comm.py +# Copyright (c) Facebook, Inc. and its affiliates. +""" +This file contains primitives for multi-gpu communication. +This is useful when doing distributed training. +""" + +import functools +import numpy as np +import torch +import torch.distributed as dist + +_LOCAL_PROCESS_GROUP = None +_MISSING_LOCAL_PG_ERROR = ( + "Local process group is not yet created! Please use detectron2's `launch()` " + "to start processes and initialize pytorch process group. If you need to start " + "processes in other ways, please call comm.create_local_process_group(" + "num_workers_per_machine) after calling torch.distributed.init_process_group()." +) + + +def get_world_size() -> int: + if not dist.is_available(): + return 1 + if not dist.is_initialized(): + return 1 + return dist.get_world_size() + + +def get_rank() -> int: + if not dist.is_available(): + return 0 + if not dist.is_initialized(): + return 0 + return dist.get_rank() + + +@functools.lru_cache() +def create_local_process_group(num_workers_per_machine: int) -> None: + """ + Create a process group that contains ranks within the same machine. + Detectron2's launch() in engine/launch.py will call this function. If you start + workers without launch(), you'll have to also call this. Otherwise utilities + like `get_local_rank()` will not work. + This function contains a barrier. All processes must call it together. + Args: + num_workers_per_machine: the number of worker processes per machine. Typically + the number of GPUs. + """ + global _LOCAL_PROCESS_GROUP + assert _LOCAL_PROCESS_GROUP is None + assert get_world_size() % num_workers_per_machine == 0 + num_machines = get_world_size() // num_workers_per_machine + machine_rank = get_rank() // num_workers_per_machine + for i in range(num_machines): + ranks_on_i = list(range(i * num_workers_per_machine, (i + 1) * num_workers_per_machine)) + pg = dist.new_group(ranks_on_i) + if i == machine_rank: + _LOCAL_PROCESS_GROUP = pg + + +def get_local_process_group(): + """ + Returns: + A torch process group which only includes processes that are on the same + machine as the current process. This group can be useful for communication + within a machine, e.g. a per-machine SyncBN. + """ + assert _LOCAL_PROCESS_GROUP is not None, _MISSING_LOCAL_PG_ERROR + return _LOCAL_PROCESS_GROUP + + +def get_local_rank() -> int: + """ + Returns: + The rank of the current process within the local (per-machine) process group. + """ + if not dist.is_available(): + return 0 + if not dist.is_initialized(): + return 0 + assert _LOCAL_PROCESS_GROUP is not None, _MISSING_LOCAL_PG_ERROR + return dist.get_rank(group=_LOCAL_PROCESS_GROUP) + + +def get_local_size() -> int: + """ + Returns: + The size of the per-machine process group, + i.e. the number of processes per machine. + """ + if not dist.is_available(): + return 1 + if not dist.is_initialized(): + return 1 + assert _LOCAL_PROCESS_GROUP is not None, _MISSING_LOCAL_PG_ERROR + return dist.get_world_size(group=_LOCAL_PROCESS_GROUP) + + +def is_main_process() -> bool: + return get_rank() == 0 + + +def synchronize(): + """ + Helper function to synchronize (barrier) among all processes when + using distributed training + """ + if not dist.is_available(): + return + if not dist.is_initialized(): + return + world_size = dist.get_world_size() + if world_size == 1: + return + if dist.get_backend() == dist.Backend.NCCL: + # This argument is needed to avoid warnings. + # It's valid only for NCCL backend. + dist.barrier(device_ids=[torch.cuda.current_device()]) + else: + dist.barrier() + + +@functools.lru_cache() +def _get_global_gloo_group(): + """ + Return a process group based on gloo backend, containing all the ranks + The result is cached. + """ + if dist.get_backend() == "nccl": + return dist.new_group(backend="gloo") + else: + return dist.group.WORLD + + +def all_gather(data, group=None): + """ + Run all_gather on arbitrary picklable data (not necessarily tensors). + Args: + data: any picklable object + group: a torch process group. By default, will use a group which + contains all ranks on gloo backend. + Returns: + list[data]: list of data gathered from each rank + """ + if get_world_size() == 1: + return [data] + if group is None: + group = _get_global_gloo_group() # use CPU group by default, to reduce GPU RAM usage. + world_size = dist.get_world_size(group) + if world_size == 1: + return [data] + + output = [None for _ in range(world_size)] + dist.all_gather_object(output, data, group=group) + return output + + +def gather(data, dst=0, group=None): + """ + Run gather on arbitrary picklable data (not necessarily tensors). + Args: + data: any picklable object + dst (int): destination rank + group: a torch process group. By default, will use a group which + contains all ranks on gloo backend. + Returns: + list[data]: on dst, a list of data gathered from each rank. Otherwise, + an empty list. + """ + if get_world_size() == 1: + return [data] + if group is None: + group = _get_global_gloo_group() + world_size = dist.get_world_size(group=group) + if world_size == 1: + return [data] + rank = dist.get_rank(group=group) + + if rank == dst: + output = [None for _ in range(world_size)] + dist.gather_object(data, output, dst=dst, group=group) + return output + else: + dist.gather_object(data, None, dst=dst, group=group) + return [] + + +def shared_random_seed(): + """ + Returns: + int: a random number that is the same across all workers. + If workers need a shared RNG, they can use this shared seed to + create one. + All workers must call this function, otherwise it will deadlock. + """ + ints = np.random.randint(2**31) + all_ints = all_gather(ints) + return all_ints[0] + + +def reduce_dict(input_dict, average=True): + """ + Reduce the values in the dictionary from all processes so that process with rank + 0 has the reduced results. + Args: + input_dict (dict): inputs to be reduced. All the values must be scalar CUDA Tensor. + average (bool): whether to do average or sum + Returns: + a dict with the same keys as input_dict, after reduction. + """ + world_size = get_world_size() + if world_size < 2: + return input_dict + with torch.no_grad(): + names = [] + values = [] + # sort the keys so that they are consistent across processes + for k in sorted(input_dict.keys()): + names.append(k) + values.append(input_dict[k]) + values = torch.stack(values, dim=0) + dist.reduce(values, dst=0) + if dist.get_rank() == 0 and average: + # only main process gets accumulated, so only divide by + # world_size in this case + values /= world_size + reduced_dict = {k: v for k, v in zip(names, values)} + return reduced_dict \ No newline at end of file diff --git a/MaskRefineNet/utils/ext_transforms.py b/MaskRefineNet/utils/ext_transforms.py new file mode 100755 index 0000000..5a17535 --- /dev/null +++ b/MaskRefineNet/utils/ext_transforms.py @@ -0,0 +1,521 @@ +import torch +import torchvision.transforms.functional as F +import random +import numbers +import numpy as np +from PIL import Image +import collections + +try: + interpolation_bilinear = F.InterpolationMode.BILINEAR + interpolation_nearest = F.InterpolationMode.NEAREST +except: + interpolation_bilinear = Image.BILINEAR + interpolation_nearest = Image.NEAREST + +# +# Extended Transforms for Semantic Segmentation +# + +class ExtCompose(object): + """Composes several transforms together. + Args: + transforms (list of ``Transform`` objects): list of transforms to compose. + Example: + >>> transforms.Compose([ + >>> transforms.CenterCrop(10), + >>> transforms.ToTensor(), + >>> ]) + """ + + def __init__(self, transforms): + self.transforms = transforms + + def __call__(self, imgs, lbls): + for t in self.transforms: + imgs, lbls = t(imgs, lbls) + return imgs, lbls + + def __repr__(self): + format_string = self.__class__.__name__ + "(" + for t in self.transforms: + format_string += "\n" + format_string += " {0}".format(t) + format_string += "\n)" + return format_string + + +class ExtCenterCrop(object): + """Crops the given PIL Image at the center. + Args: + size (sequence or int): Desired output size of the crop. If size is an + int instead of sequence like (h, w), a square crop (size, size) is + made. + """ + + def __init__(self, size): + if isinstance(size, numbers.Number): + self.size = (int(size), int(size)) + else: + self.size = size + + def __call__(self, imgs, lbls): + """ + Args: + img (PIL Image): Image to be cropped. + Returns: + PIL Image: Cropped image. + """ + if lbls is None: + return [F.center_crop(img, self.size) for img in imgs], lbls + + return [F.center_crop(img, self.size) for img in imgs], [F.center_crop(lbl, self.size) for lbl in lbls] + + def __repr__(self): + return self.__class__.__name__ + "(size={0})".format(self.size) + + +class ExtRandomScaleResize(object): + def __init__(self, size, scale_range, interpolation="nearest"): + self.size = size + self.scale_range = scale_range + self.interpolation = ( + interpolation_nearest + if interpolation == "nearest" + else interpolation_bilinear + ) + + def __call__(self, imgs, lbls): + """ + Args: + img (PIL Image): Image to be scaled. + lbl (PIL Image): Label to be scaled. + Returns: + PIL Image: Rescaled image. + PIL Image: Rescaled label. + """ + #assert imgs[0].size == lbls[0].size + scale = random.uniform(self.scale_range[0], self.scale_range[1]) + + w, h = imgs[0].size + + if w >= h: + ratio = w / h + new_h = self.size + new_w = int(ratio * new_h) + else: + ratio = h / w + new_w = self.size + new_h = int(ratio * new_w) + + target_size = (int(new_h * scale), int(new_w * scale)) + + if lbls is None: + return [F.resize(img, target_size, interpolation_bilinear) for img in imgs], lbls + + return [F.resize(img, target_size, interpolation_bilinear) for img in imgs], [F.resize(lbl, target_size, self.interpolation) for lbl in lbls] + + def __repr__(self): + return self.__class__.__name__ + "(size={0})".format(self.size) + + + + +class ExtRandomHorizontalFlip(object): + """Horizontally flip the given PIL Image randomly with a given probability. + Args: + p (float): probability of the image being flipped. Default value is 0.5 + """ + + def __init__(self, p=0.5): + self.p = p + + def __call__(self, imgs, lbls): + """ + Args: + img (PIL Image): Image to be flipped. + Returns: + PIL Image: Randomly flipped image. + """ + if random.random() < self.p: + if lbls is None: + return [F.hflip(img) for img in imgs], lbls + + return [F.hflip(img) for img in imgs], [F.hflip(lbl) for lbl in lbls] + return imgs, lbls + + def __repr__(self): + return self.__class__.__name__ + "(p={})".format(self.p) + + +class ExtPad(object): + def __init__(self, diviser=32): + self.diviser = diviser + + def __call__(self, imgs, lbls): + h, w = imgs[0].size + ph = (h // 32 + 1) * 32 - h if h % 32 != 0 else 0 + pw = (w // 32 + 1) * 32 - w if w % 32 != 0 else 0 + imgs = [F.pad(img, (pw // 2, pw - pw // 2, ph // 2, ph - ph // 2)) for img in imgs] + + if lbls is not None: + lbls = [F.pad(lbl, (pw // 2, pw - pw // 2, ph // 2, ph - ph // 2)) for lbl in lbls] + + return imgs, lbls + + +class ExtToTensor(object): + """Convert a ``PIL Image`` or ``numpy.ndarray`` to tensor. + Converts a PIL Image or numpy.ndarray (H x W x C) in the range + [0, 255] to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0]. + """ + + def __init__(self, normalize=True, target_type="float32"): + self.normalize = normalize + self.target_type = target_type + + def __call__(self, imgs, lbls): + """ + Note that labels will not be normalized to [0, 1]. + Args: + pic (PIL Image or numpy.ndarray): Image to be converted to tensor. + lbl (PIL Image or numpy.ndarray): Label to be converted to tensor. + Returns: + Tensor: Converted image and label + """ + if self.normalize: + if lbls is None: + return [F.to_tensor(img) for img in imgs], lbls + + return [F.to_tensor(img) for img in imgs], \ + [torch.from_numpy(np.array(lbl, dtype=self.target_type)) for lbl in lbls] + else: + if lbls is None: + return [torch.from_numpy(np.array(img, dtype=np.float32).transpose(2, 0, 1)) for img in imgs], lbls + + return [torch.from_numpy(np.array(img, dtype=np.float32).transpose(2, 0, 1)) for img in imgs], \ + [torch.from_numpy(np.array(lbl, dtype=self.target_type)) for lbl in lbls] + + def __repr__(self): + return self.__class__.__name__ + "()" + + +class ExtNormalize(object): + """Normalize a tensor image with mean and standard deviation. + Given mean: ``(M1,...,Mn)`` and std: ``(S1,..,Sn)`` for ``n`` channels, this transform + will normalize each channel of the input ``torch.*Tensor`` i.e. + ``input[channel] = (input[channel] - mean[channel]) / std[channel]`` + Args: + mean (sequence): Sequence of means for each channel. + std (sequence): Sequence of standard deviations for each channel. + """ + + def __init__(self, mean, std): + self.mean = mean + self.std = std + + def __call__(self, imgs, lbls): + """ + Args: + tensor (Tensor): Tensor image of size (C, H, W) to be normalized. + tensor (Tensor): Tensor of label. A dummy input for ExtCompose + Returns: + Tensor: Normalized Tensor image. + Tensor: Unchanged Tensor label + """ + return [F.normalize(img, self.mean, self.std) for img in imgs], lbls + + def __repr__(self): + return self.__class__.__name__ + "(mean={0}, std={1})".format( + self.mean, self.std + ) + + +class ExtRandomCrop(object): + """Crop the given PIL Image at a random location. + Args: + size (sequence or int): Desired output size of the crop. If size is an + int instead of sequence like (h, w), a square crop (size, size) is + made. + padding (int or sequence, optional): Optional padding on each border + of the image. Default is 0, i.e no padding. If a sequence of length + 4 is provided, it is used to pad left, top, right, bottom borders + respectively. + pad_if_needed (boolean): It will pad the image if smaller than the + desired size to avoid raising an exception. + """ + + def __init__(self, size, padding=0, pad_if_needed=False): + if isinstance(size, numbers.Number): + self.size = (int(size), int(size)) + else: + self.size = size + self.padding = padding + self.pad_if_needed = pad_if_needed + + @staticmethod + def get_params(img, output_size): + """Get parameters for ``crop`` for a random crop. + Args: + img (PIL Image): Image to be cropped. + output_size (tuple): Expected output size of the crop. + Returns: + tuple: params (i, j, h, w) to be passed to ``crop`` for random crop. + """ + w, h = img.size + th, tw = output_size + if w == tw and h == th: + return 0, 0, h, w + + i = random.randint(0, h - th) + j = random.randint(0, w - tw) + return i, j, th, tw + + def __call__(self, imgs, lbls): + """ + Args: + img (PIL Image): Image to be cropped. + lbl (PIL Image): Label to be cropped. + Returns: + PIL Image: Cropped image. + PIL Image: Cropped label. + """ + # assert ( + # imgs[0].size == lbls[0].size + # ), "size of img and lbl should be the same. %s, %s" % (img.size, lbl.size) + if self.padding > 0: + imgs = [F.pad(imgs, self.padding) for img in imgs] + if lbls is not None: + lbls = [F.pad(lbl, self.padding) for lbl in lbls] + + # pad the width if needed + if self.pad_if_needed and imgs[0].size[0] < self.size[1]: + imgs = [F.pad(img, padding=int((1 + self.size[1] - img.size[0]) / 2)) for img in imgs] + if lbls is not None: + lbls = [F.pad(lbl, padding=int((1 + self.size[1] - lbl.size[0]) / 2)) for lbl in lbls] + + # pad the height if needed + if self.pad_if_needed and imgs[0].size[1] < self.size[0]: + imgs = [F.pad(img, padding=int((1 + self.size[0] - img.size[1]) / 2)) for img in imgs] + if lbls is not None: + lbls = [F.pad(lbl, padding=int((1 + self.size[0] - lbl.size[1]) / 2)) for lbl in lbls] + + i, j, h, w = self.get_params(imgs[0], self.size) + + if lbls is None: + return [F.crop(img, i, j, h, w) for img in imgs], lbls + + return [F.crop(img, i, j, h, w) for img in imgs], [F.crop(lbl, i, j, h, w) for lbl in lbls] + + def __repr__(self): + return self.__class__.__name__ + "(size={0}, padding={1})".format( + self.size, self.padding + ) + + +class ExtResize(object): + """Resize the input PIL Image to the given size. + Args: + size (sequence or int): Desired output size. If size is a sequence like + (h, w), output size will be matched to this. If size is an int, + smaller edge of the image will be matched to this number. + i.e, if height > width, then image will be rescaled to + (size * height / width, size) + interpolation (int, optional): Desired interpolation. Default is + ``PIL.Image.BILINEAR`` + """ + + def __init__(self, size, interpolation="nearest"): + assert isinstance(size, int) or ( + isinstance(size, collections.Iterable) and len(size) == 2 + ) + self.size = size + self.interpolation = ( + interpolation_nearest + if interpolation == "nearest" + else interpolation_bilinear + ) + + def __call__(self, imgs, lbls): + """ + Args: + img (PIL Image): Image to be scaled. + Returns: + PIL Image: Rescaled image. + """ + if lbls is None: + return [F.resize(img, self.size, interpolation_bilinear) for img in imgs], lbls + + return [F.resize(img, self.size, interpolation_bilinear) for img in imgs], \ + [F.resize(lbl, self.size, self.interpolation) for lbl in lbls] + + def __repr__(self): + return self.__class__.__name__ + "(size={0})".format(self.size) + + + + +class ExtColorJitter(object): + """Randomly change the brightness, contrast and saturation of an image. + + Args: + brightness (float or tuple of float (min, max)): How much to jitter brightness. + brightness_factor is chosen uniformly from [max(0, 1 - brightness), 1 + brightness] + or the given [min, max]. Should be non negative numbers. + contrast (float or tuple of float (min, max)): How much to jitter contrast. + contrast_factor is chosen uniformly from [max(0, 1 - contrast), 1 + contrast] + or the given [min, max]. Should be non negative numbers. + saturation (float or tuple of float (min, max)): How much to jitter saturation. + saturation_factor is chosen uniformly from [max(0, 1 - saturation), 1 + saturation] + or the given [min, max]. Should be non negative numbers. + hue (float or tuple of float (min, max)): How much to jitter hue. + hue_factor is chosen uniformly from [-hue, hue] or the given [min, max]. + Should have 0<= hue <= 0.5 or -0.5 <= min <= max <= 0.5. + """ + + def __init__(self, brightness=0, contrast=0, saturation=0, hue=0, p=1.0): + self.brightness = self._check_input(brightness, "brightness") + self.contrast = self._check_input(contrast, "contrast") + self.saturation = self._check_input(saturation, "saturation") + self.hue = self._check_input( + hue, "hue", center=0, bound=(-0.5, 0.5), clip_first_on_zero=False + ) + self.p = p + + def _check_input( + self, value, name, center=1, bound=(0, float("inf")), clip_first_on_zero=True + ): + if isinstance(value, numbers.Number): + if value < 0: + raise ValueError( + "If {} is a single number, it must be non negative.".format(name) + ) + value = [center - value, center + value] + if clip_first_on_zero: + value[0] = max(value[0], 0) + elif isinstance(value, (tuple, list)) and len(value) == 2: + if not bound[0] <= value[0] <= value[1] <= bound[1]: + raise ValueError("{} values should be between {}".format(name, bound)) + else: + raise TypeError( + "{} should be a single number or a list/tuple with lenght 2.".format( + name + ) + ) + + # if value is 0 or (1., 1.) for brightness/contrast/saturation + # or (0., 0.) for hue, do nothing + if value[0] == value[1] == center: + value = None + return value + + @staticmethod + def get_params(brightness, contrast, saturation, hue): + """Get a randomized transform to be applied on image. + + Arguments are same as that of __init__. + + Returns: + Transform which randomly adjusts brightness, contrast and + saturation in a random order. + """ + transforms = [] + + if brightness is not None: + brightness_factor = random.uniform(brightness[0], brightness[1]) + transforms.append( + Lambda(lambda img: F.adjust_brightness(img, brightness_factor)) + ) + + if contrast is not None: + contrast_factor = random.uniform(contrast[0], contrast[1]) + transforms.append( + Lambda(lambda img: F.adjust_contrast(img, contrast_factor)) + ) + + if saturation is not None: + saturation_factor = random.uniform(saturation[0], saturation[1]) + transforms.append( + Lambda(lambda img: F.adjust_saturation(img, saturation_factor)) + ) + + if hue is not None: + hue_factor = random.uniform(hue[0], hue[1]) + transforms.append(Lambda(lambda img: F.adjust_hue(img, hue_factor))) + + random.shuffle(transforms) + transform = Compose(transforms) + + return transform + + def __call__(self, imgs, lbls): + """ + Args: + img (PIL Image): Input image. + + Returns: + PIL Image: Color jittered image. + """ + if torch.rand(1) < self.p: + transform = self.get_params( + self.brightness, self.contrast, self.saturation, self.hue + ) + imgs = [transform(img) for img in imgs] + + return imgs, lbls + + def __repr__(self): + format_string = self.__class__.__name__ + "(" + format_string += "brightness={0}".format(self.brightness) + format_string += ", contrast={0}".format(self.contrast) + format_string += ", saturation={0}".format(self.saturation) + format_string += ", hue={0})".format(self.hue) + return format_string + + +class Lambda(object): + """Apply a user-defined lambda as a transform. + + Args: + lambd (function): Lambda/function to be used for transform. + """ + + def __init__(self, lambd): + assert callable(lambd), repr(type(lambd).__name__) + " object is not callable" + self.lambd = lambd + + def __call__(self, img): + return self.lambd(img) + + def __repr__(self): + return self.__class__.__name__ + "()" + + +class Compose(object): + """Composes several transforms together. + + Args: + transforms (list of ``Transform`` objects): list of transforms to compose. + + Example: + >>> transforms.Compose([ + >>> transforms.CenterCrop(10), + >>> transforms.ToTensor(), + >>> ]) + """ + + def __init__(self, transforms): + self.transforms = transforms + + def __call__(self, img): + for t in self.transforms: + img = t(img) + return img + + def __repr__(self): + format_string = self.__class__.__name__ + "(" + for t in self.transforms: + format_string += "\n" + format_string += " {0}".format(t) + format_string += "\n)" + return format_string diff --git a/MaskRefineNet/utils/loss.py b/MaskRefineNet/utils/loss.py new file mode 100755 index 0000000..5064a01 --- /dev/null +++ b/MaskRefineNet/utils/loss.py @@ -0,0 +1,72 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import torch.nn as nn +import torch.nn.functional as F +import torch + +class CELoss(nn.Module): + """ + pixel-wise cross-entropy loss + """ + + def __init__( + self, + ignore_label=255, + ): + super(CELoss, self).__init__() + self.criterion = nn.CrossEntropyLoss(ignore_index=255, reduction="mean") + + def forward(self, logits, labels): + loss = self.criterion(logits, labels) + + return loss + + +class DiceLoss(nn.Module): + def __init__( + self, + ): + super(DiceLoss, self).__init__() + + def forward(self, logits, true, eps=1e-7): + """Computes the Sørensen–Dice loss. + Note that PyTorch optimizers minimize a loss. In this + case, we would like to maximize the dice loss so we + return the negated dice loss. + Args: + labels: a tensor of shape [B, 1, H, W]. + logits: a tensor of shape [B, C, H, W]. Corresponds to + the raw output or logits of the model. + eps: added to the denominator for numerical stability. + Returns: + dice_loss: the Sørensen–Dice loss. + """ + num_classes = logits.shape[1] + if num_classes == 1: + true = torch.where(true == 255, torch.zeros_like(true), true) + true_1_hot = F.one_hot(true, num_classes + 1) + true_1_hot = true_1_hot.permute(0, 3, 1, 2).float() + true_1_hot_f = true_1_hot[:, 0:1, :, :] + true_1_hot_s = true_1_hot[:, 1:2, :, :] + true_1_hot = torch.cat([true_1_hot_s, true_1_hot_f], dim=1) + pos_prob = torch.sigmoid(logits) + neg_prob = 1 - pos_prob + probas = torch.cat([pos_prob, neg_prob], dim=1) + else: + true = torch.where(true == 255, torch.zeros_like(true), true) + true_1_hot = F.one_hot(true, num_classes) + true_1_hot = true_1_hot.permute(0, 3, 1, 2).float() + probas = F.softmax(logits, dim=1) + #probas = torch.sigmoid(logits) + true_1_hot = true_1_hot.type(logits.type()) + dims = (0,) + tuple(range(2, true.ndimension())) + intersection = torch.sum(probas * true_1_hot, dims) + cardinality = torch.sum(probas + true_1_hot, dims) + dice_loss = (2.0 * intersection / (cardinality + eps)).mean() + dice_loss = 1.0 - dice_loss + + return dice_loss diff --git a/MaskRefineNet/utils/scheduler.py b/MaskRefineNet/utils/scheduler.py new file mode 100755 index 0000000..64b34e8 --- /dev/null +++ b/MaskRefineNet/utils/scheduler.py @@ -0,0 +1,79 @@ +import math +from torch.optim.lr_scheduler import _LRScheduler + + +class CosineAnnealingWarmUpRestarts(_LRScheduler): + def __init__( + self, optimizer, T_0, T_mult=1, eta_max=0.1, T_up=0, gamma=1.0, last_epoch=-1 + ): + if T_0 <= 0 or not isinstance(T_0, int): + raise ValueError("Expected positive integer T_0, but got {}".format(T_0)) + if T_mult < 1 or not isinstance(T_mult, int): + raise ValueError("Expected integer T_mult >= 1, but got {}".format(T_mult)) + if T_up < 0 or not isinstance(T_up, int): + raise ValueError("Expected positive integer T_up, but got {}".format(T_up)) + self.T_0 = T_0 + self.T_mult = T_mult + self.base_eta_max = eta_max + self.eta_max = eta_max + self.T_up = T_up + self.T_i = T_0 + self.gamma = gamma + self.cycle = 0 + self.T_cur = last_epoch + super(CosineAnnealingWarmUpRestarts, self).__init__(optimizer, last_epoch) + + def get_lr(self): + if self.T_cur == -1: + return self.base_lrs + elif self.T_cur < self.T_up: + return [ + (self.eta_max - base_lr) * self.T_cur / self.T_up + base_lr + for base_lr in self.base_lrs + ] + else: + return [ + base_lr + + (self.eta_max - base_lr) + * ( + 1 + + math.cos( + math.pi * (self.T_cur - self.T_up) / (self.T_i - self.T_up) + ) + ) + / 2 + for base_lr in self.base_lrs + ] + + def step(self, epoch=None): + if epoch is None: + epoch = self.last_epoch + 1 + self.T_cur = self.T_cur + 1 + if self.T_cur >= self.T_i: + self.cycle += 1 + self.T_cur = self.T_cur - self.T_i + self.T_i = (self.T_i - self.T_up) * self.T_mult + self.T_up + else: + if epoch >= self.T_0: + if self.T_mult == 1: + self.T_cur = epoch % self.T_0 + self.cycle = epoch // self.T_0 + else: + n = int( + math.log( + (epoch / self.T_0 * (self.T_mult - 1) + 1), self.T_mult + ) + ) + self.cycle = n + self.T_cur = epoch - self.T_0 * (self.T_mult**n - 1) / ( + self.T_mult - 1 + ) + self.T_i = self.T_0 * self.T_mult ** (n) + else: + self.T_i = self.T_0 + self.T_cur = epoch + + self.eta_max = self.base_eta_max * (self.gamma**self.cycle) + self.last_epoch = math.floor(epoch) + for param_group, lr in zip(self.optimizer.param_groups, self.get_lr()): + param_group["lr"] = lr diff --git a/MaskRefineNet/utils/utils.py b/MaskRefineNet/utils/utils.py new file mode 100755 index 0000000..77340da --- /dev/null +++ b/MaskRefineNet/utils/utils.py @@ -0,0 +1,155 @@ +""" +PointWSSIS (https://arxiv.org/abs/2303.15062) +Copyright (c) 2023-present NAVER Cloud Corp. +Apache-2.0 +""" + +import torch + +def tensorboard_report(writer, report_dict, step): + for k, v in report_dict.items(): + writer.add_scalar(k, v, step) + writer.flush() + + +def save_checkpoint(save_path, model, epoch, cur_itrs, best_AP, is_ddp): + + state_dict = { + "model_state": model.module.state_dict() if is_ddp else model.state_dict(), + "epoch": epoch, + "last_itr": cur_itrs, + "best_AP": best_AP, + } + torch.save(state_dict, save_path) + + +class AverageMeter(object): + """Computes and stores the average and current value""" + + def __init__(self, is_ddp): + self.is_ddp = is_ddp + self.reset() + + def reset(self): + self.val = 0.0 + self.avg = 0.0 + self.sum = 0.0 + self.count = 0.0 + + def update(self, val, n=1): + self.val = val + self.sum += val * n + self.count += n + self.avg = self.sum / (self.count + 1e-5) + + def synch(self, device): + if self.is_ddp is False: + return + + _sum = torch.tensor(self.sum).to(device) + _count = torch.tensor(self.count).to(device) + + torch.distributed.reduce(_sum, dst=0) + torch.distributed.reduce(_count, dst=0) + + if torch.distributed.get_rank() == 0: + self.sum = _sum.item() + self.count = _count.item() + self.avg = self.sum / (self.count + 1e-5) + + +def get_grad_norm(model): + total_norm = 0 + parameters = [p for p in model.parameters() if p.grad is not None and p.requires_grad] + for p in parameters: + param_norm = p.grad.detach().data.norm(2) + total_norm += param_norm.item() ** 2 + total_norm = total_norm ** 0.5 + return float(total_norm) + + + +def get_coco_info(): + COCO_CATEGORIES = [ + {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"}, + {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"}, + {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, + {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"}, + {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"}, + {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"}, + {"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "train"}, + {"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "truck"}, + {"color": [0, 0, 192], "isthing": 1, "id": 9, "name": "boat"}, + {"color": [250, 170, 30], "isthing": 1, "id": 10, "name": "traffic light"}, + {"color": [100, 170, 30], "isthing": 1, "id": 11, "name": "fire hydrant"}, + {"color": [220, 220, 0], "isthing": 1, "id": 13, "name": "stop sign"}, + {"color": [175, 116, 175], "isthing": 1, "id": 14, "name": "parking meter"}, + {"color": [250, 0, 30], "isthing": 1, "id": 15, "name": "bench"}, + {"color": [165, 42, 42], "isthing": 1, "id": 16, "name": "bird"}, + {"color": [255, 77, 255], "isthing": 1, "id": 17, "name": "cat"}, + {"color": [0, 226, 252], "isthing": 1, "id": 18, "name": "dog"}, + {"color": [182, 182, 255], "isthing": 1, "id": 19, "name": "horse"}, + {"color": [0, 82, 0], "isthing": 1, "id": 20, "name": "sheep"}, + {"color": [120, 166, 157], "isthing": 1, "id": 21, "name": "cow"}, + {"color": [110, 76, 0], "isthing": 1, "id": 22, "name": "elephant"}, + {"color": [174, 57, 255], "isthing": 1, "id": 23, "name": "bear"}, + {"color": [199, 100, 0], "isthing": 1, "id": 24, "name": "zebra"}, + {"color": [72, 0, 118], "isthing": 1, "id": 25, "name": "giraffe"}, + {"color": [255, 179, 240], "isthing": 1, "id": 27, "name": "backpack"}, + {"color": [0, 125, 92], "isthing": 1, "id": 28, "name": "umbrella"}, + {"color": [209, 0, 151], "isthing": 1, "id": 31, "name": "handbag"}, + {"color": [188, 208, 182], "isthing": 1, "id": 32, "name": "tie"}, + {"color": [0, 220, 176], "isthing": 1, "id": 33, "name": "suitcase"}, + {"color": [255, 99, 164], "isthing": 1, "id": 34, "name": "frisbee"}, + {"color": [92, 0, 73], "isthing": 1, "id": 35, "name": "skis"}, + {"color": [133, 129, 255], "isthing": 1, "id": 36, "name": "snowboard"}, + {"color": [78, 180, 255], "isthing": 1, "id": 37, "name": "sports ball"}, + {"color": [0, 228, 0], "isthing": 1, "id": 38, "name": "kite"}, + {"color": [174, 255, 243], "isthing": 1, "id": 39, "name": "baseball bat"}, + {"color": [45, 89, 255], "isthing": 1, "id": 40, "name": "baseball glove"}, + {"color": [134, 134, 103], "isthing": 1, "id": 41, "name": "skateboard"}, + {"color": [145, 148, 174], "isthing": 1, "id": 42, "name": "surfboard"}, + {"color": [255, 208, 186], "isthing": 1, "id": 43, "name": "tennis racket"}, + {"color": [197, 226, 255], "isthing": 1, "id": 44, "name": "bottle"}, + {"color": [171, 134, 1], "isthing": 1, "id": 46, "name": "wine glass"}, + {"color": [109, 63, 54], "isthing": 1, "id": 47, "name": "cup"}, + {"color": [207, 138, 255], "isthing": 1, "id": 48, "name": "fork"}, + {"color": [151, 0, 95], "isthing": 1, "id": 49, "name": "knife"}, + {"color": [9, 80, 61], "isthing": 1, "id": 50, "name": "spoon"}, + {"color": [84, 105, 51], "isthing": 1, "id": 51, "name": "bowl"}, + {"color": [74, 65, 105], "isthing": 1, "id": 52, "name": "banana"}, + {"color": [166, 196, 102], "isthing": 1, "id": 53, "name": "apple"}, + {"color": [208, 195, 210], "isthing": 1, "id": 54, "name": "sandwich"}, + {"color": [255, 109, 65], "isthing": 1, "id": 55, "name": "orange"}, + {"color": [0, 143, 149], "isthing": 1, "id": 56, "name": "broccoli"}, + {"color": [179, 0, 194], "isthing": 1, "id": 57, "name": "carrot"}, + {"color": [209, 99, 106], "isthing": 1, "id": 58, "name": "hot dog"}, + {"color": [5, 121, 0], "isthing": 1, "id": 59, "name": "pizza"}, + {"color": [227, 255, 205], "isthing": 1, "id": 60, "name": "donut"}, + {"color": [147, 186, 208], "isthing": 1, "id": 61, "name": "cake"}, + {"color": [153, 69, 1], "isthing": 1, "id": 62, "name": "chair"}, + {"color": [3, 95, 161], "isthing": 1, "id": 63, "name": "couch"}, + {"color": [163, 255, 0], "isthing": 1, "id": 64, "name": "potted plant"}, + {"color": [119, 0, 170], "isthing": 1, "id": 65, "name": "bed"}, + {"color": [0, 182, 199], "isthing": 1, "id": 67, "name": "dining table"}, + {"color": [0, 165, 120], "isthing": 1, "id": 70, "name": "toilet"}, + {"color": [183, 130, 88], "isthing": 1, "id": 72, "name": "tv"}, + {"color": [95, 32, 0], "isthing": 1, "id": 73, "name": "laptop"}, + {"color": [130, 114, 135], "isthing": 1, "id": 74, "name": "mouse"}, + {"color": [110, 129, 133], "isthing": 1, "id": 75, "name": "remote"}, + {"color": [166, 74, 118], "isthing": 1, "id": 76, "name": "keyboard"}, + {"color": [219, 142, 185], "isthing": 1, "id": 77, "name": "cell phone"}, + {"color": [79, 210, 114], "isthing": 1, "id": 78, "name": "microwave"}, + {"color": [178, 90, 62], "isthing": 1, "id": 79, "name": "oven"}, + {"color": [65, 70, 15], "isthing": 1, "id": 80, "name": "toaster"}, + {"color": [127, 167, 115], "isthing": 1, "id": 81, "name": "sink"}, + {"color": [59, 105, 106], "isthing": 1, "id": 82, "name": "refrigerator"}, + {"color": [142, 108, 45], "isthing": 1, "id": 84, "name": "book"}, + {"color": [196, 172, 0], "isthing": 1, "id": 85, "name": "clock"}, + {"color": [95, 54, 80], "isthing": 1, "id": 86, "name": "vase"}, + {"color": [128, 76, 255], "isthing": 1, "id": 87, "name": "scissors"}, + {"color": [201, 57, 1], "isthing": 1, "id": 88, "name": "teddy bear"}, + {"color": [246, 0, 122], "isthing": 1, "id": 89, "name": "hair drier"}, + {"color": [191, 162, 208], "isthing": 1, "id": 90, "name": "toothbrush"}, + ] + return COCO_CATEGORIES diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..7f99808 --- /dev/null +++ b/NOTICE @@ -0,0 +1,106 @@ +PointWSSIS +Copyright (c) 2023-present NAVER Cloud Corp. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +This project contains subcomponents with separate copyright notices and license terms. +Your use of the source code for these subcomponents is subject to the terms and conditions of the following licenses. + +===== + +aim-uofa/AdelaiDet +https://github.com/aim-uofa/AdelaiDet + + +AdelaiDet for non-commercial purposes +(For commercial use, contact chhshen@gmail.com for obtaining a commerical license.) + +Copyright (c) 2019 the authors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +===== + +facebookresearch/detectron2 +https://github.com/facebookresearch/detectron2 + + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +===== + +pytorch/vision +https://github.com/pytorch/vision + + +BSD 3-Clause License + +Copyright (c) Soumith Chintala 2016, +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +===== diff --git a/README.md b/README.md old mode 100644 new mode 100755 index d2ef2d6..618c8cb --- a/README.md +++ b/README.md @@ -1,2 +1,142 @@ -# PointWSSIS -[CVPR2023] The Devil is in the Points: Weakly Semi-Supervised Instance Segmentation via Point-Guided Mask Representation +# PointWSSIS (CVPR 2023) + +**The Devil is in the Points: Weakly Semi-Supervised Instance Segmentation via Point-Guided Mask Representation**
+[Beomyoung Kim](https://beomyoung-kim.github.io/)1,2, [Joonhyun Jeong](https://bestdeveloper691.github.io/)1,2, [Dongyoon Han](https://sites.google.com/site/dyhan0920/)3, [Sung Ju Hwang](http://www.sungjuhwang.com/)2
+ +1 NAVER Cloud, ImageVision
+2 KAIST
+3 NAVER AI Lab
+ +[![](https://img.shields.io/badge/CVPR-2023-blue)](https://cvpr.thecvf.com/Conferences/2023) +[![Paper](https://img.shields.io/badge/Paper-arxiv.2303.15062-red)](https://arxiv.org/abs/2303.15062) + + + +![demo image](https://github.com/clovaai/PointWSSIS/releases/download/Figures/overview.gif) + +## Introduction + +We introduce a novel learning scheme named weakly semi-supervised instance segmentation (WSSIS) with point labels for budget-efficient and high-performance instance segmentation. Namely, we consider a dataset setting consisting of a few fully-labeled images and a lot of point-labeled images. Motivated by the main challenge of semi-supervised approaches mainly derives from the trade-off between false-negative and false-positive instance proposals, we propose a method for WSSIS that can effectively leverage the budget-friendly point labels as a powerful weak supervision source to resolve the challenge. Furthermore, to deal with the hard case where the amount of fully-labeled data is extremely limited, we propose a MaskRefineNet that refines noise in rough masks. We conduct extensive experiments on COCO and BDD100K datasets, and the proposed method achieves promising results comparable to those of the fully-supervised model, even with 50% of the fully labeled COCO data (38.8% vs. 39.7%). Moreover, when using as little as 5% of fully labeled COCO data, our method shows significantly superior performance over the state-of-the-art semi-supervised learning method (33.7% vs. 24.9%). + + +## Updates +**_2024-05-19_** First Commit, We release the official implementation of PointWSSIS. + + +## Installation + +Our implementation is based on [Detectron2](https://github.com/facebookresearch/detectron2) and [AdelaiDet](https://github.com/aim-uofa/AdelaiDet). + +Please install Detectron2 and AdelaiDet in our repository (there are some modifications, [check here](https://github.com/clovaai/PointWSSIS/blob/main/AdelaiDet/adet/modeling/solov2/solov2.py)). + +~~~ +git clone https://github.com/clovaai/PointWSSIS.git + +cd PointWSSIS/detectron2 +python3 setup.py build develop --user + +cd ../AdelaiDet +python3 setup.py build develop --user +~~~ + +Please check environment requirements and official guideline https://github.com/aim-uofa/AdelaiDet#installation. + + +## Data Preparation + +For [COCO 2017 dataset](https://cocodataset.org/#download), we made subsets 1%, 2%, 5%, 10%, 20%, 30%, 50%. +- coco 5p: strong 5% + weak 95% +- coco 10p: strong 10% + weak 90% +- coco 20p: strong 20% + weak 80% +- coco 50p: strong 50% + weak 50% + +All subsets are available at [google drive](https://drive.google.com/drive/folders/1g_Vzih2k-bfzu_Bt-PPsespwAh6yHFuh?usp=share_link) +- instances_train2017_{subset}_s.json : strong (fully-labeled) data subset. +- instances_train2017_{subset}_w.json : weak (point-labeled) data subset. + +We also provide our pseudo labels for training the student network: +- instances_train2017_{subset}_sw.json : strong and weak (pseudo labels without MaskRefineNet) annotations +- instances_train2017_{subset}_sw_refined.json : strong and weak (pseudo labels with MaskRefineNet) annotations + +~~~ +data_root/ + --- coco/ + --- train2017/ + --- val2017/ + --- annotations/ + --- instances_val2017.json + --- instances_train2017.json + --- instances_train2017_10p_s.json + --- instances_train2017_10p_w.json + --- instances_train2017_10p_sw.json (optional) + --- instances_train2017_10p_sw_refined.json (optional) +~~~ + +## Quick Start + +1. Training teacher network using strong labels +2. Training MaskRefineNet using strong labels +3. Generating pseudo labels using weak labels +4. Training student network using strong and pseudo labels + +Run all-in-one script. +~~~ +bash scripts/coco_5p.sh # coco 5% scenario +bash scripts/coco_10p.sh # coco 10% scenario +bash scripts/coco_20p.sh # coco 20% scenario +bash scripts/coco_50p.sh # coco 50% scenario +~~~ + +## Experimental Results + +| Subset | Teacher Network | MaskRefineNet | Pseudo Labels | Student Network | COCO test-dev | +| :--------: | :----------------: | :-----------------: | :--------------: | :------: | :------: | +| COCO 1% | [ckpt](https://drive.google.com/file/d/1VcjE7fiOtQc1w3seYknKMAsjDii502q4/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1xcADl8e6mxtmoBUScWvsY5NVIDfrNla8/view?usp=share_link) | [json](https://drive.google.com/file/d/1OxEaUkMpLfMrL55m1RiinANzhAQA22Zf/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1G59u3mbOn19K9-JMwr1W0uk9yDeqTwiP/view?usp=share_link) | 24.0% | +| COCO 2% | [ckpt](https://drive.google.com/file/d/1lojspVein878DpDHQ4Y_Oxf3kD00cVLM/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1sYJxiRxdFw0buSoSAeu8LEBxycOueSgU/view?usp=share_link) | [json](https://drive.google.com/file/d/1YXT__1AHZK3AWrfoynaCLV0NJffHmn5p/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1yEF6M83ywvoRXgmLiifykUmZvErFN3FY/view?usp=share_link) | 25.3% | +| COCO 5% | [ckpt](https://drive.google.com/file/d/1-Pxsr8j5TOir3fF7_C-TSWunG50UATEQ/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/16Lz2-snZ7-pTkp_3_B-MZq4smCvmo5Pm/view?usp=share_link) | [json](https://drive.google.com/file/d/1ofYvau02EiJX_GW_gnnpw7090FD86yp-/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1T7_XgGqfYdt29wJYa4qsj5q78xp_yIXH/view?usp=share_link) | 33.7% | +| COCO 10% | [ckpt](https://drive.google.com/file/d/1jhtvSP-6A833LFmSLfVyMij-YfvabIGs/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1o2kmVGfwoYUteAWt0rX-KxeXkmDlla6t/view?usp=share_link) | [json](https://drive.google.com/file/d/1p6gkmT-fMHbXsdsJZ6WHKttTQgBzoojW/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1wf1X3u8LIRiAtzhAXgw_53ZErtC93S8L/view?usp=share_link) | 35.8% | +| COCO 20% | [ckpt](https://drive.google.com/file/d/1OEHE2TqFlTPZazDI3tq1xVL-AABd7a7E/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1JpvuX0uXCCvWBY6qh5mtgkryWxj8S8dA/view?usp=share_link) | [json](https://drive.google.com/file/d/14vjz5vO6e6hbw3VGsDBTe2mq01MtO_YG/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/18TZhOLPqXEvsoIXZanmseHhmD7ga-a9M/view?usp=share_link) | 37.1% | +| COCO 30% | [ckpt](https://drive.google.com/file/d/1KZ39LGHaBNwDszkJ3Mnig-nKsaqpI7qf/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/14po32hg8t-rfF94YS2AZsuO5pzfFJ50X/view?usp=share_link) | [json](https://drive.google.com/file/d/16ENmSvlAZ9l5x_n2cz-viFks2nfJX5Ld/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/10pzYXbj7c5S3pfyReHOBbC5EfArY-wls/view?usp=share_link) | 38.0% | +| COCO 40% | [ckpt](https://drive.google.com/file/d/1hfve8gThJJPrDGVvLYvsCjAP0odqLSrG/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1qMtPHEeatCcR-XDu0DUCYDD_JEmr1hvY/view?usp=share_link) | [json](https://drive.google.com/file/d/1Y-3AV3ewgiZlGnNXNbCRgMx-NOopGPxS/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1UDOV36jFY8jUO6Fm9EHlfNjTmNlNO7Cp/view?usp=share_link) | 38.3% | +| COCO 50% | [ckpt](https://drive.google.com/file/d/1zFGdtwmNasuryN8-HLjoZOO7dT-DbiX7/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1BnBAL0D_tfYeVPQZKq6Q89pq61zwQEZ0/view?usp=share_link) | [json](https://drive.google.com/file/d/1_HDayJXYmoNpbY2NYaiySzhvqAxa-B-r/view?usp=share_link) | [ckpt](https://drive.google.com/file/d/1ERPtAIYrn0S-QTtbBNZn2b58IrAO_gdb/view?usp=share_link) | 38.8% | + + +
+ + +
+
+ + + +
+ + + +## How to Cite +``` +@article{kim2023devil, + title={The Devil is in the Points: Weakly Semi-Supervised Instance Segmentation via Point-Guided Mask Representation}, + author={Kim, Beomyoung and Jeong, Joonhyun and Han, Dongyoon and Hwang, Sung Ju}, + journal={arXiv preprint arXiv:2303.15062}, + year={2023} +} +``` + +## License +``` +PointWSSIS +Copyright (c) 2023-present NAVER Cloud Corp. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +``` diff --git a/detectron2/.circleci/config.yml b/detectron2/.circleci/config.yml new file mode 100755 index 0000000..9a2148c --- /dev/null +++ b/detectron2/.circleci/config.yml @@ -0,0 +1,271 @@ +version: 2.1 + +# ------------------------------------------------------------------------------------- +# Environments to run the jobs in +# ------------------------------------------------------------------------------------- +cpu: &cpu + machine: + image: ubuntu-2004:202107-02 + resource_class: medium + +gpu: &gpu + machine: + # NOTE: use a cuda version that's supported by all our pytorch versions + image: ubuntu-1604-cuda-11.1:202012-01 + resource_class: gpu.nvidia.small + +windows-cpu: &windows_cpu + machine: + resource_class: windows.medium + image: windows-server-2019-vs2019:stable + shell: powershell.exe + +# windows-gpu: &windows_gpu +# machine: +# resource_class: windows.gpu.nvidia.medium +# image: windows-server-2019-nvidia:stable + +version_parameters: &version_parameters + parameters: + pytorch_version: + type: string + torchvision_version: + type: string + pytorch_index: + type: string + # use test wheels index to have access to RC wheels + # https://download.pytorch.org/whl/test/torch_test.html + default: "https://download.pytorch.org/whl/torch_stable.html" + python_version: # NOTE: only affect linux + type: string + default: '3.8.6' + + environment: + PYTORCH_VERSION: << parameters.pytorch_version >> + TORCHVISION_VERSION: << parameters.torchvision_version >> + PYTORCH_INDEX: << parameters.pytorch_index >> + PYTHON_VERSION: << parameters.python_version>> + # point datasets to ~/.torch so it's cached in CI + DETECTRON2_DATASETS: ~/.torch/datasets + +# ------------------------------------------------------------------------------------- +# Re-usable commands +# ------------------------------------------------------------------------------------- +# install_nvidia_driver: &install_nvidia_driver +# - run: +# name: Install nvidia driver +# working_directory: ~/ +# command: | +# wget -q 'https://s3.amazonaws.com/ossci-linux/nvidia_driver/NVIDIA-Linux-x86_64-430.40.run' +# sudo /bin/bash ./NVIDIA-Linux-x86_64-430.40.run -s --no-drm +# nvidia-smi + +add_ssh_keys: &add_ssh_keys + # https://circleci.com/docs/2.0/add-ssh-key/ + - add_ssh_keys: + fingerprints: + - "e4:13:f2:22:d4:49:e8:e4:57:5a:ac:20:2f:3f:1f:ca" + +install_python: &install_python + - run: + name: Install Python + working_directory: ~/ + command: | + # upgrade pyenv + cd /opt/circleci/.pyenv/plugins/python-build/../.. && git pull && cd - + pyenv install -s $PYTHON_VERSION + pyenv global $PYTHON_VERSION + python --version + which python + pip install --upgrade pip + +setup_venv: &setup_venv + - run: + name: Setup Virtual Env + working_directory: ~/ + command: | + python -m venv ~/venv + echo ". ~/venv/bin/activate" >> $BASH_ENV + . ~/venv/bin/activate + python --version + which python + which pip + pip install --upgrade pip + +setup_venv_win: &setup_venv_win + - run: + name: Setup Virtual Env for Windows + command: | + pip install virtualenv + python -m virtualenv env + .\env\Scripts\activate + python --version + which python + which pip + +install_linux_dep: &install_linux_dep + - run: + name: Install Dependencies + command: | + # disable crash coredump, so unittests fail fast + sudo systemctl stop apport.service + # install from github to get latest; install iopath first since fvcore depends on it + pip install --progress-bar off -U 'git+https://github.com/facebookresearch/iopath' + pip install --progress-bar off -U 'git+https://github.com/facebookresearch/fvcore' + # Don't use pytest-xdist: cuda tests are unstable under multi-process workers. + # Don't use opencv 4.7.0.68: https://github.com/opencv/opencv-python/issues/765 + pip install --progress-bar off ninja opencv-python-headless!=4.7.0.68 pytest tensorboard pycocotools onnx + pip install --progress-bar off torch==$PYTORCH_VERSION -f $PYTORCH_INDEX + if [[ "$TORCHVISION_VERSION" == "master" ]]; then + pip install git+https://github.com/pytorch/vision.git + else + pip install --progress-bar off torchvision==$TORCHVISION_VERSION -f $PYTORCH_INDEX + fi + + python -c 'import torch; print("CUDA:", torch.cuda.is_available())' + gcc --version + +install_detectron2: &install_detectron2 + - run: + name: Install Detectron2 + command: | + # Remove first, in case it's in the CI cache + pip uninstall -y detectron2 + + pip install --progress-bar off -e .[all] + python -m detectron2.utils.collect_env + ./datasets/prepare_for_tests.sh + +run_unittests: &run_unittests + - run: + name: Run Unit Tests + command: | + pytest -sv --durations=15 tests # parallel causes some random failures + +uninstall_tests: &uninstall_tests + - run: + name: Run Tests After Uninstalling + command: | + pip uninstall -y detectron2 + # Remove built binaries + rm -rf build/ detectron2/*.so + # Tests that code is importable without installation + PYTHONPATH=. ./.circleci/import-tests.sh + + +# ------------------------------------------------------------------------------------- +# Jobs to run +# ------------------------------------------------------------------------------------- +jobs: + linux_cpu_tests: + <<: *cpu + <<: *version_parameters + + working_directory: ~/detectron2 + + steps: + - checkout + + # Cache the venv directory that contains python, dependencies, and checkpoints + # Refresh the key when dependencies should be updated (e.g. when pytorch releases) + - restore_cache: + keys: + - cache-{{ arch }}-<< parameters.pytorch_version >>-{{ .Branch }}-20210827 + + - <<: *install_python + - <<: *install_linux_dep + - <<: *install_detectron2 + - <<: *run_unittests + - <<: *uninstall_tests + + - save_cache: + paths: + - /opt/circleci/.pyenv + - ~/.torch + key: cache-{{ arch }}-<< parameters.pytorch_version >>-{{ .Branch }}-20210827 + + + linux_gpu_tests: + <<: *gpu + <<: *version_parameters + + working_directory: ~/detectron2 + + steps: + - checkout + + - restore_cache: + keys: + - cache-{{ arch }}-<< parameters.pytorch_version >>-{{ .Branch }}-20210827 + + - <<: *install_python + - <<: *install_linux_dep + - <<: *install_detectron2 + - <<: *run_unittests + - <<: *uninstall_tests + + - save_cache: + paths: + - /opt/circleci/.pyenv + - ~/.torch + key: cache-{{ arch }}-<< parameters.pytorch_version >>-{{ .Branch }}-20210827 + + windows_cpu_build: + <<: *windows_cpu + <<: *version_parameters + steps: + - <<: *add_ssh_keys + - checkout + - <<: *setup_venv_win + + # Cache the env directory that contains dependencies + - restore_cache: + keys: + - cache-{{ arch }}-<< parameters.pytorch_version >>-{{ .Branch }}-20210404 + + - run: + name: Install Dependencies + command: | + pip install certifi --ignore-installed # required on windows to workaround some cert issue + pip install numpy cython # required on windows before pycocotools + pip install opencv-python-headless pytest-xdist pycocotools tensorboard onnx + pip install -U git+https://github.com/facebookresearch/iopath + pip install -U git+https://github.com/facebookresearch/fvcore + pip install torch==$env:PYTORCH_VERSION torchvision==$env:TORCHVISION_VERSION -f $env:PYTORCH_INDEX + + - save_cache: + paths: + - env + key: cache-{{ arch }}-<< parameters.pytorch_version >>-{{ .Branch }}-20210404 + + - <<: *install_detectron2 + # TODO: unittest fails for now + +workflows: + version: 2 + regular_test: + jobs: + - linux_cpu_tests: + name: linux_cpu_tests_pytorch1.10 + pytorch_version: '1.10.0+cpu' + torchvision_version: '0.11.1+cpu' + - linux_gpu_tests: + name: linux_gpu_tests_pytorch1.8 + pytorch_version: '1.8.1+cu111' + torchvision_version: '0.9.1+cu111' + - linux_gpu_tests: + name: linux_gpu_tests_pytorch1.9 + pytorch_version: '1.9+cu111' + torchvision_version: '0.10+cu111' + - linux_gpu_tests: + name: linux_gpu_tests_pytorch1.10 + pytorch_version: '1.10+cu111' + torchvision_version: '0.11.1+cu111' + - linux_gpu_tests: + name: linux_gpu_tests_pytorch1.10_python39 + pytorch_version: '1.10+cu111' + torchvision_version: '0.11.1+cu111' + python_version: '3.9.6' + - windows_cpu_build: + pytorch_version: '1.10+cpu' + torchvision_version: '0.11.1+cpu' diff --git a/detectron2/.circleci/import-tests.sh b/detectron2/.circleci/import-tests.sh new file mode 100755 index 0000000..8e8deb6 --- /dev/null +++ b/detectron2/.circleci/import-tests.sh @@ -0,0 +1,16 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +# Test that import works without building detectron2. + +# Check that _C is not importable +python -c "from detectron2 import _C" > /dev/null 2>&1 && { + echo "This test should be run without building detectron2." + exit 1 +} + +# Check that other modules are still importable, even when _C is not importable +python -c "from detectron2 import modeling" +python -c "from detectron2 import modeling, data" +python -c "from detectron2 import evaluation, export, checkpoint" +python -c "from detectron2 import utils, engine" diff --git a/detectron2/.clang-format b/detectron2/.clang-format new file mode 100755 index 0000000..39b1b3d --- /dev/null +++ b/detectron2/.clang-format @@ -0,0 +1,85 @@ +AccessModifierOffset: -1 +AlignAfterOpenBracket: AlwaysBreak +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignEscapedNewlinesLeft: true +AlignOperands: false +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortCaseLabelsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: true +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: false +BreakAfterJavaFieldAnnotations: false +BreakStringLiterals: false +ColumnLimit: 80 +CommentPragmas: '^ IWYU pragma:' +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: true +DerivePointerAlignment: false +DisableFormat: false +ForEachMacros: [ FOR_EACH, FOR_EACH_R, FOR_EACH_RANGE, ] +IncludeCategories: + - Regex: '^<.*\.h(pp)?>' + Priority: 1 + - Regex: '^<.*' + Priority: 2 + - Regex: '.*' + Priority: 3 +IndentCaseLabels: true +IndentWidth: 2 +IndentWrappedFunctionNames: false +KeepEmptyLinesAtTheStartOfBlocks: false +MacroBlockBegin: '' +MacroBlockEnd: '' +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: None +ObjCBlockIndentWidth: 2 +ObjCSpaceAfterProperty: false +ObjCSpaceBeforeProtocolList: false +PenaltyBreakBeforeFirstCallParameter: 1 +PenaltyBreakComment: 300 +PenaltyBreakFirstLessLess: 120 +PenaltyBreakString: 1000 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 200 +PointerAlignment: Left +ReflowComments: true +SortIncludes: true +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInContainerLiterals: true +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +Standard: Cpp11 +TabWidth: 8 +UseTab: Never diff --git a/detectron2/.flake8 b/detectron2/.flake8 new file mode 100755 index 0000000..28881e4 --- /dev/null +++ b/detectron2/.flake8 @@ -0,0 +1,15 @@ +# This is an example .flake8 config, used when developing *Black* itself. +# Keep in sync with setup.cfg which is used for source packages. + +[flake8] +ignore = W503, E203, E221, C901, C408, E741, C407, B017, F811, C101, EXE001, EXE002 +max-line-length = 100 +max-complexity = 18 +select = B,C,E,F,W,T4,B9 +exclude = build +per-file-ignores = + **/__init__.py:F401,F403,E402 + **/configs/**.py:F401,E402 + configs/**.py:F401,E402 + **/tests/config/**.py:F401,E402 + tests/config/**.py:F401,E402 diff --git a/detectron2/.github/CODE_OF_CONDUCT.md b/detectron2/.github/CODE_OF_CONDUCT.md new file mode 100755 index 0000000..0f7ad8b --- /dev/null +++ b/detectron2/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,5 @@ +# Code of Conduct + +Facebook has adopted a Code of Conduct that we expect project participants to adhere to. +Please read the [full text](https://code.fb.com/codeofconduct/) +so that you can understand what actions will and will not be tolerated. diff --git a/detectron2/.github/CONTRIBUTING.md b/detectron2/.github/CONTRIBUTING.md new file mode 100755 index 0000000..9bab709 --- /dev/null +++ b/detectron2/.github/CONTRIBUTING.md @@ -0,0 +1,68 @@ +# Contributing to detectron2 + +## Issues +We use GitHub issues to track public bugs and questions. +Please make sure to follow one of the +[issue templates](https://github.com/facebookresearch/detectron2/issues/new/choose) +when reporting any issues. + +Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe +disclosure of security bugs. In those cases, please go through the process +outlined on that page and do not file a public issue. + +## Pull Requests +We actively welcome pull requests. + +However, if you're adding any significant features (e.g. > 50 lines), please +make sure to discuss with maintainers about your motivation and proposals in an issue +before sending a PR. This is to save your time so you don't spend time on a PR that we'll not accept. + +We do not always accept new features, and we take the following +factors into consideration: + +1. Whether the same feature can be achieved without modifying detectron2. + Detectron2 is designed so that you can implement many extensions from the outside, e.g. + those in [projects](https://github.com/facebookresearch/detectron2/tree/master/projects). + * If some part of detectron2 is not extensible enough, you can also bring up a more general issue to + improve it. Such feature request may be useful to more users. +2. Whether the feature is potentially useful to a large audience (e.g. an impactful detection paper, a popular dataset, + a significant speedup, a widely useful utility), + or only to a small portion of users (e.g., a less-known paper, an improvement not in the object + detection field, a trick that's not very popular in the community, code to handle a non-standard type of data) + * Adoption of additional models, datasets, new task are by default not added to detectron2 before they + receive significant popularity in the community. + We sometimes accept such features in `projects/`, or as a link in `projects/README.md`. +3. Whether the proposed solution has a good design / interface. This can be discussed in the issue prior to PRs, or + in the form of a draft PR. +4. Whether the proposed solution adds extra mental/practical overhead to users who don't + need such feature. +5. Whether the proposed solution breaks existing APIs. + +To add a feature to an existing function/class `Func`, there are always two approaches: +(1) add new arguments to `Func`; (2) write a new `Func_with_new_feature`. +To meet the above criteria, we often prefer approach (2), because: + +1. It does not involve modifying or potentially breaking existing code. +2. It does not add overhead to users who do not need the new feature. +3. Adding new arguments to a function/class is not scalable w.r.t. all the possible new research ideas in the future. + +When sending a PR, please do: + +1. If a PR contains multiple orthogonal changes, split it to several PRs. +2. If you've added code that should be tested, add tests. +3. For PRs that need experiments (e.g. adding a new model or new methods), + you don't need to update model zoo, but do provide experiment results in the description of the PR. +4. If APIs are changed, update the documentation. +5. We use the [Google style docstrings](https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html) in python. +6. Make sure your code lints with `./dev/linter.sh`. + + +## Contributor License Agreement ("CLA") +In order to accept your pull request, we need you to submit a CLA. You only need +to do this once to work on any of Facebook's open source projects. + +Complete your CLA here: + +## License +By contributing to detectron2, you agree that your contributions will be licensed +under the LICENSE file in the root directory of this source tree. diff --git a/detectron2/.github/Detectron2-Logo-Horz.svg b/detectron2/.github/Detectron2-Logo-Horz.svg new file mode 100755 index 0000000..eb2d643 --- /dev/null +++ b/detectron2/.github/Detectron2-Logo-Horz.svg @@ -0,0 +1 @@ +Detectron2-Logo-Horz \ No newline at end of file diff --git a/detectron2/.github/ISSUE_TEMPLATE.md b/detectron2/.github/ISSUE_TEMPLATE.md new file mode 100755 index 0000000..5e8aaa2 --- /dev/null +++ b/detectron2/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,5 @@ + +Please select an issue template from +https://github.com/facebookresearch/detectron2/issues/new/choose . + +Otherwise your issue will be closed. diff --git a/detectron2/.github/ISSUE_TEMPLATE/bugs.md b/detectron2/.github/ISSUE_TEMPLATE/bugs.md new file mode 100755 index 0000000..d0235c7 --- /dev/null +++ b/detectron2/.github/ISSUE_TEMPLATE/bugs.md @@ -0,0 +1,38 @@ +--- +name: "🐛 Bugs" +about: Report bugs in detectron2 +title: Please read & provide the following + +--- + +## Instructions To Reproduce the 🐛 Bug: +1. Full runnable code or full changes you made: +``` +If making changes to the project itself, please use output of the following command: +git rev-parse HEAD; git diff + + +``` +2. What exact command you run: +3. __Full logs__ or other relevant observations: +``` + +``` +4. please simplify the steps as much as possible so they do not require additional resources to + run, such as a private dataset. + +## Expected behavior: + +If there are no obvious error in "full logs" provided above, +please tell us the expected behavior. + +## Environment: + +Provide your environment information using the following command: +``` +wget -nc -q https://github.com/facebookresearch/detectron2/raw/main/detectron2/utils/collect_env.py && python collect_env.py +``` + +If your issue looks like an installation issue / environment issue, +please first try to solve it yourself with the instructions in +https://detectron2.readthedocs.io/tutorials/install.html#common-installation-issues diff --git a/detectron2/.github/ISSUE_TEMPLATE/config.yml b/detectron2/.github/ISSUE_TEMPLATE/config.yml new file mode 100755 index 0000000..c60c2e1 --- /dev/null +++ b/detectron2/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,17 @@ +# require an issue template to be chosen +blank_issues_enabled: false + +contact_links: + - name: How-To / All Other Questions + url: https://github.com/facebookresearch/detectron2/discussions + about: Use "github discussions" for community support on general questions that don't belong to the above issue categories + - name: Detectron2 Documentation + url: https://detectron2.readthedocs.io/index.html + about: Check if your question is answered in tutorials or API docs + +# Unexpected behaviors & bugs are split to two templates. +# When they are one template, users think "it's not a bug" and don't choose the template. +# +# But the file name is still "unexpected-problems-bugs.md" so that old references +# to this issue template still works. +# It's ok since this template should be a superset of "bugs.md" (unexpected behaviors is a superset of bugs) diff --git a/detectron2/.github/ISSUE_TEMPLATE/documentation.md b/detectron2/.github/ISSUE_TEMPLATE/documentation.md new file mode 100755 index 0000000..88214d6 --- /dev/null +++ b/detectron2/.github/ISSUE_TEMPLATE/documentation.md @@ -0,0 +1,14 @@ +--- +name: "\U0001F4DA Documentation Issue" +about: Report a problem about existing documentation, comments, website or tutorials. +labels: documentation + +--- + +## 📚 Documentation Issue + +This issue category is for problems about existing documentation, not for asking how-to questions. + +* Provide a link to an existing documentation/comment/tutorial: + +* How should the above documentation/comment/tutorial improve: diff --git a/detectron2/.github/ISSUE_TEMPLATE/feature-request.md b/detectron2/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100755 index 0000000..03a1e93 --- /dev/null +++ b/detectron2/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,31 @@ +--- +name: "\U0001F680Feature Request" +about: Suggest an improvement or new feature +labels: enhancement + +--- + +## 🚀 Feature +A clear and concise description of the feature proposal. + +## Motivation & Examples + +Tell us why the feature is useful. + +Describe what the feature would look like, if it is implemented. +Best demonstrated using **code examples** in addition to words. + +## Note + +We only consider adding new features if they are relevant to many users. + +If you request implementation of research papers -- we only consider papers that have enough significance and prevalance in the object detection field. + +We do not take requests for most projects in the `projects/` directory, because they are research code release that is mainly for other researchers to reproduce results. + +"Make X faster/accurate" is not a valid feature request. "Implement a concrete feature that can make X faster/accurate" can be a valid feature request. + +Instead of adding features inside detectron2, +you can implement many features by [extending detectron2](https://detectron2.readthedocs.io/tutorials/extend.html). +The [projects/](https://github.com/facebookresearch/detectron2/tree/main/projects/) directory contains many of such examples. + diff --git a/detectron2/.github/ISSUE_TEMPLATE/unexpected-problems-bugs.md b/detectron2/.github/ISSUE_TEMPLATE/unexpected-problems-bugs.md new file mode 100755 index 0000000..5db8f22 --- /dev/null +++ b/detectron2/.github/ISSUE_TEMPLATE/unexpected-problems-bugs.md @@ -0,0 +1,44 @@ +--- +name: "😩 Unexpected behaviors" +about: Report unexpected behaviors when using detectron2 +title: Please read & provide the following + +--- + +If you do not know the root cause of the problem, please post according to this template: + +## Instructions To Reproduce the Issue: + +Check https://stackoverflow.com/help/minimal-reproducible-example for how to ask good questions. +Simplify the steps to reproduce the issue using suggestions from the above link, and provide them below: + +1. Full runnable code or full changes you made: +``` +If making changes to the project itself, please use output of the following command: +git rev-parse HEAD; git diff + + +``` +2. What exact command you run: +3. __Full logs__ or other relevant observations: +``` + +``` + +## Expected behavior: + +If there are no obvious crash in "full logs" provided above, +please tell us the expected behavior. + +If you expect a model to converge / work better, we do not help with such issues, unless +a model fails to reproduce the results in detectron2 model zoo, or proves existence of bugs. + +## Environment: + +Paste the output of the following command: +``` +wget -nc -nv https://github.com/facebookresearch/detectron2/raw/main/detectron2/utils/collect_env.py && python collect_env.py +``` + +If your issue looks like an installation issue / environment issue, +please first check common issues in https://detectron2.readthedocs.io/tutorials/install.html#common-installation-issues diff --git a/detectron2/.github/pull_request_template.md b/detectron2/.github/pull_request_template.md new file mode 100755 index 0000000..d71729b --- /dev/null +++ b/detectron2/.github/pull_request_template.md @@ -0,0 +1,10 @@ +Thanks for your contribution! + +If you're sending a large PR (e.g., >100 lines), +please open an issue first about the feature / bug, and indicate how you want to contribute. + +We do not always accept features. +See https://detectron2.readthedocs.io/notes/contributing.html#pull-requests about how we handle PRs. + +Before submitting a PR, please run `dev/linter.sh` to lint the code. + diff --git a/detectron2/.github/workflows/check-template.yml b/detectron2/.github/workflows/check-template.yml new file mode 100755 index 0000000..3caed9d --- /dev/null +++ b/detectron2/.github/workflows/check-template.yml @@ -0,0 +1,86 @@ +name: Check issue template + +on: + issues: + types: [opened] + +jobs: + check-template: + runs-on: ubuntu-latest + # comment this out when testing with https://github.com/nektos/act + if: ${{ github.repository_owner == 'facebookresearch' }} + steps: + - uses: actions/checkout@v2 + - uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + // Arguments available: + // - github: A pre-authenticated octokit/rest.js client + // - context: An object containing the context of the workflow run + // - core: A reference to the @actions/core package + // - io: A reference to the @actions/io package + const fs = require('fs'); + const editDistance = require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/levenshtein.js`).getEditDistance + issue = await github.issues.get({ + owner: context.issue.owner, + repo: context.issue.repo, + issue_number: context.issue.number, + }); + const hasLabel = issue.data.labels.length > 0; + if (hasLabel || issue.state === "closed") { + // don't require template on them + core.debug("Issue " + issue.data.title + " was skipped."); + return; + } + + sameAsTemplate = function(filename, body) { + let tmpl = fs.readFileSync(`.github/ISSUE_TEMPLATE/${filename}`, 'utf8'); + tmpl = tmpl.toLowerCase().split("---").slice(2).join("").trim(); + tmpl = tmpl.replace(/(\r\n|\n|\r)/gm, ""); + let bodyr = body.replace(/(\r\n|\n|\r)/gm, ""); + let dist = editDistance(tmpl, bodyr); + return dist < 8; + }; + + checkFail = async function(msg) { + core.info("Processing '" + issue.data.title + "' with message: " + msg); + await github.issues.addLabels({ + owner: context.issue.owner, + repo: context.issue.repo, + issue_number: context.issue.number, + labels: ["needs-more-info"], + }); + await github.issues.createComment({ + owner: context.issue.owner, + repo: context.issue.repo, + issue_number: context.issue.number, + body: msg, + }); + }; + + const body = issue.data.body.toLowerCase().trim(); + + if (sameAsTemplate("bugs.md", body) || sameAsTemplate("unexpected-problems-bugs.md", body)) { + await checkFail(` + We found that not enough information is provided about this issue. + Please provide details following the [issue template](https://github.com/facebookresearch/detectron2/issues/new/choose).`) + return; + } + + const hasInstructions = body.indexOf("reproduce") != -1; + const hasEnvironment = (body.indexOf("environment") != -1) || (body.indexOf("colab") != -1) || (body.indexOf("docker") != -1); + if (hasInstructions && hasEnvironment) { + core.debug("Issue " + issue.data.title + " follows template."); + return; + } + + let message = "You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the [issue template](https://github.com/facebookresearch/detectron2/issues/new/choose).\n"; + message += "The following information is missing: "; + if (!hasInstructions) { + message += "\"Instructions To Reproduce the Issue and __Full__ Logs\"; "; + } + if (!hasEnvironment) { + message += "\"Your Environment\"; "; + } + await checkFail(message); diff --git a/detectron2/.github/workflows/levenshtein.js b/detectron2/.github/workflows/levenshtein.js new file mode 100755 index 0000000..67a5e36 --- /dev/null +++ b/detectron2/.github/workflows/levenshtein.js @@ -0,0 +1,44 @@ +/* +Copyright (c) 2011 Andrei Mackenzie + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ + +// Compute the edit distance between the two given strings +exports.getEditDistance = function(a, b){ + if(a.length == 0) return b.length; + if(b.length == 0) return a.length; + + var matrix = []; + + // increment along the first column of each row + var i; + for(i = 0; i <= b.length; i++){ + matrix[i] = [i]; + } + + // increment each column in the first row + var j; + for(j = 0; j <= a.length; j++){ + matrix[0][j] = j; + } + + // Fill in the rest of the matrix + for(i = 1; i <= b.length; i++){ + for(j = 1; j <= a.length; j++){ + if(b.charAt(i-1) == a.charAt(j-1)){ + matrix[i][j] = matrix[i-1][j-1]; + } else { + matrix[i][j] = Math.min(matrix[i-1][j-1] + 1, // substitution + Math.min(matrix[i][j-1] + 1, // insertion + matrix[i-1][j] + 1)); // deletion + } + } + } + + return matrix[b.length][a.length]; +}; diff --git a/detectron2/.github/workflows/needs-reply.yml b/detectron2/.github/workflows/needs-reply.yml new file mode 100755 index 0000000..4affabd --- /dev/null +++ b/detectron2/.github/workflows/needs-reply.yml @@ -0,0 +1,98 @@ +name: Close/Lock issues after inactivity + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + close-issues-needs-more-info: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'facebookresearch' }} + steps: + - name: Close old issues that need reply + uses: actions/github-script@v3 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + # Modified from https://github.com/dwieeb/needs-reply + script: | + // Arguments available: + // - github: A pre-authenticated octokit/rest.js client + // - context: An object containing the context of the workflow run + // - core: A reference to the @actions/core package + // - io: A reference to the @actions/io package + const kLabelToCheck = "needs-more-info"; + const kInvalidLabel = "invalid/unrelated"; + const kDaysBeforeClose = 7; + const kMessage = "Requested information was not provided in 7 days, so we're closing this issue.\n\nPlease open new issue if information becomes available. Otherwise, use [github discussions](https://github.com/facebookresearch/detectron2/discussions) for free-form discussions." + + issues = await github.issues.listForRepo({ + owner: context.repo.owner, + repo: context.repo.repo, + state: 'open', + labels: kLabelToCheck, + sort: 'updated', + direction: 'asc', + per_page: 30, + page: 1, + }); + issues = issues.data; + if (issues.length === 0) { + core.info('No more issues found to process. Exiting.'); + return; + } + for (const issue of issues) { + if (!!issue.pull_request) + continue; + core.info(`Processing issue #${issue.number}`); + + let updatedAt = new Date(issue.updated_at).getTime(); + const numComments = issue.comments; + const comments = await github.issues.listComments({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + per_page: 30, + page: Math.floor((numComments - 1) / 30) + 1, // the last page + }); + const lastComments = comments.data + .map(l => new Date(l.created_at).getTime()) + .sort(); + if (lastComments.length > 0) { + updatedAt = lastComments[lastComments.length - 1]; + } + + const now = new Date().getTime(); + const daysSinceUpdated = (now - updatedAt) / 1000 / 60 / 60 / 24; + + if (daysSinceUpdated < kDaysBeforeClose) { + core.info(`Skipping #${issue.number} because it has been updated in the last ${daysSinceUpdated} days`); + continue; + } + core.info(`Closing #${issue.number} because it has not been updated in the last ${daysSinceUpdated} days`); + await github.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + body: kMessage, + }); + const newLabels = numComments <= 2 ? [kInvalidLabel, kLabelToCheck] : issue.labels; + await github.issues.update({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: issue.number, + labels: newLabels, + state: 'closed', + }); + } + + lock-issues-after-closed: + runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'facebookresearch' }} + steps: + - name: Lock closed issues that have no activity for a while + uses: dessant/lock-threads@v2 + with: + github-token: ${{ github.token }} + issue-lock-inactive-days: '300' + process-only: 'issues' + issue-exclude-labels: 'enhancement,bug,documentation' diff --git a/detectron2/.github/workflows/remove-needs-reply.yml b/detectron2/.github/workflows/remove-needs-reply.yml new file mode 100755 index 0000000..1f000b2 --- /dev/null +++ b/detectron2/.github/workflows/remove-needs-reply.yml @@ -0,0 +1,25 @@ +name: Remove needs-more-info label + +on: + issue_comment: + types: [created] + issues: + types: [edited] + +jobs: + remove-needs-more-info-label: + runs-on: ubuntu-latest + # 1. issue_comment events could include PR comment, filter them out + # 2. Only trigger action if event was produced by the original author + if: ${{ !github.event.issue.pull_request && github.event.sender.login == github.event.issue.user.login }} + steps: + - name: Remove needs-more-info label + uses: octokit/request-action@v2.x + continue-on-error: true + with: + route: DELETE /repos/:repository/issues/:issue/labels/:label + repository: ${{ github.repository }} + issue: ${{ github.event.issue.number }} + label: needs-more-info + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/detectron2/.github/workflows/workflow.yml b/detectron2/.github/workflows/workflow.yml new file mode 100755 index 0000000..3de246c --- /dev/null +++ b/detectron2/.github/workflows/workflow.yml @@ -0,0 +1,81 @@ +name: CI +on: [push, pull_request] + +# Run linter with github actions for quick feedbacks. +# Run macos tests with github actions. Linux (CPU & GPU) tests currently runs on CircleCI +jobs: + linter: + runs-on: ubuntu-latest + # run on PRs, or commits to facebookresearch (not internal) + if: ${{ github.repository_owner == 'facebookresearch' || github.event_name == 'pull_request' }} + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + # flake8-bugbear flake8-comprehensions are useful but not available internally + run: | + python -m pip install --upgrade pip + python -m pip install flake8==3.8.1 isort==4.3.21 + python -m pip install black==22.3.0 + flake8 --version + - name: Lint + run: | + echo "Running isort" + isort -c -sp . + echo "Running black" + black -l 100 --check . + echo "Running flake8" + flake8 . + + macos_tests: + runs-on: macos-latest + # run on PRs, or commits to facebookresearch (not internal) + if: ${{ github.repository_owner == 'facebookresearch' || github.event_name == 'pull_request' }} + strategy: + fail-fast: false + matrix: + torch: ["1.8", "1.9", "1.10"] + include: + - torch: "1.8" + torchvision: 0.9 + - torch: "1.9" + torchvision: "0.10" + - torch: "1.10" + torchvision: "0.11.1" + env: + # point datasets to ~/.torch so it's cached by CI + DETECTRON2_DATASETS: ~/.torch/datasets + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: | + ${{ env.pythonLocation }}/lib/python3.8/site-packages + ~/.torch + key: ${{ runner.os }}-torch${{ matrix.torch }}-${{ hashFiles('setup.py') }}-20220119 + + - name: Install dependencies + run: | + python -m pip install -U pip + python -m pip install ninja opencv-python-headless onnx pytest-xdist + python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html + # install from github to get latest; install iopath first since fvcore depends on it + python -m pip install -U 'git+https://github.com/facebookresearch/iopath' + python -m pip install -U 'git+https://github.com/facebookresearch/fvcore' + + - name: Build and install + run: | + CC=clang CXX=clang++ python -m pip install -e .[all] + python -m detectron2.utils.collect_env + ./datasets/prepare_for_tests.sh + - name: Run unittests + run: python -m pytest -n 4 --durations=15 -sv tests/ diff --git a/detectron2/.gitignore b/detectron2/.gitignore new file mode 100755 index 0000000..9953d9b --- /dev/null +++ b/detectron2/.gitignore @@ -0,0 +1,53 @@ +# output dir +output +instant_test_output +inference_test_output + + +*.png +*.json +*.diff +*.jpg +!/projects/DensePose/doc/images/*.jpg + +# compilation and distribution +__pycache__ +_ext +*.pyc +*.pyd +*.so +*.dll +*.egg-info/ +build/ +dist/ +wheels/ + +# pytorch/python/numpy formats +*.pth +*.pkl +*.npy +*.ts +model_ts*.txt + +# ipython/jupyter notebooks +*.ipynb +**/.ipynb_checkpoints/ + +# Editor temporaries +*.swn +*.swo +*.swp +*~ + +# editor settings +.idea +.vscode +_darcs + +# project dirs +/detectron2/model_zoo/configs +/datasets/* +!/datasets/*.* +/projects/*/datasets +/models +/snippet diff --git a/detectron2/GETTING_STARTED.md b/detectron2/GETTING_STARTED.md new file mode 100755 index 0000000..404b0c8 --- /dev/null +++ b/detectron2/GETTING_STARTED.md @@ -0,0 +1,79 @@ +## Getting Started with Detectron2 + +This document provides a brief intro of the usage of builtin command-line tools in detectron2. + +For a tutorial that involves actual coding with the API, +see our [Colab Notebook](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5) +which covers how to run inference with an +existing model, and how to train a builtin model on a custom dataset. + + +### Inference Demo with Pre-trained Models + +1. Pick a model and its config file from + [model zoo](MODEL_ZOO.md), + for example, `mask_rcnn_R_50_FPN_3x.yaml`. +2. We provide `demo.py` that is able to demo builtin configs. Run it with: +``` +cd demo/ +python demo.py --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \ + --input input1.jpg input2.jpg \ + [--other-options] + --opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl +``` +The configs are made for training, therefore we need to specify `MODEL.WEIGHTS` to a model from model zoo for evaluation. +This command will run the inference and show visualizations in an OpenCV window. + +For details of the command line arguments, see `demo.py -h` or look at its source code +to understand its behavior. Some common arguments are: +* To run __on your webcam__, replace `--input files` with `--webcam`. +* To run __on a video__, replace `--input files` with `--video-input video.mp4`. +* To run __on cpu__, add `MODEL.DEVICE cpu` after `--opts`. +* To save outputs to a directory (for images) or a file (for webcam or video), use `--output`. + + +### Training & Evaluation in Command Line + +We provide two scripts in "tools/plain_train_net.py" and "tools/train_net.py", +that are made to train all the configs provided in detectron2. You may want to +use it as a reference to write your own training script. + +Compared to "train_net.py", "plain_train_net.py" supports fewer default +features. It also includes fewer abstraction, therefore is easier to add custom +logic. + +To train a model with "train_net.py", first +setup the corresponding datasets following +[datasets/README.md](./datasets/README.md), +then run: +``` +cd tools/ +./train_net.py --num-gpus 8 \ + --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml +``` + +The configs are made for 8-GPU training. +To train on 1 GPU, you may need to [change some parameters](https://arxiv.org/abs/1706.02677), e.g.: +``` +./train_net.py \ + --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \ + --num-gpus 1 SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025 +``` + +To evaluate a model's performance, use +``` +./train_net.py \ + --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \ + --eval-only MODEL.WEIGHTS /path/to/checkpoint_file +``` +For more options, see `./train_net.py -h`. + +### Use Detectron2 APIs in Your Code + +See our [Colab Notebook](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5) +to learn how to use detectron2 APIs to: +1. run inference with an existing model +2. train a builtin model on a custom dataset + +See [detectron2/projects](https://github.com/facebookresearch/detectron2/tree/main/projects) +for more ways to build your project on detectron2. diff --git a/detectron2/INSTALL.md b/detectron2/INSTALL.md new file mode 100755 index 0000000..f522e6f --- /dev/null +++ b/detectron2/INSTALL.md @@ -0,0 +1,261 @@ +## Installation + +### Requirements +- Linux or macOS with Python ≥ 3.7 +- PyTorch ≥ 1.8 and [torchvision](https://github.com/pytorch/vision/) that matches the PyTorch installation. + Install them together at [pytorch.org](https://pytorch.org) to make sure of this +- OpenCV is optional but needed by demo and visualization + + +### Build Detectron2 from Source + +gcc & g++ ≥ 5.4 are required. [ninja](https://ninja-build.org/) is optional but recommended for faster build. +After having them, run: +``` +python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' +# (add --user if you don't have permission) + +# Or, to install it from a local clone: +git clone https://github.com/facebookresearch/detectron2.git +python -m pip install -e detectron2 + +# On macOS, you may need to prepend the above commands with a few environment variables: +CC=clang CXX=clang++ ARCHFLAGS="-arch x86_64" python -m pip install ... +``` + +To __rebuild__ detectron2 that's built from a local clone, use `rm -rf build/ **/*.so` to clean the +old build first. You often need to rebuild detectron2 after reinstalling PyTorch. + +### Install Pre-Built Detectron2 (Linux only) + +Choose from this table to install [v0.6 (Oct 2021)](https://github.com/facebookresearch/detectron2/releases): + +
CUDA torch 1.10torch 1.9torch 1.8
11.3
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu113/torch1.10/index.html
+
11.1
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.10/index.html
+
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.9/index.html
+
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.8/index.html
+
10.2
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.10/index.html
+
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.9/index.html
+
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu102/torch1.8/index.html
+
10.1
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html
+
cpu
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.10/index.html
+
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.9/index.html
+
install
python -m pip install detectron2 -f \
+  https://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.8/index.html
+
+ +Note that: +1. The pre-built packages have to be used with corresponding version of CUDA and the official package of PyTorch. + Otherwise, please build detectron2 from source. +2. New packages are released every few months. Therefore, packages may not contain latest features in the main + branch and may not be compatible with the main branch of a research project that uses detectron2 + (e.g. those in [projects](projects)). + +### Common Installation Issues + +Click each issue for its solutions: + +
+ +Undefined symbols that looks like "TH..","at::Tensor...","torch..." + +
+ +This usually happens when detectron2 or torchvision is not +compiled with the version of PyTorch you're running. + +If the error comes from a pre-built torchvision, uninstall torchvision and pytorch and reinstall them +following [pytorch.org](http://pytorch.org). So the versions will match. + +If the error comes from a pre-built detectron2, check [release notes](https://github.com/facebookresearch/detectron2/releases), +uninstall and reinstall the correct pre-built detectron2 that matches pytorch version. + +If the error comes from detectron2 or torchvision that you built manually from source, +remove files you built (`build/`, `**/*.so`) and rebuild it so it can pick up the version of pytorch currently in your environment. + +If the above instructions do not resolve this problem, please provide an environment (e.g. a dockerfile) that can reproduce the issue. +
+ +
+ +Missing torch dynamic libraries, OR segmentation fault immediately when using detectron2. + +This usually happens when detectron2 or torchvision is not +compiled with the version of PyTorch you're running. See the previous common issue for the solution. +
+ +
+ +Undefined C++ symbols (e.g. "GLIBCXX..") or C++ symbols not found. + +
+Usually it's because the library is compiled with a newer C++ compiler but run with an old C++ runtime. + +This often happens with old anaconda. +It may help to run `conda update libgcc` to upgrade its runtime. + +The fundamental solution is to avoid the mismatch, either by compiling using older version of C++ +compiler, or run the code with proper C++ runtime. +To run the code with a specific C++ runtime, you can use environment variable `LD_PRELOAD=/path/to/libstdc++.so`. + +
+ +
+ +"nvcc not found" or "Not compiled with GPU support" or "Detectron2 CUDA Compiler: not available". + +
+CUDA is not found when building detectron2. +You should make sure + +``` +python -c 'import torch; from torch.utils.cpp_extension import CUDA_HOME; print(torch.cuda.is_available(), CUDA_HOME)' +``` + +print `(True, a directory with cuda)` at the time you build detectron2. + +Most models can run inference (but not training) without GPU support. To use CPUs, set `MODEL.DEVICE='cpu'` in the config. +
+ +
+ +"invalid device function" or "no kernel image is available for execution". + +
+Two possibilities: + +* You build detectron2 with one version of CUDA but run it with a different version. + + To check whether it is the case, + use `python -m detectron2.utils.collect_env` to find out inconsistent CUDA versions. + In the output of this command, you should expect "Detectron2 CUDA Compiler", "CUDA_HOME", "PyTorch built with - CUDA" + to contain cuda libraries of the same version. + + When they are inconsistent, + you need to either install a different build of PyTorch (or build by yourself) + to match your local CUDA installation, or install a different version of CUDA to match PyTorch. + +* PyTorch/torchvision/Detectron2 is not built for the correct GPU SM architecture (aka. compute capability). + + The architecture included by PyTorch/detectron2/torchvision is available in the "architecture flags" in + `python -m detectron2.utils.collect_env`. It must include + the architecture of your GPU, which can be found at [developer.nvidia.com/cuda-gpus](https://developer.nvidia.com/cuda-gpus). + + If you're using pre-built PyTorch/detectron2/torchvision, they have included support for most popular GPUs already. + If not supported, you need to build them from source. + + When building detectron2/torchvision from source, they detect the GPU device and build for only the device. + This means the compiled code may not work on a different GPU device. + To recompile them for the correct architecture, remove all installed/compiled files, + and rebuild them with the `TORCH_CUDA_ARCH_LIST` environment variable set properly. + For example, `export TORCH_CUDA_ARCH_LIST="6.0;7.0"` makes it compile for both P100s and V100s. +
+ +
+ +Undefined CUDA symbols; Cannot open libcudart.so + +
+The version of NVCC you use to build detectron2 or torchvision does +not match the version of CUDA you are running with. +This often happens when using anaconda's CUDA runtime. + +Use `python -m detectron2.utils.collect_env` to find out inconsistent CUDA versions. +In the output of this command, you should expect "Detectron2 CUDA Compiler", "CUDA_HOME", "PyTorch built with - CUDA" +to contain cuda libraries of the same version. + +When they are inconsistent, +you need to either install a different build of PyTorch (or build by yourself) +to match your local CUDA installation, or install a different version of CUDA to match PyTorch. +
+ + +
+ +C++ compilation errors from NVCC / NVRTC, or "Unsupported gpu architecture" + +
+A few possibilities: + +1. Local CUDA/NVCC version has to match the CUDA version of your PyTorch. Both can be found in `python collect_env.py` + (download from [here](./detectron2/utils/collect_env.py)). + When they are inconsistent, you need to either install a different build of PyTorch (or build by yourself) + to match your local CUDA installation, or install a different version of CUDA to match PyTorch. + +2. Local CUDA/NVCC version shall support the SM architecture (a.k.a. compute capability) of your GPU. + The capability of your GPU can be found at [developer.nvidia.com/cuda-gpus](https://developer.nvidia.com/cuda-gpus). + The capability supported by NVCC is listed at [here](https://gist.github.com/ax3l/9489132). + If your NVCC version is too old, this can be workaround by setting environment variable + `TORCH_CUDA_ARCH_LIST` to a lower, supported capability. + +3. The combination of NVCC and GCC you use is incompatible. You need to change one of their versions. + See [here](https://gist.github.com/ax3l/9489132) for some valid combinations. + Notably, CUDA<=10.1.105 doesn't support GCC>7.3. + + The CUDA/GCC version used by PyTorch can be found by `print(torch.__config__.show())`. + +
+ + +
+ +"ImportError: cannot import name '_C'". + +
+Please build and install detectron2 following the instructions above. + +Or, if you are running code from detectron2's root directory, `cd` to a different one. +Otherwise you may not import the code that you installed. +
+ + +
+ +Any issue on windows. + +
+ +Detectron2 is continuously built on windows with [CircleCI](https://app.circleci.com/pipelines/github/facebookresearch/detectron2?branch=main). +However we do not provide official support for it. +PRs that improves code compatibility on windows are welcome. +
+ +
+ +ONNX conversion segfault after some "TraceWarning". + +
+The ONNX package is compiled with a too old compiler. + +Please build and install ONNX from its source code using a compiler +whose version is closer to what's used by PyTorch (available in `torch.__config__.show()`). +
+ + +
+ +"library not found for -lstdc++" on older version of MacOS + +
+ +See [this stackoverflow answer](https://stackoverflow.com/questions/56083725/macos-build-issues-lstdc-not-found-while-building-python-package). + +
+ + +### Installation inside specific environments: + +* __Colab__: see our [Colab Tutorial](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5) + which has step-by-step instructions. + +* __Docker__: The official [Dockerfile](docker) installs detectron2 with a few simple commands. diff --git a/detectron2/LICENSE b/detectron2/LICENSE new file mode 100755 index 0000000..cd1b070 --- /dev/null +++ b/detectron2/LICENSE @@ -0,0 +1,202 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, +and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by +the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all +other entities that control, are controlled by, or are under common +control with that entity. For the purposes of this definition, +"control" means (i) the power, direct or indirect, to cause the +direction or management of such entity, whether by contract or +otherwise, or (ii) ownership of fifty percent (50%) or more of the +outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity +exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, +including but not limited to software source code, documentation +source, and configuration files. + +"Object" form shall mean any form resulting from mechanical +transformation or translation of a Source form, including but +not limited to compiled object code, generated documentation, +and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or +Object form, made available under the License, as indicated by a +copyright notice that is included in or attached to the work +(an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object +form, that is based on (or derived from) the Work and for which the +editorial revisions, annotations, elaborations, or other modifications +represent, as a whole, an original work of authorship. For the purposes +of this License, Derivative Works shall not include works that remain +separable from, or merely link (or bind by name) to the interfaces of, +the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including +the original version of the Work and any modifications or additions +to that Work or Derivative Works thereof, that is intentionally +submitted to Licensor for inclusion in the Work by the copyright owner +or by an individual or Legal Entity authorized to submit on behalf of +the copyright owner. For the purposes of this definition, "submitted" +means any form of electronic, verbal, or written communication sent +to the Licensor or its representatives, including but not limited to +communication on electronic mailing lists, source code control systems, +and issue tracking systems that are managed by, or on behalf of, the +Licensor for the purpose of discussing and improving the Work, but +excluding communication that is conspicuously marked or otherwise +designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity +on behalf of whom a Contribution has been received by Licensor and +subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +copyright license to reproduce, prepare Derivative Works of, +publicly display, publicly perform, sublicense, and distribute the +Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of +this License, each Contributor hereby grants to You a perpetual, +worldwide, non-exclusive, no-charge, royalty-free, irrevocable +(except as stated in this section) patent license to make, have made, +use, offer to sell, sell, import, and otherwise transfer the Work, +where such license applies only to those patent claims licensable +by such Contributor that are necessarily infringed by their +Contribution(s) alone or by combination of their Contribution(s) +with the Work to which such Contribution(s) was submitted. If You +institute patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Work +or a Contribution incorporated within the Work constitutes direct +or contributory patent infringement, then any patent licenses +granted to You under this License for that Work shall terminate +as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the +Work or Derivative Works thereof in any medium, with or without +modifications, and in Source or Object form, provided that You +meet the following conditions: + +(a) You must give any other recipients of the Work or +Derivative Works a copy of this License; and + +(b) You must cause any modified files to carry prominent notices +stating that You changed the files; and + +(c) You must retain, in the Source form of any Derivative Works +that You distribute, all copyright, patent, trademark, and +attribution notices from the Source form of the Work, +excluding those notices that do not pertain to any part of +the Derivative Works; and + +(d) If the Work includes a "NOTICE" text file as part of its +distribution, then any Derivative Works that You distribute must +include a readable copy of the attribution notices contained +within such NOTICE file, excluding those notices that do not +pertain to any part of the Derivative Works, in at least one +of the following places: within a NOTICE text file distributed +as part of the Derivative Works; within the Source form or +documentation, if provided along with the Derivative Works; or, +within a display generated by the Derivative Works, if and +wherever such third-party notices normally appear. The contents +of the NOTICE file are for informational purposes only and +do not modify the License. You may add Your own attribution +notices within Derivative Works that You distribute, alongside +or as an addendum to the NOTICE text from the Work, provided +that such additional attribution notices cannot be construed +as modifying the License. + +You may add Your own copyright statement to Your modifications and +may provide additional or different license terms and conditions +for use, reproduction, or distribution of Your modifications, or +for any such Derivative Works as a whole, provided Your use, +reproduction, and distribution of the Work otherwise complies with +the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, +any Contribution intentionally submitted for inclusion in the Work +by You to the Licensor shall be under the terms and conditions of +this License, without any additional terms or conditions. +Notwithstanding the above, nothing herein shall supersede or modify +the terms of any separate license agreement you may have executed +with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade +names, trademarks, service marks, or product names of the Licensor, +except as required for reasonable and customary use in describing the +origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or +agreed to in writing, Licensor provides the Work (and each +Contributor provides its Contributions) on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +implied, including, without limitation, any warranties or conditions +of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A +PARTICULAR PURPOSE. You are solely responsible for determining the +appropriateness of using or redistributing the Work and assume any +risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, +whether in tort (including negligence), contract, or otherwise, +unless required by applicable law (such as deliberate and grossly +negligent acts) or agreed to in writing, shall any Contributor be +liable to You for damages, including any direct, indirect, special, +incidental, or consequential damages of any character arising as a +result of this License or out of the use or inability to use the +Work (including but not limited to damages for loss of goodwill, +work stoppage, computer failure or malfunction, or any and all +other commercial damages or losses), even if such Contributor +has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing +the Work or Derivative Works thereof, You may choose to offer, +and charge a fee for, acceptance of support, warranty, indemnity, +or other liability obligations and/or rights consistent with this +License. However, in accepting such obligations, You may act only +on Your own behalf and on Your sole responsibility, not on behalf +of any other Contributor, and only if You agree to indemnify, +defend, and hold each Contributor harmless for any liability +incurred by, or claims asserted against, such Contributor by reason +of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following +boilerplate notice, with the fields enclosed by brackets "[]" +replaced with your own identifying information. (Don't include +the brackets!) The text should be enclosed in the appropriate +comment syntax for the file format. We also recommend that a +file or class name and description of purpose be included on the +same "printed page" as the copyright notice for easier +identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/detectron2/MODEL_ZOO.md b/detectron2/MODEL_ZOO.md new file mode 100755 index 0000000..69db272 --- /dev/null +++ b/detectron2/MODEL_ZOO.md @@ -0,0 +1,1052 @@ +# Detectron2 Model Zoo and Baselines + +## Introduction + +This file documents a large collection of baselines trained +with detectron2 in Sep-Oct, 2019. +All numbers were obtained on [Big Basin](https://engineering.fb.com/data-center-engineering/introducing-big-basin-our-next-generation-ai-hardware/) +servers with 8 NVIDIA V100 GPUs & NVLink. The speed numbers are periodically updated with latest PyTorch/CUDA/cuDNN versions. +You can access these models from code using [detectron2.model_zoo](https://detectron2.readthedocs.io/modules/model_zoo.html) APIs. + +In addition to these official baseline models, you can find more models in [projects/](projects/). + +#### How to Read the Tables +* The "Name" column contains a link to the config file. Models can be reproduced using `tools/train_net.py` with the corresponding yaml config file, + or `tools/lazyconfig_train_net.py` for python config files. +* Training speed is averaged across the entire training. + We keep updating the speed with latest version of detectron2/pytorch/etc., + so they might be different from the `metrics` file. + Training speed for multi-machine jobs is not provided. +* Inference speed is measured by `tools/train_net.py --eval-only`, or [inference_on_dataset()](https://detectron2.readthedocs.io/modules/evaluation.html#detectron2.evaluation.inference_on_dataset), + with batch size 1 in detectron2 directly. + Measuring it with custom code may introduce other overhead. + Actual deployment in production should in general be faster than the given inference + speed due to more optimizations. +* The *model id* column is provided for ease of reference. + To check downloaded file integrity, any model on this page contains its md5 prefix in its file name. +* Training curves and other statistics can be found in `metrics` for each model. + +#### Common Settings for COCO Models +* All COCO models were trained on `train2017` and evaluated on `val2017`. +* The default settings are __not directly comparable__ with Detectron's standard settings. + For example, our default training data augmentation uses scale jittering in addition to horizontal flipping. + + To make fair comparisons with Detectron's settings, see + [Detectron1-Comparisons](configs/Detectron1-Comparisons/) for accuracy comparison, + and [benchmarks](https://detectron2.readthedocs.io/notes/benchmarks.html) + for speed comparison. +* For Faster/Mask R-CNN, we provide baselines based on __3 different backbone combinations__: + * __FPN__: Use a ResNet+FPN backbone with standard conv and FC heads for mask and box prediction, + respectively. It obtains the best + speed/accuracy tradeoff, but the other two are still useful for research. + * __C4__: Use a ResNet conv4 backbone with conv5 head. The original baseline in the Faster R-CNN paper. + * __DC5__ (Dilated-C5): Use a ResNet conv5 backbone with dilations in conv5, and standard conv and FC heads + for mask and box prediction, respectively. + This is used by the Deformable ConvNet paper. +* Most models are trained with the 3x schedule (~37 COCO epochs). + Although 1x models are heavily under-trained, we provide some ResNet-50 models with the 1x (~12 COCO epochs) + training schedule for comparison when doing quick research iteration. + +#### ImageNet Pretrained Models + +It's common to initialize from backbone models pre-trained on ImageNet classification tasks. The following backbone models are available: + +* [R-50.pkl](https://dl.fbaipublicfiles.com/detectron2/ImageNetPretrained/MSRA/R-50.pkl): converted copy of [MSRA's original ResNet-50](https://github.com/KaimingHe/deep-residual-networks) model. +* [R-101.pkl](https://dl.fbaipublicfiles.com/detectron2/ImageNetPretrained/MSRA/R-101.pkl): converted copy of [MSRA's original ResNet-101](https://github.com/KaimingHe/deep-residual-networks) model. +* [X-101-32x8d.pkl](https://dl.fbaipublicfiles.com/detectron2/ImageNetPretrained/FAIR/X-101-32x8d.pkl): ResNeXt-101-32x8d model trained with Caffe2 at FB. +* [R-50.pkl (torchvision)](https://dl.fbaipublicfiles.com/detectron2/ImageNetPretrained/torchvision/R-50.pkl): converted copy of [torchvision's ResNet-50](https://pytorch.org/docs/stable/torchvision/models.html#torchvision.models.resnet50) model. + More details can be found in [the conversion script](tools/convert-torchvision-to-d2.py). + +Note that the above models have __different__ format from those provided in Detectron: we do not fuse BatchNorm into an affine layer. +Pretrained models in Detectron's format can still be used. For example: +* [X-152-32x8d-IN5k.pkl](https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/25093814/X-152-32x8d-IN5k.pkl): + ResNeXt-152-32x8d model trained on ImageNet-5k with Caffe2 at FB (see ResNeXt paper for details on ImageNet-5k). +* [R-50-GN.pkl](https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/47261647/R-50-GN.pkl): + ResNet-50 with Group Normalization. +* [R-101-GN.pkl](https://dl.fbaipublicfiles.com/detectron/ImageNetPretrained/47592356/R-101-GN.pkl): + ResNet-101 with Group Normalization. + +These models require slightly different settings regarding normalization and architecture. See the model zoo configs for reference. + +#### License + +All models available for download through this document are licensed under the +[Creative Commons Attribution-ShareAlike 3.0 license](https://creativecommons.org/licenses/by-sa/3.0/). + +### COCO Object Detection Baselines + +#### Faster R-CNN: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
model iddownload
R50-C41x0.5510.1024.835.7137257644model | metrics
R50-DC51x0.3800.0685.037.3137847829model | metrics
R50-FPN1x0.2100.0383.037.9137257794model | metrics
R50-C43x0.5430.1044.838.4137849393model | metrics
R50-DC53x0.3780.0705.039.0137849425model | metrics
R50-FPN3x0.2090.0383.040.2137849458model | metrics
R101-C43x0.6190.1395.941.1138204752model | metrics
R101-DC53x0.4520.0866.140.6138204841model | metrics
R101-FPN3x0.2860.0514.142.0137851257model | metrics
X101-FPN3x0.6380.0986.743.0139173657model | metrics
+ +#### RetinaNet: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
model iddownload
R501x0.2050.0414.137.4190397773model | metrics
R503x0.2050.0414.138.7190397829model | metrics
R1013x0.2910.0545.240.4190397697model | metrics
+ + +#### RPN & Fast R-CNN: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
prop.
AR
model iddownload
RPN R50-C41x0.1300.0341.551.6137258005model | metrics
RPN R50-FPN1x0.1860.0322.758.0137258492model | metrics
Fast R-CNN R50-FPN1x0.1400.0292.637.8137635226model | metrics
+ +### COCO Instance Segmentation Baselines with Mask R-CNN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
R50-C41x0.5840.1105.236.832.2137259246model | metrics
R50-DC51x0.4710.0766.538.334.2137260150model | metrics
R50-FPN1x0.2610.0433.438.635.2137260431model | metrics
R50-C43x0.5750.1115.239.834.4137849525model | metrics
R50-DC53x0.4700.0766.540.035.9137849551model | metrics
R50-FPN3x0.2610.0433.441.037.2137849600model | metrics
R101-C43x0.6520.1456.342.636.7138363239model | metrics
R101-DC53x0.5450.0927.641.937.3138363294model | metrics
R101-FPN3x0.3400.0564.642.938.6138205316model | metrics
X101-FPN3x0.6900.1037.244.339.5139653917model | metrics
+ + + +#### New baselines using Large-Scale Jitter and Longer Training Schedule + +The following baselines of COCO Instance Segmentation with Mask R-CNN are generated +using a longer training schedule and large-scale jitter as described in Google's +[Simple Copy-Paste Data Augmentation](https://arxiv.org/pdf/2012.07177.pdf) paper. These +models are trained from scratch using random initialization. These baselines exceed the +previous Mask R-CNN baselines. + +In the following table, one epoch consists of training on 118000 COCO images. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nameepochstrain
time
(s/im)
inference
time
(s/im)
box
AP
mask
AP
model iddownload
R50-FPN1000.3760.06944.640.342047764model | metrics
R50-FPN2000.3760.06946.341.742047638model | metrics
R50-FPN4000.3760.06947.442.542019571model | metrics
R101-FPN1000.5180.07346.441.642025812model | metrics
R101-FPN2000.5180.07348.043.142131867model | metrics
R101-FPN4000.5180.07348.943.742073830model | metrics
regnetx_4gf_dds_FPN1000.4740.07146.041.342047771model | metrics
regnetx_4gf_dds_FPN2000.4740.07148.143.142132721model | metrics
regnetx_4gf_dds_FPN4000.4740.07148.643.542025447model | metrics
regnety_4gf_dds_FPN1000.4870.07346.141.642047784model | metrics
regnety_4gf_dds_FPN2000.4870.07247.843.042047642model | metrics
regnety_4gf_dds_FPN4000.4870.07248.243.342045954model | metrics
+ +### COCO Person Keypoint Detection Baselines with Keypoint R-CNN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
kp.
AP
model iddownload
R50-FPN1x0.3150.0725.053.664.0137261548model | metrics
R50-FPN3x0.3160.0665.055.465.5137849621model | metrics
R101-FPN3x0.3900.0766.156.466.1138363331model | metrics
X101-FPN3x0.7380.1218.757.366.0139686956model | metrics
+ +### COCO Panoptic Segmentation Baselines with Panoptic FPN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
PQmodel iddownload
R50-FPN1x0.3040.0534.837.634.739.4139514544model | metrics
R50-FPN3x0.3020.0534.840.036.541.5139514569model | metrics
R101-FPN3x0.3920.0666.042.438.543.0139514519model | metrics
+ + +### LVIS Instance Segmentation Baselines with Mask R-CNN + +Mask R-CNN baselines on the [LVIS dataset](https://lvisdataset.org), v0.5. +These baselines are described in Table 3(c) of the [LVIS paper](https://arxiv.org/abs/1908.03195). + +NOTE: the 1x schedule here has the same amount of __iterations__ as the COCO 1x baselines. +They are roughly 24 epochs of LVISv0.5 data. +The final results of these configs have large variance across different runs. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
R50-FPN1x0.2920.1077.123.624.4144219072model | metrics
R101-FPN1x0.3710.1147.825.625.9144219035model | metrics
X101-FPN1x0.7120.15110.226.727.1144219108model | metrics
+ + + +### Cityscapes & Pascal VOC Baselines + +Simple baselines for +* Mask R-CNN on Cityscapes instance segmentation (initialized from COCO pre-training, then trained on Cityscapes fine annotations only) +* Faster R-CNN on PASCAL VOC object detection (trained on VOC 2007 train+val + VOC 2012 train+val, tested on VOC 2007 using 11-point interpolated AP) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nametrain
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
box
AP50
mask
AP
model iddownload
R50-FPN, Cityscapes0.2400.0784.436.5142423278model | metrics
R50-C4, VOC0.5370.0814.851.980.3142202221model | metrics
+ + + +### Other Settings + +Ablations for Deformable Conv and Cascade R-CNN: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
Baseline R50-FPN1x0.2610.0433.438.635.2137260431model | metrics
Deformable Conv1x0.3420.0483.541.537.5138602867model | metrics
Cascade R-CNN1x0.3170.0524.042.136.4138602847model | metrics
Baseline R50-FPN3x0.2610.0433.441.037.2137849600model | metrics
Deformable Conv3x0.3490.0473.542.738.5144998336model | metrics
Cascade R-CNN3x0.3280.0534.044.338.5144998488model | metrics
+ + +Ablations for normalization methods, and a few models trained from scratch following [Rethinking ImageNet Pre-training](https://arxiv.org/abs/1811.08883). +(Note: The baseline uses `2fc` head while the others use [`4conv1fc` head](https://arxiv.org/abs/1803.08494)) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
Baseline R50-FPN3x0.2610.0433.441.037.2137849600model | metrics
GN3x0.3090.0605.642.638.6138602888model | metrics
SyncBN3x0.3450.0535.541.937.8169527823model | metrics
GN (from scratch)3x0.3380.0617.239.936.6138602908model | metrics
GN (from scratch)9xN/A0.0617.243.739.6183808979model | metrics
SyncBN (from scratch)9xN/A0.0557.243.639.3184226666model | metrics
+ + +A few very large models trained for a long time, for demo purposes. They are trained using multiple machines: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nameinference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
PQmodel iddownload
Panoptic FPN R1010.09811.447.441.346.1139797668model | metrics
Mask R-CNN X1520.23415.150.244.018131413model | metrics
above + test-time aug.51.945.9
diff --git a/detectron2/README.md b/detectron2/README.md new file mode 100755 index 0000000..75db3c5 --- /dev/null +++ b/detectron2/README.md @@ -0,0 +1,68 @@ + + + + Support Ukraine - Help Provide Humanitarian Aid to Ukraine. + + +Detectron2 is Facebook AI Research's next generation library +that provides state-of-the-art detection and segmentation algorithms. +It is the successor of +[Detectron](https://github.com/facebookresearch/Detectron/) +and [maskrcnn-benchmark](https://github.com/facebookresearch/maskrcnn-benchmark/). +It supports a number of computer vision research projects and production applications in Facebook. + +
+ +
+
+ +## Learn More about Detectron2 + +Explain Like I’m 5: Detectron2 | Using Machine Learning with Detectron2 +:-------------------------:|:-------------------------: +[![Explain Like I’m 5: Detectron2](https://img.youtube.com/vi/1oq1Ye7dFqc/0.jpg)](https://www.youtube.com/watch?v=1oq1Ye7dFqc) | [![Using Machine Learning with Detectron2](https://img.youtube.com/vi/eUSgtfK4ivk/0.jpg)](https://www.youtube.com/watch?v=eUSgtfK4ivk) + +## What's New +* Includes new capabilities such as panoptic segmentation, Densepose, Cascade R-CNN, rotated bounding boxes, PointRend, + DeepLab, ViTDet, MViTv2 etc. +* Used as a library to support building [research projects](projects/) on top of it. +* Models can be exported to TorchScript format or Caffe2 format for deployment. +* It [trains much faster](https://detectron2.readthedocs.io/notes/benchmarks.html). + +See our [blog post](https://ai.facebook.com/blog/-detectron2-a-pytorch-based-modular-object-detection-library-/) +to see more demos and learn about detectron2. + +## Installation + +See [installation instructions](https://detectron2.readthedocs.io/tutorials/install.html). + +## Getting Started + +See [Getting Started with Detectron2](https://detectron2.readthedocs.io/tutorials/getting_started.html), +and the [Colab Notebook](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5) +to learn about basic usage. + +Learn more at our [documentation](https://detectron2.readthedocs.org). +And see [projects/](projects/) for some projects that are built on top of detectron2. + +## Model Zoo and Baselines + +We provide a large set of baseline results and trained models available for download in the [Detectron2 Model Zoo](MODEL_ZOO.md). + +## License + +Detectron2 is released under the [Apache 2.0 license](LICENSE). + +## Citing Detectron2 + +If you use Detectron2 in your research or wish to refer to the baseline results published in the [Model Zoo](MODEL_ZOO.md), please use the following BibTeX entry. + +```BibTeX +@misc{wu2019detectron2, + author = {Yuxin Wu and Alexander Kirillov and Francisco Massa and + Wan-Yen Lo and Ross Girshick}, + title = {Detectron2}, + howpublished = {\url{https://github.com/facebookresearch/detectron2}}, + year = {2019} +} +``` diff --git a/detectron2/configs/Base-RCNN-C4.yaml b/detectron2/configs/Base-RCNN-C4.yaml new file mode 100755 index 0000000..fbf34a0 --- /dev/null +++ b/detectron2/configs/Base-RCNN-C4.yaml @@ -0,0 +1,18 @@ +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + RPN: + PRE_NMS_TOPK_TEST: 6000 + POST_NMS_TOPK_TEST: 1000 + ROI_HEADS: + NAME: "Res5ROIHeads" +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/detectron2/configs/Base-RCNN-DilatedC5.yaml b/detectron2/configs/Base-RCNN-DilatedC5.yaml new file mode 100755 index 0000000..c0d6d16 --- /dev/null +++ b/detectron2/configs/Base-RCNN-DilatedC5.yaml @@ -0,0 +1,31 @@ +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + RESNETS: + OUT_FEATURES: ["res5"] + RES5_DILATION: 2 + RPN: + IN_FEATURES: ["res5"] + PRE_NMS_TOPK_TEST: 6000 + POST_NMS_TOPK_TEST: 1000 + ROI_HEADS: + NAME: "StandardROIHeads" + IN_FEATURES: ["res5"] + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_FC: 2 + POOLER_RESOLUTION: 7 + ROI_MASK_HEAD: + NAME: "MaskRCNNConvUpsampleHead" + NUM_CONV: 4 + POOLER_RESOLUTION: 14 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/detectron2/configs/Base-RCNN-FPN.yaml b/detectron2/configs/Base-RCNN-FPN.yaml new file mode 100755 index 0000000..3e020f2 --- /dev/null +++ b/detectron2/configs/Base-RCNN-FPN.yaml @@ -0,0 +1,42 @@ +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map + ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) + RPN: + IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] + PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level + PRE_NMS_TOPK_TEST: 1000 # Per FPN level + # Detectron1 uses 2000 proposals per-batch, + # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) + # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. + POST_NMS_TOPK_TRAIN: 1000 + POST_NMS_TOPK_TEST: 1000 + ROI_HEADS: + NAME: "StandardROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_FC: 2 + POOLER_RESOLUTION: 7 + ROI_MASK_HEAD: + NAME: "MaskRCNNConvUpsampleHead" + NUM_CONV: 4 + POOLER_RESOLUTION: 14 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/detectron2/configs/Base-RetinaNet.yaml b/detectron2/configs/Base-RetinaNet.yaml new file mode 100755 index 0000000..8b45b98 --- /dev/null +++ b/detectron2/configs/Base-RetinaNet.yaml @@ -0,0 +1,25 @@ +MODEL: + META_ARCHITECTURE: "RetinaNet" + BACKBONE: + NAME: "build_retinanet_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: !!python/object/apply:eval ["[[x, x * 2**(1.0/3), x * 2**(2.0/3) ] for x in [32, 64, 128, 256, 512 ]]"] + FPN: + IN_FEATURES: ["res3", "res4", "res5"] + RETINANET: + IOU_THRESHOLDS: [0.4, 0.5] + IOU_LABELS: [0, -1, 1] + SMOOTH_L1_LOSS_BETA: 0.0 +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 # Note that RetinaNet uses a different default learning rate + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/detectron2/configs/COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..773ac10 --- /dev/null +++ b/detectron2/configs/COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,17 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + LOAD_PROPOSALS: True + RESNETS: + DEPTH: 50 + PROPOSAL_GENERATOR: + NAME: "PrecomputedProposals" +DATASETS: + TRAIN: ("coco_2017_train",) + PROPOSAL_FILES_TRAIN: ("detectron2://COCO-Detection/rpn_R_50_FPN_1x/137258492/coco_2017_train_box_proposals_21bc3a.pkl", ) + TEST: ("coco_2017_val",) + PROPOSAL_FILES_TEST: ("detectron2://COCO-Detection/rpn_R_50_FPN_1x/137258492/coco_2017_val_box_proposals_ee0dad.pkl", ) +DATALOADER: + # proposals are part of the dataset_dicts, and take a lot of RAM + NUM_WORKERS: 2 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_101_C4_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_101_C4_3x.yaml new file mode 100755 index 0000000..db142cd --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_101_C4_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: False + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_101_DC5_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_101_DC5_3x.yaml new file mode 100755 index 0000000..bceb6b3 --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_101_DC5_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-DilatedC5.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: False + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml new file mode 100755 index 0000000..57a098f --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_101_FPN_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: False + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_50_C4_1x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_C4_1x.yaml new file mode 100755 index 0000000..f961301 --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_C4_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_50_C4_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_C4_3x.yaml new file mode 100755 index 0000000..bc51bce --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_C4_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_50_DC5_1x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_DC5_1x.yaml new file mode 100755 index 0000000..0fe96f5 --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_DC5_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "../Base-RCNN-DilatedC5.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_50_DC5_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_DC5_3x.yaml new file mode 100755 index 0000000..33fadeb --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_DC5_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-DilatedC5.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..3262019 --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml new file mode 100755 index 0000000..4139518 --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml b/detectron2/configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml new file mode 100755 index 0000000..9c9b5ab --- /dev/null +++ b/detectron2/configs/COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x.yaml @@ -0,0 +1,13 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + MASK_ON: False + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/fcos_R_50_FPN_1x.py b/detectron2/configs/COCO-Detection/fcos_R_50_FPN_1x.py new file mode 100755 index 0000000..86f83c6 --- /dev/null +++ b/detectron2/configs/COCO-Detection/fcos_R_50_FPN_1x.py @@ -0,0 +1,11 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco import dataloader +from ..common.models.fcos import model +from ..common.train import train + +dataloader.train.mapper.use_instance_mask = False +optimizer.lr = 0.01 + +model.backbone.bottom_up.freeze_at = 2 +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" diff --git a/detectron2/configs/COCO-Detection/retinanet_R_101_FPN_3x.yaml b/detectron2/configs/COCO-Detection/retinanet_R_101_FPN_3x.yaml new file mode 100755 index 0000000..4abb1b9 --- /dev/null +++ b/detectron2/configs/COCO-Detection/retinanet_R_101_FPN_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "../Base-RetinaNet.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_1x.py b/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_1x.py new file mode 100755 index 0000000..43057a8 --- /dev/null +++ b/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_1x.py @@ -0,0 +1,11 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco import dataloader +from ..common.models.retinanet import model +from ..common.train import train + +dataloader.train.mapper.use_instance_mask = False +model.backbone.bottom_up.freeze_at = 2 +optimizer.lr = 0.01 + +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" diff --git a/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_1x.yaml b/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_1x.yaml new file mode 100755 index 0000000..4a24ce3 --- /dev/null +++ b/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_1x.yaml @@ -0,0 +1,5 @@ +_BASE_: "../Base-RetinaNet.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml b/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml new file mode 100755 index 0000000..3b5412d --- /dev/null +++ b/detectron2/configs/COCO-Detection/retinanet_R_50_FPN_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "../Base-RetinaNet.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Detection/rpn_R_50_C4_1x.yaml b/detectron2/configs/COCO-Detection/rpn_R_50_C4_1x.yaml new file mode 100755 index 0000000..e048211 --- /dev/null +++ b/detectron2/configs/COCO-Detection/rpn_R_50_C4_1x.yaml @@ -0,0 +1,10 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + META_ARCHITECTURE: "ProposalNetwork" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 + RPN: + PRE_NMS_TOPK_TEST: 12000 + POST_NMS_TOPK_TEST: 2000 diff --git a/detectron2/configs/COCO-Detection/rpn_R_50_FPN_1x.yaml b/detectron2/configs/COCO-Detection/rpn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..dc9c952 --- /dev/null +++ b/detectron2/configs/COCO-Detection/rpn_R_50_FPN_1x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "ProposalNetwork" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 + RPN: + POST_NMS_TOPK_TEST: 2000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x.yaml new file mode 100755 index 0000000..1a94cc4 --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: True + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x.yaml new file mode 100755 index 0000000..67b70cf --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-DilatedC5.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: True + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml new file mode 100755 index 0000000..1935a30 --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: True + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.py b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.py new file mode 100755 index 0000000..22016be --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.py @@ -0,0 +1,8 @@ +from ..common.train import train +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco import dataloader +from ..common.models.mask_rcnn_c4 import model + +model.backbone.freeze_at = 2 +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.yaml new file mode 100755 index 0000000..a9aeb4e --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml new file mode 100755 index 0000000..38ed867 --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x.yaml new file mode 100755 index 0000000..b13eefa --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "../Base-RCNN-DilatedC5.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml new file mode 100755 index 0000000..d401016 --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-DilatedC5.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.py b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.py new file mode 100755 index 0000000..40844dd --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.py @@ -0,0 +1,8 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco import dataloader +from ..common.models.mask_rcnn_fpn import model +from ..common.train import train + +model.backbone.bottom_up.freeze_at = 2 +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..d50fb86 --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x_giou.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x_giou.yaml new file mode 100755 index 0000000..bec680e --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x_giou.yaml @@ -0,0 +1,12 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + RPN: + BBOX_REG_LOSS_TYPE: "giou" + BBOX_REG_LOSS_WEIGHT: 2.0 + ROI_BOX_HEAD: + BBOX_REG_LOSS_TYPE: "giou" + BBOX_REG_LOSS_WEIGHT: 10.0 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml new file mode 100755 index 0000000..be7d06b --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml new file mode 100755 index 0000000..d14c63f --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml @@ -0,0 +1,13 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + MASK_ON: True + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_regnetx_4gf_dds_fpn_1x.py b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_regnetx_4gf_dds_fpn_1x.py new file mode 100755 index 0000000..d7bbdd7 --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_regnetx_4gf_dds_fpn_1x.py @@ -0,0 +1,34 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco import dataloader +from ..common.models.mask_rcnn_fpn import model +from ..common.train import train + +from detectron2.config import LazyCall as L +from detectron2.modeling.backbone import RegNet +from detectron2.modeling.backbone.regnet import SimpleStem, ResBottleneckBlock + + +# Replace default ResNet with RegNetX-4GF from the DDS paper. Config source: +# https://github.com/facebookresearch/pycls/blob/2c152a6e5d913e898cca4f0a758f41e6b976714d/configs/dds_baselines/regnetx/RegNetX-4.0GF_dds_8gpu.yaml#L4-L9 # noqa +model.backbone.bottom_up = L(RegNet)( + stem_class=SimpleStem, + stem_width=32, + block_class=ResBottleneckBlock, + depth=23, + w_a=38.65, + w_0=96, + w_m=2.43, + group_width=40, + freeze_at=2, + norm="FrozenBN", + out_features=["s1", "s2", "s3", "s4"], +) +model.pixel_std = [57.375, 57.120, 58.395] + +optimizer.weight_decay = 5e-5 +train.init_checkpoint = ( + "https://dl.fbaipublicfiles.com/pycls/dds_baselines/160906383/RegNetX-4.0GF_dds_8gpu.pyth" +) +# RegNets benefit from enabling cudnn benchmark mode +train.cudnn_benchmark = True diff --git a/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_regnety_4gf_dds_fpn_1x.py b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_regnety_4gf_dds_fpn_1x.py new file mode 100755 index 0000000..72c6b7a --- /dev/null +++ b/detectron2/configs/COCO-InstanceSegmentation/mask_rcnn_regnety_4gf_dds_fpn_1x.py @@ -0,0 +1,35 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco import dataloader +from ..common.models.mask_rcnn_fpn import model +from ..common.train import train + +from detectron2.config import LazyCall as L +from detectron2.modeling.backbone import RegNet +from detectron2.modeling.backbone.regnet import SimpleStem, ResBottleneckBlock + + +# Replace default ResNet with RegNetY-4GF from the DDS paper. Config source: +# https://github.com/facebookresearch/pycls/blob/2c152a6e5d913e898cca4f0a758f41e6b976714d/configs/dds_baselines/regnety/RegNetY-4.0GF_dds_8gpu.yaml#L4-L10 # noqa +model.backbone.bottom_up = L(RegNet)( + stem_class=SimpleStem, + stem_width=32, + block_class=ResBottleneckBlock, + depth=22, + w_a=31.41, + w_0=96, + w_m=2.24, + group_width=64, + se_ratio=0.25, + freeze_at=2, + norm="FrozenBN", + out_features=["s1", "s2", "s3", "s4"], +) +model.pixel_std = [57.375, 57.120, 58.395] + +optimizer.weight_decay = 5e-5 +train.init_checkpoint = ( + "https://dl.fbaipublicfiles.com/pycls/dds_baselines/160906838/RegNetY-4.0GF_dds_8gpu.pyth" +) +# RegNets benefit from enabling cudnn benchmark mode +train.cudnn_benchmark = True diff --git a/detectron2/configs/COCO-Keypoints/Base-Keypoint-RCNN-FPN.yaml b/detectron2/configs/COCO-Keypoints/Base-Keypoint-RCNN-FPN.yaml new file mode 100755 index 0000000..4e03944 --- /dev/null +++ b/detectron2/configs/COCO-Keypoints/Base-Keypoint-RCNN-FPN.yaml @@ -0,0 +1,15 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + KEYPOINT_ON: True + ROI_HEADS: + NUM_CLASSES: 1 + ROI_BOX_HEAD: + SMOOTH_L1_BETA: 0.5 # Keypoint AP degrades (though box AP improves) when using plain L1 loss + RPN: + # Detectron1 uses 2000 proposals per-batch, but this option is per-image in detectron2. + # 1000 proposals per-image is found to hurt box AP. + # Therefore we increase it to 1500 per-image. + POST_NMS_TOPK_TRAIN: 1500 +DATASETS: + TRAIN: ("keypoints_coco_2017_train",) + TEST: ("keypoints_coco_2017_val",) diff --git a/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x.yaml b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x.yaml new file mode 100755 index 0000000..9309535 --- /dev/null +++ b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-Keypoint-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.py b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.py new file mode 100755 index 0000000..1aad53b --- /dev/null +++ b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.py @@ -0,0 +1,8 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco_keypoint import dataloader +from ..common.models.keypoint_rcnn_fpn import model +from ..common.train import train + +model.backbone.bottom_up.freeze_at = 2 +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" diff --git a/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..7bf85cf --- /dev/null +++ b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,5 @@ +_BASE_: "Base-Keypoint-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml new file mode 100755 index 0000000..a07f243 --- /dev/null +++ b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-Keypoint-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x.yaml b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x.yaml new file mode 100755 index 0000000..d4bfa20 --- /dev/null +++ b/detectron2/configs/COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-Keypoint-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-PanopticSegmentation/Base-Panoptic-FPN.yaml b/detectron2/configs/COCO-PanopticSegmentation/Base-Panoptic-FPN.yaml new file mode 100755 index 0000000..f00d54b --- /dev/null +++ b/detectron2/configs/COCO-PanopticSegmentation/Base-Panoptic-FPN.yaml @@ -0,0 +1,11 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "PanopticFPN" + MASK_ON: True + SEM_SEG_HEAD: + LOSS_WEIGHT: 0.5 +DATASETS: + TRAIN: ("coco_2017_train_panoptic_separated",) + TEST: ("coco_2017_val_panoptic_separated",) +DATALOADER: + FILTER_EMPTY_ANNOTATIONS: False diff --git a/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_101_3x.yaml b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_101_3x.yaml new file mode 100755 index 0000000..0e01f6f --- /dev/null +++ b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_101_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-Panoptic-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.py b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.py new file mode 100755 index 0000000..40cf181 --- /dev/null +++ b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.py @@ -0,0 +1,8 @@ +from ..common.optim import SGD as optimizer +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.data.coco_panoptic_separated import dataloader +from ..common.models.panoptic_fpn import model +from ..common.train import train + +model.backbone.bottom_up.freeze_at = 2 +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" diff --git a/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml new file mode 100755 index 0000000..6afa2c1 --- /dev/null +++ b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml @@ -0,0 +1,5 @@ +_BASE_: "Base-Panoptic-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 diff --git a/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml new file mode 100755 index 0000000..b956b3f --- /dev/null +++ b/detectron2/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-Panoptic-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/Cityscapes/mask_rcnn_R_50_FPN.yaml b/detectron2/configs/Cityscapes/mask_rcnn_R_50_FPN.yaml new file mode 100755 index 0000000..1a7aaeb --- /dev/null +++ b/detectron2/configs/Cityscapes/mask_rcnn_R_50_FPN.yaml @@ -0,0 +1,27 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + # WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + # For better, more stable performance initialize from COCO + WEIGHTS: "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl" + MASK_ON: True + ROI_HEADS: + NUM_CLASSES: 8 +# This is similar to the setting used in Mask R-CNN paper, Appendix A +# But there are some differences, e.g., we did not initialize the output +# layer using the corresponding classes from COCO +INPUT: + MIN_SIZE_TRAIN: (800, 832, 864, 896, 928, 960, 992, 1024) + MIN_SIZE_TRAIN_SAMPLING: "choice" + MIN_SIZE_TEST: 1024 + MAX_SIZE_TRAIN: 2048 + MAX_SIZE_TEST: 2048 +DATASETS: + TRAIN: ("cityscapes_fine_instance_seg_train",) + TEST: ("cityscapes_fine_instance_seg_val",) +SOLVER: + BASE_LR: 0.01 + STEPS: (18000,) + MAX_ITER: 24000 + IMS_PER_BATCH: 8 +TEST: + EVAL_PERIOD: 8000 diff --git a/detectron2/configs/Detectron1-Comparisons/README.md b/detectron2/configs/Detectron1-Comparisons/README.md new file mode 100755 index 0000000..924fd00 --- /dev/null +++ b/detectron2/configs/Detectron1-Comparisons/README.md @@ -0,0 +1,84 @@ + +Detectron2 model zoo's experimental settings and a few implementation details are different from Detectron. + +The differences in implementation details are shared in +[Compatibility with Other Libraries](../../docs/notes/compatibility.md). + +The differences in model zoo's experimental settings include: +* Use scale augmentation during training. This improves AP with lower training cost. +* Use L1 loss instead of smooth L1 loss for simplicity. This sometimes improves box AP but may + affect other AP. +* Use `POOLER_SAMPLING_RATIO=0` instead of 2. This does not significantly affect AP. +* Use `ROIAlignV2`. This does not significantly affect AP. + +In this directory, we provide a few configs that __do not__ have the above changes. +They mimic Detectron's behavior as close as possible, +and provide a fair comparison of accuracy and speed against Detectron. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
kp.
AP
model iddownload
Faster R-CNN1x0.2190.0383.136.9137781054model | metrics
Keypoint R-CNN1x0.3130.0715.053.164.2137781195model | metrics
Mask R-CNN1x0.2730.0433.437.834.9137781281model | metrics
+ +## Comparisons: + +* Faster R-CNN: Detectron's AP is 36.7, similar to ours. +* Keypoint R-CNN: Detectron's AP is box 53.6, keypoint 64.2. Fixing a Detectron's + [bug](https://github.com/facebookresearch/Detectron/issues/459) lead to a drop in box AP, and can be + compensated back by some parameter tuning. +* Mask R-CNN: Detectron's AP is box 37.7, mask 33.9. We're 1 AP better in mask AP, due to more correct implementation. + See [this article](https://ppwwyyxx.com/blog/2021/Where-are-Pixels/) for details. + +For speed comparison, see [benchmarks](https://detectron2.readthedocs.io/notes/benchmarks.html). diff --git a/detectron2/configs/Detectron1-Comparisons/faster_rcnn_R_50_FPN_noaug_1x.yaml b/detectron2/configs/Detectron1-Comparisons/faster_rcnn_R_50_FPN_noaug_1x.yaml new file mode 100755 index 0000000..6ce77f1 --- /dev/null +++ b/detectron2/configs/Detectron1-Comparisons/faster_rcnn_R_50_FPN_noaug_1x.yaml @@ -0,0 +1,17 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 + # Detectron1 uses smooth L1 loss with some magic beta values. + # The defaults are changed to L1 loss in Detectron2. + RPN: + SMOOTH_L1_BETA: 0.1111 + ROI_BOX_HEAD: + SMOOTH_L1_BETA: 1.0 + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" +INPUT: + # no scale augmentation + MIN_SIZE_TRAIN: (800, ) diff --git a/detectron2/configs/Detectron1-Comparisons/keypoint_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/Detectron1-Comparisons/keypoint_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..aacf868 --- /dev/null +++ b/detectron2/configs/Detectron1-Comparisons/keypoint_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,27 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + KEYPOINT_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 1 + ROI_KEYPOINT_HEAD: + POOLER_RESOLUTION: 14 + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" + # Detectron1 uses smooth L1 loss with some magic beta values. + # The defaults are changed to L1 loss in Detectron2. + ROI_BOX_HEAD: + SMOOTH_L1_BETA: 1.0 + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" + RPN: + SMOOTH_L1_BETA: 0.1111 + # Detectron1 uses 2000 proposals per-batch, but this option is per-image in detectron2 + # 1000 proposals per-image is found to hurt box AP. + # Therefore we increase it to 1500 per-image. + POST_NMS_TOPK_TRAIN: 1500 +DATASETS: + TRAIN: ("keypoints_coco_2017_train",) + TEST: ("keypoints_coco_2017_val",) diff --git a/detectron2/configs/Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x.yaml b/detectron2/configs/Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x.yaml new file mode 100755 index 0000000..4ea86a8 --- /dev/null +++ b/detectron2/configs/Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x.yaml @@ -0,0 +1,20 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + # Detectron1 uses smooth L1 loss with some magic beta values. + # The defaults are changed to L1 loss in Detectron2. + RPN: + SMOOTH_L1_BETA: 0.1111 + ROI_BOX_HEAD: + SMOOTH_L1_BETA: 1.0 + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" + ROI_MASK_HEAD: + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" +INPUT: + # no scale augmentation + MIN_SIZE_TRAIN: (800, ) diff --git a/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml b/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml new file mode 100755 index 0000000..f0c3a1b --- /dev/null +++ b/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml @@ -0,0 +1,19 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: True + RESNETS: + DEPTH: 101 + ROI_HEADS: + NUM_CLASSES: 1230 + SCORE_THRESH_TEST: 0.0001 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DATASETS: + TRAIN: ("lvis_v0.5_train",) + TEST: ("lvis_v0.5_val",) +TEST: + DETECTIONS_PER_IMAGE: 300 # LVIS allows up to 300 +DATALOADER: + SAMPLER_TRAIN: "RepeatFactorTrainingSampler" + REPEAT_THRESHOLD: 0.001 diff --git a/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..64b4caa --- /dev/null +++ b/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,19 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 1230 + SCORE_THRESH_TEST: 0.0001 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DATASETS: + TRAIN: ("lvis_v0.5_train",) + TEST: ("lvis_v0.5_val",) +TEST: + DETECTIONS_PER_IMAGE: 300 # LVIS allows up to 300 +DATALOADER: + SAMPLER_TRAIN: "RepeatFactorTrainingSampler" + REPEAT_THRESHOLD: 0.001 diff --git a/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml b/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml new file mode 100755 index 0000000..c8b822c --- /dev/null +++ b/detectron2/configs/LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml @@ -0,0 +1,23 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + MASK_ON: True + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 + ROI_HEADS: + NUM_CLASSES: 1230 + SCORE_THRESH_TEST: 0.0001 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DATASETS: + TRAIN: ("lvis_v0.5_train",) + TEST: ("lvis_v0.5_val",) +TEST: + DETECTIONS_PER_IMAGE: 300 # LVIS allows up to 300 +DATALOADER: + SAMPLER_TRAIN: "RepeatFactorTrainingSampler" + REPEAT_THRESHOLD: 0.001 diff --git a/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml b/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml new file mode 100755 index 0000000..ca4dd97 --- /dev/null +++ b/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_101_FPN_1x.yaml @@ -0,0 +1,22 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: True + RESNETS: + DEPTH: 101 + ROI_HEADS: + NUM_CLASSES: 1203 + SCORE_THRESH_TEST: 0.0001 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DATASETS: + TRAIN: ("lvis_v1_train",) + TEST: ("lvis_v1_val",) +TEST: + DETECTIONS_PER_IMAGE: 300 # LVIS allows up to 300 +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 # 180000 * 16 / 100000 ~ 28.8 epochs +DATALOADER: + SAMPLER_TRAIN: "RepeatFactorTrainingSampler" + REPEAT_THRESHOLD: 0.001 diff --git a/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..f313295 --- /dev/null +++ b/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,22 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 1203 + SCORE_THRESH_TEST: 0.0001 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DATASETS: + TRAIN: ("lvis_v1_train",) + TEST: ("lvis_v1_val",) +TEST: + DETECTIONS_PER_IMAGE: 300 # LVIS allows up to 300 +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 # 180000 * 16 / 100000 ~ 28.8 epochs +DATALOADER: + SAMPLER_TRAIN: "RepeatFactorTrainingSampler" + REPEAT_THRESHOLD: 0.001 diff --git a/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml b/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml new file mode 100755 index 0000000..f6528f7 --- /dev/null +++ b/detectron2/configs/LVISv1-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x.yaml @@ -0,0 +1,26 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + MASK_ON: True + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 + ROI_HEADS: + NUM_CLASSES: 1203 + SCORE_THRESH_TEST: 0.0001 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DATASETS: + TRAIN: ("lvis_v1_train",) + TEST: ("lvis_v1_val",) +SOLVER: + STEPS: (120000, 160000) + MAX_ITER: 180000 # 180000 * 16 / 100000 ~ 28.8 epochs +TEST: + DETECTIONS_PER_IMAGE: 300 # LVIS allows up to 300 +DATALOADER: + SAMPLER_TRAIN: "RepeatFactorTrainingSampler" + REPEAT_THRESHOLD: 0.001 diff --git a/detectron2/configs/Misc/cascade_mask_rcnn_R_50_FPN_1x.yaml b/detectron2/configs/Misc/cascade_mask_rcnn_R_50_FPN_1x.yaml new file mode 100755 index 0000000..abb33b6 --- /dev/null +++ b/detectron2/configs/Misc/cascade_mask_rcnn_R_50_FPN_1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + NAME: CascadeROIHeads + ROI_BOX_HEAD: + CLS_AGNOSTIC_BBOX_REG: True + RPN: + POST_NMS_TOPK_TRAIN: 2000 diff --git a/detectron2/configs/Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml b/detectron2/configs/Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml new file mode 100755 index 0000000..e2201ad --- /dev/null +++ b/detectron2/configs/Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml @@ -0,0 +1,15 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + NAME: CascadeROIHeads + ROI_BOX_HEAD: + CLS_AGNOSTIC_BBOX_REG: True + RPN: + POST_NMS_TOPK_TRAIN: 2000 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/Misc/cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv.yaml b/detectron2/configs/Misc/cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv.yaml new file mode 100755 index 0000000..fc117f6 --- /dev/null +++ b/detectron2/configs/Misc/cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv.yaml @@ -0,0 +1,36 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + MASK_ON: True + WEIGHTS: "catalog://ImageNetPretrained/FAIR/X-152-32x8d-IN5k" + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 152 + DEFORM_ON_PER_STAGE: [False, True, True, True] + ROI_HEADS: + NAME: "CascadeROIHeads" + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_CONV: 4 + NUM_FC: 1 + NORM: "GN" + CLS_AGNOSTIC_BBOX_REG: True + ROI_MASK_HEAD: + NUM_CONV: 8 + NORM: "GN" + RPN: + POST_NMS_TOPK_TRAIN: 2000 +SOLVER: + IMS_PER_BATCH: 128 + STEPS: (35000, 45000) + MAX_ITER: 50000 + BASE_LR: 0.16 +INPUT: + MIN_SIZE_TRAIN: (640, 864) + MIN_SIZE_TRAIN_SAMPLING: "range" + MAX_SIZE_TRAIN: 1440 + CROP: + ENABLED: True +TEST: + EVAL_PERIOD: 2500 diff --git a/detectron2/configs/Misc/mask_rcnn_R_50_FPN_1x_cls_agnostic.yaml b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_1x_cls_agnostic.yaml new file mode 100755 index 0000000..4c3b767 --- /dev/null +++ b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_1x_cls_agnostic.yaml @@ -0,0 +1,10 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + ROI_BOX_HEAD: + CLS_AGNOSTIC_BBOX_REG: True + ROI_MASK_HEAD: + CLS_AGNOSTIC_MASK: True diff --git a/detectron2/configs/Misc/mask_rcnn_R_50_FPN_1x_dconv_c3-c5.yaml b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_1x_dconv_c3-c5.yaml new file mode 100755 index 0000000..04ff988 --- /dev/null +++ b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_1x_dconv_c3-c5.yaml @@ -0,0 +1,8 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + DEFORM_ON_PER_STAGE: [False, True, True, True] # on Res3,Res4,Res5 + DEFORM_MODULATED: False diff --git a/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_dconv_c3-c5.yaml b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_dconv_c3-c5.yaml new file mode 100755 index 0000000..68c0ca5 --- /dev/null +++ b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_dconv_c3-c5.yaml @@ -0,0 +1,11 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + DEFORM_ON_PER_STAGE: [False, True, True, True] # on Res3,Res4,Res5 + DEFORM_MODULATED: False +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_gn.yaml b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_gn.yaml new file mode 100755 index 0000000..74d274e --- /dev/null +++ b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_gn.yaml @@ -0,0 +1,21 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "catalog://ImageNetPretrained/FAIR/R-50-GN" + MASK_ON: True + RESNETS: + DEPTH: 50 + NORM: "GN" + STRIDE_IN_1X1: False + FPN: + NORM: "GN" + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_CONV: 4 + NUM_FC: 1 + NORM: "GN" + ROI_MASK_HEAD: + NORM: "GN" +SOLVER: + # 3x schedule + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_syncbn.yaml b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_syncbn.yaml new file mode 100755 index 0000000..11ebb07 --- /dev/null +++ b/detectron2/configs/Misc/mask_rcnn_R_50_FPN_3x_syncbn.yaml @@ -0,0 +1,24 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + STRIDE_IN_1X1: True + FPN: + NORM: "SyncBN" + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_CONV: 4 + NUM_FC: 1 + NORM: "SyncBN" + ROI_MASK_HEAD: + NORM: "SyncBN" +SOLVER: + # 3x schedule + STEPS: (210000, 250000) + MAX_ITER: 270000 +TEST: + PRECISE_BN: + ENABLED: True diff --git a/detectron2/configs/Misc/mmdet_mask_rcnn_R_50_FPN_1x.py b/detectron2/configs/Misc/mmdet_mask_rcnn_R_50_FPN_1x.py new file mode 100755 index 0000000..bdd49a4 --- /dev/null +++ b/detectron2/configs/Misc/mmdet_mask_rcnn_R_50_FPN_1x.py @@ -0,0 +1,152 @@ +# An example config to train a mmdetection model using detectron2. + +from ..common.data.coco import dataloader +from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier +from ..common.optim import SGD as optimizer +from ..common.train import train +from ..common.data.constants import constants + +from detectron2.modeling.mmdet_wrapper import MMDetDetector +from detectron2.config import LazyCall as L + +model = L(MMDetDetector)( + detector=dict( + type="MaskRCNN", + pretrained="torchvision://resnet50", + backbone=dict( + type="ResNet", + depth=50, + num_stages=4, + out_indices=(0, 1, 2, 3), + frozen_stages=1, + norm_cfg=dict(type="BN", requires_grad=True), + norm_eval=True, + style="pytorch", + ), + neck=dict(type="FPN", in_channels=[256, 512, 1024, 2048], out_channels=256, num_outs=5), + rpn_head=dict( + type="RPNHead", + in_channels=256, + feat_channels=256, + anchor_generator=dict( + type="AnchorGenerator", + scales=[8], + ratios=[0.5, 1.0, 2.0], + strides=[4, 8, 16, 32, 64], + ), + bbox_coder=dict( + type="DeltaXYWHBBoxCoder", + target_means=[0.0, 0.0, 0.0, 0.0], + target_stds=[1.0, 1.0, 1.0, 1.0], + ), + loss_cls=dict(type="CrossEntropyLoss", use_sigmoid=True, loss_weight=1.0), + loss_bbox=dict(type="L1Loss", loss_weight=1.0), + ), + roi_head=dict( + type="StandardRoIHead", + bbox_roi_extractor=dict( + type="SingleRoIExtractor", + roi_layer=dict(type="RoIAlign", output_size=7, sampling_ratio=0), + out_channels=256, + featmap_strides=[4, 8, 16, 32], + ), + bbox_head=dict( + type="Shared2FCBBoxHead", + in_channels=256, + fc_out_channels=1024, + roi_feat_size=7, + num_classes=80, + bbox_coder=dict( + type="DeltaXYWHBBoxCoder", + target_means=[0.0, 0.0, 0.0, 0.0], + target_stds=[0.1, 0.1, 0.2, 0.2], + ), + reg_class_agnostic=False, + loss_cls=dict(type="CrossEntropyLoss", use_sigmoid=False, loss_weight=1.0), + loss_bbox=dict(type="L1Loss", loss_weight=1.0), + ), + mask_roi_extractor=dict( + type="SingleRoIExtractor", + roi_layer=dict(type="RoIAlign", output_size=14, sampling_ratio=0), + out_channels=256, + featmap_strides=[4, 8, 16, 32], + ), + mask_head=dict( + type="FCNMaskHead", + num_convs=4, + in_channels=256, + conv_out_channels=256, + num_classes=80, + loss_mask=dict(type="CrossEntropyLoss", use_mask=True, loss_weight=1.0), + ), + ), + # model training and testing settings + train_cfg=dict( + rpn=dict( + assigner=dict( + type="MaxIoUAssigner", + pos_iou_thr=0.7, + neg_iou_thr=0.3, + min_pos_iou=0.3, + match_low_quality=True, + ignore_iof_thr=-1, + ), + sampler=dict( + type="RandomSampler", + num=256, + pos_fraction=0.5, + neg_pos_ub=-1, + add_gt_as_proposals=False, + ), + allowed_border=-1, + pos_weight=-1, + debug=False, + ), + rpn_proposal=dict( + nms_pre=2000, + max_per_img=1000, + nms=dict(type="nms", iou_threshold=0.7), + min_bbox_size=0, + ), + rcnn=dict( + assigner=dict( + type="MaxIoUAssigner", + pos_iou_thr=0.5, + neg_iou_thr=0.5, + min_pos_iou=0.5, + match_low_quality=True, + ignore_iof_thr=-1, + ), + sampler=dict( + type="RandomSampler", + num=512, + pos_fraction=0.25, + neg_pos_ub=-1, + add_gt_as_proposals=True, + ), + mask_size=28, + pos_weight=-1, + debug=False, + ), + ), + test_cfg=dict( + rpn=dict( + nms_pre=1000, + max_per_img=1000, + nms=dict(type="nms", iou_threshold=0.7), + min_bbox_size=0, + ), + rcnn=dict( + score_thr=0.05, + nms=dict(type="nms", iou_threshold=0.5), + max_per_img=100, + mask_thr_binary=0.5, + ), + ), + ), + pixel_mean=constants.imagenet_rgb256_mean, + pixel_std=constants.imagenet_rgb256_std, +) + +dataloader.train.mapper.image_format = "RGB" # torchvision pretrained model +train.init_checkpoint = None # pretrained model is loaded inside backbone diff --git a/detectron2/configs/Misc/panoptic_fpn_R_101_dconv_cascade_gn_3x.yaml b/detectron2/configs/Misc/panoptic_fpn_R_101_dconv_cascade_gn_3x.yaml new file mode 100755 index 0000000..34016ce --- /dev/null +++ b/detectron2/configs/Misc/panoptic_fpn_R_101_dconv_cascade_gn_3x.yaml @@ -0,0 +1,26 @@ +# A large PanopticFPN for demo purposes. +# Use GN on backbone to support semantic seg. +# Use Cascade + Deform Conv to improve localization. +_BASE_: "../COCO-PanopticSegmentation/Base-Panoptic-FPN.yaml" +MODEL: + WEIGHTS: "catalog://ImageNetPretrained/FAIR/R-101-GN" + RESNETS: + DEPTH: 101 + NORM: "GN" + DEFORM_ON_PER_STAGE: [False, True, True, True] + STRIDE_IN_1X1: False + FPN: + NORM: "GN" + ROI_HEADS: + NAME: CascadeROIHeads + ROI_BOX_HEAD: + CLS_AGNOSTIC_BBOX_REG: True + ROI_MASK_HEAD: + NORM: "GN" + RPN: + POST_NMS_TOPK_TRAIN: 2000 +SOLVER: + STEPS: (105000, 125000) + MAX_ITER: 135000 + IMS_PER_BATCH: 32 + BASE_LR: 0.04 diff --git a/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml b/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml new file mode 100755 index 0000000..f340028 --- /dev/null +++ b/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml @@ -0,0 +1,13 @@ +_BASE_: "mask_rcnn_R_50_FPN_3x_gn.yaml" +MODEL: + # Train from random initialization. + WEIGHTS: "" + # It makes sense to divide by STD when training from scratch + # But it seems to make no difference on the results and C2's models didn't do this. + # So we keep things consistent with C2. + # PIXEL_STD: [57.375, 57.12, 58.395] + MASK_ON: True + BACKBONE: + FREEZE_AT: 0 +# NOTE: Please refer to Rethinking ImageNet Pre-training https://arxiv.org/abs/1811.08883 +# to learn what you need for training from scratch. diff --git a/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_gn.yaml b/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_gn.yaml new file mode 100755 index 0000000..d90c9ff --- /dev/null +++ b/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_gn.yaml @@ -0,0 +1,19 @@ +_BASE_: "mask_rcnn_R_50_FPN_3x_gn.yaml" +MODEL: + PIXEL_STD: [57.375, 57.12, 58.395] + WEIGHTS: "" + MASK_ON: True + RESNETS: + STRIDE_IN_1X1: False + BACKBONE: + FREEZE_AT: 0 +SOLVER: + # 9x schedule + IMS_PER_BATCH: 64 # 4x the standard + STEPS: (187500, 197500) # last 60/4==15k and last 20/4==5k + MAX_ITER: 202500 # 90k * 9 / 4 + BASE_LR: 0.08 +TEST: + EVAL_PERIOD: 2500 +# NOTE: Please refer to Rethinking ImageNet Pre-training https://arxiv.org/abs/1811.08883 +# to learn what you need for training from scratch. diff --git a/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_syncbn.yaml b/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_syncbn.yaml new file mode 100755 index 0000000..60d4e42 --- /dev/null +++ b/detectron2/configs/Misc/scratch_mask_rcnn_R_50_FPN_9x_syncbn.yaml @@ -0,0 +1,19 @@ +_BASE_: "mask_rcnn_R_50_FPN_3x_syncbn.yaml" +MODEL: + PIXEL_STD: [57.375, 57.12, 58.395] + WEIGHTS: "" + MASK_ON: True + RESNETS: + STRIDE_IN_1X1: False + BACKBONE: + FREEZE_AT: 0 +SOLVER: + # 9x schedule + IMS_PER_BATCH: 64 # 4x the standard + STEPS: (187500, 197500) # last 60/4==15k and last 20/4==5k + MAX_ITER: 202500 # 90k * 9 / 4 + BASE_LR: 0.08 +TEST: + EVAL_PERIOD: 2500 +# NOTE: Please refer to Rethinking ImageNet Pre-training https://arxiv.org/abs/1811.08883 +# to learn what you need for training from scratch. diff --git a/detectron2/configs/Misc/semantic_R_50_FPN_1x.yaml b/detectron2/configs/Misc/semantic_R_50_FPN_1x.yaml new file mode 100755 index 0000000..ac256e1 --- /dev/null +++ b/detectron2/configs/Misc/semantic_R_50_FPN_1x.yaml @@ -0,0 +1,11 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "SemanticSegmentor" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +DATASETS: + TRAIN: ("coco_2017_train_panoptic_stuffonly",) + TEST: ("coco_2017_val_panoptic_stuffonly",) +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) diff --git a/detectron2/configs/Misc/torchvision_imagenet_R_50.py b/detectron2/configs/Misc/torchvision_imagenet_R_50.py new file mode 100755 index 0000000..0d75305 --- /dev/null +++ b/detectron2/configs/Misc/torchvision_imagenet_R_50.py @@ -0,0 +1,150 @@ +""" +An example config file to train a ImageNet classifier with detectron2. +Model and dataloader both come from torchvision. +This shows how to use detectron2 as a general engine for any new models and tasks. + +To run, use the following command: + +python tools/lazyconfig_train_net.py --config-file configs/Misc/torchvision_imagenet_R_50.py \ + --num-gpus 8 dataloader.train.dataset.root=/path/to/imagenet/ + +""" + + +import torch +from torch import nn +from torch.nn import functional as F +from omegaconf import OmegaConf +import torchvision +from torchvision.transforms import transforms as T +from torchvision.models.resnet import ResNet, Bottleneck +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2.solver import WarmupParamScheduler +from detectron2.solver.build import get_default_optimizer_params +from detectron2.config import LazyCall as L +from detectron2.model_zoo import get_config +from detectron2.data.samplers import TrainingSampler, InferenceSampler +from detectron2.evaluation import DatasetEvaluator +from detectron2.utils import comm + + +""" +Note: Here we put reusable code (models, evaluation, data) together with configs just as a +proof-of-concept, to easily demonstrate what's needed to train a ImageNet classifier in detectron2. +Writing code in configs offers extreme flexibility but is often not a good engineering practice. +In practice, you might want to put code in your project and import them instead. +""" + + +def build_data_loader(dataset, batch_size, num_workers, training=True): + return torch.utils.data.DataLoader( + dataset, + sampler=(TrainingSampler if training else InferenceSampler)(len(dataset)), + batch_size=batch_size, + num_workers=num_workers, + pin_memory=True, + ) + + +class ClassificationNet(nn.Module): + def __init__(self, model: nn.Module): + super().__init__() + self.model = model + + @property + def device(self): + return list(self.model.parameters())[0].device + + def forward(self, inputs): + image, label = inputs + pred = self.model(image.to(self.device)) + if self.training: + label = label.to(self.device) + return F.cross_entropy(pred, label) + else: + return pred + + +class ClassificationAcc(DatasetEvaluator): + def reset(self): + self.corr = self.total = 0 + + def process(self, inputs, outputs): + image, label = inputs + self.corr += (outputs.argmax(dim=1).cpu() == label.cpu()).sum().item() + self.total += len(label) + + def evaluate(self): + all_corr_total = comm.all_gather([self.corr, self.total]) + corr = sum(x[0] for x in all_corr_total) + total = sum(x[1] for x in all_corr_total) + return {"accuracy": corr / total} + + +# --- End of code that could be in a project and be imported + + +dataloader = OmegaConf.create() +dataloader.train = L(build_data_loader)( + dataset=L(torchvision.datasets.ImageNet)( + root="/path/to/imagenet", + split="train", + transform=L(T.Compose)( + transforms=[ + L(T.RandomResizedCrop)(size=224), + L(T.RandomHorizontalFlip)(), + T.ToTensor(), + L(T.Normalize)(mean=(0.485, 0.456, 0.406), std=(0.229, 0.224, 0.225)), + ] + ), + ), + batch_size=256 // 8, + num_workers=4, + training=True, +) + +dataloader.test = L(build_data_loader)( + dataset=L(torchvision.datasets.ImageNet)( + root="${...train.dataset.root}", + split="val", + transform=L(T.Compose)( + transforms=[ + L(T.Resize)(size=256), + L(T.CenterCrop)(size=224), + T.ToTensor(), + L(T.Normalize)(mean=(0.485, 0.456, 0.406), std=(0.229, 0.224, 0.225)), + ] + ), + ), + batch_size=256 // 8, + num_workers=4, + training=False, +) + +dataloader.evaluator = L(ClassificationAcc)() + +model = L(ClassificationNet)( + model=(ResNet)(block=Bottleneck, layers=[3, 4, 6, 3], zero_init_residual=True) +) + + +optimizer = L(torch.optim.SGD)( + params=L(get_default_optimizer_params)(), + lr=0.1, + momentum=0.9, + weight_decay=1e-4, +) + +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01, 0.001], milestones=[30, 60, 90, 100] + ), + warmup_length=1 / 100, + warmup_factor=0.1, +) + + +train = get_config("common/train.py").train +train.init_checkpoint = None +train.max_iter = 100 * 1281167 // 256 diff --git a/detectron2/configs/PascalVOC-Detection/faster_rcnn_R_50_C4.yaml b/detectron2/configs/PascalVOC-Detection/faster_rcnn_R_50_C4.yaml new file mode 100755 index 0000000..ea2a6ba --- /dev/null +++ b/detectron2/configs/PascalVOC-Detection/faster_rcnn_R_50_C4.yaml @@ -0,0 +1,18 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 20 +INPUT: + MIN_SIZE_TRAIN: (480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800) + MIN_SIZE_TEST: 800 +DATASETS: + TRAIN: ('voc_2007_trainval', 'voc_2012_trainval') + TEST: ('voc_2007_test',) +SOLVER: + STEPS: (12000, 16000) + MAX_ITER: 18000 # 17.4 epochs + WARMUP_ITERS: 100 diff --git a/detectron2/configs/PascalVOC-Detection/faster_rcnn_R_50_FPN.yaml b/detectron2/configs/PascalVOC-Detection/faster_rcnn_R_50_FPN.yaml new file mode 100755 index 0000000..e554cab --- /dev/null +++ b/detectron2/configs/PascalVOC-Detection/faster_rcnn_R_50_FPN.yaml @@ -0,0 +1,18 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 20 +INPUT: + MIN_SIZE_TRAIN: (480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800) + MIN_SIZE_TEST: 800 +DATASETS: + TRAIN: ('voc_2007_trainval', 'voc_2012_trainval') + TEST: ('voc_2007_test',) +SOLVER: + STEPS: (12000, 16000) + MAX_ITER: 18000 # 17.4 epochs + WARMUP_ITERS: 100 diff --git a/detectron2/configs/common/README.md b/detectron2/configs/common/README.md new file mode 100755 index 0000000..912cc29 --- /dev/null +++ b/detectron2/configs/common/README.md @@ -0,0 +1,6 @@ +This directory provides definitions for a few common models, dataloaders, scheduler, +and optimizers that are often used in training. +The definition of these objects are provided in the form of lazy instantiation: +their arguments can be edited by users before constructing the objects. + +They can be imported, or loaded by `model_zoo.get_config` API in users' own configs. diff --git a/detectron2/configs/common/coco_schedule.py b/detectron2/configs/common/coco_schedule.py new file mode 100755 index 0000000..355e66a --- /dev/null +++ b/detectron2/configs/common/coco_schedule.py @@ -0,0 +1,47 @@ +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler + + +def default_X_scheduler(num_X): + """ + Returns the config for a default multi-step LR scheduler such as "1x", "3x", + commonly referred to in papers, where every 1x has the total length of 1440k + training images (~12 COCO epochs). LR is decayed twice at the end of training + following the strategy defined in "Rethinking ImageNet Pretraining", Sec 4. + + Args: + num_X: a positive real number + + Returns: + DictConfig: configs that define the multiplier for LR during training + """ + # total number of iterations assuming 16 batch size, using 1440000/16=90000 + total_steps_16bs = num_X * 90000 + + if num_X <= 2: + scheduler = L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + # note that scheduler is scale-invariant. This is equivalent to + # milestones=[6, 8, 9] + milestones=[60000, 80000, 90000], + ) + else: + scheduler = L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[total_steps_16bs - 60000, total_steps_16bs - 20000, total_steps_16bs], + ) + return L(WarmupParamScheduler)( + scheduler=scheduler, + warmup_length=1000 / total_steps_16bs, + warmup_method="linear", + warmup_factor=0.001, + ) + + +lr_multiplier_1x = default_X_scheduler(1) +lr_multiplier_2x = default_X_scheduler(2) +lr_multiplier_3x = default_X_scheduler(3) +lr_multiplier_6x = default_X_scheduler(6) +lr_multiplier_9x = default_X_scheduler(9) diff --git a/detectron2/configs/common/data/coco.py b/detectron2/configs/common/data/coco.py new file mode 100755 index 0000000..703c438 --- /dev/null +++ b/detectron2/configs/common/data/coco.py @@ -0,0 +1,48 @@ +from omegaconf import OmegaConf + +import detectron2.data.transforms as T +from detectron2.config import LazyCall as L +from detectron2.data import ( + DatasetMapper, + build_detection_test_loader, + build_detection_train_loader, + get_detection_dataset_dicts, +) +from detectron2.evaluation import COCOEvaluator + +dataloader = OmegaConf.create() + +dataloader.train = L(build_detection_train_loader)( + dataset=L(get_detection_dataset_dicts)(names="coco_2017_train"), + mapper=L(DatasetMapper)( + is_train=True, + augmentations=[ + L(T.ResizeShortestEdge)( + short_edge_length=(640, 672, 704, 736, 768, 800), + sample_style="choice", + max_size=1333, + ), + L(T.RandomFlip)(horizontal=True), + ], + image_format="BGR", + use_instance_mask=True, + ), + total_batch_size=16, + num_workers=4, +) + +dataloader.test = L(build_detection_test_loader)( + dataset=L(get_detection_dataset_dicts)(names="coco_2017_val", filter_empty=False), + mapper=L(DatasetMapper)( + is_train=False, + augmentations=[ + L(T.ResizeShortestEdge)(short_edge_length=800, max_size=1333), + ], + image_format="${...train.mapper.image_format}", + ), + num_workers=4, +) + +dataloader.evaluator = L(COCOEvaluator)( + dataset_name="${..test.dataset.names}", +) diff --git a/detectron2/configs/common/data/coco_keypoint.py b/detectron2/configs/common/data/coco_keypoint.py new file mode 100755 index 0000000..b4ceb06 --- /dev/null +++ b/detectron2/configs/common/data/coco_keypoint.py @@ -0,0 +1,13 @@ +from detectron2.data.detection_utils import create_keypoint_hflip_indices + +from .coco import dataloader + +dataloader.train.dataset.min_keypoints = 1 +dataloader.train.dataset.names = "keypoints_coco_2017_train" +dataloader.test.dataset.names = "keypoints_coco_2017_val" + +dataloader.train.mapper.update( + use_instance_mask=False, + use_keypoint=True, + keypoint_hflip_indices=create_keypoint_hflip_indices(dataloader.train.dataset.names), +) diff --git a/detectron2/configs/common/data/coco_panoptic_separated.py b/detectron2/configs/common/data/coco_panoptic_separated.py new file mode 100755 index 0000000..5ccbc77 --- /dev/null +++ b/detectron2/configs/common/data/coco_panoptic_separated.py @@ -0,0 +1,26 @@ +from detectron2.config import LazyCall as L +from detectron2.evaluation import ( + COCOEvaluator, + COCOPanopticEvaluator, + DatasetEvaluators, + SemSegEvaluator, +) + +from .coco import dataloader + +dataloader.train.dataset.names = "coco_2017_train_panoptic_separated" +dataloader.train.dataset.filter_empty = False +dataloader.test.dataset.names = "coco_2017_val_panoptic_separated" + + +dataloader.evaluator = [ + L(COCOEvaluator)( + dataset_name="${...test.dataset.names}", + ), + L(SemSegEvaluator)( + dataset_name="${...test.dataset.names}", + ), + L(COCOPanopticEvaluator)( + dataset_name="${...test.dataset.names}", + ), +] diff --git a/detectron2/configs/common/data/constants.py b/detectron2/configs/common/data/constants.py new file mode 100755 index 0000000..be11cb5 --- /dev/null +++ b/detectron2/configs/common/data/constants.py @@ -0,0 +1,9 @@ +constants = dict( + imagenet_rgb256_mean=[123.675, 116.28, 103.53], + imagenet_rgb256_std=[58.395, 57.12, 57.375], + imagenet_bgr256_mean=[103.530, 116.280, 123.675], + # When using pre-trained models in Detectron1 or any MSRA models, + # std has been absorbed into its conv1 weights, so the std needs to be set 1. + # Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) + imagenet_bgr256_std=[1.0, 1.0, 1.0], +) diff --git a/detectron2/configs/common/models/cascade_rcnn.py b/detectron2/configs/common/models/cascade_rcnn.py new file mode 100755 index 0000000..c7372a8 --- /dev/null +++ b/detectron2/configs/common/models/cascade_rcnn.py @@ -0,0 +1,36 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import FastRCNNOutputLayers, FastRCNNConvFCHead, CascadeROIHeads + +from .mask_rcnn_fpn import model + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] + +model.roi_heads.update( + _target_=CascadeROIHeads, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[], + fc_dims=[1024, 1024], + ) + for k in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + test_score_thresh=0.05, + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + cls_agnostic_bbox_reg=True, + num_classes="${...num_classes}", + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) diff --git a/detectron2/configs/common/models/fcos.py b/detectron2/configs/common/models/fcos.py new file mode 100755 index 0000000..1c75202 --- /dev/null +++ b/detectron2/configs/common/models/fcos.py @@ -0,0 +1,23 @@ +from detectron2.modeling.meta_arch.fcos import FCOS, FCOSHead + +from .retinanet import model + +model._target_ = FCOS + +del model.anchor_generator +del model.box2box_transform +del model.anchor_matcher +del model.input_format + +# Use P5 instead of C5 to compute P6/P7 +# (Sec 2.2 of https://arxiv.org/abs/2006.09214) +model.backbone.top_block.in_feature = "p5" +model.backbone.top_block.in_channels = 256 + +# New score threshold determined based on sqrt(cls_score * centerness) +model.test_score_thresh = 0.2 +model.test_nms_thresh = 0.6 + +model.head._target_ = FCOSHead +del model.head.num_anchors +model.head.norm = "GN" diff --git a/detectron2/configs/common/models/keypoint_rcnn_fpn.py b/detectron2/configs/common/models/keypoint_rcnn_fpn.py new file mode 100755 index 0000000..56b3994 --- /dev/null +++ b/detectron2/configs/common/models/keypoint_rcnn_fpn.py @@ -0,0 +1,33 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.poolers import ROIPooler +from detectron2.modeling.roi_heads import KRCNNConvDeconvUpsampleHead + +from .mask_rcnn_fpn import model + +[model.roi_heads.pop(x) for x in ["mask_in_features", "mask_pooler", "mask_head"]] + +model.roi_heads.update( + num_classes=1, + keypoint_in_features=["p2", "p3", "p4", "p5"], + keypoint_pooler=L(ROIPooler)( + output_size=14, + scales=(1.0 / 4, 1.0 / 8, 1.0 / 16, 1.0 / 32), + sampling_ratio=0, + pooler_type="ROIAlignV2", + ), + keypoint_head=L(KRCNNConvDeconvUpsampleHead)( + input_shape=ShapeSpec(channels=256, width=14, height=14), + num_keypoints=17, + conv_dims=[512] * 8, + loss_normalizer="visible", + ), +) + +# Detectron1 uses 2000 proposals per-batch, but this option is per-image in detectron2. +# 1000 proposals per-image is found to hurt box AP. +# Therefore we increase it to 1500 per-image. +model.proposal_generator.post_nms_topk = (1500, 1000) + +# Keypoint AP degrades (though box AP improves) when using plain L1 loss +model.roi_heads.box_predictor.smooth_l1_beta = 0.5 diff --git a/detectron2/configs/common/models/mask_rcnn_c4.py b/detectron2/configs/common/models/mask_rcnn_c4.py new file mode 100755 index 0000000..902d5b1 --- /dev/null +++ b/detectron2/configs/common/models/mask_rcnn_c4.py @@ -0,0 +1,90 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.meta_arch import GeneralizedRCNN +from detectron2.modeling.anchor_generator import DefaultAnchorGenerator +from detectron2.modeling.backbone import BasicStem, BottleneckBlock, ResNet +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.poolers import ROIPooler +from detectron2.modeling.proposal_generator import RPN, StandardRPNHead +from detectron2.modeling.roi_heads import ( + FastRCNNOutputLayers, + MaskRCNNConvUpsampleHead, + Res5ROIHeads, +) + +from ..data.constants import constants + +model = L(GeneralizedRCNN)( + backbone=L(ResNet)( + stem=L(BasicStem)(in_channels=3, out_channels=64, norm="FrozenBN"), + stages=L(ResNet.make_default_stages)( + depth=50, + stride_in_1x1=True, + norm="FrozenBN", + ), + out_features=["res4"], + ), + proposal_generator=L(RPN)( + in_features=["res4"], + head=L(StandardRPNHead)(in_channels=1024, num_anchors=15), + anchor_generator=L(DefaultAnchorGenerator)( + sizes=[[32, 64, 128, 256, 512]], + aspect_ratios=[0.5, 1.0, 2.0], + strides=[16], + offset=0.0, + ), + anchor_matcher=L(Matcher)( + thresholds=[0.3, 0.7], labels=[0, -1, 1], allow_low_quality_matches=True + ), + box2box_transform=L(Box2BoxTransform)(weights=[1.0, 1.0, 1.0, 1.0]), + batch_size_per_image=256, + positive_fraction=0.5, + pre_nms_topk=(12000, 6000), + post_nms_topk=(2000, 1000), + nms_thresh=0.7, + ), + roi_heads=L(Res5ROIHeads)( + num_classes=80, + batch_size_per_image=512, + positive_fraction=0.25, + proposal_matcher=L(Matcher)( + thresholds=[0.5], labels=[0, 1], allow_low_quality_matches=False + ), + in_features=["res4"], + pooler=L(ROIPooler)( + output_size=14, + scales=(1.0 / 16,), + sampling_ratio=0, + pooler_type="ROIAlignV2", + ), + res5=L(ResNet.make_stage)( + block_class=BottleneckBlock, + num_blocks=3, + stride_per_block=[2, 1, 1], + in_channels=1024, + bottleneck_channels=512, + out_channels=2048, + norm="FrozenBN", + stride_in_1x1=True, + ), + box_predictor=L(FastRCNNOutputLayers)( + input_shape=L(ShapeSpec)(channels="${...res5.out_channels}", height=1, width=1), + test_score_thresh=0.05, + box2box_transform=L(Box2BoxTransform)(weights=(10, 10, 5, 5)), + num_classes="${..num_classes}", + ), + mask_head=L(MaskRCNNConvUpsampleHead)( + input_shape=L(ShapeSpec)( + channels="${...res5.out_channels}", + width="${...pooler.output_size}", + height="${...pooler.output_size}", + ), + num_classes="${..num_classes}", + conv_dims=[256], + ), + ), + pixel_mean=constants.imagenet_bgr256_mean, + pixel_std=constants.imagenet_bgr256_std, + input_format="BGR", +) diff --git a/detectron2/configs/common/models/mask_rcnn_fpn.py b/detectron2/configs/common/models/mask_rcnn_fpn.py new file mode 100755 index 0000000..5e5c501 --- /dev/null +++ b/detectron2/configs/common/models/mask_rcnn_fpn.py @@ -0,0 +1,95 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.meta_arch import GeneralizedRCNN +from detectron2.modeling.anchor_generator import DefaultAnchorGenerator +from detectron2.modeling.backbone.fpn import LastLevelMaxPool +from detectron2.modeling.backbone import BasicStem, FPN, ResNet +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.poolers import ROIPooler +from detectron2.modeling.proposal_generator import RPN, StandardRPNHead +from detectron2.modeling.roi_heads import ( + StandardROIHeads, + FastRCNNOutputLayers, + MaskRCNNConvUpsampleHead, + FastRCNNConvFCHead, +) + +from ..data.constants import constants + +model = L(GeneralizedRCNN)( + backbone=L(FPN)( + bottom_up=L(ResNet)( + stem=L(BasicStem)(in_channels=3, out_channels=64, norm="FrozenBN"), + stages=L(ResNet.make_default_stages)( + depth=50, + stride_in_1x1=True, + norm="FrozenBN", + ), + out_features=["res2", "res3", "res4", "res5"], + ), + in_features="${.bottom_up.out_features}", + out_channels=256, + top_block=L(LastLevelMaxPool)(), + ), + proposal_generator=L(RPN)( + in_features=["p2", "p3", "p4", "p5", "p6"], + head=L(StandardRPNHead)(in_channels=256, num_anchors=3), + anchor_generator=L(DefaultAnchorGenerator)( + sizes=[[32], [64], [128], [256], [512]], + aspect_ratios=[0.5, 1.0, 2.0], + strides=[4, 8, 16, 32, 64], + offset=0.0, + ), + anchor_matcher=L(Matcher)( + thresholds=[0.3, 0.7], labels=[0, -1, 1], allow_low_quality_matches=True + ), + box2box_transform=L(Box2BoxTransform)(weights=[1.0, 1.0, 1.0, 1.0]), + batch_size_per_image=256, + positive_fraction=0.5, + pre_nms_topk=(2000, 1000), + post_nms_topk=(1000, 1000), + nms_thresh=0.7, + ), + roi_heads=L(StandardROIHeads)( + num_classes=80, + batch_size_per_image=512, + positive_fraction=0.25, + proposal_matcher=L(Matcher)( + thresholds=[0.5], labels=[0, 1], allow_low_quality_matches=False + ), + box_in_features=["p2", "p3", "p4", "p5"], + box_pooler=L(ROIPooler)( + output_size=7, + scales=(1.0 / 4, 1.0 / 8, 1.0 / 16, 1.0 / 32), + sampling_ratio=0, + pooler_type="ROIAlignV2", + ), + box_head=L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[], + fc_dims=[1024, 1024], + ), + box_predictor=L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + test_score_thresh=0.05, + box2box_transform=L(Box2BoxTransform)(weights=(10, 10, 5, 5)), + num_classes="${..num_classes}", + ), + mask_in_features=["p2", "p3", "p4", "p5"], + mask_pooler=L(ROIPooler)( + output_size=14, + scales=(1.0 / 4, 1.0 / 8, 1.0 / 16, 1.0 / 32), + sampling_ratio=0, + pooler_type="ROIAlignV2", + ), + mask_head=L(MaskRCNNConvUpsampleHead)( + input_shape=ShapeSpec(channels=256, width=14, height=14), + num_classes="${..num_classes}", + conv_dims=[256, 256, 256, 256, 256], + ), + ), + pixel_mean=constants.imagenet_bgr256_mean, + pixel_std=constants.imagenet_bgr256_std, + input_format="BGR", +) diff --git a/detectron2/configs/common/models/mask_rcnn_vitdet.py b/detectron2/configs/common/models/mask_rcnn_vitdet.py new file mode 100755 index 0000000..d6f5244 --- /dev/null +++ b/detectron2/configs/common/models/mask_rcnn_vitdet.py @@ -0,0 +1,59 @@ +from functools import partial +import torch.nn as nn +from detectron2.config import LazyCall as L +from detectron2.modeling import ViT, SimpleFeaturePyramid +from detectron2.modeling.backbone.fpn import LastLevelMaxPool + +from .mask_rcnn_fpn import model +from ..data.constants import constants + +model.pixel_mean = constants.imagenet_rgb256_mean +model.pixel_std = constants.imagenet_rgb256_std +model.input_format = "RGB" + +# Base +embed_dim, depth, num_heads, dp = 768, 12, 12, 0.1 +# Creates Simple Feature Pyramid from ViT backbone +model.backbone = L(SimpleFeaturePyramid)( + net=L(ViT)( # Single-scale ViT backbone + img_size=1024, + patch_size=16, + embed_dim=embed_dim, + depth=depth, + num_heads=num_heads, + drop_path_rate=dp, + window_size=14, + mlp_ratio=4, + qkv_bias=True, + norm_layer=partial(nn.LayerNorm, eps=1e-6), + window_block_indexes=[ + # 2, 5, 8 11 for global attention + 0, + 1, + 3, + 4, + 6, + 7, + 9, + 10, + ], + residual_block_indexes=[], + use_rel_pos=True, + out_feature="last_feat", + ), + in_feature="${.net.out_feature}", + out_channels=256, + scale_factors=(4.0, 2.0, 1.0, 0.5), + top_block=L(LastLevelMaxPool)(), + norm="LN", + square_pad=1024, +) + +model.roi_heads.box_head.conv_norm = model.roi_heads.mask_head.conv_norm = "LN" + +# 2conv in RPN: +model.proposal_generator.head.conv_dims = [-1, -1] + +# 4conv1fc box head +model.roi_heads.box_head.conv_dims = [256, 256, 256, 256] +model.roi_heads.box_head.fc_dims = [1024] diff --git a/detectron2/configs/common/models/panoptic_fpn.py b/detectron2/configs/common/models/panoptic_fpn.py new file mode 100755 index 0000000..88f55d2 --- /dev/null +++ b/detectron2/configs/common/models/panoptic_fpn.py @@ -0,0 +1,20 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling import PanopticFPN +from detectron2.modeling.meta_arch.semantic_seg import SemSegFPNHead + +from .mask_rcnn_fpn import model + +model._target_ = PanopticFPN +model.sem_seg_head = L(SemSegFPNHead)( + input_shape={ + f: L(ShapeSpec)(stride=s, channels="${....backbone.out_channels}") + for f, s in zip(["p2", "p3", "p4", "p5"], [4, 8, 16, 32]) + }, + ignore_value=255, + num_classes=54, # COCO stuff + 1 + conv_dims=128, + common_stride=4, + loss_weight=0.5, + norm="GN", +) diff --git a/detectron2/configs/common/models/retinanet.py b/detectron2/configs/common/models/retinanet.py new file mode 100755 index 0000000..784e531 --- /dev/null +++ b/detectron2/configs/common/models/retinanet.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- + +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.meta_arch import RetinaNet +from detectron2.modeling.anchor_generator import DefaultAnchorGenerator +from detectron2.modeling.backbone.fpn import LastLevelP6P7 +from detectron2.modeling.backbone import BasicStem, FPN, ResNet +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.meta_arch.retinanet import RetinaNetHead + +from ..data.constants import constants + +model = L(RetinaNet)( + backbone=L(FPN)( + bottom_up=L(ResNet)( + stem=L(BasicStem)(in_channels=3, out_channels=64, norm="FrozenBN"), + stages=L(ResNet.make_default_stages)( + depth=50, + stride_in_1x1=True, + norm="FrozenBN", + ), + out_features=["res3", "res4", "res5"], + ), + in_features=["res3", "res4", "res5"], + out_channels=256, + top_block=L(LastLevelP6P7)(in_channels=2048, out_channels="${..out_channels}"), + ), + head=L(RetinaNetHead)( + # Shape for each input feature map + input_shape=[ShapeSpec(channels=256)] * 5, + num_classes="${..num_classes}", + conv_dims=[256, 256, 256, 256], + prior_prob=0.01, + num_anchors=9, + ), + anchor_generator=L(DefaultAnchorGenerator)( + sizes=[[x, x * 2 ** (1.0 / 3), x * 2 ** (2.0 / 3)] for x in [32, 64, 128, 256, 512]], + aspect_ratios=[0.5, 1.0, 2.0], + strides=[8, 16, 32, 64, 128], + offset=0.0, + ), + box2box_transform=L(Box2BoxTransform)(weights=[1.0, 1.0, 1.0, 1.0]), + anchor_matcher=L(Matcher)( + thresholds=[0.4, 0.5], labels=[0, -1, 1], allow_low_quality_matches=True + ), + num_classes=80, + head_in_features=["p3", "p4", "p5", "p6", "p7"], + focal_loss_alpha=0.25, + focal_loss_gamma=2.0, + pixel_mean=constants.imagenet_bgr256_mean, + pixel_std=constants.imagenet_bgr256_std, + input_format="BGR", +) diff --git a/detectron2/configs/common/optim.py b/detectron2/configs/common/optim.py new file mode 100755 index 0000000..6cf43e8 --- /dev/null +++ b/detectron2/configs/common/optim.py @@ -0,0 +1,28 @@ +import torch + +from detectron2.config import LazyCall as L +from detectron2.solver.build import get_default_optimizer_params + +SGD = L(torch.optim.SGD)( + params=L(get_default_optimizer_params)( + # params.model is meant to be set to the model object, before instantiating + # the optimizer. + weight_decay_norm=0.0 + ), + lr=0.02, + momentum=0.9, + weight_decay=1e-4, +) + + +AdamW = L(torch.optim.AdamW)( + params=L(get_default_optimizer_params)( + # params.model is meant to be set to the model object, before instantiating + # the optimizer. + base_lr="${..lr}", + weight_decay_norm=0.0, + ), + lr=1e-4, + betas=(0.9, 0.999), + weight_decay=0.1, +) diff --git a/detectron2/configs/common/train.py b/detectron2/configs/common/train.py new file mode 100755 index 0000000..b6ed02b --- /dev/null +++ b/detectron2/configs/common/train.py @@ -0,0 +1,18 @@ +# Common training-related configs that are designed for "tools/lazyconfig_train_net.py" +# You can use your own instead, together with your own train_net.py +train = dict( + output_dir="./output", + init_checkpoint="", + max_iter=90000, + amp=dict(enabled=False), # options for Automatic Mixed Precision + ddp=dict( # options for DistributedDataParallel + broadcast_buffers=False, + find_unused_parameters=False, + fp16_compression=False, + ), + checkpointer=dict(period=5000, max_to_keep=100), # options for PeriodicCheckpointer + eval_period=5000, + log_period=20, + device="cuda" + # ... +) diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_100ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_100ep_LSJ.py new file mode 100755 index 0000000..3740e9b --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_100ep_LSJ.py @@ -0,0 +1,9 @@ +from .mask_rcnn_R_50_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +model.backbone.bottom_up.stages.depth = 101 diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_200ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_200ep_LSJ.py new file mode 100755 index 0000000..18e5f07 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_200ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_R_101_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 2 # 100ep -> 200ep + +lr_multiplier.scheduler.milestones = [ + milestone * 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_400ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_400ep_LSJ.py new file mode 100755 index 0000000..63c54ee --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_101_FPN_400ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_R_101_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 4 # 100ep -> 400ep + +lr_multiplier.scheduler.milestones = [ + milestone * 4 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_100ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_100ep_LSJ.py new file mode 100755 index 0000000..df7a2ae --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_100ep_LSJ.py @@ -0,0 +1,72 @@ +import detectron2.data.transforms as T +from detectron2.config.lazy import LazyCall as L +from detectron2.layers.batch_norm import NaiveSyncBatchNorm +from detectron2.solver import WarmupParamScheduler +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from ..common.data.coco import dataloader +from ..common.models.mask_rcnn_fpn import model +from ..common.optim import SGD as optimizer +from ..common.train import train + +# train from scratch +train.init_checkpoint = "" +train.amp.enabled = True +train.ddp.fp16_compression = True +model.backbone.bottom_up.freeze_at = 0 + +# SyncBN +# fmt: off +model.backbone.bottom_up.stem.norm = \ + model.backbone.bottom_up.stages.norm = \ + model.backbone.norm = "SyncBN" + +# Using NaiveSyncBatchNorm becase heads may have empty input. That is not supported by +# torch.nn.SyncBatchNorm. We can remove this after +# https://github.com/pytorch/pytorch/issues/36530 is fixed. +model.roi_heads.box_head.conv_norm = \ + model.roi_heads.mask_head.conv_norm = lambda c: NaiveSyncBatchNorm(c, + stats_mode="N") +# fmt: on + +# 2conv in RPN: +# https://github.com/tensorflow/tpu/blob/b24729de804fdb751b06467d3dce0637fa652060/models/official/detection/modeling/architecture/heads.py#L95-L97 # noqa: E501, B950 +model.proposal_generator.head.conv_dims = [-1, -1] + +# 4conv1fc box head +model.roi_heads.box_head.conv_dims = [256, 256, 256, 256] +model.roi_heads.box_head.fc_dims = [1024] + +# resize_and_crop_image in: +# https://github.com/tensorflow/tpu/blob/b24729de804fdb751b06467d3dce0637fa652060/models/official/detection/utils/input_utils.py#L127 # noqa: E501, B950 +image_size = 1024 +dataloader.train.mapper.augmentations = [ + L(T.ResizeScale)( + min_scale=0.1, max_scale=2.0, target_height=image_size, target_width=image_size + ), + L(T.FixedSizeCrop)(crop_size=(image_size, image_size)), + L(T.RandomFlip)(horizontal=True), +] + +# recompute boxes due to cropping +dataloader.train.mapper.recompute_boxes = True + +# larger batch-size. +dataloader.train.total_batch_size = 64 + +# Equivalent to 100 epochs. +# 100 ep = 184375 iters * 64 images/iter / 118000 images/ep +train.max_iter = 184375 + +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[163889, 177546], + num_updates=train.max_iter, + ), + warmup_length=500 / train.max_iter, + warmup_factor=0.067, +) + +optimizer.lr = 0.1 +optimizer.weight_decay = 4e-5 diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_200ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_200ep_LSJ.py new file mode 100755 index 0000000..2a7c376 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_200ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_R_50_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 2 # 100ep -> 200ep + +lr_multiplier.scheduler.milestones = [ + milestone * 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_400ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_400ep_LSJ.py new file mode 100755 index 0000000..97586b8 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_400ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_R_50_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 4 # 100ep -> 400ep + +lr_multiplier.scheduler.milestones = [ + milestone * 4 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_50ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_50ep_LSJ.py new file mode 100755 index 0000000..2ca1ede --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_R_50_FPN_50ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_R_50_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter //= 2 # 100ep -> 50ep + +lr_multiplier.scheduler.milestones = [ + milestone // 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ.py new file mode 100755 index 0000000..ef0b6d1 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ.py @@ -0,0 +1,29 @@ +from .mask_rcnn_R_50_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) +from detectron2.config import LazyCall as L +from detectron2.modeling.backbone import RegNet +from detectron2.modeling.backbone.regnet import SimpleStem, ResBottleneckBlock + +# Config source: +# https://github.com/facebookresearch/detectron2/blob/main/configs/COCO-InstanceSegmentation/mask_rcnn_regnetx_4gf_dds_fpn_1x.py # noqa +model.backbone.bottom_up = L(RegNet)( + stem_class=SimpleStem, + stem_width=32, + block_class=ResBottleneckBlock, + depth=23, + w_a=38.65, + w_0=96, + w_m=2.43, + group_width=40, + norm="SyncBN", + out_features=["s1", "s2", "s3", "s4"], +) +model.pixel_std = [57.375, 57.120, 58.395] + +# RegNets benefit from enabling cudnn benchmark mode +train.cudnn_benchmark = True diff --git a/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_200ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_200ep_LSJ.py new file mode 100755 index 0000000..731320e --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_200ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 2 # 100ep -> 200ep + +lr_multiplier.scheduler.milestones = [ + milestone * 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_400ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_400ep_LSJ.py new file mode 100755 index 0000000..8f369a2 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_400ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 4 # 100ep -> 400ep + +lr_multiplier.scheduler.milestones = [ + milestone * 4 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ.py new file mode 100755 index 0000000..ba2c327 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ.py @@ -0,0 +1,30 @@ +from .mask_rcnn_R_50_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) +from detectron2.config import LazyCall as L +from detectron2.modeling.backbone import RegNet +from detectron2.modeling.backbone.regnet import SimpleStem, ResBottleneckBlock + +# Config source: +# https://github.com/facebookresearch/detectron2/blob/main/configs/COCO-InstanceSegmentation/mask_rcnn_regnety_4gf_dds_fpn_1x.py # noqa +model.backbone.bottom_up = L(RegNet)( + stem_class=SimpleStem, + stem_width=32, + block_class=ResBottleneckBlock, + depth=22, + w_a=31.41, + w_0=96, + w_m=2.24, + group_width=64, + se_ratio=0.25, + norm="SyncBN", + out_features=["s1", "s2", "s3", "s4"], +) +model.pixel_std = [57.375, 57.120, 58.395] + +# RegNets benefit from enabling cudnn benchmark mode +train.cudnn_benchmark = True diff --git a/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_200ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_200ep_LSJ.py new file mode 100755 index 0000000..b867cc8 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_200ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 2 # 100ep -> 200ep + +lr_multiplier.scheduler.milestones = [ + milestone * 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_400ep_LSJ.py b/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_400ep_LSJ.py new file mode 100755 index 0000000..7b86ea8 --- /dev/null +++ b/detectron2/configs/new_baselines/mask_rcnn_regnety_4gf_dds_FPN_400ep_LSJ.py @@ -0,0 +1,14 @@ +from .mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +train.max_iter *= 4 # 100ep -> 400ep + +lr_multiplier.scheduler.milestones = [ + milestone * 4 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/configs/quick_schedules/README.md b/detectron2/configs/quick_schedules/README.md new file mode 100755 index 0000000..4e6c82e --- /dev/null +++ b/detectron2/configs/quick_schedules/README.md @@ -0,0 +1,8 @@ +These are quick configs for performance or accuracy regression tracking purposes. + +* `*instance_test.yaml`: can train on 2 GPUs. They are used to test whether the training can + successfully finish. They are not expected to produce reasonable training results. +* `*inference_acc_test.yaml`: They should be run using `--eval-only`. They run inference using pre-trained models and verify + the results are as expected. +* `*training_acc_test.yaml`: They should be trained on 8 GPUs. They finish in about an hour and verify the training accuracy + is within the normal range. diff --git a/detectron2/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..fc5a411 --- /dev/null +++ b/detectron2/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml" +MODEL: + WEIGHTS: "detectron2://Misc/cascade_mask_rcnn_R_50_FPN_3x/144998488/model_final_480dd8.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 50.18, 0.02], ["segm", "AP", 43.87, 0.02]] diff --git a/detectron2/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..e41a0fe --- /dev/null +++ b/detectron2/configs/quick_schedules/cascade_mask_rcnn_R_50_FPN_instant_test.yaml @@ -0,0 +1,11 @@ +_BASE_: "../Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml" +DATASETS: + TRAIN: ("coco_2017_val_100",) + TEST: ("coco_2017_val_100",) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/fast_rcnn_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/fast_rcnn_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..a2f37e5 --- /dev/null +++ b/detectron2/configs/quick_schedules/fast_rcnn_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-Detection/fast_rcnn_R_50_FPN_1x/137635226/model_final_e5f7ce.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 45.70, 0.02]] diff --git a/detectron2/configs/quick_schedules/fast_rcnn_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/fast_rcnn_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..52fc0ec --- /dev/null +++ b/detectron2/configs/quick_schedules/fast_rcnn_R_50_FPN_instant_test.yaml @@ -0,0 +1,15 @@ +_BASE_: "../COCO-Detection/fast_rcnn_R_50_FPN_1x.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" +DATASETS: + TRAIN: ("coco_2017_val_100",) + PROPOSAL_FILES_TRAIN: ("detectron2://COCO-Detection/rpn_R_50_FPN_1x/137258492/coco_2017_val_box_proposals_ee0dad.pkl", ) + TEST: ("coco_2017_val_100",) + PROPOSAL_FILES_TEST: ("detectron2://COCO-Detection/rpn_R_50_FPN_1x/137258492/coco_2017_val_box_proposals_ee0dad.pkl", ) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..14cf2aa --- /dev/null +++ b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x/137849621/model_final_a6e10b.pkl" +DATASETS: + TEST: ("keypoints_coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 52.47, 0.02], ["keypoints", "AP", 67.36, 0.02]] diff --git a/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..3dd209f --- /dev/null +++ b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_instant_test.yaml @@ -0,0 +1,16 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + KEYPOINT_ON: True + ROI_HEADS: + NUM_CLASSES: 1 +DATASETS: + TRAIN: ("keypoints_coco_2017_val_100",) + TEST: ("keypoints_coco_2017_val_100",) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_normalized_training_acc_test.yaml b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_normalized_training_acc_test.yaml new file mode 100755 index 0000000..4b92392 --- /dev/null +++ b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_normalized_training_acc_test.yaml @@ -0,0 +1,30 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + KEYPOINT_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + BATCH_SIZE_PER_IMAGE: 256 + NUM_CLASSES: 1 + ROI_KEYPOINT_HEAD: + POOLER_RESOLUTION: 14 + POOLER_SAMPLING_RATIO: 2 + NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS: False + LOSS_WEIGHT: 4.0 + ROI_BOX_HEAD: + SMOOTH_L1_BETA: 1.0 # Keypoint AP degrades when using plain L1 loss + RPN: + SMOOTH_L1_BETA: 0.2 # Keypoint AP degrades when using plain L1 loss +DATASETS: + TRAIN: ("keypoints_coco_2017_val",) + TEST: ("keypoints_coco_2017_val",) +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +SOLVER: + WARMUP_FACTOR: 0.33333333 + WARMUP_ITERS: 100 + STEPS: (5500, 5800) + MAX_ITER: 6000 +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 55.35, 1.0], ["keypoints", "AP", 76.91, 1.0]] diff --git a/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_training_acc_test.yaml b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_training_acc_test.yaml new file mode 100755 index 0000000..9bd9628 --- /dev/null +++ b/detectron2/configs/quick_schedules/keypoint_rcnn_R_50_FPN_training_acc_test.yaml @@ -0,0 +1,28 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + KEYPOINT_ON: True + RESNETS: + DEPTH: 50 + ROI_HEADS: + BATCH_SIZE_PER_IMAGE: 256 + NUM_CLASSES: 1 + ROI_KEYPOINT_HEAD: + POOLER_RESOLUTION: 14 + POOLER_SAMPLING_RATIO: 2 + ROI_BOX_HEAD: + SMOOTH_L1_BETA: 1.0 # Keypoint AP degrades when using plain L1 loss + RPN: + SMOOTH_L1_BETA: 0.2 # Keypoint AP degrades when using plain L1 loss +DATASETS: + TRAIN: ("keypoints_coco_2017_val",) + TEST: ("keypoints_coco_2017_val",) +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +SOLVER: + WARMUP_FACTOR: 0.33333333 + WARMUP_ITERS: 100 + STEPS: (5500, 5800) + MAX_ITER: 6000 +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 53.5, 1.0], ["keypoints", "AP", 72.4, 1.0]] diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_GCV_instant_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_GCV_instant_test.yaml new file mode 100755 index 0000000..ab6e698 --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_GCV_instant_test.yaml @@ -0,0 +1,18 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True +DATASETS: + TRAIN: ("coco_2017_val_100",) + TEST: ("coco_2017_val_100",) +SOLVER: + BASE_LR: 0.001 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 + CLIP_GRADIENTS: + ENABLED: True + CLIP_TYPE: "value" + CLIP_VALUE: 1.0 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_inference_acc_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_inference_acc_test.yaml new file mode 100755 index 0000000..b2d5b7f --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x/137849525/model_final_4ce675.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 47.37, 0.02], ["segm", "AP", 40.99, 0.02]] diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_instant_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_instant_test.yaml new file mode 100755 index 0000000..6c4f121 --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_instant_test.yaml @@ -0,0 +1,14 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True +DATASETS: + TRAIN: ("coco_2017_val_100",) + TEST: ("coco_2017_val_100",) +SOLVER: + BASE_LR: 0.001 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_training_acc_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_training_acc_test.yaml new file mode 100755 index 0000000..f68dd8f --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_C4_training_acc_test.yaml @@ -0,0 +1,22 @@ +_BASE_: "../Base-RCNN-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + ROI_HEADS: + BATCH_SIZE_PER_IMAGE: 256 + MASK_ON: True +DATASETS: + TRAIN: ("coco_2017_val",) + TEST: ("coco_2017_val",) +INPUT: + MIN_SIZE_TRAIN: (600,) + MAX_SIZE_TRAIN: 1000 + MIN_SIZE_TEST: 800 + MAX_SIZE_TEST: 1000 +SOLVER: + IMS_PER_BATCH: 8 # base uses 16 + WARMUP_FACTOR: 0.33333 + WARMUP_ITERS: 100 + STEPS: (11000, 11600) + MAX_ITER: 12000 +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 41.88, 0.7], ["segm", "AP", 33.79, 0.5]] diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_DC5_inference_acc_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_DC5_inference_acc_test.yaml new file mode 100755 index 0000000..e3ce6cf --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_DC5_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x/137849551/model_final_84107b.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 47.44, 0.02], ["segm", "AP", 42.94, 0.02]] diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..e5454bf --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,10 @@ +_BASE_: "../COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 47.34, 0.02], ["segm", "AP", 42.67, 0.02], ["bbox_TTA", "AP", 49.11, 0.02], ["segm_TTA", "AP", 45.04, 0.02]] + AUG: + ENABLED: True + MIN_SIZES: (700, 800) # to save some time diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..6dbfcde --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_instant_test.yaml @@ -0,0 +1,14 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True +DATASETS: + TRAIN: ("coco_2017_val_100",) + TEST: ("coco_2017_val_100",) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_pred_boxes_training_acc_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_pred_boxes_training_acc_test.yaml new file mode 100755 index 0000000..52f7876 --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_pred_boxes_training_acc_test.yaml @@ -0,0 +1,6 @@ +_BASE_: "./mask_rcnn_R_50_FPN_training_acc_test.yaml" +MODEL: + ROI_BOX_HEAD: + TRAIN_ON_PRED_BOXES: True +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 42.6, 1.0], ["segm", "AP", 35.8, 0.8]] diff --git a/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_training_acc_test.yaml b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_training_acc_test.yaml new file mode 100755 index 0000000..aadae4c --- /dev/null +++ b/detectron2/configs/quick_schedules/mask_rcnn_R_50_FPN_training_acc_test.yaml @@ -0,0 +1,21 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + ROI_HEADS: + BATCH_SIZE_PER_IMAGE: 256 + MASK_ON: True +DATASETS: + TRAIN: ("coco_2017_val",) + TEST: ("coco_2017_val",) +INPUT: + MIN_SIZE_TRAIN: (600,) + MAX_SIZE_TRAIN: 1000 + MIN_SIZE_TEST: 800 + MAX_SIZE_TEST: 1000 +SOLVER: + WARMUP_FACTOR: 0.3333333 + WARMUP_ITERS: 100 + STEPS: (5500, 5800) + MAX_ITER: 6000 +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 42.5, 1.0], ["segm", "AP", 35.8, 0.8]] diff --git a/detectron2/configs/quick_schedules/panoptic_fpn_R_50_inference_acc_test.yaml b/detectron2/configs/quick_schedules/panoptic_fpn_R_50_inference_acc_test.yaml new file mode 100755 index 0000000..70874e3 --- /dev/null +++ b/detectron2/configs/quick_schedules/panoptic_fpn_R_50_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-PanopticSegmentation/panoptic_fpn_R_50_3x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-PanopticSegmentation/panoptic_fpn_R_50_3x/139514569/model_final_c10459.pkl" +DATASETS: + TEST: ("coco_2017_val_100_panoptic_separated",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 46.47, 0.02], ["segm", "AP", 43.39, 0.02], ["sem_seg", "mIoU", 42.55, 0.02], ["panoptic_seg", "PQ", 38.99, 0.02]] diff --git a/detectron2/configs/quick_schedules/panoptic_fpn_R_50_instant_test.yaml b/detectron2/configs/quick_schedules/panoptic_fpn_R_50_instant_test.yaml new file mode 100755 index 0000000..7cdee7b --- /dev/null +++ b/detectron2/configs/quick_schedules/panoptic_fpn_R_50_instant_test.yaml @@ -0,0 +1,19 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "PanopticFPN" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + SEM_SEG_HEAD: + LOSS_WEIGHT: 0.5 +DATASETS: + TRAIN: ("coco_2017_val_100_panoptic_separated",) + TEST: ("coco_2017_val_100_panoptic_separated",) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 1 diff --git a/detectron2/configs/quick_schedules/panoptic_fpn_R_50_training_acc_test.yaml b/detectron2/configs/quick_schedules/panoptic_fpn_R_50_training_acc_test.yaml new file mode 100755 index 0000000..f3bbf30 --- /dev/null +++ b/detectron2/configs/quick_schedules/panoptic_fpn_R_50_training_acc_test.yaml @@ -0,0 +1,20 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "PanopticFPN" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + SEM_SEG_HEAD: + LOSS_WEIGHT: 0.5 +DATASETS: + TRAIN: ("coco_2017_val_panoptic_separated",) + TEST: ("coco_2017_val_panoptic_separated",) +SOLVER: + BASE_LR: 0.01 + WARMUP_FACTOR: 0.001 + WARMUP_ITERS: 500 + STEPS: (5500,) + MAX_ITER: 7000 +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 46.70, 1.1], ["segm", "AP", 39.0, 0.7], ["sem_seg", "mIoU", 64.73, 1.3], ["panoptic_seg", "PQ", 48.13, 0.8]] diff --git a/detectron2/configs/quick_schedules/retinanet_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/retinanet_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..cb666c1 --- /dev/null +++ b/detectron2/configs/quick_schedules/retinanet_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-Detection/retinanet_R_50_FPN_3x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-Detection/retinanet_R_50_FPN_3x/190397829/model_final_5bd44e.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 44.45, 0.02]] diff --git a/detectron2/configs/quick_schedules/retinanet_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/retinanet_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..8d95c1f --- /dev/null +++ b/detectron2/configs/quick_schedules/retinanet_R_50_FPN_instant_test.yaml @@ -0,0 +1,13 @@ +_BASE_: "../COCO-Detection/retinanet_R_50_FPN_1x.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" +DATASETS: + TRAIN: ("coco_2017_val_100",) + TEST: ("coco_2017_val_100",) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/rpn_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/rpn_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..c7c3f90 --- /dev/null +++ b/detectron2/configs/quick_schedules/rpn_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,7 @@ +_BASE_: "../COCO-Detection/rpn_R_50_FPN_1x.yaml" +MODEL: + WEIGHTS: "detectron2://COCO-Detection/rpn_R_50_FPN_1x/137258492/model_final_02ce48.pkl" +DATASETS: + TEST: ("coco_2017_val_100",) +TEST: + EXPECTED_RESULTS: [["box_proposals", "AR@1000", 58.16, 0.02]] diff --git a/detectron2/configs/quick_schedules/rpn_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/rpn_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..402d432 --- /dev/null +++ b/detectron2/configs/quick_schedules/rpn_R_50_FPN_instant_test.yaml @@ -0,0 +1,13 @@ +_BASE_: "../COCO-Detection/rpn_R_50_FPN_1x.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" +DATASETS: + TRAIN: ("coco_2017_val_100",) + TEST: ("coco_2017_val_100",) +SOLVER: + STEPS: (30,) + MAX_ITER: 40 + BASE_LR: 0.005 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/semantic_R_50_FPN_inference_acc_test.yaml b/detectron2/configs/quick_schedules/semantic_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..bca7498 --- /dev/null +++ b/detectron2/configs/quick_schedules/semantic_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,10 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "SemanticSegmentor" + WEIGHTS: "detectron2://semantic_R_50_FPN_1x/111802073/model_final_c18079783c55a94968edc28b7101c5f0.pkl" + RESNETS: + DEPTH: 50 +DATASETS: + TEST: ("coco_2017_val_100_panoptic_stuffonly",) +TEST: + EXPECTED_RESULTS: [["sem_seg", "mIoU", 39.53, 0.02], ["sem_seg", "mACC", 51.50, 0.02]] diff --git a/detectron2/configs/quick_schedules/semantic_R_50_FPN_instant_test.yaml b/detectron2/configs/quick_schedules/semantic_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..14ab606 --- /dev/null +++ b/detectron2/configs/quick_schedules/semantic_R_50_FPN_instant_test.yaml @@ -0,0 +1,18 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "SemanticSegmentor" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +DATASETS: + TRAIN: ("coco_2017_val_100_panoptic_stuffonly",) + TEST: ("coco_2017_val_100_panoptic_stuffonly",) +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +SOLVER: + BASE_LR: 0.005 + STEPS: (30,) + MAX_ITER: 40 + IMS_PER_BATCH: 4 +DATALOADER: + NUM_WORKERS: 2 diff --git a/detectron2/configs/quick_schedules/semantic_R_50_FPN_training_acc_test.yaml b/detectron2/configs/quick_schedules/semantic_R_50_FPN_training_acc_test.yaml new file mode 100755 index 0000000..1f78d77 --- /dev/null +++ b/detectron2/configs/quick_schedules/semantic_R_50_FPN_training_acc_test.yaml @@ -0,0 +1,20 @@ +_BASE_: "../Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "SemanticSegmentor" + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +DATASETS: + TRAIN: ("coco_2017_val_panoptic_stuffonly",) + TEST: ("coco_2017_val_panoptic_stuffonly",) +SOLVER: + BASE_LR: 0.01 + WARMUP_FACTOR: 0.001 + WARMUP_ITERS: 300 + STEPS: (5500,) + MAX_ITER: 7000 +TEST: + EXPECTED_RESULTS: [["sem_seg", "mIoU", 76.51, 1.0], ["sem_seg", "mACC", 83.25, 1.0]] +INPUT: + # no scale augmentation + MIN_SIZE_TRAIN: (800, ) diff --git a/detectron2/datasets/README.md b/detectron2/datasets/README.md new file mode 100755 index 0000000..0eb44cc --- /dev/null +++ b/detectron2/datasets/README.md @@ -0,0 +1,140 @@ +# Use Builtin Datasets + +A dataset can be used by accessing [DatasetCatalog](https://detectron2.readthedocs.io/modules/data.html#detectron2.data.DatasetCatalog) +for its data, or [MetadataCatalog](https://detectron2.readthedocs.io/modules/data.html#detectron2.data.MetadataCatalog) for its metadata (class names, etc). +This document explains how to setup the builtin datasets so they can be used by the above APIs. +[Use Custom Datasets](https://detectron2.readthedocs.io/tutorials/datasets.html) gives a deeper dive on how to use `DatasetCatalog` and `MetadataCatalog`, +and how to add new datasets to them. + +Detectron2 has builtin support for a few datasets. +The datasets are assumed to exist in a directory specified by the environment variable +`DETECTRON2_DATASETS`. +Under this directory, detectron2 will look for datasets in the structure described below, if needed. +``` +$DETECTRON2_DATASETS/ + coco/ + lvis/ + cityscapes/ + VOC20{07,12}/ +``` + +You can set the location for builtin datasets by `export DETECTRON2_DATASETS=/path/to/datasets`. +If left unset, the default is `./datasets` relative to your current working directory. + +The [model zoo](https://github.com/facebookresearch/detectron2/blob/master/MODEL_ZOO.md) +contains configs and models that use these builtin datasets. + +## Expected dataset structure for [COCO instance/keypoint detection](https://cocodataset.org/#download): + +``` +coco/ + annotations/ + instances_{train,val}2017.json + person_keypoints_{train,val}2017.json + {train,val}2017/ + # image files that are mentioned in the corresponding json +``` + +You can use the 2014 version of the dataset as well. + +Some of the builtin tests (`dev/run_*_tests.sh`) uses a tiny version of the COCO dataset, +which you can download with `./datasets/prepare_for_tests.sh`. + +## Expected dataset structure for PanopticFPN: + +Extract panoptic annotations from [COCO website](https://cocodataset.org/#download) +into the following structure: +``` +coco/ + annotations/ + panoptic_{train,val}2017.json + panoptic_{train,val}2017/ # png annotations + panoptic_stuff_{train,val}2017/ # generated by the script mentioned below +``` + +Install panopticapi by: +``` +pip install git+https://github.com/cocodataset/panopticapi.git +``` +Then, run `python datasets/prepare_panoptic_fpn.py`, to extract semantic annotations from panoptic annotations. + +## Expected dataset structure for [LVIS instance segmentation](https://www.lvisdataset.org/dataset): +``` +coco/ + {train,val,test}2017/ +lvis/ + lvis_v0.5_{train,val}.json + lvis_v0.5_image_info_test.json + lvis_v1_{train,val}.json + lvis_v1_image_info_test{,_challenge}.json +``` + +Install lvis-api by: +``` +pip install git+https://github.com/lvis-dataset/lvis-api.git +``` + +To evaluate models trained on the COCO dataset using LVIS annotations, +run `python datasets/prepare_cocofied_lvis.py` to prepare "cocofied" LVIS annotations. + +## Expected dataset structure for [cityscapes](https://www.cityscapes-dataset.com/downloads/): +``` +cityscapes/ + gtFine/ + train/ + aachen/ + color.png, instanceIds.png, labelIds.png, polygons.json, + labelTrainIds.png + ... + val/ + test/ + # below are generated Cityscapes panoptic annotation + cityscapes_panoptic_train.json + cityscapes_panoptic_train/ + cityscapes_panoptic_val.json + cityscapes_panoptic_val/ + cityscapes_panoptic_test.json + cityscapes_panoptic_test/ + leftImg8bit/ + train/ + val/ + test/ +``` +Install cityscapes scripts by: +``` +pip install git+https://github.com/mcordts/cityscapesScripts.git +``` + +Note: to create labelTrainIds.png, first prepare the above structure, then run cityscapesescript with: +``` +CITYSCAPES_DATASET=/path/to/abovementioned/cityscapes python cityscapesscripts/preparation/createTrainIdLabelImgs.py +``` +These files are not needed for instance segmentation. + +Note: to generate Cityscapes panoptic dataset, run cityscapesescript with: +``` +CITYSCAPES_DATASET=/path/to/abovementioned/cityscapes python cityscapesscripts/preparation/createPanopticImgs.py +``` +These files are not needed for semantic and instance segmentation. + +## Expected dataset structure for [Pascal VOC](http://host.robots.ox.ac.uk/pascal/VOC/index.html): +``` +VOC20{07,12}/ + Annotations/ + ImageSets/ + Main/ + trainval.txt + test.txt + # train.txt or val.txt, if you use these splits + JPEGImages/ +``` + +## Expected dataset structure for [ADE20k Scene Parsing](http://sceneparsing.csail.mit.edu/): +``` +ADEChallengeData2016/ + annotations/ + annotations_detectron2/ + images/ + objectInfo150.txt +``` +The directory `annotations_detectron2` is generated by running `python datasets/prepare_ade20k_sem_seg.py`. diff --git a/detectron2/datasets/prepare_ade20k_sem_seg.py b/detectron2/datasets/prepare_ade20k_sem_seg.py new file mode 100755 index 0000000..8b4a58d --- /dev/null +++ b/detectron2/datasets/prepare_ade20k_sem_seg.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import os +from pathlib import Path +import tqdm +from PIL import Image + + +def convert(input, output): + img = np.asarray(Image.open(input)) + assert img.dtype == np.uint8 + img = img - 1 # 0 (ignore) becomes 255. others are shifted by 1 + Image.fromarray(img).save(output) + + +if __name__ == "__main__": + dataset_dir = Path(os.getenv("DETECTRON2_DATASETS", "datasets")) / "ADEChallengeData2016" + for name in ["training", "validation"]: + annotation_dir = dataset_dir / "annotations" / name + output_dir = dataset_dir / "annotations_detectron2" / name + output_dir.mkdir(parents=True, exist_ok=True) + for file in tqdm.tqdm(list(annotation_dir.iterdir())): + output_file = output_dir / file.name + convert(file, output_file) diff --git a/detectron2/datasets/prepare_cocofied_lvis.py b/detectron2/datasets/prepare_cocofied_lvis.py new file mode 100755 index 0000000..245c884 --- /dev/null +++ b/detectron2/datasets/prepare_cocofied_lvis.py @@ -0,0 +1,176 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import copy +import json +import os +from collections import defaultdict + +# This mapping is extracted from the official LVIS mapping: +# https://github.com/lvis-dataset/lvis-api/blob/master/data/coco_to_synset.json +COCO_SYNSET_CATEGORIES = [ + {"synset": "person.n.01", "coco_cat_id": 1}, + {"synset": "bicycle.n.01", "coco_cat_id": 2}, + {"synset": "car.n.01", "coco_cat_id": 3}, + {"synset": "motorcycle.n.01", "coco_cat_id": 4}, + {"synset": "airplane.n.01", "coco_cat_id": 5}, + {"synset": "bus.n.01", "coco_cat_id": 6}, + {"synset": "train.n.01", "coco_cat_id": 7}, + {"synset": "truck.n.01", "coco_cat_id": 8}, + {"synset": "boat.n.01", "coco_cat_id": 9}, + {"synset": "traffic_light.n.01", "coco_cat_id": 10}, + {"synset": "fireplug.n.01", "coco_cat_id": 11}, + {"synset": "stop_sign.n.01", "coco_cat_id": 13}, + {"synset": "parking_meter.n.01", "coco_cat_id": 14}, + {"synset": "bench.n.01", "coco_cat_id": 15}, + {"synset": "bird.n.01", "coco_cat_id": 16}, + {"synset": "cat.n.01", "coco_cat_id": 17}, + {"synset": "dog.n.01", "coco_cat_id": 18}, + {"synset": "horse.n.01", "coco_cat_id": 19}, + {"synset": "sheep.n.01", "coco_cat_id": 20}, + {"synset": "beef.n.01", "coco_cat_id": 21}, + {"synset": "elephant.n.01", "coco_cat_id": 22}, + {"synset": "bear.n.01", "coco_cat_id": 23}, + {"synset": "zebra.n.01", "coco_cat_id": 24}, + {"synset": "giraffe.n.01", "coco_cat_id": 25}, + {"synset": "backpack.n.01", "coco_cat_id": 27}, + {"synset": "umbrella.n.01", "coco_cat_id": 28}, + {"synset": "bag.n.04", "coco_cat_id": 31}, + {"synset": "necktie.n.01", "coco_cat_id": 32}, + {"synset": "bag.n.06", "coco_cat_id": 33}, + {"synset": "frisbee.n.01", "coco_cat_id": 34}, + {"synset": "ski.n.01", "coco_cat_id": 35}, + {"synset": "snowboard.n.01", "coco_cat_id": 36}, + {"synset": "ball.n.06", "coco_cat_id": 37}, + {"synset": "kite.n.03", "coco_cat_id": 38}, + {"synset": "baseball_bat.n.01", "coco_cat_id": 39}, + {"synset": "baseball_glove.n.01", "coco_cat_id": 40}, + {"synset": "skateboard.n.01", "coco_cat_id": 41}, + {"synset": "surfboard.n.01", "coco_cat_id": 42}, + {"synset": "tennis_racket.n.01", "coco_cat_id": 43}, + {"synset": "bottle.n.01", "coco_cat_id": 44}, + {"synset": "wineglass.n.01", "coco_cat_id": 46}, + {"synset": "cup.n.01", "coco_cat_id": 47}, + {"synset": "fork.n.01", "coco_cat_id": 48}, + {"synset": "knife.n.01", "coco_cat_id": 49}, + {"synset": "spoon.n.01", "coco_cat_id": 50}, + {"synset": "bowl.n.03", "coco_cat_id": 51}, + {"synset": "banana.n.02", "coco_cat_id": 52}, + {"synset": "apple.n.01", "coco_cat_id": 53}, + {"synset": "sandwich.n.01", "coco_cat_id": 54}, + {"synset": "orange.n.01", "coco_cat_id": 55}, + {"synset": "broccoli.n.01", "coco_cat_id": 56}, + {"synset": "carrot.n.01", "coco_cat_id": 57}, + {"synset": "frank.n.02", "coco_cat_id": 58}, + {"synset": "pizza.n.01", "coco_cat_id": 59}, + {"synset": "doughnut.n.02", "coco_cat_id": 60}, + {"synset": "cake.n.03", "coco_cat_id": 61}, + {"synset": "chair.n.01", "coco_cat_id": 62}, + {"synset": "sofa.n.01", "coco_cat_id": 63}, + {"synset": "pot.n.04", "coco_cat_id": 64}, + {"synset": "bed.n.01", "coco_cat_id": 65}, + {"synset": "dining_table.n.01", "coco_cat_id": 67}, + {"synset": "toilet.n.02", "coco_cat_id": 70}, + {"synset": "television_receiver.n.01", "coco_cat_id": 72}, + {"synset": "laptop.n.01", "coco_cat_id": 73}, + {"synset": "mouse.n.04", "coco_cat_id": 74}, + {"synset": "remote_control.n.01", "coco_cat_id": 75}, + {"synset": "computer_keyboard.n.01", "coco_cat_id": 76}, + {"synset": "cellular_telephone.n.01", "coco_cat_id": 77}, + {"synset": "microwave.n.02", "coco_cat_id": 78}, + {"synset": "oven.n.01", "coco_cat_id": 79}, + {"synset": "toaster.n.02", "coco_cat_id": 80}, + {"synset": "sink.n.01", "coco_cat_id": 81}, + {"synset": "electric_refrigerator.n.01", "coco_cat_id": 82}, + {"synset": "book.n.01", "coco_cat_id": 84}, + {"synset": "clock.n.01", "coco_cat_id": 85}, + {"synset": "vase.n.01", "coco_cat_id": 86}, + {"synset": "scissors.n.01", "coco_cat_id": 87}, + {"synset": "teddy.n.01", "coco_cat_id": 88}, + {"synset": "hand_blower.n.01", "coco_cat_id": 89}, + {"synset": "toothbrush.n.01", "coco_cat_id": 90}, +] + + +def cocofy_lvis(input_filename, output_filename): + """ + Filter LVIS instance segmentation annotations to remove all categories that are not included in + COCO. The new json files can be used to evaluate COCO AP using `lvis-api`. The category ids in + the output json are the incontiguous COCO dataset ids. + + Args: + input_filename (str): path to the LVIS json file. + output_filename (str): path to the COCOfied json file. + """ + + with open(input_filename, "r") as f: + lvis_json = json.load(f) + + lvis_annos = lvis_json.pop("annotations") + cocofied_lvis = copy.deepcopy(lvis_json) + lvis_json["annotations"] = lvis_annos + + # Mapping from lvis cat id to coco cat id via synset + lvis_cat_id_to_synset = {cat["id"]: cat["synset"] for cat in lvis_json["categories"]} + synset_to_coco_cat_id = {x["synset"]: x["coco_cat_id"] for x in COCO_SYNSET_CATEGORIES} + # Synsets that we will keep in the dataset + synsets_to_keep = set(synset_to_coco_cat_id.keys()) + coco_cat_id_with_instances = defaultdict(int) + + new_annos = [] + ann_id = 1 + for ann in lvis_annos: + lvis_cat_id = ann["category_id"] + synset = lvis_cat_id_to_synset[lvis_cat_id] + if synset not in synsets_to_keep: + continue + coco_cat_id = synset_to_coco_cat_id[synset] + new_ann = copy.deepcopy(ann) + new_ann["category_id"] = coco_cat_id + new_ann["id"] = ann_id + ann_id += 1 + new_annos.append(new_ann) + coco_cat_id_with_instances[coco_cat_id] += 1 + cocofied_lvis["annotations"] = new_annos + + for image in cocofied_lvis["images"]: + for key in ["not_exhaustive_category_ids", "neg_category_ids"]: + new_category_list = [] + for lvis_cat_id in image[key]: + synset = lvis_cat_id_to_synset[lvis_cat_id] + if synset not in synsets_to_keep: + continue + coco_cat_id = synset_to_coco_cat_id[synset] + new_category_list.append(coco_cat_id) + coco_cat_id_with_instances[coco_cat_id] += 1 + image[key] = new_category_list + + coco_cat_id_with_instances = set(coco_cat_id_with_instances.keys()) + + new_categories = [] + for cat in lvis_json["categories"]: + synset = cat["synset"] + if synset not in synsets_to_keep: + continue + coco_cat_id = synset_to_coco_cat_id[synset] + if coco_cat_id not in coco_cat_id_with_instances: + continue + new_cat = copy.deepcopy(cat) + new_cat["id"] = coco_cat_id + new_categories.append(new_cat) + cocofied_lvis["categories"] = new_categories + + with open(output_filename, "w") as f: + json.dump(cocofied_lvis, f) + print("{} is COCOfied and stored in {}.".format(input_filename, output_filename)) + + +if __name__ == "__main__": + dataset_dir = os.path.join(os.getenv("DETECTRON2_DATASETS", "datasets"), "lvis") + for s in ["lvis_v0.5_train", "lvis_v0.5_val"]: + print("Start COCOfing {}.".format(s)) + cocofy_lvis( + os.path.join(dataset_dir, "{}.json".format(s)), + os.path.join(dataset_dir, "{}_cocofied.json".format(s)), + ) diff --git a/detectron2/datasets/prepare_for_tests.sh b/detectron2/datasets/prepare_for_tests.sh new file mode 100755 index 0000000..67e875a --- /dev/null +++ b/detectron2/datasets/prepare_for_tests.sh @@ -0,0 +1,31 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +# Download the mini dataset (coco val2017_100, with only 100 images) +# to be used in unittests & integration tests. + +cd "${0%/*}" + +BASE=https://dl.fbaipublicfiles.com/detectron2 +ROOT=${DETECTRON2_DATASETS:-./} +ROOT=${ROOT/#\~/$HOME} # expand ~ to HOME +mkdir -p $ROOT/coco/annotations + +for anno in instances_val2017_100 \ + person_keypoints_val2017_100 ; do + + dest=$ROOT/coco/annotations/$anno.json + [[ -s $dest ]] && { + echo "$dest exists. Skipping ..." + } || { + wget $BASE/annotations/coco/$anno.json -O $dest + } +done + +dest=$ROOT/coco/val2017_100.tgz +[[ -d $ROOT/coco/val2017 ]] && { + echo "$ROOT/coco/val2017 exists. Skipping ..." +} || { + wget $BASE/annotations/coco/val2017_100.tgz -O $dest + tar xzf $dest -C $ROOT/coco/ && rm -f $dest +} diff --git a/detectron2/datasets/prepare_panoptic_fpn.py b/detectron2/datasets/prepare_panoptic_fpn.py new file mode 100755 index 0000000..597d791 --- /dev/null +++ b/detectron2/datasets/prepare_panoptic_fpn.py @@ -0,0 +1,116 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import functools +import json +import multiprocessing as mp +import numpy as np +import os +import time +from fvcore.common.download import download +from panopticapi.utils import rgb2id +from PIL import Image + +from detectron2.data.datasets.builtin_meta import COCO_CATEGORIES + + +def _process_panoptic_to_semantic(input_panoptic, output_semantic, segments, id_map): + panoptic = np.asarray(Image.open(input_panoptic), dtype=np.uint32) + panoptic = rgb2id(panoptic) + output = np.zeros_like(panoptic, dtype=np.uint8) + 255 + for seg in segments: + cat_id = seg["category_id"] + new_cat_id = id_map[cat_id] + output[panoptic == seg["id"]] = new_cat_id + Image.fromarray(output).save(output_semantic) + + +def separate_coco_semantic_from_panoptic(panoptic_json, panoptic_root, sem_seg_root, categories): + """ + Create semantic segmentation annotations from panoptic segmentation + annotations, to be used by PanopticFPN. + + It maps all thing categories to class 0, and maps all unlabeled pixels to class 255. + It maps all stuff categories to contiguous ids starting from 1. + + Args: + panoptic_json (str): path to the panoptic json file, in COCO's format. + panoptic_root (str): a directory with panoptic annotation files, in COCO's format. + sem_seg_root (str): a directory to output semantic annotation files + categories (list[dict]): category metadata. Each dict needs to have: + "id": corresponds to the "category_id" in the json annotations + "isthing": 0 or 1 + """ + os.makedirs(sem_seg_root, exist_ok=True) + + stuff_ids = [k["id"] for k in categories if k["isthing"] == 0] + thing_ids = [k["id"] for k in categories if k["isthing"] == 1] + id_map = {} # map from category id to id in the output semantic annotation + assert len(stuff_ids) <= 254 + for i, stuff_id in enumerate(stuff_ids): + id_map[stuff_id] = i + 1 + for thing_id in thing_ids: + id_map[thing_id] = 0 + id_map[0] = 255 + + with open(panoptic_json) as f: + obj = json.load(f) + + pool = mp.Pool(processes=max(mp.cpu_count() // 2, 4)) + + def iter_annotations(): + for anno in obj["annotations"]: + file_name = anno["file_name"] + segments = anno["segments_info"] + input = os.path.join(panoptic_root, file_name) + output = os.path.join(sem_seg_root, file_name) + yield input, output, segments + + print("Start writing to {} ...".format(sem_seg_root)) + start = time.time() + pool.starmap( + functools.partial(_process_panoptic_to_semantic, id_map=id_map), + iter_annotations(), + chunksize=100, + ) + print("Finished. time: {:.2f}s".format(time.time() - start)) + + +if __name__ == "__main__": + dataset_dir = os.path.join(os.getenv("DETECTRON2_DATASETS", "datasets"), "coco") + for s in ["val2017", "train2017"]: + separate_coco_semantic_from_panoptic( + os.path.join(dataset_dir, "annotations/panoptic_{}.json".format(s)), + os.path.join(dataset_dir, "panoptic_{}".format(s)), + os.path.join(dataset_dir, "panoptic_stuff_{}".format(s)), + COCO_CATEGORIES, + ) + + # Prepare val2017_100 for quick testing: + + dest_dir = os.path.join(dataset_dir, "annotations/") + URL_PREFIX = "https://dl.fbaipublicfiles.com/detectron2/" + download(URL_PREFIX + "annotations/coco/panoptic_val2017_100.json", dest_dir) + with open(os.path.join(dest_dir, "panoptic_val2017_100.json")) as f: + obj = json.load(f) + + def link_val100(dir_full, dir_100): + print("Creating " + dir_100 + " ...") + os.makedirs(dir_100, exist_ok=True) + for img in obj["images"]: + basename = os.path.splitext(img["file_name"])[0] + src = os.path.join(dir_full, basename + ".png") + dst = os.path.join(dir_100, basename + ".png") + src = os.path.relpath(src, start=dir_100) + os.symlink(src, dst) + + link_val100( + os.path.join(dataset_dir, "panoptic_val2017"), + os.path.join(dataset_dir, "panoptic_val2017_100"), + ) + + link_val100( + os.path.join(dataset_dir, "panoptic_stuff_val2017"), + os.path.join(dataset_dir, "panoptic_stuff_val2017_100"), + ) diff --git a/detectron2/demo/README.md b/detectron2/demo/README.md new file mode 100755 index 0000000..133d8d3 --- /dev/null +++ b/detectron2/demo/README.md @@ -0,0 +1,8 @@ + +## Detectron2 Demo + +We provide a command line tool to run a simple demo of builtin configs. +The usage is explained in [GETTING_STARTED.md](../GETTING_STARTED.md). + +See our [blog post](https://ai.facebook.com/blog/-detectron2-a-pytorch-based-modular-object-detection-library-) +for a high-quality demo generated with this tool. diff --git a/detectron2/demo/demo.py b/detectron2/demo/demo.py new file mode 100755 index 0000000..4baa876 --- /dev/null +++ b/detectron2/demo/demo.py @@ -0,0 +1,188 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import argparse +import glob +import multiprocessing as mp +import numpy as np +import os +import tempfile +import time +import warnings +import cv2 +import tqdm + +from detectron2.config import get_cfg +from detectron2.data.detection_utils import read_image +from detectron2.utils.logger import setup_logger + +from predictor import VisualizationDemo + +# constants +WINDOW_NAME = "COCO detections" + + +def setup_cfg(args): + # load config from file and command-line arguments + cfg = get_cfg() + # To use demo for Panoptic-DeepLab, please uncomment the following two lines. + # from detectron2.projects.panoptic_deeplab import add_panoptic_deeplab_config # noqa + # add_panoptic_deeplab_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + # Set score_threshold for builtin models + cfg.MODEL.RETINANET.SCORE_THRESH_TEST = args.confidence_threshold + cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = args.confidence_threshold + cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = args.confidence_threshold + cfg.freeze() + return cfg + + +def get_parser(): + parser = argparse.ArgumentParser(description="Detectron2 demo for builtin configs") + parser.add_argument( + "--config-file", + default="configs/quick_schedules/mask_rcnn_R_50_FPN_inference_acc_test.yaml", + metavar="FILE", + help="path to config file", + ) + parser.add_argument("--webcam", action="store_true", help="Take inputs from webcam.") + parser.add_argument("--video-input", help="Path to video file.") + parser.add_argument( + "--input", + nargs="+", + help="A list of space separated input images; " + "or a single glob pattern such as 'directory/*.jpg'", + ) + parser.add_argument( + "--output", + help="A file or directory to save output visualizations. " + "If not given, will show output in an OpenCV window.", + ) + + parser.add_argument( + "--confidence-threshold", + type=float, + default=0.5, + help="Minimum score for instance predictions to be shown", + ) + parser.add_argument( + "--opts", + help="Modify config options using the command-line 'KEY VALUE' pairs", + default=[], + nargs=argparse.REMAINDER, + ) + return parser + + +def test_opencv_video_format(codec, file_ext): + with tempfile.TemporaryDirectory(prefix="video_format_test") as dir: + filename = os.path.join(dir, "test_file" + file_ext) + writer = cv2.VideoWriter( + filename=filename, + fourcc=cv2.VideoWriter_fourcc(*codec), + fps=float(30), + frameSize=(10, 10), + isColor=True, + ) + [writer.write(np.zeros((10, 10, 3), np.uint8)) for _ in range(30)] + writer.release() + if os.path.isfile(filename): + return True + return False + + +if __name__ == "__main__": + mp.set_start_method("spawn", force=True) + args = get_parser().parse_args() + setup_logger(name="fvcore") + logger = setup_logger() + logger.info("Arguments: " + str(args)) + + cfg = setup_cfg(args) + + demo = VisualizationDemo(cfg) + + if args.input: + if len(args.input) == 1: + args.input = glob.glob(os.path.expanduser(args.input[0])) + assert args.input, "The input path(s) was not found" + for path in tqdm.tqdm(args.input, disable=not args.output): + # use PIL, to be consistent with evaluation + img = read_image(path, format="BGR") + start_time = time.time() + predictions, visualized_output = demo.run_on_image(img) + logger.info( + "{}: {} in {:.2f}s".format( + path, + "detected {} instances".format(len(predictions["instances"])) + if "instances" in predictions + else "finished", + time.time() - start_time, + ) + ) + + if args.output: + if os.path.isdir(args.output): + assert os.path.isdir(args.output), args.output + out_filename = os.path.join(args.output, os.path.basename(path)) + else: + assert len(args.input) == 1, "Please specify a directory with args.output" + out_filename = args.output + visualized_output.save(out_filename) + else: + cv2.namedWindow(WINDOW_NAME, cv2.WINDOW_NORMAL) + cv2.imshow(WINDOW_NAME, visualized_output.get_image()[:, :, ::-1]) + if cv2.waitKey(0) == 27: + break # esc to quit + elif args.webcam: + assert args.input is None, "Cannot have both --input and --webcam!" + assert args.output is None, "output not yet supported with --webcam!" + cam = cv2.VideoCapture(0) + for vis in tqdm.tqdm(demo.run_on_video(cam)): + cv2.namedWindow(WINDOW_NAME, cv2.WINDOW_NORMAL) + cv2.imshow(WINDOW_NAME, vis) + if cv2.waitKey(1) == 27: + break # esc to quit + cam.release() + cv2.destroyAllWindows() + elif args.video_input: + video = cv2.VideoCapture(args.video_input) + width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH)) + height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT)) + frames_per_second = video.get(cv2.CAP_PROP_FPS) + num_frames = int(video.get(cv2.CAP_PROP_FRAME_COUNT)) + basename = os.path.basename(args.video_input) + codec, file_ext = ( + ("x264", ".mkv") if test_opencv_video_format("x264", ".mkv") else ("mp4v", ".mp4") + ) + if codec == ".mp4v": + warnings.warn("x264 codec not available, switching to mp4v") + if args.output: + if os.path.isdir(args.output): + output_fname = os.path.join(args.output, basename) + output_fname = os.path.splitext(output_fname)[0] + file_ext + else: + output_fname = args.output + assert not os.path.isfile(output_fname), output_fname + output_file = cv2.VideoWriter( + filename=output_fname, + # some installation of opencv may not support x264 (due to its license), + # you can try other format (e.g. MPEG) + fourcc=cv2.VideoWriter_fourcc(*codec), + fps=float(frames_per_second), + frameSize=(width, height), + isColor=True, + ) + assert os.path.isfile(args.video_input) + for vis_frame in tqdm.tqdm(demo.run_on_video(video), total=num_frames): + if args.output: + output_file.write(vis_frame) + else: + cv2.namedWindow(basename, cv2.WINDOW_NORMAL) + cv2.imshow(basename, vis_frame) + if cv2.waitKey(1) == 27: + break # esc to quit + video.release() + if args.output: + output_file.release() + else: + cv2.destroyAllWindows() diff --git a/detectron2/demo/predictor.py b/detectron2/demo/predictor.py new file mode 100755 index 0000000..7b7ebd3 --- /dev/null +++ b/detectron2/demo/predictor.py @@ -0,0 +1,220 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import atexit +import bisect +import multiprocessing as mp +from collections import deque +import cv2 +import torch + +from detectron2.data import MetadataCatalog +from detectron2.engine.defaults import DefaultPredictor +from detectron2.utils.video_visualizer import VideoVisualizer +from detectron2.utils.visualizer import ColorMode, Visualizer + + +class VisualizationDemo(object): + def __init__(self, cfg, instance_mode=ColorMode.IMAGE, parallel=False): + """ + Args: + cfg (CfgNode): + instance_mode (ColorMode): + parallel (bool): whether to run the model in different processes from visualization. + Useful since the visualization logic can be slow. + """ + self.metadata = MetadataCatalog.get( + cfg.DATASETS.TEST[0] if len(cfg.DATASETS.TEST) else "__unused" + ) + self.cpu_device = torch.device("cpu") + self.instance_mode = instance_mode + + self.parallel = parallel + if parallel: + num_gpu = torch.cuda.device_count() + self.predictor = AsyncPredictor(cfg, num_gpus=num_gpu) + else: + self.predictor = DefaultPredictor(cfg) + + def run_on_image(self, image): + """ + Args: + image (np.ndarray): an image of shape (H, W, C) (in BGR order). + This is the format used by OpenCV. + + Returns: + predictions (dict): the output of the model. + vis_output (VisImage): the visualized image output. + """ + vis_output = None + predictions = self.predictor(image) + # Convert image from OpenCV BGR format to Matplotlib RGB format. + image = image[:, :, ::-1] + visualizer = Visualizer(image, self.metadata, instance_mode=self.instance_mode) + if "panoptic_seg" in predictions: + panoptic_seg, segments_info = predictions["panoptic_seg"] + vis_output = visualizer.draw_panoptic_seg_predictions( + panoptic_seg.to(self.cpu_device), segments_info + ) + else: + if "sem_seg" in predictions: + vis_output = visualizer.draw_sem_seg( + predictions["sem_seg"].argmax(dim=0).to(self.cpu_device) + ) + if "instances" in predictions: + instances = predictions["instances"].to(self.cpu_device) + vis_output = visualizer.draw_instance_predictions(predictions=instances) + + return predictions, vis_output + + def _frame_from_video(self, video): + while video.isOpened(): + success, frame = video.read() + if success: + yield frame + else: + break + + def run_on_video(self, video): + """ + Visualizes predictions on frames of the input video. + + Args: + video (cv2.VideoCapture): a :class:`VideoCapture` object, whose source can be + either a webcam or a video file. + + Yields: + ndarray: BGR visualizations of each video frame. + """ + video_visualizer = VideoVisualizer(self.metadata, self.instance_mode) + + def process_predictions(frame, predictions): + frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) + if "panoptic_seg" in predictions: + panoptic_seg, segments_info = predictions["panoptic_seg"] + vis_frame = video_visualizer.draw_panoptic_seg_predictions( + frame, panoptic_seg.to(self.cpu_device), segments_info + ) + elif "instances" in predictions: + predictions = predictions["instances"].to(self.cpu_device) + vis_frame = video_visualizer.draw_instance_predictions(frame, predictions) + elif "sem_seg" in predictions: + vis_frame = video_visualizer.draw_sem_seg( + frame, predictions["sem_seg"].argmax(dim=0).to(self.cpu_device) + ) + + # Converts Matplotlib RGB format to OpenCV BGR format + vis_frame = cv2.cvtColor(vis_frame.get_image(), cv2.COLOR_RGB2BGR) + return vis_frame + + frame_gen = self._frame_from_video(video) + if self.parallel: + buffer_size = self.predictor.default_buffer_size + + frame_data = deque() + + for cnt, frame in enumerate(frame_gen): + frame_data.append(frame) + self.predictor.put(frame) + + if cnt >= buffer_size: + frame = frame_data.popleft() + predictions = self.predictor.get() + yield process_predictions(frame, predictions) + + while len(frame_data): + frame = frame_data.popleft() + predictions = self.predictor.get() + yield process_predictions(frame, predictions) + else: + for frame in frame_gen: + yield process_predictions(frame, self.predictor(frame)) + + +class AsyncPredictor: + """ + A predictor that runs the model asynchronously, possibly on >1 GPUs. + Because rendering the visualization takes considerably amount of time, + this helps improve throughput a little bit when rendering videos. + """ + + class _StopToken: + pass + + class _PredictWorker(mp.Process): + def __init__(self, cfg, task_queue, result_queue): + self.cfg = cfg + self.task_queue = task_queue + self.result_queue = result_queue + super().__init__() + + def run(self): + predictor = DefaultPredictor(self.cfg) + + while True: + task = self.task_queue.get() + if isinstance(task, AsyncPredictor._StopToken): + break + idx, data = task + result = predictor(data) + self.result_queue.put((idx, result)) + + def __init__(self, cfg, num_gpus: int = 1): + """ + Args: + cfg (CfgNode): + num_gpus (int): if 0, will run on CPU + """ + num_workers = max(num_gpus, 1) + self.task_queue = mp.Queue(maxsize=num_workers * 3) + self.result_queue = mp.Queue(maxsize=num_workers * 3) + self.procs = [] + for gpuid in range(max(num_gpus, 1)): + cfg = cfg.clone() + cfg.defrost() + cfg.MODEL.DEVICE = "cuda:{}".format(gpuid) if num_gpus > 0 else "cpu" + self.procs.append( + AsyncPredictor._PredictWorker(cfg, self.task_queue, self.result_queue) + ) + + self.put_idx = 0 + self.get_idx = 0 + self.result_rank = [] + self.result_data = [] + + for p in self.procs: + p.start() + atexit.register(self.shutdown) + + def put(self, image): + self.put_idx += 1 + self.task_queue.put((self.put_idx, image)) + + def get(self): + self.get_idx += 1 # the index needed for this request + if len(self.result_rank) and self.result_rank[0] == self.get_idx: + res = self.result_data[0] + del self.result_data[0], self.result_rank[0] + return res + + while True: + # make sure the results are returned in the correct order + idx, res = self.result_queue.get() + if idx == self.get_idx: + return res + insert = bisect.bisect(self.result_rank, idx) + self.result_rank.insert(insert, idx) + self.result_data.insert(insert, res) + + def __len__(self): + return self.put_idx - self.get_idx + + def __call__(self, image): + self.put(image) + return self.get() + + def shutdown(self): + for _ in self.procs: + self.task_queue.put(AsyncPredictor._StopToken()) + + @property + def default_buffer_size(self): + return len(self.procs) * 5 diff --git a/detectron2/detectron2/__init__.py b/detectron2/detectron2/__init__.py new file mode 100755 index 0000000..bdd994b --- /dev/null +++ b/detectron2/detectron2/__init__.py @@ -0,0 +1,10 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .utils.env import setup_environment + +setup_environment() + + +# This line will be programatically read/write by setup.py. +# Leave them at the bottom of this file and don't touch them. +__version__ = "0.6" diff --git a/detectron2/detectron2/checkpoint/__init__.py b/detectron2/detectron2/checkpoint/__init__.py new file mode 100755 index 0000000..99da046 --- /dev/null +++ b/detectron2/detectron2/checkpoint/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. +# File: + + +from . import catalog as _UNUSED # register the handler +from .detection_checkpoint import DetectionCheckpointer +from fvcore.common.checkpoint import Checkpointer, PeriodicCheckpointer + +__all__ = ["Checkpointer", "PeriodicCheckpointer", "DetectionCheckpointer"] diff --git a/detectron2/detectron2/checkpoint/c2_model_loading.py b/detectron2/detectron2/checkpoint/c2_model_loading.py new file mode 100755 index 0000000..c6de2a3 --- /dev/null +++ b/detectron2/detectron2/checkpoint/c2_model_loading.py @@ -0,0 +1,412 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import logging +import re +from typing import Dict, List +import torch +from tabulate import tabulate + + +def convert_basic_c2_names(original_keys): + """ + Apply some basic name conversion to names in C2 weights. + It only deals with typical backbone models. + + Args: + original_keys (list[str]): + Returns: + list[str]: The same number of strings matching those in original_keys. + """ + layer_keys = copy.deepcopy(original_keys) + layer_keys = [ + {"pred_b": "linear_b", "pred_w": "linear_w"}.get(k, k) for k in layer_keys + ] # some hard-coded mappings + + layer_keys = [k.replace("_", ".") for k in layer_keys] + layer_keys = [re.sub("\\.b$", ".bias", k) for k in layer_keys] + layer_keys = [re.sub("\\.w$", ".weight", k) for k in layer_keys] + # Uniform both bn and gn names to "norm" + layer_keys = [re.sub("bn\\.s$", "norm.weight", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.bias$", "norm.bias", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.rm", "norm.running_mean", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.running.mean$", "norm.running_mean", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.riv$", "norm.running_var", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.running.var$", "norm.running_var", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.gamma$", "norm.weight", k) for k in layer_keys] + layer_keys = [re.sub("bn\\.beta$", "norm.bias", k) for k in layer_keys] + layer_keys = [re.sub("gn\\.s$", "norm.weight", k) for k in layer_keys] + layer_keys = [re.sub("gn\\.bias$", "norm.bias", k) for k in layer_keys] + + # stem + layer_keys = [re.sub("^res\\.conv1\\.norm\\.", "conv1.norm.", k) for k in layer_keys] + # to avoid mis-matching with "conv1" in other components (e.g. detection head) + layer_keys = [re.sub("^conv1\\.", "stem.conv1.", k) for k in layer_keys] + + # layer1-4 is used by torchvision, however we follow the C2 naming strategy (res2-5) + # layer_keys = [re.sub("^res2.", "layer1.", k) for k in layer_keys] + # layer_keys = [re.sub("^res3.", "layer2.", k) for k in layer_keys] + # layer_keys = [re.sub("^res4.", "layer3.", k) for k in layer_keys] + # layer_keys = [re.sub("^res5.", "layer4.", k) for k in layer_keys] + + # blocks + layer_keys = [k.replace(".branch1.", ".shortcut.") for k in layer_keys] + layer_keys = [k.replace(".branch2a.", ".conv1.") for k in layer_keys] + layer_keys = [k.replace(".branch2b.", ".conv2.") for k in layer_keys] + layer_keys = [k.replace(".branch2c.", ".conv3.") for k in layer_keys] + + # DensePose substitutions + layer_keys = [re.sub("^body.conv.fcn", "body_conv_fcn", k) for k in layer_keys] + layer_keys = [k.replace("AnnIndex.lowres", "ann_index_lowres") for k in layer_keys] + layer_keys = [k.replace("Index.UV.lowres", "index_uv_lowres") for k in layer_keys] + layer_keys = [k.replace("U.lowres", "u_lowres") for k in layer_keys] + layer_keys = [k.replace("V.lowres", "v_lowres") for k in layer_keys] + return layer_keys + + +def convert_c2_detectron_names(weights): + """ + Map Caffe2 Detectron weight names to Detectron2 names. + + Args: + weights (dict): name -> tensor + + Returns: + dict: detectron2 names -> tensor + dict: detectron2 names -> C2 names + """ + logger = logging.getLogger(__name__) + logger.info("Renaming Caffe2 weights ......") + original_keys = sorted(weights.keys()) + layer_keys = copy.deepcopy(original_keys) + + layer_keys = convert_basic_c2_names(layer_keys) + + # -------------------------------------------------------------------------- + # RPN hidden representation conv + # -------------------------------------------------------------------------- + # FPN case + # In the C2 model, the RPN hidden layer conv is defined for FPN level 2 and then + # shared for all other levels, hence the appearance of "fpn2" + layer_keys = [ + k.replace("conv.rpn.fpn2", "proposal_generator.rpn_head.conv") for k in layer_keys + ] + # Non-FPN case + layer_keys = [k.replace("conv.rpn", "proposal_generator.rpn_head.conv") for k in layer_keys] + + # -------------------------------------------------------------------------- + # RPN box transformation conv + # -------------------------------------------------------------------------- + # FPN case (see note above about "fpn2") + layer_keys = [ + k.replace("rpn.bbox.pred.fpn2", "proposal_generator.rpn_head.anchor_deltas") + for k in layer_keys + ] + layer_keys = [ + k.replace("rpn.cls.logits.fpn2", "proposal_generator.rpn_head.objectness_logits") + for k in layer_keys + ] + # Non-FPN case + layer_keys = [ + k.replace("rpn.bbox.pred", "proposal_generator.rpn_head.anchor_deltas") for k in layer_keys + ] + layer_keys = [ + k.replace("rpn.cls.logits", "proposal_generator.rpn_head.objectness_logits") + for k in layer_keys + ] + + # -------------------------------------------------------------------------- + # Fast R-CNN box head + # -------------------------------------------------------------------------- + layer_keys = [re.sub("^bbox\\.pred", "bbox_pred", k) for k in layer_keys] + layer_keys = [re.sub("^cls\\.score", "cls_score", k) for k in layer_keys] + layer_keys = [re.sub("^fc6\\.", "box_head.fc1.", k) for k in layer_keys] + layer_keys = [re.sub("^fc7\\.", "box_head.fc2.", k) for k in layer_keys] + # 4conv1fc head tensor names: head_conv1_w, head_conv1_gn_s + layer_keys = [re.sub("^head\\.conv", "box_head.conv", k) for k in layer_keys] + + # -------------------------------------------------------------------------- + # FPN lateral and output convolutions + # -------------------------------------------------------------------------- + def fpn_map(name): + """ + Look for keys with the following patterns: + 1) Starts with "fpn.inner." + Example: "fpn.inner.res2.2.sum.lateral.weight" + Meaning: These are lateral pathway convolutions + 2) Starts with "fpn.res" + Example: "fpn.res2.2.sum.weight" + Meaning: These are FPN output convolutions + """ + splits = name.split(".") + norm = ".norm" if "norm" in splits else "" + if name.startswith("fpn.inner."): + # splits example: ['fpn', 'inner', 'res2', '2', 'sum', 'lateral', 'weight'] + stage = int(splits[2][len("res") :]) + return "fpn_lateral{}{}.{}".format(stage, norm, splits[-1]) + elif name.startswith("fpn.res"): + # splits example: ['fpn', 'res2', '2', 'sum', 'weight'] + stage = int(splits[1][len("res") :]) + return "fpn_output{}{}.{}".format(stage, norm, splits[-1]) + return name + + layer_keys = [fpn_map(k) for k in layer_keys] + + # -------------------------------------------------------------------------- + # Mask R-CNN mask head + # -------------------------------------------------------------------------- + # roi_heads.StandardROIHeads case + layer_keys = [k.replace(".[mask].fcn", "mask_head.mask_fcn") for k in layer_keys] + layer_keys = [re.sub("^\\.mask\\.fcn", "mask_head.mask_fcn", k) for k in layer_keys] + layer_keys = [k.replace("mask.fcn.logits", "mask_head.predictor") for k in layer_keys] + # roi_heads.Res5ROIHeads case + layer_keys = [k.replace("conv5.mask", "mask_head.deconv") for k in layer_keys] + + # -------------------------------------------------------------------------- + # Keypoint R-CNN head + # -------------------------------------------------------------------------- + # interestingly, the keypoint head convs have blob names that are simply "conv_fcnX" + layer_keys = [k.replace("conv.fcn", "roi_heads.keypoint_head.conv_fcn") for k in layer_keys] + layer_keys = [ + k.replace("kps.score.lowres", "roi_heads.keypoint_head.score_lowres") for k in layer_keys + ] + layer_keys = [k.replace("kps.score.", "roi_heads.keypoint_head.score.") for k in layer_keys] + + # -------------------------------------------------------------------------- + # Done with replacements + # -------------------------------------------------------------------------- + assert len(set(layer_keys)) == len(layer_keys) + assert len(original_keys) == len(layer_keys) + + new_weights = {} + new_keys_to_original_keys = {} + for orig, renamed in zip(original_keys, layer_keys): + new_keys_to_original_keys[renamed] = orig + if renamed.startswith("bbox_pred.") or renamed.startswith("mask_head.predictor."): + # remove the meaningless prediction weight for background class + new_start_idx = 4 if renamed.startswith("bbox_pred.") else 1 + new_weights[renamed] = weights[orig][new_start_idx:] + logger.info( + "Remove prediction weight for background class in {}. The shape changes from " + "{} to {}.".format( + renamed, tuple(weights[orig].shape), tuple(new_weights[renamed].shape) + ) + ) + elif renamed.startswith("cls_score."): + # move weights of bg class from original index 0 to last index + logger.info( + "Move classification weights for background class in {} from index 0 to " + "index {}.".format(renamed, weights[orig].shape[0] - 1) + ) + new_weights[renamed] = torch.cat([weights[orig][1:], weights[orig][:1]]) + else: + new_weights[renamed] = weights[orig] + + return new_weights, new_keys_to_original_keys + + +# Note the current matching is not symmetric. +# it assumes model_state_dict will have longer names. +def align_and_update_state_dicts(model_state_dict, ckpt_state_dict, c2_conversion=True): + """ + Match names between the two state-dict, and returns a new chkpt_state_dict with names + converted to match model_state_dict with heuristics. The returned dict can be later + loaded with fvcore checkpointer. + If `c2_conversion==True`, `ckpt_state_dict` is assumed to be a Caffe2 + model and will be renamed at first. + + Strategy: suppose that the models that we will create will have prefixes appended + to each of its keys, for example due to an extra level of nesting that the original + pre-trained weights from ImageNet won't contain. For example, model.state_dict() + might return backbone[0].body.res2.conv1.weight, while the pre-trained model contains + res2.conv1.weight. We thus want to match both parameters together. + For that, we look for each model weight, look among all loaded keys if there is one + that is a suffix of the current weight name, and use it if that's the case. + If multiple matches exist, take the one with longest size + of the corresponding name. For example, for the same model as before, the pretrained + weight file can contain both res2.conv1.weight, as well as conv1.weight. In this case, + we want to match backbone[0].body.conv1.weight to conv1.weight, and + backbone[0].body.res2.conv1.weight to res2.conv1.weight. + """ + model_keys = sorted(model_state_dict.keys()) + if c2_conversion: + ckpt_state_dict, original_keys = convert_c2_detectron_names(ckpt_state_dict) + # original_keys: the name in the original dict (before renaming) + else: + original_keys = {x: x for x in ckpt_state_dict.keys()} + ckpt_keys = sorted(ckpt_state_dict.keys()) + + def match(a, b): + # Matched ckpt_key should be a complete (starts with '.') suffix. + # For example, roi_heads.mesh_head.whatever_conv1 does not match conv1, + # but matches whatever_conv1 or mesh_head.whatever_conv1. + return a == b or a.endswith("." + b) + + # get a matrix of string matches, where each (i, j) entry correspond to the size of the + # ckpt_key string, if it matches + match_matrix = [len(j) if match(i, j) else 0 for i in model_keys for j in ckpt_keys] + match_matrix = torch.as_tensor(match_matrix).view(len(model_keys), len(ckpt_keys)) + # use the matched one with longest size in case of multiple matches + max_match_size, idxs = match_matrix.max(1) + # remove indices that correspond to no-match + idxs[max_match_size == 0] = -1 + + logger = logging.getLogger(__name__) + # matched_pairs (matched checkpoint key --> matched model key) + matched_keys = {} + result_state_dict = {} + for idx_model, idx_ckpt in enumerate(idxs.tolist()): + if idx_ckpt == -1: + continue + key_model = model_keys[idx_model] + key_ckpt = ckpt_keys[idx_ckpt] + value_ckpt = ckpt_state_dict[key_ckpt] + shape_in_model = model_state_dict[key_model].shape + + if shape_in_model != value_ckpt.shape: + logger.warning( + "Shape of {} in checkpoint is {}, while shape of {} in model is {}.".format( + key_ckpt, value_ckpt.shape, key_model, shape_in_model + ) + ) + logger.warning( + "{} will not be loaded. Please double check and see if this is desired.".format( + key_ckpt + ) + ) + continue + + assert key_model not in result_state_dict + result_state_dict[key_model] = value_ckpt + if key_ckpt in matched_keys: # already added to matched_keys + logger.error( + "Ambiguity found for {} in checkpoint!" + "It matches at least two keys in the model ({} and {}).".format( + key_ckpt, key_model, matched_keys[key_ckpt] + ) + ) + raise ValueError("Cannot match one checkpoint key to multiple keys in the model.") + + matched_keys[key_ckpt] = key_model + + # logging: + matched_model_keys = sorted(matched_keys.values()) + if len(matched_model_keys) == 0: + logger.warning("No weights in checkpoint matched with model.") + return ckpt_state_dict + common_prefix = _longest_common_prefix(matched_model_keys) + rev_matched_keys = {v: k for k, v in matched_keys.items()} + original_keys = {k: original_keys[rev_matched_keys[k]] for k in matched_model_keys} + + model_key_groups = _group_keys_by_module(matched_model_keys, original_keys) + table = [] + memo = set() + for key_model in matched_model_keys: + if key_model in memo: + continue + if key_model in model_key_groups: + group = model_key_groups[key_model] + memo |= set(group) + shapes = [tuple(model_state_dict[k].shape) for k in group] + table.append( + ( + _longest_common_prefix([k[len(common_prefix) :] for k in group]) + "*", + _group_str([original_keys[k] for k in group]), + " ".join([str(x).replace(" ", "") for x in shapes]), + ) + ) + else: + key_checkpoint = original_keys[key_model] + shape = str(tuple(model_state_dict[key_model].shape)) + table.append((key_model[len(common_prefix) :], key_checkpoint, shape)) + table_str = tabulate( + table, tablefmt="pipe", headers=["Names in Model", "Names in Checkpoint", "Shapes"] + ) + logger.info( + "Following weights matched with " + + (f"submodule {common_prefix[:-1]}" if common_prefix else "model") + + ":\n" + + table_str + ) + + unmatched_ckpt_keys = [k for k in ckpt_keys if k not in set(matched_keys.keys())] + for k in unmatched_ckpt_keys: + result_state_dict[k] = ckpt_state_dict[k] + return result_state_dict + + +def _group_keys_by_module(keys: List[str], original_names: Dict[str, str]): + """ + Params in the same submodule are grouped together. + + Args: + keys: names of all parameters + original_names: mapping from parameter name to their name in the checkpoint + + Returns: + dict[name -> all other names in the same group] + """ + + def _submodule_name(key): + pos = key.rfind(".") + if pos < 0: + return None + prefix = key[: pos + 1] + return prefix + + all_submodules = [_submodule_name(k) for k in keys] + all_submodules = [x for x in all_submodules if x] + all_submodules = sorted(all_submodules, key=len) + + ret = {} + for prefix in all_submodules: + group = [k for k in keys if k.startswith(prefix)] + if len(group) <= 1: + continue + original_name_lcp = _longest_common_prefix_str([original_names[k] for k in group]) + if len(original_name_lcp) == 0: + # don't group weights if original names don't share prefix + continue + + for k in group: + if k in ret: + continue + ret[k] = group + return ret + + +def _longest_common_prefix(names: List[str]) -> str: + """ + ["abc.zfg", "abc.zef"] -> "abc." + """ + names = [n.split(".") for n in names] + m1, m2 = min(names), max(names) + ret = [a for a, b in zip(m1, m2) if a == b] + ret = ".".join(ret) + "." if len(ret) else "" + return ret + + +def _longest_common_prefix_str(names: List[str]) -> str: + m1, m2 = min(names), max(names) + lcp = [] + for a, b in zip(m1, m2): + if a == b: + lcp.append(a) + else: + break + lcp = "".join(lcp) + return lcp + + +def _group_str(names: List[str]) -> str: + """ + Turn "common1", "common2", "common3" into "common{1,2,3}" + """ + lcp = _longest_common_prefix_str(names) + rest = [x[len(lcp) :] for x in names] + rest = "{" + ",".join(rest) + "}" + ret = lcp + rest + + # add some simplification for BN specifically + ret = ret.replace("bn_{beta,running_mean,running_var,gamma}", "bn_*") + ret = ret.replace("bn_beta,bn_running_mean,bn_running_var,bn_gamma", "bn_*") + return ret diff --git a/detectron2/detectron2/checkpoint/catalog.py b/detectron2/detectron2/checkpoint/catalog.py new file mode 100755 index 0000000..9a85736 --- /dev/null +++ b/detectron2/detectron2/checkpoint/catalog.py @@ -0,0 +1,115 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging + +from detectron2.utils.file_io import PathHandler, PathManager + + +class ModelCatalog(object): + """ + Store mappings from names to third-party models. + """ + + S3_C2_DETECTRON_PREFIX = "https://dl.fbaipublicfiles.com/detectron" + + # MSRA models have STRIDE_IN_1X1=True. False otherwise. + # NOTE: all BN models here have fused BN into an affine layer. + # As a result, you should only load them to a model with "FrozenBN". + # Loading them to a model with regular BN or SyncBN is wrong. + # Even when loaded to FrozenBN, it is still different from affine by an epsilon, + # which should be negligible for training. + # NOTE: all models here uses PIXEL_STD=[1,1,1] + # NOTE: Most of the BN models here are no longer used. We use the + # re-converted pre-trained models under detectron2 model zoo instead. + C2_IMAGENET_MODELS = { + "MSRA/R-50": "ImageNetPretrained/MSRA/R-50.pkl", + "MSRA/R-101": "ImageNetPretrained/MSRA/R-101.pkl", + "FAIR/R-50-GN": "ImageNetPretrained/47261647/R-50-GN.pkl", + "FAIR/R-101-GN": "ImageNetPretrained/47592356/R-101-GN.pkl", + "FAIR/X-101-32x8d": "ImageNetPretrained/20171220/X-101-32x8d.pkl", + "FAIR/X-101-64x4d": "ImageNetPretrained/FBResNeXt/X-101-64x4d.pkl", + "FAIR/X-152-32x8d-IN5k": "ImageNetPretrained/25093814/X-152-32x8d-IN5k.pkl", + } + + C2_DETECTRON_PATH_FORMAT = ( + "{prefix}/{url}/output/train/{dataset}/{type}/model_final.pkl" # noqa B950 + ) + + C2_DATASET_COCO = "coco_2014_train%3Acoco_2014_valminusminival" + C2_DATASET_COCO_KEYPOINTS = "keypoints_coco_2014_train%3Akeypoints_coco_2014_valminusminival" + + # format: {model_name} -> part of the url + C2_DETECTRON_MODELS = { + "35857197/e2e_faster_rcnn_R-50-C4_1x": "35857197/12_2017_baselines/e2e_faster_rcnn_R-50-C4_1x.yaml.01_33_49.iAX0mXvW", # noqa B950 + "35857345/e2e_faster_rcnn_R-50-FPN_1x": "35857345/12_2017_baselines/e2e_faster_rcnn_R-50-FPN_1x.yaml.01_36_30.cUF7QR7I", # noqa B950 + "35857890/e2e_faster_rcnn_R-101-FPN_1x": "35857890/12_2017_baselines/e2e_faster_rcnn_R-101-FPN_1x.yaml.01_38_50.sNxI7sX7", # noqa B950 + "36761737/e2e_faster_rcnn_X-101-32x8d-FPN_1x": "36761737/12_2017_baselines/e2e_faster_rcnn_X-101-32x8d-FPN_1x.yaml.06_31_39.5MIHi1fZ", # noqa B950 + "35858791/e2e_mask_rcnn_R-50-C4_1x": "35858791/12_2017_baselines/e2e_mask_rcnn_R-50-C4_1x.yaml.01_45_57.ZgkA7hPB", # noqa B950 + "35858933/e2e_mask_rcnn_R-50-FPN_1x": "35858933/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml.01_48_14.DzEQe4wC", # noqa B950 + "35861795/e2e_mask_rcnn_R-101-FPN_1x": "35861795/12_2017_baselines/e2e_mask_rcnn_R-101-FPN_1x.yaml.02_31_37.KqyEK4tT", # noqa B950 + "36761843/e2e_mask_rcnn_X-101-32x8d-FPN_1x": "36761843/12_2017_baselines/e2e_mask_rcnn_X-101-32x8d-FPN_1x.yaml.06_35_59.RZotkLKI", # noqa B950 + "48616381/e2e_mask_rcnn_R-50-FPN_2x_gn": "GN/48616381/04_2018_gn_baselines/e2e_mask_rcnn_R-50-FPN_2x_gn_0416.13_23_38.bTlTI97Q", # noqa B950 + "37697547/e2e_keypoint_rcnn_R-50-FPN_1x": "37697547/12_2017_baselines/e2e_keypoint_rcnn_R-50-FPN_1x.yaml.08_42_54.kdzV35ao", # noqa B950 + "35998355/rpn_R-50-C4_1x": "35998355/12_2017_baselines/rpn_R-50-C4_1x.yaml.08_00_43.njH5oD9L", # noqa B950 + "35998814/rpn_R-50-FPN_1x": "35998814/12_2017_baselines/rpn_R-50-FPN_1x.yaml.08_06_03.Axg0r179", # noqa B950 + "36225147/fast_R-50-FPN_1x": "36225147/12_2017_baselines/fast_rcnn_R-50-FPN_1x.yaml.08_39_09.L3obSdQ2", # noqa B950 + } + + @staticmethod + def get(name): + if name.startswith("Caffe2Detectron/COCO"): + return ModelCatalog._get_c2_detectron_baseline(name) + if name.startswith("ImageNetPretrained/"): + return ModelCatalog._get_c2_imagenet_pretrained(name) + raise RuntimeError("model not present in the catalog: {}".format(name)) + + @staticmethod + def _get_c2_imagenet_pretrained(name): + prefix = ModelCatalog.S3_C2_DETECTRON_PREFIX + name = name[len("ImageNetPretrained/") :] + name = ModelCatalog.C2_IMAGENET_MODELS[name] + url = "/".join([prefix, name]) + return url + + @staticmethod + def _get_c2_detectron_baseline(name): + name = name[len("Caffe2Detectron/COCO/") :] + url = ModelCatalog.C2_DETECTRON_MODELS[name] + if "keypoint_rcnn" in name: + dataset = ModelCatalog.C2_DATASET_COCO_KEYPOINTS + else: + dataset = ModelCatalog.C2_DATASET_COCO + + if "35998355/rpn_R-50-C4_1x" in name: + # this one model is somehow different from others .. + type = "rpn" + else: + type = "generalized_rcnn" + + # Detectron C2 models are stored in the structure defined in `C2_DETECTRON_PATH_FORMAT`. + url = ModelCatalog.C2_DETECTRON_PATH_FORMAT.format( + prefix=ModelCatalog.S3_C2_DETECTRON_PREFIX, url=url, type=type, dataset=dataset + ) + return url + + +class ModelCatalogHandler(PathHandler): + """ + Resolve URL like catalog://. + """ + + PREFIX = "catalog://" + + def _get_supported_prefixes(self): + return [self.PREFIX] + + def _get_local_path(self, path, **kwargs): + logger = logging.getLogger(__name__) + catalog_path = ModelCatalog.get(path[len(self.PREFIX) :]) + logger.info("Catalog entry {} points to {}".format(path, catalog_path)) + return PathManager.get_local_path(catalog_path, **kwargs) + + def _open(self, path, mode="r", **kwargs): + return PathManager.open(self._get_local_path(path), mode, **kwargs) + + +PathManager.register_handler(ModelCatalogHandler()) diff --git a/detectron2/detectron2/checkpoint/detection_checkpoint.py b/detectron2/detectron2/checkpoint/detection_checkpoint.py new file mode 100755 index 0000000..cecb1fc --- /dev/null +++ b/detectron2/detectron2/checkpoint/detection_checkpoint.py @@ -0,0 +1,143 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import os +import pickle +from urllib.parse import parse_qs, urlparse +import torch +from fvcore.common.checkpoint import Checkpointer +from torch.nn.parallel import DistributedDataParallel + +import detectron2.utils.comm as comm +from detectron2.utils.file_io import PathManager + +from .c2_model_loading import align_and_update_state_dicts + + +class DetectionCheckpointer(Checkpointer): + """ + Same as :class:`Checkpointer`, but is able to: + 1. handle models in detectron & detectron2 model zoo, and apply conversions for legacy models. + 2. correctly load checkpoints that are only available on the master worker + """ + + def __init__(self, model, save_dir="", *, save_to_disk=None, **checkpointables): + is_main_process = comm.is_main_process() + super().__init__( + model, + save_dir, + save_to_disk=is_main_process if save_to_disk is None else save_to_disk, + **checkpointables, + ) + self.path_manager = PathManager + self._parsed_url_during_load = None + + def load(self, path, *args, **kwargs): + assert self._parsed_url_during_load is None + need_sync = False + logger = logging.getLogger(__name__) + logger.info("[DetectionCheckpointer] Loading from {} ...".format(path)) + + if path and isinstance(self.model, DistributedDataParallel): + path = self.path_manager.get_local_path(path) + has_file = os.path.isfile(path) + all_has_file = comm.all_gather(has_file) + if not all_has_file[0]: + raise OSError(f"File {path} not found on main worker.") + if not all(all_has_file): + logger.warning( + f"Not all workers can read checkpoint {path}. " + "Training may fail to fully resume." + ) + # TODO: broadcast the checkpoint file contents from main + # worker, and load from it instead. + need_sync = True + if not has_file: + path = None # don't load if not readable + + if path: + parsed_url = urlparse(path) + self._parsed_url_during_load = parsed_url + path = parsed_url._replace(query="").geturl() # remove query from filename + path = self.path_manager.get_local_path(path) + ret = super().load(path, *args, **kwargs) + + if need_sync: + logger.info("Broadcasting model states from main worker ...") + self.model._sync_params_and_buffers() + self._parsed_url_during_load = None # reset to None + return ret + + def _load_file(self, filename): + if filename.endswith(".pkl"): + with PathManager.open(filename, "rb") as f: + data = pickle.load(f, encoding="latin1") + if "model" in data and "__author__" in data: + # file is in Detectron2 model zoo format + self.logger.info("Reading a file from '{}'".format(data["__author__"])) + return data + else: + # assume file is from Caffe2 / Detectron1 model zoo + if "blobs" in data: + # Detection models have "blobs", but ImageNet models don't + data = data["blobs"] + data = {k: v for k, v in data.items() if not k.endswith("_momentum")} + return {"model": data, "__author__": "Caffe2", "matching_heuristics": True} + elif filename.endswith(".pyth"): + # assume file is from pycls; no one else seems to use the ".pyth" extension + with PathManager.open(filename, "rb") as f: + data = torch.load(f) + assert ( + "model_state" in data + ), f"Cannot load .pyth file {filename}; pycls checkpoints must contain 'model_state'." + model_state = { + k: v + for k, v in data["model_state"].items() + if not k.endswith("num_batches_tracked") + } + return {"model": model_state, "__author__": "pycls", "matching_heuristics": True} + + loaded = self._torch_load(filename) + if "model" not in loaded: + loaded = {"model": loaded} + assert self._parsed_url_during_load is not None, "`_load_file` must be called inside `load`" + parsed_url = self._parsed_url_during_load + queries = parse_qs(parsed_url.query) + if queries.pop("matching_heuristics", "False") == ["True"]: + loaded["matching_heuristics"] = True + if len(queries) > 0: + raise ValueError( + f"Unsupported query remaining: f{queries}, orginal filename: {parsed_url.geturl()}" + ) + return loaded + + def _torch_load(self, f): + return super()._load_file(f) + + def _load_model(self, checkpoint): + if checkpoint.get("matching_heuristics", False): + self._convert_ndarray_to_tensor(checkpoint["model"]) + # convert weights by name-matching heuristics + checkpoint["model"] = align_and_update_state_dicts( + self.model.state_dict(), + checkpoint["model"], + c2_conversion=checkpoint.get("__author__", None) == "Caffe2", + ) + # for non-caffe2 models, use standard ways to load it + incompatible = super()._load_model(checkpoint) + + model_buffers = dict(self.model.named_buffers(recurse=False)) + for k in ["pixel_mean", "pixel_std"]: + # Ignore missing key message about pixel_mean/std. + # Though they may be missing in old checkpoints, they will be correctly + # initialized from config anyway. + if k in model_buffers: + try: + incompatible.missing_keys.remove(k) + except ValueError: + pass + for k in incompatible.unexpected_keys[:]: + # Ignore unexpected keys about cell anchors. They exist in old checkpoints + # but now they are non-persistent buffers and will not be in new checkpoints. + if "anchor_generator.cell_anchors" in k: + incompatible.unexpected_keys.remove(k) + return incompatible diff --git a/detectron2/detectron2/config/__init__.py b/detectron2/detectron2/config/__init__.py new file mode 100755 index 0000000..4e648e6 --- /dev/null +++ b/detectron2/detectron2/config/__init__.py @@ -0,0 +1,24 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .compat import downgrade_config, upgrade_config +from .config import CfgNode, get_cfg, global_cfg, set_global_cfg, configurable +from .instantiate import instantiate +from .lazy import LazyCall, LazyConfig + +__all__ = [ + "CfgNode", + "get_cfg", + "global_cfg", + "set_global_cfg", + "downgrade_config", + "upgrade_config", + "configurable", + "instantiate", + "LazyCall", + "LazyConfig", +] + + +from detectron2.utils.env import fixup_module_metadata + +fixup_module_metadata(__name__, globals(), __all__) +del fixup_module_metadata diff --git a/detectron2/detectron2/config/compat.py b/detectron2/detectron2/config/compat.py new file mode 100755 index 0000000..11a08c4 --- /dev/null +++ b/detectron2/detectron2/config/compat.py @@ -0,0 +1,229 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Backward compatibility of configs. + +Instructions to bump version: ++ It's not needed to bump version if new keys are added. + It's only needed when backward-incompatible changes happen + (i.e., some existing keys disappear, or the meaning of a key changes) ++ To bump version, do the following: + 1. Increment _C.VERSION in defaults.py + 2. Add a converter in this file. + + Each ConverterVX has a function "upgrade" which in-place upgrades config from X-1 to X, + and a function "downgrade" which in-place downgrades config from X to X-1 + + In each function, VERSION is left unchanged. + + Each converter assumes that its input has the relevant keys + (i.e., the input is not a partial config). + 3. Run the tests (test_config.py) to make sure the upgrade & downgrade + functions are consistent. +""" + +import logging +from typing import List, Optional, Tuple + +from .config import CfgNode as CN +from .defaults import _C + +__all__ = ["upgrade_config", "downgrade_config"] + + +def upgrade_config(cfg: CN, to_version: Optional[int] = None) -> CN: + """ + Upgrade a config from its current version to a newer version. + + Args: + cfg (CfgNode): + to_version (int): defaults to the latest version. + """ + cfg = cfg.clone() + if to_version is None: + to_version = _C.VERSION + + assert cfg.VERSION <= to_version, "Cannot upgrade from v{} to v{}!".format( + cfg.VERSION, to_version + ) + for k in range(cfg.VERSION, to_version): + converter = globals()["ConverterV" + str(k + 1)] + converter.upgrade(cfg) + cfg.VERSION = k + 1 + return cfg + + +def downgrade_config(cfg: CN, to_version: int) -> CN: + """ + Downgrade a config from its current version to an older version. + + Args: + cfg (CfgNode): + to_version (int): + + Note: + A general downgrade of arbitrary configs is not always possible due to the + different functionalities in different versions. + The purpose of downgrade is only to recover the defaults in old versions, + allowing it to load an old partial yaml config. + Therefore, the implementation only needs to fill in the default values + in the old version when a general downgrade is not possible. + """ + cfg = cfg.clone() + assert cfg.VERSION >= to_version, "Cannot downgrade from v{} to v{}!".format( + cfg.VERSION, to_version + ) + for k in range(cfg.VERSION, to_version, -1): + converter = globals()["ConverterV" + str(k)] + converter.downgrade(cfg) + cfg.VERSION = k - 1 + return cfg + + +def guess_version(cfg: CN, filename: str) -> int: + """ + Guess the version of a partial config where the VERSION field is not specified. + Returns the version, or the latest if cannot make a guess. + + This makes it easier for users to migrate. + """ + logger = logging.getLogger(__name__) + + def _has(name: str) -> bool: + cur = cfg + for n in name.split("."): + if n not in cur: + return False + cur = cur[n] + return True + + # Most users' partial configs have "MODEL.WEIGHT", so guess on it + ret = None + if _has("MODEL.WEIGHT") or _has("TEST.AUG_ON"): + ret = 1 + + if ret is not None: + logger.warning("Config '{}' has no VERSION. Assuming it to be v{}.".format(filename, ret)) + else: + ret = _C.VERSION + logger.warning( + "Config '{}' has no VERSION. Assuming it to be compatible with latest v{}.".format( + filename, ret + ) + ) + return ret + + +def _rename(cfg: CN, old: str, new: str) -> None: + old_keys = old.split(".") + new_keys = new.split(".") + + def _set(key_seq: List[str], val: str) -> None: + cur = cfg + for k in key_seq[:-1]: + if k not in cur: + cur[k] = CN() + cur = cur[k] + cur[key_seq[-1]] = val + + def _get(key_seq: List[str]) -> CN: + cur = cfg + for k in key_seq: + cur = cur[k] + return cur + + def _del(key_seq: List[str]) -> None: + cur = cfg + for k in key_seq[:-1]: + cur = cur[k] + del cur[key_seq[-1]] + if len(cur) == 0 and len(key_seq) > 1: + _del(key_seq[:-1]) + + _set(new_keys, _get(old_keys)) + _del(old_keys) + + +class _RenameConverter: + """ + A converter that handles simple rename. + """ + + RENAME: List[Tuple[str, str]] = [] # list of tuples of (old name, new name) + + @classmethod + def upgrade(cls, cfg: CN) -> None: + for old, new in cls.RENAME: + _rename(cfg, old, new) + + @classmethod + def downgrade(cls, cfg: CN) -> None: + for old, new in cls.RENAME[::-1]: + _rename(cfg, new, old) + + +class ConverterV1(_RenameConverter): + RENAME = [("MODEL.RPN_HEAD.NAME", "MODEL.RPN.HEAD_NAME")] + + +class ConverterV2(_RenameConverter): + """ + A large bulk of rename, before public release. + """ + + RENAME = [ + ("MODEL.WEIGHT", "MODEL.WEIGHTS"), + ("MODEL.PANOPTIC_FPN.SEMANTIC_LOSS_SCALE", "MODEL.SEM_SEG_HEAD.LOSS_WEIGHT"), + ("MODEL.PANOPTIC_FPN.RPN_LOSS_SCALE", "MODEL.RPN.LOSS_WEIGHT"), + ("MODEL.PANOPTIC_FPN.INSTANCE_LOSS_SCALE", "MODEL.PANOPTIC_FPN.INSTANCE_LOSS_WEIGHT"), + ("MODEL.PANOPTIC_FPN.COMBINE_ON", "MODEL.PANOPTIC_FPN.COMBINE.ENABLED"), + ( + "MODEL.PANOPTIC_FPN.COMBINE_OVERLAP_THRESHOLD", + "MODEL.PANOPTIC_FPN.COMBINE.OVERLAP_THRESH", + ), + ( + "MODEL.PANOPTIC_FPN.COMBINE_STUFF_AREA_LIMIT", + "MODEL.PANOPTIC_FPN.COMBINE.STUFF_AREA_LIMIT", + ), + ( + "MODEL.PANOPTIC_FPN.COMBINE_INSTANCES_CONFIDENCE_THRESHOLD", + "MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH", + ), + ("MODEL.ROI_HEADS.SCORE_THRESH", "MODEL.ROI_HEADS.SCORE_THRESH_TEST"), + ("MODEL.ROI_HEADS.NMS", "MODEL.ROI_HEADS.NMS_THRESH_TEST"), + ("MODEL.RETINANET.INFERENCE_SCORE_THRESHOLD", "MODEL.RETINANET.SCORE_THRESH_TEST"), + ("MODEL.RETINANET.INFERENCE_TOPK_CANDIDATES", "MODEL.RETINANET.TOPK_CANDIDATES_TEST"), + ("MODEL.RETINANET.INFERENCE_NMS_THRESHOLD", "MODEL.RETINANET.NMS_THRESH_TEST"), + ("TEST.DETECTIONS_PER_IMG", "TEST.DETECTIONS_PER_IMAGE"), + ("TEST.AUG_ON", "TEST.AUG.ENABLED"), + ("TEST.AUG_MIN_SIZES", "TEST.AUG.MIN_SIZES"), + ("TEST.AUG_MAX_SIZE", "TEST.AUG.MAX_SIZE"), + ("TEST.AUG_FLIP", "TEST.AUG.FLIP"), + ] + + @classmethod + def upgrade(cls, cfg: CN) -> None: + super().upgrade(cfg) + + if cfg.MODEL.META_ARCHITECTURE == "RetinaNet": + _rename( + cfg, "MODEL.RETINANET.ANCHOR_ASPECT_RATIOS", "MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS" + ) + _rename(cfg, "MODEL.RETINANET.ANCHOR_SIZES", "MODEL.ANCHOR_GENERATOR.SIZES") + del cfg["MODEL"]["RPN"]["ANCHOR_SIZES"] + del cfg["MODEL"]["RPN"]["ANCHOR_ASPECT_RATIOS"] + else: + _rename(cfg, "MODEL.RPN.ANCHOR_ASPECT_RATIOS", "MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS") + _rename(cfg, "MODEL.RPN.ANCHOR_SIZES", "MODEL.ANCHOR_GENERATOR.SIZES") + del cfg["MODEL"]["RETINANET"]["ANCHOR_SIZES"] + del cfg["MODEL"]["RETINANET"]["ANCHOR_ASPECT_RATIOS"] + del cfg["MODEL"]["RETINANET"]["ANCHOR_STRIDES"] + + @classmethod + def downgrade(cls, cfg: CN) -> None: + super().downgrade(cfg) + + _rename(cfg, "MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS", "MODEL.RPN.ANCHOR_ASPECT_RATIOS") + _rename(cfg, "MODEL.ANCHOR_GENERATOR.SIZES", "MODEL.RPN.ANCHOR_SIZES") + cfg.MODEL.RETINANET.ANCHOR_ASPECT_RATIOS = cfg.MODEL.RPN.ANCHOR_ASPECT_RATIOS + cfg.MODEL.RETINANET.ANCHOR_SIZES = cfg.MODEL.RPN.ANCHOR_SIZES + cfg.MODEL.RETINANET.ANCHOR_STRIDES = [] # this is not used anywhere in any version diff --git a/detectron2/detectron2/config/config.py b/detectron2/detectron2/config/config.py new file mode 100755 index 0000000..49a55b1 --- /dev/null +++ b/detectron2/detectron2/config/config.py @@ -0,0 +1,265 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import functools +import inspect +import logging +from fvcore.common.config import CfgNode as _CfgNode + +from detectron2.utils.file_io import PathManager + + +class CfgNode(_CfgNode): + """ + The same as `fvcore.common.config.CfgNode`, but different in: + + 1. Use unsafe yaml loading by default. + Note that this may lead to arbitrary code execution: you must not + load a config file from untrusted sources before manually inspecting + the content of the file. + 2. Support config versioning. + When attempting to merge an old config, it will convert the old config automatically. + + .. automethod:: clone + .. automethod:: freeze + .. automethod:: defrost + .. automethod:: is_frozen + .. automethod:: load_yaml_with_base + .. automethod:: merge_from_list + .. automethod:: merge_from_other_cfg + """ + + @classmethod + def _open_cfg(cls, filename): + return PathManager.open(filename, "r") + + # Note that the default value of allow_unsafe is changed to True + def merge_from_file(self, cfg_filename: str, allow_unsafe: bool = True) -> None: + """ + Load content from the given config file and merge it into self. + + Args: + cfg_filename: config filename + allow_unsafe: allow unsafe yaml syntax + """ + assert PathManager.isfile(cfg_filename), f"Config file '{cfg_filename}' does not exist!" + loaded_cfg = self.load_yaml_with_base(cfg_filename, allow_unsafe=allow_unsafe) + loaded_cfg = type(self)(loaded_cfg) + + # defaults.py needs to import CfgNode + from .defaults import _C + + latest_ver = _C.VERSION + assert ( + latest_ver == self.VERSION + ), "CfgNode.merge_from_file is only allowed on a config object of latest version!" + + logger = logging.getLogger(__name__) + + loaded_ver = loaded_cfg.get("VERSION", None) + if loaded_ver is None: + from .compat import guess_version + + loaded_ver = guess_version(loaded_cfg, cfg_filename) + assert loaded_ver <= self.VERSION, "Cannot merge a v{} config into a v{} config.".format( + loaded_ver, self.VERSION + ) + + if loaded_ver == self.VERSION: + self.merge_from_other_cfg(loaded_cfg) + else: + # compat.py needs to import CfgNode + from .compat import upgrade_config, downgrade_config + + logger.warning( + "Loading an old v{} config file '{}' by automatically upgrading to v{}. " + "See docs/CHANGELOG.md for instructions to update your files.".format( + loaded_ver, cfg_filename, self.VERSION + ) + ) + # To convert, first obtain a full config at an old version + old_self = downgrade_config(self, to_version=loaded_ver) + old_self.merge_from_other_cfg(loaded_cfg) + new_config = upgrade_config(old_self) + self.clear() + self.update(new_config) + + def dump(self, *args, **kwargs): + """ + Returns: + str: a yaml string representation of the config + """ + # to make it show up in docs + return super().dump(*args, **kwargs) + + +global_cfg = CfgNode() + + +def get_cfg() -> CfgNode: + """ + Get a copy of the default config. + + Returns: + a detectron2 CfgNode instance. + """ + from .defaults import _C + + return _C.clone() + + +def set_global_cfg(cfg: CfgNode) -> None: + """ + Let the global config point to the given cfg. + + Assume that the given "cfg" has the key "KEY", after calling + `set_global_cfg(cfg)`, the key can be accessed by: + :: + from detectron2.config import global_cfg + print(global_cfg.KEY) + + By using a hacky global config, you can access these configs anywhere, + without having to pass the config object or the values deep into the code. + This is a hacky feature introduced for quick prototyping / research exploration. + """ + global global_cfg + global_cfg.clear() + global_cfg.update(cfg) + + +def configurable(init_func=None, *, from_config=None): + """ + Decorate a function or a class's __init__ method so that it can be called + with a :class:`CfgNode` object using a :func:`from_config` function that translates + :class:`CfgNode` to arguments. + + Examples: + :: + # Usage 1: Decorator on __init__: + class A: + @configurable + def __init__(self, a, b=2, c=3): + pass + + @classmethod + def from_config(cls, cfg): # 'cfg' must be the first argument + # Returns kwargs to be passed to __init__ + return {"a": cfg.A, "b": cfg.B} + + a1 = A(a=1, b=2) # regular construction + a2 = A(cfg) # construct with a cfg + a3 = A(cfg, b=3, c=4) # construct with extra overwrite + + # Usage 2: Decorator on any function. Needs an extra from_config argument: + @configurable(from_config=lambda cfg: {"a: cfg.A, "b": cfg.B}) + def a_func(a, b=2, c=3): + pass + + a1 = a_func(a=1, b=2) # regular call + a2 = a_func(cfg) # call with a cfg + a3 = a_func(cfg, b=3, c=4) # call with extra overwrite + + Args: + init_func (callable): a class's ``__init__`` method in usage 1. The + class must have a ``from_config`` classmethod which takes `cfg` as + the first argument. + from_config (callable): the from_config function in usage 2. It must take `cfg` + as its first argument. + """ + + if init_func is not None: + assert ( + inspect.isfunction(init_func) + and from_config is None + and init_func.__name__ == "__init__" + ), "Incorrect use of @configurable. Check API documentation for examples." + + @functools.wraps(init_func) + def wrapped(self, *args, **kwargs): + try: + from_config_func = type(self).from_config + except AttributeError as e: + raise AttributeError( + "Class with @configurable must have a 'from_config' classmethod." + ) from e + if not inspect.ismethod(from_config_func): + raise TypeError("Class with @configurable must have a 'from_config' classmethod.") + + if _called_with_cfg(*args, **kwargs): + explicit_args = _get_args_from_config(from_config_func, *args, **kwargs) + init_func(self, **explicit_args) + else: + init_func(self, *args, **kwargs) + + return wrapped + + else: + if from_config is None: + return configurable # @configurable() is made equivalent to @configurable + assert inspect.isfunction( + from_config + ), "from_config argument of configurable must be a function!" + + def wrapper(orig_func): + @functools.wraps(orig_func) + def wrapped(*args, **kwargs): + if _called_with_cfg(*args, **kwargs): + explicit_args = _get_args_from_config(from_config, *args, **kwargs) + return orig_func(**explicit_args) + else: + return orig_func(*args, **kwargs) + + wrapped.from_config = from_config + return wrapped + + return wrapper + + +def _get_args_from_config(from_config_func, *args, **kwargs): + """ + Use `from_config` to obtain explicit arguments. + + Returns: + dict: arguments to be used for cls.__init__ + """ + signature = inspect.signature(from_config_func) + if list(signature.parameters.keys())[0] != "cfg": + if inspect.isfunction(from_config_func): + name = from_config_func.__name__ + else: + name = f"{from_config_func.__self__}.from_config" + raise TypeError(f"{name} must take 'cfg' as the first argument!") + support_var_arg = any( + param.kind in [param.VAR_POSITIONAL, param.VAR_KEYWORD] + for param in signature.parameters.values() + ) + if support_var_arg: # forward all arguments to from_config, if from_config accepts them + ret = from_config_func(*args, **kwargs) + else: + # forward supported arguments to from_config + supported_arg_names = set(signature.parameters.keys()) + extra_kwargs = {} + for name in list(kwargs.keys()): + if name not in supported_arg_names: + extra_kwargs[name] = kwargs.pop(name) + ret = from_config_func(*args, **kwargs) + # forward the other arguments to __init__ + ret.update(extra_kwargs) + return ret + + +def _called_with_cfg(*args, **kwargs): + """ + Returns: + bool: whether the arguments contain CfgNode and should be considered + forwarded to from_config. + """ + from omegaconf import DictConfig + + if len(args) and isinstance(args[0], (_CfgNode, DictConfig)): + return True + if isinstance(kwargs.pop("cfg", None), (_CfgNode, DictConfig)): + return True + # `from_config`'s first argument is forced to be "cfg". + # So the above check covers all cases. + return False diff --git a/detectron2/detectron2/config/defaults.py b/detectron2/detectron2/config/defaults.py new file mode 100755 index 0000000..bd2a5f6 --- /dev/null +++ b/detectron2/detectron2/config/defaults.py @@ -0,0 +1,650 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .config import CfgNode as CN + +# NOTE: given the new config system +# (https://detectron2.readthedocs.io/en/latest/tutorials/lazyconfigs.html), +# we will stop adding new functionalities to default CfgNode. + +# ----------------------------------------------------------------------------- +# Convention about Training / Test specific parameters +# ----------------------------------------------------------------------------- +# Whenever an argument can be either used for training or for testing, the +# corresponding name will be post-fixed by a _TRAIN for a training parameter, +# or _TEST for a test-specific parameter. +# For example, the number of images during training will be +# IMAGES_PER_BATCH_TRAIN, while the number of images for testing will be +# IMAGES_PER_BATCH_TEST + +# ----------------------------------------------------------------------------- +# Config definition +# ----------------------------------------------------------------------------- + +_C = CN() + +# The version number, to upgrade from old configs to new ones if any +# changes happen. It's recommended to keep a VERSION in your config file. +_C.VERSION = 2 + +_C.MODEL = CN() +_C.MODEL.LOAD_PROPOSALS = False +_C.MODEL.MASK_ON = False +_C.MODEL.KEYPOINT_ON = False +_C.MODEL.DEVICE = "cuda" +_C.MODEL.META_ARCHITECTURE = "GeneralizedRCNN" + +# Path (a file path, or URL like detectron2://.., https://..) to a checkpoint file +# to be loaded to the model. You can find available models in the model zoo. +_C.MODEL.WEIGHTS = "" + +# Values to be used for image normalization (BGR order, since INPUT.FORMAT defaults to BGR). +# To train on images of different number of channels, just set different mean & std. +# Default values are the mean pixel value from ImageNet: [103.53, 116.28, 123.675] +_C.MODEL.PIXEL_MEAN = [103.530, 116.280, 123.675] +# When using pre-trained models in Detectron1 or any MSRA models, +# std has been absorbed into its conv1 weights, so the std needs to be set 1. +# Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) +_C.MODEL.PIXEL_STD = [1.0, 1.0, 1.0] + + +# ----------------------------------------------------------------------------- +# INPUT +# ----------------------------------------------------------------------------- +_C.INPUT = CN() +# By default, {MIN,MAX}_SIZE options are used in transforms.ResizeShortestEdge. +# Please refer to ResizeShortestEdge for detailed definition. +# Size of the smallest side of the image during training +_C.INPUT.MIN_SIZE_TRAIN = (800,) +# Sample size of smallest side by choice or random selection from range give by +# INPUT.MIN_SIZE_TRAIN +_C.INPUT.MIN_SIZE_TRAIN_SAMPLING = "choice" +# Maximum size of the side of the image during training +_C.INPUT.MAX_SIZE_TRAIN = 1333 +# Size of the smallest side of the image during testing. Set to zero to disable resize in testing. +_C.INPUT.MIN_SIZE_TEST = 800 +# Maximum size of the side of the image during testing +_C.INPUT.MAX_SIZE_TEST = 1333 +# Mode for flipping images used in data augmentation during training +# choose one of ["horizontal, "vertical", "none"] +_C.INPUT.RANDOM_FLIP = "horizontal" + +# `True` if cropping is used for data augmentation during training +_C.INPUT.CROP = CN({"ENABLED": False}) +# Cropping type. See documentation of `detectron2.data.transforms.RandomCrop` for explanation. +_C.INPUT.CROP.TYPE = "relative_range" +# Size of crop in range (0, 1] if CROP.TYPE is "relative" or "relative_range" and in number of +# pixels if CROP.TYPE is "absolute" +_C.INPUT.CROP.SIZE = [0.9, 0.9] + + +# Whether the model needs RGB, YUV, HSV etc. +# Should be one of the modes defined here, as we use PIL to read the image: +# https://pillow.readthedocs.io/en/stable/handbook/concepts.html#concept-modes +# with BGR being the one exception. One can set image format to BGR, we will +# internally use RGB for conversion and flip the channels over +_C.INPUT.FORMAT = "BGR" +# The ground truth mask format that the model will use. +# Mask R-CNN supports either "polygon" or "bitmask" as ground truth. +_C.INPUT.MASK_FORMAT = "polygon" # alternative: "bitmask" + + +# ----------------------------------------------------------------------------- +# Dataset +# ----------------------------------------------------------------------------- +_C.DATASETS = CN() +# List of the dataset names for training. Must be registered in DatasetCatalog +# Samples from these datasets will be merged and used as one dataset. +_C.DATASETS.TRAIN = () +# List of the pre-computed proposal files for training, which must be consistent +# with datasets listed in DATASETS.TRAIN. +_C.DATASETS.PROPOSAL_FILES_TRAIN = () +# Number of top scoring precomputed proposals to keep for training +_C.DATASETS.PRECOMPUTED_PROPOSAL_TOPK_TRAIN = 2000 +# List of the dataset names for testing. Must be registered in DatasetCatalog +_C.DATASETS.TEST = () +# List of the pre-computed proposal files for test, which must be consistent +# with datasets listed in DATASETS.TEST. +_C.DATASETS.PROPOSAL_FILES_TEST = () +# Number of top scoring precomputed proposals to keep for test +_C.DATASETS.PRECOMPUTED_PROPOSAL_TOPK_TEST = 1000 + +# ----------------------------------------------------------------------------- +# DataLoader +# ----------------------------------------------------------------------------- +_C.DATALOADER = CN() +# Number of data loading threads +_C.DATALOADER.NUM_WORKERS = 4 +# If True, each batch should contain only images for which the aspect ratio +# is compatible. This groups portrait images together, and landscape images +# are not batched with portrait images. +_C.DATALOADER.ASPECT_RATIO_GROUPING = True +# Options: TrainingSampler, RepeatFactorTrainingSampler +_C.DATALOADER.SAMPLER_TRAIN = "TrainingSampler" +# Repeat threshold for RepeatFactorTrainingSampler +_C.DATALOADER.REPEAT_THRESHOLD = 0.0 +# Tf True, when working on datasets that have instance annotations, the +# training dataloader will filter out images without associated annotations +_C.DATALOADER.FILTER_EMPTY_ANNOTATIONS = True + +# ---------------------------------------------------------------------------- # +# Backbone options +# ---------------------------------------------------------------------------- # +_C.MODEL.BACKBONE = CN() + +_C.MODEL.BACKBONE.NAME = "build_resnet_backbone" +# Freeze the first several stages so they are not trained. +# There are 5 stages in ResNet. The first is a convolution, and the following +# stages are each group of residual blocks. +_C.MODEL.BACKBONE.FREEZE_AT = 2 + + +# ---------------------------------------------------------------------------- # +# FPN options +# ---------------------------------------------------------------------------- # +_C.MODEL.FPN = CN() +# Names of the input feature maps to be used by FPN +# They must have contiguous power of 2 strides +# e.g., ["res2", "res3", "res4", "res5"] +_C.MODEL.FPN.IN_FEATURES = [] +_C.MODEL.FPN.OUT_CHANNELS = 256 + +# Options: "" (no norm), "GN" +_C.MODEL.FPN.NORM = "" + +# Types for fusing the FPN top-down and lateral features. Can be either "sum" or "avg" +_C.MODEL.FPN.FUSE_TYPE = "sum" + + +# ---------------------------------------------------------------------------- # +# Proposal generator options +# ---------------------------------------------------------------------------- # +_C.MODEL.PROPOSAL_GENERATOR = CN() +# Current proposal generators include "RPN", "RRPN" and "PrecomputedProposals" +_C.MODEL.PROPOSAL_GENERATOR.NAME = "RPN" +# Proposal height and width both need to be greater than MIN_SIZE +# (a the scale used during training or inference) +_C.MODEL.PROPOSAL_GENERATOR.MIN_SIZE = 0 + + +# ---------------------------------------------------------------------------- # +# Anchor generator options +# ---------------------------------------------------------------------------- # +_C.MODEL.ANCHOR_GENERATOR = CN() +# The generator can be any name in the ANCHOR_GENERATOR registry +_C.MODEL.ANCHOR_GENERATOR.NAME = "DefaultAnchorGenerator" +# Anchor sizes (i.e. sqrt of area) in absolute pixels w.r.t. the network input. +# Format: list[list[float]]. SIZES[i] specifies the list of sizes to use for +# IN_FEATURES[i]; len(SIZES) must be equal to len(IN_FEATURES) or 1. +# When len(SIZES) == 1, SIZES[0] is used for all IN_FEATURES. +_C.MODEL.ANCHOR_GENERATOR.SIZES = [[32, 64, 128, 256, 512]] +# Anchor aspect ratios. For each area given in `SIZES`, anchors with different aspect +# ratios are generated by an anchor generator. +# Format: list[list[float]]. ASPECT_RATIOS[i] specifies the list of aspect ratios (H/W) +# to use for IN_FEATURES[i]; len(ASPECT_RATIOS) == len(IN_FEATURES) must be true, +# or len(ASPECT_RATIOS) == 1 is true and aspect ratio list ASPECT_RATIOS[0] is used +# for all IN_FEATURES. +_C.MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS = [[0.5, 1.0, 2.0]] +# Anchor angles. +# list[list[float]], the angle in degrees, for each input feature map. +# ANGLES[i] specifies the list of angles for IN_FEATURES[i]. +_C.MODEL.ANCHOR_GENERATOR.ANGLES = [[-90, 0, 90]] +# Relative offset between the center of the first anchor and the top-left corner of the image +# Value has to be in [0, 1). Recommend to use 0.5, which means half stride. +# The value is not expected to affect model accuracy. +_C.MODEL.ANCHOR_GENERATOR.OFFSET = 0.0 + +# ---------------------------------------------------------------------------- # +# RPN options +# ---------------------------------------------------------------------------- # +_C.MODEL.RPN = CN() +_C.MODEL.RPN.HEAD_NAME = "StandardRPNHead" # used by RPN_HEAD_REGISTRY + +# Names of the input feature maps to be used by RPN +# e.g., ["p2", "p3", "p4", "p5", "p6"] for FPN +_C.MODEL.RPN.IN_FEATURES = ["res4"] +# Remove RPN anchors that go outside the image by BOUNDARY_THRESH pixels +# Set to -1 or a large value, e.g. 100000, to disable pruning anchors +_C.MODEL.RPN.BOUNDARY_THRESH = -1 +# IOU overlap ratios [BG_IOU_THRESHOLD, FG_IOU_THRESHOLD] +# Minimum overlap required between an anchor and ground-truth box for the +# (anchor, gt box) pair to be a positive example (IoU >= FG_IOU_THRESHOLD +# ==> positive RPN example: 1) +# Maximum overlap allowed between an anchor and ground-truth box for the +# (anchor, gt box) pair to be a negative examples (IoU < BG_IOU_THRESHOLD +# ==> negative RPN example: 0) +# Anchors with overlap in between (BG_IOU_THRESHOLD <= IoU < FG_IOU_THRESHOLD) +# are ignored (-1) +_C.MODEL.RPN.IOU_THRESHOLDS = [0.3, 0.7] +_C.MODEL.RPN.IOU_LABELS = [0, -1, 1] +# Number of regions per image used to train RPN +_C.MODEL.RPN.BATCH_SIZE_PER_IMAGE = 256 +# Target fraction of foreground (positive) examples per RPN minibatch +_C.MODEL.RPN.POSITIVE_FRACTION = 0.5 +# Options are: "smooth_l1", "giou", "diou", "ciou" +_C.MODEL.RPN.BBOX_REG_LOSS_TYPE = "smooth_l1" +_C.MODEL.RPN.BBOX_REG_LOSS_WEIGHT = 1.0 +# Weights on (dx, dy, dw, dh) for normalizing RPN anchor regression targets +_C.MODEL.RPN.BBOX_REG_WEIGHTS = (1.0, 1.0, 1.0, 1.0) +# The transition point from L1 to L2 loss. Set to 0.0 to make the loss simply L1. +_C.MODEL.RPN.SMOOTH_L1_BETA = 0.0 +_C.MODEL.RPN.LOSS_WEIGHT = 1.0 +# Number of top scoring RPN proposals to keep before applying NMS +# When FPN is used, this is *per FPN level* (not total) +_C.MODEL.RPN.PRE_NMS_TOPK_TRAIN = 12000 +_C.MODEL.RPN.PRE_NMS_TOPK_TEST = 6000 +# Number of top scoring RPN proposals to keep after applying NMS +# When FPN is used, this limit is applied per level and then again to the union +# of proposals from all levels +# NOTE: When FPN is used, the meaning of this config is different from Detectron1. +# It means per-batch topk in Detectron1, but per-image topk here. +# See the "find_top_rpn_proposals" function for details. +_C.MODEL.RPN.POST_NMS_TOPK_TRAIN = 2000 +_C.MODEL.RPN.POST_NMS_TOPK_TEST = 1000 +# NMS threshold used on RPN proposals +_C.MODEL.RPN.NMS_THRESH = 0.7 +# Set this to -1 to use the same number of output channels as input channels. +_C.MODEL.RPN.CONV_DIMS = [-1] + +# ---------------------------------------------------------------------------- # +# ROI HEADS options +# ---------------------------------------------------------------------------- # +_C.MODEL.ROI_HEADS = CN() +_C.MODEL.ROI_HEADS.NAME = "Res5ROIHeads" +# Number of foreground classes +_C.MODEL.ROI_HEADS.NUM_CLASSES = 80 +# Names of the input feature maps to be used by ROI heads +# Currently all heads (box, mask, ...) use the same input feature map list +# e.g., ["p2", "p3", "p4", "p5"] is commonly used for FPN +_C.MODEL.ROI_HEADS.IN_FEATURES = ["res4"] +# IOU overlap ratios [IOU_THRESHOLD] +# Overlap threshold for an RoI to be considered background (if < IOU_THRESHOLD) +# Overlap threshold for an RoI to be considered foreground (if >= IOU_THRESHOLD) +_C.MODEL.ROI_HEADS.IOU_THRESHOLDS = [0.5] +_C.MODEL.ROI_HEADS.IOU_LABELS = [0, 1] +# RoI minibatch size *per image* (number of regions of interest [ROIs]) during training +# Total number of RoIs per training minibatch = +# ROI_HEADS.BATCH_SIZE_PER_IMAGE * SOLVER.IMS_PER_BATCH +# E.g., a common configuration is: 512 * 16 = 8192 +_C.MODEL.ROI_HEADS.BATCH_SIZE_PER_IMAGE = 512 +# Target fraction of RoI minibatch that is labeled foreground (i.e. class > 0) +_C.MODEL.ROI_HEADS.POSITIVE_FRACTION = 0.25 + +# Only used on test mode + +# Minimum score threshold (assuming scores in a [0, 1] range); a value chosen to +# balance obtaining high recall with not having too many low precision +# detections that will slow down inference post processing steps (like NMS) +# A default threshold of 0.0 increases AP by ~0.2-0.3 but significantly slows down +# inference. +_C.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.05 +# Overlap threshold used for non-maximum suppression (suppress boxes with +# IoU >= this threshold) +_C.MODEL.ROI_HEADS.NMS_THRESH_TEST = 0.5 +# If True, augment proposals with ground-truth boxes before sampling proposals to +# train ROI heads. +_C.MODEL.ROI_HEADS.PROPOSAL_APPEND_GT = True + +# ---------------------------------------------------------------------------- # +# Box Head +# ---------------------------------------------------------------------------- # +_C.MODEL.ROI_BOX_HEAD = CN() +# C4 don't use head name option +# Options for non-C4 models: FastRCNNConvFCHead, +_C.MODEL.ROI_BOX_HEAD.NAME = "" +# Options are: "smooth_l1", "giou", "diou", "ciou" +_C.MODEL.ROI_BOX_HEAD.BBOX_REG_LOSS_TYPE = "smooth_l1" +# The final scaling coefficient on the box regression loss, used to balance the magnitude of its +# gradients with other losses in the model. See also `MODEL.ROI_KEYPOINT_HEAD.LOSS_WEIGHT`. +_C.MODEL.ROI_BOX_HEAD.BBOX_REG_LOSS_WEIGHT = 1.0 +# Default weights on (dx, dy, dw, dh) for normalizing bbox regression targets +# These are empirically chosen to approximately lead to unit variance targets +_C.MODEL.ROI_BOX_HEAD.BBOX_REG_WEIGHTS = (10.0, 10.0, 5.0, 5.0) +# The transition point from L1 to L2 loss. Set to 0.0 to make the loss simply L1. +_C.MODEL.ROI_BOX_HEAD.SMOOTH_L1_BETA = 0.0 +_C.MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION = 14 +_C.MODEL.ROI_BOX_HEAD.POOLER_SAMPLING_RATIO = 0 +# Type of pooling operation applied to the incoming feature map for each RoI +_C.MODEL.ROI_BOX_HEAD.POOLER_TYPE = "ROIAlignV2" + +_C.MODEL.ROI_BOX_HEAD.NUM_FC = 0 +# Hidden layer dimension for FC layers in the RoI box head +_C.MODEL.ROI_BOX_HEAD.FC_DIM = 1024 +_C.MODEL.ROI_BOX_HEAD.NUM_CONV = 0 +# Channel dimension for Conv layers in the RoI box head +_C.MODEL.ROI_BOX_HEAD.CONV_DIM = 256 +# Normalization method for the convolution layers. +# Options: "" (no norm), "GN", "SyncBN". +_C.MODEL.ROI_BOX_HEAD.NORM = "" +# Whether to use class agnostic for bbox regression +_C.MODEL.ROI_BOX_HEAD.CLS_AGNOSTIC_BBOX_REG = False +# If true, RoI heads use bounding boxes predicted by the box head rather than proposal boxes. +_C.MODEL.ROI_BOX_HEAD.TRAIN_ON_PRED_BOXES = False + +# Federated loss can be used to improve the training of LVIS +_C.MODEL.ROI_BOX_HEAD.USE_FED_LOSS = False +# Sigmoid cross entrophy is used with federated loss +_C.MODEL.ROI_BOX_HEAD.USE_SIGMOID_CE = False +# The power value applied to image_count when calcualting frequency weight +_C.MODEL.ROI_BOX_HEAD.FED_LOSS_FREQ_WEIGHT_POWER = 0.5 +# Number of classes to keep in total +_C.MODEL.ROI_BOX_HEAD.FED_LOSS_NUM_CLASSES = 50 + +# ---------------------------------------------------------------------------- # +# Cascaded Box Head +# ---------------------------------------------------------------------------- # +_C.MODEL.ROI_BOX_CASCADE_HEAD = CN() +# The number of cascade stages is implicitly defined by the length of the following two configs. +_C.MODEL.ROI_BOX_CASCADE_HEAD.BBOX_REG_WEIGHTS = ( + (10.0, 10.0, 5.0, 5.0), + (20.0, 20.0, 10.0, 10.0), + (30.0, 30.0, 15.0, 15.0), +) +_C.MODEL.ROI_BOX_CASCADE_HEAD.IOUS = (0.5, 0.6, 0.7) + + +# ---------------------------------------------------------------------------- # +# Mask Head +# ---------------------------------------------------------------------------- # +_C.MODEL.ROI_MASK_HEAD = CN() +_C.MODEL.ROI_MASK_HEAD.NAME = "MaskRCNNConvUpsampleHead" +_C.MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION = 14 +_C.MODEL.ROI_MASK_HEAD.POOLER_SAMPLING_RATIO = 0 +_C.MODEL.ROI_MASK_HEAD.NUM_CONV = 0 # The number of convs in the mask head +_C.MODEL.ROI_MASK_HEAD.CONV_DIM = 256 +# Normalization method for the convolution layers. +# Options: "" (no norm), "GN", "SyncBN". +_C.MODEL.ROI_MASK_HEAD.NORM = "" +# Whether to use class agnostic for mask prediction +_C.MODEL.ROI_MASK_HEAD.CLS_AGNOSTIC_MASK = False +# Type of pooling operation applied to the incoming feature map for each RoI +_C.MODEL.ROI_MASK_HEAD.POOLER_TYPE = "ROIAlignV2" + + +# ---------------------------------------------------------------------------- # +# Keypoint Head +# ---------------------------------------------------------------------------- # +_C.MODEL.ROI_KEYPOINT_HEAD = CN() +_C.MODEL.ROI_KEYPOINT_HEAD.NAME = "KRCNNConvDeconvUpsampleHead" +_C.MODEL.ROI_KEYPOINT_HEAD.POOLER_RESOLUTION = 14 +_C.MODEL.ROI_KEYPOINT_HEAD.POOLER_SAMPLING_RATIO = 0 +_C.MODEL.ROI_KEYPOINT_HEAD.CONV_DIMS = tuple(512 for _ in range(8)) +_C.MODEL.ROI_KEYPOINT_HEAD.NUM_KEYPOINTS = 17 # 17 is the number of keypoints in COCO. + +# Images with too few (or no) keypoints are excluded from training. +_C.MODEL.ROI_KEYPOINT_HEAD.MIN_KEYPOINTS_PER_IMAGE = 1 +# Normalize by the total number of visible keypoints in the minibatch if True. +# Otherwise, normalize by the total number of keypoints that could ever exist +# in the minibatch. +# The keypoint softmax loss is only calculated on visible keypoints. +# Since the number of visible keypoints can vary significantly between +# minibatches, this has the effect of up-weighting the importance of +# minibatches with few visible keypoints. (Imagine the extreme case of +# only one visible keypoint versus N: in the case of N, each one +# contributes 1/N to the gradient compared to the single keypoint +# determining the gradient direction). Instead, we can normalize the +# loss by the total number of keypoints, if it were the case that all +# keypoints were visible in a full minibatch. (Returning to the example, +# this means that the one visible keypoint contributes as much as each +# of the N keypoints.) +_C.MODEL.ROI_KEYPOINT_HEAD.NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS = True +# Multi-task loss weight to use for keypoints +# Recommended values: +# - use 1.0 if NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS is True +# - use 4.0 if NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS is False +_C.MODEL.ROI_KEYPOINT_HEAD.LOSS_WEIGHT = 1.0 +# Type of pooling operation applied to the incoming feature map for each RoI +_C.MODEL.ROI_KEYPOINT_HEAD.POOLER_TYPE = "ROIAlignV2" + +# ---------------------------------------------------------------------------- # +# Semantic Segmentation Head +# ---------------------------------------------------------------------------- # +_C.MODEL.SEM_SEG_HEAD = CN() +_C.MODEL.SEM_SEG_HEAD.NAME = "SemSegFPNHead" +_C.MODEL.SEM_SEG_HEAD.IN_FEATURES = ["p2", "p3", "p4", "p5"] +# Label in the semantic segmentation ground truth that is ignored, i.e., no loss is calculated for +# the correposnding pixel. +_C.MODEL.SEM_SEG_HEAD.IGNORE_VALUE = 255 +# Number of classes in the semantic segmentation head +_C.MODEL.SEM_SEG_HEAD.NUM_CLASSES = 54 +# Number of channels in the 3x3 convs inside semantic-FPN heads. +_C.MODEL.SEM_SEG_HEAD.CONVS_DIM = 128 +# Outputs from semantic-FPN heads are up-scaled to the COMMON_STRIDE stride. +_C.MODEL.SEM_SEG_HEAD.COMMON_STRIDE = 4 +# Normalization method for the convolution layers. Options: "" (no norm), "GN". +_C.MODEL.SEM_SEG_HEAD.NORM = "GN" +_C.MODEL.SEM_SEG_HEAD.LOSS_WEIGHT = 1.0 + +_C.MODEL.PANOPTIC_FPN = CN() +# Scaling of all losses from instance detection / segmentation head. +_C.MODEL.PANOPTIC_FPN.INSTANCE_LOSS_WEIGHT = 1.0 + +# options when combining instance & semantic segmentation outputs +_C.MODEL.PANOPTIC_FPN.COMBINE = CN({"ENABLED": True}) # "COMBINE.ENABLED" is deprecated & not used +_C.MODEL.PANOPTIC_FPN.COMBINE.OVERLAP_THRESH = 0.5 +_C.MODEL.PANOPTIC_FPN.COMBINE.STUFF_AREA_LIMIT = 4096 +_C.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH = 0.5 + + +# ---------------------------------------------------------------------------- # +# RetinaNet Head +# ---------------------------------------------------------------------------- # +_C.MODEL.RETINANET = CN() + +# This is the number of foreground classes. +_C.MODEL.RETINANET.NUM_CLASSES = 80 + +_C.MODEL.RETINANET.IN_FEATURES = ["p3", "p4", "p5", "p6", "p7"] + +# Convolutions to use in the cls and bbox tower +# NOTE: this doesn't include the last conv for logits +_C.MODEL.RETINANET.NUM_CONVS = 4 + +# IoU overlap ratio [bg, fg] for labeling anchors. +# Anchors with < bg are labeled negative (0) +# Anchors with >= bg and < fg are ignored (-1) +# Anchors with >= fg are labeled positive (1) +_C.MODEL.RETINANET.IOU_THRESHOLDS = [0.4, 0.5] +_C.MODEL.RETINANET.IOU_LABELS = [0, -1, 1] + +# Prior prob for rare case (i.e. foreground) at the beginning of training. +# This is used to set the bias for the logits layer of the classifier subnet. +# This improves training stability in the case of heavy class imbalance. +_C.MODEL.RETINANET.PRIOR_PROB = 0.01 + +# Inference cls score threshold, only anchors with score > INFERENCE_TH are +# considered for inference (to improve speed) +_C.MODEL.RETINANET.SCORE_THRESH_TEST = 0.05 +# Select topk candidates before NMS +_C.MODEL.RETINANET.TOPK_CANDIDATES_TEST = 1000 +_C.MODEL.RETINANET.NMS_THRESH_TEST = 0.5 + +# Weights on (dx, dy, dw, dh) for normalizing Retinanet anchor regression targets +_C.MODEL.RETINANET.BBOX_REG_WEIGHTS = (1.0, 1.0, 1.0, 1.0) + +# Loss parameters +_C.MODEL.RETINANET.FOCAL_LOSS_GAMMA = 2.0 +_C.MODEL.RETINANET.FOCAL_LOSS_ALPHA = 0.25 +_C.MODEL.RETINANET.SMOOTH_L1_LOSS_BETA = 0.1 +# Options are: "smooth_l1", "giou", "diou", "ciou" +_C.MODEL.RETINANET.BBOX_REG_LOSS_TYPE = "smooth_l1" + +# One of BN, SyncBN, FrozenBN, GN +# Only supports GN until unshared norm is implemented +_C.MODEL.RETINANET.NORM = "" + + +# ---------------------------------------------------------------------------- # +# ResNe[X]t options (ResNets = {ResNet, ResNeXt} +# Note that parts of a resnet may be used for both the backbone and the head +# These options apply to both +# ---------------------------------------------------------------------------- # +_C.MODEL.RESNETS = CN() + +_C.MODEL.RESNETS.DEPTH = 50 +_C.MODEL.RESNETS.OUT_FEATURES = ["res4"] # res4 for C4 backbone, res2..5 for FPN backbone + +# Number of groups to use; 1 ==> ResNet; > 1 ==> ResNeXt +_C.MODEL.RESNETS.NUM_GROUPS = 1 + +# Options: FrozenBN, GN, "SyncBN", "BN" +_C.MODEL.RESNETS.NORM = "FrozenBN" + +# Baseline width of each group. +# Scaling this parameters will scale the width of all bottleneck layers. +_C.MODEL.RESNETS.WIDTH_PER_GROUP = 64 + +# Place the stride 2 conv on the 1x1 filter +# Use True only for the original MSRA ResNet; use False for C2 and Torch models +_C.MODEL.RESNETS.STRIDE_IN_1X1 = True + +# Apply dilation in stage "res5" +_C.MODEL.RESNETS.RES5_DILATION = 1 + +# Output width of res2. Scaling this parameters will scale the width of all 1x1 convs in ResNet +# For R18 and R34, this needs to be set to 64 +_C.MODEL.RESNETS.RES2_OUT_CHANNELS = 256 +_C.MODEL.RESNETS.STEM_OUT_CHANNELS = 64 + +# Apply Deformable Convolution in stages +# Specify if apply deform_conv on Res2, Res3, Res4, Res5 +_C.MODEL.RESNETS.DEFORM_ON_PER_STAGE = [False, False, False, False] +# Use True to use modulated deform_conv (DeformableV2, https://arxiv.org/abs/1811.11168); +# Use False for DeformableV1. +_C.MODEL.RESNETS.DEFORM_MODULATED = False +# Number of groups in deformable conv. +_C.MODEL.RESNETS.DEFORM_NUM_GROUPS = 1 + + +# ---------------------------------------------------------------------------- # +# Solver +# ---------------------------------------------------------------------------- # +_C.SOLVER = CN() + +# Options: WarmupMultiStepLR, WarmupCosineLR. +# See detectron2/solver/build.py for definition. +_C.SOLVER.LR_SCHEDULER_NAME = "WarmupMultiStepLR" + +_C.SOLVER.MAX_ITER = 40000 + +_C.SOLVER.BASE_LR = 0.001 +# The end lr, only used by WarmupCosineLR +_C.SOLVER.BASE_LR_END = 0.0 + +_C.SOLVER.MOMENTUM = 0.9 + +_C.SOLVER.NESTEROV = False + +_C.SOLVER.WEIGHT_DECAY = 0.0001 +# The weight decay that's applied to parameters of normalization layers +# (typically the affine transformation) +_C.SOLVER.WEIGHT_DECAY_NORM = 0.0 + +_C.SOLVER.GAMMA = 0.1 +# The iteration number to decrease learning rate by GAMMA. +_C.SOLVER.STEPS = (30000,) +# Number of decays in WarmupStepWithFixedGammaLR schedule +_C.SOLVER.NUM_DECAYS = 3 + +_C.SOLVER.WARMUP_FACTOR = 1.0 / 1000 +_C.SOLVER.WARMUP_ITERS = 1000 +_C.SOLVER.WARMUP_METHOD = "linear" +# Whether to rescale the interval for the learning schedule after warmup +_C.SOLVER.RESCALE_INTERVAL = False + +# Save a checkpoint after every this number of iterations +_C.SOLVER.CHECKPOINT_PERIOD = 5000 + +# Number of images per batch across all machines. This is also the number +# of training images per step (i.e. per iteration). If we use 16 GPUs +# and IMS_PER_BATCH = 32, each GPU will see 2 images per batch. +# May be adjusted automatically if REFERENCE_WORLD_SIZE is set. +_C.SOLVER.IMS_PER_BATCH = 16 + +# The reference number of workers (GPUs) this config is meant to train with. +# It takes no effect when set to 0. +# With a non-zero value, it will be used by DefaultTrainer to compute a desired +# per-worker batch size, and then scale the other related configs (total batch size, +# learning rate, etc) to match the per-worker batch size. +# See documentation of `DefaultTrainer.auto_scale_workers` for details: +_C.SOLVER.REFERENCE_WORLD_SIZE = 0 + +# Detectron v1 (and previous detection code) used a 2x higher LR and 0 WD for +# biases. This is not useful (at least for recent models). You should avoid +# changing these and they exist only to reproduce Detectron v1 training if +# desired. +_C.SOLVER.BIAS_LR_FACTOR = 1.0 +_C.SOLVER.WEIGHT_DECAY_BIAS = None # None means following WEIGHT_DECAY + +# Gradient clipping +_C.SOLVER.CLIP_GRADIENTS = CN({"ENABLED": False}) +# Type of gradient clipping, currently 2 values are supported: +# - "value": the absolute values of elements of each gradients are clipped +# - "norm": the norm of the gradient for each parameter is clipped thus +# affecting all elements in the parameter +_C.SOLVER.CLIP_GRADIENTS.CLIP_TYPE = "value" +# Maximum absolute value used for clipping gradients +_C.SOLVER.CLIP_GRADIENTS.CLIP_VALUE = 1.0 +# Floating point number p for L-p norm to be used with the "norm" +# gradient clipping type; for L-inf, please specify .inf +_C.SOLVER.CLIP_GRADIENTS.NORM_TYPE = 2.0 + +# Enable automatic mixed precision for training +# Note that this does not change model's inference behavior. +# To use AMP in inference, run inference under autocast() +_C.SOLVER.AMP = CN({"ENABLED": False}) + +# ---------------------------------------------------------------------------- # +# Specific test options +# ---------------------------------------------------------------------------- # +_C.TEST = CN() +# For end-to-end tests to verify the expected accuracy. +# Each item is [task, metric, value, tolerance] +# e.g.: [['bbox', 'AP', 38.5, 0.2]] +_C.TEST.EXPECTED_RESULTS = [] +# The period (in terms of steps) to evaluate the model during training. +# Set to 0 to disable. +_C.TEST.EVAL_PERIOD = 0 +# The sigmas used to calculate keypoint OKS. See http://cocodataset.org/#keypoints-eval +# When empty, it will use the defaults in COCO. +# Otherwise it should be a list[float] with the same length as ROI_KEYPOINT_HEAD.NUM_KEYPOINTS. +_C.TEST.KEYPOINT_OKS_SIGMAS = [] +# Maximum number of detections to return per image during inference (100 is +# based on the limit established for the COCO dataset). +_C.TEST.DETECTIONS_PER_IMAGE = 100 + +_C.TEST.AUG = CN({"ENABLED": False}) +_C.TEST.AUG.MIN_SIZES = (400, 500, 600, 700, 800, 900, 1000, 1100, 1200) +_C.TEST.AUG.MAX_SIZE = 4000 +_C.TEST.AUG.FLIP = True + +_C.TEST.PRECISE_BN = CN({"ENABLED": False}) +_C.TEST.PRECISE_BN.NUM_ITER = 200 + +# ---------------------------------------------------------------------------- # +# Misc options +# ---------------------------------------------------------------------------- # +# Directory where output files are written +_C.OUTPUT_DIR = "./output" +# Set seed to negative to fully randomize everything. +# Set seed to positive to use a fixed seed. Note that a fixed seed increases +# reproducibility but does not guarantee fully deterministic behavior. +# Disabling all parallelism further increases reproducibility. +_C.SEED = -1 +# Benchmark different cudnn algorithms. +# If input images have very different sizes, this option will have large overhead +# for about 10k iterations. It usually hurts total time, but can benefit for certain models. +# If input images have the same or similar sizes, benchmark is often helpful. +_C.CUDNN_BENCHMARK = False +# The period (in terms of steps) for minibatch visualization at train time. +# Set to 0 to disable. +_C.VIS_PERIOD = 0 + +# global config is for quick hack purposes. +# You can set them in command line or config files, +# and access it with: +# +# from detectron2.config import global_cfg +# print(global_cfg.HACK) +# +# Do not commit any configs into it. +_C.GLOBAL = CN() +_C.GLOBAL.HACK = 1.0 diff --git a/detectron2/detectron2/config/instantiate.py b/detectron2/detectron2/config/instantiate.py new file mode 100755 index 0000000..05ee2c7 --- /dev/null +++ b/detectron2/detectron2/config/instantiate.py @@ -0,0 +1,88 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import collections.abc as abc +import dataclasses +import logging +from typing import Any + +from detectron2.utils.registry import _convert_target_to_string, locate + +__all__ = ["dump_dataclass", "instantiate"] + + +def dump_dataclass(obj: Any): + """ + Dump a dataclass recursively into a dict that can be later instantiated. + + Args: + obj: a dataclass object + + Returns: + dict + """ + assert dataclasses.is_dataclass(obj) and not isinstance( + obj, type + ), "dump_dataclass() requires an instance of a dataclass." + ret = {"_target_": _convert_target_to_string(type(obj))} + for f in dataclasses.fields(obj): + v = getattr(obj, f.name) + if dataclasses.is_dataclass(v): + v = dump_dataclass(v) + if isinstance(v, (list, tuple)): + v = [dump_dataclass(x) if dataclasses.is_dataclass(x) else x for x in v] + ret[f.name] = v + return ret + + +def instantiate(cfg): + """ + Recursively instantiate objects defined in dictionaries by + "_target_" and arguments. + + Args: + cfg: a dict-like object with "_target_" that defines the caller, and + other keys that define the arguments + + Returns: + object instantiated by cfg + """ + from omegaconf import ListConfig, DictConfig, OmegaConf + + if isinstance(cfg, ListConfig): + lst = [instantiate(x) for x in cfg] + return ListConfig(lst, flags={"allow_objects": True}) + if isinstance(cfg, list): + # Specialize for list, because many classes take + # list[objects] as arguments, such as ResNet, DatasetMapper + return [instantiate(x) for x in cfg] + + # If input is a DictConfig backed by dataclasses (i.e. omegaconf's structured config), + # instantiate it to the actual dataclass. + if isinstance(cfg, DictConfig) and dataclasses.is_dataclass(cfg._metadata.object_type): + return OmegaConf.to_object(cfg) + + if isinstance(cfg, abc.Mapping) and "_target_" in cfg: + # conceptually equivalent to hydra.utils.instantiate(cfg) with _convert_=all, + # but faster: https://github.com/facebookresearch/hydra/issues/1200 + cfg = {k: instantiate(v) for k, v in cfg.items()} + cls = cfg.pop("_target_") + cls = instantiate(cls) + + if isinstance(cls, str): + cls_name = cls + cls = locate(cls_name) + assert cls is not None, cls_name + else: + try: + cls_name = cls.__module__ + "." + cls.__qualname__ + except Exception: + # target could be anything, so the above could fail + cls_name = str(cls) + assert callable(cls), f"_target_ {cls} does not define a callable object" + try: + return cls(**cfg) + except TypeError: + logger = logging.getLogger(__name__) + logger.error(f"Error when instantiating {cls_name}!") + raise + return cfg # return as-is if don't know what to do diff --git a/detectron2/detectron2/config/lazy.py b/detectron2/detectron2/config/lazy.py new file mode 100755 index 0000000..ea93e86 --- /dev/null +++ b/detectron2/detectron2/config/lazy.py @@ -0,0 +1,436 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import ast +import builtins +import collections.abc as abc +import importlib +import inspect +import logging +import os +import uuid +from contextlib import contextmanager +from copy import deepcopy +from dataclasses import is_dataclass +from typing import List, Tuple, Union +import cloudpickle +import yaml +from omegaconf import DictConfig, ListConfig, OmegaConf, SCMode + +from detectron2.utils.file_io import PathManager +from detectron2.utils.registry import _convert_target_to_string + +__all__ = ["LazyCall", "LazyConfig"] + + +class LazyCall: + """ + Wrap a callable so that when it's called, the call will not be executed, + but returns a dict that describes the call. + + LazyCall object has to be called with only keyword arguments. Positional + arguments are not yet supported. + + Examples: + :: + from detectron2.config import instantiate, LazyCall + + layer_cfg = LazyCall(nn.Conv2d)(in_channels=32, out_channels=32) + layer_cfg.out_channels = 64 # can edit it afterwards + layer = instantiate(layer_cfg) + """ + + def __init__(self, target): + if not (callable(target) or isinstance(target, (str, abc.Mapping))): + raise TypeError( + f"target of LazyCall must be a callable or defines a callable! Got {target}" + ) + self._target = target + + def __call__(self, **kwargs): + if is_dataclass(self._target): + # omegaconf object cannot hold dataclass type + # https://github.com/omry/omegaconf/issues/784 + target = _convert_target_to_string(self._target) + else: + target = self._target + kwargs["_target_"] = target + + return DictConfig(content=kwargs, flags={"allow_objects": True}) + + +def _visit_dict_config(cfg, func): + """ + Apply func recursively to all DictConfig in cfg. + """ + if isinstance(cfg, DictConfig): + func(cfg) + for v in cfg.values(): + _visit_dict_config(v, func) + elif isinstance(cfg, ListConfig): + for v in cfg: + _visit_dict_config(v, func) + + +def _validate_py_syntax(filename): + # see also https://github.com/open-mmlab/mmcv/blob/master/mmcv/utils/config.py + with PathManager.open(filename, "r") as f: + content = f.read() + try: + ast.parse(content) + except SyntaxError as e: + raise SyntaxError(f"Config file {filename} has syntax error!") from e + + +def _cast_to_config(obj): + # if given a dict, return DictConfig instead + if isinstance(obj, dict): + return DictConfig(obj, flags={"allow_objects": True}) + return obj + + +_CFG_PACKAGE_NAME = "detectron2._cfg_loader" +""" +A namespace to put all imported config into. +""" + + +def _random_package_name(filename): + # generate a random package name when loading config files + return _CFG_PACKAGE_NAME + str(uuid.uuid4())[:4] + "." + os.path.basename(filename) + + +@contextmanager +def _patch_import(): + """ + Enhance relative import statements in config files, so that they: + 1. locate files purely based on relative location, regardless of packages. + e.g. you can import file without having __init__ + 2. do not cache modules globally; modifications of module states has no side effect + 3. support other storage system through PathManager, so config files can be in the cloud + 4. imported dict are turned into omegaconf.DictConfig automatically + """ + old_import = builtins.__import__ + + def find_relative_file(original_file, relative_import_path, level): + # NOTE: "from . import x" is not handled. Because then it's unclear + # if such import should produce `x` as a python module or DictConfig. + # This can be discussed further if needed. + relative_import_err = """ +Relative import of directories is not allowed within config files. +Within a config file, relative import can only import other config files. +""".replace( + "\n", " " + ) + if not len(relative_import_path): + raise ImportError(relative_import_err) + + cur_file = os.path.dirname(original_file) + for _ in range(level - 1): + cur_file = os.path.dirname(cur_file) + cur_name = relative_import_path.lstrip(".") + for part in cur_name.split("."): + cur_file = os.path.join(cur_file, part) + if not cur_file.endswith(".py"): + cur_file += ".py" + if not PathManager.isfile(cur_file): + cur_file_no_suffix = cur_file[: -len(".py")] + if PathManager.isdir(cur_file_no_suffix): + raise ImportError(f"Cannot import from {cur_file_no_suffix}." + relative_import_err) + else: + raise ImportError( + f"Cannot import name {relative_import_path} from " + f"{original_file}: {cur_file} does not exist." + ) + return cur_file + + def new_import(name, globals=None, locals=None, fromlist=(), level=0): + if ( + # Only deal with relative imports inside config files + level != 0 + and globals is not None + and (globals.get("__package__", "") or "").startswith(_CFG_PACKAGE_NAME) + ): + cur_file = find_relative_file(globals["__file__"], name, level) + _validate_py_syntax(cur_file) + spec = importlib.machinery.ModuleSpec( + _random_package_name(cur_file), None, origin=cur_file + ) + module = importlib.util.module_from_spec(spec) + module.__file__ = cur_file + with PathManager.open(cur_file) as f: + content = f.read() + exec(compile(content, cur_file, "exec"), module.__dict__) + for name in fromlist: # turn imported dict into DictConfig automatically + val = _cast_to_config(module.__dict__[name]) + module.__dict__[name] = val + return module + return old_import(name, globals, locals, fromlist=fromlist, level=level) + + builtins.__import__ = new_import + yield new_import + builtins.__import__ = old_import + + +class LazyConfig: + """ + Provide methods to save, load, and overrides an omegaconf config object + which may contain definition of lazily-constructed objects. + """ + + @staticmethod + def load_rel(filename: str, keys: Union[None, str, Tuple[str, ...]] = None): + """ + Similar to :meth:`load()`, but load path relative to the caller's + source file. + + This has the same functionality as a relative import, except that this method + accepts filename as a string, so more characters are allowed in the filename. + """ + caller_frame = inspect.stack()[1] + caller_fname = caller_frame[0].f_code.co_filename + assert caller_fname != "", "load_rel Unable to find caller" + caller_dir = os.path.dirname(caller_fname) + filename = os.path.join(caller_dir, filename) + return LazyConfig.load(filename, keys) + + @staticmethod + def load(filename: str, keys: Union[None, str, Tuple[str, ...]] = None): + """ + Load a config file. + + Args: + filename: absolute path or relative path w.r.t. the current working directory + keys: keys to load and return. If not given, return all keys + (whose values are config objects) in a dict. + """ + has_keys = keys is not None + filename = filename.replace("/./", "/") # redundant + if os.path.splitext(filename)[1] not in [".py", ".yaml", ".yml"]: + raise ValueError(f"Config file {filename} has to be a python or yaml file.") + if filename.endswith(".py"): + _validate_py_syntax(filename) + + with _patch_import(): + # Record the filename + module_namespace = { + "__file__": filename, + "__package__": _random_package_name(filename), + } + with PathManager.open(filename) as f: + content = f.read() + # Compile first with filename to: + # 1. make filename appears in stacktrace + # 2. make load_rel able to find its parent's (possibly remote) location + exec(compile(content, filename, "exec"), module_namespace) + + ret = module_namespace + else: + with PathManager.open(filename) as f: + obj = yaml.unsafe_load(f) + ret = OmegaConf.create(obj, flags={"allow_objects": True}) + + if has_keys: + if isinstance(keys, str): + return _cast_to_config(ret[keys]) + else: + return tuple(_cast_to_config(ret[a]) for a in keys) + else: + if filename.endswith(".py"): + # when not specified, only load those that are config objects + ret = DictConfig( + { + name: _cast_to_config(value) + for name, value in ret.items() + if isinstance(value, (DictConfig, ListConfig, dict)) + and not name.startswith("_") + }, + flags={"allow_objects": True}, + ) + return ret + + @staticmethod + def save(cfg, filename: str): + """ + Save a config object to a yaml file. + Note that when the config dictionary contains complex objects (e.g. lambda), + it can't be saved to yaml. In that case we will print an error and + attempt to save to a pkl file instead. + + Args: + cfg: an omegaconf config object + filename: yaml file name to save the config file + """ + logger = logging.getLogger(__name__) + try: + cfg = deepcopy(cfg) + except Exception: + pass + else: + # if it's deep-copyable, then... + def _replace_type_by_name(x): + if "_target_" in x and callable(x._target_): + try: + x._target_ = _convert_target_to_string(x._target_) + except AttributeError: + pass + + # not necessary, but makes yaml looks nicer + _visit_dict_config(cfg, _replace_type_by_name) + + save_pkl = False + try: + dict = OmegaConf.to_container( + cfg, + # Do not resolve interpolation when saving, i.e. do not turn ${a} into + # actual values when saving. + resolve=False, + # Save structures (dataclasses) in a format that can be instantiated later. + # Without this option, the type information of the dataclass will be erased. + structured_config_mode=SCMode.INSTANTIATE, + ) + dumped = yaml.dump(dict, default_flow_style=None, allow_unicode=True, width=9999) + with PathManager.open(filename, "w") as f: + f.write(dumped) + + try: + _ = yaml.unsafe_load(dumped) # test that it is loadable + except Exception: + logger.warning( + "The config contains objects that cannot serialize to a valid yaml. " + f"{filename} is human-readable but cannot be loaded." + ) + save_pkl = True + except Exception: + logger.exception("Unable to serialize the config to yaml. Error:") + save_pkl = True + + if save_pkl: + new_filename = filename + ".pkl" + try: + # retry by pickle + with PathManager.open(new_filename, "wb") as f: + cloudpickle.dump(cfg, f) + logger.warning(f"Config is saved using cloudpickle at {new_filename}.") + except Exception: + pass + + @staticmethod + def apply_overrides(cfg, overrides: List[str]): + """ + In-place override contents of cfg. + + Args: + cfg: an omegaconf config object + overrides: list of strings in the format of "a=b" to override configs. + See https://hydra.cc/docs/next/advanced/override_grammar/basic/ + for syntax. + + Returns: + the cfg object + """ + + def safe_update(cfg, key, value): + parts = key.split(".") + for idx in range(1, len(parts)): + prefix = ".".join(parts[:idx]) + v = OmegaConf.select(cfg, prefix, default=None) + if v is None: + break + if not OmegaConf.is_config(v): + raise KeyError( + f"Trying to update key {key}, but {prefix} " + f"is not a config, but has type {type(v)}." + ) + OmegaConf.update(cfg, key, value, merge=True) + + try: + from hydra.core.override_parser.overrides_parser import OverridesParser + + has_hydra = True + except ImportError: + has_hydra = False + + if has_hydra: + parser = OverridesParser.create() + overrides = parser.parse_overrides(overrides) + for o in overrides: + key = o.key_or_group + value = o.value() + if o.is_delete(): + # TODO support this + raise NotImplementedError("deletion is not yet a supported override") + safe_update(cfg, key, value) + else: + # Fallback. Does not support all the features and error checking like hydra. + for o in overrides: + key, value = o.split("=") + try: + value = eval(value, {}) + except NameError: + pass + safe_update(cfg, key, value) + return cfg + + @staticmethod + def to_py(cfg, prefix: str = "cfg."): + """ + Try to convert a config object into Python-like psuedo code. + + Note that perfect conversion is not always possible. So the returned + results are mainly meant to be human-readable, and not meant to be executed. + + Args: + cfg: an omegaconf config object + prefix: root name for the resulting code (default: "cfg.") + + + Returns: + str of formatted Python code + """ + import black + + cfg = OmegaConf.to_container(cfg, resolve=True) + + def _to_str(obj, prefix=None, inside_call=False): + if prefix is None: + prefix = [] + if isinstance(obj, abc.Mapping) and "_target_" in obj: + # Dict representing a function call + target = _convert_target_to_string(obj.pop("_target_")) + args = [] + for k, v in sorted(obj.items()): + args.append(f"{k}={_to_str(v, inside_call=True)}") + args = ", ".join(args) + call = f"{target}({args})" + return "".join(prefix) + call + elif isinstance(obj, abc.Mapping) and not inside_call: + # Dict that is not inside a call is a list of top-level config objects that we + # render as one object per line with dot separated prefixes + key_list = [] + for k, v in sorted(obj.items()): + if isinstance(v, abc.Mapping) and "_target_" not in v: + key_list.append(_to_str(v, prefix=prefix + [k + "."])) + else: + key = "".join(prefix) + k + key_list.append(f"{key}={_to_str(v)}") + return "\n".join(key_list) + elif isinstance(obj, abc.Mapping): + # Dict that is inside a call is rendered as a regular dict + return ( + "{" + + ",".join( + f"{repr(k)}: {_to_str(v, inside_call=inside_call)}" + for k, v in sorted(obj.items()) + ) + + "}" + ) + elif isinstance(obj, list): + return "[" + ",".join(_to_str(x, inside_call=inside_call) for x in obj) + "]" + else: + return repr(obj) + + py_str = _to_str(cfg, prefix=[prefix]) + try: + return black.format_str(py_str, mode=black.Mode()) + except black.InvalidInput: + return py_str diff --git a/detectron2/detectron2/data/__init__.py b/detectron2/detectron2/data/__init__.py new file mode 100755 index 0000000..259f669 --- /dev/null +++ b/detectron2/detectron2/data/__init__.py @@ -0,0 +1,19 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from . import transforms # isort:skip + +from .build import ( + build_batch_data_loader, + build_detection_test_loader, + build_detection_train_loader, + get_detection_dataset_dicts, + load_proposals_into_dataset, + print_instances_class_histogram, +) +from .catalog import DatasetCatalog, MetadataCatalog, Metadata +from .common import DatasetFromList, MapDataset, ToIterableDataset +from .dataset_mapper import DatasetMapper + +# ensure the builtin datasets are registered +from . import datasets, samplers # isort:skip + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/data/benchmark.py b/detectron2/detectron2/data/benchmark.py new file mode 100755 index 0000000..ac2f372 --- /dev/null +++ b/detectron2/detectron2/data/benchmark.py @@ -0,0 +1,225 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import numpy as np +from itertools import count +from typing import List, Tuple +import torch +import tqdm +from fvcore.common.timer import Timer + +from detectron2.utils import comm + +from .build import build_batch_data_loader +from .common import DatasetFromList, MapDataset +from .samplers import TrainingSampler + +logger = logging.getLogger(__name__) + + +class _EmptyMapDataset(torch.utils.data.Dataset): + """ + Map anything to emptiness. + """ + + def __init__(self, dataset): + self.ds = dataset + + def __len__(self): + return len(self.ds) + + def __getitem__(self, idx): + _ = self.ds[idx] + return [0] + + +def iter_benchmark( + iterator, num_iter: int, warmup: int = 5, max_time_seconds: float = 60 +) -> Tuple[float, List[float]]: + """ + Benchmark an iterator/iterable for `num_iter` iterations with an extra + `warmup` iterations of warmup. + End early if `max_time_seconds` time is spent on iterations. + + Returns: + float: average time (seconds) per iteration + list[float]: time spent on each iteration. Sometimes useful for further analysis. + """ + num_iter, warmup = int(num_iter), int(warmup) + + iterator = iter(iterator) + for _ in range(warmup): + next(iterator) + timer = Timer() + all_times = [] + for curr_iter in tqdm.trange(num_iter): + start = timer.seconds() + if start > max_time_seconds: + num_iter = curr_iter + break + next(iterator) + all_times.append(timer.seconds() - start) + avg = timer.seconds() / num_iter + return avg, all_times + + +class DataLoaderBenchmark: + """ + Some common benchmarks that help understand perf bottleneck of a standard dataloader + made of dataset, mapper and sampler. + """ + + def __init__( + self, + dataset, + *, + mapper, + sampler=None, + total_batch_size, + num_workers=0, + max_time_seconds: int = 90, + ): + """ + Args: + max_time_seconds (int): maximum time to spent for each benchmark + other args: same as in `build.py:build_detection_train_loader` + """ + if isinstance(dataset, list): + dataset = DatasetFromList(dataset, copy=False, serialize=True) + if sampler is None: + sampler = TrainingSampler(len(dataset)) + + self.dataset = dataset + self.mapper = mapper + self.sampler = sampler + self.total_batch_size = total_batch_size + self.num_workers = num_workers + self.per_gpu_batch_size = self.total_batch_size // comm.get_world_size() + + self.max_time_seconds = max_time_seconds + + def _benchmark(self, iterator, num_iter, warmup, msg=None): + avg, all_times = iter_benchmark(iterator, num_iter, warmup, self.max_time_seconds) + if msg is not None: + self._log_time(msg, avg, all_times) + return avg, all_times + + def _log_time(self, msg, avg, all_times, distributed=False): + percentiles = [np.percentile(all_times, k, interpolation="nearest") for k in [1, 5, 95, 99]] + if not distributed: + logger.info( + f"{msg}: avg={1.0/avg:.1f} it/s, " + f"p1={percentiles[0]:.2g}s, p5={percentiles[1]:.2g}s, " + f"p95={percentiles[2]:.2g}s, p99={percentiles[3]:.2g}s." + ) + return + avg_per_gpu = comm.all_gather(avg) + percentiles_per_gpu = comm.all_gather(percentiles) + if comm.get_rank() > 0: + return + for idx, avg, percentiles in zip(count(), avg_per_gpu, percentiles_per_gpu): + logger.info( + f"GPU{idx} {msg}: avg={1.0/avg:.1f} it/s, " + f"p1={percentiles[0]:.2g}s, p5={percentiles[1]:.2g}s, " + f"p95={percentiles[2]:.2g}s, p99={percentiles[3]:.2g}s." + ) + + def benchmark_dataset(self, num_iter, warmup=5): + """ + Benchmark the speed of taking raw samples from the dataset. + """ + + def loader(): + while True: + for k in self.sampler: + yield self.dataset[k] + + self._benchmark(loader(), num_iter, warmup, "Dataset Alone") + + def benchmark_mapper(self, num_iter, warmup=5): + """ + Benchmark the speed of taking raw samples from the dataset and map + them in a single process. + """ + + def loader(): + while True: + for k in self.sampler: + yield self.mapper(self.dataset[k]) + + self._benchmark(loader(), num_iter, warmup, "Single Process Mapper (sec/sample)") + + def benchmark_workers(self, num_iter, warmup=10): + """ + Benchmark the dataloader by tuning num_workers to [0, 1, self.num_workers]. + """ + candidates = [0, 1] + if self.num_workers not in candidates: + candidates.append(self.num_workers) + + dataset = MapDataset(self.dataset, self.mapper) + for n in candidates: + loader = build_batch_data_loader( + dataset, + self.sampler, + self.total_batch_size, + num_workers=n, + ) + self._benchmark( + iter(loader), + num_iter * max(n, 1), + warmup * max(n, 1), + f"DataLoader ({n} workers, bs={self.per_gpu_batch_size})", + ) + del loader + + def benchmark_IPC(self, num_iter, warmup=10): + """ + Benchmark the dataloader where each worker outputs nothing. This + eliminates the IPC overhead compared to the regular dataloader. + + PyTorch multiprocessing's IPC only optimizes for torch tensors. + Large numpy arrays or other data structure may incur large IPC overhead. + """ + n = self.num_workers + dataset = _EmptyMapDataset(MapDataset(self.dataset, self.mapper)) + loader = build_batch_data_loader( + dataset, self.sampler, self.total_batch_size, num_workers=n + ) + self._benchmark( + iter(loader), + num_iter * max(n, 1), + warmup * max(n, 1), + f"DataLoader ({n} workers, bs={self.per_gpu_batch_size}) w/o comm", + ) + + def benchmark_distributed(self, num_iter, warmup=10): + """ + Benchmark the dataloader in each distributed worker, and log results of + all workers. This helps understand the final performance as well as + the variances among workers. + + It also prints startup time (first iter) of the dataloader. + """ + gpu = comm.get_world_size() + dataset = MapDataset(self.dataset, self.mapper) + n = self.num_workers + loader = build_batch_data_loader( + dataset, self.sampler, self.total_batch_size, num_workers=n + ) + + timer = Timer() + loader = iter(loader) + next(loader) + startup_time = timer.seconds() + logger.info("Dataloader startup time: {:.2f} seconds".format(startup_time)) + + comm.synchronize() + + avg, all_times = self._benchmark(loader, num_iter * max(n, 1), warmup * max(n, 1)) + del loader + self._log_time( + f"DataLoader ({gpu} GPUs x {n} workers, total bs={self.total_batch_size})", + avg, + all_times, + True, + ) diff --git a/detectron2/detectron2/data/build.py b/detectron2/detectron2/data/build.py new file mode 100755 index 0000000..d0b951c --- /dev/null +++ b/detectron2/detectron2/data/build.py @@ -0,0 +1,556 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import logging +import numpy as np +import operator +import pickle +from typing import Any, Callable, Dict, List, Optional, Union +import torch +import torch.utils.data as torchdata +from tabulate import tabulate +from termcolor import colored + +from detectron2.config import configurable +from detectron2.structures import BoxMode +from detectron2.utils.comm import get_world_size +from detectron2.utils.env import seed_all_rng +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import _log_api_usage, log_first_n + +from .catalog import DatasetCatalog, MetadataCatalog +from .common import AspectRatioGroupedDataset, DatasetFromList, MapDataset, ToIterableDataset +from .dataset_mapper import DatasetMapper +from .detection_utils import check_metadata_consistency +from .samplers import ( + InferenceSampler, + RandomSubsetTrainingSampler, + RepeatFactorTrainingSampler, + TrainingSampler, +) + +""" +This file contains the default logic to build a dataloader for training or testing. +""" + +__all__ = [ + "build_batch_data_loader", + "build_detection_train_loader", + "build_detection_test_loader", + "get_detection_dataset_dicts", + "load_proposals_into_dataset", + "print_instances_class_histogram", +] + + +def filter_images_with_only_crowd_annotations(dataset_dicts): + """ + Filter out images with none annotations or only crowd annotations + (i.e., images without non-crowd annotations). + A common training-time preprocessing on COCO dataset. + + Args: + dataset_dicts (list[dict]): annotations in Detectron2 Dataset format. + + Returns: + list[dict]: the same format, but filtered. + """ + num_before = len(dataset_dicts) + + def valid(anns): + for ann in anns: + if ann.get("iscrowd", 0) == 0: + return True + return False + + dataset_dicts = [x for x in dataset_dicts if valid(x["annotations"])] + num_after = len(dataset_dicts) + logger = logging.getLogger(__name__) + logger.info( + "Removed {} images with no usable annotations. {} images left.".format( + num_before - num_after, num_after + ) + ) + return dataset_dicts + + +def filter_images_with_few_keypoints(dataset_dicts, min_keypoints_per_image): + """ + Filter out images with too few number of keypoints. + + Args: + dataset_dicts (list[dict]): annotations in Detectron2 Dataset format. + + Returns: + list[dict]: the same format as dataset_dicts, but filtered. + """ + num_before = len(dataset_dicts) + + def visible_keypoints_in_image(dic): + # Each keypoints field has the format [x1, y1, v1, ...], where v is visibility + annotations = dic["annotations"] + return sum( + (np.array(ann["keypoints"][2::3]) > 0).sum() + for ann in annotations + if "keypoints" in ann + ) + + dataset_dicts = [ + x for x in dataset_dicts if visible_keypoints_in_image(x) >= min_keypoints_per_image + ] + num_after = len(dataset_dicts) + logger = logging.getLogger(__name__) + logger.info( + "Removed {} images with fewer than {} keypoints.".format( + num_before - num_after, min_keypoints_per_image + ) + ) + return dataset_dicts + + +def load_proposals_into_dataset(dataset_dicts, proposal_file): + """ + Load precomputed object proposals into the dataset. + + The proposal file should be a pickled dict with the following keys: + + - "ids": list[int] or list[str], the image ids + - "boxes": list[np.ndarray], each is an Nx4 array of boxes corresponding to the image id + - "objectness_logits": list[np.ndarray], each is an N sized array of objectness scores + corresponding to the boxes. + - "bbox_mode": the BoxMode of the boxes array. Defaults to ``BoxMode.XYXY_ABS``. + + Args: + dataset_dicts (list[dict]): annotations in Detectron2 Dataset format. + proposal_file (str): file path of pre-computed proposals, in pkl format. + + Returns: + list[dict]: the same format as dataset_dicts, but added proposal field. + """ + logger = logging.getLogger(__name__) + logger.info("Loading proposals from: {}".format(proposal_file)) + + with PathManager.open(proposal_file, "rb") as f: + proposals = pickle.load(f, encoding="latin1") + + # Rename the key names in D1 proposal files + rename_keys = {"indexes": "ids", "scores": "objectness_logits"} + for key in rename_keys: + if key in proposals: + proposals[rename_keys[key]] = proposals.pop(key) + + # Fetch the indexes of all proposals that are in the dataset + # Convert image_id to str since they could be int. + img_ids = set({str(record["image_id"]) for record in dataset_dicts}) + id_to_index = {str(id): i for i, id in enumerate(proposals["ids"]) if str(id) in img_ids} + + # Assuming default bbox_mode of precomputed proposals are 'XYXY_ABS' + bbox_mode = BoxMode(proposals["bbox_mode"]) if "bbox_mode" in proposals else BoxMode.XYXY_ABS + + for record in dataset_dicts: + # Get the index of the proposal + i = id_to_index[str(record["image_id"])] + + boxes = proposals["boxes"][i] + objectness_logits = proposals["objectness_logits"][i] + # Sort the proposals in descending order of the scores + inds = objectness_logits.argsort()[::-1] + record["proposal_boxes"] = boxes[inds] + record["proposal_objectness_logits"] = objectness_logits[inds] + record["proposal_bbox_mode"] = bbox_mode + + return dataset_dicts + + +def print_instances_class_histogram(dataset_dicts, class_names): + """ + Args: + dataset_dicts (list[dict]): list of dataset dicts. + class_names (list[str]): list of class names (zero-indexed). + """ + num_classes = len(class_names) + hist_bins = np.arange(num_classes + 1) + histogram = np.zeros((num_classes,), dtype=np.int) + for entry in dataset_dicts: + annos = entry["annotations"] + classes = np.asarray( + [x["category_id"] for x in annos if not x.get("iscrowd", 0)], dtype=np.int + ) + if len(classes): + assert classes.min() >= 0, f"Got an invalid category_id={classes.min()}" + assert ( + classes.max() < num_classes + ), f"Got an invalid category_id={classes.max()} for a dataset of {num_classes} classes" + histogram += np.histogram(classes, bins=hist_bins)[0] + + N_COLS = min(6, len(class_names) * 2) + + def short_name(x): + # make long class names shorter. useful for lvis + if len(x) > 13: + return x[:11] + ".." + return x + + data = list( + itertools.chain(*[[short_name(class_names[i]), int(v)] for i, v in enumerate(histogram)]) + ) + total_num_instances = sum(data[1::2]) + data.extend([None] * (N_COLS - (len(data) % N_COLS))) + if num_classes > 1: + data.extend(["total", total_num_instances]) + data = itertools.zip_longest(*[data[i::N_COLS] for i in range(N_COLS)]) + table = tabulate( + data, + headers=["category", "#instances"] * (N_COLS // 2), + tablefmt="pipe", + numalign="left", + stralign="center", + ) + log_first_n( + logging.INFO, + "Distribution of instances among all {} categories:\n".format(num_classes) + + colored(table, "cyan"), + key="message", + ) + + +def get_detection_dataset_dicts( + names, + filter_empty=True, + min_keypoints=0, + proposal_files=None, + check_consistency=True, +): + """ + Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. + + Args: + names (str or list[str]): a dataset name or a list of dataset names + filter_empty (bool): whether to filter out images without instance annotations + min_keypoints (int): filter out images with fewer keypoints than + `min_keypoints`. Set to 0 to do nothing. + proposal_files (list[str]): if given, a list of object proposal files + that match each dataset in `names`. + check_consistency (bool): whether to check if datasets have consistent metadata. + + Returns: + list[dict]: a list of dicts following the standard dataset dict format. + """ + if isinstance(names, str): + names = [names] + assert len(names), names + dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in names] + + if isinstance(dataset_dicts[0], torchdata.Dataset): + if len(dataset_dicts) > 1: + # ConcatDataset does not work for iterable style dataset. + # We could support concat for iterable as well, but it's often + # not a good idea to concat iterables anyway. + return torchdata.ConcatDataset(dataset_dicts) + return dataset_dicts[0] + + for dataset_name, dicts in zip(names, dataset_dicts): + assert len(dicts), "Dataset '{}' is empty!".format(dataset_name) + + if proposal_files is not None: + assert len(names) == len(proposal_files) + # load precomputed proposals from proposal files + dataset_dicts = [ + load_proposals_into_dataset(dataset_i_dicts, proposal_file) + for dataset_i_dicts, proposal_file in zip(dataset_dicts, proposal_files) + ] + + dataset_dicts = list(itertools.chain.from_iterable(dataset_dicts)) + + has_instances = "annotations" in dataset_dicts[0] + if filter_empty and has_instances: + dataset_dicts = filter_images_with_only_crowd_annotations(dataset_dicts) + if min_keypoints > 0 and has_instances: + dataset_dicts = filter_images_with_few_keypoints(dataset_dicts, min_keypoints) + + if check_consistency and has_instances: + try: + class_names = MetadataCatalog.get(names[0]).thing_classes + check_metadata_consistency("thing_classes", names) + print_instances_class_histogram(dataset_dicts, class_names) + except AttributeError: # class names are not available for this dataset + pass + + assert len(dataset_dicts), "No valid data found in {}.".format(",".join(names)) + return dataset_dicts + + +def build_batch_data_loader( + dataset, + sampler, + total_batch_size, + *, + aspect_ratio_grouping=False, + num_workers=0, + collate_fn=None, +): + """ + Build a batched dataloader. The main differences from `torch.utils.data.DataLoader` are: + 1. support aspect ratio grouping options + 2. use no "batch collation", because this is common for detection training + + Args: + dataset (torch.utils.data.Dataset): a pytorch map-style or iterable dataset. + sampler (torch.utils.data.sampler.Sampler or None): a sampler that produces indices. + Must be provided iff. ``dataset`` is a map-style dataset. + total_batch_size, aspect_ratio_grouping, num_workers, collate_fn: see + :func:`build_detection_train_loader`. + + Returns: + iterable[list]. Length of each list is the batch size of the current + GPU. Each element in the list comes from the dataset. + """ + world_size = get_world_size() + assert ( + total_batch_size > 0 and total_batch_size % world_size == 0 + ), "Total batch size ({}) must be divisible by the number of gpus ({}).".format( + total_batch_size, world_size + ) + batch_size = total_batch_size // world_size + + if isinstance(dataset, torchdata.IterableDataset): + assert sampler is None, "sampler must be None if dataset is IterableDataset" + else: + dataset = ToIterableDataset(dataset, sampler) + + if aspect_ratio_grouping: + data_loader = torchdata.DataLoader( + dataset, + num_workers=num_workers, + collate_fn=operator.itemgetter(0), # don't batch, but yield individual elements + worker_init_fn=worker_init_reset_seed, + ) # yield individual mapped dict + data_loader = AspectRatioGroupedDataset(data_loader, batch_size) + if collate_fn is None: + return data_loader + return MapDataset(data_loader, collate_fn) + else: + return torchdata.DataLoader( + dataset, + batch_size=batch_size, + drop_last=True, + num_workers=num_workers, + collate_fn=trivial_batch_collator if collate_fn is None else collate_fn, + worker_init_fn=worker_init_reset_seed, + ) + + +def _train_loader_from_config(cfg, mapper=None, *, dataset=None, sampler=None): + if dataset is None: + dataset = get_detection_dataset_dicts( + cfg.DATASETS.TRAIN, + filter_empty=cfg.DATALOADER.FILTER_EMPTY_ANNOTATIONS, + min_keypoints=cfg.MODEL.ROI_KEYPOINT_HEAD.MIN_KEYPOINTS_PER_IMAGE + if cfg.MODEL.KEYPOINT_ON + else 0, + proposal_files=cfg.DATASETS.PROPOSAL_FILES_TRAIN if cfg.MODEL.LOAD_PROPOSALS else None, + ) + _log_api_usage("dataset." + cfg.DATASETS.TRAIN[0]) + + if mapper is None: + mapper = DatasetMapper(cfg, True) + + if sampler is None: + sampler_name = cfg.DATALOADER.SAMPLER_TRAIN + logger = logging.getLogger(__name__) + if isinstance(dataset, torchdata.IterableDataset): + logger.info("Not using any sampler since the dataset is IterableDataset.") + sampler = None + else: + logger.info("Using training sampler {}".format(sampler_name)) + if sampler_name == "TrainingSampler": + sampler = TrainingSampler(len(dataset)) + elif sampler_name == "RepeatFactorTrainingSampler": + repeat_factors = RepeatFactorTrainingSampler.repeat_factors_from_category_frequency( + dataset, cfg.DATALOADER.REPEAT_THRESHOLD + ) + sampler = RepeatFactorTrainingSampler(repeat_factors) + elif sampler_name == "RandomSubsetTrainingSampler": + sampler = RandomSubsetTrainingSampler( + len(dataset), cfg.DATALOADER.RANDOM_SUBSET_RATIO + ) + else: + raise ValueError("Unknown training sampler: {}".format(sampler_name)) + + return { + "dataset": dataset, + "sampler": sampler, + "mapper": mapper, + "total_batch_size": cfg.SOLVER.IMS_PER_BATCH, + "aspect_ratio_grouping": cfg.DATALOADER.ASPECT_RATIO_GROUPING, + "num_workers": cfg.DATALOADER.NUM_WORKERS, + } + + +@configurable(from_config=_train_loader_from_config) +def build_detection_train_loader( + dataset, + *, + mapper, + sampler=None, + total_batch_size, + aspect_ratio_grouping=True, + num_workers=0, + collate_fn=None, +): + """ + Build a dataloader for object detection with some default features. + + Args: + dataset (list or torch.utils.data.Dataset): a list of dataset dicts, + or a pytorch dataset (either map-style or iterable). It can be obtained + by using :func:`DatasetCatalog.get` or :func:`get_detection_dataset_dicts`. + mapper (callable): a callable which takes a sample (dict) from dataset and + returns the format to be consumed by the model. + When using cfg, the default choice is ``DatasetMapper(cfg, is_train=True)``. + sampler (torch.utils.data.sampler.Sampler or None): a sampler that produces + indices to be applied on ``dataset``. + If ``dataset`` is map-style, the default sampler is a :class:`TrainingSampler`, + which coordinates an infinite random shuffle sequence across all workers. + Sampler must be None if ``dataset`` is iterable. + total_batch_size (int): total batch size across all workers. + aspect_ratio_grouping (bool): whether to group images with similar + aspect ratio for efficiency. When enabled, it requires each + element in dataset be a dict with keys "width" and "height". + num_workers (int): number of parallel data loading workers + collate_fn: a function that determines how to do batching, same as the argument of + `torch.utils.data.DataLoader`. Defaults to do no collation and return a list of + data. No collation is OK for small batch size and simple data structures. + If your batch size is large and each sample contains too many small tensors, + it's more efficient to collate them in data loader. + + Returns: + torch.utils.data.DataLoader: + a dataloader. Each output from it is a ``list[mapped_element]`` of length + ``total_batch_size / num_workers``, where ``mapped_element`` is produced + by the ``mapper``. + """ + if isinstance(dataset, list): + dataset = DatasetFromList(dataset, copy=False) + if mapper is not None: + dataset = MapDataset(dataset, mapper) + + if isinstance(dataset, torchdata.IterableDataset): + assert sampler is None, "sampler must be None if dataset is IterableDataset" + else: + if sampler is None: + sampler = TrainingSampler(len(dataset)) + assert isinstance(sampler, torchdata.Sampler), f"Expect a Sampler but got {type(sampler)}" + return build_batch_data_loader( + dataset, + sampler, + total_batch_size, + aspect_ratio_grouping=aspect_ratio_grouping, + num_workers=num_workers, + collate_fn=collate_fn, + ) + + +def _test_loader_from_config(cfg, dataset_name, mapper=None): + """ + Uses the given `dataset_name` argument (instead of the names in cfg), because the + standard practice is to evaluate each test set individually (not combining them). + """ + if isinstance(dataset_name, str): + dataset_name = [dataset_name] + + dataset = get_detection_dataset_dicts( + dataset_name, + filter_empty=cfg.DATALOADER.FILTER_EMPTY_ANNOTATIONS, + proposal_files=[ + cfg.DATASETS.PROPOSAL_FILES_TEST[list(cfg.DATASETS.TEST).index(x)] for x in dataset_name + ] + if cfg.MODEL.LOAD_PROPOSALS + else None, + ) + if mapper is None: + mapper = DatasetMapper(cfg, False) + return { + "dataset": dataset, + "mapper": mapper, + "num_workers": cfg.DATALOADER.NUM_WORKERS, + "sampler": InferenceSampler(len(dataset)) + if not isinstance(dataset, torchdata.IterableDataset) + else None, + } + + +@configurable(from_config=_test_loader_from_config) +def build_detection_test_loader( + dataset: Union[List[Any], torchdata.Dataset], + *, + mapper: Callable[[Dict[str, Any]], Any], + sampler: Optional[torchdata.Sampler] = None, + batch_size: int = 1, + num_workers: int = 0, + collate_fn: Optional[Callable[[List[Any]], Any]] = None, +) -> torchdata.DataLoader: + """ + Similar to `build_detection_train_loader`, with default batch size = 1, + and sampler = :class:`InferenceSampler`. This sampler coordinates all workers + to produce the exact set of all samples. + + Args: + dataset: a list of dataset dicts, + or a pytorch dataset (either map-style or iterable). They can be obtained + by using :func:`DatasetCatalog.get` or :func:`get_detection_dataset_dicts`. + mapper: a callable which takes a sample (dict) from dataset + and returns the format to be consumed by the model. + When using cfg, the default choice is ``DatasetMapper(cfg, is_train=False)``. + sampler: a sampler that produces + indices to be applied on ``dataset``. Default to :class:`InferenceSampler`, + which splits the dataset across all workers. Sampler must be None + if `dataset` is iterable. + batch_size: the batch size of the data loader to be created. + Default to 1 image per worker since this is the standard when reporting + inference time in papers. + num_workers: number of parallel data loading workers + collate_fn: same as the argument of `torch.utils.data.DataLoader`. + Defaults to do no collation and return a list of data. + + Returns: + DataLoader: a torch DataLoader, that loads the given detection + dataset, with test-time transformation and batching. + + Examples: + :: + data_loader = build_detection_test_loader( + DatasetRegistry.get("my_test"), + mapper=DatasetMapper(...)) + + # or, instantiate with a CfgNode: + data_loader = build_detection_test_loader(cfg, "my_test") + """ + if isinstance(dataset, list): + dataset = DatasetFromList(dataset, copy=False) + if mapper is not None: + dataset = MapDataset(dataset, mapper) + if isinstance(dataset, torchdata.IterableDataset): + assert sampler is None, "sampler must be None if dataset is IterableDataset" + else: + if sampler is None: + sampler = InferenceSampler(len(dataset)) + return torchdata.DataLoader( + dataset, + batch_size=batch_size, + sampler=sampler, + drop_last=False, + num_workers=num_workers, + collate_fn=trivial_batch_collator if collate_fn is None else collate_fn, + ) + + +def trivial_batch_collator(batch): + """ + A batch collator that does nothing. + """ + return batch + + +def worker_init_reset_seed(worker_id): + initial_seed = torch.initial_seed() % 2**31 + seed_all_rng(initial_seed + worker_id) diff --git a/detectron2/detectron2/data/catalog.py b/detectron2/detectron2/data/catalog.py new file mode 100755 index 0000000..45c110c --- /dev/null +++ b/detectron2/detectron2/data/catalog.py @@ -0,0 +1,236 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import logging +import types +from collections import UserDict +from typing import List + +from detectron2.utils.logger import log_first_n + +__all__ = ["DatasetCatalog", "MetadataCatalog", "Metadata"] + + +class _DatasetCatalog(UserDict): + """ + A global dictionary that stores information about the datasets and how to obtain them. + + It contains a mapping from strings + (which are names that identify a dataset, e.g. "coco_2014_train") + to a function which parses the dataset and returns the samples in the + format of `list[dict]`. + + The returned dicts should be in Detectron2 Dataset format (See DATASETS.md for details) + if used with the data loader functionalities in `data/build.py,data/detection_transform.py`. + + The purpose of having this catalog is to make it easy to choose + different datasets, by just using the strings in the config. + """ + + def register(self, name, func): + """ + Args: + name (str): the name that identifies a dataset, e.g. "coco_2014_train". + func (callable): a callable which takes no arguments and returns a list of dicts. + It must return the same results if called multiple times. + """ + assert callable(func), "You must register a function with `DatasetCatalog.register`!" + assert name not in self, "Dataset '{}' is already registered!".format(name) + self[name] = func + + def get(self, name): + """ + Call the registered function and return its results. + + Args: + name (str): the name that identifies a dataset, e.g. "coco_2014_train". + + Returns: + list[dict]: dataset annotations. + """ + try: + f = self[name] + except KeyError as e: + raise KeyError( + "Dataset '{}' is not registered! Available datasets are: {}".format( + name, ", ".join(list(self.keys())) + ) + ) from e + return f() + + def list(self) -> List[str]: + """ + List all registered datasets. + + Returns: + list[str] + """ + return list(self.keys()) + + def remove(self, name): + """ + Alias of ``pop``. + """ + self.pop(name) + + def __str__(self): + return "DatasetCatalog(registered datasets: {})".format(", ".join(self.keys())) + + __repr__ = __str__ + + +DatasetCatalog = _DatasetCatalog() +DatasetCatalog.__doc__ = ( + _DatasetCatalog.__doc__ + + """ + .. automethod:: detectron2.data.catalog.DatasetCatalog.register + .. automethod:: detectron2.data.catalog.DatasetCatalog.get +""" +) + + +class Metadata(types.SimpleNamespace): + """ + A class that supports simple attribute setter/getter. + It is intended for storing metadata of a dataset and make it accessible globally. + + Examples: + :: + # somewhere when you load the data: + MetadataCatalog.get("mydataset").thing_classes = ["person", "dog"] + + # somewhere when you print statistics or visualize: + classes = MetadataCatalog.get("mydataset").thing_classes + """ + + # the name of the dataset + # set default to N/A so that `self.name` in the errors will not trigger getattr again + name: str = "N/A" + + _RENAMED = { + "class_names": "thing_classes", + "dataset_id_to_contiguous_id": "thing_dataset_id_to_contiguous_id", + "stuff_class_names": "stuff_classes", + } + + def __getattr__(self, key): + if key in self._RENAMED: + log_first_n( + logging.WARNING, + "Metadata '{}' was renamed to '{}'!".format(key, self._RENAMED[key]), + n=10, + ) + return getattr(self, self._RENAMED[key]) + + # "name" exists in every metadata + if len(self.__dict__) > 1: + raise AttributeError( + "Attribute '{}' does not exist in the metadata of dataset '{}'. Available " + "keys are {}.".format(key, self.name, str(self.__dict__.keys())) + ) + else: + raise AttributeError( + f"Attribute '{key}' does not exist in the metadata of dataset '{self.name}': " + "metadata is empty." + ) + + def __setattr__(self, key, val): + if key in self._RENAMED: + log_first_n( + logging.WARNING, + "Metadata '{}' was renamed to '{}'!".format(key, self._RENAMED[key]), + n=10, + ) + setattr(self, self._RENAMED[key], val) + + # Ensure that metadata of the same name stays consistent + try: + oldval = getattr(self, key) + assert oldval == val, ( + "Attribute '{}' in the metadata of '{}' cannot be set " + "to a different value!\n{} != {}".format(key, self.name, oldval, val) + ) + except AttributeError: + super().__setattr__(key, val) + + def as_dict(self): + """ + Returns all the metadata as a dict. + Note that modifications to the returned dict will not reflect on the Metadata object. + """ + return copy.copy(self.__dict__) + + def set(self, **kwargs): + """ + Set multiple metadata with kwargs. + """ + for k, v in kwargs.items(): + setattr(self, k, v) + return self + + def get(self, key, default=None): + """ + Access an attribute and return its value if exists. + Otherwise return default. + """ + try: + return getattr(self, key) + except AttributeError: + return default + + +class _MetadataCatalog(UserDict): + """ + MetadataCatalog is a global dictionary that provides access to + :class:`Metadata` of a given dataset. + + The metadata associated with a certain name is a singleton: once created, the + metadata will stay alive and will be returned by future calls to ``get(name)``. + + It's like global variables, so don't abuse it. + It's meant for storing knowledge that's constant and shared across the execution + of the program, e.g.: the class names in COCO. + """ + + def get(self, name): + """ + Args: + name (str): name of a dataset (e.g. coco_2014_train). + + Returns: + Metadata: The :class:`Metadata` instance associated with this name, + or create an empty one if none is available. + """ + assert len(name) + r = super().get(name, None) + if r is None: + r = self[name] = Metadata(name=name) + return r + + def list(self): + """ + List all registered metadata. + + Returns: + list[str]: keys (names of datasets) of all registered metadata + """ + return list(self.keys()) + + def remove(self, name): + """ + Alias of ``pop``. + """ + self.pop(name) + + def __str__(self): + return "MetadataCatalog(registered metadata: {})".format(", ".join(self.keys())) + + __repr__ = __str__ + + +MetadataCatalog = _MetadataCatalog() +MetadataCatalog.__doc__ = ( + _MetadataCatalog.__doc__ + + """ + .. automethod:: detectron2.data.catalog.MetadataCatalog.get +""" +) diff --git a/detectron2/detectron2/data/common.py b/detectron2/detectron2/data/common.py new file mode 100755 index 0000000..bf24b1d --- /dev/null +++ b/detectron2/detectron2/data/common.py @@ -0,0 +1,301 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import contextlib +import copy +import itertools +import logging +import numpy as np +import pickle +import random +from typing import Callable, Union +import torch +import torch.utils.data as data +from torch.utils.data.sampler import Sampler + +from detectron2.utils.serialize import PicklableWrapper + +__all__ = ["MapDataset", "DatasetFromList", "AspectRatioGroupedDataset", "ToIterableDataset"] + +logger = logging.getLogger(__name__) + + +def _shard_iterator_dataloader_worker(iterable): + # Shard the iterable if we're currently inside pytorch dataloader worker. + worker_info = data.get_worker_info() + if worker_info is None or worker_info.num_workers == 1: + # do nothing + yield from iterable + else: + yield from itertools.islice(iterable, worker_info.id, None, worker_info.num_workers) + + +class _MapIterableDataset(data.IterableDataset): + """ + Map a function over elements in an IterableDataset. + + Similar to pytorch's MapIterDataPipe, but support filtering when map_func + returns None. + + This class is not public-facing. Will be called by `MapDataset`. + """ + + def __init__(self, dataset, map_func): + self._dataset = dataset + self._map_func = PicklableWrapper(map_func) # wrap so that a lambda will work + + def __len__(self): + return len(self._dataset) + + def __iter__(self): + for x in map(self._map_func, self._dataset): + if x is not None: + yield x + + +class MapDataset(data.Dataset): + """ + Map a function over the elements in a dataset. + """ + + def __init__(self, dataset, map_func): + """ + Args: + dataset: a dataset where map function is applied. Can be either + map-style or iterable dataset. When given an iterable dataset, + the returned object will also be an iterable dataset. + map_func: a callable which maps the element in dataset. map_func can + return None to skip the data (e.g. in case of errors). + How None is handled depends on the style of `dataset`. + If `dataset` is map-style, it randomly tries other elements. + If `dataset` is iterable, it skips the data and tries the next. + """ + self._dataset = dataset + self._map_func = PicklableWrapper(map_func) # wrap so that a lambda will work + + self._rng = random.Random(42) + self._fallback_candidates = set(range(len(dataset))) + + def __new__(cls, dataset, map_func): + is_iterable = isinstance(dataset, data.IterableDataset) + if is_iterable: + return _MapIterableDataset(dataset, map_func) + else: + return super().__new__(cls) + + def __getnewargs__(self): + return self._dataset, self._map_func + + def __len__(self): + return len(self._dataset) + + def __getitem__(self, idx): + retry_count = 0 + cur_idx = int(idx) + + while True: + data = self._map_func(self._dataset[cur_idx]) + if data is not None: + self._fallback_candidates.add(cur_idx) + return data + + # _map_func fails for this idx, use a random new index from the pool + retry_count += 1 + self._fallback_candidates.discard(cur_idx) + cur_idx = self._rng.sample(self._fallback_candidates, k=1)[0] + + if retry_count >= 3: + logger = logging.getLogger(__name__) + logger.warning( + "Failed to apply `_map_func` for idx: {}, retry count: {}".format( + idx, retry_count + ) + ) + + +class _TorchSerializedList(object): + """ + A list-like object whose items are serialized and stored in a torch tensor. When + launching a process that uses TorchSerializedList with "fork" start method, + the subprocess can read the same buffer without triggering copy-on-access. When + launching a process that uses TorchSerializedList with "spawn/forkserver" start + method, the list will be pickled by a special ForkingPickler registered by PyTorch + that moves data to shared memory. In both cases, this allows parent and child + processes to share RAM for the list data, hence avoids the issue in + https://github.com/pytorch/pytorch/issues/13246. + + See also https://ppwwyyxx.com/blog/2022/Demystify-RAM-Usage-in-Multiprocess-DataLoader/ + on how it works. + """ + + def __init__(self, lst: list): + self._lst = lst + + def _serialize(data): + buffer = pickle.dumps(data, protocol=-1) + return np.frombuffer(buffer, dtype=np.uint8) + + logger.info( + "Serializing {} elements to byte tensors and concatenating them all ...".format( + len(self._lst) + ) + ) + self._lst = [_serialize(x) for x in self._lst] + self._addr = np.asarray([len(x) for x in self._lst], dtype=np.int64) + self._addr = torch.from_numpy(np.cumsum(self._addr)) + self._lst = torch.from_numpy(np.concatenate(self._lst)) + logger.info("Serialized dataset takes {:.2f} MiB".format(len(self._lst) / 1024**2)) + + def __len__(self): + return len(self._addr) + + def __getitem__(self, idx): + start_addr = 0 if idx == 0 else self._addr[idx - 1].item() + end_addr = self._addr[idx].item() + bytes = memoryview(self._lst[start_addr:end_addr].numpy()) + + # @lint-ignore PYTHONPICKLEISBAD + return pickle.loads(bytes) + + +_DEFAULT_DATASET_FROM_LIST_SERIALIZE_METHOD = _TorchSerializedList + + +@contextlib.contextmanager +def set_default_dataset_from_list_serialize_method(new): + """ + Context manager for using custom serialize function when creating DatasetFromList + """ + + global _DEFAULT_DATASET_FROM_LIST_SERIALIZE_METHOD + orig = _DEFAULT_DATASET_FROM_LIST_SERIALIZE_METHOD + _DEFAULT_DATASET_FROM_LIST_SERIALIZE_METHOD = new + yield + _DEFAULT_DATASET_FROM_LIST_SERIALIZE_METHOD = orig + + +class DatasetFromList(data.Dataset): + """ + Wrap a list to a torch Dataset. It produces elements of the list as data. + """ + + def __init__( + self, + lst: list, + copy: bool = True, + serialize: Union[bool, Callable] = True, + ): + """ + Args: + lst (list): a list which contains elements to produce. + copy (bool): whether to deepcopy the element when producing it, + so that the result can be modified in place without affecting the + source in the list. + serialize (bool or callable): whether to serialize the stroage to other + backend. If `True`, the default serialize method will be used, if given + a callable, the callable will be used as serialize method. + """ + self._lst = lst + self._copy = copy + if not isinstance(serialize, (bool, Callable)): + raise TypeError(f"Unsupported type for argument `serailzie`: {serialize}") + self._serialize = serialize is not False + + if self._serialize: + serialize_method = ( + serialize + if isinstance(serialize, Callable) + else _DEFAULT_DATASET_FROM_LIST_SERIALIZE_METHOD + ) + logger.info(f"Serializing the dataset using: {serialize_method}") + self._lst = serialize_method(self._lst) + + def __len__(self): + return len(self._lst) + + def __getitem__(self, idx): + if self._copy and not self._serialize: + return copy.deepcopy(self._lst[idx]) + else: + return self._lst[idx] + + +class ToIterableDataset(data.IterableDataset): + """ + Convert an old indices-based (also called map-style) dataset + to an iterable-style dataset. + """ + + def __init__(self, dataset: data.Dataset, sampler: Sampler, shard_sampler: bool = True): + """ + Args: + dataset: an old-style dataset with ``__getitem__`` + sampler: a cheap iterable that produces indices to be applied on ``dataset``. + shard_sampler: whether to shard the sampler based on the current pytorch data loader + worker id. When an IterableDataset is forked by pytorch's DataLoader into multiple + workers, it is responsible for sharding its data based on worker id so that workers + don't produce identical data. + + Most samplers (like our TrainingSampler) do not shard based on dataloader worker id + and this argument should be set to True. But certain samplers may be already + sharded, in that case this argument should be set to False. + """ + assert not isinstance(dataset, data.IterableDataset), dataset + assert isinstance(sampler, Sampler), sampler + self.dataset = dataset + self.sampler = sampler + self.shard_sampler = shard_sampler + + def __iter__(self): + if not self.shard_sampler: + sampler = self.sampler + else: + # With map-style dataset, `DataLoader(dataset, sampler)` runs the + # sampler in main process only. But `DataLoader(ToIterableDataset(dataset, sampler))` + # will run sampler in every of the N worker. So we should only keep 1/N of the ids on + # each worker. The assumption is that sampler is cheap to iterate so it's fine to + # discard ids in workers. + sampler = _shard_iterator_dataloader_worker(self.sampler) + for idx in sampler: + yield self.dataset[idx] + + def __len__(self): + return len(self.sampler) + + +class AspectRatioGroupedDataset(data.IterableDataset): + """ + Batch data that have similar aspect ratio together. + In this implementation, images whose aspect ratio < (or >) 1 will + be batched together. + This improves training speed because the images then need less padding + to form a batch. + + It assumes the underlying dataset produces dicts with "width" and "height" keys. + It will then produce a list of original dicts with length = batch_size, + all with similar aspect ratios. + """ + + def __init__(self, dataset, batch_size): + """ + Args: + dataset: an iterable. Each element must be a dict with keys + "width" and "height", which will be used to batch data. + batch_size (int): + """ + self.dataset = dataset + self.batch_size = batch_size + self._buckets = [[] for _ in range(2)] + # Hard-coded two aspect ratio groups: w > h and w < h. + # Can add support for more aspect ratio groups, but doesn't seem useful + + def __iter__(self): + for d in self.dataset: + w, h = d["width"], d["height"] + bucket_id = 0 if w > h else 1 + bucket = self._buckets[bucket_id] + bucket.append(d) + if len(bucket) == self.batch_size: + data = bucket[:] + # Clear bucket first, because code after yield is not + # guaranteed to execute + del bucket[:] + yield data diff --git a/detectron2/detectron2/data/dataset_mapper.py b/detectron2/detectron2/data/dataset_mapper.py new file mode 100755 index 0000000..a38c8df --- /dev/null +++ b/detectron2/detectron2/data/dataset_mapper.py @@ -0,0 +1,191 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import logging +import numpy as np +from typing import List, Optional, Union +import torch + +from detectron2.config import configurable + +from . import detection_utils as utils +from . import transforms as T + +""" +This file contains the default mapping that's applied to "dataset dicts". +""" + +__all__ = ["DatasetMapper"] + + +class DatasetMapper: + """ + A callable which takes a dataset dict in Detectron2 Dataset format, + and map it into a format used by the model. + + This is the default callable to be used to map your dataset dict into training data. + You may need to follow it to implement your own one for customized logic, + such as a different way to read or transform images. + See :doc:`/tutorials/data_loading` for details. + + The callable currently does the following: + + 1. Read the image from "file_name" + 2. Applies cropping/geometric transforms to the image and annotations + 3. Prepare data and annotations to Tensor and :class:`Instances` + """ + + @configurable + def __init__( + self, + is_train: bool, + *, + augmentations: List[Union[T.Augmentation, T.Transform]], + image_format: str, + use_instance_mask: bool = False, + use_keypoint: bool = False, + instance_mask_format: str = "polygon", + keypoint_hflip_indices: Optional[np.ndarray] = None, + precomputed_proposal_topk: Optional[int] = None, + recompute_boxes: bool = False, + ): + """ + NOTE: this interface is experimental. + + Args: + is_train: whether it's used in training or inference + augmentations: a list of augmentations or deterministic transforms to apply + image_format: an image format supported by :func:`detection_utils.read_image`. + use_instance_mask: whether to process instance segmentation annotations, if available + use_keypoint: whether to process keypoint annotations if available + instance_mask_format: one of "polygon" or "bitmask". Process instance segmentation + masks into this format. + keypoint_hflip_indices: see :func:`detection_utils.create_keypoint_hflip_indices` + precomputed_proposal_topk: if given, will load pre-computed + proposals from dataset_dict and keep the top k proposals for each image. + recompute_boxes: whether to overwrite bounding box annotations + by computing tight bounding boxes from instance mask annotations. + """ + if recompute_boxes: + assert use_instance_mask, "recompute_boxes requires instance masks" + # fmt: off + self.is_train = is_train + self.augmentations = T.AugmentationList(augmentations) + self.image_format = image_format + self.use_instance_mask = use_instance_mask + self.instance_mask_format = instance_mask_format + self.use_keypoint = use_keypoint + self.keypoint_hflip_indices = keypoint_hflip_indices + self.proposal_topk = precomputed_proposal_topk + self.recompute_boxes = recompute_boxes + # fmt: on + logger = logging.getLogger(__name__) + mode = "training" if is_train else "inference" + logger.info(f"[DatasetMapper] Augmentations used in {mode}: {augmentations}") + + @classmethod + def from_config(cls, cfg, is_train: bool = True): + augs = utils.build_augmentation(cfg, is_train) + if cfg.INPUT.CROP.ENABLED and is_train: + augs.insert(0, T.RandomCrop(cfg.INPUT.CROP.TYPE, cfg.INPUT.CROP.SIZE)) + recompute_boxes = cfg.MODEL.MASK_ON + else: + recompute_boxes = False + + ret = { + "is_train": is_train, + "augmentations": augs, + "image_format": cfg.INPUT.FORMAT, + "use_instance_mask": cfg.MODEL.MASK_ON, + "instance_mask_format": cfg.INPUT.MASK_FORMAT, + "use_keypoint": cfg.MODEL.KEYPOINT_ON, + "recompute_boxes": recompute_boxes, + } + + if cfg.MODEL.KEYPOINT_ON: + ret["keypoint_hflip_indices"] = utils.create_keypoint_hflip_indices(cfg.DATASETS.TRAIN) + + if cfg.MODEL.LOAD_PROPOSALS: + ret["precomputed_proposal_topk"] = ( + cfg.DATASETS.PRECOMPUTED_PROPOSAL_TOPK_TRAIN + if is_train + else cfg.DATASETS.PRECOMPUTED_PROPOSAL_TOPK_TEST + ) + return ret + + def _transform_annotations(self, dataset_dict, transforms, image_shape): + # USER: Modify this if you want to keep them for some reason. + for anno in dataset_dict["annotations"]: + if not self.use_instance_mask: + anno.pop("segmentation", None) + if not self.use_keypoint: + anno.pop("keypoints", None) + + # USER: Implement additional transformations if you have other types of data + annos = [ + utils.transform_instance_annotations( + obj, transforms, image_shape, keypoint_hflip_indices=self.keypoint_hflip_indices + ) + for obj in dataset_dict.pop("annotations") + if obj.get("iscrowd", 0) == 0 + ] + instances = utils.annotations_to_instances( + annos, image_shape, mask_format=self.instance_mask_format + ) + + # After transforms such as cropping are applied, the bounding box may no longer + # tightly bound the object. As an example, imagine a triangle object + # [(0,0), (2,0), (0,2)] cropped by a box [(1,0),(2,2)] (XYXY format). The tight + # bounding box of the cropped triangle should be [(1,0),(2,1)], which is not equal to + # the intersection of original bounding box and the cropping box. + if self.recompute_boxes: + instances.gt_boxes = instances.gt_masks.get_bounding_boxes() + dataset_dict["instances"] = utils.filter_empty_instances(instances) + + def __call__(self, dataset_dict): + """ + Args: + dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. + + Returns: + dict: a format that builtin models in detectron2 accept + """ + dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below + # USER: Write your own image loading if it's not from a file + image = utils.read_image(dataset_dict["file_name"], format=self.image_format) + utils.check_image_size(dataset_dict, image) + + # USER: Remove if you don't do semantic/panoptic segmentation. + if "sem_seg_file_name" in dataset_dict: + sem_seg_gt = utils.read_image(dataset_dict.pop("sem_seg_file_name"), "L").squeeze(2) + else: + sem_seg_gt = None + + aug_input = T.AugInput(image, sem_seg=sem_seg_gt) + transforms = self.augmentations(aug_input) + image, sem_seg_gt = aug_input.image, aug_input.sem_seg + + image_shape = image.shape[:2] # h, w + # Pytorch's dataloader is efficient on torch.Tensor due to shared-memory, + # but not efficient on large generic data structures due to the use of pickle & mp.Queue. + # Therefore it's important to use torch.Tensor. + dataset_dict["image"] = torch.as_tensor(np.ascontiguousarray(image.transpose(2, 0, 1))) + if sem_seg_gt is not None: + dataset_dict["sem_seg"] = torch.as_tensor(sem_seg_gt.astype("long")) + + # USER: Remove if you don't use pre-computed proposals. + # Most users would not need this feature. + if self.proposal_topk is not None: + utils.transform_proposals( + dataset_dict, image_shape, transforms, proposal_topk=self.proposal_topk + ) + + if not self.is_train: + # USER: Modify this if you want to keep them for some reason. + # dataset_dict.pop("annotations", None) + dataset_dict.pop("sem_seg_file_name", None) + # return dataset_dict + + if "annotations" in dataset_dict: + self._transform_annotations(dataset_dict, transforms, image_shape) + + return dataset_dict diff --git a/detectron2/detectron2/data/datasets/README.md b/detectron2/detectron2/data/datasets/README.md new file mode 100755 index 0000000..9fb3e4f --- /dev/null +++ b/detectron2/detectron2/data/datasets/README.md @@ -0,0 +1,9 @@ + + +### Common Datasets + +The dataset implemented here do not need to load the data into the final format. +It should provide the minimal data structure needed to use the dataset, so it can be very efficient. + +For example, for an image dataset, just provide the file names and labels, but don't read the images. +Let the downstream decide how to read. diff --git a/detectron2/detectron2/data/datasets/__init__.py b/detectron2/detectron2/data/datasets/__init__.py new file mode 100755 index 0000000..a44bedc --- /dev/null +++ b/detectron2/detectron2/data/datasets/__init__.py @@ -0,0 +1,9 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .coco import load_coco_json, load_sem_seg, register_coco_instances, convert_to_coco_json +from .coco_panoptic import register_coco_panoptic, register_coco_panoptic_separated +from .lvis import load_lvis_json, register_lvis_instances, get_lvis_instances_meta +from .pascal_voc import load_voc_instances, register_pascal_voc +from . import builtin as _builtin # ensure the builtin datasets are registered + + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/data/datasets/builtin.py b/detectron2/detectron2/data/datasets/builtin.py new file mode 100755 index 0000000..c943f52 --- /dev/null +++ b/detectron2/detectron2/data/datasets/builtin.py @@ -0,0 +1,384 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + + +""" +This file registers pre-defined datasets at hard-coded paths, and their metadata. + +We hard-code metadata for common datasets. This will enable: +1. Consistency check when loading the datasets +2. Use models on these standard datasets directly and run demos, + without having to download the dataset annotations + +We hard-code some paths to the dataset that's assumed to +exist in "./datasets/". + +Users SHOULD NOT use this file to create new dataset / metadata for new dataset. +To add new dataset, refer to the tutorial "docs/DATASETS.md". +""" + +import os + +from detectron2.data import DatasetCatalog, MetadataCatalog + +from .builtin_meta import ADE20K_SEM_SEG_CATEGORIES, _get_builtin_metadata +from .cityscapes import load_cityscapes_instances, load_cityscapes_semantic +from .cityscapes_panoptic import register_all_cityscapes_panoptic +from .coco import load_sem_seg, register_coco_instances +from .coco_panoptic import register_coco_panoptic, register_coco_panoptic_separated +from .lvis import get_lvis_instances_meta, register_lvis_instances +from .pascal_voc import register_pascal_voc + +# ==== Predefined datasets and splits for COCO ========== + +_PREDEFINED_SPLITS_COCO = {} +_PREDEFINED_SPLITS_COCO["coco"] = { + "coco_2014_train": ("coco/train2014", "coco/annotations/instances_train2014.json"), + "coco_2014_val": ("coco/val2014", "coco/annotations/instances_val2014.json"), + "coco_2014_minival": ("coco/val2014", "coco/annotations/instances_minival2014.json"), + "coco_2014_valminusminival": ( + "coco/val2014", + "coco/annotations/instances_valminusminival2014.json", + ), + "coco_2017_train": ("coco/train2017", "coco/annotations/instances_train2017.json"), + "coco_2017_val": ("coco/val2017", "coco/annotations/instances_val2017.json"), + "coco_2017_val_100": ("coco/val2017", "coco/annotations/instances_val2017_100.json"), + "coco_2017_test": ("coco/test2017", "coco/annotations/image_info_test2017.json"), + "coco_2017_test-dev": ("coco/test2017", "coco/annotations/image_info_test-dev2017.json"), + + # COCO subsets for PointWSSIS, Weakly Semi-Supervised Instance Segmentation with Point Labels. + "coco_2017_train_1p_s": ("coco/train2017", "coco/annotations/instances_train2017_1p_s.json"), + "coco_2017_train_2p_s": ("coco/train2017", "coco/annotations/instances_train2017_2p_s.json"), + "coco_2017_train_5p_s": ("coco/train2017", "coco/annotations/instances_train2017_5p_s.json"), + "coco_2017_train_10p_s": ("coco/train2017", "coco/annotations/instances_train2017_10p_s.json"), + "coco_2017_train_20p_s": ("coco/train2017", "coco/annotations/instances_train2017_20p_s.json"), + "coco_2017_train_30p_s": ("coco/train2017", "coco/annotations/instances_train2017_30p_s.json"), + "coco_2017_train_40p_s": ("coco/train2017", "coco/annotations/instances_train2017_40p_s.json"), + "coco_2017_train_50p_s": ("coco/train2017", "coco/annotations/instances_train2017_50p_s.json"), + "coco_2017_train_60p_s": ("coco/train2017", "coco/annotations/instances_train2017_60p_s.json"), + "coco_2017_train_70p_s": ("coco/train2017", "coco/annotations/instances_train2017_70p_s.json"), + "coco_2017_train_80p_s": ("coco/train2017", "coco/annotations/instances_train2017_80p_s.json"), + "coco_2017_train_90p_s": ("coco/train2017", "coco/annotations/instances_train2017_90p_s.json"), + + "coco_2017_train_1p_w": ("coco/train2017", "coco/annotations/instances_train2017_1p_w.json"), + "coco_2017_train_2p_w": ("coco/train2017", "coco/annotations/instances_train2017_2p_w.json"), + "coco_2017_train_5p_w": ("coco/train2017", "coco/annotations/instances_train2017_5p_w.json"), + "coco_2017_train_10p_w": ("coco/train2017", "coco/annotations/instances_train2017_10p_w.json"), + "coco_2017_train_20p_w": ("coco/train2017", "coco/annotations/instances_train2017_20p_w.json"), + "coco_2017_train_30p_w": ("coco/train2017", "coco/annotations/instances_train2017_30p_w.json"), + "coco_2017_train_40p_w": ("coco/train2017", "coco/annotations/instances_train2017_40p_w.json"), + "coco_2017_train_50p_w": ("coco/train2017", "coco/annotations/instances_train2017_50p_w.json"), + "coco_2017_train_60p_w": ("coco/train2017", "coco/annotations/instances_train2017_60p_w.json"), + "coco_2017_train_70p_w": ("coco/train2017", "coco/annotations/instances_train2017_70p_w.json"), + "coco_2017_train_80p_w": ("coco/train2017", "coco/annotations/instances_train2017_80p_w.json"), + "coco_2017_train_90p_w": ("coco/train2017", "coco/annotations/instances_train2017_90p_w.json"), + + "coco_2017_train_1p_sw": ("coco/train2017", "coco/annotations/instances_train2017_1p_sw.json"), + "coco_2017_train_2p_sw": ("coco/train2017", "coco/annotations/instances_train2017_2p_sw.json"), + "coco_2017_train_5p_sw": ("coco/train2017", "coco/annotations/instances_train2017_5p_sw.json"), + "coco_2017_train_10p_sw": ("coco/train2017", "coco/annotations/instances_train2017_10p_sw.json"), + "coco_2017_train_20p_sw": ("coco/train2017", "coco/annotations/instances_train2017_20p_sw.json"), + "coco_2017_train_30p_sw": ("coco/train2017", "coco/annotations/instances_train2017_30p_sw.json"), + "coco_2017_train_40p_sw": ("coco/train2017", "coco/annotations/instances_train2017_40p_sw.json"), + "coco_2017_train_50p_sw": ("coco/train2017", "coco/annotations/instances_train2017_50p_sw.json"), + "coco_2017_train_60p_sw": ("coco/train2017", "coco/annotations/instances_train2017_60p_sw.json"), + "coco_2017_train_70p_sw": ("coco/train2017", "coco/annotations/instances_train2017_70p_sw.json"), + "coco_2017_train_80p_sw": ("coco/train2017", "coco/annotations/instances_train2017_80p_sw.json"), + "coco_2017_train_90p_sw": ("coco/train2017", "coco/annotations/instances_train2017_90p_sw.json"), + + "coco_2017_train_1p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_1p_sw_refined.json"), + "coco_2017_train_2p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_2p_sw_refined.json"), + "coco_2017_train_5p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_5p_sw_refined.json"), + "coco_2017_train_10p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_10p_sw_refined.json"), + "coco_2017_train_20p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_20p_sw_refined.json"), + "coco_2017_train_30p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_30p_sw_refined.json"), + "coco_2017_train_40p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_40p_sw_refined.json"), + "coco_2017_train_50p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_50p_sw_refined.json"), + "coco_2017_train_60p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_60p_sw_refined.json"), + "coco_2017_train_70p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_70p_sw_refined.json"), + "coco_2017_train_80p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_80p_sw_refined.json"), + "coco_2017_train_90p_sw_refined": ("coco/train2017", "coco/annotations/instances_train2017_90p_sw_refined.json"), +} + + +_PREDEFINED_SPLITS_COCO["coco_person"] = { + "keypoints_coco_2014_train": ( + "coco/train2014", + "coco/annotations/person_keypoints_train2014.json", + ), + "keypoints_coco_2014_val": ("coco/val2014", "coco/annotations/person_keypoints_val2014.json"), + "keypoints_coco_2014_minival": ( + "coco/val2014", + "coco/annotations/person_keypoints_minival2014.json", + ), + "keypoints_coco_2014_valminusminival": ( + "coco/val2014", + "coco/annotations/person_keypoints_valminusminival2014.json", + ), + "keypoints_coco_2017_train": ( + "coco/train2017", + "coco/annotations/person_keypoints_train2017.json", + ), + "keypoints_coco_2017_val": ("coco/val2017", "coco/annotations/person_keypoints_val2017.json"), + "keypoints_coco_2017_val_100": ( + "coco/val2017", + "coco/annotations/person_keypoints_val2017_100.json", + ), +} + + +_PREDEFINED_SPLITS_COCO_PANOPTIC = { + "coco_2017_train_panoptic": ( + # This is the original panoptic annotation directory + "coco/panoptic_train2017", + "coco/annotations/panoptic_train2017.json", + # This directory contains semantic annotations that are + # converted from panoptic annotations. + # It is used by PanopticFPN. + # You can use the script at detectron2/datasets/prepare_panoptic_fpn.py + # to create these directories. + "coco/panoptic_stuff_train2017", + ), + "coco_2017_val_panoptic": ( + "coco/panoptic_val2017", + "coco/annotations/panoptic_val2017.json", + "coco/panoptic_stuff_val2017", + ), + "coco_2017_val_100_panoptic": ( + "coco/panoptic_val2017_100", + "coco/annotations/panoptic_val2017_100.json", + "coco/panoptic_stuff_val2017_100", + ), +} + + +def register_all_coco(root): + for dataset_name, splits_per_dataset in _PREDEFINED_SPLITS_COCO.items(): + for key, (image_root, json_file) in splits_per_dataset.items(): + # Assume pre-defined datasets live in `./datasets`. + register_coco_instances( + key, + _get_builtin_metadata(dataset_name), + os.path.join(root, json_file) if "://" not in json_file else json_file, + os.path.join(root, image_root), + ) + + for ( + prefix, + (panoptic_root, panoptic_json, semantic_root), + ) in _PREDEFINED_SPLITS_COCO_PANOPTIC.items(): + prefix_instances = prefix[: -len("_panoptic")] + instances_meta = MetadataCatalog.get(prefix_instances) + image_root, instances_json = instances_meta.image_root, instances_meta.json_file + # The "separated" version of COCO panoptic segmentation dataset, + # e.g. used by Panoptic FPN + register_coco_panoptic_separated( + prefix, + _get_builtin_metadata("coco_panoptic_separated"), + image_root, + os.path.join(root, panoptic_root), + os.path.join(root, panoptic_json), + os.path.join(root, semantic_root), + instances_json, + ) + # The "standard" version of COCO panoptic segmentation dataset, + # e.g. used by Panoptic-DeepLab + register_coco_panoptic( + prefix, + _get_builtin_metadata("coco_panoptic_standard"), + image_root, + os.path.join(root, panoptic_root), + os.path.join(root, panoptic_json), + instances_json, + ) + + +# ==== Predefined datasets and splits for BDD100K ========== +_PREDEFINED_SPLITS_BDD100K = {} +_PREDEFINED_SPLITS_BDD100K["bdd100k"] = { + + "bdd100k_det_train": ("BDD100K/train", "BDD100K/annotations/bdd100k_det_labels_train_reid.json"), + "bdd100k_det_val": ("BDD100K/val", "BDD100K/annotations/bdd100k_det_labels_val.json"), + "bdd100k_inst_det_train": ("BDD100K/train", "BDD100K/annotations/bdd100k_inst_det_labels_train_reid.json"), + "bdd100k_inst_det_val": ("BDD100K/val", "BDD100K/annotations/bdd100k_inst_det_labels_val.json"), + + "bdd100k_train": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train.json"), + "bdd100k_val": ("BDD100K/val", "BDD100K/annotations/bdd100k_ins_labels_val.json"), + + "bdd100k_train_5p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_5p_s.json"), + "bdd100k_train_10p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_10p_s.json"), + "bdd100k_train_20p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_20p_s.json"), + "bdd100k_train_30p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_30p_s.json"), + "bdd100k_train_40p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_40p_s.json"), + "bdd100k_train_50p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_50p_s.json"), + "bdd100k_train_60p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_60p_s.json"), + "bdd100k_train_70p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_70p_s.json"), + "bdd100k_train_80p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_80p_s.json"), + "bdd100k_train_90p_s": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_90p_s.json"), + + "bdd100k_train_5p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_5p_w.json"), + "bdd100k_train_10p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_10p_w.json"), + "bdd100k_train_20p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_20p_w.json"), + "bdd100k_train_30p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_30p_w.json"), + "bdd100k_train_40p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_40p_w.json"), + "bdd100k_train_50p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_50p_w.json"), + "bdd100k_train_60p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_60p_w.json"), + "bdd100k_train_70p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_70p_w.json"), + "bdd100k_train_80p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_80p_w.json"), + "bdd100k_train_90p_w": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_90p_w.json"), + + "bdd100k_train_5p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_5p_sw.json"), + "bdd100k_train_10p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_10p_sw.json"), + "bdd100k_train_20p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_20p_sw.json"), + "bdd100k_train_30p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_30p_sw.json"), + "bdd100k_train_40p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_40p_sw.json"), + "bdd100k_train_50p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_50p_sw.json"), + "bdd100k_train_60p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_60p_sw.json"), + "bdd100k_train_70p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_70p_sw.json"), + "bdd100k_train_80p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_80p_sw.json"), + "bdd100k_train_90p_sw": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_90p_sw.json"), + + "bdd100k_train_5p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_5p_sw_refined.json"), + "bdd100k_train_10p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_10p_sw_refined.json"), + "bdd100k_train_20p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_20p_sw_refined.json"), + "bdd100k_train_30p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_30p_sw_refined.json"), + "bdd100k_train_40p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_40p_sw_refined.json"), + "bdd100k_train_50p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_50p_sw_refined.json"), + "bdd100k_train_60p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_60p_sw_refined.json"), + "bdd100k_train_70p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_70p_sw_refined.json"), + "bdd100k_train_80p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_80p_sw_refined.json"), + "bdd100k_train_90p_sw_refined": ("BDD100K/train", "BDD100K/annotations/bdd100k_ins_labels_train_90p_sw_refined.json"), + } + + +def register_all_bdd100k(root): + for dataset_name, splits_per_dataset in _PREDEFINED_SPLITS_BDD100K.items(): + for key, (image_root, json_file) in splits_per_dataset.items(): + # Assume pre-defined datasets live in `./datasets`. + register_coco_instances( + key, + _get_builtin_metadata(dataset_name), + os.path.join(root, json_file) if "://" not in json_file else json_file, + os.path.join(root, image_root), + ) + + +# ==== Predefined datasets and splits for LVIS ========== + + +_PREDEFINED_SPLITS_LVIS = { + "lvis_v1": { + "lvis_v1_train": ("coco/", "lvis/lvis_v1_train.json"), + "lvis_v1_val": ("coco/", "lvis/lvis_v1_val.json"), + "lvis_v1_test_dev": ("coco/", "lvis/lvis_v1_image_info_test_dev.json"), + "lvis_v1_test_challenge": ("coco/", "lvis/lvis_v1_image_info_test_challenge.json"), + }, + "lvis_v0.5": { + "lvis_v0.5_train": ("coco/", "lvis/lvis_v0.5_train.json"), + "lvis_v0.5_val": ("coco/", "lvis/lvis_v0.5_val.json"), + "lvis_v0.5_val_rand_100": ("coco/", "lvis/lvis_v0.5_val_rand_100.json"), + "lvis_v0.5_test": ("coco/", "lvis/lvis_v0.5_image_info_test.json"), + }, + "lvis_v0.5_cocofied": { + "lvis_v0.5_train_cocofied": ("coco/", "lvis/lvis_v0.5_train_cocofied.json"), + "lvis_v0.5_val_cocofied": ("coco/", "lvis/lvis_v0.5_val_cocofied.json"), + }, +} + + +def register_all_lvis(root): + for dataset_name, splits_per_dataset in _PREDEFINED_SPLITS_LVIS.items(): + for key, (image_root, json_file) in splits_per_dataset.items(): + register_lvis_instances( + key, + get_lvis_instances_meta(dataset_name), + os.path.join(root, json_file) if "://" not in json_file else json_file, + os.path.join(root, image_root), + ) + + +# ==== Predefined splits for raw cityscapes images =========== +_RAW_CITYSCAPES_SPLITS = { + "cityscapes_fine_{task}_train": ("cityscapes/leftImg8bit/train/", "cityscapes/gtFine/train/"), + "cityscapes_fine_{task}_val": ("cityscapes/leftImg8bit/val/", "cityscapes/gtFine/val/"), + "cityscapes_fine_{task}_test": ("cityscapes/leftImg8bit/test/", "cityscapes/gtFine/test/"), +} + + +def register_all_cityscapes(root): + for key, (image_dir, gt_dir) in _RAW_CITYSCAPES_SPLITS.items(): + meta = _get_builtin_metadata("cityscapes") + image_dir = os.path.join(root, image_dir) + gt_dir = os.path.join(root, gt_dir) + + inst_key = key.format(task="instance_seg") + DatasetCatalog.register( + inst_key, + lambda x=image_dir, y=gt_dir: load_cityscapes_instances( + x, y, from_json=True, to_polygons=True + ), + ) + MetadataCatalog.get(inst_key).set( + image_dir=image_dir, gt_dir=gt_dir, evaluator_type="cityscapes_instance", **meta + ) + + sem_key = key.format(task="sem_seg") + DatasetCatalog.register( + sem_key, lambda x=image_dir, y=gt_dir: load_cityscapes_semantic(x, y) + ) + MetadataCatalog.get(sem_key).set( + image_dir=image_dir, + gt_dir=gt_dir, + evaluator_type="cityscapes_sem_seg", + ignore_label=255, + **meta, + ) + + +# ==== Predefined splits for PASCAL VOC =========== +def register_all_pascal_voc(root): + SPLITS = [ + ("voc_2007_trainval", "VOC2007", "trainval"), + ("voc_2007_train", "VOC2007", "train"), + ("voc_2007_val", "VOC2007", "val"), + ("voc_2007_test", "VOC2007", "test"), + ("voc_2012_trainval", "VOC2012", "trainval"), + ("voc_2012_train", "VOC2012", "train"), + ("voc_2012_val", "VOC2012", "val"), + ] + for name, dirname, split in SPLITS: + year = 2007 if "2007" in name else 2012 + register_pascal_voc(name, os.path.join(root, dirname), split, year) + MetadataCatalog.get(name).evaluator_type = "pascal_voc" + + +def register_all_ade20k(root): + root = os.path.join(root, "ADEChallengeData2016") + for name, dirname in [("train", "training"), ("val", "validation")]: + image_dir = os.path.join(root, "images", dirname) + gt_dir = os.path.join(root, "annotations_detectron2", dirname) + name = f"ade20k_sem_seg_{name}" + DatasetCatalog.register( + name, lambda x=image_dir, y=gt_dir: load_sem_seg(y, x, gt_ext="png", image_ext="jpg") + ) + MetadataCatalog.get(name).set( + stuff_classes=ADE20K_SEM_SEG_CATEGORIES[:], + image_root=image_dir, + sem_seg_root=gt_dir, + evaluator_type="sem_seg", + ignore_label=255, + ) + + +# True for open source; +# Internally at fb, we register them elsewhere +if __name__.endswith(".builtin"): + # Assume pre-defined datasets live in `./datasets`. + _root = os.path.expanduser(os.getenv("DETECTRON2_DATASETS", "datasets")) + register_all_coco(_root) + register_all_lvis(_root) + register_all_cityscapes(_root) + register_all_cityscapes_panoptic(_root) + register_all_pascal_voc(_root) + register_all_ade20k(_root) + register_all_bdd100k(_root) diff --git a/detectron2/detectron2/data/datasets/builtin_meta.py b/detectron2/detectron2/data/datasets/builtin_meta.py new file mode 100755 index 0000000..b7f50fc --- /dev/null +++ b/detectron2/detectron2/data/datasets/builtin_meta.py @@ -0,0 +1,376 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +Note: +For your custom dataset, there is no need to hard-code metadata anywhere in the code. +For example, for COCO-format dataset, metadata will be obtained automatically +when calling `load_coco_json`. For other dataset, metadata may also be obtained in other ways +during loading. + +However, we hard-coded metadata for a few common dataset here. +The only goal is to allow users who don't have these dataset to use pre-trained models. +Users don't have to download a COCO json (which contains metadata), in order to visualize a +COCO model (with correct class names and colors). +""" + + +# All coco categories, together with their nice-looking visualization colors +# It's from https://github.com/cocodataset/panopticapi/blob/master/panoptic_coco_categories.json +COCO_CATEGORIES = [ + {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "person"}, + {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "bicycle"}, + {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, + {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "motorcycle"}, + {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "airplane"}, + {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "bus"}, + {"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "train"}, + {"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "truck"}, + {"color": [0, 0, 192], "isthing": 1, "id": 9, "name": "boat"}, + {"color": [250, 170, 30], "isthing": 1, "id": 10, "name": "traffic light"}, + {"color": [100, 170, 30], "isthing": 1, "id": 11, "name": "fire hydrant"}, + {"color": [220, 220, 0], "isthing": 1, "id": 13, "name": "stop sign"}, + {"color": [175, 116, 175], "isthing": 1, "id": 14, "name": "parking meter"}, + {"color": [250, 0, 30], "isthing": 1, "id": 15, "name": "bench"}, + {"color": [165, 42, 42], "isthing": 1, "id": 16, "name": "bird"}, + {"color": [255, 77, 255], "isthing": 1, "id": 17, "name": "cat"}, + {"color": [0, 226, 252], "isthing": 1, "id": 18, "name": "dog"}, + {"color": [182, 182, 255], "isthing": 1, "id": 19, "name": "horse"}, + {"color": [0, 82, 0], "isthing": 1, "id": 20, "name": "sheep"}, + {"color": [120, 166, 157], "isthing": 1, "id": 21, "name": "cow"}, + {"color": [110, 76, 0], "isthing": 1, "id": 22, "name": "elephant"}, + {"color": [174, 57, 255], "isthing": 1, "id": 23, "name": "bear"}, + {"color": [199, 100, 0], "isthing": 1, "id": 24, "name": "zebra"}, + {"color": [72, 0, 118], "isthing": 1, "id": 25, "name": "giraffe"}, + {"color": [255, 179, 240], "isthing": 1, "id": 27, "name": "backpack"}, + {"color": [0, 125, 92], "isthing": 1, "id": 28, "name": "umbrella"}, + {"color": [209, 0, 151], "isthing": 1, "id": 31, "name": "handbag"}, + {"color": [188, 208, 182], "isthing": 1, "id": 32, "name": "tie"}, + {"color": [0, 220, 176], "isthing": 1, "id": 33, "name": "suitcase"}, + {"color": [255, 99, 164], "isthing": 1, "id": 34, "name": "frisbee"}, + {"color": [92, 0, 73], "isthing": 1, "id": 35, "name": "skis"}, + {"color": [133, 129, 255], "isthing": 1, "id": 36, "name": "snowboard"}, + {"color": [78, 180, 255], "isthing": 1, "id": 37, "name": "sports ball"}, + {"color": [0, 228, 0], "isthing": 1, "id": 38, "name": "kite"}, + {"color": [174, 255, 243], "isthing": 1, "id": 39, "name": "baseball bat"}, + {"color": [45, 89, 255], "isthing": 1, "id": 40, "name": "baseball glove"}, + {"color": [134, 134, 103], "isthing": 1, "id": 41, "name": "skateboard"}, + {"color": [145, 148, 174], "isthing": 1, "id": 42, "name": "surfboard"}, + {"color": [255, 208, 186], "isthing": 1, "id": 43, "name": "tennis racket"}, + {"color": [197, 226, 255], "isthing": 1, "id": 44, "name": "bottle"}, + {"color": [171, 134, 1], "isthing": 1, "id": 46, "name": "wine glass"}, + {"color": [109, 63, 54], "isthing": 1, "id": 47, "name": "cup"}, + {"color": [207, 138, 255], "isthing": 1, "id": 48, "name": "fork"}, + {"color": [151, 0, 95], "isthing": 1, "id": 49, "name": "knife"}, + {"color": [9, 80, 61], "isthing": 1, "id": 50, "name": "spoon"}, + {"color": [84, 105, 51], "isthing": 1, "id": 51, "name": "bowl"}, + {"color": [74, 65, 105], "isthing": 1, "id": 52, "name": "banana"}, + {"color": [166, 196, 102], "isthing": 1, "id": 53, "name": "apple"}, + {"color": [208, 195, 210], "isthing": 1, "id": 54, "name": "sandwich"}, + {"color": [255, 109, 65], "isthing": 1, "id": 55, "name": "orange"}, + {"color": [0, 143, 149], "isthing": 1, "id": 56, "name": "broccoli"}, + {"color": [179, 0, 194], "isthing": 1, "id": 57, "name": "carrot"}, + {"color": [209, 99, 106], "isthing": 1, "id": 58, "name": "hot dog"}, + {"color": [5, 121, 0], "isthing": 1, "id": 59, "name": "pizza"}, + {"color": [227, 255, 205], "isthing": 1, "id": 60, "name": "donut"}, + {"color": [147, 186, 208], "isthing": 1, "id": 61, "name": "cake"}, + {"color": [153, 69, 1], "isthing": 1, "id": 62, "name": "chair"}, + {"color": [3, 95, 161], "isthing": 1, "id": 63, "name": "couch"}, + {"color": [163, 255, 0], "isthing": 1, "id": 64, "name": "potted plant"}, + {"color": [119, 0, 170], "isthing": 1, "id": 65, "name": "bed"}, + {"color": [0, 182, 199], "isthing": 1, "id": 67, "name": "dining table"}, + {"color": [0, 165, 120], "isthing": 1, "id": 70, "name": "toilet"}, + {"color": [183, 130, 88], "isthing": 1, "id": 72, "name": "tv"}, + {"color": [95, 32, 0], "isthing": 1, "id": 73, "name": "laptop"}, + {"color": [130, 114, 135], "isthing": 1, "id": 74, "name": "mouse"}, + {"color": [110, 129, 133], "isthing": 1, "id": 75, "name": "remote"}, + {"color": [166, 74, 118], "isthing": 1, "id": 76, "name": "keyboard"}, + {"color": [219, 142, 185], "isthing": 1, "id": 77, "name": "cell phone"}, + {"color": [79, 210, 114], "isthing": 1, "id": 78, "name": "microwave"}, + {"color": [178, 90, 62], "isthing": 1, "id": 79, "name": "oven"}, + {"color": [65, 70, 15], "isthing": 1, "id": 80, "name": "toaster"}, + {"color": [127, 167, 115], "isthing": 1, "id": 81, "name": "sink"}, + {"color": [59, 105, 106], "isthing": 1, "id": 82, "name": "refrigerator"}, + {"color": [142, 108, 45], "isthing": 1, "id": 84, "name": "book"}, + {"color": [196, 172, 0], "isthing": 1, "id": 85, "name": "clock"}, + {"color": [95, 54, 80], "isthing": 1, "id": 86, "name": "vase"}, + {"color": [128, 76, 255], "isthing": 1, "id": 87, "name": "scissors"}, + {"color": [201, 57, 1], "isthing": 1, "id": 88, "name": "teddy bear"}, + {"color": [246, 0, 122], "isthing": 1, "id": 89, "name": "hair drier"}, + {"color": [191, 162, 208], "isthing": 1, "id": 90, "name": "toothbrush"}, + {"color": [255, 255, 128], "isthing": 0, "id": 92, "name": "banner"}, + {"color": [147, 211, 203], "isthing": 0, "id": 93, "name": "blanket"}, + {"color": [150, 100, 100], "isthing": 0, "id": 95, "name": "bridge"}, + {"color": [168, 171, 172], "isthing": 0, "id": 100, "name": "cardboard"}, + {"color": [146, 112, 198], "isthing": 0, "id": 107, "name": "counter"}, + {"color": [210, 170, 100], "isthing": 0, "id": 109, "name": "curtain"}, + {"color": [92, 136, 89], "isthing": 0, "id": 112, "name": "door-stuff"}, + {"color": [218, 88, 184], "isthing": 0, "id": 118, "name": "floor-wood"}, + {"color": [241, 129, 0], "isthing": 0, "id": 119, "name": "flower"}, + {"color": [217, 17, 255], "isthing": 0, "id": 122, "name": "fruit"}, + {"color": [124, 74, 181], "isthing": 0, "id": 125, "name": "gravel"}, + {"color": [70, 70, 70], "isthing": 0, "id": 128, "name": "house"}, + {"color": [255, 228, 255], "isthing": 0, "id": 130, "name": "light"}, + {"color": [154, 208, 0], "isthing": 0, "id": 133, "name": "mirror-stuff"}, + {"color": [193, 0, 92], "isthing": 0, "id": 138, "name": "net"}, + {"color": [76, 91, 113], "isthing": 0, "id": 141, "name": "pillow"}, + {"color": [255, 180, 195], "isthing": 0, "id": 144, "name": "platform"}, + {"color": [106, 154, 176], "isthing": 0, "id": 145, "name": "playingfield"}, + {"color": [230, 150, 140], "isthing": 0, "id": 147, "name": "railroad"}, + {"color": [60, 143, 255], "isthing": 0, "id": 148, "name": "river"}, + {"color": [128, 64, 128], "isthing": 0, "id": 149, "name": "road"}, + {"color": [92, 82, 55], "isthing": 0, "id": 151, "name": "roof"}, + {"color": [254, 212, 124], "isthing": 0, "id": 154, "name": "sand"}, + {"color": [73, 77, 174], "isthing": 0, "id": 155, "name": "sea"}, + {"color": [255, 160, 98], "isthing": 0, "id": 156, "name": "shelf"}, + {"color": [255, 255, 255], "isthing": 0, "id": 159, "name": "snow"}, + {"color": [104, 84, 109], "isthing": 0, "id": 161, "name": "stairs"}, + {"color": [169, 164, 131], "isthing": 0, "id": 166, "name": "tent"}, + {"color": [225, 199, 255], "isthing": 0, "id": 168, "name": "towel"}, + {"color": [137, 54, 74], "isthing": 0, "id": 171, "name": "wall-brick"}, + {"color": [135, 158, 223], "isthing": 0, "id": 175, "name": "wall-stone"}, + {"color": [7, 246, 231], "isthing": 0, "id": 176, "name": "wall-tile"}, + {"color": [107, 255, 200], "isthing": 0, "id": 177, "name": "wall-wood"}, + {"color": [58, 41, 149], "isthing": 0, "id": 178, "name": "water-other"}, + {"color": [183, 121, 142], "isthing": 0, "id": 180, "name": "window-blind"}, + {"color": [255, 73, 97], "isthing": 0, "id": 181, "name": "window-other"}, + {"color": [107, 142, 35], "isthing": 0, "id": 184, "name": "tree-merged"}, + {"color": [190, 153, 153], "isthing": 0, "id": 185, "name": "fence-merged"}, + {"color": [146, 139, 141], "isthing": 0, "id": 186, "name": "ceiling-merged"}, + {"color": [70, 130, 180], "isthing": 0, "id": 187, "name": "sky-other-merged"}, + {"color": [134, 199, 156], "isthing": 0, "id": 188, "name": "cabinet-merged"}, + {"color": [209, 226, 140], "isthing": 0, "id": 189, "name": "table-merged"}, + {"color": [96, 36, 108], "isthing": 0, "id": 190, "name": "floor-other-merged"}, + {"color": [96, 96, 96], "isthing": 0, "id": 191, "name": "pavement-merged"}, + {"color": [64, 170, 64], "isthing": 0, "id": 192, "name": "mountain-merged"}, + {"color": [152, 251, 152], "isthing": 0, "id": 193, "name": "grass-merged"}, + {"color": [208, 229, 228], "isthing": 0, "id": 194, "name": "dirt-merged"}, + {"color": [206, 186, 171], "isthing": 0, "id": 195, "name": "paper-merged"}, + {"color": [152, 161, 64], "isthing": 0, "id": 196, "name": "food-other-merged"}, + {"color": [116, 112, 0], "isthing": 0, "id": 197, "name": "building-other-merged"}, + {"color": [0, 114, 143], "isthing": 0, "id": 198, "name": "rock-merged"}, + {"color": [102, 102, 156], "isthing": 0, "id": 199, "name": "wall-other-merged"}, + {"color": [250, 141, 255], "isthing": 0, "id": 200, "name": "rug-merged"}, +] + +# fmt: off +COCO_PERSON_KEYPOINT_NAMES = ( + "nose", + "left_eye", "right_eye", + "left_ear", "right_ear", + "left_shoulder", "right_shoulder", + "left_elbow", "right_elbow", + "left_wrist", "right_wrist", + "left_hip", "right_hip", + "left_knee", "right_knee", + "left_ankle", "right_ankle", +) +# fmt: on + +# Pairs of keypoints that should be exchanged under horizontal flipping +COCO_PERSON_KEYPOINT_FLIP_MAP = ( + ("left_eye", "right_eye"), + ("left_ear", "right_ear"), + ("left_shoulder", "right_shoulder"), + ("left_elbow", "right_elbow"), + ("left_wrist", "right_wrist"), + ("left_hip", "right_hip"), + ("left_knee", "right_knee"), + ("left_ankle", "right_ankle"), +) + +# rules for pairs of keypoints to draw a line between, and the line color to use. +KEYPOINT_CONNECTION_RULES = [ + # face + ("left_ear", "left_eye", (102, 204, 255)), + ("right_ear", "right_eye", (51, 153, 255)), + ("left_eye", "nose", (102, 0, 204)), + ("nose", "right_eye", (51, 102, 255)), + # upper-body + ("left_shoulder", "right_shoulder", (255, 128, 0)), + ("left_shoulder", "left_elbow", (153, 255, 204)), + ("right_shoulder", "right_elbow", (128, 229, 255)), + ("left_elbow", "left_wrist", (153, 255, 153)), + ("right_elbow", "right_wrist", (102, 255, 224)), + # lower-body + ("left_hip", "right_hip", (255, 102, 0)), + ("left_hip", "left_knee", (255, 255, 77)), + ("right_hip", "right_knee", (153, 255, 204)), + ("left_knee", "left_ankle", (191, 255, 128)), + ("right_knee", "right_ankle", (255, 195, 77)), +] + +# All Cityscapes categories, together with their nice-looking visualization colors +# It's from https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/helpers/labels.py # noqa +CITYSCAPES_CATEGORIES = [ + {"color": (128, 64, 128), "isthing": 0, "id": 7, "trainId": 0, "name": "road"}, + {"color": (244, 35, 232), "isthing": 0, "id": 8, "trainId": 1, "name": "sidewalk"}, + {"color": (70, 70, 70), "isthing": 0, "id": 11, "trainId": 2, "name": "building"}, + {"color": (102, 102, 156), "isthing": 0, "id": 12, "trainId": 3, "name": "wall"}, + {"color": (190, 153, 153), "isthing": 0, "id": 13, "trainId": 4, "name": "fence"}, + {"color": (153, 153, 153), "isthing": 0, "id": 17, "trainId": 5, "name": "pole"}, + {"color": (250, 170, 30), "isthing": 0, "id": 19, "trainId": 6, "name": "traffic light"}, + {"color": (220, 220, 0), "isthing": 0, "id": 20, "trainId": 7, "name": "traffic sign"}, + {"color": (107, 142, 35), "isthing": 0, "id": 21, "trainId": 8, "name": "vegetation"}, + {"color": (152, 251, 152), "isthing": 0, "id": 22, "trainId": 9, "name": "terrain"}, + {"color": (70, 130, 180), "isthing": 0, "id": 23, "trainId": 10, "name": "sky"}, + {"color": (220, 20, 60), "isthing": 1, "id": 24, "trainId": 11, "name": "person"}, + {"color": (255, 0, 0), "isthing": 1, "id": 25, "trainId": 12, "name": "rider"}, + {"color": (0, 0, 142), "isthing": 1, "id": 26, "trainId": 13, "name": "car"}, + {"color": (0, 0, 70), "isthing": 1, "id": 27, "trainId": 14, "name": "truck"}, + {"color": (0, 60, 100), "isthing": 1, "id": 28, "trainId": 15, "name": "bus"}, + {"color": (0, 80, 100), "isthing": 1, "id": 31, "trainId": 16, "name": "train"}, + {"color": (0, 0, 230), "isthing": 1, "id": 32, "trainId": 17, "name": "motorcycle"}, + {"color": (119, 11, 32), "isthing": 1, "id": 33, "trainId": 18, "name": "bicycle"}, +] + +# fmt: off +ADE20K_SEM_SEG_CATEGORIES = [ + "wall", "building", "sky", "floor", "tree", "ceiling", "road, route", "bed", "window ", "grass", "cabinet", "sidewalk, pavement", "person", "earth, ground", "door", "table", "mountain, mount", "plant", "curtain", "chair", "car", "water", "painting, picture", "sofa", "shelf", "house", "sea", "mirror", "rug", "field", "armchair", "seat", "fence", "desk", "rock, stone", "wardrobe, closet, press", "lamp", "tub", "rail", "cushion", "base, pedestal, stand", "box", "column, pillar", "signboard, sign", "chest of drawers, chest, bureau, dresser", "counter", "sand", "sink", "skyscraper", "fireplace", "refrigerator, icebox", "grandstand, covered stand", "path", "stairs", "runway", "case, display case, showcase, vitrine", "pool table, billiard table, snooker table", "pillow", "screen door, screen", "stairway, staircase", "river", "bridge, span", "bookcase", "blind, screen", "coffee table", "toilet, can, commode, crapper, pot, potty, stool, throne", "flower", "book", "hill", "bench", "countertop", "stove", "palm, palm tree", "kitchen island", "computer", "swivel chair", "boat", "bar", "arcade machine", "hovel, hut, hutch, shack, shanty", "bus", "towel", "light", "truck", "tower", "chandelier", "awning, sunshade, sunblind", "street lamp", "booth", "tv", "plane", "dirt track", "clothes", "pole", "land, ground, soil", "bannister, banister, balustrade, balusters, handrail", "escalator, moving staircase, moving stairway", "ottoman, pouf, pouffe, puff, hassock", "bottle", "buffet, counter, sideboard", "poster, posting, placard, notice, bill, card", "stage", "van", "ship", "fountain", "conveyer belt, conveyor belt, conveyer, conveyor, transporter", "canopy", "washer, automatic washer, washing machine", "plaything, toy", "pool", "stool", "barrel, cask", "basket, handbasket", "falls", "tent", "bag", "minibike, motorbike", "cradle", "oven", "ball", "food, solid food", "step, stair", "tank, storage tank", "trade name", "microwave", "pot", "animal", "bicycle", "lake", "dishwasher", "screen", "blanket, cover", "sculpture", "hood, exhaust hood", "sconce", "vase", "traffic light", "tray", "trash can", "fan", "pier", "crt screen", "plate", "monitor", "bulletin board", "shower", "radiator", "glass, drinking glass", "clock", "flag", # noqa +] +# After processed by `prepare_ade20k_sem_seg.py`, id 255 means ignore +# fmt: on + +BDD100K_CATEGORIES = [ + {"color": [220, 20, 60], "isthing": 1, "id": 1, "name": "pedestrian"}, + {"color": [119, 11, 32], "isthing": 1, "id": 2, "name": "rider"}, + {"color": [0, 0, 142], "isthing": 1, "id": 3, "name": "car"}, + {"color": [0, 0, 230], "isthing": 1, "id": 4, "name": "truck"}, + {"color": [106, 0, 228], "isthing": 1, "id": 5, "name": "bus"}, + {"color": [0, 60, 100], "isthing": 1, "id": 6, "name": "train"}, + {"color": [0, 80, 100], "isthing": 1, "id": 7, "name": "motorcycle"}, + {"color": [0, 0, 70], "isthing": 1, "id": 8, "name": "bicycle"}, +] + +def _get_coco_instances_meta(): + thing_ids = [k["id"] for k in COCO_CATEGORIES if k["isthing"] == 1] + thing_colors = [k["color"] for k in COCO_CATEGORIES if k["isthing"] == 1] + assert len(thing_ids) == 80, len(thing_ids) + # Mapping from the incontiguous COCO category id to an id in [0, 79] + thing_dataset_id_to_contiguous_id = {k: i for i, k in enumerate(thing_ids)} + thing_classes = [k["name"] for k in COCO_CATEGORIES if k["isthing"] == 1] + ret = { + "thing_dataset_id_to_contiguous_id": thing_dataset_id_to_contiguous_id, + "thing_classes": thing_classes, + "thing_colors": thing_colors, + } + return ret + + +def _get_coco_panoptic_separated_meta(): + """ + Returns metadata for "separated" version of the panoptic segmentation dataset. + """ + stuff_ids = [k["id"] for k in COCO_CATEGORIES if k["isthing"] == 0] + assert len(stuff_ids) == 53, len(stuff_ids) + + # For semantic segmentation, this mapping maps from contiguous stuff id + # (in [0, 53], used in models) to ids in the dataset (used for processing results) + # The id 0 is mapped to an extra category "thing". + stuff_dataset_id_to_contiguous_id = {k: i + 1 for i, k in enumerate(stuff_ids)} + # When converting COCO panoptic annotations to semantic annotations + # We label the "thing" category to 0 + stuff_dataset_id_to_contiguous_id[0] = 0 + + # 54 names for COCO stuff categories (including "things") + stuff_classes = ["things"] + [ + k["name"].replace("-other", "").replace("-merged", "") + for k in COCO_CATEGORIES + if k["isthing"] == 0 + ] + + # NOTE: I randomly picked a color for things + stuff_colors = [[82, 18, 128]] + [k["color"] for k in COCO_CATEGORIES if k["isthing"] == 0] + ret = { + "stuff_dataset_id_to_contiguous_id": stuff_dataset_id_to_contiguous_id, + "stuff_classes": stuff_classes, + "stuff_colors": stuff_colors, + } + ret.update(_get_coco_instances_meta()) + return ret + +def _get_bdd100k_instances_meta(): + thing_ids = [k["id"] for k in BDD100K_CATEGORIES if k["isthing"] == 1] + thing_colors = [k["color"] for k in BDD100K_CATEGORIES if k["isthing"] == 1] + assert len(thing_ids) == 8, len(thing_ids) + # Mapping from the incontiguous COCO category id to an id in [0, 79] + thing_dataset_id_to_contiguous_id = {k: i for i, k in enumerate(thing_ids)} + thing_classes = [k["name"] for k in BDD100K_CATEGORIES if k["isthing"] == 1] + ret = { + "thing_dataset_id_to_contiguous_id": thing_dataset_id_to_contiguous_id, + "thing_classes": thing_classes, + "thing_colors": thing_colors, + } + return ret + + +def _get_builtin_metadata(dataset_name): + if dataset_name == "coco": + return _get_coco_instances_meta() + if dataset_name == "coco_panoptic_separated": + return _get_coco_panoptic_separated_meta() + elif dataset_name == "coco_panoptic_standard": + meta = {} + # The following metadata maps contiguous id from [0, #thing categories + + # #stuff categories) to their names and colors. We have to replica of the + # same name and color under "thing_*" and "stuff_*" because the current + # visualization function in D2 handles thing and class classes differently + # due to some heuristic used in Panoptic FPN. We keep the same naming to + # enable reusing existing visualization functions. + thing_classes = [k["name"] for k in COCO_CATEGORIES] + thing_colors = [k["color"] for k in COCO_CATEGORIES] + stuff_classes = [k["name"] for k in COCO_CATEGORIES] + stuff_colors = [k["color"] for k in COCO_CATEGORIES] + + meta["thing_classes"] = thing_classes + meta["thing_colors"] = thing_colors + meta["stuff_classes"] = stuff_classes + meta["stuff_colors"] = stuff_colors + + # Convert category id for training: + # category id: like semantic segmentation, it is the class id for each + # pixel. Since there are some classes not used in evaluation, the category + # id is not always contiguous and thus we have two set of category ids: + # - original category id: category id in the original dataset, mainly + # used for evaluation. + # - contiguous category id: [0, #classes), in order to train the linear + # softmax classifier. + thing_dataset_id_to_contiguous_id = {} + stuff_dataset_id_to_contiguous_id = {} + + for i, cat in enumerate(COCO_CATEGORIES): + if cat["isthing"]: + thing_dataset_id_to_contiguous_id[cat["id"]] = i + else: + stuff_dataset_id_to_contiguous_id[cat["id"]] = i + + meta["thing_dataset_id_to_contiguous_id"] = thing_dataset_id_to_contiguous_id + meta["stuff_dataset_id_to_contiguous_id"] = stuff_dataset_id_to_contiguous_id + + return meta + elif dataset_name == "coco_person": + return { + "thing_classes": ["person"], + "keypoint_names": COCO_PERSON_KEYPOINT_NAMES, + "keypoint_flip_map": COCO_PERSON_KEYPOINT_FLIP_MAP, + "keypoint_connection_rules": KEYPOINT_CONNECTION_RULES, + } + elif dataset_name == "bdd100k": + return _get_bdd100k_instances_meta() + elif dataset_name == "cityscapes": + # fmt: off + CITYSCAPES_THING_CLASSES = [ + "person", "rider", "car", "truck", + "bus", "train", "motorcycle", "bicycle", + ] + CITYSCAPES_STUFF_CLASSES = [ + "road", "sidewalk", "building", "wall", "fence", "pole", "traffic light", + "traffic sign", "vegetation", "terrain", "sky", "person", "rider", "car", + "truck", "bus", "train", "motorcycle", "bicycle", + ] + # fmt: on + return { + "thing_classes": CITYSCAPES_THING_CLASSES, + "stuff_classes": CITYSCAPES_STUFF_CLASSES, + } + raise KeyError("No built-in metadata for dataset {}".format(dataset_name)) diff --git a/detectron2/detectron2/data/datasets/cityscapes.py b/detectron2/detectron2/data/datasets/cityscapes.py new file mode 100755 index 0000000..1e84a5b --- /dev/null +++ b/detectron2/detectron2/data/datasets/cityscapes.py @@ -0,0 +1,329 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import functools +import json +import logging +import multiprocessing as mp +import numpy as np +import os +from itertools import chain +import pycocotools.mask as mask_util +from PIL import Image + +from detectron2.structures import BoxMode +from detectron2.utils.comm import get_world_size +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import setup_logger + +try: + import cv2 # noqa +except ImportError: + # OpenCV is an optional dependency at the moment + pass + + +logger = logging.getLogger(__name__) + + +def _get_cityscapes_files(image_dir, gt_dir): + files = [] + # scan through the directory + cities = PathManager.ls(image_dir) + logger.info(f"{len(cities)} cities found in '{image_dir}'.") + for city in cities: + city_img_dir = os.path.join(image_dir, city) + city_gt_dir = os.path.join(gt_dir, city) + for basename in PathManager.ls(city_img_dir): + image_file = os.path.join(city_img_dir, basename) + + suffix = "leftImg8bit.png" + assert basename.endswith(suffix), basename + basename = basename[: -len(suffix)] + + instance_file = os.path.join(city_gt_dir, basename + "gtFine_instanceIds.png") + label_file = os.path.join(city_gt_dir, basename + "gtFine_labelIds.png") + json_file = os.path.join(city_gt_dir, basename + "gtFine_polygons.json") + + files.append((image_file, instance_file, label_file, json_file)) + assert len(files), "No images found in {}".format(image_dir) + for f in files[0]: + assert PathManager.isfile(f), f + return files + + +def load_cityscapes_instances(image_dir, gt_dir, from_json=True, to_polygons=True): + """ + Args: + image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". + gt_dir (str): path to the raw annotations. e.g., "~/cityscapes/gtFine/train". + from_json (bool): whether to read annotations from the raw json file or the png files. + to_polygons (bool): whether to represent the segmentation as polygons + (COCO's format) instead of masks (cityscapes's format). + + Returns: + list[dict]: a list of dicts in Detectron2 standard format. (See + `Using Custom Datasets `_ ) + """ + if from_json: + assert to_polygons, ( + "Cityscapes's json annotations are in polygon format. " + "Converting to mask format is not supported now." + ) + files = _get_cityscapes_files(image_dir, gt_dir) + + logger.info("Preprocessing cityscapes annotations ...") + # This is still not fast: all workers will execute duplicate works and will + # take up to 10m on a 8GPU server. + pool = mp.Pool(processes=max(mp.cpu_count() // get_world_size() // 2, 4)) + + ret = pool.map( + functools.partial(_cityscapes_files_to_dict, from_json=from_json, to_polygons=to_polygons), + files, + ) + logger.info("Loaded {} images from {}".format(len(ret), image_dir)) + + # Map cityscape ids to contiguous ids + from cityscapesscripts.helpers.labels import labels + + labels = [l for l in labels if l.hasInstances and not l.ignoreInEval] + dataset_id_to_contiguous_id = {l.id: idx for idx, l in enumerate(labels)} + for dict_per_image in ret: + for anno in dict_per_image["annotations"]: + anno["category_id"] = dataset_id_to_contiguous_id[anno["category_id"]] + return ret + + +def load_cityscapes_semantic(image_dir, gt_dir): + """ + Args: + image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". + gt_dir (str): path to the raw annotations. e.g., "~/cityscapes/gtFine/train". + + Returns: + list[dict]: a list of dict, each has "file_name" and + "sem_seg_file_name". + """ + ret = [] + # gt_dir is small and contain many small files. make sense to fetch to local first + gt_dir = PathManager.get_local_path(gt_dir) + for image_file, _, label_file, json_file in _get_cityscapes_files(image_dir, gt_dir): + label_file = label_file.replace("labelIds", "labelTrainIds") + + with PathManager.open(json_file, "r") as f: + jsonobj = json.load(f) + ret.append( + { + "file_name": image_file, + "sem_seg_file_name": label_file, + "height": jsonobj["imgHeight"], + "width": jsonobj["imgWidth"], + } + ) + assert len(ret), f"No images found in {image_dir}!" + assert PathManager.isfile( + ret[0]["sem_seg_file_name"] + ), "Please generate labelTrainIds.png with cityscapesscripts/preparation/createTrainIdLabelImgs.py" # noqa + return ret + + +def _cityscapes_files_to_dict(files, from_json, to_polygons): + """ + Parse cityscapes annotation files to a instance segmentation dataset dict. + + Args: + files (tuple): consists of (image_file, instance_id_file, label_id_file, json_file) + from_json (bool): whether to read annotations from the raw json file or the png files. + to_polygons (bool): whether to represent the segmentation as polygons + (COCO's format) instead of masks (cityscapes's format). + + Returns: + A dict in Detectron2 Dataset format. + """ + from cityscapesscripts.helpers.labels import id2label, name2label + + image_file, instance_id_file, _, json_file = files + + annos = [] + + if from_json: + from shapely.geometry import MultiPolygon, Polygon + + with PathManager.open(json_file, "r") as f: + jsonobj = json.load(f) + ret = { + "file_name": image_file, + "image_id": os.path.basename(image_file), + "height": jsonobj["imgHeight"], + "width": jsonobj["imgWidth"], + } + + # `polygons_union` contains the union of all valid polygons. + polygons_union = Polygon() + + # CityscapesScripts draw the polygons in sequential order + # and each polygon *overwrites* existing ones. See + # (https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/preparation/json2instanceImg.py) # noqa + # We use reverse order, and each polygon *avoids* early ones. + # This will resolve the ploygon overlaps in the same way as CityscapesScripts. + for obj in jsonobj["objects"][::-1]: + if "deleted" in obj: # cityscapes data format specific + continue + label_name = obj["label"] + + try: + label = name2label[label_name] + except KeyError: + if label_name.endswith("group"): # crowd area + label = name2label[label_name[: -len("group")]] + else: + raise + if label.id < 0: # cityscapes data format + continue + + # Cityscapes's raw annotations uses integer coordinates + # Therefore +0.5 here + poly_coord = np.asarray(obj["polygon"], dtype="f4") + 0.5 + # CityscapesScript uses PIL.ImageDraw.polygon to rasterize + # polygons for evaluation. This function operates in integer space + # and draws each pixel whose center falls into the polygon. + # Therefore it draws a polygon which is 0.5 "fatter" in expectation. + # We therefore dilate the input polygon by 0.5 as our input. + poly = Polygon(poly_coord).buffer(0.5, resolution=4) + + if not label.hasInstances or label.ignoreInEval: + # even if we won't store the polygon it still contributes to overlaps resolution + polygons_union = polygons_union.union(poly) + continue + + # Take non-overlapping part of the polygon + poly_wo_overlaps = poly.difference(polygons_union) + if poly_wo_overlaps.is_empty: + continue + polygons_union = polygons_union.union(poly) + + anno = {} + anno["iscrowd"] = label_name.endswith("group") + anno["category_id"] = label.id + + if isinstance(poly_wo_overlaps, Polygon): + poly_list = [poly_wo_overlaps] + elif isinstance(poly_wo_overlaps, MultiPolygon): + poly_list = poly_wo_overlaps.geoms + else: + raise NotImplementedError("Unknown geometric structure {}".format(poly_wo_overlaps)) + + poly_coord = [] + for poly_el in poly_list: + # COCO API can work only with exterior boundaries now, hence we store only them. + # TODO: store both exterior and interior boundaries once other parts of the + # codebase support holes in polygons. + poly_coord.append(list(chain(*poly_el.exterior.coords))) + anno["segmentation"] = poly_coord + (xmin, ymin, xmax, ymax) = poly_wo_overlaps.bounds + + anno["bbox"] = (xmin, ymin, xmax, ymax) + anno["bbox_mode"] = BoxMode.XYXY_ABS + + annos.append(anno) + else: + # See also the official annotation parsing scripts at + # https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/evaluation/instances2dict.py # noqa + with PathManager.open(instance_id_file, "rb") as f: + inst_image = np.asarray(Image.open(f), order="F") + # ids < 24 are stuff labels (filtering them first is about 5% faster) + flattened_ids = np.unique(inst_image[inst_image >= 24]) + + ret = { + "file_name": image_file, + "image_id": os.path.basename(image_file), + "height": inst_image.shape[0], + "width": inst_image.shape[1], + } + + for instance_id in flattened_ids: + # For non-crowd annotations, instance_id // 1000 is the label_id + # Crowd annotations have <1000 instance ids + label_id = instance_id // 1000 if instance_id >= 1000 else instance_id + label = id2label[label_id] + if not label.hasInstances or label.ignoreInEval: + continue + + anno = {} + anno["iscrowd"] = instance_id < 1000 + anno["category_id"] = label.id + + mask = np.asarray(inst_image == instance_id, dtype=np.uint8, order="F") + + inds = np.nonzero(mask) + ymin, ymax = inds[0].min(), inds[0].max() + xmin, xmax = inds[1].min(), inds[1].max() + anno["bbox"] = (xmin, ymin, xmax, ymax) + if xmax <= xmin or ymax <= ymin: + continue + anno["bbox_mode"] = BoxMode.XYXY_ABS + if to_polygons: + # This conversion comes from D4809743 and D5171122, + # when Mask-RCNN was first developed. + contours = cv2.findContours(mask.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)[ + -2 + ] + polygons = [c.reshape(-1).tolist() for c in contours if len(c) >= 3] + # opencv's can produce invalid polygons + if len(polygons) == 0: + continue + anno["segmentation"] = polygons + else: + anno["segmentation"] = mask_util.encode(mask[:, :, None])[0] + annos.append(anno) + ret["annotations"] = annos + return ret + + +if __name__ == "__main__": + """ + Test the cityscapes dataset loader. + + Usage: + python -m detectron2.data.datasets.cityscapes \ + cityscapes/leftImg8bit/train cityscapes/gtFine/train + """ + import argparse + + parser = argparse.ArgumentParser() + parser.add_argument("image_dir") + parser.add_argument("gt_dir") + parser.add_argument("--type", choices=["instance", "semantic"], default="instance") + args = parser.parse_args() + from detectron2.data.catalog import Metadata + from detectron2.utils.visualizer import Visualizer + from cityscapesscripts.helpers.labels import labels + + logger = setup_logger(name=__name__) + + dirname = "cityscapes-data-vis" + os.makedirs(dirname, exist_ok=True) + + if args.type == "instance": + dicts = load_cityscapes_instances( + args.image_dir, args.gt_dir, from_json=True, to_polygons=True + ) + logger.info("Done loading {} samples.".format(len(dicts))) + + thing_classes = [k.name for k in labels if k.hasInstances and not k.ignoreInEval] + meta = Metadata().set(thing_classes=thing_classes) + + else: + dicts = load_cityscapes_semantic(args.image_dir, args.gt_dir) + logger.info("Done loading {} samples.".format(len(dicts))) + + stuff_classes = [k.name for k in labels if k.trainId != 255] + stuff_colors = [k.color for k in labels if k.trainId != 255] + meta = Metadata().set(stuff_classes=stuff_classes, stuff_colors=stuff_colors) + + for d in dicts: + img = np.array(Image.open(PathManager.open(d["file_name"], "rb"))) + visualizer = Visualizer(img, metadata=meta) + vis = visualizer.draw_dataset_dict(d) + # cv2.imshow("a", vis.get_image()[:, :, ::-1]) + # cv2.waitKey() + fpath = os.path.join(dirname, os.path.basename(d["file_name"])) + vis.save(fpath) diff --git a/detectron2/detectron2/data/datasets/cityscapes_panoptic.py b/detectron2/detectron2/data/datasets/cityscapes_panoptic.py new file mode 100755 index 0000000..48c136f --- /dev/null +++ b/detectron2/detectron2/data/datasets/cityscapes_panoptic.py @@ -0,0 +1,187 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import json +import logging +import os + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.data.datasets.builtin_meta import CITYSCAPES_CATEGORIES +from detectron2.utils.file_io import PathManager + +""" +This file contains functions to register the Cityscapes panoptic dataset to the DatasetCatalog. +""" + + +logger = logging.getLogger(__name__) + + +def get_cityscapes_panoptic_files(image_dir, gt_dir, json_info): + files = [] + # scan through the directory + cities = PathManager.ls(image_dir) + logger.info(f"{len(cities)} cities found in '{image_dir}'.") + image_dict = {} + for city in cities: + city_img_dir = os.path.join(image_dir, city) + for basename in PathManager.ls(city_img_dir): + image_file = os.path.join(city_img_dir, basename) + + suffix = "_leftImg8bit.png" + assert basename.endswith(suffix), basename + basename = os.path.basename(basename)[: -len(suffix)] + + image_dict[basename] = image_file + + for ann in json_info["annotations"]: + image_file = image_dict.get(ann["image_id"], None) + assert image_file is not None, "No image {} found for annotation {}".format( + ann["image_id"], ann["file_name"] + ) + label_file = os.path.join(gt_dir, ann["file_name"]) + segments_info = ann["segments_info"] + + files.append((image_file, label_file, segments_info)) + + assert len(files), "No images found in {}".format(image_dir) + assert PathManager.isfile(files[0][0]), files[0][0] + assert PathManager.isfile(files[0][1]), files[0][1] + return files + + +def load_cityscapes_panoptic(image_dir, gt_dir, gt_json, meta): + """ + Args: + image_dir (str): path to the raw dataset. e.g., "~/cityscapes/leftImg8bit/train". + gt_dir (str): path to the raw annotations. e.g., + "~/cityscapes/gtFine/cityscapes_panoptic_train". + gt_json (str): path to the json file. e.g., + "~/cityscapes/gtFine/cityscapes_panoptic_train.json". + meta (dict): dictionary containing "thing_dataset_id_to_contiguous_id" + and "stuff_dataset_id_to_contiguous_id" to map category ids to + contiguous ids for training. + + Returns: + list[dict]: a list of dicts in Detectron2 standard format. (See + `Using Custom Datasets `_ ) + """ + + def _convert_category_id(segment_info, meta): + if segment_info["category_id"] in meta["thing_dataset_id_to_contiguous_id"]: + segment_info["category_id"] = meta["thing_dataset_id_to_contiguous_id"][ + segment_info["category_id"] + ] + else: + segment_info["category_id"] = meta["stuff_dataset_id_to_contiguous_id"][ + segment_info["category_id"] + ] + return segment_info + + assert os.path.exists( + gt_json + ), "Please run `python cityscapesscripts/preparation/createPanopticImgs.py` to generate label files." # noqa + with open(gt_json) as f: + json_info = json.load(f) + files = get_cityscapes_panoptic_files(image_dir, gt_dir, json_info) + ret = [] + for image_file, label_file, segments_info in files: + sem_label_file = ( + image_file.replace("leftImg8bit", "gtFine").split(".")[0] + "_labelTrainIds.png" + ) + segments_info = [_convert_category_id(x, meta) for x in segments_info] + ret.append( + { + "file_name": image_file, + "image_id": "_".join( + os.path.splitext(os.path.basename(image_file))[0].split("_")[:3] + ), + "sem_seg_file_name": sem_label_file, + "pan_seg_file_name": label_file, + "segments_info": segments_info, + } + ) + assert len(ret), f"No images found in {image_dir}!" + assert PathManager.isfile( + ret[0]["sem_seg_file_name"] + ), "Please generate labelTrainIds.png with cityscapesscripts/preparation/createTrainIdLabelImgs.py" # noqa + assert PathManager.isfile( + ret[0]["pan_seg_file_name"] + ), "Please generate panoptic annotation with python cityscapesscripts/preparation/createPanopticImgs.py" # noqa + return ret + + +_RAW_CITYSCAPES_PANOPTIC_SPLITS = { + "cityscapes_fine_panoptic_train": ( + "cityscapes/leftImg8bit/train", + "cityscapes/gtFine/cityscapes_panoptic_train", + "cityscapes/gtFine/cityscapes_panoptic_train.json", + ), + "cityscapes_fine_panoptic_val": ( + "cityscapes/leftImg8bit/val", + "cityscapes/gtFine/cityscapes_panoptic_val", + "cityscapes/gtFine/cityscapes_panoptic_val.json", + ), + # "cityscapes_fine_panoptic_test": not supported yet +} + + +def register_all_cityscapes_panoptic(root): + meta = {} + # The following metadata maps contiguous id from [0, #thing categories + + # #stuff categories) to their names and colors. We have to replica of the + # same name and color under "thing_*" and "stuff_*" because the current + # visualization function in D2 handles thing and class classes differently + # due to some heuristic used in Panoptic FPN. We keep the same naming to + # enable reusing existing visualization functions. + thing_classes = [k["name"] for k in CITYSCAPES_CATEGORIES] + thing_colors = [k["color"] for k in CITYSCAPES_CATEGORIES] + stuff_classes = [k["name"] for k in CITYSCAPES_CATEGORIES] + stuff_colors = [k["color"] for k in CITYSCAPES_CATEGORIES] + + meta["thing_classes"] = thing_classes + meta["thing_colors"] = thing_colors + meta["stuff_classes"] = stuff_classes + meta["stuff_colors"] = stuff_colors + + # There are three types of ids in cityscapes panoptic segmentation: + # (1) category id: like semantic segmentation, it is the class id for each + # pixel. Since there are some classes not used in evaluation, the category + # id is not always contiguous and thus we have two set of category ids: + # - original category id: category id in the original dataset, mainly + # used for evaluation. + # - contiguous category id: [0, #classes), in order to train the classifier + # (2) instance id: this id is used to differentiate different instances from + # the same category. For "stuff" classes, the instance id is always 0; for + # "thing" classes, the instance id starts from 1 and 0 is reserved for + # ignored instances (e.g. crowd annotation). + # (3) panoptic id: this is the compact id that encode both category and + # instance id by: category_id * 1000 + instance_id. + thing_dataset_id_to_contiguous_id = {} + stuff_dataset_id_to_contiguous_id = {} + + for k in CITYSCAPES_CATEGORIES: + if k["isthing"] == 1: + thing_dataset_id_to_contiguous_id[k["id"]] = k["trainId"] + else: + stuff_dataset_id_to_contiguous_id[k["id"]] = k["trainId"] + + meta["thing_dataset_id_to_contiguous_id"] = thing_dataset_id_to_contiguous_id + meta["stuff_dataset_id_to_contiguous_id"] = stuff_dataset_id_to_contiguous_id + + for key, (image_dir, gt_dir, gt_json) in _RAW_CITYSCAPES_PANOPTIC_SPLITS.items(): + image_dir = os.path.join(root, image_dir) + gt_dir = os.path.join(root, gt_dir) + gt_json = os.path.join(root, gt_json) + + DatasetCatalog.register( + key, lambda x=image_dir, y=gt_dir, z=gt_json: load_cityscapes_panoptic(x, y, z, meta) + ) + MetadataCatalog.get(key).set( + panoptic_root=gt_dir, + image_root=image_dir, + panoptic_json=gt_json, + gt_dir=gt_dir.replace("cityscapes_panoptic_", ""), + evaluator_type="cityscapes_panoptic_seg", + ignore_label=255, + label_divisor=1000, + **meta, + ) diff --git a/detectron2/detectron2/data/datasets/coco.py b/detectron2/detectron2/data/datasets/coco.py new file mode 100755 index 0000000..ed4f7cc --- /dev/null +++ b/detectron2/detectron2/data/datasets/coco.py @@ -0,0 +1,539 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import contextlib +import datetime +import io +import json +import logging +import numpy as np +import os +import shutil +import pycocotools.mask as mask_util +from fvcore.common.timer import Timer +from iopath.common.file_io import file_lock +from PIL import Image + +from detectron2.structures import Boxes, BoxMode, PolygonMasks, RotatedBoxes +from detectron2.utils.file_io import PathManager + +from .. import DatasetCatalog, MetadataCatalog + +""" +This file contains functions to parse COCO-format annotations into dicts in "Detectron2 format". +""" + + +logger = logging.getLogger(__name__) + +__all__ = ["load_coco_json", "load_sem_seg", "convert_to_coco_json", "register_coco_instances"] + + +def load_coco_json(json_file, image_root, dataset_name=None, extra_annotation_keys=None): + """ + Load a json file with COCO's instances annotation format. + Currently supports instance detection, instance segmentation, + and person keypoints annotations. + + Args: + json_file (str): full path to the json file in COCO instances annotation format. + image_root (str or path-like): the directory where the images in this json file exists. + dataset_name (str or None): the name of the dataset (e.g., coco_2017_train). + When provided, this function will also do the following: + + * Put "thing_classes" into the metadata associated with this dataset. + * Map the category ids into a contiguous range (needed by standard dataset format), + and add "thing_dataset_id_to_contiguous_id" to the metadata associated + with this dataset. + + This option should usually be provided, unless users need to load + the original json content and apply more processing manually. + extra_annotation_keys (list[str]): list of per-annotation keys that should also be + loaded into the dataset dict (besides "iscrowd", "bbox", "keypoints", + "category_id", "segmentation"). The values for these keys will be returned as-is. + For example, the densepose annotations are loaded in this way. + + Returns: + list[dict]: a list of dicts in Detectron2 standard dataset dicts format (See + `Using Custom Datasets `_ ) when `dataset_name` is not None. + If `dataset_name` is None, the returned `category_ids` may be + incontiguous and may not conform to the Detectron2 standard format. + + Notes: + 1. This function does not read the image files. + The results do not have the "image" field. + """ + from pycocotools.coco import COCO + + timer = Timer() + json_file = PathManager.get_local_path(json_file) + with contextlib.redirect_stdout(io.StringIO()): + coco_api = COCO(json_file) + if timer.seconds() > 1: + logger.info("Loading {} takes {:.2f} seconds.".format(json_file, timer.seconds())) + + id_map = None + if dataset_name is not None: + meta = MetadataCatalog.get(dataset_name) + cat_ids = sorted(coco_api.getCatIds()) + cats = coco_api.loadCats(cat_ids) + # The categories in a custom json file may not be sorted. + thing_classes = [c["name"] for c in sorted(cats, key=lambda x: x["id"])] + meta.thing_classes = thing_classes + + # In COCO, certain category ids are artificially removed, + # and by convention they are always ignored. + # We deal with COCO's id issue and translate + # the category ids to contiguous ids in [0, 80). + + # It works by looking at the "categories" field in the json, therefore + # if users' own json also have incontiguous ids, we'll + # apply this mapping as well but print a warning. + if not (min(cat_ids) == 1 and max(cat_ids) == len(cat_ids)): + if "coco" not in dataset_name: + logger.warning( + """ +Category ids in annotations are not in [1, #categories]! We'll apply a mapping for you. +""" + ) + id_map = {v: i for i, v in enumerate(cat_ids)} + meta.thing_dataset_id_to_contiguous_id = id_map + + # sort indices for reproducible results + img_ids = sorted(coco_api.imgs.keys()) + # imgs is a list of dicts, each looks something like: + # {'license': 4, + # 'url': 'http://farm6.staticflickr.com/5454/9413846304_881d5e5c3b_z.jpg', + # 'file_name': 'COCO_val2014_000000001268.jpg', + # 'height': 427, + # 'width': 640, + # 'date_captured': '2013-11-17 05:57:24', + # 'id': 1268} + imgs = coco_api.loadImgs(img_ids) + # anns is a list[list[dict]], where each dict is an annotation + # record for an object. The inner list enumerates the objects in an image + # and the outer list enumerates over images. Example of anns[0]: + # [{'segmentation': [[192.81, + # 247.09, + # ... + # 219.03, + # 249.06]], + # 'area': 1035.749, + # 'iscrowd': 0, + # 'image_id': 1268, + # 'bbox': [192.81, 224.8, 74.73, 33.43], + # 'category_id': 16, + # 'id': 42986}, + # ...] + anns = [coco_api.imgToAnns[img_id] for img_id in img_ids] + total_num_valid_anns = sum([len(x) for x in anns]) + total_num_anns = len(coco_api.anns) + if total_num_valid_anns < total_num_anns: + logger.warning( + f"{json_file} contains {total_num_anns} annotations, but only " + f"{total_num_valid_anns} of them match to images in the file." + ) + + if "minival" not in json_file: + # The popular valminusminival & minival annotations for COCO2014 contain this bug. + # However the ratio of buggy annotations there is tiny and does not affect accuracy. + # Therefore we explicitly white-list them. + ann_ids = [ann["id"] for anns_per_image in anns for ann in anns_per_image] + assert len(set(ann_ids)) == len(ann_ids), "Annotation ids in '{}' are not unique!".format( + json_file + ) + + imgs_anns = list(zip(imgs, anns)) + logger.info("Loaded {} images in COCO format from {}".format(len(imgs_anns), json_file)) + + dataset_dicts = [] + + ann_keys = ["iscrowd", "bbox", "keypoints", "category_id"] + (extra_annotation_keys or []) + + num_instances_without_valid_segmentation = 0 + + for (img_dict, anno_dict_list) in imgs_anns: + record = {} + record["file_name"] = os.path.join(image_root, img_dict["file_name"]) + record["height"] = img_dict["height"] + record["width"] = img_dict["width"] + image_id = record["image_id"] = img_dict["id"] + + objs = [] + for anno in anno_dict_list: + # Check that the image_id in this annotation is the same as + # the image_id we're looking at. + # This fails only when the data parsing logic or the annotation file is buggy. + + # The original COCO valminusminival2014 & minival2014 annotation files + # actually contains bugs that, together with certain ways of using COCO API, + # can trigger this assertion. + assert anno["image_id"] == image_id + + assert anno.get("ignore", 0) == 0, '"ignore" in COCO json file is not supported.' + + obj = {key: anno[key] for key in ann_keys if key in anno} + if "bbox" in obj and len(obj["bbox"]) == 0: + raise ValueError( + f"One annotation of image {image_id} contains empty 'bbox' value! " + "This json does not have valid COCO format." + ) + + segm = anno.get("segmentation", None) + if segm: # either list[list[float]] or dict(RLE) + if isinstance(segm, dict): + if isinstance(segm["counts"], list): + # convert to compressed RLE + segm = mask_util.frPyObjects(segm, *segm["size"]) + else: + # filter out invalid polygons (< 3 points) + segm = [poly for poly in segm if len(poly) % 2 == 0 and len(poly) >= 6] + if len(segm) == 0: + num_instances_without_valid_segmentation += 1 + continue # ignore this instance + obj["segmentation"] = segm + + keypts = anno.get("keypoints", None) + if keypts: # list[int] + for idx, v in enumerate(keypts): + if idx % 3 != 2: + # COCO's segmentation coordinates are floating points in [0, H or W], + # but keypoint coordinates are integers in [0, H-1 or W-1] + # Therefore we assume the coordinates are "pixel indices" and + # add 0.5 to convert to floating point coordinates. + keypts[idx] = v + 0.5 + obj["keypoints"] = keypts + + obj["bbox_mode"] = BoxMode.XYWH_ABS + if id_map: + annotation_category_id = obj["category_id"] + try: + obj["category_id"] = id_map[annotation_category_id] + except KeyError as e: + raise KeyError( + f"Encountered category_id={annotation_category_id} " + "but this id does not exist in 'categories' of the json file." + ) from e + objs.append(obj) + record["annotations"] = objs + dataset_dicts.append(record) + + if num_instances_without_valid_segmentation > 0: + logger.warning( + "Filtered out {} instances without valid segmentation. ".format( + num_instances_without_valid_segmentation + ) + + "There might be issues in your dataset generation process. Please " + "check https://detectron2.readthedocs.io/en/latest/tutorials/datasets.html carefully" + ) + return dataset_dicts + + +def load_sem_seg(gt_root, image_root, gt_ext="png", image_ext="jpg"): + """ + Load semantic segmentation datasets. All files under "gt_root" with "gt_ext" extension are + treated as ground truth annotations and all files under "image_root" with "image_ext" extension + as input images. Ground truth and input images are matched using file paths relative to + "gt_root" and "image_root" respectively without taking into account file extensions. + This works for COCO as well as some other datasets. + + Args: + gt_root (str): full path to ground truth semantic segmentation files. Semantic segmentation + annotations are stored as images with integer values in pixels that represent + corresponding semantic labels. + image_root (str): the directory where the input images are. + gt_ext (str): file extension for ground truth annotations. + image_ext (str): file extension for input images. + + Returns: + list[dict]: + a list of dicts in detectron2 standard format without instance-level + annotation. + + Notes: + 1. This function does not read the image and ground truth files. + The results do not have the "image" and "sem_seg" fields. + """ + + # We match input images with ground truth based on their relative filepaths (without file + # extensions) starting from 'image_root' and 'gt_root' respectively. + def file2id(folder_path, file_path): + # extract relative path starting from `folder_path` + image_id = os.path.normpath(os.path.relpath(file_path, start=folder_path)) + # remove file extension + image_id = os.path.splitext(image_id)[0] + return image_id + + input_files = sorted( + (os.path.join(image_root, f) for f in PathManager.ls(image_root) if f.endswith(image_ext)), + key=lambda file_path: file2id(image_root, file_path), + ) + gt_files = sorted( + (os.path.join(gt_root, f) for f in PathManager.ls(gt_root) if f.endswith(gt_ext)), + key=lambda file_path: file2id(gt_root, file_path), + ) + + assert len(gt_files) > 0, "No annotations found in {}.".format(gt_root) + + # Use the intersection, so that val2017_100 annotations can run smoothly with val2017 images + if len(input_files) != len(gt_files): + logger.warn( + "Directory {} and {} has {} and {} files, respectively.".format( + image_root, gt_root, len(input_files), len(gt_files) + ) + ) + input_basenames = [os.path.basename(f)[: -len(image_ext)] for f in input_files] + gt_basenames = [os.path.basename(f)[: -len(gt_ext)] for f in gt_files] + intersect = list(set(input_basenames) & set(gt_basenames)) + # sort, otherwise each worker may obtain a list[dict] in different order + intersect = sorted(intersect) + logger.warn("Will use their intersection of {} files.".format(len(intersect))) + input_files = [os.path.join(image_root, f + image_ext) for f in intersect] + gt_files = [os.path.join(gt_root, f + gt_ext) for f in intersect] + + logger.info( + "Loaded {} images with semantic segmentation from {}".format(len(input_files), image_root) + ) + + dataset_dicts = [] + for (img_path, gt_path) in zip(input_files, gt_files): + record = {} + record["file_name"] = img_path + record["sem_seg_file_name"] = gt_path + dataset_dicts.append(record) + + return dataset_dicts + + +def convert_to_coco_dict(dataset_name): + """ + Convert an instance detection/segmentation or keypoint detection dataset + in detectron2's standard format into COCO json format. + + Generic dataset description can be found here: + https://detectron2.readthedocs.io/tutorials/datasets.html#register-a-dataset + + COCO data format description can be found here: + http://cocodataset.org/#format-data + + Args: + dataset_name (str): + name of the source dataset + Must be registered in DatastCatalog and in detectron2's standard format. + Must have corresponding metadata "thing_classes" + Returns: + coco_dict: serializable dict in COCO json format + """ + + dataset_dicts = DatasetCatalog.get(dataset_name) + metadata = MetadataCatalog.get(dataset_name) + + # unmap the category mapping ids for COCO + if hasattr(metadata, "thing_dataset_id_to_contiguous_id"): + reverse_id_mapping = {v: k for k, v in metadata.thing_dataset_id_to_contiguous_id.items()} + reverse_id_mapper = lambda contiguous_id: reverse_id_mapping[contiguous_id] # noqa + else: + reverse_id_mapper = lambda contiguous_id: contiguous_id # noqa + + categories = [ + {"id": reverse_id_mapper(id), "name": name} + for id, name in enumerate(metadata.thing_classes) + ] + + logger.info("Converting dataset dicts into COCO format") + coco_images = [] + coco_annotations = [] + + for image_id, image_dict in enumerate(dataset_dicts): + coco_image = { + "id": image_dict.get("image_id", image_id), + "width": int(image_dict["width"]), + "height": int(image_dict["height"]), + "file_name": str(image_dict["file_name"]), + } + coco_images.append(coco_image) + + anns_per_image = image_dict.get("annotations", []) + for annotation in anns_per_image: + # create a new dict with only COCO fields + coco_annotation = {} + + # COCO requirement: XYWH box format for axis-align and XYWHA for rotated + bbox = annotation["bbox"] + if isinstance(bbox, np.ndarray): + if bbox.ndim != 1: + raise ValueError(f"bbox has to be 1-dimensional. Got shape={bbox.shape}.") + bbox = bbox.tolist() + if len(bbox) not in [4, 5]: + raise ValueError(f"bbox has to has length 4 or 5. Got {bbox}.") + from_bbox_mode = annotation["bbox_mode"] + to_bbox_mode = BoxMode.XYWH_ABS if len(bbox) == 4 else BoxMode.XYWHA_ABS + bbox = BoxMode.convert(bbox, from_bbox_mode, to_bbox_mode) + + # COCO requirement: instance area + if "segmentation" in annotation: + # Computing areas for instances by counting the pixels + segmentation = annotation["segmentation"] + # TODO: check segmentation type: RLE, BinaryMask or Polygon + if isinstance(segmentation, list): + polygons = PolygonMasks([segmentation]) + area = polygons.area()[0].item() + elif isinstance(segmentation, dict): # RLE + area = mask_util.area(segmentation).item() + else: + raise TypeError(f"Unknown segmentation type {type(segmentation)}!") + else: + # Computing areas using bounding boxes + if to_bbox_mode == BoxMode.XYWH_ABS: + bbox_xy = BoxMode.convert(bbox, to_bbox_mode, BoxMode.XYXY_ABS) + area = Boxes([bbox_xy]).area()[0].item() + else: + area = RotatedBoxes([bbox]).area()[0].item() + + if "keypoints" in annotation: + keypoints = annotation["keypoints"] # list[int] + for idx, v in enumerate(keypoints): + if idx % 3 != 2: + # COCO's segmentation coordinates are floating points in [0, H or W], + # but keypoint coordinates are integers in [0, H-1 or W-1] + # For COCO format consistency we substract 0.5 + # https://github.com/facebookresearch/detectron2/pull/175#issuecomment-551202163 + keypoints[idx] = v - 0.5 + if "num_keypoints" in annotation: + num_keypoints = annotation["num_keypoints"] + else: + num_keypoints = sum(kp > 0 for kp in keypoints[2::3]) + + # COCO requirement: + # linking annotations to images + # "id" field must start with 1 + coco_annotation["id"] = len(coco_annotations) + 1 + coco_annotation["image_id"] = coco_image["id"] + coco_annotation["bbox"] = [round(float(x), 3) for x in bbox] + coco_annotation["area"] = float(area) + coco_annotation["iscrowd"] = int(annotation.get("iscrowd", 0)) + coco_annotation["category_id"] = int(reverse_id_mapper(annotation["category_id"])) + + # Add optional fields + if "keypoints" in annotation: + coco_annotation["keypoints"] = keypoints + coco_annotation["num_keypoints"] = num_keypoints + + if "segmentation" in annotation: + seg = coco_annotation["segmentation"] = annotation["segmentation"] + if isinstance(seg, dict): # RLE + counts = seg["counts"] + if not isinstance(counts, str): + # make it json-serializable + seg["counts"] = counts.decode("ascii") + + coco_annotations.append(coco_annotation) + + logger.info( + "Conversion finished, " + f"#images: {len(coco_images)}, #annotations: {len(coco_annotations)}" + ) + + info = { + "date_created": str(datetime.datetime.now()), + "description": "Automatically generated COCO json file for Detectron2.", + } + coco_dict = {"info": info, "images": coco_images, "categories": categories, "licenses": None} + if len(coco_annotations) > 0: + coco_dict["annotations"] = coco_annotations + return coco_dict + + +def convert_to_coco_json(dataset_name, output_file, allow_cached=True): + """ + Converts dataset into COCO format and saves it to a json file. + dataset_name must be registered in DatasetCatalog and in detectron2's standard format. + + Args: + dataset_name: + reference from the config file to the catalogs + must be registered in DatasetCatalog and in detectron2's standard format + output_file: path of json file that will be saved to + allow_cached: if json file is already present then skip conversion + """ + + # TODO: The dataset or the conversion script *may* change, + # a checksum would be useful for validating the cached data + + PathManager.mkdirs(os.path.dirname(output_file)) + with file_lock(output_file): + if PathManager.exists(output_file) and allow_cached: + logger.warning( + f"Using previously cached COCO format annotations at '{output_file}'. " + "You need to clear the cache file if your dataset has been modified." + ) + else: + logger.info(f"Converting annotations of dataset '{dataset_name}' to COCO format ...)") + coco_dict = convert_to_coco_dict(dataset_name) + + logger.info(f"Caching COCO format annotations at '{output_file}' ...") + tmp_file = output_file + ".tmp" + with PathManager.open(tmp_file, "w") as f: + json.dump(coco_dict, f) + shutil.move(tmp_file, output_file) + + +def register_coco_instances(name, metadata, json_file, image_root): + """ + Register a dataset in COCO's json annotation format for + instance detection, instance segmentation and keypoint detection. + (i.e., Type 1 and 2 in http://cocodataset.org/#format-data. + `instances*.json` and `person_keypoints*.json` in the dataset). + + This is an example of how to register a new dataset. + You can do something similar to this function, to register new datasets. + + Args: + name (str): the name that identifies a dataset, e.g. "coco_2014_train". + metadata (dict): extra metadata associated with this dataset. You can + leave it as an empty dict. + json_file (str): path to the json instance annotation file. + image_root (str or path-like): directory which contains all the images. + """ + assert isinstance(name, str), name + assert isinstance(json_file, (str, os.PathLike)), json_file + assert isinstance(image_root, (str, os.PathLike)), image_root + # 1. register a function which returns dicts + DatasetCatalog.register(name, lambda: load_coco_json(json_file, image_root, name)) + + # 2. Optionally, add metadata about this dataset, + # since they might be useful in evaluation, visualization or logging + MetadataCatalog.get(name).set( + json_file=json_file, image_root=image_root, evaluator_type="coco", **metadata + ) + + +if __name__ == "__main__": + """ + Test the COCO json dataset loader. + + Usage: + python -m detectron2.data.datasets.coco \ + path/to/json path/to/image_root dataset_name + + "dataset_name" can be "coco_2014_minival_100", or other + pre-registered ones + """ + from detectron2.utils.logger import setup_logger + from detectron2.utils.visualizer import Visualizer + import detectron2.data.datasets # noqa # add pre-defined metadata + import sys + + logger = setup_logger(name=__name__) + assert sys.argv[3] in DatasetCatalog.list() + meta = MetadataCatalog.get(sys.argv[3]) + + dicts = load_coco_json(sys.argv[1], sys.argv[2], sys.argv[3]) + logger.info("Done loading {} samples.".format(len(dicts))) + + dirname = "coco-data-vis" + os.makedirs(dirname, exist_ok=True) + for d in dicts: + img = np.array(Image.open(d["file_name"])) + visualizer = Visualizer(img, metadata=meta) + vis = visualizer.draw_dataset_dict(d) + fpath = os.path.join(dirname, os.path.basename(d["file_name"])) + vis.save(fpath) diff --git a/detectron2/detectron2/data/datasets/coco_panoptic.py b/detectron2/detectron2/data/datasets/coco_panoptic.py new file mode 100755 index 0000000..b8dae44 --- /dev/null +++ b/detectron2/detectron2/data/datasets/coco_panoptic.py @@ -0,0 +1,228 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import json +import os + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.utils.file_io import PathManager + +from .coco import load_coco_json, load_sem_seg + +__all__ = ["register_coco_panoptic", "register_coco_panoptic_separated"] + + +def load_coco_panoptic_json(json_file, image_dir, gt_dir, meta): + """ + Args: + image_dir (str): path to the raw dataset. e.g., "~/coco/train2017". + gt_dir (str): path to the raw annotations. e.g., "~/coco/panoptic_train2017". + json_file (str): path to the json file. e.g., "~/coco/annotations/panoptic_train2017.json". + + Returns: + list[dict]: a list of dicts in Detectron2 standard format. (See + `Using Custom Datasets `_ ) + """ + + def _convert_category_id(segment_info, meta): + if segment_info["category_id"] in meta["thing_dataset_id_to_contiguous_id"]: + segment_info["category_id"] = meta["thing_dataset_id_to_contiguous_id"][ + segment_info["category_id"] + ] + segment_info["isthing"] = True + else: + segment_info["category_id"] = meta["stuff_dataset_id_to_contiguous_id"][ + segment_info["category_id"] + ] + segment_info["isthing"] = False + return segment_info + + with PathManager.open(json_file) as f: + json_info = json.load(f) + + ret = [] + for ann in json_info["annotations"]: + image_id = int(ann["image_id"]) + # TODO: currently we assume image and label has the same filename but + # different extension, and images have extension ".jpg" for COCO. Need + # to make image extension a user-provided argument if we extend this + # function to support other COCO-like datasets. + image_file = os.path.join(image_dir, os.path.splitext(ann["file_name"])[0] + ".jpg") + label_file = os.path.join(gt_dir, ann["file_name"]) + segments_info = [_convert_category_id(x, meta) for x in ann["segments_info"]] + ret.append( + { + "file_name": image_file, + "image_id": image_id, + "pan_seg_file_name": label_file, + "segments_info": segments_info, + } + ) + assert len(ret), f"No images found in {image_dir}!" + assert PathManager.isfile(ret[0]["file_name"]), ret[0]["file_name"] + assert PathManager.isfile(ret[0]["pan_seg_file_name"]), ret[0]["pan_seg_file_name"] + return ret + + +def register_coco_panoptic( + name, metadata, image_root, panoptic_root, panoptic_json, instances_json=None +): + """ + Register a "standard" version of COCO panoptic segmentation dataset named `name`. + The dictionaries in this registered dataset follows detectron2's standard format. + Hence it's called "standard". + + Args: + name (str): the name that identifies a dataset, + e.g. "coco_2017_train_panoptic" + metadata (dict): extra metadata associated with this dataset. + image_root (str): directory which contains all the images + panoptic_root (str): directory which contains panoptic annotation images in COCO format + panoptic_json (str): path to the json panoptic annotation file in COCO format + sem_seg_root (none): not used, to be consistent with + `register_coco_panoptic_separated`. + instances_json (str): path to the json instance annotation file + """ + panoptic_name = name + DatasetCatalog.register( + panoptic_name, + lambda: load_coco_panoptic_json(panoptic_json, image_root, panoptic_root, metadata), + ) + MetadataCatalog.get(panoptic_name).set( + panoptic_root=panoptic_root, + image_root=image_root, + panoptic_json=panoptic_json, + json_file=instances_json, + evaluator_type="coco_panoptic_seg", + ignore_label=255, + label_divisor=1000, + **metadata, + ) + + +def register_coco_panoptic_separated( + name, metadata, image_root, panoptic_root, panoptic_json, sem_seg_root, instances_json +): + """ + Register a "separated" version of COCO panoptic segmentation dataset named `name`. + The annotations in this registered dataset will contain both instance annotations and + semantic annotations, each with its own contiguous ids. Hence it's called "separated". + + It follows the setting used by the PanopticFPN paper: + + 1. The instance annotations directly come from polygons in the COCO + instances annotation task, rather than from the masks in the COCO panoptic annotations. + + The two format have small differences: + Polygons in the instance annotations may have overlaps. + The mask annotations are produced by labeling the overlapped polygons + with depth ordering. + + 2. The semantic annotations are converted from panoptic annotations, where + all "things" are assigned a semantic id of 0. + All semantic categories will therefore have ids in contiguous + range [1, #stuff_categories]. + + This function will also register a pure semantic segmentation dataset + named ``name + '_stuffonly'``. + + Args: + name (str): the name that identifies a dataset, + e.g. "coco_2017_train_panoptic" + metadata (dict): extra metadata associated with this dataset. + image_root (str): directory which contains all the images + panoptic_root (str): directory which contains panoptic annotation images + panoptic_json (str): path to the json panoptic annotation file + sem_seg_root (str): directory which contains all the ground truth segmentation annotations. + instances_json (str): path to the json instance annotation file + """ + panoptic_name = name + "_separated" + DatasetCatalog.register( + panoptic_name, + lambda: merge_to_panoptic( + load_coco_json(instances_json, image_root, panoptic_name), + load_sem_seg(sem_seg_root, image_root), + ), + ) + MetadataCatalog.get(panoptic_name).set( + panoptic_root=panoptic_root, + image_root=image_root, + panoptic_json=panoptic_json, + sem_seg_root=sem_seg_root, + json_file=instances_json, # TODO rename + evaluator_type="coco_panoptic_seg", + ignore_label=255, + **metadata, + ) + + semantic_name = name + "_stuffonly" + DatasetCatalog.register(semantic_name, lambda: load_sem_seg(sem_seg_root, image_root)) + MetadataCatalog.get(semantic_name).set( + sem_seg_root=sem_seg_root, + image_root=image_root, + evaluator_type="sem_seg", + ignore_label=255, + **metadata, + ) + + +def merge_to_panoptic(detection_dicts, sem_seg_dicts): + """ + Create dataset dicts for panoptic segmentation, by + merging two dicts using "file_name" field to match their entries. + + Args: + detection_dicts (list[dict]): lists of dicts for object detection or instance segmentation. + sem_seg_dicts (list[dict]): lists of dicts for semantic segmentation. + + Returns: + list[dict] (one per input image): Each dict contains all (key, value) pairs from dicts in + both detection_dicts and sem_seg_dicts that correspond to the same image. + The function assumes that the same key in different dicts has the same value. + """ + results = [] + sem_seg_file_to_entry = {x["file_name"]: x for x in sem_seg_dicts} + assert len(sem_seg_file_to_entry) > 0 + + for det_dict in detection_dicts: + dic = copy.copy(det_dict) + dic.update(sem_seg_file_to_entry[dic["file_name"]]) + results.append(dic) + return results + + +if __name__ == "__main__": + """ + Test the COCO panoptic dataset loader. + + Usage: + python -m detectron2.data.datasets.coco_panoptic \ + path/to/image_root path/to/panoptic_root path/to/panoptic_json dataset_name 10 + + "dataset_name" can be "coco_2017_train_panoptic", or other + pre-registered ones + """ + from detectron2.utils.logger import setup_logger + from detectron2.utils.visualizer import Visualizer + import detectron2.data.datasets # noqa # add pre-defined metadata + import sys + from PIL import Image + import numpy as np + + logger = setup_logger(name=__name__) + assert sys.argv[4] in DatasetCatalog.list() + meta = MetadataCatalog.get(sys.argv[4]) + + dicts = load_coco_panoptic_json(sys.argv[3], sys.argv[1], sys.argv[2], meta.as_dict()) + logger.info("Done loading {} samples.".format(len(dicts))) + + dirname = "coco-data-vis" + os.makedirs(dirname, exist_ok=True) + num_imgs_to_vis = int(sys.argv[5]) + for i, d in enumerate(dicts): + img = np.array(Image.open(d["file_name"])) + visualizer = Visualizer(img, metadata=meta) + vis = visualizer.draw_dataset_dict(d) + fpath = os.path.join(dirname, os.path.basename(d["file_name"])) + vis.save(fpath) + if i + 1 >= num_imgs_to_vis: + break diff --git a/detectron2/detectron2/data/datasets/lvis.py b/detectron2/detectron2/data/datasets/lvis.py new file mode 100755 index 0000000..576d962 --- /dev/null +++ b/detectron2/detectron2/data/datasets/lvis.py @@ -0,0 +1,241 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import os +from fvcore.common.timer import Timer + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.structures import BoxMode +from detectron2.utils.file_io import PathManager + +from .builtin_meta import _get_coco_instances_meta +from .lvis_v0_5_categories import LVIS_CATEGORIES as LVIS_V0_5_CATEGORIES +from .lvis_v1_categories import LVIS_CATEGORIES as LVIS_V1_CATEGORIES +from .lvis_v1_category_image_count import LVIS_CATEGORY_IMAGE_COUNT as LVIS_V1_CATEGORY_IMAGE_COUNT + +""" +This file contains functions to parse LVIS-format annotations into dicts in the +"Detectron2 format". +""" + +logger = logging.getLogger(__name__) + +__all__ = ["load_lvis_json", "register_lvis_instances", "get_lvis_instances_meta"] + + +def register_lvis_instances(name, metadata, json_file, image_root): + """ + Register a dataset in LVIS's json annotation format for instance detection and segmentation. + + Args: + name (str): a name that identifies the dataset, e.g. "lvis_v0.5_train". + metadata (dict): extra metadata associated with this dataset. It can be an empty dict. + json_file (str): path to the json instance annotation file. + image_root (str or path-like): directory which contains all the images. + """ + DatasetCatalog.register(name, lambda: load_lvis_json(json_file, image_root, name)) + MetadataCatalog.get(name).set( + json_file=json_file, image_root=image_root, evaluator_type="lvis", **metadata + ) + + +def load_lvis_json(json_file, image_root, dataset_name=None, extra_annotation_keys=None): + """ + Load a json file in LVIS's annotation format. + + Args: + json_file (str): full path to the LVIS json annotation file. + image_root (str): the directory where the images in this json file exists. + dataset_name (str): the name of the dataset (e.g., "lvis_v0.5_train"). + If provided, this function will put "thing_classes" into the metadata + associated with this dataset. + extra_annotation_keys (list[str]): list of per-annotation keys that should also be + loaded into the dataset dict (besides "bbox", "bbox_mode", "category_id", + "segmentation"). The values for these keys will be returned as-is. + + Returns: + list[dict]: a list of dicts in Detectron2 standard format. (See + `Using Custom Datasets `_ ) + + Notes: + 1. This function does not read the image files. + The results do not have the "image" field. + """ + from lvis import LVIS + + json_file = PathManager.get_local_path(json_file) + + timer = Timer() + lvis_api = LVIS(json_file) + if timer.seconds() > 1: + logger.info("Loading {} takes {:.2f} seconds.".format(json_file, timer.seconds())) + + if dataset_name is not None: + meta = get_lvis_instances_meta(dataset_name) + MetadataCatalog.get(dataset_name).set(**meta) + + # sort indices for reproducible results + img_ids = sorted(lvis_api.imgs.keys()) + # imgs is a list of dicts, each looks something like: + # {'license': 4, + # 'url': 'http://farm6.staticflickr.com/5454/9413846304_881d5e5c3b_z.jpg', + # 'file_name': 'COCO_val2014_000000001268.jpg', + # 'height': 427, + # 'width': 640, + # 'date_captured': '2013-11-17 05:57:24', + # 'id': 1268} + imgs = lvis_api.load_imgs(img_ids) + # anns is a list[list[dict]], where each dict is an annotation + # record for an object. The inner list enumerates the objects in an image + # and the outer list enumerates over images. Example of anns[0]: + # [{'segmentation': [[192.81, + # 247.09, + # ... + # 219.03, + # 249.06]], + # 'area': 1035.749, + # 'image_id': 1268, + # 'bbox': [192.81, 224.8, 74.73, 33.43], + # 'category_id': 16, + # 'id': 42986}, + # ...] + anns = [lvis_api.img_ann_map[img_id] for img_id in img_ids] + + # Sanity check that each annotation has a unique id + ann_ids = [ann["id"] for anns_per_image in anns for ann in anns_per_image] + assert len(set(ann_ids)) == len(ann_ids), "Annotation ids in '{}' are not unique".format( + json_file + ) + + imgs_anns = list(zip(imgs, anns)) + + logger.info("Loaded {} images in the LVIS format from {}".format(len(imgs_anns), json_file)) + + if extra_annotation_keys: + logger.info( + "The following extra annotation keys will be loaded: {} ".format(extra_annotation_keys) + ) + else: + extra_annotation_keys = [] + + def get_file_name(img_root, img_dict): + # Determine the path including the split folder ("train2017", "val2017", "test2017") from + # the coco_url field. Example: + # 'coco_url': 'http://images.cocodataset.org/train2017/000000155379.jpg' + split_folder, file_name = img_dict["coco_url"].split("/")[-2:] + return os.path.join(img_root + split_folder, file_name) + + dataset_dicts = [] + + for (img_dict, anno_dict_list) in imgs_anns: + record = {} + record["file_name"] = get_file_name(image_root, img_dict) + record["height"] = img_dict["height"] + record["width"] = img_dict["width"] + record["not_exhaustive_category_ids"] = img_dict.get("not_exhaustive_category_ids", []) + record["neg_category_ids"] = img_dict.get("neg_category_ids", []) + image_id = record["image_id"] = img_dict["id"] + + objs = [] + for anno in anno_dict_list: + # Check that the image_id in this annotation is the same as + # the image_id we're looking at. + # This fails only when the data parsing logic or the annotation file is buggy. + assert anno["image_id"] == image_id + obj = {"bbox": anno["bbox"], "bbox_mode": BoxMode.XYWH_ABS} + # LVIS data loader can be used to load COCO dataset categories. In this case `meta` + # variable will have a field with COCO-specific category mapping. + if dataset_name is not None and "thing_dataset_id_to_contiguous_id" in meta: + obj["category_id"] = meta["thing_dataset_id_to_contiguous_id"][anno["category_id"]] + else: + obj["category_id"] = anno["category_id"] - 1 # Convert 1-indexed to 0-indexed + segm = anno["segmentation"] # list[list[float]] + # filter out invalid polygons (< 3 points) + valid_segm = [poly for poly in segm if len(poly) % 2 == 0 and len(poly) >= 6] + assert len(segm) == len( + valid_segm + ), "Annotation contains an invalid polygon with < 3 points" + assert len(segm) > 0 + obj["segmentation"] = segm + for extra_ann_key in extra_annotation_keys: + obj[extra_ann_key] = anno[extra_ann_key] + objs.append(obj) + record["annotations"] = objs + dataset_dicts.append(record) + + return dataset_dicts + + +def get_lvis_instances_meta(dataset_name): + """ + Load LVIS metadata. + + Args: + dataset_name (str): LVIS dataset name without the split name (e.g., "lvis_v0.5"). + + Returns: + dict: LVIS metadata with keys: thing_classes + """ + if "cocofied" in dataset_name: + return _get_coco_instances_meta() + if "v0.5" in dataset_name: + return _get_lvis_instances_meta_v0_5() + elif "v1" in dataset_name: + return _get_lvis_instances_meta_v1() + raise ValueError("No built-in metadata for dataset {}".format(dataset_name)) + + +def _get_lvis_instances_meta_v0_5(): + assert len(LVIS_V0_5_CATEGORIES) == 1230 + cat_ids = [k["id"] for k in LVIS_V0_5_CATEGORIES] + assert min(cat_ids) == 1 and max(cat_ids) == len( + cat_ids + ), "Category ids are not in [1, #categories], as expected" + # Ensure that the category list is sorted by id + lvis_categories = sorted(LVIS_V0_5_CATEGORIES, key=lambda x: x["id"]) + thing_classes = [k["synonyms"][0] for k in lvis_categories] + meta = {"thing_classes": thing_classes} + return meta + + +def _get_lvis_instances_meta_v1(): + assert len(LVIS_V1_CATEGORIES) == 1203 + cat_ids = [k["id"] for k in LVIS_V1_CATEGORIES] + assert min(cat_ids) == 1 and max(cat_ids) == len( + cat_ids + ), "Category ids are not in [1, #categories], as expected" + # Ensure that the category list is sorted by id + lvis_categories = sorted(LVIS_V1_CATEGORIES, key=lambda x: x["id"]) + thing_classes = [k["synonyms"][0] for k in lvis_categories] + meta = {"thing_classes": thing_classes, "class_image_count": LVIS_V1_CATEGORY_IMAGE_COUNT} + return meta + + +if __name__ == "__main__": + """ + Test the LVIS json dataset loader. + + Usage: + python -m detectron2.data.datasets.lvis \ + path/to/json path/to/image_root dataset_name vis_limit + """ + import sys + import numpy as np + from detectron2.utils.logger import setup_logger + from PIL import Image + import detectron2.data.datasets # noqa # add pre-defined metadata + from detectron2.utils.visualizer import Visualizer + + logger = setup_logger(name=__name__) + meta = MetadataCatalog.get(sys.argv[3]) + + dicts = load_lvis_json(sys.argv[1], sys.argv[2], sys.argv[3]) + logger.info("Done loading {} samples.".format(len(dicts))) + + dirname = "lvis-data-vis" + os.makedirs(dirname, exist_ok=True) + for d in dicts[: int(sys.argv[4])]: + img = np.array(Image.open(d["file_name"])) + visualizer = Visualizer(img, metadata=meta) + vis = visualizer.draw_dataset_dict(d) + fpath = os.path.join(dirname, os.path.basename(d["file_name"])) + vis.save(fpath) diff --git a/detectron2/detectron2/data/datasets/lvis_v0_5_categories.py b/detectron2/detectron2/data/datasets/lvis_v0_5_categories.py new file mode 100755 index 0000000..d3dab61 --- /dev/null +++ b/detectron2/detectron2/data/datasets/lvis_v0_5_categories.py @@ -0,0 +1,13 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# Autogen with +# with open("lvis_v0.5_val.json", "r") as f: +# a = json.load(f) +# c = a["categories"] +# for x in c: +# del x["image_count"] +# del x["instance_count"] +# LVIS_CATEGORIES = repr(c) + " # noqa" + +# fmt: off +LVIS_CATEGORIES = [{'frequency': 'r', 'id': 1, 'synset': 'acorn.n.01', 'synonyms': ['acorn'], 'def': 'nut from an oak tree', 'name': 'acorn'}, {'frequency': 'c', 'id': 2, 'synset': 'aerosol.n.02', 'synonyms': ['aerosol_can', 'spray_can'], 'def': 'a dispenser that holds a substance under pressure', 'name': 'aerosol_can'}, {'frequency': 'f', 'id': 3, 'synset': 'air_conditioner.n.01', 'synonyms': ['air_conditioner'], 'def': 'a machine that keeps air cool and dry', 'name': 'air_conditioner'}, {'frequency': 'f', 'id': 4, 'synset': 'airplane.n.01', 'synonyms': ['airplane', 'aeroplane'], 'def': 'an aircraft that has a fixed wing and is powered by propellers or jets', 'name': 'airplane'}, {'frequency': 'c', 'id': 5, 'synset': 'alarm_clock.n.01', 'synonyms': ['alarm_clock'], 'def': 'a clock that wakes a sleeper at some preset time', 'name': 'alarm_clock'}, {'frequency': 'c', 'id': 6, 'synset': 'alcohol.n.01', 'synonyms': ['alcohol', 'alcoholic_beverage'], 'def': 'a liquor or brew containing alcohol as the active agent', 'name': 'alcohol'}, {'frequency': 'r', 'id': 7, 'synset': 'alligator.n.02', 'synonyms': ['alligator', 'gator'], 'def': 'amphibious reptiles related to crocodiles but with shorter broader snouts', 'name': 'alligator'}, {'frequency': 'c', 'id': 8, 'synset': 'almond.n.02', 'synonyms': ['almond'], 'def': 'oval-shaped edible seed of the almond tree', 'name': 'almond'}, {'frequency': 'c', 'id': 9, 'synset': 'ambulance.n.01', 'synonyms': ['ambulance'], 'def': 'a vehicle that takes people to and from hospitals', 'name': 'ambulance'}, {'frequency': 'r', 'id': 10, 'synset': 'amplifier.n.01', 'synonyms': ['amplifier'], 'def': 'electronic equipment that increases strength of signals', 'name': 'amplifier'}, {'frequency': 'c', 'id': 11, 'synset': 'anklet.n.03', 'synonyms': ['anklet', 'ankle_bracelet'], 'def': 'an ornament worn around the ankle', 'name': 'anklet'}, {'frequency': 'f', 'id': 12, 'synset': 'antenna.n.01', 'synonyms': ['antenna', 'aerial', 'transmitting_aerial'], 'def': 'an electrical device that sends or receives radio or television signals', 'name': 'antenna'}, {'frequency': 'f', 'id': 13, 'synset': 'apple.n.01', 'synonyms': ['apple'], 'def': 'fruit with red or yellow or green skin and sweet to tart crisp whitish flesh', 'name': 'apple'}, {'frequency': 'r', 'id': 14, 'synset': 'apple_juice.n.01', 'synonyms': ['apple_juice'], 'def': 'the juice of apples', 'name': 'apple_juice'}, {'frequency': 'r', 'id': 15, 'synset': 'applesauce.n.01', 'synonyms': ['applesauce'], 'def': 'puree of stewed apples usually sweetened and spiced', 'name': 'applesauce'}, {'frequency': 'r', 'id': 16, 'synset': 'apricot.n.02', 'synonyms': ['apricot'], 'def': 'downy yellow to rosy-colored fruit resembling a small peach', 'name': 'apricot'}, {'frequency': 'f', 'id': 17, 'synset': 'apron.n.01', 'synonyms': ['apron'], 'def': 'a garment of cloth that is tied about the waist and worn to protect clothing', 'name': 'apron'}, {'frequency': 'c', 'id': 18, 'synset': 'aquarium.n.01', 'synonyms': ['aquarium', 'fish_tank'], 'def': 'a tank/pool/bowl filled with water for keeping live fish and underwater animals', 'name': 'aquarium'}, {'frequency': 'c', 'id': 19, 'synset': 'armband.n.02', 'synonyms': ['armband'], 'def': 'a band worn around the upper arm', 'name': 'armband'}, {'frequency': 'f', 'id': 20, 'synset': 'armchair.n.01', 'synonyms': ['armchair'], 'def': 'chair with a support on each side for arms', 'name': 'armchair'}, {'frequency': 'r', 'id': 21, 'synset': 'armoire.n.01', 'synonyms': ['armoire'], 'def': 'a large wardrobe or cabinet', 'name': 'armoire'}, {'frequency': 'r', 'id': 22, 'synset': 'armor.n.01', 'synonyms': ['armor', 'armour'], 'def': 'protective covering made of metal and used in combat', 'name': 'armor'}, {'frequency': 'c', 'id': 23, 'synset': 'artichoke.n.02', 'synonyms': ['artichoke'], 'def': 'a thistlelike flower head with edible fleshy leaves and heart', 'name': 'artichoke'}, {'frequency': 'f', 'id': 24, 'synset': 'ashcan.n.01', 'synonyms': ['trash_can', 'garbage_can', 'wastebin', 'dustbin', 'trash_barrel', 'trash_bin'], 'def': 'a bin that holds rubbish until it is collected', 'name': 'trash_can'}, {'frequency': 'c', 'id': 25, 'synset': 'ashtray.n.01', 'synonyms': ['ashtray'], 'def': "a receptacle for the ash from smokers' cigars or cigarettes", 'name': 'ashtray'}, {'frequency': 'c', 'id': 26, 'synset': 'asparagus.n.02', 'synonyms': ['asparagus'], 'def': 'edible young shoots of the asparagus plant', 'name': 'asparagus'}, {'frequency': 'c', 'id': 27, 'synset': 'atomizer.n.01', 'synonyms': ['atomizer', 'atomiser', 'spray', 'sprayer', 'nebulizer', 'nebuliser'], 'def': 'a dispenser that turns a liquid (such as perfume) into a fine mist', 'name': 'atomizer'}, {'frequency': 'c', 'id': 28, 'synset': 'avocado.n.01', 'synonyms': ['avocado'], 'def': 'a pear-shaped fruit with green or blackish skin and rich yellowish pulp enclosing a single large seed', 'name': 'avocado'}, {'frequency': 'c', 'id': 29, 'synset': 'award.n.02', 'synonyms': ['award', 'accolade'], 'def': 'a tangible symbol signifying approval or distinction', 'name': 'award'}, {'frequency': 'f', 'id': 30, 'synset': 'awning.n.01', 'synonyms': ['awning'], 'def': 'a canopy made of canvas to shelter people or things from rain or sun', 'name': 'awning'}, {'frequency': 'r', 'id': 31, 'synset': 'ax.n.01', 'synonyms': ['ax', 'axe'], 'def': 'an edge tool with a heavy bladed head mounted across a handle', 'name': 'ax'}, {'frequency': 'f', 'id': 32, 'synset': 'baby_buggy.n.01', 'synonyms': ['baby_buggy', 'baby_carriage', 'perambulator', 'pram', 'stroller'], 'def': 'a small vehicle with four wheels in which a baby or child is pushed around', 'name': 'baby_buggy'}, {'frequency': 'c', 'id': 33, 'synset': 'backboard.n.01', 'synonyms': ['basketball_backboard'], 'def': 'a raised vertical board with basket attached; used to play basketball', 'name': 'basketball_backboard'}, {'frequency': 'f', 'id': 34, 'synset': 'backpack.n.01', 'synonyms': ['backpack', 'knapsack', 'packsack', 'rucksack', 'haversack'], 'def': 'a bag carried by a strap on your back or shoulder', 'name': 'backpack'}, {'frequency': 'f', 'id': 35, 'synset': 'bag.n.04', 'synonyms': ['handbag', 'purse', 'pocketbook'], 'def': 'a container used for carrying money and small personal items or accessories', 'name': 'handbag'}, {'frequency': 'f', 'id': 36, 'synset': 'bag.n.06', 'synonyms': ['suitcase', 'baggage', 'luggage'], 'def': 'cases used to carry belongings when traveling', 'name': 'suitcase'}, {'frequency': 'c', 'id': 37, 'synset': 'bagel.n.01', 'synonyms': ['bagel', 'beigel'], 'def': 'glazed yeast-raised doughnut-shaped roll with hard crust', 'name': 'bagel'}, {'frequency': 'r', 'id': 38, 'synset': 'bagpipe.n.01', 'synonyms': ['bagpipe'], 'def': 'a tubular wind instrument; the player blows air into a bag and squeezes it out', 'name': 'bagpipe'}, {'frequency': 'r', 'id': 39, 'synset': 'baguet.n.01', 'synonyms': ['baguet', 'baguette'], 'def': 'narrow French stick loaf', 'name': 'baguet'}, {'frequency': 'r', 'id': 40, 'synset': 'bait.n.02', 'synonyms': ['bait', 'lure'], 'def': 'something used to lure fish or other animals into danger so they can be trapped or killed', 'name': 'bait'}, {'frequency': 'f', 'id': 41, 'synset': 'ball.n.06', 'synonyms': ['ball'], 'def': 'a spherical object used as a plaything', 'name': 'ball'}, {'frequency': 'r', 'id': 42, 'synset': 'ballet_skirt.n.01', 'synonyms': ['ballet_skirt', 'tutu'], 'def': 'very short skirt worn by ballerinas', 'name': 'ballet_skirt'}, {'frequency': 'f', 'id': 43, 'synset': 'balloon.n.01', 'synonyms': ['balloon'], 'def': 'large tough nonrigid bag filled with gas or heated air', 'name': 'balloon'}, {'frequency': 'c', 'id': 44, 'synset': 'bamboo.n.02', 'synonyms': ['bamboo'], 'def': 'woody tropical grass having hollow woody stems', 'name': 'bamboo'}, {'frequency': 'f', 'id': 45, 'synset': 'banana.n.02', 'synonyms': ['banana'], 'def': 'elongated crescent-shaped yellow fruit with soft sweet flesh', 'name': 'banana'}, {'frequency': 'r', 'id': 46, 'synset': 'band_aid.n.01', 'synonyms': ['Band_Aid'], 'def': 'trade name for an adhesive bandage to cover small cuts or blisters', 'name': 'Band_Aid'}, {'frequency': 'c', 'id': 47, 'synset': 'bandage.n.01', 'synonyms': ['bandage'], 'def': 'a piece of soft material that covers and protects an injured part of the body', 'name': 'bandage'}, {'frequency': 'c', 'id': 48, 'synset': 'bandanna.n.01', 'synonyms': ['bandanna', 'bandana'], 'def': 'large and brightly colored handkerchief; often used as a neckerchief', 'name': 'bandanna'}, {'frequency': 'r', 'id': 49, 'synset': 'banjo.n.01', 'synonyms': ['banjo'], 'def': 'a stringed instrument of the guitar family with a long neck and circular body', 'name': 'banjo'}, {'frequency': 'f', 'id': 50, 'synset': 'banner.n.01', 'synonyms': ['banner', 'streamer'], 'def': 'long strip of cloth or paper used for decoration or advertising', 'name': 'banner'}, {'frequency': 'r', 'id': 51, 'synset': 'barbell.n.01', 'synonyms': ['barbell'], 'def': 'a bar to which heavy discs are attached at each end; used in weightlifting', 'name': 'barbell'}, {'frequency': 'r', 'id': 52, 'synset': 'barge.n.01', 'synonyms': ['barge'], 'def': 'a flatbottom boat for carrying heavy loads (especially on canals)', 'name': 'barge'}, {'frequency': 'f', 'id': 53, 'synset': 'barrel.n.02', 'synonyms': ['barrel', 'cask'], 'def': 'a cylindrical container that holds liquids', 'name': 'barrel'}, {'frequency': 'c', 'id': 54, 'synset': 'barrette.n.01', 'synonyms': ['barrette'], 'def': "a pin for holding women's hair in place", 'name': 'barrette'}, {'frequency': 'c', 'id': 55, 'synset': 'barrow.n.03', 'synonyms': ['barrow', 'garden_cart', 'lawn_cart', 'wheelbarrow'], 'def': 'a cart for carrying small loads; has handles and one or more wheels', 'name': 'barrow'}, {'frequency': 'f', 'id': 56, 'synset': 'base.n.03', 'synonyms': ['baseball_base'], 'def': 'a place that the runner must touch before scoring', 'name': 'baseball_base'}, {'frequency': 'f', 'id': 57, 'synset': 'baseball.n.02', 'synonyms': ['baseball'], 'def': 'a ball used in playing baseball', 'name': 'baseball'}, {'frequency': 'f', 'id': 58, 'synset': 'baseball_bat.n.01', 'synonyms': ['baseball_bat'], 'def': 'an implement used in baseball by the batter', 'name': 'baseball_bat'}, {'frequency': 'f', 'id': 59, 'synset': 'baseball_cap.n.01', 'synonyms': ['baseball_cap', 'jockey_cap', 'golf_cap'], 'def': 'a cap with a bill', 'name': 'baseball_cap'}, {'frequency': 'f', 'id': 60, 'synset': 'baseball_glove.n.01', 'synonyms': ['baseball_glove', 'baseball_mitt'], 'def': 'the handwear used by fielders in playing baseball', 'name': 'baseball_glove'}, {'frequency': 'f', 'id': 61, 'synset': 'basket.n.01', 'synonyms': ['basket', 'handbasket'], 'def': 'a container that is usually woven and has handles', 'name': 'basket'}, {'frequency': 'c', 'id': 62, 'synset': 'basket.n.03', 'synonyms': ['basketball_hoop'], 'def': 'metal hoop supporting a net through which players try to throw the basketball', 'name': 'basketball_hoop'}, {'frequency': 'c', 'id': 63, 'synset': 'basketball.n.02', 'synonyms': ['basketball'], 'def': 'an inflated ball used in playing basketball', 'name': 'basketball'}, {'frequency': 'r', 'id': 64, 'synset': 'bass_horn.n.01', 'synonyms': ['bass_horn', 'sousaphone', 'tuba'], 'def': 'the lowest brass wind instrument', 'name': 'bass_horn'}, {'frequency': 'r', 'id': 65, 'synset': 'bat.n.01', 'synonyms': ['bat_(animal)'], 'def': 'nocturnal mouselike mammal with forelimbs modified to form membranous wings', 'name': 'bat_(animal)'}, {'frequency': 'f', 'id': 66, 'synset': 'bath_mat.n.01', 'synonyms': ['bath_mat'], 'def': 'a heavy towel or mat to stand on while drying yourself after a bath', 'name': 'bath_mat'}, {'frequency': 'f', 'id': 67, 'synset': 'bath_towel.n.01', 'synonyms': ['bath_towel'], 'def': 'a large towel; to dry yourself after a bath', 'name': 'bath_towel'}, {'frequency': 'c', 'id': 68, 'synset': 'bathrobe.n.01', 'synonyms': ['bathrobe'], 'def': 'a loose-fitting robe of towelling; worn after a bath or swim', 'name': 'bathrobe'}, {'frequency': 'f', 'id': 69, 'synset': 'bathtub.n.01', 'synonyms': ['bathtub', 'bathing_tub'], 'def': 'a large open container that you fill with water and use to wash the body', 'name': 'bathtub'}, {'frequency': 'r', 'id': 70, 'synset': 'batter.n.02', 'synonyms': ['batter_(food)'], 'def': 'a liquid or semiliquid mixture, as of flour, eggs, and milk, used in cooking', 'name': 'batter_(food)'}, {'frequency': 'c', 'id': 71, 'synset': 'battery.n.02', 'synonyms': ['battery'], 'def': 'a portable device that produces electricity', 'name': 'battery'}, {'frequency': 'r', 'id': 72, 'synset': 'beach_ball.n.01', 'synonyms': ['beachball'], 'def': 'large and light ball; for play at the seaside', 'name': 'beachball'}, {'frequency': 'c', 'id': 73, 'synset': 'bead.n.01', 'synonyms': ['bead'], 'def': 'a small ball with a hole through the middle used for ornamentation, jewellery, etc.', 'name': 'bead'}, {'frequency': 'r', 'id': 74, 'synset': 'beaker.n.01', 'synonyms': ['beaker'], 'def': 'a flatbottomed jar made of glass or plastic; used for chemistry', 'name': 'beaker'}, {'frequency': 'c', 'id': 75, 'synset': 'bean_curd.n.01', 'synonyms': ['bean_curd', 'tofu'], 'def': 'cheeselike food made of curdled soybean milk', 'name': 'bean_curd'}, {'frequency': 'c', 'id': 76, 'synset': 'beanbag.n.01', 'synonyms': ['beanbag'], 'def': 'a bag filled with dried beans or similar items; used in games or to sit on', 'name': 'beanbag'}, {'frequency': 'f', 'id': 77, 'synset': 'beanie.n.01', 'synonyms': ['beanie', 'beany'], 'def': 'a small skullcap; formerly worn by schoolboys and college freshmen', 'name': 'beanie'}, {'frequency': 'f', 'id': 78, 'synset': 'bear.n.01', 'synonyms': ['bear'], 'def': 'large carnivorous or omnivorous mammals with shaggy coats and claws', 'name': 'bear'}, {'frequency': 'f', 'id': 79, 'synset': 'bed.n.01', 'synonyms': ['bed'], 'def': 'a piece of furniture that provides a place to sleep', 'name': 'bed'}, {'frequency': 'c', 'id': 80, 'synset': 'bedspread.n.01', 'synonyms': ['bedspread', 'bedcover', 'bed_covering', 'counterpane', 'spread'], 'def': 'decorative cover for a bed', 'name': 'bedspread'}, {'frequency': 'f', 'id': 81, 'synset': 'beef.n.01', 'synonyms': ['cow'], 'def': 'cattle that are reared for their meat', 'name': 'cow'}, {'frequency': 'c', 'id': 82, 'synset': 'beef.n.02', 'synonyms': ['beef_(food)', 'boeuf_(food)'], 'def': 'meat from an adult domestic bovine', 'name': 'beef_(food)'}, {'frequency': 'r', 'id': 83, 'synset': 'beeper.n.01', 'synonyms': ['beeper', 'pager'], 'def': 'an device that beeps when the person carrying it is being paged', 'name': 'beeper'}, {'frequency': 'f', 'id': 84, 'synset': 'beer_bottle.n.01', 'synonyms': ['beer_bottle'], 'def': 'a bottle that holds beer', 'name': 'beer_bottle'}, {'frequency': 'c', 'id': 85, 'synset': 'beer_can.n.01', 'synonyms': ['beer_can'], 'def': 'a can that holds beer', 'name': 'beer_can'}, {'frequency': 'r', 'id': 86, 'synset': 'beetle.n.01', 'synonyms': ['beetle'], 'def': 'insect with hard wing covers', 'name': 'beetle'}, {'frequency': 'f', 'id': 87, 'synset': 'bell.n.01', 'synonyms': ['bell'], 'def': 'a hollow device made of metal that makes a ringing sound when struck', 'name': 'bell'}, {'frequency': 'f', 'id': 88, 'synset': 'bell_pepper.n.02', 'synonyms': ['bell_pepper', 'capsicum'], 'def': 'large bell-shaped sweet pepper in green or red or yellow or orange or black varieties', 'name': 'bell_pepper'}, {'frequency': 'f', 'id': 89, 'synset': 'belt.n.02', 'synonyms': ['belt'], 'def': 'a band to tie or buckle around the body (usually at the waist)', 'name': 'belt'}, {'frequency': 'f', 'id': 90, 'synset': 'belt_buckle.n.01', 'synonyms': ['belt_buckle'], 'def': 'the buckle used to fasten a belt', 'name': 'belt_buckle'}, {'frequency': 'f', 'id': 91, 'synset': 'bench.n.01', 'synonyms': ['bench'], 'def': 'a long seat for more than one person', 'name': 'bench'}, {'frequency': 'c', 'id': 92, 'synset': 'beret.n.01', 'synonyms': ['beret'], 'def': 'a cap with no brim or bill; made of soft cloth', 'name': 'beret'}, {'frequency': 'c', 'id': 93, 'synset': 'bib.n.02', 'synonyms': ['bib'], 'def': 'a napkin tied under the chin of a child while eating', 'name': 'bib'}, {'frequency': 'r', 'id': 94, 'synset': 'bible.n.01', 'synonyms': ['Bible'], 'def': 'the sacred writings of the Christian religions', 'name': 'Bible'}, {'frequency': 'f', 'id': 95, 'synset': 'bicycle.n.01', 'synonyms': ['bicycle', 'bike_(bicycle)'], 'def': 'a wheeled vehicle that has two wheels and is moved by foot pedals', 'name': 'bicycle'}, {'frequency': 'f', 'id': 96, 'synset': 'bill.n.09', 'synonyms': ['visor', 'vizor'], 'def': 'a brim that projects to the front to shade the eyes', 'name': 'visor'}, {'frequency': 'c', 'id': 97, 'synset': 'binder.n.03', 'synonyms': ['binder', 'ring-binder'], 'def': 'holds loose papers or magazines', 'name': 'binder'}, {'frequency': 'c', 'id': 98, 'synset': 'binoculars.n.01', 'synonyms': ['binoculars', 'field_glasses', 'opera_glasses'], 'def': 'an optical instrument designed for simultaneous use by both eyes', 'name': 'binoculars'}, {'frequency': 'f', 'id': 99, 'synset': 'bird.n.01', 'synonyms': ['bird'], 'def': 'animal characterized by feathers and wings', 'name': 'bird'}, {'frequency': 'r', 'id': 100, 'synset': 'bird_feeder.n.01', 'synonyms': ['birdfeeder'], 'def': 'an outdoor device that supplies food for wild birds', 'name': 'birdfeeder'}, {'frequency': 'r', 'id': 101, 'synset': 'birdbath.n.01', 'synonyms': ['birdbath'], 'def': 'an ornamental basin (usually in a garden) for birds to bathe in', 'name': 'birdbath'}, {'frequency': 'c', 'id': 102, 'synset': 'birdcage.n.01', 'synonyms': ['birdcage'], 'def': 'a cage in which a bird can be kept', 'name': 'birdcage'}, {'frequency': 'c', 'id': 103, 'synset': 'birdhouse.n.01', 'synonyms': ['birdhouse'], 'def': 'a shelter for birds', 'name': 'birdhouse'}, {'frequency': 'f', 'id': 104, 'synset': 'birthday_cake.n.01', 'synonyms': ['birthday_cake'], 'def': 'decorated cake served at a birthday party', 'name': 'birthday_cake'}, {'frequency': 'r', 'id': 105, 'synset': 'birthday_card.n.01', 'synonyms': ['birthday_card'], 'def': 'a card expressing a birthday greeting', 'name': 'birthday_card'}, {'frequency': 'r', 'id': 106, 'synset': 'biscuit.n.01', 'synonyms': ['biscuit_(bread)'], 'def': 'small round bread leavened with baking-powder or soda', 'name': 'biscuit_(bread)'}, {'frequency': 'r', 'id': 107, 'synset': 'black_flag.n.01', 'synonyms': ['pirate_flag'], 'def': 'a flag usually bearing a white skull and crossbones on a black background', 'name': 'pirate_flag'}, {'frequency': 'c', 'id': 108, 'synset': 'black_sheep.n.02', 'synonyms': ['black_sheep'], 'def': 'sheep with a black coat', 'name': 'black_sheep'}, {'frequency': 'c', 'id': 109, 'synset': 'blackboard.n.01', 'synonyms': ['blackboard', 'chalkboard'], 'def': 'sheet of slate; for writing with chalk', 'name': 'blackboard'}, {'frequency': 'f', 'id': 110, 'synset': 'blanket.n.01', 'synonyms': ['blanket'], 'def': 'bedding that keeps a person warm in bed', 'name': 'blanket'}, {'frequency': 'c', 'id': 111, 'synset': 'blazer.n.01', 'synonyms': ['blazer', 'sport_jacket', 'sport_coat', 'sports_jacket', 'sports_coat'], 'def': 'lightweight jacket; often striped in the colors of a club or school', 'name': 'blazer'}, {'frequency': 'f', 'id': 112, 'synset': 'blender.n.01', 'synonyms': ['blender', 'liquidizer', 'liquidiser'], 'def': 'an electrically powered mixer that mix or chop or liquefy foods', 'name': 'blender'}, {'frequency': 'r', 'id': 113, 'synset': 'blimp.n.02', 'synonyms': ['blimp'], 'def': 'a small nonrigid airship used for observation or as a barrage balloon', 'name': 'blimp'}, {'frequency': 'c', 'id': 114, 'synset': 'blinker.n.01', 'synonyms': ['blinker', 'flasher'], 'def': 'a light that flashes on and off; used as a signal or to send messages', 'name': 'blinker'}, {'frequency': 'c', 'id': 115, 'synset': 'blueberry.n.02', 'synonyms': ['blueberry'], 'def': 'sweet edible dark-blue berries of blueberry plants', 'name': 'blueberry'}, {'frequency': 'r', 'id': 116, 'synset': 'boar.n.02', 'synonyms': ['boar'], 'def': 'an uncastrated male hog', 'name': 'boar'}, {'frequency': 'r', 'id': 117, 'synset': 'board.n.09', 'synonyms': ['gameboard'], 'def': 'a flat portable surface (usually rectangular) designed for board games', 'name': 'gameboard'}, {'frequency': 'f', 'id': 118, 'synset': 'boat.n.01', 'synonyms': ['boat', 'ship_(boat)'], 'def': 'a vessel for travel on water', 'name': 'boat'}, {'frequency': 'c', 'id': 119, 'synset': 'bobbin.n.01', 'synonyms': ['bobbin', 'spool', 'reel'], 'def': 'a thing around which thread/tape/film or other flexible materials can be wound', 'name': 'bobbin'}, {'frequency': 'r', 'id': 120, 'synset': 'bobby_pin.n.01', 'synonyms': ['bobby_pin', 'hairgrip'], 'def': 'a flat wire hairpin used to hold bobbed hair in place', 'name': 'bobby_pin'}, {'frequency': 'c', 'id': 121, 'synset': 'boiled_egg.n.01', 'synonyms': ['boiled_egg', 'coddled_egg'], 'def': 'egg cooked briefly in the shell in gently boiling water', 'name': 'boiled_egg'}, {'frequency': 'r', 'id': 122, 'synset': 'bolo_tie.n.01', 'synonyms': ['bolo_tie', 'bolo', 'bola_tie', 'bola'], 'def': 'a cord fastened around the neck with an ornamental clasp and worn as a necktie', 'name': 'bolo_tie'}, {'frequency': 'c', 'id': 123, 'synset': 'bolt.n.03', 'synonyms': ['deadbolt'], 'def': 'the part of a lock that is engaged or withdrawn with a key', 'name': 'deadbolt'}, {'frequency': 'f', 'id': 124, 'synset': 'bolt.n.06', 'synonyms': ['bolt'], 'def': 'a screw that screws into a nut to form a fastener', 'name': 'bolt'}, {'frequency': 'r', 'id': 125, 'synset': 'bonnet.n.01', 'synonyms': ['bonnet'], 'def': 'a hat tied under the chin', 'name': 'bonnet'}, {'frequency': 'f', 'id': 126, 'synset': 'book.n.01', 'synonyms': ['book'], 'def': 'a written work or composition that has been published', 'name': 'book'}, {'frequency': 'r', 'id': 127, 'synset': 'book_bag.n.01', 'synonyms': ['book_bag'], 'def': 'a bag in which students carry their books', 'name': 'book_bag'}, {'frequency': 'c', 'id': 128, 'synset': 'bookcase.n.01', 'synonyms': ['bookcase'], 'def': 'a piece of furniture with shelves for storing books', 'name': 'bookcase'}, {'frequency': 'c', 'id': 129, 'synset': 'booklet.n.01', 'synonyms': ['booklet', 'brochure', 'leaflet', 'pamphlet'], 'def': 'a small book usually having a paper cover', 'name': 'booklet'}, {'frequency': 'r', 'id': 130, 'synset': 'bookmark.n.01', 'synonyms': ['bookmark', 'bookmarker'], 'def': 'a marker (a piece of paper or ribbon) placed between the pages of a book', 'name': 'bookmark'}, {'frequency': 'r', 'id': 131, 'synset': 'boom.n.04', 'synonyms': ['boom_microphone', 'microphone_boom'], 'def': 'a pole carrying an overhead microphone projected over a film or tv set', 'name': 'boom_microphone'}, {'frequency': 'f', 'id': 132, 'synset': 'boot.n.01', 'synonyms': ['boot'], 'def': 'footwear that covers the whole foot and lower leg', 'name': 'boot'}, {'frequency': 'f', 'id': 133, 'synset': 'bottle.n.01', 'synonyms': ['bottle'], 'def': 'a glass or plastic vessel used for storing drinks or other liquids', 'name': 'bottle'}, {'frequency': 'c', 'id': 134, 'synset': 'bottle_opener.n.01', 'synonyms': ['bottle_opener'], 'def': 'an opener for removing caps or corks from bottles', 'name': 'bottle_opener'}, {'frequency': 'c', 'id': 135, 'synset': 'bouquet.n.01', 'synonyms': ['bouquet'], 'def': 'an arrangement of flowers that is usually given as a present', 'name': 'bouquet'}, {'frequency': 'r', 'id': 136, 'synset': 'bow.n.04', 'synonyms': ['bow_(weapon)'], 'def': 'a weapon for shooting arrows', 'name': 'bow_(weapon)'}, {'frequency': 'f', 'id': 137, 'synset': 'bow.n.08', 'synonyms': ['bow_(decorative_ribbons)'], 'def': 'a decorative interlacing of ribbons', 'name': 'bow_(decorative_ribbons)'}, {'frequency': 'f', 'id': 138, 'synset': 'bow_tie.n.01', 'synonyms': ['bow-tie', 'bowtie'], 'def': "a man's tie that ties in a bow", 'name': 'bow-tie'}, {'frequency': 'f', 'id': 139, 'synset': 'bowl.n.03', 'synonyms': ['bowl'], 'def': 'a dish that is round and open at the top for serving foods', 'name': 'bowl'}, {'frequency': 'r', 'id': 140, 'synset': 'bowl.n.08', 'synonyms': ['pipe_bowl'], 'def': 'a small round container that is open at the top for holding tobacco', 'name': 'pipe_bowl'}, {'frequency': 'c', 'id': 141, 'synset': 'bowler_hat.n.01', 'synonyms': ['bowler_hat', 'bowler', 'derby_hat', 'derby', 'plug_hat'], 'def': 'a felt hat that is round and hard with a narrow brim', 'name': 'bowler_hat'}, {'frequency': 'r', 'id': 142, 'synset': 'bowling_ball.n.01', 'synonyms': ['bowling_ball'], 'def': 'a large ball with finger holes used in the sport of bowling', 'name': 'bowling_ball'}, {'frequency': 'r', 'id': 143, 'synset': 'bowling_pin.n.01', 'synonyms': ['bowling_pin'], 'def': 'a club-shaped wooden object used in bowling', 'name': 'bowling_pin'}, {'frequency': 'r', 'id': 144, 'synset': 'boxing_glove.n.01', 'synonyms': ['boxing_glove'], 'def': 'large glove coverings the fists of a fighter worn for the sport of boxing', 'name': 'boxing_glove'}, {'frequency': 'c', 'id': 145, 'synset': 'brace.n.06', 'synonyms': ['suspenders'], 'def': 'elastic straps that hold trousers up (usually used in the plural)', 'name': 'suspenders'}, {'frequency': 'f', 'id': 146, 'synset': 'bracelet.n.02', 'synonyms': ['bracelet', 'bangle'], 'def': 'jewelry worn around the wrist for decoration', 'name': 'bracelet'}, {'frequency': 'r', 'id': 147, 'synset': 'brass.n.07', 'synonyms': ['brass_plaque'], 'def': 'a memorial made of brass', 'name': 'brass_plaque'}, {'frequency': 'c', 'id': 148, 'synset': 'brassiere.n.01', 'synonyms': ['brassiere', 'bra', 'bandeau'], 'def': 'an undergarment worn by women to support their breasts', 'name': 'brassiere'}, {'frequency': 'c', 'id': 149, 'synset': 'bread-bin.n.01', 'synonyms': ['bread-bin', 'breadbox'], 'def': 'a container used to keep bread or cake in', 'name': 'bread-bin'}, {'frequency': 'r', 'id': 150, 'synset': 'breechcloth.n.01', 'synonyms': ['breechcloth', 'breechclout', 'loincloth'], 'def': 'a garment that provides covering for the loins', 'name': 'breechcloth'}, {'frequency': 'c', 'id': 151, 'synset': 'bridal_gown.n.01', 'synonyms': ['bridal_gown', 'wedding_gown', 'wedding_dress'], 'def': 'a gown worn by the bride at a wedding', 'name': 'bridal_gown'}, {'frequency': 'c', 'id': 152, 'synset': 'briefcase.n.01', 'synonyms': ['briefcase'], 'def': 'a case with a handle; for carrying papers or files or books', 'name': 'briefcase'}, {'frequency': 'c', 'id': 153, 'synset': 'bristle_brush.n.01', 'synonyms': ['bristle_brush'], 'def': 'a brush that is made with the short stiff hairs of an animal or plant', 'name': 'bristle_brush'}, {'frequency': 'f', 'id': 154, 'synset': 'broccoli.n.01', 'synonyms': ['broccoli'], 'def': 'plant with dense clusters of tight green flower buds', 'name': 'broccoli'}, {'frequency': 'r', 'id': 155, 'synset': 'brooch.n.01', 'synonyms': ['broach'], 'def': 'a decorative pin worn by women', 'name': 'broach'}, {'frequency': 'c', 'id': 156, 'synset': 'broom.n.01', 'synonyms': ['broom'], 'def': 'bundle of straws or twigs attached to a long handle; used for cleaning', 'name': 'broom'}, {'frequency': 'c', 'id': 157, 'synset': 'brownie.n.03', 'synonyms': ['brownie'], 'def': 'square or bar of very rich chocolate cake usually with nuts', 'name': 'brownie'}, {'frequency': 'c', 'id': 158, 'synset': 'brussels_sprouts.n.01', 'synonyms': ['brussels_sprouts'], 'def': 'the small edible cabbage-like buds growing along a stalk', 'name': 'brussels_sprouts'}, {'frequency': 'r', 'id': 159, 'synset': 'bubble_gum.n.01', 'synonyms': ['bubble_gum'], 'def': 'a kind of chewing gum that can be blown into bubbles', 'name': 'bubble_gum'}, {'frequency': 'f', 'id': 160, 'synset': 'bucket.n.01', 'synonyms': ['bucket', 'pail'], 'def': 'a roughly cylindrical vessel that is open at the top', 'name': 'bucket'}, {'frequency': 'r', 'id': 161, 'synset': 'buggy.n.01', 'synonyms': ['horse_buggy'], 'def': 'a small lightweight carriage; drawn by a single horse', 'name': 'horse_buggy'}, {'frequency': 'c', 'id': 162, 'synset': 'bull.n.11', 'synonyms': ['bull'], 'def': 'mature male cow', 'name': 'bull'}, {'frequency': 'r', 'id': 163, 'synset': 'bulldog.n.01', 'synonyms': ['bulldog'], 'def': 'a thickset short-haired dog with a large head and strong undershot lower jaw', 'name': 'bulldog'}, {'frequency': 'r', 'id': 164, 'synset': 'bulldozer.n.01', 'synonyms': ['bulldozer', 'dozer'], 'def': 'large powerful tractor; a large blade in front flattens areas of ground', 'name': 'bulldozer'}, {'frequency': 'c', 'id': 165, 'synset': 'bullet_train.n.01', 'synonyms': ['bullet_train'], 'def': 'a high-speed passenger train', 'name': 'bullet_train'}, {'frequency': 'c', 'id': 166, 'synset': 'bulletin_board.n.02', 'synonyms': ['bulletin_board', 'notice_board'], 'def': 'a board that hangs on a wall; displays announcements', 'name': 'bulletin_board'}, {'frequency': 'r', 'id': 167, 'synset': 'bulletproof_vest.n.01', 'synonyms': ['bulletproof_vest'], 'def': 'a vest capable of resisting the impact of a bullet', 'name': 'bulletproof_vest'}, {'frequency': 'c', 'id': 168, 'synset': 'bullhorn.n.01', 'synonyms': ['bullhorn', 'megaphone'], 'def': 'a portable loudspeaker with built-in microphone and amplifier', 'name': 'bullhorn'}, {'frequency': 'r', 'id': 169, 'synset': 'bully_beef.n.01', 'synonyms': ['corned_beef', 'corn_beef'], 'def': 'beef cured or pickled in brine', 'name': 'corned_beef'}, {'frequency': 'f', 'id': 170, 'synset': 'bun.n.01', 'synonyms': ['bun', 'roll'], 'def': 'small rounded bread either plain or sweet', 'name': 'bun'}, {'frequency': 'c', 'id': 171, 'synset': 'bunk_bed.n.01', 'synonyms': ['bunk_bed'], 'def': 'beds built one above the other', 'name': 'bunk_bed'}, {'frequency': 'f', 'id': 172, 'synset': 'buoy.n.01', 'synonyms': ['buoy'], 'def': 'a float attached by rope to the seabed to mark channels in a harbor or underwater hazards', 'name': 'buoy'}, {'frequency': 'r', 'id': 173, 'synset': 'burrito.n.01', 'synonyms': ['burrito'], 'def': 'a flour tortilla folded around a filling', 'name': 'burrito'}, {'frequency': 'f', 'id': 174, 'synset': 'bus.n.01', 'synonyms': ['bus_(vehicle)', 'autobus', 'charabanc', 'double-decker', 'motorbus', 'motorcoach'], 'def': 'a vehicle carrying many passengers; used for public transport', 'name': 'bus_(vehicle)'}, {'frequency': 'c', 'id': 175, 'synset': 'business_card.n.01', 'synonyms': ['business_card'], 'def': "a card on which are printed the person's name and business affiliation", 'name': 'business_card'}, {'frequency': 'c', 'id': 176, 'synset': 'butcher_knife.n.01', 'synonyms': ['butcher_knife'], 'def': 'a large sharp knife for cutting or trimming meat', 'name': 'butcher_knife'}, {'frequency': 'c', 'id': 177, 'synset': 'butter.n.01', 'synonyms': ['butter'], 'def': 'an edible emulsion of fat globules made by churning milk or cream; for cooking and table use', 'name': 'butter'}, {'frequency': 'c', 'id': 178, 'synset': 'butterfly.n.01', 'synonyms': ['butterfly'], 'def': 'insect typically having a slender body with knobbed antennae and broad colorful wings', 'name': 'butterfly'}, {'frequency': 'f', 'id': 179, 'synset': 'button.n.01', 'synonyms': ['button'], 'def': 'a round fastener sewn to shirts and coats etc to fit through buttonholes', 'name': 'button'}, {'frequency': 'f', 'id': 180, 'synset': 'cab.n.03', 'synonyms': ['cab_(taxi)', 'taxi', 'taxicab'], 'def': 'a car that takes passengers where they want to go in exchange for money', 'name': 'cab_(taxi)'}, {'frequency': 'r', 'id': 181, 'synset': 'cabana.n.01', 'synonyms': ['cabana'], 'def': 'a small tent used as a dressing room beside the sea or a swimming pool', 'name': 'cabana'}, {'frequency': 'r', 'id': 182, 'synset': 'cabin_car.n.01', 'synonyms': ['cabin_car', 'caboose'], 'def': 'a car on a freight train for use of the train crew; usually the last car on the train', 'name': 'cabin_car'}, {'frequency': 'f', 'id': 183, 'synset': 'cabinet.n.01', 'synonyms': ['cabinet'], 'def': 'a piece of furniture resembling a cupboard with doors and shelves and drawers', 'name': 'cabinet'}, {'frequency': 'r', 'id': 184, 'synset': 'cabinet.n.03', 'synonyms': ['locker', 'storage_locker'], 'def': 'a storage compartment for clothes and valuables; usually it has a lock', 'name': 'locker'}, {'frequency': 'f', 'id': 185, 'synset': 'cake.n.03', 'synonyms': ['cake'], 'def': 'baked goods made from or based on a mixture of flour, sugar, eggs, and fat', 'name': 'cake'}, {'frequency': 'c', 'id': 186, 'synset': 'calculator.n.02', 'synonyms': ['calculator'], 'def': 'a small machine that is used for mathematical calculations', 'name': 'calculator'}, {'frequency': 'f', 'id': 187, 'synset': 'calendar.n.02', 'synonyms': ['calendar'], 'def': 'a list or register of events (appointments/social events/court cases, etc)', 'name': 'calendar'}, {'frequency': 'c', 'id': 188, 'synset': 'calf.n.01', 'synonyms': ['calf'], 'def': 'young of domestic cattle', 'name': 'calf'}, {'frequency': 'c', 'id': 189, 'synset': 'camcorder.n.01', 'synonyms': ['camcorder'], 'def': 'a portable television camera and videocassette recorder', 'name': 'camcorder'}, {'frequency': 'c', 'id': 190, 'synset': 'camel.n.01', 'synonyms': ['camel'], 'def': 'cud-chewing mammal used as a draft or saddle animal in desert regions', 'name': 'camel'}, {'frequency': 'f', 'id': 191, 'synset': 'camera.n.01', 'synonyms': ['camera'], 'def': 'equipment for taking photographs', 'name': 'camera'}, {'frequency': 'c', 'id': 192, 'synset': 'camera_lens.n.01', 'synonyms': ['camera_lens'], 'def': 'a lens that focuses the image in a camera', 'name': 'camera_lens'}, {'frequency': 'c', 'id': 193, 'synset': 'camper.n.02', 'synonyms': ['camper_(vehicle)', 'camping_bus', 'motor_home'], 'def': 'a recreational vehicle equipped for camping out while traveling', 'name': 'camper_(vehicle)'}, {'frequency': 'f', 'id': 194, 'synset': 'can.n.01', 'synonyms': ['can', 'tin_can'], 'def': 'airtight sealed metal container for food or drink or paint etc.', 'name': 'can'}, {'frequency': 'c', 'id': 195, 'synset': 'can_opener.n.01', 'synonyms': ['can_opener', 'tin_opener'], 'def': 'a device for cutting cans open', 'name': 'can_opener'}, {'frequency': 'r', 'id': 196, 'synset': 'candelabrum.n.01', 'synonyms': ['candelabrum', 'candelabra'], 'def': 'branched candlestick; ornamental; has several lights', 'name': 'candelabrum'}, {'frequency': 'f', 'id': 197, 'synset': 'candle.n.01', 'synonyms': ['candle', 'candlestick'], 'def': 'stick of wax with a wick in the middle', 'name': 'candle'}, {'frequency': 'f', 'id': 198, 'synset': 'candlestick.n.01', 'synonyms': ['candle_holder'], 'def': 'a holder with sockets for candles', 'name': 'candle_holder'}, {'frequency': 'r', 'id': 199, 'synset': 'candy_bar.n.01', 'synonyms': ['candy_bar'], 'def': 'a candy shaped as a bar', 'name': 'candy_bar'}, {'frequency': 'c', 'id': 200, 'synset': 'candy_cane.n.01', 'synonyms': ['candy_cane'], 'def': 'a hard candy in the shape of a rod (usually with stripes)', 'name': 'candy_cane'}, {'frequency': 'c', 'id': 201, 'synset': 'cane.n.01', 'synonyms': ['walking_cane'], 'def': 'a stick that people can lean on to help them walk', 'name': 'walking_cane'}, {'frequency': 'c', 'id': 202, 'synset': 'canister.n.02', 'synonyms': ['canister', 'cannister'], 'def': 'metal container for storing dry foods such as tea or flour', 'name': 'canister'}, {'frequency': 'r', 'id': 203, 'synset': 'cannon.n.02', 'synonyms': ['cannon'], 'def': 'heavy gun fired from a tank', 'name': 'cannon'}, {'frequency': 'c', 'id': 204, 'synset': 'canoe.n.01', 'synonyms': ['canoe'], 'def': 'small and light boat; pointed at both ends; propelled with a paddle', 'name': 'canoe'}, {'frequency': 'r', 'id': 205, 'synset': 'cantaloup.n.02', 'synonyms': ['cantaloup', 'cantaloupe'], 'def': 'the fruit of a cantaloup vine; small to medium-sized melon with yellowish flesh', 'name': 'cantaloup'}, {'frequency': 'r', 'id': 206, 'synset': 'canteen.n.01', 'synonyms': ['canteen'], 'def': 'a flask for carrying water; used by soldiers or travelers', 'name': 'canteen'}, {'frequency': 'c', 'id': 207, 'synset': 'cap.n.01', 'synonyms': ['cap_(headwear)'], 'def': 'a tight-fitting headwear', 'name': 'cap_(headwear)'}, {'frequency': 'f', 'id': 208, 'synset': 'cap.n.02', 'synonyms': ['bottle_cap', 'cap_(container_lid)'], 'def': 'a top (as for a bottle)', 'name': 'bottle_cap'}, {'frequency': 'r', 'id': 209, 'synset': 'cape.n.02', 'synonyms': ['cape'], 'def': 'a sleeveless garment like a cloak but shorter', 'name': 'cape'}, {'frequency': 'c', 'id': 210, 'synset': 'cappuccino.n.01', 'synonyms': ['cappuccino', 'coffee_cappuccino'], 'def': 'equal parts of espresso and steamed milk', 'name': 'cappuccino'}, {'frequency': 'f', 'id': 211, 'synset': 'car.n.01', 'synonyms': ['car_(automobile)', 'auto_(automobile)', 'automobile'], 'def': 'a motor vehicle with four wheels', 'name': 'car_(automobile)'}, {'frequency': 'f', 'id': 212, 'synset': 'car.n.02', 'synonyms': ['railcar_(part_of_a_train)', 'railway_car_(part_of_a_train)', 'railroad_car_(part_of_a_train)'], 'def': 'a wheeled vehicle adapted to the rails of railroad', 'name': 'railcar_(part_of_a_train)'}, {'frequency': 'r', 'id': 213, 'synset': 'car.n.04', 'synonyms': ['elevator_car'], 'def': 'where passengers ride up and down', 'name': 'elevator_car'}, {'frequency': 'r', 'id': 214, 'synset': 'car_battery.n.01', 'synonyms': ['car_battery', 'automobile_battery'], 'def': 'a battery in a motor vehicle', 'name': 'car_battery'}, {'frequency': 'c', 'id': 215, 'synset': 'card.n.02', 'synonyms': ['identity_card'], 'def': 'a card certifying the identity of the bearer', 'name': 'identity_card'}, {'frequency': 'c', 'id': 216, 'synset': 'card.n.03', 'synonyms': ['card'], 'def': 'a rectangular piece of paper used to send messages (e.g. greetings or pictures)', 'name': 'card'}, {'frequency': 'r', 'id': 217, 'synset': 'cardigan.n.01', 'synonyms': ['cardigan'], 'def': 'knitted jacket that is fastened up the front with buttons or a zipper', 'name': 'cardigan'}, {'frequency': 'r', 'id': 218, 'synset': 'cargo_ship.n.01', 'synonyms': ['cargo_ship', 'cargo_vessel'], 'def': 'a ship designed to carry cargo', 'name': 'cargo_ship'}, {'frequency': 'r', 'id': 219, 'synset': 'carnation.n.01', 'synonyms': ['carnation'], 'def': 'plant with pink to purple-red spice-scented usually double flowers', 'name': 'carnation'}, {'frequency': 'c', 'id': 220, 'synset': 'carriage.n.02', 'synonyms': ['horse_carriage'], 'def': 'a vehicle with wheels drawn by one or more horses', 'name': 'horse_carriage'}, {'frequency': 'f', 'id': 221, 'synset': 'carrot.n.01', 'synonyms': ['carrot'], 'def': 'deep orange edible root of the cultivated carrot plant', 'name': 'carrot'}, {'frequency': 'c', 'id': 222, 'synset': 'carryall.n.01', 'synonyms': ['tote_bag'], 'def': 'a capacious bag or basket', 'name': 'tote_bag'}, {'frequency': 'c', 'id': 223, 'synset': 'cart.n.01', 'synonyms': ['cart'], 'def': 'a heavy open wagon usually having two wheels and drawn by an animal', 'name': 'cart'}, {'frequency': 'c', 'id': 224, 'synset': 'carton.n.02', 'synonyms': ['carton'], 'def': 'a box made of cardboard; opens by flaps on top', 'name': 'carton'}, {'frequency': 'c', 'id': 225, 'synset': 'cash_register.n.01', 'synonyms': ['cash_register', 'register_(for_cash_transactions)'], 'def': 'a cashbox with an adding machine to register transactions', 'name': 'cash_register'}, {'frequency': 'r', 'id': 226, 'synset': 'casserole.n.01', 'synonyms': ['casserole'], 'def': 'food cooked and served in a casserole', 'name': 'casserole'}, {'frequency': 'r', 'id': 227, 'synset': 'cassette.n.01', 'synonyms': ['cassette'], 'def': 'a container that holds a magnetic tape used for recording or playing sound or video', 'name': 'cassette'}, {'frequency': 'c', 'id': 228, 'synset': 'cast.n.05', 'synonyms': ['cast', 'plaster_cast', 'plaster_bandage'], 'def': 'bandage consisting of a firm covering that immobilizes broken bones while they heal', 'name': 'cast'}, {'frequency': 'f', 'id': 229, 'synset': 'cat.n.01', 'synonyms': ['cat'], 'def': 'a domestic house cat', 'name': 'cat'}, {'frequency': 'c', 'id': 230, 'synset': 'cauliflower.n.02', 'synonyms': ['cauliflower'], 'def': 'edible compact head of white undeveloped flowers', 'name': 'cauliflower'}, {'frequency': 'r', 'id': 231, 'synset': 'caviar.n.01', 'synonyms': ['caviar', 'caviare'], 'def': "salted roe of sturgeon or other large fish; usually served as an hors d'oeuvre", 'name': 'caviar'}, {'frequency': 'c', 'id': 232, 'synset': 'cayenne.n.02', 'synonyms': ['cayenne_(spice)', 'cayenne_pepper_(spice)', 'red_pepper_(spice)'], 'def': 'ground pods and seeds of pungent red peppers of the genus Capsicum', 'name': 'cayenne_(spice)'}, {'frequency': 'c', 'id': 233, 'synset': 'cd_player.n.01', 'synonyms': ['CD_player'], 'def': 'electronic equipment for playing compact discs (CDs)', 'name': 'CD_player'}, {'frequency': 'c', 'id': 234, 'synset': 'celery.n.01', 'synonyms': ['celery'], 'def': 'widely cultivated herb with aromatic leaf stalks that are eaten raw or cooked', 'name': 'celery'}, {'frequency': 'f', 'id': 235, 'synset': 'cellular_telephone.n.01', 'synonyms': ['cellular_telephone', 'cellular_phone', 'cellphone', 'mobile_phone', 'smart_phone'], 'def': 'a hand-held mobile telephone', 'name': 'cellular_telephone'}, {'frequency': 'r', 'id': 236, 'synset': 'chain_mail.n.01', 'synonyms': ['chain_mail', 'ring_mail', 'chain_armor', 'chain_armour', 'ring_armor', 'ring_armour'], 'def': '(Middle Ages) flexible armor made of interlinked metal rings', 'name': 'chain_mail'}, {'frequency': 'f', 'id': 237, 'synset': 'chair.n.01', 'synonyms': ['chair'], 'def': 'a seat for one person, with a support for the back', 'name': 'chair'}, {'frequency': 'r', 'id': 238, 'synset': 'chaise_longue.n.01', 'synonyms': ['chaise_longue', 'chaise', 'daybed'], 'def': 'a long chair; for reclining', 'name': 'chaise_longue'}, {'frequency': 'r', 'id': 239, 'synset': 'champagne.n.01', 'synonyms': ['champagne'], 'def': 'a white sparkling wine produced in Champagne or resembling that produced there', 'name': 'champagne'}, {'frequency': 'f', 'id': 240, 'synset': 'chandelier.n.01', 'synonyms': ['chandelier'], 'def': 'branched lighting fixture; often ornate; hangs from the ceiling', 'name': 'chandelier'}, {'frequency': 'r', 'id': 241, 'synset': 'chap.n.04', 'synonyms': ['chap'], 'def': 'leather leggings without a seat; worn over trousers by cowboys to protect their legs', 'name': 'chap'}, {'frequency': 'r', 'id': 242, 'synset': 'checkbook.n.01', 'synonyms': ['checkbook', 'chequebook'], 'def': 'a book issued to holders of checking accounts', 'name': 'checkbook'}, {'frequency': 'r', 'id': 243, 'synset': 'checkerboard.n.01', 'synonyms': ['checkerboard'], 'def': 'a board having 64 squares of two alternating colors', 'name': 'checkerboard'}, {'frequency': 'c', 'id': 244, 'synset': 'cherry.n.03', 'synonyms': ['cherry'], 'def': 'a red fruit with a single hard stone', 'name': 'cherry'}, {'frequency': 'r', 'id': 245, 'synset': 'chessboard.n.01', 'synonyms': ['chessboard'], 'def': 'a checkerboard used to play chess', 'name': 'chessboard'}, {'frequency': 'r', 'id': 246, 'synset': 'chest_of_drawers.n.01', 'synonyms': ['chest_of_drawers_(furniture)', 'bureau_(furniture)', 'chest_(furniture)'], 'def': 'furniture with drawers for keeping clothes', 'name': 'chest_of_drawers_(furniture)'}, {'frequency': 'c', 'id': 247, 'synset': 'chicken.n.02', 'synonyms': ['chicken_(animal)'], 'def': 'a domestic fowl bred for flesh or eggs', 'name': 'chicken_(animal)'}, {'frequency': 'c', 'id': 248, 'synset': 'chicken_wire.n.01', 'synonyms': ['chicken_wire'], 'def': 'a galvanized wire network with a hexagonal mesh; used to build fences', 'name': 'chicken_wire'}, {'frequency': 'r', 'id': 249, 'synset': 'chickpea.n.01', 'synonyms': ['chickpea', 'garbanzo'], 'def': 'the seed of the chickpea plant; usually dried', 'name': 'chickpea'}, {'frequency': 'r', 'id': 250, 'synset': 'chihuahua.n.03', 'synonyms': ['Chihuahua'], 'def': 'an old breed of tiny short-haired dog with protruding eyes from Mexico', 'name': 'Chihuahua'}, {'frequency': 'r', 'id': 251, 'synset': 'chili.n.02', 'synonyms': ['chili_(vegetable)', 'chili_pepper_(vegetable)', 'chilli_(vegetable)', 'chilly_(vegetable)', 'chile_(vegetable)'], 'def': 'very hot and finely tapering pepper of special pungency', 'name': 'chili_(vegetable)'}, {'frequency': 'r', 'id': 252, 'synset': 'chime.n.01', 'synonyms': ['chime', 'gong'], 'def': 'an instrument consisting of a set of bells that are struck with a hammer', 'name': 'chime'}, {'frequency': 'r', 'id': 253, 'synset': 'chinaware.n.01', 'synonyms': ['chinaware'], 'def': 'dishware made of high quality porcelain', 'name': 'chinaware'}, {'frequency': 'c', 'id': 254, 'synset': 'chip.n.04', 'synonyms': ['crisp_(potato_chip)', 'potato_chip'], 'def': 'a thin crisp slice of potato fried in deep fat', 'name': 'crisp_(potato_chip)'}, {'frequency': 'r', 'id': 255, 'synset': 'chip.n.06', 'synonyms': ['poker_chip'], 'def': 'a small disk-shaped counter used to represent money when gambling', 'name': 'poker_chip'}, {'frequency': 'c', 'id': 256, 'synset': 'chocolate_bar.n.01', 'synonyms': ['chocolate_bar'], 'def': 'a bar of chocolate candy', 'name': 'chocolate_bar'}, {'frequency': 'c', 'id': 257, 'synset': 'chocolate_cake.n.01', 'synonyms': ['chocolate_cake'], 'def': 'cake containing chocolate', 'name': 'chocolate_cake'}, {'frequency': 'r', 'id': 258, 'synset': 'chocolate_milk.n.01', 'synonyms': ['chocolate_milk'], 'def': 'milk flavored with chocolate syrup', 'name': 'chocolate_milk'}, {'frequency': 'r', 'id': 259, 'synset': 'chocolate_mousse.n.01', 'synonyms': ['chocolate_mousse'], 'def': 'dessert mousse made with chocolate', 'name': 'chocolate_mousse'}, {'frequency': 'f', 'id': 260, 'synset': 'choker.n.03', 'synonyms': ['choker', 'collar', 'neckband'], 'def': 'necklace that fits tightly around the neck', 'name': 'choker'}, {'frequency': 'f', 'id': 261, 'synset': 'chopping_board.n.01', 'synonyms': ['chopping_board', 'cutting_board', 'chopping_block'], 'def': 'a wooden board where meats or vegetables can be cut', 'name': 'chopping_board'}, {'frequency': 'c', 'id': 262, 'synset': 'chopstick.n.01', 'synonyms': ['chopstick'], 'def': 'one of a pair of slender sticks used as oriental tableware to eat food with', 'name': 'chopstick'}, {'frequency': 'f', 'id': 263, 'synset': 'christmas_tree.n.05', 'synonyms': ['Christmas_tree'], 'def': 'an ornamented evergreen used as a Christmas decoration', 'name': 'Christmas_tree'}, {'frequency': 'c', 'id': 264, 'synset': 'chute.n.02', 'synonyms': ['slide'], 'def': 'sloping channel through which things can descend', 'name': 'slide'}, {'frequency': 'r', 'id': 265, 'synset': 'cider.n.01', 'synonyms': ['cider', 'cyder'], 'def': 'a beverage made from juice pressed from apples', 'name': 'cider'}, {'frequency': 'r', 'id': 266, 'synset': 'cigar_box.n.01', 'synonyms': ['cigar_box'], 'def': 'a box for holding cigars', 'name': 'cigar_box'}, {'frequency': 'c', 'id': 267, 'synset': 'cigarette.n.01', 'synonyms': ['cigarette'], 'def': 'finely ground tobacco wrapped in paper; for smoking', 'name': 'cigarette'}, {'frequency': 'c', 'id': 268, 'synset': 'cigarette_case.n.01', 'synonyms': ['cigarette_case', 'cigarette_pack'], 'def': 'a small flat case for holding cigarettes', 'name': 'cigarette_case'}, {'frequency': 'f', 'id': 269, 'synset': 'cistern.n.02', 'synonyms': ['cistern', 'water_tank'], 'def': 'a tank that holds the water used to flush a toilet', 'name': 'cistern'}, {'frequency': 'r', 'id': 270, 'synset': 'clarinet.n.01', 'synonyms': ['clarinet'], 'def': 'a single-reed instrument with a straight tube', 'name': 'clarinet'}, {'frequency': 'r', 'id': 271, 'synset': 'clasp.n.01', 'synonyms': ['clasp'], 'def': 'a fastener (as a buckle or hook) that is used to hold two things together', 'name': 'clasp'}, {'frequency': 'c', 'id': 272, 'synset': 'cleansing_agent.n.01', 'synonyms': ['cleansing_agent', 'cleanser', 'cleaner'], 'def': 'a preparation used in cleaning something', 'name': 'cleansing_agent'}, {'frequency': 'r', 'id': 273, 'synset': 'clementine.n.01', 'synonyms': ['clementine'], 'def': 'a variety of mandarin orange', 'name': 'clementine'}, {'frequency': 'c', 'id': 274, 'synset': 'clip.n.03', 'synonyms': ['clip'], 'def': 'any of various small fasteners used to hold loose articles together', 'name': 'clip'}, {'frequency': 'c', 'id': 275, 'synset': 'clipboard.n.01', 'synonyms': ['clipboard'], 'def': 'a small writing board with a clip at the top for holding papers', 'name': 'clipboard'}, {'frequency': 'f', 'id': 276, 'synset': 'clock.n.01', 'synonyms': ['clock', 'timepiece', 'timekeeper'], 'def': 'a timepiece that shows the time of day', 'name': 'clock'}, {'frequency': 'f', 'id': 277, 'synset': 'clock_tower.n.01', 'synonyms': ['clock_tower'], 'def': 'a tower with a large clock visible high up on an outside face', 'name': 'clock_tower'}, {'frequency': 'c', 'id': 278, 'synset': 'clothes_hamper.n.01', 'synonyms': ['clothes_hamper', 'laundry_basket', 'clothes_basket'], 'def': 'a hamper that holds dirty clothes to be washed or wet clothes to be dried', 'name': 'clothes_hamper'}, {'frequency': 'c', 'id': 279, 'synset': 'clothespin.n.01', 'synonyms': ['clothespin', 'clothes_peg'], 'def': 'wood or plastic fastener; for holding clothes on a clothesline', 'name': 'clothespin'}, {'frequency': 'r', 'id': 280, 'synset': 'clutch_bag.n.01', 'synonyms': ['clutch_bag'], 'def': "a woman's strapless purse that is carried in the hand", 'name': 'clutch_bag'}, {'frequency': 'f', 'id': 281, 'synset': 'coaster.n.03', 'synonyms': ['coaster'], 'def': 'a covering (plate or mat) that protects the surface of a table', 'name': 'coaster'}, {'frequency': 'f', 'id': 282, 'synset': 'coat.n.01', 'synonyms': ['coat'], 'def': 'an outer garment that has sleeves and covers the body from shoulder down', 'name': 'coat'}, {'frequency': 'c', 'id': 283, 'synset': 'coat_hanger.n.01', 'synonyms': ['coat_hanger', 'clothes_hanger', 'dress_hanger'], 'def': "a hanger that is shaped like a person's shoulders", 'name': 'coat_hanger'}, {'frequency': 'r', 'id': 284, 'synset': 'coatrack.n.01', 'synonyms': ['coatrack', 'hatrack'], 'def': 'a rack with hooks for temporarily holding coats and hats', 'name': 'coatrack'}, {'frequency': 'c', 'id': 285, 'synset': 'cock.n.04', 'synonyms': ['cock', 'rooster'], 'def': 'adult male chicken', 'name': 'cock'}, {'frequency': 'c', 'id': 286, 'synset': 'coconut.n.02', 'synonyms': ['coconut', 'cocoanut'], 'def': 'large hard-shelled brown oval nut with a fibrous husk', 'name': 'coconut'}, {'frequency': 'r', 'id': 287, 'synset': 'coffee_filter.n.01', 'synonyms': ['coffee_filter'], 'def': 'filter (usually of paper) that passes the coffee and retains the coffee grounds', 'name': 'coffee_filter'}, {'frequency': 'f', 'id': 288, 'synset': 'coffee_maker.n.01', 'synonyms': ['coffee_maker', 'coffee_machine'], 'def': 'a kitchen appliance for brewing coffee automatically', 'name': 'coffee_maker'}, {'frequency': 'f', 'id': 289, 'synset': 'coffee_table.n.01', 'synonyms': ['coffee_table', 'cocktail_table'], 'def': 'low table where magazines can be placed and coffee or cocktails are served', 'name': 'coffee_table'}, {'frequency': 'c', 'id': 290, 'synset': 'coffeepot.n.01', 'synonyms': ['coffeepot'], 'def': 'tall pot in which coffee is brewed', 'name': 'coffeepot'}, {'frequency': 'r', 'id': 291, 'synset': 'coil.n.05', 'synonyms': ['coil'], 'def': 'tubing that is wound in a spiral', 'name': 'coil'}, {'frequency': 'c', 'id': 292, 'synset': 'coin.n.01', 'synonyms': ['coin'], 'def': 'a flat metal piece (usually a disc) used as money', 'name': 'coin'}, {'frequency': 'r', 'id': 293, 'synset': 'colander.n.01', 'synonyms': ['colander', 'cullender'], 'def': 'bowl-shaped strainer; used to wash or drain foods', 'name': 'colander'}, {'frequency': 'c', 'id': 294, 'synset': 'coleslaw.n.01', 'synonyms': ['coleslaw', 'slaw'], 'def': 'basically shredded cabbage', 'name': 'coleslaw'}, {'frequency': 'r', 'id': 295, 'synset': 'coloring_material.n.01', 'synonyms': ['coloring_material', 'colouring_material'], 'def': 'any material used for its color', 'name': 'coloring_material'}, {'frequency': 'r', 'id': 296, 'synset': 'combination_lock.n.01', 'synonyms': ['combination_lock'], 'def': 'lock that can be opened only by turning dials in a special sequence', 'name': 'combination_lock'}, {'frequency': 'c', 'id': 297, 'synset': 'comforter.n.04', 'synonyms': ['pacifier', 'teething_ring'], 'def': 'device used for an infant to suck or bite on', 'name': 'pacifier'}, {'frequency': 'r', 'id': 298, 'synset': 'comic_book.n.01', 'synonyms': ['comic_book'], 'def': 'a magazine devoted to comic strips', 'name': 'comic_book'}, {'frequency': 'f', 'id': 299, 'synset': 'computer_keyboard.n.01', 'synonyms': ['computer_keyboard', 'keyboard_(computer)'], 'def': 'a keyboard that is a data input device for computers', 'name': 'computer_keyboard'}, {'frequency': 'r', 'id': 300, 'synset': 'concrete_mixer.n.01', 'synonyms': ['concrete_mixer', 'cement_mixer'], 'def': 'a machine with a large revolving drum in which cement/concrete is mixed', 'name': 'concrete_mixer'}, {'frequency': 'f', 'id': 301, 'synset': 'cone.n.01', 'synonyms': ['cone', 'traffic_cone'], 'def': 'a cone-shaped object used to direct traffic', 'name': 'cone'}, {'frequency': 'f', 'id': 302, 'synset': 'control.n.09', 'synonyms': ['control', 'controller'], 'def': 'a mechanism that controls the operation of a machine', 'name': 'control'}, {'frequency': 'r', 'id': 303, 'synset': 'convertible.n.01', 'synonyms': ['convertible_(automobile)'], 'def': 'a car that has top that can be folded or removed', 'name': 'convertible_(automobile)'}, {'frequency': 'r', 'id': 304, 'synset': 'convertible.n.03', 'synonyms': ['sofa_bed'], 'def': 'a sofa that can be converted into a bed', 'name': 'sofa_bed'}, {'frequency': 'c', 'id': 305, 'synset': 'cookie.n.01', 'synonyms': ['cookie', 'cooky', 'biscuit_(cookie)'], 'def': "any of various small flat sweet cakes (`biscuit' is the British term)", 'name': 'cookie'}, {'frequency': 'r', 'id': 306, 'synset': 'cookie_jar.n.01', 'synonyms': ['cookie_jar', 'cooky_jar'], 'def': 'a jar in which cookies are kept (and sometimes money is hidden)', 'name': 'cookie_jar'}, {'frequency': 'r', 'id': 307, 'synset': 'cooking_utensil.n.01', 'synonyms': ['cooking_utensil'], 'def': 'a kitchen utensil made of material that does not melt easily; used for cooking', 'name': 'cooking_utensil'}, {'frequency': 'f', 'id': 308, 'synset': 'cooler.n.01', 'synonyms': ['cooler_(for_food)', 'ice_chest'], 'def': 'an insulated box for storing food often with ice', 'name': 'cooler_(for_food)'}, {'frequency': 'c', 'id': 309, 'synset': 'cork.n.04', 'synonyms': ['cork_(bottle_plug)', 'bottle_cork'], 'def': 'the plug in the mouth of a bottle (especially a wine bottle)', 'name': 'cork_(bottle_plug)'}, {'frequency': 'r', 'id': 310, 'synset': 'corkboard.n.01', 'synonyms': ['corkboard'], 'def': 'a sheet consisting of cork granules', 'name': 'corkboard'}, {'frequency': 'r', 'id': 311, 'synset': 'corkscrew.n.01', 'synonyms': ['corkscrew', 'bottle_screw'], 'def': 'a bottle opener that pulls corks', 'name': 'corkscrew'}, {'frequency': 'c', 'id': 312, 'synset': 'corn.n.03', 'synonyms': ['edible_corn', 'corn', 'maize'], 'def': 'ears of corn that can be prepared and served for human food', 'name': 'edible_corn'}, {'frequency': 'r', 'id': 313, 'synset': 'cornbread.n.01', 'synonyms': ['cornbread'], 'def': 'bread made primarily of cornmeal', 'name': 'cornbread'}, {'frequency': 'c', 'id': 314, 'synset': 'cornet.n.01', 'synonyms': ['cornet', 'horn', 'trumpet'], 'def': 'a brass musical instrument with a narrow tube and a flared bell and many valves', 'name': 'cornet'}, {'frequency': 'c', 'id': 315, 'synset': 'cornice.n.01', 'synonyms': ['cornice', 'valance', 'valance_board', 'pelmet'], 'def': 'a decorative framework to conceal curtain fixtures at the top of a window casing', 'name': 'cornice'}, {'frequency': 'r', 'id': 316, 'synset': 'cornmeal.n.01', 'synonyms': ['cornmeal'], 'def': 'coarsely ground corn', 'name': 'cornmeal'}, {'frequency': 'r', 'id': 317, 'synset': 'corset.n.01', 'synonyms': ['corset', 'girdle'], 'def': "a woman's close-fitting foundation garment", 'name': 'corset'}, {'frequency': 'r', 'id': 318, 'synset': 'cos.n.02', 'synonyms': ['romaine_lettuce'], 'def': 'lettuce with long dark-green leaves in a loosely packed elongated head', 'name': 'romaine_lettuce'}, {'frequency': 'c', 'id': 319, 'synset': 'costume.n.04', 'synonyms': ['costume'], 'def': 'the attire characteristic of a country or a time or a social class', 'name': 'costume'}, {'frequency': 'r', 'id': 320, 'synset': 'cougar.n.01', 'synonyms': ['cougar', 'puma', 'catamount', 'mountain_lion', 'panther'], 'def': 'large American feline resembling a lion', 'name': 'cougar'}, {'frequency': 'r', 'id': 321, 'synset': 'coverall.n.01', 'synonyms': ['coverall'], 'def': 'a loose-fitting protective garment that is worn over other clothing', 'name': 'coverall'}, {'frequency': 'r', 'id': 322, 'synset': 'cowbell.n.01', 'synonyms': ['cowbell'], 'def': 'a bell hung around the neck of cow so that the cow can be easily located', 'name': 'cowbell'}, {'frequency': 'f', 'id': 323, 'synset': 'cowboy_hat.n.01', 'synonyms': ['cowboy_hat', 'ten-gallon_hat'], 'def': 'a hat with a wide brim and a soft crown; worn by American ranch hands', 'name': 'cowboy_hat'}, {'frequency': 'r', 'id': 324, 'synset': 'crab.n.01', 'synonyms': ['crab_(animal)'], 'def': 'decapod having eyes on short stalks and a broad flattened shell and pincers', 'name': 'crab_(animal)'}, {'frequency': 'c', 'id': 325, 'synset': 'cracker.n.01', 'synonyms': ['cracker'], 'def': 'a thin crisp wafer', 'name': 'cracker'}, {'frequency': 'r', 'id': 326, 'synset': 'crape.n.01', 'synonyms': ['crape', 'crepe', 'French_pancake'], 'def': 'small very thin pancake', 'name': 'crape'}, {'frequency': 'f', 'id': 327, 'synset': 'crate.n.01', 'synonyms': ['crate'], 'def': 'a rugged box (usually made of wood); used for shipping', 'name': 'crate'}, {'frequency': 'r', 'id': 328, 'synset': 'crayon.n.01', 'synonyms': ['crayon', 'wax_crayon'], 'def': 'writing or drawing implement made of a colored stick of composition wax', 'name': 'crayon'}, {'frequency': 'r', 'id': 329, 'synset': 'cream_pitcher.n.01', 'synonyms': ['cream_pitcher'], 'def': 'a small pitcher for serving cream', 'name': 'cream_pitcher'}, {'frequency': 'r', 'id': 330, 'synset': 'credit_card.n.01', 'synonyms': ['credit_card', 'charge_card', 'debit_card'], 'def': 'a card, usually plastic, used to pay for goods and services', 'name': 'credit_card'}, {'frequency': 'c', 'id': 331, 'synset': 'crescent_roll.n.01', 'synonyms': ['crescent_roll', 'croissant'], 'def': 'very rich flaky crescent-shaped roll', 'name': 'crescent_roll'}, {'frequency': 'c', 'id': 332, 'synset': 'crib.n.01', 'synonyms': ['crib', 'cot'], 'def': 'baby bed with high sides made of slats', 'name': 'crib'}, {'frequency': 'c', 'id': 333, 'synset': 'crock.n.03', 'synonyms': ['crock_pot', 'earthenware_jar'], 'def': 'an earthen jar (made of baked clay)', 'name': 'crock_pot'}, {'frequency': 'f', 'id': 334, 'synset': 'crossbar.n.01', 'synonyms': ['crossbar'], 'def': 'a horizontal bar that goes across something', 'name': 'crossbar'}, {'frequency': 'r', 'id': 335, 'synset': 'crouton.n.01', 'synonyms': ['crouton'], 'def': 'a small piece of toasted or fried bread; served in soup or salads', 'name': 'crouton'}, {'frequency': 'r', 'id': 336, 'synset': 'crow.n.01', 'synonyms': ['crow'], 'def': 'black birds having a raucous call', 'name': 'crow'}, {'frequency': 'c', 'id': 337, 'synset': 'crown.n.04', 'synonyms': ['crown'], 'def': 'an ornamental jeweled headdress signifying sovereignty', 'name': 'crown'}, {'frequency': 'c', 'id': 338, 'synset': 'crucifix.n.01', 'synonyms': ['crucifix'], 'def': 'representation of the cross on which Jesus died', 'name': 'crucifix'}, {'frequency': 'c', 'id': 339, 'synset': 'cruise_ship.n.01', 'synonyms': ['cruise_ship', 'cruise_liner'], 'def': 'a passenger ship used commercially for pleasure cruises', 'name': 'cruise_ship'}, {'frequency': 'c', 'id': 340, 'synset': 'cruiser.n.01', 'synonyms': ['police_cruiser', 'patrol_car', 'police_car', 'squad_car'], 'def': 'a car in which policemen cruise the streets', 'name': 'police_cruiser'}, {'frequency': 'c', 'id': 341, 'synset': 'crumb.n.03', 'synonyms': ['crumb'], 'def': 'small piece of e.g. bread or cake', 'name': 'crumb'}, {'frequency': 'r', 'id': 342, 'synset': 'crutch.n.01', 'synonyms': ['crutch'], 'def': 'a wooden or metal staff that fits under the armpit and reaches to the ground', 'name': 'crutch'}, {'frequency': 'c', 'id': 343, 'synset': 'cub.n.03', 'synonyms': ['cub_(animal)'], 'def': 'the young of certain carnivorous mammals such as the bear or wolf or lion', 'name': 'cub_(animal)'}, {'frequency': 'r', 'id': 344, 'synset': 'cube.n.05', 'synonyms': ['cube', 'square_block'], 'def': 'a block in the (approximate) shape of a cube', 'name': 'cube'}, {'frequency': 'f', 'id': 345, 'synset': 'cucumber.n.02', 'synonyms': ['cucumber', 'cuke'], 'def': 'cylindrical green fruit with thin green rind and white flesh eaten as a vegetable', 'name': 'cucumber'}, {'frequency': 'c', 'id': 346, 'synset': 'cufflink.n.01', 'synonyms': ['cufflink'], 'def': 'jewelry consisting of linked buttons used to fasten the cuffs of a shirt', 'name': 'cufflink'}, {'frequency': 'f', 'id': 347, 'synset': 'cup.n.01', 'synonyms': ['cup'], 'def': 'a small open container usually used for drinking; usually has a handle', 'name': 'cup'}, {'frequency': 'c', 'id': 348, 'synset': 'cup.n.08', 'synonyms': ['trophy_cup'], 'def': 'a metal vessel with handles that is awarded as a trophy to a competition winner', 'name': 'trophy_cup'}, {'frequency': 'c', 'id': 349, 'synset': 'cupcake.n.01', 'synonyms': ['cupcake'], 'def': 'small cake baked in a muffin tin', 'name': 'cupcake'}, {'frequency': 'r', 'id': 350, 'synset': 'curler.n.01', 'synonyms': ['hair_curler', 'hair_roller', 'hair_crimper'], 'def': 'a cylindrical tube around which the hair is wound to curl it', 'name': 'hair_curler'}, {'frequency': 'r', 'id': 351, 'synset': 'curling_iron.n.01', 'synonyms': ['curling_iron'], 'def': 'a cylindrical home appliance that heats hair that has been curled around it', 'name': 'curling_iron'}, {'frequency': 'f', 'id': 352, 'synset': 'curtain.n.01', 'synonyms': ['curtain', 'drapery'], 'def': 'hanging cloth used as a blind (especially for a window)', 'name': 'curtain'}, {'frequency': 'f', 'id': 353, 'synset': 'cushion.n.03', 'synonyms': ['cushion'], 'def': 'a soft bag filled with air or padding such as feathers or foam rubber', 'name': 'cushion'}, {'frequency': 'r', 'id': 354, 'synset': 'custard.n.01', 'synonyms': ['custard'], 'def': 'sweetened mixture of milk and eggs baked or boiled or frozen', 'name': 'custard'}, {'frequency': 'c', 'id': 355, 'synset': 'cutter.n.06', 'synonyms': ['cutting_tool'], 'def': 'a cutting implement; a tool for cutting', 'name': 'cutting_tool'}, {'frequency': 'r', 'id': 356, 'synset': 'cylinder.n.04', 'synonyms': ['cylinder'], 'def': 'a cylindrical container', 'name': 'cylinder'}, {'frequency': 'r', 'id': 357, 'synset': 'cymbal.n.01', 'synonyms': ['cymbal'], 'def': 'a percussion instrument consisting of a concave brass disk', 'name': 'cymbal'}, {'frequency': 'r', 'id': 358, 'synset': 'dachshund.n.01', 'synonyms': ['dachshund', 'dachsie', 'badger_dog'], 'def': 'small long-bodied short-legged breed of dog having a short sleek coat and long drooping ears', 'name': 'dachshund'}, {'frequency': 'r', 'id': 359, 'synset': 'dagger.n.01', 'synonyms': ['dagger'], 'def': 'a short knife with a pointed blade used for piercing or stabbing', 'name': 'dagger'}, {'frequency': 'r', 'id': 360, 'synset': 'dartboard.n.01', 'synonyms': ['dartboard'], 'def': 'a circular board of wood or cork used as the target in the game of darts', 'name': 'dartboard'}, {'frequency': 'r', 'id': 361, 'synset': 'date.n.08', 'synonyms': ['date_(fruit)'], 'def': 'sweet edible fruit of the date palm with a single long woody seed', 'name': 'date_(fruit)'}, {'frequency': 'f', 'id': 362, 'synset': 'deck_chair.n.01', 'synonyms': ['deck_chair', 'beach_chair'], 'def': 'a folding chair for use outdoors; a wooden frame supports a length of canvas', 'name': 'deck_chair'}, {'frequency': 'c', 'id': 363, 'synset': 'deer.n.01', 'synonyms': ['deer', 'cervid'], 'def': "distinguished from Bovidae by the male's having solid deciduous antlers", 'name': 'deer'}, {'frequency': 'c', 'id': 364, 'synset': 'dental_floss.n.01', 'synonyms': ['dental_floss', 'floss'], 'def': 'a soft thread for cleaning the spaces between the teeth', 'name': 'dental_floss'}, {'frequency': 'f', 'id': 365, 'synset': 'desk.n.01', 'synonyms': ['desk'], 'def': 'a piece of furniture with a writing surface and usually drawers or other compartments', 'name': 'desk'}, {'frequency': 'r', 'id': 366, 'synset': 'detergent.n.01', 'synonyms': ['detergent'], 'def': 'a surface-active chemical widely used in industry and laundering', 'name': 'detergent'}, {'frequency': 'c', 'id': 367, 'synset': 'diaper.n.01', 'synonyms': ['diaper'], 'def': 'garment consisting of a folded cloth drawn up between the legs and fastened at the waist', 'name': 'diaper'}, {'frequency': 'r', 'id': 368, 'synset': 'diary.n.01', 'synonyms': ['diary', 'journal'], 'def': 'a daily written record of (usually personal) experiences and observations', 'name': 'diary'}, {'frequency': 'r', 'id': 369, 'synset': 'die.n.01', 'synonyms': ['die', 'dice'], 'def': 'a small cube with 1 to 6 spots on the six faces; used in gambling', 'name': 'die'}, {'frequency': 'r', 'id': 370, 'synset': 'dinghy.n.01', 'synonyms': ['dinghy', 'dory', 'rowboat'], 'def': 'a small boat of shallow draft with seats and oars with which it is propelled', 'name': 'dinghy'}, {'frequency': 'f', 'id': 371, 'synset': 'dining_table.n.01', 'synonyms': ['dining_table'], 'def': 'a table at which meals are served', 'name': 'dining_table'}, {'frequency': 'r', 'id': 372, 'synset': 'dinner_jacket.n.01', 'synonyms': ['tux', 'tuxedo'], 'def': 'semiformal evening dress for men', 'name': 'tux'}, {'frequency': 'c', 'id': 373, 'synset': 'dish.n.01', 'synonyms': ['dish'], 'def': 'a piece of dishware normally used as a container for holding or serving food', 'name': 'dish'}, {'frequency': 'c', 'id': 374, 'synset': 'dish.n.05', 'synonyms': ['dish_antenna'], 'def': 'directional antenna consisting of a parabolic reflector', 'name': 'dish_antenna'}, {'frequency': 'c', 'id': 375, 'synset': 'dishrag.n.01', 'synonyms': ['dishrag', 'dishcloth'], 'def': 'a cloth for washing dishes', 'name': 'dishrag'}, {'frequency': 'c', 'id': 376, 'synset': 'dishtowel.n.01', 'synonyms': ['dishtowel', 'tea_towel'], 'def': 'a towel for drying dishes', 'name': 'dishtowel'}, {'frequency': 'f', 'id': 377, 'synset': 'dishwasher.n.01', 'synonyms': ['dishwasher', 'dishwashing_machine'], 'def': 'a machine for washing dishes', 'name': 'dishwasher'}, {'frequency': 'r', 'id': 378, 'synset': 'dishwasher_detergent.n.01', 'synonyms': ['dishwasher_detergent', 'dishwashing_detergent', 'dishwashing_liquid'], 'def': 'a low-sudsing detergent designed for use in dishwashers', 'name': 'dishwasher_detergent'}, {'frequency': 'r', 'id': 379, 'synset': 'diskette.n.01', 'synonyms': ['diskette', 'floppy', 'floppy_disk'], 'def': 'a small plastic magnetic disk enclosed in a stiff envelope used to store data', 'name': 'diskette'}, {'frequency': 'c', 'id': 380, 'synset': 'dispenser.n.01', 'synonyms': ['dispenser'], 'def': 'a container so designed that the contents can be used in prescribed amounts', 'name': 'dispenser'}, {'frequency': 'c', 'id': 381, 'synset': 'dixie_cup.n.01', 'synonyms': ['Dixie_cup', 'paper_cup'], 'def': 'a disposable cup made of paper; for holding drinks', 'name': 'Dixie_cup'}, {'frequency': 'f', 'id': 382, 'synset': 'dog.n.01', 'synonyms': ['dog'], 'def': 'a common domesticated dog', 'name': 'dog'}, {'frequency': 'f', 'id': 383, 'synset': 'dog_collar.n.01', 'synonyms': ['dog_collar'], 'def': 'a collar for a dog', 'name': 'dog_collar'}, {'frequency': 'c', 'id': 384, 'synset': 'doll.n.01', 'synonyms': ['doll'], 'def': 'a toy replica of a HUMAN (NOT AN ANIMAL)', 'name': 'doll'}, {'frequency': 'r', 'id': 385, 'synset': 'dollar.n.02', 'synonyms': ['dollar', 'dollar_bill', 'one_dollar_bill'], 'def': 'a piece of paper money worth one dollar', 'name': 'dollar'}, {'frequency': 'r', 'id': 386, 'synset': 'dolphin.n.02', 'synonyms': ['dolphin'], 'def': 'any of various small toothed whales with a beaklike snout; larger than porpoises', 'name': 'dolphin'}, {'frequency': 'c', 'id': 387, 'synset': 'domestic_ass.n.01', 'synonyms': ['domestic_ass', 'donkey'], 'def': 'domestic beast of burden descended from the African wild ass; patient but stubborn', 'name': 'domestic_ass'}, {'frequency': 'r', 'id': 388, 'synset': 'domino.n.03', 'synonyms': ['eye_mask'], 'def': 'a mask covering the upper part of the face but with holes for the eyes', 'name': 'eye_mask'}, {'frequency': 'r', 'id': 389, 'synset': 'doorbell.n.01', 'synonyms': ['doorbell', 'buzzer'], 'def': 'a button at an outer door that gives a ringing or buzzing signal when pushed', 'name': 'doorbell'}, {'frequency': 'f', 'id': 390, 'synset': 'doorknob.n.01', 'synonyms': ['doorknob', 'doorhandle'], 'def': "a knob used to open a door (often called `doorhandle' in Great Britain)", 'name': 'doorknob'}, {'frequency': 'c', 'id': 391, 'synset': 'doormat.n.02', 'synonyms': ['doormat', 'welcome_mat'], 'def': 'a mat placed outside an exterior door for wiping the shoes before entering', 'name': 'doormat'}, {'frequency': 'f', 'id': 392, 'synset': 'doughnut.n.02', 'synonyms': ['doughnut', 'donut'], 'def': 'a small ring-shaped friedcake', 'name': 'doughnut'}, {'frequency': 'r', 'id': 393, 'synset': 'dove.n.01', 'synonyms': ['dove'], 'def': 'any of numerous small pigeons', 'name': 'dove'}, {'frequency': 'r', 'id': 394, 'synset': 'dragonfly.n.01', 'synonyms': ['dragonfly'], 'def': 'slender-bodied non-stinging insect having iridescent wings that are outspread at rest', 'name': 'dragonfly'}, {'frequency': 'f', 'id': 395, 'synset': 'drawer.n.01', 'synonyms': ['drawer'], 'def': 'a boxlike container in a piece of furniture; made so as to slide in and out', 'name': 'drawer'}, {'frequency': 'c', 'id': 396, 'synset': 'drawers.n.01', 'synonyms': ['underdrawers', 'boxers', 'boxershorts'], 'def': 'underpants worn by men', 'name': 'underdrawers'}, {'frequency': 'f', 'id': 397, 'synset': 'dress.n.01', 'synonyms': ['dress', 'frock'], 'def': 'a one-piece garment for a woman; has skirt and bodice', 'name': 'dress'}, {'frequency': 'c', 'id': 398, 'synset': 'dress_hat.n.01', 'synonyms': ['dress_hat', 'high_hat', 'opera_hat', 'silk_hat', 'top_hat'], 'def': "a man's hat with a tall crown; usually covered with silk or with beaver fur", 'name': 'dress_hat'}, {'frequency': 'c', 'id': 399, 'synset': 'dress_suit.n.01', 'synonyms': ['dress_suit'], 'def': 'formalwear consisting of full evening dress for men', 'name': 'dress_suit'}, {'frequency': 'c', 'id': 400, 'synset': 'dresser.n.05', 'synonyms': ['dresser'], 'def': 'a cabinet with shelves', 'name': 'dresser'}, {'frequency': 'c', 'id': 401, 'synset': 'drill.n.01', 'synonyms': ['drill'], 'def': 'a tool with a sharp rotating point for making holes in hard materials', 'name': 'drill'}, {'frequency': 'r', 'id': 402, 'synset': 'drinking_fountain.n.01', 'synonyms': ['drinking_fountain'], 'def': 'a public fountain to provide a jet of drinking water', 'name': 'drinking_fountain'}, {'frequency': 'r', 'id': 403, 'synset': 'drone.n.04', 'synonyms': ['drone'], 'def': 'an aircraft without a pilot that is operated by remote control', 'name': 'drone'}, {'frequency': 'r', 'id': 404, 'synset': 'dropper.n.01', 'synonyms': ['dropper', 'eye_dropper'], 'def': 'pipet consisting of a small tube with a vacuum bulb at one end for drawing liquid in and releasing it a drop at a time', 'name': 'dropper'}, {'frequency': 'c', 'id': 405, 'synset': 'drum.n.01', 'synonyms': ['drum_(musical_instrument)'], 'def': 'a musical percussion instrument; usually consists of a hollow cylinder with a membrane stretched across each end', 'name': 'drum_(musical_instrument)'}, {'frequency': 'r', 'id': 406, 'synset': 'drumstick.n.02', 'synonyms': ['drumstick'], 'def': 'a stick used for playing a drum', 'name': 'drumstick'}, {'frequency': 'f', 'id': 407, 'synset': 'duck.n.01', 'synonyms': ['duck'], 'def': 'small web-footed broad-billed swimming bird', 'name': 'duck'}, {'frequency': 'r', 'id': 408, 'synset': 'duckling.n.02', 'synonyms': ['duckling'], 'def': 'young duck', 'name': 'duckling'}, {'frequency': 'c', 'id': 409, 'synset': 'duct_tape.n.01', 'synonyms': ['duct_tape'], 'def': 'a wide silvery adhesive tape', 'name': 'duct_tape'}, {'frequency': 'f', 'id': 410, 'synset': 'duffel_bag.n.01', 'synonyms': ['duffel_bag', 'duffle_bag', 'duffel', 'duffle'], 'def': 'a large cylindrical bag of heavy cloth', 'name': 'duffel_bag'}, {'frequency': 'r', 'id': 411, 'synset': 'dumbbell.n.01', 'synonyms': ['dumbbell'], 'def': 'an exercising weight with two ball-like ends connected by a short handle', 'name': 'dumbbell'}, {'frequency': 'c', 'id': 412, 'synset': 'dumpster.n.01', 'synonyms': ['dumpster'], 'def': 'a container designed to receive and transport and dump waste', 'name': 'dumpster'}, {'frequency': 'r', 'id': 413, 'synset': 'dustpan.n.02', 'synonyms': ['dustpan'], 'def': 'a short-handled receptacle into which dust can be swept', 'name': 'dustpan'}, {'frequency': 'r', 'id': 414, 'synset': 'dutch_oven.n.02', 'synonyms': ['Dutch_oven'], 'def': 'iron or earthenware cooking pot; used for stews', 'name': 'Dutch_oven'}, {'frequency': 'c', 'id': 415, 'synset': 'eagle.n.01', 'synonyms': ['eagle'], 'def': 'large birds of prey noted for their broad wings and strong soaring flight', 'name': 'eagle'}, {'frequency': 'f', 'id': 416, 'synset': 'earphone.n.01', 'synonyms': ['earphone', 'earpiece', 'headphone'], 'def': 'device for listening to audio that is held over or inserted into the ear', 'name': 'earphone'}, {'frequency': 'r', 'id': 417, 'synset': 'earplug.n.01', 'synonyms': ['earplug'], 'def': 'a soft plug that is inserted into the ear canal to block sound', 'name': 'earplug'}, {'frequency': 'f', 'id': 418, 'synset': 'earring.n.01', 'synonyms': ['earring'], 'def': 'jewelry to ornament the ear', 'name': 'earring'}, {'frequency': 'c', 'id': 419, 'synset': 'easel.n.01', 'synonyms': ['easel'], 'def': "an upright tripod for displaying something (usually an artist's canvas)", 'name': 'easel'}, {'frequency': 'r', 'id': 420, 'synset': 'eclair.n.01', 'synonyms': ['eclair'], 'def': 'oblong cream puff', 'name': 'eclair'}, {'frequency': 'r', 'id': 421, 'synset': 'eel.n.01', 'synonyms': ['eel'], 'def': 'an elongate fish with fatty flesh', 'name': 'eel'}, {'frequency': 'f', 'id': 422, 'synset': 'egg.n.02', 'synonyms': ['egg', 'eggs'], 'def': 'oval reproductive body of a fowl (especially a hen) used as food', 'name': 'egg'}, {'frequency': 'r', 'id': 423, 'synset': 'egg_roll.n.01', 'synonyms': ['egg_roll', 'spring_roll'], 'def': 'minced vegetables and meat wrapped in a pancake and fried', 'name': 'egg_roll'}, {'frequency': 'c', 'id': 424, 'synset': 'egg_yolk.n.01', 'synonyms': ['egg_yolk', 'yolk_(egg)'], 'def': 'the yellow spherical part of an egg', 'name': 'egg_yolk'}, {'frequency': 'c', 'id': 425, 'synset': 'eggbeater.n.02', 'synonyms': ['eggbeater', 'eggwhisk'], 'def': 'a mixer for beating eggs or whipping cream', 'name': 'eggbeater'}, {'frequency': 'c', 'id': 426, 'synset': 'eggplant.n.01', 'synonyms': ['eggplant', 'aubergine'], 'def': 'egg-shaped vegetable having a shiny skin typically dark purple', 'name': 'eggplant'}, {'frequency': 'r', 'id': 427, 'synset': 'electric_chair.n.01', 'synonyms': ['electric_chair'], 'def': 'a chair-shaped instrument of execution by electrocution', 'name': 'electric_chair'}, {'frequency': 'f', 'id': 428, 'synset': 'electric_refrigerator.n.01', 'synonyms': ['refrigerator'], 'def': 'a refrigerator in which the coolant is pumped around by an electric motor', 'name': 'refrigerator'}, {'frequency': 'f', 'id': 429, 'synset': 'elephant.n.01', 'synonyms': ['elephant'], 'def': 'a common elephant', 'name': 'elephant'}, {'frequency': 'r', 'id': 430, 'synset': 'elk.n.01', 'synonyms': ['elk', 'moose'], 'def': 'large northern deer with enormous flattened antlers in the male', 'name': 'elk'}, {'frequency': 'c', 'id': 431, 'synset': 'envelope.n.01', 'synonyms': ['envelope'], 'def': 'a flat (usually rectangular) container for a letter, thin package, etc.', 'name': 'envelope'}, {'frequency': 'c', 'id': 432, 'synset': 'eraser.n.01', 'synonyms': ['eraser'], 'def': 'an implement used to erase something', 'name': 'eraser'}, {'frequency': 'r', 'id': 433, 'synset': 'escargot.n.01', 'synonyms': ['escargot'], 'def': 'edible snail usually served in the shell with a sauce of melted butter and garlic', 'name': 'escargot'}, {'frequency': 'r', 'id': 434, 'synset': 'eyepatch.n.01', 'synonyms': ['eyepatch'], 'def': 'a protective cloth covering for an injured eye', 'name': 'eyepatch'}, {'frequency': 'r', 'id': 435, 'synset': 'falcon.n.01', 'synonyms': ['falcon'], 'def': 'birds of prey having long pointed powerful wings adapted for swift flight', 'name': 'falcon'}, {'frequency': 'f', 'id': 436, 'synset': 'fan.n.01', 'synonyms': ['fan'], 'def': 'a device for creating a current of air by movement of a surface or surfaces', 'name': 'fan'}, {'frequency': 'f', 'id': 437, 'synset': 'faucet.n.01', 'synonyms': ['faucet', 'spigot', 'tap'], 'def': 'a regulator for controlling the flow of a liquid from a reservoir', 'name': 'faucet'}, {'frequency': 'r', 'id': 438, 'synset': 'fedora.n.01', 'synonyms': ['fedora'], 'def': 'a hat made of felt with a creased crown', 'name': 'fedora'}, {'frequency': 'r', 'id': 439, 'synset': 'ferret.n.02', 'synonyms': ['ferret'], 'def': 'domesticated albino variety of the European polecat bred for hunting rats and rabbits', 'name': 'ferret'}, {'frequency': 'c', 'id': 440, 'synset': 'ferris_wheel.n.01', 'synonyms': ['Ferris_wheel'], 'def': 'a large wheel with suspended seats that remain upright as the wheel rotates', 'name': 'Ferris_wheel'}, {'frequency': 'r', 'id': 441, 'synset': 'ferry.n.01', 'synonyms': ['ferry', 'ferryboat'], 'def': 'a boat that transports people or vehicles across a body of water and operates on a regular schedule', 'name': 'ferry'}, {'frequency': 'r', 'id': 442, 'synset': 'fig.n.04', 'synonyms': ['fig_(fruit)'], 'def': 'fleshy sweet pear-shaped yellowish or purple fruit eaten fresh or preserved or dried', 'name': 'fig_(fruit)'}, {'frequency': 'c', 'id': 443, 'synset': 'fighter.n.02', 'synonyms': ['fighter_jet', 'fighter_aircraft', 'attack_aircraft'], 'def': 'a high-speed military or naval airplane designed to destroy enemy targets', 'name': 'fighter_jet'}, {'frequency': 'f', 'id': 444, 'synset': 'figurine.n.01', 'synonyms': ['figurine'], 'def': 'a small carved or molded figure', 'name': 'figurine'}, {'frequency': 'c', 'id': 445, 'synset': 'file.n.03', 'synonyms': ['file_cabinet', 'filing_cabinet'], 'def': 'office furniture consisting of a container for keeping papers in order', 'name': 'file_cabinet'}, {'frequency': 'r', 'id': 446, 'synset': 'file.n.04', 'synonyms': ['file_(tool)'], 'def': 'a steel hand tool with small sharp teeth on some or all of its surfaces; used for smoothing wood or metal', 'name': 'file_(tool)'}, {'frequency': 'f', 'id': 447, 'synset': 'fire_alarm.n.02', 'synonyms': ['fire_alarm', 'smoke_alarm'], 'def': 'an alarm that is tripped off by fire or smoke', 'name': 'fire_alarm'}, {'frequency': 'c', 'id': 448, 'synset': 'fire_engine.n.01', 'synonyms': ['fire_engine', 'fire_truck'], 'def': 'large trucks that carry firefighters and equipment to the site of a fire', 'name': 'fire_engine'}, {'frequency': 'c', 'id': 449, 'synset': 'fire_extinguisher.n.01', 'synonyms': ['fire_extinguisher', 'extinguisher'], 'def': 'a manually operated device for extinguishing small fires', 'name': 'fire_extinguisher'}, {'frequency': 'c', 'id': 450, 'synset': 'fire_hose.n.01', 'synonyms': ['fire_hose'], 'def': 'a large hose that carries water from a fire hydrant to the site of the fire', 'name': 'fire_hose'}, {'frequency': 'f', 'id': 451, 'synset': 'fireplace.n.01', 'synonyms': ['fireplace'], 'def': 'an open recess in a wall at the base of a chimney where a fire can be built', 'name': 'fireplace'}, {'frequency': 'f', 'id': 452, 'synset': 'fireplug.n.01', 'synonyms': ['fireplug', 'fire_hydrant', 'hydrant'], 'def': 'an upright hydrant for drawing water to use in fighting a fire', 'name': 'fireplug'}, {'frequency': 'c', 'id': 453, 'synset': 'fish.n.01', 'synonyms': ['fish'], 'def': 'any of various mostly cold-blooded aquatic vertebrates usually having scales and breathing through gills', 'name': 'fish'}, {'frequency': 'r', 'id': 454, 'synset': 'fish.n.02', 'synonyms': ['fish_(food)'], 'def': 'the flesh of fish used as food', 'name': 'fish_(food)'}, {'frequency': 'r', 'id': 455, 'synset': 'fishbowl.n.02', 'synonyms': ['fishbowl', 'goldfish_bowl'], 'def': 'a transparent bowl in which small fish are kept', 'name': 'fishbowl'}, {'frequency': 'r', 'id': 456, 'synset': 'fishing_boat.n.01', 'synonyms': ['fishing_boat', 'fishing_vessel'], 'def': 'a vessel for fishing', 'name': 'fishing_boat'}, {'frequency': 'c', 'id': 457, 'synset': 'fishing_rod.n.01', 'synonyms': ['fishing_rod', 'fishing_pole'], 'def': 'a rod that is used in fishing to extend the fishing line', 'name': 'fishing_rod'}, {'frequency': 'f', 'id': 458, 'synset': 'flag.n.01', 'synonyms': ['flag'], 'def': 'emblem usually consisting of a rectangular piece of cloth of distinctive design (do not include pole)', 'name': 'flag'}, {'frequency': 'f', 'id': 459, 'synset': 'flagpole.n.02', 'synonyms': ['flagpole', 'flagstaff'], 'def': 'a tall staff or pole on which a flag is raised', 'name': 'flagpole'}, {'frequency': 'c', 'id': 460, 'synset': 'flamingo.n.01', 'synonyms': ['flamingo'], 'def': 'large pink web-footed bird with down-bent bill', 'name': 'flamingo'}, {'frequency': 'c', 'id': 461, 'synset': 'flannel.n.01', 'synonyms': ['flannel'], 'def': 'a soft light woolen fabric; used for clothing', 'name': 'flannel'}, {'frequency': 'r', 'id': 462, 'synset': 'flash.n.10', 'synonyms': ['flash', 'flashbulb'], 'def': 'a lamp for providing momentary light to take a photograph', 'name': 'flash'}, {'frequency': 'c', 'id': 463, 'synset': 'flashlight.n.01', 'synonyms': ['flashlight', 'torch'], 'def': 'a small portable battery-powered electric lamp', 'name': 'flashlight'}, {'frequency': 'r', 'id': 464, 'synset': 'fleece.n.03', 'synonyms': ['fleece'], 'def': 'a soft bulky fabric with deep pile; used chiefly for clothing', 'name': 'fleece'}, {'frequency': 'f', 'id': 465, 'synset': 'flip-flop.n.02', 'synonyms': ['flip-flop_(sandal)'], 'def': 'a backless sandal held to the foot by a thong between two toes', 'name': 'flip-flop_(sandal)'}, {'frequency': 'c', 'id': 466, 'synset': 'flipper.n.01', 'synonyms': ['flipper_(footwear)', 'fin_(footwear)'], 'def': 'a shoe to aid a person in swimming', 'name': 'flipper_(footwear)'}, {'frequency': 'f', 'id': 467, 'synset': 'flower_arrangement.n.01', 'synonyms': ['flower_arrangement', 'floral_arrangement'], 'def': 'a decorative arrangement of flowers', 'name': 'flower_arrangement'}, {'frequency': 'c', 'id': 468, 'synset': 'flute.n.02', 'synonyms': ['flute_glass', 'champagne_flute'], 'def': 'a tall narrow wineglass', 'name': 'flute_glass'}, {'frequency': 'r', 'id': 469, 'synset': 'foal.n.01', 'synonyms': ['foal'], 'def': 'a young horse', 'name': 'foal'}, {'frequency': 'c', 'id': 470, 'synset': 'folding_chair.n.01', 'synonyms': ['folding_chair'], 'def': 'a chair that can be folded flat for storage', 'name': 'folding_chair'}, {'frequency': 'c', 'id': 471, 'synset': 'food_processor.n.01', 'synonyms': ['food_processor'], 'def': 'a kitchen appliance for shredding, blending, chopping, or slicing food', 'name': 'food_processor'}, {'frequency': 'c', 'id': 472, 'synset': 'football.n.02', 'synonyms': ['football_(American)'], 'def': 'the inflated oblong ball used in playing American football', 'name': 'football_(American)'}, {'frequency': 'r', 'id': 473, 'synset': 'football_helmet.n.01', 'synonyms': ['football_helmet'], 'def': 'a padded helmet with a face mask to protect the head of football players', 'name': 'football_helmet'}, {'frequency': 'c', 'id': 474, 'synset': 'footstool.n.01', 'synonyms': ['footstool', 'footrest'], 'def': 'a low seat or a stool to rest the feet of a seated person', 'name': 'footstool'}, {'frequency': 'f', 'id': 475, 'synset': 'fork.n.01', 'synonyms': ['fork'], 'def': 'cutlery used for serving and eating food', 'name': 'fork'}, {'frequency': 'r', 'id': 476, 'synset': 'forklift.n.01', 'synonyms': ['forklift'], 'def': 'an industrial vehicle with a power operated fork in front that can be inserted under loads to lift and move them', 'name': 'forklift'}, {'frequency': 'r', 'id': 477, 'synset': 'freight_car.n.01', 'synonyms': ['freight_car'], 'def': 'a railway car that carries freight', 'name': 'freight_car'}, {'frequency': 'r', 'id': 478, 'synset': 'french_toast.n.01', 'synonyms': ['French_toast'], 'def': 'bread slice dipped in egg and milk and fried', 'name': 'French_toast'}, {'frequency': 'c', 'id': 479, 'synset': 'freshener.n.01', 'synonyms': ['freshener', 'air_freshener'], 'def': 'anything that freshens', 'name': 'freshener'}, {'frequency': 'f', 'id': 480, 'synset': 'frisbee.n.01', 'synonyms': ['frisbee'], 'def': 'a light, plastic disk propelled with a flip of the wrist for recreation or competition', 'name': 'frisbee'}, {'frequency': 'c', 'id': 481, 'synset': 'frog.n.01', 'synonyms': ['frog', 'toad', 'toad_frog'], 'def': 'a tailless stout-bodied amphibians with long hind limbs for leaping', 'name': 'frog'}, {'frequency': 'c', 'id': 482, 'synset': 'fruit_juice.n.01', 'synonyms': ['fruit_juice'], 'def': 'drink produced by squeezing or crushing fruit', 'name': 'fruit_juice'}, {'frequency': 'r', 'id': 483, 'synset': 'fruit_salad.n.01', 'synonyms': ['fruit_salad'], 'def': 'salad composed of fruits', 'name': 'fruit_salad'}, {'frequency': 'c', 'id': 484, 'synset': 'frying_pan.n.01', 'synonyms': ['frying_pan', 'frypan', 'skillet'], 'def': 'a pan used for frying foods', 'name': 'frying_pan'}, {'frequency': 'r', 'id': 485, 'synset': 'fudge.n.01', 'synonyms': ['fudge'], 'def': 'soft creamy candy', 'name': 'fudge'}, {'frequency': 'r', 'id': 486, 'synset': 'funnel.n.02', 'synonyms': ['funnel'], 'def': 'a cone-shaped utensil used to channel a substance into a container with a small mouth', 'name': 'funnel'}, {'frequency': 'c', 'id': 487, 'synset': 'futon.n.01', 'synonyms': ['futon'], 'def': 'a pad that is used for sleeping on the floor or on a raised frame', 'name': 'futon'}, {'frequency': 'r', 'id': 488, 'synset': 'gag.n.02', 'synonyms': ['gag', 'muzzle'], 'def': "restraint put into a person's mouth to prevent speaking or shouting", 'name': 'gag'}, {'frequency': 'r', 'id': 489, 'synset': 'garbage.n.03', 'synonyms': ['garbage'], 'def': 'a receptacle where waste can be discarded', 'name': 'garbage'}, {'frequency': 'c', 'id': 490, 'synset': 'garbage_truck.n.01', 'synonyms': ['garbage_truck'], 'def': 'a truck for collecting domestic refuse', 'name': 'garbage_truck'}, {'frequency': 'c', 'id': 491, 'synset': 'garden_hose.n.01', 'synonyms': ['garden_hose'], 'def': 'a hose used for watering a lawn or garden', 'name': 'garden_hose'}, {'frequency': 'c', 'id': 492, 'synset': 'gargle.n.01', 'synonyms': ['gargle', 'mouthwash'], 'def': 'a medicated solution used for gargling and rinsing the mouth', 'name': 'gargle'}, {'frequency': 'r', 'id': 493, 'synset': 'gargoyle.n.02', 'synonyms': ['gargoyle'], 'def': 'an ornament consisting of a grotesquely carved figure of a person or animal', 'name': 'gargoyle'}, {'frequency': 'c', 'id': 494, 'synset': 'garlic.n.02', 'synonyms': ['garlic', 'ail'], 'def': 'aromatic bulb used as seasoning', 'name': 'garlic'}, {'frequency': 'r', 'id': 495, 'synset': 'gasmask.n.01', 'synonyms': ['gasmask', 'respirator', 'gas_helmet'], 'def': 'a protective face mask with a filter', 'name': 'gasmask'}, {'frequency': 'r', 'id': 496, 'synset': 'gazelle.n.01', 'synonyms': ['gazelle'], 'def': 'small swift graceful antelope of Africa and Asia having lustrous eyes', 'name': 'gazelle'}, {'frequency': 'c', 'id': 497, 'synset': 'gelatin.n.02', 'synonyms': ['gelatin', 'jelly'], 'def': 'an edible jelly made with gelatin and used as a dessert or salad base or a coating for foods', 'name': 'gelatin'}, {'frequency': 'r', 'id': 498, 'synset': 'gem.n.02', 'synonyms': ['gemstone'], 'def': 'a crystalline rock that can be cut and polished for jewelry', 'name': 'gemstone'}, {'frequency': 'c', 'id': 499, 'synset': 'giant_panda.n.01', 'synonyms': ['giant_panda', 'panda', 'panda_bear'], 'def': 'large black-and-white herbivorous mammal of bamboo forests of China and Tibet', 'name': 'giant_panda'}, {'frequency': 'c', 'id': 500, 'synset': 'gift_wrap.n.01', 'synonyms': ['gift_wrap'], 'def': 'attractive wrapping paper suitable for wrapping gifts', 'name': 'gift_wrap'}, {'frequency': 'c', 'id': 501, 'synset': 'ginger.n.03', 'synonyms': ['ginger', 'gingerroot'], 'def': 'the root of the common ginger plant; used fresh as a seasoning', 'name': 'ginger'}, {'frequency': 'f', 'id': 502, 'synset': 'giraffe.n.01', 'synonyms': ['giraffe'], 'def': 'tall animal having a spotted coat and small horns and very long neck and legs', 'name': 'giraffe'}, {'frequency': 'c', 'id': 503, 'synset': 'girdle.n.02', 'synonyms': ['cincture', 'sash', 'waistband', 'waistcloth'], 'def': 'a band of material around the waist that strengthens a skirt or trousers', 'name': 'cincture'}, {'frequency': 'f', 'id': 504, 'synset': 'glass.n.02', 'synonyms': ['glass_(drink_container)', 'drinking_glass'], 'def': 'a container for holding liquids while drinking', 'name': 'glass_(drink_container)'}, {'frequency': 'c', 'id': 505, 'synset': 'globe.n.03', 'synonyms': ['globe'], 'def': 'a sphere on which a map (especially of the earth) is represented', 'name': 'globe'}, {'frequency': 'f', 'id': 506, 'synset': 'glove.n.02', 'synonyms': ['glove'], 'def': 'handwear covering the hand', 'name': 'glove'}, {'frequency': 'c', 'id': 507, 'synset': 'goat.n.01', 'synonyms': ['goat'], 'def': 'a common goat', 'name': 'goat'}, {'frequency': 'f', 'id': 508, 'synset': 'goggles.n.01', 'synonyms': ['goggles'], 'def': 'tight-fitting spectacles worn to protect the eyes', 'name': 'goggles'}, {'frequency': 'r', 'id': 509, 'synset': 'goldfish.n.01', 'synonyms': ['goldfish'], 'def': 'small golden or orange-red freshwater fishes used as pond or aquarium pets', 'name': 'goldfish'}, {'frequency': 'r', 'id': 510, 'synset': 'golf_club.n.02', 'synonyms': ['golf_club', 'golf-club'], 'def': 'golf equipment used by a golfer to hit a golf ball', 'name': 'golf_club'}, {'frequency': 'c', 'id': 511, 'synset': 'golfcart.n.01', 'synonyms': ['golfcart'], 'def': 'a small motor vehicle in which golfers can ride between shots', 'name': 'golfcart'}, {'frequency': 'r', 'id': 512, 'synset': 'gondola.n.02', 'synonyms': ['gondola_(boat)'], 'def': 'long narrow flat-bottomed boat propelled by sculling; traditionally used on canals of Venice', 'name': 'gondola_(boat)'}, {'frequency': 'c', 'id': 513, 'synset': 'goose.n.01', 'synonyms': ['goose'], 'def': 'loud, web-footed long-necked aquatic birds usually larger than ducks', 'name': 'goose'}, {'frequency': 'r', 'id': 514, 'synset': 'gorilla.n.01', 'synonyms': ['gorilla'], 'def': 'largest ape', 'name': 'gorilla'}, {'frequency': 'r', 'id': 515, 'synset': 'gourd.n.02', 'synonyms': ['gourd'], 'def': 'any of numerous inedible fruits with hard rinds', 'name': 'gourd'}, {'frequency': 'r', 'id': 516, 'synset': 'gown.n.04', 'synonyms': ['surgical_gown', 'scrubs_(surgical_clothing)'], 'def': 'protective garment worn by surgeons during operations', 'name': 'surgical_gown'}, {'frequency': 'f', 'id': 517, 'synset': 'grape.n.01', 'synonyms': ['grape'], 'def': 'any of various juicy fruit with green or purple skins; grow in clusters', 'name': 'grape'}, {'frequency': 'r', 'id': 518, 'synset': 'grasshopper.n.01', 'synonyms': ['grasshopper'], 'def': 'plant-eating insect with hind legs adapted for leaping', 'name': 'grasshopper'}, {'frequency': 'c', 'id': 519, 'synset': 'grater.n.01', 'synonyms': ['grater'], 'def': 'utensil with sharp perforations for shredding foods (as vegetables or cheese)', 'name': 'grater'}, {'frequency': 'c', 'id': 520, 'synset': 'gravestone.n.01', 'synonyms': ['gravestone', 'headstone', 'tombstone'], 'def': 'a stone that is used to mark a grave', 'name': 'gravestone'}, {'frequency': 'r', 'id': 521, 'synset': 'gravy_boat.n.01', 'synonyms': ['gravy_boat', 'gravy_holder'], 'def': 'a dish (often boat-shaped) for serving gravy or sauce', 'name': 'gravy_boat'}, {'frequency': 'c', 'id': 522, 'synset': 'green_bean.n.02', 'synonyms': ['green_bean'], 'def': 'a common bean plant cultivated for its slender green edible pods', 'name': 'green_bean'}, {'frequency': 'c', 'id': 523, 'synset': 'green_onion.n.01', 'synonyms': ['green_onion', 'spring_onion', 'scallion'], 'def': 'a young onion before the bulb has enlarged', 'name': 'green_onion'}, {'frequency': 'r', 'id': 524, 'synset': 'griddle.n.01', 'synonyms': ['griddle'], 'def': 'cooking utensil consisting of a flat heated surface on which food is cooked', 'name': 'griddle'}, {'frequency': 'r', 'id': 525, 'synset': 'grillroom.n.01', 'synonyms': ['grillroom', 'grill_(restaurant)'], 'def': 'a restaurant where food is cooked on a grill', 'name': 'grillroom'}, {'frequency': 'r', 'id': 526, 'synset': 'grinder.n.04', 'synonyms': ['grinder_(tool)'], 'def': 'a machine tool that polishes metal', 'name': 'grinder_(tool)'}, {'frequency': 'r', 'id': 527, 'synset': 'grits.n.01', 'synonyms': ['grits', 'hominy_grits'], 'def': 'coarsely ground corn boiled as a breakfast dish', 'name': 'grits'}, {'frequency': 'c', 'id': 528, 'synset': 'grizzly.n.01', 'synonyms': ['grizzly', 'grizzly_bear'], 'def': 'powerful brownish-yellow bear of the uplands of western North America', 'name': 'grizzly'}, {'frequency': 'c', 'id': 529, 'synset': 'grocery_bag.n.01', 'synonyms': ['grocery_bag'], 'def': "a sack for holding customer's groceries", 'name': 'grocery_bag'}, {'frequency': 'r', 'id': 530, 'synset': 'guacamole.n.01', 'synonyms': ['guacamole'], 'def': 'a dip made of mashed avocado mixed with chopped onions and other seasonings', 'name': 'guacamole'}, {'frequency': 'f', 'id': 531, 'synset': 'guitar.n.01', 'synonyms': ['guitar'], 'def': 'a stringed instrument usually having six strings; played by strumming or plucking', 'name': 'guitar'}, {'frequency': 'c', 'id': 532, 'synset': 'gull.n.02', 'synonyms': ['gull', 'seagull'], 'def': 'mostly white aquatic bird having long pointed wings and short legs', 'name': 'gull'}, {'frequency': 'c', 'id': 533, 'synset': 'gun.n.01', 'synonyms': ['gun'], 'def': 'a weapon that discharges a bullet at high velocity from a metal tube', 'name': 'gun'}, {'frequency': 'r', 'id': 534, 'synset': 'hair_spray.n.01', 'synonyms': ['hair_spray'], 'def': 'substance sprayed on the hair to hold it in place', 'name': 'hair_spray'}, {'frequency': 'c', 'id': 535, 'synset': 'hairbrush.n.01', 'synonyms': ['hairbrush'], 'def': "a brush used to groom a person's hair", 'name': 'hairbrush'}, {'frequency': 'c', 'id': 536, 'synset': 'hairnet.n.01', 'synonyms': ['hairnet'], 'def': 'a small net that someone wears over their hair to keep it in place', 'name': 'hairnet'}, {'frequency': 'c', 'id': 537, 'synset': 'hairpin.n.01', 'synonyms': ['hairpin'], 'def': "a double pronged pin used to hold women's hair in place", 'name': 'hairpin'}, {'frequency': 'f', 'id': 538, 'synset': 'ham.n.01', 'synonyms': ['ham', 'jambon', 'gammon'], 'def': 'meat cut from the thigh of a hog (usually smoked)', 'name': 'ham'}, {'frequency': 'c', 'id': 539, 'synset': 'hamburger.n.01', 'synonyms': ['hamburger', 'beefburger', 'burger'], 'def': 'a sandwich consisting of a patty of minced beef served on a bun', 'name': 'hamburger'}, {'frequency': 'c', 'id': 540, 'synset': 'hammer.n.02', 'synonyms': ['hammer'], 'def': 'a hand tool with a heavy head and a handle; used to deliver an impulsive force by striking', 'name': 'hammer'}, {'frequency': 'r', 'id': 541, 'synset': 'hammock.n.02', 'synonyms': ['hammock'], 'def': 'a hanging bed of canvas or rope netting (usually suspended between two trees)', 'name': 'hammock'}, {'frequency': 'r', 'id': 542, 'synset': 'hamper.n.02', 'synonyms': ['hamper'], 'def': 'a basket usually with a cover', 'name': 'hamper'}, {'frequency': 'r', 'id': 543, 'synset': 'hamster.n.01', 'synonyms': ['hamster'], 'def': 'short-tailed burrowing rodent with large cheek pouches', 'name': 'hamster'}, {'frequency': 'c', 'id': 544, 'synset': 'hand_blower.n.01', 'synonyms': ['hair_dryer'], 'def': 'a hand-held electric blower that can blow warm air onto the hair', 'name': 'hair_dryer'}, {'frequency': 'r', 'id': 545, 'synset': 'hand_glass.n.01', 'synonyms': ['hand_glass', 'hand_mirror'], 'def': 'a mirror intended to be held in the hand', 'name': 'hand_glass'}, {'frequency': 'f', 'id': 546, 'synset': 'hand_towel.n.01', 'synonyms': ['hand_towel', 'face_towel'], 'def': 'a small towel used to dry the hands or face', 'name': 'hand_towel'}, {'frequency': 'c', 'id': 547, 'synset': 'handcart.n.01', 'synonyms': ['handcart', 'pushcart', 'hand_truck'], 'def': 'wheeled vehicle that can be pushed by a person', 'name': 'handcart'}, {'frequency': 'r', 'id': 548, 'synset': 'handcuff.n.01', 'synonyms': ['handcuff'], 'def': 'shackle that consists of a metal loop that can be locked around the wrist', 'name': 'handcuff'}, {'frequency': 'c', 'id': 549, 'synset': 'handkerchief.n.01', 'synonyms': ['handkerchief'], 'def': 'a square piece of cloth used for wiping the eyes or nose or as a costume accessory', 'name': 'handkerchief'}, {'frequency': 'f', 'id': 550, 'synset': 'handle.n.01', 'synonyms': ['handle', 'grip', 'handgrip'], 'def': 'the appendage to an object that is designed to be held in order to use or move it', 'name': 'handle'}, {'frequency': 'r', 'id': 551, 'synset': 'handsaw.n.01', 'synonyms': ['handsaw', "carpenter's_saw"], 'def': 'a saw used with one hand for cutting wood', 'name': 'handsaw'}, {'frequency': 'r', 'id': 552, 'synset': 'hardback.n.01', 'synonyms': ['hardback_book', 'hardcover_book'], 'def': 'a book with cardboard or cloth or leather covers', 'name': 'hardback_book'}, {'frequency': 'r', 'id': 553, 'synset': 'harmonium.n.01', 'synonyms': ['harmonium', 'organ_(musical_instrument)', 'reed_organ_(musical_instrument)'], 'def': 'a free-reed instrument in which air is forced through the reeds by bellows', 'name': 'harmonium'}, {'frequency': 'f', 'id': 554, 'synset': 'hat.n.01', 'synonyms': ['hat'], 'def': 'headwear that protects the head from bad weather, sun, or worn for fashion', 'name': 'hat'}, {'frequency': 'r', 'id': 555, 'synset': 'hatbox.n.01', 'synonyms': ['hatbox'], 'def': 'a round piece of luggage for carrying hats', 'name': 'hatbox'}, {'frequency': 'r', 'id': 556, 'synset': 'hatch.n.03', 'synonyms': ['hatch'], 'def': 'a movable barrier covering a hatchway', 'name': 'hatch'}, {'frequency': 'c', 'id': 557, 'synset': 'head_covering.n.01', 'synonyms': ['veil'], 'def': 'a garment that covers the head and face', 'name': 'veil'}, {'frequency': 'f', 'id': 558, 'synset': 'headband.n.01', 'synonyms': ['headband'], 'def': 'a band worn around or over the head', 'name': 'headband'}, {'frequency': 'f', 'id': 559, 'synset': 'headboard.n.01', 'synonyms': ['headboard'], 'def': 'a vertical board or panel forming the head of a bedstead', 'name': 'headboard'}, {'frequency': 'f', 'id': 560, 'synset': 'headlight.n.01', 'synonyms': ['headlight', 'headlamp'], 'def': 'a powerful light with reflector; attached to the front of an automobile or locomotive', 'name': 'headlight'}, {'frequency': 'c', 'id': 561, 'synset': 'headscarf.n.01', 'synonyms': ['headscarf'], 'def': 'a kerchief worn over the head and tied under the chin', 'name': 'headscarf'}, {'frequency': 'r', 'id': 562, 'synset': 'headset.n.01', 'synonyms': ['headset'], 'def': 'receiver consisting of a pair of headphones', 'name': 'headset'}, {'frequency': 'c', 'id': 563, 'synset': 'headstall.n.01', 'synonyms': ['headstall_(for_horses)', 'headpiece_(for_horses)'], 'def': "the band that is the part of a bridle that fits around a horse's head", 'name': 'headstall_(for_horses)'}, {'frequency': 'r', 'id': 564, 'synset': 'hearing_aid.n.02', 'synonyms': ['hearing_aid'], 'def': 'an acoustic device used to direct sound to the ear of a hearing-impaired person', 'name': 'hearing_aid'}, {'frequency': 'c', 'id': 565, 'synset': 'heart.n.02', 'synonyms': ['heart'], 'def': 'a muscular organ; its contractions move the blood through the body', 'name': 'heart'}, {'frequency': 'c', 'id': 566, 'synset': 'heater.n.01', 'synonyms': ['heater', 'warmer'], 'def': 'device that heats water or supplies warmth to a room', 'name': 'heater'}, {'frequency': 'c', 'id': 567, 'synset': 'helicopter.n.01', 'synonyms': ['helicopter'], 'def': 'an aircraft without wings that obtains its lift from the rotation of overhead blades', 'name': 'helicopter'}, {'frequency': 'f', 'id': 568, 'synset': 'helmet.n.02', 'synonyms': ['helmet'], 'def': 'a protective headgear made of hard material to resist blows', 'name': 'helmet'}, {'frequency': 'r', 'id': 569, 'synset': 'heron.n.02', 'synonyms': ['heron'], 'def': 'grey or white wading bird with long neck and long legs and (usually) long bill', 'name': 'heron'}, {'frequency': 'c', 'id': 570, 'synset': 'highchair.n.01', 'synonyms': ['highchair', 'feeding_chair'], 'def': 'a chair for feeding a very young child', 'name': 'highchair'}, {'frequency': 'f', 'id': 571, 'synset': 'hinge.n.01', 'synonyms': ['hinge'], 'def': 'a joint that holds two parts together so that one can swing relative to the other', 'name': 'hinge'}, {'frequency': 'r', 'id': 572, 'synset': 'hippopotamus.n.01', 'synonyms': ['hippopotamus'], 'def': 'massive thick-skinned animal living in or around rivers of tropical Africa', 'name': 'hippopotamus'}, {'frequency': 'r', 'id': 573, 'synset': 'hockey_stick.n.01', 'synonyms': ['hockey_stick'], 'def': 'sports implement consisting of a stick used by hockey players to move the puck', 'name': 'hockey_stick'}, {'frequency': 'c', 'id': 574, 'synset': 'hog.n.03', 'synonyms': ['hog', 'pig'], 'def': 'domestic swine', 'name': 'hog'}, {'frequency': 'f', 'id': 575, 'synset': 'home_plate.n.01', 'synonyms': ['home_plate_(baseball)', 'home_base_(baseball)'], 'def': '(baseball) a rubber slab where the batter stands; it must be touched by a base runner in order to score', 'name': 'home_plate_(baseball)'}, {'frequency': 'c', 'id': 576, 'synset': 'honey.n.01', 'synonyms': ['honey'], 'def': 'a sweet yellow liquid produced by bees', 'name': 'honey'}, {'frequency': 'f', 'id': 577, 'synset': 'hood.n.06', 'synonyms': ['fume_hood', 'exhaust_hood'], 'def': 'metal covering leading to a vent that exhausts smoke or fumes', 'name': 'fume_hood'}, {'frequency': 'f', 'id': 578, 'synset': 'hook.n.05', 'synonyms': ['hook'], 'def': 'a curved or bent implement for suspending or pulling something', 'name': 'hook'}, {'frequency': 'f', 'id': 579, 'synset': 'horse.n.01', 'synonyms': ['horse'], 'def': 'a common horse', 'name': 'horse'}, {'frequency': 'f', 'id': 580, 'synset': 'hose.n.03', 'synonyms': ['hose', 'hosepipe'], 'def': 'a flexible pipe for conveying a liquid or gas', 'name': 'hose'}, {'frequency': 'r', 'id': 581, 'synset': 'hot-air_balloon.n.01', 'synonyms': ['hot-air_balloon'], 'def': 'balloon for travel through the air in a basket suspended below a large bag of heated air', 'name': 'hot-air_balloon'}, {'frequency': 'r', 'id': 582, 'synset': 'hot_plate.n.01', 'synonyms': ['hotplate'], 'def': 'a portable electric appliance for heating or cooking or keeping food warm', 'name': 'hotplate'}, {'frequency': 'c', 'id': 583, 'synset': 'hot_sauce.n.01', 'synonyms': ['hot_sauce'], 'def': 'a pungent peppery sauce', 'name': 'hot_sauce'}, {'frequency': 'r', 'id': 584, 'synset': 'hourglass.n.01', 'synonyms': ['hourglass'], 'def': 'a sandglass timer that runs for sixty minutes', 'name': 'hourglass'}, {'frequency': 'r', 'id': 585, 'synset': 'houseboat.n.01', 'synonyms': ['houseboat'], 'def': 'a barge that is designed and equipped for use as a dwelling', 'name': 'houseboat'}, {'frequency': 'r', 'id': 586, 'synset': 'hummingbird.n.01', 'synonyms': ['hummingbird'], 'def': 'tiny American bird having brilliant iridescent plumage and long slender bills', 'name': 'hummingbird'}, {'frequency': 'r', 'id': 587, 'synset': 'hummus.n.01', 'synonyms': ['hummus', 'humus', 'hommos', 'hoummos', 'humous'], 'def': 'a thick spread made from mashed chickpeas', 'name': 'hummus'}, {'frequency': 'c', 'id': 588, 'synset': 'ice_bear.n.01', 'synonyms': ['polar_bear'], 'def': 'white bear of Arctic regions', 'name': 'polar_bear'}, {'frequency': 'c', 'id': 589, 'synset': 'ice_cream.n.01', 'synonyms': ['icecream'], 'def': 'frozen dessert containing cream and sugar and flavoring', 'name': 'icecream'}, {'frequency': 'r', 'id': 590, 'synset': 'ice_lolly.n.01', 'synonyms': ['popsicle'], 'def': 'ice cream or water ice on a small wooden stick', 'name': 'popsicle'}, {'frequency': 'c', 'id': 591, 'synset': 'ice_maker.n.01', 'synonyms': ['ice_maker'], 'def': 'an appliance included in some electric refrigerators for making ice cubes', 'name': 'ice_maker'}, {'frequency': 'r', 'id': 592, 'synset': 'ice_pack.n.01', 'synonyms': ['ice_pack', 'ice_bag'], 'def': 'a waterproof bag filled with ice: applied to the body (especially the head) to cool or reduce swelling', 'name': 'ice_pack'}, {'frequency': 'r', 'id': 593, 'synset': 'ice_skate.n.01', 'synonyms': ['ice_skate'], 'def': 'skate consisting of a boot with a steel blade fitted to the sole', 'name': 'ice_skate'}, {'frequency': 'r', 'id': 594, 'synset': 'ice_tea.n.01', 'synonyms': ['ice_tea', 'iced_tea'], 'def': 'strong tea served over ice', 'name': 'ice_tea'}, {'frequency': 'c', 'id': 595, 'synset': 'igniter.n.01', 'synonyms': ['igniter', 'ignitor', 'lighter'], 'def': 'a substance or device used to start a fire', 'name': 'igniter'}, {'frequency': 'r', 'id': 596, 'synset': 'incense.n.01', 'synonyms': ['incense'], 'def': 'a substance that produces a fragrant odor when burned', 'name': 'incense'}, {'frequency': 'r', 'id': 597, 'synset': 'inhaler.n.01', 'synonyms': ['inhaler', 'inhalator'], 'def': 'a dispenser that produces a chemical vapor to be inhaled through mouth or nose', 'name': 'inhaler'}, {'frequency': 'c', 'id': 598, 'synset': 'ipod.n.01', 'synonyms': ['iPod'], 'def': 'a pocket-sized device used to play music files', 'name': 'iPod'}, {'frequency': 'c', 'id': 599, 'synset': 'iron.n.04', 'synonyms': ['iron_(for_clothing)', 'smoothing_iron_(for_clothing)'], 'def': 'home appliance consisting of a flat metal base that is heated and used to smooth cloth', 'name': 'iron_(for_clothing)'}, {'frequency': 'r', 'id': 600, 'synset': 'ironing_board.n.01', 'synonyms': ['ironing_board'], 'def': 'narrow padded board on collapsible supports; used for ironing clothes', 'name': 'ironing_board'}, {'frequency': 'f', 'id': 601, 'synset': 'jacket.n.01', 'synonyms': ['jacket'], 'def': 'a waist-length coat', 'name': 'jacket'}, {'frequency': 'r', 'id': 602, 'synset': 'jam.n.01', 'synonyms': ['jam'], 'def': 'preserve of crushed fruit', 'name': 'jam'}, {'frequency': 'f', 'id': 603, 'synset': 'jean.n.01', 'synonyms': ['jean', 'blue_jean', 'denim'], 'def': '(usually plural) close-fitting trousers of heavy denim for manual work or casual wear', 'name': 'jean'}, {'frequency': 'c', 'id': 604, 'synset': 'jeep.n.01', 'synonyms': ['jeep', 'landrover'], 'def': 'a car suitable for traveling over rough terrain', 'name': 'jeep'}, {'frequency': 'r', 'id': 605, 'synset': 'jelly_bean.n.01', 'synonyms': ['jelly_bean', 'jelly_egg'], 'def': 'sugar-glazed jellied candy', 'name': 'jelly_bean'}, {'frequency': 'f', 'id': 606, 'synset': 'jersey.n.03', 'synonyms': ['jersey', 'T-shirt', 'tee_shirt'], 'def': 'a close-fitting pullover shirt', 'name': 'jersey'}, {'frequency': 'c', 'id': 607, 'synset': 'jet.n.01', 'synonyms': ['jet_plane', 'jet-propelled_plane'], 'def': 'an airplane powered by one or more jet engines', 'name': 'jet_plane'}, {'frequency': 'c', 'id': 608, 'synset': 'jewelry.n.01', 'synonyms': ['jewelry', 'jewellery'], 'def': 'an adornment (as a bracelet or ring or necklace) made of precious metals and set with gems (or imitation gems)', 'name': 'jewelry'}, {'frequency': 'r', 'id': 609, 'synset': 'joystick.n.02', 'synonyms': ['joystick'], 'def': 'a control device for computers consisting of a vertical handle that can move freely in two directions', 'name': 'joystick'}, {'frequency': 'r', 'id': 610, 'synset': 'jump_suit.n.01', 'synonyms': ['jumpsuit'], 'def': "one-piece garment fashioned after a parachutist's uniform", 'name': 'jumpsuit'}, {'frequency': 'c', 'id': 611, 'synset': 'kayak.n.01', 'synonyms': ['kayak'], 'def': 'a small canoe consisting of a light frame made watertight with animal skins', 'name': 'kayak'}, {'frequency': 'r', 'id': 612, 'synset': 'keg.n.02', 'synonyms': ['keg'], 'def': 'small cask or barrel', 'name': 'keg'}, {'frequency': 'r', 'id': 613, 'synset': 'kennel.n.01', 'synonyms': ['kennel', 'doghouse'], 'def': 'outbuilding that serves as a shelter for a dog', 'name': 'kennel'}, {'frequency': 'c', 'id': 614, 'synset': 'kettle.n.01', 'synonyms': ['kettle', 'boiler'], 'def': 'a metal pot for stewing or boiling; usually has a lid', 'name': 'kettle'}, {'frequency': 'f', 'id': 615, 'synset': 'key.n.01', 'synonyms': ['key'], 'def': 'metal instrument used to unlock a lock', 'name': 'key'}, {'frequency': 'r', 'id': 616, 'synset': 'keycard.n.01', 'synonyms': ['keycard'], 'def': 'a plastic card used to gain access typically to a door', 'name': 'keycard'}, {'frequency': 'r', 'id': 617, 'synset': 'kilt.n.01', 'synonyms': ['kilt'], 'def': 'a knee-length pleated tartan skirt worn by men as part of the traditional dress in the Highlands of northern Scotland', 'name': 'kilt'}, {'frequency': 'c', 'id': 618, 'synset': 'kimono.n.01', 'synonyms': ['kimono'], 'def': 'a loose robe; imitated from robes originally worn by Japanese', 'name': 'kimono'}, {'frequency': 'f', 'id': 619, 'synset': 'kitchen_sink.n.01', 'synonyms': ['kitchen_sink'], 'def': 'a sink in a kitchen', 'name': 'kitchen_sink'}, {'frequency': 'c', 'id': 620, 'synset': 'kitchen_table.n.01', 'synonyms': ['kitchen_table'], 'def': 'a table in the kitchen', 'name': 'kitchen_table'}, {'frequency': 'f', 'id': 621, 'synset': 'kite.n.03', 'synonyms': ['kite'], 'def': 'plaything consisting of a light frame covered with tissue paper; flown in wind at end of a string', 'name': 'kite'}, {'frequency': 'c', 'id': 622, 'synset': 'kitten.n.01', 'synonyms': ['kitten', 'kitty'], 'def': 'young domestic cat', 'name': 'kitten'}, {'frequency': 'c', 'id': 623, 'synset': 'kiwi.n.03', 'synonyms': ['kiwi_fruit'], 'def': 'fuzzy brown egg-shaped fruit with slightly tart green flesh', 'name': 'kiwi_fruit'}, {'frequency': 'f', 'id': 624, 'synset': 'knee_pad.n.01', 'synonyms': ['knee_pad'], 'def': 'protective garment consisting of a pad worn by football or baseball or hockey players', 'name': 'knee_pad'}, {'frequency': 'f', 'id': 625, 'synset': 'knife.n.01', 'synonyms': ['knife'], 'def': 'tool with a blade and point used as a cutting instrument', 'name': 'knife'}, {'frequency': 'r', 'id': 626, 'synset': 'knight.n.02', 'synonyms': ['knight_(chess_piece)', 'horse_(chess_piece)'], 'def': 'a chess game piece shaped to resemble the head of a horse', 'name': 'knight_(chess_piece)'}, {'frequency': 'r', 'id': 627, 'synset': 'knitting_needle.n.01', 'synonyms': ['knitting_needle'], 'def': 'needle consisting of a slender rod with pointed ends; usually used in pairs', 'name': 'knitting_needle'}, {'frequency': 'f', 'id': 628, 'synset': 'knob.n.02', 'synonyms': ['knob'], 'def': 'a round handle often found on a door', 'name': 'knob'}, {'frequency': 'r', 'id': 629, 'synset': 'knocker.n.05', 'synonyms': ['knocker_(on_a_door)', 'doorknocker'], 'def': 'a device (usually metal and ornamental) attached by a hinge to a door', 'name': 'knocker_(on_a_door)'}, {'frequency': 'r', 'id': 630, 'synset': 'koala.n.01', 'synonyms': ['koala', 'koala_bear'], 'def': 'sluggish tailless Australian marsupial with grey furry ears and coat', 'name': 'koala'}, {'frequency': 'r', 'id': 631, 'synset': 'lab_coat.n.01', 'synonyms': ['lab_coat', 'laboratory_coat'], 'def': 'a light coat worn to protect clothing from substances used while working in a laboratory', 'name': 'lab_coat'}, {'frequency': 'f', 'id': 632, 'synset': 'ladder.n.01', 'synonyms': ['ladder'], 'def': 'steps consisting of two parallel members connected by rungs', 'name': 'ladder'}, {'frequency': 'c', 'id': 633, 'synset': 'ladle.n.01', 'synonyms': ['ladle'], 'def': 'a spoon-shaped vessel with a long handle frequently used to transfer liquids', 'name': 'ladle'}, {'frequency': 'r', 'id': 634, 'synset': 'ladybug.n.01', 'synonyms': ['ladybug', 'ladybeetle', 'ladybird_beetle'], 'def': 'small round bright-colored and spotted beetle, typically red and black', 'name': 'ladybug'}, {'frequency': 'c', 'id': 635, 'synset': 'lamb.n.01', 'synonyms': ['lamb_(animal)'], 'def': 'young sheep', 'name': 'lamb_(animal)'}, {'frequency': 'r', 'id': 636, 'synset': 'lamb_chop.n.01', 'synonyms': ['lamb-chop', 'lambchop'], 'def': 'chop cut from a lamb', 'name': 'lamb-chop'}, {'frequency': 'f', 'id': 637, 'synset': 'lamp.n.02', 'synonyms': ['lamp'], 'def': 'a piece of furniture holding one or more electric light bulbs', 'name': 'lamp'}, {'frequency': 'f', 'id': 638, 'synset': 'lamppost.n.01', 'synonyms': ['lamppost'], 'def': 'a metal post supporting an outdoor lamp (such as a streetlight)', 'name': 'lamppost'}, {'frequency': 'f', 'id': 639, 'synset': 'lampshade.n.01', 'synonyms': ['lampshade'], 'def': 'a protective ornamental shade used to screen a light bulb from direct view', 'name': 'lampshade'}, {'frequency': 'c', 'id': 640, 'synset': 'lantern.n.01', 'synonyms': ['lantern'], 'def': 'light in a transparent protective case', 'name': 'lantern'}, {'frequency': 'f', 'id': 641, 'synset': 'lanyard.n.02', 'synonyms': ['lanyard', 'laniard'], 'def': 'a cord worn around the neck to hold a knife or whistle, etc.', 'name': 'lanyard'}, {'frequency': 'f', 'id': 642, 'synset': 'laptop.n.01', 'synonyms': ['laptop_computer', 'notebook_computer'], 'def': 'a portable computer small enough to use in your lap', 'name': 'laptop_computer'}, {'frequency': 'r', 'id': 643, 'synset': 'lasagna.n.01', 'synonyms': ['lasagna', 'lasagne'], 'def': 'baked dish of layers of lasagna pasta with sauce and cheese and meat or vegetables', 'name': 'lasagna'}, {'frequency': 'c', 'id': 644, 'synset': 'latch.n.02', 'synonyms': ['latch'], 'def': 'a bar that can be lowered or slid into a groove to fasten a door or gate', 'name': 'latch'}, {'frequency': 'r', 'id': 645, 'synset': 'lawn_mower.n.01', 'synonyms': ['lawn_mower'], 'def': 'garden tool for mowing grass on lawns', 'name': 'lawn_mower'}, {'frequency': 'r', 'id': 646, 'synset': 'leather.n.01', 'synonyms': ['leather'], 'def': 'an animal skin made smooth and flexible by removing the hair and then tanning', 'name': 'leather'}, {'frequency': 'c', 'id': 647, 'synset': 'legging.n.01', 'synonyms': ['legging_(clothing)', 'leging_(clothing)', 'leg_covering'], 'def': 'a garment covering the leg (usually extending from the knee to the ankle)', 'name': 'legging_(clothing)'}, {'frequency': 'c', 'id': 648, 'synset': 'lego.n.01', 'synonyms': ['Lego', 'Lego_set'], 'def': "a child's plastic construction set for making models from blocks", 'name': 'Lego'}, {'frequency': 'f', 'id': 649, 'synset': 'lemon.n.01', 'synonyms': ['lemon'], 'def': 'yellow oval fruit with juicy acidic flesh', 'name': 'lemon'}, {'frequency': 'r', 'id': 650, 'synset': 'lemonade.n.01', 'synonyms': ['lemonade'], 'def': 'sweetened beverage of diluted lemon juice', 'name': 'lemonade'}, {'frequency': 'f', 'id': 651, 'synset': 'lettuce.n.02', 'synonyms': ['lettuce'], 'def': 'leafy plant commonly eaten in salad or on sandwiches', 'name': 'lettuce'}, {'frequency': 'f', 'id': 652, 'synset': 'license_plate.n.01', 'synonyms': ['license_plate', 'numberplate'], 'def': "a plate mounted on the front and back of car and bearing the car's registration number", 'name': 'license_plate'}, {'frequency': 'f', 'id': 653, 'synset': 'life_buoy.n.01', 'synonyms': ['life_buoy', 'lifesaver', 'life_belt', 'life_ring'], 'def': 'a ring-shaped life preserver used to prevent drowning (NOT a life-jacket or vest)', 'name': 'life_buoy'}, {'frequency': 'f', 'id': 654, 'synset': 'life_jacket.n.01', 'synonyms': ['life_jacket', 'life_vest'], 'def': 'life preserver consisting of a sleeveless jacket of buoyant or inflatable design', 'name': 'life_jacket'}, {'frequency': 'f', 'id': 655, 'synset': 'light_bulb.n.01', 'synonyms': ['lightbulb'], 'def': 'glass bulb or tube shaped electric device that emits light (DO NOT MARK LAMPS AS A WHOLE)', 'name': 'lightbulb'}, {'frequency': 'r', 'id': 656, 'synset': 'lightning_rod.n.02', 'synonyms': ['lightning_rod', 'lightning_conductor'], 'def': 'a metallic conductor that is attached to a high point and leads to the ground', 'name': 'lightning_rod'}, {'frequency': 'c', 'id': 657, 'synset': 'lime.n.06', 'synonyms': ['lime'], 'def': 'the green acidic fruit of any of various lime trees', 'name': 'lime'}, {'frequency': 'r', 'id': 658, 'synset': 'limousine.n.01', 'synonyms': ['limousine'], 'def': 'long luxurious car; usually driven by a chauffeur', 'name': 'limousine'}, {'frequency': 'r', 'id': 659, 'synset': 'linen.n.02', 'synonyms': ['linen_paper'], 'def': 'a high-quality paper made of linen fibers or with a linen finish', 'name': 'linen_paper'}, {'frequency': 'c', 'id': 660, 'synset': 'lion.n.01', 'synonyms': ['lion'], 'def': 'large gregarious predatory cat of Africa and India', 'name': 'lion'}, {'frequency': 'c', 'id': 661, 'synset': 'lip_balm.n.01', 'synonyms': ['lip_balm'], 'def': 'a balm applied to the lips', 'name': 'lip_balm'}, {'frequency': 'c', 'id': 662, 'synset': 'lipstick.n.01', 'synonyms': ['lipstick', 'lip_rouge'], 'def': 'makeup that is used to color the lips', 'name': 'lipstick'}, {'frequency': 'r', 'id': 663, 'synset': 'liquor.n.01', 'synonyms': ['liquor', 'spirits', 'hard_liquor', 'liqueur', 'cordial'], 'def': 'an alcoholic beverage that is distilled rather than fermented', 'name': 'liquor'}, {'frequency': 'r', 'id': 664, 'synset': 'lizard.n.01', 'synonyms': ['lizard'], 'def': 'a reptile with usually two pairs of legs and a tapering tail', 'name': 'lizard'}, {'frequency': 'r', 'id': 665, 'synset': 'loafer.n.02', 'synonyms': ['Loafer_(type_of_shoe)'], 'def': 'a low leather step-in shoe', 'name': 'Loafer_(type_of_shoe)'}, {'frequency': 'f', 'id': 666, 'synset': 'log.n.01', 'synonyms': ['log'], 'def': 'a segment of the trunk of a tree when stripped of branches', 'name': 'log'}, {'frequency': 'c', 'id': 667, 'synset': 'lollipop.n.02', 'synonyms': ['lollipop'], 'def': 'hard candy on a stick', 'name': 'lollipop'}, {'frequency': 'c', 'id': 668, 'synset': 'lotion.n.01', 'synonyms': ['lotion'], 'def': 'any of various cosmetic preparations that are applied to the skin', 'name': 'lotion'}, {'frequency': 'f', 'id': 669, 'synset': 'loudspeaker.n.01', 'synonyms': ['speaker_(stero_equipment)'], 'def': 'electronic device that produces sound often as part of a stereo system', 'name': 'speaker_(stero_equipment)'}, {'frequency': 'c', 'id': 670, 'synset': 'love_seat.n.01', 'synonyms': ['loveseat'], 'def': 'small sofa that seats two people', 'name': 'loveseat'}, {'frequency': 'r', 'id': 671, 'synset': 'machine_gun.n.01', 'synonyms': ['machine_gun'], 'def': 'a rapidly firing automatic gun', 'name': 'machine_gun'}, {'frequency': 'f', 'id': 672, 'synset': 'magazine.n.02', 'synonyms': ['magazine'], 'def': 'a paperback periodic publication', 'name': 'magazine'}, {'frequency': 'f', 'id': 673, 'synset': 'magnet.n.01', 'synonyms': ['magnet'], 'def': 'a device that attracts iron and produces a magnetic field', 'name': 'magnet'}, {'frequency': 'r', 'id': 674, 'synset': 'mail_slot.n.01', 'synonyms': ['mail_slot'], 'def': 'a slot (usually in a door) through which mail can be delivered', 'name': 'mail_slot'}, {'frequency': 'c', 'id': 675, 'synset': 'mailbox.n.01', 'synonyms': ['mailbox_(at_home)', 'letter_box_(at_home)'], 'def': 'a private box for delivery of mail', 'name': 'mailbox_(at_home)'}, {'frequency': 'r', 'id': 676, 'synset': 'mallet.n.01', 'synonyms': ['mallet'], 'def': 'a sports implement with a long handle and a hammer-like head used to hit a ball', 'name': 'mallet'}, {'frequency': 'r', 'id': 677, 'synset': 'mammoth.n.01', 'synonyms': ['mammoth'], 'def': 'any of numerous extinct elephants widely distributed in the Pleistocene', 'name': 'mammoth'}, {'frequency': 'c', 'id': 678, 'synset': 'mandarin.n.05', 'synonyms': ['mandarin_orange'], 'def': 'a somewhat flat reddish-orange loose skinned citrus of China', 'name': 'mandarin_orange'}, {'frequency': 'c', 'id': 679, 'synset': 'manger.n.01', 'synonyms': ['manger', 'trough'], 'def': 'a container (usually in a barn or stable) from which cattle or horses feed', 'name': 'manger'}, {'frequency': 'f', 'id': 680, 'synset': 'manhole.n.01', 'synonyms': ['manhole'], 'def': 'a hole (usually with a flush cover) through which a person can gain access to an underground structure', 'name': 'manhole'}, {'frequency': 'c', 'id': 681, 'synset': 'map.n.01', 'synonyms': ['map'], 'def': "a diagrammatic representation of the earth's surface (or part of it)", 'name': 'map'}, {'frequency': 'c', 'id': 682, 'synset': 'marker.n.03', 'synonyms': ['marker'], 'def': 'a writing implement for making a mark', 'name': 'marker'}, {'frequency': 'r', 'id': 683, 'synset': 'martini.n.01', 'synonyms': ['martini'], 'def': 'a cocktail made of gin (or vodka) with dry vermouth', 'name': 'martini'}, {'frequency': 'r', 'id': 684, 'synset': 'mascot.n.01', 'synonyms': ['mascot'], 'def': 'a person or animal that is adopted by a team or other group as a symbolic figure', 'name': 'mascot'}, {'frequency': 'c', 'id': 685, 'synset': 'mashed_potato.n.01', 'synonyms': ['mashed_potato'], 'def': 'potato that has been peeled and boiled and then mashed', 'name': 'mashed_potato'}, {'frequency': 'r', 'id': 686, 'synset': 'masher.n.02', 'synonyms': ['masher'], 'def': 'a kitchen utensil used for mashing (e.g. potatoes)', 'name': 'masher'}, {'frequency': 'f', 'id': 687, 'synset': 'mask.n.04', 'synonyms': ['mask', 'facemask'], 'def': 'a protective covering worn over the face', 'name': 'mask'}, {'frequency': 'f', 'id': 688, 'synset': 'mast.n.01', 'synonyms': ['mast'], 'def': 'a vertical spar for supporting sails', 'name': 'mast'}, {'frequency': 'c', 'id': 689, 'synset': 'mat.n.03', 'synonyms': ['mat_(gym_equipment)', 'gym_mat'], 'def': 'sports equipment consisting of a piece of thick padding on the floor for gymnastics', 'name': 'mat_(gym_equipment)'}, {'frequency': 'r', 'id': 690, 'synset': 'matchbox.n.01', 'synonyms': ['matchbox'], 'def': 'a box for holding matches', 'name': 'matchbox'}, {'frequency': 'f', 'id': 691, 'synset': 'mattress.n.01', 'synonyms': ['mattress'], 'def': 'a thick pad filled with resilient material used as a bed or part of a bed', 'name': 'mattress'}, {'frequency': 'c', 'id': 692, 'synset': 'measuring_cup.n.01', 'synonyms': ['measuring_cup'], 'def': 'graduated cup used to measure liquid or granular ingredients', 'name': 'measuring_cup'}, {'frequency': 'c', 'id': 693, 'synset': 'measuring_stick.n.01', 'synonyms': ['measuring_stick', 'ruler_(measuring_stick)', 'measuring_rod'], 'def': 'measuring instrument having a sequence of marks at regular intervals', 'name': 'measuring_stick'}, {'frequency': 'c', 'id': 694, 'synset': 'meatball.n.01', 'synonyms': ['meatball'], 'def': 'ground meat formed into a ball and fried or simmered in broth', 'name': 'meatball'}, {'frequency': 'c', 'id': 695, 'synset': 'medicine.n.02', 'synonyms': ['medicine'], 'def': 'something that treats or prevents or alleviates the symptoms of disease', 'name': 'medicine'}, {'frequency': 'r', 'id': 696, 'synset': 'melon.n.01', 'synonyms': ['melon'], 'def': 'fruit of the gourd family having a hard rind and sweet juicy flesh', 'name': 'melon'}, {'frequency': 'f', 'id': 697, 'synset': 'microphone.n.01', 'synonyms': ['microphone'], 'def': 'device for converting sound waves into electrical energy', 'name': 'microphone'}, {'frequency': 'r', 'id': 698, 'synset': 'microscope.n.01', 'synonyms': ['microscope'], 'def': 'magnifier of the image of small objects', 'name': 'microscope'}, {'frequency': 'f', 'id': 699, 'synset': 'microwave.n.02', 'synonyms': ['microwave_oven'], 'def': 'kitchen appliance that cooks food by passing an electromagnetic wave through it', 'name': 'microwave_oven'}, {'frequency': 'r', 'id': 700, 'synset': 'milestone.n.01', 'synonyms': ['milestone', 'milepost'], 'def': 'stone post at side of a road to show distances', 'name': 'milestone'}, {'frequency': 'c', 'id': 701, 'synset': 'milk.n.01', 'synonyms': ['milk'], 'def': 'a white nutritious liquid secreted by mammals and used as food by human beings', 'name': 'milk'}, {'frequency': 'f', 'id': 702, 'synset': 'minivan.n.01', 'synonyms': ['minivan'], 'def': 'a small box-shaped passenger van', 'name': 'minivan'}, {'frequency': 'r', 'id': 703, 'synset': 'mint.n.05', 'synonyms': ['mint_candy'], 'def': 'a candy that is flavored with a mint oil', 'name': 'mint_candy'}, {'frequency': 'f', 'id': 704, 'synset': 'mirror.n.01', 'synonyms': ['mirror'], 'def': 'polished surface that forms images by reflecting light', 'name': 'mirror'}, {'frequency': 'c', 'id': 705, 'synset': 'mitten.n.01', 'synonyms': ['mitten'], 'def': 'glove that encases the thumb separately and the other four fingers together', 'name': 'mitten'}, {'frequency': 'c', 'id': 706, 'synset': 'mixer.n.04', 'synonyms': ['mixer_(kitchen_tool)', 'stand_mixer'], 'def': 'a kitchen utensil that is used for mixing foods', 'name': 'mixer_(kitchen_tool)'}, {'frequency': 'c', 'id': 707, 'synset': 'money.n.03', 'synonyms': ['money'], 'def': 'the official currency issued by a government or national bank', 'name': 'money'}, {'frequency': 'f', 'id': 708, 'synset': 'monitor.n.04', 'synonyms': ['monitor_(computer_equipment) computer_monitor'], 'def': 'a computer monitor', 'name': 'monitor_(computer_equipment) computer_monitor'}, {'frequency': 'c', 'id': 709, 'synset': 'monkey.n.01', 'synonyms': ['monkey'], 'def': 'any of various long-tailed primates', 'name': 'monkey'}, {'frequency': 'f', 'id': 710, 'synset': 'motor.n.01', 'synonyms': ['motor'], 'def': 'machine that converts other forms of energy into mechanical energy and so imparts motion', 'name': 'motor'}, {'frequency': 'f', 'id': 711, 'synset': 'motor_scooter.n.01', 'synonyms': ['motor_scooter', 'scooter'], 'def': 'a wheeled vehicle with small wheels and a low-powered engine', 'name': 'motor_scooter'}, {'frequency': 'r', 'id': 712, 'synset': 'motor_vehicle.n.01', 'synonyms': ['motor_vehicle', 'automotive_vehicle'], 'def': 'a self-propelled wheeled vehicle that does not run on rails', 'name': 'motor_vehicle'}, {'frequency': 'r', 'id': 713, 'synset': 'motorboat.n.01', 'synonyms': ['motorboat', 'powerboat'], 'def': 'a boat propelled by an internal-combustion engine', 'name': 'motorboat'}, {'frequency': 'f', 'id': 714, 'synset': 'motorcycle.n.01', 'synonyms': ['motorcycle'], 'def': 'a motor vehicle with two wheels and a strong frame', 'name': 'motorcycle'}, {'frequency': 'f', 'id': 715, 'synset': 'mound.n.01', 'synonyms': ['mound_(baseball)', "pitcher's_mound"], 'def': '(baseball) the slight elevation on which the pitcher stands', 'name': 'mound_(baseball)'}, {'frequency': 'r', 'id': 716, 'synset': 'mouse.n.01', 'synonyms': ['mouse_(animal_rodent)'], 'def': 'a small rodent with pointed snouts and small ears on elongated bodies with slender usually hairless tails', 'name': 'mouse_(animal_rodent)'}, {'frequency': 'f', 'id': 717, 'synset': 'mouse.n.04', 'synonyms': ['mouse_(computer_equipment)', 'computer_mouse'], 'def': 'a computer input device that controls an on-screen pointer', 'name': 'mouse_(computer_equipment)'}, {'frequency': 'f', 'id': 718, 'synset': 'mousepad.n.01', 'synonyms': ['mousepad'], 'def': 'a small portable pad that provides an operating surface for a computer mouse', 'name': 'mousepad'}, {'frequency': 'c', 'id': 719, 'synset': 'muffin.n.01', 'synonyms': ['muffin'], 'def': 'a sweet quick bread baked in a cup-shaped pan', 'name': 'muffin'}, {'frequency': 'f', 'id': 720, 'synset': 'mug.n.04', 'synonyms': ['mug'], 'def': 'with handle and usually cylindrical', 'name': 'mug'}, {'frequency': 'f', 'id': 721, 'synset': 'mushroom.n.02', 'synonyms': ['mushroom'], 'def': 'a common mushroom', 'name': 'mushroom'}, {'frequency': 'r', 'id': 722, 'synset': 'music_stool.n.01', 'synonyms': ['music_stool', 'piano_stool'], 'def': 'a stool for piano players; usually adjustable in height', 'name': 'music_stool'}, {'frequency': 'r', 'id': 723, 'synset': 'musical_instrument.n.01', 'synonyms': ['musical_instrument', 'instrument_(musical)'], 'def': 'any of various devices or contrivances that can be used to produce musical tones or sounds', 'name': 'musical_instrument'}, {'frequency': 'r', 'id': 724, 'synset': 'nailfile.n.01', 'synonyms': ['nailfile'], 'def': 'a small flat file for shaping the nails', 'name': 'nailfile'}, {'frequency': 'r', 'id': 725, 'synset': 'nameplate.n.01', 'synonyms': ['nameplate'], 'def': 'a plate bearing a name', 'name': 'nameplate'}, {'frequency': 'f', 'id': 726, 'synset': 'napkin.n.01', 'synonyms': ['napkin', 'table_napkin', 'serviette'], 'def': 'a small piece of table linen or paper that is used to wipe the mouth and to cover the lap in order to protect clothing', 'name': 'napkin'}, {'frequency': 'r', 'id': 727, 'synset': 'neckerchief.n.01', 'synonyms': ['neckerchief'], 'def': 'a kerchief worn around the neck', 'name': 'neckerchief'}, {'frequency': 'f', 'id': 728, 'synset': 'necklace.n.01', 'synonyms': ['necklace'], 'def': 'jewelry consisting of a cord or chain (often bearing gems) worn about the neck as an ornament', 'name': 'necklace'}, {'frequency': 'f', 'id': 729, 'synset': 'necktie.n.01', 'synonyms': ['necktie', 'tie_(necktie)'], 'def': 'neckwear consisting of a long narrow piece of material worn under a collar and tied in knot at the front', 'name': 'necktie'}, {'frequency': 'r', 'id': 730, 'synset': 'needle.n.03', 'synonyms': ['needle'], 'def': 'a sharp pointed implement (usually metal)', 'name': 'needle'}, {'frequency': 'c', 'id': 731, 'synset': 'nest.n.01', 'synonyms': ['nest'], 'def': 'a structure in which animals lay eggs or give birth to their young', 'name': 'nest'}, {'frequency': 'r', 'id': 732, 'synset': 'newsstand.n.01', 'synonyms': ['newsstand'], 'def': 'a stall where newspapers and other periodicals are sold', 'name': 'newsstand'}, {'frequency': 'c', 'id': 733, 'synset': 'nightwear.n.01', 'synonyms': ['nightshirt', 'nightwear', 'sleepwear', 'nightclothes'], 'def': 'garments designed to be worn in bed', 'name': 'nightshirt'}, {'frequency': 'r', 'id': 734, 'synset': 'nosebag.n.01', 'synonyms': ['nosebag_(for_animals)', 'feedbag'], 'def': 'a canvas bag that is used to feed an animal (such as a horse); covers the muzzle and fastens at the top of the head', 'name': 'nosebag_(for_animals)'}, {'frequency': 'r', 'id': 735, 'synset': 'noseband.n.01', 'synonyms': ['noseband_(for_animals)', 'nosepiece_(for_animals)'], 'def': "a strap that is the part of a bridle that goes over the animal's nose", 'name': 'noseband_(for_animals)'}, {'frequency': 'f', 'id': 736, 'synset': 'notebook.n.01', 'synonyms': ['notebook'], 'def': 'a book with blank pages for recording notes or memoranda', 'name': 'notebook'}, {'frequency': 'c', 'id': 737, 'synset': 'notepad.n.01', 'synonyms': ['notepad'], 'def': 'a pad of paper for keeping notes', 'name': 'notepad'}, {'frequency': 'c', 'id': 738, 'synset': 'nut.n.03', 'synonyms': ['nut'], 'def': 'a small metal block (usually square or hexagonal) with internal screw thread to be fitted onto a bolt', 'name': 'nut'}, {'frequency': 'r', 'id': 739, 'synset': 'nutcracker.n.01', 'synonyms': ['nutcracker'], 'def': 'a hand tool used to crack nuts open', 'name': 'nutcracker'}, {'frequency': 'c', 'id': 740, 'synset': 'oar.n.01', 'synonyms': ['oar'], 'def': 'an implement used to propel or steer a boat', 'name': 'oar'}, {'frequency': 'r', 'id': 741, 'synset': 'octopus.n.01', 'synonyms': ['octopus_(food)'], 'def': 'tentacles of octopus prepared as food', 'name': 'octopus_(food)'}, {'frequency': 'r', 'id': 742, 'synset': 'octopus.n.02', 'synonyms': ['octopus_(animal)'], 'def': 'bottom-living cephalopod having a soft oval body with eight long tentacles', 'name': 'octopus_(animal)'}, {'frequency': 'c', 'id': 743, 'synset': 'oil_lamp.n.01', 'synonyms': ['oil_lamp', 'kerosene_lamp', 'kerosine_lamp'], 'def': 'a lamp that burns oil (as kerosine) for light', 'name': 'oil_lamp'}, {'frequency': 'c', 'id': 744, 'synset': 'olive_oil.n.01', 'synonyms': ['olive_oil'], 'def': 'oil from olives', 'name': 'olive_oil'}, {'frequency': 'r', 'id': 745, 'synset': 'omelet.n.01', 'synonyms': ['omelet', 'omelette'], 'def': 'beaten eggs cooked until just set; may be folded around e.g. ham or cheese or jelly', 'name': 'omelet'}, {'frequency': 'f', 'id': 746, 'synset': 'onion.n.01', 'synonyms': ['onion'], 'def': 'the bulb of an onion plant', 'name': 'onion'}, {'frequency': 'f', 'id': 747, 'synset': 'orange.n.01', 'synonyms': ['orange_(fruit)'], 'def': 'orange (FRUIT of an orange tree)', 'name': 'orange_(fruit)'}, {'frequency': 'c', 'id': 748, 'synset': 'orange_juice.n.01', 'synonyms': ['orange_juice'], 'def': 'bottled or freshly squeezed juice of oranges', 'name': 'orange_juice'}, {'frequency': 'r', 'id': 749, 'synset': 'oregano.n.01', 'synonyms': ['oregano', 'marjoram'], 'def': 'aromatic Eurasian perennial herb used in cooking and baking', 'name': 'oregano'}, {'frequency': 'c', 'id': 750, 'synset': 'ostrich.n.02', 'synonyms': ['ostrich'], 'def': 'fast-running African flightless bird with two-toed feet; largest living bird', 'name': 'ostrich'}, {'frequency': 'c', 'id': 751, 'synset': 'ottoman.n.03', 'synonyms': ['ottoman', 'pouf', 'pouffe', 'hassock'], 'def': 'thick cushion used as a seat', 'name': 'ottoman'}, {'frequency': 'c', 'id': 752, 'synset': 'overall.n.01', 'synonyms': ['overalls_(clothing)'], 'def': 'work clothing consisting of denim trousers usually with a bib and shoulder straps', 'name': 'overalls_(clothing)'}, {'frequency': 'c', 'id': 753, 'synset': 'owl.n.01', 'synonyms': ['owl'], 'def': 'nocturnal bird of prey with hawk-like beak and claws and large head with front-facing eyes', 'name': 'owl'}, {'frequency': 'c', 'id': 754, 'synset': 'packet.n.03', 'synonyms': ['packet'], 'def': 'a small package or bundle', 'name': 'packet'}, {'frequency': 'r', 'id': 755, 'synset': 'pad.n.03', 'synonyms': ['inkpad', 'inking_pad', 'stamp_pad'], 'def': 'absorbent material saturated with ink used to transfer ink evenly to a rubber stamp', 'name': 'inkpad'}, {'frequency': 'c', 'id': 756, 'synset': 'pad.n.04', 'synonyms': ['pad'], 'def': 'a flat mass of soft material used for protection, stuffing, or comfort', 'name': 'pad'}, {'frequency': 'c', 'id': 757, 'synset': 'paddle.n.04', 'synonyms': ['paddle', 'boat_paddle'], 'def': 'a short light oar used without an oarlock to propel a canoe or small boat', 'name': 'paddle'}, {'frequency': 'c', 'id': 758, 'synset': 'padlock.n.01', 'synonyms': ['padlock'], 'def': 'a detachable, portable lock', 'name': 'padlock'}, {'frequency': 'r', 'id': 759, 'synset': 'paintbox.n.01', 'synonyms': ['paintbox'], 'def': "a box containing a collection of cubes or tubes of artists' paint", 'name': 'paintbox'}, {'frequency': 'c', 'id': 760, 'synset': 'paintbrush.n.01', 'synonyms': ['paintbrush'], 'def': 'a brush used as an applicator to apply paint', 'name': 'paintbrush'}, {'frequency': 'f', 'id': 761, 'synset': 'painting.n.01', 'synonyms': ['painting'], 'def': 'graphic art consisting of an artistic composition made by applying paints to a surface', 'name': 'painting'}, {'frequency': 'c', 'id': 762, 'synset': 'pajama.n.02', 'synonyms': ['pajamas', 'pyjamas'], 'def': 'loose-fitting nightclothes worn for sleeping or lounging', 'name': 'pajamas'}, {'frequency': 'c', 'id': 763, 'synset': 'palette.n.02', 'synonyms': ['palette', 'pallet'], 'def': 'board that provides a flat surface on which artists mix paints and the range of colors used', 'name': 'palette'}, {'frequency': 'f', 'id': 764, 'synset': 'pan.n.01', 'synonyms': ['pan_(for_cooking)', 'cooking_pan'], 'def': 'cooking utensil consisting of a wide metal vessel', 'name': 'pan_(for_cooking)'}, {'frequency': 'r', 'id': 765, 'synset': 'pan.n.03', 'synonyms': ['pan_(metal_container)'], 'def': 'shallow container made of metal', 'name': 'pan_(metal_container)'}, {'frequency': 'c', 'id': 766, 'synset': 'pancake.n.01', 'synonyms': ['pancake'], 'def': 'a flat cake of thin batter fried on both sides on a griddle', 'name': 'pancake'}, {'frequency': 'r', 'id': 767, 'synset': 'pantyhose.n.01', 'synonyms': ['pantyhose'], 'def': "a woman's tights consisting of underpants and stockings", 'name': 'pantyhose'}, {'frequency': 'r', 'id': 768, 'synset': 'papaya.n.02', 'synonyms': ['papaya'], 'def': 'large oval melon-like tropical fruit with yellowish flesh', 'name': 'papaya'}, {'frequency': 'r', 'id': 769, 'synset': 'paper_clip.n.01', 'synonyms': ['paperclip'], 'def': 'a wire or plastic clip for holding sheets of paper together', 'name': 'paperclip'}, {'frequency': 'f', 'id': 770, 'synset': 'paper_plate.n.01', 'synonyms': ['paper_plate'], 'def': 'a disposable plate made of cardboard', 'name': 'paper_plate'}, {'frequency': 'f', 'id': 771, 'synset': 'paper_towel.n.01', 'synonyms': ['paper_towel'], 'def': 'a disposable towel made of absorbent paper', 'name': 'paper_towel'}, {'frequency': 'r', 'id': 772, 'synset': 'paperback_book.n.01', 'synonyms': ['paperback_book', 'paper-back_book', 'softback_book', 'soft-cover_book'], 'def': 'a book with paper covers', 'name': 'paperback_book'}, {'frequency': 'r', 'id': 773, 'synset': 'paperweight.n.01', 'synonyms': ['paperweight'], 'def': 'a weight used to hold down a stack of papers', 'name': 'paperweight'}, {'frequency': 'c', 'id': 774, 'synset': 'parachute.n.01', 'synonyms': ['parachute'], 'def': 'rescue equipment consisting of a device that fills with air and retards your fall', 'name': 'parachute'}, {'frequency': 'r', 'id': 775, 'synset': 'parakeet.n.01', 'synonyms': ['parakeet', 'parrakeet', 'parroket', 'paraquet', 'paroquet', 'parroquet'], 'def': 'any of numerous small slender long-tailed parrots', 'name': 'parakeet'}, {'frequency': 'c', 'id': 776, 'synset': 'parasail.n.01', 'synonyms': ['parasail_(sports)'], 'def': 'parachute that will lift a person up into the air when it is towed by a motorboat or a car', 'name': 'parasail_(sports)'}, {'frequency': 'r', 'id': 777, 'synset': 'parchment.n.01', 'synonyms': ['parchment'], 'def': 'a superior paper resembling sheepskin', 'name': 'parchment'}, {'frequency': 'r', 'id': 778, 'synset': 'parka.n.01', 'synonyms': ['parka', 'anorak'], 'def': "a kind of heavy jacket (`windcheater' is a British term)", 'name': 'parka'}, {'frequency': 'f', 'id': 779, 'synset': 'parking_meter.n.01', 'synonyms': ['parking_meter'], 'def': 'a coin-operated timer located next to a parking space', 'name': 'parking_meter'}, {'frequency': 'c', 'id': 780, 'synset': 'parrot.n.01', 'synonyms': ['parrot'], 'def': 'usually brightly colored tropical birds with short hooked beaks and the ability to mimic sounds', 'name': 'parrot'}, {'frequency': 'c', 'id': 781, 'synset': 'passenger_car.n.01', 'synonyms': ['passenger_car_(part_of_a_train)', 'coach_(part_of_a_train)'], 'def': 'a railcar where passengers ride', 'name': 'passenger_car_(part_of_a_train)'}, {'frequency': 'r', 'id': 782, 'synset': 'passenger_ship.n.01', 'synonyms': ['passenger_ship'], 'def': 'a ship built to carry passengers', 'name': 'passenger_ship'}, {'frequency': 'r', 'id': 783, 'synset': 'passport.n.02', 'synonyms': ['passport'], 'def': 'a document issued by a country to a citizen allowing that person to travel abroad and re-enter the home country', 'name': 'passport'}, {'frequency': 'f', 'id': 784, 'synset': 'pastry.n.02', 'synonyms': ['pastry'], 'def': 'any of various baked foods made of dough or batter', 'name': 'pastry'}, {'frequency': 'r', 'id': 785, 'synset': 'patty.n.01', 'synonyms': ['patty_(food)'], 'def': 'small flat mass of chopped food', 'name': 'patty_(food)'}, {'frequency': 'c', 'id': 786, 'synset': 'pea.n.01', 'synonyms': ['pea_(food)'], 'def': 'seed of a pea plant used for food', 'name': 'pea_(food)'}, {'frequency': 'c', 'id': 787, 'synset': 'peach.n.03', 'synonyms': ['peach'], 'def': 'downy juicy fruit with sweet yellowish or whitish flesh', 'name': 'peach'}, {'frequency': 'c', 'id': 788, 'synset': 'peanut_butter.n.01', 'synonyms': ['peanut_butter'], 'def': 'a spread made from ground peanuts', 'name': 'peanut_butter'}, {'frequency': 'c', 'id': 789, 'synset': 'pear.n.01', 'synonyms': ['pear'], 'def': 'sweet juicy gritty-textured fruit available in many varieties', 'name': 'pear'}, {'frequency': 'r', 'id': 790, 'synset': 'peeler.n.03', 'synonyms': ['peeler_(tool_for_fruit_and_vegetables)'], 'def': 'a device for peeling vegetables or fruits', 'name': 'peeler_(tool_for_fruit_and_vegetables)'}, {'frequency': 'r', 'id': 791, 'synset': 'pegboard.n.01', 'synonyms': ['pegboard'], 'def': 'a board perforated with regularly spaced holes into which pegs can be fitted', 'name': 'pegboard'}, {'frequency': 'c', 'id': 792, 'synset': 'pelican.n.01', 'synonyms': ['pelican'], 'def': 'large long-winged warm-water seabird having a large bill with a distensible pouch for fish', 'name': 'pelican'}, {'frequency': 'f', 'id': 793, 'synset': 'pen.n.01', 'synonyms': ['pen'], 'def': 'a writing implement with a point from which ink flows', 'name': 'pen'}, {'frequency': 'c', 'id': 794, 'synset': 'pencil.n.01', 'synonyms': ['pencil'], 'def': 'a thin cylindrical pointed writing implement made of wood and graphite', 'name': 'pencil'}, {'frequency': 'r', 'id': 795, 'synset': 'pencil_box.n.01', 'synonyms': ['pencil_box', 'pencil_case'], 'def': 'a box for holding pencils', 'name': 'pencil_box'}, {'frequency': 'r', 'id': 796, 'synset': 'pencil_sharpener.n.01', 'synonyms': ['pencil_sharpener'], 'def': 'a rotary implement for sharpening the point on pencils', 'name': 'pencil_sharpener'}, {'frequency': 'r', 'id': 797, 'synset': 'pendulum.n.01', 'synonyms': ['pendulum'], 'def': 'an apparatus consisting of an object mounted so that it swings freely under the influence of gravity', 'name': 'pendulum'}, {'frequency': 'c', 'id': 798, 'synset': 'penguin.n.01', 'synonyms': ['penguin'], 'def': 'short-legged flightless birds of cold southern regions having webbed feet and wings modified as flippers', 'name': 'penguin'}, {'frequency': 'r', 'id': 799, 'synset': 'pennant.n.02', 'synonyms': ['pennant'], 'def': 'a flag longer than it is wide (and often tapering)', 'name': 'pennant'}, {'frequency': 'r', 'id': 800, 'synset': 'penny.n.02', 'synonyms': ['penny_(coin)'], 'def': 'a coin worth one-hundredth of the value of the basic unit', 'name': 'penny_(coin)'}, {'frequency': 'c', 'id': 801, 'synset': 'pepper.n.03', 'synonyms': ['pepper', 'peppercorn'], 'def': 'pungent seasoning from the berry of the common pepper plant; whole or ground', 'name': 'pepper'}, {'frequency': 'c', 'id': 802, 'synset': 'pepper_mill.n.01', 'synonyms': ['pepper_mill', 'pepper_grinder'], 'def': 'a mill for grinding pepper', 'name': 'pepper_mill'}, {'frequency': 'c', 'id': 803, 'synset': 'perfume.n.02', 'synonyms': ['perfume'], 'def': 'a toiletry that emits and diffuses a fragrant odor', 'name': 'perfume'}, {'frequency': 'r', 'id': 804, 'synset': 'persimmon.n.02', 'synonyms': ['persimmon'], 'def': 'orange fruit resembling a plum; edible when fully ripe', 'name': 'persimmon'}, {'frequency': 'f', 'id': 805, 'synset': 'person.n.01', 'synonyms': ['baby', 'child', 'boy', 'girl', 'man', 'woman', 'person', 'human'], 'def': 'a human being', 'name': 'baby'}, {'frequency': 'r', 'id': 806, 'synset': 'pet.n.01', 'synonyms': ['pet'], 'def': 'a domesticated animal kept for companionship or amusement', 'name': 'pet'}, {'frequency': 'r', 'id': 807, 'synset': 'petfood.n.01', 'synonyms': ['petfood', 'pet-food'], 'def': 'food prepared for animal pets', 'name': 'petfood'}, {'frequency': 'r', 'id': 808, 'synset': 'pew.n.01', 'synonyms': ['pew_(church_bench)', 'church_bench'], 'def': 'long bench with backs; used in church by the congregation', 'name': 'pew_(church_bench)'}, {'frequency': 'r', 'id': 809, 'synset': 'phonebook.n.01', 'synonyms': ['phonebook', 'telephone_book', 'telephone_directory'], 'def': 'a directory containing an alphabetical list of telephone subscribers and their telephone numbers', 'name': 'phonebook'}, {'frequency': 'c', 'id': 810, 'synset': 'phonograph_record.n.01', 'synonyms': ['phonograph_record', 'phonograph_recording', 'record_(phonograph_recording)'], 'def': 'sound recording consisting of a typically black disk with a continuous groove', 'name': 'phonograph_record'}, {'frequency': 'c', 'id': 811, 'synset': 'piano.n.01', 'synonyms': ['piano'], 'def': 'a keyboard instrument that is played by depressing keys that cause hammers to strike tuned strings and produce sounds', 'name': 'piano'}, {'frequency': 'f', 'id': 812, 'synset': 'pickle.n.01', 'synonyms': ['pickle'], 'def': 'vegetables (especially cucumbers) preserved in brine or vinegar', 'name': 'pickle'}, {'frequency': 'f', 'id': 813, 'synset': 'pickup.n.01', 'synonyms': ['pickup_truck'], 'def': 'a light truck with an open body and low sides and a tailboard', 'name': 'pickup_truck'}, {'frequency': 'c', 'id': 814, 'synset': 'pie.n.01', 'synonyms': ['pie'], 'def': 'dish baked in pastry-lined pan often with a pastry top', 'name': 'pie'}, {'frequency': 'c', 'id': 815, 'synset': 'pigeon.n.01', 'synonyms': ['pigeon'], 'def': 'wild and domesticated birds having a heavy body and short legs', 'name': 'pigeon'}, {'frequency': 'r', 'id': 816, 'synset': 'piggy_bank.n.01', 'synonyms': ['piggy_bank', 'penny_bank'], 'def': "a child's coin bank (often shaped like a pig)", 'name': 'piggy_bank'}, {'frequency': 'f', 'id': 817, 'synset': 'pillow.n.01', 'synonyms': ['pillow'], 'def': 'a cushion to support the head of a sleeping person', 'name': 'pillow'}, {'frequency': 'r', 'id': 818, 'synset': 'pin.n.09', 'synonyms': ['pin_(non_jewelry)'], 'def': 'a small slender (often pointed) piece of wood or metal used to support or fasten or attach things', 'name': 'pin_(non_jewelry)'}, {'frequency': 'f', 'id': 819, 'synset': 'pineapple.n.02', 'synonyms': ['pineapple'], 'def': 'large sweet fleshy tropical fruit with a tuft of stiff leaves', 'name': 'pineapple'}, {'frequency': 'c', 'id': 820, 'synset': 'pinecone.n.01', 'synonyms': ['pinecone'], 'def': 'the seed-producing cone of a pine tree', 'name': 'pinecone'}, {'frequency': 'r', 'id': 821, 'synset': 'ping-pong_ball.n.01', 'synonyms': ['ping-pong_ball'], 'def': 'light hollow ball used in playing table tennis', 'name': 'ping-pong_ball'}, {'frequency': 'r', 'id': 822, 'synset': 'pinwheel.n.03', 'synonyms': ['pinwheel'], 'def': 'a toy consisting of vanes of colored paper or plastic that is pinned to a stick and spins when it is pointed into the wind', 'name': 'pinwheel'}, {'frequency': 'r', 'id': 823, 'synset': 'pipe.n.01', 'synonyms': ['tobacco_pipe'], 'def': 'a tube with a small bowl at one end; used for smoking tobacco', 'name': 'tobacco_pipe'}, {'frequency': 'f', 'id': 824, 'synset': 'pipe.n.02', 'synonyms': ['pipe', 'piping'], 'def': 'a long tube made of metal or plastic that is used to carry water or oil or gas etc.', 'name': 'pipe'}, {'frequency': 'r', 'id': 825, 'synset': 'pistol.n.01', 'synonyms': ['pistol', 'handgun'], 'def': 'a firearm that is held and fired with one hand', 'name': 'pistol'}, {'frequency': 'r', 'id': 826, 'synset': 'pita.n.01', 'synonyms': ['pita_(bread)', 'pocket_bread'], 'def': 'usually small round bread that can open into a pocket for filling', 'name': 'pita_(bread)'}, {'frequency': 'f', 'id': 827, 'synset': 'pitcher.n.02', 'synonyms': ['pitcher_(vessel_for_liquid)', 'ewer'], 'def': 'an open vessel with a handle and a spout for pouring', 'name': 'pitcher_(vessel_for_liquid)'}, {'frequency': 'r', 'id': 828, 'synset': 'pitchfork.n.01', 'synonyms': ['pitchfork'], 'def': 'a long-handled hand tool with sharp widely spaced prongs for lifting and pitching hay', 'name': 'pitchfork'}, {'frequency': 'f', 'id': 829, 'synset': 'pizza.n.01', 'synonyms': ['pizza'], 'def': 'Italian open pie made of thin bread dough spread with a spiced mixture of e.g. tomato sauce and cheese', 'name': 'pizza'}, {'frequency': 'f', 'id': 830, 'synset': 'place_mat.n.01', 'synonyms': ['place_mat'], 'def': 'a mat placed on a table for an individual place setting', 'name': 'place_mat'}, {'frequency': 'f', 'id': 831, 'synset': 'plate.n.04', 'synonyms': ['plate'], 'def': 'dish on which food is served or from which food is eaten', 'name': 'plate'}, {'frequency': 'c', 'id': 832, 'synset': 'platter.n.01', 'synonyms': ['platter'], 'def': 'a large shallow dish used for serving food', 'name': 'platter'}, {'frequency': 'r', 'id': 833, 'synset': 'playing_card.n.01', 'synonyms': ['playing_card'], 'def': 'one of a pack of cards that are used to play card games', 'name': 'playing_card'}, {'frequency': 'r', 'id': 834, 'synset': 'playpen.n.01', 'synonyms': ['playpen'], 'def': 'a portable enclosure in which babies may be left to play', 'name': 'playpen'}, {'frequency': 'c', 'id': 835, 'synset': 'pliers.n.01', 'synonyms': ['pliers', 'plyers'], 'def': 'a gripping hand tool with two hinged arms and (usually) serrated jaws', 'name': 'pliers'}, {'frequency': 'r', 'id': 836, 'synset': 'plow.n.01', 'synonyms': ['plow_(farm_equipment)', 'plough_(farm_equipment)'], 'def': 'a farm tool having one or more heavy blades to break the soil and cut a furrow prior to sowing', 'name': 'plow_(farm_equipment)'}, {'frequency': 'r', 'id': 837, 'synset': 'pocket_watch.n.01', 'synonyms': ['pocket_watch'], 'def': 'a watch that is carried in a small watch pocket', 'name': 'pocket_watch'}, {'frequency': 'c', 'id': 838, 'synset': 'pocketknife.n.01', 'synonyms': ['pocketknife'], 'def': 'a knife with a blade that folds into the handle; suitable for carrying in the pocket', 'name': 'pocketknife'}, {'frequency': 'c', 'id': 839, 'synset': 'poker.n.01', 'synonyms': ['poker_(fire_stirring_tool)', 'stove_poker', 'fire_hook'], 'def': 'fire iron consisting of a metal rod with a handle; used to stir a fire', 'name': 'poker_(fire_stirring_tool)'}, {'frequency': 'f', 'id': 840, 'synset': 'pole.n.01', 'synonyms': ['pole', 'post'], 'def': 'a long (usually round) rod of wood or metal or plastic', 'name': 'pole'}, {'frequency': 'r', 'id': 841, 'synset': 'police_van.n.01', 'synonyms': ['police_van', 'police_wagon', 'paddy_wagon', 'patrol_wagon'], 'def': 'van used by police to transport prisoners', 'name': 'police_van'}, {'frequency': 'f', 'id': 842, 'synset': 'polo_shirt.n.01', 'synonyms': ['polo_shirt', 'sport_shirt'], 'def': 'a shirt with short sleeves designed for comfort and casual wear', 'name': 'polo_shirt'}, {'frequency': 'r', 'id': 843, 'synset': 'poncho.n.01', 'synonyms': ['poncho'], 'def': 'a blanket-like cloak with a hole in the center for the head', 'name': 'poncho'}, {'frequency': 'c', 'id': 844, 'synset': 'pony.n.05', 'synonyms': ['pony'], 'def': 'any of various breeds of small gentle horses usually less than five feet high at the shoulder', 'name': 'pony'}, {'frequency': 'r', 'id': 845, 'synset': 'pool_table.n.01', 'synonyms': ['pool_table', 'billiard_table', 'snooker_table'], 'def': 'game equipment consisting of a heavy table on which pool is played', 'name': 'pool_table'}, {'frequency': 'f', 'id': 846, 'synset': 'pop.n.02', 'synonyms': ['pop_(soda)', 'soda_(pop)', 'tonic', 'soft_drink'], 'def': 'a sweet drink containing carbonated water and flavoring', 'name': 'pop_(soda)'}, {'frequency': 'r', 'id': 847, 'synset': 'portrait.n.02', 'synonyms': ['portrait', 'portrayal'], 'def': 'any likeness of a person, in any medium', 'name': 'portrait'}, {'frequency': 'c', 'id': 848, 'synset': 'postbox.n.01', 'synonyms': ['postbox_(public)', 'mailbox_(public)'], 'def': 'public box for deposit of mail', 'name': 'postbox_(public)'}, {'frequency': 'c', 'id': 849, 'synset': 'postcard.n.01', 'synonyms': ['postcard', 'postal_card', 'mailing-card'], 'def': 'a card for sending messages by post without an envelope', 'name': 'postcard'}, {'frequency': 'f', 'id': 850, 'synset': 'poster.n.01', 'synonyms': ['poster', 'placard'], 'def': 'a sign posted in a public place as an advertisement', 'name': 'poster'}, {'frequency': 'f', 'id': 851, 'synset': 'pot.n.01', 'synonyms': ['pot'], 'def': 'metal or earthenware cooking vessel that is usually round and deep; often has a handle and lid', 'name': 'pot'}, {'frequency': 'f', 'id': 852, 'synset': 'pot.n.04', 'synonyms': ['flowerpot'], 'def': 'a container in which plants are cultivated', 'name': 'flowerpot'}, {'frequency': 'f', 'id': 853, 'synset': 'potato.n.01', 'synonyms': ['potato'], 'def': 'an edible tuber native to South America', 'name': 'potato'}, {'frequency': 'c', 'id': 854, 'synset': 'potholder.n.01', 'synonyms': ['potholder'], 'def': 'an insulated pad for holding hot pots', 'name': 'potholder'}, {'frequency': 'c', 'id': 855, 'synset': 'pottery.n.01', 'synonyms': ['pottery', 'clayware'], 'def': 'ceramic ware made from clay and baked in a kiln', 'name': 'pottery'}, {'frequency': 'c', 'id': 856, 'synset': 'pouch.n.01', 'synonyms': ['pouch'], 'def': 'a small or medium size container for holding or carrying things', 'name': 'pouch'}, {'frequency': 'r', 'id': 857, 'synset': 'power_shovel.n.01', 'synonyms': ['power_shovel', 'excavator', 'digger'], 'def': 'a machine for excavating', 'name': 'power_shovel'}, {'frequency': 'c', 'id': 858, 'synset': 'prawn.n.01', 'synonyms': ['prawn', 'shrimp'], 'def': 'any of various edible decapod crustaceans', 'name': 'prawn'}, {'frequency': 'f', 'id': 859, 'synset': 'printer.n.03', 'synonyms': ['printer', 'printing_machine'], 'def': 'a machine that prints', 'name': 'printer'}, {'frequency': 'c', 'id': 860, 'synset': 'projectile.n.01', 'synonyms': ['projectile_(weapon)', 'missile'], 'def': 'a weapon that is forcibly thrown or projected at a targets', 'name': 'projectile_(weapon)'}, {'frequency': 'c', 'id': 861, 'synset': 'projector.n.02', 'synonyms': ['projector'], 'def': 'an optical instrument that projects an enlarged image onto a screen', 'name': 'projector'}, {'frequency': 'f', 'id': 862, 'synset': 'propeller.n.01', 'synonyms': ['propeller', 'propellor'], 'def': 'a mechanical device that rotates to push against air or water', 'name': 'propeller'}, {'frequency': 'r', 'id': 863, 'synset': 'prune.n.01', 'synonyms': ['prune'], 'def': 'dried plum', 'name': 'prune'}, {'frequency': 'r', 'id': 864, 'synset': 'pudding.n.01', 'synonyms': ['pudding'], 'def': 'any of various soft thick unsweetened baked dishes', 'name': 'pudding'}, {'frequency': 'r', 'id': 865, 'synset': 'puffer.n.02', 'synonyms': ['puffer_(fish)', 'pufferfish', 'blowfish', 'globefish'], 'def': 'fishes whose elongated spiny body can inflate itself with water or air to form a globe', 'name': 'puffer_(fish)'}, {'frequency': 'r', 'id': 866, 'synset': 'puffin.n.01', 'synonyms': ['puffin'], 'def': 'seabirds having short necks and brightly colored compressed bills', 'name': 'puffin'}, {'frequency': 'r', 'id': 867, 'synset': 'pug.n.01', 'synonyms': ['pug-dog'], 'def': 'small compact smooth-coated breed of Asiatic origin having a tightly curled tail and broad flat wrinkled muzzle', 'name': 'pug-dog'}, {'frequency': 'c', 'id': 868, 'synset': 'pumpkin.n.02', 'synonyms': ['pumpkin'], 'def': 'usually large pulpy deep-yellow round fruit of the squash family maturing in late summer or early autumn', 'name': 'pumpkin'}, {'frequency': 'r', 'id': 869, 'synset': 'punch.n.03', 'synonyms': ['puncher'], 'def': 'a tool for making holes or indentations', 'name': 'puncher'}, {'frequency': 'r', 'id': 870, 'synset': 'puppet.n.01', 'synonyms': ['puppet', 'marionette'], 'def': 'a small figure of a person operated from above with strings by a puppeteer', 'name': 'puppet'}, {'frequency': 'r', 'id': 871, 'synset': 'puppy.n.01', 'synonyms': ['puppy'], 'def': 'a young dog', 'name': 'puppy'}, {'frequency': 'r', 'id': 872, 'synset': 'quesadilla.n.01', 'synonyms': ['quesadilla'], 'def': 'a tortilla that is filled with cheese and heated', 'name': 'quesadilla'}, {'frequency': 'r', 'id': 873, 'synset': 'quiche.n.02', 'synonyms': ['quiche'], 'def': 'a tart filled with rich unsweetened custard; often contains other ingredients (as cheese or ham or seafood or vegetables)', 'name': 'quiche'}, {'frequency': 'f', 'id': 874, 'synset': 'quilt.n.01', 'synonyms': ['quilt', 'comforter'], 'def': 'bedding made of two layers of cloth filled with stuffing and stitched together', 'name': 'quilt'}, {'frequency': 'c', 'id': 875, 'synset': 'rabbit.n.01', 'synonyms': ['rabbit'], 'def': 'any of various burrowing animals of the family Leporidae having long ears and short tails', 'name': 'rabbit'}, {'frequency': 'r', 'id': 876, 'synset': 'racer.n.02', 'synonyms': ['race_car', 'racing_car'], 'def': 'a fast car that competes in races', 'name': 'race_car'}, {'frequency': 'c', 'id': 877, 'synset': 'racket.n.04', 'synonyms': ['racket', 'racquet'], 'def': 'a sports implement used to strike a ball in various games', 'name': 'racket'}, {'frequency': 'r', 'id': 878, 'synset': 'radar.n.01', 'synonyms': ['radar'], 'def': 'measuring instrument in which the echo of a pulse of microwave radiation is used to detect and locate distant objects', 'name': 'radar'}, {'frequency': 'c', 'id': 879, 'synset': 'radiator.n.03', 'synonyms': ['radiator'], 'def': 'a mechanism consisting of a metal honeycomb through which hot fluids circulate', 'name': 'radiator'}, {'frequency': 'c', 'id': 880, 'synset': 'radio_receiver.n.01', 'synonyms': ['radio_receiver', 'radio_set', 'radio', 'tuner_(radio)'], 'def': 'an electronic receiver that detects and demodulates and amplifies transmitted radio signals', 'name': 'radio_receiver'}, {'frequency': 'c', 'id': 881, 'synset': 'radish.n.03', 'synonyms': ['radish', 'daikon'], 'def': 'pungent edible root of any of various cultivated radish plants', 'name': 'radish'}, {'frequency': 'c', 'id': 882, 'synset': 'raft.n.01', 'synonyms': ['raft'], 'def': 'a flat float (usually made of logs or planks) that can be used for transport or as a platform for swimmers', 'name': 'raft'}, {'frequency': 'r', 'id': 883, 'synset': 'rag_doll.n.01', 'synonyms': ['rag_doll'], 'def': 'a cloth doll that is stuffed and (usually) painted', 'name': 'rag_doll'}, {'frequency': 'c', 'id': 884, 'synset': 'raincoat.n.01', 'synonyms': ['raincoat', 'waterproof_jacket'], 'def': 'a water-resistant coat', 'name': 'raincoat'}, {'frequency': 'c', 'id': 885, 'synset': 'ram.n.05', 'synonyms': ['ram_(animal)'], 'def': 'uncastrated adult male sheep', 'name': 'ram_(animal)'}, {'frequency': 'c', 'id': 886, 'synset': 'raspberry.n.02', 'synonyms': ['raspberry'], 'def': 'red or black edible aggregate berries usually smaller than the related blackberries', 'name': 'raspberry'}, {'frequency': 'r', 'id': 887, 'synset': 'rat.n.01', 'synonyms': ['rat'], 'def': 'any of various long-tailed rodents similar to but larger than a mouse', 'name': 'rat'}, {'frequency': 'c', 'id': 888, 'synset': 'razorblade.n.01', 'synonyms': ['razorblade'], 'def': 'a blade that has very sharp edge', 'name': 'razorblade'}, {'frequency': 'c', 'id': 889, 'synset': 'reamer.n.01', 'synonyms': ['reamer_(juicer)', 'juicer', 'juice_reamer'], 'def': 'a squeezer with a conical ridged center that is used for squeezing juice from citrus fruit', 'name': 'reamer_(juicer)'}, {'frequency': 'f', 'id': 890, 'synset': 'rearview_mirror.n.01', 'synonyms': ['rearview_mirror'], 'def': 'car mirror that reflects the view out of the rear window', 'name': 'rearview_mirror'}, {'frequency': 'c', 'id': 891, 'synset': 'receipt.n.02', 'synonyms': ['receipt'], 'def': 'an acknowledgment (usually tangible) that payment has been made', 'name': 'receipt'}, {'frequency': 'c', 'id': 892, 'synset': 'recliner.n.01', 'synonyms': ['recliner', 'reclining_chair', 'lounger_(chair)'], 'def': 'an armchair whose back can be lowered and foot can be raised to allow the sitter to recline in it', 'name': 'recliner'}, {'frequency': 'r', 'id': 893, 'synset': 'record_player.n.01', 'synonyms': ['record_player', 'phonograph_(record_player)', 'turntable'], 'def': 'machine in which rotating records cause a stylus to vibrate and the vibrations are amplified acoustically or electronically', 'name': 'record_player'}, {'frequency': 'r', 'id': 894, 'synset': 'red_cabbage.n.02', 'synonyms': ['red_cabbage'], 'def': 'compact head of purplish-red leaves', 'name': 'red_cabbage'}, {'frequency': 'f', 'id': 895, 'synset': 'reflector.n.01', 'synonyms': ['reflector'], 'def': 'device that reflects light, radiation, etc.', 'name': 'reflector'}, {'frequency': 'f', 'id': 896, 'synset': 'remote_control.n.01', 'synonyms': ['remote_control'], 'def': 'a device that can be used to control a machine or apparatus from a distance', 'name': 'remote_control'}, {'frequency': 'c', 'id': 897, 'synset': 'rhinoceros.n.01', 'synonyms': ['rhinoceros'], 'def': 'massive powerful herbivorous odd-toed ungulate of southeast Asia and Africa having very thick skin and one or two horns on the snout', 'name': 'rhinoceros'}, {'frequency': 'r', 'id': 898, 'synset': 'rib.n.03', 'synonyms': ['rib_(food)'], 'def': 'cut of meat including one or more ribs', 'name': 'rib_(food)'}, {'frequency': 'r', 'id': 899, 'synset': 'rifle.n.01', 'synonyms': ['rifle'], 'def': 'a shoulder firearm with a long barrel', 'name': 'rifle'}, {'frequency': 'f', 'id': 900, 'synset': 'ring.n.08', 'synonyms': ['ring'], 'def': 'jewelry consisting of a circlet of precious metal (often set with jewels) worn on the finger', 'name': 'ring'}, {'frequency': 'r', 'id': 901, 'synset': 'river_boat.n.01', 'synonyms': ['river_boat'], 'def': 'a boat used on rivers or to ply a river', 'name': 'river_boat'}, {'frequency': 'r', 'id': 902, 'synset': 'road_map.n.02', 'synonyms': ['road_map'], 'def': '(NOT A ROAD) a MAP showing roads (for automobile travel)', 'name': 'road_map'}, {'frequency': 'c', 'id': 903, 'synset': 'robe.n.01', 'synonyms': ['robe'], 'def': 'any loose flowing garment', 'name': 'robe'}, {'frequency': 'c', 'id': 904, 'synset': 'rocking_chair.n.01', 'synonyms': ['rocking_chair'], 'def': 'a chair mounted on rockers', 'name': 'rocking_chair'}, {'frequency': 'r', 'id': 905, 'synset': 'roller_skate.n.01', 'synonyms': ['roller_skate'], 'def': 'a shoe with pairs of rollers (small hard wheels) fixed to the sole', 'name': 'roller_skate'}, {'frequency': 'r', 'id': 906, 'synset': 'rollerblade.n.01', 'synonyms': ['Rollerblade'], 'def': 'an in-line variant of a roller skate', 'name': 'Rollerblade'}, {'frequency': 'c', 'id': 907, 'synset': 'rolling_pin.n.01', 'synonyms': ['rolling_pin'], 'def': 'utensil consisting of a cylinder (usually of wood) with a handle at each end; used to roll out dough', 'name': 'rolling_pin'}, {'frequency': 'r', 'id': 908, 'synset': 'root_beer.n.01', 'synonyms': ['root_beer'], 'def': 'carbonated drink containing extracts of roots and herbs', 'name': 'root_beer'}, {'frequency': 'c', 'id': 909, 'synset': 'router.n.02', 'synonyms': ['router_(computer_equipment)'], 'def': 'a device that forwards data packets between computer networks', 'name': 'router_(computer_equipment)'}, {'frequency': 'f', 'id': 910, 'synset': 'rubber_band.n.01', 'synonyms': ['rubber_band', 'elastic_band'], 'def': 'a narrow band of elastic rubber used to hold things (such as papers) together', 'name': 'rubber_band'}, {'frequency': 'c', 'id': 911, 'synset': 'runner.n.08', 'synonyms': ['runner_(carpet)'], 'def': 'a long narrow carpet', 'name': 'runner_(carpet)'}, {'frequency': 'f', 'id': 912, 'synset': 'sack.n.01', 'synonyms': ['plastic_bag', 'paper_bag'], 'def': "a bag made of paper or plastic for holding customer's purchases", 'name': 'plastic_bag'}, {'frequency': 'f', 'id': 913, 'synset': 'saddle.n.01', 'synonyms': ['saddle_(on_an_animal)'], 'def': 'a seat for the rider of a horse or camel', 'name': 'saddle_(on_an_animal)'}, {'frequency': 'f', 'id': 914, 'synset': 'saddle_blanket.n.01', 'synonyms': ['saddle_blanket', 'saddlecloth', 'horse_blanket'], 'def': 'stable gear consisting of a blanket placed under the saddle', 'name': 'saddle_blanket'}, {'frequency': 'c', 'id': 915, 'synset': 'saddlebag.n.01', 'synonyms': ['saddlebag'], 'def': 'a large bag (or pair of bags) hung over a saddle', 'name': 'saddlebag'}, {'frequency': 'r', 'id': 916, 'synset': 'safety_pin.n.01', 'synonyms': ['safety_pin'], 'def': 'a pin in the form of a clasp; has a guard so the point of the pin will not stick the user', 'name': 'safety_pin'}, {'frequency': 'c', 'id': 917, 'synset': 'sail.n.01', 'synonyms': ['sail'], 'def': 'a large piece of fabric by means of which wind is used to propel a sailing vessel', 'name': 'sail'}, {'frequency': 'c', 'id': 918, 'synset': 'salad.n.01', 'synonyms': ['salad'], 'def': 'food mixtures either arranged on a plate or tossed and served with a moist dressing; usually consisting of or including greens', 'name': 'salad'}, {'frequency': 'r', 'id': 919, 'synset': 'salad_plate.n.01', 'synonyms': ['salad_plate', 'salad_bowl'], 'def': 'a plate or bowl for individual servings of salad', 'name': 'salad_plate'}, {'frequency': 'r', 'id': 920, 'synset': 'salami.n.01', 'synonyms': ['salami'], 'def': 'highly seasoned fatty sausage of pork and beef usually dried', 'name': 'salami'}, {'frequency': 'r', 'id': 921, 'synset': 'salmon.n.01', 'synonyms': ['salmon_(fish)'], 'def': 'any of various large food and game fishes of northern waters', 'name': 'salmon_(fish)'}, {'frequency': 'r', 'id': 922, 'synset': 'salmon.n.03', 'synonyms': ['salmon_(food)'], 'def': 'flesh of any of various marine or freshwater fish of the family Salmonidae', 'name': 'salmon_(food)'}, {'frequency': 'r', 'id': 923, 'synset': 'salsa.n.01', 'synonyms': ['salsa'], 'def': 'spicy sauce of tomatoes and onions and chili peppers to accompany Mexican foods', 'name': 'salsa'}, {'frequency': 'f', 'id': 924, 'synset': 'saltshaker.n.01', 'synonyms': ['saltshaker'], 'def': 'a shaker with a perforated top for sprinkling salt', 'name': 'saltshaker'}, {'frequency': 'f', 'id': 925, 'synset': 'sandal.n.01', 'synonyms': ['sandal_(type_of_shoe)'], 'def': 'a shoe consisting of a sole fastened by straps to the foot', 'name': 'sandal_(type_of_shoe)'}, {'frequency': 'f', 'id': 926, 'synset': 'sandwich.n.01', 'synonyms': ['sandwich'], 'def': 'two (or more) slices of bread with a filling between them', 'name': 'sandwich'}, {'frequency': 'r', 'id': 927, 'synset': 'satchel.n.01', 'synonyms': ['satchel'], 'def': 'luggage consisting of a small case with a flat bottom and (usually) a shoulder strap', 'name': 'satchel'}, {'frequency': 'r', 'id': 928, 'synset': 'saucepan.n.01', 'synonyms': ['saucepan'], 'def': 'a deep pan with a handle; used for stewing or boiling', 'name': 'saucepan'}, {'frequency': 'f', 'id': 929, 'synset': 'saucer.n.02', 'synonyms': ['saucer'], 'def': 'a small shallow dish for holding a cup at the table', 'name': 'saucer'}, {'frequency': 'f', 'id': 930, 'synset': 'sausage.n.01', 'synonyms': ['sausage'], 'def': 'highly seasoned minced meat stuffed in casings', 'name': 'sausage'}, {'frequency': 'r', 'id': 931, 'synset': 'sawhorse.n.01', 'synonyms': ['sawhorse', 'sawbuck'], 'def': 'a framework for holding wood that is being sawed', 'name': 'sawhorse'}, {'frequency': 'r', 'id': 932, 'synset': 'sax.n.02', 'synonyms': ['saxophone'], 'def': "a wind instrument with a `J'-shaped form typically made of brass", 'name': 'saxophone'}, {'frequency': 'f', 'id': 933, 'synset': 'scale.n.07', 'synonyms': ['scale_(measuring_instrument)'], 'def': 'a measuring instrument for weighing; shows amount of mass', 'name': 'scale_(measuring_instrument)'}, {'frequency': 'r', 'id': 934, 'synset': 'scarecrow.n.01', 'synonyms': ['scarecrow', 'strawman'], 'def': 'an effigy in the shape of a man to frighten birds away from seeds', 'name': 'scarecrow'}, {'frequency': 'f', 'id': 935, 'synset': 'scarf.n.01', 'synonyms': ['scarf'], 'def': 'a garment worn around the head or neck or shoulders for warmth or decoration', 'name': 'scarf'}, {'frequency': 'c', 'id': 936, 'synset': 'school_bus.n.01', 'synonyms': ['school_bus'], 'def': 'a bus used to transport children to or from school', 'name': 'school_bus'}, {'frequency': 'f', 'id': 937, 'synset': 'scissors.n.01', 'synonyms': ['scissors'], 'def': 'a tool having two crossed pivoting blades with looped handles', 'name': 'scissors'}, {'frequency': 'c', 'id': 938, 'synset': 'scoreboard.n.01', 'synonyms': ['scoreboard'], 'def': 'a large board for displaying the score of a contest (and some other information)', 'name': 'scoreboard'}, {'frequency': 'c', 'id': 939, 'synset': 'scrambled_eggs.n.01', 'synonyms': ['scrambled_eggs'], 'def': 'eggs beaten and cooked to a soft firm consistency while stirring', 'name': 'scrambled_eggs'}, {'frequency': 'r', 'id': 940, 'synset': 'scraper.n.01', 'synonyms': ['scraper'], 'def': 'any of various hand tools for scraping', 'name': 'scraper'}, {'frequency': 'r', 'id': 941, 'synset': 'scratcher.n.03', 'synonyms': ['scratcher'], 'def': 'a device used for scratching', 'name': 'scratcher'}, {'frequency': 'c', 'id': 942, 'synset': 'screwdriver.n.01', 'synonyms': ['screwdriver'], 'def': 'a hand tool for driving screws; has a tip that fits into the head of a screw', 'name': 'screwdriver'}, {'frequency': 'c', 'id': 943, 'synset': 'scrub_brush.n.01', 'synonyms': ['scrubbing_brush'], 'def': 'a brush with short stiff bristles for heavy cleaning', 'name': 'scrubbing_brush'}, {'frequency': 'c', 'id': 944, 'synset': 'sculpture.n.01', 'synonyms': ['sculpture'], 'def': 'a three-dimensional work of art', 'name': 'sculpture'}, {'frequency': 'r', 'id': 945, 'synset': 'seabird.n.01', 'synonyms': ['seabird', 'seafowl'], 'def': 'a bird that frequents coastal waters and the open ocean: gulls; pelicans; gannets; cormorants; albatrosses; petrels; etc.', 'name': 'seabird'}, {'frequency': 'r', 'id': 946, 'synset': 'seahorse.n.02', 'synonyms': ['seahorse'], 'def': 'small fish with horse-like heads bent sharply downward and curled tails', 'name': 'seahorse'}, {'frequency': 'r', 'id': 947, 'synset': 'seaplane.n.01', 'synonyms': ['seaplane', 'hydroplane'], 'def': 'an airplane that can land on or take off from water', 'name': 'seaplane'}, {'frequency': 'c', 'id': 948, 'synset': 'seashell.n.01', 'synonyms': ['seashell'], 'def': 'the shell of a marine organism', 'name': 'seashell'}, {'frequency': 'r', 'id': 949, 'synset': 'seedling.n.01', 'synonyms': ['seedling'], 'def': 'young plant or tree grown from a seed', 'name': 'seedling'}, {'frequency': 'c', 'id': 950, 'synset': 'serving_dish.n.01', 'synonyms': ['serving_dish'], 'def': 'a dish used for serving food', 'name': 'serving_dish'}, {'frequency': 'r', 'id': 951, 'synset': 'sewing_machine.n.01', 'synonyms': ['sewing_machine'], 'def': 'a textile machine used as a home appliance for sewing', 'name': 'sewing_machine'}, {'frequency': 'r', 'id': 952, 'synset': 'shaker.n.03', 'synonyms': ['shaker'], 'def': 'a container in which something can be shaken', 'name': 'shaker'}, {'frequency': 'c', 'id': 953, 'synset': 'shampoo.n.01', 'synonyms': ['shampoo'], 'def': 'cleansing agent consisting of soaps or detergents used for washing the hair', 'name': 'shampoo'}, {'frequency': 'r', 'id': 954, 'synset': 'shark.n.01', 'synonyms': ['shark'], 'def': 'typically large carnivorous fishes with sharpe teeth', 'name': 'shark'}, {'frequency': 'r', 'id': 955, 'synset': 'sharpener.n.01', 'synonyms': ['sharpener'], 'def': 'any implement that is used to make something (an edge or a point) sharper', 'name': 'sharpener'}, {'frequency': 'r', 'id': 956, 'synset': 'sharpie.n.03', 'synonyms': ['Sharpie'], 'def': 'a pen with indelible ink that will write on any surface', 'name': 'Sharpie'}, {'frequency': 'r', 'id': 957, 'synset': 'shaver.n.03', 'synonyms': ['shaver_(electric)', 'electric_shaver', 'electric_razor'], 'def': 'a razor powered by an electric motor', 'name': 'shaver_(electric)'}, {'frequency': 'c', 'id': 958, 'synset': 'shaving_cream.n.01', 'synonyms': ['shaving_cream', 'shaving_soap'], 'def': 'toiletry consisting that forms a rich lather for softening the beard before shaving', 'name': 'shaving_cream'}, {'frequency': 'r', 'id': 959, 'synset': 'shawl.n.01', 'synonyms': ['shawl'], 'def': 'cloak consisting of an oblong piece of cloth used to cover the head and shoulders', 'name': 'shawl'}, {'frequency': 'r', 'id': 960, 'synset': 'shears.n.01', 'synonyms': ['shears'], 'def': 'large scissors with strong blades', 'name': 'shears'}, {'frequency': 'f', 'id': 961, 'synset': 'sheep.n.01', 'synonyms': ['sheep'], 'def': 'woolly usually horned ruminant mammal related to the goat', 'name': 'sheep'}, {'frequency': 'r', 'id': 962, 'synset': 'shepherd_dog.n.01', 'synonyms': ['shepherd_dog', 'sheepdog'], 'def': 'any of various usually long-haired breeds of dog reared to herd and guard sheep', 'name': 'shepherd_dog'}, {'frequency': 'r', 'id': 963, 'synset': 'sherbert.n.01', 'synonyms': ['sherbert', 'sherbet'], 'def': 'a frozen dessert made primarily of fruit juice and sugar', 'name': 'sherbert'}, {'frequency': 'r', 'id': 964, 'synset': 'shield.n.02', 'synonyms': ['shield'], 'def': 'armor carried on the arm to intercept blows', 'name': 'shield'}, {'frequency': 'f', 'id': 965, 'synset': 'shirt.n.01', 'synonyms': ['shirt'], 'def': 'a garment worn on the upper half of the body', 'name': 'shirt'}, {'frequency': 'f', 'id': 966, 'synset': 'shoe.n.01', 'synonyms': ['shoe', 'sneaker_(type_of_shoe)', 'tennis_shoe'], 'def': 'common footwear covering the foot', 'name': 'shoe'}, {'frequency': 'c', 'id': 967, 'synset': 'shopping_bag.n.01', 'synonyms': ['shopping_bag'], 'def': 'a bag made of plastic or strong paper (often with handles); used to transport goods after shopping', 'name': 'shopping_bag'}, {'frequency': 'c', 'id': 968, 'synset': 'shopping_cart.n.01', 'synonyms': ['shopping_cart'], 'def': 'a handcart that holds groceries or other goods while shopping', 'name': 'shopping_cart'}, {'frequency': 'f', 'id': 969, 'synset': 'short_pants.n.01', 'synonyms': ['short_pants', 'shorts_(clothing)', 'trunks_(clothing)'], 'def': 'trousers that end at or above the knee', 'name': 'short_pants'}, {'frequency': 'r', 'id': 970, 'synset': 'shot_glass.n.01', 'synonyms': ['shot_glass'], 'def': 'a small glass adequate to hold a single swallow of whiskey', 'name': 'shot_glass'}, {'frequency': 'c', 'id': 971, 'synset': 'shoulder_bag.n.01', 'synonyms': ['shoulder_bag'], 'def': 'a large handbag that can be carried by a strap looped over the shoulder', 'name': 'shoulder_bag'}, {'frequency': 'c', 'id': 972, 'synset': 'shovel.n.01', 'synonyms': ['shovel'], 'def': 'a hand tool for lifting loose material such as snow, dirt, etc.', 'name': 'shovel'}, {'frequency': 'f', 'id': 973, 'synset': 'shower.n.01', 'synonyms': ['shower_head'], 'def': 'a plumbing fixture that sprays water over you', 'name': 'shower_head'}, {'frequency': 'f', 'id': 974, 'synset': 'shower_curtain.n.01', 'synonyms': ['shower_curtain'], 'def': 'a curtain that keeps water from splashing out of the shower area', 'name': 'shower_curtain'}, {'frequency': 'r', 'id': 975, 'synset': 'shredder.n.01', 'synonyms': ['shredder_(for_paper)'], 'def': 'a device that shreds documents', 'name': 'shredder_(for_paper)'}, {'frequency': 'r', 'id': 976, 'synset': 'sieve.n.01', 'synonyms': ['sieve', 'screen_(sieve)'], 'def': 'a strainer for separating lumps from powdered material or grading particles', 'name': 'sieve'}, {'frequency': 'f', 'id': 977, 'synset': 'signboard.n.01', 'synonyms': ['signboard'], 'def': 'structure displaying a board on which advertisements can be posted', 'name': 'signboard'}, {'frequency': 'c', 'id': 978, 'synset': 'silo.n.01', 'synonyms': ['silo'], 'def': 'a cylindrical tower used for storing goods', 'name': 'silo'}, {'frequency': 'f', 'id': 979, 'synset': 'sink.n.01', 'synonyms': ['sink'], 'def': 'plumbing fixture consisting of a water basin fixed to a wall or floor and having a drainpipe', 'name': 'sink'}, {'frequency': 'f', 'id': 980, 'synset': 'skateboard.n.01', 'synonyms': ['skateboard'], 'def': 'a board with wheels that is ridden in a standing or crouching position and propelled by foot', 'name': 'skateboard'}, {'frequency': 'c', 'id': 981, 'synset': 'skewer.n.01', 'synonyms': ['skewer'], 'def': 'a long pin for holding meat in position while it is being roasted', 'name': 'skewer'}, {'frequency': 'f', 'id': 982, 'synset': 'ski.n.01', 'synonyms': ['ski'], 'def': 'sports equipment for skiing on snow', 'name': 'ski'}, {'frequency': 'f', 'id': 983, 'synset': 'ski_boot.n.01', 'synonyms': ['ski_boot'], 'def': 'a stiff boot that is fastened to a ski with a ski binding', 'name': 'ski_boot'}, {'frequency': 'f', 'id': 984, 'synset': 'ski_parka.n.01', 'synonyms': ['ski_parka', 'ski_jacket'], 'def': 'a parka to be worn while skiing', 'name': 'ski_parka'}, {'frequency': 'f', 'id': 985, 'synset': 'ski_pole.n.01', 'synonyms': ['ski_pole'], 'def': 'a pole with metal points used as an aid in skiing', 'name': 'ski_pole'}, {'frequency': 'f', 'id': 986, 'synset': 'skirt.n.02', 'synonyms': ['skirt'], 'def': 'a garment hanging from the waist; worn mainly by girls and women', 'name': 'skirt'}, {'frequency': 'c', 'id': 987, 'synset': 'sled.n.01', 'synonyms': ['sled', 'sledge', 'sleigh'], 'def': 'a vehicle or flat object for transportation over snow by sliding or pulled by dogs, etc.', 'name': 'sled'}, {'frequency': 'c', 'id': 988, 'synset': 'sleeping_bag.n.01', 'synonyms': ['sleeping_bag'], 'def': 'large padded bag designed to be slept in outdoors', 'name': 'sleeping_bag'}, {'frequency': 'r', 'id': 989, 'synset': 'sling.n.05', 'synonyms': ['sling_(bandage)', 'triangular_bandage'], 'def': 'bandage to support an injured forearm; slung over the shoulder or neck', 'name': 'sling_(bandage)'}, {'frequency': 'c', 'id': 990, 'synset': 'slipper.n.01', 'synonyms': ['slipper_(footwear)', 'carpet_slipper_(footwear)'], 'def': 'low footwear that can be slipped on and off easily; usually worn indoors', 'name': 'slipper_(footwear)'}, {'frequency': 'r', 'id': 991, 'synset': 'smoothie.n.02', 'synonyms': ['smoothie'], 'def': 'a thick smooth drink consisting of fresh fruit pureed with ice cream or yoghurt or milk', 'name': 'smoothie'}, {'frequency': 'r', 'id': 992, 'synset': 'snake.n.01', 'synonyms': ['snake', 'serpent'], 'def': 'limbless scaly elongate reptile; some are venomous', 'name': 'snake'}, {'frequency': 'f', 'id': 993, 'synset': 'snowboard.n.01', 'synonyms': ['snowboard'], 'def': 'a board that resembles a broad ski or a small surfboard; used in a standing position to slide down snow-covered slopes', 'name': 'snowboard'}, {'frequency': 'c', 'id': 994, 'synset': 'snowman.n.01', 'synonyms': ['snowman'], 'def': 'a figure of a person made of packed snow', 'name': 'snowman'}, {'frequency': 'c', 'id': 995, 'synset': 'snowmobile.n.01', 'synonyms': ['snowmobile'], 'def': 'tracked vehicle for travel on snow having skis in front', 'name': 'snowmobile'}, {'frequency': 'f', 'id': 996, 'synset': 'soap.n.01', 'synonyms': ['soap'], 'def': 'a cleansing agent made from the salts of vegetable or animal fats', 'name': 'soap'}, {'frequency': 'f', 'id': 997, 'synset': 'soccer_ball.n.01', 'synonyms': ['soccer_ball'], 'def': "an inflated ball used in playing soccer (called `football' outside of the United States)", 'name': 'soccer_ball'}, {'frequency': 'f', 'id': 998, 'synset': 'sock.n.01', 'synonyms': ['sock'], 'def': 'cloth covering for the foot; worn inside the shoe; reaches to between the ankle and the knee', 'name': 'sock'}, {'frequency': 'r', 'id': 999, 'synset': 'soda_fountain.n.02', 'synonyms': ['soda_fountain'], 'def': 'an apparatus for dispensing soda water', 'name': 'soda_fountain'}, {'frequency': 'r', 'id': 1000, 'synset': 'soda_water.n.01', 'synonyms': ['carbonated_water', 'club_soda', 'seltzer', 'sparkling_water'], 'def': 'effervescent beverage artificially charged with carbon dioxide', 'name': 'carbonated_water'}, {'frequency': 'f', 'id': 1001, 'synset': 'sofa.n.01', 'synonyms': ['sofa', 'couch', 'lounge'], 'def': 'an upholstered seat for more than one person', 'name': 'sofa'}, {'frequency': 'r', 'id': 1002, 'synset': 'softball.n.01', 'synonyms': ['softball'], 'def': 'ball used in playing softball', 'name': 'softball'}, {'frequency': 'c', 'id': 1003, 'synset': 'solar_array.n.01', 'synonyms': ['solar_array', 'solar_battery', 'solar_panel'], 'def': 'electrical device consisting of a large array of connected solar cells', 'name': 'solar_array'}, {'frequency': 'r', 'id': 1004, 'synset': 'sombrero.n.02', 'synonyms': ['sombrero'], 'def': 'a straw hat with a tall crown and broad brim; worn in American southwest and in Mexico', 'name': 'sombrero'}, {'frequency': 'c', 'id': 1005, 'synset': 'soup.n.01', 'synonyms': ['soup'], 'def': 'liquid food especially of meat or fish or vegetable stock often containing pieces of solid food', 'name': 'soup'}, {'frequency': 'r', 'id': 1006, 'synset': 'soup_bowl.n.01', 'synonyms': ['soup_bowl'], 'def': 'a bowl for serving soup', 'name': 'soup_bowl'}, {'frequency': 'c', 'id': 1007, 'synset': 'soupspoon.n.01', 'synonyms': ['soupspoon'], 'def': 'a spoon with a rounded bowl for eating soup', 'name': 'soupspoon'}, {'frequency': 'c', 'id': 1008, 'synset': 'sour_cream.n.01', 'synonyms': ['sour_cream', 'soured_cream'], 'def': 'soured light cream', 'name': 'sour_cream'}, {'frequency': 'r', 'id': 1009, 'synset': 'soya_milk.n.01', 'synonyms': ['soya_milk', 'soybean_milk', 'soymilk'], 'def': 'a milk substitute containing soybean flour and water; used in some infant formulas and in making tofu', 'name': 'soya_milk'}, {'frequency': 'r', 'id': 1010, 'synset': 'space_shuttle.n.01', 'synonyms': ['space_shuttle'], 'def': "a reusable spacecraft with wings for a controlled descent through the Earth's atmosphere", 'name': 'space_shuttle'}, {'frequency': 'r', 'id': 1011, 'synset': 'sparkler.n.02', 'synonyms': ['sparkler_(fireworks)'], 'def': 'a firework that burns slowly and throws out a shower of sparks', 'name': 'sparkler_(fireworks)'}, {'frequency': 'f', 'id': 1012, 'synset': 'spatula.n.02', 'synonyms': ['spatula'], 'def': 'a hand tool with a thin flexible blade used to mix or spread soft substances', 'name': 'spatula'}, {'frequency': 'r', 'id': 1013, 'synset': 'spear.n.01', 'synonyms': ['spear', 'lance'], 'def': 'a long pointed rod used as a tool or weapon', 'name': 'spear'}, {'frequency': 'f', 'id': 1014, 'synset': 'spectacles.n.01', 'synonyms': ['spectacles', 'specs', 'eyeglasses', 'glasses'], 'def': 'optical instrument consisting of a frame that holds a pair of lenses for correcting defective vision', 'name': 'spectacles'}, {'frequency': 'c', 'id': 1015, 'synset': 'spice_rack.n.01', 'synonyms': ['spice_rack'], 'def': 'a rack for displaying containers filled with spices', 'name': 'spice_rack'}, {'frequency': 'r', 'id': 1016, 'synset': 'spider.n.01', 'synonyms': ['spider'], 'def': 'predatory arachnid with eight legs, two poison fangs, two feelers, and usually two silk-spinning organs at the back end of the body', 'name': 'spider'}, {'frequency': 'c', 'id': 1017, 'synset': 'sponge.n.01', 'synonyms': ['sponge'], 'def': 'a porous mass usable to absorb water typically used for cleaning', 'name': 'sponge'}, {'frequency': 'f', 'id': 1018, 'synset': 'spoon.n.01', 'synonyms': ['spoon'], 'def': 'a piece of cutlery with a shallow bowl-shaped container and a handle', 'name': 'spoon'}, {'frequency': 'c', 'id': 1019, 'synset': 'sportswear.n.01', 'synonyms': ['sportswear', 'athletic_wear', 'activewear'], 'def': 'attire worn for sport or for casual wear', 'name': 'sportswear'}, {'frequency': 'c', 'id': 1020, 'synset': 'spotlight.n.02', 'synonyms': ['spotlight'], 'def': 'a lamp that produces a strong beam of light to illuminate a restricted area; used to focus attention of a stage performer', 'name': 'spotlight'}, {'frequency': 'r', 'id': 1021, 'synset': 'squirrel.n.01', 'synonyms': ['squirrel'], 'def': 'a kind of arboreal rodent having a long bushy tail', 'name': 'squirrel'}, {'frequency': 'c', 'id': 1022, 'synset': 'stapler.n.01', 'synonyms': ['stapler_(stapling_machine)'], 'def': 'a machine that inserts staples into sheets of paper in order to fasten them together', 'name': 'stapler_(stapling_machine)'}, {'frequency': 'r', 'id': 1023, 'synset': 'starfish.n.01', 'synonyms': ['starfish', 'sea_star'], 'def': 'echinoderms characterized by five arms extending from a central disk', 'name': 'starfish'}, {'frequency': 'f', 'id': 1024, 'synset': 'statue.n.01', 'synonyms': ['statue_(sculpture)'], 'def': 'a sculpture representing a human or animal', 'name': 'statue_(sculpture)'}, {'frequency': 'c', 'id': 1025, 'synset': 'steak.n.01', 'synonyms': ['steak_(food)'], 'def': 'a slice of meat cut from the fleshy part of an animal or large fish', 'name': 'steak_(food)'}, {'frequency': 'r', 'id': 1026, 'synset': 'steak_knife.n.01', 'synonyms': ['steak_knife'], 'def': 'a sharp table knife used in eating steak', 'name': 'steak_knife'}, {'frequency': 'r', 'id': 1027, 'synset': 'steamer.n.02', 'synonyms': ['steamer_(kitchen_appliance)'], 'def': 'a cooking utensil that can be used to cook food by steaming it', 'name': 'steamer_(kitchen_appliance)'}, {'frequency': 'f', 'id': 1028, 'synset': 'steering_wheel.n.01', 'synonyms': ['steering_wheel'], 'def': 'a handwheel that is used for steering', 'name': 'steering_wheel'}, {'frequency': 'r', 'id': 1029, 'synset': 'stencil.n.01', 'synonyms': ['stencil'], 'def': 'a sheet of material (metal, plastic, etc.) that has been perforated with a pattern; ink or paint can pass through the perforations to create the printed pattern on the surface below', 'name': 'stencil'}, {'frequency': 'r', 'id': 1030, 'synset': 'step_ladder.n.01', 'synonyms': ['stepladder'], 'def': 'a folding portable ladder hinged at the top', 'name': 'stepladder'}, {'frequency': 'c', 'id': 1031, 'synset': 'step_stool.n.01', 'synonyms': ['step_stool'], 'def': 'a stool that has one or two steps that fold under the seat', 'name': 'step_stool'}, {'frequency': 'c', 'id': 1032, 'synset': 'stereo.n.01', 'synonyms': ['stereo_(sound_system)'], 'def': 'electronic device for playing audio', 'name': 'stereo_(sound_system)'}, {'frequency': 'r', 'id': 1033, 'synset': 'stew.n.02', 'synonyms': ['stew'], 'def': 'food prepared by stewing especially meat or fish with vegetables', 'name': 'stew'}, {'frequency': 'r', 'id': 1034, 'synset': 'stirrer.n.02', 'synonyms': ['stirrer'], 'def': 'an implement used for stirring', 'name': 'stirrer'}, {'frequency': 'f', 'id': 1035, 'synset': 'stirrup.n.01', 'synonyms': ['stirrup'], 'def': "support consisting of metal loops into which rider's feet go", 'name': 'stirrup'}, {'frequency': 'c', 'id': 1036, 'synset': 'stocking.n.01', 'synonyms': ['stockings_(leg_wear)'], 'def': 'close-fitting hosiery to cover the foot and leg; come in matched pairs', 'name': 'stockings_(leg_wear)'}, {'frequency': 'f', 'id': 1037, 'synset': 'stool.n.01', 'synonyms': ['stool'], 'def': 'a simple seat without a back or arms', 'name': 'stool'}, {'frequency': 'f', 'id': 1038, 'synset': 'stop_sign.n.01', 'synonyms': ['stop_sign'], 'def': 'a traffic sign to notify drivers that they must come to a complete stop', 'name': 'stop_sign'}, {'frequency': 'f', 'id': 1039, 'synset': 'stoplight.n.01', 'synonyms': ['brake_light'], 'def': 'a red light on the rear of a motor vehicle that signals when the brakes are applied', 'name': 'brake_light'}, {'frequency': 'f', 'id': 1040, 'synset': 'stove.n.01', 'synonyms': ['stove', 'kitchen_stove', 'range_(kitchen_appliance)', 'kitchen_range', 'cooking_stove'], 'def': 'a kitchen appliance used for cooking food', 'name': 'stove'}, {'frequency': 'c', 'id': 1041, 'synset': 'strainer.n.01', 'synonyms': ['strainer'], 'def': 'a filter to retain larger pieces while smaller pieces and liquids pass through', 'name': 'strainer'}, {'frequency': 'f', 'id': 1042, 'synset': 'strap.n.01', 'synonyms': ['strap'], 'def': 'an elongated strip of material for binding things together or holding', 'name': 'strap'}, {'frequency': 'f', 'id': 1043, 'synset': 'straw.n.04', 'synonyms': ['straw_(for_drinking)', 'drinking_straw'], 'def': 'a thin paper or plastic tube used to suck liquids into the mouth', 'name': 'straw_(for_drinking)'}, {'frequency': 'f', 'id': 1044, 'synset': 'strawberry.n.01', 'synonyms': ['strawberry'], 'def': 'sweet fleshy red fruit', 'name': 'strawberry'}, {'frequency': 'f', 'id': 1045, 'synset': 'street_sign.n.01', 'synonyms': ['street_sign'], 'def': 'a sign visible from the street', 'name': 'street_sign'}, {'frequency': 'f', 'id': 1046, 'synset': 'streetlight.n.01', 'synonyms': ['streetlight', 'street_lamp'], 'def': 'a lamp supported on a lamppost; for illuminating a street', 'name': 'streetlight'}, {'frequency': 'r', 'id': 1047, 'synset': 'string_cheese.n.01', 'synonyms': ['string_cheese'], 'def': 'cheese formed in long strings twisted together', 'name': 'string_cheese'}, {'frequency': 'r', 'id': 1048, 'synset': 'stylus.n.02', 'synonyms': ['stylus'], 'def': 'a pointed tool for writing or drawing or engraving', 'name': 'stylus'}, {'frequency': 'r', 'id': 1049, 'synset': 'subwoofer.n.01', 'synonyms': ['subwoofer'], 'def': 'a loudspeaker that is designed to reproduce very low bass frequencies', 'name': 'subwoofer'}, {'frequency': 'r', 'id': 1050, 'synset': 'sugar_bowl.n.01', 'synonyms': ['sugar_bowl'], 'def': 'a dish in which sugar is served', 'name': 'sugar_bowl'}, {'frequency': 'r', 'id': 1051, 'synset': 'sugarcane.n.01', 'synonyms': ['sugarcane_(plant)'], 'def': 'juicy canes whose sap is a source of molasses and commercial sugar; fresh canes are sometimes chewed for the juice', 'name': 'sugarcane_(plant)'}, {'frequency': 'c', 'id': 1052, 'synset': 'suit.n.01', 'synonyms': ['suit_(clothing)'], 'def': 'a set of garments (usually including a jacket and trousers or skirt) for outerwear all of the same fabric and color', 'name': 'suit_(clothing)'}, {'frequency': 'c', 'id': 1053, 'synset': 'sunflower.n.01', 'synonyms': ['sunflower'], 'def': 'any plant of the genus Helianthus having large flower heads with dark disk florets and showy yellow rays', 'name': 'sunflower'}, {'frequency': 'f', 'id': 1054, 'synset': 'sunglasses.n.01', 'synonyms': ['sunglasses'], 'def': 'spectacles that are darkened or polarized to protect the eyes from the glare of the sun', 'name': 'sunglasses'}, {'frequency': 'c', 'id': 1055, 'synset': 'sunhat.n.01', 'synonyms': ['sunhat'], 'def': 'a hat with a broad brim that protects the face from direct exposure to the sun', 'name': 'sunhat'}, {'frequency': 'r', 'id': 1056, 'synset': 'sunscreen.n.01', 'synonyms': ['sunscreen', 'sunblock'], 'def': 'a cream spread on the skin; contains a chemical to filter out ultraviolet light and so protect from sunburn', 'name': 'sunscreen'}, {'frequency': 'f', 'id': 1057, 'synset': 'surfboard.n.01', 'synonyms': ['surfboard'], 'def': 'a narrow buoyant board for riding surf', 'name': 'surfboard'}, {'frequency': 'c', 'id': 1058, 'synset': 'sushi.n.01', 'synonyms': ['sushi'], 'def': 'rice (with raw fish) wrapped in seaweed', 'name': 'sushi'}, {'frequency': 'c', 'id': 1059, 'synset': 'swab.n.02', 'synonyms': ['mop'], 'def': 'cleaning implement consisting of absorbent material fastened to a handle; for cleaning floors', 'name': 'mop'}, {'frequency': 'c', 'id': 1060, 'synset': 'sweat_pants.n.01', 'synonyms': ['sweat_pants'], 'def': 'loose-fitting trousers with elastic cuffs; worn by athletes', 'name': 'sweat_pants'}, {'frequency': 'c', 'id': 1061, 'synset': 'sweatband.n.02', 'synonyms': ['sweatband'], 'def': 'a band of material tied around the forehead or wrist to absorb sweat', 'name': 'sweatband'}, {'frequency': 'f', 'id': 1062, 'synset': 'sweater.n.01', 'synonyms': ['sweater'], 'def': 'a crocheted or knitted garment covering the upper part of the body', 'name': 'sweater'}, {'frequency': 'f', 'id': 1063, 'synset': 'sweatshirt.n.01', 'synonyms': ['sweatshirt'], 'def': 'cotton knit pullover with long sleeves worn during athletic activity', 'name': 'sweatshirt'}, {'frequency': 'c', 'id': 1064, 'synset': 'sweet_potato.n.02', 'synonyms': ['sweet_potato'], 'def': 'the edible tuberous root of the sweet potato vine', 'name': 'sweet_potato'}, {'frequency': 'f', 'id': 1065, 'synset': 'swimsuit.n.01', 'synonyms': ['swimsuit', 'swimwear', 'bathing_suit', 'swimming_costume', 'bathing_costume', 'swimming_trunks', 'bathing_trunks'], 'def': 'garment worn for swimming', 'name': 'swimsuit'}, {'frequency': 'c', 'id': 1066, 'synset': 'sword.n.01', 'synonyms': ['sword'], 'def': 'a cutting or thrusting weapon that has a long metal blade', 'name': 'sword'}, {'frequency': 'r', 'id': 1067, 'synset': 'syringe.n.01', 'synonyms': ['syringe'], 'def': 'a medical instrument used to inject or withdraw fluids', 'name': 'syringe'}, {'frequency': 'r', 'id': 1068, 'synset': 'tabasco.n.02', 'synonyms': ['Tabasco_sauce'], 'def': 'very spicy sauce (trade name Tabasco) made from fully-aged red peppers', 'name': 'Tabasco_sauce'}, {'frequency': 'r', 'id': 1069, 'synset': 'table-tennis_table.n.01', 'synonyms': ['table-tennis_table', 'ping-pong_table'], 'def': 'a table used for playing table tennis', 'name': 'table-tennis_table'}, {'frequency': 'f', 'id': 1070, 'synset': 'table.n.02', 'synonyms': ['table'], 'def': 'a piece of furniture having a smooth flat top that is usually supported by one or more vertical legs', 'name': 'table'}, {'frequency': 'c', 'id': 1071, 'synset': 'table_lamp.n.01', 'synonyms': ['table_lamp'], 'def': 'a lamp that sits on a table', 'name': 'table_lamp'}, {'frequency': 'f', 'id': 1072, 'synset': 'tablecloth.n.01', 'synonyms': ['tablecloth'], 'def': 'a covering spread over a dining table', 'name': 'tablecloth'}, {'frequency': 'r', 'id': 1073, 'synset': 'tachometer.n.01', 'synonyms': ['tachometer'], 'def': 'measuring instrument for indicating speed of rotation', 'name': 'tachometer'}, {'frequency': 'r', 'id': 1074, 'synset': 'taco.n.02', 'synonyms': ['taco'], 'def': 'a small tortilla cupped around a filling', 'name': 'taco'}, {'frequency': 'f', 'id': 1075, 'synset': 'tag.n.02', 'synonyms': ['tag'], 'def': 'a label associated with something for the purpose of identification or information', 'name': 'tag'}, {'frequency': 'f', 'id': 1076, 'synset': 'taillight.n.01', 'synonyms': ['taillight', 'rear_light'], 'def': 'lamp (usually red) mounted at the rear of a motor vehicle', 'name': 'taillight'}, {'frequency': 'r', 'id': 1077, 'synset': 'tambourine.n.01', 'synonyms': ['tambourine'], 'def': 'a shallow drum with a single drumhead and with metallic disks in the sides', 'name': 'tambourine'}, {'frequency': 'r', 'id': 1078, 'synset': 'tank.n.01', 'synonyms': ['army_tank', 'armored_combat_vehicle', 'armoured_combat_vehicle'], 'def': 'an enclosed armored military vehicle; has a cannon and moves on caterpillar treads', 'name': 'army_tank'}, {'frequency': 'c', 'id': 1079, 'synset': 'tank.n.02', 'synonyms': ['tank_(storage_vessel)', 'storage_tank'], 'def': 'a large (usually metallic) vessel for holding gases or liquids', 'name': 'tank_(storage_vessel)'}, {'frequency': 'f', 'id': 1080, 'synset': 'tank_top.n.01', 'synonyms': ['tank_top_(clothing)'], 'def': 'a tight-fitting sleeveless shirt with wide shoulder straps and low neck and no front opening', 'name': 'tank_top_(clothing)'}, {'frequency': 'c', 'id': 1081, 'synset': 'tape.n.01', 'synonyms': ['tape_(sticky_cloth_or_paper)'], 'def': 'a long thin piece of cloth or paper as used for binding or fastening', 'name': 'tape_(sticky_cloth_or_paper)'}, {'frequency': 'c', 'id': 1082, 'synset': 'tape.n.04', 'synonyms': ['tape_measure', 'measuring_tape'], 'def': 'measuring instrument consisting of a narrow strip (cloth or metal) marked in inches or centimeters and used for measuring lengths', 'name': 'tape_measure'}, {'frequency': 'c', 'id': 1083, 'synset': 'tapestry.n.02', 'synonyms': ['tapestry'], 'def': 'a heavy textile with a woven design; used for curtains and upholstery', 'name': 'tapestry'}, {'frequency': 'f', 'id': 1084, 'synset': 'tarpaulin.n.01', 'synonyms': ['tarp'], 'def': 'waterproofed canvas', 'name': 'tarp'}, {'frequency': 'c', 'id': 1085, 'synset': 'tartan.n.01', 'synonyms': ['tartan', 'plaid'], 'def': 'a cloth having a crisscross design', 'name': 'tartan'}, {'frequency': 'c', 'id': 1086, 'synset': 'tassel.n.01', 'synonyms': ['tassel'], 'def': 'adornment consisting of a bunch of cords fastened at one end', 'name': 'tassel'}, {'frequency': 'r', 'id': 1087, 'synset': 'tea_bag.n.01', 'synonyms': ['tea_bag'], 'def': 'a measured amount of tea in a bag for an individual serving of tea', 'name': 'tea_bag'}, {'frequency': 'c', 'id': 1088, 'synset': 'teacup.n.02', 'synonyms': ['teacup'], 'def': 'a cup from which tea is drunk', 'name': 'teacup'}, {'frequency': 'c', 'id': 1089, 'synset': 'teakettle.n.01', 'synonyms': ['teakettle'], 'def': 'kettle for boiling water to make tea', 'name': 'teakettle'}, {'frequency': 'c', 'id': 1090, 'synset': 'teapot.n.01', 'synonyms': ['teapot'], 'def': 'pot for brewing tea; usually has a spout and handle', 'name': 'teapot'}, {'frequency': 'f', 'id': 1091, 'synset': 'teddy.n.01', 'synonyms': ['teddy_bear'], 'def': "plaything consisting of a child's toy bear (usually plush and stuffed with soft materials)", 'name': 'teddy_bear'}, {'frequency': 'f', 'id': 1092, 'synset': 'telephone.n.01', 'synonyms': ['telephone', 'phone', 'telephone_set'], 'def': 'electronic device for communicating by voice over long distances', 'name': 'telephone'}, {'frequency': 'c', 'id': 1093, 'synset': 'telephone_booth.n.01', 'synonyms': ['telephone_booth', 'phone_booth', 'call_box', 'telephone_box', 'telephone_kiosk'], 'def': 'booth for using a telephone', 'name': 'telephone_booth'}, {'frequency': 'f', 'id': 1094, 'synset': 'telephone_pole.n.01', 'synonyms': ['telephone_pole', 'telegraph_pole', 'telegraph_post'], 'def': 'tall pole supporting telephone wires', 'name': 'telephone_pole'}, {'frequency': 'r', 'id': 1095, 'synset': 'telephoto_lens.n.01', 'synonyms': ['telephoto_lens', 'zoom_lens'], 'def': 'a camera lens that magnifies the image', 'name': 'telephoto_lens'}, {'frequency': 'c', 'id': 1096, 'synset': 'television_camera.n.01', 'synonyms': ['television_camera', 'tv_camera'], 'def': 'television equipment for capturing and recording video', 'name': 'television_camera'}, {'frequency': 'f', 'id': 1097, 'synset': 'television_receiver.n.01', 'synonyms': ['television_set', 'tv', 'tv_set'], 'def': 'an electronic device that receives television signals and displays them on a screen', 'name': 'television_set'}, {'frequency': 'f', 'id': 1098, 'synset': 'tennis_ball.n.01', 'synonyms': ['tennis_ball'], 'def': 'ball about the size of a fist used in playing tennis', 'name': 'tennis_ball'}, {'frequency': 'f', 'id': 1099, 'synset': 'tennis_racket.n.01', 'synonyms': ['tennis_racket'], 'def': 'a racket used to play tennis', 'name': 'tennis_racket'}, {'frequency': 'r', 'id': 1100, 'synset': 'tequila.n.01', 'synonyms': ['tequila'], 'def': 'Mexican liquor made from fermented juices of an agave plant', 'name': 'tequila'}, {'frequency': 'c', 'id': 1101, 'synset': 'thermometer.n.01', 'synonyms': ['thermometer'], 'def': 'measuring instrument for measuring temperature', 'name': 'thermometer'}, {'frequency': 'c', 'id': 1102, 'synset': 'thermos.n.01', 'synonyms': ['thermos_bottle'], 'def': 'vacuum flask that preserves temperature of hot or cold drinks', 'name': 'thermos_bottle'}, {'frequency': 'c', 'id': 1103, 'synset': 'thermostat.n.01', 'synonyms': ['thermostat'], 'def': 'a regulator for automatically regulating temperature by starting or stopping the supply of heat', 'name': 'thermostat'}, {'frequency': 'r', 'id': 1104, 'synset': 'thimble.n.02', 'synonyms': ['thimble'], 'def': 'a small metal cap to protect the finger while sewing; can be used as a small container', 'name': 'thimble'}, {'frequency': 'c', 'id': 1105, 'synset': 'thread.n.01', 'synonyms': ['thread', 'yarn'], 'def': 'a fine cord of twisted fibers (of cotton or silk or wool or nylon etc.) used in sewing and weaving', 'name': 'thread'}, {'frequency': 'c', 'id': 1106, 'synset': 'thumbtack.n.01', 'synonyms': ['thumbtack', 'drawing_pin', 'pushpin'], 'def': 'a tack for attaching papers to a bulletin board or drawing board', 'name': 'thumbtack'}, {'frequency': 'c', 'id': 1107, 'synset': 'tiara.n.01', 'synonyms': ['tiara'], 'def': 'a jeweled headdress worn by women on formal occasions', 'name': 'tiara'}, {'frequency': 'c', 'id': 1108, 'synset': 'tiger.n.02', 'synonyms': ['tiger'], 'def': 'large feline of forests in most of Asia having a tawny coat with black stripes', 'name': 'tiger'}, {'frequency': 'c', 'id': 1109, 'synset': 'tights.n.01', 'synonyms': ['tights_(clothing)', 'leotards'], 'def': 'skintight knit hose covering the body from the waist to the feet worn by acrobats and dancers and as stockings by women and girls', 'name': 'tights_(clothing)'}, {'frequency': 'c', 'id': 1110, 'synset': 'timer.n.01', 'synonyms': ['timer', 'stopwatch'], 'def': 'a timepiece that measures a time interval and signals its end', 'name': 'timer'}, {'frequency': 'f', 'id': 1111, 'synset': 'tinfoil.n.01', 'synonyms': ['tinfoil'], 'def': 'foil made of tin or an alloy of tin and lead', 'name': 'tinfoil'}, {'frequency': 'r', 'id': 1112, 'synset': 'tinsel.n.01', 'synonyms': ['tinsel'], 'def': 'a showy decoration that is basically valueless', 'name': 'tinsel'}, {'frequency': 'f', 'id': 1113, 'synset': 'tissue.n.02', 'synonyms': ['tissue_paper'], 'def': 'a soft thin (usually translucent) paper', 'name': 'tissue_paper'}, {'frequency': 'c', 'id': 1114, 'synset': 'toast.n.01', 'synonyms': ['toast_(food)'], 'def': 'slice of bread that has been toasted', 'name': 'toast_(food)'}, {'frequency': 'f', 'id': 1115, 'synset': 'toaster.n.02', 'synonyms': ['toaster'], 'def': 'a kitchen appliance (usually electric) for toasting bread', 'name': 'toaster'}, {'frequency': 'c', 'id': 1116, 'synset': 'toaster_oven.n.01', 'synonyms': ['toaster_oven'], 'def': 'kitchen appliance consisting of a small electric oven for toasting or warming food', 'name': 'toaster_oven'}, {'frequency': 'f', 'id': 1117, 'synset': 'toilet.n.02', 'synonyms': ['toilet'], 'def': 'a plumbing fixture for defecation and urination', 'name': 'toilet'}, {'frequency': 'f', 'id': 1118, 'synset': 'toilet_tissue.n.01', 'synonyms': ['toilet_tissue', 'toilet_paper', 'bathroom_tissue'], 'def': 'a soft thin absorbent paper for use in toilets', 'name': 'toilet_tissue'}, {'frequency': 'f', 'id': 1119, 'synset': 'tomato.n.01', 'synonyms': ['tomato'], 'def': 'mildly acid red or yellow pulpy fruit eaten as a vegetable', 'name': 'tomato'}, {'frequency': 'c', 'id': 1120, 'synset': 'tongs.n.01', 'synonyms': ['tongs'], 'def': 'any of various devices for taking hold of objects; usually have two hinged legs with handles above and pointed hooks below', 'name': 'tongs'}, {'frequency': 'c', 'id': 1121, 'synset': 'toolbox.n.01', 'synonyms': ['toolbox'], 'def': 'a box or chest or cabinet for holding hand tools', 'name': 'toolbox'}, {'frequency': 'f', 'id': 1122, 'synset': 'toothbrush.n.01', 'synonyms': ['toothbrush'], 'def': 'small brush; has long handle; used to clean teeth', 'name': 'toothbrush'}, {'frequency': 'f', 'id': 1123, 'synset': 'toothpaste.n.01', 'synonyms': ['toothpaste'], 'def': 'a dentifrice in the form of a paste', 'name': 'toothpaste'}, {'frequency': 'c', 'id': 1124, 'synset': 'toothpick.n.01', 'synonyms': ['toothpick'], 'def': 'pick consisting of a small strip of wood or plastic; used to pick food from between the teeth', 'name': 'toothpick'}, {'frequency': 'c', 'id': 1125, 'synset': 'top.n.09', 'synonyms': ['cover'], 'def': 'covering for a hole (especially a hole in the top of a container)', 'name': 'cover'}, {'frequency': 'c', 'id': 1126, 'synset': 'tortilla.n.01', 'synonyms': ['tortilla'], 'def': 'thin unleavened pancake made from cornmeal or wheat flour', 'name': 'tortilla'}, {'frequency': 'c', 'id': 1127, 'synset': 'tow_truck.n.01', 'synonyms': ['tow_truck'], 'def': 'a truck equipped to hoist and pull wrecked cars (or to remove cars from no-parking zones)', 'name': 'tow_truck'}, {'frequency': 'f', 'id': 1128, 'synset': 'towel.n.01', 'synonyms': ['towel'], 'def': 'a rectangular piece of absorbent cloth (or paper) for drying or wiping', 'name': 'towel'}, {'frequency': 'f', 'id': 1129, 'synset': 'towel_rack.n.01', 'synonyms': ['towel_rack', 'towel_rail', 'towel_bar'], 'def': 'a rack consisting of one or more bars on which towels can be hung', 'name': 'towel_rack'}, {'frequency': 'f', 'id': 1130, 'synset': 'toy.n.03', 'synonyms': ['toy'], 'def': 'a device regarded as providing amusement', 'name': 'toy'}, {'frequency': 'c', 'id': 1131, 'synset': 'tractor.n.01', 'synonyms': ['tractor_(farm_equipment)'], 'def': 'a wheeled vehicle with large wheels; used in farming and other applications', 'name': 'tractor_(farm_equipment)'}, {'frequency': 'f', 'id': 1132, 'synset': 'traffic_light.n.01', 'synonyms': ['traffic_light'], 'def': 'a device to control vehicle traffic often consisting of three or more lights', 'name': 'traffic_light'}, {'frequency': 'r', 'id': 1133, 'synset': 'trail_bike.n.01', 'synonyms': ['dirt_bike'], 'def': 'a lightweight motorcycle equipped with rugged tires and suspension for off-road use', 'name': 'dirt_bike'}, {'frequency': 'c', 'id': 1134, 'synset': 'trailer_truck.n.01', 'synonyms': ['trailer_truck', 'tractor_trailer', 'trucking_rig', 'articulated_lorry', 'semi_truck'], 'def': 'a truck consisting of a tractor and trailer together', 'name': 'trailer_truck'}, {'frequency': 'f', 'id': 1135, 'synset': 'train.n.01', 'synonyms': ['train_(railroad_vehicle)', 'railroad_train'], 'def': 'public or private transport provided by a line of railway cars coupled together and drawn by a locomotive', 'name': 'train_(railroad_vehicle)'}, {'frequency': 'r', 'id': 1136, 'synset': 'trampoline.n.01', 'synonyms': ['trampoline'], 'def': 'gymnastic apparatus consisting of a strong canvas sheet attached with springs to a metal frame', 'name': 'trampoline'}, {'frequency': 'f', 'id': 1137, 'synset': 'tray.n.01', 'synonyms': ['tray'], 'def': 'an open receptacle for holding or displaying or serving articles or food', 'name': 'tray'}, {'frequency': 'r', 'id': 1138, 'synset': 'tree_house.n.01', 'synonyms': ['tree_house'], 'def': '(NOT A TREE) a PLAYHOUSE built in the branches of a tree', 'name': 'tree_house'}, {'frequency': 'r', 'id': 1139, 'synset': 'trench_coat.n.01', 'synonyms': ['trench_coat'], 'def': 'a military style raincoat; belted with deep pockets', 'name': 'trench_coat'}, {'frequency': 'r', 'id': 1140, 'synset': 'triangle.n.05', 'synonyms': ['triangle_(musical_instrument)'], 'def': 'a percussion instrument consisting of a metal bar bent in the shape of an open triangle', 'name': 'triangle_(musical_instrument)'}, {'frequency': 'r', 'id': 1141, 'synset': 'tricycle.n.01', 'synonyms': ['tricycle'], 'def': 'a vehicle with three wheels that is moved by foot pedals', 'name': 'tricycle'}, {'frequency': 'c', 'id': 1142, 'synset': 'tripod.n.01', 'synonyms': ['tripod'], 'def': 'a three-legged rack used for support', 'name': 'tripod'}, {'frequency': 'f', 'id': 1143, 'synset': 'trouser.n.01', 'synonyms': ['trousers', 'pants_(clothing)'], 'def': 'a garment extending from the waist to the knee or ankle, covering each leg separately', 'name': 'trousers'}, {'frequency': 'f', 'id': 1144, 'synset': 'truck.n.01', 'synonyms': ['truck'], 'def': 'an automotive vehicle suitable for hauling', 'name': 'truck'}, {'frequency': 'r', 'id': 1145, 'synset': 'truffle.n.03', 'synonyms': ['truffle_(chocolate)', 'chocolate_truffle'], 'def': 'creamy chocolate candy', 'name': 'truffle_(chocolate)'}, {'frequency': 'c', 'id': 1146, 'synset': 'trunk.n.02', 'synonyms': ['trunk'], 'def': 'luggage consisting of a large strong case used when traveling or for storage', 'name': 'trunk'}, {'frequency': 'r', 'id': 1147, 'synset': 'tub.n.02', 'synonyms': ['vat'], 'def': 'a large open vessel for holding or storing liquids', 'name': 'vat'}, {'frequency': 'c', 'id': 1148, 'synset': 'turban.n.01', 'synonyms': ['turban'], 'def': 'a traditional headdress consisting of a long scarf wrapped around the head', 'name': 'turban'}, {'frequency': 'r', 'id': 1149, 'synset': 'turkey.n.01', 'synonyms': ['turkey_(bird)'], 'def': 'large gallinaceous bird with fan-shaped tail; widely domesticated for food', 'name': 'turkey_(bird)'}, {'frequency': 'c', 'id': 1150, 'synset': 'turkey.n.04', 'synonyms': ['turkey_(food)'], 'def': 'flesh of large domesticated fowl usually roasted', 'name': 'turkey_(food)'}, {'frequency': 'r', 'id': 1151, 'synset': 'turnip.n.01', 'synonyms': ['turnip'], 'def': 'widely cultivated plant having a large fleshy edible white or yellow root', 'name': 'turnip'}, {'frequency': 'c', 'id': 1152, 'synset': 'turtle.n.02', 'synonyms': ['turtle'], 'def': 'any of various aquatic and land reptiles having a bony shell and flipper-like limbs for swimming', 'name': 'turtle'}, {'frequency': 'r', 'id': 1153, 'synset': 'turtleneck.n.01', 'synonyms': ['turtleneck_(clothing)', 'polo-neck'], 'def': 'a sweater or jersey with a high close-fitting collar', 'name': 'turtleneck_(clothing)'}, {'frequency': 'r', 'id': 1154, 'synset': 'typewriter.n.01', 'synonyms': ['typewriter'], 'def': 'hand-operated character printer for printing written messages one character at a time', 'name': 'typewriter'}, {'frequency': 'f', 'id': 1155, 'synset': 'umbrella.n.01', 'synonyms': ['umbrella'], 'def': 'a lightweight handheld collapsible canopy', 'name': 'umbrella'}, {'frequency': 'c', 'id': 1156, 'synset': 'underwear.n.01', 'synonyms': ['underwear', 'underclothes', 'underclothing', 'underpants'], 'def': 'undergarment worn next to the skin and under the outer garments', 'name': 'underwear'}, {'frequency': 'r', 'id': 1157, 'synset': 'unicycle.n.01', 'synonyms': ['unicycle'], 'def': 'a vehicle with a single wheel that is driven by pedals', 'name': 'unicycle'}, {'frequency': 'c', 'id': 1158, 'synset': 'urinal.n.01', 'synonyms': ['urinal'], 'def': 'a plumbing fixture (usually attached to the wall) used by men to urinate', 'name': 'urinal'}, {'frequency': 'r', 'id': 1159, 'synset': 'urn.n.01', 'synonyms': ['urn'], 'def': 'a large vase that usually has a pedestal or feet', 'name': 'urn'}, {'frequency': 'c', 'id': 1160, 'synset': 'vacuum.n.04', 'synonyms': ['vacuum_cleaner'], 'def': 'an electrical home appliance that cleans by suction', 'name': 'vacuum_cleaner'}, {'frequency': 'c', 'id': 1161, 'synset': 'valve.n.03', 'synonyms': ['valve'], 'def': 'control consisting of a mechanical device for controlling the flow of a fluid', 'name': 'valve'}, {'frequency': 'f', 'id': 1162, 'synset': 'vase.n.01', 'synonyms': ['vase'], 'def': 'an open jar of glass or porcelain used as an ornament or to hold flowers', 'name': 'vase'}, {'frequency': 'c', 'id': 1163, 'synset': 'vending_machine.n.01', 'synonyms': ['vending_machine'], 'def': 'a slot machine for selling goods', 'name': 'vending_machine'}, {'frequency': 'f', 'id': 1164, 'synset': 'vent.n.01', 'synonyms': ['vent', 'blowhole', 'air_vent'], 'def': 'a hole for the escape of gas or air', 'name': 'vent'}, {'frequency': 'c', 'id': 1165, 'synset': 'videotape.n.01', 'synonyms': ['videotape'], 'def': 'a video recording made on magnetic tape', 'name': 'videotape'}, {'frequency': 'r', 'id': 1166, 'synset': 'vinegar.n.01', 'synonyms': ['vinegar'], 'def': 'sour-tasting liquid produced usually by oxidation of the alcohol in wine or cider and used as a condiment or food preservative', 'name': 'vinegar'}, {'frequency': 'r', 'id': 1167, 'synset': 'violin.n.01', 'synonyms': ['violin', 'fiddle'], 'def': 'bowed stringed instrument that is the highest member of the violin family', 'name': 'violin'}, {'frequency': 'r', 'id': 1168, 'synset': 'vodka.n.01', 'synonyms': ['vodka'], 'def': 'unaged colorless liquor originating in Russia', 'name': 'vodka'}, {'frequency': 'r', 'id': 1169, 'synset': 'volleyball.n.02', 'synonyms': ['volleyball'], 'def': 'an inflated ball used in playing volleyball', 'name': 'volleyball'}, {'frequency': 'r', 'id': 1170, 'synset': 'vulture.n.01', 'synonyms': ['vulture'], 'def': 'any of various large birds of prey having naked heads and weak claws and feeding chiefly on carrion', 'name': 'vulture'}, {'frequency': 'c', 'id': 1171, 'synset': 'waffle.n.01', 'synonyms': ['waffle'], 'def': 'pancake batter baked in a waffle iron', 'name': 'waffle'}, {'frequency': 'r', 'id': 1172, 'synset': 'waffle_iron.n.01', 'synonyms': ['waffle_iron'], 'def': 'a kitchen appliance for baking waffles', 'name': 'waffle_iron'}, {'frequency': 'c', 'id': 1173, 'synset': 'wagon.n.01', 'synonyms': ['wagon'], 'def': 'any of various kinds of wheeled vehicles drawn by an animal or a tractor', 'name': 'wagon'}, {'frequency': 'c', 'id': 1174, 'synset': 'wagon_wheel.n.01', 'synonyms': ['wagon_wheel'], 'def': 'a wheel of a wagon', 'name': 'wagon_wheel'}, {'frequency': 'c', 'id': 1175, 'synset': 'walking_stick.n.01', 'synonyms': ['walking_stick'], 'def': 'a stick carried in the hand for support in walking', 'name': 'walking_stick'}, {'frequency': 'c', 'id': 1176, 'synset': 'wall_clock.n.01', 'synonyms': ['wall_clock'], 'def': 'a clock mounted on a wall', 'name': 'wall_clock'}, {'frequency': 'f', 'id': 1177, 'synset': 'wall_socket.n.01', 'synonyms': ['wall_socket', 'wall_plug', 'electric_outlet', 'electrical_outlet', 'outlet', 'electric_receptacle'], 'def': 'receptacle providing a place in a wiring system where current can be taken to run electrical devices', 'name': 'wall_socket'}, {'frequency': 'c', 'id': 1178, 'synset': 'wallet.n.01', 'synonyms': ['wallet', 'billfold'], 'def': 'a pocket-size case for holding papers and paper money', 'name': 'wallet'}, {'frequency': 'r', 'id': 1179, 'synset': 'walrus.n.01', 'synonyms': ['walrus'], 'def': 'either of two large northern marine mammals having ivory tusks and tough hide over thick blubber', 'name': 'walrus'}, {'frequency': 'r', 'id': 1180, 'synset': 'wardrobe.n.01', 'synonyms': ['wardrobe'], 'def': 'a tall piece of furniture that provides storage space for clothes; has a door and rails or hooks for hanging clothes', 'name': 'wardrobe'}, {'frequency': 'r', 'id': 1181, 'synset': 'wasabi.n.02', 'synonyms': ['wasabi'], 'def': 'the thick green root of the wasabi plant that the Japanese use in cooking and that tastes like strong horseradish', 'name': 'wasabi'}, {'frequency': 'c', 'id': 1182, 'synset': 'washer.n.03', 'synonyms': ['automatic_washer', 'washing_machine'], 'def': 'a home appliance for washing clothes and linens automatically', 'name': 'automatic_washer'}, {'frequency': 'f', 'id': 1183, 'synset': 'watch.n.01', 'synonyms': ['watch', 'wristwatch'], 'def': 'a small, portable timepiece', 'name': 'watch'}, {'frequency': 'f', 'id': 1184, 'synset': 'water_bottle.n.01', 'synonyms': ['water_bottle'], 'def': 'a bottle for holding water', 'name': 'water_bottle'}, {'frequency': 'c', 'id': 1185, 'synset': 'water_cooler.n.01', 'synonyms': ['water_cooler'], 'def': 'a device for cooling and dispensing drinking water', 'name': 'water_cooler'}, {'frequency': 'c', 'id': 1186, 'synset': 'water_faucet.n.01', 'synonyms': ['water_faucet', 'water_tap', 'tap_(water_faucet)'], 'def': 'a faucet for drawing water from a pipe or cask', 'name': 'water_faucet'}, {'frequency': 'r', 'id': 1187, 'synset': 'water_filter.n.01', 'synonyms': ['water_filter'], 'def': 'a filter to remove impurities from the water supply', 'name': 'water_filter'}, {'frequency': 'r', 'id': 1188, 'synset': 'water_heater.n.01', 'synonyms': ['water_heater', 'hot-water_heater'], 'def': 'a heater and storage tank to supply heated water', 'name': 'water_heater'}, {'frequency': 'r', 'id': 1189, 'synset': 'water_jug.n.01', 'synonyms': ['water_jug'], 'def': 'a jug that holds water', 'name': 'water_jug'}, {'frequency': 'r', 'id': 1190, 'synset': 'water_pistol.n.01', 'synonyms': ['water_gun', 'squirt_gun'], 'def': 'plaything consisting of a toy pistol that squirts water', 'name': 'water_gun'}, {'frequency': 'c', 'id': 1191, 'synset': 'water_scooter.n.01', 'synonyms': ['water_scooter', 'sea_scooter', 'jet_ski'], 'def': 'a motorboat resembling a motor scooter (NOT A SURFBOARD OR WATER SKI)', 'name': 'water_scooter'}, {'frequency': 'c', 'id': 1192, 'synset': 'water_ski.n.01', 'synonyms': ['water_ski'], 'def': 'broad ski for skimming over water towed by a speedboat (DO NOT MARK WATER)', 'name': 'water_ski'}, {'frequency': 'c', 'id': 1193, 'synset': 'water_tower.n.01', 'synonyms': ['water_tower'], 'def': 'a large reservoir for water', 'name': 'water_tower'}, {'frequency': 'c', 'id': 1194, 'synset': 'watering_can.n.01', 'synonyms': ['watering_can'], 'def': 'a container with a handle and a spout with a perforated nozzle; used to sprinkle water over plants', 'name': 'watering_can'}, {'frequency': 'c', 'id': 1195, 'synset': 'watermelon.n.02', 'synonyms': ['watermelon'], 'def': 'large oblong or roundish melon with a hard green rind and sweet watery red or occasionally yellowish pulp', 'name': 'watermelon'}, {'frequency': 'f', 'id': 1196, 'synset': 'weathervane.n.01', 'synonyms': ['weathervane', 'vane_(weathervane)', 'wind_vane'], 'def': 'mechanical device attached to an elevated structure; rotates freely to show the direction of the wind', 'name': 'weathervane'}, {'frequency': 'c', 'id': 1197, 'synset': 'webcam.n.01', 'synonyms': ['webcam'], 'def': 'a digital camera designed to take digital photographs and transmit them over the internet', 'name': 'webcam'}, {'frequency': 'c', 'id': 1198, 'synset': 'wedding_cake.n.01', 'synonyms': ['wedding_cake', 'bridecake'], 'def': 'a rich cake with two or more tiers and covered with frosting and decorations; served at a wedding reception', 'name': 'wedding_cake'}, {'frequency': 'c', 'id': 1199, 'synset': 'wedding_ring.n.01', 'synonyms': ['wedding_ring', 'wedding_band'], 'def': 'a ring given to the bride and/or groom at the wedding', 'name': 'wedding_ring'}, {'frequency': 'f', 'id': 1200, 'synset': 'wet_suit.n.01', 'synonyms': ['wet_suit'], 'def': 'a close-fitting garment made of a permeable material; worn in cold water to retain body heat', 'name': 'wet_suit'}, {'frequency': 'f', 'id': 1201, 'synset': 'wheel.n.01', 'synonyms': ['wheel'], 'def': 'a circular frame with spokes (or a solid disc) that can rotate on a shaft or axle', 'name': 'wheel'}, {'frequency': 'c', 'id': 1202, 'synset': 'wheelchair.n.01', 'synonyms': ['wheelchair'], 'def': 'a movable chair mounted on large wheels', 'name': 'wheelchair'}, {'frequency': 'c', 'id': 1203, 'synset': 'whipped_cream.n.01', 'synonyms': ['whipped_cream'], 'def': 'cream that has been beaten until light and fluffy', 'name': 'whipped_cream'}, {'frequency': 'r', 'id': 1204, 'synset': 'whiskey.n.01', 'synonyms': ['whiskey'], 'def': 'a liquor made from fermented mash of grain', 'name': 'whiskey'}, {'frequency': 'r', 'id': 1205, 'synset': 'whistle.n.03', 'synonyms': ['whistle'], 'def': 'a small wind instrument that produces a whistling sound by blowing into it', 'name': 'whistle'}, {'frequency': 'r', 'id': 1206, 'synset': 'wick.n.02', 'synonyms': ['wick'], 'def': 'a loosely woven cord in a candle or oil lamp that is lit on fire', 'name': 'wick'}, {'frequency': 'c', 'id': 1207, 'synset': 'wig.n.01', 'synonyms': ['wig'], 'def': 'hairpiece covering the head and made of real or synthetic hair', 'name': 'wig'}, {'frequency': 'c', 'id': 1208, 'synset': 'wind_chime.n.01', 'synonyms': ['wind_chime'], 'def': 'a decorative arrangement of pieces of metal or glass or pottery that hang together loosely so the wind can cause them to tinkle', 'name': 'wind_chime'}, {'frequency': 'c', 'id': 1209, 'synset': 'windmill.n.01', 'synonyms': ['windmill'], 'def': 'a mill that is powered by the wind', 'name': 'windmill'}, {'frequency': 'c', 'id': 1210, 'synset': 'window_box.n.01', 'synonyms': ['window_box_(for_plants)'], 'def': 'a container for growing plants on a windowsill', 'name': 'window_box_(for_plants)'}, {'frequency': 'f', 'id': 1211, 'synset': 'windshield_wiper.n.01', 'synonyms': ['windshield_wiper', 'windscreen_wiper', 'wiper_(for_windshield/screen)'], 'def': 'a mechanical device that cleans the windshield', 'name': 'windshield_wiper'}, {'frequency': 'c', 'id': 1212, 'synset': 'windsock.n.01', 'synonyms': ['windsock', 'air_sock', 'air-sleeve', 'wind_sleeve', 'wind_cone'], 'def': 'a truncated cloth cone mounted on a mast/pole; shows wind direction', 'name': 'windsock'}, {'frequency': 'f', 'id': 1213, 'synset': 'wine_bottle.n.01', 'synonyms': ['wine_bottle'], 'def': 'a bottle for holding wine', 'name': 'wine_bottle'}, {'frequency': 'r', 'id': 1214, 'synset': 'wine_bucket.n.01', 'synonyms': ['wine_bucket', 'wine_cooler'], 'def': 'a bucket of ice used to chill a bottle of wine', 'name': 'wine_bucket'}, {'frequency': 'f', 'id': 1215, 'synset': 'wineglass.n.01', 'synonyms': ['wineglass'], 'def': 'a glass that has a stem and in which wine is served', 'name': 'wineglass'}, {'frequency': 'r', 'id': 1216, 'synset': 'wing_chair.n.01', 'synonyms': ['wing_chair'], 'def': 'easy chair having wings on each side of a high back', 'name': 'wing_chair'}, {'frequency': 'c', 'id': 1217, 'synset': 'winker.n.02', 'synonyms': ['blinder_(for_horses)'], 'def': 'blinds that prevent a horse from seeing something on either side', 'name': 'blinder_(for_horses)'}, {'frequency': 'c', 'id': 1218, 'synset': 'wok.n.01', 'synonyms': ['wok'], 'def': 'pan with a convex bottom; used for frying in Chinese cooking', 'name': 'wok'}, {'frequency': 'r', 'id': 1219, 'synset': 'wolf.n.01', 'synonyms': ['wolf'], 'def': 'a wild carnivorous mammal of the dog family, living and hunting in packs', 'name': 'wolf'}, {'frequency': 'c', 'id': 1220, 'synset': 'wooden_spoon.n.02', 'synonyms': ['wooden_spoon'], 'def': 'a spoon made of wood', 'name': 'wooden_spoon'}, {'frequency': 'c', 'id': 1221, 'synset': 'wreath.n.01', 'synonyms': ['wreath'], 'def': 'an arrangement of flowers, leaves, or stems fastened in a ring', 'name': 'wreath'}, {'frequency': 'c', 'id': 1222, 'synset': 'wrench.n.03', 'synonyms': ['wrench', 'spanner'], 'def': 'a hand tool that is used to hold or twist a nut or bolt', 'name': 'wrench'}, {'frequency': 'c', 'id': 1223, 'synset': 'wristband.n.01', 'synonyms': ['wristband'], 'def': 'band consisting of a part of a sleeve that covers the wrist', 'name': 'wristband'}, {'frequency': 'f', 'id': 1224, 'synset': 'wristlet.n.01', 'synonyms': ['wristlet', 'wrist_band'], 'def': 'a band or bracelet worn around the wrist', 'name': 'wristlet'}, {'frequency': 'r', 'id': 1225, 'synset': 'yacht.n.01', 'synonyms': ['yacht'], 'def': 'an expensive vessel propelled by sail or power and used for cruising or racing', 'name': 'yacht'}, {'frequency': 'r', 'id': 1226, 'synset': 'yak.n.02', 'synonyms': ['yak'], 'def': 'large long-haired wild ox of Tibet often domesticated', 'name': 'yak'}, {'frequency': 'c', 'id': 1227, 'synset': 'yogurt.n.01', 'synonyms': ['yogurt', 'yoghurt', 'yoghourt'], 'def': 'a custard-like food made from curdled milk', 'name': 'yogurt'}, {'frequency': 'r', 'id': 1228, 'synset': 'yoke.n.07', 'synonyms': ['yoke_(animal_equipment)'], 'def': 'gear joining two animals at the neck; NOT egg yolk', 'name': 'yoke_(animal_equipment)'}, {'frequency': 'f', 'id': 1229, 'synset': 'zebra.n.01', 'synonyms': ['zebra'], 'def': 'any of several fleet black-and-white striped African equines', 'name': 'zebra'}, {'frequency': 'c', 'id': 1230, 'synset': 'zucchini.n.02', 'synonyms': ['zucchini', 'courgette'], 'def': 'small cucumber-shaped vegetable marrow; typically dark green', 'name': 'zucchini'}] # noqa +# fmt: on diff --git a/detectron2/detectron2/data/datasets/lvis_v1_categories.py b/detectron2/detectron2/data/datasets/lvis_v1_categories.py new file mode 100755 index 0000000..7374e69 --- /dev/null +++ b/detectron2/detectron2/data/datasets/lvis_v1_categories.py @@ -0,0 +1,16 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# Autogen with +# with open("lvis_v1_val.json", "r") as f: +# a = json.load(f) +# c = a["categories"] +# for x in c: +# del x["image_count"] +# del x["instance_count"] +# LVIS_CATEGORIES = repr(c) + " # noqa" +# with open("/tmp/lvis_categories.py", "wt") as f: +# f.write(f"LVIS_CATEGORIES = {LVIS_CATEGORIES}") +# Then paste the contents of that file below + +# fmt: off +LVIS_CATEGORIES = [{'frequency': 'c', 'synset': 'aerosol.n.02', 'synonyms': ['aerosol_can', 'spray_can'], 'id': 1, 'def': 'a dispenser that holds a substance under pressure', 'name': 'aerosol_can'}, {'frequency': 'f', 'synset': 'air_conditioner.n.01', 'synonyms': ['air_conditioner'], 'id': 2, 'def': 'a machine that keeps air cool and dry', 'name': 'air_conditioner'}, {'frequency': 'f', 'synset': 'airplane.n.01', 'synonyms': ['airplane', 'aeroplane'], 'id': 3, 'def': 'an aircraft that has a fixed wing and is powered by propellers or jets', 'name': 'airplane'}, {'frequency': 'f', 'synset': 'alarm_clock.n.01', 'synonyms': ['alarm_clock'], 'id': 4, 'def': 'a clock that wakes a sleeper at some preset time', 'name': 'alarm_clock'}, {'frequency': 'c', 'synset': 'alcohol.n.01', 'synonyms': ['alcohol', 'alcoholic_beverage'], 'id': 5, 'def': 'a liquor or brew containing alcohol as the active agent', 'name': 'alcohol'}, {'frequency': 'c', 'synset': 'alligator.n.02', 'synonyms': ['alligator', 'gator'], 'id': 6, 'def': 'amphibious reptiles related to crocodiles but with shorter broader snouts', 'name': 'alligator'}, {'frequency': 'c', 'synset': 'almond.n.02', 'synonyms': ['almond'], 'id': 7, 'def': 'oval-shaped edible seed of the almond tree', 'name': 'almond'}, {'frequency': 'c', 'synset': 'ambulance.n.01', 'synonyms': ['ambulance'], 'id': 8, 'def': 'a vehicle that takes people to and from hospitals', 'name': 'ambulance'}, {'frequency': 'c', 'synset': 'amplifier.n.01', 'synonyms': ['amplifier'], 'id': 9, 'def': 'electronic equipment that increases strength of signals', 'name': 'amplifier'}, {'frequency': 'c', 'synset': 'anklet.n.03', 'synonyms': ['anklet', 'ankle_bracelet'], 'id': 10, 'def': 'an ornament worn around the ankle', 'name': 'anklet'}, {'frequency': 'f', 'synset': 'antenna.n.01', 'synonyms': ['antenna', 'aerial', 'transmitting_aerial'], 'id': 11, 'def': 'an electrical device that sends or receives radio or television signals', 'name': 'antenna'}, {'frequency': 'f', 'synset': 'apple.n.01', 'synonyms': ['apple'], 'id': 12, 'def': 'fruit with red or yellow or green skin and sweet to tart crisp whitish flesh', 'name': 'apple'}, {'frequency': 'r', 'synset': 'applesauce.n.01', 'synonyms': ['applesauce'], 'id': 13, 'def': 'puree of stewed apples usually sweetened and spiced', 'name': 'applesauce'}, {'frequency': 'r', 'synset': 'apricot.n.02', 'synonyms': ['apricot'], 'id': 14, 'def': 'downy yellow to rosy-colored fruit resembling a small peach', 'name': 'apricot'}, {'frequency': 'f', 'synset': 'apron.n.01', 'synonyms': ['apron'], 'id': 15, 'def': 'a garment of cloth that is tied about the waist and worn to protect clothing', 'name': 'apron'}, {'frequency': 'c', 'synset': 'aquarium.n.01', 'synonyms': ['aquarium', 'fish_tank'], 'id': 16, 'def': 'a tank/pool/bowl filled with water for keeping live fish and underwater animals', 'name': 'aquarium'}, {'frequency': 'r', 'synset': 'arctic.n.02', 'synonyms': ['arctic_(type_of_shoe)', 'galosh', 'golosh', 'rubber_(type_of_shoe)', 'gumshoe'], 'id': 17, 'def': 'a waterproof overshoe that protects shoes from water or snow', 'name': 'arctic_(type_of_shoe)'}, {'frequency': 'c', 'synset': 'armband.n.02', 'synonyms': ['armband'], 'id': 18, 'def': 'a band worn around the upper arm', 'name': 'armband'}, {'frequency': 'f', 'synset': 'armchair.n.01', 'synonyms': ['armchair'], 'id': 19, 'def': 'chair with a support on each side for arms', 'name': 'armchair'}, {'frequency': 'r', 'synset': 'armoire.n.01', 'synonyms': ['armoire'], 'id': 20, 'def': 'a large wardrobe or cabinet', 'name': 'armoire'}, {'frequency': 'r', 'synset': 'armor.n.01', 'synonyms': ['armor', 'armour'], 'id': 21, 'def': 'protective covering made of metal and used in combat', 'name': 'armor'}, {'frequency': 'c', 'synset': 'artichoke.n.02', 'synonyms': ['artichoke'], 'id': 22, 'def': 'a thistlelike flower head with edible fleshy leaves and heart', 'name': 'artichoke'}, {'frequency': 'f', 'synset': 'ashcan.n.01', 'synonyms': ['trash_can', 'garbage_can', 'wastebin', 'dustbin', 'trash_barrel', 'trash_bin'], 'id': 23, 'def': 'a bin that holds rubbish until it is collected', 'name': 'trash_can'}, {'frequency': 'c', 'synset': 'ashtray.n.01', 'synonyms': ['ashtray'], 'id': 24, 'def': "a receptacle for the ash from smokers' cigars or cigarettes", 'name': 'ashtray'}, {'frequency': 'c', 'synset': 'asparagus.n.02', 'synonyms': ['asparagus'], 'id': 25, 'def': 'edible young shoots of the asparagus plant', 'name': 'asparagus'}, {'frequency': 'c', 'synset': 'atomizer.n.01', 'synonyms': ['atomizer', 'atomiser', 'spray', 'sprayer', 'nebulizer', 'nebuliser'], 'id': 26, 'def': 'a dispenser that turns a liquid (such as perfume) into a fine mist', 'name': 'atomizer'}, {'frequency': 'f', 'synset': 'avocado.n.01', 'synonyms': ['avocado'], 'id': 27, 'def': 'a pear-shaped fruit with green or blackish skin and rich yellowish pulp enclosing a single large seed', 'name': 'avocado'}, {'frequency': 'c', 'synset': 'award.n.02', 'synonyms': ['award', 'accolade'], 'id': 28, 'def': 'a tangible symbol signifying approval or distinction', 'name': 'award'}, {'frequency': 'f', 'synset': 'awning.n.01', 'synonyms': ['awning'], 'id': 29, 'def': 'a canopy made of canvas to shelter people or things from rain or sun', 'name': 'awning'}, {'frequency': 'r', 'synset': 'ax.n.01', 'synonyms': ['ax', 'axe'], 'id': 30, 'def': 'an edge tool with a heavy bladed head mounted across a handle', 'name': 'ax'}, {'frequency': 'r', 'synset': 'baboon.n.01', 'synonyms': ['baboon'], 'id': 31, 'def': 'large terrestrial monkeys having doglike muzzles', 'name': 'baboon'}, {'frequency': 'f', 'synset': 'baby_buggy.n.01', 'synonyms': ['baby_buggy', 'baby_carriage', 'perambulator', 'pram', 'stroller'], 'id': 32, 'def': 'a small vehicle with four wheels in which a baby or child is pushed around', 'name': 'baby_buggy'}, {'frequency': 'c', 'synset': 'backboard.n.01', 'synonyms': ['basketball_backboard'], 'id': 33, 'def': 'a raised vertical board with basket attached; used to play basketball', 'name': 'basketball_backboard'}, {'frequency': 'f', 'synset': 'backpack.n.01', 'synonyms': ['backpack', 'knapsack', 'packsack', 'rucksack', 'haversack'], 'id': 34, 'def': 'a bag carried by a strap on your back or shoulder', 'name': 'backpack'}, {'frequency': 'f', 'synset': 'bag.n.04', 'synonyms': ['handbag', 'purse', 'pocketbook'], 'id': 35, 'def': 'a container used for carrying money and small personal items or accessories', 'name': 'handbag'}, {'frequency': 'f', 'synset': 'bag.n.06', 'synonyms': ['suitcase', 'baggage', 'luggage'], 'id': 36, 'def': 'cases used to carry belongings when traveling', 'name': 'suitcase'}, {'frequency': 'c', 'synset': 'bagel.n.01', 'synonyms': ['bagel', 'beigel'], 'id': 37, 'def': 'glazed yeast-raised doughnut-shaped roll with hard crust', 'name': 'bagel'}, {'frequency': 'r', 'synset': 'bagpipe.n.01', 'synonyms': ['bagpipe'], 'id': 38, 'def': 'a tubular wind instrument; the player blows air into a bag and squeezes it out', 'name': 'bagpipe'}, {'frequency': 'r', 'synset': 'baguet.n.01', 'synonyms': ['baguet', 'baguette'], 'id': 39, 'def': 'narrow French stick loaf', 'name': 'baguet'}, {'frequency': 'r', 'synset': 'bait.n.02', 'synonyms': ['bait', 'lure'], 'id': 40, 'def': 'something used to lure fish or other animals into danger so they can be trapped or killed', 'name': 'bait'}, {'frequency': 'f', 'synset': 'ball.n.06', 'synonyms': ['ball'], 'id': 41, 'def': 'a spherical object used as a plaything', 'name': 'ball'}, {'frequency': 'r', 'synset': 'ballet_skirt.n.01', 'synonyms': ['ballet_skirt', 'tutu'], 'id': 42, 'def': 'very short skirt worn by ballerinas', 'name': 'ballet_skirt'}, {'frequency': 'f', 'synset': 'balloon.n.01', 'synonyms': ['balloon'], 'id': 43, 'def': 'large tough nonrigid bag filled with gas or heated air', 'name': 'balloon'}, {'frequency': 'c', 'synset': 'bamboo.n.02', 'synonyms': ['bamboo'], 'id': 44, 'def': 'woody tropical grass having hollow woody stems', 'name': 'bamboo'}, {'frequency': 'f', 'synset': 'banana.n.02', 'synonyms': ['banana'], 'id': 45, 'def': 'elongated crescent-shaped yellow fruit with soft sweet flesh', 'name': 'banana'}, {'frequency': 'c', 'synset': 'band_aid.n.01', 'synonyms': ['Band_Aid'], 'id': 46, 'def': 'trade name for an adhesive bandage to cover small cuts or blisters', 'name': 'Band_Aid'}, {'frequency': 'c', 'synset': 'bandage.n.01', 'synonyms': ['bandage'], 'id': 47, 'def': 'a piece of soft material that covers and protects an injured part of the body', 'name': 'bandage'}, {'frequency': 'f', 'synset': 'bandanna.n.01', 'synonyms': ['bandanna', 'bandana'], 'id': 48, 'def': 'large and brightly colored handkerchief; often used as a neckerchief', 'name': 'bandanna'}, {'frequency': 'r', 'synset': 'banjo.n.01', 'synonyms': ['banjo'], 'id': 49, 'def': 'a stringed instrument of the guitar family with a long neck and circular body', 'name': 'banjo'}, {'frequency': 'f', 'synset': 'banner.n.01', 'synonyms': ['banner', 'streamer'], 'id': 50, 'def': 'long strip of cloth or paper used for decoration or advertising', 'name': 'banner'}, {'frequency': 'r', 'synset': 'barbell.n.01', 'synonyms': ['barbell'], 'id': 51, 'def': 'a bar to which heavy discs are attached at each end; used in weightlifting', 'name': 'barbell'}, {'frequency': 'r', 'synset': 'barge.n.01', 'synonyms': ['barge'], 'id': 52, 'def': 'a flatbottom boat for carrying heavy loads (especially on canals)', 'name': 'barge'}, {'frequency': 'f', 'synset': 'barrel.n.02', 'synonyms': ['barrel', 'cask'], 'id': 53, 'def': 'a cylindrical container that holds liquids', 'name': 'barrel'}, {'frequency': 'c', 'synset': 'barrette.n.01', 'synonyms': ['barrette'], 'id': 54, 'def': "a pin for holding women's hair in place", 'name': 'barrette'}, {'frequency': 'c', 'synset': 'barrow.n.03', 'synonyms': ['barrow', 'garden_cart', 'lawn_cart', 'wheelbarrow'], 'id': 55, 'def': 'a cart for carrying small loads; has handles and one or more wheels', 'name': 'barrow'}, {'frequency': 'f', 'synset': 'base.n.03', 'synonyms': ['baseball_base'], 'id': 56, 'def': 'a place that the runner must touch before scoring', 'name': 'baseball_base'}, {'frequency': 'f', 'synset': 'baseball.n.02', 'synonyms': ['baseball'], 'id': 57, 'def': 'a ball used in playing baseball', 'name': 'baseball'}, {'frequency': 'f', 'synset': 'baseball_bat.n.01', 'synonyms': ['baseball_bat'], 'id': 58, 'def': 'an implement used in baseball by the batter', 'name': 'baseball_bat'}, {'frequency': 'f', 'synset': 'baseball_cap.n.01', 'synonyms': ['baseball_cap', 'jockey_cap', 'golf_cap'], 'id': 59, 'def': 'a cap with a bill', 'name': 'baseball_cap'}, {'frequency': 'f', 'synset': 'baseball_glove.n.01', 'synonyms': ['baseball_glove', 'baseball_mitt'], 'id': 60, 'def': 'the handwear used by fielders in playing baseball', 'name': 'baseball_glove'}, {'frequency': 'f', 'synset': 'basket.n.01', 'synonyms': ['basket', 'handbasket'], 'id': 61, 'def': 'a container that is usually woven and has handles', 'name': 'basket'}, {'frequency': 'c', 'synset': 'basketball.n.02', 'synonyms': ['basketball'], 'id': 62, 'def': 'an inflated ball used in playing basketball', 'name': 'basketball'}, {'frequency': 'r', 'synset': 'bass_horn.n.01', 'synonyms': ['bass_horn', 'sousaphone', 'tuba'], 'id': 63, 'def': 'the lowest brass wind instrument', 'name': 'bass_horn'}, {'frequency': 'c', 'synset': 'bat.n.01', 'synonyms': ['bat_(animal)'], 'id': 64, 'def': 'nocturnal mouselike mammal with forelimbs modified to form membranous wings', 'name': 'bat_(animal)'}, {'frequency': 'f', 'synset': 'bath_mat.n.01', 'synonyms': ['bath_mat'], 'id': 65, 'def': 'a heavy towel or mat to stand on while drying yourself after a bath', 'name': 'bath_mat'}, {'frequency': 'f', 'synset': 'bath_towel.n.01', 'synonyms': ['bath_towel'], 'id': 66, 'def': 'a large towel; to dry yourself after a bath', 'name': 'bath_towel'}, {'frequency': 'c', 'synset': 'bathrobe.n.01', 'synonyms': ['bathrobe'], 'id': 67, 'def': 'a loose-fitting robe of towelling; worn after a bath or swim', 'name': 'bathrobe'}, {'frequency': 'f', 'synset': 'bathtub.n.01', 'synonyms': ['bathtub', 'bathing_tub'], 'id': 68, 'def': 'a large open container that you fill with water and use to wash the body', 'name': 'bathtub'}, {'frequency': 'r', 'synset': 'batter.n.02', 'synonyms': ['batter_(food)'], 'id': 69, 'def': 'a liquid or semiliquid mixture, as of flour, eggs, and milk, used in cooking', 'name': 'batter_(food)'}, {'frequency': 'c', 'synset': 'battery.n.02', 'synonyms': ['battery'], 'id': 70, 'def': 'a portable device that produces electricity', 'name': 'battery'}, {'frequency': 'r', 'synset': 'beach_ball.n.01', 'synonyms': ['beachball'], 'id': 71, 'def': 'large and light ball; for play at the seaside', 'name': 'beachball'}, {'frequency': 'c', 'synset': 'bead.n.01', 'synonyms': ['bead'], 'id': 72, 'def': 'a small ball with a hole through the middle used for ornamentation, jewellery, etc.', 'name': 'bead'}, {'frequency': 'c', 'synset': 'bean_curd.n.01', 'synonyms': ['bean_curd', 'tofu'], 'id': 73, 'def': 'cheeselike food made of curdled soybean milk', 'name': 'bean_curd'}, {'frequency': 'c', 'synset': 'beanbag.n.01', 'synonyms': ['beanbag'], 'id': 74, 'def': 'a bag filled with dried beans or similar items; used in games or to sit on', 'name': 'beanbag'}, {'frequency': 'f', 'synset': 'beanie.n.01', 'synonyms': ['beanie', 'beany'], 'id': 75, 'def': 'a small skullcap; formerly worn by schoolboys and college freshmen', 'name': 'beanie'}, {'frequency': 'f', 'synset': 'bear.n.01', 'synonyms': ['bear'], 'id': 76, 'def': 'large carnivorous or omnivorous mammals with shaggy coats and claws', 'name': 'bear'}, {'frequency': 'f', 'synset': 'bed.n.01', 'synonyms': ['bed'], 'id': 77, 'def': 'a piece of furniture that provides a place to sleep', 'name': 'bed'}, {'frequency': 'r', 'synset': 'bedpan.n.01', 'synonyms': ['bedpan'], 'id': 78, 'def': 'a shallow vessel used by a bedridden patient for defecation and urination', 'name': 'bedpan'}, {'frequency': 'f', 'synset': 'bedspread.n.01', 'synonyms': ['bedspread', 'bedcover', 'bed_covering', 'counterpane', 'spread'], 'id': 79, 'def': 'decorative cover for a bed', 'name': 'bedspread'}, {'frequency': 'f', 'synset': 'beef.n.01', 'synonyms': ['cow'], 'id': 80, 'def': 'cattle/cow', 'name': 'cow'}, {'frequency': 'f', 'synset': 'beef.n.02', 'synonyms': ['beef_(food)', 'boeuf_(food)'], 'id': 81, 'def': 'meat from an adult domestic bovine', 'name': 'beef_(food)'}, {'frequency': 'r', 'synset': 'beeper.n.01', 'synonyms': ['beeper', 'pager'], 'id': 82, 'def': 'an device that beeps when the person carrying it is being paged', 'name': 'beeper'}, {'frequency': 'f', 'synset': 'beer_bottle.n.01', 'synonyms': ['beer_bottle'], 'id': 83, 'def': 'a bottle that holds beer', 'name': 'beer_bottle'}, {'frequency': 'c', 'synset': 'beer_can.n.01', 'synonyms': ['beer_can'], 'id': 84, 'def': 'a can that holds beer', 'name': 'beer_can'}, {'frequency': 'r', 'synset': 'beetle.n.01', 'synonyms': ['beetle'], 'id': 85, 'def': 'insect with hard wing covers', 'name': 'beetle'}, {'frequency': 'f', 'synset': 'bell.n.01', 'synonyms': ['bell'], 'id': 86, 'def': 'a hollow device made of metal that makes a ringing sound when struck', 'name': 'bell'}, {'frequency': 'f', 'synset': 'bell_pepper.n.02', 'synonyms': ['bell_pepper', 'capsicum'], 'id': 87, 'def': 'large bell-shaped sweet pepper in green or red or yellow or orange or black varieties', 'name': 'bell_pepper'}, {'frequency': 'f', 'synset': 'belt.n.02', 'synonyms': ['belt'], 'id': 88, 'def': 'a band to tie or buckle around the body (usually at the waist)', 'name': 'belt'}, {'frequency': 'f', 'synset': 'belt_buckle.n.01', 'synonyms': ['belt_buckle'], 'id': 89, 'def': 'the buckle used to fasten a belt', 'name': 'belt_buckle'}, {'frequency': 'f', 'synset': 'bench.n.01', 'synonyms': ['bench'], 'id': 90, 'def': 'a long seat for more than one person', 'name': 'bench'}, {'frequency': 'c', 'synset': 'beret.n.01', 'synonyms': ['beret'], 'id': 91, 'def': 'a cap with no brim or bill; made of soft cloth', 'name': 'beret'}, {'frequency': 'c', 'synset': 'bib.n.02', 'synonyms': ['bib'], 'id': 92, 'def': 'a napkin tied under the chin of a child while eating', 'name': 'bib'}, {'frequency': 'r', 'synset': 'bible.n.01', 'synonyms': ['Bible'], 'id': 93, 'def': 'the sacred writings of the Christian religions', 'name': 'Bible'}, {'frequency': 'f', 'synset': 'bicycle.n.01', 'synonyms': ['bicycle', 'bike_(bicycle)'], 'id': 94, 'def': 'a wheeled vehicle that has two wheels and is moved by foot pedals', 'name': 'bicycle'}, {'frequency': 'f', 'synset': 'bill.n.09', 'synonyms': ['visor', 'vizor'], 'id': 95, 'def': 'a brim that projects to the front to shade the eyes', 'name': 'visor'}, {'frequency': 'f', 'synset': 'billboard.n.01', 'synonyms': ['billboard'], 'id': 96, 'def': 'large outdoor signboard', 'name': 'billboard'}, {'frequency': 'c', 'synset': 'binder.n.03', 'synonyms': ['binder', 'ring-binder'], 'id': 97, 'def': 'holds loose papers or magazines', 'name': 'binder'}, {'frequency': 'c', 'synset': 'binoculars.n.01', 'synonyms': ['binoculars', 'field_glasses', 'opera_glasses'], 'id': 98, 'def': 'an optical instrument designed for simultaneous use by both eyes', 'name': 'binoculars'}, {'frequency': 'f', 'synset': 'bird.n.01', 'synonyms': ['bird'], 'id': 99, 'def': 'animal characterized by feathers and wings', 'name': 'bird'}, {'frequency': 'c', 'synset': 'bird_feeder.n.01', 'synonyms': ['birdfeeder'], 'id': 100, 'def': 'an outdoor device that supplies food for wild birds', 'name': 'birdfeeder'}, {'frequency': 'c', 'synset': 'birdbath.n.01', 'synonyms': ['birdbath'], 'id': 101, 'def': 'an ornamental basin (usually in a garden) for birds to bathe in', 'name': 'birdbath'}, {'frequency': 'c', 'synset': 'birdcage.n.01', 'synonyms': ['birdcage'], 'id': 102, 'def': 'a cage in which a bird can be kept', 'name': 'birdcage'}, {'frequency': 'c', 'synset': 'birdhouse.n.01', 'synonyms': ['birdhouse'], 'id': 103, 'def': 'a shelter for birds', 'name': 'birdhouse'}, {'frequency': 'f', 'synset': 'birthday_cake.n.01', 'synonyms': ['birthday_cake'], 'id': 104, 'def': 'decorated cake served at a birthday party', 'name': 'birthday_cake'}, {'frequency': 'r', 'synset': 'birthday_card.n.01', 'synonyms': ['birthday_card'], 'id': 105, 'def': 'a card expressing a birthday greeting', 'name': 'birthday_card'}, {'frequency': 'r', 'synset': 'black_flag.n.01', 'synonyms': ['pirate_flag'], 'id': 106, 'def': 'a flag usually bearing a white skull and crossbones on a black background', 'name': 'pirate_flag'}, {'frequency': 'c', 'synset': 'black_sheep.n.02', 'synonyms': ['black_sheep'], 'id': 107, 'def': 'sheep with a black coat', 'name': 'black_sheep'}, {'frequency': 'c', 'synset': 'blackberry.n.01', 'synonyms': ['blackberry'], 'id': 108, 'def': 'large sweet black or very dark purple edible aggregate fruit', 'name': 'blackberry'}, {'frequency': 'f', 'synset': 'blackboard.n.01', 'synonyms': ['blackboard', 'chalkboard'], 'id': 109, 'def': 'sheet of slate; for writing with chalk', 'name': 'blackboard'}, {'frequency': 'f', 'synset': 'blanket.n.01', 'synonyms': ['blanket'], 'id': 110, 'def': 'bedding that keeps a person warm in bed', 'name': 'blanket'}, {'frequency': 'c', 'synset': 'blazer.n.01', 'synonyms': ['blazer', 'sport_jacket', 'sport_coat', 'sports_jacket', 'sports_coat'], 'id': 111, 'def': 'lightweight jacket; often striped in the colors of a club or school', 'name': 'blazer'}, {'frequency': 'f', 'synset': 'blender.n.01', 'synonyms': ['blender', 'liquidizer', 'liquidiser'], 'id': 112, 'def': 'an electrically powered mixer that mix or chop or liquefy foods', 'name': 'blender'}, {'frequency': 'r', 'synset': 'blimp.n.02', 'synonyms': ['blimp'], 'id': 113, 'def': 'a small nonrigid airship used for observation or as a barrage balloon', 'name': 'blimp'}, {'frequency': 'f', 'synset': 'blinker.n.01', 'synonyms': ['blinker', 'flasher'], 'id': 114, 'def': 'a light that flashes on and off; used as a signal or to send messages', 'name': 'blinker'}, {'frequency': 'f', 'synset': 'blouse.n.01', 'synonyms': ['blouse'], 'id': 115, 'def': 'a top worn by women', 'name': 'blouse'}, {'frequency': 'f', 'synset': 'blueberry.n.02', 'synonyms': ['blueberry'], 'id': 116, 'def': 'sweet edible dark-blue berries of blueberry plants', 'name': 'blueberry'}, {'frequency': 'r', 'synset': 'board.n.09', 'synonyms': ['gameboard'], 'id': 117, 'def': 'a flat portable surface (usually rectangular) designed for board games', 'name': 'gameboard'}, {'frequency': 'f', 'synset': 'boat.n.01', 'synonyms': ['boat', 'ship_(boat)'], 'id': 118, 'def': 'a vessel for travel on water', 'name': 'boat'}, {'frequency': 'r', 'synset': 'bob.n.05', 'synonyms': ['bob', 'bobber', 'bobfloat'], 'id': 119, 'def': 'a small float usually made of cork; attached to a fishing line', 'name': 'bob'}, {'frequency': 'c', 'synset': 'bobbin.n.01', 'synonyms': ['bobbin', 'spool', 'reel'], 'id': 120, 'def': 'a thing around which thread/tape/film or other flexible materials can be wound', 'name': 'bobbin'}, {'frequency': 'c', 'synset': 'bobby_pin.n.01', 'synonyms': ['bobby_pin', 'hairgrip'], 'id': 121, 'def': 'a flat wire hairpin used to hold bobbed hair in place', 'name': 'bobby_pin'}, {'frequency': 'c', 'synset': 'boiled_egg.n.01', 'synonyms': ['boiled_egg', 'coddled_egg'], 'id': 122, 'def': 'egg cooked briefly in the shell in gently boiling water', 'name': 'boiled_egg'}, {'frequency': 'r', 'synset': 'bolo_tie.n.01', 'synonyms': ['bolo_tie', 'bolo', 'bola_tie', 'bola'], 'id': 123, 'def': 'a cord fastened around the neck with an ornamental clasp and worn as a necktie', 'name': 'bolo_tie'}, {'frequency': 'c', 'synset': 'bolt.n.03', 'synonyms': ['deadbolt'], 'id': 124, 'def': 'the part of a lock that is engaged or withdrawn with a key', 'name': 'deadbolt'}, {'frequency': 'f', 'synset': 'bolt.n.06', 'synonyms': ['bolt'], 'id': 125, 'def': 'a screw that screws into a nut to form a fastener', 'name': 'bolt'}, {'frequency': 'r', 'synset': 'bonnet.n.01', 'synonyms': ['bonnet'], 'id': 126, 'def': 'a hat tied under the chin', 'name': 'bonnet'}, {'frequency': 'f', 'synset': 'book.n.01', 'synonyms': ['book'], 'id': 127, 'def': 'a written work or composition that has been published', 'name': 'book'}, {'frequency': 'c', 'synset': 'bookcase.n.01', 'synonyms': ['bookcase'], 'id': 128, 'def': 'a piece of furniture with shelves for storing books', 'name': 'bookcase'}, {'frequency': 'c', 'synset': 'booklet.n.01', 'synonyms': ['booklet', 'brochure', 'leaflet', 'pamphlet'], 'id': 129, 'def': 'a small book usually having a paper cover', 'name': 'booklet'}, {'frequency': 'r', 'synset': 'bookmark.n.01', 'synonyms': ['bookmark', 'bookmarker'], 'id': 130, 'def': 'a marker (a piece of paper or ribbon) placed between the pages of a book', 'name': 'bookmark'}, {'frequency': 'r', 'synset': 'boom.n.04', 'synonyms': ['boom_microphone', 'microphone_boom'], 'id': 131, 'def': 'a pole carrying an overhead microphone projected over a film or tv set', 'name': 'boom_microphone'}, {'frequency': 'f', 'synset': 'boot.n.01', 'synonyms': ['boot'], 'id': 132, 'def': 'footwear that covers the whole foot and lower leg', 'name': 'boot'}, {'frequency': 'f', 'synset': 'bottle.n.01', 'synonyms': ['bottle'], 'id': 133, 'def': 'a glass or plastic vessel used for storing drinks or other liquids', 'name': 'bottle'}, {'frequency': 'c', 'synset': 'bottle_opener.n.01', 'synonyms': ['bottle_opener'], 'id': 134, 'def': 'an opener for removing caps or corks from bottles', 'name': 'bottle_opener'}, {'frequency': 'c', 'synset': 'bouquet.n.01', 'synonyms': ['bouquet'], 'id': 135, 'def': 'an arrangement of flowers that is usually given as a present', 'name': 'bouquet'}, {'frequency': 'r', 'synset': 'bow.n.04', 'synonyms': ['bow_(weapon)'], 'id': 136, 'def': 'a weapon for shooting arrows', 'name': 'bow_(weapon)'}, {'frequency': 'f', 'synset': 'bow.n.08', 'synonyms': ['bow_(decorative_ribbons)'], 'id': 137, 'def': 'a decorative interlacing of ribbons', 'name': 'bow_(decorative_ribbons)'}, {'frequency': 'f', 'synset': 'bow_tie.n.01', 'synonyms': ['bow-tie', 'bowtie'], 'id': 138, 'def': "a man's tie that ties in a bow", 'name': 'bow-tie'}, {'frequency': 'f', 'synset': 'bowl.n.03', 'synonyms': ['bowl'], 'id': 139, 'def': 'a dish that is round and open at the top for serving foods', 'name': 'bowl'}, {'frequency': 'r', 'synset': 'bowl.n.08', 'synonyms': ['pipe_bowl'], 'id': 140, 'def': 'a small round container that is open at the top for holding tobacco', 'name': 'pipe_bowl'}, {'frequency': 'c', 'synset': 'bowler_hat.n.01', 'synonyms': ['bowler_hat', 'bowler', 'derby_hat', 'derby', 'plug_hat'], 'id': 141, 'def': 'a felt hat that is round and hard with a narrow brim', 'name': 'bowler_hat'}, {'frequency': 'r', 'synset': 'bowling_ball.n.01', 'synonyms': ['bowling_ball'], 'id': 142, 'def': 'a large ball with finger holes used in the sport of bowling', 'name': 'bowling_ball'}, {'frequency': 'f', 'synset': 'box.n.01', 'synonyms': ['box'], 'id': 143, 'def': 'a (usually rectangular) container; may have a lid', 'name': 'box'}, {'frequency': 'r', 'synset': 'boxing_glove.n.01', 'synonyms': ['boxing_glove'], 'id': 144, 'def': 'large glove coverings the fists of a fighter worn for the sport of boxing', 'name': 'boxing_glove'}, {'frequency': 'c', 'synset': 'brace.n.06', 'synonyms': ['suspenders'], 'id': 145, 'def': 'elastic straps that hold trousers up (usually used in the plural)', 'name': 'suspenders'}, {'frequency': 'f', 'synset': 'bracelet.n.02', 'synonyms': ['bracelet', 'bangle'], 'id': 146, 'def': 'jewelry worn around the wrist for decoration', 'name': 'bracelet'}, {'frequency': 'r', 'synset': 'brass.n.07', 'synonyms': ['brass_plaque'], 'id': 147, 'def': 'a memorial made of brass', 'name': 'brass_plaque'}, {'frequency': 'c', 'synset': 'brassiere.n.01', 'synonyms': ['brassiere', 'bra', 'bandeau'], 'id': 148, 'def': 'an undergarment worn by women to support their breasts', 'name': 'brassiere'}, {'frequency': 'c', 'synset': 'bread-bin.n.01', 'synonyms': ['bread-bin', 'breadbox'], 'id': 149, 'def': 'a container used to keep bread or cake in', 'name': 'bread-bin'}, {'frequency': 'f', 'synset': 'bread.n.01', 'synonyms': ['bread'], 'id': 150, 'def': 'food made from dough of flour or meal and usually raised with yeast or baking powder and then baked', 'name': 'bread'}, {'frequency': 'r', 'synset': 'breechcloth.n.01', 'synonyms': ['breechcloth', 'breechclout', 'loincloth'], 'id': 151, 'def': 'a garment that provides covering for the loins', 'name': 'breechcloth'}, {'frequency': 'f', 'synset': 'bridal_gown.n.01', 'synonyms': ['bridal_gown', 'wedding_gown', 'wedding_dress'], 'id': 152, 'def': 'a gown worn by the bride at a wedding', 'name': 'bridal_gown'}, {'frequency': 'c', 'synset': 'briefcase.n.01', 'synonyms': ['briefcase'], 'id': 153, 'def': 'a case with a handle; for carrying papers or files or books', 'name': 'briefcase'}, {'frequency': 'f', 'synset': 'broccoli.n.01', 'synonyms': ['broccoli'], 'id': 154, 'def': 'plant with dense clusters of tight green flower buds', 'name': 'broccoli'}, {'frequency': 'r', 'synset': 'brooch.n.01', 'synonyms': ['broach'], 'id': 155, 'def': 'a decorative pin worn by women', 'name': 'broach'}, {'frequency': 'c', 'synset': 'broom.n.01', 'synonyms': ['broom'], 'id': 156, 'def': 'bundle of straws or twigs attached to a long handle; used for cleaning', 'name': 'broom'}, {'frequency': 'c', 'synset': 'brownie.n.03', 'synonyms': ['brownie'], 'id': 157, 'def': 'square or bar of very rich chocolate cake usually with nuts', 'name': 'brownie'}, {'frequency': 'c', 'synset': 'brussels_sprouts.n.01', 'synonyms': ['brussels_sprouts'], 'id': 158, 'def': 'the small edible cabbage-like buds growing along a stalk', 'name': 'brussels_sprouts'}, {'frequency': 'r', 'synset': 'bubble_gum.n.01', 'synonyms': ['bubble_gum'], 'id': 159, 'def': 'a kind of chewing gum that can be blown into bubbles', 'name': 'bubble_gum'}, {'frequency': 'f', 'synset': 'bucket.n.01', 'synonyms': ['bucket', 'pail'], 'id': 160, 'def': 'a roughly cylindrical vessel that is open at the top', 'name': 'bucket'}, {'frequency': 'r', 'synset': 'buggy.n.01', 'synonyms': ['horse_buggy'], 'id': 161, 'def': 'a small lightweight carriage; drawn by a single horse', 'name': 'horse_buggy'}, {'frequency': 'c', 'synset': 'bull.n.11', 'synonyms': ['horned_cow'], 'id': 162, 'def': 'a cow with horns', 'name': 'bull'}, {'frequency': 'c', 'synset': 'bulldog.n.01', 'synonyms': ['bulldog'], 'id': 163, 'def': 'a thickset short-haired dog with a large head and strong undershot lower jaw', 'name': 'bulldog'}, {'frequency': 'r', 'synset': 'bulldozer.n.01', 'synonyms': ['bulldozer', 'dozer'], 'id': 164, 'def': 'large powerful tractor; a large blade in front flattens areas of ground', 'name': 'bulldozer'}, {'frequency': 'c', 'synset': 'bullet_train.n.01', 'synonyms': ['bullet_train'], 'id': 165, 'def': 'a high-speed passenger train', 'name': 'bullet_train'}, {'frequency': 'c', 'synset': 'bulletin_board.n.02', 'synonyms': ['bulletin_board', 'notice_board'], 'id': 166, 'def': 'a board that hangs on a wall; displays announcements', 'name': 'bulletin_board'}, {'frequency': 'r', 'synset': 'bulletproof_vest.n.01', 'synonyms': ['bulletproof_vest'], 'id': 167, 'def': 'a vest capable of resisting the impact of a bullet', 'name': 'bulletproof_vest'}, {'frequency': 'c', 'synset': 'bullhorn.n.01', 'synonyms': ['bullhorn', 'megaphone'], 'id': 168, 'def': 'a portable loudspeaker with built-in microphone and amplifier', 'name': 'bullhorn'}, {'frequency': 'f', 'synset': 'bun.n.01', 'synonyms': ['bun', 'roll'], 'id': 169, 'def': 'small rounded bread either plain or sweet', 'name': 'bun'}, {'frequency': 'c', 'synset': 'bunk_bed.n.01', 'synonyms': ['bunk_bed'], 'id': 170, 'def': 'beds built one above the other', 'name': 'bunk_bed'}, {'frequency': 'f', 'synset': 'buoy.n.01', 'synonyms': ['buoy'], 'id': 171, 'def': 'a float attached by rope to the seabed to mark channels in a harbor or underwater hazards', 'name': 'buoy'}, {'frequency': 'r', 'synset': 'burrito.n.01', 'synonyms': ['burrito'], 'id': 172, 'def': 'a flour tortilla folded around a filling', 'name': 'burrito'}, {'frequency': 'f', 'synset': 'bus.n.01', 'synonyms': ['bus_(vehicle)', 'autobus', 'charabanc', 'double-decker', 'motorbus', 'motorcoach'], 'id': 173, 'def': 'a vehicle carrying many passengers; used for public transport', 'name': 'bus_(vehicle)'}, {'frequency': 'c', 'synset': 'business_card.n.01', 'synonyms': ['business_card'], 'id': 174, 'def': "a card on which are printed the person's name and business affiliation", 'name': 'business_card'}, {'frequency': 'f', 'synset': 'butter.n.01', 'synonyms': ['butter'], 'id': 175, 'def': 'an edible emulsion of fat globules made by churning milk or cream; for cooking and table use', 'name': 'butter'}, {'frequency': 'c', 'synset': 'butterfly.n.01', 'synonyms': ['butterfly'], 'id': 176, 'def': 'insect typically having a slender body with knobbed antennae and broad colorful wings', 'name': 'butterfly'}, {'frequency': 'f', 'synset': 'button.n.01', 'synonyms': ['button'], 'id': 177, 'def': 'a round fastener sewn to shirts and coats etc to fit through buttonholes', 'name': 'button'}, {'frequency': 'f', 'synset': 'cab.n.03', 'synonyms': ['cab_(taxi)', 'taxi', 'taxicab'], 'id': 178, 'def': 'a car that takes passengers where they want to go in exchange for money', 'name': 'cab_(taxi)'}, {'frequency': 'r', 'synset': 'cabana.n.01', 'synonyms': ['cabana'], 'id': 179, 'def': 'a small tent used as a dressing room beside the sea or a swimming pool', 'name': 'cabana'}, {'frequency': 'c', 'synset': 'cabin_car.n.01', 'synonyms': ['cabin_car', 'caboose'], 'id': 180, 'def': 'a car on a freight train for use of the train crew; usually the last car on the train', 'name': 'cabin_car'}, {'frequency': 'f', 'synset': 'cabinet.n.01', 'synonyms': ['cabinet'], 'id': 181, 'def': 'a piece of furniture resembling a cupboard with doors and shelves and drawers', 'name': 'cabinet'}, {'frequency': 'r', 'synset': 'cabinet.n.03', 'synonyms': ['locker', 'storage_locker'], 'id': 182, 'def': 'a storage compartment for clothes and valuables; usually it has a lock', 'name': 'locker'}, {'frequency': 'f', 'synset': 'cake.n.03', 'synonyms': ['cake'], 'id': 183, 'def': 'baked goods made from or based on a mixture of flour, sugar, eggs, and fat', 'name': 'cake'}, {'frequency': 'c', 'synset': 'calculator.n.02', 'synonyms': ['calculator'], 'id': 184, 'def': 'a small machine that is used for mathematical calculations', 'name': 'calculator'}, {'frequency': 'f', 'synset': 'calendar.n.02', 'synonyms': ['calendar'], 'id': 185, 'def': 'a list or register of events (appointments/social events/court cases, etc)', 'name': 'calendar'}, {'frequency': 'c', 'synset': 'calf.n.01', 'synonyms': ['calf'], 'id': 186, 'def': 'young of domestic cattle', 'name': 'calf'}, {'frequency': 'c', 'synset': 'camcorder.n.01', 'synonyms': ['camcorder'], 'id': 187, 'def': 'a portable television camera and videocassette recorder', 'name': 'camcorder'}, {'frequency': 'c', 'synset': 'camel.n.01', 'synonyms': ['camel'], 'id': 188, 'def': 'cud-chewing mammal used as a draft or saddle animal in desert regions', 'name': 'camel'}, {'frequency': 'f', 'synset': 'camera.n.01', 'synonyms': ['camera'], 'id': 189, 'def': 'equipment for taking photographs', 'name': 'camera'}, {'frequency': 'c', 'synset': 'camera_lens.n.01', 'synonyms': ['camera_lens'], 'id': 190, 'def': 'a lens that focuses the image in a camera', 'name': 'camera_lens'}, {'frequency': 'c', 'synset': 'camper.n.02', 'synonyms': ['camper_(vehicle)', 'camping_bus', 'motor_home'], 'id': 191, 'def': 'a recreational vehicle equipped for camping out while traveling', 'name': 'camper_(vehicle)'}, {'frequency': 'f', 'synset': 'can.n.01', 'synonyms': ['can', 'tin_can'], 'id': 192, 'def': 'airtight sealed metal container for food or drink or paint etc.', 'name': 'can'}, {'frequency': 'c', 'synset': 'can_opener.n.01', 'synonyms': ['can_opener', 'tin_opener'], 'id': 193, 'def': 'a device for cutting cans open', 'name': 'can_opener'}, {'frequency': 'f', 'synset': 'candle.n.01', 'synonyms': ['candle', 'candlestick'], 'id': 194, 'def': 'stick of wax with a wick in the middle', 'name': 'candle'}, {'frequency': 'f', 'synset': 'candlestick.n.01', 'synonyms': ['candle_holder'], 'id': 195, 'def': 'a holder with sockets for candles', 'name': 'candle_holder'}, {'frequency': 'r', 'synset': 'candy_bar.n.01', 'synonyms': ['candy_bar'], 'id': 196, 'def': 'a candy shaped as a bar', 'name': 'candy_bar'}, {'frequency': 'c', 'synset': 'candy_cane.n.01', 'synonyms': ['candy_cane'], 'id': 197, 'def': 'a hard candy in the shape of a rod (usually with stripes)', 'name': 'candy_cane'}, {'frequency': 'c', 'synset': 'cane.n.01', 'synonyms': ['walking_cane'], 'id': 198, 'def': 'a stick that people can lean on to help them walk', 'name': 'walking_cane'}, {'frequency': 'c', 'synset': 'canister.n.02', 'synonyms': ['canister', 'cannister'], 'id': 199, 'def': 'metal container for storing dry foods such as tea or flour', 'name': 'canister'}, {'frequency': 'c', 'synset': 'canoe.n.01', 'synonyms': ['canoe'], 'id': 200, 'def': 'small and light boat; pointed at both ends; propelled with a paddle', 'name': 'canoe'}, {'frequency': 'c', 'synset': 'cantaloup.n.02', 'synonyms': ['cantaloup', 'cantaloupe'], 'id': 201, 'def': 'the fruit of a cantaloup vine; small to medium-sized melon with yellowish flesh', 'name': 'cantaloup'}, {'frequency': 'r', 'synset': 'canteen.n.01', 'synonyms': ['canteen'], 'id': 202, 'def': 'a flask for carrying water; used by soldiers or travelers', 'name': 'canteen'}, {'frequency': 'f', 'synset': 'cap.n.01', 'synonyms': ['cap_(headwear)'], 'id': 203, 'def': 'a tight-fitting headwear', 'name': 'cap_(headwear)'}, {'frequency': 'f', 'synset': 'cap.n.02', 'synonyms': ['bottle_cap', 'cap_(container_lid)'], 'id': 204, 'def': 'a top (as for a bottle)', 'name': 'bottle_cap'}, {'frequency': 'c', 'synset': 'cape.n.02', 'synonyms': ['cape'], 'id': 205, 'def': 'a sleeveless garment like a cloak but shorter', 'name': 'cape'}, {'frequency': 'c', 'synset': 'cappuccino.n.01', 'synonyms': ['cappuccino', 'coffee_cappuccino'], 'id': 206, 'def': 'equal parts of espresso and steamed milk', 'name': 'cappuccino'}, {'frequency': 'f', 'synset': 'car.n.01', 'synonyms': ['car_(automobile)', 'auto_(automobile)', 'automobile'], 'id': 207, 'def': 'a motor vehicle with four wheels', 'name': 'car_(automobile)'}, {'frequency': 'f', 'synset': 'car.n.02', 'synonyms': ['railcar_(part_of_a_train)', 'railway_car_(part_of_a_train)', 'railroad_car_(part_of_a_train)'], 'id': 208, 'def': 'a wheeled vehicle adapted to the rails of railroad (mark each individual railcar separately)', 'name': 'railcar_(part_of_a_train)'}, {'frequency': 'r', 'synset': 'car.n.04', 'synonyms': ['elevator_car'], 'id': 209, 'def': 'where passengers ride up and down', 'name': 'elevator_car'}, {'frequency': 'r', 'synset': 'car_battery.n.01', 'synonyms': ['car_battery', 'automobile_battery'], 'id': 210, 'def': 'a battery in a motor vehicle', 'name': 'car_battery'}, {'frequency': 'c', 'synset': 'card.n.02', 'synonyms': ['identity_card'], 'id': 211, 'def': 'a card certifying the identity of the bearer', 'name': 'identity_card'}, {'frequency': 'c', 'synset': 'card.n.03', 'synonyms': ['card'], 'id': 212, 'def': 'a rectangular piece of paper used to send messages (e.g. greetings or pictures)', 'name': 'card'}, {'frequency': 'c', 'synset': 'cardigan.n.01', 'synonyms': ['cardigan'], 'id': 213, 'def': 'knitted jacket that is fastened up the front with buttons or a zipper', 'name': 'cardigan'}, {'frequency': 'r', 'synset': 'cargo_ship.n.01', 'synonyms': ['cargo_ship', 'cargo_vessel'], 'id': 214, 'def': 'a ship designed to carry cargo', 'name': 'cargo_ship'}, {'frequency': 'r', 'synset': 'carnation.n.01', 'synonyms': ['carnation'], 'id': 215, 'def': 'plant with pink to purple-red spice-scented usually double flowers', 'name': 'carnation'}, {'frequency': 'c', 'synset': 'carriage.n.02', 'synonyms': ['horse_carriage'], 'id': 216, 'def': 'a vehicle with wheels drawn by one or more horses', 'name': 'horse_carriage'}, {'frequency': 'f', 'synset': 'carrot.n.01', 'synonyms': ['carrot'], 'id': 217, 'def': 'deep orange edible root of the cultivated carrot plant', 'name': 'carrot'}, {'frequency': 'f', 'synset': 'carryall.n.01', 'synonyms': ['tote_bag'], 'id': 218, 'def': 'a capacious bag or basket', 'name': 'tote_bag'}, {'frequency': 'c', 'synset': 'cart.n.01', 'synonyms': ['cart'], 'id': 219, 'def': 'a heavy open wagon usually having two wheels and drawn by an animal', 'name': 'cart'}, {'frequency': 'c', 'synset': 'carton.n.02', 'synonyms': ['carton'], 'id': 220, 'def': 'a container made of cardboard for holding food or drink', 'name': 'carton'}, {'frequency': 'c', 'synset': 'cash_register.n.01', 'synonyms': ['cash_register', 'register_(for_cash_transactions)'], 'id': 221, 'def': 'a cashbox with an adding machine to register transactions', 'name': 'cash_register'}, {'frequency': 'r', 'synset': 'casserole.n.01', 'synonyms': ['casserole'], 'id': 222, 'def': 'food cooked and served in a casserole', 'name': 'casserole'}, {'frequency': 'r', 'synset': 'cassette.n.01', 'synonyms': ['cassette'], 'id': 223, 'def': 'a container that holds a magnetic tape used for recording or playing sound or video', 'name': 'cassette'}, {'frequency': 'c', 'synset': 'cast.n.05', 'synonyms': ['cast', 'plaster_cast', 'plaster_bandage'], 'id': 224, 'def': 'bandage consisting of a firm covering that immobilizes broken bones while they heal', 'name': 'cast'}, {'frequency': 'f', 'synset': 'cat.n.01', 'synonyms': ['cat'], 'id': 225, 'def': 'a domestic house cat', 'name': 'cat'}, {'frequency': 'f', 'synset': 'cauliflower.n.02', 'synonyms': ['cauliflower'], 'id': 226, 'def': 'edible compact head of white undeveloped flowers', 'name': 'cauliflower'}, {'frequency': 'c', 'synset': 'cayenne.n.02', 'synonyms': ['cayenne_(spice)', 'cayenne_pepper_(spice)', 'red_pepper_(spice)'], 'id': 227, 'def': 'ground pods and seeds of pungent red peppers of the genus Capsicum', 'name': 'cayenne_(spice)'}, {'frequency': 'c', 'synset': 'cd_player.n.01', 'synonyms': ['CD_player'], 'id': 228, 'def': 'electronic equipment for playing compact discs (CDs)', 'name': 'CD_player'}, {'frequency': 'f', 'synset': 'celery.n.01', 'synonyms': ['celery'], 'id': 229, 'def': 'widely cultivated herb with aromatic leaf stalks that are eaten raw or cooked', 'name': 'celery'}, {'frequency': 'f', 'synset': 'cellular_telephone.n.01', 'synonyms': ['cellular_telephone', 'cellular_phone', 'cellphone', 'mobile_phone', 'smart_phone'], 'id': 230, 'def': 'a hand-held mobile telephone', 'name': 'cellular_telephone'}, {'frequency': 'r', 'synset': 'chain_mail.n.01', 'synonyms': ['chain_mail', 'ring_mail', 'chain_armor', 'chain_armour', 'ring_armor', 'ring_armour'], 'id': 231, 'def': '(Middle Ages) flexible armor made of interlinked metal rings', 'name': 'chain_mail'}, {'frequency': 'f', 'synset': 'chair.n.01', 'synonyms': ['chair'], 'id': 232, 'def': 'a seat for one person, with a support for the back', 'name': 'chair'}, {'frequency': 'r', 'synset': 'chaise_longue.n.01', 'synonyms': ['chaise_longue', 'chaise', 'daybed'], 'id': 233, 'def': 'a long chair; for reclining', 'name': 'chaise_longue'}, {'frequency': 'r', 'synset': 'chalice.n.01', 'synonyms': ['chalice'], 'id': 234, 'def': 'a bowl-shaped drinking vessel; especially the Eucharistic cup', 'name': 'chalice'}, {'frequency': 'f', 'synset': 'chandelier.n.01', 'synonyms': ['chandelier'], 'id': 235, 'def': 'branched lighting fixture; often ornate; hangs from the ceiling', 'name': 'chandelier'}, {'frequency': 'r', 'synset': 'chap.n.04', 'synonyms': ['chap'], 'id': 236, 'def': 'leather leggings without a seat; worn over trousers by cowboys to protect their legs', 'name': 'chap'}, {'frequency': 'r', 'synset': 'checkbook.n.01', 'synonyms': ['checkbook', 'chequebook'], 'id': 237, 'def': 'a book issued to holders of checking accounts', 'name': 'checkbook'}, {'frequency': 'r', 'synset': 'checkerboard.n.01', 'synonyms': ['checkerboard'], 'id': 238, 'def': 'a board having 64 squares of two alternating colors', 'name': 'checkerboard'}, {'frequency': 'c', 'synset': 'cherry.n.03', 'synonyms': ['cherry'], 'id': 239, 'def': 'a red fruit with a single hard stone', 'name': 'cherry'}, {'frequency': 'r', 'synset': 'chessboard.n.01', 'synonyms': ['chessboard'], 'id': 240, 'def': 'a checkerboard used to play chess', 'name': 'chessboard'}, {'frequency': 'c', 'synset': 'chicken.n.02', 'synonyms': ['chicken_(animal)'], 'id': 241, 'def': 'a domestic fowl bred for flesh or eggs', 'name': 'chicken_(animal)'}, {'frequency': 'c', 'synset': 'chickpea.n.01', 'synonyms': ['chickpea', 'garbanzo'], 'id': 242, 'def': 'the seed of the chickpea plant; usually dried', 'name': 'chickpea'}, {'frequency': 'c', 'synset': 'chili.n.02', 'synonyms': ['chili_(vegetable)', 'chili_pepper_(vegetable)', 'chilli_(vegetable)', 'chilly_(vegetable)', 'chile_(vegetable)'], 'id': 243, 'def': 'very hot and finely tapering pepper of special pungency', 'name': 'chili_(vegetable)'}, {'frequency': 'r', 'synset': 'chime.n.01', 'synonyms': ['chime', 'gong'], 'id': 244, 'def': 'an instrument consisting of a set of bells that are struck with a hammer', 'name': 'chime'}, {'frequency': 'r', 'synset': 'chinaware.n.01', 'synonyms': ['chinaware'], 'id': 245, 'def': 'dishware made of high quality porcelain', 'name': 'chinaware'}, {'frequency': 'c', 'synset': 'chip.n.04', 'synonyms': ['crisp_(potato_chip)', 'potato_chip'], 'id': 246, 'def': 'a thin crisp slice of potato fried in deep fat', 'name': 'crisp_(potato_chip)'}, {'frequency': 'r', 'synset': 'chip.n.06', 'synonyms': ['poker_chip'], 'id': 247, 'def': 'a small disk-shaped counter used to represent money when gambling', 'name': 'poker_chip'}, {'frequency': 'c', 'synset': 'chocolate_bar.n.01', 'synonyms': ['chocolate_bar'], 'id': 248, 'def': 'a bar of chocolate candy', 'name': 'chocolate_bar'}, {'frequency': 'c', 'synset': 'chocolate_cake.n.01', 'synonyms': ['chocolate_cake'], 'id': 249, 'def': 'cake containing chocolate', 'name': 'chocolate_cake'}, {'frequency': 'r', 'synset': 'chocolate_milk.n.01', 'synonyms': ['chocolate_milk'], 'id': 250, 'def': 'milk flavored with chocolate syrup', 'name': 'chocolate_milk'}, {'frequency': 'r', 'synset': 'chocolate_mousse.n.01', 'synonyms': ['chocolate_mousse'], 'id': 251, 'def': 'dessert mousse made with chocolate', 'name': 'chocolate_mousse'}, {'frequency': 'f', 'synset': 'choker.n.03', 'synonyms': ['choker', 'collar', 'neckband'], 'id': 252, 'def': 'shirt collar, animal collar, or tight-fitting necklace', 'name': 'choker'}, {'frequency': 'f', 'synset': 'chopping_board.n.01', 'synonyms': ['chopping_board', 'cutting_board', 'chopping_block'], 'id': 253, 'def': 'a wooden board where meats or vegetables can be cut', 'name': 'chopping_board'}, {'frequency': 'f', 'synset': 'chopstick.n.01', 'synonyms': ['chopstick'], 'id': 254, 'def': 'one of a pair of slender sticks used as oriental tableware to eat food with', 'name': 'chopstick'}, {'frequency': 'f', 'synset': 'christmas_tree.n.05', 'synonyms': ['Christmas_tree'], 'id': 255, 'def': 'an ornamented evergreen used as a Christmas decoration', 'name': 'Christmas_tree'}, {'frequency': 'c', 'synset': 'chute.n.02', 'synonyms': ['slide'], 'id': 256, 'def': 'sloping channel through which things can descend', 'name': 'slide'}, {'frequency': 'r', 'synset': 'cider.n.01', 'synonyms': ['cider', 'cyder'], 'id': 257, 'def': 'a beverage made from juice pressed from apples', 'name': 'cider'}, {'frequency': 'r', 'synset': 'cigar_box.n.01', 'synonyms': ['cigar_box'], 'id': 258, 'def': 'a box for holding cigars', 'name': 'cigar_box'}, {'frequency': 'f', 'synset': 'cigarette.n.01', 'synonyms': ['cigarette'], 'id': 259, 'def': 'finely ground tobacco wrapped in paper; for smoking', 'name': 'cigarette'}, {'frequency': 'c', 'synset': 'cigarette_case.n.01', 'synonyms': ['cigarette_case', 'cigarette_pack'], 'id': 260, 'def': 'a small flat case for holding cigarettes', 'name': 'cigarette_case'}, {'frequency': 'f', 'synset': 'cistern.n.02', 'synonyms': ['cistern', 'water_tank'], 'id': 261, 'def': 'a tank that holds the water used to flush a toilet', 'name': 'cistern'}, {'frequency': 'r', 'synset': 'clarinet.n.01', 'synonyms': ['clarinet'], 'id': 262, 'def': 'a single-reed instrument with a straight tube', 'name': 'clarinet'}, {'frequency': 'c', 'synset': 'clasp.n.01', 'synonyms': ['clasp'], 'id': 263, 'def': 'a fastener (as a buckle or hook) that is used to hold two things together', 'name': 'clasp'}, {'frequency': 'c', 'synset': 'cleansing_agent.n.01', 'synonyms': ['cleansing_agent', 'cleanser', 'cleaner'], 'id': 264, 'def': 'a preparation used in cleaning something', 'name': 'cleansing_agent'}, {'frequency': 'r', 'synset': 'cleat.n.02', 'synonyms': ['cleat_(for_securing_rope)'], 'id': 265, 'def': 'a fastener (usually with two projecting horns) around which a rope can be secured', 'name': 'cleat_(for_securing_rope)'}, {'frequency': 'r', 'synset': 'clementine.n.01', 'synonyms': ['clementine'], 'id': 266, 'def': 'a variety of mandarin orange', 'name': 'clementine'}, {'frequency': 'c', 'synset': 'clip.n.03', 'synonyms': ['clip'], 'id': 267, 'def': 'any of various small fasteners used to hold loose articles together', 'name': 'clip'}, {'frequency': 'c', 'synset': 'clipboard.n.01', 'synonyms': ['clipboard'], 'id': 268, 'def': 'a small writing board with a clip at the top for holding papers', 'name': 'clipboard'}, {'frequency': 'r', 'synset': 'clipper.n.03', 'synonyms': ['clippers_(for_plants)'], 'id': 269, 'def': 'shears for cutting grass or shrubbery (often used in the plural)', 'name': 'clippers_(for_plants)'}, {'frequency': 'r', 'synset': 'cloak.n.02', 'synonyms': ['cloak'], 'id': 270, 'def': 'a loose outer garment', 'name': 'cloak'}, {'frequency': 'f', 'synset': 'clock.n.01', 'synonyms': ['clock', 'timepiece', 'timekeeper'], 'id': 271, 'def': 'a timepiece that shows the time of day', 'name': 'clock'}, {'frequency': 'f', 'synset': 'clock_tower.n.01', 'synonyms': ['clock_tower'], 'id': 272, 'def': 'a tower with a large clock visible high up on an outside face', 'name': 'clock_tower'}, {'frequency': 'c', 'synset': 'clothes_hamper.n.01', 'synonyms': ['clothes_hamper', 'laundry_basket', 'clothes_basket'], 'id': 273, 'def': 'a hamper that holds dirty clothes to be washed or wet clothes to be dried', 'name': 'clothes_hamper'}, {'frequency': 'c', 'synset': 'clothespin.n.01', 'synonyms': ['clothespin', 'clothes_peg'], 'id': 274, 'def': 'wood or plastic fastener; for holding clothes on a clothesline', 'name': 'clothespin'}, {'frequency': 'r', 'synset': 'clutch_bag.n.01', 'synonyms': ['clutch_bag'], 'id': 275, 'def': "a woman's strapless purse that is carried in the hand", 'name': 'clutch_bag'}, {'frequency': 'f', 'synset': 'coaster.n.03', 'synonyms': ['coaster'], 'id': 276, 'def': 'a covering (plate or mat) that protects the surface of a table', 'name': 'coaster'}, {'frequency': 'f', 'synset': 'coat.n.01', 'synonyms': ['coat'], 'id': 277, 'def': 'an outer garment that has sleeves and covers the body from shoulder down', 'name': 'coat'}, {'frequency': 'c', 'synset': 'coat_hanger.n.01', 'synonyms': ['coat_hanger', 'clothes_hanger', 'dress_hanger'], 'id': 278, 'def': "a hanger that is shaped like a person's shoulders", 'name': 'coat_hanger'}, {'frequency': 'c', 'synset': 'coatrack.n.01', 'synonyms': ['coatrack', 'hatrack'], 'id': 279, 'def': 'a rack with hooks for temporarily holding coats and hats', 'name': 'coatrack'}, {'frequency': 'c', 'synset': 'cock.n.04', 'synonyms': ['cock', 'rooster'], 'id': 280, 'def': 'adult male chicken', 'name': 'cock'}, {'frequency': 'r', 'synset': 'cockroach.n.01', 'synonyms': ['cockroach'], 'id': 281, 'def': 'any of numerous chiefly nocturnal insects; some are domestic pests', 'name': 'cockroach'}, {'frequency': 'r', 'synset': 'cocoa.n.01', 'synonyms': ['cocoa_(beverage)', 'hot_chocolate_(beverage)', 'drinking_chocolate'], 'id': 282, 'def': 'a beverage made from cocoa powder and milk and sugar; usually drunk hot', 'name': 'cocoa_(beverage)'}, {'frequency': 'c', 'synset': 'coconut.n.02', 'synonyms': ['coconut', 'cocoanut'], 'id': 283, 'def': 'large hard-shelled brown oval nut with a fibrous husk', 'name': 'coconut'}, {'frequency': 'f', 'synset': 'coffee_maker.n.01', 'synonyms': ['coffee_maker', 'coffee_machine'], 'id': 284, 'def': 'a kitchen appliance for brewing coffee automatically', 'name': 'coffee_maker'}, {'frequency': 'f', 'synset': 'coffee_table.n.01', 'synonyms': ['coffee_table', 'cocktail_table'], 'id': 285, 'def': 'low table where magazines can be placed and coffee or cocktails are served', 'name': 'coffee_table'}, {'frequency': 'c', 'synset': 'coffeepot.n.01', 'synonyms': ['coffeepot'], 'id': 286, 'def': 'tall pot in which coffee is brewed', 'name': 'coffeepot'}, {'frequency': 'r', 'synset': 'coil.n.05', 'synonyms': ['coil'], 'id': 287, 'def': 'tubing that is wound in a spiral', 'name': 'coil'}, {'frequency': 'c', 'synset': 'coin.n.01', 'synonyms': ['coin'], 'id': 288, 'def': 'a flat metal piece (usually a disc) used as money', 'name': 'coin'}, {'frequency': 'c', 'synset': 'colander.n.01', 'synonyms': ['colander', 'cullender'], 'id': 289, 'def': 'bowl-shaped strainer; used to wash or drain foods', 'name': 'colander'}, {'frequency': 'c', 'synset': 'coleslaw.n.01', 'synonyms': ['coleslaw', 'slaw'], 'id': 290, 'def': 'basically shredded cabbage', 'name': 'coleslaw'}, {'frequency': 'r', 'synset': 'coloring_material.n.01', 'synonyms': ['coloring_material', 'colouring_material'], 'id': 291, 'def': 'any material used for its color', 'name': 'coloring_material'}, {'frequency': 'r', 'synset': 'combination_lock.n.01', 'synonyms': ['combination_lock'], 'id': 292, 'def': 'lock that can be opened only by turning dials in a special sequence', 'name': 'combination_lock'}, {'frequency': 'c', 'synset': 'comforter.n.04', 'synonyms': ['pacifier', 'teething_ring'], 'id': 293, 'def': 'device used for an infant to suck or bite on', 'name': 'pacifier'}, {'frequency': 'r', 'synset': 'comic_book.n.01', 'synonyms': ['comic_book'], 'id': 294, 'def': 'a magazine devoted to comic strips', 'name': 'comic_book'}, {'frequency': 'r', 'synset': 'compass.n.01', 'synonyms': ['compass'], 'id': 295, 'def': 'navigational instrument for finding directions', 'name': 'compass'}, {'frequency': 'f', 'synset': 'computer_keyboard.n.01', 'synonyms': ['computer_keyboard', 'keyboard_(computer)'], 'id': 296, 'def': 'a keyboard that is a data input device for computers', 'name': 'computer_keyboard'}, {'frequency': 'f', 'synset': 'condiment.n.01', 'synonyms': ['condiment'], 'id': 297, 'def': 'a preparation (a sauce or relish or spice) to enhance flavor or enjoyment', 'name': 'condiment'}, {'frequency': 'f', 'synset': 'cone.n.01', 'synonyms': ['cone', 'traffic_cone'], 'id': 298, 'def': 'a cone-shaped object used to direct traffic', 'name': 'cone'}, {'frequency': 'f', 'synset': 'control.n.09', 'synonyms': ['control', 'controller'], 'id': 299, 'def': 'a mechanism that controls the operation of a machine', 'name': 'control'}, {'frequency': 'r', 'synset': 'convertible.n.01', 'synonyms': ['convertible_(automobile)'], 'id': 300, 'def': 'a car that has top that can be folded or removed', 'name': 'convertible_(automobile)'}, {'frequency': 'r', 'synset': 'convertible.n.03', 'synonyms': ['sofa_bed'], 'id': 301, 'def': 'a sofa that can be converted into a bed', 'name': 'sofa_bed'}, {'frequency': 'r', 'synset': 'cooker.n.01', 'synonyms': ['cooker'], 'id': 302, 'def': 'a utensil for cooking', 'name': 'cooker'}, {'frequency': 'f', 'synset': 'cookie.n.01', 'synonyms': ['cookie', 'cooky', 'biscuit_(cookie)'], 'id': 303, 'def': "any of various small flat sweet cakes (`biscuit' is the British term)", 'name': 'cookie'}, {'frequency': 'r', 'synset': 'cooking_utensil.n.01', 'synonyms': ['cooking_utensil'], 'id': 304, 'def': 'a kitchen utensil made of material that does not melt easily; used for cooking', 'name': 'cooking_utensil'}, {'frequency': 'f', 'synset': 'cooler.n.01', 'synonyms': ['cooler_(for_food)', 'ice_chest'], 'id': 305, 'def': 'an insulated box for storing food often with ice', 'name': 'cooler_(for_food)'}, {'frequency': 'f', 'synset': 'cork.n.04', 'synonyms': ['cork_(bottle_plug)', 'bottle_cork'], 'id': 306, 'def': 'the plug in the mouth of a bottle (especially a wine bottle)', 'name': 'cork_(bottle_plug)'}, {'frequency': 'r', 'synset': 'corkboard.n.01', 'synonyms': ['corkboard'], 'id': 307, 'def': 'a sheet consisting of cork granules', 'name': 'corkboard'}, {'frequency': 'c', 'synset': 'corkscrew.n.01', 'synonyms': ['corkscrew', 'bottle_screw'], 'id': 308, 'def': 'a bottle opener that pulls corks', 'name': 'corkscrew'}, {'frequency': 'f', 'synset': 'corn.n.03', 'synonyms': ['edible_corn', 'corn', 'maize'], 'id': 309, 'def': 'ears or kernels of corn that can be prepared and served for human food (only mark individual ears or kernels)', 'name': 'edible_corn'}, {'frequency': 'r', 'synset': 'cornbread.n.01', 'synonyms': ['cornbread'], 'id': 310, 'def': 'bread made primarily of cornmeal', 'name': 'cornbread'}, {'frequency': 'c', 'synset': 'cornet.n.01', 'synonyms': ['cornet', 'horn', 'trumpet'], 'id': 311, 'def': 'a brass musical instrument with a narrow tube and a flared bell and many valves', 'name': 'cornet'}, {'frequency': 'c', 'synset': 'cornice.n.01', 'synonyms': ['cornice', 'valance', 'valance_board', 'pelmet'], 'id': 312, 'def': 'a decorative framework to conceal curtain fixtures at the top of a window casing', 'name': 'cornice'}, {'frequency': 'r', 'synset': 'cornmeal.n.01', 'synonyms': ['cornmeal'], 'id': 313, 'def': 'coarsely ground corn', 'name': 'cornmeal'}, {'frequency': 'c', 'synset': 'corset.n.01', 'synonyms': ['corset', 'girdle'], 'id': 314, 'def': "a woman's close-fitting foundation garment", 'name': 'corset'}, {'frequency': 'c', 'synset': 'costume.n.04', 'synonyms': ['costume'], 'id': 315, 'def': 'the attire characteristic of a country or a time or a social class', 'name': 'costume'}, {'frequency': 'r', 'synset': 'cougar.n.01', 'synonyms': ['cougar', 'puma', 'catamount', 'mountain_lion', 'panther'], 'id': 316, 'def': 'large American feline resembling a lion', 'name': 'cougar'}, {'frequency': 'r', 'synset': 'coverall.n.01', 'synonyms': ['coverall'], 'id': 317, 'def': 'a loose-fitting protective garment that is worn over other clothing', 'name': 'coverall'}, {'frequency': 'c', 'synset': 'cowbell.n.01', 'synonyms': ['cowbell'], 'id': 318, 'def': 'a bell hung around the neck of cow so that the cow can be easily located', 'name': 'cowbell'}, {'frequency': 'f', 'synset': 'cowboy_hat.n.01', 'synonyms': ['cowboy_hat', 'ten-gallon_hat'], 'id': 319, 'def': 'a hat with a wide brim and a soft crown; worn by American ranch hands', 'name': 'cowboy_hat'}, {'frequency': 'c', 'synset': 'crab.n.01', 'synonyms': ['crab_(animal)'], 'id': 320, 'def': 'decapod having eyes on short stalks and a broad flattened shell and pincers', 'name': 'crab_(animal)'}, {'frequency': 'r', 'synset': 'crab.n.05', 'synonyms': ['crabmeat'], 'id': 321, 'def': 'the edible flesh of any of various crabs', 'name': 'crabmeat'}, {'frequency': 'c', 'synset': 'cracker.n.01', 'synonyms': ['cracker'], 'id': 322, 'def': 'a thin crisp wafer', 'name': 'cracker'}, {'frequency': 'r', 'synset': 'crape.n.01', 'synonyms': ['crape', 'crepe', 'French_pancake'], 'id': 323, 'def': 'small very thin pancake', 'name': 'crape'}, {'frequency': 'f', 'synset': 'crate.n.01', 'synonyms': ['crate'], 'id': 324, 'def': 'a rugged box (usually made of wood); used for shipping', 'name': 'crate'}, {'frequency': 'c', 'synset': 'crayon.n.01', 'synonyms': ['crayon', 'wax_crayon'], 'id': 325, 'def': 'writing or drawing implement made of a colored stick of composition wax', 'name': 'crayon'}, {'frequency': 'r', 'synset': 'cream_pitcher.n.01', 'synonyms': ['cream_pitcher'], 'id': 326, 'def': 'a small pitcher for serving cream', 'name': 'cream_pitcher'}, {'frequency': 'c', 'synset': 'crescent_roll.n.01', 'synonyms': ['crescent_roll', 'croissant'], 'id': 327, 'def': 'very rich flaky crescent-shaped roll', 'name': 'crescent_roll'}, {'frequency': 'c', 'synset': 'crib.n.01', 'synonyms': ['crib', 'cot'], 'id': 328, 'def': 'baby bed with high sides made of slats', 'name': 'crib'}, {'frequency': 'c', 'synset': 'crock.n.03', 'synonyms': ['crock_pot', 'earthenware_jar'], 'id': 329, 'def': 'an earthen jar (made of baked clay) or a modern electric crockpot', 'name': 'crock_pot'}, {'frequency': 'f', 'synset': 'crossbar.n.01', 'synonyms': ['crossbar'], 'id': 330, 'def': 'a horizontal bar that goes across something', 'name': 'crossbar'}, {'frequency': 'r', 'synset': 'crouton.n.01', 'synonyms': ['crouton'], 'id': 331, 'def': 'a small piece of toasted or fried bread; served in soup or salads', 'name': 'crouton'}, {'frequency': 'c', 'synset': 'crow.n.01', 'synonyms': ['crow'], 'id': 332, 'def': 'black birds having a raucous call', 'name': 'crow'}, {'frequency': 'r', 'synset': 'crowbar.n.01', 'synonyms': ['crowbar', 'wrecking_bar', 'pry_bar'], 'id': 333, 'def': 'a heavy iron lever with one end forged into a wedge', 'name': 'crowbar'}, {'frequency': 'c', 'synset': 'crown.n.04', 'synonyms': ['crown'], 'id': 334, 'def': 'an ornamental jeweled headdress signifying sovereignty', 'name': 'crown'}, {'frequency': 'c', 'synset': 'crucifix.n.01', 'synonyms': ['crucifix'], 'id': 335, 'def': 'representation of the cross on which Jesus died', 'name': 'crucifix'}, {'frequency': 'c', 'synset': 'cruise_ship.n.01', 'synonyms': ['cruise_ship', 'cruise_liner'], 'id': 336, 'def': 'a passenger ship used commercially for pleasure cruises', 'name': 'cruise_ship'}, {'frequency': 'c', 'synset': 'cruiser.n.01', 'synonyms': ['police_cruiser', 'patrol_car', 'police_car', 'squad_car'], 'id': 337, 'def': 'a car in which policemen cruise the streets', 'name': 'police_cruiser'}, {'frequency': 'f', 'synset': 'crumb.n.03', 'synonyms': ['crumb'], 'id': 338, 'def': 'small piece of e.g. bread or cake', 'name': 'crumb'}, {'frequency': 'c', 'synset': 'crutch.n.01', 'synonyms': ['crutch'], 'id': 339, 'def': 'a wooden or metal staff that fits under the armpit and reaches to the ground', 'name': 'crutch'}, {'frequency': 'c', 'synset': 'cub.n.03', 'synonyms': ['cub_(animal)'], 'id': 340, 'def': 'the young of certain carnivorous mammals such as the bear or wolf or lion', 'name': 'cub_(animal)'}, {'frequency': 'c', 'synset': 'cube.n.05', 'synonyms': ['cube', 'square_block'], 'id': 341, 'def': 'a block in the (approximate) shape of a cube', 'name': 'cube'}, {'frequency': 'f', 'synset': 'cucumber.n.02', 'synonyms': ['cucumber', 'cuke'], 'id': 342, 'def': 'cylindrical green fruit with thin green rind and white flesh eaten as a vegetable', 'name': 'cucumber'}, {'frequency': 'c', 'synset': 'cufflink.n.01', 'synonyms': ['cufflink'], 'id': 343, 'def': 'jewelry consisting of linked buttons used to fasten the cuffs of a shirt', 'name': 'cufflink'}, {'frequency': 'f', 'synset': 'cup.n.01', 'synonyms': ['cup'], 'id': 344, 'def': 'a small open container usually used for drinking; usually has a handle', 'name': 'cup'}, {'frequency': 'c', 'synset': 'cup.n.08', 'synonyms': ['trophy_cup'], 'id': 345, 'def': 'a metal award or cup-shaped vessel with handles that is awarded as a trophy to a competition winner', 'name': 'trophy_cup'}, {'frequency': 'f', 'synset': 'cupboard.n.01', 'synonyms': ['cupboard', 'closet'], 'id': 346, 'def': 'a small room (or recess) or cabinet used for storage space', 'name': 'cupboard'}, {'frequency': 'f', 'synset': 'cupcake.n.01', 'synonyms': ['cupcake'], 'id': 347, 'def': 'small cake baked in a muffin tin', 'name': 'cupcake'}, {'frequency': 'r', 'synset': 'curler.n.01', 'synonyms': ['hair_curler', 'hair_roller', 'hair_crimper'], 'id': 348, 'def': 'a cylindrical tube around which the hair is wound to curl it', 'name': 'hair_curler'}, {'frequency': 'r', 'synset': 'curling_iron.n.01', 'synonyms': ['curling_iron'], 'id': 349, 'def': 'a cylindrical home appliance that heats hair that has been curled around it', 'name': 'curling_iron'}, {'frequency': 'f', 'synset': 'curtain.n.01', 'synonyms': ['curtain', 'drapery'], 'id': 350, 'def': 'hanging cloth used as a blind (especially for a window)', 'name': 'curtain'}, {'frequency': 'f', 'synset': 'cushion.n.03', 'synonyms': ['cushion'], 'id': 351, 'def': 'a soft bag filled with air or padding such as feathers or foam rubber', 'name': 'cushion'}, {'frequency': 'r', 'synset': 'cylinder.n.04', 'synonyms': ['cylinder'], 'id': 352, 'def': 'a cylindrical container', 'name': 'cylinder'}, {'frequency': 'r', 'synset': 'cymbal.n.01', 'synonyms': ['cymbal'], 'id': 353, 'def': 'a percussion instrument consisting of a concave brass disk', 'name': 'cymbal'}, {'frequency': 'r', 'synset': 'dagger.n.01', 'synonyms': ['dagger'], 'id': 354, 'def': 'a short knife with a pointed blade used for piercing or stabbing', 'name': 'dagger'}, {'frequency': 'r', 'synset': 'dalmatian.n.02', 'synonyms': ['dalmatian'], 'id': 355, 'def': 'a large breed having a smooth white coat with black or brown spots', 'name': 'dalmatian'}, {'frequency': 'c', 'synset': 'dartboard.n.01', 'synonyms': ['dartboard'], 'id': 356, 'def': 'a circular board of wood or cork used as the target in the game of darts', 'name': 'dartboard'}, {'frequency': 'r', 'synset': 'date.n.08', 'synonyms': ['date_(fruit)'], 'id': 357, 'def': 'sweet edible fruit of the date palm with a single long woody seed', 'name': 'date_(fruit)'}, {'frequency': 'f', 'synset': 'deck_chair.n.01', 'synonyms': ['deck_chair', 'beach_chair'], 'id': 358, 'def': 'a folding chair for use outdoors; a wooden frame supports a length of canvas', 'name': 'deck_chair'}, {'frequency': 'c', 'synset': 'deer.n.01', 'synonyms': ['deer', 'cervid'], 'id': 359, 'def': "distinguished from Bovidae by the male's having solid deciduous antlers", 'name': 'deer'}, {'frequency': 'c', 'synset': 'dental_floss.n.01', 'synonyms': ['dental_floss', 'floss'], 'id': 360, 'def': 'a soft thread for cleaning the spaces between the teeth', 'name': 'dental_floss'}, {'frequency': 'f', 'synset': 'desk.n.01', 'synonyms': ['desk'], 'id': 361, 'def': 'a piece of furniture with a writing surface and usually drawers or other compartments', 'name': 'desk'}, {'frequency': 'r', 'synset': 'detergent.n.01', 'synonyms': ['detergent'], 'id': 362, 'def': 'a surface-active chemical widely used in industry and laundering', 'name': 'detergent'}, {'frequency': 'c', 'synset': 'diaper.n.01', 'synonyms': ['diaper'], 'id': 363, 'def': 'garment consisting of a folded cloth drawn up between the legs and fastened at the waist', 'name': 'diaper'}, {'frequency': 'r', 'synset': 'diary.n.01', 'synonyms': ['diary', 'journal'], 'id': 364, 'def': 'yearly planner book', 'name': 'diary'}, {'frequency': 'r', 'synset': 'die.n.01', 'synonyms': ['die', 'dice'], 'id': 365, 'def': 'a small cube with 1 to 6 spots on the six faces; used in gambling', 'name': 'die'}, {'frequency': 'r', 'synset': 'dinghy.n.01', 'synonyms': ['dinghy', 'dory', 'rowboat'], 'id': 366, 'def': 'a small boat of shallow draft with seats and oars with which it is propelled', 'name': 'dinghy'}, {'frequency': 'f', 'synset': 'dining_table.n.01', 'synonyms': ['dining_table'], 'id': 367, 'def': 'a table at which meals are served', 'name': 'dining_table'}, {'frequency': 'r', 'synset': 'dinner_jacket.n.01', 'synonyms': ['tux', 'tuxedo'], 'id': 368, 'def': 'semiformal evening dress for men', 'name': 'tux'}, {'frequency': 'f', 'synset': 'dish.n.01', 'synonyms': ['dish'], 'id': 369, 'def': 'a piece of dishware normally used as a container for holding or serving food', 'name': 'dish'}, {'frequency': 'c', 'synset': 'dish.n.05', 'synonyms': ['dish_antenna'], 'id': 370, 'def': 'directional antenna consisting of a parabolic reflector', 'name': 'dish_antenna'}, {'frequency': 'c', 'synset': 'dishrag.n.01', 'synonyms': ['dishrag', 'dishcloth'], 'id': 371, 'def': 'a cloth for washing dishes or cleaning in general', 'name': 'dishrag'}, {'frequency': 'f', 'synset': 'dishtowel.n.01', 'synonyms': ['dishtowel', 'tea_towel'], 'id': 372, 'def': 'a towel for drying dishes', 'name': 'dishtowel'}, {'frequency': 'f', 'synset': 'dishwasher.n.01', 'synonyms': ['dishwasher', 'dishwashing_machine'], 'id': 373, 'def': 'a machine for washing dishes', 'name': 'dishwasher'}, {'frequency': 'r', 'synset': 'dishwasher_detergent.n.01', 'synonyms': ['dishwasher_detergent', 'dishwashing_detergent', 'dishwashing_liquid', 'dishsoap'], 'id': 374, 'def': 'dishsoap or dish detergent designed for use in dishwashers', 'name': 'dishwasher_detergent'}, {'frequency': 'f', 'synset': 'dispenser.n.01', 'synonyms': ['dispenser'], 'id': 375, 'def': 'a container so designed that the contents can be used in prescribed amounts', 'name': 'dispenser'}, {'frequency': 'r', 'synset': 'diving_board.n.01', 'synonyms': ['diving_board'], 'id': 376, 'def': 'a springboard from which swimmers can dive', 'name': 'diving_board'}, {'frequency': 'f', 'synset': 'dixie_cup.n.01', 'synonyms': ['Dixie_cup', 'paper_cup'], 'id': 377, 'def': 'a disposable cup made of paper; for holding drinks', 'name': 'Dixie_cup'}, {'frequency': 'f', 'synset': 'dog.n.01', 'synonyms': ['dog'], 'id': 378, 'def': 'a common domesticated dog', 'name': 'dog'}, {'frequency': 'f', 'synset': 'dog_collar.n.01', 'synonyms': ['dog_collar'], 'id': 379, 'def': 'a collar for a dog', 'name': 'dog_collar'}, {'frequency': 'f', 'synset': 'doll.n.01', 'synonyms': ['doll'], 'id': 380, 'def': 'a toy replica of a HUMAN (NOT AN ANIMAL)', 'name': 'doll'}, {'frequency': 'r', 'synset': 'dollar.n.02', 'synonyms': ['dollar', 'dollar_bill', 'one_dollar_bill'], 'id': 381, 'def': 'a piece of paper money worth one dollar', 'name': 'dollar'}, {'frequency': 'r', 'synset': 'dollhouse.n.01', 'synonyms': ['dollhouse', "doll's_house"], 'id': 382, 'def': "a house so small that it is likened to a child's plaything", 'name': 'dollhouse'}, {'frequency': 'c', 'synset': 'dolphin.n.02', 'synonyms': ['dolphin'], 'id': 383, 'def': 'any of various small toothed whales with a beaklike snout; larger than porpoises', 'name': 'dolphin'}, {'frequency': 'c', 'synset': 'domestic_ass.n.01', 'synonyms': ['domestic_ass', 'donkey'], 'id': 384, 'def': 'domestic beast of burden descended from the African wild ass; patient but stubborn', 'name': 'domestic_ass'}, {'frequency': 'f', 'synset': 'doorknob.n.01', 'synonyms': ['doorknob', 'doorhandle'], 'id': 385, 'def': "a knob used to open a door (often called `doorhandle' in Great Britain)", 'name': 'doorknob'}, {'frequency': 'c', 'synset': 'doormat.n.02', 'synonyms': ['doormat', 'welcome_mat'], 'id': 386, 'def': 'a mat placed outside an exterior door for wiping the shoes before entering', 'name': 'doormat'}, {'frequency': 'f', 'synset': 'doughnut.n.02', 'synonyms': ['doughnut', 'donut'], 'id': 387, 'def': 'a small ring-shaped friedcake', 'name': 'doughnut'}, {'frequency': 'r', 'synset': 'dove.n.01', 'synonyms': ['dove'], 'id': 388, 'def': 'any of numerous small pigeons', 'name': 'dove'}, {'frequency': 'r', 'synset': 'dragonfly.n.01', 'synonyms': ['dragonfly'], 'id': 389, 'def': 'slender-bodied non-stinging insect having iridescent wings that are outspread at rest', 'name': 'dragonfly'}, {'frequency': 'f', 'synset': 'drawer.n.01', 'synonyms': ['drawer'], 'id': 390, 'def': 'a boxlike container in a piece of furniture; made so as to slide in and out', 'name': 'drawer'}, {'frequency': 'c', 'synset': 'drawers.n.01', 'synonyms': ['underdrawers', 'boxers', 'boxershorts'], 'id': 391, 'def': 'underpants worn by men', 'name': 'underdrawers'}, {'frequency': 'f', 'synset': 'dress.n.01', 'synonyms': ['dress', 'frock'], 'id': 392, 'def': 'a one-piece garment for a woman; has skirt and bodice', 'name': 'dress'}, {'frequency': 'c', 'synset': 'dress_hat.n.01', 'synonyms': ['dress_hat', 'high_hat', 'opera_hat', 'silk_hat', 'top_hat'], 'id': 393, 'def': "a man's hat with a tall crown; usually covered with silk or with beaver fur", 'name': 'dress_hat'}, {'frequency': 'f', 'synset': 'dress_suit.n.01', 'synonyms': ['dress_suit'], 'id': 394, 'def': 'formalwear consisting of full evening dress for men', 'name': 'dress_suit'}, {'frequency': 'f', 'synset': 'dresser.n.05', 'synonyms': ['dresser'], 'id': 395, 'def': 'a cabinet with shelves', 'name': 'dresser'}, {'frequency': 'c', 'synset': 'drill.n.01', 'synonyms': ['drill'], 'id': 396, 'def': 'a tool with a sharp rotating point for making holes in hard materials', 'name': 'drill'}, {'frequency': 'r', 'synset': 'drone.n.04', 'synonyms': ['drone'], 'id': 397, 'def': 'an aircraft without a pilot that is operated by remote control', 'name': 'drone'}, {'frequency': 'r', 'synset': 'dropper.n.01', 'synonyms': ['dropper', 'eye_dropper'], 'id': 398, 'def': 'pipet consisting of a small tube with a vacuum bulb at one end for drawing liquid in and releasing it a drop at a time', 'name': 'dropper'}, {'frequency': 'c', 'synset': 'drum.n.01', 'synonyms': ['drum_(musical_instrument)'], 'id': 399, 'def': 'a musical percussion instrument; usually consists of a hollow cylinder with a membrane stretched across each end', 'name': 'drum_(musical_instrument)'}, {'frequency': 'r', 'synset': 'drumstick.n.02', 'synonyms': ['drumstick'], 'id': 400, 'def': 'a stick used for playing a drum', 'name': 'drumstick'}, {'frequency': 'f', 'synset': 'duck.n.01', 'synonyms': ['duck'], 'id': 401, 'def': 'small web-footed broad-billed swimming bird', 'name': 'duck'}, {'frequency': 'c', 'synset': 'duckling.n.02', 'synonyms': ['duckling'], 'id': 402, 'def': 'young duck', 'name': 'duckling'}, {'frequency': 'c', 'synset': 'duct_tape.n.01', 'synonyms': ['duct_tape'], 'id': 403, 'def': 'a wide silvery adhesive tape', 'name': 'duct_tape'}, {'frequency': 'f', 'synset': 'duffel_bag.n.01', 'synonyms': ['duffel_bag', 'duffle_bag', 'duffel', 'duffle'], 'id': 404, 'def': 'a large cylindrical bag of heavy cloth (does not include suitcases)', 'name': 'duffel_bag'}, {'frequency': 'r', 'synset': 'dumbbell.n.01', 'synonyms': ['dumbbell'], 'id': 405, 'def': 'an exercising weight with two ball-like ends connected by a short handle', 'name': 'dumbbell'}, {'frequency': 'c', 'synset': 'dumpster.n.01', 'synonyms': ['dumpster'], 'id': 406, 'def': 'a container designed to receive and transport and dump waste', 'name': 'dumpster'}, {'frequency': 'r', 'synset': 'dustpan.n.02', 'synonyms': ['dustpan'], 'id': 407, 'def': 'a short-handled receptacle into which dust can be swept', 'name': 'dustpan'}, {'frequency': 'c', 'synset': 'eagle.n.01', 'synonyms': ['eagle'], 'id': 408, 'def': 'large birds of prey noted for their broad wings and strong soaring flight', 'name': 'eagle'}, {'frequency': 'f', 'synset': 'earphone.n.01', 'synonyms': ['earphone', 'earpiece', 'headphone'], 'id': 409, 'def': 'device for listening to audio that is held over or inserted into the ear', 'name': 'earphone'}, {'frequency': 'r', 'synset': 'earplug.n.01', 'synonyms': ['earplug'], 'id': 410, 'def': 'a soft plug that is inserted into the ear canal to block sound', 'name': 'earplug'}, {'frequency': 'f', 'synset': 'earring.n.01', 'synonyms': ['earring'], 'id': 411, 'def': 'jewelry to ornament the ear', 'name': 'earring'}, {'frequency': 'c', 'synset': 'easel.n.01', 'synonyms': ['easel'], 'id': 412, 'def': "an upright tripod for displaying something (usually an artist's canvas)", 'name': 'easel'}, {'frequency': 'r', 'synset': 'eclair.n.01', 'synonyms': ['eclair'], 'id': 413, 'def': 'oblong cream puff', 'name': 'eclair'}, {'frequency': 'r', 'synset': 'eel.n.01', 'synonyms': ['eel'], 'id': 414, 'def': 'an elongate fish with fatty flesh', 'name': 'eel'}, {'frequency': 'f', 'synset': 'egg.n.02', 'synonyms': ['egg', 'eggs'], 'id': 415, 'def': 'oval reproductive body of a fowl (especially a hen) used as food', 'name': 'egg'}, {'frequency': 'r', 'synset': 'egg_roll.n.01', 'synonyms': ['egg_roll', 'spring_roll'], 'id': 416, 'def': 'minced vegetables and meat wrapped in a pancake and fried', 'name': 'egg_roll'}, {'frequency': 'c', 'synset': 'egg_yolk.n.01', 'synonyms': ['egg_yolk', 'yolk_(egg)'], 'id': 417, 'def': 'the yellow spherical part of an egg', 'name': 'egg_yolk'}, {'frequency': 'c', 'synset': 'eggbeater.n.02', 'synonyms': ['eggbeater', 'eggwhisk'], 'id': 418, 'def': 'a mixer for beating eggs or whipping cream', 'name': 'eggbeater'}, {'frequency': 'c', 'synset': 'eggplant.n.01', 'synonyms': ['eggplant', 'aubergine'], 'id': 419, 'def': 'egg-shaped vegetable having a shiny skin typically dark purple', 'name': 'eggplant'}, {'frequency': 'r', 'synset': 'electric_chair.n.01', 'synonyms': ['electric_chair'], 'id': 420, 'def': 'a chair-shaped instrument of execution by electrocution', 'name': 'electric_chair'}, {'frequency': 'f', 'synset': 'electric_refrigerator.n.01', 'synonyms': ['refrigerator'], 'id': 421, 'def': 'a refrigerator in which the coolant is pumped around by an electric motor', 'name': 'refrigerator'}, {'frequency': 'f', 'synset': 'elephant.n.01', 'synonyms': ['elephant'], 'id': 422, 'def': 'a common elephant', 'name': 'elephant'}, {'frequency': 'c', 'synset': 'elk.n.01', 'synonyms': ['elk', 'moose'], 'id': 423, 'def': 'large northern deer with enormous flattened antlers in the male', 'name': 'elk'}, {'frequency': 'c', 'synset': 'envelope.n.01', 'synonyms': ['envelope'], 'id': 424, 'def': 'a flat (usually rectangular) container for a letter, thin package, etc.', 'name': 'envelope'}, {'frequency': 'c', 'synset': 'eraser.n.01', 'synonyms': ['eraser'], 'id': 425, 'def': 'an implement used to erase something', 'name': 'eraser'}, {'frequency': 'r', 'synset': 'escargot.n.01', 'synonyms': ['escargot'], 'id': 426, 'def': 'edible snail usually served in the shell with a sauce of melted butter and garlic', 'name': 'escargot'}, {'frequency': 'r', 'synset': 'eyepatch.n.01', 'synonyms': ['eyepatch'], 'id': 427, 'def': 'a protective cloth covering for an injured eye', 'name': 'eyepatch'}, {'frequency': 'r', 'synset': 'falcon.n.01', 'synonyms': ['falcon'], 'id': 428, 'def': 'birds of prey having long pointed powerful wings adapted for swift flight', 'name': 'falcon'}, {'frequency': 'f', 'synset': 'fan.n.01', 'synonyms': ['fan'], 'id': 429, 'def': 'a device for creating a current of air by movement of a surface or surfaces', 'name': 'fan'}, {'frequency': 'f', 'synset': 'faucet.n.01', 'synonyms': ['faucet', 'spigot', 'tap'], 'id': 430, 'def': 'a regulator for controlling the flow of a liquid from a reservoir', 'name': 'faucet'}, {'frequency': 'r', 'synset': 'fedora.n.01', 'synonyms': ['fedora'], 'id': 431, 'def': 'a hat made of felt with a creased crown', 'name': 'fedora'}, {'frequency': 'r', 'synset': 'ferret.n.02', 'synonyms': ['ferret'], 'id': 432, 'def': 'domesticated albino variety of the European polecat bred for hunting rats and rabbits', 'name': 'ferret'}, {'frequency': 'c', 'synset': 'ferris_wheel.n.01', 'synonyms': ['Ferris_wheel'], 'id': 433, 'def': 'a large wheel with suspended seats that remain upright as the wheel rotates', 'name': 'Ferris_wheel'}, {'frequency': 'c', 'synset': 'ferry.n.01', 'synonyms': ['ferry', 'ferryboat'], 'id': 434, 'def': 'a boat that transports people or vehicles across a body of water and operates on a regular schedule', 'name': 'ferry'}, {'frequency': 'r', 'synset': 'fig.n.04', 'synonyms': ['fig_(fruit)'], 'id': 435, 'def': 'fleshy sweet pear-shaped yellowish or purple fruit eaten fresh or preserved or dried', 'name': 'fig_(fruit)'}, {'frequency': 'c', 'synset': 'fighter.n.02', 'synonyms': ['fighter_jet', 'fighter_aircraft', 'attack_aircraft'], 'id': 436, 'def': 'a high-speed military or naval airplane designed to destroy enemy targets', 'name': 'fighter_jet'}, {'frequency': 'f', 'synset': 'figurine.n.01', 'synonyms': ['figurine'], 'id': 437, 'def': 'a small carved or molded figure', 'name': 'figurine'}, {'frequency': 'c', 'synset': 'file.n.03', 'synonyms': ['file_cabinet', 'filing_cabinet'], 'id': 438, 'def': 'office furniture consisting of a container for keeping papers in order', 'name': 'file_cabinet'}, {'frequency': 'r', 'synset': 'file.n.04', 'synonyms': ['file_(tool)'], 'id': 439, 'def': 'a steel hand tool with small sharp teeth on some or all of its surfaces; used for smoothing wood or metal', 'name': 'file_(tool)'}, {'frequency': 'f', 'synset': 'fire_alarm.n.02', 'synonyms': ['fire_alarm', 'smoke_alarm'], 'id': 440, 'def': 'an alarm that is tripped off by fire or smoke', 'name': 'fire_alarm'}, {'frequency': 'f', 'synset': 'fire_engine.n.01', 'synonyms': ['fire_engine', 'fire_truck'], 'id': 441, 'def': 'large trucks that carry firefighters and equipment to the site of a fire', 'name': 'fire_engine'}, {'frequency': 'f', 'synset': 'fire_extinguisher.n.01', 'synonyms': ['fire_extinguisher', 'extinguisher'], 'id': 442, 'def': 'a manually operated device for extinguishing small fires', 'name': 'fire_extinguisher'}, {'frequency': 'c', 'synset': 'fire_hose.n.01', 'synonyms': ['fire_hose'], 'id': 443, 'def': 'a large hose that carries water from a fire hydrant to the site of the fire', 'name': 'fire_hose'}, {'frequency': 'f', 'synset': 'fireplace.n.01', 'synonyms': ['fireplace'], 'id': 444, 'def': 'an open recess in a wall at the base of a chimney where a fire can be built', 'name': 'fireplace'}, {'frequency': 'f', 'synset': 'fireplug.n.01', 'synonyms': ['fireplug', 'fire_hydrant', 'hydrant'], 'id': 445, 'def': 'an upright hydrant for drawing water to use in fighting a fire', 'name': 'fireplug'}, {'frequency': 'r', 'synset': 'first-aid_kit.n.01', 'synonyms': ['first-aid_kit'], 'id': 446, 'def': 'kit consisting of a set of bandages and medicines for giving first aid', 'name': 'first-aid_kit'}, {'frequency': 'f', 'synset': 'fish.n.01', 'synonyms': ['fish'], 'id': 447, 'def': 'any of various mostly cold-blooded aquatic vertebrates usually having scales and breathing through gills', 'name': 'fish'}, {'frequency': 'c', 'synset': 'fish.n.02', 'synonyms': ['fish_(food)'], 'id': 448, 'def': 'the flesh of fish used as food', 'name': 'fish_(food)'}, {'frequency': 'r', 'synset': 'fishbowl.n.02', 'synonyms': ['fishbowl', 'goldfish_bowl'], 'id': 449, 'def': 'a transparent bowl in which small fish are kept', 'name': 'fishbowl'}, {'frequency': 'c', 'synset': 'fishing_rod.n.01', 'synonyms': ['fishing_rod', 'fishing_pole'], 'id': 450, 'def': 'a rod that is used in fishing to extend the fishing line', 'name': 'fishing_rod'}, {'frequency': 'f', 'synset': 'flag.n.01', 'synonyms': ['flag'], 'id': 451, 'def': 'emblem usually consisting of a rectangular piece of cloth of distinctive design (do not include pole)', 'name': 'flag'}, {'frequency': 'f', 'synset': 'flagpole.n.02', 'synonyms': ['flagpole', 'flagstaff'], 'id': 452, 'def': 'a tall staff or pole on which a flag is raised', 'name': 'flagpole'}, {'frequency': 'c', 'synset': 'flamingo.n.01', 'synonyms': ['flamingo'], 'id': 453, 'def': 'large pink web-footed bird with down-bent bill', 'name': 'flamingo'}, {'frequency': 'c', 'synset': 'flannel.n.01', 'synonyms': ['flannel'], 'id': 454, 'def': 'a soft light woolen fabric; used for clothing', 'name': 'flannel'}, {'frequency': 'c', 'synset': 'flap.n.01', 'synonyms': ['flap'], 'id': 455, 'def': 'any broad thin covering attached at one edge, such as a mud flap next to a wheel or a flap on an airplane wing', 'name': 'flap'}, {'frequency': 'r', 'synset': 'flash.n.10', 'synonyms': ['flash', 'flashbulb'], 'id': 456, 'def': 'a lamp for providing momentary light to take a photograph', 'name': 'flash'}, {'frequency': 'c', 'synset': 'flashlight.n.01', 'synonyms': ['flashlight', 'torch'], 'id': 457, 'def': 'a small portable battery-powered electric lamp', 'name': 'flashlight'}, {'frequency': 'r', 'synset': 'fleece.n.03', 'synonyms': ['fleece'], 'id': 458, 'def': 'a soft bulky fabric with deep pile; used chiefly for clothing', 'name': 'fleece'}, {'frequency': 'f', 'synset': 'flip-flop.n.02', 'synonyms': ['flip-flop_(sandal)'], 'id': 459, 'def': 'a backless sandal held to the foot by a thong between two toes', 'name': 'flip-flop_(sandal)'}, {'frequency': 'c', 'synset': 'flipper.n.01', 'synonyms': ['flipper_(footwear)', 'fin_(footwear)'], 'id': 460, 'def': 'a shoe to aid a person in swimming', 'name': 'flipper_(footwear)'}, {'frequency': 'f', 'synset': 'flower_arrangement.n.01', 'synonyms': ['flower_arrangement', 'floral_arrangement'], 'id': 461, 'def': 'a decorative arrangement of flowers', 'name': 'flower_arrangement'}, {'frequency': 'c', 'synset': 'flute.n.02', 'synonyms': ['flute_glass', 'champagne_flute'], 'id': 462, 'def': 'a tall narrow wineglass', 'name': 'flute_glass'}, {'frequency': 'c', 'synset': 'foal.n.01', 'synonyms': ['foal'], 'id': 463, 'def': 'a young horse', 'name': 'foal'}, {'frequency': 'c', 'synset': 'folding_chair.n.01', 'synonyms': ['folding_chair'], 'id': 464, 'def': 'a chair that can be folded flat for storage', 'name': 'folding_chair'}, {'frequency': 'c', 'synset': 'food_processor.n.01', 'synonyms': ['food_processor'], 'id': 465, 'def': 'a kitchen appliance for shredding, blending, chopping, or slicing food', 'name': 'food_processor'}, {'frequency': 'c', 'synset': 'football.n.02', 'synonyms': ['football_(American)'], 'id': 466, 'def': 'the inflated oblong ball used in playing American football', 'name': 'football_(American)'}, {'frequency': 'r', 'synset': 'football_helmet.n.01', 'synonyms': ['football_helmet'], 'id': 467, 'def': 'a padded helmet with a face mask to protect the head of football players', 'name': 'football_helmet'}, {'frequency': 'c', 'synset': 'footstool.n.01', 'synonyms': ['footstool', 'footrest'], 'id': 468, 'def': 'a low seat or a stool to rest the feet of a seated person', 'name': 'footstool'}, {'frequency': 'f', 'synset': 'fork.n.01', 'synonyms': ['fork'], 'id': 469, 'def': 'cutlery used for serving and eating food', 'name': 'fork'}, {'frequency': 'c', 'synset': 'forklift.n.01', 'synonyms': ['forklift'], 'id': 470, 'def': 'an industrial vehicle with a power operated fork in front that can be inserted under loads to lift and move them', 'name': 'forklift'}, {'frequency': 'c', 'synset': 'freight_car.n.01', 'synonyms': ['freight_car'], 'id': 471, 'def': 'a railway car that carries freight', 'name': 'freight_car'}, {'frequency': 'c', 'synset': 'french_toast.n.01', 'synonyms': ['French_toast'], 'id': 472, 'def': 'bread slice dipped in egg and milk and fried', 'name': 'French_toast'}, {'frequency': 'c', 'synset': 'freshener.n.01', 'synonyms': ['freshener', 'air_freshener'], 'id': 473, 'def': 'anything that freshens air by removing or covering odor', 'name': 'freshener'}, {'frequency': 'f', 'synset': 'frisbee.n.01', 'synonyms': ['frisbee'], 'id': 474, 'def': 'a light, plastic disk propelled with a flip of the wrist for recreation or competition', 'name': 'frisbee'}, {'frequency': 'c', 'synset': 'frog.n.01', 'synonyms': ['frog', 'toad', 'toad_frog'], 'id': 475, 'def': 'a tailless stout-bodied amphibians with long hind limbs for leaping', 'name': 'frog'}, {'frequency': 'c', 'synset': 'fruit_juice.n.01', 'synonyms': ['fruit_juice'], 'id': 476, 'def': 'drink produced by squeezing or crushing fruit', 'name': 'fruit_juice'}, {'frequency': 'f', 'synset': 'frying_pan.n.01', 'synonyms': ['frying_pan', 'frypan', 'skillet'], 'id': 477, 'def': 'a pan used for frying foods', 'name': 'frying_pan'}, {'frequency': 'r', 'synset': 'fudge.n.01', 'synonyms': ['fudge'], 'id': 478, 'def': 'soft creamy candy', 'name': 'fudge'}, {'frequency': 'r', 'synset': 'funnel.n.02', 'synonyms': ['funnel'], 'id': 479, 'def': 'a cone-shaped utensil used to channel a substance into a container with a small mouth', 'name': 'funnel'}, {'frequency': 'r', 'synset': 'futon.n.01', 'synonyms': ['futon'], 'id': 480, 'def': 'a pad that is used for sleeping on the floor or on a raised frame', 'name': 'futon'}, {'frequency': 'r', 'synset': 'gag.n.02', 'synonyms': ['gag', 'muzzle'], 'id': 481, 'def': "restraint put into a person's mouth to prevent speaking or shouting", 'name': 'gag'}, {'frequency': 'r', 'synset': 'garbage.n.03', 'synonyms': ['garbage'], 'id': 482, 'def': 'a receptacle where waste can be discarded', 'name': 'garbage'}, {'frequency': 'c', 'synset': 'garbage_truck.n.01', 'synonyms': ['garbage_truck'], 'id': 483, 'def': 'a truck for collecting domestic refuse', 'name': 'garbage_truck'}, {'frequency': 'c', 'synset': 'garden_hose.n.01', 'synonyms': ['garden_hose'], 'id': 484, 'def': 'a hose used for watering a lawn or garden', 'name': 'garden_hose'}, {'frequency': 'c', 'synset': 'gargle.n.01', 'synonyms': ['gargle', 'mouthwash'], 'id': 485, 'def': 'a medicated solution used for gargling and rinsing the mouth', 'name': 'gargle'}, {'frequency': 'r', 'synset': 'gargoyle.n.02', 'synonyms': ['gargoyle'], 'id': 486, 'def': 'an ornament consisting of a grotesquely carved figure of a person or animal', 'name': 'gargoyle'}, {'frequency': 'c', 'synset': 'garlic.n.02', 'synonyms': ['garlic', 'ail'], 'id': 487, 'def': 'aromatic bulb used as seasoning', 'name': 'garlic'}, {'frequency': 'r', 'synset': 'gasmask.n.01', 'synonyms': ['gasmask', 'respirator', 'gas_helmet'], 'id': 488, 'def': 'a protective face mask with a filter', 'name': 'gasmask'}, {'frequency': 'c', 'synset': 'gazelle.n.01', 'synonyms': ['gazelle'], 'id': 489, 'def': 'small swift graceful antelope of Africa and Asia having lustrous eyes', 'name': 'gazelle'}, {'frequency': 'c', 'synset': 'gelatin.n.02', 'synonyms': ['gelatin', 'jelly'], 'id': 490, 'def': 'an edible jelly made with gelatin and used as a dessert or salad base or a coating for foods', 'name': 'gelatin'}, {'frequency': 'r', 'synset': 'gem.n.02', 'synonyms': ['gemstone'], 'id': 491, 'def': 'a crystalline rock that can be cut and polished for jewelry', 'name': 'gemstone'}, {'frequency': 'r', 'synset': 'generator.n.02', 'synonyms': ['generator'], 'id': 492, 'def': 'engine that converts mechanical energy into electrical energy by electromagnetic induction', 'name': 'generator'}, {'frequency': 'c', 'synset': 'giant_panda.n.01', 'synonyms': ['giant_panda', 'panda', 'panda_bear'], 'id': 493, 'def': 'large black-and-white herbivorous mammal of bamboo forests of China and Tibet', 'name': 'giant_panda'}, {'frequency': 'c', 'synset': 'gift_wrap.n.01', 'synonyms': ['gift_wrap'], 'id': 494, 'def': 'attractive wrapping paper suitable for wrapping gifts', 'name': 'gift_wrap'}, {'frequency': 'c', 'synset': 'ginger.n.03', 'synonyms': ['ginger', 'gingerroot'], 'id': 495, 'def': 'the root of the common ginger plant; used fresh as a seasoning', 'name': 'ginger'}, {'frequency': 'f', 'synset': 'giraffe.n.01', 'synonyms': ['giraffe'], 'id': 496, 'def': 'tall animal having a spotted coat and small horns and very long neck and legs', 'name': 'giraffe'}, {'frequency': 'c', 'synset': 'girdle.n.02', 'synonyms': ['cincture', 'sash', 'waistband', 'waistcloth'], 'id': 497, 'def': 'a band of material around the waist that strengthens a skirt or trousers', 'name': 'cincture'}, {'frequency': 'f', 'synset': 'glass.n.02', 'synonyms': ['glass_(drink_container)', 'drinking_glass'], 'id': 498, 'def': 'a container for holding liquids while drinking', 'name': 'glass_(drink_container)'}, {'frequency': 'c', 'synset': 'globe.n.03', 'synonyms': ['globe'], 'id': 499, 'def': 'a sphere on which a map (especially of the earth) is represented', 'name': 'globe'}, {'frequency': 'f', 'synset': 'glove.n.02', 'synonyms': ['glove'], 'id': 500, 'def': 'handwear covering the hand', 'name': 'glove'}, {'frequency': 'c', 'synset': 'goat.n.01', 'synonyms': ['goat'], 'id': 501, 'def': 'a common goat', 'name': 'goat'}, {'frequency': 'f', 'synset': 'goggles.n.01', 'synonyms': ['goggles'], 'id': 502, 'def': 'tight-fitting spectacles worn to protect the eyes', 'name': 'goggles'}, {'frequency': 'r', 'synset': 'goldfish.n.01', 'synonyms': ['goldfish'], 'id': 503, 'def': 'small golden or orange-red freshwater fishes used as pond or aquarium pets', 'name': 'goldfish'}, {'frequency': 'c', 'synset': 'golf_club.n.02', 'synonyms': ['golf_club', 'golf-club'], 'id': 504, 'def': 'golf equipment used by a golfer to hit a golf ball', 'name': 'golf_club'}, {'frequency': 'c', 'synset': 'golfcart.n.01', 'synonyms': ['golfcart'], 'id': 505, 'def': 'a small motor vehicle in which golfers can ride between shots', 'name': 'golfcart'}, {'frequency': 'r', 'synset': 'gondola.n.02', 'synonyms': ['gondola_(boat)'], 'id': 506, 'def': 'long narrow flat-bottomed boat propelled by sculling; traditionally used on canals of Venice', 'name': 'gondola_(boat)'}, {'frequency': 'c', 'synset': 'goose.n.01', 'synonyms': ['goose'], 'id': 507, 'def': 'loud, web-footed long-necked aquatic birds usually larger than ducks', 'name': 'goose'}, {'frequency': 'r', 'synset': 'gorilla.n.01', 'synonyms': ['gorilla'], 'id': 508, 'def': 'largest ape', 'name': 'gorilla'}, {'frequency': 'r', 'synset': 'gourd.n.02', 'synonyms': ['gourd'], 'id': 509, 'def': 'any of numerous inedible fruits with hard rinds', 'name': 'gourd'}, {'frequency': 'f', 'synset': 'grape.n.01', 'synonyms': ['grape'], 'id': 510, 'def': 'any of various juicy fruit with green or purple skins; grow in clusters', 'name': 'grape'}, {'frequency': 'c', 'synset': 'grater.n.01', 'synonyms': ['grater'], 'id': 511, 'def': 'utensil with sharp perforations for shredding foods (as vegetables or cheese)', 'name': 'grater'}, {'frequency': 'c', 'synset': 'gravestone.n.01', 'synonyms': ['gravestone', 'headstone', 'tombstone'], 'id': 512, 'def': 'a stone that is used to mark a grave', 'name': 'gravestone'}, {'frequency': 'r', 'synset': 'gravy_boat.n.01', 'synonyms': ['gravy_boat', 'gravy_holder'], 'id': 513, 'def': 'a dish (often boat-shaped) for serving gravy or sauce', 'name': 'gravy_boat'}, {'frequency': 'f', 'synset': 'green_bean.n.02', 'synonyms': ['green_bean'], 'id': 514, 'def': 'a common bean plant cultivated for its slender green edible pods', 'name': 'green_bean'}, {'frequency': 'f', 'synset': 'green_onion.n.01', 'synonyms': ['green_onion', 'spring_onion', 'scallion'], 'id': 515, 'def': 'a young onion before the bulb has enlarged', 'name': 'green_onion'}, {'frequency': 'r', 'synset': 'griddle.n.01', 'synonyms': ['griddle'], 'id': 516, 'def': 'cooking utensil consisting of a flat heated surface on which food is cooked', 'name': 'griddle'}, {'frequency': 'f', 'synset': 'grill.n.02', 'synonyms': ['grill', 'grille', 'grillwork', 'radiator_grille'], 'id': 517, 'def': 'a framework of metal bars used as a partition or a grate', 'name': 'grill'}, {'frequency': 'r', 'synset': 'grits.n.01', 'synonyms': ['grits', 'hominy_grits'], 'id': 518, 'def': 'coarsely ground corn boiled as a breakfast dish', 'name': 'grits'}, {'frequency': 'c', 'synset': 'grizzly.n.01', 'synonyms': ['grizzly', 'grizzly_bear'], 'id': 519, 'def': 'powerful brownish-yellow bear of the uplands of western North America', 'name': 'grizzly'}, {'frequency': 'c', 'synset': 'grocery_bag.n.01', 'synonyms': ['grocery_bag'], 'id': 520, 'def': "a sack for holding customer's groceries", 'name': 'grocery_bag'}, {'frequency': 'f', 'synset': 'guitar.n.01', 'synonyms': ['guitar'], 'id': 521, 'def': 'a stringed instrument usually having six strings; played by strumming or plucking', 'name': 'guitar'}, {'frequency': 'c', 'synset': 'gull.n.02', 'synonyms': ['gull', 'seagull'], 'id': 522, 'def': 'mostly white aquatic bird having long pointed wings and short legs', 'name': 'gull'}, {'frequency': 'c', 'synset': 'gun.n.01', 'synonyms': ['gun'], 'id': 523, 'def': 'a weapon that discharges a bullet at high velocity from a metal tube', 'name': 'gun'}, {'frequency': 'f', 'synset': 'hairbrush.n.01', 'synonyms': ['hairbrush'], 'id': 524, 'def': "a brush used to groom a person's hair", 'name': 'hairbrush'}, {'frequency': 'c', 'synset': 'hairnet.n.01', 'synonyms': ['hairnet'], 'id': 525, 'def': 'a small net that someone wears over their hair to keep it in place', 'name': 'hairnet'}, {'frequency': 'c', 'synset': 'hairpin.n.01', 'synonyms': ['hairpin'], 'id': 526, 'def': "a double pronged pin used to hold women's hair in place", 'name': 'hairpin'}, {'frequency': 'r', 'synset': 'halter.n.03', 'synonyms': ['halter_top'], 'id': 527, 'def': "a woman's top that fastens behind the back and neck leaving the back and arms uncovered", 'name': 'halter_top'}, {'frequency': 'f', 'synset': 'ham.n.01', 'synonyms': ['ham', 'jambon', 'gammon'], 'id': 528, 'def': 'meat cut from the thigh of a hog (usually smoked)', 'name': 'ham'}, {'frequency': 'c', 'synset': 'hamburger.n.01', 'synonyms': ['hamburger', 'beefburger', 'burger'], 'id': 529, 'def': 'a sandwich consisting of a patty of minced beef served on a bun', 'name': 'hamburger'}, {'frequency': 'c', 'synset': 'hammer.n.02', 'synonyms': ['hammer'], 'id': 530, 'def': 'a hand tool with a heavy head and a handle; used to deliver an impulsive force by striking', 'name': 'hammer'}, {'frequency': 'c', 'synset': 'hammock.n.02', 'synonyms': ['hammock'], 'id': 531, 'def': 'a hanging bed of canvas or rope netting (usually suspended between two trees)', 'name': 'hammock'}, {'frequency': 'r', 'synset': 'hamper.n.02', 'synonyms': ['hamper'], 'id': 532, 'def': 'a basket usually with a cover', 'name': 'hamper'}, {'frequency': 'c', 'synset': 'hamster.n.01', 'synonyms': ['hamster'], 'id': 533, 'def': 'short-tailed burrowing rodent with large cheek pouches', 'name': 'hamster'}, {'frequency': 'f', 'synset': 'hand_blower.n.01', 'synonyms': ['hair_dryer'], 'id': 534, 'def': 'a hand-held electric blower that can blow warm air onto the hair', 'name': 'hair_dryer'}, {'frequency': 'r', 'synset': 'hand_glass.n.01', 'synonyms': ['hand_glass', 'hand_mirror'], 'id': 535, 'def': 'a mirror intended to be held in the hand', 'name': 'hand_glass'}, {'frequency': 'f', 'synset': 'hand_towel.n.01', 'synonyms': ['hand_towel', 'face_towel'], 'id': 536, 'def': 'a small towel used to dry the hands or face', 'name': 'hand_towel'}, {'frequency': 'c', 'synset': 'handcart.n.01', 'synonyms': ['handcart', 'pushcart', 'hand_truck'], 'id': 537, 'def': 'wheeled vehicle that can be pushed by a person', 'name': 'handcart'}, {'frequency': 'r', 'synset': 'handcuff.n.01', 'synonyms': ['handcuff'], 'id': 538, 'def': 'shackle that consists of a metal loop that can be locked around the wrist', 'name': 'handcuff'}, {'frequency': 'c', 'synset': 'handkerchief.n.01', 'synonyms': ['handkerchief'], 'id': 539, 'def': 'a square piece of cloth used for wiping the eyes or nose or as a costume accessory', 'name': 'handkerchief'}, {'frequency': 'f', 'synset': 'handle.n.01', 'synonyms': ['handle', 'grip', 'handgrip'], 'id': 540, 'def': 'the appendage to an object that is designed to be held in order to use or move it', 'name': 'handle'}, {'frequency': 'r', 'synset': 'handsaw.n.01', 'synonyms': ['handsaw', "carpenter's_saw"], 'id': 541, 'def': 'a saw used with one hand for cutting wood', 'name': 'handsaw'}, {'frequency': 'r', 'synset': 'hardback.n.01', 'synonyms': ['hardback_book', 'hardcover_book'], 'id': 542, 'def': 'a book with cardboard or cloth or leather covers', 'name': 'hardback_book'}, {'frequency': 'r', 'synset': 'harmonium.n.01', 'synonyms': ['harmonium', 'organ_(musical_instrument)', 'reed_organ_(musical_instrument)'], 'id': 543, 'def': 'a free-reed instrument in which air is forced through the reeds by bellows', 'name': 'harmonium'}, {'frequency': 'f', 'synset': 'hat.n.01', 'synonyms': ['hat'], 'id': 544, 'def': 'headwear that protects the head from bad weather, sun, or worn for fashion', 'name': 'hat'}, {'frequency': 'r', 'synset': 'hatbox.n.01', 'synonyms': ['hatbox'], 'id': 545, 'def': 'a round piece of luggage for carrying hats', 'name': 'hatbox'}, {'frequency': 'c', 'synset': 'head_covering.n.01', 'synonyms': ['veil'], 'id': 546, 'def': 'a garment that covers the head OR face', 'name': 'veil'}, {'frequency': 'f', 'synset': 'headband.n.01', 'synonyms': ['headband'], 'id': 547, 'def': 'a band worn around or over the head', 'name': 'headband'}, {'frequency': 'f', 'synset': 'headboard.n.01', 'synonyms': ['headboard'], 'id': 548, 'def': 'a vertical board or panel forming the head of a bedstead', 'name': 'headboard'}, {'frequency': 'f', 'synset': 'headlight.n.01', 'synonyms': ['headlight', 'headlamp'], 'id': 549, 'def': 'a powerful light with reflector; attached to the front of an automobile or locomotive', 'name': 'headlight'}, {'frequency': 'c', 'synset': 'headscarf.n.01', 'synonyms': ['headscarf'], 'id': 550, 'def': 'a kerchief worn over the head and tied under the chin', 'name': 'headscarf'}, {'frequency': 'r', 'synset': 'headset.n.01', 'synonyms': ['headset'], 'id': 551, 'def': 'receiver consisting of a pair of headphones', 'name': 'headset'}, {'frequency': 'c', 'synset': 'headstall.n.01', 'synonyms': ['headstall_(for_horses)', 'headpiece_(for_horses)'], 'id': 552, 'def': "the band that is the part of a bridle that fits around a horse's head", 'name': 'headstall_(for_horses)'}, {'frequency': 'c', 'synset': 'heart.n.02', 'synonyms': ['heart'], 'id': 553, 'def': 'a muscular organ; its contractions move the blood through the body', 'name': 'heart'}, {'frequency': 'c', 'synset': 'heater.n.01', 'synonyms': ['heater', 'warmer'], 'id': 554, 'def': 'device that heats water or supplies warmth to a room', 'name': 'heater'}, {'frequency': 'c', 'synset': 'helicopter.n.01', 'synonyms': ['helicopter'], 'id': 555, 'def': 'an aircraft without wings that obtains its lift from the rotation of overhead blades', 'name': 'helicopter'}, {'frequency': 'f', 'synset': 'helmet.n.02', 'synonyms': ['helmet'], 'id': 556, 'def': 'a protective headgear made of hard material to resist blows', 'name': 'helmet'}, {'frequency': 'r', 'synset': 'heron.n.02', 'synonyms': ['heron'], 'id': 557, 'def': 'grey or white wading bird with long neck and long legs and (usually) long bill', 'name': 'heron'}, {'frequency': 'c', 'synset': 'highchair.n.01', 'synonyms': ['highchair', 'feeding_chair'], 'id': 558, 'def': 'a chair for feeding a very young child', 'name': 'highchair'}, {'frequency': 'f', 'synset': 'hinge.n.01', 'synonyms': ['hinge'], 'id': 559, 'def': 'a joint that holds two parts together so that one can swing relative to the other', 'name': 'hinge'}, {'frequency': 'r', 'synset': 'hippopotamus.n.01', 'synonyms': ['hippopotamus'], 'id': 560, 'def': 'massive thick-skinned animal living in or around rivers of tropical Africa', 'name': 'hippopotamus'}, {'frequency': 'r', 'synset': 'hockey_stick.n.01', 'synonyms': ['hockey_stick'], 'id': 561, 'def': 'sports implement consisting of a stick used by hockey players to move the puck', 'name': 'hockey_stick'}, {'frequency': 'c', 'synset': 'hog.n.03', 'synonyms': ['hog', 'pig'], 'id': 562, 'def': 'domestic swine', 'name': 'hog'}, {'frequency': 'f', 'synset': 'home_plate.n.01', 'synonyms': ['home_plate_(baseball)', 'home_base_(baseball)'], 'id': 563, 'def': '(baseball) a rubber slab where the batter stands; it must be touched by a base runner in order to score', 'name': 'home_plate_(baseball)'}, {'frequency': 'c', 'synset': 'honey.n.01', 'synonyms': ['honey'], 'id': 564, 'def': 'a sweet yellow liquid produced by bees', 'name': 'honey'}, {'frequency': 'f', 'synset': 'hood.n.06', 'synonyms': ['fume_hood', 'exhaust_hood'], 'id': 565, 'def': 'metal covering leading to a vent that exhausts smoke or fumes', 'name': 'fume_hood'}, {'frequency': 'f', 'synset': 'hook.n.05', 'synonyms': ['hook'], 'id': 566, 'def': 'a curved or bent implement for suspending or pulling something', 'name': 'hook'}, {'frequency': 'r', 'synset': 'hookah.n.01', 'synonyms': ['hookah', 'narghile', 'nargileh', 'sheesha', 'shisha', 'water_pipe'], 'id': 567, 'def': 'a tobacco pipe with a long flexible tube connected to a container where the smoke is cooled by passing through water', 'name': 'hookah'}, {'frequency': 'r', 'synset': 'hornet.n.01', 'synonyms': ['hornet'], 'id': 568, 'def': 'large stinging wasp', 'name': 'hornet'}, {'frequency': 'f', 'synset': 'horse.n.01', 'synonyms': ['horse'], 'id': 569, 'def': 'a common horse', 'name': 'horse'}, {'frequency': 'f', 'synset': 'hose.n.03', 'synonyms': ['hose', 'hosepipe'], 'id': 570, 'def': 'a flexible pipe for conveying a liquid or gas', 'name': 'hose'}, {'frequency': 'r', 'synset': 'hot-air_balloon.n.01', 'synonyms': ['hot-air_balloon'], 'id': 571, 'def': 'balloon for travel through the air in a basket suspended below a large bag of heated air', 'name': 'hot-air_balloon'}, {'frequency': 'r', 'synset': 'hot_plate.n.01', 'synonyms': ['hotplate'], 'id': 572, 'def': 'a portable electric appliance for heating or cooking or keeping food warm', 'name': 'hotplate'}, {'frequency': 'c', 'synset': 'hot_sauce.n.01', 'synonyms': ['hot_sauce'], 'id': 573, 'def': 'a pungent peppery sauce', 'name': 'hot_sauce'}, {'frequency': 'r', 'synset': 'hourglass.n.01', 'synonyms': ['hourglass'], 'id': 574, 'def': 'a sandglass timer that runs for sixty minutes', 'name': 'hourglass'}, {'frequency': 'r', 'synset': 'houseboat.n.01', 'synonyms': ['houseboat'], 'id': 575, 'def': 'a barge that is designed and equipped for use as a dwelling', 'name': 'houseboat'}, {'frequency': 'c', 'synset': 'hummingbird.n.01', 'synonyms': ['hummingbird'], 'id': 576, 'def': 'tiny American bird having brilliant iridescent plumage and long slender bills', 'name': 'hummingbird'}, {'frequency': 'r', 'synset': 'hummus.n.01', 'synonyms': ['hummus', 'humus', 'hommos', 'hoummos', 'humous'], 'id': 577, 'def': 'a thick spread made from mashed chickpeas', 'name': 'hummus'}, {'frequency': 'f', 'synset': 'ice_bear.n.01', 'synonyms': ['polar_bear'], 'id': 578, 'def': 'white bear of Arctic regions', 'name': 'polar_bear'}, {'frequency': 'c', 'synset': 'ice_cream.n.01', 'synonyms': ['icecream'], 'id': 579, 'def': 'frozen dessert containing cream and sugar and flavoring', 'name': 'icecream'}, {'frequency': 'r', 'synset': 'ice_lolly.n.01', 'synonyms': ['popsicle'], 'id': 580, 'def': 'ice cream or water ice on a small wooden stick', 'name': 'popsicle'}, {'frequency': 'c', 'synset': 'ice_maker.n.01', 'synonyms': ['ice_maker'], 'id': 581, 'def': 'an appliance included in some electric refrigerators for making ice cubes', 'name': 'ice_maker'}, {'frequency': 'r', 'synset': 'ice_pack.n.01', 'synonyms': ['ice_pack', 'ice_bag'], 'id': 582, 'def': 'a waterproof bag filled with ice: applied to the body (especially the head) to cool or reduce swelling', 'name': 'ice_pack'}, {'frequency': 'r', 'synset': 'ice_skate.n.01', 'synonyms': ['ice_skate'], 'id': 583, 'def': 'skate consisting of a boot with a steel blade fitted to the sole', 'name': 'ice_skate'}, {'frequency': 'c', 'synset': 'igniter.n.01', 'synonyms': ['igniter', 'ignitor', 'lighter'], 'id': 584, 'def': 'a substance or device used to start a fire', 'name': 'igniter'}, {'frequency': 'r', 'synset': 'inhaler.n.01', 'synonyms': ['inhaler', 'inhalator'], 'id': 585, 'def': 'a dispenser that produces a chemical vapor to be inhaled through mouth or nose', 'name': 'inhaler'}, {'frequency': 'f', 'synset': 'ipod.n.01', 'synonyms': ['iPod'], 'id': 586, 'def': 'a pocket-sized device used to play music files', 'name': 'iPod'}, {'frequency': 'c', 'synset': 'iron.n.04', 'synonyms': ['iron_(for_clothing)', 'smoothing_iron_(for_clothing)'], 'id': 587, 'def': 'home appliance consisting of a flat metal base that is heated and used to smooth cloth', 'name': 'iron_(for_clothing)'}, {'frequency': 'c', 'synset': 'ironing_board.n.01', 'synonyms': ['ironing_board'], 'id': 588, 'def': 'narrow padded board on collapsible supports; used for ironing clothes', 'name': 'ironing_board'}, {'frequency': 'f', 'synset': 'jacket.n.01', 'synonyms': ['jacket'], 'id': 589, 'def': 'a waist-length coat', 'name': 'jacket'}, {'frequency': 'c', 'synset': 'jam.n.01', 'synonyms': ['jam'], 'id': 590, 'def': 'preserve of crushed fruit', 'name': 'jam'}, {'frequency': 'f', 'synset': 'jar.n.01', 'synonyms': ['jar'], 'id': 591, 'def': 'a vessel (usually cylindrical) with a wide mouth and without handles', 'name': 'jar'}, {'frequency': 'f', 'synset': 'jean.n.01', 'synonyms': ['jean', 'blue_jean', 'denim'], 'id': 592, 'def': '(usually plural) close-fitting trousers of heavy denim for manual work or casual wear', 'name': 'jean'}, {'frequency': 'c', 'synset': 'jeep.n.01', 'synonyms': ['jeep', 'landrover'], 'id': 593, 'def': 'a car suitable for traveling over rough terrain', 'name': 'jeep'}, {'frequency': 'r', 'synset': 'jelly_bean.n.01', 'synonyms': ['jelly_bean', 'jelly_egg'], 'id': 594, 'def': 'sugar-glazed jellied candy', 'name': 'jelly_bean'}, {'frequency': 'f', 'synset': 'jersey.n.03', 'synonyms': ['jersey', 'T-shirt', 'tee_shirt'], 'id': 595, 'def': 'a close-fitting pullover shirt', 'name': 'jersey'}, {'frequency': 'c', 'synset': 'jet.n.01', 'synonyms': ['jet_plane', 'jet-propelled_plane'], 'id': 596, 'def': 'an airplane powered by one or more jet engines', 'name': 'jet_plane'}, {'frequency': 'r', 'synset': 'jewel.n.01', 'synonyms': ['jewel', 'gem', 'precious_stone'], 'id': 597, 'def': 'a precious or semiprecious stone incorporated into a piece of jewelry', 'name': 'jewel'}, {'frequency': 'c', 'synset': 'jewelry.n.01', 'synonyms': ['jewelry', 'jewellery'], 'id': 598, 'def': 'an adornment (as a bracelet or ring or necklace) made of precious metals and set with gems (or imitation gems)', 'name': 'jewelry'}, {'frequency': 'r', 'synset': 'joystick.n.02', 'synonyms': ['joystick'], 'id': 599, 'def': 'a control device for computers consisting of a vertical handle that can move freely in two directions', 'name': 'joystick'}, {'frequency': 'c', 'synset': 'jump_suit.n.01', 'synonyms': ['jumpsuit'], 'id': 600, 'def': "one-piece garment fashioned after a parachutist's uniform", 'name': 'jumpsuit'}, {'frequency': 'c', 'synset': 'kayak.n.01', 'synonyms': ['kayak'], 'id': 601, 'def': 'a small canoe consisting of a light frame made watertight with animal skins', 'name': 'kayak'}, {'frequency': 'r', 'synset': 'keg.n.02', 'synonyms': ['keg'], 'id': 602, 'def': 'small cask or barrel', 'name': 'keg'}, {'frequency': 'r', 'synset': 'kennel.n.01', 'synonyms': ['kennel', 'doghouse'], 'id': 603, 'def': 'outbuilding that serves as a shelter for a dog', 'name': 'kennel'}, {'frequency': 'c', 'synset': 'kettle.n.01', 'synonyms': ['kettle', 'boiler'], 'id': 604, 'def': 'a metal pot for stewing or boiling; usually has a lid', 'name': 'kettle'}, {'frequency': 'f', 'synset': 'key.n.01', 'synonyms': ['key'], 'id': 605, 'def': 'metal instrument used to unlock a lock', 'name': 'key'}, {'frequency': 'r', 'synset': 'keycard.n.01', 'synonyms': ['keycard'], 'id': 606, 'def': 'a plastic card used to gain access typically to a door', 'name': 'keycard'}, {'frequency': 'c', 'synset': 'kilt.n.01', 'synonyms': ['kilt'], 'id': 607, 'def': 'a knee-length pleated tartan skirt worn by men as part of the traditional dress in the Highlands of northern Scotland', 'name': 'kilt'}, {'frequency': 'c', 'synset': 'kimono.n.01', 'synonyms': ['kimono'], 'id': 608, 'def': 'a loose robe; imitated from robes originally worn by Japanese', 'name': 'kimono'}, {'frequency': 'f', 'synset': 'kitchen_sink.n.01', 'synonyms': ['kitchen_sink'], 'id': 609, 'def': 'a sink in a kitchen', 'name': 'kitchen_sink'}, {'frequency': 'r', 'synset': 'kitchen_table.n.01', 'synonyms': ['kitchen_table'], 'id': 610, 'def': 'a table in the kitchen', 'name': 'kitchen_table'}, {'frequency': 'f', 'synset': 'kite.n.03', 'synonyms': ['kite'], 'id': 611, 'def': 'plaything consisting of a light frame covered with tissue paper; flown in wind at end of a string', 'name': 'kite'}, {'frequency': 'c', 'synset': 'kitten.n.01', 'synonyms': ['kitten', 'kitty'], 'id': 612, 'def': 'young domestic cat', 'name': 'kitten'}, {'frequency': 'c', 'synset': 'kiwi.n.03', 'synonyms': ['kiwi_fruit'], 'id': 613, 'def': 'fuzzy brown egg-shaped fruit with slightly tart green flesh', 'name': 'kiwi_fruit'}, {'frequency': 'f', 'synset': 'knee_pad.n.01', 'synonyms': ['knee_pad'], 'id': 614, 'def': 'protective garment consisting of a pad worn by football or baseball or hockey players', 'name': 'knee_pad'}, {'frequency': 'f', 'synset': 'knife.n.01', 'synonyms': ['knife'], 'id': 615, 'def': 'tool with a blade and point used as a cutting instrument', 'name': 'knife'}, {'frequency': 'r', 'synset': 'knitting_needle.n.01', 'synonyms': ['knitting_needle'], 'id': 616, 'def': 'needle consisting of a slender rod with pointed ends; usually used in pairs', 'name': 'knitting_needle'}, {'frequency': 'f', 'synset': 'knob.n.02', 'synonyms': ['knob'], 'id': 617, 'def': 'a round handle often found on a door', 'name': 'knob'}, {'frequency': 'r', 'synset': 'knocker.n.05', 'synonyms': ['knocker_(on_a_door)', 'doorknocker'], 'id': 618, 'def': 'a device (usually metal and ornamental) attached by a hinge to a door', 'name': 'knocker_(on_a_door)'}, {'frequency': 'r', 'synset': 'koala.n.01', 'synonyms': ['koala', 'koala_bear'], 'id': 619, 'def': 'sluggish tailless Australian marsupial with grey furry ears and coat', 'name': 'koala'}, {'frequency': 'r', 'synset': 'lab_coat.n.01', 'synonyms': ['lab_coat', 'laboratory_coat'], 'id': 620, 'def': 'a light coat worn to protect clothing from substances used while working in a laboratory', 'name': 'lab_coat'}, {'frequency': 'f', 'synset': 'ladder.n.01', 'synonyms': ['ladder'], 'id': 621, 'def': 'steps consisting of two parallel members connected by rungs', 'name': 'ladder'}, {'frequency': 'c', 'synset': 'ladle.n.01', 'synonyms': ['ladle'], 'id': 622, 'def': 'a spoon-shaped vessel with a long handle frequently used to transfer liquids', 'name': 'ladle'}, {'frequency': 'c', 'synset': 'ladybug.n.01', 'synonyms': ['ladybug', 'ladybeetle', 'ladybird_beetle'], 'id': 623, 'def': 'small round bright-colored and spotted beetle, typically red and black', 'name': 'ladybug'}, {'frequency': 'f', 'synset': 'lamb.n.01', 'synonyms': ['lamb_(animal)'], 'id': 624, 'def': 'young sheep', 'name': 'lamb_(animal)'}, {'frequency': 'r', 'synset': 'lamb_chop.n.01', 'synonyms': ['lamb-chop', 'lambchop'], 'id': 625, 'def': 'chop cut from a lamb', 'name': 'lamb-chop'}, {'frequency': 'f', 'synset': 'lamp.n.02', 'synonyms': ['lamp'], 'id': 626, 'def': 'a piece of furniture holding one or more electric light bulbs', 'name': 'lamp'}, {'frequency': 'f', 'synset': 'lamppost.n.01', 'synonyms': ['lamppost'], 'id': 627, 'def': 'a metal post supporting an outdoor lamp (such as a streetlight)', 'name': 'lamppost'}, {'frequency': 'f', 'synset': 'lampshade.n.01', 'synonyms': ['lampshade'], 'id': 628, 'def': 'a protective ornamental shade used to screen a light bulb from direct view', 'name': 'lampshade'}, {'frequency': 'c', 'synset': 'lantern.n.01', 'synonyms': ['lantern'], 'id': 629, 'def': 'light in a transparent protective case', 'name': 'lantern'}, {'frequency': 'f', 'synset': 'lanyard.n.02', 'synonyms': ['lanyard', 'laniard'], 'id': 630, 'def': 'a cord worn around the neck to hold a knife or whistle, etc.', 'name': 'lanyard'}, {'frequency': 'f', 'synset': 'laptop.n.01', 'synonyms': ['laptop_computer', 'notebook_computer'], 'id': 631, 'def': 'a portable computer small enough to use in your lap', 'name': 'laptop_computer'}, {'frequency': 'r', 'synset': 'lasagna.n.01', 'synonyms': ['lasagna', 'lasagne'], 'id': 632, 'def': 'baked dish of layers of lasagna pasta with sauce and cheese and meat or vegetables', 'name': 'lasagna'}, {'frequency': 'f', 'synset': 'latch.n.02', 'synonyms': ['latch'], 'id': 633, 'def': 'a bar that can be lowered or slid into a groove to fasten a door or gate', 'name': 'latch'}, {'frequency': 'r', 'synset': 'lawn_mower.n.01', 'synonyms': ['lawn_mower'], 'id': 634, 'def': 'garden tool for mowing grass on lawns', 'name': 'lawn_mower'}, {'frequency': 'r', 'synset': 'leather.n.01', 'synonyms': ['leather'], 'id': 635, 'def': 'an animal skin made smooth and flexible by removing the hair and then tanning', 'name': 'leather'}, {'frequency': 'c', 'synset': 'legging.n.01', 'synonyms': ['legging_(clothing)', 'leging_(clothing)', 'leg_covering'], 'id': 636, 'def': 'a garment covering the leg (usually extending from the knee to the ankle)', 'name': 'legging_(clothing)'}, {'frequency': 'c', 'synset': 'lego.n.01', 'synonyms': ['Lego', 'Lego_set'], 'id': 637, 'def': "a child's plastic construction set for making models from blocks", 'name': 'Lego'}, {'frequency': 'r', 'synset': 'legume.n.02', 'synonyms': ['legume'], 'id': 638, 'def': 'the fruit or seed of bean or pea plants', 'name': 'legume'}, {'frequency': 'f', 'synset': 'lemon.n.01', 'synonyms': ['lemon'], 'id': 639, 'def': 'yellow oval fruit with juicy acidic flesh', 'name': 'lemon'}, {'frequency': 'r', 'synset': 'lemonade.n.01', 'synonyms': ['lemonade'], 'id': 640, 'def': 'sweetened beverage of diluted lemon juice', 'name': 'lemonade'}, {'frequency': 'f', 'synset': 'lettuce.n.02', 'synonyms': ['lettuce'], 'id': 641, 'def': 'leafy plant commonly eaten in salad or on sandwiches', 'name': 'lettuce'}, {'frequency': 'f', 'synset': 'license_plate.n.01', 'synonyms': ['license_plate', 'numberplate'], 'id': 642, 'def': "a plate mounted on the front and back of car and bearing the car's registration number", 'name': 'license_plate'}, {'frequency': 'f', 'synset': 'life_buoy.n.01', 'synonyms': ['life_buoy', 'lifesaver', 'life_belt', 'life_ring'], 'id': 643, 'def': 'a ring-shaped life preserver used to prevent drowning (NOT a life-jacket or vest)', 'name': 'life_buoy'}, {'frequency': 'f', 'synset': 'life_jacket.n.01', 'synonyms': ['life_jacket', 'life_vest'], 'id': 644, 'def': 'life preserver consisting of a sleeveless jacket of buoyant or inflatable design', 'name': 'life_jacket'}, {'frequency': 'f', 'synset': 'light_bulb.n.01', 'synonyms': ['lightbulb'], 'id': 645, 'def': 'lightblub/source of light', 'name': 'lightbulb'}, {'frequency': 'r', 'synset': 'lightning_rod.n.02', 'synonyms': ['lightning_rod', 'lightning_conductor'], 'id': 646, 'def': 'a metallic conductor that is attached to a high point and leads to the ground', 'name': 'lightning_rod'}, {'frequency': 'f', 'synset': 'lime.n.06', 'synonyms': ['lime'], 'id': 647, 'def': 'the green acidic fruit of any of various lime trees', 'name': 'lime'}, {'frequency': 'r', 'synset': 'limousine.n.01', 'synonyms': ['limousine'], 'id': 648, 'def': 'long luxurious car; usually driven by a chauffeur', 'name': 'limousine'}, {'frequency': 'c', 'synset': 'lion.n.01', 'synonyms': ['lion'], 'id': 649, 'def': 'large gregarious predatory cat of Africa and India', 'name': 'lion'}, {'frequency': 'c', 'synset': 'lip_balm.n.01', 'synonyms': ['lip_balm'], 'id': 650, 'def': 'a balm applied to the lips', 'name': 'lip_balm'}, {'frequency': 'r', 'synset': 'liquor.n.01', 'synonyms': ['liquor', 'spirits', 'hard_liquor', 'liqueur', 'cordial'], 'id': 651, 'def': 'liquor or beer', 'name': 'liquor'}, {'frequency': 'c', 'synset': 'lizard.n.01', 'synonyms': ['lizard'], 'id': 652, 'def': 'a reptile with usually two pairs of legs and a tapering tail', 'name': 'lizard'}, {'frequency': 'f', 'synset': 'log.n.01', 'synonyms': ['log'], 'id': 653, 'def': 'a segment of the trunk of a tree when stripped of branches', 'name': 'log'}, {'frequency': 'c', 'synset': 'lollipop.n.02', 'synonyms': ['lollipop'], 'id': 654, 'def': 'hard candy on a stick', 'name': 'lollipop'}, {'frequency': 'f', 'synset': 'loudspeaker.n.01', 'synonyms': ['speaker_(stero_equipment)'], 'id': 655, 'def': 'electronic device that produces sound often as part of a stereo system', 'name': 'speaker_(stero_equipment)'}, {'frequency': 'c', 'synset': 'love_seat.n.01', 'synonyms': ['loveseat'], 'id': 656, 'def': 'small sofa that seats two people', 'name': 'loveseat'}, {'frequency': 'r', 'synset': 'machine_gun.n.01', 'synonyms': ['machine_gun'], 'id': 657, 'def': 'a rapidly firing automatic gun', 'name': 'machine_gun'}, {'frequency': 'f', 'synset': 'magazine.n.02', 'synonyms': ['magazine'], 'id': 658, 'def': 'a paperback periodic publication', 'name': 'magazine'}, {'frequency': 'f', 'synset': 'magnet.n.01', 'synonyms': ['magnet'], 'id': 659, 'def': 'a device that attracts iron and produces a magnetic field', 'name': 'magnet'}, {'frequency': 'c', 'synset': 'mail_slot.n.01', 'synonyms': ['mail_slot'], 'id': 660, 'def': 'a slot (usually in a door) through which mail can be delivered', 'name': 'mail_slot'}, {'frequency': 'f', 'synset': 'mailbox.n.01', 'synonyms': ['mailbox_(at_home)', 'letter_box_(at_home)'], 'id': 661, 'def': 'a private box for delivery of mail', 'name': 'mailbox_(at_home)'}, {'frequency': 'r', 'synset': 'mallard.n.01', 'synonyms': ['mallard'], 'id': 662, 'def': 'wild dabbling duck from which domestic ducks are descended', 'name': 'mallard'}, {'frequency': 'r', 'synset': 'mallet.n.01', 'synonyms': ['mallet'], 'id': 663, 'def': 'a sports implement with a long handle and a hammer-like head used to hit a ball', 'name': 'mallet'}, {'frequency': 'r', 'synset': 'mammoth.n.01', 'synonyms': ['mammoth'], 'id': 664, 'def': 'any of numerous extinct elephants widely distributed in the Pleistocene', 'name': 'mammoth'}, {'frequency': 'r', 'synset': 'manatee.n.01', 'synonyms': ['manatee'], 'id': 665, 'def': 'sirenian mammal of tropical coastal waters of America', 'name': 'manatee'}, {'frequency': 'c', 'synset': 'mandarin.n.05', 'synonyms': ['mandarin_orange'], 'id': 666, 'def': 'a somewhat flat reddish-orange loose skinned citrus of China', 'name': 'mandarin_orange'}, {'frequency': 'c', 'synset': 'manger.n.01', 'synonyms': ['manger', 'trough'], 'id': 667, 'def': 'a container (usually in a barn or stable) from which cattle or horses feed', 'name': 'manger'}, {'frequency': 'f', 'synset': 'manhole.n.01', 'synonyms': ['manhole'], 'id': 668, 'def': 'a hole (usually with a flush cover) through which a person can gain access to an underground structure', 'name': 'manhole'}, {'frequency': 'f', 'synset': 'map.n.01', 'synonyms': ['map'], 'id': 669, 'def': "a diagrammatic representation of the earth's surface (or part of it)", 'name': 'map'}, {'frequency': 'f', 'synset': 'marker.n.03', 'synonyms': ['marker'], 'id': 670, 'def': 'a writing implement for making a mark', 'name': 'marker'}, {'frequency': 'r', 'synset': 'martini.n.01', 'synonyms': ['martini'], 'id': 671, 'def': 'a cocktail made of gin (or vodka) with dry vermouth', 'name': 'martini'}, {'frequency': 'r', 'synset': 'mascot.n.01', 'synonyms': ['mascot'], 'id': 672, 'def': 'a person or animal that is adopted by a team or other group as a symbolic figure', 'name': 'mascot'}, {'frequency': 'c', 'synset': 'mashed_potato.n.01', 'synonyms': ['mashed_potato'], 'id': 673, 'def': 'potato that has been peeled and boiled and then mashed', 'name': 'mashed_potato'}, {'frequency': 'r', 'synset': 'masher.n.02', 'synonyms': ['masher'], 'id': 674, 'def': 'a kitchen utensil used for mashing (e.g. potatoes)', 'name': 'masher'}, {'frequency': 'f', 'synset': 'mask.n.04', 'synonyms': ['mask', 'facemask'], 'id': 675, 'def': 'a protective covering worn over the face', 'name': 'mask'}, {'frequency': 'f', 'synset': 'mast.n.01', 'synonyms': ['mast'], 'id': 676, 'def': 'a vertical spar for supporting sails', 'name': 'mast'}, {'frequency': 'c', 'synset': 'mat.n.03', 'synonyms': ['mat_(gym_equipment)', 'gym_mat'], 'id': 677, 'def': 'sports equipment consisting of a piece of thick padding on the floor for gymnastics', 'name': 'mat_(gym_equipment)'}, {'frequency': 'r', 'synset': 'matchbox.n.01', 'synonyms': ['matchbox'], 'id': 678, 'def': 'a box for holding matches', 'name': 'matchbox'}, {'frequency': 'f', 'synset': 'mattress.n.01', 'synonyms': ['mattress'], 'id': 679, 'def': 'a thick pad filled with resilient material used as a bed or part of a bed', 'name': 'mattress'}, {'frequency': 'c', 'synset': 'measuring_cup.n.01', 'synonyms': ['measuring_cup'], 'id': 680, 'def': 'graduated cup used to measure liquid or granular ingredients', 'name': 'measuring_cup'}, {'frequency': 'c', 'synset': 'measuring_stick.n.01', 'synonyms': ['measuring_stick', 'ruler_(measuring_stick)', 'measuring_rod'], 'id': 681, 'def': 'measuring instrument having a sequence of marks at regular intervals', 'name': 'measuring_stick'}, {'frequency': 'c', 'synset': 'meatball.n.01', 'synonyms': ['meatball'], 'id': 682, 'def': 'ground meat formed into a ball and fried or simmered in broth', 'name': 'meatball'}, {'frequency': 'c', 'synset': 'medicine.n.02', 'synonyms': ['medicine'], 'id': 683, 'def': 'something that treats or prevents or alleviates the symptoms of disease', 'name': 'medicine'}, {'frequency': 'c', 'synset': 'melon.n.01', 'synonyms': ['melon'], 'id': 684, 'def': 'fruit of the gourd family having a hard rind and sweet juicy flesh', 'name': 'melon'}, {'frequency': 'f', 'synset': 'microphone.n.01', 'synonyms': ['microphone'], 'id': 685, 'def': 'device for converting sound waves into electrical energy', 'name': 'microphone'}, {'frequency': 'r', 'synset': 'microscope.n.01', 'synonyms': ['microscope'], 'id': 686, 'def': 'magnifier of the image of small objects', 'name': 'microscope'}, {'frequency': 'f', 'synset': 'microwave.n.02', 'synonyms': ['microwave_oven'], 'id': 687, 'def': 'kitchen appliance that cooks food by passing an electromagnetic wave through it', 'name': 'microwave_oven'}, {'frequency': 'r', 'synset': 'milestone.n.01', 'synonyms': ['milestone', 'milepost'], 'id': 688, 'def': 'stone post at side of a road to show distances', 'name': 'milestone'}, {'frequency': 'f', 'synset': 'milk.n.01', 'synonyms': ['milk'], 'id': 689, 'def': 'a white nutritious liquid secreted by mammals and used as food by human beings', 'name': 'milk'}, {'frequency': 'r', 'synset': 'milk_can.n.01', 'synonyms': ['milk_can'], 'id': 690, 'def': 'can for transporting milk', 'name': 'milk_can'}, {'frequency': 'r', 'synset': 'milkshake.n.01', 'synonyms': ['milkshake'], 'id': 691, 'def': 'frothy drink of milk and flavoring and sometimes fruit or ice cream', 'name': 'milkshake'}, {'frequency': 'f', 'synset': 'minivan.n.01', 'synonyms': ['minivan'], 'id': 692, 'def': 'a small box-shaped passenger van', 'name': 'minivan'}, {'frequency': 'r', 'synset': 'mint.n.05', 'synonyms': ['mint_candy'], 'id': 693, 'def': 'a candy that is flavored with a mint oil', 'name': 'mint_candy'}, {'frequency': 'f', 'synset': 'mirror.n.01', 'synonyms': ['mirror'], 'id': 694, 'def': 'polished surface that forms images by reflecting light', 'name': 'mirror'}, {'frequency': 'c', 'synset': 'mitten.n.01', 'synonyms': ['mitten'], 'id': 695, 'def': 'glove that encases the thumb separately and the other four fingers together', 'name': 'mitten'}, {'frequency': 'c', 'synset': 'mixer.n.04', 'synonyms': ['mixer_(kitchen_tool)', 'stand_mixer'], 'id': 696, 'def': 'a kitchen utensil that is used for mixing foods', 'name': 'mixer_(kitchen_tool)'}, {'frequency': 'c', 'synset': 'money.n.03', 'synonyms': ['money'], 'id': 697, 'def': 'the official currency issued by a government or national bank', 'name': 'money'}, {'frequency': 'f', 'synset': 'monitor.n.04', 'synonyms': ['monitor_(computer_equipment) computer_monitor'], 'id': 698, 'def': 'a computer monitor', 'name': 'monitor_(computer_equipment) computer_monitor'}, {'frequency': 'c', 'synset': 'monkey.n.01', 'synonyms': ['monkey'], 'id': 699, 'def': 'any of various long-tailed primates', 'name': 'monkey'}, {'frequency': 'f', 'synset': 'motor.n.01', 'synonyms': ['motor'], 'id': 700, 'def': 'machine that converts other forms of energy into mechanical energy and so imparts motion', 'name': 'motor'}, {'frequency': 'f', 'synset': 'motor_scooter.n.01', 'synonyms': ['motor_scooter', 'scooter'], 'id': 701, 'def': 'a wheeled vehicle with small wheels and a low-powered engine', 'name': 'motor_scooter'}, {'frequency': 'r', 'synset': 'motor_vehicle.n.01', 'synonyms': ['motor_vehicle', 'automotive_vehicle'], 'id': 702, 'def': 'a self-propelled wheeled vehicle that does not run on rails', 'name': 'motor_vehicle'}, {'frequency': 'f', 'synset': 'motorcycle.n.01', 'synonyms': ['motorcycle'], 'id': 703, 'def': 'a motor vehicle with two wheels and a strong frame', 'name': 'motorcycle'}, {'frequency': 'f', 'synset': 'mound.n.01', 'synonyms': ['mound_(baseball)', "pitcher's_mound"], 'id': 704, 'def': '(baseball) the slight elevation on which the pitcher stands', 'name': 'mound_(baseball)'}, {'frequency': 'f', 'synset': 'mouse.n.04', 'synonyms': ['mouse_(computer_equipment)', 'computer_mouse'], 'id': 705, 'def': 'a computer input device that controls an on-screen pointer (does not include trackpads / touchpads)', 'name': 'mouse_(computer_equipment)'}, {'frequency': 'f', 'synset': 'mousepad.n.01', 'synonyms': ['mousepad'], 'id': 706, 'def': 'a small portable pad that provides an operating surface for a computer mouse', 'name': 'mousepad'}, {'frequency': 'c', 'synset': 'muffin.n.01', 'synonyms': ['muffin'], 'id': 707, 'def': 'a sweet quick bread baked in a cup-shaped pan', 'name': 'muffin'}, {'frequency': 'f', 'synset': 'mug.n.04', 'synonyms': ['mug'], 'id': 708, 'def': 'with handle and usually cylindrical', 'name': 'mug'}, {'frequency': 'f', 'synset': 'mushroom.n.02', 'synonyms': ['mushroom'], 'id': 709, 'def': 'a common mushroom', 'name': 'mushroom'}, {'frequency': 'r', 'synset': 'music_stool.n.01', 'synonyms': ['music_stool', 'piano_stool'], 'id': 710, 'def': 'a stool for piano players; usually adjustable in height', 'name': 'music_stool'}, {'frequency': 'c', 'synset': 'musical_instrument.n.01', 'synonyms': ['musical_instrument', 'instrument_(musical)'], 'id': 711, 'def': 'any of various devices or contrivances that can be used to produce musical tones or sounds', 'name': 'musical_instrument'}, {'frequency': 'r', 'synset': 'nailfile.n.01', 'synonyms': ['nailfile'], 'id': 712, 'def': 'a small flat file for shaping the nails', 'name': 'nailfile'}, {'frequency': 'f', 'synset': 'napkin.n.01', 'synonyms': ['napkin', 'table_napkin', 'serviette'], 'id': 713, 'def': 'a small piece of table linen or paper that is used to wipe the mouth and to cover the lap in order to protect clothing', 'name': 'napkin'}, {'frequency': 'r', 'synset': 'neckerchief.n.01', 'synonyms': ['neckerchief'], 'id': 714, 'def': 'a kerchief worn around the neck', 'name': 'neckerchief'}, {'frequency': 'f', 'synset': 'necklace.n.01', 'synonyms': ['necklace'], 'id': 715, 'def': 'jewelry consisting of a cord or chain (often bearing gems) worn about the neck as an ornament', 'name': 'necklace'}, {'frequency': 'f', 'synset': 'necktie.n.01', 'synonyms': ['necktie', 'tie_(necktie)'], 'id': 716, 'def': 'neckwear consisting of a long narrow piece of material worn under a collar and tied in knot at the front', 'name': 'necktie'}, {'frequency': 'c', 'synset': 'needle.n.03', 'synonyms': ['needle'], 'id': 717, 'def': 'a sharp pointed implement (usually metal)', 'name': 'needle'}, {'frequency': 'c', 'synset': 'nest.n.01', 'synonyms': ['nest'], 'id': 718, 'def': 'a structure in which animals lay eggs or give birth to their young', 'name': 'nest'}, {'frequency': 'f', 'synset': 'newspaper.n.01', 'synonyms': ['newspaper', 'paper_(newspaper)'], 'id': 719, 'def': 'a daily or weekly publication on folded sheets containing news, articles, and advertisements', 'name': 'newspaper'}, {'frequency': 'c', 'synset': 'newsstand.n.01', 'synonyms': ['newsstand'], 'id': 720, 'def': 'a stall where newspapers and other periodicals are sold', 'name': 'newsstand'}, {'frequency': 'c', 'synset': 'nightwear.n.01', 'synonyms': ['nightshirt', 'nightwear', 'sleepwear', 'nightclothes'], 'id': 721, 'def': 'garments designed to be worn in bed', 'name': 'nightshirt'}, {'frequency': 'r', 'synset': 'nosebag.n.01', 'synonyms': ['nosebag_(for_animals)', 'feedbag'], 'id': 722, 'def': 'a canvas bag that is used to feed an animal (such as a horse); covers the muzzle and fastens at the top of the head', 'name': 'nosebag_(for_animals)'}, {'frequency': 'c', 'synset': 'noseband.n.01', 'synonyms': ['noseband_(for_animals)', 'nosepiece_(for_animals)'], 'id': 723, 'def': "a strap that is the part of a bridle that goes over the animal's nose", 'name': 'noseband_(for_animals)'}, {'frequency': 'f', 'synset': 'notebook.n.01', 'synonyms': ['notebook'], 'id': 724, 'def': 'a book with blank pages for recording notes or memoranda', 'name': 'notebook'}, {'frequency': 'c', 'synset': 'notepad.n.01', 'synonyms': ['notepad'], 'id': 725, 'def': 'a pad of paper for keeping notes', 'name': 'notepad'}, {'frequency': 'f', 'synset': 'nut.n.03', 'synonyms': ['nut'], 'id': 726, 'def': 'a small metal block (usually square or hexagonal) with internal screw thread to be fitted onto a bolt', 'name': 'nut'}, {'frequency': 'r', 'synset': 'nutcracker.n.01', 'synonyms': ['nutcracker'], 'id': 727, 'def': 'a hand tool used to crack nuts open', 'name': 'nutcracker'}, {'frequency': 'f', 'synset': 'oar.n.01', 'synonyms': ['oar'], 'id': 728, 'def': 'an implement used to propel or steer a boat', 'name': 'oar'}, {'frequency': 'r', 'synset': 'octopus.n.01', 'synonyms': ['octopus_(food)'], 'id': 729, 'def': 'tentacles of octopus prepared as food', 'name': 'octopus_(food)'}, {'frequency': 'r', 'synset': 'octopus.n.02', 'synonyms': ['octopus_(animal)'], 'id': 730, 'def': 'bottom-living cephalopod having a soft oval body with eight long tentacles', 'name': 'octopus_(animal)'}, {'frequency': 'c', 'synset': 'oil_lamp.n.01', 'synonyms': ['oil_lamp', 'kerosene_lamp', 'kerosine_lamp'], 'id': 731, 'def': 'a lamp that burns oil (as kerosine) for light', 'name': 'oil_lamp'}, {'frequency': 'c', 'synset': 'olive_oil.n.01', 'synonyms': ['olive_oil'], 'id': 732, 'def': 'oil from olives', 'name': 'olive_oil'}, {'frequency': 'r', 'synset': 'omelet.n.01', 'synonyms': ['omelet', 'omelette'], 'id': 733, 'def': 'beaten eggs cooked until just set; may be folded around e.g. ham or cheese or jelly', 'name': 'omelet'}, {'frequency': 'f', 'synset': 'onion.n.01', 'synonyms': ['onion'], 'id': 734, 'def': 'the bulb of an onion plant', 'name': 'onion'}, {'frequency': 'f', 'synset': 'orange.n.01', 'synonyms': ['orange_(fruit)'], 'id': 735, 'def': 'orange (FRUIT of an orange tree)', 'name': 'orange_(fruit)'}, {'frequency': 'c', 'synset': 'orange_juice.n.01', 'synonyms': ['orange_juice'], 'id': 736, 'def': 'bottled or freshly squeezed juice of oranges', 'name': 'orange_juice'}, {'frequency': 'c', 'synset': 'ostrich.n.02', 'synonyms': ['ostrich'], 'id': 737, 'def': 'fast-running African flightless bird with two-toed feet; largest living bird', 'name': 'ostrich'}, {'frequency': 'f', 'synset': 'ottoman.n.03', 'synonyms': ['ottoman', 'pouf', 'pouffe', 'hassock'], 'id': 738, 'def': 'a thick standalone cushion used as a seat or footrest, often next to a chair', 'name': 'ottoman'}, {'frequency': 'f', 'synset': 'oven.n.01', 'synonyms': ['oven'], 'id': 739, 'def': 'kitchen appliance used for baking or roasting', 'name': 'oven'}, {'frequency': 'c', 'synset': 'overall.n.01', 'synonyms': ['overalls_(clothing)'], 'id': 740, 'def': 'work clothing consisting of denim trousers usually with a bib and shoulder straps', 'name': 'overalls_(clothing)'}, {'frequency': 'c', 'synset': 'owl.n.01', 'synonyms': ['owl'], 'id': 741, 'def': 'nocturnal bird of prey with hawk-like beak and claws and large head with front-facing eyes', 'name': 'owl'}, {'frequency': 'c', 'synset': 'packet.n.03', 'synonyms': ['packet'], 'id': 742, 'def': 'a small package or bundle', 'name': 'packet'}, {'frequency': 'r', 'synset': 'pad.n.03', 'synonyms': ['inkpad', 'inking_pad', 'stamp_pad'], 'id': 743, 'def': 'absorbent material saturated with ink used to transfer ink evenly to a rubber stamp', 'name': 'inkpad'}, {'frequency': 'c', 'synset': 'pad.n.04', 'synonyms': ['pad'], 'id': 744, 'def': 'mostly arm/knee pads labeled', 'name': 'pad'}, {'frequency': 'f', 'synset': 'paddle.n.04', 'synonyms': ['paddle', 'boat_paddle'], 'id': 745, 'def': 'a short light oar used without an oarlock to propel a canoe or small boat', 'name': 'paddle'}, {'frequency': 'c', 'synset': 'padlock.n.01', 'synonyms': ['padlock'], 'id': 746, 'def': 'a detachable, portable lock', 'name': 'padlock'}, {'frequency': 'c', 'synset': 'paintbrush.n.01', 'synonyms': ['paintbrush'], 'id': 747, 'def': 'a brush used as an applicator to apply paint', 'name': 'paintbrush'}, {'frequency': 'f', 'synset': 'painting.n.01', 'synonyms': ['painting'], 'id': 748, 'def': 'graphic art consisting of an artistic composition made by applying paints to a surface', 'name': 'painting'}, {'frequency': 'f', 'synset': 'pajama.n.02', 'synonyms': ['pajamas', 'pyjamas'], 'id': 749, 'def': 'loose-fitting nightclothes worn for sleeping or lounging', 'name': 'pajamas'}, {'frequency': 'c', 'synset': 'palette.n.02', 'synonyms': ['palette', 'pallet'], 'id': 750, 'def': 'board that provides a flat surface on which artists mix paints and the range of colors used', 'name': 'palette'}, {'frequency': 'f', 'synset': 'pan.n.01', 'synonyms': ['pan_(for_cooking)', 'cooking_pan'], 'id': 751, 'def': 'cooking utensil consisting of a wide metal vessel', 'name': 'pan_(for_cooking)'}, {'frequency': 'r', 'synset': 'pan.n.03', 'synonyms': ['pan_(metal_container)'], 'id': 752, 'def': 'shallow container made of metal', 'name': 'pan_(metal_container)'}, {'frequency': 'c', 'synset': 'pancake.n.01', 'synonyms': ['pancake'], 'id': 753, 'def': 'a flat cake of thin batter fried on both sides on a griddle', 'name': 'pancake'}, {'frequency': 'r', 'synset': 'pantyhose.n.01', 'synonyms': ['pantyhose'], 'id': 754, 'def': "a woman's tights consisting of underpants and stockings", 'name': 'pantyhose'}, {'frequency': 'r', 'synset': 'papaya.n.02', 'synonyms': ['papaya'], 'id': 755, 'def': 'large oval melon-like tropical fruit with yellowish flesh', 'name': 'papaya'}, {'frequency': 'f', 'synset': 'paper_plate.n.01', 'synonyms': ['paper_plate'], 'id': 756, 'def': 'a disposable plate made of cardboard', 'name': 'paper_plate'}, {'frequency': 'f', 'synset': 'paper_towel.n.01', 'synonyms': ['paper_towel'], 'id': 757, 'def': 'a disposable towel made of absorbent paper', 'name': 'paper_towel'}, {'frequency': 'r', 'synset': 'paperback_book.n.01', 'synonyms': ['paperback_book', 'paper-back_book', 'softback_book', 'soft-cover_book'], 'id': 758, 'def': 'a book with paper covers', 'name': 'paperback_book'}, {'frequency': 'r', 'synset': 'paperweight.n.01', 'synonyms': ['paperweight'], 'id': 759, 'def': 'a weight used to hold down a stack of papers', 'name': 'paperweight'}, {'frequency': 'c', 'synset': 'parachute.n.01', 'synonyms': ['parachute'], 'id': 760, 'def': 'rescue equipment consisting of a device that fills with air and retards your fall', 'name': 'parachute'}, {'frequency': 'c', 'synset': 'parakeet.n.01', 'synonyms': ['parakeet', 'parrakeet', 'parroket', 'paraquet', 'paroquet', 'parroquet'], 'id': 761, 'def': 'any of numerous small slender long-tailed parrots', 'name': 'parakeet'}, {'frequency': 'c', 'synset': 'parasail.n.01', 'synonyms': ['parasail_(sports)'], 'id': 762, 'def': 'parachute that will lift a person up into the air when it is towed by a motorboat or a car', 'name': 'parasail_(sports)'}, {'frequency': 'c', 'synset': 'parasol.n.01', 'synonyms': ['parasol', 'sunshade'], 'id': 763, 'def': 'a handheld collapsible source of shade', 'name': 'parasol'}, {'frequency': 'r', 'synset': 'parchment.n.01', 'synonyms': ['parchment'], 'id': 764, 'def': 'a superior paper resembling sheepskin', 'name': 'parchment'}, {'frequency': 'c', 'synset': 'parka.n.01', 'synonyms': ['parka', 'anorak'], 'id': 765, 'def': "a kind of heavy jacket (`windcheater' is a British term)", 'name': 'parka'}, {'frequency': 'f', 'synset': 'parking_meter.n.01', 'synonyms': ['parking_meter'], 'id': 766, 'def': 'a coin-operated timer located next to a parking space', 'name': 'parking_meter'}, {'frequency': 'c', 'synset': 'parrot.n.01', 'synonyms': ['parrot'], 'id': 767, 'def': 'usually brightly colored tropical birds with short hooked beaks and the ability to mimic sounds', 'name': 'parrot'}, {'frequency': 'c', 'synset': 'passenger_car.n.01', 'synonyms': ['passenger_car_(part_of_a_train)', 'coach_(part_of_a_train)'], 'id': 768, 'def': 'a railcar where passengers ride', 'name': 'passenger_car_(part_of_a_train)'}, {'frequency': 'r', 'synset': 'passenger_ship.n.01', 'synonyms': ['passenger_ship'], 'id': 769, 'def': 'a ship built to carry passengers', 'name': 'passenger_ship'}, {'frequency': 'c', 'synset': 'passport.n.02', 'synonyms': ['passport'], 'id': 770, 'def': 'a document issued by a country to a citizen allowing that person to travel abroad and re-enter the home country', 'name': 'passport'}, {'frequency': 'f', 'synset': 'pastry.n.02', 'synonyms': ['pastry'], 'id': 771, 'def': 'any of various baked foods made of dough or batter', 'name': 'pastry'}, {'frequency': 'r', 'synset': 'patty.n.01', 'synonyms': ['patty_(food)'], 'id': 772, 'def': 'small flat mass of chopped food', 'name': 'patty_(food)'}, {'frequency': 'c', 'synset': 'pea.n.01', 'synonyms': ['pea_(food)'], 'id': 773, 'def': 'seed of a pea plant used for food', 'name': 'pea_(food)'}, {'frequency': 'c', 'synset': 'peach.n.03', 'synonyms': ['peach'], 'id': 774, 'def': 'downy juicy fruit with sweet yellowish or whitish flesh', 'name': 'peach'}, {'frequency': 'c', 'synset': 'peanut_butter.n.01', 'synonyms': ['peanut_butter'], 'id': 775, 'def': 'a spread made from ground peanuts', 'name': 'peanut_butter'}, {'frequency': 'f', 'synset': 'pear.n.01', 'synonyms': ['pear'], 'id': 776, 'def': 'sweet juicy gritty-textured fruit available in many varieties', 'name': 'pear'}, {'frequency': 'c', 'synset': 'peeler.n.03', 'synonyms': ['peeler_(tool_for_fruit_and_vegetables)'], 'id': 777, 'def': 'a device for peeling vegetables or fruits', 'name': 'peeler_(tool_for_fruit_and_vegetables)'}, {'frequency': 'r', 'synset': 'peg.n.04', 'synonyms': ['wooden_leg', 'pegleg'], 'id': 778, 'def': 'a prosthesis that replaces a missing leg', 'name': 'wooden_leg'}, {'frequency': 'r', 'synset': 'pegboard.n.01', 'synonyms': ['pegboard'], 'id': 779, 'def': 'a board perforated with regularly spaced holes into which pegs can be fitted', 'name': 'pegboard'}, {'frequency': 'c', 'synset': 'pelican.n.01', 'synonyms': ['pelican'], 'id': 780, 'def': 'large long-winged warm-water seabird having a large bill with a distensible pouch for fish', 'name': 'pelican'}, {'frequency': 'f', 'synset': 'pen.n.01', 'synonyms': ['pen'], 'id': 781, 'def': 'a writing implement with a point from which ink flows', 'name': 'pen'}, {'frequency': 'f', 'synset': 'pencil.n.01', 'synonyms': ['pencil'], 'id': 782, 'def': 'a thin cylindrical pointed writing implement made of wood and graphite', 'name': 'pencil'}, {'frequency': 'r', 'synset': 'pencil_box.n.01', 'synonyms': ['pencil_box', 'pencil_case'], 'id': 783, 'def': 'a box for holding pencils', 'name': 'pencil_box'}, {'frequency': 'r', 'synset': 'pencil_sharpener.n.01', 'synonyms': ['pencil_sharpener'], 'id': 784, 'def': 'a rotary implement for sharpening the point on pencils', 'name': 'pencil_sharpener'}, {'frequency': 'r', 'synset': 'pendulum.n.01', 'synonyms': ['pendulum'], 'id': 785, 'def': 'an apparatus consisting of an object mounted so that it swings freely under the influence of gravity', 'name': 'pendulum'}, {'frequency': 'c', 'synset': 'penguin.n.01', 'synonyms': ['penguin'], 'id': 786, 'def': 'short-legged flightless birds of cold southern regions having webbed feet and wings modified as flippers', 'name': 'penguin'}, {'frequency': 'r', 'synset': 'pennant.n.02', 'synonyms': ['pennant'], 'id': 787, 'def': 'a flag longer than it is wide (and often tapering)', 'name': 'pennant'}, {'frequency': 'r', 'synset': 'penny.n.02', 'synonyms': ['penny_(coin)'], 'id': 788, 'def': 'a coin worth one-hundredth of the value of the basic unit', 'name': 'penny_(coin)'}, {'frequency': 'f', 'synset': 'pepper.n.03', 'synonyms': ['pepper', 'peppercorn'], 'id': 789, 'def': 'pungent seasoning from the berry of the common pepper plant; whole or ground', 'name': 'pepper'}, {'frequency': 'c', 'synset': 'pepper_mill.n.01', 'synonyms': ['pepper_mill', 'pepper_grinder'], 'id': 790, 'def': 'a mill for grinding pepper', 'name': 'pepper_mill'}, {'frequency': 'c', 'synset': 'perfume.n.02', 'synonyms': ['perfume'], 'id': 791, 'def': 'a toiletry that emits and diffuses a fragrant odor', 'name': 'perfume'}, {'frequency': 'r', 'synset': 'persimmon.n.02', 'synonyms': ['persimmon'], 'id': 792, 'def': 'orange fruit resembling a plum; edible when fully ripe', 'name': 'persimmon'}, {'frequency': 'f', 'synset': 'person.n.01', 'synonyms': ['person', 'baby', 'child', 'boy', 'girl', 'man', 'woman', 'human'], 'id': 793, 'def': 'a human being', 'name': 'person'}, {'frequency': 'c', 'synset': 'pet.n.01', 'synonyms': ['pet'], 'id': 794, 'def': 'a domesticated animal kept for companionship or amusement', 'name': 'pet'}, {'frequency': 'c', 'synset': 'pew.n.01', 'synonyms': ['pew_(church_bench)', 'church_bench'], 'id': 795, 'def': 'long bench with backs; used in church by the congregation', 'name': 'pew_(church_bench)'}, {'frequency': 'r', 'synset': 'phonebook.n.01', 'synonyms': ['phonebook', 'telephone_book', 'telephone_directory'], 'id': 796, 'def': 'a directory containing an alphabetical list of telephone subscribers and their telephone numbers', 'name': 'phonebook'}, {'frequency': 'c', 'synset': 'phonograph_record.n.01', 'synonyms': ['phonograph_record', 'phonograph_recording', 'record_(phonograph_recording)'], 'id': 797, 'def': 'sound recording consisting of a typically black disk with a continuous groove', 'name': 'phonograph_record'}, {'frequency': 'f', 'synset': 'piano.n.01', 'synonyms': ['piano'], 'id': 798, 'def': 'a keyboard instrument that is played by depressing keys that cause hammers to strike tuned strings and produce sounds', 'name': 'piano'}, {'frequency': 'f', 'synset': 'pickle.n.01', 'synonyms': ['pickle'], 'id': 799, 'def': 'vegetables (especially cucumbers) preserved in brine or vinegar', 'name': 'pickle'}, {'frequency': 'f', 'synset': 'pickup.n.01', 'synonyms': ['pickup_truck'], 'id': 800, 'def': 'a light truck with an open body and low sides and a tailboard', 'name': 'pickup_truck'}, {'frequency': 'c', 'synset': 'pie.n.01', 'synonyms': ['pie'], 'id': 801, 'def': 'dish baked in pastry-lined pan often with a pastry top', 'name': 'pie'}, {'frequency': 'c', 'synset': 'pigeon.n.01', 'synonyms': ['pigeon'], 'id': 802, 'def': 'wild and domesticated birds having a heavy body and short legs', 'name': 'pigeon'}, {'frequency': 'r', 'synset': 'piggy_bank.n.01', 'synonyms': ['piggy_bank', 'penny_bank'], 'id': 803, 'def': "a child's coin bank (often shaped like a pig)", 'name': 'piggy_bank'}, {'frequency': 'f', 'synset': 'pillow.n.01', 'synonyms': ['pillow'], 'id': 804, 'def': 'a cushion to support the head of a sleeping person', 'name': 'pillow'}, {'frequency': 'r', 'synset': 'pin.n.09', 'synonyms': ['pin_(non_jewelry)'], 'id': 805, 'def': 'a small slender (often pointed) piece of wood or metal used to support or fasten or attach things', 'name': 'pin_(non_jewelry)'}, {'frequency': 'f', 'synset': 'pineapple.n.02', 'synonyms': ['pineapple'], 'id': 806, 'def': 'large sweet fleshy tropical fruit with a tuft of stiff leaves', 'name': 'pineapple'}, {'frequency': 'c', 'synset': 'pinecone.n.01', 'synonyms': ['pinecone'], 'id': 807, 'def': 'the seed-producing cone of a pine tree', 'name': 'pinecone'}, {'frequency': 'r', 'synset': 'ping-pong_ball.n.01', 'synonyms': ['ping-pong_ball'], 'id': 808, 'def': 'light hollow ball used in playing table tennis', 'name': 'ping-pong_ball'}, {'frequency': 'r', 'synset': 'pinwheel.n.03', 'synonyms': ['pinwheel'], 'id': 809, 'def': 'a toy consisting of vanes of colored paper or plastic that is pinned to a stick and spins when it is pointed into the wind', 'name': 'pinwheel'}, {'frequency': 'r', 'synset': 'pipe.n.01', 'synonyms': ['tobacco_pipe'], 'id': 810, 'def': 'a tube with a small bowl at one end; used for smoking tobacco', 'name': 'tobacco_pipe'}, {'frequency': 'f', 'synset': 'pipe.n.02', 'synonyms': ['pipe', 'piping'], 'id': 811, 'def': 'a long tube made of metal or plastic that is used to carry water or oil or gas etc.', 'name': 'pipe'}, {'frequency': 'r', 'synset': 'pistol.n.01', 'synonyms': ['pistol', 'handgun'], 'id': 812, 'def': 'a firearm that is held and fired with one hand', 'name': 'pistol'}, {'frequency': 'c', 'synset': 'pita.n.01', 'synonyms': ['pita_(bread)', 'pocket_bread'], 'id': 813, 'def': 'usually small round bread that can open into a pocket for filling', 'name': 'pita_(bread)'}, {'frequency': 'f', 'synset': 'pitcher.n.02', 'synonyms': ['pitcher_(vessel_for_liquid)', 'ewer'], 'id': 814, 'def': 'an open vessel with a handle and a spout for pouring', 'name': 'pitcher_(vessel_for_liquid)'}, {'frequency': 'r', 'synset': 'pitchfork.n.01', 'synonyms': ['pitchfork'], 'id': 815, 'def': 'a long-handled hand tool with sharp widely spaced prongs for lifting and pitching hay', 'name': 'pitchfork'}, {'frequency': 'f', 'synset': 'pizza.n.01', 'synonyms': ['pizza'], 'id': 816, 'def': 'Italian open pie made of thin bread dough spread with a spiced mixture of e.g. tomato sauce and cheese', 'name': 'pizza'}, {'frequency': 'f', 'synset': 'place_mat.n.01', 'synonyms': ['place_mat'], 'id': 817, 'def': 'a mat placed on a table for an individual place setting', 'name': 'place_mat'}, {'frequency': 'f', 'synset': 'plate.n.04', 'synonyms': ['plate'], 'id': 818, 'def': 'dish on which food is served or from which food is eaten', 'name': 'plate'}, {'frequency': 'c', 'synset': 'platter.n.01', 'synonyms': ['platter'], 'id': 819, 'def': 'a large shallow dish used for serving food', 'name': 'platter'}, {'frequency': 'r', 'synset': 'playpen.n.01', 'synonyms': ['playpen'], 'id': 820, 'def': 'a portable enclosure in which babies may be left to play', 'name': 'playpen'}, {'frequency': 'c', 'synset': 'pliers.n.01', 'synonyms': ['pliers', 'plyers'], 'id': 821, 'def': 'a gripping hand tool with two hinged arms and (usually) serrated jaws', 'name': 'pliers'}, {'frequency': 'r', 'synset': 'plow.n.01', 'synonyms': ['plow_(farm_equipment)', 'plough_(farm_equipment)'], 'id': 822, 'def': 'a farm tool having one or more heavy blades to break the soil and cut a furrow prior to sowing', 'name': 'plow_(farm_equipment)'}, {'frequency': 'r', 'synset': 'plume.n.02', 'synonyms': ['plume'], 'id': 823, 'def': 'a feather or cluster of feathers worn as an ornament', 'name': 'plume'}, {'frequency': 'r', 'synset': 'pocket_watch.n.01', 'synonyms': ['pocket_watch'], 'id': 824, 'def': 'a watch that is carried in a small watch pocket', 'name': 'pocket_watch'}, {'frequency': 'c', 'synset': 'pocketknife.n.01', 'synonyms': ['pocketknife'], 'id': 825, 'def': 'a knife with a blade that folds into the handle; suitable for carrying in the pocket', 'name': 'pocketknife'}, {'frequency': 'c', 'synset': 'poker.n.01', 'synonyms': ['poker_(fire_stirring_tool)', 'stove_poker', 'fire_hook'], 'id': 826, 'def': 'fire iron consisting of a metal rod with a handle; used to stir a fire', 'name': 'poker_(fire_stirring_tool)'}, {'frequency': 'f', 'synset': 'pole.n.01', 'synonyms': ['pole', 'post'], 'id': 827, 'def': 'a long (usually round) rod of wood or metal or plastic', 'name': 'pole'}, {'frequency': 'f', 'synset': 'polo_shirt.n.01', 'synonyms': ['polo_shirt', 'sport_shirt'], 'id': 828, 'def': 'a shirt with short sleeves designed for comfort and casual wear', 'name': 'polo_shirt'}, {'frequency': 'r', 'synset': 'poncho.n.01', 'synonyms': ['poncho'], 'id': 829, 'def': 'a blanket-like cloak with a hole in the center for the head', 'name': 'poncho'}, {'frequency': 'c', 'synset': 'pony.n.05', 'synonyms': ['pony'], 'id': 830, 'def': 'any of various breeds of small gentle horses usually less than five feet high at the shoulder', 'name': 'pony'}, {'frequency': 'r', 'synset': 'pool_table.n.01', 'synonyms': ['pool_table', 'billiard_table', 'snooker_table'], 'id': 831, 'def': 'game equipment consisting of a heavy table on which pool is played', 'name': 'pool_table'}, {'frequency': 'f', 'synset': 'pop.n.02', 'synonyms': ['pop_(soda)', 'soda_(pop)', 'tonic', 'soft_drink'], 'id': 832, 'def': 'a sweet drink containing carbonated water and flavoring', 'name': 'pop_(soda)'}, {'frequency': 'c', 'synset': 'postbox.n.01', 'synonyms': ['postbox_(public)', 'mailbox_(public)'], 'id': 833, 'def': 'public box for deposit of mail', 'name': 'postbox_(public)'}, {'frequency': 'c', 'synset': 'postcard.n.01', 'synonyms': ['postcard', 'postal_card', 'mailing-card'], 'id': 834, 'def': 'a card for sending messages by post without an envelope', 'name': 'postcard'}, {'frequency': 'f', 'synset': 'poster.n.01', 'synonyms': ['poster', 'placard'], 'id': 835, 'def': 'a sign posted in a public place as an advertisement', 'name': 'poster'}, {'frequency': 'f', 'synset': 'pot.n.01', 'synonyms': ['pot'], 'id': 836, 'def': 'metal or earthenware cooking vessel that is usually round and deep; often has a handle and lid', 'name': 'pot'}, {'frequency': 'f', 'synset': 'pot.n.04', 'synonyms': ['flowerpot'], 'id': 837, 'def': 'a container in which plants are cultivated', 'name': 'flowerpot'}, {'frequency': 'f', 'synset': 'potato.n.01', 'synonyms': ['potato'], 'id': 838, 'def': 'an edible tuber native to South America', 'name': 'potato'}, {'frequency': 'c', 'synset': 'potholder.n.01', 'synonyms': ['potholder'], 'id': 839, 'def': 'an insulated pad for holding hot pots', 'name': 'potholder'}, {'frequency': 'c', 'synset': 'pottery.n.01', 'synonyms': ['pottery', 'clayware'], 'id': 840, 'def': 'ceramic ware made from clay and baked in a kiln', 'name': 'pottery'}, {'frequency': 'c', 'synset': 'pouch.n.01', 'synonyms': ['pouch'], 'id': 841, 'def': 'a small or medium size container for holding or carrying things', 'name': 'pouch'}, {'frequency': 'c', 'synset': 'power_shovel.n.01', 'synonyms': ['power_shovel', 'excavator', 'digger'], 'id': 842, 'def': 'a machine for excavating', 'name': 'power_shovel'}, {'frequency': 'c', 'synset': 'prawn.n.01', 'synonyms': ['prawn', 'shrimp'], 'id': 843, 'def': 'any of various edible decapod crustaceans', 'name': 'prawn'}, {'frequency': 'c', 'synset': 'pretzel.n.01', 'synonyms': ['pretzel'], 'id': 844, 'def': 'glazed and salted cracker typically in the shape of a loose knot', 'name': 'pretzel'}, {'frequency': 'f', 'synset': 'printer.n.03', 'synonyms': ['printer', 'printing_machine'], 'id': 845, 'def': 'a machine that prints', 'name': 'printer'}, {'frequency': 'c', 'synset': 'projectile.n.01', 'synonyms': ['projectile_(weapon)', 'missile'], 'id': 846, 'def': 'a weapon that is forcibly thrown or projected at a targets', 'name': 'projectile_(weapon)'}, {'frequency': 'c', 'synset': 'projector.n.02', 'synonyms': ['projector'], 'id': 847, 'def': 'an optical instrument that projects an enlarged image onto a screen', 'name': 'projector'}, {'frequency': 'f', 'synset': 'propeller.n.01', 'synonyms': ['propeller', 'propellor'], 'id': 848, 'def': 'a mechanical device that rotates to push against air or water', 'name': 'propeller'}, {'frequency': 'r', 'synset': 'prune.n.01', 'synonyms': ['prune'], 'id': 849, 'def': 'dried plum', 'name': 'prune'}, {'frequency': 'r', 'synset': 'pudding.n.01', 'synonyms': ['pudding'], 'id': 850, 'def': 'any of various soft thick unsweetened baked dishes', 'name': 'pudding'}, {'frequency': 'r', 'synset': 'puffer.n.02', 'synonyms': ['puffer_(fish)', 'pufferfish', 'blowfish', 'globefish'], 'id': 851, 'def': 'fishes whose elongated spiny body can inflate itself with water or air to form a globe', 'name': 'puffer_(fish)'}, {'frequency': 'r', 'synset': 'puffin.n.01', 'synonyms': ['puffin'], 'id': 852, 'def': 'seabirds having short necks and brightly colored compressed bills', 'name': 'puffin'}, {'frequency': 'r', 'synset': 'pug.n.01', 'synonyms': ['pug-dog'], 'id': 853, 'def': 'small compact smooth-coated breed of Asiatic origin having a tightly curled tail and broad flat wrinkled muzzle', 'name': 'pug-dog'}, {'frequency': 'c', 'synset': 'pumpkin.n.02', 'synonyms': ['pumpkin'], 'id': 854, 'def': 'usually large pulpy deep-yellow round fruit of the squash family maturing in late summer or early autumn', 'name': 'pumpkin'}, {'frequency': 'r', 'synset': 'punch.n.03', 'synonyms': ['puncher'], 'id': 855, 'def': 'a tool for making holes or indentations', 'name': 'puncher'}, {'frequency': 'r', 'synset': 'puppet.n.01', 'synonyms': ['puppet', 'marionette'], 'id': 856, 'def': 'a small figure of a person operated from above with strings by a puppeteer', 'name': 'puppet'}, {'frequency': 'c', 'synset': 'puppy.n.01', 'synonyms': ['puppy'], 'id': 857, 'def': 'a young dog', 'name': 'puppy'}, {'frequency': 'r', 'synset': 'quesadilla.n.01', 'synonyms': ['quesadilla'], 'id': 858, 'def': 'a tortilla that is filled with cheese and heated', 'name': 'quesadilla'}, {'frequency': 'r', 'synset': 'quiche.n.02', 'synonyms': ['quiche'], 'id': 859, 'def': 'a tart filled with rich unsweetened custard; often contains other ingredients (as cheese or ham or seafood or vegetables)', 'name': 'quiche'}, {'frequency': 'f', 'synset': 'quilt.n.01', 'synonyms': ['quilt', 'comforter'], 'id': 860, 'def': 'bedding made of two layers of cloth filled with stuffing and stitched together', 'name': 'quilt'}, {'frequency': 'c', 'synset': 'rabbit.n.01', 'synonyms': ['rabbit'], 'id': 861, 'def': 'any of various burrowing animals of the family Leporidae having long ears and short tails', 'name': 'rabbit'}, {'frequency': 'r', 'synset': 'racer.n.02', 'synonyms': ['race_car', 'racing_car'], 'id': 862, 'def': 'a fast car that competes in races', 'name': 'race_car'}, {'frequency': 'c', 'synset': 'racket.n.04', 'synonyms': ['racket', 'racquet'], 'id': 863, 'def': 'a sports implement used to strike a ball in various games', 'name': 'racket'}, {'frequency': 'r', 'synset': 'radar.n.01', 'synonyms': ['radar'], 'id': 864, 'def': 'measuring instrument in which the echo of a pulse of microwave radiation is used to detect and locate distant objects', 'name': 'radar'}, {'frequency': 'f', 'synset': 'radiator.n.03', 'synonyms': ['radiator'], 'id': 865, 'def': 'a mechanism consisting of a metal honeycomb through which hot fluids circulate', 'name': 'radiator'}, {'frequency': 'c', 'synset': 'radio_receiver.n.01', 'synonyms': ['radio_receiver', 'radio_set', 'radio', 'tuner_(radio)'], 'id': 866, 'def': 'an electronic receiver that detects and demodulates and amplifies transmitted radio signals', 'name': 'radio_receiver'}, {'frequency': 'c', 'synset': 'radish.n.03', 'synonyms': ['radish', 'daikon'], 'id': 867, 'def': 'pungent edible root of any of various cultivated radish plants', 'name': 'radish'}, {'frequency': 'c', 'synset': 'raft.n.01', 'synonyms': ['raft'], 'id': 868, 'def': 'a flat float (usually made of logs or planks) that can be used for transport or as a platform for swimmers', 'name': 'raft'}, {'frequency': 'r', 'synset': 'rag_doll.n.01', 'synonyms': ['rag_doll'], 'id': 869, 'def': 'a cloth doll that is stuffed and (usually) painted', 'name': 'rag_doll'}, {'frequency': 'c', 'synset': 'raincoat.n.01', 'synonyms': ['raincoat', 'waterproof_jacket'], 'id': 870, 'def': 'a water-resistant coat', 'name': 'raincoat'}, {'frequency': 'c', 'synset': 'ram.n.05', 'synonyms': ['ram_(animal)'], 'id': 871, 'def': 'uncastrated adult male sheep', 'name': 'ram_(animal)'}, {'frequency': 'c', 'synset': 'raspberry.n.02', 'synonyms': ['raspberry'], 'id': 872, 'def': 'red or black edible aggregate berries usually smaller than the related blackberries', 'name': 'raspberry'}, {'frequency': 'r', 'synset': 'rat.n.01', 'synonyms': ['rat'], 'id': 873, 'def': 'any of various long-tailed rodents similar to but larger than a mouse', 'name': 'rat'}, {'frequency': 'c', 'synset': 'razorblade.n.01', 'synonyms': ['razorblade'], 'id': 874, 'def': 'a blade that has very sharp edge', 'name': 'razorblade'}, {'frequency': 'c', 'synset': 'reamer.n.01', 'synonyms': ['reamer_(juicer)', 'juicer', 'juice_reamer'], 'id': 875, 'def': 'a squeezer with a conical ridged center that is used for squeezing juice from citrus fruit', 'name': 'reamer_(juicer)'}, {'frequency': 'f', 'synset': 'rearview_mirror.n.01', 'synonyms': ['rearview_mirror'], 'id': 876, 'def': 'vehicle mirror (side or rearview)', 'name': 'rearview_mirror'}, {'frequency': 'c', 'synset': 'receipt.n.02', 'synonyms': ['receipt'], 'id': 877, 'def': 'an acknowledgment (usually tangible) that payment has been made', 'name': 'receipt'}, {'frequency': 'c', 'synset': 'recliner.n.01', 'synonyms': ['recliner', 'reclining_chair', 'lounger_(chair)'], 'id': 878, 'def': 'an armchair whose back can be lowered and foot can be raised to allow the sitter to recline in it', 'name': 'recliner'}, {'frequency': 'c', 'synset': 'record_player.n.01', 'synonyms': ['record_player', 'phonograph_(record_player)', 'turntable'], 'id': 879, 'def': 'machine in which rotating records cause a stylus to vibrate and the vibrations are amplified acoustically or electronically', 'name': 'record_player'}, {'frequency': 'f', 'synset': 'reflector.n.01', 'synonyms': ['reflector'], 'id': 880, 'def': 'device that reflects light, radiation, etc.', 'name': 'reflector'}, {'frequency': 'f', 'synset': 'remote_control.n.01', 'synonyms': ['remote_control'], 'id': 881, 'def': 'a device that can be used to control a machine or apparatus from a distance', 'name': 'remote_control'}, {'frequency': 'c', 'synset': 'rhinoceros.n.01', 'synonyms': ['rhinoceros'], 'id': 882, 'def': 'massive powerful herbivorous odd-toed ungulate of southeast Asia and Africa having very thick skin and one or two horns on the snout', 'name': 'rhinoceros'}, {'frequency': 'r', 'synset': 'rib.n.03', 'synonyms': ['rib_(food)'], 'id': 883, 'def': 'cut of meat including one or more ribs', 'name': 'rib_(food)'}, {'frequency': 'c', 'synset': 'rifle.n.01', 'synonyms': ['rifle'], 'id': 884, 'def': 'a shoulder firearm with a long barrel', 'name': 'rifle'}, {'frequency': 'f', 'synset': 'ring.n.08', 'synonyms': ['ring'], 'id': 885, 'def': 'jewelry consisting of a circlet of precious metal (often set with jewels) worn on the finger', 'name': 'ring'}, {'frequency': 'r', 'synset': 'river_boat.n.01', 'synonyms': ['river_boat'], 'id': 886, 'def': 'a boat used on rivers or to ply a river', 'name': 'river_boat'}, {'frequency': 'r', 'synset': 'road_map.n.02', 'synonyms': ['road_map'], 'id': 887, 'def': '(NOT A ROAD) a MAP showing roads (for automobile travel)', 'name': 'road_map'}, {'frequency': 'c', 'synset': 'robe.n.01', 'synonyms': ['robe'], 'id': 888, 'def': 'any loose flowing garment', 'name': 'robe'}, {'frequency': 'c', 'synset': 'rocking_chair.n.01', 'synonyms': ['rocking_chair'], 'id': 889, 'def': 'a chair mounted on rockers', 'name': 'rocking_chair'}, {'frequency': 'r', 'synset': 'rodent.n.01', 'synonyms': ['rodent'], 'id': 890, 'def': 'relatively small placental mammals having a single pair of constantly growing incisor teeth specialized for gnawing', 'name': 'rodent'}, {'frequency': 'r', 'synset': 'roller_skate.n.01', 'synonyms': ['roller_skate'], 'id': 891, 'def': 'a shoe with pairs of rollers (small hard wheels) fixed to the sole', 'name': 'roller_skate'}, {'frequency': 'r', 'synset': 'rollerblade.n.01', 'synonyms': ['Rollerblade'], 'id': 892, 'def': 'an in-line variant of a roller skate', 'name': 'Rollerblade'}, {'frequency': 'c', 'synset': 'rolling_pin.n.01', 'synonyms': ['rolling_pin'], 'id': 893, 'def': 'utensil consisting of a cylinder (usually of wood) with a handle at each end; used to roll out dough', 'name': 'rolling_pin'}, {'frequency': 'r', 'synset': 'root_beer.n.01', 'synonyms': ['root_beer'], 'id': 894, 'def': 'carbonated drink containing extracts of roots and herbs', 'name': 'root_beer'}, {'frequency': 'c', 'synset': 'router.n.02', 'synonyms': ['router_(computer_equipment)'], 'id': 895, 'def': 'a device that forwards data packets between computer networks', 'name': 'router_(computer_equipment)'}, {'frequency': 'f', 'synset': 'rubber_band.n.01', 'synonyms': ['rubber_band', 'elastic_band'], 'id': 896, 'def': 'a narrow band of elastic rubber used to hold things (such as papers) together', 'name': 'rubber_band'}, {'frequency': 'c', 'synset': 'runner.n.08', 'synonyms': ['runner_(carpet)'], 'id': 897, 'def': 'a long narrow carpet', 'name': 'runner_(carpet)'}, {'frequency': 'f', 'synset': 'sack.n.01', 'synonyms': ['plastic_bag', 'paper_bag'], 'id': 898, 'def': "a bag made of paper or plastic for holding customer's purchases", 'name': 'plastic_bag'}, {'frequency': 'f', 'synset': 'saddle.n.01', 'synonyms': ['saddle_(on_an_animal)'], 'id': 899, 'def': 'a seat for the rider of a horse or camel', 'name': 'saddle_(on_an_animal)'}, {'frequency': 'f', 'synset': 'saddle_blanket.n.01', 'synonyms': ['saddle_blanket', 'saddlecloth', 'horse_blanket'], 'id': 900, 'def': 'stable gear consisting of a blanket placed under the saddle', 'name': 'saddle_blanket'}, {'frequency': 'c', 'synset': 'saddlebag.n.01', 'synonyms': ['saddlebag'], 'id': 901, 'def': 'a large bag (or pair of bags) hung over a saddle', 'name': 'saddlebag'}, {'frequency': 'r', 'synset': 'safety_pin.n.01', 'synonyms': ['safety_pin'], 'id': 902, 'def': 'a pin in the form of a clasp; has a guard so the point of the pin will not stick the user', 'name': 'safety_pin'}, {'frequency': 'f', 'synset': 'sail.n.01', 'synonyms': ['sail'], 'id': 903, 'def': 'a large piece of fabric by means of which wind is used to propel a sailing vessel', 'name': 'sail'}, {'frequency': 'f', 'synset': 'salad.n.01', 'synonyms': ['salad'], 'id': 904, 'def': 'food mixtures either arranged on a plate or tossed and served with a moist dressing; usually consisting of or including greens', 'name': 'salad'}, {'frequency': 'r', 'synset': 'salad_plate.n.01', 'synonyms': ['salad_plate', 'salad_bowl'], 'id': 905, 'def': 'a plate or bowl for individual servings of salad', 'name': 'salad_plate'}, {'frequency': 'c', 'synset': 'salami.n.01', 'synonyms': ['salami'], 'id': 906, 'def': 'highly seasoned fatty sausage of pork and beef usually dried', 'name': 'salami'}, {'frequency': 'c', 'synset': 'salmon.n.01', 'synonyms': ['salmon_(fish)'], 'id': 907, 'def': 'any of various large food and game fishes of northern waters', 'name': 'salmon_(fish)'}, {'frequency': 'r', 'synset': 'salmon.n.03', 'synonyms': ['salmon_(food)'], 'id': 908, 'def': 'flesh of any of various marine or freshwater fish of the family Salmonidae', 'name': 'salmon_(food)'}, {'frequency': 'c', 'synset': 'salsa.n.01', 'synonyms': ['salsa'], 'id': 909, 'def': 'spicy sauce of tomatoes and onions and chili peppers to accompany Mexican foods', 'name': 'salsa'}, {'frequency': 'f', 'synset': 'saltshaker.n.01', 'synonyms': ['saltshaker'], 'id': 910, 'def': 'a shaker with a perforated top for sprinkling salt', 'name': 'saltshaker'}, {'frequency': 'f', 'synset': 'sandal.n.01', 'synonyms': ['sandal_(type_of_shoe)'], 'id': 911, 'def': 'a shoe consisting of a sole fastened by straps to the foot', 'name': 'sandal_(type_of_shoe)'}, {'frequency': 'f', 'synset': 'sandwich.n.01', 'synonyms': ['sandwich'], 'id': 912, 'def': 'two (or more) slices of bread with a filling between them', 'name': 'sandwich'}, {'frequency': 'r', 'synset': 'satchel.n.01', 'synonyms': ['satchel'], 'id': 913, 'def': 'luggage consisting of a small case with a flat bottom and (usually) a shoulder strap', 'name': 'satchel'}, {'frequency': 'r', 'synset': 'saucepan.n.01', 'synonyms': ['saucepan'], 'id': 914, 'def': 'a deep pan with a handle; used for stewing or boiling', 'name': 'saucepan'}, {'frequency': 'f', 'synset': 'saucer.n.02', 'synonyms': ['saucer'], 'id': 915, 'def': 'a small shallow dish for holding a cup at the table', 'name': 'saucer'}, {'frequency': 'f', 'synset': 'sausage.n.01', 'synonyms': ['sausage'], 'id': 916, 'def': 'highly seasoned minced meat stuffed in casings', 'name': 'sausage'}, {'frequency': 'r', 'synset': 'sawhorse.n.01', 'synonyms': ['sawhorse', 'sawbuck'], 'id': 917, 'def': 'a framework for holding wood that is being sawed', 'name': 'sawhorse'}, {'frequency': 'r', 'synset': 'sax.n.02', 'synonyms': ['saxophone'], 'id': 918, 'def': "a wind instrument with a `J'-shaped form typically made of brass", 'name': 'saxophone'}, {'frequency': 'f', 'synset': 'scale.n.07', 'synonyms': ['scale_(measuring_instrument)'], 'id': 919, 'def': 'a measuring instrument for weighing; shows amount of mass', 'name': 'scale_(measuring_instrument)'}, {'frequency': 'r', 'synset': 'scarecrow.n.01', 'synonyms': ['scarecrow', 'strawman'], 'id': 920, 'def': 'an effigy in the shape of a man to frighten birds away from seeds', 'name': 'scarecrow'}, {'frequency': 'f', 'synset': 'scarf.n.01', 'synonyms': ['scarf'], 'id': 921, 'def': 'a garment worn around the head or neck or shoulders for warmth or decoration', 'name': 'scarf'}, {'frequency': 'c', 'synset': 'school_bus.n.01', 'synonyms': ['school_bus'], 'id': 922, 'def': 'a bus used to transport children to or from school', 'name': 'school_bus'}, {'frequency': 'f', 'synset': 'scissors.n.01', 'synonyms': ['scissors'], 'id': 923, 'def': 'a tool having two crossed pivoting blades with looped handles', 'name': 'scissors'}, {'frequency': 'f', 'synset': 'scoreboard.n.01', 'synonyms': ['scoreboard'], 'id': 924, 'def': 'a large board for displaying the score of a contest (and some other information)', 'name': 'scoreboard'}, {'frequency': 'r', 'synset': 'scraper.n.01', 'synonyms': ['scraper'], 'id': 925, 'def': 'any of various hand tools for scraping', 'name': 'scraper'}, {'frequency': 'c', 'synset': 'screwdriver.n.01', 'synonyms': ['screwdriver'], 'id': 926, 'def': 'a hand tool for driving screws; has a tip that fits into the head of a screw', 'name': 'screwdriver'}, {'frequency': 'f', 'synset': 'scrub_brush.n.01', 'synonyms': ['scrubbing_brush'], 'id': 927, 'def': 'a brush with short stiff bristles for heavy cleaning', 'name': 'scrubbing_brush'}, {'frequency': 'c', 'synset': 'sculpture.n.01', 'synonyms': ['sculpture'], 'id': 928, 'def': 'a three-dimensional work of art', 'name': 'sculpture'}, {'frequency': 'c', 'synset': 'seabird.n.01', 'synonyms': ['seabird', 'seafowl'], 'id': 929, 'def': 'a bird that frequents coastal waters and the open ocean: gulls; pelicans; gannets; cormorants; albatrosses; petrels; etc.', 'name': 'seabird'}, {'frequency': 'c', 'synset': 'seahorse.n.02', 'synonyms': ['seahorse'], 'id': 930, 'def': 'small fish with horse-like heads bent sharply downward and curled tails', 'name': 'seahorse'}, {'frequency': 'r', 'synset': 'seaplane.n.01', 'synonyms': ['seaplane', 'hydroplane'], 'id': 931, 'def': 'an airplane that can land on or take off from water', 'name': 'seaplane'}, {'frequency': 'c', 'synset': 'seashell.n.01', 'synonyms': ['seashell'], 'id': 932, 'def': 'the shell of a marine organism', 'name': 'seashell'}, {'frequency': 'c', 'synset': 'sewing_machine.n.01', 'synonyms': ['sewing_machine'], 'id': 933, 'def': 'a textile machine used as a home appliance for sewing', 'name': 'sewing_machine'}, {'frequency': 'c', 'synset': 'shaker.n.03', 'synonyms': ['shaker'], 'id': 934, 'def': 'a container in which something can be shaken', 'name': 'shaker'}, {'frequency': 'c', 'synset': 'shampoo.n.01', 'synonyms': ['shampoo'], 'id': 935, 'def': 'cleansing agent consisting of soaps or detergents used for washing the hair', 'name': 'shampoo'}, {'frequency': 'c', 'synset': 'shark.n.01', 'synonyms': ['shark'], 'id': 936, 'def': 'typically large carnivorous fishes with sharpe teeth', 'name': 'shark'}, {'frequency': 'r', 'synset': 'sharpener.n.01', 'synonyms': ['sharpener'], 'id': 937, 'def': 'any implement that is used to make something (an edge or a point) sharper', 'name': 'sharpener'}, {'frequency': 'r', 'synset': 'sharpie.n.03', 'synonyms': ['Sharpie'], 'id': 938, 'def': 'a pen with indelible ink that will write on any surface', 'name': 'Sharpie'}, {'frequency': 'r', 'synset': 'shaver.n.03', 'synonyms': ['shaver_(electric)', 'electric_shaver', 'electric_razor'], 'id': 939, 'def': 'a razor powered by an electric motor', 'name': 'shaver_(electric)'}, {'frequency': 'c', 'synset': 'shaving_cream.n.01', 'synonyms': ['shaving_cream', 'shaving_soap'], 'id': 940, 'def': 'toiletry consisting that forms a rich lather for softening the beard before shaving', 'name': 'shaving_cream'}, {'frequency': 'r', 'synset': 'shawl.n.01', 'synonyms': ['shawl'], 'id': 941, 'def': 'cloak consisting of an oblong piece of cloth used to cover the head and shoulders', 'name': 'shawl'}, {'frequency': 'r', 'synset': 'shears.n.01', 'synonyms': ['shears'], 'id': 942, 'def': 'large scissors with strong blades', 'name': 'shears'}, {'frequency': 'f', 'synset': 'sheep.n.01', 'synonyms': ['sheep'], 'id': 943, 'def': 'woolly usually horned ruminant mammal related to the goat', 'name': 'sheep'}, {'frequency': 'r', 'synset': 'shepherd_dog.n.01', 'synonyms': ['shepherd_dog', 'sheepdog'], 'id': 944, 'def': 'any of various usually long-haired breeds of dog reared to herd and guard sheep', 'name': 'shepherd_dog'}, {'frequency': 'r', 'synset': 'sherbert.n.01', 'synonyms': ['sherbert', 'sherbet'], 'id': 945, 'def': 'a frozen dessert made primarily of fruit juice and sugar', 'name': 'sherbert'}, {'frequency': 'c', 'synset': 'shield.n.02', 'synonyms': ['shield'], 'id': 946, 'def': 'armor carried on the arm to intercept blows', 'name': 'shield'}, {'frequency': 'f', 'synset': 'shirt.n.01', 'synonyms': ['shirt'], 'id': 947, 'def': 'a garment worn on the upper half of the body', 'name': 'shirt'}, {'frequency': 'f', 'synset': 'shoe.n.01', 'synonyms': ['shoe', 'sneaker_(type_of_shoe)', 'tennis_shoe'], 'id': 948, 'def': 'common footwear covering the foot', 'name': 'shoe'}, {'frequency': 'f', 'synset': 'shopping_bag.n.01', 'synonyms': ['shopping_bag'], 'id': 949, 'def': 'a bag made of plastic or strong paper (often with handles); used to transport goods after shopping', 'name': 'shopping_bag'}, {'frequency': 'c', 'synset': 'shopping_cart.n.01', 'synonyms': ['shopping_cart'], 'id': 950, 'def': 'a handcart that holds groceries or other goods while shopping', 'name': 'shopping_cart'}, {'frequency': 'f', 'synset': 'short_pants.n.01', 'synonyms': ['short_pants', 'shorts_(clothing)', 'trunks_(clothing)'], 'id': 951, 'def': 'trousers that end at or above the knee', 'name': 'short_pants'}, {'frequency': 'r', 'synset': 'shot_glass.n.01', 'synonyms': ['shot_glass'], 'id': 952, 'def': 'a small glass adequate to hold a single swallow of whiskey', 'name': 'shot_glass'}, {'frequency': 'f', 'synset': 'shoulder_bag.n.01', 'synonyms': ['shoulder_bag'], 'id': 953, 'def': 'a large handbag that can be carried by a strap looped over the shoulder', 'name': 'shoulder_bag'}, {'frequency': 'c', 'synset': 'shovel.n.01', 'synonyms': ['shovel'], 'id': 954, 'def': 'a hand tool for lifting loose material such as snow, dirt, etc.', 'name': 'shovel'}, {'frequency': 'f', 'synset': 'shower.n.01', 'synonyms': ['shower_head'], 'id': 955, 'def': 'a plumbing fixture that sprays water over you', 'name': 'shower_head'}, {'frequency': 'r', 'synset': 'shower_cap.n.01', 'synonyms': ['shower_cap'], 'id': 956, 'def': 'a tight cap worn to keep hair dry while showering', 'name': 'shower_cap'}, {'frequency': 'f', 'synset': 'shower_curtain.n.01', 'synonyms': ['shower_curtain'], 'id': 957, 'def': 'a curtain that keeps water from splashing out of the shower area', 'name': 'shower_curtain'}, {'frequency': 'r', 'synset': 'shredder.n.01', 'synonyms': ['shredder_(for_paper)'], 'id': 958, 'def': 'a device that shreds documents', 'name': 'shredder_(for_paper)'}, {'frequency': 'f', 'synset': 'signboard.n.01', 'synonyms': ['signboard'], 'id': 959, 'def': 'structure displaying a board on which advertisements can be posted', 'name': 'signboard'}, {'frequency': 'c', 'synset': 'silo.n.01', 'synonyms': ['silo'], 'id': 960, 'def': 'a cylindrical tower used for storing goods', 'name': 'silo'}, {'frequency': 'f', 'synset': 'sink.n.01', 'synonyms': ['sink'], 'id': 961, 'def': 'plumbing fixture consisting of a water basin fixed to a wall or floor and having a drainpipe', 'name': 'sink'}, {'frequency': 'f', 'synset': 'skateboard.n.01', 'synonyms': ['skateboard'], 'id': 962, 'def': 'a board with wheels that is ridden in a standing or crouching position and propelled by foot', 'name': 'skateboard'}, {'frequency': 'c', 'synset': 'skewer.n.01', 'synonyms': ['skewer'], 'id': 963, 'def': 'a long pin for holding meat in position while it is being roasted', 'name': 'skewer'}, {'frequency': 'f', 'synset': 'ski.n.01', 'synonyms': ['ski'], 'id': 964, 'def': 'sports equipment for skiing on snow', 'name': 'ski'}, {'frequency': 'f', 'synset': 'ski_boot.n.01', 'synonyms': ['ski_boot'], 'id': 965, 'def': 'a stiff boot that is fastened to a ski with a ski binding', 'name': 'ski_boot'}, {'frequency': 'f', 'synset': 'ski_parka.n.01', 'synonyms': ['ski_parka', 'ski_jacket'], 'id': 966, 'def': 'a parka to be worn while skiing', 'name': 'ski_parka'}, {'frequency': 'f', 'synset': 'ski_pole.n.01', 'synonyms': ['ski_pole'], 'id': 967, 'def': 'a pole with metal points used as an aid in skiing', 'name': 'ski_pole'}, {'frequency': 'f', 'synset': 'skirt.n.02', 'synonyms': ['skirt'], 'id': 968, 'def': 'a garment hanging from the waist; worn mainly by girls and women', 'name': 'skirt'}, {'frequency': 'r', 'synset': 'skullcap.n.01', 'synonyms': ['skullcap'], 'id': 969, 'def': 'rounded brimless cap fitting the crown of the head', 'name': 'skullcap'}, {'frequency': 'c', 'synset': 'sled.n.01', 'synonyms': ['sled', 'sledge', 'sleigh'], 'id': 970, 'def': 'a vehicle or flat object for transportation over snow by sliding or pulled by dogs, etc.', 'name': 'sled'}, {'frequency': 'c', 'synset': 'sleeping_bag.n.01', 'synonyms': ['sleeping_bag'], 'id': 971, 'def': 'large padded bag designed to be slept in outdoors', 'name': 'sleeping_bag'}, {'frequency': 'r', 'synset': 'sling.n.05', 'synonyms': ['sling_(bandage)', 'triangular_bandage'], 'id': 972, 'def': 'bandage to support an injured forearm; slung over the shoulder or neck', 'name': 'sling_(bandage)'}, {'frequency': 'c', 'synset': 'slipper.n.01', 'synonyms': ['slipper_(footwear)', 'carpet_slipper_(footwear)'], 'id': 973, 'def': 'low footwear that can be slipped on and off easily; usually worn indoors', 'name': 'slipper_(footwear)'}, {'frequency': 'r', 'synset': 'smoothie.n.02', 'synonyms': ['smoothie'], 'id': 974, 'def': 'a thick smooth drink consisting of fresh fruit pureed with ice cream or yoghurt or milk', 'name': 'smoothie'}, {'frequency': 'r', 'synset': 'snake.n.01', 'synonyms': ['snake', 'serpent'], 'id': 975, 'def': 'limbless scaly elongate reptile; some are venomous', 'name': 'snake'}, {'frequency': 'f', 'synset': 'snowboard.n.01', 'synonyms': ['snowboard'], 'id': 976, 'def': 'a board that resembles a broad ski or a small surfboard; used in a standing position to slide down snow-covered slopes', 'name': 'snowboard'}, {'frequency': 'c', 'synset': 'snowman.n.01', 'synonyms': ['snowman'], 'id': 977, 'def': 'a figure of a person made of packed snow', 'name': 'snowman'}, {'frequency': 'c', 'synset': 'snowmobile.n.01', 'synonyms': ['snowmobile'], 'id': 978, 'def': 'tracked vehicle for travel on snow having skis in front', 'name': 'snowmobile'}, {'frequency': 'f', 'synset': 'soap.n.01', 'synonyms': ['soap'], 'id': 979, 'def': 'a cleansing agent made from the salts of vegetable or animal fats', 'name': 'soap'}, {'frequency': 'f', 'synset': 'soccer_ball.n.01', 'synonyms': ['soccer_ball'], 'id': 980, 'def': "an inflated ball used in playing soccer (called `football' outside of the United States)", 'name': 'soccer_ball'}, {'frequency': 'f', 'synset': 'sock.n.01', 'synonyms': ['sock'], 'id': 981, 'def': 'cloth covering for the foot; worn inside the shoe; reaches to between the ankle and the knee', 'name': 'sock'}, {'frequency': 'f', 'synset': 'sofa.n.01', 'synonyms': ['sofa', 'couch', 'lounge'], 'id': 982, 'def': 'an upholstered seat for more than one person', 'name': 'sofa'}, {'frequency': 'r', 'synset': 'softball.n.01', 'synonyms': ['softball'], 'id': 983, 'def': 'ball used in playing softball', 'name': 'softball'}, {'frequency': 'c', 'synset': 'solar_array.n.01', 'synonyms': ['solar_array', 'solar_battery', 'solar_panel'], 'id': 984, 'def': 'electrical device consisting of a large array of connected solar cells', 'name': 'solar_array'}, {'frequency': 'r', 'synset': 'sombrero.n.02', 'synonyms': ['sombrero'], 'id': 985, 'def': 'a straw hat with a tall crown and broad brim; worn in American southwest and in Mexico', 'name': 'sombrero'}, {'frequency': 'f', 'synset': 'soup.n.01', 'synonyms': ['soup'], 'id': 986, 'def': 'liquid food especially of meat or fish or vegetable stock often containing pieces of solid food', 'name': 'soup'}, {'frequency': 'r', 'synset': 'soup_bowl.n.01', 'synonyms': ['soup_bowl'], 'id': 987, 'def': 'a bowl for serving soup', 'name': 'soup_bowl'}, {'frequency': 'c', 'synset': 'soupspoon.n.01', 'synonyms': ['soupspoon'], 'id': 988, 'def': 'a spoon with a rounded bowl for eating soup', 'name': 'soupspoon'}, {'frequency': 'c', 'synset': 'sour_cream.n.01', 'synonyms': ['sour_cream', 'soured_cream'], 'id': 989, 'def': 'soured light cream', 'name': 'sour_cream'}, {'frequency': 'r', 'synset': 'soya_milk.n.01', 'synonyms': ['soya_milk', 'soybean_milk', 'soymilk'], 'id': 990, 'def': 'a milk substitute containing soybean flour and water; used in some infant formulas and in making tofu', 'name': 'soya_milk'}, {'frequency': 'r', 'synset': 'space_shuttle.n.01', 'synonyms': ['space_shuttle'], 'id': 991, 'def': "a reusable spacecraft with wings for a controlled descent through the Earth's atmosphere", 'name': 'space_shuttle'}, {'frequency': 'r', 'synset': 'sparkler.n.02', 'synonyms': ['sparkler_(fireworks)'], 'id': 992, 'def': 'a firework that burns slowly and throws out a shower of sparks', 'name': 'sparkler_(fireworks)'}, {'frequency': 'f', 'synset': 'spatula.n.02', 'synonyms': ['spatula'], 'id': 993, 'def': 'a hand tool with a thin flexible blade used to mix or spread soft substances', 'name': 'spatula'}, {'frequency': 'r', 'synset': 'spear.n.01', 'synonyms': ['spear', 'lance'], 'id': 994, 'def': 'a long pointed rod used as a tool or weapon', 'name': 'spear'}, {'frequency': 'f', 'synset': 'spectacles.n.01', 'synonyms': ['spectacles', 'specs', 'eyeglasses', 'glasses'], 'id': 995, 'def': 'optical instrument consisting of a frame that holds a pair of lenses for correcting defective vision', 'name': 'spectacles'}, {'frequency': 'c', 'synset': 'spice_rack.n.01', 'synonyms': ['spice_rack'], 'id': 996, 'def': 'a rack for displaying containers filled with spices', 'name': 'spice_rack'}, {'frequency': 'c', 'synset': 'spider.n.01', 'synonyms': ['spider'], 'id': 997, 'def': 'predatory arachnid with eight legs, two poison fangs, two feelers, and usually two silk-spinning organs at the back end of the body', 'name': 'spider'}, {'frequency': 'r', 'synset': 'spiny_lobster.n.02', 'synonyms': ['crawfish', 'crayfish'], 'id': 998, 'def': 'large edible marine crustacean having a spiny carapace but lacking the large pincers of true lobsters', 'name': 'crawfish'}, {'frequency': 'c', 'synset': 'sponge.n.01', 'synonyms': ['sponge'], 'id': 999, 'def': 'a porous mass usable to absorb water typically used for cleaning', 'name': 'sponge'}, {'frequency': 'f', 'synset': 'spoon.n.01', 'synonyms': ['spoon'], 'id': 1000, 'def': 'a piece of cutlery with a shallow bowl-shaped container and a handle', 'name': 'spoon'}, {'frequency': 'c', 'synset': 'sportswear.n.01', 'synonyms': ['sportswear', 'athletic_wear', 'activewear'], 'id': 1001, 'def': 'attire worn for sport or for casual wear', 'name': 'sportswear'}, {'frequency': 'c', 'synset': 'spotlight.n.02', 'synonyms': ['spotlight'], 'id': 1002, 'def': 'a lamp that produces a strong beam of light to illuminate a restricted area; used to focus attention of a stage performer', 'name': 'spotlight'}, {'frequency': 'r', 'synset': 'squid.n.01', 'synonyms': ['squid_(food)', 'calamari', 'calamary'], 'id': 1003, 'def': '(Italian cuisine) squid prepared as food', 'name': 'squid_(food)'}, {'frequency': 'c', 'synset': 'squirrel.n.01', 'synonyms': ['squirrel'], 'id': 1004, 'def': 'a kind of arboreal rodent having a long bushy tail', 'name': 'squirrel'}, {'frequency': 'r', 'synset': 'stagecoach.n.01', 'synonyms': ['stagecoach'], 'id': 1005, 'def': 'a large coach-and-four formerly used to carry passengers and mail on regular routes between towns', 'name': 'stagecoach'}, {'frequency': 'c', 'synset': 'stapler.n.01', 'synonyms': ['stapler_(stapling_machine)'], 'id': 1006, 'def': 'a machine that inserts staples into sheets of paper in order to fasten them together', 'name': 'stapler_(stapling_machine)'}, {'frequency': 'c', 'synset': 'starfish.n.01', 'synonyms': ['starfish', 'sea_star'], 'id': 1007, 'def': 'echinoderms characterized by five arms extending from a central disk', 'name': 'starfish'}, {'frequency': 'f', 'synset': 'statue.n.01', 'synonyms': ['statue_(sculpture)'], 'id': 1008, 'def': 'a sculpture representing a human or animal', 'name': 'statue_(sculpture)'}, {'frequency': 'c', 'synset': 'steak.n.01', 'synonyms': ['steak_(food)'], 'id': 1009, 'def': 'a slice of meat cut from the fleshy part of an animal or large fish', 'name': 'steak_(food)'}, {'frequency': 'r', 'synset': 'steak_knife.n.01', 'synonyms': ['steak_knife'], 'id': 1010, 'def': 'a sharp table knife used in eating steak', 'name': 'steak_knife'}, {'frequency': 'f', 'synset': 'steering_wheel.n.01', 'synonyms': ['steering_wheel'], 'id': 1011, 'def': 'a handwheel that is used for steering', 'name': 'steering_wheel'}, {'frequency': 'r', 'synset': 'step_ladder.n.01', 'synonyms': ['stepladder'], 'id': 1012, 'def': 'a folding portable ladder hinged at the top', 'name': 'stepladder'}, {'frequency': 'c', 'synset': 'step_stool.n.01', 'synonyms': ['step_stool'], 'id': 1013, 'def': 'a stool that has one or two steps that fold under the seat', 'name': 'step_stool'}, {'frequency': 'c', 'synset': 'stereo.n.01', 'synonyms': ['stereo_(sound_system)'], 'id': 1014, 'def': 'electronic device for playing audio', 'name': 'stereo_(sound_system)'}, {'frequency': 'r', 'synset': 'stew.n.02', 'synonyms': ['stew'], 'id': 1015, 'def': 'food prepared by stewing especially meat or fish with vegetables', 'name': 'stew'}, {'frequency': 'r', 'synset': 'stirrer.n.02', 'synonyms': ['stirrer'], 'id': 1016, 'def': 'an implement used for stirring', 'name': 'stirrer'}, {'frequency': 'f', 'synset': 'stirrup.n.01', 'synonyms': ['stirrup'], 'id': 1017, 'def': "support consisting of metal loops into which rider's feet go", 'name': 'stirrup'}, {'frequency': 'f', 'synset': 'stool.n.01', 'synonyms': ['stool'], 'id': 1018, 'def': 'a simple seat without a back or arms', 'name': 'stool'}, {'frequency': 'f', 'synset': 'stop_sign.n.01', 'synonyms': ['stop_sign'], 'id': 1019, 'def': 'a traffic sign to notify drivers that they must come to a complete stop', 'name': 'stop_sign'}, {'frequency': 'f', 'synset': 'stoplight.n.01', 'synonyms': ['brake_light'], 'id': 1020, 'def': 'a red light on the rear of a motor vehicle that signals when the brakes are applied', 'name': 'brake_light'}, {'frequency': 'f', 'synset': 'stove.n.01', 'synonyms': ['stove', 'kitchen_stove', 'range_(kitchen_appliance)', 'kitchen_range', 'cooking_stove'], 'id': 1021, 'def': 'a kitchen appliance used for cooking food', 'name': 'stove'}, {'frequency': 'c', 'synset': 'strainer.n.01', 'synonyms': ['strainer'], 'id': 1022, 'def': 'a filter to retain larger pieces while smaller pieces and liquids pass through', 'name': 'strainer'}, {'frequency': 'f', 'synset': 'strap.n.01', 'synonyms': ['strap'], 'id': 1023, 'def': 'an elongated strip of material for binding things together or holding', 'name': 'strap'}, {'frequency': 'f', 'synset': 'straw.n.04', 'synonyms': ['straw_(for_drinking)', 'drinking_straw'], 'id': 1024, 'def': 'a thin paper or plastic tube used to suck liquids into the mouth', 'name': 'straw_(for_drinking)'}, {'frequency': 'f', 'synset': 'strawberry.n.01', 'synonyms': ['strawberry'], 'id': 1025, 'def': 'sweet fleshy red fruit', 'name': 'strawberry'}, {'frequency': 'f', 'synset': 'street_sign.n.01', 'synonyms': ['street_sign'], 'id': 1026, 'def': 'a sign visible from the street', 'name': 'street_sign'}, {'frequency': 'f', 'synset': 'streetlight.n.01', 'synonyms': ['streetlight', 'street_lamp'], 'id': 1027, 'def': 'a lamp supported on a lamppost; for illuminating a street', 'name': 'streetlight'}, {'frequency': 'r', 'synset': 'string_cheese.n.01', 'synonyms': ['string_cheese'], 'id': 1028, 'def': 'cheese formed in long strings twisted together', 'name': 'string_cheese'}, {'frequency': 'r', 'synset': 'stylus.n.02', 'synonyms': ['stylus'], 'id': 1029, 'def': 'a pointed tool for writing or drawing or engraving, including pens', 'name': 'stylus'}, {'frequency': 'r', 'synset': 'subwoofer.n.01', 'synonyms': ['subwoofer'], 'id': 1030, 'def': 'a loudspeaker that is designed to reproduce very low bass frequencies', 'name': 'subwoofer'}, {'frequency': 'r', 'synset': 'sugar_bowl.n.01', 'synonyms': ['sugar_bowl'], 'id': 1031, 'def': 'a dish in which sugar is served', 'name': 'sugar_bowl'}, {'frequency': 'r', 'synset': 'sugarcane.n.01', 'synonyms': ['sugarcane_(plant)'], 'id': 1032, 'def': 'juicy canes whose sap is a source of molasses and commercial sugar; fresh canes are sometimes chewed for the juice', 'name': 'sugarcane_(plant)'}, {'frequency': 'f', 'synset': 'suit.n.01', 'synonyms': ['suit_(clothing)'], 'id': 1033, 'def': 'a set of garments (usually including a jacket and trousers or skirt) for outerwear all of the same fabric and color', 'name': 'suit_(clothing)'}, {'frequency': 'c', 'synset': 'sunflower.n.01', 'synonyms': ['sunflower'], 'id': 1034, 'def': 'any plant of the genus Helianthus having large flower heads with dark disk florets and showy yellow rays', 'name': 'sunflower'}, {'frequency': 'f', 'synset': 'sunglasses.n.01', 'synonyms': ['sunglasses'], 'id': 1035, 'def': 'spectacles that are darkened or polarized to protect the eyes from the glare of the sun', 'name': 'sunglasses'}, {'frequency': 'c', 'synset': 'sunhat.n.01', 'synonyms': ['sunhat'], 'id': 1036, 'def': 'a hat with a broad brim that protects the face from direct exposure to the sun', 'name': 'sunhat'}, {'frequency': 'f', 'synset': 'surfboard.n.01', 'synonyms': ['surfboard'], 'id': 1037, 'def': 'a narrow buoyant board for riding surf', 'name': 'surfboard'}, {'frequency': 'c', 'synset': 'sushi.n.01', 'synonyms': ['sushi'], 'id': 1038, 'def': 'rice (with raw fish) wrapped in seaweed', 'name': 'sushi'}, {'frequency': 'c', 'synset': 'swab.n.02', 'synonyms': ['mop'], 'id': 1039, 'def': 'cleaning implement consisting of absorbent material fastened to a handle; for cleaning floors', 'name': 'mop'}, {'frequency': 'c', 'synset': 'sweat_pants.n.01', 'synonyms': ['sweat_pants'], 'id': 1040, 'def': 'loose-fitting trousers with elastic cuffs; worn by athletes', 'name': 'sweat_pants'}, {'frequency': 'c', 'synset': 'sweatband.n.02', 'synonyms': ['sweatband'], 'id': 1041, 'def': 'a band of material tied around the forehead or wrist to absorb sweat', 'name': 'sweatband'}, {'frequency': 'f', 'synset': 'sweater.n.01', 'synonyms': ['sweater'], 'id': 1042, 'def': 'a crocheted or knitted garment covering the upper part of the body', 'name': 'sweater'}, {'frequency': 'f', 'synset': 'sweatshirt.n.01', 'synonyms': ['sweatshirt'], 'id': 1043, 'def': 'cotton knit pullover with long sleeves worn during athletic activity', 'name': 'sweatshirt'}, {'frequency': 'c', 'synset': 'sweet_potato.n.02', 'synonyms': ['sweet_potato'], 'id': 1044, 'def': 'the edible tuberous root of the sweet potato vine', 'name': 'sweet_potato'}, {'frequency': 'f', 'synset': 'swimsuit.n.01', 'synonyms': ['swimsuit', 'swimwear', 'bathing_suit', 'swimming_costume', 'bathing_costume', 'swimming_trunks', 'bathing_trunks'], 'id': 1045, 'def': 'garment worn for swimming', 'name': 'swimsuit'}, {'frequency': 'c', 'synset': 'sword.n.01', 'synonyms': ['sword'], 'id': 1046, 'def': 'a cutting or thrusting weapon that has a long metal blade', 'name': 'sword'}, {'frequency': 'r', 'synset': 'syringe.n.01', 'synonyms': ['syringe'], 'id': 1047, 'def': 'a medical instrument used to inject or withdraw fluids', 'name': 'syringe'}, {'frequency': 'r', 'synset': 'tabasco.n.02', 'synonyms': ['Tabasco_sauce'], 'id': 1048, 'def': 'very spicy sauce (trade name Tabasco) made from fully-aged red peppers', 'name': 'Tabasco_sauce'}, {'frequency': 'r', 'synset': 'table-tennis_table.n.01', 'synonyms': ['table-tennis_table', 'ping-pong_table'], 'id': 1049, 'def': 'a table used for playing table tennis', 'name': 'table-tennis_table'}, {'frequency': 'f', 'synset': 'table.n.02', 'synonyms': ['table'], 'id': 1050, 'def': 'a piece of furniture having a smooth flat top that is usually supported by one or more vertical legs', 'name': 'table'}, {'frequency': 'c', 'synset': 'table_lamp.n.01', 'synonyms': ['table_lamp'], 'id': 1051, 'def': 'a lamp that sits on a table', 'name': 'table_lamp'}, {'frequency': 'f', 'synset': 'tablecloth.n.01', 'synonyms': ['tablecloth'], 'id': 1052, 'def': 'a covering spread over a dining table', 'name': 'tablecloth'}, {'frequency': 'r', 'synset': 'tachometer.n.01', 'synonyms': ['tachometer'], 'id': 1053, 'def': 'measuring instrument for indicating speed of rotation', 'name': 'tachometer'}, {'frequency': 'r', 'synset': 'taco.n.02', 'synonyms': ['taco'], 'id': 1054, 'def': 'a small tortilla cupped around a filling', 'name': 'taco'}, {'frequency': 'f', 'synset': 'tag.n.02', 'synonyms': ['tag'], 'id': 1055, 'def': 'a label associated with something for the purpose of identification or information', 'name': 'tag'}, {'frequency': 'f', 'synset': 'taillight.n.01', 'synonyms': ['taillight', 'rear_light'], 'id': 1056, 'def': 'lamp (usually red) mounted at the rear of a motor vehicle', 'name': 'taillight'}, {'frequency': 'r', 'synset': 'tambourine.n.01', 'synonyms': ['tambourine'], 'id': 1057, 'def': 'a shallow drum with a single drumhead and with metallic disks in the sides', 'name': 'tambourine'}, {'frequency': 'r', 'synset': 'tank.n.01', 'synonyms': ['army_tank', 'armored_combat_vehicle', 'armoured_combat_vehicle'], 'id': 1058, 'def': 'an enclosed armored military vehicle; has a cannon and moves on caterpillar treads', 'name': 'army_tank'}, {'frequency': 'f', 'synset': 'tank.n.02', 'synonyms': ['tank_(storage_vessel)', 'storage_tank'], 'id': 1059, 'def': 'a large (usually metallic) vessel for holding gases or liquids', 'name': 'tank_(storage_vessel)'}, {'frequency': 'f', 'synset': 'tank_top.n.01', 'synonyms': ['tank_top_(clothing)'], 'id': 1060, 'def': 'a tight-fitting sleeveless shirt with wide shoulder straps and low neck and no front opening', 'name': 'tank_top_(clothing)'}, {'frequency': 'f', 'synset': 'tape.n.01', 'synonyms': ['tape_(sticky_cloth_or_paper)'], 'id': 1061, 'def': 'a long thin piece of cloth or paper as used for binding or fastening', 'name': 'tape_(sticky_cloth_or_paper)'}, {'frequency': 'c', 'synset': 'tape.n.04', 'synonyms': ['tape_measure', 'measuring_tape'], 'id': 1062, 'def': 'measuring instrument consisting of a narrow strip (cloth or metal) marked in inches or centimeters and used for measuring lengths', 'name': 'tape_measure'}, {'frequency': 'c', 'synset': 'tapestry.n.02', 'synonyms': ['tapestry'], 'id': 1063, 'def': 'a heavy textile with a woven design; used for curtains and upholstery', 'name': 'tapestry'}, {'frequency': 'f', 'synset': 'tarpaulin.n.01', 'synonyms': ['tarp'], 'id': 1064, 'def': 'waterproofed canvas', 'name': 'tarp'}, {'frequency': 'c', 'synset': 'tartan.n.01', 'synonyms': ['tartan', 'plaid'], 'id': 1065, 'def': 'a cloth having a crisscross design', 'name': 'tartan'}, {'frequency': 'c', 'synset': 'tassel.n.01', 'synonyms': ['tassel'], 'id': 1066, 'def': 'adornment consisting of a bunch of cords fastened at one end', 'name': 'tassel'}, {'frequency': 'c', 'synset': 'tea_bag.n.01', 'synonyms': ['tea_bag'], 'id': 1067, 'def': 'a measured amount of tea in a bag for an individual serving of tea', 'name': 'tea_bag'}, {'frequency': 'c', 'synset': 'teacup.n.02', 'synonyms': ['teacup'], 'id': 1068, 'def': 'a cup from which tea is drunk', 'name': 'teacup'}, {'frequency': 'c', 'synset': 'teakettle.n.01', 'synonyms': ['teakettle'], 'id': 1069, 'def': 'kettle for boiling water to make tea', 'name': 'teakettle'}, {'frequency': 'f', 'synset': 'teapot.n.01', 'synonyms': ['teapot'], 'id': 1070, 'def': 'pot for brewing tea; usually has a spout and handle', 'name': 'teapot'}, {'frequency': 'f', 'synset': 'teddy.n.01', 'synonyms': ['teddy_bear'], 'id': 1071, 'def': "plaything consisting of a child's toy bear (usually plush and stuffed with soft materials)", 'name': 'teddy_bear'}, {'frequency': 'f', 'synset': 'telephone.n.01', 'synonyms': ['telephone', 'phone', 'telephone_set'], 'id': 1072, 'def': 'electronic device for communicating by voice over long distances (includes wired and wireless/cell phones)', 'name': 'telephone'}, {'frequency': 'c', 'synset': 'telephone_booth.n.01', 'synonyms': ['telephone_booth', 'phone_booth', 'call_box', 'telephone_box', 'telephone_kiosk'], 'id': 1073, 'def': 'booth for using a telephone', 'name': 'telephone_booth'}, {'frequency': 'f', 'synset': 'telephone_pole.n.01', 'synonyms': ['telephone_pole', 'telegraph_pole', 'telegraph_post'], 'id': 1074, 'def': 'tall pole supporting telephone wires', 'name': 'telephone_pole'}, {'frequency': 'r', 'synset': 'telephoto_lens.n.01', 'synonyms': ['telephoto_lens', 'zoom_lens'], 'id': 1075, 'def': 'a camera lens that magnifies the image', 'name': 'telephoto_lens'}, {'frequency': 'c', 'synset': 'television_camera.n.01', 'synonyms': ['television_camera', 'tv_camera'], 'id': 1076, 'def': 'television equipment for capturing and recording video', 'name': 'television_camera'}, {'frequency': 'f', 'synset': 'television_receiver.n.01', 'synonyms': ['television_set', 'tv', 'tv_set'], 'id': 1077, 'def': 'an electronic device that receives television signals and displays them on a screen', 'name': 'television_set'}, {'frequency': 'f', 'synset': 'tennis_ball.n.01', 'synonyms': ['tennis_ball'], 'id': 1078, 'def': 'ball about the size of a fist used in playing tennis', 'name': 'tennis_ball'}, {'frequency': 'f', 'synset': 'tennis_racket.n.01', 'synonyms': ['tennis_racket'], 'id': 1079, 'def': 'a racket used to play tennis', 'name': 'tennis_racket'}, {'frequency': 'r', 'synset': 'tequila.n.01', 'synonyms': ['tequila'], 'id': 1080, 'def': 'Mexican liquor made from fermented juices of an agave plant', 'name': 'tequila'}, {'frequency': 'c', 'synset': 'thermometer.n.01', 'synonyms': ['thermometer'], 'id': 1081, 'def': 'measuring instrument for measuring temperature', 'name': 'thermometer'}, {'frequency': 'c', 'synset': 'thermos.n.01', 'synonyms': ['thermos_bottle'], 'id': 1082, 'def': 'vacuum flask that preserves temperature of hot or cold drinks', 'name': 'thermos_bottle'}, {'frequency': 'f', 'synset': 'thermostat.n.01', 'synonyms': ['thermostat'], 'id': 1083, 'def': 'a regulator for automatically regulating temperature by starting or stopping the supply of heat', 'name': 'thermostat'}, {'frequency': 'r', 'synset': 'thimble.n.02', 'synonyms': ['thimble'], 'id': 1084, 'def': 'a small metal cap to protect the finger while sewing; can be used as a small container', 'name': 'thimble'}, {'frequency': 'c', 'synset': 'thread.n.01', 'synonyms': ['thread', 'yarn'], 'id': 1085, 'def': 'a fine cord of twisted fibers (of cotton or silk or wool or nylon etc.) used in sewing and weaving', 'name': 'thread'}, {'frequency': 'c', 'synset': 'thumbtack.n.01', 'synonyms': ['thumbtack', 'drawing_pin', 'pushpin'], 'id': 1086, 'def': 'a tack for attaching papers to a bulletin board or drawing board', 'name': 'thumbtack'}, {'frequency': 'c', 'synset': 'tiara.n.01', 'synonyms': ['tiara'], 'id': 1087, 'def': 'a jeweled headdress worn by women on formal occasions', 'name': 'tiara'}, {'frequency': 'c', 'synset': 'tiger.n.02', 'synonyms': ['tiger'], 'id': 1088, 'def': 'large feline of forests in most of Asia having a tawny coat with black stripes', 'name': 'tiger'}, {'frequency': 'c', 'synset': 'tights.n.01', 'synonyms': ['tights_(clothing)', 'leotards'], 'id': 1089, 'def': 'skintight knit hose covering the body from the waist to the feet worn by acrobats and dancers and as stockings by women and girls', 'name': 'tights_(clothing)'}, {'frequency': 'c', 'synset': 'timer.n.01', 'synonyms': ['timer', 'stopwatch'], 'id': 1090, 'def': 'a timepiece that measures a time interval and signals its end', 'name': 'timer'}, {'frequency': 'f', 'synset': 'tinfoil.n.01', 'synonyms': ['tinfoil'], 'id': 1091, 'def': 'foil made of tin or an alloy of tin and lead', 'name': 'tinfoil'}, {'frequency': 'c', 'synset': 'tinsel.n.01', 'synonyms': ['tinsel'], 'id': 1092, 'def': 'a showy decoration that is basically valueless', 'name': 'tinsel'}, {'frequency': 'f', 'synset': 'tissue.n.02', 'synonyms': ['tissue_paper'], 'id': 1093, 'def': 'a soft thin (usually translucent) paper', 'name': 'tissue_paper'}, {'frequency': 'c', 'synset': 'toast.n.01', 'synonyms': ['toast_(food)'], 'id': 1094, 'def': 'slice of bread that has been toasted', 'name': 'toast_(food)'}, {'frequency': 'f', 'synset': 'toaster.n.02', 'synonyms': ['toaster'], 'id': 1095, 'def': 'a kitchen appliance (usually electric) for toasting bread', 'name': 'toaster'}, {'frequency': 'f', 'synset': 'toaster_oven.n.01', 'synonyms': ['toaster_oven'], 'id': 1096, 'def': 'kitchen appliance consisting of a small electric oven for toasting or warming food', 'name': 'toaster_oven'}, {'frequency': 'f', 'synset': 'toilet.n.02', 'synonyms': ['toilet'], 'id': 1097, 'def': 'a plumbing fixture for defecation and urination', 'name': 'toilet'}, {'frequency': 'f', 'synset': 'toilet_tissue.n.01', 'synonyms': ['toilet_tissue', 'toilet_paper', 'bathroom_tissue'], 'id': 1098, 'def': 'a soft thin absorbent paper for use in toilets', 'name': 'toilet_tissue'}, {'frequency': 'f', 'synset': 'tomato.n.01', 'synonyms': ['tomato'], 'id': 1099, 'def': 'mildly acid red or yellow pulpy fruit eaten as a vegetable', 'name': 'tomato'}, {'frequency': 'f', 'synset': 'tongs.n.01', 'synonyms': ['tongs'], 'id': 1100, 'def': 'any of various devices for taking hold of objects; usually have two hinged legs with handles above and pointed hooks below', 'name': 'tongs'}, {'frequency': 'c', 'synset': 'toolbox.n.01', 'synonyms': ['toolbox'], 'id': 1101, 'def': 'a box or chest or cabinet for holding hand tools', 'name': 'toolbox'}, {'frequency': 'f', 'synset': 'toothbrush.n.01', 'synonyms': ['toothbrush'], 'id': 1102, 'def': 'small brush; has long handle; used to clean teeth', 'name': 'toothbrush'}, {'frequency': 'f', 'synset': 'toothpaste.n.01', 'synonyms': ['toothpaste'], 'id': 1103, 'def': 'a dentifrice in the form of a paste', 'name': 'toothpaste'}, {'frequency': 'f', 'synset': 'toothpick.n.01', 'synonyms': ['toothpick'], 'id': 1104, 'def': 'pick consisting of a small strip of wood or plastic; used to pick food from between the teeth', 'name': 'toothpick'}, {'frequency': 'f', 'synset': 'top.n.09', 'synonyms': ['cover'], 'id': 1105, 'def': 'covering for a hole (especially a hole in the top of a container)', 'name': 'cover'}, {'frequency': 'c', 'synset': 'tortilla.n.01', 'synonyms': ['tortilla'], 'id': 1106, 'def': 'thin unleavened pancake made from cornmeal or wheat flour', 'name': 'tortilla'}, {'frequency': 'c', 'synset': 'tow_truck.n.01', 'synonyms': ['tow_truck'], 'id': 1107, 'def': 'a truck equipped to hoist and pull wrecked cars (or to remove cars from no-parking zones)', 'name': 'tow_truck'}, {'frequency': 'f', 'synset': 'towel.n.01', 'synonyms': ['towel'], 'id': 1108, 'def': 'a rectangular piece of absorbent cloth (or paper) for drying or wiping', 'name': 'towel'}, {'frequency': 'f', 'synset': 'towel_rack.n.01', 'synonyms': ['towel_rack', 'towel_rail', 'towel_bar'], 'id': 1109, 'def': 'a rack consisting of one or more bars on which towels can be hung', 'name': 'towel_rack'}, {'frequency': 'f', 'synset': 'toy.n.03', 'synonyms': ['toy'], 'id': 1110, 'def': 'a device regarded as providing amusement', 'name': 'toy'}, {'frequency': 'c', 'synset': 'tractor.n.01', 'synonyms': ['tractor_(farm_equipment)'], 'id': 1111, 'def': 'a wheeled vehicle with large wheels; used in farming and other applications', 'name': 'tractor_(farm_equipment)'}, {'frequency': 'f', 'synset': 'traffic_light.n.01', 'synonyms': ['traffic_light'], 'id': 1112, 'def': 'a device to control vehicle traffic often consisting of three or more lights', 'name': 'traffic_light'}, {'frequency': 'c', 'synset': 'trail_bike.n.01', 'synonyms': ['dirt_bike'], 'id': 1113, 'def': 'a lightweight motorcycle equipped with rugged tires and suspension for off-road use', 'name': 'dirt_bike'}, {'frequency': 'f', 'synset': 'trailer_truck.n.01', 'synonyms': ['trailer_truck', 'tractor_trailer', 'trucking_rig', 'articulated_lorry', 'semi_truck'], 'id': 1114, 'def': 'a truck consisting of a tractor and trailer together', 'name': 'trailer_truck'}, {'frequency': 'f', 'synset': 'train.n.01', 'synonyms': ['train_(railroad_vehicle)', 'railroad_train'], 'id': 1115, 'def': 'public or private transport provided by a line of railway cars coupled together and drawn by a locomotive', 'name': 'train_(railroad_vehicle)'}, {'frequency': 'r', 'synset': 'trampoline.n.01', 'synonyms': ['trampoline'], 'id': 1116, 'def': 'gymnastic apparatus consisting of a strong canvas sheet attached with springs to a metal frame', 'name': 'trampoline'}, {'frequency': 'f', 'synset': 'tray.n.01', 'synonyms': ['tray'], 'id': 1117, 'def': 'an open receptacle for holding or displaying or serving articles or food', 'name': 'tray'}, {'frequency': 'r', 'synset': 'trench_coat.n.01', 'synonyms': ['trench_coat'], 'id': 1118, 'def': 'a military style raincoat; belted with deep pockets', 'name': 'trench_coat'}, {'frequency': 'r', 'synset': 'triangle.n.05', 'synonyms': ['triangle_(musical_instrument)'], 'id': 1119, 'def': 'a percussion instrument consisting of a metal bar bent in the shape of an open triangle', 'name': 'triangle_(musical_instrument)'}, {'frequency': 'c', 'synset': 'tricycle.n.01', 'synonyms': ['tricycle'], 'id': 1120, 'def': 'a vehicle with three wheels that is moved by foot pedals', 'name': 'tricycle'}, {'frequency': 'f', 'synset': 'tripod.n.01', 'synonyms': ['tripod'], 'id': 1121, 'def': 'a three-legged rack used for support', 'name': 'tripod'}, {'frequency': 'f', 'synset': 'trouser.n.01', 'synonyms': ['trousers', 'pants_(clothing)'], 'id': 1122, 'def': 'a garment extending from the waist to the knee or ankle, covering each leg separately', 'name': 'trousers'}, {'frequency': 'f', 'synset': 'truck.n.01', 'synonyms': ['truck'], 'id': 1123, 'def': 'an automotive vehicle suitable for hauling', 'name': 'truck'}, {'frequency': 'r', 'synset': 'truffle.n.03', 'synonyms': ['truffle_(chocolate)', 'chocolate_truffle'], 'id': 1124, 'def': 'creamy chocolate candy', 'name': 'truffle_(chocolate)'}, {'frequency': 'c', 'synset': 'trunk.n.02', 'synonyms': ['trunk'], 'id': 1125, 'def': 'luggage consisting of a large strong case used when traveling or for storage', 'name': 'trunk'}, {'frequency': 'r', 'synset': 'tub.n.02', 'synonyms': ['vat'], 'id': 1126, 'def': 'a large vessel for holding or storing liquids', 'name': 'vat'}, {'frequency': 'c', 'synset': 'turban.n.01', 'synonyms': ['turban'], 'id': 1127, 'def': 'a traditional headdress consisting of a long scarf wrapped around the head', 'name': 'turban'}, {'frequency': 'c', 'synset': 'turkey.n.04', 'synonyms': ['turkey_(food)'], 'id': 1128, 'def': 'flesh of large domesticated fowl usually roasted', 'name': 'turkey_(food)'}, {'frequency': 'r', 'synset': 'turnip.n.01', 'synonyms': ['turnip'], 'id': 1129, 'def': 'widely cultivated plant having a large fleshy edible white or yellow root', 'name': 'turnip'}, {'frequency': 'c', 'synset': 'turtle.n.02', 'synonyms': ['turtle'], 'id': 1130, 'def': 'any of various aquatic and land reptiles having a bony shell and flipper-like limbs for swimming', 'name': 'turtle'}, {'frequency': 'c', 'synset': 'turtleneck.n.01', 'synonyms': ['turtleneck_(clothing)', 'polo-neck'], 'id': 1131, 'def': 'a sweater or jersey with a high close-fitting collar', 'name': 'turtleneck_(clothing)'}, {'frequency': 'c', 'synset': 'typewriter.n.01', 'synonyms': ['typewriter'], 'id': 1132, 'def': 'hand-operated character printer for printing written messages one character at a time', 'name': 'typewriter'}, {'frequency': 'f', 'synset': 'umbrella.n.01', 'synonyms': ['umbrella'], 'id': 1133, 'def': 'a lightweight handheld collapsible canopy', 'name': 'umbrella'}, {'frequency': 'f', 'synset': 'underwear.n.01', 'synonyms': ['underwear', 'underclothes', 'underclothing', 'underpants'], 'id': 1134, 'def': 'undergarment worn next to the skin and under the outer garments', 'name': 'underwear'}, {'frequency': 'r', 'synset': 'unicycle.n.01', 'synonyms': ['unicycle'], 'id': 1135, 'def': 'a vehicle with a single wheel that is driven by pedals', 'name': 'unicycle'}, {'frequency': 'f', 'synset': 'urinal.n.01', 'synonyms': ['urinal'], 'id': 1136, 'def': 'a plumbing fixture (usually attached to the wall) used by men to urinate', 'name': 'urinal'}, {'frequency': 'c', 'synset': 'urn.n.01', 'synonyms': ['urn'], 'id': 1137, 'def': 'a large vase that usually has a pedestal or feet', 'name': 'urn'}, {'frequency': 'c', 'synset': 'vacuum.n.04', 'synonyms': ['vacuum_cleaner'], 'id': 1138, 'def': 'an electrical home appliance that cleans by suction', 'name': 'vacuum_cleaner'}, {'frequency': 'f', 'synset': 'vase.n.01', 'synonyms': ['vase'], 'id': 1139, 'def': 'an open jar of glass or porcelain used as an ornament or to hold flowers', 'name': 'vase'}, {'frequency': 'c', 'synset': 'vending_machine.n.01', 'synonyms': ['vending_machine'], 'id': 1140, 'def': 'a slot machine for selling goods', 'name': 'vending_machine'}, {'frequency': 'f', 'synset': 'vent.n.01', 'synonyms': ['vent', 'blowhole', 'air_vent'], 'id': 1141, 'def': 'a hole for the escape of gas or air', 'name': 'vent'}, {'frequency': 'f', 'synset': 'vest.n.01', 'synonyms': ['vest', 'waistcoat'], 'id': 1142, 'def': "a man's sleeveless garment worn underneath a coat", 'name': 'vest'}, {'frequency': 'c', 'synset': 'videotape.n.01', 'synonyms': ['videotape'], 'id': 1143, 'def': 'a video recording made on magnetic tape', 'name': 'videotape'}, {'frequency': 'r', 'synset': 'vinegar.n.01', 'synonyms': ['vinegar'], 'id': 1144, 'def': 'sour-tasting liquid produced usually by oxidation of the alcohol in wine or cider and used as a condiment or food preservative', 'name': 'vinegar'}, {'frequency': 'r', 'synset': 'violin.n.01', 'synonyms': ['violin', 'fiddle'], 'id': 1145, 'def': 'bowed stringed instrument that is the highest member of the violin family', 'name': 'violin'}, {'frequency': 'r', 'synset': 'vodka.n.01', 'synonyms': ['vodka'], 'id': 1146, 'def': 'unaged colorless liquor originating in Russia', 'name': 'vodka'}, {'frequency': 'c', 'synset': 'volleyball.n.02', 'synonyms': ['volleyball'], 'id': 1147, 'def': 'an inflated ball used in playing volleyball', 'name': 'volleyball'}, {'frequency': 'r', 'synset': 'vulture.n.01', 'synonyms': ['vulture'], 'id': 1148, 'def': 'any of various large birds of prey having naked heads and weak claws and feeding chiefly on carrion', 'name': 'vulture'}, {'frequency': 'c', 'synset': 'waffle.n.01', 'synonyms': ['waffle'], 'id': 1149, 'def': 'pancake batter baked in a waffle iron', 'name': 'waffle'}, {'frequency': 'r', 'synset': 'waffle_iron.n.01', 'synonyms': ['waffle_iron'], 'id': 1150, 'def': 'a kitchen appliance for baking waffles', 'name': 'waffle_iron'}, {'frequency': 'c', 'synset': 'wagon.n.01', 'synonyms': ['wagon'], 'id': 1151, 'def': 'any of various kinds of wheeled vehicles drawn by an animal or a tractor', 'name': 'wagon'}, {'frequency': 'c', 'synset': 'wagon_wheel.n.01', 'synonyms': ['wagon_wheel'], 'id': 1152, 'def': 'a wheel of a wagon', 'name': 'wagon_wheel'}, {'frequency': 'c', 'synset': 'walking_stick.n.01', 'synonyms': ['walking_stick'], 'id': 1153, 'def': 'a stick carried in the hand for support in walking', 'name': 'walking_stick'}, {'frequency': 'c', 'synset': 'wall_clock.n.01', 'synonyms': ['wall_clock'], 'id': 1154, 'def': 'a clock mounted on a wall', 'name': 'wall_clock'}, {'frequency': 'f', 'synset': 'wall_socket.n.01', 'synonyms': ['wall_socket', 'wall_plug', 'electric_outlet', 'electrical_outlet', 'outlet', 'electric_receptacle'], 'id': 1155, 'def': 'receptacle providing a place in a wiring system where current can be taken to run electrical devices', 'name': 'wall_socket'}, {'frequency': 'f', 'synset': 'wallet.n.01', 'synonyms': ['wallet', 'billfold'], 'id': 1156, 'def': 'a pocket-size case for holding papers and paper money', 'name': 'wallet'}, {'frequency': 'r', 'synset': 'walrus.n.01', 'synonyms': ['walrus'], 'id': 1157, 'def': 'either of two large northern marine mammals having ivory tusks and tough hide over thick blubber', 'name': 'walrus'}, {'frequency': 'r', 'synset': 'wardrobe.n.01', 'synonyms': ['wardrobe'], 'id': 1158, 'def': 'a tall piece of furniture that provides storage space for clothes; has a door and rails or hooks for hanging clothes', 'name': 'wardrobe'}, {'frequency': 'r', 'synset': 'washbasin.n.01', 'synonyms': ['washbasin', 'basin_(for_washing)', 'washbowl', 'washstand', 'handbasin'], 'id': 1159, 'def': 'a bathroom sink that is permanently installed and connected to a water supply and drainpipe; where you can wash your hands and face', 'name': 'washbasin'}, {'frequency': 'c', 'synset': 'washer.n.03', 'synonyms': ['automatic_washer', 'washing_machine'], 'id': 1160, 'def': 'a home appliance for washing clothes and linens automatically', 'name': 'automatic_washer'}, {'frequency': 'f', 'synset': 'watch.n.01', 'synonyms': ['watch', 'wristwatch'], 'id': 1161, 'def': 'a small, portable timepiece', 'name': 'watch'}, {'frequency': 'f', 'synset': 'water_bottle.n.01', 'synonyms': ['water_bottle'], 'id': 1162, 'def': 'a bottle for holding water', 'name': 'water_bottle'}, {'frequency': 'c', 'synset': 'water_cooler.n.01', 'synonyms': ['water_cooler'], 'id': 1163, 'def': 'a device for cooling and dispensing drinking water', 'name': 'water_cooler'}, {'frequency': 'c', 'synset': 'water_faucet.n.01', 'synonyms': ['water_faucet', 'water_tap', 'tap_(water_faucet)'], 'id': 1164, 'def': 'a faucet for drawing water from a pipe or cask', 'name': 'water_faucet'}, {'frequency': 'r', 'synset': 'water_heater.n.01', 'synonyms': ['water_heater', 'hot-water_heater'], 'id': 1165, 'def': 'a heater and storage tank to supply heated water', 'name': 'water_heater'}, {'frequency': 'c', 'synset': 'water_jug.n.01', 'synonyms': ['water_jug'], 'id': 1166, 'def': 'a jug that holds water', 'name': 'water_jug'}, {'frequency': 'r', 'synset': 'water_pistol.n.01', 'synonyms': ['water_gun', 'squirt_gun'], 'id': 1167, 'def': 'plaything consisting of a toy pistol that squirts water', 'name': 'water_gun'}, {'frequency': 'c', 'synset': 'water_scooter.n.01', 'synonyms': ['water_scooter', 'sea_scooter', 'jet_ski'], 'id': 1168, 'def': 'a motorboat resembling a motor scooter (NOT A SURFBOARD OR WATER SKI)', 'name': 'water_scooter'}, {'frequency': 'c', 'synset': 'water_ski.n.01', 'synonyms': ['water_ski'], 'id': 1169, 'def': 'broad ski for skimming over water towed by a speedboat (DO NOT MARK WATER)', 'name': 'water_ski'}, {'frequency': 'c', 'synset': 'water_tower.n.01', 'synonyms': ['water_tower'], 'id': 1170, 'def': 'a large reservoir for water', 'name': 'water_tower'}, {'frequency': 'c', 'synset': 'watering_can.n.01', 'synonyms': ['watering_can'], 'id': 1171, 'def': 'a container with a handle and a spout with a perforated nozzle; used to sprinkle water over plants', 'name': 'watering_can'}, {'frequency': 'f', 'synset': 'watermelon.n.02', 'synonyms': ['watermelon'], 'id': 1172, 'def': 'large oblong or roundish melon with a hard green rind and sweet watery red or occasionally yellowish pulp', 'name': 'watermelon'}, {'frequency': 'f', 'synset': 'weathervane.n.01', 'synonyms': ['weathervane', 'vane_(weathervane)', 'wind_vane'], 'id': 1173, 'def': 'mechanical device attached to an elevated structure; rotates freely to show the direction of the wind', 'name': 'weathervane'}, {'frequency': 'c', 'synset': 'webcam.n.01', 'synonyms': ['webcam'], 'id': 1174, 'def': 'a digital camera designed to take digital photographs and transmit them over the internet', 'name': 'webcam'}, {'frequency': 'c', 'synset': 'wedding_cake.n.01', 'synonyms': ['wedding_cake', 'bridecake'], 'id': 1175, 'def': 'a rich cake with two or more tiers and covered with frosting and decorations; served at a wedding reception', 'name': 'wedding_cake'}, {'frequency': 'c', 'synset': 'wedding_ring.n.01', 'synonyms': ['wedding_ring', 'wedding_band'], 'id': 1176, 'def': 'a ring given to the bride and/or groom at the wedding', 'name': 'wedding_ring'}, {'frequency': 'f', 'synset': 'wet_suit.n.01', 'synonyms': ['wet_suit'], 'id': 1177, 'def': 'a close-fitting garment made of a permeable material; worn in cold water to retain body heat', 'name': 'wet_suit'}, {'frequency': 'f', 'synset': 'wheel.n.01', 'synonyms': ['wheel'], 'id': 1178, 'def': 'a circular frame with spokes (or a solid disc) that can rotate on a shaft or axle', 'name': 'wheel'}, {'frequency': 'c', 'synset': 'wheelchair.n.01', 'synonyms': ['wheelchair'], 'id': 1179, 'def': 'a movable chair mounted on large wheels', 'name': 'wheelchair'}, {'frequency': 'c', 'synset': 'whipped_cream.n.01', 'synonyms': ['whipped_cream'], 'id': 1180, 'def': 'cream that has been beaten until light and fluffy', 'name': 'whipped_cream'}, {'frequency': 'c', 'synset': 'whistle.n.03', 'synonyms': ['whistle'], 'id': 1181, 'def': 'a small wind instrument that produces a whistling sound by blowing into it', 'name': 'whistle'}, {'frequency': 'c', 'synset': 'wig.n.01', 'synonyms': ['wig'], 'id': 1182, 'def': 'hairpiece covering the head and made of real or synthetic hair', 'name': 'wig'}, {'frequency': 'c', 'synset': 'wind_chime.n.01', 'synonyms': ['wind_chime'], 'id': 1183, 'def': 'a decorative arrangement of pieces of metal or glass or pottery that hang together loosely so the wind can cause them to tinkle', 'name': 'wind_chime'}, {'frequency': 'c', 'synset': 'windmill.n.01', 'synonyms': ['windmill'], 'id': 1184, 'def': 'A mill or turbine that is powered by wind', 'name': 'windmill'}, {'frequency': 'c', 'synset': 'window_box.n.01', 'synonyms': ['window_box_(for_plants)'], 'id': 1185, 'def': 'a container for growing plants on a windowsill', 'name': 'window_box_(for_plants)'}, {'frequency': 'f', 'synset': 'windshield_wiper.n.01', 'synonyms': ['windshield_wiper', 'windscreen_wiper', 'wiper_(for_windshield/screen)'], 'id': 1186, 'def': 'a mechanical device that cleans the windshield', 'name': 'windshield_wiper'}, {'frequency': 'c', 'synset': 'windsock.n.01', 'synonyms': ['windsock', 'air_sock', 'air-sleeve', 'wind_sleeve', 'wind_cone'], 'id': 1187, 'def': 'a truncated cloth cone mounted on a mast/pole; shows wind direction', 'name': 'windsock'}, {'frequency': 'f', 'synset': 'wine_bottle.n.01', 'synonyms': ['wine_bottle'], 'id': 1188, 'def': 'a bottle for holding wine', 'name': 'wine_bottle'}, {'frequency': 'c', 'synset': 'wine_bucket.n.01', 'synonyms': ['wine_bucket', 'wine_cooler'], 'id': 1189, 'def': 'a bucket of ice used to chill a bottle of wine', 'name': 'wine_bucket'}, {'frequency': 'f', 'synset': 'wineglass.n.01', 'synonyms': ['wineglass'], 'id': 1190, 'def': 'a glass that has a stem and in which wine is served', 'name': 'wineglass'}, {'frequency': 'f', 'synset': 'winker.n.02', 'synonyms': ['blinder_(for_horses)'], 'id': 1191, 'def': 'blinds that prevent a horse from seeing something on either side', 'name': 'blinder_(for_horses)'}, {'frequency': 'c', 'synset': 'wok.n.01', 'synonyms': ['wok'], 'id': 1192, 'def': 'pan with a convex bottom; used for frying in Chinese cooking', 'name': 'wok'}, {'frequency': 'r', 'synset': 'wolf.n.01', 'synonyms': ['wolf'], 'id': 1193, 'def': 'a wild carnivorous mammal of the dog family, living and hunting in packs', 'name': 'wolf'}, {'frequency': 'c', 'synset': 'wooden_spoon.n.02', 'synonyms': ['wooden_spoon'], 'id': 1194, 'def': 'a spoon made of wood', 'name': 'wooden_spoon'}, {'frequency': 'c', 'synset': 'wreath.n.01', 'synonyms': ['wreath'], 'id': 1195, 'def': 'an arrangement of flowers, leaves, or stems fastened in a ring', 'name': 'wreath'}, {'frequency': 'c', 'synset': 'wrench.n.03', 'synonyms': ['wrench', 'spanner'], 'id': 1196, 'def': 'a hand tool that is used to hold or twist a nut or bolt', 'name': 'wrench'}, {'frequency': 'f', 'synset': 'wristband.n.01', 'synonyms': ['wristband'], 'id': 1197, 'def': 'band consisting of a part of a sleeve that covers the wrist', 'name': 'wristband'}, {'frequency': 'f', 'synset': 'wristlet.n.01', 'synonyms': ['wristlet', 'wrist_band'], 'id': 1198, 'def': 'a band or bracelet worn around the wrist', 'name': 'wristlet'}, {'frequency': 'c', 'synset': 'yacht.n.01', 'synonyms': ['yacht'], 'id': 1199, 'def': 'an expensive vessel propelled by sail or power and used for cruising or racing', 'name': 'yacht'}, {'frequency': 'c', 'synset': 'yogurt.n.01', 'synonyms': ['yogurt', 'yoghurt', 'yoghourt'], 'id': 1200, 'def': 'a custard-like food made from curdled milk', 'name': 'yogurt'}, {'frequency': 'c', 'synset': 'yoke.n.07', 'synonyms': ['yoke_(animal_equipment)'], 'id': 1201, 'def': 'gear joining two animals at the neck; NOT egg yolk', 'name': 'yoke_(animal_equipment)'}, {'frequency': 'f', 'synset': 'zebra.n.01', 'synonyms': ['zebra'], 'id': 1202, 'def': 'any of several fleet black-and-white striped African equines', 'name': 'zebra'}, {'frequency': 'c', 'synset': 'zucchini.n.02', 'synonyms': ['zucchini', 'courgette'], 'id': 1203, 'def': 'small cucumber-shaped vegetable marrow; typically dark green', 'name': 'zucchini'}] # noqa +# fmt: on diff --git a/detectron2/detectron2/data/datasets/lvis_v1_category_image_count.py b/detectron2/detectron2/data/datasets/lvis_v1_category_image_count.py new file mode 100755 index 0000000..31bf0cf --- /dev/null +++ b/detectron2/detectron2/data/datasets/lvis_v1_category_image_count.py @@ -0,0 +1,20 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# Autogen with +# with open("lvis_v1_train.json", "r") as f: +# a = json.load(f) +# c = a["categories"] +# for x in c: +# del x["name"] +# del x["instance_count"] +# del x["def"] +# del x["synonyms"] +# del x["frequency"] +# del x["synset"] +# LVIS_CATEGORY_IMAGE_COUNT = repr(c) + " # noqa" +# with open("/tmp/lvis_category_image_count.py", "wt") as f: +# f.write(f"LVIS_CATEGORY_IMAGE_COUNT = {LVIS_CATEGORY_IMAGE_COUNT}") +# Then paste the contents of that file below + +# fmt: off +LVIS_CATEGORY_IMAGE_COUNT = [{'id': 1, 'image_count': 64}, {'id': 2, 'image_count': 364}, {'id': 3, 'image_count': 1911}, {'id': 4, 'image_count': 149}, {'id': 5, 'image_count': 29}, {'id': 6, 'image_count': 26}, {'id': 7, 'image_count': 59}, {'id': 8, 'image_count': 22}, {'id': 9, 'image_count': 12}, {'id': 10, 'image_count': 28}, {'id': 11, 'image_count': 505}, {'id': 12, 'image_count': 1207}, {'id': 13, 'image_count': 4}, {'id': 14, 'image_count': 10}, {'id': 15, 'image_count': 500}, {'id': 16, 'image_count': 33}, {'id': 17, 'image_count': 3}, {'id': 18, 'image_count': 44}, {'id': 19, 'image_count': 561}, {'id': 20, 'image_count': 8}, {'id': 21, 'image_count': 9}, {'id': 22, 'image_count': 33}, {'id': 23, 'image_count': 1883}, {'id': 24, 'image_count': 98}, {'id': 25, 'image_count': 70}, {'id': 26, 'image_count': 46}, {'id': 27, 'image_count': 117}, {'id': 28, 'image_count': 41}, {'id': 29, 'image_count': 1395}, {'id': 30, 'image_count': 7}, {'id': 31, 'image_count': 1}, {'id': 32, 'image_count': 314}, {'id': 33, 'image_count': 31}, {'id': 34, 'image_count': 1905}, {'id': 35, 'image_count': 1859}, {'id': 36, 'image_count': 1623}, {'id': 37, 'image_count': 47}, {'id': 38, 'image_count': 3}, {'id': 39, 'image_count': 3}, {'id': 40, 'image_count': 1}, {'id': 41, 'image_count': 305}, {'id': 42, 'image_count': 6}, {'id': 43, 'image_count': 210}, {'id': 44, 'image_count': 36}, {'id': 45, 'image_count': 1787}, {'id': 46, 'image_count': 17}, {'id': 47, 'image_count': 51}, {'id': 48, 'image_count': 138}, {'id': 49, 'image_count': 3}, {'id': 50, 'image_count': 1470}, {'id': 51, 'image_count': 3}, {'id': 52, 'image_count': 2}, {'id': 53, 'image_count': 186}, {'id': 54, 'image_count': 76}, {'id': 55, 'image_count': 26}, {'id': 56, 'image_count': 303}, {'id': 57, 'image_count': 738}, {'id': 58, 'image_count': 1799}, {'id': 59, 'image_count': 1934}, {'id': 60, 'image_count': 1609}, {'id': 61, 'image_count': 1622}, {'id': 62, 'image_count': 41}, {'id': 63, 'image_count': 4}, {'id': 64, 'image_count': 11}, {'id': 65, 'image_count': 270}, {'id': 66, 'image_count': 349}, {'id': 67, 'image_count': 42}, {'id': 68, 'image_count': 823}, {'id': 69, 'image_count': 6}, {'id': 70, 'image_count': 48}, {'id': 71, 'image_count': 3}, {'id': 72, 'image_count': 42}, {'id': 73, 'image_count': 24}, {'id': 74, 'image_count': 16}, {'id': 75, 'image_count': 605}, {'id': 76, 'image_count': 646}, {'id': 77, 'image_count': 1765}, {'id': 78, 'image_count': 2}, {'id': 79, 'image_count': 125}, {'id': 80, 'image_count': 1420}, {'id': 81, 'image_count': 140}, {'id': 82, 'image_count': 4}, {'id': 83, 'image_count': 322}, {'id': 84, 'image_count': 60}, {'id': 85, 'image_count': 2}, {'id': 86, 'image_count': 231}, {'id': 87, 'image_count': 333}, {'id': 88, 'image_count': 1941}, {'id': 89, 'image_count': 367}, {'id': 90, 'image_count': 1922}, {'id': 91, 'image_count': 18}, {'id': 92, 'image_count': 81}, {'id': 93, 'image_count': 1}, {'id': 94, 'image_count': 1852}, {'id': 95, 'image_count': 430}, {'id': 96, 'image_count': 247}, {'id': 97, 'image_count': 94}, {'id': 98, 'image_count': 21}, {'id': 99, 'image_count': 1821}, {'id': 100, 'image_count': 16}, {'id': 101, 'image_count': 12}, {'id': 102, 'image_count': 25}, {'id': 103, 'image_count': 41}, {'id': 104, 'image_count': 244}, {'id': 105, 'image_count': 7}, {'id': 106, 'image_count': 1}, {'id': 107, 'image_count': 40}, {'id': 108, 'image_count': 40}, {'id': 109, 'image_count': 104}, {'id': 110, 'image_count': 1671}, {'id': 111, 'image_count': 49}, {'id': 112, 'image_count': 243}, {'id': 113, 'image_count': 2}, {'id': 114, 'image_count': 242}, {'id': 115, 'image_count': 271}, {'id': 116, 'image_count': 104}, {'id': 117, 'image_count': 8}, {'id': 118, 'image_count': 1758}, {'id': 119, 'image_count': 1}, {'id': 120, 'image_count': 48}, {'id': 121, 'image_count': 14}, {'id': 122, 'image_count': 40}, {'id': 123, 'image_count': 1}, {'id': 124, 'image_count': 37}, {'id': 125, 'image_count': 1510}, {'id': 126, 'image_count': 6}, {'id': 127, 'image_count': 1903}, {'id': 128, 'image_count': 70}, {'id': 129, 'image_count': 86}, {'id': 130, 'image_count': 7}, {'id': 131, 'image_count': 5}, {'id': 132, 'image_count': 1406}, {'id': 133, 'image_count': 1901}, {'id': 134, 'image_count': 15}, {'id': 135, 'image_count': 28}, {'id': 136, 'image_count': 6}, {'id': 137, 'image_count': 494}, {'id': 138, 'image_count': 234}, {'id': 139, 'image_count': 1922}, {'id': 140, 'image_count': 1}, {'id': 141, 'image_count': 35}, {'id': 142, 'image_count': 5}, {'id': 143, 'image_count': 1828}, {'id': 144, 'image_count': 8}, {'id': 145, 'image_count': 63}, {'id': 146, 'image_count': 1668}, {'id': 147, 'image_count': 4}, {'id': 148, 'image_count': 95}, {'id': 149, 'image_count': 17}, {'id': 150, 'image_count': 1567}, {'id': 151, 'image_count': 2}, {'id': 152, 'image_count': 103}, {'id': 153, 'image_count': 50}, {'id': 154, 'image_count': 1309}, {'id': 155, 'image_count': 6}, {'id': 156, 'image_count': 92}, {'id': 157, 'image_count': 19}, {'id': 158, 'image_count': 37}, {'id': 159, 'image_count': 4}, {'id': 160, 'image_count': 709}, {'id': 161, 'image_count': 9}, {'id': 162, 'image_count': 82}, {'id': 163, 'image_count': 15}, {'id': 164, 'image_count': 3}, {'id': 165, 'image_count': 61}, {'id': 166, 'image_count': 51}, {'id': 167, 'image_count': 5}, {'id': 168, 'image_count': 13}, {'id': 169, 'image_count': 642}, {'id': 170, 'image_count': 24}, {'id': 171, 'image_count': 255}, {'id': 172, 'image_count': 9}, {'id': 173, 'image_count': 1808}, {'id': 174, 'image_count': 31}, {'id': 175, 'image_count': 158}, {'id': 176, 'image_count': 80}, {'id': 177, 'image_count': 1884}, {'id': 178, 'image_count': 158}, {'id': 179, 'image_count': 2}, {'id': 180, 'image_count': 12}, {'id': 181, 'image_count': 1659}, {'id': 182, 'image_count': 7}, {'id': 183, 'image_count': 834}, {'id': 184, 'image_count': 57}, {'id': 185, 'image_count': 174}, {'id': 186, 'image_count': 95}, {'id': 187, 'image_count': 27}, {'id': 188, 'image_count': 22}, {'id': 189, 'image_count': 1391}, {'id': 190, 'image_count': 90}, {'id': 191, 'image_count': 40}, {'id': 192, 'image_count': 445}, {'id': 193, 'image_count': 21}, {'id': 194, 'image_count': 1132}, {'id': 195, 'image_count': 177}, {'id': 196, 'image_count': 4}, {'id': 197, 'image_count': 17}, {'id': 198, 'image_count': 84}, {'id': 199, 'image_count': 55}, {'id': 200, 'image_count': 30}, {'id': 201, 'image_count': 25}, {'id': 202, 'image_count': 2}, {'id': 203, 'image_count': 125}, {'id': 204, 'image_count': 1135}, {'id': 205, 'image_count': 19}, {'id': 206, 'image_count': 72}, {'id': 207, 'image_count': 1926}, {'id': 208, 'image_count': 159}, {'id': 209, 'image_count': 7}, {'id': 210, 'image_count': 1}, {'id': 211, 'image_count': 13}, {'id': 212, 'image_count': 35}, {'id': 213, 'image_count': 18}, {'id': 214, 'image_count': 8}, {'id': 215, 'image_count': 6}, {'id': 216, 'image_count': 35}, {'id': 217, 'image_count': 1222}, {'id': 218, 'image_count': 103}, {'id': 219, 'image_count': 28}, {'id': 220, 'image_count': 63}, {'id': 221, 'image_count': 28}, {'id': 222, 'image_count': 5}, {'id': 223, 'image_count': 7}, {'id': 224, 'image_count': 14}, {'id': 225, 'image_count': 1918}, {'id': 226, 'image_count': 133}, {'id': 227, 'image_count': 16}, {'id': 228, 'image_count': 27}, {'id': 229, 'image_count': 110}, {'id': 230, 'image_count': 1895}, {'id': 231, 'image_count': 4}, {'id': 232, 'image_count': 1927}, {'id': 233, 'image_count': 8}, {'id': 234, 'image_count': 1}, {'id': 235, 'image_count': 263}, {'id': 236, 'image_count': 10}, {'id': 237, 'image_count': 2}, {'id': 238, 'image_count': 3}, {'id': 239, 'image_count': 87}, {'id': 240, 'image_count': 9}, {'id': 241, 'image_count': 71}, {'id': 242, 'image_count': 13}, {'id': 243, 'image_count': 18}, {'id': 244, 'image_count': 2}, {'id': 245, 'image_count': 5}, {'id': 246, 'image_count': 45}, {'id': 247, 'image_count': 1}, {'id': 248, 'image_count': 23}, {'id': 249, 'image_count': 32}, {'id': 250, 'image_count': 4}, {'id': 251, 'image_count': 1}, {'id': 252, 'image_count': 858}, {'id': 253, 'image_count': 661}, {'id': 254, 'image_count': 168}, {'id': 255, 'image_count': 210}, {'id': 256, 'image_count': 65}, {'id': 257, 'image_count': 4}, {'id': 258, 'image_count': 2}, {'id': 259, 'image_count': 159}, {'id': 260, 'image_count': 31}, {'id': 261, 'image_count': 811}, {'id': 262, 'image_count': 1}, {'id': 263, 'image_count': 42}, {'id': 264, 'image_count': 27}, {'id': 265, 'image_count': 2}, {'id': 266, 'image_count': 5}, {'id': 267, 'image_count': 95}, {'id': 268, 'image_count': 32}, {'id': 269, 'image_count': 1}, {'id': 270, 'image_count': 1}, {'id': 271, 'image_count': 1844}, {'id': 272, 'image_count': 897}, {'id': 273, 'image_count': 31}, {'id': 274, 'image_count': 23}, {'id': 275, 'image_count': 1}, {'id': 276, 'image_count': 202}, {'id': 277, 'image_count': 746}, {'id': 278, 'image_count': 44}, {'id': 279, 'image_count': 14}, {'id': 280, 'image_count': 26}, {'id': 281, 'image_count': 1}, {'id': 282, 'image_count': 2}, {'id': 283, 'image_count': 25}, {'id': 284, 'image_count': 238}, {'id': 285, 'image_count': 592}, {'id': 286, 'image_count': 26}, {'id': 287, 'image_count': 5}, {'id': 288, 'image_count': 42}, {'id': 289, 'image_count': 13}, {'id': 290, 'image_count': 46}, {'id': 291, 'image_count': 1}, {'id': 292, 'image_count': 8}, {'id': 293, 'image_count': 34}, {'id': 294, 'image_count': 5}, {'id': 295, 'image_count': 1}, {'id': 296, 'image_count': 1871}, {'id': 297, 'image_count': 717}, {'id': 298, 'image_count': 1010}, {'id': 299, 'image_count': 679}, {'id': 300, 'image_count': 3}, {'id': 301, 'image_count': 4}, {'id': 302, 'image_count': 1}, {'id': 303, 'image_count': 166}, {'id': 304, 'image_count': 2}, {'id': 305, 'image_count': 266}, {'id': 306, 'image_count': 101}, {'id': 307, 'image_count': 6}, {'id': 308, 'image_count': 14}, {'id': 309, 'image_count': 133}, {'id': 310, 'image_count': 2}, {'id': 311, 'image_count': 38}, {'id': 312, 'image_count': 95}, {'id': 313, 'image_count': 1}, {'id': 314, 'image_count': 12}, {'id': 315, 'image_count': 49}, {'id': 316, 'image_count': 5}, {'id': 317, 'image_count': 5}, {'id': 318, 'image_count': 16}, {'id': 319, 'image_count': 216}, {'id': 320, 'image_count': 12}, {'id': 321, 'image_count': 1}, {'id': 322, 'image_count': 54}, {'id': 323, 'image_count': 5}, {'id': 324, 'image_count': 245}, {'id': 325, 'image_count': 12}, {'id': 326, 'image_count': 7}, {'id': 327, 'image_count': 35}, {'id': 328, 'image_count': 36}, {'id': 329, 'image_count': 32}, {'id': 330, 'image_count': 1027}, {'id': 331, 'image_count': 10}, {'id': 332, 'image_count': 12}, {'id': 333, 'image_count': 1}, {'id': 334, 'image_count': 67}, {'id': 335, 'image_count': 71}, {'id': 336, 'image_count': 30}, {'id': 337, 'image_count': 48}, {'id': 338, 'image_count': 249}, {'id': 339, 'image_count': 13}, {'id': 340, 'image_count': 29}, {'id': 341, 'image_count': 14}, {'id': 342, 'image_count': 236}, {'id': 343, 'image_count': 15}, {'id': 344, 'image_count': 1521}, {'id': 345, 'image_count': 25}, {'id': 346, 'image_count': 249}, {'id': 347, 'image_count': 139}, {'id': 348, 'image_count': 2}, {'id': 349, 'image_count': 2}, {'id': 350, 'image_count': 1890}, {'id': 351, 'image_count': 1240}, {'id': 352, 'image_count': 1}, {'id': 353, 'image_count': 9}, {'id': 354, 'image_count': 1}, {'id': 355, 'image_count': 3}, {'id': 356, 'image_count': 11}, {'id': 357, 'image_count': 4}, {'id': 358, 'image_count': 236}, {'id': 359, 'image_count': 44}, {'id': 360, 'image_count': 19}, {'id': 361, 'image_count': 1100}, {'id': 362, 'image_count': 7}, {'id': 363, 'image_count': 69}, {'id': 364, 'image_count': 2}, {'id': 365, 'image_count': 8}, {'id': 366, 'image_count': 5}, {'id': 367, 'image_count': 227}, {'id': 368, 'image_count': 6}, {'id': 369, 'image_count': 106}, {'id': 370, 'image_count': 81}, {'id': 371, 'image_count': 17}, {'id': 372, 'image_count': 134}, {'id': 373, 'image_count': 312}, {'id': 374, 'image_count': 8}, {'id': 375, 'image_count': 271}, {'id': 376, 'image_count': 2}, {'id': 377, 'image_count': 103}, {'id': 378, 'image_count': 1938}, {'id': 379, 'image_count': 574}, {'id': 380, 'image_count': 120}, {'id': 381, 'image_count': 2}, {'id': 382, 'image_count': 2}, {'id': 383, 'image_count': 13}, {'id': 384, 'image_count': 29}, {'id': 385, 'image_count': 1710}, {'id': 386, 'image_count': 66}, {'id': 387, 'image_count': 1008}, {'id': 388, 'image_count': 1}, {'id': 389, 'image_count': 3}, {'id': 390, 'image_count': 1942}, {'id': 391, 'image_count': 19}, {'id': 392, 'image_count': 1488}, {'id': 393, 'image_count': 46}, {'id': 394, 'image_count': 106}, {'id': 395, 'image_count': 115}, {'id': 396, 'image_count': 19}, {'id': 397, 'image_count': 2}, {'id': 398, 'image_count': 1}, {'id': 399, 'image_count': 28}, {'id': 400, 'image_count': 9}, {'id': 401, 'image_count': 192}, {'id': 402, 'image_count': 12}, {'id': 403, 'image_count': 21}, {'id': 404, 'image_count': 247}, {'id': 405, 'image_count': 6}, {'id': 406, 'image_count': 64}, {'id': 407, 'image_count': 7}, {'id': 408, 'image_count': 40}, {'id': 409, 'image_count': 542}, {'id': 410, 'image_count': 2}, {'id': 411, 'image_count': 1898}, {'id': 412, 'image_count': 36}, {'id': 413, 'image_count': 4}, {'id': 414, 'image_count': 1}, {'id': 415, 'image_count': 191}, {'id': 416, 'image_count': 6}, {'id': 417, 'image_count': 41}, {'id': 418, 'image_count': 39}, {'id': 419, 'image_count': 46}, {'id': 420, 'image_count': 1}, {'id': 421, 'image_count': 1451}, {'id': 422, 'image_count': 1878}, {'id': 423, 'image_count': 11}, {'id': 424, 'image_count': 82}, {'id': 425, 'image_count': 18}, {'id': 426, 'image_count': 1}, {'id': 427, 'image_count': 7}, {'id': 428, 'image_count': 3}, {'id': 429, 'image_count': 575}, {'id': 430, 'image_count': 1907}, {'id': 431, 'image_count': 8}, {'id': 432, 'image_count': 4}, {'id': 433, 'image_count': 32}, {'id': 434, 'image_count': 11}, {'id': 435, 'image_count': 4}, {'id': 436, 'image_count': 54}, {'id': 437, 'image_count': 202}, {'id': 438, 'image_count': 32}, {'id': 439, 'image_count': 3}, {'id': 440, 'image_count': 130}, {'id': 441, 'image_count': 119}, {'id': 442, 'image_count': 141}, {'id': 443, 'image_count': 29}, {'id': 444, 'image_count': 525}, {'id': 445, 'image_count': 1323}, {'id': 446, 'image_count': 2}, {'id': 447, 'image_count': 113}, {'id': 448, 'image_count': 16}, {'id': 449, 'image_count': 7}, {'id': 450, 'image_count': 35}, {'id': 451, 'image_count': 1908}, {'id': 452, 'image_count': 353}, {'id': 453, 'image_count': 18}, {'id': 454, 'image_count': 14}, {'id': 455, 'image_count': 77}, {'id': 456, 'image_count': 8}, {'id': 457, 'image_count': 37}, {'id': 458, 'image_count': 1}, {'id': 459, 'image_count': 346}, {'id': 460, 'image_count': 19}, {'id': 461, 'image_count': 1779}, {'id': 462, 'image_count': 23}, {'id': 463, 'image_count': 25}, {'id': 464, 'image_count': 67}, {'id': 465, 'image_count': 19}, {'id': 466, 'image_count': 28}, {'id': 467, 'image_count': 4}, {'id': 468, 'image_count': 27}, {'id': 469, 'image_count': 1861}, {'id': 470, 'image_count': 11}, {'id': 471, 'image_count': 13}, {'id': 472, 'image_count': 13}, {'id': 473, 'image_count': 32}, {'id': 474, 'image_count': 1767}, {'id': 475, 'image_count': 42}, {'id': 476, 'image_count': 17}, {'id': 477, 'image_count': 128}, {'id': 478, 'image_count': 1}, {'id': 479, 'image_count': 9}, {'id': 480, 'image_count': 10}, {'id': 481, 'image_count': 4}, {'id': 482, 'image_count': 9}, {'id': 483, 'image_count': 18}, {'id': 484, 'image_count': 41}, {'id': 485, 'image_count': 28}, {'id': 486, 'image_count': 3}, {'id': 487, 'image_count': 65}, {'id': 488, 'image_count': 9}, {'id': 489, 'image_count': 23}, {'id': 490, 'image_count': 24}, {'id': 491, 'image_count': 1}, {'id': 492, 'image_count': 2}, {'id': 493, 'image_count': 59}, {'id': 494, 'image_count': 48}, {'id': 495, 'image_count': 17}, {'id': 496, 'image_count': 1877}, {'id': 497, 'image_count': 18}, {'id': 498, 'image_count': 1920}, {'id': 499, 'image_count': 50}, {'id': 500, 'image_count': 1890}, {'id': 501, 'image_count': 99}, {'id': 502, 'image_count': 1530}, {'id': 503, 'image_count': 3}, {'id': 504, 'image_count': 11}, {'id': 505, 'image_count': 19}, {'id': 506, 'image_count': 3}, {'id': 507, 'image_count': 63}, {'id': 508, 'image_count': 5}, {'id': 509, 'image_count': 6}, {'id': 510, 'image_count': 233}, {'id': 511, 'image_count': 54}, {'id': 512, 'image_count': 36}, {'id': 513, 'image_count': 10}, {'id': 514, 'image_count': 124}, {'id': 515, 'image_count': 101}, {'id': 516, 'image_count': 3}, {'id': 517, 'image_count': 363}, {'id': 518, 'image_count': 3}, {'id': 519, 'image_count': 30}, {'id': 520, 'image_count': 18}, {'id': 521, 'image_count': 199}, {'id': 522, 'image_count': 97}, {'id': 523, 'image_count': 32}, {'id': 524, 'image_count': 121}, {'id': 525, 'image_count': 16}, {'id': 526, 'image_count': 12}, {'id': 527, 'image_count': 2}, {'id': 528, 'image_count': 214}, {'id': 529, 'image_count': 48}, {'id': 530, 'image_count': 26}, {'id': 531, 'image_count': 13}, {'id': 532, 'image_count': 4}, {'id': 533, 'image_count': 11}, {'id': 534, 'image_count': 123}, {'id': 535, 'image_count': 7}, {'id': 536, 'image_count': 200}, {'id': 537, 'image_count': 91}, {'id': 538, 'image_count': 9}, {'id': 539, 'image_count': 72}, {'id': 540, 'image_count': 1886}, {'id': 541, 'image_count': 4}, {'id': 542, 'image_count': 1}, {'id': 543, 'image_count': 1}, {'id': 544, 'image_count': 1932}, {'id': 545, 'image_count': 4}, {'id': 546, 'image_count': 56}, {'id': 547, 'image_count': 854}, {'id': 548, 'image_count': 755}, {'id': 549, 'image_count': 1843}, {'id': 550, 'image_count': 96}, {'id': 551, 'image_count': 7}, {'id': 552, 'image_count': 74}, {'id': 553, 'image_count': 66}, {'id': 554, 'image_count': 57}, {'id': 555, 'image_count': 44}, {'id': 556, 'image_count': 1905}, {'id': 557, 'image_count': 4}, {'id': 558, 'image_count': 90}, {'id': 559, 'image_count': 1635}, {'id': 560, 'image_count': 8}, {'id': 561, 'image_count': 5}, {'id': 562, 'image_count': 50}, {'id': 563, 'image_count': 545}, {'id': 564, 'image_count': 20}, {'id': 565, 'image_count': 193}, {'id': 566, 'image_count': 285}, {'id': 567, 'image_count': 3}, {'id': 568, 'image_count': 1}, {'id': 569, 'image_count': 1904}, {'id': 570, 'image_count': 294}, {'id': 571, 'image_count': 3}, {'id': 572, 'image_count': 5}, {'id': 573, 'image_count': 24}, {'id': 574, 'image_count': 2}, {'id': 575, 'image_count': 2}, {'id': 576, 'image_count': 16}, {'id': 577, 'image_count': 8}, {'id': 578, 'image_count': 154}, {'id': 579, 'image_count': 66}, {'id': 580, 'image_count': 1}, {'id': 581, 'image_count': 24}, {'id': 582, 'image_count': 1}, {'id': 583, 'image_count': 4}, {'id': 584, 'image_count': 75}, {'id': 585, 'image_count': 6}, {'id': 586, 'image_count': 126}, {'id': 587, 'image_count': 24}, {'id': 588, 'image_count': 22}, {'id': 589, 'image_count': 1872}, {'id': 590, 'image_count': 16}, {'id': 591, 'image_count': 423}, {'id': 592, 'image_count': 1927}, {'id': 593, 'image_count': 38}, {'id': 594, 'image_count': 3}, {'id': 595, 'image_count': 1945}, {'id': 596, 'image_count': 35}, {'id': 597, 'image_count': 1}, {'id': 598, 'image_count': 13}, {'id': 599, 'image_count': 9}, {'id': 600, 'image_count': 14}, {'id': 601, 'image_count': 37}, {'id': 602, 'image_count': 3}, {'id': 603, 'image_count': 4}, {'id': 604, 'image_count': 100}, {'id': 605, 'image_count': 195}, {'id': 606, 'image_count': 1}, {'id': 607, 'image_count': 12}, {'id': 608, 'image_count': 24}, {'id': 609, 'image_count': 489}, {'id': 610, 'image_count': 10}, {'id': 611, 'image_count': 1689}, {'id': 612, 'image_count': 42}, {'id': 613, 'image_count': 81}, {'id': 614, 'image_count': 894}, {'id': 615, 'image_count': 1868}, {'id': 616, 'image_count': 7}, {'id': 617, 'image_count': 1567}, {'id': 618, 'image_count': 10}, {'id': 619, 'image_count': 8}, {'id': 620, 'image_count': 7}, {'id': 621, 'image_count': 629}, {'id': 622, 'image_count': 89}, {'id': 623, 'image_count': 15}, {'id': 624, 'image_count': 134}, {'id': 625, 'image_count': 4}, {'id': 626, 'image_count': 1802}, {'id': 627, 'image_count': 595}, {'id': 628, 'image_count': 1210}, {'id': 629, 'image_count': 48}, {'id': 630, 'image_count': 418}, {'id': 631, 'image_count': 1846}, {'id': 632, 'image_count': 5}, {'id': 633, 'image_count': 221}, {'id': 634, 'image_count': 10}, {'id': 635, 'image_count': 7}, {'id': 636, 'image_count': 76}, {'id': 637, 'image_count': 22}, {'id': 638, 'image_count': 10}, {'id': 639, 'image_count': 341}, {'id': 640, 'image_count': 1}, {'id': 641, 'image_count': 705}, {'id': 642, 'image_count': 1900}, {'id': 643, 'image_count': 188}, {'id': 644, 'image_count': 227}, {'id': 645, 'image_count': 861}, {'id': 646, 'image_count': 6}, {'id': 647, 'image_count': 115}, {'id': 648, 'image_count': 5}, {'id': 649, 'image_count': 43}, {'id': 650, 'image_count': 14}, {'id': 651, 'image_count': 6}, {'id': 652, 'image_count': 15}, {'id': 653, 'image_count': 1167}, {'id': 654, 'image_count': 15}, {'id': 655, 'image_count': 994}, {'id': 656, 'image_count': 28}, {'id': 657, 'image_count': 2}, {'id': 658, 'image_count': 338}, {'id': 659, 'image_count': 334}, {'id': 660, 'image_count': 15}, {'id': 661, 'image_count': 102}, {'id': 662, 'image_count': 1}, {'id': 663, 'image_count': 8}, {'id': 664, 'image_count': 1}, {'id': 665, 'image_count': 1}, {'id': 666, 'image_count': 28}, {'id': 667, 'image_count': 91}, {'id': 668, 'image_count': 260}, {'id': 669, 'image_count': 131}, {'id': 670, 'image_count': 128}, {'id': 671, 'image_count': 3}, {'id': 672, 'image_count': 10}, {'id': 673, 'image_count': 39}, {'id': 674, 'image_count': 2}, {'id': 675, 'image_count': 925}, {'id': 676, 'image_count': 354}, {'id': 677, 'image_count': 31}, {'id': 678, 'image_count': 10}, {'id': 679, 'image_count': 215}, {'id': 680, 'image_count': 71}, {'id': 681, 'image_count': 43}, {'id': 682, 'image_count': 28}, {'id': 683, 'image_count': 34}, {'id': 684, 'image_count': 16}, {'id': 685, 'image_count': 273}, {'id': 686, 'image_count': 2}, {'id': 687, 'image_count': 999}, {'id': 688, 'image_count': 4}, {'id': 689, 'image_count': 107}, {'id': 690, 'image_count': 2}, {'id': 691, 'image_count': 1}, {'id': 692, 'image_count': 454}, {'id': 693, 'image_count': 9}, {'id': 694, 'image_count': 1901}, {'id': 695, 'image_count': 61}, {'id': 696, 'image_count': 91}, {'id': 697, 'image_count': 46}, {'id': 698, 'image_count': 1402}, {'id': 699, 'image_count': 74}, {'id': 700, 'image_count': 421}, {'id': 701, 'image_count': 226}, {'id': 702, 'image_count': 10}, {'id': 703, 'image_count': 1720}, {'id': 704, 'image_count': 261}, {'id': 705, 'image_count': 1337}, {'id': 706, 'image_count': 293}, {'id': 707, 'image_count': 62}, {'id': 708, 'image_count': 814}, {'id': 709, 'image_count': 407}, {'id': 710, 'image_count': 6}, {'id': 711, 'image_count': 16}, {'id': 712, 'image_count': 7}, {'id': 713, 'image_count': 1791}, {'id': 714, 'image_count': 2}, {'id': 715, 'image_count': 1915}, {'id': 716, 'image_count': 1940}, {'id': 717, 'image_count': 13}, {'id': 718, 'image_count': 16}, {'id': 719, 'image_count': 448}, {'id': 720, 'image_count': 12}, {'id': 721, 'image_count': 18}, {'id': 722, 'image_count': 4}, {'id': 723, 'image_count': 71}, {'id': 724, 'image_count': 189}, {'id': 725, 'image_count': 74}, {'id': 726, 'image_count': 103}, {'id': 727, 'image_count': 3}, {'id': 728, 'image_count': 110}, {'id': 729, 'image_count': 5}, {'id': 730, 'image_count': 9}, {'id': 731, 'image_count': 15}, {'id': 732, 'image_count': 25}, {'id': 733, 'image_count': 7}, {'id': 734, 'image_count': 647}, {'id': 735, 'image_count': 824}, {'id': 736, 'image_count': 100}, {'id': 737, 'image_count': 47}, {'id': 738, 'image_count': 121}, {'id': 739, 'image_count': 731}, {'id': 740, 'image_count': 73}, {'id': 741, 'image_count': 49}, {'id': 742, 'image_count': 23}, {'id': 743, 'image_count': 4}, {'id': 744, 'image_count': 62}, {'id': 745, 'image_count': 118}, {'id': 746, 'image_count': 99}, {'id': 747, 'image_count': 40}, {'id': 748, 'image_count': 1036}, {'id': 749, 'image_count': 105}, {'id': 750, 'image_count': 21}, {'id': 751, 'image_count': 229}, {'id': 752, 'image_count': 7}, {'id': 753, 'image_count': 72}, {'id': 754, 'image_count': 9}, {'id': 755, 'image_count': 10}, {'id': 756, 'image_count': 328}, {'id': 757, 'image_count': 468}, {'id': 758, 'image_count': 1}, {'id': 759, 'image_count': 2}, {'id': 760, 'image_count': 24}, {'id': 761, 'image_count': 11}, {'id': 762, 'image_count': 72}, {'id': 763, 'image_count': 17}, {'id': 764, 'image_count': 10}, {'id': 765, 'image_count': 17}, {'id': 766, 'image_count': 489}, {'id': 767, 'image_count': 47}, {'id': 768, 'image_count': 93}, {'id': 769, 'image_count': 1}, {'id': 770, 'image_count': 12}, {'id': 771, 'image_count': 228}, {'id': 772, 'image_count': 5}, {'id': 773, 'image_count': 76}, {'id': 774, 'image_count': 71}, {'id': 775, 'image_count': 30}, {'id': 776, 'image_count': 109}, {'id': 777, 'image_count': 14}, {'id': 778, 'image_count': 1}, {'id': 779, 'image_count': 8}, {'id': 780, 'image_count': 26}, {'id': 781, 'image_count': 339}, {'id': 782, 'image_count': 153}, {'id': 783, 'image_count': 2}, {'id': 784, 'image_count': 3}, {'id': 785, 'image_count': 8}, {'id': 786, 'image_count': 47}, {'id': 787, 'image_count': 8}, {'id': 788, 'image_count': 6}, {'id': 789, 'image_count': 116}, {'id': 790, 'image_count': 69}, {'id': 791, 'image_count': 13}, {'id': 792, 'image_count': 6}, {'id': 793, 'image_count': 1928}, {'id': 794, 'image_count': 79}, {'id': 795, 'image_count': 14}, {'id': 796, 'image_count': 7}, {'id': 797, 'image_count': 20}, {'id': 798, 'image_count': 114}, {'id': 799, 'image_count': 221}, {'id': 800, 'image_count': 502}, {'id': 801, 'image_count': 62}, {'id': 802, 'image_count': 87}, {'id': 803, 'image_count': 4}, {'id': 804, 'image_count': 1912}, {'id': 805, 'image_count': 7}, {'id': 806, 'image_count': 186}, {'id': 807, 'image_count': 18}, {'id': 808, 'image_count': 4}, {'id': 809, 'image_count': 3}, {'id': 810, 'image_count': 7}, {'id': 811, 'image_count': 1413}, {'id': 812, 'image_count': 7}, {'id': 813, 'image_count': 12}, {'id': 814, 'image_count': 248}, {'id': 815, 'image_count': 4}, {'id': 816, 'image_count': 1881}, {'id': 817, 'image_count': 529}, {'id': 818, 'image_count': 1932}, {'id': 819, 'image_count': 50}, {'id': 820, 'image_count': 3}, {'id': 821, 'image_count': 28}, {'id': 822, 'image_count': 10}, {'id': 823, 'image_count': 5}, {'id': 824, 'image_count': 5}, {'id': 825, 'image_count': 18}, {'id': 826, 'image_count': 14}, {'id': 827, 'image_count': 1890}, {'id': 828, 'image_count': 660}, {'id': 829, 'image_count': 8}, {'id': 830, 'image_count': 25}, {'id': 831, 'image_count': 10}, {'id': 832, 'image_count': 218}, {'id': 833, 'image_count': 36}, {'id': 834, 'image_count': 16}, {'id': 835, 'image_count': 808}, {'id': 836, 'image_count': 479}, {'id': 837, 'image_count': 1404}, {'id': 838, 'image_count': 307}, {'id': 839, 'image_count': 57}, {'id': 840, 'image_count': 28}, {'id': 841, 'image_count': 80}, {'id': 842, 'image_count': 11}, {'id': 843, 'image_count': 92}, {'id': 844, 'image_count': 20}, {'id': 845, 'image_count': 194}, {'id': 846, 'image_count': 23}, {'id': 847, 'image_count': 52}, {'id': 848, 'image_count': 673}, {'id': 849, 'image_count': 2}, {'id': 850, 'image_count': 2}, {'id': 851, 'image_count': 1}, {'id': 852, 'image_count': 2}, {'id': 853, 'image_count': 8}, {'id': 854, 'image_count': 80}, {'id': 855, 'image_count': 3}, {'id': 856, 'image_count': 3}, {'id': 857, 'image_count': 15}, {'id': 858, 'image_count': 2}, {'id': 859, 'image_count': 10}, {'id': 860, 'image_count': 386}, {'id': 861, 'image_count': 65}, {'id': 862, 'image_count': 3}, {'id': 863, 'image_count': 35}, {'id': 864, 'image_count': 5}, {'id': 865, 'image_count': 180}, {'id': 866, 'image_count': 99}, {'id': 867, 'image_count': 49}, {'id': 868, 'image_count': 28}, {'id': 869, 'image_count': 1}, {'id': 870, 'image_count': 52}, {'id': 871, 'image_count': 36}, {'id': 872, 'image_count': 70}, {'id': 873, 'image_count': 6}, {'id': 874, 'image_count': 29}, {'id': 875, 'image_count': 24}, {'id': 876, 'image_count': 1115}, {'id': 877, 'image_count': 61}, {'id': 878, 'image_count': 18}, {'id': 879, 'image_count': 18}, {'id': 880, 'image_count': 665}, {'id': 881, 'image_count': 1096}, {'id': 882, 'image_count': 29}, {'id': 883, 'image_count': 8}, {'id': 884, 'image_count': 14}, {'id': 885, 'image_count': 1622}, {'id': 886, 'image_count': 2}, {'id': 887, 'image_count': 3}, {'id': 888, 'image_count': 32}, {'id': 889, 'image_count': 55}, {'id': 890, 'image_count': 1}, {'id': 891, 'image_count': 10}, {'id': 892, 'image_count': 10}, {'id': 893, 'image_count': 47}, {'id': 894, 'image_count': 3}, {'id': 895, 'image_count': 29}, {'id': 896, 'image_count': 342}, {'id': 897, 'image_count': 25}, {'id': 898, 'image_count': 1469}, {'id': 899, 'image_count': 521}, {'id': 900, 'image_count': 347}, {'id': 901, 'image_count': 35}, {'id': 902, 'image_count': 7}, {'id': 903, 'image_count': 207}, {'id': 904, 'image_count': 108}, {'id': 905, 'image_count': 2}, {'id': 906, 'image_count': 34}, {'id': 907, 'image_count': 12}, {'id': 908, 'image_count': 10}, {'id': 909, 'image_count': 13}, {'id': 910, 'image_count': 361}, {'id': 911, 'image_count': 1023}, {'id': 912, 'image_count': 782}, {'id': 913, 'image_count': 2}, {'id': 914, 'image_count': 5}, {'id': 915, 'image_count': 247}, {'id': 916, 'image_count': 221}, {'id': 917, 'image_count': 4}, {'id': 918, 'image_count': 8}, {'id': 919, 'image_count': 158}, {'id': 920, 'image_count': 3}, {'id': 921, 'image_count': 752}, {'id': 922, 'image_count': 64}, {'id': 923, 'image_count': 707}, {'id': 924, 'image_count': 143}, {'id': 925, 'image_count': 1}, {'id': 926, 'image_count': 49}, {'id': 927, 'image_count': 126}, {'id': 928, 'image_count': 76}, {'id': 929, 'image_count': 11}, {'id': 930, 'image_count': 11}, {'id': 931, 'image_count': 4}, {'id': 932, 'image_count': 39}, {'id': 933, 'image_count': 11}, {'id': 934, 'image_count': 13}, {'id': 935, 'image_count': 91}, {'id': 936, 'image_count': 14}, {'id': 937, 'image_count': 5}, {'id': 938, 'image_count': 3}, {'id': 939, 'image_count': 10}, {'id': 940, 'image_count': 18}, {'id': 941, 'image_count': 9}, {'id': 942, 'image_count': 6}, {'id': 943, 'image_count': 951}, {'id': 944, 'image_count': 2}, {'id': 945, 'image_count': 1}, {'id': 946, 'image_count': 19}, {'id': 947, 'image_count': 1942}, {'id': 948, 'image_count': 1916}, {'id': 949, 'image_count': 139}, {'id': 950, 'image_count': 43}, {'id': 951, 'image_count': 1969}, {'id': 952, 'image_count': 5}, {'id': 953, 'image_count': 134}, {'id': 954, 'image_count': 74}, {'id': 955, 'image_count': 381}, {'id': 956, 'image_count': 1}, {'id': 957, 'image_count': 381}, {'id': 958, 'image_count': 6}, {'id': 959, 'image_count': 1826}, {'id': 960, 'image_count': 28}, {'id': 961, 'image_count': 1635}, {'id': 962, 'image_count': 1967}, {'id': 963, 'image_count': 16}, {'id': 964, 'image_count': 1926}, {'id': 965, 'image_count': 1789}, {'id': 966, 'image_count': 401}, {'id': 967, 'image_count': 1968}, {'id': 968, 'image_count': 1167}, {'id': 969, 'image_count': 1}, {'id': 970, 'image_count': 56}, {'id': 971, 'image_count': 17}, {'id': 972, 'image_count': 1}, {'id': 973, 'image_count': 58}, {'id': 974, 'image_count': 9}, {'id': 975, 'image_count': 8}, {'id': 976, 'image_count': 1124}, {'id': 977, 'image_count': 31}, {'id': 978, 'image_count': 16}, {'id': 979, 'image_count': 491}, {'id': 980, 'image_count': 432}, {'id': 981, 'image_count': 1945}, {'id': 982, 'image_count': 1899}, {'id': 983, 'image_count': 5}, {'id': 984, 'image_count': 28}, {'id': 985, 'image_count': 7}, {'id': 986, 'image_count': 146}, {'id': 987, 'image_count': 1}, {'id': 988, 'image_count': 25}, {'id': 989, 'image_count': 22}, {'id': 990, 'image_count': 1}, {'id': 991, 'image_count': 10}, {'id': 992, 'image_count': 9}, {'id': 993, 'image_count': 308}, {'id': 994, 'image_count': 4}, {'id': 995, 'image_count': 1969}, {'id': 996, 'image_count': 45}, {'id': 997, 'image_count': 12}, {'id': 998, 'image_count': 1}, {'id': 999, 'image_count': 85}, {'id': 1000, 'image_count': 1127}, {'id': 1001, 'image_count': 11}, {'id': 1002, 'image_count': 60}, {'id': 1003, 'image_count': 1}, {'id': 1004, 'image_count': 16}, {'id': 1005, 'image_count': 1}, {'id': 1006, 'image_count': 65}, {'id': 1007, 'image_count': 13}, {'id': 1008, 'image_count': 655}, {'id': 1009, 'image_count': 51}, {'id': 1010, 'image_count': 1}, {'id': 1011, 'image_count': 673}, {'id': 1012, 'image_count': 5}, {'id': 1013, 'image_count': 36}, {'id': 1014, 'image_count': 54}, {'id': 1015, 'image_count': 5}, {'id': 1016, 'image_count': 8}, {'id': 1017, 'image_count': 305}, {'id': 1018, 'image_count': 297}, {'id': 1019, 'image_count': 1053}, {'id': 1020, 'image_count': 223}, {'id': 1021, 'image_count': 1037}, {'id': 1022, 'image_count': 63}, {'id': 1023, 'image_count': 1881}, {'id': 1024, 'image_count': 507}, {'id': 1025, 'image_count': 333}, {'id': 1026, 'image_count': 1911}, {'id': 1027, 'image_count': 1765}, {'id': 1028, 'image_count': 1}, {'id': 1029, 'image_count': 5}, {'id': 1030, 'image_count': 1}, {'id': 1031, 'image_count': 9}, {'id': 1032, 'image_count': 2}, {'id': 1033, 'image_count': 151}, {'id': 1034, 'image_count': 82}, {'id': 1035, 'image_count': 1931}, {'id': 1036, 'image_count': 41}, {'id': 1037, 'image_count': 1895}, {'id': 1038, 'image_count': 24}, {'id': 1039, 'image_count': 22}, {'id': 1040, 'image_count': 35}, {'id': 1041, 'image_count': 69}, {'id': 1042, 'image_count': 962}, {'id': 1043, 'image_count': 588}, {'id': 1044, 'image_count': 21}, {'id': 1045, 'image_count': 825}, {'id': 1046, 'image_count': 52}, {'id': 1047, 'image_count': 5}, {'id': 1048, 'image_count': 5}, {'id': 1049, 'image_count': 5}, {'id': 1050, 'image_count': 1860}, {'id': 1051, 'image_count': 56}, {'id': 1052, 'image_count': 1582}, {'id': 1053, 'image_count': 7}, {'id': 1054, 'image_count': 2}, {'id': 1055, 'image_count': 1562}, {'id': 1056, 'image_count': 1885}, {'id': 1057, 'image_count': 1}, {'id': 1058, 'image_count': 5}, {'id': 1059, 'image_count': 137}, {'id': 1060, 'image_count': 1094}, {'id': 1061, 'image_count': 134}, {'id': 1062, 'image_count': 29}, {'id': 1063, 'image_count': 22}, {'id': 1064, 'image_count': 522}, {'id': 1065, 'image_count': 50}, {'id': 1066, 'image_count': 68}, {'id': 1067, 'image_count': 16}, {'id': 1068, 'image_count': 40}, {'id': 1069, 'image_count': 35}, {'id': 1070, 'image_count': 135}, {'id': 1071, 'image_count': 1413}, {'id': 1072, 'image_count': 772}, {'id': 1073, 'image_count': 50}, {'id': 1074, 'image_count': 1015}, {'id': 1075, 'image_count': 1}, {'id': 1076, 'image_count': 65}, {'id': 1077, 'image_count': 1900}, {'id': 1078, 'image_count': 1302}, {'id': 1079, 'image_count': 1977}, {'id': 1080, 'image_count': 2}, {'id': 1081, 'image_count': 29}, {'id': 1082, 'image_count': 36}, {'id': 1083, 'image_count': 138}, {'id': 1084, 'image_count': 4}, {'id': 1085, 'image_count': 67}, {'id': 1086, 'image_count': 26}, {'id': 1087, 'image_count': 25}, {'id': 1088, 'image_count': 33}, {'id': 1089, 'image_count': 37}, {'id': 1090, 'image_count': 50}, {'id': 1091, 'image_count': 270}, {'id': 1092, 'image_count': 12}, {'id': 1093, 'image_count': 316}, {'id': 1094, 'image_count': 41}, {'id': 1095, 'image_count': 224}, {'id': 1096, 'image_count': 105}, {'id': 1097, 'image_count': 1925}, {'id': 1098, 'image_count': 1021}, {'id': 1099, 'image_count': 1213}, {'id': 1100, 'image_count': 172}, {'id': 1101, 'image_count': 28}, {'id': 1102, 'image_count': 745}, {'id': 1103, 'image_count': 187}, {'id': 1104, 'image_count': 147}, {'id': 1105, 'image_count': 136}, {'id': 1106, 'image_count': 34}, {'id': 1107, 'image_count': 41}, {'id': 1108, 'image_count': 636}, {'id': 1109, 'image_count': 570}, {'id': 1110, 'image_count': 1149}, {'id': 1111, 'image_count': 61}, {'id': 1112, 'image_count': 1890}, {'id': 1113, 'image_count': 18}, {'id': 1114, 'image_count': 143}, {'id': 1115, 'image_count': 1517}, {'id': 1116, 'image_count': 7}, {'id': 1117, 'image_count': 943}, {'id': 1118, 'image_count': 6}, {'id': 1119, 'image_count': 1}, {'id': 1120, 'image_count': 11}, {'id': 1121, 'image_count': 101}, {'id': 1122, 'image_count': 1909}, {'id': 1123, 'image_count': 800}, {'id': 1124, 'image_count': 1}, {'id': 1125, 'image_count': 44}, {'id': 1126, 'image_count': 3}, {'id': 1127, 'image_count': 44}, {'id': 1128, 'image_count': 31}, {'id': 1129, 'image_count': 7}, {'id': 1130, 'image_count': 20}, {'id': 1131, 'image_count': 11}, {'id': 1132, 'image_count': 13}, {'id': 1133, 'image_count': 1924}, {'id': 1134, 'image_count': 113}, {'id': 1135, 'image_count': 2}, {'id': 1136, 'image_count': 139}, {'id': 1137, 'image_count': 12}, {'id': 1138, 'image_count': 37}, {'id': 1139, 'image_count': 1866}, {'id': 1140, 'image_count': 47}, {'id': 1141, 'image_count': 1468}, {'id': 1142, 'image_count': 729}, {'id': 1143, 'image_count': 24}, {'id': 1144, 'image_count': 1}, {'id': 1145, 'image_count': 10}, {'id': 1146, 'image_count': 3}, {'id': 1147, 'image_count': 14}, {'id': 1148, 'image_count': 4}, {'id': 1149, 'image_count': 29}, {'id': 1150, 'image_count': 4}, {'id': 1151, 'image_count': 70}, {'id': 1152, 'image_count': 46}, {'id': 1153, 'image_count': 14}, {'id': 1154, 'image_count': 48}, {'id': 1155, 'image_count': 1855}, {'id': 1156, 'image_count': 113}, {'id': 1157, 'image_count': 1}, {'id': 1158, 'image_count': 1}, {'id': 1159, 'image_count': 10}, {'id': 1160, 'image_count': 54}, {'id': 1161, 'image_count': 1923}, {'id': 1162, 'image_count': 630}, {'id': 1163, 'image_count': 31}, {'id': 1164, 'image_count': 69}, {'id': 1165, 'image_count': 7}, {'id': 1166, 'image_count': 11}, {'id': 1167, 'image_count': 1}, {'id': 1168, 'image_count': 30}, {'id': 1169, 'image_count': 50}, {'id': 1170, 'image_count': 45}, {'id': 1171, 'image_count': 28}, {'id': 1172, 'image_count': 114}, {'id': 1173, 'image_count': 193}, {'id': 1174, 'image_count': 21}, {'id': 1175, 'image_count': 91}, {'id': 1176, 'image_count': 31}, {'id': 1177, 'image_count': 1469}, {'id': 1178, 'image_count': 1924}, {'id': 1179, 'image_count': 87}, {'id': 1180, 'image_count': 77}, {'id': 1181, 'image_count': 11}, {'id': 1182, 'image_count': 47}, {'id': 1183, 'image_count': 21}, {'id': 1184, 'image_count': 47}, {'id': 1185, 'image_count': 70}, {'id': 1186, 'image_count': 1838}, {'id': 1187, 'image_count': 19}, {'id': 1188, 'image_count': 531}, {'id': 1189, 'image_count': 11}, {'id': 1190, 'image_count': 941}, {'id': 1191, 'image_count': 113}, {'id': 1192, 'image_count': 26}, {'id': 1193, 'image_count': 5}, {'id': 1194, 'image_count': 56}, {'id': 1195, 'image_count': 73}, {'id': 1196, 'image_count': 32}, {'id': 1197, 'image_count': 128}, {'id': 1198, 'image_count': 623}, {'id': 1199, 'image_count': 12}, {'id': 1200, 'image_count': 52}, {'id': 1201, 'image_count': 11}, {'id': 1202, 'image_count': 1674}, {'id': 1203, 'image_count': 81}] # noqa +# fmt: on diff --git a/detectron2/detectron2/data/datasets/pascal_voc.py b/detectron2/detectron2/data/datasets/pascal_voc.py new file mode 100755 index 0000000..dbbf82c --- /dev/null +++ b/detectron2/detectron2/data/datasets/pascal_voc.py @@ -0,0 +1,82 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import numpy as np +import os +import xml.etree.ElementTree as ET +from typing import List, Tuple, Union + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.structures import BoxMode +from detectron2.utils.file_io import PathManager + +__all__ = ["load_voc_instances", "register_pascal_voc"] + + +# fmt: off +CLASS_NAMES = ( + "aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", + "chair", "cow", "diningtable", "dog", "horse", "motorbike", "person", + "pottedplant", "sheep", "sofa", "train", "tvmonitor" +) +# fmt: on + + +def load_voc_instances(dirname: str, split: str, class_names: Union[List[str], Tuple[str, ...]]): + """ + Load Pascal VOC detection annotations to Detectron2 format. + + Args: + dirname: Contain "Annotations", "ImageSets", "JPEGImages" + split (str): one of "train", "test", "val", "trainval" + class_names: list or tuple of class names + """ + with PathManager.open(os.path.join(dirname, "ImageSets", "Main", split + ".txt")) as f: + fileids = np.loadtxt(f, dtype=np.str) + + # Needs to read many small annotation files. Makes sense at local + annotation_dirname = PathManager.get_local_path(os.path.join(dirname, "Annotations/")) + dicts = [] + for fileid in fileids: + anno_file = os.path.join(annotation_dirname, fileid + ".xml") + jpeg_file = os.path.join(dirname, "JPEGImages", fileid + ".jpg") + + with PathManager.open(anno_file) as f: + tree = ET.parse(f) + + r = { + "file_name": jpeg_file, + "image_id": fileid, + "height": int(tree.findall("./size/height")[0].text), + "width": int(tree.findall("./size/width")[0].text), + } + instances = [] + + for obj in tree.findall("object"): + cls = obj.find("name").text + # We include "difficult" samples in training. + # Based on limited experiments, they don't hurt accuracy. + # difficult = int(obj.find("difficult").text) + # if difficult == 1: + # continue + bbox = obj.find("bndbox") + bbox = [float(bbox.find(x).text) for x in ["xmin", "ymin", "xmax", "ymax"]] + # Original annotations are integers in the range [1, W or H] + # Assuming they mean 1-based pixel indices (inclusive), + # a box with annotation (xmin=1, xmax=W) covers the whole image. + # In coordinate space this is represented by (xmin=0, xmax=W) + bbox[0] -= 1.0 + bbox[1] -= 1.0 + instances.append( + {"category_id": class_names.index(cls), "bbox": bbox, "bbox_mode": BoxMode.XYXY_ABS} + ) + r["annotations"] = instances + dicts.append(r) + return dicts + + +def register_pascal_voc(name, dirname, split, year, class_names=CLASS_NAMES): + DatasetCatalog.register(name, lambda: load_voc_instances(dirname, split, class_names)) + MetadataCatalog.get(name).set( + thing_classes=list(class_names), dirname=dirname, year=year, split=split + ) diff --git a/detectron2/detectron2/data/datasets/register_coco.py b/detectron2/detectron2/data/datasets/register_coco.py new file mode 100755 index 0000000..e564438 --- /dev/null +++ b/detectron2/detectron2/data/datasets/register_coco.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .coco import register_coco_instances # noqa +from .coco_panoptic import register_coco_panoptic_separated # noqa diff --git a/detectron2/detectron2/data/detection_utils.py b/detectron2/detectron2/data/detection_utils.py new file mode 100755 index 0000000..ada19bd --- /dev/null +++ b/detectron2/detectron2/data/detection_utils.py @@ -0,0 +1,659 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +Common data processing utilities that are used in a +typical object detection data pipeline. +""" +import logging +import numpy as np +from typing import List, Union +import pycocotools.mask as mask_util +import torch +from PIL import Image + +from detectron2.structures import ( + BitMasks, + Boxes, + BoxMode, + Instances, + Keypoints, + PolygonMasks, + RotatedBoxes, + polygons_to_bitmask, +) +from detectron2.utils.file_io import PathManager + +from . import transforms as T +from .catalog import MetadataCatalog + +__all__ = [ + "SizeMismatchError", + "convert_image_to_rgb", + "check_image_size", + "transform_proposals", + "transform_instance_annotations", + "annotations_to_instances", + "annotations_to_instances_rotated", + "build_augmentation", + "build_transform_gen", + "create_keypoint_hflip_indices", + "filter_empty_instances", + "read_image", +] + + +class SizeMismatchError(ValueError): + """ + When loaded image has difference width/height compared with annotation. + """ + + +# https://en.wikipedia.org/wiki/YUV#SDTV_with_BT.601 +_M_RGB2YUV = [[0.299, 0.587, 0.114], [-0.14713, -0.28886, 0.436], [0.615, -0.51499, -0.10001]] +_M_YUV2RGB = [[1.0, 0.0, 1.13983], [1.0, -0.39465, -0.58060], [1.0, 2.03211, 0.0]] + +# https://www.exiv2.org/tags.html +_EXIF_ORIENT = 274 # exif 'Orientation' tag + + +def convert_PIL_to_numpy(image, format): + """ + Convert PIL image to numpy array of target format. + + Args: + image (PIL.Image): a PIL image + format (str): the format of output image + + Returns: + (np.ndarray): also see `read_image` + """ + if format is not None: + # PIL only supports RGB, so convert to RGB and flip channels over below + conversion_format = format + if format in ["BGR", "YUV-BT.601"]: + conversion_format = "RGB" + image = image.convert(conversion_format) + image = np.asarray(image) + # PIL squeezes out the channel dimension for "L", so make it HWC + if format == "L": + image = np.expand_dims(image, -1) + + # handle formats not supported by PIL + elif format == "BGR": + # flip channels if needed + image = image[:, :, ::-1] + elif format == "YUV-BT.601": + image = image / 255.0 + image = np.dot(image, np.array(_M_RGB2YUV).T) + + return image + + +def convert_image_to_rgb(image, format): + """ + Convert an image from given format to RGB. + + Args: + image (np.ndarray or Tensor): an HWC image + format (str): the format of input image, also see `read_image` + + Returns: + (np.ndarray): (H,W,3) RGB image in 0-255 range, can be either float or uint8 + """ + if isinstance(image, torch.Tensor): + image = image.cpu().numpy() + if format == "BGR": + image = image[:, :, [2, 1, 0]] + elif format == "YUV-BT.601": + image = np.dot(image, np.array(_M_YUV2RGB).T) + image = image * 255.0 + else: + if format == "L": + image = image[:, :, 0] + image = image.astype(np.uint8) + image = np.asarray(Image.fromarray(image, mode=format).convert("RGB")) + return image + + +def _apply_exif_orientation(image): + """ + Applies the exif orientation correctly. + + This code exists per the bug: + https://github.com/python-pillow/Pillow/issues/3973 + with the function `ImageOps.exif_transpose`. The Pillow source raises errors with + various methods, especially `tobytes` + + Function based on: + https://github.com/wkentaro/labelme/blob/v4.5.4/labelme/utils/image.py#L59 + https://github.com/python-pillow/Pillow/blob/7.1.2/src/PIL/ImageOps.py#L527 + + Args: + image (PIL.Image): a PIL image + + Returns: + (PIL.Image): the PIL image with exif orientation applied, if applicable + """ + if not hasattr(image, "getexif"): + return image + + try: + exif = image.getexif() + except Exception: # https://github.com/facebookresearch/detectron2/issues/1885 + exif = None + + if exif is None: + return image + + orientation = exif.get(_EXIF_ORIENT) + + method = { + 2: Image.FLIP_LEFT_RIGHT, + 3: Image.ROTATE_180, + 4: Image.FLIP_TOP_BOTTOM, + 5: Image.TRANSPOSE, + 6: Image.ROTATE_270, + 7: Image.TRANSVERSE, + 8: Image.ROTATE_90, + }.get(orientation) + + if method is not None: + return image.transpose(method) + return image + + +def read_image(file_name, format=None): + """ + Read an image into the given format. + Will apply rotation and flipping if the image has such exif information. + + Args: + file_name (str): image file path + format (str): one of the supported image modes in PIL, or "BGR" or "YUV-BT.601". + + Returns: + image (np.ndarray): + an HWC image in the given format, which is 0-255, uint8 for + supported image modes in PIL or "BGR"; float (0-1 for Y) for YUV-BT.601. + """ + with PathManager.open(file_name, "rb") as f: + image = Image.open(f) + + # work around this bug: https://github.com/python-pillow/Pillow/issues/3973 + image = _apply_exif_orientation(image) + return convert_PIL_to_numpy(image, format) + + +def check_image_size(dataset_dict, image): + """ + Raise an error if the image does not match the size specified in the dict. + """ + if "width" in dataset_dict or "height" in dataset_dict: + image_wh = (image.shape[1], image.shape[0]) + expected_wh = (dataset_dict["width"], dataset_dict["height"]) + if not image_wh == expected_wh: + raise SizeMismatchError( + "Mismatched image shape{}, got {}, expect {}.".format( + " for image " + dataset_dict["file_name"] + if "file_name" in dataset_dict + else "", + image_wh, + expected_wh, + ) + + " Please check the width/height in your annotation." + ) + + # To ensure bbox always remap to original image size + if "width" not in dataset_dict: + dataset_dict["width"] = image.shape[1] + if "height" not in dataset_dict: + dataset_dict["height"] = image.shape[0] + + +def transform_proposals(dataset_dict, image_shape, transforms, *, proposal_topk, min_box_size=0): + """ + Apply transformations to the proposals in dataset_dict, if any. + + Args: + dataset_dict (dict): a dict read from the dataset, possibly + contains fields "proposal_boxes", "proposal_objectness_logits", "proposal_bbox_mode" + image_shape (tuple): height, width + transforms (TransformList): + proposal_topk (int): only keep top-K scoring proposals + min_box_size (int): proposals with either side smaller than this + threshold are removed + + The input dict is modified in-place, with abovementioned keys removed. A new + key "proposals" will be added. Its value is an `Instances` + object which contains the transformed proposals in its field + "proposal_boxes" and "objectness_logits". + """ + if "proposal_boxes" in dataset_dict: + # Transform proposal boxes + boxes = transforms.apply_box( + BoxMode.convert( + dataset_dict.pop("proposal_boxes"), + dataset_dict.pop("proposal_bbox_mode"), + BoxMode.XYXY_ABS, + ) + ) + boxes = Boxes(boxes) + objectness_logits = torch.as_tensor( + dataset_dict.pop("proposal_objectness_logits").astype("float32") + ) + + boxes.clip(image_shape) + keep = boxes.nonempty(threshold=min_box_size) + boxes = boxes[keep] + objectness_logits = objectness_logits[keep] + + proposals = Instances(image_shape) + proposals.proposal_boxes = boxes[:proposal_topk] + proposals.objectness_logits = objectness_logits[:proposal_topk] + dataset_dict["proposals"] = proposals + + +def get_bbox(annotation): + """ + Get bbox from data + Args: + annotation (dict): dict of instance annotations for a single instance. + Returns: + bbox (ndarray): x1, y1, x2, y2 coordinates + """ + # bbox is 1d (per-instance bounding box) + bbox = BoxMode.convert(annotation["bbox"], annotation["bbox_mode"], BoxMode.XYXY_ABS) + return bbox + + +def transform_instance_annotations( + annotation, transforms, image_size, *, keypoint_hflip_indices=None +): + """ + Apply transforms to box, segmentation and keypoints annotations of a single instance. + + It will use `transforms.apply_box` for the box, and + `transforms.apply_coords` for segmentation polygons & keypoints. + If you need anything more specially designed for each data structure, + you'll need to implement your own version of this function or the transforms. + + Args: + annotation (dict): dict of instance annotations for a single instance. + It will be modified in-place. + transforms (TransformList or list[Transform]): + image_size (tuple): the height, width of the transformed image + keypoint_hflip_indices (ndarray[int]): see `create_keypoint_hflip_indices`. + + Returns: + dict: + the same input dict with fields "bbox", "segmentation", "keypoints" + transformed according to `transforms`. + The "bbox_mode" field will be set to XYXY_ABS. + """ + if isinstance(transforms, (tuple, list)): + transforms = T.TransformList(transforms) + # bbox is 1d (per-instance bounding box) + bbox = BoxMode.convert(annotation["bbox"], annotation["bbox_mode"], BoxMode.XYXY_ABS) + # clip transformed bbox to image size + bbox = transforms.apply_box(np.array([bbox]))[0].clip(min=0) + annotation["bbox"] = np.minimum(bbox, list(image_size + image_size)[::-1]) + annotation["bbox_mode"] = BoxMode.XYXY_ABS + + if "segmentation" in annotation: + # each instance contains 1 or more polygons + segm = annotation["segmentation"] + if isinstance(segm, list): + # polygons + polygons = [np.asarray(p).reshape(-1, 2) for p in segm] + annotation["segmentation"] = [ + p.reshape(-1) for p in transforms.apply_polygons(polygons) + ] + elif isinstance(segm, dict): + # RLE + mask = mask_util.decode(segm) + mask = transforms.apply_segmentation(mask) + assert tuple(mask.shape[:2]) == image_size + annotation["segmentation"] = mask + else: + raise ValueError( + "Cannot transform segmentation of type '{}'!" + "Supported types are: polygons as list[list[float] or ndarray]," + " COCO-style RLE as a dict.".format(type(segm)) + ) + + if "keypoints" in annotation: + keypoints = transform_keypoint_annotations( + annotation["keypoints"], transforms, image_size, keypoint_hflip_indices + ) + annotation["keypoints"] = keypoints + + return annotation + + +def transform_keypoint_annotations(keypoints, transforms, image_size, keypoint_hflip_indices=None): + """ + Transform keypoint annotations of an image. + If a keypoint is transformed out of image boundary, it will be marked "unlabeled" (visibility=0) + + Args: + keypoints (list[float]): Nx3 float in Detectron2's Dataset format. + Each point is represented by (x, y, visibility). + transforms (TransformList): + image_size (tuple): the height, width of the transformed image + keypoint_hflip_indices (ndarray[int]): see `create_keypoint_hflip_indices`. + When `transforms` includes horizontal flip, will use the index + mapping to flip keypoints. + """ + # (N*3,) -> (N, 3) + keypoints = np.asarray(keypoints, dtype="float64").reshape(-1, 3) + keypoints_xy = transforms.apply_coords(keypoints[:, :2]) + + # Set all out-of-boundary points to "unlabeled" + inside = (keypoints_xy >= np.array([0, 0])) & (keypoints_xy <= np.array(image_size[::-1])) + inside = inside.all(axis=1) + keypoints[:, :2] = keypoints_xy + keypoints[:, 2][~inside] = 0 + + # This assumes that HorizFlipTransform is the only one that does flip + do_hflip = sum(isinstance(t, T.HFlipTransform) for t in transforms.transforms) % 2 == 1 + + # Alternative way: check if probe points was horizontally flipped. + # probe = np.asarray([[0.0, 0.0], [image_width, 0.0]]) + # probe_aug = transforms.apply_coords(probe.copy()) + # do_hflip = np.sign(probe[1][0] - probe[0][0]) != np.sign(probe_aug[1][0] - probe_aug[0][0]) # noqa + + # If flipped, swap each keypoint with its opposite-handed equivalent + if do_hflip: + if keypoint_hflip_indices is None: + raise ValueError("Cannot flip keypoints without providing flip indices!") + if len(keypoints) != len(keypoint_hflip_indices): + raise ValueError( + "Keypoint data has {} points, but metadata " + "contains {} points!".format(len(keypoints), len(keypoint_hflip_indices)) + ) + keypoints = keypoints[np.asarray(keypoint_hflip_indices, dtype=np.int32), :] + + # Maintain COCO convention that if visibility == 0 (unlabeled), then x, y = 0 + keypoints[keypoints[:, 2] == 0] = 0 + return keypoints + + +def annotations_to_instances(annos, image_size, mask_format="polygon"): + """ + Create an :class:`Instances` object used by the models, + from instance annotations in the dataset dict. + + Args: + annos (list[dict]): a list of instance annotations in one image, each + element for one instance. + image_size (tuple): height, width + + Returns: + Instances: + It will contain fields "gt_boxes", "gt_classes", + "gt_masks", "gt_keypoints", if they can be obtained from `annos`. + This is the format that builtin models expect. + """ + boxes = ( + np.stack( + [BoxMode.convert(obj["bbox"], obj["bbox_mode"], BoxMode.XYXY_ABS) for obj in annos] + ) + if len(annos) + else np.zeros((0, 4)) + ) + target = Instances(image_size) + target.gt_boxes = Boxes(boxes) + + classes = [int(obj["category_id"]) for obj in annos] + classes = torch.tensor(classes, dtype=torch.int64) + target.gt_classes = classes + + if len(annos) and "segmentation" in annos[0]: + segms = [obj["segmentation"] for obj in annos] + if mask_format == "polygon": + try: + masks = PolygonMasks(segms) + except ValueError as e: + raise ValueError( + "Failed to use mask_format=='polygon' from the given annotations!" + ) from e + else: + assert mask_format == "bitmask", mask_format + masks = [] + for segm in segms: + if isinstance(segm, list): + # polygon + masks.append(polygons_to_bitmask(segm, *image_size)) + elif isinstance(segm, dict): + # COCO RLE + masks.append(mask_util.decode(segm)) + elif isinstance(segm, np.ndarray): + assert segm.ndim == 2, "Expect segmentation of 2 dimensions, got {}.".format( + segm.ndim + ) + # mask array + masks.append(segm) + else: + raise ValueError( + "Cannot convert segmentation of type '{}' to BitMasks!" + "Supported types are: polygons as list[list[float] or ndarray]," + " COCO-style RLE as a dict, or a binary segmentation mask " + " in a 2D numpy array of shape HxW.".format(type(segm)) + ) + # torch.from_numpy does not support array with negative stride. + masks = BitMasks( + torch.stack([torch.from_numpy(np.ascontiguousarray(x)) for x in masks]) + ) + target.gt_masks = masks + + if len(annos) and "keypoints" in annos[0]: + kpts = [obj.get("keypoints", []) for obj in annos] + target.gt_keypoints = Keypoints(kpts) + + return target + + +def annotations_to_instances_rotated(annos, image_size): + """ + Create an :class:`Instances` object used by the models, + from instance annotations in the dataset dict. + Compared to `annotations_to_instances`, this function is for rotated boxes only + + Args: + annos (list[dict]): a list of instance annotations in one image, each + element for one instance. + image_size (tuple): height, width + + Returns: + Instances: + Containing fields "gt_boxes", "gt_classes", + if they can be obtained from `annos`. + This is the format that builtin models expect. + """ + boxes = [obj["bbox"] for obj in annos] + target = Instances(image_size) + boxes = target.gt_boxes = RotatedBoxes(boxes) + boxes.clip(image_size) + + classes = [obj["category_id"] for obj in annos] + classes = torch.tensor(classes, dtype=torch.int64) + target.gt_classes = classes + + return target + + +def filter_empty_instances( + instances, by_box=True, by_mask=True, box_threshold=1e-5, return_mask=False +): + """ + Filter out empty instances in an `Instances` object. + + Args: + instances (Instances): + by_box (bool): whether to filter out instances with empty boxes + by_mask (bool): whether to filter out instances with empty masks + box_threshold (float): minimum width and height to be considered non-empty + return_mask (bool): whether to return boolean mask of filtered instances + + Returns: + Instances: the filtered instances. + tensor[bool], optional: boolean mask of filtered instances + """ + assert by_box or by_mask + r = [] + if by_box: + r.append(instances.gt_boxes.nonempty(threshold=box_threshold)) + if instances.has("gt_masks") and by_mask: + r.append(instances.gt_masks.nonempty()) + + # TODO: can also filter visible keypoints + + if not r: + return instances + m = r[0] + for x in r[1:]: + m = m & x + if return_mask: + return instances[m], m + return instances[m] + + +def create_keypoint_hflip_indices(dataset_names: Union[str, List[str]]) -> List[int]: + """ + Args: + dataset_names: list of dataset names + + Returns: + list[int]: a list of size=#keypoints, storing the + horizontally-flipped keypoint indices. + """ + if isinstance(dataset_names, str): + dataset_names = [dataset_names] + + check_metadata_consistency("keypoint_names", dataset_names) + check_metadata_consistency("keypoint_flip_map", dataset_names) + + meta = MetadataCatalog.get(dataset_names[0]) + names = meta.keypoint_names + # TODO flip -> hflip + flip_map = dict(meta.keypoint_flip_map) + flip_map.update({v: k for k, v in flip_map.items()}) + flipped_names = [i if i not in flip_map else flip_map[i] for i in names] + flip_indices = [names.index(i) for i in flipped_names] + return flip_indices + + +def get_fed_loss_cls_weights(dataset_names: Union[str, List[str]], freq_weight_power=1.0): + """ + Get frequency weight for each class sorted by class id. + We now calcualte freqency weight using image_count to the power freq_weight_power. + + Args: + dataset_names: list of dataset names + freq_weight_power: power value + """ + if isinstance(dataset_names, str): + dataset_names = [dataset_names] + + check_metadata_consistency("class_image_count", dataset_names) + + meta = MetadataCatalog.get(dataset_names[0]) + class_freq_meta = meta.class_image_count + class_freq = torch.tensor( + [c["image_count"] for c in sorted(class_freq_meta, key=lambda x: x["id"])] + ) + class_freq_weight = class_freq.float() ** freq_weight_power + return class_freq_weight + + +def gen_crop_transform_with_instance(crop_size, image_size, instance): + """ + Generate a CropTransform so that the cropping region contains + the center of the given instance. + + Args: + crop_size (tuple): h, w in pixels + image_size (tuple): h, w + instance (dict): an annotation dict of one instance, in Detectron2's + dataset format. + """ + crop_size = np.asarray(crop_size, dtype=np.int32) + bbox = BoxMode.convert(instance["bbox"], instance["bbox_mode"], BoxMode.XYXY_ABS) + center_yx = (bbox[1] + bbox[3]) * 0.5, (bbox[0] + bbox[2]) * 0.5 + assert ( + image_size[0] >= center_yx[0] and image_size[1] >= center_yx[1] + ), "The annotation bounding box is outside of the image!" + assert ( + image_size[0] >= crop_size[0] and image_size[1] >= crop_size[1] + ), "Crop size is larger than image size!" + + min_yx = np.maximum(np.floor(center_yx).astype(np.int32) - crop_size, 0) + max_yx = np.maximum(np.asarray(image_size, dtype=np.int32) - crop_size, 0) + max_yx = np.minimum(max_yx, np.ceil(center_yx).astype(np.int32)) + + y0 = np.random.randint(min_yx[0], max_yx[0] + 1) + x0 = np.random.randint(min_yx[1], max_yx[1] + 1) + return T.CropTransform(x0, y0, crop_size[1], crop_size[0]) + + +def check_metadata_consistency(key, dataset_names): + """ + Check that the datasets have consistent metadata. + + Args: + key (str): a metadata key + dataset_names (list[str]): a list of dataset names + + Raises: + AttributeError: if the key does not exist in the metadata + ValueError: if the given datasets do not have the same metadata values defined by key + """ + if len(dataset_names) == 0: + return + logger = logging.getLogger(__name__) + entries_per_dataset = [getattr(MetadataCatalog.get(d), key) for d in dataset_names] + for idx, entry in enumerate(entries_per_dataset): + if entry != entries_per_dataset[0]: + logger.error( + "Metadata '{}' for dataset '{}' is '{}'".format(key, dataset_names[idx], str(entry)) + ) + logger.error( + "Metadata '{}' for dataset '{}' is '{}'".format( + key, dataset_names[0], str(entries_per_dataset[0]) + ) + ) + raise ValueError("Datasets have different metadata '{}'!".format(key)) + + +def build_augmentation(cfg, is_train): + """ + Create a list of default :class:`Augmentation` from config. + Now it includes resizing and flipping. + + Returns: + list[Augmentation] + """ + if is_train: + min_size = cfg.INPUT.MIN_SIZE_TRAIN + max_size = cfg.INPUT.MAX_SIZE_TRAIN + sample_style = cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING + else: + min_size = cfg.INPUT.MIN_SIZE_TEST + max_size = cfg.INPUT.MAX_SIZE_TEST + sample_style = "choice" + augmentation = [T.ResizeShortestEdge(min_size, max_size, sample_style)] + if is_train and cfg.INPUT.RANDOM_FLIP != "none": + augmentation.append( + T.RandomFlip( + horizontal=cfg.INPUT.RANDOM_FLIP == "horizontal", + vertical=cfg.INPUT.RANDOM_FLIP == "vertical", + ) + ) + return augmentation + + +build_transform_gen = build_augmentation +""" +Alias for backward-compatibility. +""" diff --git a/detectron2/detectron2/data/samplers/__init__.py b/detectron2/detectron2/data/samplers/__init__.py new file mode 100755 index 0000000..85c9f1a --- /dev/null +++ b/detectron2/detectron2/data/samplers/__init__.py @@ -0,0 +1,17 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .distributed_sampler import ( + InferenceSampler, + RandomSubsetTrainingSampler, + RepeatFactorTrainingSampler, + TrainingSampler, +) + +from .grouped_batch_sampler import GroupedBatchSampler + +__all__ = [ + "GroupedBatchSampler", + "TrainingSampler", + "RandomSubsetTrainingSampler", + "InferenceSampler", + "RepeatFactorTrainingSampler", +] diff --git a/detectron2/detectron2/data/samplers/distributed_sampler.py b/detectron2/detectron2/data/samplers/distributed_sampler.py new file mode 100755 index 0000000..a098e6a --- /dev/null +++ b/detectron2/detectron2/data/samplers/distributed_sampler.py @@ -0,0 +1,278 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import logging +import math +from collections import defaultdict +from typing import Optional +import torch +from torch.utils.data.sampler import Sampler + +from detectron2.utils import comm + +logger = logging.getLogger(__name__) + + +class TrainingSampler(Sampler): + """ + In training, we only care about the "infinite stream" of training data. + So this sampler produces an infinite stream of indices and + all workers cooperate to correctly shuffle the indices and sample different indices. + + The samplers in each worker effectively produces `indices[worker_id::num_workers]` + where `indices` is an infinite stream of indices consisting of + `shuffle(range(size)) + shuffle(range(size)) + ...` (if shuffle is True) + or `range(size) + range(size) + ...` (if shuffle is False) + + Note that this sampler does not shard based on pytorch DataLoader worker id. + A sampler passed to pytorch DataLoader is used only with map-style dataset + and will not be executed inside workers. + But if this sampler is used in a way that it gets execute inside a dataloader + worker, then extra work needs to be done to shard its outputs based on worker id. + This is required so that workers don't produce identical data. + :class:`ToIterableDataset` implements this logic. + This note is true for all samplers in detectron2. + """ + + def __init__(self, size: int, shuffle: bool = True, seed: Optional[int] = None): + """ + Args: + size (int): the total number of data of the underlying dataset to sample from + shuffle (bool): whether to shuffle the indices or not + seed (int): the initial seed of the shuffle. Must be the same + across all workers. If None, will use a random seed shared + among workers (require synchronization among all workers). + """ + if not isinstance(size, int): + raise TypeError(f"TrainingSampler(size=) expects an int. Got type {type(size)}.") + if size <= 0: + raise ValueError(f"TrainingSampler(size=) expects a positive int. Got {size}.") + self._size = size + self._shuffle = shuffle + if seed is None: + seed = comm.shared_random_seed() + self._seed = int(seed) + + self._rank = comm.get_rank() + self._world_size = comm.get_world_size() + + def __iter__(self): + start = self._rank + yield from itertools.islice(self._infinite_indices(), start, None, self._world_size) + + def _infinite_indices(self): + g = torch.Generator() + g.manual_seed(self._seed) + while True: + if self._shuffle: + yield from torch.randperm(self._size, generator=g).tolist() + else: + yield from torch.arange(self._size).tolist() + + +class RandomSubsetTrainingSampler(TrainingSampler): + """ + Similar to TrainingSampler, but only sample a random subset of indices. + This is useful when you want to estimate the accuracy vs data-number curves by + training the model with different subset_ratio. + """ + + def __init__( + self, + size: int, + subset_ratio: float, + shuffle: bool = True, + seed_shuffle: Optional[int] = None, + seed_subset: Optional[int] = None, + ): + """ + Args: + size (int): the total number of data of the underlying dataset to sample from + subset_ratio (float): the ratio of subset data to sample from the underlying dataset + shuffle (bool): whether to shuffle the indices or not + seed_shuffle (int): the initial seed of the shuffle. Must be the same + across all workers. If None, will use a random seed shared + among workers (require synchronization among all workers). + seed_subset (int): the seed to randomize the subset to be sampled. + Must be the same across all workers. If None, will use a random seed shared + among workers (require synchronization among all workers). + """ + super().__init__(size=size, shuffle=shuffle, seed=seed_shuffle) + + assert 0.0 < subset_ratio <= 1.0 + self._size_subset = int(size * subset_ratio) + assert self._size_subset > 0 + if seed_subset is None: + seed_subset = comm.shared_random_seed() + self._seed_subset = int(seed_subset) + + # randomly generate the subset indexes to be sampled from + g = torch.Generator() + g.manual_seed(self._seed_subset) + indexes_randperm = torch.randperm(self._size, generator=g) + self._indexes_subset = indexes_randperm[: self._size_subset] + + logger.info("Using RandomSubsetTrainingSampler......") + logger.info(f"Randomly sample {self._size_subset} data from the original {self._size} data") + + def _infinite_indices(self): + g = torch.Generator() + g.manual_seed(self._seed) # self._seed equals seed_shuffle from __init__() + while True: + if self._shuffle: + # generate a random permutation to shuffle self._indexes_subset + randperm = torch.randperm(self._size_subset, generator=g) + yield from self._indexes_subset[randperm].tolist() + else: + yield from self._indexes_subset.tolist() + + +class RepeatFactorTrainingSampler(Sampler): + """ + Similar to TrainingSampler, but a sample may appear more times than others based + on its "repeat factor". This is suitable for training on class imbalanced datasets like LVIS. + """ + + def __init__(self, repeat_factors, *, shuffle=True, seed=None): + """ + Args: + repeat_factors (Tensor): a float vector, the repeat factor for each indice. When it's + full of ones, it is equivalent to ``TrainingSampler(len(repeat_factors), ...)``. + shuffle (bool): whether to shuffle the indices or not + seed (int): the initial seed of the shuffle. Must be the same + across all workers. If None, will use a random seed shared + among workers (require synchronization among all workers). + """ + self._shuffle = shuffle + if seed is None: + seed = comm.shared_random_seed() + self._seed = int(seed) + + self._rank = comm.get_rank() + self._world_size = comm.get_world_size() + + # Split into whole number (_int_part) and fractional (_frac_part) parts. + self._int_part = torch.trunc(repeat_factors) + self._frac_part = repeat_factors - self._int_part + + @staticmethod + def repeat_factors_from_category_frequency(dataset_dicts, repeat_thresh): + """ + Compute (fractional) per-image repeat factors based on category frequency. + The repeat factor for an image is a function of the frequency of the rarest + category labeled in that image. The "frequency of category c" in [0, 1] is defined + as the fraction of images in the training set (without repeats) in which category c + appears. + See :paper:`lvis` (>= v2) Appendix B.2. + + Args: + dataset_dicts (list[dict]): annotations in Detectron2 dataset format. + repeat_thresh (float): frequency threshold below which data is repeated. + If the frequency is half of `repeat_thresh`, the image will be + repeated twice. + + Returns: + torch.Tensor: + the i-th element is the repeat factor for the dataset image at index i. + """ + # 1. For each category c, compute the fraction of images that contain it: f(c) + category_freq = defaultdict(int) + for dataset_dict in dataset_dicts: # For each image (without repeats) + cat_ids = {ann["category_id"] for ann in dataset_dict["annotations"]} + for cat_id in cat_ids: + category_freq[cat_id] += 1 + num_images = len(dataset_dicts) + for k, v in category_freq.items(): + category_freq[k] = v / num_images + + # 2. For each category c, compute the category-level repeat factor: + # r(c) = max(1, sqrt(t / f(c))) + category_rep = { + cat_id: max(1.0, math.sqrt(repeat_thresh / cat_freq)) + for cat_id, cat_freq in category_freq.items() + } + + # 3. For each image I, compute the image-level repeat factor: + # r(I) = max_{c in I} r(c) + rep_factors = [] + for dataset_dict in dataset_dicts: + cat_ids = {ann["category_id"] for ann in dataset_dict["annotations"]} + rep_factor = max({category_rep[cat_id] for cat_id in cat_ids}, default=1.0) + rep_factors.append(rep_factor) + + return torch.tensor(rep_factors, dtype=torch.float32) + + def _get_epoch_indices(self, generator): + """ + Create a list of dataset indices (with repeats) to use for one epoch. + + Args: + generator (torch.Generator): pseudo random number generator used for + stochastic rounding. + + Returns: + torch.Tensor: list of dataset indices to use in one epoch. Each index + is repeated based on its calculated repeat factor. + """ + # Since repeat factors are fractional, we use stochastic rounding so + # that the target repeat factor is achieved in expectation over the + # course of training + rands = torch.rand(len(self._frac_part), generator=generator) + rep_factors = self._int_part + (rands < self._frac_part).float() + # Construct a list of indices in which we repeat images as specified + indices = [] + for dataset_index, rep_factor in enumerate(rep_factors): + indices.extend([dataset_index] * int(rep_factor.item())) + return torch.tensor(indices, dtype=torch.int64) + + def __iter__(self): + start = self._rank + yield from itertools.islice(self._infinite_indices(), start, None, self._world_size) + + def _infinite_indices(self): + g = torch.Generator() + g.manual_seed(self._seed) + while True: + # Sample indices with repeats determined by stochastic rounding; each + # "epoch" may have a slightly different size due to the rounding. + indices = self._get_epoch_indices(g) + if self._shuffle: + randperm = torch.randperm(len(indices), generator=g) + yield from indices[randperm].tolist() + else: + yield from indices.tolist() + + +class InferenceSampler(Sampler): + """ + Produce indices for inference across all workers. + Inference needs to run on the __exact__ set of samples, + therefore when the total number of samples is not divisible by the number of workers, + this sampler produces different number of samples on different workers. + """ + + def __init__(self, size: int): + """ + Args: + size (int): the total number of data of the underlying dataset to sample from + """ + self._size = size + assert size > 0 + self._rank = comm.get_rank() + self._world_size = comm.get_world_size() + self._local_indices = self._get_local_indices(size, self._world_size, self._rank) + + @staticmethod + def _get_local_indices(total_size, world_size, rank): + shard_size = total_size // world_size + left = total_size % world_size + shard_sizes = [shard_size + int(r < left) for r in range(world_size)] + + begin = sum(shard_sizes[:rank]) + end = min(sum(shard_sizes[: rank + 1]), total_size) + return range(begin, end) + + def __iter__(self): + yield from self._local_indices + + def __len__(self): + return len(self._local_indices) diff --git a/detectron2/detectron2/data/samplers/grouped_batch_sampler.py b/detectron2/detectron2/data/samplers/grouped_batch_sampler.py new file mode 100755 index 0000000..5b24773 --- /dev/null +++ b/detectron2/detectron2/data/samplers/grouped_batch_sampler.py @@ -0,0 +1,47 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from torch.utils.data.sampler import BatchSampler, Sampler + + +class GroupedBatchSampler(BatchSampler): + """ + Wraps another sampler to yield a mini-batch of indices. + It enforces that the batch only contain elements from the same group. + It also tries to provide mini-batches which follows an ordering which is + as close as possible to the ordering from the original sampler. + """ + + def __init__(self, sampler, group_ids, batch_size): + """ + Args: + sampler (Sampler): Base sampler. + group_ids (list[int]): If the sampler produces indices in range [0, N), + `group_ids` must be a list of `N` ints which contains the group id of each sample. + The group ids must be a set of integers in the range [0, num_groups). + batch_size (int): Size of mini-batch. + """ + if not isinstance(sampler, Sampler): + raise ValueError( + "sampler should be an instance of " + "torch.utils.data.Sampler, but got sampler={}".format(sampler) + ) + self.sampler = sampler + self.group_ids = np.asarray(group_ids) + assert self.group_ids.ndim == 1 + self.batch_size = batch_size + groups = np.unique(self.group_ids).tolist() + + # buffer the indices of each group until batch size is reached + self.buffer_per_group = {k: [] for k in groups} + + def __iter__(self): + for idx in self.sampler: + group_id = self.group_ids[idx] + group_buffer = self.buffer_per_group[group_id] + group_buffer.append(idx) + if len(group_buffer) == self.batch_size: + yield group_buffer[:] # yield a copy of the list + del group_buffer[:] + + def __len__(self): + raise NotImplementedError("len() of GroupedBatchSampler is not well-defined.") diff --git a/detectron2/detectron2/data/transforms/__init__.py b/detectron2/detectron2/data/transforms/__init__.py new file mode 100755 index 0000000..ab3c63b --- /dev/null +++ b/detectron2/detectron2/data/transforms/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from fvcore.transforms.transform import Transform, TransformList # order them first +from fvcore.transforms.transform import * +from .transform import * +from .augmentation import * +from .augmentation_impl import * + +__all__ = [k for k in globals().keys() if not k.startswith("_")] + + +from detectron2.utils.env import fixup_module_metadata + +fixup_module_metadata(__name__, globals(), __all__) +del fixup_module_metadata diff --git a/detectron2/detectron2/data/transforms/augmentation.py b/detectron2/detectron2/data/transforms/augmentation.py new file mode 100755 index 0000000..63dd41a --- /dev/null +++ b/detectron2/detectron2/data/transforms/augmentation.py @@ -0,0 +1,380 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import inspect +import numpy as np +import pprint +from typing import Any, List, Optional, Tuple, Union +from fvcore.transforms.transform import Transform, TransformList + +""" +See "Data Augmentation" tutorial for an overview of the system: +https://detectron2.readthedocs.io/tutorials/augmentation.html +""" + + +__all__ = [ + "Augmentation", + "AugmentationList", + "AugInput", + "TransformGen", + "apply_transform_gens", + "StandardAugInput", + "apply_augmentations", +] + + +def _check_img_dtype(img): + assert isinstance(img, np.ndarray), "[Augmentation] Needs an numpy array, but got a {}!".format( + type(img) + ) + assert not isinstance(img.dtype, np.integer) or ( + img.dtype == np.uint8 + ), "[Augmentation] Got image of type {}, use uint8 or floating points instead!".format( + img.dtype + ) + assert img.ndim in [2, 3], img.ndim + + +def _get_aug_input_args(aug, aug_input) -> List[Any]: + """ + Get the arguments to be passed to ``aug.get_transform`` from the input ``aug_input``. + """ + if aug.input_args is None: + # Decide what attributes are needed automatically + prms = list(inspect.signature(aug.get_transform).parameters.items()) + # The default behavior is: if there is one parameter, then its "image" + # (work automatically for majority of use cases, and also avoid BC breaking), + # Otherwise, use the argument names. + if len(prms) == 1: + names = ("image",) + else: + names = [] + for name, prm in prms: + if prm.kind in ( + inspect.Parameter.VAR_POSITIONAL, + inspect.Parameter.VAR_KEYWORD, + ): + raise TypeError( + f""" \ +The default implementation of `{type(aug)}.__call__` does not allow \ +`{type(aug)}.get_transform` to use variable-length arguments (*args, **kwargs)! \ +If arguments are unknown, reimplement `__call__` instead. \ +""" + ) + names.append(name) + aug.input_args = tuple(names) + + args = [] + for f in aug.input_args: + try: + args.append(getattr(aug_input, f)) + except AttributeError as e: + raise AttributeError( + f"{type(aug)}.get_transform needs input attribute '{f}', " + f"but it is not an attribute of {type(aug_input)}!" + ) from e + return args + + +class Augmentation: + """ + Augmentation defines (often random) policies/strategies to generate :class:`Transform` + from data. It is often used for pre-processing of input data. + + A "policy" that generates a :class:`Transform` may, in the most general case, + need arbitrary information from input data in order to determine what transforms + to apply. Therefore, each :class:`Augmentation` instance defines the arguments + needed by its :meth:`get_transform` method. When called with the positional arguments, + the :meth:`get_transform` method executes the policy. + + Note that :class:`Augmentation` defines the policies to create a :class:`Transform`, + but not how to execute the actual transform operations to those data. + Its :meth:`__call__` method will use :meth:`AugInput.transform` to execute the transform. + + The returned `Transform` object is meant to describe deterministic transformation, which means + it can be re-applied on associated data, e.g. the geometry of an image and its segmentation + masks need to be transformed together. + (If such re-application is not needed, then determinism is not a crucial requirement.) + """ + + input_args: Optional[Tuple[str]] = None + """ + Stores the attribute names needed by :meth:`get_transform`, e.g. ``("image", "sem_seg")``. + By default, it is just a tuple of argument names in :meth:`self.get_transform`, which often only + contain "image". As long as the argument name convention is followed, there is no need for + users to touch this attribute. + """ + + def _init(self, params=None): + if params: + for k, v in params.items(): + if k != "self" and not k.startswith("_"): + setattr(self, k, v) + + def get_transform(self, *args) -> Transform: + """ + Execute the policy based on input data, and decide what transform to apply to inputs. + + Args: + args: Any fixed-length positional arguments. By default, the name of the arguments + should exist in the :class:`AugInput` to be used. + + Returns: + Transform: Returns the deterministic transform to apply to the input. + + Examples: + :: + class MyAug: + # if a policy needs to know both image and semantic segmentation + def get_transform(image, sem_seg) -> T.Transform: + pass + tfm: Transform = MyAug().get_transform(image, sem_seg) + new_image = tfm.apply_image(image) + + Notes: + Users can freely use arbitrary new argument names in custom + :meth:`get_transform` method, as long as they are available in the + input data. In detectron2 we use the following convention: + + * image: (H,W) or (H,W,C) ndarray of type uint8 in range [0, 255], or + floating point in range [0, 1] or [0, 255]. + * boxes: (N,4) ndarray of float32. It represents the instance bounding boxes + of N instances. Each is in XYXY format in unit of absolute coordinates. + * sem_seg: (H,W) ndarray of type uint8. Each element is an integer label of pixel. + + We do not specify convention for other types and do not include builtin + :class:`Augmentation` that uses other types in detectron2. + """ + raise NotImplementedError + + def __call__(self, aug_input) -> Transform: + """ + Augment the given `aug_input` **in-place**, and return the transform that's used. + + This method will be called to apply the augmentation. In most augmentation, it + is enough to use the default implementation, which calls :meth:`get_transform` + using the inputs. But a subclass can overwrite it to have more complicated logic. + + Args: + aug_input (AugInput): an object that has attributes needed by this augmentation + (defined by ``self.get_transform``). Its ``transform`` method will be called + to in-place transform it. + + Returns: + Transform: the transform that is applied on the input. + """ + args = _get_aug_input_args(self, aug_input) + tfm = self.get_transform(*args) + assert isinstance(tfm, (Transform, TransformList)), ( + f"{type(self)}.get_transform must return an instance of Transform! " + f"Got {type(tfm)} instead." + ) + aug_input.transform(tfm) + return tfm + + def _rand_range(self, low=1.0, high=None, size=None): + """ + Uniform float random number between low and high. + """ + if high is None: + low, high = 0, low + if size is None: + size = [] + return np.random.uniform(low, high, size) + + def __repr__(self): + """ + Produce something like: + "MyAugmentation(field1={self.field1}, field2={self.field2})" + """ + try: + sig = inspect.signature(self.__init__) + classname = type(self).__name__ + argstr = [] + for name, param in sig.parameters.items(): + assert ( + param.kind != param.VAR_POSITIONAL and param.kind != param.VAR_KEYWORD + ), "The default __repr__ doesn't support *args or **kwargs" + assert hasattr(self, name), ( + "Attribute {} not found! " + "Default __repr__ only works if attributes match the constructor.".format(name) + ) + attr = getattr(self, name) + default = param.default + if default is attr: + continue + attr_str = pprint.pformat(attr) + if "\n" in attr_str: + # don't show it if pformat decides to use >1 lines + attr_str = "..." + argstr.append("{}={}".format(name, attr_str)) + return "{}({})".format(classname, ", ".join(argstr)) + except AssertionError: + return super().__repr__() + + __str__ = __repr__ + + +class _TransformToAug(Augmentation): + def __init__(self, tfm: Transform): + self.tfm = tfm + + def get_transform(self, *args): + return self.tfm + + def __repr__(self): + return repr(self.tfm) + + __str__ = __repr__ + + +def _transform_to_aug(tfm_or_aug): + """ + Wrap Transform into Augmentation. + Private, used internally to implement augmentations. + """ + assert isinstance(tfm_or_aug, (Transform, Augmentation)), tfm_or_aug + if isinstance(tfm_or_aug, Augmentation): + return tfm_or_aug + else: + return _TransformToAug(tfm_or_aug) + + +class AugmentationList(Augmentation): + """ + Apply a sequence of augmentations. + + It has ``__call__`` method to apply the augmentations. + + Note that :meth:`get_transform` method is impossible (will throw error if called) + for :class:`AugmentationList`, because in order to apply a sequence of augmentations, + the kth augmentation must be applied first, to provide inputs needed by the (k+1)th + augmentation. + """ + + def __init__(self, augs): + """ + Args: + augs (list[Augmentation or Transform]): + """ + super().__init__() + self.augs = [_transform_to_aug(x) for x in augs] + + def __call__(self, aug_input) -> TransformList: + tfms = [] + for x in self.augs: + tfm = x(aug_input) + tfms.append(tfm) + return TransformList(tfms) + + def __repr__(self): + msgs = [str(x) for x in self.augs] + return "AugmentationList[{}]".format(", ".join(msgs)) + + __str__ = __repr__ + + +class AugInput: + """ + Input that can be used with :meth:`Augmentation.__call__`. + This is a standard implementation for the majority of use cases. + This class provides the standard attributes **"image", "boxes", "sem_seg"** + defined in :meth:`__init__` and they may be needed by different augmentations. + Most augmentation policies do not need attributes beyond these three. + + After applying augmentations to these attributes (using :meth:`AugInput.transform`), + the returned transforms can then be used to transform other data structures that users have. + + Examples: + :: + input = AugInput(image, boxes=boxes) + tfms = augmentation(input) + transformed_image = input.image + transformed_boxes = input.boxes + transformed_other_data = tfms.apply_other(other_data) + + An extended project that works with new data types may implement augmentation policies + that need other inputs. An algorithm may need to transform inputs in a way different + from the standard approach defined in this class. In those rare situations, users can + implement a class similar to this class, that satify the following condition: + + * The input must provide access to these data in the form of attribute access + (``getattr``). For example, if an :class:`Augmentation` to be applied needs "image" + and "sem_seg" arguments, its input must have the attribute "image" and "sem_seg". + * The input must have a ``transform(tfm: Transform) -> None`` method which + in-place transforms all its attributes. + """ + + # TODO maybe should support more builtin data types here + def __init__( + self, + image: np.ndarray, + *, + boxes: Optional[np.ndarray] = None, + sem_seg: Optional[np.ndarray] = None, + ): + """ + Args: + image (ndarray): (H,W) or (H,W,C) ndarray of type uint8 in range [0, 255], or + floating point in range [0, 1] or [0, 255]. The meaning of C is up + to users. + boxes (ndarray or None): Nx4 float32 boxes in XYXY_ABS mode + sem_seg (ndarray or None): HxW uint8 semantic segmentation mask. Each element + is an integer label of pixel. + """ + _check_img_dtype(image) + self.image = image + self.boxes = boxes + self.sem_seg = sem_seg + + def transform(self, tfm: Transform) -> None: + """ + In-place transform all attributes of this class. + + By "in-place", it means after calling this method, accessing an attribute such + as ``self.image`` will return transformed data. + """ + self.image = tfm.apply_image(self.image) + if self.boxes is not None: + self.boxes = tfm.apply_box(self.boxes) + if self.sem_seg is not None: + self.sem_seg = tfm.apply_segmentation(self.sem_seg) + + def apply_augmentations( + self, augmentations: List[Union[Augmentation, Transform]] + ) -> TransformList: + """ + Equivalent of ``AugmentationList(augmentations)(self)`` + """ + return AugmentationList(augmentations)(self) + + +def apply_augmentations(augmentations: List[Union[Transform, Augmentation]], inputs): + """ + Use ``T.AugmentationList(augmentations)(inputs)`` instead. + """ + if isinstance(inputs, np.ndarray): + # handle the common case of image-only Augmentation, also for backward compatibility + image_only = True + inputs = AugInput(inputs) + else: + image_only = False + tfms = inputs.apply_augmentations(augmentations) + return inputs.image if image_only else inputs, tfms + + +apply_transform_gens = apply_augmentations +""" +Alias for backward-compatibility. +""" + +TransformGen = Augmentation +""" +Alias for Augmentation, since it is something that generates :class:`Transform`s +""" + +StandardAugInput = AugInput +""" +Alias for compatibility. It's not worth the complexity to have two classes. +""" diff --git a/detectron2/detectron2/data/transforms/augmentation_impl.py b/detectron2/detectron2/data/transforms/augmentation_impl.py new file mode 100755 index 0000000..cc270cd --- /dev/null +++ b/detectron2/detectron2/data/transforms/augmentation_impl.py @@ -0,0 +1,736 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Implement many useful :class:`Augmentation`. +""" +import numpy as np +import sys +from numpy import random +from typing import Tuple +import torch +from fvcore.transforms.transform import ( + BlendTransform, + CropTransform, + HFlipTransform, + NoOpTransform, + PadTransform, + Transform, + TransformList, + VFlipTransform, +) +from PIL import Image + +from detectron2.structures import Boxes, pairwise_iou + +from .augmentation import Augmentation, _transform_to_aug +from .transform import ExtentTransform, ResizeTransform, RotationTransform + +__all__ = [ + "FixedSizeCrop", + "RandomApply", + "RandomBrightness", + "RandomContrast", + "RandomCrop", + "RandomExtent", + "RandomFlip", + "RandomSaturation", + "RandomLighting", + "RandomRotation", + "Resize", + "ResizeScale", + "ResizeShortestEdge", + "RandomCrop_CategoryAreaConstraint", + "RandomResize", + "MinIoURandomCrop", +] + + +class RandomApply(Augmentation): + """ + Randomly apply an augmentation with a given probability. + """ + + def __init__(self, tfm_or_aug, prob=0.5): + """ + Args: + tfm_or_aug (Transform, Augmentation): the transform or augmentation + to be applied. It can either be a `Transform` or `Augmentation` + instance. + prob (float): probability between 0.0 and 1.0 that + the wrapper transformation is applied + """ + super().__init__() + self.aug = _transform_to_aug(tfm_or_aug) + assert 0.0 <= prob <= 1.0, f"Probablity must be between 0.0 and 1.0 (given: {prob})" + self.prob = prob + + def get_transform(self, *args): + do = self._rand_range() < self.prob + if do: + return self.aug.get_transform(*args) + else: + return NoOpTransform() + + def __call__(self, aug_input): + do = self._rand_range() < self.prob + if do: + return self.aug(aug_input) + else: + return NoOpTransform() + + +class RandomFlip(Augmentation): + """ + Flip the image horizontally or vertically with the given probability. + """ + + def __init__(self, prob=0.5, *, horizontal=True, vertical=False): + """ + Args: + prob (float): probability of flip. + horizontal (boolean): whether to apply horizontal flipping + vertical (boolean): whether to apply vertical flipping + """ + super().__init__() + + if horizontal and vertical: + raise ValueError("Cannot do both horiz and vert. Please use two Flip instead.") + if not horizontal and not vertical: + raise ValueError("At least one of horiz or vert has to be True!") + self._init(locals()) + + def get_transform(self, image): + h, w = image.shape[:2] + do = self._rand_range() < self.prob + if do: + if self.horizontal: + return HFlipTransform(w) + elif self.vertical: + return VFlipTransform(h) + else: + return NoOpTransform() + + +class Resize(Augmentation): + """Resize image to a fixed target size""" + + def __init__(self, shape, interp=Image.BILINEAR): + """ + Args: + shape: (h, w) tuple or a int + interp: PIL interpolation method + """ + if isinstance(shape, int): + shape = (shape, shape) + shape = tuple(shape) + self._init(locals()) + + def get_transform(self, image): + return ResizeTransform( + image.shape[0], image.shape[1], self.shape[0], self.shape[1], self.interp + ) + + +class ResizeShortestEdge(Augmentation): + """ + Resize the image while keeping the aspect ratio unchanged. + It attempts to scale the shorter edge to the given `short_edge_length`, + as long as the longer edge does not exceed `max_size`. + If `max_size` is reached, then downscale so that the longer edge does not exceed max_size. + """ + + @torch.jit.unused + def __init__( + self, short_edge_length, max_size=sys.maxsize, sample_style="range", interp=Image.BILINEAR + ): + """ + Args: + short_edge_length (list[int]): If ``sample_style=="range"``, + a [min, max] interval from which to sample the shortest edge length. + If ``sample_style=="choice"``, a list of shortest edge lengths to sample from. + max_size (int): maximum allowed longest edge length. + sample_style (str): either "range" or "choice". + """ + super().__init__() + assert sample_style in ["range", "choice"], sample_style + + self.is_range = sample_style == "range" + if isinstance(short_edge_length, int): + short_edge_length = (short_edge_length, short_edge_length) + if self.is_range: + assert len(short_edge_length) == 2, ( + "short_edge_length must be two values using 'range' sample style." + f" Got {short_edge_length}!" + ) + self._init(locals()) + + @torch.jit.unused + def get_transform(self, image): + h, w = image.shape[:2] + if self.is_range: + size = np.random.randint(self.short_edge_length[0], self.short_edge_length[1] + 1) + else: + size = np.random.choice(self.short_edge_length) + if size == 0: + return NoOpTransform() + + newh, neww = ResizeShortestEdge.get_output_shape(h, w, size, self.max_size) + return ResizeTransform(h, w, newh, neww, self.interp) + + @staticmethod + def get_output_shape( + oldh: int, oldw: int, short_edge_length: int, max_size: int + ) -> Tuple[int, int]: + """ + Compute the output size given input size and target short edge length. + """ + h, w = oldh, oldw + size = short_edge_length * 1.0 + scale = size / min(h, w) + if h < w: + newh, neww = size, scale * w + else: + newh, neww = scale * h, size + if max(newh, neww) > max_size: + scale = max_size * 1.0 / max(newh, neww) + newh = newh * scale + neww = neww * scale + neww = int(neww + 0.5) + newh = int(newh + 0.5) + return (newh, neww) + + +class ResizeScale(Augmentation): + """ + Takes target size as input and randomly scales the given target size between `min_scale` + and `max_scale`. It then scales the input image such that it fits inside the scaled target + box, keeping the aspect ratio constant. + This implements the resize part of the Google's 'resize_and_crop' data augmentation: + https://github.com/tensorflow/tpu/blob/master/models/official/detection/utils/input_utils.py#L127 + """ + + def __init__( + self, + min_scale: float, + max_scale: float, + target_height: int, + target_width: int, + interp: int = Image.BILINEAR, + ): + """ + Args: + min_scale: minimum image scale range. + max_scale: maximum image scale range. + target_height: target image height. + target_width: target image width. + interp: image interpolation method. + """ + super().__init__() + self._init(locals()) + + def _get_resize(self, image: np.ndarray, scale: float) -> Transform: + input_size = image.shape[:2] + + # Compute new target size given a scale. + target_size = (self.target_height, self.target_width) + target_scale_size = np.multiply(target_size, scale) + + # Compute actual rescaling applied to input image and output size. + output_scale = np.minimum( + target_scale_size[0] / input_size[0], target_scale_size[1] / input_size[1] + ) + output_size = np.round(np.multiply(input_size, output_scale)).astype(int) + + return ResizeTransform( + input_size[0], input_size[1], output_size[0], output_size[1], self.interp + ) + + def get_transform(self, image: np.ndarray) -> Transform: + random_scale = np.random.uniform(self.min_scale, self.max_scale) + return self._get_resize(image, random_scale) + + +class RandomRotation(Augmentation): + """ + This method returns a copy of this image, rotated the given + number of degrees counter clockwise around the given center. + """ + + def __init__(self, angle, expand=True, center=None, sample_style="range", interp=None): + """ + Args: + angle (list[float]): If ``sample_style=="range"``, + a [min, max] interval from which to sample the angle (in degrees). + If ``sample_style=="choice"``, a list of angles to sample from + expand (bool): choose if the image should be resized to fit the whole + rotated image (default), or simply cropped + center (list[[float, float]]): If ``sample_style=="range"``, + a [[minx, miny], [maxx, maxy]] relative interval from which to sample the center, + [0, 0] being the top left of the image and [1, 1] the bottom right. + If ``sample_style=="choice"``, a list of centers to sample from + Default: None, which means that the center of rotation is the center of the image + center has no effect if expand=True because it only affects shifting + """ + super().__init__() + assert sample_style in ["range", "choice"], sample_style + self.is_range = sample_style == "range" + if isinstance(angle, (float, int)): + angle = (angle, angle) + if center is not None and isinstance(center[0], (float, int)): + center = (center, center) + self._init(locals()) + + def get_transform(self, image): + h, w = image.shape[:2] + center = None + if self.is_range: + angle = np.random.uniform(self.angle[0], self.angle[1]) + if self.center is not None: + center = ( + np.random.uniform(self.center[0][0], self.center[1][0]), + np.random.uniform(self.center[0][1], self.center[1][1]), + ) + else: + angle = np.random.choice(self.angle) + if self.center is not None: + center = np.random.choice(self.center) + + if center is not None: + center = (w * center[0], h * center[1]) # Convert to absolute coordinates + + if angle % 360 == 0: + return NoOpTransform() + + return RotationTransform(h, w, angle, expand=self.expand, center=center, interp=self.interp) + + +class FixedSizeCrop(Augmentation): + """ + If `crop_size` is smaller than the input image size, then it uses a random crop of + the crop size. If `crop_size` is larger than the input image size, then it pads + the right and the bottom of the image to the crop size if `pad` is True, otherwise + it returns the smaller image. + """ + + def __init__( + self, + crop_size: Tuple[int], + pad: bool = True, + pad_value: float = 128.0, + seg_pad_value: int = 255, + ): + """ + Args: + crop_size: target image (height, width). + pad: if True, will pad images smaller than `crop_size` up to `crop_size` + pad_value: the padding value to the image. + seg_pad_value: the padding value to the segmentation mask. + """ + super().__init__() + self._init(locals()) + + def _get_crop(self, image: np.ndarray) -> Transform: + # Compute the image scale and scaled size. + input_size = image.shape[:2] + output_size = self.crop_size + + # Add random crop if the image is scaled up. + max_offset = np.subtract(input_size, output_size) + max_offset = np.maximum(max_offset, 0) + offset = np.multiply(max_offset, np.random.uniform(0.0, 1.0)) + offset = np.round(offset).astype(int) + return CropTransform( + offset[1], offset[0], output_size[1], output_size[0], input_size[1], input_size[0] + ) + + def _get_pad(self, image: np.ndarray) -> Transform: + # Compute the image scale and scaled size. + input_size = image.shape[:2] + output_size = self.crop_size + + # Add padding if the image is scaled down. + pad_size = np.subtract(output_size, input_size) + pad_size = np.maximum(pad_size, 0) + original_size = np.minimum(input_size, output_size) + return PadTransform( + 0, + 0, + pad_size[1], + pad_size[0], + original_size[1], + original_size[0], + self.pad_value, + self.seg_pad_value, + ) + + def get_transform(self, image: np.ndarray) -> TransformList: + transforms = [self._get_crop(image)] + if self.pad: + transforms.append(self._get_pad(image)) + return TransformList(transforms) + + +class RandomCrop(Augmentation): + """ + Randomly crop a rectangle region out of an image. + """ + + def __init__(self, crop_type: str, crop_size): + """ + Args: + crop_type (str): one of "relative_range", "relative", "absolute", "absolute_range". + crop_size (tuple[float, float]): two floats, explained below. + + - "relative": crop a (H * crop_size[0], W * crop_size[1]) region from an input image of + size (H, W). crop size should be in (0, 1] + - "relative_range": uniformly sample two values from [crop_size[0], 1] + and [crop_size[1]], 1], and use them as in "relative" crop type. + - "absolute" crop a (crop_size[0], crop_size[1]) region from input image. + crop_size must be smaller than the input image size. + - "absolute_range", for an input of size (H, W), uniformly sample H_crop in + [crop_size[0], min(H, crop_size[1])] and W_crop in [crop_size[0], min(W, crop_size[1])]. + Then crop a region (H_crop, W_crop). + """ + # TODO style of relative_range and absolute_range are not consistent: + # one takes (h, w) but another takes (min, max) + super().__init__() + assert crop_type in ["relative_range", "relative", "absolute", "absolute_range"] + self._init(locals()) + + def get_transform(self, image): + h, w = image.shape[:2] + croph, cropw = self.get_crop_size((h, w)) + assert h >= croph and w >= cropw, "Shape computation in {} has bugs.".format(self) + h0 = np.random.randint(h - croph + 1) + w0 = np.random.randint(w - cropw + 1) + return CropTransform(w0, h0, cropw, croph) + + def get_crop_size(self, image_size): + """ + Args: + image_size (tuple): height, width + + Returns: + crop_size (tuple): height, width in absolute pixels + """ + h, w = image_size + if self.crop_type == "relative": + ch, cw = self.crop_size + return int(h * ch + 0.5), int(w * cw + 0.5) + elif self.crop_type == "relative_range": + crop_size = np.asarray(self.crop_size, dtype=np.float32) + ch, cw = crop_size + np.random.rand(2) * (1 - crop_size) + return int(h * ch + 0.5), int(w * cw + 0.5) + elif self.crop_type == "absolute": + return (min(self.crop_size[0], h), min(self.crop_size[1], w)) + elif self.crop_type == "absolute_range": + assert self.crop_size[0] <= self.crop_size[1] + ch = np.random.randint(min(h, self.crop_size[0]), min(h, self.crop_size[1]) + 1) + cw = np.random.randint(min(w, self.crop_size[0]), min(w, self.crop_size[1]) + 1) + return ch, cw + else: + raise NotImplementedError("Unknown crop type {}".format(self.crop_type)) + + +class RandomCrop_CategoryAreaConstraint(Augmentation): + """ + Similar to :class:`RandomCrop`, but find a cropping window such that no single category + occupies a ratio of more than `single_category_max_area` in semantic segmentation ground + truth, which can cause unstability in training. The function attempts to find such a valid + cropping window for at most 10 times. + """ + + def __init__( + self, + crop_type: str, + crop_size, + single_category_max_area: float = 1.0, + ignored_category: int = None, + ): + """ + Args: + crop_type, crop_size: same as in :class:`RandomCrop` + single_category_max_area: the maximum allowed area ratio of a + category. Set to 1.0 to disable + ignored_category: allow this category in the semantic segmentation + ground truth to exceed the area ratio. Usually set to the category + that's ignored in training. + """ + self.crop_aug = RandomCrop(crop_type, crop_size) + self._init(locals()) + + def get_transform(self, image, sem_seg): + if self.single_category_max_area >= 1.0: + return self.crop_aug.get_transform(image) + else: + h, w = sem_seg.shape + for _ in range(10): + crop_size = self.crop_aug.get_crop_size((h, w)) + y0 = np.random.randint(h - crop_size[0] + 1) + x0 = np.random.randint(w - crop_size[1] + 1) + sem_seg_temp = sem_seg[y0 : y0 + crop_size[0], x0 : x0 + crop_size[1]] + labels, cnt = np.unique(sem_seg_temp, return_counts=True) + if self.ignored_category is not None: + cnt = cnt[labels != self.ignored_category] + if len(cnt) > 1 and np.max(cnt) < np.sum(cnt) * self.single_category_max_area: + break + crop_tfm = CropTransform(x0, y0, crop_size[1], crop_size[0]) + return crop_tfm + + +class RandomExtent(Augmentation): + """ + Outputs an image by cropping a random "subrect" of the source image. + + The subrect can be parameterized to include pixels outside the source image, + in which case they will be set to zeros (i.e. black). The size of the output + image will vary with the size of the random subrect. + """ + + def __init__(self, scale_range, shift_range): + """ + Args: + output_size (h, w): Dimensions of output image + scale_range (l, h): Range of input-to-output size scaling factor + shift_range (x, y): Range of shifts of the cropped subrect. The rect + is shifted by [w / 2 * Uniform(-x, x), h / 2 * Uniform(-y, y)], + where (w, h) is the (width, height) of the input image. Set each + component to zero to crop at the image's center. + """ + super().__init__() + self._init(locals()) + + def get_transform(self, image): + img_h, img_w = image.shape[:2] + + # Initialize src_rect to fit the input image. + src_rect = np.array([-0.5 * img_w, -0.5 * img_h, 0.5 * img_w, 0.5 * img_h]) + + # Apply a random scaling to the src_rect. + src_rect *= np.random.uniform(self.scale_range[0], self.scale_range[1]) + + # Apply a random shift to the coordinates origin. + src_rect[0::2] += self.shift_range[0] * img_w * (np.random.rand() - 0.5) + src_rect[1::2] += self.shift_range[1] * img_h * (np.random.rand() - 0.5) + + # Map src_rect coordinates into image coordinates (center at corner). + src_rect[0::2] += 0.5 * img_w + src_rect[1::2] += 0.5 * img_h + + return ExtentTransform( + src_rect=(src_rect[0], src_rect[1], src_rect[2], src_rect[3]), + output_size=(int(src_rect[3] - src_rect[1]), int(src_rect[2] - src_rect[0])), + ) + + +class RandomContrast(Augmentation): + """ + Randomly transforms image contrast. + + Contrast intensity is uniformly sampled in (intensity_min, intensity_max). + - intensity < 1 will reduce contrast + - intensity = 1 will preserve the input image + - intensity > 1 will increase contrast + + See: https://pillow.readthedocs.io/en/3.0.x/reference/ImageEnhance.html + """ + + def __init__(self, intensity_min, intensity_max): + """ + Args: + intensity_min (float): Minimum augmentation + intensity_max (float): Maximum augmentation + """ + super().__init__() + self._init(locals()) + + def get_transform(self, image): + w = np.random.uniform(self.intensity_min, self.intensity_max) + return BlendTransform(src_image=image.mean(), src_weight=1 - w, dst_weight=w) + + +class RandomBrightness(Augmentation): + """ + Randomly transforms image brightness. + + Brightness intensity is uniformly sampled in (intensity_min, intensity_max). + - intensity < 1 will reduce brightness + - intensity = 1 will preserve the input image + - intensity > 1 will increase brightness + + See: https://pillow.readthedocs.io/en/3.0.x/reference/ImageEnhance.html + """ + + def __init__(self, intensity_min, intensity_max): + """ + Args: + intensity_min (float): Minimum augmentation + intensity_max (float): Maximum augmentation + """ + super().__init__() + self._init(locals()) + + def get_transform(self, image): + w = np.random.uniform(self.intensity_min, self.intensity_max) + return BlendTransform(src_image=0, src_weight=1 - w, dst_weight=w) + + +class RandomSaturation(Augmentation): + """ + Randomly transforms saturation of an RGB image. + Input images are assumed to have 'RGB' channel order. + + Saturation intensity is uniformly sampled in (intensity_min, intensity_max). + - intensity < 1 will reduce saturation (make the image more grayscale) + - intensity = 1 will preserve the input image + - intensity > 1 will increase saturation + + See: https://pillow.readthedocs.io/en/3.0.x/reference/ImageEnhance.html + """ + + def __init__(self, intensity_min, intensity_max): + """ + Args: + intensity_min (float): Minimum augmentation (1 preserves input). + intensity_max (float): Maximum augmentation (1 preserves input). + """ + super().__init__() + self._init(locals()) + + def get_transform(self, image): + assert image.shape[-1] == 3, "RandomSaturation only works on RGB images" + w = np.random.uniform(self.intensity_min, self.intensity_max) + grayscale = image.dot([0.299, 0.587, 0.114])[:, :, np.newaxis] + return BlendTransform(src_image=grayscale, src_weight=1 - w, dst_weight=w) + + +class RandomLighting(Augmentation): + """ + The "lighting" augmentation described in AlexNet, using fixed PCA over ImageNet. + Input images are assumed to have 'RGB' channel order. + + The degree of color jittering is randomly sampled via a normal distribution, + with standard deviation given by the scale parameter. + """ + + def __init__(self, scale): + """ + Args: + scale (float): Standard deviation of principal component weighting. + """ + super().__init__() + self._init(locals()) + self.eigen_vecs = np.array( + [[-0.5675, 0.7192, 0.4009], [-0.5808, -0.0045, -0.8140], [-0.5836, -0.6948, 0.4203]] + ) + self.eigen_vals = np.array([0.2175, 0.0188, 0.0045]) + + def get_transform(self, image): + assert image.shape[-1] == 3, "RandomLighting only works on RGB images" + weights = np.random.normal(scale=self.scale, size=3) + return BlendTransform( + src_image=self.eigen_vecs.dot(weights * self.eigen_vals), src_weight=1.0, dst_weight=1.0 + ) + + +class RandomResize(Augmentation): + """Randomly resize image to a target size in shape_list""" + + def __init__(self, shape_list, interp=Image.BILINEAR): + """ + Args: + shape_list: a list of shapes in (h, w) + interp: PIL interpolation method + """ + self.shape_list = shape_list + self._init(locals()) + + def get_transform(self, image): + shape_idx = np.random.randint(low=0, high=len(self.shape_list)) + h, w = self.shape_list[shape_idx] + return ResizeTransform(image.shape[0], image.shape[1], h, w, self.interp) + + +class MinIoURandomCrop(Augmentation): + """Random crop the image & bboxes, the cropped patches have minimum IoU + requirement with original image & bboxes, the IoU threshold is randomly + selected from min_ious. + + Args: + min_ious (tuple): minimum IoU threshold for all intersections with + bounding boxes + min_crop_size (float): minimum crop's size (i.e. h,w := a*h, a*w, + where a >= min_crop_size) + mode_trials: number of trials for sampling min_ious threshold + crop_trials: number of trials for sampling crop_size after cropping + """ + + def __init__( + self, + min_ious=(0.1, 0.3, 0.5, 0.7, 0.9), + min_crop_size=0.3, + mode_trials=1000, + crop_trials=50, + ): + self.min_ious = min_ious + self.sample_mode = (1, *min_ious, 0) + self.min_crop_size = min_crop_size + self.mode_trials = mode_trials + self.crop_trials = crop_trials + + def get_transform(self, image, boxes): + """Call function to crop images and bounding boxes with minimum IoU + constraint. + + Args: + boxes: ground truth boxes in (x1, y1, x2, y2) format + """ + if boxes is None: + return NoOpTransform() + h, w, c = image.shape + for _ in range(self.mode_trials): + mode = random.choice(self.sample_mode) + self.mode = mode + if mode == 1: + return NoOpTransform() + + min_iou = mode + for _ in range(self.crop_trials): + new_w = random.uniform(self.min_crop_size * w, w) + new_h = random.uniform(self.min_crop_size * h, h) + + # h / w in [0.5, 2] + if new_h / new_w < 0.5 or new_h / new_w > 2: + continue + + left = random.uniform(w - new_w) + top = random.uniform(h - new_h) + + patch = np.array((int(left), int(top), int(left + new_w), int(top + new_h))) + # Line or point crop is not allowed + if patch[2] == patch[0] or patch[3] == patch[1]: + continue + overlaps = pairwise_iou( + Boxes(patch.reshape(-1, 4)), Boxes(boxes.reshape(-1, 4)) + ).reshape(-1) + if len(overlaps) > 0 and overlaps.min() < min_iou: + continue + + # center of boxes should inside the crop img + # only adjust boxes and instance masks when the gt is not empty + if len(overlaps) > 0: + # adjust boxes + def is_center_of_bboxes_in_patch(boxes, patch): + center = (boxes[:, :2] + boxes[:, 2:]) / 2 + mask = ( + (center[:, 0] > patch[0]) + * (center[:, 1] > patch[1]) + * (center[:, 0] < patch[2]) + * (center[:, 1] < patch[3]) + ) + return mask + + mask = is_center_of_bboxes_in_patch(boxes, patch) + if not mask.any(): + continue + return CropTransform(int(left), int(top), int(new_w), int(new_h)) diff --git a/detectron2/detectron2/data/transforms/transform.py b/detectron2/detectron2/data/transforms/transform.py new file mode 100755 index 0000000..de44b99 --- /dev/null +++ b/detectron2/detectron2/data/transforms/transform.py @@ -0,0 +1,351 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +See "Data Augmentation" tutorial for an overview of the system: +https://detectron2.readthedocs.io/tutorials/augmentation.html +""" + +import numpy as np +import torch +import torch.nn.functional as F +from fvcore.transforms.transform import ( + CropTransform, + HFlipTransform, + NoOpTransform, + Transform, + TransformList, +) +from PIL import Image + +try: + import cv2 # noqa +except ImportError: + # OpenCV is an optional dependency at the moment + pass + +__all__ = [ + "ExtentTransform", + "ResizeTransform", + "RotationTransform", + "ColorTransform", + "PILColorTransform", +] + + +class ExtentTransform(Transform): + """ + Extracts a subregion from the source image and scales it to the output size. + + The fill color is used to map pixels from the source rect that fall outside + the source image. + + See: https://pillow.readthedocs.io/en/latest/PIL.html#PIL.ImageTransform.ExtentTransform + """ + + def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0): + """ + Args: + src_rect (x0, y0, x1, y1): src coordinates + output_size (h, w): dst image size + interp: PIL interpolation methods + fill: Fill color used when src_rect extends outside image + """ + super().__init__() + self._set_attributes(locals()) + + def apply_image(self, img, interp=None): + h, w = self.output_size + if len(img.shape) > 2 and img.shape[2] == 1: + pil_image = Image.fromarray(img[:, :, 0], mode="L") + else: + pil_image = Image.fromarray(img) + pil_image = pil_image.transform( + size=(w, h), + method=Image.EXTENT, + data=self.src_rect, + resample=interp if interp else self.interp, + fill=self.fill, + ) + ret = np.asarray(pil_image) + if len(img.shape) > 2 and img.shape[2] == 1: + ret = np.expand_dims(ret, -1) + return ret + + def apply_coords(self, coords): + # Transform image center from source coordinates into output coordinates + # and then map the new origin to the corner of the output image. + h, w = self.output_size + x0, y0, x1, y1 = self.src_rect + new_coords = coords.astype(np.float32) + new_coords[:, 0] -= 0.5 * (x0 + x1) + new_coords[:, 1] -= 0.5 * (y0 + y1) + new_coords[:, 0] *= w / (x1 - x0) + new_coords[:, 1] *= h / (y1 - y0) + new_coords[:, 0] += 0.5 * w + new_coords[:, 1] += 0.5 * h + return new_coords + + def apply_segmentation(self, segmentation): + segmentation = self.apply_image(segmentation, interp=Image.NEAREST) + return segmentation + + +class ResizeTransform(Transform): + """ + Resize the image to a target size. + """ + + def __init__(self, h, w, new_h, new_w, interp=None): + """ + Args: + h, w (int): original image size + new_h, new_w (int): new image size + interp: PIL interpolation methods, defaults to bilinear. + """ + # TODO decide on PIL vs opencv + super().__init__() + if interp is None: + interp = Image.BILINEAR + self._set_attributes(locals()) + + def apply_image(self, img, interp=None): + assert img.shape[:2] == (self.h, self.w) + assert len(img.shape) <= 4 + interp_method = interp if interp is not None else self.interp + + if img.dtype == np.uint8: + if len(img.shape) > 2 and img.shape[2] == 1: + pil_image = Image.fromarray(img[:, :, 0], mode="L") + else: + pil_image = Image.fromarray(img) + pil_image = pil_image.resize((self.new_w, self.new_h), interp_method) + ret = np.asarray(pil_image) + if len(img.shape) > 2 and img.shape[2] == 1: + ret = np.expand_dims(ret, -1) + else: + # PIL only supports uint8 + if any(x < 0 for x in img.strides): + img = np.ascontiguousarray(img) + img = torch.from_numpy(img) + shape = list(img.shape) + shape_4d = shape[:2] + [1] * (4 - len(shape)) + shape[2:] + img = img.view(shape_4d).permute(2, 3, 0, 1) # hw(c) -> nchw + _PIL_RESIZE_TO_INTERPOLATE_MODE = { + Image.NEAREST: "nearest", + Image.BILINEAR: "bilinear", + Image.BICUBIC: "bicubic", + } + mode = _PIL_RESIZE_TO_INTERPOLATE_MODE[interp_method] + align_corners = None if mode == "nearest" else False + img = F.interpolate( + img, (self.new_h, self.new_w), mode=mode, align_corners=align_corners + ) + shape[:2] = (self.new_h, self.new_w) + ret = img.permute(2, 3, 0, 1).view(shape).numpy() # nchw -> hw(c) + + return ret + + def apply_coords(self, coords): + coords[:, 0] = coords[:, 0] * (self.new_w * 1.0 / self.w) + coords[:, 1] = coords[:, 1] * (self.new_h * 1.0 / self.h) + return coords + + def apply_segmentation(self, segmentation): + segmentation = self.apply_image(segmentation, interp=Image.NEAREST) + return segmentation + + def inverse(self): + return ResizeTransform(self.new_h, self.new_w, self.h, self.w, self.interp) + + +class RotationTransform(Transform): + """ + This method returns a copy of this image, rotated the given + number of degrees counter clockwise around its center. + """ + + def __init__(self, h, w, angle, expand=True, center=None, interp=None): + """ + Args: + h, w (int): original image size + angle (float): degrees for rotation + expand (bool): choose if the image should be resized to fit the whole + rotated image (default), or simply cropped + center (tuple (width, height)): coordinates of the rotation center + if left to None, the center will be fit to the center of each image + center has no effect if expand=True because it only affects shifting + interp: cv2 interpolation method, default cv2.INTER_LINEAR + """ + super().__init__() + image_center = np.array((w / 2, h / 2)) + if center is None: + center = image_center + if interp is None: + interp = cv2.INTER_LINEAR + abs_cos, abs_sin = (abs(np.cos(np.deg2rad(angle))), abs(np.sin(np.deg2rad(angle)))) + if expand: + # find the new width and height bounds + bound_w, bound_h = np.rint( + [h * abs_sin + w * abs_cos, h * abs_cos + w * abs_sin] + ).astype(int) + else: + bound_w, bound_h = w, h + + self._set_attributes(locals()) + self.rm_coords = self.create_rotation_matrix() + # Needed because of this problem https://github.com/opencv/opencv/issues/11784 + self.rm_image = self.create_rotation_matrix(offset=-0.5) + + def apply_image(self, img, interp=None): + """ + img should be a numpy array, formatted as Height * Width * Nchannels + """ + if len(img) == 0 or self.angle % 360 == 0: + return img + assert img.shape[:2] == (self.h, self.w) + interp = interp if interp is not None else self.interp + return cv2.warpAffine(img, self.rm_image, (self.bound_w, self.bound_h), flags=interp) + + def apply_coords(self, coords): + """ + coords should be a N * 2 array-like, containing N couples of (x, y) points + """ + coords = np.asarray(coords, dtype=float) + if len(coords) == 0 or self.angle % 360 == 0: + return coords + return cv2.transform(coords[:, np.newaxis, :], self.rm_coords)[:, 0, :] + + def apply_segmentation(self, segmentation): + segmentation = self.apply_image(segmentation, interp=cv2.INTER_NEAREST) + return segmentation + + def create_rotation_matrix(self, offset=0): + center = (self.center[0] + offset, self.center[1] + offset) + rm = cv2.getRotationMatrix2D(tuple(center), self.angle, 1) + if self.expand: + # Find the coordinates of the center of rotation in the new image + # The only point for which we know the future coordinates is the center of the image + rot_im_center = cv2.transform(self.image_center[None, None, :] + offset, rm)[0, 0, :] + new_center = np.array([self.bound_w / 2, self.bound_h / 2]) + offset - rot_im_center + # shift the rotation center to the new coordinates + rm[:, 2] += new_center + return rm + + def inverse(self): + """ + The inverse is to rotate it back with expand, and crop to get the original shape. + """ + if not self.expand: # Not possible to inverse if a part of the image is lost + raise NotImplementedError() + rotation = RotationTransform( + self.bound_h, self.bound_w, -self.angle, True, None, self.interp + ) + crop = CropTransform( + (rotation.bound_w - self.w) // 2, (rotation.bound_h - self.h) // 2, self.w, self.h + ) + return TransformList([rotation, crop]) + + +class ColorTransform(Transform): + """ + Generic wrapper for any photometric transforms. + These transformations should only affect the color space and + not the coordinate space of the image (e.g. annotation + coordinates such as bounding boxes should not be changed) + """ + + def __init__(self, op): + """ + Args: + op (Callable): operation to be applied to the image, + which takes in an ndarray and returns an ndarray. + """ + if not callable(op): + raise ValueError("op parameter should be callable") + super().__init__() + self._set_attributes(locals()) + + def apply_image(self, img): + return self.op(img) + + def apply_coords(self, coords): + return coords + + def inverse(self): + return NoOpTransform() + + def apply_segmentation(self, segmentation): + return segmentation + + +class PILColorTransform(ColorTransform): + """ + Generic wrapper for PIL Photometric image transforms, + which affect the color space and not the coordinate + space of the image + """ + + def __init__(self, op): + """ + Args: + op (Callable): operation to be applied to the image, + which takes in a PIL Image and returns a transformed + PIL Image. + For reference on possible operations see: + - https://pillow.readthedocs.io/en/stable/ + """ + if not callable(op): + raise ValueError("op parameter should be callable") + super().__init__(op) + + def apply_image(self, img): + img = Image.fromarray(img) + return np.asarray(super().apply_image(img)) + + +def HFlip_rotated_box(transform, rotated_boxes): + """ + Apply the horizontal flip transform on rotated boxes. + + Args: + rotated_boxes (ndarray): Nx5 floating point array of + (x_center, y_center, width, height, angle_degrees) format + in absolute coordinates. + """ + # Transform x_center + rotated_boxes[:, 0] = transform.width - rotated_boxes[:, 0] + # Transform angle + rotated_boxes[:, 4] = -rotated_boxes[:, 4] + return rotated_boxes + + +def Resize_rotated_box(transform, rotated_boxes): + """ + Apply the resizing transform on rotated boxes. For details of how these (approximation) + formulas are derived, please refer to :meth:`RotatedBoxes.scale`. + + Args: + rotated_boxes (ndarray): Nx5 floating point array of + (x_center, y_center, width, height, angle_degrees) format + in absolute coordinates. + """ + scale_factor_x = transform.new_w * 1.0 / transform.w + scale_factor_y = transform.new_h * 1.0 / transform.h + rotated_boxes[:, 0] *= scale_factor_x + rotated_boxes[:, 1] *= scale_factor_y + theta = rotated_boxes[:, 4] * np.pi / 180.0 + c = np.cos(theta) + s = np.sin(theta) + rotated_boxes[:, 2] *= np.sqrt(np.square(scale_factor_x * c) + np.square(scale_factor_y * s)) + rotated_boxes[:, 3] *= np.sqrt(np.square(scale_factor_x * s) + np.square(scale_factor_y * c)) + rotated_boxes[:, 4] = np.arctan2(scale_factor_x * s, scale_factor_y * c) * 180 / np.pi + + return rotated_boxes + + +HFlipTransform.register_type("rotated_box", HFlip_rotated_box) +ResizeTransform.register_type("rotated_box", Resize_rotated_box) + +# not necessary any more with latest fvcore +NoOpTransform.register_type("rotated_box", lambda t, x: x) diff --git a/detectron2/detectron2/engine/__init__.py b/detectron2/detectron2/engine/__init__.py new file mode 100755 index 0000000..08a6157 --- /dev/null +++ b/detectron2/detectron2/engine/__init__.py @@ -0,0 +1,12 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .launch import * +from .train_loop import * + +__all__ = [k for k in globals().keys() if not k.startswith("_")] + + +# prefer to let hooks and defaults live in separate namespaces (therefore not in __all__) +# but still make them available here +from .hooks import * +from .defaults import * diff --git a/detectron2/detectron2/engine/defaults.py b/detectron2/detectron2/engine/defaults.py new file mode 100755 index 0000000..5b95257 --- /dev/null +++ b/detectron2/detectron2/engine/defaults.py @@ -0,0 +1,715 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +This file contains components with some default boilerplate logic user may need +in training / testing. They will not work for everyone, but many users may find them useful. + +The behavior of functions/classes in this file is subject to change, +since they are meant to represent the "common default behavior" people need in their projects. +""" + +import argparse +import logging +import os +import sys +import weakref +from collections import OrderedDict +from typing import Optional +import torch +from fvcore.nn.precise_bn import get_bn_modules +from omegaconf import OmegaConf +from torch.nn.parallel import DistributedDataParallel + +import detectron2.data.transforms as T +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import CfgNode, LazyConfig +from detectron2.data import ( + MetadataCatalog, + build_detection_test_loader, + build_detection_train_loader, +) +from detectron2.evaluation import ( + DatasetEvaluator, + inference_on_dataset, + print_csv_format, + verify_results, +) +from detectron2.modeling import build_model +from detectron2.solver import build_lr_scheduler, build_optimizer +from detectron2.utils import comm +from detectron2.utils.collect_env import collect_env_info +from detectron2.utils.env import seed_all_rng +from detectron2.utils.events import CommonMetricPrinter, JSONWriter, TensorboardXWriter +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import setup_logger + +from . import hooks +from .train_loop import AMPTrainer, SimpleTrainer, TrainerBase + +__all__ = [ + "create_ddp_model", + "default_argument_parser", + "default_setup", + "default_writers", + "DefaultPredictor", + "DefaultTrainer", +] + + +def create_ddp_model(model, *, fp16_compression=False, **kwargs): + """ + Create a DistributedDataParallel model if there are >1 processes. + + Args: + model: a torch.nn.Module + fp16_compression: add fp16 compression hooks to the ddp object. + See more at https://pytorch.org/docs/stable/ddp_comm_hooks.html#torch.distributed.algorithms.ddp_comm_hooks.default_hooks.fp16_compress_hook + kwargs: other arguments of :module:`torch.nn.parallel.DistributedDataParallel`. + """ # noqa + if comm.get_world_size() == 1: + return model + if "device_ids" not in kwargs: + kwargs["device_ids"] = [comm.get_local_rank()] + ddp = DistributedDataParallel(model, **kwargs) + if fp16_compression: + from torch.distributed.algorithms.ddp_comm_hooks import default as comm_hooks + + ddp.register_comm_hook(state=None, hook=comm_hooks.fp16_compress_hook) + return ddp + + +def default_argument_parser(epilog=None): + """ + Create a parser with some common arguments used by detectron2 users. + + Args: + epilog (str): epilog passed to ArgumentParser describing the usage. + + Returns: + argparse.ArgumentParser: + """ + parser = argparse.ArgumentParser( + epilog=epilog + or f""" +Examples: + +Run on single machine: + $ {sys.argv[0]} --num-gpus 8 --config-file cfg.yaml + +Change some config options: + $ {sys.argv[0]} --config-file cfg.yaml MODEL.WEIGHTS /path/to/weight.pth SOLVER.BASE_LR 0.001 + +Run on multiple machines: + (machine0)$ {sys.argv[0]} --machine-rank 0 --num-machines 2 --dist-url [--other-flags] + (machine1)$ {sys.argv[0]} --machine-rank 1 --num-machines 2 --dist-url [--other-flags] +""", + formatter_class=argparse.RawDescriptionHelpFormatter, + ) + parser.add_argument("--config-file", default="", metavar="FILE", help="path to config file") + parser.add_argument( + "--resume", + action="store_true", + help="Whether to attempt to resume from the checkpoint directory. " + "See documentation of `DefaultTrainer.resume_or_load()` for what it means.", + ) + parser.add_argument("--eval-only", action="store_true", help="perform evaluation only") + parser.add_argument("--num-gpus", type=int, default=1, help="number of gpus *per machine*") + parser.add_argument("--num-machines", type=int, default=1, help="total number of machines") + parser.add_argument( + "--machine-rank", type=int, default=0, help="the rank of this machine (unique per machine)" + ) + + # PyTorch still may leave orphan processes in multi-gpu training. + # Therefore we use a deterministic way to obtain port, + # so that users are aware of orphan processes by seeing the port occupied. + port = 2**15 + 2**14 + hash(os.getuid() if sys.platform != "win32" else 1) % 2**14 + parser.add_argument( + "--dist-url", + default="tcp://127.0.0.1:{}".format(port), + help="initialization URL for pytorch distributed backend. See " + "https://pytorch.org/docs/stable/distributed.html for details.", + ) + parser.add_argument( + "opts", + help=""" +Modify config options at the end of the command. For Yacs configs, use +space-separated "PATH.KEY VALUE" pairs. +For python-based LazyConfig, use "path.key=value". + """.strip(), + default=None, + nargs=argparse.REMAINDER, + ) + return parser + + +def _try_get_key(cfg, *keys, default=None): + """ + Try select keys from cfg until the first key that exists. Otherwise return default. + """ + if isinstance(cfg, CfgNode): + cfg = OmegaConf.create(cfg.dump()) + for k in keys: + none = object() + p = OmegaConf.select(cfg, k, default=none) + if p is not none: + return p + return default + + +def _highlight(code, filename): + try: + import pygments + except ImportError: + return code + + from pygments.lexers import Python3Lexer, YamlLexer + from pygments.formatters import Terminal256Formatter + + lexer = Python3Lexer() if filename.endswith(".py") else YamlLexer() + code = pygments.highlight(code, lexer, Terminal256Formatter(style="monokai")) + return code + + +def default_setup(cfg, args): + """ + Perform some basic common setups at the beginning of a job, including: + + 1. Set up the detectron2 logger + 2. Log basic information about environment, cmdline arguments, and config + 3. Backup the config to the output directory + + Args: + cfg (CfgNode or omegaconf.DictConfig): the full config to be used + args (argparse.NameSpace): the command line arguments to be logged + """ + output_dir = _try_get_key(cfg, "OUTPUT_DIR", "output_dir", "train.output_dir") + if comm.is_main_process() and output_dir: + PathManager.mkdirs(output_dir) + + rank = comm.get_rank() + setup_logger(output_dir, distributed_rank=rank, name="fvcore") + logger = setup_logger(output_dir, distributed_rank=rank) + + logger.info("Rank of current process: {}. World size: {}".format(rank, comm.get_world_size())) + logger.info("Environment info:\n" + collect_env_info()) + + logger.info("Command line arguments: " + str(args)) + if hasattr(args, "config_file") and args.config_file != "": + logger.info( + "Contents of args.config_file={}:\n{}".format( + args.config_file, + _highlight(PathManager.open(args.config_file, "r").read(), args.config_file), + ) + ) + + if comm.is_main_process() and output_dir: + # Note: some of our scripts may expect the existence of + # config.yaml in output directory + path = os.path.join(output_dir, "config.yaml") + if isinstance(cfg, CfgNode): + logger.info("Running with full config:\n{}".format(_highlight(cfg.dump(), ".yaml"))) + with PathManager.open(path, "w") as f: + f.write(cfg.dump()) + else: + LazyConfig.save(cfg, path) + logger.info("Full config saved to {}".format(path)) + + # make sure each worker has a different, yet deterministic seed if specified + seed = _try_get_key(cfg, "SEED", "train.seed", default=-1) + seed_all_rng(None if seed < 0 else seed + rank) + + # cudnn benchmark has large overhead. It shouldn't be used considering the small size of + # typical validation set. + if not (hasattr(args, "eval_only") and args.eval_only): + torch.backends.cudnn.benchmark = _try_get_key( + cfg, "CUDNN_BENCHMARK", "train.cudnn_benchmark", default=False + ) + + +def default_writers(output_dir: str, max_iter: Optional[int] = None): + """ + Build a list of :class:`EventWriter` to be used. + It now consists of a :class:`CommonMetricPrinter`, + :class:`TensorboardXWriter` and :class:`JSONWriter`. + + Args: + output_dir: directory to store JSON metrics and tensorboard events + max_iter: the total number of iterations + + Returns: + list[EventWriter]: a list of :class:`EventWriter` objects. + """ + PathManager.mkdirs(output_dir) + return [ + # It may not always print what you want to see, since it prints "common" metrics only. + CommonMetricPrinter(max_iter), + JSONWriter(os.path.join(output_dir, "metrics.json")), + TensorboardXWriter(output_dir), + ] + + +class DefaultPredictor: + """ + Create a simple end-to-end predictor with the given config that runs on + single device for a single input image. + + Compared to using the model directly, this class does the following additions: + + 1. Load checkpoint from `cfg.MODEL.WEIGHTS`. + 2. Always take BGR image as the input and apply conversion defined by `cfg.INPUT.FORMAT`. + 3. Apply resizing defined by `cfg.INPUT.{MIN,MAX}_SIZE_TEST`. + 4. Take one input image and produce a single output, instead of a batch. + + This is meant for simple demo purposes, so it does the above steps automatically. + This is not meant for benchmarks or running complicated inference logic. + If you'd like to do anything more complicated, please refer to its source code as + examples to build and use the model manually. + + Attributes: + metadata (Metadata): the metadata of the underlying dataset, obtained from + cfg.DATASETS.TEST. + + Examples: + :: + pred = DefaultPredictor(cfg) + inputs = cv2.imread("input.jpg") + outputs = pred(inputs) + """ + + def __init__(self, cfg): + self.cfg = cfg.clone() # cfg can be modified by model + self.model = build_model(self.cfg) + self.model.eval() + if len(cfg.DATASETS.TEST): + self.metadata = MetadataCatalog.get(cfg.DATASETS.TEST[0]) + + checkpointer = DetectionCheckpointer(self.model) + checkpointer.load(cfg.MODEL.WEIGHTS) + + self.aug = T.ResizeShortestEdge( + [cfg.INPUT.MIN_SIZE_TEST, cfg.INPUT.MIN_SIZE_TEST], cfg.INPUT.MAX_SIZE_TEST + ) + + self.input_format = cfg.INPUT.FORMAT + assert self.input_format in ["RGB", "BGR"], self.input_format + + def __call__(self, original_image): + """ + Args: + original_image (np.ndarray): an image of shape (H, W, C) (in BGR order). + + Returns: + predictions (dict): + the output of the model for one image only. + See :doc:`/tutorials/models` for details about the format. + """ + with torch.no_grad(): # https://github.com/sphinx-doc/sphinx/issues/4258 + # Apply pre-processing to image. + if self.input_format == "RGB": + # whether the model expects BGR inputs or RGB + original_image = original_image[:, :, ::-1] + height, width = original_image.shape[:2] + image = self.aug.get_transform(original_image).apply_image(original_image) + image = torch.as_tensor(image.astype("float32").transpose(2, 0, 1)) + + inputs = {"image": image, "height": height, "width": width} + predictions = self.model([inputs])[0] + return predictions + + +class DefaultTrainer(TrainerBase): + """ + A trainer with default training logic. It does the following: + + 1. Create a :class:`SimpleTrainer` using model, optimizer, dataloader + defined by the given config. Create a LR scheduler defined by the config. + 2. Load the last checkpoint or `cfg.MODEL.WEIGHTS`, if exists, when + `resume_or_load` is called. + 3. Register a few common hooks defined by the config. + + It is created to simplify the **standard model training workflow** and reduce code boilerplate + for users who only need the standard training workflow, with standard features. + It means this class makes *many assumptions* about your training logic that + may easily become invalid in a new research. In fact, any assumptions beyond those made in the + :class:`SimpleTrainer` are too much for research. + + The code of this class has been annotated about restrictive assumptions it makes. + When they do not work for you, you're encouraged to: + + 1. Overwrite methods of this class, OR: + 2. Use :class:`SimpleTrainer`, which only does minimal SGD training and + nothing else. You can then add your own hooks if needed. OR: + 3. Write your own training loop similar to `tools/plain_train_net.py`. + + See the :doc:`/tutorials/training` tutorials for more details. + + Note that the behavior of this class, like other functions/classes in + this file, is not stable, since it is meant to represent the "common default behavior". + It is only guaranteed to work well with the standard models and training workflow in detectron2. + To obtain more stable behavior, write your own training logic with other public APIs. + + Examples: + :: + trainer = DefaultTrainer(cfg) + trainer.resume_or_load() # load last checkpoint or MODEL.WEIGHTS + trainer.train() + + Attributes: + scheduler: + checkpointer (DetectionCheckpointer): + cfg (CfgNode): + """ + + def __init__(self, cfg): + """ + Args: + cfg (CfgNode): + """ + super().__init__() + logger = logging.getLogger("detectron2") + if not logger.isEnabledFor(logging.INFO): # setup_logger is not called for d2 + setup_logger() + cfg = DefaultTrainer.auto_scale_workers(cfg, comm.get_world_size()) + + # Assume these objects must be constructed in this order. + model = self.build_model(cfg) + optimizer = self.build_optimizer(cfg, model) + data_loader = self.build_train_loader(cfg) + + model = create_ddp_model(model, broadcast_buffers=False) + self._trainer = (AMPTrainer if cfg.SOLVER.AMP.ENABLED else SimpleTrainer)( + model, data_loader, optimizer + ) + + self.scheduler = self.build_lr_scheduler(cfg, optimizer) + self.checkpointer = DetectionCheckpointer( + # Assume you want to save checkpoints together with logs/statistics + model, + cfg.OUTPUT_DIR, + trainer=weakref.proxy(self), + ) + self.start_iter = 0 + self.max_iter = cfg.SOLVER.MAX_ITER + self.cfg = cfg + + self.register_hooks(self.build_hooks()) + + def resume_or_load(self, resume=True): + """ + If `resume==True` and `cfg.OUTPUT_DIR` contains the last checkpoint (defined by + a `last_checkpoint` file), resume from the file. Resuming means loading all + available states (eg. optimizer and scheduler) and update iteration counter + from the checkpoint. ``cfg.MODEL.WEIGHTS`` will not be used. + + Otherwise, this is considered as an independent training. The method will load model + weights from the file `cfg.MODEL.WEIGHTS` (but will not load other states) and start + from iteration 0. + + Args: + resume (bool): whether to do resume or not + """ + self.checkpointer.resume_or_load(self.cfg.MODEL.WEIGHTS, resume=resume) + if resume and self.checkpointer.has_checkpoint(): + # The checkpoint stores the training iteration that just finished, thus we start + # at the next iteration + self.start_iter = self.iter + 1 + + def build_hooks(self): + """ + Build a list of default hooks, including timing, evaluation, + checkpointing, lr scheduling, precise BN, writing events. + + Returns: + list[HookBase]: + """ + cfg = self.cfg.clone() + cfg.defrost() + cfg.DATALOADER.NUM_WORKERS = 0 # save some memory and time for PreciseBN + + ret = [ + hooks.IterationTimer(), + hooks.LRScheduler(), + hooks.PreciseBN( + # Run at the same freq as (but before) evaluation. + cfg.TEST.EVAL_PERIOD, + self.model, + # Build a new data loader to not affect training + self.build_train_loader(cfg), + cfg.TEST.PRECISE_BN.NUM_ITER, + ) + if cfg.TEST.PRECISE_BN.ENABLED and get_bn_modules(self.model) + else None, + ] + + # Do PreciseBN before checkpointer, because it updates the model and need to + # be saved by checkpointer. + # This is not always the best: if checkpointing has a different frequency, + # some checkpoints may have more precise statistics than others. + if comm.is_main_process(): + ret.append(hooks.PeriodicCheckpointer(self.checkpointer, cfg.SOLVER.CHECKPOINT_PERIOD)) + + def test_and_save_results(): + self._last_eval_results = self.test(self.cfg, self.model) + return self._last_eval_results + + # Do evaluation after checkpointer, because then if it fails, + # we can use the saved checkpoint to debug. + ret.append(hooks.EvalHook(cfg.TEST.EVAL_PERIOD, test_and_save_results)) + + if comm.is_main_process(): + # Here the default print/log frequency of each writer is used. + # run writers in the end, so that evaluation metrics are written + ret.append(hooks.PeriodicWriter(self.build_writers(), period=20)) + return ret + + def build_writers(self): + """ + Build a list of writers to be used using :func:`default_writers()`. + If you'd like a different list of writers, you can overwrite it in + your trainer. + + Returns: + list[EventWriter]: a list of :class:`EventWriter` objects. + """ + return default_writers(self.cfg.OUTPUT_DIR, self.max_iter) + + def train(self): + """ + Run training. + + Returns: + OrderedDict of results, if evaluation is enabled. Otherwise None. + """ + super().train(self.start_iter, self.max_iter) + if len(self.cfg.TEST.EXPECTED_RESULTS) and comm.is_main_process(): + assert hasattr( + self, "_last_eval_results" + ), "No evaluation results obtained during training!" + verify_results(self.cfg, self._last_eval_results) + return self._last_eval_results + + def run_step(self): + self._trainer.iter = self.iter + self._trainer.run_step() + + def state_dict(self): + ret = super().state_dict() + ret["_trainer"] = self._trainer.state_dict() + return ret + + def load_state_dict(self, state_dict): + super().load_state_dict(state_dict) + self._trainer.load_state_dict(state_dict["_trainer"]) + + @classmethod + def build_model(cls, cfg): + """ + Returns: + torch.nn.Module: + + It now calls :func:`detectron2.modeling.build_model`. + Overwrite it if you'd like a different model. + """ + model = build_model(cfg) + logger = logging.getLogger(__name__) + logger.info("Model:\n{}".format(model)) + return model + + @classmethod + def build_optimizer(cls, cfg, model): + """ + Returns: + torch.optim.Optimizer: + + It now calls :func:`detectron2.solver.build_optimizer`. + Overwrite it if you'd like a different optimizer. + """ + return build_optimizer(cfg, model) + + @classmethod + def build_lr_scheduler(cls, cfg, optimizer): + """ + It now calls :func:`detectron2.solver.build_lr_scheduler`. + Overwrite it if you'd like a different scheduler. + """ + return build_lr_scheduler(cfg, optimizer) + + @classmethod + def build_train_loader(cls, cfg): + """ + Returns: + iterable + + It now calls :func:`detectron2.data.build_detection_train_loader`. + Overwrite it if you'd like a different data loader. + """ + return build_detection_train_loader(cfg) + + @classmethod + def build_test_loader(cls, cfg, dataset_name): + """ + Returns: + iterable + + It now calls :func:`detectron2.data.build_detection_test_loader`. + Overwrite it if you'd like a different data loader. + """ + return build_detection_test_loader(cfg, dataset_name) + + @classmethod + def build_evaluator(cls, cfg, dataset_name): + """ + Returns: + DatasetEvaluator or None + + It is not implemented by default. + """ + raise NotImplementedError( + """ +If you want DefaultTrainer to automatically run evaluation, +please implement `build_evaluator()` in subclasses (see train_net.py for example). +Alternatively, you can call evaluation functions yourself (see Colab balloon tutorial for example). +""" + ) + + @classmethod + def test(cls, cfg, model, evaluators=None): + """ + Evaluate the given model. The given model is expected to already contain + weights to evaluate. + + Args: + cfg (CfgNode): + model (nn.Module): + evaluators (list[DatasetEvaluator] or None): if None, will call + :meth:`build_evaluator`. Otherwise, must have the same length as + ``cfg.DATASETS.TEST``. + + Returns: + dict: a dict of result metrics + """ + logger = logging.getLogger(__name__) + if isinstance(evaluators, DatasetEvaluator): + evaluators = [evaluators] + if evaluators is not None: + assert len(cfg.DATASETS.TEST) == len(evaluators), "{} != {}".format( + len(cfg.DATASETS.TEST), len(evaluators) + ) + + results = OrderedDict() + for idx, dataset_name in enumerate(cfg.DATASETS.TEST): + data_loader = cls.build_test_loader(cfg, dataset_name) + # When evaluators are passed in as arguments, + # implicitly assume that evaluators can be created before data_loader. + if evaluators is not None: + evaluator = evaluators[idx] + else: + try: + evaluator = cls.build_evaluator(cfg, dataset_name) + except NotImplementedError: + logger.warn( + "No evaluator found. Use `DefaultTrainer.test(evaluators=)`, " + "or implement its `build_evaluator` method." + ) + results[dataset_name] = {} + continue + results_i = inference_on_dataset(model, data_loader, evaluator) + results[dataset_name] = results_i + if comm.is_main_process(): + assert isinstance( + results_i, dict + ), "Evaluator must return a dict on the main process. Got {} instead.".format( + results_i + ) + logger.info("Evaluation results for {} in csv format:".format(dataset_name)) + print_csv_format(results_i) + + if len(results) == 1: + results = list(results.values())[0] + return results + + @staticmethod + def auto_scale_workers(cfg, num_workers: int): + """ + When the config is defined for certain number of workers (according to + ``cfg.SOLVER.REFERENCE_WORLD_SIZE``) that's different from the number of + workers currently in use, returns a new cfg where the total batch size + is scaled so that the per-GPU batch size stays the same as the + original ``IMS_PER_BATCH // REFERENCE_WORLD_SIZE``. + + Other config options are also scaled accordingly: + * training steps and warmup steps are scaled inverse proportionally. + * learning rate are scaled proportionally, following :paper:`ImageNet in 1h`. + + For example, with the original config like the following: + + .. code-block:: yaml + + IMS_PER_BATCH: 16 + BASE_LR: 0.1 + REFERENCE_WORLD_SIZE: 8 + MAX_ITER: 5000 + STEPS: (4000,) + CHECKPOINT_PERIOD: 1000 + + When this config is used on 16 GPUs instead of the reference number 8, + calling this method will return a new config with: + + .. code-block:: yaml + + IMS_PER_BATCH: 32 + BASE_LR: 0.2 + REFERENCE_WORLD_SIZE: 16 + MAX_ITER: 2500 + STEPS: (2000,) + CHECKPOINT_PERIOD: 500 + + Note that both the original config and this new config can be trained on 16 GPUs. + It's up to user whether to enable this feature (by setting ``REFERENCE_WORLD_SIZE``). + + Returns: + CfgNode: a new config. Same as original if ``cfg.SOLVER.REFERENCE_WORLD_SIZE==0``. + """ + old_world_size = cfg.SOLVER.REFERENCE_WORLD_SIZE + if old_world_size == 0 or old_world_size == num_workers: + return cfg + cfg = cfg.clone() + frozen = cfg.is_frozen() + cfg.defrost() + + assert ( + cfg.SOLVER.IMS_PER_BATCH % old_world_size == 0 + ), "Invalid REFERENCE_WORLD_SIZE in config!" + scale = num_workers / old_world_size + bs = cfg.SOLVER.IMS_PER_BATCH = int(round(cfg.SOLVER.IMS_PER_BATCH * scale)) + lr = cfg.SOLVER.BASE_LR = cfg.SOLVER.BASE_LR * scale + max_iter = cfg.SOLVER.MAX_ITER = int(round(cfg.SOLVER.MAX_ITER / scale)) + warmup_iter = cfg.SOLVER.WARMUP_ITERS = int(round(cfg.SOLVER.WARMUP_ITERS / scale)) + cfg.SOLVER.STEPS = tuple(int(round(s / scale)) for s in cfg.SOLVER.STEPS) + cfg.TEST.EVAL_PERIOD = int(round(cfg.TEST.EVAL_PERIOD / scale)) + cfg.SOLVER.CHECKPOINT_PERIOD = int(round(cfg.SOLVER.CHECKPOINT_PERIOD / scale)) + cfg.SOLVER.REFERENCE_WORLD_SIZE = num_workers # maintain invariant + logger = logging.getLogger(__name__) + logger.info( + f"Auto-scaling the config to batch_size={bs}, learning_rate={lr}, " + f"max_iter={max_iter}, warmup={warmup_iter}." + ) + + if frozen: + cfg.freeze() + return cfg + + +# Access basic attributes from the underlying trainer +for _attr in ["model", "data_loader", "optimizer"]: + setattr( + DefaultTrainer, + _attr, + property( + # getter + lambda self, x=_attr: getattr(self._trainer, x), + # setter + lambda self, value, x=_attr: setattr(self._trainer, x, value), + ), + ) diff --git a/detectron2/detectron2/engine/hooks.py b/detectron2/detectron2/engine/hooks.py new file mode 100755 index 0000000..fc37af0 --- /dev/null +++ b/detectron2/detectron2/engine/hooks.py @@ -0,0 +1,690 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import datetime +import itertools +import logging +import math +import operator +import os +import tempfile +import time +import warnings +from collections import Counter +import torch +from fvcore.common.checkpoint import Checkpointer +from fvcore.common.checkpoint import PeriodicCheckpointer as _PeriodicCheckpointer +from fvcore.common.param_scheduler import ParamScheduler +from fvcore.common.timer import Timer +from fvcore.nn.precise_bn import get_bn_modules, update_bn_stats + +import detectron2.utils.comm as comm +from detectron2.evaluation.testing import flatten_results_dict +from detectron2.solver import LRMultiplier +from detectron2.solver import LRScheduler as _LRScheduler +from detectron2.utils.events import EventStorage, EventWriter +from detectron2.utils.file_io import PathManager + +from .train_loop import HookBase + +__all__ = [ + "CallbackHook", + "IterationTimer", + "PeriodicWriter", + "PeriodicCheckpointer", + "BestCheckpointer", + "LRScheduler", + "AutogradProfiler", + "EvalHook", + "PreciseBN", + "TorchProfiler", + "TorchMemoryStats", +] + + +""" +Implement some common hooks. +""" + + +class CallbackHook(HookBase): + """ + Create a hook using callback functions provided by the user. + """ + + def __init__(self, *, before_train=None, after_train=None, before_step=None, after_step=None): + """ + Each argument is a function that takes one argument: the trainer. + """ + self._before_train = before_train + self._before_step = before_step + self._after_step = after_step + self._after_train = after_train + + def before_train(self): + if self._before_train: + self._before_train(self.trainer) + + def after_train(self): + if self._after_train: + self._after_train(self.trainer) + # The functions may be closures that hold reference to the trainer + # Therefore, delete them to avoid circular reference. + del self._before_train, self._after_train + del self._before_step, self._after_step + + def before_step(self): + if self._before_step: + self._before_step(self.trainer) + + def after_step(self): + if self._after_step: + self._after_step(self.trainer) + + +class IterationTimer(HookBase): + """ + Track the time spent for each iteration (each run_step call in the trainer). + Print a summary in the end of training. + + This hook uses the time between the call to its :meth:`before_step` + and :meth:`after_step` methods. + Under the convention that :meth:`before_step` of all hooks should only + take negligible amount of time, the :class:`IterationTimer` hook should be + placed at the beginning of the list of hooks to obtain accurate timing. + """ + + def __init__(self, warmup_iter=3): + """ + Args: + warmup_iter (int): the number of iterations at the beginning to exclude + from timing. + """ + self._warmup_iter = warmup_iter + self._step_timer = Timer() + self._start_time = time.perf_counter() + self._total_timer = Timer() + + def before_train(self): + self._start_time = time.perf_counter() + self._total_timer.reset() + self._total_timer.pause() + + def after_train(self): + logger = logging.getLogger(__name__) + total_time = time.perf_counter() - self._start_time + total_time_minus_hooks = self._total_timer.seconds() + hook_time = total_time - total_time_minus_hooks + + num_iter = self.trainer.storage.iter + 1 - self.trainer.start_iter - self._warmup_iter + + if num_iter > 0 and total_time_minus_hooks > 0: + # Speed is meaningful only after warmup + # NOTE this format is parsed by grep in some scripts + logger.info( + "Overall training speed: {} iterations in {} ({:.4f} s / it)".format( + num_iter, + str(datetime.timedelta(seconds=int(total_time_minus_hooks))), + total_time_minus_hooks / num_iter, + ) + ) + + logger.info( + "Total training time: {} ({} on hooks)".format( + str(datetime.timedelta(seconds=int(total_time))), + str(datetime.timedelta(seconds=int(hook_time))), + ) + ) + + def before_step(self): + self._step_timer.reset() + self._total_timer.resume() + + def after_step(self): + # +1 because we're in after_step, the current step is done + # but not yet counted + iter_done = self.trainer.storage.iter - self.trainer.start_iter + 1 + if iter_done >= self._warmup_iter: + sec = self._step_timer.seconds() + self.trainer.storage.put_scalars(time=sec) + else: + self._start_time = time.perf_counter() + self._total_timer.reset() + + self._total_timer.pause() + + +class PeriodicWriter(HookBase): + """ + Write events to EventStorage (by calling ``writer.write()``) periodically. + + It is executed every ``period`` iterations and after the last iteration. + Note that ``period`` does not affect how data is smoothed by each writer. + """ + + def __init__(self, writers, period=20): + """ + Args: + writers (list[EventWriter]): a list of EventWriter objects + period (int): + """ + self._writers = writers + for w in writers: + assert isinstance(w, EventWriter), w + self._period = period + + def after_step(self): + if (self.trainer.iter + 1) % self._period == 0 or ( + self.trainer.iter == self.trainer.max_iter - 1 + ): + for writer in self._writers: + writer.write() + + def after_train(self): + for writer in self._writers: + # If any new data is found (e.g. produced by other after_train), + # write them before closing + writer.write() + writer.close() + + +class PeriodicCheckpointer(_PeriodicCheckpointer, HookBase): + """ + Same as :class:`detectron2.checkpoint.PeriodicCheckpointer`, but as a hook. + + Note that when used as a hook, + it is unable to save additional data other than what's defined + by the given `checkpointer`. + + It is executed every ``period`` iterations and after the last iteration. + """ + + def before_train(self): + self.max_iter = self.trainer.max_iter + + def after_step(self): + # No way to use **kwargs + self.step(self.trainer.iter) + + +class BestCheckpointer(HookBase): + """ + Checkpoints best weights based off given metric. + + This hook should be used in conjunction to and executed after the hook + that produces the metric, e.g. `EvalHook`. + """ + + def __init__( + self, + eval_period: int, + checkpointer: Checkpointer, + val_metric: str, + mode: str = "max", + file_prefix: str = "model_best", + ) -> None: + """ + Args: + eval_period (int): the period `EvalHook` is set to run. + checkpointer: the checkpointer object used to save checkpoints. + val_metric (str): validation metric to track for best checkpoint, e.g. "bbox/AP50" + mode (str): one of {'max', 'min'}. controls whether the chosen val metric should be + maximized or minimized, e.g. for "bbox/AP50" it should be "max" + file_prefix (str): the prefix of checkpoint's filename, defaults to "model_best" + """ + self._logger = logging.getLogger(__name__) + self._period = eval_period + self._val_metric = val_metric + assert mode in [ + "max", + "min", + ], f'Mode "{mode}" to `BestCheckpointer` is unknown. It should be one of {"max", "min"}.' + if mode == "max": + self._compare = operator.gt + else: + self._compare = operator.lt + self._checkpointer = checkpointer + self._file_prefix = file_prefix + self.best_metric = None + self.best_iter = None + + def _update_best(self, val, iteration): + if math.isnan(val) or math.isinf(val): + return False + self.best_metric = val + self.best_iter = iteration + return True + + def _best_checking(self): + metric_tuple = self.trainer.storage.latest().get(self._val_metric) + if metric_tuple is None: + self._logger.warning( + f"Given val metric {self._val_metric} does not seem to be computed/stored." + "Will not be checkpointing based on it." + ) + return + else: + latest_metric, metric_iter = metric_tuple + + if self.best_metric is None: + if self._update_best(latest_metric, metric_iter): + additional_state = {"iteration": metric_iter} + self._checkpointer.save(f"{self._file_prefix}", **additional_state) + self._logger.info( + f"Saved first model at {self.best_metric:0.5f} @ {self.best_iter} steps" + ) + elif self._compare(latest_metric, self.best_metric): + additional_state = {"iteration": metric_iter} + self._checkpointer.save(f"{self._file_prefix}", **additional_state) + self._logger.info( + f"Saved best model as latest eval score for {self._val_metric} is " + f"{latest_metric:0.5f}, better than last best score " + f"{self.best_metric:0.5f} @ iteration {self.best_iter}." + ) + self._update_best(latest_metric, metric_iter) + else: + self._logger.info( + f"Not saving as latest eval score for {self._val_metric} is {latest_metric:0.5f}, " + f"not better than best score {self.best_metric:0.5f} @ iteration {self.best_iter}." + ) + + def after_step(self): + # same conditions as `EvalHook` + next_iter = self.trainer.iter + 1 + if ( + self._period > 0 + and next_iter % self._period == 0 + and next_iter != self.trainer.max_iter + ): + self._best_checking() + + def after_train(self): + # same conditions as `EvalHook` + if self.trainer.iter + 1 >= self.trainer.max_iter: + self._best_checking() + + +class LRScheduler(HookBase): + """ + A hook which executes a torch builtin LR scheduler and summarizes the LR. + It is executed after every iteration. + """ + + def __init__(self, optimizer=None, scheduler=None): + """ + Args: + optimizer (torch.optim.Optimizer): + scheduler (torch.optim.LRScheduler or fvcore.common.param_scheduler.ParamScheduler): + if a :class:`ParamScheduler` object, it defines the multiplier over the base LR + in the optimizer. + + If any argument is not given, will try to obtain it from the trainer. + """ + self._optimizer = optimizer + self._scheduler = scheduler + + def before_train(self): + self._optimizer = self._optimizer or self.trainer.optimizer + if isinstance(self.scheduler, ParamScheduler): + self._scheduler = LRMultiplier( + self._optimizer, + self.scheduler, + self.trainer.max_iter, + last_iter=self.trainer.iter - 1, + ) + self._best_param_group_id = LRScheduler.get_best_param_group_id(self._optimizer) + + @staticmethod + def get_best_param_group_id(optimizer): + # NOTE: some heuristics on what LR to summarize + # summarize the param group with most parameters + largest_group = max(len(g["params"]) for g in optimizer.param_groups) + + if largest_group == 1: + # If all groups have one parameter, + # then find the most common initial LR, and use it for summary + lr_count = Counter([g["lr"] for g in optimizer.param_groups]) + lr = lr_count.most_common()[0][0] + for i, g in enumerate(optimizer.param_groups): + if g["lr"] == lr: + return i + else: + for i, g in enumerate(optimizer.param_groups): + if len(g["params"]) == largest_group: + return i + + def after_step(self): + lr = self._optimizer.param_groups[self._best_param_group_id]["lr"] + self.trainer.storage.put_scalar("lr", lr, smoothing_hint=False) + self.scheduler.step() + + @property + def scheduler(self): + return self._scheduler or self.trainer.scheduler + + def state_dict(self): + if isinstance(self.scheduler, _LRScheduler): + return self.scheduler.state_dict() + return {} + + def load_state_dict(self, state_dict): + if isinstance(self.scheduler, _LRScheduler): + logger = logging.getLogger(__name__) + logger.info("Loading scheduler from state_dict ...") + self.scheduler.load_state_dict(state_dict) + + +class TorchProfiler(HookBase): + """ + A hook which runs `torch.profiler.profile`. + + Examples: + :: + hooks.TorchProfiler( + lambda trainer: 10 < trainer.iter < 20, self.cfg.OUTPUT_DIR + ) + + The above example will run the profiler for iteration 10~20 and dump + results to ``OUTPUT_DIR``. We did not profile the first few iterations + because they are typically slower than the rest. + The result files can be loaded in the ``chrome://tracing`` page in chrome browser, + and the tensorboard visualizations can be visualized using + ``tensorboard --logdir OUTPUT_DIR/log`` + """ + + def __init__(self, enable_predicate, output_dir, *, activities=None, save_tensorboard=True): + """ + Args: + enable_predicate (callable[trainer -> bool]): a function which takes a trainer, + and returns whether to enable the profiler. + It will be called once every step, and can be used to select which steps to profile. + output_dir (str): the output directory to dump tracing files. + activities (iterable): same as in `torch.profiler.profile`. + save_tensorboard (bool): whether to save tensorboard visualizations at (output_dir)/log/ + """ + self._enable_predicate = enable_predicate + self._activities = activities + self._output_dir = output_dir + self._save_tensorboard = save_tensorboard + + def before_step(self): + if self._enable_predicate(self.trainer): + if self._save_tensorboard: + on_trace_ready = torch.profiler.tensorboard_trace_handler( + os.path.join( + self._output_dir, + "log", + "profiler-tensorboard-iter{}".format(self.trainer.iter), + ), + f"worker{comm.get_rank()}", + ) + else: + on_trace_ready = None + self._profiler = torch.profiler.profile( + activities=self._activities, + on_trace_ready=on_trace_ready, + record_shapes=True, + profile_memory=True, + with_stack=True, + with_flops=True, + ) + self._profiler.__enter__() + else: + self._profiler = None + + def after_step(self): + if self._profiler is None: + return + self._profiler.__exit__(None, None, None) + if not self._save_tensorboard: + PathManager.mkdirs(self._output_dir) + out_file = os.path.join( + self._output_dir, "profiler-trace-iter{}.json".format(self.trainer.iter) + ) + if "://" not in out_file: + self._profiler.export_chrome_trace(out_file) + else: + # Support non-posix filesystems + with tempfile.TemporaryDirectory(prefix="detectron2_profiler") as d: + tmp_file = os.path.join(d, "tmp.json") + self._profiler.export_chrome_trace(tmp_file) + with open(tmp_file) as f: + content = f.read() + with PathManager.open(out_file, "w") as f: + f.write(content) + + +class AutogradProfiler(TorchProfiler): + """ + A hook which runs `torch.autograd.profiler.profile`. + + Examples: + :: + hooks.AutogradProfiler( + lambda trainer: 10 < trainer.iter < 20, self.cfg.OUTPUT_DIR + ) + + The above example will run the profiler for iteration 10~20 and dump + results to ``OUTPUT_DIR``. We did not profile the first few iterations + because they are typically slower than the rest. + The result files can be loaded in the ``chrome://tracing`` page in chrome browser. + + Note: + When used together with NCCL on older version of GPUs, + autograd profiler may cause deadlock because it unnecessarily allocates + memory on every device it sees. The memory management calls, if + interleaved with NCCL calls, lead to deadlock on GPUs that do not + support ``cudaLaunchCooperativeKernelMultiDevice``. + """ + + def __init__(self, enable_predicate, output_dir, *, use_cuda=True): + """ + Args: + enable_predicate (callable[trainer -> bool]): a function which takes a trainer, + and returns whether to enable the profiler. + It will be called once every step, and can be used to select which steps to profile. + output_dir (str): the output directory to dump tracing files. + use_cuda (bool): same as in `torch.autograd.profiler.profile`. + """ + warnings.warn("AutogradProfiler has been deprecated in favor of TorchProfiler.") + self._enable_predicate = enable_predicate + self._use_cuda = use_cuda + self._output_dir = output_dir + + def before_step(self): + if self._enable_predicate(self.trainer): + self._profiler = torch.autograd.profiler.profile(use_cuda=self._use_cuda) + self._profiler.__enter__() + else: + self._profiler = None + + +class EvalHook(HookBase): + """ + Run an evaluation function periodically, and at the end of training. + + It is executed every ``eval_period`` iterations and after the last iteration. + """ + + def __init__(self, eval_period, eval_function, eval_after_train=True): + """ + Args: + eval_period (int): the period to run `eval_function`. Set to 0 to + not evaluate periodically (but still evaluate after the last iteration + if `eval_after_train` is True). + eval_function (callable): a function which takes no arguments, and + returns a nested dict of evaluation metrics. + eval_after_train (bool): whether to evaluate after the last iteration + + Note: + This hook must be enabled in all or none workers. + If you would like only certain workers to perform evaluation, + give other workers a no-op function (`eval_function=lambda: None`). + """ + self._period = eval_period + self._func = eval_function + self._eval_after_train = eval_after_train + + def _do_eval(self): + results = self._func() + + if results: + assert isinstance( + results, dict + ), "Eval function must return a dict. Got {} instead.".format(results) + + flattened_results = flatten_results_dict(results) + for k, v in flattened_results.items(): + try: + v = float(v) + except Exception as e: + raise ValueError( + "[EvalHook] eval_function should return a nested dict of float. " + "Got '{}: {}' instead.".format(k, v) + ) from e + self.trainer.storage.put_scalars(**flattened_results, smoothing_hint=False) + + # Evaluation may take different time among workers. + # A barrier make them start the next iteration together. + comm.synchronize() + + def after_step(self): + next_iter = self.trainer.iter + 1 + if self._period > 0 and next_iter % self._period == 0: + # do the last eval in after_train + if next_iter != self.trainer.max_iter: + self._do_eval() + + def after_train(self): + # This condition is to prevent the eval from running after a failed training + if self._eval_after_train and self.trainer.iter + 1 >= self.trainer.max_iter: + self._do_eval() + # func is likely a closure that holds reference to the trainer + # therefore we clean it to avoid circular reference in the end + del self._func + + +class PreciseBN(HookBase): + """ + The standard implementation of BatchNorm uses EMA in inference, which is + sometimes suboptimal. + This class computes the true average of statistics rather than the moving average, + and put true averages to every BN layer in the given model. + + It is executed every ``period`` iterations and after the last iteration. + """ + + def __init__(self, period, model, data_loader, num_iter): + """ + Args: + period (int): the period this hook is run, or 0 to not run during training. + The hook will always run in the end of training. + model (nn.Module): a module whose all BN layers in training mode will be + updated by precise BN. + Note that user is responsible for ensuring the BN layers to be + updated are in training mode when this hook is triggered. + data_loader (iterable): it will produce data to be run by `model(data)`. + num_iter (int): number of iterations used to compute the precise + statistics. + """ + self._logger = logging.getLogger(__name__) + if len(get_bn_modules(model)) == 0: + self._logger.info( + "PreciseBN is disabled because model does not contain BN layers in training mode." + ) + self._disabled = True + return + + self._model = model + self._data_loader = data_loader + self._num_iter = num_iter + self._period = period + self._disabled = False + + self._data_iter = None + + def after_step(self): + next_iter = self.trainer.iter + 1 + is_final = next_iter == self.trainer.max_iter + if is_final or (self._period > 0 and next_iter % self._period == 0): + self.update_stats() + + def update_stats(self): + """ + Update the model with precise statistics. Users can manually call this method. + """ + if self._disabled: + return + + if self._data_iter is None: + self._data_iter = iter(self._data_loader) + + def data_loader(): + for num_iter in itertools.count(1): + if num_iter % 100 == 0: + self._logger.info( + "Running precise-BN ... {}/{} iterations.".format(num_iter, self._num_iter) + ) + # This way we can reuse the same iterator + yield next(self._data_iter) + + with EventStorage(): # capture events in a new storage to discard them + self._logger.info( + "Running precise-BN for {} iterations... ".format(self._num_iter) + + "Note that this could produce different statistics every time." + ) + update_bn_stats(self._model, data_loader(), self._num_iter) + + +class TorchMemoryStats(HookBase): + """ + Writes pytorch's cuda memory statistics periodically. + """ + + def __init__(self, period=20, max_runs=10): + """ + Args: + period (int): Output stats each 'period' iterations + max_runs (int): Stop the logging after 'max_runs' + """ + + self._logger = logging.getLogger(__name__) + self._period = period + self._max_runs = max_runs + self._runs = 0 + + def after_step(self): + if self._runs > self._max_runs: + return + + if (self.trainer.iter + 1) % self._period == 0 or ( + self.trainer.iter == self.trainer.max_iter - 1 + ): + if torch.cuda.is_available(): + max_reserved_mb = torch.cuda.max_memory_reserved() / 1024.0 / 1024.0 + reserved_mb = torch.cuda.memory_reserved() / 1024.0 / 1024.0 + max_allocated_mb = torch.cuda.max_memory_allocated() / 1024.0 / 1024.0 + allocated_mb = torch.cuda.memory_allocated() / 1024.0 / 1024.0 + + self._logger.info( + ( + " iter: {} " + " max_reserved_mem: {:.0f}MB " + " reserved_mem: {:.0f}MB " + " max_allocated_mem: {:.0f}MB " + " allocated_mem: {:.0f}MB " + ).format( + self.trainer.iter, + max_reserved_mb, + reserved_mb, + max_allocated_mb, + allocated_mb, + ) + ) + + self._runs += 1 + if self._runs == self._max_runs: + mem_summary = torch.cuda.memory_summary() + self._logger.info("\n" + mem_summary) + + torch.cuda.reset_peak_memory_stats() diff --git a/detectron2/detectron2/engine/launch.py b/detectron2/detectron2/engine/launch.py new file mode 100755 index 0000000..7052c50 --- /dev/null +++ b/detectron2/detectron2/engine/launch.py @@ -0,0 +1,123 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +from datetime import timedelta +import torch +import torch.distributed as dist +import torch.multiprocessing as mp + +from detectron2.utils import comm + +__all__ = ["DEFAULT_TIMEOUT", "launch"] + +DEFAULT_TIMEOUT = timedelta(minutes=30) + + +def _find_free_port(): + import socket + + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + # Binding to port 0 will cause the OS to find an available port for us + sock.bind(("", 0)) + port = sock.getsockname()[1] + sock.close() + # NOTE: there is still a chance the port could be taken by other processes. + return port + + +def launch( + main_func, + # Should be num_processes_per_machine, but kept for compatibility. + num_gpus_per_machine, + num_machines=1, + machine_rank=0, + dist_url=None, + args=(), + timeout=DEFAULT_TIMEOUT, +): + """ + Launch multi-process or distributed training. + This function must be called on all machines involved in the training. + It will spawn child processes (defined by ``num_gpus_per_machine``) on each machine. + + Args: + main_func: a function that will be called by `main_func(*args)` + num_gpus_per_machine (int): number of processes per machine. When + using GPUs, this should be the number of GPUs. + num_machines (int): the total number of machines + machine_rank (int): the rank of this machine + dist_url (str): url to connect to for distributed jobs, including protocol + e.g. "tcp://127.0.0.1:8686". + Can be set to "auto" to automatically select a free port on localhost + timeout (timedelta): timeout of the distributed workers + args (tuple): arguments passed to main_func + """ + world_size = num_machines * num_gpus_per_machine + if world_size > 1: + # https://github.com/pytorch/pytorch/pull/14391 + # TODO prctl in spawned processes + + if dist_url == "auto": + assert num_machines == 1, "dist_url=auto not supported in multi-machine jobs." + port = _find_free_port() + dist_url = f"tcp://127.0.0.1:{port}" + if num_machines > 1 and dist_url.startswith("file://"): + logger = logging.getLogger(__name__) + logger.warning( + "file:// is not a reliable init_method in multi-machine jobs. Prefer tcp://" + ) + + mp.start_processes( + _distributed_worker, + nprocs=num_gpus_per_machine, + args=( + main_func, + world_size, + num_gpus_per_machine, + machine_rank, + dist_url, + args, + timeout, + ), + daemon=False, + ) + else: + main_func(*args) + + +def _distributed_worker( + local_rank, + main_func, + world_size, + num_gpus_per_machine, + machine_rank, + dist_url, + args, + timeout=DEFAULT_TIMEOUT, +): + has_gpu = torch.cuda.is_available() + if has_gpu: + assert num_gpus_per_machine <= torch.cuda.device_count() + global_rank = machine_rank * num_gpus_per_machine + local_rank + try: + dist.init_process_group( + backend="NCCL" if has_gpu else "GLOO", + init_method=dist_url, + world_size=world_size, + rank=global_rank, + timeout=timeout, + ) + except Exception as e: + logger = logging.getLogger(__name__) + logger.error("Process group URL: {}".format(dist_url)) + raise e + + # Setup the local process group. + comm.create_local_process_group(num_gpus_per_machine) + if has_gpu: + torch.cuda.set_device(local_rank) + + # synchronize is needed here to prevent a possible timeout after calling init_process_group + # See: https://github.com/facebookresearch/maskrcnn-benchmark/issues/172 + comm.synchronize() + + main_func(*args) diff --git a/detectron2/detectron2/engine/train_loop.py b/detectron2/detectron2/engine/train_loop.py new file mode 100755 index 0000000..2f6b96d --- /dev/null +++ b/detectron2/detectron2/engine/train_loop.py @@ -0,0 +1,528 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. +import concurrent.futures +import logging +import numpy as np +import time +import weakref +from typing import List, Mapping, Optional +import torch +from torch.nn.parallel import DataParallel, DistributedDataParallel + +import detectron2.utils.comm as comm +from detectron2.utils.events import EventStorage, get_event_storage +from detectron2.utils.logger import _log_api_usage + +__all__ = ["HookBase", "TrainerBase", "SimpleTrainer", "AMPTrainer"] + + +class HookBase: + """ + Base class for hooks that can be registered with :class:`TrainerBase`. + + Each hook can implement 4 methods. The way they are called is demonstrated + in the following snippet: + :: + hook.before_train() + for iter in range(start_iter, max_iter): + hook.before_step() + trainer.run_step() + hook.after_step() + iter += 1 + hook.after_train() + + Notes: + 1. In the hook method, users can access ``self.trainer`` to access more + properties about the context (e.g., model, current iteration, or config + if using :class:`DefaultTrainer`). + + 2. A hook that does something in :meth:`before_step` can often be + implemented equivalently in :meth:`after_step`. + If the hook takes non-trivial time, it is strongly recommended to + implement the hook in :meth:`after_step` instead of :meth:`before_step`. + The convention is that :meth:`before_step` should only take negligible time. + + Following this convention will allow hooks that do care about the difference + between :meth:`before_step` and :meth:`after_step` (e.g., timer) to + function properly. + + """ + + trainer: "TrainerBase" = None + """ + A weak reference to the trainer object. Set by the trainer when the hook is registered. + """ + + def before_train(self): + """ + Called before the first iteration. + """ + pass + + def after_train(self): + """ + Called after the last iteration. + """ + pass + + def before_step(self): + """ + Called before each iteration. + """ + pass + + def after_backward(self): + """ + Called after the backward pass of each iteration. + """ + pass + + def after_step(self): + """ + Called after each iteration. + """ + pass + + def state_dict(self): + """ + Hooks are stateless by default, but can be made checkpointable by + implementing `state_dict` and `load_state_dict`. + """ + return {} + + +class TrainerBase: + """ + Base class for iterative trainer with hooks. + + The only assumption we made here is: the training runs in a loop. + A subclass can implement what the loop is. + We made no assumptions about the existence of dataloader, optimizer, model, etc. + + Attributes: + iter(int): the current iteration. + + start_iter(int): The iteration to start with. + By convention the minimum possible value is 0. + + max_iter(int): The iteration to end training. + + storage(EventStorage): An EventStorage that's opened during the course of training. + """ + + def __init__(self) -> None: + self._hooks: List[HookBase] = [] + self.iter: int = 0 + self.start_iter: int = 0 + self.max_iter: int + self.storage: EventStorage + _log_api_usage("trainer." + self.__class__.__name__) + + def register_hooks(self, hooks: List[Optional[HookBase]]) -> None: + """ + Register hooks to the trainer. The hooks are executed in the order + they are registered. + + Args: + hooks (list[Optional[HookBase]]): list of hooks + """ + hooks = [h for h in hooks if h is not None] + for h in hooks: + assert isinstance(h, HookBase) + # To avoid circular reference, hooks and trainer cannot own each other. + # This normally does not matter, but will cause memory leak if the + # involved objects contain __del__: + # See http://engineering.hearsaysocial.com/2013/06/16/circular-references-in-python/ + h.trainer = weakref.proxy(self) + self._hooks.extend(hooks) + + def train(self, start_iter: int, max_iter: int): + """ + Args: + start_iter, max_iter (int): See docs above + """ + logger = logging.getLogger(__name__) + logger.info("Starting training from iteration {}".format(start_iter)) + + self.iter = self.start_iter = start_iter + self.max_iter = max_iter + + with EventStorage(start_iter) as self.storage: + try: + self.before_train() + for self.iter in range(start_iter, max_iter): + self.before_step() + self.run_step() + self.after_step() + # self.iter == max_iter can be used by `after_train` to + # tell whether the training successfully finished or failed + # due to exceptions. + self.iter += 1 + except Exception: + logger.exception("Exception during training:") + raise + finally: + self.after_train() + + def before_train(self): + for h in self._hooks: + h.before_train() + + def after_train(self): + self.storage.iter = self.iter + for h in self._hooks: + h.after_train() + + def before_step(self): + # Maintain the invariant that storage.iter == trainer.iter + # for the entire execution of each step + self.storage.iter = self.iter + + for h in self._hooks: + h.before_step() + + def after_backward(self): + for h in self._hooks: + h.after_backward() + + def after_step(self): + for h in self._hooks: + h.after_step() + + def run_step(self): + raise NotImplementedError + + def state_dict(self): + ret = {"iteration": self.iter} + hooks_state = {} + for h in self._hooks: + sd = h.state_dict() + if sd: + name = type(h).__qualname__ + if name in hooks_state: + # TODO handle repetitive stateful hooks + continue + hooks_state[name] = sd + if hooks_state: + ret["hooks"] = hooks_state + return ret + + def load_state_dict(self, state_dict): + logger = logging.getLogger(__name__) + self.iter = state_dict["iteration"] + for key, value in state_dict.get("hooks", {}).items(): + for h in self._hooks: + try: + name = type(h).__qualname__ + except AttributeError: + continue + if name == key: + h.load_state_dict(value) + break + else: + logger.warning(f"Cannot find the hook '{key}', its state_dict is ignored.") + + +class SimpleTrainer(TrainerBase): + """ + A simple trainer for the most common type of task: + single-cost single-optimizer single-data-source iterative optimization, + optionally using data-parallelism. + It assumes that every step, you: + + 1. Compute the loss with a data from the data_loader. + 2. Compute the gradients with the above loss. + 3. Update the model with the optimizer. + + All other tasks during training (checkpointing, logging, evaluation, LR schedule) + are maintained by hooks, which can be registered by :meth:`TrainerBase.register_hooks`. + + If you want to do anything fancier than this, + either subclass TrainerBase and implement your own `run_step`, + or write your own training loop. + """ + + def __init__( + self, + model, + data_loader, + optimizer, + gather_metric_period=1, + zero_grad_before_forward=False, + async_write_metrics=False, + ): + """ + Args: + model: a torch Module. Takes a data from data_loader and returns a + dict of losses. + data_loader: an iterable. Contains data to be used to call model. + optimizer: a torch optimizer. + gather_metric_period: an int. Every gather_metric_period iterations + the metrics are gathered from all the ranks to rank 0 and logged. + zero_grad_before_forward: whether to zero the gradients before the forward. + async_write_metrics: bool. If True, then write metrics asynchronously to improve + training speed + """ + super().__init__() + + """ + We set the model to training mode in the trainer. + However it's valid to train a model that's in eval mode. + If you want your model (or a submodule of it) to behave + like evaluation during training, you can overwrite its train() method. + """ + model.train() + + self.model = model + self.data_loader = data_loader + # to access the data loader iterator, call `self._data_loader_iter` + self._data_loader_iter_obj = None + self.optimizer = optimizer + self.gather_metric_period = gather_metric_period + self.zero_grad_before_forward = zero_grad_before_forward + self.async_write_metrics = async_write_metrics + # create a thread pool that can execute non critical logic in run_step asynchronically + # use only 1 worker so tasks will be executred in order of submitting. + self.concurrent_executor = concurrent.futures.ThreadPoolExecutor(max_workers=1) + + def run_step(self): + """ + Implement the standard training logic described above. + """ + assert self.model.training, "[SimpleTrainer] model was changed to eval mode!" + start = time.perf_counter() + """ + If you want to do something with the data, you can wrap the dataloader. + """ + data = next(self._data_loader_iter) + data_time = time.perf_counter() - start + + if self.zero_grad_before_forward: + """ + If you need to accumulate gradients or do something similar, you can + wrap the optimizer with your custom `zero_grad()` method. + """ + self.optimizer.zero_grad() + + """ + If you want to do something with the losses, you can wrap the model. + """ + loss_dict = self.model(data) + if isinstance(loss_dict, torch.Tensor): + losses = loss_dict + loss_dict = {"total_loss": loss_dict} + else: + losses = sum(loss_dict.values()) + if not self.zero_grad_before_forward: + """ + If you need to accumulate gradients or do something similar, you can + wrap the optimizer with your custom `zero_grad()` method. + """ + self.optimizer.zero_grad() + losses.backward() + + self.after_backward() + + if self.async_write_metrics: + # write metrics asynchronically + self.concurrent_executor.submit( + self._write_metrics, loss_dict, data_time, iter=self.iter + ) + else: + self._write_metrics(loss_dict, data_time) + + """ + If you need gradient clipping/scaling or other processing, you can + wrap the optimizer with your custom `step()` method. But it is + suboptimal as explained in https://arxiv.org/abs/2006.15704 Sec 3.2.4 + """ + self.optimizer.step() + + @property + def _data_loader_iter(self): + # only create the data loader iterator when it is used + if self._data_loader_iter_obj is None: + self._data_loader_iter_obj = iter(self.data_loader) + return self._data_loader_iter_obj + + def reset_data_loader(self, data_loader_builder): + """ + Delete and replace the current data loader with a new one, which will be created + by calling `data_loader_builder` (without argument). + """ + del self.data_loader + data_loader = data_loader_builder() + self.data_loader = data_loader + self._data_loader_iter_obj = None + + def _write_metrics( + self, + loss_dict: Mapping[str, torch.Tensor], + data_time: float, + prefix: str = "", + iter: Optional[int] = None, + ) -> None: + logger = logging.getLogger(__name__) + + iter = self.iter if iter is None else iter + if (iter + 1) % self.gather_metric_period == 0: + try: + SimpleTrainer.write_metrics(loss_dict, data_time, iter, prefix) + except Exception: + logger.exception("Exception in writing metrics: ") + raise + + @staticmethod + def write_metrics( + loss_dict: Mapping[str, torch.Tensor], + data_time: float, + cur_iter: int, + prefix: str = "", + ) -> None: + """ + Args: + loss_dict (dict): dict of scalar losses + data_time (float): time taken by the dataloader iteration + prefix (str): prefix for logging keys + """ + metrics_dict = {k: v.detach().cpu().item() for k, v in loss_dict.items()} + metrics_dict["data_time"] = data_time + + # Gather metrics among all workers for logging + # This assumes we do DDP-style training, which is currently the only + # supported method in detectron2. + all_metrics_dict = comm.gather(metrics_dict) + + if comm.is_main_process(): + storage = get_event_storage() + + # data_time among workers can have high variance. The actual latency + # caused by data_time is the maximum among workers. + data_time = np.max([x.pop("data_time") for x in all_metrics_dict]) + storage.put_scalar("data_time", data_time, cur_iter=cur_iter) + + # average the rest metrics + metrics_dict = { + k: np.mean([x[k] for x in all_metrics_dict]) for k in all_metrics_dict[0].keys() + } + total_losses_reduced = sum(metrics_dict.values()) + if not np.isfinite(total_losses_reduced): + raise FloatingPointError( + f"Loss became infinite or NaN at iteration={cur_iter}!\n" + f"loss_dict = {metrics_dict}" + ) + + storage.put_scalar( + "{}total_loss".format(prefix), total_losses_reduced, cur_iter=cur_iter + ) + if len(metrics_dict) > 1: + storage.put_scalars(cur_iter=cur_iter, **metrics_dict) + + def state_dict(self): + ret = super().state_dict() + ret["optimizer"] = self.optimizer.state_dict() + return ret + + def load_state_dict(self, state_dict): + super().load_state_dict(state_dict) + self.optimizer.load_state_dict(state_dict["optimizer"]) + + def after_train(self): + super().after_train() + self.concurrent_executor.shutdown(wait=True) + + +class AMPTrainer(SimpleTrainer): + """ + Like :class:`SimpleTrainer`, but uses PyTorch's native automatic mixed precision + in the training loop. + """ + + def __init__( + self, + model, + data_loader, + optimizer, + gather_metric_period=1, + zero_grad_before_forward=False, + grad_scaler=None, + precision: torch.dtype = torch.float16, + log_grad_scaler: bool = False, + async_write_metrics=False, + ): + """ + Args: + model, data_loader, optimizer, gather_metric_period, zero_grad_before_forward, + async_write_metrics: same as in :class:`SimpleTrainer`. + grad_scaler: torch GradScaler to automatically scale gradients. + precision: torch.dtype as the target precision to cast to in computations + """ + unsupported = "AMPTrainer does not support single-process multi-device training!" + if isinstance(model, DistributedDataParallel): + assert not (model.device_ids and len(model.device_ids) > 1), unsupported + assert not isinstance(model, DataParallel), unsupported + + super().__init__( + model, data_loader, optimizer, gather_metric_period, zero_grad_before_forward + ) + + if grad_scaler is None: + from torch.cuda.amp import GradScaler + + grad_scaler = GradScaler() + self.grad_scaler = grad_scaler + self.precision = precision + self.log_grad_scaler = log_grad_scaler + + def run_step(self): + """ + Implement the AMP training logic. + """ + assert self.model.training, "[AMPTrainer] model was changed to eval mode!" + assert torch.cuda.is_available(), "[AMPTrainer] CUDA is required for AMP training!" + from torch.cuda.amp import autocast + + start = time.perf_counter() + data = next(self._data_loader_iter) + data_time = time.perf_counter() - start + + if self.zero_grad_before_forward: + self.optimizer.zero_grad() + with autocast(dtype=self.precision): + loss_dict = self.model(data) + if isinstance(loss_dict, torch.Tensor): + losses = loss_dict + loss_dict = {"total_loss": loss_dict} + else: + losses = sum(loss_dict.values()) + + if not self.zero_grad_before_forward: + self.optimizer.zero_grad() + + self.grad_scaler.scale(losses).backward() + + if self.log_grad_scaler: + storage = get_event_storage() + storage.put_scalar("[metric]grad_scaler", self.grad_scaler.get_scale()) + + self.after_backward() + + if self.async_write_metrics: + # write metrics asynchronically + self.concurrent_executor.submit( + self._write_metrics, loss_dict, data_time, iter=self.iter + ) + else: + self._write_metrics(loss_dict, data_time) + + self.grad_scaler.step(self.optimizer) + self.grad_scaler.update() + + def state_dict(self): + ret = super().state_dict() + ret["grad_scaler"] = self.grad_scaler.state_dict() + return ret + + def load_state_dict(self, state_dict): + super().load_state_dict(state_dict) + self.grad_scaler.load_state_dict(state_dict["grad_scaler"]) diff --git a/detectron2/detectron2/evaluation/__init__.py b/detectron2/detectron2/evaluation/__init__.py new file mode 100755 index 0000000..d96609e --- /dev/null +++ b/detectron2/detectron2/evaluation/__init__.py @@ -0,0 +1,12 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .cityscapes_evaluation import CityscapesInstanceEvaluator, CityscapesSemSegEvaluator +from .coco_evaluation import COCOEvaluator +from .rotated_coco_evaluation import RotatedCOCOEvaluator +from .evaluator import DatasetEvaluator, DatasetEvaluators, inference_context, inference_on_dataset +from .lvis_evaluation import LVISEvaluator +from .panoptic_evaluation import COCOPanopticEvaluator +from .pascal_voc_evaluation import PascalVOCDetectionEvaluator +from .sem_seg_evaluation import SemSegEvaluator +from .testing import print_csv_format, verify_results + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/evaluation/cityscapes_evaluation.py b/detectron2/detectron2/evaluation/cityscapes_evaluation.py new file mode 100755 index 0000000..9cc7888 --- /dev/null +++ b/detectron2/detectron2/evaluation/cityscapes_evaluation.py @@ -0,0 +1,197 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import glob +import logging +import numpy as np +import os +import tempfile +from collections import OrderedDict +import torch +from PIL import Image + +from detectron2.data import MetadataCatalog +from detectron2.utils import comm +from detectron2.utils.file_io import PathManager + +from .evaluator import DatasetEvaluator + + +class CityscapesEvaluator(DatasetEvaluator): + """ + Base class for evaluation using cityscapes API. + """ + + def __init__(self, dataset_name): + """ + Args: + dataset_name (str): the name of the dataset. + It must have the following metadata associated with it: + "thing_classes", "gt_dir". + """ + self._metadata = MetadataCatalog.get(dataset_name) + self._cpu_device = torch.device("cpu") + self._logger = logging.getLogger(__name__) + + def reset(self): + self._working_dir = tempfile.TemporaryDirectory(prefix="cityscapes_eval_") + self._temp_dir = self._working_dir.name + # All workers will write to the same results directory + # TODO this does not work in distributed training + assert ( + comm.get_local_size() == comm.get_world_size() + ), "CityscapesEvaluator currently do not work with multiple machines." + self._temp_dir = comm.all_gather(self._temp_dir)[0] + if self._temp_dir != self._working_dir.name: + self._working_dir.cleanup() + self._logger.info( + "Writing cityscapes results to temporary directory {} ...".format(self._temp_dir) + ) + + +class CityscapesInstanceEvaluator(CityscapesEvaluator): + """ + Evaluate instance segmentation results on cityscapes dataset using cityscapes API. + + Note: + * It does not work in multi-machine distributed training. + * It contains a synchronization, therefore has to be used on all ranks. + * Only the main process runs evaluation. + """ + + def process(self, inputs, outputs): + from cityscapesscripts.helpers.labels import name2label + + for input, output in zip(inputs, outputs): + file_name = input["file_name"] + basename = os.path.splitext(os.path.basename(file_name))[0] + pred_txt = os.path.join(self._temp_dir, basename + "_pred.txt") + + if "instances" in output: + output = output["instances"].to(self._cpu_device) + num_instances = len(output) + with open(pred_txt, "w") as fout: + for i in range(num_instances): + pred_class = output.pred_classes[i] + classes = self._metadata.thing_classes[pred_class] + class_id = name2label[classes].id + score = output.scores[i] + mask = output.pred_masks[i].numpy().astype("uint8") + png_filename = os.path.join( + self._temp_dir, basename + "_{}_{}.png".format(i, classes) + ) + + Image.fromarray(mask * 255).save(png_filename) + fout.write( + "{} {} {}\n".format(os.path.basename(png_filename), class_id, score) + ) + else: + # Cityscapes requires a prediction file for every ground truth image. + with open(pred_txt, "w") as fout: + pass + + def evaluate(self): + """ + Returns: + dict: has a key "segm", whose value is a dict of "AP" and "AP50". + """ + comm.synchronize() + if comm.get_rank() > 0: + return + import cityscapesscripts.evaluation.evalInstanceLevelSemanticLabeling as cityscapes_eval + + self._logger.info("Evaluating results under {} ...".format(self._temp_dir)) + + # set some global states in cityscapes evaluation API, before evaluating + cityscapes_eval.args.predictionPath = os.path.abspath(self._temp_dir) + cityscapes_eval.args.predictionWalk = None + cityscapes_eval.args.JSONOutput = False + cityscapes_eval.args.colorized = False + cityscapes_eval.args.gtInstancesFile = os.path.join(self._temp_dir, "gtInstances.json") + + # These lines are adopted from + # https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/evaluation/evalInstanceLevelSemanticLabeling.py # noqa + gt_dir = PathManager.get_local_path(self._metadata.gt_dir) + groundTruthImgList = glob.glob(os.path.join(gt_dir, "*", "*_gtFine_instanceIds.png")) + assert len( + groundTruthImgList + ), "Cannot find any ground truth images to use for evaluation. Searched for: {}".format( + cityscapes_eval.args.groundTruthSearch + ) + predictionImgList = [] + for gt in groundTruthImgList: + predictionImgList.append(cityscapes_eval.getPrediction(gt, cityscapes_eval.args)) + results = cityscapes_eval.evaluateImgLists( + predictionImgList, groundTruthImgList, cityscapes_eval.args + )["averages"] + + ret = OrderedDict() + ret["segm"] = {"AP": results["allAp"] * 100, "AP50": results["allAp50%"] * 100} + self._working_dir.cleanup() + return ret + + +class CityscapesSemSegEvaluator(CityscapesEvaluator): + """ + Evaluate semantic segmentation results on cityscapes dataset using cityscapes API. + + Note: + * It does not work in multi-machine distributed training. + * It contains a synchronization, therefore has to be used on all ranks. + * Only the main process runs evaluation. + """ + + def process(self, inputs, outputs): + from cityscapesscripts.helpers.labels import trainId2label + + for input, output in zip(inputs, outputs): + file_name = input["file_name"] + basename = os.path.splitext(os.path.basename(file_name))[0] + pred_filename = os.path.join(self._temp_dir, basename + "_pred.png") + + output = output["sem_seg"].argmax(dim=0).to(self._cpu_device).numpy() + pred = 255 * np.ones(output.shape, dtype=np.uint8) + for train_id, label in trainId2label.items(): + if label.ignoreInEval: + continue + pred[output == train_id] = label.id + Image.fromarray(pred).save(pred_filename) + + def evaluate(self): + comm.synchronize() + if comm.get_rank() > 0: + return + # Load the Cityscapes eval script *after* setting the required env var, + # since the script reads CITYSCAPES_DATASET into global variables at load time. + import cityscapesscripts.evaluation.evalPixelLevelSemanticLabeling as cityscapes_eval + + self._logger.info("Evaluating results under {} ...".format(self._temp_dir)) + + # set some global states in cityscapes evaluation API, before evaluating + cityscapes_eval.args.predictionPath = os.path.abspath(self._temp_dir) + cityscapes_eval.args.predictionWalk = None + cityscapes_eval.args.JSONOutput = False + cityscapes_eval.args.colorized = False + + # These lines are adopted from + # https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/evaluation/evalPixelLevelSemanticLabeling.py # noqa + gt_dir = PathManager.get_local_path(self._metadata.gt_dir) + groundTruthImgList = glob.glob(os.path.join(gt_dir, "*", "*_gtFine_labelIds.png")) + assert len( + groundTruthImgList + ), "Cannot find any ground truth images to use for evaluation. Searched for: {}".format( + cityscapes_eval.args.groundTruthSearch + ) + predictionImgList = [] + for gt in groundTruthImgList: + predictionImgList.append(cityscapes_eval.getPrediction(cityscapes_eval.args, gt)) + results = cityscapes_eval.evaluateImgLists( + predictionImgList, groundTruthImgList, cityscapes_eval.args + ) + ret = OrderedDict() + ret["sem_seg"] = { + "IoU": 100.0 * results["averageScoreClasses"], + "iIoU": 100.0 * results["averageScoreInstClasses"], + "IoU_sup": 100.0 * results["averageScoreCategories"], + "iIoU_sup": 100.0 * results["averageScoreInstCategories"], + } + self._working_dir.cleanup() + return ret diff --git a/detectron2/detectron2/evaluation/coco_evaluation.py b/detectron2/detectron2/evaluation/coco_evaluation.py new file mode 100755 index 0000000..fe8142c --- /dev/null +++ b/detectron2/detectron2/evaluation/coco_evaluation.py @@ -0,0 +1,722 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import contextlib +import copy +import io +import itertools +import json +import logging +import numpy as np +import os +import pickle +from collections import OrderedDict +import pycocotools.mask as mask_util +import torch +from pycocotools.coco import COCO +from pycocotools.cocoeval import COCOeval +from tabulate import tabulate + +import detectron2.utils.comm as comm +from detectron2.config import CfgNode +from detectron2.data import MetadataCatalog +from detectron2.data.datasets.coco import convert_to_coco_json +from detectron2.structures import Boxes, BoxMode, pairwise_iou +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import create_small_table + +from .evaluator import DatasetEvaluator + +try: + from detectron2.evaluation.fast_eval_api import COCOeval_opt +except ImportError: + COCOeval_opt = COCOeval + + +class COCOEvaluator(DatasetEvaluator): + """ + Evaluate AR for object proposals, AP for instance detection/segmentation, AP + for keypoint detection outputs using COCO's metrics. + See http://cocodataset.org/#detection-eval and + http://cocodataset.org/#keypoints-eval to understand its metrics. + The metrics range from 0 to 100 (instead of 0 to 1), where a -1 or NaN means + the metric cannot be computed (e.g. due to no predictions made). + + In addition to COCO, this evaluator is able to support any bounding box detection, + instance segmentation, or keypoint detection dataset. + """ + + def __init__( + self, + dataset_name, + tasks=None, + distributed=True, + output_dir=None, + *, + max_dets_per_image=None, + use_fast_impl=True, + kpt_oks_sigmas=(), + allow_cached_coco=True, + ): + """ + Args: + dataset_name (str): name of the dataset to be evaluated. + It must have either the following corresponding metadata: + + "json_file": the path to the COCO format annotation + + Or it must be in detectron2's standard dataset format + so it can be converted to COCO format automatically. + tasks (tuple[str]): tasks that can be evaluated under the given + configuration. A task is one of "bbox", "segm", "keypoints". + By default, will infer this automatically from predictions. + distributed (True): if True, will collect results from all ranks and run evaluation + in the main process. + Otherwise, will only evaluate the results in the current process. + output_dir (str): optional, an output directory to dump all + results predicted on the dataset. The dump contains two files: + + 1. "instances_predictions.pth" a file that can be loaded with `torch.load` and + contains all the results in the format they are produced by the model. + 2. "coco_instances_results.json" a json file in COCO's result format. + max_dets_per_image (int): limit on the maximum number of detections per image. + By default in COCO, this limit is to 100, but this can be customized + to be greater, as is needed in evaluation metrics AP fixed and AP pool + (see https://arxiv.org/pdf/2102.01066.pdf) + This doesn't affect keypoint evaluation. + use_fast_impl (bool): use a fast but **unofficial** implementation to compute AP. + Although the results should be very close to the official implementation in COCO + API, it is still recommended to compute results with the official API for use in + papers. The faster implementation also uses more RAM. + kpt_oks_sigmas (list[float]): The sigmas used to calculate keypoint OKS. + See http://cocodataset.org/#keypoints-eval + When empty, it will use the defaults in COCO. + Otherwise it should be the same length as ROI_KEYPOINT_HEAD.NUM_KEYPOINTS. + allow_cached_coco (bool): Whether to use cached coco json from previous validation + runs. You should set this to False if you need to use different validation data. + Defaults to True. + """ + self._logger = logging.getLogger(__name__) + self._distributed = distributed + self._output_dir = output_dir + + if use_fast_impl and (COCOeval_opt is COCOeval): + self._logger.info("Fast COCO eval is not built. Falling back to official COCO eval.") + use_fast_impl = False + self._use_fast_impl = use_fast_impl + + # COCOeval requires the limit on the number of detections per image (maxDets) to be a list + # with at least 3 elements. The default maxDets in COCOeval is [1, 10, 100], in which the + # 3rd element (100) is used as the limit on the number of detections per image when + # evaluating AP. COCOEvaluator expects an integer for max_dets_per_image, so for COCOeval, + # we reformat max_dets_per_image into [1, 10, max_dets_per_image], based on the defaults. + if max_dets_per_image is None: + max_dets_per_image = [1, 10, 100] + else: + max_dets_per_image = [1, 10, max_dets_per_image] + self._max_dets_per_image = max_dets_per_image + + if tasks is not None and isinstance(tasks, CfgNode): + kpt_oks_sigmas = ( + tasks.TEST.KEYPOINT_OKS_SIGMAS if not kpt_oks_sigmas else kpt_oks_sigmas + ) + self._logger.warn( + "COCO Evaluator instantiated using config, this is deprecated behavior." + " Please pass in explicit arguments instead." + ) + self._tasks = None # Infering it from predictions should be better + else: + self._tasks = tasks + + self._cpu_device = torch.device("cpu") + + self._metadata = MetadataCatalog.get(dataset_name) + if not hasattr(self._metadata, "json_file"): + if output_dir is None: + raise ValueError( + "output_dir must be provided to COCOEvaluator " + "for datasets not in COCO format." + ) + self._logger.info(f"Trying to convert '{dataset_name}' to COCO format ...") + + cache_path = os.path.join(output_dir, f"{dataset_name}_coco_format.json") + self._metadata.json_file = cache_path + convert_to_coco_json(dataset_name, cache_path, allow_cached=allow_cached_coco) + + json_file = PathManager.get_local_path(self._metadata.json_file) + with contextlib.redirect_stdout(io.StringIO()): + self._coco_api = COCO(json_file) + + # Test set json files do not contain annotations (evaluation must be + # performed using the COCO evaluation server). + self._do_evaluation = "annotations" in self._coco_api.dataset + if self._do_evaluation: + self._kpt_oks_sigmas = kpt_oks_sigmas + + def reset(self): + self._predictions = [] + + def process(self, inputs, outputs): + """ + Args: + inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). + It is a list of dict. Each dict corresponds to an image and + contains keys like "height", "width", "file_name", "image_id". + outputs: the outputs of a COCO model. It is a list of dicts with key + "instances" that contains :class:`Instances`. + """ + for input, output in zip(inputs, outputs): + prediction = {"image_id": input["image_id"]} + + if "instances" in output: + instances = output["instances"].to(self._cpu_device) + prediction["instances"] = instances_to_coco_json(instances, input["image_id"]) + if "proposals" in output: + prediction["proposals"] = output["proposals"].to(self._cpu_device) + if len(prediction) > 1: + self._predictions.append(prediction) + + def evaluate(self, img_ids=None): + """ + Args: + img_ids: a list of image IDs to evaluate on. Default to None for the whole dataset + """ + if self._distributed: + comm.synchronize() + predictions = comm.gather(self._predictions, dst=0) + predictions = list(itertools.chain(*predictions)) + + if not comm.is_main_process(): + return {} + else: + predictions = self._predictions + + if len(predictions) == 0: + self._logger.warning("[COCOEvaluator] Did not receive valid predictions.") + return {} + + if self._output_dir: + PathManager.mkdirs(self._output_dir) + file_path = os.path.join(self._output_dir, "instances_predictions.pth") + with PathManager.open(file_path, "wb") as f: + torch.save(predictions, f) + + self._results = OrderedDict() + if "proposals" in predictions[0]: + self._eval_box_proposals(predictions) + if "instances" in predictions[0]: + self._eval_predictions(predictions, img_ids=img_ids) + # Copy so the caller can do whatever with results + return copy.deepcopy(self._results) + + def _tasks_from_predictions(self, predictions): + """ + Get COCO API "tasks" (i.e. iou_type) from COCO-format predictions. + """ + tasks = {"bbox"} + for pred in predictions: + if "segmentation" in pred: + tasks.add("segm") + if "keypoints" in pred: + tasks.add("keypoints") + return sorted(tasks) + + def _eval_predictions(self, predictions, img_ids=None): + """ + Evaluate predictions. Fill self._results with the metrics of the tasks. + """ + self._logger.info("Preparing results for COCO format ...") + coco_results = list(itertools.chain(*[x["instances"] for x in predictions])) + tasks = self._tasks or self._tasks_from_predictions(coco_results) + + # unmap the category ids for COCO + if hasattr(self._metadata, "thing_dataset_id_to_contiguous_id"): + dataset_id_to_contiguous_id = self._metadata.thing_dataset_id_to_contiguous_id + all_contiguous_ids = list(dataset_id_to_contiguous_id.values()) + num_classes = len(all_contiguous_ids) + assert min(all_contiguous_ids) == 0 and max(all_contiguous_ids) == num_classes - 1 + + reverse_id_mapping = {v: k for k, v in dataset_id_to_contiguous_id.items()} + for result in coco_results: + category_id = result["category_id"] + assert category_id < num_classes, ( + f"A prediction has class={category_id}, " + f"but the dataset only has {num_classes} classes and " + f"predicted class id should be in [0, {num_classes - 1}]." + ) + result["category_id"] = reverse_id_mapping[category_id] + + if self._output_dir: + file_path = os.path.join(self._output_dir, "coco_instances_results.json") + self._logger.info("Saving results to {}".format(file_path)) + with PathManager.open(file_path, "w") as f: + f.write(json.dumps(coco_results)) + f.flush() + + if not self._do_evaluation: + self._logger.info("Annotations are not available for evaluation.") + return + + self._logger.info( + "Evaluating predictions with {} COCO API...".format( + "unofficial" if self._use_fast_impl else "official" + ) + ) + for task in sorted(tasks): + assert task in {"bbox", "segm", "keypoints"}, f"Got unknown task: {task}!" + coco_eval = ( + _evaluate_predictions_on_coco( + self._coco_api, + coco_results, + task, + kpt_oks_sigmas=self._kpt_oks_sigmas, + cocoeval_fn=COCOeval_opt if self._use_fast_impl else COCOeval, + img_ids=img_ids, + max_dets_per_image=self._max_dets_per_image, + ) + if len(coco_results) > 0 + else None # cocoapi does not handle empty results very well + ) + + res = self._derive_coco_results( + coco_eval, task, class_names=self._metadata.get("thing_classes") + ) + self._results[task] = res + + def _eval_box_proposals(self, predictions): + """ + Evaluate the box proposals in predictions. + Fill self._results with the metrics for "box_proposals" task. + """ + if self._output_dir: + # Saving generated box proposals to file. + # Predicted box_proposals are in XYXY_ABS mode. + bbox_mode = BoxMode.XYXY_ABS.value + ids, boxes, objectness_logits = [], [], [] + for prediction in predictions: + ids.append(prediction["image_id"]) + boxes.append(prediction["proposals"].proposal_boxes.tensor.numpy()) + objectness_logits.append(prediction["proposals"].objectness_logits.numpy()) + + proposal_data = { + "boxes": boxes, + "objectness_logits": objectness_logits, + "ids": ids, + "bbox_mode": bbox_mode, + } + with PathManager.open(os.path.join(self._output_dir, "box_proposals.pkl"), "wb") as f: + pickle.dump(proposal_data, f) + + if not self._do_evaluation: + self._logger.info("Annotations are not available for evaluation.") + return + + self._logger.info("Evaluating bbox proposals ...") + res = {} + areas = {"all": "", "small": "s", "medium": "m", "large": "l"} + for limit in [100, 1000]: + for area, suffix in areas.items(): + stats = _evaluate_box_proposals(predictions, self._coco_api, area=area, limit=limit) + key = "AR{}@{:d}".format(suffix, limit) + res[key] = float(stats["ar"].item() * 100) + self._logger.info("Proposal metrics: \n" + create_small_table(res)) + self._results["box_proposals"] = res + + def _derive_coco_results(self, coco_eval, iou_type, class_names=None): + """ + Derive the desired score numbers from summarized COCOeval. + + Args: + coco_eval (None or COCOEval): None represents no predictions from model. + iou_type (str): + class_names (None or list[str]): if provided, will use it to predict + per-category AP. + + Returns: + a dict of {metric name: score} + """ + + metrics = { + "bbox": ["AP", "AP50", "AP75", "APs", "APm", "APl"], + "segm": ["AP", "AP50", "AP75", "APs", "APm", "APl"], + "keypoints": ["AP", "AP50", "AP75", "APm", "APl"], + }[iou_type] + + if coco_eval is None: + self._logger.warn("No predictions from the model!") + return {metric: float("nan") for metric in metrics} + + # the standard metrics + results = { + metric: float(coco_eval.stats[idx] * 100 if coco_eval.stats[idx] >= 0 else "nan") + for idx, metric in enumerate(metrics) + } + self._logger.info( + "Evaluation results for {}: \n".format(iou_type) + create_small_table(results) + ) + if not np.isfinite(sum(results.values())): + self._logger.info("Some metrics cannot be computed and is shown as NaN.") + + if class_names is None or len(class_names) <= 1: + return results + # Compute per-category AP + # from https://github.com/facebookresearch/Detectron/blob/a6a835f5b8208c45d0dce217ce9bbda915f44df7/detectron/datasets/json_dataset_evaluator.py#L222-L252 # noqa + precisions = coco_eval.eval["precision"] + # precision has dims (iou, recall, cls, area range, max dets) + assert len(class_names) == precisions.shape[2] + + results_per_category = [] + for idx, name in enumerate(class_names): + # area range index 0: all area ranges + # max dets index -1: typically 100 per image + precision = precisions[:, :, idx, 0, -1] + precision = precision[precision > -1] + ap = np.mean(precision) if precision.size else float("nan") + results_per_category.append(("{}".format(name), float(ap * 100))) + + # tabulate it + N_COLS = min(6, len(results_per_category) * 2) + results_flatten = list(itertools.chain(*results_per_category)) + results_2d = itertools.zip_longest(*[results_flatten[i::N_COLS] for i in range(N_COLS)]) + table = tabulate( + results_2d, + tablefmt="pipe", + floatfmt=".3f", + headers=["category", "AP"] * (N_COLS // 2), + numalign="left", + ) + self._logger.info("Per-category {} AP: \n".format(iou_type) + table) + + results.update({"AP-" + name: ap for name, ap in results_per_category}) + return results + + +def instances_to_coco_json(instances, img_id): + """ + Dump an "Instances" object to a COCO-format json that's used for evaluation. + + Args: + instances (Instances): + img_id (int): the image id + + Returns: + list[dict]: list of json annotations in COCO format. + """ + num_instance = len(instances) + if num_instance == 0: + return [] + + boxes = instances.pred_boxes.tensor.numpy() + boxes = BoxMode.convert(boxes, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + boxes = boxes.tolist() + scores = instances.scores.tolist() + classes = instances.pred_classes.tolist() + + has_mask = instances.has("pred_masks") + if has_mask: + # use RLE to encode the masks, because they are too large and takes memory + # since this evaluator stores outputs of the entire dataset + rles = [ + mask_util.encode(np.array(mask[:, :, None], order="F", dtype="uint8"))[0] + for mask in instances.pred_masks + ] + for rle in rles: + # "counts" is an array encoded by mask_util as a byte-stream. Python3's + # json writer which always produces strings cannot serialize a bytestream + # unless you decode it. Thankfully, utf-8 works out (which is also what + # the pycocotools/_mask.pyx does). + rle["counts"] = rle["counts"].decode("utf-8") + + has_keypoints = instances.has("pred_keypoints") + if has_keypoints: + keypoints = instances.pred_keypoints + + results = [] + for k in range(num_instance): + result = { + "image_id": img_id, + "category_id": classes[k], + "bbox": boxes[k], + "score": scores[k], + } + if has_mask: + result["segmentation"] = rles[k] + if has_keypoints: + # In COCO annotations, + # keypoints coordinates are pixel indices. + # However our predictions are floating point coordinates. + # Therefore we subtract 0.5 to be consistent with the annotation format. + # This is the inverse of data loading logic in `datasets/coco.py`. + keypoints[k][:, :2] -= 0.5 + result["keypoints"] = keypoints[k].flatten().tolist() + results.append(result) + return results + + +# inspired from Detectron: +# https://github.com/facebookresearch/Detectron/blob/a6a835f5b8208c45d0dce217ce9bbda915f44df7/detectron/datasets/json_dataset_evaluator.py#L255 # noqa +def _evaluate_box_proposals(dataset_predictions, coco_api, thresholds=None, area="all", limit=None): + """ + Evaluate detection proposal recall metrics. This function is a much + faster alternative to the official COCO API recall evaluation code. However, + it produces slightly different results. + """ + # Record max overlap value for each gt box + # Return vector of overlap values + areas = { + "all": 0, + "small": 1, + "medium": 2, + "large": 3, + "96-128": 4, + "128-256": 5, + "256-512": 6, + "512-inf": 7, + } + area_ranges = [ + [0**2, 1e5**2], # all + [0**2, 32**2], # small + [32**2, 96**2], # medium + [96**2, 1e5**2], # large + [96**2, 128**2], # 96-128 + [128**2, 256**2], # 128-256 + [256**2, 512**2], # 256-512 + [512**2, 1e5**2], + ] # 512-inf + assert area in areas, "Unknown area range: {}".format(area) + area_range = area_ranges[areas[area]] + gt_overlaps = [] + num_pos = 0 + + for prediction_dict in dataset_predictions: + predictions = prediction_dict["proposals"] + + # sort predictions in descending order + # TODO maybe remove this and make it explicit in the documentation + inds = predictions.objectness_logits.sort(descending=True)[1] + predictions = predictions[inds] + + ann_ids = coco_api.getAnnIds(imgIds=prediction_dict["image_id"]) + anno = coco_api.loadAnns(ann_ids) + gt_boxes = [ + BoxMode.convert(obj["bbox"], BoxMode.XYWH_ABS, BoxMode.XYXY_ABS) + for obj in anno + if obj["iscrowd"] == 0 + ] + gt_boxes = torch.as_tensor(gt_boxes).reshape(-1, 4) # guard against no boxes + gt_boxes = Boxes(gt_boxes) + gt_areas = torch.as_tensor([obj["area"] for obj in anno if obj["iscrowd"] == 0]) + + if len(gt_boxes) == 0 or len(predictions) == 0: + continue + + valid_gt_inds = (gt_areas >= area_range[0]) & (gt_areas <= area_range[1]) + gt_boxes = gt_boxes[valid_gt_inds] + + num_pos += len(gt_boxes) + + if len(gt_boxes) == 0: + continue + + if limit is not None and len(predictions) > limit: + predictions = predictions[:limit] + + overlaps = pairwise_iou(predictions.proposal_boxes, gt_boxes) + + _gt_overlaps = torch.zeros(len(gt_boxes)) + for j in range(min(len(predictions), len(gt_boxes))): + # find which proposal box maximally covers each gt box + # and get the iou amount of coverage for each gt box + max_overlaps, argmax_overlaps = overlaps.max(dim=0) + + # find which gt box is 'best' covered (i.e. 'best' = most iou) + gt_ovr, gt_ind = max_overlaps.max(dim=0) + assert gt_ovr >= 0 + # find the proposal box that covers the best covered gt box + box_ind = argmax_overlaps[gt_ind] + # record the iou coverage of this gt box + _gt_overlaps[j] = overlaps[box_ind, gt_ind] + assert _gt_overlaps[j] == gt_ovr + # mark the proposal box and the gt box as used + overlaps[box_ind, :] = -1 + overlaps[:, gt_ind] = -1 + + # append recorded iou coverage level + gt_overlaps.append(_gt_overlaps) + gt_overlaps = ( + torch.cat(gt_overlaps, dim=0) if len(gt_overlaps) else torch.zeros(0, dtype=torch.float32) + ) + gt_overlaps, _ = torch.sort(gt_overlaps) + + if thresholds is None: + step = 0.05 + thresholds = torch.arange(0.5, 0.95 + 1e-5, step, dtype=torch.float32) + recalls = torch.zeros_like(thresholds) + # compute recall for each iou threshold + for i, t in enumerate(thresholds): + recalls[i] = (gt_overlaps >= t).float().sum() / float(num_pos) + # ar = 2 * np.trapz(recalls, thresholds) + ar = recalls.mean() + return { + "ar": ar, + "recalls": recalls, + "thresholds": thresholds, + "gt_overlaps": gt_overlaps, + "num_pos": num_pos, + } + + +def _evaluate_predictions_on_coco( + coco_gt, + coco_results, + iou_type, + kpt_oks_sigmas=None, + cocoeval_fn=COCOeval_opt, + img_ids=None, + max_dets_per_image=None, +): + """ + Evaluate the coco results using COCOEval API. + """ + assert len(coco_results) > 0 + + if iou_type == "segm": + coco_results = copy.deepcopy(coco_results) + # When evaluating mask AP, if the results contain bbox, cocoapi will + # use the box area as the area of the instance, instead of the mask area. + # This leads to a different definition of small/medium/large. + # We remove the bbox field to let mask AP use mask area. + for c in coco_results: + c.pop("bbox", None) + + coco_dt = coco_gt.loadRes(coco_results) + coco_eval = cocoeval_fn(coco_gt, coco_dt, iou_type) + # For COCO, the default max_dets_per_image is [1, 10, 100]. + if max_dets_per_image is None: + max_dets_per_image = [1, 10, 100] # Default from COCOEval + else: + assert ( + len(max_dets_per_image) >= 3 + ), "COCOeval requires maxDets (and max_dets_per_image) to have length at least 3" + # In the case that user supplies a custom input for max_dets_per_image, + # apply COCOevalMaxDets to evaluate AP with the custom input. + if max_dets_per_image[2] != 100: + coco_eval = COCOevalMaxDets(coco_gt, coco_dt, iou_type) + if iou_type != "keypoints": + coco_eval.params.maxDets = max_dets_per_image + + if img_ids is not None: + coco_eval.params.imgIds = img_ids + + if iou_type == "keypoints": + # Use the COCO default keypoint OKS sigmas unless overrides are specified + if kpt_oks_sigmas: + assert hasattr(coco_eval.params, "kpt_oks_sigmas"), "pycocotools is too old!" + coco_eval.params.kpt_oks_sigmas = np.array(kpt_oks_sigmas) + # COCOAPI requires every detection and every gt to have keypoints, so + # we just take the first entry from both + num_keypoints_dt = len(coco_results[0]["keypoints"]) // 3 + num_keypoints_gt = len(next(iter(coco_gt.anns.values()))["keypoints"]) // 3 + num_keypoints_oks = len(coco_eval.params.kpt_oks_sigmas) + assert num_keypoints_oks == num_keypoints_dt == num_keypoints_gt, ( + f"[COCOEvaluator] Prediction contain {num_keypoints_dt} keypoints. " + f"Ground truth contains {num_keypoints_gt} keypoints. " + f"The length of cfg.TEST.KEYPOINT_OKS_SIGMAS is {num_keypoints_oks}. " + "They have to agree with each other. For meaning of OKS, please refer to " + "http://cocodataset.org/#keypoints-eval." + ) + + coco_eval.evaluate() + coco_eval.accumulate() + coco_eval.summarize() + + return coco_eval + + +class COCOevalMaxDets(COCOeval): + """ + Modified version of COCOeval for evaluating AP with a custom + maxDets (by default for COCO, maxDets is 100) + """ + + def summarize(self): + """ + Compute and display summary metrics for evaluation results given + a custom value for max_dets_per_image + """ + + def _summarize(ap=1, iouThr=None, areaRng="all", maxDets=100): + p = self.params + iStr = " {:<18} {} @[ IoU={:<9} | area={:>6s} | maxDets={:>3d} ] = {:0.3f}" + titleStr = "Average Precision" if ap == 1 else "Average Recall" + typeStr = "(AP)" if ap == 1 else "(AR)" + iouStr = ( + "{:0.2f}:{:0.2f}".format(p.iouThrs[0], p.iouThrs[-1]) + if iouThr is None + else "{:0.2f}".format(iouThr) + ) + + aind = [i for i, aRng in enumerate(p.areaRngLbl) if aRng == areaRng] + mind = [i for i, mDet in enumerate(p.maxDets) if mDet == maxDets] + if ap == 1: + # dimension of precision: [TxRxKxAxM] + s = self.eval["precision"] + # IoU + if iouThr is not None: + t = np.where(iouThr == p.iouThrs)[0] + s = s[t] + s = s[:, :, :, aind, mind] + else: + # dimension of recall: [TxKxAxM] + s = self.eval["recall"] + if iouThr is not None: + t = np.where(iouThr == p.iouThrs)[0] + s = s[t] + s = s[:, :, aind, mind] + if len(s[s > -1]) == 0: + mean_s = -1 + else: + mean_s = np.mean(s[s > -1]) + print(iStr.format(titleStr, typeStr, iouStr, areaRng, maxDets, mean_s)) + return mean_s + + def _summarizeDets(): + stats = np.zeros((12,)) + # Evaluate AP using the custom limit on maximum detections per image + stats[0] = _summarize(1, maxDets=self.params.maxDets[2]) + stats[1] = _summarize(1, iouThr=0.5, maxDets=self.params.maxDets[2]) + stats[2] = _summarize(1, iouThr=0.75, maxDets=self.params.maxDets[2]) + stats[3] = _summarize(1, areaRng="small", maxDets=self.params.maxDets[2]) + stats[4] = _summarize(1, areaRng="medium", maxDets=self.params.maxDets[2]) + stats[5] = _summarize(1, areaRng="large", maxDets=self.params.maxDets[2]) + stats[6] = _summarize(0, maxDets=self.params.maxDets[0]) + stats[7] = _summarize(0, maxDets=self.params.maxDets[1]) + stats[8] = _summarize(0, maxDets=self.params.maxDets[2]) + stats[9] = _summarize(0, areaRng="small", maxDets=self.params.maxDets[2]) + stats[10] = _summarize(0, areaRng="medium", maxDets=self.params.maxDets[2]) + stats[11] = _summarize(0, areaRng="large", maxDets=self.params.maxDets[2]) + return stats + + def _summarizeKps(): + stats = np.zeros((10,)) + stats[0] = _summarize(1, maxDets=20) + stats[1] = _summarize(1, maxDets=20, iouThr=0.5) + stats[2] = _summarize(1, maxDets=20, iouThr=0.75) + stats[3] = _summarize(1, maxDets=20, areaRng="medium") + stats[4] = _summarize(1, maxDets=20, areaRng="large") + stats[5] = _summarize(0, maxDets=20) + stats[6] = _summarize(0, maxDets=20, iouThr=0.5) + stats[7] = _summarize(0, maxDets=20, iouThr=0.75) + stats[8] = _summarize(0, maxDets=20, areaRng="medium") + stats[9] = _summarize(0, maxDets=20, areaRng="large") + return stats + + if not self.eval: + raise Exception("Please run accumulate() first") + iouType = self.params.iouType + if iouType == "segm" or iouType == "bbox": + summarize = _summarizeDets + elif iouType == "keypoints": + summarize = _summarizeKps + self.stats = summarize() + + def __str__(self): + self.summarize() diff --git a/detectron2/detectron2/evaluation/evaluator.py b/detectron2/detectron2/evaluation/evaluator.py new file mode 100755 index 0000000..baf9960 --- /dev/null +++ b/detectron2/detectron2/evaluation/evaluator.py @@ -0,0 +1,224 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import datetime +import logging +import time +from collections import OrderedDict, abc +from contextlib import ExitStack, contextmanager +from typing import List, Union +import torch +from torch import nn + +from detectron2.utils.comm import get_world_size, is_main_process +from detectron2.utils.logger import log_every_n_seconds + + +class DatasetEvaluator: + """ + Base class for a dataset evaluator. + + The function :func:`inference_on_dataset` runs the model over + all samples in the dataset, and have a DatasetEvaluator to process the inputs/outputs. + + This class will accumulate information of the inputs/outputs (by :meth:`process`), + and produce evaluation results in the end (by :meth:`evaluate`). + """ + + def reset(self): + """ + Preparation for a new round of evaluation. + Should be called before starting a round of evaluation. + """ + pass + + def process(self, inputs, outputs): + """ + Process the pair of inputs and outputs. + If they contain batches, the pairs can be consumed one-by-one using `zip`: + + .. code-block:: python + + for input_, output in zip(inputs, outputs): + # do evaluation on single input/output pair + ... + + Args: + inputs (list): the inputs that's used to call the model. + outputs (list): the return value of `model(inputs)` + """ + pass + + def evaluate(self): + """ + Evaluate/summarize the performance, after processing all input/output pairs. + + Returns: + dict: + A new evaluator class can return a dict of arbitrary format + as long as the user can process the results. + In our train_net.py, we expect the following format: + + * key: the name of the task (e.g., bbox) + * value: a dict of {metric name: score}, e.g.: {"AP50": 80} + """ + pass + + +class DatasetEvaluators(DatasetEvaluator): + """ + Wrapper class to combine multiple :class:`DatasetEvaluator` instances. + + This class dispatches every evaluation call to + all of its :class:`DatasetEvaluator`. + """ + + def __init__(self, evaluators): + """ + Args: + evaluators (list): the evaluators to combine. + """ + super().__init__() + self._evaluators = evaluators + + def reset(self): + for evaluator in self._evaluators: + evaluator.reset() + + def process(self, inputs, outputs): + for evaluator in self._evaluators: + evaluator.process(inputs, outputs) + + def evaluate(self): + results = OrderedDict() + for evaluator in self._evaluators: + result = evaluator.evaluate() + if is_main_process() and result is not None: + for k, v in result.items(): + assert ( + k not in results + ), "Different evaluators produce results with the same key {}".format(k) + results[k] = v + return results + + +def inference_on_dataset( + model, data_loader, evaluator: Union[DatasetEvaluator, List[DatasetEvaluator], None] +): + """ + Run model on the data_loader and evaluate the metrics with evaluator. + Also benchmark the inference speed of `model.__call__` accurately. + The model will be used in eval mode. + + Args: + model (callable): a callable which takes an object from + `data_loader` and returns some outputs. + + If it's an nn.Module, it will be temporarily set to `eval` mode. + If you wish to evaluate a model in `training` mode instead, you can + wrap the given model and override its behavior of `.eval()` and `.train()`. + data_loader: an iterable object with a length. + The elements it generates will be the inputs to the model. + evaluator: the evaluator(s) to run. Use `None` if you only want to benchmark, + but don't want to do any evaluation. + + Returns: + The return value of `evaluator.evaluate()` + """ + num_devices = get_world_size() + logger = logging.getLogger(__name__) + logger.info("Start inference on {} batches".format(len(data_loader))) + + total = len(data_loader) # inference data loader must have a fixed length + if evaluator is None: + # create a no-op evaluator + evaluator = DatasetEvaluators([]) + if isinstance(evaluator, abc.MutableSequence): + evaluator = DatasetEvaluators(evaluator) + evaluator.reset() + + num_warmup = min(5, total - 1) + start_time = time.perf_counter() + total_data_time = 0 + total_compute_time = 0 + total_eval_time = 0 + with ExitStack() as stack: + if isinstance(model, nn.Module): + stack.enter_context(inference_context(model)) + stack.enter_context(torch.no_grad()) + + start_data_time = time.perf_counter() + for idx, inputs in enumerate(data_loader): + total_data_time += time.perf_counter() - start_data_time + if idx == num_warmup: + start_time = time.perf_counter() + total_data_time = 0 + total_compute_time = 0 + total_eval_time = 0 + + start_compute_time = time.perf_counter() + outputs = model(inputs) + if torch.cuda.is_available(): + torch.cuda.synchronize() + total_compute_time += time.perf_counter() - start_compute_time + + start_eval_time = time.perf_counter() + evaluator.process(inputs, outputs) + total_eval_time += time.perf_counter() - start_eval_time + + iters_after_start = idx + 1 - num_warmup * int(idx >= num_warmup) + data_seconds_per_iter = total_data_time / iters_after_start + compute_seconds_per_iter = total_compute_time / iters_after_start + eval_seconds_per_iter = total_eval_time / iters_after_start + total_seconds_per_iter = (time.perf_counter() - start_time) / iters_after_start + if idx >= num_warmup * 2 or compute_seconds_per_iter > 5: + eta = datetime.timedelta(seconds=int(total_seconds_per_iter * (total - idx - 1))) + log_every_n_seconds( + logging.INFO, + ( + f"Inference done {idx + 1}/{total}. " + f"Dataloading: {data_seconds_per_iter:.4f} s/iter. " + f"Inference: {compute_seconds_per_iter:.4f} s/iter. " + f"Eval: {eval_seconds_per_iter:.4f} s/iter. " + f"Total: {total_seconds_per_iter:.4f} s/iter. " + f"ETA={eta}" + ), + n=5, + ) + start_data_time = time.perf_counter() + + # Measure the time only for this worker (before the synchronization barrier) + total_time = time.perf_counter() - start_time + total_time_str = str(datetime.timedelta(seconds=total_time)) + # NOTE this format is parsed by grep + logger.info( + "Total inference time: {} ({:.6f} s / iter per device, on {} devices)".format( + total_time_str, total_time / (total - num_warmup), num_devices + ) + ) + total_compute_time_str = str(datetime.timedelta(seconds=int(total_compute_time))) + logger.info( + "Total inference pure compute time: {} ({:.6f} s / iter per device, on {} devices)".format( + total_compute_time_str, total_compute_time / (total - num_warmup), num_devices + ) + ) + + results = evaluator.evaluate() + # An evaluator may return None when not in main process. + # Replace it by an empty dict instead to make it easier for downstream code to handle + if results is None: + results = {} + return results + + +@contextmanager +def inference_context(model): + """ + A context where the model is temporarily changed to eval mode, + and restored to previous mode afterwards. + + Args: + model: a torch Module + """ + training_mode = model.training + model.eval() + yield + model.train(training_mode) diff --git a/detectron2/detectron2/evaluation/fast_eval_api.py b/detectron2/detectron2/evaluation/fast_eval_api.py new file mode 100755 index 0000000..2eb202b --- /dev/null +++ b/detectron2/detectron2/evaluation/fast_eval_api.py @@ -0,0 +1,121 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import logging +import numpy as np +import time +from pycocotools.cocoeval import COCOeval + +from detectron2 import _C + +logger = logging.getLogger(__name__) + + +class COCOeval_opt(COCOeval): + """ + This is a slightly modified version of the original COCO API, where the functions evaluateImg() + and accumulate() are implemented in C++ to speedup evaluation + """ + + def evaluate(self): + """ + Run per image evaluation on given images and store results in self.evalImgs_cpp, a + datastructure that isn't readable from Python but is used by a c++ implementation of + accumulate(). Unlike the original COCO PythonAPI, we don't populate the datastructure + self.evalImgs because this datastructure is a computational bottleneck. + :return: None + """ + tic = time.time() + + p = self.params + # add backward compatibility if useSegm is specified in params + if p.useSegm is not None: + p.iouType = "segm" if p.useSegm == 1 else "bbox" + logger.info("Evaluate annotation type *{}*".format(p.iouType)) + p.imgIds = list(np.unique(p.imgIds)) + if p.useCats: + p.catIds = list(np.unique(p.catIds)) + p.maxDets = sorted(p.maxDets) + self.params = p + + self._prepare() # bottleneck + + # loop through images, area range, max detection number + catIds = p.catIds if p.useCats else [-1] + + if p.iouType == "segm" or p.iouType == "bbox": + computeIoU = self.computeIoU + elif p.iouType == "keypoints": + computeIoU = self.computeOks + self.ious = { + (imgId, catId): computeIoU(imgId, catId) for imgId in p.imgIds for catId in catIds + } # bottleneck + + maxDet = p.maxDets[-1] + + # <<<< Beginning of code differences with original COCO API + def convert_instances_to_cpp(instances, is_det=False): + # Convert annotations for a list of instances in an image to a format that's fast + # to access in C++ + instances_cpp = [] + for instance in instances: + instance_cpp = _C.InstanceAnnotation( + int(instance["id"]), + instance["score"] if is_det else instance.get("score", 0.0), + instance["area"], + bool(instance.get("iscrowd", 0)), + bool(instance.get("ignore", 0)), + ) + instances_cpp.append(instance_cpp) + return instances_cpp + + # Convert GT annotations, detections, and IOUs to a format that's fast to access in C++ + ground_truth_instances = [ + [convert_instances_to_cpp(self._gts[imgId, catId]) for catId in p.catIds] + for imgId in p.imgIds + ] + detected_instances = [ + [convert_instances_to_cpp(self._dts[imgId, catId], is_det=True) for catId in p.catIds] + for imgId in p.imgIds + ] + ious = [[self.ious[imgId, catId] for catId in catIds] for imgId in p.imgIds] + + if not p.useCats: + # For each image, flatten per-category lists into a single list + ground_truth_instances = [[[o for c in i for o in c]] for i in ground_truth_instances] + detected_instances = [[[o for c in i for o in c]] for i in detected_instances] + + # Call C++ implementation of self.evaluateImgs() + self._evalImgs_cpp = _C.COCOevalEvaluateImages( + p.areaRng, maxDet, p.iouThrs, ious, ground_truth_instances, detected_instances + ) + self._evalImgs = None + + self._paramsEval = copy.deepcopy(self.params) + toc = time.time() + logger.info("COCOeval_opt.evaluate() finished in {:0.2f} seconds.".format(toc - tic)) + # >>>> End of code differences with original COCO API + + def accumulate(self): + """ + Accumulate per image evaluation results and store the result in self.eval. Does not + support changing parameter settings from those used by self.evaluate() + """ + logger.info("Accumulating evaluation results...") + tic = time.time() + assert hasattr( + self, "_evalImgs_cpp" + ), "evaluate() must be called before accmulate() is called." + + self.eval = _C.COCOevalAccumulate(self._paramsEval, self._evalImgs_cpp) + + # recall is num_iou_thresholds X num_categories X num_area_ranges X num_max_detections + self.eval["recall"] = np.array(self.eval["recall"]).reshape( + self.eval["counts"][:1] + self.eval["counts"][2:] + ) + + # precision and scores are num_iou_thresholds X num_recall_thresholds X num_categories X + # num_area_ranges X num_max_detections + self.eval["precision"] = np.array(self.eval["precision"]).reshape(self.eval["counts"]) + self.eval["scores"] = np.array(self.eval["scores"]).reshape(self.eval["counts"]) + toc = time.time() + logger.info("COCOeval_opt.accumulate() finished in {:0.2f} seconds.".format(toc - tic)) diff --git a/detectron2/detectron2/evaluation/lvis_evaluation.py b/detectron2/detectron2/evaluation/lvis_evaluation.py new file mode 100755 index 0000000..6cc854a --- /dev/null +++ b/detectron2/detectron2/evaluation/lvis_evaluation.py @@ -0,0 +1,380 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import itertools +import json +import logging +import os +import pickle +from collections import OrderedDict +import torch + +import detectron2.utils.comm as comm +from detectron2.config import CfgNode +from detectron2.data import MetadataCatalog +from detectron2.structures import Boxes, BoxMode, pairwise_iou +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import create_small_table + +from .coco_evaluation import instances_to_coco_json +from .evaluator import DatasetEvaluator + + +class LVISEvaluator(DatasetEvaluator): + """ + Evaluate object proposal and instance detection/segmentation outputs using + LVIS's metrics and evaluation API. + """ + + def __init__( + self, + dataset_name, + tasks=None, + distributed=True, + output_dir=None, + *, + max_dets_per_image=None, + ): + """ + Args: + dataset_name (str): name of the dataset to be evaluated. + It must have the following corresponding metadata: + "json_file": the path to the LVIS format annotation + tasks (tuple[str]): tasks that can be evaluated under the given + configuration. A task is one of "bbox", "segm". + By default, will infer this automatically from predictions. + distributed (True): if True, will collect results from all ranks for evaluation. + Otherwise, will evaluate the results in the current process. + output_dir (str): optional, an output directory to dump results. + max_dets_per_image (None or int): limit on maximum detections per image in evaluating AP + This limit, by default of the LVIS dataset, is 300. + """ + from lvis import LVIS + + self._logger = logging.getLogger(__name__) + + if tasks is not None and isinstance(tasks, CfgNode): + self._logger.warn( + "COCO Evaluator instantiated using config, this is deprecated behavior." + " Please pass in explicit arguments instead." + ) + self._tasks = None # Infering it from predictions should be better + else: + self._tasks = tasks + + self._distributed = distributed + self._output_dir = output_dir + self._max_dets_per_image = max_dets_per_image + + self._cpu_device = torch.device("cpu") + + self._metadata = MetadataCatalog.get(dataset_name) + json_file = PathManager.get_local_path(self._metadata.json_file) + self._lvis_api = LVIS(json_file) + # Test set json files do not contain annotations (evaluation must be + # performed using the LVIS evaluation server). + self._do_evaluation = len(self._lvis_api.get_ann_ids()) > 0 + + def reset(self): + self._predictions = [] + + def process(self, inputs, outputs): + """ + Args: + inputs: the inputs to a LVIS model (e.g., GeneralizedRCNN). + It is a list of dict. Each dict corresponds to an image and + contains keys like "height", "width", "file_name", "image_id". + outputs: the outputs of a LVIS model. It is a list of dicts with key + "instances" that contains :class:`Instances`. + """ + for input, output in zip(inputs, outputs): + prediction = {"image_id": input["image_id"]} + + if "instances" in output: + instances = output["instances"].to(self._cpu_device) + prediction["instances"] = instances_to_coco_json(instances, input["image_id"]) + if "proposals" in output: + prediction["proposals"] = output["proposals"].to(self._cpu_device) + self._predictions.append(prediction) + + def evaluate(self): + if self._distributed: + comm.synchronize() + predictions = comm.gather(self._predictions, dst=0) + predictions = list(itertools.chain(*predictions)) + + if not comm.is_main_process(): + return + else: + predictions = self._predictions + + if len(predictions) == 0: + self._logger.warning("[LVISEvaluator] Did not receive valid predictions.") + return {} + + if self._output_dir: + PathManager.mkdirs(self._output_dir) + file_path = os.path.join(self._output_dir, "instances_predictions.pth") + with PathManager.open(file_path, "wb") as f: + torch.save(predictions, f) + + self._results = OrderedDict() + if "proposals" in predictions[0]: + self._eval_box_proposals(predictions) + if "instances" in predictions[0]: + self._eval_predictions(predictions) + # Copy so the caller can do whatever with results + return copy.deepcopy(self._results) + + def _tasks_from_predictions(self, predictions): + for pred in predictions: + if "segmentation" in pred: + return ("bbox", "segm") + return ("bbox",) + + def _eval_predictions(self, predictions): + """ + Evaluate predictions. Fill self._results with the metrics of the tasks. + + Args: + predictions (list[dict]): list of outputs from the model + """ + self._logger.info("Preparing results in the LVIS format ...") + lvis_results = list(itertools.chain(*[x["instances"] for x in predictions])) + tasks = self._tasks or self._tasks_from_predictions(lvis_results) + + # LVIS evaluator can be used to evaluate results for COCO dataset categories. + # In this case `_metadata` variable will have a field with COCO-specific category mapping. + if hasattr(self._metadata, "thing_dataset_id_to_contiguous_id"): + reverse_id_mapping = { + v: k for k, v in self._metadata.thing_dataset_id_to_contiguous_id.items() + } + for result in lvis_results: + result["category_id"] = reverse_id_mapping[result["category_id"]] + else: + # unmap the category ids for LVIS (from 0-indexed to 1-indexed) + for result in lvis_results: + result["category_id"] += 1 + + if self._output_dir: + file_path = os.path.join(self._output_dir, "lvis_instances_results.json") + self._logger.info("Saving results to {}".format(file_path)) + with PathManager.open(file_path, "w") as f: + f.write(json.dumps(lvis_results)) + f.flush() + + if not self._do_evaluation: + self._logger.info("Annotations are not available for evaluation.") + return + + self._logger.info("Evaluating predictions ...") + for task in sorted(tasks): + res = _evaluate_predictions_on_lvis( + self._lvis_api, + lvis_results, + task, + max_dets_per_image=self._max_dets_per_image, + class_names=self._metadata.get("thing_classes"), + ) + self._results[task] = res + + def _eval_box_proposals(self, predictions): + """ + Evaluate the box proposals in predictions. + Fill self._results with the metrics for "box_proposals" task. + """ + if self._output_dir: + # Saving generated box proposals to file. + # Predicted box_proposals are in XYXY_ABS mode. + bbox_mode = BoxMode.XYXY_ABS.value + ids, boxes, objectness_logits = [], [], [] + for prediction in predictions: + ids.append(prediction["image_id"]) + boxes.append(prediction["proposals"].proposal_boxes.tensor.numpy()) + objectness_logits.append(prediction["proposals"].objectness_logits.numpy()) + + proposal_data = { + "boxes": boxes, + "objectness_logits": objectness_logits, + "ids": ids, + "bbox_mode": bbox_mode, + } + with PathManager.open(os.path.join(self._output_dir, "box_proposals.pkl"), "wb") as f: + pickle.dump(proposal_data, f) + + if not self._do_evaluation: + self._logger.info("Annotations are not available for evaluation.") + return + + self._logger.info("Evaluating bbox proposals ...") + res = {} + areas = {"all": "", "small": "s", "medium": "m", "large": "l"} + for limit in [100, 1000]: + for area, suffix in areas.items(): + stats = _evaluate_box_proposals(predictions, self._lvis_api, area=area, limit=limit) + key = "AR{}@{:d}".format(suffix, limit) + res[key] = float(stats["ar"].item() * 100) + self._logger.info("Proposal metrics: \n" + create_small_table(res)) + self._results["box_proposals"] = res + + +# inspired from Detectron: +# https://github.com/facebookresearch/Detectron/blob/a6a835f5b8208c45d0dce217ce9bbda915f44df7/detectron/datasets/json_dataset_evaluator.py#L255 # noqa +def _evaluate_box_proposals(dataset_predictions, lvis_api, thresholds=None, area="all", limit=None): + """ + Evaluate detection proposal recall metrics. This function is a much + faster alternative to the official LVIS API recall evaluation code. However, + it produces slightly different results. + """ + # Record max overlap value for each gt box + # Return vector of overlap values + areas = { + "all": 0, + "small": 1, + "medium": 2, + "large": 3, + "96-128": 4, + "128-256": 5, + "256-512": 6, + "512-inf": 7, + } + area_ranges = [ + [0**2, 1e5**2], # all + [0**2, 32**2], # small + [32**2, 96**2], # medium + [96**2, 1e5**2], # large + [96**2, 128**2], # 96-128 + [128**2, 256**2], # 128-256 + [256**2, 512**2], # 256-512 + [512**2, 1e5**2], + ] # 512-inf + assert area in areas, "Unknown area range: {}".format(area) + area_range = area_ranges[areas[area]] + gt_overlaps = [] + num_pos = 0 + + for prediction_dict in dataset_predictions: + predictions = prediction_dict["proposals"] + + # sort predictions in descending order + # TODO maybe remove this and make it explicit in the documentation + inds = predictions.objectness_logits.sort(descending=True)[1] + predictions = predictions[inds] + + ann_ids = lvis_api.get_ann_ids(img_ids=[prediction_dict["image_id"]]) + anno = lvis_api.load_anns(ann_ids) + gt_boxes = [ + BoxMode.convert(obj["bbox"], BoxMode.XYWH_ABS, BoxMode.XYXY_ABS) for obj in anno + ] + gt_boxes = torch.as_tensor(gt_boxes).reshape(-1, 4) # guard against no boxes + gt_boxes = Boxes(gt_boxes) + gt_areas = torch.as_tensor([obj["area"] for obj in anno]) + + if len(gt_boxes) == 0 or len(predictions) == 0: + continue + + valid_gt_inds = (gt_areas >= area_range[0]) & (gt_areas <= area_range[1]) + gt_boxes = gt_boxes[valid_gt_inds] + + num_pos += len(gt_boxes) + + if len(gt_boxes) == 0: + continue + + if limit is not None and len(predictions) > limit: + predictions = predictions[:limit] + + overlaps = pairwise_iou(predictions.proposal_boxes, gt_boxes) + + _gt_overlaps = torch.zeros(len(gt_boxes)) + for j in range(min(len(predictions), len(gt_boxes))): + # find which proposal box maximally covers each gt box + # and get the iou amount of coverage for each gt box + max_overlaps, argmax_overlaps = overlaps.max(dim=0) + + # find which gt box is 'best' covered (i.e. 'best' = most iou) + gt_ovr, gt_ind = max_overlaps.max(dim=0) + assert gt_ovr >= 0 + # find the proposal box that covers the best covered gt box + box_ind = argmax_overlaps[gt_ind] + # record the iou coverage of this gt box + _gt_overlaps[j] = overlaps[box_ind, gt_ind] + assert _gt_overlaps[j] == gt_ovr + # mark the proposal box and the gt box as used + overlaps[box_ind, :] = -1 + overlaps[:, gt_ind] = -1 + + # append recorded iou coverage level + gt_overlaps.append(_gt_overlaps) + gt_overlaps = ( + torch.cat(gt_overlaps, dim=0) if len(gt_overlaps) else torch.zeros(0, dtype=torch.float32) + ) + gt_overlaps, _ = torch.sort(gt_overlaps) + + if thresholds is None: + step = 0.05 + thresholds = torch.arange(0.5, 0.95 + 1e-5, step, dtype=torch.float32) + recalls = torch.zeros_like(thresholds) + # compute recall for each iou threshold + for i, t in enumerate(thresholds): + recalls[i] = (gt_overlaps >= t).float().sum() / float(num_pos) + # ar = 2 * np.trapz(recalls, thresholds) + ar = recalls.mean() + return { + "ar": ar, + "recalls": recalls, + "thresholds": thresholds, + "gt_overlaps": gt_overlaps, + "num_pos": num_pos, + } + + +def _evaluate_predictions_on_lvis( + lvis_gt, lvis_results, iou_type, max_dets_per_image=None, class_names=None +): + """ + Args: + iou_type (str): + max_dets_per_image (None or int): limit on maximum detections per image in evaluating AP + This limit, by default of the LVIS dataset, is 300. + class_names (None or list[str]): if provided, will use it to predict + per-category AP. + + Returns: + a dict of {metric name: score} + """ + metrics = { + "bbox": ["AP", "AP50", "AP75", "APs", "APm", "APl", "APr", "APc", "APf"], + "segm": ["AP", "AP50", "AP75", "APs", "APm", "APl", "APr", "APc", "APf"], + }[iou_type] + + logger = logging.getLogger(__name__) + + if len(lvis_results) == 0: # TODO: check if needed + logger.warn("No predictions from the model!") + return {metric: float("nan") for metric in metrics} + + if iou_type == "segm": + lvis_results = copy.deepcopy(lvis_results) + # When evaluating mask AP, if the results contain bbox, LVIS API will + # use the box area as the area of the instance, instead of the mask area. + # This leads to a different definition of small/medium/large. + # We remove the bbox field to let mask AP use mask area. + for c in lvis_results: + c.pop("bbox", None) + + if max_dets_per_image is None: + max_dets_per_image = 300 # Default for LVIS dataset + + from lvis import LVISEval, LVISResults + + logger.info(f"Evaluating with max detections per image = {max_dets_per_image}") + lvis_results = LVISResults(lvis_gt, lvis_results, max_dets=max_dets_per_image) + lvis_eval = LVISEval(lvis_gt, lvis_results, iou_type) + lvis_eval.run() + lvis_eval.print_results() + + # Pull the standard metrics from the LVIS results + results = lvis_eval.get_results() + results = {metric: float(results[metric] * 100) for metric in metrics} + logger.info("Evaluation results for {}: \n".format(iou_type) + create_small_table(results)) + return results diff --git a/detectron2/detectron2/evaluation/panoptic_evaluation.py b/detectron2/detectron2/evaluation/panoptic_evaluation.py new file mode 100755 index 0000000..9fb3462 --- /dev/null +++ b/detectron2/detectron2/evaluation/panoptic_evaluation.py @@ -0,0 +1,199 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import contextlib +import io +import itertools +import json +import logging +import numpy as np +import os +import tempfile +from collections import OrderedDict +from typing import Optional +from PIL import Image +from tabulate import tabulate + +from detectron2.data import MetadataCatalog +from detectron2.utils import comm +from detectron2.utils.file_io import PathManager + +from .evaluator import DatasetEvaluator + +logger = logging.getLogger(__name__) + + +class COCOPanopticEvaluator(DatasetEvaluator): + """ + Evaluate Panoptic Quality metrics on COCO using PanopticAPI. + It saves panoptic segmentation prediction in `output_dir` + + It contains a synchronize call and has to be called from all workers. + """ + + def __init__(self, dataset_name: str, output_dir: Optional[str] = None): + """ + Args: + dataset_name: name of the dataset + output_dir: output directory to save results for evaluation. + """ + self._metadata = MetadataCatalog.get(dataset_name) + self._thing_contiguous_id_to_dataset_id = { + v: k for k, v in self._metadata.thing_dataset_id_to_contiguous_id.items() + } + self._stuff_contiguous_id_to_dataset_id = { + v: k for k, v in self._metadata.stuff_dataset_id_to_contiguous_id.items() + } + + self._output_dir = output_dir + if self._output_dir is not None: + PathManager.mkdirs(self._output_dir) + + def reset(self): + self._predictions = [] + + def _convert_category_id(self, segment_info): + isthing = segment_info.pop("isthing", None) + if isthing is None: + # the model produces panoptic category id directly. No more conversion needed + return segment_info + if isthing is True: + segment_info["category_id"] = self._thing_contiguous_id_to_dataset_id[ + segment_info["category_id"] + ] + else: + segment_info["category_id"] = self._stuff_contiguous_id_to_dataset_id[ + segment_info["category_id"] + ] + return segment_info + + def process(self, inputs, outputs): + from panopticapi.utils import id2rgb + + for input, output in zip(inputs, outputs): + panoptic_img, segments_info = output["panoptic_seg"] + panoptic_img = panoptic_img.cpu().numpy() + if segments_info is None: + # If "segments_info" is None, we assume "panoptic_img" is a + # H*W int32 image storing the panoptic_id in the format of + # category_id * label_divisor + instance_id. We reserve -1 for + # VOID label, and add 1 to panoptic_img since the official + # evaluation script uses 0 for VOID label. + label_divisor = self._metadata.label_divisor + segments_info = [] + for panoptic_label in np.unique(panoptic_img): + if panoptic_label == -1: + # VOID region. + continue + pred_class = panoptic_label // label_divisor + isthing = ( + pred_class in self._metadata.thing_dataset_id_to_contiguous_id.values() + ) + segments_info.append( + { + "id": int(panoptic_label) + 1, + "category_id": int(pred_class), + "isthing": bool(isthing), + } + ) + # Official evaluation script uses 0 for VOID label. + panoptic_img += 1 + + file_name = os.path.basename(input["file_name"]) + file_name_png = os.path.splitext(file_name)[0] + ".png" + with io.BytesIO() as out: + Image.fromarray(id2rgb(panoptic_img)).save(out, format="PNG") + segments_info = [self._convert_category_id(x) for x in segments_info] + self._predictions.append( + { + "image_id": input["image_id"], + "file_name": file_name_png, + "png_string": out.getvalue(), + "segments_info": segments_info, + } + ) + + def evaluate(self): + comm.synchronize() + + self._predictions = comm.gather(self._predictions) + self._predictions = list(itertools.chain(*self._predictions)) + if not comm.is_main_process(): + return + + # PanopticApi requires local files + gt_json = PathManager.get_local_path(self._metadata.panoptic_json) + gt_folder = PathManager.get_local_path(self._metadata.panoptic_root) + + with tempfile.TemporaryDirectory(prefix="panoptic_eval") as pred_dir: + logger.info("Writing all panoptic predictions to {} ...".format(pred_dir)) + for p in self._predictions: + with open(os.path.join(pred_dir, p["file_name"]), "wb") as f: + f.write(p.pop("png_string")) + + with open(gt_json, "r") as f: + json_data = json.load(f) + json_data["annotations"] = self._predictions + + output_dir = self._output_dir or pred_dir + predictions_json = os.path.join(output_dir, "predictions.json") + with PathManager.open(predictions_json, "w") as f: + f.write(json.dumps(json_data)) + + from panopticapi.evaluation import pq_compute + + with contextlib.redirect_stdout(io.StringIO()): + pq_res = pq_compute( + gt_json, + PathManager.get_local_path(predictions_json), + gt_folder=gt_folder, + pred_folder=pred_dir, + ) + + res = {} + res["PQ"] = 100 * pq_res["All"]["pq"] + res["SQ"] = 100 * pq_res["All"]["sq"] + res["RQ"] = 100 * pq_res["All"]["rq"] + res["PQ_th"] = 100 * pq_res["Things"]["pq"] + res["SQ_th"] = 100 * pq_res["Things"]["sq"] + res["RQ_th"] = 100 * pq_res["Things"]["rq"] + res["PQ_st"] = 100 * pq_res["Stuff"]["pq"] + res["SQ_st"] = 100 * pq_res["Stuff"]["sq"] + res["RQ_st"] = 100 * pq_res["Stuff"]["rq"] + + results = OrderedDict({"panoptic_seg": res}) + _print_panoptic_results(pq_res) + + return results + + +def _print_panoptic_results(pq_res): + headers = ["", "PQ", "SQ", "RQ", "#categories"] + data = [] + for name in ["All", "Things", "Stuff"]: + row = [name] + [pq_res[name][k] * 100 for k in ["pq", "sq", "rq"]] + [pq_res[name]["n"]] + data.append(row) + table = tabulate( + data, headers=headers, tablefmt="pipe", floatfmt=".3f", stralign="center", numalign="center" + ) + logger.info("Panoptic Evaluation Results:\n" + table) + + +if __name__ == "__main__": + from detectron2.utils.logger import setup_logger + + logger = setup_logger() + import argparse + + parser = argparse.ArgumentParser() + parser.add_argument("--gt-json") + parser.add_argument("--gt-dir") + parser.add_argument("--pred-json") + parser.add_argument("--pred-dir") + args = parser.parse_args() + + from panopticapi.evaluation import pq_compute + + with contextlib.redirect_stdout(io.StringIO()): + pq_res = pq_compute( + args.gt_json, args.pred_json, gt_folder=args.gt_dir, pred_folder=args.pred_dir + ) + _print_panoptic_results(pq_res) diff --git a/detectron2/detectron2/evaluation/pascal_voc_evaluation.py b/detectron2/detectron2/evaluation/pascal_voc_evaluation.py new file mode 100755 index 0000000..88bb42e --- /dev/null +++ b/detectron2/detectron2/evaluation/pascal_voc_evaluation.py @@ -0,0 +1,300 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +import numpy as np +import os +import tempfile +import xml.etree.ElementTree as ET +from collections import OrderedDict, defaultdict +from functools import lru_cache +import torch + +from detectron2.data import MetadataCatalog +from detectron2.utils import comm +from detectron2.utils.file_io import PathManager + +from .evaluator import DatasetEvaluator + + +class PascalVOCDetectionEvaluator(DatasetEvaluator): + """ + Evaluate Pascal VOC style AP for Pascal VOC dataset. + It contains a synchronization, therefore has to be called from all ranks. + + Note that the concept of AP can be implemented in different ways and may not + produce identical results. This class mimics the implementation of the official + Pascal VOC Matlab API, and should produce similar but not identical results to the + official API. + """ + + def __init__(self, dataset_name): + """ + Args: + dataset_name (str): name of the dataset, e.g., "voc_2007_test" + """ + self._dataset_name = dataset_name + meta = MetadataCatalog.get(dataset_name) + + # Too many tiny files, download all to local for speed. + annotation_dir_local = PathManager.get_local_path( + os.path.join(meta.dirname, "Annotations/") + ) + self._anno_file_template = os.path.join(annotation_dir_local, "{}.xml") + self._image_set_path = os.path.join(meta.dirname, "ImageSets", "Main", meta.split + ".txt") + self._class_names = meta.thing_classes + assert meta.year in [2007, 2012], meta.year + self._is_2007 = meta.year == 2007 + self._cpu_device = torch.device("cpu") + self._logger = logging.getLogger(__name__) + + def reset(self): + self._predictions = defaultdict(list) # class name -> list of prediction strings + + def process(self, inputs, outputs): + for input, output in zip(inputs, outputs): + image_id = input["image_id"] + instances = output["instances"].to(self._cpu_device) + boxes = instances.pred_boxes.tensor.numpy() + scores = instances.scores.tolist() + classes = instances.pred_classes.tolist() + for box, score, cls in zip(boxes, scores, classes): + xmin, ymin, xmax, ymax = box + # The inverse of data loading logic in `datasets/pascal_voc.py` + xmin += 1 + ymin += 1 + self._predictions[cls].append( + f"{image_id} {score:.3f} {xmin:.1f} {ymin:.1f} {xmax:.1f} {ymax:.1f}" + ) + + def evaluate(self): + """ + Returns: + dict: has a key "segm", whose value is a dict of "AP", "AP50", and "AP75". + """ + all_predictions = comm.gather(self._predictions, dst=0) + if not comm.is_main_process(): + return + predictions = defaultdict(list) + for predictions_per_rank in all_predictions: + for clsid, lines in predictions_per_rank.items(): + predictions[clsid].extend(lines) + del all_predictions + + self._logger.info( + "Evaluating {} using {} metric. " + "Note that results do not use the official Matlab API.".format( + self._dataset_name, 2007 if self._is_2007 else 2012 + ) + ) + + with tempfile.TemporaryDirectory(prefix="pascal_voc_eval_") as dirname: + res_file_template = os.path.join(dirname, "{}.txt") + + aps = defaultdict(list) # iou -> ap per class + for cls_id, cls_name in enumerate(self._class_names): + lines = predictions.get(cls_id, [""]) + + with open(res_file_template.format(cls_name), "w") as f: + f.write("\n".join(lines)) + + for thresh in range(50, 100, 5): + rec, prec, ap = voc_eval( + res_file_template, + self._anno_file_template, + self._image_set_path, + cls_name, + ovthresh=thresh / 100.0, + use_07_metric=self._is_2007, + ) + aps[thresh].append(ap * 100) + + ret = OrderedDict() + mAP = {iou: np.mean(x) for iou, x in aps.items()} + ret["bbox"] = {"AP": np.mean(list(mAP.values())), "AP50": mAP[50], "AP75": mAP[75]} + return ret + + +############################################################################## +# +# Below code is modified from +# https://github.com/rbgirshick/py-faster-rcnn/blob/master/lib/datasets/voc_eval.py +# -------------------------------------------------------- +# Fast/er R-CNN +# Licensed under The MIT License [see LICENSE for details] +# Written by Bharath Hariharan +# -------------------------------------------------------- + +"""Python implementation of the PASCAL VOC devkit's AP evaluation code.""" + + +@lru_cache(maxsize=None) +def parse_rec(filename): + """Parse a PASCAL VOC xml file.""" + with PathManager.open(filename) as f: + tree = ET.parse(f) + objects = [] + for obj in tree.findall("object"): + obj_struct = {} + obj_struct["name"] = obj.find("name").text + obj_struct["pose"] = obj.find("pose").text + obj_struct["truncated"] = int(obj.find("truncated").text) + obj_struct["difficult"] = int(obj.find("difficult").text) + bbox = obj.find("bndbox") + obj_struct["bbox"] = [ + int(bbox.find("xmin").text), + int(bbox.find("ymin").text), + int(bbox.find("xmax").text), + int(bbox.find("ymax").text), + ] + objects.append(obj_struct) + + return objects + + +def voc_ap(rec, prec, use_07_metric=False): + """Compute VOC AP given precision and recall. If use_07_metric is true, uses + the VOC 07 11-point method (default:False). + """ + if use_07_metric: + # 11 point metric + ap = 0.0 + for t in np.arange(0.0, 1.1, 0.1): + if np.sum(rec >= t) == 0: + p = 0 + else: + p = np.max(prec[rec >= t]) + ap = ap + p / 11.0 + else: + # correct AP calculation + # first append sentinel values at the end + mrec = np.concatenate(([0.0], rec, [1.0])) + mpre = np.concatenate(([0.0], prec, [0.0])) + + # compute the precision envelope + for i in range(mpre.size - 1, 0, -1): + mpre[i - 1] = np.maximum(mpre[i - 1], mpre[i]) + + # to calculate area under PR curve, look for points + # where X axis (recall) changes value + i = np.where(mrec[1:] != mrec[:-1])[0] + + # and sum (\Delta recall) * prec + ap = np.sum((mrec[i + 1] - mrec[i]) * mpre[i + 1]) + return ap + + +def voc_eval(detpath, annopath, imagesetfile, classname, ovthresh=0.5, use_07_metric=False): + """rec, prec, ap = voc_eval(detpath, + annopath, + imagesetfile, + classname, + [ovthresh], + [use_07_metric]) + + Top level function that does the PASCAL VOC evaluation. + + detpath: Path to detections + detpath.format(classname) should produce the detection results file. + annopath: Path to annotations + annopath.format(imagename) should be the xml annotations file. + imagesetfile: Text file containing the list of images, one image per line. + classname: Category name (duh) + [ovthresh]: Overlap threshold (default = 0.5) + [use_07_metric]: Whether to use VOC07's 11 point AP computation + (default False) + """ + # assumes detections are in detpath.format(classname) + # assumes annotations are in annopath.format(imagename) + # assumes imagesetfile is a text file with each line an image name + + # first load gt + # read list of images + with PathManager.open(imagesetfile, "r") as f: + lines = f.readlines() + imagenames = [x.strip() for x in lines] + + # load annots + recs = {} + for imagename in imagenames: + recs[imagename] = parse_rec(annopath.format(imagename)) + + # extract gt objects for this class + class_recs = {} + npos = 0 + for imagename in imagenames: + R = [obj for obj in recs[imagename] if obj["name"] == classname] + bbox = np.array([x["bbox"] for x in R]) + difficult = np.array([x["difficult"] for x in R]).astype(bool) + # difficult = np.array([False for x in R]).astype(bool) # treat all "difficult" as GT + det = [False] * len(R) + npos = npos + sum(~difficult) + class_recs[imagename] = {"bbox": bbox, "difficult": difficult, "det": det} + + # read dets + detfile = detpath.format(classname) + with open(detfile, "r") as f: + lines = f.readlines() + + splitlines = [x.strip().split(" ") for x in lines] + image_ids = [x[0] for x in splitlines] + confidence = np.array([float(x[1]) for x in splitlines]) + BB = np.array([[float(z) for z in x[2:]] for x in splitlines]).reshape(-1, 4) + + # sort by confidence + sorted_ind = np.argsort(-confidence) + BB = BB[sorted_ind, :] + image_ids = [image_ids[x] for x in sorted_ind] + + # go down dets and mark TPs and FPs + nd = len(image_ids) + tp = np.zeros(nd) + fp = np.zeros(nd) + for d in range(nd): + R = class_recs[image_ids[d]] + bb = BB[d, :].astype(float) + ovmax = -np.inf + BBGT = R["bbox"].astype(float) + + if BBGT.size > 0: + # compute overlaps + # intersection + ixmin = np.maximum(BBGT[:, 0], bb[0]) + iymin = np.maximum(BBGT[:, 1], bb[1]) + ixmax = np.minimum(BBGT[:, 2], bb[2]) + iymax = np.minimum(BBGT[:, 3], bb[3]) + iw = np.maximum(ixmax - ixmin + 1.0, 0.0) + ih = np.maximum(iymax - iymin + 1.0, 0.0) + inters = iw * ih + + # union + uni = ( + (bb[2] - bb[0] + 1.0) * (bb[3] - bb[1] + 1.0) + + (BBGT[:, 2] - BBGT[:, 0] + 1.0) * (BBGT[:, 3] - BBGT[:, 1] + 1.0) + - inters + ) + + overlaps = inters / uni + ovmax = np.max(overlaps) + jmax = np.argmax(overlaps) + + if ovmax > ovthresh: + if not R["difficult"][jmax]: + if not R["det"][jmax]: + tp[d] = 1.0 + R["det"][jmax] = 1 + else: + fp[d] = 1.0 + else: + fp[d] = 1.0 + + # compute precision recall + fp = np.cumsum(fp) + tp = np.cumsum(tp) + rec = tp / float(npos) + # avoid divide by zero in case the first detection matches a difficult + # ground truth + prec = tp / np.maximum(tp + fp, np.finfo(np.float64).eps) + ap = voc_ap(rec, prec, use_07_metric) + + return rec, prec, ap diff --git a/detectron2/detectron2/evaluation/rotated_coco_evaluation.py b/detectron2/detectron2/evaluation/rotated_coco_evaluation.py new file mode 100755 index 0000000..ea6d1b3 --- /dev/null +++ b/detectron2/detectron2/evaluation/rotated_coco_evaluation.py @@ -0,0 +1,207 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import json +import numpy as np +import os +import torch +from pycocotools.cocoeval import COCOeval, maskUtils + +from detectron2.structures import BoxMode, RotatedBoxes, pairwise_iou_rotated +from detectron2.utils.file_io import PathManager + +from .coco_evaluation import COCOEvaluator + + +class RotatedCOCOeval(COCOeval): + @staticmethod + def is_rotated(box_list): + if type(box_list) == np.ndarray: + return box_list.shape[1] == 5 + elif type(box_list) == list: + if box_list == []: # cannot decide the box_dim + return False + return np.all( + np.array( + [ + (len(obj) == 5) and ((type(obj) == list) or (type(obj) == np.ndarray)) + for obj in box_list + ] + ) + ) + return False + + @staticmethod + def boxlist_to_tensor(boxlist, output_box_dim): + if type(boxlist) == np.ndarray: + box_tensor = torch.from_numpy(boxlist) + elif type(boxlist) == list: + if boxlist == []: + return torch.zeros((0, output_box_dim), dtype=torch.float32) + else: + box_tensor = torch.FloatTensor(boxlist) + else: + raise Exception("Unrecognized boxlist type") + + input_box_dim = box_tensor.shape[1] + if input_box_dim != output_box_dim: + if input_box_dim == 4 and output_box_dim == 5: + box_tensor = BoxMode.convert(box_tensor, BoxMode.XYWH_ABS, BoxMode.XYWHA_ABS) + else: + raise Exception( + "Unable to convert from {}-dim box to {}-dim box".format( + input_box_dim, output_box_dim + ) + ) + return box_tensor + + def compute_iou_dt_gt(self, dt, gt, is_crowd): + if self.is_rotated(dt) or self.is_rotated(gt): + # TODO: take is_crowd into consideration + assert all(c == 0 for c in is_crowd) + dt = RotatedBoxes(self.boxlist_to_tensor(dt, output_box_dim=5)) + gt = RotatedBoxes(self.boxlist_to_tensor(gt, output_box_dim=5)) + return pairwise_iou_rotated(dt, gt) + else: + # This is the same as the classical COCO evaluation + return maskUtils.iou(dt, gt, is_crowd) + + def computeIoU(self, imgId, catId): + p = self.params + if p.useCats: + gt = self._gts[imgId, catId] + dt = self._dts[imgId, catId] + else: + gt = [_ for cId in p.catIds for _ in self._gts[imgId, cId]] + dt = [_ for cId in p.catIds for _ in self._dts[imgId, cId]] + if len(gt) == 0 and len(dt) == 0: + return [] + inds = np.argsort([-d["score"] for d in dt], kind="mergesort") + dt = [dt[i] for i in inds] + if len(dt) > p.maxDets[-1]: + dt = dt[0 : p.maxDets[-1]] + + assert p.iouType == "bbox", "unsupported iouType for iou computation" + + g = [g["bbox"] for g in gt] + d = [d["bbox"] for d in dt] + + # compute iou between each dt and gt region + iscrowd = [int(o["iscrowd"]) for o in gt] + + # Note: this function is copied from cocoeval.py in cocoapi + # and the major difference is here. + ious = self.compute_iou_dt_gt(d, g, iscrowd) + return ious + + +class RotatedCOCOEvaluator(COCOEvaluator): + """ + Evaluate object proposal/instance detection outputs using COCO-like metrics and APIs, + with rotated boxes support. + Note: this uses IOU only and does not consider angle differences. + """ + + def process(self, inputs, outputs): + """ + Args: + inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). + It is a list of dict. Each dict corresponds to an image and + contains keys like "height", "width", "file_name", "image_id". + outputs: the outputs of a COCO model. It is a list of dicts with key + "instances" that contains :class:`Instances`. + """ + for input, output in zip(inputs, outputs): + prediction = {"image_id": input["image_id"]} + + if "instances" in output: + instances = output["instances"].to(self._cpu_device) + + prediction["instances"] = self.instances_to_json(instances, input["image_id"]) + if "proposals" in output: + prediction["proposals"] = output["proposals"].to(self._cpu_device) + self._predictions.append(prediction) + + def instances_to_json(self, instances, img_id): + num_instance = len(instances) + if num_instance == 0: + return [] + + boxes = instances.pred_boxes.tensor.numpy() + if boxes.shape[1] == 4: + boxes = BoxMode.convert(boxes, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + boxes = boxes.tolist() + scores = instances.scores.tolist() + classes = instances.pred_classes.tolist() + + results = [] + for k in range(num_instance): + result = { + "image_id": img_id, + "category_id": classes[k], + "bbox": boxes[k], + "score": scores[k], + } + + results.append(result) + return results + + def _eval_predictions(self, predictions, img_ids=None): # img_ids: unused + """ + Evaluate predictions on the given tasks. + Fill self._results with the metrics of the tasks. + """ + self._logger.info("Preparing results for COCO format ...") + coco_results = list(itertools.chain(*[x["instances"] for x in predictions])) + + # unmap the category ids for COCO + if hasattr(self._metadata, "thing_dataset_id_to_contiguous_id"): + reverse_id_mapping = { + v: k for k, v in self._metadata.thing_dataset_id_to_contiguous_id.items() + } + for result in coco_results: + result["category_id"] = reverse_id_mapping[result["category_id"]] + + if self._output_dir: + file_path = os.path.join(self._output_dir, "coco_instances_results.json") + self._logger.info("Saving results to {}".format(file_path)) + with PathManager.open(file_path, "w") as f: + f.write(json.dumps(coco_results)) + f.flush() + + if not self._do_evaluation: + self._logger.info("Annotations are not available for evaluation.") + return + + self._logger.info("Evaluating predictions ...") + + assert self._tasks is None or set(self._tasks) == { + "bbox" + }, "[RotatedCOCOEvaluator] Only bbox evaluation is supported" + coco_eval = ( + self._evaluate_predictions_on_coco(self._coco_api, coco_results) + if len(coco_results) > 0 + else None # cocoapi does not handle empty results very well + ) + + task = "bbox" + res = self._derive_coco_results( + coco_eval, task, class_names=self._metadata.get("thing_classes") + ) + self._results[task] = res + + def _evaluate_predictions_on_coco(self, coco_gt, coco_results): + """ + Evaluate the coco results using COCOEval API. + """ + assert len(coco_results) > 0 + + coco_dt = coco_gt.loadRes(coco_results) + + # Only bbox is supported for now + coco_eval = RotatedCOCOeval(coco_gt, coco_dt, iouType="bbox") + + coco_eval.evaluate() + coco_eval.accumulate() + coco_eval.summarize() + + return coco_eval diff --git a/detectron2/detectron2/evaluation/sem_seg_evaluation.py b/detectron2/detectron2/evaluation/sem_seg_evaluation.py new file mode 100755 index 0000000..3735de6 --- /dev/null +++ b/detectron2/detectron2/evaluation/sem_seg_evaluation.py @@ -0,0 +1,265 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import json +import logging +import numpy as np +import os +from collections import OrderedDict +from typing import Optional, Union +import pycocotools.mask as mask_util +import torch +from PIL import Image + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.utils.comm import all_gather, is_main_process, synchronize +from detectron2.utils.file_io import PathManager + +from .evaluator import DatasetEvaluator + +_CV2_IMPORTED = True +try: + import cv2 # noqa +except ImportError: + # OpenCV is an optional dependency at the moment + _CV2_IMPORTED = False + + +def load_image_into_numpy_array( + filename: str, + copy: bool = False, + dtype: Optional[Union[np.dtype, str]] = None, +) -> np.ndarray: + with PathManager.open(filename, "rb") as f: + array = np.array(Image.open(f), copy=copy, dtype=dtype) + return array + + +class SemSegEvaluator(DatasetEvaluator): + """ + Evaluate semantic segmentation metrics. + """ + + def __init__( + self, + dataset_name, + distributed=True, + output_dir=None, + *, + sem_seg_loading_fn=load_image_into_numpy_array, + num_classes=None, + ignore_label=None, + ): + """ + Args: + dataset_name (str): name of the dataset to be evaluated. + distributed (bool): if True, will collect results from all ranks for evaluation. + Otherwise, will evaluate the results in the current process. + output_dir (str): an output directory to dump results. + sem_seg_loading_fn: function to read sem seg file and load into numpy array. + Default provided, but projects can customize. + num_classes, ignore_label: deprecated argument + """ + self._logger = logging.getLogger(__name__) + if num_classes is not None: + self._logger.warn( + "SemSegEvaluator(num_classes) is deprecated! It should be obtained from metadata." + ) + if ignore_label is not None: + self._logger.warn( + "SemSegEvaluator(ignore_label) is deprecated! It should be obtained from metadata." + ) + self._dataset_name = dataset_name + self._distributed = distributed + self._output_dir = output_dir + + self._cpu_device = torch.device("cpu") + + self.input_file_to_gt_file = { + dataset_record["file_name"]: dataset_record["sem_seg_file_name"] + for dataset_record in DatasetCatalog.get(dataset_name) + } + + meta = MetadataCatalog.get(dataset_name) + # Dict that maps contiguous training ids to COCO category ids + try: + c2d = meta.stuff_dataset_id_to_contiguous_id + self._contiguous_id_to_dataset_id = {v: k for k, v in c2d.items()} + except AttributeError: + self._contiguous_id_to_dataset_id = None + self._class_names = meta.stuff_classes + self.sem_seg_loading_fn = sem_seg_loading_fn + self._num_classes = len(meta.stuff_classes) + if num_classes is not None: + assert self._num_classes == num_classes, f"{self._num_classes} != {num_classes}" + self._ignore_label = ignore_label if ignore_label is not None else meta.ignore_label + + # This is because cv2.erode did not work for int datatype. Only works for uint8. + self._compute_boundary_iou = True + if not _CV2_IMPORTED: + self._compute_boundary_iou = False + self._logger.warn( + """Boundary IoU calculation requires OpenCV. B-IoU metrics are + not going to be computed because OpenCV is not available to import.""" + ) + if self._num_classes >= np.iinfo(np.uint8).max: + self._compute_boundary_iou = False + self._logger.warn( + f"""SemSegEvaluator(num_classes) is more than supported value for Boundary IoU calculation! + B-IoU metrics are not going to be computed. Max allowed value (exclusive) + for num_classes for calculating Boundary IoU is {np.iinfo(np.uint8).max}. + The number of classes of dataset {self._dataset_name} is {self._num_classes}""" + ) + + def reset(self): + self._conf_matrix = np.zeros((self._num_classes + 1, self._num_classes + 1), dtype=np.int64) + self._b_conf_matrix = np.zeros( + (self._num_classes + 1, self._num_classes + 1), dtype=np.int64 + ) + self._predictions = [] + + def process(self, inputs, outputs): + """ + Args: + inputs: the inputs to a model. + It is a list of dicts. Each dict corresponds to an image and + contains keys like "height", "width", "file_name". + outputs: the outputs of a model. It is either list of semantic segmentation predictions + (Tensor [H, W]) or list of dicts with key "sem_seg" that contains semantic + segmentation prediction in the same format. + """ + for input, output in zip(inputs, outputs): + output = output["sem_seg"].argmax(dim=0).to(self._cpu_device) + pred = np.array(output, dtype=np.int) + gt_filename = self.input_file_to_gt_file[input["file_name"]] + gt = self.sem_seg_loading_fn(gt_filename, dtype=np.int) + + gt[gt == self._ignore_label] = self._num_classes + + self._conf_matrix += np.bincount( + (self._num_classes + 1) * pred.reshape(-1) + gt.reshape(-1), + minlength=self._conf_matrix.size, + ).reshape(self._conf_matrix.shape) + + if self._compute_boundary_iou: + b_gt = self._mask_to_boundary(gt.astype(np.uint8)) + b_pred = self._mask_to_boundary(pred.astype(np.uint8)) + + self._b_conf_matrix += np.bincount( + (self._num_classes + 1) * b_pred.reshape(-1) + b_gt.reshape(-1), + minlength=self._conf_matrix.size, + ).reshape(self._conf_matrix.shape) + + self._predictions.extend(self.encode_json_sem_seg(pred, input["file_name"])) + + def evaluate(self): + """ + Evaluates standard semantic segmentation metrics (http://cocodataset.org/#stuff-eval): + + * Mean intersection-over-union averaged across classes (mIoU) + * Frequency Weighted IoU (fwIoU) + * Mean pixel accuracy averaged across classes (mACC) + * Pixel Accuracy (pACC) + """ + if self._distributed: + synchronize() + conf_matrix_list = all_gather(self._conf_matrix) + b_conf_matrix_list = all_gather(self._b_conf_matrix) + self._predictions = all_gather(self._predictions) + self._predictions = list(itertools.chain(*self._predictions)) + if not is_main_process(): + return + + self._conf_matrix = np.zeros_like(self._conf_matrix) + for conf_matrix in conf_matrix_list: + self._conf_matrix += conf_matrix + + self._b_conf_matrix = np.zeros_like(self._b_conf_matrix) + for b_conf_matrix in b_conf_matrix_list: + self._b_conf_matrix += b_conf_matrix + + if self._output_dir: + PathManager.mkdirs(self._output_dir) + file_path = os.path.join(self._output_dir, "sem_seg_predictions.json") + with PathManager.open(file_path, "w") as f: + f.write(json.dumps(self._predictions)) + + acc = np.full(self._num_classes, np.nan, dtype=np.float) + iou = np.full(self._num_classes, np.nan, dtype=np.float) + tp = self._conf_matrix.diagonal()[:-1].astype(np.float) + pos_gt = np.sum(self._conf_matrix[:-1, :-1], axis=0).astype(np.float) + class_weights = pos_gt / np.sum(pos_gt) + pos_pred = np.sum(self._conf_matrix[:-1, :-1], axis=1).astype(np.float) + acc_valid = pos_gt > 0 + acc[acc_valid] = tp[acc_valid] / pos_gt[acc_valid] + union = pos_gt + pos_pred - tp + iou_valid = np.logical_and(acc_valid, union > 0) + iou[iou_valid] = tp[iou_valid] / union[iou_valid] + macc = np.sum(acc[acc_valid]) / np.sum(acc_valid) + miou = np.sum(iou[iou_valid]) / np.sum(iou_valid) + fiou = np.sum(iou[iou_valid] * class_weights[iou_valid]) + pacc = np.sum(tp) / np.sum(pos_gt) + + if self._compute_boundary_iou: + b_iou = np.full(self._num_classes, np.nan, dtype=np.float) + b_tp = self._b_conf_matrix.diagonal()[:-1].astype(np.float) + b_pos_gt = np.sum(self._b_conf_matrix[:-1, :-1], axis=0).astype(np.float) + b_pos_pred = np.sum(self._b_conf_matrix[:-1, :-1], axis=1).astype(np.float) + b_union = b_pos_gt + b_pos_pred - b_tp + b_iou_valid = b_union > 0 + b_iou[b_iou_valid] = b_tp[b_iou_valid] / b_union[b_iou_valid] + + res = {} + res["mIoU"] = 100 * miou + res["fwIoU"] = 100 * fiou + for i, name in enumerate(self._class_names): + res[f"IoU-{name}"] = 100 * iou[i] + if self._compute_boundary_iou: + res[f"BoundaryIoU-{name}"] = 100 * b_iou[i] + res[f"min(IoU, B-Iou)-{name}"] = 100 * min(iou[i], b_iou[i]) + res["mACC"] = 100 * macc + res["pACC"] = 100 * pacc + for i, name in enumerate(self._class_names): + res[f"ACC-{name}"] = 100 * acc[i] + + if self._output_dir: + file_path = os.path.join(self._output_dir, "sem_seg_evaluation.pth") + with PathManager.open(file_path, "wb") as f: + torch.save(res, f) + results = OrderedDict({"sem_seg": res}) + self._logger.info(results) + return results + + def encode_json_sem_seg(self, sem_seg, input_file_name): + """ + Convert semantic segmentation to COCO stuff format with segments encoded as RLEs. + See http://cocodataset.org/#format-results + """ + json_list = [] + for label in np.unique(sem_seg): + if self._contiguous_id_to_dataset_id is not None: + assert ( + label in self._contiguous_id_to_dataset_id + ), "Label {} is not in the metadata info for {}".format(label, self._dataset_name) + dataset_id = self._contiguous_id_to_dataset_id[label] + else: + dataset_id = int(label) + mask = (sem_seg == label).astype(np.uint8) + mask_rle = mask_util.encode(np.array(mask[:, :, None], order="F"))[0] + mask_rle["counts"] = mask_rle["counts"].decode("utf-8") + json_list.append( + {"file_name": input_file_name, "category_id": dataset_id, "segmentation": mask_rle} + ) + return json_list + + def _mask_to_boundary(self, mask: np.ndarray, dilation_ratio=0.02): + assert mask.ndim == 2, "mask_to_boundary expects a 2-dimensional image" + h, w = mask.shape + diag_len = np.sqrt(h**2 + w**2) + dilation = max(1, int(round(dilation_ratio * diag_len))) + kernel = np.ones((3, 3), dtype=np.uint8) + + padded_mask = cv2.copyMakeBorder(mask, 1, 1, 1, 1, cv2.BORDER_CONSTANT, value=0) + eroded_mask_with_padding = cv2.erode(padded_mask, kernel, iterations=dilation) + eroded_mask = eroded_mask_with_padding[1:-1, 1:-1] + boundary = mask - eroded_mask + return boundary diff --git a/detectron2/detectron2/evaluation/testing.py b/detectron2/detectron2/evaluation/testing.py new file mode 100755 index 0000000..9e5ae62 --- /dev/null +++ b/detectron2/detectron2/evaluation/testing.py @@ -0,0 +1,85 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import numpy as np +import pprint +import sys +from collections.abc import Mapping + + +def print_csv_format(results): + """ + Print main metrics in a format similar to Detectron, + so that they are easy to copypaste into a spreadsheet. + + Args: + results (OrderedDict[dict]): task_name -> {metric -> score} + unordered dict can also be printed, but in arbitrary order + """ + assert isinstance(results, Mapping) or not len(results), results + logger = logging.getLogger(__name__) + for task, res in results.items(): + if isinstance(res, Mapping): + # Don't print "AP-category" metrics since they are usually not tracked. + important_res = [(k, v) for k, v in res.items() if "-" not in k] + logger.info("copypaste: Task: {}".format(task)) + logger.info("copypaste: " + ",".join([k[0] for k in important_res])) + logger.info("copypaste: " + ",".join(["{0:.4f}".format(k[1]) for k in important_res])) + else: + logger.info(f"copypaste: {task}={res}") + + +def verify_results(cfg, results): + """ + Args: + results (OrderedDict[dict]): task_name -> {metric -> score} + + Returns: + bool: whether the verification succeeds or not + """ + expected_results = cfg.TEST.EXPECTED_RESULTS + if not len(expected_results): + return True + + ok = True + for task, metric, expected, tolerance in expected_results: + actual = results[task].get(metric, None) + if actual is None: + ok = False + continue + if not np.isfinite(actual): + ok = False + continue + diff = abs(actual - expected) + if diff > tolerance: + ok = False + + logger = logging.getLogger(__name__) + if not ok: + logger.error("Result verification failed!") + logger.error("Expected Results: " + str(expected_results)) + logger.error("Actual Results: " + pprint.pformat(results)) + + sys.exit(1) + else: + logger.info("Results verification passed.") + return ok + + +def flatten_results_dict(results): + """ + Expand a hierarchical dict of scalars into a flat dict of scalars. + If results[k1][k2][k3] = v, the returned dict will have the entry + {"k1/k2/k3": v}. + + Args: + results (dict): + """ + r = {} + for k, v in results.items(): + if isinstance(v, Mapping): + v = flatten_results_dict(v) + for kk, vv in v.items(): + r[k + "/" + kk] = vv + else: + r[k] = v + return r diff --git a/detectron2/detectron2/export/README.md b/detectron2/detectron2/export/README.md new file mode 100755 index 0000000..c86ff62 --- /dev/null +++ b/detectron2/detectron2/export/README.md @@ -0,0 +1,15 @@ + +This directory contains code to prepare a detectron2 model for deployment. +Currently it supports exporting a detectron2 model to TorchScript, ONNX, or (deprecated) Caffe2 format. + +Please see [documentation](https://detectron2.readthedocs.io/tutorials/deployment.html) for its usage. + + +### Acknowledgements + +Thanks to Mobile Vision team at Facebook for developing the Caffe2 conversion tools. + +Thanks to Computing Platform Department - PAI team at Alibaba Group (@bddpqq, @chenbohua3) who +help export Detectron2 models to TorchScript. + +Thanks to ONNX Converter team at Microsoft who help export Detectron2 models to ONNX. diff --git a/detectron2/detectron2/export/__init__.py b/detectron2/detectron2/export/__init__.py new file mode 100755 index 0000000..5a58758 --- /dev/null +++ b/detectron2/detectron2/export/__init__.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- + +import warnings + +from .flatten import TracingAdapter +from .torchscript import dump_torchscript_IR, scripting_with_instances + +try: + from caffe2.proto import caffe2_pb2 as _tmp + from caffe2.python import core + + # caffe2 is optional +except ImportError: + pass +else: + from .api import * + + +# TODO: Update ONNX Opset version and run tests when a newer PyTorch is supported +STABLE_ONNX_OPSET_VERSION = 11 + + +def add_export_config(cfg): + warnings.warn( + "add_export_config has been deprecated and behaves as no-op function.", DeprecationWarning + ) + return cfg + + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/export/api.py b/detectron2/detectron2/export/api.py new file mode 100755 index 0000000..1a272fe --- /dev/null +++ b/detectron2/detectron2/export/api.py @@ -0,0 +1,230 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import logging +import os +import torch +from caffe2.proto import caffe2_pb2 +from torch import nn + +from detectron2.config import CfgNode +from detectron2.utils.file_io import PathManager + +from .caffe2_inference import ProtobufDetectionModel +from .caffe2_modeling import META_ARCH_CAFFE2_EXPORT_TYPE_MAP, convert_batched_inputs_to_c2_format +from .shared import get_pb_arg_vali, get_pb_arg_vals, save_graph + +__all__ = [ + "Caffe2Model", + "Caffe2Tracer", +] + + +class Caffe2Tracer: + """ + Make a detectron2 model traceable with Caffe2 operators. + This class creates a traceable version of a detectron2 model which: + + 1. Rewrite parts of the model using ops in Caffe2. Note that some ops do + not have GPU implementation in Caffe2. + 2. Remove post-processing and only produce raw layer outputs + + After making a traceable model, the class provide methods to export such a + model to different deployment formats. + Exported graph produced by this class take two input tensors: + + 1. (1, C, H, W) float "data" which is an image (usually in [0, 255]). + (H, W) often has to be padded to multiple of 32 (depend on the model + architecture). + 2. 1x3 float "im_info", each row of which is (height, width, 1.0). + Height and width are true image shapes before padding. + + The class currently only supports models using builtin meta architectures. + Batch inference is not supported, and contributions are welcome. + """ + + def __init__(self, cfg: CfgNode, model: nn.Module, inputs): + """ + Args: + cfg (CfgNode): a detectron2 config used to construct caffe2-compatible model. + model (nn.Module): An original pytorch model. Must be among a few official models + in detectron2 that can be converted to become caffe2-compatible automatically. + Weights have to be already loaded to this model. + inputs: sample inputs that the given model takes for inference. + Will be used to trace the model. For most models, random inputs with + no detected objects will not work as they lead to wrong traces. + """ + assert isinstance(cfg, CfgNode), cfg + assert isinstance(model, torch.nn.Module), type(model) + + # TODO make it support custom models, by passing in c2 model directly + C2MetaArch = META_ARCH_CAFFE2_EXPORT_TYPE_MAP[cfg.MODEL.META_ARCHITECTURE] + self.traceable_model = C2MetaArch(cfg, copy.deepcopy(model)) + self.inputs = inputs + self.traceable_inputs = self.traceable_model.get_caffe2_inputs(inputs) + + def export_caffe2(self): + """ + Export the model to Caffe2's protobuf format. + The returned object can be saved with its :meth:`.save_protobuf()` method. + The result can be loaded and executed using Caffe2 runtime. + + Returns: + :class:`Caffe2Model` + """ + from .caffe2_export import export_caffe2_detection_model + + predict_net, init_net = export_caffe2_detection_model( + self.traceable_model, self.traceable_inputs + ) + return Caffe2Model(predict_net, init_net) + + def export_onnx(self): + """ + Export the model to ONNX format. + Note that the exported model contains custom ops only available in caffe2, therefore it + cannot be directly executed by other runtime (such as onnxruntime or TensorRT). + Post-processing or transformation passes may be applied on the model to accommodate + different runtimes, but we currently do not provide support for them. + + Returns: + onnx.ModelProto: an onnx model. + """ + from .caffe2_export import export_onnx_model as export_onnx_model_impl + + return export_onnx_model_impl(self.traceable_model, (self.traceable_inputs,)) + + def export_torchscript(self): + """ + Export the model to a ``torch.jit.TracedModule`` by tracing. + The returned object can be saved to a file by ``.save()``. + + Returns: + torch.jit.TracedModule: a torch TracedModule + """ + logger = logging.getLogger(__name__) + logger.info("Tracing the model with torch.jit.trace ...") + with torch.no_grad(): + return torch.jit.trace(self.traceable_model, (self.traceable_inputs,)) + + +class Caffe2Model(nn.Module): + """ + A wrapper around the traced model in Caffe2's protobuf format. + The exported graph has different inputs/outputs from the original Pytorch + model, as explained in :class:`Caffe2Tracer`. This class wraps around the + exported graph to simulate the same interface as the original Pytorch model. + It also provides functions to save/load models in Caffe2's format.' + + Examples: + :: + c2_model = Caffe2Tracer(cfg, torch_model, inputs).export_caffe2() + inputs = [{"image": img_tensor_CHW}] + outputs = c2_model(inputs) + orig_outputs = torch_model(inputs) + """ + + def __init__(self, predict_net, init_net): + super().__init__() + self.eval() # always in eval mode + self._predict_net = predict_net + self._init_net = init_net + self._predictor = None + + __init__.__HIDE_SPHINX_DOC__ = True + + @property + def predict_net(self): + """ + caffe2.core.Net: the underlying caffe2 predict net + """ + return self._predict_net + + @property + def init_net(self): + """ + caffe2.core.Net: the underlying caffe2 init net + """ + return self._init_net + + def save_protobuf(self, output_dir): + """ + Save the model as caffe2's protobuf format. + It saves the following files: + + * "model.pb": definition of the graph. Can be visualized with + tools like `netron `_. + * "model_init.pb": model parameters + * "model.pbtxt": human-readable definition of the graph. Not + needed for deployment. + + Args: + output_dir (str): the output directory to save protobuf files. + """ + logger = logging.getLogger(__name__) + logger.info("Saving model to {} ...".format(output_dir)) + if not PathManager.exists(output_dir): + PathManager.mkdirs(output_dir) + + with PathManager.open(os.path.join(output_dir, "model.pb"), "wb") as f: + f.write(self._predict_net.SerializeToString()) + with PathManager.open(os.path.join(output_dir, "model.pbtxt"), "w") as f: + f.write(str(self._predict_net)) + with PathManager.open(os.path.join(output_dir, "model_init.pb"), "wb") as f: + f.write(self._init_net.SerializeToString()) + + def save_graph(self, output_file, inputs=None): + """ + Save the graph as SVG format. + + Args: + output_file (str): a SVG file + inputs: optional inputs given to the model. + If given, the inputs will be used to run the graph to record + shape of every tensor. The shape information will be + saved together with the graph. + """ + from .caffe2_export import run_and_save_graph + + if inputs is None: + save_graph(self._predict_net, output_file, op_only=False) + else: + size_divisibility = get_pb_arg_vali(self._predict_net, "size_divisibility", 0) + device = get_pb_arg_vals(self._predict_net, "device", b"cpu").decode("ascii") + inputs = convert_batched_inputs_to_c2_format(inputs, size_divisibility, device) + inputs = [x.cpu().numpy() for x in inputs] + run_and_save_graph(self._predict_net, self._init_net, inputs, output_file) + + @staticmethod + def load_protobuf(dir): + """ + Args: + dir (str): a directory used to save Caffe2Model with + :meth:`save_protobuf`. + The files "model.pb" and "model_init.pb" are needed. + + Returns: + Caffe2Model: the caffe2 model loaded from this directory. + """ + predict_net = caffe2_pb2.NetDef() + with PathManager.open(os.path.join(dir, "model.pb"), "rb") as f: + predict_net.ParseFromString(f.read()) + + init_net = caffe2_pb2.NetDef() + with PathManager.open(os.path.join(dir, "model_init.pb"), "rb") as f: + init_net.ParseFromString(f.read()) + + return Caffe2Model(predict_net, init_net) + + def __call__(self, inputs): + """ + An interface that wraps around a Caffe2 model and mimics detectron2's models' + input/output format. See details about the format at :doc:`/tutorials/models`. + This is used to compare the outputs of caffe2 model with its original torch model. + + Due to the extra conversion between Pytorch/Caffe2, this method is not meant for + benchmark. Because of the conversion, this method also has dependency + on detectron2 in order to convert to detectron2's output format. + """ + if self._predictor is None: + self._predictor = ProtobufDetectionModel(self._predict_net, self._init_net) + return self._predictor(inputs) diff --git a/detectron2/detectron2/export/c10.py b/detectron2/detectron2/export/c10.py new file mode 100755 index 0000000..e9a3ee3 --- /dev/null +++ b/detectron2/detectron2/export/c10.py @@ -0,0 +1,571 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import math +from typing import Dict +import torch +import torch.nn.functional as F + +from detectron2.layers import ShapeSpec, cat +from detectron2.layers.roi_align_rotated import ROIAlignRotated +from detectron2.modeling import poolers +from detectron2.modeling.proposal_generator import rpn +from detectron2.modeling.roi_heads.mask_head import mask_rcnn_inference +from detectron2.structures import Boxes, ImageList, Instances, Keypoints, RotatedBoxes + +from .shared import alias, to_device + + +""" +This file contains caffe2-compatible implementation of several detectron2 components. +""" + + +class Caffe2Boxes(Boxes): + """ + Representing a list of detectron2.structures.Boxes from minibatch, each box + is represented by a 5d vector (batch index + 4 coordinates), or a 6d vector + (batch index + 5 coordinates) for RotatedBoxes. + """ + + def __init__(self, tensor): + assert isinstance(tensor, torch.Tensor) + assert tensor.dim() == 2 and tensor.size(-1) in [4, 5, 6], tensor.size() + # TODO: make tensor immutable when dim is Nx5 for Boxes, + # and Nx6 for RotatedBoxes? + self.tensor = tensor + + +# TODO clean up this class, maybe just extend Instances +class InstancesList(object): + """ + Tensor representation of a list of Instances object for a batch of images. + + When dealing with a batch of images with Caffe2 ops, a list of bboxes + (instances) are usually represented by single Tensor with size + (sigma(Ni), 5) or (sigma(Ni), 4) plus a batch split Tensor. This class is + for providing common functions to convert between these two representations. + """ + + def __init__(self, im_info, indices, extra_fields=None): + # [N, 3] -> (H, W, Scale) + self.im_info = im_info + # [N,] -> indice of batch to which the instance belongs + self.indices = indices + # [N, ...] + self.batch_extra_fields = extra_fields or {} + + self.image_size = self.im_info + + def get_fields(self): + """like `get_fields` in the Instances object, + but return each field in tensor representations""" + ret = {} + for k, v in self.batch_extra_fields.items(): + # if isinstance(v, torch.Tensor): + # tensor_rep = v + # elif isinstance(v, (Boxes, Keypoints)): + # tensor_rep = v.tensor + # else: + # raise ValueError("Can't find tensor representation for: {}".format()) + ret[k] = v + return ret + + def has(self, name): + return name in self.batch_extra_fields + + def set(self, name, value): + # len(tensor) is a bad practice that generates ONNX constants during tracing. + # Although not a problem for the `assert` statement below, torch ONNX exporter + # still raises a misleading warning as it does not this call comes from `assert` + if isinstance(value, Boxes): + data_len = value.tensor.shape[0] + elif isinstance(value, torch.Tensor): + data_len = value.shape[0] + else: + data_len = len(value) + if len(self.batch_extra_fields): + assert ( + len(self) == data_len + ), "Adding a field of length {} to a Instances of length {}".format(data_len, len(self)) + self.batch_extra_fields[name] = value + + def __getattr__(self, name): + if name not in self.batch_extra_fields: + raise AttributeError("Cannot find field '{}' in the given Instances!".format(name)) + return self.batch_extra_fields[name] + + def __len__(self): + return len(self.indices) + + def flatten(self): + ret = [] + for _, v in self.batch_extra_fields.items(): + if isinstance(v, (Boxes, Keypoints)): + ret.append(v.tensor) + else: + ret.append(v) + return ret + + @staticmethod + def to_d2_instances_list(instances_list): + """ + Convert InstancesList to List[Instances]. The input `instances_list` can + also be a List[Instances], in this case this method is a non-op. + """ + if not isinstance(instances_list, InstancesList): + assert all(isinstance(x, Instances) for x in instances_list) + return instances_list + + ret = [] + for i, info in enumerate(instances_list.im_info): + instances = Instances(torch.Size([int(info[0].item()), int(info[1].item())])) + + ids = instances_list.indices == i + for k, v in instances_list.batch_extra_fields.items(): + if isinstance(v, torch.Tensor): + instances.set(k, v[ids]) + continue + elif isinstance(v, Boxes): + instances.set(k, v[ids, -4:]) + continue + + target_type, tensor_source = v + assert isinstance(tensor_source, torch.Tensor) + assert tensor_source.shape[0] == instances_list.indices.shape[0] + tensor_source = tensor_source[ids] + + if issubclass(target_type, Boxes): + instances.set(k, Boxes(tensor_source[:, -4:])) + elif issubclass(target_type, Keypoints): + instances.set(k, Keypoints(tensor_source)) + elif issubclass(target_type, torch.Tensor): + instances.set(k, tensor_source) + else: + raise ValueError("Can't handle targe type: {}".format(target_type)) + + ret.append(instances) + return ret + + +class Caffe2Compatible(object): + """ + A model can inherit this class to indicate that it can be traced and deployed with caffe2. + """ + + def _get_tensor_mode(self): + return self._tensor_mode + + def _set_tensor_mode(self, v): + self._tensor_mode = v + + tensor_mode = property(_get_tensor_mode, _set_tensor_mode) + """ + If true, the model expects C2-style tensor only inputs/outputs format. + """ + + +class Caffe2RPN(Caffe2Compatible, rpn.RPN): + @classmethod + def from_config(cls, cfg, input_shape: Dict[str, ShapeSpec]): + ret = super(Caffe2Compatible, cls).from_config(cfg, input_shape) + assert tuple(cfg.MODEL.RPN.BBOX_REG_WEIGHTS) == (1.0, 1.0, 1.0, 1.0) or tuple( + cfg.MODEL.RPN.BBOX_REG_WEIGHTS + ) == (1.0, 1.0, 1.0, 1.0, 1.0) + return ret + + def _generate_proposals( + self, images, objectness_logits_pred, anchor_deltas_pred, gt_instances=None + ): + assert isinstance(images, ImageList) + if self.tensor_mode: + im_info = images.image_sizes + else: + im_info = torch.tensor([[im_sz[0], im_sz[1], 1.0] for im_sz in images.image_sizes]).to( + images.tensor.device + ) + assert isinstance(im_info, torch.Tensor) + + rpn_rois_list = [] + rpn_roi_probs_list = [] + for scores, bbox_deltas, cell_anchors_tensor, feat_stride in zip( + objectness_logits_pred, + anchor_deltas_pred, + [b for (n, b) in self.anchor_generator.cell_anchors.named_buffers()], + self.anchor_generator.strides, + ): + scores = scores.detach() + bbox_deltas = bbox_deltas.detach() + + rpn_rois, rpn_roi_probs = torch.ops._caffe2.GenerateProposals( + scores, + bbox_deltas, + im_info, + cell_anchors_tensor, + spatial_scale=1.0 / feat_stride, + pre_nms_topN=self.pre_nms_topk[self.training], + post_nms_topN=self.post_nms_topk[self.training], + nms_thresh=self.nms_thresh, + min_size=self.min_box_size, + # correct_transform_coords=True, # deprecated argument + angle_bound_on=True, # Default + angle_bound_lo=-180, + angle_bound_hi=180, + clip_angle_thresh=1.0, # Default + legacy_plus_one=False, + ) + rpn_rois_list.append(rpn_rois) + rpn_roi_probs_list.append(rpn_roi_probs) + + # For FPN in D2, in RPN all proposals from different levels are concated + # together, ranked and picked by top post_nms_topk. Then in ROIPooler + # it calculates level_assignments and calls the RoIAlign from + # the corresponding level. + + if len(objectness_logits_pred) == 1: + rpn_rois = rpn_rois_list[0] + rpn_roi_probs = rpn_roi_probs_list[0] + else: + assert len(rpn_rois_list) == len(rpn_roi_probs_list) + rpn_post_nms_topN = self.post_nms_topk[self.training] + + device = rpn_rois_list[0].device + input_list = [to_device(x, "cpu") for x in (rpn_rois_list + rpn_roi_probs_list)] + + # TODO remove this after confirming rpn_max_level/rpn_min_level + # is not needed in CollectRpnProposals. + feature_strides = list(self.anchor_generator.strides) + rpn_min_level = int(math.log2(feature_strides[0])) + rpn_max_level = int(math.log2(feature_strides[-1])) + assert (rpn_max_level - rpn_min_level + 1) == len( + rpn_rois_list + ), "CollectRpnProposals requires continuous levels" + + rpn_rois = torch.ops._caffe2.CollectRpnProposals( + input_list, + # NOTE: in current implementation, rpn_max_level and rpn_min_level + # are not needed, only the subtraction of two matters and it + # can be infer from the number of inputs. Keep them now for + # consistency. + rpn_max_level=2 + len(rpn_rois_list) - 1, + rpn_min_level=2, + rpn_post_nms_topN=rpn_post_nms_topN, + ) + rpn_rois = to_device(rpn_rois, device) + rpn_roi_probs = [] + + proposals = self.c2_postprocess(im_info, rpn_rois, rpn_roi_probs, self.tensor_mode) + return proposals, {} + + def forward(self, images, features, gt_instances=None): + assert not self.training + features = [features[f] for f in self.in_features] + objectness_logits_pred, anchor_deltas_pred = self.rpn_head(features) + return self._generate_proposals( + images, + objectness_logits_pred, + anchor_deltas_pred, + gt_instances, + ) + + @staticmethod + def c2_postprocess(im_info, rpn_rois, rpn_roi_probs, tensor_mode): + proposals = InstancesList( + im_info=im_info, + indices=rpn_rois[:, 0], + extra_fields={ + "proposal_boxes": Caffe2Boxes(rpn_rois), + "objectness_logits": (torch.Tensor, rpn_roi_probs), + }, + ) + if not tensor_mode: + proposals = InstancesList.to_d2_instances_list(proposals) + else: + proposals = [proposals] + return proposals + + +class Caffe2ROIPooler(Caffe2Compatible, poolers.ROIPooler): + @staticmethod + def c2_preprocess(box_lists): + assert all(isinstance(x, Boxes) for x in box_lists) + if all(isinstance(x, Caffe2Boxes) for x in box_lists): + # input is pure-tensor based + assert len(box_lists) == 1 + pooler_fmt_boxes = box_lists[0].tensor + else: + pooler_fmt_boxes = poolers.convert_boxes_to_pooler_format(box_lists) + return pooler_fmt_boxes + + def forward(self, x, box_lists): + assert not self.training + + pooler_fmt_boxes = self.c2_preprocess(box_lists) + num_level_assignments = len(self.level_poolers) + + if num_level_assignments == 1: + if isinstance(self.level_poolers[0], ROIAlignRotated): + c2_roi_align = torch.ops._caffe2.RoIAlignRotated + aligned = True + else: + c2_roi_align = torch.ops._caffe2.RoIAlign + aligned = self.level_poolers[0].aligned + + x0 = x[0] + if x0.is_quantized: + x0 = x0.dequantize() + + out = c2_roi_align( + x0, + pooler_fmt_boxes, + order="NCHW", + spatial_scale=float(self.level_poolers[0].spatial_scale), + pooled_h=int(self.output_size[0]), + pooled_w=int(self.output_size[1]), + sampling_ratio=int(self.level_poolers[0].sampling_ratio), + aligned=aligned, + ) + return out + + device = pooler_fmt_boxes.device + assert ( + self.max_level - self.min_level + 1 == 4 + ), "Currently DistributeFpnProposals only support 4 levels" + fpn_outputs = torch.ops._caffe2.DistributeFpnProposals( + to_device(pooler_fmt_boxes, "cpu"), + roi_canonical_scale=self.canonical_box_size, + roi_canonical_level=self.canonical_level, + roi_max_level=self.max_level, + roi_min_level=self.min_level, + legacy_plus_one=False, + ) + fpn_outputs = [to_device(x, device) for x in fpn_outputs] + + rois_fpn_list = fpn_outputs[:-1] + rois_idx_restore_int32 = fpn_outputs[-1] + + roi_feat_fpn_list = [] + for roi_fpn, x_level, pooler in zip(rois_fpn_list, x, self.level_poolers): + if isinstance(pooler, ROIAlignRotated): + c2_roi_align = torch.ops._caffe2.RoIAlignRotated + aligned = True + else: + c2_roi_align = torch.ops._caffe2.RoIAlign + aligned = bool(pooler.aligned) + + if x_level.is_quantized: + x_level = x_level.dequantize() + + roi_feat_fpn = c2_roi_align( + x_level, + roi_fpn, + order="NCHW", + spatial_scale=float(pooler.spatial_scale), + pooled_h=int(self.output_size[0]), + pooled_w=int(self.output_size[1]), + sampling_ratio=int(pooler.sampling_ratio), + aligned=aligned, + ) + roi_feat_fpn_list.append(roi_feat_fpn) + + roi_feat_shuffled = cat(roi_feat_fpn_list, dim=0) + assert roi_feat_shuffled.numel() > 0 and rois_idx_restore_int32.numel() > 0, ( + "Caffe2 export requires tracing with a model checkpoint + input that can produce valid" + " detections. But no detections were obtained with the given checkpoint and input!" + ) + roi_feat = torch.ops._caffe2.BatchPermutation(roi_feat_shuffled, rois_idx_restore_int32) + return roi_feat + + +def caffe2_fast_rcnn_outputs_inference(tensor_mode, box_predictor, predictions, proposals): + """equivalent to FastRCNNOutputLayers.inference""" + num_classes = box_predictor.num_classes + score_thresh = box_predictor.test_score_thresh + nms_thresh = box_predictor.test_nms_thresh + topk_per_image = box_predictor.test_topk_per_image + is_rotated = len(box_predictor.box2box_transform.weights) == 5 + + if is_rotated: + box_dim = 5 + assert box_predictor.box2box_transform.weights[4] == 1, ( + "The weights for Rotated BBoxTransform in C2 have only 4 dimensions," + + " thus enforcing the angle weight to be 1 for now" + ) + box2box_transform_weights = box_predictor.box2box_transform.weights[:4] + else: + box_dim = 4 + box2box_transform_weights = box_predictor.box2box_transform.weights + + class_logits, box_regression = predictions + if num_classes + 1 == class_logits.shape[1]: + class_prob = F.softmax(class_logits, -1) + else: + assert num_classes == class_logits.shape[1] + class_prob = F.sigmoid(class_logits) + # BoxWithNMSLimit will infer num_classes from the shape of the class_prob + # So append a zero column as placeholder for the background class + class_prob = torch.cat((class_prob, torch.zeros(class_prob.shape[0], 1)), dim=1) + + assert box_regression.shape[1] % box_dim == 0 + cls_agnostic_bbox_reg = box_regression.shape[1] // box_dim == 1 + + input_tensor_mode = proposals[0].proposal_boxes.tensor.shape[1] == box_dim + 1 + + proposal_boxes = proposals[0].proposal_boxes + if isinstance(proposal_boxes, Caffe2Boxes): + rois = Caffe2Boxes.cat([p.proposal_boxes for p in proposals]) + elif isinstance(proposal_boxes, RotatedBoxes): + rois = RotatedBoxes.cat([p.proposal_boxes for p in proposals]) + elif isinstance(proposal_boxes, Boxes): + rois = Boxes.cat([p.proposal_boxes for p in proposals]) + else: + raise NotImplementedError( + 'Expected proposals[0].proposal_boxes to be type "Boxes", ' + f"instead got {type(proposal_boxes)}" + ) + + device, dtype = rois.tensor.device, rois.tensor.dtype + if input_tensor_mode: + im_info = proposals[0].image_size + rois = rois.tensor + else: + im_info = torch.tensor([[sz[0], sz[1], 1.0] for sz in [x.image_size for x in proposals]]) + batch_ids = cat( + [ + torch.full((b, 1), i, dtype=dtype, device=device) + for i, b in enumerate(len(p) for p in proposals) + ], + dim=0, + ) + rois = torch.cat([batch_ids, rois.tensor], dim=1) + + roi_pred_bbox, roi_batch_splits = torch.ops._caffe2.BBoxTransform( + to_device(rois, "cpu"), + to_device(box_regression, "cpu"), + to_device(im_info, "cpu"), + weights=box2box_transform_weights, + apply_scale=True, + rotated=is_rotated, + angle_bound_on=True, + angle_bound_lo=-180, + angle_bound_hi=180, + clip_angle_thresh=1.0, + legacy_plus_one=False, + ) + roi_pred_bbox = to_device(roi_pred_bbox, device) + roi_batch_splits = to_device(roi_batch_splits, device) + + nms_outputs = torch.ops._caffe2.BoxWithNMSLimit( + to_device(class_prob, "cpu"), + to_device(roi_pred_bbox, "cpu"), + to_device(roi_batch_splits, "cpu"), + score_thresh=float(score_thresh), + nms=float(nms_thresh), + detections_per_im=int(topk_per_image), + soft_nms_enabled=False, + soft_nms_method="linear", + soft_nms_sigma=0.5, + soft_nms_min_score_thres=0.001, + rotated=is_rotated, + cls_agnostic_bbox_reg=cls_agnostic_bbox_reg, + input_boxes_include_bg_cls=False, + output_classes_include_bg_cls=False, + legacy_plus_one=False, + ) + roi_score_nms = to_device(nms_outputs[0], device) + roi_bbox_nms = to_device(nms_outputs[1], device) + roi_class_nms = to_device(nms_outputs[2], device) + roi_batch_splits_nms = to_device(nms_outputs[3], device) + roi_keeps_nms = to_device(nms_outputs[4], device) + roi_keeps_size_nms = to_device(nms_outputs[5], device) + if not tensor_mode: + roi_class_nms = roi_class_nms.to(torch.int64) + + roi_batch_ids = cat( + [ + torch.full((b, 1), i, dtype=dtype, device=device) + for i, b in enumerate(int(x.item()) for x in roi_batch_splits_nms) + ], + dim=0, + ) + + roi_class_nms = alias(roi_class_nms, "class_nms") + roi_score_nms = alias(roi_score_nms, "score_nms") + roi_bbox_nms = alias(roi_bbox_nms, "bbox_nms") + roi_batch_splits_nms = alias(roi_batch_splits_nms, "batch_splits_nms") + roi_keeps_nms = alias(roi_keeps_nms, "keeps_nms") + roi_keeps_size_nms = alias(roi_keeps_size_nms, "keeps_size_nms") + + results = InstancesList( + im_info=im_info, + indices=roi_batch_ids[:, 0], + extra_fields={ + "pred_boxes": Caffe2Boxes(roi_bbox_nms), + "scores": roi_score_nms, + "pred_classes": roi_class_nms, + }, + ) + + if not tensor_mode: + results = InstancesList.to_d2_instances_list(results) + batch_splits = roi_batch_splits_nms.int().tolist() + kept_indices = list(roi_keeps_nms.to(torch.int64).split(batch_splits)) + else: + results = [results] + kept_indices = [roi_keeps_nms] + + return results, kept_indices + + +class Caffe2FastRCNNOutputsInference: + def __init__(self, tensor_mode): + self.tensor_mode = tensor_mode # whether the output is caffe2 tensor mode + + def __call__(self, box_predictor, predictions, proposals): + return caffe2_fast_rcnn_outputs_inference( + self.tensor_mode, box_predictor, predictions, proposals + ) + + +def caffe2_mask_rcnn_inference(pred_mask_logits, pred_instances): + """equivalent to mask_head.mask_rcnn_inference""" + if all(isinstance(x, InstancesList) for x in pred_instances): + assert len(pred_instances) == 1 + mask_probs_pred = pred_mask_logits.sigmoid() + mask_probs_pred = alias(mask_probs_pred, "mask_fcn_probs") + pred_instances[0].set("pred_masks", mask_probs_pred) + else: + mask_rcnn_inference(pred_mask_logits, pred_instances) + + +class Caffe2MaskRCNNInference: + def __call__(self, pred_mask_logits, pred_instances): + return caffe2_mask_rcnn_inference(pred_mask_logits, pred_instances) + + +def caffe2_keypoint_rcnn_inference(use_heatmap_max_keypoint, pred_keypoint_logits, pred_instances): + # just return the keypoint heatmap for now, + # there will be option to call HeatmapMaxKeypointOp + output = alias(pred_keypoint_logits, "kps_score") + if all(isinstance(x, InstancesList) for x in pred_instances): + assert len(pred_instances) == 1 + if use_heatmap_max_keypoint: + device = output.device + output = torch.ops._caffe2.HeatmapMaxKeypoint( + to_device(output, "cpu"), + pred_instances[0].pred_boxes.tensor, + should_output_softmax=True, # worth make it configerable? + ) + output = to_device(output, device) + output = alias(output, "keypoints_out") + pred_instances[0].set("pred_keypoints", output) + return pred_keypoint_logits + + +class Caffe2KeypointRCNNInference: + def __init__(self, use_heatmap_max_keypoint): + self.use_heatmap_max_keypoint = use_heatmap_max_keypoint + + def __call__(self, pred_keypoint_logits, pred_instances): + return caffe2_keypoint_rcnn_inference( + self.use_heatmap_max_keypoint, pred_keypoint_logits, pred_instances + ) diff --git a/detectron2/detectron2/export/caffe2_export.py b/detectron2/detectron2/export/caffe2_export.py new file mode 100755 index 0000000..d609c27 --- /dev/null +++ b/detectron2/detectron2/export/caffe2_export.py @@ -0,0 +1,203 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import copy +import io +import logging +import numpy as np +from typing import List +import onnx +import onnx.optimizer +import torch +from caffe2.proto import caffe2_pb2 +from caffe2.python import core +from caffe2.python.onnx.backend import Caffe2Backend +from tabulate import tabulate +from termcolor import colored +from torch.onnx import OperatorExportTypes + +from .shared import ( + ScopedWS, + construct_init_net_from_params, + fuse_alias_placeholder, + fuse_copy_between_cpu_and_gpu, + get_params_from_init_net, + group_norm_replace_aten_with_caffe2, + infer_device_type, + remove_dead_end_ops, + remove_reshape_for_fc, + save_graph, +) + +logger = logging.getLogger(__name__) + + +def export_onnx_model(model, inputs): + """ + Trace and export a model to onnx format. + + Args: + model (nn.Module): + inputs (tuple[args]): the model will be called by `model(*inputs)` + + Returns: + an onnx model + """ + assert isinstance(model, torch.nn.Module) + + # make sure all modules are in eval mode, onnx may change the training state + # of the module if the states are not consistent + def _check_eval(module): + assert not module.training + + model.apply(_check_eval) + + # Export the model to ONNX + with torch.no_grad(): + with io.BytesIO() as f: + torch.onnx.export( + model, + inputs, + f, + operator_export_type=OperatorExportTypes.ONNX_ATEN_FALLBACK, + # verbose=True, # NOTE: uncomment this for debugging + # export_params=True, + ) + onnx_model = onnx.load_from_string(f.getvalue()) + + return onnx_model + + +def _op_stats(net_def): + type_count = {} + for t in [op.type for op in net_def.op]: + type_count[t] = type_count.get(t, 0) + 1 + type_count_list = sorted(type_count.items(), key=lambda kv: kv[0]) # alphabet + type_count_list = sorted(type_count_list, key=lambda kv: -kv[1]) # count + return "\n".join("{:>4}x {}".format(count, name) for name, count in type_count_list) + + +def _assign_device_option( + predict_net: caffe2_pb2.NetDef, init_net: caffe2_pb2.NetDef, tensor_inputs: List[torch.Tensor] +): + """ + ONNX exported network doesn't have concept of device, assign necessary + device option for each op in order to make it runable on GPU runtime. + """ + + def _get_device_type(torch_tensor): + assert torch_tensor.device.type in ["cpu", "cuda"] + assert torch_tensor.device.index == 0 + return torch_tensor.device.type + + def _assign_op_device_option(net_proto, net_ssa, blob_device_types): + for op, ssa_i in zip(net_proto.op, net_ssa): + if op.type in ["CopyCPUToGPU", "CopyGPUToCPU"]: + op.device_option.CopyFrom(core.DeviceOption(caffe2_pb2.CUDA, 0)) + else: + devices = [blob_device_types[b] for b in ssa_i[0] + ssa_i[1]] + assert all(d == devices[0] for d in devices) + if devices[0] == "cuda": + op.device_option.CopyFrom(core.DeviceOption(caffe2_pb2.CUDA, 0)) + + # update ops in predict_net + predict_net_input_device_types = { + (name, 0): _get_device_type(tensor) + for name, tensor in zip(predict_net.external_input, tensor_inputs) + } + predict_net_device_types = infer_device_type( + predict_net, known_status=predict_net_input_device_types, device_name_style="pytorch" + ) + predict_net_ssa, _ = core.get_ssa(predict_net) + _assign_op_device_option(predict_net, predict_net_ssa, predict_net_device_types) + + # update ops in init_net + init_net_ssa, versions = core.get_ssa(init_net) + init_net_output_device_types = { + (name, versions[name]): predict_net_device_types[(name, 0)] + for name in init_net.external_output + } + init_net_device_types = infer_device_type( + init_net, known_status=init_net_output_device_types, device_name_style="pytorch" + ) + _assign_op_device_option(init_net, init_net_ssa, init_net_device_types) + + +def export_caffe2_detection_model(model: torch.nn.Module, tensor_inputs: List[torch.Tensor]): + """ + Export a caffe2-compatible Detectron2 model to caffe2 format via ONNX. + + Arg: + model: a caffe2-compatible version of detectron2 model, defined in caffe2_modeling.py + tensor_inputs: a list of tensors that caffe2 model takes as input. + """ + model = copy.deepcopy(model) + assert isinstance(model, torch.nn.Module) + assert hasattr(model, "encode_additional_info") + + # Export via ONNX + logger.info( + "Exporting a {} model via ONNX ...".format(type(model).__name__) + + " Some warnings from ONNX are expected and are usually not to worry about." + ) + onnx_model = export_onnx_model(model, (tensor_inputs,)) + # Convert ONNX model to Caffe2 protobuf + init_net, predict_net = Caffe2Backend.onnx_graph_to_caffe2_net(onnx_model) + ops_table = [[op.type, op.input, op.output] for op in predict_net.op] + table = tabulate(ops_table, headers=["type", "input", "output"], tablefmt="pipe") + logger.info( + "ONNX export Done. Exported predict_net (before optimizations):\n" + colored(table, "cyan") + ) + + # Apply protobuf optimization + fuse_alias_placeholder(predict_net, init_net) + if any(t.device.type != "cpu" for t in tensor_inputs): + fuse_copy_between_cpu_and_gpu(predict_net) + remove_dead_end_ops(init_net) + _assign_device_option(predict_net, init_net, tensor_inputs) + params, device_options = get_params_from_init_net(init_net) + predict_net, params = remove_reshape_for_fc(predict_net, params) + init_net = construct_init_net_from_params(params, device_options) + group_norm_replace_aten_with_caffe2(predict_net) + + # Record necessary information for running the pb model in Detectron2 system. + model.encode_additional_info(predict_net, init_net) + + logger.info("Operators used in predict_net: \n{}".format(_op_stats(predict_net))) + logger.info("Operators used in init_net: \n{}".format(_op_stats(init_net))) + + return predict_net, init_net + + +def run_and_save_graph(predict_net, init_net, tensor_inputs, graph_save_path): + """ + Run the caffe2 model on given inputs, recording the shape and draw the graph. + + predict_net/init_net: caffe2 model. + tensor_inputs: a list of tensors that caffe2 model takes as input. + graph_save_path: path for saving graph of exported model. + """ + + logger.info("Saving graph of ONNX exported model to {} ...".format(graph_save_path)) + save_graph(predict_net, graph_save_path, op_only=False) + + # Run the exported Caffe2 net + logger.info("Running ONNX exported model ...") + with ScopedWS("__ws_tmp__", True) as ws: + ws.RunNetOnce(init_net) + initialized_blobs = set(ws.Blobs()) + uninitialized = [inp for inp in predict_net.external_input if inp not in initialized_blobs] + for name, blob in zip(uninitialized, tensor_inputs): + ws.FeedBlob(name, blob) + + try: + ws.RunNetOnce(predict_net) + except RuntimeError as e: + logger.warning("Encountered RuntimeError: \n{}".format(str(e))) + + ws_blobs = {b: ws.FetchBlob(b) for b in ws.Blobs()} + blob_sizes = {b: ws_blobs[b].shape for b in ws_blobs if isinstance(ws_blobs[b], np.ndarray)} + + logger.info("Saving graph with blob shapes to {} ...".format(graph_save_path)) + save_graph(predict_net, graph_save_path, op_only=False, blob_sizes=blob_sizes) + + return ws_blobs diff --git a/detectron2/detectron2/export/caffe2_inference.py b/detectron2/detectron2/export/caffe2_inference.py new file mode 100755 index 0000000..deb886c --- /dev/null +++ b/detectron2/detectron2/export/caffe2_inference.py @@ -0,0 +1,161 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +import numpy as np +from itertools import count +import torch +from caffe2.proto import caffe2_pb2 +from caffe2.python import core + +from .caffe2_modeling import META_ARCH_CAFFE2_EXPORT_TYPE_MAP, convert_batched_inputs_to_c2_format +from .shared import ScopedWS, get_pb_arg_vali, get_pb_arg_vals, infer_device_type + +logger = logging.getLogger(__name__) + + +# ===== ref: mobile-vision predictor's 'Caffe2Wrapper' class ====== +class ProtobufModel(torch.nn.Module): + """ + Wrapper of a caffe2's protobuf model. + It works just like nn.Module, but running caffe2 under the hood. + Input/Output are tuple[tensor] that match the caffe2 net's external_input/output. + """ + + _ids = count(0) + + def __init__(self, predict_net, init_net): + logger.info(f"Initializing ProtobufModel for: {predict_net.name} ...") + super().__init__() + assert isinstance(predict_net, caffe2_pb2.NetDef) + assert isinstance(init_net, caffe2_pb2.NetDef) + # create unique temporary workspace for each instance + self.ws_name = "__tmp_ProtobufModel_{}__".format(next(self._ids)) + self.net = core.Net(predict_net) + + logger.info("Running init_net once to fill the parameters ...") + with ScopedWS(self.ws_name, is_reset=True, is_cleanup=False) as ws: + ws.RunNetOnce(init_net) + uninitialized_external_input = [] + for blob in self.net.Proto().external_input: + if blob not in ws.Blobs(): + uninitialized_external_input.append(blob) + ws.CreateBlob(blob) + ws.CreateNet(self.net) + + self._error_msgs = set() + self._input_blobs = uninitialized_external_input + + def _infer_output_devices(self, inputs): + """ + Returns: + list[str]: list of device for each external output + """ + + def _get_device_type(torch_tensor): + assert torch_tensor.device.type in ["cpu", "cuda"] + assert torch_tensor.device.index == 0 + return torch_tensor.device.type + + predict_net = self.net.Proto() + input_device_types = { + (name, 0): _get_device_type(tensor) for name, tensor in zip(self._input_blobs, inputs) + } + device_type_map = infer_device_type( + predict_net, known_status=input_device_types, device_name_style="pytorch" + ) + ssa, versions = core.get_ssa(predict_net) + versioned_outputs = [(name, versions[name]) for name in predict_net.external_output] + output_devices = [device_type_map[outp] for outp in versioned_outputs] + return output_devices + + def forward(self, inputs): + """ + Args: + inputs (tuple[torch.Tensor]) + + Returns: + tuple[torch.Tensor] + """ + assert len(inputs) == len(self._input_blobs), ( + f"Length of inputs ({len(inputs)}) " + f"doesn't match the required input blobs: {self._input_blobs}" + ) + + with ScopedWS(self.ws_name, is_reset=False, is_cleanup=False) as ws: + for b, tensor in zip(self._input_blobs, inputs): + ws.FeedBlob(b, tensor) + + try: + ws.RunNet(self.net.Proto().name) + except RuntimeError as e: + if not str(e) in self._error_msgs: + self._error_msgs.add(str(e)) + logger.warning("Encountered new RuntimeError: \n{}".format(str(e))) + logger.warning("Catch the error and use partial results.") + + c2_outputs = [ws.FetchBlob(b) for b in self.net.Proto().external_output] + # Remove outputs of current run, this is necessary in order to + # prevent fetching the result from previous run if the model fails + # in the middle. + for b in self.net.Proto().external_output: + # Needs to create uninitialized blob to make the net runable. + # This is "equivalent" to: ws.RemoveBlob(b) then ws.CreateBlob(b), + # but there'no such API. + ws.FeedBlob(b, f"{b}, a C++ native class of type nullptr (uninitialized).") + + # Cast output to torch.Tensor on the desired device + output_devices = ( + self._infer_output_devices(inputs) + if any(t.device.type != "cpu" for t in inputs) + else ["cpu" for _ in self.net.Proto().external_output] + ) + + outputs = [] + for name, c2_output, device in zip( + self.net.Proto().external_output, c2_outputs, output_devices + ): + if not isinstance(c2_output, np.ndarray): + raise RuntimeError( + "Invalid output for blob {}, received: {}".format(name, c2_output) + ) + outputs.append(torch.tensor(c2_output).to(device=device)) + return tuple(outputs) + + +class ProtobufDetectionModel(torch.nn.Module): + """ + A class works just like a pytorch meta arch in terms of inference, but running + caffe2 model under the hood. + """ + + def __init__(self, predict_net, init_net, *, convert_outputs=None): + """ + Args: + predict_net, init_net (core.Net): caffe2 nets + convert_outptus (callable): a function that converts caffe2 + outputs to the same format of the original pytorch model. + By default, use the one defined in the caffe2 meta_arch. + """ + super().__init__() + self.protobuf_model = ProtobufModel(predict_net, init_net) + self.size_divisibility = get_pb_arg_vali(predict_net, "size_divisibility", 0) + self.device = get_pb_arg_vals(predict_net, "device", b"cpu").decode("ascii") + + if convert_outputs is None: + meta_arch = get_pb_arg_vals(predict_net, "meta_architecture", b"GeneralizedRCNN") + meta_arch = META_ARCH_CAFFE2_EXPORT_TYPE_MAP[meta_arch.decode("ascii")] + self._convert_outputs = meta_arch.get_outputs_converter(predict_net, init_net) + else: + self._convert_outputs = convert_outputs + + def _convert_inputs(self, batched_inputs): + # currently all models convert inputs in the same way + return convert_batched_inputs_to_c2_format( + batched_inputs, self.size_divisibility, self.device + ) + + def forward(self, batched_inputs): + c2_inputs = self._convert_inputs(batched_inputs) + c2_results = self.protobuf_model(c2_inputs) + c2_results = dict(zip(self.protobuf_model.net.Proto().external_output, c2_results)) + return self._convert_outputs(batched_inputs, c2_inputs, c2_results) diff --git a/detectron2/detectron2/export/caffe2_modeling.py b/detectron2/detectron2/export/caffe2_modeling.py new file mode 100755 index 0000000..3e675c4 --- /dev/null +++ b/detectron2/detectron2/export/caffe2_modeling.py @@ -0,0 +1,420 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import functools +import io +import struct +import types +import torch + +from detectron2.modeling import meta_arch +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.roi_heads import keypoint_head +from detectron2.structures import Boxes, ImageList, Instances, RotatedBoxes + +from .c10 import Caffe2Compatible +from .caffe2_patch import ROIHeadsPatcher, patch_generalized_rcnn +from .shared import ( + alias, + check_set_pb_arg, + get_pb_arg_floats, + get_pb_arg_valf, + get_pb_arg_vali, + get_pb_arg_vals, + mock_torch_nn_functional_interpolate, +) + + +def assemble_rcnn_outputs_by_name(image_sizes, tensor_outputs, force_mask_on=False): + """ + A function to assemble caffe2 model's outputs (i.e. Dict[str, Tensor]) + to detectron2's format (i.e. list of Instances instance). + This only works when the model follows the Caffe2 detectron's naming convention. + + Args: + image_sizes (List[List[int, int]]): [H, W] of every image. + tensor_outputs (Dict[str, Tensor]): external_output to its tensor. + + force_mask_on (Bool): if true, the it make sure there'll be pred_masks even + if the mask is not found from tensor_outputs (usually due to model crash) + """ + + results = [Instances(image_size) for image_size in image_sizes] + + batch_splits = tensor_outputs.get("batch_splits", None) + if batch_splits: + raise NotImplementedError() + assert len(image_sizes) == 1 + result = results[0] + + bbox_nms = tensor_outputs["bbox_nms"] + score_nms = tensor_outputs["score_nms"] + class_nms = tensor_outputs["class_nms"] + # Detection will always success because Conv support 0-batch + assert bbox_nms is not None + assert score_nms is not None + assert class_nms is not None + if bbox_nms.shape[1] == 5: + result.pred_boxes = RotatedBoxes(bbox_nms) + else: + result.pred_boxes = Boxes(bbox_nms) + result.scores = score_nms + result.pred_classes = class_nms.to(torch.int64) + + mask_fcn_probs = tensor_outputs.get("mask_fcn_probs", None) + if mask_fcn_probs is not None: + # finish the mask pred + mask_probs_pred = mask_fcn_probs + num_masks = mask_probs_pred.shape[0] + class_pred = result.pred_classes + indices = torch.arange(num_masks, device=class_pred.device) + mask_probs_pred = mask_probs_pred[indices, class_pred][:, None] + result.pred_masks = mask_probs_pred + elif force_mask_on: + # NOTE: there's no way to know the height/width of mask here, it won't be + # used anyway when batch size is 0, so just set them to 0. + result.pred_masks = torch.zeros([0, 1, 0, 0], dtype=torch.uint8) + + keypoints_out = tensor_outputs.get("keypoints_out", None) + kps_score = tensor_outputs.get("kps_score", None) + if keypoints_out is not None: + # keypoints_out: [N, 4, #kypoints], where 4 is in order of (x, y, score, prob) + keypoints_tensor = keypoints_out + # NOTE: it's possible that prob is not calculated if "should_output_softmax" + # is set to False in HeatmapMaxKeypoint, so just using raw score, seems + # it doesn't affect mAP. TODO: check more carefully. + keypoint_xyp = keypoints_tensor.transpose(1, 2)[:, :, [0, 1, 2]] + result.pred_keypoints = keypoint_xyp + elif kps_score is not None: + # keypoint heatmap to sparse data structure + pred_keypoint_logits = kps_score + keypoint_head.keypoint_rcnn_inference(pred_keypoint_logits, [result]) + + return results + + +def _cast_to_f32(f64): + return struct.unpack("f", struct.pack("f", f64))[0] + + +def set_caffe2_compatible_tensor_mode(model, enable=True): + def _fn(m): + if isinstance(m, Caffe2Compatible): + m.tensor_mode = enable + + model.apply(_fn) + + +def convert_batched_inputs_to_c2_format(batched_inputs, size_divisibility, device): + """ + See get_caffe2_inputs() below. + """ + assert all(isinstance(x, dict) for x in batched_inputs) + assert all(x["image"].dim() == 3 for x in batched_inputs) + + images = [x["image"] for x in batched_inputs] + images = ImageList.from_tensors(images, size_divisibility) + + im_info = [] + for input_per_image, image_size in zip(batched_inputs, images.image_sizes): + target_height = input_per_image.get("height", image_size[0]) + target_width = input_per_image.get("width", image_size[1]) # noqa + # NOTE: The scale inside im_info is kept as convention and for providing + # post-processing information if further processing is needed. For + # current Caffe2 model definitions that don't include post-processing inside + # the model, this number is not used. + # NOTE: There can be a slight difference between width and height + # scales, using a single number can results in numerical difference + # compared with D2's post-processing. + scale = target_height / image_size[0] + im_info.append([image_size[0], image_size[1], scale]) + im_info = torch.Tensor(im_info) + + return images.tensor.to(device), im_info.to(device) + + +class Caffe2MetaArch(Caffe2Compatible, torch.nn.Module): + """ + Base class for caffe2-compatible implementation of a meta architecture. + The forward is traceable and its traced graph can be converted to caffe2 + graph through ONNX. + """ + + def __init__(self, cfg, torch_model, enable_tensor_mode=True): + """ + Args: + cfg (CfgNode): + torch_model (nn.Module): the detectron2 model (meta_arch) to be + converted. + """ + super().__init__() + self._wrapped_model = torch_model + self.eval() + set_caffe2_compatible_tensor_mode(self, enable_tensor_mode) + + def get_caffe2_inputs(self, batched_inputs): + """ + Convert pytorch-style structured inputs to caffe2-style inputs that + are tuples of tensors. + + Args: + batched_inputs (list[dict]): inputs to a detectron2 model + in its standard format. Each dict has "image" (CHW tensor), and optionally + "height" and "width". + + Returns: + tuple[Tensor]: + tuple of tensors that will be the inputs to the + :meth:`forward` method. For existing models, the first + is an NCHW tensor (padded and batched); the second is + a im_info Nx3 tensor, where the rows are + (height, width, unused legacy parameter) + """ + return convert_batched_inputs_to_c2_format( + batched_inputs, + self._wrapped_model.backbone.size_divisibility, + self._wrapped_model.device, + ) + + def encode_additional_info(self, predict_net, init_net): + """ + Save extra metadata that will be used by inference in the output protobuf. + """ + pass + + def forward(self, inputs): + """ + Run the forward in caffe2-style. It has to use caffe2-compatible ops + and the method will be used for tracing. + + Args: + inputs (tuple[Tensor]): inputs defined by :meth:`get_caffe2_input`. + They will be the inputs of the converted caffe2 graph. + + Returns: + tuple[Tensor]: output tensors. They will be the outputs of the + converted caffe2 graph. + """ + raise NotImplementedError + + def _caffe2_preprocess_image(self, inputs): + """ + Caffe2 implementation of preprocess_image, which is called inside each MetaArch's forward. + It normalizes the input images, and the final caffe2 graph assumes the + inputs have been batched already. + """ + data, im_info = inputs + data = alias(data, "data") + im_info = alias(im_info, "im_info") + mean, std = self._wrapped_model.pixel_mean, self._wrapped_model.pixel_std + normalized_data = (data - mean) / std + normalized_data = alias(normalized_data, "normalized_data") + + # Pack (data, im_info) into ImageList which is recognized by self.inference. + images = ImageList(tensor=normalized_data, image_sizes=im_info) + return images + + @staticmethod + def get_outputs_converter(predict_net, init_net): + """ + Creates a function that converts outputs of the caffe2 model to + detectron2's standard format. + The function uses information in `predict_net` and `init_net` that are + available at inferene time. Therefore the function logic can be used in inference. + + The returned function has the following signature: + + def convert(batched_inputs, c2_inputs, c2_results) -> detectron2_outputs + + Where + + * batched_inputs (list[dict]): the original input format of the meta arch + * c2_inputs (tuple[Tensor]): the caffe2 inputs. + * c2_results (dict[str, Tensor]): the caffe2 output format, + corresponding to the outputs of the :meth:`forward` function. + * detectron2_outputs: the original output format of the meta arch. + + This function can be used to compare the outputs of the original meta arch and + the converted caffe2 graph. + + Returns: + callable: a callable of the above signature. + """ + raise NotImplementedError + + +class Caffe2GeneralizedRCNN(Caffe2MetaArch): + def __init__(self, cfg, torch_model, enable_tensor_mode=True): + assert isinstance(torch_model, meta_arch.GeneralizedRCNN) + torch_model = patch_generalized_rcnn(torch_model) + super().__init__(cfg, torch_model, enable_tensor_mode) + + try: + use_heatmap_max_keypoint = cfg.EXPORT_CAFFE2.USE_HEATMAP_MAX_KEYPOINT + except AttributeError: + use_heatmap_max_keypoint = False + self.roi_heads_patcher = ROIHeadsPatcher( + self._wrapped_model.roi_heads, use_heatmap_max_keypoint + ) + if self.tensor_mode: + self.roi_heads_patcher.patch_roi_heads() + + def encode_additional_info(self, predict_net, init_net): + size_divisibility = self._wrapped_model.backbone.size_divisibility + check_set_pb_arg(predict_net, "size_divisibility", "i", size_divisibility) + check_set_pb_arg( + predict_net, "device", "s", str.encode(str(self._wrapped_model.device), "ascii") + ) + check_set_pb_arg(predict_net, "meta_architecture", "s", b"GeneralizedRCNN") + + @mock_torch_nn_functional_interpolate() + def forward(self, inputs): + if not self.tensor_mode: + return self._wrapped_model.inference(inputs) + images = self._caffe2_preprocess_image(inputs) + features = self._wrapped_model.backbone(images.tensor) + proposals, _ = self._wrapped_model.proposal_generator(images, features) + detector_results, _ = self._wrapped_model.roi_heads(images, features, proposals) + return tuple(detector_results[0].flatten()) + + @staticmethod + def get_outputs_converter(predict_net, init_net): + def f(batched_inputs, c2_inputs, c2_results): + _, im_info = c2_inputs + image_sizes = [[int(im[0]), int(im[1])] for im in im_info] + results = assemble_rcnn_outputs_by_name(image_sizes, c2_results) + return meta_arch.GeneralizedRCNN._postprocess(results, batched_inputs, image_sizes) + + return f + + +class Caffe2RetinaNet(Caffe2MetaArch): + def __init__(self, cfg, torch_model): + assert isinstance(torch_model, meta_arch.RetinaNet) + super().__init__(cfg, torch_model) + + @mock_torch_nn_functional_interpolate() + def forward(self, inputs): + assert self.tensor_mode + images = self._caffe2_preprocess_image(inputs) + + # explicitly return the images sizes to avoid removing "im_info" by ONNX + # since it's not used in the forward path + return_tensors = [images.image_sizes] + + features = self._wrapped_model.backbone(images.tensor) + features = [features[f] for f in self._wrapped_model.head_in_features] + for i, feature_i in enumerate(features): + features[i] = alias(feature_i, "feature_{}".format(i), is_backward=True) + return_tensors.append(features[i]) + + pred_logits, pred_anchor_deltas = self._wrapped_model.head(features) + for i, (box_cls_i, box_delta_i) in enumerate(zip(pred_logits, pred_anchor_deltas)): + return_tensors.append(alias(box_cls_i, "box_cls_{}".format(i))) + return_tensors.append(alias(box_delta_i, "box_delta_{}".format(i))) + + return tuple(return_tensors) + + def encode_additional_info(self, predict_net, init_net): + size_divisibility = self._wrapped_model.backbone.size_divisibility + check_set_pb_arg(predict_net, "size_divisibility", "i", size_divisibility) + check_set_pb_arg( + predict_net, "device", "s", str.encode(str(self._wrapped_model.device), "ascii") + ) + check_set_pb_arg(predict_net, "meta_architecture", "s", b"RetinaNet") + + # Inference parameters: + check_set_pb_arg( + predict_net, "score_threshold", "f", _cast_to_f32(self._wrapped_model.test_score_thresh) + ) + check_set_pb_arg( + predict_net, "topk_candidates", "i", self._wrapped_model.test_topk_candidates + ) + check_set_pb_arg( + predict_net, "nms_threshold", "f", _cast_to_f32(self._wrapped_model.test_nms_thresh) + ) + check_set_pb_arg( + predict_net, + "max_detections_per_image", + "i", + self._wrapped_model.max_detections_per_image, + ) + + check_set_pb_arg( + predict_net, + "bbox_reg_weights", + "floats", + [_cast_to_f32(w) for w in self._wrapped_model.box2box_transform.weights], + ) + self._encode_anchor_generator_cfg(predict_net) + + def _encode_anchor_generator_cfg(self, predict_net): + # serialize anchor_generator for future use + serialized_anchor_generator = io.BytesIO() + torch.save(self._wrapped_model.anchor_generator, serialized_anchor_generator) + # Ideally we can put anchor generating inside the model, then we don't + # need to store this information. + bytes = serialized_anchor_generator.getvalue() + check_set_pb_arg(predict_net, "serialized_anchor_generator", "s", bytes) + + @staticmethod + def get_outputs_converter(predict_net, init_net): + self = types.SimpleNamespace() + serialized_anchor_generator = io.BytesIO( + get_pb_arg_vals(predict_net, "serialized_anchor_generator", None) + ) + self.anchor_generator = torch.load(serialized_anchor_generator) + bbox_reg_weights = get_pb_arg_floats(predict_net, "bbox_reg_weights", None) + self.box2box_transform = Box2BoxTransform(weights=tuple(bbox_reg_weights)) + self.test_score_thresh = get_pb_arg_valf(predict_net, "score_threshold", None) + self.test_topk_candidates = get_pb_arg_vali(predict_net, "topk_candidates", None) + self.test_nms_thresh = get_pb_arg_valf(predict_net, "nms_threshold", None) + self.max_detections_per_image = get_pb_arg_vali( + predict_net, "max_detections_per_image", None + ) + + # hack to reuse inference code from RetinaNet + for meth in [ + "forward_inference", + "inference_single_image", + "_transpose_dense_predictions", + "_decode_multi_level_predictions", + "_decode_per_level_predictions", + ]: + setattr(self, meth, functools.partial(getattr(meta_arch.RetinaNet, meth), self)) + + def f(batched_inputs, c2_inputs, c2_results): + _, im_info = c2_inputs + image_sizes = [[int(im[0]), int(im[1])] for im in im_info] + dummy_images = ImageList( + torch.randn( + ( + len(im_info), + 3, + ) + + tuple(image_sizes[0]) + ), + image_sizes, + ) + + num_features = len([x for x in c2_results.keys() if x.startswith("box_cls_")]) + pred_logits = [c2_results["box_cls_{}".format(i)] for i in range(num_features)] + pred_anchor_deltas = [c2_results["box_delta_{}".format(i)] for i in range(num_features)] + + # For each feature level, feature should have the same batch size and + # spatial dimension as the box_cls and box_delta. + dummy_features = [x.clone()[:, 0:0, :, :] for x in pred_logits] + # self.num_classess can be inferred + self.num_classes = pred_logits[0].shape[1] // (pred_anchor_deltas[0].shape[1] // 4) + + results = self.forward_inference( + dummy_images, dummy_features, [pred_logits, pred_anchor_deltas] + ) + return meta_arch.GeneralizedRCNN._postprocess(results, batched_inputs, image_sizes) + + return f + + +META_ARCH_CAFFE2_EXPORT_TYPE_MAP = { + "GeneralizedRCNN": Caffe2GeneralizedRCNN, + "RetinaNet": Caffe2RetinaNet, +} diff --git a/detectron2/detectron2/export/caffe2_patch.py b/detectron2/detectron2/export/caffe2_patch.py new file mode 100755 index 0000000..2da70ae --- /dev/null +++ b/detectron2/detectron2/export/caffe2_patch.py @@ -0,0 +1,189 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import contextlib +from unittest import mock +import torch + +from detectron2.modeling import poolers +from detectron2.modeling.proposal_generator import rpn +from detectron2.modeling.roi_heads import keypoint_head, mask_head +from detectron2.modeling.roi_heads.fast_rcnn import FastRCNNOutputLayers + +from .c10 import ( + Caffe2Compatible, + Caffe2FastRCNNOutputsInference, + Caffe2KeypointRCNNInference, + Caffe2MaskRCNNInference, + Caffe2ROIPooler, + Caffe2RPN, + caffe2_fast_rcnn_outputs_inference, + caffe2_keypoint_rcnn_inference, + caffe2_mask_rcnn_inference, +) + + +class GenericMixin(object): + pass + + +class Caffe2CompatibleConverter(object): + """ + A GenericUpdater which implements the `create_from` interface, by modifying + module object and assign it with another class replaceCls. + """ + + def __init__(self, replaceCls): + self.replaceCls = replaceCls + + def create_from(self, module): + # update module's class to the new class + assert isinstance(module, torch.nn.Module) + if issubclass(self.replaceCls, GenericMixin): + # replaceCls should act as mixin, create a new class on-the-fly + new_class = type( + "{}MixedWith{}".format(self.replaceCls.__name__, module.__class__.__name__), + (self.replaceCls, module.__class__), + {}, # {"new_method": lambda self: ...}, + ) + module.__class__ = new_class + else: + # replaceCls is complete class, this allow arbitrary class swap + module.__class__ = self.replaceCls + + # initialize Caffe2Compatible + if isinstance(module, Caffe2Compatible): + module.tensor_mode = False + + return module + + +def patch(model, target, updater, *args, **kwargs): + """ + recursively (post-order) update all modules with the target type and its + subclasses, make a initialization/composition/inheritance/... via the + updater.create_from. + """ + for name, module in model.named_children(): + model._modules[name] = patch(module, target, updater, *args, **kwargs) + if isinstance(model, target): + return updater.create_from(model, *args, **kwargs) + return model + + +def patch_generalized_rcnn(model): + ccc = Caffe2CompatibleConverter + model = patch(model, rpn.RPN, ccc(Caffe2RPN)) + model = patch(model, poolers.ROIPooler, ccc(Caffe2ROIPooler)) + + return model + + +@contextlib.contextmanager +def mock_fastrcnn_outputs_inference( + tensor_mode, check=True, box_predictor_type=FastRCNNOutputLayers +): + with mock.patch.object( + box_predictor_type, + "inference", + autospec=True, + side_effect=Caffe2FastRCNNOutputsInference(tensor_mode), + ) as mocked_func: + yield + if check: + assert mocked_func.call_count > 0 + + +@contextlib.contextmanager +def mock_mask_rcnn_inference(tensor_mode, patched_module, check=True): + with mock.patch( + "{}.mask_rcnn_inference".format(patched_module), side_effect=Caffe2MaskRCNNInference() + ) as mocked_func: + yield + if check: + assert mocked_func.call_count > 0 + + +@contextlib.contextmanager +def mock_keypoint_rcnn_inference(tensor_mode, patched_module, use_heatmap_max_keypoint, check=True): + with mock.patch( + "{}.keypoint_rcnn_inference".format(patched_module), + side_effect=Caffe2KeypointRCNNInference(use_heatmap_max_keypoint), + ) as mocked_func: + yield + if check: + assert mocked_func.call_count > 0 + + +class ROIHeadsPatcher: + def __init__(self, heads, use_heatmap_max_keypoint): + self.heads = heads + self.use_heatmap_max_keypoint = use_heatmap_max_keypoint + self.previous_patched = {} + + @contextlib.contextmanager + def mock_roi_heads(self, tensor_mode=True): + """ + Patching several inference functions inside ROIHeads and its subclasses + + Args: + tensor_mode (bool): whether the inputs/outputs are caffe2's tensor + format or not. Default to True. + """ + # NOTE: this requries the `keypoint_rcnn_inference` and `mask_rcnn_inference` + # are called inside the same file as BaseXxxHead due to using mock.patch. + kpt_heads_mod = keypoint_head.BaseKeypointRCNNHead.__module__ + mask_head_mod = mask_head.BaseMaskRCNNHead.__module__ + + mock_ctx_managers = [ + mock_fastrcnn_outputs_inference( + tensor_mode=tensor_mode, + check=True, + box_predictor_type=type(self.heads.box_predictor), + ) + ] + if getattr(self.heads, "keypoint_on", False): + mock_ctx_managers += [ + mock_keypoint_rcnn_inference( + tensor_mode, kpt_heads_mod, self.use_heatmap_max_keypoint + ) + ] + if getattr(self.heads, "mask_on", False): + mock_ctx_managers += [mock_mask_rcnn_inference(tensor_mode, mask_head_mod)] + + with contextlib.ExitStack() as stack: # python 3.3+ + for mgr in mock_ctx_managers: + stack.enter_context(mgr) + yield + + def patch_roi_heads(self, tensor_mode=True): + self.previous_patched["box_predictor"] = self.heads.box_predictor.inference + self.previous_patched["keypoint_rcnn"] = keypoint_head.keypoint_rcnn_inference + self.previous_patched["mask_rcnn"] = mask_head.mask_rcnn_inference + + def patched_fastrcnn_outputs_inference(predictions, proposal): + return caffe2_fast_rcnn_outputs_inference( + True, self.heads.box_predictor, predictions, proposal + ) + + self.heads.box_predictor.inference = patched_fastrcnn_outputs_inference + + if getattr(self.heads, "keypoint_on", False): + + def patched_keypoint_rcnn_inference(pred_keypoint_logits, pred_instances): + return caffe2_keypoint_rcnn_inference( + self.use_heatmap_max_keypoint, pred_keypoint_logits, pred_instances + ) + + keypoint_head.keypoint_rcnn_inference = patched_keypoint_rcnn_inference + + if getattr(self.heads, "mask_on", False): + + def patched_mask_rcnn_inference(pred_mask_logits, pred_instances): + return caffe2_mask_rcnn_inference(pred_mask_logits, pred_instances) + + mask_head.mask_rcnn_inference = patched_mask_rcnn_inference + + def unpatch_roi_heads(self): + self.heads.box_predictor.inference = self.previous_patched["box_predictor"] + keypoint_head.keypoint_rcnn_inference = self.previous_patched["keypoint_rcnn"] + mask_head.mask_rcnn_inference = self.previous_patched["mask_rcnn"] diff --git a/detectron2/detectron2/export/flatten.py b/detectron2/detectron2/export/flatten.py new file mode 100755 index 0000000..f5ba429 --- /dev/null +++ b/detectron2/detectron2/export/flatten.py @@ -0,0 +1,330 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import collections +from dataclasses import dataclass +from typing import Callable, List, Optional, Tuple +import torch +from torch import nn + +from detectron2.structures import Boxes, Instances, ROIMasks +from detectron2.utils.registry import _convert_target_to_string, locate + +from .torchscript_patch import patch_builtin_len + + +@dataclass +class Schema: + """ + A Schema defines how to flatten a possibly hierarchical object into tuple of + primitive objects, so it can be used as inputs/outputs of PyTorch's tracing. + + PyTorch does not support tracing a function that produces rich output + structures (e.g. dict, Instances, Boxes). To trace such a function, we + flatten the rich object into tuple of tensors, and return this tuple of tensors + instead. Meanwhile, we also need to know how to "rebuild" the original object + from the flattened results, so we can evaluate the flattened results. + A Schema defines how to flatten an object, and while flattening it, it records + necessary schemas so that the object can be rebuilt using the flattened outputs. + + The flattened object and the schema object is returned by ``.flatten`` classmethod. + Then the original object can be rebuilt with the ``__call__`` method of schema. + + A Schema is a dataclass that can be serialized easily. + """ + + # inspired by FetchMapper in tensorflow/python/client/session.py + + @classmethod + def flatten(cls, obj): + raise NotImplementedError + + def __call__(self, values): + raise NotImplementedError + + @staticmethod + def _concat(values): + ret = () + sizes = [] + for v in values: + assert isinstance(v, tuple), "Flattened results must be a tuple" + ret = ret + v + sizes.append(len(v)) + return ret, sizes + + @staticmethod + def _split(values, sizes): + if len(sizes): + expected_len = sum(sizes) + assert ( + len(values) == expected_len + ), f"Values has length {len(values)} but expect length {expected_len}." + ret = [] + for k in range(len(sizes)): + begin, end = sum(sizes[:k]), sum(sizes[: k + 1]) + ret.append(values[begin:end]) + return ret + + +@dataclass +class ListSchema(Schema): + schemas: List[Schema] # the schemas that define how to flatten each element in the list + sizes: List[int] # the flattened length of each element + + def __call__(self, values): + values = self._split(values, self.sizes) + if len(values) != len(self.schemas): + raise ValueError( + f"Values has length {len(values)} but schemas " f"has length {len(self.schemas)}!" + ) + values = [m(v) for m, v in zip(self.schemas, values)] + return list(values) + + @classmethod + def flatten(cls, obj): + res = [flatten_to_tuple(k) for k in obj] + values, sizes = cls._concat([k[0] for k in res]) + return values, cls([k[1] for k in res], sizes) + + +@dataclass +class TupleSchema(ListSchema): + def __call__(self, values): + return tuple(super().__call__(values)) + + +@dataclass +class IdentitySchema(Schema): + def __call__(self, values): + return values[0] + + @classmethod + def flatten(cls, obj): + return (obj,), cls() + + +@dataclass +class DictSchema(ListSchema): + keys: List[str] + + def __call__(self, values): + values = super().__call__(values) + return dict(zip(self.keys, values)) + + @classmethod + def flatten(cls, obj): + for k in obj.keys(): + if not isinstance(k, str): + raise KeyError("Only support flattening dictionaries if keys are str.") + keys = sorted(obj.keys()) + values = [obj[k] for k in keys] + ret, schema = ListSchema.flatten(values) + return ret, cls(schema.schemas, schema.sizes, keys) + + +@dataclass +class InstancesSchema(DictSchema): + def __call__(self, values): + image_size, fields = values[-1], values[:-1] + fields = super().__call__(fields) + return Instances(image_size, **fields) + + @classmethod + def flatten(cls, obj): + ret, schema = super().flatten(obj.get_fields()) + size = obj.image_size + if not isinstance(size, torch.Tensor): + size = torch.tensor(size) + return ret + (size,), schema + + +@dataclass +class TensorWrapSchema(Schema): + """ + For classes that are simple wrapper of tensors, e.g. + Boxes, RotatedBoxes, BitMasks + """ + + class_name: str + + def __call__(self, values): + return locate(self.class_name)(values[0]) + + @classmethod + def flatten(cls, obj): + return (obj.tensor,), cls(_convert_target_to_string(type(obj))) + + +# if more custom structures needed in the future, can allow +# passing in extra schemas for custom types +def flatten_to_tuple(obj): + """ + Flatten an object so it can be used for PyTorch tracing. + Also returns how to rebuild the original object from the flattened outputs. + + Returns: + res (tuple): the flattened results that can be used as tracing outputs + schema: an object with a ``__call__`` method such that ``schema(res) == obj``. + It is a pure dataclass that can be serialized. + """ + schemas = [ + ((str, bytes), IdentitySchema), + (list, ListSchema), + (tuple, TupleSchema), + (collections.abc.Mapping, DictSchema), + (Instances, InstancesSchema), + ((Boxes, ROIMasks), TensorWrapSchema), + ] + for klass, schema in schemas: + if isinstance(obj, klass): + F = schema + break + else: + F = IdentitySchema + + return F.flatten(obj) + + +class TracingAdapter(nn.Module): + """ + A model may take rich input/output format (e.g. dict or custom classes), + but `torch.jit.trace` requires tuple of tensors as input/output. + This adapter flattens input/output format of a model so it becomes traceable. + + It also records the necessary schema to rebuild model's inputs/outputs from flattened + inputs/outputs. + + Example: + :: + outputs = model(inputs) # inputs/outputs may be rich structure + adapter = TracingAdapter(model, inputs) + + # can now trace the model, with adapter.flattened_inputs, or another + # tuple of tensors with the same length and meaning + traced = torch.jit.trace(adapter, adapter.flattened_inputs) + + # traced model can only produce flattened outputs (tuple of tensors) + flattened_outputs = traced(*adapter.flattened_inputs) + # adapter knows the schema to convert it back (new_outputs == outputs) + new_outputs = adapter.outputs_schema(flattened_outputs) + """ + + flattened_inputs: Tuple[torch.Tensor] = None + """ + Flattened version of inputs given to this class's constructor. + """ + + inputs_schema: Schema = None + """ + Schema of the inputs given to this class's constructor. + """ + + outputs_schema: Schema = None + """ + Schema of the output produced by calling the given model with inputs. + """ + + def __init__( + self, + model: nn.Module, + inputs, + inference_func: Optional[Callable] = None, + allow_non_tensor: bool = False, + ): + """ + Args: + model: an nn.Module + inputs: An input argument or a tuple of input arguments used to call model. + After flattening, it has to only consist of tensors. + inference_func: a callable that takes (model, *inputs), calls the + model with inputs, and return outputs. By default it + is ``lambda model, *inputs: model(*inputs)``. Can be override + if you need to call the model differently. + allow_non_tensor: allow inputs/outputs to contain non-tensor objects. + This option will filter out non-tensor objects to make the + model traceable, but ``inputs_schema``/``outputs_schema`` cannot be + used anymore because inputs/outputs cannot be rebuilt from pure tensors. + This is useful when you're only interested in the single trace of + execution (e.g. for flop count), but not interested in + generalizing the traced graph to new inputs. + """ + super().__init__() + if isinstance(model, (nn.parallel.distributed.DistributedDataParallel, nn.DataParallel)): + model = model.module + self.model = model + if not isinstance(inputs, tuple): + inputs = (inputs,) + self.inputs = inputs + self.allow_non_tensor = allow_non_tensor + + if inference_func is None: + inference_func = lambda model, *inputs: model(*inputs) # noqa + self.inference_func = inference_func + + self.flattened_inputs, self.inputs_schema = flatten_to_tuple(inputs) + + if all(isinstance(x, torch.Tensor) for x in self.flattened_inputs): + return + if self.allow_non_tensor: + self.flattened_inputs = tuple( + [x for x in self.flattened_inputs if isinstance(x, torch.Tensor)] + ) + self.inputs_schema = None + else: + for input in self.flattened_inputs: + if not isinstance(input, torch.Tensor): + raise ValueError( + "Inputs for tracing must only contain tensors. " + f"Got a {type(input)} instead." + ) + + def forward(self, *args: torch.Tensor): + with torch.no_grad(), patch_builtin_len(): + if self.inputs_schema is not None: + inputs_orig_format = self.inputs_schema(args) + else: + if len(args) != len(self.flattened_inputs) or any( + x is not y for x, y in zip(args, self.flattened_inputs) + ): + raise ValueError( + "TracingAdapter does not contain valid inputs_schema." + " So it cannot generalize to other inputs and must be" + " traced with `.flattened_inputs`." + ) + inputs_orig_format = self.inputs + + outputs = self.inference_func(self.model, *inputs_orig_format) + flattened_outputs, schema = flatten_to_tuple(outputs) + + flattened_output_tensors = tuple( + [x for x in flattened_outputs if isinstance(x, torch.Tensor)] + ) + if len(flattened_output_tensors) < len(flattened_outputs): + if self.allow_non_tensor: + flattened_outputs = flattened_output_tensors + self.outputs_schema = None + else: + raise ValueError( + "Model cannot be traced because some model outputs " + "cannot flatten to tensors." + ) + else: # schema is valid + if self.outputs_schema is None: + self.outputs_schema = schema + else: + assert self.outputs_schema == schema, ( + "Model should always return outputs with the same " + "structure so it can be traced!" + ) + return flattened_outputs + + def _create_wrapper(self, traced_model): + """ + Return a function that has an input/output interface the same as the + original model, but it calls the given traced model under the hood. + """ + + def forward(*args): + flattened_inputs, _ = flatten_to_tuple(args) + flattened_outputs = traced_model(*flattened_inputs) + return self.outputs_schema(flattened_outputs) + + return forward diff --git a/detectron2/detectron2/export/shared.py b/detectron2/detectron2/export/shared.py new file mode 100755 index 0000000..53ba933 --- /dev/null +++ b/detectron2/detectron2/export/shared.py @@ -0,0 +1,1039 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import collections +import copy +import functools +import logging +import numpy as np +import os +from typing import Any, Callable, Dict, List, Optional, Tuple, Union +from unittest import mock +import caffe2.python.utils as putils +import torch +import torch.nn.functional as F +from caffe2.proto import caffe2_pb2 +from caffe2.python import core, net_drawer, workspace +from torch.nn.functional import interpolate as interp + +logger = logging.getLogger(__name__) + + +# ==== torch/utils_toffee/cast.py ======================================= + + +def to_device(t, device_str): + """ + This function is a replacement of .to(another_device) such that it allows the + casting to be traced properly by explicitly calling the underlying copy ops. + It also avoids introducing unncessary op when casting to the same device. + """ + src = t.device + dst = torch.device(device_str) + + if src == dst: + return t + elif src.type == "cuda" and dst.type == "cpu": + return torch.ops._caffe2.CopyGPUToCPU(t) + elif src.type == "cpu" and dst.type == "cuda": + return torch.ops._caffe2.CopyCPUToGPU(t) + else: + raise RuntimeError("Can't cast tensor from device {} to device {}".format(src, dst)) + + +# ==== torch/utils_toffee/interpolate.py ======================================= + + +# Note: borrowed from vision/detection/fair/detectron/detectron/modeling/detector.py +def BilinearInterpolation(tensor_in, up_scale): + assert up_scale % 2 == 0, "Scale should be even" + + def upsample_filt(size): + factor = (size + 1) // 2 + if size % 2 == 1: + center = factor - 1 + else: + center = factor - 0.5 + + og = np.ogrid[:size, :size] + return (1 - abs(og[0] - center) / factor) * (1 - abs(og[1] - center) / factor) + + kernel_size = int(up_scale) * 2 + bil_filt = upsample_filt(kernel_size) + + dim = int(tensor_in.shape[1]) + kernel = np.zeros((dim, dim, kernel_size, kernel_size), dtype=np.float32) + kernel[range(dim), range(dim), :, :] = bil_filt + + tensor_out = F.conv_transpose2d( + tensor_in, + weight=to_device(torch.Tensor(kernel), tensor_in.device), + bias=None, + stride=int(up_scale), + padding=int(up_scale / 2), + ) + + return tensor_out + + +# NOTE: ONNX is incompatible with traced torch.nn.functional.interpolate if +# using dynamic `scale_factor` rather than static `size`. (T43166860) +# NOTE: Caffe2 Int8 conversion might not be able to quantize `size` properly. +def onnx_compatibale_interpolate( + input, size=None, scale_factor=None, mode="nearest", align_corners=None +): + # NOTE: The input dimensions are interpreted in the form: + # `mini-batch x channels x [optional depth] x [optional height] x width`. + if size is None and scale_factor is not None: + if input.dim() == 4: + if isinstance(scale_factor, (int, float)): + height_scale, width_scale = (scale_factor, scale_factor) + else: + assert isinstance(scale_factor, (tuple, list)) + assert len(scale_factor) == 2 + height_scale, width_scale = scale_factor + + assert not align_corners, "No matching C2 op for align_corners == True" + if mode == "nearest": + return torch.ops._caffe2.ResizeNearest( + input, order="NCHW", width_scale=width_scale, height_scale=height_scale + ) + elif mode == "bilinear": + logger.warning( + "Use F.conv_transpose2d for bilinear interpolate" + " because there's no such C2 op, this may cause significant" + " slowdown and the boundary pixels won't be as same as" + " using F.interpolate due to padding." + ) + assert height_scale == width_scale + return BilinearInterpolation(input, up_scale=height_scale) + logger.warning("Output size is not static, it might cause ONNX conversion issue") + + return interp(input, size, scale_factor, mode, align_corners) + + +def mock_torch_nn_functional_interpolate(): + def decorator(func): + @functools.wraps(func) + def _mock_torch_nn_functional_interpolate(*args, **kwargs): + if torch.onnx.is_in_onnx_export(): + with mock.patch( + "torch.nn.functional.interpolate", side_effect=onnx_compatibale_interpolate + ): + return func(*args, **kwargs) + else: + return func(*args, **kwargs) + + return _mock_torch_nn_functional_interpolate + + return decorator + + +# ==== torch/utils_caffe2/ws_utils.py ========================================== + + +class ScopedWS(object): + def __init__(self, ws_name, is_reset, is_cleanup=False): + self.ws_name = ws_name + self.is_reset = is_reset + self.is_cleanup = is_cleanup + self.org_ws = "" + + def __enter__(self): + self.org_ws = workspace.CurrentWorkspace() + if self.ws_name is not None: + workspace.SwitchWorkspace(self.ws_name, True) + if self.is_reset: + workspace.ResetWorkspace() + + return workspace + + def __exit__(self, *args): + if self.is_cleanup: + workspace.ResetWorkspace() + if self.ws_name is not None: + workspace.SwitchWorkspace(self.org_ws) + + +def fetch_any_blob(name): + bb = None + try: + bb = workspace.FetchBlob(name) + except TypeError: + bb = workspace.FetchInt8Blob(name) + except Exception as e: + logger.error("Get blob {} error: {}".format(name, e)) + + return bb + + +# ==== torch/utils_caffe2/protobuf.py ========================================== + + +def get_pb_arg(pb, arg_name): + for x in pb.arg: + if x.name == arg_name: + return x + return None + + +def get_pb_arg_valf(pb, arg_name, default_val): + arg = get_pb_arg(pb, arg_name) + return arg.f if arg is not None else default_val + + +def get_pb_arg_floats(pb, arg_name, default_val): + arg = get_pb_arg(pb, arg_name) + return list(map(float, arg.floats)) if arg is not None else default_val + + +def get_pb_arg_ints(pb, arg_name, default_val): + arg = get_pb_arg(pb, arg_name) + return list(map(int, arg.ints)) if arg is not None else default_val + + +def get_pb_arg_vali(pb, arg_name, default_val): + arg = get_pb_arg(pb, arg_name) + return arg.i if arg is not None else default_val + + +def get_pb_arg_vals(pb, arg_name, default_val): + arg = get_pb_arg(pb, arg_name) + return arg.s if arg is not None else default_val + + +def get_pb_arg_valstrings(pb, arg_name, default_val): + arg = get_pb_arg(pb, arg_name) + return list(arg.strings) if arg is not None else default_val + + +def check_set_pb_arg(pb, arg_name, arg_attr, arg_value, allow_override=False): + arg = get_pb_arg(pb, arg_name) + if arg is None: + arg = putils.MakeArgument(arg_name, arg_value) + assert hasattr(arg, arg_attr) + pb.arg.extend([arg]) + if allow_override and getattr(arg, arg_attr) != arg_value: + logger.warning( + "Override argument {}: {} -> {}".format(arg_name, getattr(arg, arg_attr), arg_value) + ) + setattr(arg, arg_attr, arg_value) + else: + assert arg is not None + assert getattr(arg, arg_attr) == arg_value, "Existing value {}, new value {}".format( + getattr(arg, arg_attr), arg_value + ) + + +def _create_const_fill_op_from_numpy(name, tensor, device_option=None): + assert type(tensor) == np.ndarray + kTypeNameMapper = { + np.dtype("float32"): "GivenTensorFill", + np.dtype("int32"): "GivenTensorIntFill", + np.dtype("int64"): "GivenTensorInt64Fill", + np.dtype("uint8"): "GivenTensorStringFill", + } + + args_dict = {} + if tensor.dtype == np.dtype("uint8"): + args_dict.update({"values": [str(tensor.data)], "shape": [1]}) + else: + args_dict.update({"values": tensor, "shape": tensor.shape}) + + if device_option is not None: + args_dict["device_option"] = device_option + + return core.CreateOperator(kTypeNameMapper[tensor.dtype], [], [name], **args_dict) + + +def _create_const_fill_op_from_c2_int8_tensor(name, int8_tensor): + assert type(int8_tensor) == workspace.Int8Tensor + kTypeNameMapper = { + np.dtype("int32"): "Int8GivenIntTensorFill", + np.dtype("uint8"): "Int8GivenTensorFill", + } + + tensor = int8_tensor.data + assert tensor.dtype in [np.dtype("uint8"), np.dtype("int32")] + values = tensor.tobytes() if tensor.dtype == np.dtype("uint8") else tensor + + return core.CreateOperator( + kTypeNameMapper[tensor.dtype], + [], + [name], + values=values, + shape=tensor.shape, + Y_scale=int8_tensor.scale, + Y_zero_point=int8_tensor.zero_point, + ) + + +def create_const_fill_op( + name: str, + blob: Union[np.ndarray, workspace.Int8Tensor], + device_option: Optional[caffe2_pb2.DeviceOption] = None, +) -> caffe2_pb2.OperatorDef: + """ + Given a blob object, return the Caffe2 operator that creates this blob + as constant. Currently support NumPy tensor and Caffe2 Int8Tensor. + """ + + tensor_type = type(blob) + assert tensor_type in [ + np.ndarray, + workspace.Int8Tensor, + ], 'Error when creating const fill op for "{}", unsupported blob type: {}'.format( + name, type(blob) + ) + + if tensor_type == np.ndarray: + return _create_const_fill_op_from_numpy(name, blob, device_option) + elif tensor_type == workspace.Int8Tensor: + assert device_option is None + return _create_const_fill_op_from_c2_int8_tensor(name, blob) + + +def construct_init_net_from_params( + params: Dict[str, Any], device_options: Optional[Dict[str, caffe2_pb2.DeviceOption]] = None +) -> caffe2_pb2.NetDef: + """ + Construct the init_net from params dictionary + """ + init_net = caffe2_pb2.NetDef() + device_options = device_options or {} + for name, blob in params.items(): + if isinstance(blob, str): + logger.warning( + ( + "Blob {} with type {} is not supported in generating init net," + " skipped.".format(name, type(blob)) + ) + ) + continue + init_net.op.extend( + [create_const_fill_op(name, blob, device_option=device_options.get(name, None))] + ) + init_net.external_output.append(name) + return init_net + + +def get_producer_map(ssa): + """ + Return dict from versioned blob to (i, j), + where i is index of producer op, j is the index of output of that op. + """ + producer_map = {} + for i in range(len(ssa)): + outputs = ssa[i][1] + for j, outp in enumerate(outputs): + producer_map[outp] = (i, j) + return producer_map + + +def get_consumer_map(ssa): + """ + Return dict from versioned blob to list of (i, j), + where i is index of consumer op, j is the index of input of that op. + """ + consumer_map = collections.defaultdict(list) + for i in range(len(ssa)): + inputs = ssa[i][0] + for j, inp in enumerate(inputs): + consumer_map[inp].append((i, j)) + return consumer_map + + +def get_params_from_init_net( + init_net: caffe2_pb2.NetDef, +) -> [Dict[str, Any], Dict[str, caffe2_pb2.DeviceOption]]: + """ + Take the output blobs from init_net by running it. + Outputs: + params: dict from blob name to numpy array + device_options: dict from blob name to the device option of its creating op + """ + # NOTE: this assumes that the params is determined by producer op with the + # only exception be CopyGPUToCPU which is CUDA op but returns CPU tensor. + def _get_device_option(producer_op): + if producer_op.type == "CopyGPUToCPU": + return caffe2_pb2.DeviceOption() + else: + return producer_op.device_option + + with ScopedWS("__get_params_from_init_net__", is_reset=True, is_cleanup=True) as ws: + ws.RunNetOnce(init_net) + params = {b: fetch_any_blob(b) for b in init_net.external_output} + ssa, versions = core.get_ssa(init_net) + producer_map = get_producer_map(ssa) + device_options = { + b: _get_device_option(init_net.op[producer_map[(b, versions[b])][0]]) + for b in init_net.external_output + } + return params, device_options + + +def _updater_raise(op, input_types, output_types): + raise RuntimeError( + "Failed to apply updater for op {} given input_types {} and" + " output_types {}".format(op, input_types, output_types) + ) + + +def _generic_status_identifier( + predict_net: caffe2_pb2.NetDef, + status_updater: Callable, + known_status: Dict[Tuple[str, int], Any], +) -> Dict[Tuple[str, int], Any]: + """ + Statically infer the status of each blob, the status can be such as device type + (CPU/GPU), layout (NCHW/NHWC), data type (float32/int8), etc. "Blob" here + is versioned blob (Tuple[str, int]) in the format compatible with ssa. + Inputs: + predict_net: the caffe2 network + status_updater: a callable, given an op and the status of its input/output, + it returns the updated status of input/output. `None` is used for + representing unknown status. + known_status: a dict containing known status, used as initialization. + Outputs: + A dict mapping from versioned blob to its status + """ + ssa, versions = core.get_ssa(predict_net) + versioned_ext_input = [(b, 0) for b in predict_net.external_input] + versioned_ext_output = [(b, versions[b]) for b in predict_net.external_output] + all_versioned_blobs = set().union(*[set(x[0] + x[1]) for x in ssa]) + + allowed_vbs = all_versioned_blobs.union(versioned_ext_input).union(versioned_ext_output) + assert all(k in allowed_vbs for k in known_status) + assert all(v is not None for v in known_status.values()) + _known_status = copy.deepcopy(known_status) + + def _check_and_update(key, value): + assert value is not None + if key in _known_status: + if not _known_status[key] == value: + raise RuntimeError( + "Confilict status for {}, existing status {}, new status {}".format( + key, _known_status[key], value + ) + ) + _known_status[key] = value + + def _update_i(op, ssa_i): + versioned_inputs = ssa_i[0] + versioned_outputs = ssa_i[1] + + inputs_status = [_known_status.get(b, None) for b in versioned_inputs] + outputs_status = [_known_status.get(b, None) for b in versioned_outputs] + + new_inputs_status, new_outputs_status = status_updater(op, inputs_status, outputs_status) + + for versioned_blob, status in zip( + versioned_inputs + versioned_outputs, new_inputs_status + new_outputs_status + ): + if status is not None: + _check_and_update(versioned_blob, status) + + for op, ssa_i in zip(predict_net.op, ssa): + _update_i(op, ssa_i) + for op, ssa_i in zip(reversed(predict_net.op), reversed(ssa)): + _update_i(op, ssa_i) + + # NOTE: This strictly checks all the blob from predict_net must be assgined + # a known status. However sometimes it's impossible (eg. having deadend op), + # we may relax this constraint if + for k in all_versioned_blobs: + if k not in _known_status: + raise NotImplementedError( + "Can not infer the status for {}. Currently only support the case where" + " a single forward and backward pass can identify status for all blobs.".format(k) + ) + + return _known_status + + +def infer_device_type( + predict_net: caffe2_pb2.NetDef, + known_status: Dict[Tuple[str, int], Any], + device_name_style: str = "caffe2", +) -> Dict[Tuple[str, int], str]: + """Return the device type ("cpu" or "gpu"/"cuda") of each (versioned) blob""" + + assert device_name_style in ["caffe2", "pytorch"] + _CPU_STR = "cpu" + _GPU_STR = "gpu" if device_name_style == "caffe2" else "cuda" + + def _copy_cpu_to_gpu_updater(op, input_types, output_types): + if input_types[0] == _GPU_STR or output_types[0] == _CPU_STR: + _updater_raise(op, input_types, output_types) + return ([_CPU_STR], [_GPU_STR]) + + def _copy_gpu_to_cpu_updater(op, input_types, output_types): + if input_types[0] == _CPU_STR or output_types[0] == _GPU_STR: + _updater_raise(op, input_types, output_types) + return ([_GPU_STR], [_CPU_STR]) + + def _other_ops_updater(op, input_types, output_types): + non_none_types = [x for x in input_types + output_types if x is not None] + if len(non_none_types) > 0: + the_type = non_none_types[0] + if not all(x == the_type for x in non_none_types): + _updater_raise(op, input_types, output_types) + else: + the_type = None + return ([the_type for _ in op.input], [the_type for _ in op.output]) + + def _device_updater(op, *args, **kwargs): + return { + "CopyCPUToGPU": _copy_cpu_to_gpu_updater, + "CopyGPUToCPU": _copy_gpu_to_cpu_updater, + }.get(op.type, _other_ops_updater)(op, *args, **kwargs) + + return _generic_status_identifier(predict_net, _device_updater, known_status) + + +# ==== torch/utils_caffe2/vis.py =============================================== + + +def _modify_blob_names(ops, blob_rename_f): + ret = [] + + def _replace_list(blob_list, replaced_list): + del blob_list[:] + blob_list.extend(replaced_list) + + for x in ops: + cur = copy.deepcopy(x) + _replace_list(cur.input, list(map(blob_rename_f, cur.input))) + _replace_list(cur.output, list(map(blob_rename_f, cur.output))) + ret.append(cur) + + return ret + + +def _rename_blob(name, blob_sizes, blob_ranges): + def _list_to_str(bsize): + ret = ", ".join([str(x) for x in bsize]) + ret = "[" + ret + "]" + return ret + + ret = name + if blob_sizes is not None and name in blob_sizes: + ret += "\n" + _list_to_str(blob_sizes[name]) + if blob_ranges is not None and name in blob_ranges: + ret += "\n" + _list_to_str(blob_ranges[name]) + + return ret + + +# graph_name could not contain word 'graph' +def save_graph(net, file_name, graph_name="net", op_only=True, blob_sizes=None, blob_ranges=None): + blob_rename_f = functools.partial(_rename_blob, blob_sizes=blob_sizes, blob_ranges=blob_ranges) + return save_graph_base(net, file_name, graph_name, op_only, blob_rename_f) + + +def save_graph_base(net, file_name, graph_name="net", op_only=True, blob_rename_func=None): + graph = None + ops = net.op + if blob_rename_func is not None: + ops = _modify_blob_names(ops, blob_rename_func) + if not op_only: + graph = net_drawer.GetPydotGraph(ops, graph_name, rankdir="TB") + else: + graph = net_drawer.GetPydotGraphMinimal( + ops, graph_name, rankdir="TB", minimal_dependency=True + ) + + try: + par_dir = os.path.dirname(file_name) + if not os.path.exists(par_dir): + os.makedirs(par_dir) + + format = os.path.splitext(os.path.basename(file_name))[-1] + if format == ".png": + graph.write_png(file_name) + elif format == ".pdf": + graph.write_pdf(file_name) + elif format == ".svg": + graph.write_svg(file_name) + else: + print("Incorrect format {}".format(format)) + except Exception as e: + print("Error when writing graph to image {}".format(e)) + + return graph + + +# ==== torch/utils_toffee/aten_to_caffe2.py ==================================== + + +def group_norm_replace_aten_with_caffe2(predict_net: caffe2_pb2.NetDef): + """ + For ONNX exported model, GroupNorm will be represented as ATen op, + this can be a drop in replacement from ATen to GroupNorm + """ + count = 0 + for op in predict_net.op: + if op.type == "ATen": + op_name = get_pb_arg_vals(op, "operator", None) # return byte in py3 + if op_name and op_name.decode() == "group_norm": + op.arg.remove(get_pb_arg(op, "operator")) + + if get_pb_arg_vali(op, "cudnn_enabled", None): + op.arg.remove(get_pb_arg(op, "cudnn_enabled")) + + num_groups = get_pb_arg_vali(op, "num_groups", None) + if num_groups is not None: + op.arg.remove(get_pb_arg(op, "num_groups")) + check_set_pb_arg(op, "group", "i", num_groups) + + op.type = "GroupNorm" + count += 1 + if count > 1: + logger.info("Replaced {} ATen operator to GroupNormOp".format(count)) + + +# ==== torch/utils_toffee/alias.py ============================================= + + +def alias(x, name, is_backward=False): + if not torch.onnx.is_in_onnx_export(): + return x + assert isinstance(x, torch.Tensor) + return torch.ops._caffe2.AliasWithName(x, name, is_backward=is_backward) + + +def fuse_alias_placeholder(predict_net, init_net): + """Remove AliasWithName placeholder and rename the input/output of it""" + # First we finish all the re-naming + for i, op in enumerate(predict_net.op): + if op.type == "AliasWithName": + assert len(op.input) == 1 + assert len(op.output) == 1 + name = get_pb_arg_vals(op, "name", None).decode() + is_backward = bool(get_pb_arg_vali(op, "is_backward", 0)) + rename_op_input(predict_net, init_net, i, 0, name, from_producer=is_backward) + rename_op_output(predict_net, i, 0, name) + + # Remove AliasWithName, should be very safe since it's a non-op + new_ops = [] + for op in predict_net.op: + if op.type != "AliasWithName": + new_ops.append(op) + else: + # safety check + assert op.input == op.output + assert op.input[0] == op.arg[0].s.decode() + del predict_net.op[:] + predict_net.op.extend(new_ops) + + +# ==== torch/utils_caffe2/graph_transform.py =================================== + + +class IllegalGraphTransformError(ValueError): + """When a graph transform function call can't be executed.""" + + +def _rename_versioned_blob_in_proto( + proto: caffe2_pb2.NetDef, + old_name: str, + new_name: str, + version: int, + ssa: List[Tuple[List[Tuple[str, int]], List[Tuple[str, int]]]], + start_versions: Dict[str, int], + end_versions: Dict[str, int], +): + """In given proto, rename all blobs with matched version""" + # Operater list + for op, i_th_ssa in zip(proto.op, ssa): + versioned_inputs, versioned_outputs = i_th_ssa + for i in range(len(op.input)): + if versioned_inputs[i] == (old_name, version): + op.input[i] = new_name + for i in range(len(op.output)): + if versioned_outputs[i] == (old_name, version): + op.output[i] = new_name + # external_input + if start_versions.get(old_name, 0) == version: + for i in range(len(proto.external_input)): + if proto.external_input[i] == old_name: + proto.external_input[i] = new_name + # external_output + if end_versions.get(old_name, 0) == version: + for i in range(len(proto.external_output)): + if proto.external_output[i] == old_name: + proto.external_output[i] = new_name + + +def rename_op_input( + predict_net: caffe2_pb2.NetDef, + init_net: caffe2_pb2.NetDef, + op_id: int, + input_id: int, + new_name: str, + from_producer: bool = False, +): + """ + Rename the op_id-th operator in predict_net, change it's input_id-th input's + name to the new_name. It also does automatic re-route and change + external_input and init_net if necessary. + - It requires the input is only consumed by this op. + - This function modifies predict_net and init_net in-place. + - When from_producer is enable, this also updates other operators that consumes + the same input. Be cautious because may trigger unintended behavior. + """ + assert isinstance(predict_net, caffe2_pb2.NetDef) + assert isinstance(init_net, caffe2_pb2.NetDef) + + init_net_ssa, init_net_versions = core.get_ssa(init_net) + predict_net_ssa, predict_net_versions = core.get_ssa( + predict_net, copy.deepcopy(init_net_versions) + ) + + versioned_inputs, versioned_outputs = predict_net_ssa[op_id] + old_name, version = versioned_inputs[input_id] + + if from_producer: + producer_map = get_producer_map(predict_net_ssa) + if not (old_name, version) in producer_map: + raise NotImplementedError( + "Can't find producer, the input {} is probably from" + " init_net, this is not supported yet.".format(old_name) + ) + producer = producer_map[(old_name, version)] + rename_op_output(predict_net, producer[0], producer[1], new_name) + return + + def contain_targets(op_ssa): + return (old_name, version) in op_ssa[0] + + is_consumer = [contain_targets(op_ssa) for op_ssa in predict_net_ssa] + if sum(is_consumer) > 1: + raise IllegalGraphTransformError( + ( + "Input '{}' of operator(#{}) are consumed by other ops, please use" + + " rename_op_output on the producer instead. Offending op: \n{}" + ).format(old_name, op_id, predict_net.op[op_id]) + ) + + # update init_net + _rename_versioned_blob_in_proto( + init_net, old_name, new_name, version, init_net_ssa, {}, init_net_versions + ) + # update predict_net + _rename_versioned_blob_in_proto( + predict_net, + old_name, + new_name, + version, + predict_net_ssa, + init_net_versions, + predict_net_versions, + ) + + +def rename_op_output(predict_net: caffe2_pb2.NetDef, op_id: int, output_id: int, new_name: str): + """ + Rename the op_id-th operator in predict_net, change it's output_id-th input's + name to the new_name. It also does automatic re-route and change + external_output and if necessary. + - It allows multiple consumers of its output. + - This function modifies predict_net in-place, doesn't need init_net. + """ + assert isinstance(predict_net, caffe2_pb2.NetDef) + + ssa, blob_versions = core.get_ssa(predict_net) + + versioned_inputs, versioned_outputs = ssa[op_id] + old_name, version = versioned_outputs[output_id] + + # update predict_net + _rename_versioned_blob_in_proto( + predict_net, old_name, new_name, version, ssa, {}, blob_versions + ) + + +def get_sub_graph_external_input_output( + predict_net: caffe2_pb2.NetDef, sub_graph_op_indices: List[int] +) -> Tuple[List[Tuple[str, int]], List[Tuple[str, int]]]: + """ + Return the list of external input/output of sub-graph, + each element is tuple of the name and corresponding version in predict_net. + + external input/output is defined the same way as caffe2 NetDef. + """ + ssa, versions = core.get_ssa(predict_net) + + all_inputs = [] + all_outputs = [] + for op_id in sub_graph_op_indices: + all_inputs += [inp for inp in ssa[op_id][0] if inp not in all_inputs] + all_outputs += list(ssa[op_id][1]) # ssa output won't repeat + + # for versioned blobs, external inputs are just those blob in all_inputs + # but not in all_outputs + ext_inputs = [inp for inp in all_inputs if inp not in all_outputs] + + # external outputs are essentially outputs of this subgraph that are used + # outside of this sub-graph (including predict_net.external_output) + all_other_inputs = sum( + (ssa[i][0] for i in range(len(ssa)) if i not in sub_graph_op_indices), + [(outp, versions[outp]) for outp in predict_net.external_output], + ) + ext_outputs = [outp for outp in all_outputs if outp in set(all_other_inputs)] + + return ext_inputs, ext_outputs + + +class DiGraph: + """A DAG representation of caffe2 graph, each vertice is a versioned blob.""" + + def __init__(self): + self.vertices = set() + self.graph = collections.defaultdict(list) + + def add_edge(self, u, v): + self.graph[u].append(v) + self.vertices.add(u) + self.vertices.add(v) + + # grab from https://www.geeksforgeeks.org/find-paths-given-source-destination/ + def get_all_paths(self, s, d): + visited = {k: False for k in self.vertices} + path = [] + all_paths = [] + + def _get_all_paths_util(graph, u, d, visited, path): + visited[u] = True + path.append(u) + if u == d: + all_paths.append(copy.deepcopy(path)) + else: + for i in graph[u]: + if not visited[i]: + _get_all_paths_util(graph, i, d, visited, path) + path.pop() + visited[u] = False + + _get_all_paths_util(self.graph, s, d, visited, path) + return all_paths + + @staticmethod + def from_ssa(ssa): + graph = DiGraph() + for op_id in range(len(ssa)): + for inp in ssa[op_id][0]: + for outp in ssa[op_id][1]: + graph.add_edge(inp, outp) + return graph + + +def _get_dependency_chain(ssa, versioned_target, versioned_source): + """ + Return the index list of relevant operator to produce target blob from source blob, + if there's no dependency, return empty list. + """ + + # finding all paths between nodes can be O(N!), thus we can only search + # in the subgraph using the op starting from the first consumer of source blob + # to the producer of the target blob. + consumer_map = get_consumer_map(ssa) + producer_map = get_producer_map(ssa) + start_op = min(x[0] for x in consumer_map[versioned_source]) - 15 + end_op = ( + producer_map[versioned_target][0] + 15 if versioned_target in producer_map else start_op + ) + sub_graph_ssa = ssa[start_op : end_op + 1] + if len(sub_graph_ssa) > 30: + logger.warning( + "Subgraph bebetween {} and {} is large (from op#{} to op#{}), it" + " might take non-trival time to find all paths between them.".format( + versioned_source, versioned_target, start_op, end_op + ) + ) + + dag = DiGraph.from_ssa(sub_graph_ssa) + paths = dag.get_all_paths(versioned_source, versioned_target) # include two ends + ops_in_paths = [[producer_map[blob][0] for blob in path[1:]] for path in paths] + return sorted(set().union(*[set(ops) for ops in ops_in_paths])) + + +def identify_reshape_sub_graph(predict_net: caffe2_pb2.NetDef) -> List[List[int]]: + """ + Idenfity the reshape sub-graph in a protobuf. + The reshape sub-graph is defined as matching the following pattern: + + (input_blob) -> Op_1 -> ... -> Op_N -> (new_shape) -─┐ + └-------------------------------------------> Reshape -> (output_blob) + + Return: + List of sub-graphs, each sub-graph is represented as a list of indices + of the relavent ops, [Op_1, Op_2, ..., Op_N, Reshape] + """ + + ssa, _ = core.get_ssa(predict_net) + + ret = [] + for i, op in enumerate(predict_net.op): + if op.type == "Reshape": + assert len(op.input) == 2 + input_ssa = ssa[i][0] + data_source = input_ssa[0] + shape_source = input_ssa[1] + op_indices = _get_dependency_chain(ssa, shape_source, data_source) + ret.append(op_indices + [i]) + return ret + + +def remove_reshape_for_fc(predict_net, params): + """ + In PyTorch nn.Linear has to take 2D tensor, this often leads to reshape + a 4D tensor to 2D by calling .view(). However this (dynamic) reshaping + doesn't work well with ONNX and Int8 tools, and cause using extra + ops (eg. ExpandDims) that might not be available on mobile. + Luckily Caffe2 supports 4D tensor for FC, so we can remove those reshape + after exporting ONNX model. + """ + from caffe2.python import core + + # find all reshape sub-graph that can be removed, which is now all Reshape + # sub-graph whose output is only consumed by FC. + # TODO: to make it safer, we may need the actually value to better determine + # if a Reshape before FC is removable. + reshape_sub_graphs = identify_reshape_sub_graph(predict_net) + sub_graphs_to_remove = [] + for reshape_sub_graph in reshape_sub_graphs: + reshape_op_id = reshape_sub_graph[-1] + assert predict_net.op[reshape_op_id].type == "Reshape" + ssa, _ = core.get_ssa(predict_net) + reshape_output = ssa[reshape_op_id][1][0] + consumers = [i for i in range(len(ssa)) if reshape_output in ssa[i][0]] + if all(predict_net.op[consumer].type == "FC" for consumer in consumers): + # safety check if the sub-graph is isolated, for this reshape sub-graph, + # it means it has one non-param external input and one external output. + ext_inputs, ext_outputs = get_sub_graph_external_input_output( + predict_net, reshape_sub_graph + ) + non_params_ext_inputs = [inp for inp in ext_inputs if inp[1] != 0] + if len(non_params_ext_inputs) == 1 and len(ext_outputs) == 1: + sub_graphs_to_remove.append(reshape_sub_graph) + + # perform removing subgraph by: + # 1: rename the Reshape's output to its input, then the graph can be + # seen as in-place itentify, meaning whose external input/output are the same. + # 2: simply remove those ops. + remove_op_ids = [] + params_to_remove = [] + for sub_graph in sub_graphs_to_remove: + logger.info( + "Remove Reshape sub-graph:\n{}".format( + "".join(["(#{:>4})\n{}".format(i, predict_net.op[i]) for i in sub_graph]) + ) + ) + reshape_op_id = sub_graph[-1] + new_reshap_output = predict_net.op[reshape_op_id].input[0] + rename_op_output(predict_net, reshape_op_id, 0, new_reshap_output) + ext_inputs, ext_outputs = get_sub_graph_external_input_output(predict_net, sub_graph) + non_params_ext_inputs = [inp for inp in ext_inputs if inp[1] != 0] + params_ext_inputs = [inp for inp in ext_inputs if inp[1] == 0] + assert len(non_params_ext_inputs) == 1 and len(ext_outputs) == 1 + assert ext_outputs[0][0] == non_params_ext_inputs[0][0] + assert ext_outputs[0][1] == non_params_ext_inputs[0][1] + 1 + remove_op_ids.extend(sub_graph) + params_to_remove.extend(params_ext_inputs) + + predict_net = copy.deepcopy(predict_net) + new_ops = [op for i, op in enumerate(predict_net.op) if i not in remove_op_ids] + del predict_net.op[:] + predict_net.op.extend(new_ops) + for versioned_params in params_to_remove: + name = versioned_params[0] + logger.info("Remove params: {} from init_net and predict_net.external_input".format(name)) + del params[name] + predict_net.external_input.remove(name) + + return predict_net, params + + +def fuse_copy_between_cpu_and_gpu(predict_net: caffe2_pb2.NetDef): + """ + In-place fuse extra copy ops between cpu/gpu for the following case: + a -CopyAToB-> b -CopyBToA> c1 -NextOp1-> d1 + -CopyBToA> c2 -NextOp2-> d2 + The fused network will look like: + a -NextOp1-> d1 + -NextOp2-> d2 + """ + + _COPY_OPS = ["CopyCPUToGPU", "CopyGPUToCPU"] + + def _fuse_once(predict_net): + ssa, blob_versions = core.get_ssa(predict_net) + consumer_map = get_consumer_map(ssa) + versioned_external_output = [ + (name, blob_versions[name]) for name in predict_net.external_output + ] + + for op_id, op in enumerate(predict_net.op): + if op.type in _COPY_OPS: + fw_copy_versioned_output = ssa[op_id][1][0] + consumer_ids = [x[0] for x in consumer_map[fw_copy_versioned_output]] + reverse_op_type = _COPY_OPS[1 - _COPY_OPS.index(op.type)] + + is_fusable = ( + len(consumer_ids) > 0 + and fw_copy_versioned_output not in versioned_external_output + and all( + predict_net.op[_op_id].type == reverse_op_type + and ssa[_op_id][1][0] not in versioned_external_output + for _op_id in consumer_ids + ) + ) + + if is_fusable: + for rv_copy_op_id in consumer_ids: + # making each NextOp uses "a" directly and removing Copy ops + rs_copy_versioned_output = ssa[rv_copy_op_id][1][0] + next_op_id, inp_id = consumer_map[rs_copy_versioned_output][0] + predict_net.op[next_op_id].input[inp_id] = op.input[0] + # remove CopyOps + new_ops = [ + op + for i, op in enumerate(predict_net.op) + if i != op_id and i not in consumer_ids + ] + del predict_net.op[:] + predict_net.op.extend(new_ops) + return True + + return False + + # _fuse_once returns False is nothing can be fused + while _fuse_once(predict_net): + pass + + +def remove_dead_end_ops(net_def: caffe2_pb2.NetDef): + """remove ops if its output is not used or not in external_output""" + ssa, versions = core.get_ssa(net_def) + versioned_external_output = [(name, versions[name]) for name in net_def.external_output] + consumer_map = get_consumer_map(ssa) + removed_op_ids = set() + + def _is_dead_end(versioned_blob): + return not ( + versioned_blob in versioned_external_output + or ( + len(consumer_map[versioned_blob]) > 0 + and all(x[0] not in removed_op_ids for x in consumer_map[versioned_blob]) + ) + ) + + for i, ssa_i in reversed(list(enumerate(ssa))): + versioned_outputs = ssa_i[1] + if all(_is_dead_end(outp) for outp in versioned_outputs): + removed_op_ids.add(i) + + # simply removing those deadend ops should have no effect to external_output + new_ops = [op for i, op in enumerate(net_def.op) if i not in removed_op_ids] + del net_def.op[:] + net_def.op.extend(new_ops) diff --git a/detectron2/detectron2/export/torchscript.py b/detectron2/detectron2/export/torchscript.py new file mode 100755 index 0000000..24fe59b --- /dev/null +++ b/detectron2/detectron2/export/torchscript.py @@ -0,0 +1,132 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import os +import torch + +from detectron2.utils.file_io import PathManager + +from .torchscript_patch import freeze_training_mode, patch_instances + +__all__ = ["scripting_with_instances", "dump_torchscript_IR"] + + +def scripting_with_instances(model, fields): + """ + Run :func:`torch.jit.script` on a model that uses the :class:`Instances` class. Since + attributes of :class:`Instances` are "dynamically" added in eager mode,it is difficult + for scripting to support it out of the box. This function is made to support scripting + a model that uses :class:`Instances`. It does the following: + + 1. Create a scriptable ``new_Instances`` class which behaves similarly to ``Instances``, + but with all attributes been "static". + The attributes need to be statically declared in the ``fields`` argument. + 2. Register ``new_Instances``, and force scripting compiler to + use it when trying to compile ``Instances``. + + After this function, the process will be reverted. User should be able to script another model + using different fields. + + Example: + Assume that ``Instances`` in the model consist of two attributes named + ``proposal_boxes`` and ``objectness_logits`` with type :class:`Boxes` and + :class:`Tensor` respectively during inference. You can call this function like: + :: + fields = {"proposal_boxes": Boxes, "objectness_logits": torch.Tensor} + torchscipt_model = scripting_with_instances(model, fields) + + Note: + It only support models in evaluation mode. + + Args: + model (nn.Module): The input model to be exported by scripting. + fields (Dict[str, type]): Attribute names and corresponding type that + ``Instances`` will use in the model. Note that all attributes used in ``Instances`` + need to be added, regardless of whether they are inputs/outputs of the model. + Data type not defined in detectron2 is not supported for now. + + Returns: + torch.jit.ScriptModule: the model in torchscript format + """ + assert ( + not model.training + ), "Currently we only support exporting models in evaluation mode to torchscript" + + with freeze_training_mode(model), patch_instances(fields): + scripted_model = torch.jit.script(model) + return scripted_model + + +# alias for old name +export_torchscript_with_instances = scripting_with_instances + + +def dump_torchscript_IR(model, dir): + """ + Dump IR of a TracedModule/ScriptModule/Function in various format (code, graph, + inlined graph). Useful for debugging. + + Args: + model (TracedModule/ScriptModule/ScriptFUnction): traced or scripted module + dir (str): output directory to dump files. + """ + dir = os.path.expanduser(dir) + PathManager.mkdirs(dir) + + def _get_script_mod(mod): + if isinstance(mod, torch.jit.TracedModule): + return mod._actual_script_module + return mod + + # Dump pretty-printed code: https://pytorch.org/docs/stable/jit.html#inspecting-code + with PathManager.open(os.path.join(dir, "model_ts_code.txt"), "w") as f: + + def get_code(mod): + # Try a few ways to get code using private attributes. + try: + # This contains more information than just `mod.code` + return _get_script_mod(mod)._c.code + except AttributeError: + pass + try: + return mod.code + except AttributeError: + return None + + def dump_code(prefix, mod): + code = get_code(mod) + name = prefix or "root model" + if code is None: + f.write(f"Could not found code for {name} (type={mod.original_name})\n") + f.write("\n") + else: + f.write(f"\nCode for {name}, type={mod.original_name}:\n") + f.write(code) + f.write("\n") + f.write("-" * 80) + + for name, m in mod.named_children(): + dump_code(prefix + "." + name, m) + + if isinstance(model, torch.jit.ScriptFunction): + f.write(get_code(model)) + else: + dump_code("", model) + + def _get_graph(model): + try: + # Recursively dump IR of all modules + return _get_script_mod(model)._c.dump_to_str(True, False, False) + except AttributeError: + return model.graph.str() + + with PathManager.open(os.path.join(dir, "model_ts_IR.txt"), "w") as f: + f.write(_get_graph(model)) + + # Dump IR of the entire graph (all submodules inlined) + with PathManager.open(os.path.join(dir, "model_ts_IR_inlined.txt"), "w") as f: + f.write(str(model.inlined_graph)) + + if not isinstance(model, torch.jit.ScriptFunction): + # Dump the model structure in pytorch style + with PathManager.open(os.path.join(dir, "model.txt"), "w") as f: + f.write(str(model)) diff --git a/detectron2/detectron2/export/torchscript_patch.py b/detectron2/detectron2/export/torchscript_patch.py new file mode 100755 index 0000000..da9b324 --- /dev/null +++ b/detectron2/detectron2/export/torchscript_patch.py @@ -0,0 +1,406 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import os +import sys +import tempfile +from contextlib import ExitStack, contextmanager +from copy import deepcopy +from unittest import mock +import torch +from torch import nn + +# need some explicit imports due to https://github.com/pytorch/pytorch/issues/38964 +import detectron2 # noqa F401 +from detectron2.structures import Boxes, Instances +from detectron2.utils.env import _import_file + +_counter = 0 + + +def _clear_jit_cache(): + from torch.jit._recursive import concrete_type_store + from torch.jit._state import _jit_caching_layer + + concrete_type_store.type_store.clear() # for modules + _jit_caching_layer.clear() # for free functions + + +def _add_instances_conversion_methods(newInstances): + """ + Add from_instances methods to the scripted Instances class. + """ + cls_name = newInstances.__name__ + + @torch.jit.unused + def from_instances(instances: Instances): + """ + Create scripted Instances from original Instances + """ + fields = instances.get_fields() + image_size = instances.image_size + ret = newInstances(image_size) + for name, val in fields.items(): + assert hasattr(ret, f"_{name}"), f"No attribute named {name} in {cls_name}" + setattr(ret, name, deepcopy(val)) + return ret + + newInstances.from_instances = from_instances + + +@contextmanager +def patch_instances(fields): + """ + A contextmanager, under which the Instances class in detectron2 is replaced + by a statically-typed scriptable class, defined by `fields`. + See more in `scripting_with_instances`. + """ + + with tempfile.TemporaryDirectory(prefix="detectron2") as dir, tempfile.NamedTemporaryFile( + mode="w", encoding="utf-8", suffix=".py", dir=dir, delete=False + ) as f: + try: + # Objects that use Instances should not reuse previously-compiled + # results in cache, because `Instances` could be a new class each time. + _clear_jit_cache() + + cls_name, s = _gen_instance_module(fields) + f.write(s) + f.flush() + f.close() + + module = _import(f.name) + new_instances = getattr(module, cls_name) + _ = torch.jit.script(new_instances) + # let torchscript think Instances was scripted already + Instances.__torch_script_class__ = True + # let torchscript find new_instances when looking for the jit type of Instances + Instances._jit_override_qualname = torch._jit_internal._qualified_name(new_instances) + + _add_instances_conversion_methods(new_instances) + yield new_instances + finally: + try: + del Instances.__torch_script_class__ + del Instances._jit_override_qualname + except AttributeError: + pass + sys.modules.pop(module.__name__) + + +def _gen_instance_class(fields): + """ + Args: + fields (dict[name: type]) + """ + + class _FieldType: + def __init__(self, name, type_): + assert isinstance(name, str), f"Field name must be str, got {name}" + self.name = name + self.type_ = type_ + self.annotation = f"{type_.__module__}.{type_.__name__}" + + fields = [_FieldType(k, v) for k, v in fields.items()] + + def indent(level, s): + return " " * 4 * level + s + + lines = [] + + global _counter + _counter += 1 + + cls_name = "ScriptedInstances{}".format(_counter) + + field_names = tuple(x.name for x in fields) + extra_args = ", ".join([f"{f.name}: Optional[{f.annotation}] = None" for f in fields]) + lines.append( + f""" +class {cls_name}: + def __init__(self, image_size: Tuple[int, int], {extra_args}): + self.image_size = image_size + self._field_names = {field_names} +""" + ) + + for f in fields: + lines.append( + indent(2, f"self._{f.name} = torch.jit.annotate(Optional[{f.annotation}], {f.name})") + ) + + for f in fields: + lines.append( + f""" + @property + def {f.name}(self) -> {f.annotation}: + # has to use a local for type refinement + # https://pytorch.org/docs/stable/jit_language_reference.html#optional-type-refinement + t = self._{f.name} + assert t is not None, "{f.name} is None and cannot be accessed!" + return t + + @{f.name}.setter + def {f.name}(self, value: {f.annotation}) -> None: + self._{f.name} = value +""" + ) + + # support method `__len__` + lines.append( + """ + def __len__(self) -> int: +""" + ) + for f in fields: + lines.append( + f""" + t = self._{f.name} + if t is not None: + return len(t) +""" + ) + lines.append( + """ + raise NotImplementedError("Empty Instances does not support __len__!") +""" + ) + + # support method `has` + lines.append( + """ + def has(self, name: str) -> bool: +""" + ) + for f in fields: + lines.append( + f""" + if name == "{f.name}": + return self._{f.name} is not None +""" + ) + lines.append( + """ + return False +""" + ) + + # support method `to` + none_args = ", None" * len(fields) + lines.append( + f""" + def to(self, device: torch.device) -> "{cls_name}": + ret = {cls_name}(self.image_size{none_args}) +""" + ) + for f in fields: + if hasattr(f.type_, "to"): + lines.append( + f""" + t = self._{f.name} + if t is not None: + ret._{f.name} = t.to(device) +""" + ) + else: + # For now, ignore fields that cannot be moved to devices. + # Maybe can support other tensor-like classes (e.g. __torch_function__) + pass + lines.append( + """ + return ret +""" + ) + + # support method `getitem` + none_args = ", None" * len(fields) + lines.append( + f""" + def __getitem__(self, item) -> "{cls_name}": + ret = {cls_name}(self.image_size{none_args}) +""" + ) + for f in fields: + lines.append( + f""" + t = self._{f.name} + if t is not None: + ret._{f.name} = t[item] +""" + ) + lines.append( + """ + return ret +""" + ) + + # support method `cat` + # this version does not contain checks that all instances have same size and fields + none_args = ", None" * len(fields) + lines.append( + f""" + def cat(self, instances: List["{cls_name}"]) -> "{cls_name}": + ret = {cls_name}(self.image_size{none_args}) +""" + ) + for f in fields: + lines.append( + f""" + t = self._{f.name} + if t is not None: + values: List[{f.annotation}] = [x.{f.name} for x in instances] + if torch.jit.isinstance(t, torch.Tensor): + ret._{f.name} = torch.cat(values, dim=0) + else: + ret._{f.name} = t.cat(values) +""" + ) + lines.append( + """ + return ret""" + ) + + # support method `get_fields()` + lines.append( + """ + def get_fields(self) -> Dict[str, Tensor]: + ret = {} + """ + ) + for f in fields: + if f.type_ == Boxes: + stmt = "t.tensor" + elif f.type_ == torch.Tensor: + stmt = "t" + else: + stmt = f'assert False, "unsupported type {str(f.type_)}"' + lines.append( + f""" + t = self._{f.name} + if t is not None: + ret["{f.name}"] = {stmt} + """ + ) + lines.append( + """ + return ret""" + ) + return cls_name, os.linesep.join(lines) + + +def _gen_instance_module(fields): + # TODO: find a more automatic way to enable import of other classes + s = """ +from copy import deepcopy +import torch +from torch import Tensor +import typing +from typing import * + +import detectron2 +from detectron2.structures import Boxes, Instances + +""" + + cls_name, cls_def = _gen_instance_class(fields) + s += cls_def + return cls_name, s + + +def _import(path): + return _import_file( + "{}{}".format(sys.modules[__name__].__name__, _counter), path, make_importable=True + ) + + +@contextmanager +def patch_builtin_len(modules=()): + """ + Patch the builtin len() function of a few detectron2 modules + to use __len__ instead, because __len__ does not convert values to + integers and therefore is friendly to tracing. + + Args: + modules (list[stsr]): names of extra modules to patch len(), in + addition to those in detectron2. + """ + + def _new_len(obj): + return obj.__len__() + + with ExitStack() as stack: + MODULES = [ + "detectron2.modeling.roi_heads.fast_rcnn", + "detectron2.modeling.roi_heads.mask_head", + "detectron2.modeling.roi_heads.keypoint_head", + ] + list(modules) + ctxs = [stack.enter_context(mock.patch(mod + ".len")) for mod in MODULES] + for m in ctxs: + m.side_effect = _new_len + yield + + +def patch_nonscriptable_classes(): + """ + Apply patches on a few nonscriptable detectron2 classes. + Should not have side-effects on eager usage. + """ + # __prepare_scriptable__ can also be added to models for easier maintenance. + # But it complicates the clean model code. + + from detectron2.modeling.backbone import ResNet, FPN + + # Due to https://github.com/pytorch/pytorch/issues/36061, + # we change backbone to use ModuleList for scripting. + # (note: this changes param names in state_dict) + + def prepare_resnet(self): + ret = deepcopy(self) + ret.stages = nn.ModuleList(ret.stages) + for k in self.stage_names: + delattr(ret, k) + return ret + + ResNet.__prepare_scriptable__ = prepare_resnet + + def prepare_fpn(self): + ret = deepcopy(self) + ret.lateral_convs = nn.ModuleList(ret.lateral_convs) + ret.output_convs = nn.ModuleList(ret.output_convs) + for name, _ in self.named_children(): + if name.startswith("fpn_"): + delattr(ret, name) + return ret + + FPN.__prepare_scriptable__ = prepare_fpn + + # Annotate some attributes to be constants for the purpose of scripting, + # even though they are not constants in eager mode. + from detectron2.modeling.roi_heads import StandardROIHeads + + if hasattr(StandardROIHeads, "__annotations__"): + # copy first to avoid editing annotations of base class + StandardROIHeads.__annotations__ = deepcopy(StandardROIHeads.__annotations__) + StandardROIHeads.__annotations__["mask_on"] = torch.jit.Final[bool] + StandardROIHeads.__annotations__["keypoint_on"] = torch.jit.Final[bool] + + +# These patches are not supposed to have side-effects. +patch_nonscriptable_classes() + + +@contextmanager +def freeze_training_mode(model): + """ + A context manager that annotates the "training" attribute of every submodule + to constant, so that the training codepath in these modules can be + meta-compiled away. Upon exiting, the annotations are reverted. + """ + classes = {type(x) for x in model.modules()} + # __constants__ is the old way to annotate constants and not compatible + # with __annotations__ . + classes = {x for x in classes if not hasattr(x, "__constants__")} + for cls in classes: + cls.__annotations__["training"] = torch.jit.Final[bool] + yield + for cls in classes: + cls.__annotations__["training"] = bool diff --git a/detectron2/detectron2/layers/__init__.py b/detectron2/detectron2/layers/__init__.py new file mode 100755 index 0000000..761a3d1 --- /dev/null +++ b/detectron2/detectron2/layers/__init__.py @@ -0,0 +1,26 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .batch_norm import FrozenBatchNorm2d, get_norm, NaiveSyncBatchNorm, CycleBatchNormList +from .deform_conv import DeformConv, ModulatedDeformConv +from .mask_ops import paste_masks_in_image +from .nms import batched_nms, batched_nms_rotated, nms, nms_rotated +from .roi_align import ROIAlign, roi_align +from .roi_align_rotated import ROIAlignRotated, roi_align_rotated +from .shape_spec import ShapeSpec +from .wrappers import ( + BatchNorm2d, + Conv2d, + ConvTranspose2d, + cat, + interpolate, + Linear, + nonzero_tuple, + cross_entropy, + empty_input_loss_func_wrapper, + shapes_to_tensor, + move_device_like, +) +from .blocks import CNNBlockBase, DepthwiseSeparableConv2d +from .aspp import ASPP +from .losses import ciou_loss, diou_loss + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/layers/aspp.py b/detectron2/detectron2/layers/aspp.py new file mode 100755 index 0000000..14861aa --- /dev/null +++ b/detectron2/detectron2/layers/aspp.py @@ -0,0 +1,144 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from copy import deepcopy +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from .batch_norm import get_norm +from .blocks import DepthwiseSeparableConv2d +from .wrappers import Conv2d + + +class ASPP(nn.Module): + """ + Atrous Spatial Pyramid Pooling (ASPP). + """ + + def __init__( + self, + in_channels, + out_channels, + dilations, + *, + norm, + activation, + pool_kernel_size=None, + dropout: float = 0.0, + use_depthwise_separable_conv=False, + ): + """ + Args: + in_channels (int): number of input channels for ASPP. + out_channels (int): number of output channels. + dilations (list): a list of 3 dilations in ASPP. + norm (str or callable): normalization for all conv layers. + See :func:`layers.get_norm` for supported format. norm is + applied to all conv layers except the conv following + global average pooling. + activation (callable): activation function. + pool_kernel_size (tuple, list): the average pooling size (kh, kw) + for image pooling layer in ASPP. If set to None, it always + performs global average pooling. If not None, it must be + divisible by the shape of inputs in forward(). It is recommended + to use a fixed input feature size in training, and set this + option to match this size, so that it performs global average + pooling in training, and the size of the pooling window stays + consistent in inference. + dropout (float): apply dropout on the output of ASPP. It is used in + the official DeepLab implementation with a rate of 0.1: + https://github.com/tensorflow/models/blob/21b73d22f3ed05b650e85ac50849408dd36de32e/research/deeplab/model.py#L532 # noqa + use_depthwise_separable_conv (bool): use DepthwiseSeparableConv2d + for 3x3 convs in ASPP, proposed in :paper:`DeepLabV3+`. + """ + super(ASPP, self).__init__() + assert len(dilations) == 3, "ASPP expects 3 dilations, got {}".format(len(dilations)) + self.pool_kernel_size = pool_kernel_size + self.dropout = dropout + use_bias = norm == "" + self.convs = nn.ModuleList() + # conv 1x1 + self.convs.append( + Conv2d( + in_channels, + out_channels, + kernel_size=1, + bias=use_bias, + norm=get_norm(norm, out_channels), + activation=deepcopy(activation), + ) + ) + weight_init.c2_xavier_fill(self.convs[-1]) + # atrous convs + for dilation in dilations: + if use_depthwise_separable_conv: + self.convs.append( + DepthwiseSeparableConv2d( + in_channels, + out_channels, + kernel_size=3, + padding=dilation, + dilation=dilation, + norm1=norm, + activation1=deepcopy(activation), + norm2=norm, + activation2=deepcopy(activation), + ) + ) + else: + self.convs.append( + Conv2d( + in_channels, + out_channels, + kernel_size=3, + padding=dilation, + dilation=dilation, + bias=use_bias, + norm=get_norm(norm, out_channels), + activation=deepcopy(activation), + ) + ) + weight_init.c2_xavier_fill(self.convs[-1]) + # image pooling + # We do not add BatchNorm because the spatial resolution is 1x1, + # the original TF implementation has BatchNorm. + if pool_kernel_size is None: + image_pooling = nn.Sequential( + nn.AdaptiveAvgPool2d(1), + Conv2d(in_channels, out_channels, 1, bias=True, activation=deepcopy(activation)), + ) + else: + image_pooling = nn.Sequential( + nn.AvgPool2d(kernel_size=pool_kernel_size, stride=1), + Conv2d(in_channels, out_channels, 1, bias=True, activation=deepcopy(activation)), + ) + weight_init.c2_xavier_fill(image_pooling[1]) + self.convs.append(image_pooling) + + self.project = Conv2d( + 5 * out_channels, + out_channels, + kernel_size=1, + bias=use_bias, + norm=get_norm(norm, out_channels), + activation=deepcopy(activation), + ) + weight_init.c2_xavier_fill(self.project) + + def forward(self, x): + size = x.shape[-2:] + if self.pool_kernel_size is not None: + if size[0] % self.pool_kernel_size[0] or size[1] % self.pool_kernel_size[1]: + raise ValueError( + "`pool_kernel_size` must be divisible by the shape of inputs. " + "Input size: {} `pool_kernel_size`: {}".format(size, self.pool_kernel_size) + ) + res = [] + for conv in self.convs: + res.append(conv(x)) + res[-1] = F.interpolate(res[-1], size=size, mode="bilinear", align_corners=False) + res = torch.cat(res, dim=1) + res = self.project(res) + res = F.dropout(res, self.dropout, training=self.training) if self.dropout > 0 else res + return res diff --git a/detectron2/detectron2/layers/batch_norm.py b/detectron2/detectron2/layers/batch_norm.py new file mode 100755 index 0000000..dd8a804 --- /dev/null +++ b/detectron2/detectron2/layers/batch_norm.py @@ -0,0 +1,300 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch +import torch.distributed as dist +from fvcore.nn.distributed import differentiable_all_reduce +from torch import nn +from torch.nn import functional as F + +from detectron2.utils import comm, env + +from .wrappers import BatchNorm2d + + +class FrozenBatchNorm2d(nn.Module): + """ + BatchNorm2d where the batch statistics and the affine parameters are fixed. + + It contains non-trainable buffers called + "weight" and "bias", "running_mean", "running_var", + initialized to perform identity transformation. + + The pre-trained backbone models from Caffe2 only contain "weight" and "bias", + which are computed from the original four parameters of BN. + The affine transform `x * weight + bias` will perform the equivalent + computation of `(x - running_mean) / sqrt(running_var) * weight + bias`. + When loading a backbone model from Caffe2, "running_mean" and "running_var" + will be left unchanged as identity transformation. + + Other pre-trained backbone models may contain all 4 parameters. + + The forward is implemented by `F.batch_norm(..., training=False)`. + """ + + _version = 3 + + def __init__(self, num_features, eps=1e-5): + super().__init__() + self.num_features = num_features + self.eps = eps + self.register_buffer("weight", torch.ones(num_features)) + self.register_buffer("bias", torch.zeros(num_features)) + self.register_buffer("running_mean", torch.zeros(num_features)) + self.register_buffer("running_var", torch.ones(num_features) - eps) + + def forward(self, x): + if x.requires_grad: + # When gradients are needed, F.batch_norm will use extra memory + # because its backward op computes gradients for weight/bias as well. + scale = self.weight * (self.running_var + self.eps).rsqrt() + bias = self.bias - self.running_mean * scale + scale = scale.reshape(1, -1, 1, 1) + bias = bias.reshape(1, -1, 1, 1) + out_dtype = x.dtype # may be half + return x * scale.to(out_dtype) + bias.to(out_dtype) + else: + # When gradients are not needed, F.batch_norm is a single fused op + # and provide more optimization opportunities. + return F.batch_norm( + x, + self.running_mean, + self.running_var, + self.weight, + self.bias, + training=False, + eps=self.eps, + ) + + def _load_from_state_dict( + self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs + ): + version = local_metadata.get("version", None) + + if version is None or version < 2: + # No running_mean/var in early versions + # This will silent the warnings + if prefix + "running_mean" not in state_dict: + state_dict[prefix + "running_mean"] = torch.zeros_like(self.running_mean) + if prefix + "running_var" not in state_dict: + state_dict[prefix + "running_var"] = torch.ones_like(self.running_var) + + super()._load_from_state_dict( + state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs + ) + + def __repr__(self): + return "FrozenBatchNorm2d(num_features={}, eps={})".format(self.num_features, self.eps) + + @classmethod + def convert_frozen_batchnorm(cls, module): + """ + Convert all BatchNorm/SyncBatchNorm in module into FrozenBatchNorm. + + Args: + module (torch.nn.Module): + + Returns: + If module is BatchNorm/SyncBatchNorm, returns a new module. + Otherwise, in-place convert module and return it. + + Similar to convert_sync_batchnorm in + https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/batchnorm.py + """ + bn_module = nn.modules.batchnorm + bn_module = (bn_module.BatchNorm2d, bn_module.SyncBatchNorm) + res = module + if isinstance(module, bn_module): + res = cls(module.num_features) + if module.affine: + res.weight.data = module.weight.data.clone().detach() + res.bias.data = module.bias.data.clone().detach() + res.running_mean.data = module.running_mean.data + res.running_var.data = module.running_var.data + res.eps = module.eps + else: + for name, child in module.named_children(): + new_child = cls.convert_frozen_batchnorm(child) + if new_child is not child: + res.add_module(name, new_child) + return res + + +def get_norm(norm, out_channels): + """ + Args: + norm (str or callable): either one of BN, SyncBN, FrozenBN, GN; + or a callable that takes a channel number and returns + the normalization layer as a nn.Module. + + Returns: + nn.Module or None: the normalization layer + """ + if norm is None: + return None + if isinstance(norm, str): + if len(norm) == 0: + return None + norm = { + "BN": BatchNorm2d, + # Fixed in https://github.com/pytorch/pytorch/pull/36382 + "SyncBN": NaiveSyncBatchNorm if env.TORCH_VERSION <= (1, 5) else nn.SyncBatchNorm, + "FrozenBN": FrozenBatchNorm2d, + "GN": lambda channels: nn.GroupNorm(32, channels), + # for debugging: + "nnSyncBN": nn.SyncBatchNorm, + "naiveSyncBN": NaiveSyncBatchNorm, + # expose stats_mode N as an option to caller, required for zero-len inputs + "naiveSyncBN_N": lambda channels: NaiveSyncBatchNorm(channels, stats_mode="N"), + "LN": lambda channels: LayerNorm(channels), + }[norm] + return norm(out_channels) + + +class NaiveSyncBatchNorm(BatchNorm2d): + """ + In PyTorch<=1.5, ``nn.SyncBatchNorm`` has incorrect gradient + when the batch size on each worker is different. + (e.g., when scale augmentation is used, or when it is applied to mask head). + + This is a slower but correct alternative to `nn.SyncBatchNorm`. + + Note: + There isn't a single definition of Sync BatchNorm. + + When ``stats_mode==""``, this module computes overall statistics by using + statistics of each worker with equal weight. The result is true statistics + of all samples (as if they are all on one worker) only when all workers + have the same (N, H, W). This mode does not support inputs with zero batch size. + + When ``stats_mode=="N"``, this module computes overall statistics by weighting + the statistics of each worker by their ``N``. The result is true statistics + of all samples (as if they are all on one worker) only when all workers + have the same (H, W). It is slower than ``stats_mode==""``. + + Even though the result of this module may not be the true statistics of all samples, + it may still be reasonable because it might be preferrable to assign equal weights + to all workers, regardless of their (H, W) dimension, instead of putting larger weight + on larger images. From preliminary experiments, little difference is found between such + a simplified implementation and an accurate computation of overall mean & variance. + """ + + def __init__(self, *args, stats_mode="", **kwargs): + super().__init__(*args, **kwargs) + assert stats_mode in ["", "N"] + self._stats_mode = stats_mode + + def forward(self, input): + if comm.get_world_size() == 1 or not self.training: + return super().forward(input) + + B, C = input.shape[0], input.shape[1] + + half_input = input.dtype == torch.float16 + if half_input: + # fp16 does not have good enough numerics for the reduction here + input = input.float() + mean = torch.mean(input, dim=[0, 2, 3]) + meansqr = torch.mean(input * input, dim=[0, 2, 3]) + + if self._stats_mode == "": + assert B > 0, 'SyncBatchNorm(stats_mode="") does not support zero batch size.' + vec = torch.cat([mean, meansqr], dim=0) + vec = differentiable_all_reduce(vec) * (1.0 / dist.get_world_size()) + mean, meansqr = torch.split(vec, C) + momentum = self.momentum + else: + if B == 0: + vec = torch.zeros([2 * C + 1], device=mean.device, dtype=mean.dtype) + vec = vec + input.sum() # make sure there is gradient w.r.t input + else: + vec = torch.cat( + [mean, meansqr, torch.ones([1], device=mean.device, dtype=mean.dtype)], dim=0 + ) + vec = differentiable_all_reduce(vec * B) + + total_batch = vec[-1].detach() + momentum = total_batch.clamp(max=1) * self.momentum # no update if total_batch is 0 + mean, meansqr, _ = torch.split(vec / total_batch.clamp(min=1), C) # avoid div-by-zero + + var = meansqr - mean * mean + invstd = torch.rsqrt(var + self.eps) + scale = self.weight * invstd + bias = self.bias - mean * scale + scale = scale.reshape(1, -1, 1, 1) + bias = bias.reshape(1, -1, 1, 1) + + self.running_mean += momentum * (mean.detach() - self.running_mean) + self.running_var += momentum * (var.detach() - self.running_var) + ret = input * scale + bias + if half_input: + ret = ret.half() + return ret + + +class CycleBatchNormList(nn.ModuleList): + """ + Implement domain-specific BatchNorm by cycling. + + When a BatchNorm layer is used for multiple input domains or input + features, it might need to maintain a separate test-time statistics + for each domain. See Sec 5.2 in :paper:`rethinking-batchnorm`. + + This module implements it by using N separate BN layers + and it cycles through them every time a forward() is called. + + NOTE: The caller of this module MUST guarantee to always call + this module by multiple of N times. Otherwise its test-time statistics + will be incorrect. + """ + + def __init__(self, length: int, bn_class=nn.BatchNorm2d, **kwargs): + """ + Args: + length: number of BatchNorm layers to cycle. + bn_class: the BatchNorm class to use + kwargs: arguments of the BatchNorm class, such as num_features. + """ + self._affine = kwargs.pop("affine", True) + super().__init__([bn_class(**kwargs, affine=False) for k in range(length)]) + if self._affine: + # shared affine, domain-specific BN + channels = self[0].num_features + self.weight = nn.Parameter(torch.ones(channels)) + self.bias = nn.Parameter(torch.zeros(channels)) + self._pos = 0 + + def forward(self, x): + ret = self[self._pos](x) + self._pos = (self._pos + 1) % len(self) + + if self._affine: + w = self.weight.reshape(1, -1, 1, 1) + b = self.bias.reshape(1, -1, 1, 1) + return ret * w + b + else: + return ret + + def extra_repr(self): + return f"affine={self._affine}" + + +class LayerNorm(nn.Module): + """ + A LayerNorm variant, popularized by Transformers, that performs point-wise mean and + variance normalization over the channel dimension for inputs that have shape + (batch_size, channels, height, width). + https://github.com/facebookresearch/ConvNeXt/blob/d1fa8f6fef0a165b27399986cc2bdacc92777e40/models/convnext.py#L119 # noqa B950 + """ + + def __init__(self, normalized_shape, eps=1e-6): + super().__init__() + self.weight = nn.Parameter(torch.ones(normalized_shape)) + self.bias = nn.Parameter(torch.zeros(normalized_shape)) + self.eps = eps + self.normalized_shape = (normalized_shape,) + + def forward(self, x): + u = x.mean(1, keepdim=True) + s = (x - u).pow(2).mean(1, keepdim=True) + x = (x - u) / torch.sqrt(s + self.eps) + x = self.weight[:, None, None] * x + self.bias[:, None, None] + return x diff --git a/detectron2/detectron2/layers/blocks.py b/detectron2/detectron2/layers/blocks.py new file mode 100755 index 0000000..1995a4b --- /dev/null +++ b/detectron2/detectron2/layers/blocks.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import fvcore.nn.weight_init as weight_init +from torch import nn + +from .batch_norm import FrozenBatchNorm2d, get_norm +from .wrappers import Conv2d + + +""" +CNN building blocks. +""" + + +class CNNBlockBase(nn.Module): + """ + A CNN block is assumed to have input channels, output channels and a stride. + The input and output of `forward()` method must be NCHW tensors. + The method can perform arbitrary computation but must match the given + channels and stride specification. + + Attribute: + in_channels (int): + out_channels (int): + stride (int): + """ + + def __init__(self, in_channels, out_channels, stride): + """ + The `__init__` method of any subclass should also contain these arguments. + + Args: + in_channels (int): + out_channels (int): + stride (int): + """ + super().__init__() + self.in_channels = in_channels + self.out_channels = out_channels + self.stride = stride + + def freeze(self): + """ + Make this block not trainable. + This method sets all parameters to `requires_grad=False`, + and convert all BatchNorm layers to FrozenBatchNorm + + Returns: + the block itself + """ + for p in self.parameters(): + p.requires_grad = False + FrozenBatchNorm2d.convert_frozen_batchnorm(self) + return self + + +class DepthwiseSeparableConv2d(nn.Module): + """ + A kxk depthwise convolution + a 1x1 convolution. + + In :paper:`xception`, norm & activation are applied on the second conv. + :paper:`mobilenet` uses norm & activation on both convs. + """ + + def __init__( + self, + in_channels, + out_channels, + kernel_size=3, + padding=1, + dilation=1, + *, + norm1=None, + activation1=None, + norm2=None, + activation2=None, + ): + """ + Args: + norm1, norm2 (str or callable): normalization for the two conv layers. + activation1, activation2 (callable(Tensor) -> Tensor): activation + function for the two conv layers. + """ + super().__init__() + self.depthwise = Conv2d( + in_channels, + in_channels, + kernel_size=kernel_size, + padding=padding, + dilation=dilation, + groups=in_channels, + bias=not norm1, + norm=get_norm(norm1, in_channels), + activation=activation1, + ) + self.pointwise = Conv2d( + in_channels, + out_channels, + kernel_size=1, + bias=not norm2, + norm=get_norm(norm2, out_channels), + activation=activation2, + ) + + # default initialization + weight_init.c2_msra_fill(self.depthwise) + weight_init.c2_msra_fill(self.pointwise) + + def forward(self, x): + return self.pointwise(self.depthwise(x)) diff --git a/detectron2/detectron2/layers/csrc/README.md b/detectron2/detectron2/layers/csrc/README.md new file mode 100755 index 0000000..778ed3d --- /dev/null +++ b/detectron2/detectron2/layers/csrc/README.md @@ -0,0 +1,7 @@ + + +To add a new Op: + +1. Create a new directory +2. Implement new ops there +3. Delcare its Python interface in `vision.cpp`. diff --git a/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h b/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h new file mode 100755 index 0000000..03f4211 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated.h @@ -0,0 +1,115 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once +#include + +namespace detectron2 { + +at::Tensor ROIAlignRotated_forward_cpu( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio); + +at::Tensor ROIAlignRotated_backward_cpu( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio); + +#if defined(WITH_CUDA) || defined(WITH_HIP) +at::Tensor ROIAlignRotated_forward_cuda( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio); + +at::Tensor ROIAlignRotated_backward_cuda( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio); +#endif + +// Interface for Python +inline at::Tensor ROIAlignRotated_forward( + const at::Tensor& input, + const at::Tensor& rois, + const double spatial_scale, + const int64_t pooled_height, + const int64_t pooled_width, + const int64_t sampling_ratio) { + if (input.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + return ROIAlignRotated_forward_cuda( + input, + rois, + spatial_scale, + pooled_height, + pooled_width, + sampling_ratio); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + return ROIAlignRotated_forward_cpu( + input, rois, spatial_scale, pooled_height, pooled_width, sampling_ratio); +} + +inline at::Tensor ROIAlignRotated_backward( + const at::Tensor& grad, + const at::Tensor& rois, + const double spatial_scale, + const int64_t pooled_height, + const int64_t pooled_width, + const int64_t batch_size, + const int64_t channels, + const int64_t height, + const int64_t width, + const int64_t sampling_ratio) { + if (grad.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + return ROIAlignRotated_backward_cuda( + grad, + rois, + spatial_scale, + pooled_height, + pooled_width, + batch_size, + channels, + height, + width, + sampling_ratio); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + return ROIAlignRotated_backward_cpu( + grad, + rois, + spatial_scale, + pooled_height, + pooled_width, + batch_size, + channels, + height, + width, + sampling_ratio); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp b/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp new file mode 100755 index 0000000..2a3d305 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cpu.cpp @@ -0,0 +1,522 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include +#include "ROIAlignRotated.h" + +// Note: this implementation originates from the Caffe2 ROIAlignRotated Op +// and PyTorch ROIAlign (non-rotated) Op implementations. +// The key difference between this implementation and those ones is +// we don't do "legacy offset" in this version, as there aren't many previous +// works, if any, using the "legacy" ROIAlignRotated Op. +// This would make the interface a bit cleaner. + +namespace detectron2 { + +namespace { +template +struct PreCalc { + int pos1; + int pos2; + int pos3; + int pos4; + T w1; + T w2; + T w3; + T w4; +}; + +template +void pre_calc_for_bilinear_interpolate( + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int iy_upper, + const int ix_upper, + T roi_start_h, + T roi_start_w, + T bin_size_h, + T bin_size_w, + int roi_bin_grid_h, + int roi_bin_grid_w, + T roi_center_h, + T roi_center_w, + T cos_theta, + T sin_theta, + std::vector>& pre_calc) { + int pre_calc_index = 0; + for (int ph = 0; ph < pooled_height; ph++) { + for (int pw = 0; pw < pooled_width; pw++) { + for (int iy = 0; iy < iy_upper; iy++) { + const T yy = roi_start_h + ph * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < ix_upper; ix++) { + const T xx = roi_start_w + pw * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + // Rotate by theta around the center and translate + // In image space, (y, x) is the order for Right Handed System, + // and this is essentially multiplying the point by a rotation matrix + // to rotate it counterclockwise through angle theta. + T y = yy * cos_theta - xx * sin_theta + roi_center_h; + T x = yy * sin_theta + xx * cos_theta + roi_center_w; + // deal with: inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + PreCalc pc; + pc.pos1 = 0; + pc.pos2 = 0; + pc.pos3 = 0; + pc.pos4 = 0; + pc.w1 = 0; + pc.w2 = 0; + pc.w3 = 0; + pc.w4 = 0; + pre_calc[pre_calc_index] = pc; + pre_calc_index += 1; + continue; + } + + if (y < 0) { + y = 0; + } + if (x < 0) { + x = 0; + } + + int y_low = (int)y; + int x_low = (int)x; + int y_high; + int x_high; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + T w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + // save weights and indices + PreCalc pc; + pc.pos1 = y_low * width + x_low; + pc.pos2 = y_low * width + x_high; + pc.pos3 = y_high * width + x_low; + pc.pos4 = y_high * width + x_high; + pc.w1 = w1; + pc.w2 = w2; + pc.w3 = w3; + pc.w4 = w4; + pre_calc[pre_calc_index] = pc; + + pre_calc_index += 1; + } + } + } + } +} + +template +void bilinear_interpolate_gradient( + const int height, + const int width, + T y, + T x, + T& w1, + T& w2, + T& w3, + T& w4, + int& x_low, + int& x_high, + int& y_low, + int& y_high) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + w1 = w2 = w3 = w4 = 0.; + x_low = x_high = y_low = y_high = -1; + return; + } + + if (y < 0) { + y = 0; + } + + if (x < 0) { + x = 0; + } + + y_low = (int)y; + x_low = (int)x; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + + // reference in forward + // T v1 = input[y_low * width + x_low]; + // T v2 = input[y_low * width + x_high]; + // T v3 = input[y_high * width + x_low]; + // T v4 = input[y_high * width + x_high]; + // T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + return; +} + +template +inline void add(T* address, const T& val) { + *address += val; +} + +} // namespace + +template +void ROIAlignRotatedForward( + const int nthreads, + const T* input, + const T& spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const T* rois, + T* output) { + int n_rois = nthreads / channels / pooled_width / pooled_height; + // (n, c, ph, pw) is an element in the pooled output + // can be parallelized using omp + // #pragma omp parallel for num_threads(32) + for (int n = 0; n < n_rois; n++) { + int index_n = n * channels * pooled_width * pooled_height; + + const T* current_roi = rois + n * 6; + int roi_batch_ind = current_roi[0]; + + // Do not use rounding; this implementation detail is critical + // ROIAlignRotated supports align == true, i.e., continuous coordinate + // by default, thus the 0.5 offset + T offset = (T)0.5; + T roi_center_w = current_roi[1] * spatial_scale - offset; + T roi_center_h = current_roi[2] * spatial_scale - offset; + T roi_width = current_roi[3] * spatial_scale; + T roi_height = current_roi[4] * spatial_scale; + T theta = current_roi[5] * M_PI / 180.0; + T cos_theta = cos(theta); + T sin_theta = sin(theta); + + AT_ASSERTM( + roi_width >= 0 && roi_height >= 0, + "ROIs in ROIAlignRotated do not have non-negative size!"); + + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // We do average (integral) pooling inside a bin + const T count = std::max(roi_bin_grid_h * roi_bin_grid_w, 1); // e.g. = 4 + + // we want to precalculate indices and weights shared by all channels, + // this is the key point of optimization + std::vector> pre_calc( + roi_bin_grid_h * roi_bin_grid_w * pooled_width * pooled_height); + + // roi_start_h and roi_start_w are computed wrt the center of RoI (x, y). + // Appropriate translation needs to be applied after. + T roi_start_h = -roi_height / 2.0; + T roi_start_w = -roi_width / 2.0; + + pre_calc_for_bilinear_interpolate( + height, + width, + pooled_height, + pooled_width, + roi_bin_grid_h, + roi_bin_grid_w, + roi_start_h, + roi_start_w, + bin_size_h, + bin_size_w, + roi_bin_grid_h, + roi_bin_grid_w, + roi_center_h, + roi_center_w, + cos_theta, + sin_theta, + pre_calc); + + for (int c = 0; c < channels; c++) { + int index_n_c = index_n + c * pooled_width * pooled_height; + const T* offset_input = + input + (roi_batch_ind * channels + c) * height * width; + int pre_calc_index = 0; + + for (int ph = 0; ph < pooled_height; ph++) { + for (int pw = 0; pw < pooled_width; pw++) { + int index = index_n_c + ph * pooled_width + pw; + + T output_val = 0.; + for (int iy = 0; iy < roi_bin_grid_h; iy++) { + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + PreCalc pc = pre_calc[pre_calc_index]; + output_val += pc.w1 * offset_input[pc.pos1] + + pc.w2 * offset_input[pc.pos2] + + pc.w3 * offset_input[pc.pos3] + pc.w4 * offset_input[pc.pos4]; + + pre_calc_index += 1; + } + } + output_val /= count; + + output[index] = output_val; + } // for pw + } // for ph + } // for c + } // for n +} + +template +void ROIAlignRotatedBackward( + const int nthreads, + // may not be contiguous. should index using n_stride, etc + const T* grad_output, + const T& spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + T* grad_input, + const T* rois, + const int n_stride, + const int c_stride, + const int h_stride, + const int w_stride) { + for (int index = 0; index < nthreads; index++) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + const T* current_roi = rois + n * 6; + int roi_batch_ind = current_roi[0]; + + // Do not use rounding; this implementation detail is critical + // ROIAlignRotated supports align == true, i.e., continuous coordinate + // by default, thus the 0.5 offset + T offset = (T)0.5; + T roi_center_w = current_roi[1] * spatial_scale - offset; + T roi_center_h = current_roi[2] * spatial_scale - offset; + T roi_width = current_roi[3] * spatial_scale; + T roi_height = current_roi[4] * spatial_scale; + T theta = current_roi[5] * M_PI / 180.0; + T cos_theta = cos(theta); + T sin_theta = sin(theta); + + AT_ASSERTM( + roi_width >= 0 && roi_height >= 0, + "ROIs in ROIAlignRotated do not have non-negative size!"); + + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + T* offset_grad_input = + grad_input + ((roi_batch_ind * channels + c) * height * width); + + int output_offset = n * n_stride + c * c_stride; + const T* offset_grad_output = grad_output + output_offset; + const T grad_output_this_bin = + offset_grad_output[ph * h_stride + pw * w_stride]; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // roi_start_h and roi_start_w are computed wrt the center of RoI (x, y). + // Appropriate translation needs to be applied after. + T roi_start_h = -roi_height / 2.0; + T roi_start_w = -roi_width / 2.0; + + // We do average (integral) pooling inside a bin + const T count = roi_bin_grid_h * roi_bin_grid_w; // e.g. = 4 + + for (int iy = 0; iy < roi_bin_grid_h; iy++) { + const T yy = roi_start_h + ph * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T xx = roi_start_w + pw * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + // Rotate by theta around the center and translate + T y = yy * cos_theta - xx * sin_theta + roi_center_h; + T x = yy * sin_theta + xx * cos_theta + roi_center_w; + + T w1, w2, w3, w4; + int x_low, x_high, y_low, y_high; + + bilinear_interpolate_gradient( + height, width, y, x, w1, w2, w3, w4, x_low, x_high, y_low, y_high); + + T g1 = grad_output_this_bin * w1 / count; + T g2 = grad_output_this_bin * w2 / count; + T g3 = grad_output_this_bin * w3 / count; + T g4 = grad_output_this_bin * w4 / count; + + if (x_low >= 0 && x_high >= 0 && y_low >= 0 && y_high >= 0) { + // atomic add is not needed for now since it is single threaded + add(offset_grad_input + y_low * width + x_low, static_cast(g1)); + add(offset_grad_input + y_low * width + x_high, static_cast(g2)); + add(offset_grad_input + y_high * width + x_low, static_cast(g3)); + add(offset_grad_input + y_high * width + x_high, static_cast(g4)); + } // if + } // ix + } // iy + } // for +} // ROIAlignRotatedBackward + +at::Tensor ROIAlignRotated_forward_cpu( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio) { + AT_ASSERTM(input.device().is_cpu(), "input must be a CPU tensor"); + AT_ASSERTM(rois.device().is_cpu(), "rois must be a CPU tensor"); + + at::TensorArg input_t{input, "input", 1}, rois_t{rois, "rois", 2}; + + at::CheckedFrom c = "ROIAlign_forward_cpu"; + at::checkAllSameType(c, {input_t, rois_t}); + + auto num_rois = rois.size(0); + auto channels = input.size(1); + auto height = input.size(2); + auto width = input.size(3); + + at::Tensor output = at::zeros( + {num_rois, channels, pooled_height, pooled_width}, input.options()); + + auto output_size = num_rois * pooled_height * pooled_width * channels; + + if (output.numel() == 0) { + return output; + } + + auto input_ = input.contiguous(), rois_ = rois.contiguous(); + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + input.scalar_type(), "ROIAlignRotated_forward", [&] { + ROIAlignRotatedForward( + output_size, + input_.data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + rois_.data_ptr(), + output.data_ptr()); + }); + return output; +} + +at::Tensor ROIAlignRotated_backward_cpu( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio) { + AT_ASSERTM(grad.device().is_cpu(), "grad must be a CPU tensor"); + AT_ASSERTM(rois.device().is_cpu(), "rois must be a CPU tensor"); + + at::TensorArg grad_t{grad, "grad", 1}, rois_t{rois, "rois", 2}; + + at::CheckedFrom c = "ROIAlignRotated_backward_cpu"; + at::checkAllSameType(c, {grad_t, rois_t}); + + at::Tensor grad_input = + at::zeros({batch_size, channels, height, width}, grad.options()); + + // handle possibly empty gradients + if (grad.numel() == 0) { + return grad_input; + } + + // get stride values to ensure indexing into gradients is correct. + int n_stride = grad.stride(0); + int c_stride = grad.stride(1); + int h_stride = grad.stride(2); + int w_stride = grad.stride(3); + + auto rois_ = rois.contiguous(); + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + grad.scalar_type(), "ROIAlignRotated_forward", [&] { + ROIAlignRotatedBackward( + grad.numel(), + grad.data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + grad_input.data_ptr(), + rois_.data_ptr(), + n_stride, + c_stride, + h_stride, + w_stride); + }); + return grad_input; +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.cu b/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.cu new file mode 100755 index 0000000..fca1865 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/ROIAlignRotated/ROIAlignRotated_cuda.cu @@ -0,0 +1,443 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include +#include +#include +#include + +// TODO make it in a common file +#define CUDA_1D_KERNEL_LOOP(i, n) \ + for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \ + i += blockDim.x * gridDim.x) + +// Note: this implementation originates from the Caffe2 ROIAlignRotated Op +// and PyTorch ROIAlign (non-rotated) Op implementations. +// The key difference between this implementation and those ones is +// we don't do "legacy offset" in this version, as there aren't many previous +// works, if any, using the "legacy" ROIAlignRotated Op. +// This would make the interface a bit cleaner. + +namespace detectron2 { + +namespace { + +template +__device__ T bilinear_interpolate( + const T* input, + const int height, + const int width, + T y, + T x) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + return 0; + } + + if (y < 0) { + y = 0; + } + + if (x < 0) { + x = 0; + } + + int y_low = (int)y; + int x_low = (int)x; + int y_high; + int x_high; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + // do bilinear interpolation + T v1 = input[y_low * width + x_low]; + T v2 = input[y_low * width + x_high]; + T v3 = input[y_high * width + x_low]; + T v4 = input[y_high * width + x_high]; + T w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + return val; +} + +template +__device__ void bilinear_interpolate_gradient( + const int height, + const int width, + T y, + T x, + T& w1, + T& w2, + T& w3, + T& w4, + int& x_low, + int& x_high, + int& y_low, + int& y_high) { + // deal with cases that inverse elements are out of feature map boundary + if (y < -1.0 || y > height || x < -1.0 || x > width) { + // empty + w1 = w2 = w3 = w4 = 0.; + x_low = x_high = y_low = y_high = -1; + return; + } + + if (y < 0) { + y = 0; + } + + if (x < 0) { + x = 0; + } + + y_low = (int)y; + x_low = (int)x; + + if (y_low >= height - 1) { + y_high = y_low = height - 1; + y = (T)y_low; + } else { + y_high = y_low + 1; + } + + if (x_low >= width - 1) { + x_high = x_low = width - 1; + x = (T)x_low; + } else { + x_high = x_low + 1; + } + + T ly = y - y_low; + T lx = x - x_low; + T hy = 1. - ly, hx = 1. - lx; + + // reference in forward + // T v1 = input[y_low * width + x_low]; + // T v2 = input[y_low * width + x_high]; + // T v3 = input[y_high * width + x_low]; + // T v4 = input[y_high * width + x_high]; + // T val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + + w1 = hy * hx, w2 = hy * lx, w3 = ly * hx, w4 = ly * lx; + + return; +} + +} // namespace + +template +__global__ void RoIAlignRotatedForward( + const int nthreads, + const T* input, + const T spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + const T* rois, + T* top_data) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + const T* current_roi = rois + n * 6; + int roi_batch_ind = current_roi[0]; + + // Do not use rounding; this implementation detail is critical + // ROIAlignRotated supports align == true, i.e., continuous coordinate + // by default, thus the 0.5 offset + T offset = (T)0.5; + T roi_center_w = current_roi[1] * spatial_scale - offset; + T roi_center_h = current_roi[2] * spatial_scale - offset; + T roi_width = current_roi[3] * spatial_scale; + T roi_height = current_roi[4] * spatial_scale; + T theta = current_roi[5] * M_PI / 180.0; + T cos_theta = cos(theta); + T sin_theta = sin(theta); + + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + const T* offset_input = + input + (roi_batch_ind * channels + c) * height * width; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // roi_start_h and roi_start_w are computed wrt the center of RoI (x, y). + // Appropriate translation needs to be applied after. + T roi_start_h = -roi_height / 2.0; + T roi_start_w = -roi_width / 2.0; + + // We do average (inte gral) pooling inside a bin + const T count = max(roi_bin_grid_h * roi_bin_grid_w, 1); // e.g. = 4 + + T output_val = 0.; + for (int iy = 0; iy < roi_bin_grid_h; iy++) // e.g., iy = 0, 1 + { + const T yy = roi_start_h + ph * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T xx = roi_start_w + pw * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + // Rotate by theta around the center and translate + T y = yy * cos_theta - xx * sin_theta + roi_center_h; + T x = yy * sin_theta + xx * cos_theta + roi_center_w; + + T val = bilinear_interpolate(offset_input, height, width, y, x); + output_val += val; + } + } + output_val /= count; + + top_data[index] = output_val; + } +} + +template +__global__ void RoIAlignRotatedBackwardFeature( + const int nthreads, + const T* top_diff, + const int num_rois, + const T spatial_scale, + const int channels, + const int height, + const int width, + const int pooled_height, + const int pooled_width, + const int sampling_ratio, + T* bottom_diff, + const T* rois) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + // (n, c, ph, pw) is an element in the pooled output + int pw = index % pooled_width; + int ph = (index / pooled_width) % pooled_height; + int c = (index / pooled_width / pooled_height) % channels; + int n = index / pooled_width / pooled_height / channels; + + const T* current_roi = rois + n * 6; + int roi_batch_ind = current_roi[0]; + + // Do not use rounding; this implementation detail is critical + // ROIAlignRotated supports align == true, i.e., continuous coordinate + // by default, thus the 0.5 offset + T offset = (T)0.5; + T roi_center_w = current_roi[1] * spatial_scale - offset; + T roi_center_h = current_roi[2] * spatial_scale - offset; + T roi_width = current_roi[3] * spatial_scale; + T roi_height = current_roi[4] * spatial_scale; + T theta = current_roi[5] * M_PI / 180.0; + T cos_theta = cos(theta); + T sin_theta = sin(theta); + + T bin_size_h = static_cast(roi_height) / static_cast(pooled_height); + T bin_size_w = static_cast(roi_width) / static_cast(pooled_width); + + T* offset_bottom_diff = + bottom_diff + (roi_batch_ind * channels + c) * height * width; + + int top_offset = (n * channels + c) * pooled_height * pooled_width; + const T* offset_top_diff = top_diff + top_offset; + const T top_diff_this_bin = offset_top_diff[ph * pooled_width + pw]; + + // We use roi_bin_grid to sample the grid and mimic integral + int roi_bin_grid_h = (sampling_ratio > 0) + ? sampling_ratio + : ceil(roi_height / pooled_height); // e.g., = 2 + int roi_bin_grid_w = + (sampling_ratio > 0) ? sampling_ratio : ceil(roi_width / pooled_width); + + // roi_start_h and roi_start_w are computed wrt the center of RoI (x, y). + // Appropriate translation needs to be applied after. + T roi_start_h = -roi_height / 2.0; + T roi_start_w = -roi_width / 2.0; + + // We do average (integral) pooling inside a bin + const T count = roi_bin_grid_h * roi_bin_grid_w; // e.g. = 4 + + for (int iy = 0; iy < roi_bin_grid_h; iy++) // e.g., iy = 0, 1 + { + const T yy = roi_start_h + ph * bin_size_h + + static_cast(iy + .5f) * bin_size_h / + static_cast(roi_bin_grid_h); // e.g., 0.5, 1.5 + for (int ix = 0; ix < roi_bin_grid_w; ix++) { + const T xx = roi_start_w + pw * bin_size_w + + static_cast(ix + .5f) * bin_size_w / + static_cast(roi_bin_grid_w); + + // Rotate by theta around the center and translate + T y = yy * cos_theta - xx * sin_theta + roi_center_h; + T x = yy * sin_theta + xx * cos_theta + roi_center_w; + + T w1, w2, w3, w4; + int x_low, x_high, y_low, y_high; + + bilinear_interpolate_gradient( + height, width, y, x, w1, w2, w3, w4, x_low, x_high, y_low, y_high); + + T g1 = top_diff_this_bin * w1 / count; + T g2 = top_diff_this_bin * w2 / count; + T g3 = top_diff_this_bin * w3 / count; + T g4 = top_diff_this_bin * w4 / count; + + if (x_low >= 0 && x_high >= 0 && y_low >= 0 && y_high >= 0) { + atomicAdd( + offset_bottom_diff + y_low * width + x_low, static_cast(g1)); + atomicAdd( + offset_bottom_diff + y_low * width + x_high, static_cast(g2)); + atomicAdd( + offset_bottom_diff + y_high * width + x_low, static_cast(g3)); + atomicAdd( + offset_bottom_diff + y_high * width + x_high, static_cast(g4)); + } // if + } // ix + } // iy + } // CUDA_1D_KERNEL_LOOP +} // RoIAlignRotatedBackward + +at::Tensor ROIAlignRotated_forward_cuda( + const at::Tensor& input, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int sampling_ratio) { + AT_ASSERTM(input.device().is_cuda(), "input must be a CUDA tensor"); + AT_ASSERTM(rois.device().is_cuda(), "rois must be a CUDA tensor"); + at::TensorArg input_t{input, "input", 1}, rois_t{rois, "rois", 2}; + + at::CheckedFrom c = "ROIAlignRotated_forward_cuda"; + at::checkAllSameGPU(c, {input_t, rois_t}); + at::checkAllSameType(c, {input_t, rois_t}); + at::cuda::CUDAGuard device_guard(input.device()); + + auto num_rois = rois.size(0); + auto channels = input.size(1); + auto height = input.size(2); + auto width = input.size(3); + + auto output = at::empty( + {num_rois, channels, pooled_height, pooled_width}, input.options()); + auto output_size = num_rois * pooled_height * pooled_width * channels; + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min( + at::cuda::ATenCeilDiv( + static_cast(output_size), static_cast(512)), + static_cast(4096))); + dim3 block(512); + + if (output.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return output; + } + + auto input_ = input.contiguous(), rois_ = rois.contiguous(); + AT_DISPATCH_FLOATING_TYPES( + input.scalar_type(), "ROIAlignRotated_forward", [&] { + RoIAlignRotatedForward<<>>( + output_size, + input_.data_ptr(), + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + rois_.data_ptr(), + output.data_ptr()); + }); + cudaDeviceSynchronize(); + AT_CUDA_CHECK(cudaGetLastError()); + return output; +} + +// TODO remove the dependency on input and use instead its sizes -> save memory +at::Tensor ROIAlignRotated_backward_cuda( + const at::Tensor& grad, + const at::Tensor& rois, + const float spatial_scale, + const int pooled_height, + const int pooled_width, + const int batch_size, + const int channels, + const int height, + const int width, + const int sampling_ratio) { + AT_ASSERTM(grad.device().is_cuda(), "grad must be a CUDA tensor"); + AT_ASSERTM(rois.device().is_cuda(), "rois must be a CUDA tensor"); + + at::TensorArg grad_t{grad, "grad", 1}, rois_t{rois, "rois", 2}; + at::CheckedFrom c = "ROIAlign_backward_cuda"; + at::checkAllSameGPU(c, {grad_t, rois_t}); + at::checkAllSameType(c, {grad_t, rois_t}); + at::cuda::CUDAGuard device_guard(grad.device()); + + auto num_rois = rois.size(0); + auto grad_input = + at::zeros({batch_size, channels, height, width}, grad.options()); + + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min( + at::cuda::ATenCeilDiv( + static_cast(grad.numel()), static_cast(512)), + static_cast(4096))); + dim3 block(512); + + // handle possibly empty gradients + if (grad.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return grad_input; + } + + auto grad_ = grad.contiguous(), rois_ = rois.contiguous(); + AT_DISPATCH_FLOATING_TYPES( + grad.scalar_type(), "ROIAlignRotated_backward", [&] { + RoIAlignRotatedBackwardFeature<<>>( + grad.numel(), + grad_.data_ptr(), + num_rois, + spatial_scale, + channels, + height, + width, + pooled_height, + pooled_width, + sampling_ratio, + grad_input.data_ptr(), + rois_.data_ptr()); + }); + AT_CUDA_CHECK(cudaGetLastError()); + return grad_input; +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated.h b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated.h new file mode 100755 index 0000000..3bf383b --- /dev/null +++ b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated.h @@ -0,0 +1,35 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once +#include + +namespace detectron2 { + +at::Tensor box_iou_rotated_cpu( + const at::Tensor& boxes1, + const at::Tensor& boxes2); + +#if defined(WITH_CUDA) || defined(WITH_HIP) +at::Tensor box_iou_rotated_cuda( + const at::Tensor& boxes1, + const at::Tensor& boxes2); +#endif + +// Interface for Python +// inline is needed to prevent multiple function definitions when this header is +// included by different cpps +inline at::Tensor box_iou_rotated( + const at::Tensor& boxes1, + const at::Tensor& boxes2) { + assert(boxes1.device().is_cuda() == boxes2.device().is_cuda()); + if (boxes1.device().is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + return box_iou_rotated_cuda(boxes1.contiguous(), boxes2.contiguous()); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + + return box_iou_rotated_cpu(boxes1.contiguous(), boxes2.contiguous()); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cpu.cpp b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cpu.cpp new file mode 100755 index 0000000..c843487 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cpu.cpp @@ -0,0 +1,39 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include "box_iou_rotated.h" +#include "box_iou_rotated_utils.h" + +namespace detectron2 { + +template +void box_iou_rotated_cpu_kernel( + const at::Tensor& boxes1, + const at::Tensor& boxes2, + at::Tensor& ious) { + auto num_boxes1 = boxes1.size(0); + auto num_boxes2 = boxes2.size(0); + + for (int i = 0; i < num_boxes1; i++) { + for (int j = 0; j < num_boxes2; j++) { + ious[i * num_boxes2 + j] = single_box_iou_rotated( + boxes1[i].data_ptr(), boxes2[j].data_ptr()); + } + } +} + +at::Tensor box_iou_rotated_cpu( + // input must be contiguous: + const at::Tensor& boxes1, + const at::Tensor& boxes2) { + auto num_boxes1 = boxes1.size(0); + auto num_boxes2 = boxes2.size(0); + at::Tensor ious = + at::empty({num_boxes1 * num_boxes2}, boxes1.options().dtype(at::kFloat)); + + box_iou_rotated_cpu_kernel(boxes1, boxes2, ious); + + // reshape from 1d array to 2d array + auto shape = std::vector{num_boxes1, num_boxes2}; + return ious.reshape(shape); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.cu b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.cu new file mode 100755 index 0000000..952710e --- /dev/null +++ b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_cuda.cu @@ -0,0 +1,130 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include +#include +#include +#include +#include "box_iou_rotated_utils.h" + +namespace detectron2 { + +// 2D block with 32 * 16 = 512 threads per block +const int BLOCK_DIM_X = 32; +const int BLOCK_DIM_Y = 16; + +template +__global__ void box_iou_rotated_cuda_kernel( + const int n_boxes1, + const int n_boxes2, + const T* dev_boxes1, + const T* dev_boxes2, + T* dev_ious) { + const int row_start = blockIdx.x * blockDim.x; + const int col_start = blockIdx.y * blockDim.y; + + const int row_size = min(n_boxes1 - row_start, blockDim.x); + const int col_size = min(n_boxes2 - col_start, blockDim.y); + + __shared__ float block_boxes1[BLOCK_DIM_X * 5]; + __shared__ float block_boxes2[BLOCK_DIM_Y * 5]; + + // It's safe to copy using threadIdx.x since BLOCK_DIM_X >= BLOCK_DIM_Y + if (threadIdx.x < row_size && threadIdx.y == 0) { + block_boxes1[threadIdx.x * 5 + 0] = + dev_boxes1[(row_start + threadIdx.x) * 5 + 0]; + block_boxes1[threadIdx.x * 5 + 1] = + dev_boxes1[(row_start + threadIdx.x) * 5 + 1]; + block_boxes1[threadIdx.x * 5 + 2] = + dev_boxes1[(row_start + threadIdx.x) * 5 + 2]; + block_boxes1[threadIdx.x * 5 + 3] = + dev_boxes1[(row_start + threadIdx.x) * 5 + 3]; + block_boxes1[threadIdx.x * 5 + 4] = + dev_boxes1[(row_start + threadIdx.x) * 5 + 4]; + } + + if (threadIdx.x < col_size && threadIdx.y == 0) { + block_boxes2[threadIdx.x * 5 + 0] = + dev_boxes2[(col_start + threadIdx.x) * 5 + 0]; + block_boxes2[threadIdx.x * 5 + 1] = + dev_boxes2[(col_start + threadIdx.x) * 5 + 1]; + block_boxes2[threadIdx.x * 5 + 2] = + dev_boxes2[(col_start + threadIdx.x) * 5 + 2]; + block_boxes2[threadIdx.x * 5 + 3] = + dev_boxes2[(col_start + threadIdx.x) * 5 + 3]; + block_boxes2[threadIdx.x * 5 + 4] = + dev_boxes2[(col_start + threadIdx.x) * 5 + 4]; + } + __syncthreads(); + + if (threadIdx.x < row_size && threadIdx.y < col_size) { + int offset = (row_start + threadIdx.x) * n_boxes2 + col_start + threadIdx.y; + dev_ious[offset] = single_box_iou_rotated( + block_boxes1 + threadIdx.x * 5, block_boxes2 + threadIdx.y * 5); + } +} + +at::Tensor box_iou_rotated_cuda( + // input must be contiguous + const at::Tensor& boxes1, + const at::Tensor& boxes2) { + using scalar_t = float; + AT_ASSERTM( + boxes1.scalar_type() == at::kFloat, "boxes1 must be a float tensor"); + AT_ASSERTM( + boxes2.scalar_type() == at::kFloat, "boxes2 must be a float tensor"); + AT_ASSERTM(boxes1.is_cuda(), "boxes1 must be a CUDA tensor"); + AT_ASSERTM(boxes2.is_cuda(), "boxes2 must be a CUDA tensor"); + at::cuda::CUDAGuard device_guard(boxes1.device()); + + auto num_boxes1 = boxes1.size(0); + auto num_boxes2 = boxes2.size(0); + + at::Tensor ious = + at::empty({num_boxes1 * num_boxes2}, boxes1.options().dtype(at::kFloat)); + + bool transpose = false; + if (num_boxes1 > 0 && num_boxes2 > 0) { + scalar_t *data1 = boxes1.data_ptr(), + *data2 = boxes2.data_ptr(); + + if (num_boxes2 > 65535 * BLOCK_DIM_Y) { + AT_ASSERTM( + num_boxes1 <= 65535 * BLOCK_DIM_Y, + "Too many boxes for box_iou_rotated_cuda!"); + // x dim is allowed to be large, but y dim cannot, + // so we transpose the two to avoid "invalid configuration argument" + // error. We assume one of them is small. Otherwise the result is hard to + // fit in memory anyway. + std::swap(num_boxes1, num_boxes2); + std::swap(data1, data2); + transpose = true; + } + + const int blocks_x = + at::cuda::ATenCeilDiv(static_cast(num_boxes1), BLOCK_DIM_X); + const int blocks_y = + at::cuda::ATenCeilDiv(static_cast(num_boxes2), BLOCK_DIM_Y); + + dim3 blocks(blocks_x, blocks_y); + dim3 threads(BLOCK_DIM_X, BLOCK_DIM_Y); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + box_iou_rotated_cuda_kernel<<>>( + num_boxes1, + num_boxes2, + data1, + data2, + (scalar_t*)ious.data_ptr()); + + AT_CUDA_CHECK(cudaGetLastError()); + } + + // reshape from 1d array to 2d array + auto shape = std::vector{num_boxes1, num_boxes2}; + if (transpose) { + return ious.view(shape).t(); + } else { + return ious.view(shape); + } +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h new file mode 100755 index 0000000..b54a5dd --- /dev/null +++ b/detectron2/detectron2/layers/csrc/box_iou_rotated/box_iou_rotated_utils.h @@ -0,0 +1,370 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once + +#include +#include + +#if defined(__CUDACC__) || __HCC__ == 1 || __HIP__ == 1 +// Designates functions callable from the host (CPU) and the device (GPU) +#define HOST_DEVICE __host__ __device__ +#define HOST_DEVICE_INLINE HOST_DEVICE __forceinline__ +#else +#include +#define HOST_DEVICE +#define HOST_DEVICE_INLINE HOST_DEVICE inline +#endif + +namespace detectron2 { + +namespace { + +template +struct RotatedBox { + T x_ctr, y_ctr, w, h, a; +}; + +template +struct Point { + T x, y; + HOST_DEVICE_INLINE Point(const T& px = 0, const T& py = 0) : x(px), y(py) {} + HOST_DEVICE_INLINE Point operator+(const Point& p) const { + return Point(x + p.x, y + p.y); + } + HOST_DEVICE_INLINE Point& operator+=(const Point& p) { + x += p.x; + y += p.y; + return *this; + } + HOST_DEVICE_INLINE Point operator-(const Point& p) const { + return Point(x - p.x, y - p.y); + } + HOST_DEVICE_INLINE Point operator*(const T coeff) const { + return Point(x * coeff, y * coeff); + } +}; + +template +HOST_DEVICE_INLINE T dot_2d(const Point& A, const Point& B) { + return A.x * B.x + A.y * B.y; +} + +// R: result type. can be different from input type +template +HOST_DEVICE_INLINE R cross_2d(const Point& A, const Point& B) { + return static_cast(A.x) * static_cast(B.y) - + static_cast(B.x) * static_cast(A.y); +} + +template +HOST_DEVICE_INLINE void get_rotated_vertices( + const RotatedBox& box, + Point (&pts)[4]) { + // M_PI / 180. == 0.01745329251 + double theta = box.a * 0.01745329251; + T cosTheta2 = (T)cos(theta) * 0.5f; + T sinTheta2 = (T)sin(theta) * 0.5f; + + // y: top --> down; x: left --> right + pts[0].x = box.x_ctr + sinTheta2 * box.h + cosTheta2 * box.w; + pts[0].y = box.y_ctr + cosTheta2 * box.h - sinTheta2 * box.w; + pts[1].x = box.x_ctr - sinTheta2 * box.h + cosTheta2 * box.w; + pts[1].y = box.y_ctr - cosTheta2 * box.h - sinTheta2 * box.w; + pts[2].x = 2 * box.x_ctr - pts[0].x; + pts[2].y = 2 * box.y_ctr - pts[0].y; + pts[3].x = 2 * box.x_ctr - pts[1].x; + pts[3].y = 2 * box.y_ctr - pts[1].y; +} + +template +HOST_DEVICE_INLINE int get_intersection_points( + const Point (&pts1)[4], + const Point (&pts2)[4], + Point (&intersections)[24]) { + // Line vector + // A line from p1 to p2 is: p1 + (p2-p1)*t, t=[0,1] + Point vec1[4], vec2[4]; + for (int i = 0; i < 4; i++) { + vec1[i] = pts1[(i + 1) % 4] - pts1[i]; + vec2[i] = pts2[(i + 1) % 4] - pts2[i]; + } + + // When computing the intersection area, it doesn't hurt if we have + // more (duplicated/approximate) intersections/vertices than needed, + // while it can cause drastic difference if we miss an intersection/vertex. + // Therefore, we add an epsilon to relax the comparisons between + // the float point numbers that decide the intersection points. + double EPS = 1e-5; + + // Line test - test all line combos for intersection + int num = 0; // number of intersections + for (int i = 0; i < 4; i++) { + for (int j = 0; j < 4; j++) { + // Solve for 2x2 Ax=b + T det = cross_2d(vec2[j], vec1[i]); + + // This takes care of parallel lines + if (fabs(det) <= 1e-14) { + continue; + } + + auto vec12 = pts2[j] - pts1[i]; + + T t1 = cross_2d(vec2[j], vec12) / det; + T t2 = cross_2d(vec1[i], vec12) / det; + + if (t1 > -EPS && t1 < 1.0f + EPS && t2 > -EPS && t2 < 1.0f + EPS) { + intersections[num++] = pts1[i] + vec1[i] * t1; + } + } + } + + // Check for vertices of rect1 inside rect2 + { + const auto& AB = vec2[0]; + const auto& DA = vec2[3]; + auto ABdotAB = dot_2d(AB, AB); + auto ADdotAD = dot_2d(DA, DA); + for (int i = 0; i < 4; i++) { + // assume ABCD is the rectangle, and P is the point to be judged + // P is inside ABCD iff. P's projection on AB lies within AB + // and P's projection on AD lies within AD + + auto AP = pts1[i] - pts2[0]; + + auto APdotAB = dot_2d(AP, AB); + auto APdotAD = -dot_2d(AP, DA); + + if ((APdotAB > -EPS) && (APdotAD > -EPS) && (APdotAB < ABdotAB + EPS) && + (APdotAD < ADdotAD + EPS)) { + intersections[num++] = pts1[i]; + } + } + } + + // Reverse the check - check for vertices of rect2 inside rect1 + { + const auto& AB = vec1[0]; + const auto& DA = vec1[3]; + auto ABdotAB = dot_2d(AB, AB); + auto ADdotAD = dot_2d(DA, DA); + for (int i = 0; i < 4; i++) { + auto AP = pts2[i] - pts1[0]; + + auto APdotAB = dot_2d(AP, AB); + auto APdotAD = -dot_2d(AP, DA); + + if ((APdotAB > -EPS) && (APdotAD > -EPS) && (APdotAB < ABdotAB + EPS) && + (APdotAD < ADdotAD + EPS)) { + intersections[num++] = pts2[i]; + } + } + } + + return num; +} + +template +HOST_DEVICE_INLINE int convex_hull_graham( + const Point (&p)[24], + const int& num_in, + Point (&q)[24], + bool shift_to_zero = false) { + assert(num_in >= 2); + + // Step 1: + // Find point with minimum y + // if more than 1 points have the same minimum y, + // pick the one with the minimum x. + int t = 0; + for (int i = 1; i < num_in; i++) { + if (p[i].y < p[t].y || (p[i].y == p[t].y && p[i].x < p[t].x)) { + t = i; + } + } + auto& start = p[t]; // starting point + + // Step 2: + // Subtract starting point from every points (for sorting in the next step) + for (int i = 0; i < num_in; i++) { + q[i] = p[i] - start; + } + + // Swap the starting point to position 0 + auto tmp = q[0]; + q[0] = q[t]; + q[t] = tmp; + + // Step 3: + // Sort point 1 ~ num_in according to their relative cross-product values + // (essentially sorting according to angles) + // If the angles are the same, sort according to their distance to origin + T dist[24]; +#if defined(__CUDACC__) || __HCC__ == 1 || __HIP__ == 1 + // compute distance to origin before sort, and sort them together with the + // points + for (int i = 0; i < num_in; i++) { + dist[i] = dot_2d(q[i], q[i]); + } + + // CUDA version + // In the future, we can potentially use thrust + // for sorting here to improve speed (though not guaranteed) + for (int i = 1; i < num_in - 1; i++) { + for (int j = i + 1; j < num_in; j++) { + T crossProduct = cross_2d(q[i], q[j]); + if ((crossProduct < -1e-6) || + (fabs(crossProduct) < 1e-6 && dist[i] > dist[j])) { + auto q_tmp = q[i]; + q[i] = q[j]; + q[j] = q_tmp; + auto dist_tmp = dist[i]; + dist[i] = dist[j]; + dist[j] = dist_tmp; + } + } + } +#else + // CPU version + std::sort( + q + 1, q + num_in, [](const Point& A, const Point& B) -> bool { + T temp = cross_2d(A, B); + if (fabs(temp) < 1e-6) { + return dot_2d(A, A) < dot_2d(B, B); + } else { + return temp > 0; + } + }); + // compute distance to origin after sort, since the points are now different. + for (int i = 0; i < num_in; i++) { + dist[i] = dot_2d(q[i], q[i]); + } +#endif + + // Step 4: + // Make sure there are at least 2 points (that don't overlap with each other) + // in the stack + int k; // index of the non-overlapped second point + for (k = 1; k < num_in; k++) { + if (dist[k] > 1e-8) { + break; + } + } + if (k == num_in) { + // We reach the end, which means the convex hull is just one point + q[0] = p[t]; + return 1; + } + q[1] = q[k]; + int m = 2; // 2 points in the stack + // Step 5: + // Finally we can start the scanning process. + // When a non-convex relationship between the 3 points is found + // (either concave shape or duplicated points), + // we pop the previous point from the stack + // until the 3-point relationship is convex again, or + // until the stack only contains two points + for (int i = k + 1; i < num_in; i++) { + while (m > 1) { + auto q1 = q[i] - q[m - 2], q2 = q[m - 1] - q[m - 2]; + // cross_2d() uses FMA and therefore computes round(round(q1.x*q2.y) - + // q2.x*q1.y) So it may not return 0 even when q1==q2. Therefore we + // compare round(q1.x*q2.y) and round(q2.x*q1.y) directly. (round means + // round to nearest floating point). + if (q1.x * q2.y >= q2.x * q1.y) + m--; + else + break; + } + // Using double also helps, but float can solve the issue for now. + // while (m > 1 && cross_2d(q[i] - q[m - 2], q[m - 1] - q[m - 2]) + // >= 0) { + // m--; + // } + q[m++] = q[i]; + } + + // Step 6 (Optional): + // In general sense we need the original coordinates, so we + // need to shift the points back (reverting Step 2) + // But if we're only interested in getting the area/perimeter of the shape + // We can simply return. + if (!shift_to_zero) { + for (int i = 0; i < m; i++) { + q[i] += start; + } + } + + return m; +} + +template +HOST_DEVICE_INLINE T polygon_area(const Point (&q)[24], const int& m) { + if (m <= 2) { + return 0; + } + + T area = 0; + for (int i = 1; i < m - 1; i++) { + area += fabs(cross_2d(q[i] - q[0], q[i + 1] - q[0])); + } + + return area / 2.0; +} + +template +HOST_DEVICE_INLINE T rotated_boxes_intersection( + const RotatedBox& box1, + const RotatedBox& box2) { + // There are up to 4 x 4 + 4 + 4 = 24 intersections (including dups) returned + // from rotated_rect_intersection_pts + Point intersectPts[24], orderedPts[24]; + + Point pts1[4]; + Point pts2[4]; + get_rotated_vertices(box1, pts1); + get_rotated_vertices(box2, pts2); + + int num = get_intersection_points(pts1, pts2, intersectPts); + + if (num <= 2) { + return 0.0; + } + + // Convex Hull to order the intersection points in clockwise order and find + // the contour area. + int num_convex = convex_hull_graham(intersectPts, num, orderedPts, true); + return polygon_area(orderedPts, num_convex); +} + +} // namespace + +template +HOST_DEVICE_INLINE T +single_box_iou_rotated(T const* const box1_raw, T const* const box2_raw) { + // shift center to the middle point to achieve higher precision in result + RotatedBox box1, box2; + auto center_shift_x = (box1_raw[0] + box2_raw[0]) / 2.0; + auto center_shift_y = (box1_raw[1] + box2_raw[1]) / 2.0; + box1.x_ctr = box1_raw[0] - center_shift_x; + box1.y_ctr = box1_raw[1] - center_shift_y; + box1.w = box1_raw[2]; + box1.h = box1_raw[3]; + box1.a = box1_raw[4]; + box2.x_ctr = box2_raw[0] - center_shift_x; + box2.y_ctr = box2_raw[1] - center_shift_y; + box2.w = box2_raw[2]; + box2.h = box2_raw[3]; + box2.a = box2_raw[4]; + + T area1 = box1.w * box1.h; + T area2 = box2.w * box2.h; + if (area1 < 1e-14 || area2 < 1e-14) { + return 0.f; + } + + T intersection = rotated_boxes_intersection(box1, box2); + T iou = intersection / (area1 + area2 - intersection); + return iou; +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp b/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp new file mode 100755 index 0000000..0a5b7b9 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.cpp @@ -0,0 +1,507 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include "cocoeval.h" +#include +#include +#include +#include + +using namespace pybind11::literals; + +namespace detectron2 { + +namespace COCOeval { + +// Sort detections from highest score to lowest, such that +// detection_instances[detection_sorted_indices[t]] >= +// detection_instances[detection_sorted_indices[t+1]]. Use stable_sort to match +// original COCO API +void SortInstancesByDetectionScore( + const std::vector& detection_instances, + std::vector* detection_sorted_indices) { + detection_sorted_indices->resize(detection_instances.size()); + std::iota( + detection_sorted_indices->begin(), detection_sorted_indices->end(), 0); + std::stable_sort( + detection_sorted_indices->begin(), + detection_sorted_indices->end(), + [&detection_instances](size_t j1, size_t j2) { + return detection_instances[j1].score > detection_instances[j2].score; + }); +} + +// Partition the ground truth objects based on whether or not to ignore them +// based on area +void SortInstancesByIgnore( + const std::array& area_range, + const std::vector& ground_truth_instances, + std::vector* ground_truth_sorted_indices, + std::vector* ignores) { + ignores->clear(); + ignores->reserve(ground_truth_instances.size()); + for (auto o : ground_truth_instances) { + ignores->push_back( + o.ignore || o.area < area_range[0] || o.area > area_range[1]); + } + + ground_truth_sorted_indices->resize(ground_truth_instances.size()); + std::iota( + ground_truth_sorted_indices->begin(), + ground_truth_sorted_indices->end(), + 0); + std::stable_sort( + ground_truth_sorted_indices->begin(), + ground_truth_sorted_indices->end(), + [&ignores](size_t j1, size_t j2) { + return (int)(*ignores)[j1] < (int)(*ignores)[j2]; + }); +} + +// For each IOU threshold, greedily match each detected instance to a ground +// truth instance (if possible) and store the results +void MatchDetectionsToGroundTruth( + const std::vector& detection_instances, + const std::vector& detection_sorted_indices, + const std::vector& ground_truth_instances, + const std::vector& ground_truth_sorted_indices, + const std::vector& ignores, + const std::vector>& ious, + const std::vector& iou_thresholds, + const std::array& area_range, + ImageEvaluation* results) { + // Initialize memory to store return data matches and ignore + const int num_iou_thresholds = iou_thresholds.size(); + const int num_ground_truth = ground_truth_sorted_indices.size(); + const int num_detections = detection_sorted_indices.size(); + std::vector ground_truth_matches( + num_iou_thresholds * num_ground_truth, 0); + std::vector& detection_matches = results->detection_matches; + std::vector& detection_ignores = results->detection_ignores; + std::vector& ground_truth_ignores = results->ground_truth_ignores; + detection_matches.resize(num_iou_thresholds * num_detections, 0); + detection_ignores.resize(num_iou_thresholds * num_detections, false); + ground_truth_ignores.resize(num_ground_truth); + for (auto g = 0; g < num_ground_truth; ++g) { + ground_truth_ignores[g] = ignores[ground_truth_sorted_indices[g]]; + } + + for (auto t = 0; t < num_iou_thresholds; ++t) { + for (auto d = 0; d < num_detections; ++d) { + // information about best match so far (match=-1 -> unmatched) + double best_iou = std::min(iou_thresholds[t], 1 - 1e-10); + int match = -1; + for (auto g = 0; g < num_ground_truth; ++g) { + // if this ground truth instance is already matched and not a + // crowd, it cannot be matched to another detection + if (ground_truth_matches[t * num_ground_truth + g] > 0 && + !ground_truth_instances[ground_truth_sorted_indices[g]].is_crowd) { + continue; + } + + // if detected instance matched to a regular ground truth + // instance, we can break on the first ground truth instance + // tagged as ignore (because they are sorted by the ignore tag) + if (match >= 0 && !ground_truth_ignores[match] && + ground_truth_ignores[g]) { + break; + } + + // if IOU overlap is the best so far, store the match appropriately + if (ious[d][ground_truth_sorted_indices[g]] >= best_iou) { + best_iou = ious[d][ground_truth_sorted_indices[g]]; + match = g; + } + } + // if match was made, store id of match for both detection and + // ground truth + if (match >= 0) { + detection_ignores[t * num_detections + d] = ground_truth_ignores[match]; + detection_matches[t * num_detections + d] = + ground_truth_instances[ground_truth_sorted_indices[match]].id; + ground_truth_matches[t * num_ground_truth + match] = + detection_instances[detection_sorted_indices[d]].id; + } + + // set unmatched detections outside of area range to ignore + const InstanceAnnotation& detection = + detection_instances[detection_sorted_indices[d]]; + detection_ignores[t * num_detections + d] = + detection_ignores[t * num_detections + d] || + (detection_matches[t * num_detections + d] == 0 && + (detection.area < area_range[0] || detection.area > area_range[1])); + } + } + + // store detection score results + results->detection_scores.resize(detection_sorted_indices.size()); + for (size_t d = 0; d < detection_sorted_indices.size(); ++d) { + results->detection_scores[d] = + detection_instances[detection_sorted_indices[d]].score; + } +} + +std::vector EvaluateImages( + const std::vector>& area_ranges, + int max_detections, + const std::vector& iou_thresholds, + const ImageCategoryInstances>& image_category_ious, + const ImageCategoryInstances& + image_category_ground_truth_instances, + const ImageCategoryInstances& + image_category_detection_instances) { + const int num_area_ranges = area_ranges.size(); + const int num_images = image_category_ground_truth_instances.size(); + const int num_categories = + image_category_ious.size() > 0 ? image_category_ious[0].size() : 0; + std::vector detection_sorted_indices; + std::vector ground_truth_sorted_indices; + std::vector ignores; + std::vector results_all( + num_images * num_area_ranges * num_categories); + + // Store results for each image, category, and area range combination. Results + // for each IOU threshold are packed into the same ImageEvaluation object + for (auto i = 0; i < num_images; ++i) { + for (auto c = 0; c < num_categories; ++c) { + const std::vector& ground_truth_instances = + image_category_ground_truth_instances[i][c]; + const std::vector& detection_instances = + image_category_detection_instances[i][c]; + + SortInstancesByDetectionScore( + detection_instances, &detection_sorted_indices); + if ((int)detection_sorted_indices.size() > max_detections) { + detection_sorted_indices.resize(max_detections); + } + + for (size_t a = 0; a < area_ranges.size(); ++a) { + SortInstancesByIgnore( + area_ranges[a], + ground_truth_instances, + &ground_truth_sorted_indices, + &ignores); + + MatchDetectionsToGroundTruth( + detection_instances, + detection_sorted_indices, + ground_truth_instances, + ground_truth_sorted_indices, + ignores, + image_category_ious[i][c], + iou_thresholds, + area_ranges[a], + &results_all + [c * num_area_ranges * num_images + a * num_images + i]); + } + } + } + + return results_all; +} + +// Convert a python list to a vector +template +std::vector list_to_vec(const py::list& l) { + std::vector v(py::len(l)); + for (int i = 0; i < (int)py::len(l); ++i) { + v[i] = l[i].cast(); + } + return v; +} + +// Helper function to Accumulate() +// Considers the evaluation results applicable to a particular category, area +// range, and max_detections parameter setting, which begin at +// evaluations[evaluation_index]. Extracts a sorted list of length n of all +// applicable detection instances concatenated across all images in the dataset, +// which are represented by the outputs evaluation_indices, detection_scores, +// image_detection_indices, and detection_sorted_indices--all of which are +// length n. evaluation_indices[i] stores the applicable index into +// evaluations[] for instance i, which has detection score detection_score[i], +// and is the image_detection_indices[i]'th of the list of detections +// for the image containing i. detection_sorted_indices[] defines a sorted +// permutation of the 3 other outputs +int BuildSortedDetectionList( + const std::vector& evaluations, + const int64_t evaluation_index, + const int64_t num_images, + const int max_detections, + std::vector* evaluation_indices, + std::vector* detection_scores, + std::vector* detection_sorted_indices, + std::vector* image_detection_indices) { + assert(evaluations.size() >= evaluation_index + num_images); + + // Extract a list of object instances of the applicable category, area + // range, and max detections requirements such that they can be sorted + image_detection_indices->clear(); + evaluation_indices->clear(); + detection_scores->clear(); + image_detection_indices->reserve(num_images * max_detections); + evaluation_indices->reserve(num_images * max_detections); + detection_scores->reserve(num_images * max_detections); + int num_valid_ground_truth = 0; + for (auto i = 0; i < num_images; ++i) { + const ImageEvaluation& evaluation = evaluations[evaluation_index + i]; + + for (int d = 0; + d < (int)evaluation.detection_scores.size() && d < max_detections; + ++d) { // detected instances + evaluation_indices->push_back(evaluation_index + i); + image_detection_indices->push_back(d); + detection_scores->push_back(evaluation.detection_scores[d]); + } + for (auto ground_truth_ignore : evaluation.ground_truth_ignores) { + if (!ground_truth_ignore) { + ++num_valid_ground_truth; + } + } + } + + // Sort detections by decreasing score, using stable sort to match + // python implementation + detection_sorted_indices->resize(detection_scores->size()); + std::iota( + detection_sorted_indices->begin(), detection_sorted_indices->end(), 0); + std::stable_sort( + detection_sorted_indices->begin(), + detection_sorted_indices->end(), + [&detection_scores](size_t j1, size_t j2) { + return (*detection_scores)[j1] > (*detection_scores)[j2]; + }); + + return num_valid_ground_truth; +} + +// Helper function to Accumulate() +// Compute a precision recall curve given a sorted list of detected instances +// encoded in evaluations, evaluation_indices, detection_scores, +// detection_sorted_indices, image_detection_indices (see +// BuildSortedDetectionList()). Using vectors precisions and recalls +// and temporary storage, output the results into precisions_out, recalls_out, +// and scores_out, which are large buffers containing many precion/recall curves +// for all possible parameter settings, with precisions_out_index and +// recalls_out_index defining the applicable indices to store results. +void ComputePrecisionRecallCurve( + const int64_t precisions_out_index, + const int64_t precisions_out_stride, + const int64_t recalls_out_index, + const std::vector& recall_thresholds, + const int iou_threshold_index, + const int num_iou_thresholds, + const int num_valid_ground_truth, + const std::vector& evaluations, + const std::vector& evaluation_indices, + const std::vector& detection_scores, + const std::vector& detection_sorted_indices, + const std::vector& image_detection_indices, + std::vector* precisions, + std::vector* recalls, + std::vector* precisions_out, + std::vector* scores_out, + std::vector* recalls_out) { + assert(recalls_out->size() > recalls_out_index); + + // Compute precision/recall for each instance in the sorted list of detections + int64_t true_positives_sum = 0, false_positives_sum = 0; + precisions->clear(); + recalls->clear(); + precisions->reserve(detection_sorted_indices.size()); + recalls->reserve(detection_sorted_indices.size()); + assert(!evaluations.empty() || detection_sorted_indices.empty()); + for (auto detection_sorted_index : detection_sorted_indices) { + const ImageEvaluation& evaluation = + evaluations[evaluation_indices[detection_sorted_index]]; + const auto num_detections = + evaluation.detection_matches.size() / num_iou_thresholds; + const auto detection_index = iou_threshold_index * num_detections + + image_detection_indices[detection_sorted_index]; + assert(evaluation.detection_matches.size() > detection_index); + assert(evaluation.detection_ignores.size() > detection_index); + const int64_t detection_match = + evaluation.detection_matches[detection_index]; + const bool detection_ignores = + evaluation.detection_ignores[detection_index]; + const auto true_positive = detection_match > 0 && !detection_ignores; + const auto false_positive = detection_match == 0 && !detection_ignores; + if (true_positive) { + ++true_positives_sum; + } + if (false_positive) { + ++false_positives_sum; + } + + const double recall = + static_cast(true_positives_sum) / num_valid_ground_truth; + recalls->push_back(recall); + const int64_t num_valid_detections = + true_positives_sum + false_positives_sum; + const double precision = num_valid_detections > 0 + ? static_cast(true_positives_sum) / num_valid_detections + : 0.0; + precisions->push_back(precision); + } + + (*recalls_out)[recalls_out_index] = !recalls->empty() ? recalls->back() : 0; + + for (int64_t i = static_cast(precisions->size()) - 1; i > 0; --i) { + if ((*precisions)[i] > (*precisions)[i - 1]) { + (*precisions)[i - 1] = (*precisions)[i]; + } + } + + // Sample the per instance precision/recall list at each recall threshold + for (size_t r = 0; r < recall_thresholds.size(); ++r) { + // first index in recalls >= recall_thresholds[r] + std::vector::iterator low = std::lower_bound( + recalls->begin(), recalls->end(), recall_thresholds[r]); + size_t precisions_index = low - recalls->begin(); + + const auto results_ind = precisions_out_index + r * precisions_out_stride; + assert(results_ind < precisions_out->size()); + assert(results_ind < scores_out->size()); + if (precisions_index < precisions->size()) { + (*precisions_out)[results_ind] = (*precisions)[precisions_index]; + (*scores_out)[results_ind] = + detection_scores[detection_sorted_indices[precisions_index]]; + } else { + (*precisions_out)[results_ind] = 0; + (*scores_out)[results_ind] = 0; + } + } +} +py::dict Accumulate( + const py::object& params, + const std::vector& evaluations) { + const std::vector recall_thresholds = + list_to_vec(params.attr("recThrs")); + const std::vector max_detections = + list_to_vec(params.attr("maxDets")); + const int num_iou_thresholds = py::len(params.attr("iouThrs")); + const int num_recall_thresholds = py::len(params.attr("recThrs")); + const int num_categories = params.attr("useCats").cast() == 1 + ? py::len(params.attr("catIds")) + : 1; + const int num_area_ranges = py::len(params.attr("areaRng")); + const int num_max_detections = py::len(params.attr("maxDets")); + const int num_images = py::len(params.attr("imgIds")); + + std::vector precisions_out( + num_iou_thresholds * num_recall_thresholds * num_categories * + num_area_ranges * num_max_detections, + -1); + std::vector recalls_out( + num_iou_thresholds * num_categories * num_area_ranges * + num_max_detections, + -1); + std::vector scores_out( + num_iou_thresholds * num_recall_thresholds * num_categories * + num_area_ranges * num_max_detections, + -1); + + // Consider the list of all detected instances in the entire dataset in one + // large list. evaluation_indices, detection_scores, + // image_detection_indices, and detection_sorted_indices all have the same + // length as this list, such that each entry corresponds to one detected + // instance + std::vector evaluation_indices; // indices into evaluations[] + std::vector detection_scores; // detection scores of each instance + std::vector detection_sorted_indices; // sorted indices of all + // instances in the dataset + std::vector + image_detection_indices; // indices into the list of detected instances in + // the same image as each instance + std::vector precisions, recalls; + + for (auto c = 0; c < num_categories; ++c) { + for (auto a = 0; a < num_area_ranges; ++a) { + for (auto m = 0; m < num_max_detections; ++m) { + // The COCO PythonAPI assumes evaluations[] (the return value of + // COCOeval::EvaluateImages() is one long list storing results for each + // combination of category, area range, and image id, with categories in + // the outermost loop and images in the innermost loop. + const int64_t evaluations_index = + c * num_area_ranges * num_images + a * num_images; + int num_valid_ground_truth = BuildSortedDetectionList( + evaluations, + evaluations_index, + num_images, + max_detections[m], + &evaluation_indices, + &detection_scores, + &detection_sorted_indices, + &image_detection_indices); + + if (num_valid_ground_truth == 0) { + continue; + } + + for (auto t = 0; t < num_iou_thresholds; ++t) { + // recalls_out is a flattened vectors representing a + // num_iou_thresholds X num_categories X num_area_ranges X + // num_max_detections matrix + const int64_t recalls_out_index = + t * num_categories * num_area_ranges * num_max_detections + + c * num_area_ranges * num_max_detections + + a * num_max_detections + m; + + // precisions_out and scores_out are flattened vectors + // representing a num_iou_thresholds X num_recall_thresholds X + // num_categories X num_area_ranges X num_max_detections matrix + const int64_t precisions_out_stride = + num_categories * num_area_ranges * num_max_detections; + const int64_t precisions_out_index = t * num_recall_thresholds * + num_categories * num_area_ranges * num_max_detections + + c * num_area_ranges * num_max_detections + + a * num_max_detections + m; + + ComputePrecisionRecallCurve( + precisions_out_index, + precisions_out_stride, + recalls_out_index, + recall_thresholds, + t, + num_iou_thresholds, + num_valid_ground_truth, + evaluations, + evaluation_indices, + detection_scores, + detection_sorted_indices, + image_detection_indices, + &precisions, + &recalls, + &precisions_out, + &scores_out, + &recalls_out); + } + } + } + } + + time_t rawtime; + struct tm local_time; + std::array buffer; + time(&rawtime); +#ifdef _WIN32 + localtime_s(&local_time, &rawtime); +#else + localtime_r(&rawtime, &local_time); +#endif + strftime( + buffer.data(), 200, "%Y-%m-%d %H:%num_max_detections:%S", &local_time); + return py::dict( + "params"_a = params, + "counts"_a = std::vector( + {num_iou_thresholds, + num_recall_thresholds, + num_categories, + num_area_ranges, + num_max_detections}), + "date"_a = buffer, + "precision"_a = precisions_out, + "recall"_a = recalls_out, + "scores"_a = scores_out); +} + +} // namespace COCOeval + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.h b/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.h new file mode 100755 index 0000000..db246e4 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/cocoeval/cocoeval.h @@ -0,0 +1,88 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once + +#include +#include +#include +#include +#include + +namespace py = pybind11; + +namespace detectron2 { + +namespace COCOeval { + +// Annotation data for a single object instance in an image +struct InstanceAnnotation { + InstanceAnnotation( + uint64_t id, + double score, + double area, + bool is_crowd, + bool ignore) + : id{id}, score{score}, area{area}, is_crowd{is_crowd}, ignore{ignore} {} + uint64_t id; + double score = 0.; + double area = 0.; + bool is_crowd = false; + bool ignore = false; +}; + +// Stores intermediate results for evaluating detection results for a single +// image that has D detected instances and G ground truth instances. This stores +// matches between detected and ground truth instances +struct ImageEvaluation { + // For each of the D detected instances, the id of the matched ground truth + // instance, or 0 if unmatched + std::vector detection_matches; + + // The detection score of each of the D detected instances + std::vector detection_scores; + + // Marks whether or not each of G instances was ignored from evaluation (e.g., + // because it's outside area_range) + std::vector ground_truth_ignores; + + // Marks whether or not each of D instances was ignored from evaluation (e.g., + // because it's outside aRng) + std::vector detection_ignores; +}; + +template +using ImageCategoryInstances = std::vector>>; + +// C++ implementation of COCO API cocoeval.py::COCOeval.evaluateImg(). For each +// combination of image, category, area range settings, and IOU thresholds to +// evaluate, it matches detected instances to ground truth instances and stores +// the results into a vector of ImageEvaluation results, which will be +// interpreted by the COCOeval::Accumulate() function to produce precion-recall +// curves. The parameters of nested vectors have the following semantics: +// image_category_ious[i][c][d][g] is the intersection over union of the d'th +// detected instance and g'th ground truth instance of +// category category_ids[c] in image image_ids[i] +// image_category_ground_truth_instances[i][c] is a vector of ground truth +// instances in image image_ids[i] of category category_ids[c] +// image_category_detection_instances[i][c] is a vector of detected +// instances in image image_ids[i] of category category_ids[c] +std::vector EvaluateImages( + const std::vector>& area_ranges, // vector of 2-tuples + int max_detections, + const std::vector& iou_thresholds, + const ImageCategoryInstances>& image_category_ious, + const ImageCategoryInstances& + image_category_ground_truth_instances, + const ImageCategoryInstances& + image_category_detection_instances); + +// C++ implementation of COCOeval.accumulate(), which generates precision +// recall curves for each set of category, IOU threshold, detection area range, +// and max number of detections parameters. It is assumed that the parameter +// evaluations is the return value of the functon COCOeval::EvaluateImages(), +// which was called with the same parameter settings params +py::dict Accumulate( + const py::object& params, + const std::vector& evalutations); + +} // namespace COCOeval +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/cuda_version.cu b/detectron2/detectron2/layers/csrc/cuda_version.cu new file mode 100755 index 0000000..6dfe1b9 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/cuda_version.cu @@ -0,0 +1,26 @@ +// Copyright (c) Facebook, Inc. and its affiliates. + +#include + +namespace detectron2 { +int get_cudart_version() { +// Not a ROCM platform: Either HIP is not used, or +// it is used, but platform is not ROCM (i.e. it is CUDA) +#if !defined(__HIP_PLATFORM_HCC__) + return CUDART_VERSION; +#else + int version = 0; + +#if HIP_VERSION_MAJOR != 0 + // Create a convention similar to that of CUDA, as assumed by other + // parts of the code. + + version = HIP_VERSION_MINOR; + version += (HIP_VERSION_MAJOR * 100); +#else + hipRuntimeGetVersion(&version); +#endif + return version; +#endif +} +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/deformable/deform_conv.h b/detectron2/detectron2/layers/csrc/deformable/deform_conv.h new file mode 100755 index 0000000..965c1bf --- /dev/null +++ b/detectron2/detectron2/layers/csrc/deformable/deform_conv.h @@ -0,0 +1,377 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once +#include + +namespace detectron2 { + +#if defined(WITH_CUDA) || defined(WITH_HIP) +int deform_conv_forward_cuda( + at::Tensor input, + at::Tensor weight, + at::Tensor offset, + at::Tensor output, + at::Tensor columns, + at::Tensor ones, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + int im2col_step); + +int deform_conv_backward_input_cuda( + at::Tensor input, + at::Tensor offset, + at::Tensor gradOutput, + at::Tensor gradInput, + at::Tensor gradOffset, + at::Tensor weight, + at::Tensor columns, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + int im2col_step); + +int deform_conv_backward_parameters_cuda( + at::Tensor input, + at::Tensor offset, + at::Tensor gradOutput, + at::Tensor gradWeight, // at::Tensor gradBias, + at::Tensor columns, + at::Tensor ones, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + float scale, + int im2col_step); + +void modulated_deform_conv_cuda_forward( + at::Tensor input, + at::Tensor weight, + at::Tensor bias, + at::Tensor ones, + at::Tensor offset, + at::Tensor mask, + at::Tensor output, + at::Tensor columns, + int kernel_h, + int kernel_w, + const int stride_h, + const int stride_w, + const int pad_h, + const int pad_w, + const int dilation_h, + const int dilation_w, + const int group, + const int deformable_group, + const bool with_bias); + +void modulated_deform_conv_cuda_backward( + at::Tensor input, + at::Tensor weight, + at::Tensor bias, + at::Tensor ones, + at::Tensor offset, + at::Tensor mask, + at::Tensor columns, + at::Tensor grad_input, + at::Tensor grad_weight, + at::Tensor grad_bias, + at::Tensor grad_offset, + at::Tensor grad_mask, + at::Tensor grad_output, + int kernel_h, + int kernel_w, + int stride_h, + int stride_w, + int pad_h, + int pad_w, + int dilation_h, + int dilation_w, + int group, + int deformable_group, + const bool with_bias); + +#endif + +inline int deform_conv_forward( + at::Tensor input, + at::Tensor weight, + at::Tensor offset, + at::Tensor output, + at::Tensor columns, + at::Tensor ones, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + int im2col_step) { + if (input.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + TORCH_CHECK(weight.is_cuda(), "weight tensor is not on GPU!"); + TORCH_CHECK(offset.is_cuda(), "offset tensor is not on GPU!"); + return deform_conv_forward_cuda( + input, + weight, + offset, + output, + columns, + ones, + kW, + kH, + dW, + dH, + padW, + padH, + dilationW, + dilationH, + group, + deformable_group, + im2col_step); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + AT_ERROR("This operator is not implemented on CPU"); +} + +inline int deform_conv_backward_input( + at::Tensor input, + at::Tensor offset, + at::Tensor gradOutput, + at::Tensor gradInput, + at::Tensor gradOffset, + at::Tensor weight, + at::Tensor columns, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + int im2col_step) { + if (gradOutput.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + TORCH_CHECK(input.is_cuda(), "input tensor is not on GPU!"); + TORCH_CHECK(weight.is_cuda(), "weight tensor is not on GPU!"); + TORCH_CHECK(offset.is_cuda(), "offset tensor is not on GPU!"); + return deform_conv_backward_input_cuda( + input, + offset, + gradOutput, + gradInput, + gradOffset, + weight, + columns, + kW, + kH, + dW, + dH, + padW, + padH, + dilationW, + dilationH, + group, + deformable_group, + im2col_step); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + AT_ERROR("This operator is not implemented on CPU"); +} + +inline int deform_conv_backward_filter( + at::Tensor input, + at::Tensor offset, + at::Tensor gradOutput, + at::Tensor gradWeight, // at::Tensor gradBias, + at::Tensor columns, + at::Tensor ones, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + float scale, + int im2col_step) { + if (gradOutput.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + TORCH_CHECK(input.is_cuda(), "input tensor is not on GPU!"); + TORCH_CHECK(offset.is_cuda(), "offset tensor is not on GPU!"); + return deform_conv_backward_parameters_cuda( + input, + offset, + gradOutput, + gradWeight, + columns, + ones, + kW, + kH, + dW, + dH, + padW, + padH, + dilationW, + dilationH, + group, + deformable_group, + scale, + im2col_step); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + AT_ERROR("This operator is not implemented on CPU"); +} + +inline void modulated_deform_conv_forward( + at::Tensor input, + at::Tensor weight, + at::Tensor bias, + at::Tensor ones, + at::Tensor offset, + at::Tensor mask, + at::Tensor output, + at::Tensor columns, + int kernel_h, + int kernel_w, + const int stride_h, + const int stride_w, + const int pad_h, + const int pad_w, + const int dilation_h, + const int dilation_w, + const int group, + const int deformable_group, + const bool with_bias) { + if (input.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + TORCH_CHECK(weight.is_cuda(), "weight tensor is not on GPU!"); + TORCH_CHECK(bias.is_cuda(), "bias tensor is not on GPU!"); + TORCH_CHECK(offset.is_cuda(), "offset tensor is not on GPU!"); + return modulated_deform_conv_cuda_forward( + input, + weight, + bias, + ones, + offset, + mask, + output, + columns, + kernel_h, + kernel_w, + stride_h, + stride_w, + pad_h, + pad_w, + dilation_h, + dilation_w, + group, + deformable_group, + with_bias); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + AT_ERROR("This operator is not implemented on CPU"); +} + +inline void modulated_deform_conv_backward( + at::Tensor input, + at::Tensor weight, + at::Tensor bias, + at::Tensor ones, + at::Tensor offset, + at::Tensor mask, + at::Tensor columns, + at::Tensor grad_input, + at::Tensor grad_weight, + at::Tensor grad_bias, + at::Tensor grad_offset, + at::Tensor grad_mask, + at::Tensor grad_output, + int kernel_h, + int kernel_w, + int stride_h, + int stride_w, + int pad_h, + int pad_w, + int dilation_h, + int dilation_w, + int group, + int deformable_group, + const bool with_bias) { + if (grad_output.is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + TORCH_CHECK(input.is_cuda(), "input tensor is not on GPU!"); + TORCH_CHECK(weight.is_cuda(), "weight tensor is not on GPU!"); + TORCH_CHECK(bias.is_cuda(), "bias tensor is not on GPU!"); + TORCH_CHECK(offset.is_cuda(), "offset tensor is not on GPU!"); + return modulated_deform_conv_cuda_backward( + input, + weight, + bias, + ones, + offset, + mask, + columns, + grad_input, + grad_weight, + grad_bias, + grad_offset, + grad_mask, + grad_output, + kernel_h, + kernel_w, + stride_h, + stride_w, + pad_h, + pad_w, + dilation_h, + dilation_w, + group, + deformable_group, + with_bias); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + AT_ERROR("This operator is not implemented on CPU"); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu b/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu new file mode 100755 index 0000000..2072bb8 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda.cu @@ -0,0 +1,1223 @@ +// Copyright (c) Facebook, Inc. and its affiliates. + +// modified from +// https://github.com/open-mmlab/mmdetection/blob/master/mmdet/ops/dcn/src/deform_conv_cuda.cpp +// Original license: Apache 2.0 + +// modify from +// https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch/blob/mmdetection/mmdet/ops/dcn/src/deform_conv_cuda.c +// Original license: Apache 2.0 + +#include + +#include "deform_conv.h" + +#include +#include + +namespace detectron2 { + +void deformable_im2col( + const at::Tensor data_im, + const at::Tensor data_offset, + const int channels, + const int height, + const int width, + const int ksize_h, + const int ksize_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int parallel_imgs, + const int deformable_group, + at::Tensor data_col); + +void deformable_col2im( + const at::Tensor data_col, + const at::Tensor data_offset, + const int channels, + const int height, + const int width, + const int ksize_h, + const int ksize_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int parallel_imgs, + const int deformable_group, + at::Tensor grad_im); + +void deformable_col2im_coord( + const at::Tensor data_col, + const at::Tensor data_im, + const at::Tensor data_offset, + const int channels, + const int height, + const int width, + const int ksize_h, + const int ksize_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int parallel_imgs, + const int deformable_group, + at::Tensor grad_offset); + +void modulated_deformable_im2col_cuda( + const at::Tensor data_im, + const at::Tensor data_offset, + const at::Tensor data_mask, + const int batch_size, + const int channels, + const int height_im, + const int width_im, + const int height_col, + const int width_col, + const int kernel_h, + const int kenerl_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int deformable_group, + at::Tensor data_col); + +void modulated_deformable_col2im_cuda( + const at::Tensor data_col, + const at::Tensor data_offset, + const at::Tensor data_mask, + const int batch_size, + const int channels, + const int height_im, + const int width_im, + const int height_col, + const int width_col, + const int kernel_h, + const int kenerl_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int deformable_group, + at::Tensor grad_im); + +void modulated_deformable_col2im_coord_cuda( + const at::Tensor data_col, + const at::Tensor data_im, + const at::Tensor data_offset, + const at::Tensor data_mask, + const int batch_size, + const int channels, + const int height_im, + const int width_im, + const int height_col, + const int width_col, + const int kernel_h, + const int kenerl_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int deformable_group, + at::Tensor grad_offset, + at::Tensor grad_mask); + +void shape_check( + at::Tensor input, + at::Tensor offset, + at::Tensor* gradOutput, + at::Tensor weight, + int kH, + int kW, + int dH, + int dW, + int padH, + int padW, + int dilationH, + int dilationW, + int group, + int deformable_group) { + TORCH_CHECK( + weight.ndimension() == 4, + "4D weight tensor (nOutputPlane,nInputPlane,kH,kW) expected, " + "but got: %s", + weight.ndimension()); + + TORCH_CHECK(weight.is_contiguous(), "weight tensor has to be contiguous"); + + TORCH_CHECK( + kW > 0 && kH > 0, + "kernel size should be greater than zero, but got kH: %d kW: %d", + kH, + kW); + + TORCH_CHECK( + (weight.size(2) == kH && weight.size(3) == kW), + "kernel size should be consistent with weight, ", + "but got kH: %d kW: %d weight.size(2): %d, weight.size(3): %d", + kH, + kW, + weight.size(2), + weight.size(3)); + + TORCH_CHECK( + dW > 0 && dH > 0, + "stride should be greater than zero, but got dH: %d dW: %d", + dH, + dW); + + TORCH_CHECK( + dilationW > 0 && dilationH > 0, + "dilation should be greater than 0, but got dilationH: %d dilationW: %d", + dilationH, + dilationW); + + int ndim = input.ndimension(); + int dimf = 0; + int dimh = 1; + int dimw = 2; + + if (ndim == 4) { + dimf++; + dimh++; + dimw++; + } + + TORCH_CHECK( + ndim == 3 || ndim == 4, + "3D or 4D input tensor expected but got: %s", + ndim); + + long nInputPlane = weight.size(1) * group; + long inputHeight = input.size(dimh); + long inputWidth = input.size(dimw); + long nOutputPlane = weight.size(0); + long outputHeight = + (inputHeight + 2 * padH - (dilationH * (kH - 1) + 1)) / dH + 1; + long outputWidth = + (inputWidth + 2 * padW - (dilationW * (kW - 1) + 1)) / dW + 1; + + TORCH_CHECK( + nInputPlane % deformable_group == 0, + "input channels must divide deformable group size"); + + if (outputWidth < 1 || outputHeight < 1) + AT_ERROR( + "Given input size: (%ld x %ld x %ld). " + "Calculated output size: (%ld x %ld x %ld). Output size is too small", + nInputPlane, + inputHeight, + inputWidth, + nOutputPlane, + outputHeight, + outputWidth); + + TORCH_CHECK( + input.size(1) == nInputPlane, + "invalid number of input planes, expected: %d, but got: %d", + nInputPlane, + input.size(1)); + + TORCH_CHECK( + (inputHeight + 2 * padH >= kH && inputWidth + 2 * padW >= kW), + "input image is smaller than kernel"); + + TORCH_CHECK( + (offset.size(2) == outputHeight && offset.size(3) == outputWidth), + "invalid spatial size of offset, expected height: %d width: %d, but " + "got height: %d width: %d", + outputHeight, + outputWidth, + offset.size(2), + offset.size(3)); + + TORCH_CHECK( + (offset.size(1) == deformable_group * 2 * kH * kW), + "invalid number of channels of offset"); + + if (gradOutput != NULL) { + TORCH_CHECK( + gradOutput->size(dimf) == nOutputPlane, + "invalid number of gradOutput planes, expected: %d, but got: %d", + nOutputPlane, + gradOutput->size(dimf)); + + TORCH_CHECK( + (gradOutput->size(dimh) == outputHeight && + gradOutput->size(dimw) == outputWidth), + "invalid size of gradOutput, expected height: %d width: %d , but " + "got height: %d width: %d", + outputHeight, + outputWidth, + gradOutput->size(dimh), + gradOutput->size(dimw)); + } +} + +int deform_conv_forward_cuda( + at::Tensor input, + at::Tensor weight, + at::Tensor offset, + at::Tensor output, + at::Tensor columns, + at::Tensor ones, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + int im2col_step) { + // todo: resize columns to include im2col: done + // todo: add im2col_step as input + // todo: add new output buffer and transpose it to output (or directly + // transpose output) todo: possibly change data indexing because of + // parallel_imgs + + shape_check( + input, + offset, + NULL, + weight, + kH, + kW, + dH, + dW, + padH, + padW, + dilationH, + dilationW, + group, + deformable_group); + + input = input.contiguous(); + offset = offset.contiguous(); + weight = weight.contiguous(); + + int batch = 1; + if (input.ndimension() == 3) { + // Force batch + batch = 0; + input.unsqueeze_(0); + offset.unsqueeze_(0); + } + + // todo: assert batchsize dividable by im2col_step + + long batchSize = input.size(0); + long nInputPlane = input.size(1); + long inputHeight = input.size(2); + long inputWidth = input.size(3); + + long nOutputPlane = weight.size(0); + + long outputWidth = + (inputWidth + 2 * padW - (dilationW * (kW - 1) + 1)) / dW + 1; + long outputHeight = + (inputHeight + 2 * padH - (dilationH * (kH - 1) + 1)) / dH + 1; + + TORCH_CHECK((offset.size(0) == batchSize), "invalid batch size of offset"); + + output = output.view( + {batchSize / im2col_step, + im2col_step, + nOutputPlane, + outputHeight, + outputWidth}); + columns = at::zeros( + {nInputPlane * kW * kH, im2col_step * outputHeight * outputWidth}, + input.options()); + + if (ones.ndimension() != 2 || + ones.size(0) * ones.size(1) < outputHeight * outputWidth) { + ones = at::ones({outputHeight, outputWidth}, input.options()); + } + + input = input.view( + {batchSize / im2col_step, + im2col_step, + nInputPlane, + inputHeight, + inputWidth}); + offset = offset.view( + {batchSize / im2col_step, + im2col_step, + deformable_group * 2 * kH * kW, + outputHeight, + outputWidth}); + + at::Tensor output_buffer = at::zeros( + {batchSize / im2col_step, + nOutputPlane, + im2col_step * outputHeight, + outputWidth}, + output.options()); + + output_buffer = output_buffer.view( + {output_buffer.size(0), + group, + output_buffer.size(1) / group, + output_buffer.size(2), + output_buffer.size(3)}); + + for (int elt = 0; elt < batchSize / im2col_step; elt++) { + deformable_im2col( + input[elt], + offset[elt], + nInputPlane, + inputHeight, + inputWidth, + kH, + kW, + padH, + padW, + dH, + dW, + dilationH, + dilationW, + im2col_step, + deformable_group, + columns); + + columns = columns.view({group, columns.size(0) / group, columns.size(1)}); + weight = weight.view( + {group, + weight.size(0) / group, + weight.size(1), + weight.size(2), + weight.size(3)}); + + for (int g = 0; g < group; g++) { + output_buffer[elt][g] = output_buffer[elt][g] + .flatten(1) + .addmm_(weight[g].flatten(1), columns[g]) + .view_as(output_buffer[elt][g]); + } + } + + output_buffer = output_buffer.view( + {output_buffer.size(0), + output_buffer.size(1) * output_buffer.size(2), + output_buffer.size(3), + output_buffer.size(4)}); + + output_buffer = output_buffer.view( + {batchSize / im2col_step, + nOutputPlane, + im2col_step, + outputHeight, + outputWidth}); + output_buffer.transpose_(1, 2); + output.copy_(output_buffer); + output = output.view({batchSize, nOutputPlane, outputHeight, outputWidth}); + + input = input.view({batchSize, nInputPlane, inputHeight, inputWidth}); + offset = offset.view( + {batchSize, deformable_group * 2 * kH * kW, outputHeight, outputWidth}); + + if (batch == 0) { + output = output.view({nOutputPlane, outputHeight, outputWidth}); + input = input.view({nInputPlane, inputHeight, inputWidth}); + offset = offset.view({offset.size(1), offset.size(2), offset.size(3)}); + } + + return 1; +} + +int deform_conv_backward_input_cuda( + at::Tensor input, + at::Tensor offset, + at::Tensor gradOutput, + at::Tensor gradInput, + at::Tensor gradOffset, + at::Tensor weight, + at::Tensor columns, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + int im2col_step) { + shape_check( + input, + offset, + &gradOutput, + weight, + kH, + kW, + dH, + dW, + padH, + padW, + dilationH, + dilationW, + group, + deformable_group); + + input = input.contiguous(); + offset = offset.contiguous(); + gradOutput = gradOutput.contiguous(); + weight = weight.contiguous(); + + int batch = 1; + + if (input.ndimension() == 3) { + // Force batch + batch = 0; + input = input.view({1, input.size(0), input.size(1), input.size(2)}); + offset = offset.view({1, offset.size(0), offset.size(1), offset.size(2)}); + gradOutput = gradOutput.view( + {1, gradOutput.size(0), gradOutput.size(1), gradOutput.size(2)}); + } + + long batchSize = input.size(0); + long nInputPlane = input.size(1); + long inputHeight = input.size(2); + long inputWidth = input.size(3); + + long nOutputPlane = weight.size(0); + + long outputWidth = + (inputWidth + 2 * padW - (dilationW * (kW - 1) + 1)) / dW + 1; + long outputHeight = + (inputHeight + 2 * padH - (dilationH * (kH - 1) + 1)) / dH + 1; + + TORCH_CHECK((offset.size(0) == batchSize), 3, "invalid batch size of offset"); + gradInput = gradInput.view({batchSize, nInputPlane, inputHeight, inputWidth}); + columns = at::zeros( + {nInputPlane * kW * kH, im2col_step * outputHeight * outputWidth}, + input.options()); + + // change order of grad output + gradOutput = gradOutput.view( + {batchSize / im2col_step, + im2col_step, + nOutputPlane, + outputHeight, + outputWidth}); + gradOutput.transpose_(1, 2); + + gradInput = gradInput.view( + {batchSize / im2col_step, + im2col_step, + nInputPlane, + inputHeight, + inputWidth}); + input = input.view( + {batchSize / im2col_step, + im2col_step, + nInputPlane, + inputHeight, + inputWidth}); + gradOffset = gradOffset.view( + {batchSize / im2col_step, + im2col_step, + deformable_group * 2 * kH * kW, + outputHeight, + outputWidth}); + offset = offset.view( + {batchSize / im2col_step, + im2col_step, + deformable_group * 2 * kH * kW, + outputHeight, + outputWidth}); + + for (int elt = 0; elt < batchSize / im2col_step; elt++) { + // divide into groups + columns = columns.view({group, columns.size(0) / group, columns.size(1)}); + weight = weight.view( + {group, + weight.size(0) / group, + weight.size(1), + weight.size(2), + weight.size(3)}); + gradOutput = gradOutput.view( + {gradOutput.size(0), + group, + gradOutput.size(1) / group, + gradOutput.size(2), + gradOutput.size(3), + gradOutput.size(4)}); + + for (int g = 0; g < group; g++) { + columns[g] = columns[g].addmm_( + weight[g].flatten(1).transpose(0, 1), + gradOutput[elt][g].flatten(1), + 0.0f, + 1.0f); + } + + columns = + columns.view({columns.size(0) * columns.size(1), columns.size(2)}); + gradOutput = gradOutput.view( + {gradOutput.size(0), + gradOutput.size(1) * gradOutput.size(2), + gradOutput.size(3), + gradOutput.size(4), + gradOutput.size(5)}); + + deformable_col2im_coord( + columns, + input[elt], + offset[elt], + nInputPlane, + inputHeight, + inputWidth, + kH, + kW, + padH, + padW, + dH, + dW, + dilationH, + dilationW, + im2col_step, + deformable_group, + gradOffset[elt]); + + deformable_col2im( + columns, + offset[elt], + nInputPlane, + inputHeight, + inputWidth, + kH, + kW, + padH, + padW, + dH, + dW, + dilationH, + dilationW, + im2col_step, + deformable_group, + gradInput[elt]); + } + + gradOutput.transpose_(1, 2); + gradOutput = + gradOutput.view({batchSize, nOutputPlane, outputHeight, outputWidth}); + + gradInput = gradInput.view({batchSize, nInputPlane, inputHeight, inputWidth}); + input = input.view({batchSize, nInputPlane, inputHeight, inputWidth}); + gradOffset = gradOffset.view( + {batchSize, deformable_group * 2 * kH * kW, outputHeight, outputWidth}); + offset = offset.view( + {batchSize, deformable_group * 2 * kH * kW, outputHeight, outputWidth}); + + if (batch == 0) { + gradOutput = gradOutput.view({nOutputPlane, outputHeight, outputWidth}); + input = input.view({nInputPlane, inputHeight, inputWidth}); + gradInput = gradInput.view({nInputPlane, inputHeight, inputWidth}); + offset = offset.view({offset.size(1), offset.size(2), offset.size(3)}); + gradOffset = + gradOffset.view({offset.size(1), offset.size(2), offset.size(3)}); + } + + return 1; +} + +int deform_conv_backward_parameters_cuda( + at::Tensor input, + at::Tensor offset, + at::Tensor gradOutput, + at::Tensor gradWeight, // at::Tensor gradBias, + at::Tensor columns, + at::Tensor ones, + int kW, + int kH, + int dW, + int dH, + int padW, + int padH, + int dilationW, + int dilationH, + int group, + int deformable_group, + float scale, + int im2col_step) { + // todo: transpose and reshape outGrad + // todo: reshape columns + // todo: add im2col_step as input + + shape_check( + input, + offset, + &gradOutput, + gradWeight, + kH, + kW, + dH, + dW, + padH, + padW, + dilationH, + dilationW, + group, + deformable_group); + + input = input.contiguous(); + offset = offset.contiguous(); + gradOutput = gradOutput.contiguous(); + + int batch = 1; + + if (input.ndimension() == 3) { + // Force batch + batch = 0; + input = input.view( + at::IntList({1, input.size(0), input.size(1), input.size(2)})); + gradOutput = gradOutput.view( + {1, gradOutput.size(0), gradOutput.size(1), gradOutput.size(2)}); + } + + long batchSize = input.size(0); + long nInputPlane = input.size(1); + long inputHeight = input.size(2); + long inputWidth = input.size(3); + + long nOutputPlane = gradWeight.size(0); + + long outputWidth = + (inputWidth + 2 * padW - (dilationW * (kW - 1) + 1)) / dW + 1; + long outputHeight = + (inputHeight + 2 * padH - (dilationH * (kH - 1) + 1)) / dH + 1; + + TORCH_CHECK((offset.size(0) == batchSize), "invalid batch size of offset"); + + columns = at::zeros( + {nInputPlane * kW * kH, im2col_step * outputHeight * outputWidth}, + input.options()); + + gradOutput = gradOutput.view( + {batchSize / im2col_step, + im2col_step, + nOutputPlane, + outputHeight, + outputWidth}); + gradOutput.transpose_(1, 2); + + at::Tensor gradOutputBuffer = at::zeros_like(gradOutput); + gradOutputBuffer = gradOutputBuffer.view( + {batchSize / im2col_step, + nOutputPlane, + im2col_step, + outputHeight, + outputWidth}); + gradOutputBuffer.copy_(gradOutput); + // gradOutput is not contiguous, so we do reshape (instead of view) next + gradOutputBuffer = gradOutputBuffer.reshape( + {batchSize / im2col_step, + nOutputPlane, + im2col_step * outputHeight, + outputWidth}); + + gradOutput.transpose_(1, 2); + gradOutput = + gradOutput.view({batchSize, nOutputPlane, outputHeight, outputWidth}); + + input = input.view( + {batchSize / im2col_step, + im2col_step, + nInputPlane, + inputHeight, + inputWidth}); + offset = offset.view( + {batchSize / im2col_step, + im2col_step, + deformable_group * 2 * kH * kW, + outputHeight, + outputWidth}); + + for (int elt = 0; elt < batchSize / im2col_step; elt++) { + deformable_im2col( + input[elt], + offset[elt], + nInputPlane, + inputHeight, + inputWidth, + kH, + kW, + padH, + padW, + dH, + dW, + dilationH, + dilationW, + im2col_step, + deformable_group, + columns); + + // divide into group + gradOutputBuffer = gradOutputBuffer.view( + {gradOutputBuffer.size(0), + group, + gradOutputBuffer.size(1) / group, + gradOutputBuffer.size(2), + gradOutputBuffer.size(3)}); + columns = columns.view({group, columns.size(0) / group, columns.size(1)}); + gradWeight = gradWeight.view( + {group, + gradWeight.size(0) / group, + gradWeight.size(1), + gradWeight.size(2), + gradWeight.size(3)}); + + for (int g = 0; g < group; g++) { + gradWeight[g] = gradWeight[g] + .flatten(1) + .addmm_( + gradOutputBuffer[elt][g].flatten(1), + columns[g].transpose(1, 0), + 1.0, + scale) + .view_as(gradWeight[g]); + } + gradOutputBuffer = gradOutputBuffer.view( + {gradOutputBuffer.size(0), + gradOutputBuffer.size(1) * gradOutputBuffer.size(2), + gradOutputBuffer.size(3), + gradOutputBuffer.size(4)}); + columns = + columns.view({columns.size(0) * columns.size(1), columns.size(2)}); + gradWeight = gradWeight.view( + {gradWeight.size(0) * gradWeight.size(1), + gradWeight.size(2), + gradWeight.size(3), + gradWeight.size(4)}); + } + + input = input.view({batchSize, nInputPlane, inputHeight, inputWidth}); + offset = offset.view( + {batchSize, deformable_group * 2 * kH * kW, outputHeight, outputWidth}); + + if (batch == 0) { + gradOutput = gradOutput.view({nOutputPlane, outputHeight, outputWidth}); + input = input.view({nInputPlane, inputHeight, inputWidth}); + } + + return 1; +} + +void modulated_deform_conv_cuda_forward( + at::Tensor input, + at::Tensor weight, + at::Tensor bias, + at::Tensor ones, + at::Tensor offset, + at::Tensor mask, + at::Tensor output, + at::Tensor columns, + int kernel_h, + int kernel_w, + const int stride_h, + const int stride_w, + const int pad_h, + const int pad_w, + const int dilation_h, + const int dilation_w, + const int group, + const int deformable_group, + const bool with_bias) { + shape_check( + input, + offset, + NULL, + weight, + kernel_h, + kernel_w, + stride_h, + stride_w, + pad_h, + pad_w, + dilation_h, + dilation_w, + group, + deformable_group); + + TORCH_CHECK(input.is_contiguous(), "input tensor has to be contiguous"); + TORCH_CHECK(weight.is_contiguous(), "weight tensor has to be contiguous"); + + const int batch = input.size(0); + const int channels = input.size(1); + const int height = input.size(2); + const int width = input.size(3); + + const int channels_out = weight.size(0); + const int channels_kernel = weight.size(1); + const int kernel_h_ = weight.size(2); + const int kernel_w_ = weight.size(3); + + if (kernel_h_ != kernel_h || kernel_w_ != kernel_w) + AT_ERROR( + "Input shape and kernel shape wont match: (%d x %d vs %d x %d).", + kernel_h_, + kernel_w, + kernel_h_, + kernel_w_); + if (channels != channels_kernel * group) + AT_ERROR( + "Input shape and kernel channels wont match: (%d vs %d).", + channels, + channels_kernel * group); + + const int height_out = + (height + 2 * pad_h - (dilation_h * (kernel_h - 1) + 1)) / stride_h + 1; + const int width_out = + (width + 2 * pad_w - (dilation_w * (kernel_w - 1) + 1)) / stride_w + 1; + + // mask shape check + TORCH_CHECK( + (mask.size(2) == height_out && mask.size(3) == width_out), + "invalid spatial size of mask, expected height: %d width: %d, but " + "got height: %d width: %d", + height_out, + width_out, + mask.size(2), + mask.size(3)); + + TORCH_CHECK( + (mask.size(1) == deformable_group * kernel_h * kernel_w), + "invalid number of channels of mask"); + + if (ones.ndimension() != 2 || + ones.size(0) * ones.size(1) < height_out * width_out) { + // Resize plane and fill with ones... + ones = at::ones({height_out, width_out}, input.options()); + } + + // resize output + output = output.view({batch, channels_out, height_out, width_out}).zero_(); + // resize temporary columns + columns = at::zeros( + {channels * kernel_h * kernel_w, 1 * height_out * width_out}, + input.options()); + + output = output.view( + {output.size(0), + group, + output.size(1) / group, + output.size(2), + output.size(3)}); + + for (int b = 0; b < batch; b++) { + modulated_deformable_im2col_cuda( + input[b], + offset[b], + mask[b], + 1, + channels, + height, + width, + height_out, + width_out, + kernel_h, + kernel_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + deformable_group, + columns); + + // divide into group + weight = weight.view( + {group, + weight.size(0) / group, + weight.size(1), + weight.size(2), + weight.size(3)}); + columns = columns.view({group, columns.size(0) / group, columns.size(1)}); + + for (int g = 0; g < group; g++) { + output[b][g] = output[b][g] + .flatten(1) + .addmm_(weight[g].flatten(1), columns[g]) + .view_as(output[b][g]); + } + + weight = weight.view( + {weight.size(0) * weight.size(1), + weight.size(2), + weight.size(3), + weight.size(4)}); + columns = + columns.view({columns.size(0) * columns.size(1), columns.size(2)}); + } + + output = output.view( + {output.size(0), + output.size(1) * output.size(2), + output.size(3), + output.size(4)}); + + if (with_bias) { + output += bias.view({1, bias.size(0), 1, 1}); + } +} + +void modulated_deform_conv_cuda_backward( + at::Tensor input, + at::Tensor weight, + at::Tensor bias, + at::Tensor ones, + at::Tensor offset, + at::Tensor mask, + at::Tensor columns, + at::Tensor grad_input, + at::Tensor grad_weight, + at::Tensor grad_bias, + at::Tensor grad_offset, + at::Tensor grad_mask, + at::Tensor grad_output, + int kernel_h, + int kernel_w, + int stride_h, + int stride_w, + int pad_h, + int pad_w, + int dilation_h, + int dilation_w, + int group, + int deformable_group, + const bool with_bias) { + shape_check( + input, + offset, + &grad_output, + weight, + kernel_h, + kernel_w, + stride_h, + stride_w, + pad_h, + pad_w, + dilation_h, + dilation_w, + group, + deformable_group); + + TORCH_CHECK(input.is_contiguous(), "input tensor has to be contiguous"); + TORCH_CHECK(weight.is_contiguous(), "weight tensor has to be contiguous"); + + const int batch = input.size(0); + const int channels = input.size(1); + const int height = input.size(2); + const int width = input.size(3); + + const int channels_kernel = weight.size(1); + const int kernel_h_ = weight.size(2); + const int kernel_w_ = weight.size(3); + if (kernel_h_ != kernel_h || kernel_w_ != kernel_w) + AT_ERROR( + "Input shape and kernel shape wont match: (%d x %d vs %d x %d).", + kernel_h_, + kernel_w, + kernel_h_, + kernel_w_); + if (channels != channels_kernel * group) + AT_ERROR( + "Input shape and kernel channels wont match: (%d vs %d).", + channels, + channels_kernel * group); + + const int height_out = + (height + 2 * pad_h - (dilation_h * (kernel_h - 1) + 1)) / stride_h + 1; + const int width_out = + (width + 2 * pad_w - (dilation_w * (kernel_w - 1) + 1)) / stride_w + 1; + + // mask shape check + TORCH_CHECK( + (mask.size(2) == height_out && mask.size(3) == width_out), + "invalid spatial size of mask, expected height: %d width: %d, but " + "got height: %d width: %d", + height_out, + width_out, + mask.size(2), + mask.size(3)); + + TORCH_CHECK( + (mask.size(1) == deformable_group * kernel_h * kernel_w), + "invalid number of channels of mask"); + + if (ones.ndimension() != 2 || + ones.size(0) * ones.size(1) < height_out * width_out) { + // Resize plane and fill with ones... + ones = at::ones({height_out, width_out}, input.options()); + } + + grad_input = grad_input.view({batch, channels, height, width}); + columns = at::zeros( + {channels * kernel_h * kernel_w, height_out * width_out}, + input.options()); + + grad_output = grad_output.view( + {grad_output.size(0), + group, + grad_output.size(1) / group, + grad_output.size(2), + grad_output.size(3)}); + + for (int b = 0; b < batch; b++) { + // divide int group + columns = columns.view({group, columns.size(0) / group, columns.size(1)}); + weight = weight.view( + {group, + weight.size(0) / group, + weight.size(1), + weight.size(2), + weight.size(3)}); + + for (int g = 0; g < group; g++) { + columns[g].addmm_( + weight[g].flatten(1).transpose(0, 1), + grad_output[b][g].flatten(1), + 0.0f, + 1.0f); + } + + columns = + columns.view({columns.size(0) * columns.size(1), columns.size(2)}); + weight = weight.view( + {weight.size(0) * weight.size(1), + weight.size(2), + weight.size(3), + weight.size(4)}); + + // gradient w.r.t. input coordinate data + modulated_deformable_col2im_coord_cuda( + columns, + input[b], + offset[b], + mask[b], + 1, + channels, + height, + width, + height_out, + width_out, + kernel_h, + kernel_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + deformable_group, + grad_offset[b], + grad_mask[b]); + // gradient w.r.t. input data + modulated_deformable_col2im_cuda( + columns, + offset[b], + mask[b], + 1, + channels, + height, + width, + height_out, + width_out, + kernel_h, + kernel_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + deformable_group, + grad_input[b]); + + // gradient w.r.t. weight, dWeight should accumulate across the batch and + // group + modulated_deformable_im2col_cuda( + input[b], + offset[b], + mask[b], + 1, + channels, + height, + width, + height_out, + width_out, + kernel_h, + kernel_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + deformable_group, + columns); + + columns = columns.view({group, columns.size(0) / group, columns.size(1)}); + grad_weight = grad_weight.view( + {group, + grad_weight.size(0) / group, + grad_weight.size(1), + grad_weight.size(2), + grad_weight.size(3)}); + if (with_bias) + grad_bias = grad_bias.view({group, grad_bias.size(0) / group}); + + for (int g = 0; g < group; g++) { + grad_weight[g] = + grad_weight[g] + .flatten(1) + .addmm_(grad_output[b][g].flatten(1), columns[g].transpose(0, 1)) + .view_as(grad_weight[g]); + if (with_bias) { + grad_bias[g] = + grad_bias[g] + .view({-1, 1}) + .addmm_(grad_output[b][g].flatten(1), ones.view({-1, 1})) + .view(-1); + } + } + + columns = + columns.view({columns.size(0) * columns.size(1), columns.size(2)}); + grad_weight = grad_weight.view( + {grad_weight.size(0) * grad_weight.size(1), + grad_weight.size(2), + grad_weight.size(3), + grad_weight.size(4)}); + if (with_bias) + grad_bias = grad_bias.view({grad_bias.size(0) * grad_bias.size(1)}); + } + grad_output = grad_output.view( + {grad_output.size(0) * grad_output.size(1), + grad_output.size(2), + grad_output.size(3), + grad_output.size(4)}); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.cu b/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.cu new file mode 100755 index 0000000..f299c7a --- /dev/null +++ b/detectron2/detectron2/layers/csrc/deformable/deform_conv_cuda_kernel.cu @@ -0,0 +1,1288 @@ +// Copyright (c) Facebook, Inc. and its affiliates. + +// modified from +// https://github.com/open-mmlab/mmdetection/blob/master/mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu +// Original license: Apache 2.0 +// clang-format off + +// modify from +// https://github.com/chengdazhi/Deformable-Convolution-V2-PyTorch/blob/mmdetection/mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu + +/*! + ******************* BEGIN Caffe Copyright Notice and Disclaimer ***************** + * + * COPYRIGHT + * + * All contributions by the University of California: + * Copyright (c) 2014-2017 The Regents of the University of California (Regents) + * All rights reserved. + * + * All other contributions: + * Copyright (c) 2014-2017, the respective contributors + * All rights reserved. + * + * Caffe uses a shared copyright model: each contributor holds copyright over + * their contributions to Caffe. The project versioning records all such + * contribution and copyright details. If a contributor wants to further mark + * their specific copyright on a particular contribution, they should indicate + * their copyright solely in the commit message of the change when it is + * committed. + * + * LICENSE + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, this + * list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + *AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + *IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE + *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + *DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + *SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + *CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + *OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + *OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * CONTRIBUTION AGREEMENT + * + * By contributing to the BVLC/caffe repository through pull-request, comment, + * or otherwise, the contributor releases their content to the + * license and copyright terms herein. + * + ***************** END Caffe Copyright Notice and Disclaimer ********************* + * + * Copyright (c) 2018 Microsoft + * Licensed under The MIT License [see LICENSE for details] + * \file modulated_deformable_im2col.cuh + * \brief Function definitions of converting an image to + * column matrix based on kernel, padding, dilation, and offset. + * These functions are mainly used in deformable convolution operators. + * \ref: https://arxiv.org/abs/1703.06211 + * \author Yuwen Xiong, Haozhi Qi, Jifeng Dai, Xizhou Zhu, Han Hu, Dazhi Cheng + */ + +#include +#include +#include +#include +#include +#include + +using namespace at; + +#define CUDA_KERNEL_LOOP(i, n) \ + for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < (n); \ + i += blockDim.x * gridDim.x) + + +namespace { + +const int CUDA_NUM_THREADS = 1024; +const int kMaxGridNum = 65535; + +inline int GET_BLOCKS(const int N) { + return std::min(kMaxGridNum, (N + CUDA_NUM_THREADS - 1) / CUDA_NUM_THREADS); +} + +} + +template +__device__ scalar_t deformable_im2col_bilinear( + const scalar_t* bottom_data, + const int data_width, + const int height, + const int width, + scalar_t h, + scalar_t w) { + int h_low = floor(h); + int w_low = floor(w); + int h_high = h_low + 1; + int w_high = w_low + 1; + + scalar_t lh = h - h_low; + scalar_t lw = w - w_low; + scalar_t hh = 1 - lh, hw = 1 - lw; + + scalar_t v1 = 0; + if (h_low >= 0 && w_low >= 0) + v1 = bottom_data[h_low * data_width + w_low]; + scalar_t v2 = 0; + if (h_low >= 0 && w_high <= width - 1) + v2 = bottom_data[h_low * data_width + w_high]; + scalar_t v3 = 0; + if (h_high <= height - 1 && w_low >= 0) + v3 = bottom_data[h_high * data_width + w_low]; + scalar_t v4 = 0; + if (h_high <= height - 1 && w_high <= width - 1) + v4 = bottom_data[h_high * data_width + w_high]; + + scalar_t w1 = hh * hw, w2 = hh * lw, w3 = lh * hw, w4 = lh * lw; + + scalar_t val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + return val; +} + +template +__device__ scalar_t get_gradient_weight( + scalar_t argmax_h, + scalar_t argmax_w, + const int h, + const int w, + const int height, + const int width) { + if (argmax_h <= -1 || argmax_h >= height || argmax_w <= -1 || + argmax_w >= width) { + // empty + return 0; + } + + int argmax_h_low = floor(argmax_h); + int argmax_w_low = floor(argmax_w); + int argmax_h_high = argmax_h_low + 1; + int argmax_w_high = argmax_w_low + 1; + + scalar_t weight = 0; + if (h == argmax_h_low && w == argmax_w_low) + weight = (h + 1 - argmax_h) * (w + 1 - argmax_w); + if (h == argmax_h_low && w == argmax_w_high) + weight = (h + 1 - argmax_h) * (argmax_w + 1 - w); + if (h == argmax_h_high && w == argmax_w_low) + weight = (argmax_h + 1 - h) * (w + 1 - argmax_w); + if (h == argmax_h_high && w == argmax_w_high) + weight = (argmax_h + 1 - h) * (argmax_w + 1 - w); + return weight; +} + +template +__device__ scalar_t get_coordinate_weight( + scalar_t argmax_h, + scalar_t argmax_w, + const int height, + const int width, + const scalar_t* im_data, + const int data_width, + const int bp_dir) { + if (argmax_h <= -1 || argmax_h >= height || argmax_w <= -1 || + argmax_w >= width) { + // empty + return 0; + } + + int argmax_h_low = floor(argmax_h); + int argmax_w_low = floor(argmax_w); + int argmax_h_high = argmax_h_low + 1; + int argmax_w_high = argmax_w_low + 1; + + scalar_t weight = 0; + + if (bp_dir == 0) { + if (argmax_h_low >= 0 && argmax_w_low >= 0) + weight += -1 * (argmax_w_low + 1 - argmax_w) * + im_data[argmax_h_low * data_width + argmax_w_low]; + if (argmax_h_low >= 0 && argmax_w_high <= width - 1) + weight += -1 * (argmax_w - argmax_w_low) * + im_data[argmax_h_low * data_width + argmax_w_high]; + if (argmax_h_high <= height - 1 && argmax_w_low >= 0) + weight += (argmax_w_low + 1 - argmax_w) * + im_data[argmax_h_high * data_width + argmax_w_low]; + if (argmax_h_high <= height - 1 && argmax_w_high <= width - 1) + weight += (argmax_w - argmax_w_low) * + im_data[argmax_h_high * data_width + argmax_w_high]; + } else if (bp_dir == 1) { + if (argmax_h_low >= 0 && argmax_w_low >= 0) + weight += -1 * (argmax_h_low + 1 - argmax_h) * + im_data[argmax_h_low * data_width + argmax_w_low]; + if (argmax_h_low >= 0 && argmax_w_high <= width - 1) + weight += (argmax_h_low + 1 - argmax_h) * + im_data[argmax_h_low * data_width + argmax_w_high]; + if (argmax_h_high <= height - 1 && argmax_w_low >= 0) + weight += -1 * (argmax_h - argmax_h_low) * + im_data[argmax_h_high * data_width + argmax_w_low]; + if (argmax_h_high <= height - 1 && argmax_w_high <= width - 1) + weight += (argmax_h - argmax_h_low) * + im_data[argmax_h_high * data_width + argmax_w_high]; + } + + return weight; +} + +template +__global__ void deformable_im2col_gpu_kernel( + const int n, + const scalar_t* data_im, + const scalar_t* data_offset, + const int height, + const int width, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int channel_per_deformable_group, + const int batch_size, + const int num_channels, + const int deformable_group, + const int height_col, + const int width_col, + scalar_t* data_col) { + CUDA_KERNEL_LOOP(index, n) { + // index index of output matrix + const int w_col = index % width_col; + const int h_col = (index / width_col) % height_col; + const int b_col = (index / width_col / height_col) % batch_size; + const int c_im = (index / width_col / height_col) / batch_size; + const int c_col = c_im * kernel_h * kernel_w; + + // compute deformable group index + const int deformable_group_index = c_im / channel_per_deformable_group; + + const int h_in = h_col * stride_h - pad_h; + const int w_in = w_col * stride_w - pad_w; + scalar_t* data_col_ptr = data_col + + ((c_col * batch_size + b_col) * height_col + h_col) * width_col + w_col; + // const scalar_t* data_im_ptr = data_im + ((b_col * num_channels + c_im) * + // height + h_in) * width + w_in; + const scalar_t* data_im_ptr = + data_im + (b_col * num_channels + c_im) * height * width; + const scalar_t* data_offset_ptr = data_offset + + (b_col * deformable_group + deformable_group_index) * 2 * kernel_h * + kernel_w * height_col * width_col; + + for (int i = 0; i < kernel_h; ++i) { + for (int j = 0; j < kernel_w; ++j) { + const int data_offset_h_ptr = + ((2 * (i * kernel_w + j)) * height_col + h_col) * width_col + w_col; + const int data_offset_w_ptr = + ((2 * (i * kernel_w + j) + 1) * height_col + h_col) * width_col + + w_col; + const scalar_t offset_h = data_offset_ptr[data_offset_h_ptr]; + const scalar_t offset_w = data_offset_ptr[data_offset_w_ptr]; + scalar_t val = static_cast(0); + const scalar_t h_im = h_in + i * dilation_h + offset_h; + const scalar_t w_im = w_in + j * dilation_w + offset_w; + if (h_im > -1 && w_im > -1 && h_im < height && w_im < width) { + // const scalar_t map_h = i * dilation_h + offset_h; + // const scalar_t map_w = j * dilation_w + offset_w; + // const int cur_height = height - h_in; + // const int cur_width = width - w_in; + // val = deformable_im2col_bilinear(data_im_ptr, width, cur_height, + // cur_width, map_h, map_w); + val = deformable_im2col_bilinear( + data_im_ptr, width, height, width, h_im, w_im); + } + *data_col_ptr = val; + data_col_ptr += batch_size * height_col * width_col; + } + } + } +} + + +template +__global__ void deformable_col2im_gpu_kernel( + const int n, + const scalar_t* data_col, + const scalar_t* data_offset, + const int channels, + const int height, + const int width, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int channel_per_deformable_group, + const int batch_size, + const int deformable_group, + const int height_col, + const int width_col, + scalar_t* grad_im) { + CUDA_KERNEL_LOOP(index, n) { + const int j = (index / width_col / height_col / batch_size) % kernel_w; + const int i = + (index / width_col / height_col / batch_size / kernel_w) % kernel_h; + const int c = + index / width_col / height_col / batch_size / kernel_w / kernel_h; + // compute the start and end of the output + + const int deformable_group_index = c / channel_per_deformable_group; + + int w_out = index % width_col; + int h_out = (index / width_col) % height_col; + int b = (index / width_col / height_col) % batch_size; + int w_in = w_out * stride_w - pad_w; + int h_in = h_out * stride_h - pad_h; + + const scalar_t* data_offset_ptr = data_offset + + (b * deformable_group + deformable_group_index) * 2 * kernel_h * + kernel_w * height_col * width_col; + const int data_offset_h_ptr = + ((2 * (i * kernel_w + j)) * height_col + h_out) * width_col + w_out; + const int data_offset_w_ptr = + ((2 * (i * kernel_w + j) + 1) * height_col + h_out) * width_col + w_out; + const scalar_t offset_h = data_offset_ptr[data_offset_h_ptr]; + const scalar_t offset_w = data_offset_ptr[data_offset_w_ptr]; + const scalar_t cur_inv_h_data = h_in + i * dilation_h + offset_h; + const scalar_t cur_inv_w_data = w_in + j * dilation_w + offset_w; + + const scalar_t cur_top_grad = data_col[index]; + const int cur_h = (int)cur_inv_h_data; + const int cur_w = (int)cur_inv_w_data; + for (int dy = -2; dy <= 2; dy++) { + for (int dx = -2; dx <= 2; dx++) { + if (cur_h + dy >= 0 && cur_h + dy < height && cur_w + dx >= 0 && + cur_w + dx < width && abs(cur_inv_h_data - (cur_h + dy)) < 1 && + abs(cur_inv_w_data - (cur_w + dx)) < 1) { + int cur_bottom_grad_pos = + ((b * channels + c) * height + cur_h + dy) * width + cur_w + dx; + scalar_t weight = get_gradient_weight( + cur_inv_h_data, + cur_inv_w_data, + cur_h + dy, + cur_w + dx, + height, + width); + atomicAdd(grad_im + cur_bottom_grad_pos, weight * cur_top_grad); + } + } + } + } +} + + +template +__global__ void deformable_col2im_coord_gpu_kernel( + const int n, + const scalar_t* data_col, + const scalar_t* data_im, + const scalar_t* data_offset, + const int channels, + const int height, + const int width, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int channel_per_deformable_group, + const int batch_size, + const int offset_channels, + const int deformable_group, + const int height_col, + const int width_col, + scalar_t* grad_offset) { + CUDA_KERNEL_LOOP(index, n) { + scalar_t val = 0; + int w = index % width_col; + int h = (index / width_col) % height_col; + int c = (index / width_col / height_col) % offset_channels; + int b = (index / width_col / height_col) / offset_channels; + // compute the start and end of the output + + const int deformable_group_index = c / (2 * kernel_h * kernel_w); + const int col_step = kernel_h * kernel_w; + int cnt = 0; + const scalar_t* data_col_ptr = data_col + + deformable_group_index * channel_per_deformable_group * batch_size * + width_col * height_col; + const scalar_t* data_im_ptr = data_im + + (b * deformable_group + deformable_group_index) * + channel_per_deformable_group / kernel_h / kernel_w * height * width; + const scalar_t* data_offset_ptr = data_offset + + (b * deformable_group + deformable_group_index) * 2 * kernel_h * + kernel_w * height_col * width_col; + + const int offset_c = c - deformable_group_index * 2 * kernel_h * kernel_w; + + for (int col_c = (offset_c / 2); col_c < channel_per_deformable_group; + col_c += col_step) { + const int col_pos = + (((col_c * batch_size + b) * height_col) + h) * width_col + w; + const int bp_dir = offset_c % 2; + + int j = (col_pos / width_col / height_col / batch_size) % kernel_w; + int i = + (col_pos / width_col / height_col / batch_size / kernel_w) % kernel_h; + int w_out = col_pos % width_col; + int h_out = (col_pos / width_col) % height_col; + int w_in = w_out * stride_w - pad_w; + int h_in = h_out * stride_h - pad_h; + const int data_offset_h_ptr = + (((2 * (i * kernel_w + j)) * height_col + h_out) * width_col + w_out); + const int data_offset_w_ptr = + (((2 * (i * kernel_w + j) + 1) * height_col + h_out) * width_col + + w_out); + const scalar_t offset_h = data_offset_ptr[data_offset_h_ptr]; + const scalar_t offset_w = data_offset_ptr[data_offset_w_ptr]; + scalar_t inv_h = h_in + i * dilation_h + offset_h; + scalar_t inv_w = w_in + j * dilation_w + offset_w; + if (inv_h <= -1 || inv_w <= -1 || inv_h >= height || inv_w >= width) { + inv_h = inv_w = -2; + } + const scalar_t weight = get_coordinate_weight( + inv_h, + inv_w, + height, + width, + data_im_ptr + cnt * height * width, + width, + bp_dir); + val += weight * data_col_ptr[col_pos]; + cnt += 1; + } + + grad_offset[index] = val; + } +} + + +namespace detectron2 { + +void deformable_im2col( + const at::Tensor data_im, + const at::Tensor data_offset, + const int channels, + const int height, + const int width, + const int ksize_h, + const int ksize_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int parallel_imgs, + const int deformable_group, + at::Tensor data_col) { + // num_axes should be smaller than block size + // todo: check parallel_imgs is correctly passed in + int height_col = + (height + 2 * pad_h - (dilation_h * (ksize_h - 1) + 1)) / stride_h + 1; + int width_col = + (width + 2 * pad_w - (dilation_w * (ksize_w - 1) + 1)) / stride_w + 1; + int num_kernels = channels * height_col * width_col * parallel_imgs; + int channel_per_deformable_group = channels / deformable_group; + + at::cuda::CUDAGuard device_guard(data_im.device()); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + data_im.scalar_type(), "deformable_im2col_gpu", ([&] { + const scalar_t* data_im_ = data_im.data_ptr(); + const scalar_t* data_offset_ = data_offset.data_ptr(); + scalar_t* data_col_ = data_col.data_ptr(); + + deformable_im2col_gpu_kernel<<< + GET_BLOCKS(num_kernels), + CUDA_NUM_THREADS, + 0, + stream>>>( + num_kernels, + data_im_, + data_offset_, + height, + width, + ksize_h, + ksize_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + channel_per_deformable_group, + parallel_imgs, + channels, + deformable_group, + height_col, + width_col, + data_col_); + })); + + cudaError_t err = cudaGetLastError(); + if (err != cudaSuccess) { + printf("error in deformable_im2col: %s\n", cudaGetErrorString(err)); + } +} + + +void deformable_col2im( + const at::Tensor data_col, + const at::Tensor data_offset, + const int channels, + const int height, + const int width, + const int ksize_h, + const int ksize_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int parallel_imgs, + const int deformable_group, + at::Tensor grad_im) { + // todo: make sure parallel_imgs is passed in correctly + int height_col = + (height + 2 * pad_h - (dilation_h * (ksize_h - 1) + 1)) / stride_h + 1; + int width_col = + (width + 2 * pad_w - (dilation_w * (ksize_w - 1) + 1)) / stride_w + 1; + int num_kernels = + channels * ksize_h * ksize_w * height_col * width_col * parallel_imgs; + int channel_per_deformable_group = channels / deformable_group; + + at::cuda::CUDAGuard device_guard(data_col.device()); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + data_col.scalar_type(), "deformable_col2im_gpu", ([&] { + const scalar_t* data_col_ = data_col.data_ptr(); + const scalar_t* data_offset_ = data_offset.data_ptr(); + scalar_t* grad_im_ = grad_im.data_ptr(); + + deformable_col2im_gpu_kernel<<< + GET_BLOCKS(num_kernels), + CUDA_NUM_THREADS, + 0, + stream>>>( + num_kernels, + data_col_, + data_offset_, + channels, + height, + width, + ksize_h, + ksize_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + channel_per_deformable_group, + parallel_imgs, + deformable_group, + height_col, + width_col, + grad_im_); + })); + + cudaError_t err = cudaGetLastError(); + if (err != cudaSuccess) { + printf("error in deformable_col2im: %s\n", cudaGetErrorString(err)); + } +} + + +void deformable_col2im_coord( + const at::Tensor data_col, + const at::Tensor data_im, + const at::Tensor data_offset, + const int channels, + const int height, + const int width, + const int ksize_h, + const int ksize_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int parallel_imgs, + const int deformable_group, + at::Tensor grad_offset) { + int height_col = + (height + 2 * pad_h - (dilation_h * (ksize_h - 1) + 1)) / stride_h + 1; + int width_col = + (width + 2 * pad_w - (dilation_w * (ksize_w - 1) + 1)) / stride_w + 1; + int num_kernels = height_col * width_col * 2 * ksize_h * ksize_w * + deformable_group * parallel_imgs; + int channel_per_deformable_group = + channels * ksize_h * ksize_w / deformable_group; + + at::cuda::CUDAGuard device_guard(data_col.device()); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + data_col.scalar_type(), "deformable_col2im_coord_gpu", ([&] { + const scalar_t* data_col_ = data_col.data_ptr(); + const scalar_t* data_im_ = data_im.data_ptr(); + const scalar_t* data_offset_ = data_offset.data_ptr(); + scalar_t* grad_offset_ = grad_offset.data_ptr(); + + deformable_col2im_coord_gpu_kernel<<< + GET_BLOCKS(num_kernels), + CUDA_NUM_THREADS, + 0, + stream>>>( + num_kernels, + data_col_, + data_im_, + data_offset_, + channels, + height, + width, + ksize_h, + ksize_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + channel_per_deformable_group, + parallel_imgs, + 2 * ksize_h * ksize_w * deformable_group, + deformable_group, + height_col, + width_col, + grad_offset_); + })); +} + +} // namespace detectron2 + + +template +__device__ scalar_t dmcn_im2col_bilinear( + const scalar_t* bottom_data, + const int data_width, + const int height, + const int width, + scalar_t h, + scalar_t w) { + int h_low = floor(h); + int w_low = floor(w); + int h_high = h_low + 1; + int w_high = w_low + 1; + + scalar_t lh = h - h_low; + scalar_t lw = w - w_low; + scalar_t hh = 1 - lh, hw = 1 - lw; + + scalar_t v1 = 0; + if (h_low >= 0 && w_low >= 0) + v1 = bottom_data[h_low * data_width + w_low]; + scalar_t v2 = 0; + if (h_low >= 0 && w_high <= width - 1) + v2 = bottom_data[h_low * data_width + w_high]; + scalar_t v3 = 0; + if (h_high <= height - 1 && w_low >= 0) + v3 = bottom_data[h_high * data_width + w_low]; + scalar_t v4 = 0; + if (h_high <= height - 1 && w_high <= width - 1) + v4 = bottom_data[h_high * data_width + w_high]; + + scalar_t w1 = hh * hw, w2 = hh * lw, w3 = lh * hw, w4 = lh * lw; + + scalar_t val = (w1 * v1 + w2 * v2 + w3 * v3 + w4 * v4); + return val; +} + +template +__device__ scalar_t dmcn_get_gradient_weight( + scalar_t argmax_h, + scalar_t argmax_w, + const int h, + const int w, + const int height, + const int width) { + if (argmax_h <= -1 || argmax_h >= height || argmax_w <= -1 || + argmax_w >= width) { + // empty + return 0; + } + + int argmax_h_low = floor(argmax_h); + int argmax_w_low = floor(argmax_w); + int argmax_h_high = argmax_h_low + 1; + int argmax_w_high = argmax_w_low + 1; + + scalar_t weight = 0; + if (h == argmax_h_low && w == argmax_w_low) + weight = (h + 1 - argmax_h) * (w + 1 - argmax_w); + if (h == argmax_h_low && w == argmax_w_high) + weight = (h + 1 - argmax_h) * (argmax_w + 1 - w); + if (h == argmax_h_high && w == argmax_w_low) + weight = (argmax_h + 1 - h) * (w + 1 - argmax_w); + if (h == argmax_h_high && w == argmax_w_high) + weight = (argmax_h + 1 - h) * (argmax_w + 1 - w); + return weight; +} + +template +__device__ scalar_t dmcn_get_coordinate_weight( + scalar_t argmax_h, + scalar_t argmax_w, + const int height, + const int width, + const scalar_t* im_data, + const int data_width, + const int bp_dir) { + if (argmax_h <= -1 || argmax_h >= height || argmax_w <= -1 || + argmax_w >= width) { + // empty + return 0; + } + + int argmax_h_low = floor(argmax_h); + int argmax_w_low = floor(argmax_w); + int argmax_h_high = argmax_h_low + 1; + int argmax_w_high = argmax_w_low + 1; + + scalar_t weight = 0; + + if (bp_dir == 0) { + if (argmax_h_low >= 0 && argmax_w_low >= 0) + weight += -1 * (argmax_w_low + 1 - argmax_w) * + im_data[argmax_h_low * data_width + argmax_w_low]; + if (argmax_h_low >= 0 && argmax_w_high <= width - 1) + weight += -1 * (argmax_w - argmax_w_low) * + im_data[argmax_h_low * data_width + argmax_w_high]; + if (argmax_h_high <= height - 1 && argmax_w_low >= 0) + weight += (argmax_w_low + 1 - argmax_w) * + im_data[argmax_h_high * data_width + argmax_w_low]; + if (argmax_h_high <= height - 1 && argmax_w_high <= width - 1) + weight += (argmax_w - argmax_w_low) * + im_data[argmax_h_high * data_width + argmax_w_high]; + } else if (bp_dir == 1) { + if (argmax_h_low >= 0 && argmax_w_low >= 0) + weight += -1 * (argmax_h_low + 1 - argmax_h) * + im_data[argmax_h_low * data_width + argmax_w_low]; + if (argmax_h_low >= 0 && argmax_w_high <= width - 1) + weight += (argmax_h_low + 1 - argmax_h) * + im_data[argmax_h_low * data_width + argmax_w_high]; + if (argmax_h_high <= height - 1 && argmax_w_low >= 0) + weight += -1 * (argmax_h - argmax_h_low) * + im_data[argmax_h_high * data_width + argmax_w_low]; + if (argmax_h_high <= height - 1 && argmax_w_high <= width - 1) + weight += (argmax_h - argmax_h_low) * + im_data[argmax_h_high * data_width + argmax_w_high]; + } + + return weight; +} + +template +__global__ void modulated_deformable_im2col_gpu_kernel( + const int n, + const scalar_t* data_im, + const scalar_t* data_offset, + const scalar_t* data_mask, + const int height, + const int width, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int channel_per_deformable_group, + const int batch_size, + const int num_channels, + const int deformable_group, + const int height_col, + const int width_col, + scalar_t* data_col) { + CUDA_KERNEL_LOOP(index, n) { + // index index of output matrix + const int w_col = index % width_col; + const int h_col = (index / width_col) % height_col; + const int b_col = (index / width_col / height_col) % batch_size; + const int c_im = (index / width_col / height_col) / batch_size; + const int c_col = c_im * kernel_h * kernel_w; + + // compute deformable group index + const int deformable_group_index = c_im / channel_per_deformable_group; + + const int h_in = h_col * stride_h - pad_h; + const int w_in = w_col * stride_w - pad_w; + + scalar_t* data_col_ptr = data_col + + ((c_col * batch_size + b_col) * height_col + h_col) * width_col + w_col; + // const float* data_im_ptr = data_im + ((b_col * num_channels + c_im) * + // height + h_in) * width + w_in; + const scalar_t* data_im_ptr = + data_im + (b_col * num_channels + c_im) * height * width; + const scalar_t* data_offset_ptr = data_offset + + (b_col * deformable_group + deformable_group_index) * 2 * kernel_h * + kernel_w * height_col * width_col; + + const scalar_t* data_mask_ptr = data_mask + + (b_col * deformable_group + deformable_group_index) * kernel_h * + kernel_w * height_col * width_col; + + for (int i = 0; i < kernel_h; ++i) { + for (int j = 0; j < kernel_w; ++j) { + const int data_offset_h_ptr = + ((2 * (i * kernel_w + j)) * height_col + h_col) * width_col + w_col; + const int data_offset_w_ptr = + ((2 * (i * kernel_w + j) + 1) * height_col + h_col) * width_col + + w_col; + const int data_mask_hw_ptr = + ((i * kernel_w + j) * height_col + h_col) * width_col + w_col; + const scalar_t offset_h = data_offset_ptr[data_offset_h_ptr]; + const scalar_t offset_w = data_offset_ptr[data_offset_w_ptr]; + const scalar_t mask = data_mask_ptr[data_mask_hw_ptr]; + scalar_t val = static_cast(0); + const scalar_t h_im = h_in + i * dilation_h + offset_h; + const scalar_t w_im = w_in + j * dilation_w + offset_w; + // if (h_im >= 0 && w_im >= 0 && h_im < height && w_im < width) { + if (h_im > -1 && w_im > -1 && h_im < height && w_im < width) { + // const float map_h = i * dilation_h + offset_h; + // const float map_w = j * dilation_w + offset_w; + // const int cur_height = height - h_in; + // const int cur_width = width - w_in; + // val = dmcn_im2col_bilinear(data_im_ptr, width, cur_height, + // cur_width, map_h, map_w); + val = dmcn_im2col_bilinear( + data_im_ptr, width, height, width, h_im, w_im); + } + *data_col_ptr = val * mask; + data_col_ptr += batch_size * height_col * width_col; + // data_col_ptr += height_col * width_col; + } + } + } +} + +template +__global__ void modulated_deformable_col2im_gpu_kernel( + const int n, + const scalar_t* data_col, + const scalar_t* data_offset, + const scalar_t* data_mask, + const int channels, + const int height, + const int width, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int channel_per_deformable_group, + const int batch_size, + const int deformable_group, + const int height_col, + const int width_col, + scalar_t* grad_im) { + CUDA_KERNEL_LOOP(index, n) { + const int j = (index / width_col / height_col / batch_size) % kernel_w; + const int i = + (index / width_col / height_col / batch_size / kernel_w) % kernel_h; + const int c = + index / width_col / height_col / batch_size / kernel_w / kernel_h; + // compute the start and end of the output + + const int deformable_group_index = c / channel_per_deformable_group; + + int w_out = index % width_col; + int h_out = (index / width_col) % height_col; + int b = (index / width_col / height_col) % batch_size; + int w_in = w_out * stride_w - pad_w; + int h_in = h_out * stride_h - pad_h; + + const scalar_t* data_offset_ptr = data_offset + + (b * deformable_group + deformable_group_index) * 2 * kernel_h * + kernel_w * height_col * width_col; + const scalar_t* data_mask_ptr = data_mask + + (b * deformable_group + deformable_group_index) * kernel_h * kernel_w * + height_col * width_col; + const int data_offset_h_ptr = + ((2 * (i * kernel_w + j)) * height_col + h_out) * width_col + w_out; + const int data_offset_w_ptr = + ((2 * (i * kernel_w + j) + 1) * height_col + h_out) * width_col + w_out; + const int data_mask_hw_ptr = + ((i * kernel_w + j) * height_col + h_out) * width_col + w_out; + const scalar_t offset_h = data_offset_ptr[data_offset_h_ptr]; + const scalar_t offset_w = data_offset_ptr[data_offset_w_ptr]; + const scalar_t mask = data_mask_ptr[data_mask_hw_ptr]; + const scalar_t cur_inv_h_data = h_in + i * dilation_h + offset_h; + const scalar_t cur_inv_w_data = w_in + j * dilation_w + offset_w; + + const scalar_t cur_top_grad = data_col[index] * mask; + const int cur_h = (int)cur_inv_h_data; + const int cur_w = (int)cur_inv_w_data; + for (int dy = -2; dy <= 2; dy++) { + for (int dx = -2; dx <= 2; dx++) { + if (cur_h + dy >= 0 && cur_h + dy < height && cur_w + dx >= 0 && + cur_w + dx < width && abs(cur_inv_h_data - (cur_h + dy)) < 1 && + abs(cur_inv_w_data - (cur_w + dx)) < 1) { + int cur_bottom_grad_pos = + ((b * channels + c) * height + cur_h + dy) * width + cur_w + dx; + scalar_t weight = dmcn_get_gradient_weight( + cur_inv_h_data, + cur_inv_w_data, + cur_h + dy, + cur_w + dx, + height, + width); + atomicAdd(grad_im + cur_bottom_grad_pos, weight * cur_top_grad); + } + } + } + } +} + +template +__global__ void modulated_deformable_col2im_coord_gpu_kernel( + const int n, + const scalar_t* data_col, + const scalar_t* data_im, + const scalar_t* data_offset, + const scalar_t* data_mask, + const int channels, + const int height, + const int width, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int channel_per_deformable_group, + const int batch_size, + const int offset_channels, + const int deformable_group, + const int height_col, + const int width_col, + scalar_t* grad_offset, + scalar_t* grad_mask) { + CUDA_KERNEL_LOOP(index, n) { + scalar_t val = 0, mval = 0; + int w = index % width_col; + int h = (index / width_col) % height_col; + int c = (index / width_col / height_col) % offset_channels; + int b = (index / width_col / height_col) / offset_channels; + // compute the start and end of the output + + const int deformable_group_index = c / (2 * kernel_h * kernel_w); + const int col_step = kernel_h * kernel_w; + int cnt = 0; + const scalar_t* data_col_ptr = data_col + + deformable_group_index * channel_per_deformable_group * batch_size * + width_col * height_col; + const scalar_t* data_im_ptr = data_im + + (b * deformable_group + deformable_group_index) * + channel_per_deformable_group / kernel_h / kernel_w * height * width; + const scalar_t* data_offset_ptr = data_offset + + (b * deformable_group + deformable_group_index) * 2 * kernel_h * + kernel_w * height_col * width_col; + const scalar_t* data_mask_ptr = data_mask + + (b * deformable_group + deformable_group_index) * kernel_h * kernel_w * + height_col * width_col; + + const int offset_c = c - deformable_group_index * 2 * kernel_h * kernel_w; + + for (int col_c = (offset_c / 2); col_c < channel_per_deformable_group; + col_c += col_step) { + const int col_pos = + (((col_c * batch_size + b) * height_col) + h) * width_col + w; + const int bp_dir = offset_c % 2; + + int j = (col_pos / width_col / height_col / batch_size) % kernel_w; + int i = + (col_pos / width_col / height_col / batch_size / kernel_w) % kernel_h; + int w_out = col_pos % width_col; + int h_out = (col_pos / width_col) % height_col; + int w_in = w_out * stride_w - pad_w; + int h_in = h_out * stride_h - pad_h; + const int data_offset_h_ptr = + (((2 * (i * kernel_w + j)) * height_col + h_out) * width_col + w_out); + const int data_offset_w_ptr = + (((2 * (i * kernel_w + j) + 1) * height_col + h_out) * width_col + + w_out); + const int data_mask_hw_ptr = + (((i * kernel_w + j) * height_col + h_out) * width_col + w_out); + const scalar_t offset_h = data_offset_ptr[data_offset_h_ptr]; + const scalar_t offset_w = data_offset_ptr[data_offset_w_ptr]; + const scalar_t mask = data_mask_ptr[data_mask_hw_ptr]; + scalar_t inv_h = h_in + i * dilation_h + offset_h; + scalar_t inv_w = w_in + j * dilation_w + offset_w; + if (inv_h <= -1 || inv_w <= -1 || inv_h >= height || inv_w >= width) { + inv_h = inv_w = -2; + } else { + mval += data_col_ptr[col_pos] * + dmcn_im2col_bilinear( + data_im_ptr + cnt * height * width, + width, + height, + width, + inv_h, + inv_w); + } + const scalar_t weight = dmcn_get_coordinate_weight( + inv_h, + inv_w, + height, + width, + data_im_ptr + cnt * height * width, + width, + bp_dir); + val += weight * data_col_ptr[col_pos] * mask; + cnt += 1; + } + // KERNEL_ASSIGN(grad_offset[index], offset_req, val); + grad_offset[index] = val; + if (offset_c % 2 == 0) + // KERNEL_ASSIGN(grad_mask[(((b * deformable_group + + // deformable_group_index) * kernel_h * kernel_w + offset_c / 2) * + // height_col + h) * width_col + w], mask_req, mval); + grad_mask + [(((b * deformable_group + deformable_group_index) * kernel_h * + kernel_w + + offset_c / 2) * + height_col + + h) * + width_col + + w] = mval; + } +} + + +namespace detectron2 { + +void modulated_deformable_im2col_cuda( + const at::Tensor data_im, + const at::Tensor data_offset, + const at::Tensor data_mask, + const int batch_size, + const int channels, + const int height_im, + const int width_im, + const int height_col, + const int width_col, + const int kernel_h, + const int kenerl_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int deformable_group, + at::Tensor data_col) { + // num_axes should be smaller than block size + const int channel_per_deformable_group = channels / deformable_group; + const int num_kernels = channels * batch_size * height_col * width_col; + + at::cuda::CUDAGuard device_guard(data_im.device()); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + data_im.scalar_type(), "modulated_deformable_im2col_gpu", ([&] { + const scalar_t* data_im_ = data_im.data_ptr(); + const scalar_t* data_offset_ = data_offset.data_ptr(); + const scalar_t* data_mask_ = data_mask.data_ptr(); + scalar_t* data_col_ = data_col.data_ptr(); + + modulated_deformable_im2col_gpu_kernel<<< + GET_BLOCKS(num_kernels), + CUDA_NUM_THREADS, + 0, + stream>>>( + num_kernels, + data_im_, + data_offset_, + data_mask_, + height_im, + width_im, + kernel_h, + kenerl_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + channel_per_deformable_group, + batch_size, + channels, + deformable_group, + height_col, + width_col, + data_col_); + })); + + cudaError_t err = cudaGetLastError(); + if (err != cudaSuccess) { + printf( + "error in modulated_deformable_im2col_cuda: %s\n", + cudaGetErrorString(err)); + } +} + +void modulated_deformable_col2im_cuda( + const at::Tensor data_col, + const at::Tensor data_offset, + const at::Tensor data_mask, + const int batch_size, + const int channels, + const int height_im, + const int width_im, + const int height_col, + const int width_col, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int deformable_group, + at::Tensor grad_im) { + const int channel_per_deformable_group = channels / deformable_group; + const int num_kernels = + channels * kernel_h * kernel_w * batch_size * height_col * width_col; + + at::cuda::CUDAGuard device_guard(data_col.device()); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + data_col.scalar_type(), "modulated_deformable_col2im_gpu", ([&] { + const scalar_t* data_col_ = data_col.data_ptr(); + const scalar_t* data_offset_ = data_offset.data_ptr(); + const scalar_t* data_mask_ = data_mask.data_ptr(); + scalar_t* grad_im_ = grad_im.data_ptr(); + + modulated_deformable_col2im_gpu_kernel<<< + GET_BLOCKS(num_kernels), + CUDA_NUM_THREADS, + 0, + stream>>>( + num_kernels, + data_col_, + data_offset_, + data_mask_, + channels, + height_im, + width_im, + kernel_h, + kernel_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + channel_per_deformable_group, + batch_size, + deformable_group, + height_col, + width_col, + grad_im_); + })); + + cudaError_t err = cudaGetLastError(); + if (err != cudaSuccess) { + printf( + "error in modulated_deformable_col2im_cuda: %s\n", + cudaGetErrorString(err)); + } +} + +void modulated_deformable_col2im_coord_cuda( + const at::Tensor data_col, + const at::Tensor data_im, + const at::Tensor data_offset, + const at::Tensor data_mask, + const int batch_size, + const int channels, + const int height_im, + const int width_im, + const int height_col, + const int width_col, + const int kernel_h, + const int kernel_w, + const int pad_h, + const int pad_w, + const int stride_h, + const int stride_w, + const int dilation_h, + const int dilation_w, + const int deformable_group, + at::Tensor grad_offset, + at::Tensor grad_mask) { + const int num_kernels = batch_size * height_col * width_col * 2 * kernel_h * + kernel_w * deformable_group; + const int channel_per_deformable_group = + channels * kernel_h * kernel_w / deformable_group; + + at::cuda::CUDAGuard device_guard(data_col.device()); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES_AND_HALF( + data_col.scalar_type(), "modulated_deformable_col2im_coord_gpu", ([&] { + const scalar_t* data_col_ = data_col.data_ptr(); + const scalar_t* data_im_ = data_im.data_ptr(); + const scalar_t* data_offset_ = data_offset.data_ptr(); + const scalar_t* data_mask_ = data_mask.data_ptr(); + scalar_t* grad_offset_ = grad_offset.data_ptr(); + scalar_t* grad_mask_ = grad_mask.data_ptr(); + + modulated_deformable_col2im_coord_gpu_kernel<<< + GET_BLOCKS(num_kernels), + CUDA_NUM_THREADS, + 0, + stream>>>( + num_kernels, + data_col_, + data_im_, + data_offset_, + data_mask_, + channels, + height_im, + width_im, + kernel_h, + kernel_w, + pad_h, + pad_w, + stride_h, + stride_w, + dilation_h, + dilation_w, + channel_per_deformable_group, + batch_size, + 2 * kernel_h * kernel_w * deformable_group, + deformable_group, + height_col, + width_col, + grad_offset_, + grad_mask_); + })); + cudaError_t err = cudaGetLastError(); + if (err != cudaSuccess) { + printf( + "error in modulated_deformable_col2im_coord_cuda: %s\n", + cudaGetErrorString(err)); + } +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated.h b/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated.h new file mode 100755 index 0000000..12aca38 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated.h @@ -0,0 +1,39 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once +#include + +namespace detectron2 { + +at::Tensor nms_rotated_cpu( + const at::Tensor& dets, + const at::Tensor& scores, + const double iou_threshold); + +#if defined(WITH_CUDA) || defined(WITH_HIP) +at::Tensor nms_rotated_cuda( + const at::Tensor& dets, + const at::Tensor& scores, + const double iou_threshold); +#endif + +// Interface for Python +// inline is needed to prevent multiple function definitions when this header is +// included by different cpps +inline at::Tensor nms_rotated( + const at::Tensor& dets, + const at::Tensor& scores, + const double iou_threshold) { + assert(dets.device().is_cuda() == scores.device().is_cuda()); + if (dets.device().is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + return nms_rotated_cuda( + dets.contiguous(), scores.contiguous(), iou_threshold); +#else + AT_ERROR("Detectron2 is not compiled with GPU support!"); +#endif + } + + return nms_rotated_cpu(dets.contiguous(), scores.contiguous(), iou_threshold); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.cpp b/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.cpp new file mode 100755 index 0000000..d7556e6 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cpu.cpp @@ -0,0 +1,75 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include "../box_iou_rotated/box_iou_rotated_utils.h" +#include "nms_rotated.h" + +namespace detectron2 { + +template +at::Tensor nms_rotated_cpu_kernel( + const at::Tensor& dets, + const at::Tensor& scores, + const double iou_threshold) { + // nms_rotated_cpu_kernel is modified from torchvision's nms_cpu_kernel, + // however, the code in this function is much shorter because + // we delegate the IoU computation for rotated boxes to + // the single_box_iou_rotated function in box_iou_rotated_utils.h + AT_ASSERTM(dets.device().is_cpu(), "dets must be a CPU tensor"); + AT_ASSERTM(scores.device().is_cpu(), "scores must be a CPU tensor"); + AT_ASSERTM( + dets.scalar_type() == scores.scalar_type(), + "dets should have the same type as scores"); + + if (dets.numel() == 0) { + return at::empty({0}, dets.options().dtype(at::kLong)); + } + + auto order_t = std::get<1>(scores.sort(0, /* descending=*/true)); + + auto ndets = dets.size(0); + at::Tensor suppressed_t = at::zeros({ndets}, dets.options().dtype(at::kByte)); + at::Tensor keep_t = at::zeros({ndets}, dets.options().dtype(at::kLong)); + + auto suppressed = suppressed_t.data_ptr(); + auto keep = keep_t.data_ptr(); + auto order = order_t.data_ptr(); + + int64_t num_to_keep = 0; + + for (int64_t _i = 0; _i < ndets; _i++) { + auto i = order[_i]; + if (suppressed[i] == 1) { + continue; + } + + keep[num_to_keep++] = i; + + for (int64_t _j = _i + 1; _j < ndets; _j++) { + auto j = order[_j]; + if (suppressed[j] == 1) { + continue; + } + + auto ovr = single_box_iou_rotated( + dets[i].data_ptr(), dets[j].data_ptr()); + if (ovr >= iou_threshold) { + suppressed[j] = 1; + } + } + } + return keep_t.narrow(/*dim=*/0, /*start=*/0, /*length=*/num_to_keep); +} + +at::Tensor nms_rotated_cpu( + // input must be contiguous + const at::Tensor& dets, + const at::Tensor& scores, + const double iou_threshold) { + auto result = at::empty({0}, dets.options()); + + AT_DISPATCH_FLOATING_TYPES(dets.scalar_type(), "nms_rotated", [&] { + result = nms_rotated_cpu_kernel(dets, scores, iou_threshold); + }); + return result; +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu b/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu new file mode 100755 index 0000000..2a3db5c --- /dev/null +++ b/detectron2/detectron2/layers/csrc/nms_rotated/nms_rotated_cuda.cu @@ -0,0 +1,145 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include +#include +#include +#include +#ifdef WITH_CUDA +#include "../box_iou_rotated/box_iou_rotated_utils.h" +#endif +// TODO avoid this when pytorch supports "same directory" hipification +#ifdef WITH_HIP +#include "box_iou_rotated/box_iou_rotated_utils.h" +#endif + +using namespace detectron2; + +namespace { +int const threadsPerBlock = sizeof(unsigned long long) * 8; +} + +template +__global__ void nms_rotated_cuda_kernel( + const int n_boxes, + const double iou_threshold, + const T* dev_boxes, + unsigned long long* dev_mask) { + // nms_rotated_cuda_kernel is modified from torchvision's nms_cuda_kernel + + const int row_start = blockIdx.y; + const int col_start = blockIdx.x; + + // if (row_start > col_start) return; + + const int row_size = + min(n_boxes - row_start * threadsPerBlock, threadsPerBlock); + const int col_size = + min(n_boxes - col_start * threadsPerBlock, threadsPerBlock); + + // Compared to nms_cuda_kernel, where each box is represented with 4 values + // (x1, y1, x2, y2), each rotated box is represented with 5 values + // (x_center, y_center, width, height, angle_degrees) here. + __shared__ T block_boxes[threadsPerBlock * 5]; + if (threadIdx.x < col_size) { + block_boxes[threadIdx.x * 5 + 0] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 5 + 0]; + block_boxes[threadIdx.x * 5 + 1] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 5 + 1]; + block_boxes[threadIdx.x * 5 + 2] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 5 + 2]; + block_boxes[threadIdx.x * 5 + 3] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 5 + 3]; + block_boxes[threadIdx.x * 5 + 4] = + dev_boxes[(threadsPerBlock * col_start + threadIdx.x) * 5 + 4]; + } + __syncthreads(); + + if (threadIdx.x < row_size) { + const int cur_box_idx = threadsPerBlock * row_start + threadIdx.x; + const T* cur_box = dev_boxes + cur_box_idx * 5; + int i = 0; + unsigned long long t = 0; + int start = 0; + if (row_start == col_start) { + start = threadIdx.x + 1; + } + for (i = start; i < col_size; i++) { + // Instead of devIoU used by original horizontal nms, here + // we use the single_box_iou_rotated function from box_iou_rotated_utils.h + if (single_box_iou_rotated(cur_box, block_boxes + i * 5) > + iou_threshold) { + t |= 1ULL << i; + } + } + const int col_blocks = at::cuda::ATenCeilDiv(n_boxes, threadsPerBlock); + dev_mask[cur_box_idx * col_blocks + col_start] = t; + } +} + +namespace detectron2 { + +at::Tensor nms_rotated_cuda( + // input must be contiguous + const at::Tensor& dets, + const at::Tensor& scores, + double iou_threshold) { + // using scalar_t = float; + AT_ASSERTM(dets.is_cuda(), "dets must be a CUDA tensor"); + AT_ASSERTM(scores.is_cuda(), "scores must be a CUDA tensor"); + at::cuda::CUDAGuard device_guard(dets.device()); + + auto order_t = std::get<1>(scores.sort(0, /* descending=*/true)); + auto dets_sorted = dets.index_select(0, order_t); + + auto dets_num = dets.size(0); + + const int col_blocks = + at::cuda::ATenCeilDiv(static_cast(dets_num), threadsPerBlock); + + at::Tensor mask = + at::empty({dets_num * col_blocks}, dets.options().dtype(at::kLong)); + + dim3 blocks(col_blocks, col_blocks); + dim3 threads(threadsPerBlock); + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + AT_DISPATCH_FLOATING_TYPES( + dets_sorted.scalar_type(), "nms_rotated_kernel_cuda", [&] { + nms_rotated_cuda_kernel<<>>( + dets_num, + iou_threshold, + dets_sorted.data_ptr(), + (unsigned long long*)mask.data_ptr()); + }); + + at::Tensor mask_cpu = mask.to(at::kCPU); + unsigned long long* mask_host = + (unsigned long long*)mask_cpu.data_ptr(); + + std::vector remv(col_blocks); + memset(&remv[0], 0, sizeof(unsigned long long) * col_blocks); + + at::Tensor keep = + at::empty({dets_num}, dets.options().dtype(at::kLong).device(at::kCPU)); + int64_t* keep_out = keep.data_ptr(); + + int num_to_keep = 0; + for (int i = 0; i < dets_num; i++) { + int nblock = i / threadsPerBlock; + int inblock = i % threadsPerBlock; + + if (!(remv[nblock] & (1ULL << inblock))) { + keep_out[num_to_keep++] = i; + unsigned long long* p = mask_host + i * col_blocks; + for (int j = nblock; j < col_blocks; j++) { + remv[j] |= p[j]; + } + } + } + + AT_CUDA_CHECK(cudaGetLastError()); + return order_t.index( + {keep.narrow(/*dim=*/0, /*start=*/0, /*length=*/num_to_keep) + .to(order_t.device(), keep.scalar_type())}); +} + +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/csrc/vision.cpp b/detectron2/detectron2/layers/csrc/vision.cpp new file mode 100755 index 0000000..c9a2cd4 --- /dev/null +++ b/detectron2/detectron2/layers/csrc/vision.cpp @@ -0,0 +1,117 @@ +// Copyright (c) Facebook, Inc. and its affiliates. + +#include +#include "ROIAlignRotated/ROIAlignRotated.h" +#include "box_iou_rotated/box_iou_rotated.h" +#include "cocoeval/cocoeval.h" +#include "deformable/deform_conv.h" +#include "nms_rotated/nms_rotated.h" + +namespace detectron2 { + +#if defined(WITH_CUDA) || defined(WITH_HIP) +extern int get_cudart_version(); +#endif + +std::string get_cuda_version() { +#if defined(WITH_CUDA) || defined(WITH_HIP) + std::ostringstream oss; + +#if defined(WITH_CUDA) + oss << "CUDA "; +#else + oss << "HIP "; +#endif + + // copied from + // https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/cuda/detail/CUDAHooks.cpp#L231 + auto printCudaStyleVersion = [&](int v) { + oss << (v / 1000) << "." << (v / 10 % 100); + if (v % 10 != 0) { + oss << "." << (v % 10); + } + }; + printCudaStyleVersion(get_cudart_version()); + return oss.str(); +#else // neither CUDA nor HIP + return std::string("not available"); +#endif +} + +bool has_cuda() { +#if defined(WITH_CUDA) + return true; +#else + return false; +#endif +} + +// similar to +// https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/Version.cpp +std::string get_compiler_version() { + std::ostringstream ss; +#if defined(__GNUC__) +#ifndef __clang__ + +#if ((__GNUC__ <= 4) && (__GNUC_MINOR__ <= 8)) +#error "GCC >= 4.9 is required!" +#endif + + { ss << "GCC " << __GNUC__ << "." << __GNUC_MINOR__; } +#endif +#endif + +#if defined(__clang_major__) + { + ss << "clang " << __clang_major__ << "." << __clang_minor__ << "." + << __clang_patchlevel__; + } +#endif + +#if defined(_MSC_VER) + { ss << "MSVC " << _MSC_FULL_VER; } +#endif + return ss.str(); +} + +PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { + m.def("get_compiler_version", &get_compiler_version, "get_compiler_version"); + m.def("get_cuda_version", &get_cuda_version, "get_cuda_version"); + m.def("has_cuda", &has_cuda, "has_cuda"); + + m.def("deform_conv_forward", &deform_conv_forward, "deform_conv_forward"); + m.def( + "deform_conv_backward_input", + &deform_conv_backward_input, + "deform_conv_backward_input"); + m.def( + "deform_conv_backward_filter", + &deform_conv_backward_filter, + "deform_conv_backward_filter"); + m.def( + "modulated_deform_conv_forward", + &modulated_deform_conv_forward, + "modulated_deform_conv_forward"); + m.def( + "modulated_deform_conv_backward", + &modulated_deform_conv_backward, + "modulated_deform_conv_backward"); + + m.def("COCOevalAccumulate", &COCOeval::Accumulate, "COCOeval::Accumulate"); + m.def( + "COCOevalEvaluateImages", + &COCOeval::EvaluateImages, + "COCOeval::EvaluateImages"); + pybind11::class_(m, "InstanceAnnotation") + .def(pybind11::init()); + pybind11::class_(m, "ImageEvaluation") + .def(pybind11::init<>()); +} + +TORCH_LIBRARY(detectron2, m) { + m.def("nms_rotated", &nms_rotated); + m.def("box_iou_rotated", &box_iou_rotated); + m.def("roi_align_rotated_forward", &ROIAlignRotated_forward); + m.def("roi_align_rotated_backward", &ROIAlignRotated_backward); +} +} // namespace detectron2 diff --git a/detectron2/detectron2/layers/deform_conv.py b/detectron2/detectron2/layers/deform_conv.py new file mode 100755 index 0000000..dffb720 --- /dev/null +++ b/detectron2/detectron2/layers/deform_conv.py @@ -0,0 +1,514 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +from functools import lru_cache +import torch +from torch import nn +from torch.autograd import Function +from torch.autograd.function import once_differentiable +from torch.nn.modules.utils import _pair +from torchvision.ops import deform_conv2d + +from detectron2.utils.develop import create_dummy_class, create_dummy_func + +from .wrappers import _NewEmptyTensorOp + + +class _DeformConv(Function): + @staticmethod + def forward( + ctx, + input, + offset, + weight, + stride=1, + padding=0, + dilation=1, + groups=1, + deformable_groups=1, + im2col_step=64, + ): + if input is not None and input.dim() != 4: + raise ValueError( + "Expected 4D tensor as input, got {}D tensor instead.".format(input.dim()) + ) + ctx.stride = _pair(stride) + ctx.padding = _pair(padding) + ctx.dilation = _pair(dilation) + ctx.groups = groups + ctx.deformable_groups = deformable_groups + ctx.im2col_step = im2col_step + + ctx.save_for_backward(input, offset, weight) + + output = input.new_empty( + _DeformConv._output_size(input, weight, ctx.padding, ctx.dilation, ctx.stride) + ) + + ctx.bufs_ = [input.new_empty(0), input.new_empty(0)] # columns, ones + + if not input.is_cuda: + # TODO: let torchvision support full features of our deformconv. + if deformable_groups != 1: + raise NotImplementedError( + "Deformable Conv with deformable_groups != 1 is not supported on CPUs!" + ) + return deform_conv2d( + input, offset, weight, stride=stride, padding=padding, dilation=dilation + ) + else: + cur_im2col_step = _DeformConv._cal_im2col_step(input.shape[0], ctx.im2col_step) + assert (input.shape[0] % cur_im2col_step) == 0, "im2col step must divide batchsize" + + _C.deform_conv_forward( + input, + weight, + offset, + output, + ctx.bufs_[0], + ctx.bufs_[1], + weight.size(3), + weight.size(2), + ctx.stride[1], + ctx.stride[0], + ctx.padding[1], + ctx.padding[0], + ctx.dilation[1], + ctx.dilation[0], + ctx.groups, + ctx.deformable_groups, + cur_im2col_step, + ) + return output + + @staticmethod + @once_differentiable + def backward(ctx, grad_output): + input, offset, weight = ctx.saved_tensors + + grad_input = grad_offset = grad_weight = None + + if not grad_output.is_cuda: + raise NotImplementedError("Deformable Conv is not supported on CPUs!") + else: + cur_im2col_step = _DeformConv._cal_im2col_step(input.shape[0], ctx.im2col_step) + assert (input.shape[0] % cur_im2col_step) == 0, "im2col step must divide batchsize" + + if ctx.needs_input_grad[0] or ctx.needs_input_grad[1]: + grad_input = torch.zeros_like(input) + grad_offset = torch.zeros_like(offset) + _C.deform_conv_backward_input( + input, + offset, + grad_output, + grad_input, + grad_offset, + weight, + ctx.bufs_[0], + weight.size(3), + weight.size(2), + ctx.stride[1], + ctx.stride[0], + ctx.padding[1], + ctx.padding[0], + ctx.dilation[1], + ctx.dilation[0], + ctx.groups, + ctx.deformable_groups, + cur_im2col_step, + ) + + if ctx.needs_input_grad[2]: + grad_weight = torch.zeros_like(weight) + _C.deform_conv_backward_filter( + input, + offset, + grad_output, + grad_weight, + ctx.bufs_[0], + ctx.bufs_[1], + weight.size(3), + weight.size(2), + ctx.stride[1], + ctx.stride[0], + ctx.padding[1], + ctx.padding[0], + ctx.dilation[1], + ctx.dilation[0], + ctx.groups, + ctx.deformable_groups, + 1, + cur_im2col_step, + ) + + return grad_input, grad_offset, grad_weight, None, None, None, None, None, None + + @staticmethod + def _output_size(input, weight, padding, dilation, stride): + channels = weight.size(0) + output_size = (input.size(0), channels) + for d in range(input.dim() - 2): + in_size = input.size(d + 2) + pad = padding[d] + kernel = dilation[d] * (weight.size(d + 2) - 1) + 1 + stride_ = stride[d] + output_size += ((in_size + (2 * pad) - kernel) // stride_ + 1,) + if not all(map(lambda s: s > 0, output_size)): + raise ValueError( + "convolution input is too small (output would be {})".format( + "x".join(map(str, output_size)) + ) + ) + return output_size + + @staticmethod + @lru_cache(maxsize=128) + def _cal_im2col_step(input_size, default_size): + """ + Calculate proper im2col step size, which should be divisible by input_size and not larger + than prefer_size. Meanwhile the step size should be as large as possible to be more + efficient. So we choose the largest one among all divisors of input_size which are smaller + than prefer_size. + :param input_size: input batch size . + :param default_size: default preferred im2col step size. + :return: the largest proper step size. + """ + if input_size <= default_size: + return input_size + best_step = 1 + for step in range(2, min(int(math.sqrt(input_size)) + 1, default_size)): + if input_size % step == 0: + if input_size // step <= default_size: + return input_size // step + best_step = step + + return best_step + + +class _ModulatedDeformConv(Function): + @staticmethod + def forward( + ctx, + input, + offset, + mask, + weight, + bias=None, + stride=1, + padding=0, + dilation=1, + groups=1, + deformable_groups=1, + ): + ctx.stride = stride + ctx.padding = padding + ctx.dilation = dilation + ctx.groups = groups + ctx.deformable_groups = deformable_groups + ctx.with_bias = bias is not None + if not ctx.with_bias: + bias = input.new_empty(1) # fake tensor + if not input.is_cuda: + raise NotImplementedError("Deformable Conv is not supported on CPUs!") + if ( + weight.requires_grad + or mask.requires_grad + or offset.requires_grad + or input.requires_grad + ): + ctx.save_for_backward(input, offset, mask, weight, bias) + output = input.new_empty(_ModulatedDeformConv._infer_shape(ctx, input, weight)) + ctx._bufs = [input.new_empty(0), input.new_empty(0)] + _C.modulated_deform_conv_forward( + input, + weight, + bias, + ctx._bufs[0], + offset, + mask, + output, + ctx._bufs[1], + weight.shape[2], + weight.shape[3], + ctx.stride, + ctx.stride, + ctx.padding, + ctx.padding, + ctx.dilation, + ctx.dilation, + ctx.groups, + ctx.deformable_groups, + ctx.with_bias, + ) + return output + + @staticmethod + @once_differentiable + def backward(ctx, grad_output): + if not grad_output.is_cuda: + raise NotImplementedError("Deformable Conv is not supported on CPUs!") + input, offset, mask, weight, bias = ctx.saved_tensors + grad_input = torch.zeros_like(input) + grad_offset = torch.zeros_like(offset) + grad_mask = torch.zeros_like(mask) + grad_weight = torch.zeros_like(weight) + grad_bias = torch.zeros_like(bias) + _C.modulated_deform_conv_backward( + input, + weight, + bias, + ctx._bufs[0], + offset, + mask, + ctx._bufs[1], + grad_input, + grad_weight, + grad_bias, + grad_offset, + grad_mask, + grad_output, + weight.shape[2], + weight.shape[3], + ctx.stride, + ctx.stride, + ctx.padding, + ctx.padding, + ctx.dilation, + ctx.dilation, + ctx.groups, + ctx.deformable_groups, + ctx.with_bias, + ) + if not ctx.with_bias: + grad_bias = None + + return ( + grad_input, + grad_offset, + grad_mask, + grad_weight, + grad_bias, + None, + None, + None, + None, + None, + ) + + @staticmethod + def _infer_shape(ctx, input, weight): + n = input.size(0) + channels_out = weight.size(0) + height, width = input.shape[2:4] + kernel_h, kernel_w = weight.shape[2:4] + height_out = ( + height + 2 * ctx.padding - (ctx.dilation * (kernel_h - 1) + 1) + ) // ctx.stride + 1 + width_out = ( + width + 2 * ctx.padding - (ctx.dilation * (kernel_w - 1) + 1) + ) // ctx.stride + 1 + return n, channels_out, height_out, width_out + + +deform_conv = _DeformConv.apply +modulated_deform_conv = _ModulatedDeformConv.apply + + +class DeformConv(nn.Module): + def __init__( + self, + in_channels, + out_channels, + kernel_size, + stride=1, + padding=0, + dilation=1, + groups=1, + deformable_groups=1, + bias=False, + norm=None, + activation=None, + ): + """ + Deformable convolution from :paper:`deformconv`. + + Arguments are similar to :class:`Conv2D`. Extra arguments: + + Args: + deformable_groups (int): number of groups used in deformable convolution. + norm (nn.Module, optional): a normalization layer + activation (callable(Tensor) -> Tensor): a callable activation function + """ + super(DeformConv, self).__init__() + + assert not bias + assert in_channels % groups == 0, "in_channels {} cannot be divisible by groups {}".format( + in_channels, groups + ) + assert ( + out_channels % groups == 0 + ), "out_channels {} cannot be divisible by groups {}".format(out_channels, groups) + + self.in_channels = in_channels + self.out_channels = out_channels + self.kernel_size = _pair(kernel_size) + self.stride = _pair(stride) + self.padding = _pair(padding) + self.dilation = _pair(dilation) + self.groups = groups + self.deformable_groups = deformable_groups + self.norm = norm + self.activation = activation + + self.weight = nn.Parameter( + torch.Tensor(out_channels, in_channels // self.groups, *self.kernel_size) + ) + self.bias = None + + nn.init.kaiming_uniform_(self.weight, nonlinearity="relu") + + def forward(self, x, offset): + if x.numel() == 0: + # When input is empty, we want to return a empty tensor with "correct" shape, + # So that the following operations will not panic + # if they check for the shape of the tensor. + # This computes the height and width of the output tensor + output_shape = [ + (i + 2 * p - (di * (k - 1) + 1)) // s + 1 + for i, p, di, k, s in zip( + x.shape[-2:], self.padding, self.dilation, self.kernel_size, self.stride + ) + ] + output_shape = [x.shape[0], self.weight.shape[0]] + output_shape + return _NewEmptyTensorOp.apply(x, output_shape) + + x = deform_conv( + x, + offset, + self.weight, + self.stride, + self.padding, + self.dilation, + self.groups, + self.deformable_groups, + ) + if self.norm is not None: + x = self.norm(x) + if self.activation is not None: + x = self.activation(x) + return x + + def extra_repr(self): + tmpstr = "in_channels=" + str(self.in_channels) + tmpstr += ", out_channels=" + str(self.out_channels) + tmpstr += ", kernel_size=" + str(self.kernel_size) + tmpstr += ", stride=" + str(self.stride) + tmpstr += ", padding=" + str(self.padding) + tmpstr += ", dilation=" + str(self.dilation) + tmpstr += ", groups=" + str(self.groups) + tmpstr += ", deformable_groups=" + str(self.deformable_groups) + tmpstr += ", bias=False" + return tmpstr + + +class ModulatedDeformConv(nn.Module): + def __init__( + self, + in_channels, + out_channels, + kernel_size, + stride=1, + padding=0, + dilation=1, + groups=1, + deformable_groups=1, + bias=True, + norm=None, + activation=None, + ): + """ + Modulated deformable convolution from :paper:`deformconv2`. + + Arguments are similar to :class:`Conv2D`. Extra arguments: + + Args: + deformable_groups (int): number of groups used in deformable convolution. + norm (nn.Module, optional): a normalization layer + activation (callable(Tensor) -> Tensor): a callable activation function + """ + super(ModulatedDeformConv, self).__init__() + self.in_channels = in_channels + self.out_channels = out_channels + self.kernel_size = _pair(kernel_size) + self.stride = stride + self.padding = padding + self.dilation = dilation + self.groups = groups + self.deformable_groups = deformable_groups + self.with_bias = bias + self.norm = norm + self.activation = activation + + self.weight = nn.Parameter( + torch.Tensor(out_channels, in_channels // groups, *self.kernel_size) + ) + if bias: + self.bias = nn.Parameter(torch.Tensor(out_channels)) + else: + self.bias = None + + nn.init.kaiming_uniform_(self.weight, nonlinearity="relu") + if self.bias is not None: + nn.init.constant_(self.bias, 0) + + def forward(self, x, offset, mask): + if x.numel() == 0: + output_shape = [ + (i + 2 * p - (di * (k - 1) + 1)) // s + 1 + for i, p, di, k, s in zip( + x.shape[-2:], self.padding, self.dilation, self.kernel_size, self.stride + ) + ] + output_shape = [x.shape[0], self.weight.shape[0]] + output_shape + return _NewEmptyTensorOp.apply(x, output_shape) + + x = modulated_deform_conv( + x, + offset, + mask, + self.weight, + self.bias, + self.stride, + self.padding, + self.dilation, + self.groups, + self.deformable_groups, + ) + if self.norm is not None: + x = self.norm(x) + if self.activation is not None: + x = self.activation(x) + return x + + def extra_repr(self): + tmpstr = "in_channels=" + str(self.in_channels) + tmpstr += ", out_channels=" + str(self.out_channels) + tmpstr += ", kernel_size=" + str(self.kernel_size) + tmpstr += ", stride=" + str(self.stride) + tmpstr += ", padding=" + str(self.padding) + tmpstr += ", dilation=" + str(self.dilation) + tmpstr += ", groups=" + str(self.groups) + tmpstr += ", deformable_groups=" + str(self.deformable_groups) + tmpstr += ", bias=" + str(self.with_bias) + return tmpstr + + +try: + from detectron2 import _C +except ImportError: + # TODO: register ops natively so there is no need to import _C. + _msg = "detectron2 is not compiled successfully, please build following the instructions!" + _args = ("detectron2._C", _msg) + DeformConv = create_dummy_class("DeformConv", *_args) + ModulatedDeformConv = create_dummy_class("ModulatedDeformConv", *_args) + deform_conv = create_dummy_func("deform_conv", *_args) + modulated_deform_conv = create_dummy_func("modulated_deform_conv", *_args) diff --git a/detectron2/detectron2/layers/losses.py b/detectron2/detectron2/layers/losses.py new file mode 100755 index 0000000..850a852 --- /dev/null +++ b/detectron2/detectron2/layers/losses.py @@ -0,0 +1,133 @@ +import math +import torch + + +def diou_loss( + boxes1: torch.Tensor, + boxes2: torch.Tensor, + reduction: str = "none", + eps: float = 1e-7, +) -> torch.Tensor: + """ + Distance Intersection over Union Loss (Zhaohui Zheng et. al) + https://arxiv.org/abs/1911.08287 + Args: + boxes1, boxes2 (Tensor): box locations in XYXY format, shape (N, 4) or (4,). + reduction: 'none' | 'mean' | 'sum' + 'none': No reduction will be applied to the output. + 'mean': The output will be averaged. + 'sum': The output will be summed. + eps (float): small number to prevent division by zero + """ + + x1, y1, x2, y2 = boxes1.unbind(dim=-1) + x1g, y1g, x2g, y2g = boxes2.unbind(dim=-1) + + # TODO: use torch._assert_async() when pytorch 1.8 support is dropped + assert (x2 >= x1).all(), "bad box: x1 larger than x2" + assert (y2 >= y1).all(), "bad box: y1 larger than y2" + + # Intersection keypoints + xkis1 = torch.max(x1, x1g) + ykis1 = torch.max(y1, y1g) + xkis2 = torch.min(x2, x2g) + ykis2 = torch.min(y2, y2g) + + intsct = torch.zeros_like(x1) + mask = (ykis2 > ykis1) & (xkis2 > xkis1) + intsct[mask] = (xkis2[mask] - xkis1[mask]) * (ykis2[mask] - ykis1[mask]) + union = (x2 - x1) * (y2 - y1) + (x2g - x1g) * (y2g - y1g) - intsct + eps + iou = intsct / union + + # smallest enclosing box + xc1 = torch.min(x1, x1g) + yc1 = torch.min(y1, y1g) + xc2 = torch.max(x2, x2g) + yc2 = torch.max(y2, y2g) + diag_len = ((xc2 - xc1) ** 2) + ((yc2 - yc1) ** 2) + eps + + # centers of boxes + x_p = (x2 + x1) / 2 + y_p = (y2 + y1) / 2 + x_g = (x1g + x2g) / 2 + y_g = (y1g + y2g) / 2 + distance = ((x_p - x_g) ** 2) + ((y_p - y_g) ** 2) + + # Eqn. (7) + loss = 1 - iou + (distance / diag_len) + if reduction == "mean": + loss = loss.mean() if loss.numel() > 0 else 0.0 * loss.sum() + elif reduction == "sum": + loss = loss.sum() + + return loss + + +def ciou_loss( + boxes1: torch.Tensor, + boxes2: torch.Tensor, + reduction: str = "none", + eps: float = 1e-7, +) -> torch.Tensor: + """ + Complete Intersection over Union Loss (Zhaohui Zheng et. al) + https://arxiv.org/abs/1911.08287 + Args: + boxes1, boxes2 (Tensor): box locations in XYXY format, shape (N, 4) or (4,). + reduction: 'none' | 'mean' | 'sum' + 'none': No reduction will be applied to the output. + 'mean': The output will be averaged. + 'sum': The output will be summed. + eps (float): small number to prevent division by zero + """ + + x1, y1, x2, y2 = boxes1.unbind(dim=-1) + x1g, y1g, x2g, y2g = boxes2.unbind(dim=-1) + + # TODO: use torch._assert_async() when pytorch 1.8 support is dropped + assert (x2 >= x1).all(), "bad box: x1 larger than x2" + assert (y2 >= y1).all(), "bad box: y1 larger than y2" + + # Intersection keypoints + xkis1 = torch.max(x1, x1g) + ykis1 = torch.max(y1, y1g) + xkis2 = torch.min(x2, x2g) + ykis2 = torch.min(y2, y2g) + + intsct = torch.zeros_like(x1) + mask = (ykis2 > ykis1) & (xkis2 > xkis1) + intsct[mask] = (xkis2[mask] - xkis1[mask]) * (ykis2[mask] - ykis1[mask]) + union = (x2 - x1) * (y2 - y1) + (x2g - x1g) * (y2g - y1g) - intsct + eps + iou = intsct / union + + # smallest enclosing box + xc1 = torch.min(x1, x1g) + yc1 = torch.min(y1, y1g) + xc2 = torch.max(x2, x2g) + yc2 = torch.max(y2, y2g) + diag_len = ((xc2 - xc1) ** 2) + ((yc2 - yc1) ** 2) + eps + + # centers of boxes + x_p = (x2 + x1) / 2 + y_p = (y2 + y1) / 2 + x_g = (x1g + x2g) / 2 + y_g = (y1g + y2g) / 2 + distance = ((x_p - x_g) ** 2) + ((y_p - y_g) ** 2) + + # width and height of boxes + w_pred = x2 - x1 + h_pred = y2 - y1 + w_gt = x2g - x1g + h_gt = y2g - y1g + v = (4 / (math.pi**2)) * torch.pow((torch.atan(w_gt / h_gt) - torch.atan(w_pred / h_pred)), 2) + with torch.no_grad(): + alpha = v / (1 - iou + v + eps) + + # Eqn. (10) + loss = 1 - iou + (distance / diag_len) + alpha * v + if reduction == "mean": + loss = loss.mean() if loss.numel() > 0 else 0.0 * loss.sum() + elif reduction == "sum": + loss = loss.sum() + + return loss diff --git a/detectron2/detectron2/layers/mask_ops.py b/detectron2/detectron2/layers/mask_ops.py new file mode 100755 index 0000000..990d04a --- /dev/null +++ b/detectron2/detectron2/layers/mask_ops.py @@ -0,0 +1,275 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Tuple +import torch +from PIL import Image +from torch.nn import functional as F + +__all__ = ["paste_masks_in_image"] + + +BYTES_PER_FLOAT = 4 +# TODO: This memory limit may be too much or too little. It would be better to +# determine it based on available resources. +GPU_MEM_LIMIT = 1024**3 # 1 GB memory limit + + +def _do_paste_mask(masks, boxes, img_h: int, img_w: int, skip_empty: bool = True): + """ + Args: + masks: N, 1, H, W + boxes: N, 4 + img_h, img_w (int): + skip_empty (bool): only paste masks within the region that + tightly bound all boxes, and returns the results this region only. + An important optimization for CPU. + + Returns: + if skip_empty == False, a mask of shape (N, img_h, img_w) + if skip_empty == True, a mask of shape (N, h', w'), and the slice + object for the corresponding region. + """ + # On GPU, paste all masks together (up to chunk size) + # by using the entire image to sample the masks + # Compared to pasting them one by one, + # this has more operations but is faster on COCO-scale dataset. + device = masks.device + + if skip_empty and not torch.jit.is_scripting(): + x0_int, y0_int = torch.clamp(boxes.min(dim=0).values.floor()[:2] - 1, min=0).to( + dtype=torch.int32 + ) + x1_int = torch.clamp(boxes[:, 2].max().ceil() + 1, max=img_w).to(dtype=torch.int32) + y1_int = torch.clamp(boxes[:, 3].max().ceil() + 1, max=img_h).to(dtype=torch.int32) + else: + x0_int, y0_int = 0, 0 + x1_int, y1_int = img_w, img_h + x0, y0, x1, y1 = torch.split(boxes, 1, dim=1) # each is Nx1 + + N = masks.shape[0] + + img_y = torch.arange(y0_int, y1_int, device=device, dtype=torch.float32) + 0.5 + img_x = torch.arange(x0_int, x1_int, device=device, dtype=torch.float32) + 0.5 + img_y = (img_y - y0) / (y1 - y0) * 2 - 1 + img_x = (img_x - x0) / (x1 - x0) * 2 - 1 + # img_x, img_y have shapes (N, w), (N, h) + + gx = img_x[:, None, :].expand(N, img_y.size(1), img_x.size(1)) + gy = img_y[:, :, None].expand(N, img_y.size(1), img_x.size(1)) + grid = torch.stack([gx, gy], dim=3) + + if not torch.jit.is_scripting(): + if not masks.dtype.is_floating_point: + masks = masks.float() + img_masks = F.grid_sample(masks, grid.to(masks.dtype), align_corners=False) + + if skip_empty and not torch.jit.is_scripting(): + return img_masks[:, 0], (slice(y0_int, y1_int), slice(x0_int, x1_int)) + else: + return img_masks[:, 0], () + + +# Annotate boxes as Tensor (but not Boxes) in order to use scripting +@torch.jit.script_if_tracing +def paste_masks_in_image( + masks: torch.Tensor, boxes: torch.Tensor, image_shape: Tuple[int, int], threshold: float = 0.5 +): + """ + Paste a set of masks that are of a fixed resolution (e.g., 28 x 28) into an image. + The location, height, and width for pasting each mask is determined by their + corresponding bounding boxes in boxes. + + Note: + This is a complicated but more accurate implementation. In actual deployment, it is + often enough to use a faster but less accurate implementation. + See :func:`paste_mask_in_image_old` in this file for an alternative implementation. + + Args: + masks (tensor): Tensor of shape (Bimg, Hmask, Wmask), where Bimg is the number of + detected object instances in the image and Hmask, Wmask are the mask width and mask + height of the predicted mask (e.g., Hmask = Wmask = 28). Values are in [0, 1]. + boxes (Boxes or Tensor): A Boxes of length Bimg or Tensor of shape (Bimg, 4). + boxes[i] and masks[i] correspond to the same object instance. + image_shape (tuple): height, width + threshold (float): A threshold in [0, 1] for converting the (soft) masks to + binary masks. + + Returns: + img_masks (Tensor): A tensor of shape (Bimg, Himage, Wimage), where Bimg is the + number of detected object instances and Himage, Wimage are the image width + and height. img_masks[i] is a binary mask for object instance i. + """ + + assert masks.shape[-1] == masks.shape[-2], "Only square mask predictions are supported" + N = len(masks) + if N == 0: + return masks.new_empty((0,) + image_shape, dtype=torch.uint8) + if not isinstance(boxes, torch.Tensor): + boxes = boxes.tensor + device = boxes.device + assert len(boxes) == N, boxes.shape + + img_h, img_w = image_shape + + # The actual implementation split the input into chunks, + # and paste them chunk by chunk. + if device.type == "cpu" or torch.jit.is_scripting(): + # CPU is most efficient when they are pasted one by one with skip_empty=True + # so that it performs minimal number of operations. + num_chunks = N + else: + # GPU benefits from parallelism for larger chunks, but may have memory issue + # int(img_h) because shape may be tensors in tracing + num_chunks = int(np.ceil(N * int(img_h) * int(img_w) * BYTES_PER_FLOAT / GPU_MEM_LIMIT)) + assert ( + num_chunks <= N + ), "Default GPU_MEM_LIMIT in mask_ops.py is too small; try increasing it" + chunks = torch.chunk(torch.arange(N, device=device), num_chunks) + + img_masks = torch.zeros( + N, img_h, img_w, device=device, dtype=torch.bool if threshold >= 0 else torch.uint8 + ) + for inds in chunks: + masks_chunk, spatial_inds = _do_paste_mask( + masks[inds, None, :, :], boxes[inds], img_h, img_w, skip_empty=device.type == "cpu" + ) + + if threshold >= 0: + masks_chunk = (masks_chunk >= threshold).to(dtype=torch.bool) + else: + # for visualization and debugging + masks_chunk = (masks_chunk * 255).to(dtype=torch.uint8) + + if torch.jit.is_scripting(): # Scripting does not use the optimized codepath + img_masks[inds] = masks_chunk + else: + img_masks[(inds,) + spatial_inds] = masks_chunk + return img_masks + + +# The below are the original paste function (from Detectron1) which has +# larger quantization error. +# It is faster on CPU, while the aligned one is faster on GPU thanks to grid_sample. + + +def paste_mask_in_image_old(mask, box, img_h, img_w, threshold): + """ + Paste a single mask in an image. + This is a per-box implementation of :func:`paste_masks_in_image`. + This function has larger quantization error due to incorrect pixel + modeling and is not used any more. + + Args: + mask (Tensor): A tensor of shape (Hmask, Wmask) storing the mask of a single + object instance. Values are in [0, 1]. + box (Tensor): A tensor of shape (4, ) storing the x0, y0, x1, y1 box corners + of the object instance. + img_h, img_w (int): Image height and width. + threshold (float): Mask binarization threshold in [0, 1]. + + Returns: + im_mask (Tensor): + The resized and binarized object mask pasted into the original + image plane (a tensor of shape (img_h, img_w)). + """ + # Conversion from continuous box coordinates to discrete pixel coordinates + # via truncation (cast to int32). This determines which pixels to paste the + # mask onto. + box = box.to(dtype=torch.int32) # Continuous to discrete coordinate conversion + # An example (1D) box with continuous coordinates (x0=0.7, x1=4.3) will map to + # a discrete coordinates (x0=0, x1=4). Note that box is mapped to 5 = x1 - x0 + 1 + # pixels (not x1 - x0 pixels). + samples_w = box[2] - box[0] + 1 # Number of pixel samples, *not* geometric width + samples_h = box[3] - box[1] + 1 # Number of pixel samples, *not* geometric height + + # Resample the mask from it's original grid to the new samples_w x samples_h grid + mask = Image.fromarray(mask.cpu().numpy()) + mask = mask.resize((samples_w, samples_h), resample=Image.BILINEAR) + mask = np.array(mask, copy=False) + + if threshold >= 0: + mask = np.array(mask > threshold, dtype=np.uint8) + mask = torch.from_numpy(mask) + else: + # for visualization and debugging, we also + # allow it to return an unmodified mask + mask = torch.from_numpy(mask * 255).to(torch.uint8) + + im_mask = torch.zeros((img_h, img_w), dtype=torch.uint8) + x_0 = max(box[0], 0) + x_1 = min(box[2] + 1, img_w) + y_0 = max(box[1], 0) + y_1 = min(box[3] + 1, img_h) + + im_mask[y_0:y_1, x_0:x_1] = mask[ + (y_0 - box[1]) : (y_1 - box[1]), (x_0 - box[0]) : (x_1 - box[0]) + ] + return im_mask + + +# Our pixel modeling requires extrapolation for any continuous +# coordinate < 0.5 or > length - 0.5. When sampling pixels on the masks, +# we would like this extrapolation to be an interpolation between boundary values and zero, +# instead of using absolute zero or boundary values. +# Therefore `paste_mask_in_image_old` is often used with zero padding around the masks like this: +# masks, scale = pad_masks(masks[:, 0, :, :], 1) +# boxes = scale_boxes(boxes.tensor, scale) + + +def pad_masks(masks, padding): + """ + Args: + masks (tensor): A tensor of shape (B, M, M) representing B masks. + padding (int): Number of cells to pad on all sides. + + Returns: + The padded masks and the scale factor of the padding size / original size. + """ + B = masks.shape[0] + M = masks.shape[-1] + pad2 = 2 * padding + scale = float(M + pad2) / M + padded_masks = masks.new_zeros((B, M + pad2, M + pad2)) + padded_masks[:, padding:-padding, padding:-padding] = masks + return padded_masks, scale + + +def scale_boxes(boxes, scale): + """ + Args: + boxes (tensor): A tensor of shape (B, 4) representing B boxes with 4 + coords representing the corners x0, y0, x1, y1, + scale (float): The box scaling factor. + + Returns: + Scaled boxes. + """ + w_half = (boxes[:, 2] - boxes[:, 0]) * 0.5 + h_half = (boxes[:, 3] - boxes[:, 1]) * 0.5 + x_c = (boxes[:, 2] + boxes[:, 0]) * 0.5 + y_c = (boxes[:, 3] + boxes[:, 1]) * 0.5 + + w_half *= scale + h_half *= scale + + scaled_boxes = torch.zeros_like(boxes) + scaled_boxes[:, 0] = x_c - w_half + scaled_boxes[:, 2] = x_c + w_half + scaled_boxes[:, 1] = y_c - h_half + scaled_boxes[:, 3] = y_c + h_half + return scaled_boxes + + +@torch.jit.script_if_tracing +def _paste_masks_tensor_shape( + masks: torch.Tensor, + boxes: torch.Tensor, + image_shape: Tuple[torch.Tensor, torch.Tensor], + threshold: float = 0.5, +): + """ + A wrapper of paste_masks_in_image where image_shape is Tensor. + During tracing, shapes might be tensors instead of ints. The Tensor->int + conversion should be scripted rather than traced. + """ + return paste_masks_in_image(masks, boxes, (int(image_shape[0]), int(image_shape[1])), threshold) diff --git a/detectron2/detectron2/layers/nms.py b/detectron2/detectron2/layers/nms.py new file mode 100755 index 0000000..1019e7f --- /dev/null +++ b/detectron2/detectron2/layers/nms.py @@ -0,0 +1,144 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import torch +from torchvision.ops import boxes as box_ops +from torchvision.ops import nms # noqa . for compatibility + + +def batched_nms( + boxes: torch.Tensor, scores: torch.Tensor, idxs: torch.Tensor, iou_threshold: float +): + """ + Same as torchvision.ops.boxes.batched_nms, but with float(). + """ + assert boxes.shape[-1] == 4 + # Note: Torchvision already has a strategy (https://github.com/pytorch/vision/issues/1311) + # to decide whether to use coordinate trick or for loop to implement batched_nms. So we + # just call it directly. + # Fp16 does not have enough range for batched NMS, so adding float(). + return box_ops.batched_nms(boxes.float(), scores, idxs, iou_threshold) + + +# Note: this function (nms_rotated) might be moved into +# torchvision/ops/boxes.py in the future +def nms_rotated(boxes: torch.Tensor, scores: torch.Tensor, iou_threshold: float): + """ + Performs non-maximum suppression (NMS) on the rotated boxes according + to their intersection-over-union (IoU). + + Rotated NMS iteratively removes lower scoring rotated boxes which have an + IoU greater than iou_threshold with another (higher scoring) rotated box. + + Note that RotatedBox (5, 3, 4, 2, -90) covers exactly the same region as + RotatedBox (5, 3, 4, 2, 90) does, and their IoU will be 1. However, they + can be representing completely different objects in certain tasks, e.g., OCR. + + As for the question of whether rotated-NMS should treat them as faraway boxes + even though their IOU is 1, it depends on the application and/or ground truth annotation. + + As an extreme example, consider a single character v and the square box around it. + + If the angle is 0 degree, the object (text) would be read as 'v'; + + If the angle is 90 degrees, the object (text) would become '>'; + + If the angle is 180 degrees, the object (text) would become '^'; + + If the angle is 270/-90 degrees, the object (text) would become '<' + + All of these cases have IoU of 1 to each other, and rotated NMS that only + uses IoU as criterion would only keep one of them with the highest score - + which, practically, still makes sense in most cases because typically + only one of theses orientations is the correct one. Also, it does not matter + as much if the box is only used to classify the object (instead of transcribing + them with a sequential OCR recognition model) later. + + On the other hand, when we use IoU to filter proposals that are close to the + ground truth during training, we should definitely take the angle into account if + we know the ground truth is labeled with the strictly correct orientation (as in, + upside-down words are annotated with -180 degrees even though they can be covered + with a 0/90/-90 degree box, etc.) + + The way the original dataset is annotated also matters. For example, if the dataset + is a 4-point polygon dataset that does not enforce ordering of vertices/orientation, + we can estimate a minimum rotated bounding box to this polygon, but there's no way + we can tell the correct angle with 100% confidence (as shown above, there could be 4 different + rotated boxes, with angles differed by 90 degrees to each other, covering the exactly + same region). In that case we have to just use IoU to determine the box + proximity (as many detection benchmarks (even for text) do) unless there're other + assumptions we can make (like width is always larger than height, or the object is not + rotated by more than 90 degrees CCW/CW, etc.) + + In summary, not considering angles in rotated NMS seems to be a good option for now, + but we should be aware of its implications. + + Args: + boxes (Tensor[N, 5]): Rotated boxes to perform NMS on. They are expected to be in + (x_center, y_center, width, height, angle_degrees) format. + scores (Tensor[N]): Scores for each one of the rotated boxes + iou_threshold (float): Discards all overlapping rotated boxes with IoU < iou_threshold + + Returns: + keep (Tensor): int64 tensor with the indices of the elements that have been kept + by Rotated NMS, sorted in decreasing order of scores + """ + return torch.ops.detectron2.nms_rotated(boxes, scores, iou_threshold) + + +# Note: this function (batched_nms_rotated) might be moved into +# torchvision/ops/boxes.py in the future + + +@torch.jit.script_if_tracing +def batched_nms_rotated( + boxes: torch.Tensor, scores: torch.Tensor, idxs: torch.Tensor, iou_threshold: float +): + """ + Performs non-maximum suppression in a batched fashion. + + Each index value correspond to a category, and NMS + will not be applied between elements of different categories. + + Args: + boxes (Tensor[N, 5]): + boxes where NMS will be performed. They + are expected to be in (x_ctr, y_ctr, width, height, angle_degrees) format + scores (Tensor[N]): + scores for each one of the boxes + idxs (Tensor[N]): + indices of the categories for each one of the boxes. + iou_threshold (float): + discards all overlapping boxes + with IoU < iou_threshold + + Returns: + Tensor: + int64 tensor with the indices of the elements that have been kept + by NMS, sorted in decreasing order of scores + """ + assert boxes.shape[-1] == 5 + + if boxes.numel() == 0: + return torch.empty((0,), dtype=torch.int64, device=boxes.device) + boxes = boxes.float() # fp16 does not have enough range for batched NMS + # Strategy: in order to perform NMS independently per class, + # we add an offset to all the boxes. The offset is dependent + # only on the class idx, and is large enough so that boxes + # from different classes do not overlap + + # Note that batched_nms in torchvision/ops/boxes.py only uses max_coordinate, + # which won't handle negative coordinates correctly. + # Here by using min_coordinate we can make sure the negative coordinates are + # correctly handled. + max_coordinate = ( + torch.max(boxes[:, 0], boxes[:, 1]) + torch.max(boxes[:, 2], boxes[:, 3]) / 2 + ).max() + min_coordinate = ( + torch.min(boxes[:, 0], boxes[:, 1]) - torch.max(boxes[:, 2], boxes[:, 3]) / 2 + ).min() + offsets = idxs.to(boxes) * (max_coordinate - min_coordinate + 1) + boxes_for_nms = boxes.clone() # avoid modifying the original values in boxes + boxes_for_nms[:, :2] += offsets[:, None] + keep = nms_rotated(boxes_for_nms, scores, iou_threshold) + return keep diff --git a/detectron2/detectron2/layers/roi_align.py b/detectron2/detectron2/layers/roi_align.py new file mode 100755 index 0000000..163462e --- /dev/null +++ b/detectron2/detectron2/layers/roi_align.py @@ -0,0 +1,74 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from torch import nn +from torchvision.ops import roi_align + + +# NOTE: torchvision's RoIAlign has a different default aligned=False +class ROIAlign(nn.Module): + def __init__(self, output_size, spatial_scale, sampling_ratio, aligned=True): + """ + Args: + output_size (tuple): h, w + spatial_scale (float): scale the input boxes by this number + sampling_ratio (int): number of inputs samples to take for each output + sample. 0 to take samples densely. + aligned (bool): if False, use the legacy implementation in + Detectron. If True, align the results more perfectly. + + Note: + The meaning of aligned=True: + + Given a continuous coordinate c, its two neighboring pixel indices (in our + pixel model) are computed by floor(c - 0.5) and ceil(c - 0.5). For example, + c=1.3 has pixel neighbors with discrete indices [0] and [1] (which are sampled + from the underlying signal at continuous coordinates 0.5 and 1.5). But the original + roi_align (aligned=False) does not subtract the 0.5 when computing neighboring + pixel indices and therefore it uses pixels with a slightly incorrect alignment + (relative to our pixel model) when performing bilinear interpolation. + + With `aligned=True`, + we first appropriately scale the ROI and then shift it by -0.5 + prior to calling roi_align. This produces the correct neighbors; see + detectron2/tests/test_roi_align.py for verification. + + The difference does not make a difference to the model's performance if + ROIAlign is used together with conv layers. + """ + super().__init__() + self.output_size = output_size + self.spatial_scale = spatial_scale + self.sampling_ratio = sampling_ratio + self.aligned = aligned + + from torchvision import __version__ + + version = tuple(int(x) for x in __version__.split(".")[:2]) + # https://github.com/pytorch/vision/pull/2438 + assert version >= (0, 7), "Require torchvision >= 0.7" + + def forward(self, input, rois): + """ + Args: + input: NCHW images + rois: Bx5 boxes. First column is the index into N. The other 4 columns are xyxy. + """ + assert rois.dim() == 2 and rois.size(1) == 5 + if input.is_quantized: + input = input.dequantize() + return roi_align( + input, + rois.to(dtype=input.dtype), + self.output_size, + self.spatial_scale, + self.sampling_ratio, + self.aligned, + ) + + def __repr__(self): + tmpstr = self.__class__.__name__ + "(" + tmpstr += "output_size=" + str(self.output_size) + tmpstr += ", spatial_scale=" + str(self.spatial_scale) + tmpstr += ", sampling_ratio=" + str(self.sampling_ratio) + tmpstr += ", aligned=" + str(self.aligned) + tmpstr += ")" + return tmpstr diff --git a/detectron2/detectron2/layers/roi_align_rotated.py b/detectron2/detectron2/layers/roi_align_rotated.py new file mode 100755 index 0000000..2a52399 --- /dev/null +++ b/detectron2/detectron2/layers/roi_align_rotated.py @@ -0,0 +1,100 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch +from torch import nn +from torch.autograd import Function +from torch.autograd.function import once_differentiable +from torch.nn.modules.utils import _pair + + +class _ROIAlignRotated(Function): + @staticmethod + def forward(ctx, input, roi, output_size, spatial_scale, sampling_ratio): + ctx.save_for_backward(roi) + ctx.output_size = _pair(output_size) + ctx.spatial_scale = spatial_scale + ctx.sampling_ratio = sampling_ratio + ctx.input_shape = input.size() + output = torch.ops.detectron2.roi_align_rotated_forward( + input, roi, spatial_scale, output_size[0], output_size[1], sampling_ratio + ) + return output + + @staticmethod + @once_differentiable + def backward(ctx, grad_output): + (rois,) = ctx.saved_tensors + output_size = ctx.output_size + spatial_scale = ctx.spatial_scale + sampling_ratio = ctx.sampling_ratio + bs, ch, h, w = ctx.input_shape + grad_input = torch.ops.detectron2.roi_align_rotated_backward( + grad_output, + rois, + spatial_scale, + output_size[0], + output_size[1], + bs, + ch, + h, + w, + sampling_ratio, + ) + return grad_input, None, None, None, None, None + + +roi_align_rotated = _ROIAlignRotated.apply + + +class ROIAlignRotated(nn.Module): + def __init__(self, output_size, spatial_scale, sampling_ratio): + """ + Args: + output_size (tuple): h, w + spatial_scale (float): scale the input boxes by this number + sampling_ratio (int): number of inputs samples to take for each output + sample. 0 to take samples densely. + + Note: + ROIAlignRotated supports continuous coordinate by default: + Given a continuous coordinate c, its two neighboring pixel indices (in our + pixel model) are computed by floor(c - 0.5) and ceil(c - 0.5). For example, + c=1.3 has pixel neighbors with discrete indices [0] and [1] (which are sampled + from the underlying signal at continuous coordinates 0.5 and 1.5). + """ + super(ROIAlignRotated, self).__init__() + self.output_size = output_size + self.spatial_scale = spatial_scale + self.sampling_ratio = sampling_ratio + + def forward(self, input, rois): + """ + Args: + input: NCHW images + rois: Bx6 boxes. First column is the index into N. + The other 5 columns are (x_ctr, y_ctr, width, height, angle_degrees). + """ + assert rois.dim() == 2 and rois.size(1) == 6 + orig_dtype = input.dtype + if orig_dtype == torch.float16: + input = input.float() + rois = rois.float() + output_size = _pair(self.output_size) + + # Scripting for Autograd is currently unsupported. + # This is a quick fix without having to rewrite code on the C++ side + if torch.jit.is_scripting() or torch.jit.is_tracing(): + return torch.ops.detectron2.roi_align_rotated_forward( + input, rois, self.spatial_scale, output_size[0], output_size[1], self.sampling_ratio + ).to(dtype=orig_dtype) + + return roi_align_rotated( + input, rois, self.output_size, self.spatial_scale, self.sampling_ratio + ).to(dtype=orig_dtype) + + def __repr__(self): + tmpstr = self.__class__.__name__ + "(" + tmpstr += "output_size=" + str(self.output_size) + tmpstr += ", spatial_scale=" + str(self.spatial_scale) + tmpstr += ", sampling_ratio=" + str(self.sampling_ratio) + tmpstr += ")" + return tmpstr diff --git a/detectron2/detectron2/layers/rotated_boxes.py b/detectron2/detectron2/layers/rotated_boxes.py new file mode 100755 index 0000000..03f73b3 --- /dev/null +++ b/detectron2/detectron2/layers/rotated_boxes.py @@ -0,0 +1,21 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from __future__ import absolute_import, division, print_function, unicode_literals +import torch + + +def pairwise_iou_rotated(boxes1, boxes2): + """ + Return intersection-over-union (Jaccard index) of boxes. + + Both sets of boxes are expected to be in + (x_center, y_center, width, height, angle) format. + + Arguments: + boxes1 (Tensor[N, 5]) + boxes2 (Tensor[M, 5]) + + Returns: + iou (Tensor[N, M]): the NxM matrix containing the pairwise + IoU values for every element in boxes1 and boxes2 + """ + return torch.ops.detectron2.box_iou_rotated(boxes1, boxes2) diff --git a/detectron2/detectron2/layers/shape_spec.py b/detectron2/detectron2/layers/shape_spec.py new file mode 100755 index 0000000..8dac3c5 --- /dev/null +++ b/detectron2/detectron2/layers/shape_spec.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. +from dataclasses import dataclass +from typing import Optional + + +@dataclass +class ShapeSpec: + """ + A simple structure that contains basic shape specification about a tensor. + It is often used as the auxiliary inputs/outputs of models, + to complement the lack of shape inference ability among pytorch modules. + """ + + channels: Optional[int] = None + height: Optional[int] = None + width: Optional[int] = None + stride: Optional[int] = None diff --git a/detectron2/detectron2/layers/wrappers.py b/detectron2/detectron2/layers/wrappers.py new file mode 100755 index 0000000..fb3cb38 --- /dev/null +++ b/detectron2/detectron2/layers/wrappers.py @@ -0,0 +1,162 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Wrappers around on some nn functions, mainly to support empty tensors. + +Ideally, add support directly in PyTorch to empty tensors in those functions. + +These can be removed once https://github.com/pytorch/pytorch/issues/12013 +is implemented +""" + +import warnings +from typing import List, Optional +import torch +from torch.nn import functional as F + +from detectron2.utils.env import TORCH_VERSION + + +def shapes_to_tensor(x: List[int], device: Optional[torch.device] = None) -> torch.Tensor: + """ + Turn a list of integer scalars or integer Tensor scalars into a vector, + in a way that's both traceable and scriptable. + + In tracing, `x` should be a list of scalar Tensor, so the output can trace to the inputs. + In scripting or eager, `x` should be a list of int. + """ + if torch.jit.is_scripting(): + return torch.as_tensor(x, device=device) + if torch.jit.is_tracing(): + assert all( + [isinstance(t, torch.Tensor) for t in x] + ), "Shape should be tensor during tracing!" + # as_tensor should not be used in tracing because it records a constant + ret = torch.stack(x) + if ret.device != device: # avoid recording a hard-coded device if not necessary + ret = ret.to(device=device) + return ret + return torch.as_tensor(x, device=device) + + +def check_if_dynamo_compiling(): + if TORCH_VERSION >= (1, 14): + from torch._dynamo import is_compiling + + return is_compiling() + else: + return False + + +def cat(tensors: List[torch.Tensor], dim: int = 0): + """ + Efficient version of torch.cat that avoids a copy if there is only a single element in a list + """ + assert isinstance(tensors, (list, tuple)) + if len(tensors) == 1: + return tensors[0] + return torch.cat(tensors, dim) + + +def empty_input_loss_func_wrapper(loss_func): + def wrapped_loss_func(input, target, *, reduction="mean", **kwargs): + """ + Same as `loss_func`, but returns 0 (instead of nan) for empty inputs. + """ + if target.numel() == 0 and reduction == "mean": + return input.sum() * 0.0 # connect the gradient + return loss_func(input, target, reduction=reduction, **kwargs) + + return wrapped_loss_func + + +cross_entropy = empty_input_loss_func_wrapper(F.cross_entropy) + + +class _NewEmptyTensorOp(torch.autograd.Function): + @staticmethod + def forward(ctx, x, new_shape): + ctx.shape = x.shape + return x.new_empty(new_shape) + + @staticmethod + def backward(ctx, grad): + shape = ctx.shape + return _NewEmptyTensorOp.apply(grad, shape), None + + +class Conv2d(torch.nn.Conv2d): + """ + A wrapper around :class:`torch.nn.Conv2d` to support empty inputs and more features. + """ + + def __init__(self, *args, **kwargs): + """ + Extra keyword arguments supported in addition to those in `torch.nn.Conv2d`: + + Args: + norm (nn.Module, optional): a normalization layer + activation (callable(Tensor) -> Tensor): a callable activation function + + It assumes that norm layer is used before activation. + """ + norm = kwargs.pop("norm", None) + activation = kwargs.pop("activation", None) + super().__init__(*args, **kwargs) + + self.norm = norm + self.activation = activation + + def forward(self, x): + # torchscript does not support SyncBatchNorm yet + # https://github.com/pytorch/pytorch/issues/40507 + # and we skip these codes in torchscript since: + # 1. currently we only support torchscript in evaluation mode + # 2. features needed by exporting module to torchscript are added in PyTorch 1.6 or + # later version, `Conv2d` in these PyTorch versions has already supported empty inputs. + if not torch.jit.is_scripting(): + # Dynamo doesn't support context managers yet + is_dynamo_compiling = check_if_dynamo_compiling() + if not is_dynamo_compiling: + with warnings.catch_warnings(record=True): + if x.numel() == 0 and self.training: + # https://github.com/pytorch/pytorch/issues/12013 + assert not isinstance( + self.norm, torch.nn.SyncBatchNorm + ), "SyncBatchNorm does not support empty inputs!" + + x = F.conv2d( + x, self.weight, self.bias, self.stride, self.padding, self.dilation, self.groups + ) + if self.norm is not None: + x = self.norm(x) + if self.activation is not None: + x = self.activation(x) + return x + + +ConvTranspose2d = torch.nn.ConvTranspose2d +BatchNorm2d = torch.nn.BatchNorm2d +interpolate = F.interpolate +Linear = torch.nn.Linear + + +def nonzero_tuple(x): + """ + A 'as_tuple=True' version of torch.nonzero to support torchscript. + because of https://github.com/pytorch/pytorch/issues/38718 + """ + if torch.jit.is_scripting(): + if x.dim() == 0: + return x.unsqueeze(0).nonzero().unbind(1) + return x.nonzero().unbind(1) + else: + return x.nonzero(as_tuple=True) + + +@torch.jit.script_if_tracing +def move_device_like(src: torch.Tensor, dst: torch.Tensor) -> torch.Tensor: + """ + Tracing friendly way to cast tensor to another tensor's device. Device will be treated + as constant during tracing, scripting the casting process as whole can workaround this issue. + """ + return src.to(dst.device) diff --git a/detectron2/detectron2/model_zoo/__init__.py b/detectron2/detectron2/model_zoo/__init__.py new file mode 100755 index 0000000..6204208 --- /dev/null +++ b/detectron2/detectron2/model_zoo/__init__.py @@ -0,0 +1,10 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Model Zoo API for Detectron2: a collection of functions to create common model architectures +listed in `MODEL_ZOO.md `_, +and optionally load their pre-trained weights. +""" + +from .model_zoo import get, get_config_file, get_checkpoint_url, get_config + +__all__ = ["get_checkpoint_url", "get", "get_config_file", "get_config"] diff --git a/detectron2/detectron2/model_zoo/model_zoo.py b/detectron2/detectron2/model_zoo/model_zoo.py new file mode 100755 index 0000000..5b90bc9 --- /dev/null +++ b/detectron2/detectron2/model_zoo/model_zoo.py @@ -0,0 +1,213 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import os +from typing import Optional +import pkg_resources +import torch + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import CfgNode, LazyConfig, get_cfg, instantiate +from detectron2.modeling import build_model + + +class _ModelZooUrls(object): + """ + Mapping from names to officially released Detectron2 pre-trained models. + """ + + S3_PREFIX = "https://dl.fbaipublicfiles.com/detectron2/" + + # format: {config_path.yaml} -> model_id/model_final_{commit}.pkl + CONFIG_PATH_TO_URL_SUFFIX = { + # COCO Detection with Faster R-CNN + "COCO-Detection/faster_rcnn_R_50_C4_1x": "137257644/model_final_721ade.pkl", + "COCO-Detection/faster_rcnn_R_50_DC5_1x": "137847829/model_final_51d356.pkl", + "COCO-Detection/faster_rcnn_R_50_FPN_1x": "137257794/model_final_b275ba.pkl", + "COCO-Detection/faster_rcnn_R_50_C4_3x": "137849393/model_final_f97cb7.pkl", + "COCO-Detection/faster_rcnn_R_50_DC5_3x": "137849425/model_final_68d202.pkl", + "COCO-Detection/faster_rcnn_R_50_FPN_3x": "137849458/model_final_280758.pkl", + "COCO-Detection/faster_rcnn_R_101_C4_3x": "138204752/model_final_298dad.pkl", + "COCO-Detection/faster_rcnn_R_101_DC5_3x": "138204841/model_final_3e0943.pkl", + "COCO-Detection/faster_rcnn_R_101_FPN_3x": "137851257/model_final_f6e8b1.pkl", + "COCO-Detection/faster_rcnn_X_101_32x8d_FPN_3x": "139173657/model_final_68b088.pkl", + # COCO Detection with RetinaNet + "COCO-Detection/retinanet_R_50_FPN_1x": "190397773/model_final_bfca0b.pkl", + "COCO-Detection/retinanet_R_50_FPN_3x": "190397829/model_final_5bd44e.pkl", + "COCO-Detection/retinanet_R_101_FPN_3x": "190397697/model_final_971ab9.pkl", + # COCO Detection with RPN and Fast R-CNN + "COCO-Detection/rpn_R_50_C4_1x": "137258005/model_final_450694.pkl", + "COCO-Detection/rpn_R_50_FPN_1x": "137258492/model_final_02ce48.pkl", + "COCO-Detection/fast_rcnn_R_50_FPN_1x": "137635226/model_final_e5f7ce.pkl", + # COCO Instance Segmentation Baselines with Mask R-CNN + "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_1x": "137259246/model_final_9243eb.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_1x": "137260150/model_final_4f86c3.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x": "137260431/model_final_a54504.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x": "137849525/model_final_4ce675.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_50_DC5_3x": "137849551/model_final_84107b.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x": "137849600/model_final_f10217.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_101_C4_3x": "138363239/model_final_a2914c.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_101_DC5_3x": "138363294/model_final_0464b7.pkl", + "COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x": "138205316/model_final_a3ec72.pkl", + "COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x": "139653917/model_final_2d9806.pkl", # noqa + # New baselines using Large-Scale Jitter and Longer Training Schedule + "new_baselines/mask_rcnn_R_50_FPN_100ep_LSJ": "42047764/model_final_bb69de.pkl", + "new_baselines/mask_rcnn_R_50_FPN_200ep_LSJ": "42047638/model_final_89a8d3.pkl", + "new_baselines/mask_rcnn_R_50_FPN_400ep_LSJ": "42019571/model_final_14d201.pkl", + "new_baselines/mask_rcnn_R_101_FPN_100ep_LSJ": "42025812/model_final_4f7b58.pkl", + "new_baselines/mask_rcnn_R_101_FPN_200ep_LSJ": "42131867/model_final_0bb7ae.pkl", + "new_baselines/mask_rcnn_R_101_FPN_400ep_LSJ": "42073830/model_final_f96b26.pkl", + "new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_100ep_LSJ": "42047771/model_final_b7fbab.pkl", # noqa + "new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_200ep_LSJ": "42132721/model_final_5d87c1.pkl", # noqa + "new_baselines/mask_rcnn_regnetx_4gf_dds_FPN_400ep_LSJ": "42025447/model_final_f1362d.pkl", # noqa + "new_baselines/mask_rcnn_regnety_4gf_dds_FPN_100ep_LSJ": "42047784/model_final_6ba57e.pkl", # noqa + "new_baselines/mask_rcnn_regnety_4gf_dds_FPN_200ep_LSJ": "42047642/model_final_27b9c1.pkl", # noqa + "new_baselines/mask_rcnn_regnety_4gf_dds_FPN_400ep_LSJ": "42045954/model_final_ef3a80.pkl", # noqa + # COCO Person Keypoint Detection Baselines with Keypoint R-CNN + "COCO-Keypoints/keypoint_rcnn_R_50_FPN_1x": "137261548/model_final_04e291.pkl", + "COCO-Keypoints/keypoint_rcnn_R_50_FPN_3x": "137849621/model_final_a6e10b.pkl", + "COCO-Keypoints/keypoint_rcnn_R_101_FPN_3x": "138363331/model_final_997cc7.pkl", + "COCO-Keypoints/keypoint_rcnn_X_101_32x8d_FPN_3x": "139686956/model_final_5ad38f.pkl", + # COCO Panoptic Segmentation Baselines with Panoptic FPN + "COCO-PanopticSegmentation/panoptic_fpn_R_50_1x": "139514544/model_final_dbfeb4.pkl", + "COCO-PanopticSegmentation/panoptic_fpn_R_50_3x": "139514569/model_final_c10459.pkl", + "COCO-PanopticSegmentation/panoptic_fpn_R_101_3x": "139514519/model_final_cafdb1.pkl", + # LVIS Instance Segmentation Baselines with Mask R-CNN + "LVISv0.5-InstanceSegmentation/mask_rcnn_R_50_FPN_1x": "144219072/model_final_571f7c.pkl", # noqa + "LVISv0.5-InstanceSegmentation/mask_rcnn_R_101_FPN_1x": "144219035/model_final_824ab5.pkl", # noqa + "LVISv0.5-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_1x": "144219108/model_final_5e3439.pkl", # noqa + # Cityscapes & Pascal VOC Baselines + "Cityscapes/mask_rcnn_R_50_FPN": "142423278/model_final_af9cf5.pkl", + "PascalVOC-Detection/faster_rcnn_R_50_C4": "142202221/model_final_b1acc2.pkl", + # Other Settings + "Misc/mask_rcnn_R_50_FPN_1x_dconv_c3-c5": "138602867/model_final_65c703.pkl", + "Misc/mask_rcnn_R_50_FPN_3x_dconv_c3-c5": "144998336/model_final_821d0b.pkl", + "Misc/cascade_mask_rcnn_R_50_FPN_1x": "138602847/model_final_e9d89b.pkl", + "Misc/cascade_mask_rcnn_R_50_FPN_3x": "144998488/model_final_480dd8.pkl", + "Misc/mask_rcnn_R_50_FPN_3x_syncbn": "169527823/model_final_3b3c51.pkl", + "Misc/mask_rcnn_R_50_FPN_3x_gn": "138602888/model_final_dc5d9e.pkl", + "Misc/scratch_mask_rcnn_R_50_FPN_3x_gn": "138602908/model_final_01ca85.pkl", + "Misc/scratch_mask_rcnn_R_50_FPN_9x_gn": "183808979/model_final_da7b4c.pkl", + "Misc/scratch_mask_rcnn_R_50_FPN_9x_syncbn": "184226666/model_final_5ce33e.pkl", + "Misc/panoptic_fpn_R_101_dconv_cascade_gn_3x": "139797668/model_final_be35db.pkl", + "Misc/cascade_mask_rcnn_X_152_32x8d_FPN_IN5k_gn_dconv": "18131413/model_0039999_e76410.pkl", # noqa + # D1 Comparisons + "Detectron1-Comparisons/faster_rcnn_R_50_FPN_noaug_1x": "137781054/model_final_7ab50c.pkl", # noqa + "Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x": "137781281/model_final_62ca52.pkl", # noqa + "Detectron1-Comparisons/keypoint_rcnn_R_50_FPN_1x": "137781195/model_final_cce136.pkl", + } + + @staticmethod + def query(config_path: str) -> Optional[str]: + """ + Args: + config_path: relative config filename + """ + name = config_path.replace(".yaml", "").replace(".py", "") + if name in _ModelZooUrls.CONFIG_PATH_TO_URL_SUFFIX: + suffix = _ModelZooUrls.CONFIG_PATH_TO_URL_SUFFIX[name] + return _ModelZooUrls.S3_PREFIX + name + "/" + suffix + return None + + +def get_checkpoint_url(config_path): + """ + Returns the URL to the model trained using the given config + + Args: + config_path (str): config file name relative to detectron2's "configs/" + directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" + + Returns: + str: a URL to the model + """ + url = _ModelZooUrls.query(config_path) + if url is None: + raise RuntimeError("Pretrained model for {} is not available!".format(config_path)) + return url + + +def get_config_file(config_path): + """ + Returns path to a builtin config file. + + Args: + config_path (str): config file name relative to detectron2's "configs/" + directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" + + Returns: + str: the real path to the config file. + """ + cfg_file = pkg_resources.resource_filename( + "detectron2.model_zoo", os.path.join("configs", config_path) + ) + if not os.path.exists(cfg_file): + raise RuntimeError("{} not available in Model Zoo!".format(config_path)) + return cfg_file + + +def get_config(config_path, trained: bool = False): + """ + Returns a config object for a model in model zoo. + + Args: + config_path (str): config file name relative to detectron2's "configs/" + directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" + trained (bool): If True, will set ``MODEL.WEIGHTS`` to trained model zoo weights. + If False, the checkpoint specified in the config file's ``MODEL.WEIGHTS`` is used + instead; this will typically (though not always) initialize a subset of weights using + an ImageNet pre-trained model, while randomly initializing the other weights. + + Returns: + CfgNode or omegaconf.DictConfig: a config object + """ + cfg_file = get_config_file(config_path) + if cfg_file.endswith(".yaml"): + cfg = get_cfg() + cfg.merge_from_file(cfg_file) + if trained: + cfg.MODEL.WEIGHTS = get_checkpoint_url(config_path) + return cfg + elif cfg_file.endswith(".py"): + cfg = LazyConfig.load(cfg_file) + if trained: + url = get_checkpoint_url(config_path) + if "train" in cfg and "init_checkpoint" in cfg.train: + cfg.train.init_checkpoint = url + else: + raise NotImplementedError + return cfg + + +def get(config_path, trained: bool = False, device: Optional[str] = None): + """ + Get a model specified by relative path under Detectron2's official ``configs/`` directory. + + Args: + config_path (str): config file name relative to detectron2's "configs/" + directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" + trained (bool): see :func:`get_config`. + device (str or None): overwrite the device in config, if given. + + Returns: + nn.Module: a detectron2 model. Will be in training mode. + + Example: + :: + from detectron2 import model_zoo + model = model_zoo.get("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml", trained=True) + """ + cfg = get_config(config_path, trained) + if device is None and not torch.cuda.is_available(): + device = "cpu" + if device is not None and isinstance(cfg, CfgNode): + cfg.MODEL.DEVICE = device + + if isinstance(cfg, CfgNode): + model = build_model(cfg) + DetectionCheckpointer(model).load(cfg.MODEL.WEIGHTS) + else: + model = instantiate(cfg.model) + if device is not None: + model = model.to(device) + if "train" in cfg and "init_checkpoint" in cfg.train: + DetectionCheckpointer(model).load(cfg.train.init_checkpoint) + return model diff --git a/detectron2/detectron2/modeling/__init__.py b/detectron2/detectron2/modeling/__init__.py new file mode 100755 index 0000000..4d949e2 --- /dev/null +++ b/detectron2/detectron2/modeling/__init__.py @@ -0,0 +1,64 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from detectron2.layers import ShapeSpec + +from .anchor_generator import build_anchor_generator, ANCHOR_GENERATOR_REGISTRY +from .backbone import ( + BACKBONE_REGISTRY, + FPN, + Backbone, + ResNet, + ResNetBlockBase, + build_backbone, + build_resnet_backbone, + make_stage, + ViT, + SimpleFeaturePyramid, + get_vit_lr_decay_rate, + MViT, + SwinTransformer, +) +from .meta_arch import ( + META_ARCH_REGISTRY, + SEM_SEG_HEADS_REGISTRY, + GeneralizedRCNN, + PanopticFPN, + ProposalNetwork, + RetinaNet, + SemanticSegmentor, + build_model, + build_sem_seg_head, + FCOS, +) +from .postprocessing import detector_postprocess +from .proposal_generator import ( + PROPOSAL_GENERATOR_REGISTRY, + build_proposal_generator, + RPN_HEAD_REGISTRY, + build_rpn_head, +) +from .roi_heads import ( + ROI_BOX_HEAD_REGISTRY, + ROI_HEADS_REGISTRY, + ROI_KEYPOINT_HEAD_REGISTRY, + ROI_MASK_HEAD_REGISTRY, + ROIHeads, + StandardROIHeads, + BaseMaskRCNNHead, + BaseKeypointRCNNHead, + FastRCNNOutputLayers, + build_box_head, + build_keypoint_head, + build_mask_head, + build_roi_heads, +) +from .test_time_augmentation import DatasetMapperTTA, GeneralizedRCNNWithTTA +from .mmdet_wrapper import MMDetBackbone, MMDetDetector + +_EXCLUDE = {"ShapeSpec"} +__all__ = [k for k in globals().keys() if k not in _EXCLUDE and not k.startswith("_")] + + +from detectron2.utils.env import fixup_module_metadata + +fixup_module_metadata(__name__, globals(), __all__) +del fixup_module_metadata diff --git a/detectron2/detectron2/modeling/anchor_generator.py b/detectron2/detectron2/modeling/anchor_generator.py new file mode 100755 index 0000000..ac94e72 --- /dev/null +++ b/detectron2/detectron2/modeling/anchor_generator.py @@ -0,0 +1,386 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import collections +import math +from typing import List +import torch +from torch import nn + +from detectron2.config import configurable +from detectron2.layers import ShapeSpec, move_device_like +from detectron2.structures import Boxes, RotatedBoxes +from detectron2.utils.registry import Registry + +ANCHOR_GENERATOR_REGISTRY = Registry("ANCHOR_GENERATOR") +ANCHOR_GENERATOR_REGISTRY.__doc__ = """ +Registry for modules that creates object detection anchors for feature maps. + +The registered object will be called with `obj(cfg, input_shape)`. +""" + + +class BufferList(nn.Module): + """ + Similar to nn.ParameterList, but for buffers + """ + + def __init__(self, buffers): + super().__init__() + for i, buffer in enumerate(buffers): + # Use non-persistent buffer so the values are not saved in checkpoint + self.register_buffer(str(i), buffer, persistent=False) + + def __len__(self): + return len(self._buffers) + + def __iter__(self): + return iter(self._buffers.values()) + + +def _create_grid_offsets( + size: List[int], stride: int, offset: float, target_device_tensor: torch.Tensor +): + grid_height, grid_width = size + shifts_x = move_device_like( + torch.arange(offset * stride, grid_width * stride, step=stride, dtype=torch.float32), + target_device_tensor, + ) + shifts_y = move_device_like( + torch.arange(offset * stride, grid_height * stride, step=stride, dtype=torch.float32), + target_device_tensor, + ) + + shift_y, shift_x = torch.meshgrid(shifts_y, shifts_x) + shift_x = shift_x.reshape(-1) + shift_y = shift_y.reshape(-1) + return shift_x, shift_y + + +def _broadcast_params(params, num_features, name): + """ + If one size (or aspect ratio) is specified and there are multiple feature + maps, we "broadcast" anchors of that single size (or aspect ratio) + over all feature maps. + + If params is list[float], or list[list[float]] with len(params) == 1, repeat + it num_features time. + + Returns: + list[list[float]]: param for each feature + """ + assert isinstance( + params, collections.abc.Sequence + ), f"{name} in anchor generator has to be a list! Got {params}." + assert len(params), f"{name} in anchor generator cannot be empty!" + if not isinstance(params[0], collections.abc.Sequence): # params is list[float] + return [params] * num_features + if len(params) == 1: + return list(params) * num_features + assert len(params) == num_features, ( + f"Got {name} of length {len(params)} in anchor generator, " + f"but the number of input features is {num_features}!" + ) + return params + + +@ANCHOR_GENERATOR_REGISTRY.register() +class DefaultAnchorGenerator(nn.Module): + """ + Compute anchors in the standard ways described in + "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks". + """ + + box_dim: torch.jit.Final[int] = 4 + """ + the dimension of each anchor box. + """ + + @configurable + def __init__(self, *, sizes, aspect_ratios, strides, offset=0.5): + """ + This interface is experimental. + + Args: + sizes (list[list[float]] or list[float]): + If ``sizes`` is list[list[float]], ``sizes[i]`` is the list of anchor sizes + (i.e. sqrt of anchor area) to use for the i-th feature map. + If ``sizes`` is list[float], ``sizes`` is used for all feature maps. + Anchor sizes are given in absolute lengths in units of + the input image; they do not dynamically scale if the input image size changes. + aspect_ratios (list[list[float]] or list[float]): list of aspect ratios + (i.e. height / width) to use for anchors. Same "broadcast" rule for `sizes` applies. + strides (list[int]): stride of each input feature. + offset (float): Relative offset between the center of the first anchor and the top-left + corner of the image. Value has to be in [0, 1). + Recommend to use 0.5, which means half stride. + """ + super().__init__() + + self.strides = strides + self.num_features = len(self.strides) + sizes = _broadcast_params(sizes, self.num_features, "sizes") + aspect_ratios = _broadcast_params(aspect_ratios, self.num_features, "aspect_ratios") + self.cell_anchors = self._calculate_anchors(sizes, aspect_ratios) + + self.offset = offset + assert 0.0 <= self.offset < 1.0, self.offset + + @classmethod + def from_config(cls, cfg, input_shape: List[ShapeSpec]): + return { + "sizes": cfg.MODEL.ANCHOR_GENERATOR.SIZES, + "aspect_ratios": cfg.MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS, + "strides": [x.stride for x in input_shape], + "offset": cfg.MODEL.ANCHOR_GENERATOR.OFFSET, + } + + def _calculate_anchors(self, sizes, aspect_ratios): + cell_anchors = [ + self.generate_cell_anchors(s, a).float() for s, a in zip(sizes, aspect_ratios) + ] + return BufferList(cell_anchors) + + @property + @torch.jit.unused + def num_cell_anchors(self): + """ + Alias of `num_anchors`. + """ + return self.num_anchors + + @property + @torch.jit.unused + def num_anchors(self): + """ + Returns: + list[int]: Each int is the number of anchors at every pixel + location, on that feature map. + For example, if at every pixel we use anchors of 3 aspect + ratios and 5 sizes, the number of anchors is 15. + (See also ANCHOR_GENERATOR.SIZES and ANCHOR_GENERATOR.ASPECT_RATIOS in config) + + In standard RPN models, `num_anchors` on every feature map is the same. + """ + return [len(cell_anchors) for cell_anchors in self.cell_anchors] + + def _grid_anchors(self, grid_sizes: List[List[int]]): + """ + Returns: + list[Tensor]: #featuremap tensors, each is (#locations x #cell_anchors) x 4 + """ + anchors = [] + # buffers() not supported by torchscript. use named_buffers() instead + buffers: List[torch.Tensor] = [x[1] for x in self.cell_anchors.named_buffers()] + for size, stride, base_anchors in zip(grid_sizes, self.strides, buffers): + shift_x, shift_y = _create_grid_offsets(size, stride, self.offset, base_anchors) + shifts = torch.stack((shift_x, shift_y, shift_x, shift_y), dim=1) + + anchors.append((shifts.view(-1, 1, 4) + base_anchors.view(1, -1, 4)).reshape(-1, 4)) + + return anchors + + def generate_cell_anchors(self, sizes=(32, 64, 128, 256, 512), aspect_ratios=(0.5, 1, 2)): + """ + Generate a tensor storing canonical anchor boxes, which are all anchor + boxes of different sizes and aspect_ratios centered at (0, 0). + We can later build the set of anchors for a full feature map by + shifting and tiling these tensors (see `meth:_grid_anchors`). + + Args: + sizes (tuple[float]): + aspect_ratios (tuple[float]]): + + Returns: + Tensor of shape (len(sizes) * len(aspect_ratios), 4) storing anchor boxes + in XYXY format. + """ + + # This is different from the anchor generator defined in the original Faster R-CNN + # code or Detectron. They yield the same AP, however the old version defines cell + # anchors in a less natural way with a shift relative to the feature grid and + # quantization that results in slightly different sizes for different aspect ratios. + # See also https://github.com/facebookresearch/Detectron/issues/227 + + anchors = [] + for size in sizes: + area = size**2.0 + for aspect_ratio in aspect_ratios: + # s * s = w * h + # a = h / w + # ... some algebra ... + # w = sqrt(s * s / a) + # h = a * w + w = math.sqrt(area / aspect_ratio) + h = aspect_ratio * w + x0, y0, x1, y1 = -w / 2.0, -h / 2.0, w / 2.0, h / 2.0 + anchors.append([x0, y0, x1, y1]) + return torch.tensor(anchors) + + def forward(self, features: List[torch.Tensor]): + """ + Args: + features (list[Tensor]): list of backbone feature maps on which to generate anchors. + + Returns: + list[Boxes]: a list of Boxes containing all the anchors for each feature map + (i.e. the cell anchors repeated over all locations in the feature map). + The number of anchors of each feature map is Hi x Wi x num_cell_anchors, + where Hi, Wi are resolution of the feature map divided by anchor stride. + """ + grid_sizes = [feature_map.shape[-2:] for feature_map in features] + anchors_over_all_feature_maps = self._grid_anchors(grid_sizes) + return [Boxes(x) for x in anchors_over_all_feature_maps] + + +@ANCHOR_GENERATOR_REGISTRY.register() +class RotatedAnchorGenerator(nn.Module): + """ + Compute rotated anchors used by Rotated RPN (RRPN), described in + "Arbitrary-Oriented Scene Text Detection via Rotation Proposals". + """ + + box_dim: int = 5 + """ + the dimension of each anchor box. + """ + + @configurable + def __init__(self, *, sizes, aspect_ratios, strides, angles, offset=0.5): + """ + This interface is experimental. + + Args: + sizes (list[list[float]] or list[float]): + If sizes is list[list[float]], sizes[i] is the list of anchor sizes + (i.e. sqrt of anchor area) to use for the i-th feature map. + If sizes is list[float], the sizes are used for all feature maps. + Anchor sizes are given in absolute lengths in units of + the input image; they do not dynamically scale if the input image size changes. + aspect_ratios (list[list[float]] or list[float]): list of aspect ratios + (i.e. height / width) to use for anchors. Same "broadcast" rule for `sizes` applies. + strides (list[int]): stride of each input feature. + angles (list[list[float]] or list[float]): list of angles (in degrees CCW) + to use for anchors. Same "broadcast" rule for `sizes` applies. + offset (float): Relative offset between the center of the first anchor and the top-left + corner of the image. Value has to be in [0, 1). + Recommend to use 0.5, which means half stride. + """ + super().__init__() + + self.strides = strides + self.num_features = len(self.strides) + sizes = _broadcast_params(sizes, self.num_features, "sizes") + aspect_ratios = _broadcast_params(aspect_ratios, self.num_features, "aspect_ratios") + angles = _broadcast_params(angles, self.num_features, "angles") + self.cell_anchors = self._calculate_anchors(sizes, aspect_ratios, angles) + + self.offset = offset + assert 0.0 <= self.offset < 1.0, self.offset + + @classmethod + def from_config(cls, cfg, input_shape: List[ShapeSpec]): + return { + "sizes": cfg.MODEL.ANCHOR_GENERATOR.SIZES, + "aspect_ratios": cfg.MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS, + "strides": [x.stride for x in input_shape], + "offset": cfg.MODEL.ANCHOR_GENERATOR.OFFSET, + "angles": cfg.MODEL.ANCHOR_GENERATOR.ANGLES, + } + + def _calculate_anchors(self, sizes, aspect_ratios, angles): + cell_anchors = [ + self.generate_cell_anchors(size, aspect_ratio, angle).float() + for size, aspect_ratio, angle in zip(sizes, aspect_ratios, angles) + ] + return BufferList(cell_anchors) + + @property + def num_cell_anchors(self): + """ + Alias of `num_anchors`. + """ + return self.num_anchors + + @property + def num_anchors(self): + """ + Returns: + list[int]: Each int is the number of anchors at every pixel + location, on that feature map. + For example, if at every pixel we use anchors of 3 aspect + ratios, 2 sizes and 5 angles, the number of anchors is 30. + (See also ANCHOR_GENERATOR.SIZES, ANCHOR_GENERATOR.ASPECT_RATIOS + and ANCHOR_GENERATOR.ANGLES in config) + + In standard RRPN models, `num_anchors` on every feature map is the same. + """ + return [len(cell_anchors) for cell_anchors in self.cell_anchors] + + def _grid_anchors(self, grid_sizes): + anchors = [] + for size, stride, base_anchors in zip(grid_sizes, self.strides, self.cell_anchors): + shift_x, shift_y = _create_grid_offsets(size, stride, self.offset, base_anchors) + zeros = torch.zeros_like(shift_x) + shifts = torch.stack((shift_x, shift_y, zeros, zeros, zeros), dim=1) + + anchors.append((shifts.view(-1, 1, 5) + base_anchors.view(1, -1, 5)).reshape(-1, 5)) + + return anchors + + def generate_cell_anchors( + self, + sizes=(32, 64, 128, 256, 512), + aspect_ratios=(0.5, 1, 2), + angles=(-90, -60, -30, 0, 30, 60, 90), + ): + """ + Generate a tensor storing canonical anchor boxes, which are all anchor + boxes of different sizes, aspect_ratios, angles centered at (0, 0). + We can later build the set of anchors for a full feature map by + shifting and tiling these tensors (see `meth:_grid_anchors`). + + Args: + sizes (tuple[float]): + aspect_ratios (tuple[float]]): + angles (tuple[float]]): + + Returns: + Tensor of shape (len(sizes) * len(aspect_ratios) * len(angles), 5) + storing anchor boxes in (x_ctr, y_ctr, w, h, angle) format. + """ + anchors = [] + for size in sizes: + area = size**2.0 + for aspect_ratio in aspect_ratios: + # s * s = w * h + # a = h / w + # ... some algebra ... + # w = sqrt(s * s / a) + # h = a * w + w = math.sqrt(area / aspect_ratio) + h = aspect_ratio * w + anchors.extend([0, 0, w, h, a] for a in angles) + + return torch.tensor(anchors) + + def forward(self, features): + """ + Args: + features (list[Tensor]): list of backbone feature maps on which to generate anchors. + + Returns: + list[RotatedBoxes]: a list of Boxes containing all the anchors for each feature map + (i.e. the cell anchors repeated over all locations in the feature map). + The number of anchors of each feature map is Hi x Wi x num_cell_anchors, + where Hi, Wi are resolution of the feature map divided by anchor stride. + """ + grid_sizes = [feature_map.shape[-2:] for feature_map in features] + anchors_over_all_feature_maps = self._grid_anchors(grid_sizes) + return [RotatedBoxes(x) for x in anchors_over_all_feature_maps] + + +def build_anchor_generator(cfg, input_shape): + """ + Built an anchor generator from `cfg.MODEL.ANCHOR_GENERATOR.NAME`. + """ + anchor_generator = cfg.MODEL.ANCHOR_GENERATOR.NAME + return ANCHOR_GENERATOR_REGISTRY.get(anchor_generator)(cfg, input_shape) diff --git a/detectron2/detectron2/modeling/backbone/__init__.py b/detectron2/detectron2/modeling/backbone/__init__.py new file mode 100755 index 0000000..5b3358a --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/__init__.py @@ -0,0 +1,20 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .build import build_backbone, BACKBONE_REGISTRY # noqa F401 isort:skip + +from .backbone import Backbone +from .fpn import FPN +from .regnet import RegNet +from .resnet import ( + BasicStem, + ResNet, + ResNetBlockBase, + build_resnet_backbone, + make_stage, + BottleneckBlock, +) +from .vit import ViT, SimpleFeaturePyramid, get_vit_lr_decay_rate +from .mvit import MViT +from .swin import SwinTransformer + +__all__ = [k for k in globals().keys() if not k.startswith("_")] +# TODO can expose more resnet blocks after careful consideration diff --git a/detectron2/detectron2/modeling/backbone/backbone.py b/detectron2/detectron2/modeling/backbone/backbone.py new file mode 100755 index 0000000..e1c765a --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/backbone.py @@ -0,0 +1,74 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from abc import ABCMeta, abstractmethod +from typing import Dict +import torch.nn as nn + +from detectron2.layers import ShapeSpec + +__all__ = ["Backbone"] + + +class Backbone(nn.Module, metaclass=ABCMeta): + """ + Abstract base class for network backbones. + """ + + def __init__(self): + """ + The `__init__` method of any subclass can specify its own set of arguments. + """ + super().__init__() + + @abstractmethod + def forward(self): + """ + Subclasses must override this method, but adhere to the same return type. + + Returns: + dict[str->Tensor]: mapping from feature name (e.g., "res2") to tensor + """ + pass + + @property + def size_divisibility(self) -> int: + """ + Some backbones require the input height and width to be divisible by a + specific integer. This is typically true for encoder / decoder type networks + with lateral connection (e.g., FPN) for which feature maps need to match + dimension in the "bottom up" and "top down" paths. Set to 0 if no specific + input size divisibility is required. + """ + return 0 + + @property + def padding_constraints(self) -> Dict[str, int]: + """ + This property is a generalization of size_divisibility. Some backbones and training + recipes require specific padding constraints, such as enforcing divisibility by a specific + integer (e.g., FPN) or padding to a square (e.g., ViTDet with large-scale jitter + in :paper:vitdet). `padding_constraints` contains these optional items like: + { + "size_divisibility": int, + "square_size": int, + # Future options are possible + } + `size_divisibility` will read from here if presented and `square_size` indicates the + square padding size if `square_size` > 0. + + TODO: use type of Dict[str, int] to avoid torchscipt issues. The type of padding_constraints + could be generalized as TypedDict (Python 3.8+) to support more types in the future. + """ + return {} + + def output_shape(self): + """ + Returns: + dict[str->ShapeSpec] + """ + # this is a backward-compatible default + return { + name: ShapeSpec( + channels=self._out_feature_channels[name], stride=self._out_feature_strides[name] + ) + for name in self._out_features + } diff --git a/detectron2/detectron2/modeling/backbone/build.py b/detectron2/detectron2/modeling/backbone/build.py new file mode 100755 index 0000000..af02141 --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/build.py @@ -0,0 +1,33 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from detectron2.layers import ShapeSpec +from detectron2.utils.registry import Registry + +from .backbone import Backbone + +BACKBONE_REGISTRY = Registry("BACKBONE") +BACKBONE_REGISTRY.__doc__ = """ +Registry for backbones, which extract feature maps from images + +The registered object must be a callable that accepts two arguments: + +1. A :class:`detectron2.config.CfgNode` +2. A :class:`detectron2.layers.ShapeSpec`, which contains the input shape specification. + +Registered object must return instance of :class:`Backbone`. +""" + + +def build_backbone(cfg, input_shape=None): + """ + Build a backbone from `cfg.MODEL.BACKBONE.NAME`. + + Returns: + an instance of :class:`Backbone` + """ + if input_shape is None: + input_shape = ShapeSpec(channels=len(cfg.MODEL.PIXEL_MEAN)) + + backbone_name = cfg.MODEL.BACKBONE.NAME + backbone = BACKBONE_REGISTRY.get(backbone_name)(cfg, input_shape) + assert isinstance(backbone, Backbone) + return backbone diff --git a/detectron2/detectron2/modeling/backbone/fpn.py b/detectron2/detectron2/modeling/backbone/fpn.py new file mode 100755 index 0000000..19d24e1 --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/fpn.py @@ -0,0 +1,268 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +import fvcore.nn.weight_init as weight_init +import torch +import torch.nn.functional as F +from torch import nn + +from detectron2.layers import Conv2d, ShapeSpec, get_norm + +from .backbone import Backbone +from .build import BACKBONE_REGISTRY +from .resnet import build_resnet_backbone + +__all__ = ["build_resnet_fpn_backbone", "build_retinanet_resnet_fpn_backbone", "FPN"] + + +class FPN(Backbone): + """ + This module implements :paper:`FPN`. + It creates pyramid features built on top of some input feature maps. + """ + + _fuse_type: torch.jit.Final[str] + + def __init__( + self, + bottom_up, + in_features, + out_channels, + norm="", + top_block=None, + fuse_type="sum", + square_pad=0, + ): + """ + Args: + bottom_up (Backbone): module representing the bottom up subnetwork. + Must be a subclass of :class:`Backbone`. The multi-scale feature + maps generated by the bottom up network, and listed in `in_features`, + are used to generate FPN levels. + in_features (list[str]): names of the input feature maps coming + from the backbone to which FPN is attached. For example, if the + backbone produces ["res2", "res3", "res4"], any *contiguous* sublist + of these may be used; order must be from high to low resolution. + out_channels (int): number of channels in the output feature maps. + norm (str): the normalization to use. + top_block (nn.Module or None): if provided, an extra operation will + be performed on the output of the last (smallest resolution) + FPN output, and the result will extend the result list. The top_block + further downsamples the feature map. It must have an attribute + "num_levels", meaning the number of extra FPN levels added by + this block, and "in_feature", which is a string representing + its input feature (e.g., p5). + fuse_type (str): types for fusing the top down features and the lateral + ones. It can be "sum" (default), which sums up element-wise; or "avg", + which takes the element-wise mean of the two. + square_pad (int): If > 0, require input images to be padded to specific square size. + """ + super(FPN, self).__init__() + assert isinstance(bottom_up, Backbone) + assert in_features, in_features + + # Feature map strides and channels from the bottom up network (e.g. ResNet) + input_shapes = bottom_up.output_shape() + strides = [input_shapes[f].stride for f in in_features] + in_channels_per_feature = [input_shapes[f].channels for f in in_features] + + _assert_strides_are_log2_contiguous(strides) + lateral_convs = [] + output_convs = [] + + use_bias = norm == "" + for idx, in_channels in enumerate(in_channels_per_feature): + lateral_norm = get_norm(norm, out_channels) + output_norm = get_norm(norm, out_channels) + + lateral_conv = Conv2d( + in_channels, out_channels, kernel_size=1, bias=use_bias, norm=lateral_norm + ) + output_conv = Conv2d( + out_channels, + out_channels, + kernel_size=3, + stride=1, + padding=1, + bias=use_bias, + norm=output_norm, + ) + weight_init.c2_xavier_fill(lateral_conv) + weight_init.c2_xavier_fill(output_conv) + stage = int(math.log2(strides[idx])) + self.add_module("fpn_lateral{}".format(stage), lateral_conv) + self.add_module("fpn_output{}".format(stage), output_conv) + + lateral_convs.append(lateral_conv) + output_convs.append(output_conv) + # Place convs into top-down order (from low to high resolution) + # to make the top-down computation in forward clearer. + self.lateral_convs = lateral_convs[::-1] + self.output_convs = output_convs[::-1] + self.top_block = top_block + self.in_features = tuple(in_features) + self.bottom_up = bottom_up + # Return feature names are "p", like ["p2", "p3", ..., "p6"] + self._out_feature_strides = {"p{}".format(int(math.log2(s))): s for s in strides} + # top block output feature maps. + if self.top_block is not None: + for s in range(stage, stage + self.top_block.num_levels): + self._out_feature_strides["p{}".format(s + 1)] = 2 ** (s + 1) + + self._out_features = list(self._out_feature_strides.keys()) + self._out_feature_channels = {k: out_channels for k in self._out_features} + self._size_divisibility = strides[-1] + self._square_pad = square_pad + assert fuse_type in {"avg", "sum"} + self._fuse_type = fuse_type + + @property + def size_divisibility(self): + return self._size_divisibility + + @property + def padding_constraints(self): + return {"square_size": self._square_pad} + + def forward(self, x): + """ + Args: + input (dict[str->Tensor]): mapping feature map name (e.g., "res5") to + feature map tensor for each feature level in high to low resolution order. + + Returns: + dict[str->Tensor]: + mapping from feature map name to FPN feature map tensor + in high to low resolution order. Returned feature names follow the FPN + paper convention: "p", where stage has stride = 2 ** stage e.g., + ["p2", "p3", ..., "p6"]. + """ + bottom_up_features = self.bottom_up(x) + results = [] + prev_features = self.lateral_convs[0](bottom_up_features[self.in_features[-1]]) + results.append(self.output_convs[0](prev_features)) + + # Reverse feature maps into top-down order (from low to high resolution) + for idx, (lateral_conv, output_conv) in enumerate( + zip(self.lateral_convs, self.output_convs) + ): + # Slicing of ModuleList is not supported https://github.com/pytorch/pytorch/issues/47336 + # Therefore we loop over all modules but skip the first one + if idx > 0: + features = self.in_features[-idx - 1] + features = bottom_up_features[features] + top_down_features = F.interpolate(prev_features, scale_factor=2.0, mode="nearest") + lateral_features = lateral_conv(features) + prev_features = lateral_features + top_down_features + if self._fuse_type == "avg": + prev_features /= 2 + results.insert(0, output_conv(prev_features)) + + if self.top_block is not None: + if self.top_block.in_feature in bottom_up_features: + top_block_in_feature = bottom_up_features[self.top_block.in_feature] + else: + top_block_in_feature = results[self._out_features.index(self.top_block.in_feature)] + results.extend(self.top_block(top_block_in_feature)) + assert len(self._out_features) == len(results) + return {f: res for f, res in zip(self._out_features, results)} + + def output_shape(self): + return { + name: ShapeSpec( + channels=self._out_feature_channels[name], stride=self._out_feature_strides[name] + ) + for name in self._out_features + } + + +def _assert_strides_are_log2_contiguous(strides): + """ + Assert that each stride is 2x times its preceding stride, i.e. "contiguous in log2". + """ + for i, stride in enumerate(strides[1:], 1): + assert stride == 2 * strides[i - 1], "Strides {} {} are not log2 contiguous".format( + stride, strides[i - 1] + ) + + +class LastLevelMaxPool(nn.Module): + """ + This module is used in the original FPN to generate a downsampled + P6 feature from P5. + """ + + def __init__(self): + super().__init__() + self.num_levels = 1 + self.in_feature = "p5" + + def forward(self, x): + return [F.max_pool2d(x, kernel_size=1, stride=2, padding=0)] + + +class LastLevelP6P7(nn.Module): + """ + This module is used in RetinaNet to generate extra layers, P6 and P7 from + C5 feature. + """ + + def __init__(self, in_channels, out_channels, in_feature="res5"): + super().__init__() + self.num_levels = 2 + self.in_feature = in_feature + self.p6 = nn.Conv2d(in_channels, out_channels, 3, 2, 1) + self.p7 = nn.Conv2d(out_channels, out_channels, 3, 2, 1) + for module in [self.p6, self.p7]: + weight_init.c2_xavier_fill(module) + + def forward(self, c5): + p6 = self.p6(c5) + p7 = self.p7(F.relu(p6)) + return [p6, p7] + + +@BACKBONE_REGISTRY.register() +def build_resnet_fpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + bottom_up = build_resnet_backbone(cfg, input_shape) + in_features = cfg.MODEL.FPN.IN_FEATURES + out_channels = cfg.MODEL.FPN.OUT_CHANNELS + backbone = FPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + norm=cfg.MODEL.FPN.NORM, + top_block=LastLevelMaxPool(), + fuse_type=cfg.MODEL.FPN.FUSE_TYPE, + ) + return backbone + + +@BACKBONE_REGISTRY.register() +def build_retinanet_resnet_fpn_backbone(cfg, input_shape: ShapeSpec): + """ + Args: + cfg: a detectron2 CfgNode + + Returns: + backbone (Backbone): backbone module, must be a subclass of :class:`Backbone`. + """ + bottom_up = build_resnet_backbone(cfg, input_shape) + in_features = cfg.MODEL.FPN.IN_FEATURES + out_channels = cfg.MODEL.FPN.OUT_CHANNELS + in_channels_p6p7 = bottom_up.output_shape()["res5"].channels + backbone = FPN( + bottom_up=bottom_up, + in_features=in_features, + out_channels=out_channels, + norm=cfg.MODEL.FPN.NORM, + top_block=LastLevelP6P7(in_channels_p6p7, out_channels), + fuse_type=cfg.MODEL.FPN.FUSE_TYPE, + ) + return backbone diff --git a/detectron2/detectron2/modeling/backbone/mvit.py b/detectron2/detectron2/modeling/backbone/mvit.py new file mode 100755 index 0000000..50667a8 --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/mvit.py @@ -0,0 +1,448 @@ +import logging +import numpy as np +import torch +import torch.nn as nn + +from .backbone import Backbone +from .utils import ( + PatchEmbed, + add_decomposed_rel_pos, + get_abs_pos, + window_partition, + window_unpartition, +) + +logger = logging.getLogger(__name__) + + +__all__ = ["MViT"] + + +def attention_pool(x, pool, norm=None): + # (B, H, W, C) -> (B, C, H, W) + x = x.permute(0, 3, 1, 2) + x = pool(x) + # (B, C, H1, W1) -> (B, H1, W1, C) + x = x.permute(0, 2, 3, 1) + if norm: + x = norm(x) + + return x + + +class MultiScaleAttention(nn.Module): + """Multiscale Multi-head Attention block.""" + + def __init__( + self, + dim, + dim_out, + num_heads, + qkv_bias=True, + norm_layer=nn.LayerNorm, + pool_kernel=(3, 3), + stride_q=1, + stride_kv=1, + residual_pooling=True, + window_size=0, + use_rel_pos=False, + rel_pos_zero_init=True, + input_size=None, + ): + """ + Args: + dim (int): Number of input channels. + dim_out (int): Number of output channels. + num_heads (int): Number of attention heads. + qkv_bias (bool: If True, add a learnable bias to query, key, value. + norm_layer (nn.Module): Normalization layer. + pool_kernel (tuple): kernel size for qkv pooling layers. + stride_q (int): stride size for q pooling layer. + stride_kv (int): stride size for kv pooling layer. + residual_pooling (bool): If true, enable residual pooling. + use_rel_pos (bool): If True, add relative postional embeddings to the attention map. + rel_pos_zero_init (bool): If True, zero initialize relative positional parameters. + input_size (int or None): Input resolution. + """ + super().__init__() + self.num_heads = num_heads + head_dim = dim_out // num_heads + self.scale = head_dim**-0.5 + + self.qkv = nn.Linear(dim, dim_out * 3, bias=qkv_bias) + self.proj = nn.Linear(dim_out, dim_out) + + # qkv pooling + pool_padding = [k // 2 for k in pool_kernel] + dim_conv = dim_out // num_heads + self.pool_q = nn.Conv2d( + dim_conv, + dim_conv, + pool_kernel, + stride=stride_q, + padding=pool_padding, + groups=dim_conv, + bias=False, + ) + self.norm_q = norm_layer(dim_conv) + self.pool_k = nn.Conv2d( + dim_conv, + dim_conv, + pool_kernel, + stride=stride_kv, + padding=pool_padding, + groups=dim_conv, + bias=False, + ) + self.norm_k = norm_layer(dim_conv) + self.pool_v = nn.Conv2d( + dim_conv, + dim_conv, + pool_kernel, + stride=stride_kv, + padding=pool_padding, + groups=dim_conv, + bias=False, + ) + self.norm_v = norm_layer(dim_conv) + + self.window_size = window_size + if window_size: + self.q_win_size = window_size // stride_q + self.kv_win_size = window_size // stride_kv + self.residual_pooling = residual_pooling + + self.use_rel_pos = use_rel_pos + if self.use_rel_pos: + # initialize relative positional embeddings + assert input_size[0] == input_size[1] + size = input_size[0] + rel_dim = 2 * max(size // stride_q, size // stride_kv) - 1 + self.rel_pos_h = nn.Parameter(torch.zeros(rel_dim, head_dim)) + self.rel_pos_w = nn.Parameter(torch.zeros(rel_dim, head_dim)) + + if not rel_pos_zero_init: + nn.init.trunc_normal_(self.rel_pos_h, std=0.02) + nn.init.trunc_normal_(self.rel_pos_w, std=0.02) + + def forward(self, x): + B, H, W, _ = x.shape + # qkv with shape (3, B, nHead, H, W, C) + qkv = self.qkv(x).reshape(B, H, W, 3, self.num_heads, -1).permute(3, 0, 4, 1, 2, 5) + # q, k, v with shape (B * nHead, H, W, C) + q, k, v = qkv.reshape(3, B * self.num_heads, H, W, -1).unbind(0) + + q = attention_pool(q, self.pool_q, self.norm_q) + k = attention_pool(k, self.pool_k, self.norm_k) + v = attention_pool(v, self.pool_v, self.norm_v) + + ori_q = q + if self.window_size: + q, q_hw_pad = window_partition(q, self.q_win_size) + k, kv_hw_pad = window_partition(k, self.kv_win_size) + v, _ = window_partition(v, self.kv_win_size) + q_hw = (self.q_win_size, self.q_win_size) + kv_hw = (self.kv_win_size, self.kv_win_size) + else: + q_hw = q.shape[1:3] + kv_hw = k.shape[1:3] + + q = q.view(q.shape[0], np.prod(q_hw), -1) + k = k.view(k.shape[0], np.prod(kv_hw), -1) + v = v.view(v.shape[0], np.prod(kv_hw), -1) + + attn = (q * self.scale) @ k.transpose(-2, -1) + + if self.use_rel_pos: + attn = add_decomposed_rel_pos(attn, q, self.rel_pos_h, self.rel_pos_w, q_hw, kv_hw) + + attn = attn.softmax(dim=-1) + x = attn @ v + + x = x.view(x.shape[0], q_hw[0], q_hw[1], -1) + + if self.window_size: + x = window_unpartition(x, self.q_win_size, q_hw_pad, ori_q.shape[1:3]) + + if self.residual_pooling: + x += ori_q + + H, W = x.shape[1], x.shape[2] + x = x.view(B, self.num_heads, H, W, -1).permute(0, 2, 3, 1, 4).reshape(B, H, W, -1) + x = self.proj(x) + + return x + + +class MultiScaleBlock(nn.Module): + """Multiscale Transformer blocks""" + + def __init__( + self, + dim, + dim_out, + num_heads, + mlp_ratio=4.0, + qkv_bias=True, + drop_path=0.0, + norm_layer=nn.LayerNorm, + act_layer=nn.GELU, + qkv_pool_kernel=(3, 3), + stride_q=1, + stride_kv=1, + residual_pooling=True, + window_size=0, + use_rel_pos=False, + rel_pos_zero_init=True, + input_size=None, + ): + """ + Args: + dim (int): Number of input channels. + dim_out (int): Number of output channels. + num_heads (int): Number of attention heads in the MViT block. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. + qkv_bias (bool): If True, add a learnable bias to query, key, value. + drop_path (float): Stochastic depth rate. + norm_layer (nn.Module): Normalization layer. + act_layer (nn.Module): Activation layer. + qkv_pool_kernel (tuple): kernel size for qkv pooling layers. + stride_q (int): stride size for q pooling layer. + stride_kv (int): stride size for kv pooling layer. + residual_pooling (bool): If true, enable residual pooling. + window_size (int): Window size for window attention blocks. If it equals 0, then not + use window attention. + use_rel_pos (bool): If True, add relative postional embeddings to the attention map. + rel_pos_zero_init (bool): If True, zero initialize relative positional parameters. + input_size (int or None): Input resolution. + """ + super().__init__() + self.norm1 = norm_layer(dim) + self.attn = MultiScaleAttention( + dim, + dim_out, + num_heads=num_heads, + qkv_bias=qkv_bias, + norm_layer=norm_layer, + pool_kernel=qkv_pool_kernel, + stride_q=stride_q, + stride_kv=stride_kv, + residual_pooling=residual_pooling, + window_size=window_size, + use_rel_pos=use_rel_pos, + rel_pos_zero_init=rel_pos_zero_init, + input_size=input_size, + ) + + from timm.models.layers import DropPath, Mlp + + self.drop_path = DropPath(drop_path) if drop_path > 0.0 else nn.Identity() + self.norm2 = norm_layer(dim_out) + self.mlp = Mlp( + in_features=dim_out, + hidden_features=int(dim_out * mlp_ratio), + out_features=dim_out, + act_layer=act_layer, + ) + + if dim != dim_out: + self.proj = nn.Linear(dim, dim_out) + + if stride_q > 1: + kernel_skip = stride_q + 1 + padding_skip = int(kernel_skip // 2) + self.pool_skip = nn.MaxPool2d(kernel_skip, stride_q, padding_skip, ceil_mode=False) + + def forward(self, x): + x_norm = self.norm1(x) + x_block = self.attn(x_norm) + + if hasattr(self, "proj"): + x = self.proj(x_norm) + if hasattr(self, "pool_skip"): + x = attention_pool(x, self.pool_skip) + + x = x + self.drop_path(x_block) + x = x + self.drop_path(self.mlp(self.norm2(x))) + + return x + + +class MViT(Backbone): + """ + This module implements Multiscale Vision Transformer (MViT) backbone in :paper:'mvitv2'. + """ + + def __init__( + self, + img_size=224, + patch_kernel=(7, 7), + patch_stride=(4, 4), + patch_padding=(3, 3), + in_chans=3, + embed_dim=96, + depth=16, + num_heads=1, + last_block_indexes=(0, 2, 11, 15), + qkv_pool_kernel=(3, 3), + adaptive_kv_stride=4, + adaptive_window_size=56, + residual_pooling=True, + mlp_ratio=4.0, + qkv_bias=True, + drop_path_rate=0.0, + norm_layer=nn.LayerNorm, + act_layer=nn.GELU, + use_abs_pos=False, + use_rel_pos=True, + rel_pos_zero_init=True, + use_act_checkpoint=False, + pretrain_img_size=224, + pretrain_use_cls_token=True, + out_features=("scale2", "scale3", "scale4", "scale5"), + ): + """ + Args: + img_size (int): Input image size. + patch_kernel (tuple): kernel size for patch embedding. + patch_stride (tuple): stride size for patch embedding. + patch_padding (tuple): padding size for patch embedding. + in_chans (int): Number of input image channels. + embed_dim (int): Patch embedding dimension. + depth (int): Depth of MViT. + num_heads (int): Number of base attention heads in each MViT block. + last_block_indexes (tuple): Block indexes for last blocks in each stage. + qkv_pool_kernel (tuple): kernel size for qkv pooling layers. + adaptive_kv_stride (int): adaptive stride size for kv pooling. + adaptive_window_size (int): adaptive window size for window attention blocks. + residual_pooling (bool): If true, enable residual pooling. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. + qkv_bias (bool): If True, add a learnable bias to query, key, value. + drop_path_rate (float): Stochastic depth rate. + norm_layer (nn.Module): Normalization layer. + act_layer (nn.Module): Activation layer. + use_abs_pos (bool): If True, use absolute positional embeddings. + use_rel_pos (bool): If True, add relative postional embeddings to the attention map. + rel_pos_zero_init (bool): If True, zero initialize relative positional parameters. + window_size (int): Window size for window attention blocks. + use_act_checkpoint (bool): If True, use activation checkpointing. + pretrain_img_size (int): input image size for pretraining models. + pretrain_use_cls_token (bool): If True, pretrainig models use class token. + out_features (tuple): name of the feature maps from each stage. + """ + super().__init__() + self.pretrain_use_cls_token = pretrain_use_cls_token + + self.patch_embed = PatchEmbed( + kernel_size=patch_kernel, + stride=patch_stride, + padding=patch_padding, + in_chans=in_chans, + embed_dim=embed_dim, + ) + + if use_abs_pos: + # Initialize absoluate positional embedding with pretrain image size. + num_patches = (pretrain_img_size // patch_stride[0]) * ( + pretrain_img_size // patch_stride[1] + ) + num_positions = (num_patches + 1) if pretrain_use_cls_token else num_patches + self.pos_embed = nn.Parameter(torch.zeros(1, num_positions, embed_dim)) + else: + self.pos_embed = None + + # stochastic depth decay rule + dpr = [x.item() for x in torch.linspace(0, drop_path_rate, depth)] + dim_out = embed_dim + stride_kv = adaptive_kv_stride + window_size = adaptive_window_size + input_size = (img_size // patch_stride[0], img_size // patch_stride[1]) + stage = 2 + stride = patch_stride[0] + self._out_feature_strides = {} + self._out_feature_channels = {} + self.blocks = nn.ModuleList() + for i in range(depth): + # Multiply stride_kv by 2 if it's the last block of stage2 and stage3. + if i == last_block_indexes[1] or i == last_block_indexes[2]: + stride_kv_ = stride_kv * 2 + else: + stride_kv_ = stride_kv + # hybrid window attention: global attention in last three stages. + window_size_ = 0 if i in last_block_indexes[1:] else window_size + block = MultiScaleBlock( + dim=embed_dim, + dim_out=dim_out, + num_heads=num_heads, + mlp_ratio=mlp_ratio, + qkv_bias=qkv_bias, + drop_path=dpr[i], + norm_layer=norm_layer, + qkv_pool_kernel=qkv_pool_kernel, + stride_q=2 if i - 1 in last_block_indexes else 1, + stride_kv=stride_kv_, + residual_pooling=residual_pooling, + window_size=window_size_, + use_rel_pos=use_rel_pos, + rel_pos_zero_init=rel_pos_zero_init, + input_size=input_size, + ) + if use_act_checkpoint: + # TODO: use torch.utils.checkpoint + from fairscale.nn.checkpoint import checkpoint_wrapper + + block = checkpoint_wrapper(block) + self.blocks.append(block) + + embed_dim = dim_out + if i in last_block_indexes: + name = f"scale{stage}" + if name in out_features: + self._out_feature_channels[name] = dim_out + self._out_feature_strides[name] = stride + self.add_module(f"{name}_norm", norm_layer(dim_out)) + + dim_out *= 2 + num_heads *= 2 + stride_kv = max(stride_kv // 2, 1) + stride *= 2 + stage += 1 + if i - 1 in last_block_indexes: + window_size = window_size // 2 + input_size = [s // 2 for s in input_size] + + self._out_features = out_features + self._last_block_indexes = last_block_indexes + + if self.pos_embed is not None: + nn.init.trunc_normal_(self.pos_embed, std=0.02) + + self.apply(self._init_weights) + + def _init_weights(self, m): + if isinstance(m, nn.Linear): + nn.init.trunc_normal_(m.weight, std=0.02) + if isinstance(m, nn.Linear) and m.bias is not None: + nn.init.constant_(m.bias, 0) + elif isinstance(m, nn.LayerNorm): + nn.init.constant_(m.bias, 0) + nn.init.constant_(m.weight, 1.0) + + def forward(self, x): + x = self.patch_embed(x) + + if self.pos_embed is not None: + x = x + get_abs_pos(self.pos_embed, self.pretrain_use_cls_token, x.shape[1:3]) + + outputs = {} + stage = 2 + for i, blk in enumerate(self.blocks): + x = blk(x) + if i in self._last_block_indexes: + name = f"scale{stage}" + if name in self._out_features: + x_out = getattr(self, f"{name}_norm")(x) + outputs[name] = x_out.permute(0, 3, 1, 2) + stage += 1 + + return outputs diff --git a/detectron2/detectron2/modeling/backbone/regnet.py b/detectron2/detectron2/modeling/backbone/regnet.py new file mode 100755 index 0000000..3533d63 --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/regnet.py @@ -0,0 +1,452 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +""" +Implementation of RegNet models from :paper:`dds` and :paper:`scaling`. + +This code is adapted from https://github.com/facebookresearch/pycls with minimal modifications. +Some code duplication exists between RegNet and ResNets (e.g., ResStem) in order to simplify +model loading. +""" + +import numpy as np +from torch import nn + +from detectron2.layers import CNNBlockBase, ShapeSpec, get_norm + +from .backbone import Backbone + +__all__ = [ + "AnyNet", + "RegNet", + "ResStem", + "SimpleStem", + "VanillaBlock", + "ResBasicBlock", + "ResBottleneckBlock", +] + + +def conv2d(w_in, w_out, k, *, stride=1, groups=1, bias=False): + """Helper for building a conv2d layer.""" + assert k % 2 == 1, "Only odd size kernels supported to avoid padding issues." + s, p, g, b = stride, (k - 1) // 2, groups, bias + return nn.Conv2d(w_in, w_out, k, stride=s, padding=p, groups=g, bias=b) + + +def gap2d(): + """Helper for building a global average pooling layer.""" + return nn.AdaptiveAvgPool2d((1, 1)) + + +def pool2d(k, *, stride=1): + """Helper for building a pool2d layer.""" + assert k % 2 == 1, "Only odd size kernels supported to avoid padding issues." + return nn.MaxPool2d(k, stride=stride, padding=(k - 1) // 2) + + +def init_weights(m): + """Performs ResNet-style weight initialization.""" + if isinstance(m, nn.Conv2d): + # Note that there is no bias due to BN + fan_out = m.kernel_size[0] * m.kernel_size[1] * m.out_channels + m.weight.data.normal_(mean=0.0, std=np.sqrt(2.0 / fan_out)) + elif isinstance(m, nn.BatchNorm2d): + m.weight.data.fill_(1.0) + m.bias.data.zero_() + elif isinstance(m, nn.Linear): + m.weight.data.normal_(mean=0.0, std=0.01) + m.bias.data.zero_() + + +class ResStem(CNNBlockBase): + """ResNet stem for ImageNet: 7x7, BN, AF, MaxPool.""" + + def __init__(self, w_in, w_out, norm, activation_class): + super().__init__(w_in, w_out, 4) + self.conv = conv2d(w_in, w_out, 7, stride=2) + self.bn = get_norm(norm, w_out) + self.af = activation_class() + self.pool = pool2d(3, stride=2) + + def forward(self, x): + for layer in self.children(): + x = layer(x) + return x + + +class SimpleStem(CNNBlockBase): + """Simple stem for ImageNet: 3x3, BN, AF.""" + + def __init__(self, w_in, w_out, norm, activation_class): + super().__init__(w_in, w_out, 2) + self.conv = conv2d(w_in, w_out, 3, stride=2) + self.bn = get_norm(norm, w_out) + self.af = activation_class() + + def forward(self, x): + for layer in self.children(): + x = layer(x) + return x + + +class SE(nn.Module): + """Squeeze-and-Excitation (SE) block: AvgPool, FC, Act, FC, Sigmoid.""" + + def __init__(self, w_in, w_se, activation_class): + super().__init__() + self.avg_pool = gap2d() + self.f_ex = nn.Sequential( + conv2d(w_in, w_se, 1, bias=True), + activation_class(), + conv2d(w_se, w_in, 1, bias=True), + nn.Sigmoid(), + ) + + def forward(self, x): + return x * self.f_ex(self.avg_pool(x)) + + +class VanillaBlock(CNNBlockBase): + """Vanilla block: [3x3 conv, BN, Relu] x2.""" + + def __init__(self, w_in, w_out, stride, norm, activation_class, _params): + super().__init__(w_in, w_out, stride) + self.a = conv2d(w_in, w_out, 3, stride=stride) + self.a_bn = get_norm(norm, w_out) + self.a_af = activation_class() + self.b = conv2d(w_out, w_out, 3) + self.b_bn = get_norm(norm, w_out) + self.b_af = activation_class() + + def forward(self, x): + for layer in self.children(): + x = layer(x) + return x + + +class BasicTransform(nn.Module): + """Basic transformation: [3x3 conv, BN, Relu] x2.""" + + def __init__(self, w_in, w_out, stride, norm, activation_class, _params): + super().__init__() + self.a = conv2d(w_in, w_out, 3, stride=stride) + self.a_bn = get_norm(norm, w_out) + self.a_af = activation_class() + self.b = conv2d(w_out, w_out, 3) + self.b_bn = get_norm(norm, w_out) + self.b_bn.final_bn = True + + def forward(self, x): + for layer in self.children(): + x = layer(x) + return x + + +class ResBasicBlock(CNNBlockBase): + """Residual basic block: x + f(x), f = basic transform.""" + + def __init__(self, w_in, w_out, stride, norm, activation_class, params): + super().__init__(w_in, w_out, stride) + self.proj, self.bn = None, None + if (w_in != w_out) or (stride != 1): + self.proj = conv2d(w_in, w_out, 1, stride=stride) + self.bn = get_norm(norm, w_out) + self.f = BasicTransform(w_in, w_out, stride, norm, activation_class, params) + self.af = activation_class() + + def forward(self, x): + x_p = self.bn(self.proj(x)) if self.proj else x + return self.af(x_p + self.f(x)) + + +class BottleneckTransform(nn.Module): + """Bottleneck transformation: 1x1, 3x3 [+SE], 1x1.""" + + def __init__(self, w_in, w_out, stride, norm, activation_class, params): + super().__init__() + w_b = int(round(w_out * params["bot_mul"])) + w_se = int(round(w_in * params["se_r"])) + groups = w_b // params["group_w"] + self.a = conv2d(w_in, w_b, 1) + self.a_bn = get_norm(norm, w_b) + self.a_af = activation_class() + self.b = conv2d(w_b, w_b, 3, stride=stride, groups=groups) + self.b_bn = get_norm(norm, w_b) + self.b_af = activation_class() + self.se = SE(w_b, w_se, activation_class) if w_se else None + self.c = conv2d(w_b, w_out, 1) + self.c_bn = get_norm(norm, w_out) + self.c_bn.final_bn = True + + def forward(self, x): + for layer in self.children(): + x = layer(x) + return x + + +class ResBottleneckBlock(CNNBlockBase): + """Residual bottleneck block: x + f(x), f = bottleneck transform.""" + + def __init__(self, w_in, w_out, stride, norm, activation_class, params): + super().__init__(w_in, w_out, stride) + self.proj, self.bn = None, None + if (w_in != w_out) or (stride != 1): + self.proj = conv2d(w_in, w_out, 1, stride=stride) + self.bn = get_norm(norm, w_out) + self.f = BottleneckTransform(w_in, w_out, stride, norm, activation_class, params) + self.af = activation_class() + + def forward(self, x): + x_p = self.bn(self.proj(x)) if self.proj else x + return self.af(x_p + self.f(x)) + + +class AnyStage(nn.Module): + """AnyNet stage (sequence of blocks w/ the same output shape).""" + + def __init__(self, w_in, w_out, stride, d, block_class, norm, activation_class, params): + super().__init__() + for i in range(d): + block = block_class(w_in, w_out, stride, norm, activation_class, params) + self.add_module("b{}".format(i + 1), block) + stride, w_in = 1, w_out + + def forward(self, x): + for block in self.children(): + x = block(x) + return x + + +class AnyNet(Backbone): + """AnyNet model. See :paper:`dds`.""" + + def __init__( + self, + *, + stem_class, + stem_width, + block_class, + depths, + widths, + group_widths, + strides, + bottleneck_ratios, + se_ratio, + activation_class, + freeze_at=0, + norm="BN", + out_features=None, + ): + """ + Args: + stem_class (callable): A callable taking 4 arguments (channels in, channels out, + normalization, callable returning an activation function) that returns another + callable implementing the stem module. + stem_width (int): The number of output channels that the stem produces. + block_class (callable): A callable taking 6 arguments (channels in, channels out, + stride, normalization, callable returning an activation function, a dict of + block-specific parameters) that returns another callable implementing the repeated + block module. + depths (list[int]): Number of blocks in each stage. + widths (list[int]): For each stage, the number of output channels of each block. + group_widths (list[int]): For each stage, the number of channels per group in group + convolution, if the block uses group convolution. + strides (list[int]): The stride that each network stage applies to its input. + bottleneck_ratios (list[float]): For each stage, the ratio of the number of bottleneck + channels to the number of block input channels (or, equivalently, output channels), + if the block uses a bottleneck. + se_ratio (float): The ratio of the number of channels used inside the squeeze-excitation + (SE) module to it number of input channels, if SE the block uses SE. + activation_class (callable): A callable taking no arguments that returns another + callable implementing an activation function. + freeze_at (int): The number of stages at the beginning to freeze. + see :meth:`freeze` for detailed explanation. + norm (str or callable): normalization for all conv layers. + See :func:`layers.get_norm` for supported format. + out_features (list[str]): name of the layers whose outputs should + be returned in forward. RegNet's use "stem" and "s1", "s2", etc for the stages after + the stem. If None, will return the output of the last layer. + """ + super().__init__() + self.stem = stem_class(3, stem_width, norm, activation_class) + + current_stride = self.stem.stride + self._out_feature_strides = {"stem": current_stride} + self._out_feature_channels = {"stem": self.stem.out_channels} + self.stages_and_names = [] + prev_w = stem_width + + for i, (d, w, s, b, g) in enumerate( + zip(depths, widths, strides, bottleneck_ratios, group_widths) + ): + params = {"bot_mul": b, "group_w": g, "se_r": se_ratio} + stage = AnyStage(prev_w, w, s, d, block_class, norm, activation_class, params) + name = "s{}".format(i + 1) + self.add_module(name, stage) + self.stages_and_names.append((stage, name)) + self._out_feature_strides[name] = current_stride = int( + current_stride * np.prod([k.stride for k in stage.children()]) + ) + self._out_feature_channels[name] = list(stage.children())[-1].out_channels + prev_w = w + + self.apply(init_weights) + + if out_features is None: + out_features = [name] + self._out_features = out_features + assert len(self._out_features) + children = [x[0] for x in self.named_children()] + for out_feature in self._out_features: + assert out_feature in children, "Available children: {} does not include {}".format( + ", ".join(children), out_feature + ) + self.freeze(freeze_at) + + def forward(self, x): + """ + Args: + x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. + + Returns: + dict[str->Tensor]: names and the corresponding features + """ + assert x.dim() == 4, f"Model takes an input of shape (N, C, H, W). Got {x.shape} instead!" + outputs = {} + x = self.stem(x) + if "stem" in self._out_features: + outputs["stem"] = x + for stage, name in self.stages_and_names: + x = stage(x) + if name in self._out_features: + outputs[name] = x + return outputs + + def output_shape(self): + return { + name: ShapeSpec( + channels=self._out_feature_channels[name], stride=self._out_feature_strides[name] + ) + for name in self._out_features + } + + def freeze(self, freeze_at=0): + """ + Freeze the first several stages of the model. Commonly used in fine-tuning. + + Layers that produce the same feature map spatial size are defined as one + "stage" by :paper:`FPN`. + + Args: + freeze_at (int): number of stages to freeze. + `1` means freezing the stem. `2` means freezing the stem and + one residual stage, etc. + + Returns: + nn.Module: this model itself + """ + if freeze_at >= 1: + self.stem.freeze() + for idx, (stage, _) in enumerate(self.stages_and_names, start=2): + if freeze_at >= idx: + for block in stage.children(): + block.freeze() + return self + + +def adjust_block_compatibility(ws, bs, gs): + """Adjusts the compatibility of widths, bottlenecks, and groups.""" + assert len(ws) == len(bs) == len(gs) + assert all(w > 0 and b > 0 and g > 0 for w, b, g in zip(ws, bs, gs)) + vs = [int(max(1, w * b)) for w, b in zip(ws, bs)] + gs = [int(min(g, v)) for g, v in zip(gs, vs)] + ms = [np.lcm(g, b) if b > 1 else g for g, b in zip(gs, bs)] + vs = [max(m, int(round(v / m) * m)) for v, m in zip(vs, ms)] + ws = [int(v / b) for v, b in zip(vs, bs)] + assert all(w * b % g == 0 for w, b, g in zip(ws, bs, gs)) + return ws, bs, gs + + +def generate_regnet_parameters(w_a, w_0, w_m, d, q=8): + """Generates per stage widths and depths from RegNet parameters.""" + assert w_a >= 0 and w_0 > 0 and w_m > 1 and w_0 % q == 0 + # Generate continuous per-block ws + ws_cont = np.arange(d) * w_a + w_0 + # Generate quantized per-block ws + ks = np.round(np.log(ws_cont / w_0) / np.log(w_m)) + ws_all = w_0 * np.power(w_m, ks) + ws_all = np.round(np.divide(ws_all, q)).astype(int) * q + # Generate per stage ws and ds (assumes ws_all are sorted) + ws, ds = np.unique(ws_all, return_counts=True) + # Compute number of actual stages and total possible stages + num_stages, total_stages = len(ws), ks.max() + 1 + # Convert numpy arrays to lists and return + ws, ds, ws_all, ws_cont = (x.tolist() for x in (ws, ds, ws_all, ws_cont)) + return ws, ds, num_stages, total_stages, ws_all, ws_cont + + +class RegNet(AnyNet): + """RegNet model. See :paper:`dds`.""" + + def __init__( + self, + *, + stem_class, + stem_width, + block_class, + depth, + w_a, + w_0, + w_m, + group_width, + stride=2, + bottleneck_ratio=1.0, + se_ratio=0.0, + activation_class=None, + freeze_at=0, + norm="BN", + out_features=None, + ): + """ + Build a RegNet from the parameterization described in :paper:`dds` Section 3.3. + + Args: + See :class:`AnyNet` for arguments that are not listed here. + depth (int): Total number of blocks in the RegNet. + w_a (float): Factor by which block width would increase prior to quantizing block widths + by stage. See :paper:`dds` Section 3.3. + w_0 (int): Initial block width. See :paper:`dds` Section 3.3. + w_m (float): Parameter controlling block width quantization. + See :paper:`dds` Section 3.3. + group_width (int): Number of channels per group in group convolution, if the block uses + group convolution. + bottleneck_ratio (float): The ratio of the number of bottleneck channels to the number + of block input channels (or, equivalently, output channels), if the block uses a + bottleneck. + stride (int): The stride that each network stage applies to its input. + """ + ws, ds = generate_regnet_parameters(w_a, w_0, w_m, depth)[0:2] + ss = [stride for _ in ws] + bs = [bottleneck_ratio for _ in ws] + gs = [group_width for _ in ws] + ws, bs, gs = adjust_block_compatibility(ws, bs, gs) + + def default_activation_class(): + return nn.ReLU(inplace=True) + + super().__init__( + stem_class=stem_class, + stem_width=stem_width, + block_class=block_class, + depths=ds, + widths=ws, + strides=ss, + group_widths=gs, + bottleneck_ratios=bs, + se_ratio=se_ratio, + activation_class=default_activation_class + if activation_class is None + else activation_class, + freeze_at=freeze_at, + norm=norm, + out_features=out_features, + ) diff --git a/detectron2/detectron2/modeling/backbone/resnet.py b/detectron2/detectron2/modeling/backbone/resnet.py new file mode 100755 index 0000000..5b8e842 --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/resnet.py @@ -0,0 +1,694 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import fvcore.nn.weight_init as weight_init +import torch +import torch.nn.functional as F +from torch import nn + +from detectron2.layers import ( + CNNBlockBase, + Conv2d, + DeformConv, + ModulatedDeformConv, + ShapeSpec, + get_norm, +) + +from .backbone import Backbone +from .build import BACKBONE_REGISTRY + +__all__ = [ + "ResNetBlockBase", + "BasicBlock", + "BottleneckBlock", + "DeformBottleneckBlock", + "BasicStem", + "ResNet", + "make_stage", + "build_resnet_backbone", +] + + +class BasicBlock(CNNBlockBase): + """ + The basic residual block for ResNet-18 and ResNet-34 defined in :paper:`ResNet`, + with two 3x3 conv layers and a projection shortcut if needed. + """ + + def __init__(self, in_channels, out_channels, *, stride=1, norm="BN"): + """ + Args: + in_channels (int): Number of input channels. + out_channels (int): Number of output channels. + stride (int): Stride for the first conv. + norm (str or callable): normalization for all conv layers. + See :func:`layers.get_norm` for supported format. + """ + super().__init__(in_channels, out_channels, stride) + + if in_channels != out_channels: + self.shortcut = Conv2d( + in_channels, + out_channels, + kernel_size=1, + stride=stride, + bias=False, + norm=get_norm(norm, out_channels), + ) + else: + self.shortcut = None + + self.conv1 = Conv2d( + in_channels, + out_channels, + kernel_size=3, + stride=stride, + padding=1, + bias=False, + norm=get_norm(norm, out_channels), + ) + + self.conv2 = Conv2d( + out_channels, + out_channels, + kernel_size=3, + stride=1, + padding=1, + bias=False, + norm=get_norm(norm, out_channels), + ) + + for layer in [self.conv1, self.conv2, self.shortcut]: + if layer is not None: # shortcut can be None + weight_init.c2_msra_fill(layer) + + def forward(self, x): + out = self.conv1(x) + out = F.relu_(out) + out = self.conv2(out) + + if self.shortcut is not None: + shortcut = self.shortcut(x) + else: + shortcut = x + + out += shortcut + out = F.relu_(out) + return out + + +class BottleneckBlock(CNNBlockBase): + """ + The standard bottleneck residual block used by ResNet-50, 101 and 152 + defined in :paper:`ResNet`. It contains 3 conv layers with kernels + 1x1, 3x3, 1x1, and a projection shortcut if needed. + """ + + def __init__( + self, + in_channels, + out_channels, + *, + bottleneck_channels, + stride=1, + num_groups=1, + norm="BN", + stride_in_1x1=False, + dilation=1, + ): + """ + Args: + bottleneck_channels (int): number of output channels for the 3x3 + "bottleneck" conv layers. + num_groups (int): number of groups for the 3x3 conv layer. + norm (str or callable): normalization for all conv layers. + See :func:`layers.get_norm` for supported format. + stride_in_1x1 (bool): when stride>1, whether to put stride in the + first 1x1 convolution or the bottleneck 3x3 convolution. + dilation (int): the dilation rate of the 3x3 conv layer. + """ + super().__init__(in_channels, out_channels, stride) + + if in_channels != out_channels: + self.shortcut = Conv2d( + in_channels, + out_channels, + kernel_size=1, + stride=stride, + bias=False, + norm=get_norm(norm, out_channels), + ) + else: + self.shortcut = None + + # The original MSRA ResNet models have stride in the first 1x1 conv + # The subsequent fb.torch.resnet and Caffe2 ResNe[X]t implementations have + # stride in the 3x3 conv + stride_1x1, stride_3x3 = (stride, 1) if stride_in_1x1 else (1, stride) + + self.conv1 = Conv2d( + in_channels, + bottleneck_channels, + kernel_size=1, + stride=stride_1x1, + bias=False, + norm=get_norm(norm, bottleneck_channels), + ) + + self.conv2 = Conv2d( + bottleneck_channels, + bottleneck_channels, + kernel_size=3, + stride=stride_3x3, + padding=1 * dilation, + bias=False, + groups=num_groups, + dilation=dilation, + norm=get_norm(norm, bottleneck_channels), + ) + + self.conv3 = Conv2d( + bottleneck_channels, + out_channels, + kernel_size=1, + bias=False, + norm=get_norm(norm, out_channels), + ) + + for layer in [self.conv1, self.conv2, self.conv3, self.shortcut]: + if layer is not None: # shortcut can be None + weight_init.c2_msra_fill(layer) + + # Zero-initialize the last normalization in each residual branch, + # so that at the beginning, the residual branch starts with zeros, + # and each residual block behaves like an identity. + # See Sec 5.1 in "Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour": + # "For BN layers, the learnable scaling coefficient γ is initialized + # to be 1, except for each residual block's last BN + # where γ is initialized to be 0." + + # nn.init.constant_(self.conv3.norm.weight, 0) + # TODO this somehow hurts performance when training GN models from scratch. + # Add it as an option when we need to use this code to train a backbone. + + def forward(self, x): + out = self.conv1(x) + out = F.relu_(out) + + out = self.conv2(out) + out = F.relu_(out) + + out = self.conv3(out) + + if self.shortcut is not None: + shortcut = self.shortcut(x) + else: + shortcut = x + + out += shortcut + out = F.relu_(out) + return out + + +class DeformBottleneckBlock(CNNBlockBase): + """ + Similar to :class:`BottleneckBlock`, but with :paper:`deformable conv ` + in the 3x3 convolution. + """ + + def __init__( + self, + in_channels, + out_channels, + *, + bottleneck_channels, + stride=1, + num_groups=1, + norm="BN", + stride_in_1x1=False, + dilation=1, + deform_modulated=False, + deform_num_groups=1, + ): + super().__init__(in_channels, out_channels, stride) + self.deform_modulated = deform_modulated + + if in_channels != out_channels: + self.shortcut = Conv2d( + in_channels, + out_channels, + kernel_size=1, + stride=stride, + bias=False, + norm=get_norm(norm, out_channels), + ) + else: + self.shortcut = None + + stride_1x1, stride_3x3 = (stride, 1) if stride_in_1x1 else (1, stride) + + self.conv1 = Conv2d( + in_channels, + bottleneck_channels, + kernel_size=1, + stride=stride_1x1, + bias=False, + norm=get_norm(norm, bottleneck_channels), + ) + + if deform_modulated: + deform_conv_op = ModulatedDeformConv + # offset channels are 2 or 3 (if with modulated) * kernel_size * kernel_size + offset_channels = 27 + else: + deform_conv_op = DeformConv + offset_channels = 18 + + self.conv2_offset = Conv2d( + bottleneck_channels, + offset_channels * deform_num_groups, + kernel_size=3, + stride=stride_3x3, + padding=1 * dilation, + dilation=dilation, + ) + self.conv2 = deform_conv_op( + bottleneck_channels, + bottleneck_channels, + kernel_size=3, + stride=stride_3x3, + padding=1 * dilation, + bias=False, + groups=num_groups, + dilation=dilation, + deformable_groups=deform_num_groups, + norm=get_norm(norm, bottleneck_channels), + ) + + self.conv3 = Conv2d( + bottleneck_channels, + out_channels, + kernel_size=1, + bias=False, + norm=get_norm(norm, out_channels), + ) + + for layer in [self.conv1, self.conv2, self.conv3, self.shortcut]: + if layer is not None: # shortcut can be None + weight_init.c2_msra_fill(layer) + + nn.init.constant_(self.conv2_offset.weight, 0) + nn.init.constant_(self.conv2_offset.bias, 0) + + def forward(self, x): + out = self.conv1(x) + out = F.relu_(out) + + if self.deform_modulated: + offset_mask = self.conv2_offset(out) + offset_x, offset_y, mask = torch.chunk(offset_mask, 3, dim=1) + offset = torch.cat((offset_x, offset_y), dim=1) + mask = mask.sigmoid() + out = self.conv2(out, offset, mask) + else: + offset = self.conv2_offset(out) + out = self.conv2(out, offset) + out = F.relu_(out) + + out = self.conv3(out) + + if self.shortcut is not None: + shortcut = self.shortcut(x) + else: + shortcut = x + + out += shortcut + out = F.relu_(out) + return out + + +class BasicStem(CNNBlockBase): + """ + The standard ResNet stem (layers before the first residual block), + with a conv, relu and max_pool. + """ + + def __init__(self, in_channels=3, out_channels=64, norm="BN"): + """ + Args: + norm (str or callable): norm after the first conv layer. + See :func:`layers.get_norm` for supported format. + """ + super().__init__(in_channels, out_channels, 4) + self.in_channels = in_channels + self.conv1 = Conv2d( + in_channels, + out_channels, + kernel_size=7, + stride=2, + padding=3, + bias=False, + norm=get_norm(norm, out_channels), + ) + weight_init.c2_msra_fill(self.conv1) + + def forward(self, x): + x = self.conv1(x) + x = F.relu_(x) + x = F.max_pool2d(x, kernel_size=3, stride=2, padding=1) + return x + + +class ResNet(Backbone): + """ + Implement :paper:`ResNet`. + """ + + def __init__(self, stem, stages, num_classes=None, out_features=None, freeze_at=0): + """ + Args: + stem (nn.Module): a stem module + stages (list[list[CNNBlockBase]]): several (typically 4) stages, + each contains multiple :class:`CNNBlockBase`. + num_classes (None or int): if None, will not perform classification. + Otherwise, will create a linear layer. + out_features (list[str]): name of the layers whose outputs should + be returned in forward. Can be anything in "stem", "linear", or "res2" ... + If None, will return the output of the last layer. + freeze_at (int): The number of stages at the beginning to freeze. + see :meth:`freeze` for detailed explanation. + """ + super().__init__() + self.stem = stem + self.num_classes = num_classes + + current_stride = self.stem.stride + self._out_feature_strides = {"stem": current_stride} + self._out_feature_channels = {"stem": self.stem.out_channels} + + self.stage_names, self.stages = [], [] + + if out_features is not None: + # Avoid keeping unused layers in this module. They consume extra memory + # and may cause allreduce to fail + num_stages = max( + [{"res2": 1, "res3": 2, "res4": 3, "res5": 4}.get(f, 0) for f in out_features] + ) + stages = stages[:num_stages] + for i, blocks in enumerate(stages): + assert len(blocks) > 0, len(blocks) + for block in blocks: + assert isinstance(block, CNNBlockBase), block + + name = "res" + str(i + 2) + stage = nn.Sequential(*blocks) + + self.add_module(name, stage) + self.stage_names.append(name) + self.stages.append(stage) + + self._out_feature_strides[name] = current_stride = int( + current_stride * np.prod([k.stride for k in blocks]) + ) + self._out_feature_channels[name] = curr_channels = blocks[-1].out_channels + self.stage_names = tuple(self.stage_names) # Make it static for scripting + + if num_classes is not None: + self.avgpool = nn.AdaptiveAvgPool2d((1, 1)) + self.linear = nn.Linear(curr_channels, num_classes) + + # Sec 5.1 in "Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour": + # "The 1000-way fully-connected layer is initialized by + # drawing weights from a zero-mean Gaussian with standard deviation of 0.01." + nn.init.normal_(self.linear.weight, std=0.01) + name = "linear" + + if out_features is None: + out_features = [name] + self._out_features = out_features + assert len(self._out_features) + children = [x[0] for x in self.named_children()] + for out_feature in self._out_features: + assert out_feature in children, "Available children: {}".format(", ".join(children)) + self.freeze(freeze_at) + + def forward(self, x): + """ + Args: + x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. + + Returns: + dict[str->Tensor]: names and the corresponding features + """ + assert x.dim() == 4, f"ResNet takes an input of shape (N, C, H, W). Got {x.shape} instead!" + outputs = {} + x = self.stem(x) + if "stem" in self._out_features: + outputs["stem"] = x + for name, stage in zip(self.stage_names, self.stages): + x = stage(x) + if name in self._out_features: + outputs[name] = x + if self.num_classes is not None: + x = self.avgpool(x) + x = torch.flatten(x, 1) + x = self.linear(x) + if "linear" in self._out_features: + outputs["linear"] = x + return outputs + + def output_shape(self): + return { + name: ShapeSpec( + channels=self._out_feature_channels[name], stride=self._out_feature_strides[name] + ) + for name in self._out_features + } + + def freeze(self, freeze_at=0): + """ + Freeze the first several stages of the ResNet. Commonly used in + fine-tuning. + + Layers that produce the same feature map spatial size are defined as one + "stage" by :paper:`FPN`. + + Args: + freeze_at (int): number of stages to freeze. + `1` means freezing the stem. `2` means freezing the stem and + one residual stage, etc. + + Returns: + nn.Module: this ResNet itself + """ + if freeze_at >= 1: + self.stem.freeze() + for idx, stage in enumerate(self.stages, start=2): + if freeze_at >= idx: + for block in stage.children(): + block.freeze() + return self + + @staticmethod + def make_stage(block_class, num_blocks, *, in_channels, out_channels, **kwargs): + """ + Create a list of blocks of the same type that forms one ResNet stage. + + Args: + block_class (type): a subclass of CNNBlockBase that's used to create all blocks in this + stage. A module of this type must not change spatial resolution of inputs unless its + stride != 1. + num_blocks (int): number of blocks in this stage + in_channels (int): input channels of the entire stage. + out_channels (int): output channels of **every block** in the stage. + kwargs: other arguments passed to the constructor of + `block_class`. If the argument name is "xx_per_block", the + argument is a list of values to be passed to each block in the + stage. Otherwise, the same argument is passed to every block + in the stage. + + Returns: + list[CNNBlockBase]: a list of block module. + + Examples: + :: + stage = ResNet.make_stage( + BottleneckBlock, 3, in_channels=16, out_channels=64, + bottleneck_channels=16, num_groups=1, + stride_per_block=[2, 1, 1], + dilations_per_block=[1, 1, 2] + ) + + Usually, layers that produce the same feature map spatial size are defined as one + "stage" (in :paper:`FPN`). Under such definition, ``stride_per_block[1:]`` should + all be 1. + """ + blocks = [] + for i in range(num_blocks): + curr_kwargs = {} + for k, v in kwargs.items(): + if k.endswith("_per_block"): + assert len(v) == num_blocks, ( + f"Argument '{k}' of make_stage should have the " + f"same length as num_blocks={num_blocks}." + ) + newk = k[: -len("_per_block")] + assert newk not in kwargs, f"Cannot call make_stage with both {k} and {newk}!" + curr_kwargs[newk] = v[i] + else: + curr_kwargs[k] = v + + blocks.append( + block_class(in_channels=in_channels, out_channels=out_channels, **curr_kwargs) + ) + in_channels = out_channels + return blocks + + @staticmethod + def make_default_stages(depth, block_class=None, **kwargs): + """ + Created list of ResNet stages from pre-defined depth (one of 18, 34, 50, 101, 152). + If it doesn't create the ResNet variant you need, please use :meth:`make_stage` + instead for fine-grained customization. + + Args: + depth (int): depth of ResNet + block_class (type): the CNN block class. Has to accept + `bottleneck_channels` argument for depth > 50. + By default it is BasicBlock or BottleneckBlock, based on the + depth. + kwargs: + other arguments to pass to `make_stage`. Should not contain + stride and channels, as they are predefined for each depth. + + Returns: + list[list[CNNBlockBase]]: modules in all stages; see arguments of + :class:`ResNet.__init__`. + """ + num_blocks_per_stage = { + 18: [2, 2, 2, 2], + 34: [3, 4, 6, 3], + 50: [3, 4, 6, 3], + 101: [3, 4, 23, 3], + 152: [3, 8, 36, 3], + }[depth] + if block_class is None: + block_class = BasicBlock if depth < 50 else BottleneckBlock + if depth < 50: + in_channels = [64, 64, 128, 256] + out_channels = [64, 128, 256, 512] + else: + in_channels = [64, 256, 512, 1024] + out_channels = [256, 512, 1024, 2048] + ret = [] + for (n, s, i, o) in zip(num_blocks_per_stage, [1, 2, 2, 2], in_channels, out_channels): + if depth >= 50: + kwargs["bottleneck_channels"] = o // 4 + ret.append( + ResNet.make_stage( + block_class=block_class, + num_blocks=n, + stride_per_block=[s] + [1] * (n - 1), + in_channels=i, + out_channels=o, + **kwargs, + ) + ) + return ret + + +ResNetBlockBase = CNNBlockBase +""" +Alias for backward compatibiltiy. +""" + + +def make_stage(*args, **kwargs): + """ + Deprecated alias for backward compatibiltiy. + """ + return ResNet.make_stage(*args, **kwargs) + + +@BACKBONE_REGISTRY.register() +def build_resnet_backbone(cfg, input_shape): + """ + Create a ResNet instance from config. + + Returns: + ResNet: a :class:`ResNet` instance. + """ + # need registration of new blocks/stems? + norm = cfg.MODEL.RESNETS.NORM + stem = BasicStem( + in_channels=input_shape.channels, + out_channels=cfg.MODEL.RESNETS.STEM_OUT_CHANNELS, + norm=norm, + ) + + # fmt: off + freeze_at = cfg.MODEL.BACKBONE.FREEZE_AT + out_features = cfg.MODEL.RESNETS.OUT_FEATURES + depth = cfg.MODEL.RESNETS.DEPTH + num_groups = cfg.MODEL.RESNETS.NUM_GROUPS + width_per_group = cfg.MODEL.RESNETS.WIDTH_PER_GROUP + bottleneck_channels = num_groups * width_per_group + in_channels = cfg.MODEL.RESNETS.STEM_OUT_CHANNELS + out_channels = cfg.MODEL.RESNETS.RES2_OUT_CHANNELS + stride_in_1x1 = cfg.MODEL.RESNETS.STRIDE_IN_1X1 + res5_dilation = cfg.MODEL.RESNETS.RES5_DILATION + deform_on_per_stage = cfg.MODEL.RESNETS.DEFORM_ON_PER_STAGE + deform_modulated = cfg.MODEL.RESNETS.DEFORM_MODULATED + deform_num_groups = cfg.MODEL.RESNETS.DEFORM_NUM_GROUPS + # fmt: on + assert res5_dilation in {1, 2}, "res5_dilation cannot be {}.".format(res5_dilation) + + num_blocks_per_stage = { + 18: [2, 2, 2, 2], + 34: [3, 4, 6, 3], + 50: [3, 4, 6, 3], + 101: [3, 4, 23, 3], + 152: [3, 8, 36, 3], + }[depth] + + if depth in [18, 34]: + assert out_channels == 64, "Must set MODEL.RESNETS.RES2_OUT_CHANNELS = 64 for R18/R34" + assert not any( + deform_on_per_stage + ), "MODEL.RESNETS.DEFORM_ON_PER_STAGE unsupported for R18/R34" + assert res5_dilation == 1, "Must set MODEL.RESNETS.RES5_DILATION = 1 for R18/R34" + assert num_groups == 1, "Must set MODEL.RESNETS.NUM_GROUPS = 1 for R18/R34" + + stages = [] + + for idx, stage_idx in enumerate(range(2, 6)): + # res5_dilation is used this way as a convention in R-FCN & Deformable Conv paper + dilation = res5_dilation if stage_idx == 5 else 1 + first_stride = 1 if idx == 0 or (stage_idx == 5 and dilation == 2) else 2 + stage_kargs = { + "num_blocks": num_blocks_per_stage[idx], + "stride_per_block": [first_stride] + [1] * (num_blocks_per_stage[idx] - 1), + "in_channels": in_channels, + "out_channels": out_channels, + "norm": norm, + } + # Use BasicBlock for R18 and R34. + if depth in [18, 34]: + stage_kargs["block_class"] = BasicBlock + else: + stage_kargs["bottleneck_channels"] = bottleneck_channels + stage_kargs["stride_in_1x1"] = stride_in_1x1 + stage_kargs["dilation"] = dilation + stage_kargs["num_groups"] = num_groups + if deform_on_per_stage[idx]: + stage_kargs["block_class"] = DeformBottleneckBlock + stage_kargs["deform_modulated"] = deform_modulated + stage_kargs["deform_num_groups"] = deform_num_groups + else: + stage_kargs["block_class"] = BottleneckBlock + blocks = ResNet.make_stage(**stage_kargs) + in_channels = out_channels + out_channels *= 2 + bottleneck_channels *= 2 + stages.append(blocks) + return ResNet(stem, stages, out_features=out_features, freeze_at=freeze_at) diff --git a/detectron2/detectron2/modeling/backbone/swin.py b/detectron2/detectron2/modeling/backbone/swin.py new file mode 100755 index 0000000..780b6fc --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/swin.py @@ -0,0 +1,695 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +""" +Implementation of Swin models from :paper:`swin`. + +This code is adapted from https://github.com/SwinTransformer/Swin-Transformer-Object-Detection/blob/master/mmdet/models/backbones/swin_transformer.py with minimal modifications. # noqa +-------------------------------------------------------- +Swin Transformer +Copyright (c) 2021 Microsoft +Licensed under The MIT License [see LICENSE for details] +Written by Ze Liu, Yutong Lin, Yixuan Wei +-------------------------------------------------------- +LICENSE: https://github.com/SwinTransformer/Swin-Transformer-Object-Detection/blob/461e003166a8083d0b620beacd4662a2df306bd6/LICENSE +""" + +import numpy as np +import torch +import torch.nn as nn +import torch.nn.functional as F +import torch.utils.checkpoint as checkpoint + +from detectron2.modeling.backbone.backbone import Backbone + +_to_2tuple = nn.modules.utils._ntuple(2) + + +class Mlp(nn.Module): + """Multilayer perceptron.""" + + def __init__( + self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0 + ): + super().__init__() + out_features = out_features or in_features + hidden_features = hidden_features or in_features + self.fc1 = nn.Linear(in_features, hidden_features) + self.act = act_layer() + self.fc2 = nn.Linear(hidden_features, out_features) + self.drop = nn.Dropout(drop) + + def forward(self, x): + x = self.fc1(x) + x = self.act(x) + x = self.drop(x) + x = self.fc2(x) + x = self.drop(x) + return x + + +def window_partition(x, window_size): + """ + Args: + x: (B, H, W, C) + window_size (int): window size + Returns: + windows: (num_windows*B, window_size, window_size, C) + """ + B, H, W, C = x.shape + x = x.view(B, H // window_size, window_size, W // window_size, window_size, C) + windows = x.permute(0, 1, 3, 2, 4, 5).contiguous().view(-1, window_size, window_size, C) + return windows + + +def window_reverse(windows, window_size, H, W): + """ + Args: + windows: (num_windows*B, window_size, window_size, C) + window_size (int): Window size + H (int): Height of image + W (int): Width of image + Returns: + x: (B, H, W, C) + """ + B = int(windows.shape[0] / (H * W / window_size / window_size)) + x = windows.view(B, H // window_size, W // window_size, window_size, window_size, -1) + x = x.permute(0, 1, 3, 2, 4, 5).contiguous().view(B, H, W, -1) + return x + + +class WindowAttention(nn.Module): + """Window based multi-head self attention (W-MSA) module with relative position bias. + It supports both of shifted and non-shifted window. + Args: + dim (int): Number of input channels. + window_size (tuple[int]): The height and width of the window. + num_heads (int): Number of attention heads. + qkv_bias (bool, optional): If True, add a learnable bias to query, key, value. + Default: True + qk_scale (float | None, optional): Override default qk scale of head_dim ** -0.5 if set + attn_drop (float, optional): Dropout ratio of attention weight. Default: 0.0 + proj_drop (float, optional): Dropout ratio of output. Default: 0.0 + """ + + def __init__( + self, + dim, + window_size, + num_heads, + qkv_bias=True, + qk_scale=None, + attn_drop=0.0, + proj_drop=0.0, + ): + + super().__init__() + self.dim = dim + self.window_size = window_size # Wh, Ww + self.num_heads = num_heads + head_dim = dim // num_heads + self.scale = qk_scale or head_dim**-0.5 + + # define a parameter table of relative position bias + self.relative_position_bias_table = nn.Parameter( + torch.zeros((2 * window_size[0] - 1) * (2 * window_size[1] - 1), num_heads) + ) # 2*Wh-1 * 2*Ww-1, nH + + # get pair-wise relative position index for each token inside the window + coords_h = torch.arange(self.window_size[0]) + coords_w = torch.arange(self.window_size[1]) + coords = torch.stack(torch.meshgrid([coords_h, coords_w])) # 2, Wh, Ww + coords_flatten = torch.flatten(coords, 1) # 2, Wh*Ww + relative_coords = coords_flatten[:, :, None] - coords_flatten[:, None, :] # 2, Wh*Ww, Wh*Ww + relative_coords = relative_coords.permute(1, 2, 0).contiguous() # Wh*Ww, Wh*Ww, 2 + relative_coords[:, :, 0] += self.window_size[0] - 1 # shift to start from 0 + relative_coords[:, :, 1] += self.window_size[1] - 1 + relative_coords[:, :, 0] *= 2 * self.window_size[1] - 1 + relative_position_index = relative_coords.sum(-1) # Wh*Ww, Wh*Ww + self.register_buffer("relative_position_index", relative_position_index) + + self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias) + self.attn_drop = nn.Dropout(attn_drop) + self.proj = nn.Linear(dim, dim) + self.proj_drop = nn.Dropout(proj_drop) + + nn.init.trunc_normal_(self.relative_position_bias_table, std=0.02) + self.softmax = nn.Softmax(dim=-1) + + def forward(self, x, mask=None): + """Forward function. + Args: + x: input features with shape of (num_windows*B, N, C) + mask: (0/-inf) mask with shape of (num_windows, Wh*Ww, Wh*Ww) or None + """ + B_, N, C = x.shape + qkv = ( + self.qkv(x) + .reshape(B_, N, 3, self.num_heads, C // self.num_heads) + .permute(2, 0, 3, 1, 4) + ) + q, k, v = qkv[0], qkv[1], qkv[2] # make torchscript happy (cannot use tensor as tuple) + + q = q * self.scale + attn = q @ k.transpose(-2, -1) + + relative_position_bias = self.relative_position_bias_table[ + self.relative_position_index.view(-1) + ].view( + self.window_size[0] * self.window_size[1], self.window_size[0] * self.window_size[1], -1 + ) # Wh*Ww,Wh*Ww,nH + relative_position_bias = relative_position_bias.permute( + 2, 0, 1 + ).contiguous() # nH, Wh*Ww, Wh*Ww + attn = attn + relative_position_bias.unsqueeze(0) + + if mask is not None: + nW = mask.shape[0] + attn = attn.view(B_ // nW, nW, self.num_heads, N, N) + mask.unsqueeze(1).unsqueeze(0) + attn = attn.view(-1, self.num_heads, N, N) + attn = self.softmax(attn) + else: + attn = self.softmax(attn) + + attn = self.attn_drop(attn) + + x = (attn @ v).transpose(1, 2).reshape(B_, N, C) + x = self.proj(x) + x = self.proj_drop(x) + return x + + +class SwinTransformerBlock(nn.Module): + """Swin Transformer Block. + Args: + dim (int): Number of input channels. + num_heads (int): Number of attention heads. + window_size (int): Window size. + shift_size (int): Shift size for SW-MSA. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. + qkv_bias (bool, optional): If True, add a learnable bias to query, key, value. Default: True + qk_scale (float | None, optional): Override default qk scale of head_dim ** -0.5 if set. + drop (float, optional): Dropout rate. Default: 0.0 + attn_drop (float, optional): Attention dropout rate. Default: 0.0 + drop_path (float, optional): Stochastic depth rate. Default: 0.0 + act_layer (nn.Module, optional): Activation layer. Default: nn.GELU + norm_layer (nn.Module, optional): Normalization layer. Default: nn.LayerNorm + """ + + def __init__( + self, + dim, + num_heads, + window_size=7, + shift_size=0, + mlp_ratio=4.0, + qkv_bias=True, + qk_scale=None, + drop=0.0, + attn_drop=0.0, + drop_path=0.0, + act_layer=nn.GELU, + norm_layer=nn.LayerNorm, + ): + super().__init__() + self.dim = dim + self.num_heads = num_heads + self.window_size = window_size + self.shift_size = shift_size + self.mlp_ratio = mlp_ratio + assert 0 <= self.shift_size < self.window_size, "shift_size must in 0-window_size" + + self.norm1 = norm_layer(dim) + self.attn = WindowAttention( + dim, + window_size=_to_2tuple(self.window_size), + num_heads=num_heads, + qkv_bias=qkv_bias, + qk_scale=qk_scale, + attn_drop=attn_drop, + proj_drop=drop, + ) + + if drop_path > 0.0: + from timm.models.layers import DropPath + + self.drop_path = DropPath(drop_path) + else: + self.drop_path = nn.Identity() + self.norm2 = norm_layer(dim) + mlp_hidden_dim = int(dim * mlp_ratio) + self.mlp = Mlp( + in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop + ) + + self.H = None + self.W = None + + def forward(self, x, mask_matrix): + """Forward function. + Args: + x: Input feature, tensor size (B, H*W, C). + H, W: Spatial resolution of the input feature. + mask_matrix: Attention mask for cyclic shift. + """ + B, L, C = x.shape + H, W = self.H, self.W + assert L == H * W, "input feature has wrong size" + + shortcut = x + x = self.norm1(x) + x = x.view(B, H, W, C) + + # pad feature maps to multiples of window size + pad_l = pad_t = 0 + pad_r = (self.window_size - W % self.window_size) % self.window_size + pad_b = (self.window_size - H % self.window_size) % self.window_size + x = F.pad(x, (0, 0, pad_l, pad_r, pad_t, pad_b)) + _, Hp, Wp, _ = x.shape + + # cyclic shift + if self.shift_size > 0: + shifted_x = torch.roll(x, shifts=(-self.shift_size, -self.shift_size), dims=(1, 2)) + attn_mask = mask_matrix + else: + shifted_x = x + attn_mask = None + + # partition windows + x_windows = window_partition( + shifted_x, self.window_size + ) # nW*B, window_size, window_size, C + x_windows = x_windows.view( + -1, self.window_size * self.window_size, C + ) # nW*B, window_size*window_size, C + + # W-MSA/SW-MSA + attn_windows = self.attn(x_windows, mask=attn_mask) # nW*B, window_size*window_size, C + + # merge windows + attn_windows = attn_windows.view(-1, self.window_size, self.window_size, C) + shifted_x = window_reverse(attn_windows, self.window_size, Hp, Wp) # B H' W' C + + # reverse cyclic shift + if self.shift_size > 0: + x = torch.roll(shifted_x, shifts=(self.shift_size, self.shift_size), dims=(1, 2)) + else: + x = shifted_x + + if pad_r > 0 or pad_b > 0: + x = x[:, :H, :W, :].contiguous() + + x = x.view(B, H * W, C) + + # FFN + x = shortcut + self.drop_path(x) + x = x + self.drop_path(self.mlp(self.norm2(x))) + + return x + + +class PatchMerging(nn.Module): + """Patch Merging Layer + Args: + dim (int): Number of input channels. + norm_layer (nn.Module, optional): Normalization layer. Default: nn.LayerNorm + """ + + def __init__(self, dim, norm_layer=nn.LayerNorm): + super().__init__() + self.dim = dim + self.reduction = nn.Linear(4 * dim, 2 * dim, bias=False) + self.norm = norm_layer(4 * dim) + + def forward(self, x, H, W): + """Forward function. + Args: + x: Input feature, tensor size (B, H*W, C). + H, W: Spatial resolution of the input feature. + """ + B, L, C = x.shape + assert L == H * W, "input feature has wrong size" + + x = x.view(B, H, W, C) + + # padding + pad_input = (H % 2 == 1) or (W % 2 == 1) + if pad_input: + x = F.pad(x, (0, 0, 0, W % 2, 0, H % 2)) + + x0 = x[:, 0::2, 0::2, :] # B H/2 W/2 C + x1 = x[:, 1::2, 0::2, :] # B H/2 W/2 C + x2 = x[:, 0::2, 1::2, :] # B H/2 W/2 C + x3 = x[:, 1::2, 1::2, :] # B H/2 W/2 C + x = torch.cat([x0, x1, x2, x3], -1) # B H/2 W/2 4*C + x = x.view(B, -1, 4 * C) # B H/2*W/2 4*C + + x = self.norm(x) + x = self.reduction(x) + + return x + + +class BasicLayer(nn.Module): + """A basic Swin Transformer layer for one stage. + Args: + dim (int): Number of feature channels + depth (int): Depths of this stage. + num_heads (int): Number of attention head. + window_size (int): Local window size. Default: 7. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. Default: 4. + qkv_bias (bool, optional): If True, add a learnable bias to query, key, value. Default: True + qk_scale (float | None, optional): Override default qk scale of head_dim ** -0.5 if set. + drop (float, optional): Dropout rate. Default: 0.0 + attn_drop (float, optional): Attention dropout rate. Default: 0.0 + drop_path (float | tuple[float], optional): Stochastic depth rate. Default: 0.0 + norm_layer (nn.Module, optional): Normalization layer. Default: nn.LayerNorm + downsample (nn.Module | None, optional): Downsample layer at the end of the layer. + Default: None + use_checkpoint (bool): Whether to use checkpointing to save memory. Default: False. + """ + + def __init__( + self, + dim, + depth, + num_heads, + window_size=7, + mlp_ratio=4.0, + qkv_bias=True, + qk_scale=None, + drop=0.0, + attn_drop=0.0, + drop_path=0.0, + norm_layer=nn.LayerNorm, + downsample=None, + use_checkpoint=False, + ): + super().__init__() + self.window_size = window_size + self.shift_size = window_size // 2 + self.depth = depth + self.use_checkpoint = use_checkpoint + + # build blocks + self.blocks = nn.ModuleList( + [ + SwinTransformerBlock( + dim=dim, + num_heads=num_heads, + window_size=window_size, + shift_size=0 if (i % 2 == 0) else window_size // 2, + mlp_ratio=mlp_ratio, + qkv_bias=qkv_bias, + qk_scale=qk_scale, + drop=drop, + attn_drop=attn_drop, + drop_path=drop_path[i] if isinstance(drop_path, list) else drop_path, + norm_layer=norm_layer, + ) + for i in range(depth) + ] + ) + + # patch merging layer + if downsample is not None: + self.downsample = downsample(dim=dim, norm_layer=norm_layer) + else: + self.downsample = None + + def forward(self, x, H, W): + """Forward function. + Args: + x: Input feature, tensor size (B, H*W, C). + H, W: Spatial resolution of the input feature. + """ + + # calculate attention mask for SW-MSA + Hp = int(np.ceil(H / self.window_size)) * self.window_size + Wp = int(np.ceil(W / self.window_size)) * self.window_size + img_mask = torch.zeros((1, Hp, Wp, 1), device=x.device) # 1 Hp Wp 1 + h_slices = ( + slice(0, -self.window_size), + slice(-self.window_size, -self.shift_size), + slice(-self.shift_size, None), + ) + w_slices = ( + slice(0, -self.window_size), + slice(-self.window_size, -self.shift_size), + slice(-self.shift_size, None), + ) + cnt = 0 + for h in h_slices: + for w in w_slices: + img_mask[:, h, w, :] = cnt + cnt += 1 + + mask_windows = window_partition( + img_mask, self.window_size + ) # nW, window_size, window_size, 1 + mask_windows = mask_windows.view(-1, self.window_size * self.window_size) + attn_mask = mask_windows.unsqueeze(1) - mask_windows.unsqueeze(2) + attn_mask = attn_mask.masked_fill(attn_mask != 0, float(-100.0)).masked_fill( + attn_mask == 0, float(0.0) + ) + + for blk in self.blocks: + blk.H, blk.W = H, W + if self.use_checkpoint: + x = checkpoint.checkpoint(blk, x, attn_mask) + else: + x = blk(x, attn_mask) + if self.downsample is not None: + x_down = self.downsample(x, H, W) + Wh, Ww = (H + 1) // 2, (W + 1) // 2 + return x, H, W, x_down, Wh, Ww + else: + return x, H, W, x, H, W + + +class PatchEmbed(nn.Module): + """Image to Patch Embedding + Args: + patch_size (int): Patch token size. Default: 4. + in_chans (int): Number of input image channels. Default: 3. + embed_dim (int): Number of linear projection output channels. Default: 96. + norm_layer (nn.Module, optional): Normalization layer. Default: None + """ + + def __init__(self, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None): + super().__init__() + patch_size = _to_2tuple(patch_size) + self.patch_size = patch_size + + self.in_chans = in_chans + self.embed_dim = embed_dim + + self.proj = nn.Conv2d(in_chans, embed_dim, kernel_size=patch_size, stride=patch_size) + if norm_layer is not None: + self.norm = norm_layer(embed_dim) + else: + self.norm = None + + def forward(self, x): + """Forward function.""" + # padding + _, _, H, W = x.size() + if W % self.patch_size[1] != 0: + x = F.pad(x, (0, self.patch_size[1] - W % self.patch_size[1])) + if H % self.patch_size[0] != 0: + x = F.pad(x, (0, 0, 0, self.patch_size[0] - H % self.patch_size[0])) + + x = self.proj(x) # B C Wh Ww + if self.norm is not None: + Wh, Ww = x.size(2), x.size(3) + x = x.flatten(2).transpose(1, 2) + x = self.norm(x) + x = x.transpose(1, 2).view(-1, self.embed_dim, Wh, Ww) + + return x + + +class SwinTransformer(Backbone): + """Swin Transformer backbone. + A PyTorch impl of : `Swin Transformer: Hierarchical Vision Transformer using Shifted + Windows` - https://arxiv.org/pdf/2103.14030 + Args: + pretrain_img_size (int): Input image size for training the pretrained model, + used in absolute postion embedding. Default 224. + patch_size (int | tuple(int)): Patch size. Default: 4. + in_chans (int): Number of input image channels. Default: 3. + embed_dim (int): Number of linear projection output channels. Default: 96. + depths (tuple[int]): Depths of each Swin Transformer stage. + num_heads (tuple[int]): Number of attention head of each stage. + window_size (int): Window size. Default: 7. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. Default: 4. + qkv_bias (bool): If True, add a learnable bias to query, key, value. Default: True + qk_scale (float): Override default qk scale of head_dim ** -0.5 if set. + drop_rate (float): Dropout rate. + attn_drop_rate (float): Attention dropout rate. Default: 0. + drop_path_rate (float): Stochastic depth rate. Default: 0.2. + norm_layer (nn.Module): Normalization layer. Default: nn.LayerNorm. + ape (bool): If True, add absolute position embedding to the patch embedding. Default: False. + patch_norm (bool): If True, add normalization after patch embedding. Default: True. + out_indices (Sequence[int]): Output from which stages. + frozen_stages (int): Stages to be frozen (stop grad and set eval mode). + -1 means not freezing any parameters. + use_checkpoint (bool): Whether to use checkpointing to save memory. Default: False. + """ + + def __init__( + self, + pretrain_img_size=224, + patch_size=4, + in_chans=3, + embed_dim=96, + depths=(2, 2, 6, 2), + num_heads=(3, 6, 12, 24), + window_size=7, + mlp_ratio=4.0, + qkv_bias=True, + qk_scale=None, + drop_rate=0.0, + attn_drop_rate=0.0, + drop_path_rate=0.2, + norm_layer=nn.LayerNorm, + ape=False, + patch_norm=True, + out_indices=(0, 1, 2, 3), + frozen_stages=-1, + use_checkpoint=False, + ): + super().__init__() + + self.pretrain_img_size = pretrain_img_size + self.num_layers = len(depths) + self.embed_dim = embed_dim + self.ape = ape + self.patch_norm = patch_norm + self.out_indices = out_indices + self.frozen_stages = frozen_stages + + # split image into non-overlapping patches + self.patch_embed = PatchEmbed( + patch_size=patch_size, + in_chans=in_chans, + embed_dim=embed_dim, + norm_layer=norm_layer if self.patch_norm else None, + ) + + # absolute position embedding + if self.ape: + pretrain_img_size = _to_2tuple(pretrain_img_size) + patch_size = _to_2tuple(patch_size) + patches_resolution = [ + pretrain_img_size[0] // patch_size[0], + pretrain_img_size[1] // patch_size[1], + ] + + self.absolute_pos_embed = nn.Parameter( + torch.zeros(1, embed_dim, patches_resolution[0], patches_resolution[1]) + ) + nn.init.trunc_normal_(self.absolute_pos_embed, std=0.02) + + self.pos_drop = nn.Dropout(p=drop_rate) + + # stochastic depth + dpr = [ + x.item() for x in torch.linspace(0, drop_path_rate, sum(depths)) + ] # stochastic depth decay rule + + # build layers + self.layers = nn.ModuleList() + for i_layer in range(self.num_layers): + layer = BasicLayer( + dim=int(embed_dim * 2**i_layer), + depth=depths[i_layer], + num_heads=num_heads[i_layer], + window_size=window_size, + mlp_ratio=mlp_ratio, + qkv_bias=qkv_bias, + qk_scale=qk_scale, + drop=drop_rate, + attn_drop=attn_drop_rate, + drop_path=dpr[sum(depths[:i_layer]) : sum(depths[: i_layer + 1])], + norm_layer=norm_layer, + downsample=PatchMerging if (i_layer < self.num_layers - 1) else None, + use_checkpoint=use_checkpoint, + ) + self.layers.append(layer) + + num_features = [int(embed_dim * 2**i) for i in range(self.num_layers)] + self.num_features = num_features + + # add a norm layer for each output + for i_layer in out_indices: + layer = norm_layer(num_features[i_layer]) + layer_name = f"norm{i_layer}" + self.add_module(layer_name, layer) + + self._freeze_stages() + self._out_features = ["p{}".format(i) for i in self.out_indices] + self._out_feature_channels = { + "p{}".format(i): self.embed_dim * 2**i for i in self.out_indices + } + self._out_feature_strides = {"p{}".format(i): 2 ** (i + 2) for i in self.out_indices} + self._size_devisibility = 32 + + self.apply(self._init_weights) + + def _freeze_stages(self): + if self.frozen_stages >= 0: + self.patch_embed.eval() + for param in self.patch_embed.parameters(): + param.requires_grad = False + + if self.frozen_stages >= 1 and self.ape: + self.absolute_pos_embed.requires_grad = False + + if self.frozen_stages >= 2: + self.pos_drop.eval() + for i in range(0, self.frozen_stages - 1): + m = self.layers[i] + m.eval() + for param in m.parameters(): + param.requires_grad = False + + def _init_weights(self, m): + if isinstance(m, nn.Linear): + nn.init.trunc_normal_(m.weight, std=0.02) + if isinstance(m, nn.Linear) and m.bias is not None: + nn.init.constant_(m.bias, 0) + elif isinstance(m, nn.LayerNorm): + nn.init.constant_(m.bias, 0) + nn.init.constant_(m.weight, 1.0) + + @property + def size_divisibility(self): + return self._size_divisibility + + def forward(self, x): + """Forward function.""" + x = self.patch_embed(x) + + Wh, Ww = x.size(2), x.size(3) + if self.ape: + # interpolate the position embedding to the corresponding size + absolute_pos_embed = F.interpolate( + self.absolute_pos_embed, size=(Wh, Ww), mode="bicubic" + ) + x = (x + absolute_pos_embed).flatten(2).transpose(1, 2) # B Wh*Ww C + else: + x = x.flatten(2).transpose(1, 2) + x = self.pos_drop(x) + + outs = {} + for i in range(self.num_layers): + layer = self.layers[i] + x_out, H, W, x, Wh, Ww = layer(x, Wh, Ww) + + if i in self.out_indices: + norm_layer = getattr(self, f"norm{i}") + x_out = norm_layer(x_out) + + out = x_out.view(-1, H, W, self.num_features[i]).permute(0, 3, 1, 2).contiguous() + outs["p{}".format(i)] = out + + return outs diff --git a/detectron2/detectron2/modeling/backbone/utils.py b/detectron2/detectron2/modeling/backbone/utils.py new file mode 100755 index 0000000..2b89a4c --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/utils.py @@ -0,0 +1,186 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import math +import torch +import torch.nn as nn +import torch.nn.functional as F + +__all__ = [ + "window_partition", + "window_unpartition", + "add_decomposed_rel_pos", + "get_abs_pos", + "PatchEmbed", +] + + +def window_partition(x, window_size): + """ + Partition into non-overlapping windows with padding if needed. + Args: + x (tensor): input tokens with [B, H, W, C]. + window_size (int): window size. + + Returns: + windows: windows after partition with [B * num_windows, window_size, window_size, C]. + (Hp, Wp): padded height and width before partition + """ + B, H, W, C = x.shape + + pad_h = (window_size - H % window_size) % window_size + pad_w = (window_size - W % window_size) % window_size + if pad_h > 0 or pad_w > 0: + x = F.pad(x, (0, 0, 0, pad_w, 0, pad_h)) + Hp, Wp = H + pad_h, W + pad_w + + x = x.view(B, Hp // window_size, window_size, Wp // window_size, window_size, C) + windows = x.permute(0, 1, 3, 2, 4, 5).contiguous().view(-1, window_size, window_size, C) + return windows, (Hp, Wp) + + +def window_unpartition(windows, window_size, pad_hw, hw): + """ + Window unpartition into original sequences and removing padding. + Args: + x (tensor): input tokens with [B * num_windows, window_size, window_size, C]. + window_size (int): window size. + pad_hw (Tuple): padded height and width (Hp, Wp). + hw (Tuple): original height and width (H, W) before padding. + + Returns: + x: unpartitioned sequences with [B, H, W, C]. + """ + Hp, Wp = pad_hw + H, W = hw + B = windows.shape[0] // (Hp * Wp // window_size // window_size) + x = windows.view(B, Hp // window_size, Wp // window_size, window_size, window_size, -1) + x = x.permute(0, 1, 3, 2, 4, 5).contiguous().view(B, Hp, Wp, -1) + + if Hp > H or Wp > W: + x = x[:, :H, :W, :].contiguous() + return x + + +def get_rel_pos(q_size, k_size, rel_pos): + """ + Get relative positional embeddings according to the relative positions of + query and key sizes. + Args: + q_size (int): size of query q. + k_size (int): size of key k. + rel_pos (Tensor): relative position embeddings (L, C). + + Returns: + Extracted positional embeddings according to relative positions. + """ + max_rel_dist = int(2 * max(q_size, k_size) - 1) + # Interpolate rel pos if needed. + if rel_pos.shape[0] != max_rel_dist: + # Interpolate rel pos. + rel_pos_resized = F.interpolate( + rel_pos.reshape(1, rel_pos.shape[0], -1).permute(0, 2, 1), + size=max_rel_dist, + mode="linear", + ) + rel_pos_resized = rel_pos_resized.reshape(-1, max_rel_dist).permute(1, 0) + else: + rel_pos_resized = rel_pos + + # Scale the coords with short length if shapes for q and k are different. + q_coords = torch.arange(q_size)[:, None] * max(k_size / q_size, 1.0) + k_coords = torch.arange(k_size)[None, :] * max(q_size / k_size, 1.0) + relative_coords = (q_coords - k_coords) + (k_size - 1) * max(q_size / k_size, 1.0) + + return rel_pos_resized[relative_coords.long()] + + +def add_decomposed_rel_pos(attn, q, rel_pos_h, rel_pos_w, q_size, k_size): + """ + Calculate decomposed Relative Positional Embeddings from :paper:`mvitv2`. + https://github.com/facebookresearch/mvit/blob/19786631e330df9f3622e5402b4a419a263a2c80/mvit/models/attention.py # noqa B950 + Args: + attn (Tensor): attention map. + q (Tensor): query q in the attention layer with shape (B, q_h * q_w, C). + rel_pos_h (Tensor): relative position embeddings (Lh, C) for height axis. + rel_pos_w (Tensor): relative position embeddings (Lw, C) for width axis. + q_size (Tuple): spatial sequence size of query q with (q_h, q_w). + k_size (Tuple): spatial sequence size of key k with (k_h, k_w). + + Returns: + attn (Tensor): attention map with added relative positional embeddings. + """ + q_h, q_w = q_size + k_h, k_w = k_size + Rh = get_rel_pos(q_h, k_h, rel_pos_h) + Rw = get_rel_pos(q_w, k_w, rel_pos_w) + + B, _, dim = q.shape + r_q = q.reshape(B, q_h, q_w, dim) + rel_h = torch.einsum("bhwc,hkc->bhwk", r_q, Rh) + rel_w = torch.einsum("bhwc,wkc->bhwk", r_q, Rw) + + attn = ( + attn.view(B, q_h, q_w, k_h, k_w) + rel_h[:, :, :, :, None] + rel_w[:, :, :, None, :] + ).view(B, q_h * q_w, k_h * k_w) + + return attn + + +def get_abs_pos(abs_pos, has_cls_token, hw): + """ + Calculate absolute positional embeddings. If needed, resize embeddings and remove cls_token + dimension for the original embeddings. + Args: + abs_pos (Tensor): absolute positional embeddings with (1, num_position, C). + has_cls_token (bool): If true, has 1 embedding in abs_pos for cls token. + hw (Tuple): size of input image tokens. + + Returns: + Absolute positional embeddings after processing with shape (1, H, W, C) + """ + h, w = hw + if has_cls_token: + abs_pos = abs_pos[:, 1:] + xy_num = abs_pos.shape[1] + size = int(math.sqrt(xy_num)) + assert size * size == xy_num + + if size != h or size != w: + new_abs_pos = F.interpolate( + abs_pos.reshape(1, size, size, -1).permute(0, 3, 1, 2), + size=(h, w), + mode="bicubic", + align_corners=False, + ) + + return new_abs_pos.permute(0, 2, 3, 1) + else: + return abs_pos.reshape(1, h, w, -1) + + +class PatchEmbed(nn.Module): + """ + Image to Patch Embedding. + """ + + def __init__( + self, kernel_size=(16, 16), stride=(16, 16), padding=(0, 0), in_chans=3, embed_dim=768 + ): + """ + Args: + kernel_size (Tuple): kernel size of the projection layer. + stride (Tuple): stride of the projection layer. + padding (Tuple): padding size of the projection layer. + in_chans (int): Number of input image channels. + embed_dim (int): embed_dim (int): Patch embedding dimension. + """ + super().__init__() + + self.proj = nn.Conv2d( + in_chans, embed_dim, kernel_size=kernel_size, stride=stride, padding=padding + ) + + def forward(self, x): + x = self.proj(x) + # B C H W -> B H W C + x = x.permute(0, 2, 3, 1) + return x diff --git a/detectron2/detectron2/modeling/backbone/vit.py b/detectron2/detectron2/modeling/backbone/vit.py new file mode 100755 index 0000000..31cc28a --- /dev/null +++ b/detectron2/detectron2/modeling/backbone/vit.py @@ -0,0 +1,524 @@ +import logging +import math +import fvcore.nn.weight_init as weight_init +import torch +import torch.nn as nn + +from detectron2.layers import CNNBlockBase, Conv2d, get_norm +from detectron2.modeling.backbone.fpn import _assert_strides_are_log2_contiguous + +from .backbone import Backbone +from .utils import ( + PatchEmbed, + add_decomposed_rel_pos, + get_abs_pos, + window_partition, + window_unpartition, +) + +logger = logging.getLogger(__name__) + + +__all__ = ["ViT", "SimpleFeaturePyramid", "get_vit_lr_decay_rate"] + + +class Attention(nn.Module): + """Multi-head Attention block with relative position embeddings.""" + + def __init__( + self, + dim, + num_heads=8, + qkv_bias=True, + use_rel_pos=False, + rel_pos_zero_init=True, + input_size=None, + ): + """ + Args: + dim (int): Number of input channels. + num_heads (int): Number of attention heads. + qkv_bias (bool: If True, add a learnable bias to query, key, value. + rel_pos (bool): If True, add relative positional embeddings to the attention map. + rel_pos_zero_init (bool): If True, zero initialize relative positional parameters. + input_size (int or None): Input resolution for calculating the relative positional + parameter size. + """ + super().__init__() + self.num_heads = num_heads + head_dim = dim // num_heads + self.scale = head_dim**-0.5 + + self.qkv = nn.Linear(dim, dim * 3, bias=qkv_bias) + self.proj = nn.Linear(dim, dim) + + self.use_rel_pos = use_rel_pos + if self.use_rel_pos: + # initialize relative positional embeddings + self.rel_pos_h = nn.Parameter(torch.zeros(2 * input_size[0] - 1, head_dim)) + self.rel_pos_w = nn.Parameter(torch.zeros(2 * input_size[1] - 1, head_dim)) + + if not rel_pos_zero_init: + nn.init.trunc_normal_(self.rel_pos_h, std=0.02) + nn.init.trunc_normal_(self.rel_pos_w, std=0.02) + + def forward(self, x): + B, H, W, _ = x.shape + # qkv with shape (3, B, nHead, H * W, C) + qkv = self.qkv(x).reshape(B, H * W, 3, self.num_heads, -1).permute(2, 0, 3, 1, 4) + # q, k, v with shape (B * nHead, H * W, C) + q, k, v = qkv.reshape(3, B * self.num_heads, H * W, -1).unbind(0) + + attn = (q * self.scale) @ k.transpose(-2, -1) + + if self.use_rel_pos: + attn = add_decomposed_rel_pos(attn, q, self.rel_pos_h, self.rel_pos_w, (H, W), (H, W)) + + attn = attn.softmax(dim=-1) + x = (attn @ v).view(B, self.num_heads, H, W, -1).permute(0, 2, 3, 1, 4).reshape(B, H, W, -1) + x = self.proj(x) + + return x + + +class ResBottleneckBlock(CNNBlockBase): + """ + The standard bottleneck residual block without the last activation layer. + It contains 3 conv layers with kernels 1x1, 3x3, 1x1. + """ + + def __init__( + self, + in_channels, + out_channels, + bottleneck_channels, + norm="LN", + act_layer=nn.GELU, + ): + """ + Args: + in_channels (int): Number of input channels. + out_channels (int): Number of output channels. + bottleneck_channels (int): number of output channels for the 3x3 + "bottleneck" conv layers. + norm (str or callable): normalization for all conv layers. + See :func:`layers.get_norm` for supported format. + act_layer (callable): activation for all conv layers. + """ + super().__init__(in_channels, out_channels, 1) + + self.conv1 = Conv2d(in_channels, bottleneck_channels, 1, bias=False) + self.norm1 = get_norm(norm, bottleneck_channels) + self.act1 = act_layer() + + self.conv2 = Conv2d( + bottleneck_channels, + bottleneck_channels, + 3, + padding=1, + bias=False, + ) + self.norm2 = get_norm(norm, bottleneck_channels) + self.act2 = act_layer() + + self.conv3 = Conv2d(bottleneck_channels, out_channels, 1, bias=False) + self.norm3 = get_norm(norm, out_channels) + + for layer in [self.conv1, self.conv2, self.conv3]: + weight_init.c2_msra_fill(layer) + for layer in [self.norm1, self.norm2]: + layer.weight.data.fill_(1.0) + layer.bias.data.zero_() + # zero init last norm layer. + self.norm3.weight.data.zero_() + self.norm3.bias.data.zero_() + + def forward(self, x): + out = x + for layer in self.children(): + out = layer(out) + + out = x + out + return out + + +class Block(nn.Module): + """Transformer blocks with support of window attention and residual propagation blocks""" + + def __init__( + self, + dim, + num_heads, + mlp_ratio=4.0, + qkv_bias=True, + drop_path=0.0, + norm_layer=nn.LayerNorm, + act_layer=nn.GELU, + use_rel_pos=False, + rel_pos_zero_init=True, + window_size=0, + use_residual_block=False, + input_size=None, + ): + """ + Args: + dim (int): Number of input channels. + num_heads (int): Number of attention heads in each ViT block. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. + qkv_bias (bool): If True, add a learnable bias to query, key, value. + drop_path (float): Stochastic depth rate. + norm_layer (nn.Module): Normalization layer. + act_layer (nn.Module): Activation layer. + use_rel_pos (bool): If True, add relative positional embeddings to the attention map. + rel_pos_zero_init (bool): If True, zero initialize relative positional parameters. + window_size (int): Window size for window attention blocks. If it equals 0, then not + use window attention. + use_residual_block (bool): If True, use a residual block after the MLP block. + input_size (int or None): Input resolution for calculating the relative positional + parameter size. + """ + super().__init__() + self.norm1 = norm_layer(dim) + self.attn = Attention( + dim, + num_heads=num_heads, + qkv_bias=qkv_bias, + use_rel_pos=use_rel_pos, + rel_pos_zero_init=rel_pos_zero_init, + input_size=input_size if window_size == 0 else (window_size, window_size), + ) + + from timm.models.layers import DropPath, Mlp + + self.drop_path = DropPath(drop_path) if drop_path > 0.0 else nn.Identity() + self.norm2 = norm_layer(dim) + self.mlp = Mlp(in_features=dim, hidden_features=int(dim * mlp_ratio), act_layer=act_layer) + + self.window_size = window_size + + self.use_residual_block = use_residual_block + if use_residual_block: + # Use a residual block with bottleneck channel as dim // 2 + self.residual = ResBottleneckBlock( + in_channels=dim, + out_channels=dim, + bottleneck_channels=dim // 2, + norm="LN", + act_layer=act_layer, + ) + + def forward(self, x): + shortcut = x + x = self.norm1(x) + # Window partition + if self.window_size > 0: + H, W = x.shape[1], x.shape[2] + x, pad_hw = window_partition(x, self.window_size) + + x = self.attn(x) + # Reverse window partition + if self.window_size > 0: + x = window_unpartition(x, self.window_size, pad_hw, (H, W)) + + x = shortcut + self.drop_path(x) + x = x + self.drop_path(self.mlp(self.norm2(x))) + + if self.use_residual_block: + x = self.residual(x.permute(0, 3, 1, 2)).permute(0, 2, 3, 1) + + return x + + +class ViT(Backbone): + """ + This module implements Vision Transformer (ViT) backbone in :paper:`vitdet`. + "Exploring Plain Vision Transformer Backbones for Object Detection", + https://arxiv.org/abs/2203.16527 + """ + + def __init__( + self, + img_size=1024, + patch_size=16, + in_chans=3, + embed_dim=768, + depth=12, + num_heads=12, + mlp_ratio=4.0, + qkv_bias=True, + drop_path_rate=0.0, + norm_layer=nn.LayerNorm, + act_layer=nn.GELU, + use_abs_pos=True, + use_rel_pos=False, + rel_pos_zero_init=True, + window_size=0, + window_block_indexes=(), + residual_block_indexes=(), + use_act_checkpoint=False, + pretrain_img_size=224, + pretrain_use_cls_token=True, + out_feature="last_feat", + ): + """ + Args: + img_size (int): Input image size. + patch_size (int): Patch size. + in_chans (int): Number of input image channels. + embed_dim (int): Patch embedding dimension. + depth (int): Depth of ViT. + num_heads (int): Number of attention heads in each ViT block. + mlp_ratio (float): Ratio of mlp hidden dim to embedding dim. + qkv_bias (bool): If True, add a learnable bias to query, key, value. + drop_path_rate (float): Stochastic depth rate. + norm_layer (nn.Module): Normalization layer. + act_layer (nn.Module): Activation layer. + use_abs_pos (bool): If True, use absolute positional embeddings. + use_rel_pos (bool): If True, add relative positional embeddings to the attention map. + rel_pos_zero_init (bool): If True, zero initialize relative positional parameters. + window_size (int): Window size for window attention blocks. + window_block_indexes (list): Indexes for blocks using window attention. + residual_block_indexes (list): Indexes for blocks using conv propagation. + use_act_checkpoint (bool): If True, use activation checkpointing. + pretrain_img_size (int): input image size for pretraining models. + pretrain_use_cls_token (bool): If True, pretrainig models use class token. + out_feature (str): name of the feature from the last block. + """ + super().__init__() + self.pretrain_use_cls_token = pretrain_use_cls_token + + self.patch_embed = PatchEmbed( + kernel_size=(patch_size, patch_size), + stride=(patch_size, patch_size), + in_chans=in_chans, + embed_dim=embed_dim, + ) + + if use_abs_pos: + # Initialize absolute positional embedding with pretrain image size. + num_patches = (pretrain_img_size // patch_size) * (pretrain_img_size // patch_size) + num_positions = (num_patches + 1) if pretrain_use_cls_token else num_patches + self.pos_embed = nn.Parameter(torch.zeros(1, num_positions, embed_dim)) + else: + self.pos_embed = None + + # stochastic depth decay rule + dpr = [x.item() for x in torch.linspace(0, drop_path_rate, depth)] + + self.blocks = nn.ModuleList() + for i in range(depth): + block = Block( + dim=embed_dim, + num_heads=num_heads, + mlp_ratio=mlp_ratio, + qkv_bias=qkv_bias, + drop_path=dpr[i], + norm_layer=norm_layer, + act_layer=act_layer, + use_rel_pos=use_rel_pos, + rel_pos_zero_init=rel_pos_zero_init, + window_size=window_size if i in window_block_indexes else 0, + use_residual_block=i in residual_block_indexes, + input_size=(img_size // patch_size, img_size // patch_size), + ) + if use_act_checkpoint: + # TODO: use torch.utils.checkpoint + from fairscale.nn.checkpoint import checkpoint_wrapper + + block = checkpoint_wrapper(block) + self.blocks.append(block) + + self._out_feature_channels = {out_feature: embed_dim} + self._out_feature_strides = {out_feature: patch_size} + self._out_features = [out_feature] + + if self.pos_embed is not None: + nn.init.trunc_normal_(self.pos_embed, std=0.02) + + self.apply(self._init_weights) + + def _init_weights(self, m): + if isinstance(m, nn.Linear): + nn.init.trunc_normal_(m.weight, std=0.02) + if isinstance(m, nn.Linear) and m.bias is not None: + nn.init.constant_(m.bias, 0) + elif isinstance(m, nn.LayerNorm): + nn.init.constant_(m.bias, 0) + nn.init.constant_(m.weight, 1.0) + + def forward(self, x): + x = self.patch_embed(x) + if self.pos_embed is not None: + x = x + get_abs_pos( + self.pos_embed, self.pretrain_use_cls_token, (x.shape[1], x.shape[2]) + ) + + for blk in self.blocks: + x = blk(x) + + outputs = {self._out_features[0]: x.permute(0, 3, 1, 2)} + return outputs + + +class SimpleFeaturePyramid(Backbone): + """ + This module implements SimpleFeaturePyramid in :paper:`vitdet`. + It creates pyramid features built on top of the input feature map. + """ + + def __init__( + self, + net, + in_feature, + out_channels, + scale_factors, + top_block=None, + norm="LN", + square_pad=0, + ): + """ + Args: + net (Backbone): module representing the subnetwork backbone. + Must be a subclass of :class:`Backbone`. + in_feature (str): names of the input feature maps coming + from the net. + out_channels (int): number of channels in the output feature maps. + scale_factors (list[float]): list of scaling factors to upsample or downsample + the input features for creating pyramid features. + top_block (nn.Module or None): if provided, an extra operation will + be performed on the output of the last (smallest resolution) + pyramid output, and the result will extend the result list. The top_block + further downsamples the feature map. It must have an attribute + "num_levels", meaning the number of extra pyramid levels added by + this block, and "in_feature", which is a string representing + its input feature (e.g., p5). + norm (str): the normalization to use. + square_pad (int): If > 0, require input images to be padded to specific square size. + """ + super(SimpleFeaturePyramid, self).__init__() + assert isinstance(net, Backbone) + + self.scale_factors = scale_factors + + input_shapes = net.output_shape() + strides = [int(input_shapes[in_feature].stride / scale) for scale in scale_factors] + _assert_strides_are_log2_contiguous(strides) + + dim = input_shapes[in_feature].channels + self.stages = [] + use_bias = norm == "" + for idx, scale in enumerate(scale_factors): + out_dim = dim + if scale == 4.0: + layers = [ + nn.ConvTranspose2d(dim, dim // 2, kernel_size=2, stride=2), + get_norm(norm, dim // 2), + nn.GELU(), + nn.ConvTranspose2d(dim // 2, dim // 4, kernel_size=2, stride=2), + ] + out_dim = dim // 4 + elif scale == 2.0: + layers = [nn.ConvTranspose2d(dim, dim // 2, kernel_size=2, stride=2)] + out_dim = dim // 2 + elif scale == 1.0: + layers = [] + elif scale == 0.5: + layers = [nn.MaxPool2d(kernel_size=2, stride=2)] + else: + raise NotImplementedError(f"scale_factor={scale} is not supported yet.") + + layers.extend( + [ + Conv2d( + out_dim, + out_channels, + kernel_size=1, + bias=use_bias, + norm=get_norm(norm, out_channels), + ), + Conv2d( + out_channels, + out_channels, + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, out_channels), + ), + ] + ) + layers = nn.Sequential(*layers) + + stage = int(math.log2(strides[idx])) + self.add_module(f"simfp_{stage}", layers) + self.stages.append(layers) + + self.net = net + self.in_feature = in_feature + self.top_block = top_block + # Return feature names are "p", like ["p2", "p3", ..., "p6"] + self._out_feature_strides = {"p{}".format(int(math.log2(s))): s for s in strides} + # top block output feature maps. + if self.top_block is not None: + for s in range(stage, stage + self.top_block.num_levels): + self._out_feature_strides["p{}".format(s + 1)] = 2 ** (s + 1) + + self._out_features = list(self._out_feature_strides.keys()) + self._out_feature_channels = {k: out_channels for k in self._out_features} + self._size_divisibility = strides[-1] + self._square_pad = square_pad + + @property + def padding_constraints(self): + return { + "size_divisiblity": self._size_divisibility, + "square_size": self._square_pad, + } + + def forward(self, x): + """ + Args: + x: Tensor of shape (N,C,H,W). H, W must be a multiple of ``self.size_divisibility``. + + Returns: + dict[str->Tensor]: + mapping from feature map name to pyramid feature map tensor + in high to low resolution order. Returned feature names follow the FPN + convention: "p", where stage has stride = 2 ** stage e.g., + ["p2", "p3", ..., "p6"]. + """ + bottom_up_features = self.net(x) + features = bottom_up_features[self.in_feature] + results = [] + + for stage in self.stages: + results.append(stage(features)) + + if self.top_block is not None: + if self.top_block.in_feature in bottom_up_features: + top_block_in_feature = bottom_up_features[self.top_block.in_feature] + else: + top_block_in_feature = results[self._out_features.index(self.top_block.in_feature)] + results.extend(self.top_block(top_block_in_feature)) + assert len(self._out_features) == len(results) + return {f: res for f, res in zip(self._out_features, results)} + + +def get_vit_lr_decay_rate(name, lr_decay_rate=1.0, num_layers=12): + """ + Calculate lr decay rate for different ViT blocks. + Args: + name (string): parameter name. + lr_decay_rate (float): base lr decay rate. + num_layers (int): number of ViT blocks. + + Returns: + lr decay rate for the given parameter. + """ + layer_id = num_layers + 1 + if name.startswith("backbone"): + if ".pos_embed" in name or ".patch_embed" in name: + layer_id = 0 + elif ".blocks." in name and ".residual." not in name: + layer_id = int(name[name.find(".blocks.") :].split(".")[2]) + 1 + + return lr_decay_rate ** (num_layers + 1 - layer_id) diff --git a/detectron2/detectron2/modeling/box_regression.py b/detectron2/detectron2/modeling/box_regression.py new file mode 100755 index 0000000..b24c123 --- /dev/null +++ b/detectron2/detectron2/modeling/box_regression.py @@ -0,0 +1,369 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +from typing import List, Tuple, Union +import torch +from fvcore.nn import giou_loss, smooth_l1_loss +from torch.nn import functional as F + +from detectron2.layers import cat, ciou_loss, diou_loss +from detectron2.structures import Boxes + +# Value for clamping large dw and dh predictions. The heuristic is that we clamp +# such that dw and dh are no larger than what would transform a 16px box into a +# 1000px box (based on a small anchor, 16px, and a typical image size, 1000px). +_DEFAULT_SCALE_CLAMP = math.log(1000.0 / 16) + + +__all__ = ["Box2BoxTransform", "Box2BoxTransformRotated", "Box2BoxTransformLinear"] + + +@torch.jit.script +class Box2BoxTransform(object): + """ + The box-to-box transform defined in R-CNN. The transformation is parameterized + by 4 deltas: (dx, dy, dw, dh). The transformation scales the box's width and height + by exp(dw), exp(dh) and shifts a box's center by the offset (dx * width, dy * height). + """ + + def __init__( + self, weights: Tuple[float, float, float, float], scale_clamp: float = _DEFAULT_SCALE_CLAMP + ): + """ + Args: + weights (4-element tuple): Scaling factors that are applied to the + (dx, dy, dw, dh) deltas. In Fast R-CNN, these were originally set + such that the deltas have unit variance; now they are treated as + hyperparameters of the system. + scale_clamp (float): When predicting deltas, the predicted box scaling + factors (dw and dh) are clamped such that they are <= scale_clamp. + """ + self.weights = weights + self.scale_clamp = scale_clamp + + def get_deltas(self, src_boxes, target_boxes): + """ + Get box regression transformation deltas (dx, dy, dw, dh) that can be used + to transform the `src_boxes` into the `target_boxes`. That is, the relation + ``target_boxes == self.apply_deltas(deltas, src_boxes)`` is true (unless + any delta is too large and is clamped). + + Args: + src_boxes (Tensor): source boxes, e.g., object proposals + target_boxes (Tensor): target of the transformation, e.g., ground-truth + boxes. + """ + assert isinstance(src_boxes, torch.Tensor), type(src_boxes) + assert isinstance(target_boxes, torch.Tensor), type(target_boxes) + + src_widths = src_boxes[:, 2] - src_boxes[:, 0] + src_heights = src_boxes[:, 3] - src_boxes[:, 1] + src_ctr_x = src_boxes[:, 0] + 0.5 * src_widths + src_ctr_y = src_boxes[:, 1] + 0.5 * src_heights + + target_widths = target_boxes[:, 2] - target_boxes[:, 0] + target_heights = target_boxes[:, 3] - target_boxes[:, 1] + target_ctr_x = target_boxes[:, 0] + 0.5 * target_widths + target_ctr_y = target_boxes[:, 1] + 0.5 * target_heights + + wx, wy, ww, wh = self.weights + dx = wx * (target_ctr_x - src_ctr_x) / src_widths + dy = wy * (target_ctr_y - src_ctr_y) / src_heights + dw = ww * torch.log(target_widths / src_widths) + dh = wh * torch.log(target_heights / src_heights) + + deltas = torch.stack((dx, dy, dw, dh), dim=1) + assert (src_widths > 0).all().item(), "Input boxes to Box2BoxTransform are not valid!" + return deltas + + def apply_deltas(self, deltas, boxes): + """ + Apply transformation `deltas` (dx, dy, dw, dh) to `boxes`. + + Args: + deltas (Tensor): transformation deltas of shape (N, k*4), where k >= 1. + deltas[i] represents k potentially different class-specific + box transformations for the single box boxes[i]. + boxes (Tensor): boxes to transform, of shape (N, 4) + """ + deltas = deltas.float() # ensure fp32 for decoding precision + boxes = boxes.to(deltas.dtype) + + widths = boxes[:, 2] - boxes[:, 0] + heights = boxes[:, 3] - boxes[:, 1] + ctr_x = boxes[:, 0] + 0.5 * widths + ctr_y = boxes[:, 1] + 0.5 * heights + + wx, wy, ww, wh = self.weights + dx = deltas[:, 0::4] / wx + dy = deltas[:, 1::4] / wy + dw = deltas[:, 2::4] / ww + dh = deltas[:, 3::4] / wh + + # Prevent sending too large values into torch.exp() + dw = torch.clamp(dw, max=self.scale_clamp) + dh = torch.clamp(dh, max=self.scale_clamp) + + pred_ctr_x = dx * widths[:, None] + ctr_x[:, None] + pred_ctr_y = dy * heights[:, None] + ctr_y[:, None] + pred_w = torch.exp(dw) * widths[:, None] + pred_h = torch.exp(dh) * heights[:, None] + + x1 = pred_ctr_x - 0.5 * pred_w + y1 = pred_ctr_y - 0.5 * pred_h + x2 = pred_ctr_x + 0.5 * pred_w + y2 = pred_ctr_y + 0.5 * pred_h + pred_boxes = torch.stack((x1, y1, x2, y2), dim=-1) + return pred_boxes.reshape(deltas.shape) + + +@torch.jit.script +class Box2BoxTransformRotated(object): + """ + The box-to-box transform defined in Rotated R-CNN. The transformation is parameterized + by 5 deltas: (dx, dy, dw, dh, da). The transformation scales the box's width and height + by exp(dw), exp(dh), shifts a box's center by the offset (dx * width, dy * height), + and rotate a box's angle by da (radians). + Note: angles of deltas are in radians while angles of boxes are in degrees. + """ + + def __init__( + self, + weights: Tuple[float, float, float, float, float], + scale_clamp: float = _DEFAULT_SCALE_CLAMP, + ): + """ + Args: + weights (5-element tuple): Scaling factors that are applied to the + (dx, dy, dw, dh, da) deltas. These are treated as + hyperparameters of the system. + scale_clamp (float): When predicting deltas, the predicted box scaling + factors (dw and dh) are clamped such that they are <= scale_clamp. + """ + self.weights = weights + self.scale_clamp = scale_clamp + + def get_deltas(self, src_boxes, target_boxes): + """ + Get box regression transformation deltas (dx, dy, dw, dh, da) that can be used + to transform the `src_boxes` into the `target_boxes`. That is, the relation + ``target_boxes == self.apply_deltas(deltas, src_boxes)`` is true (unless + any delta is too large and is clamped). + + Args: + src_boxes (Tensor): Nx5 source boxes, e.g., object proposals + target_boxes (Tensor): Nx5 target of the transformation, e.g., ground-truth + boxes. + """ + assert isinstance(src_boxes, torch.Tensor), type(src_boxes) + assert isinstance(target_boxes, torch.Tensor), type(target_boxes) + + src_ctr_x, src_ctr_y, src_widths, src_heights, src_angles = torch.unbind(src_boxes, dim=1) + + target_ctr_x, target_ctr_y, target_widths, target_heights, target_angles = torch.unbind( + target_boxes, dim=1 + ) + + wx, wy, ww, wh, wa = self.weights + dx = wx * (target_ctr_x - src_ctr_x) / src_widths + dy = wy * (target_ctr_y - src_ctr_y) / src_heights + dw = ww * torch.log(target_widths / src_widths) + dh = wh * torch.log(target_heights / src_heights) + # Angles of deltas are in radians while angles of boxes are in degrees. + # the conversion to radians serve as a way to normalize the values + da = target_angles - src_angles + da = (da + 180.0) % 360.0 - 180.0 # make it in [-180, 180) + da *= wa * math.pi / 180.0 + + deltas = torch.stack((dx, dy, dw, dh, da), dim=1) + assert ( + (src_widths > 0).all().item() + ), "Input boxes to Box2BoxTransformRotated are not valid!" + return deltas + + def apply_deltas(self, deltas, boxes): + """ + Apply transformation `deltas` (dx, dy, dw, dh, da) to `boxes`. + + Args: + deltas (Tensor): transformation deltas of shape (N, k*5). + deltas[i] represents box transformation for the single box boxes[i]. + boxes (Tensor): boxes to transform, of shape (N, 5) + """ + assert deltas.shape[1] % 5 == 0 and boxes.shape[1] == 5 + + boxes = boxes.to(deltas.dtype).unsqueeze(2) + + ctr_x = boxes[:, 0] + ctr_y = boxes[:, 1] + widths = boxes[:, 2] + heights = boxes[:, 3] + angles = boxes[:, 4] + + wx, wy, ww, wh, wa = self.weights + + dx = deltas[:, 0::5] / wx + dy = deltas[:, 1::5] / wy + dw = deltas[:, 2::5] / ww + dh = deltas[:, 3::5] / wh + da = deltas[:, 4::5] / wa + + # Prevent sending too large values into torch.exp() + dw = torch.clamp(dw, max=self.scale_clamp) + dh = torch.clamp(dh, max=self.scale_clamp) + + pred_boxes = torch.zeros_like(deltas) + pred_boxes[:, 0::5] = dx * widths + ctr_x # x_ctr + pred_boxes[:, 1::5] = dy * heights + ctr_y # y_ctr + pred_boxes[:, 2::5] = torch.exp(dw) * widths # width + pred_boxes[:, 3::5] = torch.exp(dh) * heights # height + + # Following original RRPN implementation, + # angles of deltas are in radians while angles of boxes are in degrees. + pred_angle = da * 180.0 / math.pi + angles + pred_angle = (pred_angle + 180.0) % 360.0 - 180.0 # make it in [-180, 180) + + pred_boxes[:, 4::5] = pred_angle + + return pred_boxes + + +class Box2BoxTransformLinear(object): + """ + The linear box-to-box transform defined in FCOS. The transformation is parameterized + by the distance from the center of (square) src box to 4 edges of the target box. + """ + + def __init__(self, normalize_by_size=True): + """ + Args: + normalize_by_size: normalize deltas by the size of src (anchor) boxes. + """ + self.normalize_by_size = normalize_by_size + + def get_deltas(self, src_boxes, target_boxes): + """ + Get box regression transformation deltas (dx1, dy1, dx2, dy2) that can be used + to transform the `src_boxes` into the `target_boxes`. That is, the relation + ``target_boxes == self.apply_deltas(deltas, src_boxes)`` is true. + The center of src must be inside target boxes. + + Args: + src_boxes (Tensor): square source boxes, e.g., anchors + target_boxes (Tensor): target of the transformation, e.g., ground-truth + boxes. + """ + assert isinstance(src_boxes, torch.Tensor), type(src_boxes) + assert isinstance(target_boxes, torch.Tensor), type(target_boxes) + + src_ctr_x = 0.5 * (src_boxes[:, 0] + src_boxes[:, 2]) + src_ctr_y = 0.5 * (src_boxes[:, 1] + src_boxes[:, 3]) + + target_l = src_ctr_x - target_boxes[:, 0] + target_t = src_ctr_y - target_boxes[:, 1] + target_r = target_boxes[:, 2] - src_ctr_x + target_b = target_boxes[:, 3] - src_ctr_y + + deltas = torch.stack((target_l, target_t, target_r, target_b), dim=1) + if self.normalize_by_size: + stride_w = src_boxes[:, 2] - src_boxes[:, 0] + stride_h = src_boxes[:, 3] - src_boxes[:, 1] + strides = torch.stack([stride_w, stride_h, stride_w, stride_h], axis=1) + deltas = deltas / strides + + return deltas + + def apply_deltas(self, deltas, boxes): + """ + Apply transformation `deltas` (dx1, dy1, dx2, dy2) to `boxes`. + + Args: + deltas (Tensor): transformation deltas of shape (N, k*4), where k >= 1. + deltas[i] represents k potentially different class-specific + box transformations for the single box boxes[i]. + boxes (Tensor): boxes to transform, of shape (N, 4) + """ + # Ensure the output is a valid box. See Sec 2.1 of https://arxiv.org/abs/2006.09214 + deltas = F.relu(deltas) + boxes = boxes.to(deltas.dtype) + + ctr_x = 0.5 * (boxes[:, 0] + boxes[:, 2]) + ctr_y = 0.5 * (boxes[:, 1] + boxes[:, 3]) + if self.normalize_by_size: + stride_w = boxes[:, 2] - boxes[:, 0] + stride_h = boxes[:, 3] - boxes[:, 1] + strides = torch.stack([stride_w, stride_h, stride_w, stride_h], axis=1) + deltas = deltas * strides + + l = deltas[:, 0::4] + t = deltas[:, 1::4] + r = deltas[:, 2::4] + b = deltas[:, 3::4] + + pred_boxes = torch.zeros_like(deltas) + pred_boxes[:, 0::4] = ctr_x[:, None] - l # x1 + pred_boxes[:, 1::4] = ctr_y[:, None] - t # y1 + pred_boxes[:, 2::4] = ctr_x[:, None] + r # x2 + pred_boxes[:, 3::4] = ctr_y[:, None] + b # y2 + return pred_boxes + + +def _dense_box_regression_loss( + anchors: List[Union[Boxes, torch.Tensor]], + box2box_transform: Box2BoxTransform, + pred_anchor_deltas: List[torch.Tensor], + gt_boxes: List[torch.Tensor], + fg_mask: torch.Tensor, + box_reg_loss_type="smooth_l1", + smooth_l1_beta=0.0, +): + """ + Compute loss for dense multi-level box regression. + Loss is accumulated over ``fg_mask``. + + Args: + anchors: #lvl anchor boxes, each is (HixWixA, 4) + pred_anchor_deltas: #lvl predictions, each is (N, HixWixA, 4) + gt_boxes: N ground truth boxes, each has shape (R, 4) (R = sum(Hi * Wi * A)) + fg_mask: the foreground boolean mask of shape (N, R) to compute loss on + box_reg_loss_type (str): Loss type to use. Supported losses: "smooth_l1", "giou", + "diou", "ciou". + smooth_l1_beta (float): beta parameter for the smooth L1 regression loss. Default to + use L1 loss. Only used when `box_reg_loss_type` is "smooth_l1" + """ + if isinstance(anchors[0], Boxes): + anchors = type(anchors[0]).cat(anchors).tensor # (R, 4) + else: + anchors = cat(anchors) + if box_reg_loss_type == "smooth_l1": + gt_anchor_deltas = [box2box_transform.get_deltas(anchors, k) for k in gt_boxes] + gt_anchor_deltas = torch.stack(gt_anchor_deltas) # (N, R, 4) + loss_box_reg = smooth_l1_loss( + cat(pred_anchor_deltas, dim=1)[fg_mask], + gt_anchor_deltas[fg_mask], + beta=smooth_l1_beta, + reduction="sum", + ) + elif box_reg_loss_type == "giou": + pred_boxes = [ + box2box_transform.apply_deltas(k, anchors) for k in cat(pred_anchor_deltas, dim=1) + ] + loss_box_reg = giou_loss( + torch.stack(pred_boxes)[fg_mask], torch.stack(gt_boxes)[fg_mask], reduction="sum" + ) + elif box_reg_loss_type == "diou": + pred_boxes = [ + box2box_transform.apply_deltas(k, anchors) for k in cat(pred_anchor_deltas, dim=1) + ] + loss_box_reg = diou_loss( + torch.stack(pred_boxes)[fg_mask], torch.stack(gt_boxes)[fg_mask], reduction="sum" + ) + elif box_reg_loss_type == "ciou": + pred_boxes = [ + box2box_transform.apply_deltas(k, anchors) for k in cat(pred_anchor_deltas, dim=1) + ] + loss_box_reg = ciou_loss( + torch.stack(pred_boxes)[fg_mask], torch.stack(gt_boxes)[fg_mask], reduction="sum" + ) + else: + raise ValueError(f"Invalid dense box regression loss type '{box_reg_loss_type}'") + return loss_box_reg diff --git a/detectron2/detectron2/modeling/matcher.py b/detectron2/detectron2/modeling/matcher.py new file mode 100755 index 0000000..c7597ca --- /dev/null +++ b/detectron2/detectron2/modeling/matcher.py @@ -0,0 +1,127 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import List +import torch + +from detectron2.layers import nonzero_tuple + + +# TODO: the name is too general +class Matcher(object): + """ + This class assigns to each predicted "element" (e.g., a box) a ground-truth + element. Each predicted element will have exactly zero or one matches; each + ground-truth element may be matched to zero or more predicted elements. + + The matching is determined by the MxN match_quality_matrix, that characterizes + how well each (ground-truth, prediction)-pair match each other. For example, + if the elements are boxes, this matrix may contain box intersection-over-union + overlap values. + + The matcher returns (a) a vector of length N containing the index of the + ground-truth element m in [0, M) that matches to prediction n in [0, N). + (b) a vector of length N containing the labels for each prediction. + """ + + def __init__( + self, thresholds: List[float], labels: List[int], allow_low_quality_matches: bool = False + ): + """ + Args: + thresholds (list): a list of thresholds used to stratify predictions + into levels. + labels (list): a list of values to label predictions belonging at + each level. A label can be one of {-1, 0, 1} signifying + {ignore, negative class, positive class}, respectively. + allow_low_quality_matches (bool): if True, produce additional matches + for predictions with maximum match quality lower than high_threshold. + See set_low_quality_matches_ for more details. + + For example, + thresholds = [0.3, 0.5] + labels = [0, -1, 1] + All predictions with iou < 0.3 will be marked with 0 and + thus will be considered as false positives while training. + All predictions with 0.3 <= iou < 0.5 will be marked with -1 and + thus will be ignored. + All predictions with 0.5 <= iou will be marked with 1 and + thus will be considered as true positives. + """ + # Add -inf and +inf to first and last position in thresholds + thresholds = thresholds[:] + assert thresholds[0] > 0 + thresholds.insert(0, -float("inf")) + thresholds.append(float("inf")) + # Currently torchscript does not support all + generator + assert all([low <= high for (low, high) in zip(thresholds[:-1], thresholds[1:])]) + assert all([l in [-1, 0, 1] for l in labels]) + assert len(labels) == len(thresholds) - 1 + self.thresholds = thresholds + self.labels = labels + self.allow_low_quality_matches = allow_low_quality_matches + + def __call__(self, match_quality_matrix): + """ + Args: + match_quality_matrix (Tensor[float]): an MxN tensor, containing the + pairwise quality between M ground-truth elements and N predicted + elements. All elements must be >= 0 (due to the us of `torch.nonzero` + for selecting indices in :meth:`set_low_quality_matches_`). + + Returns: + matches (Tensor[int64]): a vector of length N, where matches[i] is a matched + ground-truth index in [0, M) + match_labels (Tensor[int8]): a vector of length N, where pred_labels[i] indicates + whether a prediction is a true or false positive or ignored + """ + assert match_quality_matrix.dim() == 2 + if match_quality_matrix.numel() == 0: + default_matches = match_quality_matrix.new_full( + (match_quality_matrix.size(1),), 0, dtype=torch.int64 + ) + # When no gt boxes exist, we define IOU = 0 and therefore set labels + # to `self.labels[0]`, which usually defaults to background class 0 + # To choose to ignore instead, can make labels=[-1,0,-1,1] + set appropriate thresholds + default_match_labels = match_quality_matrix.new_full( + (match_quality_matrix.size(1),), self.labels[0], dtype=torch.int8 + ) + return default_matches, default_match_labels + + assert torch.all(match_quality_matrix >= 0) + + # match_quality_matrix is M (gt) x N (predicted) + # Max over gt elements (dim 0) to find best gt candidate for each prediction + matched_vals, matches = match_quality_matrix.max(dim=0) + + match_labels = matches.new_full(matches.size(), 1, dtype=torch.int8) + + for (l, low, high) in zip(self.labels, self.thresholds[:-1], self.thresholds[1:]): + low_high = (matched_vals >= low) & (matched_vals < high) + match_labels[low_high] = l + + if self.allow_low_quality_matches: + self.set_low_quality_matches_(match_labels, match_quality_matrix) + + return matches, match_labels + + def set_low_quality_matches_(self, match_labels, match_quality_matrix): + """ + Produce additional matches for predictions that have only low-quality matches. + Specifically, for each ground-truth G find the set of predictions that have + maximum overlap with it (including ties); for each prediction in that set, if + it is unmatched, then match it to the ground-truth G. + + This function implements the RPN assignment case (i) in Sec. 3.1.2 of + :paper:`Faster R-CNN`. + """ + # For each gt, find the prediction with which it has highest quality + highest_quality_foreach_gt, _ = match_quality_matrix.max(dim=1) + # Find the highest quality match available, even if it is low, including ties. + # Note that the matches qualities must be positive due to the use of + # `torch.nonzero`. + _, pred_inds_with_highest_quality = nonzero_tuple( + match_quality_matrix == highest_quality_foreach_gt[:, None] + ) + # If an anchor was labeled positive only due to a low-quality match + # with gt_A, but it has larger overlap with gt_B, it's matched index will still be gt_B. + # This follows the implementation in Detectron, and is found to have no significant impact. + match_labels[pred_inds_with_highest_quality] = 1 diff --git a/detectron2/detectron2/modeling/meta_arch/__init__.py b/detectron2/detectron2/modeling/meta_arch/__init__.py new file mode 100755 index 0000000..6b06681 --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/__init__.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +from .build import META_ARCH_REGISTRY, build_model # isort:skip + +from .panoptic_fpn import PanopticFPN + +# import all the meta_arch, so they will be registered +from .rcnn import GeneralizedRCNN, ProposalNetwork +from .dense_detector import DenseDetector +from .retinanet import RetinaNet +from .fcos import FCOS +from .semantic_seg import SEM_SEG_HEADS_REGISTRY, SemanticSegmentor, build_sem_seg_head + + +__all__ = list(globals().keys()) diff --git a/detectron2/detectron2/modeling/meta_arch/build.py b/detectron2/detectron2/modeling/meta_arch/build.py new file mode 100755 index 0000000..3427215 --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/build.py @@ -0,0 +1,25 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch + +from detectron2.utils.logger import _log_api_usage +from detectron2.utils.registry import Registry + +META_ARCH_REGISTRY = Registry("META_ARCH") # noqa F401 isort:skip +META_ARCH_REGISTRY.__doc__ = """ +Registry for meta-architectures, i.e. the whole model. + +The registered object will be called with `obj(cfg)` +and expected to return a `nn.Module` object. +""" + + +def build_model(cfg): + """ + Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``. + Note that it does not load any weights from ``cfg``. + """ + meta_arch = cfg.MODEL.META_ARCHITECTURE + model = META_ARCH_REGISTRY.get(meta_arch)(cfg) + model.to(torch.device(cfg.MODEL.DEVICE)) + _log_api_usage("modeling.meta_arch." + meta_arch) + return model diff --git a/detectron2/detectron2/modeling/meta_arch/dense_detector.py b/detectron2/detectron2/modeling/meta_arch/dense_detector.py new file mode 100755 index 0000000..33066b6 --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/dense_detector.py @@ -0,0 +1,294 @@ +import numpy as np +from typing import Dict, List, Optional, Tuple +import torch +from torch import Tensor, nn + +from detectron2.data.detection_utils import convert_image_to_rgb +from detectron2.layers import move_device_like +from detectron2.modeling import Backbone +from detectron2.structures import Boxes, ImageList, Instances +from detectron2.utils.events import get_event_storage + +from ..postprocessing import detector_postprocess + + +def permute_to_N_HWA_K(tensor, K: int): + """ + Transpose/reshape a tensor from (N, (Ai x K), H, W) to (N, (HxWxAi), K) + """ + assert tensor.dim() == 4, tensor.shape + N, _, H, W = tensor.shape + tensor = tensor.view(N, -1, K, H, W) + tensor = tensor.permute(0, 3, 4, 1, 2) + tensor = tensor.reshape(N, -1, K) # Size=(N,HWA,K) + return tensor + + +class DenseDetector(nn.Module): + """ + Base class for dense detector. We define a dense detector as a fully-convolutional model that + makes per-pixel (i.e. dense) predictions. + """ + + def __init__( + self, + backbone: Backbone, + head: nn.Module, + head_in_features: Optional[List[str]] = None, + *, + pixel_mean, + pixel_std, + ): + """ + Args: + backbone: backbone module + head: head module + head_in_features: backbone features to use in head. Default to all backbone features. + pixel_mean (Tuple[float]): + Values to be used for image normalization (BGR order). + To train on images of different number of channels, set different mean & std. + Default values are the mean pixel value from ImageNet: [103.53, 116.28, 123.675] + pixel_std (Tuple[float]): + When using pre-trained models in Detectron1 or any MSRA models, + std has been absorbed into its conv1 weights, so the std needs to be set 1. + Otherwise, you can use [57.375, 57.120, 58.395] (ImageNet std) + """ + super().__init__() + + self.backbone = backbone + self.head = head + if head_in_features is None: + shapes = self.backbone.output_shape() + self.head_in_features = sorted(shapes.keys(), key=lambda x: shapes[x].stride) + else: + self.head_in_features = head_in_features + self.register_buffer("pixel_mean", torch.tensor(pixel_mean).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(pixel_std).view(-1, 1, 1), False) + + @property + def device(self): + return self.pixel_mean.device + + def _move_to_current_device(self, x): + return move_device_like(x, self.pixel_mean) + + def forward(self, batched_inputs: List[Dict[str, Tensor]]): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper` . + Each item in the list contains the inputs for one image. + For now, each item in the list is a dict that contains: + + * image: Tensor, image in (C, H, W) format. + * instances: Instances + + Other information that's included in the original dicts, such as: + + * "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + + Returns: + In training, dict[str, Tensor]: mapping from a named loss to a tensor storing the + loss. Used during training only. In inference, the standard output format, described + in :doc:`/tutorials/models`. + """ + images = self.preprocess_image(batched_inputs) + features = self.backbone(images.tensor) + features = [features[f] for f in self.head_in_features] + predictions = self.head(features) + + if self.training: + assert not torch.jit.is_scripting(), "Not supported" + assert "instances" in batched_inputs[0], "Instance annotations are missing in training!" + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + return self.forward_training(images, features, predictions, gt_instances) + else: + results = self.forward_inference(images, features, predictions) + if torch.jit.is_scripting(): + return results + + processed_results = [] + for results_per_image, input_per_image, image_size in zip( + results, batched_inputs, images.image_sizes + ): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + r = detector_postprocess(results_per_image, height, width) + processed_results.append({"instances": r}) + return processed_results + + def forward_training(self, images, features, predictions, gt_instances): + raise NotImplementedError() + + def preprocess_image(self, batched_inputs: List[Dict[str, Tensor]]): + """ + Normalize, pad and batch the input images. + """ + images = [self._move_to_current_device(x["image"]) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + images = ImageList.from_tensors( + images, + self.backbone.size_divisibility, + padding_constraints=self.backbone.padding_constraints, + ) + return images + + def _transpose_dense_predictions( + self, predictions: List[List[Tensor]], dims_per_anchor: List[int] + ) -> List[List[Tensor]]: + """ + Transpose the dense per-level predictions. + + Args: + predictions: a list of outputs, each is a list of per-level + predictions with shape (N, Ai x K, Hi, Wi), where N is the + number of images, Ai is the number of anchors per location on + level i, K is the dimension of predictions per anchor. + dims_per_anchor: the value of K for each predictions. e.g. 4 for + box prediction, #classes for classification prediction. + + Returns: + List[List[Tensor]]: each prediction is transposed to (N, Hi x Wi x Ai, K). + """ + assert len(predictions) == len(dims_per_anchor) + res: List[List[Tensor]] = [] + for pred, dim_per_anchor in zip(predictions, dims_per_anchor): + pred = [permute_to_N_HWA_K(x, dim_per_anchor) for x in pred] + res.append(pred) + return res + + def _ema_update(self, name: str, value: float, initial_value: float, momentum: float = 0.9): + """ + Apply EMA update to `self.name` using `value`. + + This is mainly used for loss normalizer. In Detectron1, loss is normalized by number + of foreground samples in the batch. When batch size is 1 per GPU, #foreground has a + large variance and using it lead to lower performance. Therefore we maintain an EMA of + #foreground to stabilize the normalizer. + + Args: + name: name of the normalizer + value: the new value to update + initial_value: the initial value to start with + momentum: momentum of EMA + + Returns: + float: the updated EMA value + """ + if hasattr(self, name): + old = getattr(self, name) + else: + old = initial_value + new = old * momentum + value * (1 - momentum) + setattr(self, name, new) + return new + + def _decode_per_level_predictions( + self, + anchors: Boxes, + pred_scores: Tensor, + pred_deltas: Tensor, + score_thresh: float, + topk_candidates: int, + image_size: Tuple[int, int], + ) -> Instances: + """ + Decode boxes and classification predictions of one featuer level, by + the following steps: + 1. filter the predictions based on score threshold and top K scores. + 2. transform the box regression outputs + 3. return the predicted scores, classes and boxes + + Args: + anchors: Boxes, anchor for this feature level + pred_scores: HxWxA,K + pred_deltas: HxWxA,4 + + Returns: + Instances: with field "scores", "pred_boxes", "pred_classes". + """ + # Apply two filtering to make NMS faster. + # 1. Keep boxes with confidence score higher than threshold + keep_idxs = pred_scores > score_thresh + pred_scores = pred_scores[keep_idxs] + topk_idxs = torch.nonzero(keep_idxs) # Kx2 + + # 2. Keep top k top scoring boxes only + topk_idxs_size = topk_idxs.shape[0] + if isinstance(topk_idxs_size, Tensor): + # It's a tensor in tracing + num_topk = torch.clamp(topk_idxs_size, max=topk_candidates) + else: + num_topk = min(topk_idxs_size, topk_candidates) + pred_scores, idxs = pred_scores.topk(num_topk) + topk_idxs = topk_idxs[idxs] + + anchor_idxs, classes_idxs = topk_idxs.unbind(dim=1) + + pred_boxes = self.box2box_transform.apply_deltas( + pred_deltas[anchor_idxs], anchors.tensor[anchor_idxs] + ) + return Instances( + image_size, pred_boxes=Boxes(pred_boxes), scores=pred_scores, pred_classes=classes_idxs + ) + + def _decode_multi_level_predictions( + self, + anchors: List[Boxes], + pred_scores: List[Tensor], + pred_deltas: List[Tensor], + score_thresh: float, + topk_candidates: int, + image_size: Tuple[int, int], + ) -> Instances: + """ + Run `_decode_per_level_predictions` for all feature levels and concat the results. + """ + predictions = [ + self._decode_per_level_predictions( + anchors_i, + box_cls_i, + box_reg_i, + self.test_score_thresh, + self.test_topk_candidates, + image_size, + ) + # Iterate over every feature level + for box_cls_i, box_reg_i, anchors_i in zip(pred_scores, pred_deltas, anchors) + ] + return predictions[0].cat(predictions) # 'Instances.cat' is not scriptale but this is + + def visualize_training(self, batched_inputs, results): + """ + A function used to visualize ground truth images and final network predictions. + It shows ground truth bounding boxes on the original image and up to 20 + predicted object bounding boxes on the original image. + + Args: + batched_inputs (list): a list that contains input to the model. + results (List[Instances]): a list of #images elements returned by forward_inference(). + """ + from detectron2.utils.visualizer import Visualizer + + assert len(batched_inputs) == len( + results + ), "Cannot visualize inputs and results of different sizes" + storage = get_event_storage() + max_boxes = 20 + + image_index = 0 # only visualize a single image + img = batched_inputs[image_index]["image"] + img = convert_image_to_rgb(img.permute(1, 2, 0), self.input_format) + v_gt = Visualizer(img, None) + v_gt = v_gt.overlay_instances(boxes=batched_inputs[image_index]["instances"].gt_boxes) + anno_img = v_gt.get_image() + processed_results = detector_postprocess(results[image_index], img.shape[0], img.shape[1]) + predicted_boxes = processed_results.pred_boxes.tensor.detach().cpu().numpy() + + v_pred = Visualizer(img, None) + v_pred = v_pred.overlay_instances(boxes=predicted_boxes[0:max_boxes]) + prop_img = v_pred.get_image() + vis_img = np.vstack((anno_img, prop_img)) + vis_img = vis_img.transpose(2, 0, 1) + vis_name = f"Top: GT bounding boxes; Bottom: {max_boxes} Highest Scoring Results" + storage.put_image(vis_name, vis_img) diff --git a/detectron2/detectron2/modeling/meta_arch/fcos.py b/detectron2/detectron2/modeling/meta_arch/fcos.py new file mode 100755 index 0000000..7e7140b --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/fcos.py @@ -0,0 +1,328 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +from typing import List, Optional, Tuple +import torch +from fvcore.nn import sigmoid_focal_loss_jit +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec, batched_nms +from detectron2.structures import Boxes, ImageList, Instances, pairwise_point_box_distance +from detectron2.utils.events import get_event_storage + +from ..anchor_generator import DefaultAnchorGenerator +from ..backbone import Backbone +from ..box_regression import Box2BoxTransformLinear, _dense_box_regression_loss +from .dense_detector import DenseDetector +from .retinanet import RetinaNetHead + +__all__ = ["FCOS"] + +logger = logging.getLogger(__name__) + + +class FCOS(DenseDetector): + """ + Implement FCOS in :paper:`fcos`. + """ + + def __init__( + self, + *, + backbone: Backbone, + head: nn.Module, + head_in_features: Optional[List[str]] = None, + box2box_transform=None, + num_classes, + center_sampling_radius: float = 1.5, + focal_loss_alpha=0.25, + focal_loss_gamma=2.0, + test_score_thresh=0.2, + test_topk_candidates=1000, + test_nms_thresh=0.6, + max_detections_per_image=100, + pixel_mean, + pixel_std, + ): + """ + Args: + center_sampling_radius: radius of the "center" of a groundtruth box, + within which all anchor points are labeled positive. + Other arguments mean the same as in :class:`RetinaNet`. + """ + super().__init__( + backbone, head, head_in_features, pixel_mean=pixel_mean, pixel_std=pixel_std + ) + + self.num_classes = num_classes + + # FCOS uses one anchor point per location. + # We represent the anchor point by a box whose size equals the anchor stride. + feature_shapes = backbone.output_shape() + fpn_strides = [feature_shapes[k].stride for k in self.head_in_features] + self.anchor_generator = DefaultAnchorGenerator( + sizes=[[k] for k in fpn_strides], aspect_ratios=[1.0], strides=fpn_strides + ) + + # FCOS parameterizes box regression by a linear transform, + # where predictions are normalized by anchor stride (equal to anchor size). + if box2box_transform is None: + box2box_transform = Box2BoxTransformLinear(normalize_by_size=True) + self.box2box_transform = box2box_transform + + self.center_sampling_radius = float(center_sampling_radius) + + # Loss parameters: + self.focal_loss_alpha = focal_loss_alpha + self.focal_loss_gamma = focal_loss_gamma + + # Inference parameters: + self.test_score_thresh = test_score_thresh + self.test_topk_candidates = test_topk_candidates + self.test_nms_thresh = test_nms_thresh + self.max_detections_per_image = max_detections_per_image + + def forward_training(self, images, features, predictions, gt_instances): + # Transpose the Hi*Wi*A dimension to the middle: + pred_logits, pred_anchor_deltas, pred_centerness = self._transpose_dense_predictions( + predictions, [self.num_classes, 4, 1] + ) + anchors = self.anchor_generator(features) + gt_labels, gt_boxes = self.label_anchors(anchors, gt_instances) + return self.losses( + anchors, pred_logits, gt_labels, pred_anchor_deltas, gt_boxes, pred_centerness + ) + + @torch.no_grad() + def _match_anchors(self, gt_boxes: Boxes, anchors: List[Boxes]): + """ + Match ground-truth boxes to a set of multi-level anchors. + + Args: + gt_boxes: Ground-truth boxes from instances of an image. + anchors: List of anchors for each feature map (of different scales). + + Returns: + torch.Tensor + A tensor of shape `(M, R)`, given `M` ground-truth boxes and total + `R` anchor points from all feature levels, indicating the quality + of match between m-th box and r-th anchor. Higher value indicates + better match. + """ + # Naming convention: (M = ground-truth boxes, R = anchor points) + # Anchor points are represented as square boxes of size = stride. + num_anchors_per_level = [len(x) for x in anchors] + anchors = Boxes.cat(anchors) # (R, 4) + anchor_centers = anchors.get_centers() # (R, 2) + anchor_sizes = anchors.tensor[:, 2] - anchors.tensor[:, 0] # (R, ) + + lower_bound = anchor_sizes * 4 + lower_bound[: num_anchors_per_level[0]] = 0 + upper_bound = anchor_sizes * 8 + upper_bound[-num_anchors_per_level[-1] :] = float("inf") + + gt_centers = gt_boxes.get_centers() + + # FCOS with center sampling: anchor point must be close enough to + # ground-truth box center. + center_dists = (anchor_centers[None, :, :] - gt_centers[:, None, :]).abs_() + sampling_regions = self.center_sampling_radius * anchor_sizes[None, :] + + match_quality_matrix = center_dists.max(dim=2).values < sampling_regions + + pairwise_dist = pairwise_point_box_distance(anchor_centers, gt_boxes) + pairwise_dist = pairwise_dist.permute(1, 0, 2) # (M, R, 4) + + # The original FCOS anchor matching rule: anchor point must be inside GT. + match_quality_matrix &= pairwise_dist.min(dim=2).values > 0 + + # Multilevel anchor matching in FCOS: each anchor is only responsible + # for certain scale range. + pairwise_dist = pairwise_dist.max(dim=2).values + match_quality_matrix &= (pairwise_dist > lower_bound[None, :]) & ( + pairwise_dist < upper_bound[None, :] + ) + # Match the GT box with minimum area, if there are multiple GT matches. + gt_areas = gt_boxes.area() # (M, ) + + match_quality_matrix = match_quality_matrix.to(torch.float32) + match_quality_matrix *= 1e8 - gt_areas[:, None] + return match_quality_matrix # (M, R) + + @torch.no_grad() + def label_anchors(self, anchors: List[Boxes], gt_instances: List[Instances]): + """ + Same interface as :meth:`RetinaNet.label_anchors`, but implemented with FCOS + anchor matching rule. + + Unlike RetinaNet, there are no ignored anchors. + """ + + gt_labels, matched_gt_boxes = [], [] + + for inst in gt_instances: + if len(inst) > 0: + match_quality_matrix = self._match_anchors(inst.gt_boxes, anchors) + + # Find matched ground-truth box per anchor. Un-matched anchors are + # assigned -1. This is equivalent to using an anchor matcher as used + # in R-CNN/RetinaNet: `Matcher(thresholds=[1e-5], labels=[0, 1])` + match_quality, matched_idxs = match_quality_matrix.max(dim=0) + matched_idxs[match_quality < 1e-5] = -1 + + matched_gt_boxes_i = inst.gt_boxes.tensor[matched_idxs.clip(min=0)] + gt_labels_i = inst.gt_classes[matched_idxs.clip(min=0)] + + # Anchors with matched_idxs = -1 are labeled background. + gt_labels_i[matched_idxs < 0] = self.num_classes + else: + matched_gt_boxes_i = torch.zeros_like(Boxes.cat(anchors).tensor) + gt_labels_i = torch.full( + (len(matched_gt_boxes_i),), + fill_value=self.num_classes, + dtype=torch.long, + device=matched_gt_boxes_i.device, + ) + + gt_labels.append(gt_labels_i) + matched_gt_boxes.append(matched_gt_boxes_i) + + return gt_labels, matched_gt_boxes + + def losses( + self, anchors, pred_logits, gt_labels, pred_anchor_deltas, gt_boxes, pred_centerness + ): + """ + This method is almost identical to :meth:`RetinaNet.losses`, with an extra + "loss_centerness" in the returned dict. + """ + num_images = len(gt_labels) + gt_labels = torch.stack(gt_labels) # (M, R) + + pos_mask = (gt_labels >= 0) & (gt_labels != self.num_classes) + num_pos_anchors = pos_mask.sum().item() + get_event_storage().put_scalar("num_pos_anchors", num_pos_anchors / num_images) + normalizer = self._ema_update("loss_normalizer", max(num_pos_anchors, 1), 300) + + # classification and regression loss + gt_labels_target = F.one_hot(gt_labels, num_classes=self.num_classes + 1)[ + :, :, :-1 + ] # no loss for the last (background) class + loss_cls = sigmoid_focal_loss_jit( + torch.cat(pred_logits, dim=1), + gt_labels_target.to(pred_logits[0].dtype), + alpha=self.focal_loss_alpha, + gamma=self.focal_loss_gamma, + reduction="sum", + ) + + loss_box_reg = _dense_box_regression_loss( + anchors, + self.box2box_transform, + pred_anchor_deltas, + gt_boxes, + pos_mask, + box_reg_loss_type="giou", + ) + + ctrness_targets = self.compute_ctrness_targets(anchors, gt_boxes) # (M, R) + pred_centerness = torch.cat(pred_centerness, dim=1).squeeze(dim=2) # (M, R) + ctrness_loss = F.binary_cross_entropy_with_logits( + pred_centerness[pos_mask], ctrness_targets[pos_mask], reduction="sum" + ) + return { + "loss_fcos_cls": loss_cls / normalizer, + "loss_fcos_loc": loss_box_reg / normalizer, + "loss_fcos_ctr": ctrness_loss / normalizer, + } + + def compute_ctrness_targets(self, anchors: List[Boxes], gt_boxes: List[torch.Tensor]): + anchors = Boxes.cat(anchors).tensor # Rx4 + reg_targets = [self.box2box_transform.get_deltas(anchors, m) for m in gt_boxes] + reg_targets = torch.stack(reg_targets, dim=0) # NxRx4 + if len(reg_targets) == 0: + return reg_targets.new_zeros(len(reg_targets)) + left_right = reg_targets[:, :, [0, 2]] + top_bottom = reg_targets[:, :, [1, 3]] + ctrness = (left_right.min(dim=-1)[0] / left_right.max(dim=-1)[0]) * ( + top_bottom.min(dim=-1)[0] / top_bottom.max(dim=-1)[0] + ) + return torch.sqrt(ctrness) + + def forward_inference( + self, + images: ImageList, + features: List[torch.Tensor], + predictions: List[List[torch.Tensor]], + ): + pred_logits, pred_anchor_deltas, pred_centerness = self._transpose_dense_predictions( + predictions, [self.num_classes, 4, 1] + ) + anchors = self.anchor_generator(features) + + results: List[Instances] = [] + for img_idx, image_size in enumerate(images.image_sizes): + scores_per_image = [ + # Multiply and sqrt centerness & classification scores + # (See eqn. 4 in https://arxiv.org/abs/2006.09214) + torch.sqrt(x[img_idx].sigmoid_() * y[img_idx].sigmoid_()) + for x, y in zip(pred_logits, pred_centerness) + ] + deltas_per_image = [x[img_idx] for x in pred_anchor_deltas] + results_per_image = self.inference_single_image( + anchors, scores_per_image, deltas_per_image, image_size + ) + results.append(results_per_image) + return results + + def inference_single_image( + self, + anchors: List[Boxes], + box_cls: List[torch.Tensor], + box_delta: List[torch.Tensor], + image_size: Tuple[int, int], + ): + """ + Identical to :meth:`RetinaNet.inference_single_image. + """ + pred = self._decode_multi_level_predictions( + anchors, + box_cls, + box_delta, + self.test_score_thresh, + self.test_topk_candidates, + image_size, + ) + keep = batched_nms( + pred.pred_boxes.tensor, pred.scores, pred.pred_classes, self.test_nms_thresh + ) + return pred[keep[: self.max_detections_per_image]] + + +class FCOSHead(RetinaNetHead): + """ + The head used in :paper:`fcos`. It adds an additional centerness + prediction branch on top of :class:`RetinaNetHead`. + """ + + def __init__(self, *, input_shape: List[ShapeSpec], conv_dims: List[int], **kwargs): + super().__init__(input_shape=input_shape, conv_dims=conv_dims, num_anchors=1, **kwargs) + # Unlike original FCOS, we do not add an additional learnable scale layer + # because it's found to have no benefits after normalizing regression targets by stride. + self._num_features = len(input_shape) + self.ctrness = nn.Conv2d(conv_dims[-1], 1, kernel_size=3, stride=1, padding=1) + torch.nn.init.normal_(self.ctrness.weight, std=0.01) + torch.nn.init.constant_(self.ctrness.bias, 0) + + def forward(self, features): + assert len(features) == self._num_features + logits = [] + bbox_reg = [] + ctrness = [] + for feature in features: + logits.append(self.cls_score(self.cls_subnet(feature))) + bbox_feature = self.bbox_subnet(feature) + bbox_reg.append(self.bbox_pred(bbox_feature)) + ctrness.append(self.ctrness(bbox_feature)) + return logits, bbox_reg, ctrness diff --git a/detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py b/detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py new file mode 100755 index 0000000..b31e1c8 --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/panoptic_fpn.py @@ -0,0 +1,269 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +from typing import Dict, List +import torch +from torch import nn + +from detectron2.config import configurable +from detectron2.structures import ImageList + +from ..postprocessing import detector_postprocess, sem_seg_postprocess +from .build import META_ARCH_REGISTRY +from .rcnn import GeneralizedRCNN +from .semantic_seg import build_sem_seg_head + +__all__ = ["PanopticFPN"] + + +@META_ARCH_REGISTRY.register() +class PanopticFPN(GeneralizedRCNN): + """ + Implement the paper :paper:`PanopticFPN`. + """ + + @configurable + def __init__( + self, + *, + sem_seg_head: nn.Module, + combine_overlap_thresh: float = 0.5, + combine_stuff_area_thresh: float = 4096, + combine_instances_score_thresh: float = 0.5, + **kwargs, + ): + """ + NOTE: this interface is experimental. + + Args: + sem_seg_head: a module for the semantic segmentation head. + combine_overlap_thresh: combine masks into one instances if + they have enough overlap + combine_stuff_area_thresh: ignore stuff areas smaller than this threshold + combine_instances_score_thresh: ignore instances whose score is + smaller than this threshold + + Other arguments are the same as :class:`GeneralizedRCNN`. + """ + super().__init__(**kwargs) + self.sem_seg_head = sem_seg_head + # options when combining instance & semantic outputs + self.combine_overlap_thresh = combine_overlap_thresh + self.combine_stuff_area_thresh = combine_stuff_area_thresh + self.combine_instances_score_thresh = combine_instances_score_thresh + + @classmethod + def from_config(cls, cfg): + ret = super().from_config(cfg) + ret.update( + { + "combine_overlap_thresh": cfg.MODEL.PANOPTIC_FPN.COMBINE.OVERLAP_THRESH, + "combine_stuff_area_thresh": cfg.MODEL.PANOPTIC_FPN.COMBINE.STUFF_AREA_LIMIT, + "combine_instances_score_thresh": cfg.MODEL.PANOPTIC_FPN.COMBINE.INSTANCES_CONFIDENCE_THRESH, # noqa + } + ) + ret["sem_seg_head"] = build_sem_seg_head(cfg, ret["backbone"].output_shape()) + logger = logging.getLogger(__name__) + if not cfg.MODEL.PANOPTIC_FPN.COMBINE.ENABLED: + logger.warning( + "PANOPTIC_FPN.COMBINED.ENABLED is no longer used. " + " model.inference(do_postprocess=) should be used to toggle postprocessing." + ) + if cfg.MODEL.PANOPTIC_FPN.INSTANCE_LOSS_WEIGHT != 1.0: + w = cfg.MODEL.PANOPTIC_FPN.INSTANCE_LOSS_WEIGHT + logger.warning( + "PANOPTIC_FPN.INSTANCE_LOSS_WEIGHT should be replaced by weights on each ROI head." + ) + + def update_weight(x): + if isinstance(x, dict): + return {k: v * w for k, v in x.items()} + else: + return x * w + + roi_heads = ret["roi_heads"] + roi_heads.box_predictor.loss_weight = update_weight(roi_heads.box_predictor.loss_weight) + roi_heads.mask_head.loss_weight = update_weight(roi_heads.mask_head.loss_weight) + return ret + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper`. + Each item in the list contains the inputs for one image. + + For now, each item in the list is a dict that contains: + + * "image": Tensor, image in (C, H, W) format. + * "instances": Instances + * "sem_seg": semantic segmentation ground truth. + * Other information that's included in the original dicts, such as: + "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + + Returns: + list[dict]: + each dict has the results for one image. The dict contains the following keys: + + * "instances": see :meth:`GeneralizedRCNN.forward` for its format. + * "sem_seg": see :meth:`SemanticSegmentor.forward` for its format. + * "panoptic_seg": See the return value of + :func:`combine_semantic_and_instance_outputs` for its format. + """ + if not self.training: + return self.inference(batched_inputs) + images = self.preprocess_image(batched_inputs) + features = self.backbone(images.tensor) + + assert "sem_seg" in batched_inputs[0] + gt_sem_seg = [x["sem_seg"].to(self.device) for x in batched_inputs] + gt_sem_seg = ImageList.from_tensors( + gt_sem_seg, + self.backbone.size_divisibility, + self.sem_seg_head.ignore_value, + self.backbone.padding_constraints, + ).tensor + sem_seg_results, sem_seg_losses = self.sem_seg_head(features, gt_sem_seg) + + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances) + detector_results, detector_losses = self.roi_heads( + images, features, proposals, gt_instances + ) + + losses = sem_seg_losses + losses.update(proposal_losses) + losses.update(detector_losses) + return losses + + def inference(self, batched_inputs: List[Dict[str, torch.Tensor]], do_postprocess: bool = True): + """ + Run inference on the given inputs. + + Args: + batched_inputs (list[dict]): same as in :meth:`forward` + do_postprocess (bool): whether to apply post-processing on the outputs. + + Returns: + When do_postprocess=True, see docs in :meth:`forward`. + Otherwise, returns a (list[Instances], list[Tensor]) that contains + the raw detector outputs, and raw semantic segmentation outputs. + """ + images = self.preprocess_image(batched_inputs) + features = self.backbone(images.tensor) + sem_seg_results, sem_seg_losses = self.sem_seg_head(features, None) + proposals, _ = self.proposal_generator(images, features, None) + detector_results, _ = self.roi_heads(images, features, proposals, None) + + if do_postprocess: + processed_results = [] + for sem_seg_result, detector_result, input_per_image, image_size in zip( + sem_seg_results, detector_results, batched_inputs, images.image_sizes + ): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + sem_seg_r = sem_seg_postprocess(sem_seg_result, image_size, height, width) + detector_r = detector_postprocess(detector_result, height, width) + + processed_results.append({"sem_seg": sem_seg_r, "instances": detector_r}) + + panoptic_r = combine_semantic_and_instance_outputs( + detector_r, + sem_seg_r.argmax(dim=0), + self.combine_overlap_thresh, + self.combine_stuff_area_thresh, + self.combine_instances_score_thresh, + ) + processed_results[-1]["panoptic_seg"] = panoptic_r + return processed_results + else: + return detector_results, sem_seg_results + + +def combine_semantic_and_instance_outputs( + instance_results, + semantic_results, + overlap_threshold, + stuff_area_thresh, + instances_score_thresh, +): + """ + Implement a simple combining logic following + "combine_semantic_and_instance_predictions.py" in panopticapi + to produce panoptic segmentation outputs. + + Args: + instance_results: output of :func:`detector_postprocess`. + semantic_results: an (H, W) tensor, each element is the contiguous semantic + category id + + Returns: + panoptic_seg (Tensor): of shape (height, width) where the values are ids for each segment. + segments_info (list[dict]): Describe each segment in `panoptic_seg`. + Each dict contains keys "id", "category_id", "isthing". + """ + panoptic_seg = torch.zeros_like(semantic_results, dtype=torch.int32) + + # sort instance outputs by scores + sorted_inds = torch.argsort(-instance_results.scores) + + current_segment_id = 0 + segments_info = [] + + instance_masks = instance_results.pred_masks.to(dtype=torch.bool, device=panoptic_seg.device) + + # Add instances one-by-one, check for overlaps with existing ones + for inst_id in sorted_inds: + score = instance_results.scores[inst_id].item() + if score < instances_score_thresh: + break + mask = instance_masks[inst_id] # H,W + mask_area = mask.sum().item() + + if mask_area == 0: + continue + + intersect = (mask > 0) & (panoptic_seg > 0) + intersect_area = intersect.sum().item() + + if intersect_area * 1.0 / mask_area > overlap_threshold: + continue + + if intersect_area > 0: + mask = mask & (panoptic_seg == 0) + + current_segment_id += 1 + panoptic_seg[mask] = current_segment_id + segments_info.append( + { + "id": current_segment_id, + "isthing": True, + "score": score, + "category_id": instance_results.pred_classes[inst_id].item(), + "instance_id": inst_id.item(), + } + ) + + # Add semantic results to remaining empty areas + semantic_labels = torch.unique(semantic_results).cpu().tolist() + for semantic_label in semantic_labels: + if semantic_label == 0: # 0 is a special "thing" class + continue + mask = (semantic_results == semantic_label) & (panoptic_seg == 0) + mask_area = mask.sum().item() + if mask_area < stuff_area_thresh: + continue + + current_segment_id += 1 + panoptic_seg[mask] = current_segment_id + segments_info.append( + { + "id": current_segment_id, + "isthing": False, + "category_id": semantic_label, + "area": mask_area, + } + ) + + return panoptic_seg, segments_info diff --git a/detectron2/detectron2/modeling/meta_arch/rcnn.py b/detectron2/detectron2/modeling/meta_arch/rcnn.py new file mode 100755 index 0000000..edcbda5 --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/rcnn.py @@ -0,0 +1,341 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import numpy as np +from typing import Dict, List, Optional, Tuple +import torch +from torch import nn + +from detectron2.config import configurable +from detectron2.data.detection_utils import convert_image_to_rgb +from detectron2.layers import move_device_like +from detectron2.structures import ImageList, Instances +from detectron2.utils.events import get_event_storage +from detectron2.utils.logger import log_first_n + +from ..backbone import Backbone, build_backbone +from ..postprocessing import detector_postprocess +from ..proposal_generator import build_proposal_generator +from ..roi_heads import build_roi_heads +from .build import META_ARCH_REGISTRY + +__all__ = ["GeneralizedRCNN", "ProposalNetwork"] + + +@META_ARCH_REGISTRY.register() +class GeneralizedRCNN(nn.Module): + """ + Generalized R-CNN. Any models that contains the following three components: + 1. Per-image feature extraction (aka backbone) + 2. Region proposal generation + 3. Per-region feature extraction and prediction + """ + + @configurable + def __init__( + self, + *, + backbone: Backbone, + proposal_generator: nn.Module, + roi_heads: nn.Module, + pixel_mean: Tuple[float], + pixel_std: Tuple[float], + input_format: Optional[str] = None, + vis_period: int = 0, + ): + """ + Args: + backbone: a backbone module, must follow detectron2's backbone interface + proposal_generator: a module that generates proposals using backbone features + roi_heads: a ROI head that performs per-region computation + pixel_mean, pixel_std: list or tuple with #channels element, representing + the per-channel mean and std to be used to normalize the input image + input_format: describe the meaning of channels of input. Needed by visualization + vis_period: the period to run visualization. Set to 0 to disable. + """ + super().__init__() + self.backbone = backbone + self.proposal_generator = proposal_generator + self.roi_heads = roi_heads + + self.input_format = input_format + self.vis_period = vis_period + if vis_period > 0: + assert input_format is not None, "input_format is required for visualization!" + + self.register_buffer("pixel_mean", torch.tensor(pixel_mean).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(pixel_std).view(-1, 1, 1), False) + assert ( + self.pixel_mean.shape == self.pixel_std.shape + ), f"{self.pixel_mean} and {self.pixel_std} have different shapes!" + + @classmethod + def from_config(cls, cfg): + backbone = build_backbone(cfg) + return { + "backbone": backbone, + "proposal_generator": build_proposal_generator(cfg, backbone.output_shape()), + "roi_heads": build_roi_heads(cfg, backbone.output_shape()), + "input_format": cfg.INPUT.FORMAT, + "vis_period": cfg.VIS_PERIOD, + "pixel_mean": cfg.MODEL.PIXEL_MEAN, + "pixel_std": cfg.MODEL.PIXEL_STD, + } + + @property + def device(self): + return self.pixel_mean.device + + def _move_to_current_device(self, x): + return move_device_like(x, self.pixel_mean) + + def visualize_training(self, batched_inputs, proposals): + """ + A function used to visualize images and proposals. It shows ground truth + bounding boxes on the original image and up to 20 top-scoring predicted + object proposals on the original image. Users can implement different + visualization functions for different models. + + Args: + batched_inputs (list): a list that contains input to the model. + proposals (list): a list that contains predicted proposals. Both + batched_inputs and proposals should have the same length. + """ + from detectron2.utils.visualizer import Visualizer + + storage = get_event_storage() + max_vis_prop = 20 + + for input, prop in zip(batched_inputs, proposals): + img = input["image"] + img = convert_image_to_rgb(img.permute(1, 2, 0), self.input_format) + v_gt = Visualizer(img, None) + v_gt = v_gt.overlay_instances(boxes=input["instances"].gt_boxes) + anno_img = v_gt.get_image() + box_size = min(len(prop.proposal_boxes), max_vis_prop) + v_pred = Visualizer(img, None) + v_pred = v_pred.overlay_instances( + boxes=prop.proposal_boxes[0:box_size].tensor.cpu().numpy() + ) + prop_img = v_pred.get_image() + vis_img = np.concatenate((anno_img, prop_img), axis=1) + vis_img = vis_img.transpose(2, 0, 1) + vis_name = "Left: GT bounding boxes; Right: Predicted proposals" + storage.put_image(vis_name, vis_img) + break # only visualize one image in a batch + + def forward(self, batched_inputs: List[Dict[str, torch.Tensor]]): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper` . + Each item in the list contains the inputs for one image. + For now, each item in the list is a dict that contains: + + * image: Tensor, image in (C, H, W) format. + * instances (optional): groundtruth :class:`Instances` + * proposals (optional): :class:`Instances`, precomputed proposals. + + Other information that's included in the original dicts, such as: + + * "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + + Returns: + list[dict]: + Each dict is the output for one input image. + The dict contains one key "instances" whose value is a :class:`Instances`. + The :class:`Instances` object has the following keys: + "pred_boxes", "pred_classes", "scores", "pred_masks", "pred_keypoints" + """ + if not self.training: + return self.inference(batched_inputs) + + images = self.preprocess_image(batched_inputs) + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + else: + gt_instances = None + + features = self.backbone(images.tensor) + + if self.proposal_generator is not None: + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances) + else: + assert "proposals" in batched_inputs[0] + proposals = [x["proposals"].to(self.device) for x in batched_inputs] + proposal_losses = {} + + _, detector_losses = self.roi_heads(images, features, proposals, gt_instances) + if self.vis_period > 0: + storage = get_event_storage() + if storage.iter % self.vis_period == 0: + self.visualize_training(batched_inputs, proposals) + + losses = {} + losses.update(detector_losses) + losses.update(proposal_losses) + return losses + + def inference( + self, + batched_inputs: List[Dict[str, torch.Tensor]], + detected_instances: Optional[List[Instances]] = None, + do_postprocess: bool = True, + ): + """ + Run inference on the given inputs. + + Args: + batched_inputs (list[dict]): same as in :meth:`forward` + detected_instances (None or list[Instances]): if not None, it + contains an `Instances` object per image. The `Instances` + object contains "pred_boxes" and "pred_classes" which are + known boxes in the image. + The inference will then skip the detection of bounding boxes, + and only predict other per-ROI outputs. + do_postprocess (bool): whether to apply post-processing on the outputs. + + Returns: + When do_postprocess=True, same as in :meth:`forward`. + Otherwise, a list[Instances] containing raw network outputs. + """ + assert not self.training + + images = self.preprocess_image(batched_inputs) + features = self.backbone(images.tensor) + + if detected_instances is None: + if self.proposal_generator is not None: + proposals, _ = self.proposal_generator(images, features, None) + else: + assert "proposals" in batched_inputs[0] + proposals = [x["proposals"].to(self.device) for x in batched_inputs] + + results, _ = self.roi_heads(images, features, proposals, None) + else: + detected_instances = [x.to(self.device) for x in detected_instances] + results = self.roi_heads.forward_with_given_boxes(features, detected_instances) + + if do_postprocess: + assert not torch.jit.is_scripting(), "Scripting is not supported for postprocess." + return GeneralizedRCNN._postprocess(results, batched_inputs, images.image_sizes) + return results + + def preprocess_image(self, batched_inputs: List[Dict[str, torch.Tensor]]): + """ + Normalize, pad and batch the input images. + """ + images = [self._move_to_current_device(x["image"]) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + images = ImageList.from_tensors( + images, + self.backbone.size_divisibility, + padding_constraints=self.backbone.padding_constraints, + ) + return images + + @staticmethod + def _postprocess(instances, batched_inputs: List[Dict[str, torch.Tensor]], image_sizes): + """ + Rescale the output instances to the target size. + """ + # note: private function; subject to changes + processed_results = [] + for results_per_image, input_per_image, image_size in zip( + instances, batched_inputs, image_sizes + ): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + r = detector_postprocess(results_per_image, height, width) + processed_results.append({"instances": r}) + return processed_results + + +@META_ARCH_REGISTRY.register() +class ProposalNetwork(nn.Module): + """ + A meta architecture that only predicts object proposals. + """ + + @configurable + def __init__( + self, + *, + backbone: Backbone, + proposal_generator: nn.Module, + pixel_mean: Tuple[float], + pixel_std: Tuple[float], + ): + """ + Args: + backbone: a backbone module, must follow detectron2's backbone interface + proposal_generator: a module that generates proposals using backbone features + pixel_mean, pixel_std: list or tuple with #channels element, representing + the per-channel mean and std to be used to normalize the input image + """ + super().__init__() + self.backbone = backbone + self.proposal_generator = proposal_generator + self.register_buffer("pixel_mean", torch.tensor(pixel_mean).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(pixel_std).view(-1, 1, 1), False) + + @classmethod + def from_config(cls, cfg): + backbone = build_backbone(cfg) + return { + "backbone": backbone, + "proposal_generator": build_proposal_generator(cfg, backbone.output_shape()), + "pixel_mean": cfg.MODEL.PIXEL_MEAN, + "pixel_std": cfg.MODEL.PIXEL_STD, + } + + @property + def device(self): + return self.pixel_mean.device + + def _move_to_current_device(self, x): + return move_device_like(x, self.pixel_mean) + + def forward(self, batched_inputs): + """ + Args: + Same as in :class:`GeneralizedRCNN.forward` + + Returns: + list[dict]: + Each dict is the output for one input image. + The dict contains one key "proposals" whose value is a + :class:`Instances` with keys "proposal_boxes" and "objectness_logits". + """ + images = [self._move_to_current_device(x["image"]) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + images = ImageList.from_tensors( + images, + self.backbone.size_divisibility, + padding_constraints=self.backbone.padding_constraints, + ) + features = self.backbone(images.tensor) + + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + elif "targets" in batched_inputs[0]: + log_first_n( + logging.WARN, "'targets' in the model inputs is now renamed to 'instances'!", n=10 + ) + gt_instances = [x["targets"].to(self.device) for x in batched_inputs] + else: + gt_instances = None + proposals, proposal_losses = self.proposal_generator(images, features, gt_instances) + # In training, the proposals are not useful at all but we generate them anyway. + # This makes RPN-only models about 5% slower. + if self.training: + return proposal_losses + + processed_results = [] + for results_per_image, input_per_image, image_size in zip( + proposals, batched_inputs, images.image_sizes + ): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + r = detector_postprocess(results_per_image, height, width) + processed_results.append({"proposals": r}) + return processed_results diff --git a/detectron2/detectron2/modeling/meta_arch/retinanet.py b/detectron2/detectron2/modeling/meta_arch/retinanet.py new file mode 100755 index 0000000..bd72a8e --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/retinanet.py @@ -0,0 +1,439 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import math +from typing import List, Tuple +import torch +from fvcore.nn import sigmoid_focal_loss_jit +from torch import Tensor, nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.layers import CycleBatchNormList, ShapeSpec, batched_nms, cat, get_norm +from detectron2.structures import Boxes, ImageList, Instances, pairwise_iou +from detectron2.utils.events import get_event_storage + +from ..anchor_generator import build_anchor_generator +from ..backbone import Backbone, build_backbone +from ..box_regression import Box2BoxTransform, _dense_box_regression_loss +from ..matcher import Matcher +from .build import META_ARCH_REGISTRY +from .dense_detector import DenseDetector, permute_to_N_HWA_K # noqa + +__all__ = ["RetinaNet"] + + +logger = logging.getLogger(__name__) + + +@META_ARCH_REGISTRY.register() +class RetinaNet(DenseDetector): + """ + Implement RetinaNet in :paper:`RetinaNet`. + """ + + @configurable + def __init__( + self, + *, + backbone: Backbone, + head: nn.Module, + head_in_features, + anchor_generator, + box2box_transform, + anchor_matcher, + num_classes, + focal_loss_alpha=0.25, + focal_loss_gamma=2.0, + smooth_l1_beta=0.0, + box_reg_loss_type="smooth_l1", + test_score_thresh=0.05, + test_topk_candidates=1000, + test_nms_thresh=0.5, + max_detections_per_image=100, + pixel_mean, + pixel_std, + vis_period=0, + input_format="BGR", + ): + """ + NOTE: this interface is experimental. + + Args: + backbone: a backbone module, must follow detectron2's backbone interface + head (nn.Module): a module that predicts logits and regression deltas + for each level from a list of per-level features + head_in_features (Tuple[str]): Names of the input feature maps to be used in head + anchor_generator (nn.Module): a module that creates anchors from a + list of features. Usually an instance of :class:`AnchorGenerator` + box2box_transform (Box2BoxTransform): defines the transform from anchors boxes to + instance boxes + anchor_matcher (Matcher): label the anchors by matching them with ground truth. + num_classes (int): number of classes. Used to label background proposals. + + # Loss parameters: + focal_loss_alpha (float): focal_loss_alpha + focal_loss_gamma (float): focal_loss_gamma + smooth_l1_beta (float): smooth_l1_beta + box_reg_loss_type (str): Options are "smooth_l1", "giou", "diou", "ciou" + + # Inference parameters: + test_score_thresh (float): Inference cls score threshold, only anchors with + score > INFERENCE_TH are considered for inference (to improve speed) + test_topk_candidates (int): Select topk candidates before NMS + test_nms_thresh (float): Overlap threshold used for non-maximum suppression + (suppress boxes with IoU >= this threshold) + max_detections_per_image (int): + Maximum number of detections to return per image during inference + (100 is based on the limit established for the COCO dataset). + + pixel_mean, pixel_std: see :class:`DenseDetector`. + """ + super().__init__( + backbone, head, head_in_features, pixel_mean=pixel_mean, pixel_std=pixel_std + ) + self.num_classes = num_classes + + # Anchors + self.anchor_generator = anchor_generator + self.box2box_transform = box2box_transform + self.anchor_matcher = anchor_matcher + + # Loss parameters: + self.focal_loss_alpha = focal_loss_alpha + self.focal_loss_gamma = focal_loss_gamma + self.smooth_l1_beta = smooth_l1_beta + self.box_reg_loss_type = box_reg_loss_type + # Inference parameters: + self.test_score_thresh = test_score_thresh + self.test_topk_candidates = test_topk_candidates + self.test_nms_thresh = test_nms_thresh + self.max_detections_per_image = max_detections_per_image + # Vis parameters + self.vis_period = vis_period + self.input_format = input_format + + @classmethod + def from_config(cls, cfg): + backbone = build_backbone(cfg) + backbone_shape = backbone.output_shape() + feature_shapes = [backbone_shape[f] for f in cfg.MODEL.RETINANET.IN_FEATURES] + head = RetinaNetHead(cfg, feature_shapes) + anchor_generator = build_anchor_generator(cfg, feature_shapes) + return { + "backbone": backbone, + "head": head, + "anchor_generator": anchor_generator, + "box2box_transform": Box2BoxTransform(weights=cfg.MODEL.RETINANET.BBOX_REG_WEIGHTS), + "anchor_matcher": Matcher( + cfg.MODEL.RETINANET.IOU_THRESHOLDS, + cfg.MODEL.RETINANET.IOU_LABELS, + allow_low_quality_matches=True, + ), + "pixel_mean": cfg.MODEL.PIXEL_MEAN, + "pixel_std": cfg.MODEL.PIXEL_STD, + "num_classes": cfg.MODEL.RETINANET.NUM_CLASSES, + "head_in_features": cfg.MODEL.RETINANET.IN_FEATURES, + # Loss parameters: + "focal_loss_alpha": cfg.MODEL.RETINANET.FOCAL_LOSS_ALPHA, + "focal_loss_gamma": cfg.MODEL.RETINANET.FOCAL_LOSS_GAMMA, + "smooth_l1_beta": cfg.MODEL.RETINANET.SMOOTH_L1_LOSS_BETA, + "box_reg_loss_type": cfg.MODEL.RETINANET.BBOX_REG_LOSS_TYPE, + # Inference parameters: + "test_score_thresh": cfg.MODEL.RETINANET.SCORE_THRESH_TEST, + "test_topk_candidates": cfg.MODEL.RETINANET.TOPK_CANDIDATES_TEST, + "test_nms_thresh": cfg.MODEL.RETINANET.NMS_THRESH_TEST, + "max_detections_per_image": cfg.TEST.DETECTIONS_PER_IMAGE, + # Vis parameters + "vis_period": cfg.VIS_PERIOD, + "input_format": cfg.INPUT.FORMAT, + } + + def forward_training(self, images, features, predictions, gt_instances): + # Transpose the Hi*Wi*A dimension to the middle: + pred_logits, pred_anchor_deltas = self._transpose_dense_predictions( + predictions, [self.num_classes, 4] + ) + anchors = self.anchor_generator(features) + gt_labels, gt_boxes = self.label_anchors(anchors, gt_instances) + return self.losses(anchors, pred_logits, gt_labels, pred_anchor_deltas, gt_boxes) + + def losses(self, anchors, pred_logits, gt_labels, pred_anchor_deltas, gt_boxes): + """ + Args: + anchors (list[Boxes]): a list of #feature level Boxes + gt_labels, gt_boxes: see output of :meth:`RetinaNet.label_anchors`. + Their shapes are (N, R) and (N, R, 4), respectively, where R is + the total number of anchors across levels, i.e. sum(Hi x Wi x Ai) + pred_logits, pred_anchor_deltas: both are list[Tensor]. Each element in the + list corresponds to one level and has shape (N, Hi * Wi * Ai, K or 4). + Where K is the number of classes used in `pred_logits`. + + Returns: + dict[str, Tensor]: + mapping from a named loss to a scalar tensor storing the loss. + Used during training only. The dict keys are: "loss_cls" and "loss_box_reg" + """ + num_images = len(gt_labels) + gt_labels = torch.stack(gt_labels) # (N, R) + + valid_mask = gt_labels >= 0 + pos_mask = (gt_labels >= 0) & (gt_labels != self.num_classes) + num_pos_anchors = pos_mask.sum().item() + get_event_storage().put_scalar("num_pos_anchors", num_pos_anchors / num_images) + normalizer = self._ema_update("loss_normalizer", max(num_pos_anchors, 1), 100) + + # classification and regression loss + gt_labels_target = F.one_hot(gt_labels[valid_mask], num_classes=self.num_classes + 1)[ + :, :-1 + ] # no loss for the last (background) class + loss_cls = sigmoid_focal_loss_jit( + cat(pred_logits, dim=1)[valid_mask], + gt_labels_target.to(pred_logits[0].dtype), + alpha=self.focal_loss_alpha, + gamma=self.focal_loss_gamma, + reduction="sum", + ) + + loss_box_reg = _dense_box_regression_loss( + anchors, + self.box2box_transform, + pred_anchor_deltas, + gt_boxes, + pos_mask, + box_reg_loss_type=self.box_reg_loss_type, + smooth_l1_beta=self.smooth_l1_beta, + ) + + return { + "loss_cls": loss_cls / normalizer, + "loss_box_reg": loss_box_reg / normalizer, + } + + @torch.no_grad() + def label_anchors(self, anchors, gt_instances): + """ + Args: + anchors (list[Boxes]): A list of #feature level Boxes. + The Boxes contains anchors of this image on the specific feature level. + gt_instances (list[Instances]): a list of N `Instances`s. The i-th + `Instances` contains the ground-truth per-instance annotations + for the i-th input image. + + Returns: + list[Tensor]: List of #img tensors. i-th element is a vector of labels whose length is + the total number of anchors across all feature maps (sum(Hi * Wi * A)). + Label values are in {-1, 0, ..., K}, with -1 means ignore, and K means background. + + list[Tensor]: i-th element is a Rx4 tensor, where R is the total number of anchors + across feature maps. The values are the matched gt boxes for each anchor. + Values are undefined for those anchors not labeled as foreground. + """ + anchors = Boxes.cat(anchors) # Rx4 + + gt_labels = [] + matched_gt_boxes = [] + for gt_per_image in gt_instances: + match_quality_matrix = pairwise_iou(gt_per_image.gt_boxes, anchors) + matched_idxs, anchor_labels = self.anchor_matcher(match_quality_matrix) + del match_quality_matrix + + if len(gt_per_image) > 0: + matched_gt_boxes_i = gt_per_image.gt_boxes.tensor[matched_idxs] + + gt_labels_i = gt_per_image.gt_classes[matched_idxs] + # Anchors with label 0 are treated as background. + gt_labels_i[anchor_labels == 0] = self.num_classes + # Anchors with label -1 are ignored. + gt_labels_i[anchor_labels == -1] = -1 + else: + matched_gt_boxes_i = torch.zeros_like(anchors.tensor) + gt_labels_i = torch.zeros_like(matched_idxs) + self.num_classes + + gt_labels.append(gt_labels_i) + matched_gt_boxes.append(matched_gt_boxes_i) + + return gt_labels, matched_gt_boxes + + def forward_inference( + self, images: ImageList, features: List[Tensor], predictions: List[List[Tensor]] + ): + pred_logits, pred_anchor_deltas = self._transpose_dense_predictions( + predictions, [self.num_classes, 4] + ) + anchors = self.anchor_generator(features) + + results: List[Instances] = [] + for img_idx, image_size in enumerate(images.image_sizes): + scores_per_image = [x[img_idx].sigmoid_() for x in pred_logits] + deltas_per_image = [x[img_idx] for x in pred_anchor_deltas] + results_per_image = self.inference_single_image( + anchors, scores_per_image, deltas_per_image, image_size + ) + results.append(results_per_image) + return results + + def inference_single_image( + self, + anchors: List[Boxes], + box_cls: List[Tensor], + box_delta: List[Tensor], + image_size: Tuple[int, int], + ): + """ + Single-image inference. Return bounding-box detection results by thresholding + on scores and applying non-maximum suppression (NMS). + + Arguments: + anchors (list[Boxes]): list of #feature levels. Each entry contains + a Boxes object, which contains all the anchors in that feature level. + box_cls (list[Tensor]): list of #feature levels. Each entry contains + tensor of size (H x W x A, K) + box_delta (list[Tensor]): Same shape as 'box_cls' except that K becomes 4. + image_size (tuple(H, W)): a tuple of the image height and width. + + Returns: + Same as `inference`, but for only one image. + """ + pred = self._decode_multi_level_predictions( + anchors, + box_cls, + box_delta, + self.test_score_thresh, + self.test_topk_candidates, + image_size, + ) + keep = batched_nms( # per-class NMS + pred.pred_boxes.tensor, pred.scores, pred.pred_classes, self.test_nms_thresh + ) + return pred[keep[: self.max_detections_per_image]] + + +class RetinaNetHead(nn.Module): + """ + The head used in RetinaNet for object classification and box regression. + It has two subnets for the two tasks, with a common structure but separate parameters. + """ + + @configurable + def __init__( + self, + *, + input_shape: List[ShapeSpec], + num_classes, + num_anchors, + conv_dims: List[int], + norm="", + prior_prob=0.01, + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape (List[ShapeSpec]): input shape + num_classes (int): number of classes. Used to label background proposals. + num_anchors (int): number of generated anchors + conv_dims (List[int]): dimensions for each convolution layer + norm (str or callable): + Normalization for conv layers except for the two output layers. + See :func:`detectron2.layers.get_norm` for supported types. + prior_prob (float): Prior weight for computing bias + """ + super().__init__() + + self._num_features = len(input_shape) + if norm == "BN" or norm == "SyncBN": + logger.info( + f"Using domain-specific {norm} in RetinaNetHead with len={self._num_features}." + ) + bn_class = nn.BatchNorm2d if norm == "BN" else nn.SyncBatchNorm + + def norm(c): + return CycleBatchNormList( + length=self._num_features, bn_class=bn_class, num_features=c + ) + + else: + norm_name = str(type(get_norm(norm, 32))) + if "BN" in norm_name: + logger.warning( + f"Shared BatchNorm (type={norm_name}) may not work well in RetinaNetHead." + ) + + cls_subnet = [] + bbox_subnet = [] + for in_channels, out_channels in zip( + [input_shape[0].channels] + list(conv_dims), conv_dims + ): + cls_subnet.append( + nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=1, padding=1) + ) + if norm: + cls_subnet.append(get_norm(norm, out_channels)) + cls_subnet.append(nn.ReLU()) + bbox_subnet.append( + nn.Conv2d(in_channels, out_channels, kernel_size=3, stride=1, padding=1) + ) + if norm: + bbox_subnet.append(get_norm(norm, out_channels)) + bbox_subnet.append(nn.ReLU()) + + self.cls_subnet = nn.Sequential(*cls_subnet) + self.bbox_subnet = nn.Sequential(*bbox_subnet) + self.cls_score = nn.Conv2d( + conv_dims[-1], num_anchors * num_classes, kernel_size=3, stride=1, padding=1 + ) + self.bbox_pred = nn.Conv2d( + conv_dims[-1], num_anchors * 4, kernel_size=3, stride=1, padding=1 + ) + + # Initialization + for modules in [self.cls_subnet, self.bbox_subnet, self.cls_score, self.bbox_pred]: + for layer in modules.modules(): + if isinstance(layer, nn.Conv2d): + torch.nn.init.normal_(layer.weight, mean=0, std=0.01) + torch.nn.init.constant_(layer.bias, 0) + + # Use prior in model initialization to improve stability + bias_value = -(math.log((1 - prior_prob) / prior_prob)) + torch.nn.init.constant_(self.cls_score.bias, bias_value) + + @classmethod + def from_config(cls, cfg, input_shape: List[ShapeSpec]): + num_anchors = build_anchor_generator(cfg, input_shape).num_cell_anchors + assert ( + len(set(num_anchors)) == 1 + ), "Using different number of anchors between levels is not currently supported!" + num_anchors = num_anchors[0] + + return { + "input_shape": input_shape, + "num_classes": cfg.MODEL.RETINANET.NUM_CLASSES, + "conv_dims": [input_shape[0].channels] * cfg.MODEL.RETINANET.NUM_CONVS, + "prior_prob": cfg.MODEL.RETINANET.PRIOR_PROB, + "norm": cfg.MODEL.RETINANET.NORM, + "num_anchors": num_anchors, + } + + def forward(self, features: List[Tensor]): + """ + Arguments: + features (list[Tensor]): FPN feature map tensors in high to low resolution. + Each tensor in the list correspond to different feature levels. + + Returns: + logits (list[Tensor]): #lvl tensors, each has shape (N, AxK, Hi, Wi). + The tensor predicts the classification probability + at each spatial position for each of the A anchors and K object + classes. + bbox_reg (list[Tensor]): #lvl tensors, each has shape (N, Ax4, Hi, Wi). + The tensor predicts 4-vector (dx,dy,dw,dh) box + regression values for every anchor. These values are the + relative offset between the anchor and the ground truth box. + """ + assert len(features) == self._num_features + logits = [] + bbox_reg = [] + for feature in features: + logits.append(self.cls_score(self.cls_subnet(feature))) + bbox_reg.append(self.bbox_pred(self.bbox_subnet(feature))) + return logits, bbox_reg diff --git a/detectron2/detectron2/modeling/meta_arch/semantic_seg.py b/detectron2/detectron2/modeling/meta_arch/semantic_seg.py new file mode 100755 index 0000000..fefbecf --- /dev/null +++ b/detectron2/detectron2/modeling/meta_arch/semantic_seg.py @@ -0,0 +1,267 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Callable, Dict, Optional, Tuple, Union +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.layers import Conv2d, ShapeSpec, get_norm +from detectron2.structures import ImageList +from detectron2.utils.registry import Registry + +from ..backbone import Backbone, build_backbone +from ..postprocessing import sem_seg_postprocess +from .build import META_ARCH_REGISTRY + +__all__ = [ + "SemanticSegmentor", + "SEM_SEG_HEADS_REGISTRY", + "SemSegFPNHead", + "build_sem_seg_head", +] + + +SEM_SEG_HEADS_REGISTRY = Registry("SEM_SEG_HEADS") +SEM_SEG_HEADS_REGISTRY.__doc__ = """ +Registry for semantic segmentation heads, which make semantic segmentation predictions +from feature maps. +""" + + +@META_ARCH_REGISTRY.register() +class SemanticSegmentor(nn.Module): + """ + Main class for semantic segmentation architectures. + """ + + @configurable + def __init__( + self, + *, + backbone: Backbone, + sem_seg_head: nn.Module, + pixel_mean: Tuple[float], + pixel_std: Tuple[float], + ): + """ + Args: + backbone: a backbone module, must follow detectron2's backbone interface + sem_seg_head: a module that predicts semantic segmentation from backbone features + pixel_mean, pixel_std: list or tuple with #channels element, representing + the per-channel mean and std to be used to normalize the input image + """ + super().__init__() + self.backbone = backbone + self.sem_seg_head = sem_seg_head + self.register_buffer("pixel_mean", torch.tensor(pixel_mean).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(pixel_std).view(-1, 1, 1), False) + + @classmethod + def from_config(cls, cfg): + backbone = build_backbone(cfg) + sem_seg_head = build_sem_seg_head(cfg, backbone.output_shape()) + return { + "backbone": backbone, + "sem_seg_head": sem_seg_head, + "pixel_mean": cfg.MODEL.PIXEL_MEAN, + "pixel_std": cfg.MODEL.PIXEL_STD, + } + + @property + def device(self): + return self.pixel_mean.device + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper`. + Each item in the list contains the inputs for one image. + + For now, each item in the list is a dict that contains: + + * "image": Tensor, image in (C, H, W) format. + * "sem_seg": semantic segmentation ground truth + * Other information that's included in the original dicts, such as: + "height", "width" (int): the output resolution of the model (may be different + from input resolution), used in inference. + + + Returns: + list[dict]: + Each dict is the output for one input image. + The dict contains one key "sem_seg" whose value is a + Tensor that represents the + per-pixel segmentation prediced by the head. + The prediction has shape KxHxW that represents the logits of + each class for each pixel. + """ + images = [x["image"].to(self.device) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + images = ImageList.from_tensors( + images, + self.backbone.size_divisibility, + padding_constraints=self.backbone.padding_constraints, + ) + + features = self.backbone(images.tensor) + + if "sem_seg" in batched_inputs[0]: + targets = [x["sem_seg"].to(self.device) for x in batched_inputs] + targets = ImageList.from_tensors( + targets, + self.backbone.size_divisibility, + self.sem_seg_head.ignore_value, + self.backbone.padding_constraints, + ).tensor + else: + targets = None + results, losses = self.sem_seg_head(features, targets) + + if self.training: + return losses + + processed_results = [] + for result, input_per_image, image_size in zip(results, batched_inputs, images.image_sizes): + height = input_per_image.get("height", image_size[0]) + width = input_per_image.get("width", image_size[1]) + r = sem_seg_postprocess(result, image_size, height, width) + processed_results.append({"sem_seg": r}) + return processed_results + + +def build_sem_seg_head(cfg, input_shape): + """ + Build a semantic segmentation head from `cfg.MODEL.SEM_SEG_HEAD.NAME`. + """ + name = cfg.MODEL.SEM_SEG_HEAD.NAME + return SEM_SEG_HEADS_REGISTRY.get(name)(cfg, input_shape) + + +@SEM_SEG_HEADS_REGISTRY.register() +class SemSegFPNHead(nn.Module): + """ + A semantic segmentation head described in :paper:`PanopticFPN`. + It takes a list of FPN features as input, and applies a sequence of + 3x3 convs and upsampling to scale all of them to the stride defined by + ``common_stride``. Then these features are added and used to make final + predictions by another 1x1 conv layer. + """ + + @configurable + def __init__( + self, + input_shape: Dict[str, ShapeSpec], + *, + num_classes: int, + conv_dims: int, + common_stride: int, + loss_weight: float = 1.0, + norm: Optional[Union[str, Callable]] = None, + ignore_value: int = -1, + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape: shapes (channels and stride) of the input features + num_classes: number of classes to predict + conv_dims: number of output channels for the intermediate conv layers. + common_stride: the common stride that all features will be upscaled to + loss_weight: loss weight + norm (str or callable): normalization for all conv layers + ignore_value: category id to be ignored during training. + """ + super().__init__() + input_shape = sorted(input_shape.items(), key=lambda x: x[1].stride) + if not len(input_shape): + raise ValueError("SemSegFPNHead(input_shape=) cannot be empty!") + self.in_features = [k for k, v in input_shape] + feature_strides = [v.stride for k, v in input_shape] + feature_channels = [v.channels for k, v in input_shape] + + self.ignore_value = ignore_value + self.common_stride = common_stride + self.loss_weight = loss_weight + + self.scale_heads = [] + for in_feature, stride, channels in zip( + self.in_features, feature_strides, feature_channels + ): + head_ops = [] + head_length = max(1, int(np.log2(stride) - np.log2(self.common_stride))) + for k in range(head_length): + norm_module = get_norm(norm, conv_dims) + conv = Conv2d( + channels if k == 0 else conv_dims, + conv_dims, + kernel_size=3, + stride=1, + padding=1, + bias=not norm, + norm=norm_module, + activation=F.relu, + ) + weight_init.c2_msra_fill(conv) + head_ops.append(conv) + if stride != self.common_stride: + head_ops.append( + nn.Upsample(scale_factor=2, mode="bilinear", align_corners=False) + ) + self.scale_heads.append(nn.Sequential(*head_ops)) + self.add_module(in_feature, self.scale_heads[-1]) + self.predictor = Conv2d(conv_dims, num_classes, kernel_size=1, stride=1, padding=0) + weight_init.c2_msra_fill(self.predictor) + + @classmethod + def from_config(cls, cfg, input_shape: Dict[str, ShapeSpec]): + return { + "input_shape": { + k: v for k, v in input_shape.items() if k in cfg.MODEL.SEM_SEG_HEAD.IN_FEATURES + }, + "ignore_value": cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE, + "num_classes": cfg.MODEL.SEM_SEG_HEAD.NUM_CLASSES, + "conv_dims": cfg.MODEL.SEM_SEG_HEAD.CONVS_DIM, + "common_stride": cfg.MODEL.SEM_SEG_HEAD.COMMON_STRIDE, + "norm": cfg.MODEL.SEM_SEG_HEAD.NORM, + "loss_weight": cfg.MODEL.SEM_SEG_HEAD.LOSS_WEIGHT, + } + + def forward(self, features, targets=None): + """ + Returns: + In training, returns (None, dict of losses) + In inference, returns (CxHxW logits, {}) + """ + x = self.layers(features) + if self.training: + return None, self.losses(x, targets) + else: + x = F.interpolate( + x, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + return x, {} + + def layers(self, features): + for i, f in enumerate(self.in_features): + if i == 0: + x = self.scale_heads[i](features[f]) + else: + x = x + self.scale_heads[i](features[f]) + x = self.predictor(x) + return x + + def losses(self, predictions, targets): + predictions = predictions.float() # https://github.com/pytorch/pytorch/issues/48163 + predictions = F.interpolate( + predictions, + scale_factor=self.common_stride, + mode="bilinear", + align_corners=False, + ) + loss = F.cross_entropy( + predictions, targets, reduction="mean", ignore_index=self.ignore_value + ) + losses = {"loss_sem_seg": loss * self.loss_weight} + return losses diff --git a/detectron2/detectron2/modeling/mmdet_wrapper.py b/detectron2/detectron2/modeling/mmdet_wrapper.py new file mode 100755 index 0000000..293b3e9 --- /dev/null +++ b/detectron2/detectron2/modeling/mmdet_wrapper.py @@ -0,0 +1,273 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import logging +import numpy as np +from collections import OrderedDict +from collections.abc import Mapping +from typing import Dict, List, Optional, Tuple, Union +import torch +from omegaconf import DictConfig, OmegaConf +from torch import Tensor, nn + +from detectron2.layers import ShapeSpec +from detectron2.structures import BitMasks, Boxes, ImageList, Instances +from detectron2.utils.events import get_event_storage + +from .backbone import Backbone + +logger = logging.getLogger(__name__) + + +def _to_container(cfg): + """ + mmdet will assert the type of dict/list. + So convert omegaconf objects to dict/list. + """ + if isinstance(cfg, DictConfig): + cfg = OmegaConf.to_container(cfg, resolve=True) + from mmcv.utils import ConfigDict + + return ConfigDict(cfg) + + +class MMDetBackbone(Backbone): + """ + Wrapper of mmdetection backbones to use in detectron2. + + mmdet backbones produce list/tuple of tensors, while detectron2 backbones + produce a dict of tensors. This class wraps the given backbone to produce + output in detectron2's convention, so it can be used in place of detectron2 + backbones. + """ + + def __init__( + self, + backbone: Union[nn.Module, Mapping], + neck: Union[nn.Module, Mapping, None] = None, + *, + output_shapes: List[ShapeSpec], + output_names: Optional[List[str]] = None, + ): + """ + Args: + backbone: either a backbone module or a mmdet config dict that defines a + backbone. The backbone takes a 4D image tensor and returns a + sequence of tensors. + neck: either a backbone module or a mmdet config dict that defines a + neck. The neck takes outputs of backbone and returns a + sequence of tensors. If None, no neck is used. + output_shapes: shape for every output of the backbone (or neck, if given). + stride and channels are often needed. + output_names: names for every output of the backbone (or neck, if given). + By default, will use "out0", "out1", ... + """ + super().__init__() + if isinstance(backbone, Mapping): + from mmdet.models import build_backbone + + backbone = build_backbone(_to_container(backbone)) + self.backbone = backbone + + if isinstance(neck, Mapping): + from mmdet.models import build_neck + + neck = build_neck(_to_container(neck)) + self.neck = neck + + # "Neck" weights, if any, are part of neck itself. This is the interface + # of mmdet so we follow it. Reference: + # https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/detectors/two_stage.py + logger.info("Initializing mmdet backbone weights...") + self.backbone.init_weights() + # train() in mmdet modules is non-trivial, and has to be explicitly + # called. Reference: + # https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/backbones/resnet.py + self.backbone.train() + if self.neck is not None: + logger.info("Initializing mmdet neck weights ...") + if isinstance(self.neck, nn.Sequential): + for m in self.neck: + m.init_weights() + else: + self.neck.init_weights() + self.neck.train() + + self._output_shapes = output_shapes + if not output_names: + output_names = [f"out{i}" for i in range(len(output_shapes))] + self._output_names = output_names + + def forward(self, x) -> Dict[str, Tensor]: + outs = self.backbone(x) + if self.neck is not None: + outs = self.neck(outs) + assert isinstance( + outs, (list, tuple) + ), "mmdet backbone should return a list/tuple of tensors!" + if len(outs) != len(self._output_shapes): + raise ValueError( + "Length of output_shapes does not match outputs from the mmdet backbone: " + f"{len(outs)} != {len(self._output_shapes)}" + ) + return {k: v for k, v in zip(self._output_names, outs)} + + def output_shape(self) -> Dict[str, ShapeSpec]: + return {k: v for k, v in zip(self._output_names, self._output_shapes)} + + +class MMDetDetector(nn.Module): + """ + Wrapper of a mmdetection detector model, for detection and instance segmentation. + Input/output formats of this class follow detectron2's convention, so a + mmdetection model can be trained and evaluated in detectron2. + """ + + def __init__( + self, + detector: Union[nn.Module, Mapping], + *, + # Default is 32 regardless of model: + # https://github.com/open-mmlab/mmdetection/tree/master/configs/_base_/datasets + size_divisibility=32, + pixel_mean: Tuple[float], + pixel_std: Tuple[float], + ): + """ + Args: + detector: a mmdet detector, or a mmdet config dict that defines a detector. + size_divisibility: pad input images to multiple of this number + pixel_mean: per-channel mean to normalize input image + pixel_std: per-channel stddev to normalize input image + """ + super().__init__() + if isinstance(detector, Mapping): + from mmdet.models import build_detector + + detector = build_detector(_to_container(detector)) + self.detector = detector + self.detector.init_weights() + self.size_divisibility = size_divisibility + + self.register_buffer("pixel_mean", torch.tensor(pixel_mean).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(pixel_std).view(-1, 1, 1), False) + assert ( + self.pixel_mean.shape == self.pixel_std.shape + ), f"{self.pixel_mean} and {self.pixel_std} have different shapes!" + + def forward(self, batched_inputs: List[Dict[str, torch.Tensor]]): + images = [x["image"].to(self.device) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + images = ImageList.from_tensors(images, size_divisibility=self.size_divisibility).tensor + metas = [] + rescale = {"height" in x for x in batched_inputs} + if len(rescale) != 1: + raise ValueError("Some inputs have original height/width, but some don't!") + rescale = list(rescale)[0] + output_shapes = [] + for input in batched_inputs: + meta = {} + c, h, w = input["image"].shape + meta["img_shape"] = meta["ori_shape"] = (h, w, c) + if rescale: + scale_factor = np.array( + [w / input["width"], h / input["height"]] * 2, dtype="float32" + ) + ori_shape = (input["height"], input["width"]) + output_shapes.append(ori_shape) + meta["ori_shape"] = ori_shape + (c,) + else: + scale_factor = 1.0 + output_shapes.append((h, w)) + meta["scale_factor"] = scale_factor + meta["flip"] = False + padh, padw = images.shape[-2:] + meta["pad_shape"] = (padh, padw, c) + metas.append(meta) + + if self.training: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + if gt_instances[0].has("gt_masks"): + from mmdet.core import PolygonMasks as mm_PolygonMasks, BitmapMasks as mm_BitMasks + + def convert_mask(m, shape): + # mmdet mask format + if isinstance(m, BitMasks): + return mm_BitMasks(m.tensor.cpu().numpy(), shape[0], shape[1]) + else: + return mm_PolygonMasks(m.polygons, shape[0], shape[1]) + + gt_masks = [convert_mask(x.gt_masks, x.image_size) for x in gt_instances] + losses_and_metrics = self.detector.forward_train( + images, + metas, + [x.gt_boxes.tensor for x in gt_instances], + [x.gt_classes for x in gt_instances], + gt_masks=gt_masks, + ) + else: + losses_and_metrics = self.detector.forward_train( + images, + metas, + [x.gt_boxes.tensor for x in gt_instances], + [x.gt_classes for x in gt_instances], + ) + return _parse_losses(losses_and_metrics) + else: + results = self.detector.simple_test(images, metas, rescale=rescale) + results = [ + {"instances": _convert_mmdet_result(r, shape)} + for r, shape in zip(results, output_shapes) + ] + return results + + @property + def device(self): + return self.pixel_mean.device + + +# Reference: show_result() in +# https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/detectors/base.py +def _convert_mmdet_result(result, shape: Tuple[int, int]) -> Instances: + if isinstance(result, tuple): + bbox_result, segm_result = result + if isinstance(segm_result, tuple): + segm_result = segm_result[0] + else: + bbox_result, segm_result = result, None + + bboxes = torch.from_numpy(np.vstack(bbox_result)) # Nx5 + bboxes, scores = bboxes[:, :4], bboxes[:, -1] + labels = [ + torch.full((bbox.shape[0],), i, dtype=torch.int32) for i, bbox in enumerate(bbox_result) + ] + labels = torch.cat(labels) + inst = Instances(shape) + inst.pred_boxes = Boxes(bboxes) + inst.scores = scores + inst.pred_classes = labels + + if segm_result is not None and len(labels) > 0: + segm_result = list(itertools.chain(*segm_result)) + segm_result = [torch.from_numpy(x) if isinstance(x, np.ndarray) else x for x in segm_result] + segm_result = torch.stack(segm_result, dim=0) + inst.pred_masks = segm_result + return inst + + +# reference: https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/detectors/base.py +def _parse_losses(losses: Dict[str, Tensor]) -> Dict[str, Tensor]: + log_vars = OrderedDict() + for loss_name, loss_value in losses.items(): + if isinstance(loss_value, torch.Tensor): + log_vars[loss_name] = loss_value.mean() + elif isinstance(loss_value, list): + log_vars[loss_name] = sum(_loss.mean() for _loss in loss_value) + else: + raise TypeError(f"{loss_name} is not a tensor or list of tensors") + + if "loss" not in loss_name: + # put metrics to storage; don't return them + storage = get_event_storage() + value = log_vars.pop(loss_name).cpu().item() + storage.put_scalar(loss_name, value) + return log_vars diff --git a/detectron2/detectron2/modeling/poolers.py b/detectron2/detectron2/modeling/poolers.py new file mode 100755 index 0000000..3393794 --- /dev/null +++ b/detectron2/detectron2/modeling/poolers.py @@ -0,0 +1,263 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +from typing import List, Optional +import torch +from torch import nn +from torchvision.ops import RoIPool + +from detectron2.layers import ROIAlign, ROIAlignRotated, cat, nonzero_tuple, shapes_to_tensor +from detectron2.structures import Boxes +from detectron2.utils.tracing import assert_fx_safe, is_fx_tracing + +""" +To export ROIPooler to torchscript, in this file, variables that should be annotated with +`Union[List[Boxes], List[RotatedBoxes]]` are only annotated with `List[Boxes]`. + +TODO: Correct these annotations when torchscript support `Union`. +https://github.com/pytorch/pytorch/issues/41412 +""" + +__all__ = ["ROIPooler"] + + +def assign_boxes_to_levels( + box_lists: List[Boxes], + min_level: int, + max_level: int, + canonical_box_size: int, + canonical_level: int, +): + """ + Map each box in `box_lists` to a feature map level index and return the assignment + vector. + + Args: + box_lists (list[Boxes] | list[RotatedBoxes]): A list of N Boxes or N RotatedBoxes, + where N is the number of images in the batch. + min_level (int): Smallest feature map level index. The input is considered index 0, + the output of stage 1 is index 1, and so. + max_level (int): Largest feature map level index. + canonical_box_size (int): A canonical box size in pixels (sqrt(box area)). + canonical_level (int): The feature map level index on which a canonically-sized box + should be placed. + + Returns: + A tensor of length M, where M is the total number of boxes aggregated over all + N batch images. The memory layout corresponds to the concatenation of boxes + from all images. Each element is the feature map index, as an offset from + `self.min_level`, for the corresponding box (so value i means the box is at + `self.min_level + i`). + """ + box_sizes = torch.sqrt(cat([boxes.area() for boxes in box_lists])) + # Eqn.(1) in FPN paper + level_assignments = torch.floor( + canonical_level + torch.log2(box_sizes / canonical_box_size + 1e-8) + ) + # clamp level to (min, max), in case the box size is too large or too small + # for the available feature maps + level_assignments = torch.clamp(level_assignments, min=min_level, max=max_level) + return level_assignments.to(torch.int64) - min_level + + +# script the module to avoid hardcoded device type +@torch.jit.script_if_tracing +def _convert_boxes_to_pooler_format(boxes: torch.Tensor, sizes: torch.Tensor) -> torch.Tensor: + sizes = sizes.to(device=boxes.device) + indices = torch.repeat_interleave( + torch.arange(len(sizes), dtype=boxes.dtype, device=boxes.device), sizes + ) + return cat([indices[:, None], boxes], dim=1) + + +def convert_boxes_to_pooler_format(box_lists: List[Boxes]): + """ + Convert all boxes in `box_lists` to the low-level format used by ROI pooling ops + (see description under Returns). + + Args: + box_lists (list[Boxes] | list[RotatedBoxes]): + A list of N Boxes or N RotatedBoxes, where N is the number of images in the batch. + + Returns: + When input is list[Boxes]: + A tensor of shape (M, 5), where M is the total number of boxes aggregated over all + N batch images. + The 5 columns are (batch index, x0, y0, x1, y1), where batch index + is the index in [0, N) identifying which batch image the box with corners at + (x0, y0, x1, y1) comes from. + When input is list[RotatedBoxes]: + A tensor of shape (M, 6), where M is the total number of boxes aggregated over all + N batch images. + The 6 columns are (batch index, x_ctr, y_ctr, width, height, angle_degrees), + where batch index is the index in [0, N) identifying which batch image the + rotated box (x_ctr, y_ctr, width, height, angle_degrees) comes from. + """ + boxes = torch.cat([x.tensor for x in box_lists], dim=0) + # __len__ returns Tensor in tracing. + sizes = shapes_to_tensor([x.__len__() for x in box_lists]) + return _convert_boxes_to_pooler_format(boxes, sizes) + + +@torch.jit.script_if_tracing +def _create_zeros( + batch_target: Optional[torch.Tensor], + channels: int, + height: int, + width: int, + like_tensor: torch.Tensor, +) -> torch.Tensor: + batches = batch_target.shape[0] if batch_target is not None else 0 + sizes = (batches, channels, height, width) + return torch.zeros(sizes, dtype=like_tensor.dtype, device=like_tensor.device) + + +class ROIPooler(nn.Module): + """ + Region of interest feature map pooler that supports pooling from one or more + feature maps. + """ + + def __init__( + self, + output_size, + scales, + sampling_ratio, + pooler_type, + canonical_box_size=224, + canonical_level=4, + ): + """ + Args: + output_size (int, tuple[int] or list[int]): output size of the pooled region, + e.g., 14 x 14. If tuple or list is given, the length must be 2. + scales (list[float]): The scale for each low-level pooling op relative to + the input image. For a feature map with stride s relative to the input + image, scale is defined as 1/s. The stride must be power of 2. + When there are multiple scales, they must form a pyramid, i.e. they must be + a monotically decreasing geometric sequence with a factor of 1/2. + sampling_ratio (int): The `sampling_ratio` parameter for the ROIAlign op. + pooler_type (string): Name of the type of pooling operation that should be applied. + For instance, "ROIPool" or "ROIAlignV2". + canonical_box_size (int): A canonical box size in pixels (sqrt(box area)). The default + is heuristically defined as 224 pixels in the FPN paper (based on ImageNet + pre-training). + canonical_level (int): The feature map level index from which a canonically-sized box + should be placed. The default is defined as level 4 (stride=16) in the FPN paper, + i.e., a box of size 224x224 will be placed on the feature with stride=16. + The box placement for all boxes will be determined from their sizes w.r.t + canonical_box_size. For example, a box whose area is 4x that of a canonical box + should be used to pool features from feature level ``canonical_level+1``. + + Note that the actual input feature maps given to this module may not have + sufficiently many levels for the input boxes. If the boxes are too large or too + small for the input feature maps, the closest level will be used. + """ + super().__init__() + + if isinstance(output_size, int): + output_size = (output_size, output_size) + assert len(output_size) == 2 + assert isinstance(output_size[0], int) and isinstance(output_size[1], int) + self.output_size = output_size + + if pooler_type == "ROIAlign": + self.level_poolers = nn.ModuleList( + ROIAlign( + output_size, spatial_scale=scale, sampling_ratio=sampling_ratio, aligned=False + ) + for scale in scales + ) + elif pooler_type == "ROIAlignV2": + self.level_poolers = nn.ModuleList( + ROIAlign( + output_size, spatial_scale=scale, sampling_ratio=sampling_ratio, aligned=True + ) + for scale in scales + ) + elif pooler_type == "ROIPool": + self.level_poolers = nn.ModuleList( + RoIPool(output_size, spatial_scale=scale) for scale in scales + ) + elif pooler_type == "ROIAlignRotated": + self.level_poolers = nn.ModuleList( + ROIAlignRotated(output_size, spatial_scale=scale, sampling_ratio=sampling_ratio) + for scale in scales + ) + else: + raise ValueError("Unknown pooler type: {}".format(pooler_type)) + + # Map scale (defined as 1 / stride) to its feature map level under the + # assumption that stride is a power of 2. + min_level = -(math.log2(scales[0])) + max_level = -(math.log2(scales[-1])) + assert math.isclose(min_level, int(min_level)) and math.isclose( + max_level, int(max_level) + ), "Featuremap stride is not power of 2!" + self.min_level = int(min_level) + self.max_level = int(max_level) + assert ( + len(scales) == self.max_level - self.min_level + 1 + ), "[ROIPooler] Sizes of input featuremaps do not form a pyramid!" + assert 0 <= self.min_level and self.min_level <= self.max_level + self.canonical_level = canonical_level + assert canonical_box_size > 0 + self.canonical_box_size = canonical_box_size + + def forward(self, x: List[torch.Tensor], box_lists: List[Boxes]): + """ + Args: + x (list[Tensor]): A list of feature maps of NCHW shape, with scales matching those + used to construct this module. + box_lists (list[Boxes] | list[RotatedBoxes]): + A list of N Boxes or N RotatedBoxes, where N is the number of images in the batch. + The box coordinates are defined on the original image and + will be scaled by the `scales` argument of :class:`ROIPooler`. + + Returns: + Tensor: + A tensor of shape (M, C, output_size, output_size) where M is the total number of + boxes aggregated over all N batch images and C is the number of channels in `x`. + """ + num_level_assignments = len(self.level_poolers) + + if not is_fx_tracing(): + torch._assert( + isinstance(x, list) and isinstance(box_lists, list), + "Arguments to pooler must be lists", + ) + assert_fx_safe( + len(x) == num_level_assignments, + "unequal value, num_level_assignments={}, but x is list of {} Tensors".format( + num_level_assignments, len(x) + ), + ) + assert_fx_safe( + len(box_lists) == x[0].size(0), + "unequal value, x[0] batch dim 0 is {}, but box_list has length {}".format( + x[0].size(0), len(box_lists) + ), + ) + if len(box_lists) == 0: + return _create_zeros(None, x[0].shape[1], *self.output_size, x[0]) + + pooler_fmt_boxes = convert_boxes_to_pooler_format(box_lists) + + if num_level_assignments == 1: + return self.level_poolers[0](x[0], pooler_fmt_boxes) + + level_assignments = assign_boxes_to_levels( + box_lists, self.min_level, self.max_level, self.canonical_box_size, self.canonical_level + ) + + num_channels = x[0].shape[1] + output_size = self.output_size[0] + + output = _create_zeros(pooler_fmt_boxes, num_channels, output_size, output_size, x[0]) + + for level, pooler in enumerate(self.level_poolers): + inds = nonzero_tuple(level_assignments == level)[0] + pooler_fmt_boxes_level = pooler_fmt_boxes[inds] + # Use index_put_ instead of advance indexing, to avoid pytorch/issues/49852 + output.index_put_((inds,), pooler(x[level], pooler_fmt_boxes_level)) + + return output diff --git a/detectron2/detectron2/modeling/postprocessing.py b/detectron2/detectron2/modeling/postprocessing.py new file mode 100755 index 0000000..8451260 --- /dev/null +++ b/detectron2/detectron2/modeling/postprocessing.py @@ -0,0 +1,100 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch +from torch.nn import functional as F + +from detectron2.structures import Instances, ROIMasks + + +# perhaps should rename to "resize_instance" +def detector_postprocess( + results: Instances, output_height: int, output_width: int, mask_threshold: float = 0.5 +): + """ + Resize the output instances. + The input images are often resized when entering an object detector. + As a result, we often need the outputs of the detector in a different + resolution from its inputs. + + This function will resize the raw outputs of an R-CNN detector + to produce outputs according to the desired output resolution. + + Args: + results (Instances): the raw outputs from the detector. + `results.image_size` contains the input image resolution the detector sees. + This object might be modified in-place. + output_height, output_width: the desired output resolution. + Returns: + Instances: the resized output from the model, based on the output resolution + """ + if isinstance(output_width, torch.Tensor): + # This shape might (but not necessarily) be tensors during tracing. + # Converts integer tensors to float temporaries to ensure true + # division is performed when computing scale_x and scale_y. + output_width_tmp = output_width.float() + output_height_tmp = output_height.float() + new_size = torch.stack([output_height, output_width]) + else: + new_size = (output_height, output_width) + output_width_tmp = output_width + output_height_tmp = output_height + + scale_x, scale_y = ( + output_width_tmp / results.image_size[1], + output_height_tmp / results.image_size[0], + ) + results = Instances(new_size, **results.get_fields()) + + if results.has("pred_boxes"): + output_boxes = results.pred_boxes + elif results.has("proposal_boxes"): + output_boxes = results.proposal_boxes + else: + output_boxes = None + assert output_boxes is not None, "Predictions must contain boxes!" + + output_boxes.scale(scale_x, scale_y) + output_boxes.clip(results.image_size) + + results = results[output_boxes.nonempty()] + + if results.has("pred_masks"): + if isinstance(results.pred_masks, ROIMasks): + roi_masks = results.pred_masks + else: + # pred_masks is a tensor of shape (N, 1, M, M) + roi_masks = ROIMasks(results.pred_masks[:, 0, :, :]) + results.pred_masks = roi_masks.to_bitmasks( + results.pred_boxes, output_height, output_width, mask_threshold + ).tensor # TODO return ROIMasks/BitMask object in the future + + if results.has("pred_keypoints"): + results.pred_keypoints[:, :, 0] *= scale_x + results.pred_keypoints[:, :, 1] *= scale_y + + return results + + +def sem_seg_postprocess(result, img_size, output_height, output_width): + """ + Return semantic segmentation predictions in the original resolution. + + The input images are often resized when entering semantic segmentor. Moreover, in same + cases, they also padded inside segmentor to be divisible by maximum network stride. + As a result, we often need the predictions of the segmentor in a different + resolution from its inputs. + + Args: + result (Tensor): semantic segmentation prediction logits. A tensor of shape (C, H, W), + where C is the number of classes, and H, W are the height and width of the prediction. + img_size (tuple): image size that segmentor is taking as input. + output_height, output_width: the desired output resolution. + + Returns: + semantic segmentation prediction (Tensor): A tensor of the shape + (C, output_height, output_width) that contains per-pixel soft predictions. + """ + result = result[:, : img_size[0], : img_size[1]].expand(1, -1, -1, -1) + result = F.interpolate( + result, size=(output_height, output_width), mode="bilinear", align_corners=False + )[0] + return result diff --git a/detectron2/detectron2/modeling/proposal_generator/__init__.py b/detectron2/detectron2/modeling/proposal_generator/__init__.py new file mode 100755 index 0000000..3f4e4df --- /dev/null +++ b/detectron2/detectron2/modeling/proposal_generator/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .build import PROPOSAL_GENERATOR_REGISTRY, build_proposal_generator +from .rpn import RPN_HEAD_REGISTRY, build_rpn_head, RPN, StandardRPNHead + +__all__ = list(globals().keys()) diff --git a/detectron2/detectron2/modeling/proposal_generator/build.py b/detectron2/detectron2/modeling/proposal_generator/build.py new file mode 100755 index 0000000..34eb12d --- /dev/null +++ b/detectron2/detectron2/modeling/proposal_generator/build.py @@ -0,0 +1,24 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from detectron2.utils.registry import Registry + +PROPOSAL_GENERATOR_REGISTRY = Registry("PROPOSAL_GENERATOR") +PROPOSAL_GENERATOR_REGISTRY.__doc__ = """ +Registry for proposal generator, which produces object proposals from feature maps. + +The registered object will be called with `obj(cfg, input_shape)`. +The call should return a `nn.Module` object. +""" + +from . import rpn, rrpn # noqa F401 isort:skip + + +def build_proposal_generator(cfg, input_shape): + """ + Build a proposal generator from `cfg.MODEL.PROPOSAL_GENERATOR.NAME`. + The name can be "PrecomputedProposals" to use no proposal generator. + """ + name = cfg.MODEL.PROPOSAL_GENERATOR.NAME + if name == "PrecomputedProposals": + return None + + return PROPOSAL_GENERATOR_REGISTRY.get(name)(cfg, input_shape) diff --git a/detectron2/detectron2/modeling/proposal_generator/proposal_utils.py b/detectron2/detectron2/modeling/proposal_generator/proposal_utils.py new file mode 100755 index 0000000..0fdf5dc --- /dev/null +++ b/detectron2/detectron2/modeling/proposal_generator/proposal_utils.py @@ -0,0 +1,205 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import math +from typing import List, Tuple, Union +import torch + +from detectron2.layers import batched_nms, cat, move_device_like +from detectron2.structures import Boxes, Instances + +logger = logging.getLogger(__name__) + + +def _is_tracing(): + # (fixed in TORCH_VERSION >= 1.9) + if torch.jit.is_scripting(): + # https://github.com/pytorch/pytorch/issues/47379 + return False + else: + return torch.jit.is_tracing() + + +def find_top_rpn_proposals( + proposals: List[torch.Tensor], + pred_objectness_logits: List[torch.Tensor], + image_sizes: List[Tuple[int, int]], + nms_thresh: float, + pre_nms_topk: int, + post_nms_topk: int, + min_box_size: float, + training: bool, +): + """ + For each feature map, select the `pre_nms_topk` highest scoring proposals, + apply NMS, clip proposals, and remove small boxes. Return the `post_nms_topk` + highest scoring proposals among all the feature maps for each image. + + Args: + proposals (list[Tensor]): A list of L tensors. Tensor i has shape (N, Hi*Wi*A, 4). + All proposal predictions on the feature maps. + pred_objectness_logits (list[Tensor]): A list of L tensors. Tensor i has shape (N, Hi*Wi*A). + image_sizes (list[tuple]): sizes (h, w) for each image + nms_thresh (float): IoU threshold to use for NMS + pre_nms_topk (int): number of top k scoring proposals to keep before applying NMS. + When RPN is run on multiple feature maps (as in FPN) this number is per + feature map. + post_nms_topk (int): number of top k scoring proposals to keep after applying NMS. + When RPN is run on multiple feature maps (as in FPN) this number is total, + over all feature maps. + min_box_size (float): minimum proposal box side length in pixels (absolute units + wrt input images). + training (bool): True if proposals are to be used in training, otherwise False. + This arg exists only to support a legacy bug; look for the "NB: Legacy bug ..." + comment. + + Returns: + list[Instances]: list of N Instances. The i-th Instances + stores post_nms_topk object proposals for image i, sorted by their + objectness score in descending order. + """ + num_images = len(image_sizes) + device = ( + proposals[0].device + if torch.jit.is_scripting() + else ("cpu" if torch.jit.is_tracing() else proposals[0].device) + ) + + # 1. Select top-k anchor for every level and every image + topk_scores = [] # #lvl Tensor, each of shape N x topk + topk_proposals = [] + level_ids = [] # #lvl Tensor, each of shape (topk,) + batch_idx = move_device_like(torch.arange(num_images, device=device), proposals[0]) + for level_id, (proposals_i, logits_i) in enumerate(zip(proposals, pred_objectness_logits)): + Hi_Wi_A = logits_i.shape[1] + if isinstance(Hi_Wi_A, torch.Tensor): # it's a tensor in tracing + num_proposals_i = torch.clamp(Hi_Wi_A, max=pre_nms_topk) + else: + num_proposals_i = min(Hi_Wi_A, pre_nms_topk) + + topk_scores_i, topk_idx = logits_i.topk(num_proposals_i, dim=1) + + # each is N x topk + topk_proposals_i = proposals_i[batch_idx[:, None], topk_idx] # N x topk x 4 + + topk_proposals.append(topk_proposals_i) + topk_scores.append(topk_scores_i) + level_ids.append( + move_device_like( + torch.full((num_proposals_i,), level_id, dtype=torch.int64, device=device), + proposals[0], + ) + ) + + # 2. Concat all levels together + topk_scores = cat(topk_scores, dim=1) + topk_proposals = cat(topk_proposals, dim=1) + level_ids = cat(level_ids, dim=0) + + # 3. For each image, run a per-level NMS, and choose topk results. + results: List[Instances] = [] + for n, image_size in enumerate(image_sizes): + boxes = Boxes(topk_proposals[n]) + scores_per_img = topk_scores[n] + lvl = level_ids + + valid_mask = torch.isfinite(boxes.tensor).all(dim=1) & torch.isfinite(scores_per_img) + if not valid_mask.all(): + if training: + raise FloatingPointError( + "Predicted boxes or scores contain Inf/NaN. Training has diverged." + ) + boxes = boxes[valid_mask] + scores_per_img = scores_per_img[valid_mask] + lvl = lvl[valid_mask] + boxes.clip(image_size) + + # filter empty boxes + keep = boxes.nonempty(threshold=min_box_size) + if _is_tracing() or keep.sum().item() != len(boxes): + boxes, scores_per_img, lvl = boxes[keep], scores_per_img[keep], lvl[keep] + + keep = batched_nms(boxes.tensor, scores_per_img, lvl, nms_thresh) + # In Detectron1, there was different behavior during training vs. testing. + # (https://github.com/facebookresearch/Detectron/issues/459) + # During training, topk is over the proposals from *all* images in the training batch. + # During testing, it is over the proposals for each image separately. + # As a result, the training behavior becomes batch-dependent, + # and the configuration "POST_NMS_TOPK_TRAIN" end up relying on the batch size. + # This bug is addressed in Detectron2 to make the behavior independent of batch size. + keep = keep[:post_nms_topk] # keep is already sorted + + res = Instances(image_size) + res.proposal_boxes = boxes[keep] + res.objectness_logits = scores_per_img[keep] + results.append(res) + return results + + +def add_ground_truth_to_proposals( + gt: Union[List[Instances], List[Boxes]], proposals: List[Instances] +) -> List[Instances]: + """ + Call `add_ground_truth_to_proposals_single_image` for all images. + + Args: + gt(Union[List[Instances], List[Boxes]): list of N elements. Element i is a Instances + representing the ground-truth for image i. + proposals (list[Instances]): list of N elements. Element i is a Instances + representing the proposals for image i. + + Returns: + list[Instances]: list of N Instances. Each is the proposals for the image, + with field "proposal_boxes" and "objectness_logits". + """ + assert gt is not None + + if len(proposals) != len(gt): + raise ValueError("proposals and gt should have the same length as the number of images!") + if len(proposals) == 0: + return proposals + + return [ + add_ground_truth_to_proposals_single_image(gt_i, proposals_i) + for gt_i, proposals_i in zip(gt, proposals) + ] + + +def add_ground_truth_to_proposals_single_image( + gt: Union[Instances, Boxes], proposals: Instances +) -> Instances: + """ + Augment `proposals` with `gt`. + + Args: + Same as `add_ground_truth_to_proposals`, but with gt and proposals + per image. + + Returns: + Same as `add_ground_truth_to_proposals`, but for only one image. + """ + if isinstance(gt, Boxes): + # convert Boxes to Instances + gt = Instances(proposals.image_size, gt_boxes=gt) + + gt_boxes = gt.gt_boxes + device = proposals.objectness_logits.device + # Assign all ground-truth boxes an objectness logit corresponding to + # P(object) = sigmoid(logit) =~ 1. + gt_logit_value = math.log((1.0 - 1e-10) / (1 - (1.0 - 1e-10))) + gt_logits = gt_logit_value * torch.ones(len(gt_boxes), device=device) + + # Concatenating gt_boxes with proposals requires them to have the same fields + gt_proposal = Instances(proposals.image_size, **gt.get_fields()) + gt_proposal.proposal_boxes = gt_boxes + gt_proposal.objectness_logits = gt_logits + + for key in proposals.get_fields().keys(): + assert gt_proposal.has( + key + ), "The attribute '{}' in `proposals` does not exist in `gt`".format(key) + + # NOTE: Instances.cat only use fields from the first item. Extra fields in latter items + # will be thrown away. + new_proposals = Instances.cat([proposals, gt_proposal]) + + return new_proposals diff --git a/detectron2/detectron2/modeling/proposal_generator/rpn.py b/detectron2/detectron2/modeling/proposal_generator/rpn.py new file mode 100755 index 0000000..99cd536 --- /dev/null +++ b/detectron2/detectron2/modeling/proposal_generator/rpn.py @@ -0,0 +1,533 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import Dict, List, Optional, Tuple, Union +import torch +import torch.nn.functional as F +from torch import nn + +from detectron2.config import configurable +from detectron2.layers import Conv2d, ShapeSpec, cat +from detectron2.structures import Boxes, ImageList, Instances, pairwise_iou +from detectron2.utils.events import get_event_storage +from detectron2.utils.memory import retry_if_cuda_oom +from detectron2.utils.registry import Registry + +from ..anchor_generator import build_anchor_generator +from ..box_regression import Box2BoxTransform, _dense_box_regression_loss +from ..matcher import Matcher +from ..sampling import subsample_labels +from .build import PROPOSAL_GENERATOR_REGISTRY +from .proposal_utils import find_top_rpn_proposals + +RPN_HEAD_REGISTRY = Registry("RPN_HEAD") +RPN_HEAD_REGISTRY.__doc__ = """ +Registry for RPN heads, which take feature maps and perform +objectness classification and bounding box regression for anchors. + +The registered object will be called with `obj(cfg, input_shape)`. +The call should return a `nn.Module` object. +""" + + +""" +Shape shorthand in this module: + + N: number of images in the minibatch + L: number of feature maps per image on which RPN is run + A: number of cell anchors (must be the same for all feature maps) + Hi, Wi: height and width of the i-th feature map + B: size of the box parameterization + +Naming convention: + + objectness: refers to the binary classification of an anchor as object vs. not object. + + deltas: refers to the 4-d (dx, dy, dw, dh) deltas that parameterize the box2box + transform (see :class:`box_regression.Box2BoxTransform`), or 5d for rotated boxes. + + pred_objectness_logits: predicted objectness scores in [-inf, +inf]; use + sigmoid(pred_objectness_logits) to estimate P(object). + + gt_labels: ground-truth binary classification labels for objectness + + pred_anchor_deltas: predicted box2box transform deltas + + gt_anchor_deltas: ground-truth box2box transform deltas +""" + + +def build_rpn_head(cfg, input_shape): + """ + Build an RPN head defined by `cfg.MODEL.RPN.HEAD_NAME`. + """ + name = cfg.MODEL.RPN.HEAD_NAME + return RPN_HEAD_REGISTRY.get(name)(cfg, input_shape) + + +@RPN_HEAD_REGISTRY.register() +class StandardRPNHead(nn.Module): + """ + Standard RPN classification and regression heads described in :paper:`Faster R-CNN`. + Uses a 3x3 conv to produce a shared hidden state from which one 1x1 conv predicts + objectness logits for each anchor and a second 1x1 conv predicts bounding-box deltas + specifying how to deform each anchor into an object proposal. + """ + + @configurable + def __init__( + self, *, in_channels: int, num_anchors: int, box_dim: int = 4, conv_dims: List[int] = (-1,) + ): + """ + NOTE: this interface is experimental. + + Args: + in_channels (int): number of input feature channels. When using multiple + input features, they must have the same number of channels. + num_anchors (int): number of anchors to predict for *each spatial position* + on the feature map. The total number of anchors for each + feature map will be `num_anchors * H * W`. + box_dim (int): dimension of a box, which is also the number of box regression + predictions to make for each anchor. An axis aligned box has + box_dim=4, while a rotated box has box_dim=5. + conv_dims (list[int]): a list of integers representing the output channels + of N conv layers. Set it to -1 to use the same number of output channels + as input channels. + """ + super().__init__() + cur_channels = in_channels + # Keeping the old variable names and structure for backwards compatiblity. + # Otherwise the old checkpoints will fail to load. + if len(conv_dims) == 1: + out_channels = cur_channels if conv_dims[0] == -1 else conv_dims[0] + # 3x3 conv for the hidden representation + self.conv = self._get_rpn_conv(cur_channels, out_channels) + cur_channels = out_channels + else: + self.conv = nn.Sequential() + for k, conv_dim in enumerate(conv_dims): + out_channels = cur_channels if conv_dim == -1 else conv_dim + if out_channels <= 0: + raise ValueError( + f"Conv output channels should be greater than 0. Got {out_channels}" + ) + conv = self._get_rpn_conv(cur_channels, out_channels) + self.conv.add_module(f"conv{k}", conv) + cur_channels = out_channels + # 1x1 conv for predicting objectness logits + self.objectness_logits = nn.Conv2d(cur_channels, num_anchors, kernel_size=1, stride=1) + # 1x1 conv for predicting box2box transform deltas + self.anchor_deltas = nn.Conv2d(cur_channels, num_anchors * box_dim, kernel_size=1, stride=1) + + # Keeping the order of weights initialization same for backwards compatiblility. + for layer in self.modules(): + if isinstance(layer, nn.Conv2d): + nn.init.normal_(layer.weight, std=0.01) + nn.init.constant_(layer.bias, 0) + + def _get_rpn_conv(self, in_channels, out_channels): + return Conv2d( + in_channels, + out_channels, + kernel_size=3, + stride=1, + padding=1, + activation=nn.ReLU(), + ) + + @classmethod + def from_config(cls, cfg, input_shape): + # Standard RPN is shared across levels: + in_channels = [s.channels for s in input_shape] + assert len(set(in_channels)) == 1, "Each level must have the same channel!" + in_channels = in_channels[0] + + # RPNHead should take the same input as anchor generator + # NOTE: it assumes that creating an anchor generator does not have unwanted side effect. + anchor_generator = build_anchor_generator(cfg, input_shape) + num_anchors = anchor_generator.num_anchors + box_dim = anchor_generator.box_dim + assert ( + len(set(num_anchors)) == 1 + ), "Each level must have the same number of anchors per spatial position" + return { + "in_channels": in_channels, + "num_anchors": num_anchors[0], + "box_dim": box_dim, + "conv_dims": cfg.MODEL.RPN.CONV_DIMS, + } + + def forward(self, features: List[torch.Tensor]): + """ + Args: + features (list[Tensor]): list of feature maps + + Returns: + list[Tensor]: A list of L elements. + Element i is a tensor of shape (N, A, Hi, Wi) representing + the predicted objectness logits for all anchors. A is the number of cell anchors. + list[Tensor]: A list of L elements. Element i is a tensor of shape + (N, A*box_dim, Hi, Wi) representing the predicted "deltas" used to transform anchors + to proposals. + """ + pred_objectness_logits = [] + pred_anchor_deltas = [] + for x in features: + t = self.conv(x) + pred_objectness_logits.append(self.objectness_logits(t)) + pred_anchor_deltas.append(self.anchor_deltas(t)) + return pred_objectness_logits, pred_anchor_deltas + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class RPN(nn.Module): + """ + Region Proposal Network, introduced by :paper:`Faster R-CNN`. + """ + + @configurable + def __init__( + self, + *, + in_features: List[str], + head: nn.Module, + anchor_generator: nn.Module, + anchor_matcher: Matcher, + box2box_transform: Box2BoxTransform, + batch_size_per_image: int, + positive_fraction: float, + pre_nms_topk: Tuple[float, float], + post_nms_topk: Tuple[float, float], + nms_thresh: float = 0.7, + min_box_size: float = 0.0, + anchor_boundary_thresh: float = -1.0, + loss_weight: Union[float, Dict[str, float]] = 1.0, + box_reg_loss_type: str = "smooth_l1", + smooth_l1_beta: float = 0.0, + ): + """ + NOTE: this interface is experimental. + + Args: + in_features (list[str]): list of names of input features to use + head (nn.Module): a module that predicts logits and regression deltas + for each level from a list of per-level features + anchor_generator (nn.Module): a module that creates anchors from a + list of features. Usually an instance of :class:`AnchorGenerator` + anchor_matcher (Matcher): label the anchors by matching them with ground truth. + box2box_transform (Box2BoxTransform): defines the transform from anchors boxes to + instance boxes + batch_size_per_image (int): number of anchors per image to sample for training + positive_fraction (float): fraction of foreground anchors to sample for training + pre_nms_topk (tuple[float]): (train, test) that represents the + number of top k proposals to select before NMS, in + training and testing. + post_nms_topk (tuple[float]): (train, test) that represents the + number of top k proposals to select after NMS, in + training and testing. + nms_thresh (float): NMS threshold used to de-duplicate the predicted proposals + min_box_size (float): remove proposal boxes with any side smaller than this threshold, + in the unit of input image pixels + anchor_boundary_thresh (float): legacy option + loss_weight (float|dict): weights to use for losses. Can be single float for weighting + all rpn losses together, or a dict of individual weightings. Valid dict keys are: + "loss_rpn_cls" - applied to classification loss + "loss_rpn_loc" - applied to box regression loss + box_reg_loss_type (str): Loss type to use. Supported losses: "smooth_l1", "giou". + smooth_l1_beta (float): beta parameter for the smooth L1 regression loss. Default to + use L1 loss. Only used when `box_reg_loss_type` is "smooth_l1" + """ + super().__init__() + self.in_features = in_features + self.rpn_head = head + self.anchor_generator = anchor_generator + self.anchor_matcher = anchor_matcher + self.box2box_transform = box2box_transform + self.batch_size_per_image = batch_size_per_image + self.positive_fraction = positive_fraction + # Map from self.training state to train/test settings + self.pre_nms_topk = {True: pre_nms_topk[0], False: pre_nms_topk[1]} + self.post_nms_topk = {True: post_nms_topk[0], False: post_nms_topk[1]} + self.nms_thresh = nms_thresh + self.min_box_size = float(min_box_size) + self.anchor_boundary_thresh = anchor_boundary_thresh + if isinstance(loss_weight, float): + loss_weight = {"loss_rpn_cls": loss_weight, "loss_rpn_loc": loss_weight} + self.loss_weight = loss_weight + self.box_reg_loss_type = box_reg_loss_type + self.smooth_l1_beta = smooth_l1_beta + + @classmethod + def from_config(cls, cfg, input_shape: Dict[str, ShapeSpec]): + in_features = cfg.MODEL.RPN.IN_FEATURES + ret = { + "in_features": in_features, + "min_box_size": cfg.MODEL.PROPOSAL_GENERATOR.MIN_SIZE, + "nms_thresh": cfg.MODEL.RPN.NMS_THRESH, + "batch_size_per_image": cfg.MODEL.RPN.BATCH_SIZE_PER_IMAGE, + "positive_fraction": cfg.MODEL.RPN.POSITIVE_FRACTION, + "loss_weight": { + "loss_rpn_cls": cfg.MODEL.RPN.LOSS_WEIGHT, + "loss_rpn_loc": cfg.MODEL.RPN.BBOX_REG_LOSS_WEIGHT * cfg.MODEL.RPN.LOSS_WEIGHT, + }, + "anchor_boundary_thresh": cfg.MODEL.RPN.BOUNDARY_THRESH, + "box2box_transform": Box2BoxTransform(weights=cfg.MODEL.RPN.BBOX_REG_WEIGHTS), + "box_reg_loss_type": cfg.MODEL.RPN.BBOX_REG_LOSS_TYPE, + "smooth_l1_beta": cfg.MODEL.RPN.SMOOTH_L1_BETA, + } + + ret["pre_nms_topk"] = (cfg.MODEL.RPN.PRE_NMS_TOPK_TRAIN, cfg.MODEL.RPN.PRE_NMS_TOPK_TEST) + ret["post_nms_topk"] = (cfg.MODEL.RPN.POST_NMS_TOPK_TRAIN, cfg.MODEL.RPN.POST_NMS_TOPK_TEST) + + ret["anchor_generator"] = build_anchor_generator(cfg, [input_shape[f] for f in in_features]) + ret["anchor_matcher"] = Matcher( + cfg.MODEL.RPN.IOU_THRESHOLDS, cfg.MODEL.RPN.IOU_LABELS, allow_low_quality_matches=True + ) + ret["head"] = build_rpn_head(cfg, [input_shape[f] for f in in_features]) + return ret + + def _subsample_labels(self, label): + """ + Randomly sample a subset of positive and negative examples, and overwrite + the label vector to the ignore value (-1) for all elements that are not + included in the sample. + + Args: + labels (Tensor): a vector of -1, 0, 1. Will be modified in-place and returned. + """ + pos_idx, neg_idx = subsample_labels( + label, self.batch_size_per_image, self.positive_fraction, 0 + ) + # Fill with the ignore label (-1), then set positive and negative labels + label.fill_(-1) + label.scatter_(0, pos_idx, 1) + label.scatter_(0, neg_idx, 0) + return label + + @torch.jit.unused + @torch.no_grad() + def label_and_sample_anchors( + self, anchors: List[Boxes], gt_instances: List[Instances] + ) -> Tuple[List[torch.Tensor], List[torch.Tensor]]: + """ + Args: + anchors (list[Boxes]): anchors for each feature map. + gt_instances: the ground-truth instances for each image. + + Returns: + list[Tensor]: + List of #img tensors. i-th element is a vector of labels whose length is + the total number of anchors across all feature maps R = sum(Hi * Wi * A). + Label values are in {-1, 0, 1}, with meanings: -1 = ignore; 0 = negative + class; 1 = positive class. + list[Tensor]: + i-th element is a Rx4 tensor. The values are the matched gt boxes for each + anchor. Values are undefined for those anchors not labeled as 1. + """ + anchors = Boxes.cat(anchors) + + gt_boxes = [x.gt_boxes for x in gt_instances] + image_sizes = [x.image_size for x in gt_instances] + del gt_instances + + gt_labels = [] + matched_gt_boxes = [] + for image_size_i, gt_boxes_i in zip(image_sizes, gt_boxes): + """ + image_size_i: (h, w) for the i-th image + gt_boxes_i: ground-truth boxes for i-th image + """ + + match_quality_matrix = retry_if_cuda_oom(pairwise_iou)(gt_boxes_i, anchors) + matched_idxs, gt_labels_i = retry_if_cuda_oom(self.anchor_matcher)(match_quality_matrix) + # Matching is memory-expensive and may result in CPU tensors. But the result is small + gt_labels_i = gt_labels_i.to(device=gt_boxes_i.device) + del match_quality_matrix + + if self.anchor_boundary_thresh >= 0: + # Discard anchors that go out of the boundaries of the image + # NOTE: This is legacy functionality that is turned off by default in Detectron2 + anchors_inside_image = anchors.inside_box(image_size_i, self.anchor_boundary_thresh) + gt_labels_i[~anchors_inside_image] = -1 + + # A vector of labels (-1, 0, 1) for each anchor + gt_labels_i = self._subsample_labels(gt_labels_i) + + if len(gt_boxes_i) == 0: + # These values won't be used anyway since the anchor is labeled as background + matched_gt_boxes_i = torch.zeros_like(anchors.tensor) + else: + # TODO wasted indexing computation for ignored boxes + matched_gt_boxes_i = gt_boxes_i[matched_idxs].tensor + + gt_labels.append(gt_labels_i) # N,AHW + matched_gt_boxes.append(matched_gt_boxes_i) + return gt_labels, matched_gt_boxes + + @torch.jit.unused + def losses( + self, + anchors: List[Boxes], + pred_objectness_logits: List[torch.Tensor], + gt_labels: List[torch.Tensor], + pred_anchor_deltas: List[torch.Tensor], + gt_boxes: List[torch.Tensor], + ) -> Dict[str, torch.Tensor]: + """ + Return the losses from a set of RPN predictions and their associated ground-truth. + + Args: + anchors (list[Boxes or RotatedBoxes]): anchors for each feature map, each + has shape (Hi*Wi*A, B), where B is box dimension (4 or 5). + pred_objectness_logits (list[Tensor]): A list of L elements. + Element i is a tensor of shape (N, Hi*Wi*A) representing + the predicted objectness logits for all anchors. + gt_labels (list[Tensor]): Output of :meth:`label_and_sample_anchors`. + pred_anchor_deltas (list[Tensor]): A list of L elements. Element i is a tensor of shape + (N, Hi*Wi*A, 4 or 5) representing the predicted "deltas" used to transform anchors + to proposals. + gt_boxes (list[Tensor]): Output of :meth:`label_and_sample_anchors`. + + Returns: + dict[loss name -> loss value]: A dict mapping from loss name to loss value. + Loss names are: `loss_rpn_cls` for objectness classification and + `loss_rpn_loc` for proposal localization. + """ + num_images = len(gt_labels) + gt_labels = torch.stack(gt_labels) # (N, sum(Hi*Wi*Ai)) + + # Log the number of positive/negative anchors per-image that's used in training + pos_mask = gt_labels == 1 + num_pos_anchors = pos_mask.sum().item() + num_neg_anchors = (gt_labels == 0).sum().item() + storage = get_event_storage() + storage.put_scalar("rpn/num_pos_anchors", num_pos_anchors / num_images) + storage.put_scalar("rpn/num_neg_anchors", num_neg_anchors / num_images) + + localization_loss = _dense_box_regression_loss( + anchors, + self.box2box_transform, + pred_anchor_deltas, + gt_boxes, + pos_mask, + box_reg_loss_type=self.box_reg_loss_type, + smooth_l1_beta=self.smooth_l1_beta, + ) + + valid_mask = gt_labels >= 0 + objectness_loss = F.binary_cross_entropy_with_logits( + cat(pred_objectness_logits, dim=1)[valid_mask], + gt_labels[valid_mask].to(torch.float32), + reduction="sum", + ) + normalizer = self.batch_size_per_image * num_images + losses = { + "loss_rpn_cls": objectness_loss / normalizer, + # The original Faster R-CNN paper uses a slightly different normalizer + # for loc loss. But it doesn't matter in practice + "loss_rpn_loc": localization_loss / normalizer, + } + losses = {k: v * self.loss_weight.get(k, 1.0) for k, v in losses.items()} + return losses + + def forward( + self, + images: ImageList, + features: Dict[str, torch.Tensor], + gt_instances: Optional[List[Instances]] = None, + ): + """ + Args: + images (ImageList): input images of length `N` + features (dict[str, Tensor]): input data as a mapping from feature + map name to tensor. Axis 0 represents the number of images `N` in + the input data; axes 1-3 are channels, height, and width, which may + vary between feature maps (e.g., if a feature pyramid is used). + gt_instances (list[Instances], optional): a length `N` list of `Instances`s. + Each `Instances` stores ground-truth instances for the corresponding image. + + Returns: + proposals: list[Instances]: contains fields "proposal_boxes", "objectness_logits" + loss: dict[Tensor] or None + """ + features = [features[f] for f in self.in_features] + anchors = self.anchor_generator(features) + + pred_objectness_logits, pred_anchor_deltas = self.rpn_head(features) + # Transpose the Hi*Wi*A dimension to the middle: + pred_objectness_logits = [ + # (N, A, Hi, Wi) -> (N, Hi, Wi, A) -> (N, Hi*Wi*A) + score.permute(0, 2, 3, 1).flatten(1) + for score in pred_objectness_logits + ] + pred_anchor_deltas = [ + # (N, A*B, Hi, Wi) -> (N, A, B, Hi, Wi) -> (N, Hi, Wi, A, B) -> (N, Hi*Wi*A, B) + x.view(x.shape[0], -1, self.anchor_generator.box_dim, x.shape[-2], x.shape[-1]) + .permute(0, 3, 4, 1, 2) + .flatten(1, -2) + for x in pred_anchor_deltas + ] + + if self.training: + assert gt_instances is not None, "RPN requires gt_instances in training!" + gt_labels, gt_boxes = self.label_and_sample_anchors(anchors, gt_instances) + losses = self.losses( + anchors, pred_objectness_logits, gt_labels, pred_anchor_deltas, gt_boxes + ) + else: + losses = {} + proposals = self.predict_proposals( + anchors, pred_objectness_logits, pred_anchor_deltas, images.image_sizes + ) + return proposals, losses + + def predict_proposals( + self, + anchors: List[Boxes], + pred_objectness_logits: List[torch.Tensor], + pred_anchor_deltas: List[torch.Tensor], + image_sizes: List[Tuple[int, int]], + ): + """ + Decode all the predicted box regression deltas to proposals. Find the top proposals + by applying NMS and removing boxes that are too small. + + Returns: + proposals (list[Instances]): list of N Instances. The i-th Instances + stores post_nms_topk object proposals for image i, sorted by their + objectness score in descending order. + """ + # The proposals are treated as fixed for joint training with roi heads. + # This approach ignores the derivative w.r.t. the proposal boxes’ coordinates that + # are also network responses. + with torch.no_grad(): + pred_proposals = self._decode_proposals(anchors, pred_anchor_deltas) + return find_top_rpn_proposals( + pred_proposals, + pred_objectness_logits, + image_sizes, + self.nms_thresh, + self.pre_nms_topk[self.training], + self.post_nms_topk[self.training], + self.min_box_size, + self.training, + ) + + def _decode_proposals(self, anchors: List[Boxes], pred_anchor_deltas: List[torch.Tensor]): + """ + Transform anchors into proposals by applying the predicted anchor deltas. + + Returns: + proposals (list[Tensor]): A list of L tensors. Tensor i has shape + (N, Hi*Wi*A, B) + """ + N = pred_anchor_deltas[0].shape[0] + proposals = [] + # For each feature map + for anchors_i, pred_anchor_deltas_i in zip(anchors, pred_anchor_deltas): + B = anchors_i.tensor.size(1) + pred_anchor_deltas_i = pred_anchor_deltas_i.reshape(-1, B) + # Expand anchors to shape (N*Hi*Wi*A, B) + anchors_i = anchors_i.tensor.unsqueeze(0).expand(N, -1, -1).reshape(-1, B) + proposals_i = self.box2box_transform.apply_deltas(pred_anchor_deltas_i, anchors_i) + # Append feature map proposals with shape (N, Hi*Wi*A, B) + proposals.append(proposals_i.view(N, -1, B)) + return proposals diff --git a/detectron2/detectron2/modeling/proposal_generator/rrpn.py b/detectron2/detectron2/modeling/proposal_generator/rrpn.py new file mode 100755 index 0000000..1a3cd28 --- /dev/null +++ b/detectron2/detectron2/modeling/proposal_generator/rrpn.py @@ -0,0 +1,209 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import logging +from typing import Dict, List +import torch + +from detectron2.config import configurable +from detectron2.layers import ShapeSpec, batched_nms_rotated, cat +from detectron2.structures import Instances, RotatedBoxes, pairwise_iou_rotated +from detectron2.utils.memory import retry_if_cuda_oom + +from ..box_regression import Box2BoxTransformRotated +from .build import PROPOSAL_GENERATOR_REGISTRY +from .proposal_utils import _is_tracing +from .rpn import RPN + +logger = logging.getLogger(__name__) + + +def find_top_rrpn_proposals( + proposals, + pred_objectness_logits, + image_sizes, + nms_thresh, + pre_nms_topk, + post_nms_topk, + min_box_size, + training, +): + """ + For each feature map, select the `pre_nms_topk` highest scoring proposals, + apply NMS, clip proposals, and remove small boxes. Return the `post_nms_topk` + highest scoring proposals among all the feature maps if `training` is True, + otherwise, returns the highest `post_nms_topk` scoring proposals for each + feature map. + + Args: + proposals (list[Tensor]): A list of L tensors. Tensor i has shape (N, Hi*Wi*A, 5). + All proposal predictions on the feature maps. + pred_objectness_logits (list[Tensor]): A list of L tensors. Tensor i has shape (N, Hi*Wi*A). + image_sizes (list[tuple]): sizes (h, w) for each image + nms_thresh (float): IoU threshold to use for NMS + pre_nms_topk (int): number of top k scoring proposals to keep before applying NMS. + When RRPN is run on multiple feature maps (as in FPN) this number is per + feature map. + post_nms_topk (int): number of top k scoring proposals to keep after applying NMS. + When RRPN is run on multiple feature maps (as in FPN) this number is total, + over all feature maps. + min_box_size(float): minimum proposal box side length in pixels (absolute units wrt + input images). + training (bool): True if proposals are to be used in training, otherwise False. + This arg exists only to support a legacy bug; look for the "NB: Legacy bug ..." + comment. + + Returns: + proposals (list[Instances]): list of N Instances. The i-th Instances + stores post_nms_topk object proposals for image i. + """ + num_images = len(image_sizes) + device = proposals[0].device + + # 1. Select top-k anchor for every level and every image + topk_scores = [] # #lvl Tensor, each of shape N x topk + topk_proposals = [] + level_ids = [] # #lvl Tensor, each of shape (topk,) + batch_idx = torch.arange(num_images, device=device) + for level_id, proposals_i, logits_i in zip( + itertools.count(), proposals, pred_objectness_logits + ): + Hi_Wi_A = logits_i.shape[1] + if isinstance(Hi_Wi_A, torch.Tensor): # it's a tensor in tracing + num_proposals_i = torch.clamp(Hi_Wi_A, max=pre_nms_topk) + else: + num_proposals_i = min(Hi_Wi_A, pre_nms_topk) + + topk_scores_i, topk_idx = logits_i.topk(num_proposals_i, dim=1) + + # each is N x topk + topk_proposals_i = proposals_i[batch_idx[:, None], topk_idx] # N x topk x 5 + + topk_proposals.append(topk_proposals_i) + topk_scores.append(topk_scores_i) + level_ids.append(torch.full((num_proposals_i,), level_id, dtype=torch.int64, device=device)) + + # 2. Concat all levels together + topk_scores = cat(topk_scores, dim=1) + topk_proposals = cat(topk_proposals, dim=1) + level_ids = cat(level_ids, dim=0) + + # 3. For each image, run a per-level NMS, and choose topk results. + results = [] + for n, image_size in enumerate(image_sizes): + boxes = RotatedBoxes(topk_proposals[n]) + scores_per_img = topk_scores[n] + lvl = level_ids + + valid_mask = torch.isfinite(boxes.tensor).all(dim=1) & torch.isfinite(scores_per_img) + if not valid_mask.all(): + if training: + raise FloatingPointError( + "Predicted boxes or scores contain Inf/NaN. Training has diverged." + ) + boxes = boxes[valid_mask] + scores_per_img = scores_per_img[valid_mask] + lvl = lvl[valid_mask] + boxes.clip(image_size) + + # filter empty boxes + keep = boxes.nonempty(threshold=min_box_size) + if _is_tracing() or keep.sum().item() != len(boxes): + boxes, scores_per_img, lvl = (boxes[keep], scores_per_img[keep], lvl[keep]) + + keep = batched_nms_rotated(boxes.tensor, scores_per_img, lvl, nms_thresh) + # In Detectron1, there was different behavior during training vs. testing. + # (https://github.com/facebookresearch/Detectron/issues/459) + # During training, topk is over the proposals from *all* images in the training batch. + # During testing, it is over the proposals for each image separately. + # As a result, the training behavior becomes batch-dependent, + # and the configuration "POST_NMS_TOPK_TRAIN" end up relying on the batch size. + # This bug is addressed in Detectron2 to make the behavior independent of batch size. + keep = keep[:post_nms_topk] + + res = Instances(image_size) + res.proposal_boxes = boxes[keep] + res.objectness_logits = scores_per_img[keep] + results.append(res) + return results + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class RRPN(RPN): + """ + Rotated Region Proposal Network described in :paper:`RRPN`. + """ + + @configurable + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + if self.anchor_boundary_thresh >= 0: + raise NotImplementedError( + "anchor_boundary_thresh is a legacy option not implemented for RRPN." + ) + + @classmethod + def from_config(cls, cfg, input_shape: Dict[str, ShapeSpec]): + ret = super().from_config(cfg, input_shape) + ret["box2box_transform"] = Box2BoxTransformRotated(weights=cfg.MODEL.RPN.BBOX_REG_WEIGHTS) + return ret + + @torch.no_grad() + def label_and_sample_anchors(self, anchors: List[RotatedBoxes], gt_instances: List[Instances]): + """ + Args: + anchors (list[RotatedBoxes]): anchors for each feature map. + gt_instances: the ground-truth instances for each image. + + Returns: + list[Tensor]: + List of #img tensors. i-th element is a vector of labels whose length is + the total number of anchors across feature maps. Label values are in {-1, 0, 1}, + with meanings: -1 = ignore; 0 = negative class; 1 = positive class. + list[Tensor]: + i-th element is a Nx5 tensor, where N is the total number of anchors across + feature maps. The values are the matched gt boxes for each anchor. + Values are undefined for those anchors not labeled as 1. + """ + anchors = RotatedBoxes.cat(anchors) + + gt_boxes = [x.gt_boxes for x in gt_instances] + del gt_instances + + gt_labels = [] + matched_gt_boxes = [] + for gt_boxes_i in gt_boxes: + """ + gt_boxes_i: ground-truth boxes for i-th image + """ + match_quality_matrix = retry_if_cuda_oom(pairwise_iou_rotated)(gt_boxes_i, anchors) + matched_idxs, gt_labels_i = retry_if_cuda_oom(self.anchor_matcher)(match_quality_matrix) + # Matching is memory-expensive and may result in CPU tensors. But the result is small + gt_labels_i = gt_labels_i.to(device=gt_boxes_i.device) + + # A vector of labels (-1, 0, 1) for each anchor + gt_labels_i = self._subsample_labels(gt_labels_i) + + if len(gt_boxes_i) == 0: + # These values won't be used anyway since the anchor is labeled as background + matched_gt_boxes_i = torch.zeros_like(anchors.tensor) + else: + # TODO wasted indexing computation for ignored boxes + matched_gt_boxes_i = gt_boxes_i[matched_idxs].tensor + + gt_labels.append(gt_labels_i) # N,AHW + matched_gt_boxes.append(matched_gt_boxes_i) + return gt_labels, matched_gt_boxes + + @torch.no_grad() + def predict_proposals(self, anchors, pred_objectness_logits, pred_anchor_deltas, image_sizes): + pred_proposals = self._decode_proposals(anchors, pred_anchor_deltas) + return find_top_rrpn_proposals( + pred_proposals, + pred_objectness_logits, + image_sizes, + self.nms_thresh, + self.pre_nms_topk[self.training], + self.post_nms_topk[self.training], + self.min_box_size, + self.training, + ) diff --git a/detectron2/detectron2/modeling/roi_heads/__init__.py b/detectron2/detectron2/modeling/roi_heads/__init__.py new file mode 100755 index 0000000..d13e9c5 --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/__init__.py @@ -0,0 +1,29 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .box_head import ROI_BOX_HEAD_REGISTRY, build_box_head, FastRCNNConvFCHead +from .keypoint_head import ( + ROI_KEYPOINT_HEAD_REGISTRY, + build_keypoint_head, + BaseKeypointRCNNHead, + KRCNNConvDeconvUpsampleHead, +) +from .mask_head import ( + ROI_MASK_HEAD_REGISTRY, + build_mask_head, + BaseMaskRCNNHead, + MaskRCNNConvUpsampleHead, +) +from .roi_heads import ( + ROI_HEADS_REGISTRY, + ROIHeads, + Res5ROIHeads, + StandardROIHeads, + build_roi_heads, + select_foreground_proposals, +) +from .cascade_rcnn import CascadeROIHeads +from .rotated_fast_rcnn import RROIHeads +from .fast_rcnn import FastRCNNOutputLayers + +from . import cascade_rcnn # isort:skip + +__all__ = list(globals().keys()) diff --git a/detectron2/detectron2/modeling/roi_heads/box_head.py b/detectron2/detectron2/modeling/roi_heads/box_head.py new file mode 100755 index 0000000..5d0370b --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/box_head.py @@ -0,0 +1,118 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import List +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn + +from detectron2.config import configurable +from detectron2.layers import Conv2d, ShapeSpec, get_norm +from detectron2.utils.registry import Registry + +__all__ = ["FastRCNNConvFCHead", "build_box_head", "ROI_BOX_HEAD_REGISTRY"] + +ROI_BOX_HEAD_REGISTRY = Registry("ROI_BOX_HEAD") +ROI_BOX_HEAD_REGISTRY.__doc__ = """ +Registry for box heads, which make box predictions from per-region features. + +The registered object will be called with `obj(cfg, input_shape)`. +""" + + +# To get torchscript support, we make the head a subclass of `nn.Sequential`. +# Therefore, to add new layers in this head class, please make sure they are +# added in the order they will be used in forward(). +@ROI_BOX_HEAD_REGISTRY.register() +class FastRCNNConvFCHead(nn.Sequential): + """ + A head with several 3x3 conv layers (each followed by norm & relu) and then + several fc layers (each followed by relu). + """ + + @configurable + def __init__( + self, input_shape: ShapeSpec, *, conv_dims: List[int], fc_dims: List[int], conv_norm="" + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape (ShapeSpec): shape of the input feature. + conv_dims (list[int]): the output dimensions of the conv layers + fc_dims (list[int]): the output dimensions of the fc layers + conv_norm (str or callable): normalization for the conv layers. + See :func:`detectron2.layers.get_norm` for supported types. + """ + super().__init__() + assert len(conv_dims) + len(fc_dims) > 0 + + self._output_size = (input_shape.channels, input_shape.height, input_shape.width) + + self.conv_norm_relus = [] + for k, conv_dim in enumerate(conv_dims): + conv = Conv2d( + self._output_size[0], + conv_dim, + kernel_size=3, + padding=1, + bias=not conv_norm, + norm=get_norm(conv_norm, conv_dim), + activation=nn.ReLU(), + ) + self.add_module("conv{}".format(k + 1), conv) + self.conv_norm_relus.append(conv) + self._output_size = (conv_dim, self._output_size[1], self._output_size[2]) + + self.fcs = [] + for k, fc_dim in enumerate(fc_dims): + if k == 0: + self.add_module("flatten", nn.Flatten()) + fc = nn.Linear(int(np.prod(self._output_size)), fc_dim) + self.add_module("fc{}".format(k + 1), fc) + self.add_module("fc_relu{}".format(k + 1), nn.ReLU()) + self.fcs.append(fc) + self._output_size = fc_dim + + for layer in self.conv_norm_relus: + weight_init.c2_msra_fill(layer) + for layer in self.fcs: + weight_init.c2_xavier_fill(layer) + + @classmethod + def from_config(cls, cfg, input_shape): + num_conv = cfg.MODEL.ROI_BOX_HEAD.NUM_CONV + conv_dim = cfg.MODEL.ROI_BOX_HEAD.CONV_DIM + num_fc = cfg.MODEL.ROI_BOX_HEAD.NUM_FC + fc_dim = cfg.MODEL.ROI_BOX_HEAD.FC_DIM + return { + "input_shape": input_shape, + "conv_dims": [conv_dim] * num_conv, + "fc_dims": [fc_dim] * num_fc, + "conv_norm": cfg.MODEL.ROI_BOX_HEAD.NORM, + } + + def forward(self, x): + for layer in self: + x = layer(x) + return x + + @property + @torch.jit.unused + def output_shape(self): + """ + Returns: + ShapeSpec: the output feature shape + """ + o = self._output_size + if isinstance(o, int): + return ShapeSpec(channels=o) + else: + return ShapeSpec(channels=o[0], height=o[1], width=o[2]) + + +def build_box_head(cfg, input_shape): + """ + Build a box head defined by `cfg.MODEL.ROI_BOX_HEAD.NAME`. + """ + name = cfg.MODEL.ROI_BOX_HEAD.NAME + return ROI_BOX_HEAD_REGISTRY.get(name)(cfg, input_shape) diff --git a/detectron2/detectron2/modeling/roi_heads/cascade_rcnn.py b/detectron2/detectron2/modeling/roi_heads/cascade_rcnn.py new file mode 100755 index 0000000..a0ca70f --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/cascade_rcnn.py @@ -0,0 +1,299 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import List +import torch +from torch import nn +from torch.autograd.function import Function + +from detectron2.config import configurable +from detectron2.layers import ShapeSpec +from detectron2.structures import Boxes, Instances, pairwise_iou +from detectron2.utils.events import get_event_storage + +from ..box_regression import Box2BoxTransform +from ..matcher import Matcher +from ..poolers import ROIPooler +from .box_head import build_box_head +from .fast_rcnn import FastRCNNOutputLayers, fast_rcnn_inference +from .roi_heads import ROI_HEADS_REGISTRY, StandardROIHeads + + +class _ScaleGradient(Function): + @staticmethod + def forward(ctx, input, scale): + ctx.scale = scale + return input + + @staticmethod + def backward(ctx, grad_output): + return grad_output * ctx.scale, None + + +@ROI_HEADS_REGISTRY.register() +class CascadeROIHeads(StandardROIHeads): + """ + The ROI heads that implement :paper:`Cascade R-CNN`. + """ + + @configurable + def __init__( + self, + *, + box_in_features: List[str], + box_pooler: ROIPooler, + box_heads: List[nn.Module], + box_predictors: List[nn.Module], + proposal_matchers: List[Matcher], + **kwargs, + ): + """ + NOTE: this interface is experimental. + + Args: + box_pooler (ROIPooler): pooler that extracts region features from given boxes + box_heads (list[nn.Module]): box head for each cascade stage + box_predictors (list[nn.Module]): box predictor for each cascade stage + proposal_matchers (list[Matcher]): matcher with different IoU thresholds to + match boxes with ground truth for each stage. The first matcher matches + RPN proposals with ground truth, the other matchers use boxes predicted + by the previous stage as proposals and match them with ground truth. + """ + assert "proposal_matcher" not in kwargs, ( + "CascadeROIHeads takes 'proposal_matchers=' for each stage instead " + "of one 'proposal_matcher='." + ) + # The first matcher matches RPN proposals with ground truth, done in the base class + kwargs["proposal_matcher"] = proposal_matchers[0] + num_stages = self.num_cascade_stages = len(box_heads) + box_heads = nn.ModuleList(box_heads) + box_predictors = nn.ModuleList(box_predictors) + assert len(box_predictors) == num_stages, f"{len(box_predictors)} != {num_stages}!" + assert len(proposal_matchers) == num_stages, f"{len(proposal_matchers)} != {num_stages}!" + super().__init__( + box_in_features=box_in_features, + box_pooler=box_pooler, + box_head=box_heads, + box_predictor=box_predictors, + **kwargs, + ) + self.proposal_matchers = proposal_matchers + + @classmethod + def from_config(cls, cfg, input_shape): + ret = super().from_config(cfg, input_shape) + ret.pop("proposal_matcher") + return ret + + @classmethod + def _init_box_head(cls, cfg, input_shape): + # fmt: off + in_features = cfg.MODEL.ROI_HEADS.IN_FEATURES + pooler_resolution = cfg.MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION + pooler_scales = tuple(1.0 / input_shape[k].stride for k in in_features) + sampling_ratio = cfg.MODEL.ROI_BOX_HEAD.POOLER_SAMPLING_RATIO + pooler_type = cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE + cascade_bbox_reg_weights = cfg.MODEL.ROI_BOX_CASCADE_HEAD.BBOX_REG_WEIGHTS + cascade_ious = cfg.MODEL.ROI_BOX_CASCADE_HEAD.IOUS + assert len(cascade_bbox_reg_weights) == len(cascade_ious) + assert cfg.MODEL.ROI_BOX_HEAD.CLS_AGNOSTIC_BBOX_REG, \ + "CascadeROIHeads only support class-agnostic regression now!" + assert cascade_ious[0] == cfg.MODEL.ROI_HEADS.IOU_THRESHOLDS[0] + # fmt: on + + in_channels = [input_shape[f].channels for f in in_features] + # Check all channel counts are equal + assert len(set(in_channels)) == 1, in_channels + in_channels = in_channels[0] + + box_pooler = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + ) + pooled_shape = ShapeSpec( + channels=in_channels, width=pooler_resolution, height=pooler_resolution + ) + + box_heads, box_predictors, proposal_matchers = [], [], [] + for match_iou, bbox_reg_weights in zip(cascade_ious, cascade_bbox_reg_weights): + box_head = build_box_head(cfg, pooled_shape) + box_heads.append(box_head) + box_predictors.append( + FastRCNNOutputLayers( + cfg, + box_head.output_shape, + box2box_transform=Box2BoxTransform(weights=bbox_reg_weights), + ) + ) + proposal_matchers.append(Matcher([match_iou], [0, 1], allow_low_quality_matches=False)) + return { + "box_in_features": in_features, + "box_pooler": box_pooler, + "box_heads": box_heads, + "box_predictors": box_predictors, + "proposal_matchers": proposal_matchers, + } + + def forward(self, images, features, proposals, targets=None): + del images + if self.training: + proposals = self.label_and_sample_proposals(proposals, targets) + + if self.training: + # Need targets to box head + losses = self._forward_box(features, proposals, targets) + losses.update(self._forward_mask(features, proposals)) + losses.update(self._forward_keypoint(features, proposals)) + return proposals, losses + else: + pred_instances = self._forward_box(features, proposals) + pred_instances = self.forward_with_given_boxes(features, pred_instances) + return pred_instances, {} + + def _forward_box(self, features, proposals, targets=None): + """ + Args: + features, targets: the same as in + Same as in :meth:`ROIHeads.forward`. + proposals (list[Instances]): the per-image object proposals with + their matching ground truth. + Each has fields "proposal_boxes", and "objectness_logits", + "gt_classes", "gt_boxes". + """ + features = [features[f] for f in self.box_in_features] + head_outputs = [] # (predictor, predictions, proposals) + prev_pred_boxes = None + image_sizes = [x.image_size for x in proposals] + for k in range(self.num_cascade_stages): + if k > 0: + # The output boxes of the previous stage are used to create the input + # proposals of the next stage. + proposals = self._create_proposals_from_boxes(prev_pred_boxes, image_sizes) + if self.training: + proposals = self._match_and_label_boxes(proposals, k, targets) + predictions = self._run_stage(features, proposals, k) + prev_pred_boxes = self.box_predictor[k].predict_boxes(predictions, proposals) + head_outputs.append((self.box_predictor[k], predictions, proposals)) + + if self.training: + losses = {} + storage = get_event_storage() + for stage, (predictor, predictions, proposals) in enumerate(head_outputs): + with storage.name_scope("stage{}".format(stage)): + stage_losses = predictor.losses(predictions, proposals) + losses.update({k + "_stage{}".format(stage): v for k, v in stage_losses.items()}) + return losses + else: + # Each is a list[Tensor] of length #image. Each tensor is Ri x (K+1) + scores_per_stage = [h[0].predict_probs(h[1], h[2]) for h in head_outputs] + + # Average the scores across heads + scores = [ + sum(list(scores_per_image)) * (1.0 / self.num_cascade_stages) + for scores_per_image in zip(*scores_per_stage) + ] + # Use the boxes of the last head + predictor, predictions, proposals = head_outputs[-1] + boxes = predictor.predict_boxes(predictions, proposals) + pred_instances, _ = fast_rcnn_inference( + boxes, + scores, + image_sizes, + predictor.test_score_thresh, + predictor.test_nms_thresh, + predictor.test_topk_per_image, + ) + return pred_instances + + @torch.no_grad() + def _match_and_label_boxes(self, proposals, stage, targets): + """ + Match proposals with groundtruth using the matcher at the given stage. + Label the proposals as foreground or background based on the match. + + Args: + proposals (list[Instances]): One Instances for each image, with + the field "proposal_boxes". + stage (int): the current stage + targets (list[Instances]): the ground truth instances + + Returns: + list[Instances]: the same proposals, but with fields "gt_classes" and "gt_boxes" + """ + num_fg_samples, num_bg_samples = [], [] + for proposals_per_image, targets_per_image in zip(proposals, targets): + match_quality_matrix = pairwise_iou( + targets_per_image.gt_boxes, proposals_per_image.proposal_boxes + ) + # proposal_labels are 0 or 1 + matched_idxs, proposal_labels = self.proposal_matchers[stage](match_quality_matrix) + if len(targets_per_image) > 0: + gt_classes = targets_per_image.gt_classes[matched_idxs] + # Label unmatched proposals (0 label from matcher) as background (label=num_classes) + gt_classes[proposal_labels == 0] = self.num_classes + gt_boxes = targets_per_image.gt_boxes[matched_idxs] + else: + gt_classes = torch.zeros_like(matched_idxs) + self.num_classes + gt_boxes = Boxes( + targets_per_image.gt_boxes.tensor.new_zeros((len(proposals_per_image), 4)) + ) + proposals_per_image.gt_classes = gt_classes + proposals_per_image.gt_boxes = gt_boxes + + num_fg_samples.append((proposal_labels == 1).sum().item()) + num_bg_samples.append(proposal_labels.numel() - num_fg_samples[-1]) + + # Log the number of fg/bg samples in each stage + storage = get_event_storage() + storage.put_scalar( + "stage{}/roi_head/num_fg_samples".format(stage), + sum(num_fg_samples) / len(num_fg_samples), + ) + storage.put_scalar( + "stage{}/roi_head/num_bg_samples".format(stage), + sum(num_bg_samples) / len(num_bg_samples), + ) + return proposals + + def _run_stage(self, features, proposals, stage): + """ + Args: + features (list[Tensor]): #lvl input features to ROIHeads + proposals (list[Instances]): #image Instances, with the field "proposal_boxes" + stage (int): the current stage + + Returns: + Same output as `FastRCNNOutputLayers.forward()`. + """ + box_features = self.box_pooler(features, [x.proposal_boxes for x in proposals]) + # The original implementation averages the losses among heads, + # but scale up the parameter gradients of the heads. + # This is equivalent to adding the losses among heads, + # but scale down the gradients on features. + if self.training: + box_features = _ScaleGradient.apply(box_features, 1.0 / self.num_cascade_stages) + box_features = self.box_head[stage](box_features) + return self.box_predictor[stage](box_features) + + def _create_proposals_from_boxes(self, boxes, image_sizes): + """ + Args: + boxes (list[Tensor]): per-image predicted boxes, each of shape Ri x 4 + image_sizes (list[tuple]): list of image shapes in (h, w) + + Returns: + list[Instances]: per-image proposals with the given boxes. + """ + # Just like RPN, the proposals should not have gradients + boxes = [Boxes(b.detach()) for b in boxes] + proposals = [] + for boxes_per_image, image_size in zip(boxes, image_sizes): + boxes_per_image.clip(image_size) + if self.training: + # do not filter empty boxes at inference time, + # because the scores from each stage need to be aligned and added later + boxes_per_image = boxes_per_image[boxes_per_image.nonempty()] + prop = Instances(image_size) + prop.proposal_boxes = boxes_per_image + proposals.append(prop) + return proposals diff --git a/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py b/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py new file mode 100755 index 0000000..039e249 --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/fast_rcnn.py @@ -0,0 +1,569 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +from typing import Callable, Dict, List, Optional, Tuple, Union +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.data.detection_utils import get_fed_loss_cls_weights +from detectron2.layers import ShapeSpec, batched_nms, cat, cross_entropy, nonzero_tuple +from detectron2.modeling.box_regression import Box2BoxTransform, _dense_box_regression_loss +from detectron2.structures import Boxes, Instances +from detectron2.utils.events import get_event_storage + +__all__ = ["fast_rcnn_inference", "FastRCNNOutputLayers"] + + +logger = logging.getLogger(__name__) + +""" +Shape shorthand in this module: + + N: number of images in the minibatch + R: number of ROIs, combined over all images, in the minibatch + Ri: number of ROIs in image i + K: number of foreground classes. E.g.,there are 80 foreground classes in COCO. + +Naming convention: + + deltas: refers to the 4-d (dx, dy, dw, dh) deltas that parameterize the box2box + transform (see :class:`box_regression.Box2BoxTransform`). + + pred_class_logits: predicted class scores in [-inf, +inf]; use + softmax(pred_class_logits) to estimate P(class). + + gt_classes: ground-truth classification labels in [0, K], where [0, K) represent + foreground object classes and K represents the background class. + + pred_proposal_deltas: predicted box2box transform deltas for transforming proposals + to detection box predictions. + + gt_proposal_deltas: ground-truth box2box transform deltas +""" + + +def fast_rcnn_inference( + boxes: List[torch.Tensor], + scores: List[torch.Tensor], + image_shapes: List[Tuple[int, int]], + score_thresh: float, + nms_thresh: float, + topk_per_image: int, +): + """ + Call `fast_rcnn_inference_single_image` for all images. + + Args: + boxes (list[Tensor]): A list of Tensors of predicted class-specific or class-agnostic + boxes for each image. Element i has shape (Ri, K * 4) if doing + class-specific regression, or (Ri, 4) if doing class-agnostic + regression, where Ri is the number of predicted objects for image i. + This is compatible with the output of :meth:`FastRCNNOutputLayers.predict_boxes`. + scores (list[Tensor]): A list of Tensors of predicted class scores for each image. + Element i has shape (Ri, K + 1), where Ri is the number of predicted objects + for image i. Compatible with the output of :meth:`FastRCNNOutputLayers.predict_probs`. + image_shapes (list[tuple]): A list of (width, height) tuples for each image in the batch. + score_thresh (float): Only return detections with a confidence score exceeding this + threshold. + nms_thresh (float): The threshold to use for box non-maximum suppression. Value in [0, 1]. + topk_per_image (int): The number of top scoring detections to return. Set < 0 to return + all detections. + + Returns: + instances: (list[Instances]): A list of N instances, one for each image in the batch, + that stores the topk most confidence detections. + kept_indices: (list[Tensor]): A list of 1D tensor of length of N, each element indicates + the corresponding boxes/scores index in [0, Ri) from the input, for image i. + """ + result_per_image = [ + fast_rcnn_inference_single_image( + boxes_per_image, scores_per_image, image_shape, score_thresh, nms_thresh, topk_per_image + ) + for scores_per_image, boxes_per_image, image_shape in zip(scores, boxes, image_shapes) + ] + return [x[0] for x in result_per_image], [x[1] for x in result_per_image] + + +def _log_classification_stats(pred_logits, gt_classes, prefix="fast_rcnn"): + """ + Log the classification metrics to EventStorage. + + Args: + pred_logits: Rx(K+1) logits. The last column is for background class. + gt_classes: R labels + """ + num_instances = gt_classes.numel() + if num_instances == 0: + return + pred_classes = pred_logits.argmax(dim=1) + bg_class_ind = pred_logits.shape[1] - 1 + + fg_inds = (gt_classes >= 0) & (gt_classes < bg_class_ind) + num_fg = fg_inds.nonzero().numel() + fg_gt_classes = gt_classes[fg_inds] + fg_pred_classes = pred_classes[fg_inds] + + num_false_negative = (fg_pred_classes == bg_class_ind).nonzero().numel() + num_accurate = (pred_classes == gt_classes).nonzero().numel() + fg_num_accurate = (fg_pred_classes == fg_gt_classes).nonzero().numel() + + storage = get_event_storage() + storage.put_scalar(f"{prefix}/cls_accuracy", num_accurate / num_instances) + if num_fg > 0: + storage.put_scalar(f"{prefix}/fg_cls_accuracy", fg_num_accurate / num_fg) + storage.put_scalar(f"{prefix}/false_negative", num_false_negative / num_fg) + + +def fast_rcnn_inference_single_image( + boxes, + scores, + image_shape: Tuple[int, int], + score_thresh: float, + nms_thresh: float, + topk_per_image: int, +): + """ + Single-image inference. Return bounding-box detection results by thresholding + on scores and applying non-maximum suppression (NMS). + + Args: + Same as `fast_rcnn_inference`, but with boxes, scores, and image shapes + per image. + + Returns: + Same as `fast_rcnn_inference`, but for only one image. + """ + valid_mask = torch.isfinite(boxes).all(dim=1) & torch.isfinite(scores).all(dim=1) + if not valid_mask.all(): + boxes = boxes[valid_mask] + scores = scores[valid_mask] + + scores = scores[:, :-1] + num_bbox_reg_classes = boxes.shape[1] // 4 + # Convert to Boxes to use the `clip` function ... + boxes = Boxes(boxes.reshape(-1, 4)) + boxes.clip(image_shape) + boxes = boxes.tensor.view(-1, num_bbox_reg_classes, 4) # R x C x 4 + + # 1. Filter results based on detection scores. It can make NMS more efficient + # by filtering out low-confidence detections. + filter_mask = scores > score_thresh # R x K + # R' x 2. First column contains indices of the R predictions; + # Second column contains indices of classes. + filter_inds = filter_mask.nonzero() + if num_bbox_reg_classes == 1: + boxes = boxes[filter_inds[:, 0], 0] + else: + boxes = boxes[filter_mask] + scores = scores[filter_mask] + + # 2. Apply NMS for each class independently. + keep = batched_nms(boxes, scores, filter_inds[:, 1], nms_thresh) + if topk_per_image >= 0: + keep = keep[:topk_per_image] + boxes, scores, filter_inds = boxes[keep], scores[keep], filter_inds[keep] + + result = Instances(image_shape) + result.pred_boxes = Boxes(boxes) + result.scores = scores + result.pred_classes = filter_inds[:, 1] + return result, filter_inds[:, 0] + + +class FastRCNNOutputLayers(nn.Module): + """ + Two linear layers for predicting Fast R-CNN outputs: + + 1. proposal-to-detection box regression deltas + 2. classification scores + """ + + @configurable + def __init__( + self, + input_shape: ShapeSpec, + *, + box2box_transform, + num_classes: int, + test_score_thresh: float = 0.0, + test_nms_thresh: float = 0.5, + test_topk_per_image: int = 100, + cls_agnostic_bbox_reg: bool = False, + smooth_l1_beta: float = 0.0, + box_reg_loss_type: str = "smooth_l1", + loss_weight: Union[float, Dict[str, float]] = 1.0, + use_fed_loss: bool = False, + use_sigmoid_ce: bool = False, + get_fed_loss_cls_weights: Optional[Callable] = None, + fed_loss_num_classes: int = 50, + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape (ShapeSpec): shape of the input feature to this module + box2box_transform (Box2BoxTransform or Box2BoxTransformRotated): + num_classes (int): number of foreground classes + test_score_thresh (float): threshold to filter predictions results. + test_nms_thresh (float): NMS threshold for prediction results. + test_topk_per_image (int): number of top predictions to produce per image. + cls_agnostic_bbox_reg (bool): whether to use class agnostic for bbox regression + smooth_l1_beta (float): transition point from L1 to L2 loss. Only used if + `box_reg_loss_type` is "smooth_l1" + box_reg_loss_type (str): Box regression loss type. One of: "smooth_l1", "giou", + "diou", "ciou" + loss_weight (float|dict): weights to use for losses. Can be single float for weighting + all losses, or a dict of individual weightings. Valid dict keys are: + * "loss_cls": applied to classification loss + * "loss_box_reg": applied to box regression loss + use_fed_loss (bool): whether to use federated loss which samples additional negative + classes to calculate the loss + use_sigmoid_ce (bool): whether to calculate the loss using weighted average of binary + cross entropy with logits. This could be used together with federated loss + get_fed_loss_cls_weights (Callable): a callable which takes dataset name and frequency + weight power, and returns the probabilities to sample negative classes for + federated loss. The implementation can be found in + detectron2/data/detection_utils.py + fed_loss_num_classes (int): number of federated classes to keep in total + """ + super().__init__() + if isinstance(input_shape, int): # some backward compatibility + input_shape = ShapeSpec(channels=input_shape) + self.num_classes = num_classes + input_size = input_shape.channels * (input_shape.width or 1) * (input_shape.height or 1) + # prediction layer for num_classes foreground classes and one background class (hence + 1) + self.cls_score = nn.Linear(input_size, num_classes + 1) + num_bbox_reg_classes = 1 if cls_agnostic_bbox_reg else num_classes + box_dim = len(box2box_transform.weights) + self.bbox_pred = nn.Linear(input_size, num_bbox_reg_classes * box_dim) + + nn.init.normal_(self.cls_score.weight, std=0.01) + nn.init.normal_(self.bbox_pred.weight, std=0.001) + for l in [self.cls_score, self.bbox_pred]: + nn.init.constant_(l.bias, 0) + + self.box2box_transform = box2box_transform + self.smooth_l1_beta = smooth_l1_beta + self.test_score_thresh = test_score_thresh + self.test_nms_thresh = test_nms_thresh + self.test_topk_per_image = test_topk_per_image + self.box_reg_loss_type = box_reg_loss_type + if isinstance(loss_weight, float): + loss_weight = {"loss_cls": loss_weight, "loss_box_reg": loss_weight} + self.loss_weight = loss_weight + self.use_fed_loss = use_fed_loss + self.use_sigmoid_ce = use_sigmoid_ce + self.fed_loss_num_classes = fed_loss_num_classes + + if self.use_fed_loss: + assert self.use_sigmoid_ce, "Please use sigmoid cross entropy loss with federated loss" + fed_loss_cls_weights = get_fed_loss_cls_weights() + assert ( + len(fed_loss_cls_weights) == self.num_classes + ), "Please check the provided fed_loss_cls_weights. Their size should match num_classes" + self.register_buffer("fed_loss_cls_weights", fed_loss_cls_weights) + + @classmethod + def from_config(cls, cfg, input_shape): + return { + "input_shape": input_shape, + "box2box_transform": Box2BoxTransform(weights=cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_WEIGHTS), + # fmt: off + "num_classes" : cfg.MODEL.ROI_HEADS.NUM_CLASSES, + "cls_agnostic_bbox_reg" : cfg.MODEL.ROI_BOX_HEAD.CLS_AGNOSTIC_BBOX_REG, + "smooth_l1_beta" : cfg.MODEL.ROI_BOX_HEAD.SMOOTH_L1_BETA, + "test_score_thresh" : cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST, + "test_nms_thresh" : cfg.MODEL.ROI_HEADS.NMS_THRESH_TEST, + "test_topk_per_image" : cfg.TEST.DETECTIONS_PER_IMAGE, + "box_reg_loss_type" : cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_LOSS_TYPE, + "loss_weight" : {"loss_box_reg": cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_LOSS_WEIGHT}, # noqa + "use_fed_loss" : cfg.MODEL.ROI_BOX_HEAD.USE_FED_LOSS, + "use_sigmoid_ce" : cfg.MODEL.ROI_BOX_HEAD.USE_SIGMOID_CE, + "get_fed_loss_cls_weights" : lambda: get_fed_loss_cls_weights(dataset_names=cfg.DATASETS.TRAIN, freq_weight_power=cfg.MODEL.ROI_BOX_HEAD.FED_LOSS_FREQ_WEIGHT_POWER), # noqa + "fed_loss_num_classes" : cfg.MODEL.ROI_BOX_HEAD.FED_LOSS_NUM_CLASSES, + # fmt: on + } + + def forward(self, x): + """ + Args: + x: per-region features of shape (N, ...) for N bounding boxes to predict. + + Returns: + (Tensor, Tensor): + First tensor: shape (N,K+1), scores for each of the N box. Each row contains the + scores for K object categories and 1 background class. + + Second tensor: bounding box regression deltas for each box. Shape is shape (N,Kx4), + or (N,4) for class-agnostic regression. + """ + if x.dim() > 2: + x = torch.flatten(x, start_dim=1) + scores = self.cls_score(x) + proposal_deltas = self.bbox_pred(x) + return scores, proposal_deltas + + def losses(self, predictions, proposals): + """ + Args: + predictions: return values of :meth:`forward()`. + proposals (list[Instances]): proposals that match the features that were used + to compute predictions. The fields ``proposal_boxes``, ``gt_boxes``, + ``gt_classes`` are expected. + + Returns: + Dict[str, Tensor]: dict of losses + """ + scores, proposal_deltas = predictions + + # parse classification outputs + gt_classes = ( + cat([p.gt_classes for p in proposals], dim=0) if len(proposals) else torch.empty(0) + ) + _log_classification_stats(scores, gt_classes) + + # parse box regression outputs + if len(proposals): + proposal_boxes = cat([p.proposal_boxes.tensor for p in proposals], dim=0) # Nx4 + assert not proposal_boxes.requires_grad, "Proposals should not require gradients!" + # If "gt_boxes" does not exist, the proposals must be all negative and + # should not be included in regression loss computation. + # Here we just use proposal_boxes as an arbitrary placeholder because its + # value won't be used in self.box_reg_loss(). + gt_boxes = cat( + [(p.gt_boxes if p.has("gt_boxes") else p.proposal_boxes).tensor for p in proposals], + dim=0, + ) + else: + proposal_boxes = gt_boxes = torch.empty((0, 4), device=proposal_deltas.device) + + if self.use_sigmoid_ce: + loss_cls = self.sigmoid_cross_entropy_loss(scores, gt_classes) + else: + loss_cls = cross_entropy(scores, gt_classes, reduction="mean") + + losses = { + "loss_cls": loss_cls, + "loss_box_reg": self.box_reg_loss( + proposal_boxes, gt_boxes, proposal_deltas, gt_classes + ), + } + return {k: v * self.loss_weight.get(k, 1.0) for k, v in losses.items()} + + # Implementation from https://github.com/xingyizhou/CenterNet2/blob/master/projects/CenterNet2/centernet/modeling/roi_heads/fed_loss.py # noqa + # with slight modifications + def get_fed_loss_classes(self, gt_classes, num_fed_loss_classes, num_classes, weight): + """ + Args: + gt_classes: a long tensor of shape R that contains the gt class label of each proposal. + num_fed_loss_classes: minimum number of classes to keep when calculating federated loss. + Will sample negative classes if number of unique gt_classes is smaller than this value. + num_classes: number of foreground classes + weight: probabilities used to sample negative classes + + Returns: + Tensor: + classes to keep when calculating the federated loss, including both unique gt + classes and sampled negative classes. + """ + unique_gt_classes = torch.unique(gt_classes) + prob = unique_gt_classes.new_ones(num_classes + 1).float() + prob[-1] = 0 + if len(unique_gt_classes) < num_fed_loss_classes: + prob[:num_classes] = weight.float().clone() + prob[unique_gt_classes] = 0 + sampled_negative_classes = torch.multinomial( + prob, num_fed_loss_classes - len(unique_gt_classes), replacement=False + ) + fed_loss_classes = torch.cat([unique_gt_classes, sampled_negative_classes]) + else: + fed_loss_classes = unique_gt_classes + return fed_loss_classes + + # Implementation from https://github.com/xingyizhou/CenterNet2/blob/master/projects/CenterNet2/centernet/modeling/roi_heads/custom_fast_rcnn.py#L113 # noqa + # with slight modifications + def sigmoid_cross_entropy_loss(self, pred_class_logits, gt_classes): + """ + Args: + pred_class_logits: shape (N, K+1), scores for each of the N box. Each row contains the + scores for K object categories and 1 background class + gt_classes: a long tensor of shape R that contains the gt class label of each proposal. + """ + if pred_class_logits.numel() == 0: + return pred_class_logits.new_zeros([1])[0] + + N = pred_class_logits.shape[0] + K = pred_class_logits.shape[1] - 1 + + target = pred_class_logits.new_zeros(N, K + 1) + target[range(len(gt_classes)), gt_classes] = 1 + target = target[:, :K] + + cls_loss = F.binary_cross_entropy_with_logits( + pred_class_logits[:, :-1], target, reduction="none" + ) + + if self.use_fed_loss: + fed_loss_classes = self.get_fed_loss_classes( + gt_classes, + num_fed_loss_classes=self.fed_loss_num_classes, + num_classes=K, + weight=self.fed_loss_cls_weights, + ) + fed_loss_classes_mask = fed_loss_classes.new_zeros(K + 1) + fed_loss_classes_mask[fed_loss_classes] = 1 + fed_loss_classes_mask = fed_loss_classes_mask[:K] + weight = fed_loss_classes_mask.view(1, K).expand(N, K).float() + else: + weight = 1 + + loss = torch.sum(cls_loss * weight) / N + return loss + + def box_reg_loss(self, proposal_boxes, gt_boxes, pred_deltas, gt_classes): + """ + Args: + proposal_boxes/gt_boxes are tensors with the same shape (R, 4 or 5). + pred_deltas has shape (R, 4 or 5), or (R, num_classes * (4 or 5)). + gt_classes is a long tensor of shape R, the gt class label of each proposal. + R shall be the number of proposals. + """ + box_dim = proposal_boxes.shape[1] # 4 or 5 + # Regression loss is only computed for foreground proposals (those matched to a GT) + fg_inds = nonzero_tuple((gt_classes >= 0) & (gt_classes < self.num_classes))[0] + if pred_deltas.shape[1] == box_dim: # cls-agnostic regression + fg_pred_deltas = pred_deltas[fg_inds] + else: + fg_pred_deltas = pred_deltas.view(-1, self.num_classes, box_dim)[ + fg_inds, gt_classes[fg_inds] + ] + + loss_box_reg = _dense_box_regression_loss( + [proposal_boxes[fg_inds]], + self.box2box_transform, + [fg_pred_deltas.unsqueeze(0)], + [gt_boxes[fg_inds]], + ..., + self.box_reg_loss_type, + self.smooth_l1_beta, + ) + + # The reg loss is normalized using the total number of regions (R), not the number + # of foreground regions even though the box regression loss is only defined on + # foreground regions. Why? Because doing so gives equal training influence to + # each foreground example. To see how, consider two different minibatches: + # (1) Contains a single foreground region + # (2) Contains 100 foreground regions + # If we normalize by the number of foreground regions, the single example in + # minibatch (1) will be given 100 times as much influence as each foreground + # example in minibatch (2). Normalizing by the total number of regions, R, + # means that the single example in minibatch (1) and each of the 100 examples + # in minibatch (2) are given equal influence. + return loss_box_reg / max(gt_classes.numel(), 1.0) # return 0 if empty + + def inference(self, predictions: Tuple[torch.Tensor, torch.Tensor], proposals: List[Instances]): + """ + Args: + predictions: return values of :meth:`forward()`. + proposals (list[Instances]): proposals that match the features that were + used to compute predictions. The ``proposal_boxes`` field is expected. + + Returns: + list[Instances]: same as `fast_rcnn_inference`. + list[Tensor]: same as `fast_rcnn_inference`. + """ + boxes = self.predict_boxes(predictions, proposals) + scores = self.predict_probs(predictions, proposals) + image_shapes = [x.image_size for x in proposals] + return fast_rcnn_inference( + boxes, + scores, + image_shapes, + self.test_score_thresh, + self.test_nms_thresh, + self.test_topk_per_image, + ) + + def predict_boxes_for_gt_classes(self, predictions, proposals): + """ + Args: + predictions: return values of :meth:`forward()`. + proposals (list[Instances]): proposals that match the features that were used + to compute predictions. The fields ``proposal_boxes``, ``gt_classes`` are expected. + + Returns: + list[Tensor]: + A list of Tensors of predicted boxes for GT classes in case of + class-specific box head. Element i of the list has shape (Ri, B), where Ri is + the number of proposals for image i and B is the box dimension (4 or 5) + """ + if not len(proposals): + return [] + scores, proposal_deltas = predictions + proposal_boxes = cat([p.proposal_boxes.tensor for p in proposals], dim=0) + N, B = proposal_boxes.shape + predict_boxes = self.box2box_transform.apply_deltas( + proposal_deltas, proposal_boxes + ) # Nx(KxB) + + K = predict_boxes.shape[1] // B + if K > 1: + gt_classes = torch.cat([p.gt_classes for p in proposals], dim=0) + # Some proposals are ignored or have a background class. Their gt_classes + # cannot be used as index. + gt_classes = gt_classes.clamp_(0, K - 1) + + predict_boxes = predict_boxes.view(N, K, B)[ + torch.arange(N, dtype=torch.long, device=predict_boxes.device), gt_classes + ] + num_prop_per_image = [len(p) for p in proposals] + return predict_boxes.split(num_prop_per_image) + + def predict_boxes( + self, predictions: Tuple[torch.Tensor, torch.Tensor], proposals: List[Instances] + ): + """ + Args: + predictions: return values of :meth:`forward()`. + proposals (list[Instances]): proposals that match the features that were + used to compute predictions. The ``proposal_boxes`` field is expected. + + Returns: + list[Tensor]: + A list of Tensors of predicted class-specific or class-agnostic boxes + for each image. Element i has shape (Ri, K * B) or (Ri, B), where Ri is + the number of proposals for image i and B is the box dimension (4 or 5) + """ + if not len(proposals): + return [] + _, proposal_deltas = predictions + num_prop_per_image = [len(p) for p in proposals] + proposal_boxes = cat([p.proposal_boxes.tensor for p in proposals], dim=0) + predict_boxes = self.box2box_transform.apply_deltas( + proposal_deltas, + proposal_boxes, + ) # Nx(KxB) + return predict_boxes.split(num_prop_per_image) + + def predict_probs( + self, predictions: Tuple[torch.Tensor, torch.Tensor], proposals: List[Instances] + ): + """ + Args: + predictions: return values of :meth:`forward()`. + proposals (list[Instances]): proposals that match the features that were + used to compute predictions. + + Returns: + list[Tensor]: + A list of Tensors of predicted class probabilities for each image. + Element i has shape (Ri, K + 1), where Ri is the number of proposals for image i. + """ + scores, _ = predictions + num_inst_per_image = [len(p) for p in proposals] + if self.use_sigmoid_ce: + probs = scores.sigmoid() + else: + probs = F.softmax(scores, dim=-1) + return probs.split(num_inst_per_image, dim=0) diff --git a/detectron2/detectron2/modeling/roi_heads/keypoint_head.py b/detectron2/detectron2/modeling/roi_heads/keypoint_head.py new file mode 100755 index 0000000..e0acc13 --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/keypoint_head.py @@ -0,0 +1,272 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import List +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.layers import Conv2d, ConvTranspose2d, cat, interpolate +from detectron2.structures import Instances, heatmaps_to_keypoints +from detectron2.utils.events import get_event_storage +from detectron2.utils.registry import Registry + +_TOTAL_SKIPPED = 0 + + +__all__ = [ + "ROI_KEYPOINT_HEAD_REGISTRY", + "build_keypoint_head", + "BaseKeypointRCNNHead", + "KRCNNConvDeconvUpsampleHead", +] + + +ROI_KEYPOINT_HEAD_REGISTRY = Registry("ROI_KEYPOINT_HEAD") +ROI_KEYPOINT_HEAD_REGISTRY.__doc__ = """ +Registry for keypoint heads, which make keypoint predictions from per-region features. + +The registered object will be called with `obj(cfg, input_shape)`. +""" + + +def build_keypoint_head(cfg, input_shape): + """ + Build a keypoint head from `cfg.MODEL.ROI_KEYPOINT_HEAD.NAME`. + """ + name = cfg.MODEL.ROI_KEYPOINT_HEAD.NAME + return ROI_KEYPOINT_HEAD_REGISTRY.get(name)(cfg, input_shape) + + +def keypoint_rcnn_loss(pred_keypoint_logits, instances, normalizer): + """ + Arguments: + pred_keypoint_logits (Tensor): A tensor of shape (N, K, S, S) where N is the total number + of instances in the batch, K is the number of keypoints, and S is the side length + of the keypoint heatmap. The values are spatial logits. + instances (list[Instances]): A list of M Instances, where M is the batch size. + These instances are predictions from the model + that are in 1:1 correspondence with pred_keypoint_logits. + Each Instances should contain a `gt_keypoints` field containing a `structures.Keypoint` + instance. + normalizer (float): Normalize the loss by this amount. + If not specified, we normalize by the number of visible keypoints in the minibatch. + + Returns a scalar tensor containing the loss. + """ + heatmaps = [] + valid = [] + + keypoint_side_len = pred_keypoint_logits.shape[2] + for instances_per_image in instances: + if len(instances_per_image) == 0: + continue + keypoints = instances_per_image.gt_keypoints + heatmaps_per_image, valid_per_image = keypoints.to_heatmap( + instances_per_image.proposal_boxes.tensor, keypoint_side_len + ) + heatmaps.append(heatmaps_per_image.view(-1)) + valid.append(valid_per_image.view(-1)) + + if len(heatmaps): + keypoint_targets = cat(heatmaps, dim=0) + valid = cat(valid, dim=0).to(dtype=torch.uint8) + valid = torch.nonzero(valid).squeeze(1) + + # torch.mean (in binary_cross_entropy_with_logits) doesn't + # accept empty tensors, so handle it separately + if len(heatmaps) == 0 or valid.numel() == 0: + global _TOTAL_SKIPPED + _TOTAL_SKIPPED += 1 + storage = get_event_storage() + storage.put_scalar("kpts_num_skipped_batches", _TOTAL_SKIPPED, smoothing_hint=False) + return pred_keypoint_logits.sum() * 0 + + N, K, H, W = pred_keypoint_logits.shape + pred_keypoint_logits = pred_keypoint_logits.view(N * K, H * W) + + keypoint_loss = F.cross_entropy( + pred_keypoint_logits[valid], keypoint_targets[valid], reduction="sum" + ) + + # If a normalizer isn't specified, normalize by the number of visible keypoints in the minibatch + if normalizer is None: + normalizer = valid.numel() + keypoint_loss /= normalizer + + return keypoint_loss + + +def keypoint_rcnn_inference(pred_keypoint_logits: torch.Tensor, pred_instances: List[Instances]): + """ + Post process each predicted keypoint heatmap in `pred_keypoint_logits` into (x, y, score) + and add it to the `pred_instances` as a `pred_keypoints` field. + + Args: + pred_keypoint_logits (Tensor): A tensor of shape (R, K, S, S) where R is the total number + of instances in the batch, K is the number of keypoints, and S is the side length of + the keypoint heatmap. The values are spatial logits. + pred_instances (list[Instances]): A list of N Instances, where N is the number of images. + + Returns: + None. Each element in pred_instances will contain extra "pred_keypoints" and + "pred_keypoint_heatmaps" fields. "pred_keypoints" is a tensor of shape + (#instance, K, 3) where the last dimension corresponds to (x, y, score). + The scores are larger than 0. "pred_keypoint_heatmaps" contains the raw + keypoint logits as passed to this function. + """ + # flatten all bboxes from all images together (list[Boxes] -> Rx4 tensor) + bboxes_flat = cat([b.pred_boxes.tensor for b in pred_instances], dim=0) + + pred_keypoint_logits = pred_keypoint_logits.detach() + keypoint_results = heatmaps_to_keypoints(pred_keypoint_logits, bboxes_flat.detach()) + num_instances_per_image = [len(i) for i in pred_instances] + keypoint_results = keypoint_results[:, :, [0, 1, 3]].split(num_instances_per_image, dim=0) + heatmap_results = pred_keypoint_logits.split(num_instances_per_image, dim=0) + + for keypoint_results_per_image, heatmap_results_per_image, instances_per_image in zip( + keypoint_results, heatmap_results, pred_instances + ): + # keypoint_results_per_image is (num instances)x(num keypoints)x(x, y, score) + # heatmap_results_per_image is (num instances)x(num keypoints)x(side)x(side) + instances_per_image.pred_keypoints = keypoint_results_per_image + instances_per_image.pred_keypoint_heatmaps = heatmap_results_per_image + + +class BaseKeypointRCNNHead(nn.Module): + """ + Implement the basic Keypoint R-CNN losses and inference logic described in + Sec. 5 of :paper:`Mask R-CNN`. + """ + + @configurable + def __init__(self, *, num_keypoints, loss_weight=1.0, loss_normalizer=1.0): + """ + NOTE: this interface is experimental. + + Args: + num_keypoints (int): number of keypoints to predict + loss_weight (float): weight to multiple on the keypoint loss + loss_normalizer (float or str): + If float, divide the loss by `loss_normalizer * #images`. + If 'visible', the loss is normalized by the total number of + visible keypoints across images. + """ + super().__init__() + self.num_keypoints = num_keypoints + self.loss_weight = loss_weight + assert loss_normalizer == "visible" or isinstance(loss_normalizer, float), loss_normalizer + self.loss_normalizer = loss_normalizer + + @classmethod + def from_config(cls, cfg, input_shape): + ret = { + "loss_weight": cfg.MODEL.ROI_KEYPOINT_HEAD.LOSS_WEIGHT, + "num_keypoints": cfg.MODEL.ROI_KEYPOINT_HEAD.NUM_KEYPOINTS, + } + normalize_by_visible = ( + cfg.MODEL.ROI_KEYPOINT_HEAD.NORMALIZE_LOSS_BY_VISIBLE_KEYPOINTS + ) # noqa + if not normalize_by_visible: + batch_size_per_image = cfg.MODEL.ROI_HEADS.BATCH_SIZE_PER_IMAGE + positive_sample_fraction = cfg.MODEL.ROI_HEADS.POSITIVE_FRACTION + ret["loss_normalizer"] = ( + ret["num_keypoints"] * batch_size_per_image * positive_sample_fraction + ) + else: + ret["loss_normalizer"] = "visible" + return ret + + def forward(self, x, instances: List[Instances]): + """ + Args: + x: input 4D region feature(s) provided by :class:`ROIHeads`. + instances (list[Instances]): contains the boxes & labels corresponding + to the input features. + Exact format is up to its caller to decide. + Typically, this is the foreground instances in training, with + "proposal_boxes" field and other gt annotations. + In inference, it contains boxes that are already predicted. + + Returns: + A dict of losses if in training. The predicted "instances" if in inference. + """ + x = self.layers(x) + if self.training: + num_images = len(instances) + normalizer = ( + None if self.loss_normalizer == "visible" else num_images * self.loss_normalizer + ) + return { + "loss_keypoint": keypoint_rcnn_loss(x, instances, normalizer=normalizer) + * self.loss_weight + } + else: + keypoint_rcnn_inference(x, instances) + return instances + + def layers(self, x): + """ + Neural network layers that makes predictions from regional input features. + """ + raise NotImplementedError + + +# To get torchscript support, we make the head a subclass of `nn.Sequential`. +# Therefore, to add new layers in this head class, please make sure they are +# added in the order they will be used in forward(). +@ROI_KEYPOINT_HEAD_REGISTRY.register() +class KRCNNConvDeconvUpsampleHead(BaseKeypointRCNNHead, nn.Sequential): + """ + A standard keypoint head containing a series of 3x3 convs, followed by + a transpose convolution and bilinear interpolation for upsampling. + It is described in Sec. 5 of :paper:`Mask R-CNN`. + """ + + @configurable + def __init__(self, input_shape, *, num_keypoints, conv_dims, **kwargs): + """ + NOTE: this interface is experimental. + + Args: + input_shape (ShapeSpec): shape of the input feature + conv_dims: an iterable of output channel counts for each conv in the head + e.g. (512, 512, 512) for three convs outputting 512 channels. + """ + super().__init__(num_keypoints=num_keypoints, **kwargs) + + # default up_scale to 2.0 (this can be made an option) + up_scale = 2.0 + in_channels = input_shape.channels + + for idx, layer_channels in enumerate(conv_dims, 1): + module = Conv2d(in_channels, layer_channels, 3, stride=1, padding=1) + self.add_module("conv_fcn{}".format(idx), module) + self.add_module("conv_fcn_relu{}".format(idx), nn.ReLU()) + in_channels = layer_channels + + deconv_kernel = 4 + self.score_lowres = ConvTranspose2d( + in_channels, num_keypoints, deconv_kernel, stride=2, padding=deconv_kernel // 2 - 1 + ) + self.up_scale = up_scale + + for name, param in self.named_parameters(): + if "bias" in name: + nn.init.constant_(param, 0) + elif "weight" in name: + # Caffe2 implementation uses MSRAFill, which in fact + # corresponds to kaiming_normal_ in PyTorch + nn.init.kaiming_normal_(param, mode="fan_out", nonlinearity="relu") + + @classmethod + def from_config(cls, cfg, input_shape): + ret = super().from_config(cfg, input_shape) + ret["input_shape"] = input_shape + ret["conv_dims"] = cfg.MODEL.ROI_KEYPOINT_HEAD.CONV_DIMS + return ret + + def layers(self, x): + for layer in self: + x = layer(x) + x = interpolate(x, scale_factor=self.up_scale, mode="bilinear", align_corners=False) + return x diff --git a/detectron2/detectron2/modeling/roi_heads/mask_head.py b/detectron2/detectron2/modeling/roi_heads/mask_head.py new file mode 100755 index 0000000..1eff8f7 --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/mask_head.py @@ -0,0 +1,298 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import List +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.layers import Conv2d, ConvTranspose2d, ShapeSpec, cat, get_norm +from detectron2.layers.wrappers import move_device_like +from detectron2.structures import Instances +from detectron2.utils.events import get_event_storage +from detectron2.utils.registry import Registry + +__all__ = [ + "BaseMaskRCNNHead", + "MaskRCNNConvUpsampleHead", + "build_mask_head", + "ROI_MASK_HEAD_REGISTRY", +] + + +ROI_MASK_HEAD_REGISTRY = Registry("ROI_MASK_HEAD") +ROI_MASK_HEAD_REGISTRY.__doc__ = """ +Registry for mask heads, which predicts instance masks given +per-region features. + +The registered object will be called with `obj(cfg, input_shape)`. +""" + + +@torch.jit.unused +def mask_rcnn_loss(pred_mask_logits: torch.Tensor, instances: List[Instances], vis_period: int = 0): + """ + Compute the mask prediction loss defined in the Mask R-CNN paper. + + Args: + pred_mask_logits (Tensor): A tensor of shape (B, C, Hmask, Wmask) or (B, 1, Hmask, Wmask) + for class-specific or class-agnostic, where B is the total number of predicted masks + in all images, C is the number of foreground classes, and Hmask, Wmask are the height + and width of the mask predictions. The values are logits. + instances (list[Instances]): A list of N Instances, where N is the number of images + in the batch. These instances are in 1:1 + correspondence with the pred_mask_logits. The ground-truth labels (class, box, mask, + ...) associated with each instance are stored in fields. + vis_period (int): the period (in steps) to dump visualization. + + Returns: + mask_loss (Tensor): A scalar tensor containing the loss. + """ + cls_agnostic_mask = pred_mask_logits.size(1) == 1 + total_num_masks = pred_mask_logits.size(0) + mask_side_len = pred_mask_logits.size(2) + assert pred_mask_logits.size(2) == pred_mask_logits.size(3), "Mask prediction must be square!" + + gt_classes = [] + gt_masks = [] + for instances_per_image in instances: + if len(instances_per_image) == 0: + continue + if not cls_agnostic_mask: + gt_classes_per_image = instances_per_image.gt_classes.to(dtype=torch.int64) + gt_classes.append(gt_classes_per_image) + + gt_masks_per_image = instances_per_image.gt_masks.crop_and_resize( + instances_per_image.proposal_boxes.tensor, mask_side_len + ).to(device=pred_mask_logits.device) + # A tensor of shape (N, M, M), N=#instances in the image; M=mask_side_len + gt_masks.append(gt_masks_per_image) + + if len(gt_masks) == 0: + return pred_mask_logits.sum() * 0 + + gt_masks = cat(gt_masks, dim=0) + + if cls_agnostic_mask: + pred_mask_logits = pred_mask_logits[:, 0] + else: + indices = torch.arange(total_num_masks) + gt_classes = cat(gt_classes, dim=0) + pred_mask_logits = pred_mask_logits[indices, gt_classes] + + if gt_masks.dtype == torch.bool: + gt_masks_bool = gt_masks + else: + # Here we allow gt_masks to be float as well (depend on the implementation of rasterize()) + gt_masks_bool = gt_masks > 0.5 + gt_masks = gt_masks.to(dtype=torch.float32) + + # Log the training accuracy (using gt classes and sigmoid(0.0) == 0.5 threshold) + mask_incorrect = (pred_mask_logits > 0.0) != gt_masks_bool + mask_accuracy = 1 - (mask_incorrect.sum().item() / max(mask_incorrect.numel(), 1.0)) + num_positive = gt_masks_bool.sum().item() + false_positive = (mask_incorrect & ~gt_masks_bool).sum().item() / max( + gt_masks_bool.numel() - num_positive, 1.0 + ) + false_negative = (mask_incorrect & gt_masks_bool).sum().item() / max(num_positive, 1.0) + + storage = get_event_storage() + storage.put_scalar("mask_rcnn/accuracy", mask_accuracy) + storage.put_scalar("mask_rcnn/false_positive", false_positive) + storage.put_scalar("mask_rcnn/false_negative", false_negative) + if vis_period > 0 and storage.iter % vis_period == 0: + pred_masks = pred_mask_logits.sigmoid() + vis_masks = torch.cat([pred_masks, gt_masks], axis=2) + name = "Left: mask prediction; Right: mask GT" + for idx, vis_mask in enumerate(vis_masks): + vis_mask = torch.stack([vis_mask] * 3, axis=0) + storage.put_image(name + f" ({idx})", vis_mask) + + mask_loss = F.binary_cross_entropy_with_logits(pred_mask_logits, gt_masks, reduction="mean") + return mask_loss + + +def mask_rcnn_inference(pred_mask_logits: torch.Tensor, pred_instances: List[Instances]): + """ + Convert pred_mask_logits to estimated foreground probability masks while also + extracting only the masks for the predicted classes in pred_instances. For each + predicted box, the mask of the same class is attached to the instance by adding a + new "pred_masks" field to pred_instances. + + Args: + pred_mask_logits (Tensor): A tensor of shape (B, C, Hmask, Wmask) or (B, 1, Hmask, Wmask) + for class-specific or class-agnostic, where B is the total number of predicted masks + in all images, C is the number of foreground classes, and Hmask, Wmask are the height + and width of the mask predictions. The values are logits. + pred_instances (list[Instances]): A list of N Instances, where N is the number of images + in the batch. Each Instances must have field "pred_classes". + + Returns: + None. pred_instances will contain an extra "pred_masks" field storing a mask of size (Hmask, + Wmask) for predicted class. Note that the masks are returned as a soft (non-quantized) + masks the resolution predicted by the network; post-processing steps, such as resizing + the predicted masks to the original image resolution and/or binarizing them, is left + to the caller. + """ + cls_agnostic_mask = pred_mask_logits.size(1) == 1 + + if cls_agnostic_mask: + mask_probs_pred = pred_mask_logits.sigmoid() + else: + # Select masks corresponding to the predicted classes + num_masks = pred_mask_logits.shape[0] + class_pred = cat([i.pred_classes for i in pred_instances]) + device = ( + class_pred.device + if torch.jit.is_scripting() + else ("cpu" if torch.jit.is_tracing() else class_pred.device) + ) + indices = move_device_like(torch.arange(num_masks, device=device), class_pred) + mask_probs_pred = pred_mask_logits[indices, class_pred][:, None].sigmoid() + # mask_probs_pred.shape: (B, 1, Hmask, Wmask) + + num_boxes_per_image = [len(i) for i in pred_instances] + mask_probs_pred = mask_probs_pred.split(num_boxes_per_image, dim=0) + + for prob, instances in zip(mask_probs_pred, pred_instances): + instances.pred_masks = prob # (1, Hmask, Wmask) + + +class BaseMaskRCNNHead(nn.Module): + """ + Implement the basic Mask R-CNN losses and inference logic described in :paper:`Mask R-CNN` + """ + + @configurable + def __init__(self, *, loss_weight: float = 1.0, vis_period: int = 0): + """ + NOTE: this interface is experimental. + + Args: + loss_weight (float): multiplier of the loss + vis_period (int): visualization period + """ + super().__init__() + self.vis_period = vis_period + self.loss_weight = loss_weight + + @classmethod + def from_config(cls, cfg, input_shape): + return {"vis_period": cfg.VIS_PERIOD} + + def forward(self, x, instances: List[Instances]): + """ + Args: + x: input region feature(s) provided by :class:`ROIHeads`. + instances (list[Instances]): contains the boxes & labels corresponding + to the input features. + Exact format is up to its caller to decide. + Typically, this is the foreground instances in training, with + "proposal_boxes" field and other gt annotations. + In inference, it contains boxes that are already predicted. + + Returns: + A dict of losses in training. The predicted "instances" in inference. + """ + x = self.layers(x) + if self.training: + return {"loss_mask": mask_rcnn_loss(x, instances, self.vis_period) * self.loss_weight} + else: + mask_rcnn_inference(x, instances) + return instances + + def layers(self, x): + """ + Neural network layers that makes predictions from input features. + """ + raise NotImplementedError + + +# To get torchscript support, we make the head a subclass of `nn.Sequential`. +# Therefore, to add new layers in this head class, please make sure they are +# added in the order they will be used in forward(). +@ROI_MASK_HEAD_REGISTRY.register() +class MaskRCNNConvUpsampleHead(BaseMaskRCNNHead, nn.Sequential): + """ + A mask head with several conv layers, plus an upsample layer (with `ConvTranspose2d`). + Predictions are made with a final 1x1 conv layer. + """ + + @configurable + def __init__(self, input_shape: ShapeSpec, *, num_classes, conv_dims, conv_norm="", **kwargs): + """ + NOTE: this interface is experimental. + + Args: + input_shape (ShapeSpec): shape of the input feature + num_classes (int): the number of foreground classes (i.e. background is not + included). 1 if using class agnostic prediction. + conv_dims (list[int]): a list of N>0 integers representing the output dimensions + of N-1 conv layers and the last upsample layer. + conv_norm (str or callable): normalization for the conv layers. + See :func:`detectron2.layers.get_norm` for supported types. + """ + super().__init__(**kwargs) + assert len(conv_dims) >= 1, "conv_dims have to be non-empty!" + + self.conv_norm_relus = [] + + cur_channels = input_shape.channels + for k, conv_dim in enumerate(conv_dims[:-1]): + conv = Conv2d( + cur_channels, + conv_dim, + kernel_size=3, + stride=1, + padding=1, + bias=not conv_norm, + norm=get_norm(conv_norm, conv_dim), + activation=nn.ReLU(), + ) + self.add_module("mask_fcn{}".format(k + 1), conv) + self.conv_norm_relus.append(conv) + cur_channels = conv_dim + + self.deconv = ConvTranspose2d( + cur_channels, conv_dims[-1], kernel_size=2, stride=2, padding=0 + ) + self.add_module("deconv_relu", nn.ReLU()) + cur_channels = conv_dims[-1] + + self.predictor = Conv2d(cur_channels, num_classes, kernel_size=1, stride=1, padding=0) + + for layer in self.conv_norm_relus + [self.deconv]: + weight_init.c2_msra_fill(layer) + # use normal distribution initialization for mask prediction layer + nn.init.normal_(self.predictor.weight, std=0.001) + if self.predictor.bias is not None: + nn.init.constant_(self.predictor.bias, 0) + + @classmethod + def from_config(cls, cfg, input_shape): + ret = super().from_config(cfg, input_shape) + conv_dim = cfg.MODEL.ROI_MASK_HEAD.CONV_DIM + num_conv = cfg.MODEL.ROI_MASK_HEAD.NUM_CONV + ret.update( + conv_dims=[conv_dim] * (num_conv + 1), # +1 for ConvTranspose + conv_norm=cfg.MODEL.ROI_MASK_HEAD.NORM, + input_shape=input_shape, + ) + if cfg.MODEL.ROI_MASK_HEAD.CLS_AGNOSTIC_MASK: + ret["num_classes"] = 1 + else: + ret["num_classes"] = cfg.MODEL.ROI_HEADS.NUM_CLASSES + return ret + + def layers(self, x): + for layer in self: + x = layer(x) + return x + + +def build_mask_head(cfg, input_shape): + """ + Build a mask head defined by `cfg.MODEL.ROI_MASK_HEAD.NAME`. + """ + name = cfg.MODEL.ROI_MASK_HEAD.NAME + return ROI_MASK_HEAD_REGISTRY.get(name)(cfg, input_shape) diff --git a/detectron2/detectron2/modeling/roi_heads/roi_heads.py b/detectron2/detectron2/modeling/roi_heads/roi_heads.py new file mode 100755 index 0000000..13dd57a --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/roi_heads.py @@ -0,0 +1,877 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import inspect +import logging +import numpy as np +from typing import Dict, List, Optional, Tuple +import torch +from torch import nn + +from detectron2.config import configurable +from detectron2.layers import ShapeSpec, nonzero_tuple +from detectron2.structures import Boxes, ImageList, Instances, pairwise_iou +from detectron2.utils.events import get_event_storage +from detectron2.utils.registry import Registry + +from ..backbone.resnet import BottleneckBlock, ResNet +from ..matcher import Matcher +from ..poolers import ROIPooler +from ..proposal_generator.proposal_utils import add_ground_truth_to_proposals +from ..sampling import subsample_labels +from .box_head import build_box_head +from .fast_rcnn import FastRCNNOutputLayers +from .keypoint_head import build_keypoint_head +from .mask_head import build_mask_head + +ROI_HEADS_REGISTRY = Registry("ROI_HEADS") +ROI_HEADS_REGISTRY.__doc__ = """ +Registry for ROI heads in a generalized R-CNN model. +ROIHeads take feature maps and region proposals, and +perform per-region computation. + +The registered object will be called with `obj(cfg, input_shape)`. +The call is expected to return an :class:`ROIHeads`. +""" + +logger = logging.getLogger(__name__) + + +def build_roi_heads(cfg, input_shape): + """ + Build ROIHeads defined by `cfg.MODEL.ROI_HEADS.NAME`. + """ + name = cfg.MODEL.ROI_HEADS.NAME + return ROI_HEADS_REGISTRY.get(name)(cfg, input_shape) + + +def select_foreground_proposals( + proposals: List[Instances], bg_label: int +) -> Tuple[List[Instances], List[torch.Tensor]]: + """ + Given a list of N Instances (for N images), each containing a `gt_classes` field, + return a list of Instances that contain only instances with `gt_classes != -1 && + gt_classes != bg_label`. + + Args: + proposals (list[Instances]): A list of N Instances, where N is the number of + images in the batch. + bg_label: label index of background class. + + Returns: + list[Instances]: N Instances, each contains only the selected foreground instances. + list[Tensor]: N boolean vector, correspond to the selection mask of + each Instances object. True for selected instances. + """ + assert isinstance(proposals, (list, tuple)) + assert isinstance(proposals[0], Instances) + assert proposals[0].has("gt_classes") + fg_proposals = [] + fg_selection_masks = [] + for proposals_per_image in proposals: + gt_classes = proposals_per_image.gt_classes + fg_selection_mask = (gt_classes != -1) & (gt_classes != bg_label) + fg_idxs = fg_selection_mask.nonzero().squeeze(1) + fg_proposals.append(proposals_per_image[fg_idxs]) + fg_selection_masks.append(fg_selection_mask) + return fg_proposals, fg_selection_masks + + +def select_proposals_with_visible_keypoints(proposals: List[Instances]) -> List[Instances]: + """ + Args: + proposals (list[Instances]): a list of N Instances, where N is the + number of images. + + Returns: + proposals: only contains proposals with at least one visible keypoint. + + Note that this is still slightly different from Detectron. + In Detectron, proposals for training keypoint head are re-sampled from + all the proposals with IOU>threshold & >=1 visible keypoint. + + Here, the proposals are first sampled from all proposals with + IOU>threshold, then proposals with no visible keypoint are filtered out. + This strategy seems to make no difference on Detectron and is easier to implement. + """ + ret = [] + all_num_fg = [] + for proposals_per_image in proposals: + # If empty/unannotated image (hard negatives), skip filtering for train + if len(proposals_per_image) == 0: + ret.append(proposals_per_image) + continue + gt_keypoints = proposals_per_image.gt_keypoints.tensor + # #fg x K x 3 + vis_mask = gt_keypoints[:, :, 2] >= 1 + xs, ys = gt_keypoints[:, :, 0], gt_keypoints[:, :, 1] + proposal_boxes = proposals_per_image.proposal_boxes.tensor.unsqueeze(dim=1) # #fg x 1 x 4 + kp_in_box = ( + (xs >= proposal_boxes[:, :, 0]) + & (xs <= proposal_boxes[:, :, 2]) + & (ys >= proposal_boxes[:, :, 1]) + & (ys <= proposal_boxes[:, :, 3]) + ) + selection = (kp_in_box & vis_mask).any(dim=1) + selection_idxs = nonzero_tuple(selection)[0] + all_num_fg.append(selection_idxs.numel()) + ret.append(proposals_per_image[selection_idxs]) + + storage = get_event_storage() + storage.put_scalar("keypoint_head/num_fg_samples", np.mean(all_num_fg)) + return ret + + +class ROIHeads(torch.nn.Module): + """ + ROIHeads perform all per-region computation in an R-CNN. + + It typically contains logic to + + 1. (in training only) match proposals with ground truth and sample them + 2. crop the regions and extract per-region features using proposals + 3. make per-region predictions with different heads + + It can have many variants, implemented as subclasses of this class. + This base class contains the logic to match/sample proposals. + But it is not necessary to inherit this class if the sampling logic is not needed. + """ + + @configurable + def __init__( + self, + *, + num_classes, + batch_size_per_image, + positive_fraction, + proposal_matcher, + proposal_append_gt=True, + ): + """ + NOTE: this interface is experimental. + + Args: + num_classes (int): number of foreground classes (i.e. background is not included) + batch_size_per_image (int): number of proposals to sample for training + positive_fraction (float): fraction of positive (foreground) proposals + to sample for training. + proposal_matcher (Matcher): matcher that matches proposals and ground truth + proposal_append_gt (bool): whether to include ground truth as proposals as well + """ + super().__init__() + self.batch_size_per_image = batch_size_per_image + self.positive_fraction = positive_fraction + self.num_classes = num_classes + self.proposal_matcher = proposal_matcher + self.proposal_append_gt = proposal_append_gt + + @classmethod + def from_config(cls, cfg): + return { + "batch_size_per_image": cfg.MODEL.ROI_HEADS.BATCH_SIZE_PER_IMAGE, + "positive_fraction": cfg.MODEL.ROI_HEADS.POSITIVE_FRACTION, + "num_classes": cfg.MODEL.ROI_HEADS.NUM_CLASSES, + "proposal_append_gt": cfg.MODEL.ROI_HEADS.PROPOSAL_APPEND_GT, + # Matcher to assign box proposals to gt boxes + "proposal_matcher": Matcher( + cfg.MODEL.ROI_HEADS.IOU_THRESHOLDS, + cfg.MODEL.ROI_HEADS.IOU_LABELS, + allow_low_quality_matches=False, + ), + } + + def _sample_proposals( + self, matched_idxs: torch.Tensor, matched_labels: torch.Tensor, gt_classes: torch.Tensor + ) -> Tuple[torch.Tensor, torch.Tensor]: + """ + Based on the matching between N proposals and M groundtruth, + sample the proposals and set their classification labels. + + Args: + matched_idxs (Tensor): a vector of length N, each is the best-matched + gt index in [0, M) for each proposal. + matched_labels (Tensor): a vector of length N, the matcher's label + (one of cfg.MODEL.ROI_HEADS.IOU_LABELS) for each proposal. + gt_classes (Tensor): a vector of length M. + + Returns: + Tensor: a vector of indices of sampled proposals. Each is in [0, N). + Tensor: a vector of the same length, the classification label for + each sampled proposal. Each sample is labeled as either a category in + [0, num_classes) or the background (num_classes). + """ + has_gt = gt_classes.numel() > 0 + # Get the corresponding GT for each proposal + if has_gt: + gt_classes = gt_classes[matched_idxs] + # Label unmatched proposals (0 label from matcher) as background (label=num_classes) + gt_classes[matched_labels == 0] = self.num_classes + # Label ignore proposals (-1 label) + gt_classes[matched_labels == -1] = -1 + else: + gt_classes = torch.zeros_like(matched_idxs) + self.num_classes + + sampled_fg_idxs, sampled_bg_idxs = subsample_labels( + gt_classes, self.batch_size_per_image, self.positive_fraction, self.num_classes + ) + + sampled_idxs = torch.cat([sampled_fg_idxs, sampled_bg_idxs], dim=0) + return sampled_idxs, gt_classes[sampled_idxs] + + @torch.no_grad() + def label_and_sample_proposals( + self, proposals: List[Instances], targets: List[Instances] + ) -> List[Instances]: + """ + Prepare some proposals to be used to train the ROI heads. + It performs box matching between `proposals` and `targets`, and assigns + training labels to the proposals. + It returns ``self.batch_size_per_image`` random samples from proposals and groundtruth + boxes, with a fraction of positives that is no larger than + ``self.positive_fraction``. + + Args: + See :meth:`ROIHeads.forward` + + Returns: + list[Instances]: + length `N` list of `Instances`s containing the proposals + sampled for training. Each `Instances` has the following fields: + + - proposal_boxes: the proposal boxes + - gt_boxes: the ground-truth box that the proposal is assigned to + (this is only meaningful if the proposal has a label > 0; if label = 0 + then the ground-truth box is random) + + Other fields such as "gt_classes", "gt_masks", that's included in `targets`. + """ + # Augment proposals with ground-truth boxes. + # In the case of learned proposals (e.g., RPN), when training starts + # the proposals will be low quality due to random initialization. + # It's possible that none of these initial + # proposals have high enough overlap with the gt objects to be used + # as positive examples for the second stage components (box head, + # cls head, mask head). Adding the gt boxes to the set of proposals + # ensures that the second stage components will have some positive + # examples from the start of training. For RPN, this augmentation improves + # convergence and empirically improves box AP on COCO by about 0.5 + # points (under one tested configuration). + if self.proposal_append_gt: + proposals = add_ground_truth_to_proposals(targets, proposals) + + proposals_with_gt = [] + + num_fg_samples = [] + num_bg_samples = [] + for proposals_per_image, targets_per_image in zip(proposals, targets): + has_gt = len(targets_per_image) > 0 + match_quality_matrix = pairwise_iou( + targets_per_image.gt_boxes, proposals_per_image.proposal_boxes + ) + matched_idxs, matched_labels = self.proposal_matcher(match_quality_matrix) + sampled_idxs, gt_classes = self._sample_proposals( + matched_idxs, matched_labels, targets_per_image.gt_classes + ) + + # Set target attributes of the sampled proposals: + proposals_per_image = proposals_per_image[sampled_idxs] + proposals_per_image.gt_classes = gt_classes + + if has_gt: + sampled_targets = matched_idxs[sampled_idxs] + # We index all the attributes of targets that start with "gt_" + # and have not been added to proposals yet (="gt_classes"). + # NOTE: here the indexing waste some compute, because heads + # like masks, keypoints, etc, will filter the proposals again, + # (by foreground/background, or number of keypoints in the image, etc) + # so we essentially index the data twice. + for (trg_name, trg_value) in targets_per_image.get_fields().items(): + if trg_name.startswith("gt_") and not proposals_per_image.has(trg_name): + proposals_per_image.set(trg_name, trg_value[sampled_targets]) + # If no GT is given in the image, we don't know what a dummy gt value can be. + # Therefore the returned proposals won't have any gt_* fields, except for a + # gt_classes full of background label. + + num_bg_samples.append((gt_classes == self.num_classes).sum().item()) + num_fg_samples.append(gt_classes.numel() - num_bg_samples[-1]) + proposals_with_gt.append(proposals_per_image) + + # Log the number of fg/bg samples that are selected for training ROI heads + storage = get_event_storage() + storage.put_scalar("roi_head/num_fg_samples", np.mean(num_fg_samples)) + storage.put_scalar("roi_head/num_bg_samples", np.mean(num_bg_samples)) + + return proposals_with_gt + + def forward( + self, + images: ImageList, + features: Dict[str, torch.Tensor], + proposals: List[Instances], + targets: Optional[List[Instances]] = None, + ) -> Tuple[List[Instances], Dict[str, torch.Tensor]]: + """ + Args: + images (ImageList): + features (dict[str,Tensor]): input data as a mapping from feature + map name to tensor. Axis 0 represents the number of images `N` in + the input data; axes 1-3 are channels, height, and width, which may + vary between feature maps (e.g., if a feature pyramid is used). + proposals (list[Instances]): length `N` list of `Instances`. The i-th + `Instances` contains object proposals for the i-th input image, + with fields "proposal_boxes" and "objectness_logits". + targets (list[Instances], optional): length `N` list of `Instances`. The i-th + `Instances` contains the ground-truth per-instance annotations + for the i-th input image. Specify `targets` during training only. + It may have the following fields: + + - gt_boxes: the bounding box of each instance. + - gt_classes: the label for each instance with a category ranging in [0, #class]. + - gt_masks: PolygonMasks or BitMasks, the ground-truth masks of each instance. + - gt_keypoints: NxKx3, the groud-truth keypoints for each instance. + + Returns: + list[Instances]: length `N` list of `Instances` containing the + detected instances. Returned during inference only; may be [] during training. + + dict[str->Tensor]: + mapping from a named loss to a tensor storing the loss. Used during training only. + """ + raise NotImplementedError() + + +@ROI_HEADS_REGISTRY.register() +class Res5ROIHeads(ROIHeads): + """ + The ROIHeads in a typical "C4" R-CNN model, where + the box and mask head share the cropping and + the per-region feature computation by a Res5 block. + See :paper:`ResNet` Appendix A. + """ + + @configurable + def __init__( + self, + *, + in_features: List[str], + pooler: ROIPooler, + res5: nn.Module, + box_predictor: nn.Module, + mask_head: Optional[nn.Module] = None, + **kwargs, + ): + """ + NOTE: this interface is experimental. + + Args: + in_features (list[str]): list of backbone feature map names to use for + feature extraction + pooler (ROIPooler): pooler to extra region features from backbone + res5 (nn.Sequential): a CNN to compute per-region features, to be used by + ``box_predictor`` and ``mask_head``. Typically this is a "res5" + block from a ResNet. + box_predictor (nn.Module): make box predictions from the feature. + Should have the same interface as :class:`FastRCNNOutputLayers`. + mask_head (nn.Module): transform features to make mask predictions + """ + super().__init__(**kwargs) + self.in_features = in_features + self.pooler = pooler + if isinstance(res5, (list, tuple)): + res5 = nn.Sequential(*res5) + self.res5 = res5 + self.box_predictor = box_predictor + self.mask_on = mask_head is not None + if self.mask_on: + self.mask_head = mask_head + + @classmethod + def from_config(cls, cfg, input_shape): + # fmt: off + ret = super().from_config(cfg) + in_features = ret["in_features"] = cfg.MODEL.ROI_HEADS.IN_FEATURES + pooler_resolution = cfg.MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION + pooler_type = cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE + pooler_scales = (1.0 / input_shape[in_features[0]].stride, ) + sampling_ratio = cfg.MODEL.ROI_BOX_HEAD.POOLER_SAMPLING_RATIO + mask_on = cfg.MODEL.MASK_ON + # fmt: on + assert not cfg.MODEL.KEYPOINT_ON + assert len(in_features) == 1 + + ret["pooler"] = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + ) + + # Compatbility with old moco code. Might be useful. + # See notes in StandardROIHeads.from_config + if not inspect.ismethod(cls._build_res5_block): + logger.warning( + "The behavior of _build_res5_block may change. " + "Please do not depend on private methods." + ) + cls._build_res5_block = classmethod(cls._build_res5_block) + + ret["res5"], out_channels = cls._build_res5_block(cfg) + ret["box_predictor"] = FastRCNNOutputLayers( + cfg, ShapeSpec(channels=out_channels, height=1, width=1) + ) + + if mask_on: + ret["mask_head"] = build_mask_head( + cfg, + ShapeSpec(channels=out_channels, width=pooler_resolution, height=pooler_resolution), + ) + return ret + + @classmethod + def _build_res5_block(cls, cfg): + # fmt: off + stage_channel_factor = 2 ** 3 # res5 is 8x res2 + num_groups = cfg.MODEL.RESNETS.NUM_GROUPS + width_per_group = cfg.MODEL.RESNETS.WIDTH_PER_GROUP + bottleneck_channels = num_groups * width_per_group * stage_channel_factor + out_channels = cfg.MODEL.RESNETS.RES2_OUT_CHANNELS * stage_channel_factor + stride_in_1x1 = cfg.MODEL.RESNETS.STRIDE_IN_1X1 + norm = cfg.MODEL.RESNETS.NORM + assert not cfg.MODEL.RESNETS.DEFORM_ON_PER_STAGE[-1], \ + "Deformable conv is not yet supported in res5 head." + # fmt: on + + blocks = ResNet.make_stage( + BottleneckBlock, + 3, + stride_per_block=[2, 1, 1], + in_channels=out_channels // 2, + bottleneck_channels=bottleneck_channels, + out_channels=out_channels, + num_groups=num_groups, + norm=norm, + stride_in_1x1=stride_in_1x1, + ) + return nn.Sequential(*blocks), out_channels + + def _shared_roi_transform(self, features: List[torch.Tensor], boxes: List[Boxes]): + x = self.pooler(features, boxes) + return self.res5(x) + + def forward( + self, + images: ImageList, + features: Dict[str, torch.Tensor], + proposals: List[Instances], + targets: Optional[List[Instances]] = None, + ): + """ + See :meth:`ROIHeads.forward`. + """ + del images + + if self.training: + assert targets + proposals = self.label_and_sample_proposals(proposals, targets) + del targets + + proposal_boxes = [x.proposal_boxes for x in proposals] + box_features = self._shared_roi_transform( + [features[f] for f in self.in_features], proposal_boxes + ) + predictions = self.box_predictor(box_features.mean(dim=[2, 3])) + + if self.training: + del features + losses = self.box_predictor.losses(predictions, proposals) + if self.mask_on: + proposals, fg_selection_masks = select_foreground_proposals( + proposals, self.num_classes + ) + # Since the ROI feature transform is shared between boxes and masks, + # we don't need to recompute features. The mask loss is only defined + # on foreground proposals, so we need to select out the foreground + # features. + mask_features = box_features[torch.cat(fg_selection_masks, dim=0)] + del box_features + losses.update(self.mask_head(mask_features, proposals)) + return [], losses + else: + pred_instances, _ = self.box_predictor.inference(predictions, proposals) + pred_instances = self.forward_with_given_boxes(features, pred_instances) + return pred_instances, {} + + def forward_with_given_boxes( + self, features: Dict[str, torch.Tensor], instances: List[Instances] + ) -> List[Instances]: + """ + Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. + + Args: + features: same as in `forward()` + instances (list[Instances]): instances to predict other outputs. Expect the keys + "pred_boxes" and "pred_classes" to exist. + + Returns: + instances (Instances): + the same `Instances` object, with extra + fields such as `pred_masks` or `pred_keypoints`. + """ + assert not self.training + assert instances[0].has("pred_boxes") and instances[0].has("pred_classes") + + if self.mask_on: + feature_list = [features[f] for f in self.in_features] + x = self._shared_roi_transform(feature_list, [x.pred_boxes for x in instances]) + return self.mask_head(x, instances) + else: + return instances + + +@ROI_HEADS_REGISTRY.register() +class StandardROIHeads(ROIHeads): + """ + It's "standard" in a sense that there is no ROI transform sharing + or feature sharing between tasks. + Each head independently processes the input features by each head's + own pooler and head. + + This class is used by most models, such as FPN and C5. + To implement more models, you can subclass it and implement a different + :meth:`forward()` or a head. + """ + + @configurable + def __init__( + self, + *, + box_in_features: List[str], + box_pooler: ROIPooler, + box_head: nn.Module, + box_predictor: nn.Module, + mask_in_features: Optional[List[str]] = None, + mask_pooler: Optional[ROIPooler] = None, + mask_head: Optional[nn.Module] = None, + keypoint_in_features: Optional[List[str]] = None, + keypoint_pooler: Optional[ROIPooler] = None, + keypoint_head: Optional[nn.Module] = None, + train_on_pred_boxes: bool = False, + **kwargs, + ): + """ + NOTE: this interface is experimental. + + Args: + box_in_features (list[str]): list of feature names to use for the box head. + box_pooler (ROIPooler): pooler to extra region features for box head + box_head (nn.Module): transform features to make box predictions + box_predictor (nn.Module): make box predictions from the feature. + Should have the same interface as :class:`FastRCNNOutputLayers`. + mask_in_features (list[str]): list of feature names to use for the mask + pooler or mask head. None if not using mask head. + mask_pooler (ROIPooler): pooler to extract region features from image features. + The mask head will then take region features to make predictions. + If None, the mask head will directly take the dict of image features + defined by `mask_in_features` + mask_head (nn.Module): transform features to make mask predictions + keypoint_in_features, keypoint_pooler, keypoint_head: similar to ``mask_*``. + train_on_pred_boxes (bool): whether to use proposal boxes or + predicted boxes from the box head to train other heads. + """ + super().__init__(**kwargs) + # keep self.in_features for backward compatibility + self.in_features = self.box_in_features = box_in_features + self.box_pooler = box_pooler + self.box_head = box_head + self.box_predictor = box_predictor + + self.mask_on = mask_in_features is not None + if self.mask_on: + self.mask_in_features = mask_in_features + self.mask_pooler = mask_pooler + self.mask_head = mask_head + + self.keypoint_on = keypoint_in_features is not None + if self.keypoint_on: + self.keypoint_in_features = keypoint_in_features + self.keypoint_pooler = keypoint_pooler + self.keypoint_head = keypoint_head + + self.train_on_pred_boxes = train_on_pred_boxes + + @classmethod + def from_config(cls, cfg, input_shape): + ret = super().from_config(cfg) + ret["train_on_pred_boxes"] = cfg.MODEL.ROI_BOX_HEAD.TRAIN_ON_PRED_BOXES + # Subclasses that have not been updated to use from_config style construction + # may have overridden _init_*_head methods. In this case, those overridden methods + # will not be classmethods and we need to avoid trying to call them here. + # We test for this with ismethod which only returns True for bound methods of cls. + # Such subclasses will need to handle calling their overridden _init_*_head methods. + if inspect.ismethod(cls._init_box_head): + ret.update(cls._init_box_head(cfg, input_shape)) + if inspect.ismethod(cls._init_mask_head): + ret.update(cls._init_mask_head(cfg, input_shape)) + if inspect.ismethod(cls._init_keypoint_head): + ret.update(cls._init_keypoint_head(cfg, input_shape)) + return ret + + @classmethod + def _init_box_head(cls, cfg, input_shape): + # fmt: off + in_features = cfg.MODEL.ROI_HEADS.IN_FEATURES + pooler_resolution = cfg.MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION + pooler_scales = tuple(1.0 / input_shape[k].stride for k in in_features) + sampling_ratio = cfg.MODEL.ROI_BOX_HEAD.POOLER_SAMPLING_RATIO + pooler_type = cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE + # fmt: on + + # If StandardROIHeads is applied on multiple feature maps (as in FPN), + # then we share the same predictors and therefore the channel counts must be the same + in_channels = [input_shape[f].channels for f in in_features] + # Check all channel counts are equal + assert len(set(in_channels)) == 1, in_channels + in_channels = in_channels[0] + + box_pooler = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + ) + # Here we split "box head" and "box predictor", which is mainly due to historical reasons. + # They are used together so the "box predictor" layers should be part of the "box head". + # New subclasses of ROIHeads do not need "box predictor"s. + box_head = build_box_head( + cfg, ShapeSpec(channels=in_channels, height=pooler_resolution, width=pooler_resolution) + ) + box_predictor = FastRCNNOutputLayers(cfg, box_head.output_shape) + return { + "box_in_features": in_features, + "box_pooler": box_pooler, + "box_head": box_head, + "box_predictor": box_predictor, + } + + @classmethod + def _init_mask_head(cls, cfg, input_shape): + if not cfg.MODEL.MASK_ON: + return {} + # fmt: off + in_features = cfg.MODEL.ROI_HEADS.IN_FEATURES + pooler_resolution = cfg.MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION + pooler_scales = tuple(1.0 / input_shape[k].stride for k in in_features) + sampling_ratio = cfg.MODEL.ROI_MASK_HEAD.POOLER_SAMPLING_RATIO + pooler_type = cfg.MODEL.ROI_MASK_HEAD.POOLER_TYPE + # fmt: on + + in_channels = [input_shape[f].channels for f in in_features][0] + + ret = {"mask_in_features": in_features} + ret["mask_pooler"] = ( + ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + ) + if pooler_type + else None + ) + if pooler_type: + shape = ShapeSpec( + channels=in_channels, width=pooler_resolution, height=pooler_resolution + ) + else: + shape = {f: input_shape[f] for f in in_features} + ret["mask_head"] = build_mask_head(cfg, shape) + return ret + + @classmethod + def _init_keypoint_head(cls, cfg, input_shape): + if not cfg.MODEL.KEYPOINT_ON: + return {} + # fmt: off + in_features = cfg.MODEL.ROI_HEADS.IN_FEATURES + pooler_resolution = cfg.MODEL.ROI_KEYPOINT_HEAD.POOLER_RESOLUTION + pooler_scales = tuple(1.0 / input_shape[k].stride for k in in_features) # noqa + sampling_ratio = cfg.MODEL.ROI_KEYPOINT_HEAD.POOLER_SAMPLING_RATIO + pooler_type = cfg.MODEL.ROI_KEYPOINT_HEAD.POOLER_TYPE + # fmt: on + + in_channels = [input_shape[f].channels for f in in_features][0] + + ret = {"keypoint_in_features": in_features} + ret["keypoint_pooler"] = ( + ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + ) + if pooler_type + else None + ) + if pooler_type: + shape = ShapeSpec( + channels=in_channels, width=pooler_resolution, height=pooler_resolution + ) + else: + shape = {f: input_shape[f] for f in in_features} + ret["keypoint_head"] = build_keypoint_head(cfg, shape) + return ret + + def forward( + self, + images: ImageList, + features: Dict[str, torch.Tensor], + proposals: List[Instances], + targets: Optional[List[Instances]] = None, + ) -> Tuple[List[Instances], Dict[str, torch.Tensor]]: + """ + See :class:`ROIHeads.forward`. + """ + del images + if self.training: + assert targets, "'targets' argument is required during training" + proposals = self.label_and_sample_proposals(proposals, targets) + del targets + + if self.training: + losses = self._forward_box(features, proposals) + # Usually the original proposals used by the box head are used by the mask, keypoint + # heads. But when `self.train_on_pred_boxes is True`, proposals will contain boxes + # predicted by the box head. + losses.update(self._forward_mask(features, proposals)) + losses.update(self._forward_keypoint(features, proposals)) + return proposals, losses + else: + pred_instances = self._forward_box(features, proposals) + # During inference cascaded prediction is used: the mask and keypoints heads are only + # applied to the top scoring box detections. + pred_instances = self.forward_with_given_boxes(features, pred_instances) + return pred_instances, {} + + def forward_with_given_boxes( + self, features: Dict[str, torch.Tensor], instances: List[Instances] + ) -> List[Instances]: + """ + Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. + + This is useful for downstream tasks where a box is known, but need to obtain + other attributes (outputs of other heads). + Test-time augmentation also uses this. + + Args: + features: same as in `forward()` + instances (list[Instances]): instances to predict other outputs. Expect the keys + "pred_boxes" and "pred_classes" to exist. + + Returns: + list[Instances]: + the same `Instances` objects, with extra + fields such as `pred_masks` or `pred_keypoints`. + """ + assert not self.training + assert instances[0].has("pred_boxes") and instances[0].has("pred_classes") + + instances = self._forward_mask(features, instances) + instances = self._forward_keypoint(features, instances) + return instances + + def _forward_box(self, features: Dict[str, torch.Tensor], proposals: List[Instances]): + """ + Forward logic of the box prediction branch. If `self.train_on_pred_boxes is True`, + the function puts predicted boxes in the `proposal_boxes` field of `proposals` argument. + + Args: + features (dict[str, Tensor]): mapping from feature map names to tensor. + Same as in :meth:`ROIHeads.forward`. + proposals (list[Instances]): the per-image object proposals with + their matching ground truth. + Each has fields "proposal_boxes", and "objectness_logits", + "gt_classes", "gt_boxes". + + Returns: + In training, a dict of losses. + In inference, a list of `Instances`, the predicted instances. + """ + features = [features[f] for f in self.box_in_features] + box_features = self.box_pooler(features, [x.proposal_boxes for x in proposals]) + box_features = self.box_head(box_features) + predictions = self.box_predictor(box_features) + del box_features + + if self.training: + losses = self.box_predictor.losses(predictions, proposals) + # proposals is modified in-place below, so losses must be computed first. + if self.train_on_pred_boxes: + with torch.no_grad(): + pred_boxes = self.box_predictor.predict_boxes_for_gt_classes( + predictions, proposals + ) + for proposals_per_image, pred_boxes_per_image in zip(proposals, pred_boxes): + proposals_per_image.proposal_boxes = Boxes(pred_boxes_per_image) + return losses + else: + pred_instances, _ = self.box_predictor.inference(predictions, proposals) + return pred_instances + + def _forward_mask(self, features: Dict[str, torch.Tensor], instances: List[Instances]): + """ + Forward logic of the mask prediction branch. + + Args: + features (dict[str, Tensor]): mapping from feature map names to tensor. + Same as in :meth:`ROIHeads.forward`. + instances (list[Instances]): the per-image instances to train/predict masks. + In training, they can be the proposals. + In inference, they can be the boxes predicted by R-CNN box head. + + Returns: + In training, a dict of losses. + In inference, update `instances` with new fields "pred_masks" and return it. + """ + if not self.mask_on: + return {} if self.training else instances + + if self.training: + # head is only trained on positive proposals. + instances, _ = select_foreground_proposals(instances, self.num_classes) + + if self.mask_pooler is not None: + features = [features[f] for f in self.mask_in_features] + boxes = [x.proposal_boxes if self.training else x.pred_boxes for x in instances] + features = self.mask_pooler(features, boxes) + else: + features = {f: features[f] for f in self.mask_in_features} + return self.mask_head(features, instances) + + def _forward_keypoint(self, features: Dict[str, torch.Tensor], instances: List[Instances]): + """ + Forward logic of the keypoint prediction branch. + + Args: + features (dict[str, Tensor]): mapping from feature map names to tensor. + Same as in :meth:`ROIHeads.forward`. + instances (list[Instances]): the per-image instances to train/predict keypoints. + In training, they can be the proposals. + In inference, they can be the boxes predicted by R-CNN box head. + + Returns: + In training, a dict of losses. + In inference, update `instances` with new fields "pred_keypoints" and return it. + """ + if not self.keypoint_on: + return {} if self.training else instances + + if self.training: + # head is only trained on positive proposals with >=1 visible keypoints. + instances, _ = select_foreground_proposals(instances, self.num_classes) + instances = select_proposals_with_visible_keypoints(instances) + + if self.keypoint_pooler is not None: + features = [features[f] for f in self.keypoint_in_features] + boxes = [x.proposal_boxes if self.training else x.pred_boxes for x in instances] + features = self.keypoint_pooler(features, boxes) + else: + features = {f: features[f] for f in self.keypoint_in_features} + return self.keypoint_head(features, instances) diff --git a/detectron2/detectron2/modeling/roi_heads/rotated_fast_rcnn.py b/detectron2/detectron2/modeling/roi_heads/rotated_fast_rcnn.py new file mode 100755 index 0000000..1e7bfab --- /dev/null +++ b/detectron2/detectron2/modeling/roi_heads/rotated_fast_rcnn.py @@ -0,0 +1,271 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import numpy as np +import torch + +from detectron2.config import configurable +from detectron2.layers import ShapeSpec, batched_nms_rotated +from detectron2.structures import Instances, RotatedBoxes, pairwise_iou_rotated +from detectron2.utils.events import get_event_storage + +from ..box_regression import Box2BoxTransformRotated +from ..poolers import ROIPooler +from ..proposal_generator.proposal_utils import add_ground_truth_to_proposals +from .box_head import build_box_head +from .fast_rcnn import FastRCNNOutputLayers +from .roi_heads import ROI_HEADS_REGISTRY, StandardROIHeads + +logger = logging.getLogger(__name__) + +""" +Shape shorthand in this module: + + N: number of images in the minibatch + R: number of ROIs, combined over all images, in the minibatch + Ri: number of ROIs in image i + K: number of foreground classes. E.g.,there are 80 foreground classes in COCO. + +Naming convention: + + deltas: refers to the 5-d (dx, dy, dw, dh, da) deltas that parameterize the box2box + transform (see :class:`box_regression.Box2BoxTransformRotated`). + + pred_class_logits: predicted class scores in [-inf, +inf]; use + softmax(pred_class_logits) to estimate P(class). + + gt_classes: ground-truth classification labels in [0, K], where [0, K) represent + foreground object classes and K represents the background class. + + pred_proposal_deltas: predicted rotated box2box transform deltas for transforming proposals + to detection box predictions. + + gt_proposal_deltas: ground-truth rotated box2box transform deltas +""" + + +def fast_rcnn_inference_rotated( + boxes, scores, image_shapes, score_thresh, nms_thresh, topk_per_image +): + """ + Call `fast_rcnn_inference_single_image_rotated` for all images. + + Args: + boxes (list[Tensor]): A list of Tensors of predicted class-specific or class-agnostic + boxes for each image. Element i has shape (Ri, K * 5) if doing + class-specific regression, or (Ri, 5) if doing class-agnostic + regression, where Ri is the number of predicted objects for image i. + This is compatible with the output of :meth:`FastRCNNOutputLayers.predict_boxes`. + scores (list[Tensor]): A list of Tensors of predicted class scores for each image. + Element i has shape (Ri, K + 1), where Ri is the number of predicted objects + for image i. Compatible with the output of :meth:`FastRCNNOutputLayers.predict_probs`. + image_shapes (list[tuple]): A list of (width, height) tuples for each image in the batch. + score_thresh (float): Only return detections with a confidence score exceeding this + threshold. + nms_thresh (float): The threshold to use for box non-maximum suppression. Value in [0, 1]. + topk_per_image (int): The number of top scoring detections to return. Set < 0 to return + all detections. + + Returns: + instances: (list[Instances]): A list of N instances, one for each image in the batch, + that stores the topk most confidence detections. + kept_indices: (list[Tensor]): A list of 1D tensor of length of N, each element indicates + the corresponding boxes/scores index in [0, Ri) from the input, for image i. + """ + result_per_image = [ + fast_rcnn_inference_single_image_rotated( + boxes_per_image, scores_per_image, image_shape, score_thresh, nms_thresh, topk_per_image + ) + for scores_per_image, boxes_per_image, image_shape in zip(scores, boxes, image_shapes) + ] + return [x[0] for x in result_per_image], [x[1] for x in result_per_image] + + +@torch.no_grad() +def fast_rcnn_inference_single_image_rotated( + boxes, scores, image_shape, score_thresh, nms_thresh, topk_per_image +): + """ + Single-image inference. Return rotated bounding-box detection results by thresholding + on scores and applying rotated non-maximum suppression (Rotated NMS). + + Args: + Same as `fast_rcnn_inference_rotated`, but with rotated boxes, scores, and image shapes + per image. + + Returns: + Same as `fast_rcnn_inference_rotated`, but for only one image. + """ + valid_mask = torch.isfinite(boxes).all(dim=1) & torch.isfinite(scores).all(dim=1) + if not valid_mask.all(): + boxes = boxes[valid_mask] + scores = scores[valid_mask] + + B = 5 # box dimension + scores = scores[:, :-1] + num_bbox_reg_classes = boxes.shape[1] // B + # Convert to Boxes to use the `clip` function ... + boxes = RotatedBoxes(boxes.reshape(-1, B)) + boxes.clip(image_shape) + boxes = boxes.tensor.view(-1, num_bbox_reg_classes, B) # R x C x B + # Filter results based on detection scores + filter_mask = scores > score_thresh # R x K + # R' x 2. First column contains indices of the R predictions; + # Second column contains indices of classes. + filter_inds = filter_mask.nonzero() + if num_bbox_reg_classes == 1: + boxes = boxes[filter_inds[:, 0], 0] + else: + boxes = boxes[filter_mask] + scores = scores[filter_mask] + + # Apply per-class Rotated NMS + keep = batched_nms_rotated(boxes, scores, filter_inds[:, 1], nms_thresh) + if topk_per_image >= 0: + keep = keep[:topk_per_image] + boxes, scores, filter_inds = boxes[keep], scores[keep], filter_inds[keep] + + result = Instances(image_shape) + result.pred_boxes = RotatedBoxes(boxes) + result.scores = scores + result.pred_classes = filter_inds[:, 1] + + return result, filter_inds[:, 0] + + +class RotatedFastRCNNOutputLayers(FastRCNNOutputLayers): + """ + Two linear layers for predicting Rotated Fast R-CNN outputs. + """ + + @classmethod + def from_config(cls, cfg, input_shape): + args = super().from_config(cfg, input_shape) + args["box2box_transform"] = Box2BoxTransformRotated( + weights=cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_WEIGHTS + ) + return args + + def inference(self, predictions, proposals): + """ + Returns: + list[Instances]: same as `fast_rcnn_inference_rotated`. + list[Tensor]: same as `fast_rcnn_inference_rotated`. + """ + boxes = self.predict_boxes(predictions, proposals) + scores = self.predict_probs(predictions, proposals) + image_shapes = [x.image_size for x in proposals] + + return fast_rcnn_inference_rotated( + boxes, + scores, + image_shapes, + self.test_score_thresh, + self.test_nms_thresh, + self.test_topk_per_image, + ) + + +@ROI_HEADS_REGISTRY.register() +class RROIHeads(StandardROIHeads): + """ + This class is used by Rotated Fast R-CNN to detect rotated boxes. + For now, it only supports box predictions but not mask or keypoints. + """ + + @configurable + def __init__(self, **kwargs): + """ + NOTE: this interface is experimental. + """ + super().__init__(**kwargs) + assert ( + not self.mask_on and not self.keypoint_on + ), "Mask/Keypoints not supported in Rotated ROIHeads." + assert not self.train_on_pred_boxes, "train_on_pred_boxes not implemented for RROIHeads!" + + @classmethod + def _init_box_head(cls, cfg, input_shape): + # fmt: off + in_features = cfg.MODEL.ROI_HEADS.IN_FEATURES + pooler_resolution = cfg.MODEL.ROI_BOX_HEAD.POOLER_RESOLUTION + pooler_scales = tuple(1.0 / input_shape[k].stride for k in in_features) + sampling_ratio = cfg.MODEL.ROI_BOX_HEAD.POOLER_SAMPLING_RATIO + pooler_type = cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE + # fmt: on + assert pooler_type in ["ROIAlignRotated"], pooler_type + # assume all channel counts are equal + in_channels = [input_shape[f].channels for f in in_features][0] + + box_pooler = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type=pooler_type, + ) + box_head = build_box_head( + cfg, ShapeSpec(channels=in_channels, height=pooler_resolution, width=pooler_resolution) + ) + # This line is the only difference v.s. StandardROIHeads + box_predictor = RotatedFastRCNNOutputLayers(cfg, box_head.output_shape) + return { + "box_in_features": in_features, + "box_pooler": box_pooler, + "box_head": box_head, + "box_predictor": box_predictor, + } + + @torch.no_grad() + def label_and_sample_proposals(self, proposals, targets): + """ + Prepare some proposals to be used to train the RROI heads. + It performs box matching between `proposals` and `targets`, and assigns + training labels to the proposals. + It returns `self.batch_size_per_image` random samples from proposals and groundtruth boxes, + with a fraction of positives that is no larger than `self.positive_sample_fraction. + + Args: + See :meth:`StandardROIHeads.forward` + + Returns: + list[Instances]: length `N` list of `Instances`s containing the proposals + sampled for training. Each `Instances` has the following fields: + - proposal_boxes: the rotated proposal boxes + - gt_boxes: the ground-truth rotated boxes that the proposal is assigned to + (this is only meaningful if the proposal has a label > 0; if label = 0 + then the ground-truth box is random) + - gt_classes: the ground-truth classification lable for each proposal + """ + if self.proposal_append_gt: + proposals = add_ground_truth_to_proposals(targets, proposals) + + proposals_with_gt = [] + + num_fg_samples = [] + num_bg_samples = [] + for proposals_per_image, targets_per_image in zip(proposals, targets): + has_gt = len(targets_per_image) > 0 + match_quality_matrix = pairwise_iou_rotated( + targets_per_image.gt_boxes, proposals_per_image.proposal_boxes + ) + matched_idxs, matched_labels = self.proposal_matcher(match_quality_matrix) + sampled_idxs, gt_classes = self._sample_proposals( + matched_idxs, matched_labels, targets_per_image.gt_classes + ) + + proposals_per_image = proposals_per_image[sampled_idxs] + proposals_per_image.gt_classes = gt_classes + + if has_gt: + sampled_targets = matched_idxs[sampled_idxs] + proposals_per_image.gt_boxes = targets_per_image.gt_boxes[sampled_targets] + + num_bg_samples.append((gt_classes == self.num_classes).sum().item()) + num_fg_samples.append(gt_classes.numel() - num_bg_samples[-1]) + proposals_with_gt.append(proposals_per_image) + + # Log the number of fg/bg samples that are selected for training ROI heads + storage = get_event_storage() + storage.put_scalar("roi_head/num_fg_samples", np.mean(num_fg_samples)) + storage.put_scalar("roi_head/num_bg_samples", np.mean(num_bg_samples)) + + return proposals_with_gt diff --git a/detectron2/detectron2/modeling/sampling.py b/detectron2/detectron2/modeling/sampling.py new file mode 100755 index 0000000..a2d0f66 --- /dev/null +++ b/detectron2/detectron2/modeling/sampling.py @@ -0,0 +1,54 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch + +from detectron2.layers import nonzero_tuple + +__all__ = ["subsample_labels"] + + +def subsample_labels( + labels: torch.Tensor, num_samples: int, positive_fraction: float, bg_label: int +): + """ + Return `num_samples` (or fewer, if not enough found) + random samples from `labels` which is a mixture of positives & negatives. + It will try to return as many positives as possible without + exceeding `positive_fraction * num_samples`, and then try to + fill the remaining slots with negatives. + + Args: + labels (Tensor): (N, ) label vector with values: + * -1: ignore + * bg_label: background ("negative") class + * otherwise: one or more foreground ("positive") classes + num_samples (int): The total number of labels with value >= 0 to return. + Values that are not sampled will be filled with -1 (ignore). + positive_fraction (float): The number of subsampled labels with values > 0 + is `min(num_positives, int(positive_fraction * num_samples))`. The number + of negatives sampled is `min(num_negatives, num_samples - num_positives_sampled)`. + In order words, if there are not enough positives, the sample is filled with + negatives. If there are also not enough negatives, then as many elements are + sampled as is possible. + bg_label (int): label index of background ("negative") class. + + Returns: + pos_idx, neg_idx (Tensor): + 1D vector of indices. The total length of both is `num_samples` or fewer. + """ + positive = nonzero_tuple((labels != -1) & (labels != bg_label))[0] + negative = nonzero_tuple(labels == bg_label)[0] + + num_pos = int(num_samples * positive_fraction) + # protect against not enough positive examples + num_pos = min(positive.numel(), num_pos) + num_neg = num_samples - num_pos + # protect against not enough negative examples + num_neg = min(negative.numel(), num_neg) + + # randomly select positive and negative examples + perm1 = torch.randperm(positive.numel(), device=positive.device)[:num_pos] + perm2 = torch.randperm(negative.numel(), device=negative.device)[:num_neg] + + pos_idx = positive[perm1] + neg_idx = negative[perm2] + return pos_idx, neg_idx diff --git a/detectron2/detectron2/modeling/test_time_augmentation.py b/detectron2/detectron2/modeling/test_time_augmentation.py new file mode 100755 index 0000000..373e6bf --- /dev/null +++ b/detectron2/detectron2/modeling/test_time_augmentation.py @@ -0,0 +1,307 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import numpy as np +from contextlib import contextmanager +from itertools import count +from typing import List +import torch +from fvcore.transforms import HFlipTransform, NoOpTransform +from torch import nn +from torch.nn.parallel import DistributedDataParallel + +from detectron2.config import configurable +from detectron2.data.detection_utils import read_image +from detectron2.data.transforms import ( + RandomFlip, + ResizeShortestEdge, + ResizeTransform, + apply_augmentations, +) +from detectron2.structures import Boxes, Instances + +from .meta_arch import GeneralizedRCNN +from .postprocessing import detector_postprocess +from .roi_heads.fast_rcnn import fast_rcnn_inference_single_image + +__all__ = ["DatasetMapperTTA", "GeneralizedRCNNWithTTA"] + + +class DatasetMapperTTA: + """ + Implement test-time augmentation for detection data. + It is a callable which takes a dataset dict from a detection dataset, + and returns a list of dataset dicts where the images + are augmented from the input image by the transformations defined in the config. + This is used for test-time augmentation. + """ + + @configurable + def __init__(self, min_sizes: List[int], max_size: int, flip: bool): + """ + Args: + min_sizes: list of short-edge size to resize the image to + max_size: maximum height or width of resized images + flip: whether to apply flipping augmentation + """ + self.min_sizes = min_sizes + self.max_size = max_size + self.flip = flip + + @classmethod + def from_config(cls, cfg): + return { + "min_sizes": cfg.TEST.AUG.MIN_SIZES, + "max_size": cfg.TEST.AUG.MAX_SIZE, + "flip": cfg.TEST.AUG.FLIP, + } + + def __call__(self, dataset_dict): + """ + Args: + dict: a dict in standard model input format. See tutorials for details. + + Returns: + list[dict]: + a list of dicts, which contain augmented version of the input image. + The total number of dicts is ``len(min_sizes) * (2 if flip else 1)``. + Each dict has field "transforms" which is a TransformList, + containing the transforms that are used to generate this image. + """ + numpy_image = dataset_dict["image"].permute(1, 2, 0).numpy() + shape = numpy_image.shape + orig_shape = (dataset_dict["height"], dataset_dict["width"]) + if shape[:2] != orig_shape: + # It transforms the "original" image in the dataset to the input image + pre_tfm = ResizeTransform(orig_shape[0], orig_shape[1], shape[0], shape[1]) + else: + pre_tfm = NoOpTransform() + + # Create all combinations of augmentations to use + aug_candidates = [] # each element is a list[Augmentation] + for min_size in self.min_sizes: + resize = ResizeShortestEdge(min_size, self.max_size) + aug_candidates.append([resize]) # resize only + if self.flip: + flip = RandomFlip(prob=1.0) + aug_candidates.append([resize, flip]) # resize + flip + + # Apply all the augmentations + ret = [] + for aug in aug_candidates: + new_image, tfms = apply_augmentations(aug, np.copy(numpy_image)) + torch_image = torch.from_numpy(np.ascontiguousarray(new_image.transpose(2, 0, 1))) + + dic = copy.deepcopy(dataset_dict) + dic["transforms"] = pre_tfm + tfms + dic["image"] = torch_image + ret.append(dic) + return ret + + +class GeneralizedRCNNWithTTA(nn.Module): + """ + A GeneralizedRCNN with test-time augmentation enabled. + Its :meth:`__call__` method has the same interface as :meth:`GeneralizedRCNN.forward`. + """ + + def __init__(self, cfg, model, tta_mapper=None, batch_size=3): + """ + Args: + cfg (CfgNode): + model (GeneralizedRCNN): a GeneralizedRCNN to apply TTA on. + tta_mapper (callable): takes a dataset dict and returns a list of + augmented versions of the dataset dict. Defaults to + `DatasetMapperTTA(cfg)`. + batch_size (int): batch the augmented images into this batch size for inference. + """ + super().__init__() + if isinstance(model, DistributedDataParallel): + model = model.module + assert isinstance( + model, GeneralizedRCNN + ), "TTA is only supported on GeneralizedRCNN. Got a model of type {}".format(type(model)) + self.cfg = cfg.clone() + assert not self.cfg.MODEL.KEYPOINT_ON, "TTA for keypoint is not supported yet" + assert ( + not self.cfg.MODEL.LOAD_PROPOSALS + ), "TTA for pre-computed proposals is not supported yet" + + self.model = model + + if tta_mapper is None: + tta_mapper = DatasetMapperTTA(cfg) + self.tta_mapper = tta_mapper + self.batch_size = batch_size + + @contextmanager + def _turn_off_roi_heads(self, attrs): + """ + Open a context where some heads in `model.roi_heads` are temporarily turned off. + Args: + attr (list[str]): the attribute in `model.roi_heads` which can be used + to turn off a specific head, e.g., "mask_on", "keypoint_on". + """ + roi_heads = self.model.roi_heads + old = {} + for attr in attrs: + try: + old[attr] = getattr(roi_heads, attr) + except AttributeError: + # The head may not be implemented in certain ROIHeads + pass + + if len(old.keys()) == 0: + yield + else: + for attr in old.keys(): + setattr(roi_heads, attr, False) + yield + for attr in old.keys(): + setattr(roi_heads, attr, old[attr]) + + def _batch_inference(self, batched_inputs, detected_instances=None): + """ + Execute inference on a list of inputs, + using batch size = self.batch_size, instead of the length of the list. + + Inputs & outputs have the same format as :meth:`GeneralizedRCNN.inference` + """ + if detected_instances is None: + detected_instances = [None] * len(batched_inputs) + + outputs = [] + inputs, instances = [], [] + for idx, input, instance in zip(count(), batched_inputs, detected_instances): + inputs.append(input) + instances.append(instance) + if len(inputs) == self.batch_size or idx == len(batched_inputs) - 1: + outputs.extend( + self.model.inference( + inputs, + instances if instances[0] is not None else None, + do_postprocess=False, + ) + ) + inputs, instances = [], [] + return outputs + + def __call__(self, batched_inputs): + """ + Same input/output format as :meth:`GeneralizedRCNN.forward` + """ + + def _maybe_read_image(dataset_dict): + ret = copy.copy(dataset_dict) + if "image" not in ret: + image = read_image(ret.pop("file_name"), self.model.input_format) + image = torch.from_numpy(np.ascontiguousarray(image.transpose(2, 0, 1))) # CHW + ret["image"] = image + if "height" not in ret and "width" not in ret: + ret["height"] = image.shape[1] + ret["width"] = image.shape[2] + return ret + + return [self._inference_one_image(_maybe_read_image(x)) for x in batched_inputs] + + def _inference_one_image(self, input): + """ + Args: + input (dict): one dataset dict with "image" field being a CHW tensor + + Returns: + dict: one output dict + """ + orig_shape = (input["height"], input["width"]) + augmented_inputs, tfms = self._get_augmented_inputs(input) + # Detect boxes from all augmented versions + with self._turn_off_roi_heads(["mask_on", "keypoint_on"]): + # temporarily disable roi heads + all_boxes, all_scores, all_classes = self._get_augmented_boxes(augmented_inputs, tfms) + # merge all detected boxes to obtain final predictions for boxes + merged_instances = self._merge_detections(all_boxes, all_scores, all_classes, orig_shape) + + if self.cfg.MODEL.MASK_ON: + # Use the detected boxes to obtain masks + augmented_instances = self._rescale_detected_boxes( + augmented_inputs, merged_instances, tfms + ) + # run forward on the detected boxes + outputs = self._batch_inference(augmented_inputs, augmented_instances) + # Delete now useless variables to avoid being out of memory + del augmented_inputs, augmented_instances + # average the predictions + merged_instances.pred_masks = self._reduce_pred_masks(outputs, tfms) + merged_instances = detector_postprocess(merged_instances, *orig_shape) + return {"instances": merged_instances} + else: + return {"instances": merged_instances} + + def _get_augmented_inputs(self, input): + augmented_inputs = self.tta_mapper(input) + tfms = [x.pop("transforms") for x in augmented_inputs] + return augmented_inputs, tfms + + def _get_augmented_boxes(self, augmented_inputs, tfms): + # 1: forward with all augmented images + outputs = self._batch_inference(augmented_inputs) + # 2: union the results + all_boxes = [] + all_scores = [] + all_classes = [] + for output, tfm in zip(outputs, tfms): + # Need to inverse the transforms on boxes, to obtain results on original image + pred_boxes = output.pred_boxes.tensor + original_pred_boxes = tfm.inverse().apply_box(pred_boxes.cpu().numpy()) + all_boxes.append(torch.from_numpy(original_pred_boxes).to(pred_boxes.device)) + + all_scores.extend(output.scores) + all_classes.extend(output.pred_classes) + all_boxes = torch.cat(all_boxes, dim=0) + return all_boxes, all_scores, all_classes + + def _merge_detections(self, all_boxes, all_scores, all_classes, shape_hw): + # select from the union of all results + num_boxes = len(all_boxes) + num_classes = self.cfg.MODEL.ROI_HEADS.NUM_CLASSES + # +1 because fast_rcnn_inference expects background scores as well + all_scores_2d = torch.zeros(num_boxes, num_classes + 1, device=all_boxes.device) + for idx, cls, score in zip(count(), all_classes, all_scores): + all_scores_2d[idx, cls] = score + + merged_instances, _ = fast_rcnn_inference_single_image( + all_boxes, + all_scores_2d, + shape_hw, + 1e-8, + self.cfg.MODEL.ROI_HEADS.NMS_THRESH_TEST, + self.cfg.TEST.DETECTIONS_PER_IMAGE, + ) + + return merged_instances + + def _rescale_detected_boxes(self, augmented_inputs, merged_instances, tfms): + augmented_instances = [] + for input, tfm in zip(augmented_inputs, tfms): + # Transform the target box to the augmented image's coordinate space + pred_boxes = merged_instances.pred_boxes.tensor.cpu().numpy() + pred_boxes = torch.from_numpy(tfm.apply_box(pred_boxes)) + + aug_instances = Instances( + image_size=input["image"].shape[1:3], + pred_boxes=Boxes(pred_boxes), + pred_classes=merged_instances.pred_classes, + scores=merged_instances.scores, + ) + augmented_instances.append(aug_instances) + return augmented_instances + + def _reduce_pred_masks(self, outputs, tfms): + # Should apply inverse transforms on masks. + # We assume only resize & flip are used. pred_masks is a scale-invariant + # representation, so we handle flip specially + for output, tfm in zip(outputs, tfms): + if any(isinstance(t, HFlipTransform) for t in tfm.transforms): + output.pred_masks = output.pred_masks.flip(dims=[3]) + all_pred_masks = torch.stack([o.pred_masks for o in outputs], dim=0) + avg_pred_masks = torch.mean(all_pred_masks, dim=0) + return avg_pred_masks diff --git a/detectron2/detectron2/projects/README.md b/detectron2/detectron2/projects/README.md new file mode 100755 index 0000000..95afe7f --- /dev/null +++ b/detectron2/detectron2/projects/README.md @@ -0,0 +1,2 @@ + +Projects live in the [`projects` directory](../../projects) under the root of this repository, but not here. diff --git a/detectron2/detectron2/projects/__init__.py b/detectron2/detectron2/projects/__init__.py new file mode 100755 index 0000000..b2d0540 --- /dev/null +++ b/detectron2/detectron2/projects/__init__.py @@ -0,0 +1,34 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import importlib.abc +import importlib.util +from pathlib import Path + +__all__ = [] + +_PROJECTS = { + "point_rend": "PointRend", + "deeplab": "DeepLab", + "panoptic_deeplab": "Panoptic-DeepLab", +} +_PROJECT_ROOT = Path(__file__).resolve().parent.parent.parent / "projects" + +if _PROJECT_ROOT.is_dir(): + # This is true only for in-place installation (pip install -e, setup.py develop), + # where setup(package_dir=) does not work: https://github.com/pypa/setuptools/issues/230 + + class _D2ProjectsFinder(importlib.abc.MetaPathFinder): + def find_spec(self, name, path, target=None): + if not name.startswith("detectron2.projects."): + return + project_name = name.split(".")[-1] + project_dir = _PROJECTS.get(project_name) + if not project_dir: + return + target_file = _PROJECT_ROOT / f"{project_dir}/{project_name}/__init__.py" + if not target_file.is_file(): + return + return importlib.util.spec_from_file_location(name, target_file) + + import sys + + sys.meta_path.append(_D2ProjectsFinder()) diff --git a/detectron2/detectron2/solver/__init__.py b/detectron2/detectron2/solver/__init__.py new file mode 100755 index 0000000..7e36c64 --- /dev/null +++ b/detectron2/detectron2/solver/__init__.py @@ -0,0 +1,11 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .build import build_lr_scheduler, build_optimizer, get_default_optimizer_params +from .lr_scheduler import ( + LRMultiplier, + LRScheduler, + WarmupCosineLR, + WarmupMultiStepLR, + WarmupParamScheduler, +) + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/solver/build.py b/detectron2/detectron2/solver/build.py new file mode 100755 index 0000000..6ce25b3 --- /dev/null +++ b/detectron2/detectron2/solver/build.py @@ -0,0 +1,310 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import itertools +import logging +from collections import defaultdict +from enum import Enum +from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Type, Union +import torch +from fvcore.common.param_scheduler import ( + CosineParamScheduler, + MultiStepParamScheduler, + StepWithFixedGammaParamScheduler, +) + +from detectron2.config import CfgNode +from detectron2.utils.env import TORCH_VERSION + +from .lr_scheduler import LRMultiplier, LRScheduler, WarmupParamScheduler + +_GradientClipperInput = Union[torch.Tensor, Iterable[torch.Tensor]] +_GradientClipper = Callable[[_GradientClipperInput], None] + + +class GradientClipType(Enum): + VALUE = "value" + NORM = "norm" + + +def _create_gradient_clipper(cfg: CfgNode) -> _GradientClipper: + """ + Creates gradient clipping closure to clip by value or by norm, + according to the provided config. + """ + cfg = copy.deepcopy(cfg) + + def clip_grad_norm(p: _GradientClipperInput): + torch.nn.utils.clip_grad_norm_(p, cfg.CLIP_VALUE, cfg.NORM_TYPE) + + def clip_grad_value(p: _GradientClipperInput): + torch.nn.utils.clip_grad_value_(p, cfg.CLIP_VALUE) + + _GRADIENT_CLIP_TYPE_TO_CLIPPER = { + GradientClipType.VALUE: clip_grad_value, + GradientClipType.NORM: clip_grad_norm, + } + return _GRADIENT_CLIP_TYPE_TO_CLIPPER[GradientClipType(cfg.CLIP_TYPE)] + + +def _generate_optimizer_class_with_gradient_clipping( + optimizer: Type[torch.optim.Optimizer], + *, + per_param_clipper: Optional[_GradientClipper] = None, + global_clipper: Optional[_GradientClipper] = None, +) -> Type[torch.optim.Optimizer]: + """ + Dynamically creates a new type that inherits the type of a given instance + and overrides the `step` method to add gradient clipping + """ + assert ( + per_param_clipper is None or global_clipper is None + ), "Not allowed to use both per-parameter clipping and global clipping" + + def optimizer_wgc_step(self, closure=None): + if per_param_clipper is not None: + for group in self.param_groups: + for p in group["params"]: + per_param_clipper(p) + else: + # global clipper for future use with detr + # (https://github.com/facebookresearch/detr/pull/287) + all_params = itertools.chain(*[g["params"] for g in self.param_groups]) + global_clipper(all_params) + super(type(self), self).step(closure) + + OptimizerWithGradientClip = type( + optimizer.__name__ + "WithGradientClip", + (optimizer,), + {"step": optimizer_wgc_step}, + ) + return OptimizerWithGradientClip + + +def maybe_add_gradient_clipping( + cfg: CfgNode, optimizer: Type[torch.optim.Optimizer] +) -> Type[torch.optim.Optimizer]: + """ + If gradient clipping is enabled through config options, wraps the existing + optimizer type to become a new dynamically created class OptimizerWithGradientClip + that inherits the given optimizer and overrides the `step` method to + include gradient clipping. + + Args: + cfg: CfgNode, configuration options + optimizer: type. A subclass of torch.optim.Optimizer + + Return: + type: either the input `optimizer` (if gradient clipping is disabled), or + a subclass of it with gradient clipping included in the `step` method. + """ + if not cfg.SOLVER.CLIP_GRADIENTS.ENABLED: + return optimizer + if isinstance(optimizer, torch.optim.Optimizer): + optimizer_type = type(optimizer) + else: + assert issubclass(optimizer, torch.optim.Optimizer), optimizer + optimizer_type = optimizer + + grad_clipper = _create_gradient_clipper(cfg.SOLVER.CLIP_GRADIENTS) + OptimizerWithGradientClip = _generate_optimizer_class_with_gradient_clipping( + optimizer_type, per_param_clipper=grad_clipper + ) + if isinstance(optimizer, torch.optim.Optimizer): + optimizer.__class__ = OptimizerWithGradientClip # a bit hacky, not recommended + return optimizer + else: + return OptimizerWithGradientClip + + +def build_optimizer(cfg: CfgNode, model: torch.nn.Module) -> torch.optim.Optimizer: + """ + Build an optimizer from config. + """ + params = get_default_optimizer_params( + model, + base_lr=cfg.SOLVER.BASE_LR, + weight_decay_norm=cfg.SOLVER.WEIGHT_DECAY_NORM, + bias_lr_factor=cfg.SOLVER.BIAS_LR_FACTOR, + weight_decay_bias=cfg.SOLVER.WEIGHT_DECAY_BIAS, + ) + sgd_args = { + "params": params, + "lr": cfg.SOLVER.BASE_LR, + "momentum": cfg.SOLVER.MOMENTUM, + "nesterov": cfg.SOLVER.NESTEROV, + "weight_decay": cfg.SOLVER.WEIGHT_DECAY, + } + if TORCH_VERSION >= (1, 12): + sgd_args["foreach"] = True + return maybe_add_gradient_clipping(cfg, torch.optim.SGD(**sgd_args)) + + +def get_default_optimizer_params( + model: torch.nn.Module, + base_lr: Optional[float] = None, + weight_decay: Optional[float] = None, + weight_decay_norm: Optional[float] = None, + bias_lr_factor: Optional[float] = 1.0, + weight_decay_bias: Optional[float] = None, + lr_factor_func: Optional[Callable] = None, + overrides: Optional[Dict[str, Dict[str, float]]] = None, +) -> List[Dict[str, Any]]: + """ + Get default param list for optimizer, with support for a few types of + overrides. If no overrides needed, this is equivalent to `model.parameters()`. + + Args: + base_lr: lr for every group by default. Can be omitted to use the one in optimizer. + weight_decay: weight decay for every group by default. Can be omitted to use the one + in optimizer. + weight_decay_norm: override weight decay for params in normalization layers + bias_lr_factor: multiplier of lr for bias parameters. + weight_decay_bias: override weight decay for bias parameters. + lr_factor_func: function to calculate lr decay rate by mapping the parameter names to + corresponding lr decay rate. Note that setting this option requires + also setting ``base_lr``. + overrides: if not `None`, provides values for optimizer hyperparameters + (LR, weight decay) for module parameters with a given name; e.g. + ``{"embedding": {"lr": 0.01, "weight_decay": 0.1}}`` will set the LR and + weight decay values for all module parameters named `embedding`. + + For common detection models, ``weight_decay_norm`` is the only option + needed to be set. ``bias_lr_factor,weight_decay_bias`` are legacy settings + from Detectron1 that are not found useful. + + Example: + :: + torch.optim.SGD(get_default_optimizer_params(model, weight_decay_norm=0), + lr=0.01, weight_decay=1e-4, momentum=0.9) + """ + if overrides is None: + overrides = {} + defaults = {} + if base_lr is not None: + defaults["lr"] = base_lr + if weight_decay is not None: + defaults["weight_decay"] = weight_decay + bias_overrides = {} + if bias_lr_factor is not None and bias_lr_factor != 1.0: + # NOTE: unlike Detectron v1, we now by default make bias hyperparameters + # exactly the same as regular weights. + if base_lr is None: + raise ValueError("bias_lr_factor requires base_lr") + bias_overrides["lr"] = base_lr * bias_lr_factor + if weight_decay_bias is not None: + bias_overrides["weight_decay"] = weight_decay_bias + if len(bias_overrides): + if "bias" in overrides: + raise ValueError("Conflicting overrides for 'bias'") + overrides["bias"] = bias_overrides + if lr_factor_func is not None: + if base_lr is None: + raise ValueError("lr_factor_func requires base_lr") + norm_module_types = ( + torch.nn.BatchNorm1d, + torch.nn.BatchNorm2d, + torch.nn.BatchNorm3d, + torch.nn.SyncBatchNorm, + # NaiveSyncBatchNorm inherits from BatchNorm2d + torch.nn.GroupNorm, + torch.nn.InstanceNorm1d, + torch.nn.InstanceNorm2d, + torch.nn.InstanceNorm3d, + torch.nn.LayerNorm, + torch.nn.LocalResponseNorm, + ) + params: List[Dict[str, Any]] = [] + memo: Set[torch.nn.parameter.Parameter] = set() + for module_name, module in model.named_modules(): + for module_param_name, value in module.named_parameters(recurse=False): + if not value.requires_grad: + continue + # Avoid duplicating parameters + if value in memo: + continue + memo.add(value) + + hyperparams = copy.copy(defaults) + if isinstance(module, norm_module_types) and weight_decay_norm is not None: + hyperparams["weight_decay"] = weight_decay_norm + if lr_factor_func is not None: + hyperparams["lr"] *= lr_factor_func(f"{module_name}.{module_param_name}") + + hyperparams.update(overrides.get(module_param_name, {})) + params.append({"params": [value], **hyperparams}) + return reduce_param_groups(params) + + +def _expand_param_groups(params: List[Dict[str, Any]]) -> List[Dict[str, Any]]: + # Transform parameter groups into per-parameter structure. + # Later items in `params` can overwrite parameters set in previous items. + ret = defaultdict(dict) + for item in params: + assert "params" in item + cur_params = {x: y for x, y in item.items() if x != "params"} + for param in item["params"]: + ret[param].update({"params": [param], **cur_params}) + return list(ret.values()) + + +def reduce_param_groups(params: List[Dict[str, Any]]) -> List[Dict[str, Any]]: + # Reorganize the parameter groups and merge duplicated groups. + # The number of parameter groups needs to be as small as possible in order + # to efficiently use the PyTorch multi-tensor optimizer. Therefore instead + # of using a parameter_group per single parameter, we reorganize the + # parameter groups and merge duplicated groups. This approach speeds + # up multi-tensor optimizer significantly. + params = _expand_param_groups(params) + groups = defaultdict(list) # re-group all parameter groups by their hyperparams + for item in params: + cur_params = tuple((x, y) for x, y in item.items() if x != "params") + groups[cur_params].extend(item["params"]) + ret = [] + for param_keys, param_values in groups.items(): + cur = {kv[0]: kv[1] for kv in param_keys} + cur["params"] = param_values + ret.append(cur) + return ret + + +def build_lr_scheduler(cfg: CfgNode, optimizer: torch.optim.Optimizer) -> LRScheduler: + """ + Build a LR scheduler from config. + """ + name = cfg.SOLVER.LR_SCHEDULER_NAME + + if name == "WarmupMultiStepLR": + steps = [x for x in cfg.SOLVER.STEPS if x <= cfg.SOLVER.MAX_ITER] + if len(steps) != len(cfg.SOLVER.STEPS): + logger = logging.getLogger(__name__) + logger.warning( + "SOLVER.STEPS contains values larger than SOLVER.MAX_ITER. " + "These values will be ignored." + ) + sched = MultiStepParamScheduler( + values=[cfg.SOLVER.GAMMA**k for k in range(len(steps) + 1)], + milestones=steps, + num_updates=cfg.SOLVER.MAX_ITER, + ) + elif name == "WarmupCosineLR": + end_value = cfg.SOLVER.BASE_LR_END / cfg.SOLVER.BASE_LR + assert end_value >= 0.0 and end_value <= 1.0, end_value + sched = CosineParamScheduler(1, end_value) + elif name == "WarmupStepWithFixedGammaLR": + sched = StepWithFixedGammaParamScheduler( + base_value=1.0, + gamma=cfg.SOLVER.GAMMA, + num_decays=cfg.SOLVER.NUM_DECAYS, + num_updates=cfg.SOLVER.MAX_ITER, + ) + else: + raise ValueError("Unknown LR scheduler: {}".format(name)) + + sched = WarmupParamScheduler( + sched, + cfg.SOLVER.WARMUP_FACTOR, + min(cfg.SOLVER.WARMUP_ITERS / cfg.SOLVER.MAX_ITER, 1.0), + cfg.SOLVER.WARMUP_METHOD, + cfg.SOLVER.RESCALE_INTERVAL, + ) + return LRMultiplier(optimizer, multiplier=sched, max_iter=cfg.SOLVER.MAX_ITER) diff --git a/detectron2/detectron2/solver/lr_scheduler.py b/detectron2/detectron2/solver/lr_scheduler.py new file mode 100755 index 0000000..d6aed2b --- /dev/null +++ b/detectron2/detectron2/solver/lr_scheduler.py @@ -0,0 +1,246 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import math +from bisect import bisect_right +from typing import List +import torch +from fvcore.common.param_scheduler import ( + CompositeParamScheduler, + ConstantParamScheduler, + LinearParamScheduler, + ParamScheduler, +) + +try: + from torch.optim.lr_scheduler import LRScheduler +except ImportError: + from torch.optim.lr_scheduler import _LRScheduler as LRScheduler + +logger = logging.getLogger(__name__) + + +class WarmupParamScheduler(CompositeParamScheduler): + """ + Add an initial warmup stage to another scheduler. + """ + + def __init__( + self, + scheduler: ParamScheduler, + warmup_factor: float, + warmup_length: float, + warmup_method: str = "linear", + rescale_interval: bool = False, + ): + """ + Args: + scheduler: warmup will be added at the beginning of this scheduler + warmup_factor: the factor w.r.t the initial value of ``scheduler``, e.g. 0.001 + warmup_length: the relative length (in [0, 1]) of warmup steps w.r.t the entire + training, e.g. 0.01 + warmup_method: one of "linear" or "constant" + rescale_interval: whether we will rescale the interval of the scheduler after + warmup + """ + end_value = scheduler(warmup_length) # the value to reach when warmup ends + start_value = warmup_factor * scheduler(0.0) + if warmup_method == "constant": + warmup = ConstantParamScheduler(start_value) + elif warmup_method == "linear": + warmup = LinearParamScheduler(start_value, end_value) + else: + raise ValueError("Unknown warmup method: {}".format(warmup_method)) + super().__init__( + [warmup, scheduler], + interval_scaling=["rescaled", "rescaled" if rescale_interval else "fixed"], + lengths=[warmup_length, 1 - warmup_length], + ) + + +class LRMultiplier(LRScheduler): + """ + A LRScheduler which uses fvcore :class:`ParamScheduler` to multiply the + learning rate of each param in the optimizer. + Every step, the learning rate of each parameter becomes its initial value + multiplied by the output of the given :class:`ParamScheduler`. + + The absolute learning rate value of each parameter can be different. + This scheduler can be used as long as the relative scale among them do + not change during training. + + Examples: + :: + LRMultiplier( + opt, + WarmupParamScheduler( + MultiStepParamScheduler( + [1, 0.1, 0.01], + milestones=[60000, 80000], + num_updates=90000, + ), 0.001, 100 / 90000 + ), + max_iter=90000 + ) + """ + + # NOTES: in the most general case, every LR can use its own scheduler. + # Supporting this requires interaction with the optimizer when its parameter + # group is initialized. For example, classyvision implements its own optimizer + # that allows different schedulers for every parameter group. + # To avoid this complexity, we use this class to support the most common cases + # where the relative scale among all LRs stay unchanged during training. In this + # case we only need a total of one scheduler that defines the relative LR multiplier. + + def __init__( + self, + optimizer: torch.optim.Optimizer, + multiplier: ParamScheduler, + max_iter: int, + last_iter: int = -1, + ): + """ + Args: + optimizer, last_iter: See ``torch.optim.lr_scheduler.LRScheduler``. + ``last_iter`` is the same as ``last_epoch``. + multiplier: a fvcore ParamScheduler that defines the multiplier on + every LR of the optimizer + max_iter: the total number of training iterations + """ + if not isinstance(multiplier, ParamScheduler): + raise ValueError( + "_LRMultiplier(multiplier=) must be an instance of fvcore " + f"ParamScheduler. Got {multiplier} instead." + ) + self._multiplier = multiplier + self._max_iter = max_iter + super().__init__(optimizer, last_epoch=last_iter) + + def state_dict(self): + # fvcore schedulers are stateless. Only keep pytorch scheduler states + return {"base_lrs": self.base_lrs, "last_epoch": self.last_epoch} + + def get_lr(self) -> List[float]: + multiplier = self._multiplier(self.last_epoch / self._max_iter) + return [base_lr * multiplier for base_lr in self.base_lrs] + + +""" +Content below is no longer needed! +""" + +# NOTE: PyTorch's LR scheduler interface uses names that assume the LR changes +# only on epoch boundaries. We typically use iteration based schedules instead. +# As a result, "epoch" (e.g., as in self.last_epoch) should be understood to mean +# "iteration" instead. + +# FIXME: ideally this would be achieved with a CombinedLRScheduler, separating +# MultiStepLR with WarmupLR but the current LRScheduler design doesn't allow it. + + +class WarmupMultiStepLR(LRScheduler): + def __init__( + self, + optimizer: torch.optim.Optimizer, + milestones: List[int], + gamma: float = 0.1, + warmup_factor: float = 0.001, + warmup_iters: int = 1000, + warmup_method: str = "linear", + last_epoch: int = -1, + ): + logger.warning( + "WarmupMultiStepLR is deprecated! Use LRMultipilier with fvcore ParamScheduler instead!" + ) + if not list(milestones) == sorted(milestones): + raise ValueError( + "Milestones should be a list of" " increasing integers. Got {}", milestones + ) + self.milestones = milestones + self.gamma = gamma + self.warmup_factor = warmup_factor + self.warmup_iters = warmup_iters + self.warmup_method = warmup_method + super().__init__(optimizer, last_epoch) + + def get_lr(self) -> List[float]: + warmup_factor = _get_warmup_factor_at_iter( + self.warmup_method, self.last_epoch, self.warmup_iters, self.warmup_factor + ) + return [ + base_lr * warmup_factor * self.gamma ** bisect_right(self.milestones, self.last_epoch) + for base_lr in self.base_lrs + ] + + def _compute_values(self) -> List[float]: + # The new interface + return self.get_lr() + + +class WarmupCosineLR(LRScheduler): + def __init__( + self, + optimizer: torch.optim.Optimizer, + max_iters: int, + warmup_factor: float = 0.001, + warmup_iters: int = 1000, + warmup_method: str = "linear", + last_epoch: int = -1, + ): + logger.warning( + "WarmupCosineLR is deprecated! Use LRMultipilier with fvcore ParamScheduler instead!" + ) + self.max_iters = max_iters + self.warmup_factor = warmup_factor + self.warmup_iters = warmup_iters + self.warmup_method = warmup_method + super().__init__(optimizer, last_epoch) + + def get_lr(self) -> List[float]: + warmup_factor = _get_warmup_factor_at_iter( + self.warmup_method, self.last_epoch, self.warmup_iters, self.warmup_factor + ) + # Different definitions of half-cosine with warmup are possible. For + # simplicity we multiply the standard half-cosine schedule by the warmup + # factor. An alternative is to start the period of the cosine at warmup_iters + # instead of at 0. In the case that warmup_iters << max_iters the two are + # very close to each other. + return [ + base_lr + * warmup_factor + * 0.5 + * (1.0 + math.cos(math.pi * self.last_epoch / self.max_iters)) + for base_lr in self.base_lrs + ] + + def _compute_values(self) -> List[float]: + # The new interface + return self.get_lr() + + +def _get_warmup_factor_at_iter( + method: str, iter: int, warmup_iters: int, warmup_factor: float +) -> float: + """ + Return the learning rate warmup factor at a specific iteration. + See :paper:`ImageNet in 1h` for more details. + + Args: + method (str): warmup method; either "constant" or "linear". + iter (int): iteration at which to calculate the warmup factor. + warmup_iters (int): the number of warmup iterations. + warmup_factor (float): the base warmup factor (the meaning changes according + to the method used). + + Returns: + float: the effective warmup factor at the given iteration. + """ + if iter >= warmup_iters: + return 1.0 + + if method == "constant": + return warmup_factor + elif method == "linear": + alpha = iter / warmup_iters + return warmup_factor * (1 - alpha) + alpha + else: + raise ValueError("Unknown warmup method: {}".format(method)) diff --git a/detectron2/detectron2/structures/__init__.py b/detectron2/detectron2/structures/__init__.py new file mode 100755 index 0000000..f3ee605 --- /dev/null +++ b/detectron2/detectron2/structures/__init__.py @@ -0,0 +1,17 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .boxes import Boxes, BoxMode, pairwise_iou, pairwise_ioa, pairwise_point_box_distance +from .image_list import ImageList + +from .instances import Instances +from .keypoints import Keypoints, heatmaps_to_keypoints +from .masks import BitMasks, PolygonMasks, polygons_to_bitmask, ROIMasks +from .rotated_boxes import RotatedBoxes +from .rotated_boxes import pairwise_iou as pairwise_iou_rotated + +__all__ = [k for k in globals().keys() if not k.startswith("_")] + + +from detectron2.utils.env import fixup_module_metadata + +fixup_module_metadata(__name__, globals(), __all__) +del fixup_module_metadata diff --git a/detectron2/detectron2/structures/boxes.py b/detectron2/detectron2/structures/boxes.py new file mode 100755 index 0000000..fd396f6 --- /dev/null +++ b/detectron2/detectron2/structures/boxes.py @@ -0,0 +1,425 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +import numpy as np +from enum import IntEnum, unique +from typing import List, Tuple, Union +import torch +from torch import device + +_RawBoxType = Union[List[float], Tuple[float, ...], torch.Tensor, np.ndarray] + + +@unique +class BoxMode(IntEnum): + """ + Enum of different ways to represent a box. + """ + + XYXY_ABS = 0 + """ + (x0, y0, x1, y1) in absolute floating points coordinates. + The coordinates in range [0, width or height]. + """ + XYWH_ABS = 1 + """ + (x0, y0, w, h) in absolute floating points coordinates. + """ + XYXY_REL = 2 + """ + Not yet supported! + (x0, y0, x1, y1) in range [0, 1]. They are relative to the size of the image. + """ + XYWH_REL = 3 + """ + Not yet supported! + (x0, y0, w, h) in range [0, 1]. They are relative to the size of the image. + """ + XYWHA_ABS = 4 + """ + (xc, yc, w, h, a) in absolute floating points coordinates. + (xc, yc) is the center of the rotated box, and the angle a is in degrees ccw. + """ + + @staticmethod + def convert(box: _RawBoxType, from_mode: "BoxMode", to_mode: "BoxMode") -> _RawBoxType: + """ + Args: + box: can be a k-tuple, k-list or an Nxk array/tensor, where k = 4 or 5 + from_mode, to_mode (BoxMode) + + Returns: + The converted box of the same type. + """ + if from_mode == to_mode: + return box + + original_type = type(box) + is_numpy = isinstance(box, np.ndarray) + single_box = isinstance(box, (list, tuple)) + if single_box: + assert len(box) == 4 or len(box) == 5, ( + "BoxMode.convert takes either a k-tuple/list or an Nxk array/tensor," + " where k == 4 or 5" + ) + arr = torch.tensor(box)[None, :] + else: + # avoid modifying the input box + if is_numpy: + arr = torch.from_numpy(np.asarray(box)).clone() + else: + arr = box.clone() + + assert to_mode not in [BoxMode.XYXY_REL, BoxMode.XYWH_REL] and from_mode not in [ + BoxMode.XYXY_REL, + BoxMode.XYWH_REL, + ], "Relative mode not yet supported!" + + if from_mode == BoxMode.XYWHA_ABS and to_mode == BoxMode.XYXY_ABS: + assert ( + arr.shape[-1] == 5 + ), "The last dimension of input shape must be 5 for XYWHA format" + original_dtype = arr.dtype + arr = arr.double() + + w = arr[:, 2] + h = arr[:, 3] + a = arr[:, 4] + c = torch.abs(torch.cos(a * math.pi / 180.0)) + s = torch.abs(torch.sin(a * math.pi / 180.0)) + # This basically computes the horizontal bounding rectangle of the rotated box + new_w = c * w + s * h + new_h = c * h + s * w + + # convert center to top-left corner + arr[:, 0] -= new_w / 2.0 + arr[:, 1] -= new_h / 2.0 + # bottom-right corner + arr[:, 2] = arr[:, 0] + new_w + arr[:, 3] = arr[:, 1] + new_h + + arr = arr[:, :4].to(dtype=original_dtype) + elif from_mode == BoxMode.XYWH_ABS and to_mode == BoxMode.XYWHA_ABS: + original_dtype = arr.dtype + arr = arr.double() + arr[:, 0] += arr[:, 2] / 2.0 + arr[:, 1] += arr[:, 3] / 2.0 + angles = torch.zeros((arr.shape[0], 1), dtype=arr.dtype) + arr = torch.cat((arr, angles), axis=1).to(dtype=original_dtype) + else: + if to_mode == BoxMode.XYXY_ABS and from_mode == BoxMode.XYWH_ABS: + arr[:, 2] += arr[:, 0] + arr[:, 3] += arr[:, 1] + elif from_mode == BoxMode.XYXY_ABS and to_mode == BoxMode.XYWH_ABS: + arr[:, 2] -= arr[:, 0] + arr[:, 3] -= arr[:, 1] + else: + raise NotImplementedError( + "Conversion from BoxMode {} to {} is not supported yet".format( + from_mode, to_mode + ) + ) + + if single_box: + return original_type(arr.flatten().tolist()) + if is_numpy: + return arr.numpy() + else: + return arr + + +class Boxes: + """ + This structure stores a list of boxes as a Nx4 torch.Tensor. + It supports some common methods about boxes + (`area`, `clip`, `nonempty`, etc), + and also behaves like a Tensor + (support indexing, `to(device)`, `.device`, and iteration over all boxes) + + Attributes: + tensor (torch.Tensor): float matrix of Nx4. Each row is (x1, y1, x2, y2). + """ + + def __init__(self, tensor: torch.Tensor): + """ + Args: + tensor (Tensor[float]): a Nx4 matrix. Each row is (x1, y1, x2, y2). + """ + if not isinstance(tensor, torch.Tensor): + tensor = torch.as_tensor(tensor, dtype=torch.float32, device=torch.device("cpu")) + else: + tensor = tensor.to(torch.float32) + if tensor.numel() == 0: + # Use reshape, so we don't end up creating a new tensor that does not depend on + # the inputs (and consequently confuses jit) + tensor = tensor.reshape((-1, 4)).to(dtype=torch.float32) + assert tensor.dim() == 2 and tensor.size(-1) == 4, tensor.size() + + self.tensor = tensor + + def clone(self) -> "Boxes": + """ + Clone the Boxes. + + Returns: + Boxes + """ + return Boxes(self.tensor.clone()) + + def to(self, device: torch.device): + # Boxes are assumed float32 and does not support to(dtype) + return Boxes(self.tensor.to(device=device)) + + def area(self) -> torch.Tensor: + """ + Computes the area of all the boxes. + + Returns: + torch.Tensor: a vector with areas of each box. + """ + box = self.tensor + area = (box[:, 2] - box[:, 0]) * (box[:, 3] - box[:, 1]) + return area + + def clip(self, box_size: Tuple[int, int]) -> None: + """ + Clip (in place) the boxes by limiting x coordinates to the range [0, width] + and y coordinates to the range [0, height]. + + Args: + box_size (height, width): The clipping box's size. + """ + assert torch.isfinite(self.tensor).all(), "Box tensor contains infinite or NaN!" + h, w = box_size + x1 = self.tensor[:, 0].clamp(min=0, max=w) + y1 = self.tensor[:, 1].clamp(min=0, max=h) + x2 = self.tensor[:, 2].clamp(min=0, max=w) + y2 = self.tensor[:, 3].clamp(min=0, max=h) + self.tensor = torch.stack((x1, y1, x2, y2), dim=-1) + + def nonempty(self, threshold: float = 0.0) -> torch.Tensor: + """ + Find boxes that are non-empty. + A box is considered empty, if either of its side is no larger than threshold. + + Returns: + Tensor: + a binary vector which represents whether each box is empty + (False) or non-empty (True). + """ + box = self.tensor + widths = box[:, 2] - box[:, 0] + heights = box[:, 3] - box[:, 1] + keep = (widths > threshold) & (heights > threshold) + return keep + + def __getitem__(self, item) -> "Boxes": + """ + Args: + item: int, slice, or a BoolTensor + + Returns: + Boxes: Create a new :class:`Boxes` by indexing. + + The following usage are allowed: + + 1. `new_boxes = boxes[3]`: return a `Boxes` which contains only one box. + 2. `new_boxes = boxes[2:10]`: return a slice of boxes. + 3. `new_boxes = boxes[vector]`, where vector is a torch.BoolTensor + with `length = len(boxes)`. Nonzero elements in the vector will be selected. + + Note that the returned Boxes might share storage with this Boxes, + subject to Pytorch's indexing semantics. + """ + if isinstance(item, int): + return Boxes(self.tensor[item].view(1, -1)) + b = self.tensor[item] + assert b.dim() == 2, "Indexing on Boxes with {} failed to return a matrix!".format(item) + return Boxes(b) + + def __len__(self) -> int: + return self.tensor.shape[0] + + def __repr__(self) -> str: + return "Boxes(" + str(self.tensor) + ")" + + def inside_box(self, box_size: Tuple[int, int], boundary_threshold: int = 0) -> torch.Tensor: + """ + Args: + box_size (height, width): Size of the reference box. + boundary_threshold (int): Boxes that extend beyond the reference box + boundary by more than boundary_threshold are considered "outside". + + Returns: + a binary vector, indicating whether each box is inside the reference box. + """ + height, width = box_size + inds_inside = ( + (self.tensor[..., 0] >= -boundary_threshold) + & (self.tensor[..., 1] >= -boundary_threshold) + & (self.tensor[..., 2] < width + boundary_threshold) + & (self.tensor[..., 3] < height + boundary_threshold) + ) + return inds_inside + + def get_centers(self) -> torch.Tensor: + """ + Returns: + The box centers in a Nx2 array of (x, y). + """ + return (self.tensor[:, :2] + self.tensor[:, 2:]) / 2 + + def scale(self, scale_x: float, scale_y: float) -> None: + """ + Scale the box with horizontal and vertical scaling factors + """ + self.tensor[:, 0::2] *= scale_x + self.tensor[:, 1::2] *= scale_y + + @classmethod + def cat(cls, boxes_list: List["Boxes"]) -> "Boxes": + """ + Concatenates a list of Boxes into a single Boxes + + Arguments: + boxes_list (list[Boxes]) + + Returns: + Boxes: the concatenated Boxes + """ + assert isinstance(boxes_list, (list, tuple)) + if len(boxes_list) == 0: + return cls(torch.empty(0)) + assert all([isinstance(box, Boxes) for box in boxes_list]) + + # use torch.cat (v.s. layers.cat) so the returned boxes never share storage with input + cat_boxes = cls(torch.cat([b.tensor for b in boxes_list], dim=0)) + return cat_boxes + + @property + def device(self) -> device: + return self.tensor.device + + # type "Iterator[torch.Tensor]", yield, and iter() not supported by torchscript + # https://github.com/pytorch/pytorch/issues/18627 + @torch.jit.unused + def __iter__(self): + """ + Yield a box as a Tensor of shape (4,) at a time. + """ + yield from self.tensor + + +def pairwise_intersection(boxes1: Boxes, boxes2: Boxes) -> torch.Tensor: + """ + Given two lists of boxes of size N and M, + compute the intersection area between __all__ N x M pairs of boxes. + The box order must be (xmin, ymin, xmax, ymax) + + Args: + boxes1,boxes2 (Boxes): two `Boxes`. Contains N & M boxes, respectively. + + Returns: + Tensor: intersection, sized [N,M]. + """ + boxes1, boxes2 = boxes1.tensor, boxes2.tensor + width_height = torch.min(boxes1[:, None, 2:], boxes2[:, 2:]) - torch.max( + boxes1[:, None, :2], boxes2[:, :2] + ) # [N,M,2] + + width_height.clamp_(min=0) # [N,M,2] + intersection = width_height.prod(dim=2) # [N,M] + return intersection + + +# implementation from https://github.com/kuangliu/torchcv/blob/master/torchcv/utils/box.py +# with slight modifications +def pairwise_iou(boxes1: Boxes, boxes2: Boxes) -> torch.Tensor: + """ + Given two lists of boxes of size N and M, compute the IoU + (intersection over union) between **all** N x M pairs of boxes. + The box order must be (xmin, ymin, xmax, ymax). + + Args: + boxes1,boxes2 (Boxes): two `Boxes`. Contains N & M boxes, respectively. + + Returns: + Tensor: IoU, sized [N,M]. + """ + area1 = boxes1.area() # [N] + area2 = boxes2.area() # [M] + inter = pairwise_intersection(boxes1, boxes2) + + # handle empty boxes + iou = torch.where( + inter > 0, + inter / (area1[:, None] + area2 - inter), + torch.zeros(1, dtype=inter.dtype, device=inter.device), + ) + return iou + + +def pairwise_ioa(boxes1: Boxes, boxes2: Boxes) -> torch.Tensor: + """ + Similar to :func:`pariwise_iou` but compute the IoA (intersection over boxes2 area). + + Args: + boxes1,boxes2 (Boxes): two `Boxes`. Contains N & M boxes, respectively. + + Returns: + Tensor: IoA, sized [N,M]. + """ + area2 = boxes2.area() # [M] + inter = pairwise_intersection(boxes1, boxes2) + + # handle empty boxes + ioa = torch.where( + inter > 0, inter / area2, torch.zeros(1, dtype=inter.dtype, device=inter.device) + ) + return ioa + + +def pairwise_point_box_distance(points: torch.Tensor, boxes: Boxes): + """ + Pairwise distance between N points and M boxes. The distance between a + point and a box is represented by the distance from the point to 4 edges + of the box. Distances are all positive when the point is inside the box. + + Args: + points: Nx2 coordinates. Each row is (x, y) + boxes: M boxes + + Returns: + Tensor: distances of size (N, M, 4). The 4 values are distances from + the point to the left, top, right, bottom of the box. + """ + x, y = points.unsqueeze(dim=2).unbind(dim=1) # (N, 1) + x0, y0, x1, y1 = boxes.tensor.unsqueeze(dim=0).unbind(dim=2) # (1, M) + return torch.stack([x - x0, y - y0, x1 - x, y1 - y], dim=2) + + +def matched_pairwise_iou(boxes1: Boxes, boxes2: Boxes) -> torch.Tensor: + """ + Compute pairwise intersection over union (IOU) of two sets of matched + boxes that have the same number of boxes. + Similar to :func:`pairwise_iou`, but computes only diagonal elements of the matrix. + + Args: + boxes1 (Boxes): bounding boxes, sized [N,4]. + boxes2 (Boxes): same length as boxes1 + Returns: + Tensor: iou, sized [N]. + """ + assert len(boxes1) == len( + boxes2 + ), "boxlists should have the same" "number of entries, got {}, {}".format( + len(boxes1), len(boxes2) + ) + area1 = boxes1.area() # [N] + area2 = boxes2.area() # [N] + box1, box2 = boxes1.tensor, boxes2.tensor + lt = torch.max(box1[:, :2], box2[:, :2]) # [N,2] + rb = torch.min(box1[:, 2:], box2[:, 2:]) # [N,2] + wh = (rb - lt).clamp(min=0) # [N,2] + inter = wh[:, 0] * wh[:, 1] # [N] + iou = inter / (area1 + area2 - inter) # [N] + return iou diff --git a/detectron2/detectron2/structures/image_list.py b/detectron2/detectron2/structures/image_list.py new file mode 100755 index 0000000..f78cae7 --- /dev/null +++ b/detectron2/detectron2/structures/image_list.py @@ -0,0 +1,129 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from __future__ import division +from typing import Any, Dict, List, Optional, Tuple +import torch +from torch import device +from torch.nn import functional as F + +from detectron2.layers.wrappers import move_device_like, shapes_to_tensor + + +class ImageList(object): + """ + Structure that holds a list of images (of possibly + varying sizes) as a single tensor. + This works by padding the images to the same size. + The original sizes of each image is stored in `image_sizes`. + + Attributes: + image_sizes (list[tuple[int, int]]): each tuple is (h, w). + During tracing, it becomes list[Tensor] instead. + """ + + def __init__(self, tensor: torch.Tensor, image_sizes: List[Tuple[int, int]]): + """ + Arguments: + tensor (Tensor): of shape (N, H, W) or (N, C_1, ..., C_K, H, W) where K >= 1 + image_sizes (list[tuple[int, int]]): Each tuple is (h, w). It can + be smaller than (H, W) due to padding. + """ + self.tensor = tensor + self.image_sizes = image_sizes + + def __len__(self) -> int: + return len(self.image_sizes) + + def __getitem__(self, idx) -> torch.Tensor: + """ + Access the individual image in its original size. + + Args: + idx: int or slice + + Returns: + Tensor: an image of shape (H, W) or (C_1, ..., C_K, H, W) where K >= 1 + """ + size = self.image_sizes[idx] + return self.tensor[idx, ..., : size[0], : size[1]] + + @torch.jit.unused + def to(self, *args: Any, **kwargs: Any) -> "ImageList": + cast_tensor = self.tensor.to(*args, **kwargs) + return ImageList(cast_tensor, self.image_sizes) + + @property + def device(self) -> device: + return self.tensor.device + + @staticmethod + def from_tensors( + tensors: List[torch.Tensor], + size_divisibility: int = 0, + pad_value: float = 0.0, + padding_constraints: Optional[Dict[str, int]] = None, + ) -> "ImageList": + """ + Args: + tensors: a tuple or list of `torch.Tensor`, each of shape (Hi, Wi) or + (C_1, ..., C_K, Hi, Wi) where K >= 1. The Tensors will be padded + to the same shape with `pad_value`. + size_divisibility (int): If `size_divisibility > 0`, add padding to ensure + the common height and width is divisible by `size_divisibility`. + This depends on the model and many models need a divisibility of 32. + pad_value (float): value to pad. + padding_constraints (optional[Dict]): If given, it would follow the format as + {"size_divisibility": int, "square_size": int}, where `size_divisibility` will + overwrite the above one if presented and `square_size` indicates the + square padding size if `square_size` > 0. + Returns: + an `ImageList`. + """ + assert len(tensors) > 0 + assert isinstance(tensors, (tuple, list)) + for t in tensors: + assert isinstance(t, torch.Tensor), type(t) + assert t.shape[:-2] == tensors[0].shape[:-2], t.shape + + image_sizes = [(im.shape[-2], im.shape[-1]) for im in tensors] + image_sizes_tensor = [shapes_to_tensor(x) for x in image_sizes] + max_size = torch.stack(image_sizes_tensor).max(0).values + + if padding_constraints is not None: + square_size = padding_constraints.get("square_size", 0) + if square_size > 0: + # pad to square. + max_size[0] = max_size[1] = square_size + if "size_divisibility" in padding_constraints: + size_divisibility = padding_constraints["size_divisibility"] + if size_divisibility > 1: + stride = size_divisibility + # the last two dims are H,W, both subject to divisibility requirement + max_size = (max_size + (stride - 1)).div(stride, rounding_mode="floor") * stride + + # handle weirdness of scripting and tracing ... + if torch.jit.is_scripting(): + max_size: List[int] = max_size.to(dtype=torch.long).tolist() + else: + if torch.jit.is_tracing(): + image_sizes = image_sizes_tensor + + if len(tensors) == 1: + # This seems slightly (2%) faster. + # TODO: check whether it's faster for multiple images as well + image_size = image_sizes[0] + padding_size = [0, max_size[-1] - image_size[1], 0, max_size[-2] - image_size[0]] + batched_imgs = F.pad(tensors[0], padding_size, value=pad_value).unsqueeze_(0) + else: + # max_size can be a tensor in tracing mode, therefore convert to list + batch_shape = [len(tensors)] + list(tensors[0].shape[:-2]) + list(max_size) + device = ( + None if torch.jit.is_scripting() else ("cpu" if torch.jit.is_tracing() else None) + ) + batched_imgs = tensors[0].new_full(batch_shape, pad_value, device=device) + batched_imgs = move_device_like(batched_imgs, tensors[0]) + for i, img in enumerate(tensors): + # Use `batched_imgs` directly instead of `img, pad_img = zip(tensors, batched_imgs)` + # Tracing mode cannot capture `copy_()` of temporary locals + batched_imgs[i, ..., : img.shape[-2], : img.shape[-1]].copy_(img) + + return ImageList(batched_imgs.contiguous(), image_sizes) diff --git a/detectron2/detectron2/structures/instances.py b/detectron2/detectron2/structures/instances.py new file mode 100755 index 0000000..c9579bc --- /dev/null +++ b/detectron2/detectron2/structures/instances.py @@ -0,0 +1,194 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import warnings +from typing import Any, Dict, List, Tuple, Union +import torch + + +class Instances: + """ + This class represents a list of instances in an image. + It stores the attributes of instances (e.g., boxes, masks, labels, scores) as "fields". + All fields must have the same ``__len__`` which is the number of instances. + + All other (non-field) attributes of this class are considered private: + they must start with '_' and are not modifiable by a user. + + Some basic usage: + + 1. Set/get/check a field: + + .. code-block:: python + + instances.gt_boxes = Boxes(...) + print(instances.pred_masks) # a tensor of shape (N, H, W) + print('gt_masks' in instances) + + 2. ``len(instances)`` returns the number of instances + 3. Indexing: ``instances[indices]`` will apply the indexing on all the fields + and returns a new :class:`Instances`. + Typically, ``indices`` is a integer vector of indices, + or a binary mask of length ``num_instances`` + + .. code-block:: python + + category_3_detections = instances[instances.pred_classes == 3] + confident_detections = instances[instances.scores > 0.9] + """ + + def __init__(self, image_size: Tuple[int, int], **kwargs: Any): + """ + Args: + image_size (height, width): the spatial size of the image. + kwargs: fields to add to this `Instances`. + """ + self._image_size = image_size + self._fields: Dict[str, Any] = {} + for k, v in kwargs.items(): + self.set(k, v) + + @property + def image_size(self) -> Tuple[int, int]: + """ + Returns: + tuple: height, width + """ + return self._image_size + + def __setattr__(self, name: str, val: Any) -> None: + if name.startswith("_"): + super().__setattr__(name, val) + else: + self.set(name, val) + + def __getattr__(self, name: str) -> Any: + if name == "_fields" or name not in self._fields: + raise AttributeError("Cannot find field '{}' in the given Instances!".format(name)) + return self._fields[name] + + def set(self, name: str, value: Any) -> None: + """ + Set the field named `name` to `value`. + The length of `value` must be the number of instances, + and must agree with other existing fields in this object. + """ + with warnings.catch_warnings(record=True): + data_len = len(value) + if len(self._fields): + assert ( + len(self) == data_len + ), "Adding a field of length {} to a Instances of length {}".format(data_len, len(self)) + self._fields[name] = value + + def has(self, name: str) -> bool: + """ + Returns: + bool: whether the field called `name` exists. + """ + return name in self._fields + + def remove(self, name: str) -> None: + """ + Remove the field called `name`. + """ + del self._fields[name] + + def get(self, name: str) -> Any: + """ + Returns the field called `name`. + """ + return self._fields[name] + + def get_fields(self) -> Dict[str, Any]: + """ + Returns: + dict: a dict which maps names (str) to data of the fields + + Modifying the returned dict will modify this instance. + """ + return self._fields + + # Tensor-like methods + def to(self, *args: Any, **kwargs: Any) -> "Instances": + """ + Returns: + Instances: all fields are called with a `to(device)`, if the field has this method. + """ + ret = Instances(self._image_size) + for k, v in self._fields.items(): + if hasattr(v, "to"): + v = v.to(*args, **kwargs) + ret.set(k, v) + return ret + + def __getitem__(self, item: Union[int, slice, torch.BoolTensor]) -> "Instances": + """ + Args: + item: an index-like object and will be used to index all the fields. + + Returns: + If `item` is a string, return the data in the corresponding field. + Otherwise, returns an `Instances` where all fields are indexed by `item`. + """ + if type(item) == int: + if item >= len(self) or item < -len(self): + raise IndexError("Instances index out of range!") + else: + item = slice(item, None, len(self)) + + ret = Instances(self._image_size) + for k, v in self._fields.items(): + ret.set(k, v[item]) + return ret + + def __len__(self) -> int: + for v in self._fields.values(): + # use __len__ because len() has to be int and is not friendly to tracing + return v.__len__() + raise NotImplementedError("Empty Instances does not support __len__!") + + def __iter__(self): + raise NotImplementedError("`Instances` object is not iterable!") + + @staticmethod + def cat(instance_lists: List["Instances"]) -> "Instances": + """ + Args: + instance_lists (list[Instances]) + + Returns: + Instances + """ + assert all(isinstance(i, Instances) for i in instance_lists) + assert len(instance_lists) > 0 + if len(instance_lists) == 1: + return instance_lists[0] + + image_size = instance_lists[0].image_size + if not isinstance(image_size, torch.Tensor): # could be a tensor in tracing + for i in instance_lists[1:]: + assert i.image_size == image_size + ret = Instances(image_size) + for k in instance_lists[0]._fields.keys(): + values = [i.get(k) for i in instance_lists] + v0 = values[0] + if isinstance(v0, torch.Tensor): + values = torch.cat(values, dim=0) + elif isinstance(v0, list): + values = list(itertools.chain(*values)) + elif hasattr(type(v0), "cat"): + values = type(v0).cat(values) + else: + raise ValueError("Unsupported type {} for concatenation".format(type(v0))) + ret.set(k, values) + return ret + + def __str__(self) -> str: + s = self.__class__.__name__ + "(" + s += "num_instances={}, ".format(len(self)) + s += "image_height={}, ".format(self._image_size[0]) + s += "image_width={}, ".format(self._image_size[1]) + s += "fields=[{}])".format(", ".join((f"{k}: {v}" for k, v in self._fields.items()))) + return s + + __repr__ = __str__ diff --git a/detectron2/detectron2/structures/keypoints.py b/detectron2/detectron2/structures/keypoints.py new file mode 100755 index 0000000..b93ebed --- /dev/null +++ b/detectron2/detectron2/structures/keypoints.py @@ -0,0 +1,235 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Any, List, Tuple, Union +import torch +from torch.nn import functional as F + + +class Keypoints: + """ + Stores keypoint **annotation** data. GT Instances have a `gt_keypoints` property + containing the x,y location and visibility flag of each keypoint. This tensor has shape + (N, K, 3) where N is the number of instances and K is the number of keypoints per instance. + + The visibility flag follows the COCO format and must be one of three integers: + + * v=0: not labeled (in which case x=y=0) + * v=1: labeled but not visible + * v=2: labeled and visible + """ + + def __init__(self, keypoints: Union[torch.Tensor, np.ndarray, List[List[float]]]): + """ + Arguments: + keypoints: A Tensor, numpy array, or list of the x, y, and visibility of each keypoint. + The shape should be (N, K, 3) where N is the number of + instances, and K is the number of keypoints per instance. + """ + device = keypoints.device if isinstance(keypoints, torch.Tensor) else torch.device("cpu") + keypoints = torch.as_tensor(keypoints, dtype=torch.float32, device=device) + assert keypoints.dim() == 3 and keypoints.shape[2] == 3, keypoints.shape + self.tensor = keypoints + + def __len__(self) -> int: + return self.tensor.size(0) + + def to(self, *args: Any, **kwargs: Any) -> "Keypoints": + return type(self)(self.tensor.to(*args, **kwargs)) + + @property + def device(self) -> torch.device: + return self.tensor.device + + def to_heatmap(self, boxes: torch.Tensor, heatmap_size: int) -> torch.Tensor: + """ + Convert keypoint annotations to a heatmap of one-hot labels for training, + as described in :paper:`Mask R-CNN`. + + Arguments: + boxes: Nx4 tensor, the boxes to draw the keypoints to + + Returns: + heatmaps: + A tensor of shape (N, K), each element is integer spatial label + in the range [0, heatmap_size**2 - 1] for each keypoint in the input. + valid: + A tensor of shape (N, K) containing whether each keypoint is in the roi or not. + """ + return _keypoints_to_heatmap(self.tensor, boxes, heatmap_size) + + def __getitem__(self, item: Union[int, slice, torch.BoolTensor]) -> "Keypoints": + """ + Create a new `Keypoints` by indexing on this `Keypoints`. + + The following usage are allowed: + + 1. `new_kpts = kpts[3]`: return a `Keypoints` which contains only one instance. + 2. `new_kpts = kpts[2:10]`: return a slice of key points. + 3. `new_kpts = kpts[vector]`, where vector is a torch.ByteTensor + with `length = len(kpts)`. Nonzero elements in the vector will be selected. + + Note that the returned Keypoints might share storage with this Keypoints, + subject to Pytorch's indexing semantics. + """ + if isinstance(item, int): + return Keypoints([self.tensor[item]]) + return Keypoints(self.tensor[item]) + + def __repr__(self) -> str: + s = self.__class__.__name__ + "(" + s += "num_instances={})".format(len(self.tensor)) + return s + + @staticmethod + def cat(keypoints_list: List["Keypoints"]) -> "Keypoints": + """ + Concatenates a list of Keypoints into a single Keypoints + + Arguments: + keypoints_list (list[Keypoints]) + + Returns: + Keypoints: the concatenated Keypoints + """ + assert isinstance(keypoints_list, (list, tuple)) + assert len(keypoints_list) > 0 + assert all(isinstance(keypoints, Keypoints) for keypoints in keypoints_list) + + cat_kpts = type(keypoints_list[0])( + torch.cat([kpts.tensor for kpts in keypoints_list], dim=0) + ) + return cat_kpts + + +# TODO make this nicer, this is a direct translation from C2 (but removing the inner loop) +def _keypoints_to_heatmap( + keypoints: torch.Tensor, rois: torch.Tensor, heatmap_size: int +) -> Tuple[torch.Tensor, torch.Tensor]: + """ + Encode keypoint locations into a target heatmap for use in SoftmaxWithLoss across space. + + Maps keypoints from the half-open interval [x1, x2) on continuous image coordinates to the + closed interval [0, heatmap_size - 1] on discrete image coordinates. We use the + continuous-discrete conversion from Heckbert 1990 ("What is the coordinate of a pixel?"): + d = floor(c) and c = d + 0.5, where d is a discrete coordinate and c is a continuous coordinate. + + Arguments: + keypoints: tensor of keypoint locations in of shape (N, K, 3). + rois: Nx4 tensor of rois in xyxy format + heatmap_size: integer side length of square heatmap. + + Returns: + heatmaps: A tensor of shape (N, K) containing an integer spatial label + in the range [0, heatmap_size**2 - 1] for each keypoint in the input. + valid: A tensor of shape (N, K) containing whether each keypoint is in + the roi or not. + """ + + if rois.numel() == 0: + return rois.new().long(), rois.new().long() + offset_x = rois[:, 0] + offset_y = rois[:, 1] + scale_x = heatmap_size / (rois[:, 2] - rois[:, 0]) + scale_y = heatmap_size / (rois[:, 3] - rois[:, 1]) + + offset_x = offset_x[:, None] + offset_y = offset_y[:, None] + scale_x = scale_x[:, None] + scale_y = scale_y[:, None] + + x = keypoints[..., 0] + y = keypoints[..., 1] + + x_boundary_inds = x == rois[:, 2][:, None] + y_boundary_inds = y == rois[:, 3][:, None] + + x = (x - offset_x) * scale_x + x = x.floor().long() + y = (y - offset_y) * scale_y + y = y.floor().long() + + x[x_boundary_inds] = heatmap_size - 1 + y[y_boundary_inds] = heatmap_size - 1 + + valid_loc = (x >= 0) & (y >= 0) & (x < heatmap_size) & (y < heatmap_size) + vis = keypoints[..., 2] > 0 + valid = (valid_loc & vis).long() + + lin_ind = y * heatmap_size + x + heatmaps = lin_ind * valid + + return heatmaps, valid + + +@torch.jit.script_if_tracing +def heatmaps_to_keypoints(maps: torch.Tensor, rois: torch.Tensor) -> torch.Tensor: + """ + Extract predicted keypoint locations from heatmaps. + + Args: + maps (Tensor): (#ROIs, #keypoints, POOL_H, POOL_W). The predicted heatmap of logits for + each ROI and each keypoint. + rois (Tensor): (#ROIs, 4). The box of each ROI. + + Returns: + Tensor of shape (#ROIs, #keypoints, 4) with the last dimension corresponding to + (x, y, logit, score) for each keypoint. + + When converting discrete pixel indices in an NxN image to a continuous keypoint coordinate, + we maintain consistency with :meth:`Keypoints.to_heatmap` by using the conversion from + Heckbert 1990: c = d + 0.5, where d is a discrete coordinate and c is a continuous coordinate. + """ + + offset_x = rois[:, 0] + offset_y = rois[:, 1] + + widths = (rois[:, 2] - rois[:, 0]).clamp(min=1) + heights = (rois[:, 3] - rois[:, 1]).clamp(min=1) + widths_ceil = widths.ceil() + heights_ceil = heights.ceil() + + num_rois, num_keypoints = maps.shape[:2] + xy_preds = maps.new_zeros(rois.shape[0], num_keypoints, 4) + + width_corrections = widths / widths_ceil + height_corrections = heights / heights_ceil + + keypoints_idx = torch.arange(num_keypoints, device=maps.device) + + for i in range(num_rois): + outsize = (int(heights_ceil[i]), int(widths_ceil[i])) + roi_map = F.interpolate(maps[[i]], size=outsize, mode="bicubic", align_corners=False) + + # Although semantically equivalent, `reshape` is used instead of `squeeze` due + # to limitation during ONNX export of `squeeze` in scripting mode + roi_map = roi_map.reshape(roi_map.shape[1:]) # keypoints x H x W + + # softmax over the spatial region + max_score, _ = roi_map.view(num_keypoints, -1).max(1) + max_score = max_score.view(num_keypoints, 1, 1) + tmp_full_resolution = (roi_map - max_score).exp_() + tmp_pool_resolution = (maps[i] - max_score).exp_() + # Produce scores over the region H x W, but normalize with POOL_H x POOL_W, + # so that the scores of objects of different absolute sizes will be more comparable + roi_map_scores = tmp_full_resolution / tmp_pool_resolution.sum((1, 2), keepdim=True) + + w = roi_map.shape[2] + pos = roi_map.view(num_keypoints, -1).argmax(1) + + x_int = pos % w + y_int = (pos - x_int) // w + + assert ( + roi_map_scores[keypoints_idx, y_int, x_int] + == roi_map_scores.view(num_keypoints, -1).max(1)[0] + ).all() + + x = (x_int.float() + 0.5) * width_corrections[i] + y = (y_int.float() + 0.5) * height_corrections[i] + + xy_preds[i, :, 0] = x + offset_x[i] + xy_preds[i, :, 1] = y + offset_y[i] + xy_preds[i, :, 2] = roi_map[keypoints_idx, y_int, x_int] + xy_preds[i, :, 3] = roi_map_scores[keypoints_idx, y_int, x_int] + + return xy_preds diff --git a/detectron2/detectron2/structures/masks.py b/detectron2/detectron2/structures/masks.py new file mode 100755 index 0000000..899ad8b --- /dev/null +++ b/detectron2/detectron2/structures/masks.py @@ -0,0 +1,534 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import itertools +import numpy as np +from typing import Any, Iterator, List, Union +import pycocotools.mask as mask_util +import torch +from torch import device + +from detectron2.layers.roi_align import ROIAlign +from detectron2.utils.memory import retry_if_cuda_oom + +from .boxes import Boxes + + +def polygon_area(x, y): + # Using the shoelace formula + # https://stackoverflow.com/questions/24467972/calculate-area-of-polygon-given-x-y-coordinates + return 0.5 * np.abs(np.dot(x, np.roll(y, 1)) - np.dot(y, np.roll(x, 1))) + + +def polygons_to_bitmask(polygons: List[np.ndarray], height: int, width: int) -> np.ndarray: + """ + Args: + polygons (list[ndarray]): each array has shape (Nx2,) + height, width (int) + + Returns: + ndarray: a bool mask of shape (height, width) + """ + if len(polygons) == 0: + # COCOAPI does not support empty polygons + return np.zeros((height, width)).astype(bool) + rles = mask_util.frPyObjects(polygons, height, width) + rle = mask_util.merge(rles) + return mask_util.decode(rle).astype(bool) + + +def rasterize_polygons_within_box( + polygons: List[np.ndarray], box: np.ndarray, mask_size: int +) -> torch.Tensor: + """ + Rasterize the polygons into a mask image and + crop the mask content in the given box. + The cropped mask is resized to (mask_size, mask_size). + + This function is used when generating training targets for mask head in Mask R-CNN. + Given original ground-truth masks for an image, new ground-truth mask + training targets in the size of `mask_size x mask_size` + must be provided for each predicted box. This function will be called to + produce such targets. + + Args: + polygons (list[ndarray[float]]): a list of polygons, which represents an instance. + box: 4-element numpy array + mask_size (int): + + Returns: + Tensor: BoolTensor of shape (mask_size, mask_size) + """ + # 1. Shift the polygons w.r.t the boxes + w, h = box[2] - box[0], box[3] - box[1] + + polygons = copy.deepcopy(polygons) + for p in polygons: + p[0::2] = p[0::2] - box[0] + p[1::2] = p[1::2] - box[1] + + # 2. Rescale the polygons to the new box size + # max() to avoid division by small number + ratio_h = mask_size / max(h, 0.1) + ratio_w = mask_size / max(w, 0.1) + + if ratio_h == ratio_w: + for p in polygons: + p *= ratio_h + else: + for p in polygons: + p[0::2] *= ratio_w + p[1::2] *= ratio_h + + # 3. Rasterize the polygons with coco api + mask = polygons_to_bitmask(polygons, mask_size, mask_size) + mask = torch.from_numpy(mask) + return mask + + +class BitMasks: + """ + This class stores the segmentation masks for all objects in one image, in + the form of bitmaps. + + Attributes: + tensor: bool Tensor of N,H,W, representing N instances in the image. + """ + + def __init__(self, tensor: Union[torch.Tensor, np.ndarray]): + """ + Args: + tensor: bool Tensor of N,H,W, representing N instances in the image. + """ + if isinstance(tensor, torch.Tensor): + tensor = tensor.to(torch.bool) + else: + tensor = torch.as_tensor(tensor, dtype=torch.bool, device=torch.device("cpu")) + assert tensor.dim() == 3, tensor.size() + self.image_size = tensor.shape[1:] + self.tensor = tensor + + @torch.jit.unused + def to(self, *args: Any, **kwargs: Any) -> "BitMasks": + return BitMasks(self.tensor.to(*args, **kwargs)) + + @property + def device(self) -> torch.device: + return self.tensor.device + + @torch.jit.unused + def __getitem__(self, item: Union[int, slice, torch.BoolTensor]) -> "BitMasks": + """ + Returns: + BitMasks: Create a new :class:`BitMasks` by indexing. + + The following usage are allowed: + + 1. `new_masks = masks[3]`: return a `BitMasks` which contains only one mask. + 2. `new_masks = masks[2:10]`: return a slice of masks. + 3. `new_masks = masks[vector]`, where vector is a torch.BoolTensor + with `length = len(masks)`. Nonzero elements in the vector will be selected. + + Note that the returned object might share storage with this object, + subject to Pytorch's indexing semantics. + """ + if isinstance(item, int): + return BitMasks(self.tensor[item].unsqueeze(0)) + m = self.tensor[item] + assert m.dim() == 3, "Indexing on BitMasks with {} returns a tensor with shape {}!".format( + item, m.shape + ) + return BitMasks(m) + + @torch.jit.unused + def __iter__(self) -> torch.Tensor: + yield from self.tensor + + @torch.jit.unused + def __repr__(self) -> str: + s = self.__class__.__name__ + "(" + s += "num_instances={})".format(len(self.tensor)) + return s + + def __len__(self) -> int: + return self.tensor.shape[0] + + def nonempty(self) -> torch.Tensor: + """ + Find masks that are non-empty. + + Returns: + Tensor: a BoolTensor which represents + whether each mask is empty (False) or non-empty (True). + """ + return self.tensor.flatten(1).any(dim=1) + + @staticmethod + def from_polygon_masks( + polygon_masks: Union["PolygonMasks", List[List[np.ndarray]]], height: int, width: int + ) -> "BitMasks": + """ + Args: + polygon_masks (list[list[ndarray]] or PolygonMasks) + height, width (int) + """ + if isinstance(polygon_masks, PolygonMasks): + polygon_masks = polygon_masks.polygons + masks = [polygons_to_bitmask(p, height, width) for p in polygon_masks] + if len(masks): + return BitMasks(torch.stack([torch.from_numpy(x) for x in masks])) + else: + return BitMasks(torch.empty(0, height, width, dtype=torch.bool)) + + @staticmethod + def from_roi_masks(roi_masks: "ROIMasks", height: int, width: int) -> "BitMasks": + """ + Args: + roi_masks: + height, width (int): + """ + return roi_masks.to_bitmasks(height, width) + + def crop_and_resize(self, boxes: torch.Tensor, mask_size: int) -> torch.Tensor: + """ + Crop each bitmask by the given box, and resize results to (mask_size, mask_size). + This can be used to prepare training targets for Mask R-CNN. + It has less reconstruction error compared to rasterization with polygons. + However we observe no difference in accuracy, + but BitMasks requires more memory to store all the masks. + + Args: + boxes (Tensor): Nx4 tensor storing the boxes for each mask + mask_size (int): the size of the rasterized mask. + + Returns: + Tensor: + A bool tensor of shape (N, mask_size, mask_size), where + N is the number of predicted boxes for this image. + """ + assert len(boxes) == len(self), "{} != {}".format(len(boxes), len(self)) + device = self.tensor.device + + batch_inds = torch.arange(len(boxes), device=device).to(dtype=boxes.dtype)[:, None] + rois = torch.cat([batch_inds, boxes], dim=1) # Nx5 + + bit_masks = self.tensor.to(dtype=torch.float32) + rois = rois.to(device=device) + output = ( + ROIAlign((mask_size, mask_size), 1.0, 0, aligned=True) + .forward(bit_masks[:, None, :, :], rois) + .squeeze(1) + ) + output = output >= 0.5 + return output + + def get_bounding_boxes(self) -> Boxes: + """ + Returns: + Boxes: tight bounding boxes around bitmasks. + If a mask is empty, it's bounding box will be all zero. + """ + boxes = torch.zeros(self.tensor.shape[0], 4, dtype=torch.float32) + x_any = torch.any(self.tensor, dim=1) + y_any = torch.any(self.tensor, dim=2) + for idx in range(self.tensor.shape[0]): + x = torch.where(x_any[idx, :])[0] + y = torch.where(y_any[idx, :])[0] + if len(x) > 0 and len(y) > 0: + boxes[idx, :] = torch.as_tensor( + [x[0], y[0], x[-1] + 1, y[-1] + 1], dtype=torch.float32 + ) + return Boxes(boxes) + + @staticmethod + def cat(bitmasks_list: List["BitMasks"]) -> "BitMasks": + """ + Concatenates a list of BitMasks into a single BitMasks + + Arguments: + bitmasks_list (list[BitMasks]) + + Returns: + BitMasks: the concatenated BitMasks + """ + assert isinstance(bitmasks_list, (list, tuple)) + assert len(bitmasks_list) > 0 + assert all(isinstance(bitmask, BitMasks) for bitmask in bitmasks_list) + + cat_bitmasks = type(bitmasks_list[0])(torch.cat([bm.tensor for bm in bitmasks_list], dim=0)) + return cat_bitmasks + + +class PolygonMasks: + """ + This class stores the segmentation masks for all objects in one image, in the form of polygons. + + Attributes: + polygons: list[list[ndarray]]. Each ndarray is a float64 vector representing a polygon. + """ + + def __init__(self, polygons: List[List[Union[torch.Tensor, np.ndarray]]]): + """ + Arguments: + polygons (list[list[np.ndarray]]): The first + level of the list correspond to individual instances, + the second level to all the polygons that compose the + instance, and the third level to the polygon coordinates. + The third level array should have the format of + [x0, y0, x1, y1, ..., xn, yn] (n >= 3). + """ + if not isinstance(polygons, list): + raise ValueError( + "Cannot create PolygonMasks: Expect a list of list of polygons per image. " + "Got '{}' instead.".format(type(polygons)) + ) + + def _make_array(t: Union[torch.Tensor, np.ndarray]) -> np.ndarray: + # Use float64 for higher precision, because why not? + # Always put polygons on CPU (self.to is a no-op) since they + # are supposed to be small tensors. + # May need to change this assumption if GPU placement becomes useful + if isinstance(t, torch.Tensor): + t = t.cpu().numpy() + return np.asarray(t).astype("float64") + + def process_polygons( + polygons_per_instance: List[Union[torch.Tensor, np.ndarray]] + ) -> List[np.ndarray]: + if not isinstance(polygons_per_instance, list): + raise ValueError( + "Cannot create polygons: Expect a list of polygons per instance. " + "Got '{}' instead.".format(type(polygons_per_instance)) + ) + # transform each polygon to a numpy array + polygons_per_instance = [_make_array(p) for p in polygons_per_instance] + for polygon in polygons_per_instance: + if len(polygon) % 2 != 0 or len(polygon) < 6: + raise ValueError(f"Cannot create a polygon from {len(polygon)} coordinates.") + return polygons_per_instance + + self.polygons: List[List[np.ndarray]] = [ + process_polygons(polygons_per_instance) for polygons_per_instance in polygons + ] + + def to(self, *args: Any, **kwargs: Any) -> "PolygonMasks": + return self + + @property + def device(self) -> torch.device: + return torch.device("cpu") + + def get_bounding_boxes(self) -> Boxes: + """ + Returns: + Boxes: tight bounding boxes around polygon masks. + """ + boxes = torch.zeros(len(self.polygons), 4, dtype=torch.float32) + for idx, polygons_per_instance in enumerate(self.polygons): + minxy = torch.as_tensor([float("inf"), float("inf")], dtype=torch.float32) + maxxy = torch.zeros(2, dtype=torch.float32) + for polygon in polygons_per_instance: + coords = torch.from_numpy(polygon).view(-1, 2).to(dtype=torch.float32) + minxy = torch.min(minxy, torch.min(coords, dim=0).values) + maxxy = torch.max(maxxy, torch.max(coords, dim=0).values) + boxes[idx, :2] = minxy + boxes[idx, 2:] = maxxy + return Boxes(boxes) + + def nonempty(self) -> torch.Tensor: + """ + Find masks that are non-empty. + + Returns: + Tensor: + a BoolTensor which represents whether each mask is empty (False) or not (True). + """ + keep = [1 if len(polygon) > 0 else 0 for polygon in self.polygons] + return torch.from_numpy(np.asarray(keep, dtype=bool)) + + def __getitem__(self, item: Union[int, slice, List[int], torch.BoolTensor]) -> "PolygonMasks": + """ + Support indexing over the instances and return a `PolygonMasks` object. + `item` can be: + + 1. An integer. It will return an object with only one instance. + 2. A slice. It will return an object with the selected instances. + 3. A list[int]. It will return an object with the selected instances, + correpsonding to the indices in the list. + 4. A vector mask of type BoolTensor, whose length is num_instances. + It will return an object with the instances whose mask is nonzero. + """ + if isinstance(item, int): + selected_polygons = [self.polygons[item]] + elif isinstance(item, slice): + selected_polygons = self.polygons[item] + elif isinstance(item, list): + selected_polygons = [self.polygons[i] for i in item] + elif isinstance(item, torch.Tensor): + # Polygons is a list, so we have to move the indices back to CPU. + if item.dtype == torch.bool: + assert item.dim() == 1, item.shape + item = item.nonzero().squeeze(1).cpu().numpy().tolist() + elif item.dtype in [torch.int32, torch.int64]: + item = item.cpu().numpy().tolist() + else: + raise ValueError("Unsupported tensor dtype={} for indexing!".format(item.dtype)) + selected_polygons = [self.polygons[i] for i in item] + return PolygonMasks(selected_polygons) + + def __iter__(self) -> Iterator[List[np.ndarray]]: + """ + Yields: + list[ndarray]: the polygons for one instance. + Each Tensor is a float64 vector representing a polygon. + """ + return iter(self.polygons) + + def __repr__(self) -> str: + s = self.__class__.__name__ + "(" + s += "num_instances={})".format(len(self.polygons)) + return s + + def __len__(self) -> int: + return len(self.polygons) + + def crop_and_resize(self, boxes: torch.Tensor, mask_size: int) -> torch.Tensor: + """ + Crop each mask by the given box, and resize results to (mask_size, mask_size). + This can be used to prepare training targets for Mask R-CNN. + + Args: + boxes (Tensor): Nx4 tensor storing the boxes for each mask + mask_size (int): the size of the rasterized mask. + + Returns: + Tensor: A bool tensor of shape (N, mask_size, mask_size), where + N is the number of predicted boxes for this image. + """ + assert len(boxes) == len(self), "{} != {}".format(len(boxes), len(self)) + + device = boxes.device + # Put boxes on the CPU, as the polygon representation is not efficient GPU-wise + # (several small tensors for representing a single instance mask) + boxes = boxes.to(torch.device("cpu")) + + results = [ + rasterize_polygons_within_box(poly, box.numpy(), mask_size) + for poly, box in zip(self.polygons, boxes) + ] + """ + poly: list[list[float]], the polygons for one instance + box: a tensor of shape (4,) + """ + if len(results) == 0: + return torch.empty(0, mask_size, mask_size, dtype=torch.bool, device=device) + return torch.stack(results, dim=0).to(device=device) + + def area(self): + """ + Computes area of the mask. + Only works with Polygons, using the shoelace formula: + https://stackoverflow.com/questions/24467972/calculate-area-of-polygon-given-x-y-coordinates + + Returns: + Tensor: a vector, area for each instance + """ + + area = [] + for polygons_per_instance in self.polygons: + area_per_instance = 0 + for p in polygons_per_instance: + area_per_instance += polygon_area(p[0::2], p[1::2]) + area.append(area_per_instance) + + return torch.tensor(area) + + @staticmethod + def cat(polymasks_list: List["PolygonMasks"]) -> "PolygonMasks": + """ + Concatenates a list of PolygonMasks into a single PolygonMasks + + Arguments: + polymasks_list (list[PolygonMasks]) + + Returns: + PolygonMasks: the concatenated PolygonMasks + """ + assert isinstance(polymasks_list, (list, tuple)) + assert len(polymasks_list) > 0 + assert all(isinstance(polymask, PolygonMasks) for polymask in polymasks_list) + + cat_polymasks = type(polymasks_list[0])( + list(itertools.chain.from_iterable(pm.polygons for pm in polymasks_list)) + ) + return cat_polymasks + + +class ROIMasks: + """ + Represent masks by N smaller masks defined in some ROIs. Once ROI boxes are given, + full-image bitmask can be obtained by "pasting" the mask on the region defined + by the corresponding ROI box. + """ + + def __init__(self, tensor: torch.Tensor): + """ + Args: + tensor: (N, M, M) mask tensor that defines the mask within each ROI. + """ + if tensor.dim() != 3: + raise ValueError("ROIMasks must take a masks of 3 dimension.") + self.tensor = tensor + + def to(self, device: torch.device) -> "ROIMasks": + return ROIMasks(self.tensor.to(device)) + + @property + def device(self) -> device: + return self.tensor.device + + def __len__(self): + return self.tensor.shape[0] + + def __getitem__(self, item) -> "ROIMasks": + """ + Returns: + ROIMasks: Create a new :class:`ROIMasks` by indexing. + + The following usage are allowed: + + 1. `new_masks = masks[2:10]`: return a slice of masks. + 2. `new_masks = masks[vector]`, where vector is a torch.BoolTensor + with `length = len(masks)`. Nonzero elements in the vector will be selected. + + Note that the returned object might share storage with this object, + subject to Pytorch's indexing semantics. + """ + t = self.tensor[item] + if t.dim() != 3: + raise ValueError( + f"Indexing on ROIMasks with {item} returns a tensor with shape {t.shape}!" + ) + return ROIMasks(t) + + @torch.jit.unused + def __repr__(self) -> str: + s = self.__class__.__name__ + "(" + s += "num_instances={})".format(len(self.tensor)) + return s + + @torch.jit.unused + def to_bitmasks(self, boxes: torch.Tensor, height, width, threshold=0.5): + """ + Args: see documentation of :func:`paste_masks_in_image`. + """ + from detectron2.layers.mask_ops import paste_masks_in_image, _paste_masks_tensor_shape + + if torch.jit.is_tracing(): + if isinstance(height, torch.Tensor): + paste_func = _paste_masks_tensor_shape + else: + paste_func = paste_masks_in_image + else: + paste_func = retry_if_cuda_oom(paste_masks_in_image) + bitmasks = paste_func(self.tensor, boxes.tensor, (height, width), threshold=threshold) + return BitMasks(bitmasks) diff --git a/detectron2/detectron2/structures/rotated_boxes.py b/detectron2/detectron2/structures/rotated_boxes.py new file mode 100755 index 0000000..c842b99 --- /dev/null +++ b/detectron2/detectron2/structures/rotated_boxes.py @@ -0,0 +1,505 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +from typing import List, Tuple +import torch + +from detectron2.layers.rotated_boxes import pairwise_iou_rotated + +from .boxes import Boxes + + +class RotatedBoxes(Boxes): + """ + This structure stores a list of rotated boxes as a Nx5 torch.Tensor. + It supports some common methods about boxes + (`area`, `clip`, `nonempty`, etc), + and also behaves like a Tensor + (support indexing, `to(device)`, `.device`, and iteration over all boxes) + """ + + def __init__(self, tensor: torch.Tensor): + """ + Args: + tensor (Tensor[float]): a Nx5 matrix. Each row is + (x_center, y_center, width, height, angle), + in which angle is represented in degrees. + While there's no strict range restriction for it, + the recommended principal range is between [-180, 180) degrees. + + Assume we have a horizontal box B = (x_center, y_center, width, height), + where width is along the x-axis and height is along the y-axis. + The rotated box B_rot (x_center, y_center, width, height, angle) + can be seen as: + + 1. When angle == 0: + B_rot == B + 2. When angle > 0: + B_rot is obtained by rotating B w.r.t its center by :math:`|angle|` degrees CCW; + 3. When angle < 0: + B_rot is obtained by rotating B w.r.t its center by :math:`|angle|` degrees CW. + + Mathematically, since the right-handed coordinate system for image space + is (y, x), where y is top->down and x is left->right, the 4 vertices of the + rotated rectangle :math:`(yr_i, xr_i)` (i = 1, 2, 3, 4) can be obtained from + the vertices of the horizontal rectangle :math:`(y_i, x_i)` (i = 1, 2, 3, 4) + in the following way (:math:`\\theta = angle*\\pi/180` is the angle in radians, + :math:`(y_c, x_c)` is the center of the rectangle): + + .. math:: + + yr_i = \\cos(\\theta) (y_i - y_c) - \\sin(\\theta) (x_i - x_c) + y_c, + + xr_i = \\sin(\\theta) (y_i - y_c) + \\cos(\\theta) (x_i - x_c) + x_c, + + which is the standard rigid-body rotation transformation. + + Intuitively, the angle is + (1) the rotation angle from y-axis in image space + to the height vector (top->down in the box's local coordinate system) + of the box in CCW, and + (2) the rotation angle from x-axis in image space + to the width vector (left->right in the box's local coordinate system) + of the box in CCW. + + More intuitively, consider the following horizontal box ABCD represented + in (x1, y1, x2, y2): (3, 2, 7, 4), + covering the [3, 7] x [2, 4] region of the continuous coordinate system + which looks like this: + + .. code:: none + + O--------> x + | + | A---B + | | | + | D---C + | + v y + + Note that each capital letter represents one 0-dimensional geometric point + instead of a 'square pixel' here. + + In the example above, using (x, y) to represent a point we have: + + .. math:: + + O = (0, 0), A = (3, 2), B = (7, 2), C = (7, 4), D = (3, 4) + + We name vector AB = vector DC as the width vector in box's local coordinate system, and + vector AD = vector BC as the height vector in box's local coordinate system. Initially, + when angle = 0 degree, they're aligned with the positive directions of x-axis and y-axis + in the image space, respectively. + + For better illustration, we denote the center of the box as E, + + .. code:: none + + O--------> x + | + | A---B + | | E | + | D---C + | + v y + + where the center E = ((3+7)/2, (2+4)/2) = (5, 3). + + Also, + + .. math:: + + width = |AB| = |CD| = 7 - 3 = 4, + height = |AD| = |BC| = 4 - 2 = 2. + + Therefore, the corresponding representation for the same shape in rotated box in + (x_center, y_center, width, height, angle) format is: + + (5, 3, 4, 2, 0), + + Now, let's consider (5, 3, 4, 2, 90), which is rotated by 90 degrees + CCW (counter-clockwise) by definition. It looks like this: + + .. code:: none + + O--------> x + | B-C + | | | + | |E| + | | | + | A-D + v y + + The center E is still located at the same point (5, 3), while the vertices + ABCD are rotated by 90 degrees CCW with regard to E: + A = (4, 5), B = (4, 1), C = (6, 1), D = (6, 5) + + Here, 90 degrees can be seen as the CCW angle to rotate from y-axis to + vector AD or vector BC (the top->down height vector in box's local coordinate system), + or the CCW angle to rotate from x-axis to vector AB or vector DC (the left->right + width vector in box's local coordinate system). + + .. math:: + + width = |AB| = |CD| = 5 - 1 = 4, + height = |AD| = |BC| = 6 - 4 = 2. + + Next, how about (5, 3, 4, 2, -90), which is rotated by 90 degrees CW (clockwise) + by definition? It looks like this: + + .. code:: none + + O--------> x + | D-A + | | | + | |E| + | | | + | C-B + v y + + The center E is still located at the same point (5, 3), while the vertices + ABCD are rotated by 90 degrees CW with regard to E: + A = (6, 1), B = (6, 5), C = (4, 5), D = (4, 1) + + .. math:: + + width = |AB| = |CD| = 5 - 1 = 4, + height = |AD| = |BC| = 6 - 4 = 2. + + This covers exactly the same region as (5, 3, 4, 2, 90) does, and their IoU + will be 1. However, these two will generate different RoI Pooling results and + should not be treated as an identical box. + + On the other hand, it's easy to see that (X, Y, W, H, A) is identical to + (X, Y, W, H, A+360N), for any integer N. For example (5, 3, 4, 2, 270) would be + identical to (5, 3, 4, 2, -90), because rotating the shape 270 degrees CCW is + equivalent to rotating the same shape 90 degrees CW. + + We could rotate further to get (5, 3, 4, 2, 180), or (5, 3, 4, 2, -180): + + .. code:: none + + O--------> x + | + | C---D + | | E | + | B---A + | + v y + + .. math:: + + A = (7, 4), B = (3, 4), C = (3, 2), D = (7, 2), + + width = |AB| = |CD| = 7 - 3 = 4, + height = |AD| = |BC| = 4 - 2 = 2. + + Finally, this is a very inaccurate (heavily quantized) illustration of + how (5, 3, 4, 2, 60) looks like in case anyone wonders: + + .. code:: none + + O--------> x + | B\ + | / C + | /E / + | A / + | `D + v y + + It's still a rectangle with center of (5, 3), width of 4 and height of 2, + but its angle (and thus orientation) is somewhere between + (5, 3, 4, 2, 0) and (5, 3, 4, 2, 90). + """ + device = tensor.device if isinstance(tensor, torch.Tensor) else torch.device("cpu") + tensor = torch.as_tensor(tensor, dtype=torch.float32, device=device) + if tensor.numel() == 0: + # Use reshape, so we don't end up creating a new tensor that does not depend on + # the inputs (and consequently confuses jit) + tensor = tensor.reshape((0, 5)).to(dtype=torch.float32, device=device) + assert tensor.dim() == 2 and tensor.size(-1) == 5, tensor.size() + + self.tensor = tensor + + def clone(self) -> "RotatedBoxes": + """ + Clone the RotatedBoxes. + + Returns: + RotatedBoxes + """ + return RotatedBoxes(self.tensor.clone()) + + def to(self, device: torch.device): + # Boxes are assumed float32 and does not support to(dtype) + return RotatedBoxes(self.tensor.to(device=device)) + + def area(self) -> torch.Tensor: + """ + Computes the area of all the boxes. + + Returns: + torch.Tensor: a vector with areas of each box. + """ + box = self.tensor + area = box[:, 2] * box[:, 3] + return area + + # Avoid in-place operations so that we can torchscript; NOTE: this creates a new tensor + def normalize_angles(self) -> None: + """ + Restrict angles to the range of [-180, 180) degrees + """ + angle_tensor = (self.tensor[:, 4] + 180.0) % 360.0 - 180.0 + self.tensor = torch.cat((self.tensor[:, :4], angle_tensor[:, None]), dim=1) + + def clip(self, box_size: Tuple[int, int], clip_angle_threshold: float = 1.0) -> None: + """ + Clip (in place) the boxes by limiting x coordinates to the range [0, width] + and y coordinates to the range [0, height]. + + For RRPN: + Only clip boxes that are almost horizontal with a tolerance of + clip_angle_threshold to maintain backward compatibility. + + Rotated boxes beyond this threshold are not clipped for two reasons: + + 1. There are potentially multiple ways to clip a rotated box to make it + fit within the image. + 2. It's tricky to make the entire rectangular box fit within the image + and still be able to not leave out pixels of interest. + + Therefore we rely on ops like RoIAlignRotated to safely handle this. + + Args: + box_size (height, width): The clipping box's size. + clip_angle_threshold: + Iff. abs(normalized(angle)) <= clip_angle_threshold (in degrees), + we do the clipping as horizontal boxes. + """ + h, w = box_size + + # normalize angles to be within (-180, 180] degrees + self.normalize_angles() + + idx = torch.where(torch.abs(self.tensor[:, 4]) <= clip_angle_threshold)[0] + + # convert to (x1, y1, x2, y2) + x1 = self.tensor[idx, 0] - self.tensor[idx, 2] / 2.0 + y1 = self.tensor[idx, 1] - self.tensor[idx, 3] / 2.0 + x2 = self.tensor[idx, 0] + self.tensor[idx, 2] / 2.0 + y2 = self.tensor[idx, 1] + self.tensor[idx, 3] / 2.0 + + # clip + x1.clamp_(min=0, max=w) + y1.clamp_(min=0, max=h) + x2.clamp_(min=0, max=w) + y2.clamp_(min=0, max=h) + + # convert back to (xc, yc, w, h) + self.tensor[idx, 0] = (x1 + x2) / 2.0 + self.tensor[idx, 1] = (y1 + y2) / 2.0 + # make sure widths and heights do not increase due to numerical errors + self.tensor[idx, 2] = torch.min(self.tensor[idx, 2], x2 - x1) + self.tensor[idx, 3] = torch.min(self.tensor[idx, 3], y2 - y1) + + def nonempty(self, threshold: float = 0.0) -> torch.Tensor: + """ + Find boxes that are non-empty. + A box is considered empty, if either of its side is no larger than threshold. + + Returns: + Tensor: a binary vector which represents + whether each box is empty (False) or non-empty (True). + """ + box = self.tensor + widths = box[:, 2] + heights = box[:, 3] + keep = (widths > threshold) & (heights > threshold) + return keep + + def __getitem__(self, item) -> "RotatedBoxes": + """ + Returns: + RotatedBoxes: Create a new :class:`RotatedBoxes` by indexing. + + The following usage are allowed: + + 1. `new_boxes = boxes[3]`: return a `RotatedBoxes` which contains only one box. + 2. `new_boxes = boxes[2:10]`: return a slice of boxes. + 3. `new_boxes = boxes[vector]`, where vector is a torch.ByteTensor + with `length = len(boxes)`. Nonzero elements in the vector will be selected. + + Note that the returned RotatedBoxes might share storage with this RotatedBoxes, + subject to Pytorch's indexing semantics. + """ + if isinstance(item, int): + return RotatedBoxes(self.tensor[item].view(1, -1)) + b = self.tensor[item] + assert b.dim() == 2, "Indexing on RotatedBoxes with {} failed to return a matrix!".format( + item + ) + return RotatedBoxes(b) + + def __len__(self) -> int: + return self.tensor.shape[0] + + def __repr__(self) -> str: + return "RotatedBoxes(" + str(self.tensor) + ")" + + def inside_box(self, box_size: Tuple[int, int], boundary_threshold: int = 0) -> torch.Tensor: + """ + Args: + box_size (height, width): Size of the reference box covering + [0, width] x [0, height] + boundary_threshold (int): Boxes that extend beyond the reference box + boundary by more than boundary_threshold are considered "outside". + + For RRPN, it might not be necessary to call this function since it's common + for rotated box to extend to outside of the image boundaries + (the clip function only clips the near-horizontal boxes) + + Returns: + a binary vector, indicating whether each box is inside the reference box. + """ + height, width = box_size + + cnt_x = self.tensor[..., 0] + cnt_y = self.tensor[..., 1] + half_w = self.tensor[..., 2] / 2.0 + half_h = self.tensor[..., 3] / 2.0 + a = self.tensor[..., 4] + c = torch.abs(torch.cos(a * math.pi / 180.0)) + s = torch.abs(torch.sin(a * math.pi / 180.0)) + # This basically computes the horizontal bounding rectangle of the rotated box + max_rect_dx = c * half_w + s * half_h + max_rect_dy = c * half_h + s * half_w + + inds_inside = ( + (cnt_x - max_rect_dx >= -boundary_threshold) + & (cnt_y - max_rect_dy >= -boundary_threshold) + & (cnt_x + max_rect_dx < width + boundary_threshold) + & (cnt_y + max_rect_dy < height + boundary_threshold) + ) + + return inds_inside + + def get_centers(self) -> torch.Tensor: + """ + Returns: + The box centers in a Nx2 array of (x, y). + """ + return self.tensor[:, :2] + + def scale(self, scale_x: float, scale_y: float) -> None: + """ + Scale the rotated box with horizontal and vertical scaling factors + Note: when scale_factor_x != scale_factor_y, + the rotated box does not preserve the rectangular shape when the angle + is not a multiple of 90 degrees under resize transformation. + Instead, the shape is a parallelogram (that has skew) + Here we make an approximation by fitting a rotated rectangle to the parallelogram. + """ + self.tensor[:, 0] *= scale_x + self.tensor[:, 1] *= scale_y + theta = self.tensor[:, 4] * math.pi / 180.0 + c = torch.cos(theta) + s = torch.sin(theta) + + # In image space, y is top->down and x is left->right + # Consider the local coordintate system for the rotated box, + # where the box center is located at (0, 0), and the four vertices ABCD are + # A(-w / 2, -h / 2), B(w / 2, -h / 2), C(w / 2, h / 2), D(-w / 2, h / 2) + # the midpoint of the left edge AD of the rotated box E is: + # E = (A+D)/2 = (-w / 2, 0) + # the midpoint of the top edge AB of the rotated box F is: + # F(0, -h / 2) + # To get the old coordinates in the global system, apply the rotation transformation + # (Note: the right-handed coordinate system for image space is yOx): + # (old_x, old_y) = (s * y + c * x, c * y - s * x) + # E(old) = (s * 0 + c * (-w/2), c * 0 - s * (-w/2)) = (-c * w / 2, s * w / 2) + # F(old) = (s * (-h / 2) + c * 0, c * (-h / 2) - s * 0) = (-s * h / 2, -c * h / 2) + # After applying the scaling factor (sfx, sfy): + # E(new) = (-sfx * c * w / 2, sfy * s * w / 2) + # F(new) = (-sfx * s * h / 2, -sfy * c * h / 2) + # The new width after scaling tranformation becomes: + + # w(new) = |E(new) - O| * 2 + # = sqrt[(sfx * c * w / 2)^2 + (sfy * s * w / 2)^2] * 2 + # = sqrt[(sfx * c)^2 + (sfy * s)^2] * w + # i.e., scale_factor_w = sqrt[(sfx * c)^2 + (sfy * s)^2] + # + # For example, + # when angle = 0 or 180, |c| = 1, s = 0, scale_factor_w == scale_factor_x; + # when |angle| = 90, c = 0, |s| = 1, scale_factor_w == scale_factor_y + self.tensor[:, 2] *= torch.sqrt((scale_x * c) ** 2 + (scale_y * s) ** 2) + + # h(new) = |F(new) - O| * 2 + # = sqrt[(sfx * s * h / 2)^2 + (sfy * c * h / 2)^2] * 2 + # = sqrt[(sfx * s)^2 + (sfy * c)^2] * h + # i.e., scale_factor_h = sqrt[(sfx * s)^2 + (sfy * c)^2] + # + # For example, + # when angle = 0 or 180, |c| = 1, s = 0, scale_factor_h == scale_factor_y; + # when |angle| = 90, c = 0, |s| = 1, scale_factor_h == scale_factor_x + self.tensor[:, 3] *= torch.sqrt((scale_x * s) ** 2 + (scale_y * c) ** 2) + + # The angle is the rotation angle from y-axis in image space to the height + # vector (top->down in the box's local coordinate system) of the box in CCW. + # + # angle(new) = angle_yOx(O - F(new)) + # = angle_yOx( (sfx * s * h / 2, sfy * c * h / 2) ) + # = atan2(sfx * s * h / 2, sfy * c * h / 2) + # = atan2(sfx * s, sfy * c) + # + # For example, + # when sfx == sfy, angle(new) == atan2(s, c) == angle(old) + self.tensor[:, 4] = torch.atan2(scale_x * s, scale_y * c) * 180 / math.pi + + @classmethod + def cat(cls, boxes_list: List["RotatedBoxes"]) -> "RotatedBoxes": + """ + Concatenates a list of RotatedBoxes into a single RotatedBoxes + + Arguments: + boxes_list (list[RotatedBoxes]) + + Returns: + RotatedBoxes: the concatenated RotatedBoxes + """ + assert isinstance(boxes_list, (list, tuple)) + if len(boxes_list) == 0: + return cls(torch.empty(0)) + assert all([isinstance(box, RotatedBoxes) for box in boxes_list]) + + # use torch.cat (v.s. layers.cat) so the returned boxes never share storage with input + cat_boxes = cls(torch.cat([b.tensor for b in boxes_list], dim=0)) + return cat_boxes + + @property + def device(self) -> torch.device: + return self.tensor.device + + @torch.jit.unused + def __iter__(self): + """ + Yield a box as a Tensor of shape (5,) at a time. + """ + yield from self.tensor + + +def pairwise_iou(boxes1: RotatedBoxes, boxes2: RotatedBoxes) -> None: + """ + Given two lists of rotated boxes of size N and M, + compute the IoU (intersection over union) + between **all** N x M pairs of boxes. + The box order must be (x_center, y_center, width, height, angle). + + Args: + boxes1, boxes2 (RotatedBoxes): + two `RotatedBoxes`. Contains N & M rotated boxes, respectively. + + Returns: + Tensor: IoU, sized [N,M]. + """ + + return pairwise_iou_rotated(boxes1.tensor, boxes2.tensor) diff --git a/detectron2/detectron2/tracking/__init__.py b/detectron2/detectron2/tracking/__init__.py new file mode 100755 index 0000000..21078ae --- /dev/null +++ b/detectron2/detectron2/tracking/__init__.py @@ -0,0 +1,15 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .base_tracker import ( # noqa + BaseTracker, + build_tracker_head, + TRACKER_HEADS_REGISTRY, +) +from .bbox_iou_tracker import BBoxIOUTracker # noqa +from .hungarian_tracker import BaseHungarianTracker # noqa +from .iou_weighted_hungarian_bbox_iou_tracker import ( # noqa + IOUWeightedHungarianBBoxIOUTracker, +) +from .utils import create_prediction_pairs # noqa +from .vanilla_hungarian_bbox_iou_tracker import VanillaHungarianBBoxIOUTracker # noqa + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/detectron2/tracking/base_tracker.py b/detectron2/detectron2/tracking/base_tracker.py new file mode 100755 index 0000000..a8872f7 --- /dev/null +++ b/detectron2/detectron2/tracking/base_tracker.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python3 +# Copyright 2004-present Facebook. All Rights Reserved. +from detectron2.config import configurable +from detectron2.utils.registry import Registry + +from ..config.config import CfgNode as CfgNode_ +from ..structures import Instances + +TRACKER_HEADS_REGISTRY = Registry("TRACKER_HEADS") +TRACKER_HEADS_REGISTRY.__doc__ = """ +Registry for tracking classes. +""" + + +class BaseTracker(object): + """ + A parent class for all trackers + """ + + @configurable + def __init__(self, **kwargs): + self._prev_instances = None # (D2)instances for previous frame + self._matched_idx = set() # indices in prev_instances found matching + self._matched_ID = set() # idendities in prev_instances found matching + self._untracked_prev_idx = set() # indices in prev_instances not found matching + self._id_count = 0 # used to assign new id + + @classmethod + def from_config(cls, cfg: CfgNode_): + raise NotImplementedError("Calling BaseTracker::from_config") + + def update(self, predictions: Instances) -> Instances: + """ + Args: + predictions: D2 Instances for predictions of the current frame + Return: + D2 Instances for predictions of the current frame with ID assigned + + _prev_instances and instances will have the following fields: + .pred_boxes (shape=[N, 4]) + .scores (shape=[N,]) + .pred_classes (shape=[N,]) + .pred_keypoints (shape=[N, M, 3], Optional) + .pred_masks (shape=List[2D_MASK], Optional) 2D_MASK: shape=[H, W] + .ID (shape=[N,]) + + N: # of detected bboxes + H and W: height and width of 2D mask + """ + raise NotImplementedError("Calling BaseTracker::update") + + +def build_tracker_head(cfg: CfgNode_) -> BaseTracker: + """ + Build a tracker head from `cfg.TRACKER_HEADS.TRACKER_NAME`. + + Args: + cfg: D2 CfgNode, config file with tracker information + Return: + tracker object + """ + name = cfg.TRACKER_HEADS.TRACKER_NAME + tracker_class = TRACKER_HEADS_REGISTRY.get(name) + return tracker_class(cfg) diff --git a/detectron2/detectron2/tracking/bbox_iou_tracker.py b/detectron2/detectron2/tracking/bbox_iou_tracker.py new file mode 100755 index 0000000..598081c --- /dev/null +++ b/detectron2/detectron2/tracking/bbox_iou_tracker.py @@ -0,0 +1,276 @@ +#!/usr/bin/env python3 +# Copyright 2004-present Facebook. All Rights Reserved. +import copy +import numpy as np +from typing import List +import torch + +from detectron2.config import configurable +from detectron2.structures import Boxes, Instances +from detectron2.structures.boxes import pairwise_iou + +from ..config.config import CfgNode as CfgNode_ +from .base_tracker import TRACKER_HEADS_REGISTRY, BaseTracker + + +@TRACKER_HEADS_REGISTRY.register() +class BBoxIOUTracker(BaseTracker): + """ + A bounding box tracker to assign ID based on IoU between current and previous instances + """ + + @configurable + def __init__( + self, + *, + video_height: int, + video_width: int, + max_num_instances: int = 200, + max_lost_frame_count: int = 0, + min_box_rel_dim: float = 0.02, + min_instance_period: int = 1, + track_iou_threshold: float = 0.5, + **kwargs, + ): + """ + Args: + video_height: height the video frame + video_width: width of the video frame + max_num_instances: maximum number of id allowed to be tracked + max_lost_frame_count: maximum number of frame an id can lost tracking + exceed this number, an id is considered as lost + forever + min_box_rel_dim: a percentage, smaller than this dimension, a bbox is + removed from tracking + min_instance_period: an instance will be shown after this number of period + since its first showing up in the video + track_iou_threshold: iou threshold, below this number a bbox pair is removed + from tracking + """ + super().__init__(**kwargs) + self._video_height = video_height + self._video_width = video_width + self._max_num_instances = max_num_instances + self._max_lost_frame_count = max_lost_frame_count + self._min_box_rel_dim = min_box_rel_dim + self._min_instance_period = min_instance_period + self._track_iou_threshold = track_iou_threshold + + @classmethod + def from_config(cls, cfg: CfgNode_): + """ + Old style initialization using CfgNode + + Args: + cfg: D2 CfgNode, config file + Return: + dictionary storing arguments for __init__ method + """ + assert "VIDEO_HEIGHT" in cfg.TRACKER_HEADS + assert "VIDEO_WIDTH" in cfg.TRACKER_HEADS + video_height = cfg.TRACKER_HEADS.get("VIDEO_HEIGHT") + video_width = cfg.TRACKER_HEADS.get("VIDEO_WIDTH") + max_num_instances = cfg.TRACKER_HEADS.get("MAX_NUM_INSTANCES", 200) + max_lost_frame_count = cfg.TRACKER_HEADS.get("MAX_LOST_FRAME_COUNT", 0) + min_box_rel_dim = cfg.TRACKER_HEADS.get("MIN_BOX_REL_DIM", 0.02) + min_instance_period = cfg.TRACKER_HEADS.get("MIN_INSTANCE_PERIOD", 1) + track_iou_threshold = cfg.TRACKER_HEADS.get("TRACK_IOU_THRESHOLD", 0.5) + return { + "_target_": "detectron2.tracking.bbox_iou_tracker.BBoxIOUTracker", + "video_height": video_height, + "video_width": video_width, + "max_num_instances": max_num_instances, + "max_lost_frame_count": max_lost_frame_count, + "min_box_rel_dim": min_box_rel_dim, + "min_instance_period": min_instance_period, + "track_iou_threshold": track_iou_threshold, + } + + def update(self, instances: Instances) -> Instances: + """ + See BaseTracker description + """ + instances = self._initialize_extra_fields(instances) + if self._prev_instances is not None: + # calculate IoU of all bbox pairs + iou_all = pairwise_iou( + boxes1=instances.pred_boxes, + boxes2=self._prev_instances.pred_boxes, + ) + # sort IoU in descending order + bbox_pairs = self._create_prediction_pairs(instances, iou_all) + # assign previous ID to current bbox if IoU > track_iou_threshold + self._reset_fields() + for bbox_pair in bbox_pairs: + idx = bbox_pair["idx"] + prev_id = bbox_pair["prev_id"] + if ( + idx in self._matched_idx + or prev_id in self._matched_ID + or bbox_pair["IoU"] < self._track_iou_threshold + ): + continue + instances.ID[idx] = prev_id + instances.ID_period[idx] = bbox_pair["prev_period"] + 1 + instances.lost_frame_count[idx] = 0 + self._matched_idx.add(idx) + self._matched_ID.add(prev_id) + self._untracked_prev_idx.remove(bbox_pair["prev_idx"]) + instances = self._assign_new_id(instances) + instances = self._merge_untracked_instances(instances) + self._prev_instances = copy.deepcopy(instances) + return instances + + def _create_prediction_pairs(self, instances: Instances, iou_all: np.ndarray) -> List: + """ + For all instances in previous and current frames, create pairs. For each + pair, store index of the instance in current frame predcitions, index in + previous predictions, ID in previous predictions, IoU of the bboxes in this + pair, period in previous predictions. + + Args: + instances: D2 Instances, for predictions of the current frame + iou_all: IoU for all bboxes pairs + Return: + A list of IoU for all pairs + """ + bbox_pairs = [] + for i in range(len(instances)): + for j in range(len(self._prev_instances)): + bbox_pairs.append( + { + "idx": i, + "prev_idx": j, + "prev_id": self._prev_instances.ID[j], + "IoU": iou_all[i, j], + "prev_period": self._prev_instances.ID_period[j], + } + ) + return bbox_pairs + + def _initialize_extra_fields(self, instances: Instances) -> Instances: + """ + If input instances don't have ID, ID_period, lost_frame_count fields, + this method is used to initialize these fields. + + Args: + instances: D2 Instances, for predictions of the current frame + Return: + D2 Instances with extra fields added + """ + if not instances.has("ID"): + instances.set("ID", [None] * len(instances)) + if not instances.has("ID_period"): + instances.set("ID_period", [None] * len(instances)) + if not instances.has("lost_frame_count"): + instances.set("lost_frame_count", [None] * len(instances)) + if self._prev_instances is None: + instances.ID = list(range(len(instances))) + self._id_count += len(instances) + instances.ID_period = [1] * len(instances) + instances.lost_frame_count = [0] * len(instances) + return instances + + def _reset_fields(self): + """ + Before each uodate call, reset fields first + """ + self._matched_idx = set() + self._matched_ID = set() + self._untracked_prev_idx = set(range(len(self._prev_instances))) + + def _assign_new_id(self, instances: Instances) -> Instances: + """ + For each untracked instance, assign a new id + + Args: + instances: D2 Instances, for predictions of the current frame + Return: + D2 Instances with new ID assigned + """ + untracked_idx = set(range(len(instances))).difference(self._matched_idx) + for idx in untracked_idx: + instances.ID[idx] = self._id_count + self._id_count += 1 + instances.ID_period[idx] = 1 + instances.lost_frame_count[idx] = 0 + return instances + + def _merge_untracked_instances(self, instances: Instances) -> Instances: + """ + For untracked previous instances, under certain condition, still keep them + in tracking and merge with the current instances. + + Args: + instances: D2 Instances, for predictions of the current frame + Return: + D2 Instances merging current instances and instances from previous + frame decided to keep tracking + """ + untracked_instances = Instances( + image_size=instances.image_size, + pred_boxes=[], + pred_classes=[], + scores=[], + ID=[], + ID_period=[], + lost_frame_count=[], + ) + prev_bboxes = list(self._prev_instances.pred_boxes) + prev_classes = list(self._prev_instances.pred_classes) + prev_scores = list(self._prev_instances.scores) + prev_ID_period = self._prev_instances.ID_period + if instances.has("pred_masks"): + untracked_instances.set("pred_masks", []) + prev_masks = list(self._prev_instances.pred_masks) + if instances.has("pred_keypoints"): + untracked_instances.set("pred_keypoints", []) + prev_keypoints = list(self._prev_instances.pred_keypoints) + if instances.has("pred_keypoint_heatmaps"): + untracked_instances.set("pred_keypoint_heatmaps", []) + prev_keypoint_heatmaps = list(self._prev_instances.pred_keypoint_heatmaps) + for idx in self._untracked_prev_idx: + x_left, y_top, x_right, y_bot = prev_bboxes[idx] + if ( + (1.0 * (x_right - x_left) / self._video_width < self._min_box_rel_dim) + or (1.0 * (y_bot - y_top) / self._video_height < self._min_box_rel_dim) + or self._prev_instances.lost_frame_count[idx] >= self._max_lost_frame_count + or prev_ID_period[idx] <= self._min_instance_period + ): + continue + untracked_instances.pred_boxes.append(list(prev_bboxes[idx].numpy())) + untracked_instances.pred_classes.append(int(prev_classes[idx])) + untracked_instances.scores.append(float(prev_scores[idx])) + untracked_instances.ID.append(self._prev_instances.ID[idx]) + untracked_instances.ID_period.append(self._prev_instances.ID_period[idx]) + untracked_instances.lost_frame_count.append( + self._prev_instances.lost_frame_count[idx] + 1 + ) + if instances.has("pred_masks"): + untracked_instances.pred_masks.append(prev_masks[idx].numpy().astype(np.uint8)) + if instances.has("pred_keypoints"): + untracked_instances.pred_keypoints.append( + prev_keypoints[idx].numpy().astype(np.uint8) + ) + if instances.has("pred_keypoint_heatmaps"): + untracked_instances.pred_keypoint_heatmaps.append( + prev_keypoint_heatmaps[idx].numpy().astype(np.float32) + ) + untracked_instances.pred_boxes = Boxes(torch.FloatTensor(untracked_instances.pred_boxes)) + untracked_instances.pred_classes = torch.IntTensor(untracked_instances.pred_classes) + untracked_instances.scores = torch.FloatTensor(untracked_instances.scores) + if instances.has("pred_masks"): + untracked_instances.pred_masks = torch.IntTensor(untracked_instances.pred_masks) + if instances.has("pred_keypoints"): + untracked_instances.pred_keypoints = torch.IntTensor(untracked_instances.pred_keypoints) + if instances.has("pred_keypoint_heatmaps"): + untracked_instances.pred_keypoint_heatmaps = torch.FloatTensor( + untracked_instances.pred_keypoint_heatmaps + ) + + return Instances.cat( + [ + instances, + untracked_instances, + ] + ) diff --git a/detectron2/detectron2/tracking/hungarian_tracker.py b/detectron2/detectron2/tracking/hungarian_tracker.py new file mode 100755 index 0000000..5b3ce88 --- /dev/null +++ b/detectron2/detectron2/tracking/hungarian_tracker.py @@ -0,0 +1,171 @@ +#!/usr/bin/env python3 +# Copyright 2004-present Facebook. All Rights Reserved. +import copy +import numpy as np +from typing import Dict +import torch +from scipy.optimize import linear_sum_assignment + +from detectron2.config import configurable +from detectron2.structures import Boxes, Instances + +from ..config.config import CfgNode as CfgNode_ +from .base_tracker import BaseTracker + + +class BaseHungarianTracker(BaseTracker): + """ + A base class for all Hungarian trackers + """ + + @configurable + def __init__( + self, + video_height: int, + video_width: int, + max_num_instances: int = 200, + max_lost_frame_count: int = 0, + min_box_rel_dim: float = 0.02, + min_instance_period: int = 1, + **kwargs + ): + """ + Args: + video_height: height the video frame + video_width: width of the video frame + max_num_instances: maximum number of id allowed to be tracked + max_lost_frame_count: maximum number of frame an id can lost tracking + exceed this number, an id is considered as lost + forever + min_box_rel_dim: a percentage, smaller than this dimension, a bbox is + removed from tracking + min_instance_period: an instance will be shown after this number of period + since its first showing up in the video + """ + super().__init__(**kwargs) + self._video_height = video_height + self._video_width = video_width + self._max_num_instances = max_num_instances + self._max_lost_frame_count = max_lost_frame_count + self._min_box_rel_dim = min_box_rel_dim + self._min_instance_period = min_instance_period + + @classmethod + def from_config(cls, cfg: CfgNode_) -> Dict: + raise NotImplementedError("Calling HungarianTracker::from_config") + + def build_cost_matrix(self, instances: Instances, prev_instances: Instances) -> np.ndarray: + raise NotImplementedError("Calling HungarianTracker::build_matrix") + + def update(self, instances: Instances) -> Instances: + if instances.has("pred_keypoints"): + raise NotImplementedError("Need to add support for keypoints") + instances = self._initialize_extra_fields(instances) + if self._prev_instances is not None: + self._untracked_prev_idx = set(range(len(self._prev_instances))) + cost_matrix = self.build_cost_matrix(instances, self._prev_instances) + matched_idx, matched_prev_idx = linear_sum_assignment(cost_matrix) + instances = self._process_matched_idx(instances, matched_idx, matched_prev_idx) + instances = self._process_unmatched_idx(instances, matched_idx) + instances = self._process_unmatched_prev_idx(instances, matched_prev_idx) + self._prev_instances = copy.deepcopy(instances) + return instances + + def _initialize_extra_fields(self, instances: Instances) -> Instances: + """ + If input instances don't have ID, ID_period, lost_frame_count fields, + this method is used to initialize these fields. + + Args: + instances: D2 Instances, for predictions of the current frame + Return: + D2 Instances with extra fields added + """ + if not instances.has("ID"): + instances.set("ID", [None] * len(instances)) + if not instances.has("ID_period"): + instances.set("ID_period", [None] * len(instances)) + if not instances.has("lost_frame_count"): + instances.set("lost_frame_count", [None] * len(instances)) + if self._prev_instances is None: + instances.ID = list(range(len(instances))) + self._id_count += len(instances) + instances.ID_period = [1] * len(instances) + instances.lost_frame_count = [0] * len(instances) + return instances + + def _process_matched_idx( + self, instances: Instances, matched_idx: np.ndarray, matched_prev_idx: np.ndarray + ) -> Instances: + assert matched_idx.size == matched_prev_idx.size + for i in range(matched_idx.size): + instances.ID[matched_idx[i]] = self._prev_instances.ID[matched_prev_idx[i]] + instances.ID_period[matched_idx[i]] = ( + self._prev_instances.ID_period[matched_prev_idx[i]] + 1 + ) + instances.lost_frame_count[matched_idx[i]] = 0 + return instances + + def _process_unmatched_idx(self, instances: Instances, matched_idx: np.ndarray) -> Instances: + untracked_idx = set(range(len(instances))).difference(set(matched_idx)) + for idx in untracked_idx: + instances.ID[idx] = self._id_count + self._id_count += 1 + instances.ID_period[idx] = 1 + instances.lost_frame_count[idx] = 0 + return instances + + def _process_unmatched_prev_idx( + self, instances: Instances, matched_prev_idx: np.ndarray + ) -> Instances: + untracked_instances = Instances( + image_size=instances.image_size, + pred_boxes=[], + pred_masks=[], + pred_classes=[], + scores=[], + ID=[], + ID_period=[], + lost_frame_count=[], + ) + prev_bboxes = list(self._prev_instances.pred_boxes) + prev_classes = list(self._prev_instances.pred_classes) + prev_scores = list(self._prev_instances.scores) + prev_ID_period = self._prev_instances.ID_period + if instances.has("pred_masks"): + prev_masks = list(self._prev_instances.pred_masks) + untracked_prev_idx = set(range(len(self._prev_instances))).difference(set(matched_prev_idx)) + for idx in untracked_prev_idx: + x_left, y_top, x_right, y_bot = prev_bboxes[idx] + if ( + (1.0 * (x_right - x_left) / self._video_width < self._min_box_rel_dim) + or (1.0 * (y_bot - y_top) / self._video_height < self._min_box_rel_dim) + or self._prev_instances.lost_frame_count[idx] >= self._max_lost_frame_count + or prev_ID_period[idx] <= self._min_instance_period + ): + continue + untracked_instances.pred_boxes.append(list(prev_bboxes[idx].numpy())) + untracked_instances.pred_classes.append(int(prev_classes[idx])) + untracked_instances.scores.append(float(prev_scores[idx])) + untracked_instances.ID.append(self._prev_instances.ID[idx]) + untracked_instances.ID_period.append(self._prev_instances.ID_period[idx]) + untracked_instances.lost_frame_count.append( + self._prev_instances.lost_frame_count[idx] + 1 + ) + if instances.has("pred_masks"): + untracked_instances.pred_masks.append(prev_masks[idx].numpy().astype(np.uint8)) + + untracked_instances.pred_boxes = Boxes(torch.FloatTensor(untracked_instances.pred_boxes)) + untracked_instances.pred_classes = torch.IntTensor(untracked_instances.pred_classes) + untracked_instances.scores = torch.FloatTensor(untracked_instances.scores) + if instances.has("pred_masks"): + untracked_instances.pred_masks = torch.IntTensor(untracked_instances.pred_masks) + else: + untracked_instances.remove("pred_masks") + + return Instances.cat( + [ + instances, + untracked_instances, + ] + ) diff --git a/detectron2/detectron2/tracking/iou_weighted_hungarian_bbox_iou_tracker.py b/detectron2/detectron2/tracking/iou_weighted_hungarian_bbox_iou_tracker.py new file mode 100755 index 0000000..b3b4d1c --- /dev/null +++ b/detectron2/detectron2/tracking/iou_weighted_hungarian_bbox_iou_tracker.py @@ -0,0 +1,102 @@ +#!/usr/bin/env python3 +# Copyright 2004-present Facebook. All Rights Reserved. + +import numpy as np +from typing import List + +from detectron2.config import CfgNode as CfgNode_ +from detectron2.config import configurable + +from .base_tracker import TRACKER_HEADS_REGISTRY +from .vanilla_hungarian_bbox_iou_tracker import VanillaHungarianBBoxIOUTracker + + +@TRACKER_HEADS_REGISTRY.register() +class IOUWeightedHungarianBBoxIOUTracker(VanillaHungarianBBoxIOUTracker): + """ + A tracker using IoU as weight in Hungarian algorithm, also known + as Munkres or Kuhn-Munkres algorithm + """ + + @configurable + def __init__( + self, + *, + video_height: int, + video_width: int, + max_num_instances: int = 200, + max_lost_frame_count: int = 0, + min_box_rel_dim: float = 0.02, + min_instance_period: int = 1, + track_iou_threshold: float = 0.5, + **kwargs, + ): + """ + Args: + video_height: height the video frame + video_width: width of the video frame + max_num_instances: maximum number of id allowed to be tracked + max_lost_frame_count: maximum number of frame an id can lost tracking + exceed this number, an id is considered as lost + forever + min_box_rel_dim: a percentage, smaller than this dimension, a bbox is + removed from tracking + min_instance_period: an instance will be shown after this number of period + since its first showing up in the video + track_iou_threshold: iou threshold, below this number a bbox pair is removed + from tracking + """ + super().__init__( + video_height=video_height, + video_width=video_width, + max_num_instances=max_num_instances, + max_lost_frame_count=max_lost_frame_count, + min_box_rel_dim=min_box_rel_dim, + min_instance_period=min_instance_period, + track_iou_threshold=track_iou_threshold, + ) + + @classmethod + def from_config(cls, cfg: CfgNode_): + """ + Old style initialization using CfgNode + + Args: + cfg: D2 CfgNode, config file + Return: + dictionary storing arguments for __init__ method + """ + assert "VIDEO_HEIGHT" in cfg.TRACKER_HEADS + assert "VIDEO_WIDTH" in cfg.TRACKER_HEADS + video_height = cfg.TRACKER_HEADS.get("VIDEO_HEIGHT") + video_width = cfg.TRACKER_HEADS.get("VIDEO_WIDTH") + max_num_instances = cfg.TRACKER_HEADS.get("MAX_NUM_INSTANCES", 200) + max_lost_frame_count = cfg.TRACKER_HEADS.get("MAX_LOST_FRAME_COUNT", 0) + min_box_rel_dim = cfg.TRACKER_HEADS.get("MIN_BOX_REL_DIM", 0.02) + min_instance_period = cfg.TRACKER_HEADS.get("MIN_INSTANCE_PERIOD", 1) + track_iou_threshold = cfg.TRACKER_HEADS.get("TRACK_IOU_THRESHOLD", 0.5) + return { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": video_height, + "video_width": video_width, + "max_num_instances": max_num_instances, + "max_lost_frame_count": max_lost_frame_count, + "min_box_rel_dim": min_box_rel_dim, + "min_instance_period": min_instance_period, + "track_iou_threshold": track_iou_threshold, + } + + def assign_cost_matrix_values(self, cost_matrix: np.ndarray, bbox_pairs: List) -> np.ndarray: + """ + Based on IoU for each pair of bbox, assign the associated value in cost matrix + + Args: + cost_matrix: np.ndarray, initialized 2D array with target dimensions + bbox_pairs: list of bbox pair, in each pair, iou value is stored + Return: + np.ndarray, cost_matrix with assigned values + """ + for pair in bbox_pairs: + # assign (-1 * IoU) for above threshold pairs, algorithms will minimize cost + cost_matrix[pair["idx"]][pair["prev_idx"]] = -1 * pair["IoU"] + return cost_matrix diff --git a/detectron2/detectron2/tracking/utils.py b/detectron2/detectron2/tracking/utils.py new file mode 100755 index 0000000..92634c5 --- /dev/null +++ b/detectron2/detectron2/tracking/utils.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python3 +import numpy as np +from typing import List + +from detectron2.structures import Instances + + +def create_prediction_pairs( + instances: Instances, + prev_instances: Instances, + iou_all: np.ndarray, + threshold: float = 0.5, +) -> List: + """ + Args: + instances: predictions from current frame + prev_instances: predictions from previous frame + iou_all: 2D numpy array containing iou for each bbox pair + threshold: below the threshold, doesn't consider the pair of bbox is valid + Return: + List of bbox pairs + """ + bbox_pairs = [] + for i in range(len(instances)): + for j in range(len(prev_instances)): + if iou_all[i, j] < threshold: + continue + bbox_pairs.append( + { + "idx": i, + "prev_idx": j, + "prev_id": prev_instances.ID[j], + "IoU": iou_all[i, j], + "prev_period": prev_instances.ID_period[j], + } + ) + return bbox_pairs + + +LARGE_COST_VALUE = 100000 diff --git a/detectron2/detectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py b/detectron2/detectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py new file mode 100755 index 0000000..5629f73 --- /dev/null +++ b/detectron2/detectron2/tracking/vanilla_hungarian_bbox_iou_tracker.py @@ -0,0 +1,129 @@ +#!/usr/bin/env python3 +# Copyright 2004-present Facebook. All Rights Reserved. + +import numpy as np +from typing import List + +from detectron2.config import CfgNode as CfgNode_ +from detectron2.config import configurable +from detectron2.structures import Instances +from detectron2.structures.boxes import pairwise_iou +from detectron2.tracking.utils import LARGE_COST_VALUE, create_prediction_pairs + +from .base_tracker import TRACKER_HEADS_REGISTRY +from .hungarian_tracker import BaseHungarianTracker + + +@TRACKER_HEADS_REGISTRY.register() +class VanillaHungarianBBoxIOUTracker(BaseHungarianTracker): + """ + Hungarian algo based tracker using bbox iou as metric + """ + + @configurable + def __init__( + self, + *, + video_height: int, + video_width: int, + max_num_instances: int = 200, + max_lost_frame_count: int = 0, + min_box_rel_dim: float = 0.02, + min_instance_period: int = 1, + track_iou_threshold: float = 0.5, + **kwargs, + ): + """ + Args: + video_height: height the video frame + video_width: width of the video frame + max_num_instances: maximum number of id allowed to be tracked + max_lost_frame_count: maximum number of frame an id can lost tracking + exceed this number, an id is considered as lost + forever + min_box_rel_dim: a percentage, smaller than this dimension, a bbox is + removed from tracking + min_instance_period: an instance will be shown after this number of period + since its first showing up in the video + track_iou_threshold: iou threshold, below this number a bbox pair is removed + from tracking + """ + super().__init__( + video_height=video_height, + video_width=video_width, + max_num_instances=max_num_instances, + max_lost_frame_count=max_lost_frame_count, + min_box_rel_dim=min_box_rel_dim, + min_instance_period=min_instance_period, + ) + self._track_iou_threshold = track_iou_threshold + + @classmethod + def from_config(cls, cfg: CfgNode_): + """ + Old style initialization using CfgNode + + Args: + cfg: D2 CfgNode, config file + Return: + dictionary storing arguments for __init__ method + """ + assert "VIDEO_HEIGHT" in cfg.TRACKER_HEADS + assert "VIDEO_WIDTH" in cfg.TRACKER_HEADS + video_height = cfg.TRACKER_HEADS.get("VIDEO_HEIGHT") + video_width = cfg.TRACKER_HEADS.get("VIDEO_WIDTH") + max_num_instances = cfg.TRACKER_HEADS.get("MAX_NUM_INSTANCES", 200) + max_lost_frame_count = cfg.TRACKER_HEADS.get("MAX_LOST_FRAME_COUNT", 0) + min_box_rel_dim = cfg.TRACKER_HEADS.get("MIN_BOX_REL_DIM", 0.02) + min_instance_period = cfg.TRACKER_HEADS.get("MIN_INSTANCE_PERIOD", 1) + track_iou_threshold = cfg.TRACKER_HEADS.get("TRACK_IOU_THRESHOLD", 0.5) + return { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": video_height, + "video_width": video_width, + "max_num_instances": max_num_instances, + "max_lost_frame_count": max_lost_frame_count, + "min_box_rel_dim": min_box_rel_dim, + "min_instance_period": min_instance_period, + "track_iou_threshold": track_iou_threshold, + } + + def build_cost_matrix(self, instances: Instances, prev_instances: Instances) -> np.ndarray: + """ + Build the cost matrix for assignment problem + (https://en.wikipedia.org/wiki/Assignment_problem) + + Args: + instances: D2 Instances, for current frame predictions + prev_instances: D2 Instances, for previous frame predictions + + Return: + the cost matrix in numpy array + """ + assert instances is not None and prev_instances is not None + # calculate IoU of all bbox pairs + iou_all = pairwise_iou( + boxes1=instances.pred_boxes, + boxes2=self._prev_instances.pred_boxes, + ) + bbox_pairs = create_prediction_pairs( + instances, self._prev_instances, iou_all, threshold=self._track_iou_threshold + ) + # assign large cost value to make sure pair below IoU threshold won't be matched + cost_matrix = np.full((len(instances), len(prev_instances)), LARGE_COST_VALUE) + return self.assign_cost_matrix_values(cost_matrix, bbox_pairs) + + def assign_cost_matrix_values(self, cost_matrix: np.ndarray, bbox_pairs: List) -> np.ndarray: + """ + Based on IoU for each pair of bbox, assign the associated value in cost matrix + + Args: + cost_matrix: np.ndarray, initialized 2D array with target dimensions + bbox_pairs: list of bbox pair, in each pair, iou value is stored + Return: + np.ndarray, cost_matrix with assigned values + """ + for pair in bbox_pairs: + # assign -1 for IoU above threshold pairs, algorithms will minimize cost + cost_matrix[pair["idx"]][pair["prev_idx"]] = -1 + return cost_matrix diff --git a/detectron2/detectron2/utils/README.md b/detectron2/detectron2/utils/README.md new file mode 100755 index 0000000..9765b24 --- /dev/null +++ b/detectron2/detectron2/utils/README.md @@ -0,0 +1,5 @@ +# Utility functions + +This folder contain utility functions that are not used in the +core library, but are useful for building models or training +code using the config system. diff --git a/detectron2/detectron2/utils/__init__.py b/detectron2/detectron2/utils/__init__.py new file mode 100755 index 0000000..9020c2d --- /dev/null +++ b/detectron2/detectron2/utils/__init__.py @@ -0,0 +1 @@ +# Copyright (c) Facebook, Inc. and its affiliates. diff --git a/detectron2/detectron2/utils/analysis.py b/detectron2/detectron2/utils/analysis.py new file mode 100755 index 0000000..178da79 --- /dev/null +++ b/detectron2/detectron2/utils/analysis.py @@ -0,0 +1,188 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# -*- coding: utf-8 -*- + +import typing +from typing import Any, List +import fvcore +from fvcore.nn import activation_count, flop_count, parameter_count, parameter_count_table +from torch import nn + +from detectron2.export import TracingAdapter + +__all__ = [ + "activation_count_operators", + "flop_count_operators", + "parameter_count_table", + "parameter_count", + "FlopCountAnalysis", +] + +FLOPS_MODE = "flops" +ACTIVATIONS_MODE = "activations" + + +# Some extra ops to ignore from counting, including elementwise and reduction ops +_IGNORED_OPS = { + "aten::add", + "aten::add_", + "aten::argmax", + "aten::argsort", + "aten::batch_norm", + "aten::constant_pad_nd", + "aten::div", + "aten::div_", + "aten::exp", + "aten::log2", + "aten::max_pool2d", + "aten::meshgrid", + "aten::mul", + "aten::mul_", + "aten::neg", + "aten::nonzero_numpy", + "aten::reciprocal", + "aten::repeat_interleave", + "aten::rsub", + "aten::sigmoid", + "aten::sigmoid_", + "aten::softmax", + "aten::sort", + "aten::sqrt", + "aten::sub", + "torchvision::nms", # TODO estimate flop for nms +} + + +class FlopCountAnalysis(fvcore.nn.FlopCountAnalysis): + """ + Same as :class:`fvcore.nn.FlopCountAnalysis`, but supports detectron2 models. + """ + + def __init__(self, model, inputs): + """ + Args: + model (nn.Module): + inputs (Any): inputs of the given model. Does not have to be tuple of tensors. + """ + wrapper = TracingAdapter(model, inputs, allow_non_tensor=True) + super().__init__(wrapper, wrapper.flattened_inputs) + self.set_op_handle(**{k: None for k in _IGNORED_OPS}) + + +def flop_count_operators(model: nn.Module, inputs: list) -> typing.DefaultDict[str, float]: + """ + Implement operator-level flops counting using jit. + This is a wrapper of :func:`fvcore.nn.flop_count` and adds supports for standard + detection models in detectron2. + Please use :class:`FlopCountAnalysis` for more advanced functionalities. + + Note: + The function runs the input through the model to compute flops. + The flops of a detection model is often input-dependent, for example, + the flops of box & mask head depends on the number of proposals & + the number of detected objects. + Therefore, the flops counting using a single input may not accurately + reflect the computation cost of a model. It's recommended to average + across a number of inputs. + + Args: + model: a detectron2 model that takes `list[dict]` as input. + inputs (list[dict]): inputs to model, in detectron2's standard format. + Only "image" key will be used. + supported_ops (dict[str, Handle]): see documentation of :func:`fvcore.nn.flop_count` + + Returns: + Counter: Gflop count per operator + """ + old_train = model.training + model.eval() + ret = FlopCountAnalysis(model, inputs).by_operator() + model.train(old_train) + return {k: v / 1e9 for k, v in ret.items()} + + +def activation_count_operators( + model: nn.Module, inputs: list, **kwargs +) -> typing.DefaultDict[str, float]: + """ + Implement operator-level activations counting using jit. + This is a wrapper of fvcore.nn.activation_count, that supports standard detection models + in detectron2. + + Note: + The function runs the input through the model to compute activations. + The activations of a detection model is often input-dependent, for example, + the activations of box & mask head depends on the number of proposals & + the number of detected objects. + + Args: + model: a detectron2 model that takes `list[dict]` as input. + inputs (list[dict]): inputs to model, in detectron2's standard format. + Only "image" key will be used. + + Returns: + Counter: activation count per operator + """ + return _wrapper_count_operators(model=model, inputs=inputs, mode=ACTIVATIONS_MODE, **kwargs) + + +def _wrapper_count_operators( + model: nn.Module, inputs: list, mode: str, **kwargs +) -> typing.DefaultDict[str, float]: + # ignore some ops + supported_ops = {k: lambda *args, **kwargs: {} for k in _IGNORED_OPS} + supported_ops.update(kwargs.pop("supported_ops", {})) + kwargs["supported_ops"] = supported_ops + + assert len(inputs) == 1, "Please use batch size=1" + tensor_input = inputs[0]["image"] + inputs = [{"image": tensor_input}] # remove other keys, in case there are any + + old_train = model.training + if isinstance(model, (nn.parallel.distributed.DistributedDataParallel, nn.DataParallel)): + model = model.module + wrapper = TracingAdapter(model, inputs) + wrapper.eval() + if mode == FLOPS_MODE: + ret = flop_count(wrapper, (tensor_input,), **kwargs) + elif mode == ACTIVATIONS_MODE: + ret = activation_count(wrapper, (tensor_input,), **kwargs) + else: + raise NotImplementedError("Count for mode {} is not supported yet.".format(mode)) + # compatible with change in fvcore + if isinstance(ret, tuple): + ret = ret[0] + model.train(old_train) + return ret + + +def find_unused_parameters(model: nn.Module, inputs: Any) -> List[str]: + """ + Given a model, find parameters that do not contribute + to the loss. + + Args: + model: a model in training mode that returns losses + inputs: argument or a tuple of arguments. Inputs of the model + + Returns: + list[str]: the name of unused parameters + """ + assert model.training + for _, prm in model.named_parameters(): + prm.grad = None + + if isinstance(inputs, tuple): + losses = model(*inputs) + else: + losses = model(inputs) + + if isinstance(losses, dict): + losses = sum(losses.values()) + losses.backward() + + unused: List[str] = [] + for name, prm in model.named_parameters(): + if prm.grad is None: + unused.append(name) + prm.grad = None + return unused diff --git a/detectron2/detectron2/utils/collect_env.py b/detectron2/detectron2/utils/collect_env.py new file mode 100755 index 0000000..2846d7a --- /dev/null +++ b/detectron2/detectron2/utils/collect_env.py @@ -0,0 +1,246 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import importlib +import numpy as np +import os +import re +import subprocess +import sys +from collections import defaultdict +import PIL +import torch +import torchvision +from tabulate import tabulate + +__all__ = ["collect_env_info"] + + +def collect_torch_env(): + try: + import torch.__config__ + + return torch.__config__.show() + except ImportError: + # compatible with older versions of pytorch + from torch.utils.collect_env import get_pretty_env_info + + return get_pretty_env_info() + + +def get_env_module(): + var_name = "DETECTRON2_ENV_MODULE" + return var_name, os.environ.get(var_name, "") + + +def detect_compute_compatibility(CUDA_HOME, so_file): + try: + cuobjdump = os.path.join(CUDA_HOME, "bin", "cuobjdump") + if os.path.isfile(cuobjdump): + output = subprocess.check_output( + "'{}' --list-elf '{}'".format(cuobjdump, so_file), shell=True + ) + output = output.decode("utf-8").strip().split("\n") + arch = [] + for line in output: + line = re.findall(r"\.sm_([0-9]*)\.", line)[0] + arch.append(".".join(line)) + arch = sorted(set(arch)) + return ", ".join(arch) + else: + return so_file + "; cannot find cuobjdump" + except Exception: + # unhandled failure + return so_file + + +def collect_env_info(): + has_gpu = torch.cuda.is_available() # true for both CUDA & ROCM + torch_version = torch.__version__ + + # NOTE that CUDA_HOME/ROCM_HOME could be None even when CUDA runtime libs are functional + from torch.utils.cpp_extension import CUDA_HOME, ROCM_HOME + + has_rocm = False + if (getattr(torch.version, "hip", None) is not None) and (ROCM_HOME is not None): + has_rocm = True + has_cuda = has_gpu and (not has_rocm) + + data = [] + data.append(("sys.platform", sys.platform)) # check-template.yml depends on it + data.append(("Python", sys.version.replace("\n", ""))) + data.append(("numpy", np.__version__)) + + try: + import detectron2 # noqa + + data.append( + ("detectron2", detectron2.__version__ + " @" + os.path.dirname(detectron2.__file__)) + ) + except ImportError: + data.append(("detectron2", "failed to import")) + except AttributeError: + data.append(("detectron2", "imported a wrong installation")) + + try: + import detectron2._C as _C + except ImportError as e: + data.append(("detectron2._C", f"not built correctly: {e}")) + + # print system compilers when extension fails to build + if sys.platform != "win32": # don't know what to do for windows + try: + # this is how torch/utils/cpp_extensions.py choose compiler + cxx = os.environ.get("CXX", "c++") + cxx = subprocess.check_output("'{}' --version".format(cxx), shell=True) + cxx = cxx.decode("utf-8").strip().split("\n")[0] + except subprocess.SubprocessError: + cxx = "Not found" + data.append(("Compiler ($CXX)", cxx)) + + if has_cuda and CUDA_HOME is not None: + try: + nvcc = os.path.join(CUDA_HOME, "bin", "nvcc") + nvcc = subprocess.check_output("'{}' -V".format(nvcc), shell=True) + nvcc = nvcc.decode("utf-8").strip().split("\n")[-1] + except subprocess.SubprocessError: + nvcc = "Not found" + data.append(("CUDA compiler", nvcc)) + if has_cuda and sys.platform != "win32": + try: + so_file = importlib.util.find_spec("detectron2._C").origin + except (ImportError, AttributeError): + pass + else: + data.append( + ("detectron2 arch flags", detect_compute_compatibility(CUDA_HOME, so_file)) + ) + else: + # print compilers that are used to build extension + data.append(("Compiler", _C.get_compiler_version())) + data.append(("CUDA compiler", _C.get_cuda_version())) # cuda or hip + if has_cuda and getattr(_C, "has_cuda", lambda: True)(): + data.append( + ("detectron2 arch flags", detect_compute_compatibility(CUDA_HOME, _C.__file__)) + ) + + data.append(get_env_module()) + data.append(("PyTorch", torch_version + " @" + os.path.dirname(torch.__file__))) + data.append(("PyTorch debug build", torch.version.debug)) + try: + data.append(("torch._C._GLIBCXX_USE_CXX11_ABI", torch._C._GLIBCXX_USE_CXX11_ABI)) + except Exception: + pass + + if not has_gpu: + has_gpu_text = "No: torch.cuda.is_available() == False" + else: + has_gpu_text = "Yes" + data.append(("GPU available", has_gpu_text)) + if has_gpu: + devices = defaultdict(list) + for k in range(torch.cuda.device_count()): + cap = ".".join((str(x) for x in torch.cuda.get_device_capability(k))) + name = torch.cuda.get_device_name(k) + f" (arch={cap})" + devices[name].append(str(k)) + for name, devids in devices.items(): + data.append(("GPU " + ",".join(devids), name)) + + if has_rocm: + msg = " - invalid!" if not (ROCM_HOME and os.path.isdir(ROCM_HOME)) else "" + data.append(("ROCM_HOME", str(ROCM_HOME) + msg)) + else: + try: + from torch.utils.collect_env import get_nvidia_driver_version, run as _run + + data.append(("Driver version", get_nvidia_driver_version(_run))) + except Exception: + pass + msg = " - invalid!" if not (CUDA_HOME and os.path.isdir(CUDA_HOME)) else "" + data.append(("CUDA_HOME", str(CUDA_HOME) + msg)) + + cuda_arch_list = os.environ.get("TORCH_CUDA_ARCH_LIST", None) + if cuda_arch_list: + data.append(("TORCH_CUDA_ARCH_LIST", cuda_arch_list)) + data.append(("Pillow", PIL.__version__)) + + try: + data.append( + ( + "torchvision", + str(torchvision.__version__) + " @" + os.path.dirname(torchvision.__file__), + ) + ) + if has_cuda: + try: + torchvision_C = importlib.util.find_spec("torchvision._C").origin + msg = detect_compute_compatibility(CUDA_HOME, torchvision_C) + data.append(("torchvision arch flags", msg)) + except (ImportError, AttributeError): + data.append(("torchvision._C", "Not found")) + except AttributeError: + data.append(("torchvision", "unknown")) + + try: + import fvcore + + data.append(("fvcore", fvcore.__version__)) + except (ImportError, AttributeError): + pass + + try: + import iopath + + data.append(("iopath", iopath.__version__)) + except (ImportError, AttributeError): + pass + + try: + import cv2 + + data.append(("cv2", cv2.__version__)) + except (ImportError, AttributeError): + data.append(("cv2", "Not found")) + env_str = tabulate(data) + "\n" + env_str += collect_torch_env() + return env_str + + +def test_nccl_ops(): + num_gpu = torch.cuda.device_count() + if os.access("/tmp", os.W_OK): + import torch.multiprocessing as mp + + dist_url = "file:///tmp/nccl_tmp_file" + print("Testing NCCL connectivity ... this should not hang.") + mp.spawn(_test_nccl_worker, nprocs=num_gpu, args=(num_gpu, dist_url), daemon=False) + print("NCCL succeeded.") + + +def _test_nccl_worker(rank, num_gpu, dist_url): + import torch.distributed as dist + + dist.init_process_group(backend="NCCL", init_method=dist_url, rank=rank, world_size=num_gpu) + dist.barrier(device_ids=[rank]) + + +if __name__ == "__main__": + try: + from detectron2.utils.collect_env import collect_env_info as f + + print(f()) + except ImportError: + print(collect_env_info()) + + if torch.cuda.is_available(): + num_gpu = torch.cuda.device_count() + for k in range(num_gpu): + device = f"cuda:{k}" + try: + x = torch.tensor([1, 2.0], dtype=torch.float32) + x = x.to(device) + except Exception as e: + print( + f"Unable to copy tensor to device={device}: {e}. " + "Your CUDA environment is broken." + ) + if num_gpu > 1: + test_nccl_ops() diff --git a/detectron2/detectron2/utils/colormap.py b/detectron2/detectron2/utils/colormap.py new file mode 100755 index 0000000..14ded16 --- /dev/null +++ b/detectron2/detectron2/utils/colormap.py @@ -0,0 +1,158 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +An awesome colormap for really neat visualizations. +Copied from Detectron, and removed gray colors. +""" + +import numpy as np +import random + +__all__ = ["colormap", "random_color", "random_colors"] + +# fmt: off +# RGB: +_COLORS = np.array( + [ + 0.000, 0.447, 0.741, + 0.850, 0.325, 0.098, + 0.929, 0.694, 0.125, + 0.494, 0.184, 0.556, + 0.466, 0.674, 0.188, + 0.301, 0.745, 0.933, + 0.635, 0.078, 0.184, + 0.300, 0.300, 0.300, + 0.600, 0.600, 0.600, + 1.000, 0.000, 0.000, + 1.000, 0.500, 0.000, + 0.749, 0.749, 0.000, + 0.000, 1.000, 0.000, + 0.000, 0.000, 1.000, + 0.667, 0.000, 1.000, + 0.333, 0.333, 0.000, + 0.333, 0.667, 0.000, + 0.333, 1.000, 0.000, + 0.667, 0.333, 0.000, + 0.667, 0.667, 0.000, + 0.667, 1.000, 0.000, + 1.000, 0.333, 0.000, + 1.000, 0.667, 0.000, + 1.000, 1.000, 0.000, + 0.000, 0.333, 0.500, + 0.000, 0.667, 0.500, + 0.000, 1.000, 0.500, + 0.333, 0.000, 0.500, + 0.333, 0.333, 0.500, + 0.333, 0.667, 0.500, + 0.333, 1.000, 0.500, + 0.667, 0.000, 0.500, + 0.667, 0.333, 0.500, + 0.667, 0.667, 0.500, + 0.667, 1.000, 0.500, + 1.000, 0.000, 0.500, + 1.000, 0.333, 0.500, + 1.000, 0.667, 0.500, + 1.000, 1.000, 0.500, + 0.000, 0.333, 1.000, + 0.000, 0.667, 1.000, + 0.000, 1.000, 1.000, + 0.333, 0.000, 1.000, + 0.333, 0.333, 1.000, + 0.333, 0.667, 1.000, + 0.333, 1.000, 1.000, + 0.667, 0.000, 1.000, + 0.667, 0.333, 1.000, + 0.667, 0.667, 1.000, + 0.667, 1.000, 1.000, + 1.000, 0.000, 1.000, + 1.000, 0.333, 1.000, + 1.000, 0.667, 1.000, + 0.333, 0.000, 0.000, + 0.500, 0.000, 0.000, + 0.667, 0.000, 0.000, + 0.833, 0.000, 0.000, + 1.000, 0.000, 0.000, + 0.000, 0.167, 0.000, + 0.000, 0.333, 0.000, + 0.000, 0.500, 0.000, + 0.000, 0.667, 0.000, + 0.000, 0.833, 0.000, + 0.000, 1.000, 0.000, + 0.000, 0.000, 0.167, + 0.000, 0.000, 0.333, + 0.000, 0.000, 0.500, + 0.000, 0.000, 0.667, + 0.000, 0.000, 0.833, + 0.000, 0.000, 1.000, + 0.000, 0.000, 0.000, + 0.143, 0.143, 0.143, + 0.857, 0.857, 0.857, + 1.000, 1.000, 1.000 + ] +).astype(np.float32).reshape(-1, 3) +# fmt: on + + +def colormap(rgb=False, maximum=255): + """ + Args: + rgb (bool): whether to return RGB colors or BGR colors. + maximum (int): either 255 or 1 + + Returns: + ndarray: a float32 array of Nx3 colors, in range [0, 255] or [0, 1] + """ + assert maximum in [255, 1], maximum + c = _COLORS * maximum + if not rgb: + c = c[:, ::-1] + return c + + +def random_color(rgb=False, maximum=255): + """ + Args: + rgb (bool): whether to return RGB colors or BGR colors. + maximum (int): either 255 or 1 + + Returns: + ndarray: a vector of 3 numbers + """ + idx = np.random.randint(0, len(_COLORS)) + ret = _COLORS[idx] * maximum + if not rgb: + ret = ret[::-1] + return ret + + +def random_colors(N, rgb=False, maximum=255): + """ + Args: + N (int): number of unique colors needed + rgb (bool): whether to return RGB colors or BGR colors. + maximum (int): either 255 or 1 + + Returns: + ndarray: a list of random_color + """ + indices = random.sample(range(len(_COLORS)), N) + ret = [_COLORS[i] * maximum for i in indices] + if not rgb: + ret = [x[::-1] for x in ret] + return ret + + +if __name__ == "__main__": + import cv2 + + size = 100 + H, W = 10, 10 + canvas = np.random.rand(H * size, W * size, 3).astype("float32") + for h in range(H): + for w in range(W): + idx = h * W + w + if idx >= len(_COLORS): + break + canvas[h * size : (h + 1) * size, w * size : (w + 1) * size] = _COLORS[idx] + cv2.imshow("a", canvas) + cv2.waitKey(0) diff --git a/detectron2/detectron2/utils/comm.py b/detectron2/detectron2/utils/comm.py new file mode 100755 index 0000000..a9ea9a9 --- /dev/null +++ b/detectron2/detectron2/utils/comm.py @@ -0,0 +1,238 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +""" +This file contains primitives for multi-gpu communication. +This is useful when doing distributed training. +""" + +import functools +import numpy as np +import torch +import torch.distributed as dist + +_LOCAL_PROCESS_GROUP = None +_MISSING_LOCAL_PG_ERROR = ( + "Local process group is not yet created! Please use detectron2's `launch()` " + "to start processes and initialize pytorch process group. If you need to start " + "processes in other ways, please call comm.create_local_process_group(" + "num_workers_per_machine) after calling torch.distributed.init_process_group()." +) + + +def get_world_size() -> int: + if not dist.is_available(): + return 1 + if not dist.is_initialized(): + return 1 + return dist.get_world_size() + + +def get_rank() -> int: + if not dist.is_available(): + return 0 + if not dist.is_initialized(): + return 0 + return dist.get_rank() + + +@functools.lru_cache() +def create_local_process_group(num_workers_per_machine: int) -> None: + """ + Create a process group that contains ranks within the same machine. + + Detectron2's launch() in engine/launch.py will call this function. If you start + workers without launch(), you'll have to also call this. Otherwise utilities + like `get_local_rank()` will not work. + + This function contains a barrier. All processes must call it together. + + Args: + num_workers_per_machine: the number of worker processes per machine. Typically + the number of GPUs. + """ + global _LOCAL_PROCESS_GROUP + assert _LOCAL_PROCESS_GROUP is None + assert get_world_size() % num_workers_per_machine == 0 + num_machines = get_world_size() // num_workers_per_machine + machine_rank = get_rank() // num_workers_per_machine + for i in range(num_machines): + ranks_on_i = list(range(i * num_workers_per_machine, (i + 1) * num_workers_per_machine)) + pg = dist.new_group(ranks_on_i) + if i == machine_rank: + _LOCAL_PROCESS_GROUP = pg + + +def get_local_process_group(): + """ + Returns: + A torch process group which only includes processes that are on the same + machine as the current process. This group can be useful for communication + within a machine, e.g. a per-machine SyncBN. + """ + assert _LOCAL_PROCESS_GROUP is not None, _MISSING_LOCAL_PG_ERROR + return _LOCAL_PROCESS_GROUP + + +def get_local_rank() -> int: + """ + Returns: + The rank of the current process within the local (per-machine) process group. + """ + if not dist.is_available(): + return 0 + if not dist.is_initialized(): + return 0 + assert _LOCAL_PROCESS_GROUP is not None, _MISSING_LOCAL_PG_ERROR + return dist.get_rank(group=_LOCAL_PROCESS_GROUP) + + +def get_local_size() -> int: + """ + Returns: + The size of the per-machine process group, + i.e. the number of processes per machine. + """ + if not dist.is_available(): + return 1 + if not dist.is_initialized(): + return 1 + assert _LOCAL_PROCESS_GROUP is not None, _MISSING_LOCAL_PG_ERROR + return dist.get_world_size(group=_LOCAL_PROCESS_GROUP) + + +def is_main_process() -> bool: + return get_rank() == 0 + + +def synchronize(): + """ + Helper function to synchronize (barrier) among all processes when + using distributed training + """ + if not dist.is_available(): + return + if not dist.is_initialized(): + return + world_size = dist.get_world_size() + if world_size == 1: + return + if dist.get_backend() == dist.Backend.NCCL: + # This argument is needed to avoid warnings. + # It's valid only for NCCL backend. + dist.barrier(device_ids=[torch.cuda.current_device()]) + else: + dist.barrier() + + +@functools.lru_cache() +def _get_global_gloo_group(): + """ + Return a process group based on gloo backend, containing all the ranks + The result is cached. + """ + if dist.get_backend() == "nccl": + return dist.new_group(backend="gloo") + else: + return dist.group.WORLD + + +def all_gather(data, group=None): + """ + Run all_gather on arbitrary picklable data (not necessarily tensors). + + Args: + data: any picklable object + group: a torch process group. By default, will use a group which + contains all ranks on gloo backend. + + Returns: + list[data]: list of data gathered from each rank + """ + if get_world_size() == 1: + return [data] + if group is None: + group = _get_global_gloo_group() # use CPU group by default, to reduce GPU RAM usage. + world_size = dist.get_world_size(group) + if world_size == 1: + return [data] + + output = [None for _ in range(world_size)] + dist.all_gather_object(output, data, group=group) + return output + + +def gather(data, dst=0, group=None): + """ + Run gather on arbitrary picklable data (not necessarily tensors). + + Args: + data: any picklable object + dst (int): destination rank + group: a torch process group. By default, will use a group which + contains all ranks on gloo backend. + + Returns: + list[data]: on dst, a list of data gathered from each rank. Otherwise, + an empty list. + """ + if get_world_size() == 1: + return [data] + if group is None: + group = _get_global_gloo_group() + world_size = dist.get_world_size(group=group) + if world_size == 1: + return [data] + rank = dist.get_rank(group=group) + + if rank == dst: + output = [None for _ in range(world_size)] + dist.gather_object(data, output, dst=dst, group=group) + return output + else: + dist.gather_object(data, None, dst=dst, group=group) + return [] + + +def shared_random_seed(): + """ + Returns: + int: a random number that is the same across all workers. + If workers need a shared RNG, they can use this shared seed to + create one. + + All workers must call this function, otherwise it will deadlock. + """ + ints = np.random.randint(2**31) + all_ints = all_gather(ints) + return all_ints[0] + + +def reduce_dict(input_dict, average=True): + """ + Reduce the values in the dictionary from all processes so that process with rank + 0 has the reduced results. + + Args: + input_dict (dict): inputs to be reduced. All the values must be scalar CUDA Tensor. + average (bool): whether to do average or sum + + Returns: + a dict with the same keys as input_dict, after reduction. + """ + world_size = get_world_size() + if world_size < 2: + return input_dict + with torch.no_grad(): + names = [] + values = [] + # sort the keys so that they are consistent across processes + for k in sorted(input_dict.keys()): + names.append(k) + values.append(input_dict[k]) + values = torch.stack(values, dim=0) + dist.reduce(values, dst=0) + if dist.get_rank() == 0 and average: + # only main process gets accumulated, so only divide by + # world_size in this case + values /= world_size + reduced_dict = {k: v for k, v in zip(names, values)} + return reduced_dict diff --git a/detectron2/detectron2/utils/develop.py b/detectron2/detectron2/utils/develop.py new file mode 100755 index 0000000..e841698 --- /dev/null +++ b/detectron2/detectron2/utils/develop.py @@ -0,0 +1,59 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +""" Utilities for developers only. +These are not visible to users (not automatically imported). And should not +appeared in docs.""" +# adapted from https://github.com/tensorpack/tensorpack/blob/master/tensorpack/utils/develop.py + + +def create_dummy_class(klass, dependency, message=""): + """ + When a dependency of a class is not available, create a dummy class which throws ImportError + when used. + + Args: + klass (str): name of the class. + dependency (str): name of the dependency. + message: extra message to print + Returns: + class: a class object + """ + err = "Cannot import '{}', therefore '{}' is not available.".format(dependency, klass) + if message: + err = err + " " + message + + class _DummyMetaClass(type): + # throw error on class attribute access + def __getattr__(_, __): # noqa: B902 + raise ImportError(err) + + class _Dummy(object, metaclass=_DummyMetaClass): + # throw error on constructor + def __init__(self, *args, **kwargs): + raise ImportError(err) + + return _Dummy + + +def create_dummy_func(func, dependency, message=""): + """ + When a dependency of a function is not available, create a dummy function which throws + ImportError when used. + + Args: + func (str): name of the function. + dependency (str or list[str]): name(s) of the dependency. + message: extra message to print + Returns: + function: a function object + """ + err = "Cannot import '{}', therefore '{}' is not available.".format(dependency, func) + if message: + err = err + " " + message + + if isinstance(dependency, (list, tuple)): + dependency = ",".join(dependency) + + def _dummy(*args, **kwargs): + raise ImportError(err) + + return _dummy diff --git a/detectron2/detectron2/utils/env.py b/detectron2/detectron2/utils/env.py new file mode 100755 index 0000000..40634c1 --- /dev/null +++ b/detectron2/detectron2/utils/env.py @@ -0,0 +1,170 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import importlib +import importlib.util +import logging +import numpy as np +import os +import random +import sys +from datetime import datetime +import torch + +__all__ = ["seed_all_rng"] + + +TORCH_VERSION = tuple(int(x) for x in torch.__version__.split(".")[:2]) +""" +PyTorch version as a tuple of 2 ints. Useful for comparison. +""" + + +DOC_BUILDING = os.getenv("_DOC_BUILDING", False) # set in docs/conf.py +""" +Whether we're building documentation. +""" + + +def seed_all_rng(seed=None): + """ + Set the random seed for the RNG in torch, numpy and python. + + Args: + seed (int): if None, will use a strong random seed. + """ + if seed is None: + seed = ( + os.getpid() + + int(datetime.now().strftime("%S%f")) + + int.from_bytes(os.urandom(2), "big") + ) + logger = logging.getLogger(__name__) + logger.info("Using a generated random seed {}".format(seed)) + np.random.seed(seed) + torch.manual_seed(seed) + random.seed(seed) + os.environ["PYTHONHASHSEED"] = str(seed) + + +# from https://stackoverflow.com/questions/67631/how-to-import-a-module-given-the-full-path +def _import_file(module_name, file_path, make_importable=False): + spec = importlib.util.spec_from_file_location(module_name, file_path) + module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(module) + if make_importable: + sys.modules[module_name] = module + return module + + +def _configure_libraries(): + """ + Configurations for some libraries. + """ + # An environment option to disable `import cv2` globally, + # in case it leads to negative performance impact + disable_cv2 = int(os.environ.get("DETECTRON2_DISABLE_CV2", False)) + if disable_cv2: + sys.modules["cv2"] = None + else: + # Disable opencl in opencv since its interaction with cuda often has negative effects + # This envvar is supported after OpenCV 3.4.0 + os.environ["OPENCV_OPENCL_RUNTIME"] = "disabled" + try: + import cv2 + + if int(cv2.__version__.split(".")[0]) >= 3: + cv2.ocl.setUseOpenCL(False) + except ModuleNotFoundError: + # Other types of ImportError, if happened, should not be ignored. + # Because a failed opencv import could mess up address space + # https://github.com/skvark/opencv-python/issues/381 + pass + + def get_version(module, digit=2): + return tuple(map(int, module.__version__.split(".")[:digit])) + + # fmt: off + assert get_version(torch) >= (1, 4), "Requires torch>=1.4" + import fvcore + assert get_version(fvcore, 3) >= (0, 1, 2), "Requires fvcore>=0.1.2" + import yaml + assert get_version(yaml) >= (5, 1), "Requires pyyaml>=5.1" + # fmt: on + + +_ENV_SETUP_DONE = False + + +def setup_environment(): + """Perform environment setup work. The default setup is a no-op, but this + function allows the user to specify a Python source file or a module in + the $DETECTRON2_ENV_MODULE environment variable, that performs + custom setup work that may be necessary to their computing environment. + """ + global _ENV_SETUP_DONE + if _ENV_SETUP_DONE: + return + _ENV_SETUP_DONE = True + + _configure_libraries() + + custom_module_path = os.environ.get("DETECTRON2_ENV_MODULE") + + if custom_module_path: + setup_custom_environment(custom_module_path) + else: + # The default setup is a no-op + pass + + +def setup_custom_environment(custom_module): + """ + Load custom environment setup by importing a Python source file or a + module, and run the setup function. + """ + if custom_module.endswith(".py"): + module = _import_file("detectron2.utils.env.custom_module", custom_module) + else: + module = importlib.import_module(custom_module) + assert hasattr(module, "setup_environment") and callable(module.setup_environment), ( + "Custom environment module defined in {} does not have the " + "required callable attribute 'setup_environment'." + ).format(custom_module) + module.setup_environment() + + +def fixup_module_metadata(module_name, namespace, keys=None): + """ + Fix the __qualname__ of module members to be their exported api name, so + when they are referenced in docs, sphinx can find them. Reference: + https://github.com/python-trio/trio/blob/6754c74eacfad9cc5c92d5c24727a2f3b620624e/trio/_util.py#L216-L241 + """ + if not DOC_BUILDING: + return + seen_ids = set() + + def fix_one(qualname, name, obj): + # avoid infinite recursion (relevant when using + # typing.Generic, for example) + if id(obj) in seen_ids: + return + seen_ids.add(id(obj)) + + mod = getattr(obj, "__module__", None) + if mod is not None and (mod.startswith(module_name) or mod.startswith("fvcore.")): + obj.__module__ = module_name + # Modules, unlike everything else in Python, put fully-qualitied + # names into their __name__ attribute. We check for "." to avoid + # rewriting these. + if hasattr(obj, "__name__") and "." not in obj.__name__: + obj.__name__ = name + obj.__qualname__ = qualname + if isinstance(obj, type): + for attr_name, attr_value in obj.__dict__.items(): + fix_one(objname + "." + attr_name, attr_name, attr_value) + + if keys is None: + keys = namespace.keys() + for objname in keys: + if not objname.startswith("_"): + obj = namespace[objname] + fix_one(objname, objname, obj) diff --git a/detectron2/detectron2/utils/events.py b/detectron2/detectron2/utils/events.py new file mode 100755 index 0000000..3939938 --- /dev/null +++ b/detectron2/detectron2/utils/events.py @@ -0,0 +1,542 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import datetime +import json +import logging +import os +import time +from collections import defaultdict +from contextlib import contextmanager +from functools import cached_property +from typing import Optional +import torch +from fvcore.common.history_buffer import HistoryBuffer + +from detectron2.utils.file_io import PathManager + +__all__ = [ + "get_event_storage", + "JSONWriter", + "TensorboardXWriter", + "CommonMetricPrinter", + "EventStorage", +] + +_CURRENT_STORAGE_STACK = [] + + +def get_event_storage(): + """ + Returns: + The :class:`EventStorage` object that's currently being used. + Throws an error if no :class:`EventStorage` is currently enabled. + """ + assert len( + _CURRENT_STORAGE_STACK + ), "get_event_storage() has to be called inside a 'with EventStorage(...)' context!" + return _CURRENT_STORAGE_STACK[-1] + + +class EventWriter: + """ + Base class for writers that obtain events from :class:`EventStorage` and process them. + """ + + def write(self): + raise NotImplementedError + + def close(self): + pass + + +class JSONWriter(EventWriter): + """ + Write scalars to a json file. + + It saves scalars as one json per line (instead of a big json) for easy parsing. + + Examples parsing such a json file: + :: + $ cat metrics.json | jq -s '.[0:2]' + [ + { + "data_time": 0.008433341979980469, + "iteration": 19, + "loss": 1.9228371381759644, + "loss_box_reg": 0.050025828182697296, + "loss_classifier": 0.5316952466964722, + "loss_mask": 0.7236229181289673, + "loss_rpn_box": 0.0856662318110466, + "loss_rpn_cls": 0.48198649287223816, + "lr": 0.007173333333333333, + "time": 0.25401854515075684 + }, + { + "data_time": 0.007216215133666992, + "iteration": 39, + "loss": 1.282649278640747, + "loss_box_reg": 0.06222952902317047, + "loss_classifier": 0.30682939291000366, + "loss_mask": 0.6970193982124329, + "loss_rpn_box": 0.038663312792778015, + "loss_rpn_cls": 0.1471673548221588, + "lr": 0.007706666666666667, + "time": 0.2490077018737793 + } + ] + + $ cat metrics.json | jq '.loss_mask' + 0.7126231789588928 + 0.689423680305481 + 0.6776131987571716 + ... + + """ + + def __init__(self, json_file, window_size=20): + """ + Args: + json_file (str): path to the json file. New data will be appended if the file exists. + window_size (int): the window size of median smoothing for the scalars whose + `smoothing_hint` are True. + """ + self._file_handle = PathManager.open(json_file, "a") + self._window_size = window_size + self._last_write = -1 + + def write(self): + storage = get_event_storage() + to_save = defaultdict(dict) + + for k, (v, iter) in storage.latest_with_smoothing_hint(self._window_size).items(): + # keep scalars that have not been written + if iter <= self._last_write: + continue + to_save[iter][k] = v + if len(to_save): + all_iters = sorted(to_save.keys()) + self._last_write = max(all_iters) + + for itr, scalars_per_iter in to_save.items(): + scalars_per_iter["iteration"] = itr + self._file_handle.write(json.dumps(scalars_per_iter, sort_keys=True) + "\n") + self._file_handle.flush() + try: + os.fsync(self._file_handle.fileno()) + except AttributeError: + pass + + def close(self): + self._file_handle.close() + + +class TensorboardXWriter(EventWriter): + """ + Write all scalars to a tensorboard file. + """ + + def __init__(self, log_dir: str, window_size: int = 20, **kwargs): + """ + Args: + log_dir (str): the directory to save the output events + window_size (int): the scalars will be median-smoothed by this window size + + kwargs: other arguments passed to `torch.utils.tensorboard.SummaryWriter(...)` + """ + self._window_size = window_size + self._writer_args = {"log_dir": log_dir, **kwargs} + self._last_write = -1 + + @cached_property + def _writer(self): + from torch.utils.tensorboard import SummaryWriter + + return SummaryWriter(**self._writer_args) + + def write(self): + storage = get_event_storage() + new_last_write = self._last_write + for k, (v, iter) in storage.latest_with_smoothing_hint(self._window_size).items(): + if iter > self._last_write: + self._writer.add_scalar(k, v, iter) + new_last_write = max(new_last_write, iter) + self._last_write = new_last_write + + # storage.put_{image,histogram} is only meant to be used by + # tensorboard writer. So we access its internal fields directly from here. + if len(storage._vis_data) >= 1: + for img_name, img, step_num in storage._vis_data: + self._writer.add_image(img_name, img, step_num) + # Storage stores all image data and rely on this writer to clear them. + # As a result it assumes only one writer will use its image data. + # An alternative design is to let storage store limited recent + # data (e.g. only the most recent image) that all writers can access. + # In that case a writer may not see all image data if its period is long. + storage.clear_images() + + if len(storage._histograms) >= 1: + for params in storage._histograms: + self._writer.add_histogram_raw(**params) + storage.clear_histograms() + + def close(self): + if "_writer" in self.__dict__: + self._writer.close() + + +class CommonMetricPrinter(EventWriter): + """ + Print **common** metrics to the terminal, including + iteration time, ETA, memory, all losses, and the learning rate. + It also applies smoothing using a window of 20 elements. + + It's meant to print common metrics in common ways. + To print something in more customized ways, please implement a similar printer by yourself. + """ + + def __init__(self, max_iter: Optional[int] = None, window_size: int = 20): + """ + Args: + max_iter: the maximum number of iterations to train. + Used to compute ETA. If not given, ETA will not be printed. + window_size (int): the losses will be median-smoothed by this window size + """ + self.logger = logging.getLogger(__name__) + self._max_iter = max_iter + self._window_size = window_size + self._last_write = None # (step, time) of last call to write(). Used to compute ETA + + def _get_eta(self, storage) -> Optional[str]: + if self._max_iter is None: + return "" + iteration = storage.iter + try: + eta_seconds = storage.history("time").median(1000) * (self._max_iter - iteration - 1) + storage.put_scalar("eta_seconds", eta_seconds, smoothing_hint=False) + return str(datetime.timedelta(seconds=int(eta_seconds))) + except KeyError: + # estimate eta on our own - more noisy + eta_string = None + if self._last_write is not None: + estimate_iter_time = (time.perf_counter() - self._last_write[1]) / ( + iteration - self._last_write[0] + ) + eta_seconds = estimate_iter_time * (self._max_iter - iteration - 1) + eta_string = str(datetime.timedelta(seconds=int(eta_seconds))) + self._last_write = (iteration, time.perf_counter()) + return eta_string + + def write(self): + storage = get_event_storage() + iteration = storage.iter + if iteration == self._max_iter: + # This hook only reports training progress (loss, ETA, etc) but not other data, + # therefore do not write anything after training succeeds, even if this method + # is called. + return + + try: + avg_data_time = storage.history("data_time").avg( + storage.count_samples("data_time", self._window_size) + ) + last_data_time = storage.history("data_time").latest() + except KeyError: + # they may not exist in the first few iterations (due to warmup) + # or when SimpleTrainer is not used + avg_data_time = None + last_data_time = None + try: + avg_iter_time = storage.history("time").global_avg() + last_iter_time = storage.history("time").latest() + except KeyError: + avg_iter_time = None + last_iter_time = None + try: + lr = "{:.5g}".format(storage.history("lr").latest()) + except KeyError: + lr = "N/A" + + eta_string = self._get_eta(storage) + + if torch.cuda.is_available(): + max_mem_mb = torch.cuda.max_memory_allocated() / 1024.0 / 1024.0 + else: + max_mem_mb = None + + # NOTE: max_mem is parsed by grep in "dev/parse_results.sh" + self.logger.info( + str.format( + " {eta}iter: {iter} {losses} {non_losses} {avg_time}{last_time}" + + "{avg_data_time}{last_data_time} lr: {lr} {memory}", + eta=f"eta: {eta_string} " if eta_string else "", + iter=iteration, + losses=" ".join( + [ + "{}: {:.4g}".format( + k, v.median(storage.count_samples(k, self._window_size)) + ) + for k, v in storage.histories().items() + if "loss" in k + ] + ), + non_losses=" ".join( + [ + "{}: {:.4g}".format( + k, v.median(storage.count_samples(k, self._window_size)) + ) + for k, v in storage.histories().items() + if "[metric]" in k + ] + ), + avg_time="time: {:.4f} ".format(avg_iter_time) + if avg_iter_time is not None + else "", + last_time="last_time: {:.4f} ".format(last_iter_time) + if last_iter_time is not None + else "", + avg_data_time="data_time: {:.4f} ".format(avg_data_time) + if avg_data_time is not None + else "", + last_data_time="last_data_time: {:.4f} ".format(last_data_time) + if last_data_time is not None + else "", + lr=lr, + memory="max_mem: {:.0f}M".format(max_mem_mb) if max_mem_mb is not None else "", + ) + ) + + +class EventStorage: + """ + The user-facing class that provides metric storage functionalities. + + In the future we may add support for storing / logging other types of data if needed. + """ + + def __init__(self, start_iter=0): + """ + Args: + start_iter (int): the iteration number to start with + """ + self._history = defaultdict(HistoryBuffer) + self._smoothing_hints = {} + self._latest_scalars = {} + self._iter = start_iter + self._current_prefix = "" + self._vis_data = [] + self._histograms = [] + + def put_image(self, img_name, img_tensor): + """ + Add an `img_tensor` associated with `img_name`, to be shown on + tensorboard. + + Args: + img_name (str): The name of the image to put into tensorboard. + img_tensor (torch.Tensor or numpy.array): An `uint8` or `float` + Tensor of shape `[channel, height, width]` where `channel` is + 3. The image format should be RGB. The elements in img_tensor + can either have values in [0, 1] (float32) or [0, 255] (uint8). + The `img_tensor` will be visualized in tensorboard. + """ + self._vis_data.append((img_name, img_tensor, self._iter)) + + def put_scalar(self, name, value, smoothing_hint=True, cur_iter=None): + """ + Add a scalar `value` to the `HistoryBuffer` associated with `name`. + + Args: + smoothing_hint (bool): a 'hint' on whether this scalar is noisy and should be + smoothed when logged. The hint will be accessible through + :meth:`EventStorage.smoothing_hints`. A writer may ignore the hint + and apply custom smoothing rule. + + It defaults to True because most scalars we save need to be smoothed to + provide any useful signal. + cur_iter (int): an iteration number to set explicitly instead of current iteration + """ + name = self._current_prefix + name + cur_iter = self._iter if cur_iter is None else cur_iter + history = self._history[name] + value = float(value) + history.update(value, cur_iter) + self._latest_scalars[name] = (value, cur_iter) + + existing_hint = self._smoothing_hints.get(name) + + if existing_hint is not None: + assert ( + existing_hint == smoothing_hint + ), "Scalar {} was put with a different smoothing_hint!".format(name) + else: + self._smoothing_hints[name] = smoothing_hint + + def put_scalars(self, *, smoothing_hint=True, cur_iter=None, **kwargs): + """ + Put multiple scalars from keyword arguments. + + Examples: + + storage.put_scalars(loss=my_loss, accuracy=my_accuracy, smoothing_hint=True) + """ + for k, v in kwargs.items(): + self.put_scalar(k, v, smoothing_hint=smoothing_hint, cur_iter=cur_iter) + + def put_histogram(self, hist_name, hist_tensor, bins=1000): + """ + Create a histogram from a tensor. + + Args: + hist_name (str): The name of the histogram to put into tensorboard. + hist_tensor (torch.Tensor): A Tensor of arbitrary shape to be converted + into a histogram. + bins (int): Number of histogram bins. + """ + ht_min, ht_max = hist_tensor.min().item(), hist_tensor.max().item() + + # Create a histogram with PyTorch + hist_counts = torch.histc(hist_tensor, bins=bins) + hist_edges = torch.linspace(start=ht_min, end=ht_max, steps=bins + 1, dtype=torch.float32) + + # Parameter for the add_histogram_raw function of SummaryWriter + hist_params = dict( + tag=hist_name, + min=ht_min, + max=ht_max, + num=len(hist_tensor), + sum=float(hist_tensor.sum()), + sum_squares=float(torch.sum(hist_tensor**2)), + bucket_limits=hist_edges[1:].tolist(), + bucket_counts=hist_counts.tolist(), + global_step=self._iter, + ) + self._histograms.append(hist_params) + + def history(self, name): + """ + Returns: + HistoryBuffer: the scalar history for name + """ + ret = self._history.get(name, None) + if ret is None: + raise KeyError("No history metric available for {}!".format(name)) + return ret + + def histories(self): + """ + Returns: + dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars + """ + return self._history + + def latest(self): + """ + Returns: + dict[str -> (float, int)]: mapping from the name of each scalar to the most + recent value and the iteration number its added. + """ + return self._latest_scalars + + def latest_with_smoothing_hint(self, window_size=20): + """ + Similar to :meth:`latest`, but the returned values + are either the un-smoothed original latest value, + or a median of the given window_size, + depend on whether the smoothing_hint is True. + + This provides a default behavior that other writers can use. + + Note: All scalars saved in the past `window_size` iterations are used for smoothing. + This is different from the `window_size` definition in HistoryBuffer. + Use :meth:`get_history_window_size` to get the `window_size` used in HistoryBuffer. + """ + result = {} + for k, (v, itr) in self._latest_scalars.items(): + result[k] = ( + self._history[k].median(self.count_samples(k, window_size)) + if self._smoothing_hints[k] + else v, + itr, + ) + return result + + def count_samples(self, name, window_size=20): + """ + Return the number of samples logged in the past `window_size` iterations. + """ + samples = 0 + data = self._history[name].values() + for _, iter_ in reversed(data): + if iter_ > data[-1][1] - window_size: + samples += 1 + else: + break + return samples + + def smoothing_hints(self): + """ + Returns: + dict[name -> bool]: the user-provided hint on whether the scalar + is noisy and needs smoothing. + """ + return self._smoothing_hints + + def step(self): + """ + User should either: (1) Call this function to increment storage.iter when needed. Or + (2) Set `storage.iter` to the correct iteration number before each iteration. + + The storage will then be able to associate the new data with an iteration number. + """ + self._iter += 1 + + @property + def iter(self): + """ + Returns: + int: The current iteration number. When used together with a trainer, + this is ensured to be the same as trainer.iter. + """ + return self._iter + + @iter.setter + def iter(self, val): + self._iter = int(val) + + @property + def iteration(self): + # for backward compatibility + return self._iter + + def __enter__(self): + _CURRENT_STORAGE_STACK.append(self) + return self + + def __exit__(self, exc_type, exc_val, exc_tb): + assert _CURRENT_STORAGE_STACK[-1] == self + _CURRENT_STORAGE_STACK.pop() + + @contextmanager + def name_scope(self, name): + """ + Yields: + A context within which all the events added to this storage + will be prefixed by the name scope. + """ + old_prefix = self._current_prefix + self._current_prefix = name.rstrip("/") + "/" + yield + self._current_prefix = old_prefix + + def clear_images(self): + """ + Delete all the stored images for visualization. This should be called + after images are written to tensorboard. + """ + self._vis_data = [] + + def clear_histograms(self): + """ + Delete all the stored histograms for visualization. + This should be called after histograms are written to tensorboard. + """ + self._histograms = [] diff --git a/detectron2/detectron2/utils/file_io.py b/detectron2/detectron2/utils/file_io.py new file mode 100755 index 0000000..09f7dff --- /dev/null +++ b/detectron2/detectron2/utils/file_io.py @@ -0,0 +1,39 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from iopath.common.file_io import HTTPURLHandler, OneDrivePathHandler, PathHandler +from iopath.common.file_io import PathManager as PathManagerBase + +__all__ = ["PathManager", "PathHandler"] + + +PathManager = PathManagerBase() +""" +This is a detectron2 project-specific PathManager. +We try to stay away from global PathManager in fvcore as it +introduces potential conflicts among other libraries. +""" + + +class Detectron2Handler(PathHandler): + """ + Resolve anything that's hosted under detectron2's namespace. + """ + + PREFIX = "detectron2://" + S3_DETECTRON2_PREFIX = "https://dl.fbaipublicfiles.com/detectron2/" + + def _get_supported_prefixes(self): + return [self.PREFIX] + + def _get_local_path(self, path, **kwargs): + name = path[len(self.PREFIX) :] + return PathManager.get_local_path(self.S3_DETECTRON2_PREFIX + name, **kwargs) + + def _open(self, path, mode="r", **kwargs): + return PathManager.open( + self.S3_DETECTRON2_PREFIX + path[len(self.PREFIX) :], mode, **kwargs + ) + + +PathManager.register_handler(HTTPURLHandler()) +PathManager.register_handler(OneDrivePathHandler()) +PathManager.register_handler(Detectron2Handler()) diff --git a/detectron2/detectron2/utils/logger.py b/detectron2/detectron2/utils/logger.py new file mode 100755 index 0000000..85be03c --- /dev/null +++ b/detectron2/detectron2/utils/logger.py @@ -0,0 +1,261 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import atexit +import functools +import logging +import os +import sys +import time +from collections import Counter +import torch +from tabulate import tabulate +from termcolor import colored + +from detectron2.utils.file_io import PathManager + +__all__ = ["setup_logger", "log_first_n", "log_every_n", "log_every_n_seconds"] + +D2_LOG_BUFFER_SIZE_KEY: str = "D2_LOG_BUFFER_SIZE" + +DEFAULT_LOG_BUFFER_SIZE: int = 1024 * 1024 # 1MB + + +class _ColorfulFormatter(logging.Formatter): + def __init__(self, *args, **kwargs): + self._root_name = kwargs.pop("root_name") + "." + self._abbrev_name = kwargs.pop("abbrev_name", "") + if len(self._abbrev_name): + self._abbrev_name = self._abbrev_name + "." + super(_ColorfulFormatter, self).__init__(*args, **kwargs) + + def formatMessage(self, record): + record.name = record.name.replace(self._root_name, self._abbrev_name) + log = super(_ColorfulFormatter, self).formatMessage(record) + if record.levelno == logging.WARNING: + prefix = colored("WARNING", "red", attrs=["blink"]) + elif record.levelno == logging.ERROR or record.levelno == logging.CRITICAL: + prefix = colored("ERROR", "red", attrs=["blink", "underline"]) + else: + return log + return prefix + " " + log + + +@functools.lru_cache() # so that calling setup_logger multiple times won't add many handlers +def setup_logger( + output=None, + distributed_rank=0, + *, + color=True, + name="detectron2", + abbrev_name=None, + enable_propagation: bool = False, + configure_stdout: bool = True +): + """ + Initialize the detectron2 logger and set its verbosity level to "DEBUG". + + Args: + output (str): a file name or a directory to save log. If None, will not save log file. + If ends with ".txt" or ".log", assumed to be a file name. + Otherwise, logs will be saved to `output/log.txt`. + name (str): the root module name of this logger + abbrev_name (str): an abbreviation of the module, to avoid long names in logs. + Set to "" to not log the root module in logs. + By default, will abbreviate "detectron2" to "d2" and leave other + modules unchanged. + enable_propagation (bool): whether to propagate logs to the parent logger. + configure_stdout (bool): whether to configure logging to stdout. + + + Returns: + logging.Logger: a logger + """ + logger = logging.getLogger(name) + logger.setLevel(logging.DEBUG) + logger.propagate = enable_propagation + + if abbrev_name is None: + abbrev_name = "d2" if name == "detectron2" else name + + plain_formatter = logging.Formatter( + "[%(asctime)s] %(name)s %(levelname)s: %(message)s", datefmt="%m/%d %H:%M:%S" + ) + # stdout logging: master only + if configure_stdout and distributed_rank == 0: + ch = logging.StreamHandler(stream=sys.stdout) + ch.setLevel(logging.DEBUG) + if color: + formatter = _ColorfulFormatter( + colored("[%(asctime)s %(name)s]: ", "green") + "%(message)s", + datefmt="%m/%d %H:%M:%S", + root_name=name, + abbrev_name=str(abbrev_name), + ) + else: + formatter = plain_formatter + ch.setFormatter(formatter) + logger.addHandler(ch) + + # file logging: all workers + if output is not None: + if output.endswith(".txt") or output.endswith(".log"): + filename = output + else: + filename = os.path.join(output, "log.txt") + if distributed_rank > 0: + filename = filename + ".rank{}".format(distributed_rank) + PathManager.mkdirs(os.path.dirname(filename)) + + fh = logging.StreamHandler(_cached_log_stream(filename)) + fh.setLevel(logging.DEBUG) + fh.setFormatter(plain_formatter) + logger.addHandler(fh) + + return logger + + +# cache the opened file object, so that different calls to `setup_logger` +# with the same file name can safely write to the same file. +@functools.lru_cache(maxsize=None) +def _cached_log_stream(filename): + # use 1K buffer if writing to cloud storage + io = PathManager.open(filename, "a", buffering=_get_log_stream_buffer_size(filename)) + atexit.register(io.close) + return io + + +def _get_log_stream_buffer_size(filename: str) -> int: + if "://" not in filename: + # Local file, no extra caching is necessary + return -1 + # Remote file requires a larger cache to avoid many small writes. + if D2_LOG_BUFFER_SIZE_KEY in os.environ: + return int(os.environ[D2_LOG_BUFFER_SIZE_KEY]) + return DEFAULT_LOG_BUFFER_SIZE + + +""" +Below are some other convenient logging methods. +They are mainly adopted from +https://github.com/abseil/abseil-py/blob/master/absl/logging/__init__.py +""" + + +def _find_caller(): + """ + Returns: + str: module name of the caller + tuple: a hashable key to be used to identify different callers + """ + frame = sys._getframe(2) + while frame: + code = frame.f_code + if os.path.join("utils", "logger.") not in code.co_filename: + mod_name = frame.f_globals["__name__"] + if mod_name == "__main__": + mod_name = "detectron2" + return mod_name, (code.co_filename, frame.f_lineno, code.co_name) + frame = frame.f_back + + +_LOG_COUNTER = Counter() +_LOG_TIMER = {} + + +def log_first_n(lvl, msg, n=1, *, name=None, key="caller"): + """ + Log only for the first n times. + + Args: + lvl (int): the logging level + msg (str): + n (int): + name (str): name of the logger to use. Will use the caller's module by default. + key (str or tuple[str]): the string(s) can be one of "caller" or + "message", which defines how to identify duplicated logs. + For example, if called with `n=1, key="caller"`, this function + will only log the first call from the same caller, regardless of + the message content. + If called with `n=1, key="message"`, this function will log the + same content only once, even if they are called from different places. + If called with `n=1, key=("caller", "message")`, this function + will not log only if the same caller has logged the same message before. + """ + if isinstance(key, str): + key = (key,) + assert len(key) > 0 + + caller_module, caller_key = _find_caller() + hash_key = () + if "caller" in key: + hash_key = hash_key + caller_key + if "message" in key: + hash_key = hash_key + (msg,) + + _LOG_COUNTER[hash_key] += 1 + if _LOG_COUNTER[hash_key] <= n: + logging.getLogger(name or caller_module).log(lvl, msg) + + +def log_every_n(lvl, msg, n=1, *, name=None): + """ + Log once per n times. + + Args: + lvl (int): the logging level + msg (str): + n (int): + name (str): name of the logger to use. Will use the caller's module by default. + """ + caller_module, key = _find_caller() + _LOG_COUNTER[key] += 1 + if n == 1 or _LOG_COUNTER[key] % n == 1: + logging.getLogger(name or caller_module).log(lvl, msg) + + +def log_every_n_seconds(lvl, msg, n=1, *, name=None): + """ + Log no more than once per n seconds. + + Args: + lvl (int): the logging level + msg (str): + n (int): + name (str): name of the logger to use. Will use the caller's module by default. + """ + caller_module, key = _find_caller() + last_logged = _LOG_TIMER.get(key, None) + current_time = time.time() + if last_logged is None or current_time - last_logged >= n: + logging.getLogger(name or caller_module).log(lvl, msg) + _LOG_TIMER[key] = current_time + + +def create_small_table(small_dict): + """ + Create a small table using the keys of small_dict as headers. This is only + suitable for small dictionaries. + + Args: + small_dict (dict): a result dictionary of only a few items. + + Returns: + str: the table as a string. + """ + keys, values = tuple(zip(*small_dict.items())) + table = tabulate( + [values], + headers=keys, + tablefmt="pipe", + floatfmt=".3f", + stralign="center", + numalign="center", + ) + return table + + +def _log_api_usage(identifier: str): + """ + Internal function used to log the usage of different detectron2 components + inside facebook's infra. + """ + torch._C._log_api_usage_once("detectron2." + identifier) diff --git a/detectron2/detectron2/utils/memory.py b/detectron2/detectron2/utils/memory.py new file mode 100755 index 0000000..bd49478 --- /dev/null +++ b/detectron2/detectron2/utils/memory.py @@ -0,0 +1,84 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +from contextlib import contextmanager +from functools import wraps +import torch + +__all__ = ["retry_if_cuda_oom"] + + +@contextmanager +def _ignore_torch_cuda_oom(): + """ + A context which ignores CUDA OOM exception from pytorch. + """ + try: + yield + except RuntimeError as e: + # NOTE: the string may change? + if "CUDA out of memory. " in str(e): + pass + else: + raise + + +def retry_if_cuda_oom(func): + """ + Makes a function retry itself after encountering + pytorch's CUDA OOM error. + It will first retry after calling `torch.cuda.empty_cache()`. + + If that still fails, it will then retry by trying to convert inputs to CPUs. + In this case, it expects the function to dispatch to CPU implementation. + The return values may become CPU tensors as well and it's user's + responsibility to convert it back to CUDA tensor if needed. + + Args: + func: a stateless callable that takes tensor-like objects as arguments + + Returns: + a callable which retries `func` if OOM is encountered. + + Examples: + :: + output = retry_if_cuda_oom(some_torch_function)(input1, input2) + # output may be on CPU even if inputs are on GPU + + Note: + 1. When converting inputs to CPU, it will only look at each argument and check + if it has `.device` and `.to` for conversion. Nested structures of tensors + are not supported. + + 2. Since the function might be called more than once, it has to be + stateless. + """ + + def maybe_to_cpu(x): + try: + like_gpu_tensor = x.device.type == "cuda" and hasattr(x, "to") + except AttributeError: + like_gpu_tensor = False + if like_gpu_tensor: + return x.to(device="cpu") + else: + return x + + @wraps(func) + def wrapped(*args, **kwargs): + with _ignore_torch_cuda_oom(): + return func(*args, **kwargs) + + # Clear cache and retry + torch.cuda.empty_cache() + with _ignore_torch_cuda_oom(): + return func(*args, **kwargs) + + # Try on CPU. This slows down the code significantly, therefore print a notice. + logger = logging.getLogger(__name__) + logger.info("Attempting to copy inputs of {} to CPU due to CUDA OOM".format(str(func))) + new_args = (maybe_to_cpu(x) for x in args) + new_kwargs = {k: maybe_to_cpu(v) for k, v in kwargs.items()} + return func(*new_args, **new_kwargs) + + return wrapped diff --git a/detectron2/detectron2/utils/registry.py b/detectron2/detectron2/utils/registry.py new file mode 100755 index 0000000..4b01e90 --- /dev/null +++ b/detectron2/detectron2/utils/registry.py @@ -0,0 +1,60 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any +import pydoc +from fvcore.common.registry import Registry # for backward compatibility. + +""" +``Registry`` and `locate` provide ways to map a string (typically found +in config files) to callable objects. +""" + +__all__ = ["Registry", "locate"] + + +def _convert_target_to_string(t: Any) -> str: + """ + Inverse of ``locate()``. + + Args: + t: any object with ``__module__`` and ``__qualname__`` + """ + module, qualname = t.__module__, t.__qualname__ + + # Compress the path to this object, e.g. ``module.submodule._impl.class`` + # may become ``module.submodule.class``, if the later also resolves to the same + # object. This simplifies the string, and also is less affected by moving the + # class implementation. + module_parts = module.split(".") + for k in range(1, len(module_parts)): + prefix = ".".join(module_parts[:k]) + candidate = f"{prefix}.{qualname}" + try: + if locate(candidate) is t: + return candidate + except ImportError: + pass + return f"{module}.{qualname}" + + +def locate(name: str) -> Any: + """ + Locate and return an object ``x`` using an input string ``{x.__module__}.{x.__qualname__}``, + such as "module.submodule.class_name". + + Raise Exception if it cannot be found. + """ + obj = pydoc.locate(name) + + # Some cases (e.g. torch.optim.sgd.SGD) not handled correctly + # by pydoc.locate. Try a private function from hydra. + if obj is None: + try: + # from hydra.utils import get_method - will print many errors + from hydra.utils import _locate + except ImportError as e: + raise ImportError(f"Cannot dynamically locate object {name}!") from e + else: + obj = _locate(name) # it raises if fails + + return obj diff --git a/detectron2/detectron2/utils/serialize.py b/detectron2/detectron2/utils/serialize.py new file mode 100755 index 0000000..0b38862 --- /dev/null +++ b/detectron2/detectron2/utils/serialize.py @@ -0,0 +1,32 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import cloudpickle + + +class PicklableWrapper(object): + """ + Wrap an object to make it more picklable, note that it uses + heavy weight serialization libraries that are slower than pickle. + It's best to use it only on closures (which are usually not picklable). + + This is a simplified version of + https://github.com/joblib/joblib/blob/master/joblib/externals/loky/cloudpickle_wrapper.py + """ + + def __init__(self, obj): + while isinstance(obj, PicklableWrapper): + # Wrapping an object twice is no-op + obj = obj._obj + self._obj = obj + + def __reduce__(self): + s = cloudpickle.dumps(self._obj) + return cloudpickle.loads, (s,) + + def __call__(self, *args, **kwargs): + return self._obj(*args, **kwargs) + + def __getattr__(self, attr): + # Ensure that the wrapped object can be used seamlessly as the previous object. + if attr not in ["_obj"]: + return getattr(self._obj, attr) + return getattr(self, attr) diff --git a/detectron2/detectron2/utils/testing.py b/detectron2/detectron2/utils/testing.py new file mode 100755 index 0000000..3f5b9db --- /dev/null +++ b/detectron2/detectron2/utils/testing.py @@ -0,0 +1,478 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import io +import numpy as np +import os +import re +import tempfile +import unittest +from typing import Callable +import torch +import torch.onnx.symbolic_helper as sym_help +from packaging import version +from torch._C import ListType +from torch.onnx import register_custom_op_symbolic + +from detectron2 import model_zoo +from detectron2.config import CfgNode, LazyConfig, instantiate +from detectron2.data import DatasetCatalog +from detectron2.data.detection_utils import read_image +from detectron2.modeling import build_model +from detectron2.structures import Boxes, Instances, ROIMasks +from detectron2.utils.file_io import PathManager + + +""" +Internal utilities for tests. Don't use except for writing tests. +""" + + +def get_model_no_weights(config_path): + """ + Like model_zoo.get, but do not load any weights (even pretrained) + """ + cfg = model_zoo.get_config(config_path) + if isinstance(cfg, CfgNode): + if not torch.cuda.is_available(): + cfg.MODEL.DEVICE = "cpu" + return build_model(cfg) + else: + return instantiate(cfg.model) + + +def random_boxes(num_boxes, max_coord=100, device="cpu"): + """ + Create a random Nx4 boxes tensor, with coordinates < max_coord. + """ + boxes = torch.rand(num_boxes, 4, device=device) * (max_coord * 0.5) + boxes.clamp_(min=1.0) # tiny boxes cause numerical instability in box regression + # Note: the implementation of this function in torchvision is: + # boxes[:, 2:] += torch.rand(N, 2) * 100 + # but it does not guarantee non-negative widths/heights constraints: + # boxes[:, 2] >= boxes[:, 0] and boxes[:, 3] >= boxes[:, 1]: + boxes[:, 2:] += boxes[:, :2] + return boxes + + +def get_sample_coco_image(tensor=True): + """ + Args: + tensor (bool): if True, returns 3xHxW tensor. + else, returns a HxWx3 numpy array. + + Returns: + an image, in BGR color. + """ + try: + file_name = DatasetCatalog.get("coco_2017_val_100")[0]["file_name"] + if not PathManager.exists(file_name): + raise FileNotFoundError() + except IOError: + # for public CI to run + file_name = PathManager.get_local_path( + "http://images.cocodataset.org/train2017/000000000009.jpg" + ) + ret = read_image(file_name, format="BGR") + if tensor: + ret = torch.from_numpy(np.ascontiguousarray(ret.transpose(2, 0, 1))) + return ret + + +def convert_scripted_instances(instances): + """ + Convert a scripted Instances object to a regular :class:`Instances` object + """ + assert hasattr( + instances, "image_size" + ), f"Expect an Instances object, but got {type(instances)}!" + ret = Instances(instances.image_size) + for name in instances._field_names: + val = getattr(instances, "_" + name, None) + if val is not None: + ret.set(name, val) + return ret + + +def assert_instances_allclose(input, other, *, rtol=1e-5, msg="", size_as_tensor=False): + """ + Args: + input, other (Instances): + size_as_tensor: compare image_size of the Instances as tensors (instead of tuples). + Useful for comparing outputs of tracing. + """ + if not isinstance(input, Instances): + input = convert_scripted_instances(input) + if not isinstance(other, Instances): + other = convert_scripted_instances(other) + + if not msg: + msg = "Two Instances are different! " + else: + msg = msg.rstrip() + " " + + size_error_msg = msg + f"image_size is {input.image_size} vs. {other.image_size}!" + if size_as_tensor: + assert torch.equal( + torch.tensor(input.image_size), torch.tensor(other.image_size) + ), size_error_msg + else: + assert input.image_size == other.image_size, size_error_msg + fields = sorted(input.get_fields().keys()) + fields_other = sorted(other.get_fields().keys()) + assert fields == fields_other, msg + f"Fields are {fields} vs {fields_other}!" + + for f in fields: + val1, val2 = input.get(f), other.get(f) + if isinstance(val1, (Boxes, ROIMasks)): + # boxes in the range of O(100) and can have a larger tolerance + assert torch.allclose(val1.tensor, val2.tensor, atol=100 * rtol), ( + msg + f"Field {f} differs too much!" + ) + elif isinstance(val1, torch.Tensor): + if val1.dtype.is_floating_point: + mag = torch.abs(val1).max().cpu().item() + assert torch.allclose(val1, val2, atol=mag * rtol), ( + msg + f"Field {f} differs too much!" + ) + else: + assert torch.equal(val1, val2), msg + f"Field {f} is different!" + else: + raise ValueError(f"Don't know how to compare type {type(val1)}") + + +def reload_script_model(module): + """ + Save a jit module and load it back. + Similar to the `getExportImportCopy` function in torch/testing/ + """ + buffer = io.BytesIO() + torch.jit.save(module, buffer) + buffer.seek(0) + return torch.jit.load(buffer) + + +def reload_lazy_config(cfg): + """ + Save an object by LazyConfig.save and load it back. + This is used to test that a config still works the same after + serialization/deserialization. + """ + with tempfile.TemporaryDirectory(prefix="detectron2") as d: + fname = os.path.join(d, "d2_cfg_test.yaml") + LazyConfig.save(cfg, fname) + return LazyConfig.load(fname) + + +def min_torch_version(min_version: str) -> bool: + """ + Returns True when torch's version is at least `min_version`. + """ + try: + import torch + except ImportError: + return False + + installed_version = version.parse(torch.__version__.split("+")[0]) + min_version = version.parse(min_version) + return installed_version >= min_version + + +def has_dynamic_axes(onnx_model): + """ + Return True when all ONNX input/output have only dynamic axes for all ranks + """ + return all( + not dim.dim_param.isnumeric() + for inp in onnx_model.graph.input + for dim in inp.type.tensor_type.shape.dim + ) and all( + not dim.dim_param.isnumeric() + for out in onnx_model.graph.output + for dim in out.type.tensor_type.shape.dim + ) + + +def register_custom_op_onnx_export( + opname: str, symbolic_fn: Callable, opset_version: int, min_version: str +) -> None: + """ + Register `symbolic_fn` as PyTorch's symbolic `opname`-`opset_version` for ONNX export. + The registration is performed only when current PyTorch's version is < `min_version.` + IMPORTANT: symbolic must be manually unregistered after the caller function returns + """ + if min_torch_version(min_version): + return + register_custom_op_symbolic(opname, symbolic_fn, opset_version) + print(f"_register_custom_op_onnx_export({opname}, {opset_version}) succeeded.") + + +def unregister_custom_op_onnx_export(opname: str, opset_version: int, min_version: str) -> None: + """ + Unregister PyTorch's symbolic `opname`-`opset_version` for ONNX export. + The un-registration is performed only when PyTorch's version is < `min_version` + IMPORTANT: The symbolic must have been manually registered by the caller, otherwise + the incorrect symbolic may be unregistered instead. + """ + + # TODO: _unregister_custom_op_symbolic is introduced PyTorch>=1.10 + # Remove after PyTorch 1.10+ is used by ALL detectron2's CI + try: + from torch.onnx import unregister_custom_op_symbolic as _unregister_custom_op_symbolic + except ImportError: + + def _unregister_custom_op_symbolic(symbolic_name, opset_version): + import torch.onnx.symbolic_registry as sym_registry + from torch.onnx.symbolic_helper import _onnx_main_opset, _onnx_stable_opsets + + def _get_ns_op_name_from_custom_op(symbolic_name): + try: + from torch.onnx.utils import get_ns_op_name_from_custom_op + + ns, op_name = get_ns_op_name_from_custom_op(symbolic_name) + except ImportError as import_error: + if not bool( + re.match(r"^[a-zA-Z0-9-_]*::[a-zA-Z-_]+[a-zA-Z0-9-_]*$", symbolic_name) + ): + raise ValueError( + f"Invalid symbolic name {symbolic_name}. Must be `domain::name`" + ) from import_error + + ns, op_name = symbolic_name.split("::") + if ns == "onnx": + raise ValueError(f"{ns} domain cannot be modified.") from import_error + + if ns == "aten": + ns = "" + + return ns, op_name + + def _unregister_op(opname: str, domain: str, version: int): + try: + sym_registry.unregister_op(op_name, ns, ver) + except AttributeError as attribute_error: + if sym_registry.is_registered_op(opname, domain, version): + del sym_registry._registry[(domain, version)][opname] + if not sym_registry._registry[(domain, version)]: + del sym_registry._registry[(domain, version)] + else: + raise RuntimeError( + f"The opname {opname} is not registered." + ) from attribute_error + + ns, op_name = _get_ns_op_name_from_custom_op(symbolic_name) + for ver in _onnx_stable_opsets + [_onnx_main_opset]: + if ver >= opset_version: + _unregister_op(op_name, ns, ver) + + if min_torch_version(min_version): + return + _unregister_custom_op_symbolic(opname, opset_version) + print(f"_unregister_custom_op_onnx_export({opname}, {opset_version}) succeeded.") + + +skipIfOnCPUCI = unittest.skipIf( + os.environ.get("CI") and not torch.cuda.is_available(), + "The test is too slow on CPUs and will be executed on CircleCI's GPU jobs.", +) + + +def skipIfUnsupportedMinOpsetVersion(min_opset_version, current_opset_version=None): + """ + Skips tests for ONNX Opset versions older than min_opset_version. + """ + + def skip_dec(func): + def wrapper(self): + try: + opset_version = self.opset_version + except AttributeError: + opset_version = current_opset_version + if opset_version < min_opset_version: + raise unittest.SkipTest( + f"Unsupported opset_version {opset_version}" + f", required is {min_opset_version}" + ) + return func(self) + + return wrapper + + return skip_dec + + +def skipIfUnsupportedMinTorchVersion(min_version): + """ + Skips tests for PyTorch versions older than min_version. + """ + reason = f"module 'torch' has __version__ {torch.__version__}" f", required is: {min_version}" + return unittest.skipIf(not min_torch_version(min_version), reason) + + +# TODO: Remove after PyTorch 1.11.1+ is used by detectron2's CI +def _pytorch1111_symbolic_opset9_to(g, self, *args): + """aten::to() symbolic that must be used for testing with PyTorch < 1.11.1.""" + + def is_aten_to_device_only(args): + if len(args) == 4: + # aten::to(Tensor, Device, bool, bool, memory_format) + return ( + args[0].node().kind() == "prim::device" + or args[0].type().isSubtypeOf(ListType.ofInts()) + or ( + sym_help._is_value(args[0]) + and args[0].node().kind() == "onnx::Constant" + and isinstance(args[0].node()["value"], str) + ) + ) + elif len(args) == 5: + # aten::to(Tensor, Device, ScalarType, bool, bool, memory_format) + # When dtype is None, this is a aten::to(device) call + dtype = sym_help._get_const(args[1], "i", "dtype") + return dtype is None + elif len(args) in (6, 7): + # aten::to(Tensor, ScalarType, Layout, Device, bool, bool, memory_format) + # aten::to(Tensor, ScalarType, Layout, Device, bool, bool, bool, memory_format) + # When dtype is None, this is a aten::to(device) call + dtype = sym_help._get_const(args[0], "i", "dtype") + return dtype is None + return False + + # ONNX doesn't have a concept of a device, so we ignore device-only casts + if is_aten_to_device_only(args): + return self + + if len(args) == 4: + # TestONNXRuntime::test_ones_bool shows args[0] of aten::to can be onnx::Constant[Tensor] + # In this case, the constant value is a tensor not int, + # so sym_help._maybe_get_const(args[0], 'i') would not work. + dtype = args[0] + if sym_help._is_value(args[0]) and args[0].node().kind() == "onnx::Constant": + tval = args[0].node()["value"] + if isinstance(tval, torch.Tensor): + if len(tval.shape) == 0: + tval = tval.item() + dtype = int(tval) + else: + dtype = tval + + if sym_help._is_value(dtype) or isinstance(dtype, torch.Tensor): + # aten::to(Tensor, Tensor, bool, bool, memory_format) + dtype = args[0].type().scalarType() + return g.op("Cast", self, to_i=sym_help.cast_pytorch_to_onnx[dtype]) + else: + # aten::to(Tensor, ScalarType, bool, bool, memory_format) + # memory_format is ignored + return g.op("Cast", self, to_i=sym_help.scalar_type_to_onnx[dtype]) + elif len(args) == 5: + # aten::to(Tensor, Device, ScalarType, bool, bool, memory_format) + dtype = sym_help._get_const(args[1], "i", "dtype") + # memory_format is ignored + return g.op("Cast", self, to_i=sym_help.scalar_type_to_onnx[dtype]) + elif len(args) == 6: + # aten::to(Tensor, ScalarType, Layout, Device, bool, bool, memory_format) + dtype = sym_help._get_const(args[0], "i", "dtype") + # Layout, device and memory_format are ignored + return g.op("Cast", self, to_i=sym_help.scalar_type_to_onnx[dtype]) + elif len(args) == 7: + # aten::to(Tensor, ScalarType, Layout, Device, bool, bool, bool, memory_format) + dtype = sym_help._get_const(args[0], "i", "dtype") + # Layout, device and memory_format are ignored + return g.op("Cast", self, to_i=sym_help.scalar_type_to_onnx[dtype]) + else: + return sym_help._onnx_unsupported("Unknown aten::to signature") + + +# TODO: Remove after PyTorch 1.11.1+ is used by detectron2's CI +def _pytorch1111_symbolic_opset9_repeat_interleave(g, self, repeats, dim=None, output_size=None): + + # from torch.onnx.symbolic_helper import ScalarType + from torch.onnx.symbolic_opset9 import expand, unsqueeze + + input = self + # if dim is None flatten + # By default, use the flattened input array, and return a flat output array + if sym_help._is_none(dim): + input = sym_help._reshape_helper(g, self, g.op("Constant", value_t=torch.tensor([-1]))) + dim = 0 + else: + dim = sym_help._maybe_get_scalar(dim) + + repeats_dim = sym_help._get_tensor_rank(repeats) + repeats_sizes = sym_help._get_tensor_sizes(repeats) + input_sizes = sym_help._get_tensor_sizes(input) + if repeats_dim is None: + raise RuntimeError( + "Unsupported: ONNX export of repeat_interleave for unknown " "repeats rank." + ) + if repeats_sizes is None: + raise RuntimeError( + "Unsupported: ONNX export of repeat_interleave for unknown " "repeats size." + ) + if input_sizes is None: + raise RuntimeError( + "Unsupported: ONNX export of repeat_interleave for unknown " "input size." + ) + + input_sizes_temp = input_sizes.copy() + for idx, input_size in enumerate(input_sizes): + if input_size is None: + input_sizes[idx], input_sizes_temp[idx] = 0, -1 + + # Cases where repeats is an int or single value tensor + if repeats_dim == 0 or (repeats_dim == 1 and repeats_sizes[0] == 1): + if not sym_help._is_tensor(repeats): + repeats = g.op("Constant", value_t=torch.LongTensor(repeats)) + if input_sizes[dim] == 0: + return sym_help._onnx_opset_unsupported_detailed( + "repeat_interleave", + 9, + 13, + "Unsupported along dimension with unknown input size", + ) + else: + reps = input_sizes[dim] + repeats = expand(g, repeats, g.op("Constant", value_t=torch.tensor([reps])), None) + + # Cases where repeats is a 1 dim Tensor + elif repeats_dim == 1: + if input_sizes[dim] == 0: + return sym_help._onnx_opset_unsupported_detailed( + "repeat_interleave", + 9, + 13, + "Unsupported along dimension with unknown input size", + ) + if repeats_sizes[0] is None: + return sym_help._onnx_opset_unsupported_detailed( + "repeat_interleave", 9, 13, "Unsupported for cases with dynamic repeats" + ) + assert ( + repeats_sizes[0] == input_sizes[dim] + ), "repeats must have the same size as input along dim" + reps = repeats_sizes[0] + else: + raise RuntimeError("repeats must be 0-dim or 1-dim tensor") + + final_splits = list() + r_splits = sym_help._repeat_interleave_split_helper(g, repeats, reps, 0) + if isinstance(r_splits, torch._C.Value): + r_splits = [r_splits] + i_splits = sym_help._repeat_interleave_split_helper(g, input, reps, dim) + if isinstance(i_splits, torch._C.Value): + i_splits = [i_splits] + input_sizes[dim], input_sizes_temp[dim] = -1, 1 + for idx, r_split in enumerate(r_splits): + i_split = unsqueeze(g, i_splits[idx], dim + 1) + r_concat = [ + g.op("Constant", value_t=torch.LongTensor(input_sizes_temp[: dim + 1])), + r_split, + g.op("Constant", value_t=torch.LongTensor(input_sizes_temp[dim + 1 :])), + ] + r_concat = g.op("Concat", *r_concat, axis_i=0) + i_split = expand(g, i_split, r_concat, None) + i_split = sym_help._reshape_helper( + g, + i_split, + g.op("Constant", value_t=torch.LongTensor(input_sizes)), + allowzero=0, + ) + final_splits.append(i_split) + return g.op("Concat", *final_splits, axis_i=dim) diff --git a/detectron2/detectron2/utils/tracing.py b/detectron2/detectron2/utils/tracing.py new file mode 100755 index 0000000..577df4e --- /dev/null +++ b/detectron2/detectron2/utils/tracing.py @@ -0,0 +1,71 @@ +import inspect +import torch + +from detectron2.utils.env import TORCH_VERSION + +try: + from torch.fx._symbolic_trace import is_fx_tracing as is_fx_tracing_current + + tracing_current_exists = True +except ImportError: + tracing_current_exists = False + +try: + from torch.fx._symbolic_trace import _orig_module_call + + tracing_legacy_exists = True +except ImportError: + tracing_legacy_exists = False + + +@torch.jit.ignore +def is_fx_tracing_legacy() -> bool: + """ + Returns a bool indicating whether torch.fx is currently symbolically tracing a module. + Can be useful for gating module logic that is incompatible with symbolic tracing. + """ + return torch.nn.Module.__call__ is not _orig_module_call + + +@torch.jit.ignore +def is_fx_tracing() -> bool: + """Returns whether execution is currently in + Torch FX tracing mode""" + if TORCH_VERSION >= (1, 10) and tracing_current_exists: + return is_fx_tracing_current() + elif tracing_legacy_exists: + return is_fx_tracing_legacy() + else: + # Can't find either current or legacy tracing indication code. + # Enabling this assert_fx_safe() call regardless of tracing status. + return False + + +@torch.jit.ignore +def assert_fx_safe(condition: bool, message: str) -> torch.Tensor: + """An FX-tracing safe version of assert. + Avoids erroneous type assertion triggering when types are masked inside + an fx.proxy.Proxy object during tracing. + Args: condition - either a boolean expression or a string representing + the condition to test. If this assert triggers an exception when tracing + due to dynamic control flow, try encasing the expression in quotation + marks and supplying it as a string.""" + # Must return a concrete tensor for compatibility with PyTorch <=1.8. + # If <=1.8 compatibility is not needed, return type can be converted to None + if not is_fx_tracing(): + try: + if isinstance(condition, str): + caller_frame = inspect.currentframe().f_back + torch._assert( + eval(condition, caller_frame.f_globals, caller_frame.f_locals), message + ) + return torch.ones(1) + else: + torch._assert(condition, message) + return torch.ones(1) + except torch.fx.proxy.TraceError as e: + print( + "Found a non-FX compatible assertion. Skipping the check. Failure is shown below" + + str(e) + ) + return torch.zeros(1) diff --git a/detectron2/detectron2/utils/video_visualizer.py b/detectron2/detectron2/utils/video_visualizer.py new file mode 100755 index 0000000..42685be --- /dev/null +++ b/detectron2/detectron2/utils/video_visualizer.py @@ -0,0 +1,287 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import List +import pycocotools.mask as mask_util + +from detectron2.structures import Instances +from detectron2.utils.visualizer import ( + ColorMode, + Visualizer, + _create_text_labels, + _PanopticPrediction, +) + +from .colormap import random_color, random_colors + + +class _DetectedInstance: + """ + Used to store data about detected objects in video frame, + in order to transfer color to objects in the future frames. + + Attributes: + label (int): + bbox (tuple[float]): + mask_rle (dict): + color (tuple[float]): RGB colors in range (0, 1) + ttl (int): time-to-live for the instance. For example, if ttl=2, + the instance color can be transferred to objects in the next two frames. + """ + + __slots__ = ["label", "bbox", "mask_rle", "color", "ttl"] + + def __init__(self, label, bbox, mask_rle, color, ttl): + self.label = label + self.bbox = bbox + self.mask_rle = mask_rle + self.color = color + self.ttl = ttl + + +class VideoVisualizer: + def __init__(self, metadata, instance_mode=ColorMode.IMAGE): + """ + Args: + metadata (MetadataCatalog): image metadata. + """ + self.metadata = metadata + self._old_instances = [] + assert instance_mode in [ + ColorMode.IMAGE, + ColorMode.IMAGE_BW, + ], "Other mode not supported yet." + self._instance_mode = instance_mode + self._max_num_instances = self.metadata.get("max_num_instances", 74) + self._assigned_colors = {} + self._color_pool = random_colors(self._max_num_instances, rgb=True, maximum=1) + self._color_idx_set = set(range(len(self._color_pool))) + + def draw_instance_predictions(self, frame, predictions): + """ + Draw instance-level prediction results on an image. + + Args: + frame (ndarray): an RGB image of shape (H, W, C), in the range [0, 255]. + predictions (Instances): the output of an instance detection/segmentation + model. Following fields will be used to draw: + "pred_boxes", "pred_classes", "scores", "pred_masks" (or "pred_masks_rle"). + + Returns: + output (VisImage): image object with visualizations. + """ + frame_visualizer = Visualizer(frame, self.metadata) + num_instances = len(predictions) + if num_instances == 0: + return frame_visualizer.output + + boxes = predictions.pred_boxes.tensor.numpy() if predictions.has("pred_boxes") else None + scores = predictions.scores if predictions.has("scores") else None + classes = predictions.pred_classes.numpy() if predictions.has("pred_classes") else None + keypoints = predictions.pred_keypoints if predictions.has("pred_keypoints") else None + colors = predictions.COLOR if predictions.has("COLOR") else [None] * len(predictions) + periods = predictions.ID_period if predictions.has("ID_period") else None + period_threshold = self.metadata.get("period_threshold", 0) + visibilities = ( + [True] * len(predictions) + if periods is None + else [x > period_threshold for x in periods] + ) + + if predictions.has("pred_masks"): + masks = predictions.pred_masks + # mask IOU is not yet enabled + # masks_rles = mask_util.encode(np.asarray(masks.permute(1, 2, 0), order="F")) + # assert len(masks_rles) == num_instances + else: + masks = None + + if not predictions.has("COLOR"): + if predictions.has("ID"): + colors = self._assign_colors_by_id(predictions) + else: + # ToDo: clean old assign color method and use a default tracker to assign id + detected = [ + _DetectedInstance(classes[i], boxes[i], mask_rle=None, color=colors[i], ttl=8) + for i in range(num_instances) + ] + colors = self._assign_colors(detected) + + labels = _create_text_labels(classes, scores, self.metadata.get("thing_classes", None)) + + if self._instance_mode == ColorMode.IMAGE_BW: + # any() returns uint8 tensor + frame_visualizer.output.reset_image( + frame_visualizer._create_grayscale_image( + (masks.any(dim=0) > 0).numpy() if masks is not None else None + ) + ) + alpha = 0.3 + else: + alpha = 0.5 + + labels = ( + None + if labels is None + else [y[0] for y in filter(lambda x: x[1], zip(labels, visibilities))] + ) # noqa + assigned_colors = ( + None + if colors is None + else [y[0] for y in filter(lambda x: x[1], zip(colors, visibilities))] + ) # noqa + frame_visualizer.overlay_instances( + boxes=None if masks is not None else boxes[visibilities], # boxes are a bit distracting + masks=None if masks is None else masks[visibilities], + labels=labels, + keypoints=None if keypoints is None else keypoints[visibilities], + assigned_colors=assigned_colors, + alpha=alpha, + ) + + return frame_visualizer.output + + def draw_sem_seg(self, frame, sem_seg, area_threshold=None): + """ + Args: + sem_seg (ndarray or Tensor): semantic segmentation of shape (H, W), + each value is the integer label. + area_threshold (Optional[int]): only draw segmentations larger than the threshold + """ + # don't need to do anything special + frame_visualizer = Visualizer(frame, self.metadata) + frame_visualizer.draw_sem_seg(sem_seg, area_threshold=None) + return frame_visualizer.output + + def draw_panoptic_seg_predictions( + self, frame, panoptic_seg, segments_info, area_threshold=None, alpha=0.5 + ): + frame_visualizer = Visualizer(frame, self.metadata) + pred = _PanopticPrediction(panoptic_seg, segments_info, self.metadata) + + if self._instance_mode == ColorMode.IMAGE_BW: + frame_visualizer.output.reset_image( + frame_visualizer._create_grayscale_image(pred.non_empty_mask()) + ) + + # draw mask for all semantic segments first i.e. "stuff" + for mask, sinfo in pred.semantic_masks(): + category_idx = sinfo["category_id"] + try: + mask_color = [x / 255 for x in self.metadata.stuff_colors[category_idx]] + except AttributeError: + mask_color = None + + frame_visualizer.draw_binary_mask( + mask, + color=mask_color, + text=self.metadata.stuff_classes[category_idx], + alpha=alpha, + area_threshold=area_threshold, + ) + + all_instances = list(pred.instance_masks()) + if len(all_instances) == 0: + return frame_visualizer.output + # draw mask for all instances second + masks, sinfo = list(zip(*all_instances)) + num_instances = len(masks) + masks_rles = mask_util.encode( + np.asarray(np.asarray(masks).transpose(1, 2, 0), dtype=np.uint8, order="F") + ) + assert len(masks_rles) == num_instances + + category_ids = [x["category_id"] for x in sinfo] + detected = [ + _DetectedInstance(category_ids[i], bbox=None, mask_rle=masks_rles[i], color=None, ttl=8) + for i in range(num_instances) + ] + colors = self._assign_colors(detected) + labels = [self.metadata.thing_classes[k] for k in category_ids] + + frame_visualizer.overlay_instances( + boxes=None, + masks=masks, + labels=labels, + keypoints=None, + assigned_colors=colors, + alpha=alpha, + ) + return frame_visualizer.output + + def _assign_colors(self, instances): + """ + Naive tracking heuristics to assign same color to the same instance, + will update the internal state of tracked instances. + + Returns: + list[tuple[float]]: list of colors. + """ + + # Compute iou with either boxes or masks: + is_crowd = np.zeros((len(instances),), dtype=bool) + if instances[0].bbox is None: + assert instances[0].mask_rle is not None + # use mask iou only when box iou is None + # because box seems good enough + rles_old = [x.mask_rle for x in self._old_instances] + rles_new = [x.mask_rle for x in instances] + ious = mask_util.iou(rles_old, rles_new, is_crowd) + threshold = 0.5 + else: + boxes_old = [x.bbox for x in self._old_instances] + boxes_new = [x.bbox for x in instances] + ious = mask_util.iou(boxes_old, boxes_new, is_crowd) + threshold = 0.6 + if len(ious) == 0: + ious = np.zeros((len(self._old_instances), len(instances)), dtype="float32") + + # Only allow matching instances of the same label: + for old_idx, old in enumerate(self._old_instances): + for new_idx, new in enumerate(instances): + if old.label != new.label: + ious[old_idx, new_idx] = 0 + + matched_new_per_old = np.asarray(ious).argmax(axis=1) + max_iou_per_old = np.asarray(ious).max(axis=1) + + # Try to find match for each old instance: + extra_instances = [] + for idx, inst in enumerate(self._old_instances): + if max_iou_per_old[idx] > threshold: + newidx = matched_new_per_old[idx] + if instances[newidx].color is None: + instances[newidx].color = inst.color + continue + # If an old instance does not match any new instances, + # keep it for the next frame in case it is just missed by the detector + inst.ttl -= 1 + if inst.ttl > 0: + extra_instances.append(inst) + + # Assign random color to newly-detected instances: + for inst in instances: + if inst.color is None: + inst.color = random_color(rgb=True, maximum=1) + self._old_instances = instances[:] + extra_instances + return [d.color for d in instances] + + def _assign_colors_by_id(self, instances: Instances) -> List: + colors = [] + untracked_ids = set(self._assigned_colors.keys()) + for id in instances.ID: + if id in self._assigned_colors: + colors.append(self._color_pool[self._assigned_colors[id]]) + untracked_ids.remove(id) + else: + assert ( + len(self._color_idx_set) >= 1 + ), f"Number of id exceeded maximum, \ + max = {self._max_num_instances}" + idx = self._color_idx_set.pop() + color = self._color_pool[idx] + self._assigned_colors[id] = idx + colors.append(color) + for id in untracked_ids: + self._color_idx_set.add(self._assigned_colors[id]) + del self._assigned_colors[id] + return colors diff --git a/detectron2/detectron2/utils/visualizer.py b/detectron2/detectron2/utils/visualizer.py new file mode 100755 index 0000000..5d2cc17 --- /dev/null +++ b/detectron2/detectron2/utils/visualizer.py @@ -0,0 +1,1267 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import colorsys +import logging +import math +import numpy as np +from enum import Enum, unique +import cv2 +import matplotlib as mpl +import matplotlib.colors as mplc +import matplotlib.figure as mplfigure +import pycocotools.mask as mask_util +import torch +from matplotlib.backends.backend_agg import FigureCanvasAgg +from PIL import Image + +from detectron2.data import MetadataCatalog +from detectron2.structures import BitMasks, Boxes, BoxMode, Keypoints, PolygonMasks, RotatedBoxes +from detectron2.utils.file_io import PathManager + +from .colormap import random_color + +logger = logging.getLogger(__name__) + +__all__ = ["ColorMode", "VisImage", "Visualizer"] + + +_SMALL_OBJECT_AREA_THRESH = 1000 +_LARGE_MASK_AREA_THRESH = 120000 +_OFF_WHITE = (1.0, 1.0, 240.0 / 255) +_BLACK = (0, 0, 0) +_RED = (1.0, 0, 0) + +_KEYPOINT_THRESHOLD = 0.05 + + +@unique +class ColorMode(Enum): + """ + Enum of different color modes to use for instance visualizations. + """ + + IMAGE = 0 + """ + Picks a random color for every instance and overlay segmentations with low opacity. + """ + SEGMENTATION = 1 + """ + Let instances of the same category have similar colors + (from metadata.thing_colors), and overlay them with + high opacity. This provides more attention on the quality of segmentation. + """ + IMAGE_BW = 2 + """ + Same as IMAGE, but convert all areas without masks to gray-scale. + Only available for drawing per-instance mask predictions. + """ + + +class GenericMask: + """ + Attribute: + polygons (list[ndarray]): list[ndarray]: polygons for this mask. + Each ndarray has format [x, y, x, y, ...] + mask (ndarray): a binary mask + """ + + def __init__(self, mask_or_polygons, height, width): + self._mask = self._polygons = self._has_holes = None + self.height = height + self.width = width + + m = mask_or_polygons + if isinstance(m, dict): + # RLEs + assert "counts" in m and "size" in m + if isinstance(m["counts"], list): # uncompressed RLEs + h, w = m["size"] + assert h == height and w == width + m = mask_util.frPyObjects(m, h, w) + self._mask = mask_util.decode(m)[:, :] + return + + if isinstance(m, list): # list[ndarray] + self._polygons = [np.asarray(x).reshape(-1) for x in m] + return + + if isinstance(m, np.ndarray): # assumed to be a binary mask + assert m.shape[1] != 2, m.shape + assert m.shape == ( + height, + width, + ), f"mask shape: {m.shape}, target dims: {height}, {width}" + self._mask = m.astype("uint8") + return + + raise ValueError("GenericMask cannot handle object {} of type '{}'".format(m, type(m))) + + @property + def mask(self): + if self._mask is None: + self._mask = self.polygons_to_mask(self._polygons) + return self._mask + + @property + def polygons(self): + if self._polygons is None: + self._polygons, self._has_holes = self.mask_to_polygons(self._mask) + return self._polygons + + @property + def has_holes(self): + if self._has_holes is None: + if self._mask is not None: + self._polygons, self._has_holes = self.mask_to_polygons(self._mask) + else: + self._has_holes = False # if original format is polygon, does not have holes + return self._has_holes + + def mask_to_polygons(self, mask): + # cv2.RETR_CCOMP flag retrieves all the contours and arranges them to a 2-level + # hierarchy. External contours (boundary) of the object are placed in hierarchy-1. + # Internal contours (holes) are placed in hierarchy-2. + # cv2.CHAIN_APPROX_NONE flag gets vertices of polygons from contours. + mask = np.ascontiguousarray(mask) # some versions of cv2 does not support incontiguous arr + res = cv2.findContours(mask.astype("uint8"), cv2.RETR_CCOMP, cv2.CHAIN_APPROX_NONE) + hierarchy = res[-1] + if hierarchy is None: # empty mask + return [], False + has_holes = (hierarchy.reshape(-1, 4)[:, 3] >= 0).sum() > 0 + res = res[-2] + res = [x.flatten() for x in res] + # These coordinates from OpenCV are integers in range [0, W-1 or H-1]. + # We add 0.5 to turn them into real-value coordinate space. A better solution + # would be to first +0.5 and then dilate the returned polygon by 0.5. + res = [x + 0.5 for x in res if len(x) >= 6] + return res, has_holes + + def polygons_to_mask(self, polygons): + rle = mask_util.frPyObjects(polygons, self.height, self.width) + rle = mask_util.merge(rle) + return mask_util.decode(rle)[:, :] + + def area(self): + return self.mask.sum() + + def bbox(self): + p = mask_util.frPyObjects(self.polygons, self.height, self.width) + p = mask_util.merge(p) + bbox = mask_util.toBbox(p) + bbox[2] += bbox[0] + bbox[3] += bbox[1] + return bbox + + +class _PanopticPrediction: + """ + Unify different panoptic annotation/prediction formats + """ + + def __init__(self, panoptic_seg, segments_info, metadata=None): + if segments_info is None: + assert metadata is not None + # If "segments_info" is None, we assume "panoptic_img" is a + # H*W int32 image storing the panoptic_id in the format of + # category_id * label_divisor + instance_id. We reserve -1 for + # VOID label. + label_divisor = metadata.label_divisor + segments_info = [] + for panoptic_label in np.unique(panoptic_seg.numpy()): + if panoptic_label == -1: + # VOID region. + continue + pred_class = panoptic_label // label_divisor + isthing = pred_class in metadata.thing_dataset_id_to_contiguous_id.values() + segments_info.append( + { + "id": int(panoptic_label), + "category_id": int(pred_class), + "isthing": bool(isthing), + } + ) + del metadata + + self._seg = panoptic_seg + + self._sinfo = {s["id"]: s for s in segments_info} # seg id -> seg info + segment_ids, areas = torch.unique(panoptic_seg, sorted=True, return_counts=True) + areas = areas.numpy() + sorted_idxs = np.argsort(-areas) + self._seg_ids, self._seg_areas = segment_ids[sorted_idxs], areas[sorted_idxs] + self._seg_ids = self._seg_ids.tolist() + for sid, area in zip(self._seg_ids, self._seg_areas): + if sid in self._sinfo: + self._sinfo[sid]["area"] = float(area) + + def non_empty_mask(self): + """ + Returns: + (H, W) array, a mask for all pixels that have a prediction + """ + empty_ids = [] + for id in self._seg_ids: + if id not in self._sinfo: + empty_ids.append(id) + if len(empty_ids) == 0: + return np.zeros(self._seg.shape, dtype=np.uint8) + assert ( + len(empty_ids) == 1 + ), ">1 ids corresponds to no labels. This is currently not supported" + return (self._seg != empty_ids[0]).numpy().astype(bool) + + def semantic_masks(self): + for sid in self._seg_ids: + sinfo = self._sinfo.get(sid) + if sinfo is None or sinfo["isthing"]: + # Some pixels (e.g. id 0 in PanopticFPN) have no instance or semantic predictions. + continue + yield (self._seg == sid).numpy().astype(bool), sinfo + + def instance_masks(self): + for sid in self._seg_ids: + sinfo = self._sinfo.get(sid) + if sinfo is None or not sinfo["isthing"]: + continue + mask = (self._seg == sid).numpy().astype(bool) + if mask.sum() > 0: + yield mask, sinfo + + +def _create_text_labels(classes, scores, class_names, is_crowd=None): + """ + Args: + classes (list[int] or None): + scores (list[float] or None): + class_names (list[str] or None): + is_crowd (list[bool] or None): + + Returns: + list[str] or None + """ + labels = None + if classes is not None: + if class_names is not None and len(class_names) > 0: + labels = [class_names[i] for i in classes] + else: + labels = [str(i) for i in classes] + if scores is not None: + if labels is None: + labels = ["{:.0f}%".format(s * 100) for s in scores] + else: + labels = ["{} {:.0f}%".format(l, s * 100) for l, s in zip(labels, scores)] + if labels is not None and is_crowd is not None: + labels = [l + ("|crowd" if crowd else "") for l, crowd in zip(labels, is_crowd)] + return labels + + +class VisImage: + def __init__(self, img, scale=1.0): + """ + Args: + img (ndarray): an RGB image of shape (H, W, 3) in range [0, 255]. + scale (float): scale the input image + """ + self.img = img + self.scale = scale + self.width, self.height = img.shape[1], img.shape[0] + self._setup_figure(img) + + def _setup_figure(self, img): + """ + Args: + Same as in :meth:`__init__()`. + + Returns: + fig (matplotlib.pyplot.figure): top level container for all the image plot elements. + ax (matplotlib.pyplot.Axes): contains figure elements and sets the coordinate system. + """ + fig = mplfigure.Figure(frameon=False) + self.dpi = fig.get_dpi() + # add a small 1e-2 to avoid precision lost due to matplotlib's truncation + # (https://github.com/matplotlib/matplotlib/issues/15363) + fig.set_size_inches( + (self.width * self.scale + 1e-2) / self.dpi, + (self.height * self.scale + 1e-2) / self.dpi, + ) + self.canvas = FigureCanvasAgg(fig) + # self.canvas = mpl.backends.backend_cairo.FigureCanvasCairo(fig) + ax = fig.add_axes([0.0, 0.0, 1.0, 1.0]) + ax.axis("off") + self.fig = fig + self.ax = ax + self.reset_image(img) + + def reset_image(self, img): + """ + Args: + img: same as in __init__ + """ + img = img.astype("uint8") + self.ax.imshow(img, extent=(0, self.width, self.height, 0), interpolation="nearest") + + def save(self, filepath): + """ + Args: + filepath (str): a string that contains the absolute path, including the file name, where + the visualized image will be saved. + """ + self.fig.savefig(filepath) + + def get_image(self): + """ + Returns: + ndarray: + the visualized image of shape (H, W, 3) (RGB) in uint8 type. + The shape is scaled w.r.t the input image using the given `scale` argument. + """ + canvas = self.canvas + s, (width, height) = canvas.print_to_buffer() + # buf = io.BytesIO() # works for cairo backend + # canvas.print_rgba(buf) + # width, height = self.width, self.height + # s = buf.getvalue() + + buffer = np.frombuffer(s, dtype="uint8") + + img_rgba = buffer.reshape(height, width, 4) + rgb, alpha = np.split(img_rgba, [3], axis=2) + return rgb.astype("uint8") + + +class Visualizer: + """ + Visualizer that draws data about detection/segmentation on images. + + It contains methods like `draw_{text,box,circle,line,binary_mask,polygon}` + that draw primitive objects to images, as well as high-level wrappers like + `draw_{instance_predictions,sem_seg,panoptic_seg_predictions,dataset_dict}` + that draw composite data in some pre-defined style. + + Note that the exact visualization style for the high-level wrappers are subject to change. + Style such as color, opacity, label contents, visibility of labels, or even the visibility + of objects themselves (e.g. when the object is too small) may change according + to different heuristics, as long as the results still look visually reasonable. + + To obtain a consistent style, you can implement custom drawing functions with the + abovementioned primitive methods instead. If you need more customized visualization + styles, you can process the data yourself following their format documented in + tutorials (:doc:`/tutorials/models`, :doc:`/tutorials/datasets`). This class does not + intend to satisfy everyone's preference on drawing styles. + + This visualizer focuses on high rendering quality rather than performance. It is not + designed to be used for real-time applications. + """ + + # TODO implement a fast, rasterized version using OpenCV + + def __init__(self, img_rgb, metadata=None, scale=1.0, instance_mode=ColorMode.IMAGE): + """ + Args: + img_rgb: a numpy array of shape (H, W, C), where H and W correspond to + the height and width of the image respectively. C is the number of + color channels. The image is required to be in RGB format since that + is a requirement of the Matplotlib library. The image is also expected + to be in the range [0, 255]. + metadata (Metadata): dataset metadata (e.g. class names and colors) + instance_mode (ColorMode): defines one of the pre-defined style for drawing + instances on an image. + """ + self.img = np.asarray(img_rgb).clip(0, 255).astype(np.uint8) + if metadata is None: + metadata = MetadataCatalog.get("__nonexist__") + self.metadata = metadata + self.output = VisImage(self.img, scale=scale) + self.cpu_device = torch.device("cpu") + + # too small texts are useless, therefore clamp to 9 + self._default_font_size = max( + np.sqrt(self.output.height * self.output.width) // 90, 10 // scale + ) + self._instance_mode = instance_mode + self.keypoint_threshold = _KEYPOINT_THRESHOLD + + def draw_instance_predictions(self, predictions): + """ + Draw instance-level prediction results on an image. + + Args: + predictions (Instances): the output of an instance detection/segmentation + model. Following fields will be used to draw: + "pred_boxes", "pred_classes", "scores", "pred_masks" (or "pred_masks_rle"). + + Returns: + output (VisImage): image object with visualizations. + """ + boxes = predictions.pred_boxes if predictions.has("pred_boxes") else None + scores = predictions.scores if predictions.has("scores") else None + classes = predictions.pred_classes.tolist() if predictions.has("pred_classes") else None + labels = _create_text_labels(classes, scores, self.metadata.get("thing_classes", None)) + keypoints = predictions.pred_keypoints if predictions.has("pred_keypoints") else None + + if predictions.has("pred_masks"): + masks = np.asarray(predictions.pred_masks) + masks = [GenericMask(x, self.output.height, self.output.width) for x in masks] + else: + masks = None + + if self._instance_mode == ColorMode.SEGMENTATION and self.metadata.get("thing_colors"): + colors = [ + self._jitter([x / 255 for x in self.metadata.thing_colors[c]]) for c in classes + ] + alpha = 0.8 + else: + colors = None + alpha = 0.5 + + if self._instance_mode == ColorMode.IMAGE_BW: + self.output.reset_image( + self._create_grayscale_image( + (predictions.pred_masks.any(dim=0) > 0).numpy() + if predictions.has("pred_masks") + else None + ) + ) + alpha = 0.3 + + self.overlay_instances( + masks=masks, + boxes=boxes, + labels=labels, + keypoints=keypoints, + assigned_colors=colors, + alpha=alpha, + ) + return self.output + + def draw_sem_seg(self, sem_seg, area_threshold=None, alpha=0.8): + """ + Draw semantic segmentation predictions/labels. + + Args: + sem_seg (Tensor or ndarray): the segmentation of shape (H, W). + Each value is the integer label of the pixel. + area_threshold (int): segments with less than `area_threshold` are not drawn. + alpha (float): the larger it is, the more opaque the segmentations are. + + Returns: + output (VisImage): image object with visualizations. + """ + if isinstance(sem_seg, torch.Tensor): + sem_seg = sem_seg.numpy() + labels, areas = np.unique(sem_seg, return_counts=True) + sorted_idxs = np.argsort(-areas).tolist() + labels = labels[sorted_idxs] + for label in filter(lambda l: l < len(self.metadata.stuff_classes), labels): + try: + mask_color = [x / 255 for x in self.metadata.stuff_colors[label]] + except (AttributeError, IndexError): + mask_color = None + + binary_mask = (sem_seg == label).astype(np.uint8) + text = self.metadata.stuff_classes[label] + self.draw_binary_mask( + binary_mask, + color=mask_color, + edge_color=_OFF_WHITE, + text=text, + alpha=alpha, + area_threshold=area_threshold, + ) + return self.output + + def draw_panoptic_seg(self, panoptic_seg, segments_info, area_threshold=None, alpha=0.7): + """ + Draw panoptic prediction annotations or results. + + Args: + panoptic_seg (Tensor): of shape (height, width) where the values are ids for each + segment. + segments_info (list[dict] or None): Describe each segment in `panoptic_seg`. + If it is a ``list[dict]``, each dict contains keys "id", "category_id". + If None, category id of each pixel is computed by + ``pixel // metadata.label_divisor``. + area_threshold (int): stuff segments with less than `area_threshold` are not drawn. + + Returns: + output (VisImage): image object with visualizations. + """ + pred = _PanopticPrediction(panoptic_seg, segments_info, self.metadata) + + if self._instance_mode == ColorMode.IMAGE_BW: + self.output.reset_image(self._create_grayscale_image(pred.non_empty_mask())) + + # draw mask for all semantic segments first i.e. "stuff" + for mask, sinfo in pred.semantic_masks(): + category_idx = sinfo["category_id"] + try: + mask_color = [x / 255 for x in self.metadata.stuff_colors[category_idx]] + except AttributeError: + mask_color = None + + text = self.metadata.stuff_classes[category_idx] + self.draw_binary_mask( + mask, + color=mask_color, + edge_color=_OFF_WHITE, + text=text, + alpha=alpha, + area_threshold=area_threshold, + ) + + # draw mask for all instances second + all_instances = list(pred.instance_masks()) + if len(all_instances) == 0: + return self.output + masks, sinfo = list(zip(*all_instances)) + category_ids = [x["category_id"] for x in sinfo] + + try: + scores = [x["score"] for x in sinfo] + except KeyError: + scores = None + labels = _create_text_labels( + category_ids, scores, self.metadata.thing_classes, [x.get("iscrowd", 0) for x in sinfo] + ) + + try: + colors = [ + self._jitter([x / 255 for x in self.metadata.thing_colors[c]]) for c in category_ids + ] + except AttributeError: + colors = None + self.overlay_instances(masks=masks, labels=labels, assigned_colors=colors, alpha=alpha) + + return self.output + + draw_panoptic_seg_predictions = draw_panoptic_seg # backward compatibility + + def draw_dataset_dict(self, dic): + """ + Draw annotations/segmentations in Detectron2 Dataset format. + + Args: + dic (dict): annotation/segmentation data of one image, in Detectron2 Dataset format. + + Returns: + output (VisImage): image object with visualizations. + """ + annos = dic.get("annotations", None) + if annos: + if "segmentation" in annos[0]: + masks = [x["segmentation"] for x in annos] + else: + masks = None + if "keypoints" in annos[0]: + keypts = [x["keypoints"] for x in annos] + keypts = np.array(keypts).reshape(len(annos), -1, 3) + else: + keypts = None + + boxes = [ + BoxMode.convert(x["bbox"], x["bbox_mode"], BoxMode.XYXY_ABS) + if len(x["bbox"]) == 4 + else x["bbox"] + for x in annos + ] + + colors = None + category_ids = [x["category_id"] for x in annos] + if self._instance_mode == ColorMode.SEGMENTATION and self.metadata.get("thing_colors"): + colors = [ + self._jitter([x / 255 for x in self.metadata.thing_colors[c]]) + for c in category_ids + ] + names = self.metadata.get("thing_classes", None) + labels = _create_text_labels( + category_ids, + scores=None, + class_names=names, + is_crowd=[x.get("iscrowd", 0) for x in annos], + ) + self.overlay_instances( + labels=labels, boxes=boxes, masks=masks, keypoints=keypts, assigned_colors=colors + ) + + sem_seg = dic.get("sem_seg", None) + if sem_seg is None and "sem_seg_file_name" in dic: + with PathManager.open(dic["sem_seg_file_name"], "rb") as f: + sem_seg = Image.open(f) + sem_seg = np.asarray(sem_seg, dtype="uint8") + if sem_seg is not None: + self.draw_sem_seg(sem_seg, area_threshold=0, alpha=0.5) + + pan_seg = dic.get("pan_seg", None) + if pan_seg is None and "pan_seg_file_name" in dic: + with PathManager.open(dic["pan_seg_file_name"], "rb") as f: + pan_seg = Image.open(f) + pan_seg = np.asarray(pan_seg) + from panopticapi.utils import rgb2id + + pan_seg = rgb2id(pan_seg) + if pan_seg is not None: + segments_info = dic["segments_info"] + pan_seg = torch.tensor(pan_seg) + self.draw_panoptic_seg(pan_seg, segments_info, area_threshold=0, alpha=0.5) + return self.output + + def overlay_instances( + self, + *, + boxes=None, + labels=None, + masks=None, + keypoints=None, + assigned_colors=None, + alpha=0.5, + ): + """ + Args: + boxes (Boxes, RotatedBoxes or ndarray): either a :class:`Boxes`, + or an Nx4 numpy array of XYXY_ABS format for the N objects in a single image, + or a :class:`RotatedBoxes`, + or an Nx5 numpy array of (x_center, y_center, width, height, angle_degrees) format + for the N objects in a single image, + labels (list[str]): the text to be displayed for each instance. + masks (masks-like object): Supported types are: + + * :class:`detectron2.structures.PolygonMasks`, + :class:`detectron2.structures.BitMasks`. + * list[list[ndarray]]: contains the segmentation masks for all objects in one image. + The first level of the list corresponds to individual instances. The second + level to all the polygon that compose the instance, and the third level + to the polygon coordinates. The third level should have the format of + [x0, y0, x1, y1, ..., xn, yn] (n >= 3). + * list[ndarray]: each ndarray is a binary mask of shape (H, W). + * list[dict]: each dict is a COCO-style RLE. + keypoints (Keypoint or array like): an array-like object of shape (N, K, 3), + where the N is the number of instances and K is the number of keypoints. + The last dimension corresponds to (x, y, visibility or score). + assigned_colors (list[matplotlib.colors]): a list of colors, where each color + corresponds to each mask or box in the image. Refer to 'matplotlib.colors' + for full list of formats that the colors are accepted in. + Returns: + output (VisImage): image object with visualizations. + """ + num_instances = 0 + if boxes is not None: + boxes = self._convert_boxes(boxes) + num_instances = len(boxes) + if masks is not None: + masks = self._convert_masks(masks) + if num_instances: + assert len(masks) == num_instances + else: + num_instances = len(masks) + if keypoints is not None: + if num_instances: + assert len(keypoints) == num_instances + else: + num_instances = len(keypoints) + keypoints = self._convert_keypoints(keypoints) + if labels is not None: + assert len(labels) == num_instances + if assigned_colors is None: + assigned_colors = [random_color(rgb=True, maximum=1) for _ in range(num_instances)] + if num_instances == 0: + return self.output + if boxes is not None and boxes.shape[1] == 5: + return self.overlay_rotated_instances( + boxes=boxes, labels=labels, assigned_colors=assigned_colors + ) + + # Display in largest to smallest order to reduce occlusion. + areas = None + if boxes is not None: + areas = np.prod(boxes[:, 2:] - boxes[:, :2], axis=1) + elif masks is not None: + areas = np.asarray([x.area() for x in masks]) + + if areas is not None: + sorted_idxs = np.argsort(-areas).tolist() + # Re-order overlapped instances in descending order. + boxes = boxes[sorted_idxs] if boxes is not None else None + labels = [labels[k] for k in sorted_idxs] if labels is not None else None + masks = [masks[idx] for idx in sorted_idxs] if masks is not None else None + assigned_colors = [assigned_colors[idx] for idx in sorted_idxs] + keypoints = keypoints[sorted_idxs] if keypoints is not None else None + + for i in range(num_instances): + color = assigned_colors[i] + if boxes is not None: + self.draw_box(boxes[i], edge_color=color) + + if masks is not None: + for segment in masks[i].polygons: + self.draw_polygon(segment.reshape(-1, 2), color, alpha=alpha) + + if labels is not None: + # first get a box + if boxes is not None: + x0, y0, x1, y1 = boxes[i] + text_pos = (x0, y0) # if drawing boxes, put text on the box corner. + horiz_align = "left" + elif masks is not None: + # skip small mask without polygon + if len(masks[i].polygons) == 0: + continue + + x0, y0, x1, y1 = masks[i].bbox() + + # draw text in the center (defined by median) when box is not drawn + # median is less sensitive to outliers. + text_pos = np.median(masks[i].mask.nonzero(), axis=1)[::-1] + horiz_align = "center" + else: + continue # drawing the box confidence for keypoints isn't very useful. + # for small objects, draw text at the side to avoid occlusion + instance_area = (y1 - y0) * (x1 - x0) + if ( + instance_area < _SMALL_OBJECT_AREA_THRESH * self.output.scale + or y1 - y0 < 40 * self.output.scale + ): + if y1 >= self.output.height - 5: + text_pos = (x1, y0) + else: + text_pos = (x0, y1) + + height_ratio = (y1 - y0) / np.sqrt(self.output.height * self.output.width) + lighter_color = self._change_color_brightness(color, brightness_factor=0.7) + font_size = ( + np.clip((height_ratio - 0.02) / 0.08 + 1, 1.2, 2) + * 0.5 + * self._default_font_size + ) + self.draw_text( + labels[i], + text_pos, + color=lighter_color, + horizontal_alignment=horiz_align, + font_size=font_size, + ) + + # draw keypoints + if keypoints is not None: + for keypoints_per_instance in keypoints: + self.draw_and_connect_keypoints(keypoints_per_instance) + + return self.output + + def overlay_rotated_instances(self, boxes=None, labels=None, assigned_colors=None): + """ + Args: + boxes (ndarray): an Nx5 numpy array of + (x_center, y_center, width, height, angle_degrees) format + for the N objects in a single image. + labels (list[str]): the text to be displayed for each instance. + assigned_colors (list[matplotlib.colors]): a list of colors, where each color + corresponds to each mask or box in the image. Refer to 'matplotlib.colors' + for full list of formats that the colors are accepted in. + + Returns: + output (VisImage): image object with visualizations. + """ + num_instances = len(boxes) + + if assigned_colors is None: + assigned_colors = [random_color(rgb=True, maximum=1) for _ in range(num_instances)] + if num_instances == 0: + return self.output + + # Display in largest to smallest order to reduce occlusion. + if boxes is not None: + areas = boxes[:, 2] * boxes[:, 3] + + sorted_idxs = np.argsort(-areas).tolist() + # Re-order overlapped instances in descending order. + boxes = boxes[sorted_idxs] + labels = [labels[k] for k in sorted_idxs] if labels is not None else None + colors = [assigned_colors[idx] for idx in sorted_idxs] + + for i in range(num_instances): + self.draw_rotated_box_with_label( + boxes[i], edge_color=colors[i], label=labels[i] if labels is not None else None + ) + + return self.output + + def draw_and_connect_keypoints(self, keypoints): + """ + Draws keypoints of an instance and follows the rules for keypoint connections + to draw lines between appropriate keypoints. This follows color heuristics for + line color. + + Args: + keypoints (Tensor): a tensor of shape (K, 3), where K is the number of keypoints + and the last dimension corresponds to (x, y, probability). + + Returns: + output (VisImage): image object with visualizations. + """ + visible = {} + keypoint_names = self.metadata.get("keypoint_names") + for idx, keypoint in enumerate(keypoints): + + # draw keypoint + x, y, prob = keypoint + if prob > self.keypoint_threshold: + self.draw_circle((x, y), color=_RED) + if keypoint_names: + keypoint_name = keypoint_names[idx] + visible[keypoint_name] = (x, y) + + if self.metadata.get("keypoint_connection_rules"): + for kp0, kp1, color in self.metadata.keypoint_connection_rules: + if kp0 in visible and kp1 in visible: + x0, y0 = visible[kp0] + x1, y1 = visible[kp1] + color = tuple(x / 255.0 for x in color) + self.draw_line([x0, x1], [y0, y1], color=color) + + # draw lines from nose to mid-shoulder and mid-shoulder to mid-hip + # Note that this strategy is specific to person keypoints. + # For other keypoints, it should just do nothing + try: + ls_x, ls_y = visible["left_shoulder"] + rs_x, rs_y = visible["right_shoulder"] + mid_shoulder_x, mid_shoulder_y = (ls_x + rs_x) / 2, (ls_y + rs_y) / 2 + except KeyError: + pass + else: + # draw line from nose to mid-shoulder + nose_x, nose_y = visible.get("nose", (None, None)) + if nose_x is not None: + self.draw_line([nose_x, mid_shoulder_x], [nose_y, mid_shoulder_y], color=_RED) + + try: + # draw line from mid-shoulder to mid-hip + lh_x, lh_y = visible["left_hip"] + rh_x, rh_y = visible["right_hip"] + except KeyError: + pass + else: + mid_hip_x, mid_hip_y = (lh_x + rh_x) / 2, (lh_y + rh_y) / 2 + self.draw_line([mid_hip_x, mid_shoulder_x], [mid_hip_y, mid_shoulder_y], color=_RED) + return self.output + + """ + Primitive drawing functions: + """ + + def draw_text( + self, + text, + position, + *, + font_size=None, + color="g", + horizontal_alignment="center", + rotation=0, + ): + """ + Args: + text (str): class label + position (tuple): a tuple of the x and y coordinates to place text on image. + font_size (int, optional): font of the text. If not provided, a font size + proportional to the image width is calculated and used. + color: color of the text. Refer to `matplotlib.colors` for full list + of formats that are accepted. + horizontal_alignment (str): see `matplotlib.text.Text` + rotation: rotation angle in degrees CCW + + Returns: + output (VisImage): image object with text drawn. + """ + if not font_size: + font_size = self._default_font_size + + # since the text background is dark, we don't want the text to be dark + color = np.maximum(list(mplc.to_rgb(color)), 0.2) + color[np.argmax(color)] = max(0.8, np.max(color)) + + x, y = position + self.output.ax.text( + x, + y, + text, + size=font_size * self.output.scale, + family="sans-serif", + bbox={"facecolor": "black", "alpha": 0.8, "pad": 0.7, "edgecolor": "none"}, + verticalalignment="top", + horizontalalignment=horizontal_alignment, + color=color, + zorder=10, + rotation=rotation, + ) + return self.output + + def draw_box(self, box_coord, alpha=0.5, edge_color="g", line_style="-"): + """ + Args: + box_coord (tuple): a tuple containing x0, y0, x1, y1 coordinates, where x0 and y0 + are the coordinates of the image's top left corner. x1 and y1 are the + coordinates of the image's bottom right corner. + alpha (float): blending efficient. Smaller values lead to more transparent masks. + edge_color: color of the outline of the box. Refer to `matplotlib.colors` + for full list of formats that are accepted. + line_style (string): the string to use to create the outline of the boxes. + + Returns: + output (VisImage): image object with box drawn. + """ + x0, y0, x1, y1 = box_coord + width = x1 - x0 + height = y1 - y0 + + linewidth = max(self._default_font_size / 4, 1) + + self.output.ax.add_patch( + mpl.patches.Rectangle( + (x0, y0), + width, + height, + fill=False, + edgecolor=edge_color, + linewidth=linewidth * self.output.scale, + alpha=alpha, + linestyle=line_style, + ) + ) + return self.output + + def draw_rotated_box_with_label( + self, rotated_box, alpha=0.5, edge_color="g", line_style="-", label=None + ): + """ + Draw a rotated box with label on its top-left corner. + + Args: + rotated_box (tuple): a tuple containing (cnt_x, cnt_y, w, h, angle), + where cnt_x and cnt_y are the center coordinates of the box. + w and h are the width and height of the box. angle represents how + many degrees the box is rotated CCW with regard to the 0-degree box. + alpha (float): blending efficient. Smaller values lead to more transparent masks. + edge_color: color of the outline of the box. Refer to `matplotlib.colors` + for full list of formats that are accepted. + line_style (string): the string to use to create the outline of the boxes. + label (string): label for rotated box. It will not be rendered when set to None. + + Returns: + output (VisImage): image object with box drawn. + """ + cnt_x, cnt_y, w, h, angle = rotated_box + area = w * h + # use thinner lines when the box is small + linewidth = self._default_font_size / ( + 6 if area < _SMALL_OBJECT_AREA_THRESH * self.output.scale else 3 + ) + + theta = angle * math.pi / 180.0 + c = math.cos(theta) + s = math.sin(theta) + rect = [(-w / 2, h / 2), (-w / 2, -h / 2), (w / 2, -h / 2), (w / 2, h / 2)] + # x: left->right ; y: top->down + rotated_rect = [(s * yy + c * xx + cnt_x, c * yy - s * xx + cnt_y) for (xx, yy) in rect] + for k in range(4): + j = (k + 1) % 4 + self.draw_line( + [rotated_rect[k][0], rotated_rect[j][0]], + [rotated_rect[k][1], rotated_rect[j][1]], + color=edge_color, + linestyle="--" if k == 1 else line_style, + linewidth=linewidth, + ) + + if label is not None: + text_pos = rotated_rect[1] # topleft corner + + height_ratio = h / np.sqrt(self.output.height * self.output.width) + label_color = self._change_color_brightness(edge_color, brightness_factor=0.7) + font_size = ( + np.clip((height_ratio - 0.02) / 0.08 + 1, 1.2, 2) * 0.5 * self._default_font_size + ) + self.draw_text(label, text_pos, color=label_color, font_size=font_size, rotation=angle) + + return self.output + + def draw_circle(self, circle_coord, color, radius=3): + """ + Args: + circle_coord (list(int) or tuple(int)): contains the x and y coordinates + of the center of the circle. + color: color of the polygon. Refer to `matplotlib.colors` for a full list of + formats that are accepted. + radius (int): radius of the circle. + + Returns: + output (VisImage): image object with box drawn. + """ + x, y = circle_coord + self.output.ax.add_patch( + mpl.patches.Circle(circle_coord, radius=radius, fill=True, color=color) + ) + return self.output + + def draw_line(self, x_data, y_data, color, linestyle="-", linewidth=None): + """ + Args: + x_data (list[int]): a list containing x values of all the points being drawn. + Length of list should match the length of y_data. + y_data (list[int]): a list containing y values of all the points being drawn. + Length of list should match the length of x_data. + color: color of the line. Refer to `matplotlib.colors` for a full list of + formats that are accepted. + linestyle: style of the line. Refer to `matplotlib.lines.Line2D` + for a full list of formats that are accepted. + linewidth (float or None): width of the line. When it's None, + a default value will be computed and used. + + Returns: + output (VisImage): image object with line drawn. + """ + if linewidth is None: + linewidth = self._default_font_size / 3 + linewidth = max(linewidth, 1) + self.output.ax.add_line( + mpl.lines.Line2D( + x_data, + y_data, + linewidth=linewidth * self.output.scale, + color=color, + linestyle=linestyle, + ) + ) + return self.output + + def draw_binary_mask( + self, binary_mask, color=None, *, edge_color=None, text=None, alpha=0.5, area_threshold=10 + ): + """ + Args: + binary_mask (ndarray): numpy array of shape (H, W), where H is the image height and + W is the image width. Each value in the array is either a 0 or 1 value of uint8 + type. + color: color of the mask. Refer to `matplotlib.colors` for a full list of + formats that are accepted. If None, will pick a random color. + edge_color: color of the polygon edges. Refer to `matplotlib.colors` for a + full list of formats that are accepted. + text (str): if None, will be drawn on the object + alpha (float): blending efficient. Smaller values lead to more transparent masks. + area_threshold (float): a connected component smaller than this area will not be shown. + + Returns: + output (VisImage): image object with mask drawn. + """ + if color is None: + color = random_color(rgb=True, maximum=1) + color = mplc.to_rgb(color) + + has_valid_segment = False + binary_mask = binary_mask.astype("uint8") # opencv needs uint8 + mask = GenericMask(binary_mask, self.output.height, self.output.width) + shape2d = (binary_mask.shape[0], binary_mask.shape[1]) + + if not mask.has_holes: + # draw polygons for regular masks + for segment in mask.polygons: + area = mask_util.area(mask_util.frPyObjects([segment], shape2d[0], shape2d[1])) + if area < (area_threshold or 0): + continue + has_valid_segment = True + segment = segment.reshape(-1, 2) + self.draw_polygon(segment, color=color, edge_color=edge_color, alpha=alpha) + else: + # TODO: Use Path/PathPatch to draw vector graphics: + # https://stackoverflow.com/questions/8919719/how-to-plot-a-complex-polygon + rgba = np.zeros(shape2d + (4,), dtype="float32") + rgba[:, :, :3] = color + rgba[:, :, 3] = (mask.mask == 1).astype("float32") * alpha + has_valid_segment = True + self.output.ax.imshow(rgba, extent=(0, self.output.width, self.output.height, 0)) + + if text is not None and has_valid_segment: + lighter_color = self._change_color_brightness(color, brightness_factor=0.7) + self._draw_text_in_mask(binary_mask, text, lighter_color) + return self.output + + def draw_soft_mask(self, soft_mask, color=None, *, text=None, alpha=0.5): + """ + Args: + soft_mask (ndarray): float array of shape (H, W), each value in [0, 1]. + color: color of the mask. Refer to `matplotlib.colors` for a full list of + formats that are accepted. If None, will pick a random color. + text (str): if None, will be drawn on the object + alpha (float): blending efficient. Smaller values lead to more transparent masks. + + Returns: + output (VisImage): image object with mask drawn. + """ + if color is None: + color = random_color(rgb=True, maximum=1) + color = mplc.to_rgb(color) + + shape2d = (soft_mask.shape[0], soft_mask.shape[1]) + rgba = np.zeros(shape2d + (4,), dtype="float32") + rgba[:, :, :3] = color + rgba[:, :, 3] = soft_mask * alpha + self.output.ax.imshow(rgba, extent=(0, self.output.width, self.output.height, 0)) + + if text is not None: + lighter_color = self._change_color_brightness(color, brightness_factor=0.7) + binary_mask = (soft_mask > 0.5).astype("uint8") + self._draw_text_in_mask(binary_mask, text, lighter_color) + return self.output + + def draw_polygon(self, segment, color, edge_color=None, alpha=0.5): + """ + Args: + segment: numpy array of shape Nx2, containing all the points in the polygon. + color: color of the polygon. Refer to `matplotlib.colors` for a full list of + formats that are accepted. + edge_color: color of the polygon edges. Refer to `matplotlib.colors` for a + full list of formats that are accepted. If not provided, a darker shade + of the polygon color will be used instead. + alpha (float): blending efficient. Smaller values lead to more transparent masks. + + Returns: + output (VisImage): image object with polygon drawn. + """ + if edge_color is None: + # make edge color darker than the polygon color + if alpha > 0.8: + edge_color = self._change_color_brightness(color, brightness_factor=-0.7) + else: + edge_color = color + edge_color = mplc.to_rgb(edge_color) + (1,) + + polygon = mpl.patches.Polygon( + segment, + fill=True, + facecolor=mplc.to_rgb(color) + (alpha,), + edgecolor=edge_color, + linewidth=max(self._default_font_size // 15 * self.output.scale, 1), + ) + self.output.ax.add_patch(polygon) + return self.output + + """ + Internal methods: + """ + + def _jitter(self, color): + """ + Randomly modifies given color to produce a slightly different color than the color given. + + Args: + color (tuple[double]): a tuple of 3 elements, containing the RGB values of the color + picked. The values in the list are in the [0.0, 1.0] range. + + Returns: + jittered_color (tuple[double]): a tuple of 3 elements, containing the RGB values of the + color after being jittered. The values in the list are in the [0.0, 1.0] range. + """ + color = mplc.to_rgb(color) + vec = np.random.rand(3) + # better to do it in another color space + vec = vec / np.linalg.norm(vec) * 0.5 + res = np.clip(vec + color, 0, 1) + return tuple(res) + + def _create_grayscale_image(self, mask=None): + """ + Create a grayscale version of the original image. + The colors in masked area, if given, will be kept. + """ + img_bw = self.img.astype("f4").mean(axis=2) + img_bw = np.stack([img_bw] * 3, axis=2) + if mask is not None: + img_bw[mask] = self.img[mask] + return img_bw + + def _change_color_brightness(self, color, brightness_factor): + """ + Depending on the brightness_factor, gives a lighter or darker color i.e. a color with + less or more saturation than the original color. + + Args: + color: color of the polygon. Refer to `matplotlib.colors` for a full list of + formats that are accepted. + brightness_factor (float): a value in [-1.0, 1.0] range. A lightness factor of + 0 will correspond to no change, a factor in [-1.0, 0) range will result in + a darker color and a factor in (0, 1.0] range will result in a lighter color. + + Returns: + modified_color (tuple[double]): a tuple containing the RGB values of the + modified color. Each value in the tuple is in the [0.0, 1.0] range. + """ + assert brightness_factor >= -1.0 and brightness_factor <= 1.0 + color = mplc.to_rgb(color) + polygon_color = colorsys.rgb_to_hls(*mplc.to_rgb(color)) + modified_lightness = polygon_color[1] + (brightness_factor * polygon_color[1]) + modified_lightness = 0.0 if modified_lightness < 0.0 else modified_lightness + modified_lightness = 1.0 if modified_lightness > 1.0 else modified_lightness + modified_color = colorsys.hls_to_rgb(polygon_color[0], modified_lightness, polygon_color[2]) + return tuple(np.clip(modified_color, 0.0, 1.0)) + + def _convert_boxes(self, boxes): + """ + Convert different format of boxes to an NxB array, where B = 4 or 5 is the box dimension. + """ + if isinstance(boxes, Boxes) or isinstance(boxes, RotatedBoxes): + return boxes.tensor.detach().numpy() + else: + return np.asarray(boxes) + + def _convert_masks(self, masks_or_polygons): + """ + Convert different format of masks or polygons to a tuple of masks and polygons. + + Returns: + list[GenericMask]: + """ + + m = masks_or_polygons + if isinstance(m, PolygonMasks): + m = m.polygons + if isinstance(m, BitMasks): + m = m.tensor.numpy() + if isinstance(m, torch.Tensor): + m = m.numpy() + ret = [] + for x in m: + if isinstance(x, GenericMask): + ret.append(x) + else: + ret.append(GenericMask(x, self.output.height, self.output.width)) + return ret + + def _draw_text_in_mask(self, binary_mask, text, color): + """ + Find proper places to draw text given a binary mask. + """ + # TODO sometimes drawn on wrong objects. the heuristics here can improve. + _num_cc, cc_labels, stats, centroids = cv2.connectedComponentsWithStats(binary_mask, 8) + if stats[1:, -1].size == 0: + return + largest_component_id = np.argmax(stats[1:, -1]) + 1 + + # draw text on the largest component, as well as other very large components. + for cid in range(1, _num_cc): + if cid == largest_component_id or stats[cid, -1] > _LARGE_MASK_AREA_THRESH: + # median is more stable than centroid + # center = centroids[largest_component_id] + center = np.median((cc_labels == cid).nonzero(), axis=1)[::-1] + self.draw_text(text, center, color=color) + + def _convert_keypoints(self, keypoints): + if isinstance(keypoints, Keypoints): + keypoints = keypoints.tensor + keypoints = np.asarray(keypoints) + return keypoints + + def get_output(self): + """ + Returns: + output (VisImage): the image output containing the visualizations added + to the image. + """ + return self.output diff --git a/detectron2/dev/README.md b/detectron2/dev/README.md new file mode 100755 index 0000000..bec811a --- /dev/null +++ b/detectron2/dev/README.md @@ -0,0 +1,7 @@ + +## Some scripts for developers to use, include: + +- `linter.sh`: lint the codebase before commit. +- `run_{inference,instant}_tests.sh`: run inference/training for a few iterations. + Note that these tests require 2 GPUs. +- `parse_results.sh`: parse results from a log file. diff --git a/detectron2/dev/linter.sh b/detectron2/dev/linter.sh new file mode 100755 index 0000000..55793e0 --- /dev/null +++ b/detectron2/dev/linter.sh @@ -0,0 +1,42 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +# cd to detectron2 project root +cd "$(dirname "${BASH_SOURCE[0]}")/.." + +{ + black --version | grep -E "22\." > /dev/null +} || { + echo "Linter requires 'black==22.*' !" + exit 1 +} + +ISORT_VERSION=$(isort --version-number) +if [[ "$ISORT_VERSION" != 4.3* ]]; then + echo "Linter requires isort==4.3.21 !" + exit 1 +fi + +set -v + +echo "Running isort ..." +isort -y -sp . --atomic + +echo "Running black ..." +black -l 100 . + +echo "Running flake8 ..." +if [ -x "$(command -v flake8)" ]; then + flake8 . +else + python3 -m flake8 . +fi + +# echo "Running mypy ..." +# Pytorch does not have enough type annotations +# mypy detectron2/solver detectron2/structures detectron2/config + +echo "Running clang-format ..." +find . -regex ".*\.\(cpp\|c\|cc\|cu\|cxx\|h\|hh\|hpp\|hxx\|tcc\|mm\|m\)" -print0 | xargs -0 clang-format -i + +command -v arc > /dev/null && arc lint diff --git a/detectron2/dev/packaging/README.md b/detectron2/dev/packaging/README.md new file mode 100755 index 0000000..0174b7d --- /dev/null +++ b/detectron2/dev/packaging/README.md @@ -0,0 +1,17 @@ + +## To build a cu101 wheel for release: + +``` +$ nvidia-docker run -it --storage-opt "size=20GB" --name pt pytorch/manylinux-cuda101 +# inside the container: +# git clone https://github.com/facebookresearch/detectron2/ +# cd detectron2 +# export CU_VERSION=cu101 D2_VERSION_SUFFIX= PYTHON_VERSION=3.7 PYTORCH_VERSION=1.8 +# ./dev/packaging/build_wheel.sh +``` + +## To build all wheels for combinations of CUDA and Python +``` +./dev/packaging/build_all_wheels.sh +./dev/packaging/gen_wheel_index.sh /path/to/wheels +``` diff --git a/detectron2/dev/packaging/build_all_wheels.sh b/detectron2/dev/packaging/build_all_wheels.sh new file mode 100755 index 0000000..00f9de5 --- /dev/null +++ b/detectron2/dev/packaging/build_all_wheels.sh @@ -0,0 +1,65 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +[[ -d "dev/packaging" ]] || { + echo "Please run this script at detectron2 root!" + exit 1 +} + +build_one() { + cu=$1 + pytorch_ver=$2 + + case "$cu" in + cu*) + container_name=manylinux-cuda${cu/cu/} + ;; + cpu) + container_name=manylinux-cuda101 + ;; + *) + echo "Unrecognized cu=$cu" + exit 1 + ;; + esac + + echo "Launching container $container_name ..." + container_id="$container_name"_"$cu"_"$pytorch_ver" + + py_versions=(3.7 3.8 3.9) + + for py in "${py_versions[@]}"; do + docker run -itd \ + --name "$container_id" \ + --mount type=bind,source="$(pwd)",target=/detectron2 \ + pytorch/$container_name + + cat </dev/null 2>&1 && pwd )" +. "$script_dir/pkg_helpers.bash" + +echo "Build Settings:" +echo "CU_VERSION: $CU_VERSION" # e.g. cu101 +echo "D2_VERSION_SUFFIX: $D2_VERSION_SUFFIX" # e.g. +cu101 or "" +echo "PYTHON_VERSION: $PYTHON_VERSION" # e.g. 3.7 +echo "PYTORCH_VERSION: $PYTORCH_VERSION" # e.g. 1.4 + +setup_cuda +setup_wheel_python + +yum install ninja-build -y +ln -sv /usr/bin/ninja-build /usr/bin/ninja || true + +pip_install pip numpy -U +pip_install "torch==$PYTORCH_VERSION" \ + -f https://download.pytorch.org/whl/"$CU_VERSION"/torch_stable.html + +# use separate directories to allow parallel build +BASE_BUILD_DIR=build/$CU_VERSION-py$PYTHON_VERSION-pt$PYTORCH_VERSION +python setup.py \ + build -b "$BASE_BUILD_DIR" \ + bdist_wheel -b "$BASE_BUILD_DIR/build_dist" -d "wheels/$CU_VERSION/torch$PYTORCH_VERSION" +rm -rf "$BASE_BUILD_DIR" diff --git a/detectron2/dev/packaging/gen_install_table.py b/detectron2/dev/packaging/gen_install_table.py new file mode 100755 index 0000000..b4c852d --- /dev/null +++ b/detectron2/dev/packaging/gen_install_table.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +# -*- coding: utf-8 -*- + +import argparse + +template = """
install
\
+python -m pip install detectron2{d2_version} -f \\
+  https://dl.fbaipublicfiles.com/detectron2/wheels/{cuda}/torch{torch}/index.html
+
""" +CUDA_SUFFIX = { + "11.3": "cu113", + "11.1": "cu111", + "11.0": "cu110", + "10.2": "cu102", + "10.1": "cu101", + "10.0": "cu100", + "9.2": "cu92", + "cpu": "cpu", +} + + +def gen_header(torch_versions): + return '' + "".join( + [ + ''.format(t) + for t in torch_versions + ] + ) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser() + parser.add_argument("--d2-version", help="detectron2 version number, default to empty") + args = parser.parse_args() + d2_version = f"=={args.d2_version}" if args.d2_version else "" + + all_versions = ( + [("1.8", k) for k in ["11.1", "10.2", "10.1", "cpu"]] + + [("1.9", k) for k in ["11.1", "10.2", "cpu"]] + + [("1.10", k) for k in ["11.3", "11.1", "10.2", "cpu"]] + ) + + torch_versions = sorted( + {k[0] for k in all_versions}, key=lambda x: int(x.split(".")[1]), reverse=True + ) + cuda_versions = sorted( + {k[1] for k in all_versions}, key=lambda x: float(x) if x != "cpu" else 0, reverse=True + ) + + table = gen_header(torch_versions) + for cu in cuda_versions: + table += f""" """ + cu_suffix = CUDA_SUFFIX[cu] + for torch in torch_versions: + if (torch, cu) in all_versions: + cell = template.format(d2_version=d2_version, cuda=cu_suffix, torch=torch) + else: + cell = "" + table += f""" """ + table += "" + table += "
CUDA torch {}
{cu}{cell}
" + print(table) diff --git a/detectron2/dev/packaging/gen_wheel_index.sh b/detectron2/dev/packaging/gen_wheel_index.sh new file mode 100755 index 0000000..ec96a27 --- /dev/null +++ b/detectron2/dev/packaging/gen_wheel_index.sh @@ -0,0 +1,46 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + + +root=$(readlink -f $1) +if [[ -z "$root" ]]; then + echo "Usage: ./gen_wheel_index.sh /absolute/path/to/wheels" + exit +fi + +export LC_ALL=C # reproducible sort +# NOTE: all sort in this script might not work when xx.10 is released + +index=$root/index.html + +cd "$root" +for cu in cpu cu92 cu100 cu101 cu102 cu110 cu111 cu113; do + mkdir -p "$root/$cu" + cd "$root/$cu" + echo "Creating $PWD/index.html ..." + # First sort by torch version, then stable sort by d2 version with unique. + # As a result, the latest torch version for each d2 version is kept. + for whl in $(find -type f -name '*.whl' -printf '%P\n' \ + | sort -k 1 -r | sort -t '/' -k 2 --stable -r --unique); do + echo "$whl
" + done > index.html + + + for torch in torch*; do + cd "$root/$cu/$torch" + + # list all whl for each cuda,torch version + echo "Creating $PWD/index.html ..." + for whl in $(find . -type f -name '*.whl' -printf '%P\n' | sort -r); do + echo "$whl
" + done > index.html + done +done + +cd "$root" +# Just list everything: +echo "Creating $index ..." +for whl in $(find . -type f -name '*.whl' -printf '%P\n' | sort -r); do + echo "$whl
" +done > "$index" + diff --git a/detectron2/dev/packaging/pkg_helpers.bash b/detectron2/dev/packaging/pkg_helpers.bash new file mode 100755 index 0000000..550bb6e --- /dev/null +++ b/detectron2/dev/packaging/pkg_helpers.bash @@ -0,0 +1,75 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +# Function to retry functions that sometimes timeout or have flaky failures +retry () { + $* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*) +} +# Install with pip a bit more robustly than the default +pip_install() { + retry pip install --progress-bar off "$@" +} + + +setup_cuda() { + # Now work out the CUDA settings + # Like other torch domain libraries, we choose common GPU architectures only. + # See https://github.com/pytorch/pytorch/blob/master/torch/utils/cpp_extension.py + # and https://github.com/pytorch/vision/blob/main/packaging/pkg_helpers.bash for reference. + export FORCE_CUDA=1 + case "$CU_VERSION" in + cu113) + export CUDA_HOME=/usr/local/cuda-11.3/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX;8.0;8.6+PTX" + ;; + cu112) + export CUDA_HOME=/usr/local/cuda-11.2/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX;8.0;8.6+PTX" + ;; + cu111) + export CUDA_HOME=/usr/local/cuda-11.1/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX;8.0;8.6+PTX" + ;; + cu110) + export CUDA_HOME=/usr/local/cuda-11.0/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX;8.0+PTX" + ;; + cu102) + export CUDA_HOME=/usr/local/cuda-10.2/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX" + ;; + cu101) + export CUDA_HOME=/usr/local/cuda-10.1/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX" + ;; + cu100) + export CUDA_HOME=/usr/local/cuda-10.0/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0;7.5+PTX" + ;; + cu92) + export CUDA_HOME=/usr/local/cuda-9.2/ + export TORCH_CUDA_ARCH_LIST="3.7;5.0;5.2;6.0;6.1+PTX;7.0+PTX" + ;; + cpu) + unset FORCE_CUDA + export CUDA_VISIBLE_DEVICES= + ;; + *) + echo "Unrecognized CU_VERSION=$CU_VERSION" + exit 1 + ;; + esac +} + +setup_wheel_python() { + case "$PYTHON_VERSION" in + 3.7) python_abi=cp37-cp37m ;; + 3.8) python_abi=cp38-cp38 ;; + 3.9) python_abi=cp39-cp39 ;; + *) + echo "Unrecognized PYTHON_VERSION=$PYTHON_VERSION" + exit 1 + ;; + esac + export PATH="/opt/python/$python_abi/bin:$PATH" +} diff --git a/detectron2/dev/parse_results.sh b/detectron2/dev/parse_results.sh new file mode 100755 index 0000000..80768a4 --- /dev/null +++ b/detectron2/dev/parse_results.sh @@ -0,0 +1,45 @@ +#!/bin/bash +# Copyright (c) Facebook, Inc. and its affiliates. + +# A shell script that parses metrics from the log file. +# Make it easier for developers to track performance of models. + +LOG="$1" + +if [[ -z "$LOG" ]]; then + echo "Usage: $0 /path/to/log/file" + exit 1 +fi + +# [12/15 11:47:32] trainer INFO: Total training time: 12:15:04.446477 (0.4900 s / it) +# [12/15 11:49:03] inference INFO: Total inference time: 0:01:25.326167 (0.13652186737060548 s / img per device, on 8 devices) +# [12/15 11:49:03] inference INFO: Total inference pure compute time: ..... + +# training time +trainspeed=$(grep -o 'Overall training.*' "$LOG" | grep -Eo '\(.*\)' | grep -o '[0-9\.]*') +echo "Training speed: $trainspeed s/it" + +# inference time: there could be multiple inference during training +inferencespeed=$(grep -o 'Total inference pure.*' "$LOG" | tail -n1 | grep -Eo '\(.*\)' | grep -o '[0-9\.]*' | head -n1) +echo "Inference speed: $inferencespeed s/it" + +# [12/15 11:47:18] trainer INFO: eta: 0:00:00 iter: 90000 loss: 0.5407 (0.7256) loss_classifier: 0.1744 (0.2446) loss_box_reg: 0.0838 (0.1160) loss_mask: 0.2159 (0.2722) loss_objectness: 0.0244 (0.0429) loss_rpn_box_reg: 0.0279 (0.0500) time: 0.4487 (0.4899) data: 0.0076 (0.0975) lr: 0.000200 max mem: 4161 +memory=$(grep -o 'max[_ ]mem: [0-9]*' "$LOG" | tail -n1 | grep -o '[0-9]*') +echo "Training memory: $memory MB" + +echo "Easy to copypaste:" +echo "$trainspeed","$inferencespeed","$memory" + +echo "------------------------------" + +# [12/26 17:26:32] engine.coco_evaluation: copypaste: Task: bbox +# [12/26 17:26:32] engine.coco_evaluation: copypaste: AP,AP50,AP75,APs,APm,APl +# [12/26 17:26:32] engine.coco_evaluation: copypaste: 0.0017,0.0024,0.0017,0.0005,0.0019,0.0011 +# [12/26 17:26:32] engine.coco_evaluation: copypaste: Task: segm +# [12/26 17:26:32] engine.coco_evaluation: copypaste: AP,AP50,AP75,APs,APm,APl +# [12/26 17:26:32] engine.coco_evaluation: copypaste: 0.0014,0.0021,0.0016,0.0005,0.0016,0.0011 + +echo "COCO Results:" +num_tasks=$(grep -o 'copypaste:.*Task.*' "$LOG" | sort -u | wc -l) +# each task has 3 lines +grep -o 'copypaste:.*' "$LOG" | cut -d ' ' -f 2- | tail -n $((num_tasks * 3)) diff --git a/detectron2/dev/run_inference_tests.sh b/detectron2/dev/run_inference_tests.sh new file mode 100755 index 0000000..bc9dcc5 --- /dev/null +++ b/detectron2/dev/run_inference_tests.sh @@ -0,0 +1,44 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +BIN="python tools/train_net.py" +OUTPUT="inference_test_output" +NUM_GPUS=2 + +CFG_LIST=( "${@:1}" ) + +if [ ${#CFG_LIST[@]} -eq 0 ]; then + CFG_LIST=( ./configs/quick_schedules/*inference_acc_test.yaml ) +fi + +echo "========================================================================" +echo "Configs to run:" +echo "${CFG_LIST[@]}" +echo "========================================================================" + + +for cfg in "${CFG_LIST[@]}"; do + echo "========================================================================" + echo "Running $cfg ..." + echo "========================================================================" + $BIN \ + --eval-only \ + --num-gpus $NUM_GPUS \ + --config-file "$cfg" \ + OUTPUT_DIR $OUTPUT + rm -rf $OUTPUT +done + + +echo "========================================================================" +echo "Running demo.py ..." +echo "========================================================================" +DEMO_BIN="python demo/demo.py" +COCO_DIR=datasets/coco/val2014 +mkdir -pv $OUTPUT + +set -v + +$DEMO_BIN --config-file ./configs/quick_schedules/panoptic_fpn_R_50_inference_acc_test.yaml \ + --input $COCO_DIR/COCO_val2014_0000001933* --output $OUTPUT +rm -rf $OUTPUT diff --git a/detectron2/dev/run_instant_tests.sh b/detectron2/dev/run_instant_tests.sh new file mode 100755 index 0000000..9fd9ba0 --- /dev/null +++ b/detectron2/dev/run_instant_tests.sh @@ -0,0 +1,27 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +BIN="python tools/train_net.py" +OUTPUT="instant_test_output" +NUM_GPUS=2 + +CFG_LIST=( "${@:1}" ) +if [ ${#CFG_LIST[@]} -eq 0 ]; then + CFG_LIST=( ./configs/quick_schedules/*instant_test.yaml ) +fi + +echo "========================================================================" +echo "Configs to run:" +echo "${CFG_LIST[@]}" +echo "========================================================================" + +for cfg in "${CFG_LIST[@]}"; do + echo "========================================================================" + echo "Running $cfg ..." + echo "========================================================================" + $BIN --num-gpus $NUM_GPUS --config-file "$cfg" \ + SOLVER.IMS_PER_BATCH $(($NUM_GPUS * 2)) \ + OUTPUT_DIR "$OUTPUT" + rm -rf "$OUTPUT" +done + diff --git a/detectron2/docker/Dockerfile b/detectron2/docker/Dockerfile new file mode 100755 index 0000000..fae0060 --- /dev/null +++ b/detectron2/docker/Dockerfile @@ -0,0 +1,47 @@ +FROM nvidia/cuda:11.1.1-cudnn8-devel-ubuntu18.04 +# use an older system (18.04) to avoid opencv incompatibility (issue#3524) + +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update && apt-get install -y \ + python3-opencv ca-certificates python3-dev git wget sudo ninja-build +RUN ln -sv /usr/bin/python3 /usr/bin/python + +# create a non-root user +ARG USER_ID=1000 +RUN useradd -m --no-log-init --system --uid ${USER_ID} appuser -g sudo +RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +USER appuser +WORKDIR /home/appuser + +ENV PATH="/home/appuser/.local/bin:${PATH}" +RUN wget https://bootstrap.pypa.io/pip/3.6/get-pip.py && \ + python3 get-pip.py --user && \ + rm get-pip.py + +# install dependencies +# See https://pytorch.org/ for other options if you use a different version of CUDA +RUN pip install --user tensorboard cmake onnx # cmake from apt-get is too old +RUN pip install --user torch==1.10 torchvision==0.11.1 -f https://download.pytorch.org/whl/cu111/torch_stable.html + +RUN pip install --user 'git+https://github.com/facebookresearch/fvcore' +# install detectron2 +RUN git clone https://github.com/facebookresearch/detectron2 detectron2_repo +# set FORCE_CUDA because during `docker build` cuda is not accessible +ENV FORCE_CUDA="1" +# This will by default build detectron2 for all common cuda architectures and take a lot more time, +# because inside `docker build`, there is no way to tell which architecture will be used. +ARG TORCH_CUDA_ARCH_LIST="Kepler;Kepler+Tesla;Maxwell;Maxwell+Tegra;Pascal;Volta;Turing" +ENV TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST}" + +RUN pip install --user -e detectron2_repo + +# Set a fixed model cache directory. +ENV FVCORE_CACHE="/tmp" +WORKDIR /home/appuser/detectron2_repo + +# run detectron2 under user "appuser": +# wget http://images.cocodataset.org/val2017/000000439715.jpg -O input.jpg +# python3 demo/demo.py \ + #--config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \ + #--input input.jpg --output outputs/ \ + #--opts MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl diff --git a/detectron2/docker/README.md b/detectron2/docker/README.md new file mode 100755 index 0000000..ea709f3 --- /dev/null +++ b/detectron2/docker/README.md @@ -0,0 +1,45 @@ + +## Use the container (with docker ≥ 19.03) + +``` +cd docker/ +# Build: +docker build --build-arg USER_ID=$UID -t detectron2:v0 . +# Launch (require GPUs): +docker run --gpus all -it \ + --shm-size=8gb --env="DISPLAY" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ + --name=detectron2 detectron2:v0 + +# Grant docker access to host X server to show images +xhost +local:`docker inspect --format='{{ .Config.Hostname }}' detectron2` +``` + +## Use the container (with docker-compose ≥ 1.28.0) + +Install docker-compose and nvidia-docker-toolkit, then run: +``` +cd docker && USER_ID=$UID docker-compose run detectron2 +``` + +## Use the deployment container (to test C++ examples) +After building the base detectron2 container as above, do: +``` +# Build: +docker build -t detectron2-deploy:v0 -f deploy.Dockerfile . +# Launch: +docker run --gpus all -it detectron2-deploy:v0 +``` + +#### Using a persistent cache directory + +You can prevent models from being re-downloaded on every run, +by storing them in a cache directory. + +To do this, add `--volume=$HOME/.torch/fvcore_cache:/tmp:rw` in the run command. + +## Install new dependencies +Add the following to `Dockerfile` to make persistent changes. +``` +RUN sudo apt-get update && sudo apt-get install -y vim +``` +Or run them in the container to make temporary changes. diff --git a/detectron2/docker/deploy.Dockerfile b/detectron2/docker/deploy.Dockerfile new file mode 100755 index 0000000..30b4ed7 --- /dev/null +++ b/detectron2/docker/deploy.Dockerfile @@ -0,0 +1,32 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# This file defines a container that compiles the C++ examples of detectron2. +# See docker/README.md for usage. + +# Depends on the image produced by "./Dockerfile" +FROM detectron2:v0 + +USER appuser +ENV HOME=/home/appuser +WORKDIR $HOME + +# Let torchvision find libtorch +ENV CMAKE_PREFIX_PATH=$HOME/.local/lib/python3.6/site-packages/torch/ + +RUN sudo apt-get update && sudo apt-get install libopencv-dev --yes + +# install libtorchvision +RUN git clone --branch v0.11.1 https://github.com/pytorch/vision/ +RUN mkdir vision/build && cd vision/build && \ + cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_BUILD_TYPE=Release -DWITH_CUDA=on -DTORCH_CUDA_ARCH_LIST=$TORCH_CUDA_ARCH_LIST && \ + make -j && make install + +# make our installation take effect +ENV CPATH=$HOME/.local/include \ + LIBRARY_PATH=$HOME/.local/lib \ + LD_LIBRARY_PATH=$HOME/.local/lib + + +# build C++ examples of detectron2 +RUN cd detectron2_repo/tools/deploy && mkdir build && cd build && \ + cmake -DTORCH_CUDA_ARCH_LIST=$TORCH_CUDA_ARCH_LIST .. && make +# binaries will be available under tools/deploy/build diff --git a/detectron2/docker/docker-compose.yml b/detectron2/docker/docker-compose.yml new file mode 100755 index 0000000..6665ab4 --- /dev/null +++ b/detectron2/docker/docker-compose.yml @@ -0,0 +1,26 @@ +version: "2.3" +services: + detectron2: + build: + context: . + dockerfile: Dockerfile + args: + USER_ID: ${USER_ID:-1000} + deploy: + resources: + reservations: + devices: + - capabilities: + - gpu + shm_size: "8gb" + ulimits: + memlock: -1 + stack: 67108864 + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix:ro + environment: + - DISPLAY=$DISPLAY + - NVIDIA_VISIBLE_DEVICES=all + # Uncomment with proper source to access webcam from docker + # devices: + # - /dev/video0:/dev/video0 diff --git a/detectron2/docs/.gitignore b/detectron2/docs/.gitignore new file mode 100755 index 0000000..e35d885 --- /dev/null +++ b/detectron2/docs/.gitignore @@ -0,0 +1 @@ +_build diff --git a/detectron2/docs/Makefile b/detectron2/docs/Makefile new file mode 100755 index 0000000..718eddc --- /dev/null +++ b/detectron2/docs/Makefile @@ -0,0 +1,19 @@ +# Minimal makefile for Sphinx documentation +# Copyright (c) Facebook, Inc. and its affiliates. + +# You can set these variables from the command line. +SPHINXOPTS = +SPHINXBUILD = sphinx-build +SOURCEDIR = . +BUILDDIR = _build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) diff --git a/detectron2/docs/README.md b/detectron2/docs/README.md new file mode 100755 index 0000000..8531caf --- /dev/null +++ b/detectron2/docs/README.md @@ -0,0 +1,15 @@ +# Read the docs: + +The latest documentation built from this directory is available at [detectron2.readthedocs.io](https://detectron2.readthedocs.io/). +Documents in this directory are not meant to be read on github. + +# Build the docs: + +1. Install detectron2 according to [INSTALL.md](../INSTALL.md). +2. Install additional libraries required to build docs: + - docutils==0.16 + - Sphinx==3.2.0 + - recommonmark==0.6.0 + - sphinx_rtd_theme + +3. Run `make html` from this directory. diff --git a/detectron2/docs/_static/css/custom.css b/detectron2/docs/_static/css/custom.css new file mode 100755 index 0000000..6c51176 --- /dev/null +++ b/detectron2/docs/_static/css/custom.css @@ -0,0 +1,30 @@ +/* + * Copyright (c) Facebook, Inc. and its affiliates. + * some extra css to make markdown look similar between github/sphinx + */ + +/* + * Below is for install.md: + */ +.rst-content code { + white-space: pre; + border: 0px; +} + +.rst-content th { + border: 1px solid #e1e4e5; +} + +.rst-content th p { + /* otherwise will be default 24px for regular paragraph */ + margin-bottom: 0px; +} + +.rst-content .line-block { + /* otherwise will be 24px */ + margin-bottom: 0px; +} + +div.section > details { + padding-bottom: 1em; +} diff --git a/detectron2/docs/conf.py b/detectron2/docs/conf.py new file mode 100755 index 0000000..1fb3e30 --- /dev/null +++ b/detectron2/docs/conf.py @@ -0,0 +1,395 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +# flake8: noqa + +# Configuration file for the Sphinx documentation builder. +# +# This file does only contain a selection of the most common options. For a +# full list see the documentation: +# http://www.sphinx-doc.org/en/master/config + +# -- Path setup -------------------------------------------------------------- + +# If extensions (or modules to document with autodoc) are in another directory, +# add these directories to sys.path here. If the directory is relative to the +# documentation root, use os.path.abspath to make it absolute, like shown here. +# +import os +import sys +from unittest import mock +from sphinx.domains import Domain +from typing import Dict, List, Tuple + +# The theme to use for HTML and HTML Help pages. See the documentation for +# a list of builtin themes. +# +import sphinx_rtd_theme + + +class GithubURLDomain(Domain): + """ + Resolve certain links in markdown files to github source. + """ + + name = "githuburl" + ROOT = "https://github.com/facebookresearch/detectron2/blob/main/" + LINKED_DOC = ["tutorials/install", "tutorials/getting_started"] + + def resolve_any_xref(self, env, fromdocname, builder, target, node, contnode): + github_url = None + if not target.endswith("html") and target.startswith("../../"): + url = target.replace("../", "") + github_url = url + if fromdocname in self.LINKED_DOC: + # unresolved links in these docs are all github links + github_url = target + + if github_url is not None: + if github_url.endswith("MODEL_ZOO") or github_url.endswith("README"): + # bug of recommonmark. + # https://github.com/readthedocs/recommonmark/blob/ddd56e7717e9745f11300059e4268e204138a6b1/recommonmark/parser.py#L152-L155 + github_url += ".md" + print("Ref {} resolved to github:{}".format(target, github_url)) + contnode["refuri"] = self.ROOT + github_url + return [("githuburl:any", contnode)] + else: + return [] + + +# to support markdown +from recommonmark.parser import CommonMarkParser + +sys.path.insert(0, os.path.abspath("../")) +os.environ["_DOC_BUILDING"] = "True" +DEPLOY = os.environ.get("READTHEDOCS") == "True" + + +# -- Project information ----------------------------------------------------- + +# fmt: off +try: + import torch # noqa +except ImportError: + for m in [ + "torch", "torchvision", "torch.nn", "torch.nn.parallel", "torch.distributed", "torch.multiprocessing", "torch.autograd", + "torch.autograd.function", "torch.nn.modules", "torch.nn.modules.utils", "torch.utils", "torch.utils.data", "torch.onnx", + "torchvision", "torchvision.ops", + ]: + sys.modules[m] = mock.Mock(name=m) + sys.modules['torch'].__version__ = "1.7" # fake version + HAS_TORCH = False +else: + try: + torch.ops.detectron2 = mock.Mock(name="torch.ops.detectron2") + except: + pass + HAS_TORCH = True + +for m in [ + "cv2", "scipy", "portalocker", "detectron2._C", + "pycocotools", "pycocotools.mask", "pycocotools.coco", "pycocotools.cocoeval", + "google", "google.protobuf", "google.protobuf.internal", "onnx", + "caffe2", "caffe2.proto", "caffe2.python", "caffe2.python.utils", "caffe2.python.onnx", "caffe2.python.onnx.backend", +]: + sys.modules[m] = mock.Mock(name=m) +# fmt: on +sys.modules["cv2"].__version__ = "3.4" + +import detectron2 # isort: skip + +if HAS_TORCH: + from detectron2.utils.env import fixup_module_metadata + + fixup_module_metadata("torch.nn", torch.nn.__dict__) + fixup_module_metadata("torch.utils.data", torch.utils.data.__dict__) + + +project = "detectron2" +copyright = "2019-2020, detectron2 contributors" +author = "detectron2 contributors" + +# The short X.Y version +version = detectron2.__version__ +# The full version, including alpha/beta/rc tags +release = version + + +# -- General configuration --------------------------------------------------- + +# If your documentation needs a minimal Sphinx version, state it here. +# +needs_sphinx = "3.0" + +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom +# ones. +extensions = [ + "recommonmark", + "sphinx.ext.autodoc", + "sphinx.ext.napoleon", + "sphinx.ext.intersphinx", + "sphinx.ext.todo", + "sphinx.ext.coverage", + "sphinx.ext.mathjax", + "sphinx.ext.viewcode", + "sphinx.ext.githubpages", +] + +# -- Configurations for plugins ------------ +napoleon_google_docstring = True +napoleon_include_init_with_doc = True +napoleon_include_special_with_doc = True +napoleon_numpy_docstring = False +napoleon_use_rtype = False +autodoc_inherit_docstrings = False +autodoc_member_order = "bysource" + +if DEPLOY: + intersphinx_timeout = 10 +else: + # skip this when building locally + intersphinx_timeout = 0.5 +intersphinx_mapping = { + "python": ("https://docs.python.org/3.7", None), + "numpy": ("https://docs.scipy.org/doc/numpy/", None), + "torch": ("https://pytorch.org/docs/master/", None), +} +# ------------------------- + + +# Add any paths that contain templates here, relative to this directory. +templates_path = ["_templates"] + +source_suffix = [".rst", ".md"] + +# The master toctree document. +master_doc = "index" + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +# +# This is also used if you do content translation via gettext catalogs. +# Usually you set "language" from the command line for these cases. +language = None + +# List of patterns, relative to source directory, that match files and +# directories to ignore when looking for source files. +# This pattern also affects html_static_path and html_extra_path. +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "build", "README.md", "tutorials/README.md"] + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = "sphinx" + + +# -- Options for HTML output ------------------------------------------------- + +html_theme = "sphinx_rtd_theme" +html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] + +# Theme options are theme-specific and customize the look and feel of a theme +# further. For a list of options available for each theme, see the +# documentation. +# +# html_theme_options = {} + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +html_static_path = ["_static"] +html_css_files = ["css/custom.css"] + +# Custom sidebar templates, must be a dictionary that maps document names +# to template names. +# +# The default sidebars (for documents that don't match any pattern) are +# defined by theme itself. Builtin themes are using these templates by +# default: ``['localtoc.html', 'relations.html', 'sourcelink.html', +# 'searchbox.html']``. +# +# html_sidebars = {} + + +# -- Options for HTMLHelp output --------------------------------------------- + +# Output file base name for HTML help builder. +htmlhelp_basename = "detectron2doc" + + +# -- Options for LaTeX output ------------------------------------------------ + +latex_elements = { + # The paper size ('letterpaper' or 'a4paper'). + # + # 'papersize': 'letterpaper', + # The font size ('10pt', '11pt' or '12pt'). + # + # 'pointsize': '10pt', + # Additional stuff for the LaTeX preamble. + # + # 'preamble': '', + # Latex figure (float) alignment + # + # 'figure_align': 'htbp', +} + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, +# author, documentclass [howto, manual, or own class]). +latex_documents = [ + (master_doc, "detectron2.tex", "detectron2 Documentation", "detectron2 contributors", "manual") +] + + +# -- Options for manual page output ------------------------------------------ + +# One entry per manual page. List of tuples +# (source start file, name, description, authors, manual section). +man_pages = [(master_doc, "detectron2", "detectron2 Documentation", [author], 1)] + + +# -- Options for Texinfo output ---------------------------------------------- + +# Grouping the document tree into Texinfo files. List of tuples +# (source start file, target name, title, author, +# dir menu entry, description, category) +texinfo_documents = [ + ( + master_doc, + "detectron2", + "detectron2 Documentation", + author, + "detectron2", + "One line description of project.", + "Miscellaneous", + ) +] + + +# -- Options for todo extension ---------------------------------------------- + +# If true, `todo` and `todoList` produce output, else they produce nothing. +todo_include_todos = True + + +def autodoc_skip_member(app, what, name, obj, skip, options): + # we hide something deliberately + if getattr(obj, "__HIDE_SPHINX_DOC__", False): + return True + + # Hide some that are deprecated or not intended to be used + HIDDEN = { + "ResNetBlockBase", + "GroupedBatchSampler", + "build_transform_gen", + "apply_transform_gens", + "TransformGen", + "apply_augmentations", + "StandardAugInput", + "build_batch_data_loader", + "draw_panoptic_seg_predictions", + "WarmupCosineLR", + "WarmupMultiStepLR", + "downgrade_config", + "upgrade_config", + "add_export_config", + } + try: + if name in HIDDEN or ( + hasattr(obj, "__doc__") and obj.__doc__.lower().strip().startswith("deprecated") + ): + print("Skipping deprecated object: {}".format(name)) + return True + except: + pass + return skip + + +_PAPER_DATA = { + "resnet": ("1512.03385", "Deep Residual Learning for Image Recognition"), + "fpn": ("1612.03144", "Feature Pyramid Networks for Object Detection"), + "mask r-cnn": ("1703.06870", "Mask R-CNN"), + "faster r-cnn": ( + "1506.01497", + "Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks", + ), + "deformconv": ("1703.06211", "Deformable Convolutional Networks"), + "deformconv2": ("1811.11168", "Deformable ConvNets v2: More Deformable, Better Results"), + "panopticfpn": ("1901.02446", "Panoptic Feature Pyramid Networks"), + "retinanet": ("1708.02002", "Focal Loss for Dense Object Detection"), + "cascade r-cnn": ("1712.00726", "Cascade R-CNN: Delving into High Quality Object Detection"), + "lvis": ("1908.03195", "LVIS: A Dataset for Large Vocabulary Instance Segmentation"), + "rrpn": ("1703.01086", "Arbitrary-Oriented Scene Text Detection via Rotation Proposals"), + "imagenet in 1h": ("1706.02677", "Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour"), + "xception": ("1610.02357", "Xception: Deep Learning with Depthwise Separable Convolutions"), + "mobilenet": ( + "1704.04861", + "MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications", + ), + "deeplabv3+": ( + "1802.02611", + "Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation", + ), + "dds": ("2003.13678", "Designing Network Design Spaces"), + "scaling": ("2103.06877", "Fast and Accurate Model Scaling"), + "fcos": ("2006.09214", "FCOS: A Simple and Strong Anchor-free Object Detector"), + "rethinking-batchnorm": ("2105.07576", 'Rethinking "Batch" in BatchNorm'), + "vitdet": ("2203.16527", "Exploring Plain Vision Transformer Backbones for Object Detection"), + "mvitv2": ( + "2112.01526", + "MViTv2: Improved Multiscale Vision Transformers for Classification and Detection", + ), + "swin": ( + "2103.14030", + "Swin Transformer: Hierarchical Vision Transformer using Shifted Windows", + ), + "omni3d": ( + "2207.10660", + "Omni3D: A Large Benchmark and Model for 3D Object Detection in the Wild", + ), +} + + +def paper_ref_role( + typ: str, + rawtext: str, + text: str, + lineno: int, + inliner, + options: Dict = {}, + content: List[str] = [], +): + """ + Parse :paper:`xxx`. Similar to the "extlinks" sphinx extension. + """ + from docutils import nodes, utils + from sphinx.util.nodes import split_explicit_title + + text = utils.unescape(text) + has_explicit_title, title, link = split_explicit_title(text) + link = link.lower() + if link not in _PAPER_DATA: + inliner.reporter.warning("Cannot find paper " + link) + paper_url, paper_title = "#", link + else: + paper_url, paper_title = _PAPER_DATA[link] + if "/" not in paper_url: + paper_url = "https://arxiv.org/abs/" + paper_url + if not has_explicit_title: + title = paper_title + pnode = nodes.reference(title, title, internal=False, refuri=paper_url) + return [pnode], [] + + +def setup(app): + from recommonmark.transform import AutoStructify + + app.add_domain(GithubURLDomain) + app.connect("autodoc-skip-member", autodoc_skip_member) + app.add_role("paper", paper_ref_role) + app.add_config_value( + "recommonmark_config", + {"enable_math": True, "enable_inline_math": True, "enable_eval_rst": True}, + True, + ) + app.add_transform(AutoStructify) diff --git a/detectron2/docs/index.rst b/detectron2/docs/index.rst new file mode 100755 index 0000000..8634b7b --- /dev/null +++ b/detectron2/docs/index.rst @@ -0,0 +1,14 @@ +.. detectron2 documentation master file, created by + sphinx-quickstart on Sat Sep 21 13:46:45 2019. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to detectron2's documentation! +====================================== + +.. toctree:: + :maxdepth: 2 + + tutorials/index + notes/index + modules/index diff --git a/detectron2/docs/modules/checkpoint.rst b/detectron2/docs/modules/checkpoint.rst new file mode 100755 index 0000000..449caaf --- /dev/null +++ b/detectron2/docs/modules/checkpoint.rst @@ -0,0 +1,7 @@ +detectron2.checkpoint +============================= + +.. automodule:: detectron2.checkpoint + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/config.rst b/detectron2/docs/modules/config.rst new file mode 100755 index 0000000..c76913d --- /dev/null +++ b/detectron2/docs/modules/config.rst @@ -0,0 +1,18 @@ +detectron2.config +========================= + +Related tutorials: :doc:`../tutorials/configs`, :doc:`../tutorials/extend`. + +.. automodule:: detectron2.config + :members: + :undoc-members: + :show-inheritance: + + +Yaml Config References +----------------- + +.. literalinclude:: ../../detectron2/config/defaults.py + :language: python + :linenos: + :lines: 7- diff --git a/detectron2/docs/modules/data.rst b/detectron2/docs/modules/data.rst new file mode 100755 index 0000000..0d5bd89 --- /dev/null +++ b/detectron2/docs/modules/data.rst @@ -0,0 +1,37 @@ +detectron2.data +======================= + +.. autodata:: detectron2.data.DatasetCatalog(dict) + :annotation: + +.. autodata:: detectron2.data.MetadataCatalog(dict) + :annotation: + +.. automodule:: detectron2.data + :members: + :undoc-members: + :show-inheritance: + +detectron2.data.detection\_utils module +--------------------------------------- + +.. automodule:: detectron2.data.detection_utils + :members: + :undoc-members: + :show-inheritance: + +detectron2.data.datasets module +--------------------------------------- + +.. automodule:: detectron2.data.datasets + :members: + :undoc-members: + :show-inheritance: + +detectron2.data.samplers module +--------------------------------------- + +.. automodule:: detectron2.data.samplers + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/data_transforms.rst b/detectron2/docs/modules/data_transforms.rst new file mode 100755 index 0000000..1533a43 --- /dev/null +++ b/detectron2/docs/modules/data_transforms.rst @@ -0,0 +1,10 @@ +detectron2.data.transforms +==================================== + +Related tutorial: :doc:`../tutorials/augmentation`. + +.. automodule:: detectron2.data.transforms + :members: + :undoc-members: + :show-inheritance: + :imported-members: diff --git a/detectron2/docs/modules/engine.rst b/detectron2/docs/modules/engine.rst new file mode 100755 index 0000000..7e0d2b0 --- /dev/null +++ b/detectron2/docs/modules/engine.rst @@ -0,0 +1,26 @@ +detectron2.engine +========================= + +Related tutorial: :doc:`../tutorials/training`. + +.. automodule:: detectron2.engine + :members: + :undoc-members: + :show-inheritance: + + +detectron2.engine.defaults module +--------------------------------- + +.. automodule:: detectron2.engine.defaults + :members: + :undoc-members: + :show-inheritance: + +detectron2.engine.hooks module +--------------------------------- + +.. automodule:: detectron2.engine.hooks + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/evaluation.rst b/detectron2/docs/modules/evaluation.rst new file mode 100755 index 0000000..69bfc4b --- /dev/null +++ b/detectron2/docs/modules/evaluation.rst @@ -0,0 +1,7 @@ +detectron2.evaluation +============================= + +.. automodule:: detectron2.evaluation + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/export.rst b/detectron2/docs/modules/export.rst new file mode 100755 index 0000000..dcee14f --- /dev/null +++ b/detectron2/docs/modules/export.rst @@ -0,0 +1,9 @@ +detectron2.export +========================= + +Related tutorial: :doc:`../tutorials/deployment`. + +.. automodule:: detectron2.export + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/fvcore.rst b/detectron2/docs/modules/fvcore.rst new file mode 100755 index 0000000..c8bf9f5 --- /dev/null +++ b/detectron2/docs/modules/fvcore.rst @@ -0,0 +1,49 @@ +fvcore documentation +==================== + +Detectron2 depends on utilities in +`fvcore `_. +We include part of fvcore documentation here for easier reference. + +fvcore.nn +----------------- + +.. automodule:: fvcore.nn + :members: + :inherited-members: + :undoc-members: + :show-inheritance: + +fvcore.common +--------------------- + +.. automodule:: fvcore.common.checkpoint + :members: + :undoc-members: + :show-inheritance: + +.. automodule:: fvcore.common.config + :members: + :undoc-members: + :show-inheritance: + +.. automodule:: fvcore.common.history_buffer + :members: + :undoc-members: + :show-inheritance: + +.. automodule:: fvcore.common.param_scheduler + :members: + :inherited-members: + :undoc-members: + :show-inheritance: + +.. automodule:: fvcore.common.registry + :members: + :undoc-members: + :show-inheritance: + +.. automodule:: fvcore.common.timer + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/index.rst b/detectron2/docs/modules/index.rst new file mode 100755 index 0000000..14b7543 --- /dev/null +++ b/detectron2/docs/modules/index.rst @@ -0,0 +1,19 @@ +API Documentation +================== + +.. toctree:: + + checkpoint + config + data + data_transforms + engine + evaluation + layers + model_zoo + modeling + solver + structures + utils + export + fvcore diff --git a/detectron2/docs/modules/layers.rst b/detectron2/docs/modules/layers.rst new file mode 100755 index 0000000..b43b42a --- /dev/null +++ b/detectron2/docs/modules/layers.rst @@ -0,0 +1,7 @@ +detectron2.layers +========================= + +.. automodule:: detectron2.layers + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/model_zoo.rst b/detectron2/docs/modules/model_zoo.rst new file mode 100755 index 0000000..5abbad1 --- /dev/null +++ b/detectron2/docs/modules/model_zoo.rst @@ -0,0 +1,7 @@ +detectron2.model_zoo +============================ + +.. automodule:: detectron2.model_zoo + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/modeling.rst b/detectron2/docs/modules/modeling.rst new file mode 100755 index 0000000..a22c7ed --- /dev/null +++ b/detectron2/docs/modules/modeling.rst @@ -0,0 +1,58 @@ +detectron2.modeling +=========================== + +.. automodule:: detectron2.modeling + :members: + :undoc-members: + :show-inheritance: + + +detectron2.modeling.poolers module +--------------------------------------- + +.. automodule:: detectron2.modeling.poolers + :members: + :undoc-members: + :show-inheritance: + + +detectron2.modeling.sampling module +------------------------------------ + +.. automodule:: detectron2.modeling.sampling + :members: + :undoc-members: + :show-inheritance: + + +detectron2.modeling.box_regression module +------------------------------------------ + +.. automodule:: detectron2.modeling.box_regression + :members: + :undoc-members: + :show-inheritance: + + +Model Registries +----------------- + +These are different registries provided in modeling. +Each registry provide you the ability to replace it with your customized component, +without having to modify detectron2's code. + +Note that it is impossible to allow users to customize any line of code directly. +Even just to add one line at some place, +you'll likely need to find out the smallest registry which contains that line, +and register your component to that registry. + + +.. autodata:: detectron2.modeling.META_ARCH_REGISTRY +.. autodata:: detectron2.modeling.BACKBONE_REGISTRY +.. autodata:: detectron2.modeling.PROPOSAL_GENERATOR_REGISTRY +.. autodata:: detectron2.modeling.RPN_HEAD_REGISTRY +.. autodata:: detectron2.modeling.ANCHOR_GENERATOR_REGISTRY +.. autodata:: detectron2.modeling.ROI_HEADS_REGISTRY +.. autodata:: detectron2.modeling.ROI_BOX_HEAD_REGISTRY +.. autodata:: detectron2.modeling.ROI_MASK_HEAD_REGISTRY +.. autodata:: detectron2.modeling.ROI_KEYPOINT_HEAD_REGISTRY diff --git a/detectron2/docs/modules/solver.rst b/detectron2/docs/modules/solver.rst new file mode 100755 index 0000000..59d98c7 --- /dev/null +++ b/detectron2/docs/modules/solver.rst @@ -0,0 +1,7 @@ +detectron2.solver +========================= + +.. automodule:: detectron2.solver + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/structures.rst b/detectron2/docs/modules/structures.rst new file mode 100755 index 0000000..1369dc0 --- /dev/null +++ b/detectron2/docs/modules/structures.rst @@ -0,0 +1,7 @@ +detectron2.structures +============================= + +.. automodule:: detectron2.structures + :members: + :undoc-members: + :show-inheritance: diff --git a/detectron2/docs/modules/utils.rst b/detectron2/docs/modules/utils.rst new file mode 100755 index 0000000..ab58f2c --- /dev/null +++ b/detectron2/docs/modules/utils.rst @@ -0,0 +1,80 @@ +detectron2.utils +======================== + +detectron2.utils.colormap module +-------------------------------- + +.. automodule:: detectron2.utils.colormap + :members: + :undoc-members: + :show-inheritance: + +detectron2.utils.comm module +---------------------------- + +.. automodule:: detectron2.utils.comm + :members: + :undoc-members: + :show-inheritance: + + +detectron2.utils.events module +------------------------------ + +.. automodule:: detectron2.utils.events + :members: + :undoc-members: + :show-inheritance: + + +detectron2.utils.logger module +------------------------------ + +.. automodule:: detectron2.utils.logger + :members: + :undoc-members: + :show-inheritance: + + +detectron2.utils.registry module +-------------------------------- + +.. automodule:: detectron2.utils.registry + :members: + :undoc-members: + :show-inheritance: + +detectron2.utils.memory module +---------------------------------- + +.. automodule:: detectron2.utils.memory + :members: + :undoc-members: + :show-inheritance: + + +detectron2.utils.analysis module +---------------------------------- + +.. automodule:: detectron2.utils.analysis + :members: + :undoc-members: + :show-inheritance: + + +detectron2.utils.visualizer module +---------------------------------- + +.. automodule:: detectron2.utils.visualizer + :members: + :undoc-members: + :show-inheritance: + +detectron2.utils.video\_visualizer module +----------------------------------------- + +.. automodule:: detectron2.utils.video_visualizer + :members: + :undoc-members: + :show-inheritance: + diff --git a/detectron2/docs/notes/benchmarks.md b/detectron2/docs/notes/benchmarks.md new file mode 100755 index 0000000..b41588d --- /dev/null +++ b/detectron2/docs/notes/benchmarks.md @@ -0,0 +1,196 @@ + +# Benchmarks + +Here we benchmark the training speed of a Mask R-CNN in detectron2, +with some other popular open source Mask R-CNN implementations. + + +### Settings + +* Hardware: 8 NVIDIA V100s with NVLink. +* Software: Python 3.7, CUDA 10.1, cuDNN 7.6.5, PyTorch 1.5, + TensorFlow 1.15.0rc2, Keras 2.2.5, MxNet 1.6.0b20190820. +* Model: an end-to-end R-50-FPN Mask-RCNN model, using the same hyperparameter as the + [Detectron baseline config](https://github.com/facebookresearch/Detectron/blob/master/configs/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml) + (it does not have scale augmentation). +* Metrics: We use the average throughput in iterations 100-500 to skip GPU warmup time. + Note that for R-CNN-style models, the throughput of a model typically changes during training, because + it depends on the predictions of the model. Therefore this metric is not directly comparable with + "train speed" in model zoo, which is the average speed of the entire training run. + + +### Main Results + +```eval_rst ++-------------------------------+--------------------+ +| Implementation | Throughput (img/s) | ++===============================+====================+ +| |D2| |PT| | 62 | ++-------------------------------+--------------------+ +| mmdetection_ |PT| | 53 | ++-------------------------------+--------------------+ +| maskrcnn-benchmark_ |PT| | 53 | ++-------------------------------+--------------------+ +| tensorpack_ |TF| | 50 | ++-------------------------------+--------------------+ +| simpledet_ |mxnet| | 39 | ++-------------------------------+--------------------+ +| Detectron_ |C2| | 19 | ++-------------------------------+--------------------+ +| `matterport/Mask_RCNN`__ |TF| | 14 | ++-------------------------------+--------------------+ + +.. _maskrcnn-benchmark: https://github.com/facebookresearch/maskrcnn-benchmark/ +.. _tensorpack: https://github.com/tensorpack/tensorpack/tree/master/examples/FasterRCNN +.. _mmdetection: https://github.com/open-mmlab/mmdetection/ +.. _simpledet: https://github.com/TuSimple/simpledet/ +.. _Detectron: https://github.com/facebookresearch/Detectron +__ https://github.com/matterport/Mask_RCNN/ + +.. |D2| image:: https://github.com/facebookresearch/detectron2/raw/main/.github/Detectron2-Logo-Horz.svg?sanitize=true + :height: 15pt + :target: https://github.com/facebookresearch/detectron2/ +.. |PT| image:: https://pytorch.org/assets/images/logo-icon.svg + :width: 15pt + :height: 15pt + :target: https://pytorch.org +.. |TF| image:: https://static.nvidiagrid.net/ngc/containers/tensorflow.png + :width: 15pt + :height: 15pt + :target: https://tensorflow.org +.. |mxnet| image:: https://github.com/dmlc/web-data/raw/master/mxnet/image/mxnet_favicon.png + :width: 15pt + :height: 15pt + :target: https://mxnet.apache.org/ +.. |C2| image:: https://caffe2.ai/static/logo.svg + :width: 15pt + :height: 15pt + :target: https://caffe2.ai +``` + + +Details for each implementation: + +* __Detectron2__: with release v0.1.2, run: + ``` + python tools/train_net.py --config-file configs/Detectron1-Comparisons/mask_rcnn_R_50_FPN_noaug_1x.yaml --num-gpus 8 + ``` + +* __mmdetection__: at commit `b0d845f`, run + ``` + ./tools/dist_train.sh configs/mask_rcnn/mask_rcnn_r50_caffe_fpn_1x_coco.py 8 + ``` + +* __maskrcnn-benchmark__: use commit `0ce8f6f` with `sed -i 's/torch.uint8/torch.bool/g' **/*.py; sed -i 's/AT_CHECK/TORCH_CHECK/g' **/*.cu` + to make it compatible with PyTorch 1.5. Then, run training with + ``` + python -m torch.distributed.launch --nproc_per_node=8 tools/train_net.py --config-file configs/e2e_mask_rcnn_R_50_FPN_1x.yaml + ``` + The speed we observed is faster than its model zoo, likely due to different software versions. + +* __tensorpack__: at commit `caafda`, `export TF_CUDNN_USE_AUTOTUNE=0`, then run + ``` + mpirun -np 8 ./train.py --config DATA.BASEDIR=/data/coco TRAINER=horovod BACKBONE.STRIDE_1X1=True TRAIN.STEPS_PER_EPOCH=50 --load ImageNet-R50-AlignPadding.npz + ``` + +* __SimpleDet__: at commit `9187a1`, run + ``` + python detection_train.py --config config/mask_r50v1_fpn_1x.py + ``` + +* __Detectron__: run + ``` + python tools/train_net.py --cfg configs/12_2017_baselines/e2e_mask_rcnn_R-50-FPN_1x.yaml + ``` + Note that many of its ops run on CPUs, therefore the performance is limited. + +* __matterport/Mask_RCNN__: at commit `3deaec`, apply the following diff, `export TF_CUDNN_USE_AUTOTUNE=0`, then run + ``` + python coco.py train --dataset=/data/coco/ --model=imagenet + ``` + Note that many small details in this implementation might be different + from Detectron's standards. + +
+ + (diff to make it use the same hyperparameters - click to expand) + + + ```diff + diff --git i/mrcnn/model.py w/mrcnn/model.py + index 62cb2b0..61d7779 100644 + --- i/mrcnn/model.py + +++ w/mrcnn/model.py + @@ -2367,8 +2367,8 @@ class MaskRCNN(): + epochs=epochs, + steps_per_epoch=self.config.STEPS_PER_EPOCH, + callbacks=callbacks, + - validation_data=val_generator, + - validation_steps=self.config.VALIDATION_STEPS, + + #validation_data=val_generator, + + #validation_steps=self.config.VALIDATION_STEPS, + max_queue_size=100, + workers=workers, + use_multiprocessing=True, + diff --git i/mrcnn/parallel_model.py w/mrcnn/parallel_model.py + index d2bf53b..060172a 100644 + --- i/mrcnn/parallel_model.py + +++ w/mrcnn/parallel_model.py + @@ -32,6 +32,7 @@ class ParallelModel(KM.Model): + keras_model: The Keras model to parallelize + gpu_count: Number of GPUs. Must be > 1 + """ + + super().__init__() + self.inner_model = keras_model + self.gpu_count = gpu_count + merged_outputs = self.make_parallel() + diff --git i/samples/coco/coco.py w/samples/coco/coco.py + index 5d172b5..239ed75 100644 + --- i/samples/coco/coco.py + +++ w/samples/coco/coco.py + @@ -81,7 +81,10 @@ class CocoConfig(Config): + IMAGES_PER_GPU = 2 + + # Uncomment to train on 8 GPUs (default is 1) + - # GPU_COUNT = 8 + + GPU_COUNT = 8 + + BACKBONE = "resnet50" + + STEPS_PER_EPOCH = 50 + + TRAIN_ROIS_PER_IMAGE = 512 + + # Number of classes (including background) + NUM_CLASSES = 1 + 80 # COCO has 80 classes + @@ -496,29 +499,10 @@ if __name__ == '__main__': + # *** This training schedule is an example. Update to your needs *** + + # Training - Stage 1 + - print("Training network heads") + model.train(dataset_train, dataset_val, + learning_rate=config.LEARNING_RATE, + epochs=40, + - layers='heads', + - augmentation=augmentation) + - + - # Training - Stage 2 + - # Finetune layers from ResNet stage 4 and up + - print("Fine tune Resnet stage 4 and up") + - model.train(dataset_train, dataset_val, + - learning_rate=config.LEARNING_RATE, + - epochs=120, + - layers='4+', + - augmentation=augmentation) + - + - # Training - Stage 3 + - # Fine tune all layers + - print("Fine tune all layers") + - model.train(dataset_train, dataset_val, + - learning_rate=config.LEARNING_RATE / 10, + - epochs=160, + - layers='all', + + layers='3+', + augmentation=augmentation) + + elif args.command == "evaluate": + ``` + +
diff --git a/detectron2/docs/notes/changelog.md b/detectron2/docs/notes/changelog.md new file mode 100755 index 0000000..000e9f8 --- /dev/null +++ b/detectron2/docs/notes/changelog.md @@ -0,0 +1,48 @@ +# Change Log and Backward Compatibility + +### Releases +See release logs at +[https://github.com/facebookresearch/detectron2/releases](https://github.com/facebookresearch/detectron2/releases) +for new updates. + +### Backward Compatibility + +Due to the research nature of what the library does, there might be backward incompatible changes. +But we try to reduce users' disruption by the following ways: +* APIs listed in [API documentation](https://detectron2.readthedocs.io/modules/index.html), including + function/class names, their arguments, and documented class attributes, are considered *stable* unless + otherwise noted in the documentation. + They are less likely to be broken, but if needed, will trigger a deprecation warning for a reasonable period + before getting broken, and will be documented in release logs. +* Others functions/classses/attributes are considered internal, and are more likely to change. + However, we're aware that some of them may be already used by other projects, and in particular we may + use them for convenience among projects under `detectron2/projects`. + For such APIs, we may treat them as stable APIs and also apply the above strategies. + They may be promoted to stable when we're ready. +* Projects under "detectron2/projects" or imported with "detectron2.projects" are research projects + and are all considered experimental. +* Classes/functions that contain the word "default" or are explicitly documented to produce + "default behavior" may change their behaviors when new features are added. + +Despite of the possible breakage, if a third-party project would like to keep up with the latest updates +in detectron2, using it as a library will still be less disruptive than forking, because +the frequency and scope of API changes will be much smaller than code changes. + +To see such changes, search for "incompatible changes" in [release logs](https://github.com/facebookresearch/detectron2/releases). + +### Config Version Change Log + +Detectron2's config version has not been changed since open source. +There is no need for an open source user to worry about this. + +* v1: Rename `RPN_HEAD.NAME` to `RPN.HEAD_NAME`. +* v2: A batch of rename of many configurations before release. + +### Silent Regressions in Historical Versions: + +We list a few silent regressions, since they may silently produce incorrect results and will be hard to debug. + +* 04/01/2020 - 05/11/2020: Bad accuracy if `TRAIN_ON_PRED_BOXES` is set to True. +* 03/30/2020 - 04/01/2020: ResNets are not correctly built. +* 12/19/2019 - 12/26/2019: Using aspect ratio grouping causes a drop in accuracy. +* - 11/9/2019: Test time augmentation does not predict the last category. diff --git a/detectron2/docs/notes/compatibility.md b/detectron2/docs/notes/compatibility.md new file mode 100755 index 0000000..83d93f5 --- /dev/null +++ b/detectron2/docs/notes/compatibility.md @@ -0,0 +1,84 @@ +# Compatibility with Other Libraries + +## Compatibility with Detectron (and maskrcnn-benchmark) + +Detectron2 addresses some legacy issues left in Detectron. As a result, their models +are not compatible: +running inference with the same model weights will produce different results in the two code bases. + +The major differences regarding inference are: + +- The height and width of a box with corners (x1, y1) and (x2, y2) is now computed more naturally as + width = x2 - x1 and height = y2 - y1; + In Detectron, a "+ 1" was added both height and width. + + Note that the relevant ops in Caffe2 have [adopted this change of convention](https://github.com/pytorch/pytorch/pull/20550) + with an extra option. + So it is still possible to run inference with a Detectron2-trained model in Caffe2. + + The change in height/width calculations most notably changes: + - encoding/decoding in bounding box regression. + - non-maximum suppression. The effect here is very negligible, though. + +- RPN now uses simpler anchors with fewer quantization artifacts. + + In Detectron, the anchors were quantized and + [do not have accurate areas](https://github.com/facebookresearch/Detectron/issues/227). + In Detectron2, the anchors are center-aligned to feature grid points and not quantized. + +- Classification layers have a different ordering of class labels. + + This involves any trainable parameter with shape (..., num_categories + 1, ...). + In Detectron2, integer labels [0, K-1] correspond to the K = num_categories object categories + and the label "K" corresponds to the special "background" category. + In Detectron, label "0" means background, and labels [1, K] correspond to the K categories. + +- ROIAlign is implemented differently. The new implementation is [available in Caffe2](https://github.com/pytorch/pytorch/pull/23706). + + 1. All the ROIs are shifted by half a pixel compared to Detectron in order to create better image-feature-map alignment. + See `layers/roi_align.py` for details. + To enable the old behavior, use `ROIAlign(aligned=False)`, or `POOLER_TYPE=ROIAlign` instead of + `ROIAlignV2` (the default). + + 1. The ROIs are not required to have a minimum size of 1. + This will lead to tiny differences in the output, but should be negligible. + +- Mask inference function is different. + + In Detectron2, the "paste_mask" function is different and should be more accurate than in Detectron. This change + can improve mask AP on COCO by ~0.5% absolute. + +There are some other differences in training as well, but they won't affect +model-level compatibility. The major ones are: + +- We fixed a [bug](https://github.com/facebookresearch/Detectron/issues/459) in + Detectron, by making `RPN.POST_NMS_TOPK_TRAIN` per-image, rather than per-batch. + The fix may lead to a small accuracy drop for a few models (e.g. keypoint + detection) and will require some parameter tuning to match the Detectron results. +- For simplicity, we change the default loss in bounding box regression to L1 loss, instead of smooth L1 loss. + We have observed that this tends to slightly decrease box AP50 while improving box AP for higher + overlap thresholds (and leading to a slight overall improvement in box AP). +- We interpret the coordinates in COCO bounding box and segmentation annotations + as coordinates in range `[0, width]` or `[0, height]`. The coordinates in + COCO keypoint annotations are interpreted as pixel indices in range `[0, width - 1]` or `[0, height - 1]`. + Note that this affects how flip augmentation is implemented. + + +[This article](https://ppwwyyxx.com/blog/2021/Where-are-Pixels/) +explains more details on the above mentioned issues +about pixels, coordinates, and "+1"s. + + +## Compatibility with Caffe2 + +As mentioned above, despite the incompatibilities with Detectron, the relevant +ops have been implemented in Caffe2. +Therefore, models trained with detectron2 can be converted in Caffe2. +See [Deployment](../tutorials/deployment.md) for the tutorial. + +## Compatibility with TensorFlow + +Most ops are available in TensorFlow, although some tiny differences in +the implementation of resize / ROIAlign / padding need to be addressed. +A working conversion script is provided by [tensorpack Faster R-CNN](https://github.com/tensorpack/tensorpack/tree/master/examples/FasterRCNN/convert_d2) +to run a standard detectron2 model in TensorFlow. diff --git a/detectron2/docs/notes/contributing.md b/detectron2/docs/notes/contributing.md new file mode 120000 index 0000000..9518123 --- /dev/null +++ b/detectron2/docs/notes/contributing.md @@ -0,0 +1 @@ +../../.github/CONTRIBUTING.md \ No newline at end of file diff --git a/detectron2/docs/notes/index.rst b/detectron2/docs/notes/index.rst new file mode 100755 index 0000000..63cf907 --- /dev/null +++ b/detectron2/docs/notes/index.rst @@ -0,0 +1,10 @@ +Notes +====================================== + +.. toctree:: + :maxdepth: 2 + + benchmarks + compatibility + contributing + changelog diff --git a/detectron2/docs/requirements.txt b/detectron2/docs/requirements.txt new file mode 100755 index 0000000..720a1b1 --- /dev/null +++ b/detectron2/docs/requirements.txt @@ -0,0 +1,23 @@ +docutils==0.16 +# https://github.com/sphinx-doc/sphinx/commit/7acd3ada3f38076af7b2b5c9f3b60bb9c2587a3d +sphinx==3.2.0 +recommonmark==0.6.0 +sphinx_rtd_theme +# Dependencies here are only those required by import +termcolor +numpy +tqdm +matplotlib +termcolor +yacs +tabulate +cloudpickle +Pillow +future +git+https://github.com/facebookresearch/fvcore.git +https://download.pytorch.org/whl/cpu/torch-1.8.1%2Bcpu-cp37-cp37m-linux_x86_64.whl +https://download.pytorch.org/whl/cpu/torchvision-0.9.1%2Bcpu-cp37-cp37m-linux_x86_64.whl +omegaconf>=2.1.0.dev24 +hydra-core>=1.1.0.dev5 +scipy +timm diff --git a/detectron2/docs/tutorials/README.md b/detectron2/docs/tutorials/README.md new file mode 100755 index 0000000..1ca9c94 --- /dev/null +++ b/detectron2/docs/tutorials/README.md @@ -0,0 +1,4 @@ +# Read the docs: + +The latest documentation built from this directory is available at [detectron2.readthedocs.io](https://detectron2.readthedocs.io/). +Documents in this directory are not meant to be read on github. diff --git a/detectron2/docs/tutorials/augmentation.md b/detectron2/docs/tutorials/augmentation.md new file mode 100755 index 0000000..7601a08 --- /dev/null +++ b/detectron2/docs/tutorials/augmentation.md @@ -0,0 +1,186 @@ + +# Data Augmentation + +Augmentation is an important part of training. +Detectron2's data augmentation system aims at addressing the following goals: + +1. Allow augmenting multiple data types together + (e.g., images together with their bounding boxes and masks) +2. Allow applying a sequence of statically-declared augmentation +3. Allow adding custom new data types to augment (rotated bounding boxes, video clips, etc.) +4. Process and manipulate the __operations__ that are applied by augmentations + +The first two features cover most of the common use cases, and is also +available in other libraries such as [albumentations](https://medium.com/pytorch/multi-target-in-albumentations-16a777e9006e). +Supporting other features adds some overhead to detectron2's augmentation API, +which we'll explain in this tutorial. + +This tutorial focuses on how to use augmentations when writing new data loaders, +and how to write new augmentations. +If you use the default data loader in detectron2, it already supports taking a user-provided list of custom augmentations, +as explained in the [Dataloader tutorial](data_loading). + +## Basic Usage + +The basic usage of feature (1) and (2) is like the following: +```python +from detectron2.data import transforms as T +# Define a sequence of augmentations: +augs = T.AugmentationList([ + T.RandomBrightness(0.9, 1.1), + T.RandomFlip(prob=0.5), + T.RandomCrop("absolute", (640, 640)) +]) # type: T.Augmentation + +# Define the augmentation input ("image" required, others optional): +input = T.AugInput(image, boxes=boxes, sem_seg=sem_seg) +# Apply the augmentation: +transform = augs(input) # type: T.Transform +image_transformed = input.image # new image +sem_seg_transformed = input.sem_seg # new semantic segmentation + +# For any extra data that needs to be augmented together, use transform, e.g.: +image2_transformed = transform.apply_image(image2) +polygons_transformed = transform.apply_polygons(polygons) +``` + +Three basic concepts are involved here. They are: +* [T.Augmentation](../modules/data_transforms.html#detectron2.data.transforms.Augmentation) defines the __"policy"__ to modify inputs. + * its `__call__(AugInput) -> Transform` method augments the inputs in-place, and returns the operation that is applied +* [T.Transform](../modules/data_transforms.html#detectron2.data.transforms.Transform) + implements the actual __operations__ to transform data + * it has methods such as `apply_image`, `apply_coords` that define how to transform each data type +* [T.AugInput](../modules/data_transforms.html#detectron2.data.transforms.AugInput) + stores inputs needed by `T.Augmentation` and how they should be transformed. + This concept is needed for some advanced usage. + Using this class directly should be sufficient for all common use cases, + since extra data not in `T.AugInput` can be augmented using the returned + `transform`, as shown in the above example. + +## Write New Augmentations + +Most 2D augmentations only need to know about the input image. Such augmentation can be implemented easily like this: + +```python +class MyColorAugmentation(T.Augmentation): + def get_transform(self, image): + r = np.random.rand(2) + return T.ColorTransform(lambda x: x * r[0] + r[1] * 10) + +class MyCustomResize(T.Augmentation): + def get_transform(self, image): + old_h, old_w = image.shape[:2] + new_h, new_w = int(old_h * np.random.rand()), int(old_w * 1.5) + return T.ResizeTransform(old_h, old_w, new_h, new_w) + +augs = MyCustomResize() +transform = augs(input) +``` + +In addition to image, any attributes of the given `AugInput` can be used as long +as they are part of the function signature, e.g.: + +```python +class MyCustomCrop(T.Augmentation): + def get_transform(self, image, sem_seg): + # decide where to crop using both image and sem_seg + return T.CropTransform(...) + +augs = MyCustomCrop() +assert hasattr(input, "image") and hasattr(input, "sem_seg") +transform = augs(input) +``` + +New transform operation can also be added by subclassing +[T.Transform](../modules/data_transforms.html#detectron2.data.transforms.Transform). + +## Advanced Usage + +We give a few examples of advanced usages that +are enabled by our system. +These options can be interesting to new research, +although changing them is often not needed +for standard use cases. + +### Custom transform strategy + +Instead of only returning the augmented data, detectron2's `Augmentation` returns the __operations__ as `T.Transform`. +This allows users to apply custom transform strategy on their data. +We use keypoints data as an example. + +Keypoints are (x, y) coordinates, but they are not so trivial to augment due to the semantic meaning they carry. +Such meaning is only known to the users, therefore users may want to augment them manually +by looking at the returned `transform`. +For example, when an image is horizontally flipped, we'd like to swap the keypoint annotations for "left eye" and "right eye". +This can be done like this (included by default in detectron2's default data loader): +```python +# augs, input are defined as in previous examples +transform = augs(input) # type: T.Transform +keypoints_xy = transform.apply_coords(keypoints_xy) # transform the coordinates + +# get a list of all transforms that were applied +transforms = T.TransformList([transform]).transforms +# check if it is flipped for odd number of times +do_hflip = sum(isinstance(t, T.HFlipTransform) for t in transforms) % 2 == 1 +if do_hflip: + keypoints_xy = keypoints_xy[flip_indices_mapping] +``` + +As another example, keypoints annotations often have a "visibility" field. +A sequence of augmentations might augment a visible keypoint out of the image boundary (e.g. with cropping), +but then bring it back within the boundary afterwards (e.g. with image padding). +If users decide to label such keypoints "invisible", +then the visibility check has to happen after every transform step. +This can be achieved by: + +```python +transform = augs(input) # type: T.TransformList +assert isinstance(transform, T.TransformList) +for t in transform.transforms: + keypoints_xy = t.apply_coords(keypoints_xy) + visibility &= (keypoints_xy >= [0, 0] & keypoints_xy <= [W, H]).all(axis=1) + +# btw, detectron2's `transform_keypoint_annotations` function chooses to label such keypoints "visible": +# keypoints_xy = transform.apply_coords(keypoints_xy) +# visibility &= (keypoints_xy >= [0, 0] & keypoints_xy <= [W, H]).all(axis=1) +``` + + +### Geometrically invert the transform +If images are pre-processed by augmentations before inference, the predicted results +such as segmentation masks are localized on the augmented image. +We'd like to invert the applied augmentation with the [inverse()](../modules/data_transforms.html#detectron2.data.transforms.Transform.inverse) +API, to obtain results on the original image: +```python +transform = augs(input) +pred_mask = make_prediction(input.image) +inv_transform = transform.inverse() +pred_mask_orig = inv_transform.apply_segmentation(pred_mask) +``` + +### Add new data types + +[T.Transform](../modules/data_transforms.html#detectron2.data.transforms.Transform) +supports a few common data types to transform, including images, coordinates, masks, boxes, polygons. +It allows registering new data types, e.g.: +```python +@T.HFlipTransform.register_type("rotated_boxes") +def func(flip_transform: T.HFlipTransform, rotated_boxes: Any): + # do the work + return flipped_rotated_boxes + +t = HFlipTransform(width=800) +transformed_rotated_boxes = t.apply_rotated_boxes(rotated_boxes) # func will be called +``` + +### Extend T.AugInput + +An augmentation can only access attributes available in the given input. +[T.AugInput](../modules/data_transforms.html#detectron2.data.transforms.StandardAugInput) defines "image", "boxes", "sem_seg", +which are sufficient for common augmentation strategies to decide how to augment. +If not, a custom implementation is needed. + +By re-implement the "transform()" method in AugInput, it is also possible to +augment different fields in ways that are dependent on each other. +Such use case is uncommon (e.g. post-process bounding box based on augmented masks), but allowed by the system. + diff --git a/detectron2/docs/tutorials/builtin_datasets.md b/detectron2/docs/tutorials/builtin_datasets.md new file mode 120000 index 0000000..0ba8242 --- /dev/null +++ b/detectron2/docs/tutorials/builtin_datasets.md @@ -0,0 +1 @@ +../../datasets/README.md \ No newline at end of file diff --git a/detectron2/docs/tutorials/configs.md b/detectron2/docs/tutorials/configs.md new file mode 100755 index 0000000..49538d0 --- /dev/null +++ b/detectron2/docs/tutorials/configs.md @@ -0,0 +1,62 @@ +# Yacs Configs + +Detectron2 provides a key-value based config system that can be +used to obtain standard, common behaviors. + +This system uses YAML and [yacs](https://github.com/rbgirshick/yacs). +Yaml is a very limited language, +so we do not expect all features in detectron2 to be available through configs. +If you need something that's not available in the config space, +please write code using detectron2's API. + +With the introduction of a more powerful [LazyConfig system](lazyconfigs.md), +we no longer add functionality / new keys to the Yacs/Yaml-based config system. + +### Basic Usage + +Some basic usage of the `CfgNode` object is shown here. See more in [documentation](../modules/config.html#detectron2.config.CfgNode). +```python +from detectron2.config import get_cfg +cfg = get_cfg() # obtain detectron2's default config +cfg.xxx = yyy # add new configs for your own custom components +cfg.merge_from_file("my_cfg.yaml") # load values from a file + +cfg.merge_from_list(["MODEL.WEIGHTS", "weights.pth"]) # can also load values from a list of str +print(cfg.dump()) # print formatted configs +with open("output.yaml", "w") as f: + f.write(cfg.dump()) # save config to file +``` + +In addition to the basic Yaml syntax, the config file can +define a `_BASE_: base.yaml` field, which will load a base config file first. +Values in the base config will be overwritten in sub-configs, if there are any conflicts. +We provided several base configs for standard model architectures. + +Many builtin tools in detectron2 accept command line config overwrite: +Key-value pairs provided in the command line will overwrite the existing values in the config file. +For example, [demo.py](../../demo/demo.py) can be used with +```sh +./demo.py --config-file config.yaml [--other-options] \ + --opts MODEL.WEIGHTS /path/to/weights INPUT.MIN_SIZE_TEST 1000 +``` + +To see a list of available configs in detectron2 and what they mean, +check [Config References](../modules/config.html#config-references) + +### Configs in Projects + +A project that lives outside the detectron2 library may define its own configs, which will need to be added +for the project to be functional, e.g.: +```python +from detectron2.projects.point_rend import add_pointrend_config +cfg = get_cfg() # obtain detectron2's default config +add_pointrend_config(cfg) # add pointrend's default config +# ... ... +``` + +### Best Practice with Configs + +1. Treat the configs you write as "code": avoid copying them or duplicating them; use `_BASE_` + to share common parts between configs. + +2. Keep the configs you write simple: don't include keys that do not affect the experimental setting. diff --git a/detectron2/docs/tutorials/data_loading.md b/detectron2/docs/tutorials/data_loading.md new file mode 100755 index 0000000..1d2769f --- /dev/null +++ b/detectron2/docs/tutorials/data_loading.md @@ -0,0 +1,95 @@ + +# Dataloader + +Dataloader is the component that provides data to models. +A dataloader usually (but not necessarily) takes raw information from [datasets](./datasets.md), +and process them into a format needed by the model. + +## How the Existing Dataloader Works + +Detectron2 contains a builtin data loading pipeline. +It's good to understand how it works, in case you need to write a custom one. + +Detectron2 provides two functions +[build_detection_{train,test}_loader](../modules/data.html#detectron2.data.build_detection_train_loader) +that create a default data loader from a given config. +Here is how `build_detection_{train,test}_loader` work: + +1. It takes the name of a registered dataset (e.g., "coco_2017_train") and loads a `list[dict]` representing the dataset items + in a lightweight format. These dataset items are not yet ready to be used by the model (e.g., images are + not loaded into memory, random augmentations have not been applied, etc.). + Details about the dataset format and dataset registration can be found in + [datasets](./datasets.md). +2. Each dict in this list is mapped by a function ("mapper"): + * Users can customize this mapping function by specifying the "mapper" argument in + `build_detection_{train,test}_loader`. The default mapper is [DatasetMapper](../modules/data.html#detectron2.data.DatasetMapper). + * The output format of the mapper can be arbitrary, as long as it is accepted by the consumer of this data loader (usually the model). + The outputs of the default mapper, after batching, follow the default model input format documented in + [Use Models](./models.html#model-input-format). + * The role of the mapper is to transform the lightweight representation of a dataset item into a format + that is ready for the model to consume (including, e.g., read images, perform random data augmentation and convert to torch Tensors). + If you would like to perform custom transformations to data, you often want a custom mapper. +3. The outputs of the mapper are batched (simply into a list). +4. This batched data is the output of the data loader. Typically, it's also the input of + `model.forward()`. + + +## Write a Custom Dataloader + +Using a different "mapper" with `build_detection_{train,test}_loader(mapper=)` works for most use cases +of custom data loading. +For example, if you want to resize all images to a fixed size for training, use: + +```python +import detectron2.data.transforms as T +from detectron2.data import DatasetMapper # the default mapper +dataloader = build_detection_train_loader(cfg, + mapper=DatasetMapper(cfg, is_train=True, augmentations=[ + T.Resize((800, 800)) + ])) +# use this dataloader instead of the default +``` +If the arguments of the default [DatasetMapper](../modules/data.html#detectron2.data.DatasetMapper) +does not provide what you need, you may write a custom mapper function and use it instead, e.g.: + +```python +from detectron2.data import detection_utils as utils + # Show how to implement a minimal mapper, similar to the default DatasetMapper +def mapper(dataset_dict): + dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below + # can use other ways to read image + image = utils.read_image(dataset_dict["file_name"], format="BGR") + # See "Data Augmentation" tutorial for details usage + auginput = T.AugInput(image) + transform = T.Resize((800, 800))(auginput) + image = torch.from_numpy(auginput.image.transpose(2, 0, 1)) + annos = [ + utils.transform_instance_annotations(annotation, [transform], image.shape[1:]) + for annotation in dataset_dict.pop("annotations") + ] + return { + # create the format that the model expects + "image": image, + "instances": utils.annotations_to_instances(annos, image.shape[1:]) + } +dataloader = build_detection_train_loader(cfg, mapper=mapper) +``` + +If you want to change not only the mapper (e.g., in order to implement different sampling or batching logic), +`build_detection_train_loader` won't work and you will need to write a different data loader. +The data loader is simply a +python iterator that produces [the format](./models.md) that the model accepts. +You can implement it using any tools you like. + +No matter what to implement, it's recommended to +check out [API documentation of detectron2.data](../modules/data) to learn more about the APIs of +these functions. + +## Use a Custom Dataloader + +If you use [DefaultTrainer](../modules/engine.html#detectron2.engine.defaults.DefaultTrainer), +you can overwrite its `build_{train,test}_loader` method to use your own dataloader. +See the [deeplab dataloader](../../projects/DeepLab/train_net.py) +for an example. + +If you write your own training loop, you can plug in your data loader easily. diff --git a/detectron2/docs/tutorials/datasets.md b/detectron2/docs/tutorials/datasets.md new file mode 100755 index 0000000..91103f6 --- /dev/null +++ b/detectron2/docs/tutorials/datasets.md @@ -0,0 +1,290 @@ +# Use Custom Datasets + +This document explains how the dataset APIs +([DatasetCatalog](../modules/data.html#detectron2.data.DatasetCatalog), [MetadataCatalog](../modules/data.html#detectron2.data.MetadataCatalog)) +work, and how to use them to add custom datasets. + +Datasets that have builtin support in detectron2 are listed in [builtin datasets](builtin_datasets.md). +If you want to use a custom dataset while also reusing detectron2's data loaders, +you will need to: + +1. __Register__ your dataset (i.e., tell detectron2 how to obtain your dataset). +2. Optionally, __register metadata__ for your dataset. + +Next, we explain the above two concepts in detail. + +The [Colab tutorial](https://colab.research.google.com/drive/16jcaJoc6bCFAQ96jDe2HwtXj7BMD_-m5) +has a live example of how to register and train on a dataset of custom formats. + +### Register a Dataset + +To let detectron2 know how to obtain a dataset named "my_dataset", users need to implement +a function that returns the items in your dataset and then tell detectron2 about this +function: +```python +def my_dataset_function(): + ... + return list[dict] in the following format + +from detectron2.data import DatasetCatalog +DatasetCatalog.register("my_dataset", my_dataset_function) +# later, to access the data: +data: List[Dict] = DatasetCatalog.get("my_dataset") +``` + +Here, the snippet associates a dataset named "my_dataset" with a function that returns the data. +The function must return the same data (with same order) if called multiple times. +The registration stays effective until the process exits. + +The function can do arbitrary things and should return the data in `list[dict]`, each dict in either +of the following formats: +1. Detectron2's standard dataset dict, described below. This will make it work with many other builtin + features in detectron2, so it's recommended to use it when it's sufficient. +2. Any custom format. You can also return arbitrary dicts in your own format, + such as adding extra keys for new tasks. + Then you will need to handle them properly downstream as well. + See below for more details. + +#### Standard Dataset Dicts + +For standard tasks +(instance detection, instance/semantic/panoptic segmentation, keypoint detection), +we load the original dataset into `list[dict]` with a specification similar to COCO's annotations. +This is our standard representation for a dataset. + +Each dict contains information about one image. +The dict may have the following fields, +and the required fields vary based on what the dataloader or the task needs (see more below). + +```eval_rst +.. list-table:: + :header-rows: 1 + + * - Task + - Fields + * - Common + - file_name, height, width, image_id + + * - Instance detection/segmentation + - annotations + + * - Semantic segmentation + - sem_seg_file_name + + * - Panoptic segmentation + - pan_seg_file_name, segments_info +``` + ++ `file_name`: the full path to the image file. ++ `height`, `width`: integer. The shape of the image. ++ `image_id` (str or int): a unique id that identifies this image. Required by many + evaluators to identify the images, but a dataset may use it for different purposes. ++ `annotations` (list[dict]): Required by __instance detection/segmentation or keypoint detection__ tasks. + Each dict corresponds to annotations of one instance in this image, and + may contain the following keys: + + `bbox` (list[float], required): list of 4 numbers representing the bounding box of the instance. + + `bbox_mode` (int, required): the format of bbox. It must be a member of + [structures.BoxMode](../modules/structures.html#detectron2.structures.BoxMode). + Currently supports: `BoxMode.XYXY_ABS`, `BoxMode.XYWH_ABS`. + + `category_id` (int, required): an integer in the range [0, num_categories-1] representing the category label. + The value num_categories is reserved to represent the "background" category, if applicable. + + `segmentation` (list[list[float]] or dict): the segmentation mask of the instance. + + If `list[list[float]]`, it represents a list of polygons, one for each connected component + of the object. Each `list[float]` is one simple polygon in the format of `[x1, y1, ..., xn, yn]` (n≥3). + The Xs and Ys are absolute coordinates in unit of pixels. + + If `dict`, it represents the per-pixel segmentation mask in COCO's compressed RLE format. + The dict should have keys "size" and "counts". You can convert a uint8 segmentation mask of 0s and + 1s into such dict by `pycocotools.mask.encode(np.asarray(mask, order="F"))`. + `cfg.INPUT.MASK_FORMAT` must be set to `bitmask` if using the default data loader with such format. + + `keypoints` (list[float]): in the format of [x1, y1, v1,..., xn, yn, vn]. + v[i] means the [visibility](http://cocodataset.org/#format-data) of this keypoint. + `n` must be equal to the number of keypoint categories. + The Xs and Ys are absolute real-value coordinates in range [0, W or H]. + + (Note that the keypoint coordinates in COCO format are integers in range [0, W-1 or H-1], which is different + from our standard format. Detectron2 adds 0.5 to COCO keypoint coordinates to convert them from discrete + pixel indices to floating point coordinates.) + + `iscrowd`: 0 (default) or 1. Whether this instance is labeled as COCO's "crowd + region". Don't include this field if you don't know what it means. + + If `annotations` is an empty list, it means the image is labeled to have no objects. + Such images will by default be removed from training, + but can be included using `DATALOADER.FILTER_EMPTY_ANNOTATIONS`. + ++ `sem_seg_file_name` (str): + The full path to the semantic segmentation ground truth file. + It should be a grayscale image whose pixel values are integer labels. ++ `pan_seg_file_name` (str): + The full path to panoptic segmentation ground truth file. + It should be an RGB image whose pixel values are integer ids encoded using the + [panopticapi.utils.id2rgb](https://github.com/cocodataset/panopticapi/) function. + The ids are defined by `segments_info`. + If an id does not appear in `segments_info`, the pixel is considered unlabeled + and is usually ignored in training & evaluation. ++ `segments_info` (list[dict]): defines the meaning of each id in panoptic segmentation ground truth. + Each dict has the following keys: + + `id` (int): integer that appears in the ground truth image. + + `category_id` (int): an integer in the range [0, num_categories-1] representing the category label. + + `iscrowd`: 0 (default) or 1. Whether this instance is labeled as COCO's "crowd region". + + +```eval_rst + +.. note:: + + The PanopticFPN model does not use the panoptic segmentation + format defined here, but a combination of both instance segmentation and semantic segmentation data + format. See :doc:`builtin_datasets` for instructions on COCO. + +``` + +Fast R-CNN (with pre-computed proposals) models are rarely used today. +To train a Fast R-CNN, the following extra keys are needed: + ++ `proposal_boxes` (array): 2D numpy array with shape (K, 4) representing K precomputed proposal boxes for this image. ++ `proposal_objectness_logits` (array): numpy array with shape (K, ), which corresponds to the objectness + logits of proposals in 'proposal_boxes'. ++ `proposal_bbox_mode` (int): the format of the precomputed proposal bbox. + It must be a member of + [structures.BoxMode](../modules/structures.html#detectron2.structures.BoxMode). + Default is `BoxMode.XYXY_ABS`. + + + +#### Custom Dataset Dicts for New Tasks + +In the `list[dict]` that your dataset function returns, the dictionary can also have __arbitrary custom data__. +This will be useful for a new task that needs extra information not covered +by the standard dataset dicts. In this case, you need to make sure the downstream code can handle your data +correctly. Usually this requires writing a new `mapper` for the dataloader (see [Use Custom Dataloaders](./data_loading.md)). + +When designing a custom format, note that all dicts are stored in memory +(sometimes serialized and with multiple copies). +To save memory, each dict is meant to contain __small__ but sufficient information +about each sample, such as file names and annotations. +Loading full samples typically happens in the data loader. + +For attributes shared among the entire dataset, use `Metadata` (see below). +To avoid extra memory, do not save such information inside each sample. + +### "Metadata" for Datasets + +Each dataset is associated with some metadata, accessible through +`MetadataCatalog.get(dataset_name).some_metadata`. +Metadata is a key-value mapping that contains information that's shared among +the entire dataset, and usually is used to interpret what's in the dataset, e.g., +names of classes, colors of classes, root of files, etc. +This information will be useful for augmentation, evaluation, visualization, logging, etc. +The structure of metadata depends on what is needed from the corresponding downstream code. + +If you register a new dataset through `DatasetCatalog.register`, +you may also want to add its corresponding metadata through +`MetadataCatalog.get(dataset_name).some_key = some_value`, to enable any features that need the metadata. +You can do it like this (using the metadata key "thing_classes" as an example): + +```python +from detectron2.data import MetadataCatalog +MetadataCatalog.get("my_dataset").thing_classes = ["person", "dog"] +``` + +Here is a list of metadata keys that are used by builtin features in detectron2. +If you add your own dataset without these metadata, some features may be +unavailable to you: + +* `thing_classes` (list[str]): Used by all instance detection/segmentation tasks. + A list of names for each instance/thing category. + If you load a COCO format dataset, it will be automatically set by the function `load_coco_json`. + +* `thing_colors` (list[tuple(r, g, b)]): Pre-defined color (in [0, 255]) for each thing category. + Used for visualization. If not given, random colors will be used. + +* `stuff_classes` (list[str]): Used by semantic and panoptic segmentation tasks. + A list of names for each stuff category. + +* `stuff_colors` (list[tuple(r, g, b)]): Pre-defined color (in [0, 255]) for each stuff category. + Used for visualization. If not given, random colors are used. + +* `ignore_label` (int): Used by semantic and panoptic segmentation tasks. Pixels in ground-truth + annotations with this category label should be ignored in evaluation. Typically these are "unlabeled" + pixels. + +* `keypoint_names` (list[str]): Used by keypoint detection. A list of names for each keypoint. + +* `keypoint_flip_map` (list[tuple[str]]): Used by keypoint detection. A list of pairs of names, + where each pair are the two keypoints that should be flipped if the image is + flipped horizontally during augmentation. +* `keypoint_connection_rules`: list[tuple(str, str, (r, g, b))]. Each tuple specifies a pair of keypoints + that are connected and the color (in [0, 255]) to use for the line between them when visualized. + +Some additional metadata that are specific to the evaluation of certain datasets (e.g. COCO): + +* `thing_dataset_id_to_contiguous_id` (dict[int->int]): Used by all instance detection/segmentation tasks in the COCO format. + A mapping from instance class ids in the dataset to contiguous ids in range [0, #class). + Will be automatically set by the function `load_coco_json`. + +* `stuff_dataset_id_to_contiguous_id` (dict[int->int]): Used when generating prediction json files for + semantic/panoptic segmentation. + A mapping from semantic segmentation class ids in the dataset + to contiguous ids in [0, num_categories). It is useful for evaluation only. + +* `json_file`: The COCO annotation json file. Used by COCO evaluation for COCO-format datasets. +* `panoptic_root`, `panoptic_json`: Used by COCO-format panoptic evaluation. +* `evaluator_type`: Used by the builtin main training script to select + evaluator. Don't use it in a new training script. + You can just provide the [DatasetEvaluator](../modules/evaluation.html#detectron2.evaluation.DatasetEvaluator) + for your dataset directly in your main script. + +```eval_rst +.. note:: + + In recognition, sometimes we use the term "thing" for instance-level tasks, + and "stuff" for semantic segmentation tasks. + Both are used in panoptic segmentation tasks. + For background on the concept of "thing" and "stuff", see + `On Seeing Stuff: The Perception of Materials by Humans and Machines + `_. +``` + +### Register a COCO Format Dataset + +If your instance-level (detection, segmentation, keypoint) dataset is already a json file in the COCO format, +the dataset and its associated metadata can be registered easily with: +```python +from detectron2.data.datasets import register_coco_instances +register_coco_instances("my_dataset", {}, "json_annotation.json", "path/to/image/dir") +``` + +If your dataset is in COCO format but need to be further processed, or has extra custom per-instance annotations, +the [load_coco_json](../modules/data.html#detectron2.data.datasets.load_coco_json) +function might be useful. + +### Update the Config for New Datasets + +Once you've registered the dataset, you can use the name of the dataset (e.g., "my_dataset" in +example above) in `cfg.DATASETS.{TRAIN,TEST}`. +There are other configs you might want to change to train or evaluate on new datasets: + +* `MODEL.ROI_HEADS.NUM_CLASSES` and `MODEL.RETINANET.NUM_CLASSES` are the number of thing classes + for R-CNN and RetinaNet models, respectively. +* `MODEL.ROI_KEYPOINT_HEAD.NUM_KEYPOINTS` sets the number of keypoints for Keypoint R-CNN. + You'll also need to set [Keypoint OKS](http://cocodataset.org/#keypoints-eval) + with `TEST.KEYPOINT_OKS_SIGMAS` for evaluation. +* `MODEL.SEM_SEG_HEAD.NUM_CLASSES` sets the number of stuff classes for Semantic FPN & Panoptic FPN. +* `TEST.DETECTIONS_PER_IMAGE` controls the maximum number of objects to be detected. + Set it to a larger number if test images may contain >100 objects. +* If you're training Fast R-CNN (with precomputed proposals), `DATASETS.PROPOSAL_FILES_{TRAIN,TEST}` + need to match the datasets. The format of proposal files are documented + [here](../modules/data.html#detectron2.data.load_proposals_into_dataset). + +New models +(e.g. [TensorMask](../../projects/TensorMask), +[PointRend](../../projects/PointRend)) +often have similar configs of their own that need to be changed as well. + +```eval_rst +.. tip:: + + After changing the number of classes, certain layers in a pre-trained model will become incompatible + and therefore cannot be loaded to the new model. + This is expected, and loading such pre-trained models will produce warnings about such layers. +``` diff --git a/detectron2/docs/tutorials/deployment.md b/detectron2/docs/tutorials/deployment.md new file mode 100755 index 0000000..f759888 --- /dev/null +++ b/detectron2/docs/tutorials/deployment.md @@ -0,0 +1,137 @@ +# Deployment + +Models written in Python need to go through an export process to become a deployable artifact. +A few basic concepts about this process: + +__"Export method"__ is how a Python model is fully serialized to a deployable format. +We support the following export methods: + +* `tracing`: see [pytorch documentation](https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html) to learn about it +* `scripting`: see [pytorch documentation](https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html) to learn about it +* `caffe2_tracing`: replace parts of the model by caffe2 operators, then use tracing. + +__"Format"__ is how a serialized model is described in a file, e.g. +TorchScript, Caffe2 protobuf, ONNX format. +__"Runtime"__ is an engine that loads a serialized model and executes it, +e.g., PyTorch, Caffe2, TensorFlow, onnxruntime, TensorRT, etc. +A runtime is often tied to a specific format +(e.g. PyTorch needs TorchScript format, Caffe2 needs protobuf format). +We currently support the following combination and each has some limitations: + +```eval_rst ++----------------------------+-------------+-------------+-----------------------------+ +| Export Method | tracing | scripting | caffe2_tracing | ++============================+=============+=============+=============================+ +| **Formats** | TorchScript | TorchScript | Caffe2, TorchScript, ONNX | ++----------------------------+-------------+-------------+-----------------------------+ +| **Runtime** | PyTorch | PyTorch | Caffe2, PyTorch | ++----------------------------+-------------+-------------+-----------------------------+ +| C++/Python inference | ✅ | ✅ | ✅ | ++----------------------------+-------------+-------------+-----------------------------+ +| Dynamic resolution | ✅ | ✅ | ✅ | ++----------------------------+-------------+-------------+-----------------------------+ +| Batch size requirement | Constant | Dynamic | Batch inference unsupported | ++----------------------------+-------------+-------------+-----------------------------+ +| Extra runtime deps | torchvision | torchvision | Caffe2 ops (usually already | +| | | | | +| | | | included in PyTorch) | ++----------------------------+-------------+-------------+-----------------------------+ +| Faster/Mask/Keypoint R-CNN | ✅ | ✅ | ✅ | ++----------------------------+-------------+-------------+-----------------------------+ +| RetinaNet | ✅ | ✅ | ✅ | ++----------------------------+-------------+-------------+-----------------------------+ +| PointRend R-CNN | ✅ | ❌ | ❌ | ++----------------------------+-------------+-------------+-----------------------------+ +| Cascade R-CNN | ✅ | ❌ | ❌ | ++----------------------------+-------------+-------------+-----------------------------+ + +``` + +`caffe2_tracing` is going to be deprecated. +We don't plan to work on additional support for other formats/runtime, but contributions are welcome. + + +## Deployment with Tracing or Scripting + +Models can be exported to TorchScript format, by either +[tracing or scripting](https://pytorch.org/tutorials/beginner/Intro_to_TorchScript_tutorial.html). +The output model file can be loaded without detectron2 dependency in either Python or C++. +The exported model often requires torchvision (or its C++ library) dependency for some custom ops. + +This feature requires PyTorch ≥ 1.8. + +### Coverage +Most official models under the meta architectures `GeneralizedRCNN` and `RetinaNet` +are supported in both tracing and scripting mode. +Cascade R-CNN and PointRend are currently supported in tracing. +Users' custom extensions are supported if they are also scriptable or traceable. + +For models exported with tracing, dynamic input resolution is allowed, but batch size +(number of input images) must be fixed. +Scripting can support dynamic batch size. + +### Usage + +The main export APIs for tracing and scripting are [TracingAdapter](../modules/export.html#detectron2.export.TracingAdapter) +and [scripting_with_instances](../modules/export.html#detectron2.export.scripting_with_instances). +Their usage is currently demonstrated in [test_export_torchscript.py](../../tests/test_export_torchscript.py) +(see `TestScripting` and `TestTracing`) +as well as the [deployment example](../../tools/deploy). +Please check that these examples can run, and then modify for your use cases. +The usage now requires some user effort and necessary knowledge for each model to workaround the limitation of scripting and tracing. +In the future we plan to wrap these under simpler APIs to lower the bar to use them. + +## Deployment with Caffe2-tracing +We provide [Caffe2Tracer](../modules/export.html#detectron2.export.Caffe2Tracer) +that performs the export logic. +It replaces parts of the model with Caffe2 operators, +and then export the model into Caffe2, TorchScript or ONNX format. + +The converted model is able to run in either Python or C++ without detectron2/torchvision dependency, on CPU or GPUs. +It has a runtime optimized for CPU & mobile inference, but not optimized for GPU inference. + +This feature requires ONNX ≥ 1.6. + +### Coverage + +Most official models under these 3 common meta architectures: `GeneralizedRCNN`, `RetinaNet`, `PanopticFPN` +are supported. Cascade R-CNN is not supported. Batch inference is not supported. + +Users' custom extensions under these architectures (added through registration) are supported +as long as they do not contain control flow or operators not available in Caffe2 (e.g. deformable convolution). +For example, custom backbones and heads are often supported out of the box. + +### Usage + +The APIs are listed at [the API documentation](../modules/export). +We provide [export_model.py](../../tools/deploy/) as an example that uses +these APIs to convert a standard model. For custom models/datasets, you can add them to this script. + +### Use the model in C++/Python + +The model can be loaded in C++ and deployed with +either Caffe2 or Pytorch runtime.. [C++ examples](../../tools/deploy/) for Mask R-CNN +are given as a reference. Note that: + +* Models exported with `caffe2_tracing` method take a special input format + described in [documentation](../modules/export.html#detectron2.export.Caffe2Tracer). + This was taken care of in the C++ example. + +* The converted models do not contain post-processing operations that + transform raw layer outputs into formatted predictions. + For example, the C++ examples only produce raw outputs (28x28 masks) from the final + layers that are not post-processed, because in actual deployment, an application often needs + its custom lightweight post-processing, so this step is left for users. + +To help use the Caffe2-format model in python, +we provide a python wrapper around the converted model, in the +[Caffe2Model.\_\_call\_\_](../modules/export.html#detectron2.export.Caffe2Model.__call__) method. +This method has an interface that's identical to the [pytorch versions of models](./models.md), +and it internally applies pre/post-processing code to match the formats. +This wrapper can serve as a reference for how to use Caffe2's python API, +or for how to implement pre/post-processing in actual deployment. + +## Conversion to TensorFlow +[tensorpack Faster R-CNN](https://github.com/tensorpack/tensorpack/tree/master/examples/FasterRCNN/convert_d2) +provides scripts to convert a few standard detectron2 R-CNN models to TensorFlow's pb format. +It works by translating configs and weights, therefore only support a few models. diff --git a/detectron2/docs/tutorials/evaluation.md b/detectron2/docs/tutorials/evaluation.md new file mode 100755 index 0000000..2ef94fa --- /dev/null +++ b/detectron2/docs/tutorials/evaluation.md @@ -0,0 +1,68 @@ + +# Evaluation + +Evaluation is a process that takes a number of inputs/outputs pairs and aggregate them. +You can always [use the model](./models.md) directly and just parse its inputs/outputs manually to perform +evaluation. +Alternatively, evaluation is implemented in detectron2 using the [DatasetEvaluator](../modules/evaluation.html#detectron2.evaluation.DatasetEvaluator) +interface. + +Detectron2 includes a few `DatasetEvaluator` that computes metrics using standard dataset-specific +APIs (e.g., COCO, LVIS). +You can also implement your own `DatasetEvaluator` that performs some other jobs +using the inputs/outputs pairs. +For example, to count how many instances are detected on the validation set: + +```python +class Counter(DatasetEvaluator): + def reset(self): + self.count = 0 + def process(self, inputs, outputs): + for output in outputs: + self.count += len(output["instances"]) + def evaluate(self): + # save self.count somewhere, or print it, or return it. + return {"count": self.count} +``` + +## Use evaluators + +To evaluate using the methods of evaluators manually: +```python +def get_all_inputs_outputs(): + for data in data_loader: + yield data, model(data) + +evaluator.reset() +for inputs, outputs in get_all_inputs_outputs(): + evaluator.process(inputs, outputs) +eval_results = evaluator.evaluate() +``` + +Evaluators can also be used with [inference_on_dataset](../modules/evaluation.html#detectron2.evaluation.inference_on_dataset). +For example, + +```python +eval_results = inference_on_dataset( + model, + data_loader, + DatasetEvaluators([COCOEvaluator(...), Counter()])) +``` +This will execute `model` on all inputs from `data_loader`, and call evaluator to process them. + +Compared to running the evaluation manually using the model, the benefit of this function is that +evaluators can be merged together using [DatasetEvaluators](../modules/evaluation.html#detectron2.evaluation.DatasetEvaluators), +and all the evaluation can finish in one forward pass over the dataset. +This function also provides accurate speed benchmarks for the given model and dataset. + +## Evaluators for custom dataset + +Many evaluators in detectron2 are made for specific datasets, +in order to obtain scores using each dataset's official API. +In addition to that, two evaluators are able to evaluate any generic dataset +that follows detectron2's [standard dataset format](./datasets.md), so they +can be used to evaluate custom datasets: + +* [COCOEvaluator](../modules/evaluation.html#detectron2.evaluation.COCOEvaluator) is able to evaluate AP (Average Precision) for box detection, + instance segmentation, keypoint detection on any custom dataset. +* [SemSegEvaluator](../modules/evaluation.html#detectron2.evaluation.SemSegEvaluator) is able to evaluate semantic segmentation metrics on any custom dataset. diff --git a/detectron2/docs/tutorials/extend.md b/detectron2/docs/tutorials/extend.md new file mode 100755 index 0000000..a6af550 --- /dev/null +++ b/detectron2/docs/tutorials/extend.md @@ -0,0 +1,141 @@ +# Extend Detectron2's Defaults + +__Research is about doing things in new ways__. +This brings a tension in how to create abstractions in code, +which is a challenge for any research engineering project of a significant size: + +1. On one hand, it needs to have very thin abstractions to allow for the possibility of doing + everything in new ways. It should be reasonably easy to break existing + abstractions and replace them with new ones. + +2. On the other hand, such a project also needs reasonably high-level + abstractions, so that users can easily do things in standard ways, + without worrying too much about the details that only certain researchers care about. + +In detectron2, there are two types of interfaces that address this tension together: + +1. Functions and classes that take a config (`cfg`) argument + created from a yaml file + (sometimes with few extra arguments). + + Such functions and classes implement + the "standard default" behavior: it will read what it needs from a given + config and do the "standard" thing. + Users only need to load an expert-made config and pass it around, without having to worry about + which arguments are used and what they all mean. + + See [Yacs Configs](configs.md) for a detailed tutorial. + +2. Functions and classes that have well-defined explicit arguments. + + Each of these is a small building block of the entire system. + They require users' expertise to understand what each argument should be, + and require more effort to stitch together to a larger system. + But they can be stitched together in more flexible ways. + + When you need to implement something not supported by the "standard defaults" + included in detectron2, these well-defined components can be reused. + + The [LazyConfig system](lazyconfigs.md) relies on such functions and classes. + +3. A few functions and classes are implemented with the + [@configurable](../modules/config.html#detectron2.config.configurable) + decorator - they can be called with either a config, or with explicit arguments, or a mixture of both. + Their explicit argument interfaces are currently experimental. + + As an example, a Mask R-CNN model can be built in the following ways: + + 1. Config-only: + ```python + # load proper yaml config file, then + model = build_model(cfg) + ``` + + 2. Mixture of config and additional argument overrides: + ```python + model = GeneralizedRCNN( + cfg, + roi_heads=StandardROIHeads(cfg, batch_size_per_image=666), + pixel_std=[57.0, 57.0, 57.0]) + ``` + + 3. Full explicit arguments: +
+ + (click to expand) + + + ```python + model = GeneralizedRCNN( + backbone=FPN( + ResNet( + BasicStem(3, 64, norm="FrozenBN"), + ResNet.make_default_stages(50, stride_in_1x1=True, norm="FrozenBN"), + out_features=["res2", "res3", "res4", "res5"], + ).freeze(2), + ["res2", "res3", "res4", "res5"], + 256, + top_block=LastLevelMaxPool(), + ), + proposal_generator=RPN( + in_features=["p2", "p3", "p4", "p5", "p6"], + head=StandardRPNHead(in_channels=256, num_anchors=3), + anchor_generator=DefaultAnchorGenerator( + sizes=[[32], [64], [128], [256], [512]], + aspect_ratios=[0.5, 1.0, 2.0], + strides=[4, 8, 16, 32, 64], + offset=0.0, + ), + anchor_matcher=Matcher([0.3, 0.7], [0, -1, 1], allow_low_quality_matches=True), + box2box_transform=Box2BoxTransform([1.0, 1.0, 1.0, 1.0]), + batch_size_per_image=256, + positive_fraction=0.5, + pre_nms_topk=(2000, 1000), + post_nms_topk=(1000, 1000), + nms_thresh=0.7, + ), + roi_heads=StandardROIHeads( + num_classes=80, + batch_size_per_image=512, + positive_fraction=0.25, + proposal_matcher=Matcher([0.5], [0, 1], allow_low_quality_matches=False), + box_in_features=["p2", "p3", "p4", "p5"], + box_pooler=ROIPooler(7, (1.0 / 4, 1.0 / 8, 1.0 / 16, 1.0 / 32), 0, "ROIAlignV2"), + box_head=FastRCNNConvFCHead( + ShapeSpec(channels=256, height=7, width=7), conv_dims=[], fc_dims=[1024, 1024] + ), + box_predictor=FastRCNNOutputLayers( + ShapeSpec(channels=1024), + test_score_thresh=0.05, + box2box_transform=Box2BoxTransform((10, 10, 5, 5)), + num_classes=80, + ), + mask_in_features=["p2", "p3", "p4", "p5"], + mask_pooler=ROIPooler(14, (1.0 / 4, 1.0 / 8, 1.0 / 16, 1.0 / 32), 0, "ROIAlignV2"), + mask_head=MaskRCNNConvUpsampleHead( + ShapeSpec(channels=256, width=14, height=14), + num_classes=80, + conv_dims=[256, 256, 256, 256, 256], + ), + ), + pixel_mean=[103.530, 116.280, 123.675], + pixel_std=[1.0, 1.0, 1.0], + input_format="BGR", + ) + ``` + +
+ + +If you only need the standard behavior, the [Beginner's Tutorial](./getting_started.md) +should suffice. If you need to extend detectron2 to your own needs, +see the following tutorials for more details: + +* Detectron2 includes a few standard datasets. To use custom ones, see + [Use Custom Datasets](./datasets.md). +* Detectron2 contains the standard logic that creates a data loader for training/testing from a + dataset, but you can write your own as well. See [Use Custom Data Loaders](./data_loading.md). +* Detectron2 implements many standard detection models, and provide ways for you + to overwrite their behaviors. See [Use Models](./models.md) and [Write Models](./write-models.md). +* Detectron2 provides a default training loop that is good for common training tasks. + You can customize it with hooks, or write your own loop instead. See [training](./training.md). diff --git a/detectron2/docs/tutorials/getting_started.md b/detectron2/docs/tutorials/getting_started.md new file mode 120000 index 0000000..e90bde7 --- /dev/null +++ b/detectron2/docs/tutorials/getting_started.md @@ -0,0 +1 @@ +../../GETTING_STARTED.md \ No newline at end of file diff --git a/detectron2/docs/tutorials/index.rst b/detectron2/docs/tutorials/index.rst new file mode 100755 index 0000000..850b95c --- /dev/null +++ b/detectron2/docs/tutorials/index.rst @@ -0,0 +1,20 @@ +Tutorials +====================================== + +.. toctree:: + :maxdepth: 2 + + install + getting_started + builtin_datasets + extend + datasets + data_loading + augmentation + models + write-models + training + evaluation + configs + lazyconfigs + deployment diff --git a/detectron2/docs/tutorials/install.md b/detectron2/docs/tutorials/install.md new file mode 120000 index 0000000..5f52b2b --- /dev/null +++ b/detectron2/docs/tutorials/install.md @@ -0,0 +1 @@ +../../INSTALL.md \ No newline at end of file diff --git a/detectron2/docs/tutorials/lazyconfigs.md b/detectron2/docs/tutorials/lazyconfigs.md new file mode 100755 index 0000000..a01101a --- /dev/null +++ b/detectron2/docs/tutorials/lazyconfigs.md @@ -0,0 +1,170 @@ +# Lazy Configs + +The traditional yacs-based config system provides basic, standard functionalities. +However, it does not offer enough flexibility for many new projects. +We develop an alternative, non-intrusive config system that can be used with +detectron2 or potentially any other complex projects. + +## Python Syntax + +Our config objects are still dictionaries. Instead of using Yaml to define dictionaries, +we create dictionaries in Python directly. This gives users the following power that +doesn't exist in Yaml: + +* Easily manipulate the dictionary (addition & deletion) using Python. +* Write simple arithmetics or call simple functions. +* Use more data types / objects. +* Import / compose other config files, using the familiar Python import syntax. + +A Python config file can be loaded like this: +```python +# config.py: +a = dict(x=1, y=2, z=dict(xx=1)) +b = dict(x=3, y=4) + +# my_code.py: +from detectron2.config import LazyConfig +cfg = LazyConfig.load("path/to/config.py") # an omegaconf dictionary +assert cfg.a.z.xx == 1 +``` + +After [LazyConfig.load](../modules/config.html#detectron2.config.LazyConfig.load), `cfg` will be a dictionary that contains all dictionaries +defined in the global scope of the config file. Note that: +* All dictionaries are turned to an [omegaconf](https://omegaconf.readthedocs.io/) + config object during loading. This enables access to omegaconf features, + such as its [access syntax](https://omegaconf.readthedocs.io/en/2.1_branch/usage.html#access-and-manipulation) + and [interpolation](https://omegaconf.readthedocs.io/en/2.1_branch/usage.html#variable-interpolation). +* Absolute imports in `config.py` works the same as in regular Python. +* Relative imports can only import dictionaries from config files. + They are simply a syntax sugar for [LazyConfig.load_rel](../modules/config.html#detectron2.config.LazyConfig.load_rel). + They can load Python files at relative path without requiring `__init__.py`. + +[LazyConfig.save](../modules/config.html#detectron2.config.LazyConfig.save) can save a config object to yaml. +Note that this is not always successful if non-serializable objects appear in the config file (e.g. lambdas). +It is up to users whether to sacrifice the ability to save in exchange for flexibility. + +## Recursive Instantiation + +The LazyConfig system heavily uses recursive instantiation, which is a pattern that +uses a dictionary to describe a +call to a function/class. The dictionary consists of: + +1. A "\_target\_" key which contains path to the callable, such as "module.submodule.class_name". +2. Other keys that represent arguments to pass to the callable. Arguments themselves can be defined + using recursive instantiation. + +We provide a helper function [LazyCall](../modules/config.html#detectron2.config.LazyCall) that helps create such dictionaries. +The following code using `LazyCall` +```python +from detectron2.config import LazyCall as L +from my_app import Trainer, Optimizer +cfg = L(Trainer)( + optimizer=L(Optimizer)( + lr=0.01, + algo="SGD" + ) +) +``` +creates a dictionary like this: +```python +cfg = { + "_target_": "my_app.Trainer", + "optimizer": { + "_target_": "my_app.Optimizer", + "lr": 0.01, "algo": "SGD" + } +} +``` + +By representing objects using such dictionaries, a general +[instantiate](../modules/config.html#detectron2.config.instantiate) +function can turn them into actual objects, i.e.: +```python +from detectron2.config import instantiate +trainer = instantiate(cfg) +# equivalent to: +# from my_app import Trainer, Optimizer +# trainer = Trainer(optimizer=Optimizer(lr=0.01, algo="SGD")) +``` + +This pattern is powerful enough to describe very complex objects, e.g.: + +
+ +A Full Mask R-CNN described in recursive instantiation (click to expand) + + +```eval_rst +.. literalinclude:: ../../configs/common/models/mask_rcnn_fpn.py + :language: python + :linenos: +``` + +
+ +There are also objects or logic that cannot be described simply by a dictionary, +such as reused objects or method calls. They may require some refactoring +to work with recursive instantiation. + +## Using Model Zoo LazyConfigs + +We provide some configs in the model zoo using the LazyConfig system, for example: + +* [common baselines](../../configs/common/). +* [new Mask R-CNN baselines](../../configs/new_baselines/) + +After installing detectron2, they can be loaded by the model zoo API +[model_zoo.get_config](../modules/model_zoo.html#detectron2.model_zoo.get_config). + +Using these as references, you're free to define custom config structure / fields for your own +project, as long as your training script can understand them. +Despite of this, our model zoo configs still follow some simple conventions for consistency, e.g. +`cfg.model` defines a model object, `cfg.dataloader.{train,test}` defines dataloader objects, +and `cfg.train` contains training options in key-value form. +In addition to `print()`, a better way to view the structure of a config is like this: +```python +from detectron2.model_zoo import get_config +from detectron2.config import LazyConfig +print(LazyConfig.to_py(get_config("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.py"))) +``` +From the output it's easier to find relevant options to change, e.g. +`dataloader.train.total_batch_size` for the batch size, or `optimizer.lr` for base learning rate. + +We provide a reference training script +[tools/lazyconfig_train_net.py](../../tools/lazyconfig_train_net.py), +that can train/eval our model zoo configs. +It also shows how to support command line value overrides. + +To demonstrate the power and flexibility of the new system, we show that +[a simple config file](../../configs/Misc/torchvision_imagenet_R_50.py) +can let detectron2 train an ImageNet classification model from torchvision, even though +detectron2 contains no features about ImageNet classification. +This can serve as a reference for using detectron2 in other deep learning tasks. + +## Summary + +By using recursive instantiation to create objects, +we avoid passing a giant config to many places, because `cfg` is only passed to `instantiate`. +This has the following benefits: + +* It's __non-intrusive__: objects to be constructed are config-agnostic, regular Python + functions/classes. + They can even live in other libraries. For example, + `{"_target_": "torch.nn.Conv2d", "in_channels": 10, "out_channels": 10, "kernel_size": 1}` + defines a conv layer. +* __Clarity__ of what function/classes will be called, and what arguments they use. +* `cfg` doesn't need pre-defined keys and structures. It's valid as long as it translates to valid + code. This gives a lot more __flexibility__. +* You can still pass huge dictionaries as arguments, just like the old way. + +Recursive instantiation and Python syntax are orthogonal: you can use one without the other. +But by putting them together, the config file looks a lot like the code that will be executed: + +![img](./lazyconfig.jpg) + +However, the config file just defines dictionaries, which can be easily manipulated further +by composition or overrides. +The corresponding code will only be executed +later when `instantiate` is called. In some way, +in config files we're writing "editable code" that will be "lazily executed" later when needed. +That's why we call this system "LazyConfig". diff --git a/detectron2/docs/tutorials/models.md b/detectron2/docs/tutorials/models.md new file mode 100755 index 0000000..a2def5c --- /dev/null +++ b/detectron2/docs/tutorials/models.md @@ -0,0 +1,180 @@ +# Use Models + +## Build Models from Yacs Config +From a yacs config object, +models (and their sub-models) can be built by +functions such as `build_model`, `build_backbone`, `build_roi_heads`: +```python +from detectron2.modeling import build_model +model = build_model(cfg) # returns a torch.nn.Module +``` + +`build_model` only builds the model structure and fills it with random parameters. +See below for how to load an existing checkpoint to the model and how to use the `model` object. + +### Load/Save a Checkpoint +```python +from detectron2.checkpoint import DetectionCheckpointer +DetectionCheckpointer(model).load(file_path_or_url) # load a file, usually from cfg.MODEL.WEIGHTS + +checkpointer = DetectionCheckpointer(model, save_dir="output") +checkpointer.save("model_999") # save to output/model_999.pth +``` + +Detectron2's checkpointer recognizes models in pytorch's `.pth` format, as well as the `.pkl` files +in our model zoo. +See [API doc](../modules/checkpoint.html#detectron2.checkpoint.DetectionCheckpointer) +for more details about its usage. + +The model files can be arbitrarily manipulated using `torch.{load,save}` for `.pth` files or +`pickle.{dump,load}` for `.pkl` files. + +### Use a Model + +A model can be called by `outputs = model(inputs)`, where `inputs` is a `list[dict]`. +Each dict corresponds to one image and the required keys +depend on the type of model, and whether the model is in training or evaluation mode. +For example, in order to do inference, +all existing models expect the "image" key, and optionally "height" and "width". +The detailed format of inputs and outputs of existing models are explained below. + +__Training__: When in training mode, all models are required to be used under an `EventStorage`. +The training statistics will be put into the storage: +```python +from detectron2.utils.events import EventStorage +with EventStorage() as storage: + losses = model(inputs) +``` + +__Inference__: If you only want to do simple inference using an existing model, +[DefaultPredictor](../modules/engine.html#detectron2.engine.defaults.DefaultPredictor) +is a wrapper around model that provides such basic functionality. +It includes default behavior including model loading, preprocessing, +and operates on single image rather than batches. See its documentation for usage. + +You can also run inference directly like this: +```python +model.eval() +with torch.no_grad(): + outputs = model(inputs) +``` + +### Model Input Format + +Users can implement custom models that support any arbitrary input format. +Here we describe the standard input format that all builtin models support in detectron2. +They all take a `list[dict]` as the inputs. Each dict +corresponds to information about one image. + +The dict may contain the following keys: + +* "image": `Tensor` in (C, H, W) format. The meaning of channels are defined by `cfg.INPUT.FORMAT`. + Image normalization, if any, will be performed inside the model using + `cfg.MODEL.PIXEL_{MEAN,STD}`. +* "height", "width": the **desired** output height and width **in inference**, which is not necessarily the same + as the height or width of the `image` field. + For example, the `image` field contains the resized image, if resize is used as a preprocessing step. + But you may want the outputs to be in **original** resolution. + If provided, the model will produce output in this resolution, + rather than in the resolution of the `image` as input into the model. This is more efficient and accurate. +* "instances": an [Instances](../modules/structures.html#detectron2.structures.Instances) + object for training, with the following fields: + + "gt_boxes": a [Boxes](../modules/structures.html#detectron2.structures.Boxes) object storing N boxes, one for each instance. + + "gt_classes": `Tensor` of long type, a vector of N labels, in range [0, num_categories). + + "gt_masks": a [PolygonMasks](../modules/structures.html#detectron2.structures.PolygonMasks) + or [BitMasks](../modules/structures.html#detectron2.structures.BitMasks) object storing N masks, one for each instance. + + "gt_keypoints": a [Keypoints](../modules/structures.html#detectron2.structures.Keypoints) + object storing N keypoint sets, one for each instance. +* "sem_seg": `Tensor[int]` in (H, W) format. The semantic segmentation ground truth for training. + Values represent category labels starting from 0. +* "proposals": an [Instances](../modules/structures.html#detectron2.structures.Instances) + object used only in Fast R-CNN style models, with the following fields: + + "proposal_boxes": a [Boxes](../modules/structures.html#detectron2.structures.Boxes) object storing P proposal boxes. + + "objectness_logits": `Tensor`, a vector of P scores, one for each proposal. + +For inference of builtin models, only "image" key is required, and "width/height" are optional. + +We currently don't define standard input format for panoptic segmentation training, +because models now use custom formats produced by custom data loaders. + +#### How it connects to data loader: + +The output of the default [DatasetMapper]( ../modules/data.html#detectron2.data.DatasetMapper) is a dict +that follows the above format. +After the data loader performs batching, it becomes `list[dict]` which the builtin models support. + + +### Model Output Format + +When in training mode, the builtin models output a `dict[str->ScalarTensor]` with all the losses. + +When in inference mode, the builtin models output a `list[dict]`, one dict for each image. +Based on the tasks the model is doing, each dict may contain the following fields: + +* "instances": [Instances](../modules/structures.html#detectron2.structures.Instances) + object with the following fields: + * "pred_boxes": [Boxes](../modules/structures.html#detectron2.structures.Boxes) object storing N boxes, one for each detected instance. + * "scores": `Tensor`, a vector of N confidence scores. + * "pred_classes": `Tensor`, a vector of N labels in range [0, num_categories). + + "pred_masks": a `Tensor` of shape (N, H, W), masks for each detected instance. + + "pred_keypoints": a `Tensor` of shape (N, num_keypoint, 3). + Each row in the last dimension is (x, y, score). Confidence scores are larger than 0. +* "sem_seg": `Tensor` of (num_categories, H, W), the semantic segmentation prediction. +* "proposals": [Instances](../modules/structures.html#detectron2.structures.Instances) + object with the following fields: + * "proposal_boxes": [Boxes](../modules/structures.html#detectron2.structures.Boxes) + object storing N boxes. + * "objectness_logits": a torch vector of N confidence scores. +* "panoptic_seg": A tuple of `(pred: Tensor, segments_info: Optional[list[dict]])`. + The `pred` tensor has shape (H, W), containing the segment id of each pixel. + + * If `segments_info` exists, each dict describes one segment id in `pred` and has the following fields: + + * "id": the segment id + * "isthing": whether the segment is a thing or stuff + * "category_id": the category id of this segment. + + If a pixel's id does not exist in `segments_info`, it is considered to be void label + defined in [Panoptic Segmentation](https://arxiv.org/abs/1801.00868). + + * If `segments_info` is None, all pixel values in `pred` must be ≥ -1. + Pixels with value -1 are assigned void labels. + Otherwise, the category id of each pixel is obtained by + `category_id = pixel // metadata.label_divisor`. + + +### Partially execute a model: + +Sometimes you may want to obtain an intermediate tensor inside a model, +such as the input of certain layer, the output before post-processing. +Since there are typically hundreds of intermediate tensors, there isn't an API that provides you +the intermediate result you need. +You have the following options: + +1. Write a (sub)model. Following the [tutorial](./write-models.md), you can + rewrite a model component (e.g. a head of a model), such that it + does the same thing as the existing component, but returns the output + you need. +2. Partially execute a model. You can create the model as usual, + but use custom code to execute it instead of its `forward()`. For example, + the following code obtains mask features before mask head. + + ```python + images = ImageList.from_tensors(...) # preprocessed input tensor + model = build_model(cfg) + model.eval() + features = model.backbone(images.tensor) + proposals, _ = model.proposal_generator(images, features) + instances, _ = model.roi_heads(images, features, proposals) + mask_features = [features[f] for f in model.roi_heads.in_features] + mask_features = model.roi_heads.mask_pooler(mask_features, [x.pred_boxes for x in instances]) + ``` + +3. Use [forward hooks](https://pytorch.org/tutorials/beginner/former_torchies/nnft_tutorial.html#forward-and-backward-function-hooks). + Forward hooks can help you obtain inputs or outputs of a certain module. + If they are not exactly what you want, they can at least be used together with partial execution + to obtain other tensors. + +All options require you to read documentation and sometimes code +of the existing models to understand the internal logic, +in order to write code to obtain the internal tensors. diff --git a/detectron2/docs/tutorials/training.md b/detectron2/docs/tutorials/training.md new file mode 100755 index 0000000..83a6cb0 --- /dev/null +++ b/detectron2/docs/tutorials/training.md @@ -0,0 +1,67 @@ +# Training + +From the previous tutorials, you may now have a custom model and a data loader. +To run training, users typically have a preference in one of the following two styles: + +### Custom Training Loop + +With a model and a data loader ready, everything else needed to write a training loop can +be found in PyTorch, and you are free to write the training loop yourself. +This style allows researchers to manage the entire training logic more clearly and have full control. +One such example is provided in [tools/plain_train_net.py](../../tools/plain_train_net.py). + +Any customization on the training logic is then easily controlled by the user. + +### Trainer Abstraction + +We also provide a standardized "trainer" abstraction with a +hook system that helps simplify the standard training behavior. +It includes the following two instantiations: + +* [SimpleTrainer](../modules/engine.html#detectron2.engine.SimpleTrainer) + provides a minimal training loop for single-cost single-optimizer single-data-source training, with nothing else. + Other tasks (checkpointing, logging, etc) can be implemented using + [the hook system](../modules/engine.html#detectron2.engine.HookBase). +* [DefaultTrainer](../modules/engine.html#detectron2.engine.defaults.DefaultTrainer) is a `SimpleTrainer` initialized from a + yacs config, used by + [tools/train_net.py](../../tools/train_net.py) and many scripts. + It includes more standard default behaviors that one might want to opt in, + including default configurations for optimizer, learning rate schedule, + logging, evaluation, checkpointing etc. + +To customize a `DefaultTrainer`: + +1. For simple customizations (e.g. change optimizer, evaluator, LR scheduler, data loader, etc.), overwrite [its methods](../modules/engine.html#detectron2.engine.defaults.DefaultTrainer) in a subclass, just like [tools/train_net.py](../../tools/train_net.py). +2. For extra tasks during training, check the + [hook system](../modules/engine.html#detectron2.engine.HookBase) to see if it's supported. + + As an example, to print hello during training: + ```python + class HelloHook(HookBase): + def after_step(self): + if self.trainer.iter % 100 == 0: + print(f"Hello at iteration {self.trainer.iter}!") + ``` +3. Using a trainer+hook system means there will always be some non-standard behaviors that cannot be supported, especially in research. + For this reason, we intentionally keep the trainer & hook system minimal, rather than powerful. + If anything cannot be achieved by such a system, it's easier to start from [tools/plain_train_net.py](../../tools/plain_train_net.py) to implement custom training logic manually. + +### Logging of Metrics + +During training, detectron2 models and trainer put metrics to a centralized [EventStorage](../modules/utils.html#detectron2.utils.events.EventStorage). +You can use the following code to access it and log metrics to it: +```python +from detectron2.utils.events import get_event_storage + +# inside the model: +if self.training: + value = # compute the value from inputs + storage = get_event_storage() + storage.put_scalar("some_accuracy", value) +``` + +Refer to its documentation for more details. + +Metrics are then written to various destinations with [EventWriter](../modules/utils.html#module-detectron2.utils.events). +DefaultTrainer enables a few `EventWriter` with default configurations. +See above for how to customize them. diff --git a/detectron2/docs/tutorials/write-models.md b/detectron2/docs/tutorials/write-models.md new file mode 100755 index 0000000..967d126 --- /dev/null +++ b/detectron2/docs/tutorials/write-models.md @@ -0,0 +1,90 @@ +# Write Models + +If you are trying to do something completely new, you may wish to implement +a model entirely from scratch. However, in many situations you may +be interested in modifying or extending some components of an existing model. +Therefore, we also provide mechanisms that let users override the +behavior of certain internal components of standard models. + + +## Register New Components + +For common concepts that users often want to customize, such as "backbone feature extractor", "box head", +we provide a registration mechanism for users to inject custom implementation that +will be immediately available to use in config files. + +For example, to add a new backbone, import this code in your code: +```python +from detectron2.modeling import BACKBONE_REGISTRY, Backbone, ShapeSpec + +@BACKBONE_REGISTRY.register() +class ToyBackbone(Backbone): + def __init__(self, cfg, input_shape): + super().__init__() + # create your own backbone + self.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=16, padding=3) + + def forward(self, image): + return {"conv1": self.conv1(image)} + + def output_shape(self): + return {"conv1": ShapeSpec(channels=64, stride=16)} +``` + +In this code, we implement a new backbone following the interface of the +[Backbone](../modules/modeling.html#detectron2.modeling.Backbone) class, +and register it into the [BACKBONE_REGISTRY](../modules/modeling.html#detectron2.modeling.BACKBONE_REGISTRY) +which requires subclasses of `Backbone`. +After importing this code, detectron2 can link the name of the class to its implementation. Therefore you can write the following code: + +```python +cfg = ... # read a config +cfg.MODEL.BACKBONE.NAME = 'ToyBackbone' # or set it in the config file +model = build_model(cfg) # it will find `ToyBackbone` defined above +``` + +As another example, to add new abilities to the ROI heads in the Generalized R-CNN meta-architecture, +you can implement a new +[ROIHeads](../modules/modeling.html#detectron2.modeling.ROIHeads) subclass and put it in the `ROI_HEADS_REGISTRY`. +[DensePose](../../projects/DensePose) +and [MeshRCNN](https://github.com/facebookresearch/meshrcnn) +are two examples that implement new ROIHeads to perform new tasks. +And [projects/](../../projects/) +contains more examples that implement different architectures. + +A complete list of registries can be found in [API documentation](../modules/modeling.html#model-registries). +You can register components in these registries to customize different parts of a model, or the +entire model. + +## Construct Models with Explicit Arguments + +Registry is a bridge to connect names in config files to the actual code. +They are meant to cover a few main components that users frequently need to replace. +However, the capability of a text-based config file is sometimes limited and +some deeper customization may be available only through writing code. + +Most model components in detectron2 have a clear `__init__` interface that documents +what input arguments it needs. Calling them with custom arguments will give you a custom variant +of the model. + +As an example, to use __custom loss function__ in the box head of a Faster R-CNN, we can do the following: + +1. Losses are currently computed in [FastRCNNOutputLayers](../modules/modeling.html#detectron2.modeling.FastRCNNOutputLayers). + We need to implement a variant or a subclass of it, with custom loss functions, named `MyRCNNOutput`. +2. Call `StandardROIHeads` with `box_predictor=MyRCNNOutput()` argument instead of the builtin `FastRCNNOutputLayers`. + If all other arguments should stay unchanged, this can be easily achieved by using the [configurable `__init__`](../modules/config.html#detectron2.config.configurable) mechanism: + + ```python + roi_heads = StandardROIHeads( + cfg, backbone.output_shape(), + box_predictor=MyRCNNOutput(...) + ) + ``` +3. (optional) If we want to enable this new model from a config file, registration is needed: + ```python + @ROI_HEADS_REGISTRY.register() + class MyStandardROIHeads(StandardROIHeads): + def __init__(self, cfg, input_shape): + super().__init__(cfg, input_shape, + box_predictor=MyRCNNOutput(...)) + ``` diff --git a/detectron2/projects/DeepLab/README.md b/detectron2/projects/DeepLab/README.md new file mode 100755 index 0000000..bd03cf1 --- /dev/null +++ b/detectron2/projects/DeepLab/README.md @@ -0,0 +1,100 @@ +# DeepLab in Detectron2 + +In this repository, we implement DeepLabV3 and DeepLabV3+ in Detectron2. + +## Installation +Install Detectron2 following [the instructions](https://detectron2.readthedocs.io/tutorials/install.html). + +## Training + +To train a model with 8 GPUs run: +```bash +cd /path/to/detectron2/projects/DeepLab +python train_net.py --config-file configs/Cityscapes-SemanticSegmentation/deeplab_v3_plus_R_103_os16_mg124_poly_90k_bs16.yaml --num-gpus 8 +``` + +## Evaluation + +Model evaluation can be done similarly: +```bash +cd /path/to/detectron2/projects/DeepLab +python train_net.py --config-file configs/Cityscapes-SemanticSegmentation/deeplab_v3_plus_R_103_os16_mg124_poly_90k_bs16.yaml --eval-only MODEL.WEIGHTS /path/to/model_checkpoint +``` + +## Cityscapes Semantic Segmentation +Cityscapes models are trained with ImageNet pretraining. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodBackboneOutput
resolution
mIoUmodel iddownload
DeepLabV3R101-DC51024×2048 76.7 - -  |  -
DeepLabV3R103-DC51024×2048 78.5 28041665 model | metrics
DeepLabV3+R101-DC51024×2048 78.1 - -  |  -
DeepLabV3+R103-DC51024×2048 80.0 28054032model | metrics
+ +Note: +- [R103](https://dl.fbaipublicfiles.com/detectron2/DeepLab/R-103.pkl): a ResNet-101 with its first 7x7 convolution replaced by 3 3x3 convolutions. +This modification has been used in most semantic segmentation papers. We pre-train this backbone on ImageNet using the default recipe of [pytorch examples](https://github.com/pytorch/examples/tree/master/imagenet). +- DC5 means using dilated convolution in `res5`. + +## Citing DeepLab + +If you use DeepLab, please use the following BibTeX entry. + +* DeepLabv3+: + +``` +@inproceedings{deeplabv3plus2018, + title={Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation}, + author={Liang-Chieh Chen and Yukun Zhu and George Papandreou and Florian Schroff and Hartwig Adam}, + booktitle={ECCV}, + year={2018} +} +``` + +* DeepLabv3: + +``` +@article{deeplabv32018, + title={Rethinking atrous convolution for semantic image segmentation}, + author={Chen, Liang-Chieh and Papandreou, George and Schroff, Florian and Adam, Hartwig}, + journal={arXiv:1706.05587}, + year={2017} +} +``` diff --git a/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/Base-DeepLabV3-OS16-Semantic.yaml b/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/Base-DeepLabV3-OS16-Semantic.yaml new file mode 100755 index 0000000..fa6edb5 --- /dev/null +++ b/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/Base-DeepLabV3-OS16-Semantic.yaml @@ -0,0 +1,36 @@ +_BASE_: "../../../../configs/Base-RCNN-DilatedC5.yaml" +MODEL: + META_ARCHITECTURE: "SemanticSegmentor" + BACKBONE: + FREEZE_AT: 0 + SEM_SEG_HEAD: + NAME: "DeepLabV3Head" + IN_FEATURES: ["res5"] + ASPP_CHANNELS: 256 + ASPP_DILATIONS: [6, 12, 18] + ASPP_DROPOUT: 0.1 + CONVS_DIM: 256 + COMMON_STRIDE: 16 + NUM_CLASSES: 19 + LOSS_TYPE: "hard_pixel_mining" +DATASETS: + TRAIN: ("cityscapes_fine_sem_seg_train",) + TEST: ("cityscapes_fine_sem_seg_val",) +SOLVER: + BASE_LR: 0.01 + MAX_ITER: 90000 + LR_SCHEDULER_NAME: "WarmupPolyLR" + IMS_PER_BATCH: 16 +INPUT: + MIN_SIZE_TRAIN: (512, 768, 1024, 1280, 1536, 1792, 2048) + MIN_SIZE_TRAIN_SAMPLING: "choice" + MIN_SIZE_TEST: 1024 + MAX_SIZE_TRAIN: 4096 + MAX_SIZE_TEST: 2048 + CROP: + ENABLED: True + TYPE: "absolute" + SIZE: (512, 1024) + SINGLE_CATEGORY_MAX_AREA: 1.0 +DATALOADER: + NUM_WORKERS: 10 diff --git a/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/deeplab_v3_R_103_os16_mg124_poly_90k_bs16.yaml b/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/deeplab_v3_R_103_os16_mg124_poly_90k_bs16.yaml new file mode 100755 index 0000000..a2f5a54 --- /dev/null +++ b/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/deeplab_v3_R_103_os16_mg124_poly_90k_bs16.yaml @@ -0,0 +1,19 @@ +_BASE_: Base-DeepLabV3-OS16-Semantic.yaml +MODEL: + WEIGHTS: "detectron2://DeepLab/R-103.pkl" + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + BACKBONE: + NAME: "build_resnet_deeplab_backbone" + RESNETS: + DEPTH: 101 + NORM: "SyncBN" + RES5_MULTI_GRID: [1, 2, 4] + STEM_TYPE: "deeplab" + STEM_OUT_CHANNELS: 128 + STRIDE_IN_1X1: False + SEM_SEG_HEAD: + NAME: "DeepLabV3Head" + NORM: "SyncBN" +INPUT: + FORMAT: "RGB" diff --git a/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/deeplab_v3_plus_R_103_os16_mg124_poly_90k_bs16.yaml b/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/deeplab_v3_plus_R_103_os16_mg124_poly_90k_bs16.yaml new file mode 100755 index 0000000..c03a72d --- /dev/null +++ b/detectron2/projects/DeepLab/configs/Cityscapes-SemanticSegmentation/deeplab_v3_plus_R_103_os16_mg124_poly_90k_bs16.yaml @@ -0,0 +1,24 @@ +_BASE_: Base-DeepLabV3-OS16-Semantic.yaml +MODEL: + WEIGHTS: "detectron2://DeepLab/R-103.pkl" + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + BACKBONE: + NAME: "build_resnet_deeplab_backbone" + RESNETS: + DEPTH: 101 + NORM: "SyncBN" + OUT_FEATURES: ["res2", "res5"] + RES5_MULTI_GRID: [1, 2, 4] + STEM_TYPE: "deeplab" + STEM_OUT_CHANNELS: 128 + STRIDE_IN_1X1: False + SEM_SEG_HEAD: + NAME: "DeepLabV3PlusHead" + IN_FEATURES: ["res2", "res5"] + PROJECT_FEATURES: ["res2"] + PROJECT_CHANNELS: [48] + NORM: "SyncBN" + COMMON_STRIDE: 4 +INPUT: + FORMAT: "RGB" diff --git a/detectron2/projects/DeepLab/deeplab/__init__.py b/detectron2/projects/DeepLab/deeplab/__init__.py new file mode 100755 index 0000000..dcd88ff --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .build_solver import build_lr_scheduler +from .config import add_deeplab_config +from .resnet import build_resnet_deeplab_backbone +from .semantic_seg import DeepLabV3Head, DeepLabV3PlusHead diff --git a/detectron2/projects/DeepLab/deeplab/build_solver.py b/detectron2/projects/DeepLab/deeplab/build_solver.py new file mode 100755 index 0000000..a1d359c --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/build_solver.py @@ -0,0 +1,27 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch + +from detectron2.config import CfgNode +from detectron2.solver import LRScheduler +from detectron2.solver import build_lr_scheduler as build_d2_lr_scheduler + +from .lr_scheduler import WarmupPolyLR + + +def build_lr_scheduler(cfg: CfgNode, optimizer: torch.optim.Optimizer) -> LRScheduler: + """ + Build a LR scheduler from config. + """ + name = cfg.SOLVER.LR_SCHEDULER_NAME + if name == "WarmupPolyLR": + return WarmupPolyLR( + optimizer, + cfg.SOLVER.MAX_ITER, + warmup_factor=cfg.SOLVER.WARMUP_FACTOR, + warmup_iters=cfg.SOLVER.WARMUP_ITERS, + warmup_method=cfg.SOLVER.WARMUP_METHOD, + power=cfg.SOLVER.POLY_LR_POWER, + constant_ending=cfg.SOLVER.POLY_LR_CONSTANT_ENDING, + ) + else: + return build_d2_lr_scheduler(cfg, optimizer) diff --git a/detectron2/projects/DeepLab/deeplab/config.py b/detectron2/projects/DeepLab/deeplab/config.py new file mode 100755 index 0000000..5f5e45a --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/config.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + + +def add_deeplab_config(cfg): + """ + Add config for DeepLab. + """ + # We retry random cropping until no single category in semantic segmentation GT occupies more + # than `SINGLE_CATEGORY_MAX_AREA` part of the crop. + cfg.INPUT.CROP.SINGLE_CATEGORY_MAX_AREA = 1.0 + # Used for `poly` learning rate schedule. + cfg.SOLVER.POLY_LR_POWER = 0.9 + cfg.SOLVER.POLY_LR_CONSTANT_ENDING = 0.0 + # Loss type, choose from `cross_entropy`, `hard_pixel_mining`. + cfg.MODEL.SEM_SEG_HEAD.LOSS_TYPE = "hard_pixel_mining" + # DeepLab settings + cfg.MODEL.SEM_SEG_HEAD.PROJECT_FEATURES = ["res2"] + cfg.MODEL.SEM_SEG_HEAD.PROJECT_CHANNELS = [48] + cfg.MODEL.SEM_SEG_HEAD.ASPP_CHANNELS = 256 + cfg.MODEL.SEM_SEG_HEAD.ASPP_DILATIONS = [6, 12, 18] + cfg.MODEL.SEM_SEG_HEAD.ASPP_DROPOUT = 0.1 + cfg.MODEL.SEM_SEG_HEAD.USE_DEPTHWISE_SEPARABLE_CONV = False + # Backbone new configs + cfg.MODEL.RESNETS.RES4_DILATION = 1 + cfg.MODEL.RESNETS.RES5_MULTI_GRID = [1, 2, 4] + # ResNet stem type from: `basic`, `deeplab` + cfg.MODEL.RESNETS.STEM_TYPE = "deeplab" diff --git a/detectron2/projects/DeepLab/deeplab/loss.py b/detectron2/projects/DeepLab/deeplab/loss.py new file mode 100755 index 0000000..3a43087 --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/loss.py @@ -0,0 +1,40 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch +import torch.nn as nn + + +class DeepLabCE(nn.Module): + """ + Hard pixel mining with cross entropy loss, for semantic segmentation. + This is used in TensorFlow DeepLab frameworks. + Paper: DeeperLab: Single-Shot Image Parser + Reference: https://github.com/tensorflow/models/blob/bd488858d610e44df69da6f89277e9de8a03722c/research/deeplab/utils/train_utils.py#L33 # noqa + Arguments: + ignore_label: Integer, label to ignore. + top_k_percent_pixels: Float, the value lies in [0.0, 1.0]. When its + value < 1.0, only compute the loss for the top k percent pixels + (e.g., the top 20% pixels). This is useful for hard pixel mining. + weight: Tensor, a manual rescaling weight given to each class. + """ + + def __init__(self, ignore_label=-1, top_k_percent_pixels=1.0, weight=None): + super(DeepLabCE, self).__init__() + self.top_k_percent_pixels = top_k_percent_pixels + self.ignore_label = ignore_label + self.criterion = nn.CrossEntropyLoss( + weight=weight, ignore_index=ignore_label, reduction="none" + ) + + def forward(self, logits, labels, weights=None): + if weights is None: + pixel_losses = self.criterion(logits, labels).contiguous().view(-1) + else: + # Apply per-pixel loss weights. + pixel_losses = self.criterion(logits, labels) * weights + pixel_losses = pixel_losses.contiguous().view(-1) + if self.top_k_percent_pixels == 1.0: + return pixel_losses.mean() + + top_k_pixels = int(self.top_k_percent_pixels * pixel_losses.numel()) + pixel_losses, _ = torch.topk(pixel_losses, top_k_pixels) + return pixel_losses.mean() diff --git a/detectron2/projects/DeepLab/deeplab/lr_scheduler.py b/detectron2/projects/DeepLab/deeplab/lr_scheduler.py new file mode 100755 index 0000000..b754b59 --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/lr_scheduler.py @@ -0,0 +1,62 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +from typing import List +import torch + +from detectron2.solver.lr_scheduler import LRScheduler, _get_warmup_factor_at_iter + +# NOTE: PyTorch's LR scheduler interface uses names that assume the LR changes +# only on epoch boundaries. We typically use iteration based schedules instead. +# As a result, "epoch" (e.g., as in self.last_epoch) should be understood to mean +# "iteration" instead. + +# FIXME: ideally this would be achieved with a CombinedLRScheduler, separating +# MultiStepLR with WarmupLR but the current LRScheduler design doesn't allow it. + + +class WarmupPolyLR(LRScheduler): + """ + Poly learning rate schedule used to train DeepLab. + Paper: DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, + Atrous Convolution, and Fully Connected CRFs. + Reference: https://github.com/tensorflow/models/blob/21b73d22f3ed05b650e85ac50849408dd36de32e/research/deeplab/utils/train_utils.py#L337 # noqa + """ + + def __init__( + self, + optimizer: torch.optim.Optimizer, + max_iters: int, + warmup_factor: float = 0.001, + warmup_iters: int = 1000, + warmup_method: str = "linear", + last_epoch: int = -1, + power: float = 0.9, + constant_ending: float = 0.0, + ): + self.max_iters = max_iters + self.warmup_factor = warmup_factor + self.warmup_iters = warmup_iters + self.warmup_method = warmup_method + self.power = power + self.constant_ending = constant_ending + super().__init__(optimizer, last_epoch) + + def get_lr(self) -> List[float]: + warmup_factor = _get_warmup_factor_at_iter( + self.warmup_method, self.last_epoch, self.warmup_iters, self.warmup_factor + ) + if self.constant_ending > 0 and warmup_factor == 1.0: + # Constant ending lr. + if ( + math.pow((1.0 - self.last_epoch / self.max_iters), self.power) + < self.constant_ending + ): + return [base_lr * self.constant_ending for base_lr in self.base_lrs] + return [ + base_lr * warmup_factor * math.pow((1.0 - self.last_epoch / self.max_iters), self.power) + for base_lr in self.base_lrs + ] + + def _compute_values(self) -> List[float]: + # The new interface + return self.get_lr() diff --git a/detectron2/projects/DeepLab/deeplab/resnet.py b/detectron2/projects/DeepLab/deeplab/resnet.py new file mode 100755 index 0000000..2cc277b --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/resnet.py @@ -0,0 +1,158 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import fvcore.nn.weight_init as weight_init +import torch.nn.functional as F + +from detectron2.layers import CNNBlockBase, Conv2d, get_norm +from detectron2.modeling import BACKBONE_REGISTRY +from detectron2.modeling.backbone.resnet import ( + BasicStem, + BottleneckBlock, + DeformBottleneckBlock, + ResNet, +) + + +class DeepLabStem(CNNBlockBase): + """ + The DeepLab ResNet stem (layers before the first residual block). + """ + + def __init__(self, in_channels=3, out_channels=128, norm="BN"): + """ + Args: + norm (str or callable): norm after the first conv layer. + See :func:`layers.get_norm` for supported format. + """ + super().__init__(in_channels, out_channels, 4) + self.in_channels = in_channels + self.conv1 = Conv2d( + in_channels, + out_channels // 2, + kernel_size=3, + stride=2, + padding=1, + bias=False, + norm=get_norm(norm, out_channels // 2), + ) + self.conv2 = Conv2d( + out_channels // 2, + out_channels // 2, + kernel_size=3, + stride=1, + padding=1, + bias=False, + norm=get_norm(norm, out_channels // 2), + ) + self.conv3 = Conv2d( + out_channels // 2, + out_channels, + kernel_size=3, + stride=1, + padding=1, + bias=False, + norm=get_norm(norm, out_channels), + ) + weight_init.c2_msra_fill(self.conv1) + weight_init.c2_msra_fill(self.conv2) + weight_init.c2_msra_fill(self.conv3) + + def forward(self, x): + x = self.conv1(x) + x = F.relu_(x) + x = self.conv2(x) + x = F.relu_(x) + x = self.conv3(x) + x = F.relu_(x) + x = F.max_pool2d(x, kernel_size=3, stride=2, padding=1) + return x + + +@BACKBONE_REGISTRY.register() +def build_resnet_deeplab_backbone(cfg, input_shape): + """ + Create a ResNet instance from config. + Returns: + ResNet: a :class:`ResNet` instance. + """ + # need registration of new blocks/stems? + norm = cfg.MODEL.RESNETS.NORM + if cfg.MODEL.RESNETS.STEM_TYPE == "basic": + stem = BasicStem( + in_channels=input_shape.channels, + out_channels=cfg.MODEL.RESNETS.STEM_OUT_CHANNELS, + norm=norm, + ) + elif cfg.MODEL.RESNETS.STEM_TYPE == "deeplab": + stem = DeepLabStem( + in_channels=input_shape.channels, + out_channels=cfg.MODEL.RESNETS.STEM_OUT_CHANNELS, + norm=norm, + ) + else: + raise ValueError("Unknown stem type: {}".format(cfg.MODEL.RESNETS.STEM_TYPE)) + + # fmt: off + freeze_at = cfg.MODEL.BACKBONE.FREEZE_AT + out_features = cfg.MODEL.RESNETS.OUT_FEATURES + depth = cfg.MODEL.RESNETS.DEPTH + num_groups = cfg.MODEL.RESNETS.NUM_GROUPS + width_per_group = cfg.MODEL.RESNETS.WIDTH_PER_GROUP + bottleneck_channels = num_groups * width_per_group + in_channels = cfg.MODEL.RESNETS.STEM_OUT_CHANNELS + out_channels = cfg.MODEL.RESNETS.RES2_OUT_CHANNELS + stride_in_1x1 = cfg.MODEL.RESNETS.STRIDE_IN_1X1 + res4_dilation = cfg.MODEL.RESNETS.RES4_DILATION + res5_dilation = cfg.MODEL.RESNETS.RES5_DILATION + deform_on_per_stage = cfg.MODEL.RESNETS.DEFORM_ON_PER_STAGE + deform_modulated = cfg.MODEL.RESNETS.DEFORM_MODULATED + deform_num_groups = cfg.MODEL.RESNETS.DEFORM_NUM_GROUPS + res5_multi_grid = cfg.MODEL.RESNETS.RES5_MULTI_GRID + # fmt: on + assert res4_dilation in {1, 2}, "res4_dilation cannot be {}.".format(res4_dilation) + assert res5_dilation in {1, 2, 4}, "res5_dilation cannot be {}.".format(res5_dilation) + if res4_dilation == 2: + # Always dilate res5 if res4 is dilated. + assert res5_dilation == 4 + + num_blocks_per_stage = {50: [3, 4, 6, 3], 101: [3, 4, 23, 3], 152: [3, 8, 36, 3]}[depth] + + stages = [] + + # Avoid creating variables without gradients + # It consumes extra memory and may cause allreduce to fail + out_stage_idx = [{"res2": 2, "res3": 3, "res4": 4, "res5": 5}[f] for f in out_features] + max_stage_idx = max(out_stage_idx) + for idx, stage_idx in enumerate(range(2, max_stage_idx + 1)): + if stage_idx == 4: + dilation = res4_dilation + elif stage_idx == 5: + dilation = res5_dilation + else: + dilation = 1 + first_stride = 1 if idx == 0 or dilation > 1 else 2 + stage_kargs = { + "num_blocks": num_blocks_per_stage[idx], + "stride_per_block": [first_stride] + [1] * (num_blocks_per_stage[idx] - 1), + "in_channels": in_channels, + "out_channels": out_channels, + "norm": norm, + } + stage_kargs["bottleneck_channels"] = bottleneck_channels + stage_kargs["stride_in_1x1"] = stride_in_1x1 + stage_kargs["dilation"] = dilation + stage_kargs["num_groups"] = num_groups + if deform_on_per_stage[idx]: + stage_kargs["block_class"] = DeformBottleneckBlock + stage_kargs["deform_modulated"] = deform_modulated + stage_kargs["deform_num_groups"] = deform_num_groups + else: + stage_kargs["block_class"] = BottleneckBlock + if stage_idx == 5: + stage_kargs.pop("dilation") + stage_kargs["dilation_per_block"] = [dilation * mg for mg in res5_multi_grid] + blocks = ResNet.make_stage(**stage_kargs) + in_channels = out_channels + out_channels *= 2 + bottleneck_channels *= 2 + stages.append(blocks) + return ResNet(stem, stages, out_features=out_features).freeze(freeze_at) diff --git a/detectron2/projects/DeepLab/deeplab/semantic_seg.py b/detectron2/projects/DeepLab/deeplab/semantic_seg.py new file mode 100755 index 0000000..d4625c5 --- /dev/null +++ b/detectron2/projects/DeepLab/deeplab/semantic_seg.py @@ -0,0 +1,348 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import Callable, Dict, List, Optional, Tuple, Union +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.layers import ASPP, Conv2d, DepthwiseSeparableConv2d, ShapeSpec, get_norm +from detectron2.modeling import SEM_SEG_HEADS_REGISTRY + +from .loss import DeepLabCE + + +@SEM_SEG_HEADS_REGISTRY.register() +class DeepLabV3PlusHead(nn.Module): + """ + A semantic segmentation head described in :paper:`DeepLabV3+`. + """ + + @configurable + def __init__( + self, + input_shape: Dict[str, ShapeSpec], + *, + project_channels: List[int], + aspp_dilations: List[int], + aspp_dropout: float, + decoder_channels: List[int], + common_stride: int, + norm: Union[str, Callable], + train_size: Optional[Tuple], + loss_weight: float = 1.0, + loss_type: str = "cross_entropy", + ignore_value: int = -1, + num_classes: Optional[int] = None, + use_depthwise_separable_conv: bool = False, + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape: shape of the input features. They will be ordered by stride + and the last one (with largest stride) is used as the input to the + decoder (i.e. the ASPP module); the rest are low-level feature for + the intermediate levels of decoder. + project_channels (list[int]): a list of low-level feature channels. + The length should be len(in_features) - 1. + aspp_dilations (list(int)): a list of 3 dilations in ASPP. + aspp_dropout (float): apply dropout on the output of ASPP. + decoder_channels (list[int]): a list of output channels of each + decoder stage. It should have the same length as "in_features" + (each element in "in_features" corresponds to one decoder stage). + common_stride (int): output stride of decoder. + norm (str or callable): normalization for all conv layers. + train_size (tuple): (height, width) of training images. + loss_weight (float): loss weight. + loss_type (str): type of loss function, 2 opptions: + (1) "cross_entropy" is the standard cross entropy loss. + (2) "hard_pixel_mining" is the loss in DeepLab that samples + top k% hardest pixels. + ignore_value (int): category to be ignored during training. + num_classes (int): number of classes, if set to None, the decoder + will not construct a predictor. + use_depthwise_separable_conv (bool): use DepthwiseSeparableConv2d + in ASPP and decoder. + """ + super().__init__() + input_shape = sorted(input_shape.items(), key=lambda x: x[1].stride) + + # fmt: off + self.in_features = [k for k, v in input_shape] # starting from "res2" to "res5" + in_channels = [x[1].channels for x in input_shape] + in_strides = [x[1].stride for x in input_shape] + aspp_channels = decoder_channels[-1] + self.ignore_value = ignore_value + self.common_stride = common_stride # output stride + self.loss_weight = loss_weight + self.loss_type = loss_type + self.decoder_only = num_classes is None + self.use_depthwise_separable_conv = use_depthwise_separable_conv + # fmt: on + + assert ( + len(project_channels) == len(self.in_features) - 1 + ), "Expected {} project_channels, got {}".format( + len(self.in_features) - 1, len(project_channels) + ) + assert len(decoder_channels) == len( + self.in_features + ), "Expected {} decoder_channels, got {}".format( + len(self.in_features), len(decoder_channels) + ) + self.decoder = nn.ModuleDict() + + use_bias = norm == "" + for idx, in_channel in enumerate(in_channels): + decoder_stage = nn.ModuleDict() + + if idx == len(self.in_features) - 1: + # ASPP module + if train_size is not None: + train_h, train_w = train_size + encoder_stride = in_strides[-1] + if train_h % encoder_stride or train_w % encoder_stride: + raise ValueError("Crop size need to be divisible by encoder stride.") + pool_h = train_h // encoder_stride + pool_w = train_w // encoder_stride + pool_kernel_size = (pool_h, pool_w) + else: + pool_kernel_size = None + project_conv = ASPP( + in_channel, + aspp_channels, + aspp_dilations, + norm=norm, + activation=F.relu, + pool_kernel_size=pool_kernel_size, + dropout=aspp_dropout, + use_depthwise_separable_conv=use_depthwise_separable_conv, + ) + fuse_conv = None + else: + project_conv = Conv2d( + in_channel, + project_channels[idx], + kernel_size=1, + bias=use_bias, + norm=get_norm(norm, project_channels[idx]), + activation=F.relu, + ) + weight_init.c2_xavier_fill(project_conv) + if use_depthwise_separable_conv: + # We use a single 5x5 DepthwiseSeparableConv2d to replace + # 2 3x3 Conv2d since they have the same receptive field, + # proposed in :paper:`Panoptic-DeepLab`. + fuse_conv = DepthwiseSeparableConv2d( + project_channels[idx] + decoder_channels[idx + 1], + decoder_channels[idx], + kernel_size=5, + padding=2, + norm1=norm, + activation1=F.relu, + norm2=norm, + activation2=F.relu, + ) + else: + fuse_conv = nn.Sequential( + Conv2d( + project_channels[idx] + decoder_channels[idx + 1], + decoder_channels[idx], + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, decoder_channels[idx]), + activation=F.relu, + ), + Conv2d( + decoder_channels[idx], + decoder_channels[idx], + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, decoder_channels[idx]), + activation=F.relu, + ), + ) + weight_init.c2_xavier_fill(fuse_conv[0]) + weight_init.c2_xavier_fill(fuse_conv[1]) + + decoder_stage["project_conv"] = project_conv + decoder_stage["fuse_conv"] = fuse_conv + + self.decoder[self.in_features[idx]] = decoder_stage + + if not self.decoder_only: + self.predictor = Conv2d( + decoder_channels[0], num_classes, kernel_size=1, stride=1, padding=0 + ) + nn.init.normal_(self.predictor.weight, 0, 0.001) + nn.init.constant_(self.predictor.bias, 0) + + if self.loss_type == "cross_entropy": + self.loss = nn.CrossEntropyLoss(reduction="mean", ignore_index=self.ignore_value) + elif self.loss_type == "hard_pixel_mining": + self.loss = DeepLabCE(ignore_label=self.ignore_value, top_k_percent_pixels=0.2) + else: + raise ValueError("Unexpected loss type: %s" % self.loss_type) + + @classmethod + def from_config(cls, cfg, input_shape): + if cfg.INPUT.CROP.ENABLED: + assert cfg.INPUT.CROP.TYPE == "absolute" + train_size = cfg.INPUT.CROP.SIZE + else: + train_size = None + decoder_channels = [cfg.MODEL.SEM_SEG_HEAD.CONVS_DIM] * ( + len(cfg.MODEL.SEM_SEG_HEAD.IN_FEATURES) - 1 + ) + [cfg.MODEL.SEM_SEG_HEAD.ASPP_CHANNELS] + ret = dict( + input_shape={ + k: v for k, v in input_shape.items() if k in cfg.MODEL.SEM_SEG_HEAD.IN_FEATURES + }, + project_channels=cfg.MODEL.SEM_SEG_HEAD.PROJECT_CHANNELS, + aspp_dilations=cfg.MODEL.SEM_SEG_HEAD.ASPP_DILATIONS, + aspp_dropout=cfg.MODEL.SEM_SEG_HEAD.ASPP_DROPOUT, + decoder_channels=decoder_channels, + common_stride=cfg.MODEL.SEM_SEG_HEAD.COMMON_STRIDE, + norm=cfg.MODEL.SEM_SEG_HEAD.NORM, + train_size=train_size, + loss_weight=cfg.MODEL.SEM_SEG_HEAD.LOSS_WEIGHT, + loss_type=cfg.MODEL.SEM_SEG_HEAD.LOSS_TYPE, + ignore_value=cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE, + num_classes=cfg.MODEL.SEM_SEG_HEAD.NUM_CLASSES, + use_depthwise_separable_conv=cfg.MODEL.SEM_SEG_HEAD.USE_DEPTHWISE_SEPARABLE_CONV, + ) + return ret + + def forward(self, features, targets=None): + """ + Returns: + In training, returns (None, dict of losses) + In inference, returns (CxHxW logits, {}) + """ + y = self.layers(features) + if self.decoder_only: + # Output from self.layers() only contains decoder feature. + return y + if self.training: + return None, self.losses(y, targets) + else: + y = F.interpolate( + y, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + return y, {} + + def layers(self, features): + # Reverse feature maps into top-down order (from low to high resolution) + for f in self.in_features[::-1]: + x = features[f] + proj_x = self.decoder[f]["project_conv"](x) + if self.decoder[f]["fuse_conv"] is None: + # This is aspp module + y = proj_x + else: + # Upsample y + y = F.interpolate(y, size=proj_x.size()[2:], mode="bilinear", align_corners=False) + y = torch.cat([proj_x, y], dim=1) + y = self.decoder[f]["fuse_conv"](y) + if not self.decoder_only: + y = self.predictor(y) + return y + + def losses(self, predictions, targets): + predictions = F.interpolate( + predictions, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + loss = self.loss(predictions, targets) + losses = {"loss_sem_seg": loss * self.loss_weight} + return losses + + +@SEM_SEG_HEADS_REGISTRY.register() +class DeepLabV3Head(nn.Module): + """ + A semantic segmentation head described in :paper:`DeepLabV3`. + """ + + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + + # fmt: off + self.in_features = cfg.MODEL.SEM_SEG_HEAD.IN_FEATURES + in_channels = [input_shape[f].channels for f in self.in_features] + aspp_channels = cfg.MODEL.SEM_SEG_HEAD.ASPP_CHANNELS + aspp_dilations = cfg.MODEL.SEM_SEG_HEAD.ASPP_DILATIONS + self.ignore_value = cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE + num_classes = cfg.MODEL.SEM_SEG_HEAD.NUM_CLASSES + conv_dims = cfg.MODEL.SEM_SEG_HEAD.CONVS_DIM + self.common_stride = cfg.MODEL.SEM_SEG_HEAD.COMMON_STRIDE # output stride + norm = cfg.MODEL.SEM_SEG_HEAD.NORM + self.loss_weight = cfg.MODEL.SEM_SEG_HEAD.LOSS_WEIGHT + self.loss_type = cfg.MODEL.SEM_SEG_HEAD.LOSS_TYPE + train_crop_size = cfg.INPUT.CROP.SIZE + aspp_dropout = cfg.MODEL.SEM_SEG_HEAD.ASPP_DROPOUT + use_depthwise_separable_conv = cfg.MODEL.SEM_SEG_HEAD.USE_DEPTHWISE_SEPARABLE_CONV + # fmt: on + + assert len(self.in_features) == 1 + assert len(in_channels) == 1 + + # ASPP module + if cfg.INPUT.CROP.ENABLED: + assert cfg.INPUT.CROP.TYPE == "absolute" + train_crop_h, train_crop_w = train_crop_size + if train_crop_h % self.common_stride or train_crop_w % self.common_stride: + raise ValueError("Crop size need to be divisible by output stride.") + pool_h = train_crop_h // self.common_stride + pool_w = train_crop_w // self.common_stride + pool_kernel_size = (pool_h, pool_w) + else: + pool_kernel_size = None + self.aspp = ASPP( + in_channels[0], + aspp_channels, + aspp_dilations, + norm=norm, + activation=F.relu, + pool_kernel_size=pool_kernel_size, + dropout=aspp_dropout, + use_depthwise_separable_conv=use_depthwise_separable_conv, + ) + + self.predictor = Conv2d(conv_dims, num_classes, kernel_size=1, stride=1, padding=0) + nn.init.normal_(self.predictor.weight, 0, 0.001) + nn.init.constant_(self.predictor.bias, 0) + + if self.loss_type == "cross_entropy": + self.loss = nn.CrossEntropyLoss(reduction="mean", ignore_index=self.ignore_value) + elif self.loss_type == "hard_pixel_mining": + self.loss = DeepLabCE(ignore_label=self.ignore_value, top_k_percent_pixels=0.2) + else: + raise ValueError("Unexpected loss type: %s" % self.loss_type) + + def forward(self, features, targets=None): + """ + Returns: + In training, returns (None, dict of losses) + In inference, returns (CxHxW logits, {}) + """ + x = features[self.in_features[0]] + x = self.aspp(x) + x = self.predictor(x) + if self.training: + return None, self.losses(x, targets) + else: + x = F.interpolate( + x, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + return x, {} + + def losses(self, predictions, targets): + predictions = F.interpolate( + predictions, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + loss = self.loss(predictions, targets) + losses = {"loss_sem_seg": loss * self.loss_weight} + return losses diff --git a/detectron2/projects/DeepLab/train_net.py b/detectron2/projects/DeepLab/train_net.py new file mode 100755 index 0000000..d3414dd --- /dev/null +++ b/detectron2/projects/DeepLab/train_net.py @@ -0,0 +1,134 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +DeepLab Training Script. + +This script is a simplified version of the training script in detectron2/tools. +""" + +import os + +import detectron2.data.transforms as T +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import DatasetMapper, MetadataCatalog, build_detection_train_loader +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch +from detectron2.evaluation import CityscapesSemSegEvaluator, DatasetEvaluators, SemSegEvaluator +from detectron2.projects.deeplab import add_deeplab_config, build_lr_scheduler + + +def build_sem_seg_train_aug(cfg): + augs = [ + T.ResizeShortestEdge( + cfg.INPUT.MIN_SIZE_TRAIN, cfg.INPUT.MAX_SIZE_TRAIN, cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING + ) + ] + if cfg.INPUT.CROP.ENABLED: + augs.append( + T.RandomCrop_CategoryAreaConstraint( + cfg.INPUT.CROP.TYPE, + cfg.INPUT.CROP.SIZE, + cfg.INPUT.CROP.SINGLE_CATEGORY_MAX_AREA, + cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE, + ) + ) + augs.append(T.RandomFlip()) + return augs + + +class Trainer(DefaultTrainer): + """ + We use the "DefaultTrainer" which contains a number pre-defined logic for + standard training workflow. They may not work for you, especially if you + are working on a new research project. In that case you can use the cleaner + "SimpleTrainer", or write your own training loop. + """ + + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type == "sem_seg": + return SemSegEvaluator( + dataset_name, + distributed=True, + output_dir=output_folder, + ) + if evaluator_type == "cityscapes_sem_seg": + return CityscapesSemSegEvaluator(dataset_name) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format( + dataset_name, evaluator_type + ) + ) + if len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + @classmethod + def build_train_loader(cls, cfg): + if "SemanticSegmentor" in cfg.MODEL.META_ARCHITECTURE: + mapper = DatasetMapper(cfg, is_train=True, augmentations=build_sem_seg_train_aug(cfg)) + else: + mapper = None + return build_detection_train_loader(cfg, mapper=mapper) + + @classmethod + def build_lr_scheduler(cls, cfg, optimizer): + """ + It now calls :func:`detectron2.solver.build_lr_scheduler`. + Overwrite it if you'd like a different scheduler. + """ + return build_lr_scheduler(cfg, optimizer) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + add_deeplab_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + return res + + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/projects/DensePose/README.md b/detectron2/projects/DensePose/README.md new file mode 100755 index 0000000..38f4f83 --- /dev/null +++ b/detectron2/projects/DensePose/README.md @@ -0,0 +1,64 @@ +# DensePose in Detectron2 + +DensePose aims at learning and establishing dense correspondences between image pixels +and 3D object geometry for deformable objects, such as humans or animals. +In this repository, we provide the code to train and evaluate DensePose R-CNN and +various tools to visualize DensePose annotations and results. + +There are two main paradigms that are used within DensePose project. + +## [Chart-based Dense Pose Estimation for Humans and Animals](doc/DENSEPOSE_IUV.md) + +
+ +
+ +For chart-based estimation, 3D object mesh is split into charts and +for each pixel the model estimates chart index `I` and local chart coordinates `(U, V)`. +Please follow the link above to find a [detailed overview](doc/DENSEPOSE_IUV.md#Overview) +of the method, links to trained models along with their performance evaluation in the +[Model Zoo](doc/DENSEPOSE_IUV.md#ModelZoo) and +[references](doc/DENSEPOSE_IUV.md#References) to the corresponding papers. + +## [Continuous Surface Embeddings for Dense Pose Estimation for Humans and Animals](doc/DENSEPOSE_CSE.md) + +
+ +
+ +To establish continuous surface embeddings, the model simultaneously learns +descriptors for mesh vertices and for image pixels. +The embeddings are put into correspondence, thus the location +of each pixel on the 3D model is derived. +Please follow the link above to find a [detailed overview](doc/DENSEPOSE_CSE.md#Overview) +of the method, links to trained models along with their performance evaluation in the +[Model Zoo](doc/DENSEPOSE_CSE.md#ModelZoo) and +[references](doc/DENSEPOSE_CSE.md#References) to the corresponding papers. + +# Quick Start + +See [ Getting Started ](doc/GETTING_STARTED.md) + +# Model Zoo + +Please check the dedicated pages +for [chart-based model zoo](doc/DENSEPOSE_IUV.md#ModelZoo) +and for [continuous surface embeddings model zoo](doc/DENSEPOSE_CSE.md#ModelZoo). + +# What's New + +* June 2021: [DensePose CSE with Cycle Losses](doc/RELEASE_2021_06.md) +* March 2021: [DensePose CSE (a framework to extend DensePose to various categories using 3D models) + and DensePose Evolution (a framework to bootstrap DensePose on unlabeled data) released](doc/RELEASE_2021_03.md) +* April 2020: [DensePose Confidence Estimation and Model Zoo Improvements](doc/RELEASE_2020_04.md) + +# License + +Detectron2 is released under the [Apache 2.0 license](../../LICENSE) + +## Citing DensePose + +If you use DensePose, please refer to the BibTeX entries +for [chart-based models](doc/DENSEPOSE_IUV.md#References) +and for [continuous surface embeddings](doc/DENSEPOSE_CSE.md#References). + diff --git a/detectron2/projects/DensePose/apply_net.py b/detectron2/projects/DensePose/apply_net.py new file mode 100755 index 0000000..6d3a51e --- /dev/null +++ b/detectron2/projects/DensePose/apply_net.py @@ -0,0 +1,353 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +import argparse +import glob +import logging +import os +import sys +from typing import Any, ClassVar, Dict, List +import torch + +from detectron2.config import CfgNode, get_cfg +from detectron2.data.detection_utils import read_image +from detectron2.engine.defaults import DefaultPredictor +from detectron2.structures.instances import Instances +from detectron2.utils.logger import setup_logger + +from densepose import add_densepose_config +from densepose.structures import DensePoseChartPredictorOutput, DensePoseEmbeddingPredictorOutput +from densepose.utils.logger import verbosity_to_level +from densepose.vis.base import CompoundVisualizer +from densepose.vis.bounding_box import ScoredBoundingBoxVisualizer +from densepose.vis.densepose_outputs_vertex import ( + DensePoseOutputsTextureVisualizer, + DensePoseOutputsVertexVisualizer, + get_texture_atlases, +) +from densepose.vis.densepose_results import ( + DensePoseResultsContourVisualizer, + DensePoseResultsFineSegmentationVisualizer, + DensePoseResultsUVisualizer, + DensePoseResultsVVisualizer, +) +from densepose.vis.densepose_results_textures import ( + DensePoseResultsVisualizerWithTexture, + get_texture_atlas, +) +from densepose.vis.extractor import ( + CompoundExtractor, + DensePoseOutputsExtractor, + DensePoseResultExtractor, + create_extractor, +) + +DOC = """Apply Net - a tool to print / visualize DensePose results +""" + +LOGGER_NAME = "apply_net" +logger = logging.getLogger(LOGGER_NAME) + +_ACTION_REGISTRY: Dict[str, "Action"] = {} + + +class Action(object): + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + parser.add_argument( + "-v", + "--verbosity", + action="count", + help="Verbose mode. Multiple -v options increase the verbosity.", + ) + + +def register_action(cls: type): + """ + Decorator for action classes to automate action registration + """ + global _ACTION_REGISTRY + _ACTION_REGISTRY[cls.COMMAND] = cls + return cls + + +class InferenceAction(Action): + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + super(InferenceAction, cls).add_arguments(parser) + parser.add_argument("cfg", metavar="", help="Config file") + parser.add_argument("model", metavar="", help="Model file") + parser.add_argument("input", metavar="", help="Input data") + parser.add_argument( + "--opts", + help="Modify config options using the command-line 'KEY VALUE' pairs", + default=[], + nargs=argparse.REMAINDER, + ) + + @classmethod + def execute(cls: type, args: argparse.Namespace): + logger.info(f"Loading config from {args.cfg}") + opts = [] + cfg = cls.setup_config(args.cfg, args.model, args, opts) + logger.info(f"Loading model from {args.model}") + predictor = DefaultPredictor(cfg) + logger.info(f"Loading data from {args.input}") + file_list = cls._get_input_file_list(args.input) + if len(file_list) == 0: + logger.warning(f"No input images for {args.input}") + return + context = cls.create_context(args, cfg) + for file_name in file_list: + img = read_image(file_name, format="BGR") # predictor expects BGR image. + with torch.no_grad(): + outputs = predictor(img)["instances"] + cls.execute_on_outputs(context, {"file_name": file_name, "image": img}, outputs) + cls.postexecute(context) + + @classmethod + def setup_config( + cls: type, config_fpath: str, model_fpath: str, args: argparse.Namespace, opts: List[str] + ): + cfg = get_cfg() + add_densepose_config(cfg) + cfg.merge_from_file(config_fpath) + cfg.merge_from_list(args.opts) + if opts: + cfg.merge_from_list(opts) + cfg.MODEL.WEIGHTS = model_fpath + cfg.freeze() + return cfg + + @classmethod + def _get_input_file_list(cls: type, input_spec: str): + if os.path.isdir(input_spec): + file_list = [ + os.path.join(input_spec, fname) + for fname in os.listdir(input_spec) + if os.path.isfile(os.path.join(input_spec, fname)) + ] + elif os.path.isfile(input_spec): + file_list = [input_spec] + else: + file_list = glob.glob(input_spec) + return file_list + + +@register_action +class DumpAction(InferenceAction): + """ + Dump action that outputs results to a pickle file + """ + + COMMAND: ClassVar[str] = "dump" + + @classmethod + def add_parser(cls: type, subparsers: argparse._SubParsersAction): + parser = subparsers.add_parser(cls.COMMAND, help="Dump model outputs to a file.") + cls.add_arguments(parser) + parser.set_defaults(func=cls.execute) + + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + super(DumpAction, cls).add_arguments(parser) + parser.add_argument( + "--output", + metavar="", + default="results.pkl", + help="File name to save dump to", + ) + + @classmethod + def execute_on_outputs( + cls: type, context: Dict[str, Any], entry: Dict[str, Any], outputs: Instances + ): + image_fpath = entry["file_name"] + logger.info(f"Processing {image_fpath}") + result = {"file_name": image_fpath} + if outputs.has("scores"): + result["scores"] = outputs.get("scores").cpu() + if outputs.has("pred_boxes"): + result["pred_boxes_XYXY"] = outputs.get("pred_boxes").tensor.cpu() + if outputs.has("pred_densepose"): + if isinstance(outputs.pred_densepose, DensePoseChartPredictorOutput): + extractor = DensePoseResultExtractor() + elif isinstance(outputs.pred_densepose, DensePoseEmbeddingPredictorOutput): + extractor = DensePoseOutputsExtractor() + result["pred_densepose"] = extractor(outputs)[0] + context["results"].append(result) + + @classmethod + def create_context(cls: type, args: argparse.Namespace, cfg: CfgNode): + context = {"results": [], "out_fname": args.output} + return context + + @classmethod + def postexecute(cls: type, context: Dict[str, Any]): + out_fname = context["out_fname"] + out_dir = os.path.dirname(out_fname) + if len(out_dir) > 0 and not os.path.exists(out_dir): + os.makedirs(out_dir) + with open(out_fname, "wb") as hFile: + torch.save(context["results"], hFile) + logger.info(f"Output saved to {out_fname}") + + +@register_action +class ShowAction(InferenceAction): + """ + Show action that visualizes selected entries on an image + """ + + COMMAND: ClassVar[str] = "show" + VISUALIZERS: ClassVar[Dict[str, object]] = { + "dp_contour": DensePoseResultsContourVisualizer, + "dp_segm": DensePoseResultsFineSegmentationVisualizer, + "dp_u": DensePoseResultsUVisualizer, + "dp_v": DensePoseResultsVVisualizer, + "dp_iuv_texture": DensePoseResultsVisualizerWithTexture, + "dp_cse_texture": DensePoseOutputsTextureVisualizer, + "dp_vertex": DensePoseOutputsVertexVisualizer, + "bbox": ScoredBoundingBoxVisualizer, + } + + @classmethod + def add_parser(cls: type, subparsers: argparse._SubParsersAction): + parser = subparsers.add_parser(cls.COMMAND, help="Visualize selected entries") + cls.add_arguments(parser) + parser.set_defaults(func=cls.execute) + + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + super(ShowAction, cls).add_arguments(parser) + parser.add_argument( + "visualizations", + metavar="", + help="Comma separated list of visualizations, possible values: " + "[{}]".format(",".join(sorted(cls.VISUALIZERS.keys()))), + ) + parser.add_argument( + "--min_score", + metavar="", + default=0.8, + type=float, + help="Minimum detection score to visualize", + ) + parser.add_argument( + "--nms_thresh", metavar="", default=None, type=float, help="NMS threshold" + ) + parser.add_argument( + "--texture_atlas", + metavar="", + default=None, + help="Texture atlas file (for IUV texture transfer)", + ) + parser.add_argument( + "--texture_atlases_map", + metavar="", + default=None, + help="JSON string of a dict containing texture atlas files for each mesh", + ) + parser.add_argument( + "--output", + metavar="", + default="outputres.png", + help="File name to save output to", + ) + + @classmethod + def setup_config( + cls: type, config_fpath: str, model_fpath: str, args: argparse.Namespace, opts: List[str] + ): + opts.append("MODEL.ROI_HEADS.SCORE_THRESH_TEST") + opts.append(str(args.min_score)) + if args.nms_thresh is not None: + opts.append("MODEL.ROI_HEADS.NMS_THRESH_TEST") + opts.append(str(args.nms_thresh)) + cfg = super(ShowAction, cls).setup_config(config_fpath, model_fpath, args, opts) + return cfg + + @classmethod + def execute_on_outputs( + cls: type, context: Dict[str, Any], entry: Dict[str, Any], outputs: Instances + ): + import cv2 + import numpy as np + + visualizer = context["visualizer"] + extractor = context["extractor"] + image_fpath = entry["file_name"] + logger.info(f"Processing {image_fpath}") + image = cv2.cvtColor(entry["image"], cv2.COLOR_BGR2GRAY) + image = np.tile(image[:, :, np.newaxis], [1, 1, 3]) + data = extractor(outputs) + image_vis = visualizer.visualize(image, data) + entry_idx = context["entry_idx"] + 1 + out_fname = cls._get_out_fname(entry_idx, context["out_fname"]) + out_dir = os.path.dirname(out_fname) + if len(out_dir) > 0 and not os.path.exists(out_dir): + os.makedirs(out_dir) + cv2.imwrite(out_fname, image_vis) + logger.info(f"Output saved to {out_fname}") + context["entry_idx"] += 1 + + @classmethod + def postexecute(cls: type, context: Dict[str, Any]): + pass + + @classmethod + def _get_out_fname(cls: type, entry_idx: int, fname_base: str): + base, ext = os.path.splitext(fname_base) + return base + ".{0:04d}".format(entry_idx) + ext + + @classmethod + def create_context(cls: type, args: argparse.Namespace, cfg: CfgNode) -> Dict[str, Any]: + vis_specs = args.visualizations.split(",") + visualizers = [] + extractors = [] + for vis_spec in vis_specs: + texture_atlas = get_texture_atlas(args.texture_atlas) + texture_atlases_dict = get_texture_atlases(args.texture_atlases_map) + vis = cls.VISUALIZERS[vis_spec]( + cfg=cfg, + texture_atlas=texture_atlas, + texture_atlases_dict=texture_atlases_dict, + ) + visualizers.append(vis) + extractor = create_extractor(vis) + extractors.append(extractor) + visualizer = CompoundVisualizer(visualizers) + extractor = CompoundExtractor(extractors) + context = { + "extractor": extractor, + "visualizer": visualizer, + "out_fname": args.output, + "entry_idx": 0, + } + return context + + +def create_argument_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + description=DOC, + formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=120), + ) + parser.set_defaults(func=lambda _: parser.print_help(sys.stdout)) + subparsers = parser.add_subparsers(title="Actions") + for _, action in _ACTION_REGISTRY.items(): + action.add_parser(subparsers) + return parser + + +def main(): + parser = create_argument_parser() + args = parser.parse_args() + verbosity = args.verbosity if hasattr(args, "verbosity") else None + global logger + logger = setup_logger(name=LOGGER_NAME) + logger.setLevel(verbosity_to_level(verbosity)) + args.func(args) + + +if __name__ == "__main__": + main() diff --git a/detectron2/projects/DensePose/configs/Base-DensePose-RCNN-FPN.yaml b/detectron2/projects/DensePose/configs/Base-DensePose-RCNN-FPN.yaml new file mode 100755 index 0000000..1579187 --- /dev/null +++ b/detectron2/projects/DensePose/configs/Base-DensePose-RCNN-FPN.yaml @@ -0,0 +1,48 @@ +VERSION: 2 +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map + ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) + RPN: + IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] + PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level + PRE_NMS_TOPK_TEST: 1000 # Per FPN level + # Detectron1 uses 2000 proposals per-batch, + # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) + # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. + POST_NMS_TOPK_TRAIN: 1000 + POST_NMS_TOPK_TEST: 1000 + + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_FC: 2 + POOLER_RESOLUTION: 7 + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 +DATASETS: + TRAIN: ("densepose_coco_2014_train", "densepose_coco_2014_valminusminival") + TEST: ("densepose_coco_2014_minival",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 + STEPS: (60000, 80000) + MAX_ITER: 90000 + WARMUP_FACTOR: 0.1 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) diff --git a/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yaml b/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yaml new file mode 100755 index 0000000..36eabfe --- /dev/null +++ b/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33dYBMemi9xOUFR0w" + BACKBONE: + NAME: "build_hrfpn_backbone" + RPN: + IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] + ROI_HEADS: + IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) + CLIP_GRADIENTS: + ENABLED: True + CLIP_TYPE: "norm" + BASE_LR: 0.03 diff --git a/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yaml b/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yaml new file mode 100755 index 0000000..0ca8085 --- /dev/null +++ b/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w40_s1x.yaml @@ -0,0 +1,23 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33ck0gvo5jfoWBOPo" + BACKBONE: + NAME: "build_hrfpn_backbone" + RPN: + IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] + ROI_HEADS: + IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] + HRNET: + STAGE2: + NUM_CHANNELS: [40, 80] + STAGE3: + NUM_CHANNELS: [40, 80, 160] + STAGE4: + NUM_CHANNELS: [40, 80, 160, 320] +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) + CLIP_GRADIENTS: + ENABLED: True + CLIP_TYPE: "norm" + BASE_LR: 0.03 diff --git a/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yaml b/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yaml new file mode 100755 index 0000000..a3f437a --- /dev/null +++ b/detectron2/projects/DensePose/configs/HRNet/densepose_rcnn_HRFPN_HRNet_w48_s1x.yaml @@ -0,0 +1,23 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://1drv.ms/u/s!Aus8VCZ_C_33dKvqI6pBZlifgJk" + BACKBONE: + NAME: "build_hrfpn_backbone" + RPN: + IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] + ROI_HEADS: + IN_FEATURES: ['p1', 'p2', 'p3', 'p4', 'p5'] + HRNET: + STAGE2: + NUM_CHANNELS: [48, 96] + STAGE3: + NUM_CHANNELS: [48, 96, 192] + STAGE4: + NUM_CHANNELS: [48, 96, 192, 384] +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) + CLIP_GRADIENTS: + ENABLED: True + CLIP_TYPE: "norm" + BASE_LR: 0.03 diff --git a/detectron2/projects/DensePose/configs/cse/Base-DensePose-RCNN-FPN-Human.yaml b/detectron2/projects/DensePose/configs/cse/Base-DensePose-RCNN-FPN-Human.yaml new file mode 100755 index 0000000..e92340e --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/Base-DensePose-RCNN-FPN-Human.yaml @@ -0,0 +1,20 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + ROI_DENSEPOSE_HEAD: + CSE: + EMBEDDERS: + "smpl_27554": + TYPE: vertex_feature + NUM_VERTICES: 27554 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_smpl_27554_256.pkl" +DATASETS: + TRAIN: + - "densepose_coco_2014_train_cse" + - "densepose_coco_2014_valminusminival_cse" + TEST: + - "densepose_coco_2014_minival_cse" + CLASS_TO_MESH_NAME_MAPPING: + "0": "smpl_27554" diff --git a/detectron2/projects/DensePose/configs/cse/Base-DensePose-RCNN-FPN.yaml b/detectron2/projects/DensePose/configs/cse/Base-DensePose-RCNN-FPN.yaml new file mode 100755 index 0000000..de3b260 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/Base-DensePose-RCNN-FPN.yaml @@ -0,0 +1,60 @@ +VERSION: 2 +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map + ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) + RPN: + IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] + PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level + PRE_NMS_TOPK_TEST: 1000 # Per FPN level + # Detectron1 uses 2000 proposals per-batch, + # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) + # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. + POST_NMS_TOPK_TRAIN: 1000 + POST_NMS_TOPK_TEST: 1000 + + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_FC: 2 + POOLER_RESOLUTION: 7 + POOLER_SAMPLING_RATIO: 2 + POOLER_TYPE: "ROIAlign" + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 + PREDICTOR_NAME: "DensePoseEmbeddingPredictor" + LOSS_NAME: "DensePoseCseLoss" + CSE: + # embedding loss, possible values: + # - "EmbeddingLoss" + # - "SoftEmbeddingLoss" + EMBED_LOSS_NAME: "EmbeddingLoss" +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.01 + STEPS: (60000, 80000) + MAX_ITER: 90000 + WARMUP_FACTOR: 0.1 + CLIP_GRADIENTS: + CLIP_TYPE: norm + CLIP_VALUE: 1.0 + ENABLED: true + NORM_TYPE: 2.0 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +DENSEPOSE_EVALUATION: + TYPE: cse + STORAGE: file diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yaml new file mode 100755 index 0000000..69d8589 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_DL_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + CSE: + EMBED_LOSS_NAME: "EmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yaml new file mode 100755 index 0000000..141657c --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_DL_soft_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_s1x.yaml new file mode 100755 index 0000000..d2eea1e --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + CSE: + EMBED_LOSS_NAME: "EmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yaml new file mode 100755 index 0000000..1c362e1 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_101_FPN_soft_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yaml new file mode 100755 index 0000000..26684de --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_DL_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + CSE: + EMBED_LOSS_NAME: "EmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yaml new file mode 100755 index 0000000..b53501d --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_DL_soft_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml new file mode 100755 index 0000000..c186625 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + CSE: + EMBED_LOSS_NAME: "EmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yaml new file mode 100755 index 0000000..69ab226 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_16k.yaml @@ -0,0 +1,133 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" + "dog_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds2_train_v1" + TEST: + - "densepose_lvis_v1_ds2_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds2_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds2_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CATEGORY_MAPS: + "densepose_lvis_v1_ds2_train_v1": + "1202": 943 # zebra -> sheep + "569": 943 # horse -> sheep + "496": 943 # giraffe -> sheep + "422": 943 # elephant -> sheep + "80": 943 # cow -> sheep + "76": 943 # bear -> sheep + "225": 943 # cat -> sheep + "378": 943 # dog -> sheep + "densepose_lvis_v1_ds2_val_v1": + "1202": 943 # zebra -> sheep + "569": 943 # horse -> sheep + "496": 943 # giraffe -> sheep + "422": 943 # elephant -> sheep + "80": 943 # cow -> sheep + "76": 943 # bear -> sheep + "225": 943 # cat -> sheep + "378": 943 # dog -> sheep + CLASS_TO_MESH_NAME_MAPPING: + # Note: different classes are mapped to a single class + # mesh is chosen based on GT data, so this is just some + # value which has no particular meaning + "0": "sheep_5004" +SOLVER: + MAX_ITER: 16000 + STEPS: (12000, 14000) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yaml new file mode 100755 index 0000000..921a9c1 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_CA_finetune_4k.yaml @@ -0,0 +1,133 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_5001": + TYPE: vertex_feature + NUM_VERTICES: 5001 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl" + "dog_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds1_train_v1" + TEST: + - "densepose_lvis_v1_ds1_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds1_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds1_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CATEGORY_MAPS: + "densepose_lvis_v1_ds1_train_v1": + "1202": 943 # zebra -> sheep + "569": 943 # horse -> sheep + "496": 943 # giraffe -> sheep + "422": 943 # elephant -> sheep + "80": 943 # cow -> sheep + "76": 943 # bear -> sheep + "225": 943 # cat -> sheep + "378": 943 # dog -> sheep + "densepose_lvis_v1_ds1_val_v1": + "1202": 943 # zebra -> sheep + "569": 943 # horse -> sheep + "496": 943 # giraffe -> sheep + "422": 943 # elephant -> sheep + "80": 943 # cow -> sheep + "76": 943 # bear -> sheep + "225": 943 # cat -> sheep + "378": 943 # dog -> sheep + CLASS_TO_MESH_NAME_MAPPING: + # Note: different classes are mapped to a single class + # mesh is chosen based on GT data, so this is just some + # value which has no particular meaning + "0": "sheep_5004" +SOLVER: + MAX_ITER: 4000 + STEPS: (3000, 3500) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yaml new file mode 100755 index 0000000..1b5a098 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_16k.yaml @@ -0,0 +1,119 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/270668502/model_final_21b1d2.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" + "dog_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds2_train_v1" + TEST: + - "densepose_lvis_v1_ds2_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds2_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds2_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_7466" + "3": "dog_7466" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 16000 + STEPS: (12000, 14000) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yaml new file mode 100755 index 0000000..18d6dac --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_i2m_16k.yaml @@ -0,0 +1,121 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/270668502/model_final_21b1d2.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + PIX_TO_SHAPE_CYCLE_LOSS: + ENABLED: True + EMBEDDERS: + "cat_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" + "dog_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds2_train_v1" + TEST: + - "densepose_lvis_v1_ds2_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds2_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds2_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_7466" + "3": "dog_7466" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 16000 + STEPS: (12000, 14000) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yaml new file mode 100755 index 0000000..6b798ae --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_I0_finetune_m2m_16k.yaml @@ -0,0 +1,138 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k/267687159/model_final_354e61.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + SHAPE_TO_SHAPE_CYCLE_LOSS: + ENABLED: True + EMBEDDERS: + "cat_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" + "dog_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" + "smpl_27554": + TYPE: vertex_feature + NUM_VERTICES: 27554 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_smpl_27554_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds2_train_v1" + TEST: + - "densepose_lvis_v1_ds2_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds2_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds2_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_7466" + "3": "dog_7466" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 16000 + STEPS: (12000, 14000) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True + MESH_ALIGNMENT_MESH_NAMES: + - bear_4936 + - cow_5002 + - cat_7466 + - dog_7466 + - elephant_5002 + - giraffe_5002 + - horse_5004 + - sheep_5004 + - zebra_5002 diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yaml new file mode 100755 index 0000000..b1462e3 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_16k.yaml @@ -0,0 +1,119 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" + "dog_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds2_train_v1" + TEST: + - "densepose_lvis_v1_ds2_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds2_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds2_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_7466" + "3": "dog_7466" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 16000 + STEPS: (12000, 14000) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yaml new file mode 100755 index 0000000..ba4b81d --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_4k.yaml @@ -0,0 +1,119 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_5001": + TYPE: vertex_feature + NUM_VERTICES: 5001 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl" + "dog_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds1_train_v1" + TEST: + - "densepose_lvis_v1_ds1_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds1_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds1_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_5001" + "3": "dog_5002" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 4000 + STEPS: (3000, 3500) +DENSEPOSE_EVALUATION: + EVALUATE_MESH_ALIGNMENT: True diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yaml new file mode 100755 index 0000000..bb6136e --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_maskonly_24k.yaml @@ -0,0 +1,118 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + COARSE_SEGM_TRAINED_BY_MASKS: True + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBED_LOSS_WEIGHT: 0.0 + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_7466_256.pkl" + "dog_7466": + TYPE: vertex_feature + NUM_VERTICES: 7466 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_7466_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_ds2_train_v1" + TEST: + - "densepose_lvis_v1_ds2_val_v1" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_ds2_train_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_ds2_val_v1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_7466" + "3": "dog_7466" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 24000 + STEPS: (20000, 22000) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yaml new file mode 100755 index 0000000..3bccb78 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_chimps_finetune_4k.yaml @@ -0,0 +1,29 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_soft_s1x/250533982/model_final_2c4512.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + GEODESIC_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "chimp_5029": + TYPE: vertex_feature + NUM_VERTICES: 5029 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_chimp_5029_256.pkl" +DATASETS: + TRAIN: + - "densepose_chimps_cse_train" + TEST: + - "densepose_chimps_cse_val" + CLASS_TO_MESH_NAME_MAPPING: + "0": "chimp_5029" +SOLVER: + MAX_ITER: 4000 + STEPS: (3000, 3500) diff --git a/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yaml b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yaml new file mode 100755 index 0000000..9662fb8 --- /dev/null +++ b/detectron2/projects/DensePose/configs/cse/densepose_rcnn_R_50_FPN_soft_s1x.yaml @@ -0,0 +1,12 @@ +_BASE_: "Base-DensePose-RCNN-FPN-Human.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yaml new file mode 100755 index 0000000..3c16763 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yaml new file mode 100755 index 0000000..15475b1 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC1_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yaml new file mode 100755 index 0000000..0cbe07f --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yaml new file mode 100755 index 0000000..7546b96 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_WC2_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_s1x.yaml new file mode 100755 index 0000000..045f7f0 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_DL_s1x.yaml @@ -0,0 +1,10 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yaml new file mode 100755 index 0000000..9334e18 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1_s1x.yaml new file mode 100755 index 0000000..ace6209 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC1_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yaml new file mode 100755 index 0000000..90f0be2 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2_s1x.yaml new file mode 100755 index 0000000..766c098 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_WC2_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x.yaml new file mode 100755 index 0000000..af44fb7 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x_legacy.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x_legacy.yaml new file mode 100755 index 0000000..8e79a1b --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_101_FPN_s1x_legacy.yaml @@ -0,0 +1,17 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + RESNETS: + DEPTH: 101 + ROI_DENSEPOSE_HEAD: + NUM_COARSE_SEGM_CHANNELS: 15 + POOLER_RESOLUTION: 14 + HEATMAP_SIZE: 56 + INDEX_WEIGHTS: 2.0 + PART_WEIGHTS: 0.3 + POINT_REGRESSION_WEIGHTS: 0.1 + DECODER_ON: False +SOLVER: + BASE_LR: 0.002 + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yaml new file mode 100755 index 0000000..18a417a --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yaml new file mode 100755 index 0000000..f3720ef --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC1_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yaml new file mode 100755 index 0000000..8a413d2 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yaml new file mode 100755 index 0000000..5a47cc0 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_WC2_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_s1x.yaml new file mode 100755 index 0000000..52a170b --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_DL_s1x.yaml @@ -0,0 +1,10 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC1M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC1M_s1x.yaml new file mode 100755 index 0000000..8a81f2a --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC1M_s1x.yaml @@ -0,0 +1,20 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + CLIP_TYPE: norm + CLIP_VALUE: 100.0 + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC1_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC1_s1x.yaml new file mode 100755 index 0000000..d36e542 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC1_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC2M_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC2M_s1x.yaml new file mode 100755 index 0000000..5cf29ea --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC2M_s1x.yaml @@ -0,0 +1,18 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC2_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC2_s1x.yaml new file mode 100755 index 0000000..e880d46 --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_WC2_s1x.yaml @@ -0,0 +1,16 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + POINT_REGRESSION_WEIGHTS: 0.0005 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 130000 + STEPS: (100000, 120000) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x.yaml new file mode 100755 index 0000000..d2dd14c --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x_legacy.yaml b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x_legacy.yaml new file mode 100755 index 0000000..6c5391f --- /dev/null +++ b/detectron2/projects/DensePose/configs/densepose_rcnn_R_50_FPN_s1x_legacy.yaml @@ -0,0 +1,17 @@ +_BASE_: "Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + NUM_COARSE_SEGM_CHANNELS: 15 + POOLER_RESOLUTION: 14 + HEATMAP_SIZE: 56 + INDEX_WEIGHTS: 2.0 + PART_WEIGHTS: 0.3 + POINT_REGRESSION_WEIGHTS: 0.1 + DECODER_ON: False +SOLVER: + BASE_LR: 0.002 + MAX_ITER: 130000 + STEPS: (100000, 120000) diff --git a/detectron2/projects/DensePose/configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml b/detectron2/projects/DensePose/configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml new file mode 100755 index 0000000..f09d723 --- /dev/null +++ b/detectron2/projects/DensePose/configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml @@ -0,0 +1,91 @@ +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + BACKBONE: + NAME: "build_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: [[32], [64], [128], [256], [512]] # One size for each in feature map + ASPECT_RATIOS: [[0.5, 1.0, 2.0]] # Three aspect ratios (same for all in feature maps) + RPN: + IN_FEATURES: ["p2", "p3", "p4", "p5", "p6"] + PRE_NMS_TOPK_TRAIN: 2000 # Per FPN level + PRE_NMS_TOPK_TEST: 1000 # Per FPN level + # Detectron1 uses 2000 proposals per-batch, + # (See "modeling/rpn/rpn_outputs.py" for details of this legacy issue) + # which is approximately 1000 proposals per-image since the default batch size for FPN is 2. + POST_NMS_TOPK_TRAIN: 1000 + POST_NMS_TOPK_TEST: 1000 + ROI_HEADS: + NAME: "StandardROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_BOX_HEAD: + NAME: "FastRCNNConvFCHead" + NUM_FC: 2 + POOLER_RESOLUTION: 7 + ROI_MASK_HEAD: + NAME: "MaskRCNNConvUpsampleHead" + NUM_CONV: 4 + POOLER_RESOLUTION: 14 +DATASETS: + TRAIN: ("base_coco_2017_train", "densepose_coco_2014_train") + TEST: ("densepose_chimps",) + CATEGORY_MAPS: + "base_coco_2017_train": + "16": 1 # bird -> person + "17": 1 # cat -> person + "18": 1 # dog -> person + "19": 1 # horse -> person + "20": 1 # sheep -> person + "21": 1 # cow -> person + "22": 1 # elephant -> person + "23": 1 # bear -> person + "24": 1 # zebra -> person + "25": 1 # girafe -> person + "base_coco_2017_val": + "16": 1 # bird -> person + "17": 1 # cat -> person + "18": 1 # dog -> person + "19": 1 # horse -> person + "20": 1 # sheep -> person + "21": 1 # cow -> person + "22": 1 # elephant -> person + "23": 1 # bear -> person + "24": 1 # zebra -> person + "25": 1 # girafe -> person + WHITELISTED_CATEGORIES: + "base_coco_2017_train": + - 1 # person + - 16 # bird + - 17 # cat + - 18 # dog + - 19 # horse + - 20 # sheep + - 21 # cow + - 22 # elephant + - 23 # bear + - 24 # zebra + - 25 # girafe + "base_coco_2017_val": + - 1 # person + - 16 # bird + - 17 # cat + - 18 # dog + - 19 # horse + - 20 # sheep + - 21 # cow + - 22 # elephant + - 23 # bear + - 24 # zebra + - 25 # girafe +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA.yaml b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA.yaml new file mode 100755 index 0000000..6296692 --- /dev/null +++ b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA.yaml @@ -0,0 +1,28 @@ +_BASE_: "Base-RCNN-FPN-Atop10P_CA.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 + COARSE_SEGM_TRAINED_BY_MASKS: True + INDEX_WEIGHTS: 1.0 +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + WARMUP_FACTOR: 0.025 + MAX_ITER: 270000 + STEPS: (210000, 250000) diff --git a/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_coarsesegm.yaml b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_coarsesegm.yaml new file mode 100755 index 0000000..033918e --- /dev/null +++ b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_coarsesegm.yaml @@ -0,0 +1,56 @@ +_BASE_: "Base-RCNN-FPN-Atop10P_CA.yaml" +MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl + RESNETS: + DEPTH: 50 + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 + COARSE_SEGM_TRAINED_BY_MASKS: True +BOOTSTRAP_DATASETS: + - DATASET: "chimpnsee" + RATIO: 1.0 + IMAGE_LOADER: + TYPE: "video_keyframe" + SELECT: + STRATEGY: "random_k" + NUM_IMAGES: 4 + TRANSFORM: + TYPE: "resize" + MIN_SIZE: 800 + MAX_SIZE: 1333 + BATCH_SIZE: 8 + NUM_WORKERS: 1 + INFERENCE: + INPUT_BATCH_SIZE: 1 + OUTPUT_BATCH_SIZE: 1 + DATA_SAMPLER: + # supported types: + # densepose_uniform + # densepose_UV_confidence + # densepose_fine_segm_confidence + # densepose_coarse_segm_confidence + TYPE: "densepose_coarse_segm_confidence" + COUNT_PER_CLASS: 8 + FILTER: + TYPE: "detection_score" + MIN_VALUE: 0.8 +BOOTSTRAP_MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 270000 + STEPS: (210000, 250000) diff --git a/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_finesegm.yaml b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_finesegm.yaml new file mode 100755 index 0000000..5814a4a --- /dev/null +++ b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_finesegm.yaml @@ -0,0 +1,56 @@ +_BASE_: "Base-RCNN-FPN-Atop10P_CA.yaml" +MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl + RESNETS: + DEPTH: 50 + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 + COARSE_SEGM_TRAINED_BY_MASKS: True +BOOTSTRAP_DATASETS: + - DATASET: "chimpnsee" + RATIO: 1.0 + IMAGE_LOADER: + TYPE: "video_keyframe" + SELECT: + STRATEGY: "random_k" + NUM_IMAGES: 4 + TRANSFORM: + TYPE: "resize" + MIN_SIZE: 800 + MAX_SIZE: 1333 + BATCH_SIZE: 8 + NUM_WORKERS: 1 + INFERENCE: + INPUT_BATCH_SIZE: 1 + OUTPUT_BATCH_SIZE: 1 + DATA_SAMPLER: + # supported types: + # densepose_uniform + # densepose_UV_confidence + # densepose_fine_segm_confidence + # densepose_coarse_segm_confidence + TYPE: "densepose_fine_segm_confidence" + COUNT_PER_CLASS: 8 + FILTER: + TYPE: "detection_score" + MIN_VALUE: 0.8 +BOOTSTRAP_MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 270000 + STEPS: (210000, 250000) diff --git a/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uniform.yaml b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uniform.yaml new file mode 100755 index 0000000..d591ea6 --- /dev/null +++ b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uniform.yaml @@ -0,0 +1,56 @@ +_BASE_: "Base-RCNN-FPN-Atop10P_CA.yaml" +MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl + RESNETS: + DEPTH: 50 + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 + COARSE_SEGM_TRAINED_BY_MASKS: True +BOOTSTRAP_DATASETS: + - DATASET: "chimpnsee" + RATIO: 1.0 + IMAGE_LOADER: + TYPE: "video_keyframe" + SELECT: + STRATEGY: "random_k" + NUM_IMAGES: 4 + TRANSFORM: + TYPE: "resize" + MIN_SIZE: 800 + MAX_SIZE: 1333 + BATCH_SIZE: 8 + NUM_WORKERS: 1 + INFERENCE: + INPUT_BATCH_SIZE: 1 + OUTPUT_BATCH_SIZE: 1 + DATA_SAMPLER: + # supported types: + # densepose_uniform + # densepose_UV_confidence + # densepose_fine_segm_confidence + # densepose_coarse_segm_confidence + TYPE: "densepose_uniform" + COUNT_PER_CLASS: 8 + FILTER: + TYPE: "detection_score" + MIN_VALUE: 0.8 +BOOTSTRAP_MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 270000 + STEPS: (210000, 250000) diff --git a/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uv.yaml b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uv.yaml new file mode 100755 index 0000000..110acff --- /dev/null +++ b/detectron2/projects/DensePose/configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uv.yaml @@ -0,0 +1,56 @@ +_BASE_: "Base-RCNN-FPN-Atop10P_CA.yaml" +MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl + RESNETS: + DEPTH: 50 + DENSEPOSE_ON: True + ROI_HEADS: + NAME: "DensePoseROIHeads" + IN_FEATURES: ["p2", "p3", "p4", "p5"] + NUM_CLASSES: 1 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + SEGM_CONFIDENCE: + ENABLED: True + POINT_REGRESSION_WEIGHTS: 0.0005 + POOLER_TYPE: "ROIAlign" + NUM_COARSE_SEGM_CHANNELS: 2 + COARSE_SEGM_TRAINED_BY_MASKS: True +BOOTSTRAP_DATASETS: + - DATASET: "chimpnsee" + RATIO: 1.0 + IMAGE_LOADER: + TYPE: "video_keyframe" + SELECT: + STRATEGY: "random_k" + NUM_IMAGES: 4 + TRANSFORM: + TYPE: "resize" + MIN_SIZE: 800 + MAX_SIZE: 1333 + BATCH_SIZE: 8 + NUM_WORKERS: 1 + INFERENCE: + INPUT_BATCH_SIZE: 1 + OUTPUT_BATCH_SIZE: 1 + DATA_SAMPLER: + # supported types: + # densepose_uniform + # densepose_UV_confidence + # densepose_fine_segm_confidence + # densepose_coarse_segm_confidence + TYPE: "densepose_UV_confidence" + COUNT_PER_CLASS: 8 + FILTER: + TYPE: "detection_score" + MIN_VALUE: 0.8 +BOOTSTRAP_MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 270000 + STEPS: (210000, 250000) diff --git a/detectron2/projects/DensePose/configs/quick_schedules/cse/densepose_rcnn_R_50_FPN_DL_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/cse/densepose_rcnn_R_50_FPN_DL_instant_test.yaml new file mode 100755 index 0000000..3b43f75 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/cse/densepose_rcnn_R_50_FPN_DL_instant_test.yaml @@ -0,0 +1,11 @@ +_BASE_: "../../cse/Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" +DATASETS: + TRAIN: ("densepose_coco_2014_minival_100_cse",) + TEST: ("densepose_coco_2014_minival_100_cse",) +SOLVER: + MAX_ITER: 40 + STEPS: (30,) diff --git a/detectron2/projects/DensePose/configs/quick_schedules/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_instant_test.yaml new file mode 100755 index 0000000..a2c49a2 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/cse/densepose_rcnn_R_50_FPN_soft_animals_finetune_instant_test.yaml @@ -0,0 +1,126 @@ +_BASE_: "../../cse/Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 9 + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseV1ConvXHead" + CSE: + EMBED_LOSS_NAME: "SoftEmbeddingLoss" + EMBEDDING_DIST_GAUSS_SIGMA: 0.1 + EMBEDDERS: + "cat_5001": + TYPE: vertex_feature + NUM_VERTICES: 5001 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cat_5001_256.pkl" + "dog_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_dog_5002_256.pkl" + "sheep_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_sheep_5004_256.pkl" + "horse_5004": + TYPE: vertex_feature + NUM_VERTICES: 5004 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_horse_5004_256.pkl" + "zebra_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_zebra_5002_256.pkl" + "giraffe_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_giraffe_5002_256.pkl" + "elephant_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_elephant_5002_256.pkl" + "cow_5002": + TYPE: vertex_feature + NUM_VERTICES: 5002 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_cow_5002_256.pkl" + "bear_4936": + TYPE: vertex_feature + NUM_VERTICES: 4936 + FEATURE_DIM: 256 + FEATURES_TRAINABLE: False + IS_TRAINABLE: True + INIT_FILE: "https://dl.fbaipublicfiles.com/densepose/data/cse/lbo/phi_bear_4936_256.pkl" +DATASETS: + TRAIN: + - "densepose_lvis_v1_train1" + - "densepose_lvis_v1_train2" + TEST: + - "densepose_lvis_v1_val_animals_100" + WHITELISTED_CATEGORIES: + "densepose_lvis_v1_train1": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_train2": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + "densepose_lvis_v1_val_animals_100": + - 943 # sheep + - 1202 # zebra + - 569 # horse + - 496 # giraffe + - 422 # elephant + - 80 # cow + - 76 # bear + - 225 # cat + - 378 # dog + CLASS_TO_MESH_NAME_MAPPING: + "0": "bear_4936" + "1": "cow_5002" + "2": "cat_5001" + "3": "dog_5002" + "4": "elephant_5002" + "5": "giraffe_5002" + "6": "horse_5004" + "7": "sheep_5004" + "8": "zebra_5002" +SOLVER: + MAX_ITER: 40 + STEPS: (30,) diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_HRFPN_HRNet_w32_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_HRFPN_HRNet_w32_instant_test.yaml new file mode 100755 index 0000000..95677ce --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_HRFPN_HRNet_w32_instant_test.yaml @@ -0,0 +1,8 @@ +_BASE_: "../HRNet/densepose_rcnn_HRFPN_HRNet_w32_s1x.yaml" +DATASETS: + TRAIN: ("densepose_coco_2014_minival_100",) + TEST: ("densepose_coco_2014_minival_100",) +SOLVER: + MAX_ITER: 40 + STEPS: (30,) + IMS_PER_BATCH: 2 diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_DL_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_DL_instant_test.yaml new file mode 100755 index 0000000..b90989e --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_DL_instant_test.yaml @@ -0,0 +1,11 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + ROI_DENSEPOSE_HEAD: + NAME: "DensePoseDeepLabHead" +DATASETS: + TRAIN: ("densepose_coco_2014_minival_100",) + TEST: ("densepose_coco_2014_minival_100",) +SOLVER: + MAX_ITER: 40 + STEPS: (30,) diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_TTA_inference_acc_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_TTA_inference_acc_test.yaml new file mode 100755 index 0000000..b124da1 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_TTA_inference_acc_test.yaml @@ -0,0 +1,13 @@ +_BASE_: "../densepose_rcnn_R_50_FPN_s1x.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl" +DATASETS: + TRAIN: () + TEST: ("densepose_coco_2014_minival_100",) +TEST: + AUG: + ENABLED: True + MIN_SIZES: (400, 500, 600, 700, 800, 900, 1000, 1100, 1200) + MAX_SIZE: 4000 + FLIP: True + EXPECTED_RESULTS: [["bbox_TTA", "AP", 61.74, 0.03], ["densepose_gps_TTA", "AP", 60.22, 0.03], ["densepose_gpsm_TTA", "AP", 63.59, 0.03]] diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_WC1_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_WC1_instant_test.yaml new file mode 100755 index 0000000..f0fe611 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_WC1_instant_test.yaml @@ -0,0 +1,19 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "iid_iso" + POINT_REGRESSION_WEIGHTS: 0.0005 +DATASETS: + TRAIN: ("densepose_coco_2014_minival_100",) + TEST: ("densepose_coco_2014_minival_100",) +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 40 + STEPS: (30,) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_WC2_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_WC2_instant_test.yaml new file mode 100755 index 0000000..f0d9358 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_WC2_instant_test.yaml @@ -0,0 +1,19 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 + ROI_DENSEPOSE_HEAD: + UV_CONFIDENCE: + ENABLED: True + TYPE: "indep_aniso" + POINT_REGRESSION_WEIGHTS: 0.0005 +DATASETS: + TRAIN: ("densepose_coco_2014_minival_100",) + TEST: ("densepose_coco_2014_minival_100",) +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + MAX_ITER: 40 + STEPS: (30,) + WARMUP_FACTOR: 0.025 diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_inference_acc_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_inference_acc_test.yaml new file mode 100755 index 0000000..d607c98 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_inference_acc_test.yaml @@ -0,0 +1,8 @@ +_BASE_: "../densepose_rcnn_R_50_FPN_s1x.yaml" +MODEL: + WEIGHTS: "https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl" +DATASETS: + TRAIN: () + TEST: ("densepose_coco_2014_minival_100",) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 59.27, 0.025], ["densepose_gps", "AP", 60.11, 0.02], ["densepose_gpsm", "AP", 64.09, 0.02]] diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_instant_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_instant_test.yaml new file mode 100755 index 0000000..057c876 --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_instant_test.yaml @@ -0,0 +1,9 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" +DATASETS: + TRAIN: ("densepose_coco_2014_minival_100",) + TEST: ("densepose_coco_2014_minival_100",) +SOLVER: + MAX_ITER: 40 + STEPS: (30,) diff --git a/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_training_acc_test.yaml b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_training_acc_test.yaml new file mode 100755 index 0000000..0053c9d --- /dev/null +++ b/detectron2/projects/DensePose/configs/quick_schedules/densepose_rcnn_R_50_FPN_training_acc_test.yaml @@ -0,0 +1,18 @@ +_BASE_: "../Base-DensePose-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + ROI_HEADS: + NUM_CLASSES: 1 +DATASETS: + TRAIN: ("densepose_coco_2014_minival",) + TEST: ("densepose_coco_2014_minival",) +SOLVER: + CLIP_GRADIENTS: + ENABLED: True + CLIP_TYPE: norm + CLIP_VALUE: 1.0 + MAX_ITER: 6000 + STEPS: (5500, 5800) +TEST: + EXPECTED_RESULTS: [["bbox", "AP", 76.2477, 1.0], ["densepose_gps", "AP", 79.6090, 1.5], ["densepose_gpsm", "AP", 80.0061, 1.5]] + diff --git a/detectron2/projects/DensePose/densepose/__init__.py b/detectron2/projects/DensePose/densepose/__init__.py new file mode 100755 index 0000000..b50a3da --- /dev/null +++ b/detectron2/projects/DensePose/densepose/__init__.py @@ -0,0 +1,20 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .data.datasets import builtin # just to register data +from .converters import builtin as builtin_converters # register converters +from .config import ( + add_densepose_config, + add_densepose_head_config, + add_hrnet_config, + add_dataset_category_config, + add_bootstrap_config, + load_bootstrap_config, +) +from .structures import DensePoseDataRelative, DensePoseList, DensePoseTransformData +from .evaluation import DensePoseCOCOEvaluator +from .modeling.roi_heads import DensePoseROIHeads +from .modeling.test_time_augmentation import ( + DensePoseGeneralizedRCNNWithTTA, + DensePoseDatasetMapperTTA, +) +from .utils.transform import load_from_cfg +from .modeling.hrfpn import build_hrfpn_backbone diff --git a/detectron2/projects/DensePose/densepose/config.py b/detectron2/projects/DensePose/densepose/config.py new file mode 100755 index 0000000..2a06a09 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/config.py @@ -0,0 +1,277 @@ +# -*- coding = utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. +# pyre-ignore-all-errors + +from detectron2.config import CfgNode as CN + + +def add_dataset_category_config(cfg: CN) -> None: + """ + Add config for additional category-related dataset options + - category whitelisting + - category mapping + """ + _C = cfg + _C.DATASETS.CATEGORY_MAPS = CN(new_allowed=True) + _C.DATASETS.WHITELISTED_CATEGORIES = CN(new_allowed=True) + # class to mesh mapping + _C.DATASETS.CLASS_TO_MESH_NAME_MAPPING = CN(new_allowed=True) + + +def add_evaluation_config(cfg: CN) -> None: + _C = cfg + _C.DENSEPOSE_EVALUATION = CN() + # evaluator type, possible values: + # - "iou": evaluator for models that produce iou data + # - "cse": evaluator for models that produce cse data + _C.DENSEPOSE_EVALUATION.TYPE = "iou" + # storage for DensePose results, possible values: + # - "none": no explicit storage, all the results are stored in the + # dictionary with predictions, memory intensive; + # historically the default storage type + # - "ram": RAM storage, uses per-process RAM storage, which is + # reduced to a single process storage on later stages, + # less memory intensive + # - "file": file storage, uses per-process file-based storage, + # the least memory intensive, but may create bottlenecks + # on file system accesses + _C.DENSEPOSE_EVALUATION.STORAGE = "none" + # minimum threshold for IOU values: the lower its values is, + # the more matches are produced (and the higher the AP score) + _C.DENSEPOSE_EVALUATION.MIN_IOU_THRESHOLD = 0.5 + # Non-distributed inference is slower (at inference time) but can avoid RAM OOM + _C.DENSEPOSE_EVALUATION.DISTRIBUTED_INFERENCE = True + # evaluate mesh alignment based on vertex embeddings, only makes sense in CSE context + _C.DENSEPOSE_EVALUATION.EVALUATE_MESH_ALIGNMENT = False + # meshes to compute mesh alignment for + _C.DENSEPOSE_EVALUATION.MESH_ALIGNMENT_MESH_NAMES = [] + + +def add_bootstrap_config(cfg: CN) -> None: + """ """ + _C = cfg + _C.BOOTSTRAP_DATASETS = [] + _C.BOOTSTRAP_MODEL = CN() + _C.BOOTSTRAP_MODEL.WEIGHTS = "" + _C.BOOTSTRAP_MODEL.DEVICE = "cuda" + + +def get_bootstrap_dataset_config() -> CN: + _C = CN() + _C.DATASET = "" + # ratio used to mix data loaders + _C.RATIO = 0.1 + # image loader + _C.IMAGE_LOADER = CN(new_allowed=True) + _C.IMAGE_LOADER.TYPE = "" + _C.IMAGE_LOADER.BATCH_SIZE = 4 + _C.IMAGE_LOADER.NUM_WORKERS = 4 + _C.IMAGE_LOADER.CATEGORIES = [] + _C.IMAGE_LOADER.MAX_COUNT_PER_CATEGORY = 1_000_000 + _C.IMAGE_LOADER.CATEGORY_TO_CLASS_MAPPING = CN(new_allowed=True) + # inference + _C.INFERENCE = CN() + # batch size for model inputs + _C.INFERENCE.INPUT_BATCH_SIZE = 4 + # batch size to group model outputs + _C.INFERENCE.OUTPUT_BATCH_SIZE = 2 + # sampled data + _C.DATA_SAMPLER = CN(new_allowed=True) + _C.DATA_SAMPLER.TYPE = "" + _C.DATA_SAMPLER.USE_GROUND_TRUTH_CATEGORIES = False + # filter + _C.FILTER = CN(new_allowed=True) + _C.FILTER.TYPE = "" + return _C + + +def load_bootstrap_config(cfg: CN) -> None: + """ + Bootstrap datasets are given as a list of `dict` that are not automatically + converted into CfgNode. This method processes all bootstrap dataset entries + and ensures that they are in CfgNode format and comply with the specification + """ + if not cfg.BOOTSTRAP_DATASETS: + return + + bootstrap_datasets_cfgnodes = [] + for dataset_cfg in cfg.BOOTSTRAP_DATASETS: + _C = get_bootstrap_dataset_config().clone() + _C.merge_from_other_cfg(CN(dataset_cfg)) + bootstrap_datasets_cfgnodes.append(_C) + cfg.BOOTSTRAP_DATASETS = bootstrap_datasets_cfgnodes + + +def add_densepose_head_cse_config(cfg: CN) -> None: + """ + Add configuration options for Continuous Surface Embeddings (CSE) + """ + _C = cfg + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE = CN() + # Dimensionality D of the embedding space + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE = 16 + # Embedder specifications for various mesh IDs + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS = CN(new_allowed=True) + # normalization coefficient for embedding distances + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDING_DIST_GAUSS_SIGMA = 0.01 + # normalization coefficient for geodesic distances + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.GEODESIC_DIST_GAUSS_SIGMA = 0.01 + # embedding loss weight + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_LOSS_WEIGHT = 0.6 + # embedding loss name, currently the following options are supported: + # - EmbeddingLoss: cross-entropy on vertex labels + # - SoftEmbeddingLoss: cross-entropy on vertex label combined with + # Gaussian penalty on distance between vertices + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_LOSS_NAME = "EmbeddingLoss" + # optimizer hyperparameters + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.FEATURES_LR_FACTOR = 1.0 + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDING_LR_FACTOR = 1.0 + # Shape to shape cycle consistency loss parameters: + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS = CN({"ENABLED": False}) + # shape to shape cycle consistency loss weight + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.WEIGHT = 0.025 + # norm type used for loss computation + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.NORM_P = 2 + # normalization term for embedding similarity matrices + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.TEMPERATURE = 0.05 + # maximum number of vertices to include into shape to shape cycle loss + # if negative or zero, all vertices are considered + # if positive, random subset of vertices of given size is considered + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.MAX_NUM_VERTICES = 4936 + # Pixel to shape cycle consistency loss parameters: + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS = CN({"ENABLED": False}) + # pixel to shape cycle consistency loss weight + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.WEIGHT = 0.0001 + # norm type used for loss computation + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.NORM_P = 2 + # map images to all meshes and back (if false, use only gt meshes from the batch) + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.USE_ALL_MESHES_NOT_GT_ONLY = False + # Randomly select at most this number of pixels from every instance + # if negative or zero, all vertices are considered + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.NUM_PIXELS_TO_SAMPLE = 100 + # normalization factor for pixel to pixel distances (higher value = smoother distribution) + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.PIXEL_SIGMA = 5.0 + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.TEMPERATURE_PIXEL_TO_VERTEX = 0.05 + _C.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.TEMPERATURE_VERTEX_TO_PIXEL = 0.05 + + +def add_densepose_head_config(cfg: CN) -> None: + """ + Add config for densepose head. + """ + _C = cfg + + _C.MODEL.DENSEPOSE_ON = True + + _C.MODEL.ROI_DENSEPOSE_HEAD = CN() + _C.MODEL.ROI_DENSEPOSE_HEAD.NAME = "" + _C.MODEL.ROI_DENSEPOSE_HEAD.NUM_STACKED_CONVS = 8 + # Number of parts used for point labels + _C.MODEL.ROI_DENSEPOSE_HEAD.NUM_PATCHES = 24 + _C.MODEL.ROI_DENSEPOSE_HEAD.DECONV_KERNEL = 4 + _C.MODEL.ROI_DENSEPOSE_HEAD.CONV_HEAD_DIM = 512 + _C.MODEL.ROI_DENSEPOSE_HEAD.CONV_HEAD_KERNEL = 3 + _C.MODEL.ROI_DENSEPOSE_HEAD.UP_SCALE = 2 + _C.MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE = 112 + _C.MODEL.ROI_DENSEPOSE_HEAD.POOLER_TYPE = "ROIAlignV2" + _C.MODEL.ROI_DENSEPOSE_HEAD.POOLER_RESOLUTION = 28 + _C.MODEL.ROI_DENSEPOSE_HEAD.POOLER_SAMPLING_RATIO = 2 + _C.MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS = 2 # 15 or 2 + # Overlap threshold for an RoI to be considered foreground (if >= FG_IOU_THRESHOLD) + _C.MODEL.ROI_DENSEPOSE_HEAD.FG_IOU_THRESHOLD = 0.7 + # Loss weights for annotation masks.(14 Parts) + _C.MODEL.ROI_DENSEPOSE_HEAD.INDEX_WEIGHTS = 5.0 + # Loss weights for surface parts. (24 Parts) + _C.MODEL.ROI_DENSEPOSE_HEAD.PART_WEIGHTS = 1.0 + # Loss weights for UV regression. + _C.MODEL.ROI_DENSEPOSE_HEAD.POINT_REGRESSION_WEIGHTS = 0.01 + # Coarse segmentation is trained using instance segmentation task data + _C.MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS = False + # For Decoder + _C.MODEL.ROI_DENSEPOSE_HEAD.DECODER_ON = True + _C.MODEL.ROI_DENSEPOSE_HEAD.DECODER_NUM_CLASSES = 256 + _C.MODEL.ROI_DENSEPOSE_HEAD.DECODER_CONV_DIMS = 256 + _C.MODEL.ROI_DENSEPOSE_HEAD.DECODER_NORM = "" + _C.MODEL.ROI_DENSEPOSE_HEAD.DECODER_COMMON_STRIDE = 4 + # For DeepLab head + _C.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB = CN() + _C.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB.NORM = "GN" + _C.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB.NONLOCAL_ON = 0 + # Predictor class name, must be registered in DENSEPOSE_PREDICTOR_REGISTRY + # Some registered predictors: + # "DensePoseChartPredictor": predicts segmentation and UV coordinates for predefined charts + # "DensePoseChartWithConfidencePredictor": predicts segmentation, UV coordinates + # and associated confidences for predefined charts (default) + # "DensePoseEmbeddingWithConfidencePredictor": predicts segmentation, embeddings + # and associated confidences for CSE + _C.MODEL.ROI_DENSEPOSE_HEAD.PREDICTOR_NAME = "DensePoseChartWithConfidencePredictor" + # Loss class name, must be registered in DENSEPOSE_LOSS_REGISTRY + # Some registered losses: + # "DensePoseChartLoss": loss for chart-based models that estimate + # segmentation and UV coordinates + # "DensePoseChartWithConfidenceLoss": loss for chart-based models that estimate + # segmentation, UV coordinates and the corresponding confidences (default) + _C.MODEL.ROI_DENSEPOSE_HEAD.LOSS_NAME = "DensePoseChartWithConfidenceLoss" + # Confidences + # Enable learning UV confidences (variances) along with the actual values + _C.MODEL.ROI_DENSEPOSE_HEAD.UV_CONFIDENCE = CN({"ENABLED": False}) + # UV confidence lower bound + _C.MODEL.ROI_DENSEPOSE_HEAD.UV_CONFIDENCE.EPSILON = 0.01 + # Enable learning segmentation confidences (variances) along with the actual values + _C.MODEL.ROI_DENSEPOSE_HEAD.SEGM_CONFIDENCE = CN({"ENABLED": False}) + # Segmentation confidence lower bound + _C.MODEL.ROI_DENSEPOSE_HEAD.SEGM_CONFIDENCE.EPSILON = 0.01 + # Statistical model type for confidence learning, possible values: + # - "iid_iso": statistically independent identically distributed residuals + # with isotropic covariance + # - "indep_aniso": statistically independent residuals with anisotropic + # covariances + _C.MODEL.ROI_DENSEPOSE_HEAD.UV_CONFIDENCE.TYPE = "iid_iso" + # List of angles for rotation in data augmentation during training + _C.INPUT.ROTATION_ANGLES = [0] + _C.TEST.AUG.ROTATION_ANGLES = () # Rotation TTA + + add_densepose_head_cse_config(cfg) + + +def add_hrnet_config(cfg: CN) -> None: + """ + Add config for HRNet backbone. + """ + _C = cfg + + # For HigherHRNet w32 + _C.MODEL.HRNET = CN() + _C.MODEL.HRNET.STEM_INPLANES = 64 + _C.MODEL.HRNET.STAGE2 = CN() + _C.MODEL.HRNET.STAGE2.NUM_MODULES = 1 + _C.MODEL.HRNET.STAGE2.NUM_BRANCHES = 2 + _C.MODEL.HRNET.STAGE2.BLOCK = "BASIC" + _C.MODEL.HRNET.STAGE2.NUM_BLOCKS = [4, 4] + _C.MODEL.HRNET.STAGE2.NUM_CHANNELS = [32, 64] + _C.MODEL.HRNET.STAGE2.FUSE_METHOD = "SUM" + _C.MODEL.HRNET.STAGE3 = CN() + _C.MODEL.HRNET.STAGE3.NUM_MODULES = 4 + _C.MODEL.HRNET.STAGE3.NUM_BRANCHES = 3 + _C.MODEL.HRNET.STAGE3.BLOCK = "BASIC" + _C.MODEL.HRNET.STAGE3.NUM_BLOCKS = [4, 4, 4] + _C.MODEL.HRNET.STAGE3.NUM_CHANNELS = [32, 64, 128] + _C.MODEL.HRNET.STAGE3.FUSE_METHOD = "SUM" + _C.MODEL.HRNET.STAGE4 = CN() + _C.MODEL.HRNET.STAGE4.NUM_MODULES = 3 + _C.MODEL.HRNET.STAGE4.NUM_BRANCHES = 4 + _C.MODEL.HRNET.STAGE4.BLOCK = "BASIC" + _C.MODEL.HRNET.STAGE4.NUM_BLOCKS = [4, 4, 4, 4] + _C.MODEL.HRNET.STAGE4.NUM_CHANNELS = [32, 64, 128, 256] + _C.MODEL.HRNET.STAGE4.FUSE_METHOD = "SUM" + + _C.MODEL.HRNET.HRFPN = CN() + _C.MODEL.HRNET.HRFPN.OUT_CHANNELS = 256 + + +def add_densepose_config(cfg: CN) -> None: + add_densepose_head_config(cfg) + add_hrnet_config(cfg) + add_bootstrap_config(cfg) + add_dataset_category_config(cfg) + add_evaluation_config(cfg) diff --git a/detectron2/projects/DensePose/densepose/converters/__init__.py b/detectron2/projects/DensePose/densepose/converters/__init__.py new file mode 100755 index 0000000..930339e --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/__init__.py @@ -0,0 +1,15 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .hflip import HFlipConverter +from .to_mask import ToMaskConverter +from .to_chart_result import ToChartResultConverter, ToChartResultConverterWithConfidences +from .segm_to_mask import ( + predictor_output_with_fine_and_coarse_segm_to_mask, + predictor_output_with_coarse_segm_to_mask, + resample_fine_and_coarse_segm_to_bbox, +) +from .chart_output_to_chart_result import ( + densepose_chart_predictor_output_to_result, + densepose_chart_predictor_output_to_result_with_confidences, +) +from .chart_output_hflip import densepose_chart_predictor_output_hflip diff --git a/detectron2/projects/DensePose/densepose/converters/base.py b/detectron2/projects/DensePose/densepose/converters/base.py new file mode 100755 index 0000000..c9dbe56 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/base.py @@ -0,0 +1,93 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any, Tuple, Type +import torch + + +class BaseConverter: + """ + Converter base class to be reused by various converters. + Converter allows one to convert data from various source types to a particular + destination type. Each source type needs to register its converter. The + registration for each source type is valid for all descendants of that type. + """ + + @classmethod + def register(cls, from_type: Type, converter: Any = None): + """ + Registers a converter for the specified type. + Can be used as a decorator (if converter is None), or called as a method. + + Args: + from_type (type): type to register the converter for; + all instances of this type will use the same converter + converter (callable): converter to be registered for the given + type; if None, this method is assumed to be a decorator for the converter + """ + + if converter is not None: + cls._do_register(from_type, converter) + + def wrapper(converter: Any) -> Any: + cls._do_register(from_type, converter) + return converter + + return wrapper + + @classmethod + def _do_register(cls, from_type: Type, converter: Any): + cls.registry[from_type] = converter # pyre-ignore[16] + + @classmethod + def _lookup_converter(cls, from_type: Type) -> Any: + """ + Perform recursive lookup for the given type + to find registered converter. If a converter was found for some base + class, it gets registered for this class to save on further lookups. + + Args: + from_type: type for which to find a converter + Return: + callable or None - registered converter or None + if no suitable entry was found in the registry + """ + if from_type in cls.registry: # pyre-ignore[16] + return cls.registry[from_type] + for base in from_type.__bases__: + converter = cls._lookup_converter(base) + if converter is not None: + cls._do_register(from_type, converter) + return converter + return None + + @classmethod + def convert(cls, instance: Any, *args, **kwargs): + """ + Convert an instance to the destination type using some registered + converter. Does recursive lookup for base classes, so there's no need + for explicit registration for derived classes. + + Args: + instance: source instance to convert to the destination type + Return: + An instance of the destination type obtained from the source instance + Raises KeyError, if no suitable converter found + """ + instance_type = type(instance) + converter = cls._lookup_converter(instance_type) + if converter is None: + if cls.dst_type is None: # pyre-ignore[16] + output_type_str = "itself" + else: + output_type_str = cls.dst_type + raise KeyError(f"Could not find converter from {instance_type} to {output_type_str}") + return converter(instance, *args, **kwargs) + + +IntTupleBox = Tuple[int, int, int, int] + + +def make_int_box(box: torch.Tensor) -> IntTupleBox: + int_box = [0, 0, 0, 0] + int_box[0], int_box[1], int_box[2], int_box[3] = tuple(box.long().tolist()) + return int_box[0], int_box[1], int_box[2], int_box[3] diff --git a/detectron2/projects/DensePose/densepose/converters/builtin.py b/detectron2/projects/DensePose/densepose/converters/builtin.py new file mode 100755 index 0000000..3bd48f8 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/builtin.py @@ -0,0 +1,31 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from ..structures import DensePoseChartPredictorOutput, DensePoseEmbeddingPredictorOutput +from . import ( + HFlipConverter, + ToChartResultConverter, + ToChartResultConverterWithConfidences, + ToMaskConverter, + densepose_chart_predictor_output_hflip, + densepose_chart_predictor_output_to_result, + densepose_chart_predictor_output_to_result_with_confidences, + predictor_output_with_coarse_segm_to_mask, + predictor_output_with_fine_and_coarse_segm_to_mask, +) + +ToMaskConverter.register( + DensePoseChartPredictorOutput, predictor_output_with_fine_and_coarse_segm_to_mask +) +ToMaskConverter.register( + DensePoseEmbeddingPredictorOutput, predictor_output_with_coarse_segm_to_mask +) + +ToChartResultConverter.register( + DensePoseChartPredictorOutput, densepose_chart_predictor_output_to_result +) + +ToChartResultConverterWithConfidences.register( + DensePoseChartPredictorOutput, densepose_chart_predictor_output_to_result_with_confidences +) + +HFlipConverter.register(DensePoseChartPredictorOutput, densepose_chart_predictor_output_hflip) diff --git a/detectron2/projects/DensePose/densepose/converters/chart_output_hflip.py b/detectron2/projects/DensePose/densepose/converters/chart_output_hflip.py new file mode 100755 index 0000000..17d2948 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/chart_output_hflip.py @@ -0,0 +1,71 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from dataclasses import fields +import torch + +from densepose.structures import DensePoseChartPredictorOutput, DensePoseTransformData + + +def densepose_chart_predictor_output_hflip( + densepose_predictor_output: DensePoseChartPredictorOutput, + transform_data: DensePoseTransformData, +) -> DensePoseChartPredictorOutput: + """ + Change to take into account a Horizontal flip. + """ + if len(densepose_predictor_output) > 0: + + PredictorOutput = type(densepose_predictor_output) + output_dict = {} + + for field in fields(densepose_predictor_output): + field_value = getattr(densepose_predictor_output, field.name) + # flip tensors + if isinstance(field_value, torch.Tensor): + setattr(densepose_predictor_output, field.name, torch.flip(field_value, [3])) + + densepose_predictor_output = _flip_iuv_semantics_tensor( + densepose_predictor_output, transform_data + ) + densepose_predictor_output = _flip_segm_semantics_tensor( + densepose_predictor_output, transform_data + ) + + for field in fields(densepose_predictor_output): + output_dict[field.name] = getattr(densepose_predictor_output, field.name) + + return PredictorOutput(**output_dict) + else: + return densepose_predictor_output + + +def _flip_iuv_semantics_tensor( + densepose_predictor_output: DensePoseChartPredictorOutput, + dp_transform_data: DensePoseTransformData, +) -> DensePoseChartPredictorOutput: + point_label_symmetries = dp_transform_data.point_label_symmetries + uv_symmetries = dp_transform_data.uv_symmetries + + N, C, H, W = densepose_predictor_output.u.shape + u_loc = (densepose_predictor_output.u[:, 1:, :, :].clamp(0, 1) * 255).long() + v_loc = (densepose_predictor_output.v[:, 1:, :, :].clamp(0, 1) * 255).long() + Iindex = torch.arange(C - 1, device=densepose_predictor_output.u.device)[ + None, :, None, None + ].expand(N, C - 1, H, W) + densepose_predictor_output.u[:, 1:, :, :] = uv_symmetries["U_transforms"][Iindex, v_loc, u_loc] + densepose_predictor_output.v[:, 1:, :, :] = uv_symmetries["V_transforms"][Iindex, v_loc, u_loc] + + for el in ["fine_segm", "u", "v"]: + densepose_predictor_output.__dict__[el] = densepose_predictor_output.__dict__[el][ + :, point_label_symmetries, :, : + ] + return densepose_predictor_output + + +def _flip_segm_semantics_tensor( + densepose_predictor_output: DensePoseChartPredictorOutput, dp_transform_data +): + if densepose_predictor_output.coarse_segm.shape[1] > 2: + densepose_predictor_output.coarse_segm = densepose_predictor_output.coarse_segm[ + :, dp_transform_data.mask_label_symmetries, :, : + ] + return densepose_predictor_output diff --git a/detectron2/projects/DensePose/densepose/converters/chart_output_to_chart_result.py b/detectron2/projects/DensePose/densepose/converters/chart_output_to_chart_result.py new file mode 100755 index 0000000..4248f6c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/chart_output_to_chart_result.py @@ -0,0 +1,188 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Dict +import torch +from torch.nn import functional as F + +from detectron2.structures.boxes import Boxes, BoxMode + +from ..structures import ( + DensePoseChartPredictorOutput, + DensePoseChartResult, + DensePoseChartResultWithConfidences, +) +from . import resample_fine_and_coarse_segm_to_bbox +from .base import IntTupleBox, make_int_box + + +def resample_uv_tensors_to_bbox( + u: torch.Tensor, + v: torch.Tensor, + labels: torch.Tensor, + box_xywh_abs: IntTupleBox, +) -> torch.Tensor: + """ + Resamples U and V coordinate estimates for the given bounding box + + Args: + u (tensor [1, C, H, W] of float): U coordinates + v (tensor [1, C, H, W] of float): V coordinates + labels (tensor [H, W] of long): labels obtained by resampling segmentation + outputs for the given bounding box + box_xywh_abs (tuple of 4 int): bounding box that corresponds to predictor outputs + Return: + Resampled U and V coordinates - a tensor [2, H, W] of float + """ + x, y, w, h = box_xywh_abs + w = max(int(w), 1) + h = max(int(h), 1) + u_bbox = F.interpolate(u, (h, w), mode="bilinear", align_corners=False) + v_bbox = F.interpolate(v, (h, w), mode="bilinear", align_corners=False) + uv = torch.zeros([2, h, w], dtype=torch.float32, device=u.device) + for part_id in range(1, u_bbox.size(1)): + uv[0][labels == part_id] = u_bbox[0, part_id][labels == part_id] + uv[1][labels == part_id] = v_bbox[0, part_id][labels == part_id] + return uv + + +def resample_uv_to_bbox( + predictor_output: DensePoseChartPredictorOutput, + labels: torch.Tensor, + box_xywh_abs: IntTupleBox, +) -> torch.Tensor: + """ + Resamples U and V coordinate estimates for the given bounding box + + Args: + predictor_output (DensePoseChartPredictorOutput): DensePose predictor + output to be resampled + labels (tensor [H, W] of long): labels obtained by resampling segmentation + outputs for the given bounding box + box_xywh_abs (tuple of 4 int): bounding box that corresponds to predictor outputs + Return: + Resampled U and V coordinates - a tensor [2, H, W] of float + """ + return resample_uv_tensors_to_bbox( + predictor_output.u, + predictor_output.v, + labels, + box_xywh_abs, + ) + + +def densepose_chart_predictor_output_to_result( + predictor_output: DensePoseChartPredictorOutput, boxes: Boxes +) -> DensePoseChartResult: + """ + Convert densepose chart predictor outputs to results + + Args: + predictor_output (DensePoseChartPredictorOutput): DensePose predictor + output to be converted to results, must contain only 1 output + boxes (Boxes): bounding box that corresponds to the predictor output, + must contain only 1 bounding box + Return: + DensePose chart-based result (DensePoseChartResult) + """ + assert len(predictor_output) == 1 and len(boxes) == 1, ( + f"Predictor output to result conversion can operate only single outputs" + f", got {len(predictor_output)} predictor outputs and {len(boxes)} boxes" + ) + + boxes_xyxy_abs = boxes.tensor.clone() + boxes_xywh_abs = BoxMode.convert(boxes_xyxy_abs, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + box_xywh = make_int_box(boxes_xywh_abs[0]) + + labels = resample_fine_and_coarse_segm_to_bbox(predictor_output, box_xywh).squeeze(0) + uv = resample_uv_to_bbox(predictor_output, labels, box_xywh) + return DensePoseChartResult(labels=labels, uv=uv) + + +def resample_confidences_to_bbox( + predictor_output: DensePoseChartPredictorOutput, + labels: torch.Tensor, + box_xywh_abs: IntTupleBox, +) -> Dict[str, torch.Tensor]: + """ + Resamples confidences for the given bounding box + + Args: + predictor_output (DensePoseChartPredictorOutput): DensePose predictor + output to be resampled + labels (tensor [H, W] of long): labels obtained by resampling segmentation + outputs for the given bounding box + box_xywh_abs (tuple of 4 int): bounding box that corresponds to predictor outputs + Return: + Resampled confidences - a dict of [H, W] tensors of float + """ + + x, y, w, h = box_xywh_abs + w = max(int(w), 1) + h = max(int(h), 1) + + confidence_names = [ + "sigma_1", + "sigma_2", + "kappa_u", + "kappa_v", + "fine_segm_confidence", + "coarse_segm_confidence", + ] + confidence_results = {key: None for key in confidence_names} + confidence_names = [ + key for key in confidence_names if getattr(predictor_output, key) is not None + ] + confidence_base = torch.zeros([h, w], dtype=torch.float32, device=predictor_output.u.device) + + # assign data from channels that correspond to the labels + for key in confidence_names: + resampled_confidence = F.interpolate( + getattr(predictor_output, key), + (h, w), + mode="bilinear", + align_corners=False, + ) + result = confidence_base.clone() + for part_id in range(1, predictor_output.u.size(1)): + if resampled_confidence.size(1) != predictor_output.u.size(1): + # confidence is not part-based, don't try to fill it part by part + continue + result[labels == part_id] = resampled_confidence[0, part_id][labels == part_id] + + if resampled_confidence.size(1) != predictor_output.u.size(1): + # confidence is not part-based, fill the data with the first channel + # (targeted for segmentation confidences that have only 1 channel) + result = resampled_confidence[0, 0] + + confidence_results[key] = result + + return confidence_results # pyre-ignore[7] + + +def densepose_chart_predictor_output_to_result_with_confidences( + predictor_output: DensePoseChartPredictorOutput, boxes: Boxes +) -> DensePoseChartResultWithConfidences: + """ + Convert densepose chart predictor outputs to results + + Args: + predictor_output (DensePoseChartPredictorOutput): DensePose predictor + output with confidences to be converted to results, must contain only 1 output + boxes (Boxes): bounding box that corresponds to the predictor output, + must contain only 1 bounding box + Return: + DensePose chart-based result with confidences (DensePoseChartResultWithConfidences) + """ + assert len(predictor_output) == 1 and len(boxes) == 1, ( + f"Predictor output to result conversion can operate only single outputs" + f", got {len(predictor_output)} predictor outputs and {len(boxes)} boxes" + ) + + boxes_xyxy_abs = boxes.tensor.clone() + boxes_xywh_abs = BoxMode.convert(boxes_xyxy_abs, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + box_xywh = make_int_box(boxes_xywh_abs[0]) + + labels = resample_fine_and_coarse_segm_to_bbox(predictor_output, box_xywh).squeeze(0) + uv = resample_uv_to_bbox(predictor_output, labels, box_xywh) + confidences = resample_confidences_to_bbox(predictor_output, labels, box_xywh) + return DensePoseChartResultWithConfidences(labels=labels, uv=uv, **confidences) diff --git a/detectron2/projects/DensePose/densepose/converters/hflip.py b/detectron2/projects/DensePose/densepose/converters/hflip.py new file mode 100755 index 0000000..6df1442 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/hflip.py @@ -0,0 +1,34 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any + +from .base import BaseConverter + + +class HFlipConverter(BaseConverter): + """ + Converts various DensePose predictor outputs to DensePose results. + Each DensePose predictor output type has to register its convertion strategy. + """ + + registry = {} + dst_type = None + + @classmethod + # pyre-fixme[14]: `convert` overrides method defined in `BaseConverter` + # inconsistently. + def convert(cls, predictor_outputs: Any, transform_data: Any, *args, **kwargs): + """ + Performs an horizontal flip on DensePose predictor outputs. + Does recursive lookup for base classes, so there's no need + for explicit registration for derived classes. + + Args: + predictor_outputs: DensePose predictor output to be converted to BitMasks + transform_data: Anything useful for the flip + Return: + An instance of the same type as predictor_outputs + """ + return super(HFlipConverter, cls).convert( + predictor_outputs, transform_data, *args, **kwargs + ) diff --git a/detectron2/projects/DensePose/densepose/converters/segm_to_mask.py b/detectron2/projects/DensePose/densepose/converters/segm_to_mask.py new file mode 100755 index 0000000..6433d5d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/segm_to_mask.py @@ -0,0 +1,150 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any +import torch +from torch.nn import functional as F + +from detectron2.structures import BitMasks, Boxes, BoxMode + +from .base import IntTupleBox, make_int_box +from .to_mask import ImageSizeType + + +def resample_coarse_segm_tensor_to_bbox(coarse_segm: torch.Tensor, box_xywh_abs: IntTupleBox): + """ + Resample coarse segmentation tensor to the given + bounding box and derive labels for each pixel of the bounding box + + Args: + coarse_segm: float tensor of shape [1, K, Hout, Wout] + box_xywh_abs (tuple of 4 int): bounding box given by its upper-left + corner coordinates, width (W) and height (H) + Return: + Labels for each pixel of the bounding box, a long tensor of size [1, H, W] + """ + x, y, w, h = box_xywh_abs + w = max(int(w), 1) + h = max(int(h), 1) + labels = F.interpolate(coarse_segm, (h, w), mode="bilinear", align_corners=False).argmax(dim=1) + return labels + + +def resample_fine_and_coarse_segm_tensors_to_bbox( + fine_segm: torch.Tensor, coarse_segm: torch.Tensor, box_xywh_abs: IntTupleBox +): + """ + Resample fine and coarse segmentation tensors to the given + bounding box and derive labels for each pixel of the bounding box + + Args: + fine_segm: float tensor of shape [1, C, Hout, Wout] + coarse_segm: float tensor of shape [1, K, Hout, Wout] + box_xywh_abs (tuple of 4 int): bounding box given by its upper-left + corner coordinates, width (W) and height (H) + Return: + Labels for each pixel of the bounding box, a long tensor of size [1, H, W] + """ + x, y, w, h = box_xywh_abs + w = max(int(w), 1) + h = max(int(h), 1) + # coarse segmentation + coarse_segm_bbox = F.interpolate( + coarse_segm, + (h, w), + mode="bilinear", + align_corners=False, + ).argmax(dim=1) + # combined coarse and fine segmentation + labels = ( + F.interpolate(fine_segm, (h, w), mode="bilinear", align_corners=False).argmax(dim=1) + * (coarse_segm_bbox > 0).long() + ) + return labels + + +def resample_fine_and_coarse_segm_to_bbox(predictor_output: Any, box_xywh_abs: IntTupleBox): + """ + Resample fine and coarse segmentation outputs from a predictor to the given + bounding box and derive labels for each pixel of the bounding box + + Args: + predictor_output: DensePose predictor output that contains segmentation + results to be resampled + box_xywh_abs (tuple of 4 int): bounding box given by its upper-left + corner coordinates, width (W) and height (H) + Return: + Labels for each pixel of the bounding box, a long tensor of size [1, H, W] + """ + return resample_fine_and_coarse_segm_tensors_to_bbox( + predictor_output.fine_segm, + predictor_output.coarse_segm, + box_xywh_abs, + ) + + +def predictor_output_with_coarse_segm_to_mask( + predictor_output: Any, boxes: Boxes, image_size_hw: ImageSizeType +) -> BitMasks: + """ + Convert predictor output with coarse and fine segmentation to a mask. + Assumes that predictor output has the following attributes: + - coarse_segm (tensor of size [N, D, H, W]): coarse segmentation + unnormalized scores for N instances; D is the number of coarse + segmentation labels, H and W is the resolution of the estimate + + Args: + predictor_output: DensePose predictor output to be converted to mask + boxes (Boxes): bounding boxes that correspond to the DensePose + predictor outputs + image_size_hw (tuple [int, int]): image height Himg and width Wimg + Return: + BitMasks that contain a bool tensor of size [N, Himg, Wimg] with + a mask of the size of the image for each instance + """ + H, W = image_size_hw + boxes_xyxy_abs = boxes.tensor.clone() + boxes_xywh_abs = BoxMode.convert(boxes_xyxy_abs, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + N = len(boxes_xywh_abs) + masks = torch.zeros((N, H, W), dtype=torch.bool, device=boxes.tensor.device) + for i in range(len(boxes_xywh_abs)): + box_xywh = make_int_box(boxes_xywh_abs[i]) + box_mask = resample_coarse_segm_tensor_to_bbox(predictor_output[i].coarse_segm, box_xywh) + x, y, w, h = box_xywh + masks[i, y : y + h, x : x + w] = box_mask + + return BitMasks(masks) + + +def predictor_output_with_fine_and_coarse_segm_to_mask( + predictor_output: Any, boxes: Boxes, image_size_hw: ImageSizeType +) -> BitMasks: + """ + Convert predictor output with coarse and fine segmentation to a mask. + Assumes that predictor output has the following attributes: + - coarse_segm (tensor of size [N, D, H, W]): coarse segmentation + unnormalized scores for N instances; D is the number of coarse + segmentation labels, H and W is the resolution of the estimate + - fine_segm (tensor of size [N, C, H, W]): fine segmentation + unnormalized scores for N instances; C is the number of fine + segmentation labels, H and W is the resolution of the estimate + + Args: + predictor_output: DensePose predictor output to be converted to mask + boxes (Boxes): bounding boxes that correspond to the DensePose + predictor outputs + image_size_hw (tuple [int, int]): image height Himg and width Wimg + Return: + BitMasks that contain a bool tensor of size [N, Himg, Wimg] with + a mask of the size of the image for each instance + """ + H, W = image_size_hw + boxes_xyxy_abs = boxes.tensor.clone() + boxes_xywh_abs = BoxMode.convert(boxes_xyxy_abs, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + N = len(boxes_xywh_abs) + masks = torch.zeros((N, H, W), dtype=torch.bool, device=boxes.tensor.device) + for i in range(len(boxes_xywh_abs)): + box_xywh = make_int_box(boxes_xywh_abs[i]) + labels_i = resample_fine_and_coarse_segm_to_bbox(predictor_output[i], box_xywh) + x, y, w, h = box_xywh + masks[i, y : y + h, x : x + w] = labels_i > 0 + return BitMasks(masks) diff --git a/detectron2/projects/DensePose/densepose/converters/to_chart_result.py b/detectron2/projects/DensePose/densepose/converters/to_chart_result.py new file mode 100755 index 0000000..3eabd26 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/to_chart_result.py @@ -0,0 +1,70 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any + +from detectron2.structures import Boxes + +from ..structures import DensePoseChartResult, DensePoseChartResultWithConfidences +from .base import BaseConverter + + +class ToChartResultConverter(BaseConverter): + """ + Converts various DensePose predictor outputs to DensePose results. + Each DensePose predictor output type has to register its convertion strategy. + """ + + registry = {} + dst_type = DensePoseChartResult + + @classmethod + # pyre-fixme[14]: `convert` overrides method defined in `BaseConverter` + # inconsistently. + def convert(cls, predictor_outputs: Any, boxes: Boxes, *args, **kwargs) -> DensePoseChartResult: + """ + Convert DensePose predictor outputs to DensePoseResult using some registered + converter. Does recursive lookup for base classes, so there's no need + for explicit registration for derived classes. + + Args: + densepose_predictor_outputs: DensePose predictor output to be + converted to BitMasks + boxes (Boxes): bounding boxes that correspond to the DensePose + predictor outputs + Return: + An instance of DensePoseResult. If no suitable converter was found, raises KeyError + """ + return super(ToChartResultConverter, cls).convert(predictor_outputs, boxes, *args, **kwargs) + + +class ToChartResultConverterWithConfidences(BaseConverter): + """ + Converts various DensePose predictor outputs to DensePose results. + Each DensePose predictor output type has to register its convertion strategy. + """ + + registry = {} + dst_type = DensePoseChartResultWithConfidences + + @classmethod + # pyre-fixme[14]: `convert` overrides method defined in `BaseConverter` + # inconsistently. + def convert( + cls, predictor_outputs: Any, boxes: Boxes, *args, **kwargs + ) -> DensePoseChartResultWithConfidences: + """ + Convert DensePose predictor outputs to DensePoseResult with confidences + using some registered converter. Does recursive lookup for base classes, + so there's no need for explicit registration for derived classes. + + Args: + densepose_predictor_outputs: DensePose predictor output with confidences + to be converted to BitMasks + boxes (Boxes): bounding boxes that correspond to the DensePose + predictor outputs + Return: + An instance of DensePoseResult. If no suitable converter was found, raises KeyError + """ + return super(ToChartResultConverterWithConfidences, cls).convert( + predictor_outputs, boxes, *args, **kwargs + ) diff --git a/detectron2/projects/DensePose/densepose/converters/to_mask.py b/detectron2/projects/DensePose/densepose/converters/to_mask.py new file mode 100755 index 0000000..a57fd71 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/converters/to_mask.py @@ -0,0 +1,49 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any, Tuple + +from detectron2.structures import BitMasks, Boxes + +from .base import BaseConverter + +ImageSizeType = Tuple[int, int] + + +class ToMaskConverter(BaseConverter): + """ + Converts various DensePose predictor outputs to masks + in bit mask format (see `BitMasks`). Each DensePose predictor output type + has to register its convertion strategy. + """ + + registry = {} + dst_type = BitMasks + + @classmethod + # pyre-fixme[14]: `convert` overrides method defined in `BaseConverter` + # inconsistently. + def convert( + cls, + densepose_predictor_outputs: Any, + boxes: Boxes, + image_size_hw: ImageSizeType, + *args, + **kwargs + ) -> BitMasks: + """ + Convert DensePose predictor outputs to BitMasks using some registered + converter. Does recursive lookup for base classes, so there's no need + for explicit registration for derived classes. + + Args: + densepose_predictor_outputs: DensePose predictor output to be + converted to BitMasks + boxes (Boxes): bounding boxes that correspond to the DensePose + predictor outputs + image_size_hw (tuple [int, int]): image height and width + Return: + An instance of `BitMasks`. If no suitable converter was found, raises KeyError + """ + return super(ToMaskConverter, cls).convert( + densepose_predictor_outputs, boxes, image_size_hw, *args, **kwargs + ) diff --git a/detectron2/projects/DensePose/densepose/data/__init__.py b/detectron2/projects/DensePose/densepose/data/__init__.py new file mode 100755 index 0000000..bf21ba7 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/__init__.py @@ -0,0 +1,25 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .meshes import builtin +from .build import ( + build_detection_test_loader, + build_detection_train_loader, + build_combined_loader, + build_frame_selector, + build_inference_based_loaders, + has_inference_based_loaders, + BootstrapDatasetFactoryCatalog, +) +from .combined_loader import CombinedDataLoader +from .dataset_mapper import DatasetMapper +from .inference_based_loader import InferenceBasedLoader, ScoreBasedFilter +from .image_list_dataset import ImageListDataset +from .utils import is_relative_local_path, maybe_prepend_base_path + +# ensure the builtin datasets are registered +from . import datasets + +# ensure the bootstrap datasets builders are registered +from . import build + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/projects/DensePose/densepose/data/build.py b/detectron2/projects/DensePose/densepose/data/build.py new file mode 100755 index 0000000..39edbd8 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/build.py @@ -0,0 +1,736 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import itertools +import logging +import numpy as np +from collections import UserDict, defaultdict +from dataclasses import dataclass +from typing import Any, Callable, Collection, Dict, Iterable, List, Optional, Sequence, Tuple +import torch +from torch.utils.data.dataset import Dataset + +from detectron2.config import CfgNode +from detectron2.data.build import build_detection_test_loader as d2_build_detection_test_loader +from detectron2.data.build import build_detection_train_loader as d2_build_detection_train_loader +from detectron2.data.build import ( + load_proposals_into_dataset, + print_instances_class_histogram, + trivial_batch_collator, + worker_init_reset_seed, +) +from detectron2.data.catalog import DatasetCatalog, Metadata, MetadataCatalog +from detectron2.data.samplers import TrainingSampler +from detectron2.utils.comm import get_world_size + +from densepose.config import get_bootstrap_dataset_config +from densepose.modeling import build_densepose_embedder + +from .combined_loader import CombinedDataLoader, Loader +from .dataset_mapper import DatasetMapper +from .datasets.coco import DENSEPOSE_CSE_KEYS_WITHOUT_MASK, DENSEPOSE_IUV_KEYS_WITHOUT_MASK +from .datasets.dataset_type import DatasetType +from .inference_based_loader import InferenceBasedLoader, ScoreBasedFilter +from .samplers import ( + DensePoseConfidenceBasedSampler, + DensePoseCSEConfidenceBasedSampler, + DensePoseCSEUniformSampler, + DensePoseUniformSampler, + MaskFromDensePoseSampler, + PredictionToGroundTruthSampler, +) +from .transform import ImageResizeTransform +from .utils import get_category_to_class_mapping, get_class_to_mesh_name_mapping +from .video import ( + FirstKFramesSelector, + FrameSelectionStrategy, + LastKFramesSelector, + RandomKFramesSelector, + VideoKeyframeDataset, + video_list_from_file, +) + +__all__ = ["build_detection_train_loader", "build_detection_test_loader"] + + +Instance = Dict[str, Any] +InstancePredicate = Callable[[Instance], bool] + + +def _compute_num_images_per_worker(cfg: CfgNode) -> int: + num_workers = get_world_size() + images_per_batch = cfg.SOLVER.IMS_PER_BATCH + assert ( + images_per_batch % num_workers == 0 + ), "SOLVER.IMS_PER_BATCH ({}) must be divisible by the number of workers ({}).".format( + images_per_batch, num_workers + ) + assert ( + images_per_batch >= num_workers + ), "SOLVER.IMS_PER_BATCH ({}) must be larger than the number of workers ({}).".format( + images_per_batch, num_workers + ) + images_per_worker = images_per_batch // num_workers + return images_per_worker + + +def _map_category_id_to_contiguous_id(dataset_name: str, dataset_dicts: Iterable[Instance]) -> None: + meta = MetadataCatalog.get(dataset_name) + for dataset_dict in dataset_dicts: + for ann in dataset_dict["annotations"]: + ann["category_id"] = meta.thing_dataset_id_to_contiguous_id[ann["category_id"]] + + +@dataclass +class _DatasetCategory: + """ + Class representing category data in a dataset: + - id: category ID, as specified in the dataset annotations file + - name: category name, as specified in the dataset annotations file + - mapped_id: category ID after applying category maps (DATASETS.CATEGORY_MAPS config option) + - mapped_name: category name after applying category maps + - dataset_name: dataset in which the category is defined + + For example, when training models in a class-agnostic manner, one could take LVIS 1.0 + dataset and map the animal categories to the same category as human data from COCO: + id = 225 + name = "cat" + mapped_id = 1 + mapped_name = "person" + dataset_name = "lvis_v1_animals_dp_train" + """ + + id: int + name: str + mapped_id: int + mapped_name: str + dataset_name: str + + +_MergedCategoriesT = Dict[int, List[_DatasetCategory]] + + +def _add_category_id_to_contiguous_id_maps_to_metadata( + merged_categories: _MergedCategoriesT, +) -> None: + merged_categories_per_dataset = {} + for contiguous_cat_id, cat_id in enumerate(sorted(merged_categories.keys())): + for cat in merged_categories[cat_id]: + if cat.dataset_name not in merged_categories_per_dataset: + merged_categories_per_dataset[cat.dataset_name] = defaultdict(list) + merged_categories_per_dataset[cat.dataset_name][cat_id].append( + ( + contiguous_cat_id, + cat, + ) + ) + + logger = logging.getLogger(__name__) + for dataset_name, merged_categories in merged_categories_per_dataset.items(): + meta = MetadataCatalog.get(dataset_name) + if not hasattr(meta, "thing_classes"): + meta.thing_classes = [] + meta.thing_dataset_id_to_contiguous_id = {} + meta.thing_dataset_id_to_merged_id = {} + else: + meta.thing_classes.clear() + meta.thing_dataset_id_to_contiguous_id.clear() + meta.thing_dataset_id_to_merged_id.clear() + logger.info(f"Dataset {dataset_name}: category ID to contiguous ID mapping:") + for _cat_id, categories in sorted(merged_categories.items()): + added_to_thing_classes = False + for contiguous_cat_id, cat in categories: + if not added_to_thing_classes: + meta.thing_classes.append(cat.mapped_name) + added_to_thing_classes = True + meta.thing_dataset_id_to_contiguous_id[cat.id] = contiguous_cat_id + meta.thing_dataset_id_to_merged_id[cat.id] = cat.mapped_id + logger.info(f"{cat.id} ({cat.name}) -> {contiguous_cat_id}") + + +def _maybe_create_general_keep_instance_predicate(cfg: CfgNode) -> Optional[InstancePredicate]: + def has_annotations(instance: Instance) -> bool: + return "annotations" in instance + + def has_only_crowd_anotations(instance: Instance) -> bool: + for ann in instance["annotations"]: + if ann.get("is_crowd", 0) == 0: + return False + return True + + def general_keep_instance_predicate(instance: Instance) -> bool: + return has_annotations(instance) and not has_only_crowd_anotations(instance) + + if not cfg.DATALOADER.FILTER_EMPTY_ANNOTATIONS: + return None + return general_keep_instance_predicate + + +def _maybe_create_keypoints_keep_instance_predicate(cfg: CfgNode) -> Optional[InstancePredicate]: + + min_num_keypoints = cfg.MODEL.ROI_KEYPOINT_HEAD.MIN_KEYPOINTS_PER_IMAGE + + def has_sufficient_num_keypoints(instance: Instance) -> bool: + num_kpts = sum( + (np.array(ann["keypoints"][2::3]) > 0).sum() + for ann in instance["annotations"] + if "keypoints" in ann + ) + return num_kpts >= min_num_keypoints + + if cfg.MODEL.KEYPOINT_ON and (min_num_keypoints > 0): + return has_sufficient_num_keypoints + return None + + +def _maybe_create_mask_keep_instance_predicate(cfg: CfgNode) -> Optional[InstancePredicate]: + if not cfg.MODEL.MASK_ON: + return None + + def has_mask_annotations(instance: Instance) -> bool: + return any("segmentation" in ann for ann in instance["annotations"]) + + return has_mask_annotations + + +def _maybe_create_densepose_keep_instance_predicate(cfg: CfgNode) -> Optional[InstancePredicate]: + if not cfg.MODEL.DENSEPOSE_ON: + return None + + use_masks = cfg.MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS + + def has_densepose_annotations(instance: Instance) -> bool: + for ann in instance["annotations"]: + if all(key in ann for key in DENSEPOSE_IUV_KEYS_WITHOUT_MASK) or all( + key in ann for key in DENSEPOSE_CSE_KEYS_WITHOUT_MASK + ): + return True + if use_masks and "segmentation" in ann: + return True + return False + + return has_densepose_annotations + + +def _maybe_create_specific_keep_instance_predicate(cfg: CfgNode) -> Optional[InstancePredicate]: + specific_predicate_creators = [ + _maybe_create_keypoints_keep_instance_predicate, + _maybe_create_mask_keep_instance_predicate, + _maybe_create_densepose_keep_instance_predicate, + ] + predicates = [creator(cfg) for creator in specific_predicate_creators] + predicates = [p for p in predicates if p is not None] + if not predicates: + return None + + def combined_predicate(instance: Instance) -> bool: + return any(p(instance) for p in predicates) + + return combined_predicate + + +def _get_train_keep_instance_predicate(cfg: CfgNode): + general_keep_predicate = _maybe_create_general_keep_instance_predicate(cfg) + combined_specific_keep_predicate = _maybe_create_specific_keep_instance_predicate(cfg) + + def combined_general_specific_keep_predicate(instance: Instance) -> bool: + return general_keep_predicate(instance) and combined_specific_keep_predicate(instance) + + if (general_keep_predicate is None) and (combined_specific_keep_predicate is None): + return None + if general_keep_predicate is None: + return combined_specific_keep_predicate + if combined_specific_keep_predicate is None: + return general_keep_predicate + return combined_general_specific_keep_predicate + + +def _get_test_keep_instance_predicate(cfg: CfgNode): + general_keep_predicate = _maybe_create_general_keep_instance_predicate(cfg) + return general_keep_predicate + + +def _maybe_filter_and_map_categories( + dataset_name: str, dataset_dicts: List[Instance] +) -> List[Instance]: + meta = MetadataCatalog.get(dataset_name) + category_id_map = meta.thing_dataset_id_to_contiguous_id + filtered_dataset_dicts = [] + for dataset_dict in dataset_dicts: + anns = [] + for ann in dataset_dict["annotations"]: + cat_id = ann["category_id"] + if cat_id not in category_id_map: + continue + ann["category_id"] = category_id_map[cat_id] + anns.append(ann) + dataset_dict["annotations"] = anns + filtered_dataset_dicts.append(dataset_dict) + return filtered_dataset_dicts + + +def _add_category_whitelists_to_metadata(cfg: CfgNode) -> None: + for dataset_name, whitelisted_cat_ids in cfg.DATASETS.WHITELISTED_CATEGORIES.items(): + meta = MetadataCatalog.get(dataset_name) + meta.whitelisted_categories = whitelisted_cat_ids + logger = logging.getLogger(__name__) + logger.info( + "Whitelisted categories for dataset {}: {}".format( + dataset_name, meta.whitelisted_categories + ) + ) + + +def _add_category_maps_to_metadata(cfg: CfgNode) -> None: + for dataset_name, category_map in cfg.DATASETS.CATEGORY_MAPS.items(): + category_map = { + int(cat_id_src): int(cat_id_dst) for cat_id_src, cat_id_dst in category_map.items() + } + meta = MetadataCatalog.get(dataset_name) + meta.category_map = category_map + logger = logging.getLogger(__name__) + logger.info("Category maps for dataset {}: {}".format(dataset_name, meta.category_map)) + + +def _add_category_info_to_bootstrapping_metadata(dataset_name: str, dataset_cfg: CfgNode) -> None: + meta = MetadataCatalog.get(dataset_name) + meta.category_to_class_mapping = get_category_to_class_mapping(dataset_cfg) + meta.categories = dataset_cfg.CATEGORIES + meta.max_count_per_category = dataset_cfg.MAX_COUNT_PER_CATEGORY + logger = logging.getLogger(__name__) + logger.info( + "Category to class mapping for dataset {}: {}".format( + dataset_name, meta.category_to_class_mapping + ) + ) + + +def _maybe_add_class_to_mesh_name_map_to_metadata(dataset_names: List[str], cfg: CfgNode) -> None: + for dataset_name in dataset_names: + meta = MetadataCatalog.get(dataset_name) + if not hasattr(meta, "class_to_mesh_name"): + meta.class_to_mesh_name = get_class_to_mesh_name_mapping(cfg) + + +def _merge_categories(dataset_names: Collection[str]) -> _MergedCategoriesT: + merged_categories = defaultdict(list) + category_names = {} + for dataset_name in dataset_names: + meta = MetadataCatalog.get(dataset_name) + whitelisted_categories = meta.get("whitelisted_categories") + category_map = meta.get("category_map", {}) + cat_ids = ( + whitelisted_categories if whitelisted_categories is not None else meta.categories.keys() + ) + for cat_id in cat_ids: + cat_name = meta.categories[cat_id] + cat_id_mapped = category_map.get(cat_id, cat_id) + if cat_id_mapped == cat_id or cat_id_mapped in cat_ids: + category_names[cat_id] = cat_name + else: + category_names[cat_id] = str(cat_id_mapped) + # assign temporary mapped category name, this name can be changed + # during the second pass, since mapped ID can correspond to a category + # from a different dataset + cat_name_mapped = meta.categories[cat_id_mapped] + merged_categories[cat_id_mapped].append( + _DatasetCategory( + id=cat_id, + name=cat_name, + mapped_id=cat_id_mapped, + mapped_name=cat_name_mapped, + dataset_name=dataset_name, + ) + ) + # second pass to assign proper mapped category names + for cat_id, categories in merged_categories.items(): + for cat in categories: + if cat_id in category_names and cat.mapped_name != category_names[cat_id]: + cat.mapped_name = category_names[cat_id] + + return merged_categories + + +def _warn_if_merged_different_categories(merged_categories: _MergedCategoriesT) -> None: + logger = logging.getLogger(__name__) + for cat_id in merged_categories: + merged_categories_i = merged_categories[cat_id] + first_cat_name = merged_categories_i[0].name + if len(merged_categories_i) > 1 and not all( + cat.name == first_cat_name for cat in merged_categories_i[1:] + ): + cat_summary_str = ", ".join( + [f"{cat.id} ({cat.name}) from {cat.dataset_name}" for cat in merged_categories_i] + ) + logger.warning( + f"Merged category {cat_id} corresponds to the following categories: " + f"{cat_summary_str}" + ) + + +def combine_detection_dataset_dicts( + dataset_names: Collection[str], + keep_instance_predicate: Optional[InstancePredicate] = None, + proposal_files: Optional[Collection[str]] = None, +) -> List[Instance]: + """ + Load and prepare dataset dicts for training / testing + + Args: + dataset_names (Collection[str]): a list of dataset names + keep_instance_predicate (Callable: Dict[str, Any] -> bool): predicate + applied to instance dicts which defines whether to keep the instance + proposal_files (Collection[str]): if given, a list of object proposal files + that match each dataset in `dataset_names`. + """ + assert len(dataset_names) + if proposal_files is None: + proposal_files = [None] * len(dataset_names) + assert len(dataset_names) == len(proposal_files) + # load datasets and metadata + dataset_name_to_dicts = {} + for dataset_name in dataset_names: + dataset_name_to_dicts[dataset_name] = DatasetCatalog.get(dataset_name) + assert len(dataset_name_to_dicts), f"Dataset '{dataset_name}' is empty!" + # merge categories, requires category metadata to be loaded + # cat_id -> [(orig_cat_id, cat_name, dataset_name)] + merged_categories = _merge_categories(dataset_names) + _warn_if_merged_different_categories(merged_categories) + merged_category_names = [ + merged_categories[cat_id][0].mapped_name for cat_id in sorted(merged_categories) + ] + # map to contiguous category IDs + _add_category_id_to_contiguous_id_maps_to_metadata(merged_categories) + # load annotations and dataset metadata + for dataset_name, proposal_file in zip(dataset_names, proposal_files): + dataset_dicts = dataset_name_to_dicts[dataset_name] + assert len(dataset_dicts), f"Dataset '{dataset_name}' is empty!" + if proposal_file is not None: + dataset_dicts = load_proposals_into_dataset(dataset_dicts, proposal_file) + dataset_dicts = _maybe_filter_and_map_categories(dataset_name, dataset_dicts) + print_instances_class_histogram(dataset_dicts, merged_category_names) + dataset_name_to_dicts[dataset_name] = dataset_dicts + + if keep_instance_predicate is not None: + all_datasets_dicts_plain = [ + d + for d in itertools.chain.from_iterable(dataset_name_to_dicts.values()) + if keep_instance_predicate(d) + ] + else: + all_datasets_dicts_plain = list( + itertools.chain.from_iterable(dataset_name_to_dicts.values()) + ) + return all_datasets_dicts_plain + + +def build_detection_train_loader(cfg: CfgNode, mapper=None): + """ + A data loader is created in a way similar to that of Detectron2. + The main differences are: + - it allows to combine datasets with different but compatible object category sets + + The data loader is created by the following steps: + 1. Use the dataset names in config to query :class:`DatasetCatalog`, and obtain a list of dicts. + 2. Start workers to work on the dicts. Each worker will: + * Map each metadata dict into another format to be consumed by the model. + * Batch them by simply putting dicts into a list. + The batched ``list[mapped_dict]`` is what this dataloader will return. + + Args: + cfg (CfgNode): the config + mapper (callable): a callable which takes a sample (dict) from dataset and + returns the format to be consumed by the model. + By default it will be `DatasetMapper(cfg, True)`. + + Returns: + an infinite iterator of training data + """ + + _add_category_whitelists_to_metadata(cfg) + _add_category_maps_to_metadata(cfg) + _maybe_add_class_to_mesh_name_map_to_metadata(cfg.DATASETS.TRAIN, cfg) + dataset_dicts = combine_detection_dataset_dicts( + cfg.DATASETS.TRAIN, + keep_instance_predicate=_get_train_keep_instance_predicate(cfg), + proposal_files=cfg.DATASETS.PROPOSAL_FILES_TRAIN if cfg.MODEL.LOAD_PROPOSALS else None, + ) + if mapper is None: + mapper = DatasetMapper(cfg, True) + return d2_build_detection_train_loader(cfg, dataset=dataset_dicts, mapper=mapper) + + +def build_detection_test_loader(cfg, dataset_name, mapper=None): + """ + Similar to `build_detection_train_loader`. + But this function uses the given `dataset_name` argument (instead of the names in cfg), + and uses batch size 1. + + Args: + cfg: a detectron2 CfgNode + dataset_name (str): a name of the dataset that's available in the DatasetCatalog + mapper (callable): a callable which takes a sample (dict) from dataset + and returns the format to be consumed by the model. + By default it will be `DatasetMapper(cfg, False)`. + + Returns: + DataLoader: a torch DataLoader, that loads the given detection + dataset, with test-time transformation and batching. + """ + _add_category_whitelists_to_metadata(cfg) + _add_category_maps_to_metadata(cfg) + _maybe_add_class_to_mesh_name_map_to_metadata([dataset_name], cfg) + dataset_dicts = combine_detection_dataset_dicts( + [dataset_name], + keep_instance_predicate=_get_test_keep_instance_predicate(cfg), + proposal_files=[ + cfg.DATASETS.PROPOSAL_FILES_TEST[list(cfg.DATASETS.TEST).index(dataset_name)] + ] + if cfg.MODEL.LOAD_PROPOSALS + else None, + ) + sampler = None + if not cfg.DENSEPOSE_EVALUATION.DISTRIBUTED_INFERENCE: + sampler = torch.utils.data.SequentialSampler(dataset_dicts) + if mapper is None: + mapper = DatasetMapper(cfg, False) + return d2_build_detection_test_loader( + dataset_dicts, mapper=mapper, num_workers=cfg.DATALOADER.NUM_WORKERS, sampler=sampler + ) + + +def build_frame_selector(cfg: CfgNode): + strategy = FrameSelectionStrategy(cfg.STRATEGY) + if strategy == FrameSelectionStrategy.RANDOM_K: + frame_selector = RandomKFramesSelector(cfg.NUM_IMAGES) + elif strategy == FrameSelectionStrategy.FIRST_K: + frame_selector = FirstKFramesSelector(cfg.NUM_IMAGES) + elif strategy == FrameSelectionStrategy.LAST_K: + frame_selector = LastKFramesSelector(cfg.NUM_IMAGES) + elif strategy == FrameSelectionStrategy.ALL: + frame_selector = None + # pyre-fixme[61]: `frame_selector` may not be initialized here. + return frame_selector + + +def build_transform(cfg: CfgNode, data_type: str): + if cfg.TYPE == "resize": + if data_type == "image": + return ImageResizeTransform(cfg.MIN_SIZE, cfg.MAX_SIZE) + raise ValueError(f"Unknown transform {cfg.TYPE} for data type {data_type}") + + +def build_combined_loader(cfg: CfgNode, loaders: Collection[Loader], ratios: Sequence[float]): + images_per_worker = _compute_num_images_per_worker(cfg) + return CombinedDataLoader(loaders, images_per_worker, ratios) + + +def build_bootstrap_dataset(dataset_name: str, cfg: CfgNode) -> Sequence[torch.Tensor]: + """ + Build dataset that provides data to bootstrap on + + Args: + dataset_name (str): Name of the dataset, needs to have associated metadata + to load the data + cfg (CfgNode): bootstrapping config + Returns: + Sequence[Tensor] - dataset that provides image batches, Tensors of size + [N, C, H, W] of type float32 + """ + logger = logging.getLogger(__name__) + _add_category_info_to_bootstrapping_metadata(dataset_name, cfg) + meta = MetadataCatalog.get(dataset_name) + factory = BootstrapDatasetFactoryCatalog.get(meta.dataset_type) + dataset = None + if factory is not None: + dataset = factory(meta, cfg) + if dataset is None: + logger.warning(f"Failed to create dataset {dataset_name} of type {meta.dataset_type}") + return dataset + + +def build_data_sampler(cfg: CfgNode, sampler_cfg: CfgNode, embedder: Optional[torch.nn.Module]): + if sampler_cfg.TYPE == "densepose_uniform": + data_sampler = PredictionToGroundTruthSampler() + # transform densepose pred -> gt + data_sampler.register_sampler( + "pred_densepose", + "gt_densepose", + DensePoseUniformSampler(count_per_class=sampler_cfg.COUNT_PER_CLASS), + ) + data_sampler.register_sampler("pred_densepose", "gt_masks", MaskFromDensePoseSampler()) + return data_sampler + elif sampler_cfg.TYPE == "densepose_UV_confidence": + data_sampler = PredictionToGroundTruthSampler() + # transform densepose pred -> gt + data_sampler.register_sampler( + "pred_densepose", + "gt_densepose", + DensePoseConfidenceBasedSampler( + confidence_channel="sigma_2", + count_per_class=sampler_cfg.COUNT_PER_CLASS, + search_proportion=0.5, + ), + ) + data_sampler.register_sampler("pred_densepose", "gt_masks", MaskFromDensePoseSampler()) + return data_sampler + elif sampler_cfg.TYPE == "densepose_fine_segm_confidence": + data_sampler = PredictionToGroundTruthSampler() + # transform densepose pred -> gt + data_sampler.register_sampler( + "pred_densepose", + "gt_densepose", + DensePoseConfidenceBasedSampler( + confidence_channel="fine_segm_confidence", + count_per_class=sampler_cfg.COUNT_PER_CLASS, + search_proportion=0.5, + ), + ) + data_sampler.register_sampler("pred_densepose", "gt_masks", MaskFromDensePoseSampler()) + return data_sampler + elif sampler_cfg.TYPE == "densepose_coarse_segm_confidence": + data_sampler = PredictionToGroundTruthSampler() + # transform densepose pred -> gt + data_sampler.register_sampler( + "pred_densepose", + "gt_densepose", + DensePoseConfidenceBasedSampler( + confidence_channel="coarse_segm_confidence", + count_per_class=sampler_cfg.COUNT_PER_CLASS, + search_proportion=0.5, + ), + ) + data_sampler.register_sampler("pred_densepose", "gt_masks", MaskFromDensePoseSampler()) + return data_sampler + elif sampler_cfg.TYPE == "densepose_cse_uniform": + assert embedder is not None + data_sampler = PredictionToGroundTruthSampler() + # transform densepose pred -> gt + data_sampler.register_sampler( + "pred_densepose", + "gt_densepose", + DensePoseCSEUniformSampler( + cfg=cfg, + use_gt_categories=sampler_cfg.USE_GROUND_TRUTH_CATEGORIES, + embedder=embedder, + count_per_class=sampler_cfg.COUNT_PER_CLASS, + ), + ) + data_sampler.register_sampler("pred_densepose", "gt_masks", MaskFromDensePoseSampler()) + return data_sampler + elif sampler_cfg.TYPE == "densepose_cse_coarse_segm_confidence": + assert embedder is not None + data_sampler = PredictionToGroundTruthSampler() + # transform densepose pred -> gt + data_sampler.register_sampler( + "pred_densepose", + "gt_densepose", + DensePoseCSEConfidenceBasedSampler( + cfg=cfg, + use_gt_categories=sampler_cfg.USE_GROUND_TRUTH_CATEGORIES, + embedder=embedder, + confidence_channel="coarse_segm_confidence", + count_per_class=sampler_cfg.COUNT_PER_CLASS, + search_proportion=0.5, + ), + ) + data_sampler.register_sampler("pred_densepose", "gt_masks", MaskFromDensePoseSampler()) + return data_sampler + + raise ValueError(f"Unknown data sampler type {sampler_cfg.TYPE}") + + +def build_data_filter(cfg: CfgNode): + if cfg.TYPE == "detection_score": + min_score = cfg.MIN_VALUE + return ScoreBasedFilter(min_score=min_score) + raise ValueError(f"Unknown data filter type {cfg.TYPE}") + + +def build_inference_based_loader( + cfg: CfgNode, + dataset_cfg: CfgNode, + model: torch.nn.Module, + embedder: Optional[torch.nn.Module] = None, +) -> InferenceBasedLoader: + """ + Constructs data loader based on inference results of a model. + """ + dataset = build_bootstrap_dataset(dataset_cfg.DATASET, dataset_cfg.IMAGE_LOADER) + meta = MetadataCatalog.get(dataset_cfg.DATASET) + training_sampler = TrainingSampler(len(dataset)) + data_loader = torch.utils.data.DataLoader( + dataset, # pyre-ignore[6] + batch_size=dataset_cfg.IMAGE_LOADER.BATCH_SIZE, + sampler=training_sampler, + num_workers=dataset_cfg.IMAGE_LOADER.NUM_WORKERS, + collate_fn=trivial_batch_collator, + worker_init_fn=worker_init_reset_seed, + ) + return InferenceBasedLoader( + model, + data_loader=data_loader, + data_sampler=build_data_sampler(cfg, dataset_cfg.DATA_SAMPLER, embedder), + data_filter=build_data_filter(dataset_cfg.FILTER), + shuffle=True, + batch_size=dataset_cfg.INFERENCE.OUTPUT_BATCH_SIZE, + inference_batch_size=dataset_cfg.INFERENCE.INPUT_BATCH_SIZE, + category_to_class_mapping=meta.category_to_class_mapping, + ) + + +def has_inference_based_loaders(cfg: CfgNode) -> bool: + """ + Returns True, if at least one inferense-based loader must + be instantiated for training + """ + return len(cfg.BOOTSTRAP_DATASETS) > 0 + + +def build_inference_based_loaders( + cfg: CfgNode, model: torch.nn.Module +) -> Tuple[List[InferenceBasedLoader], List[float]]: + loaders = [] + ratios = [] + embedder = build_densepose_embedder(cfg).to(device=model.device) # pyre-ignore[16] + for dataset_spec in cfg.BOOTSTRAP_DATASETS: + dataset_cfg = get_bootstrap_dataset_config().clone() + dataset_cfg.merge_from_other_cfg(CfgNode(dataset_spec)) + loader = build_inference_based_loader(cfg, dataset_cfg, model, embedder) + loaders.append(loader) + ratios.append(dataset_cfg.RATIO) + return loaders, ratios + + +def build_video_list_dataset(meta: Metadata, cfg: CfgNode): + video_list_fpath = meta.video_list_fpath + video_base_path = meta.video_base_path + category = meta.category + if cfg.TYPE == "video_keyframe": + frame_selector = build_frame_selector(cfg.SELECT) + transform = build_transform(cfg.TRANSFORM, data_type="image") + video_list = video_list_from_file(video_list_fpath, video_base_path) + keyframe_helper_fpath = getattr(cfg, "KEYFRAME_HELPER", None) + return VideoKeyframeDataset( + video_list, category, frame_selector, transform, keyframe_helper_fpath + ) + + +class _BootstrapDatasetFactoryCatalog(UserDict): + """ + A global dictionary that stores information about bootstrapped datasets creation functions + from metadata and config, for diverse DatasetType + """ + + def register(self, dataset_type: DatasetType, factory: Callable[[Metadata, CfgNode], Dataset]): + """ + Args: + dataset_type (DatasetType): a DatasetType e.g. DatasetType.VIDEO_LIST + factory (Callable[Metadata, CfgNode]): a callable which takes Metadata and cfg + arguments and returns a dataset object. + """ + assert dataset_type not in self, "Dataset '{}' is already registered!".format(dataset_type) + self[dataset_type] = factory + + +BootstrapDatasetFactoryCatalog = _BootstrapDatasetFactoryCatalog() +BootstrapDatasetFactoryCatalog.register(DatasetType.VIDEO_LIST, build_video_list_dataset) diff --git a/detectron2/projects/DensePose/densepose/data/combined_loader.py b/detectron2/projects/DensePose/densepose/data/combined_loader.py new file mode 100755 index 0000000..5bfbbde --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/combined_loader.py @@ -0,0 +1,44 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +from collections import deque +from typing import Any, Collection, Deque, Iterable, Iterator, List, Sequence + +Loader = Iterable[Any] + + +def _pooled_next(iterator: Iterator[Any], pool: Deque[Any]): + if not pool: + pool.extend(next(iterator)) + return pool.popleft() + + +class CombinedDataLoader: + """ + Combines data loaders using the provided sampling ratios + """ + + BATCH_COUNT = 100 + + def __init__(self, loaders: Collection[Loader], batch_size: int, ratios: Sequence[float]): + self.loaders = loaders + self.batch_size = batch_size + self.ratios = ratios + + def __iter__(self) -> Iterator[List[Any]]: + iters = [iter(loader) for loader in self.loaders] + indices = [] + pool = [deque()] * len(iters) + # infinite iterator, as in D2 + while True: + if not indices: + # just a buffer of indices, its size doesn't matter + # as long as it's a multiple of batch_size + k = self.batch_size * self.BATCH_COUNT + indices = random.choices(range(len(self.loaders)), self.ratios, k=k) + try: + batch = [_pooled_next(iters[i], pool[i]) for i in indices[: self.batch_size]] + except StopIteration: + break + indices = indices[self.batch_size :] + yield batch diff --git a/detectron2/projects/DensePose/densepose/data/dataset_mapper.py b/detectron2/projects/DensePose/densepose/data/dataset_mapper.py new file mode 100755 index 0000000..3229c4d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/dataset_mapper.py @@ -0,0 +1,168 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import copy +import logging +from typing import Any, Dict, List, Tuple +import torch + +from detectron2.data import MetadataCatalog +from detectron2.data import detection_utils as utils +from detectron2.data import transforms as T +from detectron2.layers import ROIAlign +from detectron2.structures import BoxMode +from detectron2.utils.file_io import PathManager + +from densepose.structures import DensePoseDataRelative, DensePoseList, DensePoseTransformData + + +def build_augmentation(cfg, is_train): + logger = logging.getLogger(__name__) + result = utils.build_augmentation(cfg, is_train) + if is_train: + random_rotation = T.RandomRotation( + cfg.INPUT.ROTATION_ANGLES, expand=False, sample_style="choice" + ) + result.append(random_rotation) + logger.info("DensePose-specific augmentation used in training: " + str(random_rotation)) + return result + + +class DatasetMapper: + """ + A customized version of `detectron2.data.DatasetMapper` + """ + + def __init__(self, cfg, is_train=True): + self.augmentation = build_augmentation(cfg, is_train) + + # fmt: off + self.img_format = cfg.INPUT.FORMAT + self.mask_on = ( + cfg.MODEL.MASK_ON or ( + cfg.MODEL.DENSEPOSE_ON + and cfg.MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS) + ) + self.keypoint_on = cfg.MODEL.KEYPOINT_ON + self.densepose_on = cfg.MODEL.DENSEPOSE_ON + assert not cfg.MODEL.LOAD_PROPOSALS, "not supported yet" + # fmt: on + if self.keypoint_on and is_train: + # Flip only makes sense in training + self.keypoint_hflip_indices = utils.create_keypoint_hflip_indices(cfg.DATASETS.TRAIN) + else: + self.keypoint_hflip_indices = None + + if self.densepose_on: + densepose_transform_srcs = [ + MetadataCatalog.get(ds).densepose_transform_src + for ds in cfg.DATASETS.TRAIN + cfg.DATASETS.TEST + ] + assert len(densepose_transform_srcs) > 0 + # TODO: check that DensePose transformation data is the same for + # all the datasets. Otherwise one would have to pass DB ID with + # each entry to select proper transformation data. For now, since + # all DensePose annotated data uses the same data semantics, we + # omit this check. + densepose_transform_data_fpath = PathManager.get_local_path(densepose_transform_srcs[0]) + self.densepose_transform_data = DensePoseTransformData.load( + densepose_transform_data_fpath + ) + + self.is_train = is_train + + def __call__(self, dataset_dict): + """ + Args: + dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. + + Returns: + dict: a format that builtin models in detectron2 accept + """ + dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below + image = utils.read_image(dataset_dict["file_name"], format=self.img_format) + utils.check_image_size(dataset_dict, image) + + image, transforms = T.apply_transform_gens(self.augmentation, image) + image_shape = image.shape[:2] # h, w + dataset_dict["image"] = torch.as_tensor(image.transpose(2, 0, 1).astype("float32")) + + if not self.is_train: + dataset_dict.pop("annotations", None) + return dataset_dict + + for anno in dataset_dict["annotations"]: + if not self.mask_on: + anno.pop("segmentation", None) + if not self.keypoint_on: + anno.pop("keypoints", None) + + # USER: Implement additional transformations if you have other types of data + # USER: Don't call transpose_densepose if you don't need + annos = [ + self._transform_densepose( + utils.transform_instance_annotations( + obj, transforms, image_shape, keypoint_hflip_indices=self.keypoint_hflip_indices + ), + transforms, + ) + for obj in dataset_dict.pop("annotations") + if obj.get("iscrowd", 0) == 0 + ] + + if self.mask_on: + self._add_densepose_masks_as_segmentation(annos, image_shape) + + instances = utils.annotations_to_instances(annos, image_shape, mask_format="bitmask") + densepose_annotations = [obj.get("densepose") for obj in annos] + if densepose_annotations and not all(v is None for v in densepose_annotations): + instances.gt_densepose = DensePoseList( + densepose_annotations, instances.gt_boxes, image_shape + ) + + dataset_dict["instances"] = instances[instances.gt_boxes.nonempty()] + return dataset_dict + + def _transform_densepose(self, annotation, transforms): + if not self.densepose_on: + return annotation + + # Handle densepose annotations + is_valid, reason_not_valid = DensePoseDataRelative.validate_annotation(annotation) + if is_valid: + densepose_data = DensePoseDataRelative(annotation, cleanup=True) + densepose_data.apply_transform(transforms, self.densepose_transform_data) + annotation["densepose"] = densepose_data + else: + # logger = logging.getLogger(__name__) + # logger.debug("Could not load DensePose annotation: {}".format(reason_not_valid)) + DensePoseDataRelative.cleanup_annotation(annotation) + # NOTE: annotations for certain instances may be unavailable. + # 'None' is accepted by the DensePostList data structure. + annotation["densepose"] = None + return annotation + + def _add_densepose_masks_as_segmentation( + self, annotations: List[Dict[str, Any]], image_shape_hw: Tuple[int, int] + ): + for obj in annotations: + if ("densepose" not in obj) or ("segmentation" in obj): + continue + # DP segmentation: torch.Tensor [S, S] of float32, S=256 + segm_dp = torch.zeros_like(obj["densepose"].segm) + segm_dp[obj["densepose"].segm > 0] = 1 + segm_h, segm_w = segm_dp.shape + bbox_segm_dp = torch.tensor((0, 0, segm_h - 1, segm_w - 1), dtype=torch.float32) + # image bbox + x0, y0, x1, y1 = ( + v.item() for v in BoxMode.convert(obj["bbox"], obj["bbox_mode"], BoxMode.XYXY_ABS) + ) + segm_aligned = ( + ROIAlign((y1 - y0, x1 - x0), 1.0, 0, aligned=True) + .forward(segm_dp.view(1, 1, *segm_dp.shape), bbox_segm_dp) + .squeeze() + ) + image_mask = torch.zeros(*image_shape_hw, dtype=torch.float32) + image_mask[y0:y1, x0:x1] = segm_aligned + # segmentation for BitMask: np.array [H, W] of bool + obj["segmentation"] = image_mask >= 0.5 diff --git a/detectron2/projects/DensePose/densepose/data/datasets/__init__.py b/detectron2/projects/DensePose/densepose/data/datasets/__init__.py new file mode 100755 index 0000000..260ccb9 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/datasets/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from . import builtin # ensure the builtin datasets are registered + +__all__ = [k for k in globals().keys() if "builtin" not in k and not k.startswith("_")] diff --git a/detectron2/projects/DensePose/densepose/data/datasets/builtin.py b/detectron2/projects/DensePose/densepose/data/datasets/builtin.py new file mode 100755 index 0000000..7572cd6 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/datasets/builtin.py @@ -0,0 +1,16 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .chimpnsee import register_dataset as register_chimpnsee_dataset +from .coco import BASE_DATASETS as BASE_COCO_DATASETS +from .coco import DATASETS as COCO_DATASETS +from .coco import register_datasets as register_coco_datasets +from .lvis import DATASETS as LVIS_DATASETS +from .lvis import register_datasets as register_lvis_datasets + +DEFAULT_DATASETS_ROOT = "datasets" + + +register_coco_datasets(COCO_DATASETS, DEFAULT_DATASETS_ROOT) +register_coco_datasets(BASE_COCO_DATASETS, DEFAULT_DATASETS_ROOT) +register_lvis_datasets(LVIS_DATASETS, DEFAULT_DATASETS_ROOT) + +register_chimpnsee_dataset(DEFAULT_DATASETS_ROOT) # pyre-ignore[19] diff --git a/detectron2/projects/DensePose/densepose/data/datasets/chimpnsee.py b/detectron2/projects/DensePose/densepose/data/datasets/chimpnsee.py new file mode 100755 index 0000000..61e0b50 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/datasets/chimpnsee.py @@ -0,0 +1,29 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Optional + +from detectron2.data import DatasetCatalog, MetadataCatalog + +from ..utils import maybe_prepend_base_path +from .dataset_type import DatasetType + +CHIMPNSEE_DATASET_NAME = "chimpnsee" + + +def register_dataset(datasets_root: Optional[str] = None) -> None: + def empty_load_callback(): + pass + + video_list_fpath = maybe_prepend_base_path( + datasets_root, + "chimpnsee/cdna.eva.mpg.de/video_list.txt", + ) + video_base_path = maybe_prepend_base_path(datasets_root, "chimpnsee/cdna.eva.mpg.de") + + DatasetCatalog.register(CHIMPNSEE_DATASET_NAME, empty_load_callback) + MetadataCatalog.get(CHIMPNSEE_DATASET_NAME).set( + dataset_type=DatasetType.VIDEO_LIST, + video_list_fpath=video_list_fpath, + video_base_path=video_base_path, + category="chimpanzee", + ) diff --git a/detectron2/projects/DensePose/densepose/data/datasets/coco.py b/detectron2/projects/DensePose/densepose/data/datasets/coco.py new file mode 100755 index 0000000..c19f7b0 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/datasets/coco.py @@ -0,0 +1,432 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import contextlib +import io +import logging +import os +from collections import defaultdict +from dataclasses import dataclass +from typing import Any, Dict, Iterable, List, Optional +from fvcore.common.timer import Timer + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.structures import BoxMode +from detectron2.utils.file_io import PathManager + +from ..utils import maybe_prepend_base_path + +DENSEPOSE_MASK_KEY = "dp_masks" +DENSEPOSE_IUV_KEYS_WITHOUT_MASK = ["dp_x", "dp_y", "dp_I", "dp_U", "dp_V"] +DENSEPOSE_CSE_KEYS_WITHOUT_MASK = ["dp_x", "dp_y", "dp_vertex", "ref_model"] +DENSEPOSE_ALL_POSSIBLE_KEYS = set( + DENSEPOSE_IUV_KEYS_WITHOUT_MASK + DENSEPOSE_CSE_KEYS_WITHOUT_MASK + [DENSEPOSE_MASK_KEY] +) +DENSEPOSE_METADATA_URL_PREFIX = "https://dl.fbaipublicfiles.com/densepose/data/" + + +@dataclass +class CocoDatasetInfo: + name: str + images_root: str + annotations_fpath: str + + +DATASETS = [ + CocoDatasetInfo( + name="densepose_coco_2014_train", + images_root="coco/train2014", + annotations_fpath="coco/annotations/densepose_train2014.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_minival", + images_root="coco/val2014", + annotations_fpath="coco/annotations/densepose_minival2014.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_minival_100", + images_root="coco/val2014", + annotations_fpath="coco/annotations/densepose_minival2014_100.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_valminusminival", + images_root="coco/val2014", + annotations_fpath="coco/annotations/densepose_valminusminival2014.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_train_cse", + images_root="coco/train2014", + annotations_fpath="coco_cse/densepose_train2014_cse.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_minival_cse", + images_root="coco/val2014", + annotations_fpath="coco_cse/densepose_minival2014_cse.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_minival_100_cse", + images_root="coco/val2014", + annotations_fpath="coco_cse/densepose_minival2014_100_cse.json", + ), + CocoDatasetInfo( + name="densepose_coco_2014_valminusminival_cse", + images_root="coco/val2014", + annotations_fpath="coco_cse/densepose_valminusminival2014_cse.json", + ), + CocoDatasetInfo( + name="densepose_chimps", + images_root="densepose_chimps/images", + annotations_fpath="densepose_chimps/densepose_chimps_densepose.json", + ), + CocoDatasetInfo( + name="densepose_chimps_cse_train", + images_root="densepose_chimps/images", + annotations_fpath="densepose_chimps/densepose_chimps_cse_train.json", + ), + CocoDatasetInfo( + name="densepose_chimps_cse_val", + images_root="densepose_chimps/images", + annotations_fpath="densepose_chimps/densepose_chimps_cse_val.json", + ), + CocoDatasetInfo( + name="posetrack2017_train", + images_root="posetrack2017/posetrack_data_2017", + annotations_fpath="posetrack2017/densepose_posetrack_train2017.json", + ), + CocoDatasetInfo( + name="posetrack2017_val", + images_root="posetrack2017/posetrack_data_2017", + annotations_fpath="posetrack2017/densepose_posetrack_val2017.json", + ), + CocoDatasetInfo( + name="lvis_v05_train", + images_root="coco/train2017", + annotations_fpath="lvis/lvis_v0.5_plus_dp_train.json", + ), + CocoDatasetInfo( + name="lvis_v05_val", + images_root="coco/val2017", + annotations_fpath="lvis/lvis_v0.5_plus_dp_val.json", + ), +] + + +BASE_DATASETS = [ + CocoDatasetInfo( + name="base_coco_2017_train", + images_root="coco/train2017", + annotations_fpath="coco/annotations/instances_train2017.json", + ), + CocoDatasetInfo( + name="base_coco_2017_val", + images_root="coco/val2017", + annotations_fpath="coco/annotations/instances_val2017.json", + ), + CocoDatasetInfo( + name="base_coco_2017_val_100", + images_root="coco/val2017", + annotations_fpath="coco/annotations/instances_val2017_100.json", + ), +] + + +def get_metadata(base_path: Optional[str]) -> Dict[str, Any]: + """ + Returns metadata associated with COCO DensePose datasets + + Args: + base_path: Optional[str] + Base path used to load metadata from + + Returns: + Dict[str, Any] + Metadata in the form of a dictionary + """ + meta = { + "densepose_transform_src": maybe_prepend_base_path(base_path, "UV_symmetry_transforms.mat"), + "densepose_smpl_subdiv": maybe_prepend_base_path(base_path, "SMPL_subdiv.mat"), + "densepose_smpl_subdiv_transform": maybe_prepend_base_path( + base_path, + "SMPL_SUBDIV_TRANSFORM.mat", + ), + } + return meta + + +def _load_coco_annotations(json_file: str): + """ + Load COCO annotations from a JSON file + + Args: + json_file: str + Path to the file to load annotations from + Returns: + Instance of `pycocotools.coco.COCO` that provides access to annotations + data + """ + from pycocotools.coco import COCO + + logger = logging.getLogger(__name__) + timer = Timer() + with contextlib.redirect_stdout(io.StringIO()): + coco_api = COCO(json_file) + if timer.seconds() > 1: + logger.info("Loading {} takes {:.2f} seconds.".format(json_file, timer.seconds())) + return coco_api + + +def _add_categories_metadata(dataset_name: str, categories: List[Dict[str, Any]]): + meta = MetadataCatalog.get(dataset_name) + meta.categories = {c["id"]: c["name"] for c in categories} + logger = logging.getLogger(__name__) + logger.info("Dataset {} categories: {}".format(dataset_name, meta.categories)) + + +def _verify_annotations_have_unique_ids(json_file: str, anns: List[List[Dict[str, Any]]]): + if "minival" in json_file: + # Skip validation on COCO2014 valminusminival and minival annotations + # The ratio of buggy annotations there is tiny and does not affect accuracy + # Therefore we explicitly white-list them + return + ann_ids = [ann["id"] for anns_per_image in anns for ann in anns_per_image] + assert len(set(ann_ids)) == len(ann_ids), "Annotation ids in '{}' are not unique!".format( + json_file + ) + + +def _maybe_add_bbox(obj: Dict[str, Any], ann_dict: Dict[str, Any]): + if "bbox" not in ann_dict: + return + obj["bbox"] = ann_dict["bbox"] + obj["bbox_mode"] = BoxMode.XYWH_ABS + + +def _maybe_add_segm(obj: Dict[str, Any], ann_dict: Dict[str, Any]): + if "segmentation" not in ann_dict: + return + segm = ann_dict["segmentation"] + if not isinstance(segm, dict): + # filter out invalid polygons (< 3 points) + segm = [poly for poly in segm if len(poly) % 2 == 0 and len(poly) >= 6] + if len(segm) == 0: + return + obj["segmentation"] = segm + + +def _maybe_add_keypoints(obj: Dict[str, Any], ann_dict: Dict[str, Any]): + if "keypoints" not in ann_dict: + return + keypts = ann_dict["keypoints"] # list[int] + for idx, v in enumerate(keypts): + if idx % 3 != 2: + # COCO's segmentation coordinates are floating points in [0, H or W], + # but keypoint coordinates are integers in [0, H-1 or W-1] + # Therefore we assume the coordinates are "pixel indices" and + # add 0.5 to convert to floating point coordinates. + keypts[idx] = v + 0.5 + obj["keypoints"] = keypts + + +def _maybe_add_densepose(obj: Dict[str, Any], ann_dict: Dict[str, Any]): + for key in DENSEPOSE_ALL_POSSIBLE_KEYS: + if key in ann_dict: + obj[key] = ann_dict[key] + + +def _combine_images_with_annotations( + dataset_name: str, + image_root: str, + img_datas: Iterable[Dict[str, Any]], + ann_datas: Iterable[Iterable[Dict[str, Any]]], +): + + ann_keys = ["iscrowd", "category_id"] + dataset_dicts = [] + contains_video_frame_info = False + + for img_dict, ann_dicts in zip(img_datas, ann_datas): + record = {} + record["file_name"] = os.path.join(image_root, img_dict["file_name"]) + record["height"] = img_dict["height"] + record["width"] = img_dict["width"] + record["image_id"] = img_dict["id"] + record["dataset"] = dataset_name + if "frame_id" in img_dict: + record["frame_id"] = img_dict["frame_id"] + record["video_id"] = img_dict.get("vid_id", None) + contains_video_frame_info = True + objs = [] + for ann_dict in ann_dicts: + assert ann_dict["image_id"] == record["image_id"] + assert ann_dict.get("ignore", 0) == 0 + obj = {key: ann_dict[key] for key in ann_keys if key in ann_dict} + _maybe_add_bbox(obj, ann_dict) + _maybe_add_segm(obj, ann_dict) + _maybe_add_keypoints(obj, ann_dict) + _maybe_add_densepose(obj, ann_dict) + objs.append(obj) + record["annotations"] = objs + dataset_dicts.append(record) + if contains_video_frame_info: + create_video_frame_mapping(dataset_name, dataset_dicts) + return dataset_dicts + + +def get_contiguous_id_to_category_id_map(metadata): + cat_id_2_cont_id = metadata.thing_dataset_id_to_contiguous_id + cont_id_2_cat_id = {} + for cat_id, cont_id in cat_id_2_cont_id.items(): + if cont_id in cont_id_2_cat_id: + continue + cont_id_2_cat_id[cont_id] = cat_id + return cont_id_2_cat_id + + +def maybe_filter_categories_cocoapi(dataset_name, coco_api): + meta = MetadataCatalog.get(dataset_name) + cont_id_2_cat_id = get_contiguous_id_to_category_id_map(meta) + cat_id_2_cont_id = meta.thing_dataset_id_to_contiguous_id + # filter categories + cats = [] + for cat in coco_api.dataset["categories"]: + cat_id = cat["id"] + if cat_id not in cat_id_2_cont_id: + continue + cont_id = cat_id_2_cont_id[cat_id] + if (cont_id in cont_id_2_cat_id) and (cont_id_2_cat_id[cont_id] == cat_id): + cats.append(cat) + coco_api.dataset["categories"] = cats + # filter annotations, if multiple categories are mapped to a single + # contiguous ID, use only one category ID and map all annotations to that category ID + anns = [] + for ann in coco_api.dataset["annotations"]: + cat_id = ann["category_id"] + if cat_id not in cat_id_2_cont_id: + continue + cont_id = cat_id_2_cont_id[cat_id] + ann["category_id"] = cont_id_2_cat_id[cont_id] + anns.append(ann) + coco_api.dataset["annotations"] = anns + # recreate index + coco_api.createIndex() + + +def maybe_filter_and_map_categories_cocoapi(dataset_name, coco_api): + meta = MetadataCatalog.get(dataset_name) + category_id_map = meta.thing_dataset_id_to_contiguous_id + # map categories + cats = [] + for cat in coco_api.dataset["categories"]: + cat_id = cat["id"] + if cat_id not in category_id_map: + continue + cat["id"] = category_id_map[cat_id] + cats.append(cat) + coco_api.dataset["categories"] = cats + # map annotation categories + anns = [] + for ann in coco_api.dataset["annotations"]: + cat_id = ann["category_id"] + if cat_id not in category_id_map: + continue + ann["category_id"] = category_id_map[cat_id] + anns.append(ann) + coco_api.dataset["annotations"] = anns + # recreate index + coco_api.createIndex() + + +def create_video_frame_mapping(dataset_name, dataset_dicts): + mapping = defaultdict(dict) + for d in dataset_dicts: + video_id = d.get("video_id") + if video_id is None: + continue + mapping[video_id].update({d["frame_id"]: d["file_name"]}) + MetadataCatalog.get(dataset_name).set(video_frame_mapping=mapping) + + +def load_coco_json(annotations_json_file: str, image_root: str, dataset_name: str): + """ + Loads a JSON file with annotations in COCO instances format. + Replaces `detectron2.data.datasets.coco.load_coco_json` to handle metadata + in a more flexible way. Postpones category mapping to a later stage to be + able to combine several datasets with different (but coherent) sets of + categories. + + Args: + + annotations_json_file: str + Path to the JSON file with annotations in COCO instances format. + image_root: str + directory that contains all the images + dataset_name: str + the name that identifies a dataset, e.g. "densepose_coco_2014_train" + extra_annotation_keys: Optional[List[str]] + If provided, these keys are used to extract additional data from + the annotations. + """ + coco_api = _load_coco_annotations(PathManager.get_local_path(annotations_json_file)) + _add_categories_metadata(dataset_name, coco_api.loadCats(coco_api.getCatIds())) + # sort indices for reproducible results + img_ids = sorted(coco_api.imgs.keys()) + # imgs is a list of dicts, each looks something like: + # {'license': 4, + # 'url': 'http://farm6.staticflickr.com/5454/9413846304_881d5e5c3b_z.jpg', + # 'file_name': 'COCO_val2014_000000001268.jpg', + # 'height': 427, + # 'width': 640, + # 'date_captured': '2013-11-17 05:57:24', + # 'id': 1268} + imgs = coco_api.loadImgs(img_ids) + logger = logging.getLogger(__name__) + logger.info("Loaded {} images in COCO format from {}".format(len(imgs), annotations_json_file)) + # anns is a list[list[dict]], where each dict is an annotation + # record for an object. The inner list enumerates the objects in an image + # and the outer list enumerates over images. + anns = [coco_api.imgToAnns[img_id] for img_id in img_ids] + _verify_annotations_have_unique_ids(annotations_json_file, anns) + dataset_records = _combine_images_with_annotations(dataset_name, image_root, imgs, anns) + return dataset_records + + +def register_dataset(dataset_data: CocoDatasetInfo, datasets_root: Optional[str] = None): + """ + Registers provided COCO DensePose dataset + + Args: + dataset_data: CocoDatasetInfo + Dataset data + datasets_root: Optional[str] + Datasets root folder (default: None) + """ + annotations_fpath = maybe_prepend_base_path(datasets_root, dataset_data.annotations_fpath) + images_root = maybe_prepend_base_path(datasets_root, dataset_data.images_root) + + def load_annotations(): + return load_coco_json( + annotations_json_file=annotations_fpath, + image_root=images_root, + dataset_name=dataset_data.name, + ) + + DatasetCatalog.register(dataset_data.name, load_annotations) + MetadataCatalog.get(dataset_data.name).set( + json_file=annotations_fpath, + image_root=images_root, + **get_metadata(DENSEPOSE_METADATA_URL_PREFIX) + ) + + +def register_datasets( + datasets_data: Iterable[CocoDatasetInfo], datasets_root: Optional[str] = None +): + """ + Registers provided COCO DensePose datasets + + Args: + datasets_data: Iterable[CocoDatasetInfo] + An iterable of dataset datas + datasets_root: Optional[str] + Datasets root folder (default: None) + """ + for dataset_data in datasets_data: + register_dataset(dataset_data, datasets_root) diff --git a/detectron2/projects/DensePose/densepose/data/datasets/dataset_type.py b/detectron2/projects/DensePose/densepose/data/datasets/dataset_type.py new file mode 100755 index 0000000..ed8f8f2 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/datasets/dataset_type.py @@ -0,0 +1,11 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from enum import Enum + + +class DatasetType(Enum): + """ + Dataset type, mostly used for datasets that contain data to bootstrap models on + """ + + VIDEO_LIST = "video_list" diff --git a/detectron2/projects/DensePose/densepose/data/datasets/lvis.py b/detectron2/projects/DensePose/densepose/data/datasets/lvis.py new file mode 100755 index 0000000..b4af9fa --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/datasets/lvis.py @@ -0,0 +1,257 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import os +from typing import Any, Dict, Iterable, List, Optional +from fvcore.common.timer import Timer + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.data.datasets.lvis import get_lvis_instances_meta +from detectron2.structures import BoxMode +from detectron2.utils.file_io import PathManager + +from ..utils import maybe_prepend_base_path +from .coco import ( + DENSEPOSE_ALL_POSSIBLE_KEYS, + DENSEPOSE_METADATA_URL_PREFIX, + CocoDatasetInfo, + get_metadata, +) + +DATASETS = [ + CocoDatasetInfo( + name="densepose_lvis_v1_ds1_train_v1", + images_root="coco_", + annotations_fpath="lvis/densepose_lvis_v1_ds1_train_v1.json", + ), + CocoDatasetInfo( + name="densepose_lvis_v1_ds1_val_v1", + images_root="coco_", + annotations_fpath="lvis/densepose_lvis_v1_ds1_val_v1.json", + ), + CocoDatasetInfo( + name="densepose_lvis_v1_ds2_train_v1", + images_root="coco_", + annotations_fpath="lvis/densepose_lvis_v1_ds2_train_v1.json", + ), + CocoDatasetInfo( + name="densepose_lvis_v1_ds2_val_v1", + images_root="coco_", + annotations_fpath="lvis/densepose_lvis_v1_ds2_val_v1.json", + ), + CocoDatasetInfo( + name="densepose_lvis_v1_ds1_val_animals_100", + images_root="coco_", + annotations_fpath="lvis/densepose_lvis_v1_val_animals_100_v2.json", + ), +] + + +def _load_lvis_annotations(json_file: str): + """ + Load COCO annotations from a JSON file + + Args: + json_file: str + Path to the file to load annotations from + Returns: + Instance of `pycocotools.coco.COCO` that provides access to annotations + data + """ + from lvis import LVIS + + json_file = PathManager.get_local_path(json_file) + logger = logging.getLogger(__name__) + timer = Timer() + lvis_api = LVIS(json_file) + if timer.seconds() > 1: + logger.info("Loading {} takes {:.2f} seconds.".format(json_file, timer.seconds())) + return lvis_api + + +def _add_categories_metadata(dataset_name: str) -> None: + metadict = get_lvis_instances_meta(dataset_name) + categories = metadict["thing_classes"] + metadata = MetadataCatalog.get(dataset_name) + metadata.categories = {i + 1: categories[i] for i in range(len(categories))} + logger = logging.getLogger(__name__) + logger.info(f"Dataset {dataset_name} has {len(categories)} categories") + + +def _verify_annotations_have_unique_ids(json_file: str, anns: List[List[Dict[str, Any]]]) -> None: + ann_ids = [ann["id"] for anns_per_image in anns for ann in anns_per_image] + assert len(set(ann_ids)) == len(ann_ids), "Annotation ids in '{}' are not unique!".format( + json_file + ) + + +def _maybe_add_bbox(obj: Dict[str, Any], ann_dict: Dict[str, Any]) -> None: + if "bbox" not in ann_dict: + return + obj["bbox"] = ann_dict["bbox"] + obj["bbox_mode"] = BoxMode.XYWH_ABS + + +def _maybe_add_segm(obj: Dict[str, Any], ann_dict: Dict[str, Any]) -> None: + if "segmentation" not in ann_dict: + return + segm = ann_dict["segmentation"] + if not isinstance(segm, dict): + # filter out invalid polygons (< 3 points) + segm = [poly for poly in segm if len(poly) % 2 == 0 and len(poly) >= 6] + if len(segm) == 0: + return + obj["segmentation"] = segm + + +def _maybe_add_keypoints(obj: Dict[str, Any], ann_dict: Dict[str, Any]) -> None: + if "keypoints" not in ann_dict: + return + keypts = ann_dict["keypoints"] # list[int] + for idx, v in enumerate(keypts): + if idx % 3 != 2: + # COCO's segmentation coordinates are floating points in [0, H or W], + # but keypoint coordinates are integers in [0, H-1 or W-1] + # Therefore we assume the coordinates are "pixel indices" and + # add 0.5 to convert to floating point coordinates. + keypts[idx] = v + 0.5 + obj["keypoints"] = keypts + + +def _maybe_add_densepose(obj: Dict[str, Any], ann_dict: Dict[str, Any]) -> None: + for key in DENSEPOSE_ALL_POSSIBLE_KEYS: + if key in ann_dict: + obj[key] = ann_dict[key] + + +def _combine_images_with_annotations( + dataset_name: str, + image_root: str, + img_datas: Iterable[Dict[str, Any]], + ann_datas: Iterable[Iterable[Dict[str, Any]]], +): + + dataset_dicts = [] + + def get_file_name(img_root, img_dict): + # Determine the path including the split folder ("train2017", "val2017", "test2017") from + # the coco_url field. Example: + # 'coco_url': 'http://images.cocodataset.org/train2017/000000155379.jpg' + split_folder, file_name = img_dict["coco_url"].split("/")[-2:] + return os.path.join(img_root + split_folder, file_name) + + for img_dict, ann_dicts in zip(img_datas, ann_datas): + record = {} + record["file_name"] = get_file_name(image_root, img_dict) + record["height"] = img_dict["height"] + record["width"] = img_dict["width"] + record["not_exhaustive_category_ids"] = img_dict.get("not_exhaustive_category_ids", []) + record["neg_category_ids"] = img_dict.get("neg_category_ids", []) + record["image_id"] = img_dict["id"] + record["dataset"] = dataset_name + + objs = [] + for ann_dict in ann_dicts: + assert ann_dict["image_id"] == record["image_id"] + obj = {} + _maybe_add_bbox(obj, ann_dict) + obj["iscrowd"] = ann_dict.get("iscrowd", 0) + obj["category_id"] = ann_dict["category_id"] + _maybe_add_segm(obj, ann_dict) + _maybe_add_keypoints(obj, ann_dict) + _maybe_add_densepose(obj, ann_dict) + objs.append(obj) + record["annotations"] = objs + dataset_dicts.append(record) + return dataset_dicts + + +def load_lvis_json(annotations_json_file: str, image_root: str, dataset_name: str): + """ + Loads a JSON file with annotations in LVIS instances format. + Replaces `detectron2.data.datasets.coco.load_lvis_json` to handle metadata + in a more flexible way. Postpones category mapping to a later stage to be + able to combine several datasets with different (but coherent) sets of + categories. + + Args: + + annotations_json_file: str + Path to the JSON file with annotations in COCO instances format. + image_root: str + directory that contains all the images + dataset_name: str + the name that identifies a dataset, e.g. "densepose_coco_2014_train" + extra_annotation_keys: Optional[List[str]] + If provided, these keys are used to extract additional data from + the annotations. + """ + lvis_api = _load_lvis_annotations(PathManager.get_local_path(annotations_json_file)) + + _add_categories_metadata(dataset_name) + + # sort indices for reproducible results + img_ids = sorted(lvis_api.imgs.keys()) + # imgs is a list of dicts, each looks something like: + # {'license': 4, + # 'url': 'http://farm6.staticflickr.com/5454/9413846304_881d5e5c3b_z.jpg', + # 'file_name': 'COCO_val2014_000000001268.jpg', + # 'height': 427, + # 'width': 640, + # 'date_captured': '2013-11-17 05:57:24', + # 'id': 1268} + imgs = lvis_api.load_imgs(img_ids) + logger = logging.getLogger(__name__) + logger.info("Loaded {} images in LVIS format from {}".format(len(imgs), annotations_json_file)) + # anns is a list[list[dict]], where each dict is an annotation + # record for an object. The inner list enumerates the objects in an image + # and the outer list enumerates over images. + anns = [lvis_api.img_ann_map[img_id] for img_id in img_ids] + + _verify_annotations_have_unique_ids(annotations_json_file, anns) + dataset_records = _combine_images_with_annotations(dataset_name, image_root, imgs, anns) + return dataset_records + + +def register_dataset(dataset_data: CocoDatasetInfo, datasets_root: Optional[str] = None) -> None: + """ + Registers provided LVIS DensePose dataset + + Args: + dataset_data: CocoDatasetInfo + Dataset data + datasets_root: Optional[str] + Datasets root folder (default: None) + """ + annotations_fpath = maybe_prepend_base_path(datasets_root, dataset_data.annotations_fpath) + images_root = maybe_prepend_base_path(datasets_root, dataset_data.images_root) + + def load_annotations(): + return load_lvis_json( + annotations_json_file=annotations_fpath, + image_root=images_root, + dataset_name=dataset_data.name, + ) + + DatasetCatalog.register(dataset_data.name, load_annotations) + MetadataCatalog.get(dataset_data.name).set( + json_file=annotations_fpath, + image_root=images_root, + evaluator_type="lvis", + **get_metadata(DENSEPOSE_METADATA_URL_PREFIX), + ) + + +def register_datasets( + datasets_data: Iterable[CocoDatasetInfo], datasets_root: Optional[str] = None +) -> None: + """ + Registers provided LVIS DensePose datasets + + Args: + datasets_data: Iterable[CocoDatasetInfo] + An iterable of dataset datas + datasets_root: Optional[str] + Datasets root folder (default: None) + """ + for dataset_data in datasets_data: + register_dataset(dataset_data, datasets_root) diff --git a/detectron2/projects/DensePose/densepose/data/image_list_dataset.py b/detectron2/projects/DensePose/densepose/data/image_list_dataset.py new file mode 100755 index 0000000..92a95d3 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/image_list_dataset.py @@ -0,0 +1,72 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +import numpy as np +from typing import Any, Callable, Dict, List, Optional, Union +import torch +from torch.utils.data.dataset import Dataset + +from detectron2.data.detection_utils import read_image + +ImageTransform = Callable[[torch.Tensor], torch.Tensor] + + +class ImageListDataset(Dataset): + """ + Dataset that provides images from a list. + """ + + _EMPTY_IMAGE = torch.empty((0, 3, 1, 1)) + + def __init__( + self, + image_list: List[str], + category_list: Union[str, List[str], None] = None, + transform: Optional[ImageTransform] = None, + ): + """ + Args: + image_list (List[str]): list of paths to image files + category_list (Union[str, List[str], None]): list of animal categories for + each image. If it is a string, or None, this applies to all images + """ + if type(category_list) == list: + self.category_list = category_list + else: + self.category_list = [category_list] * len(image_list) + assert len(image_list) == len( + self.category_list + ), "length of image and category lists must be equal" + self.image_list = image_list + self.transform = transform + + def __getitem__(self, idx: int) -> Dict[str, Any]: + """ + Gets selected images from the list + + Args: + idx (int): video index in the video list file + Returns: + A dictionary containing two keys: + images (torch.Tensor): tensor of size [N, 3, H, W] (N = 1, or 0 for _EMPTY_IMAGE) + categories (List[str]): categories of the frames + """ + categories = [self.category_list[idx]] + fpath = self.image_list[idx] + transform = self.transform + + try: + image = torch.from_numpy(np.ascontiguousarray(read_image(fpath, format="BGR"))) + image = image.permute(2, 0, 1).unsqueeze(0).float() # HWC -> NCHW + if transform is not None: + image = transform(image) + return {"images": image, "categories": categories} + except (OSError, RuntimeError) as e: + logger = logging.getLogger(__name__) + logger.warning(f"Error opening image file container {fpath}: {e}") + + return {"images": self._EMPTY_IMAGE, "categories": []} + + def __len__(self): + return len(self.image_list) diff --git a/detectron2/projects/DensePose/densepose/data/inference_based_loader.py b/detectron2/projects/DensePose/densepose/data/inference_based_loader.py new file mode 100755 index 0000000..cb89544 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/inference_based_loader.py @@ -0,0 +1,172 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple +import torch +from torch import nn + +SampledData = Any +ModelOutput = Any + + +def _grouper(iterable: Iterable[Any], n: int, fillvalue=None) -> Iterator[Tuple[Any]]: + """ + Group elements of an iterable by chunks of size `n`, e.g. + grouper(range(9), 4) -> + (0, 1, 2, 3), (4, 5, 6, 7), (8, None, None, None) + """ + it = iter(iterable) + while True: + values = [] + for _ in range(n): + try: + value = next(it) + except StopIteration: + if values: + values.extend([fillvalue] * (n - len(values))) + yield tuple(values) + return + values.append(value) + yield tuple(values) + + +class ScoreBasedFilter: + """ + Filters entries in model output based on their scores + Discards all entries with score less than the specified minimum + """ + + def __init__(self, min_score: float = 0.8): + self.min_score = min_score + + def __call__(self, model_output: ModelOutput) -> ModelOutput: + for model_output_i in model_output: + instances = model_output_i["instances"] + if not instances.has("scores"): + continue + instances_filtered = instances[instances.scores >= self.min_score] + model_output_i["instances"] = instances_filtered + return model_output + + +class InferenceBasedLoader: + """ + Data loader based on results inferred by a model. Consists of: + - a data loader that provides batches of images + - a model that is used to infer the results + - a data sampler that converts inferred results to annotations + """ + + def __init__( + self, + model: nn.Module, + data_loader: Iterable[List[Dict[str, Any]]], + data_sampler: Optional[Callable[[ModelOutput], List[SampledData]]] = None, + data_filter: Optional[Callable[[ModelOutput], ModelOutput]] = None, + shuffle: bool = True, + batch_size: int = 4, + inference_batch_size: int = 4, + drop_last: bool = False, + category_to_class_mapping: Optional[dict] = None, + ): + """ + Constructor + + Args: + model (torch.nn.Module): model used to produce data + data_loader (Iterable[List[Dict[str, Any]]]): iterable that provides + dictionaries with "images" and "categories" fields to perform inference on + data_sampler (Callable: ModelOutput -> SampledData): functor + that produces annotation data from inference results; + (optional, default: None) + data_filter (Callable: ModelOutput -> ModelOutput): filter + that selects model outputs for further processing + (optional, default: None) + shuffle (bool): if True, the input images get shuffled + batch_size (int): batch size for the produced annotation data + inference_batch_size (int): batch size for input images + drop_last (bool): if True, drop the last batch if it is undersized + category_to_class_mapping (dict): category to class mapping + """ + self.model = model + self.model.eval() + self.data_loader = data_loader + self.data_sampler = data_sampler + self.data_filter = data_filter + self.shuffle = shuffle + self.batch_size = batch_size + self.inference_batch_size = inference_batch_size + self.drop_last = drop_last + if category_to_class_mapping is not None: + self.category_to_class_mapping = category_to_class_mapping + else: + self.category_to_class_mapping = {} + + def __iter__(self) -> Iterator[List[SampledData]]: + for batch in self.data_loader: + # batch : List[Dict[str: Tensor[N, C, H, W], str: Optional[str]]] + # images_batch : Tensor[N, C, H, W] + # image : Tensor[C, H, W] + images_and_categories = [ + {"image": image, "category": category} + for element in batch + for image, category in zip(element["images"], element["categories"]) + ] + if not images_and_categories: + continue + if self.shuffle: + random.shuffle(images_and_categories) + yield from self._produce_data(images_and_categories) # pyre-ignore[6] + + def _produce_data( + self, images_and_categories: List[Tuple[torch.Tensor, Optional[str]]] + ) -> Iterator[List[SampledData]]: + """ + Produce batches of data from images + + Args: + images_and_categories (List[Tuple[torch.Tensor, Optional[str]]]): + list of images and corresponding categories to process + + Returns: + Iterator over batches of data sampled from model outputs + """ + data_batches: List[SampledData] = [] + category_to_class_mapping = self.category_to_class_mapping + batched_images_and_categories = _grouper(images_and_categories, self.inference_batch_size) + for batch in batched_images_and_categories: + batch = [ + { + "image": image_and_category["image"].to(self.model.device), + "category": image_and_category["category"], + } + for image_and_category in batch + if image_and_category is not None + ] + if not batch: + continue + with torch.no_grad(): + model_output = self.model(batch) + for model_output_i, batch_i in zip(model_output, batch): + assert len(batch_i["image"].shape) == 3 + model_output_i["image"] = batch_i["image"] + instance_class = category_to_class_mapping.get(batch_i["category"], 0) + model_output_i["instances"].dataset_classes = torch.tensor( + [instance_class] * len(model_output_i["instances"]) + ) + model_output_filtered = ( + model_output if self.data_filter is None else self.data_filter(model_output) + ) + data = ( + model_output_filtered + if self.data_sampler is None + else self.data_sampler(model_output_filtered) + ) + for data_i in data: + if len(data_i["instances"]): + data_batches.append(data_i) + if len(data_batches) >= self.batch_size: + yield data_batches[: self.batch_size] + data_batches = data_batches[self.batch_size :] + if not self.drop_last and data_batches: + yield data_batches diff --git a/detectron2/projects/DensePose/densepose/data/meshes/__init__.py b/detectron2/projects/DensePose/densepose/data/meshes/__init__.py new file mode 100755 index 0000000..1e1f0d5 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/meshes/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from . import builtin + +__all__ = [k for k in globals().keys() if "builtin" not in k and not k.startswith("_")] diff --git a/detectron2/projects/DensePose/densepose/data/meshes/builtin.py b/detectron2/projects/DensePose/densepose/data/meshes/builtin.py new file mode 100755 index 0000000..c0b2376 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/meshes/builtin.py @@ -0,0 +1,101 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from .catalog import MeshInfo, register_meshes + +DENSEPOSE_MESHES_DIR = "https://dl.fbaipublicfiles.com/densepose/meshes/" + +MESHES = [ + MeshInfo( + name="smpl_27554", + data="smpl_27554.pkl", + geodists="geodists/geodists_smpl_27554.pkl", + symmetry="symmetry/symmetry_smpl_27554.pkl", + texcoords="texcoords/texcoords_smpl_27554.pkl", + ), + MeshInfo( + name="chimp_5029", + data="chimp_5029.pkl", + geodists="geodists/geodists_chimp_5029.pkl", + symmetry="symmetry/symmetry_chimp_5029.pkl", + texcoords="texcoords/texcoords_chimp_5029.pkl", + ), + MeshInfo( + name="cat_5001", + data="cat_5001.pkl", + geodists="geodists/geodists_cat_5001.pkl", + symmetry="symmetry/symmetry_cat_5001.pkl", + texcoords="texcoords/texcoords_cat_5001.pkl", + ), + MeshInfo( + name="cat_7466", + data="cat_7466.pkl", + geodists="geodists/geodists_cat_7466.pkl", + symmetry="symmetry/symmetry_cat_7466.pkl", + texcoords="texcoords/texcoords_cat_7466.pkl", + ), + MeshInfo( + name="sheep_5004", + data="sheep_5004.pkl", + geodists="geodists/geodists_sheep_5004.pkl", + symmetry="symmetry/symmetry_sheep_5004.pkl", + texcoords="texcoords/texcoords_sheep_5004.pkl", + ), + MeshInfo( + name="zebra_5002", + data="zebra_5002.pkl", + geodists="geodists/geodists_zebra_5002.pkl", + symmetry="symmetry/symmetry_zebra_5002.pkl", + texcoords="texcoords/texcoords_zebra_5002.pkl", + ), + MeshInfo( + name="horse_5004", + data="horse_5004.pkl", + geodists="geodists/geodists_horse_5004.pkl", + symmetry="symmetry/symmetry_horse_5004.pkl", + texcoords="texcoords/texcoords_zebra_5002.pkl", + ), + MeshInfo( + name="giraffe_5002", + data="giraffe_5002.pkl", + geodists="geodists/geodists_giraffe_5002.pkl", + symmetry="symmetry/symmetry_giraffe_5002.pkl", + texcoords="texcoords/texcoords_giraffe_5002.pkl", + ), + MeshInfo( + name="elephant_5002", + data="elephant_5002.pkl", + geodists="geodists/geodists_elephant_5002.pkl", + symmetry="symmetry/symmetry_elephant_5002.pkl", + texcoords="texcoords/texcoords_elephant_5002.pkl", + ), + MeshInfo( + name="dog_5002", + data="dog_5002.pkl", + geodists="geodists/geodists_dog_5002.pkl", + symmetry="symmetry/symmetry_dog_5002.pkl", + texcoords="texcoords/texcoords_dog_5002.pkl", + ), + MeshInfo( + name="dog_7466", + data="dog_7466.pkl", + geodists="geodists/geodists_dog_7466.pkl", + symmetry="symmetry/symmetry_dog_7466.pkl", + texcoords="texcoords/texcoords_dog_7466.pkl", + ), + MeshInfo( + name="cow_5002", + data="cow_5002.pkl", + geodists="geodists/geodists_cow_5002.pkl", + symmetry="symmetry/symmetry_cow_5002.pkl", + texcoords="texcoords/texcoords_cow_5002.pkl", + ), + MeshInfo( + name="bear_4936", + data="bear_4936.pkl", + geodists="geodists/geodists_bear_4936.pkl", + symmetry="symmetry/symmetry_bear_4936.pkl", + texcoords="texcoords/texcoords_bear_4936.pkl", + ), +] + +register_meshes(MESHES, DENSEPOSE_MESHES_DIR) diff --git a/detectron2/projects/DensePose/densepose/data/meshes/catalog.py b/detectron2/projects/DensePose/densepose/data/meshes/catalog.py new file mode 100755 index 0000000..b258f3c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/meshes/catalog.py @@ -0,0 +1,71 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import logging +from collections import UserDict +from dataclasses import dataclass +from typing import Iterable, Optional + +from ..utils import maybe_prepend_base_path + + +@dataclass +class MeshInfo: + name: str + data: str + geodists: Optional[str] = None + symmetry: Optional[str] = None + texcoords: Optional[str] = None + + +class _MeshCatalog(UserDict): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.mesh_ids = {} + self.mesh_names = {} + self.max_mesh_id = -1 + + def __setitem__(self, key, value): + if key in self: + logger = logging.getLogger(__name__) + logger.warning( + f"Overwriting mesh catalog entry '{key}': old value {self[key]}" + f", new value {value}" + ) + mesh_id = self.mesh_ids[key] + else: + self.max_mesh_id += 1 + mesh_id = self.max_mesh_id + super().__setitem__(key, value) + self.mesh_ids[key] = mesh_id + self.mesh_names[mesh_id] = key + + def get_mesh_id(self, shape_name: str) -> int: + return self.mesh_ids[shape_name] + + def get_mesh_name(self, mesh_id: int) -> str: + return self.mesh_names[mesh_id] + + +MeshCatalog = _MeshCatalog() + + +def register_mesh(mesh_info: MeshInfo, base_path: Optional[str]) -> None: + geodists, symmetry, texcoords = mesh_info.geodists, mesh_info.symmetry, mesh_info.texcoords + if geodists: + geodists = maybe_prepend_base_path(base_path, geodists) + if symmetry: + symmetry = maybe_prepend_base_path(base_path, symmetry) + if texcoords: + texcoords = maybe_prepend_base_path(base_path, texcoords) + MeshCatalog[mesh_info.name] = MeshInfo( + name=mesh_info.name, + data=maybe_prepend_base_path(base_path, mesh_info.data), + geodists=geodists, + symmetry=symmetry, + texcoords=texcoords, + ) + + +def register_meshes(mesh_infos: Iterable[MeshInfo], base_path: Optional[str]) -> None: + for mesh_info in mesh_infos: + register_mesh(mesh_info, base_path) diff --git a/detectron2/projects/DensePose/densepose/data/samplers/__init__.py b/detectron2/projects/DensePose/densepose/data/samplers/__init__.py new file mode 100755 index 0000000..7dba87e --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/__init__.py @@ -0,0 +1,8 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .densepose_uniform import DensePoseUniformSampler +from .densepose_confidence_based import DensePoseConfidenceBasedSampler +from .densepose_cse_uniform import DensePoseCSEUniformSampler +from .densepose_cse_confidence_based import DensePoseCSEConfidenceBasedSampler +from .mask_from_densepose import MaskFromDensePoseSampler +from .prediction_to_gt import PredictionToGroundTruthSampler diff --git a/detectron2/projects/DensePose/densepose/data/samplers/densepose_base.py b/detectron2/projects/DensePose/densepose/data/samplers/densepose_base.py new file mode 100755 index 0000000..4d499d8 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/densepose_base.py @@ -0,0 +1,203 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any, Dict, List, Tuple +import torch +from torch.nn import functional as F + +from detectron2.structures import BoxMode, Instances + +from densepose.converters import ToChartResultConverter +from densepose.converters.base import IntTupleBox, make_int_box +from densepose.structures import DensePoseDataRelative, DensePoseList + + +class DensePoseBaseSampler: + """ + Base DensePose sampler to produce DensePose data from DensePose predictions. + Samples for each class are drawn according to some distribution over all pixels estimated + to belong to that class. + """ + + def __init__(self, count_per_class: int = 8): + """ + Constructor + + Args: + count_per_class (int): the sampler produces at most `count_per_class` + samples for each category + """ + self.count_per_class = count_per_class + + def __call__(self, instances: Instances) -> DensePoseList: + """ + Convert DensePose predictions (an instance of `DensePoseChartPredictorOutput`) + into DensePose annotations data (an instance of `DensePoseList`) + """ + boxes_xyxy_abs = instances.pred_boxes.tensor.clone().cpu() + boxes_xywh_abs = BoxMode.convert(boxes_xyxy_abs, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + dp_datas = [] + for i in range(len(boxes_xywh_abs)): + annotation_i = self._sample(instances[i], make_int_box(boxes_xywh_abs[i])) + annotation_i[DensePoseDataRelative.S_KEY] = self._resample_mask( # pyre-ignore[6] + instances[i].pred_densepose + ) + dp_datas.append(DensePoseDataRelative(annotation_i)) + # create densepose annotations on CPU + dp_list = DensePoseList(dp_datas, boxes_xyxy_abs, instances.image_size) + return dp_list + + def _sample(self, instance: Instances, bbox_xywh: IntTupleBox) -> Dict[str, List[Any]]: + """ + Sample DensPoseDataRelative from estimation results + """ + labels, dp_result = self._produce_labels_and_results(instance) + annotation = { + DensePoseDataRelative.X_KEY: [], + DensePoseDataRelative.Y_KEY: [], + DensePoseDataRelative.U_KEY: [], + DensePoseDataRelative.V_KEY: [], + DensePoseDataRelative.I_KEY: [], + } + n, h, w = dp_result.shape + for part_id in range(1, DensePoseDataRelative.N_PART_LABELS + 1): + # indices - tuple of 3 1D tensors of size k + # 0: index along the first dimension N + # 1: index along H dimension + # 2: index along W dimension + indices = torch.nonzero(labels.expand(n, h, w) == part_id, as_tuple=True) + # values - an array of size [n, k] + # n: number of channels (U, V, confidences) + # k: number of points labeled with part_id + values = dp_result[indices].view(n, -1) + k = values.shape[1] + count = min(self.count_per_class, k) + if count <= 0: + continue + index_sample = self._produce_index_sample(values, count) + sampled_values = values[:, index_sample] + sampled_y = indices[1][index_sample] + 0.5 + sampled_x = indices[2][index_sample] + 0.5 + # prepare / normalize data + x = (sampled_x / w * 256.0).cpu().tolist() + y = (sampled_y / h * 256.0).cpu().tolist() + u = sampled_values[0].clamp(0, 1).cpu().tolist() + v = sampled_values[1].clamp(0, 1).cpu().tolist() + fine_segm_labels = [part_id] * count + # extend annotations + annotation[DensePoseDataRelative.X_KEY].extend(x) + annotation[DensePoseDataRelative.Y_KEY].extend(y) + annotation[DensePoseDataRelative.U_KEY].extend(u) + annotation[DensePoseDataRelative.V_KEY].extend(v) + annotation[DensePoseDataRelative.I_KEY].extend(fine_segm_labels) + return annotation + + def _produce_index_sample(self, values: torch.Tensor, count: int): + """ + Abstract method to produce a sample of indices to select data + To be implemented in descendants + + Args: + values (torch.Tensor): an array of size [n, k] that contains + estimated values (U, V, confidences); + n: number of channels (U, V, confidences) + k: number of points labeled with part_id + count (int): number of samples to produce, should be positive and <= k + + Return: + list(int): indices of values (along axis 1) selected as a sample + """ + raise NotImplementedError + + def _produce_labels_and_results(self, instance: Instances) -> Tuple[torch.Tensor, torch.Tensor]: + """ + Method to get labels and DensePose results from an instance + + Args: + instance (Instances): an instance of `DensePoseChartPredictorOutput` + + Return: + labels (torch.Tensor): shape [H, W], DensePose segmentation labels + dp_result (torch.Tensor): shape [2, H, W], stacked DensePose results u and v + """ + converter = ToChartResultConverter + chart_result = converter.convert(instance.pred_densepose, instance.pred_boxes) + labels, dp_result = chart_result.labels.cpu(), chart_result.uv.cpu() + return labels, dp_result + + def _resample_mask(self, output: Any) -> torch.Tensor: + """ + Convert DensePose predictor output to segmentation annotation - tensors of size + (256, 256) and type `int64`. + + Args: + output: DensePose predictor output with the following attributes: + - coarse_segm: tensor of size [N, D, H, W] with unnormalized coarse + segmentation scores + - fine_segm: tensor of size [N, C, H, W] with unnormalized fine + segmentation scores + Return: + Tensor of size (S, S) and type `int64` with coarse segmentation annotations, + where S = DensePoseDataRelative.MASK_SIZE + """ + sz = DensePoseDataRelative.MASK_SIZE + S = ( + F.interpolate(output.coarse_segm, (sz, sz), mode="bilinear", align_corners=False) + .argmax(dim=1) + .long() + ) + I = ( + ( + F.interpolate( + output.fine_segm, + (sz, sz), + mode="bilinear", + align_corners=False, + ).argmax(dim=1) + * (S > 0).long() + ) + .squeeze() + .cpu() + ) + # Map fine segmentation results to coarse segmentation ground truth + # TODO: extract this into separate classes + # coarse segmentation: 1 = Torso, 2 = Right Hand, 3 = Left Hand, + # 4 = Left Foot, 5 = Right Foot, 6 = Upper Leg Right, 7 = Upper Leg Left, + # 8 = Lower Leg Right, 9 = Lower Leg Left, 10 = Upper Arm Left, + # 11 = Upper Arm Right, 12 = Lower Arm Left, 13 = Lower Arm Right, + # 14 = Head + # fine segmentation: 1, 2 = Torso, 3 = Right Hand, 4 = Left Hand, + # 5 = Left Foot, 6 = Right Foot, 7, 9 = Upper Leg Right, + # 8, 10 = Upper Leg Left, 11, 13 = Lower Leg Right, + # 12, 14 = Lower Leg Left, 15, 17 = Upper Arm Left, + # 16, 18 = Upper Arm Right, 19, 21 = Lower Arm Left, + # 20, 22 = Lower Arm Right, 23, 24 = Head + FINE_TO_COARSE_SEGMENTATION = { + 1: 1, + 2: 1, + 3: 2, + 4: 3, + 5: 4, + 6: 5, + 7: 6, + 8: 7, + 9: 6, + 10: 7, + 11: 8, + 12: 9, + 13: 8, + 14: 9, + 15: 10, + 16: 11, + 17: 10, + 18: 11, + 19: 12, + 20: 13, + 21: 12, + 22: 13, + 23: 14, + 24: 14, + } + mask = torch.zeros((sz, sz), dtype=torch.int64, device=torch.device("cpu")) + for i in range(DensePoseDataRelative.N_PART_LABELS): + mask[I == i + 1] = FINE_TO_COARSE_SEGMENTATION[i + 1] + return mask diff --git a/detectron2/projects/DensePose/densepose/data/samplers/densepose_confidence_based.py b/detectron2/projects/DensePose/densepose/data/samplers/densepose_confidence_based.py new file mode 100755 index 0000000..48e325b --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/densepose_confidence_based.py @@ -0,0 +1,108 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +from typing import Optional, Tuple +import torch + +from densepose.converters import ToChartResultConverterWithConfidences + +from .densepose_base import DensePoseBaseSampler + + +class DensePoseConfidenceBasedSampler(DensePoseBaseSampler): + """ + Samples DensePose data from DensePose predictions. + Samples for each class are drawn using confidence value estimates. + """ + + def __init__( + self, + confidence_channel: str, + count_per_class: int = 8, + search_count_multiplier: Optional[float] = None, + search_proportion: Optional[float] = None, + ): + """ + Constructor + + Args: + confidence_channel (str): confidence channel to use for sampling; + possible values: + "sigma_2": confidences for UV values + "fine_segm_confidence": confidences for fine segmentation + "coarse_segm_confidence": confidences for coarse segmentation + (default: "sigma_2") + count_per_class (int): the sampler produces at most `count_per_class` + samples for each category (default: 8) + search_count_multiplier (float or None): if not None, the total number + of the most confident estimates of a given class to consider is + defined as `min(search_count_multiplier * count_per_class, N)`, + where `N` is the total number of estimates of the class; cannot be + specified together with `search_proportion` (default: None) + search_proportion (float or None): if not None, the total number of the + of the most confident estimates of a given class to consider is + defined as `min(max(search_proportion * N, count_per_class), N)`, + where `N` is the total number of estimates of the class; cannot be + specified together with `search_count_multiplier` (default: None) + """ + super().__init__(count_per_class) + self.confidence_channel = confidence_channel + self.search_count_multiplier = search_count_multiplier + self.search_proportion = search_proportion + assert (search_count_multiplier is None) or (search_proportion is None), ( + f"Cannot specify both search_count_multiplier (={search_count_multiplier})" + f"and search_proportion (={search_proportion})" + ) + + def _produce_index_sample(self, values: torch.Tensor, count: int): + """ + Produce a sample of indices to select data based on confidences + + Args: + values (torch.Tensor): an array of size [n, k] that contains + estimated values (U, V, confidences); + n: number of channels (U, V, confidences) + k: number of points labeled with part_id + count (int): number of samples to produce, should be positive and <= k + + Return: + list(int): indices of values (along axis 1) selected as a sample + """ + k = values.shape[1] + if k == count: + index_sample = list(range(k)) + else: + # take the best count * search_count_multiplier pixels, + # sample from them uniformly + # (here best = smallest variance) + _, sorted_confidence_indices = torch.sort(values[2]) + if self.search_count_multiplier is not None: + search_count = min(int(count * self.search_count_multiplier), k) + elif self.search_proportion is not None: + search_count = min(max(int(k * self.search_proportion), count), k) + else: + search_count = min(count, k) + sample_from_top = random.sample(range(search_count), count) + index_sample = sorted_confidence_indices[:search_count][sample_from_top] + return index_sample + + def _produce_labels_and_results(self, instance) -> Tuple[torch.Tensor, torch.Tensor]: + """ + Method to get labels and DensePose results from an instance, with confidences + + Args: + instance (Instances): an instance of `DensePoseChartPredictorOutputWithConfidences` + + Return: + labels (torch.Tensor): shape [H, W], DensePose segmentation labels + dp_result (torch.Tensor): shape [3, H, W], DensePose results u and v + stacked with the confidence channel + """ + converter = ToChartResultConverterWithConfidences + chart_result = converter.convert(instance.pred_densepose, instance.pred_boxes) + labels, dp_result = chart_result.labels.cpu(), chart_result.uv.cpu() + dp_result = torch.cat( + (dp_result, getattr(chart_result, self.confidence_channel)[None].cpu()) + ) + + return labels, dp_result diff --git a/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_base.py b/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_base.py new file mode 100755 index 0000000..845545c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_base.py @@ -0,0 +1,139 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any, Dict, List, Tuple +import torch +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from densepose.converters.base import IntTupleBox +from densepose.data.utils import get_class_to_mesh_name_mapping +from densepose.modeling.cse.utils import squared_euclidean_distance_matrix +from densepose.structures import DensePoseDataRelative + +from .densepose_base import DensePoseBaseSampler + + +class DensePoseCSEBaseSampler(DensePoseBaseSampler): + """ + Base DensePose sampler to produce DensePose data from DensePose predictions. + Samples for each class are drawn according to some distribution over all pixels estimated + to belong to that class. + """ + + def __init__( + self, + cfg: CfgNode, + use_gt_categories: bool, + embedder: torch.nn.Module, + count_per_class: int = 8, + ): + """ + Constructor + + Args: + cfg (CfgNode): the config of the model + embedder (torch.nn.Module): necessary to compute mesh vertex embeddings + count_per_class (int): the sampler produces at most `count_per_class` + samples for each category + """ + super().__init__(count_per_class) + self.embedder = embedder + self.class_to_mesh_name = get_class_to_mesh_name_mapping(cfg) + self.use_gt_categories = use_gt_categories + + def _sample(self, instance: Instances, bbox_xywh: IntTupleBox) -> Dict[str, List[Any]]: + """ + Sample DensPoseDataRelative from estimation results + """ + if self.use_gt_categories: + instance_class = instance.dataset_classes.tolist()[0] + else: + instance_class = instance.pred_classes.tolist()[0] + mesh_name = self.class_to_mesh_name[instance_class] + + annotation = { + DensePoseDataRelative.X_KEY: [], + DensePoseDataRelative.Y_KEY: [], + DensePoseDataRelative.VERTEX_IDS_KEY: [], + DensePoseDataRelative.MESH_NAME_KEY: mesh_name, + } + + mask, embeddings, other_values = self._produce_mask_and_results(instance, bbox_xywh) + indices = torch.nonzero(mask, as_tuple=True) + selected_embeddings = embeddings.permute(1, 2, 0)[indices].cpu() + values = other_values[:, indices[0], indices[1]] + k = values.shape[1] + + count = min(self.count_per_class, k) + if count <= 0: + return annotation + + index_sample = self._produce_index_sample(values, count) + closest_vertices = squared_euclidean_distance_matrix( + selected_embeddings[index_sample], self.embedder(mesh_name) + ) + closest_vertices = torch.argmin(closest_vertices, dim=1) + + sampled_y = indices[0][index_sample] + 0.5 + sampled_x = indices[1][index_sample] + 0.5 + # prepare / normalize data + _, _, w, h = bbox_xywh + x = (sampled_x / w * 256.0).cpu().tolist() + y = (sampled_y / h * 256.0).cpu().tolist() + # extend annotations + annotation[DensePoseDataRelative.X_KEY].extend(x) + annotation[DensePoseDataRelative.Y_KEY].extend(y) + annotation[DensePoseDataRelative.VERTEX_IDS_KEY].extend(closest_vertices.cpu().tolist()) + return annotation + + def _produce_mask_and_results( + self, instance: Instances, bbox_xywh: IntTupleBox + ) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """ + Method to get labels and DensePose results from an instance + + Args: + instance (Instances): an instance of `DensePoseEmbeddingPredictorOutput` + bbox_xywh (IntTupleBox): the corresponding bounding box + + Return: + mask (torch.Tensor): shape [H, W], DensePose segmentation mask + embeddings (Tuple[torch.Tensor]): a tensor of shape [D, H, W], + DensePose CSE Embeddings + other_values (Tuple[torch.Tensor]): a tensor of shape [0, H, W], + for potential other values + """ + densepose_output = instance.pred_densepose + S = densepose_output.coarse_segm + E = densepose_output.embedding + _, _, w, h = bbox_xywh + embeddings = F.interpolate(E, size=(h, w), mode="bilinear")[0] + coarse_segm_resized = F.interpolate(S, size=(h, w), mode="bilinear")[0] + mask = coarse_segm_resized.argmax(0) > 0 + other_values = torch.empty((0, h, w), device=E.device) + return mask, embeddings, other_values + + def _resample_mask(self, output: Any) -> torch.Tensor: + """ + Convert DensePose predictor output to segmentation annotation - tensors of size + (256, 256) and type `int64`. + + Args: + output: DensePose predictor output with the following attributes: + - coarse_segm: tensor of size [N, D, H, W] with unnormalized coarse + segmentation scores + Return: + Tensor of size (S, S) and type `int64` with coarse segmentation annotations, + where S = DensePoseDataRelative.MASK_SIZE + """ + sz = DensePoseDataRelative.MASK_SIZE + mask = ( + F.interpolate(output.coarse_segm, (sz, sz), mode="bilinear", align_corners=False) + .argmax(dim=1) + .long() + .squeeze() + .cpu() + ) + return mask diff --git a/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_confidence_based.py b/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_confidence_based.py new file mode 100755 index 0000000..964b7f4 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_confidence_based.py @@ -0,0 +1,119 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +from typing import Optional, Tuple +import torch +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from densepose.converters.base import IntTupleBox + +from .densepose_cse_base import DensePoseCSEBaseSampler + + +class DensePoseCSEConfidenceBasedSampler(DensePoseCSEBaseSampler): + """ + Samples DensePose data from DensePose predictions. + Samples for each class are drawn using confidence value estimates. + """ + + def __init__( + self, + cfg: CfgNode, + use_gt_categories: bool, + embedder: torch.nn.Module, + confidence_channel: str, + count_per_class: int = 8, + search_count_multiplier: Optional[float] = None, + search_proportion: Optional[float] = None, + ): + """ + Constructor + + Args: + cfg (CfgNode): the config of the model + embedder (torch.nn.Module): necessary to compute mesh vertex embeddings + confidence_channel (str): confidence channel to use for sampling; + possible values: + "coarse_segm_confidence": confidences for coarse segmentation + (default: "coarse_segm_confidence") + count_per_class (int): the sampler produces at most `count_per_class` + samples for each category (default: 8) + search_count_multiplier (float or None): if not None, the total number + of the most confident estimates of a given class to consider is + defined as `min(search_count_multiplier * count_per_class, N)`, + where `N` is the total number of estimates of the class; cannot be + specified together with `search_proportion` (default: None) + search_proportion (float or None): if not None, the total number of the + of the most confident estimates of a given class to consider is + defined as `min(max(search_proportion * N, count_per_class), N)`, + where `N` is the total number of estimates of the class; cannot be + specified together with `search_count_multiplier` (default: None) + """ + super().__init__(cfg, use_gt_categories, embedder, count_per_class) + self.confidence_channel = confidence_channel + self.search_count_multiplier = search_count_multiplier + self.search_proportion = search_proportion + assert (search_count_multiplier is None) or (search_proportion is None), ( + f"Cannot specify both search_count_multiplier (={search_count_multiplier})" + f"and search_proportion (={search_proportion})" + ) + + def _produce_index_sample(self, values: torch.Tensor, count: int): + """ + Produce a sample of indices to select data based on confidences + + Args: + values (torch.Tensor): a tensor of length k that contains confidences + k: number of points labeled with part_id + count (int): number of samples to produce, should be positive and <= k + + Return: + list(int): indices of values (along axis 1) selected as a sample + """ + k = values.shape[1] + if k == count: + index_sample = list(range(k)) + else: + # take the best count * search_count_multiplier pixels, + # sample from them uniformly + # (here best = smallest variance) + _, sorted_confidence_indices = torch.sort(values[0]) + if self.search_count_multiplier is not None: + search_count = min(int(count * self.search_count_multiplier), k) + elif self.search_proportion is not None: + search_count = min(max(int(k * self.search_proportion), count), k) + else: + search_count = min(count, k) + sample_from_top = random.sample(range(search_count), count) + index_sample = sorted_confidence_indices[-search_count:][sample_from_top] + return index_sample + + def _produce_mask_and_results( + self, instance: Instances, bbox_xywh: IntTupleBox + ) -> Tuple[torch.Tensor, torch.Tensor, torch.Tensor]: + """ + Method to get labels and DensePose results from an instance + + Args: + instance (Instances): an instance of + `DensePoseEmbeddingPredictorOutputWithConfidences` + bbox_xywh (IntTupleBox): the corresponding bounding box + + Return: + mask (torch.Tensor): shape [H, W], DensePose segmentation mask + embeddings (Tuple[torch.Tensor]): a tensor of shape [D, H, W] + DensePose CSE Embeddings + other_values: a tensor of shape [1, H, W], DensePose CSE confidence + """ + _, _, w, h = bbox_xywh + densepose_output = instance.pred_densepose + mask, embeddings, _ = super()._produce_mask_and_results(instance, bbox_xywh) + other_values = F.interpolate( + getattr(densepose_output, self.confidence_channel), + size=(h, w), + mode="bilinear", + )[0].cpu() + return mask, embeddings, other_values diff --git a/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_uniform.py b/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_uniform.py new file mode 100755 index 0000000..567636c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/densepose_cse_uniform.py @@ -0,0 +1,12 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .densepose_cse_base import DensePoseCSEBaseSampler +from .densepose_uniform import DensePoseUniformSampler + + +class DensePoseCSEUniformSampler(DensePoseCSEBaseSampler, DensePoseUniformSampler): + """ + Uniform Sampler for CSE + """ + + pass diff --git a/detectron2/projects/DensePose/densepose/data/samplers/densepose_uniform.py b/detectron2/projects/DensePose/densepose/data/samplers/densepose_uniform.py new file mode 100755 index 0000000..0d72cc3 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/densepose_uniform.py @@ -0,0 +1,41 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +import torch + +from .densepose_base import DensePoseBaseSampler + + +class DensePoseUniformSampler(DensePoseBaseSampler): + """ + Samples DensePose data from DensePose predictions. + Samples for each class are drawn uniformly over all pixels estimated + to belong to that class. + """ + + def __init__(self, count_per_class: int = 8): + """ + Constructor + + Args: + count_per_class (int): the sampler produces at most `count_per_class` + samples for each category + """ + super().__init__(count_per_class) + + def _produce_index_sample(self, values: torch.Tensor, count: int): + """ + Produce a uniform sample of indices to select data + + Args: + values (torch.Tensor): an array of size [n, k] that contains + estimated values (U, V, confidences); + n: number of channels (U, V, confidences) + k: number of points labeled with part_id + count (int): number of samples to produce, should be positive and <= k + + Return: + list(int): indices of values (along axis 1) selected as a sample + """ + k = values.shape[1] + return random.sample(range(k), count) diff --git a/detectron2/projects/DensePose/densepose/data/samplers/mask_from_densepose.py b/detectron2/projects/DensePose/densepose/data/samplers/mask_from_densepose.py new file mode 100755 index 0000000..0e6e812 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/mask_from_densepose.py @@ -0,0 +1,28 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.structures import BitMasks, Instances + +from densepose.converters import ToMaskConverter + + +class MaskFromDensePoseSampler: + """ + Produce mask GT from DensePose predictions + This sampler simply converts DensePose predictions to BitMasks + that a contain a bool tensor of the size of the input image + """ + + def __call__(self, instances: Instances) -> BitMasks: + """ + Converts predicted data from `instances` into the GT mask data + + Args: + instances (Instances): predicted results, expected to have `pred_densepose` field + + Returns: + Boolean Tensor of the size of the input image that has non-zero + values at pixels that are estimated to belong to the detected object + """ + return ToMaskConverter.convert( + instances.pred_densepose, instances.pred_boxes, instances.image_size + ) diff --git a/detectron2/projects/DensePose/densepose/data/samplers/prediction_to_gt.py b/detectron2/projects/DensePose/densepose/data/samplers/prediction_to_gt.py new file mode 100755 index 0000000..3881fa5 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/samplers/prediction_to_gt.py @@ -0,0 +1,98 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from dataclasses import dataclass +from typing import Any, Callable, Dict, List, Optional + +from detectron2.structures import Instances + +ModelOutput = Dict[str, Any] +SampledData = Dict[str, Any] + + +@dataclass +class _Sampler: + """ + Sampler registry entry that contains: + - src (str): source field to sample from (deleted after sampling) + - dst (Optional[str]): destination field to sample to, if not None + - func (Optional[Callable: Any -> Any]): function that performs sampling, + if None, reference copy is performed + """ + + src: str + dst: Optional[str] + func: Optional[Callable[[Any], Any]] + + +class PredictionToGroundTruthSampler: + """ + Sampler implementation that converts predictions to GT using registered + samplers for different fields of `Instances`. + """ + + def __init__(self, dataset_name: str = ""): + self.dataset_name = dataset_name + self._samplers = {} + self.register_sampler("pred_boxes", "gt_boxes", None) + self.register_sampler("pred_classes", "gt_classes", None) + # delete scores + self.register_sampler("scores") + + def __call__(self, model_output: List[ModelOutput]) -> List[SampledData]: + """ + Transform model output into ground truth data through sampling + + Args: + model_output (Dict[str, Any]): model output + Returns: + Dict[str, Any]: sampled data + """ + for model_output_i in model_output: + instances: Instances = model_output_i["instances"] + # transform data in each field + for _, sampler in self._samplers.items(): + if not instances.has(sampler.src) or sampler.dst is None: + continue + if sampler.func is None: + instances.set(sampler.dst, instances.get(sampler.src)) + else: + instances.set(sampler.dst, sampler.func(instances)) + # delete model output data that was transformed + for _, sampler in self._samplers.items(): + if sampler.src != sampler.dst and instances.has(sampler.src): + instances.remove(sampler.src) + model_output_i["dataset"] = self.dataset_name + return model_output + + def register_sampler( + self, + prediction_attr: str, + gt_attr: Optional[str] = None, + func: Optional[Callable[[Any], Any]] = None, + ): + """ + Register sampler for a field + + Args: + prediction_attr (str): field to replace with a sampled value + gt_attr (Optional[str]): field to store the sampled value to, if not None + func (Optional[Callable: Any -> Any]): sampler function + """ + self._samplers[(prediction_attr, gt_attr)] = _Sampler( + src=prediction_attr, dst=gt_attr, func=func + ) + + def remove_sampler( + self, + prediction_attr: str, + gt_attr: Optional[str] = None, + ): + """ + Remove sampler for a field + + Args: + prediction_attr (str): field to replace with a sampled value + gt_attr (Optional[str]): field to store the sampled value to, if not None + """ + assert (prediction_attr, gt_attr) in self._samplers + del self._samplers[(prediction_attr, gt_attr)] diff --git a/detectron2/projects/DensePose/densepose/data/transform/__init__.py b/detectron2/projects/DensePose/densepose/data/transform/__init__.py new file mode 100755 index 0000000..369e1b2 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/transform/__init__.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .image import ImageResizeTransform diff --git a/detectron2/projects/DensePose/densepose/data/transform/image.py b/detectron2/projects/DensePose/densepose/data/transform/image.py new file mode 100755 index 0000000..8139b67 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/transform/image.py @@ -0,0 +1,39 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import torch + + +class ImageResizeTransform: + """ + Transform that resizes images loaded from a dataset + (BGR data in NCHW channel order, typically uint8) to a format ready to be + consumed by DensePose training (BGR float32 data in NCHW channel order) + """ + + def __init__(self, min_size: int = 800, max_size: int = 1333): + self.min_size = min_size + self.max_size = max_size + + def __call__(self, images: torch.Tensor) -> torch.Tensor: + """ + Args: + images (torch.Tensor): tensor of size [N, 3, H, W] that contains + BGR data (typically in uint8) + Returns: + images (torch.Tensor): tensor of size [N, 3, H1, W1] where + H1 and W1 are chosen to respect the specified min and max sizes + and preserve the original aspect ratio, the data channels + follow BGR order and the data type is `torch.float32` + """ + # resize with min size + images = images.float() + min_size = min(images.shape[-2:]) + max_size = max(images.shape[-2:]) + scale = min(self.min_size / min_size, self.max_size / max_size) + images = torch.nn.functional.interpolate( + images, + scale_factor=scale, + mode="bilinear", + align_corners=False, + ) + return images diff --git a/detectron2/projects/DensePose/densepose/data/utils.py b/detectron2/projects/DensePose/densepose/data/utils.py new file mode 100755 index 0000000..9878c31 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/utils.py @@ -0,0 +1,38 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import os +from typing import Dict, Optional + +from detectron2.config import CfgNode + + +def is_relative_local_path(path: str) -> bool: + path_str = os.fsdecode(path) + return ("://" not in path_str) and not os.path.isabs(path) + + +def maybe_prepend_base_path(base_path: Optional[str], path: str): + """ + Prepends the provided path with a base path prefix if: + 1) base path is not None; + 2) path is a local path + """ + if base_path is None: + return path + if is_relative_local_path(path): + return os.path.join(base_path, path) + return path + + +def get_class_to_mesh_name_mapping(cfg: CfgNode) -> Dict[int, str]: + return { + int(class_id): mesh_name + for class_id, mesh_name in cfg.DATASETS.CLASS_TO_MESH_NAME_MAPPING.items() + } + + +def get_category_to_class_mapping(dataset_cfg: CfgNode) -> Dict[str, int]: + return { + category: int(class_id) + for category, class_id in dataset_cfg.CATEGORY_TO_CLASS_MAPPING.items() + } diff --git a/detectron2/projects/DensePose/densepose/data/video/__init__.py b/detectron2/projects/DensePose/densepose/data/video/__init__.py new file mode 100755 index 0000000..72406e1 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/video/__init__.py @@ -0,0 +1,17 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .frame_selector import ( + FrameSelectionStrategy, + RandomKFramesSelector, + FirstKFramesSelector, + LastKFramesSelector, + FrameTsList, + FrameSelector, +) + +from .video_keyframe_dataset import ( + VideoKeyframeDataset, + video_list_from_file, + list_keyframes, + read_keyframes, +) diff --git a/detectron2/projects/DensePose/densepose/data/video/frame_selector.py b/detectron2/projects/DensePose/densepose/data/video/frame_selector.py new file mode 100755 index 0000000..c28f0e9 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/video/frame_selector.py @@ -0,0 +1,87 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +from collections.abc import Callable +from enum import Enum +from typing import Callable as TCallable +from typing import List + +FrameTsList = List[int] +FrameSelector = TCallable[[FrameTsList], FrameTsList] + + +class FrameSelectionStrategy(Enum): + """ + Frame selection strategy used with videos: + - "random_k": select k random frames + - "first_k": select k first frames + - "last_k": select k last frames + - "all": select all frames + """ + + # fmt: off + RANDOM_K = "random_k" + FIRST_K = "first_k" + LAST_K = "last_k" + ALL = "all" + # fmt: on + + +class RandomKFramesSelector(Callable): # pyre-ignore[39] + """ + Selector that retains at most `k` random frames + """ + + def __init__(self, k: int): + self.k = k + + def __call__(self, frame_tss: FrameTsList) -> FrameTsList: + """ + Select `k` random frames + + Args: + frames_tss (List[int]): timestamps of input frames + Returns: + List[int]: timestamps of selected frames + """ + return random.sample(frame_tss, min(self.k, len(frame_tss))) + + +class FirstKFramesSelector(Callable): # pyre-ignore[39] + """ + Selector that retains at most `k` first frames + """ + + def __init__(self, k: int): + self.k = k + + def __call__(self, frame_tss: FrameTsList) -> FrameTsList: + """ + Select `k` first frames + + Args: + frames_tss (List[int]): timestamps of input frames + Returns: + List[int]: timestamps of selected frames + """ + return frame_tss[: self.k] + + +class LastKFramesSelector(Callable): # pyre-ignore[39] + """ + Selector that retains at most `k` last frames from video data + """ + + def __init__(self, k: int): + self.k = k + + def __call__(self, frame_tss: FrameTsList) -> FrameTsList: + """ + Select `k` last frames + + Args: + frames_tss (List[int]): timestamps of input frames + Returns: + List[int]: timestamps of selected frames + """ + return frame_tss[-self.k :] diff --git a/detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py b/detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py new file mode 100755 index 0000000..214365c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/data/video/video_keyframe_dataset.py @@ -0,0 +1,300 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import csv +import logging +import numpy as np +from typing import Any, Callable, Dict, List, Optional, Union +import av +import torch +from torch.utils.data.dataset import Dataset + +from detectron2.utils.file_io import PathManager + +from ..utils import maybe_prepend_base_path +from .frame_selector import FrameSelector, FrameTsList + +FrameList = List[av.frame.Frame] # pyre-ignore[16] +FrameTransform = Callable[[torch.Tensor], torch.Tensor] + + +def list_keyframes(video_fpath: str, video_stream_idx: int = 0) -> FrameTsList: + """ + Traverses all keyframes of a video file. Returns a list of keyframe + timestamps. Timestamps are counts in timebase units. + + Args: + video_fpath (str): Video file path + video_stream_idx (int): Video stream index (default: 0) + Returns: + List[int]: list of keyframe timestaps (timestamp is a count in timebase + units) + """ + try: + with PathManager.open(video_fpath, "rb") as io: + container = av.open(io, mode="r") + stream = container.streams.video[video_stream_idx] + keyframes = [] + pts = -1 + # Note: even though we request forward seeks for keyframes, sometimes + # a keyframe in backwards direction is returned. We introduce tolerance + # as a max count of ignored backward seeks + tolerance_backward_seeks = 2 + while True: + try: + container.seek(pts + 1, backward=False, any_frame=False, stream=stream) + except av.AVError as e: + # the exception occurs when the video length is exceeded, + # we then return whatever data we've already collected + logger = logging.getLogger(__name__) + logger.debug( + f"List keyframes: Error seeking video file {video_fpath}, " + f"video stream {video_stream_idx}, pts {pts + 1}, AV error: {e}" + ) + return keyframes + except OSError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"List keyframes: Error seeking video file {video_fpath}, " + f"video stream {video_stream_idx}, pts {pts + 1}, OS error: {e}" + ) + return [] + packet = next(container.demux(video=video_stream_idx)) + if packet.pts is not None and packet.pts <= pts: + logger = logging.getLogger(__name__) + logger.warning( + f"Video file {video_fpath}, stream {video_stream_idx}: " + f"bad seek for packet {pts + 1} (got packet {packet.pts}), " + f"tolerance {tolerance_backward_seeks}." + ) + tolerance_backward_seeks -= 1 + if tolerance_backward_seeks == 0: + return [] + pts += 1 + continue + tolerance_backward_seeks = 2 + pts = packet.pts + if pts is None: + return keyframes + if packet.is_keyframe: + keyframes.append(pts) + return keyframes + except OSError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"List keyframes: Error opening video file container {video_fpath}, " f"OS error: {e}" + ) + except RuntimeError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"List keyframes: Error opening video file container {video_fpath}, " + f"Runtime error: {e}" + ) + return [] + + +def read_keyframes( + video_fpath: str, keyframes: FrameTsList, video_stream_idx: int = 0 +) -> FrameList: # pyre-ignore[11] + """ + Reads keyframe data from a video file. + + Args: + video_fpath (str): Video file path + keyframes (List[int]): List of keyframe timestamps (as counts in + timebase units to be used in container seek operations) + video_stream_idx (int): Video stream index (default: 0) + Returns: + List[Frame]: list of frames that correspond to the specified timestamps + """ + try: + with PathManager.open(video_fpath, "rb") as io: + container = av.open(io) + stream = container.streams.video[video_stream_idx] + frames = [] + for pts in keyframes: + try: + container.seek(pts, any_frame=False, stream=stream) + frame = next(container.decode(video=0)) + frames.append(frame) + except av.AVError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"Read keyframes: Error seeking video file {video_fpath}, " + f"video stream {video_stream_idx}, pts {pts}, AV error: {e}" + ) + container.close() + return frames + except OSError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"Read keyframes: Error seeking video file {video_fpath}, " + f"video stream {video_stream_idx}, pts {pts}, OS error: {e}" + ) + container.close() + return frames + except StopIteration: + logger = logging.getLogger(__name__) + logger.warning( + f"Read keyframes: Error decoding frame from {video_fpath}, " + f"video stream {video_stream_idx}, pts {pts}" + ) + container.close() + return frames + + container.close() + return frames + except OSError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"Read keyframes: Error opening video file container {video_fpath}, OS error: {e}" + ) + except RuntimeError as e: + logger = logging.getLogger(__name__) + logger.warning( + f"Read keyframes: Error opening video file container {video_fpath}, Runtime error: {e}" + ) + return [] + + +def video_list_from_file(video_list_fpath: str, base_path: Optional[str] = None): + """ + Create a list of paths to video files from a text file. + + Args: + video_list_fpath (str): path to a plain text file with the list of videos + base_path (str): base path for entries from the video list (default: None) + """ + video_list = [] + with PathManager.open(video_list_fpath, "r") as io: + for line in io: + video_list.append(maybe_prepend_base_path(base_path, str(line.strip()))) + return video_list + + +def read_keyframe_helper_data(fpath: str): + """ + Read keyframe data from a file in CSV format: the header should contain + "video_id" and "keyframes" fields. Value specifications are: + video_id: int + keyframes: list(int) + Example of contents: + video_id,keyframes + 2,"[1,11,21,31,41,51,61,71,81]" + + Args: + fpath (str): File containing keyframe data + + Return: + video_id_to_keyframes (dict: int -> list(int)): for a given video ID it + contains a list of keyframes for that video + """ + video_id_to_keyframes = {} + try: + with PathManager.open(fpath, "r") as io: + csv_reader = csv.reader(io) # pyre-ignore[6] + header = next(csv_reader) + video_id_idx = header.index("video_id") + keyframes_idx = header.index("keyframes") + for row in csv_reader: + video_id = int(row[video_id_idx]) + assert ( + video_id not in video_id_to_keyframes + ), f"Duplicate keyframes entry for video {fpath}" + video_id_to_keyframes[video_id] = ( + [int(v) for v in row[keyframes_idx][1:-1].split(",")] + if len(row[keyframes_idx]) > 2 + else [] + ) + except Exception as e: + logger = logging.getLogger(__name__) + logger.warning(f"Error reading keyframe helper data from {fpath}: {e}") + return video_id_to_keyframes + + +class VideoKeyframeDataset(Dataset): + """ + Dataset that provides keyframes for a set of videos. + """ + + _EMPTY_FRAMES = torch.empty((0, 3, 1, 1)) + + def __init__( + self, + video_list: List[str], + category_list: Union[str, List[str], None] = None, + frame_selector: Optional[FrameSelector] = None, + transform: Optional[FrameTransform] = None, + keyframe_helper_fpath: Optional[str] = None, + ): + """ + Dataset constructor + + Args: + video_list (List[str]): list of paths to video files + category_list (Union[str, List[str], None]): list of animal categories for each + video file. If it is a string, or None, this applies to all videos + frame_selector (Callable: KeyFrameList -> KeyFrameList): + selects keyframes to process, keyframes are given by + packet timestamps in timebase counts. If None, all keyframes + are selected (default: None) + transform (Callable: torch.Tensor -> torch.Tensor): + transforms a batch of RGB images (tensors of size [B, 3, H, W]), + returns a tensor of the same size. If None, no transform is + applied (default: None) + + """ + if type(category_list) == list: + self.category_list = category_list + else: + self.category_list = [category_list] * len(video_list) + assert len(video_list) == len( + self.category_list + ), "length of video and category lists must be equal" + self.video_list = video_list + self.frame_selector = frame_selector + self.transform = transform + self.keyframe_helper_data = ( + read_keyframe_helper_data(keyframe_helper_fpath) + if keyframe_helper_fpath is not None + else None + ) + + def __getitem__(self, idx: int) -> Dict[str, Any]: + """ + Gets selected keyframes from a given video + + Args: + idx (int): video index in the video list file + Returns: + A dictionary containing two keys: + images (torch.Tensor): tensor of size [N, H, W, 3] or of size + defined by the transform that contains keyframes data + categories (List[str]): categories of the frames + """ + categories = [self.category_list[idx]] + fpath = self.video_list[idx] + keyframes = ( + list_keyframes(fpath) + if self.keyframe_helper_data is None or idx not in self.keyframe_helper_data + else self.keyframe_helper_data[idx] + ) + transform = self.transform + frame_selector = self.frame_selector + if not keyframes: + return {"images": self._EMPTY_FRAMES, "categories": []} + if frame_selector is not None: + keyframes = frame_selector(keyframes) + frames = read_keyframes(fpath, keyframes) + if not frames: + return {"images": self._EMPTY_FRAMES, "categories": []} + frames = np.stack([frame.to_rgb().to_ndarray() for frame in frames]) + frames = torch.as_tensor(frames, device=torch.device("cpu")) + frames = frames[..., [2, 1, 0]] # RGB -> BGR + frames = frames.permute(0, 3, 1, 2).float() # NHWC -> NCHW + if transform is not None: + frames = transform(frames) + return {"images": frames, "categories": categories} + + def __len__(self): + return len(self.video_list) diff --git a/detectron2/projects/DensePose/densepose/engine/__init__.py b/detectron2/projects/DensePose/densepose/engine/__init__.py new file mode 100755 index 0000000..539b93a --- /dev/null +++ b/detectron2/projects/DensePose/densepose/engine/__init__.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .trainer import Trainer diff --git a/detectron2/projects/DensePose/densepose/engine/trainer.py b/detectron2/projects/DensePose/densepose/engine/trainer.py new file mode 100755 index 0000000..a8ffe82 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/engine/trainer.py @@ -0,0 +1,258 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import logging +import os +from collections import OrderedDict +from typing import List, Optional, Union +import torch +from torch import nn + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import CfgNode +from detectron2.engine import DefaultTrainer +from detectron2.evaluation import ( + DatasetEvaluator, + DatasetEvaluators, + inference_on_dataset, + print_csv_format, +) +from detectron2.solver.build import get_default_optimizer_params, maybe_add_gradient_clipping +from detectron2.utils import comm +from detectron2.utils.events import EventWriter, get_event_storage + +from densepose import DensePoseDatasetMapperTTA, DensePoseGeneralizedRCNNWithTTA, load_from_cfg +from densepose.data import ( + DatasetMapper, + build_combined_loader, + build_detection_test_loader, + build_detection_train_loader, + build_inference_based_loaders, + has_inference_based_loaders, +) +from densepose.evaluation.d2_evaluator_adapter import Detectron2COCOEvaluatorAdapter +from densepose.evaluation.evaluator import DensePoseCOCOEvaluator, build_densepose_evaluator_storage +from densepose.modeling.cse import Embedder + + +class SampleCountingLoader: + def __init__(self, loader): + self.loader = loader + + def __iter__(self): + it = iter(self.loader) + storage = get_event_storage() + while True: + try: + batch = next(it) + num_inst_per_dataset = {} + for data in batch: + dataset_name = data["dataset"] + if dataset_name not in num_inst_per_dataset: + num_inst_per_dataset[dataset_name] = 0 + num_inst = len(data["instances"]) + num_inst_per_dataset[dataset_name] += num_inst + for dataset_name in num_inst_per_dataset: + storage.put_scalar(f"batch/{dataset_name}", num_inst_per_dataset[dataset_name]) + yield batch + except StopIteration: + break + + +class SampleCountMetricPrinter(EventWriter): + def __init__(self): + self.logger = logging.getLogger(__name__) + + def write(self): + storage = get_event_storage() + batch_stats_strs = [] + for key, buf in storage.histories().items(): + if key.startswith("batch/"): + batch_stats_strs.append(f"{key} {buf.avg(20)}") + self.logger.info(", ".join(batch_stats_strs)) + + +class Trainer(DefaultTrainer): + @classmethod + def extract_embedder_from_model(cls, model: nn.Module) -> Optional[Embedder]: + if isinstance(model, nn.parallel.DistributedDataParallel): + model = model.module + if hasattr(model, "roi_heads") and hasattr(model.roi_heads, "embedder"): + return model.roi_heads.embedder + return None + + # TODO: the only reason to copy the base class code here is to pass the embedder from + # the model to the evaluator; that should be refactored to avoid unnecessary copy-pasting + @classmethod + def test( + cls, + cfg: CfgNode, + model: nn.Module, + evaluators: Optional[Union[DatasetEvaluator, List[DatasetEvaluator]]] = None, + ): + """ + Args: + cfg (CfgNode): + model (nn.Module): + evaluators (DatasetEvaluator, list[DatasetEvaluator] or None): if None, will call + :meth:`build_evaluator`. Otherwise, must have the same length as + ``cfg.DATASETS.TEST``. + + Returns: + dict: a dict of result metrics + """ + logger = logging.getLogger(__name__) + if isinstance(evaluators, DatasetEvaluator): + evaluators = [evaluators] + if evaluators is not None: + assert len(cfg.DATASETS.TEST) == len(evaluators), "{} != {}".format( + len(cfg.DATASETS.TEST), len(evaluators) + ) + + results = OrderedDict() + for idx, dataset_name in enumerate(cfg.DATASETS.TEST): + data_loader = cls.build_test_loader(cfg, dataset_name) + # When evaluators are passed in as arguments, + # implicitly assume that evaluators can be created before data_loader. + if evaluators is not None: + evaluator = evaluators[idx] + else: + try: + embedder = cls.extract_embedder_from_model(model) + evaluator = cls.build_evaluator(cfg, dataset_name, embedder=embedder) + except NotImplementedError: + logger.warn( + "No evaluator found. Use `DefaultTrainer.test(evaluators=)`, " + "or implement its `build_evaluator` method." + ) + results[dataset_name] = {} + continue + if cfg.DENSEPOSE_EVALUATION.DISTRIBUTED_INFERENCE or comm.is_main_process(): + results_i = inference_on_dataset(model, data_loader, evaluator) + else: + results_i = {} + results[dataset_name] = results_i + if comm.is_main_process(): + assert isinstance( + results_i, dict + ), "Evaluator must return a dict on the main process. Got {} instead.".format( + results_i + ) + logger.info("Evaluation results for {} in csv format:".format(dataset_name)) + print_csv_format(results_i) + + if len(results) == 1: + results = list(results.values())[0] + return results + + @classmethod + def build_evaluator( + cls, + cfg: CfgNode, + dataset_name: str, + output_folder: Optional[str] = None, + embedder: Optional[Embedder] = None, + ) -> DatasetEvaluators: + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluators = [] + distributed = cfg.DENSEPOSE_EVALUATION.DISTRIBUTED_INFERENCE + # Note: we currently use COCO evaluator for both COCO and LVIS datasets + # to have compatible metrics. LVIS bbox evaluator could also be used + # with an adapter to properly handle filtered / mapped categories + # evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + # if evaluator_type == "coco": + # evaluators.append(COCOEvaluator(dataset_name, output_dir=output_folder)) + # elif evaluator_type == "lvis": + # evaluators.append(LVISEvaluator(dataset_name, output_dir=output_folder)) + evaluators.append( + Detectron2COCOEvaluatorAdapter( + dataset_name, output_dir=output_folder, distributed=distributed + ) + ) + if cfg.MODEL.DENSEPOSE_ON: + storage = build_densepose_evaluator_storage(cfg, output_folder) + evaluators.append( + DensePoseCOCOEvaluator( + dataset_name, + distributed, + output_folder, + evaluator_type=cfg.DENSEPOSE_EVALUATION.TYPE, + min_iou_threshold=cfg.DENSEPOSE_EVALUATION.MIN_IOU_THRESHOLD, + storage=storage, + embedder=embedder, + should_evaluate_mesh_alignment=cfg.DENSEPOSE_EVALUATION.EVALUATE_MESH_ALIGNMENT, + mesh_alignment_mesh_names=cfg.DENSEPOSE_EVALUATION.MESH_ALIGNMENT_MESH_NAMES, + ) + ) + return DatasetEvaluators(evaluators) + + @classmethod + def build_optimizer(cls, cfg: CfgNode, model: nn.Module): + params = get_default_optimizer_params( + model, + base_lr=cfg.SOLVER.BASE_LR, + weight_decay_norm=cfg.SOLVER.WEIGHT_DECAY_NORM, + bias_lr_factor=cfg.SOLVER.BIAS_LR_FACTOR, + weight_decay_bias=cfg.SOLVER.WEIGHT_DECAY_BIAS, + overrides={ + "features": { + "lr": cfg.SOLVER.BASE_LR * cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.FEATURES_LR_FACTOR, + }, + "embeddings": { + "lr": cfg.SOLVER.BASE_LR * cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDING_LR_FACTOR, + }, + }, + ) + optimizer = torch.optim.SGD( + params, + cfg.SOLVER.BASE_LR, + momentum=cfg.SOLVER.MOMENTUM, + nesterov=cfg.SOLVER.NESTEROV, + weight_decay=cfg.SOLVER.WEIGHT_DECAY, + ) + # pyre-fixme[6]: For 2nd param expected `Type[Optimizer]` but got `SGD`. + return maybe_add_gradient_clipping(cfg, optimizer) + + @classmethod + def build_test_loader(cls, cfg: CfgNode, dataset_name): + return build_detection_test_loader(cfg, dataset_name, mapper=DatasetMapper(cfg, False)) + + @classmethod + def build_train_loader(cls, cfg: CfgNode): + data_loader = build_detection_train_loader(cfg, mapper=DatasetMapper(cfg, True)) + if not has_inference_based_loaders(cfg): + return data_loader + model = cls.build_model(cfg) + model.to(cfg.BOOTSTRAP_MODEL.DEVICE) + DetectionCheckpointer(model).resume_or_load(cfg.BOOTSTRAP_MODEL.WEIGHTS, resume=False) + inference_based_loaders, ratios = build_inference_based_loaders(cfg, model) + loaders = [data_loader] + inference_based_loaders + ratios = [1.0] + ratios + combined_data_loader = build_combined_loader(cfg, loaders, ratios) + sample_counting_loader = SampleCountingLoader(combined_data_loader) + return sample_counting_loader + + def build_writers(self): + writers = super().build_writers() + writers.append(SampleCountMetricPrinter()) + return writers + + @classmethod + def test_with_TTA(cls, cfg: CfgNode, model): + logger = logging.getLogger("detectron2.trainer") + # In the end of training, run an evaluation with TTA + # Only support some R-CNN models. + logger.info("Running inference with test-time augmentation ...") + transform_data = load_from_cfg(cfg) + model = DensePoseGeneralizedRCNNWithTTA( + cfg, model, transform_data, DensePoseDatasetMapperTTA(cfg) + ) + evaluators = [ + cls.build_evaluator( + cfg, name, output_folder=os.path.join(cfg.OUTPUT_DIR, "inference_TTA") + ) + for name in cfg.DATASETS.TEST + ] + res = cls.test(cfg, model, evaluators) # pyre-ignore[6] + res = OrderedDict({k + "_TTA": v for k, v in res.items()}) + return res diff --git a/detectron2/projects/DensePose/densepose/evaluation/__init__.py b/detectron2/projects/DensePose/densepose/evaluation/__init__.py new file mode 100755 index 0000000..e5ae1f2 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/evaluation/__init__.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .evaluator import DensePoseCOCOEvaluator diff --git a/detectron2/projects/DensePose/densepose/evaluation/d2_evaluator_adapter.py b/detectron2/projects/DensePose/densepose/evaluation/d2_evaluator_adapter.py new file mode 100755 index 0000000..1fbc526 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/evaluation/d2_evaluator_adapter.py @@ -0,0 +1,50 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.data.catalog import Metadata +from detectron2.evaluation import COCOEvaluator + +from densepose.data.datasets.coco import ( + get_contiguous_id_to_category_id_map, + maybe_filter_categories_cocoapi, +) + + +def _maybe_add_iscrowd_annotations(cocoapi) -> None: + for ann in cocoapi.dataset["annotations"]: + if "iscrowd" not in ann: + ann["iscrowd"] = 0 + + +class Detectron2COCOEvaluatorAdapter(COCOEvaluator): + def __init__( + self, + dataset_name, + output_dir=None, + distributed=True, + ): + super().__init__(dataset_name, output_dir=output_dir, distributed=distributed) + maybe_filter_categories_cocoapi(dataset_name, self._coco_api) + _maybe_add_iscrowd_annotations(self._coco_api) + # substitute category metadata to account for categories + # that are mapped to the same contiguous id + if hasattr(self._metadata, "thing_dataset_id_to_contiguous_id"): + self._maybe_substitute_metadata() + + def _maybe_substitute_metadata(self): + cont_id_2_cat_id = get_contiguous_id_to_category_id_map(self._metadata) + cat_id_2_cont_id = self._metadata.thing_dataset_id_to_contiguous_id + if len(cont_id_2_cat_id) == len(cat_id_2_cont_id): + return + + cat_id_2_cont_id_injective = {} + for cat_id, cont_id in cat_id_2_cont_id.items(): + if (cont_id in cont_id_2_cat_id) and (cont_id_2_cat_id[cont_id] == cat_id): + cat_id_2_cont_id_injective[cat_id] = cont_id + + metadata_new = Metadata(name=self._metadata.name) + for key, value in self._metadata.__dict__.items(): + if key == "thing_dataset_id_to_contiguous_id": + setattr(metadata_new, key, cat_id_2_cont_id_injective) + else: + setattr(metadata_new, key, value) + self._metadata = metadata_new diff --git a/detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py b/detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py new file mode 100755 index 0000000..06965f3 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/evaluation/densepose_coco_evaluation.py @@ -0,0 +1,1303 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# All rights reserved. +# +# This source code is licensed under the license found in the +# LICENSE file in the root directory of this source tree. +# This is a modified version of cocoeval.py where we also have the densepose evaluation. + +__author__ = "tsungyi" + +import copy +import datetime +import logging +import numpy as np +import pickle +import time +from collections import defaultdict +from enum import Enum +from typing import Any, Dict, Tuple +import scipy.spatial.distance as ssd +import torch +import torch.nn.functional as F +from pycocotools import mask as maskUtils +from scipy.io import loadmat +from scipy.ndimage import zoom as spzoom + +from detectron2.utils.file_io import PathManager + +from densepose.converters.chart_output_to_chart_result import resample_uv_tensors_to_bbox +from densepose.converters.segm_to_mask import ( + resample_coarse_segm_tensor_to_bbox, + resample_fine_and_coarse_segm_tensors_to_bbox, +) +from densepose.modeling.cse.utils import squared_euclidean_distance_matrix +from densepose.structures import DensePoseDataRelative +from densepose.structures.mesh import create_mesh + +logger = logging.getLogger(__name__) + + +class DensePoseEvalMode(str, Enum): + # use both masks and geodesic distances (GPS * IOU) to compute scores + GPSM = "gpsm" + # use only geodesic distances (GPS) to compute scores + GPS = "gps" + # use only masks (IOU) to compute scores + IOU = "iou" + + +class DensePoseDataMode(str, Enum): + # use estimated IUV data (default mode) + IUV_DT = "iuvdt" + # use ground truth IUV data + IUV_GT = "iuvgt" + # use ground truth labels I and set UV to 0 + I_GT_UV_0 = "igtuv0" + # use ground truth labels I and estimated UV coordinates + I_GT_UV_DT = "igtuvdt" + # use estimated labels I and set UV to 0 + I_DT_UV_0 = "idtuv0" + + +class DensePoseCocoEval(object): + # Interface for evaluating detection on the Microsoft COCO dataset. + # + # The usage for CocoEval is as follows: + # cocoGt=..., cocoDt=... # load dataset and results + # E = CocoEval(cocoGt,cocoDt); # initialize CocoEval object + # E.params.recThrs = ...; # set parameters as desired + # E.evaluate(); # run per image evaluation + # E.accumulate(); # accumulate per image results + # E.summarize(); # display summary metrics of results + # For example usage see evalDemo.m and http://mscoco.org/. + # + # The evaluation parameters are as follows (defaults in brackets): + # imgIds - [all] N img ids to use for evaluation + # catIds - [all] K cat ids to use for evaluation + # iouThrs - [.5:.05:.95] T=10 IoU thresholds for evaluation + # recThrs - [0:.01:1] R=101 recall thresholds for evaluation + # areaRng - [...] A=4 object area ranges for evaluation + # maxDets - [1 10 100] M=3 thresholds on max detections per image + # iouType - ['segm'] set iouType to 'segm', 'bbox', 'keypoints' or 'densepose' + # iouType replaced the now DEPRECATED useSegm parameter. + # useCats - [1] if true use category labels for evaluation + # Note: if useCats=0 category labels are ignored as in proposal scoring. + # Note: multiple areaRngs [Ax2] and maxDets [Mx1] can be specified. + # + # evaluate(): evaluates detections on every image and every category and + # concats the results into the "evalImgs" with fields: + # dtIds - [1xD] id for each of the D detections (dt) + # gtIds - [1xG] id for each of the G ground truths (gt) + # dtMatches - [TxD] matching gt id at each IoU or 0 + # gtMatches - [TxG] matching dt id at each IoU or 0 + # dtScores - [1xD] confidence of each dt + # gtIgnore - [1xG] ignore flag for each gt + # dtIgnore - [TxD] ignore flag for each dt at each IoU + # + # accumulate(): accumulates the per-image, per-category evaluation + # results in "evalImgs" into the dictionary "eval" with fields: + # params - parameters used for evaluation + # date - date evaluation was performed + # counts - [T,R,K,A,M] parameter dimensions (see above) + # precision - [TxRxKxAxM] precision for every evaluation setting + # recall - [TxKxAxM] max recall for every evaluation setting + # Note: precision and recall==-1 for settings with no gt objects. + # + # See also coco, mask, pycocoDemo, pycocoEvalDemo + # + # Microsoft COCO Toolbox. version 2.0 + # Data, paper, and tutorials available at: http://mscoco.org/ + # Code written by Piotr Dollar and Tsung-Yi Lin, 2015. + # Licensed under the Simplified BSD License [see coco/license.txt] + def __init__( + self, + cocoGt=None, + cocoDt=None, + iouType: str = "densepose", + multi_storage=None, + embedder=None, + dpEvalMode: DensePoseEvalMode = DensePoseEvalMode.GPS, + dpDataMode: DensePoseDataMode = DensePoseDataMode.IUV_DT, + ): + """ + Initialize CocoEval using coco APIs for gt and dt + :param cocoGt: coco object with ground truth annotations + :param cocoDt: coco object with detection results + :return: None + """ + self.cocoGt = cocoGt # ground truth COCO API + self.cocoDt = cocoDt # detections COCO API + self.multi_storage = multi_storage + self.embedder = embedder + self._dpEvalMode = dpEvalMode + self._dpDataMode = dpDataMode + self.evalImgs = defaultdict(list) # per-image per-category eval results [KxAxI] + self.eval = {} # accumulated evaluation results + self._gts = defaultdict(list) # gt for evaluation + self._dts = defaultdict(list) # dt for evaluation + self.params = Params(iouType=iouType) # parameters + self._paramsEval = {} # parameters for evaluation + self.stats = [] # result summarization + self.ious = {} # ious between all gts and dts + if cocoGt is not None: + self.params.imgIds = sorted(cocoGt.getImgIds()) + self.params.catIds = sorted(cocoGt.getCatIds()) + self.ignoreThrBB = 0.7 + self.ignoreThrUV = 0.9 + + def _loadGEval(self): + smpl_subdiv_fpath = PathManager.get_local_path( + "https://dl.fbaipublicfiles.com/densepose/data/SMPL_subdiv.mat" + ) + pdist_transform_fpath = PathManager.get_local_path( + "https://dl.fbaipublicfiles.com/densepose/data/SMPL_SUBDIV_TRANSFORM.mat" + ) + pdist_matrix_fpath = PathManager.get_local_path( + "https://dl.fbaipublicfiles.com/densepose/data/Pdist_matrix.pkl", timeout_sec=120 + ) + SMPL_subdiv = loadmat(smpl_subdiv_fpath) + self.PDIST_transform = loadmat(pdist_transform_fpath) + self.PDIST_transform = self.PDIST_transform["index"].squeeze() + UV = np.array([SMPL_subdiv["U_subdiv"], SMPL_subdiv["V_subdiv"]]).squeeze() + ClosestVertInds = np.arange(UV.shape[1]) + 1 + self.Part_UVs = [] + self.Part_ClosestVertInds = [] + for i in np.arange(24): + self.Part_UVs.append(UV[:, SMPL_subdiv["Part_ID_subdiv"].squeeze() == (i + 1)]) + self.Part_ClosestVertInds.append( + ClosestVertInds[SMPL_subdiv["Part_ID_subdiv"].squeeze() == (i + 1)] + ) + + with open(pdist_matrix_fpath, "rb") as hFile: + arrays = pickle.load(hFile, encoding="latin1") + self.Pdist_matrix = arrays["Pdist_matrix"] + self.Part_ids = np.array(SMPL_subdiv["Part_ID_subdiv"].squeeze()) + # Mean geodesic distances for parts. + self.Mean_Distances = np.array([0, 0.351, 0.107, 0.126, 0.237, 0.173, 0.142, 0.128, 0.150]) + # Coarse Part labels. + self.CoarseParts = np.array( + [0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8] + ) + + def _prepare(self): + """ + Prepare ._gts and ._dts for evaluation based on params + :return: None + """ + + def _toMask(anns, coco): + # modify ann['segmentation'] by reference + for ann in anns: + # safeguard for invalid segmentation annotation; + # annotations containing empty lists exist in the posetrack + # dataset. This is not a correct segmentation annotation + # in terms of COCO format; we need to deal with it somehow + segm = ann["segmentation"] + if type(segm) == list and len(segm) == 0: + ann["segmentation"] = None + continue + rle = coco.annToRLE(ann) + ann["segmentation"] = rle + + def _getIgnoreRegion(iid, coco): + img = coco.imgs[iid] + + if "ignore_regions_x" not in img.keys(): + return None + + if len(img["ignore_regions_x"]) == 0: + return None + + rgns_merged = [ + [v for xy in zip(region_x, region_y) for v in xy] + for region_x, region_y in zip(img["ignore_regions_x"], img["ignore_regions_y"]) + ] + rles = maskUtils.frPyObjects(rgns_merged, img["height"], img["width"]) + rle = maskUtils.merge(rles) + return maskUtils.decode(rle) + + def _checkIgnore(dt, iregion): + if iregion is None: + return True + + bb = np.array(dt["bbox"]).astype(np.int) + x1, y1, x2, y2 = bb[0], bb[1], bb[0] + bb[2], bb[1] + bb[3] + x2 = min([x2, iregion.shape[1]]) + y2 = min([y2, iregion.shape[0]]) + + if bb[2] * bb[3] == 0: + return False + + crop_iregion = iregion[y1:y2, x1:x2] + + if crop_iregion.sum() == 0: + return True + + if "densepose" not in dt.keys(): # filtering boxes + return crop_iregion.sum() / bb[2] / bb[3] < self.ignoreThrBB + + # filtering UVs + ignoremask = np.require(crop_iregion, requirements=["F"]) + mask = self._extract_mask(dt) + uvmask = np.require(np.asarray(mask > 0), dtype=np.uint8, requirements=["F"]) + uvmask_ = maskUtils.encode(uvmask) + ignoremask_ = maskUtils.encode(ignoremask) + uviou = maskUtils.iou([uvmask_], [ignoremask_], [1])[0] + return uviou < self.ignoreThrUV + + p = self.params + + if p.useCats: + gts = self.cocoGt.loadAnns(self.cocoGt.getAnnIds(imgIds=p.imgIds, catIds=p.catIds)) + dts = self.cocoDt.loadAnns(self.cocoDt.getAnnIds(imgIds=p.imgIds, catIds=p.catIds)) + else: + gts = self.cocoGt.loadAnns(self.cocoGt.getAnnIds(imgIds=p.imgIds)) + dts = self.cocoDt.loadAnns(self.cocoDt.getAnnIds(imgIds=p.imgIds)) + + imns = self.cocoGt.loadImgs(p.imgIds) + self.size_mapping = {} + for im in imns: + self.size_mapping[im["id"]] = [im["height"], im["width"]] + + # if iouType == 'uv', add point gt annotations + if p.iouType == "densepose": + self._loadGEval() + + # convert ground truth to mask if iouType == 'segm' + if p.iouType == "segm": + _toMask(gts, self.cocoGt) + _toMask(dts, self.cocoDt) + + # set ignore flag + for gt in gts: + gt["ignore"] = gt["ignore"] if "ignore" in gt else 0 + gt["ignore"] = "iscrowd" in gt and gt["iscrowd"] + if p.iouType == "keypoints": + gt["ignore"] = (gt["num_keypoints"] == 0) or gt["ignore"] + if p.iouType == "densepose": + gt["ignore"] = ("dp_x" in gt) == 0 + if p.iouType == "segm": + gt["ignore"] = gt["segmentation"] is None + + self._gts = defaultdict(list) # gt for evaluation + self._dts = defaultdict(list) # dt for evaluation + self._igrgns = defaultdict(list) + + for gt in gts: + iid = gt["image_id"] + if iid not in self._igrgns.keys(): + self._igrgns[iid] = _getIgnoreRegion(iid, self.cocoGt) + if _checkIgnore(gt, self._igrgns[iid]): + self._gts[iid, gt["category_id"]].append(gt) + for dt in dts: + iid = dt["image_id"] + if (iid not in self._igrgns) or _checkIgnore(dt, self._igrgns[iid]): + self._dts[iid, dt["category_id"]].append(dt) + + self.evalImgs = defaultdict(list) # per-image per-category evaluation results + self.eval = {} # accumulated evaluation results + + def evaluate(self): + """ + Run per image evaluation on given images and store results (a list of dict) in self.evalImgs + :return: None + """ + tic = time.time() + logger.info("Running per image DensePose evaluation... {}".format(self.params.iouType)) + p = self.params + # add backward compatibility if useSegm is specified in params + if p.useSegm is not None: + p.iouType = "segm" if p.useSegm == 1 else "bbox" + logger.info("useSegm (deprecated) is not None. Running DensePose evaluation") + p.imgIds = list(np.unique(p.imgIds)) + if p.useCats: + p.catIds = list(np.unique(p.catIds)) + p.maxDets = sorted(p.maxDets) + self.params = p + + self._prepare() + # loop through images, area range, max detection number + catIds = p.catIds if p.useCats else [-1] + + if p.iouType in ["segm", "bbox"]: + computeIoU = self.computeIoU + elif p.iouType == "keypoints": + computeIoU = self.computeOks + elif p.iouType == "densepose": + computeIoU = self.computeOgps + if self._dpEvalMode in {DensePoseEvalMode.GPSM, DensePoseEvalMode.IOU}: + self.real_ious = { + (imgId, catId): self.computeDPIoU(imgId, catId) + for imgId in p.imgIds + for catId in catIds + } + + self.ious = { + (imgId, catId): computeIoU(imgId, catId) for imgId in p.imgIds for catId in catIds + } + + evaluateImg = self.evaluateImg + maxDet = p.maxDets[-1] + self.evalImgs = [ + evaluateImg(imgId, catId, areaRng, maxDet) + for catId in catIds + for areaRng in p.areaRng + for imgId in p.imgIds + ] + self._paramsEval = copy.deepcopy(self.params) + toc = time.time() + logger.info("DensePose evaluation DONE (t={:0.2f}s).".format(toc - tic)) + + def getDensePoseMask(self, polys): + maskGen = np.zeros([256, 256]) + stop = min(len(polys) + 1, 15) + for i in range(1, stop): + if polys[i - 1]: + currentMask = maskUtils.decode(polys[i - 1]) + maskGen[currentMask > 0] = i + return maskGen + + def _generate_rlemask_on_image(self, mask, imgId, data): + bbox_xywh = np.array(data["bbox"]) + x, y, w, h = bbox_xywh + im_h, im_w = self.size_mapping[imgId] + im_mask = np.zeros((im_h, im_w), dtype=np.uint8) + if mask is not None: + x0 = max(int(x), 0) + x1 = min(int(x + w), im_w, int(x) + mask.shape[1]) + y0 = max(int(y), 0) + y1 = min(int(y + h), im_h, int(y) + mask.shape[0]) + y = int(y) + x = int(x) + im_mask[y0:y1, x0:x1] = mask[y0 - y : y1 - y, x0 - x : x1 - x] + im_mask = np.require(np.asarray(im_mask > 0), dtype=np.uint8, requirements=["F"]) + rle_mask = maskUtils.encode(np.array(im_mask[:, :, np.newaxis], order="F"))[0] + return rle_mask + + def computeDPIoU(self, imgId, catId): + p = self.params + if p.useCats: + gt = self._gts[imgId, catId] + dt = self._dts[imgId, catId] + else: + gt = [_ for cId in p.catIds for _ in self._gts[imgId, cId]] + dt = [_ for cId in p.catIds for _ in self._dts[imgId, cId]] + if len(gt) == 0 and len(dt) == 0: + return [] + inds = np.argsort([-d["score"] for d in dt], kind="mergesort") + dt = [dt[i] for i in inds] + if len(dt) > p.maxDets[-1]: + dt = dt[0 : p.maxDets[-1]] + + gtmasks = [] + for g in gt: + if DensePoseDataRelative.S_KEY in g: + # convert DensePose mask to a binary mask + mask = np.minimum(self.getDensePoseMask(g[DensePoseDataRelative.S_KEY]), 1.0) + _, _, w, h = g["bbox"] + scale_x = float(max(w, 1)) / mask.shape[1] + scale_y = float(max(h, 1)) / mask.shape[0] + mask = spzoom(mask, (scale_y, scale_x), order=1, prefilter=False) + mask = np.array(mask > 0.5, dtype=np.uint8) + rle_mask = self._generate_rlemask_on_image(mask, imgId, g) + elif "segmentation" in g: + segmentation = g["segmentation"] + if isinstance(segmentation, list) and segmentation: + # polygons + im_h, im_w = self.size_mapping[imgId] + rles = maskUtils.frPyObjects(segmentation, im_h, im_w) + rle_mask = maskUtils.merge(rles) + elif isinstance(segmentation, dict): + if isinstance(segmentation["counts"], list): + # uncompressed RLE + im_h, im_w = self.size_mapping[imgId] + rle_mask = maskUtils.frPyObjects(segmentation, im_h, im_w) + else: + # compressed RLE + rle_mask = segmentation + else: + rle_mask = self._generate_rlemask_on_image(None, imgId, g) + else: + rle_mask = self._generate_rlemask_on_image(None, imgId, g) + gtmasks.append(rle_mask) + + dtmasks = [] + for d in dt: + mask = self._extract_mask(d) + mask = np.require(np.asarray(mask > 0), dtype=np.uint8, requirements=["F"]) + rle_mask = self._generate_rlemask_on_image(mask, imgId, d) + dtmasks.append(rle_mask) + + # compute iou between each dt and gt region + iscrowd = [int(o.get("iscrowd", 0)) for o in gt] + iousDP = maskUtils.iou(dtmasks, gtmasks, iscrowd) + return iousDP + + def computeIoU(self, imgId, catId): + p = self.params + if p.useCats: + gt = self._gts[imgId, catId] + dt = self._dts[imgId, catId] + else: + gt = [_ for cId in p.catIds for _ in self._gts[imgId, cId]] + dt = [_ for cId in p.catIds for _ in self._dts[imgId, cId]] + if len(gt) == 0 and len(dt) == 0: + return [] + inds = np.argsort([-d["score"] for d in dt], kind="mergesort") + dt = [dt[i] for i in inds] + if len(dt) > p.maxDets[-1]: + dt = dt[0 : p.maxDets[-1]] + + if p.iouType == "segm": + g = [g["segmentation"] for g in gt if g["segmentation"] is not None] + d = [d["segmentation"] for d in dt if d["segmentation"] is not None] + elif p.iouType == "bbox": + g = [g["bbox"] for g in gt] + d = [d["bbox"] for d in dt] + else: + raise Exception("unknown iouType for iou computation") + + # compute iou between each dt and gt region + iscrowd = [int(o.get("iscrowd", 0)) for o in gt] + ious = maskUtils.iou(d, g, iscrowd) + return ious + + def computeOks(self, imgId, catId): + p = self.params + # dimension here should be Nxm + gts = self._gts[imgId, catId] + dts = self._dts[imgId, catId] + inds = np.argsort([-d["score"] for d in dts], kind="mergesort") + dts = [dts[i] for i in inds] + if len(dts) > p.maxDets[-1]: + dts = dts[0 : p.maxDets[-1]] + # if len(gts) == 0 and len(dts) == 0: + if len(gts) == 0 or len(dts) == 0: + return [] + ious = np.zeros((len(dts), len(gts))) + sigmas = ( + np.array( + [ + 0.26, + 0.25, + 0.25, + 0.35, + 0.35, + 0.79, + 0.79, + 0.72, + 0.72, + 0.62, + 0.62, + 1.07, + 1.07, + 0.87, + 0.87, + 0.89, + 0.89, + ] + ) + / 10.0 + ) + vars = (sigmas * 2) ** 2 + k = len(sigmas) + # compute oks between each detection and ground truth object + for j, gt in enumerate(gts): + # create bounds for ignore regions(double the gt bbox) + g = np.array(gt["keypoints"]) + xg = g[0::3] + yg = g[1::3] + vg = g[2::3] + k1 = np.count_nonzero(vg > 0) + bb = gt["bbox"] + x0 = bb[0] - bb[2] + x1 = bb[0] + bb[2] * 2 + y0 = bb[1] - bb[3] + y1 = bb[1] + bb[3] * 2 + for i, dt in enumerate(dts): + d = np.array(dt["keypoints"]) + xd = d[0::3] + yd = d[1::3] + if k1 > 0: + # measure the per-keypoint distance if keypoints visible + dx = xd - xg + dy = yd - yg + else: + # measure minimum distance to keypoints in (x0,y0) & (x1,y1) + z = np.zeros(k) + dx = np.max((z, x0 - xd), axis=0) + np.max((z, xd - x1), axis=0) + dy = np.max((z, y0 - yd), axis=0) + np.max((z, yd - y1), axis=0) + e = (dx**2 + dy**2) / vars / (gt["area"] + np.spacing(1)) / 2 + if k1 > 0: + e = e[vg > 0] + ious[i, j] = np.sum(np.exp(-e)) / e.shape[0] + return ious + + def _extract_mask(self, dt: Dict[str, Any]) -> np.ndarray: + if "densepose" in dt: + densepose_results_quantized = dt["densepose"] + return densepose_results_quantized.labels_uv_uint8[0].numpy() + elif "cse_mask" in dt: + return dt["cse_mask"] + elif "coarse_segm" in dt: + dy = max(int(dt["bbox"][3]), 1) + dx = max(int(dt["bbox"][2]), 1) + return ( + F.interpolate( + dt["coarse_segm"].unsqueeze(0), + (dy, dx), + mode="bilinear", + align_corners=False, + ) + .squeeze(0) + .argmax(0) + .numpy() + .astype(np.uint8) + ) + elif "record_id" in dt: + assert ( + self.multi_storage is not None + ), f"Storage record id encountered in a detection {dt}, but no storage provided!" + record = self.multi_storage.get(dt["rank"], dt["record_id"]) + coarse_segm = record["coarse_segm"] + dy = max(int(dt["bbox"][3]), 1) + dx = max(int(dt["bbox"][2]), 1) + return ( + F.interpolate( + coarse_segm.unsqueeze(0), + (dy, dx), + mode="bilinear", + align_corners=False, + ) + .squeeze(0) + .argmax(0) + .numpy() + .astype(np.uint8) + ) + else: + raise Exception(f"No mask data in the detection: {dt}") + raise ValueError('The prediction dict needs to contain either "densepose" or "cse_mask"') + + def _extract_iuv( + self, densepose_data: np.ndarray, py: np.ndarray, px: np.ndarray, gt: Dict[str, Any] + ) -> Tuple[np.ndarray, np.ndarray, np.ndarray]: + """ + Extract arrays of I, U and V values at given points as numpy arrays + given the data mode stored in self._dpDataMode + """ + if self._dpDataMode == DensePoseDataMode.IUV_DT: + # estimated labels and UV (default) + ipoints = densepose_data[0, py, px] + upoints = densepose_data[1, py, px] / 255.0 # convert from uint8 by /255. + vpoints = densepose_data[2, py, px] / 255.0 + elif self._dpDataMode == DensePoseDataMode.IUV_GT: + # ground truth + ipoints = np.array(gt["dp_I"]) + upoints = np.array(gt["dp_U"]) + vpoints = np.array(gt["dp_V"]) + elif self._dpDataMode == DensePoseDataMode.I_GT_UV_0: + # ground truth labels, UV = 0 + ipoints = np.array(gt["dp_I"]) + upoints = upoints * 0.0 + vpoints = vpoints * 0.0 + elif self._dpDataMode == DensePoseDataMode.I_GT_UV_DT: + # ground truth labels, estimated UV + ipoints = np.array(gt["dp_I"]) + upoints = densepose_data[1, py, px] / 255.0 # convert from uint8 by /255. + vpoints = densepose_data[2, py, px] / 255.0 + elif self._dpDataMode == DensePoseDataMode.I_DT_UV_0: + # estimated labels, UV = 0 + ipoints = densepose_data[0, py, px] + upoints = upoints * 0.0 + vpoints = vpoints * 0.0 + else: + raise ValueError(f"Unknown data mode: {self._dpDataMode}") + return ipoints, upoints, vpoints + + def computeOgps_single_pair(self, dt, gt, py, px, pt_mask): + if "densepose" in dt: + ipoints, upoints, vpoints = self.extract_iuv_from_quantized(dt, gt, py, px, pt_mask) + return self.computeOgps_single_pair_iuv(dt, gt, ipoints, upoints, vpoints) + elif "u" in dt: + ipoints, upoints, vpoints = self.extract_iuv_from_raw(dt, gt, py, px, pt_mask) + return self.computeOgps_single_pair_iuv(dt, gt, ipoints, upoints, vpoints) + elif "record_id" in dt: + assert ( + self.multi_storage is not None + ), f"Storage record id encountered in detection {dt}, but no storage provided!" + record = self.multi_storage.get(dt["rank"], dt["record_id"]) + record["bbox"] = dt["bbox"] + if "u" in record: + ipoints, upoints, vpoints = self.extract_iuv_from_raw(record, gt, py, px, pt_mask) + return self.computeOgps_single_pair_iuv(dt, gt, ipoints, upoints, vpoints) + elif "embedding" in record: + return self.computeOgps_single_pair_cse( + dt, + gt, + py, + px, + pt_mask, + record["coarse_segm"], + record["embedding"], + record["bbox"], + ) + else: + raise Exception(f"Unknown record format: {record}") + elif "embedding" in dt: + return self.computeOgps_single_pair_cse( + dt, gt, py, px, pt_mask, dt["coarse_segm"], dt["embedding"], dt["bbox"] + ) + raise Exception(f"Unknown detection format: {dt}") + + def extract_iuv_from_quantized(self, dt, gt, py, px, pt_mask): + densepose_results_quantized = dt["densepose"] + ipoints, upoints, vpoints = self._extract_iuv( + densepose_results_quantized.labels_uv_uint8.numpy(), py, px, gt + ) + ipoints[pt_mask == -1] = 0 + return ipoints, upoints, vpoints + + def extract_iuv_from_raw(self, dt, gt, py, px, pt_mask): + labels_dt = resample_fine_and_coarse_segm_tensors_to_bbox( + dt["fine_segm"].unsqueeze(0), + dt["coarse_segm"].unsqueeze(0), + dt["bbox"], + ) + uv = resample_uv_tensors_to_bbox( + dt["u"].unsqueeze(0), dt["v"].unsqueeze(0), labels_dt.squeeze(0), dt["bbox"] + ) + labels_uv_uint8 = torch.cat((labels_dt.byte(), (uv * 255).clamp(0, 255).byte())) + ipoints, upoints, vpoints = self._extract_iuv(labels_uv_uint8.numpy(), py, px, gt) + ipoints[pt_mask == -1] = 0 + return ipoints, upoints, vpoints + + def computeOgps_single_pair_iuv(self, dt, gt, ipoints, upoints, vpoints): + cVertsGT, ClosestVertsGTTransformed = self.findAllClosestVertsGT(gt) + cVerts = self.findAllClosestVertsUV(upoints, vpoints, ipoints) + # Get pairwise geodesic distances between gt and estimated mesh points. + dist = self.getDistancesUV(ClosestVertsGTTransformed, cVerts) + # Compute the Ogps measure. + # Find the mean geodesic normalization distance for + # each GT point, based on which part it is on. + Current_Mean_Distances = self.Mean_Distances[ + self.CoarseParts[self.Part_ids[cVertsGT[cVertsGT > 0].astype(int) - 1]] + ] + return dist, Current_Mean_Distances + + def computeOgps_single_pair_cse( + self, dt, gt, py, px, pt_mask, coarse_segm, embedding, bbox_xywh_abs + ): + # 0-based mesh vertex indices + cVertsGT = torch.as_tensor(gt["dp_vertex"], dtype=torch.int64) + # label for each pixel of the bbox, [H, W] tensor of long + labels_dt = resample_coarse_segm_tensor_to_bbox( + coarse_segm.unsqueeze(0), bbox_xywh_abs + ).squeeze(0) + x, y, w, h = bbox_xywh_abs + # embedding for each pixel of the bbox, [D, H, W] tensor of float32 + embedding = F.interpolate( + embedding.unsqueeze(0), (int(h), int(w)), mode="bilinear", align_corners=False + ).squeeze(0) + # valid locations py, px + py_pt = torch.from_numpy(py[pt_mask > -1]) + px_pt = torch.from_numpy(px[pt_mask > -1]) + cVerts = torch.ones_like(cVertsGT) * -1 + cVerts[pt_mask > -1] = self.findClosestVertsCse( + embedding, py_pt, px_pt, labels_dt, gt["ref_model"] + ) + # Get pairwise geodesic distances between gt and estimated mesh points. + dist = self.getDistancesCse(cVertsGT, cVerts, gt["ref_model"]) + # normalize distances + if (gt["ref_model"] == "smpl_27554") and ("dp_I" in gt): + Current_Mean_Distances = self.Mean_Distances[ + self.CoarseParts[np.array(gt["dp_I"], dtype=int)] + ] + else: + Current_Mean_Distances = 0.255 + return dist, Current_Mean_Distances + + def computeOgps(self, imgId, catId): + p = self.params + # dimension here should be Nxm + g = self._gts[imgId, catId] + d = self._dts[imgId, catId] + inds = np.argsort([-d_["score"] for d_ in d], kind="mergesort") + d = [d[i] for i in inds] + if len(d) > p.maxDets[-1]: + d = d[0 : p.maxDets[-1]] + # if len(gts) == 0 and len(dts) == 0: + if len(g) == 0 or len(d) == 0: + return [] + ious = np.zeros((len(d), len(g))) + # compute opgs between each detection and ground truth object + # sigma = self.sigma #0.255 # dist = 0.3m corresponds to ogps = 0.5 + # 1 # dist = 0.3m corresponds to ogps = 0.96 + # 1.45 # dist = 1.7m (person height) corresponds to ogps = 0.5) + for j, gt in enumerate(g): + if not gt["ignore"]: + g_ = gt["bbox"] + for i, dt in enumerate(d): + # + dy = int(dt["bbox"][3]) + dx = int(dt["bbox"][2]) + dp_x = np.array(gt["dp_x"]) * g_[2] / 255.0 + dp_y = np.array(gt["dp_y"]) * g_[3] / 255.0 + py = (dp_y + g_[1] - dt["bbox"][1]).astype(np.int) + px = (dp_x + g_[0] - dt["bbox"][0]).astype(np.int) + # + pts = np.zeros(len(px)) + pts[px >= dx] = -1 + pts[py >= dy] = -1 + pts[px < 0] = -1 + pts[py < 0] = -1 + if len(pts) < 1: + ogps = 0.0 + elif np.max(pts) == -1: + ogps = 0.0 + else: + px[pts == -1] = 0 + py[pts == -1] = 0 + dists_between_matches, dist_norm_coeffs = self.computeOgps_single_pair( + dt, gt, py, px, pts + ) + # Compute gps + ogps_values = np.exp( + -(dists_between_matches**2) / (2 * (dist_norm_coeffs**2)) + ) + # + ogps = np.mean(ogps_values) if len(ogps_values) > 0 else 0.0 + ious[i, j] = ogps + + gbb = [gt["bbox"] for gt in g] + dbb = [dt["bbox"] for dt in d] + + # compute iou between each dt and gt region + iscrowd = [int(o.get("iscrowd", 0)) for o in g] + ious_bb = maskUtils.iou(dbb, gbb, iscrowd) + return ious, ious_bb + + def evaluateImg(self, imgId, catId, aRng, maxDet): + """ + perform evaluation for single category and image + :return: dict (single image results) + """ + + p = self.params + if p.useCats: + gt = self._gts[imgId, catId] + dt = self._dts[imgId, catId] + else: + gt = [_ for cId in p.catIds for _ in self._gts[imgId, cId]] + dt = [_ for cId in p.catIds for _ in self._dts[imgId, cId]] + if len(gt) == 0 and len(dt) == 0: + return None + + for g in gt: + # g['_ignore'] = g['ignore'] + if g["ignore"] or (g["area"] < aRng[0] or g["area"] > aRng[1]): + g["_ignore"] = True + else: + g["_ignore"] = False + + # sort dt highest score first, sort gt ignore last + gtind = np.argsort([g["_ignore"] for g in gt], kind="mergesort") + gt = [gt[i] for i in gtind] + dtind = np.argsort([-d["score"] for d in dt], kind="mergesort") + dt = [dt[i] for i in dtind[0:maxDet]] + iscrowd = [int(o.get("iscrowd", 0)) for o in gt] + # load computed ious + if p.iouType == "densepose": + # print('Checking the length', len(self.ious[imgId, catId])) + # if len(self.ious[imgId, catId]) == 0: + # print(self.ious[imgId, catId]) + ious = ( + self.ious[imgId, catId][0][:, gtind] + if len(self.ious[imgId, catId]) > 0 + else self.ious[imgId, catId] + ) + ioubs = ( + self.ious[imgId, catId][1][:, gtind] + if len(self.ious[imgId, catId]) > 0 + else self.ious[imgId, catId] + ) + if self._dpEvalMode in {DensePoseEvalMode.GPSM, DensePoseEvalMode.IOU}: + iousM = ( + self.real_ious[imgId, catId][:, gtind] + if len(self.real_ious[imgId, catId]) > 0 + else self.real_ious[imgId, catId] + ) + else: + ious = ( + self.ious[imgId, catId][:, gtind] + if len(self.ious[imgId, catId]) > 0 + else self.ious[imgId, catId] + ) + + T = len(p.iouThrs) + G = len(gt) + D = len(dt) + gtm = np.zeros((T, G)) + dtm = np.zeros((T, D)) + gtIg = np.array([g["_ignore"] for g in gt]) + dtIg = np.zeros((T, D)) + if np.all(gtIg) and p.iouType == "densepose": + dtIg = np.logical_or(dtIg, True) + + if len(ious) > 0: # and not p.iouType == 'densepose': + for tind, t in enumerate(p.iouThrs): + for dind, d in enumerate(dt): + # information about best match so far (m=-1 -> unmatched) + iou = min([t, 1 - 1e-10]) + m = -1 + for gind, _g in enumerate(gt): + # if this gt already matched, and not a crowd, continue + if gtm[tind, gind] > 0 and not iscrowd[gind]: + continue + # if dt matched to reg gt, and on ignore gt, stop + if m > -1 and gtIg[m] == 0 and gtIg[gind] == 1: + break + if p.iouType == "densepose": + if self._dpEvalMode == DensePoseEvalMode.GPSM: + new_iou = np.sqrt(iousM[dind, gind] * ious[dind, gind]) + elif self._dpEvalMode == DensePoseEvalMode.IOU: + new_iou = iousM[dind, gind] + elif self._dpEvalMode == DensePoseEvalMode.GPS: + new_iou = ious[dind, gind] + else: + new_iou = ious[dind, gind] + if new_iou < iou: + continue + if new_iou == 0.0: + continue + # if match successful and best so far, store appropriately + iou = new_iou + m = gind + # if match made store id of match for both dt and gt + if m == -1: + continue + dtIg[tind, dind] = gtIg[m] + dtm[tind, dind] = gt[m]["id"] + gtm[tind, m] = d["id"] + + if p.iouType == "densepose": + if not len(ioubs) == 0: + for dind, d in enumerate(dt): + # information about best match so far (m=-1 -> unmatched) + if dtm[tind, dind] == 0: + ioub = 0.8 + m = -1 + for gind, _g in enumerate(gt): + # if this gt already matched, and not a crowd, continue + if gtm[tind, gind] > 0 and not iscrowd[gind]: + continue + # continue to next gt unless better match made + if ioubs[dind, gind] < ioub: + continue + # if match successful and best so far, store appropriately + ioub = ioubs[dind, gind] + m = gind + # if match made store id of match for both dt and gt + if m > -1: + dtIg[:, dind] = gtIg[m] + if gtIg[m]: + dtm[tind, dind] = gt[m]["id"] + gtm[tind, m] = d["id"] + # set unmatched detections outside of area range to ignore + a = np.array([d["area"] < aRng[0] or d["area"] > aRng[1] for d in dt]).reshape((1, len(dt))) + dtIg = np.logical_or(dtIg, np.logical_and(dtm == 0, np.repeat(a, T, 0))) + # store results for given image and category + # print('Done with the function', len(self.ious[imgId, catId])) + return { + "image_id": imgId, + "category_id": catId, + "aRng": aRng, + "maxDet": maxDet, + "dtIds": [d["id"] for d in dt], + "gtIds": [g["id"] for g in gt], + "dtMatches": dtm, + "gtMatches": gtm, + "dtScores": [d["score"] for d in dt], + "gtIgnore": gtIg, + "dtIgnore": dtIg, + } + + def accumulate(self, p=None): + """ + Accumulate per image evaluation results and store the result in self.eval + :param p: input params for evaluation + :return: None + """ + logger.info("Accumulating evaluation results...") + tic = time.time() + if not self.evalImgs: + logger.info("Please run evaluate() first") + # allows input customized parameters + if p is None: + p = self.params + p.catIds = p.catIds if p.useCats == 1 else [-1] + T = len(p.iouThrs) + R = len(p.recThrs) + K = len(p.catIds) if p.useCats else 1 + A = len(p.areaRng) + M = len(p.maxDets) + precision = -(np.ones((T, R, K, A, M))) # -1 for the precision of absent categories + recall = -(np.ones((T, K, A, M))) + + # create dictionary for future indexing + logger.info("Categories: {}".format(p.catIds)) + _pe = self._paramsEval + catIds = _pe.catIds if _pe.useCats else [-1] + setK = set(catIds) + setA = set(map(tuple, _pe.areaRng)) + setM = set(_pe.maxDets) + setI = set(_pe.imgIds) + # get inds to evaluate + k_list = [n for n, k in enumerate(p.catIds) if k in setK] + m_list = [m for n, m in enumerate(p.maxDets) if m in setM] + a_list = [n for n, a in enumerate(map(lambda x: tuple(x), p.areaRng)) if a in setA] + i_list = [n for n, i in enumerate(p.imgIds) if i in setI] + I0 = len(_pe.imgIds) + A0 = len(_pe.areaRng) + # retrieve E at each category, area range, and max number of detections + for k, k0 in enumerate(k_list): + Nk = k0 * A0 * I0 + for a, a0 in enumerate(a_list): + Na = a0 * I0 + for m, maxDet in enumerate(m_list): + E = [self.evalImgs[Nk + Na + i] for i in i_list] + E = [e for e in E if e is not None] + if len(E) == 0: + continue + dtScores = np.concatenate([e["dtScores"][0:maxDet] for e in E]) + + # different sorting method generates slightly different results. + # mergesort is used to be consistent as Matlab implementation. + inds = np.argsort(-dtScores, kind="mergesort") + + dtm = np.concatenate([e["dtMatches"][:, 0:maxDet] for e in E], axis=1)[:, inds] + dtIg = np.concatenate([e["dtIgnore"][:, 0:maxDet] for e in E], axis=1)[:, inds] + gtIg = np.concatenate([e["gtIgnore"] for e in E]) + npig = np.count_nonzero(gtIg == 0) + if npig == 0: + continue + tps = np.logical_and(dtm, np.logical_not(dtIg)) + fps = np.logical_and(np.logical_not(dtm), np.logical_not(dtIg)) + tp_sum = np.cumsum(tps, axis=1).astype(dtype=np.float) + fp_sum = np.cumsum(fps, axis=1).astype(dtype=np.float) + for t, (tp, fp) in enumerate(zip(tp_sum, fp_sum)): + tp = np.array(tp) + fp = np.array(fp) + nd = len(tp) + rc = tp / npig + pr = tp / (fp + tp + np.spacing(1)) + q = np.zeros((R,)) + + if nd: + recall[t, k, a, m] = rc[-1] + else: + recall[t, k, a, m] = 0 + + # numpy is slow without cython optimization for accessing elements + # use python array gets significant speed improvement + pr = pr.tolist() + q = q.tolist() + + for i in range(nd - 1, 0, -1): + if pr[i] > pr[i - 1]: + pr[i - 1] = pr[i] + + inds = np.searchsorted(rc, p.recThrs, side="left") + try: + for ri, pi in enumerate(inds): + q[ri] = pr[pi] + except Exception: + pass + precision[t, :, k, a, m] = np.array(q) + logger.info( + "Final: max precision {}, min precision {}".format(np.max(precision), np.min(precision)) + ) + self.eval = { + "params": p, + "counts": [T, R, K, A, M], + "date": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), + "precision": precision, + "recall": recall, + } + toc = time.time() + logger.info("DONE (t={:0.2f}s).".format(toc - tic)) + + def summarize(self): + """ + Compute and display summary metrics for evaluation results. + Note this function can *only* be applied on the default parameter setting + """ + + def _summarize(ap=1, iouThr=None, areaRng="all", maxDets=100): + p = self.params + iStr = " {:<18} {} @[ {}={:<9} | area={:>6s} | maxDets={:>3d} ] = {:0.3f}" + titleStr = "Average Precision" if ap == 1 else "Average Recall" + typeStr = "(AP)" if ap == 1 else "(AR)" + measure = "IoU" + if self.params.iouType == "keypoints": + measure = "OKS" + elif self.params.iouType == "densepose": + measure = "OGPS" + iouStr = ( + "{:0.2f}:{:0.2f}".format(p.iouThrs[0], p.iouThrs[-1]) + if iouThr is None + else "{:0.2f}".format(iouThr) + ) + + aind = [i for i, aRng in enumerate(p.areaRngLbl) if aRng == areaRng] + mind = [i for i, mDet in enumerate(p.maxDets) if mDet == maxDets] + if ap == 1: + # dimension of precision: [TxRxKxAxM] + s = self.eval["precision"] + # IoU + if iouThr is not None: + t = np.where(np.abs(iouThr - p.iouThrs) < 0.001)[0] + s = s[t] + s = s[:, :, :, aind, mind] + else: + # dimension of recall: [TxKxAxM] + s = self.eval["recall"] + if iouThr is not None: + t = np.where(np.abs(iouThr - p.iouThrs) < 0.001)[0] + s = s[t] + s = s[:, :, aind, mind] + if len(s[s > -1]) == 0: + mean_s = -1 + else: + mean_s = np.mean(s[s > -1]) + logger.info(iStr.format(titleStr, typeStr, measure, iouStr, areaRng, maxDets, mean_s)) + return mean_s + + def _summarizeDets(): + stats = np.zeros((12,)) + stats[0] = _summarize(1) + stats[1] = _summarize(1, iouThr=0.5, maxDets=self.params.maxDets[2]) + stats[2] = _summarize(1, iouThr=0.75, maxDets=self.params.maxDets[2]) + stats[3] = _summarize(1, areaRng="small", maxDets=self.params.maxDets[2]) + stats[4] = _summarize(1, areaRng="medium", maxDets=self.params.maxDets[2]) + stats[5] = _summarize(1, areaRng="large", maxDets=self.params.maxDets[2]) + stats[6] = _summarize(0, maxDets=self.params.maxDets[0]) + stats[7] = _summarize(0, maxDets=self.params.maxDets[1]) + stats[8] = _summarize(0, maxDets=self.params.maxDets[2]) + stats[9] = _summarize(0, areaRng="small", maxDets=self.params.maxDets[2]) + stats[10] = _summarize(0, areaRng="medium", maxDets=self.params.maxDets[2]) + stats[11] = _summarize(0, areaRng="large", maxDets=self.params.maxDets[2]) + return stats + + def _summarizeKps(): + stats = np.zeros((10,)) + stats[0] = _summarize(1, maxDets=20) + stats[1] = _summarize(1, maxDets=20, iouThr=0.5) + stats[2] = _summarize(1, maxDets=20, iouThr=0.75) + stats[3] = _summarize(1, maxDets=20, areaRng="medium") + stats[4] = _summarize(1, maxDets=20, areaRng="large") + stats[5] = _summarize(0, maxDets=20) + stats[6] = _summarize(0, maxDets=20, iouThr=0.5) + stats[7] = _summarize(0, maxDets=20, iouThr=0.75) + stats[8] = _summarize(0, maxDets=20, areaRng="medium") + stats[9] = _summarize(0, maxDets=20, areaRng="large") + return stats + + def _summarizeUvs(): + stats = [_summarize(1, maxDets=self.params.maxDets[0])] + min_threshold = self.params.iouThrs.min() + if min_threshold <= 0.201: + stats += [_summarize(1, maxDets=self.params.maxDets[0], iouThr=0.2)] + if min_threshold <= 0.301: + stats += [_summarize(1, maxDets=self.params.maxDets[0], iouThr=0.3)] + if min_threshold <= 0.401: + stats += [_summarize(1, maxDets=self.params.maxDets[0], iouThr=0.4)] + stats += [ + _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.5), + _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.75), + _summarize(1, maxDets=self.params.maxDets[0], areaRng="medium"), + _summarize(1, maxDets=self.params.maxDets[0], areaRng="large"), + _summarize(0, maxDets=self.params.maxDets[0]), + _summarize(0, maxDets=self.params.maxDets[0], iouThr=0.5), + _summarize(0, maxDets=self.params.maxDets[0], iouThr=0.75), + _summarize(0, maxDets=self.params.maxDets[0], areaRng="medium"), + _summarize(0, maxDets=self.params.maxDets[0], areaRng="large"), + ] + return np.array(stats) + + def _summarizeUvsOld(): + stats = np.zeros((18,)) + stats[0] = _summarize(1, maxDets=self.params.maxDets[0]) + stats[1] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.5) + stats[2] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.55) + stats[3] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.60) + stats[4] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.65) + stats[5] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.70) + stats[6] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.75) + stats[7] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.80) + stats[8] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.85) + stats[9] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.90) + stats[10] = _summarize(1, maxDets=self.params.maxDets[0], iouThr=0.95) + stats[11] = _summarize(1, maxDets=self.params.maxDets[0], areaRng="medium") + stats[12] = _summarize(1, maxDets=self.params.maxDets[0], areaRng="large") + stats[13] = _summarize(0, maxDets=self.params.maxDets[0]) + stats[14] = _summarize(0, maxDets=self.params.maxDets[0], iouThr=0.5) + stats[15] = _summarize(0, maxDets=self.params.maxDets[0], iouThr=0.75) + stats[16] = _summarize(0, maxDets=self.params.maxDets[0], areaRng="medium") + stats[17] = _summarize(0, maxDets=self.params.maxDets[0], areaRng="large") + return stats + + if not self.eval: + raise Exception("Please run accumulate() first") + iouType = self.params.iouType + if iouType in ["segm", "bbox"]: + summarize = _summarizeDets + elif iouType in ["keypoints"]: + summarize = _summarizeKps + elif iouType in ["densepose"]: + summarize = _summarizeUvs + self.stats = summarize() + + def __str__(self): + self.summarize() + + # ================ functions for dense pose ============================== + def findAllClosestVertsUV(self, U_points, V_points, Index_points): + ClosestVerts = np.ones(Index_points.shape) * -1 + for i in np.arange(24): + # + if (i + 1) in Index_points: + UVs = np.array( + [U_points[Index_points == (i + 1)], V_points[Index_points == (i + 1)]] + ) + Current_Part_UVs = self.Part_UVs[i] + Current_Part_ClosestVertInds = self.Part_ClosestVertInds[i] + D = ssd.cdist(Current_Part_UVs.transpose(), UVs.transpose()).squeeze() + ClosestVerts[Index_points == (i + 1)] = Current_Part_ClosestVertInds[ + np.argmin(D, axis=0) + ] + ClosestVertsTransformed = self.PDIST_transform[ClosestVerts.astype(int) - 1] + ClosestVertsTransformed[ClosestVerts < 0] = 0 + return ClosestVertsTransformed + + def findClosestVertsCse(self, embedding, py, px, mask, mesh_name): + mesh_vertex_embeddings = self.embedder(mesh_name) + pixel_embeddings = embedding[:, py, px].t().to(device="cuda") + mask_vals = mask[py, px] + edm = squared_euclidean_distance_matrix(pixel_embeddings, mesh_vertex_embeddings) + vertex_indices = edm.argmin(dim=1).cpu() + vertex_indices[mask_vals <= 0] = -1 + return vertex_indices + + def findAllClosestVertsGT(self, gt): + # + I_gt = np.array(gt["dp_I"]) + U_gt = np.array(gt["dp_U"]) + V_gt = np.array(gt["dp_V"]) + # + # print(I_gt) + # + ClosestVertsGT = np.ones(I_gt.shape) * -1 + for i in np.arange(24): + if (i + 1) in I_gt: + UVs = np.array([U_gt[I_gt == (i + 1)], V_gt[I_gt == (i + 1)]]) + Current_Part_UVs = self.Part_UVs[i] + Current_Part_ClosestVertInds = self.Part_ClosestVertInds[i] + D = ssd.cdist(Current_Part_UVs.transpose(), UVs.transpose()).squeeze() + ClosestVertsGT[I_gt == (i + 1)] = Current_Part_ClosestVertInds[np.argmin(D, axis=0)] + # + ClosestVertsGTTransformed = self.PDIST_transform[ClosestVertsGT.astype(int) - 1] + ClosestVertsGTTransformed[ClosestVertsGT < 0] = 0 + return ClosestVertsGT, ClosestVertsGTTransformed + + def getDistancesCse(self, cVertsGT, cVerts, mesh_name): + geodists_vertices = torch.ones_like(cVertsGT) * float("inf") + selected = (cVertsGT >= 0) * (cVerts >= 0) + mesh = create_mesh(mesh_name, "cpu") + geodists_vertices[selected] = mesh.geodists[cVertsGT[selected], cVerts[selected]] + return geodists_vertices.numpy() + + def getDistancesUV(self, cVertsGT, cVerts): + # + n = 27554 + dists = [] + for d in range(len(cVertsGT)): + if cVertsGT[d] > 0: + if cVerts[d] > 0: + i = cVertsGT[d] - 1 + j = cVerts[d] - 1 + if j == i: + dists.append(0) + elif j > i: + ccc = i + i = j + j = ccc + i = n - i - 1 + j = n - j - 1 + k = (n * (n - 1) / 2) - (n - i) * ((n - i) - 1) / 2 + j - i - 1 + k = (n * n - n) / 2 - k - 1 + dists.append(self.Pdist_matrix[int(k)][0]) + else: + i = n - i - 1 + j = n - j - 1 + k = (n * (n - 1) / 2) - (n - i) * ((n - i) - 1) / 2 + j - i - 1 + k = (n * n - n) / 2 - k - 1 + dists.append(self.Pdist_matrix[int(k)][0]) + else: + dists.append(np.inf) + return np.atleast_1d(np.array(dists).squeeze()) + + +class Params: + """ + Params for coco evaluation api + """ + + def setDetParams(self): + self.imgIds = [] + self.catIds = [] + # np.arange causes trouble. the data point on arange is slightly larger than the true value + self.iouThrs = np.linspace(0.5, 0.95, int(np.round((0.95 - 0.5) / 0.05)) + 1, endpoint=True) + self.recThrs = np.linspace(0.0, 1.00, int(np.round((1.00 - 0.0) / 0.01)) + 1, endpoint=True) + self.maxDets = [1, 10, 100] + self.areaRng = [ + [0**2, 1e5**2], + [0**2, 32**2], + [32**2, 96**2], + [96**2, 1e5**2], + ] + self.areaRngLbl = ["all", "small", "medium", "large"] + self.useCats = 1 + + def setKpParams(self): + self.imgIds = [] + self.catIds = [] + # np.arange causes trouble. the data point on arange is slightly larger than the true value + self.iouThrs = np.linspace(0.5, 0.95, np.round((0.95 - 0.5) / 0.05) + 1, endpoint=True) + self.recThrs = np.linspace(0.0, 1.00, np.round((1.00 - 0.0) / 0.01) + 1, endpoint=True) + self.maxDets = [20] + self.areaRng = [[0**2, 1e5**2], [32**2, 96**2], [96**2, 1e5**2]] + self.areaRngLbl = ["all", "medium", "large"] + self.useCats = 1 + + def setUvParams(self): + self.imgIds = [] + self.catIds = [] + self.iouThrs = np.linspace(0.5, 0.95, int(np.round((0.95 - 0.5) / 0.05)) + 1, endpoint=True) + self.recThrs = np.linspace(0.0, 1.00, int(np.round((1.00 - 0.0) / 0.01)) + 1, endpoint=True) + self.maxDets = [20] + self.areaRng = [[0**2, 1e5**2], [32**2, 96**2], [96**2, 1e5**2]] + self.areaRngLbl = ["all", "medium", "large"] + self.useCats = 1 + + def __init__(self, iouType="segm"): + if iouType == "segm" or iouType == "bbox": + self.setDetParams() + elif iouType == "keypoints": + self.setKpParams() + elif iouType == "densepose": + self.setUvParams() + else: + raise Exception("iouType not supported") + self.iouType = iouType + # useSegm is deprecated + self.useSegm = None diff --git a/detectron2/projects/DensePose/densepose/evaluation/evaluator.py b/detectron2/projects/DensePose/densepose/evaluation/evaluator.py new file mode 100755 index 0000000..d5d1d78 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/evaluation/evaluator.py @@ -0,0 +1,421 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import contextlib +import copy +import io +import itertools +import logging +import numpy as np +import os +from collections import OrderedDict +from typing import Dict, Iterable, List, Optional +import pycocotools.mask as mask_utils +import torch +from pycocotools.coco import COCO +from tabulate import tabulate + +from detectron2.config import CfgNode +from detectron2.data import MetadataCatalog +from detectron2.evaluation import DatasetEvaluator +from detectron2.structures import BoxMode +from detectron2.utils.comm import gather, get_rank, is_main_process, synchronize +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import create_small_table + +from densepose.converters import ToChartResultConverter, ToMaskConverter +from densepose.data.datasets.coco import maybe_filter_and_map_categories_cocoapi +from densepose.structures import ( + DensePoseChartPredictorOutput, + DensePoseEmbeddingPredictorOutput, + quantize_densepose_chart_result, +) + +from .densepose_coco_evaluation import DensePoseCocoEval, DensePoseEvalMode +from .mesh_alignment_evaluator import MeshAlignmentEvaluator +from .tensor_storage import ( + SingleProcessFileTensorStorage, + SingleProcessRamTensorStorage, + SingleProcessTensorStorage, + SizeData, + storage_gather, +) + + +class DensePoseCOCOEvaluator(DatasetEvaluator): + def __init__( + self, + dataset_name, + distributed, + output_dir=None, + evaluator_type: str = "iuv", + min_iou_threshold: float = 0.5, + storage: Optional[SingleProcessTensorStorage] = None, + embedder=None, + should_evaluate_mesh_alignment: bool = False, + mesh_alignment_mesh_names: Optional[List[str]] = None, + ): + self._embedder = embedder + self._distributed = distributed + self._output_dir = output_dir + self._evaluator_type = evaluator_type + self._storage = storage + self._should_evaluate_mesh_alignment = should_evaluate_mesh_alignment + + assert not ( + should_evaluate_mesh_alignment and embedder is None + ), "Mesh alignment evaluation is activated, but no vertex embedder provided!" + if should_evaluate_mesh_alignment: + self._mesh_alignment_evaluator = MeshAlignmentEvaluator( + embedder, + mesh_alignment_mesh_names, + ) + + self._cpu_device = torch.device("cpu") + self._logger = logging.getLogger(__name__) + + self._metadata = MetadataCatalog.get(dataset_name) + self._min_threshold = min_iou_threshold + json_file = PathManager.get_local_path(self._metadata.json_file) + with contextlib.redirect_stdout(io.StringIO()): + self._coco_api = COCO(json_file) + maybe_filter_and_map_categories_cocoapi(dataset_name, self._coco_api) + + def reset(self): + self._predictions = [] + + def process(self, inputs, outputs): + """ + Args: + inputs: the inputs to a COCO model (e.g., GeneralizedRCNN). + It is a list of dict. Each dict corresponds to an image and + contains keys like "height", "width", "file_name", "image_id". + outputs: the outputs of a COCO model. It is a list of dicts with key + "instances" that contains :class:`Instances`. + The :class:`Instances` object needs to have `densepose` field. + """ + for input, output in zip(inputs, outputs): + instances = output["instances"].to(self._cpu_device) + if not instances.has("pred_densepose"): + continue + prediction_list = prediction_to_dict( + instances, + input["image_id"], + self._embedder, + self._metadata.class_to_mesh_name, + self._storage is not None, + ) + if self._storage is not None: + for prediction_dict in prediction_list: + dict_to_store = {} + for field_name in self._storage.data_schema: + dict_to_store[field_name] = prediction_dict[field_name] + record_id = self._storage.put(dict_to_store) + prediction_dict["record_id"] = record_id + prediction_dict["rank"] = get_rank() + for field_name in self._storage.data_schema: + del prediction_dict[field_name] + self._predictions.extend(prediction_list) + + def evaluate(self, img_ids=None): + if self._distributed: + synchronize() + predictions = gather(self._predictions) + predictions = list(itertools.chain(*predictions)) + else: + predictions = self._predictions + + multi_storage = storage_gather(self._storage) if self._storage is not None else None + + if not is_main_process(): + return + return copy.deepcopy(self._eval_predictions(predictions, multi_storage, img_ids)) + + def _eval_predictions(self, predictions, multi_storage=None, img_ids=None): + """ + Evaluate predictions on densepose. + Return results with the metrics of the tasks. + """ + self._logger.info("Preparing results for COCO format ...") + + if self._output_dir: + PathManager.mkdirs(self._output_dir) + file_path = os.path.join(self._output_dir, "coco_densepose_predictions.pth") + with PathManager.open(file_path, "wb") as f: + torch.save(predictions, f) + + self._logger.info("Evaluating predictions ...") + res = OrderedDict() + results_gps, results_gpsm, results_segm = _evaluate_predictions_on_coco( + self._coco_api, + predictions, + multi_storage, + self._embedder, + class_names=self._metadata.get("thing_classes"), + min_threshold=self._min_threshold, + img_ids=img_ids, + ) + res["densepose_gps"] = results_gps + res["densepose_gpsm"] = results_gpsm + res["densepose_segm"] = results_segm + if self._should_evaluate_mesh_alignment: + res["densepose_mesh_alignment"] = self._evaluate_mesh_alignment() + return res + + def _evaluate_mesh_alignment(self): + self._logger.info("Mesh alignment evaluation ...") + mean_ge, mean_gps, per_mesh_metrics = self._mesh_alignment_evaluator.evaluate() + results = { + "GE": mean_ge * 100, + "GPS": mean_gps * 100, + } + mesh_names = set() + for metric_name in per_mesh_metrics: + for mesh_name, value in per_mesh_metrics[metric_name].items(): + results[f"{metric_name}-{mesh_name}"] = value * 100 + mesh_names.add(mesh_name) + self._print_mesh_alignment_results(results, mesh_names) + return results + + def _print_mesh_alignment_results(self, results: Dict[str, float], mesh_names: Iterable[str]): + self._logger.info("Evaluation results for densepose, mesh alignment:") + self._logger.info(f'| {"Mesh":13s} | {"GErr":7s} | {"GPS":7s} |') + self._logger.info("| :-----------: | :-----: | :-----: |") + for mesh_name in mesh_names: + ge_key = f"GE-{mesh_name}" + ge_str = f"{results[ge_key]:.4f}" if ge_key in results else " " + gps_key = f"GPS-{mesh_name}" + gps_str = f"{results[gps_key]:.4f}" if gps_key in results else " " + self._logger.info(f"| {mesh_name:13s} | {ge_str:7s} | {gps_str:7s} |") + self._logger.info("| :-------------------------------: |") + ge_key = "GE" + ge_str = f"{results[ge_key]:.4f}" if ge_key in results else " " + gps_key = "GPS" + gps_str = f"{results[gps_key]:.4f}" if gps_key in results else " " + self._logger.info(f'| {"MEAN":13s} | {ge_str:7s} | {gps_str:7s} |') + + +def prediction_to_dict(instances, img_id, embedder, class_to_mesh_name, use_storage): + """ + Args: + instances (Instances): the output of the model + img_id (str): the image id in COCO + + Returns: + list[dict]: the results in densepose evaluation format + """ + scores = instances.scores.tolist() + classes = instances.pred_classes.tolist() + raw_boxes_xywh = BoxMode.convert( + instances.pred_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + + if isinstance(instances.pred_densepose, DensePoseEmbeddingPredictorOutput): + results_densepose = densepose_cse_predictions_to_dict( + instances, embedder, class_to_mesh_name, use_storage + ) + elif isinstance(instances.pred_densepose, DensePoseChartPredictorOutput): + if not use_storage: + results_densepose = densepose_chart_predictions_to_dict(instances) + else: + results_densepose = densepose_chart_predictions_to_storage_dict(instances) + + results = [] + for k in range(len(instances)): + result = { + "image_id": img_id, + "category_id": classes[k], + "bbox": raw_boxes_xywh[k].tolist(), + "score": scores[k], + } + results.append({**result, **results_densepose[k]}) + return results + + +def densepose_chart_predictions_to_dict(instances): + segmentations = ToMaskConverter.convert( + instances.pred_densepose, instances.pred_boxes, instances.image_size + ) + + results = [] + for k in range(len(instances)): + densepose_results_quantized = quantize_densepose_chart_result( + ToChartResultConverter.convert(instances.pred_densepose[k], instances.pred_boxes[k]) + ) + densepose_results_quantized.labels_uv_uint8 = ( + densepose_results_quantized.labels_uv_uint8.cpu() + ) + segmentation = segmentations.tensor[k] + segmentation_encoded = mask_utils.encode( + np.require(segmentation.numpy(), dtype=np.uint8, requirements=["F"]) + ) + segmentation_encoded["counts"] = segmentation_encoded["counts"].decode("utf-8") + result = { + "densepose": densepose_results_quantized, + "segmentation": segmentation_encoded, + } + results.append(result) + return results + + +def densepose_chart_predictions_to_storage_dict(instances): + results = [] + for k in range(len(instances)): + densepose_predictor_output = instances.pred_densepose[k] + result = { + "coarse_segm": densepose_predictor_output.coarse_segm.squeeze(0).cpu(), + "fine_segm": densepose_predictor_output.fine_segm.squeeze(0).cpu(), + "u": densepose_predictor_output.u.squeeze(0).cpu(), + "v": densepose_predictor_output.v.squeeze(0).cpu(), + } + results.append(result) + return results + + +def densepose_cse_predictions_to_dict(instances, embedder, class_to_mesh_name, use_storage): + results = [] + for k in range(len(instances)): + cse = instances.pred_densepose[k] + results.append( + { + "coarse_segm": cse.coarse_segm[0].cpu(), + "embedding": cse.embedding[0].cpu(), + } + ) + return results + + +def _evaluate_predictions_on_coco( + coco_gt, + coco_results, + multi_storage=None, + embedder=None, + class_names=None, + min_threshold: float = 0.5, + img_ids=None, +): + logger = logging.getLogger(__name__) + + densepose_metrics = _get_densepose_metrics(min_threshold) + if len(coco_results) == 0: # cocoapi does not handle empty results very well + logger.warn("No predictions from the model! Set scores to -1") + results_gps = {metric: -1 for metric in densepose_metrics} + results_gpsm = {metric: -1 for metric in densepose_metrics} + results_segm = {metric: -1 for metric in densepose_metrics} + return results_gps, results_gpsm, results_segm + + coco_dt = coco_gt.loadRes(coco_results) + + results = [] + for eval_mode_name in ["GPS", "GPSM", "IOU"]: + eval_mode = getattr(DensePoseEvalMode, eval_mode_name) + coco_eval = DensePoseCocoEval( + coco_gt, coco_dt, "densepose", multi_storage, embedder, dpEvalMode=eval_mode + ) + result = _derive_results_from_coco_eval( + coco_eval, eval_mode_name, densepose_metrics, class_names, min_threshold, img_ids + ) + results.append(result) + return results + + +def _get_densepose_metrics(min_threshold: float = 0.5): + metrics = ["AP"] + if min_threshold <= 0.201: + metrics += ["AP20"] + if min_threshold <= 0.301: + metrics += ["AP30"] + if min_threshold <= 0.401: + metrics += ["AP40"] + metrics.extend(["AP50", "AP75", "APm", "APl", "AR", "AR50", "AR75", "ARm", "ARl"]) + return metrics + + +def _derive_results_from_coco_eval( + coco_eval, eval_mode_name, metrics, class_names, min_threshold: float, img_ids +): + if img_ids is not None: + coco_eval.params.imgIds = img_ids + coco_eval.params.iouThrs = np.linspace( + min_threshold, 0.95, int(np.round((0.95 - min_threshold) / 0.05)) + 1, endpoint=True + ) + coco_eval.evaluate() + coco_eval.accumulate() + coco_eval.summarize() + results = {metric: float(coco_eval.stats[idx] * 100) for idx, metric in enumerate(metrics)} + logger = logging.getLogger(__name__) + logger.info( + f"Evaluation results for densepose, {eval_mode_name} metric: \n" + + create_small_table(results) + ) + if class_names is None or len(class_names) <= 1: + return results + + # Compute per-category AP, the same way as it is done in D2 + # (see detectron2/evaluation/coco_evaluation.py): + precisions = coco_eval.eval["precision"] + # precision has dims (iou, recall, cls, area range, max dets) + assert len(class_names) == precisions.shape[2] + + results_per_category = [] + for idx, name in enumerate(class_names): + # area range index 0: all area ranges + # max dets index -1: typically 100 per image + precision = precisions[:, :, idx, 0, -1] + precision = precision[precision > -1] + ap = np.mean(precision) if precision.size else float("nan") + results_per_category.append((f"{name}", float(ap * 100))) + + # tabulate it + n_cols = min(6, len(results_per_category) * 2) + results_flatten = list(itertools.chain(*results_per_category)) + results_2d = itertools.zip_longest(*[results_flatten[i::n_cols] for i in range(n_cols)]) + table = tabulate( + results_2d, + tablefmt="pipe", + floatfmt=".3f", + headers=["category", "AP"] * (n_cols // 2), + numalign="left", + ) + logger.info(f"Per-category {eval_mode_name} AP: \n" + table) + + results.update({"AP-" + name: ap for name, ap in results_per_category}) + return results + + +def build_densepose_evaluator_storage(cfg: CfgNode, output_folder: str): + storage_spec = cfg.DENSEPOSE_EVALUATION.STORAGE + if storage_spec == "none": + return None + evaluator_type = cfg.DENSEPOSE_EVALUATION.TYPE + # common output tensor sizes + hout = cfg.MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE + wout = cfg.MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE + n_csc = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS + # specific output tensors + if evaluator_type == "iuv": + n_fsc = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_PATCHES + 1 + schema = { + "coarse_segm": SizeData(dtype="float32", shape=(n_csc, hout, wout)), + "fine_segm": SizeData(dtype="float32", shape=(n_fsc, hout, wout)), + "u": SizeData(dtype="float32", shape=(n_fsc, hout, wout)), + "v": SizeData(dtype="float32", shape=(n_fsc, hout, wout)), + } + elif evaluator_type == "cse": + embed_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE + schema = { + "coarse_segm": SizeData(dtype="float32", shape=(n_csc, hout, wout)), + "embedding": SizeData(dtype="float32", shape=(embed_size, hout, wout)), + } + else: + raise ValueError(f"Unknown evaluator type: {evaluator_type}") + # storage types + if storage_spec == "ram": + storage = SingleProcessRamTensorStorage(schema, io.BytesIO()) + elif storage_spec == "file": + fpath = os.path.join(output_folder, f"DensePoseEvaluatorStorage.{get_rank()}.bin") + PathManager.mkdirs(output_folder) + storage = SingleProcessFileTensorStorage(schema, fpath, "wb") + else: + raise ValueError(f"Unknown storage specification: {storage_spec}") + return storage diff --git a/detectron2/projects/DensePose/densepose/evaluation/mesh_alignment_evaluator.py b/detectron2/projects/DensePose/densepose/evaluation/mesh_alignment_evaluator.py new file mode 100755 index 0000000..9d67c1a --- /dev/null +++ b/detectron2/projects/DensePose/densepose/evaluation/mesh_alignment_evaluator.py @@ -0,0 +1,66 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import json +import logging +from typing import List, Optional +import torch +from torch import nn + +from detectron2.utils.file_io import PathManager + +from densepose.structures.mesh import create_mesh + + +class MeshAlignmentEvaluator: + """ + Class for evaluation of 3D mesh alignment based on the learned vertex embeddings + """ + + def __init__(self, embedder: nn.Module, mesh_names: Optional[List[str]]): + self.embedder = embedder + # use the provided mesh names if not None and not an empty list + self.mesh_names = mesh_names if mesh_names else embedder.mesh_names + self.logger = logging.getLogger(__name__) + with PathManager.open( + "https://dl.fbaipublicfiles.com/densepose/data/cse/mesh_keyvertices_v0.json", "r" + ) as f: + self.mesh_keyvertices = json.load(f) + + def evaluate(self): + ge_per_mesh = {} + gps_per_mesh = {} + for mesh_name_1 in self.mesh_names: + avg_errors = [] + avg_gps = [] + embeddings_1 = self.embedder(mesh_name_1) + keyvertices_1 = self.mesh_keyvertices[mesh_name_1] + keyvertex_names_1 = list(keyvertices_1.keys()) + keyvertex_indices_1 = [keyvertices_1[name] for name in keyvertex_names_1] + for mesh_name_2 in self.mesh_names: + if mesh_name_1 == mesh_name_2: + continue + embeddings_2 = self.embedder(mesh_name_2) + keyvertices_2 = self.mesh_keyvertices[mesh_name_2] + sim_matrix_12 = embeddings_1[keyvertex_indices_1].mm(embeddings_2.T) + vertices_2_matching_keyvertices_1 = sim_matrix_12.argmax(axis=1) + mesh_2 = create_mesh(mesh_name_2, embeddings_2.device) + geodists = mesh_2.geodists[ + vertices_2_matching_keyvertices_1, + [keyvertices_2[name] for name in keyvertex_names_1], + ] + Current_Mean_Distances = 0.255 + gps = (-(geodists**2) / (2 * (Current_Mean_Distances**2))).exp() + avg_errors.append(geodists.mean().item()) + avg_gps.append(gps.mean().item()) + + ge_mean = torch.as_tensor(avg_errors).mean().item() + gps_mean = torch.as_tensor(avg_gps).mean().item() + ge_per_mesh[mesh_name_1] = ge_mean + gps_per_mesh[mesh_name_1] = gps_mean + ge_mean_global = torch.as_tensor(list(ge_per_mesh.values())).mean().item() + gps_mean_global = torch.as_tensor(list(gps_per_mesh.values())).mean().item() + per_mesh_metrics = { + "GE": ge_per_mesh, + "GPS": gps_per_mesh, + } + return ge_mean_global, gps_mean_global, per_mesh_metrics diff --git a/detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py b/detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py new file mode 100755 index 0000000..72e3cb6 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/evaluation/tensor_storage.py @@ -0,0 +1,238 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import io +import numpy as np +import os +from dataclasses import dataclass +from functools import reduce +from operator import mul +from typing import BinaryIO, Dict, Optional, Tuple +import torch + +from detectron2.utils.comm import gather, get_rank +from detectron2.utils.file_io import PathManager + + +@dataclass +class SizeData: + dtype: str + shape: Tuple[int] + + +def _calculate_record_field_size_b(data_schema: Dict[str, SizeData], field_name: str) -> int: + schema = data_schema[field_name] + element_size_b = np.dtype(schema.dtype).itemsize + record_field_size_b = reduce(mul, schema.shape) * element_size_b + return record_field_size_b + + +def _calculate_record_size_b(data_schema: Dict[str, SizeData]) -> int: + record_size_b = 0 + for field_name in data_schema: + record_field_size_b = _calculate_record_field_size_b(data_schema, field_name) + record_size_b += record_field_size_b + return record_size_b + + +def _calculate_record_field_sizes_b(data_schema: Dict[str, SizeData]) -> Dict[str, int]: + field_sizes_b = {} + for field_name in data_schema: + field_sizes_b[field_name] = _calculate_record_field_size_b(data_schema, field_name) + return field_sizes_b + + +class SingleProcessTensorStorage: + """ + Compact tensor storage to keep tensor data of predefined size and type. + """ + + def __init__(self, data_schema: Dict[str, SizeData], storage_impl: BinaryIO): + """ + Construct tensor storage based on information on data shape and size. + Internally uses numpy to interpret the type specification. + The storage must support operations `seek(offset, whence=os.SEEK_SET)` and + `read(size)` to be able to perform the `get` operation. + The storage must support operation `write(bytes)` to be able to perform + the `put` operation. + + Args: + data_schema (dict: str -> SizeData): dictionary which maps tensor name + to its size data (shape and data type), e.g. + ``` + { + "coarse_segm": SizeData(dtype="float32", shape=(112, 112)), + "embedding": SizeData(dtype="float32", shape=(16, 112, 112)), + } + ``` + storage_impl (BinaryIO): io instance that handles file-like seek, read + and write operations, e.g. a file handle or a memory buffer like io.BytesIO + """ + self.data_schema = data_schema + self.record_size_b = _calculate_record_size_b(data_schema) + self.record_field_sizes_b = _calculate_record_field_sizes_b(data_schema) + self.storage_impl = storage_impl + self.next_record_id = 0 + + def get(self, record_id: int) -> Dict[str, torch.Tensor]: + """ + Load tensors from the storage by record ID + + Args: + record_id (int): Record ID, for which to load the data + + Return: + dict: str -> tensor: tensor name mapped to tensor data, recorded under the provided ID + """ + self.storage_impl.seek(record_id * self.record_size_b, os.SEEK_SET) + data_bytes = self.storage_impl.read(self.record_size_b) + assert len(data_bytes) == self.record_size_b, ( + f"Expected data size {self.record_size_b} B could not be read: " + f"got {len(data_bytes)} B" + ) + record = {} + cur_idx = 0 + # it's important to read and write in the same order + for field_name in sorted(self.data_schema): + schema = self.data_schema[field_name] + field_size_b = self.record_field_sizes_b[field_name] + chunk = data_bytes[cur_idx : cur_idx + field_size_b] + data_np = np.frombuffer( + chunk, dtype=schema.dtype, count=reduce(mul, schema.shape) + ).reshape(schema.shape) + record[field_name] = torch.from_numpy(data_np) + cur_idx += field_size_b + return record + + def put(self, data: Dict[str, torch.Tensor]) -> int: + """ + Store tensors in the storage + + Args: + data (dict: str -> tensor): data to store, a dictionary which maps + tensor names into tensors; tensor shapes must match those specified + in data schema. + Return: + int: record ID, under which the data is stored + """ + # it's important to read and write in the same order + for field_name in sorted(self.data_schema): + assert ( + field_name in data + ), f"Field '{field_name}' not present in data: data keys are {data.keys()}" + value = data[field_name] + assert value.shape == self.data_schema[field_name].shape, ( + f"Mismatched tensor shapes for field '{field_name}': " + f"expected {self.data_schema[field_name].shape}, got {value.shape}" + ) + data_bytes = value.cpu().numpy().tobytes() + assert len(data_bytes) == self.record_field_sizes_b[field_name], ( + f"Expected field {field_name} to be of size " + f"{self.record_field_sizes_b[field_name]} B, got {len(data_bytes)} B" + ) + self.storage_impl.write(data_bytes) + record_id = self.next_record_id + self.next_record_id += 1 + return record_id + + +class SingleProcessFileTensorStorage(SingleProcessTensorStorage): + """ + Implementation of a single process tensor storage which stores data in a file + """ + + def __init__(self, data_schema: Dict[str, SizeData], fpath: str, mode: str): + self.fpath = fpath + assert "b" in mode, f"Tensor storage should be opened in binary mode, got '{mode}'" + if "w" in mode: + file_h = PathManager.open(fpath, mode) + elif "r" in mode: + local_fpath = PathManager.get_local_path(fpath) + file_h = open(local_fpath, mode) + else: + raise ValueError(f"Unsupported file mode {mode}, supported modes: rb, wb") + super().__init__(data_schema, file_h) # pyre-ignore[6] + + +class SingleProcessRamTensorStorage(SingleProcessTensorStorage): + """ + Implementation of a single process tensor storage which stores data in RAM + """ + + def __init__(self, data_schema: Dict[str, SizeData], buf: io.BytesIO): + super().__init__(data_schema, buf) + + +class MultiProcessTensorStorage: + """ + Representation of a set of tensor storages created by individual processes, + allows to access those storages from a single owner process. The storages + should either be shared or broadcasted to the owner process. + The processes are identified by their rank, data is uniquely defined by + the rank of the process and the record ID. + """ + + def __init__(self, rank_to_storage: Dict[int, SingleProcessTensorStorage]): + self.rank_to_storage = rank_to_storage + + def get(self, rank: int, record_id: int) -> Dict[str, torch.Tensor]: + storage = self.rank_to_storage[rank] + return storage.get(record_id) + + def put(self, rank: int, data: Dict[str, torch.Tensor]) -> int: + storage = self.rank_to_storage[rank] + return storage.put(data) + + +class MultiProcessFileTensorStorage(MultiProcessTensorStorage): + def __init__(self, data_schema: Dict[str, SizeData], rank_to_fpath: Dict[int, str], mode: str): + rank_to_storage = { + rank: SingleProcessFileTensorStorage(data_schema, fpath, mode) + for rank, fpath in rank_to_fpath.items() + } + super().__init__(rank_to_storage) # pyre-ignore[6] + + +class MultiProcessRamTensorStorage(MultiProcessTensorStorage): + def __init__(self, data_schema: Dict[str, SizeData], rank_to_buffer: Dict[int, io.BytesIO]): + rank_to_storage = { + rank: SingleProcessRamTensorStorage(data_schema, buf) + for rank, buf in rank_to_buffer.items() + } + super().__init__(rank_to_storage) # pyre-ignore[6] + + +def _ram_storage_gather( + storage: SingleProcessRamTensorStorage, dst_rank: int = 0 +) -> Optional[MultiProcessRamTensorStorage]: + storage.storage_impl.seek(0, os.SEEK_SET) + # TODO: overhead, pickling a bytes object, can just pass bytes in a tensor directly + # see detectron2/utils.comm.py + data_list = gather(storage.storage_impl.read(), dst=dst_rank) + if get_rank() != dst_rank: + return None + rank_to_buffer = {i: io.BytesIO(data_list[i]) for i in range(len(data_list))} + multiprocess_storage = MultiProcessRamTensorStorage(storage.data_schema, rank_to_buffer) + return multiprocess_storage + + +def _file_storage_gather( + storage: SingleProcessFileTensorStorage, + dst_rank: int = 0, + mode: str = "rb", +) -> Optional[MultiProcessFileTensorStorage]: + storage.storage_impl.close() + fpath_list = gather(storage.fpath, dst=dst_rank) + if get_rank() != dst_rank: + return None + rank_to_fpath = {i: fpath_list[i] for i in range(len(fpath_list))} + return MultiProcessFileTensorStorage(storage.data_schema, rank_to_fpath, mode) + + +def storage_gather( + storage: SingleProcessTensorStorage, dst_rank: int = 0 +) -> Optional[MultiProcessTensorStorage]: + if isinstance(storage, SingleProcessRamTensorStorage): + return _ram_storage_gather(storage, dst_rank) + elif isinstance(storage, SingleProcessFileTensorStorage): + return _file_storage_gather(storage, dst_rank) + raise Exception(f"Unsupported storage for gather operation: {storage}") diff --git a/detectron2/projects/DensePose/densepose/modeling/__init__.py b/detectron2/projects/DensePose/densepose/modeling/__init__.py new file mode 100755 index 0000000..4c49f6d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .confidence import DensePoseConfidenceModelConfig, DensePoseUVConfidenceType +from .filter import DensePoseDataFilter +from .inference import densepose_inference +from .utils import initialize_module_params +from .build import ( + build_densepose_data_filter, + build_densepose_embedder, + build_densepose_head, + build_densepose_losses, + build_densepose_predictor, +) diff --git a/detectron2/projects/DensePose/densepose/modeling/build.py b/detectron2/projects/DensePose/densepose/modeling/build.py new file mode 100755 index 0000000..bb7f54b --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/build.py @@ -0,0 +1,87 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Optional +from torch import nn + +from detectron2.config import CfgNode + +from .cse.embedder import Embedder +from .filter import DensePoseDataFilter + + +def build_densepose_predictor(cfg: CfgNode, input_channels: int): + """ + Create an instance of DensePose predictor based on configuration options. + + Args: + cfg (CfgNode): configuration options + input_channels (int): input tensor size along the channel dimension + Return: + An instance of DensePose predictor + """ + from .predictors import DENSEPOSE_PREDICTOR_REGISTRY + + predictor_name = cfg.MODEL.ROI_DENSEPOSE_HEAD.PREDICTOR_NAME + return DENSEPOSE_PREDICTOR_REGISTRY.get(predictor_name)(cfg, input_channels) + + +def build_densepose_data_filter(cfg: CfgNode): + """ + Build DensePose data filter which selects data for training + + Args: + cfg (CfgNode): configuration options + + Return: + Callable: list(Tensor), list(Instances) -> list(Tensor), list(Instances) + An instance of DensePose filter, which takes feature tensors and proposals + as an input and returns filtered features and proposals + """ + dp_filter = DensePoseDataFilter(cfg) + return dp_filter + + +def build_densepose_head(cfg: CfgNode, input_channels: int): + """ + Build DensePose head based on configurations options + + Args: + cfg (CfgNode): configuration options + input_channels (int): input tensor size along the channel dimension + Return: + An instance of DensePose head + """ + from .roi_heads.registry import ROI_DENSEPOSE_HEAD_REGISTRY + + head_name = cfg.MODEL.ROI_DENSEPOSE_HEAD.NAME + return ROI_DENSEPOSE_HEAD_REGISTRY.get(head_name)(cfg, input_channels) + + +def build_densepose_losses(cfg: CfgNode): + """ + Build DensePose loss based on configurations options + + Args: + cfg (CfgNode): configuration options + Return: + An instance of DensePose loss + """ + from .losses import DENSEPOSE_LOSS_REGISTRY + + loss_name = cfg.MODEL.ROI_DENSEPOSE_HEAD.LOSS_NAME + return DENSEPOSE_LOSS_REGISTRY.get(loss_name)(cfg) + + +def build_densepose_embedder(cfg: CfgNode) -> Optional[nn.Module]: + """ + Build embedder used to embed mesh vertices into an embedding space. + Embedder contains sub-embedders, one for each mesh ID. + + Args: + cfg (cfgNode): configuration options + Return: + Embedding module + """ + if cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS: + return Embedder(cfg) + return None diff --git a/detectron2/projects/DensePose/densepose/modeling/confidence.py b/detectron2/projects/DensePose/densepose/modeling/confidence.py new file mode 100755 index 0000000..6f4a72e --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/confidence.py @@ -0,0 +1,73 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from dataclasses import dataclass +from enum import Enum + +from detectron2.config import CfgNode + + +class DensePoseUVConfidenceType(Enum): + """ + Statistical model type for confidence learning, possible values: + - "iid_iso": statistically independent identically distributed residuals + with anisotropic covariance + - "indep_aniso": statistically independent residuals with anisotropic + covariances + For details, see: + N. Neverova, D. Novotny, A. Vedaldi "Correlated Uncertainty for Learning + Dense Correspondences from Noisy Labels", p. 918--926, in Proc. NIPS 2019 + """ + + # fmt: off + IID_ISO = "iid_iso" + INDEP_ANISO = "indep_aniso" + # fmt: on + + +@dataclass +class DensePoseUVConfidenceConfig: + """ + Configuration options for confidence on UV data + """ + + enabled: bool = False + # lower bound on UV confidences + epsilon: float = 0.01 + type: DensePoseUVConfidenceType = DensePoseUVConfidenceType.IID_ISO + + +@dataclass +class DensePoseSegmConfidenceConfig: + """ + Configuration options for confidence on segmentation + """ + + enabled: bool = False + # lower bound on confidence values + epsilon: float = 0.01 + + +@dataclass +class DensePoseConfidenceModelConfig: + """ + Configuration options for confidence models + """ + + # confidence for U and V values + uv_confidence: DensePoseUVConfidenceConfig + # segmentation confidence + segm_confidence: DensePoseSegmConfidenceConfig + + @staticmethod + def from_cfg(cfg: CfgNode) -> "DensePoseConfidenceModelConfig": + return DensePoseConfidenceModelConfig( + uv_confidence=DensePoseUVConfidenceConfig( + enabled=cfg.MODEL.ROI_DENSEPOSE_HEAD.UV_CONFIDENCE.ENABLED, + epsilon=cfg.MODEL.ROI_DENSEPOSE_HEAD.UV_CONFIDENCE.EPSILON, + type=DensePoseUVConfidenceType(cfg.MODEL.ROI_DENSEPOSE_HEAD.UV_CONFIDENCE.TYPE), + ), + segm_confidence=DensePoseSegmConfidenceConfig( + enabled=cfg.MODEL.ROI_DENSEPOSE_HEAD.SEGM_CONFIDENCE.ENABLED, + epsilon=cfg.MODEL.ROI_DENSEPOSE_HEAD.SEGM_CONFIDENCE.EPSILON, + ), + ) diff --git a/detectron2/projects/DensePose/densepose/modeling/cse/__init__.py b/detectron2/projects/DensePose/densepose/modeling/cse/__init__.py new file mode 100755 index 0000000..a227360 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/cse/__init__.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from .vertex_direct_embedder import VertexDirectEmbedder +from .vertex_feature_embedder import VertexFeatureEmbedder +from .embedder import Embedder diff --git a/detectron2/projects/DensePose/densepose/modeling/cse/embedder.py b/detectron2/projects/DensePose/densepose/modeling/cse/embedder.py new file mode 100755 index 0000000..7f52b06 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/cse/embedder.py @@ -0,0 +1,130 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import logging +import numpy as np +import pickle +from enum import Enum +from typing import Optional +import torch +from torch import nn + +from detectron2.config import CfgNode +from detectron2.utils.file_io import PathManager + +from .vertex_direct_embedder import VertexDirectEmbedder +from .vertex_feature_embedder import VertexFeatureEmbedder + + +class EmbedderType(Enum): + """ + Embedder type which defines how vertices are mapped into the embedding space: + - "vertex_direct": direct vertex embedding + - "vertex_feature": embedding vertex features + """ + + VERTEX_DIRECT = "vertex_direct" + VERTEX_FEATURE = "vertex_feature" + + +def create_embedder(embedder_spec: CfgNode, embedder_dim: int) -> nn.Module: + """ + Create an embedder based on the provided configuration + + Args: + embedder_spec (CfgNode): embedder configuration + embedder_dim (int): embedding space dimensionality + Return: + An embedder instance for the specified configuration + Raises ValueError, in case of unexpected embedder type + """ + embedder_type = EmbedderType(embedder_spec.TYPE) + if embedder_type == EmbedderType.VERTEX_DIRECT: + embedder = VertexDirectEmbedder( + num_vertices=embedder_spec.NUM_VERTICES, + embed_dim=embedder_dim, + ) + if embedder_spec.INIT_FILE != "": + embedder.load(embedder_spec.INIT_FILE) + elif embedder_type == EmbedderType.VERTEX_FEATURE: + embedder = VertexFeatureEmbedder( + num_vertices=embedder_spec.NUM_VERTICES, + feature_dim=embedder_spec.FEATURE_DIM, + embed_dim=embedder_dim, + train_features=embedder_spec.FEATURES_TRAINABLE, + ) + if embedder_spec.INIT_FILE != "": + embedder.load(embedder_spec.INIT_FILE) + else: + raise ValueError(f"Unexpected embedder type {embedder_type}") + + if not embedder_spec.IS_TRAINABLE: + embedder.requires_grad_(False) + + return embedder + + +class Embedder(nn.Module): + """ + Embedder module that serves as a container for embedders to use with different + meshes. Extends Module to automatically save / load state dict. + """ + + DEFAULT_MODEL_CHECKPOINT_PREFIX = "roi_heads.embedder." + + def __init__(self, cfg: CfgNode): + """ + Initialize mesh embedders. An embedder for mesh `i` is stored in a submodule + "embedder_{i}". + + Args: + cfg (CfgNode): configuration options + """ + super(Embedder, self).__init__() + self.mesh_names = set() + embedder_dim = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE + logger = logging.getLogger(__name__) + for mesh_name, embedder_spec in cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.items(): + logger.info(f"Adding embedder embedder_{mesh_name} with spec {embedder_spec}") + self.add_module(f"embedder_{mesh_name}", create_embedder(embedder_spec, embedder_dim)) + self.mesh_names.add(mesh_name) + if cfg.MODEL.WEIGHTS != "": + self.load_from_model_checkpoint(cfg.MODEL.WEIGHTS) + + def load_from_model_checkpoint(self, fpath: str, prefix: Optional[str] = None): + if prefix is None: + prefix = Embedder.DEFAULT_MODEL_CHECKPOINT_PREFIX + state_dict = None + if fpath.endswith(".pkl"): + with PathManager.open(fpath, "rb") as hFile: + state_dict = pickle.load(hFile, encoding="latin1") # pyre-ignore[6] + else: + with PathManager.open(fpath, "rb") as hFile: + # pyre-fixme[6]: For 1st param expected `Union[PathLike[typing.Any], + # IO[bytes], str, BinaryIO]` but got `Union[IO[bytes], IO[str]]`. + state_dict = torch.load(hFile, map_location=torch.device("cpu")) + if state_dict is not None and "model" in state_dict: + state_dict_local = {} + for key in state_dict["model"]: + if key.startswith(prefix): + v_key = state_dict["model"][key] + if isinstance(v_key, np.ndarray): + v_key = torch.from_numpy(v_key) + state_dict_local[key[len(prefix) :]] = v_key + # non-strict loading to finetune on different meshes + self.load_state_dict(state_dict_local, strict=False) + + def forward(self, mesh_name: str) -> torch.Tensor: + """ + Produce vertex embeddings for the specific mesh; vertex embeddings are + a tensor of shape [N, D] where: + N = number of vertices + D = number of dimensions in the embedding space + Args: + mesh_name (str): name of a mesh for which to obtain vertex embeddings + Return: + Vertex embeddings, a tensor of shape [N, D] + """ + return getattr(self, f"embedder_{mesh_name}")() + + def has_embeddings(self, mesh_name: str) -> bool: + return hasattr(self, f"embedder_{mesh_name}") diff --git a/detectron2/projects/DensePose/densepose/modeling/cse/utils.py b/detectron2/projects/DensePose/densepose/modeling/cse/utils.py new file mode 100755 index 0000000..6e70d25 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/cse/utils.py @@ -0,0 +1,81 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import torch +from torch.nn import functional as F + + +def squared_euclidean_distance_matrix(pts1: torch.Tensor, pts2: torch.Tensor) -> torch.Tensor: + """ + Get squared Euclidean Distance Matrix + Computes pairwise squared Euclidean distances between points + + Args: + pts1: Tensor [M x D], M is the number of points, D is feature dimensionality + pts2: Tensor [N x D], N is the number of points, D is feature dimensionality + + Return: + Tensor [M, N]: matrix of squared Euclidean distances; at index (m, n) + it contains || pts1[m] - pts2[n] ||^2 + """ + edm = torch.mm(-2 * pts1, pts2.t()) + edm += (pts1 * pts1).sum(1, keepdim=True) + (pts2 * pts2).sum(1, keepdim=True).t() + return edm.contiguous() + + +def normalize_embeddings(embeddings: torch.Tensor, epsilon: float = 1e-6) -> torch.Tensor: + """ + Normalize N D-dimensional embedding vectors arranged in a tensor [N, D] + + Args: + embeddings (tensor [N, D]): N D-dimensional embedding vectors + epsilon (float): minimum value for a vector norm + Return: + Normalized embeddings (tensor [N, D]), such that L2 vector norms are all equal to 1. + """ + return embeddings / torch.clamp(embeddings.norm(p=None, dim=1, keepdim=True), min=epsilon) + + +def get_closest_vertices_mask_from_ES( + E: torch.Tensor, + S: torch.Tensor, + h: int, + w: int, + mesh_vertex_embeddings: torch.Tensor, + device: torch.device, +): + """ + Interpolate Embeddings and Segmentations to the size of a given bounding box, + and compute closest vertices and the segmentation mask + + Args: + E (tensor [1, D, H, W]): D-dimensional embedding vectors for every point of the + default-sized box + S (tensor [1, 2, H, W]): 2-dimensional segmentation mask for every point of the + default-sized box + h (int): height of the target bounding box + w (int): width of the target bounding box + mesh_vertex_embeddings (tensor [N, D]): vertex embeddings for a chosen mesh + N is the number of vertices in the mesh, D is feature dimensionality + device (torch.device): device to move the tensors to + Return: + Closest Vertices (tensor [h, w]), int, for every point of the resulting box + Segmentation mask (tensor [h, w]), boolean, for every point of the resulting box + """ + embedding_resized = F.interpolate(E, size=(h, w), mode="bilinear")[0].to(device) + coarse_segm_resized = F.interpolate(S, size=(h, w), mode="bilinear")[0].to(device) + mask = coarse_segm_resized.argmax(0) > 0 + closest_vertices = torch.zeros(mask.shape, dtype=torch.long, device=device) + all_embeddings = embedding_resized[:, mask].t() + size_chunk = 10_000 # Chunking to avoid possible OOM + edm = [] + if len(all_embeddings) == 0: + return closest_vertices, mask + for chunk in range((len(all_embeddings) - 1) // size_chunk + 1): + chunk_embeddings = all_embeddings[size_chunk * chunk : size_chunk * (chunk + 1)] + edm.append( + torch.argmin( + squared_euclidean_distance_matrix(chunk_embeddings, mesh_vertex_embeddings), dim=1 + ) + ) + closest_vertices[mask] = torch.cat(edm) + return closest_vertices, mask diff --git a/detectron2/projects/DensePose/densepose/modeling/cse/vertex_direct_embedder.py b/detectron2/projects/DensePose/densepose/modeling/cse/vertex_direct_embedder.py new file mode 100755 index 0000000..60fba27 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/cse/vertex_direct_embedder.py @@ -0,0 +1,64 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import pickle +import torch +from torch import nn + +from detectron2.utils.file_io import PathManager + +from .utils import normalize_embeddings + + +class VertexDirectEmbedder(nn.Module): + """ + Class responsible for embedding vertices. Vertex embeddings take + the form of a tensor of size [N, D], where + N = number of vertices + D = number of dimensions in the embedding space + """ + + def __init__(self, num_vertices: int, embed_dim: int): + """ + Initialize embedder, set random embeddings + + Args: + num_vertices (int): number of vertices to embed + embed_dim (int): number of dimensions in the embedding space + """ + super(VertexDirectEmbedder, self).__init__() + self.embeddings = nn.Parameter(torch.Tensor(num_vertices, embed_dim)) + self.reset_parameters() + + @torch.no_grad() + def reset_parameters(self): + """ + Reset embeddings to random values + """ + self.embeddings.zero_() + + def forward(self) -> torch.Tensor: + """ + Produce vertex embeddings, a tensor of shape [N, D] where: + N = number of vertices + D = number of dimensions in the embedding space + + Return: + Full vertex embeddings, a tensor of shape [N, D] + """ + return normalize_embeddings(self.embeddings) + + @torch.no_grad() + def load(self, fpath: str): + """ + Load data from a file + + Args: + fpath (str): file path to load data from + """ + with PathManager.open(fpath, "rb") as hFile: + data = pickle.load(hFile) # pyre-ignore[6] + for name in ["embeddings"]: + if name in data: + getattr(self, name).copy_( + torch.tensor(data[name]).float().to(device=getattr(self, name).device) + ) diff --git a/detectron2/projects/DensePose/densepose/modeling/cse/vertex_feature_embedder.py b/detectron2/projects/DensePose/densepose/modeling/cse/vertex_feature_embedder.py new file mode 100755 index 0000000..dcb2f20 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/cse/vertex_feature_embedder.py @@ -0,0 +1,75 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import pickle +import torch +from torch import nn + +from detectron2.utils.file_io import PathManager + +from .utils import normalize_embeddings + + +class VertexFeatureEmbedder(nn.Module): + """ + Class responsible for embedding vertex features. Mapping from + feature space to the embedding space is a tensor of size [K, D], where + K = number of dimensions in the feature space + D = number of dimensions in the embedding space + Vertex features is a tensor of size [N, K], where + N = number of vertices + K = number of dimensions in the feature space + Vertex embeddings are computed as F * E = tensor of size [N, D] + """ + + def __init__( + self, num_vertices: int, feature_dim: int, embed_dim: int, train_features: bool = False + ): + """ + Initialize embedder, set random embeddings + + Args: + num_vertices (int): number of vertices to embed + feature_dim (int): number of dimensions in the feature space + embed_dim (int): number of dimensions in the embedding space + train_features (bool): determines whether vertex features should + be trained (default: False) + """ + super(VertexFeatureEmbedder, self).__init__() + if train_features: + self.features = nn.Parameter(torch.Tensor(num_vertices, feature_dim)) + else: + self.register_buffer("features", torch.Tensor(num_vertices, feature_dim)) + self.embeddings = nn.Parameter(torch.Tensor(feature_dim, embed_dim)) + self.reset_parameters() + + @torch.no_grad() + def reset_parameters(self): + self.features.zero_() + self.embeddings.zero_() + + def forward(self) -> torch.Tensor: + """ + Produce vertex embeddings, a tensor of shape [N, D] where: + N = number of vertices + D = number of dimensions in the embedding space + + Return: + Full vertex embeddings, a tensor of shape [N, D] + """ + return normalize_embeddings(torch.mm(self.features, self.embeddings)) + + @torch.no_grad() + def load(self, fpath: str): + """ + Load data from a file + + Args: + fpath (str): file path to load data from + """ + with PathManager.open(fpath, "rb") as hFile: + data = pickle.load(hFile) # pyre-ignore[6] + for name in ["features", "embeddings"]: + if name in data: + getattr(self, name).copy_( + torch.tensor(data[name]).float().to(device=getattr(self, name).device) + ) diff --git a/detectron2/projects/DensePose/densepose/modeling/densepose_checkpoint.py b/detectron2/projects/DensePose/densepose/modeling/densepose_checkpoint.py new file mode 100755 index 0000000..8c2b4f2 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/densepose_checkpoint.py @@ -0,0 +1,35 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from collections import OrderedDict + +from detectron2.checkpoint import DetectionCheckpointer + + +def _rename_HRNet_weights(weights): + # We detect and rename HRNet weights for DensePose. 1956 and 1716 are values that are + # common to all HRNet pretrained weights, and should be enough to accurately identify them + if ( + len(weights["model"].keys()) == 1956 + and len([k for k in weights["model"].keys() if k.startswith("stage")]) == 1716 + ): + hrnet_weights = OrderedDict() + for k in weights["model"].keys(): + hrnet_weights["backbone.bottom_up." + str(k)] = weights["model"][k] + return {"model": hrnet_weights} + else: + return weights + + +class DensePoseCheckpointer(DetectionCheckpointer): + """ + Same as :class:`DetectionCheckpointer`, but is able to handle HRNet weights + """ + + def __init__(self, model, save_dir="", *, save_to_disk=None, **checkpointables): + super().__init__(model, save_dir, save_to_disk=save_to_disk, **checkpointables) + + def _load_file(self, filename: str) -> object: + """ + Adding hrnet support + """ + weights = super()._load_file(filename) + return _rename_HRNet_weights(weights) diff --git a/detectron2/projects/DensePose/densepose/modeling/filter.py b/detectron2/projects/DensePose/densepose/modeling/filter.py new file mode 100755 index 0000000..18a8567 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/filter.py @@ -0,0 +1,94 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import List +import torch + +from detectron2.config import CfgNode +from detectron2.structures import Instances +from detectron2.structures.boxes import matched_pairwise_iou + + +class DensePoseDataFilter(object): + def __init__(self, cfg: CfgNode): + self.iou_threshold = cfg.MODEL.ROI_DENSEPOSE_HEAD.FG_IOU_THRESHOLD + self.keep_masks = cfg.MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS + + @torch.no_grad() + def __call__(self, features: List[torch.Tensor], proposals_with_targets: List[Instances]): + """ + Filters proposals with targets to keep only the ones relevant for + DensePose training + + Args: + features (list[Tensor]): input data as a list of features, + each feature is a tensor. Axis 0 represents the number of + images `N` in the input data; axes 1-3 are channels, + height, and width, which may vary between features + (e.g., if a feature pyramid is used). + proposals_with_targets (list[Instances]): length `N` list of + `Instances`. The i-th `Instances` contains instances + (proposals, GT) for the i-th input image, + Returns: + list[Tensor]: filtered features + list[Instances]: filtered proposals + """ + proposals_filtered = [] + # TODO: the commented out code was supposed to correctly deal with situations + # where no valid DensePose GT is available for certain images. The corresponding + # image features were sliced and proposals were filtered. This led to performance + # deterioration, both in terms of runtime and in terms of evaluation results. + # + # feature_mask = torch.ones( + # len(proposals_with_targets), + # dtype=torch.bool, + # device=features[0].device if len(features) > 0 else torch.device("cpu"), + # ) + for i, proposals_per_image in enumerate(proposals_with_targets): + if not proposals_per_image.has("gt_densepose") and ( + not proposals_per_image.has("gt_masks") or not self.keep_masks + ): + # feature_mask[i] = 0 + continue + gt_boxes = proposals_per_image.gt_boxes + est_boxes = proposals_per_image.proposal_boxes + # apply match threshold for densepose head + iou = matched_pairwise_iou(gt_boxes, est_boxes) + iou_select = iou > self.iou_threshold + proposals_per_image = proposals_per_image[iou_select] # pyre-ignore[6] + + N_gt_boxes = len(proposals_per_image.gt_boxes) + assert N_gt_boxes == len(proposals_per_image.proposal_boxes), ( + f"The number of GT boxes {N_gt_boxes} is different from the " + f"number of proposal boxes {len(proposals_per_image.proposal_boxes)}" + ) + # filter out any target without suitable annotation + if self.keep_masks: + gt_masks = ( + proposals_per_image.gt_masks + if hasattr(proposals_per_image, "gt_masks") + else [None] * N_gt_boxes + ) + else: + gt_masks = [None] * N_gt_boxes + gt_densepose = ( + proposals_per_image.gt_densepose + if hasattr(proposals_per_image, "gt_densepose") + else [None] * N_gt_boxes + ) + assert len(gt_masks) == N_gt_boxes + assert len(gt_densepose) == N_gt_boxes + selected_indices = [ + i + for i, (dp_target, mask_target) in enumerate(zip(gt_densepose, gt_masks)) + if (dp_target is not None) or (mask_target is not None) + ] + # if not len(selected_indices): + # feature_mask[i] = 0 + # continue + if len(selected_indices) != N_gt_boxes: + proposals_per_image = proposals_per_image[selected_indices] # pyre-ignore[6] + assert len(proposals_per_image.gt_boxes) == len(proposals_per_image.proposal_boxes) + proposals_filtered.append(proposals_per_image) + # features_filtered = [feature[feature_mask] for feature in features] + # return features_filtered, proposals_filtered + return features, proposals_filtered diff --git a/detectron2/projects/DensePose/densepose/modeling/hrfpn.py b/detectron2/projects/DensePose/densepose/modeling/hrfpn.py new file mode 100755 index 0000000..08ec420 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/hrfpn.py @@ -0,0 +1,182 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +""" +MIT License +Copyright (c) 2019 Microsoft +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +""" + +import torch +import torch.nn as nn +import torch.nn.functional as F + +from detectron2.layers import ShapeSpec +from detectron2.modeling.backbone import BACKBONE_REGISTRY +from detectron2.modeling.backbone.backbone import Backbone + +from .hrnet import build_pose_hrnet_backbone + + +class HRFPN(Backbone): + """HRFPN (High Resolution Feature Pyramids) + Transforms outputs of HRNet backbone so they are suitable for the ROI_heads + arXiv: https://arxiv.org/abs/1904.04514 + Adapted from https://github.com/open-mmlab/mmdetection/blob/master/mmdet/models/necks/hrfpn.py + Args: + bottom_up: (list) output of HRNet + in_features (list): names of the input features (output of HRNet) + in_channels (list): number of channels for each branch + out_channels (int): output channels of feature pyramids + n_out_features (int): number of output stages + pooling (str): pooling for generating feature pyramids (from {MAX, AVG}) + share_conv (bool): Have one conv per output, or share one with all the outputs + """ + + def __init__( + self, + bottom_up, + in_features, + n_out_features, + in_channels, + out_channels, + pooling="AVG", + share_conv=False, + ): + super(HRFPN, self).__init__() + assert isinstance(in_channels, list) + self.bottom_up = bottom_up + self.in_features = in_features + self.n_out_features = n_out_features + self.in_channels = in_channels + self.out_channels = out_channels + self.num_ins = len(in_channels) + self.share_conv = share_conv + + if self.share_conv: + self.fpn_conv = nn.Conv2d( + in_channels=out_channels, out_channels=out_channels, kernel_size=3, padding=1 + ) + else: + self.fpn_conv = nn.ModuleList() + for _ in range(self.n_out_features): + self.fpn_conv.append( + nn.Conv2d( + in_channels=out_channels, + out_channels=out_channels, + kernel_size=3, + padding=1, + ) + ) + + # Custom change: Replaces a simple bilinear interpolation + self.interp_conv = nn.ModuleList() + for i in range(len(self.in_features)): + self.interp_conv.append( + nn.Sequential( + nn.ConvTranspose2d( + in_channels=in_channels[i], + out_channels=in_channels[i], + kernel_size=4, + stride=2**i, + padding=0, + output_padding=0, + bias=False, + ), + nn.BatchNorm2d(in_channels[i], momentum=0.1), + nn.ReLU(inplace=True), + ) + ) + + # Custom change: Replaces a couple (reduction conv + pooling) by one conv + self.reduction_pooling_conv = nn.ModuleList() + for i in range(self.n_out_features): + self.reduction_pooling_conv.append( + nn.Sequential( + nn.Conv2d(sum(in_channels), out_channels, kernel_size=2**i, stride=2**i), + nn.BatchNorm2d(out_channels, momentum=0.1), + nn.ReLU(inplace=True), + ) + ) + + if pooling == "MAX": + self.pooling = F.max_pool2d + else: + self.pooling = F.avg_pool2d + + self._out_features = [] + self._out_feature_channels = {} + self._out_feature_strides = {} + + for i in range(self.n_out_features): + self._out_features.append("p%d" % (i + 1)) + self._out_feature_channels.update({self._out_features[-1]: self.out_channels}) + self._out_feature_strides.update({self._out_features[-1]: 2 ** (i + 2)}) + + # default init_weights for conv(msra) and norm in ConvModule + def init_weights(self): + for m in self.modules(): + if isinstance(m, nn.Conv2d): + nn.init.kaiming_normal_(m.weight, a=1) + nn.init.constant_(m.bias, 0) + + def forward(self, inputs): + bottom_up_features = self.bottom_up(inputs) + assert len(bottom_up_features) == len(self.in_features) + inputs = [bottom_up_features[f] for f in self.in_features] + + outs = [] + for i in range(len(inputs)): + outs.append(self.interp_conv[i](inputs[i])) + shape_2 = min(o.shape[2] for o in outs) + shape_3 = min(o.shape[3] for o in outs) + out = torch.cat([o[:, :, :shape_2, :shape_3] for o in outs], dim=1) + outs = [] + for i in range(self.n_out_features): + outs.append(self.reduction_pooling_conv[i](out)) + for i in range(len(outs)): # Make shapes consistent + outs[-1 - i] = outs[-1 - i][ + :, :, : outs[-1].shape[2] * 2**i, : outs[-1].shape[3] * 2**i + ] + outputs = [] + for i in range(len(outs)): + if self.share_conv: + outputs.append(self.fpn_conv(outs[i])) + else: + outputs.append(self.fpn_conv[i](outs[i])) + + assert len(self._out_features) == len(outputs) + return dict(zip(self._out_features, outputs)) + + +@BACKBONE_REGISTRY.register() +def build_hrfpn_backbone(cfg, input_shape: ShapeSpec) -> HRFPN: + + in_channels = cfg.MODEL.HRNET.STAGE4.NUM_CHANNELS + in_features = ["p%d" % (i + 1) for i in range(cfg.MODEL.HRNET.STAGE4.NUM_BRANCHES)] + n_out_features = len(cfg.MODEL.ROI_HEADS.IN_FEATURES) + out_channels = cfg.MODEL.HRNET.HRFPN.OUT_CHANNELS + hrnet = build_pose_hrnet_backbone(cfg, input_shape) + hrfpn = HRFPN( + hrnet, + in_features, + n_out_features, + in_channels, + out_channels, + pooling="AVG", + share_conv=False, + ) + + return hrfpn diff --git a/detectron2/projects/DensePose/densepose/modeling/hrnet.py b/detectron2/projects/DensePose/densepose/modeling/hrnet.py new file mode 100755 index 0000000..ca24671 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/hrnet.py @@ -0,0 +1,474 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# ------------------------------------------------------------------------------ +# Copyright (c) Microsoft +# Licensed under the MIT License. +# Written by Bin Xiao (leoxiaobin@gmail.com) +# Modified by Bowen Cheng (bcheng9@illinois.edu) +# Adapted from https://github.com/HRNet/Higher-HRNet-Human-Pose-Estimation/blob/master/lib/models/pose_higher_hrnet.py # noqa +# ------------------------------------------------------------------------------ + +from __future__ import absolute_import, division, print_function +import logging +import torch.nn as nn + +from detectron2.layers import ShapeSpec +from detectron2.modeling.backbone import BACKBONE_REGISTRY +from detectron2.modeling.backbone.backbone import Backbone + +BN_MOMENTUM = 0.1 +logger = logging.getLogger(__name__) + +__all__ = ["build_pose_hrnet_backbone", "PoseHigherResolutionNet"] + + +def conv3x3(in_planes, out_planes, stride=1): + """3x3 convolution with padding""" + return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) + + +class BasicBlock(nn.Module): + expansion = 1 + + def __init__(self, inplanes, planes, stride=1, downsample=None): + super(BasicBlock, self).__init__() + self.conv1 = conv3x3(inplanes, planes, stride) + self.bn1 = nn.BatchNorm2d(planes, momentum=BN_MOMENTUM) + self.relu = nn.ReLU(inplace=True) + self.conv2 = conv3x3(planes, planes) + self.bn2 = nn.BatchNorm2d(planes, momentum=BN_MOMENTUM) + self.downsample = downsample + self.stride = stride + + def forward(self, x): + residual = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + + if self.downsample is not None: + residual = self.downsample(x) + + out += residual + out = self.relu(out) + + return out + + +class Bottleneck(nn.Module): + expansion = 4 + + def __init__(self, inplanes, planes, stride=1, downsample=None): + super(Bottleneck, self).__init__() + self.conv1 = nn.Conv2d(inplanes, planes, kernel_size=1, bias=False) + self.bn1 = nn.BatchNorm2d(planes, momentum=BN_MOMENTUM) + self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride, padding=1, bias=False) + self.bn2 = nn.BatchNorm2d(planes, momentum=BN_MOMENTUM) + self.conv3 = nn.Conv2d(planes, planes * self.expansion, kernel_size=1, bias=False) + self.bn3 = nn.BatchNorm2d(planes * self.expansion, momentum=BN_MOMENTUM) + self.relu = nn.ReLU(inplace=True) + self.downsample = downsample + self.stride = stride + + def forward(self, x): + residual = x + + out = self.conv1(x) + out = self.bn1(out) + out = self.relu(out) + + out = self.conv2(out) + out = self.bn2(out) + out = self.relu(out) + + out = self.conv3(out) + out = self.bn3(out) + + if self.downsample is not None: + residual = self.downsample(x) + + out += residual + out = self.relu(out) + + return out + + +class HighResolutionModule(nn.Module): + """HighResolutionModule + Building block of the PoseHigherResolutionNet (see lower) + arXiv: https://arxiv.org/abs/1908.10357 + Args: + num_branches (int): number of branches of the modyle + blocks (str): type of block of the module + num_blocks (int): number of blocks of the module + num_inchannels (int): number of input channels of the module + num_channels (list): number of channels of each branch + multi_scale_output (bool): only used by the last module of PoseHigherResolutionNet + """ + + def __init__( + self, + num_branches, + blocks, + num_blocks, + num_inchannels, + num_channels, + multi_scale_output=True, + ): + super(HighResolutionModule, self).__init__() + self._check_branches(num_branches, blocks, num_blocks, num_inchannels, num_channels) + + self.num_inchannels = num_inchannels + self.num_branches = num_branches + + self.multi_scale_output = multi_scale_output + + self.branches = self._make_branches(num_branches, blocks, num_blocks, num_channels) + self.fuse_layers = self._make_fuse_layers() + self.relu = nn.ReLU(True) + + def _check_branches(self, num_branches, blocks, num_blocks, num_inchannels, num_channels): + if num_branches != len(num_blocks): + error_msg = "NUM_BRANCHES({}) <> NUM_BLOCKS({})".format(num_branches, len(num_blocks)) + logger.error(error_msg) + raise ValueError(error_msg) + + if num_branches != len(num_channels): + error_msg = "NUM_BRANCHES({}) <> NUM_CHANNELS({})".format( + num_branches, len(num_channels) + ) + logger.error(error_msg) + raise ValueError(error_msg) + + if num_branches != len(num_inchannels): + error_msg = "NUM_BRANCHES({}) <> NUM_INCHANNELS({})".format( + num_branches, len(num_inchannels) + ) + logger.error(error_msg) + raise ValueError(error_msg) + + def _make_one_branch(self, branch_index, block, num_blocks, num_channels, stride=1): + downsample = None + if ( + stride != 1 + or self.num_inchannels[branch_index] != num_channels[branch_index] * block.expansion + ): + downsample = nn.Sequential( + nn.Conv2d( + self.num_inchannels[branch_index], + num_channels[branch_index] * block.expansion, + kernel_size=1, + stride=stride, + bias=False, + ), + nn.BatchNorm2d(num_channels[branch_index] * block.expansion, momentum=BN_MOMENTUM), + ) + + layers = [] + layers.append( + block(self.num_inchannels[branch_index], num_channels[branch_index], stride, downsample) + ) + self.num_inchannels[branch_index] = num_channels[branch_index] * block.expansion + for _ in range(1, num_blocks[branch_index]): + layers.append(block(self.num_inchannels[branch_index], num_channels[branch_index])) + + return nn.Sequential(*layers) + + def _make_branches(self, num_branches, block, num_blocks, num_channels): + branches = [] + + for i in range(num_branches): + branches.append(self._make_one_branch(i, block, num_blocks, num_channels)) + + return nn.ModuleList(branches) + + def _make_fuse_layers(self): + if self.num_branches == 1: + return None + + num_branches = self.num_branches + num_inchannels = self.num_inchannels + fuse_layers = [] + for i in range(num_branches if self.multi_scale_output else 1): + fuse_layer = [] + for j in range(num_branches): + if j > i: + fuse_layer.append( + nn.Sequential( + nn.Conv2d(num_inchannels[j], num_inchannels[i], 1, 1, 0, bias=False), + nn.BatchNorm2d(num_inchannels[i]), + nn.Upsample(scale_factor=2 ** (j - i), mode="nearest"), + ) + ) + elif j == i: + fuse_layer.append(None) + else: + conv3x3s = [] + for k in range(i - j): + if k == i - j - 1: + num_outchannels_conv3x3 = num_inchannels[i] + conv3x3s.append( + nn.Sequential( + nn.Conv2d( + num_inchannels[j], + num_outchannels_conv3x3, + 3, + 2, + 1, + bias=False, + ), + nn.BatchNorm2d(num_outchannels_conv3x3), + ) + ) + else: + num_outchannels_conv3x3 = num_inchannels[j] + conv3x3s.append( + nn.Sequential( + nn.Conv2d( + num_inchannels[j], + num_outchannels_conv3x3, + 3, + 2, + 1, + bias=False, + ), + nn.BatchNorm2d(num_outchannels_conv3x3), + nn.ReLU(True), + ) + ) + fuse_layer.append(nn.Sequential(*conv3x3s)) + fuse_layers.append(nn.ModuleList(fuse_layer)) + + return nn.ModuleList(fuse_layers) + + def get_num_inchannels(self): + return self.num_inchannels + + def forward(self, x): + if self.num_branches == 1: + return [self.branches[0](x[0])] + + for i in range(self.num_branches): + x[i] = self.branches[i](x[i]) + + x_fuse = [] + + for i in range(len(self.fuse_layers)): + y = x[0] if i == 0 else self.fuse_layers[i][0](x[0]) + for j in range(1, self.num_branches): + if i == j: + y = y + x[j] + else: + z = self.fuse_layers[i][j](x[j])[:, :, : y.shape[2], : y.shape[3]] + y = y + z + x_fuse.append(self.relu(y)) + + return x_fuse + + +blocks_dict = {"BASIC": BasicBlock, "BOTTLENECK": Bottleneck} + + +class PoseHigherResolutionNet(Backbone): + """PoseHigherResolutionNet + Composed of several HighResolutionModule tied together with ConvNets + Adapted from the GitHub version to fit with HRFPN and the Detectron2 infrastructure + arXiv: https://arxiv.org/abs/1908.10357 + """ + + def __init__(self, cfg, **kwargs): + self.inplanes = cfg.MODEL.HRNET.STEM_INPLANES + super(PoseHigherResolutionNet, self).__init__() + + # stem net + self.conv1 = nn.Conv2d(3, 64, kernel_size=3, stride=2, padding=1, bias=False) + self.bn1 = nn.BatchNorm2d(64, momentum=BN_MOMENTUM) + self.conv2 = nn.Conv2d(64, 64, kernel_size=3, stride=2, padding=1, bias=False) + self.bn2 = nn.BatchNorm2d(64, momentum=BN_MOMENTUM) + self.relu = nn.ReLU(inplace=True) + self.layer1 = self._make_layer(Bottleneck, 64, 4) + + self.stage2_cfg = cfg.MODEL.HRNET.STAGE2 + num_channels = self.stage2_cfg.NUM_CHANNELS + block = blocks_dict[self.stage2_cfg.BLOCK] + num_channels = [num_channels[i] * block.expansion for i in range(len(num_channels))] + self.transition1 = self._make_transition_layer([256], num_channels) + self.stage2, pre_stage_channels = self._make_stage(self.stage2_cfg, num_channels) + + self.stage3_cfg = cfg.MODEL.HRNET.STAGE3 + num_channels = self.stage3_cfg.NUM_CHANNELS + block = blocks_dict[self.stage3_cfg.BLOCK] + num_channels = [num_channels[i] * block.expansion for i in range(len(num_channels))] + self.transition2 = self._make_transition_layer(pre_stage_channels, num_channels) + self.stage3, pre_stage_channels = self._make_stage(self.stage3_cfg, num_channels) + + self.stage4_cfg = cfg.MODEL.HRNET.STAGE4 + num_channels = self.stage4_cfg.NUM_CHANNELS + block = blocks_dict[self.stage4_cfg.BLOCK] + num_channels = [num_channels[i] * block.expansion for i in range(len(num_channels))] + self.transition3 = self._make_transition_layer(pre_stage_channels, num_channels) + self.stage4, pre_stage_channels = self._make_stage( + self.stage4_cfg, num_channels, multi_scale_output=True + ) + + self._out_features = [] + self._out_feature_channels = {} + self._out_feature_strides = {} + + for i in range(cfg.MODEL.HRNET.STAGE4.NUM_BRANCHES): + self._out_features.append("p%d" % (i + 1)) + self._out_feature_channels.update( + {self._out_features[-1]: cfg.MODEL.HRNET.STAGE4.NUM_CHANNELS[i]} + ) + self._out_feature_strides.update({self._out_features[-1]: 1}) + + def _get_deconv_cfg(self, deconv_kernel): + if deconv_kernel == 4: + padding = 1 + output_padding = 0 + elif deconv_kernel == 3: + padding = 1 + output_padding = 1 + elif deconv_kernel == 2: + padding = 0 + output_padding = 0 + + return deconv_kernel, padding, output_padding + + def _make_transition_layer(self, num_channels_pre_layer, num_channels_cur_layer): + num_branches_cur = len(num_channels_cur_layer) + num_branches_pre = len(num_channels_pre_layer) + + transition_layers = [] + for i in range(num_branches_cur): + if i < num_branches_pre: + if num_channels_cur_layer[i] != num_channels_pre_layer[i]: + transition_layers.append( + nn.Sequential( + nn.Conv2d( + num_channels_pre_layer[i], + num_channels_cur_layer[i], + 3, + 1, + 1, + bias=False, + ), + nn.BatchNorm2d(num_channels_cur_layer[i]), + nn.ReLU(inplace=True), + ) + ) + else: + transition_layers.append(None) + else: + conv3x3s = [] + for j in range(i + 1 - num_branches_pre): + inchannels = num_channels_pre_layer[-1] + outchannels = ( + num_channels_cur_layer[i] if j == i - num_branches_pre else inchannels + ) + conv3x3s.append( + nn.Sequential( + nn.Conv2d(inchannels, outchannels, 3, 2, 1, bias=False), + nn.BatchNorm2d(outchannels), + nn.ReLU(inplace=True), + ) + ) + transition_layers.append(nn.Sequential(*conv3x3s)) + + return nn.ModuleList(transition_layers) + + def _make_layer(self, block, planes, blocks, stride=1): + downsample = None + if stride != 1 or self.inplanes != planes * block.expansion: + downsample = nn.Sequential( + nn.Conv2d( + self.inplanes, + planes * block.expansion, + kernel_size=1, + stride=stride, + bias=False, + ), + nn.BatchNorm2d(planes * block.expansion, momentum=BN_MOMENTUM), + ) + + layers = [] + layers.append(block(self.inplanes, planes, stride, downsample)) + self.inplanes = planes * block.expansion + for _ in range(1, blocks): + layers.append(block(self.inplanes, planes)) + + return nn.Sequential(*layers) + + def _make_stage(self, layer_config, num_inchannels, multi_scale_output=True): + num_modules = layer_config["NUM_MODULES"] + num_branches = layer_config["NUM_BRANCHES"] + num_blocks = layer_config["NUM_BLOCKS"] + num_channels = layer_config["NUM_CHANNELS"] + block = blocks_dict[layer_config["BLOCK"]] + + modules = [] + for i in range(num_modules): + # multi_scale_output is only used last module + if not multi_scale_output and i == num_modules - 1: + reset_multi_scale_output = False + else: + reset_multi_scale_output = True + + modules.append( + HighResolutionModule( + num_branches, + block, + num_blocks, + num_inchannels, + num_channels, + reset_multi_scale_output, + ) + ) + num_inchannels = modules[-1].get_num_inchannels() + + return nn.Sequential(*modules), num_inchannels + + def forward(self, x): + x = self.conv1(x) + x = self.bn1(x) + x = self.relu(x) + x = self.conv2(x) + x = self.bn2(x) + x = self.relu(x) + x = self.layer1(x) + + x_list = [] + for i in range(self.stage2_cfg.NUM_BRANCHES): + if self.transition1[i] is not None: + x_list.append(self.transition1[i](x)) + else: + x_list.append(x) + y_list = self.stage2(x_list) + + x_list = [] + for i in range(self.stage3_cfg.NUM_BRANCHES): + if self.transition2[i] is not None: + x_list.append(self.transition2[i](y_list[-1])) + else: + x_list.append(y_list[i]) + y_list = self.stage3(x_list) + + x_list = [] + for i in range(self.stage4_cfg.NUM_BRANCHES): + if self.transition3[i] is not None: + x_list.append(self.transition3[i](y_list[-1])) + else: + x_list.append(y_list[i]) + y_list = self.stage4(x_list) + + assert len(self._out_features) == len(y_list) + return dict(zip(self._out_features, y_list)) # final_outputs + + +@BACKBONE_REGISTRY.register() +def build_pose_hrnet_backbone(cfg, input_shape: ShapeSpec): + model = PoseHigherResolutionNet(cfg) + return model diff --git a/detectron2/projects/DensePose/densepose/modeling/inference.py b/detectron2/projects/DensePose/densepose/modeling/inference.py new file mode 100755 index 0000000..8104964 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/inference.py @@ -0,0 +1,44 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from dataclasses import fields +from typing import Any, List +import torch + +from detectron2.structures import Instances + + +def densepose_inference(densepose_predictor_output: Any, detections: List[Instances]) -> None: + """ + Splits DensePose predictor outputs into chunks, each chunk corresponds to + detections on one image. Predictor output chunks are stored in `pred_densepose` + attribute of the corresponding `Instances` object. + + Args: + densepose_predictor_output: a dataclass instance (can be of different types, + depending on predictor used for inference). Each field can be `None` + (if the corresponding output was not inferred) or a tensor of size + [N, ...], where N = N_1 + N_2 + .. + N_k is a total number of + detections on all images, N_1 is the number of detections on image 1, + N_2 is the number of detections on image 2, etc. + detections: a list of objects of type `Instance`, k-th object corresponds + to detections on k-th image. + """ + k = 0 + for detection_i in detections: + if densepose_predictor_output is None: + # don't add `pred_densepose` attribute + continue + n_i = detection_i.__len__() + + PredictorOutput = type(densepose_predictor_output) + output_i_dict = {} + # we assume here that `densepose_predictor_output` is a dataclass object + for field in fields(densepose_predictor_output): + field_value = getattr(densepose_predictor_output, field.name) + # slice tensors + if isinstance(field_value, torch.Tensor): + output_i_dict[field.name] = field_value[k : k + n_i] + # leave others as is + else: + output_i_dict[field.name] = field_value + detection_i.pred_densepose = PredictorOutput(**output_i_dict) + k += n_i diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/__init__.py b/detectron2/projects/DensePose/densepose/modeling/losses/__init__.py new file mode 100755 index 0000000..e5c5937 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/__init__.py @@ -0,0 +1,14 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .chart import DensePoseChartLoss +from .chart_with_confidences import DensePoseChartWithConfidenceLoss +from .cse import DensePoseCseLoss +from .registry import DENSEPOSE_LOSS_REGISTRY + + +__all__ = [ + "DensePoseChartLoss", + "DensePoseChartWithConfidenceLoss", + "DensePoseCseLoss", + "DENSEPOSE_LOSS_REGISTRY", +] diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/chart.py b/detectron2/projects/DensePose/densepose/modeling/losses/chart.py new file mode 100755 index 0000000..02cdae8 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/chart.py @@ -0,0 +1,291 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any, List +import torch +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from .mask_or_segm import MaskOrSegmentationLoss +from .registry import DENSEPOSE_LOSS_REGISTRY +from .utils import ( + BilinearInterpolationHelper, + ChartBasedAnnotationsAccumulator, + LossDict, + extract_packed_annotations_from_matches, +) + + +@DENSEPOSE_LOSS_REGISTRY.register() +class DensePoseChartLoss: + """ + DensePose loss for chart-based training. A mesh is split into charts, + each chart is given a label (I) and parametrized by 2 coordinates referred to + as U and V. Ground truth consists of a number of points annotated with + I, U and V values and coarse segmentation S defined for all pixels of the + object bounding box. In some cases (see `COARSE_SEGM_TRAINED_BY_MASKS`), + semantic segmentation annotations can be used as ground truth inputs as well. + + Estimated values are tensors: + * U coordinates, tensor of shape [N, C, S, S] + * V coordinates, tensor of shape [N, C, S, S] + * fine segmentation estimates, tensor of shape [N, C, S, S] with raw unnormalized + scores for each fine segmentation label at each location + * coarse segmentation estimates, tensor of shape [N, D, S, S] with raw unnormalized + scores for each coarse segmentation label at each location + where N is the number of detections, C is the number of fine segmentation + labels, S is the estimate size ( = width = height) and D is the number of + coarse segmentation channels. + + The losses are: + * regression (smooth L1) loss for U and V coordinates + * cross entropy loss for fine (I) and coarse (S) segmentations + Each loss has an associated weight + """ + + def __init__(self, cfg: CfgNode): + """ + Initialize chart-based loss from configuration options + + Args: + cfg (CfgNode): configuration options + """ + # fmt: off + self.heatmap_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE + self.w_points = cfg.MODEL.ROI_DENSEPOSE_HEAD.POINT_REGRESSION_WEIGHTS + self.w_part = cfg.MODEL.ROI_DENSEPOSE_HEAD.PART_WEIGHTS + self.w_segm = cfg.MODEL.ROI_DENSEPOSE_HEAD.INDEX_WEIGHTS + self.n_segm_chan = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS + # fmt: on + self.segm_trained_by_masks = cfg.MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS + self.segm_loss = MaskOrSegmentationLoss(cfg) + + def __call__( + self, proposals_with_gt: List[Instances], densepose_predictor_outputs: Any, **kwargs + ) -> LossDict: + """ + Produce chart-based DensePose losses + + Args: + proposals_with_gt (list of Instances): detections with associated ground truth data + densepose_predictor_outputs: an object of a dataclass that contains predictor outputs + with estimated values; assumed to have the following attributes: + * coarse_segm - coarse segmentation estimates, tensor of shape [N, D, S, S] + * fine_segm - fine segmentation estimates, tensor of shape [N, C, S, S] + * u - U coordinate estimates per fine labels, tensor of shape [N, C, S, S] + * v - V coordinate estimates per fine labels, tensor of shape [N, C, S, S] + where N is the number of detections, C is the number of fine segmentation + labels, S is the estimate size ( = width = height) and D is the number of + coarse segmentation channels. + + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_U`: smooth L1 loss for U coordinate estimates + * `loss_densepose_V`: smooth L1 loss for V coordinate estimates + * `loss_densepose_I`: cross entropy for raw unnormalized scores for fine + segmentation estimates given ground truth labels; + * `loss_densepose_S`: cross entropy for raw unnormalized scores for coarse + segmentation estimates given ground truth labels; + """ + # densepose outputs are computed for all images and all bounding boxes; + # i.e. if a batch has 4 images with (3, 1, 2, 1) proposals respectively, + # the outputs will have size(0) == 3+1+2+1 == 7 + + if not len(proposals_with_gt): + return self.produce_fake_densepose_losses(densepose_predictor_outputs) + + accumulator = ChartBasedAnnotationsAccumulator() + packed_annotations = extract_packed_annotations_from_matches(proposals_with_gt, accumulator) + + # NOTE: we need to keep the same computation graph on all the GPUs to + # perform reduction properly. Hence even if we have no data on one + # of the GPUs, we still need to generate the computation graph. + # Add fake (zero) loss in the form Tensor.sum() * 0 + if packed_annotations is None: + return self.produce_fake_densepose_losses(densepose_predictor_outputs) + + h, w = densepose_predictor_outputs.u.shape[2:] + interpolator = BilinearInterpolationHelper.from_matches( + packed_annotations, + (h, w), + ) + + j_valid_fg = interpolator.j_valid * ( # pyre-ignore[16] + packed_annotations.fine_segm_labels_gt > 0 + ) + # pyre-fixme[6]: For 1st param expected `Tensor` but got `int`. + if not torch.any(j_valid_fg): + return self.produce_fake_densepose_losses(densepose_predictor_outputs) + + losses_uv = self.produce_densepose_losses_uv( + proposals_with_gt, + densepose_predictor_outputs, + packed_annotations, + interpolator, + j_valid_fg, # pyre-ignore[6] + ) + + losses_segm = self.produce_densepose_losses_segm( + proposals_with_gt, + densepose_predictor_outputs, + packed_annotations, + interpolator, + j_valid_fg, # pyre-ignore[6] + ) + + return {**losses_uv, **losses_segm} + + def produce_fake_densepose_losses(self, densepose_predictor_outputs: Any) -> LossDict: + """ + Fake losses for fine segmentation and U/V coordinates. These are used when + no suitable ground truth data was found in a batch. The loss has a value 0 + and is primarily used to construct the computation graph, so that + `DistributedDataParallel` has similar graphs on all GPUs and can perform + reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have the following attributes: + * fine_segm - fine segmentation estimates, tensor of shape [N, C, S, S] + * u - U coordinate estimates per fine labels, tensor of shape [N, C, S, S] + * v - V coordinate estimates per fine labels, tensor of shape [N, C, S, S] + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_U`: has value 0 + * `loss_densepose_V`: has value 0 + * `loss_densepose_I`: has value 0 + * `loss_densepose_S`: has value 0 + """ + losses_uv = self.produce_fake_densepose_losses_uv(densepose_predictor_outputs) + losses_segm = self.produce_fake_densepose_losses_segm(densepose_predictor_outputs) + return {**losses_uv, **losses_segm} + + def produce_fake_densepose_losses_uv(self, densepose_predictor_outputs: Any) -> LossDict: + """ + Fake losses for U/V coordinates. These are used when no suitable ground + truth data was found in a batch. The loss has a value 0 + and is primarily used to construct the computation graph, so that + `DistributedDataParallel` has similar graphs on all GPUs and can perform + reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have the following attributes: + * u - U coordinate estimates per fine labels, tensor of shape [N, C, S, S] + * v - V coordinate estimates per fine labels, tensor of shape [N, C, S, S] + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_U`: has value 0 + * `loss_densepose_V`: has value 0 + """ + return { + "loss_densepose_U": densepose_predictor_outputs.u.sum() * 0, + "loss_densepose_V": densepose_predictor_outputs.v.sum() * 0, + } + + def produce_fake_densepose_losses_segm(self, densepose_predictor_outputs: Any) -> LossDict: + """ + Fake losses for fine / coarse segmentation. These are used when + no suitable ground truth data was found in a batch. The loss has a value 0 + and is primarily used to construct the computation graph, so that + `DistributedDataParallel` has similar graphs on all GPUs and can perform + reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have the following attributes: + * fine_segm - fine segmentation estimates, tensor of shape [N, C, S, S] + * coarse_segm - coarse segmentation estimates, tensor of shape [N, D, S, S] + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_I`: has value 0 + * `loss_densepose_S`: has value 0, added only if `segm_trained_by_masks` is False + """ + losses = { + "loss_densepose_I": densepose_predictor_outputs.fine_segm.sum() * 0, + "loss_densepose_S": self.segm_loss.fake_value(densepose_predictor_outputs), + } + return losses + + def produce_densepose_losses_uv( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: Any, + interpolator: BilinearInterpolationHelper, + j_valid_fg: torch.Tensor, + ) -> LossDict: + """ + Compute losses for U/V coordinates: smooth L1 loss between + estimated coordinates and the ground truth. + + Args: + proposals_with_gt (list of Instances): detections with associated ground truth data + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have the following attributes: + * u - U coordinate estimates per fine labels, tensor of shape [N, C, S, S] + * v - V coordinate estimates per fine labels, tensor of shape [N, C, S, S] + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_U`: smooth L1 loss for U coordinate estimates + * `loss_densepose_V`: smooth L1 loss for V coordinate estimates + """ + u_gt = packed_annotations.u_gt[j_valid_fg] + u_est = interpolator.extract_at_points(densepose_predictor_outputs.u)[j_valid_fg] + v_gt = packed_annotations.v_gt[j_valid_fg] + v_est = interpolator.extract_at_points(densepose_predictor_outputs.v)[j_valid_fg] + return { + "loss_densepose_U": F.smooth_l1_loss(u_est, u_gt, reduction="sum") * self.w_points, + "loss_densepose_V": F.smooth_l1_loss(v_est, v_gt, reduction="sum") * self.w_points, + } + + def produce_densepose_losses_segm( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: Any, + interpolator: BilinearInterpolationHelper, + j_valid_fg: torch.Tensor, + ) -> LossDict: + """ + Losses for fine / coarse segmentation: cross-entropy + for segmentation unnormalized scores given ground truth labels at + annotated points for fine segmentation and dense mask annotations + for coarse segmentation. + + Args: + proposals_with_gt (list of Instances): detections with associated ground truth data + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have the following attributes: + * fine_segm - fine segmentation estimates, tensor of shape [N, C, S, S] + * coarse_segm - coarse segmentation estimates, tensor of shape [N, D, S, S] + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_I`: cross entropy for raw unnormalized scores for fine + segmentation estimates given ground truth labels + * `loss_densepose_S`: cross entropy for raw unnormalized scores for coarse + segmentation estimates given ground truth labels; + may be included if coarse segmentation is only trained + using DensePose ground truth; if additional supervision through + instance segmentation data is performed (`segm_trained_by_masks` is True), + this loss is handled by `produce_mask_losses` instead + """ + fine_segm_gt = packed_annotations.fine_segm_labels_gt[ + interpolator.j_valid # pyre-ignore[16] + ] + fine_segm_est = interpolator.extract_at_points( + densepose_predictor_outputs.fine_segm, + slice_fine_segm=slice(None), + w_ylo_xlo=interpolator.w_ylo_xlo[:, None], # pyre-ignore[16] + w_ylo_xhi=interpolator.w_ylo_xhi[:, None], # pyre-ignore[16] + w_yhi_xlo=interpolator.w_yhi_xlo[:, None], # pyre-ignore[16] + w_yhi_xhi=interpolator.w_yhi_xhi[:, None], # pyre-ignore[16] + )[interpolator.j_valid, :] + return { + "loss_densepose_I": F.cross_entropy(fine_segm_est, fine_segm_gt.long()) * self.w_part, + "loss_densepose_S": self.segm_loss( + proposals_with_gt, densepose_predictor_outputs, packed_annotations + ) + * self.w_segm, + } diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/chart_with_confidences.py b/detectron2/projects/DensePose/densepose/modeling/losses/chart_with_confidences.py new file mode 100755 index 0000000..78ce7c6 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/chart_with_confidences.py @@ -0,0 +1,209 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import math +from typing import Any, List +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from .. import DensePoseConfidenceModelConfig, DensePoseUVConfidenceType +from .chart import DensePoseChartLoss +from .registry import DENSEPOSE_LOSS_REGISTRY +from .utils import BilinearInterpolationHelper, LossDict + + +@DENSEPOSE_LOSS_REGISTRY.register() +class DensePoseChartWithConfidenceLoss(DensePoseChartLoss): + """ """ + + def __init__(self, cfg: CfgNode): + super().__init__(cfg) + self.confidence_model_cfg = DensePoseConfidenceModelConfig.from_cfg(cfg) + if self.confidence_model_cfg.uv_confidence.type == DensePoseUVConfidenceType.IID_ISO: + self.uv_loss_with_confidences = IIDIsotropicGaussianUVLoss( + self.confidence_model_cfg.uv_confidence.epsilon + ) + elif self.confidence_model_cfg.uv_confidence.type == DensePoseUVConfidenceType.INDEP_ANISO: + self.uv_loss_with_confidences = IndepAnisotropicGaussianUVLoss( + self.confidence_model_cfg.uv_confidence.epsilon + ) + + def produce_fake_densepose_losses_uv(self, densepose_predictor_outputs: Any) -> LossDict: + """ + Overrides fake losses for fine segmentation and U/V coordinates to + include computation graphs for additional confidence parameters. + These are used when no suitable ground truth data was found in a batch. + The loss has a value 0 and is primarily used to construct the computation graph, + so that `DistributedDataParallel` has similar graphs on all GPUs and can + perform reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have the following attributes: + * fine_segm - fine segmentation estimates, tensor of shape [N, C, S, S] + * u - U coordinate estimates per fine labels, tensor of shape [N, C, S, S] + * v - V coordinate estimates per fine labels, tensor of shape [N, C, S, S] + Return: + dict: str -> tensor: dict of losses with the following entries: + * `loss_densepose_U`: has value 0 + * `loss_densepose_V`: has value 0 + * `loss_densepose_I`: has value 0 + """ + conf_type = self.confidence_model_cfg.uv_confidence.type + if self.confidence_model_cfg.uv_confidence.enabled: + loss_uv = ( + densepose_predictor_outputs.u.sum() + densepose_predictor_outputs.v.sum() + ) * 0 + if conf_type == DensePoseUVConfidenceType.IID_ISO: + loss_uv += densepose_predictor_outputs.sigma_2.sum() * 0 + elif conf_type == DensePoseUVConfidenceType.INDEP_ANISO: + loss_uv += ( + densepose_predictor_outputs.sigma_2.sum() + + densepose_predictor_outputs.kappa_u.sum() + + densepose_predictor_outputs.kappa_v.sum() + ) * 0 + return {"loss_densepose_UV": loss_uv} + else: + return super().produce_fake_densepose_losses_uv(densepose_predictor_outputs) + + def produce_densepose_losses_uv( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: Any, + interpolator: BilinearInterpolationHelper, + j_valid_fg: torch.Tensor, + ) -> LossDict: + conf_type = self.confidence_model_cfg.uv_confidence.type + if self.confidence_model_cfg.uv_confidence.enabled: + u_gt = packed_annotations.u_gt[j_valid_fg] + u_est = interpolator.extract_at_points(densepose_predictor_outputs.u)[j_valid_fg] + v_gt = packed_annotations.v_gt[j_valid_fg] + v_est = interpolator.extract_at_points(densepose_predictor_outputs.v)[j_valid_fg] + sigma_2_est = interpolator.extract_at_points(densepose_predictor_outputs.sigma_2)[ + j_valid_fg + ] + if conf_type == DensePoseUVConfidenceType.IID_ISO: + return { + "loss_densepose_UV": ( + self.uv_loss_with_confidences(u_est, v_est, sigma_2_est, u_gt, v_gt) + * self.w_points + ) + } + elif conf_type in [DensePoseUVConfidenceType.INDEP_ANISO]: + kappa_u_est = interpolator.extract_at_points(densepose_predictor_outputs.kappa_u)[ + j_valid_fg + ] + kappa_v_est = interpolator.extract_at_points(densepose_predictor_outputs.kappa_v)[ + j_valid_fg + ] + return { + "loss_densepose_UV": ( + self.uv_loss_with_confidences( + u_est, v_est, sigma_2_est, kappa_u_est, kappa_v_est, u_gt, v_gt + ) + * self.w_points + ) + } + return super().produce_densepose_losses_uv( + proposals_with_gt, + densepose_predictor_outputs, + packed_annotations, + interpolator, + j_valid_fg, + ) + + +class IIDIsotropicGaussianUVLoss(nn.Module): + """ + Loss for the case of iid residuals with isotropic covariance: + $Sigma_i = sigma_i^2 I$ + The loss (negative log likelihood) is then: + $1/2 sum_{i=1}^n (log(2 pi) + 2 log sigma_i^2 + ||delta_i||^2 / sigma_i^2)$, + where $delta_i=(u - u', v - v')$ is a 2D vector containing UV coordinates + difference between estimated and ground truth UV values + For details, see: + N. Neverova, D. Novotny, A. Vedaldi "Correlated Uncertainty for Learning + Dense Correspondences from Noisy Labels", p. 918--926, in Proc. NIPS 2019 + """ + + def __init__(self, sigma_lower_bound: float): + super(IIDIsotropicGaussianUVLoss, self).__init__() + self.sigma_lower_bound = sigma_lower_bound + self.log2pi = math.log(2 * math.pi) + + def forward( + self, + u: torch.Tensor, + v: torch.Tensor, + sigma_u: torch.Tensor, + target_u: torch.Tensor, + target_v: torch.Tensor, + ): + # compute $\sigma_i^2$ + # use sigma_lower_bound to avoid degenerate solution for variance + # (sigma -> 0) + sigma2 = F.softplus(sigma_u) + self.sigma_lower_bound + # compute \|delta_i\|^2 + # pyre-fixme[58]: `**` is not supported for operand types `Tensor` and `int`. + delta_t_delta = (u - target_u) ** 2 + (v - target_v) ** 2 + # the total loss from the formula above: + loss = 0.5 * (self.log2pi + 2 * torch.log(sigma2) + delta_t_delta / sigma2) + return loss.sum() + + +class IndepAnisotropicGaussianUVLoss(nn.Module): + """ + Loss for the case of independent residuals with anisotropic covariances: + $Sigma_i = sigma_i^2 I + r_i r_i^T$ + The loss (negative log likelihood) is then: + $1/2 sum_{i=1}^n (log(2 pi) + + log sigma_i^2 (sigma_i^2 + ||r_i||^2) + + ||delta_i||^2 / sigma_i^2 + - ^2 / (sigma_i^2 * (sigma_i^2 + ||r_i||^2)))$, + where $delta_i=(u - u', v - v')$ is a 2D vector containing UV coordinates + difference between estimated and ground truth UV values + For details, see: + N. Neverova, D. Novotny, A. Vedaldi "Correlated Uncertainty for Learning + Dense Correspondences from Noisy Labels", p. 918--926, in Proc. NIPS 2019 + """ + + def __init__(self, sigma_lower_bound: float): + super(IndepAnisotropicGaussianUVLoss, self).__init__() + self.sigma_lower_bound = sigma_lower_bound + self.log2pi = math.log(2 * math.pi) + + def forward( + self, + u: torch.Tensor, + v: torch.Tensor, + sigma_u: torch.Tensor, + kappa_u_est: torch.Tensor, + kappa_v_est: torch.Tensor, + target_u: torch.Tensor, + target_v: torch.Tensor, + ): + # compute $\sigma_i^2$ + sigma2 = F.softplus(sigma_u) + self.sigma_lower_bound + # compute \|r_i\|^2 + # pyre-fixme[58]: `**` is not supported for operand types `Tensor` and `int`. + r_sqnorm2 = kappa_u_est**2 + kappa_v_est**2 + delta_u = u - target_u + delta_v = v - target_v + # compute \|delta_i\|^2 + # pyre-fixme[58]: `**` is not supported for operand types `Tensor` and `int`. + delta_sqnorm = delta_u**2 + delta_v**2 + delta_u_r_u = delta_u * kappa_u_est + delta_v_r_v = delta_v * kappa_v_est + # compute the scalar product + delta_r = delta_u_r_u + delta_v_r_v + # compute squared scalar product ^2 + # pyre-fixme[58]: `**` is not supported for operand types `Tensor` and `int`. + delta_r_sqnorm = delta_r**2 + denom2 = sigma2 * (sigma2 + r_sqnorm2) + loss = 0.5 * ( + self.log2pi + torch.log(denom2) + delta_sqnorm / sigma2 - delta_r_sqnorm / denom2 + ) + return loss.sum() diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/cse.py b/detectron2/projects/DensePose/densepose/modeling/losses/cse.py new file mode 100755 index 0000000..dd561ad --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/cse.py @@ -0,0 +1,115 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from typing import Any, List +from torch import nn + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from .cycle_pix2shape import PixToShapeCycleLoss +from .cycle_shape2shape import ShapeToShapeCycleLoss +from .embed import EmbeddingLoss +from .embed_utils import CseAnnotationsAccumulator +from .mask_or_segm import MaskOrSegmentationLoss +from .registry import DENSEPOSE_LOSS_REGISTRY +from .soft_embed import SoftEmbeddingLoss +from .utils import BilinearInterpolationHelper, LossDict, extract_packed_annotations_from_matches + + +@DENSEPOSE_LOSS_REGISTRY.register() +class DensePoseCseLoss: + """ """ + + _EMBED_LOSS_REGISTRY = { + EmbeddingLoss.__name__: EmbeddingLoss, + SoftEmbeddingLoss.__name__: SoftEmbeddingLoss, + } + + def __init__(self, cfg: CfgNode): + """ + Initialize CSE loss from configuration options + + Args: + cfg (CfgNode): configuration options + """ + self.w_segm = cfg.MODEL.ROI_DENSEPOSE_HEAD.INDEX_WEIGHTS + self.w_embed = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_LOSS_WEIGHT + self.segm_loss = MaskOrSegmentationLoss(cfg) + self.embed_loss = DensePoseCseLoss.create_embed_loss(cfg) + self.do_shape2shape = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.ENABLED + if self.do_shape2shape: + self.w_shape2shape = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.WEIGHT + self.shape2shape_loss = ShapeToShapeCycleLoss(cfg) + self.do_pix2shape = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.ENABLED + if self.do_pix2shape: + self.w_pix2shape = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.WEIGHT + self.pix2shape_loss = PixToShapeCycleLoss(cfg) + + @classmethod + def create_embed_loss(cls, cfg: CfgNode): + # registry not used here, since embedding losses are currently local + # and are not used anywhere else + return cls._EMBED_LOSS_REGISTRY[cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_LOSS_NAME](cfg) + + def __call__( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + embedder: nn.Module, + ) -> LossDict: + if not len(proposals_with_gt): + return self.produce_fake_losses(densepose_predictor_outputs, embedder) + accumulator = CseAnnotationsAccumulator() + packed_annotations = extract_packed_annotations_from_matches(proposals_with_gt, accumulator) + if packed_annotations is None: + return self.produce_fake_losses(densepose_predictor_outputs, embedder) + h, w = densepose_predictor_outputs.embedding.shape[2:] + interpolator = BilinearInterpolationHelper.from_matches( + packed_annotations, + (h, w), + ) + meshid_to_embed_losses = self.embed_loss( + proposals_with_gt, + densepose_predictor_outputs, + packed_annotations, + interpolator, + embedder, + ) + embed_loss_dict = { + f"loss_densepose_E{meshid}": self.w_embed * meshid_to_embed_losses[meshid] + for meshid in meshid_to_embed_losses + } + all_loss_dict = { + "loss_densepose_S": self.w_segm + * self.segm_loss(proposals_with_gt, densepose_predictor_outputs, packed_annotations), + **embed_loss_dict, + } + if self.do_shape2shape: + all_loss_dict["loss_shape2shape"] = self.w_shape2shape * self.shape2shape_loss(embedder) + if self.do_pix2shape: + all_loss_dict["loss_pix2shape"] = self.w_pix2shape * self.pix2shape_loss( + proposals_with_gt, densepose_predictor_outputs, packed_annotations, embedder + ) + return all_loss_dict + + def produce_fake_losses( + self, densepose_predictor_outputs: Any, embedder: nn.Module + ) -> LossDict: + meshname_to_embed_losses = self.embed_loss.fake_values( + densepose_predictor_outputs, embedder=embedder + ) + embed_loss_dict = { + f"loss_densepose_E{mesh_name}": meshname_to_embed_losses[mesh_name] + for mesh_name in meshname_to_embed_losses + } + all_loss_dict = { + "loss_densepose_S": self.segm_loss.fake_value(densepose_predictor_outputs), + **embed_loss_dict, + } + if self.do_shape2shape: + all_loss_dict["loss_shape2shape"] = self.shape2shape_loss.fake_value(embedder) + if self.do_pix2shape: + all_loss_dict["loss_pix2shape"] = self.pix2shape_loss.fake_value( + densepose_predictor_outputs, embedder + ) + return all_loss_dict diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/cycle_pix2shape.py b/detectron2/projects/DensePose/densepose/modeling/losses/cycle_pix2shape.py new file mode 100755 index 0000000..e173918 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/cycle_pix2shape.py @@ -0,0 +1,154 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from typing import Any, List +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from densepose.data.meshes.catalog import MeshCatalog +from densepose.modeling.cse.utils import normalize_embeddings, squared_euclidean_distance_matrix + +from .embed_utils import PackedCseAnnotations +from .mask import extract_data_for_mask_loss_from_matches + + +def _create_pixel_dist_matrix(grid_size: int) -> torch.Tensor: + rows = torch.arange(grid_size) + cols = torch.arange(grid_size) + # at index `i` contains [row, col], where + # row = i // grid_size + # col = i % grid_size + pix_coords = ( + torch.stack(torch.meshgrid(rows, cols), -1).reshape((grid_size * grid_size, 2)).float() + ) + return squared_euclidean_distance_matrix(pix_coords, pix_coords) + + +def _sample_fg_pixels_randperm(fg_mask: torch.Tensor, sample_size: int) -> torch.Tensor: + fg_mask_flattened = fg_mask.reshape((-1,)) + num_pixels = int(fg_mask_flattened.sum().item()) + fg_pixel_indices = fg_mask_flattened.nonzero(as_tuple=True)[0] + if (sample_size <= 0) or (num_pixels <= sample_size): + return fg_pixel_indices + sample_indices = torch.randperm(num_pixels, device=fg_mask.device)[:sample_size] + return fg_pixel_indices[sample_indices] + + +def _sample_fg_pixels_multinomial(fg_mask: torch.Tensor, sample_size: int) -> torch.Tensor: + fg_mask_flattened = fg_mask.reshape((-1,)) + num_pixels = int(fg_mask_flattened.sum().item()) + if (sample_size <= 0) or (num_pixels <= sample_size): + return fg_mask_flattened.nonzero(as_tuple=True)[0] + return fg_mask_flattened.float().multinomial(sample_size, replacement=False) + + +class PixToShapeCycleLoss(nn.Module): + """ + Cycle loss for pixel-vertex correspondence + """ + + def __init__(self, cfg: CfgNode): + super().__init__() + self.shape_names = list(cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.keys()) + self.embed_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE + self.norm_p = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.NORM_P + self.use_all_meshes_not_gt_only = ( + cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.USE_ALL_MESHES_NOT_GT_ONLY + ) + self.num_pixels_to_sample = ( + cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.NUM_PIXELS_TO_SAMPLE + ) + self.pix_sigma = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.PIXEL_SIGMA + self.temperature_pix_to_vertex = ( + cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.TEMPERATURE_PIXEL_TO_VERTEX + ) + self.temperature_vertex_to_pix = ( + cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.PIX_TO_SHAPE_CYCLE_LOSS.TEMPERATURE_VERTEX_TO_PIXEL + ) + self.pixel_dists = _create_pixel_dist_matrix(cfg.MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE) + + def forward( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: PackedCseAnnotations, + embedder: nn.Module, + ): + """ + Args: + proposals_with_gt (list of Instances): detections with associated + ground truth data; each item corresponds to instances detected + on 1 image; the number of items corresponds to the number of + images in a batch + densepose_predictor_outputs: an object of a dataclass that contains predictor + outputs with estimated values; assumed to have the following attributes: + * embedding - embedding estimates, tensor of shape [N, D, S, S], where + N = number of instances (= sum N_i, where N_i is the number of + instances on image i) + D = embedding space dimensionality (MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE) + S = output size (width and height) + packed_annotations (PackedCseAnnotations): contains various data useful + for loss computation, each data is packed into a single tensor + embedder (nn.Module): module that computes vertex embeddings for different meshes + """ + pix_embeds = densepose_predictor_outputs.embedding + if self.pixel_dists.device != pix_embeds.device: + # should normally be done only once + self.pixel_dists = self.pixel_dists.to(device=pix_embeds.device) + with torch.no_grad(): + mask_loss_data = extract_data_for_mask_loss_from_matches( + proposals_with_gt, densepose_predictor_outputs.coarse_segm + ) + # GT masks - tensor of shape [N, S, S] of int64 + masks_gt = mask_loss_data.masks_gt.long() # pyre-ignore[16] + assert len(pix_embeds) == len(masks_gt), ( + f"Number of instances with embeddings {len(pix_embeds)} != " + f"number of instances with GT masks {len(masks_gt)}" + ) + losses = [] + mesh_names = ( + self.shape_names + if self.use_all_meshes_not_gt_only + else [ + MeshCatalog.get_mesh_name(mesh_id.item()) + for mesh_id in packed_annotations.vertex_mesh_ids_gt.unique() + ] + ) + for pixel_embeddings, mask_gt in zip(pix_embeds, masks_gt): + # pixel_embeddings [D, S, S] + # mask_gt [S, S] + for mesh_name in mesh_names: + mesh_vertex_embeddings = embedder(mesh_name) + # pixel indices [M] + pixel_indices_flattened = _sample_fg_pixels_randperm( + mask_gt, self.num_pixels_to_sample + ) + # pixel distances [M, M] + pixel_dists = self.pixel_dists.to(pixel_embeddings.device)[ + torch.meshgrid(pixel_indices_flattened, pixel_indices_flattened) + ] + # pixel embeddings [M, D] + pixel_embeddings_sampled = normalize_embeddings( + pixel_embeddings.reshape((self.embed_size, -1))[:, pixel_indices_flattened].T + ) + # pixel-vertex similarity [M, K] + sim_matrix = pixel_embeddings_sampled.mm(mesh_vertex_embeddings.T) + c_pix_vertex = F.softmax(sim_matrix / self.temperature_pix_to_vertex, dim=1) + c_vertex_pix = F.softmax(sim_matrix.T / self.temperature_vertex_to_pix, dim=1) + c_cycle = c_pix_vertex.mm(c_vertex_pix) + loss_cycle = torch.norm(pixel_dists * c_cycle, p=self.norm_p) + losses.append(loss_cycle) + + if len(losses) == 0: + return pix_embeds.sum() * 0 + return torch.stack(losses, dim=0).mean() + + def fake_value(self, densepose_predictor_outputs: Any, embedder: nn.Module): + losses = [ + embedder(mesh_name).sum() * 0 for mesh_name in embedder.mesh_names # pyre-ignore[29] + ] + losses.append(densepose_predictor_outputs.embedding.sum() * 0) + return torch.mean(torch.stack(losses)) diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/cycle_shape2shape.py b/detectron2/projects/DensePose/densepose/modeling/losses/cycle_shape2shape.py new file mode 100755 index 0000000..2447e8f --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/cycle_shape2shape.py @@ -0,0 +1,117 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import random +from typing import Tuple +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode + +from densepose.structures.mesh import create_mesh + +from .utils import sample_random_indices + + +class ShapeToShapeCycleLoss(nn.Module): + """ + Cycle Loss for Shapes. + Inspired by: + "Mapping in a Cycle: Sinkhorn Regularized Unsupervised Learning for Point Cloud Shapes". + """ + + def __init__(self, cfg: CfgNode): + super().__init__() + self.shape_names = list(cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDERS.keys()) + self.all_shape_pairs = [ + (x, y) for i, x in enumerate(self.shape_names) for y in self.shape_names[i + 1 :] + ] + random.shuffle(self.all_shape_pairs) + self.cur_pos = 0 + self.norm_p = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.NORM_P + self.temperature = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.TEMPERATURE + self.max_num_vertices = ( + cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.SHAPE_TO_SHAPE_CYCLE_LOSS.MAX_NUM_VERTICES + ) + + def _sample_random_pair(self) -> Tuple[str, str]: + """ + Produce a random pair of different mesh names + + Return: + tuple(str, str): a pair of different mesh names + """ + if self.cur_pos >= len(self.all_shape_pairs): + random.shuffle(self.all_shape_pairs) + self.cur_pos = 0 + shape_pair = self.all_shape_pairs[self.cur_pos] + self.cur_pos += 1 + return shape_pair + + def forward(self, embedder: nn.Module): + """ + Do a forward pass with a random pair (src, dst) pair of shapes + Args: + embedder (nn.Module): module that computes vertex embeddings for different meshes + """ + src_mesh_name, dst_mesh_name = self._sample_random_pair() + return self._forward_one_pair(embedder, src_mesh_name, dst_mesh_name) + + def fake_value(self, embedder: nn.Module): + losses = [] + for mesh_name in embedder.mesh_names: # pyre-ignore[29] + losses.append(embedder(mesh_name).sum() * 0) + return torch.mean(torch.stack(losses)) + + def _get_embeddings_and_geodists_for_mesh( + self, embedder: nn.Module, mesh_name: str + ) -> Tuple[torch.Tensor, torch.Tensor]: + """ + Produces embeddings and geodesic distance tensors for a given mesh. May subsample + the mesh, if it contains too many vertices (controlled by + SHAPE_CYCLE_LOSS_MAX_NUM_VERTICES parameter). + Args: + embedder (nn.Module): module that computes embeddings for mesh vertices + mesh_name (str): mesh name + Return: + embeddings (torch.Tensor of size [N, D]): embeddings for selected mesh + vertices (N = number of selected vertices, D = embedding space dim) + geodists (torch.Tensor of size [N, N]): geodesic distances for the selected + mesh vertices (N = number of selected vertices) + """ + embeddings = embedder(mesh_name) + indices = sample_random_indices( + embeddings.shape[0], self.max_num_vertices, embeddings.device + ) + mesh = create_mesh(mesh_name, embeddings.device) + geodists = mesh.geodists + if indices is not None: + embeddings = embeddings[indices] + geodists = geodists[torch.meshgrid(indices, indices)] + return embeddings, geodists + + def _forward_one_pair( + self, embedder: nn.Module, mesh_name_1: str, mesh_name_2: str + ) -> torch.Tensor: + """ + Do a forward pass with a selected pair of meshes + Args: + embedder (nn.Module): module that computes vertex embeddings for different meshes + mesh_name_1 (str): first mesh name + mesh_name_2 (str): second mesh name + Return: + Tensor containing the loss value + """ + embeddings_1, geodists_1 = self._get_embeddings_and_geodists_for_mesh(embedder, mesh_name_1) + embeddings_2, geodists_2 = self._get_embeddings_and_geodists_for_mesh(embedder, mesh_name_2) + sim_matrix_12 = embeddings_1.mm(embeddings_2.T) + + c_12 = F.softmax(sim_matrix_12 / self.temperature, dim=1) + c_21 = F.softmax(sim_matrix_12.T / self.temperature, dim=1) + c_11 = c_12.mm(c_21) + c_22 = c_21.mm(c_12) + + loss_cycle_11 = torch.norm(geodists_1 * c_11, p=self.norm_p) + loss_cycle_22 = torch.norm(geodists_2 * c_22, p=self.norm_p) + + return loss_cycle_11 + loss_cycle_22 diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/embed.py b/detectron2/projects/DensePose/densepose/modeling/losses/embed.py new file mode 100755 index 0000000..163eebe --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/embed.py @@ -0,0 +1,127 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from typing import Any, Dict, List +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from densepose.data.meshes.catalog import MeshCatalog +from densepose.modeling.cse.utils import normalize_embeddings, squared_euclidean_distance_matrix + +from .embed_utils import PackedCseAnnotations +from .utils import BilinearInterpolationHelper + + +class EmbeddingLoss: + """ + Computes losses for estimated embeddings given annotated vertices. + Instances in a minibatch that correspond to the same mesh are grouped + together. For each group, loss is computed as cross-entropy for + unnormalized scores given ground truth mesh vertex ids. + Scores are based on squared distances between estimated vertex embeddings + and mesh vertex embeddings. + """ + + def __init__(self, cfg: CfgNode): + """ + Initialize embedding loss from config + """ + self.embdist_gauss_sigma = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDING_DIST_GAUSS_SIGMA + + def __call__( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: PackedCseAnnotations, + interpolator: BilinearInterpolationHelper, + embedder: nn.Module, + ) -> Dict[int, torch.Tensor]: + """ + Produces losses for estimated embeddings given annotated vertices. + Embeddings for all the vertices of a mesh are computed by the embedder. + Embeddings for observed pixels are estimated by a predictor. + Losses are computed as cross-entropy for squared distances between + observed vertex embeddings and all mesh vertex embeddings given + ground truth vertex IDs. + + Args: + proposals_with_gt (list of Instances): detections with associated + ground truth data; each item corresponds to instances detected + on 1 image; the number of items corresponds to the number of + images in a batch + densepose_predictor_outputs: an object of a dataclass that contains predictor + outputs with estimated values; assumed to have the following attributes: + * embedding - embedding estimates, tensor of shape [N, D, S, S], where + N = number of instances (= sum N_i, where N_i is the number of + instances on image i) + D = embedding space dimensionality (MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE) + S = output size (width and height) + packed_annotations (PackedCseAnnotations): contains various data useful + for loss computation, each data is packed into a single tensor + interpolator (BilinearInterpolationHelper): bilinear interpolation helper + embedder (nn.Module): module that computes vertex embeddings for different meshes + Return: + dict(int -> tensor): losses for different mesh IDs + """ + losses = {} + for mesh_id_tensor in packed_annotations.vertex_mesh_ids_gt.unique(): + mesh_id = mesh_id_tensor.item() + mesh_name = MeshCatalog.get_mesh_name(mesh_id) + # valid points are those that fall into estimated bbox + # and correspond to the current mesh + j_valid = interpolator.j_valid * ( # pyre-ignore[16] + packed_annotations.vertex_mesh_ids_gt == mesh_id + ) + if not torch.any(j_valid): + continue + # extract estimated embeddings for valid points + # -> tensor [J, D] + vertex_embeddings_i = normalize_embeddings( + interpolator.extract_at_points( + densepose_predictor_outputs.embedding, + slice_fine_segm=slice(None), + w_ylo_xlo=interpolator.w_ylo_xlo[:, None], # pyre-ignore[16] + w_ylo_xhi=interpolator.w_ylo_xhi[:, None], # pyre-ignore[16] + w_yhi_xlo=interpolator.w_yhi_xlo[:, None], # pyre-ignore[16] + w_yhi_xhi=interpolator.w_yhi_xhi[:, None], # pyre-ignore[16] + )[j_valid, :] + ) + # extract vertex ids for valid points + # -> tensor [J] + vertex_indices_i = packed_annotations.vertex_ids_gt[j_valid] + # embeddings for all mesh vertices + # -> tensor [K, D] + mesh_vertex_embeddings = embedder(mesh_name) + # unnormalized scores for valid points + # -> tensor [J, K] + scores = squared_euclidean_distance_matrix( + vertex_embeddings_i, mesh_vertex_embeddings + ) / (-self.embdist_gauss_sigma) + losses[mesh_name] = F.cross_entropy(scores, vertex_indices_i, ignore_index=-1) + + # pyre-fixme[29]: + # `Union[BoundMethod[typing.Callable(torch.Tensor.__iter__)[[Named(self, + # torch.Tensor)], typing.Iterator[typing.Any]], torch.Tensor], nn.Module, + # torch.Tensor]` is not a function. + for mesh_name in embedder.mesh_names: + if mesh_name not in losses: + losses[mesh_name] = self.fake_value( + densepose_predictor_outputs, embedder, mesh_name + ) + return losses + + def fake_values(self, densepose_predictor_outputs: Any, embedder: nn.Module): + losses = {} + # pyre-fixme[29]: + # `Union[BoundMethod[typing.Callable(torch.Tensor.__iter__)[[Named(self, + # torch.Tensor)], typing.Iterator[typing.Any]], torch.Tensor], nn.Module, + # torch.Tensor]` is not a function. + for mesh_name in embedder.mesh_names: + losses[mesh_name] = self.fake_value(densepose_predictor_outputs, embedder, mesh_name) + return losses + + def fake_value(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str): + return densepose_predictor_outputs.embedding.sum() * 0 + embedder(mesh_name).sum() * 0 diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/embed_utils.py b/detectron2/projects/DensePose/densepose/modeling/losses/embed_utils.py new file mode 100755 index 0000000..eb9492f --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/embed_utils.py @@ -0,0 +1,135 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from dataclasses import dataclass +from typing import Any, Optional +import torch + +from detectron2.structures import BoxMode, Instances + +from .utils import AnnotationsAccumulator + + +@dataclass +class PackedCseAnnotations: + x_gt: torch.Tensor + y_gt: torch.Tensor + coarse_segm_gt: Optional[torch.Tensor] + vertex_mesh_ids_gt: torch.Tensor + vertex_ids_gt: torch.Tensor + bbox_xywh_gt: torch.Tensor + bbox_xywh_est: torch.Tensor + point_bbox_with_dp_indices: torch.Tensor + point_bbox_indices: torch.Tensor + bbox_indices: torch.Tensor + + +class CseAnnotationsAccumulator(AnnotationsAccumulator): + """ + Accumulates annotations by batches that correspond to objects detected on + individual images. Can pack them together into single tensors. + """ + + def __init__(self): + self.x_gt = [] + self.y_gt = [] + self.s_gt = [] + self.vertex_mesh_ids_gt = [] + self.vertex_ids_gt = [] + self.bbox_xywh_gt = [] + self.bbox_xywh_est = [] + self.point_bbox_with_dp_indices = [] + self.point_bbox_indices = [] + self.bbox_indices = [] + self.nxt_bbox_with_dp_index = 0 + self.nxt_bbox_index = 0 + + def accumulate(self, instances_one_image: Instances): + """ + Accumulate instances data for one image + + Args: + instances_one_image (Instances): instances data to accumulate + """ + boxes_xywh_est = BoxMode.convert( + instances_one_image.proposal_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + boxes_xywh_gt = BoxMode.convert( + instances_one_image.gt_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + n_matches = len(boxes_xywh_gt) + assert n_matches == len( + boxes_xywh_est + ), f"Got {len(boxes_xywh_est)} proposal boxes and {len(boxes_xywh_gt)} GT boxes" + if not n_matches: + # no detection - GT matches + return + if ( + not hasattr(instances_one_image, "gt_densepose") + or instances_one_image.gt_densepose is None + ): + # no densepose GT for the detections, just increase the bbox index + self.nxt_bbox_index += n_matches + return + for box_xywh_est, box_xywh_gt, dp_gt in zip( + boxes_xywh_est, boxes_xywh_gt, instances_one_image.gt_densepose + ): + if (dp_gt is not None) and (len(dp_gt.x) > 0): + self._do_accumulate(box_xywh_gt, box_xywh_est, dp_gt) + self.nxt_bbox_index += 1 + + def _do_accumulate(self, box_xywh_gt: torch.Tensor, box_xywh_est: torch.Tensor, dp_gt: Any): + """ + Accumulate instances data for one image, given that the data is not empty + + Args: + box_xywh_gt (tensor): GT bounding box + box_xywh_est (tensor): estimated bounding box + dp_gt: GT densepose data with the following attributes: + - x: normalized X coordinates + - y: normalized Y coordinates + - segm: tensor of size [S, S] with coarse segmentation + - + """ + self.x_gt.append(dp_gt.x) + self.y_gt.append(dp_gt.y) + if hasattr(dp_gt, "segm"): + self.s_gt.append(dp_gt.segm.unsqueeze(0)) + self.vertex_ids_gt.append(dp_gt.vertex_ids) + self.vertex_mesh_ids_gt.append(torch.full_like(dp_gt.vertex_ids, dp_gt.mesh_id)) + self.bbox_xywh_gt.append(box_xywh_gt.view(-1, 4)) + self.bbox_xywh_est.append(box_xywh_est.view(-1, 4)) + self.point_bbox_with_dp_indices.append( + torch.full_like(dp_gt.vertex_ids, self.nxt_bbox_with_dp_index) + ) + self.point_bbox_indices.append(torch.full_like(dp_gt.vertex_ids, self.nxt_bbox_index)) + self.bbox_indices.append(self.nxt_bbox_index) + self.nxt_bbox_with_dp_index += 1 + + def pack(self) -> Optional[PackedCseAnnotations]: + """ + Pack data into tensors + """ + if not len(self.x_gt): + # TODO: + # returning proper empty annotations would require + # creating empty tensors of appropriate shape and + # type on an appropriate device; + # we return None so far to indicate empty annotations + return None + return PackedCseAnnotations( + x_gt=torch.cat(self.x_gt, 0), + y_gt=torch.cat(self.y_gt, 0), + vertex_mesh_ids_gt=torch.cat(self.vertex_mesh_ids_gt, 0), + vertex_ids_gt=torch.cat(self.vertex_ids_gt, 0), + # ignore segmentation annotations, if not all the instances contain those + coarse_segm_gt=torch.cat(self.s_gt, 0) + if len(self.s_gt) == len(self.bbox_xywh_gt) + else None, + bbox_xywh_gt=torch.cat(self.bbox_xywh_gt, 0), + bbox_xywh_est=torch.cat(self.bbox_xywh_est, 0), + point_bbox_with_dp_indices=torch.cat(self.point_bbox_with_dp_indices, 0), + point_bbox_indices=torch.cat(self.point_bbox_indices, 0), + bbox_indices=torch.as_tensor( + self.bbox_indices, dtype=torch.long, device=self.x_gt[0].device + ), + ) diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/mask.py b/detectron2/projects/DensePose/densepose/modeling/losses/mask.py new file mode 100755 index 0000000..c16b15c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/mask.py @@ -0,0 +1,125 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from dataclasses import dataclass +from typing import Any, Iterable, List, Optional +import torch +from torch.nn import functional as F + +from detectron2.structures import Instances + + +@dataclass +class DataForMaskLoss: + """ + Contains mask GT and estimated data for proposals from multiple images: + """ + + # tensor of size (K, H, W) containing GT labels + masks_gt: Optional[torch.Tensor] = None + # tensor of size (K, C, H, W) containing estimated scores + masks_est: Optional[torch.Tensor] = None + + +def extract_data_for_mask_loss_from_matches( + proposals_targets: Iterable[Instances], estimated_segm: torch.Tensor +) -> DataForMaskLoss: + """ + Extract data for mask loss from instances that contain matched GT and + estimated bounding boxes. + Args: + proposals_targets: Iterable[Instances] + matched GT and estimated results, each item in the iterable + corresponds to data in 1 image + estimated_segm: tensor(K, C, S, S) of float - raw unnormalized + segmentation scores, here S is the size to which GT masks are + to be resized + Return: + masks_est: tensor(K, C, S, S) of float - class scores + masks_gt: tensor(K, S, S) of int64 - labels + """ + data = DataForMaskLoss() + masks_gt = [] + offset = 0 + assert estimated_segm.shape[2] == estimated_segm.shape[3], ( + f"Expected estimated segmentation to have a square shape, " + f"but the actual shape is {estimated_segm.shape[2:]}" + ) + mask_size = estimated_segm.shape[2] + num_proposals = sum(inst.proposal_boxes.tensor.size(0) for inst in proposals_targets) + num_estimated = estimated_segm.shape[0] + assert ( + num_proposals == num_estimated + ), "The number of proposals {} must be equal to the number of estimates {}".format( + num_proposals, num_estimated + ) + + for proposals_targets_per_image in proposals_targets: + n_i = proposals_targets_per_image.proposal_boxes.tensor.size(0) + if not n_i: + continue + gt_masks_per_image = proposals_targets_per_image.gt_masks.crop_and_resize( + proposals_targets_per_image.proposal_boxes.tensor, mask_size + ).to(device=estimated_segm.device) + masks_gt.append(gt_masks_per_image) + offset += n_i + if masks_gt: + data.masks_est = estimated_segm + data.masks_gt = torch.cat(masks_gt, dim=0) + return data + + +class MaskLoss: + """ + Mask loss as cross-entropy for raw unnormalized scores given ground truth labels. + Mask ground truth labels are defined for the whole image and not only the + bounding box of interest. They are stored as objects that are assumed to implement + the `crop_and_resize` interface (e.g. BitMasks, PolygonMasks). + """ + + def __call__( + self, proposals_with_gt: List[Instances], densepose_predictor_outputs: Any + ) -> torch.Tensor: + """ + Computes segmentation loss as cross-entropy for raw unnormalized + scores given ground truth labels. + + Args: + proposals_with_gt (list of Instances): detections with associated ground truth data + densepose_predictor_outputs: an object of a dataclass that contains predictor outputs + with estimated values; assumed to have the following attribute: + * coarse_segm (tensor of shape [N, D, S, S]): coarse segmentation estimates + as raw unnormalized scores + where N is the number of detections, S is the estimate size ( = width = height) + and D is the number of coarse segmentation channels. + Return: + Cross entropy for raw unnormalized scores for coarse segmentation given + ground truth labels from masks + """ + if not len(proposals_with_gt): + return self.fake_value(densepose_predictor_outputs) + # densepose outputs are computed for all images and all bounding boxes; + # i.e. if a batch has 4 images with (3, 1, 2, 1) proposals respectively, + # the outputs will have size(0) == 3+1+2+1 == 7 + with torch.no_grad(): + mask_loss_data = extract_data_for_mask_loss_from_matches( + proposals_with_gt, densepose_predictor_outputs.coarse_segm + ) + if (mask_loss_data.masks_gt is None) or (mask_loss_data.masks_est is None): + return self.fake_value(densepose_predictor_outputs) + return F.cross_entropy(mask_loss_data.masks_est, mask_loss_data.masks_gt.long()) + + def fake_value(self, densepose_predictor_outputs: Any) -> torch.Tensor: + """ + Fake segmentation loss used when no suitable ground truth data + was found in a batch. The loss has a value 0 and is primarily used to + construct the computation graph, so that `DistributedDataParallel` + has similar graphs on all GPUs and can perform reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have `coarse_segm` + attribute + Return: + Zero value loss with proper computation graph + """ + return densepose_predictor_outputs.coarse_segm.sum() * 0 diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/mask_or_segm.py b/detectron2/projects/DensePose/densepose/modeling/losses/mask_or_segm.py new file mode 100755 index 0000000..98b773d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/mask_or_segm.py @@ -0,0 +1,72 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from typing import Any, List +import torch + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from .mask import MaskLoss +from .segm import SegmentationLoss + + +class MaskOrSegmentationLoss: + """ + Mask or segmentation loss as cross-entropy for raw unnormalized scores + given ground truth labels. Ground truth labels are either defined by coarse + segmentation annotation, or by mask annotation, depending on the config + value MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS + """ + + def __init__(self, cfg: CfgNode): + """ + Initialize segmentation loss from configuration options + + Args: + cfg (CfgNode): configuration options + """ + self.segm_trained_by_masks = cfg.MODEL.ROI_DENSEPOSE_HEAD.COARSE_SEGM_TRAINED_BY_MASKS + if self.segm_trained_by_masks: + self.mask_loss = MaskLoss() + self.segm_loss = SegmentationLoss(cfg) + + def __call__( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: Any, + ) -> torch.Tensor: + """ + Compute segmentation loss as cross-entropy between aligned unnormalized + score estimates and ground truth; with ground truth given + either by masks, or by coarse segmentation annotations. + + Args: + proposals_with_gt (list of Instances): detections with associated ground truth data + densepose_predictor_outputs: an object of a dataclass that contains predictor outputs + with estimated values; assumed to have the following attributes: + * coarse_segm - coarse segmentation estimates, tensor of shape [N, D, S, S] + packed_annotations: packed annotations for efficient loss computation + Return: + tensor: loss value as cross-entropy for raw unnormalized scores + given ground truth labels + """ + if self.segm_trained_by_masks: + return self.mask_loss(proposals_with_gt, densepose_predictor_outputs) + return self.segm_loss(proposals_with_gt, densepose_predictor_outputs, packed_annotations) + + def fake_value(self, densepose_predictor_outputs: Any) -> torch.Tensor: + """ + Fake segmentation loss used when no suitable ground truth data + was found in a batch. The loss has a value 0 and is primarily used to + construct the computation graph, so that `DistributedDataParallel` + has similar graphs on all GPUs and can perform reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have `coarse_segm` + attribute + Return: + Zero value loss with proper computation graph + """ + return densepose_predictor_outputs.coarse_segm.sum() * 0 diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/registry.py b/detectron2/projects/DensePose/densepose/modeling/losses/registry.py new file mode 100755 index 0000000..d9c8817 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/registry.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.utils.registry import Registry + +DENSEPOSE_LOSS_REGISTRY = Registry("DENSEPOSE_LOSS") diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/segm.py b/detectron2/projects/DensePose/densepose/modeling/losses/segm.py new file mode 100755 index 0000000..1962b88 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/segm.py @@ -0,0 +1,83 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from typing import Any, List +import torch +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from .utils import resample_data + + +class SegmentationLoss: + """ + Segmentation loss as cross-entropy for raw unnormalized scores given ground truth + labels. Segmentation ground truth labels are defined for the bounding box of + interest at some fixed resolution [S, S], where + S = MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE. + """ + + def __init__(self, cfg: CfgNode): + """ + Initialize segmentation loss from configuration options + + Args: + cfg (CfgNode): configuration options + """ + self.heatmap_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.HEATMAP_SIZE + self.n_segm_chan = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS + + def __call__( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: Any, + ) -> torch.Tensor: + """ + Compute segmentation loss as cross-entropy on aligned segmentation + ground truth and estimated scores. + + Args: + proposals_with_gt (list of Instances): detections with associated ground truth data + densepose_predictor_outputs: an object of a dataclass that contains predictor outputs + with estimated values; assumed to have the following attributes: + * coarse_segm - coarse segmentation estimates, tensor of shape [N, D, S, S] + packed_annotations: packed annotations for efficient loss computation; + the following attributes are used: + - coarse_segm_gt + - bbox_xywh_gt + - bbox_xywh_est + """ + if packed_annotations.coarse_segm_gt is None: + return self.fake_value(densepose_predictor_outputs) + coarse_segm_est = densepose_predictor_outputs.coarse_segm[packed_annotations.bbox_indices] + with torch.no_grad(): + coarse_segm_gt = resample_data( + packed_annotations.coarse_segm_gt.unsqueeze(1), + packed_annotations.bbox_xywh_gt, + packed_annotations.bbox_xywh_est, + self.heatmap_size, + self.heatmap_size, + mode="nearest", + padding_mode="zeros", + ).squeeze(1) + if self.n_segm_chan == 2: + coarse_segm_gt = coarse_segm_gt > 0 + return F.cross_entropy(coarse_segm_est, coarse_segm_gt.long()) + + def fake_value(self, densepose_predictor_outputs: Any) -> torch.Tensor: + """ + Fake segmentation loss used when no suitable ground truth data + was found in a batch. The loss has a value 0 and is primarily used to + construct the computation graph, so that `DistributedDataParallel` + has similar graphs on all GPUs and can perform reduction properly. + + Args: + densepose_predictor_outputs: DensePose predictor outputs, an object + of a dataclass that is assumed to have `coarse_segm` + attribute + Return: + Zero value loss with proper computation graph + """ + return densepose_predictor_outputs.coarse_segm.sum() * 0 diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/soft_embed.py b/detectron2/projects/DensePose/densepose/modeling/losses/soft_embed.py new file mode 100755 index 0000000..176d929 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/soft_embed.py @@ -0,0 +1,141 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from typing import Any, Dict, List +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.structures import Instances + +from densepose.data.meshes.catalog import MeshCatalog +from densepose.modeling.cse.utils import normalize_embeddings, squared_euclidean_distance_matrix +from densepose.structures.mesh import create_mesh + +from .embed_utils import PackedCseAnnotations +from .utils import BilinearInterpolationHelper + + +class SoftEmbeddingLoss: + """ + Computes losses for estimated embeddings given annotated vertices. + Instances in a minibatch that correspond to the same mesh are grouped + together. For each group, loss is computed as cross-entropy for + unnormalized scores given ground truth mesh vertex ids. + Scores are based on: + 1) squared distances between estimated vertex embeddings + and mesh vertex embeddings; + 2) geodesic distances between vertices of a mesh + """ + + def __init__(self, cfg: CfgNode): + """ + Initialize embedding loss from config + """ + self.embdist_gauss_sigma = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBEDDING_DIST_GAUSS_SIGMA + self.geodist_gauss_sigma = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.GEODESIC_DIST_GAUSS_SIGMA + + def __call__( + self, + proposals_with_gt: List[Instances], + densepose_predictor_outputs: Any, + packed_annotations: PackedCseAnnotations, + interpolator: BilinearInterpolationHelper, + embedder: nn.Module, + ) -> Dict[int, torch.Tensor]: + """ + Produces losses for estimated embeddings given annotated vertices. + Embeddings for all the vertices of a mesh are computed by the embedder. + Embeddings for observed pixels are estimated by a predictor. + Losses are computed as cross-entropy for unnormalized scores given + ground truth vertex IDs. + 1) squared distances between estimated vertex embeddings + and mesh vertex embeddings; + 2) geodesic distances between vertices of a mesh + + Args: + proposals_with_gt (list of Instances): detections with associated + ground truth data; each item corresponds to instances detected + on 1 image; the number of items corresponds to the number of + images in a batch + densepose_predictor_outputs: an object of a dataclass that contains predictor + outputs with estimated values; assumed to have the following attributes: + * embedding - embedding estimates, tensor of shape [N, D, S, S], where + N = number of instances (= sum N_i, where N_i is the number of + instances on image i) + D = embedding space dimensionality (MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE) + S = output size (width and height) + packed_annotations (PackedCseAnnotations): contains various data useful + for loss computation, each data is packed into a single tensor + interpolator (BilinearInterpolationHelper): bilinear interpolation helper + embedder (nn.Module): module that computes vertex embeddings for different meshes + Return: + dict(int -> tensor): losses for different mesh IDs + """ + losses = {} + for mesh_id_tensor in packed_annotations.vertex_mesh_ids_gt.unique(): + mesh_id = mesh_id_tensor.item() + mesh_name = MeshCatalog.get_mesh_name(mesh_id) + # valid points are those that fall into estimated bbox + # and correspond to the current mesh + j_valid = interpolator.j_valid * ( # pyre-ignore[16] + packed_annotations.vertex_mesh_ids_gt == mesh_id + ) + if not torch.any(j_valid): + continue + # extract estimated embeddings for valid points + # -> tensor [J, D] + vertex_embeddings_i = normalize_embeddings( + interpolator.extract_at_points( + densepose_predictor_outputs.embedding, + slice_fine_segm=slice(None), + w_ylo_xlo=interpolator.w_ylo_xlo[:, None], # pyre-ignore[16] + w_ylo_xhi=interpolator.w_ylo_xhi[:, None], # pyre-ignore[16] + w_yhi_xlo=interpolator.w_yhi_xlo[:, None], # pyre-ignore[16] + w_yhi_xhi=interpolator.w_yhi_xhi[:, None], # pyre-ignore[16] + )[j_valid, :] + ) + # extract vertex ids for valid points + # -> tensor [J] + vertex_indices_i = packed_annotations.vertex_ids_gt[j_valid] + # embeddings for all mesh vertices + # -> tensor [K, D] + mesh_vertex_embeddings = embedder(mesh_name) + # softmax values of geodesic distances for GT mesh vertices + # -> tensor [J, K] + mesh = create_mesh(mesh_name, mesh_vertex_embeddings.device) + geodist_softmax_values = F.softmax( + mesh.geodists[vertex_indices_i] / (-self.geodist_gauss_sigma), dim=1 + ) + # logsoftmax values for valid points + # -> tensor [J, K] + embdist_logsoftmax_values = F.log_softmax( + squared_euclidean_distance_matrix(vertex_embeddings_i, mesh_vertex_embeddings) + / (-self.embdist_gauss_sigma), + dim=1, + ) + losses[mesh_name] = (-geodist_softmax_values * embdist_logsoftmax_values).sum(1).mean() + + # pyre-fixme[29]: + # `Union[BoundMethod[typing.Callable(torch.Tensor.__iter__)[[Named(self, + # torch.Tensor)], typing.Iterator[typing.Any]], torch.Tensor], nn.Module, + # torch.Tensor]` is not a function. + for mesh_name in embedder.mesh_names: + if mesh_name not in losses: + losses[mesh_name] = self.fake_value( + densepose_predictor_outputs, embedder, mesh_name + ) + return losses + + def fake_values(self, densepose_predictor_outputs: Any, embedder: nn.Module): + losses = {} + # pyre-fixme[29]: + # `Union[BoundMethod[typing.Callable(torch.Tensor.__iter__)[[Named(self, + # torch.Tensor)], typing.Iterator[typing.Any]], torch.Tensor], nn.Module, + # torch.Tensor]` is not a function. + for mesh_name in embedder.mesh_names: + losses[mesh_name] = self.fake_value(densepose_predictor_outputs, embedder, mesh_name) + return losses + + def fake_value(self, densepose_predictor_outputs: Any, embedder: nn.Module, mesh_name: str): + return densepose_predictor_outputs.embedding.sum() * 0 + embedder(mesh_name).sum() * 0 diff --git a/detectron2/projects/DensePose/densepose/modeling/losses/utils.py b/detectron2/projects/DensePose/densepose/modeling/losses/utils.py new file mode 100755 index 0000000..4c172ae --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/losses/utils.py @@ -0,0 +1,441 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from abc import ABC, abstractmethod +from dataclasses import dataclass +from typing import Any, Dict, List, Optional, Tuple +import torch +from torch.nn import functional as F + +from detectron2.structures import BoxMode, Instances + +from densepose import DensePoseDataRelative + +LossDict = Dict[str, torch.Tensor] + + +def _linear_interpolation_utilities(v_norm, v0_src, size_src, v0_dst, size_dst, size_z): + """ + Computes utility values for linear interpolation at points v. + The points are given as normalized offsets in the source interval + (v0_src, v0_src + size_src), more precisely: + v = v0_src + v_norm * size_src / 256.0 + The computed utilities include lower points v_lo, upper points v_hi, + interpolation weights v_w and flags j_valid indicating whether the + points falls into the destination interval (v0_dst, v0_dst + size_dst). + + Args: + v_norm (:obj: `torch.Tensor`): tensor of size N containing + normalized point offsets + v0_src (:obj: `torch.Tensor`): tensor of size N containing + left bounds of source intervals for normalized points + size_src (:obj: `torch.Tensor`): tensor of size N containing + source interval sizes for normalized points + v0_dst (:obj: `torch.Tensor`): tensor of size N containing + left bounds of destination intervals + size_dst (:obj: `torch.Tensor`): tensor of size N containing + destination interval sizes + size_z (int): interval size for data to be interpolated + + Returns: + v_lo (:obj: `torch.Tensor`): int tensor of size N containing + indices of lower values used for interpolation, all values are + integers from [0, size_z - 1] + v_hi (:obj: `torch.Tensor`): int tensor of size N containing + indices of upper values used for interpolation, all values are + integers from [0, size_z - 1] + v_w (:obj: `torch.Tensor`): float tensor of size N containing + interpolation weights + j_valid (:obj: `torch.Tensor`): uint8 tensor of size N containing + 0 for points outside the estimation interval + (v0_est, v0_est + size_est) and 1 otherwise + """ + v = v0_src + v_norm * size_src / 256.0 + j_valid = (v - v0_dst >= 0) * (v - v0_dst < size_dst) + v_grid = (v - v0_dst) * size_z / size_dst + v_lo = v_grid.floor().long().clamp(min=0, max=size_z - 1) + v_hi = (v_lo + 1).clamp(max=size_z - 1) + v_grid = torch.min(v_hi.float(), v_grid) + v_w = v_grid - v_lo.float() + return v_lo, v_hi, v_w, j_valid + + +class BilinearInterpolationHelper: + """ + Args: + packed_annotations: object that contains packed annotations + j_valid (:obj: `torch.Tensor`): uint8 tensor of size M containing + 0 for points to be discarded and 1 for points to be selected + y_lo (:obj: `torch.Tensor`): int tensor of indices of upper values + in z_est for each point + y_hi (:obj: `torch.Tensor`): int tensor of indices of lower values + in z_est for each point + x_lo (:obj: `torch.Tensor`): int tensor of indices of left values + in z_est for each point + x_hi (:obj: `torch.Tensor`): int tensor of indices of right values + in z_est for each point + w_ylo_xlo (:obj: `torch.Tensor`): float tensor of size M; + contains upper-left value weight for each point + w_ylo_xhi (:obj: `torch.Tensor`): float tensor of size M; + contains upper-right value weight for each point + w_yhi_xlo (:obj: `torch.Tensor`): float tensor of size M; + contains lower-left value weight for each point + w_yhi_xhi (:obj: `torch.Tensor`): float tensor of size M; + contains lower-right value weight for each point + """ + + def __init__( + self, + packed_annotations: Any, + j_valid: torch.Tensor, + y_lo: torch.Tensor, + y_hi: torch.Tensor, + x_lo: torch.Tensor, + x_hi: torch.Tensor, + w_ylo_xlo: torch.Tensor, + w_ylo_xhi: torch.Tensor, + w_yhi_xlo: torch.Tensor, + w_yhi_xhi: torch.Tensor, + ): + for k, v in locals().items(): + if k != "self": + setattr(self, k, v) + + @staticmethod + def from_matches( + packed_annotations: Any, densepose_outputs_size_hw: Tuple[int, int] + ) -> "BilinearInterpolationHelper": + """ + Args: + packed_annotations: annotations packed into tensors, the following + attributes are required: + - bbox_xywh_gt + - bbox_xywh_est + - x_gt + - y_gt + - point_bbox_with_dp_indices + - point_bbox_indices + densepose_outputs_size_hw (tuple [int, int]): resolution of + DensePose predictor outputs (H, W) + Return: + An instance of `BilinearInterpolationHelper` used to perform + interpolation for the given annotation points and output resolution + """ + + zh, zw = densepose_outputs_size_hw + x0_gt, y0_gt, w_gt, h_gt = packed_annotations.bbox_xywh_gt[ + packed_annotations.point_bbox_with_dp_indices + ].unbind(dim=1) + x0_est, y0_est, w_est, h_est = packed_annotations.bbox_xywh_est[ + packed_annotations.point_bbox_with_dp_indices + ].unbind(dim=1) + x_lo, x_hi, x_w, jx_valid = _linear_interpolation_utilities( + packed_annotations.x_gt, x0_gt, w_gt, x0_est, w_est, zw + ) + y_lo, y_hi, y_w, jy_valid = _linear_interpolation_utilities( + packed_annotations.y_gt, y0_gt, h_gt, y0_est, h_est, zh + ) + j_valid = jx_valid * jy_valid + + w_ylo_xlo = (1.0 - x_w) * (1.0 - y_w) + w_ylo_xhi = x_w * (1.0 - y_w) + w_yhi_xlo = (1.0 - x_w) * y_w + w_yhi_xhi = x_w * y_w + + return BilinearInterpolationHelper( + packed_annotations, + j_valid, + y_lo, + y_hi, + x_lo, + x_hi, + w_ylo_xlo, # pyre-ignore[6] + w_ylo_xhi, + # pyre-fixme[6]: Expected `Tensor` for 9th param but got `float`. + w_yhi_xlo, + w_yhi_xhi, + ) + + def extract_at_points( + self, + z_est, + slice_fine_segm=None, + w_ylo_xlo=None, + w_ylo_xhi=None, + w_yhi_xlo=None, + w_yhi_xhi=None, + ): + """ + Extract ground truth values z_gt for valid point indices and estimated + values z_est using bilinear interpolation over top-left (y_lo, x_lo), + top-right (y_lo, x_hi), bottom-left (y_hi, x_lo) and bottom-right + (y_hi, x_hi) values in z_est with corresponding weights: + w_ylo_xlo, w_ylo_xhi, w_yhi_xlo and w_yhi_xhi. + Use slice_fine_segm to slice dim=1 in z_est + """ + slice_fine_segm = ( + self.packed_annotations.fine_segm_labels_gt + if slice_fine_segm is None + else slice_fine_segm + ) + w_ylo_xlo = self.w_ylo_xlo if w_ylo_xlo is None else w_ylo_xlo + w_ylo_xhi = self.w_ylo_xhi if w_ylo_xhi is None else w_ylo_xhi + w_yhi_xlo = self.w_yhi_xlo if w_yhi_xlo is None else w_yhi_xlo + w_yhi_xhi = self.w_yhi_xhi if w_yhi_xhi is None else w_yhi_xhi + + index_bbox = self.packed_annotations.point_bbox_indices + z_est_sampled = ( + z_est[index_bbox, slice_fine_segm, self.y_lo, self.x_lo] * w_ylo_xlo + + z_est[index_bbox, slice_fine_segm, self.y_lo, self.x_hi] * w_ylo_xhi + + z_est[index_bbox, slice_fine_segm, self.y_hi, self.x_lo] * w_yhi_xlo + + z_est[index_bbox, slice_fine_segm, self.y_hi, self.x_hi] * w_yhi_xhi + ) + return z_est_sampled + + +def resample_data( + z, bbox_xywh_src, bbox_xywh_dst, wout, hout, mode: str = "nearest", padding_mode: str = "zeros" +): + """ + Args: + z (:obj: `torch.Tensor`): tensor of size (N,C,H,W) with data to be + resampled + bbox_xywh_src (:obj: `torch.Tensor`): tensor of size (N,4) containing + source bounding boxes in format XYWH + bbox_xywh_dst (:obj: `torch.Tensor`): tensor of size (N,4) containing + destination bounding boxes in format XYWH + Return: + zresampled (:obj: `torch.Tensor`): tensor of size (N, C, Hout, Wout) + with resampled values of z, where D is the discretization size + """ + n = bbox_xywh_src.size(0) + assert n == bbox_xywh_dst.size(0), ( + "The number of " + "source ROIs for resampling ({}) should be equal to the number " + "of destination ROIs ({})".format(bbox_xywh_src.size(0), bbox_xywh_dst.size(0)) + ) + x0src, y0src, wsrc, hsrc = bbox_xywh_src.unbind(dim=1) + x0dst, y0dst, wdst, hdst = bbox_xywh_dst.unbind(dim=1) + x0dst_norm = 2 * (x0dst - x0src) / wsrc - 1 + y0dst_norm = 2 * (y0dst - y0src) / hsrc - 1 + x1dst_norm = 2 * (x0dst + wdst - x0src) / wsrc - 1 + y1dst_norm = 2 * (y0dst + hdst - y0src) / hsrc - 1 + grid_w = torch.arange(wout, device=z.device, dtype=torch.float) / wout + grid_h = torch.arange(hout, device=z.device, dtype=torch.float) / hout + grid_w_expanded = grid_w[None, None, :].expand(n, hout, wout) + grid_h_expanded = grid_h[None, :, None].expand(n, hout, wout) + dx_expanded = (x1dst_norm - x0dst_norm)[:, None, None].expand(n, hout, wout) + dy_expanded = (y1dst_norm - y0dst_norm)[:, None, None].expand(n, hout, wout) + x0_expanded = x0dst_norm[:, None, None].expand(n, hout, wout) + y0_expanded = y0dst_norm[:, None, None].expand(n, hout, wout) + grid_x = grid_w_expanded * dx_expanded + x0_expanded + grid_y = grid_h_expanded * dy_expanded + y0_expanded + grid = torch.stack((grid_x, grid_y), dim=3) + # resample Z from (N, C, H, W) into (N, C, Hout, Wout) + zresampled = F.grid_sample(z, grid, mode=mode, padding_mode=padding_mode, align_corners=True) + return zresampled + + +class AnnotationsAccumulator(ABC): + """ + Abstract class for an accumulator for annotations that can produce + dense annotations packed into tensors. + """ + + @abstractmethod + def accumulate(self, instances_one_image: Instances): + """ + Accumulate instances data for one image + + Args: + instances_one_image (Instances): instances data to accumulate + """ + pass + + @abstractmethod + def pack(self) -> Any: + """ + Pack data into tensors + """ + pass + + +@dataclass +class PackedChartBasedAnnotations: + """ + Packed annotations for chart-based model training. The following attributes + are defined: + - fine_segm_labels_gt (tensor [K] of `int64`): GT fine segmentation point labels + - x_gt (tensor [K] of `float32`): GT normalized X point coordinates + - y_gt (tensor [K] of `float32`): GT normalized Y point coordinates + - u_gt (tensor [K] of `float32`): GT point U values + - v_gt (tensor [K] of `float32`): GT point V values + - coarse_segm_gt (tensor [N, S, S] of `float32`): GT segmentation for bounding boxes + - bbox_xywh_gt (tensor [N, 4] of `float32`): selected GT bounding boxes in + XYWH format + - bbox_xywh_est (tensor [N, 4] of `float32`): selected matching estimated + bounding boxes in XYWH format + - point_bbox_with_dp_indices (tensor [K] of `int64`): indices of bounding boxes + with DensePose annotations that correspond to the point data + - point_bbox_indices (tensor [K] of `int64`): indices of bounding boxes + (not necessarily the selected ones with DensePose data) that correspond + to the point data + - bbox_indices (tensor [N] of `int64`): global indices of selected bounding + boxes with DensePose annotations; these indices could be used to access + features that are computed for all bounding boxes, not only the ones with + DensePose annotations. + Here K is the total number of points and N is the total number of instances + with DensePose annotations. + """ + + fine_segm_labels_gt: torch.Tensor + x_gt: torch.Tensor + y_gt: torch.Tensor + u_gt: torch.Tensor + v_gt: torch.Tensor + coarse_segm_gt: Optional[torch.Tensor] + bbox_xywh_gt: torch.Tensor + bbox_xywh_est: torch.Tensor + point_bbox_with_dp_indices: torch.Tensor + point_bbox_indices: torch.Tensor + bbox_indices: torch.Tensor + + +class ChartBasedAnnotationsAccumulator(AnnotationsAccumulator): + """ + Accumulates annotations by batches that correspond to objects detected on + individual images. Can pack them together into single tensors. + """ + + def __init__(self): + self.i_gt = [] + self.x_gt = [] + self.y_gt = [] + self.u_gt = [] + self.v_gt = [] + self.s_gt = [] + self.bbox_xywh_gt = [] + self.bbox_xywh_est = [] + self.point_bbox_with_dp_indices = [] + self.point_bbox_indices = [] + self.bbox_indices = [] + self.nxt_bbox_with_dp_index = 0 + self.nxt_bbox_index = 0 + + def accumulate(self, instances_one_image: Instances): + """ + Accumulate instances data for one image + + Args: + instances_one_image (Instances): instances data to accumulate + """ + boxes_xywh_est = BoxMode.convert( + instances_one_image.proposal_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + boxes_xywh_gt = BoxMode.convert( + instances_one_image.gt_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + n_matches = len(boxes_xywh_gt) + assert n_matches == len( + boxes_xywh_est + ), f"Got {len(boxes_xywh_est)} proposal boxes and {len(boxes_xywh_gt)} GT boxes" + if not n_matches: + # no detection - GT matches + return + if ( + not hasattr(instances_one_image, "gt_densepose") + or instances_one_image.gt_densepose is None + ): + # no densepose GT for the detections, just increase the bbox index + self.nxt_bbox_index += n_matches + return + for box_xywh_est, box_xywh_gt, dp_gt in zip( + boxes_xywh_est, boxes_xywh_gt, instances_one_image.gt_densepose + ): + if (dp_gt is not None) and (len(dp_gt.x) > 0): + self._do_accumulate(box_xywh_gt, box_xywh_est, dp_gt) + self.nxt_bbox_index += 1 + + def _do_accumulate( + self, box_xywh_gt: torch.Tensor, box_xywh_est: torch.Tensor, dp_gt: DensePoseDataRelative + ): + """ + Accumulate instances data for one image, given that the data is not empty + + Args: + box_xywh_gt (tensor): GT bounding box + box_xywh_est (tensor): estimated bounding box + dp_gt (DensePoseDataRelative): GT densepose data + """ + self.i_gt.append(dp_gt.i) + self.x_gt.append(dp_gt.x) + self.y_gt.append(dp_gt.y) + self.u_gt.append(dp_gt.u) + self.v_gt.append(dp_gt.v) + if hasattr(dp_gt, "segm"): + self.s_gt.append(dp_gt.segm.unsqueeze(0)) + self.bbox_xywh_gt.append(box_xywh_gt.view(-1, 4)) + self.bbox_xywh_est.append(box_xywh_est.view(-1, 4)) + self.point_bbox_with_dp_indices.append( + torch.full_like(dp_gt.i, self.nxt_bbox_with_dp_index) + ) + self.point_bbox_indices.append(torch.full_like(dp_gt.i, self.nxt_bbox_index)) + self.bbox_indices.append(self.nxt_bbox_index) + self.nxt_bbox_with_dp_index += 1 + + def pack(self) -> Optional[PackedChartBasedAnnotations]: + """ + Pack data into tensors + """ + if not len(self.i_gt): + # TODO: + # returning proper empty annotations would require + # creating empty tensors of appropriate shape and + # type on an appropriate device; + # we return None so far to indicate empty annotations + return None + return PackedChartBasedAnnotations( + fine_segm_labels_gt=torch.cat(self.i_gt, 0).long(), + x_gt=torch.cat(self.x_gt, 0), + y_gt=torch.cat(self.y_gt, 0), + u_gt=torch.cat(self.u_gt, 0), + v_gt=torch.cat(self.v_gt, 0), + # ignore segmentation annotations, if not all the instances contain those + coarse_segm_gt=torch.cat(self.s_gt, 0) + if len(self.s_gt) == len(self.bbox_xywh_gt) + else None, + bbox_xywh_gt=torch.cat(self.bbox_xywh_gt, 0), + bbox_xywh_est=torch.cat(self.bbox_xywh_est, 0), + point_bbox_with_dp_indices=torch.cat(self.point_bbox_with_dp_indices, 0).long(), + point_bbox_indices=torch.cat(self.point_bbox_indices, 0).long(), + bbox_indices=torch.as_tensor( + self.bbox_indices, dtype=torch.long, device=self.x_gt[0].device + ).long(), + ) + + +def extract_packed_annotations_from_matches( + proposals_with_targets: List[Instances], accumulator: AnnotationsAccumulator +) -> Any: + for proposals_targets_per_image in proposals_with_targets: + accumulator.accumulate(proposals_targets_per_image) + return accumulator.pack() + + +def sample_random_indices( + n_indices: int, n_samples: int, device: Optional[torch.device] = None +) -> Optional[torch.Tensor]: + """ + Samples `n_samples` random indices from range `[0..n_indices - 1]`. + If `n_indices` is smaller than `n_samples`, returns `None` meaning that all indices + are selected. + Args: + n_indices (int): total number of indices + n_samples (int): number of indices to sample + device (torch.device): the desired device of returned tensor + Return: + Tensor of selected vertex indices, or `None`, if all vertices are selected + """ + if (n_samples <= 0) or (n_indices <= n_samples): + return None + indices = torch.randperm(n_indices, device=device)[:n_samples] + return indices diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/__init__.py b/detectron2/projects/DensePose/densepose/modeling/predictors/__init__.py new file mode 100755 index 0000000..1ece075 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/__init__.py @@ -0,0 +1,9 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .chart import DensePoseChartPredictor +from .chart_confidence import DensePoseChartConfidencePredictorMixin +from .chart_with_confidence import DensePoseChartWithConfidencePredictor +from .cse import DensePoseEmbeddingPredictor +from .cse_confidence import DensePoseEmbeddingConfidencePredictorMixin +from .cse_with_confidence import DensePoseEmbeddingWithConfidencePredictor +from .registry import DENSEPOSE_PREDICTOR_REGISTRY diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/chart.py b/detectron2/projects/DensePose/densepose/modeling/predictors/chart.py new file mode 100755 index 0000000..3bcd13f --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/chart.py @@ -0,0 +1,94 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import torch +from torch import nn + +from detectron2.config import CfgNode +from detectron2.layers import ConvTranspose2d, interpolate + +from ...structures import DensePoseChartPredictorOutput +from ..utils import initialize_module_params +from .registry import DENSEPOSE_PREDICTOR_REGISTRY + + +@DENSEPOSE_PREDICTOR_REGISTRY.register() +class DensePoseChartPredictor(nn.Module): + """ + Predictor (last layers of a DensePose model) that takes DensePose head outputs as an input + and produces 4 tensors which represent DensePose results for predefined body parts + (patches / charts): + * coarse segmentation, a tensor of shape [N, K, Hout, Wout] + * fine segmentation, a tensor of shape [N, C, Hout, Wout] + * U coordinates, a tensor of shape [N, C, Hout, Wout] + * V coordinates, a tensor of shape [N, C, Hout, Wout] + where + - N is the number of instances + - K is the number of coarse segmentation channels ( + 2 = foreground / background, + 15 = one of 14 body parts / background) + - C is the number of fine segmentation channels ( + 24 fine body parts / background) + - Hout and Wout are height and width of predictions + """ + + def __init__(self, cfg: CfgNode, input_channels: int): + """ + Initialize predictor using configuration options + + Args: + cfg (CfgNode): configuration options + input_channels (int): input tensor size along the channel dimension + """ + super().__init__() + dim_in = input_channels + n_segm_chan = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS + dim_out_patches = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_PATCHES + 1 + kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECONV_KERNEL + # coarse segmentation + self.ann_index_lowres = ConvTranspose2d( + dim_in, n_segm_chan, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + # fine segmentation + self.index_uv_lowres = ConvTranspose2d( + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + # U + self.u_lowres = ConvTranspose2d( + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + # V + self.v_lowres = ConvTranspose2d( + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + self.scale_factor = cfg.MODEL.ROI_DENSEPOSE_HEAD.UP_SCALE + initialize_module_params(self) + + def interp2d(self, tensor_nchw: torch.Tensor): + """ + Bilinear interpolation method to be used for upscaling + + Args: + tensor_nchw (tensor): tensor of shape (N, C, H, W) + Return: + tensor of shape (N, C, Hout, Wout), where Hout and Wout are computed + by applying the scale factor to H and W + """ + return interpolate( + tensor_nchw, scale_factor=self.scale_factor, mode="bilinear", align_corners=False + ) + + def forward(self, head_outputs: torch.Tensor): + """ + Perform forward step on DensePose head outputs + + Args: + head_outputs (tensor): DensePose head outputs, tensor of shape [N, D, H, W] + Return: + An instance of DensePoseChartPredictorOutput + """ + return DensePoseChartPredictorOutput( + coarse_segm=self.interp2d(self.ann_index_lowres(head_outputs)), + fine_segm=self.interp2d(self.index_uv_lowres(head_outputs)), + u=self.interp2d(self.u_lowres(head_outputs)), + v=self.interp2d(self.v_lowres(head_outputs)), + ) diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/chart_confidence.py b/detectron2/projects/DensePose/densepose/modeling/predictors/chart_confidence.py new file mode 100755 index 0000000..0c00999 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/chart_confidence.py @@ -0,0 +1,174 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any +import torch +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.layers import ConvTranspose2d + +from ...structures import decorate_predictor_output_class_with_confidences +from ..confidence import DensePoseConfidenceModelConfig, DensePoseUVConfidenceType +from ..utils import initialize_module_params + + +class DensePoseChartConfidencePredictorMixin: + """ + Predictor contains the last layers of a DensePose model that take DensePose head + outputs as an input and produce model outputs. Confidence predictor mixin is used + to generate confidences for segmentation and UV tensors estimated by some + base predictor. Several assumptions need to hold for the base predictor: + 1) the `forward` method must return SIUV tuple as the first result ( + S = coarse segmentation, I = fine segmentation, U and V are intrinsic + chart coordinates) + 2) `interp2d` method must be defined to perform bilinear interpolation; + the same method is typically used for SIUV and confidences + Confidence predictor mixin provides confidence estimates, as described in: + N. Neverova et al., Correlated Uncertainty for Learning Dense Correspondences + from Noisy Labels, NeurIPS 2019 + A. Sanakoyeu et al., Transferring Dense Pose to Proximal Animal Classes, CVPR 2020 + """ + + def __init__(self, cfg: CfgNode, input_channels: int): + """ + Initialize confidence predictor using configuration options. + + Args: + cfg (CfgNode): configuration options + input_channels (int): number of input channels + """ + # we rely on base predictor to call nn.Module.__init__ + super().__init__(cfg, input_channels) # pyre-ignore[19] + self.confidence_model_cfg = DensePoseConfidenceModelConfig.from_cfg(cfg) + self._initialize_confidence_estimation_layers(cfg, input_channels) + self._registry = {} + initialize_module_params(self) # pyre-ignore[6] + + def _initialize_confidence_estimation_layers(self, cfg: CfgNode, dim_in: int): + """ + Initialize confidence estimation layers based on configuration options + + Args: + cfg (CfgNode): configuration options + dim_in (int): number of input channels + """ + dim_out_patches = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_PATCHES + 1 + kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECONV_KERNEL + if self.confidence_model_cfg.uv_confidence.enabled: + if self.confidence_model_cfg.uv_confidence.type == DensePoseUVConfidenceType.IID_ISO: + self.sigma_2_lowres = ConvTranspose2d( # pyre-ignore[16] + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + elif ( + self.confidence_model_cfg.uv_confidence.type + == DensePoseUVConfidenceType.INDEP_ANISO + ): + self.sigma_2_lowres = ConvTranspose2d( + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + self.kappa_u_lowres = ConvTranspose2d( # pyre-ignore[16] + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + self.kappa_v_lowres = ConvTranspose2d( # pyre-ignore[16] + dim_in, dim_out_patches, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + else: + raise ValueError( + f"Unknown confidence model type: " + f"{self.confidence_model_cfg.confidence_model_type}" + ) + if self.confidence_model_cfg.segm_confidence.enabled: + self.fine_segm_confidence_lowres = ConvTranspose2d( # pyre-ignore[16] + dim_in, 1, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + self.coarse_segm_confidence_lowres = ConvTranspose2d( # pyre-ignore[16] + dim_in, 1, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + + def forward(self, head_outputs: torch.Tensor): + """ + Perform forward operation on head outputs used as inputs for the predictor. + Calls forward method from the base predictor and uses its outputs to compute + confidences. + + Args: + head_outputs (Tensor): head outputs used as predictor inputs + Return: + An instance of outputs with confidences, + see `decorate_predictor_output_class_with_confidences` + """ + # assuming base class returns SIUV estimates in its first result + base_predictor_outputs = super().forward(head_outputs) # pyre-ignore[16] + + # create output instance by extending base predictor outputs: + output = self._create_output_instance(base_predictor_outputs) + + if self.confidence_model_cfg.uv_confidence.enabled: + if self.confidence_model_cfg.uv_confidence.type == DensePoseUVConfidenceType.IID_ISO: + # assuming base class defines interp2d method for bilinear interpolation + output.sigma_2 = self.interp2d(self.sigma_2_lowres(head_outputs)) # pyre-ignore[16] + elif ( + self.confidence_model_cfg.uv_confidence.type + == DensePoseUVConfidenceType.INDEP_ANISO + ): + # assuming base class defines interp2d method for bilinear interpolation + output.sigma_2 = self.interp2d(self.sigma_2_lowres(head_outputs)) + output.kappa_u = self.interp2d(self.kappa_u_lowres(head_outputs)) # pyre-ignore[16] + output.kappa_v = self.interp2d(self.kappa_v_lowres(head_outputs)) # pyre-ignore[16] + else: + raise ValueError( + f"Unknown confidence model type: " + f"{self.confidence_model_cfg.confidence_model_type}" + ) + if self.confidence_model_cfg.segm_confidence.enabled: + # base predictor outputs are assumed to have `fine_segm` and `coarse_segm` attributes + # base predictor is assumed to define `interp2d` method for bilinear interpolation + output.fine_segm_confidence = ( + F.softplus( + self.interp2d(self.fine_segm_confidence_lowres(head_outputs)) # pyre-ignore[16] + ) + + self.confidence_model_cfg.segm_confidence.epsilon + ) + output.fine_segm = base_predictor_outputs.fine_segm * torch.repeat_interleave( + output.fine_segm_confidence, base_predictor_outputs.fine_segm.shape[1], dim=1 + ) + output.coarse_segm_confidence = ( + F.softplus( + self.interp2d( + self.coarse_segm_confidence_lowres(head_outputs) # pyre-ignore[16] + ) + ) + + self.confidence_model_cfg.segm_confidence.epsilon + ) + output.coarse_segm = base_predictor_outputs.coarse_segm * torch.repeat_interleave( + output.coarse_segm_confidence, base_predictor_outputs.coarse_segm.shape[1], dim=1 + ) + + return output + + def _create_output_instance(self, base_predictor_outputs: Any): + """ + Create an instance of predictor outputs by copying the outputs from the + base predictor and initializing confidence + + Args: + base_predictor_outputs: an instance of base predictor outputs + (the outputs type is assumed to be a dataclass) + Return: + An instance of outputs with confidences + """ + PredictorOutput = decorate_predictor_output_class_with_confidences( + type(base_predictor_outputs) # pyre-ignore[6] + ) + # base_predictor_outputs is assumed to be a dataclass + # reassign all the fields from base_predictor_outputs (no deep copy!), add new fields + output = PredictorOutput( + **base_predictor_outputs.__dict__, + coarse_segm_confidence=None, + fine_segm_confidence=None, + sigma_1=None, + sigma_2=None, + kappa_u=None, + kappa_v=None, + ) + return output diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/chart_with_confidence.py b/detectron2/projects/DensePose/densepose/modeling/predictors/chart_with_confidence.py new file mode 100755 index 0000000..9c1cd6c --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/chart_with_confidence.py @@ -0,0 +1,15 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from . import DensePoseChartConfidencePredictorMixin, DensePoseChartPredictor +from .registry import DENSEPOSE_PREDICTOR_REGISTRY + + +@DENSEPOSE_PREDICTOR_REGISTRY.register() +class DensePoseChartWithConfidencePredictor( + DensePoseChartConfidencePredictorMixin, DensePoseChartPredictor +): + """ + Predictor that combines chart and chart confidence estimation + """ + + pass diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/cse.py b/detectron2/projects/DensePose/densepose/modeling/predictors/cse.py new file mode 100755 index 0000000..466a5ec --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/cse.py @@ -0,0 +1,70 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import torch +from torch import nn + +from detectron2.config import CfgNode +from detectron2.layers import ConvTranspose2d, interpolate + +from ...structures import DensePoseEmbeddingPredictorOutput +from ..utils import initialize_module_params +from .registry import DENSEPOSE_PREDICTOR_REGISTRY + + +@DENSEPOSE_PREDICTOR_REGISTRY.register() +class DensePoseEmbeddingPredictor(nn.Module): + """ + Last layers of a DensePose model that take DensePose head outputs as an input + and produce model outputs for continuous surface embeddings (CSE). + """ + + def __init__(self, cfg: CfgNode, input_channels: int): + """ + Initialize predictor using configuration options + + Args: + cfg (CfgNode): configuration options + input_channels (int): input tensor size along the channel dimension + """ + super().__init__() + dim_in = input_channels + n_segm_chan = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS + embed_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE + kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECONV_KERNEL + # coarse segmentation + self.coarse_segm_lowres = ConvTranspose2d( + dim_in, n_segm_chan, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + # embedding + self.embed_lowres = ConvTranspose2d( + dim_in, embed_size, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + self.scale_factor = cfg.MODEL.ROI_DENSEPOSE_HEAD.UP_SCALE + initialize_module_params(self) + + def interp2d(self, tensor_nchw: torch.Tensor): + """ + Bilinear interpolation method to be used for upscaling + + Args: + tensor_nchw (tensor): tensor of shape (N, C, H, W) + Return: + tensor of shape (N, C, Hout, Wout), where Hout and Wout are computed + by applying the scale factor to H and W + """ + return interpolate( + tensor_nchw, scale_factor=self.scale_factor, mode="bilinear", align_corners=False + ) + + def forward(self, head_outputs): + """ + Perform forward step on DensePose head outputs + + Args: + head_outputs (tensor): DensePose head outputs, tensor of shape [N, D, H, W] + """ + embed_lowres = self.embed_lowres(head_outputs) + coarse_segm_lowres = self.coarse_segm_lowres(head_outputs) + embed = self.interp2d(embed_lowres) + coarse_segm = self.interp2d(coarse_segm_lowres) + return DensePoseEmbeddingPredictorOutput(embedding=embed, coarse_segm=coarse_segm) diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/cse_confidence.py b/detectron2/projects/DensePose/densepose/modeling/predictors/cse_confidence.py new file mode 100755 index 0000000..8220337 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/cse_confidence.py @@ -0,0 +1,115 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from typing import Any +import torch +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.layers import ConvTranspose2d + +from densepose.modeling.confidence import DensePoseConfidenceModelConfig +from densepose.modeling.utils import initialize_module_params +from densepose.structures import decorate_cse_predictor_output_class_with_confidences + + +class DensePoseEmbeddingConfidencePredictorMixin: + """ + Predictor contains the last layers of a DensePose model that take DensePose head + outputs as an input and produce model outputs. Confidence predictor mixin is used + to generate confidences for coarse segmentation estimated by some + base predictor. Several assumptions need to hold for the base predictor: + 1) the `forward` method must return CSE DensePose head outputs, + tensor of shape [N, D, H, W] + 2) `interp2d` method must be defined to perform bilinear interpolation; + the same method is typically used for masks and confidences + Confidence predictor mixin provides confidence estimates, as described in: + N. Neverova et al., Correlated Uncertainty for Learning Dense Correspondences + from Noisy Labels, NeurIPS 2019 + A. Sanakoyeu et al., Transferring Dense Pose to Proximal Animal Classes, CVPR 2020 + """ + + def __init__(self, cfg: CfgNode, input_channels: int): + """ + Initialize confidence predictor using configuration options. + + Args: + cfg (CfgNode): configuration options + input_channels (int): number of input channels + """ + # we rely on base predictor to call nn.Module.__init__ + super().__init__(cfg, input_channels) # pyre-ignore[19] + self.confidence_model_cfg = DensePoseConfidenceModelConfig.from_cfg(cfg) + self._initialize_confidence_estimation_layers(cfg, input_channels) + self._registry = {} + initialize_module_params(self) # pyre-ignore[6] + + def _initialize_confidence_estimation_layers(self, cfg: CfgNode, dim_in: int): + """ + Initialize confidence estimation layers based on configuration options + + Args: + cfg (CfgNode): configuration options + dim_in (int): number of input channels + """ + kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECONV_KERNEL + if self.confidence_model_cfg.segm_confidence.enabled: + self.coarse_segm_confidence_lowres = ConvTranspose2d( # pyre-ignore[16] + dim_in, 1, kernel_size, stride=2, padding=int(kernel_size / 2 - 1) + ) + + def forward(self, head_outputs: torch.Tensor): + """ + Perform forward operation on head outputs used as inputs for the predictor. + Calls forward method from the base predictor and uses its outputs to compute + confidences. + + Args: + head_outputs (Tensor): head outputs used as predictor inputs + Return: + An instance of outputs with confidences, + see `decorate_cse_predictor_output_class_with_confidences` + """ + # assuming base class returns SIUV estimates in its first result + base_predictor_outputs = super().forward(head_outputs) # pyre-ignore[16] + + # create output instance by extending base predictor outputs: + output = self._create_output_instance(base_predictor_outputs) + + if self.confidence_model_cfg.segm_confidence.enabled: + # base predictor outputs are assumed to have `coarse_segm` attribute + # base predictor is assumed to define `interp2d` method for bilinear interpolation + output.coarse_segm_confidence = ( + F.softplus( + self.interp2d( # pyre-ignore[16] + self.coarse_segm_confidence_lowres(head_outputs) # pyre-ignore[16] + ) + ) + + self.confidence_model_cfg.segm_confidence.epsilon + ) + output.coarse_segm = base_predictor_outputs.coarse_segm * torch.repeat_interleave( + output.coarse_segm_confidence, base_predictor_outputs.coarse_segm.shape[1], dim=1 + ) + + return output + + def _create_output_instance(self, base_predictor_outputs: Any): + """ + Create an instance of predictor outputs by copying the outputs from the + base predictor and initializing confidence + + Args: + base_predictor_outputs: an instance of base predictor outputs + (the outputs type is assumed to be a dataclass) + Return: + An instance of outputs with confidences + """ + PredictorOutput = decorate_cse_predictor_output_class_with_confidences( + type(base_predictor_outputs) # pyre-ignore[6] + ) + # base_predictor_outputs is assumed to be a dataclass + # reassign all the fields from base_predictor_outputs (no deep copy!), add new fields + output = PredictorOutput( + **base_predictor_outputs.__dict__, + coarse_segm_confidence=None, + ) + return output diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/cse_with_confidence.py b/detectron2/projects/DensePose/densepose/modeling/predictors/cse_with_confidence.py new file mode 100755 index 0000000..17ecef6 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/cse_with_confidence.py @@ -0,0 +1,15 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from . import DensePoseEmbeddingConfidencePredictorMixin, DensePoseEmbeddingPredictor +from .registry import DENSEPOSE_PREDICTOR_REGISTRY + + +@DENSEPOSE_PREDICTOR_REGISTRY.register() +class DensePoseEmbeddingWithConfidencePredictor( + DensePoseEmbeddingConfidencePredictorMixin, DensePoseEmbeddingPredictor +): + """ + Predictor that combines CSE and CSE confidence estimation + """ + + pass diff --git a/detectron2/projects/DensePose/densepose/modeling/predictors/registry.py b/detectron2/projects/DensePose/densepose/modeling/predictors/registry.py new file mode 100755 index 0000000..f96901d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/predictors/registry.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.utils.registry import Registry + +DENSEPOSE_PREDICTOR_REGISTRY = Registry("DENSEPOSE_PREDICTOR") diff --git a/detectron2/projects/DensePose/densepose/modeling/roi_heads/__init__.py b/detectron2/projects/DensePose/densepose/modeling/roi_heads/__init__.py new file mode 100755 index 0000000..8403589 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/roi_heads/__init__.py @@ -0,0 +1,6 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .v1convx import DensePoseV1ConvXHead +from .deeplab import DensePoseDeepLabHead +from .registry import ROI_DENSEPOSE_HEAD_REGISTRY +from .roi_head import Decoder, DensePoseROIHeads diff --git a/detectron2/projects/DensePose/densepose/modeling/roi_heads/deeplab.py b/detectron2/projects/DensePose/densepose/modeling/roi_heads/deeplab.py new file mode 100755 index 0000000..4e5cb48 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/roi_heads/deeplab.py @@ -0,0 +1,263 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.layers import Conv2d + +from .registry import ROI_DENSEPOSE_HEAD_REGISTRY + + +@ROI_DENSEPOSE_HEAD_REGISTRY.register() +class DensePoseDeepLabHead(nn.Module): + """ + DensePose head using DeepLabV3 model from + "Rethinking Atrous Convolution for Semantic Image Segmentation" + . + """ + + def __init__(self, cfg: CfgNode, input_channels: int): + super(DensePoseDeepLabHead, self).__init__() + # fmt: off + hidden_dim = cfg.MODEL.ROI_DENSEPOSE_HEAD.CONV_HEAD_DIM + kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.CONV_HEAD_KERNEL + norm = cfg.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB.NORM + self.n_stacked_convs = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_STACKED_CONVS + self.use_nonlocal = cfg.MODEL.ROI_DENSEPOSE_HEAD.DEEPLAB.NONLOCAL_ON + # fmt: on + pad_size = kernel_size // 2 + n_channels = input_channels + + self.ASPP = ASPP(input_channels, [6, 12, 56], n_channels) # 6, 12, 56 + self.add_module("ASPP", self.ASPP) + + if self.use_nonlocal: + self.NLBlock = NONLocalBlock2D(input_channels, bn_layer=True) + self.add_module("NLBlock", self.NLBlock) + # weight_init.c2_msra_fill(self.ASPP) + + for i in range(self.n_stacked_convs): + norm_module = nn.GroupNorm(32, hidden_dim) if norm == "GN" else None + layer = Conv2d( + n_channels, + hidden_dim, + kernel_size, + stride=1, + padding=pad_size, + bias=not norm, + norm=norm_module, + ) + weight_init.c2_msra_fill(layer) + n_channels = hidden_dim + layer_name = self._get_layer_name(i) + self.add_module(layer_name, layer) + self.n_out_channels = hidden_dim + # initialize_module_params(self) + + def forward(self, features): + x0 = features + x = self.ASPP(x0) + if self.use_nonlocal: + x = self.NLBlock(x) + output = x + for i in range(self.n_stacked_convs): + layer_name = self._get_layer_name(i) + x = getattr(self, layer_name)(x) + x = F.relu(x) + output = x + return output + + def _get_layer_name(self, i: int): + layer_name = "body_conv_fcn{}".format(i + 1) + return layer_name + + +# Copied from +# https://github.com/pytorch/vision/blob/master/torchvision/models/segmentation/deeplabv3.py +# See https://arxiv.org/pdf/1706.05587.pdf for details +class ASPPConv(nn.Sequential): + def __init__(self, in_channels, out_channels, dilation): + modules = [ + nn.Conv2d( + in_channels, out_channels, 3, padding=dilation, dilation=dilation, bias=False + ), + nn.GroupNorm(32, out_channels), + nn.ReLU(), + ] + super(ASPPConv, self).__init__(*modules) + + +class ASPPPooling(nn.Sequential): + def __init__(self, in_channels, out_channels): + super(ASPPPooling, self).__init__( + nn.AdaptiveAvgPool2d(1), + nn.Conv2d(in_channels, out_channels, 1, bias=False), + nn.GroupNorm(32, out_channels), + nn.ReLU(), + ) + + def forward(self, x): + size = x.shape[-2:] + x = super(ASPPPooling, self).forward(x) + return F.interpolate(x, size=size, mode="bilinear", align_corners=False) + + +class ASPP(nn.Module): + def __init__(self, in_channels, atrous_rates, out_channels): + super(ASPP, self).__init__() + modules = [] + modules.append( + nn.Sequential( + nn.Conv2d(in_channels, out_channels, 1, bias=False), + nn.GroupNorm(32, out_channels), + nn.ReLU(), + ) + ) + + rate1, rate2, rate3 = tuple(atrous_rates) + modules.append(ASPPConv(in_channels, out_channels, rate1)) + modules.append(ASPPConv(in_channels, out_channels, rate2)) + modules.append(ASPPConv(in_channels, out_channels, rate3)) + modules.append(ASPPPooling(in_channels, out_channels)) + + self.convs = nn.ModuleList(modules) + + self.project = nn.Sequential( + nn.Conv2d(5 * out_channels, out_channels, 1, bias=False), + # nn.BatchNorm2d(out_channels), + nn.ReLU() + # nn.Dropout(0.5) + ) + + def forward(self, x): + res = [] + for conv in self.convs: + res.append(conv(x)) + res = torch.cat(res, dim=1) + return self.project(res) + + +# copied from +# https://github.com/AlexHex7/Non-local_pytorch/blob/master/lib/non_local_embedded_gaussian.py +# See https://arxiv.org/abs/1711.07971 for details +class _NonLocalBlockND(nn.Module): + def __init__( + self, in_channels, inter_channels=None, dimension=3, sub_sample=True, bn_layer=True + ): + super(_NonLocalBlockND, self).__init__() + + assert dimension in [1, 2, 3] + + self.dimension = dimension + self.sub_sample = sub_sample + + self.in_channels = in_channels + self.inter_channels = inter_channels + + if self.inter_channels is None: + self.inter_channels = in_channels // 2 + if self.inter_channels == 0: + self.inter_channels = 1 + + if dimension == 3: + conv_nd = nn.Conv3d + max_pool_layer = nn.MaxPool3d(kernel_size=(1, 2, 2)) + bn = nn.GroupNorm # (32, hidden_dim) #nn.BatchNorm3d + elif dimension == 2: + conv_nd = nn.Conv2d + max_pool_layer = nn.MaxPool2d(kernel_size=(2, 2)) + bn = nn.GroupNorm # (32, hidden_dim)nn.BatchNorm2d + else: + conv_nd = nn.Conv1d + max_pool_layer = nn.MaxPool1d(kernel_size=2) + bn = nn.GroupNorm # (32, hidden_dim)nn.BatchNorm1d + + self.g = conv_nd( + in_channels=self.in_channels, + out_channels=self.inter_channels, + kernel_size=1, + stride=1, + padding=0, + ) + + if bn_layer: + self.W = nn.Sequential( + conv_nd( + in_channels=self.inter_channels, + out_channels=self.in_channels, + kernel_size=1, + stride=1, + padding=0, + ), + bn(32, self.in_channels), + ) + nn.init.constant_(self.W[1].weight, 0) + nn.init.constant_(self.W[1].bias, 0) + else: + self.W = conv_nd( + in_channels=self.inter_channels, + out_channels=self.in_channels, + kernel_size=1, + stride=1, + padding=0, + ) + nn.init.constant_(self.W.weight, 0) + nn.init.constant_(self.W.bias, 0) + + self.theta = conv_nd( + in_channels=self.in_channels, + out_channels=self.inter_channels, + kernel_size=1, + stride=1, + padding=0, + ) + self.phi = conv_nd( + in_channels=self.in_channels, + out_channels=self.inter_channels, + kernel_size=1, + stride=1, + padding=0, + ) + + if sub_sample: + self.g = nn.Sequential(self.g, max_pool_layer) + self.phi = nn.Sequential(self.phi, max_pool_layer) + + def forward(self, x): + """ + :param x: (b, c, t, h, w) + :return: + """ + + batch_size = x.size(0) + + g_x = self.g(x).view(batch_size, self.inter_channels, -1) + g_x = g_x.permute(0, 2, 1) + + theta_x = self.theta(x).view(batch_size, self.inter_channels, -1) + theta_x = theta_x.permute(0, 2, 1) + phi_x = self.phi(x).view(batch_size, self.inter_channels, -1) + f = torch.matmul(theta_x, phi_x) + f_div_C = F.softmax(f, dim=-1) + + y = torch.matmul(f_div_C, g_x) + y = y.permute(0, 2, 1).contiguous() + y = y.view(batch_size, self.inter_channels, *x.size()[2:]) + W_y = self.W(y) + z = W_y + x + + return z + + +class NONLocalBlock2D(_NonLocalBlockND): + def __init__(self, in_channels, inter_channels=None, sub_sample=True, bn_layer=True): + super(NONLocalBlock2D, self).__init__( + in_channels, + inter_channels=inter_channels, + dimension=2, + sub_sample=sub_sample, + bn_layer=bn_layer, + ) diff --git a/detectron2/projects/DensePose/densepose/modeling/roi_heads/registry.py b/detectron2/projects/DensePose/densepose/modeling/roi_heads/registry.py new file mode 100755 index 0000000..e1cea43 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/roi_heads/registry.py @@ -0,0 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.utils.registry import Registry + +ROI_DENSEPOSE_HEAD_REGISTRY = Registry("ROI_DENSEPOSE_HEAD") diff --git a/detectron2/projects/DensePose/densepose/modeling/roi_heads/roi_head.py b/detectron2/projects/DensePose/densepose/modeling/roi_heads/roi_head.py new file mode 100755 index 0000000..8f9d9a6 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/roi_heads/roi_head.py @@ -0,0 +1,221 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import numpy as np +from typing import Dict, List, Optional +import fvcore.nn.weight_init as weight_init +import torch +import torch.nn as nn +from torch.nn import functional as F + +from detectron2.layers import Conv2d, ShapeSpec, get_norm +from detectron2.modeling import ROI_HEADS_REGISTRY, StandardROIHeads +from detectron2.modeling.poolers import ROIPooler +from detectron2.modeling.roi_heads import select_foreground_proposals +from detectron2.structures import ImageList, Instances + +from .. import ( + build_densepose_data_filter, + build_densepose_embedder, + build_densepose_head, + build_densepose_losses, + build_densepose_predictor, + densepose_inference, +) + + +class Decoder(nn.Module): + """ + A semantic segmentation head described in detail in the Panoptic Feature Pyramid Networks paper + (https://arxiv.org/abs/1901.02446). It takes FPN features as input and merges information from + all levels of the FPN into single output. + """ + + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec], in_features): + super(Decoder, self).__init__() + + # fmt: off + self.in_features = in_features + feature_strides = {k: v.stride for k, v in input_shape.items()} + feature_channels = {k: v.channels for k, v in input_shape.items()} + num_classes = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECODER_NUM_CLASSES + conv_dims = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECODER_CONV_DIMS + self.common_stride = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECODER_COMMON_STRIDE + norm = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECODER_NORM + # fmt: on + + self.scale_heads = [] + for in_feature in self.in_features: + head_ops = [] + head_length = max( + 1, int(np.log2(feature_strides[in_feature]) - np.log2(self.common_stride)) + ) + for k in range(head_length): + conv = Conv2d( + feature_channels[in_feature] if k == 0 else conv_dims, + conv_dims, + kernel_size=3, + stride=1, + padding=1, + bias=not norm, + norm=get_norm(norm, conv_dims), + activation=F.relu, + ) + weight_init.c2_msra_fill(conv) + head_ops.append(conv) + if feature_strides[in_feature] != self.common_stride: + head_ops.append( + nn.Upsample(scale_factor=2, mode="bilinear", align_corners=False) + ) + self.scale_heads.append(nn.Sequential(*head_ops)) + self.add_module(in_feature, self.scale_heads[-1]) + self.predictor = Conv2d(conv_dims, num_classes, kernel_size=1, stride=1, padding=0) + weight_init.c2_msra_fill(self.predictor) + + def forward(self, features: List[torch.Tensor]): + for i, _ in enumerate(self.in_features): + if i == 0: + x = self.scale_heads[i](features[i]) + else: + x = x + self.scale_heads[i](features[i]) + x = self.predictor(x) + return x + + +@ROI_HEADS_REGISTRY.register() +class DensePoseROIHeads(StandardROIHeads): + """ + A Standard ROIHeads which contains an addition of DensePose head. + """ + + def __init__(self, cfg, input_shape): + super().__init__(cfg, input_shape) + self._init_densepose_head(cfg, input_shape) + + def _init_densepose_head(self, cfg, input_shape): + # fmt: off + self.densepose_on = cfg.MODEL.DENSEPOSE_ON + if not self.densepose_on: + return + self.densepose_data_filter = build_densepose_data_filter(cfg) + dp_pooler_resolution = cfg.MODEL.ROI_DENSEPOSE_HEAD.POOLER_RESOLUTION + dp_pooler_sampling_ratio = cfg.MODEL.ROI_DENSEPOSE_HEAD.POOLER_SAMPLING_RATIO + dp_pooler_type = cfg.MODEL.ROI_DENSEPOSE_HEAD.POOLER_TYPE + self.use_decoder = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECODER_ON + # fmt: on + if self.use_decoder: + dp_pooler_scales = (1.0 / input_shape[self.in_features[0]].stride,) + else: + dp_pooler_scales = tuple(1.0 / input_shape[k].stride for k in self.in_features) + in_channels = [input_shape[f].channels for f in self.in_features][0] + + if self.use_decoder: + self.decoder = Decoder(cfg, input_shape, self.in_features) + + self.densepose_pooler = ROIPooler( + output_size=dp_pooler_resolution, + scales=dp_pooler_scales, + sampling_ratio=dp_pooler_sampling_ratio, + pooler_type=dp_pooler_type, + ) + self.densepose_head = build_densepose_head(cfg, in_channels) + self.densepose_predictor = build_densepose_predictor( + cfg, self.densepose_head.n_out_channels + ) + self.densepose_losses = build_densepose_losses(cfg) + self.embedder = build_densepose_embedder(cfg) + + def _forward_densepose(self, features: Dict[str, torch.Tensor], instances: List[Instances]): + """ + Forward logic of the densepose prediction branch. + + Args: + features (dict[str, Tensor]): input data as a mapping from feature + map name to tensor. Axis 0 represents the number of images `N` in + the input data; axes 1-3 are channels, height, and width, which may + vary between feature maps (e.g., if a feature pyramid is used). + instances (list[Instances]): length `N` list of `Instances`. The i-th + `Instances` contains instances for the i-th input image, + In training, they can be the proposals. + In inference, they can be the predicted boxes. + + Returns: + In training, a dict of losses. + In inference, update `instances` with new fields "densepose" and return it. + """ + if not self.densepose_on: + return {} if self.training else instances + + features_list = [features[f] for f in self.in_features] + if self.training: + proposals, _ = select_foreground_proposals(instances, self.num_classes) + features_list, proposals = self.densepose_data_filter(features_list, proposals) + if len(proposals) > 0: + proposal_boxes = [x.proposal_boxes for x in proposals] + + if self.use_decoder: + # pyre-fixme[29]: `Union[nn.Module, torch.Tensor]` is not a + # function. + features_list = [self.decoder(features_list)] + + features_dp = self.densepose_pooler(features_list, proposal_boxes) + densepose_head_outputs = self.densepose_head(features_dp) + densepose_predictor_outputs = self.densepose_predictor(densepose_head_outputs) + densepose_loss_dict = self.densepose_losses( + proposals, densepose_predictor_outputs, embedder=self.embedder + ) + return densepose_loss_dict + else: + pred_boxes = [x.pred_boxes for x in instances] + + if self.use_decoder: + # pyre-fixme[29]: `Union[nn.Module, torch.Tensor]` is not a function. + features_list = [self.decoder(features_list)] + + features_dp = self.densepose_pooler(features_list, pred_boxes) + if len(features_dp) > 0: + densepose_head_outputs = self.densepose_head(features_dp) + densepose_predictor_outputs = self.densepose_predictor(densepose_head_outputs) + else: + densepose_predictor_outputs = None + + densepose_inference(densepose_predictor_outputs, instances) + return instances + + def forward( + self, + images: ImageList, + features: Dict[str, torch.Tensor], + proposals: List[Instances], + targets: Optional[List[Instances]] = None, + ): + instances, losses = super().forward(images, features, proposals, targets) + del targets, images + + if self.training: + losses.update(self._forward_densepose(features, instances)) + return instances, losses + + def forward_with_given_boxes( + self, features: Dict[str, torch.Tensor], instances: List[Instances] + ): + """ + Use the given boxes in `instances` to produce other (non-box) per-ROI outputs. + + This is useful for downstream tasks where a box is known, but need to obtain + other attributes (outputs of other heads). + Test-time augmentation also uses this. + + Args: + features: same as in `forward()` + instances (list[Instances]): instances to predict other outputs. Expect the keys + "pred_boxes" and "pred_classes" to exist. + + Returns: + instances (list[Instances]): + the same `Instances` objects, with extra + fields such as `pred_masks` or `pred_keypoints`. + """ + + instances = super().forward_with_given_boxes(features, instances) + instances = self._forward_densepose(features, instances) + return instances diff --git a/detectron2/projects/DensePose/densepose/modeling/roi_heads/v1convx.py b/detectron2/projects/DensePose/densepose/modeling/roi_heads/v1convx.py new file mode 100755 index 0000000..df79f65 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/roi_heads/v1convx.py @@ -0,0 +1,64 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import CfgNode +from detectron2.layers import Conv2d + +from ..utils import initialize_module_params +from .registry import ROI_DENSEPOSE_HEAD_REGISTRY + + +@ROI_DENSEPOSE_HEAD_REGISTRY.register() +class DensePoseV1ConvXHead(nn.Module): + """ + Fully convolutional DensePose head. + """ + + def __init__(self, cfg: CfgNode, input_channels: int): + """ + Initialize DensePose fully convolutional head + + Args: + cfg (CfgNode): configuration options + input_channels (int): number of input channels + """ + super(DensePoseV1ConvXHead, self).__init__() + # fmt: off + hidden_dim = cfg.MODEL.ROI_DENSEPOSE_HEAD.CONV_HEAD_DIM + kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.CONV_HEAD_KERNEL + self.n_stacked_convs = cfg.MODEL.ROI_DENSEPOSE_HEAD.NUM_STACKED_CONVS + # fmt: on + pad_size = kernel_size // 2 + n_channels = input_channels + for i in range(self.n_stacked_convs): + layer = Conv2d(n_channels, hidden_dim, kernel_size, stride=1, padding=pad_size) + layer_name = self._get_layer_name(i) + self.add_module(layer_name, layer) + n_channels = hidden_dim + self.n_out_channels = n_channels + initialize_module_params(self) + + def forward(self, features: torch.Tensor): + """ + Apply DensePose fully convolutional head to the input features + + Args: + features (tensor): input features + Result: + A tensor of DensePose head outputs + """ + x = features + output = x + for i in range(self.n_stacked_convs): + layer_name = self._get_layer_name(i) + x = getattr(self, layer_name)(x) + x = F.relu(x) + output = x + return output + + def _get_layer_name(self, i: int): + layer_name = "body_conv_fcn{}".format(i + 1) + return layer_name diff --git a/detectron2/projects/DensePose/densepose/modeling/test_time_augmentation.py b/detectron2/projects/DensePose/densepose/modeling/test_time_augmentation.py new file mode 100755 index 0000000..ec2022e --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/test_time_augmentation.py @@ -0,0 +1,207 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import numpy as np +import torch +from fvcore.transforms import HFlipTransform, TransformList +from torch.nn import functional as F + +from detectron2.data.transforms import RandomRotation, RotationTransform, apply_transform_gens +from detectron2.modeling.postprocessing import detector_postprocess +from detectron2.modeling.test_time_augmentation import DatasetMapperTTA, GeneralizedRCNNWithTTA + +from ..converters import HFlipConverter + + +class DensePoseDatasetMapperTTA(DatasetMapperTTA): + def __init__(self, cfg): + super().__init__(cfg=cfg) + self.angles = cfg.TEST.AUG.ROTATION_ANGLES + + def __call__(self, dataset_dict): + ret = super().__call__(dataset_dict=dataset_dict) + numpy_image = dataset_dict["image"].permute(1, 2, 0).numpy() + for angle in self.angles: + rotate = RandomRotation(angle=angle, expand=True) + new_numpy_image, tfms = apply_transform_gens([rotate], np.copy(numpy_image)) + torch_image = torch.from_numpy(np.ascontiguousarray(new_numpy_image.transpose(2, 0, 1))) + dic = copy.deepcopy(dataset_dict) + # In DatasetMapperTTA, there is a pre_tfm transform (resize or no-op) that is + # added at the beginning of each TransformList. That's '.transforms[0]'. + dic["transforms"] = TransformList( + [ret[-1]["transforms"].transforms[0]] + tfms.transforms + ) + dic["image"] = torch_image + ret.append(dic) + return ret + + +class DensePoseGeneralizedRCNNWithTTA(GeneralizedRCNNWithTTA): + def __init__(self, cfg, model, transform_data, tta_mapper=None, batch_size=1): + """ + Args: + cfg (CfgNode): + model (GeneralizedRCNN): a GeneralizedRCNN to apply TTA on. + transform_data (DensePoseTransformData): contains symmetry label + transforms used for horizontal flip + tta_mapper (callable): takes a dataset dict and returns a list of + augmented versions of the dataset dict. Defaults to + `DatasetMapperTTA(cfg)`. + batch_size (int): batch the augmented images into this batch size for inference. + """ + self._transform_data = transform_data.to(model.device) + super().__init__(cfg=cfg, model=model, tta_mapper=tta_mapper, batch_size=batch_size) + + # the implementation follows closely the one from detectron2/modeling + def _inference_one_image(self, input): + """ + Args: + input (dict): one dataset dict with "image" field being a CHW tensor + + Returns: + dict: one output dict + """ + orig_shape = (input["height"], input["width"]) + # For some reason, resize with uint8 slightly increases box AP but decreases densepose AP + input["image"] = input["image"].to(torch.uint8) + augmented_inputs, tfms = self._get_augmented_inputs(input) + # Detect boxes from all augmented versions + with self._turn_off_roi_heads(["mask_on", "keypoint_on", "densepose_on"]): + # temporarily disable roi heads + all_boxes, all_scores, all_classes = self._get_augmented_boxes(augmented_inputs, tfms) + merged_instances = self._merge_detections(all_boxes, all_scores, all_classes, orig_shape) + + if self.cfg.MODEL.MASK_ON or self.cfg.MODEL.DENSEPOSE_ON: + # Use the detected boxes to obtain new fields + augmented_instances = self._rescale_detected_boxes( + augmented_inputs, merged_instances, tfms + ) + # run forward on the detected boxes + outputs = self._batch_inference(augmented_inputs, augmented_instances) + # Delete now useless variables to avoid being out of memory + del augmented_inputs, augmented_instances + # average the predictions + if self.cfg.MODEL.MASK_ON: + merged_instances.pred_masks = self._reduce_pred_masks(outputs, tfms) + if self.cfg.MODEL.DENSEPOSE_ON: + merged_instances.pred_densepose = self._reduce_pred_densepose(outputs, tfms) + # postprocess + merged_instances = detector_postprocess(merged_instances, *orig_shape) + return {"instances": merged_instances} + else: + return {"instances": merged_instances} + + def _get_augmented_boxes(self, augmented_inputs, tfms): + # Heavily based on detectron2/modeling/test_time_augmentation.py + # Only difference is that RotationTransform is excluded from bbox computation + # 1: forward with all augmented images + outputs = self._batch_inference(augmented_inputs) + # 2: union the results + all_boxes = [] + all_scores = [] + all_classes = [] + for output, tfm in zip(outputs, tfms): + # Need to inverse the transforms on boxes, to obtain results on original image + if not any(isinstance(t, RotationTransform) for t in tfm.transforms): + # Some transforms can't compute bbox correctly + pred_boxes = output.pred_boxes.tensor + original_pred_boxes = tfm.inverse().apply_box(pred_boxes.cpu().numpy()) + all_boxes.append(torch.from_numpy(original_pred_boxes).to(pred_boxes.device)) + all_scores.extend(output.scores) + all_classes.extend(output.pred_classes) + all_boxes = torch.cat(all_boxes, dim=0) + return all_boxes, all_scores, all_classes + + def _reduce_pred_densepose(self, outputs, tfms): + # Should apply inverse transforms on densepose preds. + # We assume only rotation, resize & flip are used. pred_masks is a scale-invariant + # representation, so we handle the other ones specially + for idx, (output, tfm) in enumerate(zip(outputs, tfms)): + for t in tfm.transforms: + for attr in ["coarse_segm", "fine_segm", "u", "v"]: + setattr( + output.pred_densepose, + attr, + _inverse_rotation( + getattr(output.pred_densepose, attr), output.pred_boxes.tensor, t + ), + ) + if any(isinstance(t, HFlipTransform) for t in tfm.transforms): + output.pred_densepose = HFlipConverter.convert( + output.pred_densepose, self._transform_data + ) + self._incremental_avg_dp(outputs[0].pred_densepose, output.pred_densepose, idx) + return outputs[0].pred_densepose + + # incrementally computed average: u_(n + 1) = u_n + (x_(n+1) - u_n) / (n + 1). + def _incremental_avg_dp(self, avg, new_el, idx): + for attr in ["coarse_segm", "fine_segm", "u", "v"]: + setattr(avg, attr, (getattr(avg, attr) * idx + getattr(new_el, attr)) / (idx + 1)) + if idx: + # Deletion of the > 0 index intermediary values to prevent GPU OOM + setattr(new_el, attr, None) + return avg + + +def _inverse_rotation(densepose_attrs, boxes, transform): + # resample outputs to image size and rotate back the densepose preds + # on the rotated images to the space of the original image + if len(boxes) == 0 or not isinstance(transform, RotationTransform): + return densepose_attrs + boxes = boxes.int().cpu().numpy() + wh_boxes = boxes[:, 2:] - boxes[:, :2] # bboxes in the rotated space + inv_boxes = rotate_box_inverse(transform, boxes).astype(int) # bboxes in original image + wh_diff = (inv_boxes[:, 2:] - inv_boxes[:, :2] - wh_boxes) // 2 # diff between new/old bboxes + rotation_matrix = torch.tensor([transform.rm_image]).to(device=densepose_attrs.device).float() + rotation_matrix[:, :, -1] = 0 + # To apply grid_sample for rotation, we need to have enough space to fit the original and + # rotated bboxes. l_bds and r_bds are the left/right bounds that will be used to + # crop the difference once the rotation is done + l_bds = np.maximum(0, -wh_diff) + for i in range(len(densepose_attrs)): + if min(wh_boxes[i]) <= 0: + continue + densepose_attr = densepose_attrs[[i]].clone() + # 1. Interpolate densepose attribute to size of the rotated bbox + densepose_attr = F.interpolate(densepose_attr, wh_boxes[i].tolist()[::-1], mode="bilinear") + # 2. Pad the interpolated attribute so it has room for the original + rotated bbox + densepose_attr = F.pad(densepose_attr, tuple(np.repeat(np.maximum(0, wh_diff[i]), 2))) + # 3. Compute rotation grid and transform + grid = F.affine_grid(rotation_matrix, size=densepose_attr.shape) + densepose_attr = F.grid_sample(densepose_attr, grid) + # 4. Compute right bounds and crop the densepose_attr to the size of the original bbox + r_bds = densepose_attr.shape[2:][::-1] - l_bds[i] + densepose_attr = densepose_attr[:, :, l_bds[i][1] : r_bds[1], l_bds[i][0] : r_bds[0]] + if min(densepose_attr.shape) > 0: + # Interpolate back to the original size of the densepose attribute + densepose_attr = F.interpolate( + densepose_attr, densepose_attrs.shape[-2:], mode="bilinear" + ) + # Adding a very small probability to the background class to fill padded zones + densepose_attr[:, 0] += 1e-10 + densepose_attrs[i] = densepose_attr + return densepose_attrs + + +def rotate_box_inverse(rot_tfm, rotated_box): + """ + rotated_box is a N * 4 array of [x0, y0, x1, y1] boxes + When a bbox is rotated, it gets bigger, because we need to surround the tilted bbox + So when a bbox is rotated then inverse-rotated, it is much bigger than the original + This function aims to invert the rotation on the box, but also resize it to its original size + """ + # 1. Compute the inverse rotation of the rotated bboxes (bigger than it ) + invrot_box = rot_tfm.inverse().apply_box(rotated_box) + h, w = rotated_box[:, 3] - rotated_box[:, 1], rotated_box[:, 2] - rotated_box[:, 0] + ih, iw = invrot_box[:, 3] - invrot_box[:, 1], invrot_box[:, 2] - invrot_box[:, 0] + assert 2 * rot_tfm.abs_sin**2 != 1, "45 degrees angle can't be inverted" + # 2. Inverse the corresponding computation in the rotation transform + # to get the original height/width of the rotated boxes + orig_h = (h * rot_tfm.abs_cos - w * rot_tfm.abs_sin) / (1 - 2 * rot_tfm.abs_sin**2) + orig_w = (w * rot_tfm.abs_cos - h * rot_tfm.abs_sin) / (1 - 2 * rot_tfm.abs_sin**2) + # 3. Resize the inverse-rotated bboxes to their original size + invrot_box[:, 0] += (iw - orig_w) / 2 + invrot_box[:, 1] += (ih - orig_h) / 2 + invrot_box[:, 2] -= (iw - orig_w) / 2 + invrot_box[:, 3] -= (ih - orig_h) / 2 + + return invrot_box diff --git a/detectron2/projects/DensePose/densepose/modeling/utils.py b/detectron2/projects/DensePose/densepose/modeling/utils.py new file mode 100755 index 0000000..2e76eb9 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/modeling/utils.py @@ -0,0 +1,11 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from torch import nn + + +def initialize_module_params(module: nn.Module) -> None: + for name, param in module.named_parameters(): + if "bias" in name: + nn.init.constant_(param, 0) + elif "weight" in name: + nn.init.kaiming_normal_(param, mode="fan_out", nonlinearity="relu") diff --git a/detectron2/projects/DensePose/densepose/structures/__init__.py b/detectron2/projects/DensePose/densepose/structures/__init__.py new file mode 100755 index 0000000..ed32c5e --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/__init__.py @@ -0,0 +1,17 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from .chart import DensePoseChartPredictorOutput +from .chart_confidence import decorate_predictor_output_class_with_confidences +from .cse_confidence import decorate_cse_predictor_output_class_with_confidences +from .chart_result import ( + DensePoseChartResult, + DensePoseChartResultWithConfidences, + quantize_densepose_chart_result, + compress_quantized_densepose_chart_result, + decompress_compressed_densepose_chart_result, +) +from .cse import DensePoseEmbeddingPredictorOutput +from .data_relative import DensePoseDataRelative +from .list import DensePoseList +from .mesh import Mesh, create_mesh +from .transform_data import DensePoseTransformData, normalized_coords_transform diff --git a/detectron2/projects/DensePose/densepose/structures/chart.py b/detectron2/projects/DensePose/densepose/structures/chart.py new file mode 100755 index 0000000..115cc08 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/chart.py @@ -0,0 +1,70 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from dataclasses import dataclass +from typing import Union +import torch + + +@dataclass +class DensePoseChartPredictorOutput: + """ + Predictor output that contains segmentation and inner coordinates predictions for predefined + body parts: + * coarse segmentation, a tensor of shape [N, K, Hout, Wout] + * fine segmentation, a tensor of shape [N, C, Hout, Wout] + * U coordinates, a tensor of shape [N, C, Hout, Wout] + * V coordinates, a tensor of shape [N, C, Hout, Wout] + where + - N is the number of instances + - K is the number of coarse segmentation channels ( + 2 = foreground / background, + 15 = one of 14 body parts / background) + - C is the number of fine segmentation channels ( + 24 fine body parts / background) + - Hout and Wout are height and width of predictions + """ + + coarse_segm: torch.Tensor + fine_segm: torch.Tensor + u: torch.Tensor + v: torch.Tensor + + def __len__(self): + """ + Number of instances (N) in the output + """ + return self.coarse_segm.size(0) + + def __getitem__( + self, item: Union[int, slice, torch.BoolTensor] + ) -> "DensePoseChartPredictorOutput": + """ + Get outputs for the selected instance(s) + + Args: + item (int or slice or tensor): selected items + """ + if isinstance(item, int): + return DensePoseChartPredictorOutput( + coarse_segm=self.coarse_segm[item].unsqueeze(0), + fine_segm=self.fine_segm[item].unsqueeze(0), + u=self.u[item].unsqueeze(0), + v=self.v[item].unsqueeze(0), + ) + else: + return DensePoseChartPredictorOutput( + coarse_segm=self.coarse_segm[item], + fine_segm=self.fine_segm[item], + u=self.u[item], + v=self.v[item], + ) + + def to(self, device: torch.device): + """ + Transfers all tensors to the given device + """ + coarse_segm = self.coarse_segm.to(device) + fine_segm = self.fine_segm.to(device) + u = self.u.to(device) + v = self.v.to(device) + return DensePoseChartPredictorOutput(coarse_segm=coarse_segm, fine_segm=fine_segm, u=u, v=v) diff --git a/detectron2/projects/DensePose/densepose/structures/chart_confidence.py b/detectron2/projects/DensePose/densepose/structures/chart_confidence.py new file mode 100755 index 0000000..57c6325 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/chart_confidence.py @@ -0,0 +1,98 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from dataclasses import make_dataclass +from functools import lru_cache +from typing import Any, Optional +import torch + + +@lru_cache(maxsize=None) +def decorate_predictor_output_class_with_confidences(BasePredictorOutput: type) -> type: + """ + Create a new output class from an existing one by adding new attributes + related to confidence estimation: + - sigma_1 (tensor) + - sigma_2 (tensor) + - kappa_u (tensor) + - kappa_v (tensor) + - fine_segm_confidence (tensor) + - coarse_segm_confidence (tensor) + + Details on confidence estimation parameters can be found in: + N. Neverova, D. Novotny, A. Vedaldi "Correlated Uncertainty for Learning + Dense Correspondences from Noisy Labels", p. 918--926, in Proc. NIPS 2019 + A. Sanakoyeu et al., Transferring Dense Pose to Proximal Animal Classes, CVPR 2020 + + The new class inherits the provided `BasePredictorOutput` class, + it's name is composed of the name of the provided class and + "WithConfidences" suffix. + + Args: + BasePredictorOutput (type): output type to which confidence data + is to be added, assumed to be a dataclass + Return: + New dataclass derived from the provided one that has attributes + for confidence estimation + """ + + PredictorOutput = make_dataclass( + BasePredictorOutput.__name__ + "WithConfidences", + fields=[ + ("sigma_1", Optional[torch.Tensor], None), + ("sigma_2", Optional[torch.Tensor], None), + ("kappa_u", Optional[torch.Tensor], None), + ("kappa_v", Optional[torch.Tensor], None), + ("fine_segm_confidence", Optional[torch.Tensor], None), + ("coarse_segm_confidence", Optional[torch.Tensor], None), + ], + bases=(BasePredictorOutput,), + ) + + # add possibility to index PredictorOutput + + def slice_if_not_none(data, item): + if data is None: + return None + if isinstance(item, int): + return data[item].unsqueeze(0) + return data[item] + + def PredictorOutput_getitem(self, item): + PredictorOutput = type(self) + base_predictor_output_sliced = super(PredictorOutput, self).__getitem__(item) + return PredictorOutput( + **base_predictor_output_sliced.__dict__, + coarse_segm_confidence=slice_if_not_none(self.coarse_segm_confidence, item), + fine_segm_confidence=slice_if_not_none(self.fine_segm_confidence, item), + sigma_1=slice_if_not_none(self.sigma_1, item), + sigma_2=slice_if_not_none(self.sigma_2, item), + kappa_u=slice_if_not_none(self.kappa_u, item), + kappa_v=slice_if_not_none(self.kappa_v, item), + ) + + PredictorOutput.__getitem__ = PredictorOutput_getitem + + def PredictorOutput_to(self, device: torch.device): + """ + Transfers all tensors to the given device + """ + PredictorOutput = type(self) + base_predictor_output_to = super(PredictorOutput, self).to(device) # pyre-ignore[16] + + def to_device_if_tensor(var: Any): + if isinstance(var, torch.Tensor): + return var.to(device) + return var + + return PredictorOutput( + **base_predictor_output_to.__dict__, + sigma_1=to_device_if_tensor(self.sigma_1), + sigma_2=to_device_if_tensor(self.sigma_2), + kappa_u=to_device_if_tensor(self.kappa_u), + kappa_v=to_device_if_tensor(self.kappa_v), + fine_segm_confidence=to_device_if_tensor(self.fine_segm_confidence), + coarse_segm_confidence=to_device_if_tensor(self.coarse_segm_confidence), + ) + + PredictorOutput.to = PredictorOutput_to + return PredictorOutput diff --git a/detectron2/projects/DensePose/densepose/structures/chart_result.py b/detectron2/projects/DensePose/densepose/structures/chart_result.py new file mode 100755 index 0000000..003933d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/chart_result.py @@ -0,0 +1,183 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from dataclasses import dataclass +from typing import Any, Optional, Tuple +import torch + + +@dataclass +class DensePoseChartResult: + """ + DensePose results for chart-based methods represented by labels and inner + coordinates (U, V) of individual charts. Each chart is a 2D manifold + that has an associated label and is parameterized by two coordinates U and V. + Both U and V take values in [0, 1]. + Thus the results are represented by two tensors: + - labels (tensor [H, W] of long): contains estimated label for each pixel of + the detection bounding box of size (H, W) + - uv (tensor [2, H, W] of float): contains estimated U and V coordinates + for each pixel of the detection bounding box of size (H, W) + """ + + labels: torch.Tensor + uv: torch.Tensor + + def to(self, device: torch.device): + """ + Transfers all tensors to the given device + """ + labels = self.labels.to(device) + uv = self.uv.to(device) + return DensePoseChartResult(labels=labels, uv=uv) + + +@dataclass +class DensePoseChartResultWithConfidences: + """ + We add confidence values to DensePoseChartResult + Thus the results are represented by two tensors: + - labels (tensor [H, W] of long): contains estimated label for each pixel of + the detection bounding box of size (H, W) + - uv (tensor [2, H, W] of float): contains estimated U and V coordinates + for each pixel of the detection bounding box of size (H, W) + Plus one [H, W] tensor of float for each confidence type + """ + + labels: torch.Tensor + uv: torch.Tensor + sigma_1: Optional[torch.Tensor] = None + sigma_2: Optional[torch.Tensor] = None + kappa_u: Optional[torch.Tensor] = None + kappa_v: Optional[torch.Tensor] = None + fine_segm_confidence: Optional[torch.Tensor] = None + coarse_segm_confidence: Optional[torch.Tensor] = None + + def to(self, device: torch.device): + """ + Transfers all tensors to the given device, except if their value is None + """ + + def to_device_if_tensor(var: Any): + if isinstance(var, torch.Tensor): + return var.to(device) + return var + + return DensePoseChartResultWithConfidences( + labels=self.labels.to(device), + uv=self.uv.to(device), + sigma_1=to_device_if_tensor(self.sigma_1), + sigma_2=to_device_if_tensor(self.sigma_2), + kappa_u=to_device_if_tensor(self.kappa_u), + kappa_v=to_device_if_tensor(self.kappa_v), + fine_segm_confidence=to_device_if_tensor(self.fine_segm_confidence), + coarse_segm_confidence=to_device_if_tensor(self.coarse_segm_confidence), + ) + + +@dataclass +class DensePoseChartResultQuantized: + """ + DensePose results for chart-based methods represented by labels and quantized + inner coordinates (U, V) of individual charts. Each chart is a 2D manifold + that has an associated label and is parameterized by two coordinates U and V. + Both U and V take values in [0, 1]. + Quantized coordinates Uq and Vq have uint8 values which are obtained as: + Uq = U * 255 (hence 0 <= Uq <= 255) + Vq = V * 255 (hence 0 <= Vq <= 255) + Thus the results are represented by one tensor: + - labels_uv_uint8 (tensor [3, H, W] of uint8): contains estimated label + and quantized coordinates Uq and Vq for each pixel of the detection + bounding box of size (H, W) + """ + + labels_uv_uint8: torch.Tensor + + def to(self, device: torch.device): + """ + Transfers all tensors to the given device + """ + labels_uv_uint8 = self.labels_uv_uint8.to(device) + return DensePoseChartResultQuantized(labels_uv_uint8=labels_uv_uint8) + + +@dataclass +class DensePoseChartResultCompressed: + """ + DensePose results for chart-based methods represented by a PNG-encoded string. + The tensor of quantized DensePose results of size [3, H, W] is considered + as an image with 3 color channels. PNG compression is applied and the result + is stored as a Base64-encoded string. The following attributes are defined: + - shape_chw (tuple of 3 int): contains shape of the result tensor + (number of channels, height, width) + - labels_uv_str (str): contains Base64-encoded results tensor of size + [3, H, W] compressed with PNG compression methods + """ + + shape_chw: Tuple[int, int, int] + labels_uv_str: str + + +def quantize_densepose_chart_result(result: DensePoseChartResult) -> DensePoseChartResultQuantized: + """ + Applies quantization to DensePose chart-based result. + + Args: + result (DensePoseChartResult): DensePose chart-based result + Return: + Quantized DensePose chart-based result (DensePoseChartResultQuantized) + """ + h, w = result.labels.shape + labels_uv_uint8 = torch.zeros([3, h, w], dtype=torch.uint8, device=result.labels.device) + labels_uv_uint8[0] = result.labels + labels_uv_uint8[1:] = (result.uv * 255).clamp(0, 255).byte() + return DensePoseChartResultQuantized(labels_uv_uint8=labels_uv_uint8) + + +def compress_quantized_densepose_chart_result( + result: DensePoseChartResultQuantized, +) -> DensePoseChartResultCompressed: + """ + Compresses quantized DensePose chart-based result + + Args: + result (DensePoseChartResultQuantized): quantized DensePose chart-based result + Return: + Compressed DensePose chart-based result (DensePoseChartResultCompressed) + """ + import base64 + import numpy as np + from io import BytesIO + from PIL import Image + + labels_uv_uint8_np_chw = result.labels_uv_uint8.cpu().numpy() + labels_uv_uint8_np_hwc = np.moveaxis(labels_uv_uint8_np_chw, 0, -1) + im = Image.fromarray(labels_uv_uint8_np_hwc) + fstream = BytesIO() + im.save(fstream, format="png", optimize=True) + labels_uv_str = base64.encodebytes(fstream.getvalue()).decode() + shape_chw = labels_uv_uint8_np_chw.shape + return DensePoseChartResultCompressed(labels_uv_str=labels_uv_str, shape_chw=shape_chw) + + +def decompress_compressed_densepose_chart_result( + result: DensePoseChartResultCompressed, +) -> DensePoseChartResultQuantized: + """ + Decompresses DensePose chart-based result encoded into a base64 string + + Args: + result (DensePoseChartResultCompressed): compressed DensePose chart result + Return: + Quantized DensePose chart-based result (DensePoseChartResultQuantized) + """ + import base64 + import numpy as np + from io import BytesIO + from PIL import Image + + fstream = BytesIO(base64.decodebytes(result.labels_uv_str.encode())) + im = Image.open(fstream) + labels_uv_uint8_np_chw = np.moveaxis(np.array(im, dtype=np.uint8), -1, 0) + return DensePoseChartResultQuantized( + labels_uv_uint8=torch.from_numpy(labels_uv_uint8_np_chw.reshape(result.shape_chw)) + ) diff --git a/detectron2/projects/DensePose/densepose/structures/cse.py b/detectron2/projects/DensePose/densepose/structures/cse.py new file mode 100755 index 0000000..9cd65da --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/cse.py @@ -0,0 +1,52 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +from dataclasses import dataclass +from typing import Union +import torch + + +@dataclass +class DensePoseEmbeddingPredictorOutput: + """ + Predictor output that contains embedding and coarse segmentation data: + * embedding: float tensor of size [N, D, H, W], contains estimated embeddings + * coarse_segm: float tensor of size [N, K, H, W] + Here D = MODEL.ROI_DENSEPOSE_HEAD.CSE.EMBED_SIZE + K = MODEL.ROI_DENSEPOSE_HEAD.NUM_COARSE_SEGM_CHANNELS + """ + + embedding: torch.Tensor + coarse_segm: torch.Tensor + + def __len__(self): + """ + Number of instances (N) in the output + """ + return self.coarse_segm.size(0) + + def __getitem__( + self, item: Union[int, slice, torch.BoolTensor] + ) -> "DensePoseEmbeddingPredictorOutput": + """ + Get outputs for the selected instance(s) + + Args: + item (int or slice or tensor): selected items + """ + if isinstance(item, int): + return DensePoseEmbeddingPredictorOutput( + coarse_segm=self.coarse_segm[item].unsqueeze(0), + embedding=self.embedding[item].unsqueeze(0), + ) + else: + return DensePoseEmbeddingPredictorOutput( + coarse_segm=self.coarse_segm[item], embedding=self.embedding[item] + ) + + def to(self, device: torch.device): + """ + Transfers all tensors to the given device + """ + coarse_segm = self.coarse_segm.to(device) + embedding = self.embedding.to(device) + return DensePoseEmbeddingPredictorOutput(coarse_segm=coarse_segm, embedding=embedding) diff --git a/detectron2/projects/DensePose/densepose/structures/cse_confidence.py b/detectron2/projects/DensePose/densepose/structures/cse_confidence.py new file mode 100755 index 0000000..ee5166f --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/cse_confidence.py @@ -0,0 +1,78 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +from dataclasses import make_dataclass +from functools import lru_cache +from typing import Any, Optional +import torch + + +@lru_cache(maxsize=None) +def decorate_cse_predictor_output_class_with_confidences(BasePredictorOutput: type) -> type: + """ + Create a new output class from an existing one by adding new attributes + related to confidence estimation: + - coarse_segm_confidence (tensor) + + Details on confidence estimation parameters can be found in: + N. Neverova, D. Novotny, A. Vedaldi "Correlated Uncertainty for Learning + Dense Correspondences from Noisy Labels", p. 918--926, in Proc. NIPS 2019 + A. Sanakoyeu et al., Transferring Dense Pose to Proximal Animal Classes, CVPR 2020 + + The new class inherits the provided `BasePredictorOutput` class, + it's name is composed of the name of the provided class and + "WithConfidences" suffix. + + Args: + BasePredictorOutput (type): output type to which confidence data + is to be added, assumed to be a dataclass + Return: + New dataclass derived from the provided one that has attributes + for confidence estimation + """ + + PredictorOutput = make_dataclass( + BasePredictorOutput.__name__ + "WithConfidences", + fields=[ + ("coarse_segm_confidence", Optional[torch.Tensor], None), + ], + bases=(BasePredictorOutput,), + ) + + # add possibility to index PredictorOutput + + def slice_if_not_none(data, item): + if data is None: + return None + if isinstance(item, int): + return data[item].unsqueeze(0) + return data[item] + + def PredictorOutput_getitem(self, item): + PredictorOutput = type(self) + base_predictor_output_sliced = super(PredictorOutput, self).__getitem__(item) + return PredictorOutput( + **base_predictor_output_sliced.__dict__, + coarse_segm_confidence=slice_if_not_none(self.coarse_segm_confidence, item), + ) + + PredictorOutput.__getitem__ = PredictorOutput_getitem + + def PredictorOutput_to(self, device: torch.device): + """ + Transfers all tensors to the given device + """ + PredictorOutput = type(self) + base_predictor_output_to = super(PredictorOutput, self).to(device) # pyre-ignore[16] + + def to_device_if_tensor(var: Any): + if isinstance(var, torch.Tensor): + return var.to(device) + return var + + return PredictorOutput( + **base_predictor_output_to.__dict__, + coarse_segm_confidence=to_device_if_tensor(self.coarse_segm_confidence), + ) + + PredictorOutput.to = PredictorOutput_to + return PredictorOutput diff --git a/detectron2/projects/DensePose/densepose/structures/data_relative.py b/detectron2/projects/DensePose/densepose/structures/data_relative.py new file mode 100755 index 0000000..a148fa7 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/data_relative.py @@ -0,0 +1,243 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import torch +from torch.nn import functional as F + +from densepose.data.meshes.catalog import MeshCatalog +from densepose.structures.mesh import load_mesh_symmetry +from densepose.structures.transform_data import DensePoseTransformData + + +class DensePoseDataRelative(object): + """ + Dense pose relative annotations that can be applied to any bounding box: + x - normalized X coordinates [0, 255] of annotated points + y - normalized Y coordinates [0, 255] of annotated points + i - body part labels 0,...,24 for annotated points + u - body part U coordinates [0, 1] for annotated points + v - body part V coordinates [0, 1] for annotated points + segm - 256x256 segmentation mask with values 0,...,14 + To obtain absolute x and y data wrt some bounding box one needs to first + divide the data by 256, multiply by the respective bounding box size + and add bounding box offset: + x_img = x0 + x_norm * w / 256.0 + y_img = y0 + y_norm * h / 256.0 + Segmentation masks are typically sampled to get image-based masks. + """ + + # Key for normalized X coordinates in annotation dict + X_KEY = "dp_x" + # Key for normalized Y coordinates in annotation dict + Y_KEY = "dp_y" + # Key for U part coordinates in annotation dict (used in chart-based annotations) + U_KEY = "dp_U" + # Key for V part coordinates in annotation dict (used in chart-based annotations) + V_KEY = "dp_V" + # Key for I point labels in annotation dict (used in chart-based annotations) + I_KEY = "dp_I" + # Key for segmentation mask in annotation dict + S_KEY = "dp_masks" + # Key for vertex ids (used in continuous surface embeddings annotations) + VERTEX_IDS_KEY = "dp_vertex" + # Key for mesh id (used in continuous surface embeddings annotations) + MESH_NAME_KEY = "ref_model" + # Number of body parts in segmentation masks + N_BODY_PARTS = 14 + # Number of parts in point labels + N_PART_LABELS = 24 + MASK_SIZE = 256 + + def __init__(self, annotation, cleanup=False): + self.x = torch.as_tensor(annotation[DensePoseDataRelative.X_KEY]) + self.y = torch.as_tensor(annotation[DensePoseDataRelative.Y_KEY]) + if ( + DensePoseDataRelative.I_KEY in annotation + and DensePoseDataRelative.U_KEY in annotation + and DensePoseDataRelative.V_KEY in annotation + ): + self.i = torch.as_tensor(annotation[DensePoseDataRelative.I_KEY]) + self.u = torch.as_tensor(annotation[DensePoseDataRelative.U_KEY]) + self.v = torch.as_tensor(annotation[DensePoseDataRelative.V_KEY]) + if ( + DensePoseDataRelative.VERTEX_IDS_KEY in annotation + and DensePoseDataRelative.MESH_NAME_KEY in annotation + ): + self.vertex_ids = torch.as_tensor( + annotation[DensePoseDataRelative.VERTEX_IDS_KEY], dtype=torch.long + ) + self.mesh_id = MeshCatalog.get_mesh_id(annotation[DensePoseDataRelative.MESH_NAME_KEY]) + if DensePoseDataRelative.S_KEY in annotation: + self.segm = DensePoseDataRelative.extract_segmentation_mask(annotation) + self.device = torch.device("cpu") + if cleanup: + DensePoseDataRelative.cleanup_annotation(annotation) + + def to(self, device): + if self.device == device: + return self + new_data = DensePoseDataRelative.__new__(DensePoseDataRelative) + new_data.x = self.x.to(device) + new_data.y = self.y.to(device) + for attr in ["i", "u", "v", "vertex_ids", "segm"]: + if hasattr(self, attr): + setattr(new_data, attr, getattr(self, attr).to(device)) + if hasattr(self, "mesh_id"): + new_data.mesh_id = self.mesh_id + new_data.device = device + return new_data + + @staticmethod + def extract_segmentation_mask(annotation): + import pycocotools.mask as mask_utils + + # TODO: annotation instance is accepted if it contains either + # DensePose segmentation or instance segmentation. However, here we + # only rely on DensePose segmentation + poly_specs = annotation[DensePoseDataRelative.S_KEY] + if isinstance(poly_specs, torch.Tensor): + # data is already given as mask tensors, no need to decode + return poly_specs + segm = torch.zeros((DensePoseDataRelative.MASK_SIZE,) * 2, dtype=torch.float32) + if isinstance(poly_specs, dict): + if poly_specs: + mask = mask_utils.decode(poly_specs) + segm[mask > 0] = 1 + else: + for i in range(len(poly_specs)): + poly_i = poly_specs[i] + if poly_i: + mask_i = mask_utils.decode(poly_i) + segm[mask_i > 0] = i + 1 + return segm + + @staticmethod + def validate_annotation(annotation): + for key in [ + DensePoseDataRelative.X_KEY, + DensePoseDataRelative.Y_KEY, + ]: + if key not in annotation: + return False, "no {key} data in the annotation".format(key=key) + valid_for_iuv_setting = all( + key in annotation + for key in [ + DensePoseDataRelative.I_KEY, + DensePoseDataRelative.U_KEY, + DensePoseDataRelative.V_KEY, + ] + ) + valid_for_cse_setting = all( + key in annotation + for key in [ + DensePoseDataRelative.VERTEX_IDS_KEY, + DensePoseDataRelative.MESH_NAME_KEY, + ] + ) + if not valid_for_iuv_setting and not valid_for_cse_setting: + return ( + False, + "expected either {} (IUV setting) or {} (CSE setting) annotations".format( + ", ".join( + [ + DensePoseDataRelative.I_KEY, + DensePoseDataRelative.U_KEY, + DensePoseDataRelative.V_KEY, + ] + ), + ", ".join( + [ + DensePoseDataRelative.VERTEX_IDS_KEY, + DensePoseDataRelative.MESH_NAME_KEY, + ] + ), + ), + ) + return True, None + + @staticmethod + def cleanup_annotation(annotation): + for key in [ + DensePoseDataRelative.X_KEY, + DensePoseDataRelative.Y_KEY, + DensePoseDataRelative.I_KEY, + DensePoseDataRelative.U_KEY, + DensePoseDataRelative.V_KEY, + DensePoseDataRelative.S_KEY, + DensePoseDataRelative.VERTEX_IDS_KEY, + DensePoseDataRelative.MESH_NAME_KEY, + ]: + if key in annotation: + del annotation[key] + + def apply_transform(self, transforms, densepose_transform_data): + self._transform_pts(transforms, densepose_transform_data) + if hasattr(self, "segm"): + self._transform_segm(transforms, densepose_transform_data) + + def _transform_pts(self, transforms, dp_transform_data): + import detectron2.data.transforms as T + + # NOTE: This assumes that HorizFlipTransform is the only one that does flip + do_hflip = sum(isinstance(t, T.HFlipTransform) for t in transforms.transforms) % 2 == 1 + if do_hflip: + self.x = self.MASK_SIZE - self.x + if hasattr(self, "i"): + self._flip_iuv_semantics(dp_transform_data) + if hasattr(self, "vertex_ids"): + self._flip_vertices() + + for t in transforms.transforms: + if isinstance(t, T.RotationTransform): + xy_scale = np.array((t.w, t.h)) / DensePoseDataRelative.MASK_SIZE + xy = t.apply_coords(np.stack((self.x, self.y), axis=1) * xy_scale) + self.x, self.y = torch.tensor(xy / xy_scale, dtype=self.x.dtype).T + + def _flip_iuv_semantics(self, dp_transform_data: DensePoseTransformData) -> None: + i_old = self.i.clone() + uv_symmetries = dp_transform_data.uv_symmetries + pt_label_symmetries = dp_transform_data.point_label_symmetries + for i in range(self.N_PART_LABELS): + if i + 1 in i_old: + annot_indices_i = i_old == i + 1 + if pt_label_symmetries[i + 1] != i + 1: + self.i[annot_indices_i] = pt_label_symmetries[i + 1] + u_loc = (self.u[annot_indices_i] * 255).long() + v_loc = (self.v[annot_indices_i] * 255).long() + self.u[annot_indices_i] = uv_symmetries["U_transforms"][i][v_loc, u_loc].to( + device=self.u.device + ) + self.v[annot_indices_i] = uv_symmetries["V_transforms"][i][v_loc, u_loc].to( + device=self.v.device + ) + + def _flip_vertices(self): + mesh_info = MeshCatalog[MeshCatalog.get_mesh_name(self.mesh_id)] + mesh_symmetry = ( + load_mesh_symmetry(mesh_info.symmetry) if mesh_info.symmetry is not None else None + ) + self.vertex_ids = mesh_symmetry["vertex_transforms"][self.vertex_ids] + + def _transform_segm(self, transforms, dp_transform_data): + import detectron2.data.transforms as T + + # NOTE: This assumes that HorizFlipTransform is the only one that does flip + do_hflip = sum(isinstance(t, T.HFlipTransform) for t in transforms.transforms) % 2 == 1 + if do_hflip: + self.segm = torch.flip(self.segm, [1]) + self._flip_segm_semantics(dp_transform_data) + + for t in transforms.transforms: + if isinstance(t, T.RotationTransform): + self._transform_segm_rotation(t) + + def _flip_segm_semantics(self, dp_transform_data): + old_segm = self.segm.clone() + mask_label_symmetries = dp_transform_data.mask_label_symmetries + for i in range(self.N_BODY_PARTS): + if mask_label_symmetries[i + 1] != i + 1: + self.segm[old_segm == i + 1] = mask_label_symmetries[i + 1] + + def _transform_segm_rotation(self, rotation): + self.segm = F.interpolate(self.segm[None, None, :], (rotation.h, rotation.w)).numpy() + self.segm = torch.tensor(rotation.apply_segmentation(self.segm[0, 0]))[None, None, :] + self.segm = F.interpolate(self.segm, [DensePoseDataRelative.MASK_SIZE] * 2)[0, 0] diff --git a/detectron2/projects/DensePose/densepose/structures/list.py b/detectron2/projects/DensePose/densepose/structures/list.py new file mode 100755 index 0000000..3dc40b0 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/list.py @@ -0,0 +1,70 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch + +from densepose.structures.data_relative import DensePoseDataRelative + + +class DensePoseList(object): + + _TORCH_DEVICE_CPU = torch.device("cpu") + + def __init__(self, densepose_datas, boxes_xyxy_abs, image_size_hw, device=_TORCH_DEVICE_CPU): + assert len(densepose_datas) == len( + boxes_xyxy_abs + ), "Attempt to initialize DensePoseList with {} DensePose datas " "and {} boxes".format( + len(densepose_datas), len(boxes_xyxy_abs) + ) + self.densepose_datas = [] + for densepose_data in densepose_datas: + assert isinstance(densepose_data, DensePoseDataRelative) or densepose_data is None, ( + "Attempt to initialize DensePoseList with DensePose datas " + "of type {}, expected DensePoseDataRelative".format(type(densepose_data)) + ) + densepose_data_ondevice = ( + densepose_data.to(device) if densepose_data is not None else None + ) + self.densepose_datas.append(densepose_data_ondevice) + self.boxes_xyxy_abs = boxes_xyxy_abs.to(device) + self.image_size_hw = image_size_hw + self.device = device + + def to(self, device): + if self.device == device: + return self + return DensePoseList(self.densepose_datas, self.boxes_xyxy_abs, self.image_size_hw, device) + + def __iter__(self): + return iter(self.densepose_datas) + + def __len__(self): + return len(self.densepose_datas) + + def __repr__(self): + s = self.__class__.__name__ + "(" + s += "num_instances={}, ".format(len(self.densepose_datas)) + s += "image_width={}, ".format(self.image_size_hw[1]) + s += "image_height={})".format(self.image_size_hw[0]) + return s + + def __getitem__(self, item): + if isinstance(item, int): + densepose_data_rel = self.densepose_datas[item] + return densepose_data_rel + elif isinstance(item, slice): + densepose_datas_rel = self.densepose_datas[item] + boxes_xyxy_abs = self.boxes_xyxy_abs[item] + return DensePoseList( + densepose_datas_rel, boxes_xyxy_abs, self.image_size_hw, self.device + ) + elif isinstance(item, torch.Tensor) and (item.dtype == torch.bool): + densepose_datas_rel = [self.densepose_datas[i] for i, x in enumerate(item) if x > 0] + boxes_xyxy_abs = self.boxes_xyxy_abs[item] + return DensePoseList( + densepose_datas_rel, boxes_xyxy_abs, self.image_size_hw, self.device + ) + else: + densepose_datas_rel = [self.densepose_datas[i] for i in item] + boxes_xyxy_abs = self.boxes_xyxy_abs[item] + return DensePoseList( + densepose_datas_rel, boxes_xyxy_abs, self.image_size_hw, self.device + ) diff --git a/detectron2/projects/DensePose/densepose/structures/mesh.py b/detectron2/projects/DensePose/densepose/structures/mesh.py new file mode 100755 index 0000000..589515d --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/mesh.py @@ -0,0 +1,172 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import pickle +from functools import lru_cache +from typing import Dict, Optional, Tuple +import torch + +from detectron2.utils.file_io import PathManager + +from densepose.data.meshes.catalog import MeshCatalog, MeshInfo + + +def _maybe_copy_to_device( + attribute: Optional[torch.Tensor], device: torch.device +) -> Optional[torch.Tensor]: + if attribute is None: + return None + return attribute.to(device) + + +class Mesh: + def __init__( + self, + vertices: Optional[torch.Tensor] = None, + faces: Optional[torch.Tensor] = None, + geodists: Optional[torch.Tensor] = None, + symmetry: Optional[Dict[str, torch.Tensor]] = None, + texcoords: Optional[torch.Tensor] = None, + mesh_info: Optional[MeshInfo] = None, + device: Optional[torch.device] = None, + ): + """ + Args: + vertices (tensor [N, 3] of float32): vertex coordinates in 3D + faces (tensor [M, 3] of long): triangular face represented as 3 + vertex indices + geodists (tensor [N, N] of float32): geodesic distances from + vertex `i` to vertex `j` (optional, default: None) + symmetry (dict: str -> tensor): various mesh symmetry data: + - "vertex_transforms": vertex mapping under horizontal flip, + tensor of size [N] of type long; vertex `i` is mapped to + vertex `tensor[i]` (optional, default: None) + texcoords (tensor [N, 2] of float32): texture coordinates, i.e. global + and normalized mesh UVs (optional, default: None) + mesh_info (MeshInfo type): necessary to load the attributes on-the-go, + can be used instead of passing all the variables one by one + device (torch.device): device of the Mesh. If not provided, will use + the device of the vertices + """ + self._vertices = vertices + self._faces = faces + self._geodists = geodists + self._symmetry = symmetry + self._texcoords = texcoords + self.mesh_info = mesh_info + self.device = device + + assert self._vertices is not None or self.mesh_info is not None + + all_fields = [self._vertices, self._faces, self._geodists, self._texcoords] + + if self.device is None: + for field in all_fields: + if field is not None: + self.device = field.device + break + if self.device is None and symmetry is not None: + for key in symmetry: + self.device = symmetry[key].device + break + self.device = torch.device("cpu") if self.device is None else self.device + + assert all([var.device == self.device for var in all_fields if var is not None]) + if symmetry: + assert all(symmetry[key].device == self.device for key in symmetry) + if texcoords and vertices: + assert len(vertices) == len(texcoords) + + def to(self, device: torch.device): + device_symmetry = self._symmetry + if device_symmetry: + device_symmetry = {key: value.to(device) for key, value in device_symmetry.items()} + return Mesh( + _maybe_copy_to_device(self._vertices, device), + _maybe_copy_to_device(self._faces, device), + _maybe_copy_to_device(self._geodists, device), + device_symmetry, + _maybe_copy_to_device(self._texcoords, device), + self.mesh_info, + device, + ) + + @property + def vertices(self): + if self._vertices is None and self.mesh_info is not None: + self._vertices = load_mesh_data(self.mesh_info.data, "vertices", self.device) + return self._vertices + + @property + def faces(self): + if self._faces is None and self.mesh_info is not None: + self._faces = load_mesh_data(self.mesh_info.data, "faces", self.device) + return self._faces + + @property + def geodists(self): + if self._geodists is None and self.mesh_info is not None: + self._geodists = load_mesh_auxiliary_data(self.mesh_info.geodists, self.device) + return self._geodists + + @property + def symmetry(self): + if self._symmetry is None and self.mesh_info is not None: + self._symmetry = load_mesh_symmetry(self.mesh_info.symmetry, self.device) + return self._symmetry + + @property + def texcoords(self): + if self._texcoords is None and self.mesh_info is not None: + self._texcoords = load_mesh_auxiliary_data(self.mesh_info.texcoords, self.device) + return self._texcoords + + def get_geodists(self): + if self.geodists is None: + self.geodists = self._compute_geodists() + return self.geodists + + def _compute_geodists(self): + # TODO: compute using Laplace-Beltrami + geodists = None + return geodists + + +def load_mesh_data( + mesh_fpath: str, field: str, device: Optional[torch.device] = None +) -> Tuple[Optional[torch.Tensor], Optional[torch.Tensor]]: + with PathManager.open(mesh_fpath, "rb") as hFile: + # pyre-fixme[7]: Expected `Tuple[Optional[Tensor], Optional[Tensor]]` but + # got `Tensor`. + return torch.as_tensor(pickle.load(hFile)[field], dtype=torch.float).to( # pyre-ignore[6] + device + ) + return None + + +def load_mesh_auxiliary_data( + fpath: str, device: Optional[torch.device] = None +) -> Optional[torch.Tensor]: + fpath_local = PathManager.get_local_path(fpath) + with PathManager.open(fpath_local, "rb") as hFile: + return torch.as_tensor(pickle.load(hFile), dtype=torch.float).to(device) # pyre-ignore[6] + return None + + +@lru_cache() +def load_mesh_symmetry( + symmetry_fpath: str, device: Optional[torch.device] = None +) -> Optional[Dict[str, torch.Tensor]]: + with PathManager.open(symmetry_fpath, "rb") as hFile: + symmetry_loaded = pickle.load(hFile) # pyre-ignore[6] + symmetry = { + "vertex_transforms": torch.as_tensor( + symmetry_loaded["vertex_transforms"], dtype=torch.long + ).to(device), + } + return symmetry + return None + + +@lru_cache() +def create_mesh(mesh_name: str, device: Optional[torch.device] = None) -> Mesh: + return Mesh(mesh_info=MeshCatalog[mesh_name], device=device) diff --git a/detectron2/projects/DensePose/densepose/structures/transform_data.py b/detectron2/projects/DensePose/densepose/structures/transform_data.py new file mode 100755 index 0000000..7cac1bb --- /dev/null +++ b/detectron2/projects/DensePose/densepose/structures/transform_data.py @@ -0,0 +1,71 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import BinaryIO, Dict, Union +import torch + + +def normalized_coords_transform(x0, y0, w, h): + """ + Coordinates transform that maps top left corner to (-1, -1) and bottom + right corner to (1, 1). Used for torch.grid_sample to initialize the + grid + """ + + def f(p): + return (2 * (p[0] - x0) / w - 1, 2 * (p[1] - y0) / h - 1) + + return f + + +class DensePoseTransformData(object): + + # Horizontal symmetry label transforms used for horizontal flip + MASK_LABEL_SYMMETRIES = [0, 1, 3, 2, 5, 4, 7, 6, 9, 8, 11, 10, 13, 12, 14] + # fmt: off + POINT_LABEL_SYMMETRIES = [ 0, 1, 2, 4, 3, 6, 5, 8, 7, 10, 9, 12, 11, 14, 13, 16, 15, 18, 17, 20, 19, 22, 21, 24, 23] # noqa + # fmt: on + + def __init__(self, uv_symmetries: Dict[str, torch.Tensor], device: torch.device): + self.mask_label_symmetries = DensePoseTransformData.MASK_LABEL_SYMMETRIES + self.point_label_symmetries = DensePoseTransformData.POINT_LABEL_SYMMETRIES + self.uv_symmetries = uv_symmetries + self.device = torch.device("cpu") + + def to(self, device: torch.device, copy: bool = False) -> "DensePoseTransformData": + """ + Convert transform data to the specified device + + Args: + device (torch.device): device to convert the data to + copy (bool): flag that specifies whether to copy or to reference the data + in case the device is the same + Return: + An instance of `DensePoseTransformData` with data stored on the specified device + """ + if self.device == device and not copy: + return self + uv_symmetry_map = {} + for key in self.uv_symmetries: + uv_symmetry_map[key] = self.uv_symmetries[key].to(device=device, copy=copy) + return DensePoseTransformData(uv_symmetry_map, device) + + @staticmethod + def load(io: Union[str, BinaryIO]): + """ + Args: + io: (str or binary file-like object): input file to load data from + Returns: + An instance of `DensePoseTransformData` with transforms loaded from the file + """ + import scipy.io + + uv_symmetry_map = scipy.io.loadmat(io) + uv_symmetry_map_torch = {} + for key in ["U_transforms", "V_transforms"]: + uv_symmetry_map_torch[key] = [] + map_src = uv_symmetry_map[key] + map_dst = uv_symmetry_map_torch[key] + for i in range(map_src.shape[1]): + map_dst.append(torch.from_numpy(map_src[0, i]).to(dtype=torch.float)) + uv_symmetry_map_torch[key] = torch.stack(map_dst, dim=0) + transform_data = DensePoseTransformData(uv_symmetry_map_torch, device=torch.device("cpu")) + return transform_data diff --git a/detectron2/projects/DensePose/densepose/utils/__init__.py b/detectron2/projects/DensePose/densepose/utils/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/projects/DensePose/densepose/utils/dbhelper.py b/detectron2/projects/DensePose/densepose/utils/dbhelper.py new file mode 100755 index 0000000..65b6157 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/utils/dbhelper.py @@ -0,0 +1,147 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from typing import Any, Dict, Optional, Tuple + + +class EntrySelector(object): + """ + Base class for entry selectors + """ + + @staticmethod + def from_string(spec: str) -> "EntrySelector": + if spec == "*": + return AllEntrySelector() + return FieldEntrySelector(spec) + + +class AllEntrySelector(EntrySelector): + """ + Selector that accepts all entries + """ + + SPECIFIER = "*" + + def __call__(self, entry): + return True + + +class FieldEntrySelector(EntrySelector): + """ + Selector that accepts only entries that match provided field + specifier(s). Only a limited set of specifiers is supported for now: + ::=[] + ::=[] + is a valid identifier + ::= "int" | "str" + ::= "=" + ::= "," + ::= ":" + ::= | + ::= + ::= "-" + is a string without spaces and special symbols + (e.g. , , , ) + """ + + _SPEC_DELIM = "," + _TYPE_DELIM = ":" + _RANGE_DELIM = "-" + _EQUAL = "=" + _ERROR_PREFIX = "Invalid field selector specifier" + + class _FieldEntryValuePredicate(object): + """ + Predicate that checks strict equality for the specified entry field + """ + + def __init__(self, name: str, typespec: Optional[str], value: str): + import builtins + + self.name = name + self.type = getattr(builtins, typespec) if typespec is not None else str + self.value = value + + def __call__(self, entry): + return entry[self.name] == self.type(self.value) + + class _FieldEntryRangePredicate(object): + """ + Predicate that checks whether an entry field falls into the specified range + """ + + def __init__(self, name: str, typespec: Optional[str], vmin: str, vmax: str): + import builtins + + self.name = name + self.type = getattr(builtins, typespec) if typespec is not None else str + self.vmin = vmin + self.vmax = vmax + + def __call__(self, entry): + return (entry[self.name] >= self.type(self.vmin)) and ( + entry[self.name] <= self.type(self.vmax) + ) + + def __init__(self, spec: str): + self._predicates = self._parse_specifier_into_predicates(spec) + + def __call__(self, entry: Dict[str, Any]): + for predicate in self._predicates: + if not predicate(entry): + return False + return True + + def _parse_specifier_into_predicates(self, spec: str): + predicates = [] + specs = spec.split(self._SPEC_DELIM) + for subspec in specs: + eq_idx = subspec.find(self._EQUAL) + if eq_idx > 0: + field_name_with_type = subspec[:eq_idx] + field_name, field_type = self._parse_field_name_type(field_name_with_type) + field_value_or_range = subspec[eq_idx + 1 :] + if self._is_range_spec(field_value_or_range): + vmin, vmax = self._get_range_spec(field_value_or_range) + predicate = FieldEntrySelector._FieldEntryRangePredicate( + field_name, field_type, vmin, vmax + ) + else: + predicate = FieldEntrySelector._FieldEntryValuePredicate( + field_name, field_type, field_value_or_range + ) + predicates.append(predicate) + elif eq_idx == 0: + self._parse_error(f'"{subspec}", field name is empty!') + else: + self._parse_error(f'"{subspec}", should have format ' "=!") + return predicates + + def _parse_field_name_type(self, field_name_with_type: str) -> Tuple[str, Optional[str]]: + type_delim_idx = field_name_with_type.find(self._TYPE_DELIM) + if type_delim_idx > 0: + field_name = field_name_with_type[:type_delim_idx] + field_type = field_name_with_type[type_delim_idx + 1 :] + elif type_delim_idx == 0: + self._parse_error(f'"{field_name_with_type}", field name is empty!') + else: + field_name = field_name_with_type + field_type = None + # pyre-fixme[61]: `field_name` may not be initialized here. + # pyre-fixme[61]: `field_type` may not be initialized here. + return field_name, field_type + + def _is_range_spec(self, field_value_or_range): + delim_idx = field_value_or_range.find(self._RANGE_DELIM) + return delim_idx > 0 + + def _get_range_spec(self, field_value_or_range): + if self._is_range_spec(field_value_or_range): + delim_idx = field_value_or_range.find(self._RANGE_DELIM) + vmin = field_value_or_range[:delim_idx] + vmax = field_value_or_range[delim_idx + 1 :] + return vmin, vmax + else: + self._parse_error('"field_value_or_range", range of values expected!') + + def _parse_error(self, msg): + raise ValueError(f"{self._ERROR_PREFIX}: {msg}") diff --git a/detectron2/projects/DensePose/densepose/utils/logger.py b/detectron2/projects/DensePose/densepose/utils/logger.py new file mode 100755 index 0000000..70cd3cb --- /dev/null +++ b/detectron2/projects/DensePose/densepose/utils/logger.py @@ -0,0 +1,13 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging + + +def verbosity_to_level(verbosity) -> int: + if verbosity is not None: + if verbosity == 0: + return logging.WARNING + elif verbosity == 1: + return logging.INFO + elif verbosity >= 2: + return logging.DEBUG + return logging.WARNING diff --git a/detectron2/projects/DensePose/densepose/utils/transform.py b/detectron2/projects/DensePose/densepose/utils/transform.py new file mode 100755 index 0000000..8dc4ae7 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/utils/transform.py @@ -0,0 +1,15 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from detectron2.data import MetadataCatalog +from detectron2.utils.file_io import PathManager + +from densepose import DensePoseTransformData + + +def load_for_dataset(dataset_name): + path = MetadataCatalog.get(dataset_name).densepose_transform_src + densepose_transform_data_fpath = PathManager.get_local_path(path) + return DensePoseTransformData.load(densepose_transform_data_fpath) + + +def load_from_cfg(cfg): + return load_for_dataset(cfg.DATASETS.TEST[0]) diff --git a/detectron2/projects/DensePose/densepose/vis/__init__.py b/detectron2/projects/DensePose/densepose/vis/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/projects/DensePose/densepose/vis/base.py b/detectron2/projects/DensePose/densepose/vis/base.py new file mode 100755 index 0000000..7b35397 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/base.py @@ -0,0 +1,191 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import numpy as np +import cv2 +import torch + +Image = np.ndarray +Boxes = torch.Tensor + + +class MatrixVisualizer(object): + """ + Base visualizer for matrix data + """ + + def __init__( + self, + inplace=True, + cmap=cv2.COLORMAP_PARULA, + val_scale=1.0, + alpha=0.7, + interp_method_matrix=cv2.INTER_LINEAR, + interp_method_mask=cv2.INTER_NEAREST, + ): + self.inplace = inplace + self.cmap = cmap + self.val_scale = val_scale + self.alpha = alpha + self.interp_method_matrix = interp_method_matrix + self.interp_method_mask = interp_method_mask + + def visualize(self, image_bgr, mask, matrix, bbox_xywh): + self._check_image(image_bgr) + self._check_mask_matrix(mask, matrix) + if self.inplace: + image_target_bgr = image_bgr + else: + image_target_bgr = image_bgr * 0 + x, y, w, h = [int(v) for v in bbox_xywh] + if w <= 0 or h <= 0: + return image_bgr + mask, matrix = self._resize(mask, matrix, w, h) + mask_bg = np.tile((mask == 0)[:, :, np.newaxis], [1, 1, 3]) + matrix_scaled = matrix.astype(np.float32) * self.val_scale + _EPSILON = 1e-6 + if np.any(matrix_scaled > 255 + _EPSILON): + logger = logging.getLogger(__name__) + logger.warning( + f"Matrix has values > {255 + _EPSILON} after " f"scaling, clipping to [0..255]" + ) + matrix_scaled_8u = matrix_scaled.clip(0, 255).astype(np.uint8) + matrix_vis = cv2.applyColorMap(matrix_scaled_8u, self.cmap) + matrix_vis[mask_bg] = image_target_bgr[y : y + h, x : x + w, :][mask_bg] + image_target_bgr[y : y + h, x : x + w, :] = ( + image_target_bgr[y : y + h, x : x + w, :] * (1.0 - self.alpha) + matrix_vis * self.alpha + ) + return image_target_bgr.astype(np.uint8) + + def _resize(self, mask, matrix, w, h): + if (w != mask.shape[1]) or (h != mask.shape[0]): + mask = cv2.resize(mask, (w, h), self.interp_method_mask) + if (w != matrix.shape[1]) or (h != matrix.shape[0]): + matrix = cv2.resize(matrix, (w, h), self.interp_method_matrix) + return mask, matrix + + def _check_image(self, image_rgb): + assert len(image_rgb.shape) == 3 + assert image_rgb.shape[2] == 3 + assert image_rgb.dtype == np.uint8 + + def _check_mask_matrix(self, mask, matrix): + assert len(matrix.shape) == 2 + assert len(mask.shape) == 2 + assert mask.dtype == np.uint8 + + +class RectangleVisualizer(object): + + _COLOR_GREEN = (18, 127, 15) + + def __init__(self, color=_COLOR_GREEN, thickness=1): + self.color = color + self.thickness = thickness + + def visualize(self, image_bgr, bbox_xywh, color=None, thickness=None): + x, y, w, h = bbox_xywh + color = color or self.color + thickness = thickness or self.thickness + cv2.rectangle(image_bgr, (int(x), int(y)), (int(x + w), int(y + h)), color, thickness) + return image_bgr + + +class PointsVisualizer(object): + + _COLOR_GREEN = (18, 127, 15) + + def __init__(self, color_bgr=_COLOR_GREEN, r=5): + self.color_bgr = color_bgr + self.r = r + + def visualize(self, image_bgr, pts_xy, colors_bgr=None, rs=None): + for j, pt_xy in enumerate(pts_xy): + x, y = pt_xy + color_bgr = colors_bgr[j] if colors_bgr is not None else self.color_bgr + r = rs[j] if rs is not None else self.r + cv2.circle(image_bgr, (x, y), r, color_bgr, -1) + return image_bgr + + +class TextVisualizer(object): + + _COLOR_GRAY = (218, 227, 218) + _COLOR_WHITE = (255, 255, 255) + + def __init__( + self, + font_face=cv2.FONT_HERSHEY_SIMPLEX, + font_color_bgr=_COLOR_GRAY, + font_scale=0.35, + font_line_type=cv2.LINE_AA, + font_line_thickness=1, + fill_color_bgr=_COLOR_WHITE, + fill_color_transparency=1.0, + frame_color_bgr=_COLOR_WHITE, + frame_color_transparency=1.0, + frame_thickness=1, + ): + self.font_face = font_face + self.font_color_bgr = font_color_bgr + self.font_scale = font_scale + self.font_line_type = font_line_type + self.font_line_thickness = font_line_thickness + self.fill_color_bgr = fill_color_bgr + self.fill_color_transparency = fill_color_transparency + self.frame_color_bgr = frame_color_bgr + self.frame_color_transparency = frame_color_transparency + self.frame_thickness = frame_thickness + + def visualize(self, image_bgr, txt, topleft_xy): + txt_w, txt_h = self.get_text_size_wh(txt) + topleft_xy = tuple(map(int, topleft_xy)) + x, y = topleft_xy + if self.frame_color_transparency < 1.0: + t = self.frame_thickness + image_bgr[y - t : y + txt_h + t, x - t : x + txt_w + t, :] = ( + image_bgr[y - t : y + txt_h + t, x - t : x + txt_w + t, :] + * self.frame_color_transparency + + np.array(self.frame_color_bgr) * (1.0 - self.frame_color_transparency) + ).astype(np.float) + if self.fill_color_transparency < 1.0: + image_bgr[y : y + txt_h, x : x + txt_w, :] = ( + image_bgr[y : y + txt_h, x : x + txt_w, :] * self.fill_color_transparency + + np.array(self.fill_color_bgr) * (1.0 - self.fill_color_transparency) + ).astype(np.float) + cv2.putText( + image_bgr, + txt, + topleft_xy, + self.font_face, + self.font_scale, + self.font_color_bgr, + self.font_line_thickness, + self.font_line_type, + ) + return image_bgr + + def get_text_size_wh(self, txt): + ((txt_w, txt_h), _) = cv2.getTextSize( + txt, self.font_face, self.font_scale, self.font_line_thickness + ) + return txt_w, txt_h + + +class CompoundVisualizer(object): + def __init__(self, visualizers): + self.visualizers = visualizers + + def visualize(self, image_bgr, data): + assert len(data) == len( + self.visualizers + ), "The number of datas {} should match the number of visualizers" " {}".format( + len(data), len(self.visualizers) + ) + image = image_bgr + for i, visualizer in enumerate(self.visualizers): + image = visualizer.visualize(image, data[i]) + return image + + def __str__(self): + visualizer_str = ", ".join([str(v) for v in self.visualizers]) + return "Compound Visualizer [{}]".format(visualizer_str) diff --git a/detectron2/projects/DensePose/densepose/vis/bounding_box.py b/detectron2/projects/DensePose/densepose/vis/bounding_box.py new file mode 100755 index 0000000..4f83957 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/bounding_box.py @@ -0,0 +1,37 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .base import RectangleVisualizer, TextVisualizer + + +class BoundingBoxVisualizer(object): + def __init__(self): + self.rectangle_visualizer = RectangleVisualizer() + + def visualize(self, image_bgr, boxes_xywh): + for bbox_xywh in boxes_xywh: + image_bgr = self.rectangle_visualizer.visualize(image_bgr, bbox_xywh) + return image_bgr + + +class ScoredBoundingBoxVisualizer(object): + def __init__(self, bbox_visualizer_params=None, score_visualizer_params=None, **kwargs): + if bbox_visualizer_params is None: + bbox_visualizer_params = {} + if score_visualizer_params is None: + score_visualizer_params = {} + self.visualizer_bbox = RectangleVisualizer(**bbox_visualizer_params) + self.visualizer_score = TextVisualizer(**score_visualizer_params) + + def visualize(self, image_bgr, scored_bboxes): + boxes_xywh, box_scores = scored_bboxes + assert len(boxes_xywh) == len( + box_scores + ), "Number of bounding boxes {} should be equal to the number of scores {}".format( + len(boxes_xywh), len(box_scores) + ) + for i, box_xywh in enumerate(boxes_xywh): + score_i = box_scores[i] + image_bgr = self.visualizer_bbox.visualize(image_bgr, box_xywh) + score_txt = "{0:6.4f}".format(score_i) + topleft_xy = box_xywh[0], box_xywh[1] + image_bgr = self.visualizer_score.visualize(image_bgr, score_txt, topleft_xy) + return image_bgr diff --git a/detectron2/projects/DensePose/densepose/vis/densepose_data_points.py b/detectron2/projects/DensePose/densepose/vis/densepose_data_points.py new file mode 100755 index 0000000..b6839a9 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/densepose_data_points.py @@ -0,0 +1,106 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Iterable, Optional, Tuple +import cv2 + +from densepose.structures import DensePoseDataRelative + +from .base import Boxes, Image, MatrixVisualizer, PointsVisualizer + + +class DensePoseDataCoarseSegmentationVisualizer(object): + """ + Visualizer for ground truth segmentation + """ + + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + self.mask_visualizer = MatrixVisualizer( + inplace=inplace, + cmap=cmap, + val_scale=255.0 / DensePoseDataRelative.N_BODY_PARTS, + alpha=alpha, + ) + + def visualize( + self, + image_bgr: Image, + bbox_densepose_datas: Optional[Tuple[Iterable[Boxes], Iterable[DensePoseDataRelative]]], + ) -> Image: + if bbox_densepose_datas is None: + return image_bgr + for bbox_xywh, densepose_data in zip(*bbox_densepose_datas): + matrix = densepose_data.segm.numpy() + mask = np.zeros(matrix.shape, dtype=np.uint8) + mask[matrix > 0] = 1 + image_bgr = self.mask_visualizer.visualize(image_bgr, mask, matrix, bbox_xywh.numpy()) + return image_bgr + + +class DensePoseDataPointsVisualizer(object): + def __init__(self, densepose_data_to_value_fn=None, cmap=cv2.COLORMAP_PARULA, **kwargs): + self.points_visualizer = PointsVisualizer() + self.densepose_data_to_value_fn = densepose_data_to_value_fn + self.cmap = cmap + + def visualize( + self, + image_bgr: Image, + bbox_densepose_datas: Optional[Tuple[Iterable[Boxes], Iterable[DensePoseDataRelative]]], + ) -> Image: + if bbox_densepose_datas is None: + return image_bgr + for bbox_xywh, densepose_data in zip(*bbox_densepose_datas): + x0, y0, w, h = bbox_xywh.numpy() + x = densepose_data.x.numpy() * w / 255.0 + x0 + y = densepose_data.y.numpy() * h / 255.0 + y0 + pts_xy = zip(x, y) + if self.densepose_data_to_value_fn is None: + image_bgr = self.points_visualizer.visualize(image_bgr, pts_xy) + else: + v = self.densepose_data_to_value_fn(densepose_data) + img_colors_bgr = cv2.applyColorMap(v, self.cmap) + colors_bgr = [ + [int(v) for v in img_color_bgr.ravel()] for img_color_bgr in img_colors_bgr + ] + image_bgr = self.points_visualizer.visualize(image_bgr, pts_xy, colors_bgr) + return image_bgr + + +def _densepose_data_u_for_cmap(densepose_data): + u = np.clip(densepose_data.u.numpy(), 0, 1) * 255.0 + return u.astype(np.uint8) + + +def _densepose_data_v_for_cmap(densepose_data): + v = np.clip(densepose_data.v.numpy(), 0, 1) * 255.0 + return v.astype(np.uint8) + + +def _densepose_data_i_for_cmap(densepose_data): + i = ( + np.clip(densepose_data.i.numpy(), 0.0, DensePoseDataRelative.N_PART_LABELS) + * 255.0 + / DensePoseDataRelative.N_PART_LABELS + ) + return i.astype(np.uint8) + + +class DensePoseDataPointsUVisualizer(DensePoseDataPointsVisualizer): + def __init__(self, **kwargs): + super(DensePoseDataPointsUVisualizer, self).__init__( + densepose_data_to_value_fn=_densepose_data_u_for_cmap, **kwargs + ) + + +class DensePoseDataPointsVVisualizer(DensePoseDataPointsVisualizer): + def __init__(self, **kwargs): + super(DensePoseDataPointsVVisualizer, self).__init__( + densepose_data_to_value_fn=_densepose_data_v_for_cmap, **kwargs + ) + + +class DensePoseDataPointsIVisualizer(DensePoseDataPointsVisualizer): + def __init__(self, **kwargs): + super(DensePoseDataPointsIVisualizer, self).__init__( + densepose_data_to_value_fn=_densepose_data_i_for_cmap, **kwargs + ) diff --git a/detectron2/projects/DensePose/densepose/vis/densepose_outputs_iuv.py b/detectron2/projects/DensePose/densepose/vis/densepose_outputs_iuv.py new file mode 100755 index 0000000..a32a418 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/densepose_outputs_iuv.py @@ -0,0 +1,101 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Optional, Tuple +import cv2 + +from densepose.structures import DensePoseDataRelative + +from ..structures import DensePoseChartPredictorOutput +from .base import Boxes, Image, MatrixVisualizer + + +class DensePoseOutputsVisualizer(object): + def __init__( + self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, to_visualize=None, **kwargs + ): + assert to_visualize in "IUV", "can only visualize IUV" + self.to_visualize = to_visualize + + if self.to_visualize == "I": + val_scale = 255.0 / DensePoseDataRelative.N_PART_LABELS + else: + val_scale = 1.0 + self.mask_visualizer = MatrixVisualizer( + inplace=inplace, cmap=cmap, val_scale=val_scale, alpha=alpha + ) + + def visualize( + self, + image_bgr: Image, + dp_output_with_bboxes: Tuple[Optional[DensePoseChartPredictorOutput], Optional[Boxes]], + ) -> Image: + densepose_output, bboxes_xywh = dp_output_with_bboxes + if densepose_output is None or bboxes_xywh is None: + return image_bgr + + assert isinstance( + densepose_output, DensePoseChartPredictorOutput + ), "DensePoseChartPredictorOutput expected, {} encountered".format(type(densepose_output)) + + S = densepose_output.coarse_segm + I = densepose_output.fine_segm # noqa + U = densepose_output.u + V = densepose_output.v + N = S.size(0) + assert N == I.size( + 0 + ), "densepose outputs S {} and I {}" " should have equal first dim size".format( + S.size(), I.size() + ) + assert N == U.size( + 0 + ), "densepose outputs S {} and U {}" " should have equal first dim size".format( + S.size(), U.size() + ) + assert N == V.size( + 0 + ), "densepose outputs S {} and V {}" " should have equal first dim size".format( + S.size(), V.size() + ) + assert N == len( + bboxes_xywh + ), "number of bounding boxes {}" " should be equal to first dim size of outputs {}".format( + len(bboxes_xywh), N + ) + for n in range(N): + Sn = S[n].argmax(dim=0) + In = I[n].argmax(dim=0) * (Sn > 0).long() + segmentation = In.cpu().numpy().astype(np.uint8) + mask = np.zeros(segmentation.shape, dtype=np.uint8) + mask[segmentation > 0] = 1 + bbox_xywh = bboxes_xywh[n] + + if self.to_visualize == "I": + vis = segmentation + elif self.to_visualize in "UV": + U_or_Vn = {"U": U, "V": V}[self.to_visualize][n].cpu().numpy().astype(np.float32) + vis = np.zeros(segmentation.shape, dtype=np.float32) + for partId in range(U_or_Vn.shape[0]): + vis[segmentation == partId] = ( + U_or_Vn[partId][segmentation == partId].clip(0, 1) * 255 + ) + + # pyre-fixme[61]: `vis` may not be initialized here. + image_bgr = self.mask_visualizer.visualize(image_bgr, mask, vis, bbox_xywh) + + return image_bgr + + +class DensePoseOutputsUVisualizer(DensePoseOutputsVisualizer): + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + super().__init__(inplace=inplace, cmap=cmap, alpha=alpha, to_visualize="U", **kwargs) + + +class DensePoseOutputsVVisualizer(DensePoseOutputsVisualizer): + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + super().__init__(inplace=inplace, cmap=cmap, alpha=alpha, to_visualize="V", **kwargs) + + +class DensePoseOutputsFineSegmentationVisualizer(DensePoseOutputsVisualizer): + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + super().__init__(inplace=inplace, cmap=cmap, alpha=alpha, to_visualize="I", **kwargs) diff --git a/detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py b/detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py new file mode 100755 index 0000000..71e5323 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/densepose_outputs_vertex.py @@ -0,0 +1,229 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import json +import numpy as np +from functools import lru_cache +from typing import Dict, List, Optional, Tuple +import cv2 +import torch + +from detectron2.utils.file_io import PathManager + +from densepose.modeling import build_densepose_embedder +from densepose.modeling.cse.utils import get_closest_vertices_mask_from_ES + +from ..data.utils import get_class_to_mesh_name_mapping +from ..structures import DensePoseEmbeddingPredictorOutput +from ..structures.mesh import create_mesh +from .base import Boxes, Image, MatrixVisualizer +from .densepose_results_textures import get_texture_atlas + + +@lru_cache() +def get_xyz_vertex_embedding(mesh_name: str, device: torch.device): + if mesh_name == "smpl_27554": + embed_path = PathManager.get_local_path( + "https://dl.fbaipublicfiles.com/densepose/data/cse/mds_d=256.npy" + ) + embed_map, _ = np.load(embed_path, allow_pickle=True) + embed_map = torch.tensor(embed_map).float()[:, 0] + embed_map -= embed_map.min() + embed_map /= embed_map.max() + else: + mesh = create_mesh(mesh_name, device) + embed_map = mesh.vertices.sum(dim=1) + embed_map -= embed_map.min() + embed_map /= embed_map.max() + embed_map = embed_map**2 + return embed_map + + +class DensePoseOutputsVertexVisualizer(object): + def __init__( + self, + cfg, + inplace=True, + cmap=cv2.COLORMAP_JET, + alpha=0.7, + device="cuda", + default_class=0, + **kwargs, + ): + self.mask_visualizer = MatrixVisualizer( + inplace=inplace, cmap=cmap, val_scale=1.0, alpha=alpha + ) + self.class_to_mesh_name = get_class_to_mesh_name_mapping(cfg) + self.embedder = build_densepose_embedder(cfg) + self.device = torch.device(device) + self.default_class = default_class + + self.mesh_vertex_embeddings = { + mesh_name: self.embedder(mesh_name).to(self.device) + for mesh_name in self.class_to_mesh_name.values() + if self.embedder.has_embeddings(mesh_name) + } + + def visualize( + self, + image_bgr: Image, + outputs_boxes_xywh_classes: Tuple[ + Optional[DensePoseEmbeddingPredictorOutput], Optional[Boxes], Optional[List[int]] + ], + ) -> Image: + if outputs_boxes_xywh_classes[0] is None: + return image_bgr + + S, E, N, bboxes_xywh, pred_classes = self.extract_and_check_outputs_and_boxes( + outputs_boxes_xywh_classes + ) + + for n in range(N): + x, y, w, h = bboxes_xywh[n].int().tolist() + mesh_name = self.class_to_mesh_name[pred_classes[n]] + closest_vertices, mask = get_closest_vertices_mask_from_ES( + E[[n]], + S[[n]], + h, + w, + self.mesh_vertex_embeddings[mesh_name], + self.device, + ) + embed_map = get_xyz_vertex_embedding(mesh_name, self.device) + vis = (embed_map[closest_vertices].clip(0, 1) * 255.0).cpu().numpy() + mask_numpy = mask.cpu().numpy().astype(dtype=np.uint8) + image_bgr = self.mask_visualizer.visualize(image_bgr, mask_numpy, vis, [x, y, w, h]) + + return image_bgr + + def extract_and_check_outputs_and_boxes(self, outputs_boxes_xywh_classes): + + densepose_output, bboxes_xywh, pred_classes = outputs_boxes_xywh_classes + + if pred_classes is None: + pred_classes = [self.default_class] * len(bboxes_xywh) + + assert isinstance( + densepose_output, DensePoseEmbeddingPredictorOutput + ), "DensePoseEmbeddingPredictorOutput expected, {} encountered".format( + type(densepose_output) + ) + + S = densepose_output.coarse_segm + E = densepose_output.embedding + N = S.size(0) + assert N == E.size( + 0 + ), "CSE coarse_segm {} and embeddings {}" " should have equal first dim size".format( + S.size(), E.size() + ) + assert N == len( + bboxes_xywh + ), "number of bounding boxes {}" " should be equal to first dim size of outputs {}".format( + len(bboxes_xywh), N + ) + assert N == len(pred_classes), ( + "number of predicted classes {}" + " should be equal to first dim size of outputs {}".format(len(bboxes_xywh), N) + ) + + return S, E, N, bboxes_xywh, pred_classes + + +def get_texture_atlases(json_str: Optional[str]) -> Optional[Dict[str, Optional[np.ndarray]]]: + """ + json_str is a JSON string representing a mesh_name -> texture_atlas_path dictionary + """ + if json_str is None: + return None + + paths = json.loads(json_str) + return {mesh_name: get_texture_atlas(path) for mesh_name, path in paths.items()} + + +class DensePoseOutputsTextureVisualizer(DensePoseOutputsVertexVisualizer): + def __init__( + self, + cfg, + texture_atlases_dict, + device="cuda", + default_class=0, + **kwargs, + ): + self.embedder = build_densepose_embedder(cfg) + + self.texture_image_dict = {} + self.alpha_dict = {} + + for mesh_name in texture_atlases_dict.keys(): + if texture_atlases_dict[mesh_name].shape[-1] == 4: # Image with alpha channel + self.alpha_dict[mesh_name] = texture_atlases_dict[mesh_name][:, :, -1] / 255.0 + self.texture_image_dict[mesh_name] = texture_atlases_dict[mesh_name][:, :, :3] + else: + self.alpha_dict[mesh_name] = texture_atlases_dict[mesh_name].sum(axis=-1) > 0 + self.texture_image_dict[mesh_name] = texture_atlases_dict[mesh_name] + + self.device = torch.device(device) + self.class_to_mesh_name = get_class_to_mesh_name_mapping(cfg) + self.default_class = default_class + + self.mesh_vertex_embeddings = { + mesh_name: self.embedder(mesh_name).to(self.device) + for mesh_name in self.class_to_mesh_name.values() + } + + def visualize( + self, + image_bgr: Image, + outputs_boxes_xywh_classes: Tuple[ + Optional[DensePoseEmbeddingPredictorOutput], Optional[Boxes], Optional[List[int]] + ], + ) -> Image: + image_target_bgr = image_bgr.copy() + if outputs_boxes_xywh_classes[0] is None: + return image_target_bgr + + S, E, N, bboxes_xywh, pred_classes = self.extract_and_check_outputs_and_boxes( + outputs_boxes_xywh_classes + ) + + meshes = { + p: create_mesh(self.class_to_mesh_name[p], self.device) for p in np.unique(pred_classes) + } + + for n in range(N): + x, y, w, h = bboxes_xywh[n].int().cpu().numpy() + mesh_name = self.class_to_mesh_name[pred_classes[n]] + closest_vertices, mask = get_closest_vertices_mask_from_ES( + E[[n]], + S[[n]], + h, + w, + self.mesh_vertex_embeddings[mesh_name], + self.device, + ) + uv_array = meshes[pred_classes[n]].texcoords[closest_vertices].permute((2, 0, 1)) + uv_array = uv_array.cpu().numpy().clip(0, 1) + textured_image = self.generate_image_with_texture( + image_target_bgr[y : y + h, x : x + w], + uv_array, + mask.cpu().numpy(), + self.class_to_mesh_name[pred_classes[n]], + ) + if textured_image is None: + continue + image_target_bgr[y : y + h, x : x + w] = textured_image + + return image_target_bgr + + def generate_image_with_texture(self, bbox_image_bgr, uv_array, mask, mesh_name): + alpha = self.alpha_dict.get(mesh_name) + texture_image = self.texture_image_dict.get(mesh_name) + if alpha is None or texture_image is None: + return None + U, V = uv_array + x_index = (U * texture_image.shape[1]).astype(int) + y_index = (V * texture_image.shape[0]).astype(int) + local_texture = texture_image[y_index, x_index][mask] + local_alpha = np.expand_dims(alpha[y_index, x_index][mask], -1) + output_image = bbox_image_bgr.copy() + output_image[mask] = output_image[mask] * (1 - local_alpha) + local_texture * local_alpha + return output_image.astype(np.uint8) diff --git a/detectron2/projects/DensePose/densepose/vis/densepose_results.py b/detectron2/projects/DensePose/densepose/vis/densepose_results.py new file mode 100755 index 0000000..ce8a7c0 --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/densepose_results.py @@ -0,0 +1,355 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import numpy as np +from typing import List, Optional, Tuple +import cv2 +import torch + +from densepose.structures import DensePoseDataRelative + +from ..structures import DensePoseChartResult +from .base import Boxes, Image, MatrixVisualizer + + +class DensePoseResultsVisualizer(object): + def visualize( + self, + image_bgr: Image, + results_and_boxes_xywh: Tuple[Optional[List[DensePoseChartResult]], Optional[Boxes]], + ) -> Image: + densepose_result, boxes_xywh = results_and_boxes_xywh + if densepose_result is None or boxes_xywh is None: + return image_bgr + + boxes_xywh = boxes_xywh.cpu().numpy() + context = self.create_visualization_context(image_bgr) + for i, result in enumerate(densepose_result): + iuv_array = torch.cat( + (result.labels[None].type(torch.float32), result.uv * 255.0) + ).type(torch.uint8) + self.visualize_iuv_arr(context, iuv_array.cpu().numpy(), boxes_xywh[i]) + image_bgr = self.context_to_image_bgr(context) + return image_bgr + + def create_visualization_context(self, image_bgr: Image): + return image_bgr + + def visualize_iuv_arr(self, context, iuv_arr: np.ndarray, bbox_xywh) -> None: + pass + + def context_to_image_bgr(self, context): + return context + + def get_image_bgr_from_context(self, context): + return context + + +class DensePoseMaskedColormapResultsVisualizer(DensePoseResultsVisualizer): + def __init__( + self, + data_extractor, + segm_extractor, + inplace=True, + cmap=cv2.COLORMAP_PARULA, + alpha=0.7, + val_scale=1.0, + **kwargs, + ): + self.mask_visualizer = MatrixVisualizer( + inplace=inplace, cmap=cmap, val_scale=val_scale, alpha=alpha + ) + self.data_extractor = data_extractor + self.segm_extractor = segm_extractor + + def context_to_image_bgr(self, context): + return context + + def visualize_iuv_arr(self, context, iuv_arr: np.ndarray, bbox_xywh) -> None: + image_bgr = self.get_image_bgr_from_context(context) + matrix = self.data_extractor(iuv_arr) + segm = self.segm_extractor(iuv_arr) + mask = np.zeros(matrix.shape, dtype=np.uint8) + mask[segm > 0] = 1 + image_bgr = self.mask_visualizer.visualize(image_bgr, mask, matrix, bbox_xywh) + + +def _extract_i_from_iuvarr(iuv_arr): + return iuv_arr[0, :, :] + + +def _extract_u_from_iuvarr(iuv_arr): + return iuv_arr[1, :, :] + + +def _extract_v_from_iuvarr(iuv_arr): + return iuv_arr[2, :, :] + + +class DensePoseResultsMplContourVisualizer(DensePoseResultsVisualizer): + def __init__(self, levels=10, **kwargs): + self.levels = levels + self.plot_args = kwargs + + def create_visualization_context(self, image_bgr: Image): + import matplotlib.pyplot as plt + from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas + + context = {} + context["image_bgr"] = image_bgr + dpi = 100 + height_inches = float(image_bgr.shape[0]) / dpi + width_inches = float(image_bgr.shape[1]) / dpi + fig = plt.figure(figsize=(width_inches, height_inches), dpi=dpi) + plt.axes([0, 0, 1, 1]) + plt.axis("off") + context["fig"] = fig + canvas = FigureCanvas(fig) + context["canvas"] = canvas + extent = (0, image_bgr.shape[1], image_bgr.shape[0], 0) + plt.imshow(image_bgr[:, :, ::-1], extent=extent) + return context + + def context_to_image_bgr(self, context): + fig = context["fig"] + w, h = map(int, fig.get_size_inches() * fig.get_dpi()) + canvas = context["canvas"] + canvas.draw() + image_1d = np.fromstring(canvas.tostring_rgb(), dtype="uint8") + image_rgb = image_1d.reshape(h, w, 3) + image_bgr = image_rgb[:, :, ::-1].copy() + return image_bgr + + def visualize_iuv_arr(self, context, iuv_arr: np.ndarray, bbox_xywh: Boxes) -> None: + import matplotlib.pyplot as plt + + u = _extract_u_from_iuvarr(iuv_arr).astype(float) / 255.0 + v = _extract_v_from_iuvarr(iuv_arr).astype(float) / 255.0 + extent = ( + bbox_xywh[0], + bbox_xywh[0] + bbox_xywh[2], + bbox_xywh[1], + bbox_xywh[1] + bbox_xywh[3], + ) + plt.contour(u, self.levels, extent=extent, **self.plot_args) + plt.contour(v, self.levels, extent=extent, **self.plot_args) + + +class DensePoseResultsCustomContourVisualizer(DensePoseResultsVisualizer): + """ + Contour visualization using marching squares + """ + + def __init__(self, levels=10, **kwargs): + # TODO: colormap is hardcoded + cmap = cv2.COLORMAP_PARULA + if isinstance(levels, int): + self.levels = np.linspace(0, 1, levels) + else: + self.levels = levels + if "linewidths" in kwargs: + self.linewidths = kwargs["linewidths"] + else: + self.linewidths = [1] * len(self.levels) + self.plot_args = kwargs + img_colors_bgr = cv2.applyColorMap((self.levels * 255).astype(np.uint8), cmap) + self.level_colors_bgr = [ + [int(v) for v in img_color_bgr.ravel()] for img_color_bgr in img_colors_bgr + ] + + def visualize_iuv_arr(self, context, iuv_arr: np.ndarray, bbox_xywh: Boxes) -> None: + image_bgr = self.get_image_bgr_from_context(context) + segm = _extract_i_from_iuvarr(iuv_arr) + u = _extract_u_from_iuvarr(iuv_arr).astype(float) / 255.0 + v = _extract_v_from_iuvarr(iuv_arr).astype(float) / 255.0 + self._contours(image_bgr, u, segm, bbox_xywh) + self._contours(image_bgr, v, segm, bbox_xywh) + + def _contours(self, image_bgr, arr, segm, bbox_xywh): + for part_idx in range(1, DensePoseDataRelative.N_PART_LABELS + 1): + mask = segm == part_idx + if not np.any(mask): + continue + arr_min = np.amin(arr[mask]) + arr_max = np.amax(arr[mask]) + I, J = np.nonzero(mask) + i0 = np.amin(I) + i1 = np.amax(I) + 1 + j0 = np.amin(J) + j1 = np.amax(J) + 1 + if (j1 == j0 + 1) or (i1 == i0 + 1): + continue + Nw = arr.shape[1] - 1 + Nh = arr.shape[0] - 1 + for level_idx, level in enumerate(self.levels): + if (level < arr_min) or (level > arr_max): + continue + vp = arr[i0:i1, j0:j1] >= level + bin_codes = vp[:-1, :-1] + vp[1:, :-1] * 2 + vp[1:, 1:] * 4 + vp[:-1, 1:] * 8 + mp = mask[i0:i1, j0:j1] + bin_mask_codes = mp[:-1, :-1] + mp[1:, :-1] * 2 + mp[1:, 1:] * 4 + mp[:-1, 1:] * 8 + it = np.nditer(bin_codes, flags=["multi_index"]) + color_bgr = self.level_colors_bgr[level_idx] + linewidth = self.linewidths[level_idx] + while not it.finished: + if (it[0] != 0) and (it[0] != 15): + i, j = it.multi_index + if bin_mask_codes[i, j] != 0: + self._draw_line( + image_bgr, + arr, + mask, + level, + color_bgr, + linewidth, + it[0], + it.multi_index, + bbox_xywh, + Nw, + Nh, + (i0, j0), + ) + it.iternext() + + def _draw_line( + self, + image_bgr, + arr, + mask, + v, + color_bgr, + linewidth, + bin_code, + multi_idx, + bbox_xywh, + Nw, + Nh, + offset, + ): + lines = self._bin_code_2_lines(arr, v, bin_code, multi_idx, Nw, Nh, offset) + x0, y0, w, h = bbox_xywh + x1 = x0 + w + y1 = y0 + h + for line in lines: + x0r, y0r = line[0] + x1r, y1r = line[1] + pt0 = (int(x0 + x0r * (x1 - x0)), int(y0 + y0r * (y1 - y0))) + pt1 = (int(x0 + x1r * (x1 - x0)), int(y0 + y1r * (y1 - y0))) + cv2.line(image_bgr, pt0, pt1, color_bgr, linewidth) + + def _bin_code_2_lines(self, arr, v, bin_code, multi_idx, Nw, Nh, offset): + i0, j0 = offset + i, j = multi_idx + i += i0 + j += j0 + v0, v1, v2, v3 = arr[i, j], arr[i + 1, j], arr[i + 1, j + 1], arr[i, j + 1] + x0i = float(j) / Nw + y0j = float(i) / Nh + He = 1.0 / Nh + We = 1.0 / Nw + if (bin_code == 1) or (bin_code == 14): + a = (v - v0) / (v1 - v0) + b = (v - v0) / (v3 - v0) + pt1 = (x0i, y0j + a * He) + pt2 = (x0i + b * We, y0j) + return [(pt1, pt2)] + elif (bin_code == 2) or (bin_code == 13): + a = (v - v0) / (v1 - v0) + b = (v - v1) / (v2 - v1) + pt1 = (x0i, y0j + a * He) + pt2 = (x0i + b * We, y0j + He) + return [(pt1, pt2)] + elif (bin_code == 3) or (bin_code == 12): + a = (v - v0) / (v3 - v0) + b = (v - v1) / (v2 - v1) + pt1 = (x0i + a * We, y0j) + pt2 = (x0i + b * We, y0j + He) + return [(pt1, pt2)] + elif (bin_code == 4) or (bin_code == 11): + a = (v - v1) / (v2 - v1) + b = (v - v3) / (v2 - v3) + pt1 = (x0i + a * We, y0j + He) + pt2 = (x0i + We, y0j + b * He) + return [(pt1, pt2)] + elif (bin_code == 6) or (bin_code == 9): + a = (v - v0) / (v1 - v0) + b = (v - v3) / (v2 - v3) + pt1 = (x0i, y0j + a * He) + pt2 = (x0i + We, y0j + b * He) + return [(pt1, pt2)] + elif (bin_code == 7) or (bin_code == 8): + a = (v - v0) / (v3 - v0) + b = (v - v3) / (v2 - v3) + pt1 = (x0i + a * We, y0j) + pt2 = (x0i + We, y0j + b * He) + return [(pt1, pt2)] + elif bin_code == 5: + a1 = (v - v0) / (v1 - v0) + b1 = (v - v1) / (v2 - v1) + pt11 = (x0i, y0j + a1 * He) + pt12 = (x0i + b1 * We, y0j + He) + a2 = (v - v0) / (v3 - v0) + b2 = (v - v3) / (v2 - v3) + pt21 = (x0i + a2 * We, y0j) + pt22 = (x0i + We, y0j + b2 * He) + return [(pt11, pt12), (pt21, pt22)] + elif bin_code == 10: + a1 = (v - v0) / (v3 - v0) + b1 = (v - v0) / (v1 - v0) + pt11 = (x0i + a1 * We, y0j) + pt12 = (x0i, y0j + b1 * He) + a2 = (v - v1) / (v2 - v1) + b2 = (v - v3) / (v2 - v3) + pt21 = (x0i + a2 * We, y0j + He) + pt22 = (x0i + We, y0j + b2 * He) + return [(pt11, pt12), (pt21, pt22)] + return [] + + +try: + import matplotlib + + matplotlib.use("Agg") + DensePoseResultsContourVisualizer = DensePoseResultsMplContourVisualizer +except ModuleNotFoundError: + logger = logging.getLogger(__name__) + logger.warning("Could not import matplotlib, using custom contour visualizer") + DensePoseResultsContourVisualizer = DensePoseResultsCustomContourVisualizer + + +class DensePoseResultsFineSegmentationVisualizer(DensePoseMaskedColormapResultsVisualizer): + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + super(DensePoseResultsFineSegmentationVisualizer, self).__init__( + _extract_i_from_iuvarr, + _extract_i_from_iuvarr, + inplace, + cmap, + alpha, + val_scale=255.0 / DensePoseDataRelative.N_PART_LABELS, + **kwargs, + ) + + +class DensePoseResultsUVisualizer(DensePoseMaskedColormapResultsVisualizer): + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + super(DensePoseResultsUVisualizer, self).__init__( + _extract_u_from_iuvarr, + _extract_i_from_iuvarr, + inplace, + cmap, + alpha, + val_scale=1.0, + **kwargs, + ) + + +class DensePoseResultsVVisualizer(DensePoseMaskedColormapResultsVisualizer): + def __init__(self, inplace=True, cmap=cv2.COLORMAP_PARULA, alpha=0.7, **kwargs): + super(DensePoseResultsVVisualizer, self).__init__( + _extract_v_from_iuvarr, + _extract_i_from_iuvarr, + inplace, + cmap, + alpha, + val_scale=1.0, + **kwargs, + ) diff --git a/detectron2/projects/DensePose/densepose/vis/densepose_results_textures.py b/detectron2/projects/DensePose/densepose/vis/densepose_results_textures.py new file mode 100755 index 0000000..8b02f2b --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/densepose_results_textures.py @@ -0,0 +1,91 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import List, Optional, Tuple +import torch + +from detectron2.data.detection_utils import read_image + +from ..structures import DensePoseChartResult +from .base import Boxes, Image +from .densepose_results import DensePoseResultsVisualizer + + +def get_texture_atlas(path: Optional[str]) -> Optional[np.ndarray]: + if path is None: + return None + + # Reading images like that downsamples 16-bit images to 8-bit + # If 16-bit images are needed, we can replace that by cv2.imread with the + # cv2.IMREAD_UNCHANGED flag (with cv2 we also need it to keep alpha channels) + # The rest of the pipeline would need to be adapted to 16-bit images too + bgr_image = read_image(path) + rgb_image = np.copy(bgr_image) # Convert BGR -> RGB + rgb_image[:, :, :3] = rgb_image[:, :, 2::-1] # Works with alpha channel + return rgb_image + + +class DensePoseResultsVisualizerWithTexture(DensePoseResultsVisualizer): + """ + texture_atlas: An image, size 6N * 4N, with N * N squares for each of the 24 body parts. + It must follow the grid found at https://github.com/facebookresearch/DensePose/blob/master/DensePoseData/demo_data/texture_atlas_200.png # noqa + For each body part, U is proportional to the x coordinate, and (1 - V) to y + """ + + def __init__(self, texture_atlas, **kwargs): + self.texture_atlas = texture_atlas + self.body_part_size = texture_atlas.shape[0] // 6 + assert self.body_part_size == texture_atlas.shape[1] // 4 + + def visualize( + self, + image_bgr: Image, + results_and_boxes_xywh: Tuple[Optional[List[DensePoseChartResult]], Optional[Boxes]], + ) -> Image: + densepose_result, boxes_xywh = results_and_boxes_xywh + if densepose_result is None or boxes_xywh is None: + return image_bgr + + boxes_xywh = boxes_xywh.int().cpu().numpy() + texture_image, alpha = self.get_texture() + for i, result in enumerate(densepose_result): + iuv_array = torch.cat((result.labels[None], result.uv.clamp(0, 1))) + x, y, w, h = boxes_xywh[i] + bbox_image = image_bgr[y : y + h, x : x + w] + image_bgr[y : y + h, x : x + w] = self.generate_image_with_texture( + texture_image, alpha, bbox_image, iuv_array.cpu().numpy() + ) + return image_bgr + + def get_texture(self): + N = self.body_part_size + texture_image = np.zeros([24, N, N, self.texture_atlas.shape[-1]]) + for i in range(4): + for j in range(6): + texture_image[(6 * i + j), :, :, :] = self.texture_atlas[ + N * j : N * (j + 1), N * i : N * (i + 1), : + ] + + if texture_image.shape[-1] == 4: # Image with alpha channel + alpha = texture_image[:, :, :, -1] / 255.0 + texture_image = texture_image[:, :, :, :3] + else: + alpha = texture_image.sum(axis=-1) > 0 + + return texture_image, alpha + + def generate_image_with_texture(self, texture_image, alpha, bbox_image_bgr, iuv_array): + + I, U, V = iuv_array + generated_image_bgr = bbox_image_bgr.copy() + + for PartInd in range(1, 25): + x, y = np.where(I == PartInd) + x_index = (U[x, y] * (self.body_part_size - 1)).astype(int) + y_index = ((1 - V[x, y]) * (self.body_part_size - 1)).astype(int) + part_alpha = np.expand_dims(alpha[PartInd - 1, y_index, x_index], -1) + generated_image_bgr[I == PartInd] = ( + generated_image_bgr[I == PartInd] * (1 - part_alpha) + + texture_image[PartInd - 1, y_index, x_index] * part_alpha + ) + + return generated_image_bgr.astype(np.uint8) diff --git a/detectron2/projects/DensePose/densepose/vis/extractor.py b/detectron2/projects/DensePose/densepose/vis/extractor.py new file mode 100755 index 0000000..bfb2bdf --- /dev/null +++ b/detectron2/projects/DensePose/densepose/vis/extractor.py @@ -0,0 +1,199 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +from typing import List, Optional, Sequence, Tuple +import torch + +from detectron2.layers.nms import batched_nms +from detectron2.structures.instances import Instances + +from densepose.converters import ToChartResultConverterWithConfidences +from densepose.structures import ( + DensePoseChartResultWithConfidences, + DensePoseEmbeddingPredictorOutput, +) +from densepose.vis.bounding_box import BoundingBoxVisualizer, ScoredBoundingBoxVisualizer +from densepose.vis.densepose_outputs_vertex import DensePoseOutputsVertexVisualizer +from densepose.vis.densepose_results import DensePoseResultsVisualizer + +from .base import CompoundVisualizer + +Scores = Sequence[float] +DensePoseChartResultsWithConfidences = List[DensePoseChartResultWithConfidences] + + +def extract_scores_from_instances(instances: Instances, select=None): + if instances.has("scores"): + return instances.scores if select is None else instances.scores[select] + return None + + +def extract_boxes_xywh_from_instances(instances: Instances, select=None): + if instances.has("pred_boxes"): + boxes_xywh = instances.pred_boxes.tensor.clone() + boxes_xywh[:, 2] -= boxes_xywh[:, 0] + boxes_xywh[:, 3] -= boxes_xywh[:, 1] + return boxes_xywh if select is None else boxes_xywh[select] + return None + + +def create_extractor(visualizer: object): + """ + Create an extractor for the provided visualizer + """ + if isinstance(visualizer, CompoundVisualizer): + extractors = [create_extractor(v) for v in visualizer.visualizers] + return CompoundExtractor(extractors) + elif isinstance(visualizer, DensePoseResultsVisualizer): + return DensePoseResultExtractor() + elif isinstance(visualizer, ScoredBoundingBoxVisualizer): + return CompoundExtractor([extract_boxes_xywh_from_instances, extract_scores_from_instances]) + elif isinstance(visualizer, BoundingBoxVisualizer): + return extract_boxes_xywh_from_instances + elif isinstance(visualizer, DensePoseOutputsVertexVisualizer): + return DensePoseOutputsExtractor() + else: + logger = logging.getLogger(__name__) + logger.error(f"Could not create extractor for {visualizer}") + return None + + +class BoundingBoxExtractor(object): + """ + Extracts bounding boxes from instances + """ + + def __call__(self, instances: Instances): + boxes_xywh = extract_boxes_xywh_from_instances(instances) + return boxes_xywh + + +class ScoredBoundingBoxExtractor(object): + """ + Extracts bounding boxes from instances + """ + + def __call__(self, instances: Instances, select=None): + scores = extract_scores_from_instances(instances) + boxes_xywh = extract_boxes_xywh_from_instances(instances) + if (scores is None) or (boxes_xywh is None): + return (boxes_xywh, scores) + if select is not None: + scores = scores[select] + boxes_xywh = boxes_xywh[select] + return (boxes_xywh, scores) + + +class DensePoseResultExtractor(object): + """ + Extracts DensePose chart result with confidences from instances + """ + + def __call__( + self, instances: Instances, select=None + ) -> Tuple[Optional[DensePoseChartResultsWithConfidences], Optional[torch.Tensor]]: + if instances.has("pred_densepose") and instances.has("pred_boxes"): + dpout = instances.pred_densepose + boxes_xyxy = instances.pred_boxes + boxes_xywh = extract_boxes_xywh_from_instances(instances) + if select is not None: + dpout = dpout[select] + boxes_xyxy = boxes_xyxy[select] + converter = ToChartResultConverterWithConfidences() + results = [converter.convert(dpout[i], boxes_xyxy[[i]]) for i in range(len(dpout))] + return results, boxes_xywh + else: + return None, None + + +class DensePoseOutputsExtractor(object): + """ + Extracts DensePose result from instances + """ + + def __call__( + self, + instances: Instances, + select=None, + ) -> Tuple[ + Optional[DensePoseEmbeddingPredictorOutput], Optional[torch.Tensor], Optional[List[int]] + ]: + if not (instances.has("pred_densepose") and instances.has("pred_boxes")): + return None, None, None + + dpout = instances.pred_densepose + boxes_xyxy = instances.pred_boxes + boxes_xywh = extract_boxes_xywh_from_instances(instances) + + if instances.has("pred_classes"): + classes = instances.pred_classes.tolist() + else: + classes = None + + if select is not None: + dpout = dpout[select] + boxes_xyxy = boxes_xyxy[select] + if classes is not None: + classes = classes[select] + + return dpout, boxes_xywh, classes + + +class CompoundExtractor(object): + """ + Extracts data for CompoundVisualizer + """ + + def __init__(self, extractors): + self.extractors = extractors + + def __call__(self, instances: Instances, select=None): + datas = [] + for extractor in self.extractors: + data = extractor(instances, select) + datas.append(data) + return datas + + +class NmsFilteredExtractor(object): + """ + Extracts data in the format accepted by NmsFilteredVisualizer + """ + + def __init__(self, extractor, iou_threshold): + self.extractor = extractor + self.iou_threshold = iou_threshold + + def __call__(self, instances: Instances, select=None): + scores = extract_scores_from_instances(instances) + boxes_xywh = extract_boxes_xywh_from_instances(instances) + if boxes_xywh is None: + return None + select_local_idx = batched_nms( + boxes_xywh, + scores, + torch.zeros(len(scores), dtype=torch.int32), + iou_threshold=self.iou_threshold, + ).squeeze() + select_local = torch.zeros(len(boxes_xywh), dtype=torch.bool, device=boxes_xywh.device) + select_local[select_local_idx] = True + select = select_local if select is None else (select & select_local) + return self.extractor(instances, select=select) + + +class ScoreThresholdedExtractor(object): + """ + Extracts data in the format accepted by ScoreThresholdedVisualizer + """ + + def __init__(self, extractor, min_score): + self.extractor = extractor + self.min_score = min_score + + def __call__(self, instances: Instances, select=None): + scores = extract_scores_from_instances(instances) + if scores is None: + return None + select_local = scores > self.min_score + select = select_local if select is None else (select & select_local) + data = self.extractor(instances, select=select) + return data diff --git a/detectron2/projects/DensePose/dev/README.md b/detectron2/projects/DensePose/dev/README.md new file mode 100755 index 0000000..e3a94b6 --- /dev/null +++ b/detectron2/projects/DensePose/dev/README.md @@ -0,0 +1,7 @@ + +## Some scripts for developers to use, include: + +- `run_instant_tests.sh`: run training for a few iterations. +- `run_inference_tests.sh`: run inference on a small dataset. +- `../../dev/linter.sh`: lint the codebase before commit +- `../../dev/parse_results.sh`: parse results from log file. diff --git a/detectron2/projects/DensePose/dev/run_inference_tests.sh b/detectron2/projects/DensePose/dev/run_inference_tests.sh new file mode 100755 index 0000000..46556b8 --- /dev/null +++ b/detectron2/projects/DensePose/dev/run_inference_tests.sh @@ -0,0 +1,33 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +BIN="python train_net.py" +OUTPUT="inference_test_output" +NUM_GPUS=2 +IMS_PER_GPU=2 +IMS_PER_BATCH=$(( NUM_GPUS * IMS_PER_GPU )) + +CFG_LIST=( "${@:1}" ) + +if [ ${#CFG_LIST[@]} -eq 0 ]; then + CFG_LIST=( ./configs/quick_schedules/*inference_acc_test.yaml ) +fi + +echo "========================================================================" +echo "Configs to run:" +echo "${CFG_LIST[@]}" +echo "========================================================================" + +for cfg in "${CFG_LIST[@]}"; do + echo "========================================================================" + echo "Running $cfg ..." + echo "========================================================================" + $BIN \ + --eval-only \ + --num-gpus $NUM_GPUS \ + --config-file "$cfg" \ + OUTPUT_DIR "$OUTPUT" \ + SOLVER.IMS_PER_BATCH $IMS_PER_BATCH + rm -rf $OUTPUT +done + diff --git a/detectron2/projects/DensePose/dev/run_instant_tests.sh b/detectron2/projects/DensePose/dev/run_instant_tests.sh new file mode 100755 index 0000000..23a9c67 --- /dev/null +++ b/detectron2/projects/DensePose/dev/run_instant_tests.sh @@ -0,0 +1,28 @@ +#!/bin/bash -e +# Copyright (c) Facebook, Inc. and its affiliates. + +BIN="python train_net.py" +OUTPUT="instant_test_output" +NUM_GPUS=2 +SOLVER_IMS_PER_BATCH=$((NUM_GPUS * 2)) + +CFG_LIST=( "${@:1}" ) +if [ ${#CFG_LIST[@]} -eq 0 ]; then + CFG_LIST=( ./configs/quick_schedules/*instant_test.yaml ) +fi + +echo "========================================================================" +echo "Configs to run:" +echo "${CFG_LIST[@]}" +echo "========================================================================" + +for cfg in "${CFG_LIST[@]}"; do + echo "========================================================================" + echo "Running $cfg ..." + echo "========================================================================" + $BIN --num-gpus $NUM_GPUS --config-file "$cfg" \ + SOLVER.IMS_PER_BATCH $SOLVER_IMS_PER_BATCH \ + OUTPUT_DIR "$OUTPUT" + rm -rf "$OUTPUT" +done + diff --git a/detectron2/projects/DensePose/doc/BOOTSTRAPPING_PIPELINE.md b/detectron2/projects/DensePose/doc/BOOTSTRAPPING_PIPELINE.md new file mode 100755 index 0000000..a132686 --- /dev/null +++ b/detectron2/projects/DensePose/doc/BOOTSTRAPPING_PIPELINE.md @@ -0,0 +1,197 @@ +# Bootstrapping Pipeline + +Bootstrapping pipeline for DensePose was proposed in +[Sanakoyeu et al., 2020](https://arxiv.org/pdf/2003.00080.pdf) +to extend DensePose from humans to proximal animal classes +(chimpanzees). Currently, the pipeline is only implemented for +[chart-based models](DENSEPOSE_IUV.md). +Bootstrapping proceeds in two steps. + +## Master Model Training + +Master model is trained on data from source domain (humans) +and supporting domain (animals). Instances from the source domain +contain full DensePose annotations (`S`, `I`, `U` and `V`) and +instances from the supporting domain have segmentation annotations only. +To ensure segmentation quality in the target domain, only a subset of +supporting domain classes is included into the training. This is achieved +through category filters, e.g. +(see [configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml](../configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml)): + +``` + WHITELISTED_CATEGORIES: + "base_coco_2017_train": + - 1 # person + - 16 # bird + - 17 # cat + - 18 # dog + - 19 # horse + - 20 # sheep + - 21 # cow + - 22 # elephant + - 23 # bear + - 24 # zebra + - 25 # girafe +``` +The acronym `Atop10P` in config file names indicates that categories are filtered to +only contain top 10 animals and person. + +The training is performed in a *class-agnostic* manner: all instances +are mapped into the same class (person), e.g. +(see [configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml](../configs/evolution/Base-RCNN-FPN-Atop10P_CA.yaml)): + +``` + CATEGORY_MAPS: + "base_coco_2017_train": + "16": 1 # bird -> person + "17": 1 # cat -> person + "18": 1 # dog -> person + "19": 1 # horse -> person + "20": 1 # sheep -> person + "21": 1 # cow -> person + "22": 1 # elephant -> person + "23": 1 # bear -> person + "24": 1 # zebra -> person + "25": 1 # girafe -> person +``` +The acronym `CA` in config file names indicates that the training is class-agnostic. + +## Student Model Training + +Student model is trained on data from source domain (humans), +supporting domain (animals) and target domain (chimpanzees). +Annotations in source and supporting domains are similar to the ones +used for the master model training. +Annotations in target domain are obtained by applying the master model +to images that contain instances from the target category and sampling +sparse annotations from dense results. This process is called *bootstrapping*. +Below we give details on how the bootstrapping pipeline is implemented. + +### Data Loaders + +The central components that enable bootstrapping are +[`InferenceBasedLoader`](../densepose/data/inference_based_loader.py) and +[`CombinedDataLoader`](../densepose/data/combined_loader.py). + +`InferenceBasedLoader` takes images from a data loader, applies a model +to the images, filters the model outputs based on the selected criteria and +samples the filtered outputs to produce annotations. + +`CombinedDataLoader` combines data obtained from the loaders based on specified +ratios. The standard data loader has the default ratio of 1.0, +ratios for bootstrap datasets are specified in the configuration file. +The higher the ratio the higher the probability to include samples from the +particular data loader into a batch. + +Here is an example of the bootstrapping configuration taken from +[`configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uniform.yaml`](../configs/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uniform.yaml): +``` +BOOTSTRAP_DATASETS: + - DATASET: "chimpnsee" + RATIO: 1.0 + IMAGE_LOADER: + TYPE: "video_keyframe" + SELECT: + STRATEGY: "random_k" + NUM_IMAGES: 4 + TRANSFORM: + TYPE: "resize" + MIN_SIZE: 800 + MAX_SIZE: 1333 + BATCH_SIZE: 8 + NUM_WORKERS: 1 + INFERENCE: + INPUT_BATCH_SIZE: 1 + OUTPUT_BATCH_SIZE: 1 + DATA_SAMPLER: + # supported types: + # densepose_uniform + # densepose_UV_confidence + # densepose_fine_segm_confidence + # densepose_coarse_segm_confidence + TYPE: "densepose_uniform" + COUNT_PER_CLASS: 8 + FILTER: + TYPE: "detection_score" + MIN_VALUE: 0.8 +BOOTSTRAP_MODEL: + WEIGHTS: https://dl.fbaipublicfiles.com/densepose/evolution/densepose_R_50_FPN_DL_WC1M_3x_Atop10P_CA/217578784/model_final_9fe1cc.pkl +``` + +The above example has one bootstrap dataset (`chimpnsee`). This dataset is registered as +a [VIDEO_LIST](../densepose/data/datasets/chimpnsee.py) dataset, which means that +it consists of a number of videos specified in a text file. For videos there can be +different strategies to sample individual images. Here we use `video_keyframe` strategy +which considers only keyframes; this ensures temporal offset between sampled images and +faster seek operations. We select at most 4 random keyframes in each video: + +``` +SELECT: + STRATEGY: "random_k" + NUM_IMAGES: 4 +``` + +The frames are then resized + +``` +TRANSFORM: + TYPE: "resize" + MIN_SIZE: 800 + MAX_SIZE: 1333 +``` + +and batched using the standard +[PyTorch DataLoader](https://pytorch.org/docs/stable/data.html#torch.utils.data.DataLoader): + +``` +BATCH_SIZE: 8 +NUM_WORKERS: 1 +``` + +`InferenceBasedLoader` decomposes those batches into batches of size `INPUT_BATCH_SIZE` +and applies the master model specified by `BOOTSTRAP_MODEL`. Models outputs are filtered +by detection score: + +``` +FILTER: + TYPE: "detection_score" + MIN_VALUE: 0.8 +``` + +and sampled using the specified sampling strategy: + +``` +DATA_SAMPLER: + # supported types: + # densepose_uniform + # densepose_UV_confidence + # densepose_fine_segm_confidence + # densepose_coarse_segm_confidence + TYPE: "densepose_uniform" + COUNT_PER_CLASS: 8 +``` + +The current implementation supports +[uniform sampling](../densepose/data/samplers/densepose_uniform.py) and +[confidence-based sampling](../densepose/data/samplers/densepose_confidence_based.py) +to obtain sparse annotations from dense results. For confidence-based +sampling one needs to use the master model which produces confidence estimates. +The `WC1M` master model used in the example above produces all three types of confidence +estimates. + +Finally, sampled data is grouped into batches of size `OUTPUT_BATCH_SIZE`: + +``` +INFERENCE: + INPUT_BATCH_SIZE: 1 + OUTPUT_BATCH_SIZE: 1 +``` + +The proportion of data from annotated datasets and bootstrapped dataset can be tracked +in the logs, e.g.: + +``` +[... densepose.engine.trainer]: batch/ 1.8, batch/base_coco_2017_train 6.4, batch/densepose_coco_2014_train 3.85 +``` + +which means that over the last 20 iterations, on average for 1.8 bootstrapped data samples there were 6.4 samples from `base_coco_2017_train` and 3.85 samples from `densepose_coco_2014_train`. diff --git a/detectron2/projects/DensePose/doc/DENSEPOSE_CSE.md b/detectron2/projects/DensePose/doc/DENSEPOSE_CSE.md new file mode 100755 index 0000000..d5761ef --- /dev/null +++ b/detectron2/projects/DensePose/doc/DENSEPOSE_CSE.md @@ -0,0 +1,336 @@ +# Continuous Surface Embeddings for Dense Pose Estimation for Humans and Animals + +## Overview + +
+ +
+ +The pipeline uses [Faster R-CNN](https://arxiv.org/abs/1506.01497) +with [Feature Pyramid Network](https://arxiv.org/abs/1612.03144) meta architecture +outlined in Figure 1. For each detected object, the model predicts +its coarse segmentation `S` (2 channels: foreground / background) +and the embedding `E` (16 channels). At the same time, the embedder produces vertex +embeddings `Ê` for the corresponding mesh. Universal positional embeddings `E` +and vertex embeddings `Ê` are matched to derive for each pixel its continuous +surface embedding. + +
+ +
+

Figure 1. DensePose continuous surface embeddings architecture based on Faster R-CNN with Feature Pyramid Network (FPN).

+ +### Datasets + +For more details on datasets used for training and validation of +continuous surface embeddings models, +please refer to the [DensePose Datasets](DENSEPOSE_DATASETS.md) page. + +## Model Zoo and Baselines + +### Human CSE Models + +Continuous surface embeddings models for humans trained using the protocols from [Neverova et al, 2020](https://arxiv.org/abs/2011.12438). + +Models trained with hard assignment loss ℒ: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_s1xs1x0.3490.0606.361.167.164.465.7251155172model | metrics
R_101_FPN_s1xs1x0.4610.0717.462.367.264.765.8251155500model | metrics
R_50_FPN_DL_s1xs1x0.3990.0617.060.867.865.566.4251156349model | metrics
R_101_FPN_DL_s1xs1x0.5040.0748.361.568.065.666.6251156606model | metrics
+ +Models trained with soft assignment loss ℒσ: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_soft_s1xs1x0.3570.0579.761.366.964.365.4250533982model | metrics
R_101_FPN_soft_s1xs1x0.4640.07110.562.167.364.566.0250712522model | metrics
R_50_FPN_DL_soft_s1xs1x0.4270.06211.360.868.066.166.7250713703model | metrics
R_101_FPN_DL_soft_s1xs1x0.4830.07112.261.568.266.267.1250713061model | metrics
+ +### Animal CSE Models + +Models obtained by finetuning human CSE models on animals data from `ds1_train` +(see the [DensePose LVIS](DENSEPOSE_DATASETS.md#continuous-surface-embeddings-annotations-3) +section for more details on the datasets) with soft assignment loss ℒσ: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_soft_chimps_finetune_4k4K0.5690.0514.762.059.032.239.6253146869model | metrics
R_50_FPN_soft_animals_finetune_4k4K0.3810.0617.344.955.521.328.8253145793model | metrics
R_50_FPN_soft_animals_CA_finetune_4k4K0.4120.0597.153.459.525.433.4253498611model | metrics
+ +Acronyms: + +`CA`: class agnostic training, where all annotated instances are mapped into a single category + + +Models obtained by finetuning human CSE models on animals data from `ds2_train` dataset +with soft assignment loss ℒσ and, for some schedules, cycle losses. +Please refer to [DensePose LVIS](DENSEPOSE_DATASETS.md#continuous-surface-embeddings-annotations-3) +section for details on the dataset and to [Neverova et al, 2021]() for details on cycle losses. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
GErrGPSmodel iddownload
R_50_FPN_soft_animals_I0_finetune_16k16k0.3860.0588.454.267.029.038.613.285.4270727112model | metrics
R_50_FPN_soft_animals_I0_finetune_m2m_16k16k0.5080.05612.254.167.328.638.412.587.6270982215model | metrics
R_50_FPN_soft_animals_I0_finetune_i2m_16k16k0.4830.0569.754.066.628.938.311.088.9270727461model | metrics
+ +## References + +If you use DensePose methods based on continuous surface embeddings, please take the +references from the following BibTeX entries: + +Continuous surface embeddings: +``` +@InProceedings{Neverova2020ContinuousSurfaceEmbeddings, + title = {Continuous Surface Embeddings}, + author = {Neverova, Natalia and Novotny, David and Khalidov, Vasil and Szafraniec, Marc and Labatut, Patrick and Vedaldi, Andrea}, + journal = {Advances in Neural Information Processing Systems}, + year = {2020}, +} +``` + +Cycle Losses: +``` +@InProceedings{Neverova2021UniversalCanonicalMaps, + title = {Discovering Relationships between Object Categories via Universal Canonical Maps}, + author = {Neverova, Natalia and Sanakoyeu, Artsiom and Novotny, David and Labatut, Patrick and Vedaldi, Andrea}, + journal = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, + year = {2021}, +} +``` diff --git a/detectron2/projects/DensePose/doc/DENSEPOSE_DATASETS.md b/detectron2/projects/DensePose/doc/DENSEPOSE_DATASETS.md new file mode 100755 index 0000000..6943741 --- /dev/null +++ b/detectron2/projects/DensePose/doc/DENSEPOSE_DATASETS.md @@ -0,0 +1,513 @@ +# DensePose Datasets + +We summarize the datasets used in various DensePose training +schedules and describe different available annotation types. + +## Table of Contents + +[General Information](#general-information) + +[DensePose COCO](#densepose-coco) + +[DensePose PoseTrack](#densepose-posetrack) + +[DensePose Chimps](#densepose-chimps) + +[DensePose LVIS](#densepose-lvis) + +## General Information + +DensePose annotations are typically stored in JSON files. Their +structure follows the [COCO Data Format](https://cocodataset.org/#format-data), +the basic data structure is outlined below: + +``` +{ + "info": info, + "images": [image], + "annotations": [annotation], + "licenses": [license], +} + +info{ + "year": int, + "version": str, + "description": str, + "contributor": str, + "url": str, + "date_created": datetime, +} + +image{ + "id": int, + "width": int, + "height": int, + "file_name": str, + "license": int, + "flickr_url": str, + "coco_url": str, + "date_captured": datetime, +} + +license{ + "id": int, "name": str, "url": str, +} +``` + +DensePose annotations can be of two types: +*chart-based annotations* or *continuous surface embeddings annotations*. +We give more details on each of the two annotation types below. + +### Chart-based Annotations + +These annotations assume a single 3D model which corresponds to +all the instances in a given dataset. +3D model is assumed to be split into *charts*. Each chart has its own +2D parametrization through inner coordinates `U` and `V`, typically +taking values in `[0, 1]`. + +Chart-based annotations consist of *point-based annotations* and +*segmentation annotations*. Point-based annotations specify, for a given +image point, which model part it belongs to and what are its coordinates +in the corresponding chart. Segmentation annotations specify regions +in an image that are occupied by a given part. In some cases, charts +associated with point annotations are more detailed than the ones +associated with segmentation annotations. In this case we distinguish +*fine segmentation* (associated with points) and *coarse segmentation* +(associated with masks). + +**Point-based annotations**: + +`dp_x` and `dp_y`: image coordinates of the annotated points along +the horizontal and vertical axes respectively. The coordinates are defined +with respect to the top-left corner of the annotated bounding box and are +normalized assuming the bounding box size to be `256x256`; + +`dp_I`: for each point specifies the index of the fine segmentation chart +it belongs to; + +`dp_U` and `dp_V`: point coordinates on the corresponding chart. +Each fine segmentation part has its own parametrization in terms of chart +coordinates. + +**Segmentation annotations**: + +`dp_masks`: RLE encoded dense masks (`dict` containing keys `counts` and `size`). +The masks are typically of size `256x256`, they define segmentation within the +bounding box. + +### Continuous Surface Embeddings Annotations + +Continuous surface embeddings annotations also consist of *point-based annotations* +and *segmentation annotations*. Point-based annotations establish correspondence +between image points and 3D model vertices. Segmentation annotations specify +foreground regions for a given instane. + +**Point-based annotations**: + +`dp_x` and `dp_y` specify image point coordinates the same way as for chart-based +annotations; + +`dp_vertex` gives indices of 3D model vertices, which the annotated image points +correspond to; + +`ref_model` specifies 3D model name. + +**Segmentation annotations**: + +Segmentations can either be given by `dp_masks` field or by `segmentation` field. + +`dp_masks`: RLE encoded dense masks (`dict` containing keys `counts` and `size`). +The masks are typically of size `256x256`, they define segmentation within the +bounding box. + +`segmentation`: polygon-based masks stored as a 2D list +`[[x1 y1 x2 y2...],[x1 y1 ...],...]` of polygon vertex coordinates in a given +image. + +## DensePose COCO + +
+ +
+

+ Figure 1. Annotation examples from the DensePose COCO dataset. +

+ +DensePose COCO dataset contains about 50K annotated persons on images from the +[COCO dataset](https://cocodataset.org/#home) +The images are available for download from the +[COCO Dataset download page](https://cocodataset.org/#download): +[train2014](http://images.cocodataset.org/zips/train2014.zip), +[val2014](http://images.cocodataset.org/zips/val2014.zip). +The details on available annotations and their download links are given below. + +### Chart-based Annotations + +Chart-based DensePose COCO annotations are available for the instances of category +`person` and correspond to the model shown in Figure 2. +They include `dp_x`, `dp_y`, `dp_I`, `dp_U` and `dp_V` fields for annotated points +(~100 points per annotated instance) and `dp_masks` field, which encodes +coarse segmentation into 14 parts in the following order: +`Torso`, `Right Hand`, `Left Hand`, `Left Foot`, `Right Foot`, +`Upper Leg Right`, `Upper Leg Left`, `Lower Leg Right`, `Lower Leg Left`, +`Upper Arm Left`, `Upper Arm Right`, `Lower Arm Left`, `Lower Arm Right`, +`Head`. + +
+ +
+

+ Figure 2. Human body charts (fine segmentation) + and the associated 14 body parts depicted with rounded rectangles + (coarse segmentation). +

+ +The dataset splits used in the training schedules are +`train2014`, `valminusminival2014` and `minival2014`. +`train2014` and `valminusminival2014` are used for training, +and `minival2014` is used for validation. +The table with annotation download links, which summarizes the number of annotated +instances and images for each of the dataset splits is given below: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name# inst# imagesfile sizedownload
densepose_train20143921026437526Mdensepose_train2014.json
densepose_valminusminival201472975984105Mdensepose_valminusminival2014.json
densepose_minival20142243150831Mdensepose_minival2014.json
+ +### Continuous Surface Embeddings Annotations + +DensePose COCO continuous surface embeddings annotations are available for the instances +of category `person`. The annotations correspond to the 3D model shown in Figure 2, +and include `dp_x`, `dp_y` and `dp_vertex` and `ref_model` fields. +All chart-based annotations were also kept for convenience. + +As with chart-based annotations, the dataset splits used in the training schedules are +`train2014`, `valminusminival2014` and `minival2014`. +`train2014` and `valminusminival2014` are used for training, +and `minival2014` is used for validation. +The table with annotation download links, which summarizes the number of annotated +instances and images for each of the dataset splits is given below: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name# inst# imagesfile sizedownload
densepose_train2014_cse3921026437554Mdensepose_train2014_cse.json
densepose_valminusminival2014_cse72975984110Mdensepose_valminusminival2014_cse.json
densepose_minival2014_cse2243150832Mdensepose_minival2014_cse.json
+ +## DensePose PoseTrack + +
+ +
+

+ Figure 3. Annotation examples from the PoseTrack dataset. +

+ +DensePose PoseTrack dataset contains annotated image sequences. +To download the images for this dataset, please follow the instructions +from the [PoseTrack Download Page](https://posetrack.net/users/download.php). + +### Chart-based Annotations + +Chart-based DensePose PoseTrack annotations are available for the instances with category +`person` and correspond to the model shown in Figure 2. +They include `dp_x`, `dp_y`, `dp_I`, `dp_U` and `dp_V` fields for annotated points +(~100 points per annotated instance) and `dp_masks` field, which encodes +coarse segmentation into the same 14 parts as in DensePose COCO. + +The dataset splits used in the training schedules are +`posetrack_train2017` (train set) and `posetrack_val2017` (validation set). +The table with annotation download links, which summarizes the number of annotated +instances, instance tracks and images for the dataset splits is given below: + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name# inst# images# tracksfile sizedownload
densepose_posetrack_train20178274168036118Mdensepose_posetrack_train2017.json
densepose_posetrack_val201747537824659Mdensepose_posetrack_val2017.json
+ +## DensePose Chimps + +
+ +
+

+ Figure 4. Example images from the DensePose Chimps dataset. +

+ +DensePose Chimps dataset contains annotated images of chimpanzees. +To download the images for this dataset, please use the URL specified in +`image_url` field in the annotations. + +### Chart-based Annotations + +Chart-based DensePose Chimps annotations correspond to the human model shown in Figure 2, +the instances are thus annotated to belong to the `person` category. +They include `dp_x`, `dp_y`, `dp_I`, `dp_U` and `dp_V` fields for annotated points +(~3 points per annotated instance) and `dp_masks` field, which encodes +foreground mask in RLE format. + +Chart-base DensePose Chimps annotations are used for validation only. +The table with annotation download link, which summarizes the number of annotated +instances and images is given below: + + + + + + + + + + + + + + + + + +
Name# inst# imagesfile sizedownload
densepose_chimps9306546Mdensepose_chimps_full_v2.json
+ +### Continuous Surface Embeddings Annotations + +Continuous surface embeddings annotations for DensePose Chimps +include `dp_x`, `dp_y` and `dp_vertex` point-based annotations +(~3 points per annotated instance), `dp_masks` field with the same +contents as for chart-based annotations and `ref_model` field +which refers to a chimpanzee 3D model `chimp_5029`. + +The dataset is split into training and validation subsets. +The table with annotation download links, which summarizes the number of annotated +instances and images for each of the dataset splits is given below: + +The table below outlines the dataset splits: + + + + + + + + + + + + + + + + + + + + + + + +
Name# inst# imagesfile sizedownload
densepose_chimps_cse_train5003503Mdensepose_chimps_cse_train.json
densepose_chimps_cse_val4303043Mdensepose_chimps_cse_val.json
+ +## DensePose LVIS + +
+ +
+

+ Figure 5. Example images from the DensePose LVIS dataset. +

+ +DensePose LVIS dataset contains segmentation and DensePose annotations for animals +on images from the [LVIS dataset](https://www.lvisdataset.org/dataset). +The images are available for download through the links: +[train2017](http://images.cocodataset.org/zips/train2017.zip), +[val2017](http://images.cocodataset.org/zips/val2017.zip). + +### Continuous Surface Embeddings Annotations + +Continuous surface embeddings (CSE) annotations for DensePose LVIS +include `dp_x`, `dp_y` and `dp_vertex` point-based annotations +(~3 points per annotated instance) and a `ref_model` field +which refers to a 3D model that corresponds to the instance. +Instances from 9 animal categories were annotated with CSE DensePose data: +bear, cow, cat, dog, elephant, giraffe, horse, sheep and zebra. + +Foreground masks are available from instance segmentation annotations +(`segmentation` field) in polygon format, they are stored as a 2D list +`[[x1 y1 x2 y2...],[x1 y1 ...],...]`. + +We used two datasets, each constising of one training (`train`) +and validation (`val`) subsets: the first one (`ds1`) +was used in [Neverova et al, 2020](https://arxiv.org/abs/2011.12438). +The second one (`ds2`), was used in [Neverova et al, 2021](). + +The summary of the available datasets is given below: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
All DataSelected Animals
(9 categories)
File
Name# cat# img# segm# img# segm# dpsizedownload
ds1_train55641412398541419472518446Mdensepose_lvis_v1_ds1_train_v1.json
ds1_val2515713281571153710365Mdensepose_lvis_v1_ds1_val_v1.json
ds2_train12039938812701411374646964189321051Mdensepose_lvis_v1_ds2_train_v1.json
ds2_val92690915526909155360424Mdensepose_lvis_v1_ds2_val_v1.json
+ +Legend: + +`#cat` - number of categories in the dataset for which annotations are available; + +`#img` - number of images with annotations in the dataset; + +`#segm` - number of segmentation annotations; + +`#dp` - number of DensePose annotations. + + +Important Notes: + +1. The reference models used for `ds1_train` and `ds1_val` are +`bear_4936`, `cow_5002`, `cat_5001`, `dog_5002`, `elephant_5002`, `giraffe_5002`, +`horse_5004`, `sheep_5004` and `zebra_5002`. The reference models used for +`ds2_train` and `ds2_val` are `bear_4936`, `cow_5002`, `cat_7466`, +`dog_7466`, `elephant_5002`, `giraffe_5002`, `horse_5004`, `sheep_5004` and `zebra_5002`. +So reference models for categories `cat` aind `dog` are different for `ds1` and `ds2`. + +2. Some annotations from `ds1_train` are reused in `ds2_train` (4538 DensePose annotations +and 21275 segmentation annotations). The ones for cat and dog categories were remapped +from `cat_5001` and `dog_5002` reference models used in `ds1` to `cat_7466` and `dog_7466` +used in `ds2`. + +3. All annotations from `ds1_val` are included into `ds2_val` after the remapping +procedure mentioned in note 2. + +4. Some annotations from `ds1_train` are part of `ds2_val` (646 DensePose annotations and +1225 segmentation annotations). Thus one should not train on `ds1_train` if evaluating on `ds2_val`. diff --git a/detectron2/projects/DensePose/doc/DENSEPOSE_IUV.md b/detectron2/projects/DensePose/doc/DENSEPOSE_IUV.md new file mode 100755 index 0000000..de158e0 --- /dev/null +++ b/detectron2/projects/DensePose/doc/DENSEPOSE_IUV.md @@ -0,0 +1,627 @@ +# Chart-based Dense Pose Estimation for Humans and Animals + +## Overview + +The goal of chart-based DensePose methods is to establish dense correspondences +between image pixels and 3D object mesh by splitting the latter into charts and estimating +for each pixel the corresponding chart index `I` and local chart coordinates `(U, V)`. + +
+ +
+ +The charts used for human DensePose estimation are shown in Figure 1. +The human body is split into 24 parts, each part is parametrized by `U` and `V` +coordinates, each taking values in `[0, 1]`. + +
+ +
+

Figure 1. Partitioning and parametrization of human body surface.

+ +The pipeline uses [Faster R-CNN](https://arxiv.org/abs/1506.01497) +with [Feature Pyramid Network](https://arxiv.org/abs/1612.03144) meta architecture +outlined in Figure 2. For each detected object, the model predicts +its coarse segmentation `S` (2 or 15 channels: foreground / background or +background + 14 predefined body parts), fine segmentation `I` (25 channels: +background + 24 predefined body parts) and local chart coordinates `U` and `V`. + +
+ +
+

Figure 2. DensePose chart-based architecture based on Faster R-CNN with Feature Pyramid Network (FPN).

+ +### Bootstrapping Chart-Based Models + +[Sanakoyeu et al., 2020](https://arxiv.org/pdf/2003.00080.pdf) introduced a pipeline +to transfer DensePose models trained on humans to proximal animal classes (chimpanzees), +which is summarized in Figure 3. The training proceeds in two stages: + +First, a *master* model is trained on data from source domain (humans with full +DensePose annotation `S`, `I`, `U` and `V`) +and supporting domain (animals with segmentation annotation only). +Only selected animal classes are chosen from the supporting +domain through *category filters* to guarantee the quality of target domain results. +The training is done in *class-agnostic manner*: all selected categories are mapped +to a single category (human). + +Second, a *student* model is trained on data from source and supporting domains, +as well as data from target domain obtained by applying the master model, selecting +high-confidence detections and sampling the results. + +
+ +
+

Figure 3. Domain adaptation: master model is trained on data from source and +supporting domains to produce predictions in target domain; student model combines data from source and +supporting domains, as well as sampled predictions from the master model on target domain to improve +target domain predictions quality.

+ +Examples of pretrained master and student models are available in the [Model Zoo](#ModelZooBootstrap). +For more details on the bootstrapping pipeline, please see [Bootstrapping Pipeline](BOOTSTRAPPING_PIPELINE.md). + +### Datasets + +For more details on datasets used for chart-based model training and validation, +please refer to the [DensePose Datasets](DENSEPOSE_DATASETS.md) page. + +## Model Zoo and Baselines + +### Legacy Models + +Baselines trained using schedules from [Güler et al, 2018](https://arxiv.org/pdf/1802.00434.pdf) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_s1x_legacys1x0.3070.0513.258.158.252.154.9164832157model | metrics
R_101_FPN_s1x_legacys1x0.3900.0634.359.559.353.256.0164832182model | metrics
+ +### Improved Baselines, Original Fully Convolutional Head + +These models use an improved training schedule and Panoptic FPN head from [Kirillov et al, 2019](https://arxiv.org/abs/1901.02446). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_s1xs1x0.3590.0664.561.267.263.765.3165712039model | metrics
R_101_FPN_s1xs1x0.4280.0795.862.367.864.566.2165712084model | metrics
+ +### Improved Baselines, DeepLabV3 Head + +These models use an improved training schedule, Panoptic FPN head from [Kirillov et al, 2019](https://arxiv.org/abs/1901.02446) and DeepLabV3 head from [Chen et al, 2017](https://arxiv.org/abs/1706.05587). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_DL_s1xs1x0.3920.0706.761.168.365.666.7165712097model | metrics
R_101_FPN_DL_s1xs1x0.4780.0837.062.368.766.367.6165712116model | metrics
+ +###
Baselines with Confidence Estimation + +These models perform additional estimation of confidence in regressed UV coodrinates, along the lines of [Neverova et al., 2019](https://papers.nips.cc/paper/8378-correlated-uncertainty-for-learning-dense-correspondences-from-noisy-labels). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_WC1_s1xs1x0.3530.0644.660.567.064.265.4173862049model | metrics
R_50_FPN_WC2_s1xs1x0.3640.0664.860.766.964.265.7173861455model | metrics
R_50_FPN_DL_WC1_s1xs1x0.3970.0686.761.168.165.867.0173067973model | metrics
R_50_FPN_DL_WC2_s1xs1x0.4100.0706.860.867.965.666.7173859335model | metrics
R_101_FPN_WC1_s1xs1x0.4350.0765.762.567.664.966.3171402969model | metrics
R_101_FPN_WC2_s1xs1x0.4500.0785.762.367.664.866.4173860702model | metrics
R_101_FPN_DL_WC1_s1xs1x0.4790.0817.962.068.466.267.2173858525model | metrics
R_101_FPN_DL_WC2_s1xs1x0.4910.0827.661.768.365.967.2173294801model | metrics
+ +Acronyms: + +`WC1`: with confidence estimation model type 1 for `U` and `V` + +`WC2`: with confidence estimation model type 2 for `U` and `V` + +###
Baselines with Mask Confidence Estimation + +Models that perform estimation of confidence in regressed UV coodrinates +as well as confidences associated with coarse and fine segmentation, +see [Sanakoyeu et al., 2020](https://arxiv.org/pdf/2003.00080.pdf) for details. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_WC1M_s1xs1x0.3810.0664.860.666.764.065.4217144516model | metrics
R_50_FPN_WC2M_s1xs1x0.3420.0685.060.766.964.265.5216245640model | metrics
R_50_FPN_DL_WC1M_s1xs1x0.3710.0686.060.768.065.266.7216245703model | metrics
R_50_FPN_DL_WC2M_s1xs1x0.3850.0716.160.868.165.066.4216245758model | metrics
R_101_FPN_WC1M_s1xs1x0.4230.0795.962.067.364.866.0216453687model | metrics
R_101_FPN_WC2M_s1xs1x0.4360.0805.962.567.464.566.0216245682model | metrics
R_101_FPN_DL_WC1M_s1xs1x0.4530.0796.862.068.166.467.1216245771model | metrics
R_101_FPN_DL_WC2M_s1xs1x0.4640.0806.961.968.266.167.1216245790model | metrics
+ +Acronyms: + +`WC1M`: with confidence estimation model type 1 for `U` and `V` and mask confidence estimation + +`WC2M`: with confidence estimation model type 2 for `U` and `V` and mask confidence estimation + +###
Bootstrapping Baselines + +Master and student models trained using the bootstrapping pipeline with chimpanzee as the target category, +see [Sanakoyeu et al., 2020](https://arxiv.org/pdf/2003.00080.pdf) +and [Bootstrapping Pipeline](BOOTSTRAPPING_PIPELINE.md) for details. +Evaluation is performed on [DensePose Chimps](DENSEPOSE_DATASETS.md#densepose-chimps) dataset. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namelr
sched
train
time
(s/iter)
inference
time
(s/im)
train
mem
(GB)
box
AP
segm
AP
dp. APex
GPS
dp. AP
GPS
dp. AP
GPSm
model iddownload
R_50_FPN_DL_WC1M_3x_Atop10P_CA3x0.5220.0739.761.359.136.220.030.2217578784model | metrics
R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uniform3x1.9390.07210.160.958.537.221.531.0256453729model | metrics
R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_uv3x1.9850.0729.661.458.938.322.232.1256452095model | metrics
R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_finesegm3x2.0470.07210.360.958.536.720.730.7256452819model | metrics
R_50_FPN_DL_WC1M_3x_Atop10P_CA_B_coarsesegm3x1.8300.0709.661.359.237.921.531.6256455697model | metrics
+ +Acronyms: + +`WC1M`: with confidence estimation model type 1 for `U` and `V` and mask confidence estimation + +`Atop10P`: humans and animals from the 10 best suitable categories are used for training + +`CA`: class agnostic training, where all annotated instances are mapped into a single category + +`B_<...>`: schedule with bootstrapping with the specified results sampling strategy + +Note: + +The relaxed `dp. APex GPS` metric was used in +[Sanakoyeu et al., 2020](https://arxiv.org/pdf/2003.00080.pdf) to evaluate DensePose +results. This metric considers matches at thresholds 0.2, 0.3 and 0.4 additionally +to the standard ones used in the evaluation protocol. The minimum threshold is +controlled by `DENSEPOSE_EVALUATION.MIN_IOU_THRESHOLD` config option. + +### License + +All models available for download are licensed under the +[Creative Commons Attribution-ShareAlike 3.0 license](https://creativecommons.org/licenses/by-sa/3.0/) + +## References + +If you use chart-based DensePose methods, please take the references from the following +BibTeX entries: + +DensePose bootstrapping pipeline: +``` +@InProceedings{Sanakoyeu2020TransferringDensePose, + title = {Transferring Dense Pose to Proximal Animal Classes}, + author = {Artsiom Sanakoyeu and Vasil Khalidov and Maureen S. McCarthy and Andrea Vedaldi and Natalia Neverova}, + journal = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, + year = {2020}, +} +``` + +DensePose with confidence estimation: +``` +@InProceedings{Neverova2019DensePoseConfidences, + title = {Correlated Uncertainty for Learning Dense Correspondences from Noisy Labels}, + author = {Neverova, Natalia and Novotny, David and Vedaldi, Andrea}, + journal = {Advances in Neural Information Processing Systems}, + year = {2019}, +} +``` + +Original DensePose: +``` +@InProceedings{Guler2018DensePose, + title={DensePose: Dense Human Pose Estimation In The Wild}, + author={R\{i}za Alp G\"uler, Natalia Neverova, Iasonas Kokkinos}, + journal={The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, + year={2018} +} +``` diff --git a/detectron2/projects/DensePose/doc/GETTING_STARTED.md b/detectron2/projects/DensePose/doc/GETTING_STARTED.md new file mode 100755 index 0000000..a5c86f3 --- /dev/null +++ b/detectron2/projects/DensePose/doc/GETTING_STARTED.md @@ -0,0 +1,76 @@ +# Getting Started with DensePose + +## Inference with Pre-trained Models + +1. Pick a model and its config file from [Model Zoo(IUV)](DENSEPOSE_IUV.md#ModelZoo), [Model Zoo(CSE)](DENSEPOSE_CSE.md#ModelZoo), for example [densepose_rcnn_R_50_FPN_s1x.yaml](../configs/densepose_rcnn_R_50_FPN_s1x.yaml) +2. Run the [Apply Net](TOOL_APPLY_NET.md) tool to visualize the results or save the to disk. For example, to use contour visualization for DensePose, one can run: +```bash +python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml densepose_rcnn_R_50_FPN_s1x.pkl image.jpg dp_contour,bbox --output image_densepose_contour.png +``` +Please see [Apply Net](TOOL_APPLY_NET.md) for more details on the tool. + +## Training + +First, prepare the [dataset](http://densepose.org/#dataset) into the following structure under the directory you'll run training scripts: +
+datasets/coco/
+  annotations/
+    densepose_{train,minival,valminusminival}2014.json
+    densepose_minival2014_100.json   (optional, for testing only)
+  {train,val}2014/
+    # image files that are mentioned in the corresponding json
+
+ +To train a model one can use the [train_net.py](../train_net.py) script. +This script was used to train all DensePose models in [Model Zoo(IUV)](DENSEPOSE_IUV.md#ModelZoo), [Model Zoo(CSE)](DENSEPOSE_CSE.md#ModelZoo). +For example, to launch end-to-end DensePose-RCNN training with ResNet-50 FPN backbone +on 8 GPUs following the s1x schedule, one can run +```bash +python train_net.py --config-file configs/densepose_rcnn_R_50_FPN_s1x.yaml --num-gpus 8 +``` +The configs are made for 8-GPU training. To train on 1 GPU, one can apply the +[linear learning rate scaling rule](https://arxiv.org/abs/1706.02677): +```bash +python train_net.py --config-file configs/densepose_rcnn_R_50_FPN_s1x.yaml \ + SOLVER.IMS_PER_BATCH 2 SOLVER.BASE_LR 0.0025 +``` + +## Evaluation + +Model testing can be done in the same way as training, except for an additional flag `--eval-only` and +model location specification through `MODEL.WEIGHTS model.pth` in the command line +```bash +python train_net.py --config-file configs/densepose_rcnn_R_50_FPN_s1x.yaml \ + --eval-only MODEL.WEIGHTS model.pth +``` + +## Tools + +We provide tools which allow one to: + - easily view DensePose annotated data in a dataset; + - perform DensePose inference on a set of images; + - visualize DensePose model results; + +`query_db` is a tool to print or visualize DensePose data in a dataset. +Please refer to [Query DB](TOOL_QUERY_DB.md) for more details on this tool + +`apply_net` is a tool to print or visualize DensePose results. +Please refer to [Apply Net](TOOL_APPLY_NET.md) for more details on this tool + + +## Installation as a package + +DensePose can also be installed as a Python package for integration with other software. + +The following dependencies are needed: +- Python >= 3.7 +- [PyTorch](https://pytorch.org/get-started/locally/#start-locally) >= 1.7 (to match [detectron2 requirements](https://detectron2.readthedocs.io/en/latest/tutorials/install.html#requirements)) +- [torchvision](https://pytorch.org/vision/stable/) version [compatible with your version of PyTorch](https://github.com/pytorch/vision#installation) + +DensePose can then be installed from this repository with: + +``` +pip install git+https://github.com/facebookresearch/detectron2@main#subdirectory=projects/DensePose +``` + +After installation, the package will be importable as `densepose`. diff --git a/detectron2/projects/DensePose/doc/RELEASE_2020_04.md b/detectron2/projects/DensePose/doc/RELEASE_2020_04.md new file mode 100755 index 0000000..2fab6ae --- /dev/null +++ b/detectron2/projects/DensePose/doc/RELEASE_2020_04.md @@ -0,0 +1,6 @@ +# DensePose Confidence Estimation and Model Zoo Improvements + +* [DensePose models with confidence estimation](doc/DENSEPOSE_IUV.md#ModelZooConfidence) +* [Panoptic FPN and DeepLabV3 head implementation](doc/DENSEPOSE_IUV.md#ModelZooDeepLabV3) +* Test time augmentations for DensePose +* New evaluation metric (GPSm) that yields more reliable scores diff --git a/detectron2/projects/DensePose/doc/RELEASE_2021_03.md b/detectron2/projects/DensePose/doc/RELEASE_2021_03.md new file mode 100755 index 0000000..eb908a6 --- /dev/null +++ b/detectron2/projects/DensePose/doc/RELEASE_2021_03.md @@ -0,0 +1,45 @@ +# DensePose CSE and DensePose Evolution + +* [DensePose Evolution pipeline](DENSEPOSE_IUV.md#ModelZooBootstrap), a framework to bootstrap + DensePose on unlabeled data + * [`InferenceBasedLoader`](../densepose/data/inference_based_loader.py) + with data samplers to use inference results from one model + to train another model (bootstrap); + * [`VideoKeyframeDataset`](../densepose/data/video/video_keyframe_dataset.py) + to efficiently load images from video keyframes; + * Category maps and filters to combine annotations from different categories + and train in a class-agnostic manner; + * [Pretrained models](DENSEPOSE_IUV.md#ModelZooBootstrap) for DensePose estimation on chimpanzees; + * DensePose head training from partial data (segmentation only); + * [DensePose models with mask confidence estimation](DENSEPOSE_IUV.md#ModelZooMaskConfidence); + * [DensePose Chimps]() dataset for IUV evaluation +* [DensePose Continuous Surface Embeddings](DENSEPOSE_CSE.md), a framework to extend DensePose + to various categories using 3D models + * [Hard embedding](../densepose/modeling/losses/embed.py) and + [soft embedding](../densepose/modeling/losses/soft_embed.py) + losses to train universal positional embeddings; + * [Embedder](../(densepose/modeling/cse/embedder.py) to handle + mesh vertex embeddings; + * [Storage](../densepose/evaluation/tensor_storage.py) for evaluation with high volumes of data; + * [Pretrained models](DENSEPOSE_CSE.md#ModelZoo) for DensePose CSE estimation on humans and animals; + * [DensePose Chimps](DENSEPOSE_DATASETS.md#densepose-chimps) and + [DensePose LVIS](DENSEPOSE_DATASETS.md#densepose-lvis) datasets for CSE finetuning and evaluation; + * [Vertex and texture mapping visualizers](../densepose/vis/densepose_outputs_vertex.py); +* Refactoring of all major components: losses, predictors, model outputs, model results, visualizers; + * Dedicated structures for [chart outputs](../densepose/structures/chart.py), + [chart outputs with confidences](../densepose/structures/chart_confidence.py), + [chart results](../densepose/structures/chart_result.py), + [CSE outputs](../densepose/structures/cse.py); + * Dedicated predictors for + [chart-based estimation](../densepose/modeling/predictors/chart.py), + [confidence estimation](../densepose/modeling/predictors/chart_confidence.py) + and [CSE estimation](../densepose/modeling/predictors/cse.py); + * Generic handling of various [conversions](../densepose/converters) (e.g. from outputs to results); + * Better organization of various [losses](../densepose/modeling/losses); + * Segregation of loss data accumulators for + [IUV setting](../densepose/modeling/losses/utils.py) + and [CSE setting](../densepose/modeling/losses/embed_utils.py); + * Splitting visualizers into separate modules; +* [HRNet](../densepose/modeling/hrnet.py) and [HRFPN](../densepose/modeling/hrfpn.py) backbones; +* [PoseTrack](DENSEPOSE_DATASETS.md#densepose-posetrack) dataset; +* [IUV texture visualizer](../densepose/vis/densepose_results_textures.py) diff --git a/detectron2/projects/DensePose/doc/RELEASE_2021_06.md b/detectron2/projects/DensePose/doc/RELEASE_2021_06.md new file mode 100755 index 0000000..fb5ff4f --- /dev/null +++ b/detectron2/projects/DensePose/doc/RELEASE_2021_06.md @@ -0,0 +1,12 @@ +# DensePose CSE with Cycle Losses + +This release follows the paper [Neverova et al, 2021]() and +adds CSE datasets with more annotations, better CSE animal models +to the model zoo, losses to ensure cycle consistency for models and mesh +alignment evaluator. In particular: + +* [Pixel to shape](../densepose/modeling/losses/cycle_pix2shape.py) and [shape to shape](../densepose/modeling/losses/cycle_shape2shape.py) cycle consistency losses; +* Mesh alignment [evaluator](../densepose/evaluation/mesh_alignment_evaluator.py); +* Existing CSE datasets renamed to [ds1_train](https://dl.fbaipublicfiles.com/densepose/annotations/lvis/densepose_lvis_v1_ds1_train_v1.json) and [ds1_val](https://dl.fbaipublicfiles.com/densepose/annotations/lvis/densepose_lvis_v1_ds1_val_v1.json); +* New CSE datasets [ds2_train](https://dl.fbaipublicfiles.com/densepose/annotations/lvis/densepose_lvis_v1_ds2_train_v1.json) and [ds2_val](https://dl.fbaipublicfiles.com/densepose/annotations/lvis/densepose_lvis_v1_ds2_val_v1.json) added; +* Better CSE animal models trained with the 16k schedule added to the [model zoo](DENSEPOSE_CSE.md#animal-cse-models). diff --git a/detectron2/projects/DensePose/doc/TOOL_APPLY_NET.md b/detectron2/projects/DensePose/doc/TOOL_APPLY_NET.md new file mode 100755 index 0000000..ca8e1dd --- /dev/null +++ b/detectron2/projects/DensePose/doc/TOOL_APPLY_NET.md @@ -0,0 +1,203 @@ +# Apply Net + +`apply_net` is a tool to print or visualize DensePose results on a set of images. +It has two modes: `dump` to save DensePose model results to a pickle file +and `show` to visualize them on images. + +The `image.jpg` file that is used as an example in this doc can be found [here](http://images.cocodataset.org/train2017/000000117508.jpg) + +## Dump Mode + +The general command form is: +```bash +python apply_net.py dump [-h] [-v] [--output ] +``` + +There are three mandatory arguments: + - ``, configuration file for a given model; + - ``, model file with trained parameters + - ``, input image file name, pattern or folder + +One can additionally provide `--output` argument to define the output file name, +which defaults to `output.pkl`. + + +Examples: + +1. Dump results of the [R_50_FPN_s1x](https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl) DensePose model for images in a folder `images` to file `dump.pkl`: +```bash +python apply_net.py dump configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +images --output dump.pkl -v +``` + +2. Dump results of the [R_50_FPN_s1x](https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl) DensePose model for images with file name matching a pattern `image*.jpg` to file `results.pkl`: +```bash +python apply_net.py dump configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +"image*.jpg" --output results.pkl -v +``` + +If you want to load the pickle file generated by the above command: +``` +# make sure DensePose is in your PYTHONPATH, or use the following line to add it: +sys.path.append("/your_detectron2_path/detectron2_repo/projects/DensePose/") + +f = open('/your_result_path/results.pkl', 'rb') +data = pickle.load(f) +``` + +The file `results.pkl` contains the list of results per image, for each image the result is a dictionary. + +**If you use a [IUV model](DENSEPOSE_IUV.md#-model-zoo-and-baselines)**, the dumped data will have the following format: + +``` +data: [{'file_name': '/your_path/image1.jpg', + 'scores': tensor([0.9884]), + 'pred_boxes_XYXY': tensor([[ 69.6114, 0.0000, 706.9797, 706.0000]]), + 'pred_densepose': [DensePoseChartResultWithConfidences(labels=tensor(...), uv=tensor(...), sigma_1=None, + sigma_2=None, kappa_u=None, kappa_v=None, fine_segm_confidence=None, coarse_segm_confidence=None), + DensePoseChartResultWithConfidences, ...] + } + {'file_name': '/your_path/image2.jpg', + 'scores': tensor([0.9999, 0.5373, 0.3991]), + 'pred_boxes_XYXY': tensor([[ 59.5734, 7.7535, 579.9311, 932.3619], + [612.9418, 686.1254, 612.9999, 704.6053], + [164.5081, 407.4034, 598.3944, 920.4266]]), + 'pred_densepose': [DensePoseChartResultWithConfidences(labels=tensor(...), uv=tensor(...), sigma_1=None, + sigma_2=None, kappa_u=None, kappa_v=None, fine_segm_confidence=None, coarse_segm_confidence=None), + DensePoseChartResultWithConfidences, ...] + }] +``` + +`DensePoseChartResultWithConfidences` contains the following fields: +- `labels` - a tensor of size `[H, W]` of type `torch.long` which contains fine segmentation labels (previously called `I`) +- `uv` - a tensor of size `[2, H, W]` of type `torch.float` which contains `U` and `V` coordinates +- various optional confidence-related fields (`sigma_1`, `sigma_2`, `kappa_u`, `kappa_v`, `fine_segm_confidence`, `coarse_segm_confidence`) + + +**If you use a [CSE model](DENSEPOSE_CSE.md#-model-zoo-and-baselines)**, the dumped data will have the following format: +``` +data: [{'file_name': '/your_path/image1.jpg', + 'scores': tensor([0.9984, 0.9961]), + 'pred_boxes_XYXY': tensor([[480.0093, 461.0796, 698.3614, 696.1011], + [78.1589, 168.6614, 307.1287, 653.8522]]), + 'pred_densepose': DensePoseEmbeddingPredictorOutput(embedding=tensor(...), coarse_segm=tensor(...))} + {'file_name': '/your_path/image2.jpg', + 'scores': tensor([0.9189, 0.9491]), + 'pred_boxes_XYXY': tensor([[734.9685, 534.2003, 287.3923, 254.8859], + [434.2853, 765.1219, 132.1029, 867.9283]]), + 'pred_densepose': DensePoseEmbeddingPredictorOutput(embedding=tensor(...), coarse_segm=tensor(...))}] +``` + +`DensePoseEmbeddingPredictorOutput` contains the following fields: +- `embedding` - a tensor of size `[N, D, sz, sz]` of type `torch.float`, which contains embeddings of size `D` of the `N` detections in the image +- `coarse_segm` - a tensor of size `[N, 2, sz, sz]` of type `torch.float` which contains segmentation scores of the `N` detections in the image; e.g. a mask can be obtained by `coarse_segm.argmax(dim=1)` + +`sz` is a fixed size for the tensors; you can resize them to the size of the bounding box, if needed + +We can use the following code, to parse the outputs of the first +detected instance on the first image (IUV model). +``` +img_id, instance_id = 0, 0 # Look at the first image and the first detected instance +bbox_xyxy = data[img_id]['pred_boxes_XYXY'][instance_id] +result = data[img_id]['pred_densepose'][instance_id] +uv = result.uv +``` +The array `bbox_xyxy` contains (x0, y0, x1, y1) of the bounding box. + + +## Visualization Mode + +The general command form is: +```bash +python apply_net.py show [-h] [-v] [--min_score ] [--nms_thresh ] [--output ] +``` + +There are four mandatory arguments: + - ``, configuration file for a given model; + - ``, model file with trained parameters + - ``, input image file name, pattern or folder + - ``, visualizations specifier; currently available visualizations are: + * `bbox` - bounding boxes of detected persons; + * `dp_segm` - segmentation masks for detected persons; + * `dp_u` - each body part is colored according to the estimated values of the + U coordinate in part parameterization; + * `dp_v` - each body part is colored according to the estimated values of the + V coordinate in part parameterization; + * `dp_contour` - plots contours with color-coded U and V coordinates; + * `dp_iuv_texture` - transfers the texture from a given texture image file to detected instances, in IUV mode; + * `dp_vertex` - plots the rainbow visualization of the closest vertices prediction for a given mesh, in CSE mode; + * `dp_cse_texture` - transfers the texture from a given list of texture image files (one from each human or animal mesh) to detected instances, in CSE mode + + +One can additionally provide the following optional arguments: + - `--min_score` to only show detections with sufficient scores that are not lower than provided value + - `--nms_thresh` to additionally apply non-maximum suppression to detections at a given threshold + - `--output` to define visualization file name template, which defaults to `output.png`. + To distinguish output file names for different images, the tool appends 1-based entry index, + e.g. output.0001.png, output.0002.png, etc... +- `--texture_atlas` to define the texture atlas image for IUV texture transfer +- `--texture_atlases_map` to define the texture atlas images map (a dictionary `{mesh name: texture atlas image}`) for CSE texture transfer + + +The following examples show how to output results of a DensePose model +with ResNet-50 FPN backbone using different visualizations for image `image.jpg`: + +1. Show bounding box and segmentation: +```bash +python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +image.jpg bbox,dp_segm -v +``` +![Bounding Box + Segmentation Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_segm.jpg) + +2. Show bounding box and estimated U coordinates for body parts: +```bash +python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +image.jpg bbox,dp_u -v +``` +![Bounding Box + U Coordinate Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_u.jpg) + +3. Show bounding box and estimated V coordinates for body parts: +```bash +python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +image.jpg bbox,dp_v -v +``` +![Bounding Box + V Coordinate Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_v.jpg) + +4. Show bounding box and estimated U and V coordinates via contour plots: +```bash +python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +image.jpg dp_contour,bbox -v +``` +![Bounding Box + Contour Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_contour.jpg) + +5. Show bounding box and texture transfer: +```bash +python apply_net.py show configs/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/densepose_rcnn_R_50_FPN_s1x/165712039/model_final_162be9.pkl \ +image.jpg dp_iuv_texture,bbox --texture_atlas texture_from_SURREAL.jpg -v +``` +![Bounding Box + IUV Texture Transfer Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_iuv_texture.jpg) + +6. Show bounding box and CSE rainbow visualization: +```bash +python apply_net.py show configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_s1x/251155172/model_final_c4ea5f.pkl \ +image.jpg dp_vertex,bbox -v +``` +![Bounding Box + CSE Rainbow Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_vertex.jpg) + +7. Show bounding box and CSE texture transfer: +```bash +python apply_net.py show configs/cse/densepose_rcnn_R_50_FPN_s1x.yaml \ +https://dl.fbaipublicfiles.com/densepose/cse/densepose_rcnn_R_50_FPN_s1x/251155172/model_final_c4ea5f.pkl \ +image.jpg dp_cse_texture,bbox --texture_atlases_map '{"smpl_27554": "smpl_uvSnapshot_colors.jpg"}' -v +``` +![Bounding Box + CSE Texture Transfer Visualization](https://dl.fbaipublicfiles.com/densepose/web/apply_net/res_bbox_dp_cse_texture.jpg) + +The texture files can be found in the `doc/images` folder diff --git a/detectron2/projects/DensePose/doc/TOOL_QUERY_DB.md b/detectron2/projects/DensePose/doc/TOOL_QUERY_DB.md new file mode 100755 index 0000000..b0a764b --- /dev/null +++ b/detectron2/projects/DensePose/doc/TOOL_QUERY_DB.md @@ -0,0 +1,105 @@ + +# Query Dataset + +`query_db` is a tool to print or visualize DensePose data from a dataset. +It has two modes: `print` and `show` to output dataset entries to standard +output or to visualize them on images. + +## Print Mode + +The general command form is: +```bash +python query_db.py print [-h] [-v] [--max-entries N] +``` + +There are two mandatory arguments: + - ``, DensePose dataset specification, from which to select + the entries (e.g. `densepose_coco_2014_train`). + - ``, dataset entry selector which can be a single specification, + or a comma-separated list of specifications of the form + `field[:type]=value` for exact match with the value + or `field[:type]=min-max` for a range of values + +One can additionally limit the maximum number of entries to output +by providing `--max-entries` argument. + +Examples: + +1. Output at most 10 first entries from the `densepose_coco_2014_train` dataset: +```bash +python query_db.py print densepose_coco_2014_train \* --max-entries 10 -v +``` + +2. Output all entries with `file_name` equal to `COCO_train2014_000000000036.jpg`: +```bash +python query_db.py print densepose_coco_2014_train file_name=COCO_train2014_000000000036.jpg -v +``` + +3. Output all entries with `image_id` between 36 and 156: +```bash +python query_db.py print densepose_coco_2014_train image_id:int=36-156 -v +``` + +## Visualization Mode + +The general command form is: +```bash +python query_db.py show [-h] [-v] [--max-entries N] [--output ] +``` + +There are three mandatory arguments: + - ``, DensePose dataset specification, from which to select + the entries (e.g. `densepose_coco_2014_train`). + - ``, dataset entry selector which can be a single specification, + or a comma-separated list of specifications of the form + `field[:type]=value` for exact match with the value + or `field[:type]=min-max` for a range of values + - ``, visualizations specifier; currently available visualizations are: + * `bbox` - bounding boxes of annotated persons; + * `dp_i` - annotated points colored according to the containing part; + * `dp_pts` - annotated points in green color; + * `dp_segm` - segmentation masks for annotated persons; + * `dp_u` - annotated points colored according to their U coordinate in part parameterization; + * `dp_v` - annotated points colored according to their V coordinate in part parameterization; + +One can additionally provide one of the two optional arguments: + - `--max_entries` to limit the maximum number of entries to visualize + - `--output` to provide visualization file name template, which defaults + to `output.png`. To distinguish file names for different dataset + entries, the tool appends 1-based entry index to the output file name, + e.g. output.0001.png, output.0002.png, etc. + +The following examples show how to output different visualizations for image with `id = 322` +from `densepose_coco_2014_train` dataset: + +1. Show bounding box and segmentation: +```bash +python query_db.py show densepose_coco_2014_train image_id:int=322 bbox,dp_segm -v +``` +![Bounding Box + Segmentation Visualization](images/vis_bbox_dp_segm.jpg) + +2. Show bounding box and points colored according to the containing part: +```bash +python query_db.py show densepose_coco_2014_train image_id:int=322 bbox,dp_i -v +``` +![Bounding Box + Point Label Visualization](images/vis_bbox_dp_i.jpg) + +3. Show bounding box and annotated points in green color: +```bash +python query_db.py show densepose_coco_2014_train image_id:int=322 bbox,dp_segm -v +``` +![Bounding Box + Point Visualization](images/vis_bbox_dp_pts.jpg) + +4. Show bounding box and annotated points colored according to their U coordinate in part parameterization: +```bash +python query_db.py show densepose_coco_2014_train image_id:int=322 bbox,dp_u -v +``` +![Bounding Box + Point U Visualization](images/vis_bbox_dp_u.jpg) + +5. Show bounding box and annotated points colored according to their V coordinate in part parameterization: +```bash +python query_db.py show densepose_coco_2014_train image_id:int=322 bbox,dp_v -v +``` +![Bounding Box + Point V Visualization](images/vis_bbox_dp_v.jpg) + + diff --git a/detectron2/projects/DensePose/query_db.py b/detectron2/projects/DensePose/query_db.py new file mode 100755 index 0000000..8b2745e --- /dev/null +++ b/detectron2/projects/DensePose/query_db.py @@ -0,0 +1,250 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +import argparse +import logging +import os +import sys +from timeit import default_timer as timer +from typing import Any, ClassVar, Dict, List +import torch + +from detectron2.data.catalog import DatasetCatalog +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import setup_logger + +from densepose.structures import DensePoseDataRelative +from densepose.utils.dbhelper import EntrySelector +from densepose.utils.logger import verbosity_to_level +from densepose.vis.base import CompoundVisualizer +from densepose.vis.bounding_box import BoundingBoxVisualizer +from densepose.vis.densepose_data_points import ( + DensePoseDataCoarseSegmentationVisualizer, + DensePoseDataPointsIVisualizer, + DensePoseDataPointsUVisualizer, + DensePoseDataPointsVisualizer, + DensePoseDataPointsVVisualizer, +) + +DOC = """Query DB - a tool to print / visualize data from a database +""" + +LOGGER_NAME = "query_db" + +logger = logging.getLogger(LOGGER_NAME) + +_ACTION_REGISTRY: Dict[str, "Action"] = {} + + +class Action(object): + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + parser.add_argument( + "-v", + "--verbosity", + action="count", + help="Verbose mode. Multiple -v options increase the verbosity.", + ) + + +def register_action(cls: type): + """ + Decorator for action classes to automate action registration + """ + global _ACTION_REGISTRY + _ACTION_REGISTRY[cls.COMMAND] = cls + return cls + + +class EntrywiseAction(Action): + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + super(EntrywiseAction, cls).add_arguments(parser) + parser.add_argument( + "dataset", metavar="", help="Dataset name (e.g. densepose_coco_2014_train)" + ) + parser.add_argument( + "selector", + metavar="", + help="Dataset entry selector in the form field1[:type]=value1[," + "field2[:type]=value_min-value_max...] which selects all " + "entries from the dataset that satisfy the constraints", + ) + parser.add_argument( + "--max-entries", metavar="N", help="Maximum number of entries to process", type=int + ) + + @classmethod + def execute(cls: type, args: argparse.Namespace): + dataset = setup_dataset(args.dataset) + entry_selector = EntrySelector.from_string(args.selector) + context = cls.create_context(args) + if args.max_entries is not None: + for _, entry in zip(range(args.max_entries), dataset): + if entry_selector(entry): + cls.execute_on_entry(entry, context) + else: + for entry in dataset: + if entry_selector(entry): + cls.execute_on_entry(entry, context) + + @classmethod + def create_context(cls: type, args: argparse.Namespace) -> Dict[str, Any]: + context = {} + return context + + +@register_action +class PrintAction(EntrywiseAction): + """ + Print action that outputs selected entries to stdout + """ + + COMMAND: ClassVar[str] = "print" + + @classmethod + def add_parser(cls: type, subparsers: argparse._SubParsersAction): + parser = subparsers.add_parser(cls.COMMAND, help="Output selected entries to stdout. ") + cls.add_arguments(parser) + parser.set_defaults(func=cls.execute) + + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + super(PrintAction, cls).add_arguments(parser) + + @classmethod + def execute_on_entry(cls: type, entry: Dict[str, Any], context: Dict[str, Any]): + import pprint + + printer = pprint.PrettyPrinter(indent=2, width=200, compact=True) + printer.pprint(entry) + + +@register_action +class ShowAction(EntrywiseAction): + """ + Show action that visualizes selected entries on an image + """ + + COMMAND: ClassVar[str] = "show" + VISUALIZERS: ClassVar[Dict[str, object]] = { + "dp_segm": DensePoseDataCoarseSegmentationVisualizer(), + "dp_i": DensePoseDataPointsIVisualizer(), + "dp_u": DensePoseDataPointsUVisualizer(), + "dp_v": DensePoseDataPointsVVisualizer(), + "dp_pts": DensePoseDataPointsVisualizer(), + "bbox": BoundingBoxVisualizer(), + } + + @classmethod + def add_parser(cls: type, subparsers: argparse._SubParsersAction): + parser = subparsers.add_parser(cls.COMMAND, help="Visualize selected entries") + cls.add_arguments(parser) + parser.set_defaults(func=cls.execute) + + @classmethod + def add_arguments(cls: type, parser: argparse.ArgumentParser): + super(ShowAction, cls).add_arguments(parser) + parser.add_argument( + "visualizations", + metavar="", + help="Comma separated list of visualizations, possible values: " + "[{}]".format(",".join(sorted(cls.VISUALIZERS.keys()))), + ) + parser.add_argument( + "--output", + metavar="", + default="output.png", + help="File name to save output to", + ) + + @classmethod + def execute_on_entry(cls: type, entry: Dict[str, Any], context: Dict[str, Any]): + import cv2 + import numpy as np + + image_fpath = PathManager.get_local_path(entry["file_name"]) + image = cv2.imread(image_fpath, cv2.IMREAD_GRAYSCALE) + image = np.tile(image[:, :, np.newaxis], [1, 1, 3]) + datas = cls._extract_data_for_visualizers_from_entry(context["vis_specs"], entry) + visualizer = context["visualizer"] + image_vis = visualizer.visualize(image, datas) + entry_idx = context["entry_idx"] + 1 + out_fname = cls._get_out_fname(entry_idx, context["out_fname"]) + cv2.imwrite(out_fname, image_vis) + logger.info(f"Output saved to {out_fname}") + context["entry_idx"] += 1 + + @classmethod + def _get_out_fname(cls: type, entry_idx: int, fname_base: str): + base, ext = os.path.splitext(fname_base) + return base + ".{0:04d}".format(entry_idx) + ext + + @classmethod + def create_context(cls: type, args: argparse.Namespace) -> Dict[str, Any]: + vis_specs = args.visualizations.split(",") + visualizers = [] + for vis_spec in vis_specs: + vis = cls.VISUALIZERS[vis_spec] + visualizers.append(vis) + context = { + "vis_specs": vis_specs, + "visualizer": CompoundVisualizer(visualizers), + "out_fname": args.output, + "entry_idx": 0, + } + return context + + @classmethod + def _extract_data_for_visualizers_from_entry( + cls: type, vis_specs: List[str], entry: Dict[str, Any] + ): + dp_list = [] + bbox_list = [] + for annotation in entry["annotations"]: + is_valid, _ = DensePoseDataRelative.validate_annotation(annotation) + if not is_valid: + continue + bbox = torch.as_tensor(annotation["bbox"]) + bbox_list.append(bbox) + dp_data = DensePoseDataRelative(annotation) + dp_list.append(dp_data) + datas = [] + for vis_spec in vis_specs: + datas.append(bbox_list if "bbox" == vis_spec else (bbox_list, dp_list)) + return datas + + +def setup_dataset(dataset_name): + logger.info("Loading dataset {}".format(dataset_name)) + start = timer() + dataset = DatasetCatalog.get(dataset_name) + stop = timer() + logger.info("Loaded dataset {} in {:.3f}s".format(dataset_name, stop - start)) + return dataset + + +def create_argument_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + description=DOC, + formatter_class=lambda prog: argparse.HelpFormatter(prog, max_help_position=120), + ) + parser.set_defaults(func=lambda _: parser.print_help(sys.stdout)) + subparsers = parser.add_subparsers(title="Actions") + for _, action in _ACTION_REGISTRY.items(): + action.add_parser(subparsers) + return parser + + +def main(): + parser = create_argument_parser() + args = parser.parse_args() + verbosity = args.verbosity if hasattr(args, "verbosity") else None + global logger + logger = setup_logger(name=LOGGER_NAME) + logger.setLevel(verbosity_to_level(verbosity)) + args.func(args) + + +if __name__ == "__main__": + main() diff --git a/detectron2/projects/DensePose/setup.py b/detectron2/projects/DensePose/setup.py new file mode 100755 index 0000000..22ad239 --- /dev/null +++ b/detectron2/projects/DensePose/setup.py @@ -0,0 +1,42 @@ +import re +from pathlib import Path +from setuptools import find_packages, setup + +try: + import torch # noqa: F401 +except ImportError as e: + raise Exception( + """ +You must install PyTorch prior to installing DensePose: +pip install torch + +For more information: + https://pytorch.org/get-started/locally/ + """ + ) from e + + +def get_detectron2_current_version(): + """Version is not available for import through Python since it is + above the top level of the package. Instead, we parse it from the + file with a regex.""" + # Get version info from detectron2 __init__.py + version_source = (Path(__file__).parents[2] / "detectron2" / "__init__.py").read_text() + version_number = re.findall(r'__version__ = "([0-9\.]+)"', version_source)[0] + return version_number + + +setup( + name="detectron2-densepose", + author="FAIR", + version=get_detectron2_current_version(), + url="https://github.com/facebookresearch/detectron2/tree/main/projects/DensePose", + packages=find_packages(), + python_requires=">=3.7", + install_requires=[ + "av>=8.0.3", + "detectron2@git+https://github.com/facebookresearch/detectron2.git", + "opencv-python-headless>=4.5.3.56", + "scipy>=1.5.4", + ], +) diff --git a/detectron2/projects/DensePose/tests/common.py b/detectron2/projects/DensePose/tests/common.py new file mode 100755 index 0000000..ff22b9a --- /dev/null +++ b/detectron2/projects/DensePose/tests/common.py @@ -0,0 +1,124 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import os +import torch + +from detectron2.config import get_cfg +from detectron2.engine import default_setup +from detectron2.modeling import build_model + +from densepose import add_densepose_config + +_BASE_CONFIG_DIR = "configs" +_EVOLUTION_CONFIG_SUB_DIR = "evolution" +_HRNET_CONFIG_SUB_DIR = "HRNet" +_QUICK_SCHEDULES_CONFIG_SUB_DIR = "quick_schedules" +_BASE_CONFIG_FILE_PREFIX = "Base-" +_CONFIG_FILE_EXT = ".yaml" + + +def _get_base_config_dir(): + """ + Return the base directory for configurations + """ + return os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", _BASE_CONFIG_DIR) + + +def _get_evolution_config_dir(): + """ + Return the base directory for evolution configurations + """ + return os.path.join(_get_base_config_dir(), _EVOLUTION_CONFIG_SUB_DIR) + + +def _get_hrnet_config_dir(): + """ + Return the base directory for HRNet configurations + """ + return os.path.join(_get_base_config_dir(), _HRNET_CONFIG_SUB_DIR) + + +def _get_quick_schedules_config_dir(): + """ + Return the base directory for quick schedules configurations + """ + return os.path.join(_get_base_config_dir(), _QUICK_SCHEDULES_CONFIG_SUB_DIR) + + +def _collect_config_files(config_dir): + """ + Collect all configuration files (i.e. densepose_*.yaml) directly in the specified directory + """ + start = _get_base_config_dir() + results = [] + for entry in os.listdir(config_dir): + path = os.path.join(config_dir, entry) + if not os.path.isfile(path): + continue + _, ext = os.path.splitext(entry) + if ext != _CONFIG_FILE_EXT: + continue + if entry.startswith(_BASE_CONFIG_FILE_PREFIX): + continue + config_file = os.path.relpath(path, start) + results.append(config_file) + return results + + +def get_config_files(): + """ + Get all the configuration files (relative to the base configuration directory) + """ + return _collect_config_files(_get_base_config_dir()) + + +def get_evolution_config_files(): + """ + Get all the evolution configuration files (relative to the base configuration directory) + """ + return _collect_config_files(_get_evolution_config_dir()) + + +def get_hrnet_config_files(): + """ + Get all the HRNet configuration files (relative to the base configuration directory) + """ + return _collect_config_files(_get_hrnet_config_dir()) + + +def get_quick_schedules_config_files(): + """ + Get all the quick schedules configuration files (relative to the base configuration directory) + """ + return _collect_config_files(_get_quick_schedules_config_dir()) + + +def get_model_config(config_file): + """ + Load and return the configuration from the specified file (relative to the base configuration + directory) + """ + cfg = get_cfg() + add_densepose_config(cfg) + path = os.path.join(_get_base_config_dir(), config_file) + cfg.merge_from_file(path) + if not torch.cuda.is_available(): + cfg.MODEL.DEVICE = "cpu" + return cfg + + +def get_model(config_file): + """ + Get the model from the specified file (relative to the base configuration directory) + """ + cfg = get_model_config(config_file) + return build_model(cfg) + + +def setup(config_file): + """ + Setup the configuration from the specified file (relative to the base configuration directory) + """ + cfg = get_model_config(config_file) + cfg.freeze() + default_setup(cfg, {}) diff --git a/detectron2/projects/DensePose/tests/test_chart_based_annotations_accumulator.py b/detectron2/projects/DensePose/tests/test_chart_based_annotations_accumulator.py new file mode 100755 index 0000000..a1c4f85 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_chart_based_annotations_accumulator.py @@ -0,0 +1,76 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest +import torch + +from detectron2.structures import Boxes, BoxMode, Instances + +from densepose.modeling.losses.utils import ChartBasedAnnotationsAccumulator +from densepose.structures import DensePoseDataRelative, DensePoseList + +image_shape = (100, 100) +instances = Instances(image_shape) +n_instances = 3 +instances.proposal_boxes = Boxes(torch.rand(n_instances, 4)) +instances.gt_boxes = Boxes(torch.rand(n_instances, 4)) + + +# instances.gt_densepose = None cannot happen because instances attributes need a length +class TestChartBasedAnnotationsAccumulator(unittest.TestCase): + def test_chart_based_annotations_accumulator_no_gt_densepose(self): + accumulator = ChartBasedAnnotationsAccumulator() + accumulator.accumulate(instances) + expected_values = {"nxt_bbox_with_dp_index": 0, "nxt_bbox_index": n_instances} + for key in accumulator.__dict__: + self.assertEqual(getattr(accumulator, key), expected_values.get(key, [])) + + def test_chart_based_annotations_accumulator_gt_densepose_none(self): + instances.gt_densepose = [None] * n_instances + accumulator = ChartBasedAnnotationsAccumulator() + accumulator.accumulate(instances) + expected_values = {"nxt_bbox_with_dp_index": 0, "nxt_bbox_index": n_instances} + for key in accumulator.__dict__: + self.assertEqual(getattr(accumulator, key), expected_values.get(key, [])) + + def test_chart_based_annotations_accumulator_gt_densepose(self): + data_relative_keys = [ + DensePoseDataRelative.X_KEY, + DensePoseDataRelative.Y_KEY, + DensePoseDataRelative.I_KEY, + DensePoseDataRelative.U_KEY, + DensePoseDataRelative.V_KEY, + DensePoseDataRelative.S_KEY, + ] + annotations = [DensePoseDataRelative({k: [0] for k in data_relative_keys})] * n_instances + instances.gt_densepose = DensePoseList(annotations, instances.gt_boxes, image_shape) + accumulator = ChartBasedAnnotationsAccumulator() + accumulator.accumulate(instances) + bbox_xywh_est = BoxMode.convert( + instances.proposal_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + bbox_xywh_gt = BoxMode.convert( + instances.gt_boxes.tensor.clone(), BoxMode.XYXY_ABS, BoxMode.XYWH_ABS + ) + expected_values = { + "s_gt": [ + torch.zeros((3, DensePoseDataRelative.MASK_SIZE, DensePoseDataRelative.MASK_SIZE)) + ] + * n_instances, + "bbox_xywh_est": bbox_xywh_est.split(1), + "bbox_xywh_gt": bbox_xywh_gt.split(1), + "point_bbox_with_dp_indices": [torch.tensor([i]) for i in range(n_instances)], + "point_bbox_indices": [torch.tensor([i]) for i in range(n_instances)], + "bbox_indices": list(range(n_instances)), + "nxt_bbox_with_dp_index": n_instances, + "nxt_bbox_index": n_instances, + } + default_value = [torch.tensor([0])] * 3 + for key in accumulator.__dict__: + to_test = getattr(accumulator, key) + gt_value = expected_values.get(key, default_value) + if key in ["nxt_bbox_with_dp_index", "nxt_bbox_index"]: + self.assertEqual(to_test, gt_value) + elif key == "bbox_indices": + self.assertListEqual(to_test, gt_value) + else: + self.assertTrue(torch.allclose(torch.stack(to_test), torch.stack(gt_value))) diff --git a/detectron2/projects/DensePose/tests/test_combine_data_loader.py b/detectron2/projects/DensePose/tests/test_combine_data_loader.py new file mode 100755 index 0000000..832903a --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_combine_data_loader.py @@ -0,0 +1,46 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +import unittest +from typing import Any, Iterable, Iterator, Tuple + +from densepose.data import CombinedDataLoader + + +def _grouper(iterable: Iterable[Any], n: int, fillvalue=None) -> Iterator[Tuple[Any]]: + """ + Group elements of an iterable by chunks of size `n`, e.g. + grouper(range(9), 4) -> + (0, 1, 2, 3), (4, 5, 6, 7), (8, None, None, None) + """ + it = iter(iterable) + while True: + values = [] + for _ in range(n): + try: + value = next(it) + except StopIteration: + values.extend([fillvalue] * (n - len(values))) + yield tuple(values) + return + values.append(value) + yield tuple(values) + + +class TestCombinedDataLoader(unittest.TestCase): + def test_combine_loaders_1(self): + loader1 = _grouper([f"1_{i}" for i in range(10)], 2) + loader2 = _grouper([f"2_{i}" for i in range(11)], 3) + batch_size = 4 + ratios = (0.1, 0.9) + random.seed(43) + combined = CombinedDataLoader((loader1, loader2), batch_size, ratios) + BATCHES_GT = [ + ["1_0", "1_1", "2_0", "2_1"], + ["2_2", "2_3", "2_4", "2_5"], + ["1_2", "1_3", "2_6", "2_7"], + ["2_8", "2_9", "2_10", None], + ] + for i, batch in enumerate(combined): + self.assertEqual(len(batch), batch_size) + self.assertEqual(batch, BATCHES_GT[i]) diff --git a/detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py b/detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py new file mode 100755 index 0000000..a22dce9 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_cse_annotations_accumulator.py @@ -0,0 +1,240 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import unittest +import torch + +from detectron2.structures import Boxes, BoxMode, Instances + +from densepose.modeling.losses.embed_utils import CseAnnotationsAccumulator +from densepose.structures import DensePoseDataRelative, DensePoseList + + +class TestCseAnnotationsAccumulator(unittest.TestCase): + def test_cse_annotations_accumulator_nodp(self): + instances_lst = [ + self._create_instances_nodp(), + ] + self._test_template(instances_lst) + + def test_cse_annotations_accumulator_sparsedp(self): + instances_lst = [ + self._create_instances_sparsedp(), + ] + self._test_template(instances_lst) + + def test_cse_annotations_accumulator_fulldp(self): + instances_lst = [ + self._create_instances_fulldp(), + ] + self._test_template(instances_lst) + + def test_cse_annotations_accumulator_combined(self): + instances_lst = [ + self._create_instances_nodp(), + self._create_instances_sparsedp(), + self._create_instances_fulldp(), + ] + self._test_template(instances_lst) + + def _test_template(self, instances_lst): + acc = CseAnnotationsAccumulator() + for instances in instances_lst: + acc.accumulate(instances) + packed_anns = acc.pack() + self._check_correspondence(packed_anns, instances_lst) + + def _create_instances_nodp(self): + image_shape = (480, 640) + instances = Instances(image_shape) + instances.gt_boxes = Boxes( + torch.as_tensor( + [ + [40.0, 40.0, 140.0, 140.0], + [160.0, 160.0, 270.0, 270.0], + [40.0, 160.0, 160.0, 280.0], + ] + ) + ) + instances.proposal_boxes = Boxes( + torch.as_tensor( + [ + [41.0, 39.0, 142.0, 138.0], + [161.0, 159.0, 272.0, 268.0], + [41.0, 159.0, 162.0, 278.0], + ] + ) + ) + # do not add gt_densepose + return instances + + def _create_instances_sparsedp(self): + image_shape = (540, 720) + instances = Instances(image_shape) + instances.gt_boxes = Boxes( + torch.as_tensor( + [ + [50.0, 50.0, 130.0, 130.0], + [150.0, 150.0, 240.0, 240.0], + [50.0, 150.0, 230.0, 330.0], + ] + ) + ) + instances.proposal_boxes = Boxes( + torch.as_tensor( + [ + [49.0, 51.0, 131.0, 129.0], + [151.0, 149.0, 241.0, 239.0], + [51.0, 149.0, 232.0, 329.0], + ] + ) + ) + instances.gt_densepose = DensePoseList( + [ + None, + self._create_dp_data( + { + "dp_x": [81.69, 153.47, 151.00], + "dp_y": [162.24, 128.71, 113.81], + "dp_vertex": [0, 1, 2], + "ref_model": "zebra_5002", + "dp_masks": [], + }, + {"c": (166, 133), "r": 64}, + ), + None, + ], + instances.gt_boxes, + image_shape, + ) + return instances + + def _create_instances_fulldp(self): + image_shape = (680, 840) + instances = Instances(image_shape) + instances.gt_boxes = Boxes( + torch.as_tensor( + [ + [65.0, 55.0, 165.0, 155.0], + [170.0, 175.0, 275.0, 280.0], + [55.0, 165.0, 165.0, 275.0], + ] + ) + ) + instances.proposal_boxes = Boxes( + torch.as_tensor( + [ + [66.0, 54.0, 166.0, 154.0], + [171.0, 174.0, 276.0, 279.0], + [56.0, 164.0, 166.0, 274.0], + ] + ) + ) + instances.gt_densepose = DensePoseList( + [ + self._create_dp_data( + { + "dp_x": [149.99, 198.62, 157.59], + "dp_y": [170.74, 197.73, 123.12], + "dp_vertex": [3, 4, 5], + "ref_model": "cat_5001", + "dp_masks": [], + }, + {"c": (100, 100), "r": 50}, + ), + self._create_dp_data( + { + "dp_x": [234.53, 116.72, 71.66], + "dp_y": [107.53, 11.31, 142.32], + "dp_vertex": [6, 7, 8], + "ref_model": "dog_5002", + "dp_masks": [], + }, + {"c": (200, 150), "r": 40}, + ), + self._create_dp_data( + { + "dp_x": [225.54, 202.61, 135.90], + "dp_y": [167.46, 181.00, 211.47], + "dp_vertex": [9, 10, 11], + "ref_model": "elephant_5002", + "dp_masks": [], + }, + {"c": (100, 200), "r": 45}, + ), + ], + instances.gt_boxes, + image_shape, + ) + return instances + + def _create_dp_data(self, anns, blob_def=None): + dp_data = DensePoseDataRelative(anns) + if blob_def is not None: + dp_data.segm[ + blob_def["c"][0] - blob_def["r"] : blob_def["c"][0] + blob_def["r"], + blob_def["c"][1] - blob_def["r"] : blob_def["c"][1] + blob_def["r"], + ] = 1 + return dp_data + + def _check_correspondence(self, packed_anns, instances_lst): + instance_idx = 0 + data_idx = 0 + pt_offset = 0 + if packed_anns is not None: + bbox_xyxy_gt = BoxMode.convert( + packed_anns.bbox_xywh_gt.clone(), BoxMode.XYWH_ABS, BoxMode.XYXY_ABS + ) + bbox_xyxy_est = BoxMode.convert( + packed_anns.bbox_xywh_est.clone(), BoxMode.XYWH_ABS, BoxMode.XYXY_ABS + ) + for instances in instances_lst: + if not hasattr(instances, "gt_densepose"): + instance_idx += len(instances) + continue + for i, dp_data in enumerate(instances.gt_densepose): + if dp_data is None: + instance_idx += 1 + continue + n_pts = len(dp_data.x) + self.assertTrue( + torch.allclose(dp_data.x, packed_anns.x_gt[pt_offset : pt_offset + n_pts]) + ) + self.assertTrue( + torch.allclose(dp_data.y, packed_anns.y_gt[pt_offset : pt_offset + n_pts]) + ) + self.assertTrue(torch.allclose(dp_data.segm, packed_anns.coarse_segm_gt[data_idx])) + self.assertTrue( + torch.allclose( + torch.ones(n_pts, dtype=torch.long) * dp_data.mesh_id, + packed_anns.vertex_mesh_ids_gt[pt_offset : pt_offset + n_pts], + ) + ) + self.assertTrue( + torch.allclose( + dp_data.vertex_ids, packed_anns.vertex_ids_gt[pt_offset : pt_offset + n_pts] + ) + ) + self.assertTrue( + torch.allclose(instances.gt_boxes.tensor[i], bbox_xyxy_gt[data_idx]) + ) + self.assertTrue( + torch.allclose(instances.proposal_boxes.tensor[i], bbox_xyxy_est[data_idx]) + ) + self.assertTrue( + torch.allclose( + torch.ones(n_pts, dtype=torch.long) * data_idx, + packed_anns.point_bbox_with_dp_indices[pt_offset : pt_offset + n_pts], + ) + ) + self.assertTrue( + torch.allclose( + torch.ones(n_pts, dtype=torch.long) * instance_idx, + packed_anns.point_bbox_indices[pt_offset : pt_offset + n_pts], + ) + ) + self.assertEqual(instance_idx, packed_anns.bbox_indices[data_idx]) + pt_offset += n_pts + instance_idx += 1 + data_idx += 1 + if data_idx == 0: + self.assertIsNone(packed_anns) diff --git a/detectron2/projects/DensePose/tests/test_dataset_loaded_annotations.py b/detectron2/projects/DensePose/tests/test_dataset_loaded_annotations.py new file mode 100755 index 0000000..cf8035b --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_dataset_loaded_annotations.py @@ -0,0 +1,87 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import unittest + +from densepose.data.datasets.builtin import COCO_DATASETS, DENSEPOSE_ANNOTATIONS_DIR, LVIS_DATASETS +from densepose.data.datasets.coco import load_coco_json +from densepose.data.datasets.lvis import load_lvis_json +from densepose.data.utils import maybe_prepend_base_path +from densepose.structures import DensePoseDataRelative + + +class TestDatasetLoadedAnnotations(unittest.TestCase): + COCO_DATASET_DATA = { + "densepose_coco_2014_train": {"n_instances": 39210}, + "densepose_coco_2014_minival": {"n_instances": 2243}, + "densepose_coco_2014_minival_100": {"n_instances": 164}, + "densepose_coco_2014_valminusminival": {"n_instances": 7297}, + "densepose_coco_2014_train_cse": {"n_instances": 39210}, + "densepose_coco_2014_minival_cse": {"n_instances": 2243}, + "densepose_coco_2014_minival_100_cse": {"n_instances": 164}, + "densepose_coco_2014_valminusminival_cse": {"n_instances": 7297}, + "densepose_chimps": {"n_instances": 930}, + "posetrack2017_train": {"n_instances": 8274}, + "posetrack2017_val": {"n_instances": 4753}, + "lvis_v05_train": {"n_instances": 5186}, + "lvis_v05_val": {"n_instances": 1037}, + } + + LVIS_DATASET_DATA = { + "densepose_lvis_v1_train1": {"n_instances": 3394}, + "densepose_lvis_v1_train2": {"n_instances": 1800}, + "densepose_lvis_v1_val": {"n_instances": 1037}, + "densepose_lvis_v1_val_animals_100": {"n_instances": 89}, + } + + def generic_coco_test(self, dataset_info): + if dataset_info.name not in self.COCO_DATASET_DATA: + return + n_inst = self.COCO_DATASET_DATA[dataset_info.name]["n_instances"] + self.generic_test(dataset_info, n_inst, load_coco_json) + + def generic_lvis_test(self, dataset_info): + if dataset_info.name not in self.LVIS_DATASET_DATA: + return + n_inst = self.LVIS_DATASET_DATA[dataset_info.name]["n_instances"] + self.generic_test(dataset_info, n_inst, load_lvis_json) + + def generic_test(self, dataset_info, n_inst, loader_fun): + datasets_root = DENSEPOSE_ANNOTATIONS_DIR + annotations_fpath = maybe_prepend_base_path(datasets_root, dataset_info.annotations_fpath) + images_root = maybe_prepend_base_path(datasets_root, dataset_info.images_root) + image_annotation_dicts = loader_fun( + annotations_json_file=annotations_fpath, + image_root=images_root, + dataset_name=dataset_info.name, + ) + num_valid = sum( + 1 + for image_annotation_dict in image_annotation_dicts + for ann in image_annotation_dict["annotations"] + if DensePoseDataRelative.validate_annotation(ann)[0] + ) + self.assertEqual(num_valid, n_inst) + + +def coco_test_fun(dataset_info): + return lambda self: self.generic_coco_test(dataset_info) + + +for dataset_info in COCO_DATASETS: + setattr( + TestDatasetLoadedAnnotations, + f"test_coco_builtin_loaded_annotations_{dataset_info.name}", + coco_test_fun(dataset_info), + ) + + +def lvis_test_fun(dataset_info): + return lambda self: self.generic_lvis_test(dataset_info) + + +for dataset_info in LVIS_DATASETS: + setattr( + TestDatasetLoadedAnnotations, + f"test_lvis_builtin_loaded_annotations_{dataset_info.name}", + lvis_test_fun(dataset_info), + ) diff --git a/detectron2/projects/DensePose/tests/test_frame_selector.py b/detectron2/projects/DensePose/tests/test_frame_selector.py new file mode 100755 index 0000000..65f05f5 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_frame_selector.py @@ -0,0 +1,60 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import random +import unittest + +from densepose.data.video import FirstKFramesSelector, LastKFramesSelector, RandomKFramesSelector + + +class TestFrameSelector(unittest.TestCase): + def test_frame_selector_random_k_1(self): + _SEED = 43 + _K = 4 + random.seed(_SEED) + selector = RandomKFramesSelector(_K) + frame_tss = list(range(0, 20, 2)) + _SELECTED_GT = [0, 8, 4, 6] + selected = selector(frame_tss) + self.assertEqual(_SELECTED_GT, selected) + + def test_frame_selector_random_k_2(self): + _SEED = 43 + _K = 10 + random.seed(_SEED) + selector = RandomKFramesSelector(_K) + frame_tss = list(range(0, 6, 2)) + _SELECTED_GT = [0, 2, 4] + selected = selector(frame_tss) + self.assertEqual(_SELECTED_GT, selected) + + def test_frame_selector_first_k_1(self): + _K = 4 + selector = FirstKFramesSelector(_K) + frame_tss = list(range(0, 20, 2)) + _SELECTED_GT = frame_tss[:_K] + selected = selector(frame_tss) + self.assertEqual(_SELECTED_GT, selected) + + def test_frame_selector_first_k_2(self): + _K = 10 + selector = FirstKFramesSelector(_K) + frame_tss = list(range(0, 6, 2)) + _SELECTED_GT = frame_tss[:_K] + selected = selector(frame_tss) + self.assertEqual(_SELECTED_GT, selected) + + def test_frame_selector_last_k_1(self): + _K = 4 + selector = LastKFramesSelector(_K) + frame_tss = list(range(0, 20, 2)) + _SELECTED_GT = frame_tss[-_K:] + selected = selector(frame_tss) + self.assertEqual(_SELECTED_GT, selected) + + def test_frame_selector_last_k_2(self): + _K = 10 + selector = LastKFramesSelector(_K) + frame_tss = list(range(0, 6, 2)) + _SELECTED_GT = frame_tss[-_K:] + selected = selector(frame_tss) + self.assertEqual(_SELECTED_GT, selected) diff --git a/detectron2/projects/DensePose/tests/test_image_list_dataset.py b/detectron2/projects/DensePose/tests/test_image_list_dataset.py new file mode 100755 index 0000000..7932602 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_image_list_dataset.py @@ -0,0 +1,48 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import contextlib +import os +import tempfile +import unittest +import torch +from torchvision.utils import save_image + +from densepose.data.image_list_dataset import ImageListDataset +from densepose.data.transform import ImageResizeTransform + + +@contextlib.contextmanager +def temp_image(height, width): + random_image = torch.rand(height, width) + with tempfile.NamedTemporaryFile(suffix=".jpg") as f: + f.close() + save_image(random_image, f.name) + yield f.name + os.unlink(f.name) + + +class TestImageListDataset(unittest.TestCase): + def test_image_list_dataset(self): + height, width = 720, 1280 + with temp_image(height, width) as image_fpath: + image_list = [image_fpath] + category_list = [None] + dataset = ImageListDataset(image_list, category_list) + self.assertEqual(len(dataset), 1) + data1, categories1 = dataset[0]["images"], dataset[0]["categories"] + self.assertEqual(data1.shape, torch.Size((1, 3, height, width))) + self.assertEqual(data1.dtype, torch.float32) + self.assertIsNone(categories1[0]) + + def test_image_list_dataset_with_transform(self): + height, width = 720, 1280 + with temp_image(height, width) as image_fpath: + image_list = [image_fpath] + category_list = [None] + transform = ImageResizeTransform() + dataset = ImageListDataset(image_list, category_list, transform) + self.assertEqual(len(dataset), 1) + data1, categories1 = dataset[0]["images"], dataset[0]["categories"] + self.assertEqual(data1.shape, torch.Size((1, 3, 749, 1333))) + self.assertEqual(data1.dtype, torch.float32) + self.assertIsNone(categories1[0]) diff --git a/detectron2/projects/DensePose/tests/test_image_resize_transform.py b/detectron2/projects/DensePose/tests/test_image_resize_transform.py new file mode 100755 index 0000000..01c3373 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_image_resize_transform.py @@ -0,0 +1,16 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest +import torch + +from densepose.data.transform import ImageResizeTransform + + +class TestImageResizeTransform(unittest.TestCase): + def test_image_resize_1(self): + images_batch = torch.ones((3, 3, 100, 100), dtype=torch.uint8) * 100 + transform = ImageResizeTransform() + images_transformed = transform(images_batch) + IMAGES_GT = torch.ones((3, 3, 800, 800), dtype=torch.float) * 100 + self.assertEqual(images_transformed.size(), IMAGES_GT.size()) + self.assertAlmostEqual(torch.abs(IMAGES_GT - images_transformed).max().item(), 0.0) diff --git a/detectron2/projects/DensePose/tests/test_model_e2e.py b/detectron2/projects/DensePose/tests/test_model_e2e.py new file mode 100755 index 0000000..055fadf --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_model_e2e.py @@ -0,0 +1,43 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest +import torch + +from detectron2.structures import BitMasks, Boxes, Instances + +from .common import get_model + + +# TODO(plabatut): Modularize detectron2 tests and re-use +def make_model_inputs(image, instances=None): + if instances is None: + return {"image": image} + + return {"image": image, "instances": instances} + + +def make_empty_instances(h, w): + instances = Instances((h, w)) + instances.gt_boxes = Boxes(torch.rand(0, 4)) + instances.gt_classes = torch.tensor([]).to(dtype=torch.int64) + instances.gt_masks = BitMasks(torch.rand(0, h, w)) + return instances + + +class ModelE2ETest(unittest.TestCase): + CONFIG_PATH = "" + + def setUp(self): + self.model = get_model(self.CONFIG_PATH) + + def _test_eval(self, sizes): + inputs = [make_model_inputs(torch.rand(3, size[0], size[1])) for size in sizes] + self.model.eval() + self.model(inputs) + + +class DensePoseRCNNE2ETest(ModelE2ETest): + CONFIG_PATH = "densepose_rcnn_R_101_FPN_s1x.yaml" + + def test_empty_data(self): + self._test_eval([(200, 250), (200, 249)]) diff --git a/detectron2/projects/DensePose/tests/test_setup.py b/detectron2/projects/DensePose/tests/test_setup.py new file mode 100755 index 0000000..165a1b9 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_setup.py @@ -0,0 +1,36 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest + +from .common import ( + get_config_files, + get_evolution_config_files, + get_hrnet_config_files, + get_quick_schedules_config_files, + setup, +) + + +class TestSetup(unittest.TestCase): + def _test_setup(self, config_file): + setup(config_file) + + def test_setup_configs(self): + config_files = get_config_files() + for config_file in config_files: + self._test_setup(config_file) + + def test_setup_evolution_configs(self): + config_files = get_evolution_config_files() + for config_file in config_files: + self._test_setup(config_file) + + def test_setup_hrnet_configs(self): + config_files = get_hrnet_config_files() + for config_file in config_files: + self._test_setup(config_file) + + def test_setup_quick_schedules_configs(self): + config_files = get_quick_schedules_config_files() + for config_file in config_files: + self._test_setup(config_file) diff --git a/detectron2/projects/DensePose/tests/test_structures.py b/detectron2/projects/DensePose/tests/test_structures.py new file mode 100755 index 0000000..54082d3 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_structures.py @@ -0,0 +1,25 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest + +from densepose.structures import normalized_coords_transform + + +class TestStructures(unittest.TestCase): + def test_normalized_coords_transform(self): + bbox = (32, 24, 288, 216) + x0, y0, w, h = bbox + xmin, ymin, xmax, ymax = x0, y0, x0 + w, y0 + h + f = normalized_coords_transform(*bbox) + # Top-left + expected_p, actual_p = (-1, -1), f((xmin, ymin)) + self.assertEqual(expected_p, actual_p) + # Top-right + expected_p, actual_p = (1, -1), f((xmax, ymin)) + self.assertEqual(expected_p, actual_p) + # Bottom-left + expected_p, actual_p = (-1, 1), f((xmin, ymax)) + self.assertEqual(expected_p, actual_p) + # Bottom-right + expected_p, actual_p = (1, 1), f((xmax, ymax)) + self.assertEqual(expected_p, actual_p) diff --git a/detectron2/projects/DensePose/tests/test_tensor_storage.py b/detectron2/projects/DensePose/tests/test_tensor_storage.py new file mode 100755 index 0000000..aeeeffa --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_tensor_storage.py @@ -0,0 +1,256 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import io +import tempfile +import unittest +from contextlib import ExitStack +import torch +import torch.distributed as dist +import torch.multiprocessing as mp + +from detectron2.utils import comm + +from densepose.evaluation.tensor_storage import ( + SingleProcessFileTensorStorage, + SingleProcessRamTensorStorage, + SizeData, + storage_gather, +) + + +class TestSingleProcessRamTensorStorage(unittest.TestCase): + def test_read_write_1(self): + schema = { + "tf": SizeData(dtype="float32", shape=(112, 112)), + "ti": SizeData(dtype="int32", shape=(4, 64, 64)), + } + # generate data which corresponds to the schema + data_elts = [] + torch.manual_seed(23) + for _i in range(3): + data_elt = { + "tf": torch.rand((112, 112), dtype=torch.float32), + "ti": (torch.rand(4, 64, 64) * 1000).to(dtype=torch.int32), + } + data_elts.append(data_elt) + storage = SingleProcessRamTensorStorage(schema, io.BytesIO()) + # write data to the storage + for i in range(3): + record_id = storage.put(data_elts[i]) + self.assertEqual(record_id, i) + # read data from the storage + for i in range(3): + record = storage.get(i) + self.assertEqual(len(record), len(schema)) + for field_name in schema: + self.assertTrue(field_name in record) + self.assertEqual(data_elts[i][field_name].shape, record[field_name].shape) + self.assertEqual(data_elts[i][field_name].dtype, record[field_name].dtype) + self.assertTrue(torch.allclose(data_elts[i][field_name], record[field_name])) + + +class TestSingleProcessFileTensorStorage(unittest.TestCase): + def test_read_write_1(self): + schema = { + "tf": SizeData(dtype="float32", shape=(112, 112)), + "ti": SizeData(dtype="int32", shape=(4, 64, 64)), + } + # generate data which corresponds to the schema + data_elts = [] + torch.manual_seed(23) + for _i in range(3): + data_elt = { + "tf": torch.rand((112, 112), dtype=torch.float32), + "ti": (torch.rand(4, 64, 64) * 1000).to(dtype=torch.int32), + } + data_elts.append(data_elt) + # WARNING: opens the file several times! may not work on all platforms + with tempfile.NamedTemporaryFile() as hFile: + storage = SingleProcessFileTensorStorage(schema, hFile.name, "wb") + # write data to the storage + for i in range(3): + record_id = storage.put(data_elts[i]) + self.assertEqual(record_id, i) + hFile.seek(0) + storage = SingleProcessFileTensorStorage(schema, hFile.name, "rb") + # read data from the storage + for i in range(3): + record = storage.get(i) + self.assertEqual(len(record), len(schema)) + for field_name in schema: + self.assertTrue(field_name in record) + self.assertEqual(data_elts[i][field_name].shape, record[field_name].shape) + self.assertEqual(data_elts[i][field_name].dtype, record[field_name].dtype) + self.assertTrue(torch.allclose(data_elts[i][field_name], record[field_name])) + + +def _find_free_port(): + """ + Copied from detectron2/engine/launch.py + """ + import socket + + sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) + # Binding to port 0 will cause the OS to find an available port for us + sock.bind(("", 0)) + port = sock.getsockname()[1] + sock.close() + # NOTE: there is still a chance the port could be taken by other processes. + return port + + +def launch(main_func, nprocs, args=()): + port = _find_free_port() + dist_url = f"tcp://127.0.0.1:{port}" + # dist_url = "env://" + mp.spawn( + distributed_worker, nprocs=nprocs, args=(main_func, nprocs, dist_url, args), daemon=False + ) + + +def distributed_worker(local_rank, main_func, nprocs, dist_url, args): + dist.init_process_group( + backend="gloo", init_method=dist_url, world_size=nprocs, rank=local_rank + ) + comm.synchronize() + assert comm._LOCAL_PROCESS_GROUP is None + pg = dist.new_group(list(range(nprocs))) + comm._LOCAL_PROCESS_GROUP = pg + main_func(*args) + + +def ram_read_write_worker(): + schema = { + "tf": SizeData(dtype="float32", shape=(112, 112)), + "ti": SizeData(dtype="int32", shape=(4, 64, 64)), + } + storage = SingleProcessRamTensorStorage(schema, io.BytesIO()) + world_size = comm.get_world_size() + rank = comm.get_rank() + data_elts = [] + # prepare different number of tensors in different processes + for i in range(rank + 1): + data_elt = { + "tf": torch.ones((112, 112), dtype=torch.float32) * (rank + i * world_size), + "ti": torch.ones((4, 64, 64), dtype=torch.int32) * (rank + i * world_size), + } + data_elts.append(data_elt) + # write data to the single process storage + for i in range(rank + 1): + record_id = storage.put(data_elts[i]) + assert record_id == i, f"Process {rank}: record ID {record_id}, expected {i}" + comm.synchronize() + # gather all data in process rank 0 + multi_storage = storage_gather(storage) + if rank != 0: + return + # read and check data from the multiprocess storage + for j in range(world_size): + for i in range(j): + record = multi_storage.get(j, i) + record_gt = { + "tf": torch.ones((112, 112), dtype=torch.float32) * (j + i * world_size), + "ti": torch.ones((4, 64, 64), dtype=torch.int32) * (j + i * world_size), + } + assert len(record) == len(schema), ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"expected {len(schema)} fields in the record, got {len(record)}" + ) + for field_name in schema: + assert field_name in record, ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name} not in the record" + ) + + assert record_gt[field_name].shape == record[field_name].shape, ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name}, expected shape {record_gt[field_name].shape} " + f"got {record[field_name].shape}" + ) + assert record_gt[field_name].dtype == record[field_name].dtype, ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name}, expected dtype {record_gt[field_name].dtype} " + f"got {record[field_name].dtype}" + ) + assert torch.allclose(record_gt[field_name], record[field_name]), ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name}, tensors are not close enough:" + f"L-inf {(record_gt[field_name]-record[field_name]).abs_().max()} " + f"L1 {(record_gt[field_name]-record[field_name]).abs_().sum()} " + ) + + +def file_read_write_worker(rank_to_fpath): + schema = { + "tf": SizeData(dtype="float32", shape=(112, 112)), + "ti": SizeData(dtype="int32", shape=(4, 64, 64)), + } + world_size = comm.get_world_size() + rank = comm.get_rank() + storage = SingleProcessFileTensorStorage(schema, rank_to_fpath[rank], "wb") + data_elts = [] + # prepare different number of tensors in different processes + for i in range(rank + 1): + data_elt = { + "tf": torch.ones((112, 112), dtype=torch.float32) * (rank + i * world_size), + "ti": torch.ones((4, 64, 64), dtype=torch.int32) * (rank + i * world_size), + } + data_elts.append(data_elt) + # write data to the single process storage + for i in range(rank + 1): + record_id = storage.put(data_elts[i]) + assert record_id == i, f"Process {rank}: record ID {record_id}, expected {i}" + comm.synchronize() + # gather all data in process rank 0 + multi_storage = storage_gather(storage) + if rank != 0: + return + # read and check data from the multiprocess storage + for j in range(world_size): + for i in range(j): + record = multi_storage.get(j, i) + record_gt = { + "tf": torch.ones((112, 112), dtype=torch.float32) * (j + i * world_size), + "ti": torch.ones((4, 64, 64), dtype=torch.int32) * (j + i * world_size), + } + assert len(record) == len(schema), ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"expected {len(schema)} fields in the record, got {len(record)}" + ) + for field_name in schema: + assert field_name in record, ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name} not in the record" + ) + + assert record_gt[field_name].shape == record[field_name].shape, ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name}, expected shape {record_gt[field_name].shape} " + f"got {record[field_name].shape}" + ) + assert record_gt[field_name].dtype == record[field_name].dtype, ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name}, expected dtype {record_gt[field_name].dtype} " + f"got {record[field_name].dtype}" + ) + assert torch.allclose(record_gt[field_name], record[field_name]), ( + f"Process {rank}: multi storage record, rank {j}, id {i}: " + f"field {field_name}, tensors are not close enough:" + f"L-inf {(record_gt[field_name]-record[field_name]).abs_().max()} " + f"L1 {(record_gt[field_name]-record[field_name]).abs_().sum()} " + ) + + +class TestMultiProcessRamTensorStorage(unittest.TestCase): + def test_read_write_1(self): + launch(ram_read_write_worker, 8) + + +class TestMultiProcessFileTensorStorage(unittest.TestCase): + def test_read_write_1(self): + with ExitStack() as stack: + # WARNING: opens the files several times! may not work on all platforms + rank_to_fpath = { + i: stack.enter_context(tempfile.NamedTemporaryFile()).name for i in range(8) + } + launch(file_read_write_worker, 8, (rank_to_fpath,)) diff --git a/detectron2/projects/DensePose/tests/test_video_keyframe_dataset.py b/detectron2/projects/DensePose/tests/test_video_keyframe_dataset.py new file mode 100755 index 0000000..988e161 --- /dev/null +++ b/detectron2/projects/DensePose/tests/test_video_keyframe_dataset.py @@ -0,0 +1,98 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import contextlib +import os +import random +import tempfile +import unittest +import torch +import torchvision.io as io + +from densepose.data.transform import ImageResizeTransform +from densepose.data.video import RandomKFramesSelector, VideoKeyframeDataset + +try: + import av +except ImportError: + av = None + + +# copied from torchvision test/test_io.py +def _create_video_frames(num_frames, height, width): + y, x = torch.meshgrid(torch.linspace(-2, 2, height), torch.linspace(-2, 2, width)) + data = [] + for i in range(num_frames): + xc = float(i) / num_frames + yc = 1 - float(i) / (2 * num_frames) + d = torch.exp(-((x - xc) ** 2 + (y - yc) ** 2) / 2) * 255 + data.append(d.unsqueeze(2).repeat(1, 1, 3).byte()) + return torch.stack(data, 0) + + +# adapted from torchvision test/test_io.py +@contextlib.contextmanager +def temp_video(num_frames, height, width, fps, lossless=False, video_codec=None, options=None): + if lossless: + if video_codec is not None: + raise ValueError("video_codec can't be specified together with lossless") + if options is not None: + raise ValueError("options can't be specified together with lossless") + video_codec = "libx264rgb" + options = {"crf": "0"} + if video_codec is None: + video_codec = "libx264" + if options is None: + options = {} + data = _create_video_frames(num_frames, height, width) + with tempfile.NamedTemporaryFile(suffix=".mp4") as f: + f.close() + io.write_video(f.name, data, fps=fps, video_codec=video_codec, options=options) + yield f.name, data + os.unlink(f.name) + + +@unittest.skipIf(av is None, "PyAV unavailable") +class TestVideoKeyframeDataset(unittest.TestCase): + def test_read_keyframes_all(self): + with temp_video(60, 300, 300, 5, video_codec="mpeg4") as (fname, data): + video_list = [fname] + category_list = [None] + dataset = VideoKeyframeDataset(video_list, category_list) + self.assertEqual(len(dataset), 1) + data1, categories1 = dataset[0]["images"], dataset[0]["categories"] + self.assertEqual(data1.shape, torch.Size((5, 3, 300, 300))) + self.assertEqual(data1.dtype, torch.float32) + self.assertIsNone(categories1[0]) + return + self.assertTrue(False) + + def test_read_keyframes_with_selector(self): + with temp_video(60, 300, 300, 5, video_codec="mpeg4") as (fname, data): + video_list = [fname] + category_list = [None] + random.seed(0) + frame_selector = RandomKFramesSelector(3) + dataset = VideoKeyframeDataset(video_list, category_list, frame_selector) + self.assertEqual(len(dataset), 1) + data1, categories1 = dataset[0]["images"], dataset[0]["categories"] + self.assertEqual(data1.shape, torch.Size((3, 3, 300, 300))) + self.assertEqual(data1.dtype, torch.float32) + self.assertIsNone(categories1[0]) + return + self.assertTrue(False) + + def test_read_keyframes_with_selector_with_transform(self): + with temp_video(60, 300, 300, 5, video_codec="mpeg4") as (fname, data): + video_list = [fname] + category_list = [None] + random.seed(0) + frame_selector = RandomKFramesSelector(1) + transform = ImageResizeTransform() + dataset = VideoKeyframeDataset(video_list, category_list, frame_selector, transform) + data1, categories1 = dataset[0]["images"], dataset[0]["categories"] + self.assertEqual(len(dataset), 1) + self.assertEqual(data1.shape, torch.Size((1, 3, 800, 800))) + self.assertEqual(data1.dtype, torch.float32) + self.assertIsNone(categories1[0]) + return + self.assertTrue(False) diff --git a/detectron2/projects/DensePose/train_net.py b/detectron2/projects/DensePose/train_net.py new file mode 100755 index 0000000..e8d77b9 --- /dev/null +++ b/detectron2/projects/DensePose/train_net.py @@ -0,0 +1,80 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +DensePose Training Script. + +This script is similar to the training script in detectron2/tools. + +It is an example of how a user might use detectron2 for a new project. +""" + +from datetime import timedelta + +import detectron2.utils.comm as comm +from detectron2.config import get_cfg +from detectron2.engine import DEFAULT_TIMEOUT, default_argument_parser, default_setup, hooks, launch +from detectron2.evaluation import verify_results +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import setup_logger + +from densepose import add_densepose_config +from densepose.engine import Trainer +from densepose.modeling.densepose_checkpoint import DensePoseCheckpointer + + +def setup(args): + cfg = get_cfg() + add_densepose_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + # Setup logger for "densepose" module + setup_logger(output=cfg.OUTPUT_DIR, distributed_rank=comm.get_rank(), name="densepose") + return cfg + + +def main(args): + cfg = setup(args) + # disable strict kwargs checking: allow one to specify path handle + # hints through kwargs, like timeout in DP evaluation + PathManager.set_strict_kwargs_checking(False) + + if args.eval_only: + model = Trainer.build_model(cfg) + DensePoseCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + if cfg.TEST.AUG.ENABLED: + res.update(Trainer.test_with_TTA(cfg, model)) + if comm.is_main_process(): + verify_results(cfg, res) + return res + + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + if cfg.TEST.AUG.ENABLED: + trainer.register_hooks( + [hooks.EvalHook(0, lambda: trainer.test_with_TTA(cfg, trainer.model))] + ) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + cfg = setup(args) + timeout = ( + DEFAULT_TIMEOUT if cfg.DENSEPOSE_EVALUATION.DISTRIBUTED_INFERENCE else timedelta(hours=4) + ) + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + timeout=timeout, + ) diff --git a/detectron2/projects/MViTv2/README.md b/detectron2/projects/MViTv2/README.md new file mode 100755 index 0000000..64afd79 --- /dev/null +++ b/detectron2/projects/MViTv2/README.md @@ -0,0 +1,142 @@ +# MViTv2: Improved Multiscale Vision Transformers for Classification and Detection + +Yanghao Li*, Chao-Yuan Wu*, Haoqi Fan, Karttikeya Mangalam, Bo Xiong, Jitendra Malik, Christoph Feichtenhofer* + +[[`arXiv`](https://arxiv.org/abs/2112.01526)] [[`BibTeX`](#CitingMViTv2)] + +In this repository, we provide detection configs and models for MViTv2 (CVPR 2022) in Detectron2. For image classification tasks, please refer to [MViTv2 repo](https://github.com/facebookresearch/mvit). + +## Results and Pretrained Models + +### COCO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namepre-trainMethodepochsbox
AP
mask
AP
#paramsFLOPSmodel iddownload
MViTV2-TIN1KMask R-CNN3648.343.844M279G307611773model
MViTV2-TIN1KCascade Mask R-CNN3652.245.076M701G308344828model
MViTV2-SIN1KCascade Mask R-CNN3653.246.087M748G308344647model
MViTV2-BIN1KCascade Mask R-CNN3654.146.7103M814G308109448model
MViTV2-BIN21KCascade Mask R-CNN3654.947.4103M814G309003202model
MViTV2-LIN21KCascade Mask R-CNN5055.848.3270M1519G308099658model
MViTV2-HIN21KCascade Mask R-CNN3656.148.5718M3084G309013744model
+ +Note that the above models were trained and measured on 8-node with 64 NVIDIA A100 GPUs in total. The ImageNet pre-trained model weights are obtained from [MViTv2 repo](https://github.com/facebookresearch/mvit). + +## Training +All configs can be trained with: + +``` +../../tools/lazyconfig_train_net.py --config-file configs/path/to/config.py +``` +By default, we use 64 GPUs with batch size as 64 for training. + +## Evaluation +Model evaluation can be done similarly: +``` +../../tools/lazyconfig_train_net.py --config-file configs/path/to/config.py --eval-only train.init_checkpoint=/path/to/model_checkpoint +``` + + + +## Citing MViTv2 + +If you use MViTv2, please use the following BibTeX entry. + +```BibTeX +@inproceedings{li2021improved, + title={MViTv2: Improved multiscale vision transformers for classification and detection}, + author={Li, Yanghao and Wu, Chao-Yuan and Fan, Haoqi and Mangalam, Karttikeya and Xiong, Bo and Malik, Jitendra and Feichtenhofer, Christoph}, + booktitle={CVPR}, + year={2022} +} +``` diff --git a/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py new file mode 100755 index 0000000..61366bf --- /dev/null +++ b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_3x.py @@ -0,0 +1,8 @@ +from .cascade_mask_rcnn_mvitv2_t_3x import model, dataloader, optimizer, lr_multiplier, train + + +model.backbone.bottom_up.depth = 24 +model.backbone.bottom_up.last_block_indexes = (1, 4, 20, 23) +model.backbone.bottom_up.drop_path_rate = 0.4 + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_B_in1k.pyth" diff --git a/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py new file mode 100755 index 0000000..7c3bdce --- /dev/null +++ b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_b_in21k_3x.py @@ -0,0 +1,3 @@ +from .cascade_mask_rcnn_mvitv2_b_3x import model, dataloader, optimizer, lr_multiplier, train + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_B_in21k.pyth" diff --git a/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py new file mode 100755 index 0000000..6fee5e9 --- /dev/null +++ b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_h_in21k_lsj_3x.py @@ -0,0 +1,12 @@ +from .cascade_mask_rcnn_mvitv2_b_3x import model, optimizer, train, lr_multiplier +from .common.coco_loader_lsj import dataloader + + +model.backbone.bottom_up.embed_dim = 192 +model.backbone.bottom_up.depth = 80 +model.backbone.bottom_up.num_heads = 3 +model.backbone.bottom_up.last_block_indexes = (3, 11, 71, 79) +model.backbone.bottom_up.drop_path_rate = 0.6 +model.backbone.bottom_up.use_act_checkpoint = True + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_H_in21k.pyth" diff --git a/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_l_in21k_lsj_50ep.py b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_l_in21k_lsj_50ep.py new file mode 100755 index 0000000..38da895 --- /dev/null +++ b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_l_in21k_lsj_50ep.py @@ -0,0 +1,31 @@ +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler + +from .cascade_mask_rcnn_mvitv2_b_3x import model, optimizer, train +from .common.coco_loader_lsj import dataloader + + +model.backbone.bottom_up.embed_dim = 144 +model.backbone.bottom_up.depth = 48 +model.backbone.bottom_up.num_heads = 2 +model.backbone.bottom_up.last_block_indexes = (1, 7, 43, 47) +model.backbone.bottom_up.drop_path_rate = 0.5 + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_L_in21k.pyth" + +# Schedule +# 50ep = 184375 // 2 iters * 64 images/iter / 118000 images/ep +train.max_iter = 184375 // 2 +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[163889 // 2, 177546 // 2], + num_updates=train.max_iter, + ), + warmup_length=250 / train.max_iter, + warmup_factor=0.001, +) + +optimizer.lr = 1e-4 diff --git a/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py new file mode 100755 index 0000000..ad8eeb4 --- /dev/null +++ b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_s_3x.py @@ -0,0 +1,7 @@ +from .cascade_mask_rcnn_mvitv2_t_3x import model, dataloader, optimizer, lr_multiplier, train + + +model.backbone.bottom_up.depth = 16 +model.backbone.bottom_up.last_block_indexes = (0, 2, 13, 15) + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_S_in1k.pyth" diff --git a/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py new file mode 100755 index 0000000..51327dd --- /dev/null +++ b/detectron2/projects/MViTv2/configs/cascade_mask_rcnn_mvitv2_t_3x.py @@ -0,0 +1,48 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import FastRCNNOutputLayers, FastRCNNConvFCHead, CascadeROIHeads +from detectron2.layers.batch_norm import NaiveSyncBatchNorm + +from .mask_rcnn_mvitv2_t_3x import model, dataloader, optimizer, lr_multiplier, train + + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] + +model.roi_heads.update( + _target_=CascadeROIHeads, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[256, 256, 256, 256], + fc_dims=[1024], + conv_norm=lambda c: NaiveSyncBatchNorm(c, stats_mode="N"), + ) + for _ in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + test_score_thresh=0.05, + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + cls_agnostic_bbox_reg=True, + num_classes="${...num_classes}", + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) + +# Using NaiveSyncBatchNorm becase heads may have empty input. That is not supported by +# torch.nn.SyncBatchNorm. We can remove this after +# https://github.com/pytorch/pytorch/issues/36530 is fixed. +model.roi_heads.mask_head.conv_norm = lambda c: NaiveSyncBatchNorm(c, stats_mode="N") + +# 2conv in RPN: +# https://github.com/tensorflow/tpu/blob/b24729de804fdb751b06467d3dce0637fa652060/models/official/detection/modeling/architecture/heads.py#L95-L97 # noqa: E501, B950 +model.proposal_generator.head.conv_dims = [-1, -1] diff --git a/detectron2/projects/MViTv2/configs/common/coco_loader.py b/detectron2/projects/MViTv2/configs/common/coco_loader.py new file mode 100755 index 0000000..923878b --- /dev/null +++ b/detectron2/projects/MViTv2/configs/common/coco_loader.py @@ -0,0 +1,59 @@ +from omegaconf import OmegaConf + +import detectron2.data.transforms as T +from detectron2.config import LazyCall as L +from detectron2.data import ( + DatasetMapper, + build_detection_test_loader, + build_detection_train_loader, + get_detection_dataset_dicts, +) +from detectron2.evaluation import COCOEvaluator + +dataloader = OmegaConf.create() + +dataloader.train = L(build_detection_train_loader)( + dataset=L(get_detection_dataset_dicts)(names="coco_2017_train"), + mapper=L(DatasetMapper)( + is_train=True, + augmentations=[ + L(T.RandomApply)( + tfm_or_aug=L(T.AugmentationList)( + augs=[ + L(T.ResizeShortestEdge)( + short_edge_length=[400, 500, 600], sample_style="choice" + ), + L(T.RandomCrop)(crop_type="absolute_range", crop_size=(384, 600)), + ] + ), + prob=0.5, + ), + L(T.ResizeShortestEdge)( + short_edge_length=(480, 512, 544, 576, 608, 640, 672, 704, 736, 768, 800), + sample_style="choice", + max_size=1333, + ), + L(T.RandomFlip)(horizontal=True), + ], + image_format="RGB", + use_instance_mask=True, + ), + total_batch_size=16, + num_workers=4, +) + +dataloader.test = L(build_detection_test_loader)( + dataset=L(get_detection_dataset_dicts)(names="coco_2017_val", filter_empty=False), + mapper=L(DatasetMapper)( + is_train=False, + augmentations=[ + L(T.ResizeShortestEdge)(short_edge_length=800, max_size=1333), + ], + image_format="${...train.mapper.image_format}", + ), + num_workers=4, +) + +dataloader.evaluator = L(COCOEvaluator)( + dataset_name="${..test.dataset.names}", +) diff --git a/detectron2/projects/MViTv2/configs/common/coco_loader_lsj.py b/detectron2/projects/MViTv2/configs/common/coco_loader_lsj.py new file mode 100755 index 0000000..019b21f --- /dev/null +++ b/detectron2/projects/MViTv2/configs/common/coco_loader_lsj.py @@ -0,0 +1,19 @@ +import detectron2.data.transforms as T +from detectron2 import model_zoo +from detectron2.config import LazyCall as L + +from .coco_loader import dataloader + +# Data using LSJ +image_size = 1024 +dataloader.train.mapper.augmentations = [ + L(T.RandomFlip)(horizontal=True), # flip first + L(T.ResizeScale)( + min_scale=0.1, max_scale=2.0, target_height=image_size, target_width=image_size + ), + L(T.FixedSizeCrop)(crop_size=(image_size, image_size)), +] +dataloader.train.mapper.image_format = "RGB" +dataloader.train.total_batch_size = 64 +# recompute boxes due to cropping +dataloader.train.mapper.recompute_boxes = True diff --git a/detectron2/projects/MViTv2/configs/mask_rcnn_mvitv2_t_3x.py b/detectron2/projects/MViTv2/configs/mask_rcnn_mvitv2_t_3x.py new file mode 100755 index 0000000..ba4bdfe --- /dev/null +++ b/detectron2/projects/MViTv2/configs/mask_rcnn_mvitv2_t_3x.py @@ -0,0 +1,55 @@ +from functools import partial +import torch.nn as nn +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2 import model_zoo +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler +from detectron2.modeling import MViT + +from .common.coco_loader import dataloader + +model = model_zoo.get_config("common/models/mask_rcnn_fpn.py").model +constants = model_zoo.get_config("common/data/constants.py").constants +model.pixel_mean = constants.imagenet_rgb256_mean +model.pixel_std = constants.imagenet_rgb256_std +model.input_format = "RGB" +model.backbone.bottom_up = L(MViT)( + embed_dim=96, + depth=10, + num_heads=1, + last_block_indexes=(0, 2, 7, 9), + residual_pooling=True, + drop_path_rate=0.2, + norm_layer=partial(nn.LayerNorm, eps=1e-6), + out_features=("scale2", "scale3", "scale4", "scale5"), +) +model.backbone.in_features = "${.bottom_up.out_features}" + + +# Initialization and trainer settings +train = model_zoo.get_config("common/train.py").train +train.amp.enabled = True +train.ddp.fp16_compression = True +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_T_in1k.pyth" + +dataloader.train.total_batch_size = 64 + +# 36 epochs +train.max_iter = 67500 +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[52500, 62500, 67500], + ), + warmup_length=250 / train.max_iter, + warmup_factor=0.001, +) + +optimizer = model_zoo.get_config("common/optim.py").AdamW +optimizer.params.overrides = { + "pos_embed": {"weight_decay": 0.0}, + "rel_pos_h": {"weight_decay": 0.0}, + "rel_pos_w": {"weight_decay": 0.0}, +} +optimizer.lr = 1.6e-4 diff --git a/detectron2/projects/Panoptic-DeepLab/README.md b/detectron2/projects/Panoptic-DeepLab/README.md new file mode 100755 index 0000000..86b6d42 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/README.md @@ -0,0 +1,175 @@ +# Panoptic-DeepLab: A Simple, Strong, and Fast Baseline for Bottom-Up Panoptic Segmentation + +Bowen Cheng, Maxwell D. Collins, Yukun Zhu, Ting Liu, Thomas S. Huang, Hartwig Adam, Liang-Chieh Chen + +[[`arXiv`](https://arxiv.org/abs/1911.10194)] [[`BibTeX`](#CitingPanopticDeepLab)] [[`Reference implementation`](https://github.com/bowenc0221/panoptic-deeplab)] + +
+ +

+ +## Installation +Install Detectron2 following [the instructions](https://detectron2.readthedocs.io/tutorials/install.html). +To use cityscapes, prepare data follow the [tutorial](https://detectron2.readthedocs.io/tutorials/builtin_datasets.html#expected-dataset-structure-for-cityscapes). + +## Training + +To train a model with 8 GPUs run: +```bash +cd /path/to/detectron2/projects/Panoptic-DeepLab +python train_net.py --config-file configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024_dsconv.yaml --num-gpus 8 +``` + +## Evaluation + +Model evaluation can be done similarly: +```bash +cd /path/to/detectron2/projects/Panoptic-DeepLab +python train_net.py --config-file configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024_dsconv.yaml --eval-only MODEL.WEIGHTS /path/to/model_checkpoint +``` + +## Benchmark network speed + +If you want to benchmark the network speed without post-processing, you can run the evaluation script with `MODEL.PANOPTIC_DEEPLAB.BENCHMARK_NETWORK_SPEED True`: +```bash +cd /path/to/detectron2/projects/Panoptic-DeepLab +python train_net.py --config-file configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024_dsconv.yaml --eval-only MODEL.WEIGHTS /path/to/model_checkpoint MODEL.PANOPTIC_DEEPLAB.BENCHMARK_NETWORK_SPEED True +``` + +## Cityscapes Panoptic Segmentation +Cityscapes models are trained with ImageNet pretraining. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodBackboneOutput
resolution
PQSQRQmIoUAPMemory (M)model iddownload
Panoptic-DeepLabR50-DC51024×2048 58.6 80.9 71.2 75.9 29.8 8668 - model | metrics
Panoptic-DeepLabR52-DC51024×2048 60.3 81.5 72.9 78.2 33.2 9682 30841561 model | metrics
Panoptic-DeepLab (DSConv)R52-DC51024×2048 60.3 81.0 73.2 78.7 32.1 10466 33148034 model | metrics
+ +Note: +- [R52](https://dl.fbaipublicfiles.com/detectron2/DeepLab/R-52.pkl): a ResNet-50 with its first 7x7 convolution replaced by 3 3x3 convolutions. This modification has been used in most semantic segmentation papers. We pre-train this backbone on ImageNet using the default recipe of [pytorch examples](https://github.com/pytorch/examples/tree/master/imagenet). +- DC5 means using dilated convolution in `res5`. +- We use a smaller training crop size (512x1024) than the original paper (1025x2049), we find using larger crop size (1024x2048) could further improve PQ by 1.5% but also degrades AP by 3%. +- The implementation with regular Conv2d in ASPP and head is much heavier head than the original paper. +- This implementation does not include optimized post-processing code needed for deployment. Post-processing the network + outputs now takes similar amount of time to the network itself. Please refer to speed in the + original paper for comparison. +- DSConv refers to using DepthwiseSeparableConv2d in ASPP and decoder. The implementation with DSConv is identical to the original paper. + +## COCO Panoptic Segmentation +COCO models are trained with ImageNet pretraining on 16 V100s. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
MethodBackboneOutput
resolution
PQSQRQBox APMask APMemory (M)model iddownload
Panoptic-DeepLab (DSConv)R52-DC5640×640 35.5 77.3 44.7 18.6 19.7 246448865 model | metrics
+ +Note: +- [R52](https://dl.fbaipublicfiles.com/detectron2/DeepLab/R-52.pkl): a ResNet-50 with its first 7x7 convolution replaced by 3 3x3 convolutions. This modification has been used in most semantic segmentation papers. We pre-train this backbone on ImageNet using the default recipe of [pytorch examples](https://github.com/pytorch/examples/tree/master/imagenet). +- DC5 means using dilated convolution in `res5`. +- This reproduced number matches the original paper (35.5 vs. 35.1 PQ). +- This implementation does not include optimized post-processing code needed for deployment. Post-processing the network + outputs now takes more time than the network itself. Please refer to speed in the original paper for comparison. +- DSConv refers to using DepthwiseSeparableConv2d in ASPP and decoder. + +## Citing Panoptic-DeepLab + +If you use Panoptic-DeepLab, please use the following BibTeX entry. + +* CVPR 2020 paper: + +``` +@inproceedings{cheng2020panoptic, + title={Panoptic-DeepLab: A Simple, Strong, and Fast Baseline for Bottom-Up Panoptic Segmentation}, + author={Cheng, Bowen and Collins, Maxwell D and Zhu, Yukun and Liu, Ting and Huang, Thomas S and Adam, Hartwig and Chen, Liang-Chieh}, + booktitle={CVPR}, + year={2020} +} +``` + +* ICCV 2019 COCO-Mapillary workshp challenge report: + +``` +@inproceedings{cheng2019panoptic, + title={Panoptic-DeepLab}, + author={Cheng, Bowen and Collins, Maxwell D and Zhu, Yukun and Liu, Ting and Huang, Thomas S and Adam, Hartwig and Chen, Liang-Chieh}, + booktitle={ICCV COCO + Mapillary Joint Recognition Challenge Workshop}, + year={2019} +} +``` diff --git a/detectron2/projects/Panoptic-DeepLab/configs/COCO-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_200k_bs64_crop_640_640_coco_dsconv.yaml b/detectron2/projects/Panoptic-DeepLab/configs/COCO-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_200k_bs64_crop_640_640_coco_dsconv.yaml new file mode 100755 index 0000000..6944c6f --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/configs/COCO-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_200k_bs64_crop_640_640_coco_dsconv.yaml @@ -0,0 +1,42 @@ +_BASE_: ../Cityscapes-PanopticSegmentation/Base-PanopticDeepLab-OS16.yaml +MODEL: + WEIGHTS: "detectron2://DeepLab/R-52.pkl" + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + BACKBONE: + NAME: "build_resnet_deeplab_backbone" + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + RES5_MULTI_GRID: [1, 2, 4] + STEM_TYPE: "deeplab" + STEM_OUT_CHANNELS: 128 + STRIDE_IN_1X1: False + SEM_SEG_HEAD: + NUM_CLASSES: 133 + LOSS_TOP_K: 1.0 + USE_DEPTHWISE_SEPARABLE_CONV: True + PANOPTIC_DEEPLAB: + STUFF_AREA: 4096 + NMS_KERNEL: 41 + SIZE_DIVISIBILITY: 640 + USE_DEPTHWISE_SEPARABLE_CONV: True +DATASETS: + TRAIN: ("coco_2017_train_panoptic",) + TEST: ("coco_2017_val_panoptic",) +SOLVER: + BASE_LR: 0.0005 + MAX_ITER: 200000 + IMS_PER_BATCH: 64 +INPUT: + FORMAT: "RGB" + GAUSSIAN_SIGMA: 8 + MIN_SIZE_TRAIN: !!python/object/apply:eval ["[int(x * 0.1 * 640) for x in range(5, 16)]"] + MIN_SIZE_TRAIN_SAMPLING: "choice" + MIN_SIZE_TEST: 640 + MAX_SIZE_TRAIN: 960 + MAX_SIZE_TEST: 640 + CROP: + ENABLED: True + TYPE: "absolute" + SIZE: (640, 640) diff --git a/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/Base-PanopticDeepLab-OS16.yaml b/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/Base-PanopticDeepLab-OS16.yaml new file mode 100755 index 0000000..b737998 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/Base-PanopticDeepLab-OS16.yaml @@ -0,0 +1,65 @@ +MODEL: + META_ARCHITECTURE: "PanopticDeepLab" + BACKBONE: + FREEZE_AT: 0 + RESNETS: + OUT_FEATURES: ["res2", "res3", "res5"] + RES5_DILATION: 2 + SEM_SEG_HEAD: + NAME: "PanopticDeepLabSemSegHead" + IN_FEATURES: ["res2", "res3", "res5"] + PROJECT_FEATURES: ["res2", "res3"] + PROJECT_CHANNELS: [32, 64] + ASPP_CHANNELS: 256 + ASPP_DILATIONS: [6, 12, 18] + ASPP_DROPOUT: 0.1 + HEAD_CHANNELS: 256 + CONVS_DIM: 256 + COMMON_STRIDE: 4 + NUM_CLASSES: 19 + LOSS_TYPE: "hard_pixel_mining" + NORM: "SyncBN" + INS_EMBED_HEAD: + NAME: "PanopticDeepLabInsEmbedHead" + IN_FEATURES: ["res2", "res3", "res5"] + PROJECT_FEATURES: ["res2", "res3"] + PROJECT_CHANNELS: [32, 64] + ASPP_CHANNELS: 256 + ASPP_DILATIONS: [6, 12, 18] + ASPP_DROPOUT: 0.1 + HEAD_CHANNELS: 32 + CONVS_DIM: 128 + COMMON_STRIDE: 4 + NORM: "SyncBN" + CENTER_LOSS_WEIGHT: 200.0 + OFFSET_LOSS_WEIGHT: 0.01 + PANOPTIC_DEEPLAB: + STUFF_AREA: 2048 + CENTER_THRESHOLD: 0.1 + NMS_KERNEL: 7 + TOP_K_INSTANCE: 200 +DATASETS: + TRAIN: ("cityscapes_fine_panoptic_train",) + TEST: ("cityscapes_fine_panoptic_val",) +SOLVER: + OPTIMIZER: "ADAM" + BASE_LR: 0.001 + WEIGHT_DECAY: 0.0 + WEIGHT_DECAY_NORM: 0.0 + WEIGHT_DECAY_BIAS: 0.0 + MAX_ITER: 60000 + LR_SCHEDULER_NAME: "WarmupPolyLR" + IMS_PER_BATCH: 32 +INPUT: + MIN_SIZE_TRAIN: (512, 640, 704, 832, 896, 1024, 1152, 1216, 1344, 1408, 1536, 1664, 1728, 1856, 1920, 2048) + MIN_SIZE_TRAIN_SAMPLING: "choice" + MIN_SIZE_TEST: 1024 + MAX_SIZE_TRAIN: 4096 + MAX_SIZE_TEST: 2048 + CROP: + ENABLED: True + TYPE: "absolute" + SIZE: (1024, 2048) +DATALOADER: + NUM_WORKERS: 10 +VERSION: 2 diff --git a/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024.yaml b/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024.yaml new file mode 100755 index 0000000..fde902b --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024.yaml @@ -0,0 +1,20 @@ +_BASE_: Base-PanopticDeepLab-OS16.yaml +MODEL: + WEIGHTS: "detectron2://DeepLab/R-52.pkl" + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + BACKBONE: + NAME: "build_resnet_deeplab_backbone" + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + RES5_MULTI_GRID: [1, 2, 4] + STEM_TYPE: "deeplab" + STEM_OUT_CHANNELS: 128 + STRIDE_IN_1X1: False +SOLVER: + MAX_ITER: 90000 +INPUT: + FORMAT: "RGB" + CROP: + SIZE: (512, 1024) diff --git a/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024_dsconv.yaml b/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024_dsconv.yaml new file mode 100755 index 0000000..8e31420 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/configs/Cityscapes-PanopticSegmentation/panoptic_deeplab_R_52_os16_mg124_poly_90k_bs32_crop_512_1024_dsconv.yaml @@ -0,0 +1,24 @@ +_BASE_: Base-PanopticDeepLab-OS16.yaml +MODEL: + WEIGHTS: "detectron2://DeepLab/R-52.pkl" + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + BACKBONE: + NAME: "build_resnet_deeplab_backbone" + RESNETS: + DEPTH: 50 + NORM: "SyncBN" + RES5_MULTI_GRID: [1, 2, 4] + STEM_TYPE: "deeplab" + STEM_OUT_CHANNELS: 128 + STRIDE_IN_1X1: False + PANOPTIC_DEEPLAB: + USE_DEPTHWISE_SEPARABLE_CONV: True + SEM_SEG_HEAD: + USE_DEPTHWISE_SEPARABLE_CONV: True +SOLVER: + MAX_ITER: 90000 +INPUT: + FORMAT: "RGB" + CROP: + SIZE: (512, 1024) diff --git a/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/__init__.py b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/__init__.py new file mode 100755 index 0000000..8d3c980 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/__init__.py @@ -0,0 +1,10 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .config import add_panoptic_deeplab_config +from .dataset_mapper import PanopticDeeplabDatasetMapper +from .panoptic_seg import ( + PanopticDeepLab, + INS_EMBED_BRANCHES_REGISTRY, + build_ins_embed_branch, + PanopticDeepLabSemSegHead, + PanopticDeepLabInsEmbedHead, +) diff --git a/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/config.py b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/config.py new file mode 100755 index 0000000..5aa2d28 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/config.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.config import CfgNode as CN +from detectron2.projects.deeplab import add_deeplab_config + + +def add_panoptic_deeplab_config(cfg): + """ + Add config for Panoptic-DeepLab. + """ + # Reuse DeepLab config. + add_deeplab_config(cfg) + # Target generation parameters. + cfg.INPUT.GAUSSIAN_SIGMA = 10 + cfg.INPUT.IGNORE_STUFF_IN_OFFSET = True + cfg.INPUT.SMALL_INSTANCE_AREA = 4096 + cfg.INPUT.SMALL_INSTANCE_WEIGHT = 3 + cfg.INPUT.IGNORE_CROWD_IN_SEMANTIC = False + # Optimizer type. + cfg.SOLVER.OPTIMIZER = "ADAM" + # Panoptic-DeepLab semantic segmentation head. + # We add an extra convolution before predictor. + cfg.MODEL.SEM_SEG_HEAD.HEAD_CHANNELS = 256 + cfg.MODEL.SEM_SEG_HEAD.LOSS_TOP_K = 0.2 + # Panoptic-DeepLab instance segmentation head. + cfg.MODEL.INS_EMBED_HEAD = CN() + cfg.MODEL.INS_EMBED_HEAD.NAME = "PanopticDeepLabInsEmbedHead" + cfg.MODEL.INS_EMBED_HEAD.IN_FEATURES = ["res2", "res3", "res5"] + cfg.MODEL.INS_EMBED_HEAD.PROJECT_FEATURES = ["res2", "res3"] + cfg.MODEL.INS_EMBED_HEAD.PROJECT_CHANNELS = [32, 64] + cfg.MODEL.INS_EMBED_HEAD.ASPP_CHANNELS = 256 + cfg.MODEL.INS_EMBED_HEAD.ASPP_DILATIONS = [6, 12, 18] + cfg.MODEL.INS_EMBED_HEAD.ASPP_DROPOUT = 0.1 + # We add an extra convolution before predictor. + cfg.MODEL.INS_EMBED_HEAD.HEAD_CHANNELS = 32 + cfg.MODEL.INS_EMBED_HEAD.CONVS_DIM = 128 + cfg.MODEL.INS_EMBED_HEAD.COMMON_STRIDE = 4 + cfg.MODEL.INS_EMBED_HEAD.NORM = "SyncBN" + cfg.MODEL.INS_EMBED_HEAD.CENTER_LOSS_WEIGHT = 200.0 + cfg.MODEL.INS_EMBED_HEAD.OFFSET_LOSS_WEIGHT = 0.01 + # Panoptic-DeepLab post-processing setting. + cfg.MODEL.PANOPTIC_DEEPLAB = CN() + # Stuff area limit, ignore stuff region below this number. + cfg.MODEL.PANOPTIC_DEEPLAB.STUFF_AREA = 2048 + cfg.MODEL.PANOPTIC_DEEPLAB.CENTER_THRESHOLD = 0.1 + cfg.MODEL.PANOPTIC_DEEPLAB.NMS_KERNEL = 7 + cfg.MODEL.PANOPTIC_DEEPLAB.TOP_K_INSTANCE = 200 + # If set to False, Panoptic-DeepLab will not evaluate instance segmentation. + cfg.MODEL.PANOPTIC_DEEPLAB.PREDICT_INSTANCES = True + cfg.MODEL.PANOPTIC_DEEPLAB.USE_DEPTHWISE_SEPARABLE_CONV = False + # This is the padding parameter for images with various sizes. ASPP layers + # requires input images to be divisible by the average pooling size and we + # can use `MODEL.PANOPTIC_DEEPLAB.SIZE_DIVISIBILITY` to pad all images to + # a fixed resolution (e.g. 640x640 for COCO) to avoid having a image size + # that is not divisible by ASPP average pooling size. + cfg.MODEL.PANOPTIC_DEEPLAB.SIZE_DIVISIBILITY = -1 + # Only evaluates network speed (ignores post-processing). + cfg.MODEL.PANOPTIC_DEEPLAB.BENCHMARK_NETWORK_SPEED = False diff --git a/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py new file mode 100755 index 0000000..53272c7 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/dataset_mapper.py @@ -0,0 +1,116 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import logging +import numpy as np +from typing import Callable, List, Union +import torch +from panopticapi.utils import rgb2id + +from detectron2.config import configurable +from detectron2.data import MetadataCatalog +from detectron2.data import detection_utils as utils +from detectron2.data import transforms as T + +from .target_generator import PanopticDeepLabTargetGenerator + +__all__ = ["PanopticDeeplabDatasetMapper"] + + +class PanopticDeeplabDatasetMapper: + """ + The callable currently does the following: + + 1. Read the image from "file_name" and label from "pan_seg_file_name" + 2. Applies random scale, crop and flip transforms to image and label + 3. Prepare data to Tensor and generate training targets from label + """ + + @configurable + def __init__( + self, + *, + augmentations: List[Union[T.Augmentation, T.Transform]], + image_format: str, + panoptic_target_generator: Callable, + ): + """ + NOTE: this interface is experimental. + + Args: + augmentations: a list of augmentations or deterministic transforms to apply + image_format: an image format supported by :func:`detection_utils.read_image`. + panoptic_target_generator: a callable that takes "panoptic_seg" and + "segments_info" to generate training targets for the model. + """ + # fmt: off + self.augmentations = T.AugmentationList(augmentations) + self.image_format = image_format + # fmt: on + logger = logging.getLogger(__name__) + logger.info("Augmentations used in training: " + str(augmentations)) + + self.panoptic_target_generator = panoptic_target_generator + + @classmethod + def from_config(cls, cfg): + augs = [ + T.ResizeShortestEdge( + cfg.INPUT.MIN_SIZE_TRAIN, + cfg.INPUT.MAX_SIZE_TRAIN, + cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING, + ) + ] + if cfg.INPUT.CROP.ENABLED: + augs.append(T.RandomCrop(cfg.INPUT.CROP.TYPE, cfg.INPUT.CROP.SIZE)) + augs.append(T.RandomFlip()) + + # Assume always applies to the training set. + dataset_names = cfg.DATASETS.TRAIN + meta = MetadataCatalog.get(dataset_names[0]) + panoptic_target_generator = PanopticDeepLabTargetGenerator( + ignore_label=meta.ignore_label, + thing_ids=list(meta.thing_dataset_id_to_contiguous_id.values()), + sigma=cfg.INPUT.GAUSSIAN_SIGMA, + ignore_stuff_in_offset=cfg.INPUT.IGNORE_STUFF_IN_OFFSET, + small_instance_area=cfg.INPUT.SMALL_INSTANCE_AREA, + small_instance_weight=cfg.INPUT.SMALL_INSTANCE_WEIGHT, + ignore_crowd_in_semantic=cfg.INPUT.IGNORE_CROWD_IN_SEMANTIC, + ) + + ret = { + "augmentations": augs, + "image_format": cfg.INPUT.FORMAT, + "panoptic_target_generator": panoptic_target_generator, + } + return ret + + def __call__(self, dataset_dict): + """ + Args: + dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. + + Returns: + dict: a format that builtin models in detectron2 accept + """ + dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below + # Load image. + image = utils.read_image(dataset_dict["file_name"], format=self.image_format) + utils.check_image_size(dataset_dict, image) + # Panoptic label is encoded in RGB image. + pan_seg_gt = utils.read_image(dataset_dict.pop("pan_seg_file_name"), "RGB") + + # Reuses semantic transform for panoptic labels. + aug_input = T.AugInput(image, sem_seg=pan_seg_gt) + _ = self.augmentations(aug_input) + image, pan_seg_gt = aug_input.image, aug_input.sem_seg + + # Pytorch's dataloader is efficient on torch.Tensor due to shared-memory, + # but not efficient on large generic data structures due to the use of pickle & mp.Queue. + # Therefore it's important to use torch.Tensor. + dataset_dict["image"] = torch.as_tensor(np.ascontiguousarray(image.transpose(2, 0, 1))) + + # Generates training targets for Panoptic-DeepLab. + targets = self.panoptic_target_generator(rgb2id(pan_seg_gt), dataset_dict["segments_info"]) + dataset_dict.update(targets) + + return dataset_dict diff --git a/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py new file mode 100755 index 0000000..c12ca74 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/panoptic_seg.py @@ -0,0 +1,572 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Callable, Dict, List, Union +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.data import MetadataCatalog +from detectron2.layers import Conv2d, DepthwiseSeparableConv2d, ShapeSpec, get_norm +from detectron2.modeling import ( + META_ARCH_REGISTRY, + SEM_SEG_HEADS_REGISTRY, + build_backbone, + build_sem_seg_head, +) +from detectron2.modeling.postprocessing import sem_seg_postprocess +from detectron2.projects.deeplab import DeepLabV3PlusHead +from detectron2.projects.deeplab.loss import DeepLabCE +from detectron2.structures import BitMasks, ImageList, Instances +from detectron2.utils.registry import Registry + +from .post_processing import get_panoptic_segmentation + +__all__ = ["PanopticDeepLab", "INS_EMBED_BRANCHES_REGISTRY", "build_ins_embed_branch"] + + +INS_EMBED_BRANCHES_REGISTRY = Registry("INS_EMBED_BRANCHES") +INS_EMBED_BRANCHES_REGISTRY.__doc__ = """ +Registry for instance embedding branches, which make instance embedding +predictions from feature maps. +""" + + +@META_ARCH_REGISTRY.register() +class PanopticDeepLab(nn.Module): + """ + Main class for panoptic segmentation architectures. + """ + + def __init__(self, cfg): + super().__init__() + self.backbone = build_backbone(cfg) + self.sem_seg_head = build_sem_seg_head(cfg, self.backbone.output_shape()) + self.ins_embed_head = build_ins_embed_branch(cfg, self.backbone.output_shape()) + self.register_buffer("pixel_mean", torch.tensor(cfg.MODEL.PIXEL_MEAN).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(cfg.MODEL.PIXEL_STD).view(-1, 1, 1), False) + self.meta = MetadataCatalog.get(cfg.DATASETS.TRAIN[0]) + self.stuff_area = cfg.MODEL.PANOPTIC_DEEPLAB.STUFF_AREA + self.threshold = cfg.MODEL.PANOPTIC_DEEPLAB.CENTER_THRESHOLD + self.nms_kernel = cfg.MODEL.PANOPTIC_DEEPLAB.NMS_KERNEL + self.top_k = cfg.MODEL.PANOPTIC_DEEPLAB.TOP_K_INSTANCE + self.predict_instances = cfg.MODEL.PANOPTIC_DEEPLAB.PREDICT_INSTANCES + self.use_depthwise_separable_conv = cfg.MODEL.PANOPTIC_DEEPLAB.USE_DEPTHWISE_SEPARABLE_CONV + assert ( + cfg.MODEL.SEM_SEG_HEAD.USE_DEPTHWISE_SEPARABLE_CONV + == cfg.MODEL.PANOPTIC_DEEPLAB.USE_DEPTHWISE_SEPARABLE_CONV + ) + self.size_divisibility = cfg.MODEL.PANOPTIC_DEEPLAB.SIZE_DIVISIBILITY + self.benchmark_network_speed = cfg.MODEL.PANOPTIC_DEEPLAB.BENCHMARK_NETWORK_SPEED + + @property + def device(self): + return self.pixel_mean.device + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DatasetMapper`. + Each item in the list contains the inputs for one image. + For now, each item in the list is a dict that contains: + * "image": Tensor, image in (C, H, W) format. + * "sem_seg": semantic segmentation ground truth + * "center": center points heatmap ground truth + * "offset": pixel offsets to center points ground truth + * Other information that's included in the original dicts, such as: + "height", "width" (int): the output resolution of the model (may be different + from input resolution), used in inference. + Returns: + list[dict]: + each dict is the results for one image. The dict contains the following keys: + + * "panoptic_seg", "sem_seg": see documentation + :doc:`/tutorials/models` for the standard output format + * "instances": available if ``predict_instances is True``. see documentation + :doc:`/tutorials/models` for the standard output format + """ + images = [x["image"].to(self.device) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + # To avoid error in ASPP layer when input has different size. + size_divisibility = ( + self.size_divisibility + if self.size_divisibility > 0 + else self.backbone.size_divisibility + ) + images = ImageList.from_tensors(images, size_divisibility) + + features = self.backbone(images.tensor) + + losses = {} + if "sem_seg" in batched_inputs[0]: + targets = [x["sem_seg"].to(self.device) for x in batched_inputs] + targets = ImageList.from_tensors( + targets, size_divisibility, self.sem_seg_head.ignore_value + ).tensor + if "sem_seg_weights" in batched_inputs[0]: + # The default D2 DatasetMapper may not contain "sem_seg_weights" + # Avoid error in testing when default DatasetMapper is used. + weights = [x["sem_seg_weights"].to(self.device) for x in batched_inputs] + weights = ImageList.from_tensors(weights, size_divisibility).tensor + else: + weights = None + else: + targets = None + weights = None + sem_seg_results, sem_seg_losses = self.sem_seg_head(features, targets, weights) + losses.update(sem_seg_losses) + + if "center" in batched_inputs[0] and "offset" in batched_inputs[0]: + center_targets = [x["center"].to(self.device) for x in batched_inputs] + center_targets = ImageList.from_tensors( + center_targets, size_divisibility + ).tensor.unsqueeze(1) + center_weights = [x["center_weights"].to(self.device) for x in batched_inputs] + center_weights = ImageList.from_tensors(center_weights, size_divisibility).tensor + + offset_targets = [x["offset"].to(self.device) for x in batched_inputs] + offset_targets = ImageList.from_tensors(offset_targets, size_divisibility).tensor + offset_weights = [x["offset_weights"].to(self.device) for x in batched_inputs] + offset_weights = ImageList.from_tensors(offset_weights, size_divisibility).tensor + else: + center_targets = None + center_weights = None + + offset_targets = None + offset_weights = None + + center_results, offset_results, center_losses, offset_losses = self.ins_embed_head( + features, center_targets, center_weights, offset_targets, offset_weights + ) + losses.update(center_losses) + losses.update(offset_losses) + + if self.training: + return losses + + if self.benchmark_network_speed: + return [] + + processed_results = [] + for sem_seg_result, center_result, offset_result, input_per_image, image_size in zip( + sem_seg_results, center_results, offset_results, batched_inputs, images.image_sizes + ): + height = input_per_image.get("height") + width = input_per_image.get("width") + r = sem_seg_postprocess(sem_seg_result, image_size, height, width) + c = sem_seg_postprocess(center_result, image_size, height, width) + o = sem_seg_postprocess(offset_result, image_size, height, width) + # Post-processing to get panoptic segmentation. + panoptic_image, _ = get_panoptic_segmentation( + r.argmax(dim=0, keepdim=True), + c, + o, + thing_ids=self.meta.thing_dataset_id_to_contiguous_id.values(), + label_divisor=self.meta.label_divisor, + stuff_area=self.stuff_area, + void_label=-1, + threshold=self.threshold, + nms_kernel=self.nms_kernel, + top_k=self.top_k, + ) + # For semantic segmentation evaluation. + processed_results.append({"sem_seg": r}) + panoptic_image = panoptic_image.squeeze(0) + semantic_prob = F.softmax(r, dim=0) + # For panoptic segmentation evaluation. + processed_results[-1]["panoptic_seg"] = (panoptic_image, None) + # For instance segmentation evaluation. + if self.predict_instances: + instances = [] + panoptic_image_cpu = panoptic_image.cpu().numpy() + for panoptic_label in np.unique(panoptic_image_cpu): + if panoptic_label == -1: + continue + pred_class = panoptic_label // self.meta.label_divisor + isthing = pred_class in list( + self.meta.thing_dataset_id_to_contiguous_id.values() + ) + # Get instance segmentation results. + if isthing: + instance = Instances((height, width)) + # Evaluation code takes continuous id starting from 0 + instance.pred_classes = torch.tensor( + [pred_class], device=panoptic_image.device + ) + mask = panoptic_image == panoptic_label + instance.pred_masks = mask.unsqueeze(0) + # Average semantic probability + sem_scores = semantic_prob[pred_class, ...] + sem_scores = torch.mean(sem_scores[mask]) + # Center point probability + mask_indices = torch.nonzero(mask).float() + center_y, center_x = ( + torch.mean(mask_indices[:, 0]), + torch.mean(mask_indices[:, 1]), + ) + center_scores = c[0, int(center_y.item()), int(center_x.item())] + # Confidence score is semantic prob * center prob. + instance.scores = torch.tensor( + [sem_scores * center_scores], device=panoptic_image.device + ) + # Get bounding boxes + instance.pred_boxes = BitMasks(instance.pred_masks).get_bounding_boxes() + instances.append(instance) + if len(instances) > 0: + processed_results[-1]["instances"] = Instances.cat(instances) + + return processed_results + + +@SEM_SEG_HEADS_REGISTRY.register() +class PanopticDeepLabSemSegHead(DeepLabV3PlusHead): + """ + A semantic segmentation head described in :paper:`Panoptic-DeepLab`. + """ + + @configurable + def __init__( + self, + input_shape: Dict[str, ShapeSpec], + *, + decoder_channels: List[int], + norm: Union[str, Callable], + head_channels: int, + loss_weight: float, + loss_type: str, + loss_top_k: float, + ignore_value: int, + num_classes: int, + **kwargs, + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape (ShapeSpec): shape of the input feature + decoder_channels (list[int]): a list of output channels of each + decoder stage. It should have the same length as "input_shape" + (each element in "input_shape" corresponds to one decoder stage). + norm (str or callable): normalization for all conv layers. + head_channels (int): the output channels of extra convolutions + between decoder and predictor. + loss_weight (float): loss weight. + loss_top_k: (float): setting the top k% hardest pixels for + "hard_pixel_mining" loss. + loss_type, ignore_value, num_classes: the same as the base class. + """ + super().__init__( + input_shape, + decoder_channels=decoder_channels, + norm=norm, + ignore_value=ignore_value, + **kwargs, + ) + assert self.decoder_only + + self.loss_weight = loss_weight + use_bias = norm == "" + # `head` is additional transform before predictor + if self.use_depthwise_separable_conv: + # We use a single 5x5 DepthwiseSeparableConv2d to replace + # 2 3x3 Conv2d since they have the same receptive field. + self.head = DepthwiseSeparableConv2d( + decoder_channels[0], + head_channels, + kernel_size=5, + padding=2, + norm1=norm, + activation1=F.relu, + norm2=norm, + activation2=F.relu, + ) + else: + self.head = nn.Sequential( + Conv2d( + decoder_channels[0], + decoder_channels[0], + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, decoder_channels[0]), + activation=F.relu, + ), + Conv2d( + decoder_channels[0], + head_channels, + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, head_channels), + activation=F.relu, + ), + ) + weight_init.c2_xavier_fill(self.head[0]) + weight_init.c2_xavier_fill(self.head[1]) + self.predictor = Conv2d(head_channels, num_classes, kernel_size=1) + nn.init.normal_(self.predictor.weight, 0, 0.001) + nn.init.constant_(self.predictor.bias, 0) + + if loss_type == "cross_entropy": + self.loss = nn.CrossEntropyLoss(reduction="mean", ignore_index=ignore_value) + elif loss_type == "hard_pixel_mining": + self.loss = DeepLabCE(ignore_label=ignore_value, top_k_percent_pixels=loss_top_k) + else: + raise ValueError("Unexpected loss type: %s" % loss_type) + + @classmethod + def from_config(cls, cfg, input_shape): + ret = super().from_config(cfg, input_shape) + ret["head_channels"] = cfg.MODEL.SEM_SEG_HEAD.HEAD_CHANNELS + ret["loss_top_k"] = cfg.MODEL.SEM_SEG_HEAD.LOSS_TOP_K + return ret + + def forward(self, features, targets=None, weights=None): + """ + Returns: + In training, returns (None, dict of losses) + In inference, returns (CxHxW logits, {}) + """ + y = self.layers(features) + if self.training: + return None, self.losses(y, targets, weights) + else: + y = F.interpolate( + y, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + return y, {} + + def layers(self, features): + assert self.decoder_only + y = super().layers(features) + y = self.head(y) + y = self.predictor(y) + return y + + def losses(self, predictions, targets, weights=None): + predictions = F.interpolate( + predictions, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + loss = self.loss(predictions, targets, weights) + losses = {"loss_sem_seg": loss * self.loss_weight} + return losses + + +def build_ins_embed_branch(cfg, input_shape): + """ + Build a instance embedding branch from `cfg.MODEL.INS_EMBED_HEAD.NAME`. + """ + name = cfg.MODEL.INS_EMBED_HEAD.NAME + return INS_EMBED_BRANCHES_REGISTRY.get(name)(cfg, input_shape) + + +@INS_EMBED_BRANCHES_REGISTRY.register() +class PanopticDeepLabInsEmbedHead(DeepLabV3PlusHead): + """ + A instance embedding head described in :paper:`Panoptic-DeepLab`. + """ + + @configurable + def __init__( + self, + input_shape: Dict[str, ShapeSpec], + *, + decoder_channels: List[int], + norm: Union[str, Callable], + head_channels: int, + center_loss_weight: float, + offset_loss_weight: float, + **kwargs, + ): + """ + NOTE: this interface is experimental. + + Args: + input_shape (ShapeSpec): shape of the input feature + decoder_channels (list[int]): a list of output channels of each + decoder stage. It should have the same length as "input_shape" + (each element in "input_shape" corresponds to one decoder stage). + norm (str or callable): normalization for all conv layers. + head_channels (int): the output channels of extra convolutions + between decoder and predictor. + center_loss_weight (float): loss weight for center point prediction. + offset_loss_weight (float): loss weight for center offset prediction. + """ + super().__init__(input_shape, decoder_channels=decoder_channels, norm=norm, **kwargs) + assert self.decoder_only + + self.center_loss_weight = center_loss_weight + self.offset_loss_weight = offset_loss_weight + use_bias = norm == "" + # center prediction + # `head` is additional transform before predictor + self.center_head = nn.Sequential( + Conv2d( + decoder_channels[0], + decoder_channels[0], + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, decoder_channels[0]), + activation=F.relu, + ), + Conv2d( + decoder_channels[0], + head_channels, + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, head_channels), + activation=F.relu, + ), + ) + weight_init.c2_xavier_fill(self.center_head[0]) + weight_init.c2_xavier_fill(self.center_head[1]) + self.center_predictor = Conv2d(head_channels, 1, kernel_size=1) + nn.init.normal_(self.center_predictor.weight, 0, 0.001) + nn.init.constant_(self.center_predictor.bias, 0) + + # offset prediction + # `head` is additional transform before predictor + if self.use_depthwise_separable_conv: + # We use a single 5x5 DepthwiseSeparableConv2d to replace + # 2 3x3 Conv2d since they have the same receptive field. + self.offset_head = DepthwiseSeparableConv2d( + decoder_channels[0], + head_channels, + kernel_size=5, + padding=2, + norm1=norm, + activation1=F.relu, + norm2=norm, + activation2=F.relu, + ) + else: + self.offset_head = nn.Sequential( + Conv2d( + decoder_channels[0], + decoder_channels[0], + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, decoder_channels[0]), + activation=F.relu, + ), + Conv2d( + decoder_channels[0], + head_channels, + kernel_size=3, + padding=1, + bias=use_bias, + norm=get_norm(norm, head_channels), + activation=F.relu, + ), + ) + weight_init.c2_xavier_fill(self.offset_head[0]) + weight_init.c2_xavier_fill(self.offset_head[1]) + self.offset_predictor = Conv2d(head_channels, 2, kernel_size=1) + nn.init.normal_(self.offset_predictor.weight, 0, 0.001) + nn.init.constant_(self.offset_predictor.bias, 0) + + self.center_loss = nn.MSELoss(reduction="none") + self.offset_loss = nn.L1Loss(reduction="none") + + @classmethod + def from_config(cls, cfg, input_shape): + if cfg.INPUT.CROP.ENABLED: + assert cfg.INPUT.CROP.TYPE == "absolute" + train_size = cfg.INPUT.CROP.SIZE + else: + train_size = None + decoder_channels = [cfg.MODEL.INS_EMBED_HEAD.CONVS_DIM] * ( + len(cfg.MODEL.INS_EMBED_HEAD.IN_FEATURES) - 1 + ) + [cfg.MODEL.INS_EMBED_HEAD.ASPP_CHANNELS] + ret = dict( + input_shape={ + k: v for k, v in input_shape.items() if k in cfg.MODEL.INS_EMBED_HEAD.IN_FEATURES + }, + project_channels=cfg.MODEL.INS_EMBED_HEAD.PROJECT_CHANNELS, + aspp_dilations=cfg.MODEL.INS_EMBED_HEAD.ASPP_DILATIONS, + aspp_dropout=cfg.MODEL.INS_EMBED_HEAD.ASPP_DROPOUT, + decoder_channels=decoder_channels, + common_stride=cfg.MODEL.INS_EMBED_HEAD.COMMON_STRIDE, + norm=cfg.MODEL.INS_EMBED_HEAD.NORM, + train_size=train_size, + head_channels=cfg.MODEL.INS_EMBED_HEAD.HEAD_CHANNELS, + center_loss_weight=cfg.MODEL.INS_EMBED_HEAD.CENTER_LOSS_WEIGHT, + offset_loss_weight=cfg.MODEL.INS_EMBED_HEAD.OFFSET_LOSS_WEIGHT, + use_depthwise_separable_conv=cfg.MODEL.SEM_SEG_HEAD.USE_DEPTHWISE_SEPARABLE_CONV, + ) + return ret + + def forward( + self, + features, + center_targets=None, + center_weights=None, + offset_targets=None, + offset_weights=None, + ): + """ + Returns: + In training, returns (None, dict of losses) + In inference, returns (CxHxW logits, {}) + """ + center, offset = self.layers(features) + if self.training: + return ( + None, + None, + self.center_losses(center, center_targets, center_weights), + self.offset_losses(offset, offset_targets, offset_weights), + ) + else: + center = F.interpolate( + center, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + offset = ( + F.interpolate( + offset, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + * self.common_stride + ) + return center, offset, {}, {} + + def layers(self, features): + assert self.decoder_only + y = super().layers(features) + # center + center = self.center_head(y) + center = self.center_predictor(center) + # offset + offset = self.offset_head(y) + offset = self.offset_predictor(offset) + return center, offset + + def center_losses(self, predictions, targets, weights): + predictions = F.interpolate( + predictions, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + loss = self.center_loss(predictions, targets) * weights + if weights.sum() > 0: + loss = loss.sum() / weights.sum() + else: + loss = loss.sum() * 0 + losses = {"loss_center": loss * self.center_loss_weight} + return losses + + def offset_losses(self, predictions, targets, weights): + predictions = ( + F.interpolate( + predictions, scale_factor=self.common_stride, mode="bilinear", align_corners=False + ) + * self.common_stride + ) + loss = self.offset_loss(predictions, targets) * weights + if weights.sum() > 0: + loss = loss.sum() / weights.sum() + else: + loss = loss.sum() * 0 + losses = {"loss_offset": loss * self.offset_loss_weight} + return losses diff --git a/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py new file mode 100755 index 0000000..194724e --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/post_processing.py @@ -0,0 +1,234 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# Reference: https://github.com/bowenc0221/panoptic-deeplab/blob/master/segmentation/model/post_processing/instance_post_processing.py # noqa + +from collections import Counter +import torch +import torch.nn.functional as F + + +def find_instance_center(center_heatmap, threshold=0.1, nms_kernel=3, top_k=None): + """ + Find the center points from the center heatmap. + Args: + center_heatmap: A Tensor of shape [1, H, W] of raw center heatmap output. + threshold: A float, threshold applied to center heatmap score. + nms_kernel: An integer, NMS max pooling kernel size. + top_k: An integer, top k centers to keep. + Returns: + A Tensor of shape [K, 2] where K is the number of center points. The + order of second dim is (y, x). + """ + # Thresholding, setting values below threshold to -1. + center_heatmap = F.threshold(center_heatmap, threshold, -1) + + # NMS + nms_padding = (nms_kernel - 1) // 2 + center_heatmap_max_pooled = F.max_pool2d( + center_heatmap, kernel_size=nms_kernel, stride=1, padding=nms_padding + ) + center_heatmap[center_heatmap != center_heatmap_max_pooled] = -1 + + # Squeeze first two dimensions. + center_heatmap = center_heatmap.squeeze() + assert len(center_heatmap.size()) == 2, "Something is wrong with center heatmap dimension." + + # Find non-zero elements. + if top_k is None: + return torch.nonzero(center_heatmap > 0) + else: + # find top k centers. + top_k_scores, _ = torch.topk(torch.flatten(center_heatmap), top_k) + return torch.nonzero(center_heatmap > top_k_scores[-1].clamp_(min=0)) + + +def group_pixels(center_points, offsets): + """ + Gives each pixel in the image an instance id. + Args: + center_points: A Tensor of shape [K, 2] where K is the number of center points. + The order of second dim is (y, x). + offsets: A Tensor of shape [2, H, W] of raw offset output. The order of + second dim is (offset_y, offset_x). + Returns: + A Tensor of shape [1, H, W] with values in range [1, K], which represents + the center this pixel belongs to. + """ + height, width = offsets.size()[1:] + + # Generates a coordinate map, where each location is the coordinate of + # that location. + y_coord, x_coord = torch.meshgrid( + torch.arange(height, dtype=offsets.dtype, device=offsets.device), + torch.arange(width, dtype=offsets.dtype, device=offsets.device), + ) + coord = torch.cat((y_coord.unsqueeze(0), x_coord.unsqueeze(0)), dim=0) + + center_loc = coord + offsets + center_loc = center_loc.flatten(1).T.unsqueeze_(0) # [1, H*W, 2] + center_points = center_points.unsqueeze(1) # [K, 1, 2] + + # Distance: [K, H*W]. + distance = torch.norm(center_points - center_loc, dim=-1) + + # Finds center with minimum distance at each location, offset by 1, to + # reserve id=0 for stuff. + instance_id = torch.argmin(distance, dim=0).reshape((1, height, width)) + 1 + return instance_id + + +def get_instance_segmentation( + sem_seg, center_heatmap, offsets, thing_seg, thing_ids, threshold=0.1, nms_kernel=3, top_k=None +): + """ + Post-processing for instance segmentation, gets class agnostic instance id. + Args: + sem_seg: A Tensor of shape [1, H, W], predicted semantic label. + center_heatmap: A Tensor of shape [1, H, W] of raw center heatmap output. + offsets: A Tensor of shape [2, H, W] of raw offset output. The order of + second dim is (offset_y, offset_x). + thing_seg: A Tensor of shape [1, H, W], predicted foreground mask, + if not provided, inference from semantic prediction. + thing_ids: A set of ids from contiguous category ids belonging + to thing categories. + threshold: A float, threshold applied to center heatmap score. + nms_kernel: An integer, NMS max pooling kernel size. + top_k: An integer, top k centers to keep. + Returns: + A Tensor of shape [1, H, W] with value 0 represent stuff (not instance) + and other positive values represent different instances. + A Tensor of shape [1, K, 2] where K is the number of center points. + The order of second dim is (y, x). + """ + center_points = find_instance_center( + center_heatmap, threshold=threshold, nms_kernel=nms_kernel, top_k=top_k + ) + if center_points.size(0) == 0: + return torch.zeros_like(sem_seg), center_points.unsqueeze(0) + ins_seg = group_pixels(center_points, offsets) + return thing_seg * ins_seg, center_points.unsqueeze(0) + + +def merge_semantic_and_instance( + sem_seg, ins_seg, semantic_thing_seg, label_divisor, thing_ids, stuff_area, void_label +): + """ + Post-processing for panoptic segmentation, by merging semantic segmentation + label and class agnostic instance segmentation label. + Args: + sem_seg: A Tensor of shape [1, H, W], predicted category id for each pixel. + ins_seg: A Tensor of shape [1, H, W], predicted instance id for each pixel. + semantic_thing_seg: A Tensor of shape [1, H, W], predicted foreground mask. + label_divisor: An integer, used to convert panoptic id = + semantic id * label_divisor + instance_id. + thing_ids: Set, a set of ids from contiguous category ids belonging + to thing categories. + stuff_area: An integer, remove stuff whose area is less tan stuff_area. + void_label: An integer, indicates the region has no confident prediction. + Returns: + A Tensor of shape [1, H, W]. + """ + # In case thing mask does not align with semantic prediction. + pan_seg = torch.zeros_like(sem_seg) + void_label + is_thing = (ins_seg > 0) & (semantic_thing_seg > 0) + + # Keep track of instance id for each class. + class_id_tracker = Counter() + + # Paste thing by majority voting. + instance_ids = torch.unique(ins_seg) + for ins_id in instance_ids: + if ins_id == 0: + continue + # Make sure only do majority voting within `semantic_thing_seg`. + thing_mask = (ins_seg == ins_id) & is_thing + if torch.nonzero(thing_mask).size(0) == 0: + continue + class_id, _ = torch.mode(sem_seg[thing_mask].view(-1)) + class_id_tracker[class_id.item()] += 1 + new_ins_id = class_id_tracker[class_id.item()] + pan_seg[thing_mask] = class_id * label_divisor + new_ins_id + + # Paste stuff to unoccupied area. + class_ids = torch.unique(sem_seg) + for class_id in class_ids: + if class_id.item() in thing_ids: + # thing class + continue + # Calculate stuff area. + stuff_mask = (sem_seg == class_id) & (ins_seg == 0) + if stuff_mask.sum().item() >= stuff_area: + pan_seg[stuff_mask] = class_id * label_divisor + + return pan_seg + + +def get_panoptic_segmentation( + sem_seg, + center_heatmap, + offsets, + thing_ids, + label_divisor, + stuff_area, + void_label, + threshold=0.1, + nms_kernel=7, + top_k=200, + foreground_mask=None, +): + """ + Post-processing for panoptic segmentation. + Args: + sem_seg: A Tensor of shape [1, H, W] of predicted semantic label. + center_heatmap: A Tensor of shape [1, H, W] of raw center heatmap output. + offsets: A Tensor of shape [2, H, W] of raw offset output. The order of + second dim is (offset_y, offset_x). + thing_ids: A set of ids from contiguous category ids belonging + to thing categories. + label_divisor: An integer, used to convert panoptic id = + semantic id * label_divisor + instance_id. + stuff_area: An integer, remove stuff whose area is less tan stuff_area. + void_label: An integer, indicates the region has no confident prediction. + threshold: A float, threshold applied to center heatmap score. + nms_kernel: An integer, NMS max pooling kernel size. + top_k: An integer, top k centers to keep. + foreground_mask: Optional, A Tensor of shape [1, H, W] of predicted + binary foreground mask. If not provided, it will be generated from + sem_seg. + Returns: + A Tensor of shape [1, H, W], int64. + """ + if sem_seg.dim() != 3 and sem_seg.size(0) != 1: + raise ValueError("Semantic prediction with un-supported shape: {}.".format(sem_seg.size())) + if center_heatmap.dim() != 3: + raise ValueError( + "Center prediction with un-supported dimension: {}.".format(center_heatmap.dim()) + ) + if offsets.dim() != 3: + raise ValueError("Offset prediction with un-supported dimension: {}.".format(offsets.dim())) + if foreground_mask is not None: + if foreground_mask.dim() != 3 and foreground_mask.size(0) != 1: + raise ValueError( + "Foreground prediction with un-supported shape: {}.".format(sem_seg.size()) + ) + thing_seg = foreground_mask + else: + # inference from semantic segmentation + thing_seg = torch.zeros_like(sem_seg) + for thing_class in list(thing_ids): + thing_seg[sem_seg == thing_class] = 1 + + instance, center = get_instance_segmentation( + sem_seg, + center_heatmap, + offsets, + thing_seg, + thing_ids, + threshold=threshold, + nms_kernel=nms_kernel, + top_k=top_k, + ) + panoptic = merge_semantic_and_instance( + sem_seg, instance, thing_seg, label_divisor, thing_ids, stuff_area, void_label + ) + + return panoptic, center diff --git a/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/target_generator.py b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/target_generator.py new file mode 100755 index 0000000..a575c67 --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/panoptic_deeplab/target_generator.py @@ -0,0 +1,155 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# Reference: https://github.com/bowenc0221/panoptic-deeplab/blob/aa934324b55a34ce95fea143aea1cb7a6dbe04bd/segmentation/data/transforms/target_transforms.py#L11 # noqa +import numpy as np +import torch + + +class PanopticDeepLabTargetGenerator(object): + """ + Generates training targets for Panoptic-DeepLab. + """ + + def __init__( + self, + ignore_label, + thing_ids, + sigma=8, + ignore_stuff_in_offset=False, + small_instance_area=0, + small_instance_weight=1, + ignore_crowd_in_semantic=False, + ): + """ + Args: + ignore_label: Integer, the ignore label for semantic segmentation. + thing_ids: Set, a set of ids from contiguous category ids belonging + to thing categories. + sigma: the sigma for Gaussian kernel. + ignore_stuff_in_offset: Boolean, whether to ignore stuff region when + training the offset branch. + small_instance_area: Integer, indicates largest area for small instances. + small_instance_weight: Integer, indicates semantic loss weights for + small instances. + ignore_crowd_in_semantic: Boolean, whether to ignore crowd region in + semantic segmentation branch, crowd region is ignored in the original + TensorFlow implementation. + """ + self.ignore_label = ignore_label + self.thing_ids = set(thing_ids) + self.ignore_stuff_in_offset = ignore_stuff_in_offset + self.small_instance_area = small_instance_area + self.small_instance_weight = small_instance_weight + self.ignore_crowd_in_semantic = ignore_crowd_in_semantic + + # Generate the default Gaussian image for each center + self.sigma = sigma + size = 6 * sigma + 3 + x = np.arange(0, size, 1, float) + y = x[:, np.newaxis] + x0, y0 = 3 * sigma + 1, 3 * sigma + 1 + self.g = np.exp(-((x - x0) ** 2 + (y - y0) ** 2) / (2 * sigma**2)) + + def __call__(self, panoptic, segments_info): + """Generates the training target. + reference: https://github.com/mcordts/cityscapesScripts/blob/master/cityscapesscripts/preparation/createPanopticImgs.py # noqa + reference: https://github.com/facebookresearch/detectron2/blob/main/datasets/prepare_panoptic_fpn.py#L18 # noqa + + Args: + panoptic: numpy.array, panoptic label, we assume it is already + converted from rgb image by panopticapi.utils.rgb2id. + segments_info (list[dict]): see detectron2 documentation of "Use Custom Datasets". + + Returns: + A dictionary with fields: + - sem_seg: Tensor, semantic label, shape=(H, W). + - center: Tensor, center heatmap, shape=(H, W). + - center_points: List, center coordinates, with tuple + (y-coord, x-coord). + - offset: Tensor, offset, shape=(2, H, W), first dim is + (offset_y, offset_x). + - sem_seg_weights: Tensor, loss weight for semantic prediction, + shape=(H, W). + - center_weights: Tensor, ignore region of center prediction, + shape=(H, W), used as weights for center regression 0 is + ignore, 1 is has instance. Multiply this mask to loss. + - offset_weights: Tensor, ignore region of offset prediction, + shape=(H, W), used as weights for offset regression 0 is + ignore, 1 is has instance. Multiply this mask to loss. + """ + height, width = panoptic.shape[0], panoptic.shape[1] + semantic = np.zeros_like(panoptic, dtype=np.uint8) + self.ignore_label + center = np.zeros((height, width), dtype=np.float32) + center_pts = [] + offset = np.zeros((2, height, width), dtype=np.float32) + y_coord, x_coord = np.meshgrid( + np.arange(height, dtype=np.float32), np.arange(width, dtype=np.float32), indexing="ij" + ) + # Generate pixel-wise loss weights + semantic_weights = np.ones_like(panoptic, dtype=np.uint8) + # 0: ignore, 1: has instance + # three conditions for a region to be ignored for instance branches: + # (1) It is labeled as `ignore_label` + # (2) It is crowd region (iscrowd=1) + # (3) (Optional) It is stuff region (for offset branch) + center_weights = np.zeros_like(panoptic, dtype=np.uint8) + offset_weights = np.zeros_like(panoptic, dtype=np.uint8) + for seg in segments_info: + cat_id = seg["category_id"] + if not (self.ignore_crowd_in_semantic and seg["iscrowd"]): + semantic[panoptic == seg["id"]] = cat_id + if not seg["iscrowd"]: + # Ignored regions are not in `segments_info`. + # Handle crowd region. + center_weights[panoptic == seg["id"]] = 1 + if not self.ignore_stuff_in_offset or cat_id in self.thing_ids: + offset_weights[panoptic == seg["id"]] = 1 + if cat_id in self.thing_ids: + # find instance center + mask_index = np.where(panoptic == seg["id"]) + if len(mask_index[0]) == 0: + # the instance is completely cropped + continue + + # Find instance area + ins_area = len(mask_index[0]) + if ins_area < self.small_instance_area: + semantic_weights[panoptic == seg["id"]] = self.small_instance_weight + + center_y, center_x = np.mean(mask_index[0]), np.mean(mask_index[1]) + center_pts.append([center_y, center_x]) + + # generate center heatmap + y, x = int(round(center_y)), int(round(center_x)) + sigma = self.sigma + # upper left + ul = int(np.round(x - 3 * sigma - 1)), int(np.round(y - 3 * sigma - 1)) + # bottom right + br = int(np.round(x + 3 * sigma + 2)), int(np.round(y + 3 * sigma + 2)) + + # start and end indices in default Gaussian image + gaussian_x0, gaussian_x1 = max(0, -ul[0]), min(br[0], width) - ul[0] + gaussian_y0, gaussian_y1 = max(0, -ul[1]), min(br[1], height) - ul[1] + + # start and end indices in center heatmap image + center_x0, center_x1 = max(0, ul[0]), min(br[0], width) + center_y0, center_y1 = max(0, ul[1]), min(br[1], height) + center[center_y0:center_y1, center_x0:center_x1] = np.maximum( + center[center_y0:center_y1, center_x0:center_x1], + self.g[gaussian_y0:gaussian_y1, gaussian_x0:gaussian_x1], + ) + + # generate offset (2, h, w) -> (y-dir, x-dir) + offset[0][mask_index] = center_y - y_coord[mask_index] + offset[1][mask_index] = center_x - x_coord[mask_index] + + center_weights = center_weights[None] + offset_weights = offset_weights[None] + return dict( + sem_seg=torch.as_tensor(semantic.astype("long")), + center=torch.as_tensor(center.astype(np.float32)), + center_points=center_pts, + offset=torch.as_tensor(offset.astype(np.float32)), + sem_seg_weights=torch.as_tensor(semantic_weights.astype(np.float32)), + center_weights=torch.as_tensor(center_weights.astype(np.float32)), + offset_weights=torch.as_tensor(offset_weights.astype(np.float32)), + ) diff --git a/detectron2/projects/Panoptic-DeepLab/train_net.py b/detectron2/projects/Panoptic-DeepLab/train_net.py new file mode 100755 index 0000000..780764f --- /dev/null +++ b/detectron2/projects/Panoptic-DeepLab/train_net.py @@ -0,0 +1,171 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +Panoptic-DeepLab Training Script. +This script is a simplified version of the training script in detectron2/tools. +""" + +import os +import torch + +import detectron2.data.transforms as T +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import MetadataCatalog, build_detection_train_loader +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch +from detectron2.evaluation import ( + CityscapesInstanceEvaluator, + CityscapesSemSegEvaluator, + COCOEvaluator, + COCOPanopticEvaluator, + DatasetEvaluators, +) +from detectron2.projects.deeplab import build_lr_scheduler +from detectron2.projects.panoptic_deeplab import ( + PanopticDeeplabDatasetMapper, + add_panoptic_deeplab_config, +) +from detectron2.solver import get_default_optimizer_params +from detectron2.solver.build import maybe_add_gradient_clipping + + +def build_sem_seg_train_aug(cfg): + augs = [ + T.ResizeShortestEdge( + cfg.INPUT.MIN_SIZE_TRAIN, cfg.INPUT.MAX_SIZE_TRAIN, cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING + ) + ] + if cfg.INPUT.CROP.ENABLED: + augs.append(T.RandomCrop(cfg.INPUT.CROP.TYPE, cfg.INPUT.CROP.SIZE)) + augs.append(T.RandomFlip()) + return augs + + +class Trainer(DefaultTrainer): + """ + We use the "DefaultTrainer" which contains a number pre-defined logic for + standard training workflow. They may not work for you, especially if you + are working on a new research project. In that case you can use the cleaner + "SimpleTrainer", or write your own training loop. + """ + + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if cfg.MODEL.PANOPTIC_DEEPLAB.BENCHMARK_NETWORK_SPEED: + return None + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type in ["cityscapes_panoptic_seg", "coco_panoptic_seg"]: + evaluator_list.append(COCOPanopticEvaluator(dataset_name, output_folder)) + if evaluator_type == "cityscapes_panoptic_seg": + evaluator_list.append(CityscapesSemSegEvaluator(dataset_name)) + evaluator_list.append(CityscapesInstanceEvaluator(dataset_name)) + if evaluator_type == "coco_panoptic_seg": + # `thing_classes` in COCO panoptic metadata includes both thing and + # stuff classes for visualization. COCOEvaluator requires metadata + # which only contains thing classes, thus we map the name of + # panoptic datasets to their corresponding instance datasets. + dataset_name_mapper = { + "coco_2017_val_panoptic": "coco_2017_val", + "coco_2017_val_100_panoptic": "coco_2017_val_100", + } + evaluator_list.append( + COCOEvaluator(dataset_name_mapper[dataset_name], output_dir=output_folder) + ) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format( + dataset_name, evaluator_type + ) + ) + elif len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + @classmethod + def build_train_loader(cls, cfg): + mapper = PanopticDeeplabDatasetMapper(cfg, augmentations=build_sem_seg_train_aug(cfg)) + return build_detection_train_loader(cfg, mapper=mapper) + + @classmethod + def build_lr_scheduler(cls, cfg, optimizer): + """ + It now calls :func:`detectron2.solver.build_lr_scheduler`. + Overwrite it if you'd like a different scheduler. + """ + return build_lr_scheduler(cfg, optimizer) + + @classmethod + def build_optimizer(cls, cfg, model): + """ + Build an optimizer from config. + """ + params = get_default_optimizer_params( + model, + weight_decay=cfg.SOLVER.WEIGHT_DECAY, + weight_decay_norm=cfg.SOLVER.WEIGHT_DECAY_NORM, + ) + + optimizer_type = cfg.SOLVER.OPTIMIZER + if optimizer_type == "SGD": + return maybe_add_gradient_clipping(cfg, torch.optim.SGD)( + params, + cfg.SOLVER.BASE_LR, + momentum=cfg.SOLVER.MOMENTUM, + nesterov=cfg.SOLVER.NESTEROV, + ) + elif optimizer_type == "ADAM": + return maybe_add_gradient_clipping(cfg, torch.optim.Adam)(params, cfg.SOLVER.BASE_LR) + else: + raise NotImplementedError(f"no optimizer type {optimizer_type}") + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + add_panoptic_deeplab_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + return res + + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/projects/PointRend/README.md b/detectron2/projects/PointRend/README.md new file mode 100755 index 0000000..79d75d5 --- /dev/null +++ b/detectron2/projects/PointRend/README.md @@ -0,0 +1,167 @@ +# PointRend: Image Segmentation as Rendering + +Alexander Kirillov, Yuxin Wu, Kaiming He, Ross Girshick + +[[`arXiv`](https://arxiv.org/abs/1912.08193)] [[`BibTeX`](#CitingPointRend)] + +
+ +

+ +In this repository, we release code for PointRend in Detectron2. PointRend can be flexibly applied to both instance and semantic segmentation tasks by building on top of existing state-of-the-art models. + +## Quick start and visualization + +This [Colab Notebook](https://colab.research.google.com/drive/1isGPL5h5_cKoPPhVL9XhMokRtHDvmMVL) tutorial contains examples of PointRend usage and visualizations of its point sampling stages. + +## Training + +To train a model with 8 GPUs run: +```bash +cd /path/to/detectron2/projects/PointRend +python train_net.py --config-file configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_coco.yaml --num-gpus 8 +``` + +## Evaluation + +Model evaluation can be done similarly: +```bash +cd /path/to/detectron2/projects/PointRend +python train_net.py --config-file configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_coco.yaml --eval-only MODEL.WEIGHTS /path/to/model_checkpoint +``` + +# Pretrained Models + +## Instance Segmentation +#### COCO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Mask
head
Backbonelr
sched
Output
resolution
mask
AP
mask
AP*
model iddownload
PointRendR50-FPN224×22436.239.7164254221model | metrics
PointRendR50-FPN224×22438.341.6164955410model | metrics
PointRendR101-FPN224×22440.143.8model | metrics
PointRendX101-FPN224×22441.144.7model | metrics
+ +AP* is COCO mask AP evaluated against the higher-quality LVIS annotations; see the paper for details. +Run `python detectron2/datasets/prepare_cocofied_lvis.py` to prepare GT files for AP* evaluation. +Since LVIS annotations are not exhaustive, `lvis-api` and not `cocoapi` should be used to evaluate AP*. + +#### Cityscapes +Cityscapes model is trained with ImageNet pretraining. + + + + + + + + + + + + + + + + + + + + +
Mask
head
Backbonelr
sched
Output
resolution
mask
AP
model iddownload
PointRendR50-FPN224×22435.9164255101model | metrics
+ + +## Semantic Segmentation + +#### Cityscapes +Cityscapes model is trained with ImageNet pretraining. + + + + + + + + + + + + + + + + + + +
MethodBackboneOutput
resolution
mIoUmodel iddownload
SemanticFPN + PointRendR101-FPN1024×204878.9202576688model | metrics
+ +## Citing PointRend + +If you use PointRend, please use the following BibTeX entry. + +```BibTeX +@InProceedings{kirillov2019pointrend, + title={{PointRend}: Image Segmentation as Rendering}, + author={Alexander Kirillov and Yuxin Wu and Kaiming He and Ross Girshick}, + journal={ArXiv:1912.08193}, + year={2019} +} +``` + +## Citing Implicit PointRend + +If you use Implicit PointRend, please use the following BibTeX entry. + +```BibTeX +@InProceedings{cheng2021pointly, + title={Pointly-Supervised Instance Segmentation, + author={Bowen Cheng and Omkar Parkhi and Alexander Kirillov}, + journal={ArXiv}, + year={2021} +} +``` diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/Base-Implicit-PointRend.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/Base-Implicit-PointRend.yaml new file mode 100755 index 0000000..5ebafb3 --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/Base-Implicit-PointRend.yaml @@ -0,0 +1,25 @@ +_BASE_: "../../../../configs/Base-RCNN-FPN.yaml" +MODEL: + MASK_ON: true + ROI_MASK_HEAD: + NAME: "ImplicitPointRendMaskHead" + POOLER_TYPE: "" # No RoI pooling, let the head process image features directly + FC_DIM: 1024 + NUM_FC: 2 + POINT_HEAD: + NAME: "ImplicitPointHead" + FC_DIM: 256 + NUM_FC: 3 + IN_FEATURES: ["p2"] + NUM_CLASSES: 80 + CLS_AGNOSTIC_MASK: False + TRAIN_NUM_POINTS: 196 + SUBDIVISION_STEPS: 3 + SUBDIVISION_NUM_POINTS: 784 + IMPLICIT_POINTREND: + IMAGE_FEATURE_ENABLED: True + POS_ENC_ENABLED: True + PARAMS_L2_REGULARIZER: 0.00001 +INPUT: + # PointRend for instance segmentation does not work with "polygon" mask_format. + MASK_FORMAT: "bitmask" diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/Base-PointRend-RCNN-FPN.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/Base-PointRend-RCNN-FPN.yaml new file mode 100755 index 0000000..e68e707 --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/Base-PointRend-RCNN-FPN.yaml @@ -0,0 +1,20 @@ +_BASE_: "../../../../configs/Base-RCNN-FPN.yaml" +MODEL: + MASK_ON: true + ROI_BOX_HEAD: + TRAIN_ON_PRED_BOXES: True + ROI_MASK_HEAD: + POOLER_TYPE: "" # No RoI pooling, let the head process image features directly + NAME: "PointRendMaskHead" + FC_DIM: 1024 + NUM_FC: 2 + OUTPUT_SIDE_RESOLUTION: 7 + IN_FEATURES: ["p2"] # for the coarse mask head + POINT_HEAD_ON: True + POINT_HEAD: + FC_DIM: 256 + NUM_FC: 3 + IN_FEATURES: ["p2"] +INPUT: + # PointRend for instance segmentation does not work with "polygon" mask_format. + MASK_FORMAT: "bitmask" diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_1x_coco.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_1x_coco.yaml new file mode 100755 index 0000000..ba35c24 --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_1x_coco.yaml @@ -0,0 +1,8 @@ +_BASE_: "Base-Implicit-PointRend.yaml" +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-50.pkl + RESNETS: + DEPTH: 50 +# To add COCO AP evaluation against the higher-quality LVIS annotations. +# DATASETS: +# TEST: ("coco_2017_val", "lvis_v0.5_val_cocofied") diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_3x_coco.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_3x_coco.yaml new file mode 100755 index 0000000..884236d --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_3x_coco.yaml @@ -0,0 +1,11 @@ +_BASE_: "Base-Implicit-PointRend.yaml" +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-50.pkl + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +# To add COCO AP evaluation against the higher-quality LVIS annotations. +# DATASETS: +# TEST: ("coco_2017_val", "lvis_v0.5_val_cocofied") diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_101_FPN_3x_coco.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_101_FPN_3x_coco.yaml new file mode 100755 index 0000000..4269130 --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_101_FPN_3x_coco.yaml @@ -0,0 +1,12 @@ +_BASE_: Base-PointRend-RCNN-FPN.yaml +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-101.pkl + MASK_ON: true + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +# To add COCO AP evaluation against the higher-quality LVIS annotations. +# DATASETS: +# TEST: ("coco_2017_val", "lvis_v0.5_val_cocofied") diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_cityscapes.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_cityscapes.yaml new file mode 100755 index 0000000..0402d6d --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_cityscapes.yaml @@ -0,0 +1,22 @@ +_BASE_: Base-PointRend-RCNN-FPN.yaml +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-50.pkl + RESNETS: + DEPTH: 50 + ROI_HEADS: + NUM_CLASSES: 8 + POINT_HEAD: + NUM_CLASSES: 8 +DATASETS: + TEST: ("cityscapes_fine_instance_seg_val",) + TRAIN: ("cityscapes_fine_instance_seg_train",) +SOLVER: + BASE_LR: 0.01 + IMS_PER_BATCH: 8 + MAX_ITER: 24000 + STEPS: (18000,) +INPUT: + MAX_SIZE_TEST: 2048 + MAX_SIZE_TRAIN: 2048 + MIN_SIZE_TEST: 1024 + MIN_SIZE_TRAIN: (800, 832, 864, 896, 928, 960, 992, 1024) diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_coco.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_coco.yaml new file mode 100755 index 0000000..0249b49 --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_1x_coco.yaml @@ -0,0 +1,8 @@ +_BASE_: Base-PointRend-RCNN-FPN.yaml +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-50.pkl + RESNETS: + DEPTH: 50 +# To add COCO AP evaluation against the higher-quality LVIS annotations. +# DATASETS: +# TEST: ("coco_2017_val", "lvis_v0.5_val_cocofied") diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_3x_coco.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_3x_coco.yaml new file mode 100755 index 0000000..a571b4c --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_R_50_FPN_3x_coco.yaml @@ -0,0 +1,12 @@ +_BASE_: Base-PointRend-RCNN-FPN.yaml +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-50.pkl + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +# To add COCO AP evaluation against the higher-quality LVIS annotations. +# DATASETS: +# TEST: ("coco_2017_val", "lvis_v0.5_val_cocofied") + diff --git a/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_X_101_32x8d_FPN_3x_coco.yaml b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_X_101_32x8d_FPN_3x_coco.yaml new file mode 100755 index 0000000..85d26f3 --- /dev/null +++ b/detectron2/projects/PointRend/configs/InstanceSegmentation/pointrend_rcnn_X_101_32x8d_FPN_3x_coco.yaml @@ -0,0 +1,16 @@ +_BASE_: Base-PointRend-RCNN-FPN.yaml +MODEL: + MASK_ON: True + WEIGHTS: "detectron2://ImageNetPretrained/FAIR/X-101-32x8d.pkl" + PIXEL_STD: [57.375, 57.120, 58.395] + RESNETS: + STRIDE_IN_1X1: False # this is a C2 model + NUM_GROUPS: 32 + WIDTH_PER_GROUP: 8 + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 +# To add COCO AP evaluation against the higher-quality LVIS annotations. +# DATASETS: +# TEST: ("coco_2017_val", "lvis_v0.5_val_cocofied") diff --git a/detectron2/projects/PointRend/configs/SemanticSegmentation/Base-PointRend-Semantic-FPN.yaml b/detectron2/projects/PointRend/configs/SemanticSegmentation/Base-PointRend-Semantic-FPN.yaml new file mode 100755 index 0000000..9b7a1b4 --- /dev/null +++ b/detectron2/projects/PointRend/configs/SemanticSegmentation/Base-PointRend-Semantic-FPN.yaml @@ -0,0 +1,20 @@ +_BASE_: "../../../../configs/Base-RCNN-FPN.yaml" +MODEL: + META_ARCHITECTURE: "SemanticSegmentor" + BACKBONE: + FREEZE_AT: 0 + SEM_SEG_HEAD: + NAME: "PointRendSemSegHead" + POINT_HEAD: + NUM_CLASSES: 54 + FC_DIM: 256 + NUM_FC: 3 + IN_FEATURES: ["p2"] + TRAIN_NUM_POINTS: 1024 + SUBDIVISION_STEPS: 2 + SUBDIVISION_NUM_POINTS: 8192 + COARSE_SEM_SEG_HEAD_NAME: "SemSegFPNHead" + COARSE_PRED_EACH_LAYER: False +DATASETS: + TRAIN: ("coco_2017_train_panoptic_stuffonly",) + TEST: ("coco_2017_val_panoptic_stuffonly",) diff --git a/detectron2/projects/PointRend/configs/SemanticSegmentation/pointrend_semantic_R_101_FPN_1x_cityscapes.yaml b/detectron2/projects/PointRend/configs/SemanticSegmentation/pointrend_semantic_R_101_FPN_1x_cityscapes.yaml new file mode 100755 index 0000000..6be11fa --- /dev/null +++ b/detectron2/projects/PointRend/configs/SemanticSegmentation/pointrend_semantic_R_101_FPN_1x_cityscapes.yaml @@ -0,0 +1,33 @@ +_BASE_: Base-PointRend-Semantic-FPN.yaml +MODEL: + WEIGHTS: detectron2://ImageNetPretrained/MSRA/R-101.pkl + RESNETS: + DEPTH: 101 + SEM_SEG_HEAD: + NUM_CLASSES: 19 + POINT_HEAD: + NUM_CLASSES: 19 + TRAIN_NUM_POINTS: 2048 + SUBDIVISION_NUM_POINTS: 8192 +DATASETS: + TRAIN: ("cityscapes_fine_sem_seg_train",) + TEST: ("cityscapes_fine_sem_seg_val",) +SOLVER: + BASE_LR: 0.01 + STEPS: (40000, 55000) + MAX_ITER: 65000 + IMS_PER_BATCH: 32 +INPUT: + MIN_SIZE_TRAIN: (512, 768, 1024, 1280, 1536, 1792, 2048) + MIN_SIZE_TRAIN_SAMPLING: "choice" + MIN_SIZE_TEST: 1024 + MAX_SIZE_TRAIN: 4096 + MAX_SIZE_TEST: 2048 + CROP: + ENABLED: True + TYPE: "absolute" + SIZE: (512, 1024) + SINGLE_CATEGORY_MAX_AREA: 0.75 + COLOR_AUG_SSD: True +DATALOADER: + NUM_WORKERS: 10 diff --git a/detectron2/projects/PointRend/point_rend/__init__.py b/detectron2/projects/PointRend/point_rend/__init__.py new file mode 100755 index 0000000..e3050cb --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/__init__.py @@ -0,0 +1,7 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .config import add_pointrend_config +from .mask_head import PointRendMaskHead, ImplicitPointRendMaskHead +from .semantic_seg import PointRendSemSegHead +from .color_augmentation import ColorAugSSDTransform + +from . import roi_heads as _ # only registration diff --git a/detectron2/projects/PointRend/point_rend/color_augmentation.py b/detectron2/projects/PointRend/point_rend/color_augmentation.py new file mode 100755 index 0000000..cdcb051 --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/color_augmentation.py @@ -0,0 +1,98 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import random +import cv2 +from fvcore.transforms.transform import Transform + + +class ColorAugSSDTransform(Transform): + """ + A color related data augmentation used in Single Shot Multibox Detector (SSD). + + Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, + Scott Reed, Cheng-Yang Fu, Alexander C. Berg. + SSD: Single Shot MultiBox Detector. ECCV 2016. + + Implementation based on: + + https://github.com/weiliu89/caffe/blob + /4817bf8b4200b35ada8ed0dc378dceaf38c539e4 + /src/caffe/util/im_transforms.cpp + + https://github.com/chainer/chainercv/blob + /7159616642e0be7c5b3ef380b848e16b7e99355b/chainercv + /links/model/ssd/transforms.py + """ + + def __init__( + self, + img_format, + brightness_delta=32, + contrast_low=0.5, + contrast_high=1.5, + saturation_low=0.5, + saturation_high=1.5, + hue_delta=18, + ): + super().__init__() + assert img_format in ["BGR", "RGB"] + self.is_rgb = img_format == "RGB" + del img_format + self._set_attributes(locals()) + + def apply_coords(self, coords): + return coords + + def apply_segmentation(self, segmentation): + return segmentation + + def apply_image(self, img, interp=None): + if self.is_rgb: + img = img[:, :, [2, 1, 0]] + img = self.brightness(img) + if random.randrange(2): + img = self.contrast(img) + img = self.saturation(img) + img = self.hue(img) + else: + img = self.saturation(img) + img = self.hue(img) + img = self.contrast(img) + if self.is_rgb: + img = img[:, :, [2, 1, 0]] + return img + + def convert(self, img, alpha=1, beta=0): + img = img.astype(np.float32) * alpha + beta + img = np.clip(img, 0, 255) + return img.astype(np.uint8) + + def brightness(self, img): + if random.randrange(2): + return self.convert( + img, beta=random.uniform(-self.brightness_delta, self.brightness_delta) + ) + return img + + def contrast(self, img): + if random.randrange(2): + return self.convert(img, alpha=random.uniform(self.contrast_low, self.contrast_high)) + return img + + def saturation(self, img): + if random.randrange(2): + img = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) + img[:, :, 1] = self.convert( + img[:, :, 1], alpha=random.uniform(self.saturation_low, self.saturation_high) + ) + return cv2.cvtColor(img, cv2.COLOR_HSV2BGR) + return img + + def hue(self, img): + if random.randrange(2): + img = cv2.cvtColor(img, cv2.COLOR_BGR2HSV) + img[:, :, 0] = ( + img[:, :, 0].astype(int) + random.randint(-self.hue_delta, self.hue_delta) + ) % 180 + return cv2.cvtColor(img, cv2.COLOR_HSV2BGR) + return img diff --git a/detectron2/projects/PointRend/point_rend/config.py b/detectron2/projects/PointRend/point_rend/config.py new file mode 100755 index 0000000..a02c782 --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/config.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.config import CfgNode as CN + + +def add_pointrend_config(cfg): + """ + Add config for PointRend. + """ + # We retry random cropping until no single category in semantic segmentation GT occupies more + # than `SINGLE_CATEGORY_MAX_AREA` part of the crop. + cfg.INPUT.CROP.SINGLE_CATEGORY_MAX_AREA = 1.0 + # Color augmentatition from SSD paper for semantic segmentation model during training. + cfg.INPUT.COLOR_AUG_SSD = False + + # Names of the input feature maps to be used by a coarse mask head. + cfg.MODEL.ROI_MASK_HEAD.IN_FEATURES = ("p2",) + cfg.MODEL.ROI_MASK_HEAD.FC_DIM = 1024 + cfg.MODEL.ROI_MASK_HEAD.NUM_FC = 2 + # The side size of a coarse mask head prediction. + cfg.MODEL.ROI_MASK_HEAD.OUTPUT_SIDE_RESOLUTION = 7 + # True if point head is used. + cfg.MODEL.ROI_MASK_HEAD.POINT_HEAD_ON = False + + cfg.MODEL.POINT_HEAD = CN() + cfg.MODEL.POINT_HEAD.NAME = "StandardPointHead" + cfg.MODEL.POINT_HEAD.NUM_CLASSES = 80 + # Names of the input feature maps to be used by a mask point head. + cfg.MODEL.POINT_HEAD.IN_FEATURES = ("p2",) + # Number of points sampled during training for a mask point head. + cfg.MODEL.POINT_HEAD.TRAIN_NUM_POINTS = 14 * 14 + # Oversampling parameter for PointRend point sampling during training. Parameter `k` in the + # original paper. + cfg.MODEL.POINT_HEAD.OVERSAMPLE_RATIO = 3 + # Importance sampling parameter for PointRend point sampling during training. Parametr `beta` in + # the original paper. + cfg.MODEL.POINT_HEAD.IMPORTANCE_SAMPLE_RATIO = 0.75 + # Number of subdivision steps during inference. + cfg.MODEL.POINT_HEAD.SUBDIVISION_STEPS = 5 + # Maximum number of points selected at each subdivision step (N). + cfg.MODEL.POINT_HEAD.SUBDIVISION_NUM_POINTS = 28 * 28 + cfg.MODEL.POINT_HEAD.FC_DIM = 256 + cfg.MODEL.POINT_HEAD.NUM_FC = 3 + cfg.MODEL.POINT_HEAD.CLS_AGNOSTIC_MASK = False + # If True, then coarse prediction features are used as inout for each layer in PointRend's MLP. + cfg.MODEL.POINT_HEAD.COARSE_PRED_EACH_LAYER = True + cfg.MODEL.POINT_HEAD.COARSE_SEM_SEG_HEAD_NAME = "SemSegFPNHead" + + """ + Add config for Implicit PointRend. + """ + cfg.MODEL.IMPLICIT_POINTREND = CN() + + cfg.MODEL.IMPLICIT_POINTREND.IMAGE_FEATURE_ENABLED = True + cfg.MODEL.IMPLICIT_POINTREND.POS_ENC_ENABLED = True + + cfg.MODEL.IMPLICIT_POINTREND.PARAMS_L2_REGULARIZER = 0.00001 diff --git a/detectron2/projects/PointRend/point_rend/mask_head.py b/detectron2/projects/PointRend/point_rend/mask_head.py new file mode 100755 index 0000000..46dd647 --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/mask_head.py @@ -0,0 +1,435 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import math +import numpy as np +from typing import Dict, List, Tuple +import fvcore.nn.weight_init as weight_init +import torch +from torch import Tensor, nn +from torch.nn import functional as F + +from detectron2.config import configurable +from detectron2.layers import Conv2d, ShapeSpec, cat, interpolate +from detectron2.modeling import ROI_MASK_HEAD_REGISTRY +from detectron2.modeling.roi_heads.mask_head import mask_rcnn_inference, mask_rcnn_loss +from detectron2.structures import Boxes + +from .point_features import ( + generate_regular_grid_point_coords, + get_point_coords_wrt_image, + get_uncertain_point_coords_on_grid, + get_uncertain_point_coords_with_randomness, + point_sample, + point_sample_fine_grained_features, + sample_point_labels, +) +from .point_head import build_point_head, roi_mask_point_loss + + +def calculate_uncertainty(logits, classes): + """ + We estimate uncerainty as L1 distance between 0.0 and the logit prediction in 'logits' for the + foreground class in `classes`. + Args: + logits (Tensor): A tensor of shape (R, C, ...) or (R, 1, ...) for class-specific or + class-agnostic, where R is the total number of predicted masks in all images and C is + the number of foreground classes. The values are logits. + classes (list): A list of length R that contains either predicted of ground truth class + for eash predicted mask. + Returns: + scores (Tensor): A tensor of shape (R, 1, ...) that contains uncertainty scores with + the most uncertain locations having the highest uncertainty score. + """ + if logits.shape[1] == 1: + gt_class_logits = logits.clone() + else: + gt_class_logits = logits[ + torch.arange(logits.shape[0], device=logits.device), classes + ].unsqueeze(1) + return -(torch.abs(gt_class_logits)) + + +class ConvFCHead(nn.Module): + """ + A mask head with fully connected layers. Given pooled features it first reduces channels and + spatial dimensions with conv layers and then uses FC layers to predict coarse masks analogously + to the standard box head. + """ + + _version = 2 + + @configurable + def __init__( + self, input_shape: ShapeSpec, *, conv_dim: int, fc_dims: List[int], output_shape: Tuple[int] + ): + """ + Args: + conv_dim: the output dimension of the conv layers + fc_dims: a list of N>0 integers representing the output dimensions of N FC layers + output_shape: shape of the output mask prediction + """ + super().__init__() + + # fmt: off + input_channels = input_shape.channels + input_h = input_shape.height + input_w = input_shape.width + self.output_shape = output_shape + # fmt: on + + self.conv_layers = [] + if input_channels > conv_dim: + self.reduce_channel_dim_conv = Conv2d( + input_channels, + conv_dim, + kernel_size=1, + stride=1, + padding=0, + bias=True, + activation=F.relu, + ) + self.conv_layers.append(self.reduce_channel_dim_conv) + + self.reduce_spatial_dim_conv = Conv2d( + conv_dim, conv_dim, kernel_size=2, stride=2, padding=0, bias=True, activation=F.relu + ) + self.conv_layers.append(self.reduce_spatial_dim_conv) + + input_dim = conv_dim * input_h * input_w + input_dim //= 4 + + self.fcs = [] + for k, fc_dim in enumerate(fc_dims): + fc = nn.Linear(input_dim, fc_dim) + self.add_module("fc{}".format(k + 1), fc) + self.fcs.append(fc) + input_dim = fc_dim + + output_dim = int(np.prod(self.output_shape)) + + self.prediction = nn.Linear(fc_dims[-1], output_dim) + # use normal distribution initialization for mask prediction layer + nn.init.normal_(self.prediction.weight, std=0.001) + nn.init.constant_(self.prediction.bias, 0) + + for layer in self.conv_layers: + weight_init.c2_msra_fill(layer) + for layer in self.fcs: + weight_init.c2_xavier_fill(layer) + + @classmethod + def from_config(cls, cfg, input_shape): + output_shape = ( + cfg.MODEL.ROI_HEADS.NUM_CLASSES, + cfg.MODEL.ROI_MASK_HEAD.OUTPUT_SIDE_RESOLUTION, + cfg.MODEL.ROI_MASK_HEAD.OUTPUT_SIDE_RESOLUTION, + ) + fc_dim = cfg.MODEL.ROI_MASK_HEAD.FC_DIM + num_fc = cfg.MODEL.ROI_MASK_HEAD.NUM_FC + ret = dict( + input_shape=input_shape, + conv_dim=cfg.MODEL.ROI_MASK_HEAD.CONV_DIM, + fc_dims=[fc_dim] * num_fc, + output_shape=output_shape, + ) + return ret + + def forward(self, x): + N = x.shape[0] + for layer in self.conv_layers: + x = layer(x) + x = torch.flatten(x, start_dim=1) + for layer in self.fcs: + x = F.relu(layer(x)) + output_shape = [N] + list(self.output_shape) + return self.prediction(x).view(*output_shape) + + def _load_from_state_dict( + self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs + ): + version = local_metadata.get("version", None) + + if version is None or version < 2: + logger = logging.getLogger(__name__) + logger.warning( + "Weight format of PointRend models have changed! " + "Applying automatic conversion now ..." + ) + for k in list(state_dict.keys()): + newk = k + if k.startswith(prefix + "coarse_mask_fc"): + newk = k.replace(prefix + "coarse_mask_fc", prefix + "fc") + if newk != k: + state_dict[newk] = state_dict[k] + del state_dict[k] + + +@ROI_MASK_HEAD_REGISTRY.register() +class PointRendMaskHead(nn.Module): + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + self._feature_scales = {k: 1.0 / v.stride for k, v in input_shape.items()} + # point head + self._init_point_head(cfg, input_shape) + # coarse mask head + self.roi_pooler_in_features = cfg.MODEL.ROI_MASK_HEAD.IN_FEATURES + self.roi_pooler_size = cfg.MODEL.ROI_MASK_HEAD.POOLER_RESOLUTION + self._feature_scales = {k: 1.0 / v.stride for k, v in input_shape.items()} + in_channels = np.sum([input_shape[f].channels for f in self.roi_pooler_in_features]) + self._init_roi_head( + cfg, + ShapeSpec( + channels=in_channels, + width=self.roi_pooler_size, + height=self.roi_pooler_size, + ), + ) + + def _init_roi_head(self, cfg, input_shape): + self.coarse_head = ConvFCHead(cfg, input_shape) + + def _init_point_head(self, cfg, input_shape): + # fmt: off + self.mask_point_on = cfg.MODEL.ROI_MASK_HEAD.POINT_HEAD_ON + if not self.mask_point_on: + return + assert cfg.MODEL.ROI_HEADS.NUM_CLASSES == cfg.MODEL.POINT_HEAD.NUM_CLASSES + self.mask_point_in_features = cfg.MODEL.POINT_HEAD.IN_FEATURES + self.mask_point_train_num_points = cfg.MODEL.POINT_HEAD.TRAIN_NUM_POINTS + self.mask_point_oversample_ratio = cfg.MODEL.POINT_HEAD.OVERSAMPLE_RATIO + self.mask_point_importance_sample_ratio = cfg.MODEL.POINT_HEAD.IMPORTANCE_SAMPLE_RATIO + # next three parameters are use in the adaptive subdivions inference procedure + self.mask_point_subdivision_init_resolution = cfg.MODEL.ROI_MASK_HEAD.OUTPUT_SIDE_RESOLUTION + self.mask_point_subdivision_steps = cfg.MODEL.POINT_HEAD.SUBDIVISION_STEPS + self.mask_point_subdivision_num_points = cfg.MODEL.POINT_HEAD.SUBDIVISION_NUM_POINTS + # fmt: on + + in_channels = int(np.sum([input_shape[f].channels for f in self.mask_point_in_features])) + self.point_head = build_point_head(cfg, ShapeSpec(channels=in_channels, width=1, height=1)) + + # An optimization to skip unused subdivision steps: if after subdivision, all pixels on + # the mask will be selected and recomputed anyway, we should just double our init_resolution + while ( + 4 * self.mask_point_subdivision_init_resolution**2 + <= self.mask_point_subdivision_num_points + ): + self.mask_point_subdivision_init_resolution *= 2 + self.mask_point_subdivision_steps -= 1 + + def forward(self, features, instances): + """ + Args: + features (dict[str, Tensor]): a dict of image-level features + instances (list[Instances]): proposals in training; detected + instances in inference + """ + if self.training: + proposal_boxes = [x.proposal_boxes for x in instances] + coarse_mask = self.coarse_head(self._roi_pooler(features, proposal_boxes)) + losses = {"loss_mask": mask_rcnn_loss(coarse_mask, instances)} + if not self.mask_point_on: + return losses + + point_coords, point_labels = self._sample_train_points(coarse_mask, instances) + point_fine_grained_features = self._point_pooler(features, proposal_boxes, point_coords) + point_logits = self._get_point_logits( + point_fine_grained_features, point_coords, coarse_mask + ) + losses["loss_mask_point"] = roi_mask_point_loss(point_logits, instances, point_labels) + return losses + else: + pred_boxes = [x.pred_boxes for x in instances] + coarse_mask = self.coarse_head(self._roi_pooler(features, pred_boxes)) + return self._subdivision_inference(features, coarse_mask, instances) + + def _roi_pooler(self, features: List[Tensor], boxes: List[Boxes]): + """ + Extract per-box feature. This is similar to RoIAlign(sampling_ratio=1) except: + 1. It's implemented by point_sample + 2. It pools features across all levels and concat them, while typically + RoIAlign select one level for every box. However in the config we only use + one level (p2) so there is no difference. + + Returns: + Tensor of shape (R, C, pooler_size, pooler_size) where R is the total number of boxes + """ + features_list = [features[k] for k in self.roi_pooler_in_features] + features_scales = [self._feature_scales[k] for k in self.roi_pooler_in_features] + + num_boxes = sum(x.tensor.size(0) for x in boxes) + output_size = self.roi_pooler_size + point_coords = generate_regular_grid_point_coords(num_boxes, output_size, boxes[0].device) + # For regular grids of points, this function is equivalent to `len(features_list)' calls + # of `ROIAlign` (with `SAMPLING_RATIO=1`), and concat the results. + roi_features, _ = point_sample_fine_grained_features( + features_list, features_scales, boxes, point_coords + ) + return roi_features.view(num_boxes, roi_features.shape[1], output_size, output_size) + + def _sample_train_points(self, coarse_mask, instances): + assert self.training + gt_classes = cat([x.gt_classes for x in instances]) + with torch.no_grad(): + # sample point_coords + point_coords = get_uncertain_point_coords_with_randomness( + coarse_mask, + lambda logits: calculate_uncertainty(logits, gt_classes), + self.mask_point_train_num_points, + self.mask_point_oversample_ratio, + self.mask_point_importance_sample_ratio, + ) + # sample point_labels + proposal_boxes = [x.proposal_boxes for x in instances] + cat_boxes = Boxes.cat(proposal_boxes) + point_coords_wrt_image = get_point_coords_wrt_image(cat_boxes.tensor, point_coords) + point_labels = sample_point_labels(instances, point_coords_wrt_image) + return point_coords, point_labels + + def _point_pooler(self, features, proposal_boxes, point_coords): + point_features_list = [features[k] for k in self.mask_point_in_features] + point_features_scales = [self._feature_scales[k] for k in self.mask_point_in_features] + # sample image-level features + point_fine_grained_features, _ = point_sample_fine_grained_features( + point_features_list, point_features_scales, proposal_boxes, point_coords + ) + return point_fine_grained_features + + def _get_point_logits(self, point_fine_grained_features, point_coords, coarse_mask): + coarse_features = point_sample(coarse_mask, point_coords, align_corners=False) + point_logits = self.point_head(point_fine_grained_features, coarse_features) + return point_logits + + def _subdivision_inference(self, features, mask_representations, instances): + assert not self.training + + pred_boxes = [x.pred_boxes for x in instances] + pred_classes = cat([x.pred_classes for x in instances]) + + mask_logits = None + # +1 here to include an initial step to generate the coarsest mask + # prediction with init_resolution, when mask_logits is None. + # We compute initial mask by sampling on a regular grid. coarse_mask + # can be used as initial mask as well, but it's typically very low-res + # so it will be completely overwritten during subdivision anyway. + for _ in range(self.mask_point_subdivision_steps + 1): + if mask_logits is None: + point_coords = generate_regular_grid_point_coords( + pred_classes.size(0), + self.mask_point_subdivision_init_resolution, + pred_boxes[0].device, + ) + else: + mask_logits = interpolate( + mask_logits, scale_factor=2, mode="bilinear", align_corners=False + ) + uncertainty_map = calculate_uncertainty(mask_logits, pred_classes) + point_indices, point_coords = get_uncertain_point_coords_on_grid( + uncertainty_map, self.mask_point_subdivision_num_points + ) + + # Run the point head for every point in point_coords + fine_grained_features = self._point_pooler(features, pred_boxes, point_coords) + point_logits = self._get_point_logits( + fine_grained_features, point_coords, mask_representations + ) + + if mask_logits is None: + # Create initial mask_logits using point_logits on this regular grid + R, C, _ = point_logits.shape + mask_logits = point_logits.reshape( + R, + C, + self.mask_point_subdivision_init_resolution, + self.mask_point_subdivision_init_resolution, + ) + # The subdivision code will fail with the empty list of boxes + if len(pred_classes) == 0: + mask_rcnn_inference(mask_logits, instances) + return instances + else: + # Put point predictions to the right places on the upsampled grid. + R, C, H, W = mask_logits.shape + point_indices = point_indices.unsqueeze(1).expand(-1, C, -1) + mask_logits = ( + mask_logits.reshape(R, C, H * W) + .scatter_(2, point_indices, point_logits) + .view(R, C, H, W) + ) + mask_rcnn_inference(mask_logits, instances) + return instances + + +@ROI_MASK_HEAD_REGISTRY.register() +class ImplicitPointRendMaskHead(PointRendMaskHead): + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__(cfg, input_shape) + + def _init_roi_head(self, cfg, input_shape): + assert hasattr(self, "num_params"), "Please initialize point_head first!" + self.parameter_head = ConvFCHead(cfg, input_shape, output_shape=(self.num_params,)) + self.regularizer = cfg.MODEL.IMPLICIT_POINTREND.PARAMS_L2_REGULARIZER + + def _init_point_head(self, cfg, input_shape): + # fmt: off + self.mask_point_on = True # always on + assert cfg.MODEL.ROI_HEADS.NUM_CLASSES == cfg.MODEL.POINT_HEAD.NUM_CLASSES + self.mask_point_in_features = cfg.MODEL.POINT_HEAD.IN_FEATURES + self.mask_point_train_num_points = cfg.MODEL.POINT_HEAD.TRAIN_NUM_POINTS + # next two parameters are use in the adaptive subdivions inference procedure + self.mask_point_subdivision_steps = cfg.MODEL.POINT_HEAD.SUBDIVISION_STEPS + self.mask_point_subdivision_num_points = cfg.MODEL.POINT_HEAD.SUBDIVISION_NUM_POINTS + # fmt: on + + in_channels = int(np.sum([input_shape[f].channels for f in self.mask_point_in_features])) + self.point_head = build_point_head(cfg, ShapeSpec(channels=in_channels, width=1, height=1)) + self.num_params = self.point_head.num_params + + # inference parameters + self.mask_point_subdivision_init_resolution = int( + math.sqrt(self.mask_point_subdivision_num_points) + ) + assert ( + self.mask_point_subdivision_init_resolution + * self.mask_point_subdivision_init_resolution + == self.mask_point_subdivision_num_points + ) + + def forward(self, features, instances): + """ + Args: + features (dict[str, Tensor]): a dict of image-level features + instances (list[Instances]): proposals in training; detected + instances in inference + """ + if self.training: + proposal_boxes = [x.proposal_boxes for x in instances] + parameters = self.parameter_head(self._roi_pooler(features, proposal_boxes)) + losses = {"loss_l2": self.regularizer * (parameters**2).mean()} + + point_coords, point_labels = self._uniform_sample_train_points(instances) + point_fine_grained_features = self._point_pooler(features, proposal_boxes, point_coords) + point_logits = self._get_point_logits( + point_fine_grained_features, point_coords, parameters + ) + losses["loss_mask_point"] = roi_mask_point_loss(point_logits, instances, point_labels) + return losses + else: + pred_boxes = [x.pred_boxes for x in instances] + parameters = self.parameter_head(self._roi_pooler(features, pred_boxes)) + return self._subdivision_inference(features, parameters, instances) + + def _uniform_sample_train_points(self, instances): + assert self.training + proposal_boxes = [x.proposal_boxes for x in instances] + cat_boxes = Boxes.cat(proposal_boxes) + # uniform sample + point_coords = torch.rand( + len(cat_boxes), self.mask_point_train_num_points, 2, device=cat_boxes.tensor.device + ) + # sample point_labels + point_coords_wrt_image = get_point_coords_wrt_image(cat_boxes.tensor, point_coords) + point_labels = sample_point_labels(instances, point_coords_wrt_image) + return point_coords, point_labels + + def _get_point_logits(self, fine_grained_features, point_coords, parameters): + return self.point_head(fine_grained_features, point_coords, parameters) diff --git a/detectron2/projects/PointRend/point_rend/point_features.py b/detectron2/projects/PointRend/point_rend/point_features.py new file mode 100755 index 0000000..e46f442 --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/point_features.py @@ -0,0 +1,259 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch +from torch.nn import functional as F + +from detectron2.layers import cat, shapes_to_tensor +from detectron2.structures import BitMasks, Boxes + + +""" +Shape shorthand in this module: + + N: minibatch dimension size, i.e. the number of RoIs for instance segmenation or the + number of images for semantic segmenation. + R: number of ROIs, combined over all images, in the minibatch + P: number of points +""" + + +def point_sample(input, point_coords, **kwargs): + """ + A wrapper around :function:`torch.nn.functional.grid_sample` to support 3D point_coords tensors. + Unlike :function:`torch.nn.functional.grid_sample` it assumes `point_coords` to lie inside + [0, 1] x [0, 1] square. + + Args: + input (Tensor): A tensor of shape (N, C, H, W) that contains features map on a H x W grid. + point_coords (Tensor): A tensor of shape (N, P, 2) or (N, Hgrid, Wgrid, 2) that contains + [0, 1] x [0, 1] normalized point coordinates. + + Returns: + output (Tensor): A tensor of shape (N, C, P) or (N, C, Hgrid, Wgrid) that contains + features for points in `point_coords`. The features are obtained via bilinear + interplation from `input` the same way as :function:`torch.nn.functional.grid_sample`. + """ + add_dim = False + if point_coords.dim() == 3: + add_dim = True + point_coords = point_coords.unsqueeze(2) + output = F.grid_sample(input, 2.0 * point_coords - 1.0, **kwargs) + if add_dim: + output = output.squeeze(3) + return output + + +def generate_regular_grid_point_coords(R, side_size, device): + """ + Generate regular square grid of points in [0, 1] x [0, 1] coordinate space. + + Args: + R (int): The number of grids to sample, one for each region. + side_size (int): The side size of the regular grid. + device (torch.device): Desired device of returned tensor. + + Returns: + (Tensor): A tensor of shape (R, side_size^2, 2) that contains coordinates + for the regular grids. + """ + aff = torch.tensor([[[0.5, 0, 0.5], [0, 0.5, 0.5]]], device=device) + r = F.affine_grid(aff, torch.Size((1, 1, side_size, side_size)), align_corners=False) + return r.view(1, -1, 2).expand(R, -1, -1) + + +def get_uncertain_point_coords_with_randomness( + coarse_logits, uncertainty_func, num_points, oversample_ratio, importance_sample_ratio +): + """ + Sample points in [0, 1] x [0, 1] coordinate space based on their uncertainty. The unceratinties + are calculated for each point using 'uncertainty_func' function that takes point's logit + prediction as input. + See PointRend paper for details. + + Args: + coarse_logits (Tensor): A tensor of shape (N, C, Hmask, Wmask) or (N, 1, Hmask, Wmask) for + class-specific or class-agnostic prediction. + uncertainty_func: A function that takes a Tensor of shape (N, C, P) or (N, 1, P) that + contains logit predictions for P points and returns their uncertainties as a Tensor of + shape (N, 1, P). + num_points (int): The number of points P to sample. + oversample_ratio (int): Oversampling parameter. + importance_sample_ratio (float): Ratio of points that are sampled via importnace sampling. + + Returns: + point_coords (Tensor): A tensor of shape (N, P, 2) that contains the coordinates of P + sampled points. + """ + assert oversample_ratio >= 1 + assert importance_sample_ratio <= 1 and importance_sample_ratio >= 0 + num_boxes = coarse_logits.shape[0] + num_sampled = int(num_points * oversample_ratio) + point_coords = torch.rand(num_boxes, num_sampled, 2, device=coarse_logits.device) + point_logits = point_sample(coarse_logits, point_coords, align_corners=False) + # It is crucial to calculate uncertainty based on the sampled prediction value for the points. + # Calculating uncertainties of the coarse predictions first and sampling them for points leads + # to incorrect results. + # To illustrate this: assume uncertainty_func(logits)=-abs(logits), a sampled point between + # two coarse predictions with -1 and 1 logits has 0 logits, and therefore 0 uncertainty value. + # However, if we calculate uncertainties for the coarse predictions first, + # both will have -1 uncertainty, and the sampled point will get -1 uncertainty. + point_uncertainties = uncertainty_func(point_logits) + num_uncertain_points = int(importance_sample_ratio * num_points) + num_random_points = num_points - num_uncertain_points + idx = torch.topk(point_uncertainties[:, 0, :], k=num_uncertain_points, dim=1)[1] + shift = num_sampled * torch.arange(num_boxes, dtype=torch.long, device=coarse_logits.device) + idx += shift[:, None] + point_coords = point_coords.view(-1, 2)[idx.view(-1), :].view( + num_boxes, num_uncertain_points, 2 + ) + if num_random_points > 0: + point_coords = cat( + [ + point_coords, + torch.rand(num_boxes, num_random_points, 2, device=coarse_logits.device), + ], + dim=1, + ) + return point_coords + + +def get_uncertain_point_coords_on_grid(uncertainty_map, num_points): + """ + Find `num_points` most uncertain points from `uncertainty_map` grid. + + Args: + uncertainty_map (Tensor): A tensor of shape (N, 1, H, W) that contains uncertainty + values for a set of points on a regular H x W grid. + num_points (int): The number of points P to select. + + Returns: + point_indices (Tensor): A tensor of shape (N, P) that contains indices from + [0, H x W) of the most uncertain points. + point_coords (Tensor): A tensor of shape (N, P, 2) that contains [0, 1] x [0, 1] normalized + coordinates of the most uncertain points from the H x W grid. + """ + R, _, H, W = uncertainty_map.shape + h_step = 1.0 / float(H) + w_step = 1.0 / float(W) + + num_points = min(H * W, num_points) + point_indices = torch.topk(uncertainty_map.view(R, H * W), k=num_points, dim=1)[1] + point_coords = torch.zeros(R, num_points, 2, dtype=torch.float, device=uncertainty_map.device) + point_coords[:, :, 0] = w_step / 2.0 + (point_indices % W).to(torch.float) * w_step + point_coords[:, :, 1] = h_step / 2.0 + (point_indices // W).to(torch.float) * h_step + return point_indices, point_coords + + +def point_sample_fine_grained_features(features_list, feature_scales, boxes, point_coords): + """ + Get features from feature maps in `features_list` that correspond to specific point coordinates + inside each bounding box from `boxes`. + + Args: + features_list (list[Tensor]): A list of feature map tensors to get features from. + feature_scales (list[float]): A list of scales for tensors in `features_list`. + boxes (list[Boxes]): A list of I Boxes objects that contain R_1 + ... + R_I = R boxes all + together. + point_coords (Tensor): A tensor of shape (R, P, 2) that contains + [0, 1] x [0, 1] box-normalized coordinates of the P sampled points. + + Returns: + point_features (Tensor): A tensor of shape (R, C, P) that contains features sampled + from all features maps in feature_list for P sampled points for all R boxes in `boxes`. + point_coords_wrt_image (Tensor): A tensor of shape (R, P, 2) that contains image-level + coordinates of P points. + """ + cat_boxes = Boxes.cat(boxes) + num_boxes = [b.tensor.size(0) for b in boxes] + + point_coords_wrt_image = get_point_coords_wrt_image(cat_boxes.tensor, point_coords) + split_point_coords_wrt_image = torch.split(point_coords_wrt_image, num_boxes) + + point_features = [] + for idx_img, point_coords_wrt_image_per_image in enumerate(split_point_coords_wrt_image): + point_features_per_image = [] + for idx_feature, feature_map in enumerate(features_list): + h, w = feature_map.shape[-2:] + scale = shapes_to_tensor([w, h]) / feature_scales[idx_feature] + point_coords_scaled = point_coords_wrt_image_per_image / scale.to(feature_map.device) + point_features_per_image.append( + point_sample( + feature_map[idx_img].unsqueeze(0), + point_coords_scaled.unsqueeze(0), + align_corners=False, + ) + .squeeze(0) + .transpose(1, 0) + ) + point_features.append(cat(point_features_per_image, dim=1)) + + return cat(point_features, dim=0), point_coords_wrt_image + + +def get_point_coords_wrt_image(boxes_coords, point_coords): + """ + Convert box-normalized [0, 1] x [0, 1] point cooordinates to image-level coordinates. + + Args: + boxes_coords (Tensor): A tensor of shape (R, 4) that contains bounding boxes. + coordinates. + point_coords (Tensor): A tensor of shape (R, P, 2) that contains + [0, 1] x [0, 1] box-normalized coordinates of the P sampled points. + + Returns: + point_coords_wrt_image (Tensor): A tensor of shape (R, P, 2) that contains + image-normalized coordinates of P sampled points. + """ + with torch.no_grad(): + point_coords_wrt_image = point_coords.clone() + point_coords_wrt_image[:, :, 0] = point_coords_wrt_image[:, :, 0] * ( + boxes_coords[:, None, 2] - boxes_coords[:, None, 0] + ) + point_coords_wrt_image[:, :, 1] = point_coords_wrt_image[:, :, 1] * ( + boxes_coords[:, None, 3] - boxes_coords[:, None, 1] + ) + point_coords_wrt_image[:, :, 0] += boxes_coords[:, None, 0] + point_coords_wrt_image[:, :, 1] += boxes_coords[:, None, 1] + return point_coords_wrt_image + + +def sample_point_labels(instances, point_coords): + """ + Sample point labels from ground truth mask given point_coords. + + Args: + instances (list[Instances]): A list of N Instances, where N is the number of images + in the batch. So, i_th elememt of the list contains R_i objects and R_1 + ... + R_N is + equal to R. The ground-truth gt_masks in each instance will be used to compute labels. + points_coords (Tensor): A tensor of shape (R, P, 2), where R is the total number of + instances and P is the number of points for each instance. The coordinates are in + the absolute image pixel coordinate space, i.e. [0, H] x [0, W]. + + Returns: + Tensor: A tensor of shape (R, P) that contains the labels of P sampled points. + """ + with torch.no_grad(): + gt_mask_logits = [] + point_coords_splits = torch.split( + point_coords, [len(instances_per_image) for instances_per_image in instances] + ) + for i, instances_per_image in enumerate(instances): + if len(instances_per_image) == 0: + continue + assert isinstance( + instances_per_image.gt_masks, BitMasks + ), "Point head works with GT in 'bitmask' format. Set INPUT.MASK_FORMAT to 'bitmask'." + + gt_bit_masks = instances_per_image.gt_masks.tensor + h, w = instances_per_image.gt_masks.image_size + scale = torch.tensor([w, h], dtype=torch.float, device=gt_bit_masks.device) + points_coord_grid_sample_format = point_coords_splits[i] / scale + gt_mask_logits.append( + point_sample( + gt_bit_masks.to(torch.float32).unsqueeze(1), + points_coord_grid_sample_format, + align_corners=False, + ).squeeze(1) + ) + + point_labels = cat(gt_mask_logits) + return point_labels diff --git a/detectron2/projects/PointRend/point_rend/point_head.py b/detectron2/projects/PointRend/point_rend/point_head.py new file mode 100755 index 0000000..1786fad --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/point_head.py @@ -0,0 +1,282 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import fvcore.nn.weight_init as weight_init +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec, cat +from detectron2.utils.events import get_event_storage +from detectron2.utils.registry import Registry + +POINT_HEAD_REGISTRY = Registry("POINT_HEAD") +POINT_HEAD_REGISTRY.__doc__ = """ +Registry for point heads, which makes prediction for a given set of per-point features. + +The registered object will be called with `obj(cfg, input_shape)`. +""" + + +def roi_mask_point_loss(mask_logits, instances, point_labels): + """ + Compute the point-based loss for instance segmentation mask predictions + given point-wise mask prediction and its corresponding point-wise labels. + Args: + mask_logits (Tensor): A tensor of shape (R, C, P) or (R, 1, P) for class-specific or + class-agnostic, where R is the total number of predicted masks in all images, C is the + number of foreground classes, and P is the number of points sampled for each mask. + The values are logits. + instances (list[Instances]): A list of N Instances, where N is the number of images + in the batch. These instances are in 1:1 correspondence with the `mask_logits`. So, i_th + elememt of the list contains R_i objects and R_1 + ... + R_N is equal to R. + The ground-truth labels (class, box, mask, ...) associated with each instance are stored + in fields. + point_labels (Tensor): A tensor of shape (R, P), where R is the total number of + predicted masks and P is the number of points for each mask. + Labels with value of -1 will be ignored. + Returns: + point_loss (Tensor): A scalar tensor containing the loss. + """ + with torch.no_grad(): + cls_agnostic_mask = mask_logits.size(1) == 1 + total_num_masks = mask_logits.size(0) + + gt_classes = [] + for instances_per_image in instances: + if len(instances_per_image) == 0: + continue + + if not cls_agnostic_mask: + gt_classes_per_image = instances_per_image.gt_classes.to(dtype=torch.int64) + gt_classes.append(gt_classes_per_image) + + gt_mask_logits = point_labels + point_ignores = point_labels == -1 + if gt_mask_logits.shape[0] == 0: + return mask_logits.sum() * 0 + + assert gt_mask_logits.numel() > 0, gt_mask_logits.shape + + if cls_agnostic_mask: + mask_logits = mask_logits[:, 0] + else: + indices = torch.arange(total_num_masks) + gt_classes = cat(gt_classes, dim=0) + mask_logits = mask_logits[indices, gt_classes] + + # Log the training accuracy (using gt classes and 0.0 threshold for the logits) + mask_accurate = (mask_logits > 0.0) == gt_mask_logits.to(dtype=torch.uint8) + mask_accurate = mask_accurate[~point_ignores] + mask_accuracy = mask_accurate.nonzero().size(0) / max(mask_accurate.numel(), 1.0) + get_event_storage().put_scalar("point/accuracy", mask_accuracy) + + point_loss = F.binary_cross_entropy_with_logits( + mask_logits, gt_mask_logits.to(dtype=torch.float32), weight=~point_ignores, reduction="mean" + ) + return point_loss + + +@POINT_HEAD_REGISTRY.register() +class StandardPointHead(nn.Module): + """ + A point head multi-layer perceptron which we model with conv1d layers with kernel 1. The head + takes both fine-grained and coarse prediction features as its input. + """ + + def __init__(self, cfg, input_shape: ShapeSpec): + """ + The following attributes are parsed from config: + fc_dim: the output dimension of each FC layers + num_fc: the number of FC layers + coarse_pred_each_layer: if True, coarse prediction features are concatenated to each + layer's input + """ + super(StandardPointHead, self).__init__() + # fmt: off + num_classes = cfg.MODEL.POINT_HEAD.NUM_CLASSES + fc_dim = cfg.MODEL.POINT_HEAD.FC_DIM + num_fc = cfg.MODEL.POINT_HEAD.NUM_FC + cls_agnostic_mask = cfg.MODEL.POINT_HEAD.CLS_AGNOSTIC_MASK + self.coarse_pred_each_layer = cfg.MODEL.POINT_HEAD.COARSE_PRED_EACH_LAYER + input_channels = input_shape.channels + # fmt: on + + fc_dim_in = input_channels + num_classes + self.fc_layers = [] + for k in range(num_fc): + fc = nn.Conv1d(fc_dim_in, fc_dim, kernel_size=1, stride=1, padding=0, bias=True) + self.add_module("fc{}".format(k + 1), fc) + self.fc_layers.append(fc) + fc_dim_in = fc_dim + fc_dim_in += num_classes if self.coarse_pred_each_layer else 0 + + num_mask_classes = 1 if cls_agnostic_mask else num_classes + self.predictor = nn.Conv1d(fc_dim_in, num_mask_classes, kernel_size=1, stride=1, padding=0) + + for layer in self.fc_layers: + weight_init.c2_msra_fill(layer) + # use normal distribution initialization for mask prediction layer + nn.init.normal_(self.predictor.weight, std=0.001) + if self.predictor.bias is not None: + nn.init.constant_(self.predictor.bias, 0) + + def forward(self, fine_grained_features, coarse_features): + x = torch.cat((fine_grained_features, coarse_features), dim=1) + for layer in self.fc_layers: + x = F.relu(layer(x)) + if self.coarse_pred_each_layer: + x = cat((x, coarse_features), dim=1) + return self.predictor(x) + + +@POINT_HEAD_REGISTRY.register() +class ImplicitPointHead(nn.Module): + """ + A point head multi-layer perceptron which we model with conv1d layers with kernel 1. The head + takes both fine-grained features and instance-wise MLP parameters as its input. + """ + + def __init__(self, cfg, input_shape: ShapeSpec): + """ + The following attributes are parsed from config: + channels: the output dimension of each FC layers + num_layers: the number of FC layers (including the final prediction layer) + image_feature_enabled: if True, fine-grained image-level features are used + positional_encoding_enabled: if True, positional encoding is used + """ + super(ImplicitPointHead, self).__init__() + # fmt: off + self.num_layers = cfg.MODEL.POINT_HEAD.NUM_FC + 1 + self.channels = cfg.MODEL.POINT_HEAD.FC_DIM + self.image_feature_enabled = cfg.MODEL.IMPLICIT_POINTREND.IMAGE_FEATURE_ENABLED + self.positional_encoding_enabled = cfg.MODEL.IMPLICIT_POINTREND.POS_ENC_ENABLED + self.num_classes = ( + cfg.MODEL.POINT_HEAD.NUM_CLASSES if not cfg.MODEL.POINT_HEAD.CLS_AGNOSTIC_MASK else 1 + ) + self.in_channels = input_shape.channels + # fmt: on + + if not self.image_feature_enabled: + self.in_channels = 0 + if self.positional_encoding_enabled: + self.in_channels += 256 + self.register_buffer("positional_encoding_gaussian_matrix", torch.randn((2, 128))) + + assert self.in_channels > 0 + + num_weight_params, num_bias_params = [], [] + assert self.num_layers >= 2 + for l in range(self.num_layers): + if l == 0: + # input layer + num_weight_params.append(self.in_channels * self.channels) + num_bias_params.append(self.channels) + elif l == self.num_layers - 1: + # output layer + num_weight_params.append(self.channels * self.num_classes) + num_bias_params.append(self.num_classes) + else: + # intermediate layer + num_weight_params.append(self.channels * self.channels) + num_bias_params.append(self.channels) + + self.num_weight_params = num_weight_params + self.num_bias_params = num_bias_params + self.num_params = sum(num_weight_params) + sum(num_bias_params) + + def forward(self, fine_grained_features, point_coords, parameters): + # features: [R, channels, K] + # point_coords: [R, K, 2] + num_instances = fine_grained_features.size(0) + num_points = fine_grained_features.size(2) + + if num_instances == 0: + return torch.zeros((0, 1, num_points), device=fine_grained_features.device) + + if self.positional_encoding_enabled: + # locations: [R*K, 2] + locations = 2 * point_coords.reshape(num_instances * num_points, 2) - 1 + locations = locations @ self.positional_encoding_gaussian_matrix.to(locations.device) + locations = 2 * np.pi * locations + locations = torch.cat([torch.sin(locations), torch.cos(locations)], dim=1) + # locations: [R, C, K] + locations = locations.reshape(num_instances, num_points, 256).permute(0, 2, 1) + if not self.image_feature_enabled: + fine_grained_features = locations + else: + fine_grained_features = torch.cat([locations, fine_grained_features], dim=1) + + # features [R, C, K] + mask_feat = fine_grained_features.reshape(num_instances, self.in_channels, num_points) + + weights, biases = self._parse_params( + parameters, + self.in_channels, + self.channels, + self.num_classes, + self.num_weight_params, + self.num_bias_params, + ) + + point_logits = self._dynamic_mlp(mask_feat, weights, biases, num_instances) + point_logits = point_logits.reshape(-1, self.num_classes, num_points) + + return point_logits + + @staticmethod + def _dynamic_mlp(features, weights, biases, num_instances): + assert features.dim() == 3, features.dim() + n_layers = len(weights) + x = features + for i, (w, b) in enumerate(zip(weights, biases)): + x = torch.einsum("nck,ndc->ndk", x, w) + b + if i < n_layers - 1: + x = F.relu(x) + return x + + @staticmethod + def _parse_params( + pred_params, + in_channels, + channels, + num_classes, + num_weight_params, + num_bias_params, + ): + assert pred_params.dim() == 2 + assert len(num_weight_params) == len(num_bias_params) + assert pred_params.size(1) == sum(num_weight_params) + sum(num_bias_params) + + num_instances = pred_params.size(0) + num_layers = len(num_weight_params) + + params_splits = list( + torch.split_with_sizes(pred_params, num_weight_params + num_bias_params, dim=1) + ) + + weight_splits = params_splits[:num_layers] + bias_splits = params_splits[num_layers:] + + for l in range(num_layers): + if l == 0: + # input layer + weight_splits[l] = weight_splits[l].reshape(num_instances, channels, in_channels) + bias_splits[l] = bias_splits[l].reshape(num_instances, channels, 1) + elif l < num_layers - 1: + # intermediate layer + weight_splits[l] = weight_splits[l].reshape(num_instances, channels, channels) + bias_splits[l] = bias_splits[l].reshape(num_instances, channels, 1) + else: + # output layer + weight_splits[l] = weight_splits[l].reshape(num_instances, num_classes, channels) + bias_splits[l] = bias_splits[l].reshape(num_instances, num_classes, 1) + + return weight_splits, bias_splits + + +def build_point_head(cfg, input_channels): + """ + Build a point head defined by `cfg.MODEL.POINT_HEAD.NAME`. + """ + head_name = cfg.MODEL.POINT_HEAD.NAME + return POINT_HEAD_REGISTRY.get(head_name)(cfg, input_channels) diff --git a/detectron2/projects/PointRend/point_rend/roi_heads.py b/detectron2/projects/PointRend/point_rend/roi_heads.py new file mode 100755 index 0000000..74ccc34 --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/roi_heads.py @@ -0,0 +1,49 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging + +from detectron2.modeling import ROI_HEADS_REGISTRY, StandardROIHeads + + +@ROI_HEADS_REGISTRY.register() +class PointRendROIHeads(StandardROIHeads): + """ + Identical to StandardROIHeads, except for some weights conversion code to + handle old models. + """ + + _version = 2 + + def _load_from_state_dict( + self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs + ): + version = local_metadata.get("version", None) + if version is None or version < 2: + logger = logging.getLogger(__name__) + logger.warning( + "Weight format of PointRend models have changed! " + "Please upgrade your models. Applying automatic conversion now ..." + ) + for k in list(state_dict.keys()): + newk = k + if k.startswith(prefix + "mask_point_head"): + newk = k.replace(prefix + "mask_point_head", prefix + "mask_head.point_head") + if k.startswith(prefix + "mask_coarse_head"): + newk = k.replace(prefix + "mask_coarse_head", prefix + "mask_head.coarse_head") + if newk != k: + state_dict[newk] = state_dict[k] + del state_dict[k] + + @classmethod + def _init_mask_head(cls, cfg, input_shape): + if cfg.MODEL.MASK_ON and cfg.MODEL.ROI_MASK_HEAD.NAME != "PointRendMaskHead": + logger = logging.getLogger(__name__) + logger.warning( + "Config of PointRend models have changed! " + "Please upgrade your models. Applying automatic conversion now ..." + ) + assert cfg.MODEL.ROI_MASK_HEAD.NAME == "CoarseMaskHead" + cfg.defrost() + cfg.MODEL.ROI_MASK_HEAD.NAME = "PointRendMaskHead" + cfg.MODEL.ROI_MASK_HEAD.POOLER_TYPE = "" + cfg.freeze() + return super()._init_mask_head(cfg, input_shape) diff --git a/detectron2/projects/PointRend/point_rend/semantic_seg.py b/detectron2/projects/PointRend/point_rend/semantic_seg.py new file mode 100755 index 0000000..ea65200 --- /dev/null +++ b/detectron2/projects/PointRend/point_rend/semantic_seg.py @@ -0,0 +1,135 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +from typing import Dict +import torch +from torch import nn +from torch.nn import functional as F + +from detectron2.layers import ShapeSpec, cat +from detectron2.modeling import SEM_SEG_HEADS_REGISTRY + +from .point_features import ( + get_uncertain_point_coords_on_grid, + get_uncertain_point_coords_with_randomness, + point_sample, +) +from .point_head import build_point_head + + +def calculate_uncertainty(sem_seg_logits): + """ + For each location of the prediction `sem_seg_logits` we estimate uncerainty as the + difference between top first and top second predicted logits. + + Args: + mask_logits (Tensor): A tensor of shape (N, C, ...), where N is the minibatch size and + C is the number of foreground classes. The values are logits. + + Returns: + scores (Tensor): A tensor of shape (N, 1, ...) that contains uncertainty scores with + the most uncertain locations having the highest uncertainty score. + """ + top2_scores = torch.topk(sem_seg_logits, k=2, dim=1)[0] + return (top2_scores[:, 1] - top2_scores[:, 0]).unsqueeze(1) + + +@SEM_SEG_HEADS_REGISTRY.register() +class PointRendSemSegHead(nn.Module): + """ + A semantic segmentation head that combines a head set in `POINT_HEAD.COARSE_SEM_SEG_HEAD_NAME` + and a point head set in `MODEL.POINT_HEAD.NAME`. + """ + + def __init__(self, cfg, input_shape: Dict[str, ShapeSpec]): + super().__init__() + + self.ignore_value = cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE + + self.coarse_sem_seg_head = SEM_SEG_HEADS_REGISTRY.get( + cfg.MODEL.POINT_HEAD.COARSE_SEM_SEG_HEAD_NAME + )(cfg, input_shape) + self._init_point_head(cfg, input_shape) + + def _init_point_head(self, cfg, input_shape: Dict[str, ShapeSpec]): + # fmt: off + assert cfg.MODEL.SEM_SEG_HEAD.NUM_CLASSES == cfg.MODEL.POINT_HEAD.NUM_CLASSES + feature_channels = {k: v.channels for k, v in input_shape.items()} + self.in_features = cfg.MODEL.POINT_HEAD.IN_FEATURES + self.train_num_points = cfg.MODEL.POINT_HEAD.TRAIN_NUM_POINTS + self.oversample_ratio = cfg.MODEL.POINT_HEAD.OVERSAMPLE_RATIO + self.importance_sample_ratio = cfg.MODEL.POINT_HEAD.IMPORTANCE_SAMPLE_RATIO + self.subdivision_steps = cfg.MODEL.POINT_HEAD.SUBDIVISION_STEPS + self.subdivision_num_points = cfg.MODEL.POINT_HEAD.SUBDIVISION_NUM_POINTS + # fmt: on + + in_channels = int(np.sum([feature_channels[f] for f in self.in_features])) + self.point_head = build_point_head(cfg, ShapeSpec(channels=in_channels, width=1, height=1)) + + def forward(self, features, targets=None): + coarse_sem_seg_logits = self.coarse_sem_seg_head.layers(features) + + if self.training: + losses = self.coarse_sem_seg_head.losses(coarse_sem_seg_logits, targets) + + with torch.no_grad(): + point_coords = get_uncertain_point_coords_with_randomness( + coarse_sem_seg_logits, + calculate_uncertainty, + self.train_num_points, + self.oversample_ratio, + self.importance_sample_ratio, + ) + coarse_features = point_sample(coarse_sem_seg_logits, point_coords, align_corners=False) + + fine_grained_features = cat( + [ + point_sample(features[in_feature], point_coords, align_corners=False) + for in_feature in self.in_features + ], + dim=1, + ) + point_logits = self.point_head(fine_grained_features, coarse_features) + point_targets = ( + point_sample( + targets.unsqueeze(1).to(torch.float), + point_coords, + mode="nearest", + align_corners=False, + ) + .squeeze(1) + .to(torch.long) + ) + losses["loss_sem_seg_point"] = F.cross_entropy( + point_logits, point_targets, reduction="mean", ignore_index=self.ignore_value + ) + return None, losses + else: + sem_seg_logits = coarse_sem_seg_logits.clone() + for _ in range(self.subdivision_steps): + sem_seg_logits = F.interpolate( + sem_seg_logits, scale_factor=2, mode="bilinear", align_corners=False + ) + uncertainty_map = calculate_uncertainty(sem_seg_logits) + point_indices, point_coords = get_uncertain_point_coords_on_grid( + uncertainty_map, self.subdivision_num_points + ) + fine_grained_features = cat( + [ + point_sample(features[in_feature], point_coords, align_corners=False) + for in_feature in self.in_features + ] + ) + coarse_features = point_sample( + coarse_sem_seg_logits, point_coords, align_corners=False + ) + point_logits = self.point_head(fine_grained_features, coarse_features) + + # put sem seg point predictions to the right places on the upsampled grid. + N, C, H, W = sem_seg_logits.shape + point_indices = point_indices.unsqueeze(1).expand(-1, C, -1) + sem_seg_logits = ( + sem_seg_logits.reshape(N, C, H * W) + .scatter_(2, point_indices, point_logits) + .view(N, C, H, W) + ) + return sem_seg_logits, {} diff --git a/detectron2/projects/PointRend/train_net.py b/detectron2/projects/PointRend/train_net.py new file mode 100755 index 0000000..9ae6f1a --- /dev/null +++ b/detectron2/projects/PointRend/train_net.py @@ -0,0 +1,145 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +PointRend Training Script. + +This script is a simplified version of the training script in detectron2/tools. +""" + +import os + +import detectron2.data.transforms as T +import detectron2.utils.comm as comm +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import DatasetMapper, MetadataCatalog, build_detection_train_loader +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch +from detectron2.evaluation import ( + CityscapesInstanceEvaluator, + CityscapesSemSegEvaluator, + COCOEvaluator, + DatasetEvaluators, + LVISEvaluator, + SemSegEvaluator, + verify_results, +) +from detectron2.projects.point_rend import ColorAugSSDTransform, add_pointrend_config + + +def build_sem_seg_train_aug(cfg): + augs = [ + T.ResizeShortestEdge( + cfg.INPUT.MIN_SIZE_TRAIN, cfg.INPUT.MAX_SIZE_TRAIN, cfg.INPUT.MIN_SIZE_TRAIN_SAMPLING + ) + ] + if cfg.INPUT.CROP.ENABLED: + augs.append( + T.RandomCrop_CategoryAreaConstraint( + cfg.INPUT.CROP.TYPE, + cfg.INPUT.CROP.SIZE, + cfg.INPUT.CROP.SINGLE_CATEGORY_MAX_AREA, + cfg.MODEL.SEM_SEG_HEAD.IGNORE_VALUE, + ) + ) + if cfg.INPUT.COLOR_AUG_SSD: + augs.append(ColorAugSSDTransform(img_format=cfg.INPUT.FORMAT)) + augs.append(T.RandomFlip()) + return augs + + +class Trainer(DefaultTrainer): + """ + We use the "DefaultTrainer" which contains a number pre-defined logic for + standard training workflow. They may not work for you, especially if you + are working on a new research project. In that case you can use the cleaner + "SimpleTrainer", or write your own training loop. + """ + + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type == "lvis": + return LVISEvaluator(dataset_name, output_dir=output_folder) + if evaluator_type == "coco": + return COCOEvaluator(dataset_name, output_dir=output_folder) + if evaluator_type == "sem_seg": + return SemSegEvaluator( + dataset_name, + distributed=True, + output_dir=output_folder, + ) + if evaluator_type == "cityscapes_instance": + return CityscapesInstanceEvaluator(dataset_name) + if evaluator_type == "cityscapes_sem_seg": + return CityscapesSemSegEvaluator(dataset_name) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format( + dataset_name, evaluator_type + ) + ) + if len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + @classmethod + def build_train_loader(cls, cfg): + if "SemanticSegmentor" in cfg.MODEL.META_ARCHITECTURE: + mapper = DatasetMapper(cfg, is_train=True, augmentations=build_sem_seg_train_aug(cfg)) + else: + mapper = None + return build_detection_train_loader(cfg, mapper=mapper) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + add_pointrend_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + if comm.is_main_process(): + verify_results(cfg, res) + return res + + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/projects/PointSup/README.md b/detectron2/projects/PointSup/README.md new file mode 100755 index 0000000..75ce084 --- /dev/null +++ b/detectron2/projects/PointSup/README.md @@ -0,0 +1,41 @@ +# Pointly-Supervised Instance Segmentation + +Bowen Cheng, Omkar Parkhi, Alexander Kirillov + +[[`arXiv`](https://arxiv.org/abs/2104.06404)] [[`Project`](https://bowenc0221.github.io/point-sup)] [[`BibTeX`](#CitingPointSup)] + +
+ +

+ +## Data preparation +Please follow these steps to prepare your datasets: +1. Follow official Detectron2 instruction to prepare COCO dataset. Set up `DETECTRON2_DATASETS` environment variable to the location of your Detectron2 dataset. +2. Generate 10-points annotations for COCO by running: `python tools/prepare_coco_point_annotations_without_masks.py 10` + +## Training + +To train a model with 8 GPUs run: +```bash +python train_net.py --config-file configs/mask_rcnn_R_50_FPN_3x_point_sup_point_aug_coco.yaml --num-gpus 8 +``` + +## Evaluation + +Model evaluation can be done similarly: +```bash +python train_net.py --config-file configs/mask_rcnn_R_50_FPN_3x_point_sup_point_aug_coco.yaml --eval-only MODEL.WEIGHTS /path/to/model_checkpoint +``` + +## Citing Pointly-Supervised Instance Segmentation + +If you use PointSup, please use the following BibTeX entry. + +```BibTeX +@article{cheng2021pointly, + title={Pointly-Supervised Instance Segmentation}, + author={Bowen Cheng and Omkar Parkhi and Alexander Kirillov}, + journal={arXiv}, + year={2021} +} +``` diff --git a/detectron2/projects/PointSup/configs/implicit_pointrend_R_50_FPN_3x_point_sup_point_aug_coco.yaml b/detectron2/projects/PointSup/configs/implicit_pointrend_R_50_FPN_3x_point_sup_point_aug_coco.yaml new file mode 100755 index 0000000..5b3d427 --- /dev/null +++ b/detectron2/projects/PointSup/configs/implicit_pointrend_R_50_FPN_3x_point_sup_point_aug_coco.yaml @@ -0,0 +1,9 @@ +_BASE_: "../../PointRend/configs/InstanceSegmentation/implicit_pointrend_R_50_FPN_3x_coco.yaml" +MODEL: + ROI_MASK_HEAD: + NAME: "ImplicitPointRendPointSupHead" +INPUT: + POINT_SUP: True + SAMPLE_POINTS: 5 +DATASETS: + TRAIN: ("coco_2017_train_points_n10_v1_without_masks",) diff --git a/detectron2/projects/PointSup/configs/mask_rcnn_R_50_FPN_3x_point_sup_coco.yaml b/detectron2/projects/PointSup/configs/mask_rcnn_R_50_FPN_3x_point_sup_coco.yaml new file mode 100755 index 0000000..157e384 --- /dev/null +++ b/detectron2/projects/PointSup/configs/mask_rcnn_R_50_FPN_3x_point_sup_coco.yaml @@ -0,0 +1,15 @@ +_BASE_: "../../../configs/Base-RCNN-FPN.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: True + RESNETS: + DEPTH: 50 + ROI_MASK_HEAD: + NAME: "MaskRCNNConvUpsamplePointSupHead" +INPUT: + POINT_SUP: True +DATASETS: + TRAIN: ("coco_2017_train_points_n10_v1_without_masks",) +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/projects/PointSup/configs/mask_rcnn_R_50_FPN_3x_point_sup_point_aug_coco.yaml b/detectron2/projects/PointSup/configs/mask_rcnn_R_50_FPN_3x_point_sup_point_aug_coco.yaml new file mode 100755 index 0000000..4b11224 --- /dev/null +++ b/detectron2/projects/PointSup/configs/mask_rcnn_R_50_FPN_3x_point_sup_point_aug_coco.yaml @@ -0,0 +1,3 @@ +_BASE_: "mask_rcnn_R_50_FPN_3x_point_sup_coco.yaml" +INPUT: + SAMPLE_POINTS: 5 diff --git a/detectron2/projects/PointSup/point_sup/__init__.py b/detectron2/projects/PointSup/point_sup/__init__.py new file mode 100755 index 0000000..510e381 --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/__init__.py @@ -0,0 +1,6 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +from . import register_point_annotations +from .config import add_point_sup_config +from .dataset_mapper import PointSupDatasetMapper +from .mask_head import MaskRCNNConvUpsamplePointSupHead +from .point_utils import get_point_coords_from_point_annotation diff --git a/detectron2/projects/PointSup/point_sup/config.py b/detectron2/projects/PointSup/point_sup/config.py new file mode 100755 index 0000000..5e00b78 --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/config.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + + +def add_point_sup_config(cfg): + """ + Add config for point supervision. + """ + # Use point annotation + cfg.INPUT.POINT_SUP = False + # Sample only part of points in each iteration. + # Default: 0, use all available points. + cfg.INPUT.SAMPLE_POINTS = 0 diff --git a/detectron2/projects/PointSup/point_sup/dataset_mapper.py b/detectron2/projects/PointSup/point_sup/dataset_mapper.py new file mode 100755 index 0000000..52b9bd4 --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/dataset_mapper.py @@ -0,0 +1,125 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import copy +import logging +import numpy as np +from typing import List, Union +import torch + +import detectron2.data.detection_utils as utils +import detectron2.data.transforms as T +from detectron2.config import configurable + +from .detection_utils import annotations_to_instances, transform_instance_annotations + +__all__ = [ + "PointSupDatasetMapper", +] + + +class PointSupDatasetMapper: + """ + The callable currently does the following: + 1. Read the image from "file_name" + 2. Applies transforms to the image and annotations + 3. Prepare data and annotations to Tensor and :class:`Instances` + """ + + @configurable + def __init__( + self, + is_train: bool, + *, + augmentations: List[Union[T.Augmentation, T.Transform]], + image_format: str, + # Extra data augmentation for point supervision + sample_points: int = 0, + ): + """ + NOTE: this interface is experimental. + + Args: + is_train: whether it's used in training or inference + augmentations: a list of augmentations or deterministic transforms to apply + image_format: an image format supported by :func:`detection_utils.read_image`. + sample_points: subsample points at each iteration + """ + # fmt: off + self.is_train = is_train + self.augmentations = T.AugmentationList(augmentations) + self.image_format = image_format + self.sample_points = sample_points + # fmt: on + logger = logging.getLogger(__name__) + mode = "training" if is_train else "inference" + logger.info(f"[DatasetMapper] Augmentations used in {mode}: {augmentations}") + logger.info(f"Point Augmentations used in {mode}: sample {sample_points} points") + + @classmethod + def from_config(cls, cfg, is_train: bool = True): + augs = utils.build_augmentation(cfg, is_train) + if cfg.INPUT.CROP.ENABLED and is_train: + raise ValueError("Crop augmentation not supported to point supervision.") + + ret = { + "is_train": is_train, + "augmentations": augs, + "image_format": cfg.INPUT.FORMAT, + "sample_points": cfg.INPUT.SAMPLE_POINTS, + } + + return ret + + def __call__(self, dataset_dict): + """ + Args: + dataset_dict (dict): Metadata of one image, in Detectron2 Dataset format. + Returns: + dict: a format that builtin models in detectron2 accept + """ + dataset_dict = copy.deepcopy(dataset_dict) # it will be modified by code below + image = utils.read_image(dataset_dict["file_name"], format=self.image_format) + utils.check_image_size(dataset_dict, image) + + aug_input = T.AugInput(image) + transforms = self.augmentations(aug_input) + image = aug_input.image + + image_shape = image.shape[:2] # h, w + # Pytorch's dataloader is efficient on torch.Tensor due to shared-memory, + # but not efficient on large generic data structures due to the use of pickle & mp.Queue. + # Therefore it's important to use torch.Tensor. + dataset_dict["image"] = torch.as_tensor(np.ascontiguousarray(image.transpose(2, 0, 1))) + + if not self.is_train: + dataset_dict.pop("annotations", None) + return dataset_dict + + if "annotations" in dataset_dict: + # Maps points from the closed interval [0, image_size - 1] on discrete + # image coordinates to the half-open interval [x1, x2) on continuous image + # coordinates. We use the continuous-discrete conversion from Heckbert + # 1990 ("What is the coordinate of a pixel?"): d = floor(c) and c = d + 0.5, + # where d is a discrete coordinate and c is a continuous coordinate. + for ann in dataset_dict["annotations"]: + point_coords_wrt_image = np.array(ann["point_coords"]).astype(np.float) + point_coords_wrt_image = point_coords_wrt_image + 0.5 + ann["point_coords"] = point_coords_wrt_image + + annos = [ + # also need to transform point coordinates + transform_instance_annotations( + obj, + transforms, + image_shape, + ) + for obj in dataset_dict.pop("annotations") + if obj.get("iscrowd", 0) == 0 + ] + instances = annotations_to_instances( + annos, + image_shape, + sample_points=self.sample_points, + ) + + dataset_dict["instances"] = utils.filter_empty_instances(instances) + return dataset_dict diff --git a/detectron2/projects/PointSup/point_sup/detection_utils.py b/detectron2/projects/PointSup/point_sup/detection_utils.py new file mode 100755 index 0000000..3f95d94 --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/detection_utils.py @@ -0,0 +1,103 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import numpy as np +import torch + +# fmt: off +from detectron2.data.detection_utils import \ + annotations_to_instances as base_annotations_to_instances +from detectron2.data.detection_utils import \ + transform_instance_annotations as base_transform_instance_annotations + +# fmt: on + + +def annotations_to_instances(annos, image_size, sample_points=0): + """ + Create an :class:`Instances` object used by the models, + from instance annotations in the dataset dict. + + Args: + annos (list[dict]): a list of instance annotations in one image, each + element for one instance. + image_size (tuple): height, width + sample_points (int): subsample points at each iteration + + Returns: + Instances: + It will contain fields "gt_boxes", "gt_classes", + "gt_point_coords", "gt_point_labels", if they can be obtained from `annos`. + This is the format that builtin models with point supervision expect. + """ + target = base_annotations_to_instances(annos, image_size) + + assert ("point_coords" in annos[0]) == ("point_labels" in annos[0]) + + if len(annos) and "point_labels" in annos[0]: + point_coords = [] + point_labels = [] + for i, _ in enumerate(annos): + # Already in the image coordinate system + point_coords_wrt_image = np.array(annos[i]["point_coords"]) + point_labels_wrt_image = np.array(annos[i]["point_labels"]) + + if sample_points > 0: + random_indices = np.random.choice( + point_coords_wrt_image.shape[0], + sample_points, + replace=point_coords_wrt_image.shape[0] < sample_points, + ).astype(int) + point_coords_wrt_image = point_coords_wrt_image[random_indices] + point_labels_wrt_image = point_labels_wrt_image[random_indices] + assert point_coords_wrt_image.shape[0] == point_labels_wrt_image.size + + point_coords.append(point_coords_wrt_image) + point_labels.append(point_labels_wrt_image) + + point_coords = torch.stack([torch.from_numpy(x) for x in point_coords]) + point_labels = torch.stack([torch.from_numpy(x) for x in point_labels]) + target.gt_point_coords = point_coords + target.gt_point_labels = point_labels + + return target + + +def transform_instance_annotations( + annotation, transforms, image_size, *, keypoint_hflip_indices=None +): + """ + Apply transforms to box, and point annotations of a single instance. + It will use `transforms.apply_box` for the box, and + `transforms.apply_coords` for points. + Args: + annotation (dict): dict of instance annotations for a single instance. + It will be modified in-place. + transforms (TransformList or list[Transform]): + image_size (tuple): the height, width of the transformed image + keypoint_hflip_indices (ndarray[int]): see `create_keypoint_hflip_indices`. + Returns: + dict: + the same input dict with fields "bbox", "point_coords", "point_labels" + transformed according to `transforms`. + The "bbox_mode" field will be set to XYXY_ABS. + """ + annotation = base_transform_instance_annotations( + annotation, transforms, image_size, keypoint_hflip_indices + ) + + assert ("point_coords" in annotation) == ("point_labels" in annotation) + if "point_coords" in annotation and "point_labels" in annotation: + point_coords = annotation["point_coords"] + point_labels = np.array(annotation["point_labels"]).astype(np.float) + point_coords = transforms.apply_coords(point_coords) + + # Set all out-of-boundary points to "unlabeled" + inside = (point_coords >= np.array([0, 0])) & (point_coords <= np.array(image_size[::-1])) + inside = inside.all(axis=1) + point_labels[~inside] = -1 + + annotation["point_coords"] = point_coords + annotation["point_labels"] = point_labels + + return annotation diff --git a/detectron2/projects/PointSup/point_sup/mask_head.py b/detectron2/projects/PointSup/point_sup/mask_head.py new file mode 100755 index 0000000..81c21f5 --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/mask_head.py @@ -0,0 +1,77 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import numpy as np +from typing import Any, List + +from detectron2.modeling import ROI_MASK_HEAD_REGISTRY +from detectron2.modeling.roi_heads.mask_head import MaskRCNNConvUpsampleHead, mask_rcnn_inference +from detectron2.projects.point_rend import ImplicitPointRendMaskHead +from detectron2.projects.point_rend.point_features import point_sample +from detectron2.projects.point_rend.point_head import roi_mask_point_loss +from detectron2.structures import Instances + +from .point_utils import get_point_coords_from_point_annotation + +__all__ = [ + "ImplicitPointRendPointSupHead", + "MaskRCNNConvUpsamplePointSupHead", +] + + +@ROI_MASK_HEAD_REGISTRY.register() +class MaskRCNNConvUpsamplePointSupHead(MaskRCNNConvUpsampleHead): + """ + A mask head with several conv layers, plus an upsample layer (with `ConvTranspose2d`). + Predictions are made with a final 1x1 conv layer. + + The difference with `MaskRCNNConvUpsampleHead` is that this head is trained + with point supervision. Please use the `MaskRCNNConvUpsampleHead` if you want + to train the model with mask supervision. + """ + + def forward(self, x, instances: List[Instances]) -> Any: + """ + Args: + x: input region feature(s) provided by :class:`ROIHeads`. + instances (list[Instances]): contains the boxes & labels corresponding + to the input features. + Exact format is up to its caller to decide. + Typically, this is the foreground instances in training, with + "proposal_boxes" field and other gt annotations. + In inference, it contains boxes that are already predicted. + Returns: + A dict of losses in training. The predicted "instances" in inference. + """ + x = self.layers(x) + if self.training: + N, C, H, W = x.shape + assert H == W + + proposal_boxes = [x.proposal_boxes for x in instances] + assert N == np.sum(len(x) for x in proposal_boxes) + + if N == 0: + return {"loss_mask": x.sum() * 0} + + # Training with point supervision + point_coords, point_labels = get_point_coords_from_point_annotation(instances) + + mask_logits = point_sample( + x, + point_coords, + align_corners=False, + ) + + return {"loss_mask": roi_mask_point_loss(mask_logits, instances, point_labels)} + else: + mask_rcnn_inference(x, instances) + return instances + + +@ROI_MASK_HEAD_REGISTRY.register() +class ImplicitPointRendPointSupHead(ImplicitPointRendMaskHead): + def _uniform_sample_train_points(self, instances): + assert self.training + # Please keep in mind that "gt_masks" is not used in this mask head. + point_coords, point_labels = get_point_coords_from_point_annotation(instances) + + return point_coords, point_labels diff --git a/detectron2/projects/PointSup/point_sup/point_utils.py b/detectron2/projects/PointSup/point_sup/point_utils.py new file mode 100755 index 0000000..eed876e --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/point_utils.py @@ -0,0 +1,77 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import torch + +from detectron2.layers import cat + + +def get_point_coords_from_point_annotation(instances): + """ + Load point coords and their corresponding labels from point annotation. + + Args: + instances (list[Instances]): A list of N Instances, where N is the number of images + in the batch. These instances are in 1:1 + correspondence with the pred_mask_logits. The ground-truth labels (class, box, mask, + ...) associated with each instance are stored in fields. + Returns: + point_coords (Tensor): A tensor of shape (N, P, 2) that contains the coordinates of P + sampled points. + point_labels (Tensor): A tensor of shape (N, P) that contains the labels of P + sampled points. `point_labels` takes 3 possible values: + - 0: the point belongs to background + - 1: the point belongs to the object + - -1: the point is ignored during training + """ + point_coords_list = [] + point_labels_list = [] + for instances_per_image in instances: + if len(instances_per_image) == 0: + continue + point_coords = instances_per_image.gt_point_coords.to(torch.float32) + point_labels = instances_per_image.gt_point_labels.to(torch.float32).clone() + proposal_boxes_per_image = instances_per_image.proposal_boxes.tensor + + # Convert point coordinate system, ground truth points are in image coord. + point_coords_wrt_box = get_point_coords_wrt_box(proposal_boxes_per_image, point_coords) + + # Ignore points that are outside predicted boxes. + point_ignores = ( + (point_coords_wrt_box[:, :, 0] < 0) + | (point_coords_wrt_box[:, :, 0] > 1) + | (point_coords_wrt_box[:, :, 1] < 0) + | (point_coords_wrt_box[:, :, 1] > 1) + ) + point_labels[point_ignores] = -1 + + point_coords_list.append(point_coords_wrt_box) + point_labels_list.append(point_labels) + + return ( + cat(point_coords_list, dim=0), + cat(point_labels_list, dim=0), + ) + + +def get_point_coords_wrt_box(boxes_coords, point_coords): + """ + Convert image-level absolute coordinates to box-normalized [0, 1] x [0, 1] point cooordinates. + Args: + boxes_coords (Tensor): A tensor of shape (R, 4) that contains bounding boxes. + coordinates. + point_coords (Tensor): A tensor of shape (R, P, 2) that contains + image-normalized coordinates of P sampled points. + Returns: + point_coords_wrt_box (Tensor): A tensor of shape (R, P, 2) that contains + [0, 1] x [0, 1] box-normalized coordinates of the P sampled points. + """ + with torch.no_grad(): + point_coords_wrt_box = point_coords.clone() + point_coords_wrt_box[:, :, 0] -= boxes_coords[:, None, 0] + point_coords_wrt_box[:, :, 1] -= boxes_coords[:, None, 1] + point_coords_wrt_box[:, :, 0] = point_coords_wrt_box[:, :, 0] / ( + boxes_coords[:, None, 2] - boxes_coords[:, None, 0] + ) + point_coords_wrt_box[:, :, 1] = point_coords_wrt_box[:, :, 1] / ( + boxes_coords[:, None, 3] - boxes_coords[:, None, 1] + ) + return point_coords_wrt_box diff --git a/detectron2/projects/PointSup/point_sup/register_point_annotations.py b/detectron2/projects/PointSup/point_sup/register_point_annotations.py new file mode 100755 index 0000000..32f2bb4 --- /dev/null +++ b/detectron2/projects/PointSup/point_sup/register_point_annotations.py @@ -0,0 +1,69 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved +import logging +import os + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.data.datasets.builtin import _get_builtin_metadata +from detectron2.data.datasets.coco import load_coco_json + +logger = logging.getLogger(__name__) + + +# COCO dataset +def register_coco_instances_with_points(name, metadata, json_file, image_root): + """ + Register a dataset in COCO's json annotation format for + instance segmentation with point annotation. + + The point annotation json does not have "segmentation" field, instead, + it has "point_coords" and "point_labels" fields. + + Args: + name (str): the name that identifies a dataset, e.g. "coco_2014_train". + metadata (dict): extra metadata associated with this dataset. You can + leave it as an empty dict. + json_file (str): path to the json instance annotation file. + image_root (str or path-like): directory which contains all the images. + """ + assert isinstance(name, str), name + assert isinstance(json_file, (str, os.PathLike)), json_file + assert isinstance(image_root, (str, os.PathLike)), image_root + # 1. register a function which returns dicts + DatasetCatalog.register( + name, lambda: load_coco_json(json_file, image_root, name, ["point_coords", "point_labels"]) + ) + + # 2. Optionally, add metadata about this dataset, + # since they might be useful in evaluation, visualization or logging + MetadataCatalog.get(name).set( + json_file=json_file, image_root=image_root, evaluator_type="coco", **metadata + ) + + +_PREDEFINED_SPLITS_COCO = {} +_PREDEFINED_SPLITS_COCO["coco"] = { + # point annotations without masks + "coco_2017_train_points_n10_v1_without_masks": ( + "coco/train2017", + "coco/annotations/instances_train2017_n10_v1_without_masks.json", + ), +} + + +def register_all_coco_train_points(root): + for dataset_name, splits_per_dataset in _PREDEFINED_SPLITS_COCO.items(): + for key, (image_root, json_file) in splits_per_dataset.items(): + # Assume pre-defined datasets live in `./datasets`. + register_coco_instances_with_points( + key, + _get_builtin_metadata(dataset_name), + os.path.join(root, json_file) if "://" not in json_file else json_file, + os.path.join(root, image_root), + ) + + +# True for open source; +# Internally at fb, we register them elsewhere +if __name__.endswith(".register_point_annotations"): + _root = os.getenv("DETECTRON2_DATASETS", "datasets") + register_all_coco_train_points(_root) diff --git a/detectron2/projects/PointSup/tools/prepare_coco_point_annotations_without_masks.py b/detectron2/projects/PointSup/tools/prepare_coco_point_annotations_without_masks.py new file mode 100755 index 0000000..e4aee2a --- /dev/null +++ b/detectron2/projects/PointSup/tools/prepare_coco_point_annotations_without_masks.py @@ -0,0 +1,108 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import copy +import json +import numpy as np +import os +import sys +import pycocotools.mask as mask_utils + +from detectron2.utils.env import seed_all_rng +from detectron2.utils.file_io import PathManager + + +def get_point_annotations(input_filename, output_filename, num_points_per_instance): + with PathManager.open(input_filename, "r") as f: + coco_json = json.load(f) + + coco_annos = coco_json.pop("annotations") + coco_points_json = copy.deepcopy(coco_json) + + imgs = {} + for img in coco_json["images"]: + imgs[img["id"]] = img + + new_annos = [] + for ann in coco_annos: + # convert mask + t = imgs[ann["image_id"]] + h, w = t["height"], t["width"] + segm = ann.pop("segmentation") + if type(segm) == list: + # polygon -- a single object might consist of multiple parts + # we merge all parts into one mask rle code + rles = mask_utils.frPyObjects(segm, h, w) + rle = mask_utils.merge(rles) + elif type(segm["counts"]) == list: + # uncompressed RLE + rle = mask_utils.frPyObjects(segm, h, w) + else: + # rle + rle = segm + mask = mask_utils.decode(rle) + new_ann = copy.deepcopy(ann) + # sample points in image coordinates + box = ann["bbox"] + point_coords_wrt_image = np.random.rand(num_points_per_instance, 2) + point_coords_wrt_image[:, 0] = point_coords_wrt_image[:, 0] * box[2] + point_coords_wrt_image[:, 1] = point_coords_wrt_image[:, 1] * box[3] + point_coords_wrt_image[:, 0] += box[0] + point_coords_wrt_image[:, 1] += box[1] + # round to integer coordinates + point_coords_wrt_image = np.floor(point_coords_wrt_image).astype(int) + # get labels + assert (point_coords_wrt_image >= 0).all(), (point_coords_wrt_image, mask.shape) + assert (point_coords_wrt_image[:, 0] < w).all(), (point_coords_wrt_image, mask.shape) + assert (point_coords_wrt_image[:, 1] < h).all(), (point_coords_wrt_image, mask.shape) + point_labels = mask[point_coords_wrt_image[:, 1], point_coords_wrt_image[:, 0]] + # store new annotations + new_ann["point_coords"] = point_coords_wrt_image.tolist() + new_ann["point_labels"] = point_labels.tolist() + new_annos.append(new_ann) + coco_points_json["annotations"] = new_annos + + with PathManager.open(output_filename, "w") as f: + json.dump(coco_points_json, f) + + print("{} is modified and stored in {}.".format(input_filename, output_filename)) + + +if __name__ == "__main__": + """ + Generate point-based supervision for COCO dataset. + + Usage: + python tools/prepare_coco_point_annotations_without_masks.py \ + NUM_POINTS_PER_INSTANCE NUM_VERSIONS_WITH_DIFFERENT_SEED + + Example to generate point-based COCO dataset with 10 points per instance: + python tools/prepare_coco_point_annotations_without_masks.py 10 + """ + + # Fix random seed + seed_all_rng(12345) + + assert len(sys.argv) >= 2, "Please provide number of points to sample per instance" + dataset_dir = os.path.join(os.getenv("DETECTRON2_DATASETS", "datasets"), "coco/annotations") + num_points_per_instance = int(sys.argv[1]) + if len(sys.argv) == 3: + repeat = int(sys.argv[2]) + else: + repeat = 1 + s = "instances_train2017" + for version in range(repeat): + print( + "Start sampling {} points per instance for annotations {}.".format( + num_points_per_instance, s + ) + ) + get_point_annotations( + os.path.join(dataset_dir, "{}.json".format(s)), + os.path.join( + dataset_dir, + "{}_n{}_v{}_without_masks.json".format(s, num_points_per_instance, version + 1), + ), + num_points_per_instance, + ) diff --git a/detectron2/projects/PointSup/train_net.py b/detectron2/projects/PointSup/train_net.py new file mode 100755 index 0000000..0fe970a --- /dev/null +++ b/detectron2/projects/PointSup/train_net.py @@ -0,0 +1,115 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Point supervision Training Script. + +This script is a simplified version of the training script in detectron2/tools. +""" + +import os + +import detectron2.utils.comm as comm +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import MetadataCatalog, build_detection_train_loader +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch +from detectron2.evaluation import COCOEvaluator, DatasetEvaluators, verify_results +from detectron2.projects.point_rend import add_pointrend_config +from detectron2.utils.logger import setup_logger + +from point_sup import PointSupDatasetMapper, add_point_sup_config + + +class Trainer(DefaultTrainer): + """ + We use the "DefaultTrainer" which contains pre-defined default logic for + standard training workflow. They may not work for you, especially if you + are working on a new research project. In that case you can write your + own training loop. You can use "tools/plain_train_net.py" as an example. + """ + + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type == "coco": + evaluator_list.append(COCOEvaluator(dataset_name, output_dir=output_folder)) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format( + dataset_name, evaluator_type + ) + ) + elif len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + @classmethod + def build_train_loader(cls, cfg): + if cfg.INPUT.POINT_SUP: + mapper = PointSupDatasetMapper(cfg, is_train=True) + else: + mapper = None + return build_detection_train_loader(cfg, mapper=mapper) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + add_pointrend_config(cfg) + add_point_sup_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + # Setup logger for "point_sup" module + setup_logger(output=cfg.OUTPUT_DIR, distributed_rank=comm.get_rank(), name="point_sup") + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + if cfg.TEST.AUG.ENABLED: + res.update(Trainer.test_with_TTA(cfg, model)) + if comm.is_main_process(): + verify_results(cfg, res) + return res + + """ + If you'd like to do anything fancier than the standard training logic, + consider writing your own training loop (see plain_train_net.py) or + subclassing the trainer. + """ + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/projects/README.md b/detectron2/projects/README.md new file mode 100755 index 0000000..7fb29af --- /dev/null +++ b/detectron2/projects/README.md @@ -0,0 +1,50 @@ + +Here are a few projects that are built on detectron2. +They are examples of how to use detectron2 as a library, to make your projects more +maintainable. + +## Projects by Facebook + +Note that these are research projects, and therefore may not have the same level +of support or stability as detectron2. + ++ [DensePose: Dense Human Pose Estimation In The Wild](DensePose) ++ [Scale-Aware Trident Networks for Object Detection](TridentNet) ++ [TensorMask: A Foundation for Dense Object Segmentation](TensorMask) ++ [Mesh R-CNN](https://github.com/facebookresearch/meshrcnn) ++ [PointRend: Image Segmentation as Rendering](PointRend) ++ [Momentum Contrast for Unsupervised Visual Representation Learning](https://github.com/facebookresearch/moco/tree/master/detection) ++ [DETR: End-to-End Object Detection with Transformers](https://github.com/facebookresearch/detr/tree/master/d2) ++ [Panoptic-DeepLab: A Simple, Strong, and Fast Baseline for Bottom-Up Panoptic Segmentation](Panoptic-DeepLab) ++ [D2Go (Detectron2Go)](https://github.com/facebookresearch/d2go), an end-to-end production system for training and deployment for mobile platforms. ++ [Pointly-Supervised Instance Segmentation](PointSup) ++ [Unbiased Teacher for Semi-Supervised Object Detection](https://github.com/facebookresearch/unbiased-teacher) ++ [Rethinking "Batch" in BatchNorm](Rethinking-BatchNorm/) ++ [Per-Pixel Classification is Not All You Need for Semantic Segmentation](https://github.com/facebookresearch/MaskFormer) ++ [Exploring Plain Vision Transformer Backbones for Object Detection](ViTDet/) ++ [MViTv2: Improved Multiscale Vision Transformers for Classification and Detection](MViTv2/) + + +## External Projects + +External projects in the community that use detectron2: + + + ++ [AdelaiDet](https://github.com/aim-uofa/adet), a detection toolbox including FCOS, BlendMask, etc. ++ [CenterMask](https://github.com/youngwanLEE/centermask2) ++ [Res2Net backbones](https://github.com/Res2Net/Res2Net-detectron2) ++ [VoVNet backbones](https://github.com/youngwanLEE/vovnet-detectron2) ++ [FsDet](https://github.com/ucbdrive/few-shot-object-detection), Few-Shot Object Detection. ++ [Sparse R-CNN](https://github.com/PeizeSun/SparseR-CNN) ++ [BCNet](https://github.com/lkeab/BCNet), a bilayer decoupling instance segmentation method. ++ [DD3D](https://github.com/TRI-ML/dd3d), A fully convolutional 3D detector. ++ [detrex](https://github.com/IDEA-Research/detrex), a detection toolbox for transformer-based detection algorithms including Deformable-DETR, DAB-DETR, DN-DETR, DINO, etc. diff --git a/detectron2/projects/Rethinking-BatchNorm/README.md b/detectron2/projects/Rethinking-BatchNorm/README.md new file mode 100755 index 0000000..42c5c68 --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/README.md @@ -0,0 +1,36 @@ +# Rethinking "Batch" in BatchNorm + +We provide configs that reproduce detection experiments in the paper [Rethinking "Batch" in BatchNorm](https://arxiv.org/abs/2105.07576). + +All configs can be trained with: + +``` +../../tools/lazyconfig_train_net.py --config-file configs/X.py --num-gpus 8 +``` + +## Mask R-CNN + +* `mask_rcnn_BNhead.py`, `mask_rcnn_BNhead_batch_stats.py`: + Mask R-CNN with BatchNorm in the head. See Table 3 in the paper. + +* `mask_rcnn_BNhead_shuffle.py`: Mask R-CNN with cross-GPU shuffling of head inputs. + See Figure 9 and Table 6 in the paper. + +* `mask_rcnn_SyncBNhead.py`: Mask R-CNN with cross-GPU SyncBatchNorm in the head. + It matches Table 6 in the paper. + +## RetinaNet + +* `retinanet_SyncBNhead.py`: RetinaNet with SyncBN in head, a straightforward implementation + which matches row 3 of Table 5. + +* `retinanet_SyncBNhead_SharedTraining.py`: RetinaNet with SyncBN in head, normalizing + all 5 feature levels together. Match row 1 of Table 5. + +The script `retinanet-eval-domain-specific.py` evaluates a checkpoint after recomputing +domain-specific statistics. Running it with +``` +./retinanet-eval-domain-specific.py checkpoint.pth +``` +on a model produced by the above two configs, can produce results that match row 4 and +row 2 of Table 5. diff --git a/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead.py b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead.py new file mode 100755 index 0000000..336c133 --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead.py @@ -0,0 +1,18 @@ +from detectron2.model_zoo import get_config + +model = get_config("common/models/mask_rcnn_fpn.py").model + +model.backbone.bottom_up.freeze_at = 2 + +model.roi_heads.box_head.conv_norm = model.roi_heads.mask_head.conv_norm = "BN" +# 4conv1fc head +model.roi_heads.box_head.conv_dims = [256, 256, 256, 256] +model.roi_heads.box_head.fc_dims = [1024] + +dataloader = get_config("common/data/coco.py").dataloader +lr_multiplier = get_config("common/coco_schedule.py").lr_multiplier_3x +optimizer = get_config("common/optim.py").SGD +train = get_config("common/train.py").train + +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" +train.max_iter = 270000 # 3x for batchsize = 16 diff --git a/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_batch_stats.py b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_batch_stats.py new file mode 100755 index 0000000..872e17c --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_batch_stats.py @@ -0,0 +1,20 @@ +from torch.nn import BatchNorm2d +from torch.nn import functional as F + + +class BatchNormBatchStat(BatchNorm2d): + """ + BN that uses batch stat in inference + """ + + def forward(self, input): + if self.training: + return super().forward(input) + return F.batch_norm(input, None, None, self.weight, self.bias, True, 1.0, self.eps) + + +# After training with the base config, it's sufficient to load its model with +# this config only for inference -- because the training-time behavior is identical. +from .mask_rcnn_BNhead import model, dataloader, lr_multiplier, optimizer, train + +model.roi_heads.box_head.conv_norm = model.roi_heads.mask_head.conv_norm = BatchNormBatchStat diff --git a/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_shuffle.py b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_shuffle.py new file mode 100755 index 0000000..5117a7d --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_BNhead_shuffle.py @@ -0,0 +1,74 @@ +import math +import torch +import torch.distributed as dist + +from detectron2.modeling.roi_heads import FastRCNNConvFCHead, MaskRCNNConvUpsampleHead +from detectron2.utils import comm +from fvcore.nn.distributed import differentiable_all_gather + + +def concat_all_gather(input): + bs_int = input.shape[0] + size_list = comm.all_gather(bs_int) + max_size = max(size_list) + max_shape = (max_size,) + input.shape[1:] + + padded_input = input.new_zeros(max_shape) + padded_input[:bs_int] = input + all_inputs = differentiable_all_gather(padded_input) + inputs = [x[:sz] for sz, x in zip(size_list, all_inputs)] + return inputs, size_list + + +def batch_shuffle(x): + # gather from all gpus + batch_size_this = x.shape[0] + all_xs, batch_size_all = concat_all_gather(x) + all_xs_concat = torch.cat(all_xs, dim=0) + total_bs = sum(batch_size_all) + + rank = dist.get_rank() + assert batch_size_all[rank] == batch_size_this + + idx_range = (sum(batch_size_all[:rank]), sum(batch_size_all[: rank + 1])) + + # random shuffle index + idx_shuffle = torch.randperm(total_bs, device=x.device) + # broadcast to all gpus + dist.broadcast(idx_shuffle, src=0) + + # index for restoring + idx_unshuffle = torch.argsort(idx_shuffle) + + # shuffled index for this gpu + splits = torch.split(idx_shuffle, math.ceil(total_bs / dist.get_world_size())) + if len(splits) > rank: + idx_this = splits[rank] + else: + idx_this = idx_shuffle.new_zeros([0]) + return all_xs_concat[idx_this], idx_unshuffle[idx_range[0] : idx_range[1]] + + +def batch_unshuffle(x, idx_unshuffle): + all_x, _ = concat_all_gather(x) + x_gather = torch.cat(all_x, dim=0) + return x_gather[idx_unshuffle] + + +def wrap_shuffle(module_type, method): + def new_method(self, x): + if self.training: + x, idx = batch_shuffle(x) + x = getattr(module_type, method)(self, x) + if self.training: + x = batch_unshuffle(x, idx) + return x + + return type(module_type.__name__ + "WithShuffle", (module_type,), {method: new_method}) + + +from .mask_rcnn_BNhead import model, dataloader, lr_multiplier, optimizer, train + + +model.roi_heads.box_head._target_ = wrap_shuffle(FastRCNNConvFCHead, "forward") +model.roi_heads.mask_head._target_ = wrap_shuffle(MaskRCNNConvUpsampleHead, "layers") diff --git a/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_SyncBNhead.py b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_SyncBNhead.py new file mode 100755 index 0000000..5f05da0 --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/configs/mask_rcnn_SyncBNhead.py @@ -0,0 +1,3 @@ +from .mask_rcnn_BNhead import model, dataloader, lr_multiplier, optimizer, train + +model.roi_heads.box_head.conv_norm = model.roi_heads.mask_head.conv_norm = "SyncBN" diff --git a/detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead.py b/detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead.py new file mode 100755 index 0000000..222dfdd --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead.py @@ -0,0 +1,19 @@ +from detectron2.model_zoo import get_config +from torch import nn + +model = get_config("common/models/retinanet.py").model +model.backbone.bottom_up.freeze_at = 2 + +# The head will overwrite string "SyncBN" to use domain-specific BN, so we +# provide a class here to use shared BN in training. +model.head.norm = nn.SyncBatchNorm2d + +dataloader = get_config("common/data/coco.py").dataloader +lr_multiplier = get_config("common/coco_schedule.py").lr_multiplier_3x +optimizer = get_config("common/optim.py").SGD +train = get_config("common/train.py").train + +optimizer.lr = 0.01 + +train.init_checkpoint = "detectron2://ImageNetPretrained/MSRA/R-50.pkl" +train.max_iter = 270000 # 3x for batchsize = 16 diff --git a/detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead_SharedTraining.py b/detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead_SharedTraining.py new file mode 100755 index 0000000..3f14600 --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/configs/retinanet_SyncBNhead_SharedTraining.py @@ -0,0 +1,32 @@ +from typing import List +import torch +from torch import Tensor, nn + +from detectron2.modeling.meta_arch.retinanet import RetinaNetHead + + +def apply_sequential(inputs, modules): + for mod in modules: + if isinstance(mod, (nn.BatchNorm2d, nn.SyncBatchNorm)): + # for BN layer, normalize all inputs together + shapes = [i.shape for i in inputs] + spatial_sizes = [s[2] * s[3] for s in shapes] + x = [i.flatten(2) for i in inputs] + x = torch.cat(x, dim=2).unsqueeze(3) + x = mod(x).split(spatial_sizes, dim=2) + inputs = [i.view(s) for s, i in zip(shapes, x)] + else: + inputs = [mod(i) for i in inputs] + return inputs + + +class RetinaNetHead_SharedTrainingBN(RetinaNetHead): + def forward(self, features: List[Tensor]): + logits = apply_sequential(features, list(self.cls_subnet) + [self.cls_score]) + bbox_reg = apply_sequential(features, list(self.bbox_subnet) + [self.bbox_pred]) + return logits, bbox_reg + + +from .retinanet_SyncBNhead import model, dataloader, lr_multiplier, optimizer, train + +model.head._target_ = RetinaNetHead_SharedTrainingBN diff --git a/detectron2/projects/Rethinking-BatchNorm/retinanet-eval-domain-specific.py b/detectron2/projects/Rethinking-BatchNorm/retinanet-eval-domain-specific.py new file mode 100755 index 0000000..49a74ad --- /dev/null +++ b/detectron2/projects/Rethinking-BatchNorm/retinanet-eval-domain-specific.py @@ -0,0 +1,35 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +import sys +import torch +from fvcore.nn.precise_bn import update_bn_stats + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import LazyConfig, instantiate +from detectron2.evaluation import inference_on_dataset +from detectron2.layers import CycleBatchNormList +from detectron2.utils.events import EventStorage +from detectron2.utils.logger import setup_logger + +logger = setup_logger() +setup_logger(name="fvcore") + + +if __name__ == "__main__": + checkpoint = sys.argv[1] + cfg = LazyConfig.load_rel("./configs/retinanet_SyncBNhead.py") + model = cfg.model + model.head.norm = lambda c: CycleBatchNormList(len(model.head_in_features), num_features=c) + model = instantiate(model) + model.cuda() + DetectionCheckpointer(model).load(checkpoint) + + cfg.dataloader.train.total_batch_size = 8 + logger.info("Running PreciseBN ...") + with EventStorage(), torch.no_grad(): + update_bn_stats(model, instantiate(cfg.dataloader.train), 500) + + logger.info("Running evaluation ...") + inference_on_dataset( + model, instantiate(cfg.dataloader.test), instantiate(cfg.dataloader.evaluator) + ) diff --git a/detectron2/projects/TensorMask/README.md b/detectron2/projects/TensorMask/README.md new file mode 100755 index 0000000..e81307c --- /dev/null +++ b/detectron2/projects/TensorMask/README.md @@ -0,0 +1,63 @@ + +# TensorMask in Detectron2 +**A Foundation for Dense Object Segmentation** + +Xinlei Chen, Ross Girshick, Kaiming He, Piotr Dollár + +[[`arXiv`](https://arxiv.org/abs/1903.12174)] [[`BibTeX`](#CitingTensorMask)] + +
+ +
+ +In this repository, we release code for TensorMask in Detectron2. +TensorMask is a dense sliding-window instance segmentation framework that, for the first time, achieves results close to the well-developed Mask R-CNN framework -- both qualitatively and quantitatively. It establishes a conceptually complementary direction for object instance segmentation research. + +## Installation +First install Detectron2 following the [documentation](https://detectron2.readthedocs.io/tutorials/install.html) and +[setup the dataset](../../datasets). Then compile the TensorMask-specific op (`swap_align2nat`): +```bash +pip install -e /path/to/detectron2/projects/TensorMask +``` + +## Training + +To train a model, run: +```bash +python /path/to/detectron2/projects/TensorMask/train_net.py --config-file +``` + +For example, to launch TensorMask BiPyramid training (1x schedule) with ResNet-50 backbone on 8 GPUs, +one should execute: +```bash +python /path/to/detectron2/projects/TensorMask/train_net.py --config-file configs/tensormask_R_50_FPN_1x.yaml --num-gpus 8 +``` + +## Evaluation + +Model evaluation can be done similarly (6x schedule with scale augmentation): +```bash +python /path/to/detectron2/projects/TensorMask/train_net.py --config-file configs/tensormask_R_50_FPN_6x.yaml --eval-only MODEL.WEIGHTS /path/to/model_checkpoint +``` + +# Pretrained Models + +| Backbone | lr sched | AP box | AP mask | download | +| -------- | -------- | -- | --- | -------- | +| R50 | 1x | 37.6 | 32.4 | model \|  metrics | +| R50 | 6x | 41.4 | 35.8 | model \|  metrics | + + +## Citing TensorMask + +If you use TensorMask, please use the following BibTeX entry. + +``` +@InProceedings{chen2019tensormask, + title={Tensormask: A Foundation for Dense Object Segmentation}, + author={Chen, Xinlei and Girshick, Ross and He, Kaiming and Doll{\'a}r, Piotr}, + journal={The International Conference on Computer Vision (ICCV)}, + year={2019} +} +``` + diff --git a/detectron2/projects/TensorMask/configs/Base-TensorMask.yaml b/detectron2/projects/TensorMask/configs/Base-TensorMask.yaml new file mode 100755 index 0000000..a724534 --- /dev/null +++ b/detectron2/projects/TensorMask/configs/Base-TensorMask.yaml @@ -0,0 +1,25 @@ +MODEL: + META_ARCHITECTURE: "TensorMask" + MASK_ON: True + BACKBONE: + NAME: "build_retinanet_resnet_fpn_backbone" + RESNETS: + OUT_FEATURES: ["res2", "res3", "res4", "res5"] + ANCHOR_GENERATOR: + SIZES: [[44, 60], [88, 120], [176, 240], [352, 480], [704, 960], [1408, 1920]] + ASPECT_RATIOS: [[1.0]] + FPN: + IN_FEATURES: ["res2", "res3", "res4", "res5"] + FUSE_TYPE: "avg" + TENSOR_MASK: + ALIGNED_ON: True + BIPYRAMID_ON: True +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +VERSION: 2 diff --git a/detectron2/projects/TensorMask/configs/tensormask_R_50_FPN_1x.yaml b/detectron2/projects/TensorMask/configs/tensormask_R_50_FPN_1x.yaml new file mode 100755 index 0000000..5d5eee1 --- /dev/null +++ b/detectron2/projects/TensorMask/configs/tensormask_R_50_FPN_1x.yaml @@ -0,0 +1,5 @@ +_BASE_: "Base-TensorMask.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 diff --git a/detectron2/projects/TensorMask/configs/tensormask_R_50_FPN_6x.yaml b/detectron2/projects/TensorMask/configs/tensormask_R_50_FPN_6x.yaml new file mode 100755 index 0000000..366a965 --- /dev/null +++ b/detectron2/projects/TensorMask/configs/tensormask_R_50_FPN_6x.yaml @@ -0,0 +1,11 @@ +_BASE_: "Base-TensorMask.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (480000, 520000) + MAX_ITER: 540000 +INPUT: + MIN_SIZE_TRAIN_SAMPLING: "range" + MIN_SIZE_TRAIN: (640, 800) diff --git a/detectron2/projects/TensorMask/setup.py b/detectron2/projects/TensorMask/setup.py new file mode 100755 index 0000000..f6980e0 --- /dev/null +++ b/detectron2/projects/TensorMask/setup.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. + +import glob +import os +from setuptools import find_packages, setup +import torch +from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension + + +def get_extensions(): + this_dir = os.path.dirname(os.path.abspath(__file__)) + extensions_dir = os.path.join(this_dir, "tensormask", "layers", "csrc") + + main_source = os.path.join(extensions_dir, "vision.cpp") + sources = glob.glob(os.path.join(extensions_dir, "**", "*.cpp")) + source_cuda = glob.glob(os.path.join(extensions_dir, "**", "*.cu")) + glob.glob( + os.path.join(extensions_dir, "*.cu") + ) + + sources = [main_source] + sources + + extension = CppExtension + + extra_compile_args = {"cxx": []} + define_macros = [] + + if (torch.cuda.is_available() and CUDA_HOME is not None) or os.getenv("FORCE_CUDA", "0") == "1": + extension = CUDAExtension + sources += source_cuda + define_macros += [("WITH_CUDA", None)] + extra_compile_args["nvcc"] = [ + "-DCUDA_HAS_FP16=1", + "-D__CUDA_NO_HALF_OPERATORS__", + "-D__CUDA_NO_HALF_CONVERSIONS__", + "-D__CUDA_NO_HALF2_OPERATORS__", + ] + + # It's better if pytorch can do this by default .. + CC = os.environ.get("CC", None) + if CC is not None: + extra_compile_args["nvcc"].append("-ccbin={}".format(CC)) + + sources = [os.path.join(extensions_dir, s) for s in sources] + + include_dirs = [extensions_dir] + + ext_modules = [ + extension( + "tensormask._C", + sources, + include_dirs=include_dirs, + define_macros=define_macros, + extra_compile_args=extra_compile_args, + ) + ] + + return ext_modules + + +setup( + name="tensormask", + version="0.1", + author="FAIR", + packages=find_packages(exclude=("configs", "tests")), + python_requires=">=3.7", + ext_modules=get_extensions(), + cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}, +) diff --git a/detectron2/projects/TensorMask/tensormask/__init__.py b/detectron2/projects/TensorMask/tensormask/__init__.py new file mode 100755 index 0000000..eec7978 --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/__init__.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .config import add_tensormask_config +from .arch import TensorMask diff --git a/detectron2/projects/TensorMask/tensormask/arch.py b/detectron2/projects/TensorMask/tensormask/arch.py new file mode 100755 index 0000000..d395bea --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/arch.py @@ -0,0 +1,913 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import math +from typing import List +import torch +import torch.nn.functional as F +from fvcore.nn import sigmoid_focal_loss_star_jit, smooth_l1_loss +from torch import nn + +from detectron2.layers import ShapeSpec, batched_nms, cat, paste_masks_in_image +from detectron2.modeling.anchor_generator import DefaultAnchorGenerator +from detectron2.modeling.backbone import build_backbone +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.meta_arch.build import META_ARCH_REGISTRY +from detectron2.modeling.meta_arch.retinanet import permute_to_N_HWA_K +from detectron2.structures import Boxes, ImageList, Instances + +from tensormask.layers import SwapAlign2Nat + +__all__ = ["TensorMask"] + + +def permute_all_cls_and_box_to_N_HWA_K_and_concat(pred_logits, pred_anchor_deltas, num_classes=80): + """ + Rearrange the tensor layout from the network output, i.e.: + list[Tensor]: #lvl tensors of shape (N, A x K, Hi, Wi) + to per-image predictions, i.e.: + Tensor: of shape (N x sum(Hi x Wi x A), K) + """ + # for each feature level, permute the outputs to make them be in the + # same format as the labels. + pred_logits_flattened = [permute_to_N_HWA_K(x, num_classes) for x in pred_logits] + pred_anchor_deltas_flattened = [permute_to_N_HWA_K(x, 4) for x in pred_anchor_deltas] + # concatenate on the first dimension (representing the feature levels), to + # take into account the way the labels were generated (with all feature maps + # being concatenated as well) + pred_logits = cat(pred_logits_flattened, dim=1).view(-1, num_classes) + pred_anchor_deltas = cat(pred_anchor_deltas_flattened, dim=1).view(-1, 4) + return pred_logits, pred_anchor_deltas + + +def _assignment_rule( + gt_boxes, + anchor_boxes, + unit_lengths, + min_anchor_size, + scale_thresh=2.0, + spatial_thresh=1.0, + uniqueness_on=True, +): + """ + Given two lists of boxes of N ground truth boxes and M anchor boxes, + compute the assignment between the two, following the assignment rules in + https://arxiv.org/abs/1903.12174. + The box order must be (xmin, ymin, xmax, ymax), so please make sure to convert + to BoxMode.XYXY_ABS before calling this function. + + Args: + gt_boxes, anchor_boxes (Boxes): two Boxes. Contains N & M boxes/anchors, respectively. + unit_lengths (Tensor): Contains the unit lengths of M anchor boxes. + min_anchor_size (float): Minimum size of the anchor, in pixels + scale_thresh (float): The `scale` threshold: the maximum size of the anchor + should not be greater than scale_thresh x max(h, w) of + the ground truth box. + spatial_thresh (float): The `spatial` threshold: the l2 distance between the + center of the anchor and the ground truth box should not + be greater than spatial_thresh x u where u is the unit length. + + Returns: + matches (Tensor[int64]): a vector of length M, where matches[i] is a matched + ground-truth index in [0, N) + match_labels (Tensor[int8]): a vector of length M, where pred_labels[i] indicates + whether a prediction is a true or false positive or ignored + """ + gt_boxes, anchor_boxes = gt_boxes.tensor, anchor_boxes.tensor + N = gt_boxes.shape[0] + M = anchor_boxes.shape[0] + if N == 0 or M == 0: + return ( + gt_boxes.new_full((N,), 0, dtype=torch.int64), + gt_boxes.new_full((N,), -1, dtype=torch.int8), + ) + + # Containment rule + lt = torch.min(gt_boxes[:, None, :2], anchor_boxes[:, :2]) # [N,M,2] + rb = torch.max(gt_boxes[:, None, 2:], anchor_boxes[:, 2:]) # [N,M,2] + union = cat([lt, rb], dim=2) # [N,M,4] + + dummy_gt_boxes = torch.zeros_like(gt_boxes) + anchor = dummy_gt_boxes[:, None, :] + anchor_boxes[:, :] # [N,M,4] + + contain_matrix = torch.all(union == anchor, dim=2) # [N,M] + + # Centrality rule, scale + gt_size_lower = torch.max(gt_boxes[:, 2:] - gt_boxes[:, :2], dim=1)[0] # [N] + gt_size_upper = gt_size_lower * scale_thresh # [N] + # Fall back for small objects + gt_size_upper[gt_size_upper < min_anchor_size] = min_anchor_size + # Due to sampling of locations, the anchor sizes are deducted with sampling strides + anchor_size = ( + torch.max(anchor_boxes[:, 2:] - anchor_boxes[:, :2], dim=1)[0] - unit_lengths + ) # [M] + + size_diff_upper = gt_size_upper[:, None] - anchor_size # [N,M] + scale_matrix = size_diff_upper >= 0 # [N,M] + + # Centrality rule, spatial + gt_center = (gt_boxes[:, 2:] + gt_boxes[:, :2]) / 2 # [N,2] + anchor_center = (anchor_boxes[:, 2:] + anchor_boxes[:, :2]) / 2 # [M,2] + offset_center = gt_center[:, None, :] - anchor_center[:, :] # [N,M,2] + offset_center /= unit_lengths[:, None] # [N,M,2] + spatial_square = spatial_thresh * spatial_thresh + spatial_matrix = torch.sum(offset_center * offset_center, dim=2) <= spatial_square + + assign_matrix = (contain_matrix & scale_matrix & spatial_matrix).int() + + # assign_matrix is N (gt) x M (predicted) + # Max over gt elements (dim 0) to find best gt candidate for each prediction + matched_vals, matches = assign_matrix.max(dim=0) + match_labels = matches.new_full(matches.size(), 1, dtype=torch.int8) + + match_labels[matched_vals == 0] = 0 + match_labels[matched_vals == 1] = 1 + + # find all the elements that match to ground truths multiple times + not_unique_idxs = assign_matrix.sum(dim=0) > 1 + if uniqueness_on: + match_labels[not_unique_idxs] = 0 + else: + match_labels[not_unique_idxs] = -1 + + return matches, match_labels + + +# TODO make the paste_mask function in d2 core support mask list +def _paste_mask_lists_in_image(masks, boxes, image_shape, threshold=0.5): + """ + Paste a list of masks that are of various resolutions (e.g., 28 x 28) into an image. + The location, height, and width for pasting each mask is determined by their + corresponding bounding boxes in boxes. + + Args: + masks (list(Tensor)): A list of Tensor of shape (1, Hmask_i, Wmask_i). + Values are in [0, 1]. The list length, Bimg, is the + number of detected object instances in the image. + boxes (Boxes): A Boxes of length Bimg. boxes.tensor[i] and masks[i] correspond + to the same object instance. + image_shape (tuple): height, width + threshold (float): A threshold in [0, 1] for converting the (soft) masks to + binary masks. + + Returns: + img_masks (Tensor): A tensor of shape (Bimg, Himage, Wimage), where Bimg is the + number of detected object instances and Himage, Wimage are the image width + and height. img_masks[i] is a binary mask for object instance i. + """ + if len(masks) == 0: + return torch.empty((0, 1) + image_shape, dtype=torch.uint8) + + # Loop over masks groups. Each group has the same mask prediction size. + img_masks = [] + ind_masks = [] + mask_sizes = torch.tensor([m.shape[-1] for m in masks]) + unique_sizes = torch.unique(mask_sizes) + for msize in unique_sizes.tolist(): + cur_ind = torch.where(mask_sizes == msize)[0] + ind_masks.append(cur_ind) + + cur_masks = cat([masks[i] for i in cur_ind]) + cur_boxes = boxes[cur_ind] + img_masks.append(paste_masks_in_image(cur_masks, cur_boxes, image_shape, threshold)) + + img_masks = cat(img_masks) + ind_masks = cat(ind_masks) + + img_masks_out = torch.empty_like(img_masks) + img_masks_out[ind_masks, :, :] = img_masks + + return img_masks_out + + +def _postprocess(results, result_mask_info, output_height, output_width, mask_threshold=0.5): + """ + Post-process the output boxes for TensorMask. + The input images are often resized when entering an object detector. + As a result, we often need the outputs of the detector in a different + resolution from its inputs. + + This function will postprocess the raw outputs of TensorMask + to produce outputs according to the desired output resolution. + + Args: + results (Instances): the raw outputs from the detector. + `results.image_size` contains the input image resolution the detector sees. + This object might be modified in-place. Note that it does not contain the field + `pred_masks`, which is provided by another input `result_masks`. + result_mask_info (list[Tensor], Boxes): a pair of two items for mask related results. + The first item is a list of #detection tensors, each is the predicted masks. + The second item is the anchors corresponding to the predicted masks. + output_height, output_width: the desired output resolution. + + Returns: + Instances: the postprocessed output from the model, based on the output resolution + """ + scale_x, scale_y = (output_width / results.image_size[1], output_height / results.image_size[0]) + results = Instances((output_height, output_width), **results.get_fields()) + + output_boxes = results.pred_boxes + output_boxes.tensor[:, 0::2] *= scale_x + output_boxes.tensor[:, 1::2] *= scale_y + output_boxes.clip(results.image_size) + + inds_nonempty = output_boxes.nonempty() + results = results[inds_nonempty] + result_masks, result_anchors = result_mask_info + if result_masks: + result_anchors.tensor[:, 0::2] *= scale_x + result_anchors.tensor[:, 1::2] *= scale_y + result_masks = [x for (i, x) in zip(inds_nonempty.tolist(), result_masks) if i] + results.pred_masks = _paste_mask_lists_in_image( + result_masks, + result_anchors[inds_nonempty], + results.image_size, + threshold=mask_threshold, + ) + return results + + +class TensorMaskAnchorGenerator(DefaultAnchorGenerator): + """ + For a set of image sizes and feature maps, computes a set of anchors for TensorMask. + It also computes the unit lengths and indexes for each anchor box. + """ + + def grid_anchors_with_unit_lengths_and_indexes(self, grid_sizes): + anchors = [] + unit_lengths = [] + indexes = [] + for lvl, (size, stride, base_anchors) in enumerate( + zip(grid_sizes, self.strides, self.cell_anchors) + ): + grid_height, grid_width = size + device = base_anchors.device + shifts_x = torch.arange( + 0, grid_width * stride, step=stride, dtype=torch.float32, device=device + ) + shifts_y = torch.arange( + 0, grid_height * stride, step=stride, dtype=torch.float32, device=device + ) + shift_y, shift_x = torch.meshgrid(shifts_y, shifts_x) + shifts = torch.stack((shift_x, shift_y, shift_x, shift_y), dim=2) + # Stack anchors in shapes of (HWA, 4) + cur_anchor = (shifts[:, :, None, :] + base_anchors.view(1, 1, -1, 4)).view(-1, 4) + anchors.append(cur_anchor) + unit_lengths.append( + torch.full((cur_anchor.shape[0],), stride, dtype=torch.float32, device=device) + ) + # create mask indexes using mesh grid + shifts_l = torch.full((1,), lvl, dtype=torch.int64, device=device) + shifts_i = torch.zeros((1,), dtype=torch.int64, device=device) + shifts_h = torch.arange(0, grid_height, dtype=torch.int64, device=device) + shifts_w = torch.arange(0, grid_width, dtype=torch.int64, device=device) + shifts_a = torch.arange(0, base_anchors.shape[0], dtype=torch.int64, device=device) + grids = torch.meshgrid(shifts_l, shifts_i, shifts_h, shifts_w, shifts_a) + + indexes.append(torch.stack(grids, dim=5).view(-1, 5)) + + return anchors, unit_lengths, indexes + + def forward(self, features): + """ + Returns: + list[list[Boxes]]: a list of #image elements. Each is a list of #feature level Boxes. + The Boxes contains anchors of this image on the specific feature level. + list[list[Tensor]]: a list of #image elements. Each is a list of #feature level tensors. + The tensor contains strides, or unit lengths for the anchors. + list[list[Tensor]]: a list of #image elements. Each is a list of #feature level tensors. + The Tensor contains indexes for the anchors, with the last dimension meaning + (L, N, H, W, A), where L is level, I is image (not set yet), H is height, + W is width, and A is anchor. + """ + num_images = len(features[0]) + grid_sizes = [feature_map.shape[-2:] for feature_map in features] + anchors_list, lengths_list, indexes_list = self.grid_anchors_with_unit_lengths_and_indexes( + grid_sizes + ) + + # Convert anchors from Tensor to Boxes + anchors_per_im = [Boxes(x) for x in anchors_list] + + # TODO it can be simplified to not return duplicated information for + # each image, just like detectron2's own AnchorGenerator + anchors = [copy.deepcopy(anchors_per_im) for _ in range(num_images)] + unit_lengths = [copy.deepcopy(lengths_list) for _ in range(num_images)] + indexes = [copy.deepcopy(indexes_list) for _ in range(num_images)] + + return anchors, unit_lengths, indexes + + +@META_ARCH_REGISTRY.register() +class TensorMask(nn.Module): + """ + TensorMask model. Creates FPN backbone, anchors and a head for classification + and box regression. Calculates and applies proper losses to class, box, and + masks. + """ + + def __init__(self, cfg): + super().__init__() + + # fmt: off + self.num_classes = cfg.MODEL.TENSOR_MASK.NUM_CLASSES + self.in_features = cfg.MODEL.TENSOR_MASK.IN_FEATURES + self.anchor_sizes = cfg.MODEL.ANCHOR_GENERATOR.SIZES + self.num_levels = len(cfg.MODEL.ANCHOR_GENERATOR.SIZES) + # Loss parameters: + self.focal_loss_alpha = cfg.MODEL.TENSOR_MASK.FOCAL_LOSS_ALPHA + self.focal_loss_gamma = cfg.MODEL.TENSOR_MASK.FOCAL_LOSS_GAMMA + # Inference parameters: + self.score_threshold = cfg.MODEL.TENSOR_MASK.SCORE_THRESH_TEST + self.topk_candidates = cfg.MODEL.TENSOR_MASK.TOPK_CANDIDATES_TEST + self.nms_threshold = cfg.MODEL.TENSOR_MASK.NMS_THRESH_TEST + self.detections_im = cfg.TEST.DETECTIONS_PER_IMAGE + # Mask parameters: + self.mask_on = cfg.MODEL.MASK_ON + self.mask_loss_weight = cfg.MODEL.TENSOR_MASK.MASK_LOSS_WEIGHT + self.mask_pos_weight = torch.tensor(cfg.MODEL.TENSOR_MASK.POSITIVE_WEIGHT, + dtype=torch.float32) + self.bipyramid_on = cfg.MODEL.TENSOR_MASK.BIPYRAMID_ON + # fmt: on + + # build the backbone + self.backbone = build_backbone(cfg) + + backbone_shape = self.backbone.output_shape() + feature_shapes = [backbone_shape[f] for f in self.in_features] + feature_strides = [x.stride for x in feature_shapes] + # build anchors + self.anchor_generator = TensorMaskAnchorGenerator(cfg, feature_shapes) + self.num_anchors = self.anchor_generator.num_cell_anchors[0] + anchors_min_level = cfg.MODEL.ANCHOR_GENERATOR.SIZES[0] + self.mask_sizes = [size // feature_strides[0] for size in anchors_min_level] + self.min_anchor_size = min(anchors_min_level) - feature_strides[0] + + # head of the TensorMask + self.head = TensorMaskHead( + cfg, self.num_levels, self.num_anchors, self.mask_sizes, feature_shapes + ) + # box transform + self.box2box_transform = Box2BoxTransform(weights=cfg.MODEL.TENSOR_MASK.BBOX_REG_WEIGHTS) + self.register_buffer("pixel_mean", torch.tensor(cfg.MODEL.PIXEL_MEAN).view(-1, 1, 1), False) + self.register_buffer("pixel_std", torch.tensor(cfg.MODEL.PIXEL_STD).view(-1, 1, 1), False) + + @property + def device(self): + return self.pixel_mean.device + + def forward(self, batched_inputs): + """ + Args: + batched_inputs: a list, batched outputs of :class:`DetectionTransform` . + Each item in the list contains the inputs for one image. + For now, each item in the list is a dict that contains: + image: Tensor, image in (C, H, W) format. + instances: Instances + Other information that's included in the original dicts, such as: + "height", "width" (int): the output resolution of the model, used in inference. + See :meth:`postprocess` for details. + Returns: + losses (dict[str: Tensor]): mapping from a named loss to a tensor + storing the loss. Used during training only. + """ + images = self.preprocess_image(batched_inputs) + if "instances" in batched_inputs[0]: + gt_instances = [x["instances"].to(self.device) for x in batched_inputs] + else: + gt_instances = None + + features = self.backbone(images.tensor) + features = [features[f] for f in self.in_features] + # apply the TensorMask head + pred_logits, pred_deltas, pred_masks = self.head(features) + # generate anchors based on features, is it image specific? + anchors, unit_lengths, indexes = self.anchor_generator(features) + + if self.training: + # get ground truths for class labels and box targets, it will label each anchor + gt_class_info, gt_delta_info, gt_mask_info, num_fg = self.get_ground_truth( + anchors, unit_lengths, indexes, gt_instances + ) + # compute the loss + return self.losses( + gt_class_info, + gt_delta_info, + gt_mask_info, + num_fg, + pred_logits, + pred_deltas, + pred_masks, + ) + else: + # do inference to get the output + results = self.inference(pred_logits, pred_deltas, pred_masks, anchors, indexes, images) + processed_results = [] + for results_im, input_im, image_size in zip( + results, batched_inputs, images.image_sizes + ): + height = input_im.get("height", image_size[0]) + width = input_im.get("width", image_size[1]) + # this is to do post-processing with the image size + result_box, result_mask = results_im + r = _postprocess(result_box, result_mask, height, width) + processed_results.append({"instances": r}) + return processed_results + + def losses( + self, + gt_class_info, + gt_delta_info, + gt_mask_info, + num_fg, + pred_logits, + pred_deltas, + pred_masks, + ): + """ + Args: + For `gt_class_info`, `gt_delta_info`, `gt_mask_info` and `num_fg` parameters, see + :meth:`TensorMask.get_ground_truth`. + For `pred_logits`, `pred_deltas` and `pred_masks`, see + :meth:`TensorMaskHead.forward`. + + Returns: + losses (dict[str: Tensor]): mapping from a named loss to a scalar tensor + storing the loss. Used during training only. The potential dict keys are: + "loss_cls", "loss_box_reg" and "loss_mask". + """ + gt_classes_target, gt_valid_inds = gt_class_info + gt_deltas, gt_fg_inds = gt_delta_info + gt_masks, gt_mask_inds = gt_mask_info + loss_normalizer = torch.tensor(max(1, num_fg), dtype=torch.float32, device=self.device) + + # classification and regression + pred_logits, pred_deltas = permute_all_cls_and_box_to_N_HWA_K_and_concat( + pred_logits, pred_deltas, self.num_classes + ) + loss_cls = ( + sigmoid_focal_loss_star_jit( + pred_logits[gt_valid_inds], + gt_classes_target[gt_valid_inds], + alpha=self.focal_loss_alpha, + gamma=self.focal_loss_gamma, + reduction="sum", + ) + / loss_normalizer + ) + + if num_fg == 0: + loss_box_reg = pred_deltas.sum() * 0 + else: + loss_box_reg = ( + smooth_l1_loss(pred_deltas[gt_fg_inds], gt_deltas, beta=0.0, reduction="sum") + / loss_normalizer + ) + losses = {"loss_cls": loss_cls, "loss_box_reg": loss_box_reg} + + # mask prediction + if self.mask_on: + loss_mask = 0 + for lvl in range(self.num_levels): + cur_level_factor = 2**lvl if self.bipyramid_on else 1 + for anc in range(self.num_anchors): + cur_gt_mask_inds = gt_mask_inds[lvl][anc] + if cur_gt_mask_inds is None: + loss_mask += pred_masks[lvl][anc][0, 0, 0, 0] * 0 + else: + cur_mask_size = self.mask_sizes[anc] * cur_level_factor + # TODO maybe there are numerical issues when mask sizes are large + cur_size_divider = torch.tensor( + self.mask_loss_weight / (cur_mask_size**2), + dtype=torch.float32, + device=self.device, + ) + + cur_pred_masks = pred_masks[lvl][anc][ + cur_gt_mask_inds[:, 0], # N + :, # V x U + cur_gt_mask_inds[:, 1], # H + cur_gt_mask_inds[:, 2], # W + ] + + loss_mask += F.binary_cross_entropy_with_logits( + cur_pred_masks.view(-1, cur_mask_size, cur_mask_size), # V, U + gt_masks[lvl][anc].to(dtype=torch.float32), + reduction="sum", + weight=cur_size_divider, + pos_weight=self.mask_pos_weight, + ) + losses["loss_mask"] = loss_mask / loss_normalizer + return losses + + @torch.no_grad() + def get_ground_truth(self, anchors, unit_lengths, indexes, targets): + """ + Args: + anchors (list[list[Boxes]]): a list of N=#image elements. Each is a + list of #feature level Boxes. The Boxes contains anchors of + this image on the specific feature level. + unit_lengths (list[list[Tensor]]): a list of N=#image elements. Each is a + list of #feature level Tensor. The tensor contains unit lengths for anchors of + this image on the specific feature level. + indexes (list[list[Tensor]]): a list of N=#image elements. Each is a + list of #feature level Tensor. The tensor contains the 5D index of + each anchor, the second dimension means (L, N, H, W, A), where L + is level, I is image, H is height, W is width, and A is anchor. + targets (list[Instances]): a list of N `Instances`s. The i-th + `Instances` contains the ground-truth per-instance annotations + for the i-th input image. Specify `targets` during training only. + + Returns: + gt_class_info (Tensor, Tensor): A pair of two tensors for classification. + The first one is an integer tensor of shape (R, #classes) storing ground-truth + labels for each anchor. R is the total number of anchors in the batch. + The second one is an integer tensor of shape (R,), to indicate which + anchors are valid for loss computation, which anchors are not. + gt_delta_info (Tensor, Tensor): A pair of two tensors for boxes. + The first one, of shape (F, 4). F=#foreground anchors. + The last dimension represents ground-truth box2box transform + targets (dx, dy, dw, dh) that map each anchor to its matched ground-truth box. + Only foreground anchors have values in this tensor. Could be `None` if F=0. + The second one, of shape (R,), is an integer tensor indicating which anchors + are foreground ones used for box regression. Could be `None` if F=0. + gt_mask_info (list[list[Tensor]], list[list[Tensor]]): A pair of two lists for masks. + The first one is a list of P=#feature level elements. Each is a + list of A=#anchor tensors. Each tensor contains the ground truth + masks of the same size and for the same feature level. Could be `None`. + The second one is a list of P=#feature level elements. Each is a + list of A=#anchor tensors. Each tensor contains the location of the ground truth + masks of the same size and for the same feature level. The second dimension means + (N, H, W), where N is image, H is height, and W is width. Could be `None`. + num_fg (int): F=#foreground anchors, used later for loss normalization. + """ + gt_classes = [] + gt_deltas = [] + gt_masks = [[[] for _ in range(self.num_anchors)] for _ in range(self.num_levels)] + gt_mask_inds = [[[] for _ in range(self.num_anchors)] for _ in range(self.num_levels)] + + anchors = [Boxes.cat(anchors_i) for anchors_i in anchors] + unit_lengths = [cat(unit_lengths_i) for unit_lengths_i in unit_lengths] + indexes = [cat(indexes_i) for indexes_i in indexes] + + num_fg = 0 + for i, (anchors_im, unit_lengths_im, indexes_im, targets_im) in enumerate( + zip(anchors, unit_lengths, indexes, targets) + ): + # Initialize all + gt_classes_i = torch.full_like( + unit_lengths_im, self.num_classes, dtype=torch.int64, device=self.device + ) + # Ground truth classes + has_gt = len(targets_im) > 0 + if has_gt: + # Compute the pairwise matrix + gt_matched_inds, anchor_labels = _assignment_rule( + targets_im.gt_boxes, anchors_im, unit_lengths_im, self.min_anchor_size + ) + # Find the foreground instances + fg_inds = anchor_labels == 1 + fg_anchors = anchors_im[fg_inds] + num_fg += len(fg_anchors) + # Find the ground truths for foreground instances + gt_fg_matched_inds = gt_matched_inds[fg_inds] + # Assign labels for foreground instances + gt_classes_i[fg_inds] = targets_im.gt_classes[gt_fg_matched_inds] + # Anchors with label -1 are ignored, others are left as negative + gt_classes_i[anchor_labels == -1] = -1 + + # Boxes + # Ground truth box regression, only for foregrounds + matched_gt_boxes = targets_im[gt_fg_matched_inds].gt_boxes + # Compute box regression offsets for foregrounds only + gt_deltas_i = self.box2box_transform.get_deltas( + fg_anchors.tensor, matched_gt_boxes.tensor + ) + gt_deltas.append(gt_deltas_i) + + # Masks + if self.mask_on: + # Compute masks for each level and each anchor + matched_indexes = indexes_im[fg_inds, :] + for lvl in range(self.num_levels): + ids_lvl = matched_indexes[:, 0] == lvl + if torch.any(ids_lvl): + cur_level_factor = 2**lvl if self.bipyramid_on else 1 + for anc in range(self.num_anchors): + ids_lvl_anchor = ids_lvl & (matched_indexes[:, 4] == anc) + if torch.any(ids_lvl_anchor): + gt_masks[lvl][anc].append( + targets_im[ + gt_fg_matched_inds[ids_lvl_anchor] + ].gt_masks.crop_and_resize( + fg_anchors[ids_lvl_anchor].tensor, + self.mask_sizes[anc] * cur_level_factor, + ) + ) + # Select (N, H, W) dimensions + gt_mask_inds_lvl_anc = matched_indexes[ids_lvl_anchor, 1:4] + # Set the image index to the current image + gt_mask_inds_lvl_anc[:, 0] = i + gt_mask_inds[lvl][anc].append(gt_mask_inds_lvl_anc) + gt_classes.append(gt_classes_i) + + # Classes and boxes + gt_classes = cat(gt_classes) + gt_valid_inds = gt_classes >= 0 + gt_fg_inds = gt_valid_inds & (gt_classes < self.num_classes) + gt_classes_target = torch.zeros( + (gt_classes.shape[0], self.num_classes), dtype=torch.float32, device=self.device + ) + gt_classes_target[gt_fg_inds, gt_classes[gt_fg_inds]] = 1 + gt_deltas = cat(gt_deltas) if gt_deltas else None + + # Masks + gt_masks = [[cat(mla) if mla else None for mla in ml] for ml in gt_masks] + gt_mask_inds = [[cat(ila) if ila else None for ila in il] for il in gt_mask_inds] + return ( + (gt_classes_target, gt_valid_inds), + (gt_deltas, gt_fg_inds), + (gt_masks, gt_mask_inds), + num_fg, + ) + + def inference(self, pred_logits, pred_deltas, pred_masks, anchors, indexes, images): + """ + Arguments: + pred_logits, pred_deltas, pred_masks: Same as the output of: + meth:`TensorMaskHead.forward` + anchors, indexes: Same as the input of meth:`TensorMask.get_ground_truth` + images (ImageList): the input images + + Returns: + results (List[Instances]): a list of #images elements. + """ + assert len(anchors) == len(images) + results = [] + + pred_logits = [permute_to_N_HWA_K(x, self.num_classes) for x in pred_logits] + pred_deltas = [permute_to_N_HWA_K(x, 4) for x in pred_deltas] + + pred_logits = cat(pred_logits, dim=1) + pred_deltas = cat(pred_deltas, dim=1) + + for img_idx, (anchors_im, indexes_im) in enumerate(zip(anchors, indexes)): + # Get the size of the current image + image_size = images.image_sizes[img_idx] + + logits_im = pred_logits[img_idx] + deltas_im = pred_deltas[img_idx] + + if self.mask_on: + masks_im = [[mla[img_idx] for mla in ml] for ml in pred_masks] + else: + masks_im = [None] * self.num_levels + results_im = self.inference_single_image( + logits_im, + deltas_im, + masks_im, + Boxes.cat(anchors_im), + cat(indexes_im), + tuple(image_size), + ) + results.append(results_im) + return results + + def inference_single_image( + self, pred_logits, pred_deltas, pred_masks, anchors, indexes, image_size + ): + """ + Single-image inference. Return bounding-box detection results by thresholding + on scores and applying non-maximum suppression (NMS). + + Arguments: + pred_logits (list[Tensor]): list of #feature levels. Each entry contains + tensor of size (AxHxW, K) + pred_deltas (list[Tensor]): Same shape as 'pred_logits' except that K becomes 4. + pred_masks (list[list[Tensor]]): List of #feature levels, each is a list of #anchors. + Each entry contains tensor of size (M_i*M_i, H, W). `None` if mask_on=False. + anchors (list[Boxes]): list of #feature levels. Each entry contains + a Boxes object, which contains all the anchors for that + image in that feature level. + image_size (tuple(H, W)): a tuple of the image height and width. + + Returns: + Same as `inference`, but for only one image. + """ + pred_logits = pred_logits.flatten().sigmoid_() + # We get top locations across all levels to accelerate the inference speed, + # which does not seem to affect the accuracy. + # First select values above the threshold + logits_top_idxs = torch.where(pred_logits > self.score_threshold)[0] + # Then get the top values + num_topk = min(self.topk_candidates, logits_top_idxs.shape[0]) + pred_prob, topk_idxs = pred_logits[logits_top_idxs].sort(descending=True) + # Keep top k scoring values + pred_prob = pred_prob[:num_topk] + # Keep top k values + top_idxs = logits_top_idxs[topk_idxs[:num_topk]] + + # class index + cls_idxs = top_idxs % self.num_classes + # HWA index + top_idxs //= self.num_classes + # predict boxes + pred_boxes = self.box2box_transform.apply_deltas( + pred_deltas[top_idxs], anchors[top_idxs].tensor + ) + # apply nms + keep = batched_nms(pred_boxes, pred_prob, cls_idxs, self.nms_threshold) + # pick the top ones + keep = keep[: self.detections_im] + + results = Instances(image_size) + results.pred_boxes = Boxes(pred_boxes[keep]) + results.scores = pred_prob[keep] + results.pred_classes = cls_idxs[keep] + + # deal with masks + result_masks, result_anchors = [], None + if self.mask_on: + # index and anchors, useful for masks + top_indexes = indexes[top_idxs] + top_anchors = anchors[top_idxs] + result_indexes = top_indexes[keep] + result_anchors = top_anchors[keep] + # Get masks and do sigmoid + for lvl, _, h, w, anc in result_indexes.tolist(): + cur_size = self.mask_sizes[anc] * (2**lvl if self.bipyramid_on else 1) + result_masks.append( + torch.sigmoid(pred_masks[lvl][anc][:, h, w].view(1, cur_size, cur_size)) + ) + + return results, (result_masks, result_anchors) + + def preprocess_image(self, batched_inputs): + """ + Normalize, pad and batch the input images. + """ + images = [x["image"].to(self.device) for x in batched_inputs] + images = [(x - self.pixel_mean) / self.pixel_std for x in images] + images = ImageList.from_tensors(images, self.backbone.size_divisibility) + return images + + +class TensorMaskHead(nn.Module): + def __init__(self, cfg, num_levels, num_anchors, mask_sizes, input_shape: List[ShapeSpec]): + """ + TensorMask head. + """ + super().__init__() + # fmt: off + self.in_features = cfg.MODEL.TENSOR_MASK.IN_FEATURES + in_channels = input_shape[0].channels + num_classes = cfg.MODEL.TENSOR_MASK.NUM_CLASSES + cls_channels = cfg.MODEL.TENSOR_MASK.CLS_CHANNELS + num_convs = cfg.MODEL.TENSOR_MASK.NUM_CONVS + # box parameters + bbox_channels = cfg.MODEL.TENSOR_MASK.BBOX_CHANNELS + # mask parameters + self.mask_on = cfg.MODEL.MASK_ON + self.mask_sizes = mask_sizes + mask_channels = cfg.MODEL.TENSOR_MASK.MASK_CHANNELS + self.align_on = cfg.MODEL.TENSOR_MASK.ALIGNED_ON + self.bipyramid_on = cfg.MODEL.TENSOR_MASK.BIPYRAMID_ON + # fmt: on + + # class subnet + cls_subnet = [] + cur_channels = in_channels + for _ in range(num_convs): + cls_subnet.append( + nn.Conv2d(cur_channels, cls_channels, kernel_size=3, stride=1, padding=1) + ) + cur_channels = cls_channels + cls_subnet.append(nn.ReLU()) + + self.cls_subnet = nn.Sequential(*cls_subnet) + self.cls_score = nn.Conv2d( + cur_channels, num_anchors * num_classes, kernel_size=3, stride=1, padding=1 + ) + modules_list = [self.cls_subnet, self.cls_score] + + # box subnet + bbox_subnet = [] + cur_channels = in_channels + for _ in range(num_convs): + bbox_subnet.append( + nn.Conv2d(cur_channels, bbox_channels, kernel_size=3, stride=1, padding=1) + ) + cur_channels = bbox_channels + bbox_subnet.append(nn.ReLU()) + + self.bbox_subnet = nn.Sequential(*bbox_subnet) + self.bbox_pred = nn.Conv2d( + cur_channels, num_anchors * 4, kernel_size=3, stride=1, padding=1 + ) + modules_list.extend([self.bbox_subnet, self.bbox_pred]) + + # mask subnet + if self.mask_on: + mask_subnet = [] + cur_channels = in_channels + for _ in range(num_convs): + mask_subnet.append( + nn.Conv2d(cur_channels, mask_channels, kernel_size=3, stride=1, padding=1) + ) + cur_channels = mask_channels + mask_subnet.append(nn.ReLU()) + + self.mask_subnet = nn.Sequential(*mask_subnet) + modules_list.append(self.mask_subnet) + for mask_size in self.mask_sizes: + cur_mask_module = "mask_pred_%02d" % mask_size + self.add_module( + cur_mask_module, + nn.Conv2d( + cur_channels, mask_size * mask_size, kernel_size=1, stride=1, padding=0 + ), + ) + modules_list.append(getattr(self, cur_mask_module)) + if self.align_on: + if self.bipyramid_on: + for lvl in range(num_levels): + cur_mask_module = "align2nat_%02d" % lvl + lambda_val = 2**lvl + setattr(self, cur_mask_module, SwapAlign2Nat(lambda_val)) + # Also the fusing layer, stay at the same channel size + mask_fuse = [ + nn.Conv2d(cur_channels, cur_channels, kernel_size=3, stride=1, padding=1), + nn.ReLU(), + ] + self.mask_fuse = nn.Sequential(*mask_fuse) + modules_list.append(self.mask_fuse) + else: + self.align2nat = SwapAlign2Nat(1) + + # Initialization + for modules in modules_list: + for layer in modules.modules(): + if isinstance(layer, nn.Conv2d): + torch.nn.init.normal_(layer.weight, mean=0, std=0.01) + torch.nn.init.constant_(layer.bias, 0) + + # Use prior in model initialization to improve stability + bias_value = -(math.log((1 - 0.01) / 0.01)) + torch.nn.init.constant_(self.cls_score.bias, bias_value) + + def forward(self, features): + """ + Arguments: + features (list[Tensor]): FPN feature map tensors in high to low resolution. + Each tensor in the list correspond to different feature levels. + + Returns: + pred_logits (list[Tensor]): #lvl tensors, each has shape (N, AxK, Hi, Wi). + The tensor predicts the classification probability + at each spatial position for each of the A anchors and K object + classes. + pred_deltas (list[Tensor]): #lvl tensors, each has shape (N, Ax4, Hi, Wi). + The tensor predicts 4-vector (dx,dy,dw,dh) box + regression values for every anchor. These values are the + relative offset between the anchor and the ground truth box. + pred_masks (list(list[Tensor])): #lvl list of tensors, each is a list of + A tensors of shape (N, M_{i,a}, Hi, Wi). + The tensor predicts a dense set of M_ixM_i masks at every location. + """ + pred_logits = [self.cls_score(self.cls_subnet(x)) for x in features] + pred_deltas = [self.bbox_pred(self.bbox_subnet(x)) for x in features] + + pred_masks = None + if self.mask_on: + mask_feats = [self.mask_subnet(x) for x in features] + + if self.bipyramid_on: + mask_feat_high_res = mask_feats[0] + H, W = mask_feat_high_res.shape[-2:] + mask_feats_up = [] + for lvl, mask_feat in enumerate(mask_feats): + lambda_val = 2.0**lvl + mask_feat_up = mask_feat + if lvl > 0: + mask_feat_up = F.interpolate( + mask_feat, scale_factor=lambda_val, mode="bilinear", align_corners=False + ) + mask_feats_up.append( + self.mask_fuse(mask_feat_up[:, :, :H, :W] + mask_feat_high_res) + ) + mask_feats = mask_feats_up + + pred_masks = [] + for lvl, mask_feat in enumerate(mask_feats): + cur_masks = [] + for mask_size in self.mask_sizes: + cur_mask_module = getattr(self, "mask_pred_%02d" % mask_size) + cur_mask = cur_mask_module(mask_feat) + if self.align_on: + if self.bipyramid_on: + cur_mask_module = getattr(self, "align2nat_%02d" % lvl) + cur_mask = cur_mask_module(cur_mask) + else: + cur_mask = self.align2nat(cur_mask) + cur_masks.append(cur_mask) + pred_masks.append(cur_masks) + return pred_logits, pred_deltas, pred_masks diff --git a/detectron2/projects/TensorMask/tensormask/config.py b/detectron2/projects/TensorMask/tensormask/config.py new file mode 100755 index 0000000..cf62d7a --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/config.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.config import CfgNode as CN + + +def add_tensormask_config(cfg): + """ + Add config for TensorMask. + """ + cfg.MODEL.TENSOR_MASK = CN() + + # Anchor parameters + cfg.MODEL.TENSOR_MASK.IN_FEATURES = ["p2", "p3", "p4", "p5", "p6", "p7"] + + # Convolutions to use in the towers + cfg.MODEL.TENSOR_MASK.NUM_CONVS = 4 + + # Number of foreground classes. + cfg.MODEL.TENSOR_MASK.NUM_CLASSES = 80 + # Channel size for the classification tower + cfg.MODEL.TENSOR_MASK.CLS_CHANNELS = 256 + + cfg.MODEL.TENSOR_MASK.SCORE_THRESH_TEST = 0.05 + # Only the top (1000 * #levels) candidate boxes across all levels are + # considered jointly during test (to improve speed) + cfg.MODEL.TENSOR_MASK.TOPK_CANDIDATES_TEST = 6000 + cfg.MODEL.TENSOR_MASK.NMS_THRESH_TEST = 0.5 + + # Box parameters + # Channel size for the box tower + cfg.MODEL.TENSOR_MASK.BBOX_CHANNELS = 128 + # Weights on (dx, dy, dw, dh) + cfg.MODEL.TENSOR_MASK.BBOX_REG_WEIGHTS = (1.5, 1.5, 0.75, 0.75) + + # Loss parameters + cfg.MODEL.TENSOR_MASK.FOCAL_LOSS_GAMMA = 3.0 + cfg.MODEL.TENSOR_MASK.FOCAL_LOSS_ALPHA = 0.3 + + # Mask parameters + # Channel size for the mask tower + cfg.MODEL.TENSOR_MASK.MASK_CHANNELS = 128 + # Mask loss weight + cfg.MODEL.TENSOR_MASK.MASK_LOSS_WEIGHT = 2.0 + # weight on positive pixels within the mask + cfg.MODEL.TENSOR_MASK.POSITIVE_WEIGHT = 1.5 + # Whether to predict in the aligned representation + cfg.MODEL.TENSOR_MASK.ALIGNED_ON = False + # Whether to use the bipyramid architecture + cfg.MODEL.TENSOR_MASK.BIPYRAMID_ON = False diff --git a/detectron2/projects/TensorMask/tensormask/layers/__init__.py b/detectron2/projects/TensorMask/tensormask/layers/__init__.py new file mode 100755 index 0000000..8b8e178 --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/layers/__init__.py @@ -0,0 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .swap_align2nat import SwapAlign2Nat, swap_align2nat + +__all__ = [k for k in globals().keys() if not k.startswith("_")] diff --git a/detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat.h b/detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat.h new file mode 100755 index 0000000..75c2178 --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat.h @@ -0,0 +1,54 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#pragma once +#include + +namespace tensormask { + +#if defined(WITH_CUDA) || defined(WITH_HIP) +at::Tensor SwapAlign2Nat_forward_cuda( + const at::Tensor& X, + const int lambda_val, + const float pad_val); + +at::Tensor SwapAlign2Nat_backward_cuda( + const at::Tensor& gY, + const int lambda_val, + const int batch_size, + const int channel, + const int height, + const int width); +#endif + +inline at::Tensor SwapAlign2Nat_forward( + const at::Tensor& X, + const int lambda_val, + const float pad_val) { + if (X.type().is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + return SwapAlign2Nat_forward_cuda(X, lambda_val, pad_val); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + AT_ERROR("Not implemented on the CPU"); +} + +inline at::Tensor SwapAlign2Nat_backward( + const at::Tensor& gY, + const int lambda_val, + const int batch_size, + const int channel, + const int height, + const int width) { + if (gY.type().is_cuda()) { +#if defined(WITH_CUDA) || defined(WITH_HIP) + return SwapAlign2Nat_backward_cuda( + gY, lambda_val, batch_size, channel, height, width); +#else + AT_ERROR("Not compiled with GPU support"); +#endif + } + AT_ERROR("Not implemented on the CPU"); +} + +} // namespace tensormask diff --git a/detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat_cuda.cu b/detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat_cuda.cu new file mode 100755 index 0000000..1398d70 --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/layers/csrc/SwapAlign2Nat/SwapAlign2Nat_cuda.cu @@ -0,0 +1,526 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +#include +#include +#include +#include + +// TODO make it in a common file +#define CUDA_1D_KERNEL_LOOP(i, n) \ + for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; \ + i += blockDim.x * gridDim.x) + +template +__device__ inline T get_pixel_val( + const T* tensor, + const int idx, + const int H, + const int W, + const int y, + const int x, + const int V, + const int U, + const int v, + const int u, + const T pad_val) { + if ((y < 0) || (y >= H) || (x < 0) || (x >= W) || (v < 0) || (v >= V) || + (u < 0) || (u >= U)) { + return pad_val; + } else { + return tensor[(((idx * V + v) * U + u) * H + y) * W + x]; + } +} + +template +__device__ inline void add_pixel_val( + T* tensor, + const T val, + const int idx, + const int H, + const int W, + const int y, + const int x, + const int V, + const int U, + const int v, + const int u) { + if ((val == 0.) || (y < 0) || (y >= H) || (x < 0) || (x >= W) || (v < 0) || + (v >= V) || (u < 0) || (u >= U)) { + return; + } else { + atomicAdd(tensor + ((((idx * V + v) * U + u) * H + y) * W + x), val); + } +} + +template +__global__ void SwapAlign2NatForwardFeat( + const int nthreads, + const T* bottom_data, + const int Vout, + const int Uout, + const float hVout, + const float hUout, + const int Vin, + const int Uin, + const float lambda, + const int Hin, + const int Win, + const int Hout, + const int Wout, + const T pad_val, + T* top_data) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + int idx = index; + const int x = idx % Wout; + idx /= Wout; + const int y = idx % Hout; + idx /= Hout; + const int u = idx % Uout; + idx /= Uout; + const int v = idx % Vout; + idx /= Vout; + + const float ox = x * lambda + u - hUout + 0.5; + const int xf = static_cast(floor(ox)); + const int xc = static_cast(ceil(ox)); + const float xwc = ox - xf; + const float xwf = 1. - xwc; + + const float oy = y * lambda + v - hVout + 0.5; + const int yf = static_cast(floor(oy)); + const int yc = static_cast(ceil(oy)); + const float ywc = oy - yf; + const float ywf = 1. - ywc; + + const float ou = (u + 0.5) / lambda - 0.5; + const int uf = static_cast(floor(ou)); + const int uc = static_cast(ceil(ou)); + const float uwc = ou - uf; + const float uwf = 1. - uwc; + + const float ov = (v + 0.5) / lambda - 0.5; + const int vf = static_cast(floor(ov)); + const int vc = static_cast(ceil(ov)); + const float vwc = ov - vf; + const float vwf = 1. - vwc; + + T val = ywf * xwf * vwf * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xf, Vin, Uin, vf, uf, pad_val) + + ywf * xwf * vwf * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xf, Vin, Uin, vf, uc, pad_val) + + ywf * xwf * vwc * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xf, Vin, Uin, vc, uf, pad_val) + + ywf * xwf * vwc * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xf, Vin, Uin, vc, uc, pad_val) + + ywf * xwc * vwf * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xc, Vin, Uin, vf, uf, pad_val) + + ywf * xwc * vwf * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xc, Vin, Uin, vf, uc, pad_val) + + ywf * xwc * vwc * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xc, Vin, Uin, vc, uf, pad_val) + + ywf * xwc * vwc * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yf, xc, Vin, Uin, vc, uc, pad_val) + + ywc * xwf * vwf * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xf, Vin, Uin, vf, uf, pad_val) + + ywc * xwf * vwf * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xf, Vin, Uin, vf, uc, pad_val) + + ywc * xwf * vwc * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xf, Vin, Uin, vc, uf, pad_val) + + ywc * xwf * vwc * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xf, Vin, Uin, vc, uc, pad_val) + + ywc * xwc * vwf * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xc, Vin, Uin, vf, uf, pad_val) + + ywc * xwc * vwf * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xc, Vin, Uin, vf, uc, pad_val) + + ywc * xwc * vwc * uwf * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xc, Vin, Uin, vc, uf, pad_val) + + ywc * xwc * vwc * uwc * + get_pixel_val( + bottom_data, idx, Hin, Win, yc, xc, Vin, Uin, vc, uc, pad_val); + + top_data[index] = val; + } +} + +template +__global__ void SwapAlign2NatBackwardFeat( + const int nthreads, + const T* top_diff, + const int Vout, + const int Uout, + const float hVout, + const float hUout, + const int Vin, + const int Uin, + const float lambda, + const int Hin, + const int Win, + const int Hout, + const int Wout, + T* bottom_diff) { + CUDA_1D_KERNEL_LOOP(index, nthreads) { + int idx = index; + const int x = idx % Wout; + idx /= Wout; + const int y = idx % Hout; + idx /= Hout; + const int u = idx % Uout; + idx /= Uout; + const int v = idx % Vout; + idx /= Vout; + + const float ox = x * lambda + u - hUout + 0.5; + const int xf = static_cast(floor(ox)); + const int xc = static_cast(ceil(ox)); + const float xwc = ox - xf; + const float xwf = 1. - xwc; + + const float oy = y * lambda + v - hVout + 0.5; + const int yf = static_cast(floor(oy)); + const int yc = static_cast(ceil(oy)); + const float ywc = oy - yf; + const float ywf = 1. - ywc; + + const float ou = (u + 0.5) / lambda - 0.5; + const int uf = static_cast(floor(ou)); + const int uc = static_cast(ceil(ou)); + const float uwc = ou - uf; + const float uwf = 1. - uwc; + + const float ov = (v + 0.5) / lambda - 0.5; + const int vf = static_cast(floor(ov)); + const int vc = static_cast(ceil(ov)); + const float vwc = ov - vf; + const float vwf = 1. - vwc; + + const T grad = top_diff[index]; + + add_pixel_val( + bottom_diff, + ywf * xwf * vwf * uwf * grad, + idx, + Hin, + Win, + yf, + xf, + Vin, + Uin, + vf, + uf); + add_pixel_val( + bottom_diff, + ywf * xwf * vwf * uwc * grad, + idx, + Hin, + Win, + yf, + xf, + Vin, + Uin, + vf, + uc); + add_pixel_val( + bottom_diff, + ywf * xwf * vwc * uwf * grad, + idx, + Hin, + Win, + yf, + xf, + Vin, + Uin, + vc, + uf); + add_pixel_val( + bottom_diff, + ywf * xwf * vwc * uwc * grad, + idx, + Hin, + Win, + yf, + xf, + Vin, + Uin, + vc, + uc); + add_pixel_val( + bottom_diff, + ywf * xwc * vwf * uwf * grad, + idx, + Hin, + Win, + yf, + xc, + Vin, + Uin, + vf, + uf); + add_pixel_val( + bottom_diff, + ywf * xwc * vwf * uwc * grad, + idx, + Hin, + Win, + yf, + xc, + Vin, + Uin, + vf, + uc); + add_pixel_val( + bottom_diff, + ywf * xwc * vwc * uwf * grad, + idx, + Hin, + Win, + yf, + xc, + Vin, + Uin, + vc, + uf); + add_pixel_val( + bottom_diff, + ywf * xwc * vwc * uwc * grad, + idx, + Hin, + Win, + yf, + xc, + Vin, + Uin, + vc, + uc); + add_pixel_val( + bottom_diff, + ywc * xwf * vwf * uwf * grad, + idx, + Hin, + Win, + yc, + xf, + Vin, + Uin, + vf, + uf); + add_pixel_val( + bottom_diff, + ywc * xwf * vwf * uwc * grad, + idx, + Hin, + Win, + yc, + xf, + Vin, + Uin, + vf, + uc); + add_pixel_val( + bottom_diff, + ywc * xwf * vwc * uwf * grad, + idx, + Hin, + Win, + yc, + xf, + Vin, + Uin, + vc, + uf); + add_pixel_val( + bottom_diff, + ywc * xwf * vwc * uwc * grad, + idx, + Hin, + Win, + yc, + xf, + Vin, + Uin, + vc, + uc); + add_pixel_val( + bottom_diff, + ywc * xwc * vwf * uwf * grad, + idx, + Hin, + Win, + yc, + xc, + Vin, + Uin, + vf, + uf); + add_pixel_val( + bottom_diff, + ywc * xwc * vwf * uwc * grad, + idx, + Hin, + Win, + yc, + xc, + Vin, + Uin, + vf, + uc); + add_pixel_val( + bottom_diff, + ywc * xwc * vwc * uwf * grad, + idx, + Hin, + Win, + yc, + xc, + Vin, + Uin, + vc, + uf); + add_pixel_val( + bottom_diff, + ywc * xwc * vwc * uwc * grad, + idx, + Hin, + Win, + yc, + xc, + Vin, + Uin, + vc, + uc); + } +} + +namespace tensormask { + +at::Tensor SwapAlign2Nat_forward_cuda( + const at::Tensor& X, + const int lambda_val, + const float pad_val) { + AT_ASSERTM(X.device().is_cuda(), "input must be a CUDA tensor"); + AT_ASSERTM(X.ndimension() == 4, "input must be a 4D tensor"); + AT_ASSERTM(lambda_val >= 1, "lambda should be greater or equal to 1"); + const int N = X.size(0); + const int C = X.size(1); + const int Vin = static_cast(sqrt(static_cast(C))); + const int Uin = C / Vin; + AT_ASSERTM( + C == Vin * Uin && Vin == Uin, "#channels should be a square number"); + const int Vout = lambda_val * Vin; + const int Uout = lambda_val * Uin; + const int Hin = X.size(2); + const int Win = X.size(3); + const float lambda = static_cast(lambda_val); + const int Hout = static_cast(ceil(Hin / lambda)); + const int Wout = static_cast(ceil(Win / lambda)); + const float hVout = Vout / 2.; + const float hUout = Uout / 2.; + + at::cuda::CUDAGuard device_guard(X.device()); + + at::Tensor Y = at::empty({N, Vout * Uout, Hout, Wout}, X.options()); + + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min(at::cuda::ATenCeilDiv(Y.numel(), 512L), 4096L)); + dim3 block(512); + + if (Y.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return Y; + } + + auto X_ = X.contiguous(); + AT_DISPATCH_FLOATING_TYPES(X.scalar_type(), "SwapAlign2Nat_forward", [&] { + SwapAlign2NatForwardFeat<<>>( + Y.numel(), + X_.data_ptr(), + Vout, + Uout, + hVout, + hUout, + Vin, + Uin, + lambda, + Hin, + Win, + Hout, + Wout, + pad_val, + Y.data_ptr()); + }); + cudaDeviceSynchronize(); + AT_CUDA_CHECK(cudaGetLastError()); + return Y; +} + +at::Tensor SwapAlign2Nat_backward_cuda( + const at::Tensor& gY, + const int lambda_val, + const int batch_size, + const int channel, + const int height, + const int width) { + AT_ASSERTM(gY.device().is_cuda(), "input gradient must be a CUDA tensor"); + AT_ASSERTM(gY.ndimension() == 4, "input gradient must be a 4D tensor"); + AT_ASSERTM(lambda_val >= 1, "lambda should be greater or equal to 1"); + const int Vin = static_cast(sqrt(static_cast(channel))); + const int Uin = channel / Vin; + const int Vout = lambda_val * Vin; + const int Uout = lambda_val * Uin; + const float hVout = Vout / 2.; + const float hUout = Uout / 2.; + const int Hout = gY.size(2); + const int Wout = gY.size(3); + + at::cuda::CUDAGuard device_guard(gY.device()); + + at::Tensor gX = at::zeros({batch_size, channel, height, width}, gY.options()); + + cudaStream_t stream = at::cuda::getCurrentCUDAStream(); + + dim3 grid(std::min(at::cuda::ATenCeilDiv(gY.numel(), 512L), 4096L)); + dim3 block(512); + + // handle possibly empty gradients + if (gY.numel() == 0) { + AT_CUDA_CHECK(cudaGetLastError()); + return gX; + } + + auto gY_ = gY.contiguous(); + AT_DISPATCH_FLOATING_TYPES(gY.scalar_type(), "SwapAlign2Nat_backward", [&] { + SwapAlign2NatBackwardFeat<<>>( + gY.numel(), + gY_.data_ptr(), + Vout, + Uout, + hVout, + hUout, + Vin, + Uin, + static_cast(lambda_val), + height, + width, + Hout, + Wout, + gX.data_ptr()); + }); + AT_CUDA_CHECK(cudaGetLastError()); + return gX; +} + +} // namespace tensormask diff --git a/detectron2/projects/TensorMask/tensormask/layers/csrc/vision.cpp b/detectron2/projects/TensorMask/tensormask/layers/csrc/vision.cpp new file mode 100755 index 0000000..ed1ed0b --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/layers/csrc/vision.cpp @@ -0,0 +1,19 @@ +// Copyright (c) Facebook, Inc. and its affiliates. + +#include +#include "SwapAlign2Nat/SwapAlign2Nat.h" + +namespace tensormask { + +PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { + m.def( + "swap_align2nat_forward", + &SwapAlign2Nat_forward, + "SwapAlign2Nat_forward"); + m.def( + "swap_align2nat_backward", + &SwapAlign2Nat_backward, + "SwapAlign2Nat_backward"); +} + +} // namespace tensormask diff --git a/detectron2/projects/TensorMask/tensormask/layers/swap_align2nat.py b/detectron2/projects/TensorMask/tensormask/layers/swap_align2nat.py new file mode 100755 index 0000000..2b5e450 --- /dev/null +++ b/detectron2/projects/TensorMask/tensormask/layers/swap_align2nat.py @@ -0,0 +1,61 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from torch import nn +from torch.autograd import Function +from torch.autograd.function import once_differentiable + +from tensormask import _C + + +class _SwapAlign2Nat(Function): + @staticmethod + def forward(ctx, X, lambda_val, pad_val): + ctx.lambda_val = lambda_val + ctx.input_shape = X.size() + + Y = _C.swap_align2nat_forward(X, lambda_val, pad_val) + return Y + + @staticmethod + @once_differentiable + def backward(ctx, gY): + lambda_val = ctx.lambda_val + bs, ch, h, w = ctx.input_shape + + gX = _C.swap_align2nat_backward(gY, lambda_val, bs, ch, h, w) + + return gX, None, None + + +swap_align2nat = _SwapAlign2Nat.apply + + +class SwapAlign2Nat(nn.Module): + """ + The op `SwapAlign2Nat` described in https://arxiv.org/abs/1903.12174. + Given an input tensor that predicts masks of shape (N, C=VxU, H, W), + apply the op, it will return masks of shape (N, V'xU', H', W') where + the unit lengths of (V, U) and (H, W) are swapped, and the mask representation + is transformed from aligned to natural. + Args: + lambda_val (int): the relative unit length ratio between (V, U) and (H, W), + as we always have larger unit lengths for (V, U) than (H, W), + lambda_val is always >= 1. + pad_val (float): padding value for the values falling outside of the input + tensor, default set to -6 as sigmoid(-6) is ~0, indicating + that is no masks outside of the tensor. + """ + + def __init__(self, lambda_val, pad_val=-6.0): + super(SwapAlign2Nat, self).__init__() + self.lambda_val = lambda_val + self.pad_val = pad_val + + def forward(self, X): + return swap_align2nat(X, self.lambda_val, self.pad_val) + + def __repr__(self): + tmpstr = self.__class__.__name__ + "(" + tmpstr += "lambda_val=" + str(self.lambda_val) + tmpstr += ", pad_val=" + str(self.pad_val) + tmpstr += ")" + return tmpstr diff --git a/detectron2/projects/TensorMask/tests/__init__.py b/detectron2/projects/TensorMask/tests/__init__.py new file mode 100755 index 0000000..9020c2d --- /dev/null +++ b/detectron2/projects/TensorMask/tests/__init__.py @@ -0,0 +1 @@ +# Copyright (c) Facebook, Inc. and its affiliates. diff --git a/detectron2/projects/TensorMask/tests/test_swap_align2nat.py b/detectron2/projects/TensorMask/tests/test_swap_align2nat.py new file mode 100755 index 0000000..d9ee273 --- /dev/null +++ b/detectron2/projects/TensorMask/tests/test_swap_align2nat.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest +import torch +from torch.autograd import gradcheck + +from tensormask.layers.swap_align2nat import SwapAlign2Nat + + +class SwapAlign2NatTest(unittest.TestCase): + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_swap_align2nat_gradcheck_cuda(self): + dtype = torch.float64 + device = torch.device("cuda") + m = SwapAlign2Nat(2).to(dtype=dtype, device=device) + x = torch.rand(2, 4, 10, 10, dtype=dtype, device=device, requires_grad=True) + + self.assertTrue(gradcheck(m, x), "gradcheck failed for SwapAlign2Nat CUDA") + + def _swap_align2nat(self, tensor, lambda_val): + """ + The basic setup for testing Swap_Align + """ + op = SwapAlign2Nat(lambda_val, pad_val=0.0) + input = torch.from_numpy(tensor[None, :, :, :].astype("float32")) + output = op.forward(input.cuda()).cpu().numpy() + return output[0] + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/projects/TensorMask/train_net.py b/detectron2/projects/TensorMask/train_net.py new file mode 100755 index 0000000..dc77a64 --- /dev/null +++ b/detectron2/projects/TensorMask/train_net.py @@ -0,0 +1,70 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +TensorMask Training Script. + +This script is a simplified version of the training script in detectron2/tools. +""" + +import os + +import detectron2.utils.comm as comm +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch +from detectron2.evaluation import COCOEvaluator, verify_results + +from tensormask import add_tensormask_config + + +class Trainer(DefaultTrainer): + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + return COCOEvaluator(dataset_name, output_dir=output_folder) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + add_tensormask_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + if comm.is_main_process(): + verify_results(cfg, res) + return res + + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/projects/TridentNet/README.md b/detectron2/projects/TridentNet/README.md new file mode 100755 index 0000000..4b7a901 --- /dev/null +++ b/detectron2/projects/TridentNet/README.md @@ -0,0 +1,60 @@ + +# TridentNet in Detectron2 +**Scale-Aware Trident Networks for Object Detection** + +Yanghao Li\*, Yuntao Chen\*, Naiyan Wang, Zhaoxiang Zhang + +[[`TridentNet`](https://github.com/TuSimple/simpledet/tree/master/models/tridentnet)] [[`arXiv`](https://arxiv.org/abs/1901.01892)] [[`BibTeX`](#CitingTridentNet)] + +
+ +
+ +In this repository, we implement TridentNet-Fast in Detectron2. +Trident Network (TridentNet) aims to generate scale-specific feature maps with a uniform representational power. We construct a parallel multi-branch architecture in which each branch shares the same transformation parameters but with different receptive fields. TridentNet-Fast is a fast approximation version of TridentNet that could achieve significant improvements without any additional parameters and computational cost. + +## Training + +To train a model, run +```bash +python /path/to/detectron2/projects/TridentNet/train_net.py --config-file +``` + +For example, to launch end-to-end TridentNet training with ResNet-50 backbone on 8 GPUs, +one should execute: +```bash +python /path/to/detectron2/projects/TridentNet/train_net.py --config-file configs/tridentnet_fast_R_50_C4_1x.yaml --num-gpus 8 +``` + +## Evaluation + +Model evaluation can be done similarly: +```bash +python /path/to/detectron2/projects/TridentNet/train_net.py --config-file configs/tridentnet_fast_R_50_C4_1x.yaml --eval-only MODEL.WEIGHTS model.pth +``` + +## Results on MS-COCO in Detectron2 + +|Model|Backbone|Head|lr sched|AP|AP50|AP75|APs|APm|APl|download| +|-----|--------|----|--------|--|----|----|---|---|---|--------| +|Faster|R50-C4|C5-512ROI|1X|35.7|56.1|38.0|19.2|40.9|48.7|model \| metrics| +|TridentFast|R50-C4|C5-128ROI|1X|38.0|58.1|40.8|19.5|42.2|54.6|model \| metrics| +|Faster|R50-C4|C5-512ROI|3X|38.4|58.7|41.3|20.7|42.7|53.1|model \| metrics| +|TridentFast|R50-C4|C5-128ROI|3X|40.6|60.8|43.6|23.4|44.7|57.1|model \| metrics| +|Faster|R101-C4|C5-512ROI|3X|41.1|61.4|44.0|22.2|45.5|55.9|model \| metrics| +|TridentFast|R101-C4|C5-128ROI|3X|43.6|63.4|47.0|24.3|47.8|60.0|model \| metrics| + + +## Citing TridentNet + +If you use TridentNet, please use the following BibTeX entry. + +``` +@InProceedings{li2019scale, + title={Scale-Aware Trident Networks for Object Detection}, + author={Li, Yanghao and Chen, Yuntao and Wang, Naiyan and Zhang, Zhaoxiang}, + journal={The International Conference on Computer Vision (ICCV)}, + year={2019} +} +``` + diff --git a/detectron2/projects/TridentNet/configs/Base-TridentNet-Fast-C4.yaml b/detectron2/projects/TridentNet/configs/Base-TridentNet-Fast-C4.yaml new file mode 100755 index 0000000..8c3d807 --- /dev/null +++ b/detectron2/projects/TridentNet/configs/Base-TridentNet-Fast-C4.yaml @@ -0,0 +1,29 @@ +MODEL: + META_ARCHITECTURE: "GeneralizedRCNN" + BACKBONE: + NAME: "build_trident_resnet_backbone" + ROI_HEADS: + NAME: "TridentRes5ROIHeads" + POSITIVE_FRACTION: 0.5 + BATCH_SIZE_PER_IMAGE: 128 + PROPOSAL_APPEND_GT: False + PROPOSAL_GENERATOR: + NAME: "TridentRPN" + RPN: + POST_NMS_TOPK_TRAIN: 500 + TRIDENT: + NUM_BRANCH: 3 + BRANCH_DILATIONS: [1, 2, 3] + TEST_BRANCH_IDX: 1 + TRIDENT_STAGE: "res4" +DATASETS: + TRAIN: ("coco_2017_train",) + TEST: ("coco_2017_val",) +SOLVER: + IMS_PER_BATCH: 16 + BASE_LR: 0.02 + STEPS: (60000, 80000) + MAX_ITER: 90000 +INPUT: + MIN_SIZE_TRAIN: (640, 672, 704, 736, 768, 800) +VERSION: 2 diff --git a/detectron2/projects/TridentNet/configs/tridentnet_fast_R_101_C4_3x.yaml b/detectron2/projects/TridentNet/configs/tridentnet_fast_R_101_C4_3x.yaml new file mode 100755 index 0000000..bc83c2f --- /dev/null +++ b/detectron2/projects/TridentNet/configs/tridentnet_fast_R_101_C4_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-TridentNet-Fast-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-101.pkl" + MASK_ON: False + RESNETS: + DEPTH: 101 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/projects/TridentNet/configs/tridentnet_fast_R_50_C4_1x.yaml b/detectron2/projects/TridentNet/configs/tridentnet_fast_R_50_C4_1x.yaml new file mode 100755 index 0000000..fda2cb6 --- /dev/null +++ b/detectron2/projects/TridentNet/configs/tridentnet_fast_R_50_C4_1x.yaml @@ -0,0 +1,6 @@ +_BASE_: "Base-TridentNet-Fast-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 diff --git a/detectron2/projects/TridentNet/configs/tridentnet_fast_R_50_C4_3x.yaml b/detectron2/projects/TridentNet/configs/tridentnet_fast_R_50_C4_3x.yaml new file mode 100755 index 0000000..ebf89d0 --- /dev/null +++ b/detectron2/projects/TridentNet/configs/tridentnet_fast_R_50_C4_3x.yaml @@ -0,0 +1,9 @@ +_BASE_: "Base-TridentNet-Fast-C4.yaml" +MODEL: + WEIGHTS: "detectron2://ImageNetPretrained/MSRA/R-50.pkl" + MASK_ON: False + RESNETS: + DEPTH: 50 +SOLVER: + STEPS: (210000, 250000) + MAX_ITER: 270000 diff --git a/detectron2/projects/TridentNet/train_net.py b/detectron2/projects/TridentNet/train_net.py new file mode 100755 index 0000000..143289a --- /dev/null +++ b/detectron2/projects/TridentNet/train_net.py @@ -0,0 +1,67 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. + +""" +TridentNet Training Script. + +This script is a simplified version of the training script in detectron2/tools. +""" + +import os + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, launch +from detectron2.evaluation import COCOEvaluator + +from tridentnet import add_tridentnet_config + + +class Trainer(DefaultTrainer): + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + return COCOEvaluator(dataset_name, output_dir=output_folder) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + add_tridentnet_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + return res + + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/projects/TridentNet/tridentnet/__init__.py b/detectron2/projects/TridentNet/tridentnet/__init__.py new file mode 100755 index 0000000..abaa957 --- /dev/null +++ b/detectron2/projects/TridentNet/tridentnet/__init__.py @@ -0,0 +1,9 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from .config import add_tridentnet_config +from .trident_backbone import ( + TridentBottleneckBlock, + build_trident_resnet_backbone, + make_trident_stage, +) +from .trident_rpn import TridentRPN +from .trident_rcnn import TridentRes5ROIHeads, TridentStandardROIHeads diff --git a/detectron2/projects/TridentNet/tridentnet/config.py b/detectron2/projects/TridentNet/tridentnet/config.py new file mode 100755 index 0000000..4b8732a --- /dev/null +++ b/detectron2/projects/TridentNet/tridentnet/config.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +from detectron2.config import CfgNode as CN + + +def add_tridentnet_config(cfg): + """ + Add config for tridentnet. + """ + _C = cfg + + _C.MODEL.TRIDENT = CN() + + # Number of branches for TridentNet. + _C.MODEL.TRIDENT.NUM_BRANCH = 3 + # Specify the dilations for each branch. + _C.MODEL.TRIDENT.BRANCH_DILATIONS = [1, 2, 3] + # Specify the stage for applying trident blocks. Default stage is Res4 according to the + # TridentNet paper. + _C.MODEL.TRIDENT.TRIDENT_STAGE = "res4" + # Specify the test branch index TridentNet Fast inference: + # - use -1 to aggregate results of all branches during inference. + # - otherwise, only using specified branch for fast inference. Recommended setting is + # to use the middle branch. + _C.MODEL.TRIDENT.TEST_BRANCH_IDX = 1 diff --git a/detectron2/projects/TridentNet/tridentnet/trident_backbone.py b/detectron2/projects/TridentNet/tridentnet/trident_backbone.py new file mode 100755 index 0000000..7789bd2 --- /dev/null +++ b/detectron2/projects/TridentNet/tridentnet/trident_backbone.py @@ -0,0 +1,220 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import fvcore.nn.weight_init as weight_init +import torch +import torch.nn.functional as F + +from detectron2.layers import Conv2d, FrozenBatchNorm2d, get_norm +from detectron2.modeling import BACKBONE_REGISTRY, ResNet, ResNetBlockBase +from detectron2.modeling.backbone.resnet import BasicStem, BottleneckBlock, DeformBottleneckBlock + +from .trident_conv import TridentConv + +__all__ = ["TridentBottleneckBlock", "make_trident_stage", "build_trident_resnet_backbone"] + + +class TridentBottleneckBlock(ResNetBlockBase): + def __init__( + self, + in_channels, + out_channels, + *, + bottleneck_channels, + stride=1, + num_groups=1, + norm="BN", + stride_in_1x1=False, + num_branch=3, + dilations=(1, 2, 3), + concat_output=False, + test_branch_idx=-1, + ): + """ + Args: + num_branch (int): the number of branches in TridentNet. + dilations (tuple): the dilations of multiple branches in TridentNet. + concat_output (bool): if concatenate outputs of multiple branches in TridentNet. + Use 'True' for the last trident block. + """ + super().__init__(in_channels, out_channels, stride) + + assert num_branch == len(dilations) + + self.num_branch = num_branch + self.concat_output = concat_output + self.test_branch_idx = test_branch_idx + + if in_channels != out_channels: + self.shortcut = Conv2d( + in_channels, + out_channels, + kernel_size=1, + stride=stride, + bias=False, + norm=get_norm(norm, out_channels), + ) + else: + self.shortcut = None + + stride_1x1, stride_3x3 = (stride, 1) if stride_in_1x1 else (1, stride) + + self.conv1 = Conv2d( + in_channels, + bottleneck_channels, + kernel_size=1, + stride=stride_1x1, + bias=False, + norm=get_norm(norm, bottleneck_channels), + ) + + self.conv2 = TridentConv( + bottleneck_channels, + bottleneck_channels, + kernel_size=3, + stride=stride_3x3, + paddings=dilations, + bias=False, + groups=num_groups, + dilations=dilations, + num_branch=num_branch, + test_branch_idx=test_branch_idx, + norm=get_norm(norm, bottleneck_channels), + ) + + self.conv3 = Conv2d( + bottleneck_channels, + out_channels, + kernel_size=1, + bias=False, + norm=get_norm(norm, out_channels), + ) + + for layer in [self.conv1, self.conv2, self.conv3, self.shortcut]: + if layer is not None: # shortcut can be None + weight_init.c2_msra_fill(layer) + + def forward(self, x): + num_branch = self.num_branch if self.training or self.test_branch_idx == -1 else 1 + if not isinstance(x, list): + x = [x] * num_branch + out = [self.conv1(b) for b in x] + out = [F.relu_(b) for b in out] + + out = self.conv2(out) + out = [F.relu_(b) for b in out] + + out = [self.conv3(b) for b in out] + + if self.shortcut is not None: + shortcut = [self.shortcut(b) for b in x] + else: + shortcut = x + + out = [out_b + shortcut_b for out_b, shortcut_b in zip(out, shortcut)] + out = [F.relu_(b) for b in out] + if self.concat_output: + out = torch.cat(out) + return out + + +def make_trident_stage(block_class, num_blocks, **kwargs): + """ + Create a resnet stage by creating many blocks for TridentNet. + """ + concat_output = [False] * (num_blocks - 1) + [True] + kwargs["concat_output_per_block"] = concat_output + return ResNet.make_stage(block_class, num_blocks, **kwargs) + + +@BACKBONE_REGISTRY.register() +def build_trident_resnet_backbone(cfg, input_shape): + """ + Create a ResNet instance from config for TridentNet. + + Returns: + ResNet: a :class:`ResNet` instance. + """ + # need registration of new blocks/stems? + norm = cfg.MODEL.RESNETS.NORM + stem = BasicStem( + in_channels=input_shape.channels, + out_channels=cfg.MODEL.RESNETS.STEM_OUT_CHANNELS, + norm=norm, + ) + freeze_at = cfg.MODEL.BACKBONE.FREEZE_AT + + if freeze_at >= 1: + for p in stem.parameters(): + p.requires_grad = False + stem = FrozenBatchNorm2d.convert_frozen_batchnorm(stem) + + # fmt: off + out_features = cfg.MODEL.RESNETS.OUT_FEATURES + depth = cfg.MODEL.RESNETS.DEPTH + num_groups = cfg.MODEL.RESNETS.NUM_GROUPS + width_per_group = cfg.MODEL.RESNETS.WIDTH_PER_GROUP + bottleneck_channels = num_groups * width_per_group + in_channels = cfg.MODEL.RESNETS.STEM_OUT_CHANNELS + out_channels = cfg.MODEL.RESNETS.RES2_OUT_CHANNELS + stride_in_1x1 = cfg.MODEL.RESNETS.STRIDE_IN_1X1 + res5_dilation = cfg.MODEL.RESNETS.RES5_DILATION + deform_on_per_stage = cfg.MODEL.RESNETS.DEFORM_ON_PER_STAGE + deform_modulated = cfg.MODEL.RESNETS.DEFORM_MODULATED + deform_num_groups = cfg.MODEL.RESNETS.DEFORM_NUM_GROUPS + num_branch = cfg.MODEL.TRIDENT.NUM_BRANCH + branch_dilations = cfg.MODEL.TRIDENT.BRANCH_DILATIONS + trident_stage = cfg.MODEL.TRIDENT.TRIDENT_STAGE + test_branch_idx = cfg.MODEL.TRIDENT.TEST_BRANCH_IDX + # fmt: on + assert res5_dilation in {1, 2}, "res5_dilation cannot be {}.".format(res5_dilation) + + num_blocks_per_stage = {50: [3, 4, 6, 3], 101: [3, 4, 23, 3], 152: [3, 8, 36, 3]}[depth] + + stages = [] + + res_stage_idx = {"res2": 2, "res3": 3, "res4": 4, "res5": 5} + out_stage_idx = [res_stage_idx[f] for f in out_features] + trident_stage_idx = res_stage_idx[trident_stage] + max_stage_idx = max(out_stage_idx) + for idx, stage_idx in enumerate(range(2, max_stage_idx + 1)): + dilation = res5_dilation if stage_idx == 5 else 1 + first_stride = 1 if idx == 0 or (stage_idx == 5 and dilation == 2) else 2 + stage_kargs = { + "num_blocks": num_blocks_per_stage[idx], + "stride_per_block": [first_stride] + [1] * (num_blocks_per_stage[idx] - 1), + "in_channels": in_channels, + "bottleneck_channels": bottleneck_channels, + "out_channels": out_channels, + "num_groups": num_groups, + "norm": norm, + "stride_in_1x1": stride_in_1x1, + "dilation": dilation, + } + if stage_idx == trident_stage_idx: + assert not deform_on_per_stage[ + idx + ], "Not support deformable conv in Trident blocks yet." + stage_kargs["block_class"] = TridentBottleneckBlock + stage_kargs["num_branch"] = num_branch + stage_kargs["dilations"] = branch_dilations + stage_kargs["test_branch_idx"] = test_branch_idx + stage_kargs.pop("dilation") + elif deform_on_per_stage[idx]: + stage_kargs["block_class"] = DeformBottleneckBlock + stage_kargs["deform_modulated"] = deform_modulated + stage_kargs["deform_num_groups"] = deform_num_groups + else: + stage_kargs["block_class"] = BottleneckBlock + blocks = ( + make_trident_stage(**stage_kargs) + if stage_idx == trident_stage_idx + else ResNet.make_stage(**stage_kargs) + ) + in_channels = out_channels + out_channels *= 2 + bottleneck_channels *= 2 + + if freeze_at >= stage_idx: + for block in blocks: + block.freeze() + stages.append(blocks) + return ResNet(stem, stages, out_features=out_features) diff --git a/detectron2/projects/TridentNet/tridentnet/trident_conv.py b/detectron2/projects/TridentNet/tridentnet/trident_conv.py new file mode 100755 index 0000000..18d5b0b --- /dev/null +++ b/detectron2/projects/TridentNet/tridentnet/trident_conv.py @@ -0,0 +1,107 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch +from torch import nn +from torch.nn import functional as F +from torch.nn.modules.utils import _pair + +from detectron2.layers.wrappers import _NewEmptyTensorOp + + +class TridentConv(nn.Module): + def __init__( + self, + in_channels, + out_channels, + kernel_size, + stride=1, + paddings=0, + dilations=1, + groups=1, + num_branch=1, + test_branch_idx=-1, + bias=False, + norm=None, + activation=None, + ): + super(TridentConv, self).__init__() + self.in_channels = in_channels + self.out_channels = out_channels + self.kernel_size = _pair(kernel_size) + self.num_branch = num_branch + self.stride = _pair(stride) + self.groups = groups + self.with_bias = bias + if isinstance(paddings, int): + paddings = [paddings] * self.num_branch + if isinstance(dilations, int): + dilations = [dilations] * self.num_branch + self.paddings = [_pair(padding) for padding in paddings] + self.dilations = [_pair(dilation) for dilation in dilations] + self.test_branch_idx = test_branch_idx + self.norm = norm + self.activation = activation + + assert len({self.num_branch, len(self.paddings), len(self.dilations)}) == 1 + + self.weight = nn.Parameter( + torch.Tensor(out_channels, in_channels // groups, *self.kernel_size) + ) + if bias: + self.bias = nn.Parameter(torch.Tensor(out_channels)) + else: + self.bias = None + + nn.init.kaiming_uniform_(self.weight, nonlinearity="relu") + if self.bias is not None: + nn.init.constant_(self.bias, 0) + + def forward(self, inputs): + num_branch = self.num_branch if self.training or self.test_branch_idx == -1 else 1 + assert len(inputs) == num_branch + + if inputs[0].numel() == 0: + output_shape = [ + (i + 2 * p - (di * (k - 1) + 1)) // s + 1 + for i, p, di, k, s in zip( + inputs[0].shape[-2:], self.padding, self.dilation, self.kernel_size, self.stride + ) + ] + output_shape = [input[0].shape[0], self.weight.shape[0]] + output_shape + return [_NewEmptyTensorOp.apply(input, output_shape) for input in inputs] + + if self.training or self.test_branch_idx == -1: + outputs = [ + F.conv2d(input, self.weight, self.bias, self.stride, padding, dilation, self.groups) + for input, dilation, padding in zip(inputs, self.dilations, self.paddings) + ] + else: + outputs = [ + F.conv2d( + inputs[0], + self.weight, + self.bias, + self.stride, + self.paddings[self.test_branch_idx], + self.dilations[self.test_branch_idx], + self.groups, + ) + ] + + if self.norm is not None: + outputs = [self.norm(x) for x in outputs] + if self.activation is not None: + outputs = [self.activation(x) for x in outputs] + return outputs + + def extra_repr(self): + tmpstr = "in_channels=" + str(self.in_channels) + tmpstr += ", out_channels=" + str(self.out_channels) + tmpstr += ", kernel_size=" + str(self.kernel_size) + tmpstr += ", num_branch=" + str(self.num_branch) + tmpstr += ", test_branch_idx=" + str(self.test_branch_idx) + tmpstr += ", stride=" + str(self.stride) + tmpstr += ", paddings=" + str(self.paddings) + tmpstr += ", dilations=" + str(self.dilations) + tmpstr += ", groups=" + str(self.groups) + tmpstr += ", bias=" + str(self.with_bias) + return tmpstr diff --git a/detectron2/projects/TridentNet/tridentnet/trident_rcnn.py b/detectron2/projects/TridentNet/tridentnet/trident_rcnn.py new file mode 100755 index 0000000..fc22c71 --- /dev/null +++ b/detectron2/projects/TridentNet/tridentnet/trident_rcnn.py @@ -0,0 +1,116 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from detectron2.layers import batched_nms +from detectron2.modeling import ROI_HEADS_REGISTRY, StandardROIHeads +from detectron2.modeling.roi_heads.roi_heads import Res5ROIHeads +from detectron2.structures import Instances + + +def merge_branch_instances(instances, num_branch, nms_thresh, topk_per_image): + """ + Merge detection results from different branches of TridentNet. + Return detection results by applying non-maximum suppression (NMS) on bounding boxes + and keep the unsuppressed boxes and other instances (e.g mask) if any. + + Args: + instances (list[Instances]): A list of N * num_branch instances that store detection + results. Contain N images and each image has num_branch instances. + num_branch (int): Number of branches used for merging detection results for each image. + nms_thresh (float): The threshold to use for box non-maximum suppression. Value in [0, 1]. + topk_per_image (int): The number of top scoring detections to return. Set < 0 to return + all detections. + + Returns: + results: (list[Instances]): A list of N instances, one for each image in the batch, + that stores the topk most confidence detections after merging results from multiple + branches. + """ + if num_branch == 1: + return instances + + batch_size = len(instances) // num_branch + results = [] + for i in range(batch_size): + instance = Instances.cat([instances[i + batch_size * j] for j in range(num_branch)]) + + # Apply per-class NMS + keep = batched_nms( + instance.pred_boxes.tensor, instance.scores, instance.pred_classes, nms_thresh + ) + keep = keep[:topk_per_image] + result = instance[keep] + + results.append(result) + + return results + + +@ROI_HEADS_REGISTRY.register() +class TridentRes5ROIHeads(Res5ROIHeads): + """ + The TridentNet ROIHeads in a typical "C4" R-CNN model. + See :class:`Res5ROIHeads`. + """ + + def __init__(self, cfg, input_shape): + super().__init__(cfg, input_shape) + + self.num_branch = cfg.MODEL.TRIDENT.NUM_BRANCH + self.trident_fast = cfg.MODEL.TRIDENT.TEST_BRANCH_IDX != -1 + + def forward(self, images, features, proposals, targets=None): + """ + See :class:`Res5ROIHeads.forward`. + """ + num_branch = self.num_branch if self.training or not self.trident_fast else 1 + all_targets = targets * num_branch if targets is not None else None + pred_instances, losses = super().forward(images, features, proposals, all_targets) + del images, all_targets, targets + + if self.training: + return pred_instances, losses + else: + pred_instances = merge_branch_instances( + pred_instances, + num_branch, + self.box_predictor.test_nms_thresh, + self.box_predictor.test_topk_per_image, + ) + + return pred_instances, {} + + +@ROI_HEADS_REGISTRY.register() +class TridentStandardROIHeads(StandardROIHeads): + """ + The `StandardROIHeads` for TridentNet. + See :class:`StandardROIHeads`. + """ + + def __init__(self, cfg, input_shape): + super(TridentStandardROIHeads, self).__init__(cfg, input_shape) + + self.num_branch = cfg.MODEL.TRIDENT.NUM_BRANCH + self.trident_fast = cfg.MODEL.TRIDENT.TEST_BRANCH_IDX != -1 + + def forward(self, images, features, proposals, targets=None): + """ + See :class:`Res5ROIHeads.forward`. + """ + # Use 1 branch if using trident_fast during inference. + num_branch = self.num_branch if self.training or not self.trident_fast else 1 + # Duplicate targets for all branches in TridentNet. + all_targets = targets * num_branch if targets is not None else None + pred_instances, losses = super().forward(images, features, proposals, all_targets) + del images, all_targets, targets + + if self.training: + return pred_instances, losses + else: + pred_instances = merge_branch_instances( + pred_instances, + num_branch, + self.box_predictor.test_nms_thresh, + self.box_predictor.test_topk_per_image, + ) + + return pred_instances, {} diff --git a/detectron2/projects/TridentNet/tridentnet/trident_rpn.py b/detectron2/projects/TridentNet/tridentnet/trident_rpn.py new file mode 100755 index 0000000..f95fbbf --- /dev/null +++ b/detectron2/projects/TridentNet/tridentnet/trident_rpn.py @@ -0,0 +1,32 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import torch + +from detectron2.modeling import PROPOSAL_GENERATOR_REGISTRY +from detectron2.modeling.proposal_generator.rpn import RPN +from detectron2.structures import ImageList + + +@PROPOSAL_GENERATOR_REGISTRY.register() +class TridentRPN(RPN): + """ + Trident RPN subnetwork. + """ + + def __init__(self, cfg, input_shape): + super(TridentRPN, self).__init__(cfg, input_shape) + + self.num_branch = cfg.MODEL.TRIDENT.NUM_BRANCH + self.trident_fast = cfg.MODEL.TRIDENT.TEST_BRANCH_IDX != -1 + + def forward(self, images, features, gt_instances=None): + """ + See :class:`RPN.forward`. + """ + num_branch = self.num_branch if self.training or not self.trident_fast else 1 + # Duplicate images and gt_instances for all branches in TridentNet. + all_images = ImageList( + torch.cat([images.tensor] * num_branch), images.image_sizes * num_branch + ) + all_gt_instances = gt_instances * num_branch if gt_instances is not None else None + + return super(TridentRPN, self).forward(all_images, features, all_gt_instances) diff --git a/detectron2/projects/ViTDet/README.md b/detectron2/projects/ViTDet/README.md new file mode 100755 index 0000000..0a525e0 --- /dev/null +++ b/detectron2/projects/ViTDet/README.md @@ -0,0 +1,364 @@ +# ViTDet: Exploring Plain Vision Transformer Backbones for Object Detection + +Yanghao Li, Hanzi Mao, Ross Girshick†, Kaiming He† + +[[`arXiv`](https://arxiv.org/abs/2203.16527)] [[`BibTeX`](#CitingViTDet)] + +In this repository, we provide configs and models in Detectron2 for ViTDet as well as MViTv2 and Swin backbones with our implementation and settings as described in [ViTDet](https://arxiv.org/abs/2203.16527) paper. + + +## Pretrained Models + +### COCO + +#### Mask R-CNN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namepre-traintrain
time
(s/im)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
ViTDet, ViT-BIN1K, MAE0.3140.07910.951.645.9325346929model
ViTDet, ViT-LIN1K, MAE0.6030.12520.955.549.2325599698model
ViTDet, ViT-HIN1K, MAE1.0980.17831.556.750.2329145471model
+ +#### Cascade Mask R-CNN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namepre-traintrain
time
(s/im)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
Swin-BIN21K, sup0.3890.0778.753.946.2342979038model
Swin-LIN21K, sup0.5080.09712.655.047.2342979186model
MViTv2-BIN21K, sup0.4750.0908.955.648.1325820315model
MViTv2-LIN21K, sup0.8440.15719.755.748.3325607715model
MViTv2-HIN21K, sup1.6550.28518.4*55.948.3326187358model
ViTDet, ViT-BIN1K, MAE0.3620.08912.354.046.7325358525model
ViTDet, ViT-LIN1K, MAE0.6430.14222.357.650.0328021305model
ViTDet, ViT-HIN1K, MAE1.1370.19632.958.751.0328730692model
+ + +### LVIS + +#### Mask R-CNN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namepre-traintrain
time
(s/im)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
ViTDet, ViT-BIN1K, MAE0.3170.08514.440.238.2329225748model
ViTDet, ViT-LIN1K, MAE0.5760.13724.746.143.6329211570model
ViTDet, ViT-HIN1K, MAE1.0590.18635.349.146.0332434656model
+ +#### Cascade Mask R-CNN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Namepre-traintrain
time
(s/im)
inference
time
(s/im)
train
mem
(GB)
box
AP
mask
AP
model iddownload
Swin-BIN21K, sup0.3680.09011.544.039.6329222304model
Swin-LIN21K, sup0.4860.10513.846.041.4329222724model
MViTv2-BIN21K, sup0.4750.10011.846.342.0329477206model
MViTv2-LIN21K, sup0.8440.17221.049.444.2329661552model
MViTv2-HIN21K, sup1.6610.29021.3*49.544.1330445165model
ViTDet, ViT-BIN1K, MAE0.3560.09915.243.038.9329226874model
ViTDet, ViT-LIN1K, MAE0.6290.15024.949.244.5329042206model
ViTDet, ViT-HIN1K, MAE1.1000.20435.551.546.6332552778model
+ +Note: Unlike the system-level comparisons in the paper, these models use a lower resolution (1024 instead of 1280) and standard NMS (instead of soft NMS). As a result, they have slightly lower box and mask AP. + +We observed higher variance on LVIS evalution results compared to COCO. For example, the standard deviations of box AP and mask AP were 0.30% (compared to 0.10% on COCO) when we trained ViTDet, ViT-B five times with varying random seeds. + +The above models were trained and measured on 8-node with 64 NVIDIA A100 GPUs in total. *: Activation checkpointing is used. + + +## Training +All configs can be trained with: + +``` +../../tools/lazyconfig_train_net.py --config-file configs/path/to/config.py +``` +By default, we use 64 GPUs with batch size as 64 for training. + +## Evaluation +Model evaluation can be done similarly: +``` +../../tools/lazyconfig_train_net.py --config-file configs/path/to/config.py --eval-only train.init_checkpoint=/path/to/model_checkpoint +``` + + +## Citing ViTDet + +If you use ViTDet, please use the following BibTeX entry. + +```BibTeX +@article{li2022exploring, + title={Exploring plain vision transformer backbones for object detection}, + author={Li, Yanghao and Mao, Hanzi and Girshick, Ross and He, Kaiming}, + journal={arXiv preprint arXiv:2203.16527}, + year={2022} +} +``` diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_b_in21k_100ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_b_in21k_100ep.py new file mode 100755 index 0000000..9dba203 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_b_in21k_100ep.py @@ -0,0 +1,95 @@ +from functools import partial +import torch.nn as nn +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2 import model_zoo +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler +from detectron2.modeling import MViT +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import ( + FastRCNNOutputLayers, + FastRCNNConvFCHead, + CascadeROIHeads, +) + +from ..common.coco_loader_lsj import dataloader + +model = model_zoo.get_config("common/models/mask_rcnn_fpn.py").model +constants = model_zoo.get_config("common/data/constants.py").constants +model.pixel_mean = constants.imagenet_rgb256_mean +model.pixel_std = constants.imagenet_rgb256_std +model.input_format = "RGB" +model.backbone.bottom_up = L(MViT)( + embed_dim=96, + depth=24, + num_heads=1, + last_block_indexes=(1, 4, 20, 23), + residual_pooling=True, + drop_path_rate=0.4, + norm_layer=partial(nn.LayerNorm, eps=1e-6), + out_features=("scale2", "scale3", "scale4", "scale5"), +) +model.backbone.in_features = "${.bottom_up.out_features}" +model.backbone.square_pad = 1024 + +# New heads and LN +model.backbone.norm = "LN" # Use LN in FPN +model.roi_heads.box_head.conv_norm = model.roi_heads.mask_head.conv_norm = "LN" + +# 2conv in RPN: +model.proposal_generator.head.conv_dims = [-1, -1] + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] +model.roi_heads.update( + _target_=CascadeROIHeads, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[256, 256, 256, 256], + fc_dims=[1024], + conv_norm="LN", + ) + for _ in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + test_score_thresh=0.05, + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + cls_agnostic_bbox_reg=True, + num_classes="${...num_classes}", + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) + +# Initialization and trainer settings +train = model_zoo.get_config("common/train.py").train +train.amp.enabled = True +train.ddp.fp16_compression = True +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_B_in21k.pyth" + +# Schedule +# 100 ep = 184375 iters * 64 images/iter / 118000 images/ep +train.max_iter = 184375 +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[163889, 177546], + num_updates=train.max_iter, + ), + warmup_length=250 / train.max_iter, + warmup_factor=0.001, +) + +optimizer = model_zoo.get_config("common/optim.py").AdamW +optimizer.params.overrides = {"pos_embed": {"weight_decay": 0.0}} +optimizer.lr = 8e-5 diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_h_in21k_36ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_h_in21k_36ep.py new file mode 100755 index 0000000..5770450 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_h_in21k_36ep.py @@ -0,0 +1,39 @@ +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler + +from .cascade_mask_rcnn_mvitv2_b_in21k_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +model.backbone.bottom_up.embed_dim = 192 +model.backbone.bottom_up.depth = 80 +model.backbone.bottom_up.num_heads = 3 +model.backbone.bottom_up.last_block_indexes = (3, 11, 71, 79) +model.backbone.bottom_up.drop_path_rate = 0.6 +model.backbone.bottom_up.use_act_checkpoint = True + + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_H_in21k.pyth" + + +# 36 epochs +train.max_iter = 67500 +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[ + 52500, + 62500, + 67500, + ], + ), + warmup_length=250 / train.max_iter, + warmup_factor=0.001, +) +optimizer.lr = 1.6e-4 diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_l_in21k_50ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_l_in21k_50ep.py new file mode 100755 index 0000000..c64f0c1 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_mvitv2_l_in21k_50ep.py @@ -0,0 +1,22 @@ +from .cascade_mask_rcnn_mvitv2_b_in21k_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +model.backbone.bottom_up.embed_dim = 144 +model.backbone.bottom_up.depth = 48 +model.backbone.bottom_up.num_heads = 2 +model.backbone.bottom_up.last_block_indexes = (1, 7, 43, 47) +model.backbone.bottom_up.drop_path_rate = 0.5 + + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_L_in21k.pyth" + +train.max_iter = train.max_iter // 2 # 100ep -> 50ep +lr_multiplier.scheduler.milestones = [ + milestone // 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_swin_b_in21k_50ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_swin_b_in21k_50ep.py new file mode 100755 index 0000000..b2aad98 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_swin_b_in21k_50ep.py @@ -0,0 +1,50 @@ +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2 import model_zoo +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler +from detectron2.modeling import SwinTransformer + +from ..common.coco_loader_lsj import dataloader +from .cascade_mask_rcnn_mvitv2_b_in21k_100ep import model + +model.backbone.bottom_up = L(SwinTransformer)( + depths=[2, 2, 18, 2], + drop_path_rate=0.4, + embed_dim=128, + num_heads=[4, 8, 16, 32], +) +model.backbone.in_features = ("p0", "p1", "p2", "p3") +model.backbone.square_pad = 1024 + +# Initialization and trainer settings +train = model_zoo.get_config("common/train.py").train +train.amp.enabled = True +train.ddp.fp16_compression = True +train.init_checkpoint = "detectron2://ImageNetPretrained/swin/swin_base_patch4_window7_224_22k.pth" + +# Schedule +# 100 ep = 184375 iters * 64 images/iter / 118000 images/ep +train.max_iter = 184375 +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[163889, 177546], + num_updates=train.max_iter, + ), + warmup_length=250 / train.max_iter, + warmup_factor=0.001, +) + +# Rescale schedule +train.max_iter = train.max_iter // 2 # 100ep -> 50ep +lr_multiplier.scheduler.milestones = [ + milestone // 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter + + +optimizer = model_zoo.get_config("common/optim.py").AdamW +optimizer.lr = 4e-5 +optimizer.weight_decay = 0.05 +optimizer.params.overrides = {"relative_position_bias_table": {"weight_decay": 0.0}} diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_swin_l_in21k_50ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_swin_l_in21k_50ep.py new file mode 100755 index 0000000..60bc917 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_swin_l_in21k_50ep.py @@ -0,0 +1,15 @@ +from .cascade_mask_rcnn_swin_b_in21k_50ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +model.backbone.bottom_up.depths = [2, 2, 18, 2] +model.backbone.bottom_up.drop_path_rate = 0.4 +model.backbone.bottom_up.embed_dim = 192 +model.backbone.bottom_up.num_heads = [6, 12, 24, 48] + + +train.init_checkpoint = "detectron2://ImageNetPretrained/swin/swin_large_patch4_window7_224_22k.pth" diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_b_100ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_b_100ep.py new file mode 100755 index 0000000..95823ef --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_b_100ep.py @@ -0,0 +1,48 @@ +from detectron2.config import LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import ( + FastRCNNOutputLayers, + FastRCNNConvFCHead, + CascadeROIHeads, +) + +from .mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, + get_vit_lr_decay_rate, +) + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] + +model.roi_heads.update( + _target_=CascadeROIHeads, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[256, 256, 256, 256], + fc_dims=[1024], + conv_norm="LN", + ) + for _ in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + test_score_thresh=0.05, + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + cls_agnostic_bbox_reg=True, + num_classes="${...num_classes}", + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_h_75ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_h_75ep.py new file mode 100755 index 0000000..e508a68 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_h_75ep.py @@ -0,0 +1,33 @@ +from functools import partial + +from .cascade_mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, + get_vit_lr_decay_rate, +) + +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_huge_p14to16.pth?matching_heuristics=True" +) + +model.backbone.net.embed_dim = 1280 +model.backbone.net.depth = 32 +model.backbone.net.num_heads = 16 +model.backbone.net.drop_path_rate = 0.5 +# 7, 15, 23, 31 for global attention +model.backbone.net.window_block_indexes = ( + list(range(0, 7)) + list(range(8, 15)) + list(range(16, 23)) + list(range(24, 31)) +) + +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.9, num_layers=32) +optimizer.params.overrides = {} +optimizer.params.weight_decay_norm = None + +train.max_iter = train.max_iter * 3 // 4 # 100ep -> 75ep +lr_multiplier.scheduler.milestones = [ + milestone * 3 // 4 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_l_100ep.py b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_l_100ep.py new file mode 100755 index 0000000..2743603 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/cascade_mask_rcnn_vitdet_l_100ep.py @@ -0,0 +1,25 @@ +from functools import partial + +from .cascade_mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, + get_vit_lr_decay_rate, +) + +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_large.pth?matching_heuristics=True" +) + +model.backbone.net.embed_dim = 1024 +model.backbone.net.depth = 24 +model.backbone.net.num_heads = 16 +model.backbone.net.drop_path_rate = 0.4 +# 5, 11, 17, 23 for global attention +model.backbone.net.window_block_indexes = ( + list(range(0, 5)) + list(range(6, 11)) + list(range(12, 17)) + list(range(18, 23)) +) + +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.8, num_layers=24) diff --git a/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_b_100ep.py b/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_b_100ep.py new file mode 100755 index 0000000..8fd36e9 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_b_100ep.py @@ -0,0 +1,40 @@ +from functools import partial +from fvcore.common.param_scheduler import MultiStepParamScheduler + +from detectron2 import model_zoo +from detectron2.config import LazyCall as L +from detectron2.solver import WarmupParamScheduler +from detectron2.modeling.backbone.vit import get_vit_lr_decay_rate + +from ..common.coco_loader_lsj import dataloader + + +model = model_zoo.get_config("common/models/mask_rcnn_vitdet.py").model + +# Initialization and trainer settings +train = model_zoo.get_config("common/train.py").train +train.amp.enabled = True +train.ddp.fp16_compression = True +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_base.pth?matching_heuristics=True" +) + + +# Schedule +# 100 ep = 184375 iters * 64 images/iter / 118000 images/ep +train.max_iter = 184375 + +lr_multiplier = L(WarmupParamScheduler)( + scheduler=L(MultiStepParamScheduler)( + values=[1.0, 0.1, 0.01], + milestones=[163889, 177546], + num_updates=train.max_iter, + ), + warmup_length=250 / train.max_iter, + warmup_factor=0.001, +) + +# Optimizer +optimizer = model_zoo.get_config("common/optim.py").AdamW +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, num_layers=12, lr_decay_rate=0.7) +optimizer.params.overrides = {"pos_embed": {"weight_decay": 0.0}} diff --git a/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_h_75ep.py b/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_h_75ep.py new file mode 100755 index 0000000..7de96f0 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_h_75ep.py @@ -0,0 +1,33 @@ +from functools import partial + +from .mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, + get_vit_lr_decay_rate, +) + +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_huge_p14to16.pth?matching_heuristics=True" +) + +model.backbone.net.embed_dim = 1280 +model.backbone.net.depth = 32 +model.backbone.net.num_heads = 16 +model.backbone.net.drop_path_rate = 0.5 +# 7, 15, 23, 31 for global attention +model.backbone.net.window_block_indexes = ( + list(range(0, 7)) + list(range(8, 15)) + list(range(16, 23)) + list(range(24, 31)) +) + +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.9, num_layers=32) +optimizer.params.overrides = {} +optimizer.params.weight_decay_norm = None + +train.max_iter = train.max_iter * 3 // 4 # 100ep -> 75ep +lr_multiplier.scheduler.milestones = [ + milestone * 3 // 4 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter diff --git a/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_l_100ep.py b/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_l_100ep.py new file mode 100755 index 0000000..0d193cb --- /dev/null +++ b/detectron2/projects/ViTDet/configs/COCO/mask_rcnn_vitdet_l_100ep.py @@ -0,0 +1,25 @@ +from functools import partial + +from .mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, + get_vit_lr_decay_rate, +) + +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_large.pth?matching_heuristics=True" +) + +model.backbone.net.embed_dim = 1024 +model.backbone.net.depth = 24 +model.backbone.net.num_heads = 16 +model.backbone.net.drop_path_rate = 0.4 +# 5, 11, 17, 23 for global attention +model.backbone.net.window_block_indexes = ( + list(range(0, 5)) + list(range(6, 11)) + list(range(12, 17)) + list(range(18, 23)) +) + +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.8, num_layers=24) diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_b_in21k_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_b_in21k_100ep.py new file mode 100755 index 0000000..1cf9c3e --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_b_in21k_100ep.py @@ -0,0 +1,48 @@ +from functools import partial +import torch.nn as nn + +from detectron2.config import LazyCall as L +from detectron2.data.detection_utils import get_fed_loss_cls_weights +from detectron2.data.samplers import RepeatFactorTrainingSampler +from detectron2.evaluation.lvis_evaluation import LVISEvaluator + +from ..COCO.cascade_mask_rcnn_mvitv2_b_in21k_100ep import ( + dataloader, + model, + train, + lr_multiplier, + optimizer, +) + +dataloader.train.dataset.names = "lvis_v1_train" +dataloader.train.sampler = L(RepeatFactorTrainingSampler)( + repeat_factors=L(RepeatFactorTrainingSampler.repeat_factors_from_category_frequency)( + dataset_dicts="${dataloader.train.dataset}", repeat_thresh=0.001 + ) +) +dataloader.test.dataset.names = "lvis_v1_val" +dataloader.evaluator = L(LVISEvaluator)( + dataset_name="${..test.dataset.names}", + max_dets_per_image=300, +) + +model.roi_heads.num_classes = 1203 +for i in range(3): + model.roi_heads.box_predictors[i].test_score_thresh = 0.02 + model.roi_heads.box_predictors[i].test_topk_per_image = 300 + model.roi_heads.box_predictors[i].use_sigmoid_ce = True + model.roi_heads.box_predictors[i].use_fed_loss = True + model.roi_heads.box_predictors[i].get_fed_loss_cls_weights = lambda: get_fed_loss_cls_weights( + dataloader.train.dataset.names, 0.5 + ) + +# Schedule +# 100 ep = 156250 iters * 64 images/iter / 100000 images/ep +train.max_iter = 156250 +train.eval_period = 30000 + +lr_multiplier.scheduler.milestones = [138889, 150463] +lr_multiplier.scheduler.num_updates = train.max_iter +lr_multiplier.warmup_length = 250 / train.max_iter + +optimizer.lr = 1e-4 diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_h_in21k_50ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_h_in21k_50ep.py new file mode 100755 index 0000000..084444b --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_h_in21k_50ep.py @@ -0,0 +1,25 @@ +from .cascade_mask_rcnn_mvitv2_b_in21k_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +model.backbone.bottom_up.embed_dim = 192 +model.backbone.bottom_up.depth = 80 +model.backbone.bottom_up.num_heads = 3 +model.backbone.bottom_up.last_block_indexes = (3, 11, 71, 79) +model.backbone.bottom_up.drop_path_rate = 0.6 +model.backbone.bottom_up.use_act_checkpoint = True + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_H_in21k.pyth" + +train.max_iter = train.max_iter // 2 # 100ep -> 50ep +lr_multiplier.scheduler.milestones = [ + milestone // 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter +lr_multiplier.warmup_length = 250 / train.max_iter + +optimizer.lr = 2e-5 diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_l_in21k_50ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_l_in21k_50ep.py new file mode 100755 index 0000000..779442c --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_mvitv2_l_in21k_50ep.py @@ -0,0 +1,24 @@ +from .cascade_mask_rcnn_mvitv2_b_in21k_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +model.backbone.bottom_up.embed_dim = 144 +model.backbone.bottom_up.depth = 48 +model.backbone.bottom_up.num_heads = 2 +model.backbone.bottom_up.last_block_indexes = (1, 7, 43, 47) +model.backbone.bottom_up.drop_path_rate = 0.5 + +train.init_checkpoint = "detectron2://ImageNetPretrained/mvitv2/MViTv2_L_in21k.pyth" + +train.max_iter = train.max_iter // 2 # 100ep -> 50ep +lr_multiplier.scheduler.milestones = [ + milestone // 2 for milestone in lr_multiplier.scheduler.milestones +] +lr_multiplier.scheduler.num_updates = train.max_iter +lr_multiplier.warmup_length = 250 / train.max_iter + +optimizer.lr = 4e-5 diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_swin_b_in21k_50ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_swin_b_in21k_50ep.py new file mode 100755 index 0000000..d18c925 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_swin_b_in21k_50ep.py @@ -0,0 +1,49 @@ +from detectron2.config.lazy import LazyCall as L +from detectron2.data.detection_utils import get_fed_loss_cls_weights +from detectron2.data.samplers import RepeatFactorTrainingSampler +from detectron2.evaluation.lvis_evaluation import LVISEvaluator + +from ..COCO.cascade_mask_rcnn_swin_b_in21k_50ep import ( + dataloader, + model, + train, + lr_multiplier, + optimizer, +) + +dataloader.train.dataset.names = "lvis_v1_train" +dataloader.train.sampler = L(RepeatFactorTrainingSampler)( + repeat_factors=L(RepeatFactorTrainingSampler.repeat_factors_from_category_frequency)( + dataset_dicts="${dataloader.train.dataset}", repeat_thresh=0.001 + ) +) +dataloader.test.dataset.names = "lvis_v1_val" +dataloader.evaluator = L(LVISEvaluator)( + dataset_name="${..test.dataset.names}", + max_dets_per_image=300, +) + +model.backbone.bottom_up.drop_path_rate = 0.3 + +model.roi_heads.num_classes = 1203 +for i in range(3): + model.roi_heads.box_predictors[i].test_score_thresh = 0.02 + model.roi_heads.box_predictors[i].test_topk_per_image = 300 + model.roi_heads.box_predictors[i].use_sigmoid_ce = True + model.roi_heads.box_predictors[i].use_fed_loss = True + model.roi_heads.box_predictors[i].get_fed_loss_cls_weights = lambda: get_fed_loss_cls_weights( + dataloader.train.dataset.names, 0.5 + ) + +# Schedule +# 100 ep = 156250 iters * 64 images/iter / 100000 images/ep +# 100 ep -> 50 ep as the model achieves better performance with 50 epochs +train.max_iter = 156250 // 2 +train.eval_period = 30000 + +lr_multiplier.scheduler.milestones = [milestone // 2 for milestone in [138889, 150463]] +lr_multiplier.scheduler.num_updates = train.max_iter +lr_multiplier.warmup_length = 250 / train.max_iter + +# Optimized hyperparams +optimizer.lr = 1e-4 diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_swin_l_in21k_50ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_swin_l_in21k_50ep.py new file mode 100755 index 0000000..9e22e3b --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_swin_l_in21k_50ep.py @@ -0,0 +1,12 @@ +from .cascade_mask_rcnn_swin_b_in21k_50ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +model.backbone.bottom_up.embed_dim = 192 +model.backbone.bottom_up.num_heads = [6, 12, 24, 48] + +train.init_checkpoint = "detectron2://ImageNetPretrained/swin/swin_large_patch4_window7_224_22k.pth" diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_b_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_b_100ep.py new file mode 100755 index 0000000..8115224 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_b_100ep.py @@ -0,0 +1,51 @@ +from detectron2.config import LazyCall as L +from detectron2.data.detection_utils import get_fed_loss_cls_weights +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import FastRCNNOutputLayers, FastRCNNConvFCHead, CascadeROIHeads + +from .mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] + +model.roi_heads.update( + _target_=CascadeROIHeads, + num_classes=1203, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[256, 256, 256, 256], + fc_dims=[1024], + conv_norm="LN", + ) + for _ in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + num_classes="${...num_classes}", + test_score_thresh=0.02, + test_topk_per_image=300, + cls_agnostic_bbox_reg=True, + use_sigmoid_ce=True, + use_fed_loss=True, + get_fed_loss_cls_weights=lambda: get_fed_loss_cls_weights( + dataloader.train.dataset.names, 0.5 + ), + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_h_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_h_100ep.py new file mode 100755 index 0000000..68bec57 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_h_100ep.py @@ -0,0 +1,51 @@ +from detectron2.config import LazyCall as L +from detectron2.data.detection_utils import get_fed_loss_cls_weights +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import FastRCNNOutputLayers, FastRCNNConvFCHead, CascadeROIHeads + +from .mask_rcnn_vitdet_h_100ep import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] + +model.roi_heads.update( + _target_=CascadeROIHeads, + num_classes=1203, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[256, 256, 256, 256], + fc_dims=[1024], + conv_norm="LN", + ) + for _ in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + num_classes="${...num_classes}", + test_score_thresh=0.02, + test_topk_per_image=300, + cls_agnostic_bbox_reg=True, + use_sigmoid_ce=True, + use_fed_loss=True, + get_fed_loss_cls_weights=lambda: get_fed_loss_cls_weights( + dataloader.train.dataset.names, 0.5 + ), + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) diff --git a/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_l_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_l_100ep.py new file mode 100755 index 0000000..ebaf526 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/cascade_mask_rcnn_vitdet_l_100ep.py @@ -0,0 +1,51 @@ +from detectron2.config import LazyCall as L +from detectron2.data.detection_utils import get_fed_loss_cls_weights +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform +from detectron2.modeling.matcher import Matcher +from detectron2.modeling.roi_heads import FastRCNNOutputLayers, FastRCNNConvFCHead, CascadeROIHeads + +from .mask_rcnn_vitdet_l_100ep import ( + dataloader, + lr_multiplier, + model, + optimizer, + train, +) + +# arguments that don't exist for Cascade R-CNN +[model.roi_heads.pop(k) for k in ["box_head", "box_predictor", "proposal_matcher"]] + +model.roi_heads.update( + _target_=CascadeROIHeads, + num_classes=1203, + box_heads=[ + L(FastRCNNConvFCHead)( + input_shape=ShapeSpec(channels=256, height=7, width=7), + conv_dims=[256, 256, 256, 256], + fc_dims=[1024], + conv_norm="LN", + ) + for _ in range(3) + ], + box_predictors=[ + L(FastRCNNOutputLayers)( + input_shape=ShapeSpec(channels=1024), + box2box_transform=L(Box2BoxTransform)(weights=(w1, w1, w2, w2)), + num_classes="${...num_classes}", + test_score_thresh=0.02, + test_topk_per_image=300, + cls_agnostic_bbox_reg=True, + use_sigmoid_ce=True, + use_fed_loss=True, + get_fed_loss_cls_weights=lambda: get_fed_loss_cls_weights( + dataloader.train.dataset.names, 0.5 + ), + ) + for (w1, w2) in [(10, 5), (20, 10), (30, 15)] + ], + proposal_matchers=[ + L(Matcher)(thresholds=[th], labels=[0, 1], allow_low_quality_matches=False) + for th in [0.5, 0.6, 0.7] + ], +) diff --git a/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_b_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_b_100ep.py new file mode 100755 index 0000000..ef90545 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_b_100ep.py @@ -0,0 +1,44 @@ +from detectron2.config import LazyCall as L +from detectron2.data.samplers import RepeatFactorTrainingSampler +from detectron2.evaluation.lvis_evaluation import LVISEvaluator +from detectron2.data.detection_utils import get_fed_loss_cls_weights + +from ..COCO.mask_rcnn_vitdet_b_100ep import ( + dataloader, + model, + train, + lr_multiplier, + optimizer, +) + +dataloader.train.dataset.names = "lvis_v1_train" +dataloader.train.sampler = L(RepeatFactorTrainingSampler)( + repeat_factors=L(RepeatFactorTrainingSampler.repeat_factors_from_category_frequency)( + dataset_dicts="${dataloader.train.dataset}", repeat_thresh=0.001 + ) +) +dataloader.test.dataset.names = "lvis_v1_val" +dataloader.evaluator = L(LVISEvaluator)( + dataset_name="${..test.dataset.names}", + max_dets_per_image=300, +) + +model.roi_heads.num_classes = 1203 +model.roi_heads.box_predictor.test_score_thresh = 0.02 +model.roi_heads.box_predictor.test_topk_per_image = 300 +model.roi_heads.box_predictor.use_sigmoid_ce = True +model.roi_heads.box_predictor.use_fed_loss = True +model.roi_heads.box_predictor.get_fed_loss_cls_weights = lambda: get_fed_loss_cls_weights( + dataloader.train.dataset.names, 0.5 +) + +# Schedule +# 100 ep = 156250 iters * 64 images/iter / 100000 images/ep +train.max_iter = 156250 +train.eval_period = 30000 + +lr_multiplier.scheduler.milestones = [138889, 150463] +lr_multiplier.scheduler.num_updates = train.max_iter +lr_multiplier.warmup_length = 250 / train.max_iter + +optimizer.lr = 2e-4 diff --git a/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_h_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_h_100ep.py new file mode 100755 index 0000000..0f99bad --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_h_100ep.py @@ -0,0 +1,30 @@ +from functools import partial + +from detectron2.modeling.backbone.vit import get_vit_lr_decay_rate + +from .mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_huge_p14to16.pth?matching_heuristics=True" +) + +model.backbone.net.embed_dim = 1280 +model.backbone.net.depth = 32 +model.backbone.net.num_heads = 16 +model.backbone.net.drop_path_rate = 0.4 +# 7, 15, 23, 31 for global attention +model.backbone.net.window_block_indexes = ( + list(range(0, 7)) + list(range(8, 15)) + list(range(16, 23)) + list(range(24, 31)) +) + + +optimizer.lr = 1e-4 +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.9, num_layers=32) +optimizer.params.overrides = {} +optimizer.params.weight_decay_norm = None diff --git a/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_l_100ep.py b/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_l_100ep.py new file mode 100755 index 0000000..15d8792 --- /dev/null +++ b/detectron2/projects/ViTDet/configs/LVIS/mask_rcnn_vitdet_l_100ep.py @@ -0,0 +1,26 @@ +from functools import partial + +from detectron2.modeling.backbone.vit import get_vit_lr_decay_rate + +from .mask_rcnn_vitdet_b_100ep import ( + dataloader, + lr_multiplier, + model, + train, + optimizer, +) + +train.init_checkpoint = ( + "detectron2://ImageNetPretrained/MAE/mae_pretrain_vit_large.pth?matching_heuristics=True" +) + +model.backbone.net.embed_dim = 1024 +model.backbone.net.depth = 24 +model.backbone.net.num_heads = 16 +model.backbone.net.drop_path_rate = 0.4 +# 5, 11, 17, 23 for global attention +model.backbone.net.window_block_indexes = ( + list(range(0, 5)) + list(range(6, 11)) + list(range(12, 17)) + list(range(18, 23)) +) + +optimizer.params.lr_factor_func = partial(get_vit_lr_decay_rate, lr_decay_rate=0.8, num_layers=24) diff --git a/detectron2/projects/ViTDet/configs/common/coco_loader_lsj.py b/detectron2/projects/ViTDet/configs/common/coco_loader_lsj.py new file mode 100755 index 0000000..e6c2f1e --- /dev/null +++ b/detectron2/projects/ViTDet/configs/common/coco_loader_lsj.py @@ -0,0 +1,22 @@ +import detectron2.data.transforms as T +from detectron2 import model_zoo +from detectron2.config import LazyCall as L + +# Data using LSJ +image_size = 1024 +dataloader = model_zoo.get_config("common/data/coco.py").dataloader +dataloader.train.mapper.augmentations = [ + L(T.RandomFlip)(horizontal=True), # flip first + L(T.ResizeScale)( + min_scale=0.1, max_scale=2.0, target_height=image_size, target_width=image_size + ), + L(T.FixedSizeCrop)(crop_size=(image_size, image_size), pad=False), +] +dataloader.train.mapper.image_format = "RGB" +dataloader.train.total_batch_size = 64 +# recompute boxes due to cropping +dataloader.train.mapper.recompute_boxes = True + +dataloader.test.mapper.augmentations = [ + L(T.ResizeShortestEdge)(short_edge_length=image_size, max_size=image_size), +] diff --git a/detectron2/setup.cfg b/detectron2/setup.cfg new file mode 100755 index 0000000..f127d7b --- /dev/null +++ b/detectron2/setup.cfg @@ -0,0 +1,26 @@ +[isort] +line_length=100 +multi_line_output=3 +include_trailing_comma=True +known_standard_library=numpy,setuptools,mock +skip=./datasets,docs +skip_glob=*/__init__.py,**/configs/**,**/tests/config/** +known_myself=detectron2 +known_third_party=fvcore,matplotlib,cv2,torch,torchvision,PIL,pycocotools,yacs,termcolor,cityscapesscripts,tabulate,tqdm,scipy,lvis,psutil,pkg_resources,caffe2,onnx,panopticapi,black,isort,av,iopath,omegaconf,hydra,yaml,pydoc,submitit,cloudpickle,packaging,timm,pandas,fairscale,pytorch3d,pytorch_lightning +no_lines_before=STDLIB,THIRDPARTY +sections=FUTURE,STDLIB,THIRDPARTY,myself,FIRSTPARTY,LOCALFOLDER +default_section=FIRSTPARTY + +[mypy] +python_version=3.7 +ignore_missing_imports = True +warn_unused_configs = True +disallow_untyped_defs = True +check_untyped_defs = True +warn_unused_ignores = True +warn_redundant_casts = True +show_column_numbers = True +follow_imports = silent +allow_redefinition = True +; Require all functions to be annotated +disallow_incomplete_defs = True diff --git a/detectron2/setup.py b/detectron2/setup.py new file mode 100755 index 0000000..559cf54 --- /dev/null +++ b/detectron2/setup.py @@ -0,0 +1,215 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. + +import glob +import os +import shutil +from os import path +from setuptools import find_packages, setup +from typing import List +import torch +from torch.utils.cpp_extension import CUDA_HOME, CppExtension, CUDAExtension + +torch_ver = [int(x) for x in torch.__version__.split(".")[:2]] +assert torch_ver >= [1, 8], "Requires PyTorch >= 1.8" + + +def get_version(): + init_py_path = path.join(path.abspath(path.dirname(__file__)), "detectron2", "__init__.py") + init_py = open(init_py_path, "r").readlines() + version_line = [l.strip() for l in init_py if l.startswith("__version__")][0] + version = version_line.split("=")[-1].strip().strip("'\"") + + # The following is used to build release packages. + # Users should never use it. + suffix = os.getenv("D2_VERSION_SUFFIX", "") + version = version + suffix + if os.getenv("BUILD_NIGHTLY", "0") == "1": + from datetime import datetime + + date_str = datetime.today().strftime("%y%m%d") + version = version + ".dev" + date_str + + new_init_py = [l for l in init_py if not l.startswith("__version__")] + new_init_py.append('__version__ = "{}"\n'.format(version)) + with open(init_py_path, "w") as f: + f.write("".join(new_init_py)) + return version + + +def get_extensions(): + this_dir = path.dirname(path.abspath(__file__)) + extensions_dir = path.join(this_dir, "detectron2", "layers", "csrc") + + main_source = path.join(extensions_dir, "vision.cpp") + sources = glob.glob(path.join(extensions_dir, "**", "*.cpp")) + + from torch.utils.cpp_extension import ROCM_HOME + + is_rocm_pytorch = ( + True if ((torch.version.hip is not None) and (ROCM_HOME is not None)) else False + ) + if is_rocm_pytorch: + assert torch_ver >= [1, 8], "ROCM support requires PyTorch >= 1.8!" + + # common code between cuda and rocm platforms, for hipify version [1,0,0] and later. + source_cuda = glob.glob(path.join(extensions_dir, "**", "*.cu")) + glob.glob( + path.join(extensions_dir, "*.cu") + ) + sources = [main_source] + sources + + extension = CppExtension + + extra_compile_args = {"cxx": []} + define_macros = [] + + if (torch.cuda.is_available() and ((CUDA_HOME is not None) or is_rocm_pytorch)) or os.getenv( + "FORCE_CUDA", "0" + ) == "1": + extension = CUDAExtension + sources += source_cuda + + if not is_rocm_pytorch: + define_macros += [("WITH_CUDA", None)] + extra_compile_args["nvcc"] = [ + "-O3", + "-DCUDA_HAS_FP16=1", + "-D__CUDA_NO_HALF_OPERATORS__", + "-D__CUDA_NO_HALF_CONVERSIONS__", + "-D__CUDA_NO_HALF2_OPERATORS__", + ] + else: + define_macros += [("WITH_HIP", None)] + extra_compile_args["nvcc"] = [] + + if torch_ver < [1, 7]: + # supported by https://github.com/pytorch/pytorch/pull/43931 + CC = os.environ.get("CC", None) + if CC is not None: + extra_compile_args["nvcc"].append("-ccbin={}".format(CC)) + + include_dirs = [extensions_dir] + + ext_modules = [ + extension( + "detectron2._C", + sources, + include_dirs=include_dirs, + define_macros=define_macros, + extra_compile_args=extra_compile_args, + ) + ] + + return ext_modules + + +def get_model_zoo_configs() -> List[str]: + """ + Return a list of configs to include in package for model zoo. Copy over these configs inside + detectron2/model_zoo. + """ + + # Use absolute paths while symlinking. + source_configs_dir = path.join(path.dirname(path.realpath(__file__)), "configs") + destination = path.join( + path.dirname(path.realpath(__file__)), "detectron2", "model_zoo", "configs" + ) + # Symlink the config directory inside package to have a cleaner pip install. + + # Remove stale symlink/directory from a previous build. + if path.exists(source_configs_dir): + if path.islink(destination): + os.unlink(destination) + elif path.isdir(destination): + shutil.rmtree(destination) + + if not path.exists(destination): + try: + os.symlink(source_configs_dir, destination) + except OSError: + # Fall back to copying if symlink fails: ex. on Windows. + shutil.copytree(source_configs_dir, destination) + + config_paths = glob.glob("configs/**/*.yaml", recursive=True) + glob.glob( + "configs/**/*.py", recursive=True + ) + return config_paths + + +# For projects that are relative small and provide features that are very close +# to detectron2's core functionalities, we install them under detectron2.projects +PROJECTS = { + "detectron2.projects.point_rend": "projects/PointRend/point_rend", + "detectron2.projects.deeplab": "projects/DeepLab/deeplab", + "detectron2.projects.panoptic_deeplab": "projects/Panoptic-DeepLab/panoptic_deeplab", +} + +setup( + name="detectron2", + version=get_version(), + author="FAIR", + url="https://github.com/facebookresearch/detectron2", + description="Detectron2 is FAIR's next-generation research " + "platform for object detection and segmentation.", + packages=find_packages(exclude=("configs", "tests*")) + list(PROJECTS.keys()), + package_dir=PROJECTS, + package_data={"detectron2.model_zoo": get_model_zoo_configs()}, + python_requires=">=3.7", + install_requires=[ + # These dependencies are not pure-python. + # In general, avoid adding dependencies that are not pure-python because they are not + # guaranteed to be installable by `pip install` on all platforms. + "Pillow>=7.1", # or use pillow-simd for better performance + "matplotlib", # TODO move it to optional after we add opencv visualization + "pycocotools>=2.0.2", # corresponds to https://github.com/ppwwyyxx/cocoapi + # Do not add opencv here. Just like pytorch, user should install + # opencv themselves, preferrably by OS's package manager, or by + # choosing the proper pypi package name at https://github.com/skvark/opencv-python + # Also, avoid adding dependencies that transitively depend on pytorch or opencv. + # ------------------------------------------------------------ + # The following are pure-python dependencies that should be easily installable. + # But still be careful when adding more: fewer people are able to use the software + # with every new dependency added. + "termcolor>=1.1", + "yacs>=0.1.8", + "tabulate", + "cloudpickle", + "tqdm>4.29.0", + "tensorboard", + # Lock version of fvcore/iopath because they may have breaking changes + # NOTE: when updating fvcore/iopath version, make sure fvcore depends + # on compatible version of iopath. + "fvcore>=0.1.5,<0.1.6", # required like this to make it pip installable + "iopath>=0.1.7,<0.1.10", + "dataclasses; python_version<'3.7'", + "omegaconf>=2.1", + "hydra-core>=1.1", + "black", + "packaging", + # NOTE: When adding new dependencies, if it is required at import time (in addition + # to runtime), it probably needs to appear in docs/requirements.txt, or as a mock + # in docs/conf.py + ], + extras_require={ + # optional dependencies, required by some features + "all": [ + "fairscale", + "timm", # Used by a few ViT models. + "scipy>1.5.1", + "shapely", + "pygments>=2.2", + "psutil", + "panopticapi @ https://github.com/cocodataset/panopticapi/archive/master.zip", + ], + # dev dependencies. Install them by `pip install 'detectron2[dev]'` + "dev": [ + "flake8==3.8.1", + "isort==4.3.21", + "flake8-bugbear", + "flake8-comprehensions", + "black==22.3.0", + ], + }, + ext_modules=get_extensions(), + cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}, +) diff --git a/detectron2/tests/README.md b/detectron2/tests/README.md new file mode 100755 index 0000000..f560384 --- /dev/null +++ b/detectron2/tests/README.md @@ -0,0 +1,9 @@ +## Unit Tests + +To run the unittests, do: +``` +cd detectron2 +python -m unittest discover -v -s ./tests +``` + +There are also end-to-end inference & training tests, in [dev/run_*_tests.sh](../dev). diff --git a/detectron2/tests/__init__.py b/detectron2/tests/__init__.py new file mode 100755 index 0000000..9020c2d --- /dev/null +++ b/detectron2/tests/__init__.py @@ -0,0 +1 @@ +# Copyright (c) Facebook, Inc. and its affiliates. diff --git a/detectron2/tests/config/dir1/bad_import.py b/detectron2/tests/config/dir1/bad_import.py new file mode 100755 index 0000000..d7452c4 --- /dev/null +++ b/detectron2/tests/config/dir1/bad_import.py @@ -0,0 +1,2 @@ +# import from directory is not allowed +from . import dir1a diff --git a/detectron2/tests/config/dir1/bad_import2.py b/detectron2/tests/config/dir1/bad_import2.py new file mode 100755 index 0000000..085a4df --- /dev/null +++ b/detectron2/tests/config/dir1/bad_import2.py @@ -0,0 +1 @@ +from .does_not_exist import x diff --git a/detectron2/tests/config/dir1/dir1_a.py b/detectron2/tests/config/dir1/dir1_a.py new file mode 100755 index 0000000..a939955 --- /dev/null +++ b/detectron2/tests/config/dir1/dir1_a.py @@ -0,0 +1,3 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +dir1a_str = "base_a_1" +dir1a_dict = {"a": 1, "b": 2} diff --git a/detectron2/tests/config/dir1/dir1_b.py b/detectron2/tests/config/dir1/dir1_b.py new file mode 100755 index 0000000..2dcb54c --- /dev/null +++ b/detectron2/tests/config/dir1/dir1_b.py @@ -0,0 +1,11 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from detectron2.config import LazyConfig + +# equivalent to relative import +dir1a_str, dir1a_dict = LazyConfig.load_rel("dir1_a.py", ("dir1a_str", "dir1a_dict")) + +dir1b_str = dir1a_str + "_from_b" +dir1b_dict = dir1a_dict + +# Every import is a reload: not modified by other config files +assert dir1a_dict.a == 1 diff --git a/detectron2/tests/config/dir1/load_rel.py b/detectron2/tests/config/dir1/load_rel.py new file mode 100755 index 0000000..22d10db --- /dev/null +++ b/detectron2/tests/config/dir1/load_rel.py @@ -0,0 +1,5 @@ +# test that load_rel can work +from detectron2.config import LazyConfig + +x = LazyConfig.load_rel("dir1_a.py", "dir1a_dict") +assert x["a"] == 1 diff --git a/detectron2/tests/config/root_cfg.py b/detectron2/tests/config/root_cfg.py new file mode 100755 index 0000000..33d1d4b --- /dev/null +++ b/detectron2/tests/config/root_cfg.py @@ -0,0 +1,14 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from itertools import count + +from detectron2.config import LazyCall as L + +from .dir1.dir1_a import dir1a_dict, dir1a_str + +dir1a_dict.a = "modified" + +# modification above won't affect future imports +from .dir1.dir1_b import dir1b_dict, dir1b_str + + +lazyobj = L(count)(x=dir1a_str, y=dir1b_str) diff --git a/detectron2/tests/config/test_instantiate_config.py b/detectron2/tests/config/test_instantiate_config.py new file mode 100755 index 0000000..6b72894 --- /dev/null +++ b/detectron2/tests/config/test_instantiate_config.py @@ -0,0 +1,109 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import os +import tempfile +import unittest +import yaml +from omegaconf import OmegaConf +from omegaconf import __version__ as oc_version +from dataclasses import dataclass + +from detectron2.config import LazyConfig, instantiate, LazyCall as L +from detectron2.layers import ShapeSpec +from detectron2.utils.testing import reload_lazy_config + +OC_VERSION = tuple(int(x) for x in oc_version.split(".")[:2]) + + +class TestClass: + def __init__(self, int_arg, list_arg=None, dict_arg=None, extra_arg=None): + self.int_arg = int_arg + self.list_arg = list_arg + self.dict_arg = dict_arg + self.extra_arg = extra_arg + + def __call__(self, call_arg): + return call_arg + self.int_arg + + +@unittest.skipIf(OC_VERSION < (2, 1), "omegaconf version too old") +class TestConstruction(unittest.TestCase): + def test_basic_construct(self): + cfg = L(TestClass)( + int_arg=3, + list_arg=[10], + dict_arg={}, + extra_arg=L(TestClass)(int_arg=4, list_arg="${..list_arg}"), + ) + + for x in [cfg, reload_lazy_config(cfg)]: + obj = instantiate(x) + self.assertIsInstance(obj, TestClass) + self.assertEqual(obj.int_arg, 3) + self.assertEqual(obj.extra_arg.int_arg, 4) + self.assertEqual(obj.extra_arg.list_arg, obj.list_arg) + + # Test interpolation + x.extra_arg.list_arg = [5] + obj = instantiate(x) + self.assertIsInstance(obj, TestClass) + self.assertEqual(obj.extra_arg.list_arg, [5]) + + def test_instantiate_other_obj(self): + # do nothing for other obj + self.assertEqual(instantiate(5), 5) + x = [3, 4, 5] + self.assertEqual(instantiate(x), x) + x = TestClass(1) + self.assertIs(instantiate(x), x) + x = {"xx": "yy"} + self.assertIs(instantiate(x), x) + + def test_instantiate_lazy_target(self): + # _target_ is result of instantiate + objconf = L(L(len)(int_arg=3))(call_arg=4) + objconf._target_._target_ = TestClass + self.assertEqual(instantiate(objconf), 7) + + def test_instantiate_list(self): + lst = [1, 2, L(TestClass)(int_arg=1)] + x = L(TestClass)(int_arg=lst) # list as an argument should be recursively instantiated + x = instantiate(x).int_arg + self.assertEqual(x[:2], [1, 2]) + self.assertIsInstance(x[2], TestClass) + self.assertEqual(x[2].int_arg, 1) + + def test_instantiate_dataclass(self): + cfg = L(ShapeSpec)(channels=1, width=3) + # Test original cfg as well as serialization + for x in [cfg, reload_lazy_config(cfg)]: + obj = instantiate(x) + self.assertIsInstance(obj, ShapeSpec) + self.assertEqual(obj.channels, 1) + self.assertEqual(obj.height, None) + + def test_instantiate_dataclass_as_subconfig(self): + cfg = L(TestClass)(int_arg=1, extra_arg=ShapeSpec(channels=1, width=3)) + # Test original cfg as well as serialization + for x in [cfg, reload_lazy_config(cfg)]: + obj = instantiate(x) + self.assertIsInstance(obj.extra_arg, ShapeSpec) + self.assertEqual(obj.extra_arg.channels, 1) + self.assertEqual(obj.extra_arg.height, None) + + def test_bad_lazycall(self): + with self.assertRaises(Exception): + L(3) + + def test_interpolation(self): + cfg = L(TestClass)(int_arg=3, extra_arg="${int_arg}") + + cfg.int_arg = 4 + obj = instantiate(cfg) + self.assertEqual(obj.extra_arg, 4) + + # Test that interpolation still works after serialization + cfg = reload_lazy_config(cfg) + cfg.int_arg = 5 + obj = instantiate(cfg) + self.assertEqual(obj.extra_arg, 5) diff --git a/detectron2/tests/config/test_lazy_config.py b/detectron2/tests/config/test_lazy_config.py new file mode 100755 index 0000000..ff68143 --- /dev/null +++ b/detectron2/tests/config/test_lazy_config.py @@ -0,0 +1,98 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import os +import unittest +import tempfile +from itertools import count + +from detectron2.config import LazyConfig, LazyCall as L +from omegaconf import DictConfig + + +class TestLazyPythonConfig(unittest.TestCase): + def setUp(self): + self.curr_dir = os.path.dirname(__file__) + self.root_filename = os.path.join(self.curr_dir, "root_cfg.py") + + def test_load(self): + cfg = LazyConfig.load(self.root_filename) + + self.assertEqual(cfg.dir1a_dict.a, "modified") + self.assertEqual(cfg.dir1b_dict.a, 1) + self.assertEqual(cfg.lazyobj.x, "base_a_1") + + cfg.lazyobj.x = "new_x" + # reload + cfg = LazyConfig.load(self.root_filename) + self.assertEqual(cfg.lazyobj.x, "base_a_1") + + def test_save_load(self): + cfg = LazyConfig.load(self.root_filename) + with tempfile.TemporaryDirectory(prefix="detectron2") as d: + fname = os.path.join(d, "test_config.yaml") + LazyConfig.save(cfg, fname) + cfg2 = LazyConfig.load(fname) + + self.assertEqual(cfg2.lazyobj._target_, "itertools.count") + self.assertEqual(cfg.lazyobj._target_, count) + cfg2.lazyobj.pop("_target_") + cfg.lazyobj.pop("_target_") + # the rest are equal + self.assertEqual(cfg, cfg2) + + def test_failed_save(self): + cfg = DictConfig({"x": lambda: 3}, flags={"allow_objects": True}) + with tempfile.TemporaryDirectory(prefix="detectron2") as d: + fname = os.path.join(d, "test_config.yaml") + LazyConfig.save(cfg, fname) + self.assertTrue(os.path.exists(fname)) + self.assertTrue(os.path.exists(fname + ".pkl")) + + def test_overrides(self): + cfg = LazyConfig.load(self.root_filename) + LazyConfig.apply_overrides(cfg, ["lazyobj.x=123", 'dir1b_dict.a="123"']) + self.assertEqual(cfg.dir1b_dict.a, "123") + self.assertEqual(cfg.lazyobj.x, 123) + + LazyConfig.apply_overrides(cfg, ["dir1b_dict.a=abc"]) + self.assertEqual(cfg.dir1b_dict.a, "abc") + + def test_invalid_overrides(self): + cfg = LazyConfig.load(self.root_filename) + with self.assertRaises(KeyError): + LazyConfig.apply_overrides(cfg, ["lazyobj.x.xxx=123"]) + + def test_to_py(self): + cfg = LazyConfig.load(self.root_filename) + cfg.lazyobj.x = {"a": 1, "b": 2, "c": L(count)(x={"r": "a", "s": 2.4, "t": [1, 2, 3, "z"]})} + cfg.list = ["a", 1, "b", 3.2] + py_str = LazyConfig.to_py(cfg) + expected = """cfg.dir1a_dict.a = "modified" +cfg.dir1a_dict.b = 2 +cfg.dir1b_dict.a = 1 +cfg.dir1b_dict.b = 2 +cfg.lazyobj = itertools.count( + x={ + "a": 1, + "b": 2, + "c": itertools.count(x={"r": "a", "s": 2.4, "t": [1, 2, 3, "z"]}), + }, + y="base_a_1_from_b", +) +cfg.list = ["a", 1, "b", 3.2] +""" + self.assertEqual(py_str, expected) + + def test_bad_import(self): + file = os.path.join(self.curr_dir, "dir1", "bad_import.py") + with self.assertRaisesRegex(ImportError, "relative import"): + LazyConfig.load(file) + + def test_bad_import2(self): + file = os.path.join(self.curr_dir, "dir1", "bad_import2.py") + with self.assertRaisesRegex(ImportError, "not exist"): + LazyConfig.load(file) + + def test_load_rel(self): + file = os.path.join(self.curr_dir, "dir1", "load_rel.py") + cfg = LazyConfig.load(file) + self.assertIn("x", cfg) diff --git a/detectron2/tests/config/test_yacs_config.py b/detectron2/tests/config/test_yacs_config.py new file mode 100755 index 0000000..01dd695 --- /dev/null +++ b/detectron2/tests/config/test_yacs_config.py @@ -0,0 +1,270 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. + + +import os +import tempfile +import unittest +import torch +from omegaconf import OmegaConf + +from detectron2 import model_zoo +from detectron2.config import configurable, downgrade_config, get_cfg, upgrade_config +from detectron2.layers import ShapeSpec +from detectron2.modeling import build_model + +_V0_CFG = """ +MODEL: + RPN_HEAD: + NAME: "TEST" +VERSION: 0 +""" + +_V1_CFG = """ +MODEL: + WEIGHT: "/path/to/weight" +""" + + +class TestConfigVersioning(unittest.TestCase): + def test_upgrade_downgrade_consistency(self): + cfg = get_cfg() + # check that custom is preserved + cfg.USER_CUSTOM = 1 + + down = downgrade_config(cfg, to_version=0) + up = upgrade_config(down) + self.assertTrue(up == cfg) + + def _merge_cfg_str(self, cfg, merge_str): + f = tempfile.NamedTemporaryFile(mode="w", suffix=".yaml", delete=False) + try: + f.write(merge_str) + f.close() + cfg.merge_from_file(f.name) + finally: + os.remove(f.name) + return cfg + + def test_auto_upgrade(self): + cfg = get_cfg() + latest_ver = cfg.VERSION + cfg.USER_CUSTOM = 1 + + self._merge_cfg_str(cfg, _V0_CFG) + + self.assertEqual(cfg.MODEL.RPN.HEAD_NAME, "TEST") + self.assertEqual(cfg.VERSION, latest_ver) + + def test_guess_v1(self): + cfg = get_cfg() + latest_ver = cfg.VERSION + self._merge_cfg_str(cfg, _V1_CFG) + self.assertEqual(cfg.VERSION, latest_ver) + + +class _TestClassA(torch.nn.Module): + @configurable + def __init__(self, arg1, arg2, arg3=3): + super().__init__() + self.arg1 = arg1 + self.arg2 = arg2 + self.arg3 = arg3 + assert arg1 == 1 + assert arg2 == 2 + assert arg3 == 3 + + @classmethod + def from_config(cls, cfg): + args = {"arg1": cfg.ARG1, "arg2": cfg.ARG2} + return args + + +class _TestClassB(_TestClassA): + @configurable + def __init__(self, input_shape, arg1, arg2, arg3=3): + """ + Doc of _TestClassB + """ + assert input_shape == "shape" + super().__init__(arg1, arg2, arg3) + + @classmethod + def from_config(cls, cfg, input_shape): # test extra positional arg in from_config + args = {"arg1": cfg.ARG1, "arg2": cfg.ARG2} + args["input_shape"] = input_shape + return args + + +class _LegacySubClass(_TestClassB): + # an old subclass written in cfg style + def __init__(self, cfg, input_shape, arg4=4): + super().__init__(cfg, input_shape) + assert self.arg1 == 1 + assert self.arg2 == 2 + assert self.arg3 == 3 + + +class _NewSubClassNewInit(_TestClassB): + # test new subclass with a new __init__ + @configurable + def __init__(self, input_shape, arg4=4, **kwargs): + super().__init__(input_shape, **kwargs) + assert self.arg1 == 1 + assert self.arg2 == 2 + assert self.arg3 == 3 + + +class _LegacySubClassNotCfg(_TestClassB): + # an old subclass written in cfg style, but argument is not called "cfg" + def __init__(self, config, input_shape): + super().__init__(config, input_shape) + assert self.arg1 == 1 + assert self.arg2 == 2 + assert self.arg3 == 3 + + +class _TestClassC(_TestClassB): + @classmethod + def from_config(cls, cfg, input_shape, **kwargs): # test extra kwarg overwrite + args = {"arg1": cfg.ARG1, "arg2": cfg.ARG2} + args["input_shape"] = input_shape + args.update(kwargs) + return args + + +class _TestClassD(_TestClassA): + @configurable + def __init__(self, input_shape: ShapeSpec, arg1: int, arg2, arg3=3): + assert input_shape == "shape" + super().__init__(arg1, arg2, arg3) + + # _TestClassA.from_config does not have input_shape args. + # Test whether input_shape will be forwarded to __init__ + + +@configurable(from_config=lambda cfg, arg2: {"arg1": cfg.ARG1, "arg2": arg2, "arg3": cfg.ARG3}) +def _test_func(arg1, arg2=2, arg3=3, arg4=4): + return arg1, arg2, arg3, arg4 + + +class TestConfigurable(unittest.TestCase): + def testInitWithArgs(self): + _ = _TestClassA(arg1=1, arg2=2, arg3=3) + _ = _TestClassB("shape", arg1=1, arg2=2) + _ = _TestClassC("shape", arg1=1, arg2=2) + _ = _TestClassD("shape", arg1=1, arg2=2, arg3=3) + + def testPatchedAttr(self): + self.assertTrue("Doc" in _TestClassB.__init__.__doc__) + self.assertEqual(_TestClassD.__init__.__annotations__["arg1"], int) + + def testInitWithCfg(self): + cfg = get_cfg() + cfg.ARG1 = 1 + cfg.ARG2 = 2 + cfg.ARG3 = 3 + _ = _TestClassA(cfg) + _ = _TestClassB(cfg, input_shape="shape") + _ = _TestClassC(cfg, input_shape="shape") + _ = _TestClassD(cfg, input_shape="shape") + _ = _LegacySubClass(cfg, input_shape="shape") + _ = _NewSubClassNewInit(cfg, input_shape="shape") + _ = _LegacySubClassNotCfg(cfg, input_shape="shape") + with self.assertRaises(TypeError): + # disallow forwarding positional args to __init__ since it's prone to errors + _ = _TestClassD(cfg, "shape") + + # call with kwargs instead + _ = _TestClassA(cfg=cfg) + _ = _TestClassB(cfg=cfg, input_shape="shape") + _ = _TestClassC(cfg=cfg, input_shape="shape") + _ = _TestClassD(cfg=cfg, input_shape="shape") + _ = _LegacySubClass(cfg=cfg, input_shape="shape") + _ = _NewSubClassNewInit(cfg=cfg, input_shape="shape") + _ = _LegacySubClassNotCfg(config=cfg, input_shape="shape") + + def testInitWithCfgOverwrite(self): + cfg = get_cfg() + cfg.ARG1 = 1 + cfg.ARG2 = 999 # wrong config + with self.assertRaises(AssertionError): + _ = _TestClassA(cfg, arg3=3) + + # overwrite arg2 with correct config later: + _ = _TestClassA(cfg, arg2=2, arg3=3) + _ = _TestClassB(cfg, input_shape="shape", arg2=2, arg3=3) + _ = _TestClassC(cfg, input_shape="shape", arg2=2, arg3=3) + _ = _TestClassD(cfg, input_shape="shape", arg2=2, arg3=3) + + # call with kwargs cfg=cfg instead + _ = _TestClassA(cfg=cfg, arg2=2, arg3=3) + _ = _TestClassB(cfg=cfg, input_shape="shape", arg2=2, arg3=3) + _ = _TestClassC(cfg=cfg, input_shape="shape", arg2=2, arg3=3) + _ = _TestClassD(cfg=cfg, input_shape="shape", arg2=2, arg3=3) + + def testInitWithCfgWrongArgs(self): + cfg = get_cfg() + cfg.ARG1 = 1 + cfg.ARG2 = 2 + with self.assertRaises(TypeError): + _ = _TestClassB(cfg, "shape", not_exist=1) + with self.assertRaises(TypeError): + _ = _TestClassC(cfg, "shape", not_exist=1) + with self.assertRaises(TypeError): + _ = _TestClassD(cfg, "shape", not_exist=1) + + def testBadClass(self): + class _BadClass1: + @configurable + def __init__(self, a=1, b=2): + pass + + class _BadClass2: + @configurable + def __init__(self, a=1, b=2): + pass + + def from_config(self, cfg): # noqa + pass + + class _BadClass3: + @configurable + def __init__(self, a=1, b=2): + pass + + # bad name: must be cfg + @classmethod + def from_config(cls, config): # noqa + pass + + with self.assertRaises(AttributeError): + _ = _BadClass1(a=1) + + with self.assertRaises(TypeError): + _ = _BadClass2(a=1) + + with self.assertRaises(TypeError): + _ = _BadClass3(get_cfg()) + + def testFuncWithCfg(self): + cfg = get_cfg() + cfg.ARG1 = 10 + cfg.ARG3 = 30 + + self.assertEqual(_test_func(1), (1, 2, 3, 4)) + with self.assertRaises(TypeError): + _test_func(cfg) + self.assertEqual(_test_func(cfg, arg2=2), (10, 2, 30, 4)) + self.assertEqual(_test_func(cfg, arg1=100, arg2=20), (100, 20, 30, 4)) + self.assertEqual(_test_func(cfg, arg1=100, arg2=20, arg4=40), (100, 20, 30, 40)) + + self.assertTrue(callable(_test_func.from_config)) + + def testOmegaConf(self): + cfg = model_zoo.get_config("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml") + cfg = OmegaConf.create(cfg.dump()) + if not torch.cuda.is_available(): + cfg.MODEL.DEVICE = "cpu" + # test that a model can be built with omegaconf config as well + build_model(cfg) diff --git a/detectron2/tests/data/__init__.py b/detectron2/tests/data/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/tests/data/test_coco.py b/detectron2/tests/data/test_coco.py new file mode 100755 index 0000000..caabead --- /dev/null +++ b/detectron2/tests/data/test_coco.py @@ -0,0 +1,139 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import json +import numpy as np +import os +import tempfile +import unittest +import pycocotools.mask as mask_util + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.data.datasets.coco import convert_to_coco_dict, load_coco_json +from detectron2.structures import BoxMode + + +def make_mask(): + """ + Makes a donut shaped binary mask. + """ + H = 100 + W = 100 + mask = np.zeros([H, W], dtype=np.uint8) + for x in range(W): + for y in range(H): + d = np.linalg.norm(np.array([W, H]) / 2 - np.array([x, y])) + if d > 10 and d < 20: + mask[y, x] = 1 + return mask + + +def uncompressed_rle(mask): + l = mask.flatten(order="F").tolist() + counts = [] + p = False + cnt = 0 + for i in l: + if i == p: + cnt += 1 + else: + counts.append(cnt) + p = i + cnt = 1 + counts.append(cnt) + return {"counts": counts, "size": [mask.shape[0], mask.shape[1]]} + + +def make_dataset_dicts(mask, compressed: bool = True): + """ + Returns a list of dicts that represents a single COCO data point for + object detection. The single instance given by `mask` is represented by + RLE, either compressed or uncompressed. + """ + record = {} + record["file_name"] = "test" + record["image_id"] = 0 + record["height"] = mask.shape[0] + record["width"] = mask.shape[1] + + y, x = np.nonzero(mask) + if compressed: + segmentation = mask_util.encode(np.asarray(mask, order="F")) + else: + segmentation = uncompressed_rle(mask) + min_x = np.min(x) + max_x = np.max(x) + min_y = np.min(y) + max_y = np.max(y) + obj = { + "bbox": [min_x, min_y, max_x, max_y], + "bbox_mode": BoxMode.XYXY_ABS, + "category_id": 0, + "iscrowd": 0, + "segmentation": segmentation, + } + record["annotations"] = [obj] + return [record] + + +class TestRLEToJson(unittest.TestCase): + def test(self): + # Make a dummy dataset. + mask = make_mask() + DatasetCatalog.register("test_dataset", lambda: make_dataset_dicts(mask)) + MetadataCatalog.get("test_dataset").set(thing_classes=["test_label"]) + + # Dump to json. + json_dict = convert_to_coco_dict("test_dataset") + with tempfile.TemporaryDirectory() as tmpdir: + json_file_name = os.path.join(tmpdir, "test.json") + with open(json_file_name, "w") as f: + json.dump(json_dict, f) + # Load from json. + dicts = load_coco_json(json_file_name, "") + + # Check the loaded mask matches the original. + anno = dicts[0]["annotations"][0] + loaded_mask = mask_util.decode(anno["segmentation"]) + self.assertTrue(np.array_equal(loaded_mask, mask)) + DatasetCatalog.pop("test_dataset") + MetadataCatalog.pop("test_dataset") + + def test_uncompressed_RLE(self): + mask = make_mask() + rle = mask_util.encode(np.asarray(mask, order="F")) + uncompressed = uncompressed_rle(mask) + compressed = mask_util.frPyObjects(uncompressed, *rle["size"]) + self.assertEqual(rle, compressed) + + +class TestConvertCOCO(unittest.TestCase): + @staticmethod + def generate_data(): + record = { + "file_name": "test", + "image_id": 0, + "height": 100, + "width": 100, + "annotations": [ + { + "bbox": [10, 10, 10, 10, 5], + "bbox_mode": BoxMode.XYWHA_ABS, + "category_id": 0, + "iscrowd": 0, + }, + { + "bbox": [15, 15, 3, 3], + "bbox_mode": BoxMode.XYXY_ABS, + "category_id": 0, + "iscrowd": 0, + }, + ], + } + + return [record] + + def test_convert_to_coco(self): + DatasetCatalog.register("test_dataset", lambda: TestConvertCOCO.generate_data()) + MetadataCatalog.get("test_dataset").set(thing_classes=["test_label"]) + convert_to_coco_dict("test_dataset") + DatasetCatalog.pop("test_dataset") + MetadataCatalog.pop("test_dataset") diff --git a/detectron2/tests/data/test_coco_evaluation.py b/detectron2/tests/data/test_coco_evaluation.py new file mode 100755 index 0000000..964f002 --- /dev/null +++ b/detectron2/tests/data/test_coco_evaluation.py @@ -0,0 +1,138 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import contextlib +import copy +import io +import json +import numpy as np +import os +import tempfile +import unittest +import torch +from pycocotools.coco import COCO +from pycocotools.cocoeval import COCOeval + +from detectron2.data import DatasetCatalog +from detectron2.evaluation import COCOEvaluator +from detectron2.evaluation.fast_eval_api import COCOeval_opt +from detectron2.structures import Boxes, Instances + + +class TestCOCOeval(unittest.TestCase): + def test_fast_eval(self): + # A small set of images/categories from COCO val + # fmt: off + detections = [{"image_id": 139, "category_id": 1, "bbox": [417.3332824707031, 159.27003479003906, 47.66064453125, 143.00193786621094], "score": 0.9949821829795837, "segmentation": {"size": [426, 640], "counts": "Tc`52W=3N0N4aNN^E7]:4XE1g:8kDMT;U100000001O1gE[Nk8h1dFiNY9Z1aFkN]9g2J3NdN`FlN`9S1cFRN07]9g1bFoM6;X9c1cFoM=8R9g1bFQN>3U9Y30O01OO1O001N2O1N1O4L4L5UNoE3V:CVF6Q:@YF9l9@ZF 0 else 0.0 + msg = "%s: comparing COCO APIs, %s differs by %f" % (name, k, abs_diff) + self.assertTrue(abs_diff < 1e-4, msg=msg) + + def test_unknown_category(self): + dataset = "coco_2017_val_100" + evaluator = COCOEvaluator(dataset) + evaluator.reset() + inputs = DatasetCatalog.get(dataset)[:2] + pred = Instances((100, 100)) + pred.pred_boxes = Boxes(torch.rand(2, 4)) + pred.scores = torch.rand(2) + pred.pred_classes = torch.tensor([10, 80]) + output = {"instances": pred} + evaluator.process(inputs, [output, output]) + with self.assertRaises(AssertionError): + evaluator.evaluate() diff --git a/detectron2/tests/data/test_dataset.py b/detectron2/tests/data/test_dataset.py new file mode 100755 index 0000000..7bdcda0 --- /dev/null +++ b/detectron2/tests/data/test_dataset.py @@ -0,0 +1,185 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import os +import pickle +import sys +import unittest +from functools import partial +import torch +from iopath.common.file_io import LazyPath + +from detectron2 import model_zoo +from detectron2.config import get_cfg, instantiate +from detectron2.data import ( + DatasetCatalog, + DatasetFromList, + MapDataset, + ToIterableDataset, + build_batch_data_loader, + build_detection_test_loader, + build_detection_train_loader, +) +from detectron2.data.common import ( + AspectRatioGroupedDataset, + set_default_dataset_from_list_serialize_method, +) +from detectron2.data.samplers import InferenceSampler, TrainingSampler + + +def _a_slow_func(x): + return "path/{}".format(x) + + +class TestDatasetFromList(unittest.TestCase): + # Failing for py3.6, likely due to pickle + @unittest.skipIf(sys.version_info.minor <= 6, "Not supported in Python 3.6") + def test_using_lazy_path(self): + dataset = [] + for i in range(10): + dataset.append({"file_name": LazyPath(partial(_a_slow_func, i))}) + + dataset = DatasetFromList(dataset) + for i in range(10): + path = dataset[i]["file_name"] + self.assertTrue(isinstance(path, LazyPath)) + self.assertEqual(os.fspath(path), _a_slow_func(i)) + + def test_alternative_serialize_method(self): + dataset = [1, 2, 3] + dataset = DatasetFromList(dataset, serialize=torch.tensor) + self.assertEqual(dataset[2], torch.tensor(3)) + + def test_change_default_serialize_method(self): + dataset = [1, 2, 3] + with set_default_dataset_from_list_serialize_method(torch.tensor): + dataset_1 = DatasetFromList(dataset, serialize=True) + self.assertEqual(dataset_1[2], torch.tensor(3)) + dataset_2 = DatasetFromList(dataset, serialize=True) + self.assertEqual(dataset_2[2], 3) + + +class TestMapDataset(unittest.TestCase): + @staticmethod + def map_func(x): + if x == 2: + return None + return x * 2 + + def test_map_style(self): + ds = DatasetFromList([1, 2, 3]) + ds = MapDataset(ds, TestMapDataset.map_func) + self.assertEqual(ds[0], 2) + self.assertEqual(ds[2], 6) + self.assertIn(ds[1], [2, 6]) + + def test_iter_style(self): + class DS(torch.utils.data.IterableDataset): + def __iter__(self): + yield from [1, 2, 3] + + ds = DS() + ds = MapDataset(ds, TestMapDataset.map_func) + self.assertIsInstance(ds, torch.utils.data.IterableDataset) + + data = list(iter(ds)) + self.assertEqual(data, [2, 6]) + + def test_pickleability(self): + ds = DatasetFromList([1, 2, 3]) + ds = MapDataset(ds, lambda x: x * 2) + ds = pickle.loads(pickle.dumps(ds)) + self.assertEqual(ds[0], 2) + + +class TestAspectRatioGrouping(unittest.TestCase): + def test_reiter_leak(self): + data = [(1, 0), (0, 1), (1, 0), (0, 1)] + data = [{"width": a, "height": b} for (a, b) in data] + batchsize = 2 + dataset = AspectRatioGroupedDataset(data, batchsize) + + for _ in range(5): + for idx, __ in enumerate(dataset): + if idx == 1: + # manually break, so the iterator does not stop by itself + break + # check that bucket sizes are valid + for bucket in dataset._buckets: + self.assertLess(len(bucket), batchsize) + + +class _MyData(torch.utils.data.IterableDataset): + def __iter__(self): + while True: + yield 1 + + +class TestDataLoader(unittest.TestCase): + def _get_kwargs(self): + # get kwargs of build_detection_train_loader + cfg = model_zoo.get_config("common/data/coco.py").dataloader.train + cfg.dataset.names = "coco_2017_val_100" + cfg.pop("_target_") + kwargs = {k: instantiate(v) for k, v in cfg.items()} + return kwargs + + def test_build_dataloader_train(self): + kwargs = self._get_kwargs() + dl = build_detection_train_loader(**kwargs) + next(iter(dl)) + + def test_build_iterable_dataloader_train(self): + kwargs = self._get_kwargs() + ds = DatasetFromList(kwargs.pop("dataset")) + ds = ToIterableDataset(ds, TrainingSampler(len(ds))) + dl = build_detection_train_loader(dataset=ds, **kwargs) + next(iter(dl)) + + def test_build_iterable_dataloader_from_cfg(self): + cfg = get_cfg() + cfg.DATASETS.TRAIN = ["iter_data"] + DatasetCatalog.register("iter_data", lambda: _MyData()) + dl = build_detection_train_loader(cfg, mapper=lambda x: x, aspect_ratio_grouping=False) + next(iter(dl)) + + dl = build_detection_test_loader(cfg, "iter_data", mapper=lambda x: x) + next(iter(dl)) + + def _check_is_range(self, data_loader, N): + # check that data_loader produces range(N) + data = list(iter(data_loader)) + data = [x for batch in data for x in batch] # flatten the batches + self.assertEqual(len(data), N) + self.assertEqual(set(data), set(range(N))) + + def test_build_batch_dataloader_inference(self): + # Test that build_batch_data_loader can be used for inference + N = 96 + ds = DatasetFromList(list(range(N))) + sampler = InferenceSampler(len(ds)) + dl = build_batch_data_loader(ds, sampler, 8, num_workers=3) + self._check_is_range(dl, N) + + def test_build_dataloader_inference(self): + N = 50 + ds = DatasetFromList(list(range(N))) + sampler = InferenceSampler(len(ds)) + # test that parallel loader works correctly + dl = build_detection_test_loader( + dataset=ds, sampler=sampler, mapper=lambda x: x, num_workers=3 + ) + self._check_is_range(dl, N) + + # test that batch_size works correctly + dl = build_detection_test_loader( + dataset=ds, sampler=sampler, mapper=lambda x: x, batch_size=4, num_workers=0 + ) + self._check_is_range(dl, N) + + def test_build_iterable_dataloader_inference(self): + # Test that build_detection_test_loader supports iterable dataset + N = 50 + ds = DatasetFromList(list(range(N))) + ds = ToIterableDataset(ds, InferenceSampler(len(ds))) + dl = build_detection_test_loader(dataset=ds, mapper=lambda x: x, num_workers=3) + self._check_is_range(dl, N) diff --git a/detectron2/tests/data/test_detection_utils.py b/detectron2/tests/data/test_detection_utils.py new file mode 100755 index 0000000..aac56c0 --- /dev/null +++ b/detectron2/tests/data/test_detection_utils.py @@ -0,0 +1,176 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import copy +import numpy as np +import os +import unittest +import pycocotools.mask as mask_util + +from detectron2.data import MetadataCatalog, detection_utils +from detectron2.data import transforms as T +from detectron2.structures import BitMasks, BoxMode +from detectron2.utils.file_io import PathManager + + +class TestTransformAnnotations(unittest.TestCase): + def test_transform_simple_annotation(self): + transforms = T.TransformList([T.HFlipTransform(400)]) + anno = { + "bbox": np.asarray([10, 10, 200, 300]), + "bbox_mode": BoxMode.XYXY_ABS, + "category_id": 3, + "segmentation": [[10, 10, 100, 100, 100, 10], [150, 150, 200, 150, 200, 200]], + } + + output = detection_utils.transform_instance_annotations(anno, transforms, (400, 400)) + self.assertTrue(np.allclose(output["bbox"], [200, 10, 390, 300])) + self.assertEqual(len(output["segmentation"]), len(anno["segmentation"])) + self.assertTrue(np.allclose(output["segmentation"][0], [390, 10, 300, 100, 300, 10])) + + detection_utils.annotations_to_instances([output, output], (400, 400)) + + def test_transform_empty_annotation(self): + detection_utils.annotations_to_instances([], (400, 400)) + + def test_flip_keypoints(self): + transforms = T.TransformList([T.HFlipTransform(400)]) + anno = { + "bbox": np.asarray([10, 10, 200, 300]), + "bbox_mode": BoxMode.XYXY_ABS, + "keypoints": np.random.rand(17, 3) * 50 + 15, + } + + output = detection_utils.transform_instance_annotations( + copy.deepcopy(anno), + transforms, + (400, 400), + keypoint_hflip_indices=detection_utils.create_keypoint_hflip_indices( + ["keypoints_coco_2017_train"] + ), + ) + # The first keypoint is nose + self.assertTrue(np.allclose(output["keypoints"][0, 0], 400 - anno["keypoints"][0, 0])) + # The last 16 keypoints are 8 left-right pairs + self.assertTrue( + np.allclose( + output["keypoints"][1:, 0].reshape(-1, 2)[:, ::-1], + 400 - anno["keypoints"][1:, 0].reshape(-1, 2), + ) + ) + self.assertTrue( + np.allclose( + output["keypoints"][1:, 1:].reshape(-1, 2, 2)[:, ::-1, :], + anno["keypoints"][1:, 1:].reshape(-1, 2, 2), + ) + ) + + def test_crop(self): + transforms = T.TransformList([T.CropTransform(300, 300, 10, 10)]) + keypoints = np.random.rand(17, 3) * 50 + 15 + keypoints[:, 2] = 2 + anno = { + "bbox": np.asarray([10, 10, 200, 400]), + "bbox_mode": BoxMode.XYXY_ABS, + "keypoints": keypoints, + } + + output = detection_utils.transform_instance_annotations( + copy.deepcopy(anno), transforms, (10, 10) + ) + # box is shifted and cropped + self.assertTrue((output["bbox"] == np.asarray([0, 0, 0, 10])).all()) + # keypoints are no longer visible + self.assertTrue((output["keypoints"][:, 2] == 0).all()) + + def test_transform_RLE(self): + transforms = T.TransformList([T.HFlipTransform(400)]) + mask = np.zeros((300, 400), order="F").astype("uint8") + mask[:, :200] = 1 + + anno = { + "bbox": np.asarray([10, 10, 200, 300]), + "bbox_mode": BoxMode.XYXY_ABS, + "segmentation": mask_util.encode(mask[:, :, None])[0], + "category_id": 3, + } + output = detection_utils.transform_instance_annotations( + copy.deepcopy(anno), transforms, (300, 400) + ) + mask = output["segmentation"] + self.assertTrue((mask[:, 200:] == 1).all()) + self.assertTrue((mask[:, :200] == 0).all()) + + inst = detection_utils.annotations_to_instances( + [output, output], (400, 400), mask_format="bitmask" + ) + self.assertTrue(isinstance(inst.gt_masks, BitMasks)) + + def test_transform_RLE_resize(self): + transforms = T.TransformList( + [T.HFlipTransform(400), T.ScaleTransform(300, 400, 400, 400, "bilinear")] + ) + mask = np.zeros((300, 400), order="F").astype("uint8") + mask[:, :200] = 1 + + anno = { + "bbox": np.asarray([10, 10, 200, 300]), + "bbox_mode": BoxMode.XYXY_ABS, + "segmentation": mask_util.encode(mask[:, :, None])[0], + "category_id": 3, + } + output = detection_utils.transform_instance_annotations( + copy.deepcopy(anno), transforms, (400, 400) + ) + + inst = detection_utils.annotations_to_instances( + [output, output], (400, 400), mask_format="bitmask" + ) + self.assertTrue(isinstance(inst.gt_masks, BitMasks)) + + def test_gen_crop(self): + instance = {"bbox": [10, 10, 100, 100], "bbox_mode": BoxMode.XYXY_ABS} + t = detection_utils.gen_crop_transform_with_instance((10, 10), (150, 150), instance) + # the box center must fall into the cropped region + self.assertTrue(t.x0 <= 55 <= t.x0 + t.w) + + def test_gen_crop_outside_boxes(self): + instance = {"bbox": [10, 10, 100, 100], "bbox_mode": BoxMode.XYXY_ABS} + with self.assertRaises(AssertionError): + detection_utils.gen_crop_transform_with_instance((10, 10), (15, 15), instance) + + def test_read_sem_seg(self): + cityscapes_dir = MetadataCatalog.get("cityscapes_fine_sem_seg_val").gt_dir + sem_seg_gt_path = os.path.join( + cityscapes_dir, "frankfurt", "frankfurt_000001_083852_gtFine_labelIds.png" + ) + if not PathManager.exists(sem_seg_gt_path): + raise unittest.SkipTest( + "Semantic segmentation ground truth {} not found.".format(sem_seg_gt_path) + ) + sem_seg = detection_utils.read_image(sem_seg_gt_path, "L") + self.assertEqual(sem_seg.ndim, 3) + self.assertEqual(sem_seg.shape[2], 1) + self.assertEqual(sem_seg.dtype, np.uint8) + self.assertEqual(sem_seg.max(), 32) + self.assertEqual(sem_seg.min(), 1) + + def test_read_exif_orientation(self): + # https://github.com/recurser/exif-orientation-examples/raw/master/Landscape_5.jpg + URL = "detectron2://assets/Landscape_5.jpg" + img = detection_utils.read_image(URL, "RGB") + self.assertEqual(img.ndim, 3) + self.assertEqual(img.dtype, np.uint8) + self.assertEqual(img.shape, (1200, 1800, 3)) # check that shape is not transposed + + def test_opencv_exif_orientation(self): + import cv2 + + URL = "detectron2://assets/Landscape_5.jpg" + with PathManager.open(URL, "rb") as f: + img = cv2.imdecode(np.frombuffer(f.read(), dtype="uint8"), cv2.IMREAD_COLOR) + self.assertEqual(img.dtype, np.uint8) + self.assertEqual(img.shape, (1200, 1800, 3)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/data/test_rotation_transform.py b/detectron2/tests/data/test_rotation_transform.py new file mode 100755 index 0000000..0e8299e --- /dev/null +++ b/detectron2/tests/data/test_rotation_transform.py @@ -0,0 +1,71 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import unittest + +from detectron2.data.transforms.transform import RotationTransform + + +class TestRotationTransform(unittest.TestCase): + def assertEqualsArrays(self, a1, a2): + self.assertTrue(np.allclose(a1, a2)) + + def randomData(self, h=5, w=5): + image = np.random.rand(h, w) + coords = np.array([[i, j] for j in range(h + 1) for i in range(w + 1)], dtype=float) + return image, coords, h, w + + def test180(self): + image, coords, h, w = self.randomData(6, 6) + rot = RotationTransform(h, w, 180, expand=False, center=None) + self.assertEqualsArrays(rot.apply_image(image), image[::-1, ::-1]) + rotated_coords = [[w - c[0], h - c[1]] for c in coords] + self.assertEqualsArrays(rot.apply_coords(coords), rotated_coords) + + def test45_coords(self): + _, coords, h, w = self.randomData(4, 6) + rot = RotationTransform(h, w, 45, expand=False, center=None) + rotated_coords = [ + [(x + y - (h + w) / 2) / np.sqrt(2) + w / 2, h / 2 + (y + (w - h) / 2 - x) / np.sqrt(2)] + for (x, y) in coords + ] + self.assertEqualsArrays(rot.apply_coords(coords), rotated_coords) + + def test90(self): + image, coords, h, w = self.randomData() + rot = RotationTransform(h, w, 90, expand=False, center=None) + self.assertEqualsArrays(rot.apply_image(image), image.T[::-1]) + rotated_coords = [[c[1], w - c[0]] for c in coords] + self.assertEqualsArrays(rot.apply_coords(coords), rotated_coords) + + def test90_expand(self): # non-square image + image, coords, h, w = self.randomData(h=5, w=8) + rot = RotationTransform(h, w, 90, expand=True, center=None) + self.assertEqualsArrays(rot.apply_image(image), image.T[::-1]) + rotated_coords = [[c[1], w - c[0]] for c in coords] + self.assertEqualsArrays(rot.apply_coords(coords), rotated_coords) + + def test_center_expand(self): + # center has no effect if expand=True because it only affects shifting + image, coords, h, w = self.randomData(h=5, w=8) + angle = np.random.randint(360) + rot1 = RotationTransform(h, w, angle, expand=True, center=None) + rot2 = RotationTransform(h, w, angle, expand=True, center=(0, 0)) + rot3 = RotationTransform(h, w, angle, expand=True, center=(h, w)) + rot4 = RotationTransform(h, w, angle, expand=True, center=(2, 5)) + for r1 in [rot1, rot2, rot3, rot4]: + for r2 in [rot1, rot2, rot3, rot4]: + self.assertEqualsArrays(r1.apply_image(image), r2.apply_image(image)) + self.assertEqualsArrays(r1.apply_coords(coords), r2.apply_coords(coords)) + + def test_inverse_transform(self): + image, coords, h, w = self.randomData(h=5, w=8) + rot = RotationTransform(h, w, 90, expand=True, center=None) + rot_image = rot.apply_image(image) + self.assertEqualsArrays(rot.inverse().apply_image(rot_image), image) + rot = RotationTransform(h, w, 65, expand=True, center=None) + rotated_coords = rot.apply_coords(coords) + self.assertEqualsArrays(rot.inverse().apply_coords(rotated_coords), coords) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/data/test_sampler.py b/detectron2/tests/data/test_sampler.py new file mode 100755 index 0000000..0d27843 --- /dev/null +++ b/detectron2/tests/data/test_sampler.py @@ -0,0 +1,111 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import itertools +import math +import operator +import unittest +import torch +from torch.utils import data +from torch.utils.data.sampler import SequentialSampler + +from detectron2.data.build import worker_init_reset_seed +from detectron2.data.common import DatasetFromList, ToIterableDataset +from detectron2.data.samplers import ( + GroupedBatchSampler, + InferenceSampler, + RepeatFactorTrainingSampler, + TrainingSampler, +) +from detectron2.utils.env import seed_all_rng + + +class TestGroupedBatchSampler(unittest.TestCase): + def test_missing_group_id(self): + sampler = SequentialSampler(list(range(100))) + group_ids = [1] * 100 + samples = GroupedBatchSampler(sampler, group_ids, 2) + + for mini_batch in samples: + self.assertEqual(len(mini_batch), 2) + + def test_groups(self): + sampler = SequentialSampler(list(range(100))) + group_ids = [1, 0] * 50 + samples = GroupedBatchSampler(sampler, group_ids, 2) + + for mini_batch in samples: + self.assertEqual((mini_batch[0] + mini_batch[1]) % 2, 0) + + +class TestSamplerDeterministic(unittest.TestCase): + def test_to_iterable(self): + sampler = TrainingSampler(100, seed=10) + gt_output = list(itertools.islice(sampler, 100)) + self.assertEqual(set(gt_output), set(range(100))) + + dataset = DatasetFromList(list(range(100))) + dataset = ToIterableDataset(dataset, sampler) + data_loader = data.DataLoader(dataset, num_workers=0, collate_fn=operator.itemgetter(0)) + + output = list(itertools.islice(data_loader, 100)) + self.assertEqual(output, gt_output) + + data_loader = data.DataLoader( + dataset, + num_workers=2, + collate_fn=operator.itemgetter(0), + worker_init_fn=worker_init_reset_seed, + # reset seed should not affect behavior of TrainingSampler + ) + output = list(itertools.islice(data_loader, 100)) + # multiple workers should not lead to duplicate or different data + self.assertEqual(output, gt_output) + + def test_training_sampler_seed(self): + seed_all_rng(42) + sampler = TrainingSampler(30) + data = list(itertools.islice(sampler, 65)) + + seed_all_rng(42) + sampler = TrainingSampler(30) + seed_all_rng(999) # should be ineffective + data2 = list(itertools.islice(sampler, 65)) + self.assertEqual(data, data2) + + +class TestRepeatFactorTrainingSampler(unittest.TestCase): + def test_repeat_factors_from_category_frequency(self): + repeat_thresh = 0.5 + + dataset_dicts = [ + {"annotations": [{"category_id": 0}, {"category_id": 1}]}, + {"annotations": [{"category_id": 0}]}, + {"annotations": []}, + ] + + rep_factors = RepeatFactorTrainingSampler.repeat_factors_from_category_frequency( + dataset_dicts, repeat_thresh + ) + + expected_rep_factors = torch.tensor([math.sqrt(3 / 2), 1.0, 1.0]) + self.assertTrue(torch.allclose(rep_factors, expected_rep_factors)) + + +class TestInferenceSampler(unittest.TestCase): + def test_local_indices(self): + sizes = [0, 16, 2, 42] + world_sizes = [5, 2, 3, 4] + + expected_results = [ + [range(0) for _ in range(5)], + [range(8), range(8, 16)], + [range(1), range(1, 2), range(0)], + [range(11), range(11, 22), range(22, 32), range(32, 42)], + ] + + for size, world_size, expected_result in zip(sizes, world_sizes, expected_results): + with self.subTest(f"size={size}, world_size={world_size}"): + local_indices = [ + InferenceSampler._get_local_indices(size, world_size, r) + for r in range(world_size) + ] + self.assertEqual(local_indices, expected_result) diff --git a/detectron2/tests/data/test_transforms.py b/detectron2/tests/data/test_transforms.py new file mode 100755 index 0000000..382048e --- /dev/null +++ b/detectron2/tests/data/test_transforms.py @@ -0,0 +1,268 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +import numpy as np +import unittest +from unittest import mock +import torch +from PIL import Image, ImageOps +from torch.nn import functional as F + +from detectron2.config import get_cfg +from detectron2.data import detection_utils +from detectron2.data import transforms as T +from detectron2.utils.logger import setup_logger + +logger = logging.getLogger(__name__) + + +def polygon_allclose(poly1, poly2): + """ + Test whether two polygons are the same. + Both arguments are nx2 numpy arrays. + """ + # ABCD and CDAB are the same polygon. So it's important to check after rolling + for k in range(len(poly1)): + rolled_poly1 = np.roll(poly1, k, axis=0) + if np.allclose(rolled_poly1, poly2): + return True + return False + + +class TestTransforms(unittest.TestCase): + def setUp(self): + setup_logger() + + def test_apply_rotated_boxes(self): + np.random.seed(125) + cfg = get_cfg() + is_train = True + augs = detection_utils.build_augmentation(cfg, is_train) + image = np.random.rand(200, 300) + image, transforms = T.apply_augmentations(augs, image) + image_shape = image.shape[:2] # h, w + assert image_shape == (800, 1200) + annotation = {"bbox": [179, 97, 62, 40, -56]} + + boxes = np.array([annotation["bbox"]], dtype=np.float64) # boxes.shape = (1, 5) + transformed_bbox = transforms.apply_rotated_box(boxes)[0] + + expected_bbox = np.array([484, 388, 248, 160, 56], dtype=np.float64) + err_msg = "transformed_bbox = {}, expected {}".format(transformed_bbox, expected_bbox) + assert np.allclose(transformed_bbox, expected_bbox), err_msg + + def test_resize_and_crop(self): + np.random.seed(125) + min_scale = 0.2 + max_scale = 2.0 + target_height = 1100 + target_width = 1000 + resize_aug = T.ResizeScale(min_scale, max_scale, target_height, target_width) + fixed_size_crop_aug = T.FixedSizeCrop((target_height, target_width)) + hflip_aug = T.RandomFlip() + augs = [resize_aug, fixed_size_crop_aug, hflip_aug] + original_image = np.random.rand(900, 800) + image, transforms = T.apply_augmentations(augs, original_image) + image_shape = image.shape[:2] # h, w + self.assertEqual((1100, 1000), image_shape) + + boxes = np.array( + [[91, 46, 144, 111], [523, 251, 614, 295]], + dtype=np.float64, + ) + transformed_bboxs = transforms.apply_box(boxes) + expected_bboxs = np.array( + [ + [895.42, 33.42666667, 933.91125, 80.66], + [554.0825, 182.39333333, 620.17125, 214.36666667], + ], + dtype=np.float64, + ) + err_msg = "transformed_bbox = {}, expected {}".format(transformed_bboxs, expected_bboxs) + self.assertTrue(np.allclose(transformed_bboxs, expected_bboxs), err_msg) + + polygon = np.array([[91, 46], [144, 46], [144, 111], [91, 111]]) + transformed_polygons = transforms.apply_polygons([polygon]) + expected_polygon = np.array([[934.0, 33.0], [934.0, 80.0], [896.0, 80.0], [896.0, 33.0]]) + self.assertEqual(1, len(transformed_polygons)) + err_msg = "transformed_polygon = {}, expected {}".format( + transformed_polygons[0], expected_polygon + ) + self.assertTrue(polygon_allclose(transformed_polygons[0], expected_polygon), err_msg) + + def test_apply_rotated_boxes_unequal_scaling_factor(self): + np.random.seed(125) + h, w = 400, 200 + newh, neww = 800, 800 + image = np.random.rand(h, w) + augs = [] + augs.append(T.Resize(shape=(newh, neww))) + image, transforms = T.apply_augmentations(augs, image) + image_shape = image.shape[:2] # h, w + assert image_shape == (newh, neww) + + boxes = np.array( + [ + [150, 100, 40, 20, 0], + [150, 100, 40, 20, 30], + [150, 100, 40, 20, 90], + [150, 100, 40, 20, -90], + ], + dtype=np.float64, + ) + transformed_boxes = transforms.apply_rotated_box(boxes) + + expected_bboxes = np.array( + [ + [600, 200, 160, 40, 0], + [600, 200, 144.22205102, 52.91502622, 49.10660535], + [600, 200, 80, 80, 90], + [600, 200, 80, 80, -90], + ], + dtype=np.float64, + ) + err_msg = "transformed_boxes = {}, expected {}".format(transformed_boxes, expected_bboxes) + assert np.allclose(transformed_boxes, expected_bboxes), err_msg + + def test_print_augmentation(self): + t = T.RandomCrop("relative", (100, 100)) + self.assertEqual(str(t), "RandomCrop(crop_type='relative', crop_size=(100, 100))") + + t0 = T.RandomFlip(prob=0.5) + self.assertEqual(str(t0), "RandomFlip(prob=0.5)") + + t1 = T.RandomFlip() + self.assertEqual(str(t1), "RandomFlip()") + + t = T.AugmentationList([t0, t1]) + self.assertEqual(str(t), f"AugmentationList[{t0}, {t1}]") + + def test_random_apply_prob_out_of_range_check(self): + test_probabilities = {0.0: True, 0.5: True, 1.0: True, -0.01: False, 1.01: False} + + for given_probability, is_valid in test_probabilities.items(): + if not is_valid: + self.assertRaises(AssertionError, T.RandomApply, None, prob=given_probability) + else: + T.RandomApply(T.NoOpTransform(), prob=given_probability) + + def test_random_apply_wrapping_aug_probability_occured_evaluation(self): + transform_mock = mock.MagicMock(name="MockTransform", spec=T.Augmentation) + image_mock = mock.MagicMock(name="MockImage") + random_apply = T.RandomApply(transform_mock, prob=0.001) + + with mock.patch.object(random_apply, "_rand_range", return_value=0.0001): + transform = random_apply.get_transform(image_mock) + transform_mock.get_transform.assert_called_once_with(image_mock) + self.assertIsNot(transform, transform_mock) + + def test_random_apply_wrapping_std_transform_probability_occured_evaluation(self): + transform_mock = mock.MagicMock(name="MockTransform", spec=T.Transform) + image_mock = mock.MagicMock(name="MockImage") + random_apply = T.RandomApply(transform_mock, prob=0.001) + + with mock.patch.object(random_apply, "_rand_range", return_value=0.0001): + transform = random_apply.get_transform(image_mock) + self.assertIs(transform, transform_mock) + + def test_random_apply_probability_not_occured_evaluation(self): + transform_mock = mock.MagicMock(name="MockTransform", spec=T.Augmentation) + image_mock = mock.MagicMock(name="MockImage") + random_apply = T.RandomApply(transform_mock, prob=0.001) + + with mock.patch.object(random_apply, "_rand_range", return_value=0.9): + transform = random_apply.get_transform(image_mock) + transform_mock.get_transform.assert_not_called() + self.assertIsInstance(transform, T.NoOpTransform) + + def test_augmentation_input_args(self): + input_shape = (100, 100) + output_shape = (50, 50) + + # define two augmentations with different args + class TG1(T.Augmentation): + def get_transform(self, image, sem_seg): + return T.ResizeTransform( + input_shape[0], input_shape[1], output_shape[0], output_shape[1] + ) + + class TG2(T.Augmentation): + def get_transform(self, image): + assert image.shape[:2] == output_shape # check that TG1 is applied + return T.HFlipTransform(output_shape[1]) + + image = np.random.rand(*input_shape).astype("float32") + sem_seg = (np.random.rand(*input_shape) < 0.5).astype("uint8") + inputs = T.AugInput(image, sem_seg=sem_seg) # provide two args + tfms = inputs.apply_augmentations([TG1(), TG2()]) + self.assertIsInstance(tfms[0], T.ResizeTransform) + self.assertIsInstance(tfms[1], T.HFlipTransform) + self.assertTrue(inputs.image.shape[:2] == output_shape) + self.assertTrue(inputs.sem_seg.shape[:2] == output_shape) + + class TG3(T.Augmentation): + def get_transform(self, image, nonexist): + pass + + with self.assertRaises(AttributeError): + inputs.apply_augmentations([TG3()]) + + def test_augmentation_list(self): + input_shape = (100, 100) + image = np.random.rand(*input_shape).astype("float32") + sem_seg = (np.random.rand(*input_shape) < 0.5).astype("uint8") + inputs = T.AugInput(image, sem_seg=sem_seg) # provide two args + + augs = T.AugmentationList([T.RandomFlip(), T.Resize(20)]) + _ = T.AugmentationList([augs, T.Resize(30)])(inputs) + # 3 in latest fvcore (flattened transformlist), 2 in older + # self.assertEqual(len(tfms), 3) + + def test_color_transforms(self): + rand_img = np.random.random((100, 100, 3)) * 255 + rand_img = rand_img.astype("uint8") + + # Test no-op + noop_transform = T.ColorTransform(lambda img: img) + self.assertTrue(np.array_equal(rand_img, noop_transform.apply_image(rand_img))) + + # Test a ImageOps operation + magnitude = np.random.randint(0, 256) + solarize_transform = T.PILColorTransform(lambda img: ImageOps.solarize(img, magnitude)) + expected_img = ImageOps.solarize(Image.fromarray(rand_img), magnitude) + self.assertTrue(np.array_equal(expected_img, solarize_transform.apply_image(rand_img))) + + def test_resize_transform(self): + input_shapes = [(100, 100), (100, 100, 1), (100, 100, 3)] + output_shapes = [(200, 200), (200, 200, 1), (200, 200, 3)] + for in_shape, out_shape in zip(input_shapes, output_shapes): + in_img = np.random.randint(0, 255, size=in_shape, dtype=np.uint8) + tfm = T.ResizeTransform(in_shape[0], in_shape[1], out_shape[0], out_shape[1]) + out_img = tfm.apply_image(in_img) + self.assertEqual(out_img.shape, out_shape) + + def test_resize_shorted_edge_scriptable(self): + def f(image): + newh, neww = T.ResizeShortestEdge.get_output_shape( + image.shape[-2], image.shape[-1], 80, 133 + ) + return F.interpolate(image.unsqueeze(0), size=(newh, neww)) + + input = torch.randn(3, 10, 10) + script_f = torch.jit.script(f) + self.assertTrue(torch.allclose(f(input), script_f(input))) + + # generalize to new shapes + input = torch.randn(3, 8, 100) + self.assertTrue(torch.allclose(f(input), script_f(input))) + + def test_extent_transform(self): + input_shapes = [(100, 100), (100, 100, 1), (100, 100, 3)] + src_rect = (20, 20, 80, 80) + output_shapes = [(200, 200), (200, 200, 1), (200, 200, 3)] + for in_shape, out_shape in zip(input_shapes, output_shapes): + in_img = np.random.randint(0, 255, size=in_shape, dtype=np.uint8) + tfm = T.ExtentTransform(src_rect, out_shape[:2]) + out_img = tfm.apply_image(in_img) + self.assertTrue(out_img.shape == out_shape) diff --git a/detectron2/tests/export/test_c10.py b/detectron2/tests/export/test_c10.py new file mode 100755 index 0000000..55076ab --- /dev/null +++ b/detectron2/tests/export/test_c10.py @@ -0,0 +1,25 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest + +try: + # Caffe2 used to be included in PyTorch, but since PyTorch 1.10+, + # it is not included in pre-built packages. This is a safety BC check + from detectron2.config import get_cfg + from detectron2.export.c10 import Caffe2RPN + from detectron2.layers import ShapeSpec +except ImportError: + raise unittest.SkipTest( + f"PyTorch does not have Caffe2 support. Skipping all tests in {__name__}" + ) from None + + +class TestCaffe2RPN(unittest.TestCase): + def test_instantiation(self): + cfg = get_cfg() + cfg.MODEL.RPN.BBOX_REG_WEIGHTS = (1, 1, 1, 1, 1) + input_shapes = {"res4": ShapeSpec(channels=256, stride=4)} + rpn = Caffe2RPN(cfg, input_shapes) + assert rpn is not None + cfg.MODEL.RPN.BBOX_REG_WEIGHTS = (10, 10, 5, 5, 1) + with self.assertRaises(AssertionError): + rpn = Caffe2RPN(cfg, input_shapes) diff --git a/detectron2/tests/layers/__init__.py b/detectron2/tests/layers/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/tests/layers/test_blocks.py b/detectron2/tests/layers/test_blocks.py new file mode 100755 index 0000000..5a0488a --- /dev/null +++ b/detectron2/tests/layers/test_blocks.py @@ -0,0 +1,51 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest +import torch +from torch import nn + +from detectron2.layers import ASPP, DepthwiseSeparableConv2d, FrozenBatchNorm2d +from detectron2.modeling.backbone.resnet import BasicStem, ResNet + + +""" +Test for misc layers. +""" + + +class TestBlocks(unittest.TestCase): + def test_separable_conv(self): + DepthwiseSeparableConv2d(3, 10, norm1="BN", activation1=nn.PReLU()) + + def test_aspp(self): + m = ASPP(3, 10, [2, 3, 4], norm="", activation=nn.PReLU()) + self.assertIsNot(m.convs[0].activation.weight, m.convs[1].activation.weight) + self.assertIsNot(m.convs[0].activation.weight, m.project.activation.weight) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_frozen_batchnorm_fp16(self): + from torch.cuda.amp import autocast + + C = 10 + input = torch.rand(1, C, 10, 10).cuda() + m = FrozenBatchNorm2d(C).cuda() + with autocast(): + output = m(input.half()) + self.assertEqual(output.dtype, torch.float16) + + # requires_grad triggers a different codepath + input.requires_grad_() + with autocast(): + output = m(input.half()) + self.assertEqual(output.dtype, torch.float16) + + def test_resnet_unused_stages(self): + resnet = ResNet(BasicStem(), ResNet.make_default_stages(18), out_features=["res2"]) + self.assertTrue(hasattr(resnet, "res2")) + self.assertFalse(hasattr(resnet, "res3")) + self.assertFalse(hasattr(resnet, "res5")) + + resnet = ResNet(BasicStem(), ResNet.make_default_stages(18), out_features=["res2", "res5"]) + self.assertTrue(hasattr(resnet, "res2")) + self.assertTrue(hasattr(resnet, "res4")) + self.assertTrue(hasattr(resnet, "res5")) diff --git a/detectron2/tests/layers/test_deformable.py b/detectron2/tests/layers/test_deformable.py new file mode 100755 index 0000000..4aa319f --- /dev/null +++ b/detectron2/tests/layers/test_deformable.py @@ -0,0 +1,175 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import unittest +import torch + +from detectron2.layers import DeformConv, ModulatedDeformConv +from detectron2.utils.env import TORCH_VERSION + + +@unittest.skipIf( + TORCH_VERSION == (1, 8) and torch.cuda.is_available(), + "This test fails under cuda11 + torch1.8.", +) +class DeformableTest(unittest.TestCase): + @unittest.skipIf(not torch.cuda.is_available(), "Deformable not supported for cpu") + def test_forward_output(self): + device = torch.device("cuda") + N, C, H, W = shape = 1, 1, 5, 5 + kernel_size = 3 + padding = 1 + + inputs = torch.arange(np.prod(shape), dtype=torch.float32).reshape(*shape).to(device) + """ + 0 1 2 3 4 + 5 6 7 8 9 + 10 11 12 13 14 + 15 16 17 18 19 + 20 21 22 23 24 + """ + offset_channels = kernel_size * kernel_size * 2 + offset = torch.full((N, offset_channels, H, W), 0.5, dtype=torch.float32).to(device) + + # Test DCN v1 + deform = DeformConv(C, C, kernel_size=kernel_size, padding=padding).to(device) + deform.weight = torch.nn.Parameter(torch.ones_like(deform.weight)) + output = deform(inputs, offset) + output = output.detach().cpu().numpy() + deform_results = np.array( + [ + [30, 41.25, 48.75, 45, 28.75], + [62.25, 81, 90, 80.25, 50.25], + [99.75, 126, 135, 117.75, 72.75], + [105, 131.25, 138.75, 120, 73.75], + [71.75, 89.25, 93.75, 80.75, 49.5], + ] + ) + self.assertTrue(np.allclose(output.flatten(), deform_results.flatten())) + + # Test DCN v2 + mask_channels = kernel_size * kernel_size + mask = torch.full((N, mask_channels, H, W), 0.5, dtype=torch.float32).to(device) + modulate_deform = ModulatedDeformConv(C, C, kernel_size, padding=padding, bias=False).to( + device + ) + modulate_deform.weight = deform.weight + output = modulate_deform(inputs, offset, mask) + output = output.detach().cpu().numpy() + self.assertTrue(np.allclose(output.flatten(), deform_results.flatten() * 0.5)) + + def test_forward_output_on_cpu(self): + device = torch.device("cpu") + N, C, H, W = shape = 1, 1, 5, 5 + kernel_size = 3 + padding = 1 + + inputs = torch.arange(np.prod(shape), dtype=torch.float32).reshape(*shape).to(device) + + offset_channels = kernel_size * kernel_size * 2 + offset = torch.full((N, offset_channels, H, W), 0.5, dtype=torch.float32).to(device) + + # Test DCN v1 on cpu + deform = DeformConv(C, C, kernel_size=kernel_size, padding=padding).to(device) + deform.weight = torch.nn.Parameter(torch.ones_like(deform.weight)) + output = deform(inputs, offset) + output = output.detach().cpu().numpy() + deform_results = np.array( + [ + [30, 41.25, 48.75, 45, 28.75], + [62.25, 81, 90, 80.25, 50.25], + [99.75, 126, 135, 117.75, 72.75], + [105, 131.25, 138.75, 120, 73.75], + [71.75, 89.25, 93.75, 80.75, 49.5], + ] + ) + self.assertTrue(np.allclose(output.flatten(), deform_results.flatten())) + + @unittest.skipIf(not torch.cuda.is_available(), "This test requires gpu access") + def test_forward_output_on_cpu_equals_output_on_gpu(self): + N, C, H, W = shape = 2, 4, 10, 10 + kernel_size = 3 + padding = 1 + + for groups in [1, 2]: + inputs = torch.arange(np.prod(shape), dtype=torch.float32).reshape(*shape) + offset_channels = kernel_size * kernel_size * 2 + offset = torch.full((N, offset_channels, H, W), 0.5, dtype=torch.float32) + + deform_gpu = DeformConv( + C, C, kernel_size=kernel_size, padding=padding, groups=groups + ).to("cuda") + deform_gpu.weight = torch.nn.Parameter(torch.ones_like(deform_gpu.weight)) + output_gpu = deform_gpu(inputs.to("cuda"), offset.to("cuda")).detach().cpu().numpy() + + deform_cpu = DeformConv( + C, C, kernel_size=kernel_size, padding=padding, groups=groups + ).to("cpu") + deform_cpu.weight = torch.nn.Parameter(torch.ones_like(deform_cpu.weight)) + output_cpu = deform_cpu(inputs.to("cpu"), offset.to("cpu")).detach().numpy() + + self.assertTrue(np.allclose(output_gpu.flatten(), output_cpu.flatten())) + + @unittest.skipIf(not torch.cuda.is_available(), "Deformable not supported for cpu") + def test_small_input(self): + device = torch.device("cuda") + for kernel_size in [3, 5]: + padding = kernel_size // 2 + N, C, H, W = shape = (1, 1, kernel_size - 1, kernel_size - 1) + + inputs = torch.rand(shape).to(device) # input size is smaller than kernel size + + offset_channels = kernel_size * kernel_size * 2 + offset = torch.randn((N, offset_channels, H, W), dtype=torch.float32).to(device) + deform = DeformConv(C, C, kernel_size=kernel_size, padding=padding).to(device) + output = deform(inputs, offset) + self.assertTrue(output.shape == inputs.shape) + + mask_channels = kernel_size * kernel_size + mask = torch.ones((N, mask_channels, H, W), dtype=torch.float32).to(device) + modulate_deform = ModulatedDeformConv( + C, C, kernel_size, padding=padding, bias=False + ).to(device) + output = modulate_deform(inputs, offset, mask) + self.assertTrue(output.shape == inputs.shape) + + @unittest.skipIf(not torch.cuda.is_available(), "Deformable not supported for cpu") + def test_raise_exception(self): + device = torch.device("cuda") + N, C, H, W = shape = 1, 1, 3, 3 + kernel_size = 3 + padding = 1 + + inputs = torch.rand(shape, dtype=torch.float32).to(device) + offset_channels = kernel_size * kernel_size # This is wrong channels for offset + offset = torch.randn((N, offset_channels, H, W), dtype=torch.float32).to(device) + deform = DeformConv(C, C, kernel_size=kernel_size, padding=padding).to(device) + self.assertRaises(RuntimeError, deform, inputs, offset) + + offset_channels = kernel_size * kernel_size * 2 + offset = torch.randn((N, offset_channels, H, W), dtype=torch.float32).to(device) + mask_channels = kernel_size * kernel_size * 2 # This is wrong channels for mask + mask = torch.ones((N, mask_channels, H, W), dtype=torch.float32).to(device) + modulate_deform = ModulatedDeformConv(C, C, kernel_size, padding=padding, bias=False).to( + device + ) + self.assertRaises(RuntimeError, modulate_deform, inputs, offset, mask) + + def test_repr(self): + module = DeformConv(3, 10, kernel_size=3, padding=1, deformable_groups=2) + correct_string = ( + "DeformConv(in_channels=3, out_channels=10, kernel_size=(3, 3), " + "stride=(1, 1), padding=(1, 1), dilation=(1, 1), " + "groups=1, deformable_groups=2, bias=False)" + ) + self.assertEqual(repr(module), correct_string) + + module = ModulatedDeformConv(3, 10, kernel_size=3, padding=1, deformable_groups=2) + correct_string = ( + "ModulatedDeformConv(in_channels=3, out_channels=10, kernel_size=(3, 3), " + "stride=1, padding=1, dilation=1, groups=1, deformable_groups=2, bias=True)" + ) + self.assertEqual(repr(module), correct_string) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/layers/test_losses.py b/detectron2/tests/layers/test_losses.py new file mode 100755 index 0000000..d749202 --- /dev/null +++ b/detectron2/tests/layers/test_losses.py @@ -0,0 +1,82 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import unittest +import torch + +from detectron2.layers import ciou_loss, diou_loss + + +class TestLosses(unittest.TestCase): + def test_diou_loss(self): + """ + loss = 1 - iou + d/c + where, + d = (distance between centers of the 2 boxes)^2 + c = (diagonal length of the smallest enclosing box covering the 2 boxes)^2 + """ + # Identical boxes should have loss of 0 + box = torch.tensor([-1, -1, 1, 1], dtype=torch.float32) + loss = diou_loss(box, box) + self.assertTrue(np.allclose(loss, [0.0])) + + # Half size box inside other box + # iou = 0.5, d = 0.25, c = 8 + box2 = torch.tensor([0, -1, 1, 1], dtype=torch.float32) + loss = diou_loss(box, box2) + self.assertTrue(np.allclose(loss, [0.53125])) + + # Two diagonally adjacent boxes + # iou = 0, d = 2, c = 8 + box3 = torch.tensor([0, 0, 1, 1], dtype=torch.float32) + box4 = torch.tensor([1, 1, 2, 2], dtype=torch.float32) + loss = diou_loss(box3, box4) + self.assertTrue(np.allclose(loss, [1.25])) + + # Test batched loss and reductions + box1s = torch.stack([box, box3], dim=0) + box2s = torch.stack([box2, box4], dim=0) + + loss = diou_loss(box1s, box2s, reduction="sum") + self.assertTrue(np.allclose(loss, [1.78125])) + + loss = diou_loss(box1s, box2s, reduction="mean") + self.assertTrue(np.allclose(loss, [0.890625])) + + def test_ciou_loss(self): + """ + loss = 1 - iou + d/c + alpha*v + where, + d = (distance between centers of the 2 boxes)^2 + c = (diagonal length of the smallest enclosing box covering the 2 boxes)^2 + v = (4/pi^2) * (arctan(box1_w/box1_h) - arctan(box2_w/box2_h))^2 + alpha = v/(1 - iou + v) + """ + # Identical boxes should have loss of 0 + box = torch.tensor([-1, -1, 1, 1], dtype=torch.float32) + loss = ciou_loss(box, box) + self.assertTrue(np.allclose(loss, [0.0])) + + # Half size box inside other box + # iou = 0.5, d = 0.25, c = 8 + # v = (4/pi^2) * (arctan(1) - arctan(0.5))^2 = 0.042 + # alpha = 0.0775 + box2 = torch.tensor([0, -1, 1, 1], dtype=torch.float32) + loss = ciou_loss(box, box2) + self.assertTrue(np.allclose(loss, [0.5345])) + + # Two diagonally adjacent boxes + # iou = 0, d = 2, c = 8, v = 0, alpha = 0 + box3 = torch.tensor([0, 0, 1, 1], dtype=torch.float32) + box4 = torch.tensor([1, 1, 2, 2], dtype=torch.float32) + loss = ciou_loss(box3, box4) + self.assertTrue(np.allclose(loss, [1.25])) + + # Test batched loss and reductions + box1s = torch.stack([box, box3], dim=0) + box2s = torch.stack([box2, box4], dim=0) + + loss = ciou_loss(box1s, box2s, reduction="sum") + self.assertTrue(np.allclose(loss, [1.7845])) + + loss = ciou_loss(box1s, box2s, reduction="mean") + self.assertTrue(np.allclose(loss, [0.89225])) diff --git a/detectron2/tests/layers/test_mask_ops.py b/detectron2/tests/layers/test_mask_ops.py new file mode 100755 index 0000000..dfbcaf5 --- /dev/null +++ b/detectron2/tests/layers/test_mask_ops.py @@ -0,0 +1,202 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import contextlib +import io +import numpy as np +import unittest +from collections import defaultdict +import torch +import tqdm +from fvcore.common.benchmark import benchmark +from pycocotools.coco import COCO +from tabulate import tabulate +from torch.nn import functional as F + +from detectron2.data import MetadataCatalog +from detectron2.layers.mask_ops import ( + pad_masks, + paste_mask_in_image_old, + paste_masks_in_image, + scale_boxes, +) +from detectron2.structures import BitMasks, Boxes, BoxMode, PolygonMasks +from detectron2.structures.masks import polygons_to_bitmask +from detectron2.utils.file_io import PathManager +from detectron2.utils.testing import random_boxes + + +def iou_between_full_image_bit_masks(a, b): + intersect = (a & b).sum() + union = (a | b).sum() + return intersect / union + + +def rasterize_polygons_with_grid_sample(full_image_bit_mask, box, mask_size, threshold=0.5): + x0, y0, x1, y1 = box[0], box[1], box[2], box[3] + + img_h, img_w = full_image_bit_mask.shape + + mask_y = np.arange(0.0, mask_size) + 0.5 # mask y sample coords in [0.5, mask_size - 0.5] + mask_x = np.arange(0.0, mask_size) + 0.5 # mask x sample coords in [0.5, mask_size - 0.5] + mask_y = mask_y / mask_size * (y1 - y0) + y0 + mask_x = mask_x / mask_size * (x1 - x0) + x0 + + mask_x = (mask_x - 0.5) / (img_w - 1) * 2 + -1 + mask_y = (mask_y - 0.5) / (img_h - 1) * 2 + -1 + gy, gx = torch.meshgrid(torch.from_numpy(mask_y), torch.from_numpy(mask_x)) + ind = torch.stack([gx, gy], dim=-1).to(dtype=torch.float32) + + full_image_bit_mask = torch.from_numpy(full_image_bit_mask) + mask = F.grid_sample( + full_image_bit_mask[None, None, :, :].to(dtype=torch.float32), + ind[None, :, :, :], + align_corners=True, + ) + + return mask[0, 0] >= threshold + + +class TestMaskCropPaste(unittest.TestCase): + def setUp(self): + json_file = MetadataCatalog.get("coco_2017_val_100").json_file + if not PathManager.isfile(json_file): + raise unittest.SkipTest("{} not found".format(json_file)) + with contextlib.redirect_stdout(io.StringIO()): + json_file = PathManager.get_local_path(json_file) + self.coco = COCO(json_file) + + def test_crop_paste_consistency(self): + """ + rasterize_polygons_within_box (used in training) + and + paste_masks_in_image (used in inference) + should be inverse operations to each other. + + This function runs several implementation of the above two operations and prints + the reconstruction error. + """ + + anns = self.coco.loadAnns(self.coco.getAnnIds(iscrowd=False)) # avoid crowd annotations + + selected_anns = anns[:100] + + ious = [] + for ann in tqdm.tqdm(selected_anns): + results = self.process_annotation(ann) + ious.append([k[2] for k in results]) + + ious = np.array(ious) + mean_ious = ious.mean(axis=0) + table = [] + res_dic = defaultdict(dict) + for row, iou in zip(results, mean_ious): + table.append((row[0], row[1], iou)) + res_dic[row[0]][row[1]] = iou + print(tabulate(table, headers=["rasterize", "paste", "iou"], tablefmt="simple")) + # assert that the reconstruction is good: + self.assertTrue(res_dic["polygon"]["aligned"] > 0.94) + self.assertTrue(res_dic["roialign"]["aligned"] > 0.95) + + def process_annotation(self, ann, mask_side_len=28): + # Parse annotation data + img_info = self.coco.loadImgs(ids=[ann["image_id"]])[0] + height, width = img_info["height"], img_info["width"] + gt_polygons = [np.array(p, dtype=np.float64) for p in ann["segmentation"]] + gt_bbox = BoxMode.convert(ann["bbox"], BoxMode.XYWH_ABS, BoxMode.XYXY_ABS) + gt_bit_mask = polygons_to_bitmask(gt_polygons, height, width) + + # Run rasterize .. + torch_gt_bbox = torch.tensor(gt_bbox).to(dtype=torch.float32).reshape(-1, 4) + box_bitmasks = { + "polygon": PolygonMasks([gt_polygons]).crop_and_resize(torch_gt_bbox, mask_side_len)[0], + "gridsample": rasterize_polygons_with_grid_sample(gt_bit_mask, gt_bbox, mask_side_len), + "roialign": BitMasks(torch.from_numpy(gt_bit_mask[None, :, :])).crop_and_resize( + torch_gt_bbox, mask_side_len + )[0], + } + + # Run paste .. + results = defaultdict(dict) + for k, box_bitmask in box_bitmasks.items(): + padded_bitmask, scale = pad_masks(box_bitmask[None, :, :], 1) + scaled_boxes = scale_boxes(torch_gt_bbox, scale) + + r = results[k] + r["old"] = paste_mask_in_image_old( + padded_bitmask[0], scaled_boxes[0], height, width, threshold=0.5 + ) + r["aligned"] = paste_masks_in_image( + box_bitmask[None, :, :], Boxes(torch_gt_bbox), (height, width) + )[0] + + table = [] + for rasterize_method, r in results.items(): + for paste_method, mask in r.items(): + mask = np.asarray(mask) + iou = iou_between_full_image_bit_masks(gt_bit_mask.astype("uint8"), mask) + table.append((rasterize_method, paste_method, iou)) + return table + + def test_polygon_area(self): + # Draw polygon boxes + for d in [5.0, 10.0, 1000.0]: + polygon = PolygonMasks([[[0, 0, 0, d, d, d, d, 0]]]) + area = polygon.area()[0] + target = d**2 + self.assertEqual(area, target) + + # Draw polygon triangles + for d in [5.0, 10.0, 1000.0]: + polygon = PolygonMasks([[[0, 0, 0, d, d, d]]]) + area = polygon.area()[0] + target = d**2 / 2 + self.assertEqual(area, target) + + def test_paste_mask_scriptable(self): + scripted_f = torch.jit.script(paste_masks_in_image) + N = 10 + masks = torch.rand(N, 28, 28) + boxes = Boxes(random_boxes(N, 100)).tensor + image_shape = (150, 150) + + out = paste_masks_in_image(masks, boxes, image_shape) + scripted_out = scripted_f(masks, boxes, image_shape) + self.assertTrue(torch.equal(out, scripted_out)) + + +def benchmark_paste(): + S = 800 + H, W = image_shape = (S, S) + N = 64 + torch.manual_seed(42) + masks = torch.rand(N, 28, 28) + + center = torch.rand(N, 2) * 600 + 100 + wh = torch.clamp(torch.randn(N, 2) * 40 + 200, min=50) + x0y0 = torch.clamp(center - wh * 0.5, min=0.0) + x1y1 = torch.clamp(center + wh * 0.5, max=S) + boxes = Boxes(torch.cat([x0y0, x1y1], axis=1)) + + def func(device, n=3): + m = masks.to(device=device) + b = boxes.to(device=device) + + def bench(): + for _ in range(n): + paste_masks_in_image(m, b, image_shape) + if device.type == "cuda": + torch.cuda.synchronize() + + return bench + + specs = [{"device": torch.device("cpu"), "n": 3}] + if torch.cuda.is_available(): + specs.append({"device": torch.device("cuda"), "n": 3}) + + benchmark(func, "paste_masks", specs, num_iters=10, warmup_iters=2) + + +if __name__ == "__main__": + benchmark_paste() + unittest.main() diff --git a/detectron2/tests/layers/test_nms.py b/detectron2/tests/layers/test_nms.py new file mode 100755 index 0000000..a042db6 --- /dev/null +++ b/detectron2/tests/layers/test_nms.py @@ -0,0 +1,33 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from __future__ import absolute_import, division, print_function, unicode_literals +import unittest +import torch + +from detectron2.layers import batched_nms +from detectron2.utils.testing import random_boxes + + +class TestNMS(unittest.TestCase): + def _create_tensors(self, N): + boxes = random_boxes(N, 200) + scores = torch.rand(N) + return boxes, scores + + def test_nms_scriptability(self): + N = 2000 + num_classes = 50 + boxes, scores = self._create_tensors(N) + idxs = torch.randint(0, num_classes, (N,)) + scripted_batched_nms = torch.jit.script(batched_nms) + err_msg = "NMS is incompatible with jit-scripted NMS for IoU={}" + + for iou in [0.2, 0.5, 0.8]: + keep_ref = batched_nms(boxes, scores, idxs, iou) + backup = boxes.clone() + scripted_keep = scripted_batched_nms(boxes, scores, idxs, iou) + assert torch.allclose(boxes, backup), "boxes modified by jit-scripted batched_nms" + self.assertTrue(torch.equal(keep_ref, scripted_keep), err_msg.format(iou)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/layers/test_nms_rotated.py b/detectron2/tests/layers/test_nms_rotated.py new file mode 100755 index 0000000..4b45384 --- /dev/null +++ b/detectron2/tests/layers/test_nms_rotated.py @@ -0,0 +1,172 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from __future__ import absolute_import, division, print_function, unicode_literals +import numpy as np +import unittest +from copy import deepcopy +import torch +from torchvision import ops + +from detectron2.layers import batched_nms, batched_nms_rotated, nms_rotated +from detectron2.utils.testing import random_boxes + + +def nms_edit_distance(keep1, keep2): + """ + Compare the "keep" result of two nms call. + They are allowed to be different in terms of edit distance + due to floating point precision issues, e.g., + if a box happen to have an IoU of 0.5 with another box, + one implentation may choose to keep it while another may discard it. + """ + keep1, keep2 = keep1.cpu(), keep2.cpu() + if torch.equal(keep1, keep2): + # they should be equal most of the time + return 0 + keep1, keep2 = tuple(keep1), tuple(keep2) + m, n = len(keep1), len(keep2) + + # edit distance with DP + f = [np.arange(n + 1), np.arange(n + 1)] + for i in range(m): + cur_row = i % 2 + other_row = (i + 1) % 2 + f[other_row][0] = i + 1 + for j in range(n): + f[other_row][j + 1] = ( + f[cur_row][j] + if keep1[i] == keep2[j] + else min(min(f[cur_row][j], f[cur_row][j + 1]), f[other_row][j]) + 1 + ) + return f[m % 2][n] + + +class TestNMSRotated(unittest.TestCase): + def reference_horizontal_nms(self, boxes, scores, iou_threshold): + """ + Args: + box_scores (N, 5): boxes in corner-form and probabilities. + (Note here 5 == 4 + 1, i.e., 4-dim horizontal box + 1-dim prob) + iou_threshold: intersection over union threshold. + Returns: + picked: a list of indexes of the kept boxes + """ + picked = [] + _, indexes = scores.sort(descending=True) + while len(indexes) > 0: + current = indexes[0] + picked.append(current.item()) + if len(indexes) == 1: + break + current_box = boxes[current, :] + indexes = indexes[1:] + rest_boxes = boxes[indexes, :] + iou = ops.box_iou(rest_boxes, current_box.unsqueeze(0)).squeeze(1) + indexes = indexes[iou <= iou_threshold] + + return torch.as_tensor(picked) + + def _create_tensors(self, N, device="cpu"): + boxes = random_boxes(N, 200, device=device) + scores = torch.rand(N, device=device) + return boxes, scores + + def test_batched_nms_rotated_0_degree_cpu(self, device="cpu"): + N = 2000 + num_classes = 50 + boxes, scores = self._create_tensors(N, device=device) + idxs = torch.randint(0, num_classes, (N,)) + rotated_boxes = torch.zeros(N, 5, device=device) + rotated_boxes[:, 0] = (boxes[:, 0] + boxes[:, 2]) / 2.0 + rotated_boxes[:, 1] = (boxes[:, 1] + boxes[:, 3]) / 2.0 + rotated_boxes[:, 2] = boxes[:, 2] - boxes[:, 0] + rotated_boxes[:, 3] = boxes[:, 3] - boxes[:, 1] + err_msg = "Rotated NMS with 0 degree is incompatible with horizontal NMS for IoU={}" + for iou in [0.2, 0.5, 0.8]: + backup = boxes.clone() + keep_ref = batched_nms(boxes, scores, idxs, iou) + assert torch.allclose(boxes, backup), "boxes modified by batched_nms" + backup = rotated_boxes.clone() + keep = batched_nms_rotated(rotated_boxes, scores, idxs, iou) + assert torch.allclose( + rotated_boxes, backup + ), "rotated_boxes modified by batched_nms_rotated" + # Occasionally the gap can be large if there are many IOU on the threshold boundary + self.assertLessEqual(nms_edit_distance(keep, keep_ref), 5, err_msg.format(iou)) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_batched_nms_rotated_0_degree_cuda(self): + self.test_batched_nms_rotated_0_degree_cpu(device="cuda") + + def test_nms_rotated_0_degree_cpu(self, device="cpu"): + N = 1000 + boxes, scores = self._create_tensors(N, device=device) + rotated_boxes = torch.zeros(N, 5, device=device) + rotated_boxes[:, 0] = (boxes[:, 0] + boxes[:, 2]) / 2.0 + rotated_boxes[:, 1] = (boxes[:, 1] + boxes[:, 3]) / 2.0 + rotated_boxes[:, 2] = boxes[:, 2] - boxes[:, 0] + rotated_boxes[:, 3] = boxes[:, 3] - boxes[:, 1] + err_msg = "Rotated NMS incompatible between CPU and reference implementation for IoU={}" + for iou in [0.2, 0.5, 0.8]: + keep_ref = self.reference_horizontal_nms(boxes, scores, iou) + keep = nms_rotated(rotated_boxes, scores, iou) + self.assertLessEqual(nms_edit_distance(keep, keep_ref), 1, err_msg.format(iou)) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_nms_rotated_0_degree_cuda(self): + self.test_nms_rotated_0_degree_cpu(device="cuda") + + def test_nms_rotated_90_degrees_cpu(self): + N = 1000 + boxes, scores = self._create_tensors(N) + rotated_boxes = torch.zeros(N, 5) + rotated_boxes[:, 0] = (boxes[:, 0] + boxes[:, 2]) / 2.0 + rotated_boxes[:, 1] = (boxes[:, 1] + boxes[:, 3]) / 2.0 + # Note for rotated_boxes[:, 2] and rotated_boxes[:, 3]: + # widths and heights are intentionally swapped here for 90 degrees case + # so that the reference horizontal nms could be used + rotated_boxes[:, 2] = boxes[:, 3] - boxes[:, 1] + rotated_boxes[:, 3] = boxes[:, 2] - boxes[:, 0] + + rotated_boxes[:, 4] = torch.ones(N) * 90 + err_msg = "Rotated NMS incompatible between CPU and reference implementation for IoU={}" + for iou in [0.2, 0.5, 0.8]: + keep_ref = self.reference_horizontal_nms(boxes, scores, iou) + keep = nms_rotated(rotated_boxes, scores, iou) + self.assertLessEqual(nms_edit_distance(keep, keep_ref), 1, err_msg.format(iou)) + + def test_nms_rotated_180_degrees_cpu(self): + N = 1000 + boxes, scores = self._create_tensors(N) + rotated_boxes = torch.zeros(N, 5) + rotated_boxes[:, 0] = (boxes[:, 0] + boxes[:, 2]) / 2.0 + rotated_boxes[:, 1] = (boxes[:, 1] + boxes[:, 3]) / 2.0 + rotated_boxes[:, 2] = boxes[:, 2] - boxes[:, 0] + rotated_boxes[:, 3] = boxes[:, 3] - boxes[:, 1] + rotated_boxes[:, 4] = torch.ones(N) * 180 + err_msg = "Rotated NMS incompatible between CPU and reference implementation for IoU={}" + for iou in [0.2, 0.5, 0.8]: + keep_ref = self.reference_horizontal_nms(boxes, scores, iou) + keep = nms_rotated(rotated_boxes, scores, iou) + self.assertLessEqual(nms_edit_distance(keep, keep_ref), 1, err_msg.format(iou)) + + +class TestScriptable(unittest.TestCase): + def setUp(self): + class TestingModule(torch.nn.Module): + def forward(self, boxes, scores, threshold): + return nms_rotated(boxes, scores, threshold) + + self.module = TestingModule() + + def test_scriptable_cpu(self): + m = deepcopy(self.module).cpu() + _ = torch.jit.script(m) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_scriptable_cuda(self): + m = deepcopy(self.module).cuda() + _ = torch.jit.script(m) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/layers/test_roi_align.py b/detectron2/tests/layers/test_roi_align.py new file mode 100755 index 0000000..b6fd8ed --- /dev/null +++ b/detectron2/tests/layers/test_roi_align.py @@ -0,0 +1,210 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import unittest +from copy import copy +import cv2 +import torch +from fvcore.common.benchmark import benchmark +from torch.nn import functional as F + +from detectron2.layers.roi_align import ROIAlign, roi_align + + +class ROIAlignTest(unittest.TestCase): + def test_forward_output(self): + input = np.arange(25).reshape(5, 5).astype("float32") + """ + 0 1 2 3 4 + 5 6 7 8 9 + 10 11 12 13 14 + 15 16 17 18 19 + 20 21 22 23 24 + """ + + output = self._simple_roialign(input, [1, 1, 3, 3], (4, 4), aligned=False) + output_correct = self._simple_roialign(input, [1, 1, 3, 3], (4, 4), aligned=True) + + # without correction: + old_results = [ + [7.5, 8, 8.5, 9], + [10, 10.5, 11, 11.5], + [12.5, 13, 13.5, 14], + [15, 15.5, 16, 16.5], + ] + + # with 0.5 correction: + correct_results = [ + [4.5, 5.0, 5.5, 6.0], + [7.0, 7.5, 8.0, 8.5], + [9.5, 10.0, 10.5, 11.0], + [12.0, 12.5, 13.0, 13.5], + ] + # This is an upsampled version of [[6, 7], [11, 12]] + + self.assertTrue(np.allclose(output.flatten(), np.asarray(old_results).flatten())) + self.assertTrue( + np.allclose(output_correct.flatten(), np.asarray(correct_results).flatten()) + ) + + # Also see similar issues in tensorflow at + # https://github.com/tensorflow/tensorflow/issues/26278 + + def test_resize(self): + H, W = 30, 30 + input = np.random.rand(H, W).astype("float32") * 100 + box = [10, 10, 20, 20] + output = self._simple_roialign(input, box, (5, 5), aligned=True) + + input2x = cv2.resize(input, (W // 2, H // 2), interpolation=cv2.INTER_LINEAR) + box2x = [x / 2 for x in box] + output2x = self._simple_roialign(input2x, box2x, (5, 5), aligned=True) + diff = np.abs(output2x - output) + self.assertTrue(diff.max() < 1e-4) + + def test_grid_sample_equivalence(self): + H, W = 30, 30 + input = np.random.rand(H, W).astype("float32") * 100 + box = [10, 10, 20, 20] + for ratio in [1, 2, 3]: + output = self._simple_roialign(input, box, (5, 5), sampling_ratio=ratio) + output_grid_sample = grid_sample_roi_align( + torch.from_numpy(input[None, None, :, :]).float(), + torch.as_tensor(box).float()[None, :], + 5, + 1.0, + ratio, + ) + self.assertTrue(torch.allclose(output, output_grid_sample)) + + def _simple_roialign(self, img, box, resolution, sampling_ratio=0, aligned=True): + """ + RoiAlign with scale 1.0. + """ + if isinstance(resolution, int): + resolution = (resolution, resolution) + op = ROIAlign(resolution, 1.0, sampling_ratio, aligned=aligned) + input = torch.from_numpy(img[None, None, :, :].astype("float32")) + + rois = [0] + list(box) + rois = torch.from_numpy(np.asarray(rois)[None, :].astype("float32")) + output = op.forward(input, rois) + if torch.cuda.is_available(): + output_cuda = op.forward(input.cuda(), rois.cuda()).cpu() + self.assertTrue(torch.allclose(output, output_cuda)) + return output[0, 0] + + def _simple_roialign_with_grad(self, img, box, resolution, device): + if isinstance(resolution, int): + resolution = (resolution, resolution) + + op = ROIAlign(resolution, 1.0, 0, aligned=True) + input = torch.from_numpy(img[None, None, :, :].astype("float32")) + + rois = [0] + list(box) + rois = torch.from_numpy(np.asarray(rois)[None, :].astype("float32")) + input = input.to(device=device) + rois = rois.to(device=device) + input.requires_grad = True + output = op.forward(input, rois) + return input, output + + def test_empty_box(self): + img = np.random.rand(5, 5) + box = [3, 4, 5, 4] + o = self._simple_roialign(img, box, 7) + self.assertTrue(o.shape == (7, 7)) + self.assertTrue((o == 0).all()) + + for dev in ["cpu"] + ["cuda"] if torch.cuda.is_available() else []: + input, output = self._simple_roialign_with_grad(img, box, 7, torch.device(dev)) + output.sum().backward() + self.assertTrue(torch.allclose(input.grad, torch.zeros_like(input))) + + def test_empty_batch(self): + input = torch.zeros(0, 3, 10, 10, dtype=torch.float32) + rois = torch.zeros(0, 5, dtype=torch.float32) + op = ROIAlign((7, 7), 1.0, 0, aligned=True) + output = op.forward(input, rois) + self.assertTrue(output.shape == (0, 3, 7, 7)) + + +def grid_sample_roi_align(input, boxes, output_size, scale, sampling_ratio): + # unlike true roi_align, this does not support different batch_idx + from detectron2.projects.point_rend.point_features import ( + generate_regular_grid_point_coords, + get_point_coords_wrt_image, + point_sample, + ) + + N, _, H, W = input.shape + R = len(boxes) + assert N == 1 + boxes = boxes * scale + grid = generate_regular_grid_point_coords(R, output_size * sampling_ratio, device=boxes.device) + coords = get_point_coords_wrt_image(boxes, grid) + coords = coords / torch.as_tensor([W, H], device=coords.device) # R, s^2, 2 + res = point_sample(input, coords.unsqueeze(0), align_corners=False) # 1,C, R,s^2 + res = ( + res.squeeze(0) + .permute(1, 0, 2) + .reshape(R, -1, output_size * sampling_ratio, output_size * sampling_ratio) + ) + res = F.avg_pool2d(res, sampling_ratio) + return res + + +def benchmark_roi_align(): + def random_boxes(mean_box, stdev, N, maxsize): + ret = torch.rand(N, 4) * stdev + torch.tensor(mean_box, dtype=torch.float) + ret.clamp_(min=0, max=maxsize) + return ret + + def func(shape, nboxes_per_img, sampling_ratio, device, box_size="large"): + N, _, H, _ = shape + input = torch.rand(*shape) + boxes = [] + batch_idx = [] + for k in range(N): + if box_size == "large": + b = random_boxes([80, 80, 130, 130], 24, nboxes_per_img, H) + else: + b = random_boxes([100, 100, 110, 110], 4, nboxes_per_img, H) + boxes.append(b) + batch_idx.append(torch.zeros(nboxes_per_img, 1, dtype=torch.float32) + k) + boxes = torch.cat(boxes, axis=0) + batch_idx = torch.cat(batch_idx, axis=0) + boxes = torch.cat([batch_idx, boxes], axis=1) + + input = input.to(device=device) + boxes = boxes.to(device=device) + + def bench(): + if False and sampling_ratio > 0 and N == 1: + # enable to benchmark grid_sample (slower) + grid_sample_roi_align(input, boxes[:, 1:], 7, 1.0, sampling_ratio) + else: + roi_align(input, boxes, 7, 1.0, sampling_ratio, True) + if device == "cuda": + torch.cuda.synchronize() + + return bench + + def gen_args(arg): + args = [] + for size in ["small", "large"]: + for ratio in [0, 2]: + args.append(copy(arg)) + args[-1]["sampling_ratio"] = ratio + args[-1]["box_size"] = size + return args + + arg = dict(shape=(1, 512, 256, 256), nboxes_per_img=512, device="cuda") + benchmark(func, "cuda_roialign", gen_args(arg), num_iters=20, warmup_iters=1) + arg.update({"device": "cpu", "shape": (1, 256, 128, 128)}) + benchmark(func, "cpu_roialign", gen_args(arg), num_iters=5, warmup_iters=1) + + +if __name__ == "__main__": + if torch.cuda.is_available(): + benchmark_roi_align() + unittest.main() diff --git a/detectron2/tests/layers/test_roi_align_rotated.py b/detectron2/tests/layers/test_roi_align_rotated.py new file mode 100755 index 0000000..7323d7d --- /dev/null +++ b/detectron2/tests/layers/test_roi_align_rotated.py @@ -0,0 +1,176 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +import cv2 +import torch +from torch.autograd import Variable, gradcheck + +from detectron2.layers.roi_align import ROIAlign +from detectron2.layers.roi_align_rotated import ROIAlignRotated + +logger = logging.getLogger(__name__) + + +class ROIAlignRotatedTest(unittest.TestCase): + def _box_to_rotated_box(self, box, angle): + return [ + (box[0] + box[2]) / 2.0, + (box[1] + box[3]) / 2.0, + box[2] - box[0], + box[3] - box[1], + angle, + ] + + def _rot90(self, img, num): + num = num % 4 # note: -1 % 4 == 3 + for _ in range(num): + img = img.transpose(0, 1).flip(0) + return img + + def test_forward_output_0_90_180_270(self): + for i in range(4): + # i = 0, 1, 2, 3 corresponding to 0, 90, 180, 270 degrees + img = torch.arange(25, dtype=torch.float32).reshape(5, 5) + """ + 0 1 2 3 4 + 5 6 7 8 9 + 10 11 12 13 14 + 15 16 17 18 19 + 20 21 22 23 24 + """ + box = [1, 1, 3, 3] + rotated_box = self._box_to_rotated_box(box=box, angle=90 * i) + + result = self._simple_roi_align_rotated(img=img, box=rotated_box, resolution=(4, 4)) + + # Here's an explanation for 0 degree case: + # point 0 in the original input lies at [0.5, 0.5] + # (the center of bin [0, 1] x [0, 1]) + # point 1 in the original input lies at [1.5, 0.5], etc. + # since the resolution is (4, 4) that divides [1, 3] x [1, 3] + # into 4 x 4 equal bins, + # the top-left bin is [1, 1.5] x [1, 1.5], and its center + # (1.25, 1.25) lies at the 3/4 position + # between point 0 and point 1, point 5 and point 6, + # point 0 and point 5, point 1 and point 6, so it can be calculated as + # 0.25*(0*0.25+1*0.75)+(5*0.25+6*0.75)*0.75 = 4.5 + result_expected = torch.tensor( + [ + [4.5, 5.0, 5.5, 6.0], + [7.0, 7.5, 8.0, 8.5], + [9.5, 10.0, 10.5, 11.0], + [12.0, 12.5, 13.0, 13.5], + ] + ) + # This is also an upsampled version of [[6, 7], [11, 12]] + + # When the box is rotated by 90 degrees CCW, + # the result would be rotated by 90 degrees CW, thus it's -i here + result_expected = self._rot90(result_expected, -i) + + assert torch.allclose(result, result_expected) + + def test_resize(self): + H, W = 30, 30 + input = torch.rand(H, W) * 100 + box = [10, 10, 20, 20] + rotated_box = self._box_to_rotated_box(box, angle=0) + output = self._simple_roi_align_rotated(img=input, box=rotated_box, resolution=(5, 5)) + + input2x = cv2.resize(input.numpy(), (W // 2, H // 2), interpolation=cv2.INTER_LINEAR) + input2x = torch.from_numpy(input2x) + box2x = [x / 2 for x in box] + rotated_box2x = self._box_to_rotated_box(box2x, angle=0) + output2x = self._simple_roi_align_rotated(img=input2x, box=rotated_box2x, resolution=(5, 5)) + assert torch.allclose(output2x, output) + + def _simple_roi_align_rotated(self, img, box, resolution): + """ + RoiAlignRotated with scale 1.0 and 0 sample ratio. + """ + op = ROIAlignRotated(output_size=resolution, spatial_scale=1.0, sampling_ratio=0) + input = img[None, None, :, :] + + rois = [0] + list(box) + rois = torch.tensor(rois, dtype=torch.float32)[None, :] + result_cpu = op.forward(input, rois) + if torch.cuda.is_available(): + result_cuda = op.forward(input.cuda(), rois.cuda()) + assert torch.allclose(result_cpu, result_cuda.cpu()) + return result_cpu[0, 0] + + def test_empty_box(self): + img = torch.rand(5, 5) + out = self._simple_roi_align_rotated(img, [2, 3, 0, 0, 0], (7, 7)) + self.assertTrue((out == 0).all()) + + def test_roi_align_rotated_gradcheck_cpu(self): + dtype = torch.float64 + device = torch.device("cpu") + roi_align_rotated_op = ROIAlignRotated( + output_size=(5, 5), spatial_scale=0.5, sampling_ratio=1 + ).to(dtype=dtype, device=device) + x = torch.rand(1, 1, 10, 10, dtype=dtype, device=device, requires_grad=True) + # roi format is (batch index, x_center, y_center, width, height, angle) + rois = torch.tensor( + [[0, 4.5, 4.5, 9, 9, 0], [0, 2, 7, 4, 4, 0], [0, 7, 7, 4, 4, 0]], + dtype=dtype, + device=device, + ) + + def func(input): + return roi_align_rotated_op(input, rois) + + assert gradcheck(func, (x,)), "gradcheck failed for RoIAlignRotated CPU" + assert gradcheck(func, (x.transpose(2, 3),)), "gradcheck failed for RoIAlignRotated CPU" + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_roi_align_rotated_gradient_cuda(self): + """ + Compute gradients for ROIAlignRotated with multiple bounding boxes on the GPU, + and compare the result with ROIAlign + """ + # torch.manual_seed(123) + dtype = torch.float64 + device = torch.device("cuda") + pool_h, pool_w = (5, 5) + + roi_align = ROIAlign(output_size=(pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to( + device=device + ) + + roi_align_rotated = ROIAlignRotated( + output_size=(pool_h, pool_w), spatial_scale=1, sampling_ratio=2 + ).to(device=device) + + x = torch.rand(1, 1, 10, 10, dtype=dtype, device=device, requires_grad=True) + # x_rotated = x.clone() won't work (will lead to grad_fun=CloneBackward)! + x_rotated = Variable(x.data.clone(), requires_grad=True) + + # roi_rotated format is (batch index, x_center, y_center, width, height, angle) + rois_rotated = torch.tensor( + [[0, 4.5, 4.5, 9, 9, 0], [0, 2, 7, 4, 4, 0], [0, 7, 7, 4, 4, 0]], + dtype=dtype, + device=device, + ) + + y_rotated = roi_align_rotated(x_rotated, rois_rotated) + s_rotated = y_rotated.sum() + s_rotated.backward() + + # roi format is (batch index, x1, y1, x2, y2) + rois = torch.tensor( + [[0, 0, 0, 9, 9], [0, 0, 5, 4, 9], [0, 5, 5, 9, 9]], dtype=dtype, device=device + ) + + y = roi_align(x, rois) + s = y.sum() + s.backward() + + assert torch.allclose( + x.grad, x_rotated.grad + ), "gradients for ROIAlign and ROIAlignRotated mismatch on CUDA" + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/__init__.py b/detectron2/tests/modeling/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/tests/modeling/test_anchor_generator.py b/detectron2/tests/modeling/test_anchor_generator.py new file mode 100755 index 0000000..13a808e --- /dev/null +++ b/detectron2/tests/modeling/test_anchor_generator.py @@ -0,0 +1,120 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +import torch + +from detectron2.config import get_cfg +from detectron2.layers import ShapeSpec +from detectron2.modeling.anchor_generator import DefaultAnchorGenerator, RotatedAnchorGenerator + +logger = logging.getLogger(__name__) + + +class TestAnchorGenerator(unittest.TestCase): + def test_default_anchor_generator(self): + cfg = get_cfg() + cfg.MODEL.ANCHOR_GENERATOR.SIZES = [[32, 64]] + cfg.MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS = [[0.25, 1, 4]] + + anchor_generator = DefaultAnchorGenerator(cfg, [ShapeSpec(stride=4)]) + + # only the last two dimensions of features matter here + num_images = 2 + features = {"stage3": torch.rand(num_images, 96, 1, 2)} + anchors = anchor_generator([features["stage3"]]) + expected_anchor_tensor = torch.tensor( + [ + [-32.0, -8.0, 32.0, 8.0], + [-16.0, -16.0, 16.0, 16.0], + [-8.0, -32.0, 8.0, 32.0], + [-64.0, -16.0, 64.0, 16.0], + [-32.0, -32.0, 32.0, 32.0], + [-16.0, -64.0, 16.0, 64.0], + [-28.0, -8.0, 36.0, 8.0], # -28.0 == -32.0 + STRIDE (4) + [-12.0, -16.0, 20.0, 16.0], + [-4.0, -32.0, 12.0, 32.0], + [-60.0, -16.0, 68.0, 16.0], + [-28.0, -32.0, 36.0, 32.0], + [-12.0, -64.0, 20.0, 64.0], + ] + ) + + self.assertTrue(torch.allclose(anchors[0].tensor, expected_anchor_tensor)) + + def test_default_anchor_generator_centered(self): + # test explicit args + anchor_generator = DefaultAnchorGenerator( + sizes=[32, 64], aspect_ratios=[0.25, 1, 4], strides=[4] + ) + + # only the last two dimensions of features matter here + num_images = 2 + features = {"stage3": torch.rand(num_images, 96, 1, 2)} + expected_anchor_tensor = torch.tensor( + [ + [-30.0, -6.0, 34.0, 10.0], + [-14.0, -14.0, 18.0, 18.0], + [-6.0, -30.0, 10.0, 34.0], + [-62.0, -14.0, 66.0, 18.0], + [-30.0, -30.0, 34.0, 34.0], + [-14.0, -62.0, 18.0, 66.0], + [-26.0, -6.0, 38.0, 10.0], + [-10.0, -14.0, 22.0, 18.0], + [-2.0, -30.0, 14.0, 34.0], + [-58.0, -14.0, 70.0, 18.0], + [-26.0, -30.0, 38.0, 34.0], + [-10.0, -62.0, 22.0, 66.0], + ] + ) + + anchors = anchor_generator([features["stage3"]]) + self.assertTrue(torch.allclose(anchors[0].tensor, expected_anchor_tensor)) + + anchors = torch.jit.script(anchor_generator)([features["stage3"]]) + self.assertTrue(torch.allclose(anchors[0].tensor, expected_anchor_tensor)) + + def test_rrpn_anchor_generator(self): + cfg = get_cfg() + cfg.MODEL.ANCHOR_GENERATOR.SIZES = [[32, 64]] + cfg.MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS = [[0.25, 1, 4]] + cfg.MODEL.ANCHOR_GENERATOR.ANGLES = [0, 45] # test single list[float] + anchor_generator = RotatedAnchorGenerator(cfg, [ShapeSpec(stride=4)]) + + # only the last two dimensions of features matter here + num_images = 2 + features = {"stage3": torch.rand(num_images, 96, 1, 2)} + anchors = anchor_generator([features["stage3"]]) + expected_anchor_tensor = torch.tensor( + [ + [0.0, 0.0, 64.0, 16.0, 0.0], + [0.0, 0.0, 64.0, 16.0, 45.0], + [0.0, 0.0, 32.0, 32.0, 0.0], + [0.0, 0.0, 32.0, 32.0, 45.0], + [0.0, 0.0, 16.0, 64.0, 0.0], + [0.0, 0.0, 16.0, 64.0, 45.0], + [0.0, 0.0, 128.0, 32.0, 0.0], + [0.0, 0.0, 128.0, 32.0, 45.0], + [0.0, 0.0, 64.0, 64.0, 0.0], + [0.0, 0.0, 64.0, 64.0, 45.0], + [0.0, 0.0, 32.0, 128.0, 0.0], + [0.0, 0.0, 32.0, 128.0, 45.0], + [4.0, 0.0, 64.0, 16.0, 0.0], # 4.0 == 0.0 + STRIDE (4) + [4.0, 0.0, 64.0, 16.0, 45.0], + [4.0, 0.0, 32.0, 32.0, 0.0], + [4.0, 0.0, 32.0, 32.0, 45.0], + [4.0, 0.0, 16.0, 64.0, 0.0], + [4.0, 0.0, 16.0, 64.0, 45.0], + [4.0, 0.0, 128.0, 32.0, 0.0], + [4.0, 0.0, 128.0, 32.0, 45.0], + [4.0, 0.0, 64.0, 64.0, 0.0], + [4.0, 0.0, 64.0, 64.0, 45.0], + [4.0, 0.0, 32.0, 128.0, 0.0], + [4.0, 0.0, 32.0, 128.0, 45.0], + ] + ) + + self.assertTrue(torch.allclose(anchors[0].tensor, expected_anchor_tensor)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/test_backbone.py b/detectron2/tests/modeling/test_backbone.py new file mode 100755 index 0000000..3bb100f --- /dev/null +++ b/detectron2/tests/modeling/test_backbone.py @@ -0,0 +1,34 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved + +import unittest +import torch + +import detectron2.export.torchscript # apply patch # noqa +from detectron2 import model_zoo +from detectron2.config import get_cfg +from detectron2.layers import ShapeSpec +from detectron2.modeling.backbone import build_resnet_backbone +from detectron2.modeling.backbone.fpn import build_resnet_fpn_backbone + + +class TestBackBone(unittest.TestCase): + def test_resnet_scriptability(self): + cfg = get_cfg() + resnet = build_resnet_backbone(cfg, ShapeSpec(channels=3)) + + scripted_resnet = torch.jit.script(resnet) + + inp = torch.rand(2, 3, 100, 100) + out1 = resnet(inp)["res4"] + out2 = scripted_resnet(inp)["res4"] + self.assertTrue(torch.allclose(out1, out2)) + + def test_fpn_scriptability(self): + cfg = model_zoo.get_config("Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml") + bb = build_resnet_fpn_backbone(cfg, ShapeSpec(channels=3)) + bb_s = torch.jit.script(bb) + + inp = torch.rand(2, 3, 128, 128) + out1 = bb(inp)["p5"] + out2 = bb_s(inp)["p5"] + self.assertTrue(torch.allclose(out1, out2)) diff --git a/detectron2/tests/modeling/test_box2box_transform.py b/detectron2/tests/modeling/test_box2box_transform.py new file mode 100755 index 0000000..fd3a7b7 --- /dev/null +++ b/detectron2/tests/modeling/test_box2box_transform.py @@ -0,0 +1,94 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +import torch + +from detectron2.modeling.box_regression import ( + Box2BoxTransform, + Box2BoxTransformLinear, + Box2BoxTransformRotated, +) +from detectron2.utils.testing import random_boxes + +logger = logging.getLogger(__name__) + + +class TestBox2BoxTransform(unittest.TestCase): + def test_reconstruction(self): + weights = (5, 5, 10, 10) + b2b_tfm = Box2BoxTransform(weights=weights) + src_boxes = random_boxes(10) + dst_boxes = random_boxes(10) + + devices = [torch.device("cpu")] + if torch.cuda.is_available(): + devices.append(torch.device("cuda")) + for device in devices: + src_boxes = src_boxes.to(device=device) + dst_boxes = dst_boxes.to(device=device) + deltas = b2b_tfm.get_deltas(src_boxes, dst_boxes) + dst_boxes_reconstructed = b2b_tfm.apply_deltas(deltas, src_boxes) + self.assertTrue(torch.allclose(dst_boxes, dst_boxes_reconstructed)) + + def test_apply_deltas_tracing(self): + weights = (5, 5, 10, 10) + b2b_tfm = Box2BoxTransform(weights=weights) + + with torch.no_grad(): + func = torch.jit.trace(b2b_tfm.apply_deltas, (torch.randn(10, 20), torch.randn(10, 4))) + + o = func(torch.randn(10, 20), torch.randn(10, 4)) + self.assertEqual(o.shape, (10, 20)) + o = func(torch.randn(5, 20), torch.randn(5, 4)) + self.assertEqual(o.shape, (5, 20)) + + +def random_rotated_boxes(mean_box, std_length, std_angle, N): + return torch.cat( + [torch.rand(N, 4) * std_length, torch.rand(N, 1) * std_angle], dim=1 + ) + torch.tensor(mean_box, dtype=torch.float) + + +class TestBox2BoxTransformRotated(unittest.TestCase): + def test_reconstruction(self): + weights = (5, 5, 10, 10, 1) + b2b_transform = Box2BoxTransformRotated(weights=weights) + src_boxes = random_rotated_boxes([10, 10, 20, 20, -30], 5, 60.0, 10) + dst_boxes = random_rotated_boxes([10, 10, 20, 20, -30], 5, 60.0, 10) + + devices = [torch.device("cpu")] + if torch.cuda.is_available(): + devices.append(torch.device("cuda")) + for device in devices: + src_boxes = src_boxes.to(device=device) + dst_boxes = dst_boxes.to(device=device) + deltas = b2b_transform.get_deltas(src_boxes, dst_boxes) + dst_boxes_reconstructed = b2b_transform.apply_deltas(deltas, src_boxes) + assert torch.allclose(dst_boxes[:, :4], dst_boxes_reconstructed[:, :4], atol=1e-5) + # angle difference has to be normalized + assert torch.allclose( + (dst_boxes[:, 4] - dst_boxes_reconstructed[:, 4] + 180.0) % 360.0 - 180.0, + torch.zeros_like(dst_boxes[:, 4]), + atol=1e-4, + ) + + +class TestBox2BoxTransformLinear(unittest.TestCase): + def test_reconstruction(self): + b2b_tfm = Box2BoxTransformLinear() + src_boxes = random_boxes(10) + dst_boxes = torch.tensor([0, 0, 101, 101] * 10).reshape(10, 4).float() + + devices = [torch.device("cpu")] + if torch.cuda.is_available(): + devices.append(torch.device("cuda")) + for device in devices: + src_boxes = src_boxes.to(device=device) + dst_boxes = dst_boxes.to(device=device) + deltas = b2b_tfm.get_deltas(src_boxes, dst_boxes) + dst_boxes_reconstructed = b2b_tfm.apply_deltas(deltas, src_boxes) + self.assertTrue(torch.allclose(dst_boxes, dst_boxes_reconstructed, atol=1e-3)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/test_fast_rcnn.py b/detectron2/tests/modeling/test_fast_rcnn.py new file mode 100755 index 0000000..e29b944 --- /dev/null +++ b/detectron2/tests/modeling/test_fast_rcnn.py @@ -0,0 +1,171 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +import torch + +from detectron2.layers import ShapeSpec +from detectron2.modeling.box_regression import Box2BoxTransform, Box2BoxTransformRotated +from detectron2.modeling.roi_heads.fast_rcnn import FastRCNNOutputLayers +from detectron2.modeling.roi_heads.rotated_fast_rcnn import RotatedFastRCNNOutputLayers +from detectron2.structures import Boxes, Instances, RotatedBoxes +from detectron2.utils.events import EventStorage + +logger = logging.getLogger(__name__) + + +class FastRCNNTest(unittest.TestCase): + def test_fast_rcnn(self): + torch.manual_seed(132) + + box_head_output_size = 8 + + box_predictor = FastRCNNOutputLayers( + ShapeSpec(channels=box_head_output_size), + box2box_transform=Box2BoxTransform(weights=(10, 10, 5, 5)), + num_classes=5, + ) + feature_pooled = torch.rand(2, box_head_output_size) + predictions = box_predictor(feature_pooled) + + proposal_boxes = torch.tensor([[0.8, 1.1, 3.2, 2.8], [2.3, 2.5, 7, 8]], dtype=torch.float32) + gt_boxes = torch.tensor([[1, 1, 3, 3], [2, 2, 6, 6]], dtype=torch.float32) + proposal = Instances((10, 10)) + proposal.proposal_boxes = Boxes(proposal_boxes) + proposal.gt_boxes = Boxes(gt_boxes) + proposal.gt_classes = torch.tensor([1, 2]) + + with EventStorage(): # capture events in a new storage to discard them + losses = box_predictor.losses(predictions, [proposal]) + + expected_losses = { + "loss_cls": torch.tensor(1.7951188087), + "loss_box_reg": torch.tensor(4.0357131958), + } + for name in expected_losses.keys(): + assert torch.allclose(losses[name], expected_losses[name]) + + def test_fast_rcnn_empty_batch(self, device="cpu"): + box_predictor = FastRCNNOutputLayers( + ShapeSpec(channels=10), + box2box_transform=Box2BoxTransform(weights=(10, 10, 5, 5)), + num_classes=8, + ).to(device=device) + + logits = torch.randn(0, 100, requires_grad=True, device=device) + deltas = torch.randn(0, 4, requires_grad=True, device=device) + losses = box_predictor.losses([logits, deltas], []) + for value in losses.values(): + self.assertTrue(torch.allclose(value, torch.zeros_like(value))) + sum(losses.values()).backward() + self.assertTrue(logits.grad is not None) + self.assertTrue(deltas.grad is not None) + + predictions, _ = box_predictor.inference([logits, deltas], []) + self.assertEqual(len(predictions), 0) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_fast_rcnn_empty_batch_cuda(self): + self.test_fast_rcnn_empty_batch(device=torch.device("cuda")) + + def test_fast_rcnn_rotated(self): + torch.manual_seed(132) + box_head_output_size = 8 + + box_predictor = RotatedFastRCNNOutputLayers( + ShapeSpec(channels=box_head_output_size), + box2box_transform=Box2BoxTransformRotated(weights=(10, 10, 5, 5, 1)), + num_classes=5, + ) + feature_pooled = torch.rand(2, box_head_output_size) + predictions = box_predictor(feature_pooled) + proposal_boxes = torch.tensor( + [[2, 1.95, 2.4, 1.7, 0], [4.65, 5.25, 4.7, 5.5, 0]], dtype=torch.float32 + ) + gt_boxes = torch.tensor([[2, 2, 2, 2, 0], [4, 4, 4, 4, 0]], dtype=torch.float32) + proposal = Instances((10, 10)) + proposal.proposal_boxes = RotatedBoxes(proposal_boxes) + proposal.gt_boxes = RotatedBoxes(gt_boxes) + proposal.gt_classes = torch.tensor([1, 2]) + + with EventStorage(): # capture events in a new storage to discard them + losses = box_predictor.losses(predictions, [proposal]) + + # Note: the expected losses are slightly different even if + # the boxes are essentially the same as in the FastRCNNOutput test, because + # bbox_pred in FastRCNNOutputLayers have different Linear layers/initialization + # between the two cases. + expected_losses = { + "loss_cls": torch.tensor(1.7920907736), + "loss_box_reg": torch.tensor(4.0410838127), + } + for name in expected_losses.keys(): + assert torch.allclose(losses[name], expected_losses[name]) + + def test_predict_boxes_tracing(self): + class Model(torch.nn.Module): + def __init__(self, output_layer): + super(Model, self).__init__() + self._output_layer = output_layer + + def forward(self, proposal_deltas, proposal_boxes): + instances = Instances((10, 10)) + instances.proposal_boxes = Boxes(proposal_boxes) + return self._output_layer.predict_boxes((None, proposal_deltas), [instances]) + + box_head_output_size = 8 + + box_predictor = FastRCNNOutputLayers( + ShapeSpec(channels=box_head_output_size), + box2box_transform=Box2BoxTransform(weights=(10, 10, 5, 5)), + num_classes=5, + ) + + model = Model(box_predictor) + + from detectron2.export.torchscript_patch import patch_builtin_len + + with torch.no_grad(), patch_builtin_len(): + func = torch.jit.trace(model, (torch.randn(10, 20), torch.randn(10, 4))) + + o = func(torch.randn(10, 20), torch.randn(10, 4)) + self.assertEqual(o[0].shape, (10, 20)) + o = func(torch.randn(5, 20), torch.randn(5, 4)) + self.assertEqual(o[0].shape, (5, 20)) + o = func(torch.randn(20, 20), torch.randn(20, 4)) + self.assertEqual(o[0].shape, (20, 20)) + + def test_predict_probs_tracing(self): + class Model(torch.nn.Module): + def __init__(self, output_layer): + super(Model, self).__init__() + self._output_layer = output_layer + + def forward(self, scores, proposal_boxes): + instances = Instances((10, 10)) + instances.proposal_boxes = Boxes(proposal_boxes) + return self._output_layer.predict_probs((scores, None), [instances]) + + box_head_output_size = 8 + + box_predictor = FastRCNNOutputLayers( + ShapeSpec(channels=box_head_output_size), + box2box_transform=Box2BoxTransform(weights=(10, 10, 5, 5)), + num_classes=5, + ) + + model = Model(box_predictor) + + from detectron2.export.torchscript_patch import patch_builtin_len + + with torch.no_grad(), patch_builtin_len(): + func = torch.jit.trace(model, (torch.randn(10, 6), torch.rand(10, 4))) + o = func(torch.randn(10, 6), torch.randn(10, 4)) + self.assertEqual(o[0].shape, (10, 6)) + o = func(torch.randn(5, 6), torch.randn(5, 4)) + self.assertEqual(o[0].shape, (5, 6)) + o = func(torch.randn(20, 6), torch.randn(20, 4)) + self.assertEqual(o[0].shape, (20, 6)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/test_matcher.py b/detectron2/tests/modeling/test_matcher.py new file mode 100755 index 0000000..6eb2db0 --- /dev/null +++ b/detectron2/tests/modeling/test_matcher.py @@ -0,0 +1,42 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest +from typing import List +import torch + +from detectron2.config import get_cfg +from detectron2.modeling.matcher import Matcher + + +class TestMatcher(unittest.TestCase): + def test_scriptability(self): + cfg = get_cfg() + anchor_matcher = Matcher( + cfg.MODEL.RPN.IOU_THRESHOLDS, cfg.MODEL.RPN.IOU_LABELS, allow_low_quality_matches=True + ) + match_quality_matrix = torch.tensor( + [[0.15, 0.45, 0.2, 0.6], [0.3, 0.65, 0.05, 0.1], [0.05, 0.4, 0.25, 0.4]] + ) + expected_matches = torch.tensor([1, 1, 2, 0]) + expected_match_labels = torch.tensor([-1, 1, 0, 1], dtype=torch.int8) + + matches, match_labels = anchor_matcher(match_quality_matrix) + self.assertTrue(torch.allclose(matches, expected_matches)) + self.assertTrue(torch.allclose(match_labels, expected_match_labels)) + + # nonzero_tuple must be import explicitly to let jit know what it is. + # https://github.com/pytorch/pytorch/issues/38964 + from detectron2.layers import nonzero_tuple # noqa F401 + + def f(thresholds: List[float], labels: List[int]): + return Matcher(thresholds, labels, allow_low_quality_matches=True) + + scripted_anchor_matcher = torch.jit.script(f)( + cfg.MODEL.RPN.IOU_THRESHOLDS, cfg.MODEL.RPN.IOU_LABELS + ) + matches, match_labels = scripted_anchor_matcher(match_quality_matrix) + self.assertTrue(torch.allclose(matches, expected_matches)) + self.assertTrue(torch.allclose(match_labels, expected_match_labels)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/test_mmdet.py b/detectron2/tests/modeling/test_mmdet.py new file mode 100755 index 0000000..a743b0b --- /dev/null +++ b/detectron2/tests/modeling/test_mmdet.py @@ -0,0 +1,186 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest + +from detectron2.layers import ShapeSpec +from detectron2.modeling.mmdet_wrapper import MMDetBackbone, MMDetDetector + +try: + import mmdet.models # noqa + + HAS_MMDET = True +except ImportError: + HAS_MMDET = False + + +@unittest.skipIf(not HAS_MMDET, "mmdet not available") +class TestMMDetWrapper(unittest.TestCase): + def test_backbone(self): + MMDetBackbone( + backbone=dict( + type="DetectoRS_ResNet", + conv_cfg=dict(type="ConvAWS"), + sac=dict(type="SAC", use_deform=True), + stage_with_sac=(False, True, True, True), + depth=50, + num_stages=4, + out_indices=(0, 1, 2, 3), + frozen_stages=1, + norm_cfg=dict(type="BN", requires_grad=True), + norm_eval=True, + style="pytorch", + ), + neck=dict( + type="FPN", + in_channels=[256, 512, 1024, 2048], + out_channels=256, + num_outs=5, + ), + # skip pretrained model for tests + # pretrained_backbone="torchvision://resnet50", + output_shapes=[ShapeSpec(channels=256, stride=s) for s in [4, 8, 16, 32, 64]], + output_names=["p2", "p3", "p4", "p5", "p6"], + ) + + def test_detector(self): + # a basic R50 Mask R-CNN + MMDetDetector( + detector=dict( + type="MaskRCNN", + backbone=dict( + type="ResNet", + depth=50, + num_stages=4, + out_indices=(0, 1, 2, 3), + frozen_stages=1, + norm_cfg=dict(type="BN", requires_grad=True), + norm_eval=True, + style="pytorch", + # skip pretrained model for tests + # init_cfg=dict(type='Pretrained', checkpoint='torchvision://resnet50')) + ), + neck=dict( + type="FPN", in_channels=[256, 512, 1024, 2048], out_channels=256, num_outs=5 + ), + rpn_head=dict( + type="RPNHead", + in_channels=256, + feat_channels=256, + anchor_generator=dict( + type="AnchorGenerator", + scales=[8], + ratios=[0.5, 1.0, 2.0], + strides=[4, 8, 16, 32, 64], + ), + bbox_coder=dict( + type="DeltaXYWHBBoxCoder", + target_means=[0.0, 0.0, 0.0, 0.0], + target_stds=[1.0, 1.0, 1.0, 1.0], + ), + loss_cls=dict(type="CrossEntropyLoss", use_sigmoid=True, loss_weight=1.0), + loss_bbox=dict(type="L1Loss", loss_weight=1.0), + ), + roi_head=dict( + type="StandardRoIHead", + bbox_roi_extractor=dict( + type="SingleRoIExtractor", + roi_layer=dict(type="RoIAlign", output_size=7, sampling_ratio=0), + out_channels=256, + featmap_strides=[4, 8, 16, 32], + ), + bbox_head=dict( + type="Shared2FCBBoxHead", + in_channels=256, + fc_out_channels=1024, + roi_feat_size=7, + num_classes=80, + bbox_coder=dict( + type="DeltaXYWHBBoxCoder", + target_means=[0.0, 0.0, 0.0, 0.0], + target_stds=[0.1, 0.1, 0.2, 0.2], + ), + reg_class_agnostic=False, + loss_cls=dict(type="CrossEntropyLoss", use_sigmoid=False, loss_weight=1.0), + loss_bbox=dict(type="L1Loss", loss_weight=1.0), + ), + mask_roi_extractor=dict( + type="SingleRoIExtractor", + roi_layer=dict(type="RoIAlign", output_size=14, sampling_ratio=0), + out_channels=256, + featmap_strides=[4, 8, 16, 32], + ), + mask_head=dict( + type="FCNMaskHead", + num_convs=4, + in_channels=256, + conv_out_channels=256, + num_classes=80, + loss_mask=dict(type="CrossEntropyLoss", use_mask=True, loss_weight=1.0), + ), + ), + # model training and testing settings + train_cfg=dict( + rpn=dict( + assigner=dict( + type="MaxIoUAssigner", + pos_iou_thr=0.7, + neg_iou_thr=0.3, + min_pos_iou=0.3, + match_low_quality=True, + ignore_iof_thr=-1, + ), + sampler=dict( + type="RandomSampler", + num=256, + pos_fraction=0.5, + neg_pos_ub=-1, + add_gt_as_proposals=False, + ), + allowed_border=-1, + pos_weight=-1, + debug=False, + ), + rpn_proposal=dict( + nms_pre=2000, + max_per_img=1000, + nms=dict(type="nms", iou_threshold=0.7), + min_bbox_size=0, + ), + rcnn=dict( + assigner=dict( + type="MaxIoUAssigner", + pos_iou_thr=0.5, + neg_iou_thr=0.5, + min_pos_iou=0.5, + match_low_quality=True, + ignore_iof_thr=-1, + ), + sampler=dict( + type="RandomSampler", + num=512, + pos_fraction=0.25, + neg_pos_ub=-1, + add_gt_as_proposals=True, + ), + mask_size=28, + pos_weight=-1, + debug=False, + ), + ), + test_cfg=dict( + rpn=dict( + nms_pre=1000, + max_per_img=1000, + nms=dict(type="nms", iou_threshold=0.7), + min_bbox_size=0, + ), + rcnn=dict( + score_thr=0.05, + nms=dict(type="nms", iou_threshold=0.5), + max_per_img=100, + mask_thr_binary=0.5, + ), + ), + ), + pixel_mean=[1, 2, 3], + pixel_std=[1, 2, 3], + ) diff --git a/detectron2/tests/modeling/test_model_e2e.py b/detectron2/tests/modeling/test_model_e2e.py new file mode 100755 index 0000000..8c07e68 --- /dev/null +++ b/detectron2/tests/modeling/test_model_e2e.py @@ -0,0 +1,227 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + + +import itertools +import unittest +from contextlib import contextmanager +from copy import deepcopy +import torch + +from detectron2.structures import BitMasks, Boxes, ImageList, Instances +from detectron2.utils.events import EventStorage +from detectron2.utils.testing import get_model_no_weights + + +@contextmanager +def typecheck_hook(model, *, in_dtype=None, out_dtype=None): + """ + Check that the model must be called with the given input/output dtype + """ + if not isinstance(in_dtype, set): + in_dtype = {in_dtype} + if not isinstance(out_dtype, set): + out_dtype = {out_dtype} + + def flatten(x): + if isinstance(x, torch.Tensor): + return [x] + if isinstance(x, (list, tuple)): + return list(itertools.chain(*[flatten(t) for t in x])) + if isinstance(x, dict): + return flatten(list(x.values())) + return [] + + def hook(module, input, output): + if in_dtype is not None: + dtypes = {x.dtype for x in flatten(input)} + assert ( + dtypes == in_dtype + ), f"Expected input dtype of {type(module)} is {in_dtype}. Got {dtypes} instead!" + + if out_dtype is not None: + dtypes = {x.dtype for x in flatten(output)} + assert ( + dtypes == out_dtype + ), f"Expected output dtype of {type(module)} is {out_dtype}. Got {dtypes} instead!" + + with model.register_forward_hook(hook): + yield + + +def create_model_input(img, inst=None): + if inst is not None: + return {"image": img, "instances": inst} + else: + return {"image": img} + + +def get_empty_instance(h, w): + inst = Instances((h, w)) + inst.gt_boxes = Boxes(torch.rand(0, 4)) + inst.gt_classes = torch.tensor([]).to(dtype=torch.int64) + inst.gt_masks = BitMasks(torch.rand(0, h, w)) + return inst + + +def get_regular_bitmask_instances(h, w): + inst = Instances((h, w)) + inst.gt_boxes = Boxes(torch.rand(3, 4)) + inst.gt_boxes.tensor[:, 2:] += inst.gt_boxes.tensor[:, :2] + inst.gt_classes = torch.tensor([3, 4, 5]).to(dtype=torch.int64) + inst.gt_masks = BitMasks((torch.rand(3, h, w) > 0.5)) + return inst + + +class InstanceModelE2ETest: + def setUp(self): + torch.manual_seed(43) + self.model = get_model_no_weights(self.CONFIG_PATH) + + def _test_eval(self, input_sizes): + inputs = [create_model_input(torch.rand(3, s[0], s[1])) for s in input_sizes] + self.model.eval() + self.model(inputs) + + def _test_train(self, input_sizes, instances): + assert len(input_sizes) == len(instances) + inputs = [ + create_model_input(torch.rand(3, s[0], s[1]), inst) + for s, inst in zip(input_sizes, instances) + ] + self.model.train() + with EventStorage(): + losses = self.model(inputs) + sum(losses.values()).backward() + del losses + + def _inf_tensor(self, *shape): + return 1.0 / torch.zeros(*shape, device=self.model.device) + + def _nan_tensor(self, *shape): + return torch.zeros(*shape, device=self.model.device).fill_(float("nan")) + + def test_empty_data(self): + instances = [get_empty_instance(200, 250), get_empty_instance(200, 249)] + self._test_eval([(200, 250), (200, 249)]) + self._test_train([(200, 250), (200, 249)], instances) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable") + def test_eval_tocpu(self): + model = deepcopy(self.model).cpu() + model.eval() + input_sizes = [(200, 250), (200, 249)] + inputs = [create_model_input(torch.rand(3, s[0], s[1])) for s in input_sizes] + model(inputs) + + +class MaskRCNNE2ETest(InstanceModelE2ETest, unittest.TestCase): + CONFIG_PATH = "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" + + def test_half_empty_data(self): + instances = [get_empty_instance(200, 250), get_regular_bitmask_instances(200, 249)] + self._test_train([(200, 250), (200, 249)], instances) + + # This test is flaky because in some environment the output features are zero due to relu + # def test_rpn_inf_nan_data(self): + # self.model.eval() + # for tensor in [self._inf_tensor, self._nan_tensor]: + # images = ImageList(tensor(1, 3, 512, 512), [(510, 510)]) + # features = { + # "p2": tensor(1, 256, 256, 256), + # "p3": tensor(1, 256, 128, 128), + # "p4": tensor(1, 256, 64, 64), + # "p5": tensor(1, 256, 32, 32), + # "p6": tensor(1, 256, 16, 16), + # } + # props, _ = self.model.proposal_generator(images, features) + # self.assertEqual(len(props[0]), 0) + + def test_roiheads_inf_nan_data(self): + self.model.eval() + for tensor in [self._inf_tensor, self._nan_tensor]: + images = ImageList(tensor(1, 3, 512, 512), [(510, 510)]) + features = { + "p2": tensor(1, 256, 256, 256), + "p3": tensor(1, 256, 128, 128), + "p4": tensor(1, 256, 64, 64), + "p5": tensor(1, 256, 32, 32), + "p6": tensor(1, 256, 16, 16), + } + props = [Instances((510, 510))] + props[0].proposal_boxes = Boxes([[10, 10, 20, 20]]).to(device=self.model.device) + props[0].objectness_logits = torch.tensor([1.0]).reshape(1, 1) + det, _ = self.model.roi_heads(images, features, props) + self.assertEqual(len(det[0]), 0) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_autocast(self): + from torch.cuda.amp import autocast + + inputs = [{"image": torch.rand(3, 100, 100)}] + self.model.eval() + with autocast(), typecheck_hook( + self.model.backbone, in_dtype=torch.float32, out_dtype=torch.float16 + ), typecheck_hook( + self.model.roi_heads.box_predictor, in_dtype=torch.float16, out_dtype=torch.float16 + ): + out = self.model.inference(inputs, do_postprocess=False)[0] + self.assertEqual(out.pred_boxes.tensor.dtype, torch.float32) + self.assertEqual(out.pred_masks.dtype, torch.float16) + self.assertEqual(out.scores.dtype, torch.float32) # scores comes from softmax + + +class RetinaNetE2ETest(InstanceModelE2ETest, unittest.TestCase): + CONFIG_PATH = "COCO-Detection/retinanet_R_50_FPN_1x.yaml" + + def test_inf_nan_data(self): + self.model.eval() + self.model.score_threshold = -999999999 + for tensor in [self._inf_tensor, self._nan_tensor]: + images = ImageList(tensor(1, 3, 512, 512), [(510, 510)]) + features = [ + tensor(1, 256, 128, 128), + tensor(1, 256, 64, 64), + tensor(1, 256, 32, 32), + tensor(1, 256, 16, 16), + tensor(1, 256, 8, 8), + ] + pred_logits, pred_anchor_deltas = self.model.head(features) + pred_logits = [tensor(*x.shape) for x in pred_logits] + pred_anchor_deltas = [tensor(*x.shape) for x in pred_anchor_deltas] + det = self.model.forward_inference(images, features, [pred_logits, pred_anchor_deltas]) + # all predictions (if any) are infinite or nan + if len(det[0]): + self.assertTrue(torch.isfinite(det[0].pred_boxes.tensor).sum() == 0) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_autocast(self): + from torch.cuda.amp import autocast + + inputs = [{"image": torch.rand(3, 100, 100)}] + self.model.eval() + with autocast(), typecheck_hook( + self.model.backbone, in_dtype=torch.float32, out_dtype=torch.float16 + ), typecheck_hook(self.model.head, in_dtype=torch.float16, out_dtype=torch.float16): + out = self.model(inputs)[0]["instances"] + self.assertEqual(out.pred_boxes.tensor.dtype, torch.float32) + self.assertEqual(out.scores.dtype, torch.float16) + + +class FCOSE2ETest(InstanceModelE2ETest, unittest.TestCase): + CONFIG_PATH = "COCO-Detection/fcos_R_50_FPN_1x.py" + + +class SemSegE2ETest(unittest.TestCase): + CONFIG_PATH = "Misc/semantic_R_50_FPN_1x.yaml" + + def setUp(self): + torch.manual_seed(43) + self.model = get_model_no_weights(self.CONFIG_PATH) + + def _test_eval(self, input_sizes): + inputs = [create_model_input(torch.rand(3, s[0], s[1])) for s in input_sizes] + self.model.eval() + self.model(inputs) + + def test_forward(self): + self._test_eval([(200, 250), (200, 249)]) diff --git a/detectron2/tests/modeling/test_roi_heads.py b/detectron2/tests/modeling/test_roi_heads.py new file mode 100755 index 0000000..86360e1 --- /dev/null +++ b/detectron2/tests/modeling/test_roi_heads.py @@ -0,0 +1,323 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +from copy import deepcopy +import torch +from torch import nn + +from detectron2 import model_zoo +from detectron2.config import get_cfg +from detectron2.export.torchscript_patch import ( + freeze_training_mode, + patch_builtin_len, + patch_instances, +) +from detectron2.layers import ShapeSpec +from detectron2.modeling.proposal_generator.build import build_proposal_generator +from detectron2.modeling.roi_heads import ( + FastRCNNConvFCHead, + KRCNNConvDeconvUpsampleHead, + MaskRCNNConvUpsampleHead, + StandardROIHeads, + build_roi_heads, +) +from detectron2.projects import point_rend +from detectron2.structures import BitMasks, Boxes, ImageList, Instances, RotatedBoxes +from detectron2.utils.events import EventStorage +from detectron2.utils.testing import assert_instances_allclose, random_boxes + +logger = logging.getLogger(__name__) + +""" +Make sure the losses of ROIHeads/RPN do not change, to avoid +breaking the forward logic by mistake. +This relies on assumption that pytorch's RNG is stable. +""" + + +class ROIHeadsTest(unittest.TestCase): + def test_roi_heads(self): + torch.manual_seed(121) + cfg = get_cfg() + cfg.MODEL.ROI_BOX_HEAD.NAME = "FastRCNNConvFCHead" + cfg.MODEL.ROI_BOX_HEAD.NUM_FC = 2 + cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE = "ROIAlignV2" + cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_WEIGHTS = (10, 10, 5, 5) + cfg.MODEL.MASK_ON = True + num_images = 2 + images_tensor = torch.rand(num_images, 20, 30) + image_sizes = [(10, 10), (20, 30)] + images = ImageList(images_tensor, image_sizes) + num_channels = 1024 + features = {"res4": torch.rand(num_images, num_channels, 1, 2)} + feature_shape = {"res4": ShapeSpec(channels=num_channels, stride=16)} + + image_shape = (15, 15) + gt_boxes0 = torch.tensor([[1, 1, 3, 3], [2, 2, 6, 6]], dtype=torch.float32) + gt_instance0 = Instances(image_shape) + gt_instance0.gt_boxes = Boxes(gt_boxes0) + gt_instance0.gt_classes = torch.tensor([2, 1]) + gt_instance0.gt_masks = BitMasks(torch.rand((2,) + image_shape) > 0.5) + gt_boxes1 = torch.tensor([[1, 5, 2, 8], [7, 3, 10, 5]], dtype=torch.float32) + gt_instance1 = Instances(image_shape) + gt_instance1.gt_boxes = Boxes(gt_boxes1) + gt_instance1.gt_classes = torch.tensor([1, 2]) + gt_instance1.gt_masks = BitMasks(torch.rand((2,) + image_shape) > 0.5) + gt_instances = [gt_instance0, gt_instance1] + + proposal_generator = build_proposal_generator(cfg, feature_shape) + roi_heads = StandardROIHeads(cfg, feature_shape) + + with EventStorage(): # capture events in a new storage to discard them + proposals, proposal_losses = proposal_generator(images, features, gt_instances) + _, detector_losses = roi_heads(images, features, proposals, gt_instances) + + detector_losses.update(proposal_losses) + expected_losses = { + "loss_cls": 4.5253729820251465, + "loss_box_reg": 0.009785720147192478, + "loss_mask": 0.693184494972229, + "loss_rpn_cls": 0.08186662942171097, + "loss_rpn_loc": 0.1104838103055954, + } + succ = all( + torch.allclose(detector_losses[name], torch.tensor(expected_losses.get(name, 0.0))) + for name in detector_losses.keys() + ) + self.assertTrue( + succ, + "Losses has changed! New losses: {}".format( + {k: v.item() for k, v in detector_losses.items()} + ), + ) + + def test_rroi_heads(self): + torch.manual_seed(121) + cfg = get_cfg() + cfg.MODEL.PROPOSAL_GENERATOR.NAME = "RRPN" + cfg.MODEL.ANCHOR_GENERATOR.NAME = "RotatedAnchorGenerator" + cfg.MODEL.ROI_HEADS.NAME = "RROIHeads" + cfg.MODEL.ROI_BOX_HEAD.NAME = "FastRCNNConvFCHead" + cfg.MODEL.ROI_BOX_HEAD.NUM_FC = 2 + cfg.MODEL.RPN.BBOX_REG_WEIGHTS = (1, 1, 1, 1, 1) + cfg.MODEL.RPN.HEAD_NAME = "StandardRPNHead" + cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE = "ROIAlignRotated" + cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_WEIGHTS = (10, 10, 5, 5, 1) + num_images = 2 + images_tensor = torch.rand(num_images, 20, 30) + image_sizes = [(10, 10), (20, 30)] + images = ImageList(images_tensor, image_sizes) + num_channels = 1024 + features = {"res4": torch.rand(num_images, num_channels, 1, 2)} + feature_shape = {"res4": ShapeSpec(channels=num_channels, stride=16)} + + image_shape = (15, 15) + gt_boxes0 = torch.tensor([[2, 2, 2, 2, 30], [4, 4, 4, 4, 0]], dtype=torch.float32) + gt_instance0 = Instances(image_shape) + gt_instance0.gt_boxes = RotatedBoxes(gt_boxes0) + gt_instance0.gt_classes = torch.tensor([2, 1]) + gt_boxes1 = torch.tensor([[1.5, 5.5, 1, 3, 0], [8.5, 4, 3, 2, -50]], dtype=torch.float32) + gt_instance1 = Instances(image_shape) + gt_instance1.gt_boxes = RotatedBoxes(gt_boxes1) + gt_instance1.gt_classes = torch.tensor([1, 2]) + gt_instances = [gt_instance0, gt_instance1] + + proposal_generator = build_proposal_generator(cfg, feature_shape) + roi_heads = build_roi_heads(cfg, feature_shape) + + with EventStorage(): # capture events in a new storage to discard them + proposals, proposal_losses = proposal_generator(images, features, gt_instances) + _, detector_losses = roi_heads(images, features, proposals, gt_instances) + + detector_losses.update(proposal_losses) + expected_losses = { + "loss_cls": 4.365657806396484, + "loss_box_reg": 0.0015851043863222003, + "loss_rpn_cls": 0.2427729219198227, + "loss_rpn_loc": 0.3646621108055115, + } + succ = all( + torch.allclose(detector_losses[name], torch.tensor(expected_losses.get(name, 0.0))) + for name in detector_losses.keys() + ) + self.assertTrue( + succ, + "Losses has changed! New losses: {}".format( + {k: v.item() for k, v in detector_losses.items()} + ), + ) + + def test_box_head_scriptability(self): + input_shape = ShapeSpec(channels=1024, height=14, width=14) + box_features = torch.randn(4, 1024, 14, 14) + + box_head = FastRCNNConvFCHead( + input_shape, conv_dims=[512, 512], fc_dims=[1024, 1024] + ).eval() + script_box_head = torch.jit.script(box_head) + + origin_output = box_head(box_features) + script_output = script_box_head(box_features) + self.assertTrue(torch.equal(origin_output, script_output)) + + def test_mask_head_scriptability(self): + input_shape = ShapeSpec(channels=1024) + mask_features = torch.randn(4, 1024, 14, 14) + + image_shapes = [(10, 10), (15, 15)] + pred_instance0 = Instances(image_shapes[0]) + pred_classes0 = torch.tensor([1, 2, 3], dtype=torch.int64) + pred_instance0.pred_classes = pred_classes0 + pred_instance1 = Instances(image_shapes[1]) + pred_classes1 = torch.tensor([4], dtype=torch.int64) + pred_instance1.pred_classes = pred_classes1 + + mask_head = MaskRCNNConvUpsampleHead( + input_shape, num_classes=80, conv_dims=[256, 256] + ).eval() + # pred_instance will be in-place changed during the inference + # process of `MaskRCNNConvUpsampleHead` + origin_outputs = mask_head(mask_features, deepcopy([pred_instance0, pred_instance1])) + + fields = {"pred_masks": torch.Tensor, "pred_classes": torch.Tensor} + with freeze_training_mode(mask_head), patch_instances(fields) as NewInstances: + sciript_mask_head = torch.jit.script(mask_head) + pred_instance0 = NewInstances.from_instances(pred_instance0) + pred_instance1 = NewInstances.from_instances(pred_instance1) + script_outputs = sciript_mask_head(mask_features, [pred_instance0, pred_instance1]) + + for origin_ins, script_ins in zip(origin_outputs, script_outputs): + assert_instances_allclose(origin_ins, script_ins, rtol=0) + + def test_keypoint_head_scriptability(self): + input_shape = ShapeSpec(channels=1024, height=14, width=14) + keypoint_features = torch.randn(4, 1024, 14, 14) + + image_shapes = [(10, 10), (15, 15)] + pred_boxes0 = torch.tensor([[1, 1, 3, 3], [2, 2, 6, 6], [1, 5, 2, 8]], dtype=torch.float32) + pred_instance0 = Instances(image_shapes[0]) + pred_instance0.pred_boxes = Boxes(pred_boxes0) + pred_boxes1 = torch.tensor([[7, 3, 10, 5]], dtype=torch.float32) + pred_instance1 = Instances(image_shapes[1]) + pred_instance1.pred_boxes = Boxes(pred_boxes1) + + keypoint_head = KRCNNConvDeconvUpsampleHead( + input_shape, num_keypoints=17, conv_dims=[512, 512] + ).eval() + origin_outputs = keypoint_head( + keypoint_features, deepcopy([pred_instance0, pred_instance1]) + ) + + fields = { + "pred_boxes": Boxes, + "pred_keypoints": torch.Tensor, + "pred_keypoint_heatmaps": torch.Tensor, + } + with freeze_training_mode(keypoint_head), patch_instances(fields) as NewInstances: + script_keypoint_head = torch.jit.script(keypoint_head) + pred_instance0 = NewInstances.from_instances(pred_instance0) + pred_instance1 = NewInstances.from_instances(pred_instance1) + script_outputs = script_keypoint_head( + keypoint_features, [pred_instance0, pred_instance1] + ) + + for origin_ins, script_ins in zip(origin_outputs, script_outputs): + assert_instances_allclose(origin_ins, script_ins, rtol=0) + + def test_StandardROIHeads_scriptability(self): + cfg = get_cfg() + cfg.MODEL.ROI_BOX_HEAD.NAME = "FastRCNNConvFCHead" + cfg.MODEL.ROI_BOX_HEAD.NUM_FC = 2 + cfg.MODEL.ROI_BOX_HEAD.POOLER_TYPE = "ROIAlignV2" + cfg.MODEL.ROI_BOX_HEAD.BBOX_REG_WEIGHTS = (10, 10, 5, 5) + cfg.MODEL.MASK_ON = True + cfg.MODEL.ROI_HEADS.NMS_THRESH_TEST = 0.01 + cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.01 + num_images = 2 + images_tensor = torch.rand(num_images, 20, 30) + image_sizes = [(10, 10), (20, 30)] + images = ImageList(images_tensor, image_sizes) + num_channels = 1024 + features = {"res4": torch.rand(num_images, num_channels, 1, 2)} + feature_shape = {"res4": ShapeSpec(channels=num_channels, stride=16)} + + roi_heads = StandardROIHeads(cfg, feature_shape).eval() + + proposal0 = Instances(image_sizes[0]) + proposal_boxes0 = torch.tensor([[1, 1, 3, 3], [2, 2, 6, 6]], dtype=torch.float32) + proposal0.proposal_boxes = Boxes(proposal_boxes0) + proposal0.objectness_logits = torch.tensor([0.5, 0.7], dtype=torch.float32) + + proposal1 = Instances(image_sizes[1]) + proposal_boxes1 = torch.tensor([[1, 5, 2, 8], [7, 3, 10, 5]], dtype=torch.float32) + proposal1.proposal_boxes = Boxes(proposal_boxes1) + proposal1.objectness_logits = torch.tensor([0.1, 0.9], dtype=torch.float32) + proposals = [proposal0, proposal1] + + pred_instances, _ = roi_heads(images, features, proposals) + fields = { + "objectness_logits": torch.Tensor, + "proposal_boxes": Boxes, + "pred_classes": torch.Tensor, + "scores": torch.Tensor, + "pred_masks": torch.Tensor, + "pred_boxes": Boxes, + "pred_keypoints": torch.Tensor, + "pred_keypoint_heatmaps": torch.Tensor, + } + with freeze_training_mode(roi_heads), patch_instances(fields) as new_instances: + proposal0 = new_instances.from_instances(proposal0) + proposal1 = new_instances.from_instances(proposal1) + proposals = [proposal0, proposal1] + scripted_rot_heads = torch.jit.script(roi_heads) + scripted_pred_instances, _ = scripted_rot_heads(images, features, proposals) + + for instance, scripted_instance in zip(pred_instances, scripted_pred_instances): + assert_instances_allclose(instance, scripted_instance, rtol=0) + + def test_PointRend_mask_head_tracing(self): + cfg = model_zoo.get_config("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml") + point_rend.add_pointrend_config(cfg) + cfg.MODEL.ROI_HEADS.IN_FEATURES = ["p2", "p3"] + cfg.MODEL.ROI_MASK_HEAD.NAME = "PointRendMaskHead" + cfg.MODEL.ROI_MASK_HEAD.POOLER_TYPE = "" + cfg.MODEL.ROI_MASK_HEAD.POINT_HEAD_ON = True + chan = 256 + head = point_rend.PointRendMaskHead( + cfg, + { + "p2": ShapeSpec(channels=chan, stride=4), + "p3": ShapeSpec(channels=chan, stride=8), + }, + ) + + def gen_inputs(h, w, N): + p2 = torch.rand(1, chan, h, w) + p3 = torch.rand(1, chan, h // 2, w // 2) + boxes = random_boxes(N, max_coord=h) + return p2, p3, boxes + + class Wrap(nn.ModuleDict): + def forward(self, p2, p3, boxes): + features = { + "p2": p2, + "p3": p3, + } + inst = Instances((p2.shape[2] * 4, p2.shape[3] * 4)) + inst.pred_boxes = Boxes(boxes) + inst.pred_classes = torch.zeros(inst.__len__(), dtype=torch.long) + out = self.head(features, [inst])[0] + return out.pred_masks + + model = Wrap({"head": head}) + model.eval() + with torch.no_grad(), patch_builtin_len(): + traced = torch.jit.trace(model, gen_inputs(302, 208, 20)) + inputs = gen_inputs(100, 120, 30) + out_eager = model(*inputs) + out_trace = traced(*inputs) + self.assertTrue(torch.allclose(out_eager, out_trace)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/test_roi_pooler.py b/detectron2/tests/modeling/test_roi_pooler.py new file mode 100755 index 0000000..e1d7c1c --- /dev/null +++ b/detectron2/tests/modeling/test_roi_pooler.py @@ -0,0 +1,165 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +import torch + +from detectron2.modeling.poolers import ROIPooler +from detectron2.structures import Boxes, RotatedBoxes +from detectron2.utils.testing import random_boxes + +logger = logging.getLogger(__name__) + + +class TestROIPooler(unittest.TestCase): + def _test_roialignv2_roialignrotated_match(self, device): + pooler_resolution = 14 + canonical_level = 4 + canonical_scale_factor = 2**canonical_level + pooler_scales = (1.0 / canonical_scale_factor,) + sampling_ratio = 0 + + N, C, H, W = 2, 4, 10, 8 + N_rois = 10 + std = 11 + mean = 0 + feature = (torch.rand(N, C, H, W) - 0.5) * 2 * std + mean + + features = [feature.to(device)] + + rois = [] + rois_rotated = [] + for _ in range(N): + boxes = random_boxes(N_rois, W * canonical_scale_factor) + rotated_boxes = torch.zeros(N_rois, 5) + rotated_boxes[:, 0] = (boxes[:, 0] + boxes[:, 2]) / 2.0 + rotated_boxes[:, 1] = (boxes[:, 1] + boxes[:, 3]) / 2.0 + rotated_boxes[:, 2] = boxes[:, 2] - boxes[:, 0] + rotated_boxes[:, 3] = boxes[:, 3] - boxes[:, 1] + rois.append(Boxes(boxes).to(device)) + rois_rotated.append(RotatedBoxes(rotated_boxes).to(device)) + + roialignv2_pooler = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type="ROIAlignV2", + ) + + roialignv2_out = roialignv2_pooler(features, rois) + + roialignrotated_pooler = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type="ROIAlignRotated", + ) + + roialignrotated_out = roialignrotated_pooler(features, rois_rotated) + + self.assertTrue(torch.allclose(roialignv2_out, roialignrotated_out, atol=1e-4)) + + def test_roialignv2_roialignrotated_match_cpu(self): + self._test_roialignv2_roialignrotated_match(device="cpu") + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_roialignv2_roialignrotated_match_cuda(self): + self._test_roialignv2_roialignrotated_match(device="cuda") + + def _test_scriptability(self, device): + pooler_resolution = 14 + canonical_level = 4 + canonical_scale_factor = 2**canonical_level + pooler_scales = (1.0 / canonical_scale_factor,) + sampling_ratio = 0 + + N, C, H, W = 2, 4, 10, 8 + N_rois = 10 + std = 11 + mean = 0 + feature = (torch.rand(N, C, H, W) - 0.5) * 2 * std + mean + + features = [feature.to(device)] + + rois = [] + for _ in range(N): + boxes = random_boxes(N_rois, W * canonical_scale_factor) + + rois.append(Boxes(boxes).to(device)) + + roialignv2_pooler = ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type="ROIAlignV2", + ) + + roialignv2_out = roialignv2_pooler(features, rois) + scripted_roialignv2_out = torch.jit.script(roialignv2_pooler)(features, rois) + self.assertTrue(torch.equal(roialignv2_out, scripted_roialignv2_out)) + + def test_scriptability_cpu(self): + self._test_scriptability(device="cpu") + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_scriptability_gpu(self): + self._test_scriptability(device="cuda") + + def test_no_images(self): + N, C, H, W = 0, 32, 32, 32 + feature = torch.rand(N, C, H, W) - 0.5 + features = [feature] + pooler = ROIPooler( + output_size=14, scales=(1.0,), sampling_ratio=0.0, pooler_type="ROIAlignV2" + ) + output = pooler.forward(features, []) + self.assertEqual(output.shape, (0, C, 14, 14)) + + def test_roi_pooler_tracing(self): + class Model(torch.nn.Module): + def __init__(self, roi): + super(Model, self).__init__() + self.roi = roi + + def forward(self, x, boxes): + return self.roi(x, [Boxes(boxes)]) + + pooler_resolution = 14 + canonical_level = 4 + canonical_scale_factor = 2**canonical_level + pooler_scales = (1.0 / canonical_scale_factor, 0.5 / canonical_scale_factor) + sampling_ratio = 0 + + N, C, H, W = 1, 4, 10, 8 + N_rois = 10 + std = 11 + mean = 0 + feature = (torch.rand(N, C, H, W) - 0.5) * 2 * std + mean + feature = [feature, feature] + + rois = random_boxes(N_rois, W * canonical_scale_factor) + # Add one larger box so that this level has only one box. + # This may trigger the bug https://github.com/pytorch/pytorch/issues/49852 + # that we shall workaround. + rois = torch.cat([rois, torch.tensor([[0, 0, 448, 448]])]) + + model = Model( + ROIPooler( + output_size=pooler_resolution, + scales=pooler_scales, + sampling_ratio=sampling_ratio, + pooler_type="ROIAlign", + ) + ) + + with torch.no_grad(): + func = torch.jit.trace(model, (feature, rois)) + o = func(feature, rois) + self.assertEqual(o.shape, (11, 4, 14, 14)) + o = func(feature, rois[:5]) + self.assertEqual(o.shape, (5, 4, 14, 14)) + o = func(feature, random_boxes(20, W * canonical_scale_factor)) + self.assertEqual(o.shape, (20, 4, 14, 14)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/modeling/test_rpn.py b/detectron2/tests/modeling/test_rpn.py new file mode 100755 index 0000000..f14faae --- /dev/null +++ b/detectron2/tests/modeling/test_rpn.py @@ -0,0 +1,262 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest +import torch + +from detectron2.config import get_cfg +from detectron2.export import scripting_with_instances +from detectron2.layers import ShapeSpec +from detectron2.modeling.backbone import build_backbone +from detectron2.modeling.proposal_generator import RPN, build_proposal_generator +from detectron2.modeling.proposal_generator.proposal_utils import ( + add_ground_truth_to_proposals, + find_top_rpn_proposals, +) +from detectron2.structures import Boxes, ImageList, Instances, RotatedBoxes +from detectron2.utils.events import EventStorage + +logger = logging.getLogger(__name__) + + +class RPNTest(unittest.TestCase): + def get_gt_and_features(self): + num_images = 2 + images_tensor = torch.rand(num_images, 20, 30) + image_sizes = [(10, 10), (20, 30)] + images = ImageList(images_tensor, image_sizes) + image_shape = (15, 15) + num_channels = 1024 + features = {"res4": torch.rand(num_images, num_channels, 1, 2)} + gt_boxes = torch.tensor([[1, 1, 3, 3], [2, 2, 6, 6]], dtype=torch.float32) + gt_instances = Instances(image_shape) + gt_instances.gt_boxes = Boxes(gt_boxes) + return (gt_instances, features, images, image_sizes) + + def test_rpn(self): + torch.manual_seed(121) + cfg = get_cfg() + backbone = build_backbone(cfg) + proposal_generator = RPN(cfg, backbone.output_shape()) + (gt_instances, features, images, image_sizes) = self.get_gt_and_features() + with EventStorage(): # capture events in a new storage to discard them + proposals, proposal_losses = proposal_generator( + images, features, [gt_instances[0], gt_instances[1]] + ) + + expected_losses = { + "loss_rpn_cls": torch.tensor(0.08011703193), + "loss_rpn_loc": torch.tensor(0.101470276), + } + for name in expected_losses.keys(): + err_msg = "proposal_losses[{}] = {}, expected losses = {}".format( + name, proposal_losses[name], expected_losses[name] + ) + self.assertTrue(torch.allclose(proposal_losses[name], expected_losses[name]), err_msg) + + self.assertEqual(len(proposals), len(image_sizes)) + for proposal, im_size in zip(proposals, image_sizes): + self.assertEqual(proposal.image_size, im_size) + + expected_proposal_box = torch.tensor([[0, 0, 10, 10], [7.2702, 0, 10, 10]]) + expected_objectness_logit = torch.tensor([0.1596, -0.0007]) + self.assertTrue( + torch.allclose(proposals[0].proposal_boxes.tensor, expected_proposal_box, atol=1e-4) + ) + self.assertTrue( + torch.allclose(proposals[0].objectness_logits, expected_objectness_logit, atol=1e-4) + ) + + def verify_rpn(self, conv_dims, expected_conv_dims): + torch.manual_seed(121) + cfg = get_cfg() + cfg.MODEL.RPN.CONV_DIMS = conv_dims + backbone = build_backbone(cfg) + proposal_generator = RPN(cfg, backbone.output_shape()) + for k, conv in enumerate(proposal_generator.rpn_head.conv): + self.assertEqual(expected_conv_dims[k], conv.out_channels) + return proposal_generator + + def test_rpn_larger_num_convs(self): + conv_dims = [64, 64, 64, 64, 64] + proposal_generator = self.verify_rpn(conv_dims, conv_dims) + (gt_instances, features, images, image_sizes) = self.get_gt_and_features() + with EventStorage(): # capture events in a new storage to discard them + proposals, proposal_losses = proposal_generator( + images, features, [gt_instances[0], gt_instances[1]] + ) + expected_losses = { + "loss_rpn_cls": torch.tensor(0.08122821152), + "loss_rpn_loc": torch.tensor(0.10064548254), + } + for name in expected_losses.keys(): + err_msg = "proposal_losses[{}] = {}, expected losses = {}".format( + name, proposal_losses[name], expected_losses[name] + ) + self.assertTrue(torch.allclose(proposal_losses[name], expected_losses[name]), err_msg) + + def test_rpn_conv_dims_not_set(self): + conv_dims = [-1, -1, -1] + expected_conv_dims = [1024, 1024, 1024] + self.verify_rpn(conv_dims, expected_conv_dims) + + def test_rpn_scriptability(self): + cfg = get_cfg() + proposal_generator = RPN(cfg, {"res4": ShapeSpec(channels=1024, stride=16)}).eval() + num_images = 2 + images_tensor = torch.rand(num_images, 30, 40) + image_sizes = [(32, 32), (30, 40)] + images = ImageList(images_tensor, image_sizes) + features = {"res4": torch.rand(num_images, 1024, 1, 2)} + + fields = {"proposal_boxes": Boxes, "objectness_logits": torch.Tensor} + proposal_generator_ts = scripting_with_instances(proposal_generator, fields) + + proposals, _ = proposal_generator(images, features) + proposals_ts, _ = proposal_generator_ts(images, features) + + for proposal, proposal_ts in zip(proposals, proposals_ts): + self.assertEqual(proposal.image_size, proposal_ts.image_size) + self.assertTrue( + torch.equal(proposal.proposal_boxes.tensor, proposal_ts.proposal_boxes.tensor) + ) + self.assertTrue(torch.equal(proposal.objectness_logits, proposal_ts.objectness_logits)) + + def test_rrpn(self): + torch.manual_seed(121) + cfg = get_cfg() + cfg.MODEL.PROPOSAL_GENERATOR.NAME = "RRPN" + cfg.MODEL.ANCHOR_GENERATOR.NAME = "RotatedAnchorGenerator" + cfg.MODEL.ANCHOR_GENERATOR.SIZES = [[32, 64]] + cfg.MODEL.ANCHOR_GENERATOR.ASPECT_RATIOS = [[0.25, 1]] + cfg.MODEL.ANCHOR_GENERATOR.ANGLES = [[0, 60]] + cfg.MODEL.RPN.BBOX_REG_WEIGHTS = (1, 1, 1, 1, 1) + cfg.MODEL.RPN.HEAD_NAME = "StandardRPNHead" + backbone = build_backbone(cfg) + proposal_generator = build_proposal_generator(cfg, backbone.output_shape()) + num_images = 2 + images_tensor = torch.rand(num_images, 20, 30) + image_sizes = [(10, 10), (20, 30)] + images = ImageList(images_tensor, image_sizes) + image_shape = (15, 15) + num_channels = 1024 + features = {"res4": torch.rand(num_images, num_channels, 1, 2)} + gt_boxes = torch.tensor([[2, 2, 2, 2, 0], [4, 4, 4, 4, 0]], dtype=torch.float32) + gt_instances = Instances(image_shape) + gt_instances.gt_boxes = RotatedBoxes(gt_boxes) + with EventStorage(): # capture events in a new storage to discard them + proposals, proposal_losses = proposal_generator( + images, features, [gt_instances[0], gt_instances[1]] + ) + + expected_losses = { + "loss_rpn_cls": torch.tensor(0.04291602224), + "loss_rpn_loc": torch.tensor(0.145077362), + } + for name in expected_losses.keys(): + err_msg = "proposal_losses[{}] = {}, expected losses = {}".format( + name, proposal_losses[name], expected_losses[name] + ) + self.assertTrue(torch.allclose(proposal_losses[name], expected_losses[name]), err_msg) + + expected_proposal_box = torch.tensor( + [ + [-1.77999556, 0.78155339, 68.04367828, 14.78156471, 60.59333801], + [13.82740974, -1.50282836, 34.67269897, 29.19676590, -3.81942749], + [8.10392570, -0.99071521, 145.39100647, 32.13126373, 3.67242432], + [5.00000000, 4.57370186, 10.00000000, 9.14740372, 0.89196777], + ] + ) + + expected_objectness_logit = torch.tensor([0.10924313, 0.09881870, 0.07649877, 0.05858029]) + + torch.set_printoptions(precision=8, sci_mode=False) + + self.assertEqual(len(proposals), len(image_sizes)) + + proposal = proposals[0] + # It seems that there's some randomness in the result across different machines: + # This test can be run on a local machine for 100 times with exactly the same result, + # However, a different machine might produce slightly different results, + # thus the atol here. + err_msg = "computed proposal boxes = {}, expected {}".format( + proposal.proposal_boxes.tensor, expected_proposal_box + ) + self.assertTrue( + torch.allclose(proposal.proposal_boxes.tensor[:4], expected_proposal_box, atol=1e-5), + err_msg, + ) + + err_msg = "computed objectness logits = {}, expected {}".format( + proposal.objectness_logits, expected_objectness_logit + ) + self.assertTrue( + torch.allclose(proposal.objectness_logits[:4], expected_objectness_logit, atol=1e-5), + err_msg, + ) + + def test_find_rpn_proposals_inf(self): + N, Hi, Wi, A = 3, 3, 3, 3 + proposals = [torch.rand(N, Hi * Wi * A, 4)] + pred_logits = [torch.rand(N, Hi * Wi * A)] + pred_logits[0][1][3:5].fill_(float("inf")) + find_top_rpn_proposals(proposals, pred_logits, [(10, 10)], 0.5, 1000, 1000, 0, False) + + def test_find_rpn_proposals_tracing(self): + N, Hi, Wi, A = 3, 50, 50, 9 + proposal = torch.rand(N, Hi * Wi * A, 4) + pred_logit = torch.rand(N, Hi * Wi * A) + + def func(proposal, logit, image_size): + r = find_top_rpn_proposals( + [proposal], [logit], [image_size], 0.7, 1000, 1000, 0, False + )[0] + size = r.image_size + if not isinstance(size, torch.Tensor): + size = torch.tensor(size) + return (size, r.proposal_boxes.tensor, r.objectness_logits) + + other_inputs = [] + # test that it generalizes to other shapes + for Hi, Wi, shp in [(30, 30, 60), (10, 10, 800)]: + other_inputs.append( + ( + torch.rand(N, Hi * Wi * A, 4), + torch.rand(N, Hi * Wi * A), + torch.tensor([shp, shp]), + ) + ) + torch.jit.trace( + func, (proposal, pred_logit, torch.tensor([100, 100])), check_inputs=other_inputs + ) + + def test_append_gt_to_proposal(self): + proposals = Instances( + (10, 10), + **{ + "proposal_boxes": Boxes(torch.empty((0, 4))), + "objectness_logits": torch.tensor([]), + "custom_attribute": torch.tensor([]), + } + ) + gt_boxes = Boxes(torch.tensor([[0, 0, 1, 1]])) + + self.assertRaises(AssertionError, add_ground_truth_to_proposals, [gt_boxes], [proposals]) + + gt_instances = Instances((10, 10)) + gt_instances.gt_boxes = gt_boxes + + self.assertRaises( + AssertionError, add_ground_truth_to_proposals, [gt_instances], [proposals] + ) + + gt_instances.custom_attribute = torch.tensor([1]) + gt_instances.custom_attribute2 = torch.tensor([1]) + new_proposals = add_ground_truth_to_proposals([gt_instances], [proposals])[0] + + self.assertEqual(new_proposals.custom_attribute[0], 1) + # new proposals should only include the attributes in proposals + self.assertRaises(AttributeError, lambda: new_proposals.custom_attribute2) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/structures/__init__.py b/detectron2/tests/structures/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/tests/structures/test_boxes.py b/detectron2/tests/structures/test_boxes.py new file mode 100755 index 0000000..1011918 --- /dev/null +++ b/detectron2/tests/structures/test_boxes.py @@ -0,0 +1,223 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import json +import math +import numpy as np +import unittest +import torch + +from detectron2.structures import Boxes, BoxMode, pairwise_ioa, pairwise_iou +from detectron2.utils.testing import reload_script_model + + +class TestBoxMode(unittest.TestCase): + def _convert_xy_to_wh(self, x): + return BoxMode.convert(x, BoxMode.XYXY_ABS, BoxMode.XYWH_ABS) + + def _convert_xywha_to_xyxy(self, x): + return BoxMode.convert(x, BoxMode.XYWHA_ABS, BoxMode.XYXY_ABS) + + def _convert_xywh_to_xywha(self, x): + return BoxMode.convert(x, BoxMode.XYWH_ABS, BoxMode.XYWHA_ABS) + + def test_convert_int_mode(self): + BoxMode.convert([1, 2, 3, 4], 0, 1) + + def test_box_convert_list(self): + for tp in [list, tuple]: + box = tp([5.0, 5.0, 10.0, 10.0]) + output = self._convert_xy_to_wh(box) + self.assertIsInstance(output, tp) + self.assertIsInstance(output[0], float) + self.assertEqual(output, tp([5.0, 5.0, 5.0, 5.0])) + + with self.assertRaises(Exception): + self._convert_xy_to_wh([box]) + + def test_box_convert_array(self): + box = np.asarray([[5, 5, 10, 10], [1, 1, 2, 3]]) + output = self._convert_xy_to_wh(box) + self.assertEqual(output.dtype, box.dtype) + self.assertEqual(output.shape, box.shape) + self.assertTrue((output[0] == [5, 5, 5, 5]).all()) + self.assertTrue((output[1] == [1, 1, 1, 2]).all()) + + def test_box_convert_cpu_tensor(self): + box = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]) + output = self._convert_xy_to_wh(box) + self.assertEqual(output.dtype, box.dtype) + self.assertEqual(output.shape, box.shape) + output = output.numpy() + self.assertTrue((output[0] == [5, 5, 5, 5]).all()) + self.assertTrue((output[1] == [1, 1, 1, 2]).all()) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_box_convert_cuda_tensor(self): + box = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]).cuda() + output = self._convert_xy_to_wh(box) + self.assertEqual(output.dtype, box.dtype) + self.assertEqual(output.shape, box.shape) + self.assertEqual(output.device, box.device) + output = output.cpu().numpy() + self.assertTrue((output[0] == [5, 5, 5, 5]).all()) + self.assertTrue((output[1] == [1, 1, 1, 2]).all()) + + def test_box_convert_xywha_to_xyxy_list(self): + for tp in [list, tuple]: + box = tp([50, 50, 30, 20, 0]) + output = self._convert_xywha_to_xyxy(box) + self.assertIsInstance(output, tp) + self.assertEqual(output, tp([35, 40, 65, 60])) + + with self.assertRaises(Exception): + self._convert_xywha_to_xyxy([box]) + + def test_box_convert_xywha_to_xyxy_array(self): + for dtype in [np.float64, np.float32]: + box = np.asarray( + [ + [50, 50, 30, 20, 0], + [50, 50, 30, 20, 90], + [1, 1, math.sqrt(2), math.sqrt(2), -45], + ], + dtype=dtype, + ) + output = self._convert_xywha_to_xyxy(box) + self.assertEqual(output.dtype, box.dtype) + expected = np.asarray([[35, 40, 65, 60], [40, 35, 60, 65], [0, 0, 2, 2]], dtype=dtype) + self.assertTrue(np.allclose(output, expected, atol=1e-6), "output={}".format(output)) + + def test_box_convert_xywha_to_xyxy_tensor(self): + for dtype in [torch.float32, torch.float64]: + box = torch.tensor( + [ + [50, 50, 30, 20, 0], + [50, 50, 30, 20, 90], + [1, 1, math.sqrt(2), math.sqrt(2), -45], + ], + dtype=dtype, + ) + output = self._convert_xywha_to_xyxy(box) + self.assertEqual(output.dtype, box.dtype) + expected = torch.tensor([[35, 40, 65, 60], [40, 35, 60, 65], [0, 0, 2, 2]], dtype=dtype) + + self.assertTrue(torch.allclose(output, expected, atol=1e-6), "output={}".format(output)) + + def test_box_convert_xywh_to_xywha_list(self): + for tp in [list, tuple]: + box = tp([50, 50, 30, 20]) + output = self._convert_xywh_to_xywha(box) + self.assertIsInstance(output, tp) + self.assertEqual(output, tp([65, 60, 30, 20, 0])) + + with self.assertRaises(Exception): + self._convert_xywh_to_xywha([box]) + + def test_box_convert_xywh_to_xywha_array(self): + for dtype in [np.float64, np.float32]: + box = np.asarray([[30, 40, 70, 60], [30, 40, 60, 70], [-1, -1, 2, 2]], dtype=dtype) + output = self._convert_xywh_to_xywha(box) + self.assertEqual(output.dtype, box.dtype) + expected = np.asarray( + [[65, 70, 70, 60, 0], [60, 75, 60, 70, 0], [0, 0, 2, 2, 0]], dtype=dtype + ) + self.assertTrue(np.allclose(output, expected, atol=1e-6), "output={}".format(output)) + + def test_box_convert_xywh_to_xywha_tensor(self): + for dtype in [torch.float32, torch.float64]: + box = torch.tensor([[30, 40, 70, 60], [30, 40, 60, 70], [-1, -1, 2, 2]], dtype=dtype) + output = self._convert_xywh_to_xywha(box) + self.assertEqual(output.dtype, box.dtype) + expected = torch.tensor( + [[65, 70, 70, 60, 0], [60, 75, 60, 70, 0], [0, 0, 2, 2, 0]], dtype=dtype + ) + + self.assertTrue(torch.allclose(output, expected, atol=1e-6), "output={}".format(output)) + + def test_json_serializable(self): + payload = {"box_mode": BoxMode.XYWH_REL} + try: + json.dumps(payload) + except Exception: + self.fail("JSON serialization failed") + + def test_json_deserializable(self): + payload = '{"box_mode": 2}' + obj = json.loads(payload) + try: + obj["box_mode"] = BoxMode(obj["box_mode"]) + except Exception: + self.fail("JSON deserialization failed") + + +class TestBoxIOU(unittest.TestCase): + def create_boxes(self): + boxes1 = torch.tensor([[0.0, 0.0, 1.0, 1.0], [0.0, 0.0, 1.0, 1.0]]) + + boxes2 = torch.tensor( + [ + [0.0, 0.0, 1.0, 1.0], + [0.0, 0.0, 0.5, 1.0], + [0.0, 0.0, 1.0, 0.5], + [0.0, 0.0, 0.5, 0.5], + [0.5, 0.5, 1.0, 1.0], + [0.5, 0.5, 1.5, 1.5], + ] + ) + return boxes1, boxes2 + + def test_pairwise_iou(self): + boxes1, boxes2 = self.create_boxes() + expected_ious = torch.tensor( + [ + [1.0, 0.5, 0.5, 0.25, 0.25, 0.25 / (2 - 0.25)], + [1.0, 0.5, 0.5, 0.25, 0.25, 0.25 / (2 - 0.25)], + ] + ) + + ious = pairwise_iou(Boxes(boxes1), Boxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_ioa(self): + boxes1, boxes2 = self.create_boxes() + expected_ioas = torch.tensor( + [[1.0, 1.0, 1.0, 1.0, 1.0, 0.25], [1.0, 1.0, 1.0, 1.0, 1.0, 0.25]] + ) + ioas = pairwise_ioa(Boxes(boxes1), Boxes(boxes2)) + self.assertTrue(torch.allclose(ioas, expected_ioas)) + + +class TestBoxes(unittest.TestCase): + def test_empty_cat(self): + x = Boxes.cat([]) + self.assertTrue(x.tensor.shape, (0, 4)) + + def test_to(self): + x = Boxes(torch.rand(3, 4)) + self.assertEqual(x.to(device="cpu").tensor.device.type, "cpu") + + def test_scriptability(self): + def func(x): + boxes = Boxes(x) + test = boxes.to(torch.device("cpu")).tensor + return boxes.area(), test + + f = torch.jit.script(func) + f = reload_script_model(f) + f(torch.rand((3, 4))) + + data = torch.rand((3, 4)) + + def func_cat(x: torch.Tensor): + boxes1 = Boxes(x) + boxes2 = Boxes(x) + # boxes3 = Boxes.cat([boxes1, boxes2]) # this is not supported by torchsript for now. + boxes3 = boxes1.cat([boxes1, boxes2]) + return boxes3 + + f = torch.jit.script(func_cat) + script_box = f(data) + self.assertTrue(torch.equal(torch.cat([data, data]), script_box.tensor)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/structures/test_imagelist.py b/detectron2/tests/structures/test_imagelist.py new file mode 100755 index 0000000..e446e44 --- /dev/null +++ b/detectron2/tests/structures/test_imagelist.py @@ -0,0 +1,75 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import unittest +from typing import List, Sequence, Tuple +import torch + +from detectron2.structures import ImageList + + +class TestImageList(unittest.TestCase): + def test_imagelist_padding_tracing(self): + # test that the trace does not contain hard-coded constant sizes + def to_imagelist(tensors: Sequence[torch.Tensor]): + image_list = ImageList.from_tensors(tensors, 4) + return image_list.tensor, image_list.image_sizes + + def _tensor(*shape): + return torch.ones(shape, dtype=torch.float32) + + # test CHW (inputs needs padding vs. no padding) + for shape in [(3, 10, 10), (3, 12, 12)]: + func = torch.jit.trace(to_imagelist, ([_tensor(*shape)],)) + tensor, image_sizes = func([_tensor(3, 15, 20)]) + self.assertEqual(tensor.shape, (1, 3, 16, 20), tensor.shape) + self.assertEqual(image_sizes[0].tolist(), [15, 20], image_sizes[0]) + + # test HW + func = torch.jit.trace(to_imagelist, ([_tensor(10, 10)],)) + tensor, image_sizes = func([_tensor(15, 20)]) + self.assertEqual(tensor.shape, (1, 16, 20), tensor.shape) + self.assertEqual(image_sizes[0].tolist(), [15, 20], image_sizes[0]) + + # test 2x CHW + func = torch.jit.trace( + to_imagelist, + ([_tensor(3, 16, 10), _tensor(3, 13, 11)],), + ) + tensor, image_sizes = func([_tensor(3, 25, 20), _tensor(3, 10, 10)]) + self.assertEqual(tensor.shape, (2, 3, 28, 20), tensor.shape) + self.assertEqual(image_sizes[0].tolist(), [25, 20], image_sizes[0]) + self.assertEqual(image_sizes[1].tolist(), [10, 10], image_sizes[1]) + # support calling with different spatial sizes, but not with different #images + + def test_imagelist_scriptability(self): + image_nums = 2 + image_tensor = torch.randn((image_nums, 10, 20), dtype=torch.float32) + image_shape = [(10, 20)] * image_nums + + def f(image_tensor, image_shape: List[Tuple[int, int]]): + return ImageList(image_tensor, image_shape) + + ret = f(image_tensor, image_shape) + ret_script = torch.jit.script(f)(image_tensor, image_shape) + + self.assertEqual(len(ret), len(ret_script)) + for i in range(image_nums): + self.assertTrue(torch.equal(ret[i], ret_script[i])) + + def test_imagelist_from_tensors_scriptability(self): + image_tensor_0 = torch.randn(10, 20, dtype=torch.float32) + image_tensor_1 = torch.randn(12, 22, dtype=torch.float32) + inputs = [image_tensor_0, image_tensor_1] + + def f(image_tensor: List[torch.Tensor]): + return ImageList.from_tensors(image_tensor, 10) + + ret = f(inputs) + ret_script = torch.jit.script(f)(inputs) + + self.assertEqual(len(ret), len(ret_script)) + self.assertTrue(torch.equal(ret.tensor, ret_script.tensor)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/structures/test_instances.py b/detectron2/tests/structures/test_instances.py new file mode 100755 index 0000000..a352f74 --- /dev/null +++ b/detectron2/tests/structures/test_instances.py @@ -0,0 +1,219 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest +import torch +from torch import Tensor + +from detectron2.export.torchscript import patch_instances +from detectron2.structures import Boxes, Instances +from detectron2.utils.testing import convert_scripted_instances + + +class TestInstances(unittest.TestCase): + def test_int_indexing(self): + attr1 = torch.tensor([[0.0, 0.0, 1.0], [0.0, 0.0, 0.5], [0.0, 0.0, 1.0], [0.0, 0.5, 0.5]]) + attr2 = torch.tensor([0.1, 0.2, 0.3, 0.4]) + instances = Instances((100, 100)) + instances.attr1 = attr1 + instances.attr2 = attr2 + for i in range(-len(instances), len(instances)): + inst = instances[i] + self.assertEqual((inst.attr1 == attr1[i]).all(), True) + self.assertEqual((inst.attr2 == attr2[i]).all(), True) + + self.assertRaises(IndexError, lambda: instances[len(instances)]) + self.assertRaises(IndexError, lambda: instances[-len(instances) - 1]) + + def test_script_new_fields(self): + def get_mask(x: Instances) -> torch.Tensor: + return x.mask + + class f(torch.nn.Module): + def forward(self, x: Instances): + proposal_boxes = x.proposal_boxes # noqa F841 + objectness_logits = x.objectness_logits # noqa F841 + return x + + class g(torch.nn.Module): + def forward(self, x: Instances): + return get_mask(x) + + class g2(torch.nn.Module): + def __init__(self): + super().__init__() + self.g = g() + + def forward(self, x: Instances): + proposal_boxes = x.proposal_boxes # noqa F841 + return x, self.g(x) + + fields = {"proposal_boxes": Boxes, "objectness_logits": Tensor} + with patch_instances(fields): + torch.jit.script(f()) + + # can't script anymore after exiting the context + with self.assertRaises(Exception): + # will create a ConcreteType for g + torch.jit.script(g2()) + + new_fields = {"mask": Tensor} + with patch_instances(new_fields): + # will compile g with a different Instances; this should pass + torch.jit.script(g()) + with self.assertRaises(Exception): + torch.jit.script(g2()) + + new_fields = {"mask": Tensor, "proposal_boxes": Boxes} + with patch_instances(new_fields) as NewInstances: + # get_mask will be compiled with a different Instances; this should pass + scripted_g2 = torch.jit.script(g2()) + x = NewInstances((3, 4)) + x.mask = torch.rand(3) + x.proposal_boxes = Boxes(torch.rand(3, 4)) + scripted_g2(x) # it should accept the new Instances object and run successfully + + def test_script_access_fields(self): + class f(torch.nn.Module): + def forward(self, x: Instances): + proposal_boxes = x.proposal_boxes + objectness_logits = x.objectness_logits + return proposal_boxes.tensor + objectness_logits + + fields = {"proposal_boxes": Boxes, "objectness_logits": Tensor} + with patch_instances(fields): + torch.jit.script(f()) + + def test_script_len(self): + class f(torch.nn.Module): + def forward(self, x: Instances): + return len(x) + + class g(torch.nn.Module): + def forward(self, x: Instances): + return len(x) + + image_shape = (15, 15) + + fields = {"proposal_boxes": Boxes} + with patch_instances(fields) as new_instance: + script_module = torch.jit.script(f()) + x = new_instance(image_shape) + with self.assertRaises(Exception): + script_module(x) + box_tensors = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]) + x.proposal_boxes = Boxes(box_tensors) + length = script_module(x) + self.assertEqual(length, 2) + + fields = {"objectness_logits": Tensor} + with patch_instances(fields) as new_instance: + script_module = torch.jit.script(g()) + x = new_instance(image_shape) + objectness_logits = torch.tensor([1.0]).reshape(1, 1) + x.objectness_logits = objectness_logits + length = script_module(x) + self.assertEqual(length, 1) + + def test_script_has(self): + class f(torch.nn.Module): + def forward(self, x: Instances): + return x.has("proposal_boxes") + + image_shape = (15, 15) + fields = {"proposal_boxes": Boxes} + with patch_instances(fields) as new_instance: + script_module = torch.jit.script(f()) + x = new_instance(image_shape) + self.assertFalse(script_module(x)) + + box_tensors = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]) + x.proposal_boxes = Boxes(box_tensors) + self.assertTrue(script_module(x)) + + def test_script_to(self): + class f(torch.nn.Module): + def forward(self, x: Instances): + return x.to(torch.device("cpu")) + + image_shape = (15, 15) + fields = {"proposal_boxes": Boxes, "a": Tensor} + with patch_instances(fields) as new_instance: + script_module = torch.jit.script(f()) + x = new_instance(image_shape) + script_module(x) + + box_tensors = torch.tensor([[5, 5, 10, 10], [1, 1, 2, 3]]) + x.proposal_boxes = Boxes(box_tensors) + x.a = box_tensors + script_module(x) + + def test_script_getitem(self): + class f(torch.nn.Module): + def forward(self, x: Instances, idx): + return x[idx] + + image_shape = (15, 15) + fields = {"proposal_boxes": Boxes, "a": Tensor} + inst = Instances(image_shape) + inst.proposal_boxes = Boxes(torch.rand(4, 4)) + inst.a = torch.rand(4, 10) + idx = torch.tensor([True, False, True, False]) + with patch_instances(fields) as new_instance: + script_module = torch.jit.script(f()) + + out = f()(inst, idx) + out_scripted = script_module(new_instance.from_instances(inst), idx) + self.assertTrue( + torch.equal(out.proposal_boxes.tensor, out_scripted.proposal_boxes.tensor) + ) + self.assertTrue(torch.equal(out.a, out_scripted.a)) + + def test_from_to_instances(self): + orig = Instances((30, 30)) + orig.proposal_boxes = Boxes(torch.rand(3, 4)) + + fields = {"proposal_boxes": Boxes, "a": Tensor} + with patch_instances(fields) as NewInstances: + # convert to NewInstances and back + new1 = NewInstances.from_instances(orig) + new2 = convert_scripted_instances(new1) + self.assertTrue(torch.equal(orig.proposal_boxes.tensor, new1.proposal_boxes.tensor)) + self.assertTrue(torch.equal(orig.proposal_boxes.tensor, new2.proposal_boxes.tensor)) + + def test_script_init_args(self): + def f(x: Tensor): + image_shape = (15, 15) + # __init__ can take arguments + inst = Instances(image_shape, a=x, proposal_boxes=Boxes(x)) + inst2 = Instances(image_shape, a=x) + return inst.a, inst2.a + + fields = {"proposal_boxes": Boxes, "a": Tensor} + with patch_instances(fields): + script_f = torch.jit.script(f) + x = torch.randn(3, 4) + outputs = script_f(x) + self.assertTrue(torch.equal(outputs[0], x)) + self.assertTrue(torch.equal(outputs[1], x)) + + def test_script_cat(self): + def f(x: Tensor): + image_shape = (15, 15) + # __init__ can take arguments + inst = Instances(image_shape, a=x) + inst2 = Instances(image_shape, a=x) + + inst3 = Instances(image_shape, proposal_boxes=Boxes(x)) + return inst.cat([inst, inst2]), inst3.cat([inst3, inst3]) + + fields = {"proposal_boxes": Boxes, "a": Tensor} + with patch_instances(fields): + script_f = torch.jit.script(f) + x = torch.randn(3, 4) + output, output2 = script_f(x) + self.assertTrue(torch.equal(output.a, torch.cat([x, x]))) + self.assertFalse(output.has("proposal_boxes")) + self.assertTrue(torch.equal(output2.proposal_boxes.tensor, torch.cat([x, x]))) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/structures/test_keypoints.py b/detectron2/tests/structures/test_keypoints.py new file mode 100755 index 0000000..adc616e --- /dev/null +++ b/detectron2/tests/structures/test_keypoints.py @@ -0,0 +1,19 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest +import torch + +from detectron2.structures.keypoints import Keypoints + + +class TestKeypoints(unittest.TestCase): + def test_cat_keypoints(self): + keypoints1 = Keypoints(torch.rand(2, 21, 3)) + keypoints2 = Keypoints(torch.rand(4, 21, 3)) + + cat_keypoints = keypoints1.cat([keypoints1, keypoints2]) + self.assertTrue(torch.all(cat_keypoints.tensor[:2] == keypoints1.tensor).item()) + self.assertTrue(torch.all(cat_keypoints.tensor[2:] == keypoints2.tensor).item()) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/structures/test_masks.py b/detectron2/tests/structures/test_masks.py new file mode 100755 index 0000000..7991eb0 --- /dev/null +++ b/detectron2/tests/structures/test_masks.py @@ -0,0 +1,53 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest +import torch + +from detectron2.structures.masks import BitMasks, PolygonMasks, polygons_to_bitmask + + +class TestBitMask(unittest.TestCase): + def test_get_bounding_box(self): + masks = torch.tensor( + [ + [ + [False, False, False, True], + [False, False, True, True], + [False, True, True, False], + [False, True, True, False], + ], + [ + [False, False, False, False], + [False, False, True, False], + [False, True, True, False], + [False, True, True, False], + ], + torch.zeros(4, 4), + ] + ) + bitmask = BitMasks(masks) + box_true = torch.tensor([[1, 0, 4, 4], [1, 1, 3, 4], [0, 0, 0, 0]], dtype=torch.float32) + box = bitmask.get_bounding_boxes() + self.assertTrue(torch.all(box.tensor == box_true).item()) + + for box in box_true: + poly = box[[0, 1, 2, 1, 2, 3, 0, 3]].numpy() + mask = polygons_to_bitmask([poly], 4, 4) + reconstruct_box = BitMasks(mask[None, :, :]).get_bounding_boxes()[0].tensor + self.assertTrue(torch.all(box == reconstruct_box).item()) + + reconstruct_box = PolygonMasks([[poly]]).get_bounding_boxes()[0].tensor + self.assertTrue(torch.all(box == reconstruct_box).item()) + + def test_from_empty_polygons(self): + masks = BitMasks.from_polygon_masks([], 100, 100) + self.assertEqual(masks.tensor.shape, (0, 100, 100)) + + def test_getitem(self): + masks = BitMasks(torch.ones(3, 10, 10)) + self.assertEqual(masks[1].tensor.shape, (1, 10, 10)) + self.assertEqual(masks[1:3].tensor.shape, (2, 10, 10)) + self.assertEqual(masks[torch.tensor([True, False, False])].tensor.shape, (1, 10, 10)) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/structures/test_rotated_boxes.py b/detectron2/tests/structures/test_rotated_boxes.py new file mode 100755 index 0000000..478f034 --- /dev/null +++ b/detectron2/tests/structures/test_rotated_boxes.py @@ -0,0 +1,441 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +from __future__ import absolute_import, division, print_function, unicode_literals +import logging +import math +import random +import unittest +import torch +from fvcore.common.benchmark import benchmark + +from detectron2.layers.rotated_boxes import pairwise_iou_rotated +from detectron2.structures.boxes import Boxes +from detectron2.structures.rotated_boxes import RotatedBoxes, pairwise_iou +from detectron2.utils.testing import reload_script_model + +logger = logging.getLogger(__name__) + + +class TestRotatedBoxesLayer(unittest.TestCase): + def test_iou_0_dim_cpu(self): + boxes1 = torch.rand(0, 5, dtype=torch.float32) + boxes2 = torch.rand(10, 5, dtype=torch.float32) + expected_ious = torch.zeros(0, 10, dtype=torch.float32) + ious = pairwise_iou_rotated(boxes1, boxes2) + self.assertTrue(torch.allclose(ious, expected_ious)) + + boxes1 = torch.rand(10, 5, dtype=torch.float32) + boxes2 = torch.rand(0, 5, dtype=torch.float32) + expected_ious = torch.zeros(10, 0, dtype=torch.float32) + ious = pairwise_iou_rotated(boxes1, boxes2) + self.assertTrue(torch.allclose(ious, expected_ious)) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_iou_0_dim_cuda(self): + boxes1 = torch.rand(0, 5, dtype=torch.float32) + boxes2 = torch.rand(10, 5, dtype=torch.float32) + expected_ious = torch.zeros(0, 10, dtype=torch.float32) + ious_cuda = pairwise_iou_rotated(boxes1.cuda(), boxes2.cuda()) + self.assertTrue(torch.allclose(ious_cuda.cpu(), expected_ious)) + + boxes1 = torch.rand(10, 5, dtype=torch.float32) + boxes2 = torch.rand(0, 5, dtype=torch.float32) + expected_ious = torch.zeros(10, 0, dtype=torch.float32) + ious_cuda = pairwise_iou_rotated(boxes1.cuda(), boxes2.cuda()) + self.assertTrue(torch.allclose(ious_cuda.cpu(), expected_ious)) + + def test_iou_half_overlap_cpu(self): + boxes1 = torch.tensor([[0.5, 0.5, 1.0, 1.0, 0.0]], dtype=torch.float32) + boxes2 = torch.tensor([[0.25, 0.5, 0.5, 1.0, 0.0]], dtype=torch.float32) + expected_ious = torch.tensor([[0.5]], dtype=torch.float32) + ious = pairwise_iou_rotated(boxes1, boxes2) + self.assertTrue(torch.allclose(ious, expected_ious)) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_iou_half_overlap_cuda(self): + boxes1 = torch.tensor([[0.5, 0.5, 1.0, 1.0, 0.0]], dtype=torch.float32) + boxes2 = torch.tensor([[0.25, 0.5, 0.5, 1.0, 0.0]], dtype=torch.float32) + expected_ious = torch.tensor([[0.5]], dtype=torch.float32) + ious_cuda = pairwise_iou_rotated(boxes1.cuda(), boxes2.cuda()) + self.assertTrue(torch.allclose(ious_cuda.cpu(), expected_ious)) + + def test_iou_precision(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor([[565, 565, 10, 10.0, 0]], dtype=torch.float32, device=device) + boxes2 = torch.tensor([[565, 565, 10, 8.3, 0]], dtype=torch.float32, device=device) + iou = 8.3 / 10.0 + expected_ious = torch.tensor([[iou]], dtype=torch.float32) + ious = pairwise_iou_rotated(boxes1, boxes2) + self.assertTrue(torch.allclose(ious.cpu(), expected_ious)) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_iou_too_many_boxes_cuda(self): + s1, s2 = 5, 1289035 + boxes1 = torch.zeros(s1, 5) + boxes2 = torch.zeros(s2, 5) + ious_cuda = pairwise_iou_rotated(boxes1.cuda(), boxes2.cuda()) + self.assertTupleEqual(tuple(ious_cuda.shape), (s1, s2)) + + def test_iou_extreme(self): + # Cause floating point issues in cuda kernels (#1266) + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor([[160.0, 153.0, 230.0, 23.0, -37.0]], device=device) + boxes2 = torch.tensor( + [ + [ + -1.117407639806935e17, + 1.3858420478349148e18, + 1000.0000610351562, + 1000.0000610351562, + 1612.0, + ] + ], + device=device, + ) + ious = pairwise_iou_rotated(boxes1, boxes2) + self.assertTrue(ious.min() >= 0, ious) + + def test_iou_issue_2154(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor( + [ + [ + 296.6620178222656, + 458.73883056640625, + 23.515729904174805, + 47.677001953125, + 0.08795166015625, + ] + ], + device=device, + ) + boxes2 = torch.tensor( + [[296.66201, 458.73882000000003, 23.51573, 47.67702, 0.087951]], + device=device, + ) + ious = pairwise_iou_rotated(boxes1, boxes2) + expected_ious = torch.tensor([[1.0]], dtype=torch.float32) + self.assertTrue(torch.allclose(ious.cpu(), expected_ious)) + + def test_iou_issue_2167(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor( + [ + [ + 2563.74462890625000000000, + 1436.79016113281250000000, + 2174.70336914062500000000, + 214.09500122070312500000, + 115.11834716796875000000, + ] + ], + device=device, + ) + boxes2 = torch.tensor( + [ + [ + 2563.74462890625000000000, + 1436.79028320312500000000, + 2174.70288085937500000000, + 214.09495544433593750000, + 115.11835479736328125000, + ] + ], + device=device, + ) + ious = pairwise_iou_rotated(boxes1, boxes2) + expected_ious = torch.tensor([[1.0]], dtype=torch.float32) + self.assertTrue(torch.allclose(ious.cpu(), expected_ious)) + + +class TestRotatedBoxesStructure(unittest.TestCase): + def test_clip_area_0_degree(self): + for _ in range(50): + num_boxes = 100 + boxes_5d = torch.zeros(num_boxes, 5) + boxes_5d[:, 0] = torch.FloatTensor(num_boxes).uniform_(-100, 500) + boxes_5d[:, 1] = torch.FloatTensor(num_boxes).uniform_(-100, 500) + boxes_5d[:, 2] = torch.FloatTensor(num_boxes).uniform_(0, 500) + boxes_5d[:, 3] = torch.FloatTensor(num_boxes).uniform_(0, 500) + # Convert from (x_ctr, y_ctr, w, h, 0) to (x1, y1, x2, y2) + boxes_4d = torch.zeros(num_boxes, 4) + boxes_4d[:, 0] = boxes_5d[:, 0] - boxes_5d[:, 2] / 2.0 + boxes_4d[:, 1] = boxes_5d[:, 1] - boxes_5d[:, 3] / 2.0 + boxes_4d[:, 2] = boxes_5d[:, 0] + boxes_5d[:, 2] / 2.0 + boxes_4d[:, 3] = boxes_5d[:, 1] + boxes_5d[:, 3] / 2.0 + + image_size = (500, 600) + test_boxes_4d = Boxes(boxes_4d) + test_boxes_5d = RotatedBoxes(boxes_5d) + # Before clip + areas_4d = test_boxes_4d.area() + areas_5d = test_boxes_5d.area() + self.assertTrue(torch.allclose(areas_4d, areas_5d, atol=1e-1, rtol=1e-5)) + # After clip + test_boxes_4d.clip(image_size) + test_boxes_5d.clip(image_size) + areas_4d = test_boxes_4d.area() + areas_5d = test_boxes_5d.area() + self.assertTrue(torch.allclose(areas_4d, areas_5d, atol=1e-1, rtol=1e-5)) + + def test_clip_area_arbitrary_angle(self): + num_boxes = 100 + boxes_5d = torch.zeros(num_boxes, 5) + boxes_5d[:, 0] = torch.FloatTensor(num_boxes).uniform_(-100, 500) + boxes_5d[:, 1] = torch.FloatTensor(num_boxes).uniform_(-100, 500) + boxes_5d[:, 2] = torch.FloatTensor(num_boxes).uniform_(0, 500) + boxes_5d[:, 3] = torch.FloatTensor(num_boxes).uniform_(0, 500) + boxes_5d[:, 4] = torch.FloatTensor(num_boxes).uniform_(-1800, 1800) + clip_angle_threshold = random.uniform(0, 180) + + image_size = (500, 600) + test_boxes_5d = RotatedBoxes(boxes_5d) + # Before clip + areas_before = test_boxes_5d.area() + # After clip + test_boxes_5d.clip(image_size, clip_angle_threshold) + areas_diff = test_boxes_5d.area() - areas_before + + # the areas should only decrease after clipping + self.assertTrue(torch.all(areas_diff <= 0)) + # whenever the box is clipped (thus the area shrinks), + # the angle for the box must be within the clip_angle_threshold + # Note that the clip function will normalize the angle range + # to be within (-180, 180] + + self.assertTrue( + torch.all( + torch.abs(test_boxes_5d.tensor[:, 4][torch.where(areas_diff < 0)]) + < clip_angle_threshold + ) + ) + + def test_normalize_angles(self): + # torch.manual_seed(0) + for _ in range(50): + num_boxes = 100 + boxes_5d = torch.zeros(num_boxes, 5) + boxes_5d[:, 0] = torch.FloatTensor(num_boxes).uniform_(-100, 500) + boxes_5d[:, 1] = torch.FloatTensor(num_boxes).uniform_(-100, 500) + boxes_5d[:, 2] = torch.FloatTensor(num_boxes).uniform_(0, 500) + boxes_5d[:, 3] = torch.FloatTensor(num_boxes).uniform_(0, 500) + boxes_5d[:, 4] = torch.FloatTensor(num_boxes).uniform_(-1800, 1800) + rotated_boxes = RotatedBoxes(boxes_5d) + normalized_boxes = rotated_boxes.clone() + normalized_boxes.normalize_angles() + self.assertTrue(torch.all(normalized_boxes.tensor[:, 4] >= -180)) + self.assertTrue(torch.all(normalized_boxes.tensor[:, 4] < 180)) + # x, y, w, h should not change + self.assertTrue(torch.allclose(boxes_5d[:, :4], normalized_boxes.tensor[:, :4])) + # the cos/sin values of the angles should stay the same + + self.assertTrue( + torch.allclose( + torch.cos(boxes_5d[:, 4] * math.pi / 180), + torch.cos(normalized_boxes.tensor[:, 4] * math.pi / 180), + atol=1e-5, + ) + ) + + self.assertTrue( + torch.allclose( + torch.sin(boxes_5d[:, 4] * math.pi / 180), + torch.sin(normalized_boxes.tensor[:, 4] * math.pi / 180), + atol=1e-5, + ) + ) + + def test_pairwise_iou_0_degree(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor( + [[0.5, 0.5, 1.0, 1.0, 0.0], [0.5, 0.5, 1.0, 1.0, 0.0]], + dtype=torch.float32, + device=device, + ) + boxes2 = torch.tensor( + [ + [0.5, 0.5, 1.0, 1.0, 0.0], + [0.25, 0.5, 0.5, 1.0, 0.0], + [0.5, 0.25, 1.0, 0.5, 0.0], + [0.25, 0.25, 0.5, 0.5, 0.0], + [0.75, 0.75, 0.5, 0.5, 0.0], + [1.0, 1.0, 1.0, 1.0, 0.0], + ], + dtype=torch.float32, + device=device, + ) + expected_ious = torch.tensor( + [ + [1.0, 0.5, 0.5, 0.25, 0.25, 0.25 / (2 - 0.25)], + [1.0, 0.5, 0.5, 0.25, 0.25, 0.25 / (2 - 0.25)], + ], + dtype=torch.float32, + device=device, + ) + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_iou_45_degrees(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor( + [ + [1, 1, math.sqrt(2), math.sqrt(2), 45], + [1, 1, 2 * math.sqrt(2), 2 * math.sqrt(2), -45], + ], + dtype=torch.float32, + device=device, + ) + boxes2 = torch.tensor([[1, 1, 2, 2, 0]], dtype=torch.float32, device=device) + expected_ious = torch.tensor([[0.5], [0.5]], dtype=torch.float32, device=device) + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_iou_orthogonal(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor([[5, 5, 10, 6, 55]], dtype=torch.float32, device=device) + boxes2 = torch.tensor([[5, 5, 10, 6, -35]], dtype=torch.float32, device=device) + iou = (6.0 * 6.0) / (6.0 * 6.0 + 4.0 * 6.0 + 4.0 * 6.0) + expected_ious = torch.tensor([[iou]], dtype=torch.float32, device=device) + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_iou_large_close_boxes(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + boxes1 = torch.tensor( + [[299.500000, 417.370422, 600.000000, 364.259186, 27.1828]], + dtype=torch.float32, + device=device, + ) + boxes2 = torch.tensor( + [[299.500000, 417.370422, 600.000000, 364.259155, 27.1828]], + dtype=torch.float32, + device=device, + ) + iou = 364.259155 / 364.259186 + expected_ious = torch.tensor([[iou]], dtype=torch.float32, device=device) + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_iou_many_boxes(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + num_boxes1 = 100 + num_boxes2 = 200 + boxes1 = torch.stack( + [ + torch.tensor( + [5 + 20 * i, 5 + 20 * i, 10, 10, 0], + dtype=torch.float32, + device=device, + ) + for i in range(num_boxes1) + ] + ) + boxes2 = torch.stack( + [ + torch.tensor( + [5 + 20 * i, 5 + 20 * i, 10, 1 + 9 * i / num_boxes2, 0], + dtype=torch.float32, + device=device, + ) + for i in range(num_boxes2) + ] + ) + expected_ious = torch.zeros(num_boxes1, num_boxes2, dtype=torch.float32, device=device) + for i in range(min(num_boxes1, num_boxes2)): + expected_ious[i][i] = (1 + 9 * i / num_boxes2) / 10.0 + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_iou_issue1207_simplified(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + # Simplified test case of D2-issue-1207 + boxes1 = torch.tensor([[3, 3, 8, 2, -45.0]], device=device) + boxes2 = torch.tensor([[6, 0, 8, 2, -45.0]], device=device) + iou = 0.0 + expected_ious = torch.tensor([[iou]], dtype=torch.float32, device=device) + + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_pairwise_iou_issue1207(self): + for device in ["cpu"] + (["cuda"] if torch.cuda.is_available() else []): + # The original test case in D2-issue-1207 + boxes1 = torch.tensor([[160.0, 153.0, 230.0, 23.0, -37.0]], device=device) + boxes2 = torch.tensor([[190.0, 127.0, 80.0, 21.0, -46.0]], device=device) + + iou = 0.0 + expected_ious = torch.tensor([[iou]], dtype=torch.float32, device=device) + + ious = pairwise_iou(RotatedBoxes(boxes1), RotatedBoxes(boxes2)) + self.assertTrue(torch.allclose(ious, expected_ious)) + + def test_empty_cat(self): + x = RotatedBoxes.cat([]) + self.assertTrue(x.tensor.shape, (0, 5)) + + def test_scriptability(self): + def func(x): + boxes = RotatedBoxes(x) + test = boxes.to(torch.device("cpu")).tensor + return boxes.area(), test + + f = torch.jit.script(func) + f = reload_script_model(f) + f(torch.rand((3, 5))) + + data = torch.rand((3, 5)) + + def func_cat(x: torch.Tensor): + boxes1 = RotatedBoxes(x) + boxes2 = RotatedBoxes(x) + # this is not supported by torchscript for now. + # boxes3 = RotatedBoxes.cat([boxes1, boxes2]) + boxes3 = boxes1.cat([boxes1, boxes2]) + return boxes3 + + f = torch.jit.script(func_cat) + script_box = f(data) + self.assertTrue(torch.equal(torch.cat([data, data]), script_box.tensor)) + + +def benchmark_rotated_iou(): + num_boxes1 = 200 + num_boxes2 = 500 + boxes1 = torch.stack( + [ + torch.tensor([5 + 20 * i, 5 + 20 * i, 10, 10, 0], dtype=torch.float32) + for i in range(num_boxes1) + ] + ) + boxes2 = torch.stack( + [ + torch.tensor( + [5 + 20 * i, 5 + 20 * i, 10, 1 + 9 * i / num_boxes2, 0], + dtype=torch.float32, + ) + for i in range(num_boxes2) + ] + ) + + def func(dev, n=1): + b1 = boxes1.to(device=dev) + b2 = boxes2.to(device=dev) + + def bench(): + for _ in range(n): + pairwise_iou_rotated(b1, b2) + if dev.type == "cuda": + torch.cuda.synchronize() + + return bench + + # only run it once per timed loop, since it's slow + args = [{"dev": torch.device("cpu"), "n": 1}] + if torch.cuda.is_available(): + args.append({"dev": torch.device("cuda"), "n": 10}) + + benchmark(func, "rotated_iou", args, warmup_iters=3) + + +if __name__ == "__main__": + unittest.main() + benchmark_rotated_iou() diff --git a/detectron2/tests/test_checkpoint.py b/detectron2/tests/test_checkpoint.py new file mode 100755 index 0000000..6c0b1c1 --- /dev/null +++ b/detectron2/tests/test_checkpoint.py @@ -0,0 +1,105 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import os +import tempfile +import unittest +from collections import OrderedDict +import torch +from iopath.common.file_io import PathHandler, PathManager +from torch import nn + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.checkpoint.c2_model_loading import ( + _longest_common_prefix_str, + align_and_update_state_dicts, +) +from detectron2.utils.logger import setup_logger + + +class TestCheckpointer(unittest.TestCase): + def setUp(self): + setup_logger() + + def create_complex_model(self): + m = nn.Module() + m.block1 = nn.Module() + m.block1.layer1 = nn.Linear(2, 3) + m.layer2 = nn.Linear(3, 2) + m.res = nn.Module() + m.res.layer2 = nn.Linear(3, 2) + + state_dict = OrderedDict() + state_dict["layer1.weight"] = torch.rand(3, 2) + state_dict["layer1.bias"] = torch.rand(3) + state_dict["layer2.weight"] = torch.rand(2, 3) + state_dict["layer2.bias"] = torch.rand(2) + state_dict["res.layer2.weight"] = torch.rand(2, 3) + state_dict["res.layer2.bias"] = torch.rand(2) + return m, state_dict + + def test_complex_model_loaded(self): + for add_data_parallel in [False, True]: + model, state_dict = self.create_complex_model() + if add_data_parallel: + model = nn.DataParallel(model) + model_sd = model.state_dict() + + sd_to_load = align_and_update_state_dicts(model_sd, state_dict) + model.load_state_dict(sd_to_load) + for loaded, stored in zip(model_sd.values(), state_dict.values()): + # different tensor references + self.assertFalse(id(loaded) == id(stored)) + # same content + self.assertTrue(loaded.to(stored).equal(stored)) + + def test_load_with_matching_heuristics(self): + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + model, state_dict = self.create_complex_model() + torch.save({"model": state_dict}, os.path.join(d, "checkpoint.pth")) + checkpointer = DetectionCheckpointer(model, save_dir=d) + + with torch.no_grad(): + # use a different weight from the `state_dict`, since torch.rand is less than 1 + model.block1.layer1.weight.fill_(1) + + # load checkpoint without matching_heuristics + checkpointer.load(os.path.join(d, "checkpoint.pth")) + self.assertTrue(model.block1.layer1.weight.equal(torch.ones(3, 2))) + + # load checkpoint with matching_heuristics + checkpointer.load(os.path.join(d, "checkpoint.pth?matching_heuristics=True")) + self.assertFalse(model.block1.layer1.weight.equal(torch.ones(3, 2))) + + def test_custom_path_manager_handler(self): + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + + class CustomPathManagerHandler(PathHandler): + PREFIX = "detectron2_test://" + + def _get_supported_prefixes(self): + return [self.PREFIX] + + def _get_local_path(self, path, **kwargs): + name = path[len(self.PREFIX) :] + return os.path.join(d, name) + + def _open(self, path, mode="r", **kwargs): + return open(self._get_local_path(path), mode, **kwargs) + + pathmgr = PathManager() + pathmgr.register_handler(CustomPathManagerHandler()) + + model, state_dict = self.create_complex_model() + torch.save({"model": state_dict}, os.path.join(d, "checkpoint.pth")) + checkpointer = DetectionCheckpointer(model, save_dir=d) + checkpointer.path_manager = pathmgr + checkpointer.load("detectron2_test://checkpoint.pth") + checkpointer.load("detectron2_test://checkpoint.pth?matching_heuristics=True") + + def test_lcp(self): + self.assertEqual(_longest_common_prefix_str(["class", "dlaps_model"]), "") + self.assertEqual(_longest_common_prefix_str(["classA", "classB"]), "class") + self.assertEqual(_longest_common_prefix_str(["classA", "classB", "clab"]), "cla") + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/test_engine.py b/detectron2/tests/test_engine.py new file mode 100755 index 0000000..53433e7 --- /dev/null +++ b/detectron2/tests/test_engine.py @@ -0,0 +1,267 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import json +import math +import os +import tempfile +import time +import unittest +from unittest import mock +import torch +from fvcore.common.checkpoint import Checkpointer +from torch import nn + +from detectron2 import model_zoo +from detectron2.config import configurable, get_cfg +from detectron2.engine import DefaultTrainer, SimpleTrainer, default_setup, hooks +from detectron2.modeling.meta_arch import META_ARCH_REGISTRY +from detectron2.utils.events import CommonMetricPrinter, JSONWriter + + +@META_ARCH_REGISTRY.register() +class _SimpleModel(nn.Module): + @configurable + def __init__(self, sleep_sec=0): + super().__init__() + self.mod = nn.Linear(10, 20) + self.sleep_sec = sleep_sec + + @classmethod + def from_config(cls, cfg): + return {} + + def forward(self, x): + if self.sleep_sec > 0: + time.sleep(self.sleep_sec) + return {"loss": x.sum() + sum([x.mean() for x in self.parameters()])} + + +class TestTrainer(unittest.TestCase): + def _data_loader(self, device): + device = torch.device(device) + while True: + yield torch.rand(3, 3).to(device) + + def test_simple_trainer(self, device="cpu"): + model = _SimpleModel().to(device=device) + trainer = SimpleTrainer( + model, self._data_loader(device), torch.optim.SGD(model.parameters(), 0.1) + ) + trainer.train(0, 10) + + def test_simple_trainer_reset_dataloader(self, device="cpu"): + model = _SimpleModel().to(device=device) + trainer = SimpleTrainer( + model, self._data_loader(device), torch.optim.SGD(model.parameters(), 0.1) + ) + trainer.train(0, 10) + trainer.reset_data_loader(lambda: self._data_loader(device)) + trainer.train(0, 10) + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def test_simple_trainer_cuda(self): + self.test_simple_trainer(device="cuda") + + def test_writer_hooks(self): + model = _SimpleModel(sleep_sec=0.1) + trainer = SimpleTrainer( + model, self._data_loader("cpu"), torch.optim.SGD(model.parameters(), 0.1) + ) + + max_iter = 50 + + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + json_file = os.path.join(d, "metrics.json") + writers = [CommonMetricPrinter(max_iter), JSONWriter(json_file)] + + trainer.register_hooks( + [hooks.EvalHook(0, lambda: {"metric": 100}), hooks.PeriodicWriter(writers)] + ) + with self.assertLogs(writers[0].logger) as logs: + trainer.train(0, max_iter) + + with open(json_file, "r") as f: + data = [json.loads(line.strip()) for line in f] + self.assertEqual([x["iteration"] for x in data], [19, 39, 49, 50]) + # the eval metric is in the last line with iter 50 + self.assertIn("metric", data[-1], "Eval metric must be in last line of JSON!") + + # test logged messages from CommonMetricPrinter + self.assertEqual(len(logs.output), 3) + for log, iter in zip(logs.output, [19, 39, 49]): + self.assertIn(f"iter: {iter}", log) + + self.assertIn("eta: 0:00:00", logs.output[-1], "Last ETA must be 0!") + + def test_metric_gather_and_write(self): + gather_metric_period = 5 + writer_period = 10 + + model = _SimpleModel(sleep_sec=0.1) + trainer = SimpleTrainer( + model, + self._data_loader("cpu"), + torch.optim.SGD(model.parameters(), 0.1), + gather_metric_period=gather_metric_period, + ) + + max_iter = 50 + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + json_file = os.path.join(d, "metrics.json") + writers = [JSONWriter(json_file, window_size=writer_period)] + + trainer.register_hooks( + [ + hooks.IterationTimer(), + hooks.PeriodicWriter(writers, period=writer_period), + ] + ) + trainer.train(0, max_iter) + + with open(json_file, "r") as f: + data = [json.loads(line.strip()) for line in f] + self.assertEqual([x["iteration"] for x in data], [9, 19, 29, 39, 49]) + self.assertEqual(len(trainer.storage.history("time").values()), 48) + for key in ["data_time", "total_loss"]: + history = trainer.storage.history(key).values() + history_iters = [h[1] for h in history] + self.assertEqual(history_iters, [4, 9, 14, 19, 24, 29, 34, 39, 44, 49]) + for i in range(len(data)): + # written metric should equal to the median of 2 most recent logged metrics + logged1, logged2 = history[2 * i][0], history[2 * i + 1][0] + gt = data[i][key] + self.assertEqual(gt, (logged1 + logged2) / 2.0) + + def test_async_write_metrics(self): + writer_period = 1 + + model = _SimpleModel(sleep_sec=0.1) + trainer = SimpleTrainer( + model, + self._data_loader("cpu"), + torch.optim.SGD(model.parameters(), 0.1), + async_write_metrics=True, + ) + + max_iter = 50 + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + json_file = os.path.join(d, "metrics.json") + writers = [JSONWriter(json_file, window_size=writer_period)] + + trainer.register_hooks( + [ + hooks.IterationTimer(), + hooks.PeriodicWriter(writers, period=writer_period), + ] + ) + trainer.train(0, max_iter) + + with open(json_file, "r") as f: + data = [json.loads(line.strip()) for line in f] + self.assertEqual([x["iteration"] for x in data], list(range(50))) + self.assertEqual(len(trainer.storage.history("time").values()), 48) + for key in ["data_time", "total_loss"]: + history = trainer.storage.history(key).values() + history_iters = [h[1] for h in history] + self.assertEqual(history_iters, list(range(50))) + + def test_default_trainer(self): + # TODO: this test requires manifold access, so changed device to CPU. see: T88318502 + cfg = get_cfg() + cfg.MODEL.DEVICE = "cpu" + cfg.MODEL.META_ARCHITECTURE = "_SimpleModel" + cfg.DATASETS.TRAIN = ("coco_2017_val_100",) + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + cfg.OUTPUT_DIR = d + trainer = DefaultTrainer(cfg) + + # test property + self.assertIs(trainer.model, trainer._trainer.model) + trainer.model = _SimpleModel() + self.assertIs(trainer.model, trainer._trainer.model) + + def test_checkpoint_resume(self): + model = _SimpleModel() + dataloader = self._data_loader("cpu") + opt = torch.optim.SGD(model.parameters(), 0.1) + scheduler = torch.optim.lr_scheduler.StepLR(opt, 3) + + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + trainer = SimpleTrainer(model, dataloader, opt) + checkpointer = Checkpointer(model, d, opt=opt, trainer=trainer) + + trainer.register_hooks( + [ + hooks.LRScheduler(scheduler=scheduler), + # checkpoint after scheduler to properly save the state of scheduler + hooks.PeriodicCheckpointer(checkpointer, 10), + ] + ) + + trainer.train(0, 12) + self.assertAlmostEqual(opt.param_groups[0]["lr"], 1e-5) + self.assertEqual(scheduler.last_epoch, 12) + del trainer + + opt = torch.optim.SGD(model.parameters(), 999) # lr will be loaded + trainer = SimpleTrainer(model, dataloader, opt) + scheduler = torch.optim.lr_scheduler.StepLR(opt, 3) + trainer.register_hooks( + [ + hooks.LRScheduler(scheduler=scheduler), + ] + ) + checkpointer = Checkpointer(model, d, opt=opt, trainer=trainer) + checkpointer.resume_or_load("non_exist.pth") + self.assertEqual(trainer.iter, 11) # last finished iter number (0-based in Trainer) + # number of times `scheduler.step()` was called (1-based) + self.assertEqual(scheduler.last_epoch, 12) + self.assertAlmostEqual(opt.param_groups[0]["lr"], 1e-5) + + def test_eval_hook(self): + model = _SimpleModel() + dataloader = self._data_loader("cpu") + opt = torch.optim.SGD(model.parameters(), 0.1) + + for total_iter, period, eval_count in [(30, 15, 2), (31, 15, 3), (20, 0, 1)]: + test_func = mock.Mock(return_value={"metric": 3.0}) + trainer = SimpleTrainer(model, dataloader, opt) + trainer.register_hooks([hooks.EvalHook(period, test_func)]) + trainer.train(0, total_iter) + self.assertEqual(test_func.call_count, eval_count) + + def test_best_checkpointer(self): + model = _SimpleModel() + dataloader = self._data_loader("cpu") + opt = torch.optim.SGD(model.parameters(), 0.1) + metric_name = "metric" + total_iter = 40 + test_period = 10 + test_cases = [ + ("max", iter([0.3, 0.4, 0.35, 0.5]), 3), + ("min", iter([1.0, 0.8, 0.9, 0.9]), 2), + ("min", iter([math.nan, 0.8, 0.9, 0.9]), 1), + ] + for mode, metrics, call_count in test_cases: + trainer = SimpleTrainer(model, dataloader, opt) + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + checkpointer = Checkpointer(model, d, opt=opt, trainer=trainer) + trainer.register_hooks( + [ + hooks.EvalHook(test_period, lambda: {metric_name: next(metrics)}), + hooks.BestCheckpointer(test_period, checkpointer, metric_name, mode=mode), + ] + ) + with mock.patch.object(checkpointer, "save") as mock_save_method: + trainer.train(0, total_iter) + self.assertEqual(mock_save_method.call_count, call_count) + + def test_setup_config(self): + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + cfg = get_cfg() + cfg.OUTPUT_DIR = os.path.join(d, "yacs") + default_setup(cfg, {}) + + cfg = model_zoo.get_config("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.py") + cfg.train.output_dir = os.path.join(d, "omegaconf") + default_setup(cfg, {}) diff --git a/detectron2/tests/test_events.py b/detectron2/tests/test_events.py new file mode 100755 index 0000000..70882a0 --- /dev/null +++ b/detectron2/tests/test_events.py @@ -0,0 +1,109 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import json +import os +import tempfile +import unittest + +from detectron2.utils.events import CommonMetricPrinter, EventStorage, JSONWriter + + +class TestEventWriter(unittest.TestCase): + def testScalar(self): + with tempfile.TemporaryDirectory( + prefix="detectron2_tests" + ) as dir, EventStorage() as storage: + json_file = os.path.join(dir, "test.json") + writer = JSONWriter(json_file) + for k in range(60): + storage.put_scalar("key", k, smoothing_hint=False) + if (k + 1) % 20 == 0: + writer.write() + storage.step() + writer.close() + with open(json_file) as f: + data = [json.loads(l) for l in f] + self.assertTrue([int(k["key"]) for k in data] == [19, 39, 59]) + + def testScalarMismatchedPeriod(self): + with tempfile.TemporaryDirectory( + prefix="detectron2_tests" + ) as dir, EventStorage() as storage: + json_file = os.path.join(dir, "test.json") + + writer = JSONWriter(json_file) + for k in range(60): + if k % 17 == 0: # write in a differnt period + storage.put_scalar("key2", k, smoothing_hint=False) + storage.put_scalar("key", k, smoothing_hint=False) + if (k + 1) % 20 == 0: + writer.write() + storage.step() + writer.close() + with open(json_file) as f: + data = [json.loads(l) for l in f] + self.assertTrue([int(k.get("key2", 0)) for k in data] == [17, 0, 34, 0, 51, 0]) + self.assertTrue([int(k.get("key", 0)) for k in data] == [0, 19, 0, 39, 0, 59]) + self.assertTrue([int(k["iteration"]) for k in data] == [17, 19, 34, 39, 51, 59]) + + def testPrintETA(self): + with EventStorage() as s: + p1 = CommonMetricPrinter(10) + p2 = CommonMetricPrinter() + + s.put_scalar("time", 1.0) + s.step() + s.put_scalar("time", 1.0) + s.step() + + with self.assertLogs("detectron2.utils.events") as logs: + p1.write() + self.assertIn("eta", logs.output[0]) + + with self.assertLogs("detectron2.utils.events") as logs: + p2.write() + self.assertNotIn("eta", logs.output[0]) + + def testPrintNonLosses(self): + with EventStorage() as s: + p1 = CommonMetricPrinter(10) + p2 = CommonMetricPrinter() + + s.put_scalar("time", 1.0) + s.put_scalar("[metric]bn_stat", 1.0) + s.step() + s.put_scalar("time", 1.0) + s.put_scalar("[metric]bn_stat", 1.0) + s.step() + + with self.assertLogs("detectron2.utils.events") as logs: + p1.write() + self.assertIn("[metric]bn_stat", logs.output[0]) + + with self.assertLogs("detectron2.utils.events") as logs: + p2.write() + self.assertIn("[metric]bn_stat", logs.output[0]) + + def testSmoothingWithWindowSize(self): + with tempfile.TemporaryDirectory( + prefix="detectron2_tests" + ) as dir, EventStorage() as storage: + json_file = os.path.join(dir, "test.json") + writer = JSONWriter(json_file, window_size=10) + for k in range(20): + storage.put_scalar("key1", k, smoothing_hint=True) + if (k + 1) % 2 == 0: + storage.put_scalar("key2", k, smoothing_hint=True) + if (k + 1) % 5 == 0: + storage.put_scalar("key3", k, smoothing_hint=True) + if (k + 1) % 10 == 0: + writer.write() + storage.step() + + num_samples = {k: storage.count_samples(k, 10) for k in ["key1", "key2", "key3"]} + self.assertEqual(num_samples, {"key1": 10, "key2": 5, "key3": 2}) + writer.close() + with open(json_file) as f: + data = [json.loads(l) for l in f] + self.assertEqual([k["key1"] for k in data], [4.5, 14.5]) + self.assertEqual([k["key2"] for k in data], [5, 15]) + self.assertEqual([k["key3"] for k in data], [6.5, 16.5]) diff --git a/detectron2/tests/test_export_caffe2.py b/detectron2/tests/test_export_caffe2.py new file mode 100755 index 0000000..58e9f68 --- /dev/null +++ b/detectron2/tests/test_export_caffe2.py @@ -0,0 +1,62 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# -*- coding: utf-8 -*- + +import copy +import os +import tempfile +import unittest +import torch +from torch.hub import _check_module_exists + +from detectron2 import model_zoo +from detectron2.utils.logger import setup_logger +from detectron2.utils.testing import get_sample_coco_image + +try: + # Caffe2 used to be included in PyTorch, but since PyTorch 1.10+, + # Caffe2 is not included in pre-built packages. This is a safety BC check + from detectron2.export import Caffe2Model, Caffe2Tracer +except ImportError: + raise unittest.SkipTest( + f"PyTorch does not have Caffe2 support. Skipping all tests in {__name__}" + ) from None + + +# TODO: this test requires manifold access, see: T88318502 +# Running it on CircleCI causes crash, not sure why. +@unittest.skipIf(os.environ.get("CIRCLECI"), "Caffe2 tests crash on CircleCI.") +@unittest.skipIf(not _check_module_exists("onnx"), "ONNX not installed.") +class TestCaffe2Export(unittest.TestCase): + def setUp(self): + setup_logger() + + def _test_model(self, config_path, device="cpu"): + cfg = model_zoo.get_config(config_path) + cfg.MODEL.DEVICE = device + model = model_zoo.get(config_path, trained=True, device=device) + + inputs = [{"image": get_sample_coco_image()}] + tracer = Caffe2Tracer(cfg, model, copy.deepcopy(inputs)) + + with tempfile.TemporaryDirectory(prefix="detectron2_unittest") as d: + if not os.environ.get("CI"): + # This requires onnx, which is not yet available on public CI + c2_model = tracer.export_caffe2() + c2_model.save_protobuf(d) + c2_model.save_graph(os.path.join(d, "test.svg"), inputs=copy.deepcopy(inputs)) + + c2_model = Caffe2Model.load_protobuf(d) + c2_model(inputs)[0]["instances"] + + ts_model = tracer.export_torchscript() + ts_model.save(os.path.join(d, "model.ts")) + + def testMaskRCNN(self): + self._test_model("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml") + + @unittest.skipIf(not torch.cuda.is_available(), "CUDA not available") + def testMaskRCNNGPU(self): + self._test_model("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", device="cuda") + + def testRetinaNet(self): + self._test_model("COCO-Detection/retinanet_R_50_FPN_3x.yaml") diff --git a/detectron2/tests/test_export_onnx.py b/detectron2/tests/test_export_onnx.py new file mode 100755 index 0000000..aa15e1a --- /dev/null +++ b/detectron2/tests/test_export_onnx.py @@ -0,0 +1,237 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import io +import unittest +import warnings +import torch +from torch.hub import _check_module_exists + +from detectron2 import model_zoo +from detectron2.config import get_cfg +from detectron2.export import STABLE_ONNX_OPSET_VERSION +from detectron2.export.flatten import TracingAdapter +from detectron2.export.torchscript_patch import patch_builtin_len +from detectron2.layers import ShapeSpec +from detectron2.modeling import build_model +from detectron2.modeling.roi_heads import KRCNNConvDeconvUpsampleHead +from detectron2.structures import Boxes, Instances +from detectron2.utils.testing import ( + _pytorch1111_symbolic_opset9_repeat_interleave, + _pytorch1111_symbolic_opset9_to, + get_sample_coco_image, + has_dynamic_axes, + random_boxes, + register_custom_op_onnx_export, + skipIfOnCPUCI, + skipIfUnsupportedMinOpsetVersion, + skipIfUnsupportedMinTorchVersion, + unregister_custom_op_onnx_export, +) + + +@unittest.skipIf(not _check_module_exists("onnx"), "ONNX not installed.") +@skipIfUnsupportedMinTorchVersion("1.10") +class TestONNXTracingExport(unittest.TestCase): + opset_version = STABLE_ONNX_OPSET_VERSION + + def testMaskRCNNFPN(self): + def inference_func(model, images): + with warnings.catch_warnings(record=True): + inputs = [{"image": image} for image in images] + inst = model.inference(inputs, do_postprocess=False)[0] + return [{"instances": inst}] + + self._test_model_zoo_from_config_path( + "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", inference_func + ) + + @skipIfOnCPUCI + def testMaskRCNNC4(self): + def inference_func(model, image): + inputs = [{"image": image}] + return model.inference(inputs, do_postprocess=False)[0] + + self._test_model_zoo_from_config_path( + "COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml", inference_func + ) + + @skipIfOnCPUCI + def testCascadeRCNN(self): + def inference_func(model, image): + inputs = [{"image": image}] + return model.inference(inputs, do_postprocess=False)[0] + + self._test_model_zoo_from_config_path( + "Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml", inference_func + ) + + def testRetinaNet(self): + def inference_func(model, image): + return model.forward([{"image": image}])[0]["instances"] + + self._test_model_zoo_from_config_path( + "COCO-Detection/retinanet_R_50_FPN_3x.yaml", inference_func + ) + + @skipIfOnCPUCI + def testMaskRCNNFPN_batched(self): + def inference_func(model, image1, image2): + inputs = [{"image": image1}, {"image": image2}] + return model.inference(inputs, do_postprocess=False) + + self._test_model_zoo_from_config_path( + "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", inference_func, batch=2 + ) + + @skipIfUnsupportedMinOpsetVersion(16, STABLE_ONNX_OPSET_VERSION) + @skipIfUnsupportedMinTorchVersion("1.11.1") + def testMaskRCNNFPN_with_postproc(self): + def inference_func(model, image): + inputs = [{"image": image, "height": image.shape[1], "width": image.shape[2]}] + return model.inference(inputs, do_postprocess=True)[0]["instances"] + + self._test_model_zoo_from_config_path( + "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", + inference_func, + ) + + def testKeypointHead(self): + class M(torch.nn.Module): + def __init__(self): + super().__init__() + self.model = KRCNNConvDeconvUpsampleHead( + ShapeSpec(channels=4, height=14, width=14), num_keypoints=17, conv_dims=(4,) + ) + + def forward(self, x, predbox1, predbox2): + inst = [ + Instances((100, 100), pred_boxes=Boxes(predbox1)), + Instances((100, 100), pred_boxes=Boxes(predbox2)), + ] + ret = self.model(x, inst) + return tuple(x.pred_keypoints for x in ret) + + model = M() + model.eval() + + def gen_input(num1, num2): + feat = torch.randn((num1 + num2, 4, 14, 14)) + box1 = random_boxes(num1) + box2 = random_boxes(num2) + return feat, box1, box2 + + with patch_builtin_len(): + onnx_model = self._test_model( + model, + gen_input(1, 2), + input_names=["features", "pred_boxes", "pred_classes"], + output_names=["box1", "box2"], + dynamic_axes={ + "features": {0: "batch", 1: "static_four", 2: "height", 3: "width"}, + "pred_boxes": {0: "batch", 1: "static_four"}, + "pred_classes": {0: "batch", 1: "static_four"}, + "box1": {0: "num_instance", 1: "K", 2: "static_three"}, + "box2": {0: "num_instance", 1: "K", 2: "static_three"}, + }, + ) + + # Although ONNX models are not executable by PyTorch to verify + # support of batches with different sizes, we can verify model's IR + # does not hard-code input and/or output shapes. + # TODO: Add tests with different batch sizes when detectron2's CI + # support ONNX Runtime backend. + assert has_dynamic_axes(onnx_model) + + ################################################################################ + # Testcase internals - DO NOT add tests below this point + ################################################################################ + + def setUp(self): + register_custom_op_onnx_export("::to", _pytorch1111_symbolic_opset9_to, 9, "1.11.1") + register_custom_op_onnx_export( + "::repeat_interleave", + _pytorch1111_symbolic_opset9_repeat_interleave, + 9, + "1.11.1", + ) + + def tearDown(self): + unregister_custom_op_onnx_export("::to", 9, "1.11.1") + unregister_custom_op_onnx_export("::repeat_interleave", 9, "1.11.1") + + def _test_model( + self, + model, + inputs, + inference_func=None, + opset_version=STABLE_ONNX_OPSET_VERSION, + save_onnx_graph_path=None, + **export_kwargs, + ): + # Not imported in the beginning of file to prevent runtime errors + # for environments without ONNX. + # This testcase checks dependencies before running + import onnx # isort:skip + + f = io.BytesIO() + adapter_model = TracingAdapter(model, inputs, inference_func) + adapter_model.eval() + with torch.no_grad(): + try: + torch.onnx.enable_log() + except AttributeError: + # Older ONNX versions does not have this API + pass + torch.onnx.export( + adapter_model, + adapter_model.flattened_inputs, + f, + training=torch.onnx.TrainingMode.EVAL, + opset_version=opset_version, + verbose=True, + **export_kwargs, + ) + onnx_model = onnx.load_from_string(f.getvalue()) + assert onnx_model is not None + if save_onnx_graph_path: + onnx.save(onnx_model, save_onnx_graph_path) + return onnx_model + + def _test_model_zoo_from_config_path( + self, + config_path, + inference_func, + batch=1, + opset_version=STABLE_ONNX_OPSET_VERSION, + save_onnx_graph_path=None, + **export_kwargs, + ): + model = model_zoo.get(config_path, trained=True) + image = get_sample_coco_image() + inputs = tuple(image.clone() for _ in range(batch)) + return self._test_model( + model, inputs, inference_func, opset_version, save_onnx_graph_path, **export_kwargs + ) + + def _test_model_from_config_path( + self, + config_path, + inference_func, + batch=1, + opset_version=STABLE_ONNX_OPSET_VERSION, + save_onnx_graph_path=None, + **export_kwargs, + ): + from projects.PointRend import point_rend # isort:skip + + cfg = get_cfg() + cfg.DATALOADER.NUM_WORKERS = 0 + point_rend.add_pointrend_config(cfg) + cfg.merge_from_file(config_path) + cfg.freeze() + model = build_model(cfg) + image = get_sample_coco_image() + inputs = tuple(image.clone() for _ in range(batch)) + return self._test_model( + model, inputs, inference_func, opset_version, save_onnx_graph_path, **export_kwargs + ) diff --git a/detectron2/tests/test_export_torchscript.py b/detectron2/tests/test_export_torchscript.py new file mode 100755 index 0000000..b9905a6 --- /dev/null +++ b/detectron2/tests/test_export_torchscript.py @@ -0,0 +1,336 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import copy +import glob +import json +import os +import random +import tempfile +import unittest +import zipfile +import torch +from torch import Tensor, nn + +from detectron2 import model_zoo +from detectron2.config import get_cfg +from detectron2.config.instantiate import dump_dataclass, instantiate +from detectron2.export import dump_torchscript_IR, scripting_with_instances +from detectron2.export.flatten import TracingAdapter, flatten_to_tuple +from detectron2.export.torchscript_patch import patch_builtin_len +from detectron2.layers import ShapeSpec +from detectron2.modeling import build_backbone +from detectron2.modeling.postprocessing import detector_postprocess +from detectron2.modeling.roi_heads import KRCNNConvDeconvUpsampleHead +from detectron2.structures import Boxes, Instances +from detectron2.utils.env import TORCH_VERSION +from detectron2.utils.testing import ( + assert_instances_allclose, + convert_scripted_instances, + get_sample_coco_image, + random_boxes, + skipIfOnCPUCI, +) + + +""" +https://detectron2.readthedocs.io/tutorials/deployment.html +contains some explanations of this file. +""" + + +class TestScripting(unittest.TestCase): + def testMaskRCNNFPN(self): + self._test_rcnn_model("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml") + + @skipIfOnCPUCI + def testMaskRCNNC4(self): + self._test_rcnn_model("COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml") + + def testRetinaNet(self): + self._test_retinanet_model("COCO-Detection/retinanet_R_50_FPN_3x.yaml") + + def _test_rcnn_model(self, config_path): + model = model_zoo.get(config_path, trained=True) + model.eval() + + fields = { + "proposal_boxes": Boxes, + "objectness_logits": Tensor, + "pred_boxes": Boxes, + "scores": Tensor, + "pred_classes": Tensor, + "pred_masks": Tensor, + } + script_model = scripting_with_instances(model, fields) + + # Test that batch inference with different shapes are supported + image = get_sample_coco_image() + small_image = nn.functional.interpolate(image, scale_factor=0.5) + inputs = [{"image": image}, {"image": small_image}] + with torch.no_grad(): + instance = model.inference(inputs, do_postprocess=False)[0] + scripted_instance = script_model.inference(inputs, do_postprocess=False)[0] + assert_instances_allclose(instance, scripted_instance) + + def _test_retinanet_model(self, config_path): + model = model_zoo.get(config_path, trained=True) + model.eval() + + fields = { + "pred_boxes": Boxes, + "scores": Tensor, + "pred_classes": Tensor, + } + script_model = scripting_with_instances(model, fields) + + img = get_sample_coco_image() + inputs = [{"image": img}] * 2 + with torch.no_grad(): + instance = model(inputs)[0]["instances"] + scripted_instance = convert_scripted_instances(script_model(inputs)[0]) + scripted_instance = detector_postprocess(scripted_instance, img.shape[1], img.shape[2]) + assert_instances_allclose(instance, scripted_instance) + # Note that the model currently cannot be saved and loaded into a new process: + # https://github.com/pytorch/pytorch/issues/46944 + + +# TODO: this test requires manifold access, see: T88318502 +class TestTracing(unittest.TestCase): + def testMaskRCNNFPN(self): + def inference_func(model, image): + inputs = [{"image": image}] + return model.inference(inputs, do_postprocess=False)[0] + + self._test_model("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", inference_func) + + def testMaskRCNNFPN_with_postproc(self): + def inference_func(model, image): + inputs = [{"image": image, "height": image.shape[1], "width": image.shape[2]}] + return model.inference(inputs, do_postprocess=True)[0]["instances"] + + self._test_model("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", inference_func) + + @skipIfOnCPUCI + def testMaskRCNNC4(self): + def inference_func(model, image): + inputs = [{"image": image}] + return model.inference(inputs, do_postprocess=False)[0] + + self._test_model("COCO-InstanceSegmentation/mask_rcnn_R_50_C4_3x.yaml", inference_func) + + @skipIfOnCPUCI + def testCascadeRCNN(self): + def inference_func(model, image): + inputs = [{"image": image}] + return model.inference(inputs, do_postprocess=False)[0] + + self._test_model("Misc/cascade_mask_rcnn_R_50_FPN_3x.yaml", inference_func) + + # bug fixed by https://github.com/pytorch/pytorch/pull/67734 + @unittest.skipIf(TORCH_VERSION == (1, 10) and os.environ.get("CI"), "1.10 has bugs.") + def testRetinaNet(self): + def inference_func(model, image): + return model.forward([{"image": image}])[0]["instances"] + + self._test_model("COCO-Detection/retinanet_R_50_FPN_3x.yaml", inference_func) + + def _check_torchscript_no_hardcoded_device(self, jitfile, extract_dir, device): + zipfile.ZipFile(jitfile).extractall(extract_dir) + dir_path = os.path.join(extract_dir, os.path.splitext(os.path.basename(jitfile))[0]) + error_files = [] + for f in glob.glob(f"{dir_path}/code/**/*.py", recursive=True): + content = open(f).read() + if device in content: + error_files.append((f, content)) + if len(error_files): + msg = "\n".join(f"{f}\n{content}" for f, content in error_files) + raise ValueError(f"Found device '{device}' in following files:\n{msg}") + + def _get_device_casting_test_cases(self, model): + # Indexing operation can causes hardcoded device type before 1.10 + if not TORCH_VERSION >= (1, 10) or torch.cuda.device_count() == 0: + return [None] + + testing_devices = ["cpu", "cuda:0"] + if torch.cuda.device_count() > 1: + testing_devices.append(f"cuda:{torch.cuda.device_count() - 1}") + assert str(model.device) in testing_devices + testing_devices.remove(str(model.device)) + testing_devices = [None] + testing_devices # test no casting first + + return testing_devices + + def _test_model(self, config_path, inference_func, batch=1): + model = model_zoo.get(config_path, trained=True) + image = get_sample_coco_image() + inputs = tuple(image.clone() for _ in range(batch)) + + wrapper = TracingAdapter(model, inputs, inference_func) + wrapper.eval() + with torch.no_grad(): + # trace with smaller images, and the trace must still work + trace_inputs = tuple( + nn.functional.interpolate(image, scale_factor=random.uniform(0.5, 0.7)) + for _ in range(batch) + ) + traced_model = torch.jit.trace(wrapper, trace_inputs) + + testing_devices = self._get_device_casting_test_cases(model) + # save and load back the model in order to show traceback of TorchScript + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + basename = "model" + jitfile = f"{d}/{basename}.jit" + torch.jit.save(traced_model, jitfile) + traced_model = torch.jit.load(jitfile) + + if any(device and "cuda" in device for device in testing_devices): + self._check_torchscript_no_hardcoded_device(jitfile, d, "cuda") + + for device in testing_devices: + print(f"Testing casting to {device} for inference (traced on {model.device}) ...") + with torch.no_grad(): + outputs = inference_func(copy.deepcopy(model).to(device), *inputs) + traced_outputs = wrapper.outputs_schema(traced_model.to(device)(*inputs)) + if batch > 1: + for output, traced_output in zip(outputs, traced_outputs): + assert_instances_allclose(output, traced_output, size_as_tensor=True) + else: + assert_instances_allclose(outputs, traced_outputs, size_as_tensor=True) + + @skipIfOnCPUCI + def testMaskRCNNFPN_batched(self): + def inference_func(model, image1, image2): + inputs = [{"image": image1}, {"image": image2}] + return model.inference(inputs, do_postprocess=False) + + self._test_model( + "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml", inference_func, batch=2 + ) + + def testKeypointHead(self): + class M(nn.Module): + def __init__(self): + super().__init__() + self.model = KRCNNConvDeconvUpsampleHead( + ShapeSpec(channels=4, height=14, width=14), num_keypoints=17, conv_dims=(4,) + ) + + def forward(self, x, predbox1, predbox2): + inst = [ + Instances((100, 100), pred_boxes=Boxes(predbox1)), + Instances((100, 100), pred_boxes=Boxes(predbox2)), + ] + ret = self.model(x, inst) + return tuple(x.pred_keypoints for x in ret) + + model = M() + model.eval() + + def gen_input(num1, num2): + feat = torch.randn((num1 + num2, 4, 14, 14)) + box1 = random_boxes(num1) + box2 = random_boxes(num2) + return feat, box1, box2 + + with torch.no_grad(), patch_builtin_len(): + trace = torch.jit.trace(model, gen_input(15, 15), check_trace=False) + + inputs = gen_input(12, 10) + trace_outputs = trace(*inputs) + true_outputs = model(*inputs) + for trace_output, true_output in zip(trace_outputs, true_outputs): + self.assertTrue(torch.allclose(trace_output, true_output)) + + +class TestTorchscriptUtils(unittest.TestCase): + # TODO: add test to dump scripting + def test_dump_IR_tracing(self): + cfg = get_cfg() + cfg.MODEL.RESNETS.DEPTH = 18 + cfg.MODEL.RESNETS.RES2_OUT_CHANNELS = 64 + + class Mod(nn.Module): + def forward(self, x): + return tuple(self.m(x).values()) + + model = Mod() + model.m = build_backbone(cfg) + model.eval() + + with torch.no_grad(): + ts_model = torch.jit.trace(model, (torch.rand(2, 3, 224, 224),)) + + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + dump_torchscript_IR(ts_model, d) + # check that the files are created + for name in ["model_ts_code", "model_ts_IR", "model_ts_IR_inlined", "model"]: + fname = os.path.join(d, name + ".txt") + self.assertTrue(os.stat(fname).st_size > 0, fname) + + def test_dump_IR_function(self): + @torch.jit.script + def gunc(x, y): + return x + y + + def func(x, y): + return x + y + gunc(x, y) + + ts_model = torch.jit.trace(func, (torch.rand(3), torch.rand(3))) + with tempfile.TemporaryDirectory(prefix="detectron2_test") as d: + dump_torchscript_IR(ts_model, d) + for name in ["model_ts_code", "model_ts_IR", "model_ts_IR_inlined"]: + fname = os.path.join(d, name + ".txt") + self.assertTrue(os.stat(fname).st_size > 0, fname) + + def test_flatten_basic(self): + obj = [3, ([5, 6], {"name": [7, 9], "name2": 3})] + res, schema = flatten_to_tuple(obj) + self.assertEqual(res, (3, 5, 6, 7, 9, 3)) + new_obj = schema(res) + self.assertEqual(new_obj, obj) + + _, new_schema = flatten_to_tuple(new_obj) + self.assertEqual(schema, new_schema) # test __eq__ + self._check_schema(schema) + + def _check_schema(self, schema): + dumped_schema = dump_dataclass(schema) + # Check that the schema is json-serializable + # Although in reality you might want to use yaml because it often has many levels + json.dumps(dumped_schema) + + # Check that the schema can be deserialized + new_schema = instantiate(dumped_schema) + self.assertEqual(schema, new_schema) + + def test_flatten_instances_boxes(self): + inst = Instances( + torch.tensor([5, 8]), pred_masks=torch.tensor([3]), pred_boxes=Boxes(torch.ones((1, 4))) + ) + obj = [3, ([5, 6], inst)] + res, schema = flatten_to_tuple(obj) + self.assertEqual(res[:3], (3, 5, 6)) + for r, expected in zip(res[3:], (inst.pred_boxes.tensor, inst.pred_masks, inst.image_size)): + self.assertIs(r, expected) + new_obj = schema(res) + assert_instances_allclose(new_obj[1][1], inst, rtol=0.0, size_as_tensor=True) + + self._check_schema(schema) + + def test_allow_non_tensor(self): + data = (torch.tensor([5, 8]), 3) # contains non-tensor + + class M(nn.Module): + def forward(self, input, number): + return input + + model = M() + with self.assertRaisesRegex(ValueError, "must only contain tensors"): + adap = TracingAdapter(model, data, allow_non_tensor=False) + + adap = TracingAdapter(model, data, allow_non_tensor=True) + _ = adap(*adap.flattened_inputs) + + newdata = (data[0].clone(),) + with self.assertRaisesRegex(ValueError, "cannot generalize"): + _ = adap(*newdata) diff --git a/detectron2/tests/test_model_analysis.py b/detectron2/tests/test_model_analysis.py new file mode 100755 index 0000000..c01b7af --- /dev/null +++ b/detectron2/tests/test_model_analysis.py @@ -0,0 +1,80 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + + +import unittest +import torch +from torch import nn + +from detectron2.utils.analysis import find_unused_parameters, flop_count_operators, parameter_count +from detectron2.utils.testing import get_model_no_weights + + +class RetinaNetTest(unittest.TestCase): + def setUp(self): + self.model = get_model_no_weights("COCO-Detection/retinanet_R_50_FPN_1x.yaml") + + def test_flop(self): + # RetinaNet supports flop-counting with random inputs + inputs = [{"image": torch.rand(3, 800, 800), "test_unused": "abcd"}] + res = flop_count_operators(self.model, inputs) + self.assertEqual(int(res["conv"]), 146) # 146B flops + + def test_param_count(self): + res = parameter_count(self.model) + self.assertEqual(res[""], 37915572) + self.assertEqual(res["backbone"], 31452352) + + +class FasterRCNNTest(unittest.TestCase): + def setUp(self): + self.model = get_model_no_weights("COCO-Detection/faster_rcnn_R_50_FPN_1x.yaml") + + def test_flop(self): + # Faster R-CNN supports flop-counting with random inputs + inputs = [{"image": torch.rand(3, 800, 800)}] + res = flop_count_operators(self.model, inputs) + + # This only checks flops for backbone & proposal generator + # Flops for box head is not conv, and depends on #proposals, which is + # almost 0 for random inputs. + self.assertEqual(int(res["conv"]), 117) + + def test_flop_with_output_shape(self): + inputs = [{"image": torch.rand(3, 800, 800), "height": 700, "width": 700}] + res = flop_count_operators(self.model, inputs) + self.assertEqual(int(res["conv"]), 117) + + def test_param_count(self): + res = parameter_count(self.model) + self.assertEqual(res[""], 41699936) + self.assertEqual(res["backbone"], 26799296) + + +class MaskRCNNTest(unittest.TestCase): + def setUp(self): + self.model = get_model_no_weights("COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml") + + def test_flop(self): + inputs1 = [{"image": torch.rand(3, 800, 800)}] + inputs2 = [{"image": torch.rand(3, 800, 800), "height": 700, "width": 700}] + + for inputs in [inputs1, inputs2]: + res = flop_count_operators(self.model, inputs) + # The mask head could have extra conv flops, so total >= 117 + self.assertGreaterEqual(int(res["conv"]), 117) + + +class UnusedParamTest(unittest.TestCase): + def test_unused(self): + class TestMod(nn.Module): + def __init__(self): + super().__init__() + self.fc1 = nn.Linear(10, 10) + self.t = nn.Linear(10, 10) + + def forward(self, x): + return self.fc1(x).mean() + + m = TestMod() + ret = find_unused_parameters(m, torch.randn(10, 10)) + self.assertEqual(set(ret), {"t.weight", "t.bias"}) diff --git a/detectron2/tests/test_model_zoo.py b/detectron2/tests/test_model_zoo.py new file mode 100755 index 0000000..e3360a7 --- /dev/null +++ b/detectron2/tests/test_model_zoo.py @@ -0,0 +1,50 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import logging +import unittest + +from detectron2 import model_zoo +from detectron2.config import instantiate +from detectron2.modeling import FPN, GeneralizedRCNN + +logger = logging.getLogger(__name__) + + +class TestModelZoo(unittest.TestCase): + def test_get_returns_model(self): + model = model_zoo.get("Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml", trained=False) + self.assertIsInstance(model, GeneralizedRCNN) + self.assertIsInstance(model.backbone, FPN) + + def test_get_invalid_model(self): + self.assertRaises(RuntimeError, model_zoo.get, "Invalid/config.yaml") + + def test_get_url(self): + url = model_zoo.get_checkpoint_url("Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.yaml") + self.assertEqual( + url, + "https://dl.fbaipublicfiles.com/detectron2/Misc/scratch_mask_rcnn_R_50_FPN_3x_gn/138602908/model_final_01ca85.pkl", # noqa + ) + url2 = model_zoo.get_checkpoint_url("Misc/scratch_mask_rcnn_R_50_FPN_3x_gn.py") + self.assertEqual(url, url2) + + def _build_lazy_model(self, name): + cfg = model_zoo.get_config("common/models/" + name) + instantiate(cfg.model) + + def test_mask_rcnn_fpn(self): + self._build_lazy_model("mask_rcnn_fpn.py") + + def test_mask_rcnn_c4(self): + self._build_lazy_model("mask_rcnn_c4.py") + + def test_panoptic_fpn(self): + self._build_lazy_model("panoptic_fpn.py") + + def test_schedule(self): + cfg = model_zoo.get_config("common/coco_schedule.py") + for _, v in cfg.items(): + instantiate(v) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/test_packaging.py b/detectron2/tests/test_packaging.py new file mode 100755 index 0000000..a5b1661 --- /dev/null +++ b/detectron2/tests/test_packaging.py @@ -0,0 +1,24 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest + +from detectron2.utils.collect_env import collect_env_info + + +class TestProjects(unittest.TestCase): + def test_import(self): + from detectron2.projects import point_rend + + _ = point_rend.add_pointrend_config + + import detectron2.projects.deeplab as deeplab + + _ = deeplab.add_deeplab_config + + # import detectron2.projects.panoptic_deeplab as panoptic_deeplab + + # _ = panoptic_deeplab.add_panoptic_deeplab_config + + +class TestCollectEnv(unittest.TestCase): + def test(self): + _ = collect_env_info() diff --git a/detectron2/tests/test_registry.py b/detectron2/tests/test_registry.py new file mode 100755 index 0000000..4e425a6 --- /dev/null +++ b/detectron2/tests/test_registry.py @@ -0,0 +1,45 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import unittest +import torch + +from detectron2.modeling.meta_arch import GeneralizedRCNN +from detectron2.utils.registry import _convert_target_to_string, locate + + +class A: + class B: + pass + + +class TestLocate(unittest.TestCase): + def _test_obj(self, obj): + name = _convert_target_to_string(obj) + newobj = locate(name) + self.assertIs(obj, newobj) + + def test_basic(self): + self._test_obj(GeneralizedRCNN) + + def test_inside_class(self): + # requires using __qualname__ instead of __name__ + self._test_obj(A.B) + + def test_builtin(self): + self._test_obj(len) + self._test_obj(dict) + + def test_pytorch_optim(self): + # pydoc.locate does not work for it + self._test_obj(torch.optim.SGD) + + def test_failure(self): + with self.assertRaises(ImportError): + locate("asdf") + + def test_compress_target(self): + from detectron2.data.transforms import RandomCrop + + name = _convert_target_to_string(RandomCrop) + # name shouldn't contain 'augmentation_impl' + self.assertEqual(name, "detectron2.data.transforms.RandomCrop") + self.assertIs(RandomCrop, locate(name)) diff --git a/detectron2/tests/test_scheduler.py b/detectron2/tests/test_scheduler.py new file mode 100755 index 0000000..5649a4a --- /dev/null +++ b/detectron2/tests/test_scheduler.py @@ -0,0 +1,158 @@ +# Copyright (c) Facebook, Inc. and its affiliates. + +import math +import numpy as np +from unittest import TestCase +import torch +from fvcore.common.param_scheduler import ( + CosineParamScheduler, + MultiStepParamScheduler, + StepWithFixedGammaParamScheduler, +) +from torch import nn + +from detectron2.solver import LRMultiplier, WarmupParamScheduler, build_lr_scheduler + + +class TestScheduler(TestCase): + def test_warmup_multistep(self): + p = nn.Parameter(torch.zeros(0)) + opt = torch.optim.SGD([p], lr=5) + + multiplier = WarmupParamScheduler( + MultiStepParamScheduler( + [1, 0.1, 0.01, 0.001], + milestones=[10, 15, 20], + num_updates=30, + ), + 0.001, + 5 / 30, + ) + sched = LRMultiplier(opt, multiplier, 30) + # This is an equivalent of: + # sched = WarmupMultiStepLR( + # opt, milestones=[10, 15, 20], gamma=0.1, warmup_factor=0.001, warmup_iters=5) + + p.sum().backward() + opt.step() + + lrs = [0.005] + for _ in range(30): + sched.step() + lrs.append(opt.param_groups[0]["lr"]) + self.assertTrue(np.allclose(lrs[:5], [0.005, 1.004, 2.003, 3.002, 4.001])) + self.assertTrue(np.allclose(lrs[5:10], 5.0)) + self.assertTrue(np.allclose(lrs[10:15], 0.5)) + self.assertTrue(np.allclose(lrs[15:20], 0.05)) + self.assertTrue(np.allclose(lrs[20:], 0.005)) + + def test_warmup_cosine(self): + p = nn.Parameter(torch.zeros(0)) + opt = torch.optim.SGD([p], lr=5) + multiplier = WarmupParamScheduler( + CosineParamScheduler(1, 0), + 0.001, + 5 / 30, + ) + sched = LRMultiplier(opt, multiplier, 30) + + p.sum().backward() + opt.step() + self.assertEqual(opt.param_groups[0]["lr"], 0.005) + lrs = [0.005] + + for _ in range(30): + sched.step() + lrs.append(opt.param_groups[0]["lr"]) + for idx, lr in enumerate(lrs): + expected_cosine = 2.5 * (1.0 + math.cos(math.pi * idx / 30)) + if idx >= 5: + self.assertAlmostEqual(lr, expected_cosine) + else: + self.assertNotAlmostEqual(lr, expected_cosine) + + def test_warmup_cosine_end_value(self): + from detectron2.config import CfgNode, get_cfg + + def _test_end_value(cfg_dict): + cfg = get_cfg() + cfg.merge_from_other_cfg(CfgNode(cfg_dict)) + + p = nn.Parameter(torch.zeros(0)) + opt = torch.optim.SGD([p], lr=cfg.SOLVER.BASE_LR) + + scheduler = build_lr_scheduler(cfg, opt) + + p.sum().backward() + opt.step() + self.assertEqual( + opt.param_groups[0]["lr"], cfg.SOLVER.BASE_LR * cfg.SOLVER.WARMUP_FACTOR + ) + + lrs = [] + for _ in range(cfg.SOLVER.MAX_ITER): + scheduler.step() + lrs.append(opt.param_groups[0]["lr"]) + + self.assertAlmostEqual(lrs[-1], cfg.SOLVER.BASE_LR_END) + + _test_end_value( + { + "SOLVER": { + "LR_SCHEDULER_NAME": "WarmupCosineLR", + "MAX_ITER": 100, + "WARMUP_ITERS": 10, + "WARMUP_FACTOR": 0.1, + "BASE_LR": 5.0, + "BASE_LR_END": 0.0, + } + } + ) + + _test_end_value( + { + "SOLVER": { + "LR_SCHEDULER_NAME": "WarmupCosineLR", + "MAX_ITER": 100, + "WARMUP_ITERS": 10, + "WARMUP_FACTOR": 0.1, + "BASE_LR": 5.0, + "BASE_LR_END": 0.5, + } + } + ) + + def test_warmup_stepwithfixedgamma(self): + p = nn.Parameter(torch.zeros(0)) + opt = torch.optim.SGD([p], lr=5) + + multiplier = WarmupParamScheduler( + StepWithFixedGammaParamScheduler( + base_value=1.0, + gamma=0.1, + num_decays=4, + num_updates=30, + ), + 0.001, + 5 / 30, + rescale_interval=True, + ) + sched = LRMultiplier(opt, multiplier, 30) + + p.sum().backward() + opt.step() + + lrs = [0.005] + for _ in range(29): + sched.step() + lrs.append(opt.param_groups[0]["lr"]) + self.assertTrue(np.allclose(lrs[:5], [0.005, 1.004, 2.003, 3.002, 4.001])) + self.assertTrue(np.allclose(lrs[5:10], 5.0)) + self.assertTrue(np.allclose(lrs[10:15], 0.5)) + self.assertTrue(np.allclose(lrs[15:20], 0.05)) + self.assertTrue(np.allclose(lrs[20:25], 0.005)) + self.assertTrue(np.allclose(lrs[25:], 0.0005)) + + # Calling sche.step() after the last training iteration is done will trigger IndexError + with self.assertRaises(IndexError, msg="list index out of range"): + sched.step() diff --git a/detectron2/tests/test_solver.py b/detectron2/tests/test_solver.py new file mode 100755 index 0000000..6b3ae84 --- /dev/null +++ b/detectron2/tests/test_solver.py @@ -0,0 +1,66 @@ +import unittest + +from detectron2.solver.build import _expand_param_groups, reduce_param_groups + + +class TestOptimizer(unittest.TestCase): + def testExpandParamsGroups(self): + params = [ + { + "params": ["p1", "p2", "p3", "p4"], + "lr": 1.0, + "weight_decay": 3.0, + }, + { + "params": ["p2", "p3", "p5"], + "lr": 2.0, + "momentum": 2.0, + }, + { + "params": ["p1"], + "weight_decay": 4.0, + }, + ] + out = _expand_param_groups(params) + gt = [ + dict(params=["p1"], lr=1.0, weight_decay=4.0), # noqa + dict(params=["p2"], lr=2.0, weight_decay=3.0, momentum=2.0), # noqa + dict(params=["p3"], lr=2.0, weight_decay=3.0, momentum=2.0), # noqa + dict(params=["p4"], lr=1.0, weight_decay=3.0), # noqa + dict(params=["p5"], lr=2.0, momentum=2.0), # noqa + ] + self.assertEqual(out, gt) + + def testReduceParamGroups(self): + params = [ + dict(params=["p1"], lr=1.0, weight_decay=4.0), # noqa + dict(params=["p2", "p6"], lr=2.0, weight_decay=3.0, momentum=2.0), # noqa + dict(params=["p3"], lr=2.0, weight_decay=3.0, momentum=2.0), # noqa + dict(params=["p4"], lr=1.0, weight_decay=3.0), # noqa + dict(params=["p5"], lr=2.0, momentum=2.0), # noqa + ] + gt_groups = [ + { + "lr": 1.0, + "weight_decay": 4.0, + "params": ["p1"], + }, + { + "lr": 2.0, + "weight_decay": 3.0, + "momentum": 2.0, + "params": ["p2", "p6", "p3"], + }, + { + "lr": 1.0, + "weight_decay": 3.0, + "params": ["p4"], + }, + { + "lr": 2.0, + "momentum": 2.0, + "params": ["p5"], + }, + ] + out = reduce_param_groups(params) + self.assertEqual(out, gt_groups) diff --git a/detectron2/tests/test_visualizer.py b/detectron2/tests/test_visualizer.py new file mode 100755 index 0000000..646e5f3 --- /dev/null +++ b/detectron2/tests/test_visualizer.py @@ -0,0 +1,278 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import numpy as np +import os +import tempfile +import unittest +import cv2 +import torch + +from detectron2.data import MetadataCatalog +from detectron2.structures import BoxMode, Instances, RotatedBoxes +from detectron2.utils.visualizer import ColorMode, Visualizer + + +class TestVisualizer(unittest.TestCase): + def _random_data(self): + H, W = 100, 100 + N = 10 + img = np.random.rand(H, W, 3) * 255 + boxxy = np.random.rand(N, 2) * (H // 2) + boxes = np.concatenate((boxxy, boxxy + H // 2), axis=1) + + def _rand_poly(): + return np.random.rand(3, 2).flatten() * H + + polygons = [[_rand_poly() for _ in range(np.random.randint(1, 5))] for _ in range(N)] + + mask = np.zeros_like(img[:, :, 0], dtype=bool) + mask[:40, 10:20] = 1 + + labels = [str(i) for i in range(N)] + return img, boxes, labels, polygons, [mask] * N + + @property + def metadata(self): + return MetadataCatalog.get("coco_2017_train") + + def test_draw_dataset_dict(self): + img = np.random.rand(512, 512, 3) * 255 + dic = { + "annotations": [ + { + "bbox": [ + 368.9946492271106, + 330.891438763377, + 13.148537455410235, + 13.644708680142685, + ], + "bbox_mode": BoxMode.XYWH_ABS, + "category_id": 0, + "iscrowd": 1, + "segmentation": { + "counts": "_jh52m?2N2N2N2O100O10O001N1O2MceP2", + "size": [512, 512], + }, + } + ], + "height": 512, + "image_id": 1, + "width": 512, + } + v = Visualizer(img) + v.draw_dataset_dict(dic) + + v = Visualizer(img, self.metadata) + v.draw_dataset_dict(dic) + + def test_draw_rotated_dataset_dict(self): + img = np.random.rand(512, 512, 3) * 255 + dic = { + "annotations": [ + { + "bbox": [ + 368.9946492271106, + 330.891438763377, + 13.148537455410235, + 13.644708680142685, + 45.0, + ], + "bbox_mode": BoxMode.XYWHA_ABS, + "category_id": 0, + "iscrowd": 1, + } + ], + "height": 512, + "image_id": 1, + "width": 512, + } + v = Visualizer(img, self.metadata) + v.draw_dataset_dict(dic) + + def test_overlay_instances(self): + img, boxes, labels, polygons, masks = self._random_data() + + v = Visualizer(img, self.metadata) + output = v.overlay_instances(masks=polygons, boxes=boxes, labels=labels).get_image() + self.assertEqual(output.shape, img.shape) + + # Test 2x scaling + v = Visualizer(img, self.metadata, scale=2.0) + output = v.overlay_instances(masks=polygons, boxes=boxes, labels=labels).get_image() + self.assertEqual(output.shape[0], img.shape[0] * 2) + + # Test overlay masks + v = Visualizer(img, self.metadata) + output = v.overlay_instances(masks=masks, boxes=boxes, labels=labels).get_image() + self.assertEqual(output.shape, img.shape) + + def test_overlay_instances_no_boxes(self): + img, boxes, labels, polygons, _ = self._random_data() + v = Visualizer(img, self.metadata) + v.overlay_instances(masks=polygons, boxes=None, labels=labels).get_image() + + def test_draw_instance_predictions(self): + img, boxes, _, _, masks = self._random_data() + num_inst = len(boxes) + inst = Instances((img.shape[0], img.shape[1])) + inst.pred_classes = torch.randint(0, 80, size=(num_inst,)) + inst.scores = torch.rand(num_inst) + inst.pred_boxes = torch.from_numpy(boxes) + inst.pred_masks = torch.from_numpy(np.asarray(masks)) + + v = Visualizer(img) + v.draw_instance_predictions(inst) + + v = Visualizer(img, self.metadata) + v.draw_instance_predictions(inst) + + def test_BWmode_nomask(self): + img, boxes, _, _, masks = self._random_data() + num_inst = len(boxes) + inst = Instances((img.shape[0], img.shape[1])) + inst.pred_classes = torch.randint(0, 80, size=(num_inst,)) + inst.scores = torch.rand(num_inst) + inst.pred_boxes = torch.from_numpy(boxes) + + v = Visualizer(img, self.metadata, instance_mode=ColorMode.IMAGE_BW) + v.draw_instance_predictions(inst) + + # check that output is grayscale + inst = inst[:0] + v = Visualizer(img, self.metadata, instance_mode=ColorMode.IMAGE_BW) + output = v.draw_instance_predictions(inst).get_image() + self.assertTrue(np.allclose(output[:, :, 0], output[:, :, 1])) + self.assertTrue(np.allclose(output[:, :, 0], output[:, :, 2])) + + def test_draw_empty_mask_predictions(self): + img, boxes, _, _, masks = self._random_data() + num_inst = len(boxes) + inst = Instances((img.shape[0], img.shape[1])) + inst.pred_classes = torch.randint(0, 80, size=(num_inst,)) + inst.scores = torch.rand(num_inst) + inst.pred_boxes = torch.from_numpy(boxes) + inst.pred_masks = torch.from_numpy(np.zeros_like(np.asarray(masks))) + + v = Visualizer(img, self.metadata) + v.draw_instance_predictions(inst) + + def test_correct_output_shape(self): + img = np.random.rand(928, 928, 3) * 255 + v = Visualizer(img, self.metadata) + out = v.output.get_image() + self.assertEqual(out.shape, img.shape) + + def test_overlay_rotated_instances(self): + H, W = 100, 150 + img = np.random.rand(H, W, 3) * 255 + num_boxes = 50 + boxes_5d = torch.zeros(num_boxes, 5) + boxes_5d[:, 0] = torch.FloatTensor(num_boxes).uniform_(-0.1 * W, 1.1 * W) + boxes_5d[:, 1] = torch.FloatTensor(num_boxes).uniform_(-0.1 * H, 1.1 * H) + boxes_5d[:, 2] = torch.FloatTensor(num_boxes).uniform_(0, max(W, H)) + boxes_5d[:, 3] = torch.FloatTensor(num_boxes).uniform_(0, max(W, H)) + boxes_5d[:, 4] = torch.FloatTensor(num_boxes).uniform_(-1800, 1800) + rotated_boxes = RotatedBoxes(boxes_5d) + labels = [str(i) for i in range(num_boxes)] + + v = Visualizer(img, self.metadata) + output = v.overlay_instances(boxes=rotated_boxes, labels=labels).get_image() + self.assertEqual(output.shape, img.shape) + + def test_draw_no_metadata(self): + img, boxes, _, _, masks = self._random_data() + num_inst = len(boxes) + inst = Instances((img.shape[0], img.shape[1])) + inst.pred_classes = torch.randint(0, 80, size=(num_inst,)) + inst.scores = torch.rand(num_inst) + inst.pred_boxes = torch.from_numpy(boxes) + inst.pred_masks = torch.from_numpy(np.asarray(masks)) + + v = Visualizer(img, MetadataCatalog.get("asdfasdf")) + v.draw_instance_predictions(inst) + + def test_draw_binary_mask(self): + img, boxes, _, _, masks = self._random_data() + img[:, :, 0] = 0 # remove red color + mask = masks[0] + mask_with_hole = np.zeros_like(mask).astype("uint8") + mask_with_hole = cv2.rectangle(mask_with_hole, (10, 10), (50, 50), 1, 5) + + for m in [mask, mask_with_hole]: + for save in [True, False]: + v = Visualizer(img) + o = v.draw_binary_mask(m, color="red", text="test") + if save: + with tempfile.TemporaryDirectory(prefix="detectron2_viz") as d: + path = os.path.join(d, "output.png") + o.save(path) + o = cv2.imread(path)[:, :, ::-1] + else: + o = o.get_image().astype("float32") + # red color is drawn on the image + self.assertTrue(o[:, :, 0].sum() > 0) + + def test_draw_soft_mask(self): + img = np.random.rand(100, 100, 3) * 255 + img[:, :, 0] = 0 # remove red color + mask = np.zeros((100, 100), dtype=np.float32) + mask[30:50, 40:50] = 1.0 + cv2.GaussianBlur(mask, (21, 21), 10) + + v = Visualizer(img) + o = v.draw_soft_mask(mask, color="red", text="test") + o = o.get_image().astype("float32") + # red color is drawn on the image + self.assertTrue(o[:, :, 0].sum() > 0) + + # test draw empty mask + v = Visualizer(img) + o = v.draw_soft_mask(np.zeros((100, 100), dtype=np.float32), color="red", text="test") + o = o.get_image().astype("float32") + + def test_border_mask_with_holes(self): + H, W = 200, 200 + img = np.zeros((H, W, 3)) + img[:, :, 0] = 255.0 + v = Visualizer(img, scale=3) + + mask = np.zeros((H, W)) + mask[:, 100:150] = 1 + # create a hole, to trigger imshow + mask = cv2.rectangle(mask, (110, 110), (130, 130), 0, thickness=-1) + output = v.draw_binary_mask(mask, color="blue") + output = output.get_image()[:, :, ::-1] + + first_row = {tuple(x.tolist()) for x in output[0]} + last_row = {tuple(x.tolist()) for x in output[-1]} + # Check quantization / off-by-1 error: the first and last row must have two colors + self.assertEqual(len(last_row), 2) + self.assertEqual(len(first_row), 2) + self.assertIn((0, 0, 255), last_row) + self.assertIn((0, 0, 255), first_row) + + def test_border_polygons(self): + H, W = 200, 200 + img = np.zeros((H, W, 3)) + img[:, :, 0] = 255.0 + v = Visualizer(img, scale=3) + mask = np.zeros((H, W)) + mask[:, 100:150] = 1 + + output = v.draw_binary_mask(mask, color="blue") + output = output.get_image()[:, :, ::-1] + + first_row = {tuple(x.tolist()) for x in output[0]} + last_row = {tuple(x.tolist()) for x in output[-1]} + # Check quantization / off-by-1 error: + # the first and last row must have >=2 colors, because the polygon + # touches both rows + self.assertGreaterEqual(len(last_row), 2) + self.assertGreaterEqual(len(first_row), 2) + self.assertIn((0, 0, 255), last_row) + self.assertIn((0, 0, 255), first_row) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/tracking/__init__.py b/detectron2/tests/tracking/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/tests/tracking/test_bbox_iou_tracker.py b/detectron2/tests/tracking/test_bbox_iou_tracker.py new file mode 100755 index 0000000..e720b2e --- /dev/null +++ b/detectron2/tests/tracking/test_bbox_iou_tracker.py @@ -0,0 +1,160 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import unittest +from copy import deepcopy +from typing import Dict +import torch + +from detectron2.config import CfgNode as CfgNode_ +from detectron2.config import instantiate +from detectron2.structures import Boxes, Instances +from detectron2.tracking.base_tracker import build_tracker_head +from detectron2.tracking.bbox_iou_tracker import BBoxIOUTracker # noqa + + +class TestBBoxIOUTracker(unittest.TestCase): + def setUp(self): + self._img_size = np.array([600, 800]) + self._prev_boxes = np.array( + [ + [101, 101, 200, 200], + [301, 301, 450, 450], + ] + ).astype(np.float32) + self._prev_scores = np.array([0.9, 0.9]) + self._prev_classes = np.array([1, 1]) + self._prev_masks = np.ones((2, 600, 800)).astype("uint8") + self._curr_boxes = np.array( + [ + [302, 303, 451, 452], + [101, 102, 201, 203], + ] + ).astype(np.float32) + self._curr_scores = np.array([0.95, 0.85]) + self._curr_classes = np.array([1, 1]) + self._curr_masks = np.ones((2, 600, 800)).astype("uint8") + + self._prev_instances = { + "image_size": self._img_size, + "pred_boxes": self._prev_boxes, + "scores": self._prev_scores, + "pred_classes": self._prev_classes, + "pred_masks": self._prev_masks, + } + self._prev_instances = self._convertDictPredictionToInstance(self._prev_instances) + self._curr_instances = { + "image_size": self._img_size, + "pred_boxes": self._curr_boxes, + "scores": self._curr_scores, + "pred_classes": self._curr_classes, + "pred_masks": self._curr_masks, + } + self._curr_instances = self._convertDictPredictionToInstance(self._curr_instances) + + self._max_num_instances = 200 + self._max_lost_frame_count = 0 + self._min_box_rel_dim = 0.02 + self._min_instance_period = 1 + self._track_iou_threshold = 0.5 + + def _convertDictPredictionToInstance(self, prediction: Dict) -> Instances: + """ + convert prediction from Dict to D2 Instances format + """ + res = Instances( + image_size=torch.IntTensor(prediction["image_size"]), + pred_boxes=Boxes(torch.FloatTensor(prediction["pred_boxes"])), + pred_masks=torch.IntTensor(prediction["pred_masks"]), + pred_classes=torch.IntTensor(prediction["pred_classes"]), + scores=torch.FloatTensor(prediction["scores"]), + ) + return res + + def test_init(self): + cfg = { + "_target_": "detectron2.tracking.bbox_iou_tracker.BBoxIOUTracker", + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_from_config(self): + cfg = CfgNode_() + cfg.TRACKER_HEADS = CfgNode_() + cfg.TRACKER_HEADS.TRACKER_NAME = "BBoxIOUTracker" + cfg.TRACKER_HEADS.VIDEO_HEIGHT = int(self._img_size[0]) + cfg.TRACKER_HEADS.VIDEO_WIDTH = int(self._img_size[1]) + cfg.TRACKER_HEADS.MAX_NUM_INSTANCES = self._max_num_instances + cfg.TRACKER_HEADS.MAX_LOST_FRAME_COUNT = self._max_lost_frame_count + cfg.TRACKER_HEADS.MIN_BOX_REL_DIM = self._min_box_rel_dim + cfg.TRACKER_HEADS.MIN_INSTANCE_PERIOD = self._min_instance_period + cfg.TRACKER_HEADS.TRACK_IOU_THRESHOLD = self._track_iou_threshold + tracker = build_tracker_head(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_initialize_extra_fields(self): + cfg = { + "_target_": "detectron2.tracking.bbox_iou_tracker.BBoxIOUTracker", + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + instances = tracker._initialize_extra_fields(self._curr_instances) + self.assertTrue(instances.has("ID")) + self.assertTrue(instances.has("ID_period")) + self.assertTrue(instances.has("lost_frame_count")) + + def test_assign_new_id(self): + cfg = { + "_target_": "detectron2.tracking.bbox_iou_tracker.BBoxIOUTracker", + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + instances = deepcopy(self._curr_instances) + instances = tracker._initialize_extra_fields(instances) + instances = tracker._assign_new_id(instances) + self.assertTrue(len(instances.ID) == 2) + self.assertTrue(instances.ID[0] == 2) + self.assertTrue(instances.ID[1] == 3) + + def test_update(self): + cfg = { + "_target_": "detectron2.tracking.bbox_iou_tracker.BBoxIOUTracker", + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker.update(self._prev_instances) + self.assertTrue(len(prev_instances.ID) == 2) + self.assertTrue(prev_instances.ID[0] == 0) + self.assertTrue(prev_instances.ID[1] == 1) + curr_instances = tracker.update(self._curr_instances) + self.assertTrue(len(curr_instances.ID) == 2) + self.assertTrue(curr_instances.ID[0] == 1) + self.assertTrue(curr_instances.ID[1] == 0) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/tracking/test_hungarian_tracker.py b/detectron2/tests/tracking/test_hungarian_tracker.py new file mode 100755 index 0000000..660c635 --- /dev/null +++ b/detectron2/tests/tracking/test_hungarian_tracker.py @@ -0,0 +1,102 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import numpy as np +import unittest +from typing import Dict +import torch + +from detectron2.config import instantiate +from detectron2.structures import Boxes, Instances + + +class TestBaseHungarianTracker(unittest.TestCase): + def setUp(self): + self._img_size = np.array([600, 800]) + self._prev_boxes = np.array( + [ + [101, 101, 200, 200], + [301, 301, 450, 450], + ] + ).astype(np.float32) + self._prev_scores = np.array([0.9, 0.9]) + self._prev_classes = np.array([1, 1]) + self._prev_masks = np.ones((2, 600, 800)).astype("uint8") + self._curr_boxes = np.array( + [ + [302, 303, 451, 452], + [101, 102, 201, 203], + ] + ).astype(np.float32) + self._curr_scores = np.array([0.95, 0.85]) + self._curr_classes = np.array([1, 1]) + self._curr_masks = np.ones((2, 600, 800)).astype("uint8") + + self._prev_instances = { + "image_size": self._img_size, + "pred_boxes": self._prev_boxes, + "scores": self._prev_scores, + "pred_classes": self._prev_classes, + "pred_masks": self._prev_masks, + } + self._prev_instances = self._convertDictPredictionToInstance(self._prev_instances) + self._curr_instances = { + "image_size": self._img_size, + "pred_boxes": self._curr_boxes, + "scores": self._curr_scores, + "pred_classes": self._curr_classes, + "pred_masks": self._curr_masks, + } + self._curr_instances = self._convertDictPredictionToInstance(self._curr_instances) + + self._max_num_instances = 200 + self._max_lost_frame_count = 0 + self._min_box_rel_dim = 0.02 + self._min_instance_period = 1 + self._track_iou_threshold = 0.5 + + def _convertDictPredictionToInstance(self, prediction: Dict) -> Instances: + """ + convert prediction from Dict to D2 Instances format + """ + res = Instances( + image_size=torch.IntTensor(prediction["image_size"]), + pred_boxes=Boxes(torch.FloatTensor(prediction["pred_boxes"])), + pred_masks=torch.IntTensor(prediction["pred_masks"]), + pred_classes=torch.IntTensor(prediction["pred_classes"]), + scores=torch.FloatTensor(prediction["scores"]), + ) + return res + + def test_init(self): + cfg = { + "_target_": "detectron2.tracking.hungarian_tracker.BaseHungarianTracker", + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_initialize_extra_fields(self): + cfg = { + "_target_": "detectron2.tracking.hungarian_tracker.BaseHungarianTracker", + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + instances = tracker._initialize_extra_fields(self._curr_instances) + self.assertTrue(instances.has("ID")) + self.assertTrue(instances.has("ID_period")) + self.assertTrue(instances.has("lost_frame_count")) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/tracking/test_iou_weighted_hungarian_bbox_iou_tracker.py b/detectron2/tests/tracking/test_iou_weighted_hungarian_bbox_iou_tracker.py new file mode 100755 index 0000000..6947399 --- /dev/null +++ b/detectron2/tests/tracking/test_iou_weighted_hungarian_bbox_iou_tracker.py @@ -0,0 +1,225 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import numpy as np +import unittest +from typing import Dict +import torch + +from detectron2.config import CfgNode as CfgNode_ +from detectron2.config import instantiate +from detectron2.structures import Boxes, Instances +from detectron2.tracking.base_tracker import build_tracker_head +from detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker import ( # noqa + IOUWeightedHungarianBBoxIOUTracker, +) + + +class TestIOUWeightedHungarianBBoxIOUTracker(unittest.TestCase): + def setUp(self): + self._img_size = np.array([600, 800]) + self._prev_boxes = np.array( + [ + [101, 101, 200, 200], + [301, 301, 450, 450], + ] + ).astype(np.float32) + self._prev_scores = np.array([0.9, 0.9]) + self._prev_classes = np.array([1, 1]) + self._prev_masks = np.ones((2, 600, 800)).astype("uint8") + self._curr_boxes = np.array( + [ + [302, 303, 451, 452], + [101, 102, 201, 203], + ] + ).astype(np.float32) + self._curr_scores = np.array([0.95, 0.85]) + self._curr_classes = np.array([1, 1]) + self._curr_masks = np.ones((2, 600, 800)).astype("uint8") + + self._prev_instances = { + "image_size": self._img_size, + "pred_boxes": self._prev_boxes, + "scores": self._prev_scores, + "pred_classes": self._prev_classes, + "pred_masks": self._prev_masks, + } + self._prev_instances = self._convertDictPredictionToInstance(self._prev_instances) + self._curr_instances = { + "image_size": self._img_size, + "pred_boxes": self._curr_boxes, + "scores": self._curr_scores, + "pred_classes": self._curr_classes, + "pred_masks": self._curr_masks, + } + self._curr_instances = self._convertDictPredictionToInstance(self._curr_instances) + + self._max_num_instances = 10 + self._max_lost_frame_count = 3 + self._min_box_rel_dim = 0.02 + self._min_instance_period = 1 + self._track_iou_threshold = 0.5 + + def _convertDictPredictionToInstance(self, prediction: Dict) -> Instances: + """ + convert prediction from Dict to D2 Instances format + """ + res = Instances( + image_size=torch.IntTensor(prediction["image_size"]), + pred_boxes=Boxes(torch.FloatTensor(prediction["pred_boxes"])), + pred_masks=torch.IntTensor(prediction["pred_masks"]), + pred_classes=torch.IntTensor(prediction["pred_classes"]), + scores=torch.FloatTensor(prediction["scores"]), + ) + return res + + def test_init(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_from_config(self): + cfg = CfgNode_() + cfg.TRACKER_HEADS = CfgNode_() + cfg.TRACKER_HEADS.TRACKER_NAME = "IOUWeightedHungarianBBoxIOUTracker" + cfg.TRACKER_HEADS.VIDEO_HEIGHT = int(self._img_size[0]) + cfg.TRACKER_HEADS.VIDEO_WIDTH = int(self._img_size[1]) + cfg.TRACKER_HEADS.MAX_NUM_INSTANCES = self._max_num_instances + cfg.TRACKER_HEADS.MAX_LOST_FRAME_COUNT = self._max_lost_frame_count + cfg.TRACKER_HEADS.MIN_BOX_REL_DIM = self._min_box_rel_dim + cfg.TRACKER_HEADS.MIN_INSTANCE_PERIOD = self._min_instance_period + cfg.TRACKER_HEADS.TRACK_IOU_THRESHOLD = self._track_iou_threshold + tracker = build_tracker_head(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_initialize_extra_fields(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + instances = tracker._initialize_extra_fields(self._curr_instances) + self.assertTrue(instances.has("ID")) + self.assertTrue(instances.has("ID_period")) + self.assertTrue(instances.has("lost_frame_count")) + + def test_process_matched_idx(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker._initialize_extra_fields(self._prev_instances) + tracker._prev_instances = prev_instances + curr_instances = tracker._initialize_extra_fields(self._curr_instances) + matched_idx = np.array([0]) + matched_prev_idx = np.array([1]) + curr_instances = tracker._process_matched_idx(curr_instances, matched_idx, matched_prev_idx) + self.assertTrue(curr_instances.ID[0] == 1) + + def test_process_unmatched_idx(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker._initialize_extra_fields(self._prev_instances) + tracker._prev_instances = prev_instances + curr_instances = tracker._initialize_extra_fields(self._curr_instances) + matched_idx = np.array([0]) + matched_prev_idx = np.array([1]) + curr_instances = tracker._process_matched_idx(curr_instances, matched_idx, matched_prev_idx) + curr_instances = tracker._process_unmatched_idx(curr_instances, matched_idx) + self.assertTrue(curr_instances.ID[1] == 2) + + def test_process_unmatched_prev_idx(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker._initialize_extra_fields(self._prev_instances) + prev_instances.ID_period = [3, 3] + tracker._prev_instances = prev_instances + curr_instances = tracker._initialize_extra_fields(self._curr_instances) + matched_idx = np.array([0]) + matched_prev_idx = np.array([1]) + curr_instances = tracker._process_matched_idx(curr_instances, matched_idx, matched_prev_idx) + curr_instances = tracker._process_unmatched_idx(curr_instances, matched_idx) + curr_instances = tracker._process_unmatched_prev_idx(curr_instances, matched_prev_idx) + self.assertTrue(curr_instances.ID[2] == 0) + + def test_assign_cost_matrix_values(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + pair1 = {"idx": 0, "prev_idx": 1, "IoU": 0.6} + pair2 = {"idx": 1, "prev_idx": 0, "IoU": 0.8} + bbox_pairs = [pair1, pair2] + cost_matrix = np.full((2, 2), np.inf) + target_matrix = copy.deepcopy(cost_matrix) + target_matrix[0, 1] = -0.6 + target_matrix[1, 0] = -0.8 + cost_matrix = tracker.assign_cost_matrix_values(cost_matrix, bbox_pairs) + self.assertTrue(np.allclose(cost_matrix, target_matrix)) + + def test_update(self): + cfg = { + "_target_": "detectron2.tracking.iou_weighted_hungarian_bbox_iou_tracker.IOUWeightedHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + _ = tracker.update(self._prev_instances) + curr_instances = tracker.update(self._curr_instances) + self.assertTrue(curr_instances.ID[0] == 1) + self.assertTrue(curr_instances.ID[1] == 0) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/tracking/test_vanilla_hungarian_bbox_iou_tracker.py b/detectron2/tests/tracking/test_vanilla_hungarian_bbox_iou_tracker.py new file mode 100755 index 0000000..c33e3d9 --- /dev/null +++ b/detectron2/tests/tracking/test_vanilla_hungarian_bbox_iou_tracker.py @@ -0,0 +1,225 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +import copy +import numpy as np +import unittest +from typing import Dict +import torch + +from detectron2.config import CfgNode as CfgNode_ +from detectron2.config import instantiate +from detectron2.structures import Boxes, Instances +from detectron2.tracking.base_tracker import build_tracker_head +from detectron2.tracking.vanilla_hungarian_bbox_iou_tracker import ( # noqa + VanillaHungarianBBoxIOUTracker, +) + + +class TestVanillaHungarianBBoxIOUTracker(unittest.TestCase): + def setUp(self): + self._img_size = np.array([600, 800]) + self._prev_boxes = np.array( + [ + [101, 101, 200, 200], + [301, 301, 450, 450], + ] + ).astype(np.float32) + self._prev_scores = np.array([0.9, 0.9]) + self._prev_classes = np.array([1, 1]) + self._prev_masks = np.ones((2, 600, 800)).astype("uint8") + self._curr_boxes = np.array( + [ + [302, 303, 451, 452], + [101, 102, 201, 203], + ] + ).astype(np.float32) + self._curr_scores = np.array([0.95, 0.85]) + self._curr_classes = np.array([1, 1]) + self._curr_masks = np.ones((2, 600, 800)).astype("uint8") + + self._prev_instances = { + "image_size": self._img_size, + "pred_boxes": self._prev_boxes, + "scores": self._prev_scores, + "pred_classes": self._prev_classes, + "pred_masks": self._prev_masks, + } + self._prev_instances = self._convertDictPredictionToInstance(self._prev_instances) + self._curr_instances = { + "image_size": self._img_size, + "pred_boxes": self._curr_boxes, + "scores": self._curr_scores, + "pred_classes": self._curr_classes, + "pred_masks": self._curr_masks, + } + self._curr_instances = self._convertDictPredictionToInstance(self._curr_instances) + + self._max_num_instances = 10 + self._max_lost_frame_count = 3 + self._min_box_rel_dim = 0.02 + self._min_instance_period = 1 + self._track_iou_threshold = 0.5 + + def _convertDictPredictionToInstance(self, prediction: Dict) -> Instances: + """ + convert prediction from Dict to D2 Instances format + """ + res = Instances( + image_size=torch.IntTensor(prediction["image_size"]), + pred_boxes=Boxes(torch.FloatTensor(prediction["pred_boxes"])), + pred_masks=torch.IntTensor(prediction["pred_masks"]), + pred_classes=torch.IntTensor(prediction["pred_classes"]), + scores=torch.FloatTensor(prediction["scores"]), + ) + return res + + def test_init(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_from_config(self): + cfg = CfgNode_() + cfg.TRACKER_HEADS = CfgNode_() + cfg.TRACKER_HEADS.TRACKER_NAME = "VanillaHungarianBBoxIOUTracker" + cfg.TRACKER_HEADS.VIDEO_HEIGHT = int(self._img_size[0]) + cfg.TRACKER_HEADS.VIDEO_WIDTH = int(self._img_size[1]) + cfg.TRACKER_HEADS.MAX_NUM_INSTANCES = self._max_num_instances + cfg.TRACKER_HEADS.MAX_LOST_FRAME_COUNT = self._max_lost_frame_count + cfg.TRACKER_HEADS.MIN_BOX_REL_DIM = self._min_box_rel_dim + cfg.TRACKER_HEADS.MIN_INSTANCE_PERIOD = self._min_instance_period + cfg.TRACKER_HEADS.TRACK_IOU_THRESHOLD = self._track_iou_threshold + tracker = build_tracker_head(cfg) + self.assertTrue(tracker._video_height == self._img_size[0]) + + def test_initialize_extra_fields(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + instances = tracker._initialize_extra_fields(self._curr_instances) + self.assertTrue(instances.has("ID")) + self.assertTrue(instances.has("ID_period")) + self.assertTrue(instances.has("lost_frame_count")) + + def test_process_matched_idx(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker._initialize_extra_fields(self._prev_instances) + tracker._prev_instances = prev_instances + curr_instances = tracker._initialize_extra_fields(self._curr_instances) + matched_idx = np.array([0]) + matched_prev_idx = np.array([1]) + curr_instances = tracker._process_matched_idx(curr_instances, matched_idx, matched_prev_idx) + self.assertTrue(curr_instances.ID[0] == 1) + + def test_process_unmatched_idx(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker._initialize_extra_fields(self._prev_instances) + tracker._prev_instances = prev_instances + curr_instances = tracker._initialize_extra_fields(self._curr_instances) + matched_idx = np.array([0]) + matched_prev_idx = np.array([1]) + curr_instances = tracker._process_matched_idx(curr_instances, matched_idx, matched_prev_idx) + curr_instances = tracker._process_unmatched_idx(curr_instances, matched_idx) + self.assertTrue(curr_instances.ID[1] == 2) + + def test_process_unmatched_prev_idx(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + prev_instances = tracker._initialize_extra_fields(self._prev_instances) + prev_instances.ID_period = [3, 3] + tracker._prev_instances = prev_instances + curr_instances = tracker._initialize_extra_fields(self._curr_instances) + matched_idx = np.array([0]) + matched_prev_idx = np.array([1]) + curr_instances = tracker._process_matched_idx(curr_instances, matched_idx, matched_prev_idx) + curr_instances = tracker._process_unmatched_idx(curr_instances, matched_idx) + curr_instances = tracker._process_unmatched_prev_idx(curr_instances, matched_prev_idx) + self.assertTrue(curr_instances.ID[2] == 0) + + def test_assign_cost_matrix_values(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + pair1 = {"idx": 0, "prev_idx": 1} + pair2 = {"idx": 1, "prev_idx": 0} + bbox_pairs = [pair1, pair2] + cost_matrix = np.full((2, 2), np.inf) + target_matrix = copy.deepcopy(cost_matrix) + target_matrix[0, 1] = -1 + target_matrix[1, 0] = -1 + cost_matrix = tracker.assign_cost_matrix_values(cost_matrix, bbox_pairs) + self.assertTrue(np.allclose(cost_matrix, target_matrix)) + + def test_update(self): + cfg = { + "_target_": "detectron2.tracking.vanilla_hungarian_bbox_iou_tracker.VanillaHungarianBBoxIOUTracker", # noqa + "video_height": self._img_size[0], + "video_width": self._img_size[1], + "max_num_instances": self._max_num_instances, + "max_lost_frame_count": self._max_lost_frame_count, + "min_box_rel_dim": self._min_box_rel_dim, + "min_instance_period": self._min_instance_period, + "track_iou_threshold": self._track_iou_threshold, + } + tracker = instantiate(cfg) + _ = tracker.update(self._prev_instances) + curr_instances = tracker.update(self._curr_instances) + self.assertTrue(curr_instances.ID[0] == 1) + self.assertTrue(curr_instances.ID[1] == 0) + + +if __name__ == "__main__": + unittest.main() diff --git a/detectron2/tests/utils/test_tensorboardx.py b/detectron2/tests/utils/test_tensorboardx.py new file mode 100755 index 0000000..885fb8d --- /dev/null +++ b/detectron2/tests/utils/test_tensorboardx.py @@ -0,0 +1,23 @@ +import os +import tempfile +import unittest + +from detectron2.utils.events import TensorboardXWriter + + +# TODO Fix up capitalization +class TestTensorboardXWriter(unittest.TestCase): + def test_no_files_created(self) -> None: + with tempfile.TemporaryDirectory() as tmp_dir: + writer = TensorboardXWriter(tmp_dir) + writer.close() + + self.assertFalse(os.listdir(tmp_dir)) + + def test_single_write(self) -> None: + with tempfile.TemporaryDirectory() as tmp_dir: + writer = TensorboardXWriter(tmp_dir) + writer._writer.add_scalar("testing", 1, 1) + writer.close() + + self.assertTrue(os.listdir(tmp_dir)) diff --git a/detectron2/tools/README.md b/detectron2/tools/README.md new file mode 100755 index 0000000..0b40d53 --- /dev/null +++ b/detectron2/tools/README.md @@ -0,0 +1,49 @@ + +This directory contains a few example scripts that demonstrate features of detectron2. + + +* `train_net.py` + +An example training script that's made to train builtin models of detectron2. + +For usage, see [GETTING_STARTED.md](../GETTING_STARTED.md). + +* `plain_train_net.py` + +Similar to `train_net.py`, but implements a training loop instead of using `Trainer`. +This script includes fewer features but it may be more friendly to hackers. + +* `benchmark.py` + +Benchmark the training speed, inference speed or data loading speed of a given config. + +Usage: +``` +python benchmark.py --config-file config.yaml --task train/eval/data [optional DDP flags] +``` + +* `analyze_model.py` + +Analyze FLOPs, parameters, activations of a detectron2 model. See its `--help` for usage. + +* `visualize_json_results.py` + +Visualize the json instance detection/segmentation results dumped by `COCOEvalutor` or `LVISEvaluator` + +Usage: +``` +python visualize_json_results.py --input x.json --output dir/ --dataset coco_2017_val +``` +If not using a builtin dataset, you'll need your own script or modify this script. + +* `visualize_data.py` + +Visualize ground truth raw annotations or training data (after preprocessing/augmentations). + +Usage: +``` +python visualize_data.py --config-file config.yaml --source annotation/dataloader --output-dir dir/ [--show] +``` + +NOTE: the script does not stop by itself when using `--source dataloader` because a training +dataloader is usually infinite. diff --git a/detectron2/tools/__init__.py b/detectron2/tools/__init__.py new file mode 100755 index 0000000..e69de29 diff --git a/detectron2/tools/analyze_model.py b/detectron2/tools/analyze_model.py new file mode 100755 index 0000000..8e38f8b --- /dev/null +++ b/detectron2/tools/analyze_model.py @@ -0,0 +1,159 @@ +# -*- coding: utf-8 -*- +# Copyright (c) Facebook, Inc. and its affiliates. + +import logging +import numpy as np +from collections import Counter +import tqdm +from fvcore.nn import flop_count_table # can also try flop_count_str + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import CfgNode, LazyConfig, get_cfg, instantiate +from detectron2.data import build_detection_test_loader +from detectron2.engine import default_argument_parser +from detectron2.modeling import build_model +from detectron2.utils.analysis import ( + FlopCountAnalysis, + activation_count_operators, + parameter_count_table, +) +from detectron2.utils.logger import setup_logger + +logger = logging.getLogger("detectron2") + + +def setup(args): + if args.config_file.endswith(".yaml"): + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.DATALOADER.NUM_WORKERS = 0 + cfg.merge_from_list(args.opts) + cfg.freeze() + else: + cfg = LazyConfig.load(args.config_file) + cfg = LazyConfig.apply_overrides(cfg, args.opts) + setup_logger(name="fvcore") + setup_logger() + return cfg + + +def do_flop(cfg): + if isinstance(cfg, CfgNode): + data_loader = build_detection_test_loader(cfg, cfg.DATASETS.TEST[0]) + model = build_model(cfg) + DetectionCheckpointer(model).load(cfg.MODEL.WEIGHTS) + else: + data_loader = instantiate(cfg.dataloader.test) + model = instantiate(cfg.model) + model.to(cfg.train.device) + DetectionCheckpointer(model).load(cfg.train.init_checkpoint) + model.eval() + + counts = Counter() + total_flops = [] + for idx, data in zip(tqdm.trange(args.num_inputs), data_loader): # noqa + flops = FlopCountAnalysis(model, data) + if idx > 0: + flops.unsupported_ops_warnings(False).uncalled_modules_warnings(False) + counts += flops.by_operator() + total_flops.append(flops.total()) + + logger.info("Flops table computed from only one input sample:\n" + flop_count_table(flops)) + logger.info( + "Average GFlops for each type of operators:\n" + + str([(k, v / (idx + 1) / 1e9) for k, v in counts.items()]) + ) + logger.info( + "Total GFlops: {:.1f}±{:.1f}".format(np.mean(total_flops) / 1e9, np.std(total_flops) / 1e9) + ) + + +def do_activation(cfg): + if isinstance(cfg, CfgNode): + data_loader = build_detection_test_loader(cfg, cfg.DATASETS.TEST[0]) + model = build_model(cfg) + DetectionCheckpointer(model).load(cfg.MODEL.WEIGHTS) + else: + data_loader = instantiate(cfg.dataloader.test) + model = instantiate(cfg.model) + model.to(cfg.train.device) + DetectionCheckpointer(model).load(cfg.train.init_checkpoint) + model.eval() + + counts = Counter() + total_activations = [] + for idx, data in zip(tqdm.trange(args.num_inputs), data_loader): # noqa + count = activation_count_operators(model, data) + counts += count + total_activations.append(sum(count.values())) + logger.info( + "(Million) Activations for Each Type of Operators:\n" + + str([(k, v / idx) for k, v in counts.items()]) + ) + logger.info( + "Total (Million) Activations: {}±{}".format( + np.mean(total_activations), np.std(total_activations) + ) + ) + + +def do_parameter(cfg): + if isinstance(cfg, CfgNode): + model = build_model(cfg) + else: + model = instantiate(cfg.model) + logger.info("Parameter Count:\n" + parameter_count_table(model, max_depth=5)) + + +def do_structure(cfg): + if isinstance(cfg, CfgNode): + model = build_model(cfg) + else: + model = instantiate(cfg.model) + logger.info("Model Structure:\n" + str(model)) + + +if __name__ == "__main__": + parser = default_argument_parser( + epilog=""" +Examples: + +To show parameters of a model: +$ ./analyze_model.py --tasks parameter \\ + --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml + +Flops and activations are data-dependent, therefore inputs and model weights +are needed to count them: + +$ ./analyze_model.py --num-inputs 100 --tasks flop \\ + --config-file ../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml \\ + MODEL.WEIGHTS /path/to/model.pkl +""" + ) + parser.add_argument( + "--tasks", + choices=["flop", "activation", "parameter", "structure"], + required=True, + nargs="+", + ) + parser.add_argument( + "-n", + "--num-inputs", + default=100, + type=int, + help="number of inputs used to compute statistics for flops/activations, " + "both are data dependent.", + ) + args = parser.parse_args() + assert not args.eval_only + assert args.num_gpus == 1 + + cfg = setup(args) + + for task in args.tasks: + { + "flop": do_flop, + "activation": do_activation, + "parameter": do_parameter, + "structure": do_structure, + }[task](cfg) diff --git a/detectron2/tools/benchmark.py b/detectron2/tools/benchmark.py new file mode 100755 index 0000000..c2d673f --- /dev/null +++ b/detectron2/tools/benchmark.py @@ -0,0 +1,197 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +""" +A script to benchmark builtin models. + +Note: this script has an extra dependency of psutil. +""" + +import itertools +import logging +import psutil +import torch +import tqdm +from fvcore.common.timer import Timer +from torch.nn.parallel import DistributedDataParallel + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import LazyConfig, get_cfg, instantiate +from detectron2.data import ( + DatasetFromList, + build_detection_test_loader, + build_detection_train_loader, +) +from detectron2.data.benchmark import DataLoaderBenchmark +from detectron2.engine import AMPTrainer, SimpleTrainer, default_argument_parser, hooks, launch +from detectron2.modeling import build_model +from detectron2.solver import build_optimizer +from detectron2.utils import comm +from detectron2.utils.collect_env import collect_env_info +from detectron2.utils.events import CommonMetricPrinter +from detectron2.utils.logger import setup_logger + +logger = logging.getLogger("detectron2") + + +def setup(args): + if args.config_file.endswith(".yaml"): + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.SOLVER.BASE_LR = 0.001 # Avoid NaNs. Not useful in this script anyway. + cfg.merge_from_list(args.opts) + cfg.freeze() + else: + cfg = LazyConfig.load(args.config_file) + cfg = LazyConfig.apply_overrides(cfg, args.opts) + setup_logger(distributed_rank=comm.get_rank()) + return cfg + + +def create_data_benchmark(cfg, args): + if args.config_file.endswith(".py"): + dl_cfg = cfg.dataloader.train + dl_cfg._target_ = DataLoaderBenchmark + return instantiate(dl_cfg) + else: + kwargs = build_detection_train_loader.from_config(cfg) + kwargs.pop("aspect_ratio_grouping", None) + kwargs["_target_"] = DataLoaderBenchmark + return instantiate(kwargs) + + +def RAM_msg(): + vram = psutil.virtual_memory() + return "RAM Usage: {:.2f}/{:.2f} GB".format( + (vram.total - vram.available) / 1024**3, vram.total / 1024**3 + ) + + +def benchmark_data(args): + cfg = setup(args) + logger.info("After spawning " + RAM_msg()) + + benchmark = create_data_benchmark(cfg, args) + benchmark.benchmark_distributed(250, 10) + # test for a few more rounds + for k in range(10): + logger.info(f"Iteration {k} " + RAM_msg()) + benchmark.benchmark_distributed(250, 1) + + +def benchmark_data_advanced(args): + # benchmark dataloader with more details to help analyze performance bottleneck + cfg = setup(args) + benchmark = create_data_benchmark(cfg, args) + + if comm.get_rank() == 0: + benchmark.benchmark_dataset(100) + benchmark.benchmark_mapper(100) + benchmark.benchmark_workers(100, warmup=10) + benchmark.benchmark_IPC(100, warmup=10) + if comm.get_world_size() > 1: + benchmark.benchmark_distributed(100) + logger.info("Rerun ...") + benchmark.benchmark_distributed(100) + + +def benchmark_train(args): + cfg = setup(args) + model = build_model(cfg) + logger.info("Model:\n{}".format(model)) + if comm.get_world_size() > 1: + model = DistributedDataParallel( + model, device_ids=[comm.get_local_rank()], broadcast_buffers=False + ) + optimizer = build_optimizer(cfg, model) + checkpointer = DetectionCheckpointer(model, optimizer=optimizer) + checkpointer.load(cfg.MODEL.WEIGHTS) + + cfg.defrost() + cfg.DATALOADER.NUM_WORKERS = 2 + data_loader = build_detection_train_loader(cfg) + dummy_data = list(itertools.islice(data_loader, 100)) + + def f(): + data = DatasetFromList(dummy_data, copy=False, serialize=False) + while True: + yield from data + + max_iter = 400 + trainer = (AMPTrainer if cfg.SOLVER.AMP.ENABLED else SimpleTrainer)(model, f(), optimizer) + trainer.register_hooks( + [ + hooks.IterationTimer(), + hooks.PeriodicWriter([CommonMetricPrinter(max_iter)]), + hooks.TorchProfiler( + lambda trainer: trainer.iter == max_iter - 1, cfg.OUTPUT_DIR, save_tensorboard=True + ), + ] + ) + trainer.train(1, max_iter) + + +@torch.no_grad() +def benchmark_eval(args): + cfg = setup(args) + if args.config_file.endswith(".yaml"): + model = build_model(cfg) + DetectionCheckpointer(model).load(cfg.MODEL.WEIGHTS) + + cfg.defrost() + cfg.DATALOADER.NUM_WORKERS = 0 + data_loader = build_detection_test_loader(cfg, cfg.DATASETS.TEST[0]) + else: + model = instantiate(cfg.model) + model.to(cfg.train.device) + DetectionCheckpointer(model).load(cfg.train.init_checkpoint) + + cfg.dataloader.num_workers = 0 + data_loader = instantiate(cfg.dataloader.test) + + model.eval() + logger.info("Model:\n{}".format(model)) + dummy_data = DatasetFromList(list(itertools.islice(data_loader, 100)), copy=False) + + def f(): + while True: + yield from dummy_data + + for k in range(5): # warmup + model(dummy_data[k]) + + max_iter = 300 + timer = Timer() + with tqdm.tqdm(total=max_iter) as pbar: + for idx, d in enumerate(f()): + if idx == max_iter: + break + model(d) + pbar.update() + logger.info("{} iters in {} seconds.".format(max_iter, timer.seconds())) + + +if __name__ == "__main__": + parser = default_argument_parser() + parser.add_argument("--task", choices=["train", "eval", "data", "data_advanced"], required=True) + args = parser.parse_args() + assert not args.eval_only + + logger.info("Environment info:\n" + collect_env_info()) + if "data" in args.task: + print("Initial " + RAM_msg()) + if args.task == "data": + f = benchmark_data + if args.task == "data_advanced": + f = benchmark_data_advanced + elif args.task == "train": + """ + Note: training speed may not be representative. + The training cost of a R-CNN model varies with the content of the data + and the quality of the model. + """ + f = benchmark_train + elif args.task == "eval": + f = benchmark_eval + # only benchmark single-GPU inference. + assert args.num_gpus == 1 and args.num_machines == 1 + launch(f, args.num_gpus, args.num_machines, args.machine_rank, args.dist_url, args=(args,)) diff --git a/detectron2/tools/convert-torchvision-to-d2.py b/detectron2/tools/convert-torchvision-to-d2.py new file mode 100755 index 0000000..4b827d9 --- /dev/null +++ b/detectron2/tools/convert-torchvision-to-d2.py @@ -0,0 +1,56 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. + +import pickle as pkl +import sys +import torch + +""" +Usage: + # download one of the ResNet{18,34,50,101,152} models from torchvision: + wget https://download.pytorch.org/models/resnet50-19c8e357.pth -O r50.pth + # run the conversion + ./convert-torchvision-to-d2.py r50.pth r50.pkl + + # Then, use r50.pkl with the following changes in config: + +MODEL: + WEIGHTS: "/path/to/r50.pkl" + PIXEL_MEAN: [123.675, 116.280, 103.530] + PIXEL_STD: [58.395, 57.120, 57.375] + RESNETS: + DEPTH: 50 + STRIDE_IN_1X1: False +INPUT: + FORMAT: "RGB" + + These models typically produce slightly worse results than the + pre-trained ResNets we use in official configs, which are the + original ResNet models released by MSRA. +""" + +if __name__ == "__main__": + input = sys.argv[1] + + obj = torch.load(input, map_location="cpu") + + newmodel = {} + for k in list(obj.keys()): + old_k = k + if "layer" not in k: + k = "stem." + k + for t in [1, 2, 3, 4]: + k = k.replace("layer{}".format(t), "res{}".format(t + 1)) + for t in [1, 2, 3]: + k = k.replace("bn{}".format(t), "conv{}.norm".format(t)) + k = k.replace("downsample.0", "shortcut") + k = k.replace("downsample.1", "shortcut.norm") + print(old_k, "->", k) + newmodel[k] = obj.pop(old_k).detach().numpy() + + res = {"model": newmodel, "__author__": "torchvision", "matching_heuristics": True} + + with open(sys.argv[2], "wb") as f: + pkl.dump(res, f) + if obj: + print("Unconverted keys:", obj.keys()) diff --git a/detectron2/tools/deploy/CMakeLists.txt b/detectron2/tools/deploy/CMakeLists.txt new file mode 100755 index 0000000..80dae12 --- /dev/null +++ b/detectron2/tools/deploy/CMakeLists.txt @@ -0,0 +1,15 @@ +# Copyright (c) Facebook, Inc. and its affiliates. +# See https://pytorch.org/tutorials/advanced/cpp_frontend.html +cmake_minimum_required(VERSION 3.12 FATAL_ERROR) +project(torchscript_mask_rcnn) + +find_package(Torch REQUIRED) +find_package(OpenCV REQUIRED) +find_package(TorchVision REQUIRED) # needed by export-method=tracing/scripting + +add_executable(torchscript_mask_rcnn torchscript_mask_rcnn.cpp) +target_link_libraries( + torchscript_mask_rcnn + -Wl,--no-as-needed TorchVision::TorchVision -Wl,--as-needed + "${TORCH_LIBRARIES}" ${OpenCV_LIBS}) +set_property(TARGET torchscript_mask_rcnn PROPERTY CXX_STANDARD 14) diff --git a/detectron2/tools/deploy/README.md b/detectron2/tools/deploy/README.md new file mode 100755 index 0000000..e33cbeb --- /dev/null +++ b/detectron2/tools/deploy/README.md @@ -0,0 +1,66 @@ +See [deployment tutorial](https://detectron2.readthedocs.io/tutorials/deployment.html) +for some high-level background about deployment. + +This directory contains the following examples: + +1. An example script `export_model.py` + that exports a detectron2 model for deployment using different methods and formats. + +2. A C++ example that runs inference with Mask R-CNN model in TorchScript format. + +## Build +Deployment depends on libtorch and OpenCV. Some require more dependencies: + +* Running TorchScript-format models produced by `--export-method=caffe2_tracing` requires libtorch + to be built with caffe2 enabled. +* Running TorchScript-format models produced by `--export-method=tracing/scripting` requires libtorchvision (C++ library of torchvision). + +All methods are supported in one C++ file that requires all the above dependencies. +Adjust it and remove code you don't need. +As a reference, we provide a [Dockerfile](../../docker/deploy.Dockerfile) that installs all the above dependencies and builds the C++ example. + +## Use + +We show a few example commands to export and execute a Mask R-CNN model in C++. + +* `export-method=tracing, format=torchscript`: +``` +./export_model.py --config-file ../../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \ + --output ./output --export-method tracing --format torchscript \ + MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl \ + MODEL.DEVICE cuda + +./build/torchscript_mask_rcnn output/model.ts input.jpg tracing +``` + +* `export-method=scripting, format=torchscript`: +``` +./export_model.py --config-file ../../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \ + --output ./output --export-method scripting --format torchscript \ + MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl \ + +./build/torchscript_mask_rcnn output/model.ts input.jpg scripting +``` + +* `export-method=caffe2_tracing, format=torchscript`: + +``` +./export_model.py --config-file ../../configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml \ + --output ./output --export-method caffe2_tracing --format torchscript \ + MODEL.WEIGHTS detectron2://COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x/137849600/model_final_f10217.pkl \ + +./build/torchscript_mask_rcnn output/model.ts input.jpg caffe2_tracing +``` + + +## Notes: + +1. Tracing/Caffe2-tracing requires valid weights & sample inputs. + Therefore the above commands require pre-trained models and [COCO dataset](https://detectron2.readthedocs.io/tutorials/builtin_datasets.html). + You can modify the script to obtain sample inputs in other ways instead of from COCO. + +2. `--run-eval` is implemented only for tracing mode + to evaluate the exported model using the dataset in the config. + It's recommended to always verify the accuracy in case the conversion is not successful. + Evaluation can be slow if model is exported to CPU or dataset is too large ("coco_2017_val_100" is a small subset of COCO useful for evaluation). + `caffe2_tracing` accuracy may be slightly different (within 0.1 AP) from original model due to numerical precisions between different runtime. diff --git a/detectron2/tools/deploy/export_model.py b/detectron2/tools/deploy/export_model.py new file mode 100755 index 0000000..f507dff --- /dev/null +++ b/detectron2/tools/deploy/export_model.py @@ -0,0 +1,240 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +import argparse +import os +from typing import Dict, List, Tuple +import torch +from torch import Tensor, nn + +import detectron2.data.transforms as T +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import build_detection_test_loader, detection_utils +from detectron2.evaluation import COCOEvaluator, inference_on_dataset, print_csv_format +from detectron2.export import ( + STABLE_ONNX_OPSET_VERSION, + TracingAdapter, + dump_torchscript_IR, + scripting_with_instances, +) +from detectron2.modeling import GeneralizedRCNN, RetinaNet, build_model +from detectron2.modeling.postprocessing import detector_postprocess +from detectron2.projects.point_rend import add_pointrend_config +from detectron2.structures import Boxes +from detectron2.utils.env import TORCH_VERSION +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import setup_logger + + +def setup_cfg(args): + cfg = get_cfg() + # cuda context is initialized before creating dataloader, so we don't fork anymore + cfg.DATALOADER.NUM_WORKERS = 0 + add_pointrend_config(cfg) + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + return cfg + + +def export_caffe2_tracing(cfg, torch_model, inputs): + from detectron2.export import Caffe2Tracer + + tracer = Caffe2Tracer(cfg, torch_model, inputs) + if args.format == "caffe2": + caffe2_model = tracer.export_caffe2() + caffe2_model.save_protobuf(args.output) + # draw the caffe2 graph + caffe2_model.save_graph(os.path.join(args.output, "model.svg"), inputs=inputs) + return caffe2_model + elif args.format == "onnx": + import onnx + + onnx_model = tracer.export_onnx() + onnx.save(onnx_model, os.path.join(args.output, "model.onnx")) + elif args.format == "torchscript": + ts_model = tracer.export_torchscript() + with PathManager.open(os.path.join(args.output, "model.ts"), "wb") as f: + torch.jit.save(ts_model, f) + dump_torchscript_IR(ts_model, args.output) + + +# experimental. API not yet final +def export_scripting(torch_model): + assert TORCH_VERSION >= (1, 8) + fields = { + "proposal_boxes": Boxes, + "objectness_logits": Tensor, + "pred_boxes": Boxes, + "scores": Tensor, + "pred_classes": Tensor, + "pred_masks": Tensor, + "pred_keypoints": torch.Tensor, + "pred_keypoint_heatmaps": torch.Tensor, + } + assert args.format == "torchscript", "Scripting only supports torchscript format." + + class ScriptableAdapterBase(nn.Module): + # Use this adapter to workaround https://github.com/pytorch/pytorch/issues/46944 + # by not retuning instances but dicts. Otherwise the exported model is not deployable + def __init__(self): + super().__init__() + self.model = torch_model + self.eval() + + if isinstance(torch_model, GeneralizedRCNN): + + class ScriptableAdapter(ScriptableAdapterBase): + def forward(self, inputs: Tuple[Dict[str, torch.Tensor]]) -> List[Dict[str, Tensor]]: + instances = self.model.inference(inputs, do_postprocess=False) + return [i.get_fields() for i in instances] + + else: + + class ScriptableAdapter(ScriptableAdapterBase): + def forward(self, inputs: Tuple[Dict[str, torch.Tensor]]) -> List[Dict[str, Tensor]]: + instances = self.model(inputs) + return [i.get_fields() for i in instances] + + ts_model = scripting_with_instances(ScriptableAdapter(), fields) + with PathManager.open(os.path.join(args.output, "model.ts"), "wb") as f: + torch.jit.save(ts_model, f) + dump_torchscript_IR(ts_model, args.output) + # TODO inference in Python now missing postprocessing glue code + return None + + +# experimental. API not yet final +def export_tracing(torch_model, inputs): + assert TORCH_VERSION >= (1, 8) + image = inputs[0]["image"] + inputs = [{"image": image}] # remove other unused keys + + if isinstance(torch_model, GeneralizedRCNN): + + def inference(model, inputs): + # use do_postprocess=False so it returns ROI mask + inst = model.inference(inputs, do_postprocess=False)[0] + return [{"instances": inst}] + + else: + inference = None # assume that we just call the model directly + + traceable_model = TracingAdapter(torch_model, inputs, inference) + + if args.format == "torchscript": + ts_model = torch.jit.trace(traceable_model, (image,)) + with PathManager.open(os.path.join(args.output, "model.ts"), "wb") as f: + torch.jit.save(ts_model, f) + dump_torchscript_IR(ts_model, args.output) + elif args.format == "onnx": + with PathManager.open(os.path.join(args.output, "model.onnx"), "wb") as f: + torch.onnx.export(traceable_model, (image,), f, opset_version=STABLE_ONNX_OPSET_VERSION) + logger.info("Inputs schema: " + str(traceable_model.inputs_schema)) + logger.info("Outputs schema: " + str(traceable_model.outputs_schema)) + + if args.format != "torchscript": + return None + if not isinstance(torch_model, (GeneralizedRCNN, RetinaNet)): + return None + + def eval_wrapper(inputs): + """ + The exported model does not contain the final resize step, which is typically + unused in deployment but needed for evaluation. We add it manually here. + """ + input = inputs[0] + instances = traceable_model.outputs_schema(ts_model(input["image"]))[0]["instances"] + postprocessed = detector_postprocess(instances, input["height"], input["width"]) + return [{"instances": postprocessed}] + + return eval_wrapper + + +def get_sample_inputs(args): + + if args.sample_image is None: + # get a first batch from dataset + data_loader = build_detection_test_loader(cfg, cfg.DATASETS.TEST[0]) + first_batch = next(iter(data_loader)) + return first_batch + else: + # get a sample data + original_image = detection_utils.read_image(args.sample_image, format=cfg.INPUT.FORMAT) + # Do same preprocessing as DefaultPredictor + aug = T.ResizeShortestEdge( + [cfg.INPUT.MIN_SIZE_TEST, cfg.INPUT.MIN_SIZE_TEST], cfg.INPUT.MAX_SIZE_TEST + ) + height, width = original_image.shape[:2] + image = aug.get_transform(original_image).apply_image(original_image) + image = torch.as_tensor(image.astype("float32").transpose(2, 0, 1)) + + inputs = {"image": image, "height": height, "width": width} + + # Sample ready + sample_inputs = [inputs] + return sample_inputs + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description="Export a model for deployment.") + parser.add_argument( + "--format", + choices=["caffe2", "onnx", "torchscript"], + help="output format", + default="torchscript", + ) + parser.add_argument( + "--export-method", + choices=["caffe2_tracing", "tracing", "scripting"], + help="Method to export models", + default="tracing", + ) + parser.add_argument("--config-file", default="", metavar="FILE", help="path to config file") + parser.add_argument("--sample-image", default=None, type=str, help="sample image for input") + parser.add_argument("--run-eval", action="store_true") + parser.add_argument("--output", help="output directory for the converted model") + parser.add_argument( + "opts", + help="Modify config options using the command-line", + default=None, + nargs=argparse.REMAINDER, + ) + args = parser.parse_args() + logger = setup_logger() + logger.info("Command line arguments: " + str(args)) + PathManager.mkdirs(args.output) + # Disable re-specialization on new shapes. Otherwise --run-eval will be slow + torch._C._jit_set_bailout_depth(1) + + cfg = setup_cfg(args) + + # create a torch model + torch_model = build_model(cfg) + DetectionCheckpointer(torch_model).resume_or_load(cfg.MODEL.WEIGHTS) + torch_model.eval() + + # convert and save model + if args.export_method == "caffe2_tracing": + sample_inputs = get_sample_inputs(args) + exported_model = export_caffe2_tracing(cfg, torch_model, sample_inputs) + elif args.export_method == "scripting": + exported_model = export_scripting(torch_model) + elif args.export_method == "tracing": + sample_inputs = get_sample_inputs(args) + exported_model = export_tracing(torch_model, sample_inputs) + + # run evaluation with the converted model + if args.run_eval: + assert exported_model is not None, ( + "Python inference is not yet implemented for " + f"export_method={args.export_method}, format={args.format}." + ) + logger.info("Running evaluation ... this takes a long time if you export to CPU.") + dataset = cfg.DATASETS.TEST[0] + data_loader = build_detection_test_loader(cfg, dataset) + # NOTE: hard-coded evaluator. change to the evaluator for your dataset + evaluator = COCOEvaluator(dataset, output_dir=args.output) + metrics = inference_on_dataset(exported_model, data_loader, evaluator) + print_csv_format(metrics) + logger.info("Success.") diff --git a/detectron2/tools/deploy/torchscript_mask_rcnn.cpp b/detectron2/tools/deploy/torchscript_mask_rcnn.cpp new file mode 100755 index 0000000..fd6e1e9 --- /dev/null +++ b/detectron2/tools/deploy/torchscript_mask_rcnn.cpp @@ -0,0 +1,188 @@ +// Copyright (c) Facebook, Inc. and its affiliates. +// @lint-ignore-every CLANGTIDY +// This is an example code that demonstrates how to run inference +// with a torchscript format Mask R-CNN model exported by ./export_model.py +// using export method=tracing, caffe2_tracing & scripting. + +#include +#include +#include + +#include +#include +#include +#include + +// only needed for export_method=tracing +#include // @oss-only +// @fb-only: #include + +using namespace std; + +c10::IValue get_caffe2_tracing_inputs(cv::Mat& img, c10::Device device) { + const int height = img.rows; + const int width = img.cols; + // FPN models require divisibility of 32. + // Tracing mode does padding inside the graph, but caffe2_tracing does not. + assert(height % 32 == 0 && width % 32 == 0); + const int channels = 3; + + auto input = + torch::from_blob(img.data, {1, height, width, channels}, torch::kUInt8); + // NHWC to NCHW + input = input.to(device, torch::kFloat).permute({0, 3, 1, 2}).contiguous(); + + std::array im_info_data{height * 1.0f, width * 1.0f, 1.0f}; + auto im_info = + torch::from_blob(im_info_data.data(), {1, 3}).clone().to(device); + return std::make_tuple(input, im_info); +} + +c10::IValue get_tracing_inputs(cv::Mat& img, c10::Device device) { + const int height = img.rows; + const int width = img.cols; + const int channels = 3; + + auto input = + torch::from_blob(img.data, {height, width, channels}, torch::kUInt8); + // HWC to CHW + input = input.to(device, torch::kFloat).permute({2, 0, 1}).contiguous(); + return input; +} + +// create a Tuple[Dict[str, Tensor]] which is the input type of scripted model +c10::IValue get_scripting_inputs(cv::Mat& img, c10::Device device) { + const int height = img.rows; + const int width = img.cols; + const int channels = 3; + + auto img_tensor = + torch::from_blob(img.data, {height, width, channels}, torch::kUInt8); + // HWC to CHW + img_tensor = + img_tensor.to(device, torch::kFloat).permute({2, 0, 1}).contiguous(); + auto dic = c10::Dict(); + dic.insert("image", img_tensor); + return std::make_tuple(dic); +} + +c10::IValue +get_inputs(std::string export_method, cv::Mat& img, c10::Device device) { + // Given an image, create inputs in the format required by the model. + if (export_method == "tracing") + return get_tracing_inputs(img, device); + if (export_method == "caffe2_tracing") + return get_caffe2_tracing_inputs(img, device); + if (export_method == "scripting") + return get_scripting_inputs(img, device); + abort(); +} + +struct MaskRCNNOutputs { + at::Tensor pred_boxes, pred_classes, pred_masks, scores; + int num_instances() const { + return pred_boxes.sizes()[0]; + } +}; + +MaskRCNNOutputs get_outputs(std::string export_method, c10::IValue outputs) { + // Given outputs of the model, extract tensors from it to turn into a + // common MaskRCNNOutputs format. + if (export_method == "tracing") { + auto out_tuple = outputs.toTuple()->elements(); + // They are ordered alphabetically by their field name in Instances + return MaskRCNNOutputs{ + out_tuple[0].toTensor(), + out_tuple[1].toTensor(), + out_tuple[2].toTensor(), + out_tuple[3].toTensor()}; + } + if (export_method == "caffe2_tracing") { + auto out_tuple = outputs.toTuple()->elements(); + // A legacy order used by caffe2 models + return MaskRCNNOutputs{ + out_tuple[0].toTensor(), + out_tuple[2].toTensor(), + out_tuple[3].toTensor(), + out_tuple[1].toTensor()}; + } + if (export_method == "scripting") { + // With the ScriptableAdapter defined in export_model.py, the output is + // List[Dict[str, Any]]. + auto out_dict = outputs.toList().get(0).toGenericDict(); + return MaskRCNNOutputs{ + out_dict.at("pred_boxes").toTensor(), + out_dict.at("pred_classes").toTensor(), + out_dict.at("pred_masks").toTensor(), + out_dict.at("scores").toTensor()}; + } + abort(); +} + +int main(int argc, const char* argv[]) { + if (argc != 4) { + cerr << R"xx( +Usage: + ./torchscript_mask_rcnn model.ts input.jpg EXPORT_METHOD + + EXPORT_METHOD can be "tracing", "caffe2_tracing" or "scripting". +)xx"; + return 1; + } + std::string image_file = argv[2]; + std::string export_method = argv[3]; + assert( + export_method == "caffe2_tracing" || export_method == "tracing" || + export_method == "scripting"); + + torch::jit::FusionStrategy strat = {{torch::jit::FusionBehavior::DYNAMIC, 1}}; + torch::jit::setFusionStrategy(strat); + torch::autograd::AutoGradMode guard(false); + auto module = torch::jit::load(argv[1]); + + assert(module.buffers().size() > 0); + // Assume that the entire model is on the same device. + // We just put input to this device. + auto device = (*begin(module.buffers())).device(); + + cv::Mat input_img = cv::imread(image_file, cv::IMREAD_COLOR); + auto inputs = get_inputs(export_method, input_img, device); + + // Run the network + auto output = module.forward({inputs}); + if (device.is_cuda()) + c10::cuda::getCurrentCUDAStream().synchronize(); + + // run 3 more times to benchmark + int N_benchmark = 3, N_warmup = 1; + auto start_time = chrono::high_resolution_clock::now(); + for (int i = 0; i < N_benchmark + N_warmup; ++i) { + if (i == N_warmup) + start_time = chrono::high_resolution_clock::now(); + output = module.forward({inputs}); + if (device.is_cuda()) + c10::cuda::getCurrentCUDAStream().synchronize(); + } + auto end_time = chrono::high_resolution_clock::now(); + auto ms = chrono::duration_cast(end_time - start_time) + .count(); + cout << "Latency (should vary with different inputs): " + << ms * 1.0 / 1e6 / N_benchmark << " seconds" << endl; + + // Parse Mask R-CNN outputs + auto rcnn_outputs = get_outputs(export_method, output); + cout << "Number of detected objects: " << rcnn_outputs.num_instances() + << endl; + + cout << "pred_boxes: " << rcnn_outputs.pred_boxes.toString() << " " + << rcnn_outputs.pred_boxes.sizes() << endl; + cout << "scores: " << rcnn_outputs.scores.toString() << " " + << rcnn_outputs.scores.sizes() << endl; + cout << "pred_classes: " << rcnn_outputs.pred_classes.toString() << " " + << rcnn_outputs.pred_classes.sizes() << endl; + cout << "pred_masks: " << rcnn_outputs.pred_masks.toString() << " " + << rcnn_outputs.pred_masks.sizes() << endl; + + cout << rcnn_outputs.pred_boxes << endl; + return 0; +} diff --git a/detectron2/tools/lazyconfig_train_net.py b/detectron2/tools/lazyconfig_train_net.py new file mode 100755 index 0000000..bb62d36 --- /dev/null +++ b/detectron2/tools/lazyconfig_train_net.py @@ -0,0 +1,131 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Training script using the new "LazyConfig" python config files. + +This scripts reads a given python config file and runs the training or evaluation. +It can be used to train any models or dataset as long as they can be +instantiated by the recursive construction defined in the given config file. + +Besides lazy construction of models, dataloader, etc., this scripts expects a +few common configuration parameters currently defined in "configs/common/train.py". +To add more complicated training logic, you can easily add other configs +in the config file and implement a new train_net.py to handle them. +""" +import logging + +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import LazyConfig, instantiate +from detectron2.engine import ( + AMPTrainer, + SimpleTrainer, + default_argument_parser, + default_setup, + default_writers, + hooks, + launch, +) +from detectron2.engine.defaults import create_ddp_model +from detectron2.evaluation import inference_on_dataset, print_csv_format +from detectron2.utils import comm + +logger = logging.getLogger("detectron2") + + +def do_test(cfg, model): + if "evaluator" in cfg.dataloader: + ret = inference_on_dataset( + model, instantiate(cfg.dataloader.test), instantiate(cfg.dataloader.evaluator) + ) + print_csv_format(ret) + return ret + + +def do_train(args, cfg): + """ + Args: + cfg: an object with the following attributes: + model: instantiate to a module + dataloader.{train,test}: instantiate to dataloaders + dataloader.evaluator: instantiate to evaluator for test set + optimizer: instantaite to an optimizer + lr_multiplier: instantiate to a fvcore scheduler + train: other misc config defined in `configs/common/train.py`, including: + output_dir (str) + init_checkpoint (str) + amp.enabled (bool) + max_iter (int) + eval_period, log_period (int) + device (str) + checkpointer (dict) + ddp (dict) + """ + model = instantiate(cfg.model) + logger = logging.getLogger("detectron2") + logger.info("Model:\n{}".format(model)) + model.to(cfg.train.device) + + cfg.optimizer.params.model = model + optim = instantiate(cfg.optimizer) + + train_loader = instantiate(cfg.dataloader.train) + + model = create_ddp_model(model, **cfg.train.ddp) + trainer = (AMPTrainer if cfg.train.amp.enabled else SimpleTrainer)(model, train_loader, optim) + checkpointer = DetectionCheckpointer( + model, + cfg.train.output_dir, + trainer=trainer, + ) + trainer.register_hooks( + [ + hooks.IterationTimer(), + hooks.LRScheduler(scheduler=instantiate(cfg.lr_multiplier)), + hooks.PeriodicCheckpointer(checkpointer, **cfg.train.checkpointer) + if comm.is_main_process() + else None, + hooks.EvalHook(cfg.train.eval_period, lambda: do_test(cfg, model)), + hooks.PeriodicWriter( + default_writers(cfg.train.output_dir, cfg.train.max_iter), + period=cfg.train.log_period, + ) + if comm.is_main_process() + else None, + ] + ) + + checkpointer.resume_or_load(cfg.train.init_checkpoint, resume=args.resume) + if args.resume and checkpointer.has_checkpoint(): + # The checkpoint stores the training iteration that just finished, thus we start + # at the next iteration + start_iter = trainer.iter + 1 + else: + start_iter = 0 + trainer.train(start_iter, cfg.train.max_iter) + + +def main(args): + cfg = LazyConfig.load(args.config_file) + cfg = LazyConfig.apply_overrides(cfg, args.opts) + default_setup(cfg, args) + + if args.eval_only: + model = instantiate(cfg.model) + model.to(cfg.train.device) + model = create_ddp_model(model) + DetectionCheckpointer(model).load(cfg.train.init_checkpoint) + print(do_test(cfg, model)) + else: + do_train(args, cfg) + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/tools/lightning_train_net.py b/detectron2/tools/lightning_train_net.py new file mode 100755 index 0000000..7a8c5d8 --- /dev/null +++ b/detectron2/tools/lightning_train_net.py @@ -0,0 +1,239 @@ +#!/usr/bin/env python3 +# Copyright (c) Facebook, Inc. and its affiliates. +# Lightning Trainer should be considered beta at this point +# We have confirmed that training and validation run correctly and produce correct results +# Depending on how you launch the trainer, there are issues with processes terminating correctly +# This module is still dependent on D2 logging, but could be transferred to use Lightning logging + +import logging +import os +import time +import weakref +from collections import OrderedDict +from typing import Any, Dict, List +import pytorch_lightning as pl # type: ignore +from pytorch_lightning import LightningDataModule, LightningModule + +import detectron2.utils.comm as comm +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import build_detection_test_loader, build_detection_train_loader +from detectron2.engine import ( + DefaultTrainer, + SimpleTrainer, + default_argument_parser, + default_setup, + default_writers, + hooks, +) +from detectron2.evaluation import print_csv_format +from detectron2.evaluation.testing import flatten_results_dict +from detectron2.modeling import build_model +from detectron2.solver import build_lr_scheduler, build_optimizer +from detectron2.utils.events import EventStorage +from detectron2.utils.logger import setup_logger + +from train_net import build_evaluator + +logging.basicConfig(level=logging.INFO) +logger = logging.getLogger("detectron2") + + +class TrainingModule(LightningModule): + def __init__(self, cfg): + super().__init__() + if not logger.isEnabledFor(logging.INFO): # setup_logger is not called for d2 + setup_logger() + self.cfg = DefaultTrainer.auto_scale_workers(cfg, comm.get_world_size()) + self.storage: EventStorage = None + self.model = build_model(self.cfg) + + self.start_iter = 0 + self.max_iter = cfg.SOLVER.MAX_ITER + + def on_save_checkpoint(self, checkpoint: Dict[str, Any]) -> None: + checkpoint["iteration"] = self.storage.iter + + def on_load_checkpoint(self, checkpointed_state: Dict[str, Any]) -> None: + self.start_iter = checkpointed_state["iteration"] + self.storage.iter = self.start_iter + + def setup(self, stage: str): + if self.cfg.MODEL.WEIGHTS: + self.checkpointer = DetectionCheckpointer( + # Assume you want to save checkpoints together with logs/statistics + self.model, + self.cfg.OUTPUT_DIR, + ) + logger.info(f"Load model weights from checkpoint: {self.cfg.MODEL.WEIGHTS}.") + # Only load weights, use lightning checkpointing if you want to resume + self.checkpointer.load(self.cfg.MODEL.WEIGHTS) + + self.iteration_timer = hooks.IterationTimer() + self.iteration_timer.before_train() + self.data_start = time.perf_counter() + self.writers = None + + def training_step(self, batch, batch_idx): + data_time = time.perf_counter() - self.data_start + # Need to manually enter/exit since trainer may launch processes + # This ideally belongs in setup, but setup seems to run before processes are spawned + if self.storage is None: + self.storage = EventStorage(0) + self.storage.__enter__() + self.iteration_timer.trainer = weakref.proxy(self) + self.iteration_timer.before_step() + self.writers = ( + default_writers(self.cfg.OUTPUT_DIR, self.max_iter) + if comm.is_main_process() + else {} + ) + + loss_dict = self.model(batch) + SimpleTrainer.write_metrics(loss_dict, data_time) + + opt = self.optimizers() + self.storage.put_scalar( + "lr", opt.param_groups[self._best_param_group_id]["lr"], smoothing_hint=False + ) + self.iteration_timer.after_step() + self.storage.step() + # A little odd to put before step here, but it's the best way to get a proper timing + self.iteration_timer.before_step() + + if self.storage.iter % 20 == 0: + for writer in self.writers: + writer.write() + return sum(loss_dict.values()) + + def training_step_end(self, training_step_outpus): + self.data_start = time.perf_counter() + return training_step_outpus + + def training_epoch_end(self, training_step_outputs): + self.iteration_timer.after_train() + if comm.is_main_process(): + self.checkpointer.save("model_final") + for writer in self.writers: + writer.write() + writer.close() + self.storage.__exit__(None, None, None) + + def _process_dataset_evaluation_results(self) -> OrderedDict: + results = OrderedDict() + for idx, dataset_name in enumerate(self.cfg.DATASETS.TEST): + results[dataset_name] = self._evaluators[idx].evaluate() + if comm.is_main_process(): + print_csv_format(results[dataset_name]) + + if len(results) == 1: + results = list(results.values())[0] + return results + + def _reset_dataset_evaluators(self): + self._evaluators = [] + for dataset_name in self.cfg.DATASETS.TEST: + evaluator = build_evaluator(self.cfg, dataset_name) + evaluator.reset() + self._evaluators.append(evaluator) + + def on_validation_epoch_start(self, _outputs): + self._reset_dataset_evaluators() + + def validation_epoch_end(self, _outputs): + results = self._process_dataset_evaluation_results(_outputs) + + flattened_results = flatten_results_dict(results) + for k, v in flattened_results.items(): + try: + v = float(v) + except Exception as e: + raise ValueError( + "[EvalHook] eval_function should return a nested dict of float. " + "Got '{}: {}' instead.".format(k, v) + ) from e + self.storage.put_scalars(**flattened_results, smoothing_hint=False) + + def validation_step(self, batch, batch_idx: int, dataloader_idx: int = 0) -> None: + if not isinstance(batch, List): + batch = [batch] + outputs = self.model(batch) + self._evaluators[dataloader_idx].process(batch, outputs) + + def configure_optimizers(self): + optimizer = build_optimizer(self.cfg, self.model) + self._best_param_group_id = hooks.LRScheduler.get_best_param_group_id(optimizer) + scheduler = build_lr_scheduler(self.cfg, optimizer) + return [optimizer], [{"scheduler": scheduler, "interval": "step"}] + + +class DataModule(LightningDataModule): + def __init__(self, cfg): + super().__init__() + self.cfg = DefaultTrainer.auto_scale_workers(cfg, comm.get_world_size()) + + def train_dataloader(self): + return build_detection_train_loader(self.cfg) + + def val_dataloader(self): + dataloaders = [] + for dataset_name in self.cfg.DATASETS.TEST: + dataloaders.append(build_detection_test_loader(self.cfg, dataset_name)) + return dataloaders + + +def main(args): + cfg = setup(args) + train(cfg, args) + + +def train(cfg, args): + trainer_params = { + # training loop is bounded by max steps, use a large max_epochs to make + # sure max_steps is met first + "max_epochs": 10**8, + "max_steps": cfg.SOLVER.MAX_ITER, + "val_check_interval": cfg.TEST.EVAL_PERIOD if cfg.TEST.EVAL_PERIOD > 0 else 10**8, + "num_nodes": args.num_machines, + "gpus": args.num_gpus, + "num_sanity_val_steps": 0, + } + if cfg.SOLVER.AMP.ENABLED: + trainer_params["precision"] = 16 + + last_checkpoint = os.path.join(cfg.OUTPUT_DIR, "last.ckpt") + if args.resume: + # resume training from checkpoint + trainer_params["resume_from_checkpoint"] = last_checkpoint + logger.info(f"Resuming training from checkpoint: {last_checkpoint}.") + + trainer = pl.Trainer(**trainer_params) + logger.info(f"start to train with {args.num_machines} nodes and {args.num_gpus} GPUs") + + module = TrainingModule(cfg) + data_module = DataModule(cfg) + if args.eval_only: + logger.info("Running inference") + trainer.validate(module, data_module) + else: + logger.info("Running training") + trainer.fit(module, data_module) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +if __name__ == "__main__": + parser = default_argument_parser() + args = parser.parse_args() + logger.info("Command Line Args:", args) + main(args) diff --git a/detectron2/tools/plain_train_net.py b/detectron2/tools/plain_train_net.py new file mode 100755 index 0000000..be4588e --- /dev/null +++ b/detectron2/tools/plain_train_net.py @@ -0,0 +1,217 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +""" +Detectron2 training script with a plain training loop. + +This script reads a given config file and runs the training or evaluation. +It is an entry point that is able to train standard models in detectron2. + +In order to let one script support training of many models, +this script contains logic that are specific to these built-in models and therefore +may not be suitable for your own project. +For example, your research project perhaps only needs a single "evaluator". + +Therefore, we recommend you to use detectron2 as a library and take +this file as an example of how to use the library. +You may want to write your own script with your datasets and other customizations. + +Compared to "train_net.py", this script supports fewer default features. +It also includes fewer abstraction, therefore is easier to add custom logic. +""" + +import logging +import os +from collections import OrderedDict +import torch +from torch.nn.parallel import DistributedDataParallel + +import detectron2.utils.comm as comm +from detectron2.checkpoint import DetectionCheckpointer, PeriodicCheckpointer +from detectron2.config import get_cfg +from detectron2.data import ( + MetadataCatalog, + build_detection_test_loader, + build_detection_train_loader, +) +from detectron2.engine import default_argument_parser, default_setup, default_writers, launch +from detectron2.evaluation import ( + CityscapesInstanceEvaluator, + CityscapesSemSegEvaluator, + COCOEvaluator, + COCOPanopticEvaluator, + DatasetEvaluators, + LVISEvaluator, + PascalVOCDetectionEvaluator, + SemSegEvaluator, + inference_on_dataset, + print_csv_format, +) +from detectron2.modeling import build_model +from detectron2.solver import build_lr_scheduler, build_optimizer +from detectron2.utils.events import EventStorage + +logger = logging.getLogger("detectron2") + + +def get_evaluator(cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type in ["sem_seg", "coco_panoptic_seg"]: + evaluator_list.append( + SemSegEvaluator( + dataset_name, + distributed=True, + output_dir=output_folder, + ) + ) + if evaluator_type in ["coco", "coco_panoptic_seg"]: + evaluator_list.append(COCOEvaluator(dataset_name, output_dir=output_folder)) + if evaluator_type == "coco_panoptic_seg": + evaluator_list.append(COCOPanopticEvaluator(dataset_name, output_folder)) + if evaluator_type == "cityscapes_instance": + return CityscapesInstanceEvaluator(dataset_name) + if evaluator_type == "cityscapes_sem_seg": + return CityscapesSemSegEvaluator(dataset_name) + if evaluator_type == "pascal_voc": + return PascalVOCDetectionEvaluator(dataset_name) + if evaluator_type == "lvis": + return LVISEvaluator(dataset_name, cfg, True, output_folder) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format(dataset_name, evaluator_type) + ) + if len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + +def do_test(cfg, model): + results = OrderedDict() + for dataset_name in cfg.DATASETS.TEST: + data_loader = build_detection_test_loader(cfg, dataset_name) + evaluator = get_evaluator( + cfg, dataset_name, os.path.join(cfg.OUTPUT_DIR, "inference", dataset_name) + ) + results_i = inference_on_dataset(model, data_loader, evaluator) + results[dataset_name] = results_i + if comm.is_main_process(): + logger.info("Evaluation results for {} in csv format:".format(dataset_name)) + print_csv_format(results_i) + if len(results) == 1: + results = list(results.values())[0] + return results + + +def do_train(cfg, model, resume=False): + model.train() + optimizer = build_optimizer(cfg, model) + scheduler = build_lr_scheduler(cfg, optimizer) + + checkpointer = DetectionCheckpointer( + model, cfg.OUTPUT_DIR, optimizer=optimizer, scheduler=scheduler + ) + start_iter = ( + checkpointer.resume_or_load(cfg.MODEL.WEIGHTS, resume=resume).get("iteration", -1) + 1 + ) + max_iter = cfg.SOLVER.MAX_ITER + + periodic_checkpointer = PeriodicCheckpointer( + checkpointer, cfg.SOLVER.CHECKPOINT_PERIOD, max_iter=max_iter + ) + + writers = default_writers(cfg.OUTPUT_DIR, max_iter) if comm.is_main_process() else [] + + # compared to "train_net.py", we do not support accurate timing and + # precise BN here, because they are not trivial to implement in a small training loop + data_loader = build_detection_train_loader(cfg) + logger.info("Starting training from iteration {}".format(start_iter)) + with EventStorage(start_iter) as storage: + for data, iteration in zip(data_loader, range(start_iter, max_iter)): + storage.iter = iteration + + loss_dict = model(data) + losses = sum(loss_dict.values()) + assert torch.isfinite(losses).all(), loss_dict + + loss_dict_reduced = {k: v.item() for k, v in comm.reduce_dict(loss_dict).items()} + losses_reduced = sum(loss for loss in loss_dict_reduced.values()) + if comm.is_main_process(): + storage.put_scalars(total_loss=losses_reduced, **loss_dict_reduced) + + optimizer.zero_grad() + losses.backward() + optimizer.step() + storage.put_scalar("lr", optimizer.param_groups[0]["lr"], smoothing_hint=False) + scheduler.step() + + if ( + cfg.TEST.EVAL_PERIOD > 0 + and (iteration + 1) % cfg.TEST.EVAL_PERIOD == 0 + and iteration != max_iter - 1 + ): + do_test(cfg, model) + # Compared to "train_net.py", the test results are not dumped to EventStorage + comm.synchronize() + + if iteration - start_iter > 5 and ( + (iteration + 1) % 20 == 0 or iteration == max_iter - 1 + ): + for writer in writers: + writer.write() + periodic_checkpointer.step(iteration) + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup( + cfg, args + ) # if you don't like any of the default setup, write your own setup code + return cfg + + +def main(args): + cfg = setup(args) + + model = build_model(cfg) + logger.info("Model:\n{}".format(model)) + if args.eval_only: + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + return do_test(cfg, model) + + distributed = comm.get_world_size() > 1 + if distributed: + model = DistributedDataParallel( + model, device_ids=[comm.get_local_rank()], broadcast_buffers=False + ) + + do_train(cfg, model, resume=args.resume) + return do_test(cfg, model) + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/tools/train_net.py b/detectron2/tools/train_net.py new file mode 100755 index 0000000..8a6f297 --- /dev/null +++ b/detectron2/tools/train_net.py @@ -0,0 +1,163 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +""" +A main training script. + +This scripts reads a given config file and runs the training or evaluation. +It is an entry point that is made to train standard models in detectron2. + +In order to let one script support training of many models, +this script contains logic that are specific to these built-in models and therefore +may not be suitable for your own project. +For example, your research project perhaps only needs a single "evaluator". + +Therefore, we recommend you to use detectron2 as an library and take +this file as an example of how to use the library. +You may want to write your own script with your datasets and other customizations. +""" + +import logging +import os +from collections import OrderedDict + +import detectron2.utils.comm as comm +from detectron2.checkpoint import DetectionCheckpointer +from detectron2.config import get_cfg +from detectron2.data import MetadataCatalog +from detectron2.engine import DefaultTrainer, default_argument_parser, default_setup, hooks, launch +from detectron2.evaluation import ( + CityscapesInstanceEvaluator, + CityscapesSemSegEvaluator, + COCOEvaluator, + COCOPanopticEvaluator, + DatasetEvaluators, + LVISEvaluator, + PascalVOCDetectionEvaluator, + SemSegEvaluator, + verify_results, +) +from detectron2.modeling import GeneralizedRCNNWithTTA + + +def build_evaluator(cfg, dataset_name, output_folder=None): + """ + Create evaluator(s) for a given dataset. + This uses the special metadata "evaluator_type" associated with each builtin dataset. + For your own dataset, you can simply create an evaluator manually in your + script and do not have to worry about the hacky if-else logic here. + """ + if output_folder is None: + output_folder = os.path.join(cfg.OUTPUT_DIR, "inference") + evaluator_list = [] + evaluator_type = MetadataCatalog.get(dataset_name).evaluator_type + if evaluator_type in ["sem_seg", "coco_panoptic_seg"]: + evaluator_list.append( + SemSegEvaluator( + dataset_name, + distributed=True, + output_dir=output_folder, + ) + ) + if evaluator_type in ["coco", "coco_panoptic_seg"]: + evaluator_list.append(COCOEvaluator(dataset_name, output_dir=output_folder)) + if evaluator_type == "coco_panoptic_seg": + evaluator_list.append(COCOPanopticEvaluator(dataset_name, output_folder)) + if evaluator_type == "cityscapes_instance": + return CityscapesInstanceEvaluator(dataset_name) + if evaluator_type == "cityscapes_sem_seg": + return CityscapesSemSegEvaluator(dataset_name) + elif evaluator_type == "pascal_voc": + return PascalVOCDetectionEvaluator(dataset_name) + elif evaluator_type == "lvis": + return LVISEvaluator(dataset_name, output_dir=output_folder) + if len(evaluator_list) == 0: + raise NotImplementedError( + "no Evaluator for the dataset {} with the type {}".format(dataset_name, evaluator_type) + ) + elif len(evaluator_list) == 1: + return evaluator_list[0] + return DatasetEvaluators(evaluator_list) + + +class Trainer(DefaultTrainer): + """ + We use the "DefaultTrainer" which contains pre-defined default logic for + standard training workflow. They may not work for you, especially if you + are working on a new research project. In that case you can write your + own training loop. You can use "tools/plain_train_net.py" as an example. + """ + + @classmethod + def build_evaluator(cls, cfg, dataset_name, output_folder=None): + return build_evaluator(cfg, dataset_name, output_folder) + + @classmethod + def test_with_TTA(cls, cfg, model): + logger = logging.getLogger("detectron2.trainer") + # In the end of training, run an evaluation with TTA + # Only support some R-CNN models. + logger.info("Running inference with test-time augmentation ...") + model = GeneralizedRCNNWithTTA(cfg, model) + evaluators = [ + cls.build_evaluator( + cfg, name, output_folder=os.path.join(cfg.OUTPUT_DIR, "inference_TTA") + ) + for name in cfg.DATASETS.TEST + ] + res = cls.test(cfg, model, evaluators) + res = OrderedDict({k + "_TTA": v for k, v in res.items()}) + return res + + +def setup(args): + """ + Create configs and perform basic setups. + """ + cfg = get_cfg() + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.freeze() + default_setup(cfg, args) + return cfg + + +def main(args): + cfg = setup(args) + + if args.eval_only: + model = Trainer.build_model(cfg) + DetectionCheckpointer(model, save_dir=cfg.OUTPUT_DIR).resume_or_load( + cfg.MODEL.WEIGHTS, resume=args.resume + ) + res = Trainer.test(cfg, model) + if cfg.TEST.AUG.ENABLED: + res.update(Trainer.test_with_TTA(cfg, model)) + if comm.is_main_process(): + verify_results(cfg, res) + return res + + """ + If you'd like to do anything fancier than the standard training logic, + consider writing your own training loop (see plain_train_net.py) or + subclassing the trainer. + """ + trainer = Trainer(cfg) + trainer.resume_or_load(resume=args.resume) + if cfg.TEST.AUG.ENABLED: + trainer.register_hooks( + [hooks.EvalHook(0, lambda: trainer.test_with_TTA(cfg, trainer.model))] + ) + return trainer.train() + + +if __name__ == "__main__": + args = default_argument_parser().parse_args() + print("Command Line Args:", args) + launch( + main, + args.num_gpus, + num_machines=args.num_machines, + machine_rank=args.machine_rank, + dist_url=args.dist_url, + args=(args,), + ) diff --git a/detectron2/tools/visualize_data.py b/detectron2/tools/visualize_data.py new file mode 100755 index 0000000..fd0ba83 --- /dev/null +++ b/detectron2/tools/visualize_data.py @@ -0,0 +1,94 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. +import argparse +import os +from itertools import chain +import cv2 +import tqdm + +from detectron2.config import get_cfg +from detectron2.data import DatasetCatalog, MetadataCatalog, build_detection_train_loader +from detectron2.data import detection_utils as utils +from detectron2.data.build import filter_images_with_few_keypoints +from detectron2.utils.logger import setup_logger +from detectron2.utils.visualizer import Visualizer + + +def setup(args): + cfg = get_cfg() + if args.config_file: + cfg.merge_from_file(args.config_file) + cfg.merge_from_list(args.opts) + cfg.DATALOADER.NUM_WORKERS = 0 + cfg.freeze() + return cfg + + +def parse_args(in_args=None): + parser = argparse.ArgumentParser(description="Visualize ground-truth data") + parser.add_argument( + "--source", + choices=["annotation", "dataloader"], + required=True, + help="visualize the annotations or the data loader (with pre-processing)", + ) + parser.add_argument("--config-file", metavar="FILE", help="path to config file") + parser.add_argument("--output-dir", default="./", help="path to output directory") + parser.add_argument("--show", action="store_true", help="show output in a window") + parser.add_argument( + "opts", + help="Modify config options using the command-line", + default=None, + nargs=argparse.REMAINDER, + ) + return parser.parse_args(in_args) + + +if __name__ == "__main__": + args = parse_args() + logger = setup_logger() + logger.info("Arguments: " + str(args)) + cfg = setup(args) + + dirname = args.output_dir + os.makedirs(dirname, exist_ok=True) + metadata = MetadataCatalog.get(cfg.DATASETS.TRAIN[0]) + + def output(vis, fname): + if args.show: + print(fname) + cv2.imshow("window", vis.get_image()[:, :, ::-1]) + cv2.waitKey() + else: + filepath = os.path.join(dirname, fname) + print("Saving to {} ...".format(filepath)) + vis.save(filepath) + + scale = 1.0 + if args.source == "dataloader": + train_data_loader = build_detection_train_loader(cfg) + for batch in train_data_loader: + for per_image in batch: + # Pytorch tensor is in (C, H, W) format + img = per_image["image"].permute(1, 2, 0).cpu().detach().numpy() + img = utils.convert_image_to_rgb(img, cfg.INPUT.FORMAT) + + visualizer = Visualizer(img, metadata=metadata, scale=scale) + target_fields = per_image["instances"].get_fields() + labels = [metadata.thing_classes[i] for i in target_fields["gt_classes"]] + vis = visualizer.overlay_instances( + labels=labels, + boxes=target_fields.get("gt_boxes", None), + masks=target_fields.get("gt_masks", None), + keypoints=target_fields.get("gt_keypoints", None), + ) + output(vis, str(per_image["image_id"]) + ".jpg") + else: + dicts = list(chain.from_iterable([DatasetCatalog.get(k) for k in cfg.DATASETS.TRAIN])) + if cfg.MODEL.KEYPOINT_ON: + dicts = filter_images_with_few_keypoints(dicts, 1) + for dic in tqdm.tqdm(dicts): + img = utils.read_image(dic["file_name"], "RGB") + visualizer = Visualizer(img, metadata=metadata, scale=scale) + vis = visualizer.draw_dataset_dict(dic) + output(vis, os.path.basename(dic["file_name"])) diff --git a/detectron2/tools/visualize_json_results.py b/detectron2/tools/visualize_json_results.py new file mode 100755 index 0000000..472190e --- /dev/null +++ b/detectron2/tools/visualize_json_results.py @@ -0,0 +1,90 @@ +#!/usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. + +import argparse +import json +import numpy as np +import os +from collections import defaultdict +import cv2 +import tqdm + +from detectron2.data import DatasetCatalog, MetadataCatalog +from detectron2.structures import Boxes, BoxMode, Instances +from detectron2.utils.file_io import PathManager +from detectron2.utils.logger import setup_logger +from detectron2.utils.visualizer import Visualizer + + +def create_instances(predictions, image_size): + ret = Instances(image_size) + + score = np.asarray([x["score"] for x in predictions]) + chosen = (score > args.conf_threshold).nonzero()[0] + score = score[chosen] + bbox = np.asarray([predictions[i]["bbox"] for i in chosen]).reshape(-1, 4) + bbox = BoxMode.convert(bbox, BoxMode.XYWH_ABS, BoxMode.XYXY_ABS) + + labels = np.asarray([dataset_id_map(predictions[i]["category_id"]) for i in chosen]) + + ret.scores = score + ret.pred_boxes = Boxes(bbox) + ret.pred_classes = labels + + try: + ret.pred_masks = [predictions[i]["segmentation"] for i in chosen] + except KeyError: + pass + return ret + + +if __name__ == "__main__": + parser = argparse.ArgumentParser( + description="A script that visualizes the json predictions from COCO or LVIS dataset." + ) + parser.add_argument("--input", required=True, help="JSON file produced by the model") + parser.add_argument("--output", required=True, help="output directory") + parser.add_argument("--dataset", help="name of the dataset", default="coco_2017_val") + parser.add_argument("--conf-threshold", default=0.5, type=float, help="confidence threshold") + args = parser.parse_args() + + logger = setup_logger() + + with PathManager.open(args.input, "r") as f: + predictions = json.load(f) + + pred_by_image = defaultdict(list) + for p in predictions: + pred_by_image[p["image_id"]].append(p) + + dicts = list(DatasetCatalog.get(args.dataset)) + metadata = MetadataCatalog.get(args.dataset) + if hasattr(metadata, "thing_dataset_id_to_contiguous_id"): + + def dataset_id_map(ds_id): + return metadata.thing_dataset_id_to_contiguous_id[ds_id] + + elif "lvis" in args.dataset: + # LVIS results are in the same format as COCO results, but have a different + # mapping from dataset category id to contiguous category id in [0, #categories - 1] + def dataset_id_map(ds_id): + return ds_id - 1 + + else: + raise ValueError("Unsupported dataset: {}".format(args.dataset)) + + os.makedirs(args.output, exist_ok=True) + + for dic in tqdm.tqdm(dicts): + img = cv2.imread(dic["file_name"], cv2.IMREAD_COLOR)[:, :, ::-1] + basename = os.path.basename(dic["file_name"]) + + predictions = create_instances(pred_by_image[dic["image_id"]], img.shape[:2]) + vis = Visualizer(img, metadata) + vis_pred = vis.draw_instance_predictions(predictions).get_image() + + vis = Visualizer(img, metadata) + vis_gt = vis.draw_dataset_dict(dic).get_image() + + concat = np.concatenate((vis_pred, vis_gt), axis=1) + cv2.imwrite(os.path.join(args.output, basename), concat[:, :, ::-1]) diff --git a/scripts/coco_10p.sh b/scripts/coco_10p.sh new file mode 100644 index 0000000..077e170 --- /dev/null +++ b/scripts/coco_10p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco10p_teacher" +trainsets="('coco_2017_train_10p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(35000,40000)" +train_iter="45001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_10p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_10p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_10p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_10p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco10p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_10p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0029999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0039999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_10p" +gt_json="instances_train2017_10p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_10p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_10p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_10p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_10p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco10p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file diff --git a/scripts/coco_1p.sh b/scripts/coco_1p.sh new file mode 100644 index 0000000..4911320 --- /dev/null +++ b/scripts/coco_1p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco1p_teacher" +trainsets="('coco_2017_train_1p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(5000,8000)" +train_iter="10001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_1p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_1p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_1p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_1p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco1p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_1p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0004999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0009999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_1p" +gt_json="instances_train2017_1p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_1p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_1p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_1p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_1p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco1p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file diff --git a/scripts/coco_20p.sh b/scripts/coco_20p.sh new file mode 100644 index 0000000..d005708 --- /dev/null +++ b/scripts/coco_20p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco20p_teacher" +trainsets="('coco_2017_train_20p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(90000,110000)" +train_iter="120001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_20p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_20p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_20p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_20p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco20p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_20p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0069999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0099999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_20p" +gt_json="instances_train2017_20p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_20p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_20p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_20p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_20p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco20p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file diff --git a/scripts/coco_2p.sh b/scripts/coco_2p.sh new file mode 100644 index 0000000..1b16529 --- /dev/null +++ b/scripts/coco_2p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco2p_teacher" +trainsets="('coco_2017_train_2p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(15000,20000)" +train_iter="25001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_2p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_2p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_2p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_2p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco2p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_2p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0009999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0019999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_2p" +gt_json="instances_train2017_2p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_2p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_2p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_2p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_2p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco2p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file diff --git a/scripts/coco_30p.sh b/scripts/coco_30p.sh new file mode 100644 index 0000000..9e3eb7b --- /dev/null +++ b/scripts/coco_30p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco30p_teacher" +trainsets="('coco_2017_train_30p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(120000,150000)" +train_iter="160001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_30p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_30p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_30p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_30p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco30p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_30p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0099999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0129999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_30p" +gt_json="instances_train2017_30p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_30p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_30p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_30p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_30p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco30p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file diff --git a/scripts/coco_50p.sh b/scripts/coco_50p.sh new file mode 100644 index 0000000..3107966 --- /dev/null +++ b/scripts/coco_50p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco50p_teacher" +trainsets="('coco_2017_train_50p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(210000,250000)" +train_iter="270001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_50p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_50p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_50p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_50p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco50p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_50p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0179999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0239999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_50p" +gt_json="instances_train2017_50p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_50p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_50p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_50p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_50p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco50p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file diff --git a/scripts/coco_5p.sh b/scripts/coco_5p.sh new file mode 100644 index 0000000..ad309ad --- /dev/null +++ b/scripts/coco_5p.sh @@ -0,0 +1,148 @@ +cd AdelaiDet + +root=YOUR_DATA_ROOT +config_file="configs/PointWSSIS/R101_teacher.yaml" +exp_name="SOLOv2_R101_coco5p_teacher" +trainsets="('coco_2017_train_5p_s',)" +testsets="('coco_2017_val',)" +prompt="point" +eval_pseudo_label="True" + +learning_rate="0.05" +decay_steps="(20000,25000)" +train_iter="30001" + +ngpus=$(nvidia-smi --list-gpus | wc -l) + +export DETECTRON2_DATASETS=${root} + +# step 1 +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + SOLVER.STEPS ${decay_steps} \ + SOLVER.MAX_ITER ${train_iter} \ + SOLVER.BASE_LR ${learning_rate} \ + MODEL.SOLOV2.PROMPT ${prompt} \ + MODEL.SOLOV2.EVAL_PSEUDO_LABEL ${eval_pseudo_label} \ + TEST.EVAL_PERIOD 5000 + +# step 2 +testsets="('coco_2017_train_5p_w',)" +prompt="point" +inference_dir="inference_dir" +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_final.pth \ + OUTPUT_DIR inference_dir/${exp_name} \ + MODEL.SOLOV2.FPN_SCALE_RANGES "((1,100000),(1,100000),(1,100000),(1,100000),(1,100000))" \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +# step 3 (optional - without MaskRefineNet) +# python3 tools/merge_strong_and_weak_labels.py \ +# --workers 8 \ +# --save_path ${root}/coco/annotations/instances_train2017_5p_sw.json \ +# --strong_json ${root}/coco/annotations/instances_train2017_5p_s.json \ +# --full_json ${root}/coco/annotations/instances_train2017.json \ +# --weak_pth inference_dir/${exp_name}/inference/instances_predictions.pth + +# config_file_sw="configs/SOLOv2/R101_3x.yaml" +# trainsets="('coco_2017_train_5p_sw',)" +# testsets="('coco_2017_val',)" +# exp_name_sw="SOLOv2_R101_coco5p_sw" + +# OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ +# --config-file ${config_file_sw} \ +# --num-gpus ${ngpus} \ +# SEED 1 \ +# OUTPUT_DIR training_dir/${exp_name_sw} \ +# DATASETS.TRAIN ${trainsets} \ +# DATASETS.TEST ${testsets} \ +# TEST.EVAL_PERIOD 5000 + +# step 4 +testsets="('coco_2017_train_5p_s',)" +prompt="point_with_size" + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0014999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_1 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + +OMP_NUM_THREADS=1 python -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + --eval-only \ + MODEL.WEIGHTS training_dir/${exp_name}/model_0024999.pth \ + OUTPUT_DIR inference_dir/${exp_name}_strong_2 \ + MODEL.SOLOV2.NMS_TYPE mask \ + MODEL.SOLOV2.PROMPT ${prompt} \ + DATASETS.TEST ${testsets} \ + + +# step 5 +cd ../MaskRefineNet + +train_iters=200000 +warm_iters=2000 +val_interval=5000 + +MRN_exp_name="MRN_5p" +gt_json="instances_train2017_5p_s.json" + +weak_pth="../AdelaiDet/inference_dir/${exp_name}_strong_1/inference/instances_predictions.pth ../AdelaiDet/inference_dir/${exp_name}_strong_2/inference/instances_predictions.pth" +eval_pth="../AdelaiDet/inference_dir/${exp_name}/inference/instances_predictions.pth" + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} main.py \ + --data_root ${root} \ + --workspace results \ + --exp_name ${MRN_exp_name} \ + --train_iters ${train_iters} \ + --warm_iters ${warm_iters} \ + --val_interval ${val_interval} \ + --weak_pth ${weak_pth} \ + --gt_json ${gt_json} \ + --eval_pth ${eval_pth} \ + --amp + +torchrun --standalone --nnodes=1 --nproc_per_node=${ngpus} merge_strong_and_refined_weak_labels.py \ + --data_root ${root} \ + --ckpt results/${MRN_exp_name}/ckpt/best_AP.pt \ + --dataset coco \ + --size 256 \ + --weak_pth ${eval_pth} \ + --weak_json ${root}/coco/annotations/instances_train2017_5p_w.json \ + --strong_json ${root}/coco/annotations/instances_train2017_5p_s.json \ + --save_path ${root}/coco/annotations/instances_train2017_5p_sw_refined.json + + +# step 6 +cd ../AdelaiDet +config_file="configs/SOLOv2/R101_3x.yaml" +trainsets="('coco_2017_train_5p_sw_refined',)" +testsets="('coco_2017_val',)" +exp_name="SOLOv2_R101_coco5p_sw_refined" + +OMP_NUM_THREADS=1 python3 -W ignore tools/train_net.py \ + --config-file ${config_file} \ + --num-gpus ${ngpus} \ + SEED 1 \ + OUTPUT_DIR training_dir/${exp_name} \ + DATASETS.TRAIN ${trainsets} \ + DATASETS.TEST ${testsets} \ + TEST.EVAL_PERIOD 5000 + + \ No newline at end of file