YuxiangZhang-BIT/IEEE_TGRS_LDGnet

请教您一个问题

Likesmile666 opened this issue · 1 comments

您好,我想请教您一个问题!当运行Houston13和Houston18数据集训练时,会出现NotImplementedError: Please use HDF reader for matlab v7.3 files, e.g. h5py这个错误,之后使用hdf5storage.loadmat时,解决了上述问题,但是会出现TypeError: empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType), but expected one of:

  • (tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
  • (tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)这个错误,可以想您请教一下这个错误如何修改吗?

您好,我想请教您一个问题!当运行Houston13和Houston18数据集训练时,会出现NotImplementedError: Please use HDF reader for matlab v7.3 files, e.g. h5py这个错误,之后使用hdf5storage.loadmat时,解决了上述问题,但是会出现TypeError: empty() received an invalid combination of arguments - got (tuple, dtype=NoneType, device=NoneType), but expected one of:

  • (tuple of ints size, *, tuple of names names, torch.memory_format memory_format, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)
  • (tuple of ints size, *, torch.memory_format memory_format, Tensor out, torch.dtype dtype, torch.layout layout, torch.device device, bool pin_memory, bool requires_grad)这个错误,可以想您请教一下这个错误如何修改吗?

在utils HSl.py做了如下修改
return io.loadmat(dataset) changed to return h5py.File(dataset).transpose(1, 2, 0)