mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 22:30:35 +08:00
Using the new dataset idx API everywhere.
Summary: Using the API from D35012121 everywhere. Reviewed By: bottler Differential Revision: D35045870 fbshipit-source-id: dab112b5e04160334859bbe8fa2366344b6e0f70
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c0bb49b5f6
commit
e2622d79c0
@@ -25,7 +25,7 @@ class MockDataset(ImplicitronDatasetBase):
|
||||
Makes a gap of max_frame_gap frame numbers in the middle of each sequence
|
||||
"""
|
||||
self.seq_annots = {f"seq_{i}": None for i in range(num_seq)}
|
||||
self.seq_to_idx = {
|
||||
self._seq_to_idx = {
|
||||
f"seq_{i}": list(range(i * 10, i * 10 + 10)) for i in range(num_seq)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user