MRI-to-CT-DCNN-TensorFlow icon indicating copy to clipboard operation
MRI-to-CT-DCNN-TensorFlow copied to clipboard

ValueError: not enough values to unpack (expected 4, got 2)

Open mozhagn1991 opened this issue 4 years ago • 1 comments

Hi there, I just successfully trained the model, and I am trying to test the result using the code: python main.py --load_model=20200810-1641 However, I got this error: @ChengBinJin Traceback (most recent call last): File "main.py", line 249, in main() File "main.py", line 116, in main test(num_cross_vals, model_dir, test_dir, solver) File "main.py", line 195, in test mae[model_id], me[model_id], mse[model_id], pcc[model_id] = solver.evaluate(ctImgs, preds, maskImgs, is_train=True) ValueError: not enough values to unpack (expected 4, got 2)

Any idea why this happened and how to resolve it? Appreciate

mozhagn1991 avatar Aug 16 '20 06:08 mozhagn1991

@mozhagn1991 In test mode, the is_train flag should be set by False. Please refer here

ChengBinJin avatar Aug 31 '20 10:08 ChengBinJin