Skip to content

Rand3DElasticDict #1465

Closed
Closed

Description

@lyuxiaobai

For segmentation tasks, are there any suggestions for the values ​​of sigma and magnitude_range of Rand3DElasticDict? If I pass the image and real annotations into this method at the same time, how should the mode be written? I want to use bilinear for images and nearest for real labeling, but I don’t know how to achieve this

Activity

  1. lyuxiaobai commented on Jan 19, 2021

    @lyuxiaobai
    Author

    Uploading image.png…

  2. lyuxiaobai commented on Jan 19, 2021

    @lyuxiaobai
    Author

    train_transforms = Compose([
    LoadNiftid(keys={'image','label'}),

    AddChanneld(keys={'image','label'}),

    ScaleIntensityd(keys={'image'}),
    Rand3DElasticDict(keys={'image','label'},sigma_range=(15,25),magnitude_range=(0,5),prob=0.4,mode='bilinear,nearest'),
    RandFlipDict(keys={'image','label'}),
    ToTensor()
    

    ])
    代码如上

  3. Nic-Ma commented on Jan 21, 2021

    @Nic-Ma
    Contributor

    Hi @lyuxiaobai ,

    Thanks for your interest in MONAI.
    I saw you already set mode='bilinear, nearest' in your code for image and label.
    So could you please share more details about your question?

    Thanks.

  4. added
    question
    on Jan 21, 2021
  5. locked and limited conversation to collaborators on Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions