Skip to content
Discussion options

You must be logged in to vote

Hi @Minxiangliu, thanks for your interest here.
For the imbalanced issue, I suggest you use some sampling tips, such as cropping the patches based on the pos and neg ratio.

class RandCropByPosNegLabel(Randomizable, TraceableTransform, LazyTransform, MultiSampleTrait):

You can also try to add some weight in the loss function.
weight: weights to apply to the voxels of each class. If None no weights are applied.

Hope it helps, thanks!

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@Minxiangliu
Comment options

@KumoLiu
Comment options

Answer selected by Minxiangliu
Comment options

You must be logged in to vote
3 replies
@KumoLiu
Comment options

@Minxiangliu
Comment options

@KumoLiu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants