Skip to content
Discussion options

You must be logged in to vote

The problem is the combination of this line:

 if stage == 'test' or stage is None:
            _, _, self.test_dataset = torch.utils.data.random_split(subjList, [train_size, val_size, test_size])

and this line:

self.test_set = tio.SubjectsDataset(self.test_dataset, transform=None)

as you can see, self.test_dataset is only defined if the condition above applies. With this hint you should be able to figure it out now. Let me know :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Borda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment