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

Question around padding #26

Open
sabatale opened this issue Jan 15, 2022 · 0 comments
Open

Question around padding #26

sabatale opened this issue Jan 15, 2022 · 0 comments

Comments

@sabatale
Copy link

sabatale commented Jan 15, 2022

Great project and lots of good ideas! I'm testing lobe within a Chrome extension but can't seem to make it work. I was wondering if you had any guideline specifically for extension with tfjs?

My code is working only up to @tensorflow/tfjs ^1.7.4 for some reason and the official Google example also uses a very old release: https://github.com/tensorflow/tfjs-examples/blob/master/chrome-extension/src/background.js. I'm using the same settings as the example file generated during the Lobe export (scalar 255, center crop, resize).

Unfortunately the predictions are wrong. They are very accurate when tested locally with Lobe but do not seem to work at all within the extension (all confidence levels seem to be the same, no matter the image). I had to replace the RVhQTElDSVQ= padding with U0FNRQ== as well (not supported in 1.7.4) - could that be the reason?

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