This repository contains data and evaluation scripts for plots from https://dkurt.github.io/dl_tradeoff which represent comparison of different computer vision deep learning networks by accuracy and efficiency.
This kind of diagrams can help to choose pre-trained networks for your problem or decide which topology / backbone is more suitable for training.
NOTE: Explore datasets that were used for evaluation! Some of the models can be trained for specific use cases and may perform better for some of the scenarios. To put as much networks as possible to a single chart we had to evaluate them on the same data to make metrics comparable. Image previews will be added later.
There are two sources which are used for evaluation: Open Mozel Zoo which is more preferable and custom models. Choose one of them for contribution.
Open an issue or contribute changes by a pull request.
Branches strategy:
- master - release versions. Is used for rendering.
- gh-pages - development branch (choose one for new pull requests).
If you want to try to reproduce the data, follow these steps:
- Clone Open Model Zoo
git clone https://github.com/opencv/open_model_zoo
git remote add dkurt https://github.com/dkurt/open_model_zoo
git fetch dkurt py_open_model_zoo_v2
git checkout py_open_model_zoo_v2
export PYTHONPATH=/path/to/open_model_zoo/tools/downloader:$PYTHONPATH-
Install OpenCV at least of version 4.1.2 or starts with OpenVINO R3
-
Download task specific dataset:
- COCO for object detection: http://cocodataset.org/#download
- ImageNet for classification: http://www.image-net.org/challenges/LSVRC/2012/nonpub-downloads
- FDDB for face detection: http://vis-www.cs.umass.edu/fddb/
- (optional for object detection) Install COCO validation pipeline
git clone https://github.com/cocodataset/cocoapi
cd cocoapi/PythonAPI
python3 setup.py build_ext --inplace
rm -rf build
export PYTHONPATH=/path/to/cocoapi/PythonAPI:$PYTHONPATH