Error When Reading Data

Im am converting images into torch tensors for a segmentation model, bit new to using torch, and when running my model I get this error.

MetaImage: M_ReadElementsData:data not read completely ideal = 5734400 : actual = 2700286

No indication of where this in the code, was wondering if anyone has had this issue before, sorry if this ends up not being torch realted.

The MetaImage errors/warning are usually raised by ITK. Are you working on a medical use case with ITK? If so, check the data loading pipeline and try to narrow down if reading a dicom or so fails.