# I get this error while training MonaiLabel Deepedit model

**URL:** <https://discourse.slicer.org/t/i-get-this-error-while-training-monailabel-deepedit-model/31386>\
**Category:** Support\
**Tags:** segmentation, extensions-manager, python\
**Created:** [August 27, 2023, 1:14pm UTC](https://discourse.slicer.org/t/i-get-this-error-while-training-monailabel-deepedit-model/31386 "2023-08-27T13:14:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_By](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/a_by/32/67145_2.png) [@A\_By](https://discourse.slicer.org/u/A_By)\
**Post date:** [August 27, 2023, 1:14pm UTC](https://discourse.slicer.org/t/i-get-this-error-while-training-monailabel-deepedit-model/31386/1 "2023-08-27T13:14:27Z")

</div>

The error is this:  
ValueError(“Expected more than 1 spatial element when training, got input size {}”.format(size))  
ValueError: Expected more than 1 spatial element when training, got input size torch.Size([1, 320, 1, 1, 1])  
[2023-08-27 16:08:52,027] [13704] [ThreadPoolExecutor-2\_0] [INFO] (monailabel.utils.async\_tasks.utils:83) - Return code: 1

Please help me to solve this issue.
