train_dataset = torchvision.datasets.ImageFolder(
root=data_path,
transform=transform1
)
train_loader = torch.utils.data.DataLoader(
train_dataset,
batch_size=batch_size,
num_workers=0,
shuffle=False
)
train_dataset2 = torchvision.datasets.ImageFolder(
root=data_path,
transform=transform1
)
train_loader2 = torch.utils.data.DataLoader(
train_dataset2,
batch_size=batch_size,
num_workers=0,
shuffle=False
)
I want to use image data from these two dataloaders.