This repository contains the code for a web application that estimates bird counts from uploaded images and allows users to help improve the model through annotations.
To run the app, perform the following steps:
- Clone the repository.
- Download the model's weights from this link and save it in
model_files/pth. - Rename the
.pthfile asoriginal.pth. - Download the DB from this link and save it in
model_files/eval_db. - Ensure you're using Python v3.9 and install the dependencies by running the command:
pip install -r requirements.txt. - Run the site using the command:
python app.py.
- On the home page, use the "Upload Image" button to upload an image for bird count estimation.

- If you are satisfied with the result, you can try uploading more images.

- If you are not satisfied, you can choose the "Help Us Improve" button to make annotations for us.
- In the annotation tab, use the slider to get the optimal annotation.

- Click on an empty surface to annotate or click on an existing annotation to disable that dot.
- After this step, draw 3-4 bounding boxes using the cursor around singular birds so that the model can analyze what it is counting.
- Click on the "Submit Annotation" button.
- After multiple annotations, you can use the URL
/admin/review_annotationsto access the admin portal and review annotations.
- Approve or deny the annotations as necessary.
- Use the "Fine-tune" button to fine-tune the model. The fine-tuned
.pthfile will be stored on the site. - Using the drop-down menu, select the model with the least Mean Absolute Error (MAE) to be used in annotation from this point forward.