Git Product home page Git Product logo

zsis's Introduction

Zero Shot Instance Segmentation (ZSIS)

This repo is for vision-language based zero-shot instance segmentation built on top of detectron2 framework..

Installation

To use this package, you will need to install it

โ†’ via source

$ git clone https://github.com/iKrishneel/zsis.git
$ pip install -e zsis

โ†’ via pip

$ pip install git+https://github.com/iKrishneel/zsis@master

The vision-language model is based of the OpenAI CLIP and is fully configurable through the detectron2 config.

Models

Class Agnostic Instance Segmentation

This model uses the two stage MaskRCNN pipeline to generate class agnostic object bounding boxes and uses CLIP for classifying the proposal bounding boxes. The pretrained cutlter is used as a class agnostic proposal generator. The configs for Culter + CLIP can be found here.

Running Demo

To run the Culter + CLIP demo

$ python tools/test.py --config-file config/culter/cascade_mask_rcnn_R_50_FPN_clip.yaml --image PATH_TO_IMAGE --labels LIST_OF_VOCABS
Example

Run the following example command. Note that it will first download two sets of weights; one for Cutler and other for CLIP.

$ python tools/test.py --config-file config/culter/cascade_mask_rcnn_R_50_FPN_clip.yaml --image assets/images/bus.jpg --labels bus,car,people,truck,cat,dot

The example will produce following results. Results on the bus image

zsis's People

Contributors

ikrishneel avatar krishneel-sony avatar

Stargazers

 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.