Set of build fixes for ## 3580, 3574.#3584
Merged
asmorkalov merged 1 commit intoopencv:4.xfrom Oct 27, 2023
Merged
Conversation
Contributor
|
Windows build on buildbot has failed: |
f80ba14 to
1d0c668
Compare
mshabunin
reviewed
Oct 26, 2023
modules/face/src/facemarkLBF.cpp
Outdated
| std::vector<double> beta(l); | ||
| std::vector<double> QD(l); | ||
| std::vector<double> lambda(l); | ||
| std::vector<double> upper_bound(l); |
Contributor
There was a problem hiding this comment.
Mentioned commit in scikit-learn also changes #define GETI(i) (i) and adds initialization of lambda and upper_bound arrays: https://github.com/scikit-learn/scikit-learn/blob/dcebbc4c5c97f886a57b0684a5e943f94db1bd58/sklearn/svm/src/liblinear/linear.cpp#L1073-L1089
And assuming we have L2R_L1LOSS_SVR_DUAL case here, single-element arrays make sense, but GETI macro is wrong.
Alternatively there is another source of original code where GETI(i) is 0 and arrays of size 1 works well: https://github.com/cjlin1/liblinear/blob/8dc206b782e07676dc0d00678bedd295ce85acf3/linear.cpp#L1127
1d0c668 to
51de580
Compare
Contributor
Author
|
@mshabunin I reverted changes in |
mshabunin
approved these changes
Oct 26, 2023
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3580
Fixes #3574.
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.