mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-04 04:42:49 +08:00
suppress errors in vision/fair/pytorch3d
Differential Revision: D42775736 fbshipit-source-id: 8425305cd99d50ebc155502d56c0deeee1d078ab
This commit is contained in:
parent
3239594f78
commit
0b11a5dc6d
@ -894,11 +894,11 @@ class JsonIndexDataset(DatasetBase, ReplaceableBase):
|
|||||||
for idx in idxs:
|
for idx in idxs:
|
||||||
if (
|
if (
|
||||||
subset_filter is not None
|
subset_filter is not None
|
||||||
|
# pyre-fixme[16]: `JsonIndexDataset` has no attribute `frame_annots`.
|
||||||
and self.frame_annots[idx]["subset"] not in subset_filter
|
and self.frame_annots[idx]["subset"] not in subset_filter
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# pyre-ignore[16]
|
|
||||||
frame_annotation = self.frame_annots[idx]["frame_annotation"]
|
frame_annotation = self.frame_annots[idx]["frame_annotation"]
|
||||||
out.append(
|
out.append(
|
||||||
(frame_annotation.frame_number, frame_annotation.frame_timestamp)
|
(frame_annotation.frame_number, frame_annotation.frame_timestamp)
|
||||||
|
@ -46,6 +46,8 @@ class SingleSceneDataset(DatasetBase, Configurable):
|
|||||||
def __len__(self) -> int:
|
def __len__(self) -> int:
|
||||||
return len(self.poses)
|
return len(self.poses)
|
||||||
|
|
||||||
|
# pyre-fixme[14]: `sequence_frames_in_order` overrides method defined in
|
||||||
|
# `DatasetBase` inconsistently.
|
||||||
def sequence_frames_in_order(
|
def sequence_frames_in_order(
|
||||||
self, seq_name: str
|
self, seq_name: str
|
||||||
) -> Iterator[Tuple[float, int, int]]:
|
) -> Iterator[Tuple[float, int, int]]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user