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

How can I do if I want to use two kinds of mask at the same time? #25

Open
yjsb opened this issue Apr 23, 2023 · 0 comments
Open

How can I do if I want to use two kinds of mask at the same time? #25

yjsb opened this issue Apr 23, 2023 · 0 comments

Comments

@yjsb
Copy link

yjsb commented Apr 23, 2023

I have two kinds of mask, the tumor and the boundary of tumor, and they are two different array.
If I want to argument the image, I have to do same operation in this two masks.
I saw the operation is only for dictionary:

    targets=[['image'],['mask']]

how can I do? I try

    data = {'image': ct_array, 'mask1': seg_array, 'mask':boundary_array}
    aug_data = self.get_augmentation(**data)
    ct_array, seg_array, boundary_array = aug_data['image'], aug_data['mask1'], aug_data['mask']

but it does not work.

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

1 participant