-
Notifications
You must be signed in to change notification settings - Fork 675
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
TypeError: __init__() got an unexpected keyword argument 'to_onehot_y' #60
Comments
Hi @Ordgod , This is a known issue, @yiheng-wang-nv is working on it to update all the tutorials and examples. Thanks. |
I'm currently working on a fix for the baseline. cc @yiheng-wang-nv @Nic-Ma (v0.3.0 won't work as we created a new network instance for it.) |
OK, I see. This is the new added tutorial. Thanks. |
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* fixes Project-MONAI#60 Signed-off-by: Wenqi Li <wenqil@nvidia.com> * update based on the comments Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Describe the bug
The code from A U-Net model for lung lesion segmentation from CT images could not be runned.
The error information is:
TypeError: __init__() got an unexpected keyword argument 'to_onehot_y'
.To Reproduce
Steps to reproduce the behavior:
https://github.com/Project-MONAI/tutorials/tree/master/3d_segmentation/challenge_baseline/
pip install "git+https://github.com/Project-MONAI/MONAI#egg=monai[nibabel,ignite,tqdm]"
python run_net.py train --data_folder "COVID-19-20_v2/Train" --model_folder "runs"
Expected behavior
Start training of the model.
Screenshots
Environment (please complete the following information):
Additional context
https://covid-segmentation.grand-challenge.org/Resource/
The text was updated successfully, but these errors were encountered: