Skip to content

Commit a3467bb

Browse files
committed
feat(save): support save eval_index frames results only to .h5 file.
1 parent 396da86 commit a3467bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

conf/save.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dataset_path: /home/kin/data/av2/h5py/demo/val
22
checkpoint: /home/kin/model_zoo/seflow_best.ckpt
33
res_name: # if None will directly be the `model_name.ckpt` in checkpoint path
4-
4+
val_index_only: False # [True, False]
55

66
# no need to change
77
num_frames: 2

save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def main(cfg):
5454
# NOTE(Qingwen): search & check in pl_model.py : def test_step(self, batch, res_dict)
5555
trainer.test(model = mymodel, \
5656
dataloaders = DataLoader(\
57-
HDF5Dataset(cfg.dataset_path, n_frames=cfg.num_frames), \
57+
HDF5Dataset(cfg.dataset_path, n_frames=cfg.num_frames, eval=cfg.val_index_only), \
5858
batch_size=1, shuffle=False))
5959

6060
if __name__ == "__main__":

0 commit comments

Comments
 (0)