• Roman Shapovalov's avatar
    Refactor: FrameDataBuilder is more extensible. · b0462598
    Roman Shapovalov authored
    Summary:
    This is mostly a refactoring diff to reduce friction in extending the frame data.
    
    Slight functional changes: dataset getitem now accepts (seq_name, frame_number_as_singleton_tensor) as a non-advertised feature. Otherwise this code crashes:
    ```
    item = dataset[0]
    dataset[item.sequence_name, item.frame_number]
    ```
    
    Reviewed By: bottler
    
    Differential Revision: D45780175
    
    fbshipit-source-id: 75b8e8d3dabed954a804310abdbd8ab44a8dea29
    b0462598
test_experiment.py 11.3 KB