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

The parameters of the Normalize() operation in ProcessImage class #25

Open
YZH-bot opened this issue Feb 6, 2025 · 0 comments
Open

Comments

@YZH-bot
Copy link

YZH-bot commented Feb 6, 2025

Thanks for opening the code!
I would like to ask how can we determine the parameters of the Normalize() operation?

class ProcessImage:
    def __init__(self, crop):
        self.crop = crop

        self.normalise_image = torchvision.transforms.Compose(
            [torchvision.transforms.ToTensor(),
             torchvision.transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
             ]
        )
@YZH-bot YZH-bot changed the title The parameters of the Normalize() operator in ProcessImage class The parameters of the Normalize() operation in ProcessImage class Feb 6, 2025
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

No branches or pull requests

1 participant