Repository navigation
DNN: Openpose: Fixed samples - #13486
Merged
Merged
Conversation
dkurt
reviewed
Dec 20, 2018
| parser.add_argument('--thr', default=0.1, type=float, help='Threshold value for pose parts heat map') | ||
| parser.add_argument('--width', default=368, type=int, help='Resize input to specific width.') | ||
| parser.add_argument('--height', default=368, type=int, help='Resize input to specific height.') | ||
| parser.add_argument('--scale', default=0.003922, type=float, help='Scale for blob.') |
Member
There was a problem hiding this comment.
Please also remove redundant To use Inference Engine backend, specify location of plugins: at the beginning of this script.
| midx = 1; | ||
| npairs = 14; | ||
| nparts = 16; | ||
| } |
Member
There was a problem hiding this comment.
I think it's better to add a flag dataset similar to python script and add an extra option 'HAND' to it's choices instead determining model by number of output channels.
| shape_1 = out.shape[1] | ||
| if shape_1 == 57: shape_1 = 19 | ||
| if shape_1 == 44: shape_1 = 16 | ||
| assert(len(BODY_PARTS) == shape_1) |
Member
There was a problem hiding this comment.
shape_1 is used only here. We check assert(len(BODY_PARTS) == out.shape[1]) only to prevent out-of-bound slicing. Can we keep just assert(len(BODY_PARTS) <= out.shape[1])?
May I ask you also adapt python sample for HAND model?
Member
Author
|
@dkurt done |
Merged
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
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.
resolves #13141