HCA97 / Mosquito-Classifiction

7th place solution of Aicrowd Mosquito Alert Competition
GNU General Public License v3.0
1 stars 1 forks source link
aicrowd classification clip computer-vision deep-learning machine-learning pytorch pytorch-lightning vision-transformer yolov8

Mosquito Classification

This is the 7th place solution for the MosquitoAlert Challenge 2023. The goal of this competition is to identify mosquitoes and determine their species.

How to Run CLIP Classifier

  1. Install Datasets

    • Download the competition dataset from here and unzip it to a folder named data_round_2 (the annotations files are included).
    • Install lux's dataset, unzip gbif-cropped and inaturalist-six-cropped (the annotations files are included).
  2. Install Dependencies

    • Use the following command to install the necessary dependencies: pip install -r requirements.txt.
  3. Run the Classifier

    • Navigate to the experiments directory and execute the following command: python mosquito_clf_yolo_lux_ema.py.

How to Train YOLOv8-s Model

  1. Install Competition Dataset

    • Download the competition dataset from here and unzip it to a folder named data_round_2.
  2. Install Dependencies

    • Use the following command to install the necessary dependencies: pip install -r requirements.txt.
  3. Prepare YOLO Dataset

    • Navigate to the experiments/yolo directory and run the script: python convert_mosquito_to_yolo.py.
  4. Start Training

    • Execute the command: python yolo_training.py.

Model Weights

You can find the model weights and instructions on how to use them on the Hugging Face Model Hub.

Annotation Files

data_round_2

gbif-cropped and inaturalist-six-cropped