Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add humanseg model and test data #892

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

wjj19950828
Copy link
Contributor

@wjj19950828 wjj19950828 commented Aug 6, 2021

test data and onnx model for PR:opencv/opencv#20511

@fengyuentau
Copy link
Member

Patch size is limited to 1024KiB. You can try follow this example to generate an ONNX model with the single layer you want to test.

@wjj19950828
Copy link
Contributor Author

Because my model is exported from Paddle to ONNX,but generate_onnx_model.py use PyTorch,so can i upload the ONNX model to Google Drive like this:#773

@fengyuentau
Copy link
Member

fengyuentau commented Aug 13, 2021

Because my model is exported from Paddle to ONNX,but generate_onnx_model.py use PyTorch,so can i upload the ONNX model to Google Drive like this:#773

  1. Your regression test is for the Resize layer, so please push an ONNX for the test of this layer only. You can take a look at the script and other ONNX models, which all follow the same principle. Make an ONNX like this:
Input -> Resize -> Output
  1. In cases like [GSoC] test data for scene text detection and recognition (High Level API) #773 , you can place the your GDrive URL in https://github.com/opencv/opencv_extra/blob/3.4/testdata/dnn/download_models.py like the following:
    Model(
    name='YOLOv4', # https://github.com/opencv/opencv/issues/17148
    downloader=GDrive('1cewMfusmPjYWbrnuJRuKhPMwRe_b9PaT'),
    sha='0143deb6c46fcc7f74dd35bf3c14edc3784e99ee',
    filename='yolov4.weights'),

@wjj19950828
Copy link
Contributor Author

Because my model is exported from Paddle to ONNX,but generate_onnx_model.py use PyTorch,so can i upload the ONNX model to Google Drive like this:#773

  1. Your regression test is for the Resize layer, so please push an ONNX for the test of this layer only. You can take a look at the script and other ONNX models, which all follow the same principle. Make an ONNX like this:
Input -> Resize -> Output
  1. In cases like [GSoC] test data for scene text detection and recognition (High Level API) #773 , you can place the your GDrive URL in https://github.com/opencv/opencv_extra/blob/3.4/testdata/dnn/download_models.py like the following:
    Model(
    name='YOLOv4', # https://github.com/opencv/opencv/issues/17148
    downloader=GDrive('1cewMfusmPjYWbrnuJRuKhPMwRe_b9PaT'),
    sha='0143deb6c46fcc7f74dd35bf3c14edc3784e99ee',
    filename='yolov4.weights'),

Thanks for your suggestions~

@alalek
Copy link
Member

alalek commented Aug 31, 2021

Need to squash commits into one to reduce size of git history.

@wjj19950828
Copy link
Contributor Author

Need to squash commits into one to reduce size of git history.

Thank you for your help~

@alalek alalek merged commit 3293387 into opencv:3.4 Sep 1, 2021
@alalek alalek mentioned this pull request Sep 1, 2021
@alalek alalek mentioned this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants