Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'list' object has no attribute 'dry_iter' #4

Open
KalinZeglarz opened this issue Jun 21, 2022 · 2 comments
Open

AttributeError: 'list' object has no attribute 'dry_iter' #4

KalinZeglarz opened this issue Jun 21, 2022 · 2 comments

Comments

@KalinZeglarz
Copy link

Hello, during validation in taks1/train.py I'm getting this error. Have you encountered such an error? Do you have a solution?

@bhezy
Copy link

bhezy commented Aug 27, 2022

@KalinZeglarz @Nicolik have you found a solution? I am encountering this issue as well.

@aemhd
Copy link

aemhd commented Feb 22, 2024

I tried the following and passed the error:
File: semseg\data_loader.py

Replace the "QueueDataLoaderValidation" function with the following:

def QueueDataLoaderValidation(config):
print('Building TorchIO Validation Set Loader...')
subject_list = create_subject_list(config.val_images, config.val_images)
subjects_dataset = SubjectsDataset(subject_list)

patches_validation_set = torchio.Queue(
    subjects_dataset=subjects_dataset,
    
    max_length=300,
    samples_per_volume=10,
    sampler=torchio.sampler.UniformSampler(64),
    num_workers=config.num_workers,
    shuffle_subjects=False,
    shuffle_patches=False,
)
patch_loader = torch.utils.data.DataLoader(patches_validation_set, batch_size=config.batch_size)
print('TorchIO Validation Loader built!')
return patch_loader

Kindly inform me if worked with you too...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants