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

Different outputs #7

Open
janishjit opened this issue May 15, 2021 · 2 comments
Open

Different outputs #7

janishjit opened this issue May 15, 2021 · 2 comments

Comments

@janishjit
Copy link

I created a custom model which detects different sneakers. On running with a particular image on a python notebook and on flutter gives two different values as outputs...

I have verified the model has been saved properly and labels are in the same order but the app returns different values...

@elb3k
Copy link
Contributor

elb3k commented May 26, 2021

This might be because of default mean and std for normalization here:
https://github.com/fynnmaarten/flutter_pytorch_mobile/blob/3f0dcbcb560668d36828a8d7d18c21549e46c34a/android/src/main/java/io/fynn/pytorch_mobile/PyTorchMobilePlugin.java#L109-L110

Later the package should support custom mean and std

@fbelderink
Copy link
Owner

fbelderink commented May 26, 2021

I created a custom model which detects different sneakers. On running with a particular image on a python notebook and on flutter gives two different values as outputs...

I have verified the model has been saved properly and labels are in the same order but the app returns different values...

There's a new version now, could you try using that and then report if it solved the problem?

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

3 participants