Skip to content

Normalization of input images in scratch trainings #9

Description

@SorourMo

Hi there,
Thanks you for sharing the code. It seems the preprocess in utils.py automatically normalizes the images using Imagenet mean and std values regardless of the state of training. If the training is started from scratch (no pretrained weights are required), still the mean and std of images are gonna used for normalization.

transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])

A simple flag could be added to prevent this. I'd be happy to pull request for that. Please let me know if you are interested in adding that flag.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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