• Nikhila Ravi's avatar
    Enable __getitem__ for Cameras to return an instance of Cameras · 28ccdb73
    Nikhila Ravi authored
    Summary:
    Added a custom `__getitem__` method to `CamerasBase` which returns an instance of the appropriate camera instead of the `TensorAccessor` class.
    
    Long term we should deprecate the `TensorAccessor` and the `__getitem__` method on `TensorProperties`
    
    FB: In the next diff I will update the uses of `select_cameras` in implicitron.
    
    Reviewed By: bottler
    
    Differential Revision: D33185885
    
    fbshipit-source-id: c31995d0eb126981e91ba61a6151d5404b263f67
    28ccdb73
test_cameras.py 44.6 KB