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

Did not work on .NET MAUI Application #77

Open
artimisgroup opened this issue Aug 1, 2022 · 7 comments
Open

Did not work on .NET MAUI Application #77

artimisgroup opened this issue Aug 1, 2022 · 7 comments

Comments

@artimisgroup
Copy link

artimisgroup commented Aug 1, 2022

On a .NET MAUI app I tried the following.

using var stream = await FileSystem.OpenAppPackageFileAsync("model.tflite"); var bytes = stream.ReadAllBytes(); var flatBuffer = new Emgu.TF.Lite.FlatBufferModel(bytes);

it crashed instantiating the FlatBufferModel and I could not proceed further to use the Interpreter. There was no exception on Visual Studio that I could get hold off.

Do you have any examples for the .NET MAUI ?

@emgucv
Copy link
Owner

emgucv commented Aug 1, 2022

Does the same model works without MAUI? Based on the code you provided it doesn't seems to be related to MAUI. The flatbuffer loader seems to be unable to recognize you file.

@emgucv
Copy link
Owner

emgucv commented Aug 1, 2022

Any error messages associated with the crash?

@artimisgroup
Copy link
Author

Hi

Thank you for looking into this issue.

It is a MAUI application
<TargetFrameworks>net6.0-android;net6.0-ios</TargetFrameworks>

I was trying on net6.0-android.

I have put the following line as the first statement and it failed too. Sorry I do not have any messages associated with the crash. It just stops. Visual Studio also did not report anything. The debug mode just stopped.
TfLiteInvoke.Init();

Do I need to add any runtime? Note I am trying on an emulator.

Pixel5 - API 31

I will also try with the model from the examples that you provided that works for me on .NET Standard in a windows PC.

@emgucv
Copy link
Owner

emgucv commented Aug 2, 2022

Did you added the commercial runtime nuget package (or dlls from commercial release) for Android and iOS into your MAUI app?

@artimisgroup
Copy link
Author

artimisgroup commented Aug 3, 2022

No I didn't. I will try with them. Would you kindly provide me the nuget names that I should add to my MAUI app. Kindly point me to the commercial nuget package (or dlls from commercial release)

Thank you so much.

image

@artimisgroup
Copy link
Author

Kindly advise.

@emgucv
Copy link
Owner

emgucv commented Aug 8, 2022

You will have access to the commercial release nuget files once you purchased our commercial license. License can be purchased here:
https://www.emgu.com/wiki/index.php/EMGU_TF_Commercial_License_Purchase

If you would like to get an evaluation copy before making purchase. Please email us [email protected]

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

2 participants