Rare animals detection samara hack

Eval file "label.csv" for task1 in eval_task1 directory

Eval file "label.csv" for task2 in eval_task2 directory

Web app

Simple app consisting of a form where you can upload an image, and see the inference result of the model in the browser. Run:

$ python3 webapp.py --port 5000

then visit http://localhost:5000/ in your browser

Run & Develop locally

Run locally and dev:

  • python3 -m venv venv
  • source venv/bin/activate
  • (venv) $ pip install -r requirements.txt
  • (venv) $ cd webapp
  • (venv) $ python3 webapp.py --port 5000

Docker

The example dockerfile shows how to expose the rest API:

# Build
docker build -t yolov5-flask .
# Run
docker run -p 5000:5000 yolov5-flask:latest