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

preNormalize question #53

Open
garudaonekh opened this issue Apr 14, 2022 · 0 comments
Open

preNormalize question #53

garudaonekh opened this issue Apr 14, 2022 · 0 comments

Comments

@garudaonekh
Copy link

Hi, I got this plugin work but its result is different from the Android version. I guess my configuration is wrong. Sorry, I am newbie to tensorflow.

InputSensorShape: 1,224,224,3
OutputType: float32

@override
NormalizeOp get preProcessNormalizeOp => NormalizeOp(127.5, 127.5);

@override
NormalizeOp get postProcessNormalizeOp => NormalizeOp(0, 1);

Here's the original Android config:

    private val IMAGE_MEAN = 0
    private val IMAGE_STD = 255.0f
    private val MAX_RESULTS = 3
    private val THRESHOLD = 0.4f
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