| 95 | } |
| 96 | |
| 97 | OpSpec CocoReaderOpSpec(bool polygon_masks = false, bool pixelwise_masks = false, |
| 98 | bool polygon_masks_legacy = false) { |
| 99 | return BasicCocoReaderOpSpec(polygon_masks, pixelwise_masks, polygon_masks_legacy) |
| 100 | .AddArg("annotations_file", annotations_filename_); |
| 101 | } |
| 102 | |
| 103 | int SmallCocoSize(bool masks) { return masks ? 4 : 64; } |
| 104 | int EmptyImages() { return 2; } |