Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not find some head file #1

Closed
LebronJames0423 opened this issue Dec 30, 2021 · 8 comments
Closed

can not find some head file #1

LebronJames0423 opened this issue Dec 30, 2021 · 8 comments

Comments

@LebronJames0423
Copy link

hello,when i follow your Using Tutorials (https://bestofcpp.com/repo/iwatake2222-aiine_transform), after successfully compile in vs2017, and i open the build folder in vs2017, first it tell me that there is no tensorflow,and i download it from https://github.com/tensorflow/tensorflow,and put it in
image
,and then , after compile successfully again , it through another problem
image
,that is "Aiine Transform\aiine_transform\inference_helper\third_party\cmakes..\tensorflow\tensorflow/lite/interpreter_builder.h(26): fatal error C1083: 无法打开包括文件: “flatbuffers/flatbuffers.h”: No such file or directory".
can you tell me how to slove this? thank you very much.

@iwatake2222
Copy link
Owner

Probably you missed the following commands, or it failed. Please make sure the download process succeeds when you run download_dependencies.sh

cd inference_helper/third_party/tensorflow
chmod +x tensorflow/lite/tools/make/download_dependencies.sh
tensorflow/lite/tools/make/download_dependencies.sh

@LebronJames0423
Copy link
Author

Probably you missed the following commands, or it failed. Please make sure the download process succeeds when you run download_dependencies.sh

cd inference_helper/third_party/tensorflow
chmod +x tensorflow/lite/tools/make/download_dependencies.sh
tensorflow/lite/tools/make/download_dependencies.sh

thank for your reply,
i run your project in win10, after follow your device, i find the "download_dependencies.sh" in mediapipe folder,and i put it in the following folder
image
,and run the "chmod +x tensorflow/lite/tools/make/download_dependencies.sh" in cmd
image
, and after do this , i compile it again in cmake
image
but the problem still there, is there anything wrong with my operations?
by the way, can you upload your compiled vs project in your github? thank you very much~

@LebronJames0423
Copy link
Author

download_dependencies.sh

should i compile tensorflow lite in win10 and put it in your project before i compile your project?

@iwatake2222
Copy link
Owner

I don't think you follow the instruction.
Please read this section carefully.

https://github.com/iwatake2222/aiine_transform#download

@LebronJames0423
Copy link
Author

I don't think you follow the instruction. Please read this section carefully.

https://github.com/iwatake2222/aiine_transform#download

i successfully compiled it ,and it works well in vs2017 in win10, thank you. But i have another problem : The face mesh module of mediapipe includes model inference and pre- and post-processing. The pre- and post-processing code is written in C++. Did you extracted the code or wrote it by yourself? thanks a lot.

@iwatake2222
Copy link
Owner

👍

I don't understand what you mean by extract , but I referred to https://github.com/google/mediapipe/blob/master/docs/solutions/face_mesh.md#output , then I wrote it in C++ by myself.

@LebronJames0423
Copy link
Author

👍

I don't understand what you mean by extract , but I referred to https://github.com/google/mediapipe/blob/master/docs/solutions/face_mesh.md#output , then I wrote it in C++ by myself.

your work is really a cool job!
why i run your project:
i want to use the face mesh model of mediapipe. it really quick when inferencing ,but i do not want to use mediapipe framework and tensorflow lite engine, i want to use another engine ,mindspore. what i did last few days is that i followed the mediapipe framework
image
,to extract the code of pre and post processing the result of face_landmark.tflite model. that's what i mean "extract" . but the result keypoints is not Accurate. so i want to confirm why the results is not accurate, the inference results is not accurate or pre and post processing code is not right, so after i find your blog, i think i maybe helpful for me, and it do.
next i will see how you write this project.

@iwatake2222
Copy link
Owner

i do not want to use mediapipe framework and tensorflow lite engine,

Really understood!!
I prefer not using heavy frameworks, too.

Porting pre/post logic to your project might be challenging, but hope my code helps.
Good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants