Git Product home page Git Product logo

jit-masker's Introduction

JIT-Masker

[arxiv]

Getting started

Install requirements with

pip install -r requirements

Install detectron separately with

pip install detectron2==0.1.3 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.5/index.html

To use U2Net, grab the pretrained models for U-2-Net. Either the full model or the small p-variant works - just put it in /saved_models/u2net/u2net.pth or /saved_models/u2netp/u2netp.pth.

A pretrained JITNet model for this repository can be found here. Put this model at /saved_models/jitnet/jitnet.pth.

The main script to run is infer_video.py. For example, to run JIT-Masker with your laptop webcam, run python infer_video.py -i 0.

At the moment you can choose between using a video, your own camera, or any IP-accessible camera (for example, an Android phone with IP-webcam).

The script terminates whenever the stream terminates, or when the button q is pressed.

Training (Optional)

Run python train.py to train a JITNet model on the Supervisely dataset. The Supervisely dataset is available on their official website and should be downloaded to data/supervisely.

Inference

jit-masker's People

Contributors

josephch405 avatar superdq avatar

Watchers

James Cloos avatar

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.