• Roman Shapovalov's avatar
    When bounding boxes are cached in metadata, don’t crash on load_masks=False · 7aeedd17
    Roman Shapovalov authored
    Summary:
    We currently support caching bounding boxes in MaskAnnotation. If present, they are not re-computed from the mask. However, the masks need to be loaded for the bbox to be set.
    
    This diff fixes that. Even if load_masks / load_blobs are unset, the bounding box can be picked up from the metadata.
    
    Reviewed By: bottler
    
    Differential Revision: D45144918
    
    fbshipit-source-id: 8a2e2c115e96070b6fcdc29cbe57e1cee606ddcd
    7aeedd17
test_frame_data_builder.py 8.8 KB