GithubHelp home page GithubHelp logo

peterl1n / backgroundmattingv2-tensorflow Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 13.0 11 KB

TensorFlow implementation of Real-Time High-Resolution Background Matting

License: MIT License

Python 100.00%
computer-vision machine-learning matting

backgroundmattingv2-tensorflow's People

Contributors

dathudeptrai avatar peterl1n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

backgroundmattingv2-tensorflow's Issues

Speed

Is TF implementation faster than torch one?

Wrong results in Tensorflow JS

Hi! I'm having very strange outputs in TensorflowJS w.r.t. the ones I obtain running locally the MattingRefine model.

Everything is fine if the refine mode is "Full" or I use only the MattingBase network.

But if I use in TensorflowJS the "sampling" and "thresholding" refine modes within the MattingRefine model I obtain wrong results, like showed in the figures.
The images are simply the foreground output concatened with the alpha channel. Background and bottle are the same.

Tensorflow JS output (MattingRefine w/ thresholding mode)

Background matting webcam demo - Google Chrome 28_07_2022 11_42_43

Tensorflow output (MattingRefine w/ thresholding mode)

BackgroundMatting – tf_model_refinercustom py 28_07_2022 11_40_24

I think this is related to different implementations of operators between Keras and TensorflowJS.
Do you have any idea where are the instructions wrongly interpreted?

Thanks for your help and congrats for your great job!

Notes: I converted the Keras model first to Saved Model format and then to TFJS using TFJS-converter.

Full example

Could you please expand the example snippet to a full example?
This would be really helpfull.
Thanks.

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.