Skip to content

Commit

Permalink
Merge pull request #48 from Purg/dev/fix-datamodule-load
Browse files Browse the repository at this point in the history
Fix validation set loading during fit stage
  • Loading branch information
Purg authored Nov 21, 2024
2 parents 7dcef0e + 1fa96e8 commit 9705534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcn_hpl/data/ptg_datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def setup(self, stage: Optional[str] = None) -> None:
kwcoco.CocoDataset(self.hparams.coco_train_poses),
self.hparams.target_framerate,
)
if stage == "validate" and not self.data_val:
if (stage == "validate" or stage == "fit") and not self.data_val:
self.data_val.load_data_offline(
kwcoco.CocoDataset(self.hparams.coco_validation_activities),
kwcoco.CocoDataset(self.hparams.coco_validation_objects),
Expand Down

0 comments on commit 9705534

Please sign in to comment.