Skip to content

Commit

Permalink
add split for supervised evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
ngbountos committed Mar 15, 2023
1 parent 695d811 commit 33a27f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def __init__(self, config, mode):
self.negatives = []
self.frameIDs = []
self.augmentations = augmentations.get_augmentations(config)

root_path = self.config['cls_path']
for file in self.valid_files:
annotation = json.load(open(file,'r'))
annotation = json.load(open(root_path + file,'r'))
sample = file.split('/')[-1]
insar_path = self.config['supervised_data_path'] + '/labeled/'+str(annotation['Deformation'][0])+'/' + sample[:-5] + '.png'
mask_path = self.config['supervised_data_path'] + '/masks/'+str(annotation['Deformation'][0])+'/' + sample[:-5] + '.png'
Expand Down
1 change: 1 addition & 0 deletions configs/supervised_configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"contrastive":false,
"split_path":"./train_test_split.json",
"supervised_data_path":"/mnt/nvme1/nbountos/datasets/HephaestusSSL",
"cls_path":"/mnt/nvme1/nbountos/datasets/HephaestusSSL/cls_labels/",
"data_path":"/mnt/nvme1/nbountos/datasets/Hephaestus_Raw",
"batch_size":64,
"num_workers":12,
Expand Down
1 change: 1 addition & 0 deletions train_test_split.json

Large diffs are not rendered by default.

0 comments on commit 33a27f8

Please sign in to comment.