print('Average PSNR = {0:.2f}, SSIM = {1:.2f}'.format(psnr_avg, ssim_avg)) pd.DataFrame({'name':np.array(name),'psnr':np.array(psnr),'ssim':np.array(ssim)}).to_csv(out_dir+'/metrics.csv', index=True) 开发者ID:bennjaminn64,项目名称:DnCNN-keras,代码行数:42,代码来源:main...
# 需要导入模块: from skimage import measure [as 别名]# 或者: from skimage.measure importcompare_psnr[as 别名]defcompare(inp_img, out_img, calc_ssim=True, calc_msssim=True, calc_psnr=True):inp_img = _read_if_not_array(inp_img) out_img = _read_if_not_array(out_img)assertinp_img....