Skip to content

[G-API]: Performance tests for kmeans#19497

Merged
alalek merged 2 commits intoopencv:masterfrom
OrestChura:oc/kmeans_ptest
Feb 25, 2021
Merged

[G-API]: Performance tests for kmeans#19497
alalek merged 2 commits intoopencv:masterfrom
OrestChura:oc/kmeans_ptest

Conversation

@OrestChura
Copy link
Copy Markdown
Contributor

  • Performance tests for kmeans operation added
  • New file created to share common parts between accuracy and performance tests for core kernels
  • Accuracy test bodies refactored
  • Some test typos corrected

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
force_builders=Custom,Custom Win,Custom Mac
build_gapi_standalone:Linux x64=ade-0.1.1f
build_gapi_standalone:Win64=ade-0.1.1f
build_gapi_standalone:Mac=ade-0.1.1f
build_gapi_standalone:Linux x64 Debug=ade-0.1.1f

build_image:Custom=centos:7
buildworker:Custom=linux-1
build_gapi_standalone:Custom=ade-0.1.1f

xbuild_image:Custom=ubuntu-openvino-2021.1.0:20.04
xbuild_image:Custom Win=openvino-2021.1.0
xbuild_image:Custom Mac=openvino-2021.1.0

test_modules:Custom=gapi
test_modules:Custom Win=gapi
test_modules:Custom Mac=gapi

# disabled due high memory usage: test_opencl:Custom=ON
test_opencl:Custom=OFF
test_bigdata:Custom=1
test_filter:Custom=*

 - New file for common parts of acc. and perf. tests for core kernels added
 - Some typos corrections
@OrestChura
Copy link
Copy Markdown
Contributor Author

@aDanPin please take a look

Copy link
Copy Markdown
Contributor

@aDanPin aDanPin left a comment

Choose a reason for hiding this comment

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

Everything except for two small comments looks good to me
Have a good merge!

Copy link
Copy Markdown
Contributor

@mpashchenkov mpashchenkov left a comment

Choose a reason for hiding this comment

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

First wave. Thanks.

bestLabelsMat.copyTo(labels_ocv);
}
// OpenCV code /////////////////////////////////////////////////////////////
double compact_ocv = cv::kmeans(in, K, labels_ocv, criteria, attempts, flags, centers_ocv);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

const, but it is a cavil.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I don't think this changes much. Let it be non-const

@OrestChura
Copy link
Copy Markdown
Contributor Author

@alalek, is this mergeable?

@alalek
Copy link
Copy Markdown
Member

alalek commented Feb 24, 2021

@dmatveev @dbudniko Please assign delegated "reviewer" into "assignee" field or review yourself this PR (similar note is about all G-API PRs).

@alalek alalek merged commit 21b2e33 into opencv:master Feb 25, 2021
@alalek alalek mentioned this pull request Apr 9, 2021
a-sajjad72 pushed a commit to a-sajjad72/opencv that referenced this pull request Mar 30, 2023
[G-API]: Performance tests for kmeans

* - Perf.Tests for kmeans(2D, 3D (Point2f/3f), ND (Mat))
 - New file for common parts of acc. and perf. tests for core kernels added
 - Some typos corrections

* Applying comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants