liuofficial / SpfNet

Patch-Aware Deep Hyperspectral and Multispectral Image Fusion by Unfolding Subspace-Based Optimization Model, JSTARS, 2021
4 stars 2 forks source link

数据 #1

Open sandra11111 opened 2 years ago

sandra11111 commented 2 years ago

您好,想问下您代码中的self.origin_data_path = 'd:/remote sensing data/'这个数据可以从哪下载啊

liuofficial commented 2 years ago

到对应数据集网站下载,如CAVE和Harvard,下载后按照按照具体组织方式放入文件夹

wiliankaien commented 1 year ago

你好,用havard数据集运行报错,用的python3.7和python3.6都试了,数据集又重新下载上传还是不行 File "/hy-tmp/Spf.py", line 493, in net = SpfNet(data_num, sim=True) File "/hy-tmp/Spf.py", line 25, in init super().init(data_num, sim) File "/hy-tmp/utils.py", line 103, in init self.read_original_data(data_num, self.origin_data_path, self.mat_save_path) # HS File "/hy-tmp/utils.py", line 232, in read_original_data self.read_harvard(input_path, output_path) File "/hy-tmp/utils.py", line 281, in read_harvard hs = sio.loadmat(input_path + dirname)['ref'] File "/usr/local/miniconda3/envs/cfq/lib/python3.7/site-packages/scipy/io/matlab/mio.py", line 225, in loadmat MR, = mat_reader_factory(f, **kwargs) File "/usr/local/miniconda3/envs/cfq/lib/python3.7/site-packages/scipy/io/matlab/mio.py", line 74, in mat_reader_factory mjv, mnv = get_matfile_version(byte_stream) File "/usr/local/miniconda3/envs/cfq/lib/python3.7/site-packages/scipy/io/matlab/miobase.py", line 231, in get_matfile_version raise ValueError('Unknown mat file type, version %s, %s' % ret) ValueError: Unknown mat file type, version 115, 112