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

Does this work with quantised models? #93

Open
aaa3334 opened this issue Sep 30, 2024 · 2 comments
Open

Does this work with quantised models? #93

aaa3334 opened this issue Sep 30, 2024 · 2 comments

Comments

@aaa3334
Copy link

aaa3334 commented Sep 30, 2024

Hi!

I have tried a few different models with this but when I try one that is quantised, I get that the model refuses to load.. Just wondering if it only works with non-quantised models or if it would also work with quantised?

Thanks in advance!

Copy link

Guten Tag, Hans here 🍻

Thanks for your question! To help you better, we need to know more information about ze issue. Please provide any error logs you've received when trying to load ze quantised models. You can gather ze logs from Xcode for iOS or use adb logcat for Android.

Also, keep in mind that if you want ze repository maintainers to take a closer look at your issues, consider supporting ze project through sponsorship! This helps us manage ze project better.

Looking forward to your response!

Note: If you think I made a mistake, please ping @mrousavy to take a look.

@aaa3334
Copy link
Author

aaa3334 commented Oct 1, 2024

I have tried about 4 different quantised models now and I just get:
LOG MODEL not loaded

export const textRecognition = () => {
const tf = useTensorflowModel(
require("../../assets/models/ocrattempt.tflite")
);
const { resize } = useResizePlugin();

const recognizeText = useCallback(
(frame: Frame) => {
"worklet";
if (tf.state !== "loaded" || tf.model === undefined) {
console.log("MODEL not loaded");
return null;
}

Unsure how to collect the logs (i am not really seeing any in xcode but can look more closely).

Models tried are the smaller selfie segmenter by google and this ocr one: https://www.kaggle.com/models/spsayakpaul/east-text-detector/TfLite/dr/1

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