SSL92 / hyperIQA

Source code for the CVPR'20 paper "Blindly Assess Image Quality in the Wild Guided by A Self-Adaptive Hyper Network"
MIT License
361 stars 52 forks source link

stats.pearsonr Error? #34

Open XiaoqiWang opened 3 years ago

XiaoqiWang commented 3 years ago

Hello! Running the paper as set up, I got the following error. It seems that the predicted values appear to be nan, why? File "/home/wxq/project/NR_IQA/hyperIQA-master/hyperIQA-master/HyerIQASolver.py", line 112, in test testplcc, = stats.pearsonr(pred_scores, gt_scores) File "/home/wxq/.local/lib/python3.8/site-packages/scipy/stats/stats.py", line 3530, in pearsonr normxm = linalg.norm(xm) File "/home/wxq/.local/lib/python3.8/site-packages/scipy/linalg/misc.py", line 142, in norm a = np.asarray_chkfinite(a) File "/home/wxq/conda/lib/python3.8/site-packages/numpy/lib/function_base.py", line 485, in asarray_chkfinite raise ValueError( ValueError: array must not contain infs or NaNs

XiaoqiWang commented 3 years ago

I updated my pytorch version from 1.7.0 to 1.9.0 and it doesn't report this error anymore