josedolz / SemiDenseNet

Repository containing the code of one of the networks that we employed in the iSEG Grand MICCAI Challenge 2017, infant brain segmentation.
MIT License
55 stars 18 forks source link

Training error #5

Open oomiracle opened 5 years ago

oomiracle commented 5 years ago

Traceback (most recent call last): File "./networkTraining.py", line 83, in networkTraining(sys.argv[1:]) File "./networkTraining.py", line 78, in networkTraining startTraining(networkModelName,configIniName) File "/data/zhanghang/HyperDenseNet-master/src/HyperDenseNet/startTraining.py", line 141, in startTraining applyPadding File "/data/zhanghang/HyperDenseNet-master/src/HyperDenseNet/Modules/IO/sampling.py", line 80, in getSamplesSubepoch imageType File "/data/zhanghang/HyperDenseNet-master/src/HyperDenseNet/Modules/IO/loadData.py", line 88, in load_imagesSinglePatient [imageData, paddingValues] = applyPadding(imageData, sampleSizes, receptiveField) File "/data/zhanghang/HyperDenseNet-master/src/HyperDenseNet/Modules/IO/ImgOperations/imgOp.py", line 57, in applyPadding extra_padding = np.maximum(0, np.asarray(sampleSizes,dtype="int16")-(inputImg_arr+left_padding+right_padding)) ValueError: operands could not be broadcast together with shapes (4,) (3,)

oomiracle commented 5 years ago

Has anyone encontered the same error with me?