MCPcopy Index your code
hub / github.com/UCSB-VRL/WildlifeMapper

github.com/UCSB-VRL/WildlifeMapper @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
287 symbols 724 edges 26 files 90 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

WildlifeMapper: Aerial Image Analysis for Multi-Species Detection and Identification

WildlifeMapper (WM) is a state-of-the-art model for detecting, locating, and identifying multiple animal species in aerial imagery. It introduces novel modules to enhance localization and identification accuracy, with a verified dataset of 11k images and 28k annotations. This repository contains code for WildlifeMapper, scripts to download and tool to visualize dataset (BisQue).

WildlifeMapper: Aerial Image Analysis for Multi-Species Detection and Identification

Satish Kumar*, Bowen Zhang, .. , Jared A. Stabach, Lacey Hughey, .. , B S Manjunath.

Official repository of our CVPR 2024 paper.

This repository includes: * Source code of WildlifeMapper. * Pre-trained weights for the bounding box detector. * Scripts to download Mara-Wildlife dataset (Approvals under review) * Online tool to visualize Mara-Wildlife dataset (BisQue) * Code for custom data preparation for training/testing

supported versions Library GitHub license

The repository follows the structure of paper, making it easy to follow and use/extend the work. If this research is helpful to you, please consider citing our paper (bibtex below)

Citing

If this research is helpful to you, please consider citing our paper:

@inproceedings{kumar2024wildlifemapper,
  title={WildlifeMapper: Aerial Image Analysis for Multi-Species Detection and Identification},
  author={Kumar, Satish and Zhang, Bowen and Gudavalli, Chandrakanth and Levenson, Connor and Hughey, Lacey and Stabach, Jared A and Amoke, Irene and Ojwang, Gordon and Mukeka, Joseph and Mwiu, Stephen and others},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={12594--12604},
  year={2024}
}

Usage

Requirements

  • Linux or macOS with Python >= 3.7
  • Pytorch >= 1.7.0
  • CUDA >= 10.0
  • cudNN (compatible with CUDA)

Installation

  1. Clone the repository
  2. Install dependencies
pip install -r requirements.txt

Dataset

See here for an overview of the datastet. The sample dataset can be downloaded here.

We save masks per image as a json file. It can be loaded as a dictionary in python in the below format.

{
    "image"                 : image_info,
    "annotations"           : [annotation],
}

image_info {
    "image_id"              : int,              # Image id
    "width"                 : int,              # Image width
    "height"                : int,              # Image height
    "file_name"             : str,              # Image filename
}

annotation {
    "id"                    : int,              # Annotation id
    "bbox"                  : [x, y, w, h],     # The box around the mask, in XYWH format
    "predicted_iou"         : float,            # The model's own prediction of the mask's quality
    "stability_score"       : float,            # A measure of the mask's quality
}

Dataset visualization guide

License

WildlifeMapper is released under the UCSB license. Please see the LICENSE file for more information.

Contributors

The WildlifeMapper project was made possible with the help of many contributors for all over the world: Satish Kumar, Bowen Zhang, Chandrakanth Gudavalli, Connor Levenson, Lacey Hughey, Jared A. Stabach, Irene Amoke, Gordon Ojwang’, Joseph Mukeka, Stephen Mwiu, Joseph Ogutu, Howard Frederick, B.S. Manjunath

Core symbols most depended-on inside this repo

items
called by 22
wildlifemapper/segment_anything/utils/amg.py
to
called by 19
wildlifemapper/segment_anything/utils/misc.py
cat
called by 18
wildlifemapper/segment_anything/utils/amg.py
print
called by 17
wildlifemapper/train_utils.py
max
called by 14
wildlifemapper/segment_anything/utils/misc.py
update
called by 7
wildlifemapper/segment_anything/utils/misc.py
print
called by 5
wildlifemapper/segment_anything/utils/misc.py
build_dataset
called by 4
wildlifemapper/dataloader_coco.py

Shape

Method 163
Function 78
Class 46

Languages

Python100%

Modules by API surface

wildlifemapper/segment_anything/utils/augmentation.py42 symbols
wildlifemapper/segment_anything/utils/misc.py35 symbols
wildlifemapper/segment_anything/utils/amg.py26 symbols
wildlifemapper/segment_anything/modeling/image_encoder.py22 symbols
wildlifemapper/inference.py16 symbols
wildlifemapper/segment_anything/build_sam.py15 symbols
wildlifemapper/segment_anything/modeling/prompt_encoder.py14 symbols
wildlifemapper/dataloader_coco.py13 symbols
wildlifemapper/segment_anything/utils/augmentation_yolo.py12 symbols
wildlifemapper/segment_anything/modeling/transformer.py11 symbols
wildlifemapper/segment_anything/modeling/box_decoder.py10 symbols
wildlifemapper/segment_anything/utils/transforms.py9 symbols

For agents

$ claude mcp add WildlifeMapper \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact