GithubHelp home page GithubHelp logo

sam_with_dsdl's Introduction

Evaluation SAM with DSDL

demo

steps

1. install

git clone https://github.com/wufan-tb/sam_with_dsdl.git

cd sam_with_dsdl

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

pip install opencv-python pycocotools matplotlib dsdl

2. prepare dsdl datasets

please visit our opendatalab platform to download sam evaluation datasets and dsdl files into ./datasets folder. after downlad and unzip process, the datasets folder should like this:

./datasets
├── ADE20K
│   ├── config.py
│   ├── defs
│   ├── README.md
│   ├── set-train
│   ├── set-val
│   └── tools
├── BBBC038v1
├── DOORS
├── DRAM
├── GTEA
├── iShape
├── LVIS
├── NDD20
├── NDISPark
├── OVIS
├── Plittersdorf
├── PPDLS
├── STREETS
├── TimberSeg
├── TrashCan
├── WoodScape
└── ZeroWaste-f
└── ...

3. download sam model

default or vit_h: ViT-H SAM model.

vit_l: ViT-L SAM model.

vit_b: ViT-B SAM model.

3. set location config

to evaluate sam with python code, please change location config in ./data_cfgs.json, you can also read our tutorials to get more details about how to load dataset in python code.

4. evaluation sam

python evaluation_sa.py

notebook users can open evaluation_sa.ipynb to read details about evaluation code.

sam_with_dsdl's People

Contributors

wufan-tb 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.