Code Monkey home page Code Monkey logo

bob-detection's Introduction

BoB-Detection

This repository is the official implementation of Object Detection and Instance Segmentation task in the Battle of the Backbones: A Large-Scale Comparison of Pretrained Models across Computer Vision Tasks.

📌 Our implementation and instructions are based on mmdetection

Installation

Step 1. Create a conda environment and activate it.

conda create --name openmmlab python=3.8 -y
conda activate openmmlab

Step 2. Install PyTorch following official instructions, e.g.

On GPU platforms:

conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.6 -c pytorch -c nvidia

Step 3. Install MMCV using MIM.

pip install -U openmim
mim install mmcv-full==1.7.0

Step 4. Install BoB-Detection.

git clone https://github.com/hsouri/bob-detection.git
cd bob-detection
pip install -v -e .
# "-v" means verbose, or more output
# "-e" means installing a project in editable mode,
# thus any local modifications made to the code will take effect without reinstallation.

Step 5. Download COCO (LVIS) and unzip dataset (you can optionally delete downloaded zip files by passing '--delete').

COCO download:

python tools/misc/download_dataset.py --dataset-name coco2017 --unzip

LVIS download:

python tools/misc/download_dataset.py --dataset-name lvis --save-dir data/lvis_v1/ --unzip
cd data/lvis_v1/
mkdir annotations
mv lvis_v1_train.json annotations/
mv lvis_v1_val.json annotations/

Please refer to Get Started, Dataset Prepare, and Dataset Download for more detailed instructions.

Usage

The config files for all experiments in Battle of the Backbones (BoB) can be found configs/bob.

To train a detector with the existing configs, run:

bash ./tools/dist_train.sh <CONFIG_FILE> <GPU_NUM>

bob-detection's People

Stargazers

Nikolaos Dionelis 2023 avatar Po Tsui avatar Avi Schwarzschild avatar SAMeh Zaghloul avatar  avatar hiyyg avatar Monte Hoover avatar Evan avatar Eteph avatar

Watchers

Hossein Souri avatar

bob-detection's Issues

About the .core and .ops

Hello!
In the new version of mmdetection, function packages such as .core .ops have been removed, and this object detection code contains many operations that call the above function packages. I would appreciate if you could tell me how to fix the above problem!

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.