Code Monkey home page Code Monkey logo

decompose-anything's Introduction

decompose-anything

use SAM and some new tech cooperating with Inpaint to decompose layers wisely.

Authors: Wt.Y

Institute: ZJU

(๐Ÿ“ง) corresponding author

News

  • 2023/08/15 Create repo

Introduction

Features

  • Inpaint wisely with Layer Knowledge and User design
  • Layer perception
  • Decompose Anything with Simple Interaction
  • High Quality Matting and Mask Results

Quick Start

Quick Installation

Install Segment Anything Models as following:

pip install git+https://github.com/facebookresearch/segment-anything.git

Install ViTMatte as following:

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'
pip install -r requirements.txt

Install GroundingDINO as following:

cd Matte-Anything
git clone https://github.com/IDEA-Research/GroundingDINO.git
cd GroundingDINO
pip install -e .

Download pretrained models SAM_vit_h, ViTMatte_vit_b, and GroundingDINO-T. Put them in ./pretrained

Run our web-ui!

How to use

  1. Upload the image and click on it (default: foreground point).
  2. Click Start!.
  3. Modify erode_kernel_size and dilate_kernel_size for a better trimap (optional).

๐Ÿ“‹ Todo List

  • [] Matte part
  • [] Inpaint part
  • [] layer perception part

Input Signal

input_signal

Decompose component

decompose_component

Matte part

we find a good matte repo Matte-Anything which part similar as our matte thinking.And we use their repo to do some matte work. matte example matte example

Acknowledgement

Thanks to their work we can easilier get good output.

Citation

@article{decompose_anything,
  year={2023}
}

decompose-anything's People

Contributors

hezi-ywt avatar

Watchers

 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.