提交 8924b176 编写于 作者: G Gines Hidalgo

Updated handFromJsonTest to String

上级 d637c5c2
......@@ -53,7 +53,7 @@ int handFromJsonTest()
op::PoseMode::Disabled, op::flagsToPoint("656x368"), op::flagsToPoint("1280x720"), op::ScaleMode::InputResolution,
FLAGS_num_gpu, FLAGS_num_gpu_start, 1, 0.15f, op::RenderMode::None, op::PoseModel::BODY_25, true, 0.f, 0.f,
0, "models/", {}, op::ScaleMode::ZeroToOne, false, 0.05f, -1, false};
wrapperStructPose.modelFolder = FLAGS_model_folder;
wrapperStructPose.modelFolder = op::String(FLAGS_model_folder);
// Hand configuration (use op::WrapperStructHand{} to disable it)
const op::WrapperStructHand wrapperStructHand{
FLAGS_hand, op::Detector::Provided, handNetInputSize, FLAGS_hand_scale_number,
......
......@@ -214,7 +214,7 @@ namespace op
// Hand keypoint extractor
const auto netOutputSize = wrapperStructHand.netInputSize;
const auto handExtractor = std::make_shared<HandExtractorCaffe>(
wrapperStructHand.netInputSize, netOutputSize, wrapperStructPose.modelFolder,
wrapperStructHand.netInputSize, netOutputSize, wrapperStructPose.modelFolder.getStdString(),
gpuId + gpuNumberStart, wrapperStructHand.scalesNumber, wrapperStructHand.scaleRange
);
spWPoses.at(gpuId).emplace_back(std::make_shared<WHandExtractorNet<TDatumsPtr>>(handExtractor));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册