Skip to content

Commit d255ca8

Browse files
committed
Add missing flag
Looks like this version of OpenPose needs the as an added argument in
1 parent 495ff88 commit d255ca8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/Kinect/Kinect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ void KinectCmd_configureTracking(World* inWorld, void* inUserData, struct sc_msg
161161
kinectData->opWrapperT.setWorker(op::WorkerType::Output, kinectData->wUserOutput, workerOutputOnNewThread);
162162

163163
// Hardcoded stuff (no flags)
164-
const auto keypointScaleMode = op::ScaleMode::ZeroToOne;
164+
double netInputSizeDynamicBehavior = -1; // * Zero or negative means that using `-1` in netInputSize will behave as explained in its flag description.
165165
const int numPeopleMax = args->geti(-1);
166166
const auto flagsFolder = op::String(args->gets());
167167
const int numGpu = args->geti(-1);
@@ -193,7 +193,7 @@ void KinectCmd_configureTracking(World* inWorld, void* inUserData, struct sc_msg
193193

194194
// Pose configuration (use WrapperStructPose{} for default and recommended configuration)
195195
const op::WrapperStructPose wrapperStructPose{
196-
poseMode, netInputSize, outputSize, keypointScaleMode, numGpu, gpuStartIndex,
196+
poseMode, netInputSize, netInputSizeDynamicBehavior, outputSize, keypointScaleMode, numGpu, gpuStartIndex,
197197
numAverages, averageGap, op::flagsToRenderMode(renderPose, multipleView),
198198
poseModel, !disableBlending, alphaPose, alphaHeatMap,
199199
partToShow, flagsFolder, heatMapTypes, heatMapScaleMode, recordPartCandidates,

0 commit comments

Comments
 (0)