However, the following error is indicated. How should I read and apply it correctly
WARNING:tensorflow:From D:\sofe\anaconda\lib\site-packages\tensorflow_core\python\compat\v2_compat.py:65: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
Traceback (most recent call last):
File "D:/docum/PycharmProjects/KernelGAN-master/ZSSRforKernelGAN/test.py", line 25, in
k_2=kernel = scipy.io.loadmat("./model/1004141-6h-A1_kernel_x2.mat")['kernel']
KeyError: 'kernel'
Above is the code to save kernel. I try to read it with the following code:
However, the following error is indicated. How should I read and apply it correctly
WARNING:tensorflow:From D:\sofe\anaconda\lib\site-packages\tensorflow_core\python\compat\v2_compat.py:65: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version. Instructions for updating: non-resource variables are not supported in the long term Traceback (most recent call last): File "D:/docum/PycharmProjects/KernelGAN-master/ZSSRforKernelGAN/test.py", line 25, in
k_2=kernel = scipy.io.loadmat("./model/1004141-6h-A1_kernel_x2.mat")['kernel']
KeyError: 'kernel'