Error: received 0 items of ancdata #2745
Unanswered
jmenville11
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Hi @jmenville11 , Thanks for your interest and experiments with MONAI. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building a U-Net image segmentation model based off of MONAI's BRATS tutorial. I've gotten the model to run successfully and have started playing with the model parameters to see how I could optimize training speed. I've found that whenever I reduce Cache Rate to anything less than 1.0, the model will go through 4-5 epochs before failing. I get "Runtime Error: received 0 items of ancdata".
I've read of others having similar issues using PyTorch, but haven't been able to identify the cause. Should this variable not be changed?
Code is below:
Setup imports
Setup data directory
Establish file paths
Zip labels and images together into a dictionary for both training and validation sets
Set deterministic training for reproducibility
Convert brain tumor labels
Setup transforms for training and validation
Establish training datasets
Visualize input image:
Visualize corresponding label channels:
standard PyTorch program style: create UNet, DiceLoss and Adam optimizer
Execute training
Print best metric
Plot the loss and metric
Check best model output with the input image and label
visualize the 2 channels label corresponding to this image
visualize the 2 channels model output corresponding to this image
Beta Was this translation helpful? Give feedback.
All reactions