我正在使用这个BRATS Unet中的main.py
https://github.com/pykao/Modified-3D-UNet-Pytorch/blob/master/main.py
#创建优化器打印(“创建优化器”)
您应该将数据集传递给数据加载器API。因此,将train_data和test_data而不是train_idx和test_idx传递给torch.utils.data.DataLoader。