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

mean not initialized in inference.py - line 21 #41

Open
khshalnuaimi opened this issue Apr 9, 2022 · 1 comment
Open

mean not initialized in inference.py - line 21 #41

khshalnuaimi opened this issue Apr 9, 2022 · 1 comment

Comments

@khshalnuaimi
Copy link

elif config is not None and config.normalized_method == "tf_resnet":
image = image + mean
image = image[..., ::-1]
image = image / 255

i tried to initialize it with mean = [103.939, 116.779, 123.68] but all my inferences had a blank picture. i am using tf_backbone, loaded by my weights.

@khshalnuaimi
Copy link
Author

the above initialization works.
mean = [103.939, 116.779, 123.68]

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