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

KeyError when trying to train in toy_exp #125

Open
17alia opened this issue May 18, 2021 · 3 comments
Open

KeyError when trying to train in toy_exp #125

17alia opened this issue May 18, 2021 · 3 comments

Comments

@17alia
Copy link

17alia commented May 18, 2021

I am trying to train using the donuts_shape dataset in the toy_exp and I am getting the following error:

image

How can I fix this? it looks like the dictionary "batch" has keys 'data', 'seg', 'pid', 'class_target', 'bb_target', and 'roi_masks', but not 'roi_labels'.

Thanks for any help you can provide.

@themantalope
Copy link

I'm also having a similar issue.

@themantalope
Copy link

I think this is an issue with the batchgenerators repository. The medicaldetectiontoolkit repository expects batchgenerators to be version 0.19.3. If you install the latest version, the output of the generator doesn't include the 'roi_labels' key. Might be worth submitting an issue over there.

@themantalope
Copy link

@17alia

pip uninstall batchgenerators
pip install batchgenerators==0.19.3

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