Update use of select_cameras

Summary: Removed `select_cameras.py` from implicitron and updated all callsites to directly index the cameras.

Reviewed By: bottler

Differential Revision: D33187605

fbshipit-source-id: aaf5b36aef9d72db0c7e89dec519f23646f6aa05
This commit is contained in:
Nikhila Ravi 2021-12-21 05:45:32 -08:00 committed by Facebook GitHub Bot
parent 28ccdb7328
commit d67662d13c

View File

@ -383,7 +383,7 @@ class CamerasBase(TensorProperties):
kwargs = {}
if not isinstance(index, (int, list, torch.LongTensor)):
if not isinstance(index, (int, list, torch.LongTensor, torch.cuda.LongTensor)):
msg = "Invalid index type, expected int, List[int] or torch.LongTensor; got %r"
raise ValueError(msg % type(index))