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

Use tflite_flutter with blip #266

Open
paratechnical opened this issue Nov 20, 2024 · 0 comments
Open

Use tflite_flutter with blip #266

paratechnical opened this issue Nov 20, 2024 · 0 comments

Comments

@paratechnical
Copy link

I tried creating an interpreter with https://huggingface.co/SRDdev/Blip_Tflite

_interpreter = await Interpreter.fromAsset("lib/assets/blip.tflite");

I got the following error

2024-11-20 16:52:30.109 bla[25629:375410] +[IMKClient subclass]: chose IMKClient_Legacy 2024-11-20 16:52:30.109 bla[25629:375410] +[IMKInputSession subclass]: chose IMKInputSession_Legacy [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library '/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/resources/libtensorflowlite_c-mac.dylib': dlopen(/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/resources/libtensorflowlite_c-mac.dylib, 0x0001): tried: '/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/resources/libtensorflowlite_c-mac.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/resources/libtensorflowlite_c-mac.dylib' (no such file), '/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/resources/libtensorflowlite_c-mac.dylib' (no such file), '/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/Resources/libtensorflowlite_c-mac.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/Resources/libtensorflowlite_c-mac.dylib' (no such file), '/Users/andreiparaschiv/Documents/diverse/bla/bla/build/macos/Build/Products/Release/bla.app/Contents/Resources/libtensorflowlite_c-mac.dylib' (no such file) #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11) #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22) #2 _dylib.<anonymous closure> (package:tflite_flutter/src/bindings/bindings.dart:32) #3 _dylib (package:tflite_flutter/src/bindings/bindings.dart:46) #4 tfliteBinding (package:tflite_flutter/src/bindings/bindings.dart) #5 _TypedListBase._setRange (dart:typed_data-patch/typed_data_patch.dart) #6 _IntListMixin.setRange (dart:typed_data-patch/typed_data_patch.dart:482) #7 new Model.fromBuffer (package:tflite_flutter/src/model.dart:50) #8 new Interpreter.fromBuffer (package:tflite_flutter/src/interpreter.dart:108) #9 Interpreter.fromAsset (package:tflite_flutter/src/interpreter.dart:126) <asynchronous suspension> #10 _ImageTextEditorState._loadModel (package:bla/main.dart:45)

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