Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
RosalindFok committed Jun 13, 2024
1 parent 6e7cc56 commit 7ca36f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def __init__(self, *args, **kwargs):
super(Hausdorff_Distance, self).__init__()

def forward(self, y_pred, y_true):
# Not Accurate Hausdorff
y_pred = y_pred.squeeze().detach().cpu().numpy()
y_true = y_true.squeeze().detach().cpu().numpy()
hausdorff_distance = []
Expand Down
3 changes: 0 additions & 3 deletions dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ def __del__(self) -> None:

# Read from raw data is easier than read from hdf5 file
class BraTSDataset_from_nii(Dataset):


# https://www.synapse.org/#!Synapse:syn52939291/wiki/625694

def __init__(self, subjects_list : list) -> None:
super().__init__()
self.nii_path_list = [[os.path.join(each_subject, file_name) for file_name in os.listdir(each_subject) ] for each_subject in subjects_list]
Expand Down

0 comments on commit 7ca36f2

Please sign in to comment.