GithubHelp home page GithubHelp logo

anminhhung / segment-anything-clip Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pengtaojiang/segment-anything-clip

0.0 0.0 0.0 22.54 MB

Connecting segment-anything's output masks with the CLIP model; Awesome-Segment-Anything-Works

Home Page: https://github.com/PengtaoJiang/Segment-Anything-CLIP

License: Apache License 2.0

Shell 0.01% Python 0.98% Jupyter Notebook 99.01%

segment-anything-clip's Introduction

Conect Segment-Anything with CLIP

We aim to classify the output masks of segment-anything with the off-the-shelf CLIP models. The cropped image corresponding to each mask is sent to the CLIP model.

Other Nice Works

Editing-Related Works

  1. sail-sg/EditAnything
  2. IDEA-Research/Grounded-Segment-Anything
  3. geekyutao/Inpaint-Anything

Segmentation-Related Works

  1. maxi-w/CLIP-SAM
  2. Curt-Park/segment-anything-with-clip
  3. kadirnar/segment-anything-video
  4. fudan-zvg/Semantic-Segment-Anything
  5. continue-revolution/sd-webui-segment-anything
  6. RockeyCoss/Prompt-Segment-Anything
  7. ttengwang/Caption-Anything
  8. ngthanhtin/owlvit_segment_anything
  9. lang-segment-anything
  10. helblazer811/RefSAM
  11. Hedlen/awesome-segment-anything
  12. ziqi-jin/finetune-anythin
  13. ylqi/Count-Anything

Todo

  1. We plan connect segment-anything with MaskCLIP.
  2. We plan to finetune on the COCO and LVIS datasets.

Run Demo

Download the sam_vit_h_4b8939.pth model from the SAM repository and put it at ./SAM-CLIP/. Follow the instructions to install segment-anything and clip packages using the following command.

cd SAM-CLIP; pip install -e .
pip install git+https://github.com/openai/CLIP.git

Then run the following script:

sh run.sh

Example

Input an example image and a point (250, 250) to the SAM model. The input image and output three masks as follows:

The three masks and corresponding predicted category are as follows:

You can change the point location at L273-274 of scripts/amp_points.py.

## input points 
input_points_list = [[250, 250]]
label_list = [1]

segment-anything-clip's People

Contributors

pengtaojiang 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.