Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test on CINIC-10 dataset #90

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ashentears
Copy link

@ashentears ashentears commented Jul 22, 2019

CINIC-10 dataset: https://datashare.is.ed.ac.uk/handle/10283/3192

There are certain changes on main.py file. The first change is on data loading directory to CINIC-10 dataset folder

cinic_dir = 'CINIC-10'
trainset = torchvision.datasets.ImageFolder(cinic_dir + '/train', transform=transform_train)
trainloader = torch.utils.data.DataLoader(trainset, batch_size=128, shuffle=True, num_workers=5)

testset = torchvision.datasets.ImageFolder(cinic_dir + '/test', transform=transform_test)
testloader = torch.utils.data.DataLoader(testset, batch_size=80, shuffle=False, num_workers=5)

classes = ('airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck')

Next, to adjust with CINIC-10 dataset, transform normalize value has been changed as

cinic_mean = [0.47889522, 0.47227842, 0.43047404]
cinic_std = [0.24205776, 0.23828046, 0.25874835]

transform_train = transforms.Compose([
    transforms.RandomCrop(32, padding=1),
    transforms.RandomHorizontalFlip(),
    transforms.ToTensor(),
    transforms.Normalize(cinic_mean, cinic_std),
])

transform_test = transforms.Compose([
    transforms.ToTensor(),
    transforms.Normalize(cinic_mean, cinic_std),
])

Lastly, the learning rate which is used in this training is lr = 0.01

@ashentears ashentears closed this Jul 22, 2019
@ashentears ashentears reopened this Jul 22, 2019
@ashentears ashentears changed the title Change data loading paths: CINIC-10 Test on CINIC-10 dataset Jul 22, 2019
@kuangliu kuangliu force-pushed the master branch 2 times, most recently from ae4e5c5 to 7ad1b9c Compare November 24, 2020 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants