I got this result after trying. If the data is stored in the Dataset class as you said, how can I operate to load it?

微信图片_202003041417151307×310 19.2 KB

    tgt_dataset_root = h5py.File('E:\\ADDA\\pytorch-adda-master-lab\\datasets\\lab\\sandy\\mat\\test_target_domain_sandy.mat','r')
    data = tgt_dataset_root['data'].value
    label = tgt_dataset_root['label'].value

    data = torch.from_numpy(data)
    label = torch.from_numpy(label)

    tgt_dataset = TensorDataset(data, label)