Project-MONAI / tutorials

MONAI Tutorials
https://monai.io/started.html
Apache License 2.0
1.76k stars 667 forks source link

RandCropByPosNegLabeld() can't support two labels #1652

Open vectorzwt opened 6 months ago

vectorzwt commented 6 months ago

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?