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: 'MRIDatasetMRBRAINS2018' object has no attribute 'affine' #14

Closed
Healingl opened this issue Oct 26, 2020 · 2 comments
Closed

Comments

@Healingl
Copy link

when load processed data, there is a bug

        if load:
            ## load pre-generated data
            self.list = utils.load_list(self.save_name)
            return
     ...
        self.affine = img_loader.load_affine_matrix(list_reg_t1[0]) # it is a bug
@iliasprc
Copy link
Collaborator

Hello,
The param load=True uses presegmented patches from medical images that you have created when load=False.
I think if you move the line ( self.affine=....) above the if loop the code should work fine

@Healingl
Copy link
Author

Healingl commented Dec 1, 2020

@iliasprc Okay, I have solved this problem, thank you!

@iliasprc iliasprc closed this as completed Dec 1, 2020
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

2 participants