) cifar_test_gaussian_015 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.15_blur_0.0_test_targets.csv" ) cifar_test_gaussian_010 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.1_blur_0.0_test_targets.csv" ) cifar_test_gaussian_008 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.08_blur_0.0_test_targets.csv" ) cifar_test_gaussian_005 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.05_blur_0.0_test_targets.csv" ) cifar_train_gaussian_025 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.25_blur_0.0_train_targets.csv" ) cifar_train_gaussian_016 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.16_blur_0.0_train_targets.csv" ) cifar_train_gaussian_015 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.15_blur_0.0_train_targets.csv" ) cifar_train_gaussian_010 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.1_blur_0.0_train_targets.csv" ) cifar_train_gaussian_008 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.08_blur_0.0_train_targets.csv" ) cifar_train_gaussian_005 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.05_blur_0.0_train_targets.csv"
transform=transform_test, target_transform=None, download=True) cifar_test_gaussian_025 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.25_blur_0.0_test_targets.csv" ) cifar_test_gaussian_016 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.16_blur_0.0_test_targets.csv" ) cifar_test_gaussian_008 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.08_blur_0.0_test_targets.csv" ) cifar_train_gaussian_025 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.25_blur_0.0_train_targets.csv" ) cifar_train_gaussian_016 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.16_blur_0.0_train_targets.csv" ) cifar_train_gaussian_008 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.08_blur_0.0_train_targets.csv" ) cifar_test_blur_10 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.0_blur_1.0_test_targets.csv" ) cifar_test_blur_06 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.0_blur_0.6_test_targets.csv" ) cifar_test_blur_03 = cifar_dirty_test.CIFAR100DIRTY_TEST(
transform_train = transforms.Compose([transforms.RandomCrop(32,padding=4), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406],std=[0.229, 0.224, 0.225])]) transform_test = transforms.Compose([transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406],std=[0.229, 0.224, 0.225])]) cifar_train = dset.CIFAR100("./", train=True, transform=transform_train, target_transform=None, download=True) cifar_test = dset.CIFAR100("./", train=False, transform=transform_test, target_transform=None, download=True) cifar_test_gaussian_015 = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.15_blur_0.0_test_targets.csv") cifar_test_gaussian_010 = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.1_blur_0.0_test_targets.csv") cifar_test_gaussian_005 = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.05_blur_0.0_test_targets.csv") cifar_train_gaussian_015 = cifar_dirty_train.CIFAR100DIRTY_TRAIN("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.15_blur_0.0_train_targets.csv") cifar_train_gaussian_010 = cifar_dirty_train.CIFAR100DIRTY_TRAIN("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.1_blur_0.0_train_targets.csv") cifar_train_gaussian_005 = cifar_dirty_train.CIFAR100DIRTY_TRAIN("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.05_blur_0.0_train_targets.csv") cifar_train_gaussian_008_blur_03_mixed = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.08_blur_0.3_train_targets.csv") cifar_train_gaussian_016_blur_06_mixed = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.16_blur_0.6_train_targets.csv") cifar_train_gaussian_008_blur_033_mixed = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.08_blur_0.33_train_targets.csv") cifar_train_gaussian_016_blur_066_mixed = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.16_blur_0.66_train_targets.csv") cifar_train_gaussian_016_blur_08_mixed = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/A2S/cifar100_VGG16/cifar100_gaussian_0.16_blur_0.8_train_targets.csv") cifar_train_gaussian_025_blur_10_mixed = cifar_dirty_test.CIFAR100DIRTY_TEST("/home/yhbyun/180614_cifar_VGG16/cifar100_gaussian_0.25_blur_1.0_train_targets.csv") #train_loader = torch.utils.data.DataLoader(torch.utils.data.ConcatDataset([cifar_train, cifar_train_blur_033]),batch_size=args.bs, shuffle=True,num_workers=8,drop_last=False) train_loader = torch.utils.data.DataLoader(cifar_train,batch_size=args.bs, shuffle=True,num_workers=1,drop_last=False) test_loader = torch.utils.data.DataLoader(cifar_test,batch_size=1000, shuffle=False,num_workers=1,drop_last=False) global glob_gau
transform=transform_train, target_transform=None, download=True) cifar_test = dset.CIFAR100("/home/yhbyun/Dataset/CIFAR100/", train=False, transform=transform_test, target_transform=None, download=True) cifar_test_G1 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/Dataset/mhha/cifar100_noise_level1_test_targets.csv") cifar_test_G2 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/Dataset/mhha/cifar100_noise_level2_test_targets.csv") cifar_test_G3 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/Dataset/mhha/cifar100_noise_level3_test_targets.csv") cifar_train_G1 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/Dataset/mhha/cifar100_noise_level1_train_targets.csv") cifar_train_G2 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/Dataset/mhha/cifar100_noise_level2_train_targets.csv") cifar_train_G3 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/Dataset/mhha/cifar100_noise_level3_train_targets.csv") cifar_test_B1 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/Dataset/mhha/cifar100_blur_level1_test_targets.csv") cifar_test_B2 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/Dataset/mhha/cifar100_blur_level2_test_targets.csv") cifar_test_B3 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/Dataset/mhha/cifar100_blur_level3_test_targets.csv") cifar_train_B1 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/Dataset/mhha/cifar100_blur_level1_train_targets.csv") cifar_train_B2 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/Dataset/mhha/cifar100_blur_level2_train_targets.csv")
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) ]) transform_test = transforms.Compose([ transforms.ToTensor(), transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) ]) #cifar_train = dset.CIFAR100("./", train=True, transform=transform_train, target_transform=None, download=True) cifar_test = dset.CIFAR100("./", train=False, transform=transform_test, target_transform=None, download=True) cifar_train = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/dirtydataset/shrink_cifar100_gaussian_0.0_blur_0.0_train_targets.csv" ) cifar_train_gaussian_015 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/dirtydataset/shrink_cifar100_gaussian_0.15_blur_0.0_train_targets.csv" ) cifar_train_gaussian_010 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/dirtydataset/shrink_cifar100_gaussian_0.1_blur_0.0_train_targets.csv" ) cifar_train_gaussian_005 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/dirtydataset/shrink_cifar100_gaussian_0.05_blur_0.0_train_targets.csv" ) cifar_train_blur_09 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/dirtydataset/shrink_cifar100_gaussian_0.0_blur_0.9_train_targets.csv" ) cifar_train_blur_0675 = cifar_dirty_train.CIFAR100DIRTY_TRAIN(
transform=transform_test, target_transform=None, download=True) cifar_test_gaussian_025 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.25_blur_0.0_test_targets.csv" ) cifar_test_gaussian_016 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.16_blur_0.0_test_targets.csv" ) cifar_test_gaussian_008 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.08_blur_0.0_test_targets.csv" ) cifar_train_gaussian_025 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.25_blur_0.0_train_targets.csv" ) cifar_train_gaussian_016 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.16_blur_0.0_train_targets.csv" ) cifar_train_gaussian_008 = cifar_dirty_train.CIFAR100DIRTY_TRAIN( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.08_blur_0.0_train_targets.csv" ) cifar_test_blur_09 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.0_blur_0.9_test_targets.csv" ) cifar_test_blur_0675 = cifar_dirty_test.CIFAR100DIRTY_TEST( "/home/yhbyun/CIFAR100_Distorted_Channel_Selective/cifar100_VGG16/cifar100_gaussian_0.0_blur_0.675_test_targets.csv" ) cifar_test_blur_045 = cifar_dirty_test.CIFAR100DIRTY_TEST(