Merge pull request #18591 from sl-sergei:download_utilities
authorSergei Slashchinin <62052793+sl-sergei@users.noreply.github.com>
Fri, 11 Dec 2020 10:15:32 +0000 (13:15 +0300)
committerGitHub <noreply@github.com>
Fri, 11 Dec 2020 10:15:32 +0000 (10:15 +0000)
commit1f3255d76b78cf59173bdc487c5cc97b04d821f9
tree9cbf8c1f595a343046b06da0b4f041b734948f66
parentfdeac73a59652e61a339844603fb4b35d6580609
Merge pull request #18591 from sl-sergei:download_utilities

Scripts for downloading models in DNN samples

* Initial commit. Utility classes and functions for downloading files

* updated download script

* Support YAML parsing, update download script and configs

* Fix problem with archived files

* fix models.yml

* Move download utilities to more appropriate place

* Fix script description

* Update README

* update utilities for broader range of files

* fix loading with no hashsum provided

* remove unnecessary import

* fix for Python2

* Add usage examples for downloadFile function

* Add more secure cache folder selection

* Remove trailing whitespaces

* Fix indentation

* Update function interface

* Change function for temp dir, change entry name in models.yml

* Update getCacheDirectory function call

* Return python implementation for cache directory selection, use more specific env variable

* Fix whitespace
samples/dnn/.gitignore [new file with mode: 0644]
samples/dnn/README.md
samples/dnn/download_models.py [new file with mode: 0644]
samples/dnn/face_detector/download_weights.py [deleted file]
samples/dnn/face_detector/weights.meta4
samples/dnn/models.yml