Giter VIP home page Giter VIP logo

waterfowl_detector_trainer's Introduction

Waterfowl_detector_trainer

This code serves as a demo of showing how to train waterfowl detectors(Yolov5, YoloNAS and FasterRCNN) on our waterfowl pipelines.

System requirements

Support is available only for the Linux Ubuntu system, and it can be used within a CUDA environment. It has been tested in Ubuntu 18 with Python 3.8.

Installation

Clone the repository

You can use the command line to clone the repository:

git clone https://github.com/YangZhangMizzou/Waterfowl_detector_trainer.git

Create virtual environment

Using a virtual environment is recommended for installing the package. Anaconda is recommended for this purpose. After installing Anaconda, refer to this guide to create your virtual environment. It's recommended to create the environment with Python 3.8:

conda create -n torch_py3 python==3.8
conda activate torch_py3
cd Waterfowl_detector_pipeline_final

Install pytorch

We recommend installing PyTorch with CUDA to accelerate running speed:

conda install pytorch==1.10.0 torchvision==0.11.0 torchaudio==0.10.0 cudatoolkit=11.3 -c pytorch -c conda-forge

Install basic dependency

pip install pandas
pip install numpy
pip install opencv-python
pip install tqdm
pip install scikit-learn

Install dependency for FasterRCNN

python -m pip install 'git+https://github.com/facebookresearch/detectron2.git'

Install dependency for YOLOV5

Just run this command and all set for YOLOV5

pip install -r requirements.txt

Install dependency for YoloNAS

pip install super-gradients==3.1.3
pip install setuptools==59.5.0
pip install tensorboardX
pip install progress

Dataset preparation

The datasets arrangement for yolonas, yolov5 and fasterrcnn are different. we prepare a sample dataset for each models. They can be downloaded from here. Please unzip them into folder dataset. If you want to prepare your customized dataset for training, check github repositories yolonas, yolov5 and fasterrcnn for details.

Pretrained Weight

For fast model converge, we also provide pretrained weight of yolo5, yolonas and fasterrcnn which are pretrained by our 15m waterfowl detection datasets. Pretrained weight can be downloaded here. Please unzip them into folder pretrained_weights.

Run the Scripts:

After you finish the data preparation and the installation of our software, you can run the following commands to start training for yolonas, yolov5 and fasterrcnn. Training result will be saved in folder result.

Training for yolonas

python train_yolonas.py

Training for yolov5

python train_yolov5.py

Training for fasterrcnn

python train_fasterrcnn.py

waterfowl_detector_trainer's People

Contributors

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