iamgyz / removebg-human

AI-based image background removal for human portrait

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AI-based background removal for human portrait

Fully powered by Tensorflow with the Semantic Segmentation in the Browser: DeepLab v3 Model!

Note: This is just a practice for Tensorflow.js with deeplab model, the trained model and parameters are from the official repo directly.

Live demo

https://rmbg.gyzlab.com/

image

Setup

Install dep

yarn

Launch the development server watching the files for changes.

yarn watch

Done!

How to generate tensorflow-deeplab dependency if need update?

  1. Go to https://github.com/tensorflow/tfjs-models/tree/master/deeplab and download.
  2. Follow instruction to build, and find everything in ./dist folder
  3. Copy everything in the dist folder to /tensoflow-deeplab

Reference

https://www.tensorflow.org/js/models?hl=zh-tw

https://github.com/tensorflow/tfjs-models/tree/master/deeplab

About

AI-based image background removal for human portrait

License:Apache License 2.0


Languages

Language:JavaScript 76.7%Language:CSS 14.6%Language:HTML 8.7%