Project-MONAI / Project-MONAI/tutorials

MONAI Auto3DSeg: Manual Fold Assignment Results in Zero Samples Error

Open
#2,024 2 comments 0 reactions 2 assignees View on GitHub

@mingxin-zheng is already working on this.

Since Sep 5, 2025.

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

Description

When manually assigning all training data to fold 0 in the datalist JSON file, MONAI Auto3DSeg training fails with ValueError: num_samples should be a positive integer value, but got num_samples=0. However, when MONAI auto-generates 5 folds and uses fold 0, training works correctly.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.