Skip to content

3d_segmentation/brats_segmentation_3d.ipynb TypeError: got an unexpected keyword argument 'threshold' for AsDiscrete transform #463

@sebastianffx

Description

@sebastianffx

Describe the bug
The argument threshold is not expected when calling the transform AsDiscrete cell 8 in the tutorial.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 3d_segmentation/brats_segmentation_3d.ipynb
  2. Run code cells up to the number 8, the bug should come up.

Expected behavior
That the transformation could work with the specified threshold, probably is just a matter of renaming the argument to logit_thresh?

Screenshots
Screenshot 2021-11-29 at 14 05 22

Environment (please complete the following information):

  • OS: MacOS 12.01
  • Python version 3.9.7
  • MONAI version 0.7.0
  • CUDA/cuDNN version: (N/A) CPU
  • GPU models and configuration: (N/A)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions