-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Is there any stable version of python and pip to train common object detection model? #5080
Comments
Hi @ly15927086342, 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 tensorflow/text#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 Windows. 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: tensorflow/text#1206. Alternatively, you can consider using Windows Subsystem for Linux (WSL) or the Colab cloud environment to install these packages in a Linux environment. However, based on our analysis, you can install mediapipe-model-maker-0.1.0.2, which is based on an older version of MediaPipe (0.9.0.1) without any issues but this is not our recommended approach. Thank you |
I have train my model by Colab, it works will, thank you! |
Thank you for confirming. Kindly grant us some time to internally review the matter. We will inform you of the feasibility from our perspective. |
Hi @ly15927086342, I attempted to replicate the scenario in Colab. It appears that running the demo with a smaller dataset was successful. After importing the customized TensorFlow Lite model, the quantization example codes executed smoothly without runtime interruptions. In your situation, if you aim to train the model with a larger dataset without encountering timeouts, you may consider extending the runtime duration by implementing the following suggestions: Run the following code in the console and it will prevent you from disconnecting. Ctrl + Shift + I to open the inspector view. Then go to the console.
Reference: [How can I prevent Google Colab from disconnecting?](https://stackoverflow.com/questions/57113226/how-can-i-prevent-google-colab-from-disconnecting). Thank you!! |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
This issue was closed due to lack of activity after being marked stale for past 7 days. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
windows10
MediaPipe version
No response
Bazel version
No response
Solution
Object Detector
Programming Language and version
Python3.11
Describe the actual behavior
install mediapipe-model-maker fail
Describe the expected behaviour
install mediapipe-model-maker success
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
No response
The text was updated successfully, but these errors were encountered: