Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tkram01
Copy link
Contributor

@tkram01 tkram01 commented Dec 22, 2022

When using a sampleIdx Mat to limit the training samples to train on the current code will fail with an assert since it is checking that the index is < the length of the samples to train on instead of the available samples.

@asmorkalov asmorkalov requested a review from vpisarev December 23, 2022 10:36
@asmorkalov
Copy link
Contributor

@tkram01 Friendly reminder. Please take a look on CI failures.

@asmorkalov
Copy link
Contributor

@tkram01 &: operator has lower priority than < and < happens first. It's not what you want and generates warning in Windows build.

@asmorkalov
Copy link
Contributor

Also the same issue exists in 3.4 branch too. Please rebase your branch on top of 3.4 and re-target the PR to 3.4 too. OpenCV team will propagate the fix to 4.x and other branches during regular merge procedure later.

@asmorkalov asmorkalov modified the milestones: 4.8.0, 3.4.20 Mar 22, 2023
@asmorkalov asmorkalov added the pr: needs rebase Rebase patch (and squash fixup commits) on the top of target branch label Mar 22, 2023
@asmorkalov asmorkalov changed the base branch from 4.x to 3.4 March 22, 2023 06:52
@asmorkalov asmorkalov removed the pr: needs rebase Rebase patch (and squash fixup commits) on the top of target branch label Mar 22, 2023
@asmorkalov
Copy link
Contributor

Rebased to 3.4 and fixed operations order.

@asmorkalov asmorkalov merged commit 8c64adb into opencv:3.4 Mar 22, 2023
@asmorkalov asmorkalov mentioned this pull request Apr 20, 2023
@asmorkalov asmorkalov mentioned this pull request May 31, 2023
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.

3 participants