Giter Site home page Giter Site logo

Convert to tensorflowjs about mlsd HOT 13 OPEN

navervision avatar navervision commented on June 17, 2024
Convert to tensorflowjs

from mlsd.

Comments (13)

geonm avatar geonm commented on June 17, 2024 1

No problem. 😄

I will share ckpt files after checking the code ASAP.

from mlsd.

geonm avatar geonm commented on June 17, 2024 1

I added ckpt files. (For now, only M-LSD 512 large model is uploaded)

Please refer to https://github.com/navervision/mlsd/tree/master/ckpt_models/M-LSD_512_large

If you want to check the code that converts the ckpt files into a tflite model, please refer to https://github.com/navervision/mlsd#how-to-convert-ckpt-models-to-tflite-models

from mlsd.

dongngm avatar dongngm commented on June 17, 2024 1

sorry for bothering you again @geonm . I've tested the converted tensorflowjs model and it seems that the response time is not good enough for my real-time application. Could you please also upload the tiny with lower resolution model version? Thanks a lot.

from mlsd.

geonm avatar geonm commented on June 17, 2024

Hi.

Glad to hear that.

Do you want ckpt files?

from mlsd.

dongngm avatar dongngm commented on June 17, 2024

Yes, it would be very helpful. Thanks a lot @geonm

from mlsd.

dongngm avatar dongngm commented on June 17, 2024

big thanks @geonm

from mlsd.

geonm avatar geonm commented on June 17, 2024

Of course, I can provide all ckpt files.

However, my computing server used in this project will not be available until next Monday (10/25/2021 KST) due to internal circumstances.

Is it urgent?

BTW, what was the FPS of your application with M-LSD 512 large?

With desktop CPU, M-LSD 512 large (ckpt file) was fast enough for me.

NOTE: In this repository, I coded easy-to-use demo using only tflite models.
Even it works on desktop CPU, it is slower than mobile devices.
Please refer to https://stackoverflow.com/questions/54093424/why-is-tensorflow-lite-slower-than-tensorflow-on-desktop

from mlsd.

dongngm avatar dongngm commented on June 17, 2024

Next Monday is fine. Thank you @geonm
I am having like 700ms for a single image prediction with tensorflow js on my desktop (quite not comparable to what you've got with tflite models, don't know tensorflow js could be that slower). Maybe trying smaller model, lower resolution may help

from mlsd.

dongngm avatar dongngm commented on June 17, 2024

hi, any update on this @geonm?

from mlsd.

geonm avatar geonm commented on June 17, 2024

I got the machine and now I'm testing.

from mlsd.

geonm avatar geonm commented on June 17, 2024

I added all ckpt files.

M-LSD 512 large, M-LSD 320 large
M-LSD 512 tiny, M-LSD 320 tiny

Please refer to https://github.com/navervision/mlsd/tree/master/ckpt_models

If you want to check the code that converts the ckpt files into a tflite model, please refer to https://github.com/navervision/mlsd#how-to-convert-ckpt-models-to-tflite-models

@dongngm Could you make your tensorflow JS codes public?

It will be very helpful to anyone new to tensorflow JS with M-LSD.

from mlsd.

dongngm avatar dongngm commented on June 17, 2024

thanks @geonm
After testing is ok I will make PR for tensorfow JS code

from mlsd.

randhirjhadw avatar randhirjhadw commented on June 17, 2024

Hello @dongngm

I am trying to convert the model to tenserflowjs but it's not working
Can you help to convert the ckpt model to tenserflowjs?

Thank you.

from mlsd.

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.