Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #135 from Corsair-cxs/iss135
Browse files Browse the repository at this point in the history
Comment function 'createLandmarksDetection' related code [issue #134]
  • Loading branch information
LewisLiuPub authored Mar 15, 2021
2 parents 955b049 + 5d71caa commit c4b56ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dynamic_vino_lib/include/dynamic_vino_lib/pipeline_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ class PipelineManager
createVehicleAttribsDetection(const Params::ParamManager::InferenceRawData& infer);
std::shared_ptr<dynamic_vino_lib::BaseInference>
createLicensePlateDetection(const Params::ParamManager::InferenceRawData& infer);
std::shared_ptr<dynamic_vino_lib::BaseInference>
createLandmarksDetection(const Params::ParamManager::InferenceRawData& infer);
// std::shared_ptr<dynamic_vino_lib::BaseInference>
// createLandmarksDetection(const Params::ParamManager::InferenceRawData& infer);

std::map<std::string, PipelineData> pipelines_;
Engines::EngineManager engine_manager_;
Expand Down
22 changes: 18 additions & 4 deletions dynamic_vino_lib/src/pipeline_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ PipelineManager::parseInference(const Params::ParamManager::PipelineRawData& par
{
object = createPersonAttribsDetection(infer);
}
else if (infer.name == kInferTpye_LandmarksDetection)
{
object = createLandmarksDetection(infer);
}
// else if (infer.name == kInferTpye_LandmarksDetection)
// {
// object = createLandmarksDetection(infer);
// }
else if (infer.name == kInferTpye_VehicleAttribsDetection)
{
object = createVehicleAttribsDetection(infer);
Expand Down Expand Up @@ -431,6 +431,20 @@ PipelineManager::createPersonAttribsDetection(const Params::ParamManager::Infere
return attribs_inference_ptr;
}

// std::shared_ptr<dynamic_vino_lib::BaseInference>
// PipelineManager::createLandmarksDetection(
// const Params::ParamManager::InferenceRawData & infer)
// {
// auto model = std::make_shared<Models::LandmarksDetectionModel>(infer.model, infer.batch);
// model->modelInit();
// auto engine = engine_manager_.createEngine(infer.engine, model);
// auto landmarks_inference_ptr = std::make_shared<dynamic_vino_lib::LandmarksDetection>();
// landmarks_inference_ptr->loadNetwork(model);
// landmarks_inference_ptr->loadEngine(engine);

// return landmarks_inference_ptr;
// }

void PipelineManager::threadPipeline(const char* name)
{
PipelineData& p = pipelines_[name];
Expand Down

0 comments on commit c4b56ba

Please sign in to comment.