Skip to content

RuntimeWarning: Mean of empty slice means[r][m] = np.nanmean([i['metrics'][r][m] for i in results]) ; Mean Validation Dice: nan #2976

@lucky653

Description

@lucky653

Hi,
I am encountering the following issue during runtime:

My training dataset is multi-class; however, not all images contain every labelled region/class. Is this partial presence the reason why the Dice values for certain classes are showing as NaN? Please note that while these corresponding classes may be sparse, they do definitely exist in the dataset.

Image

Is it possible for the training process to handle cases where only a subset of the regions/classes are present in a given image?

Below are screenshots of the dataset.json and summary.json files.

Image Image

Thank you for your reply!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions