Project-MONAI / Project-MONAI/MONAI

DiceFocalLoss does not have the option to run softmax focal loss

Open
#8,242 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

The 'use_softmax' arg is missing in FocalLoss in the DiceFocalLoss class. See the screenshot.

Screenshot 2024-11-28 at 10 42 24

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

Locate the DiceFocalLoss and FocalLoss definitions in the MONAI source and inspect how loss options are exposed and tested. Verify the requested use_softmax option can be passed through DiceFocalLoss and add or update the relevant tests so the softmax focal-loss behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.