Skip to content

A problem when computes cifar10 mean and stdev #10

Open
@xuyan1115

Description

@xuyan1115

Hi, I found a problem in compute-cifar10-mean.py#L31.

The shape of torchvision.datasets.CIFAR10.train_data should be (50000, 32, 32, 3) instead of (50000, 3, 32, 32), so the code in line#31 should be pixels = data[:,:,:,i].ravel()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions