首页 > 解决方案 > 如何解决代码中的关键字错误?

问题描述

lrPAN = scipy.io.loadmat('E:\TEST_CODE_240519\Input.mat')
lrPAN_input = lrPAN["Input"]

hrPAN = scipy.io.loadmat('E:\TEST_CODE_240519\Target.mat')
hrPAN_input = hrPAN["Target"]

[patch_size, number_of_patches] = lrPAN_input.shape
Keyerror:lrPAN_input = lrPAN["Input"]

KeyError: 'Input'

标签: pythonerror-handlingscipy

解决方案


推荐阅读