Giter Site home page Giter Site logo

ankurdave / macaulay-bird-species-pittsburgh Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.37 MB

Object detection dataset based on images from Macaulay Library for 29 bird species in the Pittsburgh area. The 29 species are a subset of the 400 species in the NABirds dataset. For each species, the dataset contains about 1000 labeled images.

Python 100.00%
bird-species object-detection

macaulay-bird-species-pittsburgh's Introduction

See bird_classes.py for the meaning of each class id.

Use a pretrained YOLOv5 model:

Model Download links val [email protected]:.95
yolov5n-birds-pittsburgh .pt, ONNX .802
yolov5s-birds-pittsburgh .pt, ONNX .838

Or train your own as follows:

# Datasets
# ========
mkdir bird-datasets
pushd bird-datasets

# Clone this repo and run `python3 download_images.py && python3 create-train-test-val-split.py`,
# or download a pre-created version using
# `aws s3 cp s3://macaulay-bird-species-pittsburgh/macaulay.tar.gz . && tar xzf macaulay.tar.gz`.

# Edit macaulay/macaulay-bird-species-pittsburgh.yaml and set the path to bird-datasets.

# Optional: Download the NABirds dataset (creation instructions TODO) using
# `aws s3 cp s3://macaulay-bird-species-pittsburgh/nabirds_yolov5.tar.gz . && tar xzf nabirds_yolov5.tar.gz`.

popd

# Start from pretrained model (optional)
# ======================================
mkdir bird-models
curl -o bird-models/yolov5n-birds-pittsburgh.pt -L https://github.com/ankurdave/bird-models/raw/master/yolov5n-birds-pittsburgh.pt

# Training
# ========
git clone https://github.com/ultralytics/yolov5.git
cd yolov5
pip3 install -r requirements.txt
python3 train.py --data ../bird-datasets/macaulay/macaulay-bird-species-pittsburgh.yaml --weights ../bird-models/yolov5n-birds-pittsburgh.pt --cfg yolov5n.yaml --cache disk

To add more labels to this dataset:

  1. Search for a single bird species on eBird. Download a CSV of the search results.
  2. Edit scrape-macaulay-search-csv.py to add the CSV to csv_to_dir, then run that script to download the images.
  3. Run python3 autolabel.py <class_id> images/all/<dir>/ to label the new images with model assist. For example, to label images of Mourning Doves: python3 autolabel.py '0' images/all/0_mourning_dove/

macaulay-bird-species-pittsburgh's People

Contributors

ankurdave avatar

Watchers

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