Skip to content

Actualize some of DNN models links#1080

Merged
opencv-alalek merged 12 commits intoopencv:4.xfrom
dkurt:actualize_dnn_links
Aug 16, 2023
Merged

Actualize some of DNN models links#1080
opencv-alalek merged 12 commits intoopencv:4.xfrom
dkurt:actualize_dnn_links

Conversation

@dkurt
Copy link
Copy Markdown
Member

@dkurt dkurt commented Aug 7, 2023

Remaining broken URLs:

* ResNet-50-model.caffemodel
* openpose_pose_coco.caffemodel
* openpose_pose_mpi.caffemodel
* gsoc2016-goturn/goturn.caffemodel
* onnx/models/yolov7_not_simplified.onnx

@dkurt dkurt added the DNN dnn related tests and data label Aug 7, 2023
@dkurt
Copy link
Copy Markdown
Member Author

dkurt commented Aug 7, 2023

TODO:

  • Create a branch to trigger tests

if sys.version_info[0] < 3:
from urllib2 import urlopen
else:
from urllib.request import urlopen
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requests is more stable than urlopen

sha='994d30a8afaa9e754d17d2373b2d62a7dfbaaf7a',
url='https://raw.githubusercontent.com/chuanqi305/MobileNet-SSD/97406996b1eee2d40eb0a00ae567cf41e23369f9/mobilenet_iter_73000.caffemodel',
sha='19e3ec38842f3e68b02c07a1c24424a1e9db57e9',
filename='MobileNetSSD_deploy.caffemodel'),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not change content (check sum) under the same name.

This is a limitation of shared network storage. There is no versioning.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Found exact commits for ONNX models but renamed MobileNetSSD_deploy.

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'),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMZ models are downloaded using OMZ downloader.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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().

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, got it. Removed OpenVINO models.

@dkurt dkurt force-pushed the actualize_dnn_links branch from e4b34e8 to e501ad1 Compare August 11, 2023 11:23
@opencv-alalek opencv-alalek merged commit ff3b9ef into opencv:4.x Aug 16, 2023
@dkurt dkurt deleted the actualize_dnn_links branch August 16, 2023 12:49
@asmorkalov asmorkalov mentioned this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DNN dnn related tests and data

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants