Project-MONAI / Project-MONAI/tutorials
MONAI Auto3DSeg: Manual Fold Assignment Results in Zero Samples Error
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.