Commit abb61378 authored by mibaumgartner's avatar mibaumgartner
Browse files

support different splits key in config

parent 0cdad98d
......@@ -57,8 +57,13 @@ class BaseModule(pl.LightningDataModule):
self.fold = fold
self.preprocessed_dir = self.data_dir.parent.parent
self.splits_file = self.augment_cfg.get(
"splits_final", "splits_final.pkl")
if "splits" in self.augment_cfg:
self.splits_file = self.augment_cfg["splits"]
elif "splits_final" in self.augment_cfg:
self.splits_file = self.augment_cfg["splits_final"]
else:
self.splits_file = "splits_final"
self.dataset_tr = {}
self.dataset_val = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment