Project-MONAI / Project-MONAI/tutorials

RandCropByPosNegLabeld() can't support two labels

Open
#1,652 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
2.5k
Forks
803
Avg merge
6d 22h
Merged PRs (30d)
3

Description

Discussed in https://github.com/Project-MONAI/tutorials/discussions/1651

Originally posted by vectorzwt February 25, 2024
My task requires segmenting images from two time periods simultaneously, so my model needs to accept two inputs at the same time and get two results. When building a data set, I want to use the 'RandCropByPosNegLabeld' function to get the patch. Are there any good solutions to this problem?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked discussion and the RandCropByPosNegLabeld function named in the issue. No file, test, or entry point is identified, and the issue does not define an accepted solution or completion criteria, so clarify the intended behavior before attempting implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.