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

how to install mediapipe_model_maker0.2.1.4 in windows? #5545

Open
libofei2004 opened this issue Jul 24, 2024 · 4 comments
Open

how to install mediapipe_model_maker0.2.1.4 in windows? #5545

libofei2004 opened this issue Jul 24, 2024 · 4 comments
Assignees
Labels
os:windows MediaPipe issues on Windows platform:python MediaPipe Python issues stat:awaiting googler Waiting for Google Engineer's Response type:docs-feature Doc issues for new solution, or clarifications about functionality type:modelmaker Issues related to creation of custom on-device ML solutions

Comments

@libofei2004
Copy link

OS Platform and Distribution

windows10

Compiler version

No response

Programming Language and version

python3.9.13

Installed using virtualenv? pip? Conda?(if python)

virtualenv

MediaPipe version

No response

Bazel version

No response

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

No response

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

I run "pip install mediapipe_model_maker" , but I can only install version 0.1.0.1. I was trying to install mediapipe_model_maker by "pip install mediapipe_model_maker-0.2.1.4-py3-none-any.whl", but also failed

Complete Logs

I run "pip install mediapipe_model_maker" , but I can only install version 0.1.0.1. I was trying to install mediapipe_model_maker by "pip install mediapipe_model_maker-0.2.1.4-py3-none-any.whl", but also failed. The error:
ERROR: Cannot install mediapipe-model-maker and mediapipe-model-maker==0.2.1.4 because these package versions have conflicting dependencies.

The conflict is caused by:
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.15.0 depends on tensorflow-text~=2.15.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.14.2 depends on tensorflow-text~=2.14.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.14.1 depends on tensorflow-text~=2.14.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.14.0 depends on tensorflow-text~=2.14.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.13.2 depends on tensorflow-text~=2.13.0I run "pip install mediapipe_model_maker" ,but I can only install version 0.1.0.1. I was trying to install mediapipe_model_maker by "pip install mediapipe_model_maker-0.2.1.4-py3-none-any.whl", but also failed. The error:
ERROR: Cannot install mediapipe-model-maker and mediapipe-model-maker==0.2.1.4 because these package versions have conflicting dependencies.

The conflict is caused by:
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.15.0 depends on tensorflow-text~=2.15.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.14.2 depends on tensorflow-text~=2.14.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.14.1 depends on tensorflow-text~=2.14.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.14.0 depends on tensorflow-text~=2.14.0
mediapipe-model-maker 0.2.1.4 depends on tensorflow-text
tf-models-official 2.13.2 depends on tensorflow-text~=2.13.0

To fix this you could try to:

loosen the range of package versions you've specified
remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Can version 0.2.1.4 be installed in windows?
@libofei2004 libofei2004 added the type:build/install For Build and Installation issues label Jul 24, 2024
@kuaashish
Copy link
Collaborator

Hi @libofei2004,

Unfortunately, you can not install the latest version of MediaPipe Model Maker on Windows and Silicon-based macOS due to the discontinued support of TensorFlow Text on these platforms, as noted here. Currently, installing the latest version is little complex, but a community member has identified a potential method here. However, due to the dependency on TensorFlow Text, there is little we can do at this time.

Thank you!!

@kuaashish kuaashish assigned kuaashish and unassigned ayushgdev Jul 24, 2024
@kuaashish kuaashish added os:windows MediaPipe issues on Windows platform:python MediaPipe Python issues type:modelmaker Issues related to creation of custom on-device ML solutions stat:awaiting response Waiting for user response labels Jul 24, 2024
@jk4e
Copy link

jk4e commented Jul 24, 2024

I would like to add the following to his topic:

This issue has been going on for a year now and several issues have been created. If no quick fixes can be found, I think that at least the MediaPipe Model Maker documentation + related sites (https://ai.google.dev/edge/mediapipe/solutions/model_maker) and the project description on the pypi site (https://pypi.org/project/mediapipe-model-maker/) should state that it can currently only be installed on Linux or WSL (or maybe Intel-based Macs, I am unsure), or that Google Colab should be used. I think that would help some people instead of everyone always trying to get it to work, wasting hours trying to fix dependency issues and then ending up searching for old issues or reopening the same issue over and over again.

Especially since the Model Maker is a really cool feature that allows you to customize your own ML model.

Thank you very much!!

@google-ml-butler google-ml-butler bot removed the stat:awaiting response Waiting for user response label Jul 24, 2024
@kuaashish
Copy link
Collaborator

Hi @jk4e,

Thank you for suggesting that we add descriptions to the documentation and PyPI. We should make this information available to help the community understand the currently supported platforms for Model Maker. For now, we are marking this as a feature request and sharing it with the team. We will try to address this based on our bandwidth, but we cannot promise a timeline for its availability.

Thank you!!

@kuaashish kuaashish added type:docs-feature Doc issues for new solution, or clarifications about functionality and removed type:build/install For Build and Installation issues labels Jul 30, 2024
@kuaashish kuaashish assigned joezoug and unassigned kuaashish Jul 30, 2024
@kuaashish kuaashish added the stat:awaiting googler Waiting for Google Engineer's Response label Jul 30, 2024
@jk4e
Copy link

jk4e commented Jul 30, 2024

Hi @kuaashish,

Thanks so much for your quick and positive feedback and your efforts!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:windows MediaPipe issues on Windows platform:python MediaPipe Python issues stat:awaiting googler Waiting for Google Engineer's Response type:docs-feature Doc issues for new solution, or clarifications about functionality type:modelmaker Issues related to creation of custom on-device ML solutions
Projects
None yet
Development

No branches or pull requests

5 participants