Giter Club home page Giter Club logo

dmnet-for-marine-debris-detection's Introduction

DMNet-for-Marine-Debris-Detection

This is not the official repository for CDMnet (pdf) or DMnet (pdf)

Introduction

  • There are two challenges in detecting objects from aerial images:
    • Most objects appear small
    • Uneven distribution of object positions reduces detection efficiency
  • CDMnet and DMnet is designed to detect small objects more efficiently in urban aerial scenes, and we need to detect floating objects on the sea, both of which have the same characteristics of being small in comparison to the scene

marineDebris

An Overview of our framework

Sample

marineDebris marineDebris

Density map generation

There are already state of art algorithms that can achieve satisfying results on density map generation. In our project, the density map generation modular uses MCNN to achieve the task.

We introduce code from Ma to train MCNN.

The pretrain weight can be accessed here.

Object detection

There are a lot of state-of-art real-time object detector that can achieve fast and high accuracy object detection nowadays. In our project, we prefer Yolov7-tiny as the detector.

We introduce code from WongKinYiu to train Yolo

Model

Here provided the finetuned models on Marine Debris that available for direct application in tiny marine debris detection.

Download Links
MCNN pretrained model Link
Finetuned Marine Debris Yolo model Link
Dataset Not available
Yolov7-tiny Config Link

Usage

0. Prepare the dataset

  • Due to license problem with our dataset, it is not available for download.
  • Prepare your dataset with point labels (for training MCNN) and annotation labels (for training yolo)

1. Training

  • Run the following command to install required library
pip install -r requirements.txt
  • We introduce code from Ma to train MCNN.
  • We introduce code from WongKinYiu to train Yolo
  • Put your MCNN param file under MCNN_weights/ and Yolov7-tiny weights file under Yolov7_weights/

2. Custom Inputs

  • Prepare your images and run the command using pretrained MCNN and Yolov7-tiny for jpg image
python detect.py --img_dir samples/Trash.jpg --mcnn_param MCNN_weights/mcnn_marine_debris.param --yolo_weights Yolov7_weights/best.pt --half

Acknowledgement

  • The ideas of our implementation is come from CDMnet and DMnet
  • Density map generation code is borrowed from the MCNN-pytorch
  • Detector code is borrowed from the Official YOLOv7
  • Thanks for their nice contribution.

dmnet-for-marine-debris-detection's People

Contributors

hengweibin avatar

Watchers

 avatar

dmnet-for-marine-debris-detection's Issues

Finetuend model link

Hello, I would like to use the fine-tuned model you provided, but I found that the link has expired.
Could you provide a new one?
Thanks!

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.