google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.07k stars 5.11k forks source link

face_mesh dll error #5642

Open xcjcb001 opened 3 weeks ago

xcjcb001 commented 3 weeks ago

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

None

OS Platform and Distribution

windows 10

MediaPipe Tasks SDK version

0.10.9

Task name (e.g. Image classification, Gesture recognition etc.)

face_mesh dll

Programming Language and version (e.g. C++, Python, Java)

c++

Describe the actual behavior

debugger

Describe the expected behaviour

can not read the config

Standalone code/steps you may have used to try to get what you need

std::string calculator_graph_config_contents;
MP_RETURN_IF_ERROR(mediapipe::file::GetContents(model_path, &calculator_graph_config_contents));
std::cout << "mediapipe::file::GetContents success" << std::endl;

mediapipe::CalculatorGraphConfig config =
    mediapipe::ParseTextProtoOrDie<mediapipe::CalculatorGraphConfig>(
        calculator_graph_config_contents); 
MP_RETURN_IF_ERROR(m_Graph.Initialize(config))) :

Other info / Complete Logs

MP_RETURN_IF_ERROR(m_Graph.Initialize(config))) :   Exception raised: Read access conflict.   the mediapipe::CalculatorGraphConfig config is null.    but std::string calculator_graph_config_contentsnot null. I don't know what the problem is and how to proceed anymore
xcjcb001 commented 3 weeks ago

absl::lts_20230125::container_internal::raw_hash_set<absl::lts_20230125::container_internal::FlatHashMapPolicy<std::basic_string<char,std::char_traits,std::allocator >,mediapipe::tool::FieldDescriptor>,absl::lts_20230125::container_internal::StringHash,absl::lts_20230125::container_internal::StringEq,std::allocator<std::pair<std::basic_string<char,std::char_traits,std::allocator > const ,mediapipe::tool::FieldDescriptor> > >::common(...) retrun 0x28。