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

Wrong preprocessing #17

Open
JunkyByte opened this issue Aug 1, 2023 · 0 comments
Open

Wrong preprocessing #17

JunkyByte opened this issue Aug 1, 2023 · 0 comments

Comments

@JunkyByte
Copy link

Training preprocessing is missing during inference where images are only set to [0, 1] range but not normalized using mean / std.

Inference code:

img_tensor = transforms.Compose (
[transforms.Resize((img_size[1], img_size[0])),
transforms.ToTensor()]

Training code:

self.transform = transforms.Compose([
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
])

Reference from issue that was created in my fork
JunkyByte/easy_ViTPose#12

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