Actualize some of DNN models links#1080
Conversation
|
TODO:
|
| if sys.version_info[0] < 3: | ||
| from urllib2 import urlopen | ||
| else: | ||
| from urllib.request import urlopen |
There was a problem hiding this comment.
requests is more stable than urlopen
testdata/dnn/download_models.py
Outdated
| sha='994d30a8afaa9e754d17d2373b2d62a7dfbaaf7a', | ||
| url='https://raw.githubusercontent.com/chuanqi305/MobileNet-SSD/97406996b1eee2d40eb0a00ae567cf41e23369f9/mobilenet_iter_73000.caffemodel', | ||
| sha='19e3ec38842f3e68b02c07a1c24424a1e9db57e9', | ||
| filename='MobileNetSSD_deploy.caffemodel'), |
There was a problem hiding this comment.
We should not change content (check sum) under the same name.
This is a limitation of shared network storage. There is no versioning.
There was a problem hiding this comment.
I will try to fix that. Hopefuly, most of the ONNX models have not changed - only their input/output data (propably, I could find a workaround). Archives might be renamed.
There was a problem hiding this comment.
Done. Found exact commits for ONNX models but renamed MobileNetSSD_deploy.
testdata/dnn/download_models.py
Outdated
| name='age-gender-recognition-retail-0013 (FP32)', | ||
| url='https://storage.openvinotoolkit.org/repositories/open_model_zoo/2021.2/models_bin/3/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013.xml', | ||
| sha='9b99a163614a8f59bf90d5b094a98f0d3f63eb3c', | ||
| filename='omz_intel_models/intel/age-gender-recognition-retail-0013/FP32/age-gender-recognition-retail-0013.xml'), |
There was a problem hiding this comment.
OMZ models are downloaded using OMZ downloader.
There was a problem hiding this comment.
This was a request by @asmorkalov: opencv/ci-gha-workflow#109 (comment)
There was a problem hiding this comment.
Problem is that path should not be
<OPENCV_DNN_TEST_DATA_PATH>/dnn/omz_intel_models/...
Correct path looks like:
<OPENCV_DNN_TEST_DATA_PATH>/omz_intel_models/...
See initDLDTDataPath().
There was a problem hiding this comment.
Oh, got it. Removed OpenVINO models.
e4b34e8 to
e501ad1
Compare
Remaining broken URLs: