Code Monkey home page Code Monkey logo

Comments (5)

remcova avatar remcova commented on July 20, 2024 2

I got GPU delegate to work by removing unnecessary import from my project (I don't remember exactly how, but I had made really silly mistake. I guess I had gradle tensorflow gpu import inside my project, not in plugin). But I couldn't run inference on tiny yolov2 because it has operations that are unsupported by tensorflow lite gpu delegate (if I recall correctly it was MAX operation).

How did you enable/add GPU delegate in your Flutter project?

from flutter_tflite.

shaqian avatar shaqian commented on July 20, 2024 1

GPU delegate is now supported in the latest version 1.1.0. Set useGpuDelegate to true in loadModel.

Thanks,
Qian

from flutter_tflite.

Cheren15 avatar Cheren15 commented on July 20, 2024

Hi, @shaqian
It's a great work! I also tried to apply GPU delegate by adding gpudelegate to .\flutter.pub-cache\hosted\pub.flutter-io.cn\tflite-1.0.4, and also implemented tensorflow-lite-gpu:0.0.0-nightly in dependencies.
However it doesn't seems a huge difference occurs, looking forward to your suggestions!

from flutter_tflite.

shaqian avatar shaqian commented on July 20, 2024

Sorry for the delay. I don't have a compatible phone to test GPU. 😂
Looking at the the error, I think the problem may be the path is wrong? Should it be "/org" rather "Lorg" ?
Failed resolution of: Lorg/tensorflow/lite/experimental/GpuDelegate;

@Cheren15 Are you able to get GPU work successfully? I saw discussions previously (if I remember correctly) the GPU version improves certain operations, if your model doesn't use those operations there won't be much difference.

from flutter_tflite.

westracer avatar westracer commented on July 20, 2024

I got GPU delegate to work by removing unnecessary import from my project (I don't remember exactly how, but I had made really silly mistake. I guess I had gradle tensorflow gpu import inside my project, not in plugin). But I couldn't run inference on tiny yolov2 because it has operations that are unsupported by tensorflow lite gpu delegate (if I recall correctly it was MAX operation).

from flutter_tflite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.