Open tomershukhman opened 8 months ago
Hi @tomershukhman,
Unfortunately, you won't be able to install the latest version of MediaPipe model maker (0.2.1.3) because tensorflow-text stopped supporting Windows, Aarch64, and Apple Macs since version 2.11 (refer to https://github.com/tensorflow/text/issues/1140 and https://github.com/tensorflow/text#a-note-about-different-operating-system-packages).
To install the latest version, you can try building the tensorflow-text package from their Github if you are using Apple macOS. If you are not using the text_classifier task in Model Maker (which requires tensorflow-text), you can attempt to install it using pip with the "--no-deps" parameter. You would need to install each requirement independently, excluding tensorflow-text. Note that this is a workaround suggested by a user here: https://github.com/tensorflow/text/issues/1206.
Alternatively, you can consider using Colab cloud environment to install these packages in a Linux environment.
Thank you!!
I'm not a python expert and don't need the text_classifier. What commands could I run to get the mediapipe-model-maker working on mac. Have you actually got it working like this (without installing tensorflow-text)?
Only way I was able to make it work, it was through using python 3.9.16, with this command : pip install "pyyaml>6.0.0" "keras<3.0.0" "tensorflow<2.16" "tf-models-official<2.16" mediapipe-model-maker --no-deps
The list of packages featured in my pip freeze is :
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
macos sonoma
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
python 3.10
MediaPipe version
No response
Bazel version
No response
Solution
mediapipe-model-maker
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
pip failes due to conflit
Describe the expected behaviour
for it to work...
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs