-
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
Image Preprocessing techniques for selfie segmentation #5730
Comments
Hi @codewarrior26, Could you please share the complete instructions you are following from our documentation to help us better understand the issue? Additionally, providing the standalone code you are using would be very helpful. Thank you!! |
Hi @kuaashish, thank you for responding. So this issue is not a bug, but rather an ask for support in understanding what steps to follow to preprocess the image before making an inference using the selfie segmentation model through tensorflow-lite (and not through mediapipe directly). Let me elaborate this: Method-1 - directly using mediapipe library to make the inference
This works perfectly fine as expected Method-2 using pretrained tflite to make the inference
Method-2 works fine, but the results are not as good as method-1 primarily because Hence my ask here is for you to please shed some light on what steps I have to take to preprocess the image I feed to the pretrained tflite model in method-2. |
Hi @codewarrior26, The solution or package you are currently using is part of our legacy solution, which have been upgraded and integrated into the Image Segmentor. You can find the updated information in our documentation. Please note that support for all legacy solutions has been discontinued. We recommend using our new Image Segmentor Task API. You can access the overview page, the implementation guide for Python. We encourage you to try the new solution. If you encounter any issues or have similar concerns, please let us know, we will be happy to assist. Unfortunately, further support for legacy solutions is no longer available. Thank you!! |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
Yes
OS Platform and Distribution
Linux Ubuntu
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
Selfie Segmentation
Programming Language and version (e.g. C++, Python, Java)
Python
Describe the actual behavior
Need help to preprocess input images
Describe the expected behaviour
Currently, the model card doesn't specify the preprocessing techniques to be used.
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: