fix eval_batches in V1

Summary: fix to the D38275943 (597e0259dc).

Reviewed By: bottler

Differential Revision: D38355683

fbshipit-source-id: f326f45279fafa57f24b9211ebd3fda18a518937
This commit is contained in:
Darijan Gudelj 2022-08-02 09:09:47 -07:00 committed by Facebook GitHub Bot
parent b7b188bf54
commit c63ec81750

View File

@ -177,7 +177,9 @@ class JsonIndexDataset(DatasetBase, ReplaceableBase):
raise ValueError(
"Cannot define both eval_batch_index and eval_batches."
)
self.eval_batches = self.seq_frame_index_to_dataset_index()
self.eval_batches = self.seq_frame_index_to_dataset_index(
self.eval_batch_index
)
def is_filtered(self):
"""