Comments (6)
@camillol @jiuqiant
@Sanerly MediaPipe for android only supports the bazel build system. Here are instructions on how to setup Android Studio with bazel.
If you have gradle build system for Android, you will have to build MediaPipe using bazel build system for Android. Both systems are incompatible for now.
Here are instructions on how to migrate from gradle to bazel
from mediapipe.
@mgyong
Thanks a lot, my project is more complicated and it is difficult to migrate from Gradle. I am currently using windows10, bazel is installed with chocolatey, and then I get an error when opening the MediaPipe project:
E:/myproject/mediapipe-master/WORKSPACE:103:1
INFO: Repository 'org_tensorflow' used the following cache hits instead of downloading the corresponding file.
Hash 'ddd4e3c056e7c0ff2ef29133b30fa62781dfbf8a903e99efb91a02d292fa9562' for https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/67def62936e28f97c16182dfcc467d8d1cae02b4.tar.gz
If the definition of 'org_tensorflow' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'org_tensorflow':
Traceback (most recent call last):
File "C:/users/administrator/_bazel_administrator/miimwwwx/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
Patch(ctx)
Is it because I don't have the reason to install tensorflow? I don't know now, I am a little dizzy.
from mediapipe.
Unfortunately, MediaPipe doesn't support Windows yet. We do support Windows Subsystem for Linux.
I am also not quite sure if MediaPipe can be integrated with Android Studio on Windows. We haven't tried this workflow by ourselves.
from mediapipe.
Thank you, may I ask the next version to consider supporting the Gradle compilation of Android studio under Windows?
from mediapipe.
@mgyong Can you explain the error. Syncing again with invalidating caches is not working.
Is it a windows bazel version issue? Or a org_tensorflow patch has to be updated?
Would like to work on this.
from mediapipe.
@mgyong Below is the cause of the error in building.
#2019-08-15
_TENSORFLOW_GIT_COMMIT = "67def62936e28f97c16182dfcc467d8d1cae02b4"
_TENSORFLOW_SHA256= "ddd4e3c056e7c0ff2ef29133b30fa62781dfbf8a903e99efb91a02d292fa9562"
http_archive(
name = "org_tensorflow",
urls = [
"https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT,
"https://github.com/tensorflow/tensorflow/archive/%s.tar.gz" % _TENSORFLOW_GIT_COMMIT,
],
strip_prefix = "tensorflow-%s" % _TENSORFLOW_GIT_COMMIT,
sha256 = _TENSORFLOW_SHA256,
patches = [
"@//third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff",
"@//third_party:tensorflow_f67fcbefce906cd419e4657f0d41e21019b71abd.diff",
],
patch_args = [
"-p1",
],
)
Causing the below error. Which is applying the patch error. Is this a bazel issue.
ERROR: An error occurred during the fetch of repository 'org_tensorflow':
Traceback (most recent call last):
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
patch(ctx)
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 91, in patch
fail(("Error applying patch %s:\n%s%s...)))
Error applying patch //third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff:
/bin/bash: E:/mediapipe/third_party/tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff: No such file or directory
ERROR: no such package '@org_tensorflow//tensorflow': Traceback (most recent call last):
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/http.bzl", line 56
patch(ctx)
File "C:/users/XX/_bazel_princ/wsixtlup/external/bazel_tools/tools/build_defs/repo/utils.bzl", line 91, in patch
fail(("Error applying patch %s:\n%s%s...)))
Error applying patch //third_party:tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff:
/bin/bash: E:/mediapipe/third_party/tensorflow_065c20bf79253257c87bd4614bb9a7fdef015cbb.diff: No such file or directory
Sync finished
from mediapipe.
Related Issues (20)
- Unable to build with Webpack after importing Mediapipe (Module parse failed: Unexpected token) HOT 5
- mediapipe_tasks_vision_image_segmenter_imagesegmentergraph__mediapipe_tasks_components_processors_imagepreprocessinggraph__ImageToTensorCalculator HOT 9
- Android x86 tasks_genai - llm inference runtime error `mediapipe.tasks.core.jni.LlmResponseContext.responses' contains invalid UTF-8 data when serializing a protocol buffer` HOT 1
- Is there a way to improve performance through some configuration parameters? HOT 3
- i was not able to install pip3 install mediapipe-silicon ,it is for mac os air HOT 6
- iOS: Can't merge user_target_xcconfig for pod targets: ["MediaPipeTasksCommon", "MediaPipeTasksGenAIC"]. HOT 6
- After a few minutes, the image segmenter starts working very slowly with the SelfieMulticlass model (256 x 256) HOT 2
- Clarification Needed on Python Compatibility HOT 3
- Add GPU support to LLM C API HOT 3
- You may need an additional loader to handle the result of these loaders. HOT 3
- convert ImageFrame to Image
- customize Object detect HOT 3
- Failed to get LLM params: INVALID_ARGUMENT: LLM model file is null HOT 6
- In my Flutter project, I use the blaze_face_short_range.tflite model and get output in the format [1, 896, 16] and [1, 896, 1]. Tell me how I can turn them into coordinates. HOT 1
- Selfie Segmentation vs Image Segmentation HOT 2
- Google Meet's model (image_segmenter) HOT 1
- Availability of previous version wheels HOT 3
- Detection of non-existent landmarks HOT 1
- Mediapipe with WebGL2... HOT 3
- MediaPipe shouldn't resize the external canvas HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediapipe.