Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fixed formated string
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixSteinbauer committed Jun 13, 2023
1 parent a113599 commit 9dd3d42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ dataset/binarySegmentationMasks.gz
dataset/tumorCompartments.gz
dataset/healthyMasks.gz

ASNR-MICCAI-BraTS2023-GLI-Challenge-TrainingData

ASNR-MICCAI-BraTS2023-Local-Synthesis-Challenge-Training

## Baseline model

Expand Down
2 changes: 1 addition & 1 deletion baseline/train_AE.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def validation_step(self, batch, batch_idx):

# Get dataset and split it
if not dataset_path.exists():
raise UserWarning('Dataset path "{dataset_path}" does not exist!!')
raise UserWarning(f'Dataset path "{dataset_path}" does not exist!!')
dataset = Dataset_Training(dataset_path, crop_shape=crop_shape, center_on_mask=True)
train_set, validation_set = torch.utils.data.random_split(dataset, [train_p, val_p])

Expand Down
2 changes: 1 addition & 1 deletion baseline/train_Pix2Pix3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def validation_step(self, batch, batch_idx):

# Get dataset and split it
if not dataset_path.exists():
raise UserWarning('Dataset path "{dataset_path}" does not exist!!')
raise UserWarning(f'Dataset path "{dataset_path}" does not exist!!')
dataset = Dataset_Training(dataset_path, crop_shape=crop_shape, center_on_mask=True)
train_set, validation_set = torch.utils.data.random_split(dataset, [train_p, val_p])
#Note: if the above line (random_split) results in "ValueError: Sum of input lengths does not equal the length of the input dataset!"
Expand Down

0 comments on commit 9dd3d42

Please sign in to comment.