Git Product home page Git Product logo

Comments (7)

engineer1109 avatar engineer1109 commented on June 9, 2024 1

不支持,有很多native的汇编或依赖intel mkl。不要碰了

from paddle-lite.

engineer1109 avatar engineer1109 commented on June 9, 2024 1

应该有其他成熟的AI框架,支持wasm的。但是估计都是CPU的。
性能应该很烂。勉强用用。
我记得onnxruntime可以,两年前试过

from paddle-lite.

stereomatchingkiss avatar stereomatchingkiss commented on June 9, 2024

多谢,可以理解这得多麻烦,未来有打算学ncnn,抛弃掉intel mkl,自己实现一个吗?

from paddle-lite.

stereomatchingkiss avatar stereomatchingkiss commented on June 9, 2024

应该有其他成熟的AI框架,支持wasm的。但是估计都是CPU的。 性能应该很烂。勉强用用。 我记得onnxruntime可以,两年前试过

谢谢,试过ncnn,onnxruntime和opencv dnn,作为demo,性能堪用了
对我来说,网页版最大的好处是跨平台方便,一个极好的demo工具

ncnn的问题是在网页上执行paddleocr v3的时候,推理结果是错误的
opencv dnn则是不支援动态输入
onnxruntime编译成static lib后各种链接冲突
最后还是得用onnxruntime的js版本,碍于wasm的EM_JS写的函数只能在main thread调用,代码写的有点别扭

from paddle-lite.

engineer1109 avatar engineer1109 commented on June 9, 2024

@stereomatchingkiss wasm多线程使用,需要全局开启-s USE_PTHREAD=1 (好像是这个)
第三方库也一样
web的pthread对应的是worker

from paddle-lite.

stereomatchingkiss avatar stereomatchingkiss commented on June 9, 2024

@stereomatchingkiss wasm多线程使用,需要全局开启-s USE_PTHREAD=1 (好像是这个) 第三方库也一样 web的pthread对应的是worker

已经开启了,QThread, std::thread的调用都没问题
但是不能在main thread之外呼叫EM_JS实现的函数
emscripten目前规定必须在main thread内呼叫

from paddle-lite.

hong19860320 avatar hong19860320 commented on June 9, 2024

之前已经支持 Emscripten 的编译,具体可以看下这个 PR #8985

from paddle-lite.

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.