H-DenseUNet icon indicating copy to clipboard operation
H-DenseUNet copied to clipboard

A question about test.py

Open tanggirltt opened this issue 5 years ago • 1 comments

Hello,when I run test.py,there is a question Traceback (most recent call last): File "test.py", line 124, in predict(args) File "test.py", line 111, in predict Segmask = np.dot(Segmask,liver_labels) ValueError: shapes (512,512,75) and (512,512,163) not aligned: 75 (dim 2) != 512 (dim 1) I have change Segmask = Segmask*liver_labels as Segmask = np.dot(Segmask,liver_labels) Anyone could explain this question?thanks!

tanggirltt avatar May 28 '19 12:05 tanggirltt

The liver mask you load is the one in the "test data", however, I think you load the "train data" for testing?

xmengli avatar Jul 08 '19 02:07 xmengli