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

Adding .mlpackage file into the ios example project #3741

Closed
yohanessatria opened this issue Sep 30, 2022 · 7 comments
Closed

Adding .mlpackage file into the ios example project #3741

yohanessatria opened this issue Sep 30, 2022 · 7 comments
Assignees
Labels
legacy:holistic Issues related to Holistic platform:ios MediaPipe IOS issues type:support General questions

Comments

@yohanessatria
Copy link

So I've been trying to add a .MLPackage file to the HolisticTrackingGPU ios project. The problem is somehow the target membership for all the example projects are disabled (greyed out), thus I can't link the .mlpackage file to the holistictrackinggpu and the xcode can't can't auto generate the model class. I tried to add the model class manually by :

  1. add the model into a new blank project
  2. let xcode generate the model class
  3. copy all the code from the model class
  4. and create a new header file for the holistictrackinggpu
  5. paste all the copied data into the newly made header file
  6. add the header file to the BUILD file
  7. add a line of code to initialize the class in the view controller

after completing all the mentioned steps above and run the project, I got an error in the build file (Linking mediapipe/examples/ios/holistictrackinggpu/HolisticTrackingGpuApp_bin failed: (Aborted): wrapped_clang_pp failed: error executing command ). Interestingly, when I remove step 7, I have no error. I wonder what is missing from my build file because when I use the same model and initialize it in the other project without bazel, the project runs fine.

ViewController
Screen Shot 2022-09-30 at 10 32 50 AM

Build File
Screen Shot 2022-09-30 at 10 34 40 AM

So my question is how to properly add a .mlpackage file in the example project so that this project can be run properly.

Thanks

@yohanessatria yohanessatria added the type:support General questions label Sep 30, 2022
@kuaashish kuaashish added platform:ios MediaPipe IOS issues legacy:holistic Issues related to Holistic labels Sep 30, 2022
@yohanessatria
Copy link
Author

Hi. Is there any solution on this? thanks

@kuaashish
Copy link
Collaborator

Hi @yohanessatria,
Could you elaborate your query with complete details and use case to implement the .mlpackage file into the ios example project. Please update the system information as mentioned in the documentation. Thank you!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Oct 17, 2022
@yohanessatria
Copy link
Author

hi @kuaashish

Have I written custom code: Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS 12.5.1
Bazel version: 5.2.0
Xcode & Tulsi version (if issue is related to building in mobile dev environment): Xcode 14.0.1, Tulsi 0.20220310.88
Exact steps to reproduce:
for the detailed background on why I did this is in my first comment at the top.

In summary, I want to use the holistictrackinggpu example project to get the holistic keypoints from the user. I then want to use my custom model to predict what kind of sign language is performed by the user by utilizing these keypoints, but got an error on the BUILD file as shown in my previous comment, even though I already added the necessary files into the BUILD file.

Thanks for reaching me back :)

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Oct 20, 2022
@kuaashish
Copy link
Collaborator

Hi @yohanessatria,
Please refer to this specific #3760(Comment) and running thread #3760 for better understanding on your query. Thank you!

@kuaashish kuaashish added the stat:awaiting response Waiting for user response label Oct 21, 2022
@google-ml-butler
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you.

@google-ml-butler
Copy link

Closing as stale. Please reopen if you'd like to work on this further.

@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

@kuaashish kuaashish removed stat:awaiting response Waiting for user response stale labels Nov 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy:holistic Issues related to Holistic platform:ios MediaPipe IOS issues type:support General questions
Projects
None yet
Development

No branches or pull requests

3 participants